@ones-editor/editor 2.0.4-beta.10 → 2.0.4-beta.11

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode(`@keyframes ones-editor-blink{0%,to{background-color:transparent}50%{background-color:#0064ff}}*{--link-color: #0064ff;--color-0: #e52727;--color-1: #eb6414;--color-2: #f0a100;--color-3: #24b47e;--color-4: #0064ff;--color-5: #9678d3;--color-6: #909090;--background-color-0: #fad4d4;--background-color-1: #fbe0d0;--background-color-2: #fceccc;--background-color-3: #d3f0e5;--background-color-4: #d6e9fa;--background-color-5: #eae4f6;--background-color-6: #dedede;--background-color-7: #e52727;--background-color-8: #eb6414;--background-color-9: #f0a100;--background-color-10: #24b47e;--background-color-11: #0064ff;--background-color-12: #9678d3;--background-color-13: #909090;--background-color-14: #e8e8e8;--font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif}div.editor-root{--text-color: #303030;--primary-color: #0064ff;--background-selection: #0064ff1A;--background-code: #cdcdcd40}div.editor-root{color:#2d2d2e;position:relative;box-sizing:border-box;min-height:100%;width:100%;z-index:1}div.editor-root.readonly div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span.text.link{cursor:pointer}div.editor-root *{box-sizing:border-box;font-family:var(--font-family)}div.editor-root button{outline:none}div.editor-root.active div.editor-content .editor-cursor{opacity:1}div.editor-root .safari.mobile div.editor-content .editor-input{pointer-events:all;width:8px}div.editor-root div.editor-content{height:100%;width:100%;padding:0 30px 30px}div.editor-root div.editor-content .editor-cursor{position:absolute;background:#0064ff;width:2px;transition:top .1s ease-in,left .1s linear;animation:ones-editor-blink 1s ease-in-out infinite;opacity:0;pointer-events:none}div.editor-root div.editor-content .editor-input{position:absolute;opacity:0;pointer-events:none;width:16px;height:20px;font-size:16px}div.editor-root div.editor-content div[data-type=editor-container]{position:relative}div.editor-root div.editor-content div[data-type=editor-container].root{user-select:none;width:100%;cursor:text}div.editor-root div.editor-content div[data-type=editor-container].root>.container-blocks>*+*{margin-top:1em}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block]:not([data-document-title]){background-color:var(--background-selection)}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block]:not([data-document-title]) div[data-type=block-background]>.editor-selection-background{background-color:transparent!important}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block].embed-block>div[data-type=block-content]:before,div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block].embed-block .embed-selected-content:before{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]+div[data-type=editor-block][data-style-quoted]{margin-top:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block]{font-size:var(--font-size);line-height:var(--line-height);position:relative;--font-size: 15px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=center] div[data-type=block-content]{text-align:center}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=right] div[data-type=block-content]{text-align:end}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].block-hidden{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=text]{cursor:text}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]{word-break:break-word;position:relative}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span{cursor:text}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion{white-space:pre-wrap}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.link{color:#0064ff}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link:hover,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.link:hover{cursor:pointer;color:#0053cf}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link.style-strikethrough:hover,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.link.style-strikethrough:hover{text-decoration:underline line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-bold,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-bold{font-weight:700}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-italic,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-italic{font-style:italic}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-underline,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-underline{text-decoration:underline}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-strikethrough,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-strikethrough{text-decoration:line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-underline.style-strikethrough,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-underline.style-strikethrough{text-decoration:underline line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-code,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-code{border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:var(--background-code);padding:4px;font:.8em Monaco,Consolas,"Andale Mono",DejaVu Sans Mono,monospace}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-sub,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-sub{vertical-align:sub;font-size:70%}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-super,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-super{vertical-align:super;font-size:70%}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="0"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="0"]{color:var(--color-0)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="1"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="1"]{color:var(--color-1)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="2"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="2"]{color:var(--color-2)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="3"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="3"]{color:var(--color-3)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="4"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="4"]{color:var(--color-4)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="5"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="5"]{color:var(--color-5)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="6"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="6"]{color:var(--color-6)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="0"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="0"]{background-color:var(--background-color-0)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="1"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="1"]{background-color:var(--background-color-1)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="2"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="2"]{background-color:var(--background-color-2)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="3"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="3"]{background-color:var(--background-color-3)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="4"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="4"]{background-color:var(--background-color-4)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="5"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="5"]{background-color:var(--background-color-5)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="6"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="6"]{background-color:var(--background-color-6)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="7"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="7"]{background-color:var(--background-color-7)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="8"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="8"]{background-color:var(--background-color-8)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="9"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="9"]{background-color:var(--background-color-9)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="10"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="10"]{background-color:var(--background-color-10)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="11"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="11"]{background-color:var(--background-color-11)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="12"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="12"]{background-color:var(--background-color-12)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="13"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="13"]{background-color:var(--background-color-13)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="14"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="14"]{background-color:var(--background-color-14)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].inputting-insertion>span[data-type=insertion-content]{border-bottom:1px solid var(--primary-color)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion{width:0px;position:relative;display:inline-block;vertical-align:text-bottom;overflow:visible;height:1em}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content]{position:absolute;color:transparent;width:3px;left:-3px;border-right:var(--cursor-color) 1px solid;text-overflow:clip;display:inline-block;top:-5px;bottom:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content] span[data-cursor-name]{display:inline-block;width:8px;background-color:transparent;border:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content] span[data-cursor-name]:hover:before,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion.active>span[data-type=insertion-content] span[data-cursor-name]:before{content:attr(data-cursor-name);position:absolute;top:-12px;height:1.1em;background-color:var(--cursor-color);z-index:27;left:0px;color:#fff;white-space:nowrap;font-size:12px;display:flex;align-items:center;padding:1px 4px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=box-content]{border-radius:2px;margin-left:8px;margin-right:8px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=editor-box].br-box>span[data-type=box-content] img{vertical-align:middle;max-width:1em}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=editor-box][data-box-type=image].image-box span[data-type=box-content]{user-select:none;margin-left:0;margin-right:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-tools] .editor-block-anchor{position:absolute}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-background] .editor-selection-background{position:absolute;background-color:var(--background-selection);z-index:1;pointer-events:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block{cursor:default}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.hover>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block.hover>div[data-type=block-content]{outline:1px solid #0064ff}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block>div[data-type=block-content]{display:flex}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.hover .embed-hover-content{outline:1px solid #0064ff}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected .embed-selected-content{position:relative}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected>div[data-type=block-content]:before,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected .embed-selected-content:before{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#0064ff;opacity:.1}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block{color:#909090;font-size:12px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block>div[data-type=block-content]{padding:5px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]{border-left:4px solid #d4d6d9;color:#87888a}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]:not([data-list-level]){padding-left:8px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="1"]{--font-size: 28px;--line-height: 1.5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="1"]:not(:first-child){margin-top:24px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="2"]{--font-size: 26px;--line-height: 1.5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="2"]:not(:first-child){margin-top:24px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="3"]{--font-size: 24px;--line-height: 1.5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="3"]:not(:first-child){margin-top:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="4"]{--font-size: 22px;--line-height: 1.5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="4"]:not(:first-child){margin-top:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="5"]{--font-size: 20px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="5"]:not(:first-child){margin-top:16px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="6"]{--font-size: 18px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="6"]:not(:first-child){margin-top:16px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="7"]{--font-size: 16px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="8"]{--font-size: 14px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading]{font-size:var(--font-size);line-height:var(--line-height);font-weight:700}.editor-disable-scroll{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:9900;overflow:hidden}div.editor-root>div.editor-content>div[data-type=editor-container]>div.container-blocks>div[data-type=editor-block][data-document-title]{font-size:30px;line-height:1.3}div.comment-editor-root div.root.select-all>.container-blocks>div[data-type=editor-block]:first-of-type{background-color:var(--background-selection)}div.comment-editor-root div.root.select-all>.container-blocks>div[data-type=editor-block]:first-of-type div[data-type=block-background]>.editor-selection-background{background-color:transparent!important}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-anchor{position:absolute;pointer-events:none;z-index:-1}.editor-command-bar.toolbar .color-button{width:24px;height:24px;display:flex;padding:0;margin:0;align-items:center;justify-content:center;background-color:transparent;border:0;outline:0;border-radius:3px;cursor:pointer;color:#2d2d2e}.editor-command-bar.toolbar .color-button[data-color="0"]{color:var(--color-0)}.editor-command-bar.toolbar .color-button[data-color="1"]{color:var(--color-1)}.editor-command-bar.toolbar .color-button[data-color="2"]{color:var(--color-2)}.editor-command-bar.toolbar .color-button[data-color="3"]{color:var(--color-3)}.editor-command-bar.toolbar .color-button[data-color="4"]{color:var(--color-4)}.editor-command-bar.toolbar .color-button[data-color="5"]{color:var(--color-5)}.editor-command-bar.toolbar .color-button[data-color="6"]{color:var(--color-6)}.editor-command-bar.toolbar .color-button[data-background-color="0"]{background-color:var(--background-color-0)}.editor-command-bar.toolbar .color-button[data-background-color="1"]{background-color:var(--background-color-1)}.editor-command-bar.toolbar .color-button[data-background-color="2"]{background-color:var(--background-color-2)}.editor-command-bar.toolbar .color-button[data-background-color="3"]{background-color:var(--background-color-3)}.editor-command-bar.toolbar .color-button[data-background-color="4"]{background-color:var(--background-color-4)}.editor-command-bar.toolbar .color-button[data-background-color="5"]{background-color:var(--background-color-5)}.editor-command-bar.toolbar .color-button[data-background-color="6"]{background-color:var(--background-color-6)}.editor-command-bar.toolbar .color-button[data-background-color="7"]{background-color:var(--background-color-7)}.editor-command-bar.toolbar .color-button[data-background-color="8"]{background-color:var(--background-color-8)}.editor-command-bar.toolbar .color-button[data-background-color="9"]{background-color:var(--background-color-9)}.editor-command-bar.toolbar .color-button[data-background-color="10"]{background-color:var(--background-color-10)}.editor-command-bar.toolbar .color-button[data-background-color="11"]{background-color:var(--background-color-11)}.editor-command-bar.toolbar .color-button[data-background-color="12"]{background-color:var(--background-color-12)}.editor-command-bar.toolbar .color-button[data-background-color="13"]{background-color:var(--background-color-13)}.editor-command-bar.toolbar .color-button[data-background-color="14"]{background-color:var(--background-color-14)}.tippy-content{white-space:pre-line}.editor-button{min-height:26px;min-width:46px;font-size:12px;font-weight:400;outline:none;background-color:#fff;color:#606060;border:1px solid #c7c7c7;padding:4px 8px;border-radius:4px;margin-right:8px;cursor:pointer}.editor-button:disabled{cursor:not-allowed;opacity:.5;background-color:#e8e8e8}.editor-button:not(:disabled):hover{border:1px solid #0064ff;background-color:#eaf3fc;color:#0064ff}.editor-button.primary{font-weight:500;border:1px solid rgba(0,0,0,0);background-color:var(--editor-button-bg-color, #0064ff);color:var(--editor-button-color, #fff)}.editor-button.primary:not(:disabled):hover{background-color:#408cff;border:1px solid rgba(0,0,0,0);color:var(--editor-button-color, #fff)}.editor-button.primary:disabled{cursor:not-allowed;opacity:.5}.editor-button.primary:not(:disabled):active{background-color:#0053cf;color:#fff;border-color:#2872b7}.editor-button:last-child{margin-right:0}.editor-button:not(:disabled):active{background-color:#cfe2ff;color:#0053cf;border-color:#0053cf}@keyframes editorLoadingCircle{0%{transform-origin:50% 50%;transform:rotate(0)}to{transform-origin:50% 50%;transform:rotate(360deg)}}.editor-loading-icon>svg{color:#0064ff;font-size:1em;animation:editorLoadingCircle .8s linear infinite}.editor-checkbox-wrapper{display:flex;height:14px;width:14px;border:none;background-color:transparent;outline:none;padding:0;overflow:visible;box-sizing:border-box;cursor:pointer}.editor-checkbox-wrapper .editor-checkbox{display:block;width:inherit;height:inherit}.editor-checkbox-wrapper .editor-checkbox>.editor-checkbox-inner{display:block;box-sizing:border-box;border:1px solid #c7c7c7;border-radius:3px;height:100%;width:100%;position:relative;left:0;top:0;transition:all .3s}.editor-checkbox-wrapper:not(.checked)>span.editor-checkbox:hover>span.editor-checkbox-inner{border-color:#0064ff}.editor-checkbox-wrapper.checked>.editor-checkbox{position:relative}.editor-checkbox-wrapper.checked>.editor-checkbox:after{animation:editorCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;border:1px solid #0064ff;border-radius:3px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;box-sizing:border-box}.editor-checkbox-wrapper.checked>.editor-checkbox>span.editor-checkbox-inner{border-color:#0064ff;background-color:#0064ff}.editor-checkbox-wrapper.checked>.editor-checkbox>span.editor-checkbox-inner:after{width:5px;height:10px;left:2px;top:5px;border:2px solid #fff;border-left:0;border-top:0;content:" ";display:table;opacity:1;position:absolute;box-sizing:border-box;transform:rotate(45deg) scale(1) translate(-50%,-50%)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}[data-theme=dropdown-list]{border-radius:4px;background:white;position:relative;max-width:calc(100vw - 24px);box-shadow:#0f0f0f0d 0 0 0 1px,#0f0f0f1a 0 3px 6px,#0f0f0f33 0 9px 24px;overflow:hidden}[data-theme=dropdown-list] .tippy-content{padding:0;background:white;color:#2d2d2e}[data-theme=dropdown-list] .tippy-content .editor-command-bar{max-height:50vh}[data-theme=dropdown-list] .filterable-list{min-width:100px;max-width:300px;display:flex;flex-direction:column;max-height:100%}[data-theme=dropdown-list] .filterable-list .filter{padding:8px}[data-theme=dropdown-list] .filterable-list .filter .filter-container{width:100%;font-size:14px;line-height:20px;padding:3px 6px;position:relative;border-radius:3px;box-shadow:#0f0f0f1a 0 0 0 1px inset;cursor:text;height:28px;box-sizing:border-box;display:flex;align-items:center}[data-theme=dropdown-list] .filterable-list .filter .filter-container input.filter-input{border:none;outline:none;flex-grow:1;background:#ffffff}[data-theme=dropdown-list] .filterable-list .list{max-height:60vh;overflow-y:auto;padding:0 0 8px}[data-theme=dropdown-list] .filterable-list .list .list-item{user-select:none;transition:background 20ms ease-in 0s;cursor:pointer;width:100%;border-radius:3px;height:34px;padding:6px 10px;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box}[data-theme=dropdown-list] .filterable-list .list .list-item .list-text{white-space:nowrap}[data-theme=dropdown-list] .filterable-list .list .list-item:hover{background:rgba(0,36,90,.04)}[data-theme=dropdown-list] .filterable-list .list .list-item.selected{color:#0064ff}[data-theme=dropdown-list] .filterable-list .list .list-item.disabled{color:#c1c1c1}[data-theme=dropdown-list] .filterable-list .list .list-item.disabled:hover{background:transparent}[data-theme=dropdown-list] .filterable-list .list .list-item .list-item-selected-icon{display:flex;background:transparent;border:none;color:#0064ff}::placeholder{color:#bbb}.toast{font-family:Avenir,Helvetica,Arial,sans-serif;visibility:hidden;min-width:250px;margin-left:-125px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:8px;position:fixed;z-index:1;left:50%;bottom:30px}.toast.show{visibility:visible;animation:toast_fade_in .5s,toast_fade_out .5s 2.5s}.toast.positioned.show{animation:toast_fade_in_positioned .5s,toast_fade_out_positioned .5s 2.5s}.toast.positioned{bottom:unset}@keyframes toast_fade_in{0%{bottom:0;opacity:0}to{bottom:30px;opacity:1}}@keyframes toast_fade_out{0%{bottom:30px;opacity:1}to{bottom:0;opacity:0}}@keyframes toast_fade_in_positioned{0%{opacity:0}to{opacity:1}}@keyframes toast_fade_out_positioned{0%{opacity:1}to{opacity:0}}div.tippy-box[data-theme=toolbar] .tippy-content,div.tippy-box[data-theme=menu] .tippy-content{padding:0}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar.menu{min-width:180px}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar.menu .menu-item{cursor:pointer}div.tippy-box[data-theme=menu] .tippy-arrow{z-index:2}div.tippy-box[data-theme=menu] .tippy-arrow:before{content:"";display:block;width:0px;height:0px;position:absolute;top:-16px;border-width:8px;border-bottom-color:#fff}div.tippy-box[data-theme=menu] .tippy-arrow:after{content:" ";display:block;position:absolute;left:2px;top:-5px;box-shadow:-1px -1px 2px #3030300f;width:12px;height:12px;transform:rotate(45deg)}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar-root,div.tippy-box[data-theme=toolbar] .tippy-content .editor-command-bar-root{box-shadow:0 0 1px #30303040,0 12px 24px #30303026}div.tippy-box[data-theme=toolbar] .tippy-content .editor-command-bar-root{overflow:initial}div.tippy-box button{outline:none}.editor-command-bar-root{display:flex;flex-direction:column;align-items:flex-start;background:#ffffff;border-radius:2px;max-height:50vh;overflow:auto}.editor-command-bar-root.scrollable-bar>.editor-command-bar.menu{overflow-y:auto}.editor-command-bar{pointer-events:all;display:flex;box-sizing:border-box;--text-color: #606060;--primary-color: #0064ff;--selected-color: #f8f8f8;--separator-color: #e8e8e8;--warn-color: #fdf4f4}.editor-command-bar.fixed.toolbar{box-shadow:none}.editor-command-bar.menu{flex:1;width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:5px 0}.editor-command-bar.menu .command-item.standard{color:#2d2d2e;user-select:none;transition:background 20ms ease-in 0s;width:100%;height:32px;padding:6px 10px;display:flex;align-items:center;box-sizing:border-box}.editor-command-bar.menu .command-item.standard .menu-item-icon{align-items:center;height:24px;width:24px;margin-right:5px;margin-top:-2px;display:flex;flex-direction:column;justify-content:center}.editor-command-bar.menu .command-item.standard .menu-item-name{white-space:nowrap;flex-grow:1;display:flex;align-items:center}.editor-command-bar.menu .command-item.standard .item-subtext{color:#909090}.editor-command-bar.menu .command-item.standard .menu-item-sub-indicator{display:flex;align-items:center;justify-content:center}.editor-command-bar.menu .command-item.standard .menu-item-sub-indicator svg{width:16px;height:16px}.editor-command-bar.menu .command-item.standard.disabled{color:#c7c7c7;cursor:not-allowed}.editor-command-bar.menu .command-item.standard.disabled .menu-item-icon{color:#c7c7c7}.editor-command-bar.menu .command-item.separator{height:1px;margin:4px 0;background-color:#dfe1e5;width:100%}.editor-command-bar.menu .command-item.section{font-size:.8em;color:#ccc;padding:5px 5px 5px 10px;cursor:initial;user-select:none}.editor-command-bar.menu .command-item.selected{background-color:#00245a0a}.editor-command-bar.menu .command-item.selected[data-id=delete]:not(.disabled){color:#e52727;background-color:var(--warn-color)}.editor-command-bar.menu .command-item.selected[data-id=delete]:not(.disabled) svg{color:#e52727}.editor-command-bar.menu .command-item.selected.disabled{background-color:transparent}.editor-command-bar.menu .command-item.checked{color:#0064ff}.editor-command-bar.menu .command-item.checked .menu-item-checked-icon{display:flex;align-items:center;justify-content:center;margin-left:10px}.editor-command-bar.menu .command-item.checked.disabled{color:#c7c7c7}.editor-command-bar.menu .command-item span.highlight{color:#eb3723}.editor-command-bar.toolbar{display:flex;flex-direction:row;align-items:flex-start;padding:5px 10px;gap:5px;background:#ffffff;box-shadow:0 0 1px #30303033,0 8px 16px #30303026;border-radius:3px}.editor-command-bar.toolbar .command-item{background:transparent;border:none;display:flex;align-items:center;justify-content:center;color:#2d2d2e;height:24px;padding:0;cursor:pointer;border-radius:3px;min-width:24px}.editor-command-bar.toolbar .command-item.selected:not(.disabled){background-color:#00245a0a}.editor-command-bar.toolbar .command-item:active:not(.disabled){background-color:#00245a0f}.editor-command-bar.toolbar .command-item.disabled{color:#c7c7c7}.editor-command-bar.toolbar .command-item.checked{color:#0064ff}.editor-command-bar.toolbar .command-item.checked.disabled{color:#c7c7c7}.editor-command-bar.toolbar .command-item.separator{margin:auto 2px;height:15px;min-width:1px;width:1px;background-color:#dfe1e5;padding:0;pointer-events:none;cursor:default}.editor-command-bar.toolbar .command-item .toolbar-item-name-container{display:flex;flex-direction:row;align-items:center}.editor-command-bar.toolbar .command-item .toolbar-item-icon-container{display:flex}.editor-command-bar.toolbar .command-item[data-dropdown=true]{padding-left:4px;padding-right:4px}.editor-command-bar.toolbar .command-item[data-dropdown=true] .toolbar-item-icon-container{width:24px;height:24px;align-items:center;justify-content:center}.editor-command-bar.toolbar .command-item .toolbar-item-dropdown-container{display:flex}.editor-command-bar.toolbar .command-item .toolbar-item-dropdown-container svg{transform:rotate(360deg);transition:transform .2s linear}.editor-command-bar.toolbar .command-item.active .toolbar-item-dropdown-container svg{transform:rotate(180deg)}.editor-command-bar.toolbar .command-item[data-button-id=turn-into] .toolbar-item-name-container,.editor-command-bar.toolbar .command-item[data-button-id=align] .toolbar-item-name-container{width:24px;height:24px}.editor-command-bar.toolbar .editor-button+.editor-button{margin-left:5px}.editor-command-bar.footer{width:100%}.reference-hidden .tippy-box[data-reference-hidden]{opacity:0;pointer-events:none;transition:none}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.editor-dropdown{display:flex;align-items:center;border:1px solid #c7c7c7;border-radius:3px;font-size:14px;width:200px;height:30px}.editor-dropdown *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.editor-dropdown .dropdown-text,.editor-dropdown .dropdown-input{flex-grow:1;padding:2px 8px;border:none;outline:none;background:transparent;font-size:14px;color:#303030;min-width:0;flex-shrink:1}.editor-dropdown .dropdown-text{margin-right:4.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;cursor:text;line-height:24px}.editor-dropdown:hover{border-color:#0064ff}.editor-dropdown.active{border-color:#0064ff;box-shadow:0 0 0 2px #338fe533}.editor-dropdown.active .dropdown-text{display:none}.editor-dropdown.active .dropdown-icon svg{color:#0064ff;transform:rotate(180deg)}.editor-dropdown:not(.active) .dropdown-input{display:none}.editor-dropdown .dropdown-labels{display:flex;align-items:center;flex-shrink:0}.editor-dropdown .dropdown-labels .dropdown-label{color:#0064ff;background-color:#eaf3fc;height:20px;padding:0 5px;border-radius:3px;display:flex;align-items:center}.editor-dropdown .dropdown-labels .dropdown-label+.dropdown-label{margin-left:5px}.editor-dropdown .dropdown-clear-icon,.editor-dropdown .dropdown-icon{flex-shrink:0;width:16px;height:16px;margin-left:8px;display:flex;align-items:center;justify-content:center;cursor:pointer}.editor-dropdown .dropdown-clear-icon{color:#909090}.editor-dropdown .dropdown-clear-icon:hover{color:#0064ff}.editor-dropdown.empty .dropdown-clear-icon,.editor-dropdown:not(:hover) .dropdown-clear-icon{display:none}.editor-dropdown.empty .dropdown-text{color:#909090}.editor-dropdown .dropdown-icon{margin-right:8px}.editor-dropdown .dropdown-icon svg{transform:rotate(360deg);transition:transform .2s linear}.scale-border:after,.color-palette .palette-container-row .background-color-button.selected:after,.color-palette .palette-container-row .background-color-button:hover:after{content:"";outline:1px solid #0064ff;border-radius:3px;position:absolute;left:0;right:0;top:0;bottom:0;transform:scale(1.1)}.color-palette{display:flex;flex-direction:column;align-items:center;padding-top:5px;background-color:#fff;--active-color: #2872b7}.color-palette .bar-desc{box-sizing:border-box;width:100%;height:24px;padding-left:10px;margin-bottom:10px;line-height:24px;font-size:12px;font-weight:500;background:#f8f8f8;color:#909090}.color-palette .palette-container{padding:0 10px}.color-palette .background-color .palette-container-row:first-child{margin-bottom:5px}.color-palette .palette-container-row{display:flex;flex-direction:row;margin-bottom:20px}.color-palette .palette-container-row .color-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;background-color:#fff;border:1px solid #f0f0f0;display:flex;margin:0;padding:0;align-items:center;justify-content:center}.color-palette .palette-container-row .color-button:hover{border:1px solid #0064ff}.color-palette .palette-container-row .color-button.selected{border:1px solid var(--primary-color)}.color-palette .palette-container-row .color-button[data-color-index="-1"]{color:var(--text-color)}.color-palette .palette-container-row .color-button[data-color-index="0"]{color:var(--color-0)}.color-palette .palette-container-row .color-button[data-color-index="1"]{color:var(--color-1)}.color-palette .palette-container-row .color-button[data-color-index="2"]{color:var(--color-2)}.color-palette .palette-container-row .color-button[data-color-index="3"]{color:var(--color-3)}.color-palette .palette-container-row .color-button[data-color-index="4"]{color:var(--color-4)}.color-palette .palette-container-row .color-button[data-color-index="5"]{color:var(--color-5)}.color-palette .palette-container-row .color-button[data-color-index="6"]{color:var(--color-6)}.color-palette .palette-container-row .background-color-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;position:relative}.color-palette .palette-container-row .background-color-button.selected:after{outline:1px solid var(--primary-color)}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]{position:relative;background-color:#fff;border:1px solid #e8e8e8}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]:after{transform:scale(1.2)}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]:before{content:"";position:absolute;width:1px;height:56px;top:2px;left:22px;background-color:#c7c7c7;transform:rotate(45deg) scale(.5);transform-origin:-1px -2px}.color-palette .palette-container-row .background-color-button[data-color-index="0"]{background-color:var(--background-color-0)}.color-palette .palette-container-row .background-color-button[data-color-index="1"]{background-color:var(--background-color-1)}.color-palette .palette-container-row .background-color-button[data-color-index="2"]{background-color:var(--background-color-2)}.color-palette .palette-container-row .background-color-button[data-color-index="3"]{background-color:var(--background-color-3)}.color-palette .palette-container-row .background-color-button[data-color-index="4"]{background-color:var(--background-color-4)}.color-palette .palette-container-row .background-color-button[data-color-index="5"]{background-color:var(--background-color-5)}.color-palette .palette-container-row .background-color-button[data-color-index="6"]{background-color:var(--background-color-6)}.color-palette .palette-container-row .background-color-button[data-color-index="7"]{background-color:var(--background-color-7)}.color-palette .palette-container-row .background-color-button[data-color-index="8"]{background-color:var(--background-color-8)}.color-palette .palette-container-row .background-color-button[data-color-index="9"]{background-color:var(--background-color-9)}.color-palette .palette-container-row .background-color-button[data-color-index="10"]{background-color:var(--background-color-10)}.color-palette .palette-container-row .background-color-button[data-color-index="11"]{background-color:var(--background-color-11)}.color-palette .palette-container-row .background-color-button[data-color-index="12"]{background-color:var(--background-color-12)}.color-palette .palette-container-row .background-color-button[data-color-index="13"]{background-color:var(--background-color-13)}.color-palette .palette-container-row .background-color-button[data-color-index="14"]{background-color:var(--background-color-14)}.color-palette .palette-container-row .color-button+.color-button{margin-left:5px}.color-palette .palette-container-row .background-color-button+.background-color-button{margin-left:5px}.color-palette .clear-button-container{box-sizing:border-box;width:100%;margin-bottom:5px;padding:0 10px}.color-palette .clear-button-container .clear-button{box-sizing:border-box;padding:3px 10px;width:100%;height:26px;background:#ffffff;color:#575859;border:1px solid #bebfc2;border-radius:3px;cursor:pointer}.color-palette .clear-button-container .clear-button:hover{color:#0064ff;background:#e3eeff;border:1px solid #0064ff}.color-palette .clear-button-container .clear-button:active{color:#0053cf;background:#cfe2ff;border:1px solid #0053cf}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar.menu .menu-item[data-id=text-color-palette-item]{cursor:default}.editor-input-wrap .editor-input-label{margin-top:8px;margin-bottom:8px;position:relative;font-weight:500}.editor-input-wrap .editor-input-label.required:before{content:"*";color:#e82100;position:absolute;left:-8px;top:3px}.editor-input-wrap .editor-input-label .span{font-size:14px;line-height:1.4;font-weight:700;color:#303030}.editor-input-wrap .editor-input-container{display:flex;border:none;border-radius:4px;padding:4px;background-color:#fff;position:relative}.editor-input-wrap .editor-input-container .editor-input{outline:none;border:1px solid #c7c7c7;border-radius:3px;padding:4px 10px;font-size:14px;line-height:1.4;color:#000;width:100%}.editor-input-wrap .editor-input-container .editor-input:focus{border-color:#0064ff;box-shadow:0 0 0 2px #338fe533}.editor-input-wrap .editor-input-container .editor-input-suffix{height:100%;position:absolute;top:0px;right:10px;display:flex;align-items:center;color:#87888a;font-size:12px}.editor-input-wrap .editor-input-container .editor-input-suffix+.editor-input{padding-right:50px}.editor-input-wrap.error .editor-input-container{border:1px solid #e82100}.editor-input-wrap.error .editor-input-container .editor-input{border:none;outline:none;box-shadow:unset}.editor-input-wrap.error .editor-input-error{margin-top:8px;color:red;display:block}.editor-input-wrap .editor-input-error{display:none}div.scroll-container-root{position:relative}div.scroll-container-root>div.scroll-container{position:relative;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;line-height:0px}div.scroll-container-root>div.scroll-container>.scroll-area{position:relative;display:inline-block;overflow:hidden;line-height:normal}div.scroll-container-root>div.scroll-container{scrollbar-width:none}div.scroll-container-root>div.scroll-container::-webkit-scrollbar{height:0;opacity:0}div.scroll-container-root>div.container-scroll-tool .container-border-shadow{position:absolute;top:0;opacity:0;width:0;border:none;pointer-events:none;transition:opacity 50ms ease-in;z-index:1}div.scroll-container-root>div.container-scroll-tool .container-right-border-shadow{right:0;background:linear-gradient(90deg,rgba(31,35,41,0) 0,rgba(31,35,41,.1));border-right:0px solid #dee0e3}div.scroll-container-root>div.container-scroll-tool .container-left-border-shadow{left:0;background:linear-gradient(270deg,rgba(31,35,41,0) 0,rgba(31,35,41,.1));border-left:0px solid #dee0e3}div.scroll-container-root>div.container-scroll-tool .container-border-shadow.active{width:8px;opacity:1}div.scroll-container-root>div.container-scroll-tool .container-right-border-shadow.active{border-right-width:1px}div.scroll-container-root>div.container-scroll-tool .container-left-border-shadow.active{border-left-width:1px}div.scroll-container-root>div.container-scroll-tool .container-scrollbar{position:absolute;left:0;z-index:1000;visibility:visible;overflow-x:auto;overflow-y:hidden;cursor:auto}div.scroll-container-root>div.container-scroll-tool .container-scrollbar div{height:1px}div.scroll-container-root>div.container-scroll-tool div.container-scrollbar.fixed{position:fixed}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar{opacity:.6;transition:opacity .1s ease-in-out}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar{height:8px}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-track{background-color:transparent}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-thumb{background-color:#646a73cc;border-radius:8px}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-button{display:none}[data-tippy-root]{font-family:Avenir,Helvetica,Arial,sans-serif}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text]{width:unset}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text].selected:hover{background-color:transparent}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text] .link-href-button{max-width:275px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#303030;text-decoration:none}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text] .link-href-button:hover{text-decoration:underline}[data-command-bar-id=quick-menu],[data-command-bar-id=empty-block-menu]{box-sizing:border-box;width:240px}[data-command-bar-id=quick-menu] .command-item.menu-item,[data-command-bar-id=empty-block-menu] .command-item.menu-item{width:100%;cursor:pointer}[data-command-bar-id=quick-menu] .command-item.menu-item.section,[data-command-bar-id=empty-block-menu] .command-item.menu-item.section{height:24px;padding:0 10px;font-weight:500;font-size:12px;line-height:24px;color:#87888a;background:#F7F8FA;min-height:initial;box-sizing:border-box;margin:5px 0}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item{color:#303030;display:flex;width:100%;padding:6px 10px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container{display:flex;align-items:center;justify-content:center;padding-right:6px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container .quick-menu-item-icon,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container .quick-menu-item-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content{flex-grow:1;display:flex;flex-direction:column;justify-content:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1{display:flex;align-items:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-name,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-name{flex-grow:1;font-size:14px;line-height:22px;color:#303030}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-subtext,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-subtext{color:#87888a}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .quick-menu-item-submenu-icon,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .quick-menu-item-submenu-icon{display:flex;align-items:center;margin-left:12px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2{margin-top:5px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2 .item-markdown,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2 .item-markdown{color:#b2bccd}[data-command-bar-id=quick-menu] .command-item.menu-item[data-id=placeholder] .quick-menu-item-icon-container,[data-command-bar-id=empty-block-menu] .command-item.menu-item[data-id=placeholder] .quick-menu-item-icon-container{display:none}[data-command-bar-id=quick-menu] .command-item.menu-item[data-id=placeholder] .item-name.text,[data-command-bar-id=empty-block-menu] .command-item.menu-item[data-id=placeholder] .item-name.text{color:#909090!important;padding:5px 0}[data-command-bar-id=block-menu]{width:240px}[data-command-bar-id=quick-menu] div.command-item>div.menu-item-name{color:#2d2d2e}[data-command-bar-id=quick-menu] div.command-item>div.menu-item-icon{color:#2d2d2e}[data-command-bar-id=quick-menu] div.command-item.section:first-of-type{margin-top:0}div.tippy-box[data-theme=editor-tooltip]{background-color:#303030;opacity:.8;font-size:12px;border-radius:3px}div.tippy-box[data-theme=editor-tooltip] .editor-tooltip-desc{display:block;margin-top:2px;color:#fff;opacity:.5}div.tippy-box[data-theme=editor-tooltip]>.tippy-arrow:before{transform:scale(.8)}div.tippy-box[data-theme=editor-tooltip]>.tippy-content{padding:4px 10px}:root div.tippy-box[data-theme=editor-tooltip]>.tippy-content{font-weight:500}:root div.tippy-box[data-theme=editor-tooltip]>.tippy-content>div>span:nth-of-type(2){font-weight:400}.link-popup-content{padding:10px 7px}.link-popup-content .link-popup-gap{margin-top:16px}.link-popup-content .editor-input-container{padding:4px 0}.link-popup-content .editor-input-container .editor-input{width:330px;line-height:1.5}.link-popup-content .editor-input-wrap .editor-input-label{margin-bottom:4px}.link-popup-content .link-popup-footer{margin:10px 0 5px;text-align:right}.link-popup-content .link-popup-footer button{min-height:30px;border-radius:3px;font-size:14px;padding:4px 15px}:root{--mindmap-bg-color: #f0f2f4}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.focused [data-type=block-tools] .editor-mindmap-svg{border-radius:3px;outline:1px solid #0064ff}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.editor-in-mindmap-first{height:600px;min-width:150px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-content]{margin-right:24px;transition:background-color .25s linear}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .editor-mindmap-svg{position:absolute;left:0;top:0;right:0;bottom:0;z-index:2;font-size:14px;background-color:var(--mindmap-bg-color)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar{position:absolute;top:8px;right:8px;height:24px;z-index:3}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar .editor-button.mindmap-button{background-color:transparent;outline:none;border:none;fill:none;color:#c1c1c1;cursor:pointer;min-width:initial;margin-right:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar .editor-button.mindmap-button:hover{color:#5587f0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.to-mindmap-highlight [data-type=block-content],.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.to-mindmap-highlight:hover [data-type=block-content]{background-color:#eaf3fc}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap{position:absolute;right:0;top:2px;display:flex;align-items:center;height:calc(var(--font-size) * var(--line-height))}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap{display:flex;flex-direction:row;justify-content:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap>button.editor-button[data-button-id=mention-button]:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap>button.editor-button[data-button-id=list-to-mindmap]:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap>button.editor-button[data-button-id=mention-button]:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap>button.editor-button[data-button-id=list-to-mindmap]:hover{background:rgba(0,36,90,.0392156863);border-radius:3px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap>button.editor-button[data-button-id=mention-button]:active:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap>button.editor-button[data-button-id=list-to-mindmap]:active:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap>button.editor-button[data-button-id=mention-button]:active:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap>button.editor-button[data-button-id=list-to-mindmap]:active:hover{background:rgba(0,36,90,.0588235294)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-to-mindmap],.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=mention-button]{flex-grow:0;flex-shrink:0;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border:0;outline:0;display:flex;align-items:center;justify-content:center;background-color:transparent;color:#07142a}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-to-mindmap] svg,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=mention-button] svg{width:16px;height:16px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-block-mention]:hover>svg{cursor:initial;background-color:#eee}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button+button[data-button-id=list-block-mention]{right:20px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="1"]{padding-left:24px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="1"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="2"]{padding-left:48px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="2"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="3"]{padding-left:72px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="3"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="4"]{padding-left:96px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="4"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="5"]{padding-left:120px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="5"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="6"]{padding-left:144px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="6"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="7"]{padding-left:168px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="7"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="8"]{padding-left:192px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="8"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="9"]{padding-left:216px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="9"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="10"]{padding-left:240px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="10"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="11"]{padding-left:264px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="11"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="12"]{padding-left:288px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="12"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=list][data-list-level="1"]{padding-left:0}div.editor-root div.editor-content div[data-block-type=list][data-list-level="2"]{padding-left:24px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="3"]{padding-left:48px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="4"]{padding-left:72px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="5"]{padding-left:96px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="6"]{padding-left:120px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="7"]{padding-left:144px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="8"]{padding-left:168px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="9"]{padding-left:192px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="10"]{padding-left:216px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="11"]{padding-left:240px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="12"]{padding-left:264px}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="1"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="2"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="3"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="4"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="5"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="6"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="7"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="8"]>div.list-container>button.list-marker{font-weight:700}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block+div[data-type=editor-block].list-block{margin-top:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block{display:flex;padding-bottom:2px;padding-top:2px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=text-only] .list-container{pointer-events:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] div[data-type=block-content] span.text{color:#c7c7c7}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unordered] .list-container .list-marker{font-family:PingFangSC-Regular,PingFang SC;justify-content:space-around}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper{font-feature-settings:"tnum";align-items:baseline;box-sizing:border-box;color:var(--gray-120);display:inline-flex;font-size:14px;font-variant:tabular-nums;line-height:1.5715;line-height:unset;list-style:none;margin:0;padding:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper>span.editor-check-box>span.editor-check-box-inner,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper>span.editor-check-box>span.editor-check-box-inner{border:1px solid #c7c7c7;border-collapse:initial;border-radius:3px;direction:ltr;display:block;height:14px;left:0;position:relative;top:0;transition:all .3s;width:14px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box{position:relative}@keyframes editorCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box:after,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box:after{animation:editorCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;border:1px solid #0064ff;border-radius:3px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;box-sizing:border-box}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box>span.editor-check-box-inner,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box>span.editor-check-box-inner{border-color:#0064ff;background-color:#0064ff}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box>span.editor-check-box-inner:after,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box>span.editor-check-box-inner:after{width:5px;height:10px;left:2px;top:5px;border:2px solid #fff;border-left:0;border-top:0;content:" ";display:table;opacity:1;position:absolute;box-sizing:border-box;transform:rotate(45deg) scale(1) translate(-50%,-50%)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-content]{position:relative;flex-grow:1;padding-left:2px;margin-right:29px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-container{display:flex;min-width:24px;align-items:center;justify-content:center;flex-shrink:0;border-radius:3px;height:calc(var(--font-size) * var(--line-height))}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-container .list-marker{min-width:16px;border:none;background-color:transparent;outline:none;display:flex;align-items:center;justify-content:flex-end;padding:0;overflow:visible;color:#0064ff;font-size:var(--font-size)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block div[data-type=block-tools] .block-helper{top:2px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=center]{justify-content:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=center]>div[data-type=block-content]{flex-grow:initial}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=right]{justify-content:flex-end}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=right]>div[data-type=block-content]{flex-grow:initial}.editor-root.readonly button[data-button-id=mindmap-close]{display:none}.editor-root:not(.readonly) div[data-type=editor-block].list-block.active .list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover .list-container{cursor:pointer}.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=ordered]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=ordered]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=unordered]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=unordered]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=unchecked]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=unchecked]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=checked]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=checked]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=ordered]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=ordered]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=unordered]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=unordered]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=unchecked]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=unchecked]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=checked]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=checked]>div[data-type=block-content]{background-color:#f8f8f8}.editor-root:not(.readonly) div[data-type=editor-block].list-block .list-container:hover .list-marker{cursor:pointer}.editor-root:not(.readonly) div[data-type=editor-block].list-block:not([data-list-type=unchecked]):not([data-list-type=checked]):not([data-list-type=unordered]) .list-container:hover{background:rgba(0,36,90,.04)}.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=unordered] .list-container:hover .list-marker{cursor:initial}.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper:not(.editor-check-list-wrapper-checked)>span.editor-check-box:hover>span.editor-check-box-inner{border-color:#0064ff}.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper,.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper{cursor:pointer}[data-tippy-root] .customize-start-panel{max-width:350px;padding:0 16px;color:#333;font-size:14px;line-height:21px;user-select:none;background-color:#fff!important}[data-tippy-root] .customize-start-panel-input{width:64px;margin:0 8px;border:1px solid #cfd6e1;height:24px;border-radius:3px;padding:1px 0 1px 8px;outline:none;color:inherit;background-color:#fff}[data-tippy-root] .customize-start-panel-button{min-width:40px;font-size:12px;min-height:30px;margin:0 8px 0 0;background-color:var(--primary-color);color:#fff;outline:none;border:none;padding:4px 8px;border-radius:4px;cursor:pointer}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block].list-block [data-type=block-content][data-content-placeholder]:before{left:2px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.math-box{display:inline-flex;vertical-align:middle;padding:2px 0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.math-box .mathjax-tex-text.mathjax-error{color:var(--color-0)}div.editor-root div.editor-content div[data-type=editor-container] .embed-block.selected[data-embed-type=math]>div[data-type=block-content].mathjax-overflow:before{width:var(--mathjax-width, "100%")}div.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-embed-type=math]>div[data-type=block-content]{align-items:center;justify-content:center;min-height:40px}div.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-embed-type=math]>div[data-type=block-content] img{margin:auto;padding:8px}.mathjax-editor-textarea{border:none;outline:none;width:400px;height:128px}div.editor-root div.editor-content div[data-type=editor-block],.status-box-editor-popup{--orange: #F59300;--orange-bkg: #FFF0D9;--grey: #87888A;--grey-bkg: #EDEFF2;--red: #EB3723;--red-bkg: #FFEAE8;--primary: #0064FF;--primary-bkg: #E3EEFF;--green: #00A865;--green-bkg: #D7F7EA;--purple: #8851ED;--purple-bkg: #F0E8FF}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box span[data-type=box-content]{margin-left:0;margin-right:0;padding-left:2.5px;padding-right:2.5px}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-yellow{background-color:var(--orange-bkg);color:var(--orange)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-yellow-subtle{color:#fff;background-color:var(--orange)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-grey{background-color:var(--grey-bkg);color:var(--grey)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-grey-subtle{color:#fff;background-color:var(--grey)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-red{background-color:var(--red-bkg);color:var(--red)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-red-subtle{color:#fff;background-color:var(--red)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-blue{background-color:var(--primary-bkg);color:var(--primary)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-blue-subtle{color:#fff;background-color:var(--primary)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-green{background-color:var(--green-bkg);color:var(--green)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-green-subtle{color:#fff;background-color:var(--green)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-purple{background-color:var(--purple-bkg);color:var(--purple)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-purple-subtle{color:#fff;background-color:var(--purple)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box>[data-type=box-content]{max-width:100%;display:inline-flex;align-items:center;vertical-align:top;position:relative;top:calc((var(--font-size) * var(--line-height) - 20px) / 2)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-common{max-width:100%;line-height:20px;padding:0 5px;border-radius:3px;font-size:12px;height:20px;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:inline-block;font-weight:500}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-common.box-status-empty{color:#87888a}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-common:hover{outline:1px solid #408CFF}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.history-deleted-box .box-status-common{text-decoration:line-through}.status-box-editor-popup{width:178px;padding-top:1px}.status-box-editor-popup .status-input input{caret-color:#0064ff}.status-box-editor-popup .scale-border:after,.status-box-editor-popup .status-color-palette .status-box-button.selected:after,.status-box-editor-popup .status-color-palette .status-box-button:hover:after{content:"";outline:1px solid #0064ff;border-radius:3px;position:absolute;left:0;right:0;top:0;bottom:0;transform:scale(1.1)}.status-box-editor-popup .status-color-palette{display:flex;padding:6px 4px 5px}.status-box-editor-popup .status-color-palette .status-box-button+.status-box-button{margin-left:5px}.status-box-editor-popup .status-color-palette .status-box-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;position:relative}.status-box-editor-popup .status-color-palette .status-box-button.selected:after{outline:1px solid var(--primary-color)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=grey]{background-color:var(--grey-bkg);border:1px solid var(--grey)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=blue]{background-color:var(--primary-bkg);border:1px solid var(--primary)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=yellow]{background-color:var(--orange-bkg);border:1px solid var(--orange)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=red]{background-color:var(--red-bkg);border:1px solid var(--red)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=green]{background-color:var(--green-bkg);border:1px solid var(--green)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=purple]{background-color:var(--purple-bkg);border:1px solid var(--purple)}[data-command-bar-id=status-box-popup] .tippy-content{padding-left:6px;padding-right:6px}div.editor-root.readonly div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-common{cursor:default}div.editor-root.readonly div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-common:hover{outline:none}.editor-text-button{border:0;color:var(--text-button-color, #c1c1c1);background-color:var(--text-button-bg-color, transparent);cursor:pointer;border-radius:var(--editor-border-radius, 3px);font-size:14px;padding:1px 6px;display:flex;align-items:center}.editor-text-button:hover{color:var(--text-button-color-hover, #5587F0);background-color:var(--text-button-bg-color-hover, transparent)}div[data-type=editor-block].table-block{--table-bar-width: 6px;--table-bar-left: -6px;--table-bar-top: -6px}div[data-type=editor-block].table-block>div[data-type=block-content]{position:relative;left:-26px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-resize-gripper,div[data-type=editor-block].table-block div[data-type=table-tools] .table-resize-gripper{position:absolute;background-color:transparent;cursor:col-resize;padding:0 2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-resize-gripper>.table-resize-gripper-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-resize-gripper>.table-resize-gripper-indicator{pointer-events:none;background-color:var(--primary-color);width:100%;height:100%}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container{position:absolute;background-color:transparent;z-index:10}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container.top{left:0;top:var(--table-bar-top);right:0;height:var(--table-bar-width);flex-direction:row}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container.left{top:20px;left:var(--table-bar-left);width:var(--table-bar-width);bottom:0;flex-direction:column}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar{position:absolute;left:0;top:0;right:0;bottom:0;cursor:pointer;display:flex}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar.left{flex-direction:column}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell{background-color:#dfe1e5;position:relative;flex-grow:0;flex-shrink:0}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.corner,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.corner{width:var(--table-bar-width);height:var(--table-bar-width)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.top{height:100%}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell:hover,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell:hover{background-color:#d4d6d9}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.selected,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.selected{background-color:#0064ff}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.danger,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.danger{background-color:#e52727}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root{position:relative}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.top{max-width:0;width:0;overflow:visible}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.top:last-child,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.top:last-child{margin-left:-2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.left{max-height:0;height:0;overflow:visible}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.left:last-child,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.left:last-child{margin-top:-2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container{position:absolute;width:26px;height:26px;display:flex;align-items:center;justify-content:center;z-index:1}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container.top{right:-14px;top:-22px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container.left{transform:rotate(270deg);left:-22px;bottom:-14px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .insert-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .insert-indicator{position:absolute;width:3px;height:3px;background:#e8e8e8;border-radius:50%;margin-top:6px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-indicator{display:none}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button{display:unset}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button span.icon,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button span.icon{margin-top:2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .drop-marker,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .drop-marker{opacity:1;transform:scale(.7)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker{width:26px;height:26px;border-radius:3px;background:#0064ff;cursor:pointer;opacity:0;transform:scale(.4);transition:transform .2s ease-in,opacity .2s ease-in}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:after,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:after{content:"";display:block;width:10px;height:2px;background-color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:before,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:before{content:"";display:block;width:2px;height:10px;background-color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}div[data-type=editor-block].table-block div[data-type=block-tools] .editor-table-chart,div[data-type=editor-block].table-block div[data-type=table-tools] .editor-table-chart{padding-top:16px}div[data-type=editor-block].table-block div[data-type=table-content]{position:relative}div[data-type=editor-block].table-block div[data-type=table-content]>.error{color:red;border:1px solid red;padding:8px}div[data-type=editor-block].table-block div[data-type=table-content]>table{border-collapse:collapse;border-spacing:0}div[data-type=editor-block].table-block div[data-type=table-content]>table colgroup col{min-width:40px}div[data-type=editor-block].table-block div[data-type=table-content]>table,div[data-type=editor-block].table-block div[data-type=table-content]>table td,div[data-type=editor-block].table-block div[data-type=table-content]>table th{border:1px solid #dfe1e5;background-color:transparent;background-clip:padding-box}div[data-type=editor-block].table-block div[data-type=table-content]>table tr td.danger{background-color:#fff6f5!important}div[data-type=editor-block].table-block div[data-type=table-content]>table td{min-width:40px;padding:0;position:relative}div[data-type=editor-block].table-block div[data-type=table-content]>table td .table-cell-menu-btn{display:none;position:absolute;right:2px;top:2px;padding:0;width:16px;height:16px;border:none;border-radius:3px;cursor:pointer;transform:rotate(0);transition:transform .2s;background-color:transparent;color:#575859}div[data-type=editor-block].table-block div[data-type=table-content]>table td .table-cell-menu-btn:hover{background-color:#e8e8e8}div[data-type=editor-block].table-block div[data-type=table-content]>table td .table-cell-menu-btn.active{transform:rotate(180deg);background:#f7f8fa}div[data-type=editor-block].table-block div[data-type=table-content]>table td>div[data-type=editor-container].child>div.container-blocks>*+*{margin-top:5px}div[data-type=editor-block].table-block div[data-type=table-content] .child{padding:8px}div[data-type=editor-block].table-block div[data-type=table-content] .child div[data-type=editor-block].table-block>div[data-type=block-content]{pointer-events:none}div[data-type=editor-block].table-block div[data-type=table-content] .child div[data-type=editor-block].table-block>div[data-type=block-content] .scroll-container{overflow:hidden}div[data-type=editor-block].table-block div[data-type=table-content] .child div[data-type=editor-block].table-block>div[data-type=block-content] div[data-type=table-content]{pointer-events:auto}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-0{background-color:var(--background-color-0)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-1{background-color:var(--background-color-1)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-2{background-color:var(--background-color-2)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-3{background-color:var(--background-color-3)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-4{background-color:var(--background-color-4)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-5{background-color:var(--background-color-5)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-6{background-color:var(--background-color-6)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-7{background-color:var(--background-color-7)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-8{background-color:var(--background-color-8)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-9{background-color:var(--background-color-9)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-10{background-color:var(--background-color-10)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-11{background-color:var(--background-color-11)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-12{background-color:var(--background-color-12)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-13{background-color:var(--background-color-13)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-14{background-color:var(--background-color-14)}div[data-type=editor-block].table-block div[data-type=table-content]>table.row-title>tbody>tr:first-child>td,div[data-type=editor-block].table-block div[data-type=table-content]>table.col-title td.col-title-item{background-color:#f7f8fa}div[data-type=editor-block].table-block div[data-type=table-content]>table.stripe:not(.row-title)>tbody>tr:nth-of-type(2n),div[data-type=editor-block].table-block div[data-type=table-content]>table.stripe.row-title>tbody>tr:nth-of-type(2n + 1){background-color:#f7f8fa}div[data-type=editor-block].table-block div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block div[data-type=table-content]>.no-border>tbody>tr>td{border:1px dashed;border-color:transparent}div[data-type=editor-block].table-block.focused div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block.focused div[data-type=table-content]>table.no-border>tbody>tr>td,div[data-type=editor-block].table-block.child-focused div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block.child-focused div[data-type=table-content]>table.no-border>tbody>tr>td{border-color:#b9bfc8}div[data-type=editor-block].table-block.full-selected>div[data-type=block-content]>.scroll-container-root>.scroll-container>.scroll-area>div[data-type=table-content]>table{background-color:var(--background-selection)}div[data-type=editor-block].table-block.full-selected>div[data-type=block-content]>.scroll-container-root>.scroll-container>.scroll-area>div[data-type=table-content]>table td,div[data-type=editor-block].table-block.full-selected>div[data-type=block-content]>.scroll-container-root>.scroll-container>.scroll-area>div[data-type=table-content]>table th,div[data-type=editor-block].table-block.full-selected>div[data-type=block-content]>.scroll-container-root>.scroll-container>.scroll-area>div[data-type=table-content]>table tr{background-color:transparent}div[data-type=editor-block].table-block div[data-type=table-content]>table tbody tr td.selected,div[data-type=editor-block].table-block div[data-type=table-content]>table.row-title tbody tr td.selected,div[data-type=editor-block].table-block div[data-type=table-content]>table.col-title tbody tr td.selected{background-color:var(--background-selection)}div[data-type=editor-block].table-block div[data-type=table-content]>table td div[data-type=editor-block].table-block div[data-type=table-content]>table{max-width:100%}.command-item.menu-item .table-creator{cursor:pointer;background-color:#fff;padding:0 5px}.command-item.menu-item .table-creator .table-creator-row{display:flex}.command-item.menu-item .table-creator .table-creator-row .table-creator-cell{width:16px;height:16px;margin:3px;border:solid 1px #ddd}.command-item.menu-item .table-creator .table-creator-row .table-creator-cell.active{background-color:#408cff}div.editor-root div.editor-content div[data-type=editor-container].root div[data-type=editor-block].table-block{margin-top:0}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color]{width:100%}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .bar-desc{display:none}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item{box-sizing:border-box;width:100%;height:32px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between;color:var(--text-color)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-sub-indicator{display:flex;align-items:center;margin-left:5px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-sub-indicator svg{height:16px;width:16px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;position:relative;margin-left:20px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]{position:relative;background-color:#fff;border:1px solid #e8e8e8}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]:after{transform:scale(1.2)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]:before{content:"";position:absolute;width:1px;height:56px;top:2px;left:22px;background-color:#c7c7c7;transform:rotate(45deg) scale(.5);transform-origin:-1px -2px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="0"]{background-color:var(--background-color-0)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="1"]{background-color:var(--background-color-1)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="2"]{background-color:var(--background-color-2)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="3"]{background-color:var(--background-color-3)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="4"]{background-color:var(--background-color-4)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="5"]{background-color:var(--background-color-5)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="6"]{background-color:var(--background-color-6)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="7"]{background-color:var(--background-color-7)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="8"]{background-color:var(--background-color-8)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="9"]{background-color:var(--background-color-9)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="10"]{background-color:var(--background-color-10)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="11"]{background-color:var(--background-color-11)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="12"]{background-color:var(--background-color-12)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="13"]{background-color:var(--background-color-13)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="14"]{background-color:var(--background-color-14)}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table]{background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.row-title>tbody>tr:first-child>td,div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.col-title td.col-title-item{background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.stripe:not(.row-title)>tbody>tr:nth-of-type(2n),div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.stripe.row-title>tbody>tr:nth-of-type(2n + 1){background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment{box-shadow:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment table{box-shadow:0 2px #f8e6ab}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment table table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment table table{box-shadow:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active{outline:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active table{border-bottom:none;outline:4px solid #f8e6ab}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active table table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active table table{box-shadow:none;outline:none}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content]:after,div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content]:after{display:none}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content] div[data-type=table-content],div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content] div[data-type=table-content]{position:relative}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content] div[data-type=table-content]:after,div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content] div[data-type=table-content]:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#2d2d2e;opacity:.3}.editor-root .editor-content div[data-type=editor-block].table-block div[data-type=block-tools] .block-helper{right:calc(100% + 5px);top:35px}[data-command-bar-id=table-row-column-toolbar] .editor-command-bar.toolbar{padding:4px}div.comment-editor-root div[data-type=editor-block].table-block>div[data-type=block-content]{left:0px}div[data-command-bar-id=table-row-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-rows].selected,div[data-command-bar-id=table-row-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-columns].selected{background-color:#fff6f5}div[data-command-bar-id=table-row-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-rows].selected svg,div[data-command-bar-id=table-row-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-columns].selected svg{color:#eb3723}div[data-command-bar-id=table-cell-menu] .tippy-box .tippy-content .editor-command-bar.menu .command-item.selected[data-id=delete-select-row],div[data-command-bar-id=table-cell-menu] .tippy-box .tippy-content .editor-command-bar.menu .command-item.selected[data-id=delete-select-col]{color:#eb3723;background-color:#fff6f5}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block{counter-reset:code-line}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.full-selected{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.editing-language div[data-type=block-tools] .code-block-header,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.child-focused div[data-type=block-tools] .code-block-header,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:hover div[data-type=block-tools] .code-block-header{opacity:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.wrap>div[data-type=block-tools] .code-block-header button[data-id=wrap] *{color:var(--primary-color)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child{overflow-x:auto}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]{word-break:keep-all;overflow:visible;white-space:pre}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]>span.text,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]>span.inputting-insertion{white-space:pre}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header{opacity:0;transition:opacity .3s ease-in 0s;position:absolute;top:0;display:flex;padding-left:16px;padding-right:4px;align-items:center;left:0;right:0;height:32px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .language-select{font-size:14px;color:#999;cursor:pointer;display:flex;align-items:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .language-select .arrow-icon{width:16px;height:16px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-spacer{flex-grow:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button{display:flex;justify-content:center;align-items:center;border:none;border-radius:2px;margin-left:4px;padding:0;background:none;outline:none;color:#c1c1c1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button:not(.disabled){cursor:pointer}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button:not(.disabled):hover{color:#5587f0}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button.disabled{cursor:not-allowed}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button[data-id=caption]{margin-right:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-icon{height:24px;display:flex;align-items:center;justify-content:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-icon>svg{width:24px;height:24px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-label{margin-left:4px;font-size:14px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button[data-id=caption]{display:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.full-selected>div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:unset}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:var(--background-code)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container]{padding:32px 10px 24px 32px;border-radius:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container].selected{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] *{font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:14px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block+div.text-block{margin-top:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block:before,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block:before{content:counter(code-line);counter-increment:code-line;position:absolute;left:-48px;top:10px;z-index:1;margin-top:-4px;display:block;width:48px;padding-right:8px;text-align:right;color:#aaa;box-sizing:border-box;font-size:12px;font-weight:400;line-height:12px;letter-spacing:0;white-space:nowrap;opacity:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-comment,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-prolog,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-doctype,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-cdata,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-comment,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-prolog,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-doctype,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-cdata{color:#708090}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-punctuation,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-punctuation{color:#999}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-namespace,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-namespace{opacity:.7}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-property,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-tag,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-boolean,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-number,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-constant,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-symbol,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-deleted,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-property,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-tag,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-boolean,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-number,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-constant,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-symbol,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-deleted{color:#905}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-selector,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-attr-name,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-string,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-char,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-builtin,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-inserted,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-selector,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-attr-name,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-string,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-char,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-builtin,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-inserted{color:#690}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-operator,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-entity,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-url,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-string,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-operator,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-entity,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-url,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-string{color:#9a6e3a}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-atrule,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-attr-value,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-keyword,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-atrule,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-attr-value,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-keyword{color:#07a}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-function,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-class-name,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-function,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-class-name{color:#dd4a68}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-regex,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-variable,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-regex,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-variable{color:#e90}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-bold,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-bold{font-weight:700}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-italic,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-italic{font-style:italic}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-entity,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-entity{cursor:help}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-caption-root{padding:8px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-caption-root *{color:#aaa}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .code-header-button[data-id=wrap],div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .code-header-button[data-id=caption]{display:none}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .language-select{cursor:default!important}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .language-select .arrow-icon{display:none}div.editor-root div.editor-content div[data-type=editor-container].root.select-all div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:unset}div.comment-editor-root [data-type=editor-container].root div[data-type=editor-block].code-block{min-width:0}.editor-root:not(.mobile) [data-type=editor-container].root div[data-type=editor-block].code-block{min-width:360px}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=center] [data-type=block-content][data-content-placeholder]:before{justify-content:center}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=right] [data-type=block-content][data-content-placeholder]:before{justify-content:right}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-title-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-title-placeholder);color:#bebfc2}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-content-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-content-placeholder);color:#bebfc2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-tools] .block-placeholder-container{pointer-events:none;position:absolute;left:0;top:0;right:0}div.editor-root.readonly div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-title-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-title-placeholder-readonly);color:#c7c7c7}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer{position:absolute;background-color:transparent;border:1px solid #0064ff;pointer-events:none;z-index:1;display:none}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer.active{display:block}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper{position:absolute;width:16px;height:16px;border:2px solid white;background-color:#0064ff;border-radius:50%;pointer-events:all}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom{left:calc(50% - 8px);bottom:-8px;cursor:ns-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.top-left{left:-8px;top:-8px;cursor:nwse-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.top-right{right:-8px;top:-8px;cursor:nesw-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom-left{left:-8px;bottom:-8px;cursor:nesw-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom-right{right:-8px;bottom:-8px;cursor:nwse-resize}div.editor-root.readonly div.editor-content div[data-type=editor-block]>[data-type=block-tools] .block-resizer{display:none}.before-content,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content] .images .image-container.active:before,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected:not(.focused) [data-type=block-content] .images .image-container:before{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#0064ff;opacity:.1}.editor-root.readonly div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter,.editor-root div.editor-content.dragging .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter{visibility:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image]{display:flex}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].block-hidden{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=left]{justify-content:flex-start}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=center]{justify-content:center}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=right]{justify-content:flex-end}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content]{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content] .images .image-container.empty:hover,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content] .images .image-container.error:hover{outline:1px solid #0064ff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content]:before{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content]{outline:none;cursor:zoom-in}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content] .images .image-container.active .image-warning{opacity:0;z-index:-1}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].multi [data-type=block-tools] .block-resizer{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image]:not(.multi) [data-type=block-content] .images.empty{min-height:400px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content]{cursor:default}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images{width:100%;display:flex;align-items:flex-start}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter{width:10px;flex-grow:0;flex-shrink:0;padding:0 4px;cursor:col-resize;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter .image-splitter-indicator{width:100%;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter:active .image-splitter-indicator,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter:hover .image-splitter-indicator{background-color:#d9d9d9}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container{position:relative;flex:1;background-color:#f8f8f8;display:flex;min-height:inherit;overflow:hidden;border-radius:3px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container:first-child:last-child{height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container img{max-width:100%;width:100%;height:auto}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty .upload-image-icon{display:flex;color:#c7c7c7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.error{height:100%;outline:1px solid #dedede;border-radius:3px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.error img{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;z-index:1}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-icon,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-icon{display:flex;color:#c7c7c7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message{display:flex;flex-direction:column;align-items:center;overflow:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-1,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-1{margin-top:10px;font-size:18px;font-weight:500;color:#303030;height:26px;vertical-align:middle;line-height:26px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-2,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-3,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-2,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-3{font-size:14px;color:#606060;vertical-align:middle;height:22px;line-height:22px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-2 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-3 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-2 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-3 a{text-decoration:none;color:#0064ff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .line-3 a{display:inline-flex;align-items:center;text-decoration:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .line-3 a:after{content:" ";display:inline-block;width:16px;height:16px;margin-left:5px;background-image:url("data:image/svg+xml,%3Csvg width='17' height='16' viewBox='0 0 17 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 2H3.5C2.94772 2 2.5 2.44772 2.5 3V13C2.5 13.5523 2.94772 14 3.5 14H13.5C14.0523 14 14.5 13.5523 14.5 13V10' stroke='%23338FE5'/%3E%3Cpath d='M14.5 2L9 7.5' stroke='%23338FE5'/%3E%3Cpath d='M8.5 2H14.5V8' stroke='%23338FE5'/%3E%3C/svg%3E%0A")}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#303030;opacity:.8;display:flex;align-items:center;justify-content:center}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask .uploading-progress-bar{width:75%;height:6px;border-radius:3px;display:flex;background-color:#fff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value{background-color:#0064ff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .image-warning{position:absolute;right:5px;top:5px;color:#fff;background-color:#333;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:3px;z-index:2;transition:opacity linear .2s;opacity:.7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty{display:flex;flex-direction:column;align-items:center;outline:1px solid #dedede;border-radius:3px;justify-content:center;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty svg{width:48px;height:48px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-tools] .drag-container{display:flex;box-sizing:content-box;pointer-events:none;position:fixed;z-index:100;background-color:#fff;border:1px solid #0064ff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-tools] .drag-container .drag-target{width:100%}.editor-root[readonly=true] .image-splitter{visibility:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment{box-shadow:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment [data-type=block-content]{box-shadow:0 2px #f8e6ab}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment.active{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment.active [data-type=block-content]{box-shadow:none;outline:4px solid #f8e6ab}.image-tooltip-align-style-section .style-icon{border:none;background:#fff;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding-left:0;padding-right:0;border-radius:3px}.image-tooltip-align-style-section .style-icon:hover{background:rgba(0,0,0,.05)}.image-tooltip-align-style-section .style-icon.active{color:#00f}.editor-root .editor-content div[data-type=editor-block].dragging div[data-type=block-tools] .block-helper{display:none;user-select:none}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper{position:absolute;right:100%;top:0;padding-right:5px;display:flex;align-items:center}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .helper-sizer{width:0;opacity:0;pointer-events:none}div[data-type=editor-block].block-exclusive:after{content:attr(data-exclusive-tips);position:absolute;top:0px;left:0px;width:100%;background:#F7F8FA;border-radius:var(--editor-border-radius);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:14px;line-height:22px;color:#87888a;text-align:center;padding:9px 0;z-index:1000}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self>[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others>[data-type=block-content]{position:relative}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others>[data-type=block-content]:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;z-index:1;background-color:#2d2d2e;opacity:.3}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.locked-by-self>[data-type=block-content]:after{pointer-events:none}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.text-block>[data-type=block-content]:after{outline:2px solid #303030}.editor-root{--selected-color: #e8e8e8}.editor-root .editor-content.dragging *{cursor:grabbing!important}.editor-root .editor-content.dragging div[data-type=editor-block] iframe{pointer-events:none}.editor-root .editor-content.dragging .block-button{opacity:0}.editor-root .editor-content .editor-drop-indicator{position:absolute;background-color:var(--primary-color);pointer-events:none;transition:top .1s linear,left .1s linear;z-index:1}.editor-root .editor-content div[data-type=editor-block].text-block.highlighted{outline:2px solid var(--background-selection);background-color:var(--background-selection)}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button{width:24px;height:24px;cursor:pointer;margin:0;padding:0;display:flex;align-items:center;justify-content:center;background-color:#fff;border:none;border-radius:3px}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button[data-type=move]{cursor:grab}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button:hover{background-color:#00245a0a}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button svg{width:16px;height:16px;color:#909090}.drag-image-container{position:fixed;z-index:100;box-shadow:0 3px 20px #00000026;background-color:#fff;opacity:.4}.drag-image-container.drag-placeholder{width:500px;height:200px;border:1px solid #dedede;border-radius:3px;background:#e8e8e8}.drag-image-container .drag-image{width:100%;display:none}.drag-image-container[data-status=loaded] .drag-image{display:block}.drag-image-container[data-status=loaded] .drag-loading{display:none}.drag-image-container-no-shadow{box-shadow:none;background:transparent}.editor-command-bar-root .editor-command-bar .command-item.menu-item{display:flex;align-items:center;flex:none}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles{padding:5px 10px;background-color:#fff}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section+.text-style-section{margin-top:5px}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section{display:grid;grid-template-columns:repeat(7,24px);grid-row-gap:10px;grid-column-gap:5px}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon{height:24px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;outline:none;cursor:pointer;border-radius:3px;color:#606060}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon:hover{background-color:var(--selected-color)}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon.active{color:#0064ff}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-anchor[data-id=paste-special-button-anchor]{z-index:unset}[data-command-bar-id=paste-special-button] .editor-command-bar.toolbar{padding:0}[data-command-bar-id=paste-special-button] .editor-command-bar.toolbar .command-item[data-dropdown=true]{padding-left:5px;padding-right:5px}.editor-find-dialog{--popover-input-border: 1px solid #cfd6e1;--editor-find-dialog-input-container-border-color: #cfd6e1;--editor-find-dialog-input-container-bg-color: transparent;--editor-border-radius-big: 3px;--editor-color: #07142a;--button-black-text-color: #333;--editor-find-dialog-button-color: #333;--editor-find-dialog-icon-button-color: #333;--editor-find-dialog-button-border-bg-color: rgba(255, 255, 255, .56);--editor-find-dialog-input-placeholder-color: #b9bfc8;--editor-find-dialog-button-disabled-color: #ccc !important;--editor-find-dialog-button-hover-color: rgba(150, 150, 150, .2);--editor-find-dialog-button-border: solid 1px #ccc;box-sizing:border-box;width:400px;background-color:var(--editor-find-dialog-bg-color);border:var(--editor-find-dialog-border);border-radius:var(--editor-border-radius-big);display:flex;padding:8px 8px 0 16px;align-items:flex-start;font-size:14px;font-family:var(--editor-font-family)}.editor-find-dialog .editor-find-content{display:flex;flex-direction:column;flex-grow:1;font-family:inherit}.editor-find-dialog .editor-find-dialog-row{display:flex;margin-bottom:8px;align-items:center}.editor-find-dialog .editor-find-dialog-label{width:80px;color:#2d2d2e;font-weight:500;flex-grow:0;flex-shrink:0;align-self:center}.editor-find-dialog .editor-find-dialog-input-container{border:var(--popover-input-border);border-color:var(--editor-find-dialog-input-container-border-color);background-color:var(--editor-find-dialog-input-container-bg-color);border-radius:var(--editor-border-radius-big);flex-grow:1;display:flex;padding:2px;align-items:center;height:32px;box-sizing:border-box}.editor-find-dialog .editor-find-dialog-input-container:hover{border:1px solid #0064ff}.editor-find-dialog .editor-find-dialog-input-container:focus{border:1px solid #0064ff;box-shadow:0 0 0 2px #0064ff33}.editor-find-dialog .editor-find-dialog-input{border:none;flex-grow:1;width:80px;outline:none;background-color:transparent;color:var(--editor-color)}.editor-find-dialog .editor-find-dialog-input::placeholder{color:var(--editor-find-dialog-input-placeholder-color);opacity:1}.editor-find-dialog .editor-find-dialog-prev{width:24px}.editor-find-dialog .editor-find-dialog-curr{flex-grow:0;text-align:center;flex-shrink:1;display:flex;align-items:center;margin-bottom:2px}.editor-find-dialog .editor-find-dialog-next{width:24px}.editor-find-dialog .editor-find-dialog-icon-button{cursor:pointer;border-radius:4px;color:#2d2d2e;background-color:var(--editor-find-dialog-button-border-bg-color);border:none;display:flex;flex-direction:row;align-items:center;padding:0}.editor-find-dialog .editor-find-dialog-icon-button:hover{color:#0064ff}.editor-find-dialog .editor-find-dialog-icon-button:active{color:#0053cf}.editor-find-dialog .editor-find-dialog-button{padding:4px 15px;cursor:pointer;background:#ffffff;border:1px solid #bebfc2;color:#575859;margin:0 4px;font-family:inherit;line-height:20px;border-radius:3px}.editor-find-dialog .editor-find-dialog-button.icon-button{width:32px;height:32px}.editor-find-dialog .editor-find-dialog-button:enabled:hover{color:#0064ff;background:#e3eeff;border:1px solid #0064ff}.editor-find-dialog .editor-find-dialog-button:enabled:active{color:#0053cf;background:#cfe2ff;border:1px solid #0053cf}.editor-find-dialog .editor-find-dialog-button:last-of-type{margin-right:0}.editor-find-dialog .editor-find-dialog-primary-button{color:#fff;background:#0064ff;border:1px solid #0064ff;transition:ease-in .1s}.editor-find-dialog .editor-find-dialog-primary-button:enabled:hover{color:#fff;background:#408cff;border:1px solid #408cff}.editor-find-dialog .editor-find-dialog-primary-button:enabled:active{color:#fff;background:#0053cf;border:1px solid #0053cf}.editor-find-dialog .editor-find-dialog-action{margin:12px 0 20px}.editor-find-dialog .editor-find-dialog-button:disabled{color:#575859;background:#dfe1e5;opacity:.5;border:1px solid #bebfc2;cursor:not-allowed}.editor-find-dialog .editor-find-dialog-primary-button:disabled{color:#fff;background:#0064ff;opacity:.5;border:1px solid #0064ff}.editor-find-dialog .editor-find-dialog-button svg{fill:currentColor}.editor-find-dialog .editor-find-dialog-space{flex-grow:1}.editor-find-dialog .editor-find-dialog-icon-button-border{margin:0 0 0 8px;cursor:pointer;border-radius:4px;color:#575859;border:var(--editor-find-dialog-button-border);background-color:var(--editor-find-dialog-button-border-bg-color);padding:0;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.editor-find-dialog .editor-find-dialog-icon-button-border:hover{background:#e3eeff;border:1px solid #0064ff}.editor-find-dialog .editor-find-dialog-icon-button-border:active{background:#cfe2ff;border:1px solid #0053cf}.editor-find-dialog .editor-find-dialog-button-close{margin:0 0 0 8px;cursor:pointer;border-radius:4px;color:#2d2d2e;background-color:var(--editor-find-dialog-button-border-bg-color);border:none;padding:0;width:32px;height:32px;display:flex;justify-content:center;align-items:center}.editor-find-dialog .editor-find-dialog-button-close:hover{color:#0064ff}.editor-find-dialog .editor-find-dialog-button-close:active{color:#0053cf}.editor-find-dialog .editor-find-dialog-icon-button-border svg,.editor-find-dialog .editor-find-dialog-button-close svg{fill:currentColor}.editor-find-dialog .editor-highlight{pointer-events:none}.editor-find-dialog .editor-highlight .editor-highlight-child{opacity:.1;position:absolute;background-color:#eb3723}.editor-find-dialog .editor-highlight.active .editor-highlight-child{opacity:.3;position:absolute;background-color:#eb3723}.editor-find-dialog .editor-search-result-highlight{opacity:.6;pointer-events:none}.editor-find-dialog .editor-search-result-highlight .editor-highlight-child{position:absolute;background-color:#40e0d0}.editor-find-dialog .editor-find-dialog-status{display:flex}.editor-highlight{pointer-events:none}.editor-highlight .editor-highlight-child{opacity:.1;position:absolute;background-color:#eb3723}.editor-highlight.active .editor-highlight-child{opacity:.3;position:absolute;background-color:#eb3723}.editor-search-result-highlight{opacity:.6;pointer-events:none}.editor-search-result-highlight .editor-highlight-child{position:absolute;background-color:#40e0d0}.editor-find-dialog-status{display:flex}body>div.editor-context-menu[data-tippy-root].zh-CN{min-width:200px}body>div.editor-context-menu[data-tippy-root].en-US,body>div.editor-context-menu[data-tippy-root].ja-JP{min-width:200px}body>div.editor-context-menu[data-tippy-root]>div.tippy-box>div.tippy-content{padding:0}body>div.editor-context-menu[data-tippy-root] .editor-command-bar.menu>div.command-item{cursor:pointer}body>div.editor-context-menu[data-tippy-root] .editor-command-bar.menu>div.command-item.disabled{cursor:not-allowed}body>div.editor-context-menu[data-tippy-root] .editor-command-bar.menu>div.command-item.disabled>div.item-subtext{color:#c7c7c7}body>div.editor-context-menu[data-tippy-root] .editor-command-bar.menu>div.command-item>div.item-subtext{margin-left:10px}.comment-editor{font-size:14px;border:1px solid #c7c7c7;border-radius:3px;padding:1px 10px;margin:6px 10px 0}.comment-editor:after{content:"";height:0;display:block;clear:both}.comment-editor-root{max-width:100%;display:inline-block;min-width:calc(100% - 40px);padding-top:2px}.comment-editor-root div.editor-root div.editor-content{padding:0}.comment-editor-root div.editor-root div.editor-content>div[data-type=editor-container].root>div.container-blocks>*+*{margin-top:0}.comment-editor-img{float:right;color:#c1c1c1;padding:0;margin-top:2px;width:24px;height:24px;justify-content:center}.comment-editor-root:not(.comment-editor-readonly) .editor-root .editor-content [data-type=editor-block]:not([data-block-type=text]){width:224px}.comment-editor-editing{border:1px solid #0064ff}.comment-editor-readonly{border:none;padding-left:calc(var(--editor-comment-avatar-width, 22px) + 5px);margin:0}.comment-editor-readonly .comment-editor-img{display:none}.comment-item-root{position:relative}.comment-item-root:not(.last-comment-item):before{content:" ";display:block;position:absolute;left:10px;width:1px;background-color:#dfe1e5;overflow:hidden;opacity:.8;top:21px;bottom:-12px;transform:scaleX(.5)}.comment-item-root .item-head{padding:0;position:relative;display:flex;align-items:center}.comment-item-root .item-head-avatar{margin-right:5px;width:var(--editor-comment-avatar-width, 22px);height:var(--editor-comment-avatar-width, 22px);border-radius:100%}.comment-item-root .item-head-avatar-string{display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;background-color:var(--comment-avatar-color);flex-shrink:0}.comment-item-root .item-head-username{font-size:var(--editor-comment-username-font-size, 12px);color:#2d2d2e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.comment-item-root .item-head-modified{margin-left:10px;font-size:12px;color:#87888a;flex-grow:1;white-space:nowrap}.comment-item-root .item-head-tools{display:flex;align-items:center;visibility:hidden}.comment-item-root .item-head-tools .editor-text-button{color:#2d2d2e}.comment-item-root .item-head-tools .editor-text-button:hover{color:#0064ff}.comment-item-root .item-head-tools .editor-text-button svg{width:20px;height:20px}.comment-item-root .item-head-tools.active{visibility:visible}.comment-item-root .item-actions{margin-top:10px;display:flex;justify-content:flex-end;padding:0 10px}.comment-item-root .item-actions .editor-button{padding:4px 10px;line-height:1}.comment-item-root .item-actions.hidden{display:none}.comment-item-root:hover:not(.comment-item-editing) .item-head-tools{visibility:visible}.comment-item-root.readonly .item-head-tools{display:none}.mobile-comment-item{margin-top:4px;background-color:var(--editor-comment-layer-bg-color);padding-bottom:20px;color:var(--editor-comment-username-color)}.mobile-comment-item .item-head{padding:12px;display:flex;align-items:center}.mobile-comment-item .item-head-avatar{width:var(--editor-comment-avatar-size);height:var(--editor-comment-avatar-size);flex-grow:0}.mobile-comment-item .item-head-username{margin-left:12px}.mobile-comment-item .item-head-modified{margin-left:12px;color:#999}.mobile-comment-item .item-editor .comment-editor-readonly{padding-left:18px}.mini-comment-item{position:relative;line-height:16px;width:20px;height:16px;text-align:center;font-size:12px;border-radius:1px;background-color:var(--editor-comment-active-color, #FFC328);color:var(--editor-comment-mini-text-color, #ffffff);cursor:pointer}.mini-comment-item:after{content:"";position:absolute;left:50%;bottom:-4px;width:6px;height:6px;background-color:var(--editor-comment-active-color, #FFC328);border-radius:1px;transform:matrix(.71,.61,.82,-.71,0,0) translate(-50%);z-index:-1}.comment-quick-reply .quick-reply-button{color:#575859;font-size:12px}.comment-quick-reply .quick-reply-button.editor-text-button:hover{color:var(--text-button-color-hover, #0064ff);background-color:var(--text-button-bg-color-hover, transparent)}.comment-quick-reply .quick-reply-button.editor-text-button:active{color:#0053cf;background-color:var(--text-button-bg-color-hover, transparent)}.comment-quick-reply .quick-reply-editor{display:none}.comment-quick-reply .quick-reply-editor .reply-editor-actions{display:flex;justify-content:flex-end;margin-top:10px;padding:0 10px}.comment-quick-reply .quick-reply-editor .reply-editor-actions .editor-button{padding:4px 10px;line-height:1}.comment-quick-reply.hidden,.comment-quick-reply.reply-editor-editing .quick-reply-button{display:none}.comment-quick-reply.reply-editor-editing .quick-reply-editor{display:block}:root{--editor-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Robot, "Helvetica Neue", Helvetica, Arial, sans-serif;--editor-comment-layer-bg-color: #ffffff;--editor-comment-group-bg-color: #ffffff;--comment-root-border-color: #eaeaea;--editor-comment-layer-active-border-color: #cecece;--editor-box-shadow: 0px 3px 20px rgba(0, 0, 0, .15);--editor-comment-quote-color: #909090;--editor-comment-switch-button-width: 12px;--editor-comment-active-color: #ffc328;--editor-bg-color: #ffffff;--wiz-editor-z-comment-head: 11;--text-button-color-hover: #5587f0;--editor-comment-username-color: #07142a;--editor-comment-avatar-size: 32px}.disabled-scroll{overflow:hidden}.editor-root .editor-content div[data-type=editor-block].text-block.comment{box-shadow:none}.editor-root .editor-content div[data-type=editor-block].text-block.comment>div[data-type=block-content]>span{border-bottom:2px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block].text-block.comment.active{box-shadow:none;outline:none}.editor-root .editor-content div[data-type=editor-block].text-block.comment.active>div[data-type=block-content] span{background-color:#f8e6ab}.editor-root .editor-content div[data-type=editor-block] span.text.comment,.editor-root .editor-content div[data-type=editor-block] span[data-type=editor-box].comment{border-bottom:2px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block] span.text.comment.active,.editor-root .editor-content div[data-type=editor-block] span[data-type=editor-box].comment.active{background-color:#faf1d1}.editor-root .editor-content div[data-type=editor-block].comment{box-shadow:0 2px #f8e6ab}.editor-root .editor-content div[data-type=editor-block].comment.active{box-shadow:none;outline:4px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-comment-button{all:unset;position:absolute;right:-28px;top:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:3px;color:#07142a;cursor:pointer}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-comment-button:hover{background:#eaeaea}.editor-web-comment-root{position:absolute;right:0;width:300px;top:0;bottom:0;transition:width .16s ease-in;will-change:width;font-family:var(--editor-font-family)}.editor-web-comment-root .comment-groups-container .comment-group-item-root{position:absolute;left:50%;right:0;width:284px;padding:0 10px 10px;transform:translate(-50%);background-color:var(--editor-comment-group-bg-color);border-radius:2px;border-color:var(--editor-comment-layer-active-border-color);box-shadow:var(--editor-box-shadow)}.editor-web-comment-root .comment-groups-container .comment-group-item-root:not(.no-animation){transition:top .2s ease-in,opacity .35s ease-in}.editor-web-comment-root .comment-groups-container .comment-group-item-root:before{content:"";position:absolute;left:0;right:0;height:6px;background-color:#fff;border-radius:2px 2px 0 0;z-index:29}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head{display:flex;align-items:center;justify-content:space-between}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-quote{box-sizing:content-box;font-size:12px;line-height:20px;height:20px;color:#87888a;padding-bottom:10px;padding-top:10px;padding-right:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;max-width:calc(100% - 80px)}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-quote:before{content:"";display:block;width:2px;height:12px;background-color:#d4d6d9;margin-right:6px;float:left;border-radius:10px;margin-top:4px}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch{display:flex;align-items:center;height:22px;visibility:hidden}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button{padding:0;width:var(--editor-comment-switch-button-width);margin:3px 0;color:#606060}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button[data-button-id=switch-up]{margin-right:16px}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button:not(.disabled):hover{color:var(--text-button-color-hover)}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button.disabled{color:#60606080;cursor:not-allowed}.editor-web-comment-root .comment-groups-container .comment-group-item-root.active:before{background-color:#f59300}.editor-web-comment-root .comment-groups-container .comment-group-item-root.active .item-head-switch{visibility:visible}.editor-web-comment-root .comment-groups-container .comment-group-item-root.readonly .comment-quick-reply{display:none}.editor-mobile-comments-root{position:fixed;left:0;right:0;bottom:0;top:0;overflow:hidden;z-index:11}.editor-mobile-comments-root .mobile-comment-mask{position:absolute;left:0;right:0;bottom:0;top:0;background-color:#00000073}.editor-mobile-comments-root .mobile-comment-groups-container{position:absolute;width:100%;height:100vh;z-index:1;overflow:hidden}.editor-mobile-comments-root .mobile-comment-groups-container .mobile-comment-groups-scroll-container{padding:0 12px}.editor-mobile-comments-root .mobile-comment-pull-info-container{position:absolute;right:0;left:0;bottom:100px;z-index:2;text-align:center;display:none}.editor-mobile-comments-root .mobile-comment-pull-info-container .mobile-comment-pull-info{display:inline-block;padding:12px;border-radius:36px;margin:0 auto;background-color:#000c;color:#fff;font-size:12px;opacity:0;transition:opacity .25s cubic-bezier(.65,.05,.36,1)}.editor-mobile-comments-root .mobile-comment-pull-info-container.active{display:block}.editor-mobile-comments-root .mobile-comment-pull-info-container.active .mobile-comment-pull-info{opacity:1}.editor-mobile-comments-root .mobile-group-item-root{margin:0 auto;width:100%;height:100vh;overflow:hidden}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item{min-height:calc(100vh + 1px);padding-bottom:50px}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item-space{height:50vh}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item-abstract{background-color:var(--editor-comment-layer-bg-color);padding:12px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-mini-comment-root{position:absolute;right:0;top:0;bottom:0;width:48px;border-left:1px solid #f0f0f0;transition:width .16s ease-in;will-change:width;font-family:var(--editor-font-family);border:none;background-color:transparent;z-index:11}.editor-mini-comment-root .comment-groups-container{width:100%;height:100%}.editor-mini-comment-root .comment-groups-container .mini-group-item{position:absolute;top:0;left:50%;margin-left:-10px;transition:top .2s cubic-bezier(.65,.05,.36,1)}:is(.editor-web-comment-root,.editor-mobile-comments-root,.editor-mini-comment-root).hidden{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content]{margin:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] span.file-icon{color:#5587f0;display:inline-flex;vertical-align:text-bottom}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] span.file-icon svg{width:18px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] .file-name{color:var(--primary-color);padding:0;border-radius:12px;margin-right:4px;white-space:wrap;word-break:break-all;cursor:pointer}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office]{justify-content:start}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office].hover [data-type=block-content]{border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content]{max-width:360px;height:48px;cursor:pointer}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root{display:flex;align-items:center;max-width:100%;background-color:#f5f6f7;border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root:before{border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details{display:flex;flex-direction:column;justify-content:center;font-size:14px;flex-grow:1}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name{color:#1f2329;max-width:185px;display:flex;flex-direction:row;align-items:center;white-space:nowrap}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-size{color:#646a73;font-size:12px;margin-top:2px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name-pre{text-overflow:ellipsis;overflow:hidden}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions button{width:34px;height:34px;background-color:#fff;border:1px solid #dee0e3;border-radius:50%;margin:0 8px;padding:0;background-repeat:no-repeat;background-position:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions button svg{width:16px;height:16px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-icon{display:flex;flex-direction:row;align-items:center;width:36px;height:36px;margin:6px 6px 6px 12px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-icon>svg{width:24px;height:24px}div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content]{min-width:360px}div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root{min-width:360px}:root{--editor-version-button-border: black;--editor-bg-color: #ffffff;--editor-version-list-bg-color: white;--editor-version-select-bg-color: #F0F6FF}.version-dialog{display:flex;background-color:var(--editor-bg-color);width:100%;height:100%;color:var(--editor-color)}.version-dialog *{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;box-sizing:border-box}.version-dialog.loading .version-viewer .version-info-container{display:none}.version-dialog .version-loading{display:flex;flex:1;align-items:center;justify-content:center}.version-dialog .version-loading svg{width:28px;height:28px}.version-dialog .version-item-latest{color:#0064ff;background-color:#e3eeff;height:20px;padding:0 5px;border-radius:3px;display:inline-flex;align-items:center;font-size:12px;font-weight:400;margin-left:10px}.version-dialog .version-viewer{flex:1;display:flex;flex-direction:column;width:0;padding:0;min-width:0}.version-dialog .version-viewer .version-dialog-editor{overflow-y:auto}.version-dialog .version-viewer .version-info-container{height:50px;border-bottom:#e8e8e8 1px solid;display:flex;align-items:center;flex-shrink:0;padding-left:20px;font-size:14px;color:#303030}.version-dialog .version-viewer .version-info-container .version-info-right .text-3{color:#909090}.version-dialog .version-viewer .version-info-container .version-info-left{display:flex;align-items:center}.version-dialog .version-viewer .version-info-container .version-info-left .text-1,.version-dialog .version-viewer .version-info-container .version-info-left .text-2{color:#909090}.version-dialog .version-viewer .version-info-container .version-info-left .name{padding-left:5px;padding-right:10px;font-weight:500}.version-dialog .version-viewer .version-info-container .version-info-left .name .version-item-latest{margin-left:5px}.version-dialog .version-viewer .version-info-container .editor-dropdown{margin-left:10px;margin-right:10px}.version-dialog .version-viewer .version-info-container .command-item[data-id=current-version]{min-width:200px;border:1px solid #f0f0f0}.version-dialog .version-viewer .version-info-container .command-item[data-id=current-version] .toolbar-item-name-container{flex-grow:1}.version-dialog .version-viewer .dialog-button-text{margin-top:1px;margin-left:-4px}.version-dialog .version-viewer .dialog-text-button{outline:none;background:transparent;border:none;display:flex;align-items:center;color:var(--editor-color);font-size:16px;font-weight:500;padding:4px 0;cursor:pointer}.version-dialog .version-viewer .dialog-text-button .dialog-button-icon{margin-right:0;width:24px;height:24px}.version-dialog .version-viewer .dialog-text-button .dialog-button-icon svg{fill:currentColor}.editor-root.history .root-container .editor-block .text-element .inline-plugin.editor-box-loading{display:none}.editor-root.history .editor-content{padding:30px 75px}.editor-root.history .history-inserted-block[data-type=editor-block] [data-type=block-content]{border:4px solid var(--op-selected-color)}.editor-root.history .history-inserted-block[data-type=editor-block]{position:relative}.editor-root.history .history-inserted-block[data-type=editor-block]:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:10;font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-inserted-block[data-type=editor-block].table-block table{border:4px solid var(--op-selected-color)}.editor-root.history .history-inserted-block[data-type=editor-block].table-block table .child{pointer-events:none}.editor-root.history .history-inserted-block[data-type=editor-block].table-block{position:relative}.editor-root.history .history-inserted-block[data-type=editor-block].table-block:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:10;font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-inserted-block[data-type=editor-block].table-block:hover:after{top:0}.editor-root.history .history-deleted-block [data-type=block-content]{border:4px solid var(--op-selected-color)}.editor-root.history .history-deleted-block [data-type=block-content]{position:relative}.editor-root.history .history-deleted-block [data-type=block-content]:after,.editor-root.history .history-deleted-block [data-type=block-content]:before{content:" ";position:absolute;display:flex;z-index:2000;color:var(--op-color);justify-items:center;align-items:center;justify-content:center;align-content:center;pointer-events:none;overflow:visible;max-width:100%;max-height:100%;left:calc(50% - 16px);top:calc(50% - 2px);width:32px;height:4px;background-color:var(--op-color);transform:rotate(45deg);opacity:1}.editor-root.history .history-deleted-block [data-type=block-content]:before{transform:rotate(135deg)}.editor-root.history .history-deleted-block{position:relative}.editor-root.history .history-deleted-block:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:10;font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-deleted-block.history-deleted-box{background-color:unset!important;text-decoration:unset!important}.editor-root.history .history-deleted-block.history-deleted-box:hover:after{opacity:0}.editor-root.history .history-inserted-text{line-height:revert!important;background-color:var(--op-selected-color)}.editor-root.history .history-inserted-text{position:relative}.editor-root.history .history-inserted-text:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:10;font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-deleted-box{background-color:var(--op-selected-color);text-decoration:line-through}.editor-root.history .history-deleted-box{position:relative}.editor-root.history .history-deleted-box:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:10;font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history [data-box-type=history-deleted-box]>span[data-type=box-content]{border:none!important;margin:0!important}.editor-root.history [data-type=editor-block].table-block div[data-type=block-content]{overflow-x:revert}.editor-dialog-root{position:absolute;left:0;top:0;bottom:0;right:0;background-color:#639;z-index:100}.size-limit-textarea{display:inline-block;position:relative}.size-limit-textarea .size-limit-textarea-input{width:100%;resize:none;overflow:hidden;color:#303030;outline:none;border:1px solid #f0f0f0;border-radius:3px}.size-limit-textarea .size-limit-textarea-input:focus,.size-limit-textarea .size-limit-textarea-input:hover{border-color:#0064ff}.size-limit-textarea .size-limit-textarea-input:focus{box-shadow:0 0 0 2px #338fe533}.size-limit-textarea .size-limit-textarea-warning{position:absolute;right:0;bottom:10px;color:#909090;z-index:1;font-size:12px;pointer-events:none}.version-list-root{width:350px;background:var(--editor-version-list-bg-color);overflow-y:auto;padding:0;border-left:#e8e8e8 1px solid;display:flex;flex-direction:column}.version-list-root .version-list-header{padding:0 6px 0 20px;font-size:14px;display:flex;align-items:center;margin-top:8px;margin-bottom:8px;flex-shrink:0;color:#909090}.version-list-root .version-list-header .version-count{flex-grow:1}.version-list-root .version-list-header .version-list-filter .editor-command-bar.toolbar .command-item{cursor:pointer}.version-list-root .version-list-header .version-list-filter .editor-command-bar.toolbar .command-item .toolbar-item-dropdown-container{margin-left:5px}.version-list-root .version-list-header .version-list-filter .editor-command-bar.toolbar .command-item:not(.disabled):hover{color:#0064ff}.version-list-root .version-list-header .version-list-filter .editor-command-bar.toolbar .command-item.selected:not(.disabled){background-color:transparent}.version-list-root .version-list-empty{height:100%;display:flex;align-items:center;justify-content:center;font-size:14px;color:#909090}.version-list-root .version-list-content{flex-grow:1;overflow-y:auto}.version-list-root .version-list-content .version-item{padding:15px 10px;cursor:pointer}.version-list-root .version-list-content .version-item:not(:last-child):after{content:"";display:block;position:relative;top:15px;border-bottom:1px solid #e8e8e8}.version-list-root .version-list-content .version-item:not(:last-child):hover:after,.version-list-root .version-list-content .version-item:not(:last-child).active:after{left:-10px;width:106%}.version-list-root .version-list-content .version-item.child{padding-left:32px}.version-list-root .version-list-content .version-item:not(.active):hover{background:#f8f8f8}.version-list-root .version-list-content .version-item.active{background-color:var(--editor-version-select-bg-color)}.version-list-root .version-list-content .version-item.active .version-item-title .version-actions{display:flex}.version-list-root .version-list-content .version-item.active .version-item-title .version-item-date{color:#0064ff}.version-list-root .version-list-content .version-item.editing .version-item-memo{display:none}.version-list-root .version-list-content .version-item.active .version-item-memo{cursor:text}.version-list-root .version-list-content .version-item.active .version-item-memo:hover{outline:1px solid #0064ff}.version-list-root .version-list-content .version-item .version-item-restore-from{color:#87888a;font-size:12px;line-height:1.5em;height:20px;padding:0 10px 10px}.version-list-root .version-list-content .version-item .version-item-restore-from:empty{display:none}.version-list-root .version-list-content .version-item .memo-input.size-limit-textarea{width:100%;min-height:60px;display:flex;margin-top:5px}.version-list-root .version-list-content .version-item .memo-input.size-limit-textarea textarea{line-height:22px;padding:4px 9px;box-sizing:border-box;font-size:14px}.version-list-root .version-list-content .version-item .version-item-title{display:flex;align-items:center;padding-left:10px;padding-right:10px;height:24px}.version-list-root .version-list-content .version-item .version-item-title .version-item-date{font-size:14px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#2d2d2e}.version-list-root .version-list-content .version-item .version-item-title .spacer{flex-grow:1}.version-list-root .version-list-content .version-item .version-item-title .version-actions{display:none}.version-list-root .version-list-content .version-item .version-item-title .version-actions button{display:flex;align-items:center;justify-content:center;height:16px;cursor:pointer;border:none;outline:none;background:transparent;padding:0 0 0 10px;color:#909090}.version-list-root .version-list-content .version-item .version-item-title .version-actions button:hover{color:#0064ff}.version-list-root .version-list-content .version-item .version-item-title .version-actions button.disabled,.version-list-root .version-list-content .version-item .version-item-title .version-actions button.disabled:hover{color:#c7c7c7}.version-list-root .version-list-content .version-item .version-item-title .version-actions .revert-button{border-left:1px solid #e8e8e8;margin-left:10px}.version-list-root .version-list-content .version-item .version-item-authors{list-style:none;margin:0;font-size:12px;padding-left:10px}.version-list-root .version-list-content .version-item .version-item-author{display:flex;margin-top:10px;color:#606060;line-height:22px}.version-list-root .version-list-content .version-item .version-item-author .version-item-author-name{color:#575859}.version-list-root .version-list-content .version-item .version-item-author-mark{width:6px;height:6px;border-radius:3px;margin-right:5px;flex-shrink:0;margin-top:8px}.version-list-root .version-list-content .version-item .version-item-memo{font-size:14px;color:#303030;padding:5px 10px;border-radius:3px;margin-top:5px;line-height:22px}.version-list-root .version-list-content .version-item .version-item-memo:empty{display:none}.versions-dropdown-header{color:var(--text-color);padding:10px;border-bottom:1px solid #f0f0f0}.versions-dropdown-header .versions-dropdown-header-info{font-family:PingFang SC;color:#909090}.versions-dropdown-header .versions-dropdown-header-icon{display:inline-flex;vertical-align:middle;height:19px;padding-left:5px;padding-right:5px;cursor:pointer;color:#909090}.versions-dropdown-header .versions-dropdown-header-icon svg{vertical-align:baseline}.editor-command-bar.menu .command-item.standard[data-id=prev-version]{height:44px}[data-command-bar-id=versions-dropdown-popup]{width:320px;font-family:inherit}[data-command-bar-id=versions-dropdown-popup] .tippy-box{color:var(--text-color);line-height:normal}[data-command-bar-id=versions-dropdown-popup] .tippy-box .version-item-empty{width:100%}[data-command-bar-id=versions-dropdown-popup] .tippy-box .version-item-name{color:var(--text-color)}[data-command-bar-id=versions-dropdown-popup] .tippy-box .editor-command-bar.menu .command-item.standard.disabled{color:#909090}[data-command-bar-id=versions-dropdown-popup] .tippy-box .editor-command-bar{--text-color: #303030}[data-command-bar-id=versions-dropdown-popup] .tippy-box .editor-command-bar.menu .command-item.section{padding:0;font-size:inherit;color:inherit}[data-command-bar-id=versions-dropdown-popup] *{box-sizing:border-box}[data-command-bar-id=versions-dropdown-popup] .editor-command-bar-header{width:100%;margin-bottom:5px}[data-command-bar-id=versions-dropdown-popup] .command-item{width:100%;cursor:pointer}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container{padding:6px 10px;width:100%}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-memo{font-size:12px;color:#909090;line-height:20px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-line1{line-height:22px;display:flex;align-items:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-line1 .version-item-latest{color:#0064ff;background-color:#eaf3fc;height:20px;padding:0 5px;margin-left:10px;border-radius:3px;font-size:12px;display:inline-flex;align-items:center}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-empty{display:flex;height:34px;color:#909090;padding-left:10px;justify-content:left;align-items:center}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item{width:100%}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-info{height:24px;color:#909090;display:flex;align-items:center;padding-left:10px;background-color:#f8f8f8;width:100%;box-sizing:border-box;margin:5px 0;font-size:12px}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container{height:34px;display:flex;align-items:center;padding-left:10px;color:#303030;cursor:pointer}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container .filter-item-label{cursor:pointer}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container .editor-checkbox-wrapper{margin-right:4px}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container:hover .editor-checkbox-wrapper:not(.checked)>span.editor-checkbox>span.editor-checkbox-inner{border-color:#0064ff}.editor-root.readonly .editor-content div[data-type=editor-block].focused div[data-type=block-tools] .block-helper .heading-marker,.editor-root.readonly .editor-content div[data-type=editor-block].highlighted div[data-type=block-tools] .block-helper .heading-marker{display:flex}.editor-root .editor-content div[data-type=editor-block].heading-collapsed div[data-type=block-tools] .block-helper .heading-collapse-button svg{transform:rotate(270deg)}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button~.heading-marker{display:none}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button{width:24px;height:24px;cursor:pointer;margin:0;padding:0;display:flex;align-items:center;justify-content:center;background-color:#fff;border:none;border-radius:3px;box-sizing:content-box}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker:hover,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button:hover{background-color:#00245a0a}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker svg,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button svg{color:#87888a;transform:rotate(360deg);transition:transform .2s linear}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker svg,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button svg{width:16px;height:16px}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker{color:#c7c7c7;cursor:default}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker:hover{background-color:transparent}.embed-block div[data-type=block-content] .editor-toc-container{display:block;width:100%;background-color:#f0f0f0;padding:20px;text-align:start}.embed-block div[data-type=block-content] .editor-toc-container.loading{margin:0;min-height:100px}.embed-block div[data-type=block-content] .editor-toc-container .toc-node+.toc-node{margin-top:10px}.embed-block div[data-type=block-content] .editor-toc-container .toc-node .toc-text{cursor:pointer;color:var(--primary-color)}.embed-block div[data-type=block-content] .editor-toc-container .toc-node .toc-children{margin-top:10px;padding-left:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=mention] span[data-type=box-content]{margin:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=mention] span[data-type=box-content] .mention-name{color:var(--primary-color);padding:0;border-radius:12px;margin-left:4px;margin-right:4px;white-space:wrap;word-break:break-all;cursor:pointer}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon{width:20px;height:20px;border-radius:50%;overflow:hidden}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon img{width:100%;height:100%}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon .mention-user-avatar-string{align-items:center;display:flex;justify-content:center;overflow:hidden;height:100%;width:100%;font-size:12px;color:#fff;flex-shrink:0}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-name{flex-grow:0;margin-right:5px}.editor-root .editor-templates{position:fixed;bottom:26px;height:256px;width:auto;max-width:100%;padding-left:30px;padding-right:44px;overflow:hidden}.editor-root .editor-templates .editor-templates-title{color:#909090;font-size:14px;margin-left:0;margin-bottom:20px;line-height:19.6px}.editor-root .editor-templates .editor-templates-cards{display:flex;margin-left:0}.editor-root .editor-templates .editor-templates-cards .editor-template-card{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;cursor:pointer;flex-shrink:0;height:192px;width:188px;background:none;border:1px solid #e8e8e8;border-radius:3px;margin:0 0 0 15px;padding:0;align-items:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card:first-child{margin-left:0}.editor-root .editor-templates .editor-templates-cards .editor-template-card:hover{box-shadow:0 0 1px #30303033,0 8px 16px #30303026}.editor-root .editor-templates .editor-templates-cards .editor-template-card:hover>.editor-template-name{color:#0064ff}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-name{display:flex;align-items:center;height:40px;width:100%;border-top:1px solid #dedede;padding-left:20px;padding-right:20px;flex:0 0 50px;font-size:14px;font-weight:500;line-height:22px;color:#303030}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-name span{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-name{border-top:none}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-name span{padding-left:0;text-align:center}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-thumb-container{display:flex;align-items:center;justify-content:center;padding:16px 39px 14px}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-thumb-container>img{width:110px;height:112px;max-width:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-thumb-container{flex:1;position:relative;padding:10px 5px 0;height:142px;margin:0;overflow:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-thumb-container>img{max-width:100%}:root .iframe-embed-auth-error-tips{width:100%;height:34px;line-height:34px;background-color:#f7f8fa;text-align:center;color:#bebfc2;z-index:9910;position:fixed;top:0;left:0;box-shadow:0 2px 4px #2d2d2e26,0 0 1px #2d2d2e1a}:root .iframe-embed-auth-error-tips span{cursor:pointer;color:#0064ff;user-select:none}.editor-root.readonly [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container.layout-column-container{background-color:transparent}.editor-root div.editor-content div[data-type=editor-container].root>.container-blocks>*+.layout-block{margin-top:1.67em}.editor-root.readonly [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-action-bar,.editor-content.dragging [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-action-bar{display:none;user-select:none;pointer-events:none}.editor-root.readonly [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator,.editor-content.dragging [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator{opacity:0;cursor:default}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block{margin-left:-5px;margin-right:-17px}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.selected .layout-column-container,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.highlighted .layout-column-container{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .block-helper{padding-right:5px}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block>div[data-type=block-tools]>.block-helper{top:-24px;padding-right:5px}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .drag-container{display:flex;position:fixed;z-index:10;box-shadow:0 3px 20px #00000026;cursor:grabbing}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.child-focused .layout-column-container,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block:hover .layout-column-container,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.dragging .layout-column-container{background-color:#f7f8fa}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-disabled .creation-dot-button{display:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.column-resizing .layout-column-container .percent-bar{visibility:visible}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.column-dragging .layout-column-action-bar{display:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container{flex:1;transition:.1s background-color linear;border-radius:3px;position:relative;min-width:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .block-helper{z-index:2}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block div.scroll-container-root>div.container-scroll-tool .container-right-border-shadow{display:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block div[data-type=block-content]{left:0px;margin-right:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block .scroll-area{padding-left:0!important;padding-right:0!important;overflow:visible}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block div[data-type=block-tools] .table-border-bar-container{left:-6px!important}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block div[data-type=table-tools] .button-root:first-child{position:fixed!important}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block div[data-type=table-tools] .table-indicator{transform:translate(26px)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container.selected.selected{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container.danger.danger{background-color:#ffeae8}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container:hover .layout-column-action-bar{opacity:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar{position:absolute;top:0px;transform:translateY(-100%);left:0px;width:calc(100% - 8px);opacity:0;margin:0 4px;transition:opacity .1s linear,transform .15s ease-out}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar.clicked{opacity:1;transform:translateY(-100%)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar.clicked .drag-handler{background:var(--background-default-o-color-bg-weak-hover, rgba(0, 36, 90, .06))}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar.clicked .delete-button{opacity:1;transform:translate(-50%);pointer-events:all}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar .drag-handler{display:flex;justify-content:center;align-items:center;height:12px;width:100%;border-radius:3px;margin-bottom:5px;cursor:grab;background:var(--background-default-o-color-bg-weak, #f7f8fa);color:#87888a}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar .drag-handler:hover{background:var(--background-default-o-color-bg-weak-hover, rgba(0, 36, 90, .06))}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar .drag-handler:active{cursor:grabbing;background:var(--background-default-o-color-bg-weak-hover, rgba(0, 36, 90, .12))}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar .delete-button{display:flex;justify-content:center;align-items:center;width:20px;height:20px;position:absolute;top:-22px;left:50%;opacity:0;cursor:default;padding:4px;transform:translate(-50%,20%);transition:opacity .1s linear,transform .15s ease-out;border-radius:var(--radius-o-radius, 3px);color:#575859;border:1px solid var(--border-default-o-color-border-medium, #dfe1e5);background:var(--background-default-o-color-bg, #fff);pointer-events:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar .delete-button:hover{color:#e83723;border:1px solid var(--border-functional-o-color-border-danger-weak, #fddcd8);background:var(--background-functional-o-color-bg-danger-weak, #fff6f5)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .percent-bar{visibility:hidden;width:51px;position:absolute;left:50%;transform:translate(-50%);top:0;background:rgba(45,45,46,.5);border-radius:3px;text-align:center;color:#fff;font-size:14px;z-index:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container.hovering-toolbar,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container.active{background:#e3eeff}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:3px;position:absolute;top:0;left:50%;transform:translate(-50%,-100%);transition:background-color .1s linear;cursor:pointer}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button:hover{background:var(--background-default-o-color-bg-primary, #0064ff);box-shadow:0 0 1px #2d2d2e33,0 8px 16px -4px #2d2d2e26}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button:hover:after{opacity:0!important;transform:scale(.2)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button:hover~.layout-drag-line{height:100%;top:0;opacity:1!important}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button:after{content:"";border-radius:50%;background:var(--fill-o-color-fill-strong, #d4d6d9);position:absolute;width:4px;height:4px;opacity:0;transform:scale(0);transition:.2s all linear}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.global-dragging .layout-separator{opacity:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator{width:22px;margin:0 -5px;height:auto;flex:none;z-index:1;position:relative;cursor:col-resize;overflow:visible}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:first-child{width:0;cursor:default;pointer-events:none;margin:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:first-child .creation-dot-button{display:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:last-child{cursor:default}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:last-child:hover .layout-drag-line{opacity:0;pointer-events:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator .layout-drag-line{position:absolute;width:2px;height:calc(100% - 10px);left:50%;top:5px;z-index:1;transform:translate(-50%);background-color:#0064ff;transition:.1s linear all;opacity:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:hover .creation-dot-button:after{opacity:1;transform:scale(1)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:hover .layout-drag-line,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator.active .layout-drag-line,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator.dragging .layout-drag-line{opacity:1;transition:.1s linear all}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-root{display:flex}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-root>[data-type=editor-container].layout-column-container{padding:10px 5px}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-root>[data-type=editor-container].layout-column-container+[data-type=editor-container].layout-column-container{margin-left:10px}.layout-preview-container{position:relative;height:0;overflow:hidden;z-index:-99}.layout-preview-container .layout-column-container{background-color:#f7f8fa;box-shadow:0 0 .5px #2d2d2e33,0 4px 10px #2d2d2e26}.layout-preview-container .layout-preview{display:flex}.layout-preview-container .dragging-preview-gray{border-radius:3px;background:#f7f8fa;box-shadow:0 0 .5px #2d2d2e33,0 4px 10px #2d2d2e26}.command-item.menu-item .layout-creator{padding:5px 10px;background:#fff}.command-item.menu-item .layout-creator .layout-creator-title-wrapper{display:flex;margin-bottom:5px;margin-right:5px;font-size:12px}.command-item.menu-item .layout-creator .layout-creator-title-wrapper .layout-creator-title{color:#87888a}.command-item.menu-item .layout-creator .layout-creator-title-wrapper .layout-creator-title-count{margin-left:auto;color:#2d2d2e;visibility:visible}.command-item.menu-item .layout-creator .layout-creator-title-wrapper .layout-creator-title-count.hidden{visibility:hidden}.command-item.menu-item .layout-creator .layout-preview{display:flex}.command-item.menu-item .layout-creator .layout-column{width:30px;height:100px;background:#edeff2;border-radius:3px;margin-right:3px;cursor:pointer}.command-item.menu-item .layout-creator .layout-column:first-child{cursor:not-allowed;background:#dfe1e5}.command-item.menu-item .layout-creator .layout-column.active{background:#408cff}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .container-blocks>*+*{margin-top:1em}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container>.container-blocks>*{min-width:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container>.container-blocks{z-index:1;position:relative;clip-path:inset(-100vw -2px -100vw -100vw)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container>.container-blocks>div[data-block-type=table]:first-child{margin-top:-10px}div[tooltip-id=drag-handler] .tippy-arrow.tippy-arrow.tippy-arrow:before,div[tooltip-id=add-layout-column] .tippy-arrow.tippy-arrow.tippy-arrow:before{transform:scale(.8)}div[tooltip-id=drag-handler] .tippy-content,div[tooltip-id=add-layout-column] .tippy-content{box-shadow:0 8px 16px #30303026,0 0 1px #30303033;padding:4px 10px;font-size:12px;line-height:20px}div[data-command-bar-id=layout-column-toolbar] .editor-command-bar.toolbar{display:flex;justify-content:center;align-items:center;padding:0;box-shadow:none}div[data-command-bar-id=layout-column-toolbar] .editor-command-bar-root{box-shadow:none!important}div[data-command-bar-id=layout-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-column]{padding:0;width:20px;min-width:0;min-height:0;height:20px;color:#575859;border:1px solid var(--border-default-o-color-border-medium, #dfe1e5);background:var(--background-default-o-color-bg, #fff)}div[data-command-bar-id=layout-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-column] svg{width:12px;height:12px}div[data-command-bar-id=layout-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-column].selected,div[data-command-bar-id=layout-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-column]:hover{color:#e83723;border:1px solid var(--border-functional-o-color-border-danger-weak, #fddcd8);background:var(--background-functional-o-color-bg-danger-weak, #fff6f5)}:root div[data-command-bar-id=webpage]>div.tippy-box{max-width:500px}:root div[data-command-bar-id=webpage]>div.tippy-box div.tippy-content{width:500px;padding:0}.editor-dialog-container{width:500px}.editor-dialog-container .dialog-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 20px;height:50px;border-bottom:1px solid #e8e8e8;margin-bottom:20px}.editor-dialog-container .dialog-header .close-icon{display:flex;cursor:pointer}.editor-dialog-container .dialog-header .dialog-header-title{padding:8px 0 11px;font-size:18px;font-weight:700;flex-grow:1}.editor-dialog-container .dialog-content{padding:0 20px 20px;border-bottom:1px solid #e8e8e8}.editor-dialog-container .dialog-footer{margin:10px 0;padding:0 20px;text-align:right}.editor-dialog-container .dialog-footer button{min-height:30px;border-radius:3px;font-size:14px;padding:4px 15px}.editor-disable-scroll.editor-disable-scroll-dark{background-color:#00000080}.embed-block[data-embed-type=webpage]{height:400px;min-height:100px;max-height:1000px}.embed-block[data-embed-type=webpage] .webpage-mask{position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;background-color:transparent}.embed-block[data-embed-type=webpage].resizing [data-type=block-tools] .block-resizer{pointer-events:all!important}.embed-block[data-embed-type=webpage].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=webpage].selected>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=webpage]>div[data-type=block-content]{justify-content:center;height:100%}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed{width:100%}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed .editor-preview-iframe{width:100%;max-height:500px;height:100%;border:none;position:relative}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed .editor-preview-iframe-loading{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;background-color:#fff}.webpage-content .help-container{color:#303030;border:1px solid #dedede;padding:10px;border-radius:4px;border-left:4px solid #0064ff;margin-top:16px;margin-bottom:16px}.webpage-content .help-container .help-content{display:flex;align-items:flex-start}.webpage-content .help-container .help-content .help-icon{display:flex;align-items:center;height:20px;color:#0064ff;margin-right:12px}.webpage-content .help-link-container{margin-top:8px;display:flex;align-items:center}.webpage-content .help-link-container .help-link-content{display:flex;align-items:center;color:#0064ff;text-decoration:none}.webpage-content .help-link-container .help-link-content .help-link-icon{width:16px;height:16px;margin-left:8px}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-embed-type=webpage]>div[data-type=block-content]:before{display:block}:root{--editor-quoted-color: #7084a4;--editor-drawio-empty-svg: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zOC43MjAzIDI4LjcwOTdIMjUuOTIzM0MyNS4yMTY1IDI4LjcwOTcgMjQuNjQzNSAyOC4xNDgxIDI0LjY0MzUgMjcuNDU1MlYyNS43MzMzSDIwLjUyODNDMjAuNDk4NiAyNS43Njk2IDIwLjQ2NjkgMjUuODA0MiAyMC40MzMzIDI1LjgzN0wxNS45MTkyIDMwLjI2MjFWMzQuNzU1NkgyNC42NDM1VjMzLjcyNzZDMjQuNjQzNSAzMy4wMzQ4IDI1LjIxNjUgMzIuNDczMiAyNS45MjMzIDMyLjQ3MzJIMzguNzIwM0MzOS40MjcgMzIuNDczMiA0MCAzMy4wMzQ4IDQwIDMzLjcyNzZWMzguNzQ1NUM0MCAzOS40MzgzIDM5LjQyNyA0MCAzOC43MjAzIDQwSDI1LjkyMzNDMjUuMjE2NSA0MCAyNC42NDM1IDM5LjQzODMgMjQuNjQzNSAzOC43NDU1VjM3LjMzMzNIMTQuNjI2M0MxMy45MTIyIDM3LjMzMzMgMTMuMzMzMyAzNi43NTYyIDEzLjMzMzMgMzYuMDQ0NFYzMC42OTQxTDguMzc4NTIgMjUuODM3QzguMTM2MjYgMjUuNjAxNCA4IDI1LjI4MDggOCAyNC45NDYzQzggMjQuNjExOCA4LjEzNjI2IDI0LjI5MTEgOC4zNzg1MiAyNC4wNTU2TDEzLjMzMzMgMTkuMTk4NVYxNS43NzJDMTEuNzc5OCAxNS4yMjI5IDEwLjY2NjcgMTMuNzQxNiAxMC42NjY3IDEyQzEwLjY2NjcgOS43OTA4NSAxMi40NTc1IDggMTQuNjY2NyA4QzE2Ljg3NTggOCAxOC42NjY2IDkuNzkwODUgMTguNjY2NiAxMkMxOC42NjY2IDEzLjcyNjUgMTcuNTU4OCAxNS4yNTgxIDE1LjkxOTEgMTUuNzk4OFYxOS4yODg4QzE1LjkxOTEgMTkuMzkxOCAxNS45MDY4IDE5LjQ5NDMgMTUuODgyMyAxOS41OTQzTDE5LjUxNTEgMjMuMTU1NUgyNC42NDM1VjIyLjQzNzNDMjQuNjQzNSAyMS43NDQ1IDI1LjIxNjUgMjEuMTgyOSAyNS45MjMzIDIxLjE4MjlIMzguNzIwM0MzOS40MjcgMjEuMTgyOSA0MCAyMS43NDQ1IDQwIDIyLjQzNzNWMjcuNDU1MkM0MCAyOC4xNDgxIDM5LjQyNyAyOC43MDk3IDM4LjcyMDMgMjguNzA5N1pNMjcuMjAzIDM3LjQ5MUgzNy40NDA2VjM0Ljk4MjFIMjcuMjAzVjM3LjQ5MVpNMTQuNDA1OSAyOC4xOTU0TDExLjA5MTUgMjQuOTQ2M0wxNC40MDU5IDIxLjY5NzJMMTcuNzIwNCAyNC45NDYzTDE0LjQwNTkgMjguMTk1NFpNMjcuMjAzIDI2LjIwMDhIMzcuNDQwNlYyMy42OTE4SDI3LjIwM1YyNi4yMDA4WiIgZmlsbD0iIzA3MTQyQSIvPgo8L3N2Zz4K)}.flex-center,.editor-drawio-iframe-container.loading:before{display:flex;align-items:center;justify-content:center}.full-screen,.editor-drawio-iframe-container.loading:before,.drawio-iframe-element,.editor-drawio-iframe-container{width:100%;height:100%}.editor-drawio-iframe-container{position:fixed;top:0;left:0;z-index:1000}div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content]{outline:1px solid #dedede}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio].drawio-load-error>div[data-type=block-content]{padding:0;min-height:200px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio].drawio-load-error>div[data-type=block-content] .editor-drawio-content{width:100%;height:100%;min-height:inherit}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content]{justify-content:center;border-radius:3px;padding:10px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content{display:flex;flex-direction:column;align-items:center;justify-content:center}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content>div.drawio-error-content{width:100%;height:100%;background-color:#f8f8f8;display:flex;flex-direction:column;justify-content:center;text-align:center;flex:1}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content>div.drawio-error-content>div.drawio-error-brand-icon>svg{width:48px;height:48px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content>div.drawio-error-content>div.drawio-error-title{font-weight:500;font-size:18px;line-height:26px;text-align:center;color:#303030;margin:23px 0 5px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content>div.drawio-error-content>div.drawio-error-sub-title{font-size:14px;line-height:22px;text-align:center;color:#606060}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content>div.drawio-error-content>div.drawio-error-sub-title>span.drawio-error-retry-button{cursor:pointer;margin-left:4px;color:#0064ff}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .drawio-empty-content{display:flex;flex-direction:column;align-items:center}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .drawio-empty-content>span{font-size:14px;line-height:22px;text-align:center;color:#606060;margin-top:23px}.embed-block .editor-drawio-content.editor-embed{width:100%;min-height:80px;display:inline-block;text-align:center}.embed-block .editor-drawio-content.editor-embed .editor-empty-drawio{width:240px;height:400px}div.editor-root div.editor-content div[data-type=editor-container] div[data-embed-type=drawio].embed-block>div[data-type=block-content] img{max-width:100%;max-height:100%}.editor-drawio-iframe-container.loading:before{content:attr(data-placeholder);position:absolute;top:0;left:0;background-color:#f7f6f3;z-index:2}.editor-content .editing{background-color:#cdcdcd40}.editor-content div[data-type=block-tools] .embed-code-editor-container{position:absolute;top:0;left:0px;right:0px;bottom:0;background-color:#cdcdcd40;padding:8px}.editor-content div[data-type=block-tools] .embed-code-editor-container textarea{width:100%;height:100%;resize:none;outline:none;padding:12px;border:1px solid #b9bfc8;border-radius:4px;background-color:#fff;color:#333}.flex-row-center,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=mermaid],.embed-block[data-embed-type=flowchart],.embed-block[data-embed-type=plantuml]{display:flex;flex-direction:row;align-items:center;justify-content:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content],.embed-block[data-embed-type=flowchart] div[data-type=block-content],.embed-block[data-embed-type=plantuml] div[data-type=block-content]{width:100%;position:relative;border:1px solid #e5e5e5;border-radius:3px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed{width:100%;min-height:106px;background-color:#cdcdcd40}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed:after{content:attr(data-empty-tips);position:absolute;top:0;right:0;width:100%;height:100%;color:#07142a;white-space:nowrap}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed){width:100%;height:100px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed) img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed) img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed) img{display:none}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed):after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed):after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed):after{content:attr(data-invalid-text);position:absolute;top:0;right:0;width:100%;height:100%;outline:1px solid red;display:flex;flex-direction:row;align-items:center;justify-content:center;color:red}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-img-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-img-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-img-content{width:100%;text-align:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .mermaid-embed-img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .mermaid-embed-img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .mermaid-embed-img{max-width:100%;min-width:200px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .editor-plantuml-img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .editor-plantuml-img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .editor-plantuml-img{max-width:100%}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-img-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-img-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-img-content{width:100%;text-align:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-img-content img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-img-content img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-img-content img{max-width:100%}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed{width:100%}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-error-content,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-error-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-error-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content{width:100%;height:100%;min-height:200px;background-color:#f8f8f8;display:flex;flex-direction:column;justify-content:center;text-align:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-error-content>div.graph-error-brand-icon>svg,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-error-brand-icon>svg,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-error-content>div.graph-error-brand-icon>svg,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-error-brand-icon>svg,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-error-content>div.graph-error-brand-icon>svg,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-error-brand-icon>svg{width:48px;height:48px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-title,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-title,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-title,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-title,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-title,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-title{font-weight:500;font-size:18px;line-height:26px;text-align:center;color:#2d2d2e;margin:23px 0 5px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title{font-size:14px;line-height:22px;text-align:center;color:#87888a}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title>span.graph-error-retry-button,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title>span.graph-error-retry-button,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title>span.graph-error-retry-button,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title>span.graph-error-retry-button,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title>span.graph-error-retry-button,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title>span.graph-error-retry-button{cursor:pointer;margin-left:4px;color:#0064ff}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content{background-color:#fff}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-brand-icon>svg,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-brand-icon>svg,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-brand-icon>svg{width:48px;height:48px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-empty-title,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-empty-title,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-empty-title{font-weight:400;font-size:14px;line-height:22px;text-align:center;color:#606060;margin-top:23px}.hr-transition,.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container .editor-embed-hr{transition:border-top ease-in-out .4s}.embed-block[data-type=editor-block][data-embed-type=hr].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-type=editor-block][data-embed-type=hr].selected>div[data-type=block-content]{outline:none!important}.embed-block[data-type=editor-block][data-embed-type=hr]:is(.focused) div[data-type=block-content] .editor-embed-container .editor-embed-hr{caret-color:transparent}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container{display:flex;align-items:center;width:100%;height:24px;cursor:pointer}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container .editor-embed-hr{display:block;width:100%;border:none;margin:0;border-top:2px dashed #cccccc}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-tools]>div.block-helper{height:100%}:root{--hover-color: #40a9ff}.flex-column-center,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{display:flex;justify-content:center;align-items:center;flex-flow:column}.common{width:400px;height:180px;background-color:#fafafa;border:1px dashed #d9d9d9;border-radius:2px;transition:border-color .3s}.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{height:200px}.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty .media-error-icon,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .media-error-icon{display:flex}.editor-root .editor-content div[data-type=editor-block].embed-block.media-block-uploading div[data-type=block-tools] .block-helper{display:none}.embed-block[data-embed-type=video]{display:flex}.embed-block[data-embed-type=video][data-style-align=left]{justify-content:flex-start}.embed-block[data-embed-type=video][data-style-align=center]{justify-content:center}.embed-block[data-embed-type=video][data-style-align=right]{justify-content:flex-end}.embed-block[data-embed-type=video]>div[data-type=block-content]{border:none}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error{height:400px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty .media-error-icon,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .media-error-icon{display:flex}.embed-block[data-embed-type=video].hover>div[data-type=block-content],.embed-block[data-embed-type=audio].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=video].selected>div[data-type=block-content]:before,.embed-block[data-embed-type=audio].selected>div[data-type=block-content]:before{display:none}.embed-block[data-embed-type=video]>div[data-type=block-content],.embed-block[data-embed-type=audio]>div[data-type=block-content]{justify-content:center;max-width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media.full-screen,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media.full-screen{width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media{display:flex;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress{position:relative;width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress audio,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress audio{display:block;width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress video,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress video{display:block;max-width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#303030;opacity:.8;display:flex;align-items:center;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar{width:75%;height:6px;border-radius:3px;display:flex;background-color:#fff;overflow:hidden}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value{background-color:#0064ff}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{width:100%;background:#f8f8f8;outline:1px solid #dedede;border-radius:3px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error-icon svg,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error-icon svg{width:48px;height:48px;color:#c7c7c7}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .line-1,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .line-1{margin-top:10px;font-size:18px;text-align:center;color:#303030}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .line-2,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .line-2{margin-top:5px;font-size:14px;text-align:center;color:#606060}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .retry-upload,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .retry-upload{margin-left:4px;color:#0064ff;cursor:pointer;text-decoration:none}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty{width:100%;background:#ffffff;outline:1px solid #dedede;border-radius:3px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty svg,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty svg{width:48px;height:48px;color:#c7c7c7}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element{width:100%;display:flex;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .video-container,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .video-container{border-radius:3px;overflow:hidden}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .video-container video,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .video-container video{display:block;min-width:50px;max-width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .audio-container,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .audio-container{width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .audio-container audio,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .audio-container audio{display:block;width:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment{box-shadow:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment .media,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment .media{box-shadow:0 2px #f8e6ab}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment.active,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment.active{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment.active .media,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment.active .media{box-shadow:none;outline:4px solid #f8e6ab}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content]:after{display:none}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content] .media{position:relative}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content] .media:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#2d2d2e;opacity:.3}.video-tooltip-align-style-section .style-icon{border:none;background:#fff;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding-left:0;padding-right:0;border-radius:3px}.video-tooltip-align-style-section .style-icon:hover{background:rgba(0,0,0,.05)}.video-tooltip-align-style-section .style-icon.active{color:#00f}`)),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
1
+ (function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode(`@keyframes ones-editor-blink{0%,to{background-color:transparent}50%{background-color:#0064ff}}*{--link-color: #0064ff;--color-0: #e52727;--color-1: #eb6414;--color-2: #f0a100;--color-3: #24b47e;--color-4: #0064ff;--color-5: #9678d3;--color-6: #909090;--background-color-0: #fad4d4;--background-color-1: #fbe0d0;--background-color-2: #fceccc;--background-color-3: #d3f0e5;--background-color-4: #d6e9fa;--background-color-5: #eae4f6;--background-color-6: #dedede;--background-color-7: #e52727;--background-color-8: #eb6414;--background-color-9: #f0a100;--background-color-10: #24b47e;--background-color-11: #0064ff;--background-color-12: #9678d3;--background-color-13: #909090;--background-color-14: #e8e8e8;--font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif}div.editor-root{--text-color: #303030;--primary-color: #0064ff;--background-selection: #0064ff1A;--background-code: #cdcdcd40}div.editor-root{color:#2d2d2e;position:relative;box-sizing:border-box;min-height:100%;width:100%;z-index:1}div.editor-root.readonly div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span.text.link{cursor:pointer}div.editor-root *{box-sizing:border-box;font-family:var(--font-family)}div.editor-root button{outline:none}div.editor-root.active div.editor-content .editor-cursor{opacity:1}div.editor-root .safari.mobile div.editor-content .editor-input{pointer-events:all;width:8px}div.editor-root div.editor-content{height:100%;width:100%;padding:0 30px 30px}div.editor-root div.editor-content .editor-cursor{position:absolute;background:#0064ff;width:2px;transition:top .1s ease-in,left .1s linear;animation:ones-editor-blink 1s ease-in-out infinite;opacity:0;pointer-events:none}div.editor-root div.editor-content .editor-input{position:absolute;opacity:0;pointer-events:none;width:16px;height:20px;font-size:16px}div.editor-root div.editor-content div[data-type=editor-container]{position:relative}div.editor-root div.editor-content div[data-type=editor-container].root{user-select:none;width:100%;cursor:text}div.editor-root div.editor-content div[data-type=editor-container].root>.container-blocks>*+*{margin-top:1em}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block]:not([data-document-title]){background-color:var(--background-selection)}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block]:not([data-document-title]) div[data-type=block-background]>.editor-selection-background{background-color:transparent!important}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block].embed-block>div[data-type=block-content]:before,div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block].embed-block .embed-selected-content:before{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]+div[data-type=editor-block][data-style-quoted]{margin-top:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block]{font-size:var(--font-size);line-height:var(--line-height);position:relative;--font-size: 15px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=center] div[data-type=block-content]{text-align:center}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=right] div[data-type=block-content]{text-align:end}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].block-hidden{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=text]{cursor:text}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]{word-break:break-word;position:relative}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span{cursor:text}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion{white-space:pre-wrap}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.link{color:#0064ff}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link:hover,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.link:hover{cursor:pointer;color:#0053cf}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link.style-strikethrough:hover,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.link.style-strikethrough:hover{text-decoration:underline line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-bold,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-bold{font-weight:700}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-italic,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-italic{font-style:italic}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-underline,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-underline{text-decoration:underline}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-strikethrough,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-strikethrough{text-decoration:line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-underline.style-strikethrough,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-underline.style-strikethrough{text-decoration:underline line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-code,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-code{border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:var(--background-code);padding:4px;font:.8em Monaco,Consolas,"Andale Mono",DejaVu Sans Mono,monospace}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-sub,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-sub{vertical-align:sub;font-size:70%}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-super,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion.style-super{vertical-align:super;font-size:70%}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="0"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="0"]{color:var(--color-0)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="1"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="1"]{color:var(--color-1)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="2"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="2"]{color:var(--color-2)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="3"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="3"]{color:var(--color-3)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="4"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="4"]{color:var(--color-4)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="5"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="5"]{color:var(--color-5)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="6"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-color="6"]{color:var(--color-6)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="0"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="0"]{background-color:var(--background-color-0)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="1"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="1"]{background-color:var(--background-color-1)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="2"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="2"]{background-color:var(--background-color-2)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="3"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="3"]{background-color:var(--background-color-3)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="4"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="4"]{background-color:var(--background-color-4)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="5"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="5"]{background-color:var(--background-color-5)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="6"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="6"]{background-color:var(--background-color-6)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="7"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="7"]{background-color:var(--background-color-7)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="8"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="8"]{background-color:var(--background-color-8)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="9"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="9"]{background-color:var(--background-color-9)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="10"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="10"]{background-color:var(--background-color-10)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="11"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="11"]{background-color:var(--background-color-11)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="12"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="12"]{background-color:var(--background-color-12)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="13"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="13"]{background-color:var(--background-color-13)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="14"],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.inputting-insertion[data-style-bg-color="14"]{background-color:var(--background-color-14)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].inputting-insertion>span[data-type=insertion-content]{border-bottom:1px solid var(--primary-color)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion{width:0px;position:relative;display:inline-block;vertical-align:text-bottom;overflow:visible;height:1em}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content]{position:absolute;color:transparent;width:3px;left:-3px;border-right:var(--cursor-color) 1px solid;text-overflow:clip;display:inline-block;top:-5px;bottom:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content] span[data-cursor-name]{display:inline-block;width:8px;background-color:transparent;border:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content] span[data-cursor-name]:hover:before,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion.active>span[data-type=insertion-content] span[data-cursor-name]:before{content:attr(data-cursor-name);position:absolute;top:-12px;height:1.1em;background-color:var(--cursor-color);z-index:27;left:0px;color:#fff;white-space:nowrap;font-size:12px;display:flex;align-items:center;padding:1px 4px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=box-content]{border-radius:2px;margin-left:8px;margin-right:8px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=editor-box].br-box>span[data-type=box-content] img{vertical-align:middle;max-width:1em}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=editor-box][data-box-type=image].image-box span[data-type=box-content]{user-select:none;margin-left:0;margin-right:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-tools] .editor-block-anchor{position:absolute}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-background] .editor-selection-background{position:absolute;background-color:var(--background-selection);z-index:1;pointer-events:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block{cursor:default}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.hover>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block.hover>div[data-type=block-content]{outline:1px solid #0064ff}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block>div[data-type=block-content]{display:flex}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.hover .embed-hover-content{outline:1px solid #0064ff}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected .embed-selected-content{position:relative}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected>div[data-type=block-content]:before,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected .embed-selected-content:before{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#0064ff;opacity:.1}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block{color:#909090;font-size:12px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block>div[data-type=block-content]{padding:5px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]{border-left:4px solid #d4d6d9;color:#87888a}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]:not([data-list-level]){padding-left:8px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="1"]{--font-size: 28px;--line-height: 1.5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="1"]:not(:first-child){margin-top:24px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="2"]{--font-size: 26px;--line-height: 1.5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="2"]:not(:first-child){margin-top:24px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="3"]{--font-size: 24px;--line-height: 1.5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="3"]:not(:first-child){margin-top:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="4"]{--font-size: 22px;--line-height: 1.5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="4"]:not(:first-child){margin-top:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="5"]{--font-size: 20px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="5"]:not(:first-child){margin-top:16px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="6"]{--font-size: 18px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="6"]:not(:first-child){margin-top:16px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="7"]{--font-size: 16px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="8"]{--font-size: 14px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading]{font-size:var(--font-size);line-height:var(--line-height);font-weight:700}.editor-disable-scroll{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:9900;overflow:hidden}div.editor-root>div.editor-content>div[data-type=editor-container]>div.container-blocks>div[data-type=editor-block][data-document-title]{font-size:30px;line-height:1.3}div.comment-editor-root div.root.select-all>.container-blocks>div[data-type=editor-block]:first-of-type{background-color:var(--background-selection)}div.comment-editor-root div.root.select-all>.container-blocks>div[data-type=editor-block]:first-of-type div[data-type=block-background]>.editor-selection-background{background-color:transparent!important}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-anchor{position:absolute;pointer-events:none;z-index:-1}.editor-command-bar.toolbar .color-button{width:24px;height:24px;display:flex;padding:0;margin:0;align-items:center;justify-content:center;background-color:transparent;border:0;outline:0;border-radius:3px;cursor:pointer;color:#2d2d2e}.editor-command-bar.toolbar .color-button[data-color="0"]{color:var(--color-0)}.editor-command-bar.toolbar .color-button[data-color="1"]{color:var(--color-1)}.editor-command-bar.toolbar .color-button[data-color="2"]{color:var(--color-2)}.editor-command-bar.toolbar .color-button[data-color="3"]{color:var(--color-3)}.editor-command-bar.toolbar .color-button[data-color="4"]{color:var(--color-4)}.editor-command-bar.toolbar .color-button[data-color="5"]{color:var(--color-5)}.editor-command-bar.toolbar .color-button[data-color="6"]{color:var(--color-6)}.editor-command-bar.toolbar .color-button[data-background-color="0"]{background-color:var(--background-color-0)}.editor-command-bar.toolbar .color-button[data-background-color="1"]{background-color:var(--background-color-1)}.editor-command-bar.toolbar .color-button[data-background-color="2"]{background-color:var(--background-color-2)}.editor-command-bar.toolbar .color-button[data-background-color="3"]{background-color:var(--background-color-3)}.editor-command-bar.toolbar .color-button[data-background-color="4"]{background-color:var(--background-color-4)}.editor-command-bar.toolbar .color-button[data-background-color="5"]{background-color:var(--background-color-5)}.editor-command-bar.toolbar .color-button[data-background-color="6"]{background-color:var(--background-color-6)}.editor-command-bar.toolbar .color-button[data-background-color="7"]{background-color:var(--background-color-7)}.editor-command-bar.toolbar .color-button[data-background-color="8"]{background-color:var(--background-color-8)}.editor-command-bar.toolbar .color-button[data-background-color="9"]{background-color:var(--background-color-9)}.editor-command-bar.toolbar .color-button[data-background-color="10"]{background-color:var(--background-color-10)}.editor-command-bar.toolbar .color-button[data-background-color="11"]{background-color:var(--background-color-11)}.editor-command-bar.toolbar .color-button[data-background-color="12"]{background-color:var(--background-color-12)}.editor-command-bar.toolbar .color-button[data-background-color="13"]{background-color:var(--background-color-13)}.editor-command-bar.toolbar .color-button[data-background-color="14"]{background-color:var(--background-color-14)}.tippy-content{white-space:pre-line}.editor-button{min-height:26px;min-width:46px;font-size:12px;font-weight:400;outline:none;background-color:#fff;color:#606060;border:1px solid #c7c7c7;padding:4px 8px;border-radius:4px;margin-right:8px;cursor:pointer}.editor-button:disabled{cursor:not-allowed;opacity:.5;background-color:#e8e8e8}.editor-button:not(:disabled):hover{border:1px solid #0064ff;background-color:#eaf3fc;color:#0064ff}.editor-button.primary{font-weight:500;border:1px solid rgba(0,0,0,0);background-color:var(--editor-button-bg-color, #0064ff);color:var(--editor-button-color, #fff)}.editor-button.primary:not(:disabled):hover{background-color:#408cff;border:1px solid rgba(0,0,0,0);color:var(--editor-button-color, #fff)}.editor-button.primary:disabled{cursor:not-allowed;opacity:.5}.editor-button.primary:not(:disabled):active{background-color:#0053cf;color:#fff;border-color:#2872b7}.editor-button:last-child{margin-right:0}.editor-button:not(:disabled):active{background-color:#cfe2ff;color:#0053cf;border-color:#0053cf}@keyframes editorLoadingCircle{0%{transform-origin:50% 50%;transform:rotate(0)}to{transform-origin:50% 50%;transform:rotate(360deg)}}.editor-loading-icon>svg{color:#0064ff;font-size:1em;animation:editorLoadingCircle .8s linear infinite}.editor-checkbox-wrapper{display:flex;height:14px;width:14px;border:none;background-color:transparent;outline:none;padding:0;overflow:visible;box-sizing:border-box;cursor:pointer}.editor-checkbox-wrapper .editor-checkbox{display:block;width:inherit;height:inherit}.editor-checkbox-wrapper .editor-checkbox>.editor-checkbox-inner{display:block;box-sizing:border-box;border:1px solid #c7c7c7;border-radius:3px;height:100%;width:100%;position:relative;left:0;top:0;transition:all .3s}.editor-checkbox-wrapper:not(.checked)>span.editor-checkbox:hover>span.editor-checkbox-inner{border-color:#0064ff}.editor-checkbox-wrapper.checked>.editor-checkbox{position:relative}.editor-checkbox-wrapper.checked>.editor-checkbox:after{animation:editorCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;border:1px solid #0064ff;border-radius:3px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;box-sizing:border-box}.editor-checkbox-wrapper.checked>.editor-checkbox>span.editor-checkbox-inner{border-color:#0064ff;background-color:#0064ff}.editor-checkbox-wrapper.checked>.editor-checkbox>span.editor-checkbox-inner:after{width:5px;height:10px;left:2px;top:5px;border:2px solid #fff;border-left:0;border-top:0;content:" ";display:table;opacity:1;position:absolute;box-sizing:border-box;transform:rotate(45deg) scale(1) translate(-50%,-50%)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}[data-theme=dropdown-list]{border-radius:4px;background:white;position:relative;max-width:calc(100vw - 24px);box-shadow:#0f0f0f0d 0 0 0 1px,#0f0f0f1a 0 3px 6px,#0f0f0f33 0 9px 24px;overflow:hidden}[data-theme=dropdown-list] .tippy-content{padding:0;background:white;color:#2d2d2e}[data-theme=dropdown-list] .tippy-content .editor-command-bar{max-height:50vh}[data-theme=dropdown-list] .filterable-list{min-width:100px;max-width:300px;display:flex;flex-direction:column;max-height:100%}[data-theme=dropdown-list] .filterable-list .filter{padding:8px}[data-theme=dropdown-list] .filterable-list .filter .filter-container{width:100%;font-size:14px;line-height:20px;padding:3px 6px;position:relative;border-radius:3px;box-shadow:#0f0f0f1a 0 0 0 1px inset;cursor:text;height:28px;box-sizing:border-box;display:flex;align-items:center}[data-theme=dropdown-list] .filterable-list .filter .filter-container input.filter-input{border:none;outline:none;flex-grow:1;background:#ffffff}[data-theme=dropdown-list] .filterable-list .list{max-height:60vh;overflow-y:auto;padding:0 0 8px}[data-theme=dropdown-list] .filterable-list .list .list-item{user-select:none;transition:background 20ms ease-in 0s;cursor:pointer;width:100%;border-radius:3px;height:34px;padding:6px 10px;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box}[data-theme=dropdown-list] .filterable-list .list .list-item .list-text{white-space:nowrap}[data-theme=dropdown-list] .filterable-list .list .list-item:hover{background:rgba(0,36,90,.04)}[data-theme=dropdown-list] .filterable-list .list .list-item.selected{color:#0064ff}[data-theme=dropdown-list] .filterable-list .list .list-item.disabled{color:#c1c1c1}[data-theme=dropdown-list] .filterable-list .list .list-item.disabled:hover{background:transparent}[data-theme=dropdown-list] .filterable-list .list .list-item .list-item-selected-icon{display:flex;background:transparent;border:none;color:#0064ff}::placeholder{color:#bbb}.toast{font-family:Avenir,Helvetica,Arial,sans-serif;visibility:hidden;min-width:250px;margin-left:-125px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:8px;position:fixed;z-index:1;left:50%;bottom:30px}.toast.show{visibility:visible;animation:toast_fade_in .5s,toast_fade_out .5s 2.5s}.toast.positioned.show{animation:toast_fade_in_positioned .5s,toast_fade_out_positioned .5s 2.5s}.toast.positioned{bottom:unset}@keyframes toast_fade_in{0%{bottom:0;opacity:0}to{bottom:30px;opacity:1}}@keyframes toast_fade_out{0%{bottom:30px;opacity:1}to{bottom:0;opacity:0}}@keyframes toast_fade_in_positioned{0%{opacity:0}to{opacity:1}}@keyframes toast_fade_out_positioned{0%{opacity:1}to{opacity:0}}div.tippy-box[data-theme=toolbar] .tippy-content,div.tippy-box[data-theme=menu] .tippy-content{padding:0}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar.menu{min-width:180px}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar.menu .menu-item{cursor:pointer}div.tippy-box[data-theme=menu] .tippy-arrow{z-index:2}div.tippy-box[data-theme=menu] .tippy-arrow:before{content:"";display:block;width:0px;height:0px;position:absolute;top:-16px;border-width:8px;border-bottom-color:#fff}div.tippy-box[data-theme=menu] .tippy-arrow:after{content:" ";display:block;position:absolute;left:2px;top:-5px;box-shadow:-1px -1px 2px #3030300f;width:12px;height:12px;transform:rotate(45deg)}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar-root,div.tippy-box[data-theme=toolbar] .tippy-content .editor-command-bar-root{box-shadow:0 0 1px #30303040,0 12px 24px #30303026}div.tippy-box[data-theme=toolbar] .tippy-content .editor-command-bar-root{overflow:initial}div.tippy-box button{outline:none}.editor-command-bar-root{display:flex;flex-direction:column;align-items:flex-start;background:#ffffff;border-radius:2px;max-height:50vh;overflow:auto}.editor-command-bar-root.scrollable-bar>.editor-command-bar.menu{overflow-y:auto}.editor-command-bar{pointer-events:all;display:flex;box-sizing:border-box;--text-color: #606060;--primary-color: #0064ff;--selected-color: #f8f8f8;--separator-color: #e8e8e8;--warn-color: #fdf4f4}.editor-command-bar.fixed.toolbar{box-shadow:none}.editor-command-bar.menu{flex:1;width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:5px 0}.editor-command-bar.menu .command-item.standard{color:#2d2d2e;user-select:none;transition:background 20ms ease-in 0s;width:100%;height:32px;padding:6px 10px;display:flex;align-items:center;box-sizing:border-box}.editor-command-bar.menu .command-item.standard .menu-item-icon{align-items:center;height:24px;width:24px;margin-right:5px;margin-top:-2px;display:flex;flex-direction:column;justify-content:center}.editor-command-bar.menu .command-item.standard .menu-item-name{white-space:nowrap;flex-grow:1;display:flex;align-items:center}.editor-command-bar.menu .command-item.standard .item-subtext{color:#909090}.editor-command-bar.menu .command-item.standard .menu-item-sub-indicator{display:flex;align-items:center;justify-content:center}.editor-command-bar.menu .command-item.standard .menu-item-sub-indicator svg{width:16px;height:16px}.editor-command-bar.menu .command-item.standard.disabled{color:#c7c7c7;cursor:not-allowed}.editor-command-bar.menu .command-item.standard.disabled .menu-item-icon{color:#c7c7c7}.editor-command-bar.menu .command-item.separator{height:1px;margin:4px 0;background-color:#dfe1e5;width:100%}.editor-command-bar.menu .command-item.section{font-size:.8em;color:#ccc;padding:5px 5px 5px 10px;cursor:initial;user-select:none}.editor-command-bar.menu .command-item.selected{background-color:#00245a0a}.editor-command-bar.menu .command-item.selected[data-id=delete]:not(.disabled){color:#e52727;background-color:var(--warn-color)}.editor-command-bar.menu .command-item.selected[data-id=delete]:not(.disabled) svg{color:#e52727}.editor-command-bar.menu .command-item.selected.disabled{background-color:transparent}.editor-command-bar.menu .command-item.checked{color:#0064ff}.editor-command-bar.menu .command-item.checked .menu-item-checked-icon{display:flex;align-items:center;justify-content:center;margin-left:10px}.editor-command-bar.menu .command-item.checked.disabled{color:#c7c7c7}.editor-command-bar.menu .command-item span.highlight{color:#eb3723}.editor-command-bar.toolbar{display:flex;flex-direction:row;align-items:flex-start;padding:5px 10px;gap:5px;background:#ffffff;box-shadow:0 0 1px #30303033,0 8px 16px #30303026;border-radius:3px}.editor-command-bar.toolbar .command-item{background:transparent;border:none;display:flex;align-items:center;justify-content:center;color:#2d2d2e;height:24px;padding:0;cursor:pointer;border-radius:3px;min-width:24px}.editor-command-bar.toolbar .command-item.selected:not(.disabled){background-color:#00245a0a}.editor-command-bar.toolbar .command-item:active:not(.disabled){background-color:#00245a0f}.editor-command-bar.toolbar .command-item.disabled{color:#c7c7c7}.editor-command-bar.toolbar .command-item.checked{color:#0064ff}.editor-command-bar.toolbar .command-item.checked.disabled{color:#c7c7c7}.editor-command-bar.toolbar .command-item.separator{margin:auto 2px;height:15px;min-width:1px;width:1px;background-color:#dfe1e5;padding:0;pointer-events:none;cursor:default}.editor-command-bar.toolbar .command-item .toolbar-item-name-container{display:flex;flex-direction:row;align-items:center}.editor-command-bar.toolbar .command-item .toolbar-item-icon-container{display:flex}.editor-command-bar.toolbar .command-item[data-dropdown=true]{padding-left:4px;padding-right:4px}.editor-command-bar.toolbar .command-item[data-dropdown=true] .toolbar-item-icon-container{width:24px;height:24px;align-items:center;justify-content:center}.editor-command-bar.toolbar .command-item .toolbar-item-dropdown-container{display:flex}.editor-command-bar.toolbar .command-item .toolbar-item-dropdown-container svg{transform:rotate(360deg);transition:transform .2s linear}.editor-command-bar.toolbar .command-item.active .toolbar-item-dropdown-container svg{transform:rotate(180deg)}.editor-command-bar.toolbar .command-item[data-button-id=turn-into] .toolbar-item-name-container,.editor-command-bar.toolbar .command-item[data-button-id=align] .toolbar-item-name-container{width:24px;height:24px}.editor-command-bar.toolbar .editor-button+.editor-button{margin-left:5px}.editor-command-bar.footer{width:100%}.reference-hidden .tippy-box[data-reference-hidden]{opacity:0;pointer-events:none;transition:none}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.editor-dropdown{display:flex;align-items:center;border:1px solid #c7c7c7;border-radius:3px;font-size:14px;width:200px;height:30px}.editor-dropdown *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.editor-dropdown .dropdown-text,.editor-dropdown .dropdown-input{flex-grow:1;padding:2px 8px;border:none;outline:none;background:transparent;font-size:14px;color:#303030;min-width:0;flex-shrink:1}.editor-dropdown .dropdown-text{margin-right:4.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;cursor:text;line-height:24px}.editor-dropdown:hover{border-color:#0064ff}.editor-dropdown.active{border-color:#0064ff;box-shadow:0 0 0 2px #338fe533}.editor-dropdown.active .dropdown-text{display:none}.editor-dropdown.active .dropdown-icon svg{color:#0064ff;transform:rotate(180deg)}.editor-dropdown:not(.active) .dropdown-input{display:none}.editor-dropdown .dropdown-labels{display:flex;align-items:center;flex-shrink:0}.editor-dropdown .dropdown-labels .dropdown-label{color:#0064ff;background-color:#eaf3fc;height:20px;padding:0 5px;border-radius:3px;display:flex;align-items:center}.editor-dropdown .dropdown-labels .dropdown-label+.dropdown-label{margin-left:5px}.editor-dropdown .dropdown-clear-icon,.editor-dropdown .dropdown-icon{flex-shrink:0;width:16px;height:16px;margin-left:8px;display:flex;align-items:center;justify-content:center;cursor:pointer}.editor-dropdown .dropdown-clear-icon{color:#909090}.editor-dropdown .dropdown-clear-icon:hover{color:#0064ff}.editor-dropdown.empty .dropdown-clear-icon,.editor-dropdown:not(:hover) .dropdown-clear-icon{display:none}.editor-dropdown.empty .dropdown-text{color:#909090}.editor-dropdown .dropdown-icon{margin-right:8px}.editor-dropdown .dropdown-icon svg{transform:rotate(360deg);transition:transform .2s linear}.scale-border:after,.color-palette .palette-container-row .background-color-button.selected:after,.color-palette .palette-container-row .background-color-button:hover:after{content:"";outline:1px solid #0064ff;border-radius:3px;position:absolute;left:0;right:0;top:0;bottom:0;transform:scale(1.1)}.color-palette{display:flex;flex-direction:column;align-items:center;padding-top:5px;background-color:#fff;--active-color: #2872b7}.color-palette .bar-desc{box-sizing:border-box;width:100%;height:24px;padding-left:10px;margin-bottom:10px;line-height:24px;font-size:12px;font-weight:500;background:#f8f8f8;color:#909090}.color-palette .palette-container{padding:0 10px}.color-palette .background-color .palette-container-row:first-child{margin-bottom:5px}.color-palette .palette-container-row{display:flex;flex-direction:row;margin-bottom:20px}.color-palette .palette-container-row .color-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;background-color:#fff;border:1px solid #f0f0f0;display:flex;margin:0;padding:0;align-items:center;justify-content:center}.color-palette .palette-container-row .color-button:hover{border:1px solid #0064ff}.color-palette .palette-container-row .color-button.selected{border:1px solid var(--primary-color)}.color-palette .palette-container-row .color-button[data-color-index="-1"]{color:var(--text-color)}.color-palette .palette-container-row .color-button[data-color-index="0"]{color:var(--color-0)}.color-palette .palette-container-row .color-button[data-color-index="1"]{color:var(--color-1)}.color-palette .palette-container-row .color-button[data-color-index="2"]{color:var(--color-2)}.color-palette .palette-container-row .color-button[data-color-index="3"]{color:var(--color-3)}.color-palette .palette-container-row .color-button[data-color-index="4"]{color:var(--color-4)}.color-palette .palette-container-row .color-button[data-color-index="5"]{color:var(--color-5)}.color-palette .palette-container-row .color-button[data-color-index="6"]{color:var(--color-6)}.color-palette .palette-container-row .background-color-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;position:relative}.color-palette .palette-container-row .background-color-button.selected:after{outline:1px solid var(--primary-color)}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]{position:relative;background-color:#fff;border:1px solid #e8e8e8}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]:after{transform:scale(1.2)}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]:before{content:"";position:absolute;width:1px;height:56px;top:2px;left:22px;background-color:#c7c7c7;transform:rotate(45deg) scale(.5);transform-origin:-1px -2px}.color-palette .palette-container-row .background-color-button[data-color-index="0"]{background-color:var(--background-color-0)}.color-palette .palette-container-row .background-color-button[data-color-index="1"]{background-color:var(--background-color-1)}.color-palette .palette-container-row .background-color-button[data-color-index="2"]{background-color:var(--background-color-2)}.color-palette .palette-container-row .background-color-button[data-color-index="3"]{background-color:var(--background-color-3)}.color-palette .palette-container-row .background-color-button[data-color-index="4"]{background-color:var(--background-color-4)}.color-palette .palette-container-row .background-color-button[data-color-index="5"]{background-color:var(--background-color-5)}.color-palette .palette-container-row .background-color-button[data-color-index="6"]{background-color:var(--background-color-6)}.color-palette .palette-container-row .background-color-button[data-color-index="7"]{background-color:var(--background-color-7)}.color-palette .palette-container-row .background-color-button[data-color-index="8"]{background-color:var(--background-color-8)}.color-palette .palette-container-row .background-color-button[data-color-index="9"]{background-color:var(--background-color-9)}.color-palette .palette-container-row .background-color-button[data-color-index="10"]{background-color:var(--background-color-10)}.color-palette .palette-container-row .background-color-button[data-color-index="11"]{background-color:var(--background-color-11)}.color-palette .palette-container-row .background-color-button[data-color-index="12"]{background-color:var(--background-color-12)}.color-palette .palette-container-row .background-color-button[data-color-index="13"]{background-color:var(--background-color-13)}.color-palette .palette-container-row .background-color-button[data-color-index="14"]{background-color:var(--background-color-14)}.color-palette .palette-container-row .color-button+.color-button{margin-left:5px}.color-palette .palette-container-row .background-color-button+.background-color-button{margin-left:5px}.color-palette .clear-button-container{box-sizing:border-box;width:100%;margin-bottom:5px;padding:0 10px}.color-palette .clear-button-container .clear-button{box-sizing:border-box;padding:3px 10px;width:100%;height:26px;background:#ffffff;color:#575859;border:1px solid #bebfc2;border-radius:3px;cursor:pointer}.color-palette .clear-button-container .clear-button:hover{color:#0064ff;background:#e3eeff;border:1px solid #0064ff}.color-palette .clear-button-container .clear-button:active{color:#0053cf;background:#cfe2ff;border:1px solid #0053cf}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar.menu .menu-item[data-id=text-color-palette-item]{cursor:default}.editor-input-wrap .editor-input-label{margin-top:8px;margin-bottom:8px;position:relative;font-weight:500}.editor-input-wrap .editor-input-label.required:before{content:"*";color:#e82100;position:absolute;left:-8px;top:3px}.editor-input-wrap .editor-input-label .span{font-size:14px;line-height:1.4;font-weight:700;color:#303030}.editor-input-wrap .editor-input-container{display:flex;border:none;border-radius:4px;padding:4px;background-color:#fff;position:relative}.editor-input-wrap .editor-input-container .editor-input{outline:none;border:1px solid #c7c7c7;border-radius:3px;padding:4px 10px;font-size:14px;line-height:1.4;color:#000;width:100%}.editor-input-wrap .editor-input-container .editor-input:focus{border-color:#0064ff;box-shadow:0 0 0 2px #338fe533}.editor-input-wrap .editor-input-container .editor-input-suffix{height:100%;position:absolute;top:0px;right:10px;display:flex;align-items:center;color:#87888a;font-size:12px}.editor-input-wrap .editor-input-container .editor-input-suffix+.editor-input{padding-right:50px}.editor-input-wrap.error .editor-input-container{border:1px solid #e82100}.editor-input-wrap.error .editor-input-container .editor-input{border:none;outline:none;box-shadow:unset}.editor-input-wrap.error .editor-input-error{margin-top:8px;color:red;display:block}.editor-input-wrap .editor-input-error{display:none}div.scroll-container-root{position:relative}div.scroll-container-root>div.scroll-container{position:relative;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;line-height:0px}div.scroll-container-root>div.scroll-container>.scroll-area{position:relative;display:inline-block;overflow:hidden;line-height:normal}div.scroll-container-root>div.scroll-container{scrollbar-width:none}div.scroll-container-root>div.scroll-container::-webkit-scrollbar{height:0;opacity:0}div.scroll-container-root>div.container-scroll-tool .container-border-shadow{position:absolute;top:0;opacity:0;width:0;border:none;pointer-events:none;transition:opacity 50ms ease-in;z-index:1}div.scroll-container-root>div.container-scroll-tool .container-right-border-shadow{right:0;background:linear-gradient(90deg,rgba(31,35,41,0) 0,rgba(31,35,41,.1));border-right:0px solid #dee0e3}div.scroll-container-root>div.container-scroll-tool .container-left-border-shadow{left:0;background:linear-gradient(270deg,rgba(31,35,41,0) 0,rgba(31,35,41,.1));border-left:0px solid #dee0e3}div.scroll-container-root>div.container-scroll-tool .container-border-shadow.active{width:8px;opacity:1}div.scroll-container-root>div.container-scroll-tool .container-right-border-shadow.active{border-right-width:1px}div.scroll-container-root>div.container-scroll-tool .container-left-border-shadow.active{border-left-width:1px}div.scroll-container-root>div.container-scroll-tool .container-scrollbar{position:absolute;left:0;z-index:1000;visibility:visible;overflow-x:auto;overflow-y:hidden;cursor:auto}div.scroll-container-root>div.container-scroll-tool .container-scrollbar div{height:1px}div.scroll-container-root>div.container-scroll-tool div.container-scrollbar.fixed{position:fixed}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar{opacity:.6;transition:opacity .1s ease-in-out}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar{height:8px}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-track{background-color:transparent}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-thumb{background-color:#646a73cc;border-radius:8px}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-button{display:none}[data-tippy-root]{font-family:Avenir,Helvetica,Arial,sans-serif}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text]{width:unset}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text].selected:hover{background-color:transparent}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text] .link-href-button{max-width:275px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#303030;text-decoration:none}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text] .link-href-button:hover{text-decoration:underline}[data-command-bar-id=quick-menu],[data-command-bar-id=empty-block-menu]{box-sizing:border-box;width:240px}[data-command-bar-id=quick-menu] .command-item.menu-item,[data-command-bar-id=empty-block-menu] .command-item.menu-item{width:100%;cursor:pointer}[data-command-bar-id=quick-menu] .command-item.menu-item.section,[data-command-bar-id=empty-block-menu] .command-item.menu-item.section{height:24px;padding:0 10px;font-weight:500;font-size:12px;line-height:24px;color:#87888a;background:#F7F8FA;min-height:initial;box-sizing:border-box;margin:5px 0}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item{color:#303030;display:flex;width:100%;padding:6px 10px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container{display:flex;align-items:center;justify-content:center;padding-right:6px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container .quick-menu-item-icon,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container .quick-menu-item-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content{flex-grow:1;display:flex;flex-direction:column;justify-content:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1{display:flex;align-items:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-name,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-name{flex-grow:1;font-size:14px;line-height:22px;color:#303030}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-subtext,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-subtext{color:#87888a}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .quick-menu-item-submenu-icon,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .quick-menu-item-submenu-icon{display:flex;align-items:center;margin-left:12px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2{margin-top:5px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2 .item-markdown,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2 .item-markdown{color:#b2bccd}[data-command-bar-id=quick-menu] .command-item.menu-item[data-id=placeholder] .quick-menu-item-icon-container,[data-command-bar-id=empty-block-menu] .command-item.menu-item[data-id=placeholder] .quick-menu-item-icon-container{display:none}[data-command-bar-id=quick-menu] .command-item.menu-item[data-id=placeholder] .item-name.text,[data-command-bar-id=empty-block-menu] .command-item.menu-item[data-id=placeholder] .item-name.text{color:#909090!important;padding:5px 0}[data-command-bar-id=block-menu]{width:240px}[data-command-bar-id=quick-menu] div.command-item>div.menu-item-name{color:#2d2d2e}[data-command-bar-id=quick-menu] div.command-item>div.menu-item-icon{color:#2d2d2e}[data-command-bar-id=quick-menu] div.command-item.section:first-of-type{margin-top:0}div.tippy-box[data-theme=editor-tooltip]{background-color:#303030;opacity:.8;font-size:12px;border-radius:3px}div.tippy-box[data-theme=editor-tooltip] .editor-tooltip-desc{display:block;margin-top:2px;color:#fff;opacity:.5}div.tippy-box[data-theme=editor-tooltip]>.tippy-arrow:before{transform:scale(.8)}div.tippy-box[data-theme=editor-tooltip]>.tippy-content{padding:4px 10px}:root div.tippy-box[data-theme=editor-tooltip]>.tippy-content{font-weight:500}:root div.tippy-box[data-theme=editor-tooltip]>.tippy-content>div>span:nth-of-type(2){font-weight:400}.link-popup-content{padding:10px 7px}.link-popup-content .link-popup-gap{margin-top:16px}.link-popup-content .editor-input-container{padding:4px 0}.link-popup-content .editor-input-container .editor-input{width:330px;line-height:1.5}.link-popup-content .editor-input-wrap .editor-input-label{margin-bottom:4px}.link-popup-content .link-popup-footer{margin:10px 0 5px;text-align:right}.link-popup-content .link-popup-footer button{min-height:30px;border-radius:3px;font-size:14px;padding:4px 15px}:root{--mindmap-bg-color: #f0f2f4}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.focused [data-type=block-tools] .editor-mindmap-svg{border-radius:3px;outline:1px solid #0064ff}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.editor-in-mindmap-first{height:600px;min-width:150px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-content]{margin-right:24px;transition:background-color .25s linear}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .editor-mindmap-svg{position:absolute;left:0;top:0;right:0;bottom:0;z-index:2;font-size:14px;background-color:var(--mindmap-bg-color)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar{position:absolute;top:8px;right:8px;height:24px;z-index:3}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar .editor-button.mindmap-button{background-color:transparent;outline:none;border:none;fill:none;color:#c1c1c1;cursor:pointer;min-width:initial;margin-right:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar .editor-button.mindmap-button:hover{color:#5587f0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.to-mindmap-highlight [data-type=block-content],.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.to-mindmap-highlight:hover [data-type=block-content]{background-color:#eaf3fc}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap{position:absolute;right:0;top:2px;display:flex;align-items:center;height:calc(var(--font-size) * var(--line-height))}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap{display:flex;flex-direction:row;justify-content:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap>button.editor-button[data-button-id=mention-button]:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap>button.editor-button[data-button-id=list-to-mindmap]:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap>button.editor-button[data-button-id=mention-button]:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap>button.editor-button[data-button-id=list-to-mindmap]:hover{background:rgba(0,36,90,.0392156863);border-radius:3px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap>button.editor-button[data-button-id=mention-button]:active:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap>button.editor-button[data-button-id=list-to-mindmap]:active:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap>button.editor-button[data-button-id=mention-button]:active:hover,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap>button.editor-button[data-button-id=list-to-mindmap]:active:hover{background:rgba(0,36,90,.0588235294)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-to-mindmap],.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=mention-button]{flex-grow:0;flex-shrink:0;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border:0;outline:0;display:flex;align-items:center;justify-content:center;background-color:transparent;color:#07142a}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-to-mindmap] svg,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=mention-button] svg{width:16px;height:16px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-block-mention]:hover>svg{cursor:initial;background-color:#eee}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button+button[data-button-id=list-block-mention]{right:20px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="1"]{padding-left:24px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="1"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="2"]{padding-left:48px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="2"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="3"]{padding-left:72px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="3"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="4"]{padding-left:96px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="4"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="5"]{padding-left:120px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="5"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="6"]{padding-left:144px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="6"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="7"]{padding-left:168px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="7"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="8"]{padding-left:192px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="8"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="9"]{padding-left:216px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="9"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="10"]{padding-left:240px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="10"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="11"]{padding-left:264px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="11"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="12"]{padding-left:288px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="12"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=list][data-list-level="1"]{padding-left:0}div.editor-root div.editor-content div[data-block-type=list][data-list-level="2"]{padding-left:24px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="3"]{padding-left:48px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="4"]{padding-left:72px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="5"]{padding-left:96px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="6"]{padding-left:120px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="7"]{padding-left:144px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="8"]{padding-left:168px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="9"]{padding-left:192px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="10"]{padding-left:216px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="11"]{padding-left:240px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="12"]{padding-left:264px}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="1"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="2"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="3"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="4"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="5"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="6"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="7"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="8"]>div.list-container>button.list-marker{font-weight:700}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block+div[data-type=editor-block].list-block{margin-top:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block{display:flex;padding-bottom:2px;padding-top:2px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=text-only] .list-container{pointer-events:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] div[data-type=block-content] span.text{color:#c7c7c7}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unordered] .list-container .list-marker{font-family:PingFangSC-Regular,PingFang SC;justify-content:space-around}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper{font-feature-settings:"tnum";align-items:baseline;box-sizing:border-box;color:var(--gray-120);display:inline-flex;font-size:14px;font-variant:tabular-nums;line-height:1.5715;line-height:unset;list-style:none;margin:0;padding:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper>span.editor-check-box>span.editor-check-box-inner,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper>span.editor-check-box>span.editor-check-box-inner{border:1px solid #c7c7c7;border-collapse:initial;border-radius:3px;direction:ltr;display:block;height:14px;left:0;position:relative;top:0;transition:all .3s;width:14px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box{position:relative}@keyframes editorCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box:after,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box:after{animation:editorCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;border:1px solid #0064ff;border-radius:3px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;box-sizing:border-box}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box>span.editor-check-box-inner,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box>span.editor-check-box-inner{border-color:#0064ff;background-color:#0064ff}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box>span.editor-check-box-inner:after,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper.editor-check-list-wrapper-checked>span.editor-check-box>span.editor-check-box-inner:after{width:5px;height:10px;left:2px;top:5px;border:2px solid #fff;border-left:0;border-top:0;content:" ";display:table;opacity:1;position:absolute;box-sizing:border-box;transform:rotate(45deg) scale(1) translate(-50%,-50%)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-content]{position:relative;flex-grow:1;padding-left:2px;margin-right:29px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-container{display:flex;min-width:24px;align-items:center;justify-content:center;flex-shrink:0;border-radius:3px;height:calc(var(--font-size) * var(--line-height))}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-container .list-marker{min-width:16px;border:none;background-color:transparent;outline:none;display:flex;align-items:center;justify-content:flex-end;padding:0;overflow:visible;color:#0064ff;font-size:var(--font-size)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block div[data-type=block-tools] .block-helper{top:2px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=center]{justify-content:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=center]>div[data-type=block-content]{flex-grow:initial}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=right]{justify-content:flex-end}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=right]>div[data-type=block-content]{flex-grow:initial}.editor-root.readonly button[data-button-id=mindmap-close]{display:none}.editor-root:not(.readonly) div[data-type=editor-block].list-block.active .list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover .list-container{cursor:pointer}.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=ordered]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=ordered]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=unordered]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=unordered]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=unchecked]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=unchecked]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=checked]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.active[data-list-type=checked]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=ordered]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=ordered]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=unordered]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=unordered]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=unchecked]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=unchecked]>div[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=checked]>div.list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover[data-list-type=checked]>div[data-type=block-content]{background-color:#f8f8f8}.editor-root:not(.readonly) div[data-type=editor-block].list-block .list-container:hover .list-marker{cursor:pointer}.editor-root:not(.readonly) div[data-type=editor-block].list-block:not([data-list-type=unchecked]):not([data-list-type=checked]):not([data-list-type=unordered]) .list-container:hover{background:rgba(0,36,90,.04)}.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=unordered] .list-container:hover .list-marker{cursor:initial}.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper:not(.editor-check-list-wrapper-checked)>span.editor-check-box:hover>span.editor-check-box-inner{border-color:#0064ff}.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=checked] .list-container .editor-check-list-wrapper,.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container .editor-check-list-wrapper{cursor:pointer}[data-tippy-root] .customize-start-panel{max-width:350px;padding:0 16px;color:#333;font-size:14px;line-height:21px;user-select:none;background-color:#fff!important}[data-tippy-root] .customize-start-panel-input{width:64px;margin:0 8px;border:1px solid #cfd6e1;height:24px;border-radius:3px;padding:1px 0 1px 8px;outline:none;color:inherit;background-color:#fff}[data-tippy-root] .customize-start-panel-button{min-width:40px;font-size:12px;min-height:30px;margin:0 8px 0 0;background-color:var(--primary-color);color:#fff;outline:none;border:none;padding:4px 8px;border-radius:4px;cursor:pointer}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block].list-block [data-type=block-content][data-content-placeholder]:before{left:2px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.math-box{display:inline-flex;vertical-align:middle;padding:2px 0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.math-box .mathjax-tex-text.mathjax-error{color:var(--color-0)}div.editor-root div.editor-content div[data-type=editor-container] .embed-block.selected[data-embed-type=math]>div[data-type=block-content].mathjax-overflow:before{width:var(--mathjax-width, "100%")}div.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-embed-type=math]>div[data-type=block-content]{align-items:center;justify-content:center;min-height:40px}div.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-embed-type=math]>div[data-type=block-content] img{margin:auto;padding:8px}.mathjax-editor-textarea{border:none;outline:none;width:400px;height:128px}div.editor-root div.editor-content div[data-type=editor-block],.status-box-editor-popup{--orange: #F59300;--orange-bkg: #FFF0D9;--grey: #87888A;--grey-bkg: #EDEFF2;--red: #EB3723;--red-bkg: #FFEAE8;--primary: #0064FF;--primary-bkg: #E3EEFF;--green: #00A865;--green-bkg: #D7F7EA;--purple: #8851ED;--purple-bkg: #F0E8FF}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box span[data-type=box-content]{margin-left:0;margin-right:0;padding-left:2.5px;padding-right:2.5px}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-yellow{background-color:var(--orange-bkg);color:var(--orange)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-yellow-subtle{color:#fff;background-color:var(--orange)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-grey{background-color:var(--grey-bkg);color:var(--grey)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-grey-subtle{color:#fff;background-color:var(--grey)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-red{background-color:var(--red-bkg);color:var(--red)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-red-subtle{color:#fff;background-color:var(--red)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-blue{background-color:var(--primary-bkg);color:var(--primary)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-blue-subtle{color:#fff;background-color:var(--primary)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-green{background-color:var(--green-bkg);color:var(--green)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-green-subtle{color:#fff;background-color:var(--green)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-purple{background-color:var(--purple-bkg);color:var(--purple)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-purple-subtle{color:#fff;background-color:var(--purple)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box>[data-type=box-content]{max-width:100%;display:inline-flex;align-items:center;vertical-align:top;position:relative;top:calc((var(--font-size) * var(--line-height) - 20px) / 2)}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-common{max-width:100%;line-height:20px;padding:0 5px;border-radius:3px;font-size:12px;height:20px;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:inline-block;font-weight:500}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-common.box-status-empty{color:#87888a}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-common:hover{outline:1px solid #408CFF}div.editor-root div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.history-deleted-box .box-status-common{text-decoration:line-through}.status-box-editor-popup{width:178px;padding-top:1px}.status-box-editor-popup .status-input input{caret-color:#0064ff}.status-box-editor-popup .scale-border:after,.status-box-editor-popup .status-color-palette .status-box-button.selected:after,.status-box-editor-popup .status-color-palette .status-box-button:hover:after{content:"";outline:1px solid #0064ff;border-radius:3px;position:absolute;left:0;right:0;top:0;bottom:0;transform:scale(1.1)}.status-box-editor-popup .status-color-palette{display:flex;padding:6px 4px 5px}.status-box-editor-popup .status-color-palette .status-box-button+.status-box-button{margin-left:5px}.status-box-editor-popup .status-color-palette .status-box-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;position:relative}.status-box-editor-popup .status-color-palette .status-box-button.selected:after{outline:1px solid var(--primary-color)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=grey]{background-color:var(--grey-bkg);border:1px solid var(--grey)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=blue]{background-color:var(--primary-bkg);border:1px solid var(--primary)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=yellow]{background-color:var(--orange-bkg);border:1px solid var(--orange)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=red]{background-color:var(--red-bkg);border:1px solid var(--red)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=green]{background-color:var(--green-bkg);border:1px solid var(--green)}.status-box-editor-popup .status-color-palette .status-box-button[data-color=purple]{background-color:var(--purple-bkg);border:1px solid var(--purple)}[data-command-bar-id=status-box-popup] .tippy-content{padding-left:6px;padding-right:6px}div.editor-root.readonly div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-common{cursor:default}div.editor-root.readonly div.editor-content div[data-type=editor-block] div[data-type=block-content]>span.status-box .box-status-common:hover{outline:none}.editor-text-button{border:0;color:var(--text-button-color, #c1c1c1);background-color:var(--text-button-bg-color, transparent);cursor:pointer;border-radius:var(--editor-border-radius, 3px);font-size:14px;padding:1px 6px;display:flex;align-items:center}.editor-text-button:hover{color:var(--text-button-color-hover, #5587F0);background-color:var(--text-button-bg-color-hover, transparent)}div[data-type=editor-block].table-block{--table-bar-width: 6px;--table-bar-left: -6px;--table-bar-top: -6px}div[data-type=editor-block].table-block>div[data-type=block-content]{position:relative;left:-26px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-resize-gripper,div[data-type=editor-block].table-block div[data-type=table-tools] .table-resize-gripper{position:absolute;background-color:transparent;cursor:col-resize;padding:0 2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-resize-gripper>.table-resize-gripper-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-resize-gripper>.table-resize-gripper-indicator{pointer-events:none;background-color:var(--primary-color);width:100%;height:100%}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container{position:absolute;background-color:transparent;z-index:10}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container.top{left:0;top:var(--table-bar-top);right:0;height:var(--table-bar-width);flex-direction:row}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container.left{top:20px;left:var(--table-bar-left);width:var(--table-bar-width);bottom:0;flex-direction:column}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar{position:absolute;left:0;top:0;right:0;bottom:0;cursor:pointer;display:flex}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar.left{flex-direction:column}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell{background-color:#dfe1e5;position:relative;flex-grow:0;flex-shrink:0}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.corner,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.corner{width:var(--table-bar-width);height:var(--table-bar-width)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.top{height:100%}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell:hover,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell:hover{background-color:#d4d6d9}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.selected,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.selected{background-color:#0064ff}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.danger,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.danger{background-color:#e52727}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root{position:relative}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.top{max-width:0;width:0;overflow:visible}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.top:last-child,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.top:last-child{margin-left:-2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.left{max-height:0;height:0;overflow:visible}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.left:last-child,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.left:last-child{margin-top:-2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container{position:absolute;width:26px;height:26px;display:flex;align-items:center;justify-content:center;z-index:1}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container.top{right:-14px;top:-22px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container.left{transform:rotate(270deg);left:-22px;bottom:-14px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .insert-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .insert-indicator{position:absolute;width:3px;height:3px;background:#e8e8e8;border-radius:50%;margin-top:6px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-indicator{display:none}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button{display:unset}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button span.icon,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button span.icon{margin-top:2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .drop-marker,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .drop-marker{opacity:1;transform:scale(.7)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker{width:26px;height:26px;border-radius:3px;background:#0064ff;cursor:pointer;opacity:0;transform:scale(.4);transition:transform .2s ease-in,opacity .2s ease-in}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:after,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:after{content:"";display:block;width:10px;height:2px;background-color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:before,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:before{content:"";display:block;width:2px;height:10px;background-color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}div[data-type=editor-block].table-block div[data-type=block-tools] .editor-table-chart,div[data-type=editor-block].table-block div[data-type=table-tools] .editor-table-chart{padding-top:16px}div[data-type=editor-block].table-block div[data-type=table-content]{position:relative}div[data-type=editor-block].table-block div[data-type=table-content]>.error{color:red;border:1px solid red;padding:8px}div[data-type=editor-block].table-block div[data-type=table-content]>table{border-collapse:collapse;border-spacing:0}div[data-type=editor-block].table-block div[data-type=table-content]>table colgroup col{min-width:40px}div[data-type=editor-block].table-block div[data-type=table-content]>table,div[data-type=editor-block].table-block div[data-type=table-content]>table td,div[data-type=editor-block].table-block div[data-type=table-content]>table th{border:1px solid #dfe1e5;background-color:transparent;background-clip:padding-box}div[data-type=editor-block].table-block div[data-type=table-content]>table tr td.danger{background-color:#fff6f5!important}div[data-type=editor-block].table-block div[data-type=table-content]>table td{min-width:40px;padding:0;position:relative}div[data-type=editor-block].table-block div[data-type=table-content]>table td .table-cell-menu-btn{display:none;position:absolute;right:2px;top:2px;padding:0;width:16px;height:16px;border:none;border-radius:3px;cursor:pointer;transform:rotate(0);transition:transform .2s;background-color:transparent;color:#575859}div[data-type=editor-block].table-block div[data-type=table-content]>table td .table-cell-menu-btn:hover{background-color:#e8e8e8}div[data-type=editor-block].table-block div[data-type=table-content]>table td .table-cell-menu-btn.active{transform:rotate(180deg);background:#f7f8fa}div[data-type=editor-block].table-block div[data-type=table-content]>table td>div[data-type=editor-container].child>div.container-blocks>*+*{margin-top:5px}div[data-type=editor-block].table-block div[data-type=table-content] .child{padding:8px}div[data-type=editor-block].table-block div[data-type=table-content] .child div[data-type=editor-block].table-block>div[data-type=block-content]{pointer-events:none}div[data-type=editor-block].table-block div[data-type=table-content] .child div[data-type=editor-block].table-block>div[data-type=block-content] .scroll-container{overflow:hidden}div[data-type=editor-block].table-block div[data-type=table-content] .child div[data-type=editor-block].table-block>div[data-type=block-content] div[data-type=table-content]{pointer-events:auto}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-0{background-color:var(--background-color-0)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-1{background-color:var(--background-color-1)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-2{background-color:var(--background-color-2)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-3{background-color:var(--background-color-3)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-4{background-color:var(--background-color-4)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-5{background-color:var(--background-color-5)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-6{background-color:var(--background-color-6)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-7{background-color:var(--background-color-7)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-8{background-color:var(--background-color-8)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-9{background-color:var(--background-color-9)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-10{background-color:var(--background-color-10)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-11{background-color:var(--background-color-11)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-12{background-color:var(--background-color-12)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-13{background-color:var(--background-color-13)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-14{background-color:var(--background-color-14)}div[data-type=editor-block].table-block div[data-type=table-content]>table.row-title>tbody>tr:first-child>td,div[data-type=editor-block].table-block div[data-type=table-content]>table.col-title td.col-title-item{background-color:#f7f8fa}div[data-type=editor-block].table-block div[data-type=table-content]>table.stripe:not(.row-title)>tbody>tr:nth-of-type(2n),div[data-type=editor-block].table-block div[data-type=table-content]>table.stripe.row-title>tbody>tr:nth-of-type(2n + 1){background-color:#f7f8fa}div[data-type=editor-block].table-block div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block div[data-type=table-content]>.no-border>tbody>tr>td{border:1px dashed;border-color:transparent}div[data-type=editor-block].table-block.focused div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block.focused div[data-type=table-content]>table.no-border>tbody>tr>td,div[data-type=editor-block].table-block.child-focused div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block.child-focused div[data-type=table-content]>table.no-border>tbody>tr>td{border-color:#b9bfc8}div[data-type=editor-block].table-block.full-selected>div[data-type=block-content]>.scroll-container-root>.scroll-container>.scroll-area>div[data-type=table-content]>table{background-color:var(--background-selection)}div[data-type=editor-block].table-block.full-selected>div[data-type=block-content]>.scroll-container-root>.scroll-container>.scroll-area>div[data-type=table-content]>table td,div[data-type=editor-block].table-block.full-selected>div[data-type=block-content]>.scroll-container-root>.scroll-container>.scroll-area>div[data-type=table-content]>table th,div[data-type=editor-block].table-block.full-selected>div[data-type=block-content]>.scroll-container-root>.scroll-container>.scroll-area>div[data-type=table-content]>table tr{background-color:transparent}div[data-type=editor-block].table-block div[data-type=table-content]>table tbody tr td.selected,div[data-type=editor-block].table-block div[data-type=table-content]>table.row-title tbody tr td.selected,div[data-type=editor-block].table-block div[data-type=table-content]>table.col-title tbody tr td.selected{background-color:var(--background-selection)}div[data-type=editor-block].table-block div[data-type=table-content]>table td div[data-type=editor-block].table-block div[data-type=table-content]>table{max-width:100%}.command-item.menu-item .table-creator{cursor:pointer;background-color:#fff;padding:0 5px}.command-item.menu-item .table-creator .table-creator-row{display:flex}.command-item.menu-item .table-creator .table-creator-row .table-creator-cell{width:16px;height:16px;margin:3px;border:solid 1px #ddd}.command-item.menu-item .table-creator .table-creator-row .table-creator-cell.active{background-color:#408cff}div.editor-root div.editor-content div[data-type=editor-container].root div[data-type=editor-block].table-block{margin-top:0}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color]{width:100%}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .bar-desc{display:none}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item{box-sizing:border-box;width:100%;height:32px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between;color:var(--text-color)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-sub-indicator{display:flex;align-items:center;margin-left:5px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-sub-indicator svg{height:16px;width:16px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;position:relative;margin-left:20px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]{position:relative;background-color:#fff;border:1px solid #e8e8e8}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]:after{transform:scale(1.2)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]:before{content:"";position:absolute;width:1px;height:56px;top:2px;left:22px;background-color:#c7c7c7;transform:rotate(45deg) scale(.5);transform-origin:-1px -2px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="0"]{background-color:var(--background-color-0)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="1"]{background-color:var(--background-color-1)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="2"]{background-color:var(--background-color-2)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="3"]{background-color:var(--background-color-3)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="4"]{background-color:var(--background-color-4)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="5"]{background-color:var(--background-color-5)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="6"]{background-color:var(--background-color-6)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="7"]{background-color:var(--background-color-7)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="8"]{background-color:var(--background-color-8)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="9"]{background-color:var(--background-color-9)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="10"]{background-color:var(--background-color-10)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="11"]{background-color:var(--background-color-11)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="12"]{background-color:var(--background-color-12)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="13"]{background-color:var(--background-color-13)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="14"]{background-color:var(--background-color-14)}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table]{background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.row-title>tbody>tr:first-child>td,div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.col-title td.col-title-item{background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.stripe:not(.row-title)>tbody>tr:nth-of-type(2n),div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.stripe.row-title>tbody>tr:nth-of-type(2n + 1){background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment{box-shadow:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment table{box-shadow:0 2px #f8e6ab}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment table table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment table table{box-shadow:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active{outline:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active table{border-bottom:none;outline:4px solid #f8e6ab}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active table table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active table table{box-shadow:none;outline:none}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content]:after,div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content]:after{display:none}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content] div[data-type=table-content],div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content] div[data-type=table-content]{position:relative}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content] div[data-type=table-content]:after,div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content] div[data-type=table-content]:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#2d2d2e;opacity:.3}.editor-root .editor-content div[data-type=editor-block].table-block div[data-type=block-tools] .block-helper{right:calc(100% + 5px);top:35px}[data-command-bar-id=table-row-column-toolbar] .editor-command-bar.toolbar{padding:4px}div.comment-editor-root div[data-type=editor-block].table-block>div[data-type=block-content]{left:0px}div[data-command-bar-id=table-row-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-rows].selected,div[data-command-bar-id=table-row-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-columns].selected{background-color:#fff6f5}div[data-command-bar-id=table-row-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-rows].selected svg,div[data-command-bar-id=table-row-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-columns].selected svg{color:#eb3723}div[data-command-bar-id=table-cell-menu] .tippy-box .tippy-content .editor-command-bar.menu .command-item.selected[data-id=delete-select-row],div[data-command-bar-id=table-cell-menu] .tippy-box .tippy-content .editor-command-bar.menu .command-item.selected[data-id=delete-select-col]{color:#eb3723;background-color:#fff6f5}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block{counter-reset:code-line}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.full-selected{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.editing-language div[data-type=block-tools] .code-block-header,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.child-focused div[data-type=block-tools] .code-block-header,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:hover div[data-type=block-tools] .code-block-header{opacity:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.wrap>div[data-type=block-tools] .code-block-header button[data-id=wrap] *{color:var(--primary-color)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child{overflow-x:auto}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]{word-break:keep-all;overflow:visible;white-space:pre}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]>span.text,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]>span.inputting-insertion{white-space:pre}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header{opacity:0;transition:opacity .3s ease-in 0s;position:absolute;top:0;display:flex;padding-left:16px;padding-right:4px;align-items:center;left:0;right:0;height:32px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .language-select{font-size:14px;color:#999;cursor:pointer;display:flex;align-items:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .language-select .arrow-icon{width:16px;height:16px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-spacer{flex-grow:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button{display:flex;justify-content:center;align-items:center;border:none;border-radius:2px;margin-left:4px;padding:0;background:none;outline:none;color:#c1c1c1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button:not(.disabled){cursor:pointer}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button:not(.disabled):hover{color:#5587f0}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button.disabled{cursor:not-allowed}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button[data-id=caption]{margin-right:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-icon{height:24px;display:flex;align-items:center;justify-content:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-icon>svg{width:24px;height:24px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-label{margin-left:4px;font-size:14px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button[data-id=caption]{display:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.full-selected>div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:unset}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:var(--background-code)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container]{padding:32px 10px 24px 32px;border-radius:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container].selected{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] *{font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:14px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block+div.text-block{margin-top:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block:before,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block:before{content:counter(code-line);counter-increment:code-line;position:absolute;left:-48px;top:10px;z-index:1;margin-top:-4px;display:block;width:48px;padding-right:8px;text-align:right;color:#aaa;box-sizing:border-box;font-size:12px;font-weight:400;line-height:12px;letter-spacing:0;white-space:nowrap;opacity:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-comment,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-prolog,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-doctype,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-cdata,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-comment,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-prolog,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-doctype,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-cdata{color:#708090}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-punctuation,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-punctuation{color:#999}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-namespace,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-namespace{opacity:.7}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-property,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-tag,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-boolean,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-number,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-constant,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-symbol,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-deleted,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-property,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-tag,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-boolean,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-number,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-constant,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-symbol,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-deleted{color:#905}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-selector,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-attr-name,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-string,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-char,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-builtin,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-inserted,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-selector,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-attr-name,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-string,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-char,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-builtin,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-inserted{color:#690}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-operator,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-entity,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-url,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-string,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-operator,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-entity,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-url,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-string{color:#9a6e3a}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-atrule,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-attr-value,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-keyword,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-atrule,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-attr-value,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-keyword{color:#07a}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-function,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-class-name,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-function,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-class-name{color:#dd4a68}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-regex,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-variable,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-regex,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-variable{color:#e90}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-bold,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-bold{font-weight:700}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-italic,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-italic{font-style:italic}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-entity,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.code-line-block>div[data-type=block-content] span.style-code-entity{cursor:help}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-caption-root{padding:8px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-caption-root *{color:#aaa}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .code-header-button[data-id=wrap],div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .code-header-button[data-id=caption]{display:none}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .language-select{cursor:default!important}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .language-select .arrow-icon{display:none}div.editor-root div.editor-content div[data-type=editor-container].root.select-all div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:unset}div.comment-editor-root [data-type=editor-container].root div[data-type=editor-block].code-block{min-width:0}.editor-root:not(.mobile) [data-type=editor-container].root div[data-type=editor-block].code-block{min-width:360px}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=center] [data-type=block-content][data-content-placeholder]:before{justify-content:center}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=right] [data-type=block-content][data-content-placeholder]:before{justify-content:right}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-title-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-title-placeholder);color:#bebfc2}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-content-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-content-placeholder);color:#bebfc2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-tools] .block-placeholder-container{pointer-events:none;position:absolute;left:0;top:0;right:0}div.editor-root.readonly div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-title-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-title-placeholder-readonly);color:#c7c7c7}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer{position:absolute;background-color:transparent;border:1px solid #0064ff;pointer-events:none;z-index:1;display:none}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer.active{display:block}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper{position:absolute;width:16px;height:16px;border:2px solid white;background-color:#0064ff;border-radius:50%;pointer-events:all}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom{left:calc(50% - 8px);bottom:-8px;cursor:ns-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.top-left{left:-8px;top:-8px;cursor:nwse-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.top-right{right:-8px;top:-8px;cursor:nesw-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom-left{left:-8px;bottom:-8px;cursor:nesw-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom-right{right:-8px;bottom:-8px;cursor:nwse-resize}div.editor-root.readonly div.editor-content div[data-type=editor-block]>[data-type=block-tools] .block-resizer{display:none}.before-content,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content] .images .image-container.active:before,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected:not(.focused) [data-type=block-content] .images .image-container:before{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#0064ff;opacity:.1}.editor-root.readonly div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter,.editor-root div.editor-content.dragging .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter{visibility:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image]{display:flex}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].block-hidden{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=left]{justify-content:flex-start}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=center]{justify-content:center}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=right]{justify-content:flex-end}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content]{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content] .images .image-container.empty:hover,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content] .images .image-container.error:hover{outline:1px solid #0064ff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content]:before{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content]{outline:none;cursor:zoom-in}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content] .images .image-container.active .image-warning{opacity:0;z-index:-1}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].multi [data-type=block-tools] .block-resizer{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image]:not(.multi) [data-type=block-content] .images.empty{min-height:400px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content]{cursor:default}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images{width:100%;display:flex;align-items:flex-start}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter{width:10px;flex-grow:0;flex-shrink:0;padding:0 4px;cursor:col-resize;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter .image-splitter-indicator{width:100%;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter:active .image-splitter-indicator,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter:hover .image-splitter-indicator{background-color:#d9d9d9}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container{position:relative;flex:1;background-color:#f8f8f8;display:flex;min-height:inherit;overflow:hidden;border-radius:3px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container:first-child:last-child{height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container img{max-width:100%;width:100%;height:auto}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty .upload-image-icon{display:flex;color:#c7c7c7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.error{height:100%;outline:1px solid #dedede;border-radius:3px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.error img{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;z-index:1}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-icon,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-icon{display:flex;color:#c7c7c7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message{display:flex;flex-direction:column;align-items:center;overflow:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-1,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-1{margin-top:10px;font-size:18px;font-weight:500;color:#303030;height:26px;vertical-align:middle;line-height:26px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-2,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-3,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-2,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-3{font-size:14px;color:#606060;vertical-align:middle;height:22px;line-height:22px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-2 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-3 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-2 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-3 a{text-decoration:none;color:#0064ff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .line-3 a{display:inline-flex;align-items:center;text-decoration:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .line-3 a:after{content:" ";display:inline-block;width:16px;height:16px;margin-left:5px;background-image:url("data:image/svg+xml,%3Csvg width='17' height='16' viewBox='0 0 17 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 2H3.5C2.94772 2 2.5 2.44772 2.5 3V13C2.5 13.5523 2.94772 14 3.5 14H13.5C14.0523 14 14.5 13.5523 14.5 13V10' stroke='%23338FE5'/%3E%3Cpath d='M14.5 2L9 7.5' stroke='%23338FE5'/%3E%3Cpath d='M8.5 2H14.5V8' stroke='%23338FE5'/%3E%3C/svg%3E%0A")}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#303030;opacity:.8;display:flex;align-items:center;justify-content:center}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask .uploading-progress-bar{width:75%;height:6px;border-radius:3px;display:flex;background-color:#fff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value{background-color:#0064ff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .image-warning{position:absolute;right:5px;top:5px;color:#fff;background-color:#333;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:3px;z-index:2;transition:opacity linear .2s;opacity:.7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty{display:flex;flex-direction:column;align-items:center;outline:1px solid #dedede;border-radius:3px;justify-content:center;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty svg{width:48px;height:48px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-tools] .drag-container{display:flex;box-sizing:content-box;pointer-events:none;position:fixed;z-index:100;background-color:#fff;border:1px solid #0064ff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-tools] .drag-container .drag-target{width:100%}.editor-root[readonly=true] .image-splitter{visibility:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment{box-shadow:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment [data-type=block-content]{box-shadow:0 2px #f8e6ab}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment.active{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment.active [data-type=block-content]{box-shadow:none;outline:4px solid #f8e6ab}.image-tooltip-align-style-section .style-icon{border:none;background:#fff;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding-left:0;padding-right:0;border-radius:3px}.image-tooltip-align-style-section .style-icon:hover{background:rgba(0,0,0,.05)}.image-tooltip-align-style-section .style-icon.active{color:#00f}.editor-root .editor-content div[data-type=editor-block].dragging div[data-type=block-tools] .block-helper{display:none;user-select:none}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper{position:absolute;right:100%;top:0;padding-right:5px;display:flex;align-items:center}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .helper-sizer{width:0;opacity:0;pointer-events:none}div[data-type=editor-block].block-exclusive:after{content:attr(data-exclusive-tips);position:absolute;top:0px;left:0px;width:100%;background:#F7F8FA;border-radius:var(--editor-border-radius);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:14px;line-height:22px;color:#87888a;text-align:center;padding:9px 0;z-index:1000}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self>[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others>[data-type=block-content]{position:relative}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others>[data-type=block-content]:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;z-index:1;background-color:#2d2d2e;opacity:.3}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.locked-by-self>[data-type=block-content]:after{pointer-events:none}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.text-block>[data-type=block-content]:after{outline:2px solid #303030}.editor-root{--selected-color: #e8e8e8}.editor-root .editor-content.dragging *{cursor:grabbing!important}.editor-root .editor-content.dragging div[data-type=editor-block] iframe{pointer-events:none}.editor-root .editor-content.dragging .block-button{opacity:0}.editor-root .editor-content .editor-drop-indicator{position:absolute;background-color:var(--primary-color);pointer-events:none;transition:top .1s linear,left .1s linear;z-index:1}.editor-root .editor-content div[data-type=editor-block].text-block.highlighted{outline:2px solid var(--background-selection);background-color:var(--background-selection)}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button{width:24px;height:24px;cursor:pointer;margin:0;padding:0;display:flex;align-items:center;justify-content:center;background-color:#fff;border:none;border-radius:3px}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button[data-type=move]{cursor:grab}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button:hover{background-color:#00245a0a}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button svg{width:16px;height:16px;color:#909090}.drag-image-container{position:fixed;z-index:100;box-shadow:0 3px 20px #00000026;background-color:#fff;opacity:.4}.drag-image-container.drag-placeholder{width:500px;height:200px;border:1px solid #dedede;border-radius:3px;background:#e8e8e8}.drag-image-container .drag-image{width:100%;display:none}.drag-image-container[data-status=loaded] .drag-image{display:block}.drag-image-container[data-status=loaded] .drag-loading{display:none}.drag-image-container-no-shadow{box-shadow:none;background:transparent}.editor-command-bar-root .editor-command-bar .command-item.menu-item{display:flex;align-items:center;flex:none}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles{padding:5px 10px;background-color:#fff}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section+.text-style-section{margin-top:5px}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section{display:grid;grid-template-columns:repeat(7,24px);grid-row-gap:10px;grid-column-gap:5px}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon{height:24px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;outline:none;cursor:pointer;border-radius:3px;color:#606060}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon:hover{background-color:var(--selected-color)}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon.active{color:#0064ff}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-anchor[data-id=paste-special-button-anchor]{z-index:unset}[data-command-bar-id=paste-special-button] .editor-command-bar.toolbar{padding:0}[data-command-bar-id=paste-special-button] .editor-command-bar.toolbar .command-item[data-dropdown=true]{padding-left:5px;padding-right:5px}.editor-find-dialog{--popover-input-border: 1px solid #cfd6e1;--editor-find-dialog-input-container-border-color: #cfd6e1;--editor-find-dialog-input-container-bg-color: transparent;--editor-border-radius-big: 3px;--editor-color: #07142a;--button-black-text-color: #333;--editor-find-dialog-button-color: #333;--editor-find-dialog-icon-button-color: #333;--editor-find-dialog-button-border-bg-color: rgba(255, 255, 255, .56);--editor-find-dialog-input-placeholder-color: #b9bfc8;--editor-find-dialog-button-disabled-color: #ccc !important;--editor-find-dialog-button-hover-color: rgba(150, 150, 150, .2);--editor-find-dialog-button-border: solid 1px #ccc;box-sizing:border-box;width:400px;background-color:var(--editor-find-dialog-bg-color);border:var(--editor-find-dialog-border);border-radius:var(--editor-border-radius-big);display:flex;padding:8px 8px 0 16px;align-items:flex-start;font-size:14px;font-family:var(--editor-font-family)}.editor-find-dialog .editor-find-content{display:flex;flex-direction:column;flex-grow:1;font-family:inherit}.editor-find-dialog .editor-find-dialog-row{display:flex;margin-bottom:8px;align-items:center}.editor-find-dialog .editor-find-dialog-label{width:80px;color:#2d2d2e;font-weight:500;flex-grow:0;flex-shrink:0;align-self:center}.editor-find-dialog .editor-find-dialog-input-container{border:var(--popover-input-border);border-color:var(--editor-find-dialog-input-container-border-color);background-color:var(--editor-find-dialog-input-container-bg-color);border-radius:var(--editor-border-radius-big);flex-grow:1;display:flex;padding:2px;align-items:center;height:32px;box-sizing:border-box}.editor-find-dialog .editor-find-dialog-input-container:hover{border:1px solid #0064ff}.editor-find-dialog .editor-find-dialog-input-container:focus{border:1px solid #0064ff;box-shadow:0 0 0 2px #0064ff33}.editor-find-dialog .editor-find-dialog-input{border:none;flex-grow:1;width:80px;outline:none;background-color:transparent;color:var(--editor-color)}.editor-find-dialog .editor-find-dialog-input::placeholder{color:var(--editor-find-dialog-input-placeholder-color);opacity:1}.editor-find-dialog .editor-find-dialog-prev{width:24px}.editor-find-dialog .editor-find-dialog-curr{flex-grow:0;text-align:center;flex-shrink:1;display:flex;align-items:center;margin-bottom:2px}.editor-find-dialog .editor-find-dialog-next{width:24px}.editor-find-dialog .editor-find-dialog-icon-button{cursor:pointer;border-radius:4px;color:#2d2d2e;background-color:var(--editor-find-dialog-button-border-bg-color);border:none;display:flex;flex-direction:row;align-items:center;padding:0}.editor-find-dialog .editor-find-dialog-icon-button:hover{color:#0064ff}.editor-find-dialog .editor-find-dialog-icon-button:active{color:#0053cf}.editor-find-dialog .editor-find-dialog-button{padding:4px 15px;cursor:pointer;background:#ffffff;border:1px solid #bebfc2;color:#575859;margin:0 4px;font-family:inherit;line-height:20px;border-radius:3px}.editor-find-dialog .editor-find-dialog-button.icon-button{width:32px;height:32px}.editor-find-dialog .editor-find-dialog-button:enabled:hover{color:#0064ff;background:#e3eeff;border:1px solid #0064ff}.editor-find-dialog .editor-find-dialog-button:enabled:active{color:#0053cf;background:#cfe2ff;border:1px solid #0053cf}.editor-find-dialog .editor-find-dialog-button:last-of-type{margin-right:0}.editor-find-dialog .editor-find-dialog-primary-button{color:#fff;background:#0064ff;border:1px solid #0064ff;transition:ease-in .1s}.editor-find-dialog .editor-find-dialog-primary-button:enabled:hover{color:#fff;background:#408cff;border:1px solid #408cff}.editor-find-dialog .editor-find-dialog-primary-button:enabled:active{color:#fff;background:#0053cf;border:1px solid #0053cf}.editor-find-dialog .editor-find-dialog-action{margin:12px 0 20px}.editor-find-dialog .editor-find-dialog-button:disabled{color:#575859;background:#dfe1e5;opacity:.5;border:1px solid #bebfc2;cursor:not-allowed}.editor-find-dialog .editor-find-dialog-primary-button:disabled{color:#fff;background:#0064ff;opacity:.5;border:1px solid #0064ff}.editor-find-dialog .editor-find-dialog-button svg{fill:currentColor}.editor-find-dialog .editor-find-dialog-space{flex-grow:1}.editor-find-dialog .editor-find-dialog-icon-button-border{margin:0 0 0 8px;cursor:pointer;border-radius:4px;color:#575859;border:var(--editor-find-dialog-button-border);background-color:var(--editor-find-dialog-button-border-bg-color);padding:0;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.editor-find-dialog .editor-find-dialog-icon-button-border:hover{background:#e3eeff;border:1px solid #0064ff}.editor-find-dialog .editor-find-dialog-icon-button-border:active{background:#cfe2ff;border:1px solid #0053cf}.editor-find-dialog .editor-find-dialog-button-close{margin:0 0 0 8px;cursor:pointer;border-radius:4px;color:#2d2d2e;background-color:var(--editor-find-dialog-button-border-bg-color);border:none;padding:0;width:32px;height:32px;display:flex;justify-content:center;align-items:center}.editor-find-dialog .editor-find-dialog-button-close:hover{color:#0064ff}.editor-find-dialog .editor-find-dialog-button-close:active{color:#0053cf}.editor-find-dialog .editor-find-dialog-icon-button-border svg,.editor-find-dialog .editor-find-dialog-button-close svg{fill:currentColor}.editor-find-dialog .editor-highlight{pointer-events:none}.editor-find-dialog .editor-highlight .editor-highlight-child{opacity:.1;position:absolute;background-color:#eb3723}.editor-find-dialog .editor-highlight.active .editor-highlight-child{opacity:.3;position:absolute;background-color:#eb3723}.editor-find-dialog .editor-search-result-highlight{opacity:.6;pointer-events:none}.editor-find-dialog .editor-search-result-highlight .editor-highlight-child{position:absolute;background-color:#40e0d0}.editor-find-dialog .editor-find-dialog-status{display:flex}.editor-highlight{pointer-events:none}.editor-highlight .editor-highlight-child{opacity:.1;position:absolute;background-color:#eb3723}.editor-highlight.active .editor-highlight-child{opacity:.3;position:absolute;background-color:#eb3723}.editor-search-result-highlight{opacity:.6;pointer-events:none}.editor-search-result-highlight .editor-highlight-child{position:absolute;background-color:#40e0d0}.editor-find-dialog-status{display:flex}body>div.editor-context-menu[data-tippy-root].zh-CN{min-width:200px}body>div.editor-context-menu[data-tippy-root].en-US,body>div.editor-context-menu[data-tippy-root].ja-JP{min-width:200px}body>div.editor-context-menu[data-tippy-root]>div.tippy-box>div.tippy-content{padding:0}body>div.editor-context-menu[data-tippy-root] .editor-command-bar.menu>div.command-item{cursor:pointer}body>div.editor-context-menu[data-tippy-root] .editor-command-bar.menu>div.command-item.disabled{cursor:not-allowed}body>div.editor-context-menu[data-tippy-root] .editor-command-bar.menu>div.command-item.disabled>div.item-subtext{color:#c7c7c7}body>div.editor-context-menu[data-tippy-root] .editor-command-bar.menu>div.command-item>div.item-subtext{margin-left:10px}.comment-editor{font-size:14px;border:1px solid #c7c7c7;border-radius:3px;padding:1px 10px;margin:6px 10px 0}.comment-editor:after{content:"";height:0;display:block;clear:both}.comment-editor-root{max-width:100%;display:inline-block;min-width:calc(100% - 40px);padding-top:2px}.comment-editor-root div.editor-root div.editor-content{padding:0}.comment-editor-root div.editor-root div.editor-content>div[data-type=editor-container].root>div.container-blocks>*+*{margin-top:0}.comment-editor-img{float:right;color:#c1c1c1;padding:0;margin-top:2px;width:24px;height:24px;justify-content:center}.comment-editor-root:not(.comment-editor-readonly) .editor-root .editor-content [data-type=editor-block]:not([data-block-type=text]){width:224px}.comment-editor-editing{border:1px solid #0064ff}.comment-editor-readonly{border:none;padding-left:calc(var(--editor-comment-avatar-width, 22px) + 5px);margin:0}.comment-editor-readonly .comment-editor-img{display:none}.comment-item-root{position:relative}.comment-item-root:not(.last-comment-item):before{content:" ";display:block;position:absolute;left:10px;width:1px;background-color:#dfe1e5;overflow:hidden;opacity:.8;top:21px;bottom:-12px;transform:scaleX(.5)}.comment-item-root .item-head{padding:0;position:relative;display:flex;align-items:center}.comment-item-root .item-head-avatar{margin-right:5px;width:var(--editor-comment-avatar-width, 22px);height:var(--editor-comment-avatar-width, 22px);border-radius:100%}.comment-item-root .item-head-avatar-string{display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;background-color:var(--comment-avatar-color);flex-shrink:0}.comment-item-root .item-head-username{font-size:var(--editor-comment-username-font-size, 12px);color:#2d2d2e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.comment-item-root .item-head-modified{margin-left:10px;font-size:12px;color:#87888a;flex-grow:1;white-space:nowrap}.comment-item-root .item-head-tools{display:flex;align-items:center;visibility:hidden}.comment-item-root .item-head-tools .editor-text-button{color:#2d2d2e}.comment-item-root .item-head-tools .editor-text-button:hover{color:#0064ff}.comment-item-root .item-head-tools .editor-text-button svg{width:20px;height:20px}.comment-item-root .item-head-tools.active{visibility:visible}.comment-item-root .item-actions{margin-top:10px;display:flex;justify-content:flex-end;padding:0 10px}.comment-item-root .item-actions .editor-button{padding:4px 10px;line-height:1}.comment-item-root .item-actions.hidden{display:none}.comment-item-root:hover:not(.comment-item-editing) .item-head-tools{visibility:visible}.comment-item-root.readonly .item-head-tools{display:none}.mobile-comment-item{margin-top:4px;background-color:var(--editor-comment-layer-bg-color);padding-bottom:20px;color:var(--editor-comment-username-color)}.mobile-comment-item .item-head{padding:12px;display:flex;align-items:center}.mobile-comment-item .item-head-avatar{width:var(--editor-comment-avatar-size);height:var(--editor-comment-avatar-size);flex-grow:0}.mobile-comment-item .item-head-username{margin-left:12px}.mobile-comment-item .item-head-modified{margin-left:12px;color:#999}.mobile-comment-item .item-editor .comment-editor-readonly{padding-left:18px}.mini-comment-item{position:relative;line-height:16px;width:20px;height:16px;text-align:center;font-size:12px;border-radius:1px;background-color:var(--editor-comment-active-color, #FFC328);color:var(--editor-comment-mini-text-color, #ffffff);cursor:pointer}.mini-comment-item:after{content:"";position:absolute;left:50%;bottom:-4px;width:6px;height:6px;background-color:var(--editor-comment-active-color, #FFC328);border-radius:1px;transform:matrix(.71,.61,.82,-.71,0,0) translate(-50%);z-index:-1}.comment-quick-reply .quick-reply-button{color:#575859;font-size:12px}.comment-quick-reply .quick-reply-button.editor-text-button:hover{color:var(--text-button-color-hover, #0064ff);background-color:var(--text-button-bg-color-hover, transparent)}.comment-quick-reply .quick-reply-button.editor-text-button:active{color:#0053cf;background-color:var(--text-button-bg-color-hover, transparent)}.comment-quick-reply .quick-reply-editor{display:none}.comment-quick-reply .quick-reply-editor .reply-editor-actions{display:flex;justify-content:flex-end;margin-top:10px;padding:0 10px}.comment-quick-reply .quick-reply-editor .reply-editor-actions .editor-button{padding:4px 10px;line-height:1}.comment-quick-reply.hidden,.comment-quick-reply.reply-editor-editing .quick-reply-button{display:none}.comment-quick-reply.reply-editor-editing .quick-reply-editor{display:block}:root{--editor-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Robot, "Helvetica Neue", Helvetica, Arial, sans-serif;--editor-comment-layer-bg-color: #ffffff;--editor-comment-group-bg-color: #ffffff;--comment-root-border-color: #eaeaea;--editor-comment-layer-active-border-color: #cecece;--editor-box-shadow: 0px 3px 20px rgba(0, 0, 0, .15);--editor-comment-quote-color: #909090;--editor-comment-switch-button-width: 12px;--editor-comment-active-color: #ffc328;--editor-bg-color: #ffffff;--wiz-editor-z-comment-head: 11;--text-button-color-hover: #5587f0;--editor-comment-username-color: #07142a;--editor-comment-avatar-size: 32px}.disabled-scroll{overflow:hidden}.editor-root .editor-content div[data-type=editor-block].text-block.comment{box-shadow:none}.editor-root .editor-content div[data-type=editor-block].text-block.comment>div[data-type=block-content]>span{border-bottom:2px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block].text-block.comment.active{box-shadow:none;outline:none}.editor-root .editor-content div[data-type=editor-block].text-block.comment.active>div[data-type=block-content] span{background-color:#f8e6ab}.editor-root .editor-content div[data-type=editor-block] span.text.comment,.editor-root .editor-content div[data-type=editor-block] span[data-type=editor-box].comment{border-bottom:2px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block] span.text.comment.active,.editor-root .editor-content div[data-type=editor-block] span[data-type=editor-box].comment.active{background-color:#faf1d1}.editor-root .editor-content div[data-type=editor-block].comment{box-shadow:0 2px #f8e6ab}.editor-root .editor-content div[data-type=editor-block].comment.active{box-shadow:none;outline:4px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-comment-button{all:unset;position:absolute;right:-28px;top:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:3px;color:#07142a;cursor:pointer}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-comment-button:hover{background:#eaeaea}.editor-web-comment-root{position:absolute;right:0;width:300px;top:0;bottom:0;transition:width .16s ease-in;will-change:width;font-family:var(--editor-font-family)}.editor-web-comment-root .comment-groups-container .comment-group-item-root{position:absolute;left:50%;right:0;width:284px;padding:0 10px 10px;transform:translate(-50%);background-color:var(--editor-comment-group-bg-color);border-radius:2px;border-color:var(--editor-comment-layer-active-border-color);box-shadow:var(--editor-box-shadow)}.editor-web-comment-root .comment-groups-container .comment-group-item-root:not(.no-animation){transition:top .2s ease-in,opacity .35s ease-in}.editor-web-comment-root .comment-groups-container .comment-group-item-root:before{content:"";position:absolute;left:0;right:0;height:6px;background-color:#fff;border-radius:2px 2px 0 0;z-index:29}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head{display:flex;align-items:center;justify-content:space-between}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-quote{box-sizing:content-box;font-size:12px;line-height:20px;height:20px;color:#87888a;padding-bottom:10px;padding-top:10px;padding-right:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;max-width:calc(100% - 80px)}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-quote:before{content:"";display:block;width:2px;height:12px;background-color:#d4d6d9;margin-right:6px;float:left;border-radius:10px;margin-top:4px}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch{display:flex;align-items:center;height:22px;visibility:hidden}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button{padding:0;width:var(--editor-comment-switch-button-width);margin:3px 0;color:#606060}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button[data-button-id=switch-up]{margin-right:16px}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button:not(.disabled):hover{color:var(--text-button-color-hover)}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button.disabled{color:#60606080;cursor:not-allowed}.editor-web-comment-root .comment-groups-container .comment-group-item-root.active:before{background-color:#f59300}.editor-web-comment-root .comment-groups-container .comment-group-item-root.active .item-head-switch{visibility:visible}.editor-web-comment-root .comment-groups-container .comment-group-item-root.readonly .comment-quick-reply{display:none}.editor-mobile-comments-root{position:fixed;left:0;right:0;bottom:0;top:0;overflow:hidden;z-index:11}.editor-mobile-comments-root .mobile-comment-mask{position:absolute;left:0;right:0;bottom:0;top:0;background-color:#00000073}.editor-mobile-comments-root .mobile-comment-groups-container{position:absolute;width:100%;height:100vh;z-index:1;overflow:hidden}.editor-mobile-comments-root .mobile-comment-groups-container .mobile-comment-groups-scroll-container{padding:0 12px}.editor-mobile-comments-root .mobile-comment-pull-info-container{position:absolute;right:0;left:0;bottom:100px;z-index:2;text-align:center;display:none}.editor-mobile-comments-root .mobile-comment-pull-info-container .mobile-comment-pull-info{display:inline-block;padding:12px;border-radius:36px;margin:0 auto;background-color:#000c;color:#fff;font-size:12px;opacity:0;transition:opacity .25s cubic-bezier(.65,.05,.36,1)}.editor-mobile-comments-root .mobile-comment-pull-info-container.active{display:block}.editor-mobile-comments-root .mobile-comment-pull-info-container.active .mobile-comment-pull-info{opacity:1}.editor-mobile-comments-root .mobile-group-item-root{margin:0 auto;width:100%;height:100vh;overflow:hidden}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item{min-height:calc(100vh + 1px);padding-bottom:50px}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item-space{height:50vh}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item-abstract{background-color:var(--editor-comment-layer-bg-color);padding:12px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-mini-comment-root{position:absolute;right:0;top:0;bottom:0;width:48px;border-left:1px solid #f0f0f0;transition:width .16s ease-in;will-change:width;font-family:var(--editor-font-family);border:none;background-color:transparent;z-index:11}.editor-mini-comment-root .comment-groups-container{width:100%;height:100%}.editor-mini-comment-root .comment-groups-container .mini-group-item{position:absolute;top:0;left:50%;margin-left:-10px;transition:top .2s cubic-bezier(.65,.05,.36,1)}:is(.editor-web-comment-root,.editor-mobile-comments-root,.editor-mini-comment-root).hidden{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content]{margin:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] span.file-icon{color:#5587f0;display:inline-flex;vertical-align:text-bottom}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] span.file-icon svg{width:18px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] .file-name{color:var(--primary-color);padding:0;border-radius:12px;margin-right:4px;white-space:wrap;word-break:break-all;cursor:pointer}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office]{justify-content:start}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office].hover [data-type=block-content]{border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content]{max-width:360px;height:48px;cursor:pointer}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root{display:flex;align-items:center;max-width:100%;background-color:#f5f6f7;border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root:before{border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details{display:flex;flex-direction:column;justify-content:center;font-size:14px;flex-grow:1}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name{color:#1f2329;max-width:185px;display:flex;flex-direction:row;align-items:center;white-space:nowrap}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-size{color:#646a73;font-size:12px;margin-top:2px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name-pre{text-overflow:ellipsis;overflow:hidden}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions button{width:34px;height:34px;background-color:#fff;border:1px solid #dee0e3;border-radius:50%;margin:0 8px;padding:0;background-repeat:no-repeat;background-position:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions button svg{width:16px;height:16px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-icon{display:flex;flex-direction:row;align-items:center;width:36px;height:36px;margin:6px 6px 6px 12px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-icon>svg{width:24px;height:24px}div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content]{min-width:360px}div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root{min-width:360px}:root{--editor-version-button-border: black;--editor-bg-color: #ffffff;--editor-version-list-bg-color: white;--editor-version-select-bg-color: #F0F6FF}.version-dialog{display:flex;background-color:var(--editor-bg-color);width:100%;height:100%;color:var(--editor-color)}.version-dialog *{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;box-sizing:border-box}.version-dialog.loading .version-viewer .version-info-container{display:none}.version-dialog .version-loading{display:flex;flex:1;align-items:center;justify-content:center}.version-dialog .version-loading svg{width:28px;height:28px}.version-dialog .version-item-latest{color:#0064ff;background-color:#e3eeff;height:20px;padding:0 5px;border-radius:3px;display:inline-flex;align-items:center;font-size:12px;font-weight:400;margin-left:10px}.version-dialog .version-viewer{flex:1;display:flex;flex-direction:column;width:0;padding:0;min-width:0}.version-dialog .version-viewer .version-dialog-editor{overflow-y:auto}.version-dialog .version-viewer .version-info-container{height:50px;border-bottom:#e8e8e8 1px solid;display:flex;align-items:center;flex-shrink:0;padding-left:20px;font-size:14px;color:#303030}.version-dialog .version-viewer .version-info-container .version-info-right .text-3{color:#909090}.version-dialog .version-viewer .version-info-container .version-info-left{display:flex;align-items:center}.version-dialog .version-viewer .version-info-container .version-info-left .text-1,.version-dialog .version-viewer .version-info-container .version-info-left .text-2{color:#909090}.version-dialog .version-viewer .version-info-container .version-info-left .name{padding-left:5px;padding-right:10px;font-weight:500}.version-dialog .version-viewer .version-info-container .version-info-left .name .version-item-latest{margin-left:5px}.version-dialog .version-viewer .version-info-container .editor-dropdown{margin-left:10px;margin-right:10px}.version-dialog .version-viewer .version-info-container .command-item[data-id=current-version]{min-width:200px;border:1px solid #f0f0f0}.version-dialog .version-viewer .version-info-container .command-item[data-id=current-version] .toolbar-item-name-container{flex-grow:1}.version-dialog .version-viewer .dialog-button-text{margin-top:1px;margin-left:-4px}.version-dialog .version-viewer .dialog-text-button{outline:none;background:transparent;border:none;display:flex;align-items:center;color:var(--editor-color);font-size:16px;font-weight:500;padding:4px 0;cursor:pointer}.version-dialog .version-viewer .dialog-text-button .dialog-button-icon{margin-right:0;width:24px;height:24px}.version-dialog .version-viewer .dialog-text-button .dialog-button-icon svg{fill:currentColor}.editor-root.history .root-container .editor-block .text-element .inline-plugin.editor-box-loading{display:none}.editor-root.history .editor-content{padding:30px 75px}.editor-root.history .history-inserted-block[data-type=editor-block] [data-type=block-content]{border:4px solid var(--op-selected-color)}.editor-root.history .history-inserted-block[data-type=editor-block]{position:relative}.editor-root.history .history-inserted-block[data-type=editor-block]:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:10;font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-inserted-block[data-type=editor-block].table-block table{border:4px solid var(--op-selected-color)}.editor-root.history .history-inserted-block[data-type=editor-block].table-block table .child{pointer-events:none}.editor-root.history .history-inserted-block[data-type=editor-block].table-block{position:relative}.editor-root.history .history-inserted-block[data-type=editor-block].table-block:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:10;font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-inserted-block[data-type=editor-block].table-block:hover:after{top:0}.editor-root.history .history-deleted-block [data-type=block-content]{border:4px solid var(--op-selected-color)}.editor-root.history .history-deleted-block [data-type=block-content]{position:relative}.editor-root.history .history-deleted-block [data-type=block-content]:after,.editor-root.history .history-deleted-block [data-type=block-content]:before{content:" ";position:absolute;display:flex;z-index:2000;color:var(--op-color);justify-items:center;align-items:center;justify-content:center;align-content:center;pointer-events:none;overflow:visible;max-width:100%;max-height:100%;left:calc(50% - 16px);top:calc(50% - 2px);width:32px;height:4px;background-color:var(--op-color);transform:rotate(45deg);opacity:1}.editor-root.history .history-deleted-block [data-type=block-content]:before{transform:rotate(135deg)}.editor-root.history .history-deleted-block{position:relative}.editor-root.history .history-deleted-block:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:10;font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-deleted-block.history-deleted-box{background-color:unset!important;text-decoration:unset!important}.editor-root.history .history-deleted-block.history-deleted-box:hover:after{opacity:0}.editor-root.history .history-inserted-text{line-height:revert!important;background-color:var(--op-selected-color)}.editor-root.history .history-inserted-text{position:relative}.editor-root.history .history-inserted-text:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:10;font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-deleted-box{background-color:var(--op-selected-color);text-decoration:line-through}.editor-root.history .history-deleted-box{position:relative}.editor-root.history .history-deleted-box:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:10;font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history [data-box-type=history-deleted-box]>span[data-type=box-content]{border:none!important;margin:0!important}.editor-root.history [data-type=editor-block].table-block div[data-type=block-content]{overflow-x:revert}.editor-dialog-root{position:absolute;left:0;top:0;bottom:0;right:0;background-color:#639;z-index:100}.size-limit-textarea{display:inline-block;position:relative}.size-limit-textarea .size-limit-textarea-input{width:100%;resize:none;overflow:hidden;color:#303030;outline:none;border:1px solid #f0f0f0;border-radius:3px}.size-limit-textarea .size-limit-textarea-input:focus,.size-limit-textarea .size-limit-textarea-input:hover{border-color:#0064ff}.size-limit-textarea .size-limit-textarea-input:focus{box-shadow:0 0 0 2px #338fe533}.size-limit-textarea .size-limit-textarea-warning{position:absolute;right:0;bottom:10px;color:#909090;z-index:1;font-size:12px;pointer-events:none}.version-list-root{width:350px;background:var(--editor-version-list-bg-color);overflow-y:auto;padding:0;border-left:#e8e8e8 1px solid;display:flex;flex-direction:column}.version-list-root .version-list-header{padding:0 6px 0 20px;font-size:14px;display:flex;align-items:center;margin-top:8px;margin-bottom:8px;flex-shrink:0;color:#909090}.version-list-root .version-list-header .version-count{flex-grow:1}.version-list-root .version-list-header .version-list-filter .editor-command-bar.toolbar .command-item{cursor:pointer}.version-list-root .version-list-header .version-list-filter .editor-command-bar.toolbar .command-item .toolbar-item-dropdown-container{margin-left:5px}.version-list-root .version-list-header .version-list-filter .editor-command-bar.toolbar .command-item:not(.disabled):hover{color:#0064ff}.version-list-root .version-list-header .version-list-filter .editor-command-bar.toolbar .command-item.selected:not(.disabled){background-color:transparent}.version-list-root .version-list-empty{height:100%;display:flex;align-items:center;justify-content:center;font-size:14px;color:#909090}.version-list-root .version-list-content{flex-grow:1;overflow-y:auto}.version-list-root .version-list-content .version-item{padding:15px 10px;cursor:pointer}.version-list-root .version-list-content .version-item:not(:last-child):after{content:"";display:block;position:relative;top:15px;border-bottom:1px solid #e8e8e8}.version-list-root .version-list-content .version-item:not(:last-child):hover:after,.version-list-root .version-list-content .version-item:not(:last-child).active:after{left:-10px;width:106%}.version-list-root .version-list-content .version-item.child{padding-left:32px}.version-list-root .version-list-content .version-item:not(.active):hover{background:#f8f8f8}.version-list-root .version-list-content .version-item.active{background-color:var(--editor-version-select-bg-color)}.version-list-root .version-list-content .version-item.active .version-item-title .version-actions{display:flex}.version-list-root .version-list-content .version-item.active .version-item-title .version-item-date{color:#0064ff}.version-list-root .version-list-content .version-item.editing .version-item-memo{display:none}.version-list-root .version-list-content .version-item.active .version-item-memo{cursor:text}.version-list-root .version-list-content .version-item.active .version-item-memo:hover{outline:1px solid #0064ff}.version-list-root .version-list-content .version-item .version-item-restore-from{color:#87888a;font-size:12px;line-height:1.5em;height:20px;padding:0 10px 10px}.version-list-root .version-list-content .version-item .version-item-restore-from:empty{display:none}.version-list-root .version-list-content .version-item .memo-input.size-limit-textarea{width:100%;min-height:60px;display:flex;margin-top:5px}.version-list-root .version-list-content .version-item .memo-input.size-limit-textarea textarea{line-height:22px;padding:4px 9px;box-sizing:border-box;font-size:14px}.version-list-root .version-list-content .version-item .version-item-title{display:flex;align-items:center;padding-left:10px;padding-right:10px;height:24px}.version-list-root .version-list-content .version-item .version-item-title .version-item-date{font-size:14px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#2d2d2e}.version-list-root .version-list-content .version-item .version-item-title .spacer{flex-grow:1}.version-list-root .version-list-content .version-item .version-item-title .version-actions{display:none}.version-list-root .version-list-content .version-item .version-item-title .version-actions button{display:flex;align-items:center;justify-content:center;height:16px;cursor:pointer;border:none;outline:none;background:transparent;padding:0 0 0 10px;color:#909090}.version-list-root .version-list-content .version-item .version-item-title .version-actions button:hover{color:#0064ff}.version-list-root .version-list-content .version-item .version-item-title .version-actions button.disabled,.version-list-root .version-list-content .version-item .version-item-title .version-actions button.disabled:hover{color:#c7c7c7}.version-list-root .version-list-content .version-item .version-item-title .version-actions .revert-button{border-left:1px solid #e8e8e8;margin-left:10px}.version-list-root .version-list-content .version-item .version-item-authors{list-style:none;margin:0;font-size:12px;padding-left:10px}.version-list-root .version-list-content .version-item .version-item-author{display:flex;margin-top:10px;color:#606060;line-height:22px}.version-list-root .version-list-content .version-item .version-item-author .version-item-author-name{color:#575859}.version-list-root .version-list-content .version-item .version-item-author-mark{width:6px;height:6px;border-radius:3px;margin-right:5px;flex-shrink:0;margin-top:8px}.version-list-root .version-list-content .version-item .version-item-memo{font-size:14px;color:#303030;padding:5px 10px;border-radius:3px;margin-top:5px;line-height:22px}.version-list-root .version-list-content .version-item .version-item-memo:empty{display:none}.versions-dropdown-header{color:var(--text-color);padding:10px;border-bottom:1px solid #f0f0f0}.versions-dropdown-header .versions-dropdown-header-info{font-family:PingFang SC;color:#909090}.versions-dropdown-header .versions-dropdown-header-icon{display:inline-flex;vertical-align:middle;height:19px;padding-left:5px;padding-right:5px;cursor:pointer;color:#909090}.versions-dropdown-header .versions-dropdown-header-icon svg{vertical-align:baseline}.editor-command-bar.menu .command-item.standard[data-id=prev-version]{height:44px}[data-command-bar-id=versions-dropdown-popup]{width:320px;font-family:inherit}[data-command-bar-id=versions-dropdown-popup] .tippy-box{color:var(--text-color);line-height:normal}[data-command-bar-id=versions-dropdown-popup] .tippy-box .version-item-empty{width:100%}[data-command-bar-id=versions-dropdown-popup] .tippy-box .version-item-name{color:var(--text-color)}[data-command-bar-id=versions-dropdown-popup] .tippy-box .editor-command-bar.menu .command-item.standard.disabled{color:#909090}[data-command-bar-id=versions-dropdown-popup] .tippy-box .editor-command-bar{--text-color: #303030}[data-command-bar-id=versions-dropdown-popup] .tippy-box .editor-command-bar.menu .command-item.section{padding:0;font-size:inherit;color:inherit}[data-command-bar-id=versions-dropdown-popup] *{box-sizing:border-box}[data-command-bar-id=versions-dropdown-popup] .editor-command-bar-header{width:100%;margin-bottom:5px}[data-command-bar-id=versions-dropdown-popup] .command-item{width:100%;cursor:pointer}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container{padding:6px 10px;width:100%}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-memo{font-size:12px;color:#909090;line-height:20px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-line1{line-height:22px;display:flex;align-items:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-line1 .version-item-latest{color:#0064ff;background-color:#eaf3fc;height:20px;padding:0 5px;margin-left:10px;border-radius:3px;font-size:12px;display:inline-flex;align-items:center}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-empty{display:flex;height:34px;color:#909090;padding-left:10px;justify-content:left;align-items:center}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item{width:100%}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-info{height:24px;color:#909090;display:flex;align-items:center;padding-left:10px;background-color:#f8f8f8;width:100%;box-sizing:border-box;margin:5px 0;font-size:12px}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container{height:34px;display:flex;align-items:center;padding-left:10px;color:#303030;cursor:pointer}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container .filter-item-label{cursor:pointer}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container .editor-checkbox-wrapper{margin-right:4px}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container:hover .editor-checkbox-wrapper:not(.checked)>span.editor-checkbox>span.editor-checkbox-inner{border-color:#0064ff}.editor-root.readonly .editor-content div[data-type=editor-block].focused div[data-type=block-tools] .block-helper .heading-marker,.editor-root.readonly .editor-content div[data-type=editor-block].highlighted div[data-type=block-tools] .block-helper .heading-marker{display:flex}.editor-root .editor-content div[data-type=editor-block].heading-collapsed div[data-type=block-tools] .block-helper .heading-collapse-button svg{transform:rotate(270deg)}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button~.heading-marker{display:none}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button{width:24px;height:24px;cursor:pointer;margin:0;padding:0;display:flex;align-items:center;justify-content:center;background-color:#fff;border:none;border-radius:3px;box-sizing:content-box}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker:hover,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button:hover{background-color:#00245a0a}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker svg,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button svg{color:#87888a;transform:rotate(360deg);transition:transform .2s linear}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker svg,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button svg{width:16px;height:16px}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker{color:#c7c7c7;cursor:default}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker:hover{background-color:transparent}.embed-block div[data-type=block-content] .editor-toc-container{display:block;width:100%;background-color:#f0f0f0;padding:20px;text-align:start}.embed-block div[data-type=block-content] .editor-toc-container.loading{margin:0;min-height:100px}.embed-block div[data-type=block-content] .editor-toc-container .toc-node+.toc-node{margin-top:10px}.embed-block div[data-type=block-content] .editor-toc-container .toc-node .toc-text{cursor:pointer;color:var(--primary-color)}.embed-block div[data-type=block-content] .editor-toc-container .toc-node .toc-children{margin-top:10px;padding-left:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=mention] span[data-type=box-content]{margin:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=mention] span[data-type=box-content] .mention-name{color:var(--primary-color);padding:0;border-radius:12px;margin-left:4px;margin-right:4px;white-space:wrap;word-break:break-all;cursor:pointer}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon{width:20px;height:20px;border-radius:50%;overflow:hidden}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon img{width:100%;height:100%}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon .mention-user-avatar-string{align-items:center;display:flex;justify-content:center;overflow:hidden;height:100%;width:100%;font-size:12px;color:#fff;flex-shrink:0}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-name{flex-grow:0;margin-right:5px}.editor-root .editor-templates{position:fixed;bottom:26px;height:256px;width:auto;max-width:100%;padding-left:30px;padding-right:44px;overflow:hidden}.editor-root .editor-templates .editor-templates-title{color:#909090;font-size:14px;margin-left:0;margin-bottom:20px;line-height:19.6px}.editor-root .editor-templates .editor-templates-cards{display:flex;margin-left:0}.editor-root .editor-templates .editor-templates-cards .editor-template-card{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;cursor:pointer;flex-shrink:0;height:192px;width:188px;background:none;border:1px solid #e8e8e8;border-radius:3px;margin:0 0 0 15px;padding:0;align-items:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card:first-child{margin-left:0}.editor-root .editor-templates .editor-templates-cards .editor-template-card:hover{box-shadow:0 0 1px #30303033,0 8px 16px #30303026}.editor-root .editor-templates .editor-templates-cards .editor-template-card:hover>.editor-template-name{color:#0064ff}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-name{display:flex;align-items:center;height:40px;width:100%;border-top:1px solid #dedede;padding-left:20px;padding-right:20px;flex:0 0 50px;font-size:14px;font-weight:500;line-height:22px;color:#303030}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-name span{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-name{border-top:none}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-name span{padding-left:0;text-align:center}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-thumb-container{display:flex;align-items:center;justify-content:center;padding:16px 39px 14px}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-thumb-container>img{width:110px;height:112px;max-width:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-thumb-container{flex:1;position:relative;padding:10px 5px 0;height:142px;margin:0;overflow:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-thumb-container>img{max-width:100%}:root .iframe-embed-auth-error-tips{width:100%;height:34px;line-height:34px;background-color:#f7f8fa;text-align:center;color:#bebfc2;z-index:9910;position:fixed;top:0;left:0;box-shadow:0 2px 4px #2d2d2e26,0 0 1px #2d2d2e1a}:root .iframe-embed-auth-error-tips span{cursor:pointer;color:#0064ff;user-select:none}.editor-root.readonly [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container.layout-column-container{background-color:transparent}.editor-root div.editor-content div[data-type=editor-container].root>.container-blocks>*+.layout-block{margin-top:1.67em}.editor-root.readonly [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-action-bar,.editor-content.dragging [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-action-bar{display:none;user-select:none;pointer-events:none}.editor-root.readonly [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator,.editor-content.dragging [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator{opacity:0;cursor:default}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block{margin-left:-5px;margin-right:-17px}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.selected .layout-column-container,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.highlighted .layout-column-container{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .block-helper{padding-right:5px}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block [data-block-type=table] .block-helper{padding-right:5px;margin-right:-5px}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block>div[data-type=block-tools]>.block-helper{top:-24px;padding-right:5px}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .drag-container{display:flex;position:fixed;z-index:10;box-shadow:0 3px 20px #00000026;cursor:grabbing}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.child-focused .layout-column-container,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block:hover .layout-column-container,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.dragging .layout-column-container{background-color:#f7f8fa}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-disabled .creation-dot-button{display:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.column-resizing .layout-column-container .percent-bar{visibility:visible}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.column-dragging .layout-column-action-bar{display:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container{flex:1;transition:.1s background-color linear;border-radius:3px;position:relative;min-width:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .block-helper{z-index:2}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block div.scroll-container-root>div.container-scroll-tool .container-right-border-shadow{display:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block div[data-type=block-content]{left:0px;margin-right:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block .scroll-area{padding-left:0!important;padding-right:0!important;overflow:visible}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block div[data-type=block-tools] .table-border-bar-container{left:-6px!important}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block div[data-type=table-tools] .button-root:first-child{position:fixed!important}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .table-block div[data-type=table-tools] .table-indicator{transform:translate(26px)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container.selected.selected{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container.danger.danger{background-color:#ffeae8}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container:hover .layout-column-action-bar{opacity:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar{position:absolute;top:0px;transform:translateY(-100%);left:0px;width:calc(100% - 8px);opacity:0;margin:0 4px;transition:opacity .1s linear,transform .15s ease-out}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar.clicked{opacity:1;transform:translateY(-100%)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar.clicked .drag-handler{background:var(--background-default-o-color-bg-weak-hover, rgba(0, 36, 90, .06))}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar.clicked .delete-button{opacity:1;transform:translate(-50%);pointer-events:all}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar .drag-handler{display:flex;justify-content:center;align-items:center;height:12px;width:100%;border-radius:3px;margin-bottom:5px;cursor:grab;background:var(--background-default-o-color-bg-weak, #f7f8fa);color:#87888a}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar .drag-handler:hover{background:var(--background-default-o-color-bg-weak-hover, rgba(0, 36, 90, .06))}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar .drag-handler:active{cursor:grabbing;background:var(--background-default-o-color-bg-weak-hover, rgba(0, 36, 90, .12))}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar .delete-button{display:flex;justify-content:center;align-items:center;width:20px;height:20px;position:absolute;top:-22px;left:50%;opacity:0;cursor:default;padding:4px;transform:translate(-50%,20%);transition:opacity .1s linear,transform .15s ease-out;border-radius:var(--radius-o-radius, 3px);color:#575859;border:1px solid var(--border-default-o-color-border-medium, #dfe1e5);background:var(--background-default-o-color-bg, #fff);pointer-events:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .layout-column-action-bar .delete-button:hover{color:#e83723;border:1px solid var(--border-functional-o-color-border-danger-weak, #fddcd8);background:var(--background-functional-o-color-bg-danger-weak, #fff6f5)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container .percent-bar{visibility:hidden;width:51px;position:absolute;left:50%;transform:translate(-50%);top:0;background:rgba(45,45,46,.5);border-radius:3px;text-align:center;color:#fff;font-size:14px;z-index:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container.hovering-toolbar,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container.active{background:#e3eeff}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:3px;position:absolute;top:0;left:50%;transform:translate(-50%,-100%);transition:background-color .1s linear;cursor:pointer}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button:hover{background:var(--background-default-o-color-bg-primary, #0064ff);box-shadow:0 0 1px #2d2d2e33,0 8px 16px -4px #2d2d2e26}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button:hover:after{opacity:0!important;transform:scale(.2)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button:hover~.layout-drag-line{height:100%;top:0;opacity:1!important}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .creation-dot-button:after{content:"";border-radius:50%;background:var(--fill-o-color-fill-strong, #d4d6d9);position:absolute;width:4px;height:4px;opacity:0;transform:scale(0);transition:.2s all linear}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block.global-dragging .layout-separator{opacity:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator{width:22px;margin:0 -5px;height:auto;flex:none;z-index:1;position:relative;cursor:col-resize;overflow:visible}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:first-child{width:0;cursor:default;pointer-events:none;margin:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:first-child .creation-dot-button{display:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:last-child{cursor:default}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:last-child:hover .layout-drag-line{opacity:0;pointer-events:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator .layout-drag-line{position:absolute;width:2px;height:calc(100% - 10px);left:50%;top:5px;z-index:1;transform:translate(-50%);background-color:#0064ff;transition:.1s linear all;opacity:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:hover .creation-dot-button:after{opacity:1;transform:scale(1)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator:hover .layout-drag-line,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator.active .layout-drag-line,.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-separator.dragging .layout-drag-line{opacity:1;transition:.1s linear all}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-root{display:flex}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-root>[data-type=editor-container].layout-column-container{padding:10px 5px}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-root>[data-type=editor-container].layout-column-container+[data-type=editor-container].layout-column-container{margin-left:10px}.layout-preview-container{position:relative;height:0;overflow:hidden;z-index:-99}.layout-preview-container .layout-column-container{background-color:#f7f8fa;box-shadow:0 0 .5px #2d2d2e33,0 4px 10px #2d2d2e26}.layout-preview-container .layout-preview{display:flex}.layout-preview-container .dragging-preview-gray{border-radius:3px;background:#f7f8fa;box-shadow:0 0 .5px #2d2d2e33,0 4px 10px #2d2d2e26}.command-item.menu-item .layout-creator{padding:5px 10px;background:#fff}.command-item.menu-item .layout-creator .layout-creator-title-wrapper{display:flex;margin-bottom:5px;margin-right:5px;font-size:12px}.command-item.menu-item .layout-creator .layout-creator-title-wrapper .layout-creator-title{color:#87888a}.command-item.menu-item .layout-creator .layout-creator-title-wrapper .layout-creator-title-count{margin-left:auto;color:#2d2d2e;visibility:visible}.command-item.menu-item .layout-creator .layout-creator-title-wrapper .layout-creator-title-count.hidden{visibility:hidden}.command-item.menu-item .layout-creator .layout-preview{display:flex}.command-item.menu-item .layout-creator .layout-column{width:30px;height:100px;background:#edeff2;border-radius:3px;margin-right:3px;cursor:pointer}.command-item.menu-item .layout-creator .layout-column:first-child{cursor:not-allowed;background:#dfe1e5}.command-item.menu-item .layout-creator .layout-column.active{background:#408cff}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .container-blocks>*+*{margin-top:1em}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container>.container-blocks>*{min-width:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container>.container-blocks{z-index:1;position:relative;clip-path:inset(-100vw -2px -100vw -100vw)}.editor-root [data-type=editor-container].root div[data-type=editor-block].layout-block .layout-column-container>.container-blocks>div[data-block-type=table]:first-child{margin-top:-10px}div[tooltip-id=drag-handler] .tippy-arrow.tippy-arrow.tippy-arrow:before,div[tooltip-id=add-layout-column] .tippy-arrow.tippy-arrow.tippy-arrow:before{transform:scale(.8)}div[tooltip-id=drag-handler] .tippy-content,div[tooltip-id=add-layout-column] .tippy-content{box-shadow:0 8px 16px #30303026,0 0 1px #30303033;padding:4px 10px;font-size:12px;line-height:20px}div[data-command-bar-id=layout-column-toolbar] .editor-command-bar.toolbar{display:flex;justify-content:center;align-items:center;padding:0;box-shadow:none}div[data-command-bar-id=layout-column-toolbar] .editor-command-bar-root{box-shadow:none!important}div[data-command-bar-id=layout-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-column]{padding:0;width:20px;min-width:0;min-height:0;height:20px;color:#575859;border:1px solid var(--border-default-o-color-border-medium, #dfe1e5);background:var(--background-default-o-color-bg, #fff)}div[data-command-bar-id=layout-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-column] svg{width:12px;height:12px}div[data-command-bar-id=layout-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-column].selected,div[data-command-bar-id=layout-column-toolbar] .tippy-box .tippy-content button.command-item[data-id=delete-column]:hover{color:#e83723;border:1px solid var(--border-functional-o-color-border-danger-weak, #fddcd8);background:var(--background-functional-o-color-bg-danger-weak, #fff6f5)}:root div[data-command-bar-id=webpage]>div.tippy-box{max-width:500px}:root div[data-command-bar-id=webpage]>div.tippy-box div.tippy-content{width:500px;padding:0}.editor-dialog-container{width:500px}.editor-dialog-container .dialog-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 20px;height:50px;border-bottom:1px solid #e8e8e8;margin-bottom:20px}.editor-dialog-container .dialog-header .close-icon{display:flex;cursor:pointer}.editor-dialog-container .dialog-header .dialog-header-title{padding:8px 0 11px;font-size:18px;font-weight:700;flex-grow:1}.editor-dialog-container .dialog-content{padding:0 20px 20px;border-bottom:1px solid #e8e8e8}.editor-dialog-container .dialog-footer{margin:10px 0;padding:0 20px;text-align:right}.editor-dialog-container .dialog-footer button{min-height:30px;border-radius:3px;font-size:14px;padding:4px 15px}.editor-disable-scroll.editor-disable-scroll-dark{background-color:#00000080}.embed-block[data-embed-type=webpage]{height:400px;min-height:100px;max-height:1000px}.embed-block[data-embed-type=webpage] .webpage-mask{position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;background-color:transparent}.embed-block[data-embed-type=webpage].resizing [data-type=block-tools] .block-resizer{pointer-events:all!important}.embed-block[data-embed-type=webpage].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=webpage].selected>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=webpage]>div[data-type=block-content]{justify-content:center;height:100%}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed{width:100%}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed .editor-preview-iframe{width:100%;max-height:500px;height:100%;border:none;position:relative}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed .editor-preview-iframe-loading{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;background-color:#fff}.webpage-content .help-container{color:#303030;border:1px solid #dedede;padding:10px;border-radius:4px;border-left:4px solid #0064ff;margin-top:16px;margin-bottom:16px}.webpage-content .help-container .help-content{display:flex;align-items:flex-start}.webpage-content .help-container .help-content .help-icon{display:flex;align-items:center;height:20px;color:#0064ff;margin-right:12px}.webpage-content .help-link-container{margin-top:8px;display:flex;align-items:center}.webpage-content .help-link-container .help-link-content{display:flex;align-items:center;color:#0064ff;text-decoration:none}.webpage-content .help-link-container .help-link-content .help-link-icon{width:16px;height:16px;margin-left:8px}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-embed-type=webpage]>div[data-type=block-content]:before{display:block}:root{--editor-quoted-color: #7084a4;--editor-drawio-empty-svg: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zOC43MjAzIDI4LjcwOTdIMjUuOTIzM0MyNS4yMTY1IDI4LjcwOTcgMjQuNjQzNSAyOC4xNDgxIDI0LjY0MzUgMjcuNDU1MlYyNS43MzMzSDIwLjUyODNDMjAuNDk4NiAyNS43Njk2IDIwLjQ2NjkgMjUuODA0MiAyMC40MzMzIDI1LjgzN0wxNS45MTkyIDMwLjI2MjFWMzQuNzU1NkgyNC42NDM1VjMzLjcyNzZDMjQuNjQzNSAzMy4wMzQ4IDI1LjIxNjUgMzIuNDczMiAyNS45MjMzIDMyLjQ3MzJIMzguNzIwM0MzOS40MjcgMzIuNDczMiA0MCAzMy4wMzQ4IDQwIDMzLjcyNzZWMzguNzQ1NUM0MCAzOS40MzgzIDM5LjQyNyA0MCAzOC43MjAzIDQwSDI1LjkyMzNDMjUuMjE2NSA0MCAyNC42NDM1IDM5LjQzODMgMjQuNjQzNSAzOC43NDU1VjM3LjMzMzNIMTQuNjI2M0MxMy45MTIyIDM3LjMzMzMgMTMuMzMzMyAzNi43NTYyIDEzLjMzMzMgMzYuMDQ0NFYzMC42OTQxTDguMzc4NTIgMjUuODM3QzguMTM2MjYgMjUuNjAxNCA4IDI1LjI4MDggOCAyNC45NDYzQzggMjQuNjExOCA4LjEzNjI2IDI0LjI5MTEgOC4zNzg1MiAyNC4wNTU2TDEzLjMzMzMgMTkuMTk4NVYxNS43NzJDMTEuNzc5OCAxNS4yMjI5IDEwLjY2NjcgMTMuNzQxNiAxMC42NjY3IDEyQzEwLjY2NjcgOS43OTA4NSAxMi40NTc1IDggMTQuNjY2NyA4QzE2Ljg3NTggOCAxOC42NjY2IDkuNzkwODUgMTguNjY2NiAxMkMxOC42NjY2IDEzLjcyNjUgMTcuNTU4OCAxNS4yNTgxIDE1LjkxOTEgMTUuNzk4OFYxOS4yODg4QzE1LjkxOTEgMTkuMzkxOCAxNS45MDY4IDE5LjQ5NDMgMTUuODgyMyAxOS41OTQzTDE5LjUxNTEgMjMuMTU1NUgyNC42NDM1VjIyLjQzNzNDMjQuNjQzNSAyMS43NDQ1IDI1LjIxNjUgMjEuMTgyOSAyNS45MjMzIDIxLjE4MjlIMzguNzIwM0MzOS40MjcgMjEuMTgyOSA0MCAyMS43NDQ1IDQwIDIyLjQzNzNWMjcuNDU1MkM0MCAyOC4xNDgxIDM5LjQyNyAyOC43MDk3IDM4LjcyMDMgMjguNzA5N1pNMjcuMjAzIDM3LjQ5MUgzNy40NDA2VjM0Ljk4MjFIMjcuMjAzVjM3LjQ5MVpNMTQuNDA1OSAyOC4xOTU0TDExLjA5MTUgMjQuOTQ2M0wxNC40MDU5IDIxLjY5NzJMMTcuNzIwNCAyNC45NDYzTDE0LjQwNTkgMjguMTk1NFpNMjcuMjAzIDI2LjIwMDhIMzcuNDQwNlYyMy42OTE4SDI3LjIwM1YyNi4yMDA4WiIgZmlsbD0iIzA3MTQyQSIvPgo8L3N2Zz4K)}.flex-center,.editor-drawio-iframe-container.loading:before{display:flex;align-items:center;justify-content:center}.full-screen,.editor-drawio-iframe-container.loading:before,.drawio-iframe-element,.editor-drawio-iframe-container{width:100%;height:100%}.editor-drawio-iframe-container{position:fixed;top:0;left:0;z-index:1000}div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content]{outline:1px solid #dedede}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio].drawio-load-error>div[data-type=block-content]{padding:0;min-height:200px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio].drawio-load-error>div[data-type=block-content] .editor-drawio-content{width:100%;height:100%;min-height:inherit}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content]{justify-content:center;border-radius:3px;padding:10px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content{display:flex;flex-direction:column;align-items:center;justify-content:center}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content>div.drawio-error-content{width:100%;height:100%;background-color:#f8f8f8;display:flex;flex-direction:column;justify-content:center;text-align:center;flex:1}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content>div.drawio-error-content>div.drawio-error-brand-icon>svg{width:48px;height:48px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content>div.drawio-error-content>div.drawio-error-title{font-weight:500;font-size:18px;line-height:26px;text-align:center;color:#303030;margin:23px 0 5px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content>div.drawio-error-content>div.drawio-error-sub-title{font-size:14px;line-height:22px;text-align:center;color:#606060}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content>div.drawio-error-content>div.drawio-error-sub-title>span.drawio-error-retry-button{cursor:pointer;margin-left:4px;color:#0064ff}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .drawio-empty-content{display:flex;flex-direction:column;align-items:center}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .drawio-empty-content>span{font-size:14px;line-height:22px;text-align:center;color:#606060;margin-top:23px}.embed-block .editor-drawio-content.editor-embed{width:100%;min-height:80px;display:inline-block;text-align:center}.embed-block .editor-drawio-content.editor-embed .editor-empty-drawio{width:240px;height:400px}div.editor-root div.editor-content div[data-type=editor-container] div[data-embed-type=drawio].embed-block>div[data-type=block-content] img{max-width:100%;max-height:100%}.editor-drawio-iframe-container.loading:before{content:attr(data-placeholder);position:absolute;top:0;left:0;background-color:#f7f6f3;z-index:2}.editor-content .editing{background-color:#cdcdcd40}.editor-content div[data-type=block-tools] .embed-code-editor-container{position:absolute;top:0;left:0px;right:0px;bottom:0;background-color:#cdcdcd40;padding:8px}.editor-content div[data-type=block-tools] .embed-code-editor-container textarea{width:100%;height:100%;resize:none;outline:none;padding:12px;border:1px solid #b9bfc8;border-radius:4px;background-color:#fff;color:#333}.flex-row-center,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=mermaid],.embed-block[data-embed-type=flowchart],.embed-block[data-embed-type=plantuml]{display:flex;flex-direction:row;align-items:center;justify-content:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content],.embed-block[data-embed-type=flowchart] div[data-type=block-content],.embed-block[data-embed-type=plantuml] div[data-type=block-content]{width:100%;position:relative;border:1px solid #e5e5e5;border-radius:3px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed{width:100%;min-height:106px;background-color:#cdcdcd40}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed:after{content:attr(data-empty-tips);position:absolute;top:0;right:0;width:100%;height:100%;color:#07142a;white-space:nowrap}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed){width:100%;height:100px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed) img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed) img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed) img{display:none}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed):after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed):after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed):after{content:attr(data-invalid-text);position:absolute;top:0;right:0;width:100%;height:100%;outline:1px solid red;display:flex;flex-direction:row;align-items:center;justify-content:center;color:red}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-img-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-img-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-img-content{width:100%;text-align:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .mermaid-embed-img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .mermaid-embed-img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .mermaid-embed-img{max-width:100%;min-width:200px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .editor-plantuml-img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .editor-plantuml-img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .editor-plantuml-img{max-width:100%}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-img-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-img-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-img-content{width:100%;text-align:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-img-content img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-img-content img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-img-content img{max-width:100%}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed{width:100%}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-error-content,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-error-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-error-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content{width:100%;height:100%;min-height:200px;background-color:#f8f8f8;display:flex;flex-direction:column;justify-content:center;text-align:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-error-content>div.graph-error-brand-icon>svg,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-error-brand-icon>svg,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-error-content>div.graph-error-brand-icon>svg,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-error-brand-icon>svg,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-error-content>div.graph-error-brand-icon>svg,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-error-brand-icon>svg{width:48px;height:48px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-title,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-title,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-title,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-title,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-title,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-title{font-weight:500;font-size:18px;line-height:26px;text-align:center;color:#2d2d2e;margin:23px 0 5px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title{font-size:14px;line-height:22px;text-align:center;color:#87888a}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title>span.graph-error-retry-button,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title>span.graph-error-retry-button,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title>span.graph-error-retry-button,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title>span.graph-error-retry-button,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-error-content div.graph-error-sub-title>span.graph-error-retry-button,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content div.graph-error-sub-title>span.graph-error-retry-button{cursor:pointer;margin-left:4px;color:#0064ff}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content{background-color:#fff}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-brand-icon>svg,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-brand-icon>svg,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-brand-icon>svg{width:48px;height:48px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-empty-title,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-empty-title,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed div.graph-empty-content>div.graph-empty-title{font-weight:400;font-size:14px;line-height:22px;text-align:center;color:#606060;margin-top:23px}.hr-transition,.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container .editor-embed-hr{transition:border-top ease-in-out .4s}.embed-block[data-type=editor-block][data-embed-type=hr].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-type=editor-block][data-embed-type=hr].selected>div[data-type=block-content]{outline:none!important}.embed-block[data-type=editor-block][data-embed-type=hr]:is(.focused) div[data-type=block-content] .editor-embed-container .editor-embed-hr{caret-color:transparent}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container{display:flex;align-items:center;width:100%;height:24px;cursor:pointer}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container .editor-embed-hr{display:block;width:100%;border:none;margin:0;border-top:2px dashed #cccccc}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-tools]>div.block-helper{height:100%}:root{--hover-color: #40a9ff}.flex-column-center,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{display:flex;justify-content:center;align-items:center;flex-flow:column}.common{width:400px;height:180px;background-color:#fafafa;border:1px dashed #d9d9d9;border-radius:2px;transition:border-color .3s}.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{height:200px}.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty .media-error-icon,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .media-error-icon{display:flex}.editor-root .editor-content div[data-type=editor-block].embed-block.media-block-uploading div[data-type=block-tools] .block-helper{display:none}.embed-block[data-embed-type=video]{display:flex}.embed-block[data-embed-type=video][data-style-align=left]{justify-content:flex-start}.embed-block[data-embed-type=video][data-style-align=center]{justify-content:center}.embed-block[data-embed-type=video][data-style-align=right]{justify-content:flex-end}.embed-block[data-embed-type=video]>div[data-type=block-content]{border:none}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error{height:400px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty .media-error-icon,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .media-error-icon{display:flex}.embed-block[data-embed-type=video].hover>div[data-type=block-content],.embed-block[data-embed-type=audio].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=video].selected>div[data-type=block-content]:before,.embed-block[data-embed-type=audio].selected>div[data-type=block-content]:before{display:none}.embed-block[data-embed-type=video]>div[data-type=block-content],.embed-block[data-embed-type=audio]>div[data-type=block-content]{justify-content:center;max-width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media.full-screen,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media.full-screen{width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media{display:flex;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress{position:relative;width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress audio,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress audio{display:block;width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress video,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress video{display:block;max-width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#303030;opacity:.8;display:flex;align-items:center;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar{width:75%;height:6px;border-radius:3px;display:flex;background-color:#fff;overflow:hidden}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value{background-color:#0064ff}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{width:100%;background:#f8f8f8;outline:1px solid #dedede;border-radius:3px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error-icon svg,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error-icon svg{width:48px;height:48px;color:#c7c7c7}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .line-1,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .line-1{margin-top:10px;font-size:18px;text-align:center;color:#303030}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .line-2,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .line-2{margin-top:5px;font-size:14px;text-align:center;color:#606060}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .retry-upload,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .retry-upload{margin-left:4px;color:#0064ff;cursor:pointer;text-decoration:none}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty{width:100%;background:#ffffff;outline:1px solid #dedede;border-radius:3px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty svg,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty svg{width:48px;height:48px;color:#c7c7c7}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element{width:100%;display:flex;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .video-container,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .video-container{border-radius:3px;overflow:hidden}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .video-container video,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .video-container video{display:block;min-width:50px;max-width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .audio-container,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .audio-container{width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .audio-container audio,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .audio-container audio{display:block;width:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment{box-shadow:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment .media,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment .media{box-shadow:0 2px #f8e6ab}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment.active,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment.active{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment.active .media,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment.active .media{box-shadow:none;outline:4px solid #f8e6ab}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content]:after{display:none}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content] .media{position:relative}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content] .media:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#2d2d2e;opacity:.3}.video-tooltip-align-style-section .style-icon{border:none;background:#fff;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding-left:0;padding-right:0;border-radius:3px}.video-tooltip-align-style-section .style-icon:hover{background:rgba(0,0,0,.05)}.video-tooltip-align-style-section .style-icon.active{color:#00f}`)),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  (function(A,Tr){typeof exports=="object"&&typeof module<"u"?Tr(exports,require("kiwi-intl"),require("lodash.merge"),require("string-template"),require("nanoid"),require("events"),require("query-string"),require("js-base64"),require("snabbdom"),require("tiny-typed-emitter"),require("lodash.clonedeep"),require("lodash.isequal"),require("quill-delta"),require("lodash.debounce"),require("lodash.intersection"),require("ot-json1"),require("axios"),require("lodash.findlastindex"),require("reconnecting-websocket"),require("fast-sha256"),require("tippy.js"),require("blueimp-md5"),require("css-color-converter"),require("markmap-view"),require("lodash.throttle"),require("prismjs"),require("prismjs/components/prism-c"),require("prismjs/components/prism-cpp"),require("prismjs/components/prism-abap"),require("prismjs/components/prism-arduino"),require("prismjs/components/prism-bash"),require("prismjs/components/prism-basic"),require("prismjs/components/prism-clojure"),require("prismjs/components/prism-coffeescript"),require("prismjs/components/prism-csharp"),require("prismjs/components/prism-css"),require("prismjs/components/prism-dart"),require("prismjs/components/prism-diff"),require("prismjs/components/prism-docker"),require("prismjs/components/prism-elixir"),require("prismjs/components/prism-elm"),require("prismjs/components/prism-erlang"),require("prismjs/components/prism-flow"),require("prismjs/components/prism-fortran"),require("prismjs/components/prism-fsharp"),require("prismjs/components/prism-gherkin"),require("prismjs/components/prism-glsl"),require("prismjs/components/prism-go"),require("prismjs/components/prism-graphql"),require("prismjs/components/prism-groovy"),require("prismjs/components/prism-haskell"),require("prismjs/components/prism-java"),require("prismjs/components/prism-javascript"),require("prismjs/components/prism-json"),require("prismjs/components/prism-julia"),require("prismjs/components/prism-kotlin"),require("prismjs/components/prism-latex"),require("prismjs/components/prism-less"),require("prismjs/components/prism-lisp"),require("prismjs/components/prism-livescript"),require("prismjs/components/prism-lua"),require("prismjs/components/prism-makefile"),require("prismjs/components/prism-markdown"),require("prismjs/components/prism-markup"),require("prismjs/components/prism-matlab"),require("prismjs/components/prism-mermaid"),require("prismjs/components/prism-nix"),require("prismjs/components/prism-objectivec"),require("prismjs/components/prism-ocaml"),require("prismjs/components/prism-pascal"),require("prismjs/components/prism-perl"),require("prismjs/components/prism-php"),require("prismjs/components/prism-powershell"),require("prismjs/components/prism-prolog"),require("prismjs/components/prism-protobuf"),require("prismjs/components/prism-python"),require("prismjs/components/prism-r"),require("prismjs/components/prism-reason"),require("prismjs/components/prism-ruby"),require("prismjs/components/prism-rust"),require("prismjs/components/prism-sass"),require("prismjs/components/prism-scala"),require("prismjs/components/prism-scheme"),require("prismjs/components/prism-scss"),require("prismjs/components/prism-solidity"),require("prismjs/components/prism-sql"),require("prismjs/components/prism-swift"),require("prismjs/components/prism-typescript"),require("prismjs/components/prism-vbnet"),require("prismjs/components/prism-verilog"),require("prismjs/components/prism-vhdl"),require("prismjs/components/prism-visual-basic"),require("prismjs/components/prism-wasm"),require("prismjs/components/prism-yaml"),require("mime-db"),require("dom-to-image"),require("@guyplusplus/turndown-plugin-gfm"),require("turndown"),require("marked"),require("@better-scroll/core"),require("plantuml-encoder"),require("docx")):typeof define=="function"&&define.amd?define(["exports","kiwi-intl","lodash.merge","string-template","nanoid","events","query-string","js-base64","snabbdom","tiny-typed-emitter","lodash.clonedeep","lodash.isequal","quill-delta","lodash.debounce","lodash.intersection","ot-json1","axios","lodash.findlastindex","reconnecting-websocket","fast-sha256","tippy.js","blueimp-md5","css-color-converter","markmap-view","lodash.throttle","prismjs","prismjs/components/prism-c","prismjs/components/prism-cpp","prismjs/components/prism-abap","prismjs/components/prism-arduino","prismjs/components/prism-bash","prismjs/components/prism-basic","prismjs/components/prism-clojure","prismjs/components/prism-coffeescript","prismjs/components/prism-csharp","prismjs/components/prism-css","prismjs/components/prism-dart","prismjs/components/prism-diff","prismjs/components/prism-docker","prismjs/components/prism-elixir","prismjs/components/prism-elm","prismjs/components/prism-erlang","prismjs/components/prism-flow","prismjs/components/prism-fortran","prismjs/components/prism-fsharp","prismjs/components/prism-gherkin","prismjs/components/prism-glsl","prismjs/components/prism-go","prismjs/components/prism-graphql","prismjs/components/prism-groovy","prismjs/components/prism-haskell","prismjs/components/prism-java","prismjs/components/prism-javascript","prismjs/components/prism-json","prismjs/components/prism-julia","prismjs/components/prism-kotlin","prismjs/components/prism-latex","prismjs/components/prism-less","prismjs/components/prism-lisp","prismjs/components/prism-livescript","prismjs/components/prism-lua","prismjs/components/prism-makefile","prismjs/components/prism-markdown","prismjs/components/prism-markup","prismjs/components/prism-matlab","prismjs/components/prism-mermaid","prismjs/components/prism-nix","prismjs/components/prism-objectivec","prismjs/components/prism-ocaml","prismjs/components/prism-pascal","prismjs/components/prism-perl","prismjs/components/prism-php","prismjs/components/prism-powershell","prismjs/components/prism-prolog","prismjs/components/prism-protobuf","prismjs/components/prism-python","prismjs/components/prism-r","prismjs/components/prism-reason","prismjs/components/prism-ruby","prismjs/components/prism-rust","prismjs/components/prism-sass","prismjs/components/prism-scala","prismjs/components/prism-scheme","prismjs/components/prism-scss","prismjs/components/prism-solidity","prismjs/components/prism-sql","prismjs/components/prism-swift","prismjs/components/prism-typescript","prismjs/components/prism-vbnet","prismjs/components/prism-verilog","prismjs/components/prism-vhdl","prismjs/components/prism-visual-basic","prismjs/components/prism-wasm","prismjs/components/prism-yaml","mime-db","dom-to-image","@guyplusplus/turndown-plugin-gfm","turndown","marked","@better-scroll/core","plantuml-encoder","docx"],Tr):(A=typeof globalThis<"u"?globalThis:A||self,Tr(A["oneseditor-editor"]={},A.KiwiIntl,A.merge,A.stringFormat,A.nanoid$1,A.events,A.queryString,A.jsBase64,A.snabbdom,A.tinyTypedEmitter,A.cloneDeep,A.isEqual,A.Delta,A.debounce,A.intersection,A.json1,A.axios,A.findLastIndex,A.ReconnectingWebSocket,A.sha256,A.tippy$1,A.md5,A.cssColorConverter,A.markmap,A.throttle$1,A.Prism,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,A.mime,A.domToImage,A.turndownPluginGfm,A.TurndownService,A.marked,A.BetterScroll,A.plantumlEncoder,A.docx))})(this,function(A,Tr,oa,cI,uI,jA,fI,wf,nl,$e,dI,hI,mI,gI,pI,CI,EI,bI,xI,AI,Fp,vI,Kp,BI,yI,TI,Glt,qlt,Xlt,Ylt,Jlt,Qlt,Zlt,tat,eat,nat,rat,iat,oat,sat,lat,aat,cat,uat,fat,dat,hat,mat,gat,pat,Cat,Eat,bat,xat,Aat,vat,Bat,yat,Tat,kat,Rat,wat,Sat,Lat,Iat,Dat,_at,Mat,Oat,Uat,Nat,Pat,Fat,Kat,Vat,$at,Hat,jat,zat,Wat,Gat,qat,Xat,Yat,Jat,Qat,Zat,tct,ect,nct,rct,ict,oct,sct,kI,RI,wI,SI,Vp,LI,II,Bt){"use strict";var zlt=Object.defineProperty;var Wlt=(A,Tr,oa)=>Tr in A?zlt(A,Tr,{enumerable:!0,configurable:!0,writable:!0,value:oa}):A[Tr]=oa;var m=(A,Tr,oa)=>(Wlt(A,typeof Tr!="symbol"?Tr+"":Tr,oa),oa);const Ze=n=>n&&typeof n=="object"&&"default"in n?n:{default:n};function fm(n){if(n&&n.__esModule)return n;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const DI=Ze(Tr),$p=Ze(oa),_I=Ze(cI),Hp=Ze(jA),At=Ze(dI),Sf=Ze(hI),Vn=Ze(mI),Ue=Ze(gI),jp=Ze(pI),dm=fm(CI),zA=Ze(EI),WA=Ze(bI),MI=Ze(xI),OI=fm(AI),zp=Ze(Fp),UI=fm(Fp),hm=Ze(vI),NI=fm(BI),PI=Ze(yI),Uc=Ze(TI),Wp=Ze(kI),Gp=Ze(RI),FI=Ze(SI),GA=Ze(LI),KI=Ze(II);function VI(n){const t=r=>r<10?`0${String(r)}`:String(r),e=r=>r<10?`00${String(r)}`:r<100?`0${String(r)}`:String(r);return`${n.getFullYear()}-${t(n.getMonth()+1)}-${t(n.getDate())} ${t(n.getHours())}:${t(n.getMinutes())}:${t(n.getSeconds())}.${e(n.getMilliseconds())}`}var rl=(n=>(n.DEBUG="DEBUG",n.INFO="INFO ",n.WARN="WARN ",n.ERROR="ERROR",n))(rl||{});const qA=new Map,Xu=class{constructor(t){m(this,"times",new Map);this.category=t}shouldLog(t){const e=Object.values(rl).indexOf(t),r=Object.values(rl).indexOf(Xu.level);return e>=r}_log(t,e,r,i){var v;if(!this.shouldLog(t))return;const o=typeof process>"u"?{}:process;let s="";if(typeof e=="object")try{s="message"in e?e.message:JSON.stringify(e,null,4)}catch{s=""}else typeof e=="string"?e&&(s=e):s=JSON.stringify(e);s=i?`${s} - ${i}`:s;const l=`${this.category}`;let c=console.log;t==="WARN "&&(c=console.warn),t==="ERROR"&&(c=console.error);const f=`${VI(new Date)}`,h=t,C=l,E=Xu.extParams?"[{date}] {level}: [{module} {extParams}] - {msg}":"[{date}] {level}: [{module}] - {msg}",b=[_I.default(((v=o.env)==null?void 0:v.LOG_TEMPLATE)||E,{date:f,level:h,module:C,msg:s,extParams:Xu.extParams})];if(typeof e=="object"){const k=e.stack;k&&b.push(k)}if(c===console.error&&Xu.debugMode){const k=new Error().stack;k&&b.push(k)}c(...b),r&&this._log(t,r)}log(t,e){this._log("INFO ",t,void 0,e)}debug(t,e){this._log("DEBUG",t,void 0,e)}info(t,e){this._log("INFO ",t,void 0,e)}warn(t,e,r){this._log("WARN ",t,e,r)}error(t,e,r){this._log("ERROR",t,e,r)}time(t){this.times.set(t,Date.now())}timeEnd(t){this.timeLog(t),this.times.delete(t)}timeLog(t){const e=this.times.get(t);if(!e){this.warn(`no time label: ${t}`);return}this.debug(`${t}: ${Date.now()-e}`)}static setExtParams(t){this.extParams=t}};let Ei=Xu;m(Ei,"debugMode",!1),m(Ei,"level","DEBUG"),m(Ei,"extParams","");function _(n){const t=qA.get(n);if(t)return t;const e=new Ei(n);return qA.set(n,e),e}const $I={name:"ONES Editor",date:{dateFromFuture:"From the future",dateJustNow:"Just now",dateYesterday:"Yesterday",dateMinutesAgo:"{num} minutes ago",date1HourAgo:"1 hour ago",dateHoursAgo:"{num} hours ago",dateDaysAgo:"{num} days ago",dateWeeksAgo:"{num} weeks ago"},common:{cancel:"Cancel"},docx:{imageExportFailed:"Failed to load image"}},HI={name:"Ones Editor",date:{dateFromFuture:"\u6765\u81EA\u672A\u6765",dateJustNow:"\u521A\u521A",dateYesterday:"\u6628\u5929",dateMinutesAgo:"{num}\u5206\u949F\u524D",date1HourAgo:"1\u5C0F\u65F6\u524D",dateHoursAgo:"{num}\u5C0F\u65F6\u524D",dateDaysAgo:"{num}\u5929\u524D",dateWeeksAgo:"{num}\u5468\u524D"},common:{cancel:"\u53D6\u6D88"},docx:{imageExportFailed:"\u56FE\u7247\u52A0\u8F7D\u5931\u8D25"}},jI={name:"ONES \u30A8\u30C7\u30A3\u30BF\u30FC",date:{dateFromFuture:"\u672A\u6765\u304B\u3089",dateJustNow:"\u305F\u3060\u4ECA",dateYesterday:"\u6628\u65E5",dateMinutesAgo:"{num}\u5206\u524D",date1HourAgo:"1\u6642\u9593\u524D",dateHoursAgo:"{num}\u6642\u9593\u524D",dateDaysAgo:"{num}\u65E5\u524D",dateWeeksAgo:"{num}\u9031\u524D"},common:{cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB"},docx:{imageExportFailed:"\u753B\u50CF\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F"}},zI=_("i18n"),WI={"en-US":$I,"zh-CN":HI,"ja-JP":jI},mm=DI.default.init("en-US",WI);let XA="en-US";function GI(n=void 0){mm.setLang&&(XA=n||"en-US",mm.setLang(n||"en-US"))}function qI(n){$p.default(mm.__metas__,n)}function XI(n,t){const e=mm.get(n,t);return e===n&&zI.warn(`no locale value for key ${n}`),e}function YI(){return XA}const D=Object.freeze(Object.defineProperty({__proto__:null,setLang:GI,mergeLang:qI,t:XI,getCurrentLang:YI},Symbol.toStringTag,{value:"Module"})),lct="";class YA{constructor(t,e){this.editor=t,this.data=e}getData(){return this.data}getEditor(){return this.editor}destroy(){}}var JA=function(){if(typeof Map<"u")return Map;function n(t,e){var r=-1;return t.some(function(i,o){return i[0]===e?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var r=n(this.__entries__,e),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(e,r){var i=n(this.__entries__,e);~i?this.__entries__[i][1]=r:this.__entries__.push([e,r])},t.prototype.delete=function(e){var r=this.__entries__,i=n(r,e);~i&&r.splice(i,1)},t.prototype.has=function(e){return!!~n(this.__entries__,e)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var s=o[i];e.call(r,s[1],s[0])}},t}()}(),qp=typeof window<"u"&&typeof document<"u"&&window.document===document,gm=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),JI=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(gm):function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}}(),QI=2;function ZI(n,t){var e=!1,r=!1,i=0;function o(){e&&(e=!1,n()),r&&l()}function s(){JI(o)}function l(){var c=Date.now();if(e){if(c-i<QI)return;r=!0}else e=!0,r=!1,setTimeout(s,t);i=c}return l}var t9=20,e9=["top","right","bottom","left","width","height","size","weight"],n9=typeof MutationObserver<"u",r9=function(){function n(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ZI(this.refresh.bind(this),t9)}return n.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},n.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},n.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},n.prototype.updateObservers_=function(){var t=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return t.forEach(function(e){return e.broadcastActive()}),t.length>0},n.prototype.connect_=function(){!qp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),n9?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!qp||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=e===void 0?"":e,i=e9.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),QA=function(n,t){for(var e=0,r=Object.keys(t);e<r.length;e++){var i=r[e];Object.defineProperty(n,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return n},Nc=function(n){var t=n&&n.ownerDocument&&n.ownerDocument.defaultView;return t||gm},ZA=Cm(0,0,0,0);function pm(n){return parseFloat(n)||0}function tv(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t.reduce(function(r,i){var o=n["border-"+i+"-width"];return r+pm(o)},0)}function i9(n){for(var t=["top","right","bottom","left"],e={},r=0,i=t;r<i.length;r++){var o=i[r],s=n["padding-"+o];e[o]=pm(s)}return e}function o9(n){var t=n.getBBox();return Cm(0,0,t.width,t.height)}function s9(n){var t=n.clientWidth,e=n.clientHeight;if(!t&&!e)return ZA;var r=Nc(n).getComputedStyle(n),i=i9(r),o=i.left+i.right,s=i.top+i.bottom,l=pm(r.width),c=pm(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+o)!==t&&(l-=tv(r,"left","right")+o),Math.round(c+s)!==e&&(c-=tv(r,"top","bottom")+s)),!a9(n)){var f=Math.round(l+o)-t,h=Math.round(c+s)-e;Math.abs(f)!==1&&(l-=f),Math.abs(h)!==1&&(c-=h)}return Cm(i.left,i.top,l,c)}var l9=function(){return typeof SVGGraphicsElement<"u"?function(n){return n instanceof Nc(n).SVGGraphicsElement}:function(n){return n instanceof Nc(n).SVGElement&&typeof n.getBBox=="function"}}();function a9(n){return n===Nc(n).document.documentElement}function c9(n){return qp?l9(n)?o9(n):s9(n):ZA}function u9(n){var t=n.x,e=n.y,r=n.width,i=n.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return QA(s,{x:t,y:e,width:r,height:i,top:e,right:t+r,bottom:i+e,left:t}),s}function Cm(n,t,e,r){return{x:n,y:t,width:e,height:r}}var f9=function(){function n(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Cm(0,0,0,0),this.target=t}return n.prototype.isActive=function(){var t=c9(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},n.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},n}(),d9=function(){function n(t,e){var r=u9(e);QA(this,{target:t,contentRect:r})}return n}(),h9=function(){function n(t,e,r){if(this.activeObservations_=[],this.observations_=new JA,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return n.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new f9(t)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;!e.has(t)||(e.delete(t),e.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},n.prototype.broadcastActive=function(){if(!!this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(r){return new d9(r.target,r.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),ev=typeof WeakMap<"u"?new WeakMap:new JA,nv=function(){function n(t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=r9.getInstance(),r=new h9(t,e,this);ev.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){nv.prototype[n]=function(){var t;return(t=ev.get(this))[n].apply(t,arguments)}});var sa=function(){return typeof gm.ResizeObserver<"u"?gm.ResizeObserver:nv}();class m9 extends Error{constructor(t){if(super(t),this.code="Assert",this.stack){const e=this.stack.split(`
3
3
  `);if(e.length>1)if(this.lineNumber&&this.columnNumber){const r=e[1].match(/(.*)@(.*):(\d+):(\d+)/);r&&(this.lineNumber=+r[3],this.columnNumber=+r[4],this.fileName=r[2]),e.splice(0,1)}else e.splice(1,1);this.stack=e.join(`
4
4
  `)}}}function p(n,t,e){if(!t)throw n.error(`assert failed: ${e}`),new m9(e)}const g9=uI.customAlphabet("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_",8),rv="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function p9(){return rv[Date.now()%rv.length]}const rt=()=>`${p9()}${g9()}`;class iv extends Hp.default.EventEmitter{constructor(e=60){super();m(this,"cache",new Map);m(this,"expiredSeconds");this.expiredSeconds=e,this.startAutoClear()}delete(e){const r=this.cache.get(e);r&&this.emit("delete",r.data),this.cache.delete(e)}getSync(e,r){const i=this.cache.get(e),o=Date.now();if(i&&(o-i.lastRead)/1e3<this.expiredSeconds)return i.lastRead=o,i.data;const s=r(e);return this.cache.set(e,{lastRead:o,data:s}),s}async get(e,r){const i=this.cache.get(e),o=Date.now();if(i&&(o-i.lastRead)/1e3<this.expiredSeconds)return i.lastRead=o,i.data;const s=await r(e);return this.cache.set(e,{lastRead:o,data:s}),s}startAutoClear(){setInterval(()=>{const e=Date.now();Array.from(this.cache.entries()).forEach(([r,i])=>{(e-i.lastRead)/1e3>this.expiredSeconds&&this.delete(r)})},10*1e3)}}class Pc{constructor(){m(this,"_callbacks",new Set)}get callbacks(){return Array.from(this._callbacks)}registerCallback(t){this._callbacks.add(t)}unregisterCallback(t){this._callbacks.delete(t)}clearCallbacks(){this._callbacks.clear()}}const C9=_("await-locker");class E9{constructor(){m(this,"_acquired",!1);m(this,"_waitingResolvers",[]);this._acquired=!1,this._waitingResolvers=[]}acquireAsync(t){return this._acquired?new Promise((e,r)=>{this._waitingResolvers.push(e),t&&t>0&&setTimeout(()=>{const i=this._waitingResolvers.indexOf(e);if(i!==-1){this._waitingResolvers.splice(i,1);const o=new Error(`lock timeout: ${t}, waiting resolves: ${this._waitingResolvers.length}`);r(o)}},t)}):(this._acquired=!0,Promise.resolve())}tryAcquire(){return this._acquired?!1:(this._acquired=!0,!0)}release(){if(!this._acquired)throw new Error("Cannot release an unacquired lock");if(this._waitingResolvers.length>0){const t=this._waitingResolvers.shift();p(C9,t,"Resolver missing"),t(void 0)}else this._acquired=!1}acquired(){return this._acquired}debug(){const t=this._waitingResolvers.length;return console.log(`waiting resolves: ${t}`),{waitingCount:t}}}class b9{constructor(){m(this,"_map");this._map=new Map}getLocker(t){let e=this._map.get(t);return e||(e=new E9,this._map.set(t,e)),e}async lock(t,e){await this.getLocker(t).acquireAsync(e)}release(t){this.getLocker(t).release()}remove(t){this.isLocking(t)||this._map.delete(t)}isLocking(t){return this._map.has(t)?this.getLocker(t).acquired():!1}}const bi=new b9,Ho=navigator.userAgent;function la(){const n=navigator.userAgent.toLowerCase();return n.indexOf("safari")!==-1&&!(n.indexOf("chrome")>-1)}function Lf(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}const ye={isAndroid:!!Ho.match(/Android/i),isIOS:!!Ho.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/i),isIPad:!!Ho.match(/iPad/i),isIPhone:!!Ho.match(/iPhone/i),isLinux:!!Ho.match(/Linux/i),isMac:!!Ho.match(/Macintosh/i),isMobile:!!Ho.match(/AppleWebKit.*Mobile.*/i),isWindows:!!Ho.match(/Window/i),isIe:!!Ho.match(/msie|trident/i),isSafari:la(),isFirefox:Lf(),isMobileSafari:!1};ye.isMobileSafari=ye.isMobile&&ye.isSafari;const Fc=_("dom-utils");function z(n,...t){n&&n.nodeType===Node.ELEMENT_NODE&&n.classList.add(...t)}function _t(n,t){return n instanceof HTMLElement?n.classList.contains(t):!1}function lt(n,...t){n&&n.nodeType===Node.ELEMENT_NODE&&n.classList.remove(...t),n.classList.length===0&&n.removeAttribute("class")}function B(n,t,e,r){const i=document.createElement(n);return t&&t.length>0&&z(i,...t),e&&e.appendChild(i),r&&(typeof r=="string"?i.innerText=r.replace(/\r/g," ").replace(/\n/g," "):Qp(i,r)),i}function jo(n,t,e){const r=B("button",t,e);return r.innerHTML=n,r}function Xp(n,t,e){const r=B("img",t,e);return r.src=n,r}function ov(n,t){try{const e=document.createRange();return e.setStart(n,t),e}catch(e){p(Fc,!1,`failed to create range: ${n.childNodes.length}, ${t}, ${e.message}`)}}function Em(n,t,e,r){try{const i=document.createRange();return i.setStart(n,t),i.setEnd(e,r),i}catch(i){p(Fc,!1,`failed to create expanded range: ${n.childNodes.length}, ${t}, ${e.childNodes.length}, ${r}, ${i.message}`)}}function bm(n){const t=n.getClientRects();return p(Fc,t.length>=1,"getFirstClientRect: no rects"),t[0]}function aa(n){const t=n.getClientRects();return p(Fc,t.length>=1,"getLastClientRect: no rects"),t[t.length-1]}function il(n,t,e){const r=n.left+n.width/2,i=n.top+n.height/2;return(r-t)**2+(i-e)**2}function Yp(n,t){const e=document.querySelectorAll(".editor-disable-scroll");e.forEach(s=>{s.style.display="none"});let r,i=null,o=-1;return document.caretPositionFromPoint?(r=document.caretPositionFromPoint(n,t),r&&(i=r.offsetNode,o=r.offset)):document.caretRangeFromPoint&&(r=document.caretRangeFromPoint(n,t),r&&(i=r.startContainer,o=r.startOffset)),e.forEach(s=>{s.style.display="block"}),{textNode:i,offset:o}}function sv(n,t,e){const r=Yp(t,e);return r.textNode===n?r.offset:0}function xm(n,t){if(n===t)return 0;if((!n.parentElement||!t.parentElement)&&p(Fc,!1,"invalid dom node to compare"),n.parentElement===t.parentElement){const o=Array.from(n.parentElement.children);return o.indexOf(n)-o.indexOf(t)}const e=o=>{const s=[o];for(;o.parentElement;)s.unshift(o.parentElement),o=o.parentElement;return s},r=e(n),i=e(t);r[0]!==i[0]&&p(Fc,!1,"invalid dom node to compare, different tree");for(let o=1;;o++){const s=r[o],l=i[o];if(s===l)continue;const c=r[o-1],f=Array.from(c.children);return f.indexOf(s)-f.indexOf(l)}}function Jp(n){var i,o;const t=window.getComputedStyle(n),e=(i=Number.parseInt(t.paddingLeft,10))!=null?i:0,r=(o=Number.parseInt(t.paddingRight,10))!=null?o:0;return e+r}function If(n){return!document.documentElement.contains(n)}function Ee(n,t){let e=t;for(;e;){if(n===e)return!0;e=e.parentNode}return!1}function lv(n,t,e){if(document.getElementById(t)){setTimeout(e);return}const i=document.createElement("script");i.async=!0,i.src=n,i.id=t,document.head.appendChild(i),i.onload=()=>e(),i.onerror=o=>{if(o instanceof Event){const s=o.target;let l="";s&&(l=s.src),e(new URIError(`The script ${l} didn't load correctly.`))}else e(new URIError(`The script ${o} didn't load correctly.`))}}async function ca(n,t){const e=new Promise((r,i)=>{lv(n,t,o=>{o?i(o):r(void 0)})});try{await bi.lock(t),await e}finally{bi.release(t)}}function Qp(n,t){Object.entries(t).forEach(([e,r])=>{n.dataset[e]=`${r}`})}function Am(n,t){Object.entries(t).forEach(([e,r])=>{n.setAttribute(e,r)})}function Zp(n,t){Object.entries(t).forEach(([e,r])=>{n.style.setProperty(e,r)})}function Df(n){let t=0,e=0,r=n;do t+=r.offsetTop||0,e+=r.offsetLeft||0,r=r.offsetParent;while(r);return{top:t,left:e}}function Kc(n,t){return!n.target||!(n.target instanceof Element)?null:n.target.closest(t)}function av(n){return Kc(n,'[data-type="editor-block"]')}function vm(n){if(!n)return!1;const t=window.getComputedStyle(n);return t.display==="none"||t.visibility==="hidden"?!1:n.parentElement?vm(n.parentElement):!0}function Gr(n){let t=n;for(;t;){let e;if(t instanceof HTMLElement?e=t.offsetWidth:e=Number.parseInt(getComputedStyle(n).width,10),e!==0)return t.getBoundingClientRect().width/e;t=t.parentElement}return 1}function Bm(n,t){let e=!1;n.addEventListener("compositionstart",()=>{e=!0}),n.addEventListener("compositionend",()=>{la()?setTimeout(()=>{e=!1},100):e=!1});const r=i=>{t(i,e)};return n.addEventListener("keydown",r),()=>{n.removeEventListener("keydown",r)}}function Ne(n,t,e={noFilter:!1}){return e.noFilter?document.elementFromPoint(n,t)||document.body:document.elementsFromPoint(n,t).find(o=>o instanceof HTMLElement&&!_t(o,"editor-disable-scroll"))||document.body}class x9{constructor(t){m(this,"element");this.element=t}getClientHeight(){return this.element.clientHeight}getHorizontalScroll(){return this.element.scrollLeft}getVerticalScroll(){return this.element.scrollTop}getMaxHorizontalScroll(){return this.element.scrollWidth-this.element.clientWidth}getMaxVerticalScroll(){return this.element.scrollHeight-this.element.clientHeight}getHorizontalElementScrollOffset(t,e){return Df(t).left*Gr(t)-Df(e).left*Gr(e)}getVerticalElementScrollOffset(t,e){return Df(t).top*Gr(t)-Df(e).top*Gr(e)}scrollTo(t,e){this.element.scrollLeft=t,this.element.scrollTop=e}}class A9{constructor(){m(this,"element",window)}getHorizontalScroll(){return window.scrollX||document.documentElement.scrollLeft}getClientHeight(){return window.innerHeight||document.documentElement.clientHeight}getVerticalScroll(){return window.scrollY||document.documentElement.scrollTop}getMaxHorizontalScroll(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)-window.innerWidth}getMaxVerticalScroll(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight}getHorizontalElementScrollOffset(t){return(window.scrollX||document.documentElement.scrollLeft)+t.getBoundingClientRect().left}getVerticalElementScrollOffset(t){return(window.scrollY||document.documentElement.scrollTop)+t.getBoundingClientRect().top}scrollTo(t,e){window.scrollTo(t,e)}}const zo={elements:[],cancelMethods:[],add:(n,t)=>{zo.elements.push(n),zo.cancelMethods.push(t)},remove:(n,t)=>{const e=zo.elements.indexOf(n);e>-1&&(t&&zo.cancelMethods[e](),zo.elements.splice(e,1),zo.cancelMethods.splice(e,1))}},cv=typeof window<"u",v9={cancelOnUserAction:!0,easing:n=>--n*n*n+1,elementToScroll:cv?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};async function ua(n,t={}){var Z,Y;if(!cv)return new Promise(X=>{X(!1)});if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill.";let e,r,i;const o={...v9,...t},s=o.elementToScroll===window,l=!!o.elementToScroll.nodeName;if(!s&&!l)throw"Element to scroll needs to be either window or DOM element.";const c=s?document.documentElement:o.elementToScroll;getComputedStyle(c).getPropertyValue("scroll-behavior")==="smooth"&&console.warn(`${c.tagName} has "scroll-behavior: smooth" which can mess up with animated-scroll-to's animations`);const h=s?new A9:new x9(o.elementToScroll);if(n instanceof Element){if(i=n,l&&(!o.elementToScroll.contains(i)||o.elementToScroll.isSameNode(i)))throw"options.elementToScroll has to be a parent of scrollToElement";e=h.getHorizontalElementScrollOffset(i,o.elementToScroll),r=h.getVerticalElementScrollOffset(i,o.elementToScroll)}else if(typeof n=="number")e=h.getHorizontalScroll(),r=n;else if(Array.isArray(n)&&n.length===2)e=n[0]===null?h.getHorizontalScroll():n[0],r=n[1]===null?h.getVerticalScroll():n[1];else throw`Wrong function signature. Check documentation.
@@ -12,7 +12,7 @@ Available method signatures are:
12
12
  * @author Roy Revelt, Codsen Ltd
13
13
  * @license MIT
14
14
  * {@link https://codsen.com/os/string-character-is-astral-surrogate/}
15
- */function B9(n){if(typeof n=="string")return n.length===0?!1:n.charCodeAt(0)>=55296&&n.charCodeAt(0)<=56319;if(n===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isHighSurrogate(): the input is not string but ${typeof n}`)}function y9(n){if(typeof n=="string")return n.length===0?!1:n.charCodeAt(0)>=56320&&n.charCodeAt(0)<=57343;if(n===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isLowSurrogate(): the input is not string but ${typeof n}`)}const _f="\u200B";function T9(n){return[...n].length}function k9(n,t,e){const i=[...n];let o;return e===void 0?o=i.length:o=t+e,i.slice(t,o).join("")}function R9(n){const t="\xA0";if(!n)return"";if(n===" ")return t;let e=n;return e.startsWith(" ")&&(e=t+e.substr(1)),e.endsWith(" ")&&(e=e.substr(0,e.length-1)+t),e=e.replace(/ {2}/g,` ${t}`),e}function ym(n){if(!/["'&<>]/.exec(n))return n;const r={'"':"&quot;","'":"&#39;","&":"&amp;","<":"&lt;",">":"&gt;"};return n.split("").map(l=>r[l]||l).join("")}function uv(n){const t=document.getElementById(n);t&&t.remove()}function fv(n,t){const e=document.getElementById(t);if(e)return e.textContent=n,e;const r=document.createElement("style");return r.id=t,r.textContent=n,document.head.append(r),r}function Mf(n){const t="custom-cursor-style";if(n){const e=`body * { cursor: ${n} !important}`;fv(e,t)}else uv(t)}const dv=3,hv=_("drag-drop");class mv{constructor(t){m(this,"dragStarted",!1);m(this,"mouseDownEvent",null);m(this,"_dragOffsetX",0);m(this,"_dragOffsetY",0);m(this,"handleMouseDown",t=>{t.preventDefault(),t.stopPropagation(),this.mouseDownEvent=t;const e=this.options.elem.getBoundingClientRect();this._dragOffsetX=this.mouseDownEvent.x-e.left,this._dragOffsetY=this.mouseDownEvent.y-e.top,this.bindEvents()});m(this,"handleMouseMove",t=>{var o;t.preventDefault(),t.stopPropagation(),p(hv,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;if(this.dragStarted){this.onDragging(t,e,r);return}const i=(o=this.options.minThreshold)!=null?o:dv;(Math.abs(e)>=i||Math.abs(r)>=i)&&this.onDragStart(this.mouseDownEvent)});m(this,"handleMouseUp",t=>{if(t.button===0){p(hv,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;this.onDragEnd(t,e,r),t.preventDefault(),t.stopPropagation()}});this.options=t,this.options.mouseDownEvent?this.handleMouseDown(this.options.mouseDownEvent):this.trackEvents()}get data(){return this.options.data}get dragOffsetX(){return this._dragOffsetX}get dragOffsetY(){return this._dragOffsetY}get dragOffset(){return{x:this._dragOffsetX,y:this._dragOffsetY}}trackEvents(){this.options.elem.addEventListener("mousedown",this.handleMouseDown)}untrackEvents(){this.options.elem.removeEventListener("mousedown",this.handleMouseDown)}bindEvents(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}unbindEvents(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}onDragStart(t){this.dragStarted=!0,this.options.cursor&&Mf(this.options.cursor),this.options.onDragStart(this,t,this.options.elem)}onDragging(t,e,r){this.options.onDragging(this,t,this.options.elem,e,r)}onDragEnd(t,e,r){this.options.cursor&&Mf(null),this.dragStarted&&this.options.onDragEnd(this,t,this.options.elem,e,r),this.unbindEvents(),this.dragStarted=!1}destroy(){this.unbindEvents(),this.untrackEvents()}}function t1(n){return new mv(n)}const w9=_("character");function gv(n,t){for(let e=0;e<t.length;e++){const r=t[e][0],i=t[e].length>1?t[e][1]:null;if(i===null&&n===r||i!==null&&n>=r&&n<=i)return!0}return!1}function pv(n){const t=n.charAt(0);return t>="0"&&t<="9"}function Cv(n){const t=n.charAt(0);return t>="a"&&t<="z"||t>="A"&&t<="Z"||t.toUpperCase()!==t.toLowerCase()?!0:RegExp(/^\p{L}/,"u").test(t)}function Tm(n){const t=[[9,13],[32],[160]];return gv(n.charCodeAt(0),t)}function Ev(n){const t=[[12352,12687],[13056,13183],[13312,15661],[19968,40959],[63744,64255],[44032,55215]];return gv(n.charCodeAt(0),t)}function e1(n,t){let e=t;return p(w9,e.length===1,"invalid char length"),e==="]"&&(e="\\]"),e==="\\"&&(e="\\\\"),n.replace(new RegExp(`^[${e}]+|[${e}]+$`,"g"),"")}function n1(n){return n?n.length===1||n==="Process"||n==="Unidentified"&&ye.isAndroid:!1}function bv(n){switch(n){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":case"End":case"Home":case"PageDown":case"PageUp":return!0;default:return!1}}function S9(n){return bv(n.key)}function L9(n){switch(n){case"ArrowUp":case"ArrowLeft":case"Home":case"PageUp":return!0;default:return!1}}function da(n){return n.ctrlKey||n.altKey||n.shiftKey||n.metaKey}function I9(n){return n.key?!!(n.ctrlKey||n.metaKey||n.altKey):!1}function xv(n){return ye.isMac?n.metaKey&&!n.ctrlKey:!n.metaKey&&n.ctrlKey}function D9(n){return xv(n)&&!n.altKey&&!n.shiftKey}function _9(n){return!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.altKey}function Av(n){return!da(n)&&n.key==="Enter"}function M9(n){return n.key==="Enter"&&n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey}function km(n){return!da(n)&&n.key==="Escape"}function O9(n){return!da(n)&&n.key==="Delete"}function vv(n){return!da(n)&&n.key==="Backspace"}function U9(n){return!da(n)&&n.key==="Tab"}function N9(n){return n.shiftKey&&n.key==="Tab"&&!n.ctrlKey&&!n.metaKey}function mn(n){if(!n)return"";if(ye.isMac){const t=n.replace("CtrlOrCmd","\u2318").replace("Shift","\u21E7").replace("Ctrl","\u2303").replace("Alt","\u2325").replace(/\+(?!$)/gm,""),e={"\u2318":4,"\u21E7":3,"\u2325":2,"\u2303":1};return t.split(/(?=[\s\S])/u).sort((i,o)=>{var c,f;const s=(c=e[i])!=null?c:5,l=(f=e[o])!=null?f:5;return s-l}).map(i=>i in e?`${i}+`:i).join("")}return n.replace("CtrlOrCmd","Ctrl")}function Bv(n){const t={ctrl:!1,alt:!1,shift:!1,cmd:!1,key:""},e=n.toLocaleUpperCase().split("+");for(let r=0;r<e.length;r++){const i=e[r];i==="CTRL"||i==="CONTROL"?t.ctrl=!0:i==="ALT"||i==="OPTION"?t.alt=!0:i==="SHIFT"?t.shift=!0:i==="CMD"||i==="COMMAND"?t.cmd=!0:i==="CMDORCTRL"||i==="CTRLORCMD"?ye.isMac?t.cmd=!0:t.ctrl=!0:i==="SPACE"?t.key=" ":t.key=i.substring(0,1)+i.substring(1).toLocaleLowerCase()}return t}function Qi(n,t){const e=Bv(t);return e.ctrl!==n.ctrlKey||e.alt!==n.altKey||e.shift!==n.shiftKey||ye.isMac&&e.cmd!==n.metaKey?!1:e.key.length===1?e.key===n.key.toUpperCase():e.key.toUpperCase()===n.key.toUpperCase()}function r1(n,t){return fI.stringifyUrl({url:n,query:t})}function Zi(n){return typeof n=="string"?wf.Base64.encode(n,!0):wf.Base64.fromUint8Array(n,!0)}function Of(n){return wf.Base64.decode(n)}function P9(n){return wf.Base64.toUint8Array(n)}function i1(n){return new Blob([wf.Base64.toUint8Array(n)])}const F9=nl.init([nl.classModule,nl.styleModule,nl.datasetModule,nl.attributesModule,nl.propsModule]);function Uf(n,t){const e=nl.toVNode(n),r=nl.toVNode(t);F9(e,r)}async function o1(n,t){const e=new FileReader,r=new Promise((o,s)=>{e.onload=o,e.onerror=s});return e.readAsDataURL(new Blob([n],{type:t})),await r,e.result}async function Vc(n){const t=new FileReader,e=new Promise((i,o)=>{t.onload=i,t.onerror=o});return t.readAsDataURL(n),await e,t.result}function K9(n,...t){const e=n.tagName.toLowerCase();for(let r=0,i=t.length;r<i;r++)if(e===t[r].toLowerCase())return!0;return!1}function tn(n,t){let e=n;for(;e;){const r=window.getComputedStyle(e);if(t!=null&&t.horizontal){if(/auto|scroll/i.test(r.overflowX))break}else if(/auto|scroll/i.test(r.overflowY))break;e=e.parentElement}return(!e||K9(e,"body"))&&(e=document.documentElement),e}function yv(n){n.preventDefault(),n.stopPropagation()}function s1(n){if(document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`))return;const t=B("div",["editor-disable-scroll"],null);t.setAttribute("data-scroll-id",n),t.addEventListener("wheel",yv,{passive:!1}),document.body.appendChild(t)}function l1(n){const t=document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`);t&&(t.removeEventListener("wheel",yv),t.remove())}function a1(n,t,e){const r=new Blob([n]),i=new File([r],e,{type:t});return URL.createObjectURL(i)}function Rm(n){const t=document.createElement("template");if("content"in t)return t.innerHTML=n,document.importNode(t.content,!0);const e=document.createDocumentFragment(),r=document.createElement("div");for(r.innerHTML=n;r.firstChild;)e.appendChild(r.firstChild);return e}function Tv(n){const t=document.createElement("div");return t.appendChild(n),t.innerHTML}function kv(n){let t=n.getPropertyValue("font");if(t)return t;const e=n.getPropertyValue("font-style"),r=n.getPropertyValue("font-variant"),i=n.getPropertyValue("font-weight"),o=n.getPropertyValue("font-size"),s=n.getPropertyValue("font-family");return t=`${e} ${r} ${i} ${o} ${s}`.replace(/ +/g," ").trim(),t}function wm(n,t){const r=(wm.canvas||(wm.canvas=document.createElement("canvas"))).getContext("2d");return r?(typeof t=="string"?t?r.font=t:r.font=kv(window.getComputedStyle(document.body)):t instanceof Element&&(r.font=kv(window.getComputedStyle(t))),r.measureText(n).width+4):200}const Rv=_("editor-clipboard");async function V9(n,t){if(t.clipboardData){const e=t.clipboardData;for(const r of n)e.setData(r.type,r.data);return!0}return!1}function $9(n){return typeof n.text=="function"?n.text():new Promise((t,e)=>{const r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=e,r.readAsText(n)})}async function H9(n){var t;if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const e=document.createElement("textarea");try{let r=(t=n.find(i=>i.type==="text/plain"))==null?void 0:t.data;return r instanceof Blob&&(r=await $9(r)),e.textContent=r!=null?r:"",e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),!0}catch(r){return Rv.error(r),document.body.removeChild(e),!1}}return!1}async function Nf(n){try{const t={};n.forEach(r=>{t[r.type]=r.data});const e=new ClipboardItem(t);return await navigator.clipboard.write([e]),!0}catch(t){return Rv.error(t),await H9(n)}}function $c(n,t){return new Promise((e,r)=>{const i=document.createElement("input");i.type="file",i.style.display="none";const o=(t==null?void 0:t.container)||document.body;t!=null&&t.multiple&&(i.multiple=!0),i.accept=n,i.oncancel=()=>{e(null),i.remove()},i.onchange=()=>{const s=i.files;if(s){const l=t!=null&&t.multiple?Array.from(s):s[0];e(l)}i.remove()},i.onerror=s=>{r(s),i.remove()},o.append(i),i.click()})}function Sm(n){return Array.isArray(n)?n.every(t=>t instanceof File):!1}function Pf(n){const t=n;if(!t)return"";const e=t.lastIndexOf(".");return e===-1?"":t.slice(e+1)}function Lm(n,t){const e=document.createElement("a");e.setAttribute("download",`${t||""}`),e.setAttribute("href",`${n}`),e.click(),e.remove()}const wv=_("auto-scroll");function Sv(n,t){return!(n.scrollHeight===n.clientHeight||t==="top"&&n.scrollTop===0||t==="bottom"&&n.scrollTop+n.clientHeight===n.scrollHeight||t==="left"&&n.scrollLeft===0||t==="right"&&n.scrollLeft+n.clientWidth===n.scrollWidth)}function Lv(n,{direction:t,step:e}){let r=null;const i=t==="left"||t==="right",o=()=>Sv(n,t)?(i?t==="left"?n.scrollLeft=Math.max(n.scrollLeft-e,0):n.scrollLeft=Math.min(n.scrollLeft+e,n.scrollWidth):t==="top"?n.scrollTop=Math.max(n.scrollTop-e,0):n.scrollTop=Math.min(n.scrollTop+e,n.scrollHeight),r=requestAnimationFrame(o),r):(wv.debug("No need for scroll"),null);return r=requestAnimationFrame(o),()=>{r&&cancelAnimationFrame(r)}}class Ff{constructor(t){m(this,"cancelScroll",null);m(this,"options");m(this,"scrollDomInfo");m(this,"scrolling",!1);m(this,"getScrollingDirection",t=>{const{x:e,y:r}=t,{top:i,bottom:o,left:s,right:l}=this.scrollDomInfo,{edge:c}=this.options;return c.top&&r<=c.top+i?"top":c.bottom&&r>=o-c.bottom?"bottom":c.left&&e<=s+c.left?"left":c.right&&e>=l-c.right?"right":null});m(this,"handleMouseMove",t=>{var s;const{scrollElement:e,step:r=10,onDirectionChange:i}=this.options,o=this.getScrollingDirection(t);if(o){if(this.scrolling)return;wv.debug(`scroll direction: ${o}`),this.cancelScroll=Lv(e,{direction:o,step:r}),i==null||i(o),this.scrolling=!0}else(s=this.cancelScroll)==null||s.call(this),this.scrolling=!1});this.options=t,this.scrollDomInfo=this.getScrollDomInfo()}getScrollDomInfo(){const{scrollElement:t}=this.options,e=t.getBoundingClientRect(),r=e.top,i=e.left,o=e.bottom,s=e.right;return{left:i,top:r,right:s,bottom:o}}active(){const{trackMouseEvent:t="mousemove"}=this.options;window.addEventListener(t,this.handleMouseMove,!0)}inactive(){var e;const{trackMouseEvent:t="mousemove"}=this.options;window.removeEventListener(t,this.handleMouseMove,!0),(e=this.cancelScroll)==null||e.call(this),this.scrolling=!1}}function Iv(n,t){if(n===0)return"0 Bytes";const e=1024,r=t||2,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(n)/Math.log(e));return`${parseFloat((n/e**o).toFixed(r))} ${i[o]}`}function Kf(n,t){let e=`${n}`;const r=t-e.length;for(let i=0;i<r;i++)e=`0${e}`;return e}const{t:ha}=D;function c1(n,t){const e=new Date(n).getTime()+864e5*t;return new Date(e)}function j9(n,t){const e=n,r=Math.floor(t/12),i=t-r*12;return r&&e.setFullYear(e.getFullYear()+r),i&&e.setMonth(e.getMonth()+i),e}function z9(n,t){return c1(n,t)}function u1(n,t){const e=new Date(n),r=new Date(t);return e.getDate()===r.getDate()&&e.getMonth()===r.getMonth()&&e.getFullYear()===r.getFullYear()}function Dv(n){const t=new Date,e=new Date(n);return u1(t,e)}function _v(n){const t=c1(new Date,-1);return u1(t,n)}function W9(n,t){return Math.round((n.getTime()-t.getTime())/864e5)}function f1(n,t){const e=new Date(n);if(t){const r=e.getFullYear(),i=e.getMonth()+1,o=e.getDate(),s=e.getHours(),l=e.getMinutes();let c=t;return c=c.replace("YYYY",`${r}`),c=c.replace("MM",Kf(i,2)),c=c.replace("DD",Kf(o,2)),c=c.replace("M",`${i}`),c=c.replace("D",`${o}`),c=c.replace("hh",Kf(s,2)),c=c.replace("mm",Kf(l,2)),c=c.replace("h",`${s}`),c=c.replace("m",`${l}`),c}return n.toLocaleDateString()}function d1(n,t){const e=new Date(n),r=new Date;if(e.getTime()-r.getTime()>10*1e3)return D.t("date.dateFromFuture");if(Dv(e)){const o=(r.getTime()-n.getTime())/1e3;if(o<10*60)return ha("date.dateJustNow");if(o<60*60)return ha("date.dateMinutesAgo",{num:`${Math.floor(o/60)}`});const s=Math.floor(o/60/60);return s===1?ha("date.date1HourAgo"):ha("date.dateHoursAgo",{num:`${s}`})}if(_v(n))return ha("date.dateYesterday");const i=Math.floor((r.getTime()-n.getTime())/1e3/24/60/60)+1;return i<14?ha("date.dateDaysAgo",{num:`${i}`}):i<28?ha("date.dateWeeksAgo",{num:`${Math.round(i/7)}`}):f1(n,t)}function h1(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function G9(n,t,e){return n.replace(new RegExp(h1(t),"g"),e)}function q9(n,t,e){return n.replace(new RegExp(h1(t),"gi"),e)}function Mv(n,t,e){const i=document.createElement("canvas").getContext("2d");if(!i)return null;if(i.font=String(t),i.measureText(n).width>e){let s=0,l=0;for(;l<e;)l=i.measureText(n.slice(0,s)).width,s++;return`${n.slice(0,s-2)}...`}return n}const Ov=/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f\uAC00-\uD7AF]/,Uv=" -\x7F0-9!-/:-@[-`{-~\u0370-\u03FF\u0400-\u04FF",X9=new RegExp(`[${Uv}]`),Y9=new RegExp(`([^(${Uv})])`,"g"),Nv=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/;function Pv(n){return n.length===0?0:n.split("").reduce((t,e)=>{const r=(t<<5)-t+e.charCodeAt(0);return r&r},0)}function J9(n,t=1){var r,i;return(i=((r=Array.from(n))==null?void 0:r.filter(o=>Ov.test(o))).slice(-t))==null?void 0:i.join("")}function Q9(n,t=1){var i;const e=Array.from((i=n==null?void 0:n.replace(Y9,""))==null?void 0:i.split(/\s/));return e.reduce((o,s,l)=>{var c,f;return l===e.length-1&&o.length<t?`${o}${(c=s==null?void 0:s.slice(0,t-o.length))!=null?c:""}`:`${o}${(f=s[0])!=null?f:""}`},"").slice(0,t)}function Z9(n,t=1){var r,i;return(i=((r=Array.from(n))==null?void 0:r.filter(o=>Nv.test(o))).slice(-t))==null?void 0:i.join("")}function t7(n,t=1){var e,r;return(r=(e=Array.from(n))==null?void 0:e.slice(0,t))==null?void 0:r.join("")}function Im(n,t=1){if(!n||n.length===0)return"";const e=Ov.test(n),r=X9.test(n),i=Nv.test(n);switch(!0){case e:return J9(n,t);case r:return Q9(n,t);case i:return Z9(n,t);default:return t7(n,t)}}var Fv=(n=>(n.blue="#0064FF",n.cyan="#34AFDE",n.teal="#2CB2AE",n.green="#24B47E",n.kelly="#8AAB3F",n.yellow="#F0A100",n.orange="#EB6414",n.red="#E52727",n.fuchsia="#BE507D",n.purple="#9678D3",n))(Fv||{});function Dm(n){const t=Object.values(Fv),e=Math.abs(typeof n=="string"&&n.trim()?Pv(n.trim()):0)%t.length;return t[e]}const Kv=_("container");function to(n){return n.getAttribute("data-type")==="editor-container"}function te(n){return _t(n,"root")}function xi(n){return _t(n,"child")}function ft(n){const t=n.getAttribute("data-container-id");return p(Kv,t,"no id for container"),te(n)&&p(Kv,t==="root",`invalid root container id, : ${t}`),t}function Vv(n,t){const e=ft(n);return t.getContainerBlocks(e)}function m1(n){return`ones-editor-container-${n}`}const $v=_("element");function g1(n,t,e){const r=B("div",[t],n);return r.setAttribute("data-type","editor-container"),r.setAttribute("data-container-id",e),r.id=m1(e),B("div",["container-blocks"],r),r}function qr(n,t){const e=n.rootElement.querySelector(`[data-container-id=${t}]`);return p($v,e,`no container: ${t}`),e}function Vf(n,t){return n.rootElement.querySelector(`[data-container-id=${t}]`)}function $f(n){const t=n.querySelector(":scope > .container-blocks");return p($v,t,"no container blocks element"),t}function e7(n){let t=n.querySelector(":scope > .container-tools");return t||(t=B("div",["container-tools"],n)),t}const p1=_("container-children");function be(n,t){const e=$f(n),r=Array.from(e.children);if(p(p1,r.length>0,"container have not any child block"),t){const{condition:i,editor:o}=t;return r.reduce((s,l)=>{if(i(l)){const c=l.getAttribute("data-block-type");if(!c)return s;const h=o.editorBlocks.getBlockClass(c).getChildContainers(o,l).flatMap(C=>be(C,t));return[...s,...h]}else return[...s,l]},[])}return r}function Pe(n){const t=n.querySelector(":scope > .container-blocks > div[data-type=editor-block]");return p(p1,t,"container have not any child block"),t}function en(n){const t=be(n);return t[t.length-1]}function Ai(n){return be(n).length}function ol(n,t){const e=be(n)[t];return p(p1,e,`container have not block at index ${t}`),e}function Hv(n,t){var e;return(e=be(n)[t])!=null?e:null}class n7{constructor(t){m(this,"renders",[]);this.editor=t}registerRender(t){this.renders.push(t)}renderBox(t,e){const r={classes:[],attributes:{},styles:{}};return this.renders.forEach(i=>{if(i.renderBox){const o=i.renderBox(this.editor,t,e);o.classes&&r.classes.push(...o.classes),o.attributes&&(r.attributes={...r.attributes,...o.attributes}),o.styles&&(r.styles={...r.styles,...o.styles})}}),r}renderText(t,e){const r={classes:[],attributes:{},styles:{}};return this.renders.forEach(i=>{if(i.renderText){const o=i.renderText(this.editor,t,e);o.classes&&r.classes.push(...o.classes),o.attributes&&(r.attributes={...r.attributes,...o.attributes}),o.styles&&(r.styles={...r.styles,...o.styles})}}),r}renderBlock(t,e,r){const i={classes:[],attributes:{},styles:{}};return this.renders.forEach(o=>{if(o.renderBlock){const s=o.renderBlock(this.editor,e,r);s.classes&&i.classes.push(...s.classes),s.attributes&&(i.attributes={...i.attributes,...s.attributes}),s.styles&&(i.styles={...i.styles,...s.styles})}}),i}updateBlock(t,e,r,i){this.renders.forEach(o=>{var s;(s=o.updateBlock)==null||s.call(o,t,e,r,i)})}}const jv=_("block-class");function jt(n,t){return n.editorBlocks.getBlockClass(Tt(t))}function zv(n,t){const e=n.editorBlocks.getBlockClass(Tt(t));return p(jv,e.blockKind==="text",`is not a text block, ${e.blockType}`),e}function Xr(n,t){const e=n.editorBlocks.getBlockClass(Tt(t));return p(jv,e.blockKind==="complex",`is not a text block, ${e.blockType}`),e}function sl(n,t){return n.editorBlocks.getBlockClass(t)}function at(n,t){return jt(n,t).blockKind==="text"}function Hf(n,t){return n.editorBlocks.getBlockClass(t).blockKind==="text"}function Nt(n,t){return jt(n,t).blockKind==="complex"}function r7(n,t){return!Nt(n,t)}function vi(n,t){return jt(n,t).blockKind}class We extends $e.TypedEmitter{constructor(e){super();m(this,"hoveringBlock",null);m(this,"hoveringElem",null);m(this,"hoveringTextChild",null);m(this,"filters",[]);m(this,"finders",[]);m(this,"handleDocumentMouseMove",e=>{if(this.hoveringBlock){for(const s of this.filters)if(s.isInBlock(this.hoveringBlock,e))return}const r=Ne(e.x,e.y,{noFilter:!0});if(!r){this.setHoveringBlock(null,e,null,r);return}let i=Q(r);if((!i||!Ee(this.editor.rootContainer,i))&&(i=this.findBlockByFinders(e),!i)){this.setHoveringBlock(null,e,null,r);return}const o=this.getParentTextContentChild(i,r);this.setHoveringBlock(i,e,o,r)});this.editor=e,document.addEventListener("mousemove",this.handleDocumentMouseMove)}destroy(){document.removeEventListener("mousemove",this.handleDocumentMouseMove),this.filters.forEach(e=>e.destroy()),this.filters=[],this.finders.forEach(e=>e.destroy()),this.finders=[]}addFilter(e){this.filters.push(e)}addFinder(e){this.finders.push(e)}hoveringBlockId(){return this.hoveringBlock?dt(this.hoveringBlock):""}findBlockByFinders(e){for(let r=0;r<this.finders.length;r++){const o=this.finders[r].findTargetBlock(this.editor,e);if(o)return o}return null}setHoveringBlock(e,r,i,o){if(this.hoveringBlock===e&&this.hoveringTextChild===i&&this.hoveringElem===r.target)return;if(this.hoveringBlock!==e){const l=this.hoveringBlock&&Ee(this.editor.rootContainer,this.hoveringBlock)?this.hoveringBlock:null;l&&lt(l,"hover"),e&&z(e,"hover"),this.emit("change",e,l,r)}(this.hoveringElem!==o||this.hoveringBlock!==e)&&this.emit("targetChange",e,this.hoveringBlock,o);const s=this.hoveringTextChild;this.hoveringTextChild=i,this.hoveringElem=o,this.hoveringBlock=e,this.emit("childChange",this.hoveringBlock,i,s,r)}static get(e){return e.addCustom("standard-hovering-block",()=>new We(e))}getParentTextContentChild(e,r){if(!at(this.editor,e))return null;const i=$t(e);return r.parentElement===i?r:b1(r)}}const Wv="style-color-",Gv="style-bg-color-";class qv{renderText(t,e,r){return this.generateCSSCustomProperties(r)}renderBlock(t,e,r){var l,c;const i={};Object.entries(r).filter(f=>f[0].startsWith("style-")).forEach(([f,h])=>{i[`data-${f}`]=`${h}`});const s=[];return((c=(l=t.selection)==null?void 0:l.range)==null?void 0:c.start.blockId)===r.id&&s.push("focused"),typeof r.align=="string"&&r.align&&(i["data-style-align"]=r.align),r.heading&&(i["data-style-heading"]=String(r.heading)),r.quoted&&(i["data-style-quoted"]="true"),We.get(t).hoveringBlockId()===r.id&&s.push("hover"),{attributes:i,classes:s}}updateBlock(t,e,r,i){Array.from(r.attributes).forEach(l=>{l.name.startsWith("data-style-")&&r.removeAttribute(l.name)});const{attributes:o,classes:s}=this.renderBlock(t,e,i);o&&Object.entries(o).forEach(([l,c])=>{r.setAttribute(l,c)}),s&&s.forEach(l=>{z(r,l)})}generateCSSCustomProperties(t){const e=[],r={},i={};return Object.entries(t).forEach(([o,s])=>{s===!0?o.startsWith(Wv)?r["data-style-color"]=o.substring(Wv.length):o.startsWith(Gv)?r["data-style-bg-color"]=o.substring(Gv.length):o.startsWith("style")&&e.push(o):typeof s=="string"&&(o==="link"&&(e.push("link"),r.link=s),o==="inline-style-color"&&(i.color=s),o==="inline-style-background-color"&&(i.backgroundColor=s))}),{classes:e,attributes:r,styles:i}}}const Bi=_("block-dom");function Wo(n){return n instanceof HTMLDivElement?n.getAttribute("data-type")==="editor-block":!1}function Xv(n){return n instanceof HTMLElement&&n.getAttribute("data-type")==="block-tools"}function Yv(n){z(n,"block-hidden")}function C1(n){lt(n,"block-hidden")}function ll(n){return!_t(n,"block-hidden")}function dt(n){const{id:t}=n;return p(Bi,t,"no block id"),t}function Tt(n){const t=n.getAttribute("data-block-type");return p(Bi,t,"invalid block dom, no data-type"),t}function Q(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("div[data-type=editor-block]");return e||null}function ma(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("div[data-type=editor-block]:not(:scope)");return e||null}function ot(n){const t=n.closest("div[data-type=editor-container]");return p(Bi,t,"failed to get block container"),t}function $t(n){const t=n.querySelector(":scope >div[data-type=block-content]");return p(Bi,t,"no block content"),t}function xe(n){let t=n.querySelector(":scope >div[data-type=block-tools]");return t||(t=B("div",[],n),t.setAttribute("data-type","block-tools")),p(Bi,t,"no block tools"),t}function _m(n){const t=n.querySelector(":scope >div[data-type=block-tools]");return t||null}function E1(n){let t=n.querySelector(":scope > div[data-type=block-background]");return t||(t=B("div",[],n),t.setAttribute("data-type","block-background")),t}function Jv(n,t,e){const r=n.editorDecorators.decorateBlock(t,e),{id:i,type:o}=r;p(Bi,i,"no block id");const s=B("div",[`${o}-block`],null);s.id=i,s.setAttribute("data-type","editor-block"),s.setAttribute("data-block-type",o);const l=n.editorBlockRenders.renderBlock(n,t,e);return l.classes&&z(s,...l.classes),l.attributes&&Object.entries(l.attributes).forEach(([c,f])=>{s.setAttribute(c,f)}),l.styles&&Object.entries(l.styles).forEach(([c,f])=>{s.style.setProperty(c,f)}),s}function al(n,t){const e=B(t,[],null);return e.setAttribute("data-type","block-content"),n&&n.appendChild(e),e}function Qv(n){const t=B("span",[`${n.type}-box`],null);return t.setAttribute("data-type","editor-box"),t.setAttribute("data-box-type",n.type),t.id=n.id,t}function jf(n){const t=n.getAttribute("data-box-type");return p(Bi,t,"not a valid box element, no type"),t}function Mm(n){return n instanceof HTMLSpanElement?n.getAttribute("data-type")==="editor-box":!1}function Zv(n){const{id:t}=n;return p(Bi,t,"no box id"),t}function b1(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("span[data-type=editor-box]");return e||null}function tB(n){n.innerHTML="",B("span",["box-space-start"],n,_f);const t=B("span",[],n);return t.setAttribute("data-type","box-content"),B("span",["box-space-start"],n,_f),t}function x1(n){const t=n.querySelector("span[data-type=box-content]");return p(Bi,t,"invalid box dom, no content"),t}function eB(n,t,e){const r=B("span",[`${n}-insertion`],null);if(r.setAttribute("data-type","editor-insertion"),r.setAttribute("data-insertion-id",t),e){const i=new qv,{attributes:o}=i.generateCSSCustomProperties(e);o&&[...Object.entries(o)].forEach(s=>{const[l,c]=s;r.setAttribute(l,c)})}return r}function nB(n,t){return n.rootContainer.querySelector(`[data-insertion-id=${t}]`)}function rB(n){n.innerHTML="",B("span",["insertion-space-start"],n,_f);const t=B("span",[],n);return t.setAttribute("data-type","insertion-content"),B("span",["insertion-space-start"],n,_f),t}function A1(n){const t=n.querySelector("span[data-type=insertion-content]");return p(Bi,t,"invalid insertion-child dom, no content"),t}function He(n){let t=n.previousElementSibling;for(;t;){if(Wo(t))return t;t=t.nextElementSibling}return null}function ae(n){let t=n.nextElementSibling;for(;t;){if(Wo(t))return t;t=t.nextElementSibling}return null}function Yr(n){let t=n.previousElementSibling;for(;t;){if(Wo(t)&&ll(t))return t;t=t.previousElementSibling}return null}function Jr(n){let t=n.nextElementSibling;for(;t;){if(Wo(t)&&ll(t))return t;t=t.nextElementSibling}return null}function St(n){const t=ot(n),r=be(t).indexOf(n);return p(Bi,r!==-1,"invalid block & container dom, failed to get block index"),r}function v1(n){return!n||!(n instanceof Node)?!1:!!Q(n)}function Hc(n){if(!v1(n))return!1;const t=n,e=t instanceof Element?t:t.parentElement;return e?!!e.closest("div[data-type=block-tools]"):!1}function Go(n){return n.hasAttribute("data-document-title")}function cl(n,t,e){return jt(n,t).getCaretRect(t,e)}const B1=_("block");function bt(n,t){return jt(n,t).getBlockTextLength(t)}function iB(n){n.editorBlocks.forEach(t=>{t.clearSelection(n)})}function oB(n,t,e,r){jt(n,t).updateSelection(n,t,e,r)}function zf(n){for(;;){const t=ot(n);if(te(t))return n;const e=Q(t);p(B1,e,"no parent block exists for child container"),n=e}}function sB(n,t){let e=n;for(;e;){const r=ot(e);if(t(r))return e;e=Q(r)}}function lB(n,t){const e=jt(n,t);if(!!e.getMinWidth)return e.getMinWidth(n,t)}function aB(n,t,e){const r=jt(n,t);r.handleBlockElementUpdated&&r.handleBlockElementUpdated(n,t,e)}function Om(n,t,e,r){try{const i=sl(n,e).convertFrom;return i?i(n,t,r):null}catch{return B1.debug(`unsupported block type: ${e}`),null}}function qo(n,t,e){const r=jt(n,t);return r.getClientRects?r.getClientRects(n,t,e):[t.getBoundingClientRect()]}function i7(n,t){const e=jt(n,t);if(e.getBlockStyles)return e.getBlockStyles(n,t);const r=n.getBlockData(t),i=Object.fromEntries(Object.entries(r).filter(([o])=>o.startsWith("style-")));return Object.entries(i).forEach(([,o])=>{const s=typeof o;p(B1,s==="string"||s==="number"||s==="boolean","invalid style value")}),i}function Te(n,t){return vi(n,t)==="text"?bt(n,t)===0:!1}const cB=_("block-path");function Xo(n){const t=[];let e=n;for(;e;){const r=ot(e);if(t.unshift({containerId:ft(r),blockIndex:St(e)}),te(r))return t;const i=Q(r);p(cB,i,"no parent block"),e=i}return p(cB,!1,"no parent block"),[]}function Wf(n,t){var i,o;const e=jt(n,t);return(o=(i=e.getOptions)==null?void 0:i.call(e,n))!=null?o:{name:Tt(t)}}function Qr(n){return te(ot(n))}function uB(n,t){var i;const e=jt(n,t);return(i=e.getBlockProperties)==null?void 0:i.call(e,n,t)}function y1(n,t){var o,s;const e=jt(n,t),r=(o=e.getBlockProperties)==null?void 0:o.call(e,n,t);let i={};r!=null&&r.blockCommands&&(i={...r.blockCommands});for(const l of n.blockHooks){const c=(s=l.commands)==null?void 0:s.call(l,n,t);c&&(i[c.group]=c)}return i}function o7(n,t,e){var s,l,c,f;const r=jt(n,t),i=(s=r.getBlockProperties)==null?void 0:s.call(r,n,t);let o={};i!=null&&i.blockCommands&&(o={...i.blockCommands});for(const h of n.blockHooks){const C=(l=h.commands)==null?void 0:l.call(h,n,t);C&&(o[C.group]=C)}return(f=(c=o[e])==null?void 0:c.commands)!=null?f:[]}function fB(n,t,e){let r=t;for(;r;){const i=o7(n,r,e);if(i.length>0)return{element:$t(r),commands:i};if(Qr(r))break;r=ma(r)}return{element:null,commands:[]}}const dB=_("embed-block-common");function hB(n){return Tt(n)==="layout"}function me(n){return Tt(n)==="embed"}function Ge(n){p(dB,me(n),"not an embed block");const t=n.getAttribute("data-embed-type");return p(dB,t,"no embed data type"),t}function s7(n,t){return n.editorEmbeds.getEmbedClass(Ge(t))}function ga(n,t){return n.editorEmbeds.getEmbedClass(t)}function T1(n,t,e){var s;if(!t||!e)return;const r=n.getContainerById(t),i=Q(r);return i?(s=Wf(n,i).overrideInertEmptyBlockInsideOptions)==null?void 0:s[e]:void 0}async function k1(n,t,e,r,i){const o=ga(n,t);if(!o.getOptions)return null;const s=o.getOptions(n);if(!s.insertEmbedCommandItems||!s.insertEmbedCommandItems||s.insertEmbedCommandItems.length===0||!s.handleInsertEmptyEmbed)return null;const l=s.insertEmbedCommandItems[0];return s.handleInsertEmptyEmbed(n,{item:l,containerId:e,blockIndex:r,data:i})}function l7(n,t,e,r,i){var c,f,h,C;const o=(f=(c=sl(n,t)).getOptions)==null?void 0:f.call(c,n);if(!o||!o.insertBlockCommandItems||o.insertBlockCommandItems.length===0||!o.handleInsertEmptyBlock)return null;const s=o.insertBlockCommandItems[0],l=T1(n,e,t);return o.handleInsertEmptyBlock(n,{item:Object.assign((h=l==null?void 0:l.item)!=null?h:{},s),containerId:e,blockIndex:r,data:(C=l==null?void 0:l.data)!=null?C:i})}const a7=_("execute-block-command");function mB(n,t,e,r){var f;p(a7,me(t),"not a embed block");const i=Ge(t),o=ga(n,i);if(!o.getOptions)return;const s=(f=o.getBlockProperties)==null?void 0:f.call(o,n,t),l=s==null?void 0:s.blockCommands;if(!l)return;const c=Object.entries(l);for(const h of c)if(h[0]===e)return h[1].executeCommand(n,t,r)}function gB(n,t,e,r){const i=y1(n,t);if(!i)return;const o=Object.entries(i);for(const s of o)if(s[0]===e)return n.emit("beforeExecCommand",n,r,{source:r.source}),s[1].executeCommand(n,t,r)}const pB=_("block-class");function an(n){return!!n.getAttribute("data-style-heading")}function Gf(n){var e;const t=Number.parseInt((e=n.getAttribute("data-style-heading"))!=null?e:"",10);return p(pB,t,"not a heading block"),t}function CB(n){return!_t(n,"heading-collapsed")}function kr(n){return _t(n,"heading-collapsed")}function pa(n,t){t||p(pB,an(n),"not a heading block");const e=[],r=t!=null?t:Gf(n);let i=ae(n);for(;i&&!(an(i)&&Gf(i)<=r);)e.push(i),i=ae(i);return e}function EB(n){let t=ae(n);const e=[];for(;t&&!ll(t);)e.push(t),t=ae(t);return e}const Yo=_("text-block-child");function qf(n){return n.tagName==="SPAN"}function Rr(n){return p(Yo,qf(n),"not a valid text child"),n.getAttribute("data-type")==="editor-box"}function Jo(n){return p(Yo,qf(n),"not a valid text child"),n.getAttribute("data-type")==="editor-insertion"}function Xf(n){return!Rr(n)&&!Jo(n)}function bB(n){return p(Yo,qf(n),"not a valid text child"),Rr(n)?"box":Jo(n)?"insertion":"text"}function Zr(n){const t=bB(n);return t==="insertion"?0:t==="box"?1:(p(Yo,n.textContent!==null,"text block content is undefined"),p(Yo,n.textContent.length>=0,"text block content length is negative"),n.textContent.length)}function eo(n){const t=$t(n),e=Array.from(t.children);return e.forEach(r=>{p(Yo,qf(r),"not a valid text child")}),e}function Yf(n,t){const e=eo(n);let r=0;for(let i=0;i<e.length;i++){const o=e[i],s=Zr(o);if(r+s<t){r+=s;continue}if(r===t)return{prev:e[i-1],next:o,offset:0};if(r+s===t)return{prev:o,next:e[i+1],offset:0};const l=t-r;return p(Yo,l>0,"invalid offset value"),p(Yo,!Rr(o),"invalid box child"),{prev:o,next:o,offset:l}}p(Yo,!1,`invalid block child at position: ${t}`)}const c7=_("child-container-path");function xB(n){if(te(n))return[];const t=Q(n);return p(c7,t,"no parent block"),Xo(t)}const AB=_("load-blocks");function R1(n,t,e){const r=ft(t),i=Vv(t,n.doc);p(AB,i.length>0,"no blocks in container");const o=document.createDocumentFragment();i.forEach((l,c)=>{const f=n.editorBlocks.createBlock([...e,{containerId:r,blockIndex:c}],t,l);o.appendChild(f)}),$f(t).appendChild(o)}function u7(n,t,e){const r=$f(n);if(t===0)return r.insertBefore(e,r.firstChild),e;const i=be(n);return p(AB,t>=0&&t<=i.length,"invalid block index"),t===i.length?r.appendChild(e):r.insertBefore(e,i[t]),e}function f7(n,t,e,r){const i=xB(t);i.push({containerId:ft(t),blockIndex:e});const o=n.editorBlocks.createBlock(i,t,r);return u7(t,e,o),o}const w1=_("root-container"),vB=3;class d7{constructor(t,e){m(this,"resizeObserver");m(this,"isMoved",!1);m(this,"mouseDownEvent",null);m(this,"handleContextMenu",t=>{if(ye.isSafari){const e=document.getSelection();e&&!e.isCollapsed&&e.collapseToStart()}});m(this,"handleResize",()=>{try{this.editor.selection.updateSelection(null),this.editor.emit("resize",this.editor)}catch(t){w1.warn(`failed to update selection while container resizing: ${t.message}`)}});m(this,"handleClick",t=>{this.editor.emit("click",this.editor,t);const e=t.target;if(!Hc(e)&&(t.detail===1&&this.editor.input.focus(),t.detail===3&&this.editor.selectionHandler.handleTripleClick(t),t.detail===1&&t.button===0)){const r=Ne(t.clientX,t.clientY);if(r&&Ee(this.rootContainer,r)){const i=Q(r);i&&Ee(i,r)&&this.handleBlockClick(t,i,r)}}});m(this,"handleBlockClick",(t,e,r)=>{var s,l;if(!at(this.editor,e))return;const i=b1(r);if(i){const c=Q(i);p(w1,c,"no parent block"),(l=(s=this.editor.editorBoxes.getBoxClass(jf(i)))==null?void 0:s.handleClickBox)==null||l.call(s,this.editor,i,t);return}const o=r.closest("span.text.link");o&&eo(e).indexOf(o)!==-1&&this.editor.emit("clickLink",this.editor,t,o)});m(this,"handleDblClick",t=>{Hc(t.target)||this.editor.selectionHandler.handleDblClick(t)});m(this,"handleMouseDown",t=>{this.mouseDownEvent=t,this.isMoved=!1;const e=t.target;if(!!e&&e instanceof Node&&!Hc(e)){if(t.button===2){t.stopPropagation();return}if(e instanceof HTMLElement&&e.draggable){this.editor.selectionHandler.handleMouseDown(t,{autoScroll:!1}),this.editor.selectionHandler.stopSelection(),this.editor.input.focus();return}t.button===0&&(document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.editor.selectionHandler.handleMouseDown(t,{autoScroll:!0})),ye.isMobileSafari||this.editor.input.focus()}});m(this,"handleMouseMove",t=>{p(w1,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;(Math.abs(e)>=vB||Math.abs(r)>=vB)&&(this.editor.selectionHandler.handleMouseMove(t),this.isMoved=!0)});m(this,"handleMouseUp",t=>{t.button===0&&(this.editor.selectionHandler.handleMouseUp(t),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)),this.isMoved&&(document.addEventListener("click",this.handleCaptureClick,!0),document.addEventListener("dblclick",this.handleCaptureDbClick,!0)),this.isMoved=!1});m(this,"handleCaptureClick",t=>{document.removeEventListener("click",this.handleCaptureClick,!0),t.stopPropagation()});m(this,"handleCaptureDbClick",t=>{document.removeEventListener("dblclick",this.handleCaptureDbClick,!0),t.stopPropagation()});this.editor=t,this.rootContainer=e,this.editor=t,this.resizeObserver=new sa(this.handleResize),this.bindEvents(e)}bindEvents(t){this.resizeObserver.observe(t);const e=this.editor.rootElement;e.onmousedown=this.handleMouseDown,e.ondblclick=this.handleDblClick,e.onclick=this.handleClick,e.oncontextmenu=this.handleContextMenu}unbindEvents(){this.resizeObserver.disconnect();const t=this.editor.rootElement;t.onmousedown=null,t.ondblclick=null,t.onclick=null,t.oncontextmenu=null}destroy(){this.unbindEvents()}reload(){const t=this.editor.selection.range,e=$f(this.rootContainer);e.innerHTML="",R1(this.editor,this.rootContainer,[]);const r=this.editor.findBlockById(t.start.blockId);if(r)this.editor.selection.selectBlock(r,0);else{const i=Pe(this.rootContainer);this.editor.selection.selectBlock(i,0)}}}function BB(n){const t=g1(n.contentElement,"root","root");return n.rootContainer=t,R1(n,t,[]),new d7(n,t)}function yB(n,t,e,r){const i=Vf(n,r);if(i)return e.appendChild(i),setTimeout(()=>{n.emit("containerRemount",n,r)}),i;const o=g1(e,"child",r);return R1(n,o,t),o}function TB(n,t){const e=n.getBoundingClientRect().width;return t.withPadding?e:e-Jp(n)}function S1(n,t){let e=Number.MAX_SAFE_INTEGER;const r=be(t);for(let o=0;o<r.length;o++){const s=r[o],l=lB(n,s);l&&(e=Math.min(e,l))}return e===Number.MAX_SAFE_INTEGER?void 0:e+Jp(t)}function Jf(n,t){const e=be(t);return e.length!==1?!1:Te(n,e[0])}const h7=_("complex-block-position");class yi{constructor(t,e,r){m(this,"blockId");m(this,"childContainerId");m(this,"custom");t instanceof HTMLElement?this.blockId=dt(t):(p(h7,typeof t=="string",`not a valid block id: ${t}`),this.blockId=t),this.childContainerId=e,r!==void 0&&(this.custom=r)}isSimple(){return!1}}const m7=_("simple-block-position");class gn{constructor(t,e,r){m(this,"blockId");m(this,"offset");m(this,"type");t instanceof HTMLElement?this.blockId=dt(t):(p(m7,typeof t=="string",`not a valid block id: ${t}`),this.blockId=t),this.offset=e,this.type=r}isSimple(){return!0}}const L1=_("editor-position");function mt(n,t,e){return new gn(n,t,e)}function De(n,t,e){return new yi(n,t,e)}function Ti(n){return n instanceof gn}function Ca(n){return n instanceof yi}function I1(n,t,e){if(Ti(t)&&Ti(e)){const r=t,i=e;if(r.blockId===i.blockId)return r.offset-i.offset;const o=n.getBlockById(t.blockId),s=n.getBlockById(e.blockId);return p(L1,o!==s,"comparePosition: blocks are the same"),xm(o,s)}if(Ca(t)&&Ca(e)){const r=t,i=e;if(r.childContainerId===i.childContainerId)return 0;const o=n.getContainerById(r.childContainerId),s=n.getContainerById(i.childContainerId);return p(L1,o!==s,"comparePosition: containers are the same"),xm(o,s)}return p(L1,!1,"invalid "),0}const Um=_("simple-range");class vn{constructor(t,e){m(this,"editor");m(this,"_anchor");m(this,"_focus");m(this,"reverse");this.editor=t,this._anchor=e.anchor,this._focus=e.focus,this.reverse=I1(this.editor,this._anchor,this._focus)>0}isCollapsed(){return this.start.blockId===this.end.blockId&&this.start.offset===this.end.offset}isEqual(t){if(!(t instanceof vn))return!1;const e=t,{start:r,end:i}=e;return this.start.blockId===r.blockId&&this.start.offset===r.offset&&this.start.type===r.type&&this.end.blockId===i.blockId&&this.end.offset===i.offset&&this.end.type===i.type}isSimple(){return!0}isReverse(){return this.reverse}getEditor(){return this.editor}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}get anchor(){return this._anchor}get focus(){return this._focus}getSelectedBlocks(){const{editor:t}=this,e=t.getBlockById(this.start.blockId),r=t.getBlockById(this.end.blockId);p(Um,e,"no start block"),p(Um,r,"no end block");const i=ot(e),o=ot(r);p(Um,i===o,"invalid range");const s=[];if(e===r)s.push({block:e,start:this.start,end:this.end});else{const l=St(e),c=St(r);p(Um,l<c,"invalid range, start > index"),s.push({block:e,start:this.start,end:mt(e,bt(this.editor,e),"end")});const f=be(i);for(let h=l+1;h<c;h+=1){const C=f[h];s.push({block:C,start:mt(C,0,"home"),end:mt(C,bt(this.editor,C),"end")})}s.push({block:r,start:mt(r,0,"home"),end:this.end})}return s}getSelectedContainers(){return[]}getAnchorPos(){return this.isReverse()?this.end:this.start}getFocusedPos(){return this.isReverse()?this.start:this.end}clone(){return new vn(this.editor,this)}toDocRange(){return{anchor:this.anchor,focus:this.focus}}static from(t,e){return new vn(t,e)}}_("unknown-block");function g7(n,t,e,r,i){z(r,"unknown-block");const o=al(r,"div");return o.innerText=`unknown block (${i.type}): ${JSON.stringify(i)}`,o}function p7(n){return 1}function C7(n,t,e,r){return null}function E7(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=dt(t),s=mt(o,0,"home"),l=mt(o,1,"end");return new vn(n,{anchor:s,focus:l})}function b7(n,t){const r=$t(n).getBoundingClientRect();return new DOMRect(r.left+r.width/2,r.top,1,r.height)}function x7(n,t,e,r){z(t,"selected")}function A7(n){n.rootContainer.querySelectorAll("div.unknown-block[data-type=editor-block]").forEach(t=>{lt(t,"selected")})}function v7(n,t,e,r){return`[unknown block, ${t.type}]`}const B7={blockType:"unknown-block",blockKind:"embed",createBlockContent:g7,getBlockTextLength:p7,getRangeFromPoint:E7,moveCaret:C7,getCaretRect:b7,updateSelection:x7,clearSelection:A7,convertTo:v7},D1=_("editor-blocks");class kB{constructor(t){m(this,"blocks",new Map);this.editor=t}registerBlockClass(t){const e=t.blockType,r=this.blocks.get(e);p(D1,!r,`duplicated block type: ${e}`),this.blocks.set(e,t)}getBlockClass(t){const e=this.blocks.get(t);return p(D1,e,`unknown block type: ${t}`),e}hasBlock(t){return this.blocks.has(t)}createBlock(t,e,r){const i=Jv(this.editor,t,r);let o;this.hasBlock(r.type)?o=this.getBlockClass(r.type):o=this.registerUnknownBlock(r.type);const s=o.createBlockContent(this.editor,t,e,i,r);return s.parentElement!==i&&(D1.warn("content parent is not block"),i.appendChild(s)),this.editor.blockHooks.forEach(l=>{var c;(c=l.create)==null||c.call(l,this.editor,t,e,i,r)}),i}forEach(t){this.blocks.forEach(t)}registerUnknownBlock(t){const e={...B7,blockType:t};return this.editor.editorBlocks.registerBlockClass(e),e}}const RB=_("editor-embeds");class wB{constructor(t){m(this,"objects",new Map);this.editor=t}registerEmbedClass(t){const e=t.embedType,r=this.objects.get(e);p(RB,!r,`duplicated embed object type: ${e}`),this.objects.set(e,t)}getEmbedClass(t){const e=this.objects.get(t);return p(RB,e,`unknown embed type: ${t}`),e}getEmbedClassFromBlock(t){return this.getEmbedClass(Ge(t))}forEach(t){this.objects.forEach(t)}}const SB=_("embed-block");function y7(n,t,e,r,i){const o=al(r,"div");p(SB,i.type==="embed",`not an embed data: ${JSON.stringify(i)}`);const s=i;return p(SB,s.embedType&&s.embedData,`not an embed data: ${JSON.stringify(s)}`),n.editorEmbeds.getEmbedClass(s.embedType).createEmbedContent(n,o,s,t,e,r),r.setAttribute("data-embed-type",s.embedType),o}function T7(n){return 1}function k7(n,t,e,r){return null}function R7(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=dt(t),s=mt(o,0,"home"),l=mt(o,1,"end");return new vn(n,{anchor:s,focus:l})}function w7(n,t){const r=$t(n).getBoundingClientRect();return new DOMRect(r.left+r.width/2,r.top,1,r.height)}function S7(n,t,e,r){z(t,"selected")}function L7(n){n.rootContainer.querySelectorAll("div.embed-block[data-type=editor-block][data-block-type=embed]").forEach(t=>{lt(t,"selected")})}function I7(n,t,e){let r=null;return n.editorEmbeds.forEach(i=>{var s,l;const o=(l=(s=i.convertFrom)==null?void 0:s.call(i,n,t,e))!=null?l:null;o&&(r=o)}),r}function D7(n,t,e,r){const i=ga(n,t.embedType);return i.convertTo?i.convertTo(n,t,e,r):""}function _7(n,t){const e=s7(n,t);return e.getBlockProperties?e.getBlockProperties(n,t):{}}function M7(n){const t=new Map,e=[];return n.editorEmbeds.forEach(r=>{if(r.getOptions){const i=r.getOptions(n);i.insertEmbedCommandItems&&i.insertEmbedCommandItems.forEach(o=>{e.push(o),t.set(o.id,r)})}}),{name:"EmbedBlock",insertBlockCommandItems:e,async handleInsertEmptyBlock(r,i){const o=t.get(i.item.id);if(!o||!o.getOptions)return null;const s=o.getOptions(r);return s.handleInsertEmptyEmbed?s.handleInsertEmptyEmbed(r,i):null}}}function O7(n,t,e,r){const i=Ge(t),o=ga(n,i);!o.handleDeleteBlock||o.handleDeleteBlock(n,t,e,r)}function U7(n,t,e){const r=Ge(t),i=ga(n,r);return i.handleUpdateBlock?i.handleUpdateBlock(n,t,e):!1}function N7(n,t,e,r,i){const o=Ge(t),s=ga(n,o);if(s.handleDropOver)return s.handleDropOver(n,t,e,r,i)}function P7(n,t,e,r,i){const o=Ge(t),s=ga(n,o);if(s.handleDrop&&n.isWritable())return s.handleDrop(n,t,e,r,i)}async function F7(n,t,e){const r=t.embedType,i=n.editorEmbeds.getEmbedClass(r);if(i.toStandardDoc){const o=n.getBlockById(t.id),s=Xo(o);return i.toStandardDoc(n,t,e,s)}}function K7(n,t){const e=t.embedType,r=n.editorEmbeds.getEmbedClass(e);return r.getResources?r.getResources(n,t):null}const LB={blockType:"embed",blockKind:"embed",createBlockContent:y7,getBlockTextLength:T7,getRangeFromPoint:R7,moveCaret:k7,getCaretRect:w7,updateSelection:S7,clearSelection:L7,convertFrom:I7,convertTo:D7,getBlockProperties:_7,getOptions:M7,handleDeleteBlock:O7,handleUpdateBlock:U7,handleDropOver:N7,handleDrop:P7,toStandardDoc:F7,getResources:K7},Yn=_("complex-block-helper");function In(n,t,e){return Xr(n,t).getChildContainers(n,t,e)}function jc(n,t,e,r){return e.isSimple()?(p(Yn,r.isSimple(),"invalid start and end position"),In(n,t)):(p(Yn,!e.isSimple(),"invalid start pos"),p(Yn,!r.isSimple(),"invalid end pos"),Xr(n,t).getSelectedContainers(n,t,e,r))}function V7(n,t){if(St(t)!==0)return!1;const e=Q(ot(t));if(!e)return!1;p(Yn,Nt(n,e),"not a complex block");const r=ot(t),o=In(n,e).indexOf(r);return p(Yn,o>=0,"not valid child container"),o===0}function _1(n,t,e){const r=In(n,t,e);if(r.length===0)return null;const i=r[0];if(!i)return null;const o=Pe(i);return Nt(n,o)?_1(n,o,e):o}function zc(n,t,e){const r=In(n,t,e);if(r.length===0)return null;const i=r[r.length-1];if(!i)return null;const o=en(i);return Nt(n,o)?zc(n,o,e):o}function IB(n,t){const e=o=>{const s=In(n,o,{visibleOnly:!0});return s.length===0?null:s[0]};let r=t,i=Pe(r);for(;Nt(n,i);){if(r=e(i),!r)return null;i=Pe(r)}return i}function DB(n,t,e){p(Yn,xi(t),"not a child container");const r=Q(t);p(Yn,r,"no parent block"),p(Yn,Nt(n,r),"not a complex block");const i=In(n,r,e),o=i.indexOf(t);if(p(Yn,o!==-1,"child container not found"),o===0){const c=He(r);return c?Nt(n,c)?zc(n,c):c:null}const s=i[o-1],l=en(s);return Nt(n,l)?zc(n,l):l}function _B(n,t){p(Yn,Nt(n,t),"not a complex block");const e=In(n,t);if(p(Yn,e.length>0,"no child container"),e.length===1)return e;const r=e[0],i=r.getBoundingClientRect();let o=i.left,s=i.right;const l=[r];for(let c=1;c<e.length;c++){const f=e[c],h=f.getBoundingClientRect();if(h.right<=o){l.push(f),o=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function MB(n,t){p(Yn,Nt(n,t),"not a complex block");const e=In(n,t);if(p(Yn,e.length>0,"no child container"),e.length===1)return e;const r=e[e.length-1],i=r.getBoundingClientRect();let o=i.left,s=i.right;const l=[r];for(let c=e.length-2;c>=0;c--){const f=e[c],h=f.getBoundingClientRect();if(h.right<=o){l.push(f),o=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function $7(n,t,e,r){const i=t.getBoundingClientRect(),o=r<i.top,s=o?_B(n,t):MB(n,t);let l=s[0],c=il(l.getBoundingClientRect(),e,r);for(let f=1;f<s.length;f++){const h=s[f],C=h.getBoundingClientRect(),E=il(C,e,r);E<c&&(l=h,c=E)}return o?Pe(l):en(l)}function Nm(n,t,e,r){const i=dt(t);p(Yn,i===e.blockId,"invalid start pos"),p(Yn,i===r.blockId,"invalid end pos");const o=Xr(n,t);return o.adjustSelectionPos?o.adjustSelectionPos(n,t,e,r):{anchor:e,focus:r}}class ki{constructor(t,e){m(this,"editor");m(this,"reverse");m(this,"_anchor");m(this,"_focus");this.editor=t,this._anchor=e.anchor,this._focus=e.focus,this.reverse=I1(this.editor,this._anchor,this._focus)>0}isCollapsed(){return!1}isEqual(t){if(!(t instanceof ki))return!1;const e=t,{anchor:r,focus:i}=e;return this._anchor.blockId===r.blockId&&this._anchor.childContainerId===r.childContainerId&&this._focus.blockId===i.blockId&&this._focus.childContainerId===i.childContainerId&&this._anchor.custom===r.custom&&this._focus.custom===i.custom}isReverse(){return this.reverse}isSimple(){return!1}getEditor(){return this.editor}get anchor(){return this._anchor}get focus(){return this._focus}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}getSelectedBlocks(){const t=this.start,e=this.end;return[{block:this.editor.getBlockById(t.blockId),start:t,end:e}]}getAnchorPos(){return this._anchor}getFocusedPos(){return this._focus}getSelectedContainers(){const t=this.editor.getBlockById(this._anchor.blockId);return jc(this.editor,t,this.start,this.end)}clone(){return new ki(this.editor,this)}toDocRange(){return{anchor:this._anchor,focus:this._focus}}}const H7=_("selection-range");function pn(n,t){const{anchor:e,focus:r}=t;return e instanceof gn&&r instanceof gn?new vn(n,{anchor:e,focus:r}):(p(H7,e instanceof yi&&r instanceof yi,"start position type does not math end type"),new ki(n,{anchor:e,focus:r}))}function Ae(n,t,e,r){const i=new gn(t,e,"normal"),o=new gn(t,r!=null?r:e,"normal");return pn(n,{anchor:i,focus:o})}function j7(n){return!!n.anchor.childContainerId}function ul(n,t){var i,o;if(j7(t)){const s=De(t.anchor.blockId,t.anchor.childContainerId,(i=t.anchor)==null?void 0:i.custom),l=De(t.focus.blockId,t.focus.childContainerId,(o=t.focus)==null?void 0:o.custom);return pn(n,{anchor:s,focus:l})}const e=mt(t.anchor.blockId,t.anchor.offset,"normal"),r=mt(t.focus.blockId,t.focus.offset,"normal");return pn(n,{anchor:e,focus:r})}const M1=_("range-from-point");function Pm(n,t,e){const r=[0,-12,12];let i=t;const o=e;let s=Ne(i,o),l=Q(s);if(!l&&s&&n.contentElement.contains(s)){const c=n.rootContainer.getBoundingClientRect(),f=c.left+c.width/2;s=Ne(f,o),l=Q(s);let h=c;l&&(h=l.getBoundingClientRect()),t<h.left?i=h.left:t>h.right&&(i=h.right-5)}for(let c=0;c<r.length;c++){const f=Ne(i,o+r[c]);if(!f)continue;const h=f.getBoundingClientRect();if(f.clientWidth&&f.clientHeight&&c===0&&(h.left+f.clientWidth<i||h.top+f.clientHeight<o))return M1.debug("click on scrollbar, out of element rect"),null;if(c===0&&!n.rootContainer.contains(f)&&(i=n.rootContainer.getBoundingClientRect().left),!n.rootContainer.contains(f))continue;const C=Q(f);if(!C||!n.contains(C))continue;const E=jt(n,C).getRangeFromPoint(n,C,i,o+r[c]);if(E)return E}return null}function OB(n,t,e,r){const i=t.getBoundingClientRect();if(r<=i.top){const c=Pe(t),f=jt(n,c).getRangeFromPoint(n,c,e,c.getBoundingClientRect().top+4);if(f!=null&&f.isSimple())return vn.from(n,f);const h=mt(c,0,"home");return new vn(n,{anchor:h,focus:h})}let o=en(t);if(!ll(o)){const c=Yr(o);p(M1,c,"container must have visible block"),o=c}const s=jt(n,o).getRangeFromPoint(n,o,e,o.getBoundingClientRect().bottom-4);if(s!=null&&s.isSimple())return vn.from(n,s);if(Nt(n,o))return null;const l=mt(o,bt(n,o),"end");return new vn(n,{anchor:l,focus:l})}function O1(n,t,e){const r=Pm(n,t,e);if(r){if(r instanceof vn)return r;p(M1,r instanceof ki,`invalid range type: ${typeof r}`);const c=r,f=n.getContainerById(c.start.childContainerId);return OB(n,f,t,e)}const i=Ne(t,e);if(!i)return null;const{children:o}=i,s=Array.from(o).filter(c=>to(c));if(s.length===0)return null;const l=s.reduce((c,f)=>{const h=c.getBoundingClientRect(),C=f.getBoundingClientRect();return il(h,t,e)>il(C,t,e)?f:c});return OB(n,l,t,e)}function U1(n,t,e){const r=[];return be(t).forEach(o=>{r.push(o),Nt(n,o)&&In(n,o,e).forEach(l=>{r.push(...U1(n,l))})}),r}function N1(n,t){let e=U1(n,n.rootContainer,t);return t!=null&&t.simpleBlockOnly&&(e=e.filter(r=>!Nt(n,r))),e}function no(n,t){const e=n.selection.range.getSelectedBlocks(),r=[];for(const i of e)r.push(i),Nt(n,i.block)&&jc(n,i.block,i.start,i.end).forEach(s=>{const c=U1(n,s).map(f=>({block:f,start:mt(f,0,"home"),end:mt(f,bt(n,f),"home")}));r.push(...c)});return t!=null&&t.simpleBlockOnly?r.filter(i=>!Nt(n,i.block)):r}const act="",Bn=_("text-range");function z7(n,t){const e=(o,s)=>{if(Jo(o))return p(Bn,s===0,`invalid offset for insertion child: ${s}`),{child:o,container:o,offset:2};if(Rr(o))return p(Bn,s===0||s===1,`invalid offset for box: ${s}`),{child:o,container:o,offset:s===0?1:2};const l=o.firstChild;return p(Bn,l,"no child node for text child"),p(Bn,l instanceof Text||l instanceof HTMLBRElement,`invalid child for text child, ${l.nodeName}`),l instanceof HTMLBRElement?(p(Bn,s>=0&&s<=0,"invalid offset for text child"),{child:o,container:l,offset:s}):(p(Bn,s>=0&&s<=l.data.length,"invalid offset for text child"),{child:o,container:l,offset:s})};let r=0;const i=eo(n);for(let o=0;o<i.length;o++){const s=i[o],l=Zr(s);if(t===r)return[e(s,0)];if(t<r+l)return[e(s,t-r)];if(t===r+l){const c=[];c.push(e(s,Zr(s)));const f=i[o+1];return f&&c.push(e(f,0)),c}r+=l}p(Bn,!1,"failed to get range info")}function W7(n,t,e){if(t===e?p(Bn,Jo(n),"only insertion child can be zero offset"):p(Bn,t<e,`invalid start & end: ${t}, ${e}`),Jo(n)){p(Bn,t===e,`invalid insertion child range offset: ${t}, ${e}`),p(Bn,t===0,`invalid insertion child range start: ${t}`);const o=n;return p(Bn,o.children.length===3,`invalid insertion dom, children.length = ${o.children.length}`),Em(o,1,o,2)}if(Rr(n)){p(Bn,t+1===e,`invalid box child range offset: ${t}, ${e}`),p(Bn,t===0,`invalid box child range start: ${t}`);const o=n;return p(Bn,o.children.length===3,`invalid box dom, children.length = ${o.children.length}`),Em(o,1,o,2)}const r=Zr(n);p(Bn,e<=r,`invalid child end: ${e}, ${r}`);const i=n.firstChild;return p(Bn,i instanceof Text,"invalid block text child"),p(Bn,i.data.length>=e,`invalid range end: ${e}, ${i.data.length}`),Em(i,t,i,e)}const Ri=_("caret-rect");function G7(n,t){if(Mm(t)){const e=t,r=x1(e);if(e.getAttribute("data-box-type")==="br"){const i=$t(n),o=Number.parseFloat(window.getComputedStyle(i).lineHeight)||r.getBoundingClientRect().height,s=Array.from(r.getClientRects());p(Ri,s.length>0,"no box client rects");const l=i.getBoundingClientRect(),c=s[0],f=new DOMRect(l.left,c.bottom,1,o);return s.push(f),s}return r.getClientRects()}return A1(t).getClientRects()}function wr(n,t){var l,c,f;const e=z7(n,t.offset);if(e[1]&&e[0].child!==((l=e[1])==null?void 0:l.child)){if(t.type==="end"){const C=aa(e[0].child);return new DOMRect(C.right,C.top,1,C.height)}p(Ri,e[1],"invalid ranges");const h=bm(e[1].child);return new DOMRect(h.left,h.top,1,h.height)}let i=e[0];if(p(Ri,e.length>=1,"failed to get block range"),e.length===1)i=e[0];else{if(p(Ri,e.length>=2,`invalid range info length: ${e.length}`),Jo(e[e.length-1].child)){i=e[e.length-1];const h=i.child,E=A1(h).getClientRects();p(Ri,E.length>=1,"no client rects for box content");const b=E[E.length-1];return new DOMRect(b.right,b.y,1,b.height)}t.type==="home"?i=e[1]:t.type==="end"||Xf(e[0].child)?i=e[0]:Xf(e[1].child)&&(i=e[1])}if(i.container instanceof HTMLBRElement){p(Ri,t.offset===0,"invalid offset for empty block text");const h=i.container.parentElement;p(Ri,h,"invalid br parent");const C=h.getBoundingClientRect();return new DOMRect(C.left,C.top,1,C.height)}const o=ov(i.container,i.offset),s=Array.from(o.getClientRects());if(s.length===0){p(Ri,!Xf(i.child),"only box or insertion child range has zero client rect"),p(Ri,i.offset===1||i.offset===2,"invalid offset for box or insertion child");const h=i.child,C=G7(n,h);if(p(Ri,C.length>=1,"no client rects for box content"),i.offset===1){const b=C[0];return new DOMRect(b.x,b.y,1,b.height)}const E=C[C.length-1];if(t.type==="end"||i.offset===2){if(Mm(h)&&h.getAttribute("data-box-type")==="br"){const b=h.lastChild.getBoundingClientRect();return new DOMRect(E.right,b.top,1,b.height)}return new DOMRect(E.right,E.y,1,E.height)}return new DOMRect(E.x,E.y,1,E.height)}if(Lf()||la()){const h=document.createRange();h.selectNodeContents(i.container);const C=h.getClientRects();if(i.container.nodeType===Node.TEXT_NODE&&i.offset<((f=(c=i.container.textContent)==null?void 0:c.length)!=null?f:0)){const E=document.createRange();E.setStart(i.container,i.offset+1);const b=E.getClientRects();Array.from(C).forEach((v,k)=>{if(Math.floor(b[0].top)!==Math.floor(s[0].top)&&Math.floor(b[0].top)===Math.floor(v.top)){const{x:w,y:O,height:M}=C[k];s.length===1&&t.type==="home"&&s.push(new DOMRect(w,O,0,M))}})}if(i.container.nodeType===Node.TEXT_NODE&&i.offset>0){const E=document.createRange();E.setStart(i.container,i.offset-1);const b=E.getClientRects();Array.from(C).forEach((v,k)=>{if(Math.floor(b[0].top)!==Math.floor(s[0].top)&&Math.floor(b[0].top)===Math.floor(v.top)){const{y:w,height:O,right:M}=C[k];s.length===1&&t.type==="end"&&s.unshift(new DOMRect(M,w,0,O))}})}}return p(Ri,s.length>0,"no client rects for range"),t.type==="home"?s[s.length-1]:s[0]}const q7=_("core");function Qo(n,t,e,r){const i=xe(t);let o=i.querySelector(`.block-anchor[data-id=${e}]`);o||(o=B("div",["block-anchor"],i),o.setAttribute("data-id",e));const s=r!=null?r:t.getBoundingClientRect(),l=t.getBoundingClientRect(),c=new DOMRect(s.left-l.left,s.top-l.top,s.width,s.height);return o.style.left=`${c.left}px`,o.style.top=`${c.top}px`,o.style.width=`${c.width}px`,o.style.height=`${c.height}px`,o}function UB(n,t,e,r){p(q7,at(n,t),"not a text kind block");const i=wr(t,mt(t,e,"normal")),o=t.getBoundingClientRect(),s=xe(t);let l=s.querySelector(`.block-anchor[data-id=${r}]`);l||(l=B("div",["block-anchor"],s),l.setAttribute("data-id",r));const c=new DOMRect(i.left-o.left,i.top-o.top,i.width,i.height);return l.style.left=`${c.left}px`,l.style.top=`${c.top}px`,l.style.width=`${c.width}px`,l.style.height=`${c.height}px`,l}function Qf(n){const t=eo(n);let e=0;return t.forEach(r=>{e+=Zr(r)}),e}var X7=typeof global=="object"&&global&&global.Object===Object&&global;const Y7=X7;var J7=typeof self=="object"&&self&&self.Object===Object&&self,Q7=Y7||J7||Function("return this")(),Z7=Q7.Symbol;const Wc=Z7;var NB=Object.prototype,tD=NB.hasOwnProperty,eD=NB.toString,Zf=Wc?Wc.toStringTag:void 0;function nD(n){var t=tD.call(n,Zf),e=n[Zf];try{n[Zf]=void 0;var r=!0}catch{}var i=eD.call(n);return r&&(t?n[Zf]=e:delete n[Zf]),i}var rD=Object.prototype,iD=rD.toString;function oD(n){return iD.call(n)}var sD="[object Null]",lD="[object Undefined]",PB=Wc?Wc.toStringTag:void 0;function aD(n){return n==null?n===void 0?lD:sD:PB&&PB in Object(n)?nD(n):oD(n)}function cD(n){return n!=null&&typeof n=="object"}var uD="[object Symbol]";function fD(n){return typeof n=="symbol"||cD(n)&&aD(n)==uD}function dD(n,t){for(var e=-1,r=n==null?0:n.length,i=Array(r);++e<r;)i[e]=t(n[e],e,n);return i}var hD=Array.isArray;const mD=hD;var gD=1/0,FB=Wc?Wc.prototype:void 0,KB=FB?FB.toString:void 0;function VB(n){if(typeof n=="string")return n;if(mD(n))return dD(n,VB)+"";if(fD(n))return KB?KB.call(n):"";var t=n+"";return t=="0"&&1/n==-gD?"-0":t}function $B(n){return n==null?"":VB(n)}function pD(n,t,e,r){var i=-1,o=n==null?0:n.length;for(r&&o&&(e=n[++i]);++i<o;)e=t(e,n[i],i,n);return e}function CD(n){return function(t){return n==null?void 0:n[t]}}var ED={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},bD=CD(ED);const xD=bD;var AD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vD="\\u0300-\\u036f",BD="\\ufe20-\\ufe2f",yD="\\u20d0-\\u20ff",TD=vD+BD+yD,kD="["+TD+"]",RD=RegExp(kD,"g");function wD(n){return n=$B(n),n&&n.replace(AD,xD).replace(RD,"")}var SD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function LD(n){return n.match(SD)||[]}var ID=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function DD(n){return ID.test(n)}var HB="\\ud800-\\udfff",_D="\\u0300-\\u036f",MD="\\ufe20-\\ufe2f",OD="\\u20d0-\\u20ff",UD=_D+MD+OD,jB="\\u2700-\\u27bf",zB="a-z\\xdf-\\xf6\\xf8-\\xff",ND="\\xac\\xb1\\xd7\\xf7",PD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",FD="\\u2000-\\u206f",KD=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",WB="A-Z\\xc0-\\xd6\\xd8-\\xde",VD="\\ufe0e\\ufe0f",GB=ND+PD+FD+KD,qB="['\u2019]",XB="["+GB+"]",$D="["+UD+"]",YB="\\d+",HD="["+jB+"]",JB="["+zB+"]",QB="[^"+HB+GB+YB+jB+zB+WB+"]",jD="\\ud83c[\\udffb-\\udfff]",zD="(?:"+$D+"|"+jD+")",WD="[^"+HB+"]",ZB="(?:\\ud83c[\\udde6-\\uddff]){2}",t3="[\\ud800-\\udbff][\\udc00-\\udfff]",Gc="["+WB+"]",GD="\\u200d",e3="(?:"+JB+"|"+QB+")",qD="(?:"+Gc+"|"+QB+")",n3="(?:"+qB+"(?:d|ll|m|re|s|t|ve))?",r3="(?:"+qB+"(?:D|LL|M|RE|S|T|VE))?",i3=zD+"?",o3="["+VD+"]?",XD="(?:"+GD+"(?:"+[WD,ZB,t3].join("|")+")"+o3+i3+")*",YD="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",JD="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",QD=o3+i3+XD,ZD="(?:"+[HD,ZB,t3].join("|")+")"+QD,t8=RegExp([Gc+"?"+JB+"+"+n3+"(?="+[XB,Gc,"$"].join("|")+")",qD+"+"+r3+"(?="+[XB,Gc+e3,"$"].join("|")+")",Gc+"?"+e3+"+"+n3,Gc+"+"+r3,JD,YD,YB,ZD].join("|"),"g");function e8(n){return n.match(t8)||[]}function n8(n,t,e){return n=$B(n),t=e?void 0:t,t===void 0?DD(n)?e8(n):LD(n):n.match(t)||[]}var r8="['\u2019]",i8=RegExp(r8,"g");function o8(n){return function(t){return pD(n8(wD(t).replace(i8,"")),n,"")}}var s8=o8(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()});const l8=s8,s3=_("box");function Zo(n){return!n.attributes||!n.attributes.box?!1:(p(s3,typeof n.attributes.box=="string"&&n.attributes.box==="true"||n.attributes.box===!0,`invalid op attribute box property, ${n.attributes.box}`),p(s3,n.attributes.type,`no box type: ${JSON.stringify(n)}`),!0)}const l3=_("text-op");function Fm(n){return p(l3,typeof n.insert=="string","invalid op, no insert"),n.insert.length}function a3(n,t){const e=n;let r=0;for(let i=0;i<e.length;i++){const o=e[i];p(l3,typeof o.insert=="string","invalid text op, no insert");const s=r+Fm(o);if(s>t)return[o];if(s===t){const l=[o];return i<e.length-1&&l.push(e[i+1]),l}r=s}return[]}const c3=_("rich-text-length");function P1(n){return p(c3,typeof n.insert=="string","op.insert is not string"),n.insert.length}function $n(n){let t=0;return n.forEach(e=>{e.insert&&(p(c3,typeof e.insert=="string","op.insert is not string"),t+=P1(e))}),t}const ro=_("split-text");function sr(n,t,e){if(n=At.default(n),t===0)return{left:[],right:n};if(t===-1)return{left:n,right:[]};let r=0;for(let i=0;i<n.length;i++){const o=n[i];p(ro,typeof o=="object",`invalid op type, ${typeof o}`),p(ro,typeof o.insert=="string",`invalid op.insert type, ${typeof o.insert}`);const s=P1(o);if(r+s<t)r+=s;else{if(r+s===t)return{left:n.slice(0,i+1),right:n.slice(i+1)};{p(ro,r+s>t,`invalid offset, ${r}, ${s}, ${t}`);const l=t-r,c=At.default(o);p(ro,c.insert,"no copied.insert"),p(ro,typeof c.insert=="string","invalid copied.insert type"),c.insert=c.insert.substr(0,l),o.insert=o.insert.substr(l),c.insert===""&&p(ro,!1,"invalid copied.insert, is empty string"),o.insert===""&&p(ro,!1,"invalid op.insert, is empty string");const f=[o,...n.slice(i+1)],h=[...n.splice(0,i),c];return e&&(e.sourceOp=o),{left:h,right:f}}}}throw new Error(`invalid split offset: ${t}, ${JSON.stringify(n)}`)}function Cn(n,t,e){p(ro,t>=0,"invalid offset, < 0"),p(ro,e>0,"invalid length, <= 0"),p(ro,t+e<=$n(n),"invalid offset + length < text length");const{left:r,right:i}=sr(n,t+e),{left:o,right:s}=sr(r,t);return{left:o,middle:s,right:i}}function u3(n,t){const e=Array.from(new Set(t)).sort((o,s)=>o-s),r=[];let i=n;for(let o=e.length-1;o>=0;o--){const s=e[o],{left:l,right:c}=sr(i,s);i=l,r.unshift(c)}return i.length>0&&r.unshift(i),r}function f3(n,t,e){return Cn(n,t,e).middle}const F1="style-color-",K1="style-bg-color-";function Km(n,t,e){const r=At.default(n);return r.forEach(i=>{if(!(i.attributes&&i.attributes.box===!0&&!t.startsWith("comment-")))if(e===void 0){if(!i.attributes||i.attributes[t]===void 0)return;delete i.attributes[t],Object.keys(i.attributes).length===0&&delete i.attributes}else i.attributes||(i.attributes={}),i.attributes[t]=e}),r}function V1(n,t,e,r){const i=At.default(n);return i.forEach(o=>{o.attributes&&o.attributes.box===!0&&!(r!=null&&r.handleBox)||o.attributes&&((r==null?void 0:r.ignoreValue)||o.attributes[t]===e)&&(delete o.attributes[t],Object.keys(o.attributes).length===0&&delete o.attributes)}),i}function td(n,t,e,r,i){if(t===0)return e;const o=Cn(e,n,t);return[...o.left,...Km(o.middle,r,i),...o.right]}function qc(n,t,e,r,i,o){if(t===0)return e;const s=Cn(e,n,t);return[...s.left,...V1(s.middle,r,i,o),...s.right]}function Xc(n,t){const e=a3(n,t);if(e.length===1)return e[0].attributes;if(e.length===2)return e[1].attributes}function d3(n,t,e,r){if(t===0)return e;const i=Cn(e,n,t),o=i.middle.map(s=>r(s));return[...i.left,...o,...i.right]}function h3(n,t){t==="color"?Object.keys(n).forEach(e=>{(e.startsWith("style-color-")||e==="inline-style-color")&&delete n[e]}):t==="backgroundColor"&&Object.keys(n).forEach(e=>{e.startsWith("style-bg-color-")&&delete n[e]})}function a8(n,t){if(!n.attributes||n.attributes.box)return;const e=n.attributes;h3(e,t),Object.keys(e).length===0&&delete n.attributes}function c8(n,t,e){n.attributes||(n.attributes={}),!n.attributes.box&&(t==="color"?n.attributes[`style-color-${e}`]=!0:n.attributes[`style-bg-color-${e}`]=!0)}function m3(n,t,e,r,i){const o=At.default(e);return d3(n,t,o,l=>(a8(l,r),i!==null&&c8(l,r,i),l))}function $1(n){var i,o;if(!n||n.box)return[null,null];const t=Array.from(Object.keys(n));let e=null,r=null;for(let s=0;s<t.length;s++){const l=t[s];l.startsWith(F1)?e=(i=Number.parseInt(l.substring(F1.length),10))!=null?i:null:l.startsWith(K1)&&(r=(o=Number.parseInt(l.substring(K1.length),10))!=null?o:null)}return[e,r]}function g3(n,t,e){h3(n,t),t==="color"?n[`style-color-${e}`]=!0:n[`style-bg-color-${e}`]=!0}function p3(n){return n.attributes?n.attributes.box?[null,null]:$1(n.attributes):[null,null]}function C3(n,t,e){let r=[];if(t===0?n!==0&&(r=Cn(e,n-1,1).middle):r=Cn(e,n,t).middle,r.length===0)return[null,null];let[i,o]=p3(r[0]);if(i===null&&o===null)return[i,o];for(let s=1;s<r.length;s++){const l=r[s];if(!l.attributes)return[null,null];if(l.attributes.box)continue;const[c,f]=p3(l);c===null||i===null?i=null:i=c===i?i:null,f===null||o===null?o=null:o=f===o?o:null}return[i,o]}const Yc=_("text-block-content");function u8(n,t,e,r,i){if(p(Yc,r,"no text for block"),r.length===0&&(!i||i.size===0)){e.innerHTML="<span><br></span>";return}const o=[];i&&o.push(...i.keys());const s=C=>n.editorInsertions.createInsertion(e,C),l=(C,E)=>{const b=i==null?void 0:i.get(E);b&&(b.forEach(v=>{C.appendChild(s(v))}),i==null||i.delete(E))},c=document.createDocumentFragment();let f=0;const h=u3(r,o);for(let C=0;C<h.length;C++){l(c,f);const E=h[C];f+=$n(E);for(let b=0;b<E.length;b++){const v=E[b];if(Zo(v)){p(Yc,v.attributes,`op is not an valid box: ${JSON.stringify(v)}`);const w=n.editorBoxes.createBox(e,v.attributes);p(Yc,w instanceof HTMLSpanElement,`invalid box element: ${w.tagName}`);const O=n.editorBlockRenders.renderBox(t,v.attributes);O.classes&&z(w,...O.classes),O.attributes&&Object.entries(O.attributes).forEach(([M,F])=>{w.setAttribute(M,F)}),O.styles&&Object.entries(O.styles).forEach(([M,F])=>{w.style.setProperty(M,F)}),c.appendChild(w);continue}p(Yc,v.insert,`no insert in op: ${JSON.stringify(v)}`);const k=B("span",["text"],c,v.insert);if(v.attributes){const w=n.editorBlockRenders.renderText(t,v.attributes);w.classes&&z(k,...w.classes),w.attributes&&Object.entries(w.attributes).forEach(([O,M])=>{k.setAttribute(O,M)}),w.styles&&Object.entries(w.styles).forEach(([O,M])=>{k.style.setProperty(l8(O),M)})}c.appendChild(k)}}l(c,f),e.innerHTML="",e.appendChild(c)}function Vm(n,t,e,r,i){const{text:o,insertions:s}=n.editorDecorators.decorateText(t,i),l=n.compositingText;if(l){const c=n.selection.range.start;if(p(Yc,c.isSimple(),"not an simple position while compositing"),c.blockId===e){const f=Xc(o,0);s.set(c.offset,[{type:"inputting",id:rt(),text:l,attributes:f}])}}return u8(n,t,r,o,s)}function f8(n){const t=n.rootContainer.querySelectorAll('span[data-type="editor-insertion"].inputting-insertion');t.length&&Yc.debug(`remove ${t.length} temp composition span`),Array.from(t).forEach(e=>e.remove())}const io=_("client-rects");function d8(n){const t=eo(n);let e=0;const r=[];for(let i=0;i<t.length;i++){const o=t[i],s=Zr(o);r.push({child:o,startBlockOffset:e,endBlockOffset:e+s}),e+=s}return r}function h8(n,t,e,r){p(io,e<r,`invalid from & to: ${e}, ${r}`);const i=bt(n,t);p(io,e>=0&&r>=0&&e<=i&&r<=i,`invalid offset: ${e}, ${r}, length: ${i}`);const o=d8(t),s=o.findIndex(b=>b.startBlockOffset<=e&&e<b.endBlockOffset),l=o.findIndex(b=>b.startBlockOffset<r&&r<=b.endBlockOffset);if(p(io,s!==-1,"failed to find start child"),p(io,l!==-1,"failed to find end child"),p(io,s<=l,`invalid start index & end index: ${s}, ${l}`),s===l){const b=o[s];return[{child:b.child,startChildOffset:e-b.startBlockOffset,endChildOffset:r-b.startBlockOffset}]}const c=[],f=o[s],h={child:f.child,startChildOffset:e-f.startBlockOffset,endChildOffset:Zr(f.child)};c.push(h);for(let b=s+1;b<l;b++){const v=o[b],k={child:v.child,startChildOffset:0,endChildOffset:v.endBlockOffset-v.startBlockOffset};c.push(k)}const C=o[l],E={child:C.child,startChildOffset:0,endChildOffset:r-C.startBlockOffset};return c.push(E),c}function m8(n){const t=(r,i)=>r.left<=i.left&&r.top<=i.top&&r.right>=i.right&&r.bottom>=i.bottom&&(r.width!==i.width||r.height!==i.height);n=n.filter(r=>!n.find(o=>t(r,o)));const e=[];return n=n.filter(r=>e.find(i=>i.left===r.left&&i.top===r.top&&i.width===r.width&&i.height===r.height)?!1:(e.push(r),!0)),n}function E3(n,t,e,r){if(bt(n,t)===0){const h=$t(t).getBoundingClientRect();return[new DOMRect(h.left,h.top,4,h.height)]}const i=e.offset,o=r.offset;if(i===o)return[wr(t,e)];const l=h8(n,t,i,o).map(f=>W7(f.child,f.startChildOffset,f.endChildOffset)),c=[];return l.forEach(f=>{const h=m8(Array.from(f.getClientRects()));c.push(...h)}),c}function g8(n,t,e){p(io,e instanceof vn,"invalid range");const r=e.start,i=e.end;return p(io,r.isSimple(),"text block only allow simple position"),p(io,i.isSimple(),"text block only allow simple position"),p(io,r.blockId===i.blockId,"only allow update one text block selection"),p(io,r.blockId===dt(t),"only allow update one text block selection"),E3(n,t,r,i)}const H1=_("selection-background");function p8(n,t,e,r){p(H1,e.isSimple(),"text block only allow simple position"),p(H1,r.isSimple(),"text block only allow simple position"),p(H1,e.blockId===r.blockId,"only allow update one text block selection");const i=e.offset,o=r.offset;if(i===o&&(bt(n,t)!==0||n.selection.range.isCollapsed())){const h=E1(t);Array.from(h.children).forEach(C=>{C.remove()});return}const s=E3(n,t,e,r),l=t.getBoundingClientRect(),c=Gr(t),f=E1(t);Array.from(f.children).forEach((h,C)=>{if(C<s.length){const E=s[C],b=h;b.style.left=`${(E.left-l.left-t.clientLeft)/c}px`,b.style.top=`${(E.top-l.top-t.clientTop)/c}px`,b.style.width=`${E.width/c}px`,b.style.height=`${E.height/c}px`}else h.remove()}),s.slice(f.children.length).forEach(h=>{const C=B("div",["editor-selection-background"],f);C.style.left=`${(h.left-l.left-t.clientLeft)/c}px`,C.style.top=`${(h.top-l.top-t.clientTop)/c}px`,C.style.width=`${h.width/c}px`,C.style.height=`${h.height/c}px`})}function C8(n){const t=n.selection.range.getSelectedBlocks(),e=n.selection.range.isCollapsed();n.rootContainer.querySelectorAll("div[data-type=block-background]").forEach(r=>{const i=Q(r);i&&at(n,i)&&(!t.find(o=>o.block===i)||e)&&r.remove()})}const ed=_("line-breaker");function b3(n){const t=[];let e=null;for(let r=0;r<n.length;r++){let i=n[r];!!e&&i.top===e.top?(i=new DOMRect(e.left,e.top,e.width+i.width,i.height),t.splice(t.length-1,1,i)):t.push(i),e=i}return t}function E8(n){const t=document.createRange();return t.setStart(n,0),t.setEnd(n,n.data.length),b3(t.getClientRects())}function nd(n){const t=l=>{if(!l)return!1;const c=bm(l);return aa(l).top>c.top+c.height/2},e=(l,c)=>{const f=aa(l),h=bm(c);return Math.floor(h.left)<Math.floor(f.right)},r=(l,c)=>{const f=aa(l),h=aa(c);return h.top+h.height/2>f.bottom},i=[];let o=0;const s=eo(n);for(let l=0;l<s.length;l++){const c=s[l];if(Jo(c)){const v=c,k=s[l+1];if(!k)break;const w=s[l-1];if(w&&r(w,v)&&i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nextWrapped",prevWrapped:t(w),nextWrapped:t(v)}}),e(v,k)){i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nowrap",prevWrapped:t(w),nextWrapped:t(v)}});continue}continue}if(Rr(c)){const v=c,k=s[l+1];if(!k)break;const w=s[l-1];if(w&&r(w,v)&&i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nextWrapped",prevWrapped:t(w),nextWrapped:t(v)}}),e(v,k)){o+=1,i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:c,wrap:"nowrap",prevWrapped:t(w),nextWrapped:t(c)}});continue}o+=1;continue}const f=c,h=b3(f.getClientRects());if(p(ed,h.length>0,"invalid text child dom"),h.length===1){const v=s[l+1];if(!v)break;if(e(f,v)){o+=Zr(f),i.push({offset:o,type:"betweenChild",childInfo:{prevChild:f,nextChild:v,wrap:"nowrap",prevWrapped:t(f),nextWrapped:t(v)}});continue}o+=Zr(f);continue}const C=f.firstChild;p(ed,C,"invalid text child, no text node"),p(ed,C instanceof Text,`invalid text child, not a valid text node: ${typeof C}`);const E=Zr(f);p(ed,C.data.length===E,"text node data length not equal child text length");const b=E8(C);for(let v=0;v<b.length-1;v++){const k=b[v],w=Yp(k.right,k.top+k.height-1);w.offset>-1&&w.textNode===C&&i.push({offset:o+w.offset,type:"textBreakWord",childInfo:{prevChild:c,nextChild:c,wrap:"nowrap",prevWrapped:t(c),nextWrapped:t(c)}})}o+=E}return i}function j1(n,t){const e=nd(n);for(let r=0;r<e.length;r++){const{offset:i}=e[r];if(t.offset<i)return{lineIndex:r,lineBreaks:e};if(t.offset===i&&t.type==="end")return{lineIndex:r,lineBreaks:e}}return p(ed,t.offset<=Qf(n),"invalid position, offset > block length"),{lineIndex:e.length,lineBreaks:e}}var yn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x3={},z1={},W1={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.EXTENDED_PICTOGRAPHIC=n.CLUSTER_BREAK=void 0,function(t){t[t.CR=0]="CR",t[t.LF=1]="LF",t[t.CONTROL=2]="CONTROL",t[t.EXTEND=3]="EXTEND",t[t.REGIONAL_INDICATOR=4]="REGIONAL_INDICATOR",t[t.SPACINGMARK=5]="SPACINGMARK",t[t.L=6]="L",t[t.V=7]="V",t[t.T=8]="T",t[t.LV=9]="LV",t[t.LVT=10]="LVT",t[t.OTHER=11]="OTHER",t[t.PREPEND=12]="PREPEND",t[t.E_BASE=13]="E_BASE",t[t.E_MODIFIER=14]="E_MODIFIER",t[t.ZWJ=15]="ZWJ",t[t.GLUE_AFTER_ZWJ=16]="GLUE_AFTER_ZWJ",t[t.E_BASE_GAZ=17]="E_BASE_GAZ"}(n.CLUSTER_BREAK||(n.CLUSTER_BREAK={})),n.EXTENDED_PICTOGRAPHIC=101})(W1);var G1={};Object.defineProperty(G1,"__esModule",{value:!0});const Qt=W1,ts=0,q1=1,b8=2,x8=3,A8=4;class v8{static isSurrogate(t,e){return 55296<=t.charCodeAt(e)&&t.charCodeAt(e)<=56319&&56320<=t.charCodeAt(e+1)&&t.charCodeAt(e+1)<=57343}static codePointAt(t,e){e===void 0&&(e=0);const r=t.charCodeAt(e);if(55296<=r&&r<=56319&&e<t.length-1){const i=r,o=t.charCodeAt(e+1);return 56320<=o&&o<=57343?(i-55296)*1024+(o-56320)+65536:i}if(56320<=r&&r<=57343&&e>=1){const i=t.charCodeAt(e-1),o=r;return 55296<=i&&i<=56319?(i-55296)*1024+(o-56320)+65536:o}return r}static shouldBreak(t,e,r,i,o,s){const l=[t].concat(e).concat([r]),c=[i].concat(o).concat([s]),f=l[l.length-2],h=r,C=s,E=l.lastIndexOf(Qt.CLUSTER_BREAK.REGIONAL_INDICATOR);if(E>0&&l.slice(1,E).every(function(v){return v===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR})&&[Qt.CLUSTER_BREAK.PREPEND,Qt.CLUSTER_BREAK.REGIONAL_INDICATOR].indexOf(f)===-1)return l.filter(function(v){return v===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR}).length%2===1?x8:A8;if(f===Qt.CLUSTER_BREAK.CR&&h===Qt.CLUSTER_BREAK.LF)return ts;if(f===Qt.CLUSTER_BREAK.CONTROL||f===Qt.CLUSTER_BREAK.CR||f===Qt.CLUSTER_BREAK.LF)return q1;if(h===Qt.CLUSTER_BREAK.CONTROL||h===Qt.CLUSTER_BREAK.CR||h===Qt.CLUSTER_BREAK.LF)return q1;if(f===Qt.CLUSTER_BREAK.L&&(h===Qt.CLUSTER_BREAK.L||h===Qt.CLUSTER_BREAK.V||h===Qt.CLUSTER_BREAK.LV||h===Qt.CLUSTER_BREAK.LVT))return ts;if((f===Qt.CLUSTER_BREAK.LV||f===Qt.CLUSTER_BREAK.V)&&(h===Qt.CLUSTER_BREAK.V||h===Qt.CLUSTER_BREAK.T))return ts;if((f===Qt.CLUSTER_BREAK.LVT||f===Qt.CLUSTER_BREAK.T)&&h===Qt.CLUSTER_BREAK.T)return ts;if(h===Qt.CLUSTER_BREAK.EXTEND||h===Qt.CLUSTER_BREAK.ZWJ)return ts;if(h===Qt.CLUSTER_BREAK.SPACINGMARK)return ts;if(f===Qt.CLUSTER_BREAK.PREPEND)return ts;const b=c.slice(0,-1).lastIndexOf(Qt.EXTENDED_PICTOGRAPHIC);return b!==-1&&c[b]===Qt.EXTENDED_PICTOGRAPHIC&&l.slice(b+1,-2).every(function(v){return v===Qt.CLUSTER_BREAK.EXTEND})&&f===Qt.CLUSTER_BREAK.ZWJ&&C===Qt.EXTENDED_PICTOGRAPHIC?ts:e.indexOf(Qt.CLUSTER_BREAK.REGIONAL_INDICATOR)!==-1?b8:f===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR&&h===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR?ts:q1}}G1.default=v8;var X1={};Object.defineProperty(X1,"__esModule",{value:!0});class B8{constructor(t,e){this._index=0,this._str=t,this._nextBreak=e}[Symbol.iterator](){return this}next(){let t;if((t=this._nextBreak(this._str,this._index))<this._str.length){const e=this._str.slice(this._index,t);return this._index=t,{value:e,done:!1}}if(this._index<this._str.length){const e=this._str.slice(this._index);return this._index=this._str.length,{value:e,done:!1}}return{value:void 0,done:!0}}}X1.default=B8;var A3=yn&&yn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(z1,"__esModule",{value:!0});const d=W1,$m=A3(G1),y8=A3(X1);class es{static nextBreak(t,e){if(e===void 0&&(e=0),e<0)return 0;if(e>=t.length-1)return t.length;const r=$m.default.codePointAt(t,e),i=es.getGraphemeBreakProperty(r),o=es.getEmojiProperty(r),s=[],l=[];for(let c=e+1;c<t.length;c++){if($m.default.isSurrogate(t,c-1))continue;const f=$m.default.codePointAt(t,c),h=es.getGraphemeBreakProperty(f),C=es.getEmojiProperty(f);if($m.default.shouldBreak(i,s,h,o,l,C))return c;s.push(h),l.push(C)}return t.length}splitGraphemes(t){const e=[];let r=0,i;for(;(i=es.nextBreak(t,r))<t.length;)e.push(t.slice(r,i)),r=i;return r<t.length&&e.push(t.slice(r)),e}iterateGraphemes(t){return new y8.default(t,es.nextBreak)}countGraphemes(t){let e=0,r=0,i;for(;(i=es.nextBreak(t,r))<t.length;)r=i,e++;return r<t.length&&e++,e}static getGraphemeBreakProperty(t){if(t<48905){if(t<44116){if(t<4141){if(t<2818){if(t<2363)if(t<1759){if(t<1471){if(t<127){if(t<11){if(t<10){if(0<=t&&t<=9)return d.CLUSTER_BREAK.CONTROL}else if(t===10)return d.CLUSTER_BREAK.LF}else if(t<13){if(11<=t&&t<=12)return d.CLUSTER_BREAK.CONTROL}else if(t<14){if(t===13)return d.CLUSTER_BREAK.CR}else if(14<=t&&t<=31)return d.CLUSTER_BREAK.CONTROL}else if(t<768){if(t<173){if(127<=t&&t<=159)return d.CLUSTER_BREAK.CONTROL}else if(t===173)return d.CLUSTER_BREAK.CONTROL}else if(t<1155){if(768<=t&&t<=879)return d.CLUSTER_BREAK.EXTEND}else if(t<1425){if(1155<=t&&t<=1161)return d.CLUSTER_BREAK.EXTEND}else if(1425<=t&&t<=1469)return d.CLUSTER_BREAK.EXTEND}else if(t<1552){if(t<1476){if(t<1473){if(t===1471)return d.CLUSTER_BREAK.EXTEND}else if(1473<=t&&t<=1474)return d.CLUSTER_BREAK.EXTEND}else if(t<1479){if(1476<=t&&t<=1477)return d.CLUSTER_BREAK.EXTEND}else if(t<1536){if(t===1479)return d.CLUSTER_BREAK.EXTEND}else if(1536<=t&&t<=1541)return d.CLUSTER_BREAK.PREPEND}else if(t<1648){if(t<1564){if(1552<=t&&t<=1562)return d.CLUSTER_BREAK.EXTEND}else if(t<1611){if(t===1564)return d.CLUSTER_BREAK.CONTROL}else if(1611<=t&&t<=1631)return d.CLUSTER_BREAK.EXTEND}else if(t<1750){if(t===1648)return d.CLUSTER_BREAK.EXTEND}else if(t<1757){if(1750<=t&&t<=1756)return d.CLUSTER_BREAK.EXTEND}else if(t===1757)return d.CLUSTER_BREAK.PREPEND}else if(t<2075){if(t<1840)if(t<1770){if(t<1767){if(1759<=t&&t<=1764)return d.CLUSTER_BREAK.EXTEND}else if(1767<=t&&t<=1768)return d.CLUSTER_BREAK.EXTEND}else if(t<1807){if(1770<=t&&t<=1773)return d.CLUSTER_BREAK.EXTEND}else{if(t===1807)return d.CLUSTER_BREAK.PREPEND;if(t===1809)return d.CLUSTER_BREAK.EXTEND}else if(t<2027){if(t<1958){if(1840<=t&&t<=1866)return d.CLUSTER_BREAK.EXTEND}else if(1958<=t&&t<=1968)return d.CLUSTER_BREAK.EXTEND}else if(t<2045){if(2027<=t&&t<=2035)return d.CLUSTER_BREAK.EXTEND}else if(t<2070){if(t===2045)return d.CLUSTER_BREAK.EXTEND}else if(2070<=t&&t<=2073)return d.CLUSTER_BREAK.EXTEND}else if(t<2200){if(t<2089){if(t<2085){if(2075<=t&&t<=2083)return d.CLUSTER_BREAK.EXTEND}else if(2085<=t&&t<=2087)return d.CLUSTER_BREAK.EXTEND}else if(t<2137){if(2089<=t&&t<=2093)return d.CLUSTER_BREAK.EXTEND}else if(t<2192){if(2137<=t&&t<=2139)return d.CLUSTER_BREAK.EXTEND}else if(2192<=t&&t<=2193)return d.CLUSTER_BREAK.PREPEND}else if(t<2275){if(t<2250){if(2200<=t&&t<=2207)return d.CLUSTER_BREAK.EXTEND}else if(t<2274){if(2250<=t&&t<=2273)return d.CLUSTER_BREAK.EXTEND}else if(t===2274)return d.CLUSTER_BREAK.PREPEND}else if(t<2307){if(2275<=t&&t<=2306)return d.CLUSTER_BREAK.EXTEND}else{if(t===2307)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2362)return d.CLUSTER_BREAK.EXTEND}else if(t<2561){if(t<2434){if(t<2381){if(t<2366){if(t===2363)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2364)return d.CLUSTER_BREAK.EXTEND}else if(t<2369){if(2366<=t&&t<=2368)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2377){if(2369<=t&&t<=2376)return d.CLUSTER_BREAK.EXTEND}else if(2377<=t&&t<=2380)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2385){if(t<2382){if(t===2381)return d.CLUSTER_BREAK.EXTEND}else if(2382<=t&&t<=2383)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2402){if(2385<=t&&t<=2391)return d.CLUSTER_BREAK.EXTEND}else if(t<2433){if(2402<=t&&t<=2403)return d.CLUSTER_BREAK.EXTEND}else if(t===2433)return d.CLUSTER_BREAK.EXTEND}else if(t<2503){if(t<2494){if(t<2492){if(2434<=t&&t<=2435)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2492)return d.CLUSTER_BREAK.EXTEND}else if(t<2495){if(t===2494)return d.CLUSTER_BREAK.EXTEND}else if(t<2497){if(2495<=t&&t<=2496)return d.CLUSTER_BREAK.SPACINGMARK}else if(2497<=t&&t<=2500)return d.CLUSTER_BREAK.EXTEND}else if(t<2519){if(t<2507){if(2503<=t&&t<=2504)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2509){if(2507<=t&&t<=2508)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2509)return d.CLUSTER_BREAK.EXTEND}else if(t<2530){if(t===2519)return d.CLUSTER_BREAK.EXTEND}else if(t<2558){if(2530<=t&&t<=2531)return d.CLUSTER_BREAK.EXTEND}else if(t===2558)return d.CLUSTER_BREAK.EXTEND}else if(t<2691){if(t<2631){if(t<2620){if(t<2563){if(2561<=t&&t<=2562)return d.CLUSTER_BREAK.EXTEND}else if(t===2563)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2622){if(t===2620)return d.CLUSTER_BREAK.EXTEND}else if(t<2625){if(2622<=t&&t<=2624)return d.CLUSTER_BREAK.SPACINGMARK}else if(2625<=t&&t<=2626)return d.CLUSTER_BREAK.EXTEND}else if(t<2672){if(t<2635){if(2631<=t&&t<=2632)return d.CLUSTER_BREAK.EXTEND}else if(t<2641){if(2635<=t&&t<=2637)return d.CLUSTER_BREAK.EXTEND}else if(t===2641)return d.CLUSTER_BREAK.EXTEND}else if(t<2677){if(2672<=t&&t<=2673)return d.CLUSTER_BREAK.EXTEND}else if(t<2689){if(t===2677)return d.CLUSTER_BREAK.EXTEND}else if(2689<=t&&t<=2690)return d.CLUSTER_BREAK.EXTEND}else if(t<2761){if(t<2750){if(t===2691)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2748)return d.CLUSTER_BREAK.EXTEND}else if(t<2753){if(2750<=t&&t<=2752)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2759){if(2753<=t&&t<=2757)return d.CLUSTER_BREAK.EXTEND}else if(2759<=t&&t<=2760)return d.CLUSTER_BREAK.EXTEND}else if(t<2786){if(t<2763){if(t===2761)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2765){if(2763<=t&&t<=2764)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2765)return d.CLUSTER_BREAK.EXTEND}else if(t<2810){if(2786<=t&&t<=2787)return d.CLUSTER_BREAK.EXTEND}else if(t<2817){if(2810<=t&&t<=2815)return d.CLUSTER_BREAK.EXTEND}else if(t===2817)return d.CLUSTER_BREAK.EXTEND}else if(t<3315){if(t<3076){if(t<2946){if(t<2887){if(t<2878){if(t<2876){if(2818<=t&&t<=2819)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2876)return d.CLUSTER_BREAK.EXTEND}else if(t<2880){if(2878<=t&&t<=2879)return d.CLUSTER_BREAK.EXTEND}else if(t<2881){if(t===2880)return d.CLUSTER_BREAK.SPACINGMARK}else if(2881<=t&&t<=2884)return d.CLUSTER_BREAK.EXTEND}else if(t<2893){if(t<2891){if(2887<=t&&t<=2888)return d.CLUSTER_BREAK.SPACINGMARK}else if(2891<=t&&t<=2892)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2901){if(t===2893)return d.CLUSTER_BREAK.EXTEND}else if(t<2914){if(2901<=t&&t<=2903)return d.CLUSTER_BREAK.EXTEND}else if(2914<=t&&t<=2915)return d.CLUSTER_BREAK.EXTEND}else if(t<3014){if(t<3007){if(t===2946||t===3006)return d.CLUSTER_BREAK.EXTEND}else if(t<3008){if(t===3007)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3009){if(t===3008)return d.CLUSTER_BREAK.EXTEND}else if(3009<=t&&t<=3010)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3031){if(t<3018){if(3014<=t&&t<=3016)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3021){if(3018<=t&&t<=3020)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3021)return d.CLUSTER_BREAK.EXTEND}else if(t<3072){if(t===3031)return d.CLUSTER_BREAK.EXTEND}else if(t<3073){if(t===3072)return d.CLUSTER_BREAK.EXTEND}else if(3073<=t&&t<=3075)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3262){if(t<3146){if(t<3134){if(t===3076||t===3132)return d.CLUSTER_BREAK.EXTEND}else if(t<3137){if(3134<=t&&t<=3136)return d.CLUSTER_BREAK.EXTEND}else if(t<3142){if(3137<=t&&t<=3140)return d.CLUSTER_BREAK.SPACINGMARK}else if(3142<=t&&t<=3144)return d.CLUSTER_BREAK.EXTEND}else if(t<3201){if(t<3157){if(3146<=t&&t<=3149)return d.CLUSTER_BREAK.EXTEND}else if(t<3170){if(3157<=t&&t<=3158)return d.CLUSTER_BREAK.EXTEND}else if(3170<=t&&t<=3171)return d.CLUSTER_BREAK.EXTEND}else if(t<3202){if(t===3201)return d.CLUSTER_BREAK.EXTEND}else if(t<3260){if(3202<=t&&t<=3203)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3260)return d.CLUSTER_BREAK.EXTEND}else if(t<3270){if(t<3264){if(t===3262)return d.CLUSTER_BREAK.SPACINGMARK;if(t===3263)return d.CLUSTER_BREAK.EXTEND}else if(t<3266){if(3264<=t&&t<=3265)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3267){if(t===3266)return d.CLUSTER_BREAK.EXTEND}else if(3267<=t&&t<=3268)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3276){if(t<3271){if(t===3270)return d.CLUSTER_BREAK.EXTEND}else if(t<3274){if(3271<=t&&t<=3272)return d.CLUSTER_BREAK.SPACINGMARK}else if(3274<=t&&t<=3275)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3285){if(3276<=t&&t<=3277)return d.CLUSTER_BREAK.EXTEND}else if(t<3298){if(3285<=t&&t<=3286)return d.CLUSTER_BREAK.EXTEND}else if(3298<=t&&t<=3299)return d.CLUSTER_BREAK.EXTEND}else if(t<3551){if(t<3406){if(t<3391){if(t<3330){if(t<3328){if(t===3315)return d.CLUSTER_BREAK.SPACINGMARK}else if(3328<=t&&t<=3329)return d.CLUSTER_BREAK.EXTEND}else if(t<3387){if(3330<=t&&t<=3331)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3390){if(3387<=t&&t<=3388)return d.CLUSTER_BREAK.EXTEND}else if(t===3390)return d.CLUSTER_BREAK.EXTEND}else if(t<3398){if(t<3393){if(3391<=t&&t<=3392)return d.CLUSTER_BREAK.SPACINGMARK}else if(3393<=t&&t<=3396)return d.CLUSTER_BREAK.EXTEND}else if(t<3402){if(3398<=t&&t<=3400)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3405){if(3402<=t&&t<=3404)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3405)return d.CLUSTER_BREAK.EXTEND}else if(t<3530){if(t<3426){if(t===3406)return d.CLUSTER_BREAK.PREPEND;if(t===3415)return d.CLUSTER_BREAK.EXTEND}else if(t<3457){if(3426<=t&&t<=3427)return d.CLUSTER_BREAK.EXTEND}else if(t<3458){if(t===3457)return d.CLUSTER_BREAK.EXTEND}else if(3458<=t&&t<=3459)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3538){if(t<3535){if(t===3530)return d.CLUSTER_BREAK.EXTEND}else if(t<3536){if(t===3535)return d.CLUSTER_BREAK.EXTEND}else if(3536<=t&&t<=3537)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3542){if(3538<=t&&t<=3540)return d.CLUSTER_BREAK.EXTEND}else if(t<3544){if(t===3542)return d.CLUSTER_BREAK.EXTEND}else if(3544<=t&&t<=3550)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3893){if(t<3655){if(t<3633){if(t<3570){if(t===3551)return d.CLUSTER_BREAK.EXTEND}else if(3570<=t&&t<=3571)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3635){if(t===3633)return d.CLUSTER_BREAK.EXTEND}else if(t<3636){if(t===3635)return d.CLUSTER_BREAK.SPACINGMARK}else if(3636<=t&&t<=3642)return d.CLUSTER_BREAK.EXTEND}else if(t<3764)if(t<3761){if(3655<=t&&t<=3662)return d.CLUSTER_BREAK.EXTEND}else{if(t===3761)return d.CLUSTER_BREAK.EXTEND;if(t===3763)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3784){if(3764<=t&&t<=3772)return d.CLUSTER_BREAK.EXTEND}else if(t<3864){if(3784<=t&&t<=3790)return d.CLUSTER_BREAK.EXTEND}else if(3864<=t&&t<=3865)return d.CLUSTER_BREAK.EXTEND}else if(t<3967){if(t<3897){if(t===3893||t===3895)return d.CLUSTER_BREAK.EXTEND}else if(t<3902){if(t===3897)return d.CLUSTER_BREAK.EXTEND}else if(t<3953){if(3902<=t&&t<=3903)return d.CLUSTER_BREAK.SPACINGMARK}else if(3953<=t&&t<=3966)return d.CLUSTER_BREAK.EXTEND}else if(t<3981){if(t<3968){if(t===3967)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3974){if(3968<=t&&t<=3972)return d.CLUSTER_BREAK.EXTEND}else if(3974<=t&&t<=3975)return d.CLUSTER_BREAK.EXTEND}else if(t<3993){if(3981<=t&&t<=3991)return d.CLUSTER_BREAK.EXTEND}else if(t<4038){if(3993<=t&&t<=4028)return d.CLUSTER_BREAK.EXTEND}else if(t===4038)return d.CLUSTER_BREAK.EXTEND}else if(t<7204){if(t<6448){if(t<5938){if(t<4226){if(t<4157){if(t<4146){if(t<4145){if(4141<=t&&t<=4144)return d.CLUSTER_BREAK.EXTEND}else if(t===4145)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4153){if(4146<=t&&t<=4151)return d.CLUSTER_BREAK.EXTEND}else if(t<4155){if(4153<=t&&t<=4154)return d.CLUSTER_BREAK.EXTEND}else if(4155<=t&&t<=4156)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4184){if(t<4182){if(4157<=t&&t<=4158)return d.CLUSTER_BREAK.EXTEND}else if(4182<=t&&t<=4183)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4190){if(4184<=t&&t<=4185)return d.CLUSTER_BREAK.EXTEND}else if(t<4209){if(4190<=t&&t<=4192)return d.CLUSTER_BREAK.EXTEND}else if(4209<=t&&t<=4212)return d.CLUSTER_BREAK.EXTEND}else if(t<4352){if(t<4229){if(t===4226)return d.CLUSTER_BREAK.EXTEND;if(t===4228)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4237){if(4229<=t&&t<=4230)return d.CLUSTER_BREAK.EXTEND}else if(t===4237||t===4253)return d.CLUSTER_BREAK.EXTEND}else if(t<4957){if(t<4448){if(4352<=t&&t<=4447)return d.CLUSTER_BREAK.L}else if(t<4520){if(4448<=t&&t<=4519)return d.CLUSTER_BREAK.V}else if(4520<=t&&t<=4607)return d.CLUSTER_BREAK.T}else if(t<5906){if(4957<=t&&t<=4959)return d.CLUSTER_BREAK.EXTEND}else if(t<5909){if(5906<=t&&t<=5908)return d.CLUSTER_BREAK.EXTEND}else if(t===5909)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6089){if(t<6070){if(t<5970){if(t<5940){if(5938<=t&&t<=5939)return d.CLUSTER_BREAK.EXTEND}else if(t===5940)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6002){if(5970<=t&&t<=5971)return d.CLUSTER_BREAK.EXTEND}else if(t<6068){if(6002<=t&&t<=6003)return d.CLUSTER_BREAK.EXTEND}else if(6068<=t&&t<=6069)return d.CLUSTER_BREAK.EXTEND}else if(t<6078){if(t<6071){if(t===6070)return d.CLUSTER_BREAK.SPACINGMARK}else if(6071<=t&&t<=6077)return d.CLUSTER_BREAK.EXTEND}else if(t<6086){if(6078<=t&&t<=6085)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6087){if(t===6086)return d.CLUSTER_BREAK.EXTEND}else if(6087<=t&&t<=6088)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6277)if(t<6155){if(t<6109){if(6089<=t&&t<=6099)return d.CLUSTER_BREAK.EXTEND}else if(t===6109)return d.CLUSTER_BREAK.EXTEND}else if(t<6158){if(6155<=t&&t<=6157)return d.CLUSTER_BREAK.EXTEND}else{if(t===6158)return d.CLUSTER_BREAK.CONTROL;if(t===6159)return d.CLUSTER_BREAK.EXTEND}else if(t<6435){if(t<6313){if(6277<=t&&t<=6278)return d.CLUSTER_BREAK.EXTEND}else if(t<6432){if(t===6313)return d.CLUSTER_BREAK.EXTEND}else if(6432<=t&&t<=6434)return d.CLUSTER_BREAK.EXTEND}else if(t<6439){if(6435<=t&&t<=6438)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6441){if(6439<=t&&t<=6440)return d.CLUSTER_BREAK.EXTEND}else if(6441<=t&&t<=6443)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6971){if(t<6744)if(t<6681){if(t<6451){if(t<6450){if(6448<=t&&t<=6449)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===6450)return d.CLUSTER_BREAK.EXTEND}else if(t<6457){if(6451<=t&&t<=6456)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6679){if(6457<=t&&t<=6459)return d.CLUSTER_BREAK.EXTEND}else if(6679<=t&&t<=6680)return d.CLUSTER_BREAK.EXTEND}else if(t<6741){if(t<6683){if(6681<=t&&t<=6682)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===6683)return d.CLUSTER_BREAK.EXTEND}else if(t<6742){if(t===6741)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===6742)return d.CLUSTER_BREAK.EXTEND;if(t===6743)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6771){if(t<6754){if(t<6752){if(6744<=t&&t<=6750)return d.CLUSTER_BREAK.EXTEND}else if(t===6752)return d.CLUSTER_BREAK.EXTEND}else if(t<6757){if(t===6754)return d.CLUSTER_BREAK.EXTEND}else if(t<6765){if(6757<=t&&t<=6764)return d.CLUSTER_BREAK.EXTEND}else if(6765<=t&&t<=6770)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6912){if(t<6783){if(6771<=t&&t<=6780)return d.CLUSTER_BREAK.EXTEND}else if(t<6832){if(t===6783)return d.CLUSTER_BREAK.EXTEND}else if(6832<=t&&t<=6862)return d.CLUSTER_BREAK.EXTEND}else if(t<6916){if(6912<=t&&t<=6915)return d.CLUSTER_BREAK.EXTEND}else if(t<6964){if(t===6916)return d.CLUSTER_BREAK.SPACINGMARK}else if(6964<=t&&t<=6970)return d.CLUSTER_BREAK.EXTEND}else if(t<7080){if(t<7019){if(t<6973){if(t===6971)return d.CLUSTER_BREAK.SPACINGMARK;if(t===6972)return d.CLUSTER_BREAK.EXTEND}else if(t<6978){if(6973<=t&&t<=6977)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6979){if(t===6978)return d.CLUSTER_BREAK.EXTEND}else if(6979<=t&&t<=6980)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7073){if(t<7040){if(7019<=t&&t<=7027)return d.CLUSTER_BREAK.EXTEND}else if(t<7042){if(7040<=t&&t<=7041)return d.CLUSTER_BREAK.EXTEND}else if(t===7042)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7074){if(t===7073)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7078){if(7074<=t&&t<=7077)return d.CLUSTER_BREAK.EXTEND}else if(7078<=t&&t<=7079)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7144)if(t<7083){if(t<7082){if(7080<=t&&t<=7081)return d.CLUSTER_BREAK.EXTEND}else if(t===7082)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7142){if(7083<=t&&t<=7085)return d.CLUSTER_BREAK.EXTEND}else{if(t===7142)return d.CLUSTER_BREAK.EXTEND;if(t===7143)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7150){if(t<7146){if(7144<=t&&t<=7145)return d.CLUSTER_BREAK.EXTEND}else if(t<7149){if(7146<=t&&t<=7148)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===7149)return d.CLUSTER_BREAK.EXTEND}else if(t<7151){if(t===7150)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7154){if(7151<=t&&t<=7153)return d.CLUSTER_BREAK.EXTEND}else if(7154<=t&&t<=7155)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43346){if(t<11647){if(t<7415){if(t<7380){if(t<7220){if(t<7212){if(7204<=t&&t<=7211)return d.CLUSTER_BREAK.SPACINGMARK}else if(7212<=t&&t<=7219)return d.CLUSTER_BREAK.EXTEND}else if(t<7222){if(7220<=t&&t<=7221)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7376){if(7222<=t&&t<=7223)return d.CLUSTER_BREAK.EXTEND}else if(7376<=t&&t<=7378)return d.CLUSTER_BREAK.EXTEND}else if(t<7394){if(t<7393){if(7380<=t&&t<=7392)return d.CLUSTER_BREAK.EXTEND}else if(t===7393)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7405){if(7394<=t&&t<=7400)return d.CLUSTER_BREAK.EXTEND}else if(t===7405||t===7412)return d.CLUSTER_BREAK.EXTEND}else if(t<8205)if(t<7616){if(t<7416){if(t===7415)return d.CLUSTER_BREAK.SPACINGMARK}else if(7416<=t&&t<=7417)return d.CLUSTER_BREAK.EXTEND}else if(t<8203){if(7616<=t&&t<=7679)return d.CLUSTER_BREAK.EXTEND}else{if(t===8203)return d.CLUSTER_BREAK.CONTROL;if(t===8204)return d.CLUSTER_BREAK.EXTEND}else if(t<8288){if(t<8206){if(t===8205)return d.CLUSTER_BREAK.ZWJ}else if(t<8232){if(8206<=t&&t<=8207)return d.CLUSTER_BREAK.CONTROL}else if(8232<=t&&t<=8238)return d.CLUSTER_BREAK.CONTROL}else if(t<8400){if(8288<=t&&t<=8303)return d.CLUSTER_BREAK.CONTROL}else if(t<11503){if(8400<=t&&t<=8432)return d.CLUSTER_BREAK.EXTEND}else if(11503<=t&&t<=11505)return d.CLUSTER_BREAK.EXTEND}else if(t<43043){if(t<42612){if(t<12330){if(t<11744){if(t===11647)return d.CLUSTER_BREAK.EXTEND}else if(11744<=t&&t<=11775)return d.CLUSTER_BREAK.EXTEND}else if(t<12441){if(12330<=t&&t<=12335)return d.CLUSTER_BREAK.EXTEND}else if(t<42607){if(12441<=t&&t<=12442)return d.CLUSTER_BREAK.EXTEND}else if(42607<=t&&t<=42610)return d.CLUSTER_BREAK.EXTEND}else if(t<43010){if(t<42654){if(42612<=t&&t<=42621)return d.CLUSTER_BREAK.EXTEND}else if(t<42736){if(42654<=t&&t<=42655)return d.CLUSTER_BREAK.EXTEND}else if(42736<=t&&t<=42737)return d.CLUSTER_BREAK.EXTEND}else if(t<43014){if(t===43010)return d.CLUSTER_BREAK.EXTEND}else if(t===43014||t===43019)return d.CLUSTER_BREAK.EXTEND}else if(t<43188){if(t<43047){if(t<43045){if(43043<=t&&t<=43044)return d.CLUSTER_BREAK.SPACINGMARK}else if(43045<=t&&t<=43046)return d.CLUSTER_BREAK.EXTEND}else if(t<43052){if(t===43047)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43136){if(t===43052)return d.CLUSTER_BREAK.EXTEND}else if(43136<=t&&t<=43137)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43263){if(t<43204){if(43188<=t&&t<=43203)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43232){if(43204<=t&&t<=43205)return d.CLUSTER_BREAK.EXTEND}else if(43232<=t&&t<=43249)return d.CLUSTER_BREAK.EXTEND}else if(t<43302){if(t===43263)return d.CLUSTER_BREAK.EXTEND}else if(t<43335){if(43302<=t&&t<=43309)return d.CLUSTER_BREAK.EXTEND}else if(43335<=t&&t<=43345)return d.CLUSTER_BREAK.EXTEND}else if(t<43698){if(t<43493){if(t<43444)if(t<43392){if(t<43360){if(43346<=t&&t<=43347)return d.CLUSTER_BREAK.SPACINGMARK}else if(43360<=t&&t<=43388)return d.CLUSTER_BREAK.L}else if(t<43395){if(43392<=t&&t<=43394)return d.CLUSTER_BREAK.EXTEND}else{if(t===43395)return d.CLUSTER_BREAK.SPACINGMARK;if(t===43443)return d.CLUSTER_BREAK.EXTEND}else if(t<43450){if(t<43446){if(43444<=t&&t<=43445)return d.CLUSTER_BREAK.SPACINGMARK}else if(43446<=t&&t<=43449)return d.CLUSTER_BREAK.EXTEND}else if(t<43452){if(43450<=t&&t<=43451)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43454){if(43452<=t&&t<=43453)return d.CLUSTER_BREAK.EXTEND}else if(43454<=t&&t<=43456)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43573){if(t<43567){if(t<43561){if(t===43493)return d.CLUSTER_BREAK.EXTEND}else if(43561<=t&&t<=43566)return d.CLUSTER_BREAK.EXTEND}else if(t<43569){if(43567<=t&&t<=43568)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43571){if(43569<=t&&t<=43570)return d.CLUSTER_BREAK.EXTEND}else if(43571<=t&&t<=43572)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43597){if(t<43587){if(43573<=t&&t<=43574)return d.CLUSTER_BREAK.EXTEND}else if(t===43587||t===43596)return d.CLUSTER_BREAK.EXTEND}else if(t<43644){if(t===43597)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===43644||t===43696)return d.CLUSTER_BREAK.EXTEND}else if(t<44006){if(t<43756)if(t<43710){if(t<43703){if(43698<=t&&t<=43700)return d.CLUSTER_BREAK.EXTEND}else if(43703<=t&&t<=43704)return d.CLUSTER_BREAK.EXTEND}else if(t<43713){if(43710<=t&&t<=43711)return d.CLUSTER_BREAK.EXTEND}else{if(t===43713)return d.CLUSTER_BREAK.EXTEND;if(t===43755)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43766){if(t<43758){if(43756<=t&&t<=43757)return d.CLUSTER_BREAK.EXTEND}else if(t<43765){if(43758<=t&&t<=43759)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===43765)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<44003){if(t===43766)return d.CLUSTER_BREAK.EXTEND}else if(t<44005){if(44003<=t&&t<=44004)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===44005)return d.CLUSTER_BREAK.EXTEND}else if(t<44032)if(t<44009){if(t<44008){if(44006<=t&&t<=44007)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===44008)return d.CLUSTER_BREAK.EXTEND}else if(t<44012){if(44009<=t&&t<=44010)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===44012)return d.CLUSTER_BREAK.SPACINGMARK;if(t===44013)return d.CLUSTER_BREAK.EXTEND}else if(t<44061){if(t<44033){if(t===44032)return d.CLUSTER_BREAK.LV}else if(t<44060){if(44033<=t&&t<=44059)return d.CLUSTER_BREAK.LVT}else if(t===44060)return d.CLUSTER_BREAK.LV}else if(t<44088){if(44061<=t&&t<=44087)return d.CLUSTER_BREAK.LVT}else if(t<44089){if(t===44088)return d.CLUSTER_BREAK.LV}else if(44089<=t&&t<=44115)return d.CLUSTER_BREAK.LVT}else if(t<46497){if(t<45293){if(t<44704){if(t<44397){if(t<44256){if(t<44173){if(t<44144){if(t<44117){if(t===44116)return d.CLUSTER_BREAK.LV}else if(44117<=t&&t<=44143)return d.CLUSTER_BREAK.LVT}else if(t<44145){if(t===44144)return d.CLUSTER_BREAK.LV}else if(t<44172){if(44145<=t&&t<=44171)return d.CLUSTER_BREAK.LVT}else if(t===44172)return d.CLUSTER_BREAK.LV}else if(t<44201){if(t<44200){if(44173<=t&&t<=44199)return d.CLUSTER_BREAK.LVT}else if(t===44200)return d.CLUSTER_BREAK.LV}else if(t<44228){if(44201<=t&&t<=44227)return d.CLUSTER_BREAK.LVT}else if(t<44229){if(t===44228)return d.CLUSTER_BREAK.LV}else if(44229<=t&&t<=44255)return d.CLUSTER_BREAK.LVT}else if(t<44313){if(t<44284){if(t<44257){if(t===44256)return d.CLUSTER_BREAK.LV}else if(44257<=t&&t<=44283)return d.CLUSTER_BREAK.LVT}else if(t<44285){if(t===44284)return d.CLUSTER_BREAK.LV}else if(t<44312){if(44285<=t&&t<=44311)return d.CLUSTER_BREAK.LVT}else if(t===44312)return d.CLUSTER_BREAK.LV}else if(t<44368){if(t<44340){if(44313<=t&&t<=44339)return d.CLUSTER_BREAK.LVT}else if(t<44341){if(t===44340)return d.CLUSTER_BREAK.LV}else if(44341<=t&&t<=44367)return d.CLUSTER_BREAK.LVT}else if(t<44369){if(t===44368)return d.CLUSTER_BREAK.LV}else if(t<44396){if(44369<=t&&t<=44395)return d.CLUSTER_BREAK.LVT}else if(t===44396)return d.CLUSTER_BREAK.LV}else if(t<44537){if(t<44480){if(t<44425){if(t<44424){if(44397<=t&&t<=44423)return d.CLUSTER_BREAK.LVT}else if(t===44424)return d.CLUSTER_BREAK.LV}else if(t<44452){if(44425<=t&&t<=44451)return d.CLUSTER_BREAK.LVT}else if(t<44453){if(t===44452)return d.CLUSTER_BREAK.LV}else if(44453<=t&&t<=44479)return d.CLUSTER_BREAK.LVT}else if(t<44508){if(t<44481){if(t===44480)return d.CLUSTER_BREAK.LV}else if(44481<=t&&t<=44507)return d.CLUSTER_BREAK.LVT}else if(t<44509){if(t===44508)return d.CLUSTER_BREAK.LV}else if(t<44536){if(44509<=t&&t<=44535)return d.CLUSTER_BREAK.LVT}else if(t===44536)return d.CLUSTER_BREAK.LV}else if(t<44620){if(t<44565){if(t<44564){if(44537<=t&&t<=44563)return d.CLUSTER_BREAK.LVT}else if(t===44564)return d.CLUSTER_BREAK.LV}else if(t<44592){if(44565<=t&&t<=44591)return d.CLUSTER_BREAK.LVT}else if(t<44593){if(t===44592)return d.CLUSTER_BREAK.LV}else if(44593<=t&&t<=44619)return d.CLUSTER_BREAK.LVT}else if(t<44649){if(t<44621){if(t===44620)return d.CLUSTER_BREAK.LV}else if(t<44648){if(44621<=t&&t<=44647)return d.CLUSTER_BREAK.LVT}else if(t===44648)return d.CLUSTER_BREAK.LV}else if(t<44676){if(44649<=t&&t<=44675)return d.CLUSTER_BREAK.LVT}else if(t<44677){if(t===44676)return d.CLUSTER_BREAK.LV}else if(44677<=t&&t<=44703)return d.CLUSTER_BREAK.LVT}else if(t<44985){if(t<44844){if(t<44761){if(t<44732){if(t<44705){if(t===44704)return d.CLUSTER_BREAK.LV}else if(44705<=t&&t<=44731)return d.CLUSTER_BREAK.LVT}else if(t<44733){if(t===44732)return d.CLUSTER_BREAK.LV}else if(t<44760){if(44733<=t&&t<=44759)return d.CLUSTER_BREAK.LVT}else if(t===44760)return d.CLUSTER_BREAK.LV}else if(t<44789){if(t<44788){if(44761<=t&&t<=44787)return d.CLUSTER_BREAK.LVT}else if(t===44788)return d.CLUSTER_BREAK.LV}else if(t<44816){if(44789<=t&&t<=44815)return d.CLUSTER_BREAK.LVT}else if(t<44817){if(t===44816)return d.CLUSTER_BREAK.LV}else if(44817<=t&&t<=44843)return d.CLUSTER_BREAK.LVT}else if(t<44901){if(t<44872){if(t<44845){if(t===44844)return d.CLUSTER_BREAK.LV}else if(44845<=t&&t<=44871)return d.CLUSTER_BREAK.LVT}else if(t<44873){if(t===44872)return d.CLUSTER_BREAK.LV}else if(t<44900){if(44873<=t&&t<=44899)return d.CLUSTER_BREAK.LVT}else if(t===44900)return d.CLUSTER_BREAK.LV}else if(t<44956){if(t<44928){if(44901<=t&&t<=44927)return d.CLUSTER_BREAK.LVT}else if(t<44929){if(t===44928)return d.CLUSTER_BREAK.LV}else if(44929<=t&&t<=44955)return d.CLUSTER_BREAK.LVT}else if(t<44957){if(t===44956)return d.CLUSTER_BREAK.LV}else if(t<44984){if(44957<=t&&t<=44983)return d.CLUSTER_BREAK.LVT}else if(t===44984)return d.CLUSTER_BREAK.LV}else if(t<45152){if(t<45068){if(t<45013){if(t<45012){if(44985<=t&&t<=45011)return d.CLUSTER_BREAK.LVT}else if(t===45012)return d.CLUSTER_BREAK.LV}else if(t<45040){if(45013<=t&&t<=45039)return d.CLUSTER_BREAK.LVT}else if(t<45041){if(t===45040)return d.CLUSTER_BREAK.LV}else if(45041<=t&&t<=45067)return d.CLUSTER_BREAK.LVT}else if(t<45097){if(t<45069){if(t===45068)return d.CLUSTER_BREAK.LV}else if(t<45096){if(45069<=t&&t<=45095)return d.CLUSTER_BREAK.LVT}else if(t===45096)return d.CLUSTER_BREAK.LV}else if(t<45124){if(45097<=t&&t<=45123)return d.CLUSTER_BREAK.LVT}else if(t<45125){if(t===45124)return d.CLUSTER_BREAK.LV}else if(45125<=t&&t<=45151)return d.CLUSTER_BREAK.LVT}else if(t<45209){if(t<45180){if(t<45153){if(t===45152)return d.CLUSTER_BREAK.LV}else if(45153<=t&&t<=45179)return d.CLUSTER_BREAK.LVT}else if(t<45181){if(t===45180)return d.CLUSTER_BREAK.LV}else if(t<45208){if(45181<=t&&t<=45207)return d.CLUSTER_BREAK.LVT}else if(t===45208)return d.CLUSTER_BREAK.LV}else if(t<45264){if(t<45236){if(45209<=t&&t<=45235)return d.CLUSTER_BREAK.LVT}else if(t<45237){if(t===45236)return d.CLUSTER_BREAK.LV}else if(45237<=t&&t<=45263)return d.CLUSTER_BREAK.LVT}else if(t<45265){if(t===45264)return d.CLUSTER_BREAK.LV}else if(t<45292){if(45265<=t&&t<=45291)return d.CLUSTER_BREAK.LVT}else if(t===45292)return d.CLUSTER_BREAK.LV}else if(t<45908){if(t<45600){if(t<45433){if(t<45376){if(t<45321){if(t<45320){if(45293<=t&&t<=45319)return d.CLUSTER_BREAK.LVT}else if(t===45320)return d.CLUSTER_BREAK.LV}else if(t<45348){if(45321<=t&&t<=45347)return d.CLUSTER_BREAK.LVT}else if(t<45349){if(t===45348)return d.CLUSTER_BREAK.LV}else if(45349<=t&&t<=45375)return d.CLUSTER_BREAK.LVT}else if(t<45404){if(t<45377){if(t===45376)return d.CLUSTER_BREAK.LV}else if(45377<=t&&t<=45403)return d.CLUSTER_BREAK.LVT}else if(t<45405){if(t===45404)return d.CLUSTER_BREAK.LV}else if(t<45432){if(45405<=t&&t<=45431)return d.CLUSTER_BREAK.LVT}else if(t===45432)return d.CLUSTER_BREAK.LV}else if(t<45516){if(t<45461){if(t<45460){if(45433<=t&&t<=45459)return d.CLUSTER_BREAK.LVT}else if(t===45460)return d.CLUSTER_BREAK.LV}else if(t<45488){if(45461<=t&&t<=45487)return d.CLUSTER_BREAK.LVT}else if(t<45489){if(t===45488)return d.CLUSTER_BREAK.LV}else if(45489<=t&&t<=45515)return d.CLUSTER_BREAK.LVT}else if(t<45545){if(t<45517){if(t===45516)return d.CLUSTER_BREAK.LV}else if(t<45544){if(45517<=t&&t<=45543)return d.CLUSTER_BREAK.LVT}else if(t===45544)return d.CLUSTER_BREAK.LV}else if(t<45572){if(45545<=t&&t<=45571)return d.CLUSTER_BREAK.LVT}else if(t<45573){if(t===45572)return d.CLUSTER_BREAK.LV}else if(45573<=t&&t<=45599)return d.CLUSTER_BREAK.LVT}else if(t<45741){if(t<45657){if(t<45628){if(t<45601){if(t===45600)return d.CLUSTER_BREAK.LV}else if(45601<=t&&t<=45627)return d.CLUSTER_BREAK.LVT}else if(t<45629){if(t===45628)return d.CLUSTER_BREAK.LV}else if(t<45656){if(45629<=t&&t<=45655)return d.CLUSTER_BREAK.LVT}else if(t===45656)return d.CLUSTER_BREAK.LV}else if(t<45712){if(t<45684){if(45657<=t&&t<=45683)return d.CLUSTER_BREAK.LVT}else if(t<45685){if(t===45684)return d.CLUSTER_BREAK.LV}else if(45685<=t&&t<=45711)return d.CLUSTER_BREAK.LVT}else if(t<45713){if(t===45712)return d.CLUSTER_BREAK.LV}else if(t<45740){if(45713<=t&&t<=45739)return d.CLUSTER_BREAK.LVT}else if(t===45740)return d.CLUSTER_BREAK.LV}else if(t<45824){if(t<45769){if(t<45768){if(45741<=t&&t<=45767)return d.CLUSTER_BREAK.LVT}else if(t===45768)return d.CLUSTER_BREAK.LV}else if(t<45796){if(45769<=t&&t<=45795)return d.CLUSTER_BREAK.LVT}else if(t<45797){if(t===45796)return d.CLUSTER_BREAK.LV}else if(45797<=t&&t<=45823)return d.CLUSTER_BREAK.LVT}else if(t<45853){if(t<45825){if(t===45824)return d.CLUSTER_BREAK.LV}else if(t<45852){if(45825<=t&&t<=45851)return d.CLUSTER_BREAK.LVT}else if(t===45852)return d.CLUSTER_BREAK.LV}else if(t<45880){if(45853<=t&&t<=45879)return d.CLUSTER_BREAK.LVT}else if(t<45881){if(t===45880)return d.CLUSTER_BREAK.LV}else if(45881<=t&&t<=45907)return d.CLUSTER_BREAK.LVT}else if(t<46189){if(t<46048){if(t<45965){if(t<45936){if(t<45909){if(t===45908)return d.CLUSTER_BREAK.LV}else if(45909<=t&&t<=45935)return d.CLUSTER_BREAK.LVT}else if(t<45937){if(t===45936)return d.CLUSTER_BREAK.LV}else if(t<45964){if(45937<=t&&t<=45963)return d.CLUSTER_BREAK.LVT}else if(t===45964)return d.CLUSTER_BREAK.LV}else if(t<45993){if(t<45992){if(45965<=t&&t<=45991)return d.CLUSTER_BREAK.LVT}else if(t===45992)return d.CLUSTER_BREAK.LV}else if(t<46020){if(45993<=t&&t<=46019)return d.CLUSTER_BREAK.LVT}else if(t<46021){if(t===46020)return d.CLUSTER_BREAK.LV}else if(46021<=t&&t<=46047)return d.CLUSTER_BREAK.LVT}else if(t<46105){if(t<46076){if(t<46049){if(t===46048)return d.CLUSTER_BREAK.LV}else if(46049<=t&&t<=46075)return d.CLUSTER_BREAK.LVT}else if(t<46077){if(t===46076)return d.CLUSTER_BREAK.LV}else if(t<46104){if(46077<=t&&t<=46103)return d.CLUSTER_BREAK.LVT}else if(t===46104)return d.CLUSTER_BREAK.LV}else if(t<46160){if(t<46132){if(46105<=t&&t<=46131)return d.CLUSTER_BREAK.LVT}else if(t<46133){if(t===46132)return d.CLUSTER_BREAK.LV}else if(46133<=t&&t<=46159)return d.CLUSTER_BREAK.LVT}else if(t<46161){if(t===46160)return d.CLUSTER_BREAK.LV}else if(t<46188){if(46161<=t&&t<=46187)return d.CLUSTER_BREAK.LVT}else if(t===46188)return d.CLUSTER_BREAK.LV}else if(t<46356){if(t<46272){if(t<46217){if(t<46216){if(46189<=t&&t<=46215)return d.CLUSTER_BREAK.LVT}else if(t===46216)return d.CLUSTER_BREAK.LV}else if(t<46244){if(46217<=t&&t<=46243)return d.CLUSTER_BREAK.LVT}else if(t<46245){if(t===46244)return d.CLUSTER_BREAK.LV}else if(46245<=t&&t<=46271)return d.CLUSTER_BREAK.LVT}else if(t<46301){if(t<46273){if(t===46272)return d.CLUSTER_BREAK.LV}else if(t<46300){if(46273<=t&&t<=46299)return d.CLUSTER_BREAK.LVT}else if(t===46300)return d.CLUSTER_BREAK.LV}else if(t<46328){if(46301<=t&&t<=46327)return d.CLUSTER_BREAK.LVT}else if(t<46329){if(t===46328)return d.CLUSTER_BREAK.LV}else if(46329<=t&&t<=46355)return d.CLUSTER_BREAK.LVT}else if(t<46413){if(t<46384){if(t<46357){if(t===46356)return d.CLUSTER_BREAK.LV}else if(46357<=t&&t<=46383)return d.CLUSTER_BREAK.LVT}else if(t<46385){if(t===46384)return d.CLUSTER_BREAK.LV}else if(t<46412){if(46385<=t&&t<=46411)return d.CLUSTER_BREAK.LVT}else if(t===46412)return d.CLUSTER_BREAK.LV}else if(t<46468){if(t<46440){if(46413<=t&&t<=46439)return d.CLUSTER_BREAK.LVT}else if(t<46441){if(t===46440)return d.CLUSTER_BREAK.LV}else if(46441<=t&&t<=46467)return d.CLUSTER_BREAK.LVT}else if(t<46469){if(t===46468)return d.CLUSTER_BREAK.LV}else if(t<46496){if(46469<=t&&t<=46495)return d.CLUSTER_BREAK.LVT}else if(t===46496)return d.CLUSTER_BREAK.LV}else if(t<47701){if(t<47112){if(t<46804){if(t<46637){if(t<46580){if(t<46525){if(t<46524){if(46497<=t&&t<=46523)return d.CLUSTER_BREAK.LVT}else if(t===46524)return d.CLUSTER_BREAK.LV}else if(t<46552){if(46525<=t&&t<=46551)return d.CLUSTER_BREAK.LVT}else if(t<46553){if(t===46552)return d.CLUSTER_BREAK.LV}else if(46553<=t&&t<=46579)return d.CLUSTER_BREAK.LVT}else if(t<46608){if(t<46581){if(t===46580)return d.CLUSTER_BREAK.LV}else if(46581<=t&&t<=46607)return d.CLUSTER_BREAK.LVT}else if(t<46609){if(t===46608)return d.CLUSTER_BREAK.LV}else if(t<46636){if(46609<=t&&t<=46635)return d.CLUSTER_BREAK.LVT}else if(t===46636)return d.CLUSTER_BREAK.LV}else if(t<46720){if(t<46665){if(t<46664){if(46637<=t&&t<=46663)return d.CLUSTER_BREAK.LVT}else if(t===46664)return d.CLUSTER_BREAK.LV}else if(t<46692){if(46665<=t&&t<=46691)return d.CLUSTER_BREAK.LVT}else if(t<46693){if(t===46692)return d.CLUSTER_BREAK.LV}else if(46693<=t&&t<=46719)return d.CLUSTER_BREAK.LVT}else if(t<46749){if(t<46721){if(t===46720)return d.CLUSTER_BREAK.LV}else if(t<46748){if(46721<=t&&t<=46747)return d.CLUSTER_BREAK.LVT}else if(t===46748)return d.CLUSTER_BREAK.LV}else if(t<46776){if(46749<=t&&t<=46775)return d.CLUSTER_BREAK.LVT}else if(t<46777){if(t===46776)return d.CLUSTER_BREAK.LV}else if(46777<=t&&t<=46803)return d.CLUSTER_BREAK.LVT}else if(t<46945){if(t<46861){if(t<46832){if(t<46805){if(t===46804)return d.CLUSTER_BREAK.LV}else if(46805<=t&&t<=46831)return d.CLUSTER_BREAK.LVT}else if(t<46833){if(t===46832)return d.CLUSTER_BREAK.LV}else if(t<46860){if(46833<=t&&t<=46859)return d.CLUSTER_BREAK.LVT}else if(t===46860)return d.CLUSTER_BREAK.LV}else if(t<46916){if(t<46888){if(46861<=t&&t<=46887)return d.CLUSTER_BREAK.LVT}else if(t<46889){if(t===46888)return d.CLUSTER_BREAK.LV}else if(46889<=t&&t<=46915)return d.CLUSTER_BREAK.LVT}else if(t<46917){if(t===46916)return d.CLUSTER_BREAK.LV}else if(t<46944){if(46917<=t&&t<=46943)return d.CLUSTER_BREAK.LVT}else if(t===46944)return d.CLUSTER_BREAK.LV}else if(t<47028){if(t<46973){if(t<46972){if(46945<=t&&t<=46971)return d.CLUSTER_BREAK.LVT}else if(t===46972)return d.CLUSTER_BREAK.LV}else if(t<47e3){if(46973<=t&&t<=46999)return d.CLUSTER_BREAK.LVT}else if(t<47001){if(t===47e3)return d.CLUSTER_BREAK.LV}else if(47001<=t&&t<=47027)return d.CLUSTER_BREAK.LVT}else if(t<47057){if(t<47029){if(t===47028)return d.CLUSTER_BREAK.LV}else if(t<47056){if(47029<=t&&t<=47055)return d.CLUSTER_BREAK.LVT}else if(t===47056)return d.CLUSTER_BREAK.LV}else if(t<47084){if(47057<=t&&t<=47083)return d.CLUSTER_BREAK.LVT}else if(t<47085){if(t===47084)return d.CLUSTER_BREAK.LV}else if(47085<=t&&t<=47111)return d.CLUSTER_BREAK.LVT}else if(t<47393){if(t<47252){if(t<47169){if(t<47140){if(t<47113){if(t===47112)return d.CLUSTER_BREAK.LV}else if(47113<=t&&t<=47139)return d.CLUSTER_BREAK.LVT}else if(t<47141){if(t===47140)return d.CLUSTER_BREAK.LV}else if(t<47168){if(47141<=t&&t<=47167)return d.CLUSTER_BREAK.LVT}else if(t===47168)return d.CLUSTER_BREAK.LV}else if(t<47197){if(t<47196){if(47169<=t&&t<=47195)return d.CLUSTER_BREAK.LVT}else if(t===47196)return d.CLUSTER_BREAK.LV}else if(t<47224){if(47197<=t&&t<=47223)return d.CLUSTER_BREAK.LVT}else if(t<47225){if(t===47224)return d.CLUSTER_BREAK.LV}else if(47225<=t&&t<=47251)return d.CLUSTER_BREAK.LVT}else if(t<47309){if(t<47280){if(t<47253){if(t===47252)return d.CLUSTER_BREAK.LV}else if(47253<=t&&t<=47279)return d.CLUSTER_BREAK.LVT}else if(t<47281){if(t===47280)return d.CLUSTER_BREAK.LV}else if(t<47308){if(47281<=t&&t<=47307)return d.CLUSTER_BREAK.LVT}else if(t===47308)return d.CLUSTER_BREAK.LV}else if(t<47364){if(t<47336){if(47309<=t&&t<=47335)return d.CLUSTER_BREAK.LVT}else if(t<47337){if(t===47336)return d.CLUSTER_BREAK.LV}else if(47337<=t&&t<=47363)return d.CLUSTER_BREAK.LVT}else if(t<47365){if(t===47364)return d.CLUSTER_BREAK.LV}else if(t<47392){if(47365<=t&&t<=47391)return d.CLUSTER_BREAK.LVT}else if(t===47392)return d.CLUSTER_BREAK.LV}else if(t<47560){if(t<47476){if(t<47421){if(t<47420){if(47393<=t&&t<=47419)return d.CLUSTER_BREAK.LVT}else if(t===47420)return d.CLUSTER_BREAK.LV}else if(t<47448){if(47421<=t&&t<=47447)return d.CLUSTER_BREAK.LVT}else if(t<47449){if(t===47448)return d.CLUSTER_BREAK.LV}else if(47449<=t&&t<=47475)return d.CLUSTER_BREAK.LVT}else if(t<47505){if(t<47477){if(t===47476)return d.CLUSTER_BREAK.LV}else if(t<47504){if(47477<=t&&t<=47503)return d.CLUSTER_BREAK.LVT}else if(t===47504)return d.CLUSTER_BREAK.LV}else if(t<47532){if(47505<=t&&t<=47531)return d.CLUSTER_BREAK.LVT}else if(t<47533){if(t===47532)return d.CLUSTER_BREAK.LV}else if(47533<=t&&t<=47559)return d.CLUSTER_BREAK.LVT}else if(t<47617){if(t<47588){if(t<47561){if(t===47560)return d.CLUSTER_BREAK.LV}else if(47561<=t&&t<=47587)return d.CLUSTER_BREAK.LVT}else if(t<47589){if(t===47588)return d.CLUSTER_BREAK.LV}else if(t<47616){if(47589<=t&&t<=47615)return d.CLUSTER_BREAK.LVT}else if(t===47616)return d.CLUSTER_BREAK.LV}else if(t<47672){if(t<47644){if(47617<=t&&t<=47643)return d.CLUSTER_BREAK.LVT}else if(t<47645){if(t===47644)return d.CLUSTER_BREAK.LV}else if(47645<=t&&t<=47671)return d.CLUSTER_BREAK.LVT}else if(t<47673){if(t===47672)return d.CLUSTER_BREAK.LV}else if(t<47700){if(47673<=t&&t<=47699)return d.CLUSTER_BREAK.LVT}else if(t===47700)return d.CLUSTER_BREAK.LV}else if(t<48316){if(t<48008){if(t<47841){if(t<47784){if(t<47729){if(t<47728){if(47701<=t&&t<=47727)return d.CLUSTER_BREAK.LVT}else if(t===47728)return d.CLUSTER_BREAK.LV}else if(t<47756){if(47729<=t&&t<=47755)return d.CLUSTER_BREAK.LVT}else if(t<47757){if(t===47756)return d.CLUSTER_BREAK.LV}else if(47757<=t&&t<=47783)return d.CLUSTER_BREAK.LVT}else if(t<47812){if(t<47785){if(t===47784)return d.CLUSTER_BREAK.LV}else if(47785<=t&&t<=47811)return d.CLUSTER_BREAK.LVT}else if(t<47813){if(t===47812)return d.CLUSTER_BREAK.LV}else if(t<47840){if(47813<=t&&t<=47839)return d.CLUSTER_BREAK.LVT}else if(t===47840)return d.CLUSTER_BREAK.LV}else if(t<47924){if(t<47869){if(t<47868){if(47841<=t&&t<=47867)return d.CLUSTER_BREAK.LVT}else if(t===47868)return d.CLUSTER_BREAK.LV}else if(t<47896){if(47869<=t&&t<=47895)return d.CLUSTER_BREAK.LVT}else if(t<47897){if(t===47896)return d.CLUSTER_BREAK.LV}else if(47897<=t&&t<=47923)return d.CLUSTER_BREAK.LVT}else if(t<47953){if(t<47925){if(t===47924)return d.CLUSTER_BREAK.LV}else if(t<47952){if(47925<=t&&t<=47951)return d.CLUSTER_BREAK.LVT}else if(t===47952)return d.CLUSTER_BREAK.LV}else if(t<47980){if(47953<=t&&t<=47979)return d.CLUSTER_BREAK.LVT}else if(t<47981){if(t===47980)return d.CLUSTER_BREAK.LV}else if(47981<=t&&t<=48007)return d.CLUSTER_BREAK.LVT}else if(t<48149){if(t<48065){if(t<48036){if(t<48009){if(t===48008)return d.CLUSTER_BREAK.LV}else if(48009<=t&&t<=48035)return d.CLUSTER_BREAK.LVT}else if(t<48037){if(t===48036)return d.CLUSTER_BREAK.LV}else if(t<48064){if(48037<=t&&t<=48063)return d.CLUSTER_BREAK.LVT}else if(t===48064)return d.CLUSTER_BREAK.LV}else if(t<48120){if(t<48092){if(48065<=t&&t<=48091)return d.CLUSTER_BREAK.LVT}else if(t<48093){if(t===48092)return d.CLUSTER_BREAK.LV}else if(48093<=t&&t<=48119)return d.CLUSTER_BREAK.LVT}else if(t<48121){if(t===48120)return d.CLUSTER_BREAK.LV}else if(t<48148){if(48121<=t&&t<=48147)return d.CLUSTER_BREAK.LVT}else if(t===48148)return d.CLUSTER_BREAK.LV}else if(t<48232){if(t<48177){if(t<48176){if(48149<=t&&t<=48175)return d.CLUSTER_BREAK.LVT}else if(t===48176)return d.CLUSTER_BREAK.LV}else if(t<48204){if(48177<=t&&t<=48203)return d.CLUSTER_BREAK.LVT}else if(t<48205){if(t===48204)return d.CLUSTER_BREAK.LV}else if(48205<=t&&t<=48231)return d.CLUSTER_BREAK.LVT}else if(t<48261){if(t<48233){if(t===48232)return d.CLUSTER_BREAK.LV}else if(t<48260){if(48233<=t&&t<=48259)return d.CLUSTER_BREAK.LVT}else if(t===48260)return d.CLUSTER_BREAK.LV}else if(t<48288){if(48261<=t&&t<=48287)return d.CLUSTER_BREAK.LVT}else if(t<48289){if(t===48288)return d.CLUSTER_BREAK.LV}else if(48289<=t&&t<=48315)return d.CLUSTER_BREAK.LVT}else if(t<48597){if(t<48456){if(t<48373){if(t<48344){if(t<48317){if(t===48316)return d.CLUSTER_BREAK.LV}else if(48317<=t&&t<=48343)return d.CLUSTER_BREAK.LVT}else if(t<48345){if(t===48344)return d.CLUSTER_BREAK.LV}else if(t<48372){if(48345<=t&&t<=48371)return d.CLUSTER_BREAK.LVT}else if(t===48372)return d.CLUSTER_BREAK.LV}else if(t<48401){if(t<48400){if(48373<=t&&t<=48399)return d.CLUSTER_BREAK.LVT}else if(t===48400)return d.CLUSTER_BREAK.LV}else if(t<48428){if(48401<=t&&t<=48427)return d.CLUSTER_BREAK.LVT}else if(t<48429){if(t===48428)return d.CLUSTER_BREAK.LV}else if(48429<=t&&t<=48455)return d.CLUSTER_BREAK.LVT}else if(t<48513){if(t<48484){if(t<48457){if(t===48456)return d.CLUSTER_BREAK.LV}else if(48457<=t&&t<=48483)return d.CLUSTER_BREAK.LVT}else if(t<48485){if(t===48484)return d.CLUSTER_BREAK.LV}else if(t<48512){if(48485<=t&&t<=48511)return d.CLUSTER_BREAK.LVT}else if(t===48512)return d.CLUSTER_BREAK.LV}else if(t<48568){if(t<48540){if(48513<=t&&t<=48539)return d.CLUSTER_BREAK.LVT}else if(t<48541){if(t===48540)return d.CLUSTER_BREAK.LV}else if(48541<=t&&t<=48567)return d.CLUSTER_BREAK.LVT}else if(t<48569){if(t===48568)return d.CLUSTER_BREAK.LV}else if(t<48596){if(48569<=t&&t<=48595)return d.CLUSTER_BREAK.LVT}else if(t===48596)return d.CLUSTER_BREAK.LV}else if(t<48764){if(t<48680){if(t<48625){if(t<48624){if(48597<=t&&t<=48623)return d.CLUSTER_BREAK.LVT}else if(t===48624)return d.CLUSTER_BREAK.LV}else if(t<48652){if(48625<=t&&t<=48651)return d.CLUSTER_BREAK.LVT}else if(t<48653){if(t===48652)return d.CLUSTER_BREAK.LV}else if(48653<=t&&t<=48679)return d.CLUSTER_BREAK.LVT}else if(t<48709){if(t<48681){if(t===48680)return d.CLUSTER_BREAK.LV}else if(t<48708){if(48681<=t&&t<=48707)return d.CLUSTER_BREAK.LVT}else if(t===48708)return d.CLUSTER_BREAK.LV}else if(t<48736){if(48709<=t&&t<=48735)return d.CLUSTER_BREAK.LVT}else if(t<48737){if(t===48736)return d.CLUSTER_BREAK.LV}else if(48737<=t&&t<=48763)return d.CLUSTER_BREAK.LVT}else if(t<48821){if(t<48792){if(t<48765){if(t===48764)return d.CLUSTER_BREAK.LV}else if(48765<=t&&t<=48791)return d.CLUSTER_BREAK.LVT}else if(t<48793){if(t===48792)return d.CLUSTER_BREAK.LV}else if(t<48820){if(48793<=t&&t<=48819)return d.CLUSTER_BREAK.LVT}else if(t===48820)return d.CLUSTER_BREAK.LV}else if(t<48876){if(t<48848){if(48821<=t&&t<=48847)return d.CLUSTER_BREAK.LVT}else if(t<48849){if(t===48848)return d.CLUSTER_BREAK.LV}else if(48849<=t&&t<=48875)return d.CLUSTER_BREAK.LVT}else if(t<48877){if(t===48876)return d.CLUSTER_BREAK.LV}else if(t<48904){if(48877<=t&&t<=48903)return d.CLUSTER_BREAK.LVT}else if(t===48904)return d.CLUSTER_BREAK.LV}else if(t<53720){if(t<51312){if(t<50108){if(t<49493){if(t<49212){if(t<49045){if(t<48988){if(t<48933){if(t<48932){if(48905<=t&&t<=48931)return d.CLUSTER_BREAK.LVT}else if(t===48932)return d.CLUSTER_BREAK.LV}else if(t<48960){if(48933<=t&&t<=48959)return d.CLUSTER_BREAK.LVT}else if(t<48961){if(t===48960)return d.CLUSTER_BREAK.LV}else if(48961<=t&&t<=48987)return d.CLUSTER_BREAK.LVT}else if(t<49016){if(t<48989){if(t===48988)return d.CLUSTER_BREAK.LV}else if(48989<=t&&t<=49015)return d.CLUSTER_BREAK.LVT}else if(t<49017){if(t===49016)return d.CLUSTER_BREAK.LV}else if(t<49044){if(49017<=t&&t<=49043)return d.CLUSTER_BREAK.LVT}else if(t===49044)return d.CLUSTER_BREAK.LV}else if(t<49128){if(t<49073){if(t<49072){if(49045<=t&&t<=49071)return d.CLUSTER_BREAK.LVT}else if(t===49072)return d.CLUSTER_BREAK.LV}else if(t<49100){if(49073<=t&&t<=49099)return d.CLUSTER_BREAK.LVT}else if(t<49101){if(t===49100)return d.CLUSTER_BREAK.LV}else if(49101<=t&&t<=49127)return d.CLUSTER_BREAK.LVT}else if(t<49157){if(t<49129){if(t===49128)return d.CLUSTER_BREAK.LV}else if(t<49156){if(49129<=t&&t<=49155)return d.CLUSTER_BREAK.LVT}else if(t===49156)return d.CLUSTER_BREAK.LV}else if(t<49184){if(49157<=t&&t<=49183)return d.CLUSTER_BREAK.LVT}else if(t<49185){if(t===49184)return d.CLUSTER_BREAK.LV}else if(49185<=t&&t<=49211)return d.CLUSTER_BREAK.LVT}else if(t<49352){if(t<49269){if(t<49240){if(t<49213){if(t===49212)return d.CLUSTER_BREAK.LV}else if(49213<=t&&t<=49239)return d.CLUSTER_BREAK.LVT}else if(t<49241){if(t===49240)return d.CLUSTER_BREAK.LV}else if(t<49268){if(49241<=t&&t<=49267)return d.CLUSTER_BREAK.LVT}else if(t===49268)return d.CLUSTER_BREAK.LV}else if(t<49297){if(t<49296){if(49269<=t&&t<=49295)return d.CLUSTER_BREAK.LVT}else if(t===49296)return d.CLUSTER_BREAK.LV}else if(t<49324){if(49297<=t&&t<=49323)return d.CLUSTER_BREAK.LVT}else if(t<49325){if(t===49324)return d.CLUSTER_BREAK.LV}else if(49325<=t&&t<=49351)return d.CLUSTER_BREAK.LVT}else if(t<49409){if(t<49380){if(t<49353){if(t===49352)return d.CLUSTER_BREAK.LV}else if(49353<=t&&t<=49379)return d.CLUSTER_BREAK.LVT}else if(t<49381){if(t===49380)return d.CLUSTER_BREAK.LV}else if(t<49408){if(49381<=t&&t<=49407)return d.CLUSTER_BREAK.LVT}else if(t===49408)return d.CLUSTER_BREAK.LV}else if(t<49464){if(t<49436){if(49409<=t&&t<=49435)return d.CLUSTER_BREAK.LVT}else if(t<49437){if(t===49436)return d.CLUSTER_BREAK.LV}else if(49437<=t&&t<=49463)return d.CLUSTER_BREAK.LVT}else if(t<49465){if(t===49464)return d.CLUSTER_BREAK.LV}else if(t<49492){if(49465<=t&&t<=49491)return d.CLUSTER_BREAK.LVT}else if(t===49492)return d.CLUSTER_BREAK.LV}else if(t<49800){if(t<49633){if(t<49576){if(t<49521){if(t<49520){if(49493<=t&&t<=49519)return d.CLUSTER_BREAK.LVT}else if(t===49520)return d.CLUSTER_BREAK.LV}else if(t<49548){if(49521<=t&&t<=49547)return d.CLUSTER_BREAK.LVT}else if(t<49549){if(t===49548)return d.CLUSTER_BREAK.LV}else if(49549<=t&&t<=49575)return d.CLUSTER_BREAK.LVT}else if(t<49604){if(t<49577){if(t===49576)return d.CLUSTER_BREAK.LV}else if(49577<=t&&t<=49603)return d.CLUSTER_BREAK.LVT}else if(t<49605){if(t===49604)return d.CLUSTER_BREAK.LV}else if(t<49632){if(49605<=t&&t<=49631)return d.CLUSTER_BREAK.LVT}else if(t===49632)return d.CLUSTER_BREAK.LV}else if(t<49716){if(t<49661){if(t<49660){if(49633<=t&&t<=49659)return d.CLUSTER_BREAK.LVT}else if(t===49660)return d.CLUSTER_BREAK.LV}else if(t<49688){if(49661<=t&&t<=49687)return d.CLUSTER_BREAK.LVT}else if(t<49689){if(t===49688)return d.CLUSTER_BREAK.LV}else if(49689<=t&&t<=49715)return d.CLUSTER_BREAK.LVT}else if(t<49745){if(t<49717){if(t===49716)return d.CLUSTER_BREAK.LV}else if(t<49744){if(49717<=t&&t<=49743)return d.CLUSTER_BREAK.LVT}else if(t===49744)return d.CLUSTER_BREAK.LV}else if(t<49772){if(49745<=t&&t<=49771)return d.CLUSTER_BREAK.LVT}else if(t<49773){if(t===49772)return d.CLUSTER_BREAK.LV}else if(49773<=t&&t<=49799)return d.CLUSTER_BREAK.LVT}else if(t<49941){if(t<49857){if(t<49828){if(t<49801){if(t===49800)return d.CLUSTER_BREAK.LV}else if(49801<=t&&t<=49827)return d.CLUSTER_BREAK.LVT}else if(t<49829){if(t===49828)return d.CLUSTER_BREAK.LV}else if(t<49856){if(49829<=t&&t<=49855)return d.CLUSTER_BREAK.LVT}else if(t===49856)return d.CLUSTER_BREAK.LV}else if(t<49912){if(t<49884){if(49857<=t&&t<=49883)return d.CLUSTER_BREAK.LVT}else if(t<49885){if(t===49884)return d.CLUSTER_BREAK.LV}else if(49885<=t&&t<=49911)return d.CLUSTER_BREAK.LVT}else if(t<49913){if(t===49912)return d.CLUSTER_BREAK.LV}else if(t<49940){if(49913<=t&&t<=49939)return d.CLUSTER_BREAK.LVT}else if(t===49940)return d.CLUSTER_BREAK.LV}else if(t<50024){if(t<49969){if(t<49968){if(49941<=t&&t<=49967)return d.CLUSTER_BREAK.LVT}else if(t===49968)return d.CLUSTER_BREAK.LV}else if(t<49996){if(49969<=t&&t<=49995)return d.CLUSTER_BREAK.LVT}else if(t<49997){if(t===49996)return d.CLUSTER_BREAK.LV}else if(49997<=t&&t<=50023)return d.CLUSTER_BREAK.LVT}else if(t<50053){if(t<50025){if(t===50024)return d.CLUSTER_BREAK.LV}else if(t<50052){if(50025<=t&&t<=50051)return d.CLUSTER_BREAK.LVT}else if(t===50052)return d.CLUSTER_BREAK.LV}else if(t<50080){if(50053<=t&&t<=50079)return d.CLUSTER_BREAK.LVT}else if(t<50081){if(t===50080)return d.CLUSTER_BREAK.LV}else if(50081<=t&&t<=50107)return d.CLUSTER_BREAK.LVT}else if(t<50697){if(t<50389){if(t<50248){if(t<50165){if(t<50136){if(t<50109){if(t===50108)return d.CLUSTER_BREAK.LV}else if(50109<=t&&t<=50135)return d.CLUSTER_BREAK.LVT}else if(t<50137){if(t===50136)return d.CLUSTER_BREAK.LV}else if(t<50164){if(50137<=t&&t<=50163)return d.CLUSTER_BREAK.LVT}else if(t===50164)return d.CLUSTER_BREAK.LV}else if(t<50193){if(t<50192){if(50165<=t&&t<=50191)return d.CLUSTER_BREAK.LVT}else if(t===50192)return d.CLUSTER_BREAK.LV}else if(t<50220){if(50193<=t&&t<=50219)return d.CLUSTER_BREAK.LVT}else if(t<50221){if(t===50220)return d.CLUSTER_BREAK.LV}else if(50221<=t&&t<=50247)return d.CLUSTER_BREAK.LVT}else if(t<50305){if(t<50276){if(t<50249){if(t===50248)return d.CLUSTER_BREAK.LV}else if(50249<=t&&t<=50275)return d.CLUSTER_BREAK.LVT}else if(t<50277){if(t===50276)return d.CLUSTER_BREAK.LV}else if(t<50304){if(50277<=t&&t<=50303)return d.CLUSTER_BREAK.LVT}else if(t===50304)return d.CLUSTER_BREAK.LV}else if(t<50360){if(t<50332){if(50305<=t&&t<=50331)return d.CLUSTER_BREAK.LVT}else if(t<50333){if(t===50332)return d.CLUSTER_BREAK.LV}else if(50333<=t&&t<=50359)return d.CLUSTER_BREAK.LVT}else if(t<50361){if(t===50360)return d.CLUSTER_BREAK.LV}else if(t<50388){if(50361<=t&&t<=50387)return d.CLUSTER_BREAK.LVT}else if(t===50388)return d.CLUSTER_BREAK.LV}else if(t<50556){if(t<50472){if(t<50417){if(t<50416){if(50389<=t&&t<=50415)return d.CLUSTER_BREAK.LVT}else if(t===50416)return d.CLUSTER_BREAK.LV}else if(t<50444){if(50417<=t&&t<=50443)return d.CLUSTER_BREAK.LVT}else if(t<50445){if(t===50444)return d.CLUSTER_BREAK.LV}else if(50445<=t&&t<=50471)return d.CLUSTER_BREAK.LVT}else if(t<50501){if(t<50473){if(t===50472)return d.CLUSTER_BREAK.LV}else if(t<50500){if(50473<=t&&t<=50499)return d.CLUSTER_BREAK.LVT}else if(t===50500)return d.CLUSTER_BREAK.LV}else if(t<50528){if(50501<=t&&t<=50527)return d.CLUSTER_BREAK.LVT}else if(t<50529){if(t===50528)return d.CLUSTER_BREAK.LV}else if(50529<=t&&t<=50555)return d.CLUSTER_BREAK.LVT}else if(t<50613){if(t<50584){if(t<50557){if(t===50556)return d.CLUSTER_BREAK.LV}else if(50557<=t&&t<=50583)return d.CLUSTER_BREAK.LVT}else if(t<50585){if(t===50584)return d.CLUSTER_BREAK.LV}else if(t<50612){if(50585<=t&&t<=50611)return d.CLUSTER_BREAK.LVT}else if(t===50612)return d.CLUSTER_BREAK.LV}else if(t<50668){if(t<50640){if(50613<=t&&t<=50639)return d.CLUSTER_BREAK.LVT}else if(t<50641){if(t===50640)return d.CLUSTER_BREAK.LV}else if(50641<=t&&t<=50667)return d.CLUSTER_BREAK.LVT}else if(t<50669){if(t===50668)return d.CLUSTER_BREAK.LV}else if(t<50696){if(50669<=t&&t<=50695)return d.CLUSTER_BREAK.LVT}else if(t===50696)return d.CLUSTER_BREAK.LV}else if(t<51004){if(t<50837){if(t<50780){if(t<50725){if(t<50724){if(50697<=t&&t<=50723)return d.CLUSTER_BREAK.LVT}else if(t===50724)return d.CLUSTER_BREAK.LV}else if(t<50752){if(50725<=t&&t<=50751)return d.CLUSTER_BREAK.LVT}else if(t<50753){if(t===50752)return d.CLUSTER_BREAK.LV}else if(50753<=t&&t<=50779)return d.CLUSTER_BREAK.LVT}else if(t<50808){if(t<50781){if(t===50780)return d.CLUSTER_BREAK.LV}else if(50781<=t&&t<=50807)return d.CLUSTER_BREAK.LVT}else if(t<50809){if(t===50808)return d.CLUSTER_BREAK.LV}else if(t<50836){if(50809<=t&&t<=50835)return d.CLUSTER_BREAK.LVT}else if(t===50836)return d.CLUSTER_BREAK.LV}else if(t<50920){if(t<50865){if(t<50864){if(50837<=t&&t<=50863)return d.CLUSTER_BREAK.LVT}else if(t===50864)return d.CLUSTER_BREAK.LV}else if(t<50892){if(50865<=t&&t<=50891)return d.CLUSTER_BREAK.LVT}else if(t<50893){if(t===50892)return d.CLUSTER_BREAK.LV}else if(50893<=t&&t<=50919)return d.CLUSTER_BREAK.LVT}else if(t<50949){if(t<50921){if(t===50920)return d.CLUSTER_BREAK.LV}else if(t<50948){if(50921<=t&&t<=50947)return d.CLUSTER_BREAK.LVT}else if(t===50948)return d.CLUSTER_BREAK.LV}else if(t<50976){if(50949<=t&&t<=50975)return d.CLUSTER_BREAK.LVT}else if(t<50977){if(t===50976)return d.CLUSTER_BREAK.LV}else if(50977<=t&&t<=51003)return d.CLUSTER_BREAK.LVT}else if(t<51145){if(t<51061){if(t<51032){if(t<51005){if(t===51004)return d.CLUSTER_BREAK.LV}else if(51005<=t&&t<=51031)return d.CLUSTER_BREAK.LVT}else if(t<51033){if(t===51032)return d.CLUSTER_BREAK.LV}else if(t<51060){if(51033<=t&&t<=51059)return d.CLUSTER_BREAK.LVT}else if(t===51060)return d.CLUSTER_BREAK.LV}else if(t<51116){if(t<51088){if(51061<=t&&t<=51087)return d.CLUSTER_BREAK.LVT}else if(t<51089){if(t===51088)return d.CLUSTER_BREAK.LV}else if(51089<=t&&t<=51115)return d.CLUSTER_BREAK.LVT}else if(t<51117){if(t===51116)return d.CLUSTER_BREAK.LV}else if(t<51144){if(51117<=t&&t<=51143)return d.CLUSTER_BREAK.LVT}else if(t===51144)return d.CLUSTER_BREAK.LV}else if(t<51228){if(t<51173){if(t<51172){if(51145<=t&&t<=51171)return d.CLUSTER_BREAK.LVT}else if(t===51172)return d.CLUSTER_BREAK.LV}else if(t<51200){if(51173<=t&&t<=51199)return d.CLUSTER_BREAK.LVT}else if(t<51201){if(t===51200)return d.CLUSTER_BREAK.LV}else if(51201<=t&&t<=51227)return d.CLUSTER_BREAK.LVT}else if(t<51257){if(t<51229){if(t===51228)return d.CLUSTER_BREAK.LV}else if(t<51256){if(51229<=t&&t<=51255)return d.CLUSTER_BREAK.LVT}else if(t===51256)return d.CLUSTER_BREAK.LV}else if(t<51284){if(51257<=t&&t<=51283)return d.CLUSTER_BREAK.LVT}else if(t<51285){if(t===51284)return d.CLUSTER_BREAK.LV}else if(51285<=t&&t<=51311)return d.CLUSTER_BREAK.LVT}else if(t<52516){if(t<51901){if(t<51593){if(t<51452){if(t<51369){if(t<51340){if(t<51313){if(t===51312)return d.CLUSTER_BREAK.LV}else if(51313<=t&&t<=51339)return d.CLUSTER_BREAK.LVT}else if(t<51341){if(t===51340)return d.CLUSTER_BREAK.LV}else if(t<51368){if(51341<=t&&t<=51367)return d.CLUSTER_BREAK.LVT}else if(t===51368)return d.CLUSTER_BREAK.LV}else if(t<51397){if(t<51396){if(51369<=t&&t<=51395)return d.CLUSTER_BREAK.LVT}else if(t===51396)return d.CLUSTER_BREAK.LV}else if(t<51424){if(51397<=t&&t<=51423)return d.CLUSTER_BREAK.LVT}else if(t<51425){if(t===51424)return d.CLUSTER_BREAK.LV}else if(51425<=t&&t<=51451)return d.CLUSTER_BREAK.LVT}else if(t<51509){if(t<51480){if(t<51453){if(t===51452)return d.CLUSTER_BREAK.LV}else if(51453<=t&&t<=51479)return d.CLUSTER_BREAK.LVT}else if(t<51481){if(t===51480)return d.CLUSTER_BREAK.LV}else if(t<51508){if(51481<=t&&t<=51507)return d.CLUSTER_BREAK.LVT}else if(t===51508)return d.CLUSTER_BREAK.LV}else if(t<51564){if(t<51536){if(51509<=t&&t<=51535)return d.CLUSTER_BREAK.LVT}else if(t<51537){if(t===51536)return d.CLUSTER_BREAK.LV}else if(51537<=t&&t<=51563)return d.CLUSTER_BREAK.LVT}else if(t<51565){if(t===51564)return d.CLUSTER_BREAK.LV}else if(t<51592){if(51565<=t&&t<=51591)return d.CLUSTER_BREAK.LVT}else if(t===51592)return d.CLUSTER_BREAK.LV}else if(t<51760){if(t<51676){if(t<51621){if(t<51620){if(51593<=t&&t<=51619)return d.CLUSTER_BREAK.LVT}else if(t===51620)return d.CLUSTER_BREAK.LV}else if(t<51648){if(51621<=t&&t<=51647)return d.CLUSTER_BREAK.LVT}else if(t<51649){if(t===51648)return d.CLUSTER_BREAK.LV}else if(51649<=t&&t<=51675)return d.CLUSTER_BREAK.LVT}else if(t<51705){if(t<51677){if(t===51676)return d.CLUSTER_BREAK.LV}else if(t<51704){if(51677<=t&&t<=51703)return d.CLUSTER_BREAK.LVT}else if(t===51704)return d.CLUSTER_BREAK.LV}else if(t<51732){if(51705<=t&&t<=51731)return d.CLUSTER_BREAK.LVT}else if(t<51733){if(t===51732)return d.CLUSTER_BREAK.LV}else if(51733<=t&&t<=51759)return d.CLUSTER_BREAK.LVT}else if(t<51817){if(t<51788){if(t<51761){if(t===51760)return d.CLUSTER_BREAK.LV}else if(51761<=t&&t<=51787)return d.CLUSTER_BREAK.LVT}else if(t<51789){if(t===51788)return d.CLUSTER_BREAK.LV}else if(t<51816){if(51789<=t&&t<=51815)return d.CLUSTER_BREAK.LVT}else if(t===51816)return d.CLUSTER_BREAK.LV}else if(t<51872){if(t<51844){if(51817<=t&&t<=51843)return d.CLUSTER_BREAK.LVT}else if(t<51845){if(t===51844)return d.CLUSTER_BREAK.LV}else if(51845<=t&&t<=51871)return d.CLUSTER_BREAK.LVT}else if(t<51873){if(t===51872)return d.CLUSTER_BREAK.LV}else if(t<51900){if(51873<=t&&t<=51899)return d.CLUSTER_BREAK.LVT}else if(t===51900)return d.CLUSTER_BREAK.LV}else if(t<52208){if(t<52041){if(t<51984){if(t<51929){if(t<51928){if(51901<=t&&t<=51927)return d.CLUSTER_BREAK.LVT}else if(t===51928)return d.CLUSTER_BREAK.LV}else if(t<51956){if(51929<=t&&t<=51955)return d.CLUSTER_BREAK.LVT}else if(t<51957){if(t===51956)return d.CLUSTER_BREAK.LV}else if(51957<=t&&t<=51983)return d.CLUSTER_BREAK.LVT}else if(t<52012){if(t<51985){if(t===51984)return d.CLUSTER_BREAK.LV}else if(51985<=t&&t<=52011)return d.CLUSTER_BREAK.LVT}else if(t<52013){if(t===52012)return d.CLUSTER_BREAK.LV}else if(t<52040){if(52013<=t&&t<=52039)return d.CLUSTER_BREAK.LVT}else if(t===52040)return d.CLUSTER_BREAK.LV}else if(t<52124){if(t<52069){if(t<52068){if(52041<=t&&t<=52067)return d.CLUSTER_BREAK.LVT}else if(t===52068)return d.CLUSTER_BREAK.LV}else if(t<52096){if(52069<=t&&t<=52095)return d.CLUSTER_BREAK.LVT}else if(t<52097){if(t===52096)return d.CLUSTER_BREAK.LV}else if(52097<=t&&t<=52123)return d.CLUSTER_BREAK.LVT}else if(t<52153){if(t<52125){if(t===52124)return d.CLUSTER_BREAK.LV}else if(t<52152){if(52125<=t&&t<=52151)return d.CLUSTER_BREAK.LVT}else if(t===52152)return d.CLUSTER_BREAK.LV}else if(t<52180){if(52153<=t&&t<=52179)return d.CLUSTER_BREAK.LVT}else if(t<52181){if(t===52180)return d.CLUSTER_BREAK.LV}else if(52181<=t&&t<=52207)return d.CLUSTER_BREAK.LVT}else if(t<52349){if(t<52265){if(t<52236){if(t<52209){if(t===52208)return d.CLUSTER_BREAK.LV}else if(52209<=t&&t<=52235)return d.CLUSTER_BREAK.LVT}else if(t<52237){if(t===52236)return d.CLUSTER_BREAK.LV}else if(t<52264){if(52237<=t&&t<=52263)return d.CLUSTER_BREAK.LVT}else if(t===52264)return d.CLUSTER_BREAK.LV}else if(t<52320){if(t<52292){if(52265<=t&&t<=52291)return d.CLUSTER_BREAK.LVT}else if(t<52293){if(t===52292)return d.CLUSTER_BREAK.LV}else if(52293<=t&&t<=52319)return d.CLUSTER_BREAK.LVT}else if(t<52321){if(t===52320)return d.CLUSTER_BREAK.LV}else if(t<52348){if(52321<=t&&t<=52347)return d.CLUSTER_BREAK.LVT}else if(t===52348)return d.CLUSTER_BREAK.LV}else if(t<52432){if(t<52377){if(t<52376){if(52349<=t&&t<=52375)return d.CLUSTER_BREAK.LVT}else if(t===52376)return d.CLUSTER_BREAK.LV}else if(t<52404){if(52377<=t&&t<=52403)return d.CLUSTER_BREAK.LVT}else if(t<52405){if(t===52404)return d.CLUSTER_BREAK.LV}else if(52405<=t&&t<=52431)return d.CLUSTER_BREAK.LVT}else if(t<52461){if(t<52433){if(t===52432)return d.CLUSTER_BREAK.LV}else if(t<52460){if(52433<=t&&t<=52459)return d.CLUSTER_BREAK.LVT}else if(t===52460)return d.CLUSTER_BREAK.LV}else if(t<52488){if(52461<=t&&t<=52487)return d.CLUSTER_BREAK.LVT}else if(t<52489){if(t===52488)return d.CLUSTER_BREAK.LV}else if(52489<=t&&t<=52515)return d.CLUSTER_BREAK.LVT}else if(t<53105){if(t<52797){if(t<52656){if(t<52573){if(t<52544){if(t<52517){if(t===52516)return d.CLUSTER_BREAK.LV}else if(52517<=t&&t<=52543)return d.CLUSTER_BREAK.LVT}else if(t<52545){if(t===52544)return d.CLUSTER_BREAK.LV}else if(t<52572){if(52545<=t&&t<=52571)return d.CLUSTER_BREAK.LVT}else if(t===52572)return d.CLUSTER_BREAK.LV}else if(t<52601){if(t<52600){if(52573<=t&&t<=52599)return d.CLUSTER_BREAK.LVT}else if(t===52600)return d.CLUSTER_BREAK.LV}else if(t<52628){if(52601<=t&&t<=52627)return d.CLUSTER_BREAK.LVT}else if(t<52629){if(t===52628)return d.CLUSTER_BREAK.LV}else if(52629<=t&&t<=52655)return d.CLUSTER_BREAK.LVT}else if(t<52713){if(t<52684){if(t<52657){if(t===52656)return d.CLUSTER_BREAK.LV}else if(52657<=t&&t<=52683)return d.CLUSTER_BREAK.LVT}else if(t<52685){if(t===52684)return d.CLUSTER_BREAK.LV}else if(t<52712){if(52685<=t&&t<=52711)return d.CLUSTER_BREAK.LVT}else if(t===52712)return d.CLUSTER_BREAK.LV}else if(t<52768){if(t<52740){if(52713<=t&&t<=52739)return d.CLUSTER_BREAK.LVT}else if(t<52741){if(t===52740)return d.CLUSTER_BREAK.LV}else if(52741<=t&&t<=52767)return d.CLUSTER_BREAK.LVT}else if(t<52769){if(t===52768)return d.CLUSTER_BREAK.LV}else if(t<52796){if(52769<=t&&t<=52795)return d.CLUSTER_BREAK.LVT}else if(t===52796)return d.CLUSTER_BREAK.LV}else if(t<52964){if(t<52880){if(t<52825){if(t<52824){if(52797<=t&&t<=52823)return d.CLUSTER_BREAK.LVT}else if(t===52824)return d.CLUSTER_BREAK.LV}else if(t<52852){if(52825<=t&&t<=52851)return d.CLUSTER_BREAK.LVT}else if(t<52853){if(t===52852)return d.CLUSTER_BREAK.LV}else if(52853<=t&&t<=52879)return d.CLUSTER_BREAK.LVT}else if(t<52909){if(t<52881){if(t===52880)return d.CLUSTER_BREAK.LV}else if(t<52908){if(52881<=t&&t<=52907)return d.CLUSTER_BREAK.LVT}else if(t===52908)return d.CLUSTER_BREAK.LV}else if(t<52936){if(52909<=t&&t<=52935)return d.CLUSTER_BREAK.LVT}else if(t<52937){if(t===52936)return d.CLUSTER_BREAK.LV}else if(52937<=t&&t<=52963)return d.CLUSTER_BREAK.LVT}else if(t<53021){if(t<52992){if(t<52965){if(t===52964)return d.CLUSTER_BREAK.LV}else if(52965<=t&&t<=52991)return d.CLUSTER_BREAK.LVT}else if(t<52993){if(t===52992)return d.CLUSTER_BREAK.LV}else if(t<53020){if(52993<=t&&t<=53019)return d.CLUSTER_BREAK.LVT}else if(t===53020)return d.CLUSTER_BREAK.LV}else if(t<53076){if(t<53048){if(53021<=t&&t<=53047)return d.CLUSTER_BREAK.LVT}else if(t<53049){if(t===53048)return d.CLUSTER_BREAK.LV}else if(53049<=t&&t<=53075)return d.CLUSTER_BREAK.LVT}else if(t<53077){if(t===53076)return d.CLUSTER_BREAK.LV}else if(t<53104){if(53077<=t&&t<=53103)return d.CLUSTER_BREAK.LVT}else if(t===53104)return d.CLUSTER_BREAK.LV}else if(t<53412){if(t<53245){if(t<53188){if(t<53133){if(t<53132){if(53105<=t&&t<=53131)return d.CLUSTER_BREAK.LVT}else if(t===53132)return d.CLUSTER_BREAK.LV}else if(t<53160){if(53133<=t&&t<=53159)return d.CLUSTER_BREAK.LVT}else if(t<53161){if(t===53160)return d.CLUSTER_BREAK.LV}else if(53161<=t&&t<=53187)return d.CLUSTER_BREAK.LVT}else if(t<53216){if(t<53189){if(t===53188)return d.CLUSTER_BREAK.LV}else if(53189<=t&&t<=53215)return d.CLUSTER_BREAK.LVT}else if(t<53217){if(t===53216)return d.CLUSTER_BREAK.LV}else if(t<53244){if(53217<=t&&t<=53243)return d.CLUSTER_BREAK.LVT}else if(t===53244)return d.CLUSTER_BREAK.LV}else if(t<53328){if(t<53273){if(t<53272){if(53245<=t&&t<=53271)return d.CLUSTER_BREAK.LVT}else if(t===53272)return d.CLUSTER_BREAK.LV}else if(t<53300){if(53273<=t&&t<=53299)return d.CLUSTER_BREAK.LVT}else if(t<53301){if(t===53300)return d.CLUSTER_BREAK.LV}else if(53301<=t&&t<=53327)return d.CLUSTER_BREAK.LVT}else if(t<53357){if(t<53329){if(t===53328)return d.CLUSTER_BREAK.LV}else if(t<53356){if(53329<=t&&t<=53355)return d.CLUSTER_BREAK.LVT}else if(t===53356)return d.CLUSTER_BREAK.LV}else if(t<53384){if(53357<=t&&t<=53383)return d.CLUSTER_BREAK.LVT}else if(t<53385){if(t===53384)return d.CLUSTER_BREAK.LV}else if(53385<=t&&t<=53411)return d.CLUSTER_BREAK.LVT}else if(t<53553){if(t<53469){if(t<53440){if(t<53413){if(t===53412)return d.CLUSTER_BREAK.LV}else if(53413<=t&&t<=53439)return d.CLUSTER_BREAK.LVT}else if(t<53441){if(t===53440)return d.CLUSTER_BREAK.LV}else if(t<53468){if(53441<=t&&t<=53467)return d.CLUSTER_BREAK.LVT}else if(t===53468)return d.CLUSTER_BREAK.LV}else if(t<53524){if(t<53496){if(53469<=t&&t<=53495)return d.CLUSTER_BREAK.LVT}else if(t<53497){if(t===53496)return d.CLUSTER_BREAK.LV}else if(53497<=t&&t<=53523)return d.CLUSTER_BREAK.LVT}else if(t<53525){if(t===53524)return d.CLUSTER_BREAK.LV}else if(t<53552){if(53525<=t&&t<=53551)return d.CLUSTER_BREAK.LVT}else if(t===53552)return d.CLUSTER_BREAK.LV}else if(t<53636){if(t<53581){if(t<53580){if(53553<=t&&t<=53579)return d.CLUSTER_BREAK.LVT}else if(t===53580)return d.CLUSTER_BREAK.LV}else if(t<53608){if(53581<=t&&t<=53607)return d.CLUSTER_BREAK.LVT}else if(t<53609){if(t===53608)return d.CLUSTER_BREAK.LV}else if(53609<=t&&t<=53635)return d.CLUSTER_BREAK.LVT}else if(t<53665){if(t<53637){if(t===53636)return d.CLUSTER_BREAK.LV}else if(t<53664){if(53637<=t&&t<=53663)return d.CLUSTER_BREAK.LVT}else if(t===53664)return d.CLUSTER_BREAK.LV}else if(t<53692){if(53665<=t&&t<=53691)return d.CLUSTER_BREAK.LVT}else if(t<53693){if(t===53692)return d.CLUSTER_BREAK.LV}else if(53693<=t&&t<=53719)return d.CLUSTER_BREAK.LVT}else if(t<70459){if(t<54897){if(t<54308){if(t<54001){if(t<53860){if(t<53777){if(t<53748){if(t<53721){if(t===53720)return d.CLUSTER_BREAK.LV}else if(53721<=t&&t<=53747)return d.CLUSTER_BREAK.LVT}else if(t<53749){if(t===53748)return d.CLUSTER_BREAK.LV}else if(t<53776){if(53749<=t&&t<=53775)return d.CLUSTER_BREAK.LVT}else if(t===53776)return d.CLUSTER_BREAK.LV}else if(t<53805){if(t<53804){if(53777<=t&&t<=53803)return d.CLUSTER_BREAK.LVT}else if(t===53804)return d.CLUSTER_BREAK.LV}else if(t<53832){if(53805<=t&&t<=53831)return d.CLUSTER_BREAK.LVT}else if(t<53833){if(t===53832)return d.CLUSTER_BREAK.LV}else if(53833<=t&&t<=53859)return d.CLUSTER_BREAK.LVT}else if(t<53917){if(t<53888){if(t<53861){if(t===53860)return d.CLUSTER_BREAK.LV}else if(53861<=t&&t<=53887)return d.CLUSTER_BREAK.LVT}else if(t<53889){if(t===53888)return d.CLUSTER_BREAK.LV}else if(t<53916){if(53889<=t&&t<=53915)return d.CLUSTER_BREAK.LVT}else if(t===53916)return d.CLUSTER_BREAK.LV}else if(t<53972){if(t<53944){if(53917<=t&&t<=53943)return d.CLUSTER_BREAK.LVT}else if(t<53945){if(t===53944)return d.CLUSTER_BREAK.LV}else if(53945<=t&&t<=53971)return d.CLUSTER_BREAK.LVT}else if(t<53973){if(t===53972)return d.CLUSTER_BREAK.LV}else if(t<54e3){if(53973<=t&&t<=53999)return d.CLUSTER_BREAK.LVT}else if(t===54e3)return d.CLUSTER_BREAK.LV}else if(t<54141){if(t<54084){if(t<54029){if(t<54028){if(54001<=t&&t<=54027)return d.CLUSTER_BREAK.LVT}else if(t===54028)return d.CLUSTER_BREAK.LV}else if(t<54056){if(54029<=t&&t<=54055)return d.CLUSTER_BREAK.LVT}else if(t<54057){if(t===54056)return d.CLUSTER_BREAK.LV}else if(54057<=t&&t<=54083)return d.CLUSTER_BREAK.LVT}else if(t<54112){if(t<54085){if(t===54084)return d.CLUSTER_BREAK.LV}else if(54085<=t&&t<=54111)return d.CLUSTER_BREAK.LVT}else if(t<54113){if(t===54112)return d.CLUSTER_BREAK.LV}else if(t<54140){if(54113<=t&&t<=54139)return d.CLUSTER_BREAK.LVT}else if(t===54140)return d.CLUSTER_BREAK.LV}else if(t<54224){if(t<54169){if(t<54168){if(54141<=t&&t<=54167)return d.CLUSTER_BREAK.LVT}else if(t===54168)return d.CLUSTER_BREAK.LV}else if(t<54196){if(54169<=t&&t<=54195)return d.CLUSTER_BREAK.LVT}else if(t<54197){if(t===54196)return d.CLUSTER_BREAK.LV}else if(54197<=t&&t<=54223)return d.CLUSTER_BREAK.LVT}else if(t<54253){if(t<54225){if(t===54224)return d.CLUSTER_BREAK.LV}else if(t<54252){if(54225<=t&&t<=54251)return d.CLUSTER_BREAK.LVT}else if(t===54252)return d.CLUSTER_BREAK.LV}else if(t<54280){if(54253<=t&&t<=54279)return d.CLUSTER_BREAK.LVT}else if(t<54281){if(t===54280)return d.CLUSTER_BREAK.LV}else if(54281<=t&&t<=54307)return d.CLUSTER_BREAK.LVT}else if(t<54589){if(t<54448){if(t<54365){if(t<54336){if(t<54309){if(t===54308)return d.CLUSTER_BREAK.LV}else if(54309<=t&&t<=54335)return d.CLUSTER_BREAK.LVT}else if(t<54337){if(t===54336)return d.CLUSTER_BREAK.LV}else if(t<54364){if(54337<=t&&t<=54363)return d.CLUSTER_BREAK.LVT}else if(t===54364)return d.CLUSTER_BREAK.LV}else if(t<54393){if(t<54392){if(54365<=t&&t<=54391)return d.CLUSTER_BREAK.LVT}else if(t===54392)return d.CLUSTER_BREAK.LV}else if(t<54420){if(54393<=t&&t<=54419)return d.CLUSTER_BREAK.LVT}else if(t<54421){if(t===54420)return d.CLUSTER_BREAK.LV}else if(54421<=t&&t<=54447)return d.CLUSTER_BREAK.LVT}else if(t<54505){if(t<54476){if(t<54449){if(t===54448)return d.CLUSTER_BREAK.LV}else if(54449<=t&&t<=54475)return d.CLUSTER_BREAK.LVT}else if(t<54477){if(t===54476)return d.CLUSTER_BREAK.LV}else if(t<54504){if(54477<=t&&t<=54503)return d.CLUSTER_BREAK.LVT}else if(t===54504)return d.CLUSTER_BREAK.LV}else if(t<54560){if(t<54532){if(54505<=t&&t<=54531)return d.CLUSTER_BREAK.LVT}else if(t<54533){if(t===54532)return d.CLUSTER_BREAK.LV}else if(54533<=t&&t<=54559)return d.CLUSTER_BREAK.LVT}else if(t<54561){if(t===54560)return d.CLUSTER_BREAK.LV}else if(t<54588){if(54561<=t&&t<=54587)return d.CLUSTER_BREAK.LVT}else if(t===54588)return d.CLUSTER_BREAK.LV}else if(t<54756){if(t<54672){if(t<54617){if(t<54616){if(54589<=t&&t<=54615)return d.CLUSTER_BREAK.LVT}else if(t===54616)return d.CLUSTER_BREAK.LV}else if(t<54644){if(54617<=t&&t<=54643)return d.CLUSTER_BREAK.LVT}else if(t<54645){if(t===54644)return d.CLUSTER_BREAK.LV}else if(54645<=t&&t<=54671)return d.CLUSTER_BREAK.LVT}else if(t<54701){if(t<54673){if(t===54672)return d.CLUSTER_BREAK.LV}else if(t<54700){if(54673<=t&&t<=54699)return d.CLUSTER_BREAK.LVT}else if(t===54700)return d.CLUSTER_BREAK.LV}else if(t<54728){if(54701<=t&&t<=54727)return d.CLUSTER_BREAK.LVT}else if(t<54729){if(t===54728)return d.CLUSTER_BREAK.LV}else if(54729<=t&&t<=54755)return d.CLUSTER_BREAK.LVT}else if(t<54813){if(t<54784){if(t<54757){if(t===54756)return d.CLUSTER_BREAK.LV}else if(54757<=t&&t<=54783)return d.CLUSTER_BREAK.LVT}else if(t<54785){if(t===54784)return d.CLUSTER_BREAK.LV}else if(t<54812){if(54785<=t&&t<=54811)return d.CLUSTER_BREAK.LVT}else if(t===54812)return d.CLUSTER_BREAK.LV}else if(t<54868){if(t<54840){if(54813<=t&&t<=54839)return d.CLUSTER_BREAK.LVT}else if(t<54841){if(t===54840)return d.CLUSTER_BREAK.LV}else if(54841<=t&&t<=54867)return d.CLUSTER_BREAK.LVT}else if(t<54869){if(t===54868)return d.CLUSTER_BREAK.LV}else if(t<54896){if(54869<=t&&t<=54895)return d.CLUSTER_BREAK.LVT}else if(t===54896)return d.CLUSTER_BREAK.LV}else if(t<69632){if(t<55216){if(t<55037){if(t<54980){if(t<54925){if(t<54924){if(54897<=t&&t<=54923)return d.CLUSTER_BREAK.LVT}else if(t===54924)return d.CLUSTER_BREAK.LV}else if(t<54952){if(54925<=t&&t<=54951)return d.CLUSTER_BREAK.LVT}else if(t<54953){if(t===54952)return d.CLUSTER_BREAK.LV}else if(54953<=t&&t<=54979)return d.CLUSTER_BREAK.LVT}else if(t<55008){if(t<54981){if(t===54980)return d.CLUSTER_BREAK.LV}else if(54981<=t&&t<=55007)return d.CLUSTER_BREAK.LVT}else if(t<55009){if(t===55008)return d.CLUSTER_BREAK.LV}else if(t<55036){if(55009<=t&&t<=55035)return d.CLUSTER_BREAK.LVT}else if(t===55036)return d.CLUSTER_BREAK.LV}else if(t<55120){if(t<55065){if(t<55064){if(55037<=t&&t<=55063)return d.CLUSTER_BREAK.LVT}else if(t===55064)return d.CLUSTER_BREAK.LV}else if(t<55092){if(55065<=t&&t<=55091)return d.CLUSTER_BREAK.LVT}else if(t<55093){if(t===55092)return d.CLUSTER_BREAK.LV}else if(55093<=t&&t<=55119)return d.CLUSTER_BREAK.LVT}else if(t<55149){if(t<55121){if(t===55120)return d.CLUSTER_BREAK.LV}else if(t<55148){if(55121<=t&&t<=55147)return d.CLUSTER_BREAK.LVT}else if(t===55148)return d.CLUSTER_BREAK.LV}else if(t<55176){if(55149<=t&&t<=55175)return d.CLUSTER_BREAK.LVT}else if(t<55177){if(t===55176)return d.CLUSTER_BREAK.LV}else if(55177<=t&&t<=55203)return d.CLUSTER_BREAK.LVT}else if(t<68097){if(t<65279){if(t<64286){if(t<55243){if(55216<=t&&t<=55238)return d.CLUSTER_BREAK.V}else if(55243<=t&&t<=55291)return d.CLUSTER_BREAK.T}else if(t<65024){if(t===64286)return d.CLUSTER_BREAK.EXTEND}else if(t<65056){if(65024<=t&&t<=65039)return d.CLUSTER_BREAK.EXTEND}else if(65056<=t&&t<=65071)return d.CLUSTER_BREAK.EXTEND}else if(t<66045){if(t<65438){if(t===65279)return d.CLUSTER_BREAK.CONTROL}else if(t<65520){if(65438<=t&&t<=65439)return d.CLUSTER_BREAK.EXTEND}else if(65520<=t&&t<=65531)return d.CLUSTER_BREAK.CONTROL}else if(t<66272){if(t===66045)return d.CLUSTER_BREAK.EXTEND}else if(t<66422){if(t===66272)return d.CLUSTER_BREAK.EXTEND}else if(66422<=t&&t<=66426)return d.CLUSTER_BREAK.EXTEND}else if(t<68325){if(t<68108){if(t<68101){if(68097<=t&&t<=68099)return d.CLUSTER_BREAK.EXTEND}else if(68101<=t&&t<=68102)return d.CLUSTER_BREAK.EXTEND}else if(t<68152){if(68108<=t&&t<=68111)return d.CLUSTER_BREAK.EXTEND}else if(t<68159){if(68152<=t&&t<=68154)return d.CLUSTER_BREAK.EXTEND}else if(t===68159)return d.CLUSTER_BREAK.EXTEND}else if(t<69373){if(t<68900){if(68325<=t&&t<=68326)return d.CLUSTER_BREAK.EXTEND}else if(t<69291){if(68900<=t&&t<=68903)return d.CLUSTER_BREAK.EXTEND}else if(69291<=t&&t<=69292)return d.CLUSTER_BREAK.EXTEND}else if(t<69446){if(69373<=t&&t<=69375)return d.CLUSTER_BREAK.EXTEND}else if(t<69506){if(69446<=t&&t<=69456)return d.CLUSTER_BREAK.EXTEND}else if(69506<=t&&t<=69509)return d.CLUSTER_BREAK.EXTEND}else if(t<70016){if(t<69815){if(t<69747){if(t<69634){if(t===69632)return d.CLUSTER_BREAK.SPACINGMARK;if(t===69633)return d.CLUSTER_BREAK.EXTEND}else if(t<69688){if(t===69634)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69744){if(69688<=t&&t<=69702)return d.CLUSTER_BREAK.EXTEND}else if(t===69744)return d.CLUSTER_BREAK.EXTEND}else if(t<69762){if(t<69759){if(69747<=t&&t<=69748)return d.CLUSTER_BREAK.EXTEND}else if(69759<=t&&t<=69761)return d.CLUSTER_BREAK.EXTEND}else if(t<69808){if(t===69762)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69811){if(69808<=t&&t<=69810)return d.CLUSTER_BREAK.SPACINGMARK}else if(69811<=t&&t<=69814)return d.CLUSTER_BREAK.EXTEND}else if(t<69888)if(t<69821){if(t<69817){if(69815<=t&&t<=69816)return d.CLUSTER_BREAK.SPACINGMARK}else if(69817<=t&&t<=69818)return d.CLUSTER_BREAK.EXTEND}else if(t<69826){if(t===69821)return d.CLUSTER_BREAK.PREPEND}else{if(t===69826)return d.CLUSTER_BREAK.EXTEND;if(t===69837)return d.CLUSTER_BREAK.PREPEND}else if(t<69933){if(t<69927){if(69888<=t&&t<=69890)return d.CLUSTER_BREAK.EXTEND}else if(t<69932){if(69927<=t&&t<=69931)return d.CLUSTER_BREAK.EXTEND}else if(t===69932)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69957){if(69933<=t&&t<=69940)return d.CLUSTER_BREAK.EXTEND}else if(t<70003){if(69957<=t&&t<=69958)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70003)return d.CLUSTER_BREAK.EXTEND}else if(t<70194){if(t<70082){if(t<70067){if(t<70018){if(70016<=t&&t<=70017)return d.CLUSTER_BREAK.EXTEND}else if(t===70018)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70070){if(70067<=t&&t<=70069)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70079){if(70070<=t&&t<=70078)return d.CLUSTER_BREAK.EXTEND}else if(70079<=t&&t<=70080)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70095){if(t<70089){if(70082<=t&&t<=70083)return d.CLUSTER_BREAK.PREPEND}else if(t<70094){if(70089<=t&&t<=70092)return d.CLUSTER_BREAK.EXTEND}else if(t===70094)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70188){if(t===70095)return d.CLUSTER_BREAK.EXTEND}else if(t<70191){if(70188<=t&&t<=70190)return d.CLUSTER_BREAK.SPACINGMARK}else if(70191<=t&&t<=70193)return d.CLUSTER_BREAK.EXTEND}else if(t<70209){if(t<70197){if(t<70196){if(70194<=t&&t<=70195)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70196)return d.CLUSTER_BREAK.EXTEND}else if(t<70198){if(t===70197)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70206){if(70198<=t&&t<=70199)return d.CLUSTER_BREAK.EXTEND}else if(t===70206)return d.CLUSTER_BREAK.EXTEND}else if(t<70371){if(t<70367){if(t===70209)return d.CLUSTER_BREAK.EXTEND}else if(t<70368){if(t===70367)return d.CLUSTER_BREAK.EXTEND}else if(70368<=t&&t<=70370)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70400){if(70371<=t&&t<=70378)return d.CLUSTER_BREAK.EXTEND}else if(t<70402){if(70400<=t&&t<=70401)return d.CLUSTER_BREAK.EXTEND}else if(70402<=t&&t<=70403)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72343){if(t<71339){if(t<70841){if(t<70512){if(t<70471){if(t<70463){if(t<70462){if(70459<=t&&t<=70460)return d.CLUSTER_BREAK.EXTEND}else if(t===70462)return d.CLUSTER_BREAK.EXTEND}else if(t<70464){if(t===70463)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70465){if(t===70464)return d.CLUSTER_BREAK.EXTEND}else if(70465<=t&&t<=70468)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70487){if(t<70475){if(70471<=t&&t<=70472)return d.CLUSTER_BREAK.SPACINGMARK}else if(70475<=t&&t<=70477)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70498){if(t===70487)return d.CLUSTER_BREAK.EXTEND}else if(t<70502){if(70498<=t&&t<=70499)return d.CLUSTER_BREAK.SPACINGMARK}else if(70502<=t&&t<=70508)return d.CLUSTER_BREAK.EXTEND}else if(t<70725){if(t<70712){if(t<70709){if(70512<=t&&t<=70516)return d.CLUSTER_BREAK.EXTEND}else if(70709<=t&&t<=70711)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70720){if(70712<=t&&t<=70719)return d.CLUSTER_BREAK.EXTEND}else if(t<70722){if(70720<=t&&t<=70721)return d.CLUSTER_BREAK.SPACINGMARK}else if(70722<=t&&t<=70724)return d.CLUSTER_BREAK.EXTEND}else if(t<70832){if(t<70726){if(t===70725)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70726||t===70750)return d.CLUSTER_BREAK.EXTEND}else if(t<70833){if(t===70832)return d.CLUSTER_BREAK.EXTEND}else if(t<70835){if(70833<=t&&t<=70834)return d.CLUSTER_BREAK.SPACINGMARK}else if(70835<=t&&t<=70840)return d.CLUSTER_BREAK.EXTEND}else if(t<71096){if(t<70847)if(t<70843){if(t===70841)return d.CLUSTER_BREAK.SPACINGMARK;if(t===70842)return d.CLUSTER_BREAK.EXTEND}else if(t<70845){if(70843<=t&&t<=70844)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===70845)return d.CLUSTER_BREAK.EXTEND;if(t===70846)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71087){if(t<70849){if(70847<=t&&t<=70848)return d.CLUSTER_BREAK.EXTEND}else if(t<70850){if(t===70849)return d.CLUSTER_BREAK.SPACINGMARK}else if(70850<=t&&t<=70851)return d.CLUSTER_BREAK.EXTEND}else if(t<71088){if(t===71087)return d.CLUSTER_BREAK.EXTEND}else if(t<71090){if(71088<=t&&t<=71089)return d.CLUSTER_BREAK.SPACINGMARK}else if(71090<=t&&t<=71093)return d.CLUSTER_BREAK.EXTEND}else if(t<71216){if(t<71102){if(t<71100){if(71096<=t&&t<=71099)return d.CLUSTER_BREAK.SPACINGMARK}else if(71100<=t&&t<=71101)return d.CLUSTER_BREAK.EXTEND}else if(t<71103){if(t===71102)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71132){if(71103<=t&&t<=71104)return d.CLUSTER_BREAK.EXTEND}else if(71132<=t&&t<=71133)return d.CLUSTER_BREAK.EXTEND}else if(t<71229){if(t<71219){if(71216<=t&&t<=71218)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71227){if(71219<=t&&t<=71226)return d.CLUSTER_BREAK.EXTEND}else if(71227<=t&&t<=71228)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71230){if(t===71229)return d.CLUSTER_BREAK.EXTEND}else if(t<71231){if(t===71230)return d.CLUSTER_BREAK.SPACINGMARK}else if(71231<=t&&t<=71232)return d.CLUSTER_BREAK.EXTEND}else if(t<71999)if(t<71463){if(t<71350){if(t<71341){if(t===71339)return d.CLUSTER_BREAK.EXTEND;if(t===71340)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71342){if(t===71341)return d.CLUSTER_BREAK.EXTEND}else if(t<71344){if(71342<=t&&t<=71343)return d.CLUSTER_BREAK.SPACINGMARK}else if(71344<=t&&t<=71349)return d.CLUSTER_BREAK.EXTEND}else if(t<71453){if(t===71350)return d.CLUSTER_BREAK.SPACINGMARK;if(t===71351)return d.CLUSTER_BREAK.EXTEND}else if(t<71458){if(71453<=t&&t<=71455)return d.CLUSTER_BREAK.EXTEND}else if(t<71462){if(71458<=t&&t<=71461)return d.CLUSTER_BREAK.EXTEND}else if(t===71462)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71984){if(t<71727){if(t<71724){if(71463<=t&&t<=71467)return d.CLUSTER_BREAK.EXTEND}else if(71724<=t&&t<=71726)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71736){if(71727<=t&&t<=71735)return d.CLUSTER_BREAK.EXTEND}else if(t<71737){if(t===71736)return d.CLUSTER_BREAK.SPACINGMARK}else if(71737<=t&&t<=71738)return d.CLUSTER_BREAK.EXTEND}else if(t<71995){if(t<71985){if(t===71984)return d.CLUSTER_BREAK.EXTEND}else if(t<71991){if(71985<=t&&t<=71989)return d.CLUSTER_BREAK.SPACINGMARK}else if(71991<=t&&t<=71992)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71997){if(71995<=t&&t<=71996)return d.CLUSTER_BREAK.EXTEND}else{if(t===71997)return d.CLUSTER_BREAK.SPACINGMARK;if(t===71998)return d.CLUSTER_BREAK.EXTEND}else if(t<72193)if(t<72145)if(t<72001){if(t===71999)return d.CLUSTER_BREAK.PREPEND;if(t===72e3)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72002){if(t===72001)return d.CLUSTER_BREAK.PREPEND}else{if(t===72002)return d.CLUSTER_BREAK.SPACINGMARK;if(t===72003)return d.CLUSTER_BREAK.EXTEND}else if(t<72156){if(t<72148){if(72145<=t&&t<=72147)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72154){if(72148<=t&&t<=72151)return d.CLUSTER_BREAK.EXTEND}else if(72154<=t&&t<=72155)return d.CLUSTER_BREAK.EXTEND}else if(t<72160){if(72156<=t&&t<=72159)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===72160)return d.CLUSTER_BREAK.EXTEND;if(t===72164)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72263){if(t<72249){if(t<72243){if(72193<=t&&t<=72202)return d.CLUSTER_BREAK.EXTEND}else if(72243<=t&&t<=72248)return d.CLUSTER_BREAK.EXTEND}else if(t<72250){if(t===72249)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72251){if(t===72250)return d.CLUSTER_BREAK.PREPEND}else if(72251<=t&&t<=72254)return d.CLUSTER_BREAK.EXTEND}else if(t<72281){if(t<72273){if(t===72263)return d.CLUSTER_BREAK.EXTEND}else if(t<72279){if(72273<=t&&t<=72278)return d.CLUSTER_BREAK.EXTEND}else if(72279<=t&&t<=72280)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72324){if(72281<=t&&t<=72283)return d.CLUSTER_BREAK.EXTEND}else if(t<72330){if(72324<=t&&t<=72329)return d.CLUSTER_BREAK.PREPEND}else if(72330<=t&&t<=72342)return d.CLUSTER_BREAK.EXTEND}else if(t<94033){if(t<73104){if(t<72881){if(t<72766){if(t<72751){if(t<72344){if(t===72343)return d.CLUSTER_BREAK.SPACINGMARK}else if(72344<=t&&t<=72345)return d.CLUSTER_BREAK.EXTEND}else if(t<72752){if(t===72751)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72760){if(72752<=t&&t<=72758)return d.CLUSTER_BREAK.EXTEND}else if(72760<=t&&t<=72765)return d.CLUSTER_BREAK.EXTEND}else if(t<72850){if(t===72766)return d.CLUSTER_BREAK.SPACINGMARK;if(t===72767)return d.CLUSTER_BREAK.EXTEND}else if(t<72873){if(72850<=t&&t<=72871)return d.CLUSTER_BREAK.EXTEND}else if(t<72874){if(t===72873)return d.CLUSTER_BREAK.SPACINGMARK}else if(72874<=t&&t<=72880)return d.CLUSTER_BREAK.EXTEND}else if(t<73018){if(t<72884){if(t<72882){if(t===72881)return d.CLUSTER_BREAK.SPACINGMARK}else if(72882<=t&&t<=72883)return d.CLUSTER_BREAK.EXTEND}else if(t<72885){if(t===72884)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73009){if(72885<=t&&t<=72886)return d.CLUSTER_BREAK.EXTEND}else if(73009<=t&&t<=73014)return d.CLUSTER_BREAK.EXTEND}else if(t<73030){if(t<73020){if(t===73018)return d.CLUSTER_BREAK.EXTEND}else if(t<73023){if(73020<=t&&t<=73021)return d.CLUSTER_BREAK.EXTEND}else if(73023<=t&&t<=73029)return d.CLUSTER_BREAK.EXTEND}else if(t<73031){if(t===73030)return d.CLUSTER_BREAK.PREPEND}else if(t<73098){if(t===73031)return d.CLUSTER_BREAK.EXTEND}else if(73098<=t&&t<=73102)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73526){if(t<73459)if(t<73109){if(t<73107){if(73104<=t&&t<=73105)return d.CLUSTER_BREAK.EXTEND}else if(73107<=t&&t<=73108)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73110){if(t===73109)return d.CLUSTER_BREAK.EXTEND}else{if(t===73110)return d.CLUSTER_BREAK.SPACINGMARK;if(t===73111)return d.CLUSTER_BREAK.EXTEND}else if(t<73474){if(t<73461){if(73459<=t&&t<=73460)return d.CLUSTER_BREAK.EXTEND}else if(t<73472){if(73461<=t&&t<=73462)return d.CLUSTER_BREAK.SPACINGMARK}else if(73472<=t&&t<=73473)return d.CLUSTER_BREAK.EXTEND}else if(t<73475){if(t===73474)return d.CLUSTER_BREAK.PREPEND}else if(t<73524){if(t===73475)return d.CLUSTER_BREAK.SPACINGMARK}else if(73524<=t&&t<=73525)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<78896)if(t<73536){if(t<73534){if(73526<=t&&t<=73530)return d.CLUSTER_BREAK.EXTEND}else if(73534<=t&&t<=73535)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73537){if(t===73536)return d.CLUSTER_BREAK.EXTEND}else{if(t===73537)return d.CLUSTER_BREAK.SPACINGMARK;if(t===73538)return d.CLUSTER_BREAK.EXTEND}else if(t<92912){if(t<78912){if(78896<=t&&t<=78911)return d.CLUSTER_BREAK.CONTROL}else if(t<78919){if(t===78912)return d.CLUSTER_BREAK.EXTEND}else if(78919<=t&&t<=78933)return d.CLUSTER_BREAK.EXTEND}else if(t<92976){if(92912<=t&&t<=92916)return d.CLUSTER_BREAK.EXTEND}else if(t<94031){if(92976<=t&&t<=92982)return d.CLUSTER_BREAK.EXTEND}else if(t===94031)return d.CLUSTER_BREAK.EXTEND}else if(t<121476){if(t<119143)if(t<113824){if(t<94180){if(t<94095){if(94033<=t&&t<=94087)return d.CLUSTER_BREAK.SPACINGMARK}else if(94095<=t&&t<=94098)return d.CLUSTER_BREAK.EXTEND}else if(t<94192){if(t===94180)return d.CLUSTER_BREAK.EXTEND}else if(t<113821){if(94192<=t&&t<=94193)return d.CLUSTER_BREAK.SPACINGMARK}else if(113821<=t&&t<=113822)return d.CLUSTER_BREAK.EXTEND}else if(t<118576){if(t<118528){if(113824<=t&&t<=113827)return d.CLUSTER_BREAK.CONTROL}else if(118528<=t&&t<=118573)return d.CLUSTER_BREAK.EXTEND}else if(t<119141){if(118576<=t&&t<=118598)return d.CLUSTER_BREAK.EXTEND}else{if(t===119141)return d.CLUSTER_BREAK.EXTEND;if(t===119142)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<119173){if(t<119150){if(t<119149){if(119143<=t&&t<=119145)return d.CLUSTER_BREAK.EXTEND}else if(t===119149)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<119155){if(119150<=t&&t<=119154)return d.CLUSTER_BREAK.EXTEND}else if(t<119163){if(119155<=t&&t<=119162)return d.CLUSTER_BREAK.CONTROL}else if(119163<=t&&t<=119170)return d.CLUSTER_BREAK.EXTEND}else if(t<121344){if(t<119210){if(119173<=t&&t<=119179)return d.CLUSTER_BREAK.EXTEND}else if(t<119362){if(119210<=t&&t<=119213)return d.CLUSTER_BREAK.EXTEND}else if(119362<=t&&t<=119364)return d.CLUSTER_BREAK.EXTEND}else if(t<121403){if(121344<=t&&t<=121398)return d.CLUSTER_BREAK.EXTEND}else if(t<121461){if(121403<=t&&t<=121452)return d.CLUSTER_BREAK.EXTEND}else if(t===121461)return d.CLUSTER_BREAK.EXTEND}else if(t<123628){if(t<122907){if(t<121505){if(t<121499){if(t===121476)return d.CLUSTER_BREAK.EXTEND}else if(121499<=t&&t<=121503)return d.CLUSTER_BREAK.EXTEND}else if(t<122880){if(121505<=t&&t<=121519)return d.CLUSTER_BREAK.EXTEND}else if(t<122888){if(122880<=t&&t<=122886)return d.CLUSTER_BREAK.EXTEND}else if(122888<=t&&t<=122904)return d.CLUSTER_BREAK.EXTEND}else if(t<123023){if(t<122915){if(122907<=t&&t<=122913)return d.CLUSTER_BREAK.EXTEND}else if(t<122918){if(122915<=t&&t<=122916)return d.CLUSTER_BREAK.EXTEND}else if(122918<=t&&t<=122922)return d.CLUSTER_BREAK.EXTEND}else if(t<123184){if(t===123023)return d.CLUSTER_BREAK.EXTEND}else if(t<123566){if(123184<=t&&t<=123190)return d.CLUSTER_BREAK.EXTEND}else if(t===123566)return d.CLUSTER_BREAK.EXTEND}else if(t<127995){if(t<125136){if(t<124140){if(123628<=t&&t<=123631)return d.CLUSTER_BREAK.EXTEND}else if(124140<=t&&t<=124143)return d.CLUSTER_BREAK.EXTEND}else if(t<125252){if(125136<=t&&t<=125142)return d.CLUSTER_BREAK.EXTEND}else if(t<127462){if(125252<=t&&t<=125258)return d.CLUSTER_BREAK.EXTEND}else if(127462<=t&&t<=127487)return d.CLUSTER_BREAK.REGIONAL_INDICATOR}else if(t<917632){if(t<917504){if(127995<=t&&t<=127999)return d.CLUSTER_BREAK.EXTEND}else if(t<917536){if(917504<=t&&t<=917535)return d.CLUSTER_BREAK.CONTROL}else if(917536<=t&&t<=917631)return d.CLUSTER_BREAK.EXTEND}else if(t<917760){if(917632<=t&&t<=917759)return d.CLUSTER_BREAK.CONTROL}else if(t<918e3){if(917760<=t&&t<=917999)return d.CLUSTER_BREAK.EXTEND}else if(918e3<=t&&t<=921599)return d.CLUSTER_BREAK.CONTROL;return d.CLUSTER_BREAK.OTHER}static getEmojiProperty(t){if(t<10160){if(t<9728){if(t<9e3){if(t<8482){if(t<8252){if(t===169||t===174)return d.EXTENDED_PICTOGRAPHIC}else if(t===8252||t===8265)return d.EXTENDED_PICTOGRAPHIC}else if(t<8596){if(t===8482||t===8505)return d.EXTENDED_PICTOGRAPHIC}else if(t<8617){if(8596<=t&&t<=8601)return d.EXTENDED_PICTOGRAPHIC}else if(t<8986){if(8617<=t&&t<=8618)return d.EXTENDED_PICTOGRAPHIC}else if(8986<=t&&t<=8987)return d.EXTENDED_PICTOGRAPHIC}else if(t<9410){if(t<9167){if(t===9e3||t===9096)return d.EXTENDED_PICTOGRAPHIC}else if(t<9193){if(t===9167)return d.EXTENDED_PICTOGRAPHIC}else if(t<9208){if(9193<=t&&t<=9203)return d.EXTENDED_PICTOGRAPHIC}else if(9208<=t&&t<=9210)return d.EXTENDED_PICTOGRAPHIC}else if(t<9654){if(t<9642){if(t===9410)return d.EXTENDED_PICTOGRAPHIC}else if(9642<=t&&t<=9643)return d.EXTENDED_PICTOGRAPHIC}else if(t<9664){if(t===9654)return d.EXTENDED_PICTOGRAPHIC}else if(t<9723){if(t===9664)return d.EXTENDED_PICTOGRAPHIC}else if(9723<=t&&t<=9726)return d.EXTENDED_PICTOGRAPHIC}else if(t<10035){if(t<10004){if(t<9748){if(t<9735){if(9728<=t&&t<=9733)return d.EXTENDED_PICTOGRAPHIC}else if(9735<=t&&t<=9746)return d.EXTENDED_PICTOGRAPHIC}else if(t<9872){if(9748<=t&&t<=9861)return d.EXTENDED_PICTOGRAPHIC}else if(t<9992){if(9872<=t&&t<=9989)return d.EXTENDED_PICTOGRAPHIC}else if(9992<=t&&t<=10002)return d.EXTENDED_PICTOGRAPHIC}else if(t<10013){if(t===10004||t===10006)return d.EXTENDED_PICTOGRAPHIC}else if(t<10017){if(t===10013)return d.EXTENDED_PICTOGRAPHIC}else if(t===10017||t===10024)return d.EXTENDED_PICTOGRAPHIC}else if(t<10067){if(t<10055){if(t<10052){if(10035<=t&&t<=10036)return d.EXTENDED_PICTOGRAPHIC}else if(t===10052)return d.EXTENDED_PICTOGRAPHIC}else if(t<10060){if(t===10055)return d.EXTENDED_PICTOGRAPHIC}else if(t===10060||t===10062)return d.EXTENDED_PICTOGRAPHIC}else if(t<10083){if(t<10071){if(10067<=t&&t<=10069)return d.EXTENDED_PICTOGRAPHIC}else if(t===10071)return d.EXTENDED_PICTOGRAPHIC}else if(t<10133){if(10083<=t&&t<=10087)return d.EXTENDED_PICTOGRAPHIC}else if(t<10145){if(10133<=t&&t<=10135)return d.EXTENDED_PICTOGRAPHIC}else if(t===10145)return d.EXTENDED_PICTOGRAPHIC}else if(t<127489){if(t<12951){if(t<11035){if(t<10548){if(t===10160||t===10175)return d.EXTENDED_PICTOGRAPHIC}else if(t<11013){if(10548<=t&&t<=10549)return d.EXTENDED_PICTOGRAPHIC}else if(11013<=t&&t<=11015)return d.EXTENDED_PICTOGRAPHIC}else if(t<11093){if(t<11088){if(11035<=t&&t<=11036)return d.EXTENDED_PICTOGRAPHIC}else if(t===11088)return d.EXTENDED_PICTOGRAPHIC}else if(t<12336){if(t===11093)return d.EXTENDED_PICTOGRAPHIC}else if(t===12336||t===12349)return d.EXTENDED_PICTOGRAPHIC}else if(t<127340){if(t<126976){if(t===12951||t===12953)return d.EXTENDED_PICTOGRAPHIC}else if(t<127245){if(126976<=t&&t<=127231)return d.EXTENDED_PICTOGRAPHIC}else if(t<127279){if(127245<=t&&t<=127247)return d.EXTENDED_PICTOGRAPHIC}else if(t===127279)return d.EXTENDED_PICTOGRAPHIC}else if(t<127374){if(t<127358){if(127340<=t&&t<=127345)return d.EXTENDED_PICTOGRAPHIC}else if(127358<=t&&t<=127359)return d.EXTENDED_PICTOGRAPHIC}else if(t<127377){if(t===127374)return d.EXTENDED_PICTOGRAPHIC}else if(t<127405){if(127377<=t&&t<=127386)return d.EXTENDED_PICTOGRAPHIC}else if(127405<=t&&t<=127461)return d.EXTENDED_PICTOGRAPHIC}else if(t<128981){if(t<127561){if(t<127535){if(t<127514){if(127489<=t&&t<=127503)return d.EXTENDED_PICTOGRAPHIC}else if(t===127514)return d.EXTENDED_PICTOGRAPHIC}else if(t<127538){if(t===127535)return d.EXTENDED_PICTOGRAPHIC}else if(t<127548){if(127538<=t&&t<=127546)return d.EXTENDED_PICTOGRAPHIC}else if(127548<=t&&t<=127551)return d.EXTENDED_PICTOGRAPHIC}else if(t<128326){if(t<128e3){if(127561<=t&&t<=127994)return d.EXTENDED_PICTOGRAPHIC}else if(128e3<=t&&t<=128317)return d.EXTENDED_PICTOGRAPHIC}else if(t<128640){if(128326<=t&&t<=128591)return d.EXTENDED_PICTOGRAPHIC}else if(t<128884){if(128640<=t&&t<=128767)return d.EXTENDED_PICTOGRAPHIC}else if(128884<=t&&t<=128895)return d.EXTENDED_PICTOGRAPHIC}else if(t<129198){if(t<129096){if(t<129036){if(128981<=t&&t<=129023)return d.EXTENDED_PICTOGRAPHIC}else if(129036<=t&&t<=129039)return d.EXTENDED_PICTOGRAPHIC}else if(t<129114){if(129096<=t&&t<=129103)return d.EXTENDED_PICTOGRAPHIC}else if(t<129160){if(129114<=t&&t<=129119)return d.EXTENDED_PICTOGRAPHIC}else if(129160<=t&&t<=129167)return d.EXTENDED_PICTOGRAPHIC}else if(t<129340){if(t<129292){if(129198<=t&&t<=129279)return d.EXTENDED_PICTOGRAPHIC}else if(129292<=t&&t<=129338)return d.EXTENDED_PICTOGRAPHIC}else if(t<129351){if(129340<=t&&t<=129349)return d.EXTENDED_PICTOGRAPHIC}else if(t<130048){if(129351<=t&&t<=129791)return d.EXTENDED_PICTOGRAPHIC}else if(130048<=t&&t<=131069)return d.EXTENDED_PICTOGRAPHIC;return d.CLUSTER_BREAK.OTHER}}z1.default=es;var T8=yn&&yn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(x3,"__esModule",{value:!0});const k8=T8(z1);var R8=x3.default=k8.default;const w8=new R8,Ea=_("text-offset");function fl(n,t){const e=eo(n);let r=0;for(let i=0;i<e.length;i++){const o=e[i],s=Zr(o);if(o===t){const l=r+s;return{start:r,end:l}}r+=s}p(Ea,!1,"can not find child in children")}function lr(n,t){p(Ea,t>=0,`invalid offset: ${t}`);const e=Yf(n,t),{prev:r,next:i,offset:o}=e;if(!r&&!i&&p(Ea,!1,"invalid offset, no prev & next child at offset"),r!==i)return!0;const s=r;if(p(Ea,s,"no child"),Rr(s))return p(Ea,o===0||o===1,`invalid box child offset: ${o}`),!0;const l=s.textContent;p(Ea,l,"no content for text child");const c=w8.splitGraphemes(l),f=new Set;let h=0;return c.forEach(C=>{f.add(h),h+=C.length}),f.add(h),!!f.has(o)}function dl(n,t){if(t===0)return 0;const e=t-1;if(lr(n,e))return e;let r=e-1;for(;!lr(n,r);)r-=1;return r}function ba(n,t){const e=Qf(n);if(p(Ea,t>=0&&t<=e,`invalid offset: ${t}, ${e}`),t===e)return e;const r=t+1;if(lr(n,r))return r;let i=r+1;for(;!lr(n,i);)i+=1;return i}const S8=_("line-offset");function Y1(n){const t=nd(n),e=[];let r=0;for(let i=0;i<t.length;i++){const o=t[i];e.push({start:r,end:o.offset}),r=o.offset}return e.push({start:r,end:Qf(n)}),e}function Hm(n,t){const e=Y1(n);return p(S8,t>=0&&t<e.length,`invalid line index: ${t}, ${e.length}`),e[t]}function v3(n,t){const{lineIndex:e}=j1(n,t);return Hm(n,e)}function L8(n){const t=Y1(n),e=n.getBoundingClientRect(),r=[];return t.forEach(({start:i,end:o})=>{const s=mt(n,i,"home");let l=wr(n,s);const c=mt(n,o,"end"),f=wr(n,c);l.top+l.height/2<f.top&&(l=new DOMRect(e.left-1e4,f.top,1,f.height));const h=new DOMRect(l.left,f.top,f.left-l.left,f.height),C=new DOMRect(e.left,f.top,e.width,f.height);r.push({start:i,end:o,rect:C,contentRect:h})}),r}function I8(n,t,e){const i=L8(n).find(s=>fa(s.rect,t,e));if(!i)return null;const o=i.contentRect;return t<=o.left+1?mt(n,i.start,"home"):t>=o.right-1?mt(n,i.end,"end"):null}function B3(n,t,e){const r=wr(n,t),i=wr(n,e),o=r.top+r.height/2,s=i.top+i.height/2,l=i.top<o&&o<i.bottom,c=r.top<s&&s<r.bottom;return l&&c}function y3(n){return Y1(n).length}const xa=_("find-text-position");function T3(n,t){const{start:e,end:r}=Hm(n,t),i=dt(n),o=wr(n,mt(i,e,"home"));if(!(wr(n,mt(i,r,"end")).top>o.top+o.height/2))return!1;const c=Yf(n,e);return p(xa,c.next,"no next child at offset"),p(xa,!Xf(c.next),"next child is not text child"),!0}function D8(n,t){const e=dt(n);p(xa,T3(n,t),"line is not wrapped");const{start:r,end:i}=Hm(n,t),o=mt(e,r,"home");for(let s=r+1;s<=i;s+=1){let l="normal";s===r?l="home":s===i&&(l="end");const c=mt(e,s,l);if(!B3(n,o,c))return s-1}return p(xa,!1,"failed to find wrapped offset"),0}function jm(n,t,e,r,i,o,s){p(xa,at(n,t),`not a text kind block: ${Tt(t)}`);const{start:l,end:c}=Hm(t,e);let f=l;const h=dt(t);if(t===r&&T3(t,e)){const w=D8(t,e);(o==="up"||o==="down"&&B3(t,i,mt(h,l,"home")))&&(f=w+1)}let C=Number.MAX_SAFE_INTEGER;const E=cl(n,r,i),b=s!=null?s:E.left+E.width/2,v=E.top+E.height/2;let k=mt(h,f,"home");for(let w=f;w<=c;w++){if(!lr(t,w))continue;let O="normal";w===l?O="home":w===c&&(O="end");const M=mt(h,w,O),F=wr(t,M),Z=il(F,b,v);Z<C&&(C=Z,k=M)}return k}function _8(n,t,e,r,i){return p(xa,at(n,t),"not a text block"),jm(n,t,y3(t)-1,e,r,"up",i)}function M8(n,t,e,r,i){return p(xa,at(n,t),"not a text block"),jm(n,t,0,e,r,"down",i)}function O8(n,t,e,r){const{lineIndex:i}=j1(t,e);if(i===y3(t)-1)return null;const o=jm(n,t,i+1,t,e,"down",r);return o||null}function U8(n,t){if(t.offset===0)return null;const e=nd(n),r=e.find(i=>i.offset===t.offset);if(!r){const i=dl(n,t.offset);return e.find(s=>s.offset===i)?{offset:i,type:"home"}:{offset:i,type:"normal"}}if(r.type==="betweenChild"){if(t.type==="home"&&r.childInfo.wrap==="nowrap")return{offset:t.offset,type:"end"};if(r.childInfo.prevWrapped)return{offset:dl(n,t.offset),type:"normal"}}return{offset:dl(n,t.offset),type:"normal"}}function N8(n,t){const e=Qf(n);if(t.offset===e)return null;const r=nd(n),i=r.find(o=>o.offset===t.offset);if(!i){const o=ba(n,t.offset),s=r.find(l=>l.offset===o);return s?s.type==="betweenChild"?{offset:o,type:"end"}:{offset:o,type:"home"}:{offset:o,type:"normal"}}return i.type==="betweenChild"?i.childInfo.wrap==="nowrap"&&t.type==="end"?{offset:t.offset,type:"home"}:{offset:ba(n,t.offset),type:"home"}:{offset:ba(n,t.offset),type:"normal"}}function P8(n,t,e,r){const{lineIndex:i}=j1(t,e);if(i===0)return null;const o=jm(n,t,i-1,t,e,"up",r);return o||null}const F8=_("move-caret");function K8(n,t,e,r){if(r==="ArrowLeft"){const i=U8(t,e);return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowRight"){const i=N8(t,e);return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowUp"){const i=P8(n,t,e,n.selection.getSuggestedCaretX());return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowDown"){const i=O8(n,t,e,n.selection.getSuggestedCaretX());return i?mt(dt(t),i.offset,i.type):null}p(F8,!1,`invalid navigation direction: ${r}`)}const J1=_("text-range");function k3(n){const t=[];return eo(n).forEach(r=>{const i=Array.from(r.getClientRects()).map(o=>({rect:o,child:r}));t.push(...i)}),t}function V8(n,t,e){const r=k3(n);for(let i=1;i<r.length;i++){const o=r[i-1],s=r[i];if(t>=o.rect.right&&t<=s.rect.left&&e>=o.rect.top&&e<=o.rect.bottom&&e>=s.rect.top&&e<=s.rect.bottom)return fl(n,s.child).start}return null}function $8(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=t.getBoundingClientRect(),s=k3(t);let l=e,c=r,f=o.left+o.width/2,h=o.top+o.height/2,C=f,E=h;s.forEach(Ct=>{f=Math.min(f,Ct.rect.left),h=Math.min(h,Ct.rect.top),C=Math.max(C,Ct.rect.right),E=Math.max(E,Ct.rect.bottom)}),l>=o.left&&l<f?l=f:l<=o.right&&l>C&&(l=C),c>=o.top&&c<h?c=h:c<=o.bottom&&c>E&&(c=E);const b=i.closest("div[data-type=block-content]>span");if(!b){const Ct=t.getBoundingClientRect();if(!fa(Ct,l,c))return null;const wt=V8(t,l,c);if(wt!==null){const oe=mt(t,wt,"normal");return new vn(n,{anchor:oe,focus:oe})}const kt=I8(t,l,c);return kt?new vn(n,{anchor:kt,focus:kt}):null}const v=eo(t);p(J1,v.indexOf(b)!==-1,"failed to find child in children");const k=fl(t,b);p(J1,k,"failed to get child offset");const{start:w}=k;let O,M;Jo(b)||Rr(b)?(O=w,M=0):(p(J1,b.firstChild instanceof Text,"child is not text"),O=w+sv(b.firstChild,l,c),M=0);const F=dt(t),Y=nd(t).find(Ct=>Ct.offset===O);let X="normal";if(Y){const Ct=mt(F,O,"home"),wt=mt(F,O,"end"),kt=wr(t,Ct),oe=wr(t,wt),ve=il(kt,l,c),fe=il(oe,l,c);X=ve<fe?"home":"end"}const ut=mt(F,O,X);let Et;return M&&(Et=mt(F,O+M,X)),new vn(n,{anchor:ut,focus:Et!=null?Et:ut})}const H8=_("create-text-op");function ti(n,t){p(H8,n,"text is empty");const e={insert:n};return t&&Object.keys(t).length>0&&(e.attributes=t),e}function Q1(n,t){if(n.length===0)return[];if(n.indexOf(`
15
+ */function B9(n){if(typeof n=="string")return n.length===0?!1:n.charCodeAt(0)>=55296&&n.charCodeAt(0)<=56319;if(n===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isHighSurrogate(): the input is not string but ${typeof n}`)}function y9(n){if(typeof n=="string")return n.length===0?!1:n.charCodeAt(0)>=56320&&n.charCodeAt(0)<=57343;if(n===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isLowSurrogate(): the input is not string but ${typeof n}`)}const _f="\u200B";function T9(n){return[...n].length}function k9(n,t,e){const i=[...n];let o;return e===void 0?o=i.length:o=t+e,i.slice(t,o).join("")}function R9(n){const t="\xA0";if(!n)return"";if(n===" ")return t;let e=n;return e.startsWith(" ")&&(e=t+e.substr(1)),e.endsWith(" ")&&(e=e.substr(0,e.length-1)+t),e=e.replace(/ {2}/g,` ${t}`),e}function ym(n){if(!/["'&<>]/.exec(n))return n;const r={'"':"&quot;","'":"&#39;","&":"&amp;","<":"&lt;",">":"&gt;"};return n.split("").map(l=>r[l]||l).join("")}function uv(n){const t=document.getElementById(n);t&&t.remove()}function fv(n,t){const e=document.getElementById(t);if(e)return e.textContent=n,e;const r=document.createElement("style");return r.id=t,r.textContent=n,document.head.append(r),r}function Mf(n){const t="custom-cursor-style";if(n){const e=`body * { cursor: ${n} !important}`;fv(e,t)}else uv(t)}const dv=3,hv=_("drag-drop");class mv{constructor(t){m(this,"dragStarted",!1);m(this,"mouseDownEvent",null);m(this,"_dragOffsetX",0);m(this,"_dragOffsetY",0);m(this,"handleMouseDown",t=>{t.preventDefault(),t.stopPropagation(),this.mouseDownEvent=t;const e=this.options.elem.getBoundingClientRect();this._dragOffsetX=this.mouseDownEvent.x-e.left,this._dragOffsetY=this.mouseDownEvent.y-e.top,this.bindEvents()});m(this,"handleMouseMove",t=>{var o;t.preventDefault(),t.stopPropagation(),p(hv,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;if(this.dragStarted){this.onDragging(t,e,r);return}const i=(o=this.options.minThreshold)!=null?o:dv;(Math.abs(e)>=i||Math.abs(r)>=i)&&this.onDragStart(this.mouseDownEvent)});m(this,"handleMouseUp",t=>{if(t.button===0){p(hv,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;this.onDragEnd(t,e,r),t.preventDefault(),t.stopPropagation()}});this.options=t,this.options.mouseDownEvent?this.handleMouseDown(this.options.mouseDownEvent):this.trackEvents()}get data(){return this.options.data}get dragOffsetX(){return this._dragOffsetX}get dragOffsetY(){return this._dragOffsetY}get dragOffset(){return{x:this._dragOffsetX,y:this._dragOffsetY}}trackEvents(){this.options.elem.addEventListener("mousedown",this.handleMouseDown)}untrackEvents(){this.options.elem.removeEventListener("mousedown",this.handleMouseDown)}bindEvents(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}unbindEvents(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}onDragStart(t){this.dragStarted=!0,this.options.cursor&&Mf(this.options.cursor),this.options.onDragStart(this,t,this.options.elem)}onDragging(t,e,r){this.options.onDragging(this,t,this.options.elem,e,r)}onDragEnd(t,e,r){this.options.cursor&&Mf(null),this.dragStarted&&this.options.onDragEnd(this,t,this.options.elem,e,r),this.unbindEvents(),this.dragStarted=!1}destroy(){this.unbindEvents(),this.untrackEvents()}}function t1(n){return new mv(n)}const w9=_("character");function gv(n,t){for(let e=0;e<t.length;e++){const r=t[e][0],i=t[e].length>1?t[e][1]:null;if(i===null&&n===r||i!==null&&n>=r&&n<=i)return!0}return!1}function pv(n){const t=n.charAt(0);return t>="0"&&t<="9"}function Cv(n){const t=n.charAt(0);return t>="a"&&t<="z"||t>="A"&&t<="Z"||t.toUpperCase()!==t.toLowerCase()?!0:RegExp(/^\p{L}/,"u").test(t)}function Tm(n){const t=[[9,13],[32],[160]];return gv(n.charCodeAt(0),t)}function Ev(n){const t=[[12352,12687],[13056,13183],[13312,15661],[19968,40959],[63744,64255],[44032,55215]];return gv(n.charCodeAt(0),t)}function e1(n,t){let e=t;return p(w9,e.length===1,"invalid char length"),e==="]"&&(e="\\]"),e==="\\"&&(e="\\\\"),n.replace(new RegExp(`^[${e}]+|[${e}]+$`,"g"),"")}function n1(n){return n?n.length===1||n==="Process"||n==="Unidentified"&&ye.isAndroid:!1}function bv(n){switch(n){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":case"End":case"Home":case"PageDown":case"PageUp":return!0;default:return!1}}function S9(n){return bv(n.key)}function L9(n){switch(n){case"ArrowUp":case"ArrowLeft":case"Home":case"PageUp":return!0;default:return!1}}function da(n){return n.ctrlKey||n.altKey||n.shiftKey||n.metaKey}function I9(n){return n.key?!!(n.ctrlKey||n.metaKey||n.altKey):!1}function xv(n){return ye.isMac?n.metaKey&&!n.ctrlKey:!n.metaKey&&n.ctrlKey}function D9(n){return xv(n)&&!n.altKey&&!n.shiftKey}function _9(n){return!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.altKey}function Av(n){return!da(n)&&n.key==="Enter"}function M9(n){return n.key==="Enter"&&n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey}function km(n){return!da(n)&&n.key==="Escape"}function O9(n){return!da(n)&&n.key==="Delete"}function vv(n){return!da(n)&&n.key==="Backspace"}function U9(n){return!da(n)&&n.key==="Tab"}function N9(n){return n.shiftKey&&n.key==="Tab"&&!n.ctrlKey&&!n.metaKey}function mn(n){if(!n)return"";if(ye.isMac){const t=n.replace("CtrlOrCmd","\u2318").replace("Shift","\u21E7").replace("Ctrl","\u2303").replace("Alt","\u2325").replace(/\+(?!$)/gm,""),e={"\u2318":4,"\u21E7":3,"\u2325":2,"\u2303":1};return t.split(/(?=[\s\S])/u).sort((i,o)=>{var c,f;const s=(c=e[i])!=null?c:5,l=(f=e[o])!=null?f:5;return s-l}).map(i=>i in e?`${i}+`:i).join("")}return n.replace("CtrlOrCmd","Ctrl")}function Bv(n){const t={ctrl:!1,alt:!1,shift:!1,cmd:!1,key:""},e=n.toLocaleUpperCase().split("+");for(let r=0;r<e.length;r++){const i=e[r];i==="CTRL"||i==="CONTROL"?t.ctrl=!0:i==="ALT"||i==="OPTION"?t.alt=!0:i==="SHIFT"?t.shift=!0:i==="CMD"||i==="COMMAND"?t.cmd=!0:i==="CMDORCTRL"||i==="CTRLORCMD"?ye.isMac?t.cmd=!0:t.ctrl=!0:i==="SPACE"?t.key=" ":t.key=i.substring(0,1)+i.substring(1).toLocaleLowerCase()}return t}function Qi(n,t){const e=Bv(t);return e.ctrl!==n.ctrlKey||e.alt!==n.altKey||e.shift!==n.shiftKey||ye.isMac&&e.cmd!==n.metaKey?!1:e.key.length===1?e.key===n.key.toUpperCase():e.key.toUpperCase()===n.key.toUpperCase()}function r1(n,t){return fI.stringifyUrl({url:n,query:t})}function Zi(n){return typeof n=="string"?wf.Base64.encode(n,!0):wf.Base64.fromUint8Array(n,!0)}function Of(n){return wf.Base64.decode(n)}function P9(n){return wf.Base64.toUint8Array(n)}function i1(n){return new Blob([wf.Base64.toUint8Array(n)])}const F9=nl.init([nl.classModule,nl.styleModule,nl.datasetModule,nl.attributesModule,nl.propsModule]);function Uf(n,t){const e=nl.toVNode(n),r=nl.toVNode(t);F9(e,r)}async function o1(n,t){const e=new FileReader,r=new Promise((o,s)=>{e.onload=o,e.onerror=s});return e.readAsDataURL(new Blob([n],{type:t})),await r,e.result}async function Vc(n){const t=new FileReader,e=new Promise((i,o)=>{t.onload=i,t.onerror=o});return t.readAsDataURL(n),await e,t.result}function K9(n,...t){const e=n.tagName.toLowerCase();for(let r=0,i=t.length;r<i;r++)if(e===t[r].toLowerCase())return!0;return!1}function tn(n,t){let e=n;for(;e;){const r=window.getComputedStyle(e);if(t!=null&&t.horizontal){if(/auto|scroll/i.test(r.overflowX))break}else if(/auto|scroll/i.test(r.overflowY))break;e=e.parentElement}return(!e||K9(e,"body"))&&(e=document.documentElement),e}function yv(n){n.preventDefault(),n.stopPropagation()}function s1(n){if(document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`))return;const t=B("div",["editor-disable-scroll"],null);t.setAttribute("data-scroll-id",n),t.addEventListener("wheel",yv,{passive:!1}),document.body.appendChild(t)}function l1(n){const t=document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`);t&&(t.removeEventListener("wheel",yv),t.remove())}function a1(n,t,e){const r=new Blob([n]),i=new File([r],e,{type:t});return URL.createObjectURL(i)}function Rm(n){const t=document.createElement("template");if("content"in t)return t.innerHTML=n,document.importNode(t.content,!0);const e=document.createDocumentFragment(),r=document.createElement("div");for(r.innerHTML=n;r.firstChild;)e.appendChild(r.firstChild);return e}function Tv(n){const t=document.createElement("div");return t.appendChild(n),t.innerHTML}function kv(n){let t=n.getPropertyValue("font");if(t)return t;const e=n.getPropertyValue("font-style"),r=n.getPropertyValue("font-variant"),i=n.getPropertyValue("font-weight"),o=n.getPropertyValue("font-size"),s=n.getPropertyValue("font-family");return t=`${e} ${r} ${i} ${o} ${s}`.replace(/ +/g," ").trim(),t}function wm(n,t){const r=(wm.canvas||(wm.canvas=document.createElement("canvas"))).getContext("2d");return r?(typeof t=="string"?t?r.font=t:r.font=kv(window.getComputedStyle(document.body)):t instanceof Element&&(r.font=kv(window.getComputedStyle(t))),r.measureText(n).width+4):200}const Rv=_("editor-clipboard");async function V9(n,t){if(t.clipboardData){const e=t.clipboardData;for(const r of n)e.setData(r.type,r.data);return!0}return!1}function $9(n){return typeof n.text=="function"?n.text():new Promise((t,e)=>{const r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=e,r.readAsText(n)})}async function H9(n){var t;if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const e=document.createElement("textarea");try{let r=(t=n.find(i=>i.type==="text/plain"))==null?void 0:t.data;return r instanceof Blob&&(r=await $9(r)),e.textContent=r!=null?r:"",e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),!0}catch(r){return Rv.error(r),document.body.removeChild(e),!1}}return!1}async function Nf(n){try{const t={};n.forEach(r=>{t[r.type]=r.data});const e=new ClipboardItem(t);return await navigator.clipboard.write([e]),!0}catch(t){return Rv.error(t),await H9(n)}}function $c(n,t){return new Promise((e,r)=>{const i=document.createElement("input");i.type="file",i.style.display="none";const o=(t==null?void 0:t.container)||document.body;t!=null&&t.multiple&&(i.multiple=!0),i.accept=n,i.oncancel=()=>{e(null),i.remove()},i.onchange=()=>{const s=i.files;if(s){const l=t!=null&&t.multiple?Array.from(s):s[0];e(l)}i.remove()},i.onerror=s=>{r(s),i.remove()},o.append(i),i.click()})}function Sm(n){return Array.isArray(n)?n.every(t=>t instanceof File):!1}function Pf(n){const t=n;if(!t)return"";const e=t.lastIndexOf(".");return e===-1?"":t.slice(e+1)}function Lm(n,t){const e=document.createElement("a");e.setAttribute("download",`${t||""}`),e.setAttribute("href",`${n}`),e.click(),e.remove()}const wv=_("auto-scroll");function Sv(n,t){return!(n.scrollHeight===n.clientHeight||t==="top"&&n.scrollTop===0||t==="bottom"&&n.scrollTop+n.clientHeight===n.scrollHeight||t==="left"&&n.scrollLeft===0||t==="right"&&n.scrollLeft+n.clientWidth===n.scrollWidth)}function Lv(n,{direction:t,step:e}){let r=null;const i=t==="left"||t==="right",o=()=>Sv(n,t)?(i?t==="left"?n.scrollLeft=Math.max(n.scrollLeft-e,0):n.scrollLeft=Math.min(n.scrollLeft+e,n.scrollWidth):t==="top"?n.scrollTop=Math.max(n.scrollTop-e,0):n.scrollTop=Math.min(n.scrollTop+e,n.scrollHeight),r=requestAnimationFrame(o),r):(wv.debug("No need for scroll"),null);return r=requestAnimationFrame(o),()=>{r&&cancelAnimationFrame(r)}}class Ff{constructor(t){m(this,"cancelScroll",null);m(this,"options");m(this,"scrollDomInfo");m(this,"scrolling",!1);m(this,"getScrollingDirection",t=>{const{x:e,y:r}=t,{top:i,bottom:o,left:s,right:l}=this.scrollDomInfo,{edge:c}=this.options;return c.top&&r<=c.top+i?"top":c.bottom&&r>=o-c.bottom?"bottom":c.left&&e<=s+c.left?"left":c.right&&e>=l-c.right?"right":null});m(this,"handleMouseMove",t=>{var s;const{scrollElement:e,step:r=10,onDirectionChange:i}=this.options,o=this.getScrollingDirection(t);if(o){if(this.scrolling)return;wv.debug(`scroll direction: ${o}`),this.cancelScroll=Lv(e,{direction:o,step:r}),i==null||i(o),this.scrolling=!0}else(s=this.cancelScroll)==null||s.call(this),this.scrolling=!1});this.options=t,this.scrollDomInfo=this.getScrollDomInfo()}getScrollDomInfo(){const{scrollElement:t}=this.options,e=t.getBoundingClientRect(),r=e.top,i=e.left,o=e.bottom,s=e.right;return{left:i,top:r,right:s,bottom:o}}active(){const{trackMouseEvent:t="mousemove"}=this.options;window.addEventListener(t,this.handleMouseMove,!0)}inactive(){var e;const{trackMouseEvent:t="mousemove"}=this.options;window.removeEventListener(t,this.handleMouseMove,!0),(e=this.cancelScroll)==null||e.call(this),this.scrolling=!1}}function Iv(n,t){if(n===0)return"0 Bytes";const e=1024,r=t||2,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(n)/Math.log(e));return`${parseFloat((n/e**o).toFixed(r))} ${i[o]}`}function Kf(n,t){let e=`${n}`;const r=t-e.length;for(let i=0;i<r;i++)e=`0${e}`;return e}const{t:ha}=D;function c1(n,t){const e=new Date(n).getTime()+864e5*t;return new Date(e)}function j9(n,t){const e=n,r=Math.floor(t/12),i=t-r*12;return r&&e.setFullYear(e.getFullYear()+r),i&&e.setMonth(e.getMonth()+i),e}function z9(n,t){return c1(n,t)}function u1(n,t){const e=new Date(n),r=new Date(t);return e.getDate()===r.getDate()&&e.getMonth()===r.getMonth()&&e.getFullYear()===r.getFullYear()}function Dv(n){const t=new Date,e=new Date(n);return u1(t,e)}function _v(n){const t=c1(new Date,-1);return u1(t,n)}function W9(n,t){return Math.round((n.getTime()-t.getTime())/864e5)}function f1(n,t){const e=new Date(n);if(t){const r=e.getFullYear(),i=e.getMonth()+1,o=e.getDate(),s=e.getHours(),l=e.getMinutes();let c=t;return c=c.replace("YYYY",`${r}`),c=c.replace("MM",Kf(i,2)),c=c.replace("DD",Kf(o,2)),c=c.replace("M",`${i}`),c=c.replace("D",`${o}`),c=c.replace("hh",Kf(s,2)),c=c.replace("mm",Kf(l,2)),c=c.replace("h",`${s}`),c=c.replace("m",`${l}`),c}return n.toLocaleDateString()}function d1(n,t){const e=new Date(n),r=new Date;if(e.getTime()-r.getTime()>10*1e3)return D.t("date.dateFromFuture");if(Dv(e)){const o=(r.getTime()-n.getTime())/1e3;if(o<10*60)return ha("date.dateJustNow");if(o<60*60)return ha("date.dateMinutesAgo",{num:`${Math.floor(o/60)}`});const s=Math.floor(o/60/60);return s===1?ha("date.date1HourAgo"):ha("date.dateHoursAgo",{num:`${s}`})}if(_v(n))return ha("date.dateYesterday");const i=Math.floor((r.getTime()-n.getTime())/1e3/24/60/60)+1;return i<14?ha("date.dateDaysAgo",{num:`${i}`}):i<28?ha("date.dateWeeksAgo",{num:`${Math.round(i/7)}`}):f1(n,t)}function h1(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function G9(n,t,e){return n.replace(new RegExp(h1(t),"g"),e)}function q9(n,t,e){return n.replace(new RegExp(h1(t),"gi"),e)}function Mv(n,t,e){const i=document.createElement("canvas").getContext("2d");if(!i)return null;if(i.font=String(t),i.measureText(n).width>e){let s=0,l=0;for(;l<e;)l=i.measureText(n.slice(0,s)).width,s++;return`${n.slice(0,s-2)}...`}return n}const Ov=/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f\uAC00-\uD7AF]/,Uv=" -\x7F0-9!-/:-@[-`{-~\u0370-\u03FF\u0400-\u04FF",X9=new RegExp(`[${Uv}]`),Y9=new RegExp(`([^(${Uv})])`,"g"),Nv=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/;function Pv(n){return n.length===0?0:n.split("").reduce((t,e)=>{const r=(t<<5)-t+e.charCodeAt(0);return r&r},0)}function J9(n,t=1){var r,i;return(i=((r=Array.from(n))==null?void 0:r.filter(o=>Ov.test(o))).slice(-t))==null?void 0:i.join("")}function Q9(n,t=1){var i;const e=Array.from((i=n==null?void 0:n.replace(Y9,""))==null?void 0:i.split(/\s/));return e.reduce((o,s,l)=>{var c,f;return l===e.length-1&&o.length<t?`${o}${(c=s==null?void 0:s.slice(0,t-o.length))!=null?c:""}`:`${o}${(f=s[0])!=null?f:""}`},"").slice(0,t)}function Z9(n,t=1){var r,i;return(i=((r=Array.from(n))==null?void 0:r.filter(o=>Nv.test(o))).slice(-t))==null?void 0:i.join("")}function t7(n,t=1){var e,r;return(r=(e=Array.from(n))==null?void 0:e.slice(0,t))==null?void 0:r.join("")}function Im(n,t=1){if(!n||n.length===0)return"";const e=Ov.test(n),r=X9.test(n),i=Nv.test(n);switch(!0){case e:return J9(n,t);case r:return Q9(n,t);case i:return Z9(n,t);default:return t7(n,t)}}var Fv=(n=>(n.blue="#0064FF",n.cyan="#34AFDE",n.teal="#2CB2AE",n.green="#24B47E",n.kelly="#8AAB3F",n.yellow="#F0A100",n.orange="#EB6414",n.red="#E52727",n.fuchsia="#BE507D",n.purple="#9678D3",n))(Fv||{});function Dm(n){const t=Object.values(Fv),e=Math.abs(typeof n=="string"&&n.trim()?Pv(n.trim()):0)%t.length;return t[e]}const Kv=_("container");function to(n){return n.getAttribute("data-type")==="editor-container"}function te(n){return _t(n,"root")}function xi(n){return _t(n,"child")}function ft(n){const t=n.getAttribute("data-container-id");return p(Kv,t,"no id for container"),te(n)&&p(Kv,t==="root",`invalid root container id, : ${t}`),t}function Vv(n,t){const e=ft(n);return t.getContainerBlocks(e)}function m1(n){return`ones-editor-container-${n}`}const $v=_("element");function g1(n,t,e){const r=B("div",[t],n);return r.setAttribute("data-type","editor-container"),r.setAttribute("data-container-id",e),r.id=m1(e),B("div",["container-blocks"],r),r}function qr(n,t){const e=n.rootElement.querySelector(`[data-container-id=${t}]`);return p($v,e,`no container: ${t}`),e}function Vf(n,t){return n.rootElement.querySelector(`[data-container-id=${t}]`)}function $f(n){const t=n.querySelector(":scope > .container-blocks");return p($v,t,"no container blocks element"),t}function e7(n){let t=n.querySelector(":scope > .container-tools");return t||(t=B("div",["container-tools"],n)),t}const p1=_("container-children");function be(n,t){const e=$f(n),r=Array.from(e.children);if(p(p1,r.length>0,"container have not any child block"),t){const{condition:i,editor:o}=t;return r.reduce((s,l)=>{if(i(l)){const c=l.getAttribute("data-block-type");if(!c)return s;const h=o.editorBlocks.getBlockClass(c).getChildContainers(o,l).flatMap(C=>be(C,t));return[...s,...h]}else return[...s,l]},[])}return r}function Pe(n){const t=n.querySelector(":scope > .container-blocks > div[data-type=editor-block]");return p(p1,t,"container have not any child block"),t}function en(n){const t=be(n);return t[t.length-1]}function Ai(n){return be(n).length}function ol(n,t){const e=be(n)[t];return p(p1,e,`container have not block at index ${t}`),e}function Hv(n,t){var e;return(e=be(n)[t])!=null?e:null}class n7{constructor(t){m(this,"renders",[]);this.editor=t}registerRender(t){this.renders.push(t)}renderBox(t,e){const r={classes:[],attributes:{},styles:{}};return this.renders.forEach(i=>{if(i.renderBox){const o=i.renderBox(this.editor,t,e);o.classes&&r.classes.push(...o.classes),o.attributes&&(r.attributes={...r.attributes,...o.attributes}),o.styles&&(r.styles={...r.styles,...o.styles})}}),r}renderText(t,e){const r={classes:[],attributes:{},styles:{}};return this.renders.forEach(i=>{if(i.renderText){const o=i.renderText(this.editor,t,e);o.classes&&r.classes.push(...o.classes),o.attributes&&(r.attributes={...r.attributes,...o.attributes}),o.styles&&(r.styles={...r.styles,...o.styles})}}),r}renderBlock(t,e,r){const i={classes:[],attributes:{},styles:{}};return this.renders.forEach(o=>{if(o.renderBlock){const s=o.renderBlock(this.editor,e,r);s.classes&&i.classes.push(...s.classes),s.attributes&&(i.attributes={...i.attributes,...s.attributes}),s.styles&&(i.styles={...i.styles,...s.styles})}}),i}updateBlock(t,e,r,i){this.renders.forEach(o=>{var s;(s=o.updateBlock)==null||s.call(o,t,e,r,i)})}}const jv=_("block-class");function jt(n,t){return n.editorBlocks.getBlockClass(Tt(t))}function zv(n,t){const e=n.editorBlocks.getBlockClass(Tt(t));return p(jv,e.blockKind==="text",`is not a text block, ${e.blockType}`),e}function Xr(n,t){const e=n.editorBlocks.getBlockClass(Tt(t));return p(jv,e.blockKind==="complex",`is not a text block, ${e.blockType}`),e}function sl(n,t){return n.editorBlocks.getBlockClass(t)}function at(n,t){return jt(n,t).blockKind==="text"}function Hf(n,t){return n.editorBlocks.getBlockClass(t).blockKind==="text"}function Nt(n,t){return jt(n,t).blockKind==="complex"}function r7(n,t){return!Nt(n,t)}function vi(n,t){return jt(n,t).blockKind}class We extends $e.TypedEmitter{constructor(e){super();m(this,"hoveringBlock",null);m(this,"hoveringElem",null);m(this,"hoveringTextChild",null);m(this,"filters",[]);m(this,"finders",[]);m(this,"handleDocumentMouseMove",e=>{if(this.hoveringBlock){for(const s of this.filters)if(s.isInBlock(this.hoveringBlock,e))return}const r=Ne(e.x,e.y,{noFilter:!0});if(!r){this.setHoveringBlock(null,e,null,r);return}let i=Q(r);if((!i||!Ee(this.editor.rootContainer,i))&&(i=this.findBlockByFinders(e),!i)){this.setHoveringBlock(null,e,null,r);return}const o=this.getParentTextContentChild(i,r);this.setHoveringBlock(i,e,o,r)});this.editor=e,document.addEventListener("mousemove",this.handleDocumentMouseMove)}destroy(){document.removeEventListener("mousemove",this.handleDocumentMouseMove),this.filters.forEach(e=>e.destroy()),this.filters=[],this.finders.forEach(e=>e.destroy()),this.finders=[]}addFilter(e){this.filters.push(e)}addFinder(e){this.finders.push(e)}hoveringBlockId(){return this.hoveringBlock?dt(this.hoveringBlock):""}findBlockByFinders(e){for(let r=0;r<this.finders.length;r++){const o=this.finders[r].findTargetBlock(this.editor,e);if(o)return o}return null}setHoveringBlock(e,r,i,o){if(this.hoveringBlock===e&&this.hoveringTextChild===i&&this.hoveringElem===r.target)return;if(this.hoveringBlock!==e){const l=this.hoveringBlock&&Ee(this.editor.rootContainer,this.hoveringBlock)?this.hoveringBlock:null;l&&lt(l,"hover"),e&&z(e,"hover"),this.emit("change",e,l,r)}(this.hoveringElem!==o||this.hoveringBlock!==e)&&this.emit("targetChange",e,this.hoveringBlock,o,this.hoveringElem);const s=this.hoveringTextChild;this.hoveringTextChild=i,this.hoveringElem=o,this.hoveringBlock=e,this.emit("childChange",this.hoveringBlock,i,s,r)}static get(e){return e.addCustom("standard-hovering-block",()=>new We(e))}getParentTextContentChild(e,r){if(!at(this.editor,e))return null;const i=$t(e);return r.parentElement===i?r:b1(r)}}const Wv="style-color-",Gv="style-bg-color-";class qv{renderText(t,e,r){return this.generateCSSCustomProperties(r)}renderBlock(t,e,r){var l,c;const i={};Object.entries(r).filter(f=>f[0].startsWith("style-")).forEach(([f,h])=>{i[`data-${f}`]=`${h}`});const s=[];return((c=(l=t.selection)==null?void 0:l.range)==null?void 0:c.start.blockId)===r.id&&s.push("focused"),typeof r.align=="string"&&r.align&&(i["data-style-align"]=r.align),r.heading&&(i["data-style-heading"]=String(r.heading)),r.quoted&&(i["data-style-quoted"]="true"),We.get(t).hoveringBlockId()===r.id&&s.push("hover"),{attributes:i,classes:s}}updateBlock(t,e,r,i){Array.from(r.attributes).forEach(l=>{l.name.startsWith("data-style-")&&r.removeAttribute(l.name)});const{attributes:o,classes:s}=this.renderBlock(t,e,i);o&&Object.entries(o).forEach(([l,c])=>{r.setAttribute(l,c)}),s&&s.forEach(l=>{z(r,l)})}generateCSSCustomProperties(t){const e=[],r={},i={};return Object.entries(t).forEach(([o,s])=>{s===!0?o.startsWith(Wv)?r["data-style-color"]=o.substring(Wv.length):o.startsWith(Gv)?r["data-style-bg-color"]=o.substring(Gv.length):o.startsWith("style")&&e.push(o):typeof s=="string"&&(o==="link"&&(e.push("link"),r.link=s),o==="inline-style-color"&&(i.color=s),o==="inline-style-background-color"&&(i.backgroundColor=s))}),{classes:e,attributes:r,styles:i}}}const Bi=_("block-dom");function Wo(n){return n instanceof HTMLDivElement?n.getAttribute("data-type")==="editor-block":!1}function Xv(n){return n instanceof HTMLElement&&n.getAttribute("data-type")==="block-tools"}function Yv(n){z(n,"block-hidden")}function C1(n){lt(n,"block-hidden")}function ll(n){return!_t(n,"block-hidden")}function dt(n){const{id:t}=n;return p(Bi,t,"no block id"),t}function Tt(n){const t=n.getAttribute("data-block-type");return p(Bi,t,"invalid block dom, no data-type"),t}function Q(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("div[data-type=editor-block]");return e||null}function ma(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("div[data-type=editor-block]:not(:scope)");return e||null}function ot(n){const t=n.closest("div[data-type=editor-container]");return p(Bi,t,"failed to get block container"),t}function $t(n){const t=n.querySelector(":scope >div[data-type=block-content]");return p(Bi,t,"no block content"),t}function xe(n){let t=n.querySelector(":scope >div[data-type=block-tools]");return t||(t=B("div",[],n),t.setAttribute("data-type","block-tools")),p(Bi,t,"no block tools"),t}function _m(n){const t=n.querySelector(":scope >div[data-type=block-tools]");return t||null}function E1(n){let t=n.querySelector(":scope > div[data-type=block-background]");return t||(t=B("div",[],n),t.setAttribute("data-type","block-background")),t}function Jv(n,t,e){const r=n.editorDecorators.decorateBlock(t,e),{id:i,type:o}=r;p(Bi,i,"no block id");const s=B("div",[`${o}-block`],null);s.id=i,s.setAttribute("data-type","editor-block"),s.setAttribute("data-block-type",o);const l=n.editorBlockRenders.renderBlock(n,t,e);return l.classes&&z(s,...l.classes),l.attributes&&Object.entries(l.attributes).forEach(([c,f])=>{s.setAttribute(c,f)}),l.styles&&Object.entries(l.styles).forEach(([c,f])=>{s.style.setProperty(c,f)}),s}function al(n,t){const e=B(t,[],null);return e.setAttribute("data-type","block-content"),n&&n.appendChild(e),e}function Qv(n){const t=B("span",[`${n.type}-box`],null);return t.setAttribute("data-type","editor-box"),t.setAttribute("data-box-type",n.type),t.id=n.id,t}function jf(n){const t=n.getAttribute("data-box-type");return p(Bi,t,"not a valid box element, no type"),t}function Mm(n){return n instanceof HTMLSpanElement?n.getAttribute("data-type")==="editor-box":!1}function Zv(n){const{id:t}=n;return p(Bi,t,"no box id"),t}function b1(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("span[data-type=editor-box]");return e||null}function tB(n){n.innerHTML="",B("span",["box-space-start"],n,_f);const t=B("span",[],n);return t.setAttribute("data-type","box-content"),B("span",["box-space-start"],n,_f),t}function x1(n){const t=n.querySelector("span[data-type=box-content]");return p(Bi,t,"invalid box dom, no content"),t}function eB(n,t,e){const r=B("span",[`${n}-insertion`],null);if(r.setAttribute("data-type","editor-insertion"),r.setAttribute("data-insertion-id",t),e){const i=new qv,{attributes:o}=i.generateCSSCustomProperties(e);o&&[...Object.entries(o)].forEach(s=>{const[l,c]=s;r.setAttribute(l,c)})}return r}function nB(n,t){return n.rootContainer.querySelector(`[data-insertion-id=${t}]`)}function rB(n){n.innerHTML="",B("span",["insertion-space-start"],n,_f);const t=B("span",[],n);return t.setAttribute("data-type","insertion-content"),B("span",["insertion-space-start"],n,_f),t}function A1(n){const t=n.querySelector("span[data-type=insertion-content]");return p(Bi,t,"invalid insertion-child dom, no content"),t}function He(n){let t=n.previousElementSibling;for(;t;){if(Wo(t))return t;t=t.nextElementSibling}return null}function ae(n){let t=n.nextElementSibling;for(;t;){if(Wo(t))return t;t=t.nextElementSibling}return null}function Yr(n){let t=n.previousElementSibling;for(;t;){if(Wo(t)&&ll(t))return t;t=t.previousElementSibling}return null}function Jr(n){let t=n.nextElementSibling;for(;t;){if(Wo(t)&&ll(t))return t;t=t.nextElementSibling}return null}function St(n){const t=ot(n),r=be(t).indexOf(n);return p(Bi,r!==-1,"invalid block & container dom, failed to get block index"),r}function v1(n){return!n||!(n instanceof Node)?!1:!!Q(n)}function Hc(n){if(!v1(n))return!1;const t=n,e=t instanceof Element?t:t.parentElement;return e?!!e.closest("div[data-type=block-tools]"):!1}function Go(n){return n.hasAttribute("data-document-title")}function cl(n,t,e){return jt(n,t).getCaretRect(t,e)}const B1=_("block");function bt(n,t){return jt(n,t).getBlockTextLength(t)}function iB(n){n.editorBlocks.forEach(t=>{t.clearSelection(n)})}function oB(n,t,e,r){jt(n,t).updateSelection(n,t,e,r)}function zf(n){for(;;){const t=ot(n);if(te(t))return n;const e=Q(t);p(B1,e,"no parent block exists for child container"),n=e}}function sB(n,t){let e=n;for(;e;){const r=ot(e);if(t(r))return e;e=Q(r)}}function lB(n,t){const e=jt(n,t);if(!!e.getMinWidth)return e.getMinWidth(n,t)}function aB(n,t,e){const r=jt(n,t);r.handleBlockElementUpdated&&r.handleBlockElementUpdated(n,t,e)}function Om(n,t,e,r){try{const i=sl(n,e).convertFrom;return i?i(n,t,r):null}catch{return B1.debug(`unsupported block type: ${e}`),null}}function qo(n,t,e){const r=jt(n,t);return r.getClientRects?r.getClientRects(n,t,e):[t.getBoundingClientRect()]}function i7(n,t){const e=jt(n,t);if(e.getBlockStyles)return e.getBlockStyles(n,t);const r=n.getBlockData(t),i=Object.fromEntries(Object.entries(r).filter(([o])=>o.startsWith("style-")));return Object.entries(i).forEach(([,o])=>{const s=typeof o;p(B1,s==="string"||s==="number"||s==="boolean","invalid style value")}),i}function Te(n,t){return vi(n,t)==="text"?bt(n,t)===0:!1}const cB=_("block-path");function Xo(n){const t=[];let e=n;for(;e;){const r=ot(e);if(t.unshift({containerId:ft(r),blockIndex:St(e)}),te(r))return t;const i=Q(r);p(cB,i,"no parent block"),e=i}return p(cB,!1,"no parent block"),[]}function Wf(n,t){var i,o;const e=jt(n,t);return(o=(i=e.getOptions)==null?void 0:i.call(e,n))!=null?o:{name:Tt(t)}}function Qr(n){return te(ot(n))}function uB(n,t){var i;const e=jt(n,t);return(i=e.getBlockProperties)==null?void 0:i.call(e,n,t)}function y1(n,t){var o,s;const e=jt(n,t),r=(o=e.getBlockProperties)==null?void 0:o.call(e,n,t);let i={};r!=null&&r.blockCommands&&(i={...r.blockCommands});for(const l of n.blockHooks){const c=(s=l.commands)==null?void 0:s.call(l,n,t);c&&(i[c.group]=c)}return i}function o7(n,t,e){var s,l,c,f;const r=jt(n,t),i=(s=r.getBlockProperties)==null?void 0:s.call(r,n,t);let o={};i!=null&&i.blockCommands&&(o={...i.blockCommands});for(const h of n.blockHooks){const C=(l=h.commands)==null?void 0:l.call(h,n,t);C&&(o[C.group]=C)}return(f=(c=o[e])==null?void 0:c.commands)!=null?f:[]}function fB(n,t,e){let r=t;for(;r;){const i=o7(n,r,e);if(i.length>0)return{element:$t(r),commands:i};if(Qr(r))break;r=ma(r)}return{element:null,commands:[]}}const dB=_("embed-block-common");function hB(n){return Tt(n)==="layout"}function me(n){return Tt(n)==="embed"}function Ge(n){p(dB,me(n),"not an embed block");const t=n.getAttribute("data-embed-type");return p(dB,t,"no embed data type"),t}function s7(n,t){return n.editorEmbeds.getEmbedClass(Ge(t))}function ga(n,t){return n.editorEmbeds.getEmbedClass(t)}function T1(n,t,e){var s;if(!t||!e)return;const r=n.getContainerById(t),i=Q(r);return i?(s=Wf(n,i).overrideInertEmptyBlockInsideOptions)==null?void 0:s[e]:void 0}async function k1(n,t,e,r,i){const o=ga(n,t);if(!o.getOptions)return null;const s=o.getOptions(n);if(!s.insertEmbedCommandItems||!s.insertEmbedCommandItems||s.insertEmbedCommandItems.length===0||!s.handleInsertEmptyEmbed)return null;const l=s.insertEmbedCommandItems[0];return s.handleInsertEmptyEmbed(n,{item:l,containerId:e,blockIndex:r,data:i})}function l7(n,t,e,r,i){var c,f,h;const o=(f=(c=sl(n,t)).getOptions)==null?void 0:f.call(c,n);if(!o||!o.insertBlockCommandItems||o.insertBlockCommandItems.length===0||!o.handleInsertEmptyBlock)return null;const s=o.insertBlockCommandItems[0],l=T1(n,e,t);return o.handleInsertEmptyBlock(n,{item:{...l==null?void 0:l.item,...s},containerId:e,blockIndex:r,data:(h=l==null?void 0:l.data)!=null?h:i})}const a7=_("execute-block-command");function mB(n,t,e,r){var f;p(a7,me(t),"not a embed block");const i=Ge(t),o=ga(n,i);if(!o.getOptions)return;const s=(f=o.getBlockProperties)==null?void 0:f.call(o,n,t),l=s==null?void 0:s.blockCommands;if(!l)return;const c=Object.entries(l);for(const h of c)if(h[0]===e)return h[1].executeCommand(n,t,r)}function gB(n,t,e,r){const i=y1(n,t);if(!i)return;const o=Object.entries(i);for(const s of o)if(s[0]===e)return n.emit("beforeExecCommand",n,r,{source:r.source}),s[1].executeCommand(n,t,r)}const pB=_("block-class");function an(n){return!!n.getAttribute("data-style-heading")}function Gf(n){var e;const t=Number.parseInt((e=n.getAttribute("data-style-heading"))!=null?e:"",10);return p(pB,t,"not a heading block"),t}function CB(n){return!_t(n,"heading-collapsed")}function kr(n){return _t(n,"heading-collapsed")}function pa(n,t){t||p(pB,an(n),"not a heading block");const e=[],r=t!=null?t:Gf(n);let i=ae(n);for(;i&&!(an(i)&&Gf(i)<=r);)e.push(i),i=ae(i);return e}function EB(n){let t=ae(n);const e=[];for(;t&&!ll(t);)e.push(t),t=ae(t);return e}const Yo=_("text-block-child");function qf(n){return n.tagName==="SPAN"}function Rr(n){return p(Yo,qf(n),"not a valid text child"),n.getAttribute("data-type")==="editor-box"}function Jo(n){return p(Yo,qf(n),"not a valid text child"),n.getAttribute("data-type")==="editor-insertion"}function Xf(n){return!Rr(n)&&!Jo(n)}function bB(n){return p(Yo,qf(n),"not a valid text child"),Rr(n)?"box":Jo(n)?"insertion":"text"}function Zr(n){const t=bB(n);return t==="insertion"?0:t==="box"?1:(p(Yo,n.textContent!==null,"text block content is undefined"),p(Yo,n.textContent.length>=0,"text block content length is negative"),n.textContent.length)}function eo(n){const t=$t(n),e=Array.from(t.children);return e.forEach(r=>{p(Yo,qf(r),"not a valid text child")}),e}function Yf(n,t){const e=eo(n);let r=0;for(let i=0;i<e.length;i++){const o=e[i],s=Zr(o);if(r+s<t){r+=s;continue}if(r===t)return{prev:e[i-1],next:o,offset:0};if(r+s===t)return{prev:o,next:e[i+1],offset:0};const l=t-r;return p(Yo,l>0,"invalid offset value"),p(Yo,!Rr(o),"invalid box child"),{prev:o,next:o,offset:l}}p(Yo,!1,`invalid block child at position: ${t}`)}const c7=_("child-container-path");function xB(n){if(te(n))return[];const t=Q(n);return p(c7,t,"no parent block"),Xo(t)}const AB=_("load-blocks");function R1(n,t,e){const r=ft(t),i=Vv(t,n.doc);p(AB,i.length>0,"no blocks in container");const o=document.createDocumentFragment();i.forEach((l,c)=>{const f=n.editorBlocks.createBlock([...e,{containerId:r,blockIndex:c}],t,l);o.appendChild(f)}),$f(t).appendChild(o)}function u7(n,t,e){const r=$f(n);if(t===0)return r.insertBefore(e,r.firstChild),e;const i=be(n);return p(AB,t>=0&&t<=i.length,"invalid block index"),t===i.length?r.appendChild(e):r.insertBefore(e,i[t]),e}function f7(n,t,e,r){const i=xB(t);i.push({containerId:ft(t),blockIndex:e});const o=n.editorBlocks.createBlock(i,t,r);return u7(t,e,o),o}const w1=_("root-container"),vB=3;class d7{constructor(t,e){m(this,"resizeObserver");m(this,"isMoved",!1);m(this,"mouseDownEvent",null);m(this,"handleContextMenu",t=>{if(ye.isSafari){const e=document.getSelection();e&&!e.isCollapsed&&e.collapseToStart()}});m(this,"handleResize",()=>{try{this.editor.selection.updateSelection(null),this.editor.emit("resize",this.editor)}catch(t){w1.warn(`failed to update selection while container resizing: ${t.message}`)}});m(this,"handleClick",t=>{this.editor.emit("click",this.editor,t);const e=t.target;if(!Hc(e)&&(t.detail===1&&this.editor.input.focus(),t.detail===3&&this.editor.selectionHandler.handleTripleClick(t),t.detail===1&&t.button===0)){const r=Ne(t.clientX,t.clientY);if(r&&Ee(this.rootContainer,r)){const i=Q(r);i&&Ee(i,r)&&this.handleBlockClick(t,i,r)}}});m(this,"handleBlockClick",(t,e,r)=>{var s,l;if(!at(this.editor,e))return;const i=b1(r);if(i){const c=Q(i);p(w1,c,"no parent block"),(l=(s=this.editor.editorBoxes.getBoxClass(jf(i)))==null?void 0:s.handleClickBox)==null||l.call(s,this.editor,i,t);return}const o=r.closest("span.text.link");o&&eo(e).indexOf(o)!==-1&&this.editor.emit("clickLink",this.editor,t,o)});m(this,"handleDblClick",t=>{Hc(t.target)||this.editor.selectionHandler.handleDblClick(t)});m(this,"handleMouseDown",t=>{this.mouseDownEvent=t,this.isMoved=!1;const e=t.target;if(!!e&&e instanceof Node&&!Hc(e)){if(t.button===2){t.stopPropagation();return}if(e instanceof HTMLElement&&e.draggable){this.editor.selectionHandler.handleMouseDown(t,{autoScroll:!1}),this.editor.selectionHandler.stopSelection(),this.editor.input.focus();return}t.button===0&&(document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.editor.selectionHandler.handleMouseDown(t,{autoScroll:!0})),ye.isMobileSafari||this.editor.input.focus()}});m(this,"handleMouseMove",t=>{p(w1,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;(Math.abs(e)>=vB||Math.abs(r)>=vB)&&(this.editor.selectionHandler.handleMouseMove(t),this.isMoved=!0)});m(this,"handleMouseUp",t=>{t.button===0&&(this.editor.selectionHandler.handleMouseUp(t),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)),this.isMoved&&(document.addEventListener("click",this.handleCaptureClick,!0),document.addEventListener("dblclick",this.handleCaptureDbClick,!0)),this.isMoved=!1});m(this,"handleCaptureClick",t=>{document.removeEventListener("click",this.handleCaptureClick,!0),t.stopPropagation()});m(this,"handleCaptureDbClick",t=>{document.removeEventListener("dblclick",this.handleCaptureDbClick,!0),t.stopPropagation()});this.editor=t,this.rootContainer=e,this.editor=t,this.resizeObserver=new sa(this.handleResize),this.bindEvents(e)}bindEvents(t){this.resizeObserver.observe(t);const e=this.editor.rootElement;e.onmousedown=this.handleMouseDown,e.ondblclick=this.handleDblClick,e.onclick=this.handleClick,e.oncontextmenu=this.handleContextMenu}unbindEvents(){this.resizeObserver.disconnect();const t=this.editor.rootElement;t.onmousedown=null,t.ondblclick=null,t.onclick=null,t.oncontextmenu=null}destroy(){this.unbindEvents()}reload(){const t=this.editor.selection.range,e=$f(this.rootContainer);e.innerHTML="",R1(this.editor,this.rootContainer,[]);const r=this.editor.findBlockById(t.start.blockId);if(r)this.editor.selection.selectBlock(r,0);else{const i=Pe(this.rootContainer);this.editor.selection.selectBlock(i,0)}}}function BB(n){const t=g1(n.contentElement,"root","root");return n.rootContainer=t,R1(n,t,[]),new d7(n,t)}function yB(n,t,e,r){const i=Vf(n,r);if(i)return e.appendChild(i),setTimeout(()=>{n.emit("containerRemount",n,r)}),i;const o=g1(e,"child",r);return R1(n,o,t),o}function TB(n,t){const e=n.getBoundingClientRect().width;return t.withPadding?e:e-Jp(n)}function S1(n,t){let e=Number.MAX_SAFE_INTEGER;const r=be(t);for(let o=0;o<r.length;o++){const s=r[o],l=lB(n,s);l&&(e=Math.min(e,l))}return e===Number.MAX_SAFE_INTEGER?void 0:e+Jp(t)}function Jf(n,t){const e=be(t);return e.length!==1?!1:Te(n,e[0])}const h7=_("complex-block-position");class yi{constructor(t,e,r){m(this,"blockId");m(this,"childContainerId");m(this,"custom");t instanceof HTMLElement?this.blockId=dt(t):(p(h7,typeof t=="string",`not a valid block id: ${t}`),this.blockId=t),this.childContainerId=e,r!==void 0&&(this.custom=r)}isSimple(){return!1}}const m7=_("simple-block-position");class gn{constructor(t,e,r){m(this,"blockId");m(this,"offset");m(this,"type");t instanceof HTMLElement?this.blockId=dt(t):(p(m7,typeof t=="string",`not a valid block id: ${t}`),this.blockId=t),this.offset=e,this.type=r}isSimple(){return!0}}const L1=_("editor-position");function mt(n,t,e){return new gn(n,t,e)}function De(n,t,e){return new yi(n,t,e)}function Ti(n){return n instanceof gn}function Ca(n){return n instanceof yi}function I1(n,t,e){if(Ti(t)&&Ti(e)){const r=t,i=e;if(r.blockId===i.blockId)return r.offset-i.offset;const o=n.getBlockById(t.blockId),s=n.getBlockById(e.blockId);return p(L1,o!==s,"comparePosition: blocks are the same"),xm(o,s)}if(Ca(t)&&Ca(e)){const r=t,i=e;if(r.childContainerId===i.childContainerId)return 0;const o=n.getContainerById(r.childContainerId),s=n.getContainerById(i.childContainerId);return p(L1,o!==s,"comparePosition: containers are the same"),xm(o,s)}return p(L1,!1,"invalid "),0}const Um=_("simple-range");class vn{constructor(t,e){m(this,"editor");m(this,"_anchor");m(this,"_focus");m(this,"reverse");this.editor=t,this._anchor=e.anchor,this._focus=e.focus,this.reverse=I1(this.editor,this._anchor,this._focus)>0}isCollapsed(){return this.start.blockId===this.end.blockId&&this.start.offset===this.end.offset}isEqual(t){if(!(t instanceof vn))return!1;const e=t,{start:r,end:i}=e;return this.start.blockId===r.blockId&&this.start.offset===r.offset&&this.start.type===r.type&&this.end.blockId===i.blockId&&this.end.offset===i.offset&&this.end.type===i.type}isSimple(){return!0}isReverse(){return this.reverse}getEditor(){return this.editor}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}get anchor(){return this._anchor}get focus(){return this._focus}getSelectedBlocks(){const{editor:t}=this,e=t.getBlockById(this.start.blockId),r=t.getBlockById(this.end.blockId);p(Um,e,"no start block"),p(Um,r,"no end block");const i=ot(e),o=ot(r);p(Um,i===o,"invalid range");const s=[];if(e===r)s.push({block:e,start:this.start,end:this.end});else{const l=St(e),c=St(r);p(Um,l<c,"invalid range, start > index"),s.push({block:e,start:this.start,end:mt(e,bt(this.editor,e),"end")});const f=be(i);for(let h=l+1;h<c;h+=1){const C=f[h];s.push({block:C,start:mt(C,0,"home"),end:mt(C,bt(this.editor,C),"end")})}s.push({block:r,start:mt(r,0,"home"),end:this.end})}return s}getSelectedContainers(){return[]}getAnchorPos(){return this.isReverse()?this.end:this.start}getFocusedPos(){return this.isReverse()?this.start:this.end}clone(){return new vn(this.editor,this)}toDocRange(){return{anchor:this.anchor,focus:this.focus}}static from(t,e){return new vn(t,e)}}_("unknown-block");function g7(n,t,e,r,i){z(r,"unknown-block");const o=al(r,"div");return o.innerText=`unknown block (${i.type}): ${JSON.stringify(i)}`,o}function p7(n){return 1}function C7(n,t,e,r){return null}function E7(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=dt(t),s=mt(o,0,"home"),l=mt(o,1,"end");return new vn(n,{anchor:s,focus:l})}function b7(n,t){const r=$t(n).getBoundingClientRect();return new DOMRect(r.left+r.width/2,r.top,1,r.height)}function x7(n,t,e,r){z(t,"selected")}function A7(n){n.rootContainer.querySelectorAll("div.unknown-block[data-type=editor-block]").forEach(t=>{lt(t,"selected")})}function v7(n,t,e,r){return`[unknown block, ${t.type}]`}const B7={blockType:"unknown-block",blockKind:"embed",createBlockContent:g7,getBlockTextLength:p7,getRangeFromPoint:E7,moveCaret:C7,getCaretRect:b7,updateSelection:x7,clearSelection:A7,convertTo:v7},D1=_("editor-blocks");class kB{constructor(t){m(this,"blocks",new Map);this.editor=t}registerBlockClass(t){const e=t.blockType,r=this.blocks.get(e);p(D1,!r,`duplicated block type: ${e}`),this.blocks.set(e,t)}getBlockClass(t){const e=this.blocks.get(t);return p(D1,e,`unknown block type: ${t}`),e}hasBlock(t){return this.blocks.has(t)}createBlock(t,e,r){const i=Jv(this.editor,t,r);let o;this.hasBlock(r.type)?o=this.getBlockClass(r.type):o=this.registerUnknownBlock(r.type);const s=o.createBlockContent(this.editor,t,e,i,r);return s.parentElement!==i&&(D1.warn("content parent is not block"),i.appendChild(s)),this.editor.blockHooks.forEach(l=>{var c;(c=l.create)==null||c.call(l,this.editor,t,e,i,r)}),i}forEach(t){this.blocks.forEach(t)}registerUnknownBlock(t){const e={...B7,blockType:t};return this.editor.editorBlocks.registerBlockClass(e),e}}const RB=_("editor-embeds");class wB{constructor(t){m(this,"objects",new Map);this.editor=t}registerEmbedClass(t){const e=t.embedType,r=this.objects.get(e);p(RB,!r,`duplicated embed object type: ${e}`),this.objects.set(e,t)}getEmbedClass(t){const e=this.objects.get(t);return p(RB,e,`unknown embed type: ${t}`),e}getEmbedClassFromBlock(t){return this.getEmbedClass(Ge(t))}forEach(t){this.objects.forEach(t)}}const SB=_("embed-block");function y7(n,t,e,r,i){const o=al(r,"div");p(SB,i.type==="embed",`not an embed data: ${JSON.stringify(i)}`);const s=i;return p(SB,s.embedType&&s.embedData,`not an embed data: ${JSON.stringify(s)}`),n.editorEmbeds.getEmbedClass(s.embedType).createEmbedContent(n,o,s,t,e,r),r.setAttribute("data-embed-type",s.embedType),o}function T7(n){return 1}function k7(n,t,e,r){return null}function R7(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=dt(t),s=mt(o,0,"home"),l=mt(o,1,"end");return new vn(n,{anchor:s,focus:l})}function w7(n,t){const r=$t(n).getBoundingClientRect();return new DOMRect(r.left+r.width/2,r.top,1,r.height)}function S7(n,t,e,r){z(t,"selected")}function L7(n){n.rootContainer.querySelectorAll("div.embed-block[data-type=editor-block][data-block-type=embed]").forEach(t=>{lt(t,"selected")})}function I7(n,t,e){let r=null;return n.editorEmbeds.forEach(i=>{var s,l;const o=(l=(s=i.convertFrom)==null?void 0:s.call(i,n,t,e))!=null?l:null;o&&(r=o)}),r}function D7(n,t,e,r){const i=ga(n,t.embedType);return i.convertTo?i.convertTo(n,t,e,r):""}function _7(n,t){const e=s7(n,t);return e.getBlockProperties?e.getBlockProperties(n,t):{}}function M7(n){const t=new Map,e=[];return n.editorEmbeds.forEach(r=>{if(r.getOptions){const i=r.getOptions(n);i.insertEmbedCommandItems&&i.insertEmbedCommandItems.forEach(o=>{e.push(o),t.set(o.id,r)})}}),{name:"EmbedBlock",insertBlockCommandItems:e,async handleInsertEmptyBlock(r,i){const o=t.get(i.item.id);if(!o||!o.getOptions)return null;const s=o.getOptions(r);return s.handleInsertEmptyEmbed?s.handleInsertEmptyEmbed(r,i):null}}}function O7(n,t,e,r){const i=Ge(t),o=ga(n,i);!o.handleDeleteBlock||o.handleDeleteBlock(n,t,e,r)}function U7(n,t,e){const r=Ge(t),i=ga(n,r);return i.handleUpdateBlock?i.handleUpdateBlock(n,t,e):!1}function N7(n,t,e,r,i){const o=Ge(t),s=ga(n,o);if(s.handleDropOver)return s.handleDropOver(n,t,e,r,i)}function P7(n,t,e,r,i){const o=Ge(t),s=ga(n,o);if(s.handleDrop&&n.isWritable())return s.handleDrop(n,t,e,r,i)}async function F7(n,t,e){const r=t.embedType,i=n.editorEmbeds.getEmbedClass(r);if(i.toStandardDoc){const o=n.getBlockById(t.id),s=Xo(o);return i.toStandardDoc(n,t,e,s)}}function K7(n,t){const e=t.embedType,r=n.editorEmbeds.getEmbedClass(e);return r.getResources?r.getResources(n,t):null}const LB={blockType:"embed",blockKind:"embed",createBlockContent:y7,getBlockTextLength:T7,getRangeFromPoint:R7,moveCaret:k7,getCaretRect:w7,updateSelection:S7,clearSelection:L7,convertFrom:I7,convertTo:D7,getBlockProperties:_7,getOptions:M7,handleDeleteBlock:O7,handleUpdateBlock:U7,handleDropOver:N7,handleDrop:P7,toStandardDoc:F7,getResources:K7},Yn=_("complex-block-helper");function In(n,t,e){return Xr(n,t).getChildContainers(n,t,e)}function jc(n,t,e,r){return e.isSimple()?(p(Yn,r.isSimple(),"invalid start and end position"),In(n,t)):(p(Yn,!e.isSimple(),"invalid start pos"),p(Yn,!r.isSimple(),"invalid end pos"),Xr(n,t).getSelectedContainers(n,t,e,r))}function V7(n,t){if(St(t)!==0)return!1;const e=Q(ot(t));if(!e)return!1;p(Yn,Nt(n,e),"not a complex block");const r=ot(t),o=In(n,e).indexOf(r);return p(Yn,o>=0,"not valid child container"),o===0}function _1(n,t,e){const r=In(n,t,e);if(r.length===0)return null;const i=r[0];if(!i)return null;const o=Pe(i);return Nt(n,o)?_1(n,o,e):o}function zc(n,t,e){const r=In(n,t,e);if(r.length===0)return null;const i=r[r.length-1];if(!i)return null;const o=en(i);return Nt(n,o)?zc(n,o,e):o}function IB(n,t){const e=o=>{const s=In(n,o,{visibleOnly:!0});return s.length===0?null:s[0]};let r=t,i=Pe(r);for(;Nt(n,i);){if(r=e(i),!r)return null;i=Pe(r)}return i}function DB(n,t,e){p(Yn,xi(t),"not a child container");const r=Q(t);p(Yn,r,"no parent block"),p(Yn,Nt(n,r),"not a complex block");const i=In(n,r,e),o=i.indexOf(t);if(p(Yn,o!==-1,"child container not found"),o===0){const c=He(r);return c?Nt(n,c)?zc(n,c):c:null}const s=i[o-1],l=en(s);return Nt(n,l)?zc(n,l):l}function _B(n,t){p(Yn,Nt(n,t),"not a complex block");const e=In(n,t);if(p(Yn,e.length>0,"no child container"),e.length===1)return e;const r=e[0],i=r.getBoundingClientRect();let o=i.left,s=i.right;const l=[r];for(let c=1;c<e.length;c++){const f=e[c],h=f.getBoundingClientRect();if(h.right<=o){l.push(f),o=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function MB(n,t){p(Yn,Nt(n,t),"not a complex block");const e=In(n,t);if(p(Yn,e.length>0,"no child container"),e.length===1)return e;const r=e[e.length-1],i=r.getBoundingClientRect();let o=i.left,s=i.right;const l=[r];for(let c=e.length-2;c>=0;c--){const f=e[c],h=f.getBoundingClientRect();if(h.right<=o){l.push(f),o=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function $7(n,t,e,r){const i=t.getBoundingClientRect(),o=r<i.top,s=o?_B(n,t):MB(n,t);let l=s[0],c=il(l.getBoundingClientRect(),e,r);for(let f=1;f<s.length;f++){const h=s[f],C=h.getBoundingClientRect(),E=il(C,e,r);E<c&&(l=h,c=E)}return o?Pe(l):en(l)}function Nm(n,t,e,r){const i=dt(t);p(Yn,i===e.blockId,"invalid start pos"),p(Yn,i===r.blockId,"invalid end pos");const o=Xr(n,t);return o.adjustSelectionPos?o.adjustSelectionPos(n,t,e,r):{anchor:e,focus:r}}class ki{constructor(t,e){m(this,"editor");m(this,"reverse");m(this,"_anchor");m(this,"_focus");this.editor=t,this._anchor=e.anchor,this._focus=e.focus,this.reverse=I1(this.editor,this._anchor,this._focus)>0}isCollapsed(){return!1}isEqual(t){if(!(t instanceof ki))return!1;const e=t,{anchor:r,focus:i}=e;return this._anchor.blockId===r.blockId&&this._anchor.childContainerId===r.childContainerId&&this._focus.blockId===i.blockId&&this._focus.childContainerId===i.childContainerId&&this._anchor.custom===r.custom&&this._focus.custom===i.custom}isReverse(){return this.reverse}isSimple(){return!1}getEditor(){return this.editor}get anchor(){return this._anchor}get focus(){return this._focus}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}getSelectedBlocks(){const t=this.start,e=this.end;return[{block:this.editor.getBlockById(t.blockId),start:t,end:e}]}getAnchorPos(){return this._anchor}getFocusedPos(){return this._focus}getSelectedContainers(){const t=this.editor.getBlockById(this._anchor.blockId);return jc(this.editor,t,this.start,this.end)}clone(){return new ki(this.editor,this)}toDocRange(){return{anchor:this._anchor,focus:this._focus}}}const H7=_("selection-range");function pn(n,t){const{anchor:e,focus:r}=t;return e instanceof gn&&r instanceof gn?new vn(n,{anchor:e,focus:r}):(p(H7,e instanceof yi&&r instanceof yi,"start position type does not math end type"),new ki(n,{anchor:e,focus:r}))}function Ae(n,t,e,r){const i=new gn(t,e,"normal"),o=new gn(t,r!=null?r:e,"normal");return pn(n,{anchor:i,focus:o})}function j7(n){return!!n.anchor.childContainerId}function ul(n,t){var i,o;if(j7(t)){const s=De(t.anchor.blockId,t.anchor.childContainerId,(i=t.anchor)==null?void 0:i.custom),l=De(t.focus.blockId,t.focus.childContainerId,(o=t.focus)==null?void 0:o.custom);return pn(n,{anchor:s,focus:l})}const e=mt(t.anchor.blockId,t.anchor.offset,"normal"),r=mt(t.focus.blockId,t.focus.offset,"normal");return pn(n,{anchor:e,focus:r})}const M1=_("range-from-point");function Pm(n,t,e){const r=[0,-12,12];let i=t;const o=e;let s=Ne(i,o),l=Q(s);if(!l&&s&&n.contentElement.contains(s)){const c=n.rootContainer.getBoundingClientRect(),f=c.left+c.width/2;s=Ne(f,o),l=Q(s);let h=c;l&&(h=l.getBoundingClientRect()),t<h.left?i=h.left:t>h.right&&(i=h.right-5)}for(let c=0;c<r.length;c++){const f=Ne(i,o+r[c]);if(!f)continue;const h=f.getBoundingClientRect();if(f.clientWidth&&f.clientHeight&&c===0&&(h.left+f.clientWidth<i||h.top+f.clientHeight<o))return M1.debug("click on scrollbar, out of element rect"),null;if(c===0&&!n.rootContainer.contains(f)&&(i=n.rootContainer.getBoundingClientRect().left),!n.rootContainer.contains(f))continue;const C=Q(f);if(!C||!n.contains(C))continue;const E=jt(n,C).getRangeFromPoint(n,C,i,o+r[c]);if(E)return E}return null}function OB(n,t,e,r){const i=t.getBoundingClientRect();if(r<=i.top){const c=Pe(t),f=jt(n,c).getRangeFromPoint(n,c,e,c.getBoundingClientRect().top+4);if(f!=null&&f.isSimple())return vn.from(n,f);const h=mt(c,0,"home");return new vn(n,{anchor:h,focus:h})}let o=en(t);if(!ll(o)){const c=Yr(o);p(M1,c,"container must have visible block"),o=c}const s=jt(n,o).getRangeFromPoint(n,o,e,o.getBoundingClientRect().bottom-4);if(s!=null&&s.isSimple())return vn.from(n,s);if(Nt(n,o))return null;const l=mt(o,bt(n,o),"end");return new vn(n,{anchor:l,focus:l})}function O1(n,t,e){const r=Pm(n,t,e);if(r){if(r instanceof vn)return r;p(M1,r instanceof ki,`invalid range type: ${typeof r}`);const c=r,f=n.getContainerById(c.start.childContainerId);return OB(n,f,t,e)}const i=Ne(t,e);if(!i)return null;const{children:o}=i,s=Array.from(o).filter(c=>to(c));if(s.length===0)return null;const l=s.reduce((c,f)=>{const h=c.getBoundingClientRect(),C=f.getBoundingClientRect();return il(h,t,e)>il(C,t,e)?f:c});return OB(n,l,t,e)}function U1(n,t,e){const r=[];return be(t).forEach(o=>{r.push(o),Nt(n,o)&&In(n,o,e).forEach(l=>{r.push(...U1(n,l))})}),r}function N1(n,t){let e=U1(n,n.rootContainer,t);return t!=null&&t.simpleBlockOnly&&(e=e.filter(r=>!Nt(n,r))),e}function no(n,t){const e=n.selection.range.getSelectedBlocks(),r=[];for(const i of e)r.push(i),Nt(n,i.block)&&jc(n,i.block,i.start,i.end).forEach(s=>{const c=U1(n,s).map(f=>({block:f,start:mt(f,0,"home"),end:mt(f,bt(n,f),"home")}));r.push(...c)});return t!=null&&t.simpleBlockOnly?r.filter(i=>!Nt(n,i.block)):r}const act="",Bn=_("text-range");function z7(n,t){const e=(o,s)=>{if(Jo(o))return p(Bn,s===0,`invalid offset for insertion child: ${s}`),{child:o,container:o,offset:2};if(Rr(o))return p(Bn,s===0||s===1,`invalid offset for box: ${s}`),{child:o,container:o,offset:s===0?1:2};const l=o.firstChild;return p(Bn,l,"no child node for text child"),p(Bn,l instanceof Text||l instanceof HTMLBRElement,`invalid child for text child, ${l.nodeName}`),l instanceof HTMLBRElement?(p(Bn,s>=0&&s<=0,"invalid offset for text child"),{child:o,container:l,offset:s}):(p(Bn,s>=0&&s<=l.data.length,"invalid offset for text child"),{child:o,container:l,offset:s})};let r=0;const i=eo(n);for(let o=0;o<i.length;o++){const s=i[o],l=Zr(s);if(t===r)return[e(s,0)];if(t<r+l)return[e(s,t-r)];if(t===r+l){const c=[];c.push(e(s,Zr(s)));const f=i[o+1];return f&&c.push(e(f,0)),c}r+=l}p(Bn,!1,"failed to get range info")}function W7(n,t,e){if(t===e?p(Bn,Jo(n),"only insertion child can be zero offset"):p(Bn,t<e,`invalid start & end: ${t}, ${e}`),Jo(n)){p(Bn,t===e,`invalid insertion child range offset: ${t}, ${e}`),p(Bn,t===0,`invalid insertion child range start: ${t}`);const o=n;return p(Bn,o.children.length===3,`invalid insertion dom, children.length = ${o.children.length}`),Em(o,1,o,2)}if(Rr(n)){p(Bn,t+1===e,`invalid box child range offset: ${t}, ${e}`),p(Bn,t===0,`invalid box child range start: ${t}`);const o=n;return p(Bn,o.children.length===3,`invalid box dom, children.length = ${o.children.length}`),Em(o,1,o,2)}const r=Zr(n);p(Bn,e<=r,`invalid child end: ${e}, ${r}`);const i=n.firstChild;return p(Bn,i instanceof Text,"invalid block text child"),p(Bn,i.data.length>=e,`invalid range end: ${e}, ${i.data.length}`),Em(i,t,i,e)}const Ri=_("caret-rect");function G7(n,t){if(Mm(t)){const e=t,r=x1(e);if(e.getAttribute("data-box-type")==="br"){const i=$t(n),o=Number.parseFloat(window.getComputedStyle(i).lineHeight)||r.getBoundingClientRect().height,s=Array.from(r.getClientRects());p(Ri,s.length>0,"no box client rects");const l=i.getBoundingClientRect(),c=s[0],f=new DOMRect(l.left,c.bottom,1,o);return s.push(f),s}return r.getClientRects()}return A1(t).getClientRects()}function wr(n,t){var l,c,f;const e=z7(n,t.offset);if(e[1]&&e[0].child!==((l=e[1])==null?void 0:l.child)){if(t.type==="end"){const C=aa(e[0].child);return new DOMRect(C.right,C.top,1,C.height)}p(Ri,e[1],"invalid ranges");const h=bm(e[1].child);return new DOMRect(h.left,h.top,1,h.height)}let i=e[0];if(p(Ri,e.length>=1,"failed to get block range"),e.length===1)i=e[0];else{if(p(Ri,e.length>=2,`invalid range info length: ${e.length}`),Jo(e[e.length-1].child)){i=e[e.length-1];const h=i.child,E=A1(h).getClientRects();p(Ri,E.length>=1,"no client rects for box content");const b=E[E.length-1];return new DOMRect(b.right,b.y,1,b.height)}t.type==="home"?i=e[1]:t.type==="end"||Xf(e[0].child)?i=e[0]:Xf(e[1].child)&&(i=e[1])}if(i.container instanceof HTMLBRElement){p(Ri,t.offset===0,"invalid offset for empty block text");const h=i.container.parentElement;p(Ri,h,"invalid br parent");const C=h.getBoundingClientRect();return new DOMRect(C.left,C.top,1,C.height)}const o=ov(i.container,i.offset),s=Array.from(o.getClientRects());if(s.length===0){p(Ri,!Xf(i.child),"only box or insertion child range has zero client rect"),p(Ri,i.offset===1||i.offset===2,"invalid offset for box or insertion child");const h=i.child,C=G7(n,h);if(p(Ri,C.length>=1,"no client rects for box content"),i.offset===1){const b=C[0];return new DOMRect(b.x,b.y,1,b.height)}const E=C[C.length-1];if(t.type==="end"||i.offset===2){if(Mm(h)&&h.getAttribute("data-box-type")==="br"){const b=h.lastChild.getBoundingClientRect();return new DOMRect(E.right,b.top,1,b.height)}return new DOMRect(E.right,E.y,1,E.height)}return new DOMRect(E.x,E.y,1,E.height)}if(Lf()||la()){const h=document.createRange();h.selectNodeContents(i.container);const C=h.getClientRects();if(i.container.nodeType===Node.TEXT_NODE&&i.offset<((f=(c=i.container.textContent)==null?void 0:c.length)!=null?f:0)){const E=document.createRange();E.setStart(i.container,i.offset+1);const b=E.getClientRects();Array.from(C).forEach((v,k)=>{if(Math.floor(b[0].top)!==Math.floor(s[0].top)&&Math.floor(b[0].top)===Math.floor(v.top)){const{x:w,y:O,height:M}=C[k];s.length===1&&t.type==="home"&&s.push(new DOMRect(w,O,0,M))}})}if(i.container.nodeType===Node.TEXT_NODE&&i.offset>0){const E=document.createRange();E.setStart(i.container,i.offset-1);const b=E.getClientRects();Array.from(C).forEach((v,k)=>{if(Math.floor(b[0].top)!==Math.floor(s[0].top)&&Math.floor(b[0].top)===Math.floor(v.top)){const{y:w,height:O,right:M}=C[k];s.length===1&&t.type==="end"&&s.unshift(new DOMRect(M,w,0,O))}})}}return p(Ri,s.length>0,"no client rects for range"),t.type==="home"?s[s.length-1]:s[0]}const q7=_("core");function Qo(n,t,e,r){const i=xe(t);let o=i.querySelector(`.block-anchor[data-id=${e}]`);o||(o=B("div",["block-anchor"],i),o.setAttribute("data-id",e));const s=r!=null?r:t.getBoundingClientRect(),l=t.getBoundingClientRect(),c=new DOMRect(s.left-l.left,s.top-l.top,s.width,s.height);return o.style.left=`${c.left}px`,o.style.top=`${c.top}px`,o.style.width=`${c.width}px`,o.style.height=`${c.height}px`,o}function UB(n,t,e,r){p(q7,at(n,t),"not a text kind block");const i=wr(t,mt(t,e,"normal")),o=t.getBoundingClientRect(),s=xe(t);let l=s.querySelector(`.block-anchor[data-id=${r}]`);l||(l=B("div",["block-anchor"],s),l.setAttribute("data-id",r));const c=new DOMRect(i.left-o.left,i.top-o.top,i.width,i.height);return l.style.left=`${c.left}px`,l.style.top=`${c.top}px`,l.style.width=`${c.width}px`,l.style.height=`${c.height}px`,l}function Qf(n){const t=eo(n);let e=0;return t.forEach(r=>{e+=Zr(r)}),e}var X7=typeof global=="object"&&global&&global.Object===Object&&global;const Y7=X7;var J7=typeof self=="object"&&self&&self.Object===Object&&self,Q7=Y7||J7||Function("return this")(),Z7=Q7.Symbol;const Wc=Z7;var NB=Object.prototype,tD=NB.hasOwnProperty,eD=NB.toString,Zf=Wc?Wc.toStringTag:void 0;function nD(n){var t=tD.call(n,Zf),e=n[Zf];try{n[Zf]=void 0;var r=!0}catch{}var i=eD.call(n);return r&&(t?n[Zf]=e:delete n[Zf]),i}var rD=Object.prototype,iD=rD.toString;function oD(n){return iD.call(n)}var sD="[object Null]",lD="[object Undefined]",PB=Wc?Wc.toStringTag:void 0;function aD(n){return n==null?n===void 0?lD:sD:PB&&PB in Object(n)?nD(n):oD(n)}function cD(n){return n!=null&&typeof n=="object"}var uD="[object Symbol]";function fD(n){return typeof n=="symbol"||cD(n)&&aD(n)==uD}function dD(n,t){for(var e=-1,r=n==null?0:n.length,i=Array(r);++e<r;)i[e]=t(n[e],e,n);return i}var hD=Array.isArray;const mD=hD;var gD=1/0,FB=Wc?Wc.prototype:void 0,KB=FB?FB.toString:void 0;function VB(n){if(typeof n=="string")return n;if(mD(n))return dD(n,VB)+"";if(fD(n))return KB?KB.call(n):"";var t=n+"";return t=="0"&&1/n==-gD?"-0":t}function $B(n){return n==null?"":VB(n)}function pD(n,t,e,r){var i=-1,o=n==null?0:n.length;for(r&&o&&(e=n[++i]);++i<o;)e=t(e,n[i],i,n);return e}function CD(n){return function(t){return n==null?void 0:n[t]}}var ED={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},bD=CD(ED);const xD=bD;var AD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vD="\\u0300-\\u036f",BD="\\ufe20-\\ufe2f",yD="\\u20d0-\\u20ff",TD=vD+BD+yD,kD="["+TD+"]",RD=RegExp(kD,"g");function wD(n){return n=$B(n),n&&n.replace(AD,xD).replace(RD,"")}var SD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function LD(n){return n.match(SD)||[]}var ID=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function DD(n){return ID.test(n)}var HB="\\ud800-\\udfff",_D="\\u0300-\\u036f",MD="\\ufe20-\\ufe2f",OD="\\u20d0-\\u20ff",UD=_D+MD+OD,jB="\\u2700-\\u27bf",zB="a-z\\xdf-\\xf6\\xf8-\\xff",ND="\\xac\\xb1\\xd7\\xf7",PD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",FD="\\u2000-\\u206f",KD=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",WB="A-Z\\xc0-\\xd6\\xd8-\\xde",VD="\\ufe0e\\ufe0f",GB=ND+PD+FD+KD,qB="['\u2019]",XB="["+GB+"]",$D="["+UD+"]",YB="\\d+",HD="["+jB+"]",JB="["+zB+"]",QB="[^"+HB+GB+YB+jB+zB+WB+"]",jD="\\ud83c[\\udffb-\\udfff]",zD="(?:"+$D+"|"+jD+")",WD="[^"+HB+"]",ZB="(?:\\ud83c[\\udde6-\\uddff]){2}",t3="[\\ud800-\\udbff][\\udc00-\\udfff]",Gc="["+WB+"]",GD="\\u200d",e3="(?:"+JB+"|"+QB+")",qD="(?:"+Gc+"|"+QB+")",n3="(?:"+qB+"(?:d|ll|m|re|s|t|ve))?",r3="(?:"+qB+"(?:D|LL|M|RE|S|T|VE))?",i3=zD+"?",o3="["+VD+"]?",XD="(?:"+GD+"(?:"+[WD,ZB,t3].join("|")+")"+o3+i3+")*",YD="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",JD="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",QD=o3+i3+XD,ZD="(?:"+[HD,ZB,t3].join("|")+")"+QD,t8=RegExp([Gc+"?"+JB+"+"+n3+"(?="+[XB,Gc,"$"].join("|")+")",qD+"+"+r3+"(?="+[XB,Gc+e3,"$"].join("|")+")",Gc+"?"+e3+"+"+n3,Gc+"+"+r3,JD,YD,YB,ZD].join("|"),"g");function e8(n){return n.match(t8)||[]}function n8(n,t,e){return n=$B(n),t=e?void 0:t,t===void 0?DD(n)?e8(n):LD(n):n.match(t)||[]}var r8="['\u2019]",i8=RegExp(r8,"g");function o8(n){return function(t){return pD(n8(wD(t).replace(i8,"")),n,"")}}var s8=o8(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()});const l8=s8,s3=_("box");function Zo(n){return!n.attributes||!n.attributes.box?!1:(p(s3,typeof n.attributes.box=="string"&&n.attributes.box==="true"||n.attributes.box===!0,`invalid op attribute box property, ${n.attributes.box}`),p(s3,n.attributes.type,`no box type: ${JSON.stringify(n)}`),!0)}const l3=_("text-op");function Fm(n){return p(l3,typeof n.insert=="string","invalid op, no insert"),n.insert.length}function a3(n,t){const e=n;let r=0;for(let i=0;i<e.length;i++){const o=e[i];p(l3,typeof o.insert=="string","invalid text op, no insert");const s=r+Fm(o);if(s>t)return[o];if(s===t){const l=[o];return i<e.length-1&&l.push(e[i+1]),l}r=s}return[]}const c3=_("rich-text-length");function P1(n){return p(c3,typeof n.insert=="string","op.insert is not string"),n.insert.length}function $n(n){let t=0;return n.forEach(e=>{e.insert&&(p(c3,typeof e.insert=="string","op.insert is not string"),t+=P1(e))}),t}const ro=_("split-text");function sr(n,t,e){if(n=At.default(n),t===0)return{left:[],right:n};if(t===-1)return{left:n,right:[]};let r=0;for(let i=0;i<n.length;i++){const o=n[i];p(ro,typeof o=="object",`invalid op type, ${typeof o}`),p(ro,typeof o.insert=="string",`invalid op.insert type, ${typeof o.insert}`);const s=P1(o);if(r+s<t)r+=s;else{if(r+s===t)return{left:n.slice(0,i+1),right:n.slice(i+1)};{p(ro,r+s>t,`invalid offset, ${r}, ${s}, ${t}`);const l=t-r,c=At.default(o);p(ro,c.insert,"no copied.insert"),p(ro,typeof c.insert=="string","invalid copied.insert type"),c.insert=c.insert.substr(0,l),o.insert=o.insert.substr(l),c.insert===""&&p(ro,!1,"invalid copied.insert, is empty string"),o.insert===""&&p(ro,!1,"invalid op.insert, is empty string");const f=[o,...n.slice(i+1)],h=[...n.splice(0,i),c];return e&&(e.sourceOp=o),{left:h,right:f}}}}throw new Error(`invalid split offset: ${t}, ${JSON.stringify(n)}`)}function Cn(n,t,e){p(ro,t>=0,"invalid offset, < 0"),p(ro,e>0,"invalid length, <= 0"),p(ro,t+e<=$n(n),"invalid offset + length < text length");const{left:r,right:i}=sr(n,t+e),{left:o,right:s}=sr(r,t);return{left:o,middle:s,right:i}}function u3(n,t){const e=Array.from(new Set(t)).sort((o,s)=>o-s),r=[];let i=n;for(let o=e.length-1;o>=0;o--){const s=e[o],{left:l,right:c}=sr(i,s);i=l,r.unshift(c)}return i.length>0&&r.unshift(i),r}function f3(n,t,e){return Cn(n,t,e).middle}const F1="style-color-",K1="style-bg-color-";function Km(n,t,e){const r=At.default(n);return r.forEach(i=>{if(!(i.attributes&&i.attributes.box===!0&&!t.startsWith("comment-")))if(e===void 0){if(!i.attributes||i.attributes[t]===void 0)return;delete i.attributes[t],Object.keys(i.attributes).length===0&&delete i.attributes}else i.attributes||(i.attributes={}),i.attributes[t]=e}),r}function V1(n,t,e,r){const i=At.default(n);return i.forEach(o=>{o.attributes&&o.attributes.box===!0&&!(r!=null&&r.handleBox)||o.attributes&&((r==null?void 0:r.ignoreValue)||o.attributes[t]===e)&&(delete o.attributes[t],Object.keys(o.attributes).length===0&&delete o.attributes)}),i}function td(n,t,e,r,i){if(t===0)return e;const o=Cn(e,n,t);return[...o.left,...Km(o.middle,r,i),...o.right]}function qc(n,t,e,r,i,o){if(t===0)return e;const s=Cn(e,n,t);return[...s.left,...V1(s.middle,r,i,o),...s.right]}function Xc(n,t){const e=a3(n,t);if(e.length===1)return e[0].attributes;if(e.length===2)return e[1].attributes}function d3(n,t,e,r){if(t===0)return e;const i=Cn(e,n,t),o=i.middle.map(s=>r(s));return[...i.left,...o,...i.right]}function h3(n,t){t==="color"?Object.keys(n).forEach(e=>{(e.startsWith("style-color-")||e==="inline-style-color")&&delete n[e]}):t==="backgroundColor"&&Object.keys(n).forEach(e=>{e.startsWith("style-bg-color-")&&delete n[e]})}function a8(n,t){if(!n.attributes||n.attributes.box)return;const e=n.attributes;h3(e,t),Object.keys(e).length===0&&delete n.attributes}function c8(n,t,e){n.attributes||(n.attributes={}),!n.attributes.box&&(t==="color"?n.attributes[`style-color-${e}`]=!0:n.attributes[`style-bg-color-${e}`]=!0)}function m3(n,t,e,r,i){const o=At.default(e);return d3(n,t,o,l=>(a8(l,r),i!==null&&c8(l,r,i),l))}function $1(n){var i,o;if(!n||n.box)return[null,null];const t=Array.from(Object.keys(n));let e=null,r=null;for(let s=0;s<t.length;s++){const l=t[s];l.startsWith(F1)?e=(i=Number.parseInt(l.substring(F1.length),10))!=null?i:null:l.startsWith(K1)&&(r=(o=Number.parseInt(l.substring(K1.length),10))!=null?o:null)}return[e,r]}function g3(n,t,e){h3(n,t),t==="color"?n[`style-color-${e}`]=!0:n[`style-bg-color-${e}`]=!0}function p3(n){return n.attributes?n.attributes.box?[null,null]:$1(n.attributes):[null,null]}function C3(n,t,e){let r=[];if(t===0?n!==0&&(r=Cn(e,n-1,1).middle):r=Cn(e,n,t).middle,r.length===0)return[null,null];let[i,o]=p3(r[0]);if(i===null&&o===null)return[i,o];for(let s=1;s<r.length;s++){const l=r[s];if(!l.attributes)return[null,null];if(l.attributes.box)continue;const[c,f]=p3(l);c===null||i===null?i=null:i=c===i?i:null,f===null||o===null?o=null:o=f===o?o:null}return[i,o]}const Yc=_("text-block-content");function u8(n,t,e,r,i){if(p(Yc,r,"no text for block"),r.length===0&&(!i||i.size===0)){e.innerHTML="<span><br></span>";return}const o=[];i&&o.push(...i.keys());const s=C=>n.editorInsertions.createInsertion(e,C),l=(C,E)=>{const b=i==null?void 0:i.get(E);b&&(b.forEach(v=>{C.appendChild(s(v))}),i==null||i.delete(E))},c=document.createDocumentFragment();let f=0;const h=u3(r,o);for(let C=0;C<h.length;C++){l(c,f);const E=h[C];f+=$n(E);for(let b=0;b<E.length;b++){const v=E[b];if(Zo(v)){p(Yc,v.attributes,`op is not an valid box: ${JSON.stringify(v)}`);const w=n.editorBoxes.createBox(e,v.attributes);p(Yc,w instanceof HTMLSpanElement,`invalid box element: ${w.tagName}`);const O=n.editorBlockRenders.renderBox(t,v.attributes);O.classes&&z(w,...O.classes),O.attributes&&Object.entries(O.attributes).forEach(([M,F])=>{w.setAttribute(M,F)}),O.styles&&Object.entries(O.styles).forEach(([M,F])=>{w.style.setProperty(M,F)}),c.appendChild(w);continue}p(Yc,v.insert,`no insert in op: ${JSON.stringify(v)}`);const k=B("span",["text"],c,v.insert);if(v.attributes){const w=n.editorBlockRenders.renderText(t,v.attributes);w.classes&&z(k,...w.classes),w.attributes&&Object.entries(w.attributes).forEach(([O,M])=>{k.setAttribute(O,M)}),w.styles&&Object.entries(w.styles).forEach(([O,M])=>{k.style.setProperty(l8(O),M)})}c.appendChild(k)}}l(c,f),e.innerHTML="",e.appendChild(c)}function Vm(n,t,e,r,i){const{text:o,insertions:s}=n.editorDecorators.decorateText(t,i),l=n.compositingText;if(l){const c=n.selection.range.start;if(p(Yc,c.isSimple(),"not an simple position while compositing"),c.blockId===e){const f=Xc(o,0);s.set(c.offset,[{type:"inputting",id:rt(),text:l,attributes:f}])}}return u8(n,t,r,o,s)}function f8(n){const t=n.rootContainer.querySelectorAll('span[data-type="editor-insertion"].inputting-insertion');t.length&&Yc.debug(`remove ${t.length} temp composition span`),Array.from(t).forEach(e=>e.remove())}const io=_("client-rects");function d8(n){const t=eo(n);let e=0;const r=[];for(let i=0;i<t.length;i++){const o=t[i],s=Zr(o);r.push({child:o,startBlockOffset:e,endBlockOffset:e+s}),e+=s}return r}function h8(n,t,e,r){p(io,e<r,`invalid from & to: ${e}, ${r}`);const i=bt(n,t);p(io,e>=0&&r>=0&&e<=i&&r<=i,`invalid offset: ${e}, ${r}, length: ${i}`);const o=d8(t),s=o.findIndex(b=>b.startBlockOffset<=e&&e<b.endBlockOffset),l=o.findIndex(b=>b.startBlockOffset<r&&r<=b.endBlockOffset);if(p(io,s!==-1,"failed to find start child"),p(io,l!==-1,"failed to find end child"),p(io,s<=l,`invalid start index & end index: ${s}, ${l}`),s===l){const b=o[s];return[{child:b.child,startChildOffset:e-b.startBlockOffset,endChildOffset:r-b.startBlockOffset}]}const c=[],f=o[s],h={child:f.child,startChildOffset:e-f.startBlockOffset,endChildOffset:Zr(f.child)};c.push(h);for(let b=s+1;b<l;b++){const v=o[b],k={child:v.child,startChildOffset:0,endChildOffset:v.endBlockOffset-v.startBlockOffset};c.push(k)}const C=o[l],E={child:C.child,startChildOffset:0,endChildOffset:r-C.startBlockOffset};return c.push(E),c}function m8(n){const t=(r,i)=>r.left<=i.left&&r.top<=i.top&&r.right>=i.right&&r.bottom>=i.bottom&&(r.width!==i.width||r.height!==i.height);n=n.filter(r=>!n.find(o=>t(r,o)));const e=[];return n=n.filter(r=>e.find(i=>i.left===r.left&&i.top===r.top&&i.width===r.width&&i.height===r.height)?!1:(e.push(r),!0)),n}function E3(n,t,e,r){if(bt(n,t)===0){const h=$t(t).getBoundingClientRect();return[new DOMRect(h.left,h.top,4,h.height)]}const i=e.offset,o=r.offset;if(i===o)return[wr(t,e)];const l=h8(n,t,i,o).map(f=>W7(f.child,f.startChildOffset,f.endChildOffset)),c=[];return l.forEach(f=>{const h=m8(Array.from(f.getClientRects()));c.push(...h)}),c}function g8(n,t,e){p(io,e instanceof vn,"invalid range");const r=e.start,i=e.end;return p(io,r.isSimple(),"text block only allow simple position"),p(io,i.isSimple(),"text block only allow simple position"),p(io,r.blockId===i.blockId,"only allow update one text block selection"),p(io,r.blockId===dt(t),"only allow update one text block selection"),E3(n,t,r,i)}const H1=_("selection-background");function p8(n,t,e,r){p(H1,e.isSimple(),"text block only allow simple position"),p(H1,r.isSimple(),"text block only allow simple position"),p(H1,e.blockId===r.blockId,"only allow update one text block selection");const i=e.offset,o=r.offset;if(i===o&&(bt(n,t)!==0||n.selection.range.isCollapsed())){const h=E1(t);Array.from(h.children).forEach(C=>{C.remove()});return}const s=E3(n,t,e,r),l=t.getBoundingClientRect(),c=Gr(t),f=E1(t);Array.from(f.children).forEach((h,C)=>{if(C<s.length){const E=s[C],b=h;b.style.left=`${(E.left-l.left-t.clientLeft)/c}px`,b.style.top=`${(E.top-l.top-t.clientTop)/c}px`,b.style.width=`${E.width/c}px`,b.style.height=`${E.height/c}px`}else h.remove()}),s.slice(f.children.length).forEach(h=>{const C=B("div",["editor-selection-background"],f);C.style.left=`${(h.left-l.left-t.clientLeft)/c}px`,C.style.top=`${(h.top-l.top-t.clientTop)/c}px`,C.style.width=`${h.width/c}px`,C.style.height=`${h.height/c}px`})}function C8(n){const t=n.selection.range.getSelectedBlocks(),e=n.selection.range.isCollapsed();n.rootContainer.querySelectorAll("div[data-type=block-background]").forEach(r=>{const i=Q(r);i&&at(n,i)&&(!t.find(o=>o.block===i)||e)&&r.remove()})}const ed=_("line-breaker");function b3(n){const t=[];let e=null;for(let r=0;r<n.length;r++){let i=n[r];!!e&&i.top===e.top?(i=new DOMRect(e.left,e.top,e.width+i.width,i.height),t.splice(t.length-1,1,i)):t.push(i),e=i}return t}function E8(n){const t=document.createRange();return t.setStart(n,0),t.setEnd(n,n.data.length),b3(t.getClientRects())}function nd(n){const t=l=>{if(!l)return!1;const c=bm(l);return aa(l).top>c.top+c.height/2},e=(l,c)=>{const f=aa(l),h=bm(c);return Math.floor(h.left)<Math.floor(f.right)},r=(l,c)=>{const f=aa(l),h=aa(c);return h.top+h.height/2>f.bottom},i=[];let o=0;const s=eo(n);for(let l=0;l<s.length;l++){const c=s[l];if(Jo(c)){const v=c,k=s[l+1];if(!k)break;const w=s[l-1];if(w&&r(w,v)&&i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nextWrapped",prevWrapped:t(w),nextWrapped:t(v)}}),e(v,k)){i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nowrap",prevWrapped:t(w),nextWrapped:t(v)}});continue}continue}if(Rr(c)){const v=c,k=s[l+1];if(!k)break;const w=s[l-1];if(w&&r(w,v)&&i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nextWrapped",prevWrapped:t(w),nextWrapped:t(v)}}),e(v,k)){o+=1,i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:c,wrap:"nowrap",prevWrapped:t(w),nextWrapped:t(c)}});continue}o+=1;continue}const f=c,h=b3(f.getClientRects());if(p(ed,h.length>0,"invalid text child dom"),h.length===1){const v=s[l+1];if(!v)break;if(e(f,v)){o+=Zr(f),i.push({offset:o,type:"betweenChild",childInfo:{prevChild:f,nextChild:v,wrap:"nowrap",prevWrapped:t(f),nextWrapped:t(v)}});continue}o+=Zr(f);continue}const C=f.firstChild;p(ed,C,"invalid text child, no text node"),p(ed,C instanceof Text,`invalid text child, not a valid text node: ${typeof C}`);const E=Zr(f);p(ed,C.data.length===E,"text node data length not equal child text length");const b=E8(C);for(let v=0;v<b.length-1;v++){const k=b[v],w=Yp(k.right,k.top+k.height-1);w.offset>-1&&w.textNode===C&&i.push({offset:o+w.offset,type:"textBreakWord",childInfo:{prevChild:c,nextChild:c,wrap:"nowrap",prevWrapped:t(c),nextWrapped:t(c)}})}o+=E}return i}function j1(n,t){const e=nd(n);for(let r=0;r<e.length;r++){const{offset:i}=e[r];if(t.offset<i)return{lineIndex:r,lineBreaks:e};if(t.offset===i&&t.type==="end")return{lineIndex:r,lineBreaks:e}}return p(ed,t.offset<=Qf(n),"invalid position, offset > block length"),{lineIndex:e.length,lineBreaks:e}}var yn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x3={},z1={},W1={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.EXTENDED_PICTOGRAPHIC=n.CLUSTER_BREAK=void 0,function(t){t[t.CR=0]="CR",t[t.LF=1]="LF",t[t.CONTROL=2]="CONTROL",t[t.EXTEND=3]="EXTEND",t[t.REGIONAL_INDICATOR=4]="REGIONAL_INDICATOR",t[t.SPACINGMARK=5]="SPACINGMARK",t[t.L=6]="L",t[t.V=7]="V",t[t.T=8]="T",t[t.LV=9]="LV",t[t.LVT=10]="LVT",t[t.OTHER=11]="OTHER",t[t.PREPEND=12]="PREPEND",t[t.E_BASE=13]="E_BASE",t[t.E_MODIFIER=14]="E_MODIFIER",t[t.ZWJ=15]="ZWJ",t[t.GLUE_AFTER_ZWJ=16]="GLUE_AFTER_ZWJ",t[t.E_BASE_GAZ=17]="E_BASE_GAZ"}(n.CLUSTER_BREAK||(n.CLUSTER_BREAK={})),n.EXTENDED_PICTOGRAPHIC=101})(W1);var G1={};Object.defineProperty(G1,"__esModule",{value:!0});const Qt=W1,ts=0,q1=1,b8=2,x8=3,A8=4;class v8{static isSurrogate(t,e){return 55296<=t.charCodeAt(e)&&t.charCodeAt(e)<=56319&&56320<=t.charCodeAt(e+1)&&t.charCodeAt(e+1)<=57343}static codePointAt(t,e){e===void 0&&(e=0);const r=t.charCodeAt(e);if(55296<=r&&r<=56319&&e<t.length-1){const i=r,o=t.charCodeAt(e+1);return 56320<=o&&o<=57343?(i-55296)*1024+(o-56320)+65536:i}if(56320<=r&&r<=57343&&e>=1){const i=t.charCodeAt(e-1),o=r;return 55296<=i&&i<=56319?(i-55296)*1024+(o-56320)+65536:o}return r}static shouldBreak(t,e,r,i,o,s){const l=[t].concat(e).concat([r]),c=[i].concat(o).concat([s]),f=l[l.length-2],h=r,C=s,E=l.lastIndexOf(Qt.CLUSTER_BREAK.REGIONAL_INDICATOR);if(E>0&&l.slice(1,E).every(function(v){return v===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR})&&[Qt.CLUSTER_BREAK.PREPEND,Qt.CLUSTER_BREAK.REGIONAL_INDICATOR].indexOf(f)===-1)return l.filter(function(v){return v===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR}).length%2===1?x8:A8;if(f===Qt.CLUSTER_BREAK.CR&&h===Qt.CLUSTER_BREAK.LF)return ts;if(f===Qt.CLUSTER_BREAK.CONTROL||f===Qt.CLUSTER_BREAK.CR||f===Qt.CLUSTER_BREAK.LF)return q1;if(h===Qt.CLUSTER_BREAK.CONTROL||h===Qt.CLUSTER_BREAK.CR||h===Qt.CLUSTER_BREAK.LF)return q1;if(f===Qt.CLUSTER_BREAK.L&&(h===Qt.CLUSTER_BREAK.L||h===Qt.CLUSTER_BREAK.V||h===Qt.CLUSTER_BREAK.LV||h===Qt.CLUSTER_BREAK.LVT))return ts;if((f===Qt.CLUSTER_BREAK.LV||f===Qt.CLUSTER_BREAK.V)&&(h===Qt.CLUSTER_BREAK.V||h===Qt.CLUSTER_BREAK.T))return ts;if((f===Qt.CLUSTER_BREAK.LVT||f===Qt.CLUSTER_BREAK.T)&&h===Qt.CLUSTER_BREAK.T)return ts;if(h===Qt.CLUSTER_BREAK.EXTEND||h===Qt.CLUSTER_BREAK.ZWJ)return ts;if(h===Qt.CLUSTER_BREAK.SPACINGMARK)return ts;if(f===Qt.CLUSTER_BREAK.PREPEND)return ts;const b=c.slice(0,-1).lastIndexOf(Qt.EXTENDED_PICTOGRAPHIC);return b!==-1&&c[b]===Qt.EXTENDED_PICTOGRAPHIC&&l.slice(b+1,-2).every(function(v){return v===Qt.CLUSTER_BREAK.EXTEND})&&f===Qt.CLUSTER_BREAK.ZWJ&&C===Qt.EXTENDED_PICTOGRAPHIC?ts:e.indexOf(Qt.CLUSTER_BREAK.REGIONAL_INDICATOR)!==-1?b8:f===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR&&h===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR?ts:q1}}G1.default=v8;var X1={};Object.defineProperty(X1,"__esModule",{value:!0});class B8{constructor(t,e){this._index=0,this._str=t,this._nextBreak=e}[Symbol.iterator](){return this}next(){let t;if((t=this._nextBreak(this._str,this._index))<this._str.length){const e=this._str.slice(this._index,t);return this._index=t,{value:e,done:!1}}if(this._index<this._str.length){const e=this._str.slice(this._index);return this._index=this._str.length,{value:e,done:!1}}return{value:void 0,done:!0}}}X1.default=B8;var A3=yn&&yn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(z1,"__esModule",{value:!0});const d=W1,$m=A3(G1),y8=A3(X1);class es{static nextBreak(t,e){if(e===void 0&&(e=0),e<0)return 0;if(e>=t.length-1)return t.length;const r=$m.default.codePointAt(t,e),i=es.getGraphemeBreakProperty(r),o=es.getEmojiProperty(r),s=[],l=[];for(let c=e+1;c<t.length;c++){if($m.default.isSurrogate(t,c-1))continue;const f=$m.default.codePointAt(t,c),h=es.getGraphemeBreakProperty(f),C=es.getEmojiProperty(f);if($m.default.shouldBreak(i,s,h,o,l,C))return c;s.push(h),l.push(C)}return t.length}splitGraphemes(t){const e=[];let r=0,i;for(;(i=es.nextBreak(t,r))<t.length;)e.push(t.slice(r,i)),r=i;return r<t.length&&e.push(t.slice(r)),e}iterateGraphemes(t){return new y8.default(t,es.nextBreak)}countGraphemes(t){let e=0,r=0,i;for(;(i=es.nextBreak(t,r))<t.length;)r=i,e++;return r<t.length&&e++,e}static getGraphemeBreakProperty(t){if(t<48905){if(t<44116){if(t<4141){if(t<2818){if(t<2363)if(t<1759){if(t<1471){if(t<127){if(t<11){if(t<10){if(0<=t&&t<=9)return d.CLUSTER_BREAK.CONTROL}else if(t===10)return d.CLUSTER_BREAK.LF}else if(t<13){if(11<=t&&t<=12)return d.CLUSTER_BREAK.CONTROL}else if(t<14){if(t===13)return d.CLUSTER_BREAK.CR}else if(14<=t&&t<=31)return d.CLUSTER_BREAK.CONTROL}else if(t<768){if(t<173){if(127<=t&&t<=159)return d.CLUSTER_BREAK.CONTROL}else if(t===173)return d.CLUSTER_BREAK.CONTROL}else if(t<1155){if(768<=t&&t<=879)return d.CLUSTER_BREAK.EXTEND}else if(t<1425){if(1155<=t&&t<=1161)return d.CLUSTER_BREAK.EXTEND}else if(1425<=t&&t<=1469)return d.CLUSTER_BREAK.EXTEND}else if(t<1552){if(t<1476){if(t<1473){if(t===1471)return d.CLUSTER_BREAK.EXTEND}else if(1473<=t&&t<=1474)return d.CLUSTER_BREAK.EXTEND}else if(t<1479){if(1476<=t&&t<=1477)return d.CLUSTER_BREAK.EXTEND}else if(t<1536){if(t===1479)return d.CLUSTER_BREAK.EXTEND}else if(1536<=t&&t<=1541)return d.CLUSTER_BREAK.PREPEND}else if(t<1648){if(t<1564){if(1552<=t&&t<=1562)return d.CLUSTER_BREAK.EXTEND}else if(t<1611){if(t===1564)return d.CLUSTER_BREAK.CONTROL}else if(1611<=t&&t<=1631)return d.CLUSTER_BREAK.EXTEND}else if(t<1750){if(t===1648)return d.CLUSTER_BREAK.EXTEND}else if(t<1757){if(1750<=t&&t<=1756)return d.CLUSTER_BREAK.EXTEND}else if(t===1757)return d.CLUSTER_BREAK.PREPEND}else if(t<2075){if(t<1840)if(t<1770){if(t<1767){if(1759<=t&&t<=1764)return d.CLUSTER_BREAK.EXTEND}else if(1767<=t&&t<=1768)return d.CLUSTER_BREAK.EXTEND}else if(t<1807){if(1770<=t&&t<=1773)return d.CLUSTER_BREAK.EXTEND}else{if(t===1807)return d.CLUSTER_BREAK.PREPEND;if(t===1809)return d.CLUSTER_BREAK.EXTEND}else if(t<2027){if(t<1958){if(1840<=t&&t<=1866)return d.CLUSTER_BREAK.EXTEND}else if(1958<=t&&t<=1968)return d.CLUSTER_BREAK.EXTEND}else if(t<2045){if(2027<=t&&t<=2035)return d.CLUSTER_BREAK.EXTEND}else if(t<2070){if(t===2045)return d.CLUSTER_BREAK.EXTEND}else if(2070<=t&&t<=2073)return d.CLUSTER_BREAK.EXTEND}else if(t<2200){if(t<2089){if(t<2085){if(2075<=t&&t<=2083)return d.CLUSTER_BREAK.EXTEND}else if(2085<=t&&t<=2087)return d.CLUSTER_BREAK.EXTEND}else if(t<2137){if(2089<=t&&t<=2093)return d.CLUSTER_BREAK.EXTEND}else if(t<2192){if(2137<=t&&t<=2139)return d.CLUSTER_BREAK.EXTEND}else if(2192<=t&&t<=2193)return d.CLUSTER_BREAK.PREPEND}else if(t<2275){if(t<2250){if(2200<=t&&t<=2207)return d.CLUSTER_BREAK.EXTEND}else if(t<2274){if(2250<=t&&t<=2273)return d.CLUSTER_BREAK.EXTEND}else if(t===2274)return d.CLUSTER_BREAK.PREPEND}else if(t<2307){if(2275<=t&&t<=2306)return d.CLUSTER_BREAK.EXTEND}else{if(t===2307)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2362)return d.CLUSTER_BREAK.EXTEND}else if(t<2561){if(t<2434){if(t<2381){if(t<2366){if(t===2363)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2364)return d.CLUSTER_BREAK.EXTEND}else if(t<2369){if(2366<=t&&t<=2368)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2377){if(2369<=t&&t<=2376)return d.CLUSTER_BREAK.EXTEND}else if(2377<=t&&t<=2380)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2385){if(t<2382){if(t===2381)return d.CLUSTER_BREAK.EXTEND}else if(2382<=t&&t<=2383)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2402){if(2385<=t&&t<=2391)return d.CLUSTER_BREAK.EXTEND}else if(t<2433){if(2402<=t&&t<=2403)return d.CLUSTER_BREAK.EXTEND}else if(t===2433)return d.CLUSTER_BREAK.EXTEND}else if(t<2503){if(t<2494){if(t<2492){if(2434<=t&&t<=2435)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2492)return d.CLUSTER_BREAK.EXTEND}else if(t<2495){if(t===2494)return d.CLUSTER_BREAK.EXTEND}else if(t<2497){if(2495<=t&&t<=2496)return d.CLUSTER_BREAK.SPACINGMARK}else if(2497<=t&&t<=2500)return d.CLUSTER_BREAK.EXTEND}else if(t<2519){if(t<2507){if(2503<=t&&t<=2504)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2509){if(2507<=t&&t<=2508)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2509)return d.CLUSTER_BREAK.EXTEND}else if(t<2530){if(t===2519)return d.CLUSTER_BREAK.EXTEND}else if(t<2558){if(2530<=t&&t<=2531)return d.CLUSTER_BREAK.EXTEND}else if(t===2558)return d.CLUSTER_BREAK.EXTEND}else if(t<2691){if(t<2631){if(t<2620){if(t<2563){if(2561<=t&&t<=2562)return d.CLUSTER_BREAK.EXTEND}else if(t===2563)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2622){if(t===2620)return d.CLUSTER_BREAK.EXTEND}else if(t<2625){if(2622<=t&&t<=2624)return d.CLUSTER_BREAK.SPACINGMARK}else if(2625<=t&&t<=2626)return d.CLUSTER_BREAK.EXTEND}else if(t<2672){if(t<2635){if(2631<=t&&t<=2632)return d.CLUSTER_BREAK.EXTEND}else if(t<2641){if(2635<=t&&t<=2637)return d.CLUSTER_BREAK.EXTEND}else if(t===2641)return d.CLUSTER_BREAK.EXTEND}else if(t<2677){if(2672<=t&&t<=2673)return d.CLUSTER_BREAK.EXTEND}else if(t<2689){if(t===2677)return d.CLUSTER_BREAK.EXTEND}else if(2689<=t&&t<=2690)return d.CLUSTER_BREAK.EXTEND}else if(t<2761){if(t<2750){if(t===2691)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2748)return d.CLUSTER_BREAK.EXTEND}else if(t<2753){if(2750<=t&&t<=2752)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2759){if(2753<=t&&t<=2757)return d.CLUSTER_BREAK.EXTEND}else if(2759<=t&&t<=2760)return d.CLUSTER_BREAK.EXTEND}else if(t<2786){if(t<2763){if(t===2761)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2765){if(2763<=t&&t<=2764)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2765)return d.CLUSTER_BREAK.EXTEND}else if(t<2810){if(2786<=t&&t<=2787)return d.CLUSTER_BREAK.EXTEND}else if(t<2817){if(2810<=t&&t<=2815)return d.CLUSTER_BREAK.EXTEND}else if(t===2817)return d.CLUSTER_BREAK.EXTEND}else if(t<3315){if(t<3076){if(t<2946){if(t<2887){if(t<2878){if(t<2876){if(2818<=t&&t<=2819)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2876)return d.CLUSTER_BREAK.EXTEND}else if(t<2880){if(2878<=t&&t<=2879)return d.CLUSTER_BREAK.EXTEND}else if(t<2881){if(t===2880)return d.CLUSTER_BREAK.SPACINGMARK}else if(2881<=t&&t<=2884)return d.CLUSTER_BREAK.EXTEND}else if(t<2893){if(t<2891){if(2887<=t&&t<=2888)return d.CLUSTER_BREAK.SPACINGMARK}else if(2891<=t&&t<=2892)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2901){if(t===2893)return d.CLUSTER_BREAK.EXTEND}else if(t<2914){if(2901<=t&&t<=2903)return d.CLUSTER_BREAK.EXTEND}else if(2914<=t&&t<=2915)return d.CLUSTER_BREAK.EXTEND}else if(t<3014){if(t<3007){if(t===2946||t===3006)return d.CLUSTER_BREAK.EXTEND}else if(t<3008){if(t===3007)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3009){if(t===3008)return d.CLUSTER_BREAK.EXTEND}else if(3009<=t&&t<=3010)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3031){if(t<3018){if(3014<=t&&t<=3016)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3021){if(3018<=t&&t<=3020)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3021)return d.CLUSTER_BREAK.EXTEND}else if(t<3072){if(t===3031)return d.CLUSTER_BREAK.EXTEND}else if(t<3073){if(t===3072)return d.CLUSTER_BREAK.EXTEND}else if(3073<=t&&t<=3075)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3262){if(t<3146){if(t<3134){if(t===3076||t===3132)return d.CLUSTER_BREAK.EXTEND}else if(t<3137){if(3134<=t&&t<=3136)return d.CLUSTER_BREAK.EXTEND}else if(t<3142){if(3137<=t&&t<=3140)return d.CLUSTER_BREAK.SPACINGMARK}else if(3142<=t&&t<=3144)return d.CLUSTER_BREAK.EXTEND}else if(t<3201){if(t<3157){if(3146<=t&&t<=3149)return d.CLUSTER_BREAK.EXTEND}else if(t<3170){if(3157<=t&&t<=3158)return d.CLUSTER_BREAK.EXTEND}else if(3170<=t&&t<=3171)return d.CLUSTER_BREAK.EXTEND}else if(t<3202){if(t===3201)return d.CLUSTER_BREAK.EXTEND}else if(t<3260){if(3202<=t&&t<=3203)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3260)return d.CLUSTER_BREAK.EXTEND}else if(t<3270){if(t<3264){if(t===3262)return d.CLUSTER_BREAK.SPACINGMARK;if(t===3263)return d.CLUSTER_BREAK.EXTEND}else if(t<3266){if(3264<=t&&t<=3265)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3267){if(t===3266)return d.CLUSTER_BREAK.EXTEND}else if(3267<=t&&t<=3268)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3276){if(t<3271){if(t===3270)return d.CLUSTER_BREAK.EXTEND}else if(t<3274){if(3271<=t&&t<=3272)return d.CLUSTER_BREAK.SPACINGMARK}else if(3274<=t&&t<=3275)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3285){if(3276<=t&&t<=3277)return d.CLUSTER_BREAK.EXTEND}else if(t<3298){if(3285<=t&&t<=3286)return d.CLUSTER_BREAK.EXTEND}else if(3298<=t&&t<=3299)return d.CLUSTER_BREAK.EXTEND}else if(t<3551){if(t<3406){if(t<3391){if(t<3330){if(t<3328){if(t===3315)return d.CLUSTER_BREAK.SPACINGMARK}else if(3328<=t&&t<=3329)return d.CLUSTER_BREAK.EXTEND}else if(t<3387){if(3330<=t&&t<=3331)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3390){if(3387<=t&&t<=3388)return d.CLUSTER_BREAK.EXTEND}else if(t===3390)return d.CLUSTER_BREAK.EXTEND}else if(t<3398){if(t<3393){if(3391<=t&&t<=3392)return d.CLUSTER_BREAK.SPACINGMARK}else if(3393<=t&&t<=3396)return d.CLUSTER_BREAK.EXTEND}else if(t<3402){if(3398<=t&&t<=3400)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3405){if(3402<=t&&t<=3404)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3405)return d.CLUSTER_BREAK.EXTEND}else if(t<3530){if(t<3426){if(t===3406)return d.CLUSTER_BREAK.PREPEND;if(t===3415)return d.CLUSTER_BREAK.EXTEND}else if(t<3457){if(3426<=t&&t<=3427)return d.CLUSTER_BREAK.EXTEND}else if(t<3458){if(t===3457)return d.CLUSTER_BREAK.EXTEND}else if(3458<=t&&t<=3459)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3538){if(t<3535){if(t===3530)return d.CLUSTER_BREAK.EXTEND}else if(t<3536){if(t===3535)return d.CLUSTER_BREAK.EXTEND}else if(3536<=t&&t<=3537)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3542){if(3538<=t&&t<=3540)return d.CLUSTER_BREAK.EXTEND}else if(t<3544){if(t===3542)return d.CLUSTER_BREAK.EXTEND}else if(3544<=t&&t<=3550)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3893){if(t<3655){if(t<3633){if(t<3570){if(t===3551)return d.CLUSTER_BREAK.EXTEND}else if(3570<=t&&t<=3571)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3635){if(t===3633)return d.CLUSTER_BREAK.EXTEND}else if(t<3636){if(t===3635)return d.CLUSTER_BREAK.SPACINGMARK}else if(3636<=t&&t<=3642)return d.CLUSTER_BREAK.EXTEND}else if(t<3764)if(t<3761){if(3655<=t&&t<=3662)return d.CLUSTER_BREAK.EXTEND}else{if(t===3761)return d.CLUSTER_BREAK.EXTEND;if(t===3763)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3784){if(3764<=t&&t<=3772)return d.CLUSTER_BREAK.EXTEND}else if(t<3864){if(3784<=t&&t<=3790)return d.CLUSTER_BREAK.EXTEND}else if(3864<=t&&t<=3865)return d.CLUSTER_BREAK.EXTEND}else if(t<3967){if(t<3897){if(t===3893||t===3895)return d.CLUSTER_BREAK.EXTEND}else if(t<3902){if(t===3897)return d.CLUSTER_BREAK.EXTEND}else if(t<3953){if(3902<=t&&t<=3903)return d.CLUSTER_BREAK.SPACINGMARK}else if(3953<=t&&t<=3966)return d.CLUSTER_BREAK.EXTEND}else if(t<3981){if(t<3968){if(t===3967)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3974){if(3968<=t&&t<=3972)return d.CLUSTER_BREAK.EXTEND}else if(3974<=t&&t<=3975)return d.CLUSTER_BREAK.EXTEND}else if(t<3993){if(3981<=t&&t<=3991)return d.CLUSTER_BREAK.EXTEND}else if(t<4038){if(3993<=t&&t<=4028)return d.CLUSTER_BREAK.EXTEND}else if(t===4038)return d.CLUSTER_BREAK.EXTEND}else if(t<7204){if(t<6448){if(t<5938){if(t<4226){if(t<4157){if(t<4146){if(t<4145){if(4141<=t&&t<=4144)return d.CLUSTER_BREAK.EXTEND}else if(t===4145)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4153){if(4146<=t&&t<=4151)return d.CLUSTER_BREAK.EXTEND}else if(t<4155){if(4153<=t&&t<=4154)return d.CLUSTER_BREAK.EXTEND}else if(4155<=t&&t<=4156)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4184){if(t<4182){if(4157<=t&&t<=4158)return d.CLUSTER_BREAK.EXTEND}else if(4182<=t&&t<=4183)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4190){if(4184<=t&&t<=4185)return d.CLUSTER_BREAK.EXTEND}else if(t<4209){if(4190<=t&&t<=4192)return d.CLUSTER_BREAK.EXTEND}else if(4209<=t&&t<=4212)return d.CLUSTER_BREAK.EXTEND}else if(t<4352){if(t<4229){if(t===4226)return d.CLUSTER_BREAK.EXTEND;if(t===4228)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4237){if(4229<=t&&t<=4230)return d.CLUSTER_BREAK.EXTEND}else if(t===4237||t===4253)return d.CLUSTER_BREAK.EXTEND}else if(t<4957){if(t<4448){if(4352<=t&&t<=4447)return d.CLUSTER_BREAK.L}else if(t<4520){if(4448<=t&&t<=4519)return d.CLUSTER_BREAK.V}else if(4520<=t&&t<=4607)return d.CLUSTER_BREAK.T}else if(t<5906){if(4957<=t&&t<=4959)return d.CLUSTER_BREAK.EXTEND}else if(t<5909){if(5906<=t&&t<=5908)return d.CLUSTER_BREAK.EXTEND}else if(t===5909)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6089){if(t<6070){if(t<5970){if(t<5940){if(5938<=t&&t<=5939)return d.CLUSTER_BREAK.EXTEND}else if(t===5940)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6002){if(5970<=t&&t<=5971)return d.CLUSTER_BREAK.EXTEND}else if(t<6068){if(6002<=t&&t<=6003)return d.CLUSTER_BREAK.EXTEND}else if(6068<=t&&t<=6069)return d.CLUSTER_BREAK.EXTEND}else if(t<6078){if(t<6071){if(t===6070)return d.CLUSTER_BREAK.SPACINGMARK}else if(6071<=t&&t<=6077)return d.CLUSTER_BREAK.EXTEND}else if(t<6086){if(6078<=t&&t<=6085)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6087){if(t===6086)return d.CLUSTER_BREAK.EXTEND}else if(6087<=t&&t<=6088)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6277)if(t<6155){if(t<6109){if(6089<=t&&t<=6099)return d.CLUSTER_BREAK.EXTEND}else if(t===6109)return d.CLUSTER_BREAK.EXTEND}else if(t<6158){if(6155<=t&&t<=6157)return d.CLUSTER_BREAK.EXTEND}else{if(t===6158)return d.CLUSTER_BREAK.CONTROL;if(t===6159)return d.CLUSTER_BREAK.EXTEND}else if(t<6435){if(t<6313){if(6277<=t&&t<=6278)return d.CLUSTER_BREAK.EXTEND}else if(t<6432){if(t===6313)return d.CLUSTER_BREAK.EXTEND}else if(6432<=t&&t<=6434)return d.CLUSTER_BREAK.EXTEND}else if(t<6439){if(6435<=t&&t<=6438)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6441){if(6439<=t&&t<=6440)return d.CLUSTER_BREAK.EXTEND}else if(6441<=t&&t<=6443)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6971){if(t<6744)if(t<6681){if(t<6451){if(t<6450){if(6448<=t&&t<=6449)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===6450)return d.CLUSTER_BREAK.EXTEND}else if(t<6457){if(6451<=t&&t<=6456)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6679){if(6457<=t&&t<=6459)return d.CLUSTER_BREAK.EXTEND}else if(6679<=t&&t<=6680)return d.CLUSTER_BREAK.EXTEND}else if(t<6741){if(t<6683){if(6681<=t&&t<=6682)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===6683)return d.CLUSTER_BREAK.EXTEND}else if(t<6742){if(t===6741)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===6742)return d.CLUSTER_BREAK.EXTEND;if(t===6743)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6771){if(t<6754){if(t<6752){if(6744<=t&&t<=6750)return d.CLUSTER_BREAK.EXTEND}else if(t===6752)return d.CLUSTER_BREAK.EXTEND}else if(t<6757){if(t===6754)return d.CLUSTER_BREAK.EXTEND}else if(t<6765){if(6757<=t&&t<=6764)return d.CLUSTER_BREAK.EXTEND}else if(6765<=t&&t<=6770)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6912){if(t<6783){if(6771<=t&&t<=6780)return d.CLUSTER_BREAK.EXTEND}else if(t<6832){if(t===6783)return d.CLUSTER_BREAK.EXTEND}else if(6832<=t&&t<=6862)return d.CLUSTER_BREAK.EXTEND}else if(t<6916){if(6912<=t&&t<=6915)return d.CLUSTER_BREAK.EXTEND}else if(t<6964){if(t===6916)return d.CLUSTER_BREAK.SPACINGMARK}else if(6964<=t&&t<=6970)return d.CLUSTER_BREAK.EXTEND}else if(t<7080){if(t<7019){if(t<6973){if(t===6971)return d.CLUSTER_BREAK.SPACINGMARK;if(t===6972)return d.CLUSTER_BREAK.EXTEND}else if(t<6978){if(6973<=t&&t<=6977)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6979){if(t===6978)return d.CLUSTER_BREAK.EXTEND}else if(6979<=t&&t<=6980)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7073){if(t<7040){if(7019<=t&&t<=7027)return d.CLUSTER_BREAK.EXTEND}else if(t<7042){if(7040<=t&&t<=7041)return d.CLUSTER_BREAK.EXTEND}else if(t===7042)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7074){if(t===7073)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7078){if(7074<=t&&t<=7077)return d.CLUSTER_BREAK.EXTEND}else if(7078<=t&&t<=7079)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7144)if(t<7083){if(t<7082){if(7080<=t&&t<=7081)return d.CLUSTER_BREAK.EXTEND}else if(t===7082)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7142){if(7083<=t&&t<=7085)return d.CLUSTER_BREAK.EXTEND}else{if(t===7142)return d.CLUSTER_BREAK.EXTEND;if(t===7143)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7150){if(t<7146){if(7144<=t&&t<=7145)return d.CLUSTER_BREAK.EXTEND}else if(t<7149){if(7146<=t&&t<=7148)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===7149)return d.CLUSTER_BREAK.EXTEND}else if(t<7151){if(t===7150)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7154){if(7151<=t&&t<=7153)return d.CLUSTER_BREAK.EXTEND}else if(7154<=t&&t<=7155)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43346){if(t<11647){if(t<7415){if(t<7380){if(t<7220){if(t<7212){if(7204<=t&&t<=7211)return d.CLUSTER_BREAK.SPACINGMARK}else if(7212<=t&&t<=7219)return d.CLUSTER_BREAK.EXTEND}else if(t<7222){if(7220<=t&&t<=7221)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7376){if(7222<=t&&t<=7223)return d.CLUSTER_BREAK.EXTEND}else if(7376<=t&&t<=7378)return d.CLUSTER_BREAK.EXTEND}else if(t<7394){if(t<7393){if(7380<=t&&t<=7392)return d.CLUSTER_BREAK.EXTEND}else if(t===7393)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7405){if(7394<=t&&t<=7400)return d.CLUSTER_BREAK.EXTEND}else if(t===7405||t===7412)return d.CLUSTER_BREAK.EXTEND}else if(t<8205)if(t<7616){if(t<7416){if(t===7415)return d.CLUSTER_BREAK.SPACINGMARK}else if(7416<=t&&t<=7417)return d.CLUSTER_BREAK.EXTEND}else if(t<8203){if(7616<=t&&t<=7679)return d.CLUSTER_BREAK.EXTEND}else{if(t===8203)return d.CLUSTER_BREAK.CONTROL;if(t===8204)return d.CLUSTER_BREAK.EXTEND}else if(t<8288){if(t<8206){if(t===8205)return d.CLUSTER_BREAK.ZWJ}else if(t<8232){if(8206<=t&&t<=8207)return d.CLUSTER_BREAK.CONTROL}else if(8232<=t&&t<=8238)return d.CLUSTER_BREAK.CONTROL}else if(t<8400){if(8288<=t&&t<=8303)return d.CLUSTER_BREAK.CONTROL}else if(t<11503){if(8400<=t&&t<=8432)return d.CLUSTER_BREAK.EXTEND}else if(11503<=t&&t<=11505)return d.CLUSTER_BREAK.EXTEND}else if(t<43043){if(t<42612){if(t<12330){if(t<11744){if(t===11647)return d.CLUSTER_BREAK.EXTEND}else if(11744<=t&&t<=11775)return d.CLUSTER_BREAK.EXTEND}else if(t<12441){if(12330<=t&&t<=12335)return d.CLUSTER_BREAK.EXTEND}else if(t<42607){if(12441<=t&&t<=12442)return d.CLUSTER_BREAK.EXTEND}else if(42607<=t&&t<=42610)return d.CLUSTER_BREAK.EXTEND}else if(t<43010){if(t<42654){if(42612<=t&&t<=42621)return d.CLUSTER_BREAK.EXTEND}else if(t<42736){if(42654<=t&&t<=42655)return d.CLUSTER_BREAK.EXTEND}else if(42736<=t&&t<=42737)return d.CLUSTER_BREAK.EXTEND}else if(t<43014){if(t===43010)return d.CLUSTER_BREAK.EXTEND}else if(t===43014||t===43019)return d.CLUSTER_BREAK.EXTEND}else if(t<43188){if(t<43047){if(t<43045){if(43043<=t&&t<=43044)return d.CLUSTER_BREAK.SPACINGMARK}else if(43045<=t&&t<=43046)return d.CLUSTER_BREAK.EXTEND}else if(t<43052){if(t===43047)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43136){if(t===43052)return d.CLUSTER_BREAK.EXTEND}else if(43136<=t&&t<=43137)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43263){if(t<43204){if(43188<=t&&t<=43203)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43232){if(43204<=t&&t<=43205)return d.CLUSTER_BREAK.EXTEND}else if(43232<=t&&t<=43249)return d.CLUSTER_BREAK.EXTEND}else if(t<43302){if(t===43263)return d.CLUSTER_BREAK.EXTEND}else if(t<43335){if(43302<=t&&t<=43309)return d.CLUSTER_BREAK.EXTEND}else if(43335<=t&&t<=43345)return d.CLUSTER_BREAK.EXTEND}else if(t<43698){if(t<43493){if(t<43444)if(t<43392){if(t<43360){if(43346<=t&&t<=43347)return d.CLUSTER_BREAK.SPACINGMARK}else if(43360<=t&&t<=43388)return d.CLUSTER_BREAK.L}else if(t<43395){if(43392<=t&&t<=43394)return d.CLUSTER_BREAK.EXTEND}else{if(t===43395)return d.CLUSTER_BREAK.SPACINGMARK;if(t===43443)return d.CLUSTER_BREAK.EXTEND}else if(t<43450){if(t<43446){if(43444<=t&&t<=43445)return d.CLUSTER_BREAK.SPACINGMARK}else if(43446<=t&&t<=43449)return d.CLUSTER_BREAK.EXTEND}else if(t<43452){if(43450<=t&&t<=43451)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43454){if(43452<=t&&t<=43453)return d.CLUSTER_BREAK.EXTEND}else if(43454<=t&&t<=43456)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43573){if(t<43567){if(t<43561){if(t===43493)return d.CLUSTER_BREAK.EXTEND}else if(43561<=t&&t<=43566)return d.CLUSTER_BREAK.EXTEND}else if(t<43569){if(43567<=t&&t<=43568)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43571){if(43569<=t&&t<=43570)return d.CLUSTER_BREAK.EXTEND}else if(43571<=t&&t<=43572)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43597){if(t<43587){if(43573<=t&&t<=43574)return d.CLUSTER_BREAK.EXTEND}else if(t===43587||t===43596)return d.CLUSTER_BREAK.EXTEND}else if(t<43644){if(t===43597)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===43644||t===43696)return d.CLUSTER_BREAK.EXTEND}else if(t<44006){if(t<43756)if(t<43710){if(t<43703){if(43698<=t&&t<=43700)return d.CLUSTER_BREAK.EXTEND}else if(43703<=t&&t<=43704)return d.CLUSTER_BREAK.EXTEND}else if(t<43713){if(43710<=t&&t<=43711)return d.CLUSTER_BREAK.EXTEND}else{if(t===43713)return d.CLUSTER_BREAK.EXTEND;if(t===43755)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43766){if(t<43758){if(43756<=t&&t<=43757)return d.CLUSTER_BREAK.EXTEND}else if(t<43765){if(43758<=t&&t<=43759)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===43765)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<44003){if(t===43766)return d.CLUSTER_BREAK.EXTEND}else if(t<44005){if(44003<=t&&t<=44004)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===44005)return d.CLUSTER_BREAK.EXTEND}else if(t<44032)if(t<44009){if(t<44008){if(44006<=t&&t<=44007)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===44008)return d.CLUSTER_BREAK.EXTEND}else if(t<44012){if(44009<=t&&t<=44010)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===44012)return d.CLUSTER_BREAK.SPACINGMARK;if(t===44013)return d.CLUSTER_BREAK.EXTEND}else if(t<44061){if(t<44033){if(t===44032)return d.CLUSTER_BREAK.LV}else if(t<44060){if(44033<=t&&t<=44059)return d.CLUSTER_BREAK.LVT}else if(t===44060)return d.CLUSTER_BREAK.LV}else if(t<44088){if(44061<=t&&t<=44087)return d.CLUSTER_BREAK.LVT}else if(t<44089){if(t===44088)return d.CLUSTER_BREAK.LV}else if(44089<=t&&t<=44115)return d.CLUSTER_BREAK.LVT}else if(t<46497){if(t<45293){if(t<44704){if(t<44397){if(t<44256){if(t<44173){if(t<44144){if(t<44117){if(t===44116)return d.CLUSTER_BREAK.LV}else if(44117<=t&&t<=44143)return d.CLUSTER_BREAK.LVT}else if(t<44145){if(t===44144)return d.CLUSTER_BREAK.LV}else if(t<44172){if(44145<=t&&t<=44171)return d.CLUSTER_BREAK.LVT}else if(t===44172)return d.CLUSTER_BREAK.LV}else if(t<44201){if(t<44200){if(44173<=t&&t<=44199)return d.CLUSTER_BREAK.LVT}else if(t===44200)return d.CLUSTER_BREAK.LV}else if(t<44228){if(44201<=t&&t<=44227)return d.CLUSTER_BREAK.LVT}else if(t<44229){if(t===44228)return d.CLUSTER_BREAK.LV}else if(44229<=t&&t<=44255)return d.CLUSTER_BREAK.LVT}else if(t<44313){if(t<44284){if(t<44257){if(t===44256)return d.CLUSTER_BREAK.LV}else if(44257<=t&&t<=44283)return d.CLUSTER_BREAK.LVT}else if(t<44285){if(t===44284)return d.CLUSTER_BREAK.LV}else if(t<44312){if(44285<=t&&t<=44311)return d.CLUSTER_BREAK.LVT}else if(t===44312)return d.CLUSTER_BREAK.LV}else if(t<44368){if(t<44340){if(44313<=t&&t<=44339)return d.CLUSTER_BREAK.LVT}else if(t<44341){if(t===44340)return d.CLUSTER_BREAK.LV}else if(44341<=t&&t<=44367)return d.CLUSTER_BREAK.LVT}else if(t<44369){if(t===44368)return d.CLUSTER_BREAK.LV}else if(t<44396){if(44369<=t&&t<=44395)return d.CLUSTER_BREAK.LVT}else if(t===44396)return d.CLUSTER_BREAK.LV}else if(t<44537){if(t<44480){if(t<44425){if(t<44424){if(44397<=t&&t<=44423)return d.CLUSTER_BREAK.LVT}else if(t===44424)return d.CLUSTER_BREAK.LV}else if(t<44452){if(44425<=t&&t<=44451)return d.CLUSTER_BREAK.LVT}else if(t<44453){if(t===44452)return d.CLUSTER_BREAK.LV}else if(44453<=t&&t<=44479)return d.CLUSTER_BREAK.LVT}else if(t<44508){if(t<44481){if(t===44480)return d.CLUSTER_BREAK.LV}else if(44481<=t&&t<=44507)return d.CLUSTER_BREAK.LVT}else if(t<44509){if(t===44508)return d.CLUSTER_BREAK.LV}else if(t<44536){if(44509<=t&&t<=44535)return d.CLUSTER_BREAK.LVT}else if(t===44536)return d.CLUSTER_BREAK.LV}else if(t<44620){if(t<44565){if(t<44564){if(44537<=t&&t<=44563)return d.CLUSTER_BREAK.LVT}else if(t===44564)return d.CLUSTER_BREAK.LV}else if(t<44592){if(44565<=t&&t<=44591)return d.CLUSTER_BREAK.LVT}else if(t<44593){if(t===44592)return d.CLUSTER_BREAK.LV}else if(44593<=t&&t<=44619)return d.CLUSTER_BREAK.LVT}else if(t<44649){if(t<44621){if(t===44620)return d.CLUSTER_BREAK.LV}else if(t<44648){if(44621<=t&&t<=44647)return d.CLUSTER_BREAK.LVT}else if(t===44648)return d.CLUSTER_BREAK.LV}else if(t<44676){if(44649<=t&&t<=44675)return d.CLUSTER_BREAK.LVT}else if(t<44677){if(t===44676)return d.CLUSTER_BREAK.LV}else if(44677<=t&&t<=44703)return d.CLUSTER_BREAK.LVT}else if(t<44985){if(t<44844){if(t<44761){if(t<44732){if(t<44705){if(t===44704)return d.CLUSTER_BREAK.LV}else if(44705<=t&&t<=44731)return d.CLUSTER_BREAK.LVT}else if(t<44733){if(t===44732)return d.CLUSTER_BREAK.LV}else if(t<44760){if(44733<=t&&t<=44759)return d.CLUSTER_BREAK.LVT}else if(t===44760)return d.CLUSTER_BREAK.LV}else if(t<44789){if(t<44788){if(44761<=t&&t<=44787)return d.CLUSTER_BREAK.LVT}else if(t===44788)return d.CLUSTER_BREAK.LV}else if(t<44816){if(44789<=t&&t<=44815)return d.CLUSTER_BREAK.LVT}else if(t<44817){if(t===44816)return d.CLUSTER_BREAK.LV}else if(44817<=t&&t<=44843)return d.CLUSTER_BREAK.LVT}else if(t<44901){if(t<44872){if(t<44845){if(t===44844)return d.CLUSTER_BREAK.LV}else if(44845<=t&&t<=44871)return d.CLUSTER_BREAK.LVT}else if(t<44873){if(t===44872)return d.CLUSTER_BREAK.LV}else if(t<44900){if(44873<=t&&t<=44899)return d.CLUSTER_BREAK.LVT}else if(t===44900)return d.CLUSTER_BREAK.LV}else if(t<44956){if(t<44928){if(44901<=t&&t<=44927)return d.CLUSTER_BREAK.LVT}else if(t<44929){if(t===44928)return d.CLUSTER_BREAK.LV}else if(44929<=t&&t<=44955)return d.CLUSTER_BREAK.LVT}else if(t<44957){if(t===44956)return d.CLUSTER_BREAK.LV}else if(t<44984){if(44957<=t&&t<=44983)return d.CLUSTER_BREAK.LVT}else if(t===44984)return d.CLUSTER_BREAK.LV}else if(t<45152){if(t<45068){if(t<45013){if(t<45012){if(44985<=t&&t<=45011)return d.CLUSTER_BREAK.LVT}else if(t===45012)return d.CLUSTER_BREAK.LV}else if(t<45040){if(45013<=t&&t<=45039)return d.CLUSTER_BREAK.LVT}else if(t<45041){if(t===45040)return d.CLUSTER_BREAK.LV}else if(45041<=t&&t<=45067)return d.CLUSTER_BREAK.LVT}else if(t<45097){if(t<45069){if(t===45068)return d.CLUSTER_BREAK.LV}else if(t<45096){if(45069<=t&&t<=45095)return d.CLUSTER_BREAK.LVT}else if(t===45096)return d.CLUSTER_BREAK.LV}else if(t<45124){if(45097<=t&&t<=45123)return d.CLUSTER_BREAK.LVT}else if(t<45125){if(t===45124)return d.CLUSTER_BREAK.LV}else if(45125<=t&&t<=45151)return d.CLUSTER_BREAK.LVT}else if(t<45209){if(t<45180){if(t<45153){if(t===45152)return d.CLUSTER_BREAK.LV}else if(45153<=t&&t<=45179)return d.CLUSTER_BREAK.LVT}else if(t<45181){if(t===45180)return d.CLUSTER_BREAK.LV}else if(t<45208){if(45181<=t&&t<=45207)return d.CLUSTER_BREAK.LVT}else if(t===45208)return d.CLUSTER_BREAK.LV}else if(t<45264){if(t<45236){if(45209<=t&&t<=45235)return d.CLUSTER_BREAK.LVT}else if(t<45237){if(t===45236)return d.CLUSTER_BREAK.LV}else if(45237<=t&&t<=45263)return d.CLUSTER_BREAK.LVT}else if(t<45265){if(t===45264)return d.CLUSTER_BREAK.LV}else if(t<45292){if(45265<=t&&t<=45291)return d.CLUSTER_BREAK.LVT}else if(t===45292)return d.CLUSTER_BREAK.LV}else if(t<45908){if(t<45600){if(t<45433){if(t<45376){if(t<45321){if(t<45320){if(45293<=t&&t<=45319)return d.CLUSTER_BREAK.LVT}else if(t===45320)return d.CLUSTER_BREAK.LV}else if(t<45348){if(45321<=t&&t<=45347)return d.CLUSTER_BREAK.LVT}else if(t<45349){if(t===45348)return d.CLUSTER_BREAK.LV}else if(45349<=t&&t<=45375)return d.CLUSTER_BREAK.LVT}else if(t<45404){if(t<45377){if(t===45376)return d.CLUSTER_BREAK.LV}else if(45377<=t&&t<=45403)return d.CLUSTER_BREAK.LVT}else if(t<45405){if(t===45404)return d.CLUSTER_BREAK.LV}else if(t<45432){if(45405<=t&&t<=45431)return d.CLUSTER_BREAK.LVT}else if(t===45432)return d.CLUSTER_BREAK.LV}else if(t<45516){if(t<45461){if(t<45460){if(45433<=t&&t<=45459)return d.CLUSTER_BREAK.LVT}else if(t===45460)return d.CLUSTER_BREAK.LV}else if(t<45488){if(45461<=t&&t<=45487)return d.CLUSTER_BREAK.LVT}else if(t<45489){if(t===45488)return d.CLUSTER_BREAK.LV}else if(45489<=t&&t<=45515)return d.CLUSTER_BREAK.LVT}else if(t<45545){if(t<45517){if(t===45516)return d.CLUSTER_BREAK.LV}else if(t<45544){if(45517<=t&&t<=45543)return d.CLUSTER_BREAK.LVT}else if(t===45544)return d.CLUSTER_BREAK.LV}else if(t<45572){if(45545<=t&&t<=45571)return d.CLUSTER_BREAK.LVT}else if(t<45573){if(t===45572)return d.CLUSTER_BREAK.LV}else if(45573<=t&&t<=45599)return d.CLUSTER_BREAK.LVT}else if(t<45741){if(t<45657){if(t<45628){if(t<45601){if(t===45600)return d.CLUSTER_BREAK.LV}else if(45601<=t&&t<=45627)return d.CLUSTER_BREAK.LVT}else if(t<45629){if(t===45628)return d.CLUSTER_BREAK.LV}else if(t<45656){if(45629<=t&&t<=45655)return d.CLUSTER_BREAK.LVT}else if(t===45656)return d.CLUSTER_BREAK.LV}else if(t<45712){if(t<45684){if(45657<=t&&t<=45683)return d.CLUSTER_BREAK.LVT}else if(t<45685){if(t===45684)return d.CLUSTER_BREAK.LV}else if(45685<=t&&t<=45711)return d.CLUSTER_BREAK.LVT}else if(t<45713){if(t===45712)return d.CLUSTER_BREAK.LV}else if(t<45740){if(45713<=t&&t<=45739)return d.CLUSTER_BREAK.LVT}else if(t===45740)return d.CLUSTER_BREAK.LV}else if(t<45824){if(t<45769){if(t<45768){if(45741<=t&&t<=45767)return d.CLUSTER_BREAK.LVT}else if(t===45768)return d.CLUSTER_BREAK.LV}else if(t<45796){if(45769<=t&&t<=45795)return d.CLUSTER_BREAK.LVT}else if(t<45797){if(t===45796)return d.CLUSTER_BREAK.LV}else if(45797<=t&&t<=45823)return d.CLUSTER_BREAK.LVT}else if(t<45853){if(t<45825){if(t===45824)return d.CLUSTER_BREAK.LV}else if(t<45852){if(45825<=t&&t<=45851)return d.CLUSTER_BREAK.LVT}else if(t===45852)return d.CLUSTER_BREAK.LV}else if(t<45880){if(45853<=t&&t<=45879)return d.CLUSTER_BREAK.LVT}else if(t<45881){if(t===45880)return d.CLUSTER_BREAK.LV}else if(45881<=t&&t<=45907)return d.CLUSTER_BREAK.LVT}else if(t<46189){if(t<46048){if(t<45965){if(t<45936){if(t<45909){if(t===45908)return d.CLUSTER_BREAK.LV}else if(45909<=t&&t<=45935)return d.CLUSTER_BREAK.LVT}else if(t<45937){if(t===45936)return d.CLUSTER_BREAK.LV}else if(t<45964){if(45937<=t&&t<=45963)return d.CLUSTER_BREAK.LVT}else if(t===45964)return d.CLUSTER_BREAK.LV}else if(t<45993){if(t<45992){if(45965<=t&&t<=45991)return d.CLUSTER_BREAK.LVT}else if(t===45992)return d.CLUSTER_BREAK.LV}else if(t<46020){if(45993<=t&&t<=46019)return d.CLUSTER_BREAK.LVT}else if(t<46021){if(t===46020)return d.CLUSTER_BREAK.LV}else if(46021<=t&&t<=46047)return d.CLUSTER_BREAK.LVT}else if(t<46105){if(t<46076){if(t<46049){if(t===46048)return d.CLUSTER_BREAK.LV}else if(46049<=t&&t<=46075)return d.CLUSTER_BREAK.LVT}else if(t<46077){if(t===46076)return d.CLUSTER_BREAK.LV}else if(t<46104){if(46077<=t&&t<=46103)return d.CLUSTER_BREAK.LVT}else if(t===46104)return d.CLUSTER_BREAK.LV}else if(t<46160){if(t<46132){if(46105<=t&&t<=46131)return d.CLUSTER_BREAK.LVT}else if(t<46133){if(t===46132)return d.CLUSTER_BREAK.LV}else if(46133<=t&&t<=46159)return d.CLUSTER_BREAK.LVT}else if(t<46161){if(t===46160)return d.CLUSTER_BREAK.LV}else if(t<46188){if(46161<=t&&t<=46187)return d.CLUSTER_BREAK.LVT}else if(t===46188)return d.CLUSTER_BREAK.LV}else if(t<46356){if(t<46272){if(t<46217){if(t<46216){if(46189<=t&&t<=46215)return d.CLUSTER_BREAK.LVT}else if(t===46216)return d.CLUSTER_BREAK.LV}else if(t<46244){if(46217<=t&&t<=46243)return d.CLUSTER_BREAK.LVT}else if(t<46245){if(t===46244)return d.CLUSTER_BREAK.LV}else if(46245<=t&&t<=46271)return d.CLUSTER_BREAK.LVT}else if(t<46301){if(t<46273){if(t===46272)return d.CLUSTER_BREAK.LV}else if(t<46300){if(46273<=t&&t<=46299)return d.CLUSTER_BREAK.LVT}else if(t===46300)return d.CLUSTER_BREAK.LV}else if(t<46328){if(46301<=t&&t<=46327)return d.CLUSTER_BREAK.LVT}else if(t<46329){if(t===46328)return d.CLUSTER_BREAK.LV}else if(46329<=t&&t<=46355)return d.CLUSTER_BREAK.LVT}else if(t<46413){if(t<46384){if(t<46357){if(t===46356)return d.CLUSTER_BREAK.LV}else if(46357<=t&&t<=46383)return d.CLUSTER_BREAK.LVT}else if(t<46385){if(t===46384)return d.CLUSTER_BREAK.LV}else if(t<46412){if(46385<=t&&t<=46411)return d.CLUSTER_BREAK.LVT}else if(t===46412)return d.CLUSTER_BREAK.LV}else if(t<46468){if(t<46440){if(46413<=t&&t<=46439)return d.CLUSTER_BREAK.LVT}else if(t<46441){if(t===46440)return d.CLUSTER_BREAK.LV}else if(46441<=t&&t<=46467)return d.CLUSTER_BREAK.LVT}else if(t<46469){if(t===46468)return d.CLUSTER_BREAK.LV}else if(t<46496){if(46469<=t&&t<=46495)return d.CLUSTER_BREAK.LVT}else if(t===46496)return d.CLUSTER_BREAK.LV}else if(t<47701){if(t<47112){if(t<46804){if(t<46637){if(t<46580){if(t<46525){if(t<46524){if(46497<=t&&t<=46523)return d.CLUSTER_BREAK.LVT}else if(t===46524)return d.CLUSTER_BREAK.LV}else if(t<46552){if(46525<=t&&t<=46551)return d.CLUSTER_BREAK.LVT}else if(t<46553){if(t===46552)return d.CLUSTER_BREAK.LV}else if(46553<=t&&t<=46579)return d.CLUSTER_BREAK.LVT}else if(t<46608){if(t<46581){if(t===46580)return d.CLUSTER_BREAK.LV}else if(46581<=t&&t<=46607)return d.CLUSTER_BREAK.LVT}else if(t<46609){if(t===46608)return d.CLUSTER_BREAK.LV}else if(t<46636){if(46609<=t&&t<=46635)return d.CLUSTER_BREAK.LVT}else if(t===46636)return d.CLUSTER_BREAK.LV}else if(t<46720){if(t<46665){if(t<46664){if(46637<=t&&t<=46663)return d.CLUSTER_BREAK.LVT}else if(t===46664)return d.CLUSTER_BREAK.LV}else if(t<46692){if(46665<=t&&t<=46691)return d.CLUSTER_BREAK.LVT}else if(t<46693){if(t===46692)return d.CLUSTER_BREAK.LV}else if(46693<=t&&t<=46719)return d.CLUSTER_BREAK.LVT}else if(t<46749){if(t<46721){if(t===46720)return d.CLUSTER_BREAK.LV}else if(t<46748){if(46721<=t&&t<=46747)return d.CLUSTER_BREAK.LVT}else if(t===46748)return d.CLUSTER_BREAK.LV}else if(t<46776){if(46749<=t&&t<=46775)return d.CLUSTER_BREAK.LVT}else if(t<46777){if(t===46776)return d.CLUSTER_BREAK.LV}else if(46777<=t&&t<=46803)return d.CLUSTER_BREAK.LVT}else if(t<46945){if(t<46861){if(t<46832){if(t<46805){if(t===46804)return d.CLUSTER_BREAK.LV}else if(46805<=t&&t<=46831)return d.CLUSTER_BREAK.LVT}else if(t<46833){if(t===46832)return d.CLUSTER_BREAK.LV}else if(t<46860){if(46833<=t&&t<=46859)return d.CLUSTER_BREAK.LVT}else if(t===46860)return d.CLUSTER_BREAK.LV}else if(t<46916){if(t<46888){if(46861<=t&&t<=46887)return d.CLUSTER_BREAK.LVT}else if(t<46889){if(t===46888)return d.CLUSTER_BREAK.LV}else if(46889<=t&&t<=46915)return d.CLUSTER_BREAK.LVT}else if(t<46917){if(t===46916)return d.CLUSTER_BREAK.LV}else if(t<46944){if(46917<=t&&t<=46943)return d.CLUSTER_BREAK.LVT}else if(t===46944)return d.CLUSTER_BREAK.LV}else if(t<47028){if(t<46973){if(t<46972){if(46945<=t&&t<=46971)return d.CLUSTER_BREAK.LVT}else if(t===46972)return d.CLUSTER_BREAK.LV}else if(t<47e3){if(46973<=t&&t<=46999)return d.CLUSTER_BREAK.LVT}else if(t<47001){if(t===47e3)return d.CLUSTER_BREAK.LV}else if(47001<=t&&t<=47027)return d.CLUSTER_BREAK.LVT}else if(t<47057){if(t<47029){if(t===47028)return d.CLUSTER_BREAK.LV}else if(t<47056){if(47029<=t&&t<=47055)return d.CLUSTER_BREAK.LVT}else if(t===47056)return d.CLUSTER_BREAK.LV}else if(t<47084){if(47057<=t&&t<=47083)return d.CLUSTER_BREAK.LVT}else if(t<47085){if(t===47084)return d.CLUSTER_BREAK.LV}else if(47085<=t&&t<=47111)return d.CLUSTER_BREAK.LVT}else if(t<47393){if(t<47252){if(t<47169){if(t<47140){if(t<47113){if(t===47112)return d.CLUSTER_BREAK.LV}else if(47113<=t&&t<=47139)return d.CLUSTER_BREAK.LVT}else if(t<47141){if(t===47140)return d.CLUSTER_BREAK.LV}else if(t<47168){if(47141<=t&&t<=47167)return d.CLUSTER_BREAK.LVT}else if(t===47168)return d.CLUSTER_BREAK.LV}else if(t<47197){if(t<47196){if(47169<=t&&t<=47195)return d.CLUSTER_BREAK.LVT}else if(t===47196)return d.CLUSTER_BREAK.LV}else if(t<47224){if(47197<=t&&t<=47223)return d.CLUSTER_BREAK.LVT}else if(t<47225){if(t===47224)return d.CLUSTER_BREAK.LV}else if(47225<=t&&t<=47251)return d.CLUSTER_BREAK.LVT}else if(t<47309){if(t<47280){if(t<47253){if(t===47252)return d.CLUSTER_BREAK.LV}else if(47253<=t&&t<=47279)return d.CLUSTER_BREAK.LVT}else if(t<47281){if(t===47280)return d.CLUSTER_BREAK.LV}else if(t<47308){if(47281<=t&&t<=47307)return d.CLUSTER_BREAK.LVT}else if(t===47308)return d.CLUSTER_BREAK.LV}else if(t<47364){if(t<47336){if(47309<=t&&t<=47335)return d.CLUSTER_BREAK.LVT}else if(t<47337){if(t===47336)return d.CLUSTER_BREAK.LV}else if(47337<=t&&t<=47363)return d.CLUSTER_BREAK.LVT}else if(t<47365){if(t===47364)return d.CLUSTER_BREAK.LV}else if(t<47392){if(47365<=t&&t<=47391)return d.CLUSTER_BREAK.LVT}else if(t===47392)return d.CLUSTER_BREAK.LV}else if(t<47560){if(t<47476){if(t<47421){if(t<47420){if(47393<=t&&t<=47419)return d.CLUSTER_BREAK.LVT}else if(t===47420)return d.CLUSTER_BREAK.LV}else if(t<47448){if(47421<=t&&t<=47447)return d.CLUSTER_BREAK.LVT}else if(t<47449){if(t===47448)return d.CLUSTER_BREAK.LV}else if(47449<=t&&t<=47475)return d.CLUSTER_BREAK.LVT}else if(t<47505){if(t<47477){if(t===47476)return d.CLUSTER_BREAK.LV}else if(t<47504){if(47477<=t&&t<=47503)return d.CLUSTER_BREAK.LVT}else if(t===47504)return d.CLUSTER_BREAK.LV}else if(t<47532){if(47505<=t&&t<=47531)return d.CLUSTER_BREAK.LVT}else if(t<47533){if(t===47532)return d.CLUSTER_BREAK.LV}else if(47533<=t&&t<=47559)return d.CLUSTER_BREAK.LVT}else if(t<47617){if(t<47588){if(t<47561){if(t===47560)return d.CLUSTER_BREAK.LV}else if(47561<=t&&t<=47587)return d.CLUSTER_BREAK.LVT}else if(t<47589){if(t===47588)return d.CLUSTER_BREAK.LV}else if(t<47616){if(47589<=t&&t<=47615)return d.CLUSTER_BREAK.LVT}else if(t===47616)return d.CLUSTER_BREAK.LV}else if(t<47672){if(t<47644){if(47617<=t&&t<=47643)return d.CLUSTER_BREAK.LVT}else if(t<47645){if(t===47644)return d.CLUSTER_BREAK.LV}else if(47645<=t&&t<=47671)return d.CLUSTER_BREAK.LVT}else if(t<47673){if(t===47672)return d.CLUSTER_BREAK.LV}else if(t<47700){if(47673<=t&&t<=47699)return d.CLUSTER_BREAK.LVT}else if(t===47700)return d.CLUSTER_BREAK.LV}else if(t<48316){if(t<48008){if(t<47841){if(t<47784){if(t<47729){if(t<47728){if(47701<=t&&t<=47727)return d.CLUSTER_BREAK.LVT}else if(t===47728)return d.CLUSTER_BREAK.LV}else if(t<47756){if(47729<=t&&t<=47755)return d.CLUSTER_BREAK.LVT}else if(t<47757){if(t===47756)return d.CLUSTER_BREAK.LV}else if(47757<=t&&t<=47783)return d.CLUSTER_BREAK.LVT}else if(t<47812){if(t<47785){if(t===47784)return d.CLUSTER_BREAK.LV}else if(47785<=t&&t<=47811)return d.CLUSTER_BREAK.LVT}else if(t<47813){if(t===47812)return d.CLUSTER_BREAK.LV}else if(t<47840){if(47813<=t&&t<=47839)return d.CLUSTER_BREAK.LVT}else if(t===47840)return d.CLUSTER_BREAK.LV}else if(t<47924){if(t<47869){if(t<47868){if(47841<=t&&t<=47867)return d.CLUSTER_BREAK.LVT}else if(t===47868)return d.CLUSTER_BREAK.LV}else if(t<47896){if(47869<=t&&t<=47895)return d.CLUSTER_BREAK.LVT}else if(t<47897){if(t===47896)return d.CLUSTER_BREAK.LV}else if(47897<=t&&t<=47923)return d.CLUSTER_BREAK.LVT}else if(t<47953){if(t<47925){if(t===47924)return d.CLUSTER_BREAK.LV}else if(t<47952){if(47925<=t&&t<=47951)return d.CLUSTER_BREAK.LVT}else if(t===47952)return d.CLUSTER_BREAK.LV}else if(t<47980){if(47953<=t&&t<=47979)return d.CLUSTER_BREAK.LVT}else if(t<47981){if(t===47980)return d.CLUSTER_BREAK.LV}else if(47981<=t&&t<=48007)return d.CLUSTER_BREAK.LVT}else if(t<48149){if(t<48065){if(t<48036){if(t<48009){if(t===48008)return d.CLUSTER_BREAK.LV}else if(48009<=t&&t<=48035)return d.CLUSTER_BREAK.LVT}else if(t<48037){if(t===48036)return d.CLUSTER_BREAK.LV}else if(t<48064){if(48037<=t&&t<=48063)return d.CLUSTER_BREAK.LVT}else if(t===48064)return d.CLUSTER_BREAK.LV}else if(t<48120){if(t<48092){if(48065<=t&&t<=48091)return d.CLUSTER_BREAK.LVT}else if(t<48093){if(t===48092)return d.CLUSTER_BREAK.LV}else if(48093<=t&&t<=48119)return d.CLUSTER_BREAK.LVT}else if(t<48121){if(t===48120)return d.CLUSTER_BREAK.LV}else if(t<48148){if(48121<=t&&t<=48147)return d.CLUSTER_BREAK.LVT}else if(t===48148)return d.CLUSTER_BREAK.LV}else if(t<48232){if(t<48177){if(t<48176){if(48149<=t&&t<=48175)return d.CLUSTER_BREAK.LVT}else if(t===48176)return d.CLUSTER_BREAK.LV}else if(t<48204){if(48177<=t&&t<=48203)return d.CLUSTER_BREAK.LVT}else if(t<48205){if(t===48204)return d.CLUSTER_BREAK.LV}else if(48205<=t&&t<=48231)return d.CLUSTER_BREAK.LVT}else if(t<48261){if(t<48233){if(t===48232)return d.CLUSTER_BREAK.LV}else if(t<48260){if(48233<=t&&t<=48259)return d.CLUSTER_BREAK.LVT}else if(t===48260)return d.CLUSTER_BREAK.LV}else if(t<48288){if(48261<=t&&t<=48287)return d.CLUSTER_BREAK.LVT}else if(t<48289){if(t===48288)return d.CLUSTER_BREAK.LV}else if(48289<=t&&t<=48315)return d.CLUSTER_BREAK.LVT}else if(t<48597){if(t<48456){if(t<48373){if(t<48344){if(t<48317){if(t===48316)return d.CLUSTER_BREAK.LV}else if(48317<=t&&t<=48343)return d.CLUSTER_BREAK.LVT}else if(t<48345){if(t===48344)return d.CLUSTER_BREAK.LV}else if(t<48372){if(48345<=t&&t<=48371)return d.CLUSTER_BREAK.LVT}else if(t===48372)return d.CLUSTER_BREAK.LV}else if(t<48401){if(t<48400){if(48373<=t&&t<=48399)return d.CLUSTER_BREAK.LVT}else if(t===48400)return d.CLUSTER_BREAK.LV}else if(t<48428){if(48401<=t&&t<=48427)return d.CLUSTER_BREAK.LVT}else if(t<48429){if(t===48428)return d.CLUSTER_BREAK.LV}else if(48429<=t&&t<=48455)return d.CLUSTER_BREAK.LVT}else if(t<48513){if(t<48484){if(t<48457){if(t===48456)return d.CLUSTER_BREAK.LV}else if(48457<=t&&t<=48483)return d.CLUSTER_BREAK.LVT}else if(t<48485){if(t===48484)return d.CLUSTER_BREAK.LV}else if(t<48512){if(48485<=t&&t<=48511)return d.CLUSTER_BREAK.LVT}else if(t===48512)return d.CLUSTER_BREAK.LV}else if(t<48568){if(t<48540){if(48513<=t&&t<=48539)return d.CLUSTER_BREAK.LVT}else if(t<48541){if(t===48540)return d.CLUSTER_BREAK.LV}else if(48541<=t&&t<=48567)return d.CLUSTER_BREAK.LVT}else if(t<48569){if(t===48568)return d.CLUSTER_BREAK.LV}else if(t<48596){if(48569<=t&&t<=48595)return d.CLUSTER_BREAK.LVT}else if(t===48596)return d.CLUSTER_BREAK.LV}else if(t<48764){if(t<48680){if(t<48625){if(t<48624){if(48597<=t&&t<=48623)return d.CLUSTER_BREAK.LVT}else if(t===48624)return d.CLUSTER_BREAK.LV}else if(t<48652){if(48625<=t&&t<=48651)return d.CLUSTER_BREAK.LVT}else if(t<48653){if(t===48652)return d.CLUSTER_BREAK.LV}else if(48653<=t&&t<=48679)return d.CLUSTER_BREAK.LVT}else if(t<48709){if(t<48681){if(t===48680)return d.CLUSTER_BREAK.LV}else if(t<48708){if(48681<=t&&t<=48707)return d.CLUSTER_BREAK.LVT}else if(t===48708)return d.CLUSTER_BREAK.LV}else if(t<48736){if(48709<=t&&t<=48735)return d.CLUSTER_BREAK.LVT}else if(t<48737){if(t===48736)return d.CLUSTER_BREAK.LV}else if(48737<=t&&t<=48763)return d.CLUSTER_BREAK.LVT}else if(t<48821){if(t<48792){if(t<48765){if(t===48764)return d.CLUSTER_BREAK.LV}else if(48765<=t&&t<=48791)return d.CLUSTER_BREAK.LVT}else if(t<48793){if(t===48792)return d.CLUSTER_BREAK.LV}else if(t<48820){if(48793<=t&&t<=48819)return d.CLUSTER_BREAK.LVT}else if(t===48820)return d.CLUSTER_BREAK.LV}else if(t<48876){if(t<48848){if(48821<=t&&t<=48847)return d.CLUSTER_BREAK.LVT}else if(t<48849){if(t===48848)return d.CLUSTER_BREAK.LV}else if(48849<=t&&t<=48875)return d.CLUSTER_BREAK.LVT}else if(t<48877){if(t===48876)return d.CLUSTER_BREAK.LV}else if(t<48904){if(48877<=t&&t<=48903)return d.CLUSTER_BREAK.LVT}else if(t===48904)return d.CLUSTER_BREAK.LV}else if(t<53720){if(t<51312){if(t<50108){if(t<49493){if(t<49212){if(t<49045){if(t<48988){if(t<48933){if(t<48932){if(48905<=t&&t<=48931)return d.CLUSTER_BREAK.LVT}else if(t===48932)return d.CLUSTER_BREAK.LV}else if(t<48960){if(48933<=t&&t<=48959)return d.CLUSTER_BREAK.LVT}else if(t<48961){if(t===48960)return d.CLUSTER_BREAK.LV}else if(48961<=t&&t<=48987)return d.CLUSTER_BREAK.LVT}else if(t<49016){if(t<48989){if(t===48988)return d.CLUSTER_BREAK.LV}else if(48989<=t&&t<=49015)return d.CLUSTER_BREAK.LVT}else if(t<49017){if(t===49016)return d.CLUSTER_BREAK.LV}else if(t<49044){if(49017<=t&&t<=49043)return d.CLUSTER_BREAK.LVT}else if(t===49044)return d.CLUSTER_BREAK.LV}else if(t<49128){if(t<49073){if(t<49072){if(49045<=t&&t<=49071)return d.CLUSTER_BREAK.LVT}else if(t===49072)return d.CLUSTER_BREAK.LV}else if(t<49100){if(49073<=t&&t<=49099)return d.CLUSTER_BREAK.LVT}else if(t<49101){if(t===49100)return d.CLUSTER_BREAK.LV}else if(49101<=t&&t<=49127)return d.CLUSTER_BREAK.LVT}else if(t<49157){if(t<49129){if(t===49128)return d.CLUSTER_BREAK.LV}else if(t<49156){if(49129<=t&&t<=49155)return d.CLUSTER_BREAK.LVT}else if(t===49156)return d.CLUSTER_BREAK.LV}else if(t<49184){if(49157<=t&&t<=49183)return d.CLUSTER_BREAK.LVT}else if(t<49185){if(t===49184)return d.CLUSTER_BREAK.LV}else if(49185<=t&&t<=49211)return d.CLUSTER_BREAK.LVT}else if(t<49352){if(t<49269){if(t<49240){if(t<49213){if(t===49212)return d.CLUSTER_BREAK.LV}else if(49213<=t&&t<=49239)return d.CLUSTER_BREAK.LVT}else if(t<49241){if(t===49240)return d.CLUSTER_BREAK.LV}else if(t<49268){if(49241<=t&&t<=49267)return d.CLUSTER_BREAK.LVT}else if(t===49268)return d.CLUSTER_BREAK.LV}else if(t<49297){if(t<49296){if(49269<=t&&t<=49295)return d.CLUSTER_BREAK.LVT}else if(t===49296)return d.CLUSTER_BREAK.LV}else if(t<49324){if(49297<=t&&t<=49323)return d.CLUSTER_BREAK.LVT}else if(t<49325){if(t===49324)return d.CLUSTER_BREAK.LV}else if(49325<=t&&t<=49351)return d.CLUSTER_BREAK.LVT}else if(t<49409){if(t<49380){if(t<49353){if(t===49352)return d.CLUSTER_BREAK.LV}else if(49353<=t&&t<=49379)return d.CLUSTER_BREAK.LVT}else if(t<49381){if(t===49380)return d.CLUSTER_BREAK.LV}else if(t<49408){if(49381<=t&&t<=49407)return d.CLUSTER_BREAK.LVT}else if(t===49408)return d.CLUSTER_BREAK.LV}else if(t<49464){if(t<49436){if(49409<=t&&t<=49435)return d.CLUSTER_BREAK.LVT}else if(t<49437){if(t===49436)return d.CLUSTER_BREAK.LV}else if(49437<=t&&t<=49463)return d.CLUSTER_BREAK.LVT}else if(t<49465){if(t===49464)return d.CLUSTER_BREAK.LV}else if(t<49492){if(49465<=t&&t<=49491)return d.CLUSTER_BREAK.LVT}else if(t===49492)return d.CLUSTER_BREAK.LV}else if(t<49800){if(t<49633){if(t<49576){if(t<49521){if(t<49520){if(49493<=t&&t<=49519)return d.CLUSTER_BREAK.LVT}else if(t===49520)return d.CLUSTER_BREAK.LV}else if(t<49548){if(49521<=t&&t<=49547)return d.CLUSTER_BREAK.LVT}else if(t<49549){if(t===49548)return d.CLUSTER_BREAK.LV}else if(49549<=t&&t<=49575)return d.CLUSTER_BREAK.LVT}else if(t<49604){if(t<49577){if(t===49576)return d.CLUSTER_BREAK.LV}else if(49577<=t&&t<=49603)return d.CLUSTER_BREAK.LVT}else if(t<49605){if(t===49604)return d.CLUSTER_BREAK.LV}else if(t<49632){if(49605<=t&&t<=49631)return d.CLUSTER_BREAK.LVT}else if(t===49632)return d.CLUSTER_BREAK.LV}else if(t<49716){if(t<49661){if(t<49660){if(49633<=t&&t<=49659)return d.CLUSTER_BREAK.LVT}else if(t===49660)return d.CLUSTER_BREAK.LV}else if(t<49688){if(49661<=t&&t<=49687)return d.CLUSTER_BREAK.LVT}else if(t<49689){if(t===49688)return d.CLUSTER_BREAK.LV}else if(49689<=t&&t<=49715)return d.CLUSTER_BREAK.LVT}else if(t<49745){if(t<49717){if(t===49716)return d.CLUSTER_BREAK.LV}else if(t<49744){if(49717<=t&&t<=49743)return d.CLUSTER_BREAK.LVT}else if(t===49744)return d.CLUSTER_BREAK.LV}else if(t<49772){if(49745<=t&&t<=49771)return d.CLUSTER_BREAK.LVT}else if(t<49773){if(t===49772)return d.CLUSTER_BREAK.LV}else if(49773<=t&&t<=49799)return d.CLUSTER_BREAK.LVT}else if(t<49941){if(t<49857){if(t<49828){if(t<49801){if(t===49800)return d.CLUSTER_BREAK.LV}else if(49801<=t&&t<=49827)return d.CLUSTER_BREAK.LVT}else if(t<49829){if(t===49828)return d.CLUSTER_BREAK.LV}else if(t<49856){if(49829<=t&&t<=49855)return d.CLUSTER_BREAK.LVT}else if(t===49856)return d.CLUSTER_BREAK.LV}else if(t<49912){if(t<49884){if(49857<=t&&t<=49883)return d.CLUSTER_BREAK.LVT}else if(t<49885){if(t===49884)return d.CLUSTER_BREAK.LV}else if(49885<=t&&t<=49911)return d.CLUSTER_BREAK.LVT}else if(t<49913){if(t===49912)return d.CLUSTER_BREAK.LV}else if(t<49940){if(49913<=t&&t<=49939)return d.CLUSTER_BREAK.LVT}else if(t===49940)return d.CLUSTER_BREAK.LV}else if(t<50024){if(t<49969){if(t<49968){if(49941<=t&&t<=49967)return d.CLUSTER_BREAK.LVT}else if(t===49968)return d.CLUSTER_BREAK.LV}else if(t<49996){if(49969<=t&&t<=49995)return d.CLUSTER_BREAK.LVT}else if(t<49997){if(t===49996)return d.CLUSTER_BREAK.LV}else if(49997<=t&&t<=50023)return d.CLUSTER_BREAK.LVT}else if(t<50053){if(t<50025){if(t===50024)return d.CLUSTER_BREAK.LV}else if(t<50052){if(50025<=t&&t<=50051)return d.CLUSTER_BREAK.LVT}else if(t===50052)return d.CLUSTER_BREAK.LV}else if(t<50080){if(50053<=t&&t<=50079)return d.CLUSTER_BREAK.LVT}else if(t<50081){if(t===50080)return d.CLUSTER_BREAK.LV}else if(50081<=t&&t<=50107)return d.CLUSTER_BREAK.LVT}else if(t<50697){if(t<50389){if(t<50248){if(t<50165){if(t<50136){if(t<50109){if(t===50108)return d.CLUSTER_BREAK.LV}else if(50109<=t&&t<=50135)return d.CLUSTER_BREAK.LVT}else if(t<50137){if(t===50136)return d.CLUSTER_BREAK.LV}else if(t<50164){if(50137<=t&&t<=50163)return d.CLUSTER_BREAK.LVT}else if(t===50164)return d.CLUSTER_BREAK.LV}else if(t<50193){if(t<50192){if(50165<=t&&t<=50191)return d.CLUSTER_BREAK.LVT}else if(t===50192)return d.CLUSTER_BREAK.LV}else if(t<50220){if(50193<=t&&t<=50219)return d.CLUSTER_BREAK.LVT}else if(t<50221){if(t===50220)return d.CLUSTER_BREAK.LV}else if(50221<=t&&t<=50247)return d.CLUSTER_BREAK.LVT}else if(t<50305){if(t<50276){if(t<50249){if(t===50248)return d.CLUSTER_BREAK.LV}else if(50249<=t&&t<=50275)return d.CLUSTER_BREAK.LVT}else if(t<50277){if(t===50276)return d.CLUSTER_BREAK.LV}else if(t<50304){if(50277<=t&&t<=50303)return d.CLUSTER_BREAK.LVT}else if(t===50304)return d.CLUSTER_BREAK.LV}else if(t<50360){if(t<50332){if(50305<=t&&t<=50331)return d.CLUSTER_BREAK.LVT}else if(t<50333){if(t===50332)return d.CLUSTER_BREAK.LV}else if(50333<=t&&t<=50359)return d.CLUSTER_BREAK.LVT}else if(t<50361){if(t===50360)return d.CLUSTER_BREAK.LV}else if(t<50388){if(50361<=t&&t<=50387)return d.CLUSTER_BREAK.LVT}else if(t===50388)return d.CLUSTER_BREAK.LV}else if(t<50556){if(t<50472){if(t<50417){if(t<50416){if(50389<=t&&t<=50415)return d.CLUSTER_BREAK.LVT}else if(t===50416)return d.CLUSTER_BREAK.LV}else if(t<50444){if(50417<=t&&t<=50443)return d.CLUSTER_BREAK.LVT}else if(t<50445){if(t===50444)return d.CLUSTER_BREAK.LV}else if(50445<=t&&t<=50471)return d.CLUSTER_BREAK.LVT}else if(t<50501){if(t<50473){if(t===50472)return d.CLUSTER_BREAK.LV}else if(t<50500){if(50473<=t&&t<=50499)return d.CLUSTER_BREAK.LVT}else if(t===50500)return d.CLUSTER_BREAK.LV}else if(t<50528){if(50501<=t&&t<=50527)return d.CLUSTER_BREAK.LVT}else if(t<50529){if(t===50528)return d.CLUSTER_BREAK.LV}else if(50529<=t&&t<=50555)return d.CLUSTER_BREAK.LVT}else if(t<50613){if(t<50584){if(t<50557){if(t===50556)return d.CLUSTER_BREAK.LV}else if(50557<=t&&t<=50583)return d.CLUSTER_BREAK.LVT}else if(t<50585){if(t===50584)return d.CLUSTER_BREAK.LV}else if(t<50612){if(50585<=t&&t<=50611)return d.CLUSTER_BREAK.LVT}else if(t===50612)return d.CLUSTER_BREAK.LV}else if(t<50668){if(t<50640){if(50613<=t&&t<=50639)return d.CLUSTER_BREAK.LVT}else if(t<50641){if(t===50640)return d.CLUSTER_BREAK.LV}else if(50641<=t&&t<=50667)return d.CLUSTER_BREAK.LVT}else if(t<50669){if(t===50668)return d.CLUSTER_BREAK.LV}else if(t<50696){if(50669<=t&&t<=50695)return d.CLUSTER_BREAK.LVT}else if(t===50696)return d.CLUSTER_BREAK.LV}else if(t<51004){if(t<50837){if(t<50780){if(t<50725){if(t<50724){if(50697<=t&&t<=50723)return d.CLUSTER_BREAK.LVT}else if(t===50724)return d.CLUSTER_BREAK.LV}else if(t<50752){if(50725<=t&&t<=50751)return d.CLUSTER_BREAK.LVT}else if(t<50753){if(t===50752)return d.CLUSTER_BREAK.LV}else if(50753<=t&&t<=50779)return d.CLUSTER_BREAK.LVT}else if(t<50808){if(t<50781){if(t===50780)return d.CLUSTER_BREAK.LV}else if(50781<=t&&t<=50807)return d.CLUSTER_BREAK.LVT}else if(t<50809){if(t===50808)return d.CLUSTER_BREAK.LV}else if(t<50836){if(50809<=t&&t<=50835)return d.CLUSTER_BREAK.LVT}else if(t===50836)return d.CLUSTER_BREAK.LV}else if(t<50920){if(t<50865){if(t<50864){if(50837<=t&&t<=50863)return d.CLUSTER_BREAK.LVT}else if(t===50864)return d.CLUSTER_BREAK.LV}else if(t<50892){if(50865<=t&&t<=50891)return d.CLUSTER_BREAK.LVT}else if(t<50893){if(t===50892)return d.CLUSTER_BREAK.LV}else if(50893<=t&&t<=50919)return d.CLUSTER_BREAK.LVT}else if(t<50949){if(t<50921){if(t===50920)return d.CLUSTER_BREAK.LV}else if(t<50948){if(50921<=t&&t<=50947)return d.CLUSTER_BREAK.LVT}else if(t===50948)return d.CLUSTER_BREAK.LV}else if(t<50976){if(50949<=t&&t<=50975)return d.CLUSTER_BREAK.LVT}else if(t<50977){if(t===50976)return d.CLUSTER_BREAK.LV}else if(50977<=t&&t<=51003)return d.CLUSTER_BREAK.LVT}else if(t<51145){if(t<51061){if(t<51032){if(t<51005){if(t===51004)return d.CLUSTER_BREAK.LV}else if(51005<=t&&t<=51031)return d.CLUSTER_BREAK.LVT}else if(t<51033){if(t===51032)return d.CLUSTER_BREAK.LV}else if(t<51060){if(51033<=t&&t<=51059)return d.CLUSTER_BREAK.LVT}else if(t===51060)return d.CLUSTER_BREAK.LV}else if(t<51116){if(t<51088){if(51061<=t&&t<=51087)return d.CLUSTER_BREAK.LVT}else if(t<51089){if(t===51088)return d.CLUSTER_BREAK.LV}else if(51089<=t&&t<=51115)return d.CLUSTER_BREAK.LVT}else if(t<51117){if(t===51116)return d.CLUSTER_BREAK.LV}else if(t<51144){if(51117<=t&&t<=51143)return d.CLUSTER_BREAK.LVT}else if(t===51144)return d.CLUSTER_BREAK.LV}else if(t<51228){if(t<51173){if(t<51172){if(51145<=t&&t<=51171)return d.CLUSTER_BREAK.LVT}else if(t===51172)return d.CLUSTER_BREAK.LV}else if(t<51200){if(51173<=t&&t<=51199)return d.CLUSTER_BREAK.LVT}else if(t<51201){if(t===51200)return d.CLUSTER_BREAK.LV}else if(51201<=t&&t<=51227)return d.CLUSTER_BREAK.LVT}else if(t<51257){if(t<51229){if(t===51228)return d.CLUSTER_BREAK.LV}else if(t<51256){if(51229<=t&&t<=51255)return d.CLUSTER_BREAK.LVT}else if(t===51256)return d.CLUSTER_BREAK.LV}else if(t<51284){if(51257<=t&&t<=51283)return d.CLUSTER_BREAK.LVT}else if(t<51285){if(t===51284)return d.CLUSTER_BREAK.LV}else if(51285<=t&&t<=51311)return d.CLUSTER_BREAK.LVT}else if(t<52516){if(t<51901){if(t<51593){if(t<51452){if(t<51369){if(t<51340){if(t<51313){if(t===51312)return d.CLUSTER_BREAK.LV}else if(51313<=t&&t<=51339)return d.CLUSTER_BREAK.LVT}else if(t<51341){if(t===51340)return d.CLUSTER_BREAK.LV}else if(t<51368){if(51341<=t&&t<=51367)return d.CLUSTER_BREAK.LVT}else if(t===51368)return d.CLUSTER_BREAK.LV}else if(t<51397){if(t<51396){if(51369<=t&&t<=51395)return d.CLUSTER_BREAK.LVT}else if(t===51396)return d.CLUSTER_BREAK.LV}else if(t<51424){if(51397<=t&&t<=51423)return d.CLUSTER_BREAK.LVT}else if(t<51425){if(t===51424)return d.CLUSTER_BREAK.LV}else if(51425<=t&&t<=51451)return d.CLUSTER_BREAK.LVT}else if(t<51509){if(t<51480){if(t<51453){if(t===51452)return d.CLUSTER_BREAK.LV}else if(51453<=t&&t<=51479)return d.CLUSTER_BREAK.LVT}else if(t<51481){if(t===51480)return d.CLUSTER_BREAK.LV}else if(t<51508){if(51481<=t&&t<=51507)return d.CLUSTER_BREAK.LVT}else if(t===51508)return d.CLUSTER_BREAK.LV}else if(t<51564){if(t<51536){if(51509<=t&&t<=51535)return d.CLUSTER_BREAK.LVT}else if(t<51537){if(t===51536)return d.CLUSTER_BREAK.LV}else if(51537<=t&&t<=51563)return d.CLUSTER_BREAK.LVT}else if(t<51565){if(t===51564)return d.CLUSTER_BREAK.LV}else if(t<51592){if(51565<=t&&t<=51591)return d.CLUSTER_BREAK.LVT}else if(t===51592)return d.CLUSTER_BREAK.LV}else if(t<51760){if(t<51676){if(t<51621){if(t<51620){if(51593<=t&&t<=51619)return d.CLUSTER_BREAK.LVT}else if(t===51620)return d.CLUSTER_BREAK.LV}else if(t<51648){if(51621<=t&&t<=51647)return d.CLUSTER_BREAK.LVT}else if(t<51649){if(t===51648)return d.CLUSTER_BREAK.LV}else if(51649<=t&&t<=51675)return d.CLUSTER_BREAK.LVT}else if(t<51705){if(t<51677){if(t===51676)return d.CLUSTER_BREAK.LV}else if(t<51704){if(51677<=t&&t<=51703)return d.CLUSTER_BREAK.LVT}else if(t===51704)return d.CLUSTER_BREAK.LV}else if(t<51732){if(51705<=t&&t<=51731)return d.CLUSTER_BREAK.LVT}else if(t<51733){if(t===51732)return d.CLUSTER_BREAK.LV}else if(51733<=t&&t<=51759)return d.CLUSTER_BREAK.LVT}else if(t<51817){if(t<51788){if(t<51761){if(t===51760)return d.CLUSTER_BREAK.LV}else if(51761<=t&&t<=51787)return d.CLUSTER_BREAK.LVT}else if(t<51789){if(t===51788)return d.CLUSTER_BREAK.LV}else if(t<51816){if(51789<=t&&t<=51815)return d.CLUSTER_BREAK.LVT}else if(t===51816)return d.CLUSTER_BREAK.LV}else if(t<51872){if(t<51844){if(51817<=t&&t<=51843)return d.CLUSTER_BREAK.LVT}else if(t<51845){if(t===51844)return d.CLUSTER_BREAK.LV}else if(51845<=t&&t<=51871)return d.CLUSTER_BREAK.LVT}else if(t<51873){if(t===51872)return d.CLUSTER_BREAK.LV}else if(t<51900){if(51873<=t&&t<=51899)return d.CLUSTER_BREAK.LVT}else if(t===51900)return d.CLUSTER_BREAK.LV}else if(t<52208){if(t<52041){if(t<51984){if(t<51929){if(t<51928){if(51901<=t&&t<=51927)return d.CLUSTER_BREAK.LVT}else if(t===51928)return d.CLUSTER_BREAK.LV}else if(t<51956){if(51929<=t&&t<=51955)return d.CLUSTER_BREAK.LVT}else if(t<51957){if(t===51956)return d.CLUSTER_BREAK.LV}else if(51957<=t&&t<=51983)return d.CLUSTER_BREAK.LVT}else if(t<52012){if(t<51985){if(t===51984)return d.CLUSTER_BREAK.LV}else if(51985<=t&&t<=52011)return d.CLUSTER_BREAK.LVT}else if(t<52013){if(t===52012)return d.CLUSTER_BREAK.LV}else if(t<52040){if(52013<=t&&t<=52039)return d.CLUSTER_BREAK.LVT}else if(t===52040)return d.CLUSTER_BREAK.LV}else if(t<52124){if(t<52069){if(t<52068){if(52041<=t&&t<=52067)return d.CLUSTER_BREAK.LVT}else if(t===52068)return d.CLUSTER_BREAK.LV}else if(t<52096){if(52069<=t&&t<=52095)return d.CLUSTER_BREAK.LVT}else if(t<52097){if(t===52096)return d.CLUSTER_BREAK.LV}else if(52097<=t&&t<=52123)return d.CLUSTER_BREAK.LVT}else if(t<52153){if(t<52125){if(t===52124)return d.CLUSTER_BREAK.LV}else if(t<52152){if(52125<=t&&t<=52151)return d.CLUSTER_BREAK.LVT}else if(t===52152)return d.CLUSTER_BREAK.LV}else if(t<52180){if(52153<=t&&t<=52179)return d.CLUSTER_BREAK.LVT}else if(t<52181){if(t===52180)return d.CLUSTER_BREAK.LV}else if(52181<=t&&t<=52207)return d.CLUSTER_BREAK.LVT}else if(t<52349){if(t<52265){if(t<52236){if(t<52209){if(t===52208)return d.CLUSTER_BREAK.LV}else if(52209<=t&&t<=52235)return d.CLUSTER_BREAK.LVT}else if(t<52237){if(t===52236)return d.CLUSTER_BREAK.LV}else if(t<52264){if(52237<=t&&t<=52263)return d.CLUSTER_BREAK.LVT}else if(t===52264)return d.CLUSTER_BREAK.LV}else if(t<52320){if(t<52292){if(52265<=t&&t<=52291)return d.CLUSTER_BREAK.LVT}else if(t<52293){if(t===52292)return d.CLUSTER_BREAK.LV}else if(52293<=t&&t<=52319)return d.CLUSTER_BREAK.LVT}else if(t<52321){if(t===52320)return d.CLUSTER_BREAK.LV}else if(t<52348){if(52321<=t&&t<=52347)return d.CLUSTER_BREAK.LVT}else if(t===52348)return d.CLUSTER_BREAK.LV}else if(t<52432){if(t<52377){if(t<52376){if(52349<=t&&t<=52375)return d.CLUSTER_BREAK.LVT}else if(t===52376)return d.CLUSTER_BREAK.LV}else if(t<52404){if(52377<=t&&t<=52403)return d.CLUSTER_BREAK.LVT}else if(t<52405){if(t===52404)return d.CLUSTER_BREAK.LV}else if(52405<=t&&t<=52431)return d.CLUSTER_BREAK.LVT}else if(t<52461){if(t<52433){if(t===52432)return d.CLUSTER_BREAK.LV}else if(t<52460){if(52433<=t&&t<=52459)return d.CLUSTER_BREAK.LVT}else if(t===52460)return d.CLUSTER_BREAK.LV}else if(t<52488){if(52461<=t&&t<=52487)return d.CLUSTER_BREAK.LVT}else if(t<52489){if(t===52488)return d.CLUSTER_BREAK.LV}else if(52489<=t&&t<=52515)return d.CLUSTER_BREAK.LVT}else if(t<53105){if(t<52797){if(t<52656){if(t<52573){if(t<52544){if(t<52517){if(t===52516)return d.CLUSTER_BREAK.LV}else if(52517<=t&&t<=52543)return d.CLUSTER_BREAK.LVT}else if(t<52545){if(t===52544)return d.CLUSTER_BREAK.LV}else if(t<52572){if(52545<=t&&t<=52571)return d.CLUSTER_BREAK.LVT}else if(t===52572)return d.CLUSTER_BREAK.LV}else if(t<52601){if(t<52600){if(52573<=t&&t<=52599)return d.CLUSTER_BREAK.LVT}else if(t===52600)return d.CLUSTER_BREAK.LV}else if(t<52628){if(52601<=t&&t<=52627)return d.CLUSTER_BREAK.LVT}else if(t<52629){if(t===52628)return d.CLUSTER_BREAK.LV}else if(52629<=t&&t<=52655)return d.CLUSTER_BREAK.LVT}else if(t<52713){if(t<52684){if(t<52657){if(t===52656)return d.CLUSTER_BREAK.LV}else if(52657<=t&&t<=52683)return d.CLUSTER_BREAK.LVT}else if(t<52685){if(t===52684)return d.CLUSTER_BREAK.LV}else if(t<52712){if(52685<=t&&t<=52711)return d.CLUSTER_BREAK.LVT}else if(t===52712)return d.CLUSTER_BREAK.LV}else if(t<52768){if(t<52740){if(52713<=t&&t<=52739)return d.CLUSTER_BREAK.LVT}else if(t<52741){if(t===52740)return d.CLUSTER_BREAK.LV}else if(52741<=t&&t<=52767)return d.CLUSTER_BREAK.LVT}else if(t<52769){if(t===52768)return d.CLUSTER_BREAK.LV}else if(t<52796){if(52769<=t&&t<=52795)return d.CLUSTER_BREAK.LVT}else if(t===52796)return d.CLUSTER_BREAK.LV}else if(t<52964){if(t<52880){if(t<52825){if(t<52824){if(52797<=t&&t<=52823)return d.CLUSTER_BREAK.LVT}else if(t===52824)return d.CLUSTER_BREAK.LV}else if(t<52852){if(52825<=t&&t<=52851)return d.CLUSTER_BREAK.LVT}else if(t<52853){if(t===52852)return d.CLUSTER_BREAK.LV}else if(52853<=t&&t<=52879)return d.CLUSTER_BREAK.LVT}else if(t<52909){if(t<52881){if(t===52880)return d.CLUSTER_BREAK.LV}else if(t<52908){if(52881<=t&&t<=52907)return d.CLUSTER_BREAK.LVT}else if(t===52908)return d.CLUSTER_BREAK.LV}else if(t<52936){if(52909<=t&&t<=52935)return d.CLUSTER_BREAK.LVT}else if(t<52937){if(t===52936)return d.CLUSTER_BREAK.LV}else if(52937<=t&&t<=52963)return d.CLUSTER_BREAK.LVT}else if(t<53021){if(t<52992){if(t<52965){if(t===52964)return d.CLUSTER_BREAK.LV}else if(52965<=t&&t<=52991)return d.CLUSTER_BREAK.LVT}else if(t<52993){if(t===52992)return d.CLUSTER_BREAK.LV}else if(t<53020){if(52993<=t&&t<=53019)return d.CLUSTER_BREAK.LVT}else if(t===53020)return d.CLUSTER_BREAK.LV}else if(t<53076){if(t<53048){if(53021<=t&&t<=53047)return d.CLUSTER_BREAK.LVT}else if(t<53049){if(t===53048)return d.CLUSTER_BREAK.LV}else if(53049<=t&&t<=53075)return d.CLUSTER_BREAK.LVT}else if(t<53077){if(t===53076)return d.CLUSTER_BREAK.LV}else if(t<53104){if(53077<=t&&t<=53103)return d.CLUSTER_BREAK.LVT}else if(t===53104)return d.CLUSTER_BREAK.LV}else if(t<53412){if(t<53245){if(t<53188){if(t<53133){if(t<53132){if(53105<=t&&t<=53131)return d.CLUSTER_BREAK.LVT}else if(t===53132)return d.CLUSTER_BREAK.LV}else if(t<53160){if(53133<=t&&t<=53159)return d.CLUSTER_BREAK.LVT}else if(t<53161){if(t===53160)return d.CLUSTER_BREAK.LV}else if(53161<=t&&t<=53187)return d.CLUSTER_BREAK.LVT}else if(t<53216){if(t<53189){if(t===53188)return d.CLUSTER_BREAK.LV}else if(53189<=t&&t<=53215)return d.CLUSTER_BREAK.LVT}else if(t<53217){if(t===53216)return d.CLUSTER_BREAK.LV}else if(t<53244){if(53217<=t&&t<=53243)return d.CLUSTER_BREAK.LVT}else if(t===53244)return d.CLUSTER_BREAK.LV}else if(t<53328){if(t<53273){if(t<53272){if(53245<=t&&t<=53271)return d.CLUSTER_BREAK.LVT}else if(t===53272)return d.CLUSTER_BREAK.LV}else if(t<53300){if(53273<=t&&t<=53299)return d.CLUSTER_BREAK.LVT}else if(t<53301){if(t===53300)return d.CLUSTER_BREAK.LV}else if(53301<=t&&t<=53327)return d.CLUSTER_BREAK.LVT}else if(t<53357){if(t<53329){if(t===53328)return d.CLUSTER_BREAK.LV}else if(t<53356){if(53329<=t&&t<=53355)return d.CLUSTER_BREAK.LVT}else if(t===53356)return d.CLUSTER_BREAK.LV}else if(t<53384){if(53357<=t&&t<=53383)return d.CLUSTER_BREAK.LVT}else if(t<53385){if(t===53384)return d.CLUSTER_BREAK.LV}else if(53385<=t&&t<=53411)return d.CLUSTER_BREAK.LVT}else if(t<53553){if(t<53469){if(t<53440){if(t<53413){if(t===53412)return d.CLUSTER_BREAK.LV}else if(53413<=t&&t<=53439)return d.CLUSTER_BREAK.LVT}else if(t<53441){if(t===53440)return d.CLUSTER_BREAK.LV}else if(t<53468){if(53441<=t&&t<=53467)return d.CLUSTER_BREAK.LVT}else if(t===53468)return d.CLUSTER_BREAK.LV}else if(t<53524){if(t<53496){if(53469<=t&&t<=53495)return d.CLUSTER_BREAK.LVT}else if(t<53497){if(t===53496)return d.CLUSTER_BREAK.LV}else if(53497<=t&&t<=53523)return d.CLUSTER_BREAK.LVT}else if(t<53525){if(t===53524)return d.CLUSTER_BREAK.LV}else if(t<53552){if(53525<=t&&t<=53551)return d.CLUSTER_BREAK.LVT}else if(t===53552)return d.CLUSTER_BREAK.LV}else if(t<53636){if(t<53581){if(t<53580){if(53553<=t&&t<=53579)return d.CLUSTER_BREAK.LVT}else if(t===53580)return d.CLUSTER_BREAK.LV}else if(t<53608){if(53581<=t&&t<=53607)return d.CLUSTER_BREAK.LVT}else if(t<53609){if(t===53608)return d.CLUSTER_BREAK.LV}else if(53609<=t&&t<=53635)return d.CLUSTER_BREAK.LVT}else if(t<53665){if(t<53637){if(t===53636)return d.CLUSTER_BREAK.LV}else if(t<53664){if(53637<=t&&t<=53663)return d.CLUSTER_BREAK.LVT}else if(t===53664)return d.CLUSTER_BREAK.LV}else if(t<53692){if(53665<=t&&t<=53691)return d.CLUSTER_BREAK.LVT}else if(t<53693){if(t===53692)return d.CLUSTER_BREAK.LV}else if(53693<=t&&t<=53719)return d.CLUSTER_BREAK.LVT}else if(t<70459){if(t<54897){if(t<54308){if(t<54001){if(t<53860){if(t<53777){if(t<53748){if(t<53721){if(t===53720)return d.CLUSTER_BREAK.LV}else if(53721<=t&&t<=53747)return d.CLUSTER_BREAK.LVT}else if(t<53749){if(t===53748)return d.CLUSTER_BREAK.LV}else if(t<53776){if(53749<=t&&t<=53775)return d.CLUSTER_BREAK.LVT}else if(t===53776)return d.CLUSTER_BREAK.LV}else if(t<53805){if(t<53804){if(53777<=t&&t<=53803)return d.CLUSTER_BREAK.LVT}else if(t===53804)return d.CLUSTER_BREAK.LV}else if(t<53832){if(53805<=t&&t<=53831)return d.CLUSTER_BREAK.LVT}else if(t<53833){if(t===53832)return d.CLUSTER_BREAK.LV}else if(53833<=t&&t<=53859)return d.CLUSTER_BREAK.LVT}else if(t<53917){if(t<53888){if(t<53861){if(t===53860)return d.CLUSTER_BREAK.LV}else if(53861<=t&&t<=53887)return d.CLUSTER_BREAK.LVT}else if(t<53889){if(t===53888)return d.CLUSTER_BREAK.LV}else if(t<53916){if(53889<=t&&t<=53915)return d.CLUSTER_BREAK.LVT}else if(t===53916)return d.CLUSTER_BREAK.LV}else if(t<53972){if(t<53944){if(53917<=t&&t<=53943)return d.CLUSTER_BREAK.LVT}else if(t<53945){if(t===53944)return d.CLUSTER_BREAK.LV}else if(53945<=t&&t<=53971)return d.CLUSTER_BREAK.LVT}else if(t<53973){if(t===53972)return d.CLUSTER_BREAK.LV}else if(t<54e3){if(53973<=t&&t<=53999)return d.CLUSTER_BREAK.LVT}else if(t===54e3)return d.CLUSTER_BREAK.LV}else if(t<54141){if(t<54084){if(t<54029){if(t<54028){if(54001<=t&&t<=54027)return d.CLUSTER_BREAK.LVT}else if(t===54028)return d.CLUSTER_BREAK.LV}else if(t<54056){if(54029<=t&&t<=54055)return d.CLUSTER_BREAK.LVT}else if(t<54057){if(t===54056)return d.CLUSTER_BREAK.LV}else if(54057<=t&&t<=54083)return d.CLUSTER_BREAK.LVT}else if(t<54112){if(t<54085){if(t===54084)return d.CLUSTER_BREAK.LV}else if(54085<=t&&t<=54111)return d.CLUSTER_BREAK.LVT}else if(t<54113){if(t===54112)return d.CLUSTER_BREAK.LV}else if(t<54140){if(54113<=t&&t<=54139)return d.CLUSTER_BREAK.LVT}else if(t===54140)return d.CLUSTER_BREAK.LV}else if(t<54224){if(t<54169){if(t<54168){if(54141<=t&&t<=54167)return d.CLUSTER_BREAK.LVT}else if(t===54168)return d.CLUSTER_BREAK.LV}else if(t<54196){if(54169<=t&&t<=54195)return d.CLUSTER_BREAK.LVT}else if(t<54197){if(t===54196)return d.CLUSTER_BREAK.LV}else if(54197<=t&&t<=54223)return d.CLUSTER_BREAK.LVT}else if(t<54253){if(t<54225){if(t===54224)return d.CLUSTER_BREAK.LV}else if(t<54252){if(54225<=t&&t<=54251)return d.CLUSTER_BREAK.LVT}else if(t===54252)return d.CLUSTER_BREAK.LV}else if(t<54280){if(54253<=t&&t<=54279)return d.CLUSTER_BREAK.LVT}else if(t<54281){if(t===54280)return d.CLUSTER_BREAK.LV}else if(54281<=t&&t<=54307)return d.CLUSTER_BREAK.LVT}else if(t<54589){if(t<54448){if(t<54365){if(t<54336){if(t<54309){if(t===54308)return d.CLUSTER_BREAK.LV}else if(54309<=t&&t<=54335)return d.CLUSTER_BREAK.LVT}else if(t<54337){if(t===54336)return d.CLUSTER_BREAK.LV}else if(t<54364){if(54337<=t&&t<=54363)return d.CLUSTER_BREAK.LVT}else if(t===54364)return d.CLUSTER_BREAK.LV}else if(t<54393){if(t<54392){if(54365<=t&&t<=54391)return d.CLUSTER_BREAK.LVT}else if(t===54392)return d.CLUSTER_BREAK.LV}else if(t<54420){if(54393<=t&&t<=54419)return d.CLUSTER_BREAK.LVT}else if(t<54421){if(t===54420)return d.CLUSTER_BREAK.LV}else if(54421<=t&&t<=54447)return d.CLUSTER_BREAK.LVT}else if(t<54505){if(t<54476){if(t<54449){if(t===54448)return d.CLUSTER_BREAK.LV}else if(54449<=t&&t<=54475)return d.CLUSTER_BREAK.LVT}else if(t<54477){if(t===54476)return d.CLUSTER_BREAK.LV}else if(t<54504){if(54477<=t&&t<=54503)return d.CLUSTER_BREAK.LVT}else if(t===54504)return d.CLUSTER_BREAK.LV}else if(t<54560){if(t<54532){if(54505<=t&&t<=54531)return d.CLUSTER_BREAK.LVT}else if(t<54533){if(t===54532)return d.CLUSTER_BREAK.LV}else if(54533<=t&&t<=54559)return d.CLUSTER_BREAK.LVT}else if(t<54561){if(t===54560)return d.CLUSTER_BREAK.LV}else if(t<54588){if(54561<=t&&t<=54587)return d.CLUSTER_BREAK.LVT}else if(t===54588)return d.CLUSTER_BREAK.LV}else if(t<54756){if(t<54672){if(t<54617){if(t<54616){if(54589<=t&&t<=54615)return d.CLUSTER_BREAK.LVT}else if(t===54616)return d.CLUSTER_BREAK.LV}else if(t<54644){if(54617<=t&&t<=54643)return d.CLUSTER_BREAK.LVT}else if(t<54645){if(t===54644)return d.CLUSTER_BREAK.LV}else if(54645<=t&&t<=54671)return d.CLUSTER_BREAK.LVT}else if(t<54701){if(t<54673){if(t===54672)return d.CLUSTER_BREAK.LV}else if(t<54700){if(54673<=t&&t<=54699)return d.CLUSTER_BREAK.LVT}else if(t===54700)return d.CLUSTER_BREAK.LV}else if(t<54728){if(54701<=t&&t<=54727)return d.CLUSTER_BREAK.LVT}else if(t<54729){if(t===54728)return d.CLUSTER_BREAK.LV}else if(54729<=t&&t<=54755)return d.CLUSTER_BREAK.LVT}else if(t<54813){if(t<54784){if(t<54757){if(t===54756)return d.CLUSTER_BREAK.LV}else if(54757<=t&&t<=54783)return d.CLUSTER_BREAK.LVT}else if(t<54785){if(t===54784)return d.CLUSTER_BREAK.LV}else if(t<54812){if(54785<=t&&t<=54811)return d.CLUSTER_BREAK.LVT}else if(t===54812)return d.CLUSTER_BREAK.LV}else if(t<54868){if(t<54840){if(54813<=t&&t<=54839)return d.CLUSTER_BREAK.LVT}else if(t<54841){if(t===54840)return d.CLUSTER_BREAK.LV}else if(54841<=t&&t<=54867)return d.CLUSTER_BREAK.LVT}else if(t<54869){if(t===54868)return d.CLUSTER_BREAK.LV}else if(t<54896){if(54869<=t&&t<=54895)return d.CLUSTER_BREAK.LVT}else if(t===54896)return d.CLUSTER_BREAK.LV}else if(t<69632){if(t<55216){if(t<55037){if(t<54980){if(t<54925){if(t<54924){if(54897<=t&&t<=54923)return d.CLUSTER_BREAK.LVT}else if(t===54924)return d.CLUSTER_BREAK.LV}else if(t<54952){if(54925<=t&&t<=54951)return d.CLUSTER_BREAK.LVT}else if(t<54953){if(t===54952)return d.CLUSTER_BREAK.LV}else if(54953<=t&&t<=54979)return d.CLUSTER_BREAK.LVT}else if(t<55008){if(t<54981){if(t===54980)return d.CLUSTER_BREAK.LV}else if(54981<=t&&t<=55007)return d.CLUSTER_BREAK.LVT}else if(t<55009){if(t===55008)return d.CLUSTER_BREAK.LV}else if(t<55036){if(55009<=t&&t<=55035)return d.CLUSTER_BREAK.LVT}else if(t===55036)return d.CLUSTER_BREAK.LV}else if(t<55120){if(t<55065){if(t<55064){if(55037<=t&&t<=55063)return d.CLUSTER_BREAK.LVT}else if(t===55064)return d.CLUSTER_BREAK.LV}else if(t<55092){if(55065<=t&&t<=55091)return d.CLUSTER_BREAK.LVT}else if(t<55093){if(t===55092)return d.CLUSTER_BREAK.LV}else if(55093<=t&&t<=55119)return d.CLUSTER_BREAK.LVT}else if(t<55149){if(t<55121){if(t===55120)return d.CLUSTER_BREAK.LV}else if(t<55148){if(55121<=t&&t<=55147)return d.CLUSTER_BREAK.LVT}else if(t===55148)return d.CLUSTER_BREAK.LV}else if(t<55176){if(55149<=t&&t<=55175)return d.CLUSTER_BREAK.LVT}else if(t<55177){if(t===55176)return d.CLUSTER_BREAK.LV}else if(55177<=t&&t<=55203)return d.CLUSTER_BREAK.LVT}else if(t<68097){if(t<65279){if(t<64286){if(t<55243){if(55216<=t&&t<=55238)return d.CLUSTER_BREAK.V}else if(55243<=t&&t<=55291)return d.CLUSTER_BREAK.T}else if(t<65024){if(t===64286)return d.CLUSTER_BREAK.EXTEND}else if(t<65056){if(65024<=t&&t<=65039)return d.CLUSTER_BREAK.EXTEND}else if(65056<=t&&t<=65071)return d.CLUSTER_BREAK.EXTEND}else if(t<66045){if(t<65438){if(t===65279)return d.CLUSTER_BREAK.CONTROL}else if(t<65520){if(65438<=t&&t<=65439)return d.CLUSTER_BREAK.EXTEND}else if(65520<=t&&t<=65531)return d.CLUSTER_BREAK.CONTROL}else if(t<66272){if(t===66045)return d.CLUSTER_BREAK.EXTEND}else if(t<66422){if(t===66272)return d.CLUSTER_BREAK.EXTEND}else if(66422<=t&&t<=66426)return d.CLUSTER_BREAK.EXTEND}else if(t<68325){if(t<68108){if(t<68101){if(68097<=t&&t<=68099)return d.CLUSTER_BREAK.EXTEND}else if(68101<=t&&t<=68102)return d.CLUSTER_BREAK.EXTEND}else if(t<68152){if(68108<=t&&t<=68111)return d.CLUSTER_BREAK.EXTEND}else if(t<68159){if(68152<=t&&t<=68154)return d.CLUSTER_BREAK.EXTEND}else if(t===68159)return d.CLUSTER_BREAK.EXTEND}else if(t<69373){if(t<68900){if(68325<=t&&t<=68326)return d.CLUSTER_BREAK.EXTEND}else if(t<69291){if(68900<=t&&t<=68903)return d.CLUSTER_BREAK.EXTEND}else if(69291<=t&&t<=69292)return d.CLUSTER_BREAK.EXTEND}else if(t<69446){if(69373<=t&&t<=69375)return d.CLUSTER_BREAK.EXTEND}else if(t<69506){if(69446<=t&&t<=69456)return d.CLUSTER_BREAK.EXTEND}else if(69506<=t&&t<=69509)return d.CLUSTER_BREAK.EXTEND}else if(t<70016){if(t<69815){if(t<69747){if(t<69634){if(t===69632)return d.CLUSTER_BREAK.SPACINGMARK;if(t===69633)return d.CLUSTER_BREAK.EXTEND}else if(t<69688){if(t===69634)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69744){if(69688<=t&&t<=69702)return d.CLUSTER_BREAK.EXTEND}else if(t===69744)return d.CLUSTER_BREAK.EXTEND}else if(t<69762){if(t<69759){if(69747<=t&&t<=69748)return d.CLUSTER_BREAK.EXTEND}else if(69759<=t&&t<=69761)return d.CLUSTER_BREAK.EXTEND}else if(t<69808){if(t===69762)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69811){if(69808<=t&&t<=69810)return d.CLUSTER_BREAK.SPACINGMARK}else if(69811<=t&&t<=69814)return d.CLUSTER_BREAK.EXTEND}else if(t<69888)if(t<69821){if(t<69817){if(69815<=t&&t<=69816)return d.CLUSTER_BREAK.SPACINGMARK}else if(69817<=t&&t<=69818)return d.CLUSTER_BREAK.EXTEND}else if(t<69826){if(t===69821)return d.CLUSTER_BREAK.PREPEND}else{if(t===69826)return d.CLUSTER_BREAK.EXTEND;if(t===69837)return d.CLUSTER_BREAK.PREPEND}else if(t<69933){if(t<69927){if(69888<=t&&t<=69890)return d.CLUSTER_BREAK.EXTEND}else if(t<69932){if(69927<=t&&t<=69931)return d.CLUSTER_BREAK.EXTEND}else if(t===69932)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69957){if(69933<=t&&t<=69940)return d.CLUSTER_BREAK.EXTEND}else if(t<70003){if(69957<=t&&t<=69958)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70003)return d.CLUSTER_BREAK.EXTEND}else if(t<70194){if(t<70082){if(t<70067){if(t<70018){if(70016<=t&&t<=70017)return d.CLUSTER_BREAK.EXTEND}else if(t===70018)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70070){if(70067<=t&&t<=70069)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70079){if(70070<=t&&t<=70078)return d.CLUSTER_BREAK.EXTEND}else if(70079<=t&&t<=70080)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70095){if(t<70089){if(70082<=t&&t<=70083)return d.CLUSTER_BREAK.PREPEND}else if(t<70094){if(70089<=t&&t<=70092)return d.CLUSTER_BREAK.EXTEND}else if(t===70094)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70188){if(t===70095)return d.CLUSTER_BREAK.EXTEND}else if(t<70191){if(70188<=t&&t<=70190)return d.CLUSTER_BREAK.SPACINGMARK}else if(70191<=t&&t<=70193)return d.CLUSTER_BREAK.EXTEND}else if(t<70209){if(t<70197){if(t<70196){if(70194<=t&&t<=70195)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70196)return d.CLUSTER_BREAK.EXTEND}else if(t<70198){if(t===70197)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70206){if(70198<=t&&t<=70199)return d.CLUSTER_BREAK.EXTEND}else if(t===70206)return d.CLUSTER_BREAK.EXTEND}else if(t<70371){if(t<70367){if(t===70209)return d.CLUSTER_BREAK.EXTEND}else if(t<70368){if(t===70367)return d.CLUSTER_BREAK.EXTEND}else if(70368<=t&&t<=70370)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70400){if(70371<=t&&t<=70378)return d.CLUSTER_BREAK.EXTEND}else if(t<70402){if(70400<=t&&t<=70401)return d.CLUSTER_BREAK.EXTEND}else if(70402<=t&&t<=70403)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72343){if(t<71339){if(t<70841){if(t<70512){if(t<70471){if(t<70463){if(t<70462){if(70459<=t&&t<=70460)return d.CLUSTER_BREAK.EXTEND}else if(t===70462)return d.CLUSTER_BREAK.EXTEND}else if(t<70464){if(t===70463)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70465){if(t===70464)return d.CLUSTER_BREAK.EXTEND}else if(70465<=t&&t<=70468)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70487){if(t<70475){if(70471<=t&&t<=70472)return d.CLUSTER_BREAK.SPACINGMARK}else if(70475<=t&&t<=70477)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70498){if(t===70487)return d.CLUSTER_BREAK.EXTEND}else if(t<70502){if(70498<=t&&t<=70499)return d.CLUSTER_BREAK.SPACINGMARK}else if(70502<=t&&t<=70508)return d.CLUSTER_BREAK.EXTEND}else if(t<70725){if(t<70712){if(t<70709){if(70512<=t&&t<=70516)return d.CLUSTER_BREAK.EXTEND}else if(70709<=t&&t<=70711)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70720){if(70712<=t&&t<=70719)return d.CLUSTER_BREAK.EXTEND}else if(t<70722){if(70720<=t&&t<=70721)return d.CLUSTER_BREAK.SPACINGMARK}else if(70722<=t&&t<=70724)return d.CLUSTER_BREAK.EXTEND}else if(t<70832){if(t<70726){if(t===70725)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70726||t===70750)return d.CLUSTER_BREAK.EXTEND}else if(t<70833){if(t===70832)return d.CLUSTER_BREAK.EXTEND}else if(t<70835){if(70833<=t&&t<=70834)return d.CLUSTER_BREAK.SPACINGMARK}else if(70835<=t&&t<=70840)return d.CLUSTER_BREAK.EXTEND}else if(t<71096){if(t<70847)if(t<70843){if(t===70841)return d.CLUSTER_BREAK.SPACINGMARK;if(t===70842)return d.CLUSTER_BREAK.EXTEND}else if(t<70845){if(70843<=t&&t<=70844)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===70845)return d.CLUSTER_BREAK.EXTEND;if(t===70846)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71087){if(t<70849){if(70847<=t&&t<=70848)return d.CLUSTER_BREAK.EXTEND}else if(t<70850){if(t===70849)return d.CLUSTER_BREAK.SPACINGMARK}else if(70850<=t&&t<=70851)return d.CLUSTER_BREAK.EXTEND}else if(t<71088){if(t===71087)return d.CLUSTER_BREAK.EXTEND}else if(t<71090){if(71088<=t&&t<=71089)return d.CLUSTER_BREAK.SPACINGMARK}else if(71090<=t&&t<=71093)return d.CLUSTER_BREAK.EXTEND}else if(t<71216){if(t<71102){if(t<71100){if(71096<=t&&t<=71099)return d.CLUSTER_BREAK.SPACINGMARK}else if(71100<=t&&t<=71101)return d.CLUSTER_BREAK.EXTEND}else if(t<71103){if(t===71102)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71132){if(71103<=t&&t<=71104)return d.CLUSTER_BREAK.EXTEND}else if(71132<=t&&t<=71133)return d.CLUSTER_BREAK.EXTEND}else if(t<71229){if(t<71219){if(71216<=t&&t<=71218)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71227){if(71219<=t&&t<=71226)return d.CLUSTER_BREAK.EXTEND}else if(71227<=t&&t<=71228)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71230){if(t===71229)return d.CLUSTER_BREAK.EXTEND}else if(t<71231){if(t===71230)return d.CLUSTER_BREAK.SPACINGMARK}else if(71231<=t&&t<=71232)return d.CLUSTER_BREAK.EXTEND}else if(t<71999)if(t<71463){if(t<71350){if(t<71341){if(t===71339)return d.CLUSTER_BREAK.EXTEND;if(t===71340)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71342){if(t===71341)return d.CLUSTER_BREAK.EXTEND}else if(t<71344){if(71342<=t&&t<=71343)return d.CLUSTER_BREAK.SPACINGMARK}else if(71344<=t&&t<=71349)return d.CLUSTER_BREAK.EXTEND}else if(t<71453){if(t===71350)return d.CLUSTER_BREAK.SPACINGMARK;if(t===71351)return d.CLUSTER_BREAK.EXTEND}else if(t<71458){if(71453<=t&&t<=71455)return d.CLUSTER_BREAK.EXTEND}else if(t<71462){if(71458<=t&&t<=71461)return d.CLUSTER_BREAK.EXTEND}else if(t===71462)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71984){if(t<71727){if(t<71724){if(71463<=t&&t<=71467)return d.CLUSTER_BREAK.EXTEND}else if(71724<=t&&t<=71726)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71736){if(71727<=t&&t<=71735)return d.CLUSTER_BREAK.EXTEND}else if(t<71737){if(t===71736)return d.CLUSTER_BREAK.SPACINGMARK}else if(71737<=t&&t<=71738)return d.CLUSTER_BREAK.EXTEND}else if(t<71995){if(t<71985){if(t===71984)return d.CLUSTER_BREAK.EXTEND}else if(t<71991){if(71985<=t&&t<=71989)return d.CLUSTER_BREAK.SPACINGMARK}else if(71991<=t&&t<=71992)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71997){if(71995<=t&&t<=71996)return d.CLUSTER_BREAK.EXTEND}else{if(t===71997)return d.CLUSTER_BREAK.SPACINGMARK;if(t===71998)return d.CLUSTER_BREAK.EXTEND}else if(t<72193)if(t<72145)if(t<72001){if(t===71999)return d.CLUSTER_BREAK.PREPEND;if(t===72e3)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72002){if(t===72001)return d.CLUSTER_BREAK.PREPEND}else{if(t===72002)return d.CLUSTER_BREAK.SPACINGMARK;if(t===72003)return d.CLUSTER_BREAK.EXTEND}else if(t<72156){if(t<72148){if(72145<=t&&t<=72147)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72154){if(72148<=t&&t<=72151)return d.CLUSTER_BREAK.EXTEND}else if(72154<=t&&t<=72155)return d.CLUSTER_BREAK.EXTEND}else if(t<72160){if(72156<=t&&t<=72159)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===72160)return d.CLUSTER_BREAK.EXTEND;if(t===72164)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72263){if(t<72249){if(t<72243){if(72193<=t&&t<=72202)return d.CLUSTER_BREAK.EXTEND}else if(72243<=t&&t<=72248)return d.CLUSTER_BREAK.EXTEND}else if(t<72250){if(t===72249)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72251){if(t===72250)return d.CLUSTER_BREAK.PREPEND}else if(72251<=t&&t<=72254)return d.CLUSTER_BREAK.EXTEND}else if(t<72281){if(t<72273){if(t===72263)return d.CLUSTER_BREAK.EXTEND}else if(t<72279){if(72273<=t&&t<=72278)return d.CLUSTER_BREAK.EXTEND}else if(72279<=t&&t<=72280)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72324){if(72281<=t&&t<=72283)return d.CLUSTER_BREAK.EXTEND}else if(t<72330){if(72324<=t&&t<=72329)return d.CLUSTER_BREAK.PREPEND}else if(72330<=t&&t<=72342)return d.CLUSTER_BREAK.EXTEND}else if(t<94033){if(t<73104){if(t<72881){if(t<72766){if(t<72751){if(t<72344){if(t===72343)return d.CLUSTER_BREAK.SPACINGMARK}else if(72344<=t&&t<=72345)return d.CLUSTER_BREAK.EXTEND}else if(t<72752){if(t===72751)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72760){if(72752<=t&&t<=72758)return d.CLUSTER_BREAK.EXTEND}else if(72760<=t&&t<=72765)return d.CLUSTER_BREAK.EXTEND}else if(t<72850){if(t===72766)return d.CLUSTER_BREAK.SPACINGMARK;if(t===72767)return d.CLUSTER_BREAK.EXTEND}else if(t<72873){if(72850<=t&&t<=72871)return d.CLUSTER_BREAK.EXTEND}else if(t<72874){if(t===72873)return d.CLUSTER_BREAK.SPACINGMARK}else if(72874<=t&&t<=72880)return d.CLUSTER_BREAK.EXTEND}else if(t<73018){if(t<72884){if(t<72882){if(t===72881)return d.CLUSTER_BREAK.SPACINGMARK}else if(72882<=t&&t<=72883)return d.CLUSTER_BREAK.EXTEND}else if(t<72885){if(t===72884)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73009){if(72885<=t&&t<=72886)return d.CLUSTER_BREAK.EXTEND}else if(73009<=t&&t<=73014)return d.CLUSTER_BREAK.EXTEND}else if(t<73030){if(t<73020){if(t===73018)return d.CLUSTER_BREAK.EXTEND}else if(t<73023){if(73020<=t&&t<=73021)return d.CLUSTER_BREAK.EXTEND}else if(73023<=t&&t<=73029)return d.CLUSTER_BREAK.EXTEND}else if(t<73031){if(t===73030)return d.CLUSTER_BREAK.PREPEND}else if(t<73098){if(t===73031)return d.CLUSTER_BREAK.EXTEND}else if(73098<=t&&t<=73102)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73526){if(t<73459)if(t<73109){if(t<73107){if(73104<=t&&t<=73105)return d.CLUSTER_BREAK.EXTEND}else if(73107<=t&&t<=73108)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73110){if(t===73109)return d.CLUSTER_BREAK.EXTEND}else{if(t===73110)return d.CLUSTER_BREAK.SPACINGMARK;if(t===73111)return d.CLUSTER_BREAK.EXTEND}else if(t<73474){if(t<73461){if(73459<=t&&t<=73460)return d.CLUSTER_BREAK.EXTEND}else if(t<73472){if(73461<=t&&t<=73462)return d.CLUSTER_BREAK.SPACINGMARK}else if(73472<=t&&t<=73473)return d.CLUSTER_BREAK.EXTEND}else if(t<73475){if(t===73474)return d.CLUSTER_BREAK.PREPEND}else if(t<73524){if(t===73475)return d.CLUSTER_BREAK.SPACINGMARK}else if(73524<=t&&t<=73525)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<78896)if(t<73536){if(t<73534){if(73526<=t&&t<=73530)return d.CLUSTER_BREAK.EXTEND}else if(73534<=t&&t<=73535)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73537){if(t===73536)return d.CLUSTER_BREAK.EXTEND}else{if(t===73537)return d.CLUSTER_BREAK.SPACINGMARK;if(t===73538)return d.CLUSTER_BREAK.EXTEND}else if(t<92912){if(t<78912){if(78896<=t&&t<=78911)return d.CLUSTER_BREAK.CONTROL}else if(t<78919){if(t===78912)return d.CLUSTER_BREAK.EXTEND}else if(78919<=t&&t<=78933)return d.CLUSTER_BREAK.EXTEND}else if(t<92976){if(92912<=t&&t<=92916)return d.CLUSTER_BREAK.EXTEND}else if(t<94031){if(92976<=t&&t<=92982)return d.CLUSTER_BREAK.EXTEND}else if(t===94031)return d.CLUSTER_BREAK.EXTEND}else if(t<121476){if(t<119143)if(t<113824){if(t<94180){if(t<94095){if(94033<=t&&t<=94087)return d.CLUSTER_BREAK.SPACINGMARK}else if(94095<=t&&t<=94098)return d.CLUSTER_BREAK.EXTEND}else if(t<94192){if(t===94180)return d.CLUSTER_BREAK.EXTEND}else if(t<113821){if(94192<=t&&t<=94193)return d.CLUSTER_BREAK.SPACINGMARK}else if(113821<=t&&t<=113822)return d.CLUSTER_BREAK.EXTEND}else if(t<118576){if(t<118528){if(113824<=t&&t<=113827)return d.CLUSTER_BREAK.CONTROL}else if(118528<=t&&t<=118573)return d.CLUSTER_BREAK.EXTEND}else if(t<119141){if(118576<=t&&t<=118598)return d.CLUSTER_BREAK.EXTEND}else{if(t===119141)return d.CLUSTER_BREAK.EXTEND;if(t===119142)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<119173){if(t<119150){if(t<119149){if(119143<=t&&t<=119145)return d.CLUSTER_BREAK.EXTEND}else if(t===119149)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<119155){if(119150<=t&&t<=119154)return d.CLUSTER_BREAK.EXTEND}else if(t<119163){if(119155<=t&&t<=119162)return d.CLUSTER_BREAK.CONTROL}else if(119163<=t&&t<=119170)return d.CLUSTER_BREAK.EXTEND}else if(t<121344){if(t<119210){if(119173<=t&&t<=119179)return d.CLUSTER_BREAK.EXTEND}else if(t<119362){if(119210<=t&&t<=119213)return d.CLUSTER_BREAK.EXTEND}else if(119362<=t&&t<=119364)return d.CLUSTER_BREAK.EXTEND}else if(t<121403){if(121344<=t&&t<=121398)return d.CLUSTER_BREAK.EXTEND}else if(t<121461){if(121403<=t&&t<=121452)return d.CLUSTER_BREAK.EXTEND}else if(t===121461)return d.CLUSTER_BREAK.EXTEND}else if(t<123628){if(t<122907){if(t<121505){if(t<121499){if(t===121476)return d.CLUSTER_BREAK.EXTEND}else if(121499<=t&&t<=121503)return d.CLUSTER_BREAK.EXTEND}else if(t<122880){if(121505<=t&&t<=121519)return d.CLUSTER_BREAK.EXTEND}else if(t<122888){if(122880<=t&&t<=122886)return d.CLUSTER_BREAK.EXTEND}else if(122888<=t&&t<=122904)return d.CLUSTER_BREAK.EXTEND}else if(t<123023){if(t<122915){if(122907<=t&&t<=122913)return d.CLUSTER_BREAK.EXTEND}else if(t<122918){if(122915<=t&&t<=122916)return d.CLUSTER_BREAK.EXTEND}else if(122918<=t&&t<=122922)return d.CLUSTER_BREAK.EXTEND}else if(t<123184){if(t===123023)return d.CLUSTER_BREAK.EXTEND}else if(t<123566){if(123184<=t&&t<=123190)return d.CLUSTER_BREAK.EXTEND}else if(t===123566)return d.CLUSTER_BREAK.EXTEND}else if(t<127995){if(t<125136){if(t<124140){if(123628<=t&&t<=123631)return d.CLUSTER_BREAK.EXTEND}else if(124140<=t&&t<=124143)return d.CLUSTER_BREAK.EXTEND}else if(t<125252){if(125136<=t&&t<=125142)return d.CLUSTER_BREAK.EXTEND}else if(t<127462){if(125252<=t&&t<=125258)return d.CLUSTER_BREAK.EXTEND}else if(127462<=t&&t<=127487)return d.CLUSTER_BREAK.REGIONAL_INDICATOR}else if(t<917632){if(t<917504){if(127995<=t&&t<=127999)return d.CLUSTER_BREAK.EXTEND}else if(t<917536){if(917504<=t&&t<=917535)return d.CLUSTER_BREAK.CONTROL}else if(917536<=t&&t<=917631)return d.CLUSTER_BREAK.EXTEND}else if(t<917760){if(917632<=t&&t<=917759)return d.CLUSTER_BREAK.CONTROL}else if(t<918e3){if(917760<=t&&t<=917999)return d.CLUSTER_BREAK.EXTEND}else if(918e3<=t&&t<=921599)return d.CLUSTER_BREAK.CONTROL;return d.CLUSTER_BREAK.OTHER}static getEmojiProperty(t){if(t<10160){if(t<9728){if(t<9e3){if(t<8482){if(t<8252){if(t===169||t===174)return d.EXTENDED_PICTOGRAPHIC}else if(t===8252||t===8265)return d.EXTENDED_PICTOGRAPHIC}else if(t<8596){if(t===8482||t===8505)return d.EXTENDED_PICTOGRAPHIC}else if(t<8617){if(8596<=t&&t<=8601)return d.EXTENDED_PICTOGRAPHIC}else if(t<8986){if(8617<=t&&t<=8618)return d.EXTENDED_PICTOGRAPHIC}else if(8986<=t&&t<=8987)return d.EXTENDED_PICTOGRAPHIC}else if(t<9410){if(t<9167){if(t===9e3||t===9096)return d.EXTENDED_PICTOGRAPHIC}else if(t<9193){if(t===9167)return d.EXTENDED_PICTOGRAPHIC}else if(t<9208){if(9193<=t&&t<=9203)return d.EXTENDED_PICTOGRAPHIC}else if(9208<=t&&t<=9210)return d.EXTENDED_PICTOGRAPHIC}else if(t<9654){if(t<9642){if(t===9410)return d.EXTENDED_PICTOGRAPHIC}else if(9642<=t&&t<=9643)return d.EXTENDED_PICTOGRAPHIC}else if(t<9664){if(t===9654)return d.EXTENDED_PICTOGRAPHIC}else if(t<9723){if(t===9664)return d.EXTENDED_PICTOGRAPHIC}else if(9723<=t&&t<=9726)return d.EXTENDED_PICTOGRAPHIC}else if(t<10035){if(t<10004){if(t<9748){if(t<9735){if(9728<=t&&t<=9733)return d.EXTENDED_PICTOGRAPHIC}else if(9735<=t&&t<=9746)return d.EXTENDED_PICTOGRAPHIC}else if(t<9872){if(9748<=t&&t<=9861)return d.EXTENDED_PICTOGRAPHIC}else if(t<9992){if(9872<=t&&t<=9989)return d.EXTENDED_PICTOGRAPHIC}else if(9992<=t&&t<=10002)return d.EXTENDED_PICTOGRAPHIC}else if(t<10013){if(t===10004||t===10006)return d.EXTENDED_PICTOGRAPHIC}else if(t<10017){if(t===10013)return d.EXTENDED_PICTOGRAPHIC}else if(t===10017||t===10024)return d.EXTENDED_PICTOGRAPHIC}else if(t<10067){if(t<10055){if(t<10052){if(10035<=t&&t<=10036)return d.EXTENDED_PICTOGRAPHIC}else if(t===10052)return d.EXTENDED_PICTOGRAPHIC}else if(t<10060){if(t===10055)return d.EXTENDED_PICTOGRAPHIC}else if(t===10060||t===10062)return d.EXTENDED_PICTOGRAPHIC}else if(t<10083){if(t<10071){if(10067<=t&&t<=10069)return d.EXTENDED_PICTOGRAPHIC}else if(t===10071)return d.EXTENDED_PICTOGRAPHIC}else if(t<10133){if(10083<=t&&t<=10087)return d.EXTENDED_PICTOGRAPHIC}else if(t<10145){if(10133<=t&&t<=10135)return d.EXTENDED_PICTOGRAPHIC}else if(t===10145)return d.EXTENDED_PICTOGRAPHIC}else if(t<127489){if(t<12951){if(t<11035){if(t<10548){if(t===10160||t===10175)return d.EXTENDED_PICTOGRAPHIC}else if(t<11013){if(10548<=t&&t<=10549)return d.EXTENDED_PICTOGRAPHIC}else if(11013<=t&&t<=11015)return d.EXTENDED_PICTOGRAPHIC}else if(t<11093){if(t<11088){if(11035<=t&&t<=11036)return d.EXTENDED_PICTOGRAPHIC}else if(t===11088)return d.EXTENDED_PICTOGRAPHIC}else if(t<12336){if(t===11093)return d.EXTENDED_PICTOGRAPHIC}else if(t===12336||t===12349)return d.EXTENDED_PICTOGRAPHIC}else if(t<127340){if(t<126976){if(t===12951||t===12953)return d.EXTENDED_PICTOGRAPHIC}else if(t<127245){if(126976<=t&&t<=127231)return d.EXTENDED_PICTOGRAPHIC}else if(t<127279){if(127245<=t&&t<=127247)return d.EXTENDED_PICTOGRAPHIC}else if(t===127279)return d.EXTENDED_PICTOGRAPHIC}else if(t<127374){if(t<127358){if(127340<=t&&t<=127345)return d.EXTENDED_PICTOGRAPHIC}else if(127358<=t&&t<=127359)return d.EXTENDED_PICTOGRAPHIC}else if(t<127377){if(t===127374)return d.EXTENDED_PICTOGRAPHIC}else if(t<127405){if(127377<=t&&t<=127386)return d.EXTENDED_PICTOGRAPHIC}else if(127405<=t&&t<=127461)return d.EXTENDED_PICTOGRAPHIC}else if(t<128981){if(t<127561){if(t<127535){if(t<127514){if(127489<=t&&t<=127503)return d.EXTENDED_PICTOGRAPHIC}else if(t===127514)return d.EXTENDED_PICTOGRAPHIC}else if(t<127538){if(t===127535)return d.EXTENDED_PICTOGRAPHIC}else if(t<127548){if(127538<=t&&t<=127546)return d.EXTENDED_PICTOGRAPHIC}else if(127548<=t&&t<=127551)return d.EXTENDED_PICTOGRAPHIC}else if(t<128326){if(t<128e3){if(127561<=t&&t<=127994)return d.EXTENDED_PICTOGRAPHIC}else if(128e3<=t&&t<=128317)return d.EXTENDED_PICTOGRAPHIC}else if(t<128640){if(128326<=t&&t<=128591)return d.EXTENDED_PICTOGRAPHIC}else if(t<128884){if(128640<=t&&t<=128767)return d.EXTENDED_PICTOGRAPHIC}else if(128884<=t&&t<=128895)return d.EXTENDED_PICTOGRAPHIC}else if(t<129198){if(t<129096){if(t<129036){if(128981<=t&&t<=129023)return d.EXTENDED_PICTOGRAPHIC}else if(129036<=t&&t<=129039)return d.EXTENDED_PICTOGRAPHIC}else if(t<129114){if(129096<=t&&t<=129103)return d.EXTENDED_PICTOGRAPHIC}else if(t<129160){if(129114<=t&&t<=129119)return d.EXTENDED_PICTOGRAPHIC}else if(129160<=t&&t<=129167)return d.EXTENDED_PICTOGRAPHIC}else if(t<129340){if(t<129292){if(129198<=t&&t<=129279)return d.EXTENDED_PICTOGRAPHIC}else if(129292<=t&&t<=129338)return d.EXTENDED_PICTOGRAPHIC}else if(t<129351){if(129340<=t&&t<=129349)return d.EXTENDED_PICTOGRAPHIC}else if(t<130048){if(129351<=t&&t<=129791)return d.EXTENDED_PICTOGRAPHIC}else if(130048<=t&&t<=131069)return d.EXTENDED_PICTOGRAPHIC;return d.CLUSTER_BREAK.OTHER}}z1.default=es;var T8=yn&&yn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(x3,"__esModule",{value:!0});const k8=T8(z1);var R8=x3.default=k8.default;const w8=new R8,Ea=_("text-offset");function fl(n,t){const e=eo(n);let r=0;for(let i=0;i<e.length;i++){const o=e[i],s=Zr(o);if(o===t){const l=r+s;return{start:r,end:l}}r+=s}p(Ea,!1,"can not find child in children")}function lr(n,t){p(Ea,t>=0,`invalid offset: ${t}`);const e=Yf(n,t),{prev:r,next:i,offset:o}=e;if(!r&&!i&&p(Ea,!1,"invalid offset, no prev & next child at offset"),r!==i)return!0;const s=r;if(p(Ea,s,"no child"),Rr(s))return p(Ea,o===0||o===1,`invalid box child offset: ${o}`),!0;const l=s.textContent;p(Ea,l,"no content for text child");const c=w8.splitGraphemes(l),f=new Set;let h=0;return c.forEach(C=>{f.add(h),h+=C.length}),f.add(h),!!f.has(o)}function dl(n,t){if(t===0)return 0;const e=t-1;if(lr(n,e))return e;let r=e-1;for(;!lr(n,r);)r-=1;return r}function ba(n,t){const e=Qf(n);if(p(Ea,t>=0&&t<=e,`invalid offset: ${t}, ${e}`),t===e)return e;const r=t+1;if(lr(n,r))return r;let i=r+1;for(;!lr(n,i);)i+=1;return i}const S8=_("line-offset");function Y1(n){const t=nd(n),e=[];let r=0;for(let i=0;i<t.length;i++){const o=t[i];e.push({start:r,end:o.offset}),r=o.offset}return e.push({start:r,end:Qf(n)}),e}function Hm(n,t){const e=Y1(n);return p(S8,t>=0&&t<e.length,`invalid line index: ${t}, ${e.length}`),e[t]}function v3(n,t){const{lineIndex:e}=j1(n,t);return Hm(n,e)}function L8(n){const t=Y1(n),e=n.getBoundingClientRect(),r=[];return t.forEach(({start:i,end:o})=>{const s=mt(n,i,"home");let l=wr(n,s);const c=mt(n,o,"end"),f=wr(n,c);l.top+l.height/2<f.top&&(l=new DOMRect(e.left-1e4,f.top,1,f.height));const h=new DOMRect(l.left,f.top,f.left-l.left,f.height),C=new DOMRect(e.left,f.top,e.width,f.height);r.push({start:i,end:o,rect:C,contentRect:h})}),r}function I8(n,t,e){const i=L8(n).find(s=>fa(s.rect,t,e));if(!i)return null;const o=i.contentRect;return t<=o.left+1?mt(n,i.start,"home"):t>=o.right-1?mt(n,i.end,"end"):null}function B3(n,t,e){const r=wr(n,t),i=wr(n,e),o=r.top+r.height/2,s=i.top+i.height/2,l=i.top<o&&o<i.bottom,c=r.top<s&&s<r.bottom;return l&&c}function y3(n){return Y1(n).length}const xa=_("find-text-position");function T3(n,t){const{start:e,end:r}=Hm(n,t),i=dt(n),o=wr(n,mt(i,e,"home"));if(!(wr(n,mt(i,r,"end")).top>o.top+o.height/2))return!1;const c=Yf(n,e);return p(xa,c.next,"no next child at offset"),p(xa,!Xf(c.next),"next child is not text child"),!0}function D8(n,t){const e=dt(n);p(xa,T3(n,t),"line is not wrapped");const{start:r,end:i}=Hm(n,t),o=mt(e,r,"home");for(let s=r+1;s<=i;s+=1){let l="normal";s===r?l="home":s===i&&(l="end");const c=mt(e,s,l);if(!B3(n,o,c))return s-1}return p(xa,!1,"failed to find wrapped offset"),0}function jm(n,t,e,r,i,o,s){p(xa,at(n,t),`not a text kind block: ${Tt(t)}`);const{start:l,end:c}=Hm(t,e);let f=l;const h=dt(t);if(t===r&&T3(t,e)){const w=D8(t,e);(o==="up"||o==="down"&&B3(t,i,mt(h,l,"home")))&&(f=w+1)}let C=Number.MAX_SAFE_INTEGER;const E=cl(n,r,i),b=s!=null?s:E.left+E.width/2,v=E.top+E.height/2;let k=mt(h,f,"home");for(let w=f;w<=c;w++){if(!lr(t,w))continue;let O="normal";w===l?O="home":w===c&&(O="end");const M=mt(h,w,O),F=wr(t,M),Z=il(F,b,v);Z<C&&(C=Z,k=M)}return k}function _8(n,t,e,r,i){return p(xa,at(n,t),"not a text block"),jm(n,t,y3(t)-1,e,r,"up",i)}function M8(n,t,e,r,i){return p(xa,at(n,t),"not a text block"),jm(n,t,0,e,r,"down",i)}function O8(n,t,e,r){const{lineIndex:i}=j1(t,e);if(i===y3(t)-1)return null;const o=jm(n,t,i+1,t,e,"down",r);return o||null}function U8(n,t){if(t.offset===0)return null;const e=nd(n),r=e.find(i=>i.offset===t.offset);if(!r){const i=dl(n,t.offset);return e.find(s=>s.offset===i)?{offset:i,type:"home"}:{offset:i,type:"normal"}}if(r.type==="betweenChild"){if(t.type==="home"&&r.childInfo.wrap==="nowrap")return{offset:t.offset,type:"end"};if(r.childInfo.prevWrapped)return{offset:dl(n,t.offset),type:"normal"}}return{offset:dl(n,t.offset),type:"normal"}}function N8(n,t){const e=Qf(n);if(t.offset===e)return null;const r=nd(n),i=r.find(o=>o.offset===t.offset);if(!i){const o=ba(n,t.offset),s=r.find(l=>l.offset===o);return s?s.type==="betweenChild"?{offset:o,type:"end"}:{offset:o,type:"home"}:{offset:o,type:"normal"}}return i.type==="betweenChild"?i.childInfo.wrap==="nowrap"&&t.type==="end"?{offset:t.offset,type:"home"}:{offset:ba(n,t.offset),type:"home"}:{offset:ba(n,t.offset),type:"normal"}}function P8(n,t,e,r){const{lineIndex:i}=j1(t,e);if(i===0)return null;const o=jm(n,t,i-1,t,e,"up",r);return o||null}const F8=_("move-caret");function K8(n,t,e,r){if(r==="ArrowLeft"){const i=U8(t,e);return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowRight"){const i=N8(t,e);return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowUp"){const i=P8(n,t,e,n.selection.getSuggestedCaretX());return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowDown"){const i=O8(n,t,e,n.selection.getSuggestedCaretX());return i?mt(dt(t),i.offset,i.type):null}p(F8,!1,`invalid navigation direction: ${r}`)}const J1=_("text-range");function k3(n){const t=[];return eo(n).forEach(r=>{const i=Array.from(r.getClientRects()).map(o=>({rect:o,child:r}));t.push(...i)}),t}function V8(n,t,e){const r=k3(n);for(let i=1;i<r.length;i++){const o=r[i-1],s=r[i];if(t>=o.rect.right&&t<=s.rect.left&&e>=o.rect.top&&e<=o.rect.bottom&&e>=s.rect.top&&e<=s.rect.bottom)return fl(n,s.child).start}return null}function $8(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=t.getBoundingClientRect(),s=k3(t);let l=e,c=r,f=o.left+o.width/2,h=o.top+o.height/2,C=f,E=h;s.forEach(Ct=>{f=Math.min(f,Ct.rect.left),h=Math.min(h,Ct.rect.top),C=Math.max(C,Ct.rect.right),E=Math.max(E,Ct.rect.bottom)}),l>=o.left&&l<f?l=f:l<=o.right&&l>C&&(l=C),c>=o.top&&c<h?c=h:c<=o.bottom&&c>E&&(c=E);const b=i.closest("div[data-type=block-content]>span");if(!b){const Ct=t.getBoundingClientRect();if(!fa(Ct,l,c))return null;const wt=V8(t,l,c);if(wt!==null){const oe=mt(t,wt,"normal");return new vn(n,{anchor:oe,focus:oe})}const kt=I8(t,l,c);return kt?new vn(n,{anchor:kt,focus:kt}):null}const v=eo(t);p(J1,v.indexOf(b)!==-1,"failed to find child in children");const k=fl(t,b);p(J1,k,"failed to get child offset");const{start:w}=k;let O,M;Jo(b)||Rr(b)?(O=w,M=0):(p(J1,b.firstChild instanceof Text,"child is not text"),O=w+sv(b.firstChild,l,c),M=0);const F=dt(t),Y=nd(t).find(Ct=>Ct.offset===O);let X="normal";if(Y){const Ct=mt(F,O,"home"),wt=mt(F,O,"end"),kt=wr(t,Ct),oe=wr(t,wt),ve=il(kt,l,c),fe=il(oe,l,c);X=ve<fe?"home":"end"}const ut=mt(F,O,X);let Et;return M&&(Et=mt(F,O+M,X)),new vn(n,{anchor:ut,focus:Et!=null?Et:ut})}const H8=_("create-text-op");function ti(n,t){p(H8,n,"text is empty");const e={insert:n};return t&&Object.keys(t).length>0&&(e.attributes=t),e}function Q1(n,t){if(n.length===0)return[];if(n.indexOf(`
16
16
  `)===-1)return[ti(n,t)];const e=n.replace(/\r\n/g,`
17
17
  `).replace(/\r/g,`
18
18
  `).replace(/\n/g," "),r=[];return e&&r.push(ti(e,t)),r}const zm=_("merge-ops");function Z1(n){if(n.length<=1)return n;const t=(i,o)=>i.insert===void 0||o.insert===void 0||i.delete!==void 0||o.delete!==void 0||i.retain!==void 0||o.retain!==void 0||i.attributes!==void 0&&o.attributes===void 0||i.attributes===void 0&&o.attributes!==void 0?!1:i.attributes===void 0?(p(zm,o.attributes===void 0,"op2.attributes is not undefined"),!0):(p(zm,i.attributes&&o.attributes,"op1.attributes && op2.attributes is undefined"),Sf.default(i.attributes,o.attributes)),e=[];let r=n[0];e.push(r);for(let i=1;i<n.length;i+=1){const o=n[i];t(r,o)?(p(zm,typeof r.insert=="string","before.insert is not string"),p(zm,typeof o.insert=="string","op.insert is not string"),r.insert+=o.insert):(e.push(o),r=o)}return e}function j8(n){let t;for(t=n.length-1;t>=0;t--){const e=n[t];if(!e.attributes||!e.attributes.box||e.attributes.type!=="br")break}return t===n.length-1?n:n.slice(0,t+1)}const R3=_("delete-text");function tC(n,t,e){const{left:r,right:i}=Cn(n,t,e),o=[...r,...i];return Z1(o)}function w3(n,t){p(R3,n>=0,`invalid offset: ${n}`),p(R3,t>=1,`invalid delete count: ${t}`);const e=[];return n!==0&&e.push({retain:n}),e.push({delete:t}),e}const S3=_("delta");function L3(n,t){const e=new Vn.default(n),r=new Vn.default(t);return e.diff(r).ops}function z8(n,t,e){return new Vn.default(t).transformPosition(n,!e)}function W8(n){p(S3,n,"ops is null or undefined");for(let t=0;t<n.length;t++){const e=n[t];if(e.insert===null||e.insert===void 0||e.retain!==void 0||e.delete!==void 0)return!1}return!0}function G8(n,t){const e=new Vn.default(n),r=new Vn.default(t);return e.compose(r).ops}class Hn{static ensureValidText(t){p(S3,W8(t),`text is not a valid text, ${JSON.stringify(t)}`)}static diff(t,e){return this.ensureValidText(t),this.ensureValidText(e),L3(t,e)}static transformCursor(t,e,r){return z8(t,e,r)}static transformOffset(t,e,r){const i=L3(t,e),o=new Vn.default(i);return r.map(s=>o.transformPosition(s))}static apply(t,e){this.ensureValidText(t);const r=G8(t,e);return this.ensureValidText(r),r}}const I3=_("insert-text");function ns(n,t,e,r){p(I3,e,`invalid text to insert: ${e}`);const{left:i,right:o}=sr(n,t),s=typeof e=="string"?[ti(e,r)]:e,l=[...i,...s,...o];return Z1(l)}function D3(n){return{insert:" ",attributes:n}}function Wm(n,t,e){if(p(I3,n>=0,`invalid offset: ${n}`),t.length===0)return[];const r=[];if(n>0&&r.push({retain:n}),typeof t!="string")return r.push(...t),r;const o={insert:t.replaceAll(`\r
@@ -646,7 +646,7 @@ __p += '`),ie&&(st+=`' +
646
646
  function print() { __p += __j.call(arguments, '') }
647
647
  `:`;
648
648
  `)+st+`return __p
649
- }`;var qt=sI(function(){return se(L,Rt+"return "+st).apply(e,P)});if(qt.source=st,_A(qt))throw qt;return qt}function Qst(a){return Ce(a).toLowerCase()}function Zst(a){return Ce(a).toUpperCase()}function tlt(a,u,g){if(a=Ce(a),a&&(g||u===e))return Ns(a);if(!a||!(u=Hr(u)))return a;var x=$r(a),y=$r(u),L=mc(x,y),P=qh(x,y)+1;return ra(x,L,P).join("")}function elt(a,u,g){if(a=Ce(a),a&&(g||u===e))return a.slice(0,Ef(a)+1);if(!a||!(u=Hr(u)))return a;var x=$r(a),y=qh(x,$r(u))+1;return ra(x,0,y).join("")}function nlt(a,u,g){if(a=Ce(a),a&&(g||u===e))return a.replace(Qa,"");if(!a||!(u=Hr(u)))return a;var x=$r(a),y=mc(x,$r(u));return ra(x,y).join("")}function rlt(a,u){var g=wt,x=kt;if(ze(u)){var y="separator"in u?u.separator:y;g="length"in u?Wt(u.length):g,x="omission"in u?Hr(u.omission):x}a=Ce(a);var L=a.length;if(Ps(a)){var P=$r(a);L=P.length}if(g>=L)return a;var V=g-Ql(x);if(V<1)return x;var H=P?ra(P,0,V).join(""):a.slice(0,V);if(y===e)return H+x;if(P&&(V+=H.length-V),MA(y)){if(a.slice(V).search(y)){var et,nt=H;for(y.global||(y=vf(y.source,Ce(Hl.exec(y))+"g")),y.lastIndex=0;et=y.exec(nt);)var st=et.index;H=H.slice(0,st===e?V:st)}}else if(a.indexOf(Hr(y),V)!=V){var xt=H.lastIndexOf(y);xt>-1&&(H=H.slice(0,xt))}return H+x}function ilt(a){return a=Ce(a),a&&ef.test(a)?a.replace(tf,bf):a}var olt=yf(function(a,u,g){return a+(g?" ":"")+u.toUpperCase()}),NA=l6("toUpperCase");function oI(a,u,g){return a=Ce(a),u=g?e:u,u===e?gf(a)?ap(a):re(a):a.match(u)||[]}var sI=Xt(function(a,u){try{return Pn(a,e,u)}catch(g){return _A(g)?g:new Pt(g)}}),slt=Js(function(a,u){return Gn(u,function(g){g=$o(g),Xs(a,g,IA(a[g],a))}),a});function llt(a){var u=a==null?0:a.length,g=Dt();return a=u?ht(a,function(x){if(typeof x[1]!="function")throw new nr(s);return[g(x[0]),x[1]]}):[],Xt(function(x){for(var y=-1;++y<u;){var L=a[y];if(Pn(L[0],this,x))return Pn(L[1],this,x)}})}function alt(a){return _nt(mi(a,C))}function PA(a){return function(){return a}}function clt(a,u){return a==null||a!==a?u:a}var ult=c6(),flt=c6(!0);function yr(a){return a}function FA(a){return FL(typeof a=="function"?a:mi(a,C))}function dlt(a){return VL(mi(a,C))}function hlt(a,u){return $L(a,mi(u,C))}var mlt=Xt(function(a,u){return function(g){return im(g,a,u)}}),glt=Xt(function(a,u){return function(g){return im(a,g,u)}});function KA(a,u,g){var x=Ln(u),y=bp(u,x);g==null&&!(ze(u)&&(y.length||!x.length))&&(g=u,u=a,a=this,y=bp(u,Ln(u)));var L=!(ze(g)&&"chain"in g)||!!g.chain,P=Zs(a);return Gn(y,function(V){var H=u[V];a[V]=H,P&&(a.prototype[V]=function(){var et=this.__chain__;if(L||et){var nt=a(this.__wrapped__),st=nt.__actions__=Ar(this.__actions__);return st.push({func:H,args:arguments,thisArg:a}),nt.__chain__=et,nt}return H.apply(a,Ht([this.value()],arguments))})}),a}function plt(){return Ye._===this&&(Ye._=up),this}function VA(){}function Clt(a){return a=Wt(a),Xt(function(u){return HL(u,a)})}var Elt=EA(ht),blt=EA(N),xlt=EA(Le);function lI(a){return TA(a)?Wi($o(a)):Ynt(a)}function Alt(a){return function(u){return a==null?e:Dc(a,u)}}var vlt=f6(),Blt=f6(!0);function $A(){return[]}function HA(){return!1}function ylt(){return{}}function Tlt(){return""}function klt(){return!0}function Rlt(a,u){if(a=Wt(a),a<1||a>Tn)return[];var g=pr,x=U(a,pr);u=Dt(u),a-=pr;for(var y=mf(x,u);++g<a;)u(g);return y}function wlt(a){return Vt(a)?ht(a,$o):jr(a)?[a]:Ar(R6(Ce(a)))}function Slt(a){var u=++cp;return Ce(a)+u}var Llt=Tp(function(a,u){return a+u},0),Ilt=bA("ceil"),Dlt=Tp(function(a,u){return a/u},1),_lt=bA("floor");function Mlt(a){return a&&a.length?Ep(a,yr,iA):e}function Olt(a,u){return a&&a.length?Ep(a,Dt(u,2),iA):e}function Ult(a){return Us(a,yr)}function Nlt(a,u){return Us(a,Dt(u,2))}function Plt(a){return a&&a.length?Ep(a,yr,aA):e}function Flt(a,u){return a&&a.length?Ep(a,Dt(u,2),aA):e}var Klt=Tp(function(a,u){return a*u},1),Vlt=bA("round"),$lt=Tp(function(a,u){return a-u},0);function Hlt(a){return a&&a.length?hf(a,yr):0}function jlt(a,u){return a&&a.length?hf(a,Dt(u,2)):0}return S.after=dot,S.ary=P6,S.assign=Zot,S.assignIn=Q6,S.assignInWith=Pp,S.assignWith=tst,S.at=est,S.before=F6,S.bind=IA,S.bindAll=slt,S.bindKey=K6,S.castArray=yot,S.chain=O6,S.chunk=_rt,S.compact=Mrt,S.concat=Ort,S.cond=llt,S.conforms=alt,S.constant=PA,S.countBy=Hit,S.create=nst,S.curry=V6,S.curryRight=$6,S.debounce=H6,S.defaults=rst,S.defaultsDeep=ist,S.defer=hot,S.delay=mot,S.difference=Urt,S.differenceBy=Nrt,S.differenceWith=Prt,S.drop=Frt,S.dropRight=Krt,S.dropRightWhile=Vrt,S.dropWhile=$rt,S.fill=Hrt,S.filter=zit,S.flatMap=qit,S.flatMapDeep=Xit,S.flatMapDepth=Yit,S.flatten=I6,S.flattenDeep=jrt,S.flattenDepth=zrt,S.flip=got,S.flow=ult,S.flowRight=flt,S.fromPairs=Wrt,S.functions=fst,S.functionsIn=dst,S.groupBy=Jit,S.initial=qrt,S.intersection=Xrt,S.intersectionBy=Yrt,S.intersectionWith=Jrt,S.invert=mst,S.invertBy=gst,S.invokeMap=Zit,S.iteratee=FA,S.keyBy=tot,S.keys=Ln,S.keysIn=Br,S.map=Dp,S.mapKeys=Cst,S.mapValues=Est,S.matches=dlt,S.matchesProperty=hlt,S.memoize=Mp,S.merge=bst,S.mergeWith=Z6,S.method=mlt,S.methodOf=glt,S.mixin=KA,S.negate=Op,S.nthArg=Clt,S.omit=xst,S.omitBy=Ast,S.once=pot,S.orderBy=eot,S.over=Elt,S.overArgs=Cot,S.overEvery=blt,S.overSome=xlt,S.partial=DA,S.partialRight=j6,S.partition=not,S.pick=vst,S.pickBy=tI,S.property=lI,S.propertyOf=Alt,S.pull=eit,S.pullAll=_6,S.pullAllBy=nit,S.pullAllWith=rit,S.pullAt=iit,S.range=vlt,S.rangeRight=Blt,S.rearg=Eot,S.reject=oot,S.remove=oit,S.rest=bot,S.reverse=SA,S.sampleSize=lot,S.set=yst,S.setWith=Tst,S.shuffle=aot,S.slice=sit,S.sortBy=fot,S.sortedUniq=hit,S.sortedUniqBy=mit,S.split=qst,S.spread=xot,S.tail=git,S.take=pit,S.takeRight=Cit,S.takeRightWhile=Eit,S.takeWhile=bit,S.tap=Mit,S.throttle=Aot,S.thru=Ip,S.toArray=X6,S.toPairs=eI,S.toPairsIn=nI,S.toPath=wlt,S.toPlainObject=J6,S.transform=kst,S.unary=vot,S.union=xit,S.unionBy=Ait,S.unionWith=vit,S.uniq=Bit,S.uniqBy=yit,S.uniqWith=Tit,S.unset=Rst,S.unzip=LA,S.unzipWith=M6,S.update=wst,S.updateWith=Sst,S.values=Rf,S.valuesIn=Lst,S.without=kit,S.words=oI,S.wrap=Bot,S.xor=Rit,S.xorBy=wit,S.xorWith=Sit,S.zip=Lit,S.zipObject=Iit,S.zipObjectDeep=Dit,S.zipWith=_it,S.entries=eI,S.entriesIn=nI,S.extend=Q6,S.extendWith=Pp,KA(S,S),S.add=Llt,S.attempt=sI,S.camelCase=Mst,S.capitalize=rI,S.ceil=Ilt,S.clamp=Ist,S.clone=Tot,S.cloneDeep=Rot,S.cloneDeepWith=wot,S.cloneWith=kot,S.conformsTo=Sot,S.deburr=iI,S.defaultTo=clt,S.divide=Dlt,S.endsWith=Ost,S.eq=Yi,S.escape=Ust,S.escapeRegExp=Nst,S.every=jit,S.find=Wit,S.findIndex=S6,S.findKey=ost,S.findLast=Git,S.findLastIndex=L6,S.findLastKey=sst,S.floor=_lt,S.forEach=U6,S.forEachRight=N6,S.forIn=lst,S.forInRight=ast,S.forOwn=cst,S.forOwnRight=ust,S.get=OA,S.gt=Lot,S.gte=Iot,S.has=hst,S.hasIn=UA,S.head=D6,S.identity=yr,S.includes=Qit,S.indexOf=Grt,S.inRange=Dst,S.invoke=pst,S.isArguments=Oc,S.isArray=Vt,S.isArrayBuffer=Dot,S.isArrayLike=vr,S.isArrayLikeObject=sn,S.isBoolean=_ot,S.isBuffer=ia,S.isDate=Mot,S.isElement=Oot,S.isEmpty=Uot,S.isEqual=Not,S.isEqualWith=Pot,S.isError=_A,S.isFinite=Fot,S.isFunction=Zs,S.isInteger=z6,S.isLength=Up,S.isMap=W6,S.isMatch=Kot,S.isMatchWith=Vot,S.isNaN=$ot,S.isNative=Hot,S.isNil=zot,S.isNull=jot,S.isNumber=G6,S.isObject=ze,S.isObjectLike=Qe,S.isPlainObject=um,S.isRegExp=MA,S.isSafeInteger=Wot,S.isSet=q6,S.isString=Np,S.isSymbol=jr,S.isTypedArray=kf,S.isUndefined=Got,S.isWeakMap=qot,S.isWeakSet=Xot,S.join=Qrt,S.kebabCase=Pst,S.last=pi,S.lastIndexOf=Zrt,S.lowerCase=Fst,S.lowerFirst=Kst,S.lt=Yot,S.lte=Jot,S.max=Mlt,S.maxBy=Olt,S.mean=Ult,S.meanBy=Nlt,S.min=Plt,S.minBy=Flt,S.stubArray=$A,S.stubFalse=HA,S.stubObject=ylt,S.stubString=Tlt,S.stubTrue=klt,S.multiply=Klt,S.nth=tit,S.noConflict=plt,S.noop=VA,S.now=_p,S.pad=Vst,S.padEnd=$st,S.padStart=Hst,S.parseInt=jst,S.random=_st,S.reduce=rot,S.reduceRight=iot,S.repeat=zst,S.replace=Wst,S.result=Bst,S.round=Vlt,S.runInContext=$,S.sample=sot,S.size=cot,S.snakeCase=Gst,S.some=uot,S.sortedIndex=lit,S.sortedIndexBy=ait,S.sortedIndexOf=cit,S.sortedLastIndex=uit,S.sortedLastIndexBy=fit,S.sortedLastIndexOf=dit,S.startCase=Xst,S.startsWith=Yst,S.subtract=$lt,S.sum=Hlt,S.sumBy=jlt,S.template=Jst,S.times=Rlt,S.toFinite=tl,S.toInteger=Wt,S.toLength=Y6,S.toLower=Qst,S.toNumber=Ci,S.toSafeInteger=Qot,S.toString=Ce,S.toUpper=Zst,S.trim=tlt,S.trimEnd=elt,S.trimStart=nlt,S.truncate=rlt,S.unescape=ilt,S.uniqueId=Slt,S.upperCase=olt,S.upperFirst=NA,S.each=U6,S.eachRight=N6,S.first=D6,KA(S,function(){var a={};return Ko(S,function(u,g){le.call(S.prototype,g)||(a[g]=u)}),a}(),{chain:!1}),S.VERSION=r,Gn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){S[a].placeholder=S}),Gn(["drop","take"],function(a,u){Jt.prototype[a]=function(g){g=g===e?1:I(Wt(g),0);var x=this.__filtered__&&!u?new Jt(this):this.clone();return x.__filtered__?x.__takeCount__=U(g,x.__takeCount__):x.__views__.push({size:U(g,pr),type:a+(x.__dir__<0?"Right":"")}),x},Jt.prototype[a+"Right"]=function(g){return this.reverse()[a](g).reverse()}}),Gn(["filter","map","takeWhile"],function(a,u){var g=u+1,x=g==fe||g==mr;Jt.prototype[a]=function(y){var L=this.clone();return L.__iteratees__.push({iteratee:Dt(y,3),type:g}),L.__filtered__=L.__filtered__||x,L}}),Gn(["head","last"],function(a,u){var g="take"+(u?"Right":"");Jt.prototype[a]=function(){return this[g](1).value()[0]}}),Gn(["initial","tail"],function(a,u){var g="drop"+(u?"":"Right");Jt.prototype[a]=function(){return this.__filtered__?new Jt(this):this[g](1)}}),Jt.prototype.compact=function(){return this.filter(yr)},Jt.prototype.find=function(a){return this.filter(a).head()},Jt.prototype.findLast=function(a){return this.reverse().find(a)},Jt.prototype.invokeMap=Xt(function(a,u){return typeof a=="function"?new Jt(this):this.map(function(g){return im(g,a,u)})}),Jt.prototype.reject=function(a){return this.filter(Op(Dt(a)))},Jt.prototype.slice=function(a,u){a=Wt(a);var g=this;return g.__filtered__&&(a>0||u<0)?new Jt(g):(a<0?g=g.takeRight(-a):a&&(g=g.drop(a)),u!==e&&(u=Wt(u),g=u<0?g.dropRight(-u):g.take(u-a)),g)},Jt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Jt.prototype.toArray=function(){return this.take(pr)},Ko(Jt.prototype,function(a,u){var g=/^(?:filter|find|map|reject)|While$/.test(u),x=/^(?:head|last)$/.test(u),y=S[x?"take"+(u=="last"?"Right":""):u],L=x||/^find/.test(u);!y||(S.prototype[u]=function(){var P=this.__wrapped__,V=x?[1]:arguments,H=P instanceof Jt,et=V[0],nt=H||Vt(P),st=function(Zt){var ie=y.apply(S,Ht([Zt],V));return x&&xt?ie[0]:ie};nt&&g&&typeof et=="function"&&et.length!=1&&(H=nt=!1);var xt=this.__chain__,Rt=!!this.__actions__.length,Mt=L&&!xt,qt=H&&!Rt;if(!L&&nt){P=qt?P:new Jt(this);var Ot=a.apply(P,V);return Ot.__actions__.push({func:Ip,args:[st],thisArg:e}),new xr(Ot,xt)}return Mt&&qt?a.apply(this,V):(Ot=this.thru(st),Mt?x?Ot.value()[0]:Ot.value():Ot)})}),Gn(["pop","push","shift","sort","splice","unshift"],function(a){var u=Ec[a],g=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",x=/^(?:pop|shift)$/.test(a);S.prototype[a]=function(){var y=arguments;if(x&&!this.__chain__){var L=this.value();return u.apply(Vt(L)?L:[],y)}return this[g](function(P){return u.apply(Vt(P)?P:[],y)})}}),Ko(Jt.prototype,function(a,u){var g=S[u];if(g){var x=g.name+"";le.call(Fn,x)||(Fn[x]=[]),Fn[x].push({name:u,func:g})}}),Fn[yp(e,O).name]=[{name:"wrapper",func:e}],Jt.prototype.clone=int,Jt.prototype.reverse=ont,Jt.prototype.value=snt,S.prototype.at=Oit,S.prototype.chain=Uit,S.prototype.commit=Nit,S.prototype.next=Pit,S.prototype.plant=Kit,S.prototype.reverse=Vit,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=$it,S.prototype.first=S.prototype.head,Tc&&(S.prototype[Tc]=Fit),S},Vs=Af();ui?((ui.exports=Vs)._=Vs,ac._=Vs):Ye._=Vs}).call(yn)})(fr,fr.exports);const lR=fr.exports;function hV(n,t,e,r){H0(n,{className:"status-input",defaultValue:t,onChange:e,onKeyDown:r,maxLength:32})}const Cb=["Blue","Grey","Yellow","Red","Green","Purple"];function mV(){const n=B("div",["status-color-palette"],null);for(const t of Cb){const e=B("button",["status-box-button"],null);e.setAttribute("data-color",fr.exports.lowerCase(t)),e.setAttribute("title",D.t(`status.color.${fr.exports.lowerCase(t)}`)),n.appendChild(e)}return n}class gV{constructor(){m(this,"root",mV());m(this,"changeColor",t=>{for(const r of Array.from(this.root.querySelectorAll(":scope > button")))r.classList.remove("selected");const e=this.root.querySelector(`button[data-color="${fr.exports.lowerCase(t)}"]`);e==null||e.classList.add("selected")})}}function aR(n){localStorage.setItem(`statusBox.lastColor.${fr.exports.lowerCase(n.color)}`,n.title)}function cR(n){var t;return(t=localStorage.getItem(`statusBox.lastColor.${fr.exports.lowerCase(n)}`))!=null?t:D.t(`status.colorDefaultTitle.${fr.exports.lowerCase(n)}`)}function uR(){var i;const n=Cb[0],t=(i=cR(n))!=null?i:D.t(`status.colorDefaultTitle.${fr.exports.lowerCase(n)}`);return{insert:" ",attributes:{id:rt(),type:"status",box:!0,title:t,subtle:!0,created:Date.now(),color:n}}}const gg=_("StatusBoxEditor");class Eb{constructor(t){m(this,"linkPopup",null);m(this,"boxElement");m(this,"statusPalette",new gV);m(this,"isEditing",!1);m(this,"editorStatus",t=>{if(!this.editor.isWritable())return;const e=this.editor.getBoxData(t);this.linkPopup=new mu(this.createPopupContent(e.title,e.color,e.subtle),{id:"status-box-popup"}),this.linkPopup.on("show",this.handleShow),this.linkPopup.on("close",this.handClose),this.linkPopup.manualShow(t,{theme:"light",placement:"bottom-start",offset:[5,5]}),this.boxElement=t});m(this,"handleShow",()=>{this.focus()});m(this,"handClose",()=>{var r;p(gg,this.boxElement,"boxElement not found");const t=this.editor.getBoxData(this.boxElement),e=Q(this.boxElement);if(p(gg,e,"block not found"),t.title)if(t.title.length>32){const i=t.title.slice(0,32),o={...t,title:i};this.editor.updateBoxData(o,{noFocus:!0}),aR(o)}else aR(t);else{const i=fl(e,this.boxElement);this.editor.deleteTextFromBlock(e,i.start,1)}this.editor.focus(),(r=this.linkPopup)==null||r.destroy(),this.linkPopup=null,this.boxElement=void 0,this.isEditing=!1});m(this,"handleKeyDown",(t,e)=>{var r;e||t.key==="Enter"&&((r=this.linkPopup)==null||r.close(null))});m(this,"onColorChange",t=>{var o,s;if(!(t.target instanceof HTMLElement)||t.target.closest("[data-color]")===null)return;const e=fr.exports.capitalize(t.target.getAttribute("data-color"));p(gg,this.boxElement,"boxElement not found");const r=this.editor.getBoxData(this.boxElement);this.statusPalette.changeColor(e);const i={...r,color:e};if(!this.isEditing){const l=(s=(o=this.linkPopup)==null?void 0:o.popper)==null?void 0:s.querySelector("input"),c=cR(e);l&&(l.value=c),i.title=c}this.editor.updateBoxData(i,{noFocus:!0}),this.focus()});m(this,"onTitleChange",t=>{const e=t.target.value;p(gg,this.boxElement,"boxElement not found");const i={...this.editor.getBoxData(this.boxElement),title:e.trim()};this.editor.updateBoxData(i,{noFocus:!0}),this.isEditing=!0});this.editor=t,this.statusPalette.root.addEventListener("click",this.onColorChange)}focus(){setTimeout(()=>{var t,e,r,i,o,s;(r=(e=(t=this.linkPopup)==null?void 0:t.popper)==null?void 0:e.querySelector("input"))==null||r.focus(),(s=(o=(i=this.linkPopup)==null?void 0:i.popper)==null?void 0:o.querySelector("input"))==null||s.select()},100)}createPopupContent(t,e,r){const i=B("div",["status-box-editor-popup"],null);return hV(i,t,this.onTitleChange,this.handleKeyDown),this.isEditing=!1,i.appendChild(this.statusPalette.root),this.statusPalette.changeColor(e),i}destroy(){var t;(t=this.linkPopup)==null||t.destroy()}}const Sct="";class fR{constructor(t){m(this,"onMouseOver",t=>{const e=t.target;if(e.hasAttribute("data-editor-overflow-tooltip"))if(this.check(e)){const r=e.getAttribute("data-editor-overflow-tooltip");e.setAttribute(`data-editor-tooltip-${this.editor.clientId}`,r)}else e.removeAttribute(`data-editor-tooltip-${this.editor.clientId}`)});this.editor=t,this.editor.rootContainer.addEventListener("mouseover",this.onMouseOver)}check(t){return t.scrollWidth>t.offsetWidth}destroy(){this.editor.rootContainer.removeEventListener("mouseover",this.onMouseOver)}static create(t,e){const r=B("a",t,null,this.replaceTitleSpace(e));return r.setAttribute("data-editor-overflow-tooltip",this.replaceTitleSpace(e)),r}static replaceTitleSpace(t){return t.replace(/\s/g,"\xA0")}}function pV(n,t,e,r){const i=r,{title:o,subtle:s,color:l}=i,c=s?["box-status-common",`box-status-${fr.exports.lowerCase(l)}`]:["box-status-common",`box-status-${fr.exports.lowerCase(l)}-subtle`];o||c.push("box-status-empty");const f=fR.create(c,o||D.t("status.empty"));e.appendChild(f),n.addCustom("status-box-overflow-tooltip",h=>new fR(h)),n.addCustom("status-box",h=>new Eb(h))}function CV(n,t){var r;return{abstract:(r=n.getBoxData(t).title)!=null?r:""}}function EV(n,t){n.getCustom("status-box").editorStatus(t)}function bV(n,t){const{title:e}=t;return e!=null?e:""}async function xV(n,t){var s;const{title:e,color:r}=t,i=Cb.indexOf(r),o=[4,6,2,0,3,5];return[{insert:e!=null?e:"",attributes:{[`style-color-${(s=o[i])!=null?s:4}`]:!0}}]}function AV(n,t,e){return t.title.toLowerCase().indexOf(e)>=0}const dR={boxType:"status",updateBoxContent:pV,getBoxProperties:CV,handleClickBox:EV,convertTo:bV,toStandardText:xV,matchText:AV},vV=_("status-box-command");class Lu{static get commands(){return[{id:this.id,name:D.t("status.command.name"),icon:_2,order:650,group:"common",subText:"/status"}]}static insertStatus(t,e,r){var c;const i=t.getBlockByIndex(e,r),o=uR(),{start:s}=t.selection.range;p(vV,Ti(s),"invalid block position"),t.insertBoxToBlock(i,s.offset,o.attributes);const l=t.getBoxById((c=o.attributes)==null?void 0:c.id);t.addCustom("status-box",f=>new Eb(f)).editorStatus(l)}static insertEmptyBlockStatus(t,e,r){var l;let i=t.getBlockByIndex(e,r);(!i||!Te(t,i))&&(i=t.insertTextBlock([],e,r));const o=uR();t.setBlockText(i,[o]);const s=t.getBoxById((l=o.attributes)==null?void 0:l.id);return t.addCustom("status-box",c=>new Eb(c)).editorStatus(s),i}}m(Lu,"id","insert-status");const BV={"en-US":{status:{empty:"Set status",command:{name:"Status"},color:{red:"Red",yellow:"Yellow",green:"Green",blue:"Blue",purple:"Purple",grey:"Gray"},colorDefaultTitle:{red:"Delayed",yellow:"In progress",green:"Done",blue:"Not started",purple:"To be confirmed",grey:"Paused"}}},"zh-CN":{status:{empty:"\u8BBE\u7F6E\u72B6\u6001",command:{name:"\u72B6\u6001"},color:{red:"\u7EA2\u8272",yellow:"\u9EC4\u8272",green:"\u7EFF\u8272",blue:"\u84DD\u8272",purple:"\u7D2B\u8272",grey:"\u7070\u8272"},colorDefaultTitle:{red:"\u5DF2\u5EF6\u671F",yellow:"\u8FDB\u884C\u4E2D",green:"\u5DF2\u5B8C\u6210",blue:"\u672A\u5F00\u59CB",purple:"\u5F85\u786E\u8BA4",grey:"\u5DF2\u6682\u505C"}}},"ja-JP":{status:{empty:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8A2D\u5B9A",command:{name:"\u30B9\u30C6\u30FC\u30BF\u30B9"},color:{red:"\u8D64",yellow:"\u9EC4",green:"\u7EFF",blue:"\u9752",purple:"\u7D2B",grey:"\u7070"},colorDefaultTitle:{red:"\u9045\u5EF6",yellow:"\u9032\u884C\u4E2D",green:"\u5B8C\u4E86",blue:"\u672A\u7740\u624B",purple:"\u672A\u78BA\u8A8D",grey:"\u4E00\u6642\u505C\u6B62"}}}};D.mergeLang(BV);const Da=_("inline-box-items");function yV(n,t,e){return n.undoManager.runInGroup(()=>{var s;let r=n.findBlockByIndex(t,e);(!r||!Te(n,r))&&(r=n.insertTextBlock([],t,e));const i=iR();n.setBlockText(r,[i]);const o=(s=i.attributes)==null?void 0:s.id;return p(Da,o,"mathjax box id is empty"),setTimeout(()=>{const l=n.getBoxById(o);mg(n,l)},100),r})}function TV(n,t,e){let r=n.findBlockByIndex(t,e),i="bottom-start";return(!r||!Te(n,r))&&(i="top-start",r=n.insertTextBlock([],t,e)),$d(n,{target:r,linkText:"",linkUrl:"",onFinished:(l,c)=>{n.undoManager.runInGroup(()=>{try{p(Da,r,"block not found"),Te(n,r)||(r=n.insertTextBlock([],t,e));const f=ti(l,{link:c}),h=ti(" ",null),C=[f,h];n.insertTextToBlock(r,0,C),n.selection.selectBlock(r,$n(C)),n.focus()}catch(f){Da.error(f)}})},onClose:()=>{n.focus()},placement:i}),r}function kV(n,t,e){return n.undoManager.runInGroup(()=>{var l;const r=n.getBlockByIndex(t,e),i=n.selection.range;p(Da,Ti(i.start),"invalid block position");const o=iR();n.insertBoxToBlock(r,i.start.offset,o.attributes);const s=(l=o.attributes)==null?void 0:l.id;return p(Da,s,"mathjax box id is empty"),setTimeout(()=>{const c=n.getBoxById(s);mg(n,c)},100),r})}function RV(n,t,e){const r=n.getBlockByIndex(t,e),i=n.selection.range;p(Da,Ti(i.start),"invalid block position");const o=qo(n,r,i);if(o.length===0)return;const s=o[0],l=Qo(n,r,"quick-menu-inline-link",s);$d(n,{target:l,linkText:"",linkUrl:"",onFinished:(h,C)=>{n.undoManager.runInGroup(()=>{try{const E=n.getBlockText(r),b=ns(E,i.start.offset,h,{link:C});n.setBlockText(r,b),n.selection.selectBlock(r,i.start.offset+h.length),n.focus()}catch(E){Da.error(E)}})},onClose:()=>{n.focus()},placement:"bottom-start"})}class hR{getCommands(){return[{id:"insert-math",name:D.t("quickMenu.inlineBox.math"),icon:YT,order:900,group:"common",subText:Qn("insert-math")},{id:"insert-link",name:D.t("quickMenu.inlineBox.link"),icon:gE,order:400,group:"common",subText:Qn("insert-link")},...Lu.commands]}async handleUpdateBlockCore(t,e){switch(e.item.id){case"insert-math":return kV(t,e.containerId,e.blockIndex);case"insert-link":return RV(t,e.containerId,e.blockIndex);case Lu.id:return Lu.insertStatus(t,e.containerId,e.blockIndex);default:return null}}async handleInsertEmptyBlockCore(t,e){switch(e.item.id){case"insert-math":return yV(t,e.containerId,e.blockIndex);case"insert-link":return TV(t,e.containerId,e.blockIndex);case Lu.id:return Lu.insertEmptyBlockStatus(t,e.containerId,e.blockIndex);default:return null}}async executeCommand(t,e,r){if(r.from==="quick-menu"||r.from==="add-block-menu"){const i=t.getBlockById(r.blockId),o=t.getParentContainer(i),s=ft(o),l=t.getBlockIndex(i);t.undoManager.runInGroup(()=>this.handleUpdateBlockCore(t,{item:e,containerId:s,blockIndex:l}))}else r.from==="block-menu"&&t.undoManager.runInGroup(()=>this.handleInsertEmptyBlockCore(t,{item:e,containerId:r.containerId,blockIndex:r.blockIndex}));return null}}const mR=(n,t)=>{var e;return(e=n.children)==null?void 0:e.map(r=>({...r,itemType:"insert-block",commandProvider:t,children:mR(r,t)}))};function wV(n,t){var o,s;const{withPlainText:e}=t,r=(s=(o=n.options.componentsOptions)==null?void 0:o.quickMenu)==null?void 0:s.commandProviders;if(!r)return[];const i=[];return[...r,new Jk(e),new hR].forEach(l=>{const c=l.getCommands(n,t);i.push(...c.map(f=>({...f,itemType:"insert-block",commandProvider:l,children:mR(f,l)})))}),i}function SV(n,t,e){const r=[];return n.editorBlocks.forEach(i=>{if(!i.getOptions)return;const o=i.getOptions(n);!o.insertBlockCommandItems||(o.insertBlockCommandItems.forEach(s=>{Yk(s,o,i.blockType)}),r.push(...o.insertBlockCommandItems))}),r.push(...wV(n,e)),e.ignoreFilter?r:r.filter(i=>{var o,s;return(s=(o=i.shouldShown)==null?void 0:o.call(i,t,e.type))!=null?s:!0})}function bb(n,t,e){const r=SV(n,t,e),i=new Map;r.forEach(l=>{var h,C;const c=(h=l.group)!=null?h:"";let f=i.get(c);f?f.items.push(l):(f={group:c,order:l.groupOrder||Qk[c]||1e3,items:[l],hide:(C=l.hideGroupItem)!=null?C:!1},i.set(c,f))});const o=Array.from(i.values());o.sort((l,c)=>l.order-c.order),o.forEach(l=>{l.items.sort((c,f)=>{var h,C;return((h=c.order)!=null?h:0)-((C=f.order)!=null?C:0)})});const s=[];return o.forEach((l,c)=>{const f=`blockMenu.section.${l.group||"common"}`,h=D.t(f),C=h===f?l.group:h;l.hide||s.push({id:`section-${c}`,name:C,type:"section",group:l.group,itemType:"insert-block"}),s.push(...l.items.map(E=>({...E})))}),s}function LV(n,t,e){var h;const r=n.getFocusedBlock();if(!r)return;const i=n.getParentContainer(r),o=ft(i);let l=n.getBlockIndex(r);Te(n,r)||(l+=1);const c=e.trigger?"quick-menu":"add-block-menu";if(t.commandProvider){n.emit("beforeExecCommand",n,t,{source:c}),t.commandProvider.executeCommand(n,t,{from:c,...e});return}if(!t.blockOptions||!t.blockOptions.handleInsertEmptyBlock)return;n.emit("beforeExecCommand",n,t,{source:c});const f=T1(n,o,t.blockType);t.blockOptions.handleInsertEmptyBlock(n,{containerId:o,blockIndex:l,item:Object.assign((h=f==null?void 0:f.item)!=null?h:{},t),from:c,data:f==null?void 0:f.data})}const gR=_("quick-menu"),IV={id:"quick-menu",trigger:["/"]},DV=5;class pg{constructor(t,e=IV){m(this,"suggest");m(this,"_items",[]);m(this,"maxHeading");m(this,"firstEmptyOffset",-1);m(this,"currentContainerId");m(this,"currentBlockIndex",-1);m(this,"queryItems",async(t,e)=>{if(this.initMenuItems(),this.refreshMenuItems(),e){const r=new Set,i=e.toLocaleLowerCase().replace(/^\s+|\s+$/g,""),o=this.items.filter(s=>{if(s.type==="section")return!0;if(s.name.toLocaleLowerCase().indexOf(i)!==-1||NN(s).toLocaleLowerCase().indexOf(i)!==-1)return r.add(s.group),!0;const l=`blockMenu.section.${s.group||"common"}`,c=D.t(l),f=c===l?s.group:c;return(f==null?void 0:f.toLocaleLowerCase().indexOf(i))!==-1?(r.add(s.group),!0):!1}).filter(s=>s.type==="section"?r.has(s.group):!0);return o.length?this.firstEmptyOffset=-1:this.handleEmptySearch(),o}return this.items});m(this,"onClose",()=>{this.firstEmptyOffset=-1});m(this,"onShow",(t,e,r,i)=>{this.currentContainerId=e,this.currentBlockIndex=r;const o=this.editor.getBlockByIndex(e,r);if(!Qr(o)){const s=Q(ot(o));if(s&&Tt(s)==="code")return!1}return!0});m(this,"onClickItem",(t,e)=>{const r=e;r.itemType==="insert-block"&&(p(gR,r.blockOptions||r.commandProvider,"invalid quick item, no block options or command provider"),p(gR,this.suggest.anchor,"invalid suggest, no anchor"),this.options.id==="empty-block-menu"&&this.editor.focus(),LV(this.editor,r,this.suggest.anchor))});this.editor=t,this.options=e,this.items=[],this.maxHeading=ng(),this.suggest=new RE(t,{id:e.id||"quick-menu",trigger:e.trigger,needSpaceBeforeTrigger:!0,autoDeleteTrigger:!0,highlight:!0,onClose:this.onClose,onShow:this.onShow,onClickItem:this.onClickItem,queryItems:this.queryItems})}get selectedBlock(){return this.currentContainerId?this.editor.getBlockByIndex(this.currentContainerId,this.currentBlockIndex):void 0}get items(){return this._items.filter(t=>{var e,r;return(r=(e=t.shouldShown)==null?void 0:e.call(t,this.selectedBlock,"inline"))!=null?r:!0})}set items(t){this._items=t}get menu(){return this.suggest.menu.menu}destroy(){this.suggest.destroy()}initMenuItems(){var i;const t=((i=this.suggest.anchor)==null?void 0:i.trigger)==="/"?"quick-menu":"block-menu",e=this.currentContainerId?this.editor.getBlockByIndex(this.currentContainerId,this.currentBlockIndex):void 0,r=bb(this.editor,e,{withPlainText:!1,from:t,ignoreFilter:!0,type:"inline"});this.items=r}refreshMenuItems(){let t=null,e=0;const r=ng();if(r!==this.maxHeading){const i=new Jk,s=i.getCommands().map(l=>({...l,itemType:"insert-block",commandProvider:i}));for(let l=0;l<this.items.length;l++)this.items[l].group==="basics"&&(t||(t=l),t&&e++);t&&e&&this.items.splice(t,e,...s),this.maxHeading=r}}handleEmptySearch(){const t=this.editor.selection.getFocusedPos();if(this.firstEmptyOffset===-1){if(t.isSimple()){const{offset:e}=t;this.firstEmptyOffset=e-1}}else if(t.isSimple()){const{offset:e}=t;e-this.firstEmptyOffset>DV&&(this.suggest.close(),this.firstEmptyOffset=-1)}}}class zd{constructor(t){m(this,"instance");m(this,"mousedown",!1);m(this,"currentInstance",null);m(this,"attributeName",[]);m(this,"attributeDesc","");m(this,"_lastClickButtonId","");m(this,"observer",null);m(this,"observerCallback",null);m(this,"createContent",t=>{let e="",r=0;for(;r<this.attributeName.length&&!e;)t.hasAttribute(this.attributeName[r])&&(e=t.getAttribute(this.attributeName[r])||""),r++;const i=t.getAttribute(this.attributeDesc);if(!i)return e;const o=B("div",[],null);return B("span",[],o,e),i&&B("span",["editor-tooltip-desc"],o,i),o});m(this,"handleDocumentMouseDown",()=>{this.mousedown=!0,this.editor.domEvents.addEventListener(document,"mouseup",this.handleDocumentMouseUp)});m(this,"handleDocumentMouseUp",()=>{this.mousedown=!1,this.editor.domEvents.removeEventListener(document,"mouseup",this.handleDocumentMouseUp)});m(this,"handleShown",t=>{this.currentInstance&&this.hide(),this.currentInstance=t,this.createObserver()});m(this,"handleHidden",()=>{this.destroyObserver(),this.currentInstance=null});m(this,"handleShow",t=>{var i;const e=t.reference;if(!e||!Ee(document.body,e)||window.isDragging||this.mousedown)return!1;const r=Number.parseInt((i=e.getAttribute("data-tooltip-hide-at"))!=null?i:"",10);if(r&&Date.now()-r<1e3)return!1;if(this._lastClickButtonId===e.getAttribute("data-button-id"))return this._lastClickButtonId="",!1;if(this.attributeName.every(o=>!e.hasAttribute(o)))return!1;if(t.reference){const o={};if(t.reference.hasAttribute("data-editor-tooltip-placement")&&(o.placement=t.reference.getAttribute("data-editor-tooltip-placement")||"top"),t.reference.hasAttribute("data-editor-tooltip-offset-x")||t.reference.hasAttribute("data-editor-tooltip-offset-y")){const l=t.reference.getAttribute("data-editor-tooltip-offset-x"),c=t.reference.getAttribute("data-editor-tooltip-offset-y");o.offset=[l?Number.parseInt(l,10):0,c?Number.parseInt(c,10):0]}t.reference.hasAttribute("data-editor-tooltip-maxwidth")&&(o.maxWidth=Number.parseInt(t.reference.getAttribute("data-editor-tooltip-maxwidth")||"350",10)),t.reference.hasAttribute("data-editor-tooltip-allow-markdown")&&(o.allowHTML=!0);const s=document.body;if(o.appendTo=this.fixContainerForFullscreen(s),Object.keys(o).length&&t.setProps(o),t.reference.hasAttribute(`data-editor-tooltip-${this.editor.clientId}-dynamic`)){const l=t.reference.getAttribute(`data-editor-tooltip-${this.editor.clientId}-dynamic`);t.setContent(l||"")}}return!0});this.editor=t;const e=t.clientId;this.attributeName=[`data-editor-tooltip-${e}`,`data-editor-tooltip-${e}-dynamic`,"data-editor-tooltip-common"],this.attributeDesc=`data-editor-tooltip-desc-${e}`,this.instance=Fp.delegate(document.body,{theme:"editor-tooltip",maxWidth:400,delay:200,target:this.attributeName.map(r=>`[${r}]`).join(","),content:this.createContent,onShow:this.handleShow,onShown:this.handleShown,onHide:this.handleHidden,hideOnClick:!1}),t.domEvents.addEventListener(document,"mousedown",this.handleDocumentMouseDown)}set lastClickButtonId(t){this._lastClickButtonId=t,t&&setTimeout(()=>{this._lastClickButtonId===t&&(this._lastClickButtonId="")},500)}visible(){var t;return(t=this.currentInstance)==null?void 0:t.state.isVisible}hide(){var t;(t=this.currentInstance)!=null&&t.state.isVisible&&this.currentInstance.hide()}destroy(){this.destroyObserver(),this.instance.destroy(),this.editor.domEvents.removeEventListener(document,"mousedown",this.handleDocumentMouseDown),this.editor.domEvents.removeEventListener(document,"mouseup",this.handleDocumentMouseUp)}createObserver(){this.destroyObserver();const t=this.currentInstance;if(!t||!t.reference)return;this.observerCallback=Ue.default(()=>{t.reference.closest("body")||(t.hide(),this.destroyObserver())},200),this.observer=new MutationObserver(this.observerCallback);const e=document.body,r={childList:!0,attributes:!1,subtree:!0};this.observer.observe(e,r)}destroyObserver(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observerCallback&&(this.observerCallback.cancel(),this.observerCallback=null)}fixContainerForFullscreen(t){return t.closest("body")&&document.fullscreenElement&&!document.fullscreenElement.contains(t)?document.fullscreenElement:t}}const _V={"text/style-bold":"bold","text/style-italic":"italic","text/style-underline":"underline","text/style-strikethrough":"line-through","text/style-code":"code","text/style-sub":"subscript","text/style-super":"superscript",link:"link"};function MV(n,t){const e=new Set(Object.keys(_V)),r=t.filter(o=>e.has(o.id));return tg(r)}function Wd(n,t){if(!n.isWritable()||Ni(n))return!1;const e=n.selection.range,r=n.editorCommandProviders.getCommands(e,"shortcut"),o=MV(n,r).find(s=>s.id===`text/${t}`||s.id==="link");return o?(n.editorCommandProviders.executeCommand(e,o,{}),Su.get(n).update("selectionChange"),!0):!1}function OV(n,t){const e=n.selection.focusedBlock;if(!n.isWritable()||!at(n,e))return!1;const r=n.getBlockData(e).heading,i={id:`heading-${t}`,source:"BlockTurnIntoCommandProvider",value:String(t)};return Number(r)===t&&(i.id="text",i.value=null),n.editorCommandProviders.executeCommand(n.selection.range,i,{}),!0}const xb={"CtrlOrCmd+B":n=>Wd(n,"style-bold"),"CtrlOrCmd+I":n=>Wd(n,"style-italic"),"CtrlOrCmd+U":n=>Wd(n,"style-underline"),"CtrlOrCmd+D":n=>Wd(n,"style-strikethrough"),"CtrlOrCmd+K":n=>Wd(n,"link"),...(()=>{const n={};for(let t=1;t<=8;t++)n[`CtrlOrCmd+${t}`]=e=>OV(e,t);return n})()},UV={quickMenu:{basic:{heading:{title:"\u6807\u9898 {heading}",space:"{markdown}\u7A7A\u683C"},unordered:"\u65E0\u5E8F\u5217\u8868",ordered:"\u6709\u5E8F\u5217\u8868",checkbox:"\u5F85\u529E\u5217\u8868",quote:"\u5F15\u7528"},inlineBox:{math:"\u516C\u5F0F",link:"\u94FE\u63A5"}},link:{textLabel:"\u6587\u672C",urlLabel:"\u94FE\u63A5\u5730\u5740",textPlaceholder:"\u8BF7\u8F93\u5165\u6587\u672C",urlPlaceholder:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740",submitText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",edit:"\u7F16\u8F91",remove:"\u53D6\u6D88\u94FE\u63A5"},commands:{unordered:"\u65E0\u5E8F\u5217\u8868",ordered:"\u6709\u5E8F\u5217\u8868",check:"\u5F85\u529E\u5217\u8868",link:"\u94FE\u63A5",quote:"\u5F15\u7528",alignLeft:"\u5DE6\u5BF9\u9F50",alignRight:"\u53F3\u5BF9\u9F50",alignCenter:"\u5C45\u4E2D\u5BF9\u9F50",alignGroup:"\u5BF9\u9F50\u65B9\u5F0F",heading:"\u6807\u9898 {name}",headingGroup:"\u6807\u9898\u6837\u5F0F",text:"\u6B63\u6587"}},NV={quickMenu:{basic:{heading:{title:"Heading {heading}",space:"{markdown}space"},unordered:"Bulleted list",ordered:"Numbered list",checkbox:"To-do list",quote:"Quote"},inlineBox:{math:"Formula",link:"Link"}},link:{textLabel:"Text",urlLabel:"Link address",textPlaceholder:"Please enter text",urlPlaceholder:"Please enter link",submitText:"Confirm",cancelText:"Cancel",edit:"Edit",remove:"Remove link"},commands:{unordered:"Bulleted list",ordered:"Numberer list",check:"To-do list",link:"Link",quote:"Quote",alignLeft:"Align left",alignRight:"Align right",alignCenter:"Center text",alignGroup:"Alignment",heading:"Heading {name}",headingGroup:"Text style",text:"Text"}},PV={quickMenu:{basic:{heading:{title:"\u898B\u51FA\u3057{heading}",space:"{markdown}\u30B9\u30DA\u30FC\u30B9"},unordered:"\u7B87\u6761\u66F8\u304D\u30EA\u30B9\u30C8",ordered:"\u756A\u53F7\u4ED8\u304D\u30EA\u30B9\u30C8",checkbox:"\u30D0\u30C3\u30AF\u30ED\u30B0",quote:"\u5F15\u7528"},inlineBox:{math:"\u6570\u5F0F",link:"URL"}},link:{textLabel:"\u30C6\u30AD\u30B9\u30C8",urlLabel:"URL",textPlaceholder:"\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",urlPlaceholder:"URL \u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",submitText:"OK",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB",edit:"\u7DE8\u96C6",remove:"\u30EA\u30F3\u30AF\u3092\u89E3\u9664"},commands:{unordered:"\u7B87\u6761\u66F8\u304D\u30EA\u30B9\u30C8",ordered:"\u756A\u53F7\u4ED8\u304D\u30EA\u30B9\u30C8",check:"\u30D0\u30C3\u30AF\u30ED\u30B0",link:"URL",quote:"\u5F15\u7528",alignLeft:"\u5DE6\u63C3\u3048",alignRight:"\u53F3\u63C3\u3048",alignCenter:"\u4E2D\u592E\u63C3\u3048",alignGroup:"\u5BF9\u9F50\u65B9\u5F0F",heading:"\u898B\u51FA\u3057{name}",headingGroup:"\u30BF\u30A4\u30C8\u30EB\u30B9\u30BF\u30A4\u30EB",text:"\u672C\u6587"}};D.mergeLang({"zh-CN":UV,"en-US":NV,"ja-JP":PV});const Mct="";function _a(n,...t){const e=ri(...t);return e.classList.remove("editor-button"),e.classList.add("editor-text-button"),n.append(e),e}function pR(n){const t=eg(n);t==null||t.hide();const e=n.findCustom("table-border-bar");e==null||e.closeToolbar()}function FV(n){return B("div",["insert-column-button","drop-marker"],n)}const KV=_("row-height");function CR(n){const t=Kt.fromTable(n),e=n.rows;p(KV,e.length===t.rowCount,"row count mismatch");const r=Array(t.rowCount).fill(0);for(let i=0;i<e.length;){let o=1,l=e[i].getBoundingClientRect().height,c=i+1;for(;c<e.length;){const f=e[c];if(f.cells.length!==0)break;o++,c++,l+=f.getBoundingClientRect().height}for(let f=0;f<o;f++)r[i+f]=l/o;i=c}return r}const VV=_("table-border-bar-dom");function ER(n){var c;const t=Q(n.contentElement);p(VV,t,"no block");const r=xe(t).querySelector(".table-border-bar-container.left"),o=$t(t).offsetLeft-bu,s=((c=n.scrollOptions.paddingLeft)!=null?c:0)+o,l=Math.min(n.contentElement.offsetLeft-o,n.rootElement.scrollLeft-s);r&&(r.style.left=`${-l}px`)}const wl=_("table-border-bar-dom");function Iu(n,t){p(wl,dn(t),"invalid table block");const e=fn(t),r=go(n,t),i=xe(t),o=(C,E,b)=>{const v=B("div",["button-root",E],C),k=B("div",["button-container",E],v);v.setAttribute(`data-${E}-index`,`${b}`),k.setAttribute(`data-editor-tooltip-${n.clientId}`,E==="left"?D.t("table.insertRow"):D.t("table.insertCol")),B("span",["insert-indicator"],k),FV(k)},{selectedRows:s,selectedColumns:l}=LE(n,t),c=()=>{const C=r.querySelector(".table-border-bar-container.top");p(wl,C,"no top border bar container");const E=B("div",["table-border-bar-container","top"],null),b=B("div",["table-border-bar","top"],E),v=UP(e),w=Kt.fromTable(e).colCount;n.selection.range.isSimple()&&o(b,"top",0);for(let O=0;O<w;O++){const M=O===w-1?v[O]+2:v[O],F=B("span",["table-border-bar-cell","top"],b);l.has(O)&&F.classList.add("selected"),F.setAttribute("data-top-index",`${O}`),F.style.width=`${M}px`,n.selection.range.isSimple()&&o(b,"top",O+1)}Uf(C,E)},f=()=>{const C=i.querySelector(".table-border-bar-container.left");p(wl,C,"no left border bar container");const E=B("div",["table-border-bar-container","left"],null),b=B("div",["table-border-bar","left"],E);B("span",["table-border-bar-cell","corner"],b);const v=CR(e);n.selection.range.isSimple()&&o(b,"left",0),Array.from(e.rows).forEach((k,w,O)=>{const M=B("span",["table-border-bar-cell","left"],b);s.has(w)&&M.classList.add("selected"),M.setAttribute("data-left-index",`${w}`);const F=w===O.length-1?v[w]+2:v[w];M.style.height=`${F}px`,n.selection.range.isSimple()&&o(b,"left",w+1)}),Uf(C,E)};c(),f();const h=n.findCustom(mo(t));h&&ER(h)}function bR(n,t){const e=t.target;if(!(e instanceof Element))return;const r=Q(e);p(wl,r&&dn(r),"invalid table block"),Iu(n,r),n.selection.caret.update()}function Cg(n,t){const e=t.target;if(!(e instanceof Element))return;const r=Q(e);p(wl,r&&dn(r),"invalid table block");const i=e.closest(".button-root");if(i){if(i.classList.contains("top")){const o=parseInt(i.getAttribute("data-top-index")||"0",10);vk(n,r,o),Iu(n,r)}else if(i.classList.contains("left")){const o=parseInt(i.getAttribute("data-left-index")||"0",10);GE(n,r,o),Iu(n,r)}}}function Eg(n,t){var s;pR(n),t.preventDefault(),t.stopPropagation();let e=null,r,i;const o=l=>{var c;if(l.target instanceof HTMLElement&&r&&e&&i!==void 0){const f=Q(l.target),h=l.target.closest(".table-border-bar");if(f===e&&h){const C=parseInt((c=l.target.getAttribute(`data-${r}-index`))!=null?c:"0",10),E=Math.min(i,C),b=Math.abs(i-C)+1;_t(l.target,"top")&&r==="top"?YP(n,f,E,b,{reverse:!0}):_t(l.target,"left")&&r==="left"&&JP(n,f,E,b,{reverse:!0})}}l.type==="mouseup"&&(e=null,i=void 0,r=void 0,document.body.removeEventListener("mousemove",o),document.body.removeEventListener("mouseup",o))};t.target instanceof HTMLElement&&_t(t.target,"table-border-bar-cell")&&(e=Q(t.target),_t(t.target,"top")?r="top":_t(t.target,"left")&&(r="left"),r&&e&&(i=parseInt((s=t.target.getAttribute(`data-${r}-index`))!=null?s:"0",10),document.body.addEventListener("mousemove",o),document.body.addEventListener("mouseup",o)))}function xR(n){const t=n.selection.range,e=_d(n,t);e&&Iu(n,e)}function $V(n,t){p(wl,dn(t),"invalid table block");const e=go(n,t),r=xe(t),i=B("div",["table-border-bar-container","top"],e),o=B("div",["table-border-bar-container","left"],r);Iu(n,t),n.domEvents.addEventListener($t(t),"scroll",bR),n.domEvents.addEventListener(i,"click",Cg),n.domEvents.addEventListener(o,"click",Cg),n.domEvents.addEventListener(i,"mousedown",Eg),n.domEvents.addEventListener(o,"mousedown",Eg),n.addListener("afterClearSelection",xR)}function AR(n,t){if(!n.isWritable())return;if(go(n,t).querySelector(".table-border-bar-container")){Iu(n,t);return}$V(n,t)}function vR(n,t){p(wl,dn(t),"invalid table block");const e=go(n,t),r=xe(t),i=e.querySelectorAll(".table-border-bar-container"),o=r.querySelectorAll(".table-border-bar-container");i.forEach(s=>{n.domEvents.removeEventListener(s,"click",Cg),n.domEvents.removeEventListener(s,"mousedown",Eg),s.remove()}),o.forEach(s=>{n.domEvents.removeEventListener(s,"click",Cg),n.domEvents.removeEventListener(s,"mousedown",Eg),s.remove()}),n.domEvents.removeEventListener($t(t),"scroll",bR),n.addListener("afterClearSelection",xR)}function HV(n,t){p(wl,dn(t),"invalid table block");const r=go(n,t).querySelector(".table-border-bar-container.top");return r?r.getBoundingClientRect().height:0}class jV{constructor(t,e){m(this,"toolbar");m(this,"handleSelectionChange",(t,e)=>{!t.isVisible||(e==="delete-columns"?(Bl(this.editor,this.tableBlock,!0,!0),yl(this.editor,this.tableBlock,!0,!0)):e==="delete-rows"?(Bl(this.editor,this.tableBlock,!0,!1),yl(this.editor,this.tableBlock,!0,!1)):(Bl(this.editor,this.tableBlock,!1),yl(this.editor,this.tableBlock,!1)))});m(this,"handleClick",(t,e,r)=>{e.id==="delete-columns"?IE(this.editor.selection.range):e.id==="delete-rows"&&DE(this.editor.selection.range)});m(this,"handleToolbarClose",()=>{this.tableBlock&&_d(this.editor,this.editor.selection.range)===this.tableBlock&&(Bl(this.editor,this.tableBlock,!1),yl(this.editor,this.tableBlock,!1))});this.editor=t,this.tableBlock=e;const r=t.options.componentsOptions.popover;this.toolbar=new gu([],void 0,{id:"table-row-column-toolbar",overflowBoundary:r==null?void 0:r.overflowBoundary,refuseOverflow:!0,tooltipId:this.editor.clientId}),this.toolbar.addListener("selectionChange",this.handleSelectionChange),this.toolbar.addListener("click",this.handleClick),this.toolbar.addListener("close",this.handleToolbarClose)}close(){this.toolbar.close("cancelBar")}update(){var i,o,s;const{selectedColumns:t,selectedRows:e}=LE(this.editor,this.tableBlock);if(!this.editor.isWritable())return;if(t.size>0&&e.size>0){this.toolbar.close("cancelBar");return}if(t.size===0&&e.size===0){this.toolbar.close("cancelBar");return}const r=qo(this.editor,this.tableBlock,this.editor.selection.range)[0];if(!r){this.toolbar.close("cancelBar");return}if(t.size>0){const l={id:"delete-columns",name:D.t("table.deleteSelectCol"),icon:NT};this.toolbar.updateItems([l]);const c=Qo(this.editor,this.tableBlock,"table-row-column-delete",r);this.toolbar.manualShow(c,{placement:"top",offset:[0,5]})}else{const l={id:"delete-rows",name:D.t("table.deleteSelectRow"),icon:UT};this.toolbar.updateItems([l]);const h=xe(this.tableBlock).querySelector(".table-border-bar-container.left").getBoundingClientRect(),C=new DOMRect(Math.max(h.left,r.left-bu),r.top,bu,r.height),E=Qo(this.editor,this.tableBlock,"table-row-column-delete",C);this.toolbar.manualShow(E,{placement:"left",offset:[0,5]});const b=this.editor.options.componentsOptions.popover;(i=this.toolbar.tippyInstance)==null||i.setProps({popperOptions:{modifiers:[{name:"flip",options:{boundary:b==null?void 0:b.overflowBoundary,fallbackPlacements:["left","right"]}}]}})}(s=(o=this.toolbar.tippyInstance)==null?void 0:o.popperInstance)==null||s.update()}destroy(){this.toolbar.destroy(),this.toolbar.removeAllListeners()}}const Ab=_("table-border-bar");class zV{constructor(t,e){m(this,"toolbar");m(this,"resizeObserver",null);m(this,"handleReadonlyChanged",t=>{t.isWritable()?this.update():vR(this.editor,this.tableBlock)});m(this,"handleBlockUpdated",()=>{var t;(t=this.resizeObserver)==null||t.disconnect(),setTimeout(()=>{var r;const e=this.editor.getBlockById(dt(this.tableBlock));(r=this.resizeObserver)==null||r.observe(fn(e))})});m(this,"handleScroll",()=>{var t;(t=this.toolbar)==null||t.update()});m(this,"handleTableResize",()=>{!this.editor.isWritable()||this.update()});this.editor=t,this.tableBlock=e,p(Ab,this.tableBlock,"no table block"),Ab.debug("create table border bar"),AR(this.editor,this.tableBlock),this.resizeObserver=new sa(this.handleTableResize),this.resizeObserver.observe(fn(this.tableBlock));const r=t.getComponentOptions("table");r!=null&&r.hideToolbar||(this.toolbar=new jV(this.editor,this.tableBlock)),this.editor.addListener("readonlyChanged",this.handleReadonlyChanged)}close(){var t;(t=this.toolbar)==null||t.close()}destroy(){var t,e;Ab.debug("destroy table border bar"),(t=this.resizeObserver)==null||t.disconnect(),this.resizeObserver=null,vR(this.editor,this.tableBlock),(e=this.toolbar)==null||e.destroy(),this.editor.removeListener("readonlyChanged",this.handleReadonlyChanged)}update(){var t;AR(this.editor,this.tableBlock),(t=this.toolbar)==null||t.update()}}const WV=_("table-border-bar");class GV{constructor(t){m(this,"activeTableBar",null);m(this,"handleBlockDeleted",(t,e)=>{!this.activeTableBar||(e===this.activeTableBar.tableBlock||Ee(e,this.activeTableBar.tableBlock))&&(this.activeTableBar.destroy(),this.activeTableBar=null)});m(this,"handleSelectionChanged",t=>{setTimeout(()=>{var i;const e=t.selection.range,r=_d(t,e);((i=this.activeTableBar)==null?void 0:i.tableBlock)!==r&&this.activeTableBar&&this.hide(),r&&this.show(r)})});m(this,"handleScroll",()=>{var t;(t=this.activeTableBar)==null||t.handleScroll()});this.editor=t,this.editor.addListener("blockDeleted",this.handleBlockDeleted),this.editor.addListener("selectionChanged",this.handleSelectionChanged)}destroy(){var t;this.editor.removeListener("blockDeleted",this.handleBlockDeleted),this.editor.removeListener("selectionChanged",this.handleSelectionChanged),(t=this.activeTableBar)==null||t.destroy()}show(t){this.activeTableBar?(this.activeTableBar.tableBlock!==t&&this.hide(),this.activeTableBar.update()):this.activeTableBar=new zV(this.editor,t)}update(){var t;(t=this.activeTableBar)==null||t.handleBlockUpdated()}closeToolbar(){var t;(t=this.activeTableBar)==null||t.close()}hide(){!this.activeTableBar||(p(WV,this.activeTableBar,"no active table bar"),this.activeTableBar.destroy(),this.activeTableBar=null)}}function BR(n,t){const e=n.addCustom("table-border-bar",r=>new GV(r));t==="update"&&e.update()}const dr=_("table-cell-menu"),qV="style-bg-color-";class XV{constructor(t){m(this,"activeTableBlock",null);m(this,"targetButton",null);m(this,"manualMenu",null);m(this,"colorPaletteItem",null);m(this,"markedRowAsDanger",!1);m(this,"markedColAsDanger",!1);m(this,"resetAsDangerMarked",()=>{this.markedColAsDanger=!1,this.markedRowAsDanger=!1});m(this,"handlePrevent",(t,e)=>{e.stopPropagation()});m(this,"handleReadonlyChanged",t=>{t.isWritable()||this.hide()});m(this,"handleSelectionChanged",t=>{const e=t.selection.range,r=_d(t,e);if(this.hide(),this.activeTableBlock!==r&&(this.activeTableBlock=r),this.activeTableBlock){const i=Kt.fromBlock(this.activeTableBlock),o=e.isReverse()?e.start:e.end;let s=null;o instanceof yi?t.getBlockById(o.blockId)===this.activeTableBlock?s=i.getCellByContainerId(o.childContainerId):s=this.getCellByChildBlockId(i,o.blockId):o.blockId!==this.activeTableBlock.id&&(s=this.getCellByChildBlockId(i,o.blockId)),s&&this.editor.isWritable()&&this.showCellMenuButton(s)}});m(this,"handleBeforePopupPalette",()=>{var e;const t=this.getSelectedBkgColorIndex();(e=this.colorPaletteItem)==null||e.palette.setColor("backgroundColor",t)});m(this,"createBkgColorItem",()=>{const t=B("div",["cell-background-color-item"],null);B("span",[],t,D.t("table.cellBackground"));const e=this.getSelectedBkgColorIndex();B("button",["item-button"],t).setAttribute("data-color-index",`${e}`);const i=B("span",["item-sub-indicator"],t);return i.innerHTML=cE,t});m(this,"handleCommand",t=>{var i;p(dr,this.activeTableBlock,"no target table block");const e=((i=t.states)==null?void 0:i.includes("checked"))||!1,r=t.value;switch(t.id){case"delete-select-row":DE(rk(this.editor,this.activeTableBlock,!1));break;case"delete-select-col":IE(rk(this.editor,this.activeTableBlock,!0));break;case"merge-cell":tk(this.editor.selection.range);break;case"split-cell":this.handleSplitCell();break;case"row-title":this.handleRowTitle(e);break;case"col-title":this.handleColTitle(e);break;case"stripe-style":this.handleStripeStyle(e);break;case"hide-border":sP(this.editor,this.activeTableBlock,r==="show-border");break;case"show-chart":cP(this.editor,this.activeTableBlock,r==="show-chart"),FE(this.editor,this.activeTableBlock,{updateNow:!0});break}});m(this,"handleToolbarClose",()=>{this.targetButton&&lt(this.targetButton,"active"),(this.markedRowAsDanger||this.markedColAsDanger)&&this.activeTableBlock&&_d(this.editor,this.editor.selection.range)===this.activeTableBlock&&(Bl(this.editor,this.activeTableBlock,!1),yl(this.editor,this.activeTableBlock,!1),this.resetAsDangerMarked()),this.editor.focus()});m(this,"handleSelectionChange",(t,e)=>{if(!!t.isVisible)if(p(dr,this.activeTableBlock,"no target table block"),e==="cell-background-color"&&this.handleBeforePopupPalette(),e==="delete-select-row"){if(this.markedRowAsDanger)return;Bl(this.editor,this.activeTableBlock,!0,!1),yl(this.editor,this.activeTableBlock,!0,!1),this.resetAsDangerMarked(),this.markedRowAsDanger=!0}else if(e==="delete-select-col"){if(this.markedColAsDanger)return;Bl(this.editor,this.activeTableBlock,!0,!0),yl(this.editor,this.activeTableBlock,!0,!0),this.resetAsDangerMarked(),this.markedColAsDanger=!0}else Bl(this.editor,this.activeTableBlock,!1),yl(this.editor,this.activeTableBlock,!1),this.resetAsDangerMarked()});m(this,"handleClick",(t,e)=>{var r;p(dr,this.activeTableBlock,"no target table block"),p(dr,this.targetButton,"no target button"),pR(this.editor),_t(this.targetButton,"active")?(lt(this.targetButton,"active"),(r=this.manualMenu)==null||r.close("clickItem")):(z(this.targetButton,"active"),this.manualMenu?this.manualMenu.updateItems(this.createCommandMenu()):(this.manualMenu=new Al(this.createCommandMenu(),void 0,{id:"table-cell-menu"}),this.manualMenu.on("click",(i,o)=>{var s;this.handleCommand(o),(s=this.manualMenu)==null||s.close("clickItem")}),this.manualMenu.on("selectionChange",this.handleSelectionChange),this.manualMenu.on("close",this.handleToolbarClose)),this.manualMenu.manualShow(this.targetButton,{placement:"right-start"})),e.stopPropagation()});this.editor=t,this.editor.addListener("selectionChanged",this.handleSelectionChanged),this.editor.addListener("readonlyChanged",this.handleReadonlyChanged)}destroy(){var t,e;this.activeTableBlock=null,this.targetButton=null,this.editor.removeListener("selectionChanged",this.handleSelectionChanged),this.editor.removeListener("readonlyChanged",this.handleReadonlyChanged),(t=this.manualMenu)==null||t.destroy(),(e=this.colorPaletteItem)==null||e.destroy()}hide(){var t;(t=this.manualMenu)==null||t.close("cancelBar"),this.targetButton&&(lt(this.targetButton,"active"),this.targetButton.style.display="none")}getCellByChildBlockId(t,e){let r=this.editor.getBlockById(e);for(;r;){const i=r.closest("td");p(dr,i,"no parent cell");const o=Q(i);if(p(dr,o,"no parent block"),fn(o)===t.table)return t.getCellByCellElement(i);r=o}return p(dr,!1,"filed to get cell by child block id"),null}createTargetButton(t){this.targetButton?t.querySelector(`:scope > .${NE}`)||t.appendChild(this.targetButton):(this.targetButton=B("button",[NE],t),this.targetButton.innerHTML=I0,this.editor.domEvents.addEventListener(this.targetButton,"click",this.handleClick),this.editor.domEvents.addEventListener(this.targetButton,"mousedown",this.handlePrevent),this.editor.domEvents.addEventListener(this.targetButton,"dblclick",this.handlePrevent))}showCellMenuButton(t){this.createTargetButton(t.cell),p(dr,this.targetButton,"no target button"),this.targetButton.style.display="inline-block"}handleSplitCell(){if(this.activeTableBlock){const t=Kt.fromBlock(this.activeTableBlock),e=this.editor.selection.range;if(e.isSimple()){const{col:r,row:i}=this.getCellByChildBlockId(t,e.start.blockId);ME(this.editor,this.activeTableBlock,{col:r,row:i})}else OE(this.editor.selection.range)}}getSelectedBkgColorIndex(){var s;p(dr,this.activeTableBlock,"no target table block");const t=this.editor.selection.range,e=vl(this.editor,this.activeTableBlock,t.focus),r=this.editor.getBlockData(this.activeTableBlock),i=e.childContainerId,o=r[`${i}_background`];return o?Number.parseInt((s=o.substring(qV.length))!=null?s:"0",10):-1}createCommandMenu(){p(dr,this.activeTableBlock,"no target table block");const t=this.editor.getBlockData(this.activeTableBlock),e=Z2(this.editor,this.activeTableBlock,this.editor.selection.range);let r=this.editor.selection.range;if(r.isSimple()){const h=vl(this.editor,this.activeTableBlock,r.start);r=pn(this.editor,{anchor:h,focus:h})}const i=Q2(this.editor,this.activeTableBlock,r),o=t.hasRowTitle,s=t.hasColTitle,l=t.isStripeStyle,c=t.noBorder,f=t.chart;return this.colorPaletteItem=new z2("cell-background-color",{color:!1}),this.colorPaletteItem.palette.on("onClick",(h,C)=>{var E;switch(p(dr,this.activeTableBlock,"no target table block"),h){case"clearColor":sk(this.editor,this.activeTableBlock,-1);break;case"backgroundColor":sk(this.editor,this.activeTableBlock,C);break}(E=this.manualMenu)==null||E.close("clickItem")}),[{id:"cell-background-color",name:D.t("table.cellBackground"),element:this.createBkgColorItem(),children:[this.colorPaletteItem]},{id:"separator",name:"",type:"separator"},{id:"merge-cell",name:D.t("table.mergeCell"),states:e?[]:["disabled"]},{id:"split-cell",name:D.t("table.splitCell"),states:i?[]:["disabled"]},{id:"separator",name:"",type:"separator"},{id:"delete-select-row",name:D.t("table.deleteSelectRow")},{id:"delete-select-col",name:D.t("table.deleteSelectCol")},{id:"separator",name:"",type:"separator"},{id:"table-config",name:D.t("table.tableConfigKey"),children:[{id:"row-title",name:D.t("table.tableConfig.rowTitle"),states:o?["checked"]:[]},{id:"col-title",name:D.t("table.tableConfig.colTitle"),states:s?["checked"]:[]},{id:"stripe-style",name:D.t("table.tableConfig.stripeStyle"),states:l?["checked"]:[]},{id:"hide-border",name:c?D.t("table.tableConfig.showBorder"):D.t("table.tableConfig.hideBorder"),value:c?"show-border":"hide-border"},{id:"show-chart",name:f?D.t("table.tableConfig.hideChart"):D.t("table.tableConfig.showChart"),value:f?"hide-chart":"show-chart"}]}]}handleRowTitle(t){p(dr,this.activeTableBlock,"no target table block"),t?rP(this.editor,this.activeTableBlock):nP(this.editor,this.activeTableBlock)}handleColTitle(t){p(dr,this.activeTableBlock,"no target table block"),t?eP(this.editor,this.activeTableBlock):tP(this.editor,this.activeTableBlock)}handleStripeStyle(t){p(dr,this.activeTableBlock,"no target table block"),t?oP(this.editor,this.activeTableBlock):iP(this.editor,this.activeTableBlock)}}function yR(n){n.addCustom("table-cell-menu",t=>new XV(t))}const TR=_("table-container");function vb(n){const t=n.closest("td");return p(TR,t,"no parent cell for a table cell container"),t}function kR(n){const t=fn(n);return Array.from(t.querySelectorAll(':scope > tbody > tr > td > [data-type="editor-container"].child'))}function Bb(n,t,e,r){const i=Kt.fromBlock(n),o=i.getCellByContainerId(ft(t));if(e==="ArrowDown"){const s=i.getBottomCell(o);return s?s.container:null}if(e==="ArrowUp"){const s=i.getTopCell(o);return s?s.container:null}if(e==="ArrowLeft"){const s=i.getLeftCell(o);if(!s)return null;const l=s.container;return r!=null&&r.noWrap&&s.row!==o.row?null:l}if(e==="ArrowRight"){const s=i.getRightCell(o);if(!s)return null;const l=s.container;return r!=null&&r.noWrap&&s.row!==o.row?null:l}p(TR,!1,`invalid navigation type: ${e}`)}const YV=12,JV=90,bg=23,RR=2;class QV{constructor(t){m(this,"scrollTableBlock",null);m(this,"autoScrollDir",null);m(this,"autoScrollTimer",null);m(this,"handleMouseDown",t=>{const e=Ne(t.clientX,t.clientY,{noFilter:!0});if(e&&e instanceof HTMLElement){const r=Q(e);if(r&&Ee(this.editor.rootContainer,r)){const i=fs(r);i&&(this.scrollTableBlock=i,document.addEventListener("mousemove",this.handleAutoScroll))}}});m(this,"handleAutoScroll",PI.default(t=>{if(this.scrollTableBlock){const e=this.editor.getCustom(mo(this.scrollTableBlock)),r=e.rootElement,i=e.scrollOptions.parentContainer,o=r.getBoundingClientRect(),s=window.innerHeight-this.getBarFloatWindowBottom(e),l=i.getBoundingClientRect(),c=Math.min(l.bottom,s),f=Math.max(l.top,0);o.bottom>c&&t.clientY>=c?this.setAutoScroll("bottom"):o.top<f&&t.clientY<=f?this.setAutoScroll("top"):r.scrollLeft>0&&t.clientX<o.left?this.setAutoScroll("left"):r.scrollLeft<r.scrollWidth-r.offsetWidth&&t.clientX>o.right?this.setAutoScroll("right"):this.clearAutoScroll()}},15));m(this,"handleMouseUp",()=>{document.removeEventListener("mousemove",this.handleAutoScroll),setTimeout(()=>{this.scrollTableBlock=null})});m(this,"handleSelectionChanged",t=>{const e=t.selection.range;if(e.isCollapsed()&&e.isSimple()){const r=t.getBlockById(e.start.blockId),i=fs(r);if(i){const o=t.getCustom(mo(i)),s=o.rootElement.getBoundingClientRect(),l=cl(t,r,e.start);if(s.left>l.left){const c=e.start.offset===0?YV:RR;o.rootElement.scrollLeft-=s.left-l.left+c}else if(l.right>s.right){const c=e.start.offset===0?JV:RR;o.rootElement.scrollLeft+=l.right-s.right+c}}}else{const r=t.getBlockById(e.start.blockId),i=fs(r),o=t.getBlockById(e.end.blockId),s=fs(o);if(i&&i===s){const l=t.getCustom(mo(i)),c=l.rootElement.getBoundingClientRect();let f=null;if(e.isSimple())f=e.isReverse()?cl(t,r,e.start):cl(t,o,e.end);else{const h=vb(qr(t,e.start.childContainerId)),C=vb(qr(t,e.end.childContainerId));f=e.isReverse()?h.getBoundingClientRect():C.getBoundingClientRect()}c.left>f.left&&e.isReverse()?l.rootElement.scrollLeft-=c.left-f.left:c.right<f.right&&!e.isReverse()&&(l.rootElement.scrollLeft+=f.right-c.right)}}});m(this,"handleScroll",t=>{X2(t),this.editor.selection.caret.update()});m(this,"handleReset",t=>{X2(t),this.editor.selection.caret.update();const e=this.editor.findCustom("table-border-bar");e&&e.handleScroll(),ER(t)});this.editor=t,this.editor.addListener("selectionChanged",this.handleSelectionChanged),document.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mouseup",this.handleMouseUp)}getBarFloatWindowBottom(t){return t.scrollOptions.barFloatWindowBottom?typeof t.scrollOptions.barFloatWindowBottom=="number"?t.scrollOptions.barFloatWindowBottom:t.scrollOptions.barFloatWindowBottom():0}clearAutoScroll(){this.autoScrollTimer&&(clearInterval(this.autoScrollTimer),this.autoScrollTimer=null,this.autoScrollDir=null)}setAutoScroll(t){this.autoScrollDir&&this.autoScrollDir!==t&&this.clearAutoScroll(),this.autoScrollTimer||(this.autoScrollDir=t,this.autoScrollTimer=window.setInterval(()=>{if(this.scrollTableBlock){const e=this.editor.getCustom(mo(this.scrollTableBlock)),r=e.rootElement,i=e.scrollOptions.parentContainer,o=r.getBoundingClientRect(),s=i===document.documentElement?window.innerHeight:i.offsetHeight,l=window.innerHeight-this.getBarFloatWindowBottom(e),c=i.getBoundingClientRect(),f=Math.min(c.bottom,l),h=Math.max(c.top,0);this.autoScrollDir==="left"&&(r.scrollLeft-=bg,r.scrollLeft<=0&&this.clearAutoScroll()),this.autoScrollDir==="right"&&(r.scrollLeft+=bg,r.scrollLeft>=r.scrollWidth-r.offsetWidth&&this.clearAutoScroll()),this.autoScrollDir==="bottom"&&(i.scrollTop+=bg,(i.scrollTop>=i.scrollHeight-s||o.bottom<=f)&&this.clearAutoScroll()),this.autoScrollDir==="top"&&(i.scrollTop-=bg,(i.scrollTop<=0||o.top>=h)&&this.clearAutoScroll())}},100))}destroy(){document.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mouseup",this.handleMouseUp),this.editor.removeListener("selectionChanged",this.handleSelectionChanged)}}function wR(n){return n.addCustom("table-scroll-events",t=>new QV(t))}const ZV=_("table-doc-change-handler");class t${constructor(t){this.editor=t,this.editor.addListener("docChanged",this.handleDocChanged)}handleDocChanged(t,e){if(!e){const{start:r,end:i}=t.selection.range;if(!t.findBlockById(r.blockId)||!t.findBlockById(i.blockId)){t.selection.selectBlock(t.getBlockByIndex("root",0),0);return}if(Ca(r)){const o=t.getBlockById(r.blockId);if(!dn(o))return;if(p(ZV,Ca(i),"invalid range"),!Vf(t,r.childContainerId)||!Vf(t,i.childContainerId)){t.selection.selectBlock(o,0);return}let s=null,l=null;const c=(f,h)=>{const C=h.getCellById(f.childContainerId),{colIndex:E=0,rowIndex:b=0}=f.custom;let v=-1,k=-1;return(C.col>E||C.col+C.colSpan-1<E)&&(v=C.col),(C.row>b||C.row+C.rowSpan-1<b)&&(k=C.row),v!==-1||k!==-1?De(o,f.childContainerId,{colIndex:v===-1?E:v,rowIndex:k===-1?b:k}):null};if(r.custom){const f=Kt.fromBlock(o);s=c(r,f),l=c(i,f)}(s!==null||l!==null)&&(t.selection.range.isReverse()?t.selection.setSelection(l!=null?l:i,s!=null?s:r):t.selection.setSelection(s!=null?s:r,l!=null?l:i))}}}destroy(){this.editor.removeListener("docChanged",this.handleDocChanged)}}function SR(n){n.addCustom("table-doc-change-handler",t=>new t$(t))}const Co=_("create-content");function LR(n,t,e){var C;const r=new j0(e),i=e.rows,o=e.cols;p(Co,i>=1,`invalid rows: ${i}`),p(Co,o>=1,`invalid cols: ${o}`),p(Co,e.children,"no table children");const s=B("table",[],null),l=(C=e.colsWidth)!=null?C:new Array(e.cols).fill(0),c=B("colgroup",[],s);for(let E=0;E<r.colCount;E++){const b=B("col",[],c);l[E]&&(b.style.width=`${l[E]}px`,b.style.minWidth=`${l[E]}px`)}const f=B("tbody",[],s);let h=0;for(let E=0;E<i;E++){const b=B("tr",[],f);for(let v=0;v<o;v++){const k=r.getCell({col:v,row:E});if(k.virtual)p(Co,k.colSpan>1||k.rowSpan>1,"virtual cell should have colSpan or rowSpan");else{const w=e.children[h],O=B("td",[],b);k.colSpan>1&&(O.colSpan=k.colSpan),k.rowSpan>1&&(O.rowSpan=k.rowSpan);const M=e[Ud(w)];M&&z(O,M),v===0&&e.hasColTitle&&z(O,ek.COL_TITLE_ITEM),n.createChildContainer(t,O,w),h+=1}}}return p(Co,h===e.children.length,"container count mismatch"),s.style.minWidth=`${l.reduce((E,b)=>b+E,0)}px`,e.noBorder&&z(s,"no-border"),e.chart&&z(s,"editor-table-chart"),e.isStripeStyle&&z(s,"stripe"),e.hasRowTitle&&z(s,"row-title"),e.hasColTitle&&z(s,"col-title"),s}function e$(n,t,e,r,i){p(Co,i.type==="table","not table data"),p(Co,ft(e)===t[t.length-1].containerId,"invalid path");const o=i,s=al(r,"div");try{const l=B("div",[],null);l.setAttribute("data-type","table-content");const c=LR(n,t,o);c.classList.add("drag-preview-element"),l.appendChild(c);const f=n.getComponentOptions("table");xk(n),Bk(n),BR(n,"create"),SR(n),f!=null&&f.hideCellMenu||yR(n),IT(n,KE);const h=n.addCustom(mo(r),()=>MP()),C=window.getComputedStyle(e).overflowY,E=C==="auto"||C==="scroll";h.init({parentElement:s,childElement:l,safeRightSpace:50,safeLeftSpace:40,parentContainer:te(e)||!E?n.scrollContainer:e,locatingContainer:te(e)?(f==null?void 0:f.locatingContainer)||n.parent:e,paddingLeft:bu+Od,paddingTop:bu+Od,paddingBottom:Od/2,paddingRight:Od/2,barFloatWindowBottom:f==null?void 0:f.barFloatWindowBottom,allowScrollBarFixed:f==null?void 0:f.allowScrollBarFixed,isSetScale:f==null?void 0:f.isSetScale});const b=wR(n);h.on("scroll",b.handleReset),h.on("resize",b.handleReset),setTimeout(()=>{dP(n,r)})}catch{const c=`invalid table data: ${JSON.stringify(o)}`;Co.error(c);const f=B("div",["error"],s);f.innerText=c}return s}function n$(n,t,e){p(Co,e.type==="table","not table data");const r=e,i=$t(t);try{const o=fn(t),s=Xo(t),l=LR(n,s,r);l.classList.add("drag-preview-element"),o.insertAdjacentElement("afterend",l),o.remove();const c=n.getComponentOptions("table");xk(n),Bk(n),BR(n,"update"),SR(n),c!=null&&c.hideCellMenu||yR(n),KE(n,void 0,t)}catch{const s=`invalid table data: ${JSON.stringify(r)}`;Co.error(s);const l=B("div",["error"],i);l.innerText=s}}function r$(n,t){let e,r,i=!1;if([...t].every(E=>E==="|")?(r=t.length,e=Array(r).fill(""),i=!0):(e=e1(t,"|").split("|"),r=e.length),r<2)return null;const o=3,s=r,l=[];for(let E=0;E<3;E++)e.forEach(b=>{l.push(Sr(n.doc,E===0?b:""))});const c=Array(s).fill(HE),f=l[i?0:s],h=n.doc.getContainerBlocks(f)[0].id;return{blockData:{id:rt(),type:"table",rows:o,cols:s,children:l,colsWidth:c},focusBlockId:h}}function i$(n,t){const e=t.rows,r=t.cols;if(e<1||r<1)return null;const i=[];for(let f=0;f<e;f++)for(let h=0;h<r;h++)i.push(Sr(n.doc));const o=Array(r).fill(HE),s=i[0],l=n.doc.getContainerBlocks(s)[0].id;return{blockData:{id:rt(),type:"table",rows:e,cols:r,children:i,colsWidth:o},focusBlockId:l}}const yb=_("get-selected-containers");function IR(n,t,e,r){p(yb,e.blockId===r.blockId,"only allow select in single table block"),p(yb,dt(t)===e.blockId,"only allow select in single table block");const i=Kt.fromBlock(t),o=i.getCellByContainerId(e.childContainerId),s=i.getCellByContainerId(r.childContainerId);if(e.custom===void 0||r.custom===void 0)return i.getCells(o,s).map(w=>i.getCellContainer(w));const{fromCol:l,toCol:c,fromRow:f,toRow:h}=Oi(t,e,r),C=new Set,E=[];return i.sub({row:f,col:l},{row:h,col:c}).forEach(v=>{v.forEach(k=>{const w=i.getCellByContainerId(k.containerId);w.col<l||w.row<f||w.col+w.colSpan-1>c||w.row+w.rowSpan-1>h||C.has(k.containerId)||(C.add(k.containerId),E.push(w.container))})}),E}function o$(n,t,e){p(yb,t.blockId===e.blockId,"only allow select in single table block");const r=n.getBlockById(t.blockId);return IR(n,r,t,e)}const DR=_("table-selection-to-doc");function s$(n,t){const{start:e,end:r,block:i}=t,o=Tt(i);p(DR,o==="table",`invalid block type: ${o}`);const s=n.getBlockData(i);if(e.isSimple()&&r.isSimple())return ao(n.editorBlocks,n.doc.toJSON(),s);p(DR,!e.isSimple()&&!r.isSimple(),"invalid block pos type");const l=Kt.fromBlock(i),{fromCol:c,toCol:f,fromRow:h,toRow:C}=Oi(i,e,r),E={},b=[],v=n.doc.toJSON();let k={};l.sub({row:h,col:c},{row:C,col:f}).forEach((X,ut)=>{X.forEach((Et,Ct)=>{const wt=Et.containerId;if(b.indexOf(wt)!==-1)return;b.push(wt);let kt;if(Et.virtual){const fe=l.getCellByContainerId(Et.containerId),Or=c+Ct;let mr=fe.col+fe.colSpan-1;mr>f&&(mr=f);const je=mr-Or+1;je>1&&(E[`${wt}_colSpan`]=je);const Tn=h+ut;let tr=fe.row+fe.rowSpan-1;tr>C&&(tr=C);const gr=tr-Tn+1;gr>1&&(E[`${wt}_rowSpan`]=gr),kt=rs()}else{if(kt=c0(n.editorBlocks,v,wt),Et.col+Et.colSpan>f+1){const fe=f-Et.col+1;fe>1&&(E[`${wt}_colSpan`]=fe)}else Et.colSpan>1&&(E[`${wt}_colSpan`]=Et.colSpan);if(Et.row+Et.rowSpan>C+1){const fe=C-Et.row+1;fe>1&&(E[`${wt}_rowSpan`]=fe)}else Et.rowSpan>1&&(E[`${wt}_rowSpan`]=Et.rowSpan)}const{root:oe,...ve}=kt.blocks;k={...k,...ve,[wt]:oe}})});const O=Vd(fn(i)).slice(c,f+1);return{blocks:{root:[{id:rt(),type:o,children:b,colsWidth:O,rows:C-h+1,cols:f-c+1,...E}],...k},meta:{},comments:{}}}const l$=_("ajust-selection-pos");function a$(n,t){if(t.top===0)return!0;for(let e=t.left;e<=t.right;e++)if(n[t.top-1][e]===n[t.top][e])return!1;return!0}function c$(n,t){if(t.left===0)return!0;for(let e=t.top;e<=t.bottom;e++)if(n[e][t.left-1]===n[e][t.left])return!1;return!0}function u$(n,t){if(t.bottom===n.length-1)return!0;for(let e=t.left;e<=t.right;e++)if(n[t.bottom][e]===n[t.bottom+1][e])return!1;return!0}function f$(n,t){if(t.right===n[0].length-1)return!0;for(let e=t.top;e<=t.bottom;e++)if(n[e][t.right]===n[e][t.right+1])return!1;return!0}function d$(n,t,e){const r=t.col,i=t.row,o=e.col,s=e.row,l={left:r,top:i,right:o,bottom:s};let c=!1;do{if(c=!1,!a$(n,l)){l.top--,c=!0;continue}if(!c$(n,l)){l.left--,c=!0;continue}if(!u$(n,l)){l.bottom++,c=!0;continue}if(!f$(n,l)){l.right++,c=!0;continue}}while(c);return l}function h$(n,t,e,r){if(e.custom!==void 0||r.custom!==void 0)return{anchor:e,focus:r};const i=Kt.fromBlock(t),o=i.map(F=>F.containerId),s=i.getCellByContainerId(e.childContainerId),l=i.getCellByContainerId(r.childContainerId),c=Math.min(s.row,l.row),f=Math.max(s.row,l.row),h=Math.min(s.col,l.col),C=Math.max(s.col,l.col),E=d$(o,{row:c,col:h},{row:f,col:C}),b=i.getCell({row:E.top,col:E.left}),v=i.getCell({row:E.bottom,col:E.right}),k=i.getCell({row:E.top,col:E.right}),w=i.getCell({row:E.bottom,col:E.left});let O,M;return s.row<=l.row?s.col<=l.col?(O=b,M=v):(O=k,M=w):s.col<l.col?(O=w,M=k):(O=v,M=b),l$.debug(`move ${O.col}, ${O.row}, -> ${M.col}, ${M.row}`),{anchor:De(t,O.containerId),focus:De(t,M.containerId)}}function _R(n,t,e){if(e.isSimple())return[fn(t).getBoundingClientRect()];const r=fn(t),i=r.getBoundingClientRect(),{fromCol:o,fromRow:s,toCol:l,toRow:c}=Oi(t,e.start,e.end),f=Vd(r),h=f.slice(0,o).reduce((k,w)=>k+w,0),C=h+f.slice(o,l+1).reduce((k,w)=>k+w,0),E=CR(r);let b=E.slice(0,s).reduce((k,w)=>k+w,0);const v=b+E.slice(s,c+1).reduce((k,w)=>k+w,0);if(s===0){const k=HV(n,t);b-=k}return[new DOMRect(i.left+h,i.top+b,C-h,v-b)]}_("table-size");const m$=40;function xg(n){const t=n.querySelector("td");if(!t)return 0;const e=window.getComputedStyle(t),r=Number.parseInt(e.borderLeft,10),i=Number.parseInt(e.borderRight,10);return(r+i)/2}function g$(n,t,e){const r=S1(n,e.container);return r!==void 0?r+xg(t):m$*e.colSpan-xg(t)}function p$(n,t,e,r){let i=0;const o=e.colCount;for(let s=0;s<o;s++){const l=e.getCell({col:s,row:r});if(l.virtual)continue;let c=g$(n,t,l);const f=TB(l.container,{withPadding:!0});f&&f>c&&(c=f),i+=c+xg(t)}return i}function C$(n,t){const e=fn(t),r=Kt.fromTable(e);let i=0;for(let s=0;s<r.rowCount;s++)i=Math.max(i,p$(n,e,r,s));const o=xg(e);return i+=o,i}const ds=_("table-creator");async function E$(n,t){return n.undoManager.runInGroup(()=>{var c,f;const e=t.item,r=(c=e.colCount)!=null?c:5,i=(f=e.rowCount)!=null?f:3,o=i$(n,{cols:r,rows:i});if(!o)return null;const{blockData:s,focusBlockId:l}=o;return n.insertBlock(t.containerId,t.blockIndex,s,Ae(n,l,0))})}class b${constructor(){m(this,"id","insert-table");m(this,"name","Create table");m(this,"element");m(this,"closeable",null);m(this,"colCount");m(this,"rowCount");m(this,"setCloseable",t=>{this.closeable=t});m(this,"destroy",()=>{this.closeable=null});m(this,"getTableCreatorCellId",(t,e)=>`table-creator-cell-${t}-${e}`);m(this,"handleTableCreatorClick",t=>{var E,b;t.preventDefault(),t.stopPropagation();const e=t.target;p(ds,e instanceof HTMLElement,"invalid event target");const r=e.closest(".table-creator");p(ds,r,"no table creator");const i=r.querySelectorAll(".active");if(i.length===0)return;const s=i[i.length-1].id;p(ds,s,"no cell id");const l="table-creator-cell-";if(!s.startsWith(l))return;const f=s.substring(l.length).split("-");p(ds,f.length===2,"invalid cell id");const h=Number.parseInt(f[0],10)+1,C=Number.parseInt(f[1],10)+1;ds.debug(`${h}, ${C}`),this.colCount=C,this.rowCount=h,(E=this.closeable)==null||E.click(this,this.element),(b=this.closeable)==null||b.close("clickItem"),this.handleTableCreatorLeave()});m(this,"handleTableCreatorLeave",()=>{for(let t=0;t<9;t++)for(let e=0;e<9;e++){const r=this.getTableCreatorCellId(t,e),i=document.getElementById(r);i&&lt(i,"active")}});m(this,"handleTableCreatorCellEnter",t=>{const e=t.target;p(ds,e instanceof HTMLElement,"invalid event target");const r=e.id,i="table-creator-cell-";p(ds,r.startsWith(i),"invalid cell id");const s=r.substring(i.length).split("-");p(ds,s.length===2,"invalid cell id");let l=Number.parseInt(s[0],10),c=Number.parseInt(s[1],10);l===0&&c===0&&(l=-1,c=-1);for(let f=0;f<9;f++)for(let h=0;h<9;h++){const C=this.getTableCreatorCellId(f,h),E=document.getElementById(C);p(ds,E,"no cell"),f<=l&&h<=c?z(E,"active"):lt(E,"active")}});this.element=this.createTableCreatorElement()}createTableCreatorElement(){const t=B("div",["table-creator"],null),e=(r,i,o)=>{const s=B("div",["table-creator-cell"],r);return s.id=this.getTableCreatorCellId(i,o),s};t.addEventListener("click",this.handleTableCreatorClick),t.addEventListener("mouseleave",this.handleTableCreatorLeave);for(let r=0;r<9;r++){const i=B("div",["table-creator-row"],t);for(let o=0;o<9;o++)e(i,r,o).addEventListener("mouseenter",this.handleTableCreatorCellEnter)}return t}}function x$(){return new b$}function A$(n){const t=/[\u4e00-\u9fff\u3040-\u309f\u30a0-\u30ff\uac00-\ud7af]/g,e=n.match(t);return e?e.length:0}function MR(n){const t=A$(n);return n.length+t}function v$(n,t,e=[]){let r=0;if(!e||e.length===0)return r;for(let i=n;i<n+t;i+=1)r+=e[i]||0;return r}function B$(n,t){const e=MR(n),r=t-e;return r>0?n+" ".repeat(r):n}function y$(n,t,e,r,i){var l;const o=t,s=new j0(o);if(r==="markdown"||r==="text"){const c=O=>e.blocks[O].map((Z,Y)=>r==="markdown"?e0(n,Z,e,[...i,{containerId:O,blockIndex:Y}]):sd(n,Z,e,[...i,{containerId:O,blockIndex:Y}])),f=O=>c(O).join(" ").replace(/\n/g," ").trim(),h=new Map,C=new Map;for(let O=0;O<s.colCount;O++){let M=0;for(let F=0;F<s.rowCount;F++){const Z=s.getCell({row:F,col:O});let Y="";Z.virtual||(Y=f(Z.containerId)),h.set(`${F},${O}`,Y),M=Math.max(M,MR(Y))}C.set(O,M)}const E=O=>{const M=h.get(`${O.row},${O.col}`)||"",F=C.get(O.col)||0;return B$(M,F)};if(r==="text"){const O=[];for(let M=0;M<s.colCount;M++){const F=E({row:0,col:M});O.push(F)}for(let M=1;M<s.rowCount;M++)for(let F=0;F<s.colCount;F++){const Z=E({row:M,col:F});O.push(Z)}return O.join(`
649
+ }`;var qt=sI(function(){return se(L,Rt+"return "+st).apply(e,P)});if(qt.source=st,_A(qt))throw qt;return qt}function Qst(a){return Ce(a).toLowerCase()}function Zst(a){return Ce(a).toUpperCase()}function tlt(a,u,g){if(a=Ce(a),a&&(g||u===e))return Ns(a);if(!a||!(u=Hr(u)))return a;var x=$r(a),y=$r(u),L=mc(x,y),P=qh(x,y)+1;return ra(x,L,P).join("")}function elt(a,u,g){if(a=Ce(a),a&&(g||u===e))return a.slice(0,Ef(a)+1);if(!a||!(u=Hr(u)))return a;var x=$r(a),y=qh(x,$r(u))+1;return ra(x,0,y).join("")}function nlt(a,u,g){if(a=Ce(a),a&&(g||u===e))return a.replace(Qa,"");if(!a||!(u=Hr(u)))return a;var x=$r(a),y=mc(x,$r(u));return ra(x,y).join("")}function rlt(a,u){var g=wt,x=kt;if(ze(u)){var y="separator"in u?u.separator:y;g="length"in u?Wt(u.length):g,x="omission"in u?Hr(u.omission):x}a=Ce(a);var L=a.length;if(Ps(a)){var P=$r(a);L=P.length}if(g>=L)return a;var V=g-Ql(x);if(V<1)return x;var H=P?ra(P,0,V).join(""):a.slice(0,V);if(y===e)return H+x;if(P&&(V+=H.length-V),MA(y)){if(a.slice(V).search(y)){var et,nt=H;for(y.global||(y=vf(y.source,Ce(Hl.exec(y))+"g")),y.lastIndex=0;et=y.exec(nt);)var st=et.index;H=H.slice(0,st===e?V:st)}}else if(a.indexOf(Hr(y),V)!=V){var xt=H.lastIndexOf(y);xt>-1&&(H=H.slice(0,xt))}return H+x}function ilt(a){return a=Ce(a),a&&ef.test(a)?a.replace(tf,bf):a}var olt=yf(function(a,u,g){return a+(g?" ":"")+u.toUpperCase()}),NA=l6("toUpperCase");function oI(a,u,g){return a=Ce(a),u=g?e:u,u===e?gf(a)?ap(a):re(a):a.match(u)||[]}var sI=Xt(function(a,u){try{return Pn(a,e,u)}catch(g){return _A(g)?g:new Pt(g)}}),slt=Js(function(a,u){return Gn(u,function(g){g=$o(g),Xs(a,g,IA(a[g],a))}),a});function llt(a){var u=a==null?0:a.length,g=Dt();return a=u?ht(a,function(x){if(typeof x[1]!="function")throw new nr(s);return[g(x[0]),x[1]]}):[],Xt(function(x){for(var y=-1;++y<u;){var L=a[y];if(Pn(L[0],this,x))return Pn(L[1],this,x)}})}function alt(a){return _nt(mi(a,C))}function PA(a){return function(){return a}}function clt(a,u){return a==null||a!==a?u:a}var ult=c6(),flt=c6(!0);function yr(a){return a}function FA(a){return FL(typeof a=="function"?a:mi(a,C))}function dlt(a){return VL(mi(a,C))}function hlt(a,u){return $L(a,mi(u,C))}var mlt=Xt(function(a,u){return function(g){return im(g,a,u)}}),glt=Xt(function(a,u){return function(g){return im(a,g,u)}});function KA(a,u,g){var x=Ln(u),y=bp(u,x);g==null&&!(ze(u)&&(y.length||!x.length))&&(g=u,u=a,a=this,y=bp(u,Ln(u)));var L=!(ze(g)&&"chain"in g)||!!g.chain,P=Zs(a);return Gn(y,function(V){var H=u[V];a[V]=H,P&&(a.prototype[V]=function(){var et=this.__chain__;if(L||et){var nt=a(this.__wrapped__),st=nt.__actions__=Ar(this.__actions__);return st.push({func:H,args:arguments,thisArg:a}),nt.__chain__=et,nt}return H.apply(a,Ht([this.value()],arguments))})}),a}function plt(){return Ye._===this&&(Ye._=up),this}function VA(){}function Clt(a){return a=Wt(a),Xt(function(u){return HL(u,a)})}var Elt=EA(ht),blt=EA(N),xlt=EA(Le);function lI(a){return TA(a)?Wi($o(a)):Ynt(a)}function Alt(a){return function(u){return a==null?e:Dc(a,u)}}var vlt=f6(),Blt=f6(!0);function $A(){return[]}function HA(){return!1}function ylt(){return{}}function Tlt(){return""}function klt(){return!0}function Rlt(a,u){if(a=Wt(a),a<1||a>Tn)return[];var g=pr,x=U(a,pr);u=Dt(u),a-=pr;for(var y=mf(x,u);++g<a;)u(g);return y}function wlt(a){return Vt(a)?ht(a,$o):jr(a)?[a]:Ar(R6(Ce(a)))}function Slt(a){var u=++cp;return Ce(a)+u}var Llt=Tp(function(a,u){return a+u},0),Ilt=bA("ceil"),Dlt=Tp(function(a,u){return a/u},1),_lt=bA("floor");function Mlt(a){return a&&a.length?Ep(a,yr,iA):e}function Olt(a,u){return a&&a.length?Ep(a,Dt(u,2),iA):e}function Ult(a){return Us(a,yr)}function Nlt(a,u){return Us(a,Dt(u,2))}function Plt(a){return a&&a.length?Ep(a,yr,aA):e}function Flt(a,u){return a&&a.length?Ep(a,Dt(u,2),aA):e}var Klt=Tp(function(a,u){return a*u},1),Vlt=bA("round"),$lt=Tp(function(a,u){return a-u},0);function Hlt(a){return a&&a.length?hf(a,yr):0}function jlt(a,u){return a&&a.length?hf(a,Dt(u,2)):0}return S.after=dot,S.ary=P6,S.assign=Zot,S.assignIn=Q6,S.assignInWith=Pp,S.assignWith=tst,S.at=est,S.before=F6,S.bind=IA,S.bindAll=slt,S.bindKey=K6,S.castArray=yot,S.chain=O6,S.chunk=_rt,S.compact=Mrt,S.concat=Ort,S.cond=llt,S.conforms=alt,S.constant=PA,S.countBy=Hit,S.create=nst,S.curry=V6,S.curryRight=$6,S.debounce=H6,S.defaults=rst,S.defaultsDeep=ist,S.defer=hot,S.delay=mot,S.difference=Urt,S.differenceBy=Nrt,S.differenceWith=Prt,S.drop=Frt,S.dropRight=Krt,S.dropRightWhile=Vrt,S.dropWhile=$rt,S.fill=Hrt,S.filter=zit,S.flatMap=qit,S.flatMapDeep=Xit,S.flatMapDepth=Yit,S.flatten=I6,S.flattenDeep=jrt,S.flattenDepth=zrt,S.flip=got,S.flow=ult,S.flowRight=flt,S.fromPairs=Wrt,S.functions=fst,S.functionsIn=dst,S.groupBy=Jit,S.initial=qrt,S.intersection=Xrt,S.intersectionBy=Yrt,S.intersectionWith=Jrt,S.invert=mst,S.invertBy=gst,S.invokeMap=Zit,S.iteratee=FA,S.keyBy=tot,S.keys=Ln,S.keysIn=Br,S.map=Dp,S.mapKeys=Cst,S.mapValues=Est,S.matches=dlt,S.matchesProperty=hlt,S.memoize=Mp,S.merge=bst,S.mergeWith=Z6,S.method=mlt,S.methodOf=glt,S.mixin=KA,S.negate=Op,S.nthArg=Clt,S.omit=xst,S.omitBy=Ast,S.once=pot,S.orderBy=eot,S.over=Elt,S.overArgs=Cot,S.overEvery=blt,S.overSome=xlt,S.partial=DA,S.partialRight=j6,S.partition=not,S.pick=vst,S.pickBy=tI,S.property=lI,S.propertyOf=Alt,S.pull=eit,S.pullAll=_6,S.pullAllBy=nit,S.pullAllWith=rit,S.pullAt=iit,S.range=vlt,S.rangeRight=Blt,S.rearg=Eot,S.reject=oot,S.remove=oit,S.rest=bot,S.reverse=SA,S.sampleSize=lot,S.set=yst,S.setWith=Tst,S.shuffle=aot,S.slice=sit,S.sortBy=fot,S.sortedUniq=hit,S.sortedUniqBy=mit,S.split=qst,S.spread=xot,S.tail=git,S.take=pit,S.takeRight=Cit,S.takeRightWhile=Eit,S.takeWhile=bit,S.tap=Mit,S.throttle=Aot,S.thru=Ip,S.toArray=X6,S.toPairs=eI,S.toPairsIn=nI,S.toPath=wlt,S.toPlainObject=J6,S.transform=kst,S.unary=vot,S.union=xit,S.unionBy=Ait,S.unionWith=vit,S.uniq=Bit,S.uniqBy=yit,S.uniqWith=Tit,S.unset=Rst,S.unzip=LA,S.unzipWith=M6,S.update=wst,S.updateWith=Sst,S.values=Rf,S.valuesIn=Lst,S.without=kit,S.words=oI,S.wrap=Bot,S.xor=Rit,S.xorBy=wit,S.xorWith=Sit,S.zip=Lit,S.zipObject=Iit,S.zipObjectDeep=Dit,S.zipWith=_it,S.entries=eI,S.entriesIn=nI,S.extend=Q6,S.extendWith=Pp,KA(S,S),S.add=Llt,S.attempt=sI,S.camelCase=Mst,S.capitalize=rI,S.ceil=Ilt,S.clamp=Ist,S.clone=Tot,S.cloneDeep=Rot,S.cloneDeepWith=wot,S.cloneWith=kot,S.conformsTo=Sot,S.deburr=iI,S.defaultTo=clt,S.divide=Dlt,S.endsWith=Ost,S.eq=Yi,S.escape=Ust,S.escapeRegExp=Nst,S.every=jit,S.find=Wit,S.findIndex=S6,S.findKey=ost,S.findLast=Git,S.findLastIndex=L6,S.findLastKey=sst,S.floor=_lt,S.forEach=U6,S.forEachRight=N6,S.forIn=lst,S.forInRight=ast,S.forOwn=cst,S.forOwnRight=ust,S.get=OA,S.gt=Lot,S.gte=Iot,S.has=hst,S.hasIn=UA,S.head=D6,S.identity=yr,S.includes=Qit,S.indexOf=Grt,S.inRange=Dst,S.invoke=pst,S.isArguments=Oc,S.isArray=Vt,S.isArrayBuffer=Dot,S.isArrayLike=vr,S.isArrayLikeObject=sn,S.isBoolean=_ot,S.isBuffer=ia,S.isDate=Mot,S.isElement=Oot,S.isEmpty=Uot,S.isEqual=Not,S.isEqualWith=Pot,S.isError=_A,S.isFinite=Fot,S.isFunction=Zs,S.isInteger=z6,S.isLength=Up,S.isMap=W6,S.isMatch=Kot,S.isMatchWith=Vot,S.isNaN=$ot,S.isNative=Hot,S.isNil=zot,S.isNull=jot,S.isNumber=G6,S.isObject=ze,S.isObjectLike=Qe,S.isPlainObject=um,S.isRegExp=MA,S.isSafeInteger=Wot,S.isSet=q6,S.isString=Np,S.isSymbol=jr,S.isTypedArray=kf,S.isUndefined=Got,S.isWeakMap=qot,S.isWeakSet=Xot,S.join=Qrt,S.kebabCase=Pst,S.last=pi,S.lastIndexOf=Zrt,S.lowerCase=Fst,S.lowerFirst=Kst,S.lt=Yot,S.lte=Jot,S.max=Mlt,S.maxBy=Olt,S.mean=Ult,S.meanBy=Nlt,S.min=Plt,S.minBy=Flt,S.stubArray=$A,S.stubFalse=HA,S.stubObject=ylt,S.stubString=Tlt,S.stubTrue=klt,S.multiply=Klt,S.nth=tit,S.noConflict=plt,S.noop=VA,S.now=_p,S.pad=Vst,S.padEnd=$st,S.padStart=Hst,S.parseInt=jst,S.random=_st,S.reduce=rot,S.reduceRight=iot,S.repeat=zst,S.replace=Wst,S.result=Bst,S.round=Vlt,S.runInContext=$,S.sample=sot,S.size=cot,S.snakeCase=Gst,S.some=uot,S.sortedIndex=lit,S.sortedIndexBy=ait,S.sortedIndexOf=cit,S.sortedLastIndex=uit,S.sortedLastIndexBy=fit,S.sortedLastIndexOf=dit,S.startCase=Xst,S.startsWith=Yst,S.subtract=$lt,S.sum=Hlt,S.sumBy=jlt,S.template=Jst,S.times=Rlt,S.toFinite=tl,S.toInteger=Wt,S.toLength=Y6,S.toLower=Qst,S.toNumber=Ci,S.toSafeInteger=Qot,S.toString=Ce,S.toUpper=Zst,S.trim=tlt,S.trimEnd=elt,S.trimStart=nlt,S.truncate=rlt,S.unescape=ilt,S.uniqueId=Slt,S.upperCase=olt,S.upperFirst=NA,S.each=U6,S.eachRight=N6,S.first=D6,KA(S,function(){var a={};return Ko(S,function(u,g){le.call(S.prototype,g)||(a[g]=u)}),a}(),{chain:!1}),S.VERSION=r,Gn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){S[a].placeholder=S}),Gn(["drop","take"],function(a,u){Jt.prototype[a]=function(g){g=g===e?1:I(Wt(g),0);var x=this.__filtered__&&!u?new Jt(this):this.clone();return x.__filtered__?x.__takeCount__=U(g,x.__takeCount__):x.__views__.push({size:U(g,pr),type:a+(x.__dir__<0?"Right":"")}),x},Jt.prototype[a+"Right"]=function(g){return this.reverse()[a](g).reverse()}}),Gn(["filter","map","takeWhile"],function(a,u){var g=u+1,x=g==fe||g==mr;Jt.prototype[a]=function(y){var L=this.clone();return L.__iteratees__.push({iteratee:Dt(y,3),type:g}),L.__filtered__=L.__filtered__||x,L}}),Gn(["head","last"],function(a,u){var g="take"+(u?"Right":"");Jt.prototype[a]=function(){return this[g](1).value()[0]}}),Gn(["initial","tail"],function(a,u){var g="drop"+(u?"":"Right");Jt.prototype[a]=function(){return this.__filtered__?new Jt(this):this[g](1)}}),Jt.prototype.compact=function(){return this.filter(yr)},Jt.prototype.find=function(a){return this.filter(a).head()},Jt.prototype.findLast=function(a){return this.reverse().find(a)},Jt.prototype.invokeMap=Xt(function(a,u){return typeof a=="function"?new Jt(this):this.map(function(g){return im(g,a,u)})}),Jt.prototype.reject=function(a){return this.filter(Op(Dt(a)))},Jt.prototype.slice=function(a,u){a=Wt(a);var g=this;return g.__filtered__&&(a>0||u<0)?new Jt(g):(a<0?g=g.takeRight(-a):a&&(g=g.drop(a)),u!==e&&(u=Wt(u),g=u<0?g.dropRight(-u):g.take(u-a)),g)},Jt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Jt.prototype.toArray=function(){return this.take(pr)},Ko(Jt.prototype,function(a,u){var g=/^(?:filter|find|map|reject)|While$/.test(u),x=/^(?:head|last)$/.test(u),y=S[x?"take"+(u=="last"?"Right":""):u],L=x||/^find/.test(u);!y||(S.prototype[u]=function(){var P=this.__wrapped__,V=x?[1]:arguments,H=P instanceof Jt,et=V[0],nt=H||Vt(P),st=function(Zt){var ie=y.apply(S,Ht([Zt],V));return x&&xt?ie[0]:ie};nt&&g&&typeof et=="function"&&et.length!=1&&(H=nt=!1);var xt=this.__chain__,Rt=!!this.__actions__.length,Mt=L&&!xt,qt=H&&!Rt;if(!L&&nt){P=qt?P:new Jt(this);var Ot=a.apply(P,V);return Ot.__actions__.push({func:Ip,args:[st],thisArg:e}),new xr(Ot,xt)}return Mt&&qt?a.apply(this,V):(Ot=this.thru(st),Mt?x?Ot.value()[0]:Ot.value():Ot)})}),Gn(["pop","push","shift","sort","splice","unshift"],function(a){var u=Ec[a],g=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",x=/^(?:pop|shift)$/.test(a);S.prototype[a]=function(){var y=arguments;if(x&&!this.__chain__){var L=this.value();return u.apply(Vt(L)?L:[],y)}return this[g](function(P){return u.apply(Vt(P)?P:[],y)})}}),Ko(Jt.prototype,function(a,u){var g=S[u];if(g){var x=g.name+"";le.call(Fn,x)||(Fn[x]=[]),Fn[x].push({name:u,func:g})}}),Fn[yp(e,O).name]=[{name:"wrapper",func:e}],Jt.prototype.clone=int,Jt.prototype.reverse=ont,Jt.prototype.value=snt,S.prototype.at=Oit,S.prototype.chain=Uit,S.prototype.commit=Nit,S.prototype.next=Pit,S.prototype.plant=Kit,S.prototype.reverse=Vit,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=$it,S.prototype.first=S.prototype.head,Tc&&(S.prototype[Tc]=Fit),S},Vs=Af();ui?((ui.exports=Vs)._=Vs,ac._=Vs):Ye._=Vs}).call(yn)})(fr,fr.exports);const lR=fr.exports;function hV(n,t,e,r){H0(n,{className:"status-input",defaultValue:t,onChange:e,onKeyDown:r,maxLength:32})}const Cb=["Blue","Grey","Yellow","Red","Green","Purple"];function mV(){const n=B("div",["status-color-palette"],null);for(const t of Cb){const e=B("button",["status-box-button"],null);e.setAttribute("data-color",fr.exports.lowerCase(t)),e.setAttribute("title",D.t(`status.color.${fr.exports.lowerCase(t)}`)),n.appendChild(e)}return n}class gV{constructor(){m(this,"root",mV());m(this,"changeColor",t=>{for(const r of Array.from(this.root.querySelectorAll(":scope > button")))r.classList.remove("selected");const e=this.root.querySelector(`button[data-color="${fr.exports.lowerCase(t)}"]`);e==null||e.classList.add("selected")})}}function aR(n){localStorage.setItem(`statusBox.lastColor.${fr.exports.lowerCase(n.color)}`,n.title)}function cR(n){var t;return(t=localStorage.getItem(`statusBox.lastColor.${fr.exports.lowerCase(n)}`))!=null?t:D.t(`status.colorDefaultTitle.${fr.exports.lowerCase(n)}`)}function uR(){var i;const n=Cb[0],t=(i=cR(n))!=null?i:D.t(`status.colorDefaultTitle.${fr.exports.lowerCase(n)}`);return{insert:" ",attributes:{id:rt(),type:"status",box:!0,title:t,subtle:!0,created:Date.now(),color:n}}}const gg=_("StatusBoxEditor");class Eb{constructor(t){m(this,"linkPopup",null);m(this,"boxElement");m(this,"statusPalette",new gV);m(this,"isEditing",!1);m(this,"editorStatus",t=>{if(!this.editor.isWritable())return;const e=this.editor.getBoxData(t);this.linkPopup=new mu(this.createPopupContent(e.title,e.color,e.subtle),{id:"status-box-popup"}),this.linkPopup.on("show",this.handleShow),this.linkPopup.on("close",this.handClose),this.linkPopup.manualShow(t,{theme:"light",placement:"bottom-start",offset:[5,5]}),this.boxElement=t});m(this,"handleShow",()=>{this.focus()});m(this,"handClose",()=>{var r;p(gg,this.boxElement,"boxElement not found");const t=this.editor.getBoxData(this.boxElement),e=Q(this.boxElement);if(p(gg,e,"block not found"),t.title)if(t.title.length>32){const i=t.title.slice(0,32),o={...t,title:i};this.editor.updateBoxData(o,{noFocus:!0}),aR(o)}else aR(t);else{const i=fl(e,this.boxElement);this.editor.deleteTextFromBlock(e,i.start,1)}this.editor.focus(),(r=this.linkPopup)==null||r.destroy(),this.linkPopup=null,this.boxElement=void 0,this.isEditing=!1});m(this,"handleKeyDown",(t,e)=>{var r;e||t.key==="Enter"&&((r=this.linkPopup)==null||r.close(null))});m(this,"onColorChange",t=>{var o,s;if(!(t.target instanceof HTMLElement)||t.target.closest("[data-color]")===null)return;const e=fr.exports.capitalize(t.target.getAttribute("data-color"));p(gg,this.boxElement,"boxElement not found");const r=this.editor.getBoxData(this.boxElement);this.statusPalette.changeColor(e);const i={...r,color:e};if(!this.isEditing){const l=(s=(o=this.linkPopup)==null?void 0:o.popper)==null?void 0:s.querySelector("input"),c=cR(e);l&&(l.value=c),i.title=c}this.editor.updateBoxData(i,{noFocus:!0}),this.focus()});m(this,"onTitleChange",t=>{const e=t.target.value;p(gg,this.boxElement,"boxElement not found");const i={...this.editor.getBoxData(this.boxElement),title:e.trim()};this.editor.updateBoxData(i,{noFocus:!0}),this.isEditing=!0});this.editor=t,this.statusPalette.root.addEventListener("click",this.onColorChange)}focus(){setTimeout(()=>{var t,e,r,i,o,s;(r=(e=(t=this.linkPopup)==null?void 0:t.popper)==null?void 0:e.querySelector("input"))==null||r.focus(),(s=(o=(i=this.linkPopup)==null?void 0:i.popper)==null?void 0:o.querySelector("input"))==null||s.select()},100)}createPopupContent(t,e,r){const i=B("div",["status-box-editor-popup"],null);return hV(i,t,this.onTitleChange,this.handleKeyDown),this.isEditing=!1,i.appendChild(this.statusPalette.root),this.statusPalette.changeColor(e),i}destroy(){var t;(t=this.linkPopup)==null||t.destroy()}}const Sct="";class fR{constructor(t){m(this,"onMouseOver",t=>{const e=t.target;if(e.hasAttribute("data-editor-overflow-tooltip"))if(this.check(e)){const r=e.getAttribute("data-editor-overflow-tooltip");e.setAttribute(`data-editor-tooltip-${this.editor.clientId}`,r)}else e.removeAttribute(`data-editor-tooltip-${this.editor.clientId}`)});this.editor=t,this.editor.rootContainer.addEventListener("mouseover",this.onMouseOver)}check(t){return t.scrollWidth>t.offsetWidth}destroy(){this.editor.rootContainer.removeEventListener("mouseover",this.onMouseOver)}static create(t,e){const r=B("a",t,null,this.replaceTitleSpace(e));return r.setAttribute("data-editor-overflow-tooltip",this.replaceTitleSpace(e)),r}static replaceTitleSpace(t){return t.replace(/\s/g,"\xA0")}}function pV(n,t,e,r){const i=r,{title:o,subtle:s,color:l}=i,c=s?["box-status-common",`box-status-${fr.exports.lowerCase(l)}`]:["box-status-common",`box-status-${fr.exports.lowerCase(l)}-subtle`];o||c.push("box-status-empty");const f=fR.create(c,o||D.t("status.empty"));e.appendChild(f),n.addCustom("status-box-overflow-tooltip",h=>new fR(h)),n.addCustom("status-box",h=>new Eb(h))}function CV(n,t){var r;return{abstract:(r=n.getBoxData(t).title)!=null?r:""}}function EV(n,t){n.getCustom("status-box").editorStatus(t)}function bV(n,t){const{title:e}=t;return e!=null?e:""}async function xV(n,t){var s;const{title:e,color:r}=t,i=Cb.indexOf(r),o=[4,6,2,0,3,5];return[{insert:e!=null?e:"",attributes:{[`style-color-${(s=o[i])!=null?s:4}`]:!0}}]}function AV(n,t,e){return t.title.toLowerCase().indexOf(e)>=0}const dR={boxType:"status",updateBoxContent:pV,getBoxProperties:CV,handleClickBox:EV,convertTo:bV,toStandardText:xV,matchText:AV},vV=_("status-box-command");class Lu{static get commands(){return[{id:this.id,name:D.t("status.command.name"),icon:_2,order:650,group:"common",subText:"/status"}]}static insertStatus(t,e,r){var c;const i=t.getBlockByIndex(e,r),o=uR(),{start:s}=t.selection.range;p(vV,Ti(s),"invalid block position"),t.insertBoxToBlock(i,s.offset,o.attributes);const l=t.getBoxById((c=o.attributes)==null?void 0:c.id);t.addCustom("status-box",f=>new Eb(f)).editorStatus(l)}static insertEmptyBlockStatus(t,e,r){var l;let i=t.getBlockByIndex(e,r);(!i||!Te(t,i))&&(i=t.insertTextBlock([],e,r));const o=uR();t.setBlockText(i,[o]);const s=t.getBoxById((l=o.attributes)==null?void 0:l.id);return t.addCustom("status-box",c=>new Eb(c)).editorStatus(s),i}}m(Lu,"id","insert-status");const BV={"en-US":{status:{empty:"Set status",command:{name:"Status"},color:{red:"Red",yellow:"Yellow",green:"Green",blue:"Blue",purple:"Purple",grey:"Gray"},colorDefaultTitle:{red:"Delayed",yellow:"In progress",green:"Done",blue:"Not started",purple:"To be confirmed",grey:"Paused"}}},"zh-CN":{status:{empty:"\u8BBE\u7F6E\u72B6\u6001",command:{name:"\u72B6\u6001"},color:{red:"\u7EA2\u8272",yellow:"\u9EC4\u8272",green:"\u7EFF\u8272",blue:"\u84DD\u8272",purple:"\u7D2B\u8272",grey:"\u7070\u8272"},colorDefaultTitle:{red:"\u5DF2\u5EF6\u671F",yellow:"\u8FDB\u884C\u4E2D",green:"\u5DF2\u5B8C\u6210",blue:"\u672A\u5F00\u59CB",purple:"\u5F85\u786E\u8BA4",grey:"\u5DF2\u6682\u505C"}}},"ja-JP":{status:{empty:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8A2D\u5B9A",command:{name:"\u30B9\u30C6\u30FC\u30BF\u30B9"},color:{red:"\u8D64",yellow:"\u9EC4",green:"\u7EFF",blue:"\u9752",purple:"\u7D2B",grey:"\u7070"},colorDefaultTitle:{red:"\u9045\u5EF6",yellow:"\u9032\u884C\u4E2D",green:"\u5B8C\u4E86",blue:"\u672A\u7740\u624B",purple:"\u672A\u78BA\u8A8D",grey:"\u4E00\u6642\u505C\u6B62"}}}};D.mergeLang(BV);const Da=_("inline-box-items");function yV(n,t,e){return n.undoManager.runInGroup(()=>{var s;let r=n.findBlockByIndex(t,e);(!r||!Te(n,r))&&(r=n.insertTextBlock([],t,e));const i=iR();n.setBlockText(r,[i]);const o=(s=i.attributes)==null?void 0:s.id;return p(Da,o,"mathjax box id is empty"),setTimeout(()=>{const l=n.getBoxById(o);mg(n,l)},100),r})}function TV(n,t,e){let r=n.findBlockByIndex(t,e),i="bottom-start";return(!r||!Te(n,r))&&(i="top-start",r=n.insertTextBlock([],t,e)),$d(n,{target:r,linkText:"",linkUrl:"",onFinished:(l,c)=>{n.undoManager.runInGroup(()=>{try{p(Da,r,"block not found"),Te(n,r)||(r=n.insertTextBlock([],t,e));const f=ti(l,{link:c}),h=ti(" ",null),C=[f,h];n.insertTextToBlock(r,0,C),n.selection.selectBlock(r,$n(C)),n.focus()}catch(f){Da.error(f)}})},onClose:()=>{n.focus()},placement:i}),r}function kV(n,t,e){return n.undoManager.runInGroup(()=>{var l;const r=n.getBlockByIndex(t,e),i=n.selection.range;p(Da,Ti(i.start),"invalid block position");const o=iR();n.insertBoxToBlock(r,i.start.offset,o.attributes);const s=(l=o.attributes)==null?void 0:l.id;return p(Da,s,"mathjax box id is empty"),setTimeout(()=>{const c=n.getBoxById(s);mg(n,c)},100),r})}function RV(n,t,e){const r=n.getBlockByIndex(t,e),i=n.selection.range;p(Da,Ti(i.start),"invalid block position");const o=qo(n,r,i);if(o.length===0)return;const s=o[0],l=Qo(n,r,"quick-menu-inline-link",s);$d(n,{target:l,linkText:"",linkUrl:"",onFinished:(h,C)=>{n.undoManager.runInGroup(()=>{try{const E=n.getBlockText(r),b=ns(E,i.start.offset,h,{link:C});n.setBlockText(r,b),n.selection.selectBlock(r,i.start.offset+h.length),n.focus()}catch(E){Da.error(E)}})},onClose:()=>{n.focus()},placement:"bottom-start"})}class hR{getCommands(){return[{id:"insert-math",name:D.t("quickMenu.inlineBox.math"),icon:YT,order:900,group:"common",subText:Qn("insert-math")},{id:"insert-link",name:D.t("quickMenu.inlineBox.link"),icon:gE,order:400,group:"common",subText:Qn("insert-link")},...Lu.commands]}async handleUpdateBlockCore(t,e){switch(e.item.id){case"insert-math":return kV(t,e.containerId,e.blockIndex);case"insert-link":return RV(t,e.containerId,e.blockIndex);case Lu.id:return Lu.insertStatus(t,e.containerId,e.blockIndex);default:return null}}async handleInsertEmptyBlockCore(t,e){switch(e.item.id){case"insert-math":return yV(t,e.containerId,e.blockIndex);case"insert-link":return TV(t,e.containerId,e.blockIndex);case Lu.id:return Lu.insertEmptyBlockStatus(t,e.containerId,e.blockIndex);default:return null}}async executeCommand(t,e,r){if(r.from==="quick-menu"||r.from==="add-block-menu"){const i=t.getBlockById(r.blockId),o=t.getParentContainer(i),s=ft(o),l=t.getBlockIndex(i);t.undoManager.runInGroup(()=>this.handleUpdateBlockCore(t,{item:e,containerId:s,blockIndex:l}))}else r.from==="block-menu"&&t.undoManager.runInGroup(()=>this.handleInsertEmptyBlockCore(t,{item:e,containerId:r.containerId,blockIndex:r.blockIndex}));return null}}const mR=(n,t)=>{var e;return(e=n.children)==null?void 0:e.map(r=>({...r,itemType:"insert-block",commandProvider:t,children:mR(r,t)}))};function wV(n,t){var o,s;const{withPlainText:e}=t,r=(s=(o=n.options.componentsOptions)==null?void 0:o.quickMenu)==null?void 0:s.commandProviders;if(!r)return[];const i=[];return[...r,new Jk(e),new hR].forEach(l=>{const c=l.getCommands(n,t);i.push(...c.map(f=>({...f,itemType:"insert-block",commandProvider:l,children:mR(f,l)})))}),i}function SV(n,t,e){const r=[];return n.editorBlocks.forEach(i=>{if(!i.getOptions)return;const o=i.getOptions(n);!o.insertBlockCommandItems||(o.insertBlockCommandItems.forEach(s=>{Yk(s,o,i.blockType)}),r.push(...o.insertBlockCommandItems))}),r.push(...wV(n,e)),e.ignoreFilter?r:r.filter(i=>{var o,s;return(s=(o=i.shouldShown)==null?void 0:o.call(i,t,e.type))!=null?s:!0})}function bb(n,t,e){const r=SV(n,t,e),i=new Map;r.forEach(l=>{var h,C;const c=(h=l.group)!=null?h:"";let f=i.get(c);f?f.items.push(l):(f={group:c,order:l.groupOrder||Qk[c]||1e3,items:[l],hide:(C=l.hideGroupItem)!=null?C:!1},i.set(c,f))});const o=Array.from(i.values());o.sort((l,c)=>l.order-c.order),o.forEach(l=>{l.items.sort((c,f)=>{var h,C;return((h=c.order)!=null?h:0)-((C=f.order)!=null?C:0)})});const s=[];return o.forEach((l,c)=>{const f=`blockMenu.section.${l.group||"common"}`,h=D.t(f),C=h===f?l.group:h;l.hide||s.push({id:`section-${c}`,name:C,type:"section",group:l.group,itemType:"insert-block"}),s.push(...l.items.map(E=>({...E})))}),s}function LV(n,t,e){const r=n.getFocusedBlock();if(!r)return;const i=n.getParentContainer(r),o=ft(i);let l=n.getBlockIndex(r);Te(n,r)||(l+=1);const c=e.trigger?"quick-menu":"add-block-menu";if(t.commandProvider){n.emit("beforeExecCommand",n,t,{source:c}),t.commandProvider.executeCommand(n,t,{from:c,...e});return}if(!t.blockOptions||!t.blockOptions.handleInsertEmptyBlock)return;n.emit("beforeExecCommand",n,t,{source:c});const f=T1(n,o,t.blockType);t.blockOptions.handleInsertEmptyBlock(n,{containerId:o,blockIndex:l,item:{...f==null?void 0:f.item,...t},from:c,data:f==null?void 0:f.data})}const gR=_("quick-menu"),IV={id:"quick-menu",trigger:["/"]},DV=5;class pg{constructor(t,e=IV){m(this,"suggest");m(this,"_items",[]);m(this,"maxHeading");m(this,"firstEmptyOffset",-1);m(this,"currentContainerId");m(this,"currentBlockIndex",-1);m(this,"queryItems",async(t,e)=>{if(this.initMenuItems(),this.refreshMenuItems(),e){const r=new Set,i=e.toLocaleLowerCase().replace(/^\s+|\s+$/g,""),o=this.items.filter(s=>{if(s.type==="section")return!0;if(s.name.toLocaleLowerCase().indexOf(i)!==-1||NN(s).toLocaleLowerCase().indexOf(i)!==-1)return r.add(s.group),!0;const l=`blockMenu.section.${s.group||"common"}`,c=D.t(l),f=c===l?s.group:c;return(f==null?void 0:f.toLocaleLowerCase().indexOf(i))!==-1?(r.add(s.group),!0):!1}).filter(s=>s.type==="section"?r.has(s.group):!0);return o.length?this.firstEmptyOffset=-1:this.handleEmptySearch(),o}return this.items});m(this,"onClose",()=>{this.firstEmptyOffset=-1});m(this,"onShow",(t,e,r,i)=>{this.currentContainerId=e,this.currentBlockIndex=r;const o=this.editor.getBlockByIndex(e,r);if(!Qr(o)){const s=Q(ot(o));if(s&&Tt(s)==="code")return!1}return!0});m(this,"onClickItem",(t,e)=>{const r=e;r.itemType==="insert-block"&&(p(gR,r.blockOptions||r.commandProvider,"invalid quick item, no block options or command provider"),p(gR,this.suggest.anchor,"invalid suggest, no anchor"),this.options.id==="empty-block-menu"&&this.editor.focus(),LV(this.editor,r,this.suggest.anchor))});this.editor=t,this.options=e,this.items=[],this.maxHeading=ng(),this.suggest=new RE(t,{id:e.id||"quick-menu",trigger:e.trigger,needSpaceBeforeTrigger:!0,autoDeleteTrigger:!0,highlight:!0,onClose:this.onClose,onShow:this.onShow,onClickItem:this.onClickItem,queryItems:this.queryItems})}get selectedBlock(){return this.currentContainerId?this.editor.getBlockByIndex(this.currentContainerId,this.currentBlockIndex):void 0}get items(){return this._items.filter(t=>{var e,r;return(r=(e=t.shouldShown)==null?void 0:e.call(t,this.selectedBlock,"inline"))!=null?r:!0})}set items(t){this._items=t}get menu(){return this.suggest.menu.menu}destroy(){this.suggest.destroy()}initMenuItems(){var i;const t=((i=this.suggest.anchor)==null?void 0:i.trigger)==="/"?"quick-menu":"block-menu",e=this.currentContainerId?this.editor.getBlockByIndex(this.currentContainerId,this.currentBlockIndex):void 0,r=bb(this.editor,e,{withPlainText:!1,from:t,ignoreFilter:!0,type:"inline"});this.items=r}refreshMenuItems(){let t=null,e=0;const r=ng();if(r!==this.maxHeading){const i=new Jk,s=i.getCommands().map(l=>({...l,itemType:"insert-block",commandProvider:i}));for(let l=0;l<this.items.length;l++)this.items[l].group==="basics"&&(t||(t=l),t&&e++);t&&e&&this.items.splice(t,e,...s),this.maxHeading=r}}handleEmptySearch(){const t=this.editor.selection.getFocusedPos();if(this.firstEmptyOffset===-1){if(t.isSimple()){const{offset:e}=t;this.firstEmptyOffset=e-1}}else if(t.isSimple()){const{offset:e}=t;e-this.firstEmptyOffset>DV&&(this.suggest.close(),this.firstEmptyOffset=-1)}}}class zd{constructor(t){m(this,"instance");m(this,"mousedown",!1);m(this,"currentInstance",null);m(this,"attributeName",[]);m(this,"attributeDesc","");m(this,"_lastClickButtonId","");m(this,"observer",null);m(this,"observerCallback",null);m(this,"createContent",t=>{let e="",r=0;for(;r<this.attributeName.length&&!e;)t.hasAttribute(this.attributeName[r])&&(e=t.getAttribute(this.attributeName[r])||""),r++;const i=t.getAttribute(this.attributeDesc);if(!i)return e;const o=B("div",[],null);return B("span",[],o,e),i&&B("span",["editor-tooltip-desc"],o,i),o});m(this,"handleDocumentMouseDown",()=>{this.mousedown=!0,this.editor.domEvents.addEventListener(document,"mouseup",this.handleDocumentMouseUp)});m(this,"handleDocumentMouseUp",()=>{this.mousedown=!1,this.editor.domEvents.removeEventListener(document,"mouseup",this.handleDocumentMouseUp)});m(this,"handleShown",t=>{this.currentInstance&&this.hide(),this.currentInstance=t,this.createObserver()});m(this,"handleHidden",()=>{this.destroyObserver(),this.currentInstance=null});m(this,"handleShow",t=>{var i;const e=t.reference;if(!e||!Ee(document.body,e)||window.isDragging||this.mousedown)return!1;const r=Number.parseInt((i=e.getAttribute("data-tooltip-hide-at"))!=null?i:"",10);if(r&&Date.now()-r<1e3)return!1;if(this._lastClickButtonId===e.getAttribute("data-button-id"))return this._lastClickButtonId="",!1;if(this.attributeName.every(o=>!e.hasAttribute(o)))return!1;if(t.reference){const o={};if(t.reference.hasAttribute("data-editor-tooltip-placement")&&(o.placement=t.reference.getAttribute("data-editor-tooltip-placement")||"top"),t.reference.hasAttribute("data-editor-tooltip-offset-x")||t.reference.hasAttribute("data-editor-tooltip-offset-y")){const l=t.reference.getAttribute("data-editor-tooltip-offset-x"),c=t.reference.getAttribute("data-editor-tooltip-offset-y");o.offset=[l?Number.parseInt(l,10):0,c?Number.parseInt(c,10):0]}t.reference.hasAttribute("data-editor-tooltip-maxwidth")&&(o.maxWidth=Number.parseInt(t.reference.getAttribute("data-editor-tooltip-maxwidth")||"350",10)),t.reference.hasAttribute("data-editor-tooltip-allow-markdown")&&(o.allowHTML=!0);const s=document.body;if(o.appendTo=this.fixContainerForFullscreen(s),Object.keys(o).length&&t.setProps(o),t.reference.hasAttribute(`data-editor-tooltip-${this.editor.clientId}-dynamic`)){const l=t.reference.getAttribute(`data-editor-tooltip-${this.editor.clientId}-dynamic`);t.setContent(l||"")}}return!0});this.editor=t;const e=t.clientId;this.attributeName=[`data-editor-tooltip-${e}`,`data-editor-tooltip-${e}-dynamic`,"data-editor-tooltip-common"],this.attributeDesc=`data-editor-tooltip-desc-${e}`,this.instance=Fp.delegate(document.body,{theme:"editor-tooltip",maxWidth:400,delay:200,target:this.attributeName.map(r=>`[${r}]`).join(","),content:this.createContent,onShow:this.handleShow,onShown:this.handleShown,onHide:this.handleHidden,hideOnClick:!1}),t.domEvents.addEventListener(document,"mousedown",this.handleDocumentMouseDown)}set lastClickButtonId(t){this._lastClickButtonId=t,t&&setTimeout(()=>{this._lastClickButtonId===t&&(this._lastClickButtonId="")},500)}visible(){var t;return(t=this.currentInstance)==null?void 0:t.state.isVisible}hide(){var t;(t=this.currentInstance)!=null&&t.state.isVisible&&this.currentInstance.hide()}destroy(){this.destroyObserver(),this.instance.destroy(),this.editor.domEvents.removeEventListener(document,"mousedown",this.handleDocumentMouseDown),this.editor.domEvents.removeEventListener(document,"mouseup",this.handleDocumentMouseUp)}createObserver(){this.destroyObserver();const t=this.currentInstance;if(!t||!t.reference)return;this.observerCallback=Ue.default(()=>{t.reference.closest("body")||(t.hide(),this.destroyObserver())},200),this.observer=new MutationObserver(this.observerCallback);const e=document.body,r={childList:!0,attributes:!1,subtree:!0};this.observer.observe(e,r)}destroyObserver(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observerCallback&&(this.observerCallback.cancel(),this.observerCallback=null)}fixContainerForFullscreen(t){return t.closest("body")&&document.fullscreenElement&&!document.fullscreenElement.contains(t)?document.fullscreenElement:t}}const _V={"text/style-bold":"bold","text/style-italic":"italic","text/style-underline":"underline","text/style-strikethrough":"line-through","text/style-code":"code","text/style-sub":"subscript","text/style-super":"superscript",link:"link"};function MV(n,t){const e=new Set(Object.keys(_V)),r=t.filter(o=>e.has(o.id));return tg(r)}function Wd(n,t){if(!n.isWritable()||Ni(n))return!1;const e=n.selection.range,r=n.editorCommandProviders.getCommands(e,"shortcut"),o=MV(n,r).find(s=>s.id===`text/${t}`||s.id==="link");return o?(n.editorCommandProviders.executeCommand(e,o,{}),Su.get(n).update("selectionChange"),!0):!1}function OV(n,t){const e=n.selection.focusedBlock;if(!n.isWritable()||!at(n,e))return!1;const r=n.getBlockData(e).heading,i={id:`heading-${t}`,source:"BlockTurnIntoCommandProvider",value:String(t)};return Number(r)===t&&(i.id="text",i.value=null),n.editorCommandProviders.executeCommand(n.selection.range,i,{}),!0}const xb={"CtrlOrCmd+B":n=>Wd(n,"style-bold"),"CtrlOrCmd+I":n=>Wd(n,"style-italic"),"CtrlOrCmd+U":n=>Wd(n,"style-underline"),"CtrlOrCmd+D":n=>Wd(n,"style-strikethrough"),"CtrlOrCmd+K":n=>Wd(n,"link"),...(()=>{const n={};for(let t=1;t<=8;t++)n[`CtrlOrCmd+${t}`]=e=>OV(e,t);return n})()},UV={quickMenu:{basic:{heading:{title:"\u6807\u9898 {heading}",space:"{markdown}\u7A7A\u683C"},unordered:"\u65E0\u5E8F\u5217\u8868",ordered:"\u6709\u5E8F\u5217\u8868",checkbox:"\u5F85\u529E\u5217\u8868",quote:"\u5F15\u7528"},inlineBox:{math:"\u516C\u5F0F",link:"\u94FE\u63A5"}},link:{textLabel:"\u6587\u672C",urlLabel:"\u94FE\u63A5\u5730\u5740",textPlaceholder:"\u8BF7\u8F93\u5165\u6587\u672C",urlPlaceholder:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740",submitText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",edit:"\u7F16\u8F91",remove:"\u53D6\u6D88\u94FE\u63A5"},commands:{unordered:"\u65E0\u5E8F\u5217\u8868",ordered:"\u6709\u5E8F\u5217\u8868",check:"\u5F85\u529E\u5217\u8868",link:"\u94FE\u63A5",quote:"\u5F15\u7528",alignLeft:"\u5DE6\u5BF9\u9F50",alignRight:"\u53F3\u5BF9\u9F50",alignCenter:"\u5C45\u4E2D\u5BF9\u9F50",alignGroup:"\u5BF9\u9F50\u65B9\u5F0F",heading:"\u6807\u9898 {name}",headingGroup:"\u6807\u9898\u6837\u5F0F",text:"\u6B63\u6587"}},NV={quickMenu:{basic:{heading:{title:"Heading {heading}",space:"{markdown}space"},unordered:"Bulleted list",ordered:"Numbered list",checkbox:"To-do list",quote:"Quote"},inlineBox:{math:"Formula",link:"Link"}},link:{textLabel:"Text",urlLabel:"Link address",textPlaceholder:"Please enter text",urlPlaceholder:"Please enter link",submitText:"Confirm",cancelText:"Cancel",edit:"Edit",remove:"Remove link"},commands:{unordered:"Bulleted list",ordered:"Numberer list",check:"To-do list",link:"Link",quote:"Quote",alignLeft:"Align left",alignRight:"Align right",alignCenter:"Center text",alignGroup:"Alignment",heading:"Heading {name}",headingGroup:"Text style",text:"Text"}},PV={quickMenu:{basic:{heading:{title:"\u898B\u51FA\u3057{heading}",space:"{markdown}\u30B9\u30DA\u30FC\u30B9"},unordered:"\u7B87\u6761\u66F8\u304D\u30EA\u30B9\u30C8",ordered:"\u756A\u53F7\u4ED8\u304D\u30EA\u30B9\u30C8",checkbox:"\u30D0\u30C3\u30AF\u30ED\u30B0",quote:"\u5F15\u7528"},inlineBox:{math:"\u6570\u5F0F",link:"URL"}},link:{textLabel:"\u30C6\u30AD\u30B9\u30C8",urlLabel:"URL",textPlaceholder:"\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",urlPlaceholder:"URL \u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",submitText:"OK",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB",edit:"\u7DE8\u96C6",remove:"\u30EA\u30F3\u30AF\u3092\u89E3\u9664"},commands:{unordered:"\u7B87\u6761\u66F8\u304D\u30EA\u30B9\u30C8",ordered:"\u756A\u53F7\u4ED8\u304D\u30EA\u30B9\u30C8",check:"\u30D0\u30C3\u30AF\u30ED\u30B0",link:"URL",quote:"\u5F15\u7528",alignLeft:"\u5DE6\u63C3\u3048",alignRight:"\u53F3\u63C3\u3048",alignCenter:"\u4E2D\u592E\u63C3\u3048",alignGroup:"\u5BF9\u9F50\u65B9\u5F0F",heading:"\u898B\u51FA\u3057{name}",headingGroup:"\u30BF\u30A4\u30C8\u30EB\u30B9\u30BF\u30A4\u30EB",text:"\u672C\u6587"}};D.mergeLang({"zh-CN":UV,"en-US":NV,"ja-JP":PV});const Mct="";function _a(n,...t){const e=ri(...t);return e.classList.remove("editor-button"),e.classList.add("editor-text-button"),n.append(e),e}function pR(n){const t=eg(n);t==null||t.hide();const e=n.findCustom("table-border-bar");e==null||e.closeToolbar()}function FV(n){return B("div",["insert-column-button","drop-marker"],n)}const KV=_("row-height");function CR(n){const t=Kt.fromTable(n),e=n.rows;p(KV,e.length===t.rowCount,"row count mismatch");const r=Array(t.rowCount).fill(0);for(let i=0;i<e.length;){let o=1,l=e[i].getBoundingClientRect().height,c=i+1;for(;c<e.length;){const f=e[c];if(f.cells.length!==0)break;o++,c++,l+=f.getBoundingClientRect().height}for(let f=0;f<o;f++)r[i+f]=l/o;i=c}return r}const VV=_("table-border-bar-dom");function ER(n){var c;const t=Q(n.contentElement);p(VV,t,"no block");const r=xe(t).querySelector(".table-border-bar-container.left"),o=$t(t).offsetLeft-bu,s=((c=n.scrollOptions.paddingLeft)!=null?c:0)+o,l=Math.min(n.contentElement.offsetLeft-o,n.rootElement.scrollLeft-s);r&&(r.style.left=`${-l}px`)}const wl=_("table-border-bar-dom");function Iu(n,t){p(wl,dn(t),"invalid table block");const e=fn(t),r=go(n,t),i=xe(t),o=(C,E,b)=>{const v=B("div",["button-root",E],C),k=B("div",["button-container",E],v);v.setAttribute(`data-${E}-index`,`${b}`),k.setAttribute(`data-editor-tooltip-${n.clientId}`,E==="left"?D.t("table.insertRow"):D.t("table.insertCol")),B("span",["insert-indicator"],k),FV(k)},{selectedRows:s,selectedColumns:l}=LE(n,t),c=()=>{const C=r.querySelector(".table-border-bar-container.top");p(wl,C,"no top border bar container");const E=B("div",["table-border-bar-container","top"],null),b=B("div",["table-border-bar","top"],E),v=UP(e),w=Kt.fromTable(e).colCount;n.selection.range.isSimple()&&o(b,"top",0);for(let O=0;O<w;O++){const M=O===w-1?v[O]+2:v[O],F=B("span",["table-border-bar-cell","top"],b);l.has(O)&&F.classList.add("selected"),F.setAttribute("data-top-index",`${O}`),F.style.width=`${M}px`,n.selection.range.isSimple()&&o(b,"top",O+1)}Uf(C,E)},f=()=>{const C=i.querySelector(".table-border-bar-container.left");p(wl,C,"no left border bar container");const E=B("div",["table-border-bar-container","left"],null),b=B("div",["table-border-bar","left"],E);B("span",["table-border-bar-cell","corner"],b);const v=CR(e);n.selection.range.isSimple()&&o(b,"left",0),Array.from(e.rows).forEach((k,w,O)=>{const M=B("span",["table-border-bar-cell","left"],b);s.has(w)&&M.classList.add("selected"),M.setAttribute("data-left-index",`${w}`);const F=w===O.length-1?v[w]+2:v[w];M.style.height=`${F}px`,n.selection.range.isSimple()&&o(b,"left",w+1)}),Uf(C,E)};c(),f();const h=n.findCustom(mo(t));h&&ER(h)}function bR(n,t){const e=t.target;if(!(e instanceof Element))return;const r=Q(e);p(wl,r&&dn(r),"invalid table block"),Iu(n,r),n.selection.caret.update()}function Cg(n,t){const e=t.target;if(!(e instanceof Element))return;const r=Q(e);p(wl,r&&dn(r),"invalid table block");const i=e.closest(".button-root");if(i){if(i.classList.contains("top")){const o=parseInt(i.getAttribute("data-top-index")||"0",10);vk(n,r,o),Iu(n,r)}else if(i.classList.contains("left")){const o=parseInt(i.getAttribute("data-left-index")||"0",10);GE(n,r,o),Iu(n,r)}}}function Eg(n,t){var s;pR(n),t.preventDefault(),t.stopPropagation();let e=null,r,i;const o=l=>{var c;if(l.target instanceof HTMLElement&&r&&e&&i!==void 0){const f=Q(l.target),h=l.target.closest(".table-border-bar");if(f===e&&h){const C=parseInt((c=l.target.getAttribute(`data-${r}-index`))!=null?c:"0",10),E=Math.min(i,C),b=Math.abs(i-C)+1;_t(l.target,"top")&&r==="top"?YP(n,f,E,b,{reverse:!0}):_t(l.target,"left")&&r==="left"&&JP(n,f,E,b,{reverse:!0})}}l.type==="mouseup"&&(e=null,i=void 0,r=void 0,document.body.removeEventListener("mousemove",o),document.body.removeEventListener("mouseup",o))};t.target instanceof HTMLElement&&_t(t.target,"table-border-bar-cell")&&(e=Q(t.target),_t(t.target,"top")?r="top":_t(t.target,"left")&&(r="left"),r&&e&&(i=parseInt((s=t.target.getAttribute(`data-${r}-index`))!=null?s:"0",10),document.body.addEventListener("mousemove",o),document.body.addEventListener("mouseup",o)))}function xR(n){const t=n.selection.range,e=_d(n,t);e&&Iu(n,e)}function $V(n,t){p(wl,dn(t),"invalid table block");const e=go(n,t),r=xe(t),i=B("div",["table-border-bar-container","top"],e),o=B("div",["table-border-bar-container","left"],r);Iu(n,t),n.domEvents.addEventListener($t(t),"scroll",bR),n.domEvents.addEventListener(i,"click",Cg),n.domEvents.addEventListener(o,"click",Cg),n.domEvents.addEventListener(i,"mousedown",Eg),n.domEvents.addEventListener(o,"mousedown",Eg),n.addListener("afterClearSelection",xR)}function AR(n,t){if(!n.isWritable())return;if(go(n,t).querySelector(".table-border-bar-container")){Iu(n,t);return}$V(n,t)}function vR(n,t){p(wl,dn(t),"invalid table block");const e=go(n,t),r=xe(t),i=e.querySelectorAll(".table-border-bar-container"),o=r.querySelectorAll(".table-border-bar-container");i.forEach(s=>{n.domEvents.removeEventListener(s,"click",Cg),n.domEvents.removeEventListener(s,"mousedown",Eg),s.remove()}),o.forEach(s=>{n.domEvents.removeEventListener(s,"click",Cg),n.domEvents.removeEventListener(s,"mousedown",Eg),s.remove()}),n.domEvents.removeEventListener($t(t),"scroll",bR),n.addListener("afterClearSelection",xR)}function HV(n,t){p(wl,dn(t),"invalid table block");const r=go(n,t).querySelector(".table-border-bar-container.top");return r?r.getBoundingClientRect().height:0}class jV{constructor(t,e){m(this,"toolbar");m(this,"handleSelectionChange",(t,e)=>{!t.isVisible||(e==="delete-columns"?(Bl(this.editor,this.tableBlock,!0,!0),yl(this.editor,this.tableBlock,!0,!0)):e==="delete-rows"?(Bl(this.editor,this.tableBlock,!0,!1),yl(this.editor,this.tableBlock,!0,!1)):(Bl(this.editor,this.tableBlock,!1),yl(this.editor,this.tableBlock,!1)))});m(this,"handleClick",(t,e,r)=>{e.id==="delete-columns"?IE(this.editor.selection.range):e.id==="delete-rows"&&DE(this.editor.selection.range)});m(this,"handleToolbarClose",()=>{this.tableBlock&&_d(this.editor,this.editor.selection.range)===this.tableBlock&&(Bl(this.editor,this.tableBlock,!1),yl(this.editor,this.tableBlock,!1))});this.editor=t,this.tableBlock=e;const r=t.options.componentsOptions.popover;this.toolbar=new gu([],void 0,{id:"table-row-column-toolbar",overflowBoundary:r==null?void 0:r.overflowBoundary,refuseOverflow:!0,tooltipId:this.editor.clientId}),this.toolbar.addListener("selectionChange",this.handleSelectionChange),this.toolbar.addListener("click",this.handleClick),this.toolbar.addListener("close",this.handleToolbarClose)}close(){this.toolbar.close("cancelBar")}update(){var i,o,s;const{selectedColumns:t,selectedRows:e}=LE(this.editor,this.tableBlock);if(!this.editor.isWritable())return;if(t.size>0&&e.size>0){this.toolbar.close("cancelBar");return}if(t.size===0&&e.size===0){this.toolbar.close("cancelBar");return}const r=qo(this.editor,this.tableBlock,this.editor.selection.range)[0];if(!r){this.toolbar.close("cancelBar");return}if(t.size>0){const l={id:"delete-columns",name:D.t("table.deleteSelectCol"),icon:NT};this.toolbar.updateItems([l]);const c=Qo(this.editor,this.tableBlock,"table-row-column-delete",r);this.toolbar.manualShow(c,{placement:"top",offset:[0,5]})}else{const l={id:"delete-rows",name:D.t("table.deleteSelectRow"),icon:UT};this.toolbar.updateItems([l]);const h=xe(this.tableBlock).querySelector(".table-border-bar-container.left").getBoundingClientRect(),C=new DOMRect(Math.max(h.left,r.left-bu),r.top,bu,r.height),E=Qo(this.editor,this.tableBlock,"table-row-column-delete",C);this.toolbar.manualShow(E,{placement:"left",offset:[0,5]});const b=this.editor.options.componentsOptions.popover;(i=this.toolbar.tippyInstance)==null||i.setProps({popperOptions:{modifiers:[{name:"flip",options:{boundary:b==null?void 0:b.overflowBoundary,fallbackPlacements:["left","right"]}}]}})}(s=(o=this.toolbar.tippyInstance)==null?void 0:o.popperInstance)==null||s.update()}destroy(){this.toolbar.destroy(),this.toolbar.removeAllListeners()}}const Ab=_("table-border-bar");class zV{constructor(t,e){m(this,"toolbar");m(this,"resizeObserver",null);m(this,"handleReadonlyChanged",t=>{t.isWritable()?this.update():vR(this.editor,this.tableBlock)});m(this,"handleBlockUpdated",()=>{var t;(t=this.resizeObserver)==null||t.disconnect(),setTimeout(()=>{var r;const e=this.editor.getBlockById(dt(this.tableBlock));(r=this.resizeObserver)==null||r.observe(fn(e))})});m(this,"handleScroll",()=>{var t;(t=this.toolbar)==null||t.update()});m(this,"handleTableResize",()=>{!this.editor.isWritable()||this.update()});this.editor=t,this.tableBlock=e,p(Ab,this.tableBlock,"no table block"),Ab.debug("create table border bar"),AR(this.editor,this.tableBlock),this.resizeObserver=new sa(this.handleTableResize),this.resizeObserver.observe(fn(this.tableBlock));const r=t.getComponentOptions("table");r!=null&&r.hideToolbar||(this.toolbar=new jV(this.editor,this.tableBlock)),this.editor.addListener("readonlyChanged",this.handleReadonlyChanged)}close(){var t;(t=this.toolbar)==null||t.close()}destroy(){var t,e;Ab.debug("destroy table border bar"),(t=this.resizeObserver)==null||t.disconnect(),this.resizeObserver=null,vR(this.editor,this.tableBlock),(e=this.toolbar)==null||e.destroy(),this.editor.removeListener("readonlyChanged",this.handleReadonlyChanged)}update(){var t;AR(this.editor,this.tableBlock),(t=this.toolbar)==null||t.update()}}const WV=_("table-border-bar");class GV{constructor(t){m(this,"activeTableBar",null);m(this,"handleBlockDeleted",(t,e)=>{!this.activeTableBar||(e===this.activeTableBar.tableBlock||Ee(e,this.activeTableBar.tableBlock))&&(this.activeTableBar.destroy(),this.activeTableBar=null)});m(this,"handleSelectionChanged",t=>{setTimeout(()=>{var i;const e=t.selection.range,r=_d(t,e);((i=this.activeTableBar)==null?void 0:i.tableBlock)!==r&&this.activeTableBar&&this.hide(),r&&this.show(r)})});m(this,"handleScroll",()=>{var t;(t=this.activeTableBar)==null||t.handleScroll()});this.editor=t,this.editor.addListener("blockDeleted",this.handleBlockDeleted),this.editor.addListener("selectionChanged",this.handleSelectionChanged)}destroy(){var t;this.editor.removeListener("blockDeleted",this.handleBlockDeleted),this.editor.removeListener("selectionChanged",this.handleSelectionChanged),(t=this.activeTableBar)==null||t.destroy()}show(t){this.activeTableBar?(this.activeTableBar.tableBlock!==t&&this.hide(),this.activeTableBar.update()):this.activeTableBar=new zV(this.editor,t)}update(){var t;(t=this.activeTableBar)==null||t.handleBlockUpdated()}closeToolbar(){var t;(t=this.activeTableBar)==null||t.close()}hide(){!this.activeTableBar||(p(WV,this.activeTableBar,"no active table bar"),this.activeTableBar.destroy(),this.activeTableBar=null)}}function BR(n,t){const e=n.addCustom("table-border-bar",r=>new GV(r));t==="update"&&e.update()}const dr=_("table-cell-menu"),qV="style-bg-color-";class XV{constructor(t){m(this,"activeTableBlock",null);m(this,"targetButton",null);m(this,"manualMenu",null);m(this,"colorPaletteItem",null);m(this,"markedRowAsDanger",!1);m(this,"markedColAsDanger",!1);m(this,"resetAsDangerMarked",()=>{this.markedColAsDanger=!1,this.markedRowAsDanger=!1});m(this,"handlePrevent",(t,e)=>{e.stopPropagation()});m(this,"handleReadonlyChanged",t=>{t.isWritable()||this.hide()});m(this,"handleSelectionChanged",t=>{const e=t.selection.range,r=_d(t,e);if(this.hide(),this.activeTableBlock!==r&&(this.activeTableBlock=r),this.activeTableBlock){const i=Kt.fromBlock(this.activeTableBlock),o=e.isReverse()?e.start:e.end;let s=null;o instanceof yi?t.getBlockById(o.blockId)===this.activeTableBlock?s=i.getCellByContainerId(o.childContainerId):s=this.getCellByChildBlockId(i,o.blockId):o.blockId!==this.activeTableBlock.id&&(s=this.getCellByChildBlockId(i,o.blockId)),s&&this.editor.isWritable()&&this.showCellMenuButton(s)}});m(this,"handleBeforePopupPalette",()=>{var e;const t=this.getSelectedBkgColorIndex();(e=this.colorPaletteItem)==null||e.palette.setColor("backgroundColor",t)});m(this,"createBkgColorItem",()=>{const t=B("div",["cell-background-color-item"],null);B("span",[],t,D.t("table.cellBackground"));const e=this.getSelectedBkgColorIndex();B("button",["item-button"],t).setAttribute("data-color-index",`${e}`);const i=B("span",["item-sub-indicator"],t);return i.innerHTML=cE,t});m(this,"handleCommand",t=>{var i;p(dr,this.activeTableBlock,"no target table block");const e=((i=t.states)==null?void 0:i.includes("checked"))||!1,r=t.value;switch(t.id){case"delete-select-row":DE(rk(this.editor,this.activeTableBlock,!1));break;case"delete-select-col":IE(rk(this.editor,this.activeTableBlock,!0));break;case"merge-cell":tk(this.editor.selection.range);break;case"split-cell":this.handleSplitCell();break;case"row-title":this.handleRowTitle(e);break;case"col-title":this.handleColTitle(e);break;case"stripe-style":this.handleStripeStyle(e);break;case"hide-border":sP(this.editor,this.activeTableBlock,r==="show-border");break;case"show-chart":cP(this.editor,this.activeTableBlock,r==="show-chart"),FE(this.editor,this.activeTableBlock,{updateNow:!0});break}});m(this,"handleToolbarClose",()=>{this.targetButton&&lt(this.targetButton,"active"),(this.markedRowAsDanger||this.markedColAsDanger)&&this.activeTableBlock&&_d(this.editor,this.editor.selection.range)===this.activeTableBlock&&(Bl(this.editor,this.activeTableBlock,!1),yl(this.editor,this.activeTableBlock,!1),this.resetAsDangerMarked()),this.editor.focus()});m(this,"handleSelectionChange",(t,e)=>{if(!!t.isVisible)if(p(dr,this.activeTableBlock,"no target table block"),e==="cell-background-color"&&this.handleBeforePopupPalette(),e==="delete-select-row"){if(this.markedRowAsDanger)return;Bl(this.editor,this.activeTableBlock,!0,!1),yl(this.editor,this.activeTableBlock,!0,!1),this.resetAsDangerMarked(),this.markedRowAsDanger=!0}else if(e==="delete-select-col"){if(this.markedColAsDanger)return;Bl(this.editor,this.activeTableBlock,!0,!0),yl(this.editor,this.activeTableBlock,!0,!0),this.resetAsDangerMarked(),this.markedColAsDanger=!0}else Bl(this.editor,this.activeTableBlock,!1),yl(this.editor,this.activeTableBlock,!1),this.resetAsDangerMarked()});m(this,"handleClick",(t,e)=>{var r;p(dr,this.activeTableBlock,"no target table block"),p(dr,this.targetButton,"no target button"),pR(this.editor),_t(this.targetButton,"active")?(lt(this.targetButton,"active"),(r=this.manualMenu)==null||r.close("clickItem")):(z(this.targetButton,"active"),this.manualMenu?this.manualMenu.updateItems(this.createCommandMenu()):(this.manualMenu=new Al(this.createCommandMenu(),void 0,{id:"table-cell-menu"}),this.manualMenu.on("click",(i,o)=>{var s;this.handleCommand(o),(s=this.manualMenu)==null||s.close("clickItem")}),this.manualMenu.on("selectionChange",this.handleSelectionChange),this.manualMenu.on("close",this.handleToolbarClose)),this.manualMenu.manualShow(this.targetButton,{placement:"right-start"})),e.stopPropagation()});this.editor=t,this.editor.addListener("selectionChanged",this.handleSelectionChanged),this.editor.addListener("readonlyChanged",this.handleReadonlyChanged)}destroy(){var t,e;this.activeTableBlock=null,this.targetButton=null,this.editor.removeListener("selectionChanged",this.handleSelectionChanged),this.editor.removeListener("readonlyChanged",this.handleReadonlyChanged),(t=this.manualMenu)==null||t.destroy(),(e=this.colorPaletteItem)==null||e.destroy()}hide(){var t;(t=this.manualMenu)==null||t.close("cancelBar"),this.targetButton&&(lt(this.targetButton,"active"),this.targetButton.style.display="none")}getCellByChildBlockId(t,e){let r=this.editor.getBlockById(e);for(;r;){const i=r.closest("td");p(dr,i,"no parent cell");const o=Q(i);if(p(dr,o,"no parent block"),fn(o)===t.table)return t.getCellByCellElement(i);r=o}return p(dr,!1,"filed to get cell by child block id"),null}createTargetButton(t){this.targetButton?t.querySelector(`:scope > .${NE}`)||t.appendChild(this.targetButton):(this.targetButton=B("button",[NE],t),this.targetButton.innerHTML=I0,this.editor.domEvents.addEventListener(this.targetButton,"click",this.handleClick),this.editor.domEvents.addEventListener(this.targetButton,"mousedown",this.handlePrevent),this.editor.domEvents.addEventListener(this.targetButton,"dblclick",this.handlePrevent))}showCellMenuButton(t){this.createTargetButton(t.cell),p(dr,this.targetButton,"no target button"),this.targetButton.style.display="inline-block"}handleSplitCell(){if(this.activeTableBlock){const t=Kt.fromBlock(this.activeTableBlock),e=this.editor.selection.range;if(e.isSimple()){const{col:r,row:i}=this.getCellByChildBlockId(t,e.start.blockId);ME(this.editor,this.activeTableBlock,{col:r,row:i})}else OE(this.editor.selection.range)}}getSelectedBkgColorIndex(){var s;p(dr,this.activeTableBlock,"no target table block");const t=this.editor.selection.range,e=vl(this.editor,this.activeTableBlock,t.focus),r=this.editor.getBlockData(this.activeTableBlock),i=e.childContainerId,o=r[`${i}_background`];return o?Number.parseInt((s=o.substring(qV.length))!=null?s:"0",10):-1}createCommandMenu(){p(dr,this.activeTableBlock,"no target table block");const t=this.editor.getBlockData(this.activeTableBlock),e=Z2(this.editor,this.activeTableBlock,this.editor.selection.range);let r=this.editor.selection.range;if(r.isSimple()){const h=vl(this.editor,this.activeTableBlock,r.start);r=pn(this.editor,{anchor:h,focus:h})}const i=Q2(this.editor,this.activeTableBlock,r),o=t.hasRowTitle,s=t.hasColTitle,l=t.isStripeStyle,c=t.noBorder,f=t.chart;return this.colorPaletteItem=new z2("cell-background-color",{color:!1}),this.colorPaletteItem.palette.on("onClick",(h,C)=>{var E;switch(p(dr,this.activeTableBlock,"no target table block"),h){case"clearColor":sk(this.editor,this.activeTableBlock,-1);break;case"backgroundColor":sk(this.editor,this.activeTableBlock,C);break}(E=this.manualMenu)==null||E.close("clickItem")}),[{id:"cell-background-color",name:D.t("table.cellBackground"),element:this.createBkgColorItem(),children:[this.colorPaletteItem]},{id:"separator",name:"",type:"separator"},{id:"merge-cell",name:D.t("table.mergeCell"),states:e?[]:["disabled"]},{id:"split-cell",name:D.t("table.splitCell"),states:i?[]:["disabled"]},{id:"separator",name:"",type:"separator"},{id:"delete-select-row",name:D.t("table.deleteSelectRow")},{id:"delete-select-col",name:D.t("table.deleteSelectCol")},{id:"separator",name:"",type:"separator"},{id:"table-config",name:D.t("table.tableConfigKey"),children:[{id:"row-title",name:D.t("table.tableConfig.rowTitle"),states:o?["checked"]:[]},{id:"col-title",name:D.t("table.tableConfig.colTitle"),states:s?["checked"]:[]},{id:"stripe-style",name:D.t("table.tableConfig.stripeStyle"),states:l?["checked"]:[]},{id:"hide-border",name:c?D.t("table.tableConfig.showBorder"):D.t("table.tableConfig.hideBorder"),value:c?"show-border":"hide-border"},{id:"show-chart",name:f?D.t("table.tableConfig.hideChart"):D.t("table.tableConfig.showChart"),value:f?"hide-chart":"show-chart"}]}]}handleRowTitle(t){p(dr,this.activeTableBlock,"no target table block"),t?rP(this.editor,this.activeTableBlock):nP(this.editor,this.activeTableBlock)}handleColTitle(t){p(dr,this.activeTableBlock,"no target table block"),t?eP(this.editor,this.activeTableBlock):tP(this.editor,this.activeTableBlock)}handleStripeStyle(t){p(dr,this.activeTableBlock,"no target table block"),t?oP(this.editor,this.activeTableBlock):iP(this.editor,this.activeTableBlock)}}function yR(n){n.addCustom("table-cell-menu",t=>new XV(t))}const TR=_("table-container");function vb(n){const t=n.closest("td");return p(TR,t,"no parent cell for a table cell container"),t}function kR(n){const t=fn(n);return Array.from(t.querySelectorAll(':scope > tbody > tr > td > [data-type="editor-container"].child'))}function Bb(n,t,e,r){const i=Kt.fromBlock(n),o=i.getCellByContainerId(ft(t));if(e==="ArrowDown"){const s=i.getBottomCell(o);return s?s.container:null}if(e==="ArrowUp"){const s=i.getTopCell(o);return s?s.container:null}if(e==="ArrowLeft"){const s=i.getLeftCell(o);if(!s)return null;const l=s.container;return r!=null&&r.noWrap&&s.row!==o.row?null:l}if(e==="ArrowRight"){const s=i.getRightCell(o);if(!s)return null;const l=s.container;return r!=null&&r.noWrap&&s.row!==o.row?null:l}p(TR,!1,`invalid navigation type: ${e}`)}const YV=12,JV=90,bg=23,RR=2;class QV{constructor(t){m(this,"scrollTableBlock",null);m(this,"autoScrollDir",null);m(this,"autoScrollTimer",null);m(this,"handleMouseDown",t=>{const e=Ne(t.clientX,t.clientY,{noFilter:!0});if(e&&e instanceof HTMLElement){const r=Q(e);if(r&&Ee(this.editor.rootContainer,r)){const i=fs(r);i&&(this.scrollTableBlock=i,document.addEventListener("mousemove",this.handleAutoScroll))}}});m(this,"handleAutoScroll",PI.default(t=>{if(this.scrollTableBlock){const e=this.editor.getCustom(mo(this.scrollTableBlock)),r=e.rootElement,i=e.scrollOptions.parentContainer,o=r.getBoundingClientRect(),s=window.innerHeight-this.getBarFloatWindowBottom(e),l=i.getBoundingClientRect(),c=Math.min(l.bottom,s),f=Math.max(l.top,0);o.bottom>c&&t.clientY>=c?this.setAutoScroll("bottom"):o.top<f&&t.clientY<=f?this.setAutoScroll("top"):r.scrollLeft>0&&t.clientX<o.left?this.setAutoScroll("left"):r.scrollLeft<r.scrollWidth-r.offsetWidth&&t.clientX>o.right?this.setAutoScroll("right"):this.clearAutoScroll()}},15));m(this,"handleMouseUp",()=>{document.removeEventListener("mousemove",this.handleAutoScroll),setTimeout(()=>{this.scrollTableBlock=null})});m(this,"handleSelectionChanged",t=>{const e=t.selection.range;if(e.isCollapsed()&&e.isSimple()){const r=t.getBlockById(e.start.blockId),i=fs(r);if(i){const o=t.getCustom(mo(i)),s=o.rootElement.getBoundingClientRect(),l=cl(t,r,e.start);if(s.left>l.left){const c=e.start.offset===0?YV:RR;o.rootElement.scrollLeft-=s.left-l.left+c}else if(l.right>s.right){const c=e.start.offset===0?JV:RR;o.rootElement.scrollLeft+=l.right-s.right+c}}}else{const r=t.getBlockById(e.start.blockId),i=fs(r),o=t.getBlockById(e.end.blockId),s=fs(o);if(i&&i===s){const l=t.getCustom(mo(i)),c=l.rootElement.getBoundingClientRect();let f=null;if(e.isSimple())f=e.isReverse()?cl(t,r,e.start):cl(t,o,e.end);else{const h=vb(qr(t,e.start.childContainerId)),C=vb(qr(t,e.end.childContainerId));f=e.isReverse()?h.getBoundingClientRect():C.getBoundingClientRect()}c.left>f.left&&e.isReverse()?l.rootElement.scrollLeft-=c.left-f.left:c.right<f.right&&!e.isReverse()&&(l.rootElement.scrollLeft+=f.right-c.right)}}});m(this,"handleScroll",t=>{X2(t),this.editor.selection.caret.update()});m(this,"handleReset",t=>{X2(t),this.editor.selection.caret.update();const e=this.editor.findCustom("table-border-bar");e&&e.handleScroll(),ER(t)});this.editor=t,this.editor.addListener("selectionChanged",this.handleSelectionChanged),document.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mouseup",this.handleMouseUp)}getBarFloatWindowBottom(t){return t.scrollOptions.barFloatWindowBottom?typeof t.scrollOptions.barFloatWindowBottom=="number"?t.scrollOptions.barFloatWindowBottom:t.scrollOptions.barFloatWindowBottom():0}clearAutoScroll(){this.autoScrollTimer&&(clearInterval(this.autoScrollTimer),this.autoScrollTimer=null,this.autoScrollDir=null)}setAutoScroll(t){this.autoScrollDir&&this.autoScrollDir!==t&&this.clearAutoScroll(),this.autoScrollTimer||(this.autoScrollDir=t,this.autoScrollTimer=window.setInterval(()=>{if(this.scrollTableBlock){const e=this.editor.getCustom(mo(this.scrollTableBlock)),r=e.rootElement,i=e.scrollOptions.parentContainer,o=r.getBoundingClientRect(),s=i===document.documentElement?window.innerHeight:i.offsetHeight,l=window.innerHeight-this.getBarFloatWindowBottom(e),c=i.getBoundingClientRect(),f=Math.min(c.bottom,l),h=Math.max(c.top,0);this.autoScrollDir==="left"&&(r.scrollLeft-=bg,r.scrollLeft<=0&&this.clearAutoScroll()),this.autoScrollDir==="right"&&(r.scrollLeft+=bg,r.scrollLeft>=r.scrollWidth-r.offsetWidth&&this.clearAutoScroll()),this.autoScrollDir==="bottom"&&(i.scrollTop+=bg,(i.scrollTop>=i.scrollHeight-s||o.bottom<=f)&&this.clearAutoScroll()),this.autoScrollDir==="top"&&(i.scrollTop-=bg,(i.scrollTop<=0||o.top>=h)&&this.clearAutoScroll())}},100))}destroy(){document.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mouseup",this.handleMouseUp),this.editor.removeListener("selectionChanged",this.handleSelectionChanged)}}function wR(n){return n.addCustom("table-scroll-events",t=>new QV(t))}const ZV=_("table-doc-change-handler");class t${constructor(t){this.editor=t,this.editor.addListener("docChanged",this.handleDocChanged)}handleDocChanged(t,e){if(!e){const{start:r,end:i}=t.selection.range;if(!t.findBlockById(r.blockId)||!t.findBlockById(i.blockId)){t.selection.selectBlock(t.getBlockByIndex("root",0),0);return}if(Ca(r)){const o=t.getBlockById(r.blockId);if(!dn(o))return;if(p(ZV,Ca(i),"invalid range"),!Vf(t,r.childContainerId)||!Vf(t,i.childContainerId)){t.selection.selectBlock(o,0);return}let s=null,l=null;const c=(f,h)=>{const C=h.getCellById(f.childContainerId),{colIndex:E=0,rowIndex:b=0}=f.custom;let v=-1,k=-1;return(C.col>E||C.col+C.colSpan-1<E)&&(v=C.col),(C.row>b||C.row+C.rowSpan-1<b)&&(k=C.row),v!==-1||k!==-1?De(o,f.childContainerId,{colIndex:v===-1?E:v,rowIndex:k===-1?b:k}):null};if(r.custom){const f=Kt.fromBlock(o);s=c(r,f),l=c(i,f)}(s!==null||l!==null)&&(t.selection.range.isReverse()?t.selection.setSelection(l!=null?l:i,s!=null?s:r):t.selection.setSelection(s!=null?s:r,l!=null?l:i))}}}destroy(){this.editor.removeListener("docChanged",this.handleDocChanged)}}function SR(n){n.addCustom("table-doc-change-handler",t=>new t$(t))}const Co=_("create-content");function LR(n,t,e){var C;const r=new j0(e),i=e.rows,o=e.cols;p(Co,i>=1,`invalid rows: ${i}`),p(Co,o>=1,`invalid cols: ${o}`),p(Co,e.children,"no table children");const s=B("table",[],null),l=(C=e.colsWidth)!=null?C:new Array(e.cols).fill(0),c=B("colgroup",[],s);for(let E=0;E<r.colCount;E++){const b=B("col",[],c);l[E]&&(b.style.width=`${l[E]}px`,b.style.minWidth=`${l[E]}px`)}const f=B("tbody",[],s);let h=0;for(let E=0;E<i;E++){const b=B("tr",[],f);for(let v=0;v<o;v++){const k=r.getCell({col:v,row:E});if(k.virtual)p(Co,k.colSpan>1||k.rowSpan>1,"virtual cell should have colSpan or rowSpan");else{const w=e.children[h],O=B("td",[],b);k.colSpan>1&&(O.colSpan=k.colSpan),k.rowSpan>1&&(O.rowSpan=k.rowSpan);const M=e[Ud(w)];M&&z(O,M),v===0&&e.hasColTitle&&z(O,ek.COL_TITLE_ITEM),n.createChildContainer(t,O,w),h+=1}}}return p(Co,h===e.children.length,"container count mismatch"),s.style.minWidth=`${l.reduce((E,b)=>b+E,0)}px`,e.noBorder&&z(s,"no-border"),e.chart&&z(s,"editor-table-chart"),e.isStripeStyle&&z(s,"stripe"),e.hasRowTitle&&z(s,"row-title"),e.hasColTitle&&z(s,"col-title"),s}function e$(n,t,e,r,i){p(Co,i.type==="table","not table data"),p(Co,ft(e)===t[t.length-1].containerId,"invalid path");const o=i,s=al(r,"div");try{const l=B("div",[],null);l.setAttribute("data-type","table-content");const c=LR(n,t,o);c.classList.add("drag-preview-element"),l.appendChild(c);const f=n.getComponentOptions("table");xk(n),Bk(n),BR(n,"create"),SR(n),f!=null&&f.hideCellMenu||yR(n),IT(n,KE);const h=n.addCustom(mo(r),()=>MP()),C=window.getComputedStyle(e).overflowY,E=C==="auto"||C==="scroll";h.init({parentElement:s,childElement:l,safeRightSpace:50,safeLeftSpace:40,parentContainer:te(e)||!E?n.scrollContainer:e,locatingContainer:te(e)?(f==null?void 0:f.locatingContainer)||n.parent:e,paddingLeft:bu+Od,paddingTop:bu+Od,paddingBottom:Od/2,paddingRight:Od/2,barFloatWindowBottom:f==null?void 0:f.barFloatWindowBottom,allowScrollBarFixed:f==null?void 0:f.allowScrollBarFixed,isSetScale:f==null?void 0:f.isSetScale});const b=wR(n);h.on("scroll",b.handleReset),h.on("resize",b.handleReset),setTimeout(()=>{dP(n,r)})}catch{const c=`invalid table data: ${JSON.stringify(o)}`;Co.error(c);const f=B("div",["error"],s);f.innerText=c}return s}function n$(n,t,e){p(Co,e.type==="table","not table data");const r=e,i=$t(t);try{const o=fn(t),s=Xo(t),l=LR(n,s,r);l.classList.add("drag-preview-element"),o.insertAdjacentElement("afterend",l),o.remove();const c=n.getComponentOptions("table");xk(n),Bk(n),BR(n,"update"),SR(n),c!=null&&c.hideCellMenu||yR(n),KE(n,void 0,t)}catch{const s=`invalid table data: ${JSON.stringify(r)}`;Co.error(s);const l=B("div",["error"],i);l.innerText=s}}function r$(n,t){let e,r,i=!1;if([...t].every(E=>E==="|")?(r=t.length,e=Array(r).fill(""),i=!0):(e=e1(t,"|").split("|"),r=e.length),r<2)return null;const o=3,s=r,l=[];for(let E=0;E<3;E++)e.forEach(b=>{l.push(Sr(n.doc,E===0?b:""))});const c=Array(s).fill(HE),f=l[i?0:s],h=n.doc.getContainerBlocks(f)[0].id;return{blockData:{id:rt(),type:"table",rows:o,cols:s,children:l,colsWidth:c},focusBlockId:h}}function i$(n,t){const e=t.rows,r=t.cols;if(e<1||r<1)return null;const i=[];for(let f=0;f<e;f++)for(let h=0;h<r;h++)i.push(Sr(n.doc));const o=Array(r).fill(HE),s=i[0],l=n.doc.getContainerBlocks(s)[0].id;return{blockData:{id:rt(),type:"table",rows:e,cols:r,children:i,colsWidth:o},focusBlockId:l}}const yb=_("get-selected-containers");function IR(n,t,e,r){p(yb,e.blockId===r.blockId,"only allow select in single table block"),p(yb,dt(t)===e.blockId,"only allow select in single table block");const i=Kt.fromBlock(t),o=i.getCellByContainerId(e.childContainerId),s=i.getCellByContainerId(r.childContainerId);if(e.custom===void 0||r.custom===void 0)return i.getCells(o,s).map(w=>i.getCellContainer(w));const{fromCol:l,toCol:c,fromRow:f,toRow:h}=Oi(t,e,r),C=new Set,E=[];return i.sub({row:f,col:l},{row:h,col:c}).forEach(v=>{v.forEach(k=>{const w=i.getCellByContainerId(k.containerId);w.col<l||w.row<f||w.col+w.colSpan-1>c||w.row+w.rowSpan-1>h||C.has(k.containerId)||(C.add(k.containerId),E.push(w.container))})}),E}function o$(n,t,e){p(yb,t.blockId===e.blockId,"only allow select in single table block");const r=n.getBlockById(t.blockId);return IR(n,r,t,e)}const DR=_("table-selection-to-doc");function s$(n,t){const{start:e,end:r,block:i}=t,o=Tt(i);p(DR,o==="table",`invalid block type: ${o}`);const s=n.getBlockData(i);if(e.isSimple()&&r.isSimple())return ao(n.editorBlocks,n.doc.toJSON(),s);p(DR,!e.isSimple()&&!r.isSimple(),"invalid block pos type");const l=Kt.fromBlock(i),{fromCol:c,toCol:f,fromRow:h,toRow:C}=Oi(i,e,r),E={},b=[],v=n.doc.toJSON();let k={};l.sub({row:h,col:c},{row:C,col:f}).forEach((X,ut)=>{X.forEach((Et,Ct)=>{const wt=Et.containerId;if(b.indexOf(wt)!==-1)return;b.push(wt);let kt;if(Et.virtual){const fe=l.getCellByContainerId(Et.containerId),Or=c+Ct;let mr=fe.col+fe.colSpan-1;mr>f&&(mr=f);const je=mr-Or+1;je>1&&(E[`${wt}_colSpan`]=je);const Tn=h+ut;let tr=fe.row+fe.rowSpan-1;tr>C&&(tr=C);const gr=tr-Tn+1;gr>1&&(E[`${wt}_rowSpan`]=gr),kt=rs()}else{if(kt=c0(n.editorBlocks,v,wt),Et.col+Et.colSpan>f+1){const fe=f-Et.col+1;fe>1&&(E[`${wt}_colSpan`]=fe)}else Et.colSpan>1&&(E[`${wt}_colSpan`]=Et.colSpan);if(Et.row+Et.rowSpan>C+1){const fe=C-Et.row+1;fe>1&&(E[`${wt}_rowSpan`]=fe)}else Et.rowSpan>1&&(E[`${wt}_rowSpan`]=Et.rowSpan)}const{root:oe,...ve}=kt.blocks;k={...k,...ve,[wt]:oe}})});const O=Vd(fn(i)).slice(c,f+1);return{blocks:{root:[{id:rt(),type:o,children:b,colsWidth:O,rows:C-h+1,cols:f-c+1,...E}],...k},meta:{},comments:{}}}const l$=_("ajust-selection-pos");function a$(n,t){if(t.top===0)return!0;for(let e=t.left;e<=t.right;e++)if(n[t.top-1][e]===n[t.top][e])return!1;return!0}function c$(n,t){if(t.left===0)return!0;for(let e=t.top;e<=t.bottom;e++)if(n[e][t.left-1]===n[e][t.left])return!1;return!0}function u$(n,t){if(t.bottom===n.length-1)return!0;for(let e=t.left;e<=t.right;e++)if(n[t.bottom][e]===n[t.bottom+1][e])return!1;return!0}function f$(n,t){if(t.right===n[0].length-1)return!0;for(let e=t.top;e<=t.bottom;e++)if(n[e][t.right]===n[e][t.right+1])return!1;return!0}function d$(n,t,e){const r=t.col,i=t.row,o=e.col,s=e.row,l={left:r,top:i,right:o,bottom:s};let c=!1;do{if(c=!1,!a$(n,l)){l.top--,c=!0;continue}if(!c$(n,l)){l.left--,c=!0;continue}if(!u$(n,l)){l.bottom++,c=!0;continue}if(!f$(n,l)){l.right++,c=!0;continue}}while(c);return l}function h$(n,t,e,r){if(e.custom!==void 0||r.custom!==void 0)return{anchor:e,focus:r};const i=Kt.fromBlock(t),o=i.map(F=>F.containerId),s=i.getCellByContainerId(e.childContainerId),l=i.getCellByContainerId(r.childContainerId),c=Math.min(s.row,l.row),f=Math.max(s.row,l.row),h=Math.min(s.col,l.col),C=Math.max(s.col,l.col),E=d$(o,{row:c,col:h},{row:f,col:C}),b=i.getCell({row:E.top,col:E.left}),v=i.getCell({row:E.bottom,col:E.right}),k=i.getCell({row:E.top,col:E.right}),w=i.getCell({row:E.bottom,col:E.left});let O,M;return s.row<=l.row?s.col<=l.col?(O=b,M=v):(O=k,M=w):s.col<l.col?(O=w,M=k):(O=v,M=b),l$.debug(`move ${O.col}, ${O.row}, -> ${M.col}, ${M.row}`),{anchor:De(t,O.containerId),focus:De(t,M.containerId)}}function _R(n,t,e){if(e.isSimple())return[fn(t).getBoundingClientRect()];const r=fn(t),i=r.getBoundingClientRect(),{fromCol:o,fromRow:s,toCol:l,toRow:c}=Oi(t,e.start,e.end),f=Vd(r),h=f.slice(0,o).reduce((k,w)=>k+w,0),C=h+f.slice(o,l+1).reduce((k,w)=>k+w,0),E=CR(r);let b=E.slice(0,s).reduce((k,w)=>k+w,0);const v=b+E.slice(s,c+1).reduce((k,w)=>k+w,0);if(s===0){const k=HV(n,t);b-=k}return[new DOMRect(i.left+h,i.top+b,C-h,v-b)]}_("table-size");const m$=40;function xg(n){const t=n.querySelector("td");if(!t)return 0;const e=window.getComputedStyle(t),r=Number.parseInt(e.borderLeft,10),i=Number.parseInt(e.borderRight,10);return(r+i)/2}function g$(n,t,e){const r=S1(n,e.container);return r!==void 0?r+xg(t):m$*e.colSpan-xg(t)}function p$(n,t,e,r){let i=0;const o=e.colCount;for(let s=0;s<o;s++){const l=e.getCell({col:s,row:r});if(l.virtual)continue;let c=g$(n,t,l);const f=TB(l.container,{withPadding:!0});f&&f>c&&(c=f),i+=c+xg(t)}return i}function C$(n,t){const e=fn(t),r=Kt.fromTable(e);let i=0;for(let s=0;s<r.rowCount;s++)i=Math.max(i,p$(n,e,r,s));const o=xg(e);return i+=o,i}const ds=_("table-creator");async function E$(n,t){return n.undoManager.runInGroup(()=>{var c,f;const e=t.item,r=(c=e.colCount)!=null?c:5,i=(f=e.rowCount)!=null?f:3,o=i$(n,{cols:r,rows:i});if(!o)return null;const{blockData:s,focusBlockId:l}=o;return n.insertBlock(t.containerId,t.blockIndex,s,Ae(n,l,0))})}class b${constructor(){m(this,"id","insert-table");m(this,"name","Create table");m(this,"element");m(this,"closeable",null);m(this,"colCount");m(this,"rowCount");m(this,"setCloseable",t=>{this.closeable=t});m(this,"destroy",()=>{this.closeable=null});m(this,"getTableCreatorCellId",(t,e)=>`table-creator-cell-${t}-${e}`);m(this,"handleTableCreatorClick",t=>{var E,b;t.preventDefault(),t.stopPropagation();const e=t.target;p(ds,e instanceof HTMLElement,"invalid event target");const r=e.closest(".table-creator");p(ds,r,"no table creator");const i=r.querySelectorAll(".active");if(i.length===0)return;const s=i[i.length-1].id;p(ds,s,"no cell id");const l="table-creator-cell-";if(!s.startsWith(l))return;const f=s.substring(l.length).split("-");p(ds,f.length===2,"invalid cell id");const h=Number.parseInt(f[0],10)+1,C=Number.parseInt(f[1],10)+1;ds.debug(`${h}, ${C}`),this.colCount=C,this.rowCount=h,(E=this.closeable)==null||E.click(this,this.element),(b=this.closeable)==null||b.close("clickItem"),this.handleTableCreatorLeave()});m(this,"handleTableCreatorLeave",()=>{for(let t=0;t<9;t++)for(let e=0;e<9;e++){const r=this.getTableCreatorCellId(t,e),i=document.getElementById(r);i&&lt(i,"active")}});m(this,"handleTableCreatorCellEnter",t=>{const e=t.target;p(ds,e instanceof HTMLElement,"invalid event target");const r=e.id,i="table-creator-cell-";p(ds,r.startsWith(i),"invalid cell id");const s=r.substring(i.length).split("-");p(ds,s.length===2,"invalid cell id");let l=Number.parseInt(s[0],10),c=Number.parseInt(s[1],10);l===0&&c===0&&(l=-1,c=-1);for(let f=0;f<9;f++)for(let h=0;h<9;h++){const C=this.getTableCreatorCellId(f,h),E=document.getElementById(C);p(ds,E,"no cell"),f<=l&&h<=c?z(E,"active"):lt(E,"active")}});this.element=this.createTableCreatorElement()}createTableCreatorElement(){const t=B("div",["table-creator"],null),e=(r,i,o)=>{const s=B("div",["table-creator-cell"],r);return s.id=this.getTableCreatorCellId(i,o),s};t.addEventListener("click",this.handleTableCreatorClick),t.addEventListener("mouseleave",this.handleTableCreatorLeave);for(let r=0;r<9;r++){const i=B("div",["table-creator-row"],t);for(let o=0;o<9;o++)e(i,r,o).addEventListener("mouseenter",this.handleTableCreatorCellEnter)}return t}}function x$(){return new b$}function A$(n){const t=/[\u4e00-\u9fff\u3040-\u309f\u30a0-\u30ff\uac00-\ud7af]/g,e=n.match(t);return e?e.length:0}function MR(n){const t=A$(n);return n.length+t}function v$(n,t,e=[]){let r=0;if(!e||e.length===0)return r;for(let i=n;i<n+t;i+=1)r+=e[i]||0;return r}function B$(n,t){const e=MR(n),r=t-e;return r>0?n+" ".repeat(r):n}function y$(n,t,e,r,i){var l;const o=t,s=new j0(o);if(r==="markdown"||r==="text"){const c=O=>e.blocks[O].map((Z,Y)=>r==="markdown"?e0(n,Z,e,[...i,{containerId:O,blockIndex:Y}]):sd(n,Z,e,[...i,{containerId:O,blockIndex:Y}])),f=O=>c(O).join(" ").replace(/\n/g," ").trim(),h=new Map,C=new Map;for(let O=0;O<s.colCount;O++){let M=0;for(let F=0;F<s.rowCount;F++){const Z=s.getCell({row:F,col:O});let Y="";Z.virtual||(Y=f(Z.containerId)),h.set(`${F},${O}`,Y),M=Math.max(M,MR(Y))}C.set(O,M)}const E=O=>{const M=h.get(`${O.row},${O.col}`)||"",F=C.get(O.col)||0;return B$(M,F)};if(r==="text"){const O=[];for(let M=0;M<s.colCount;M++){const F=E({row:0,col:M});O.push(F)}for(let M=1;M<s.rowCount;M++)for(let F=0;F<s.colCount;F++){const Z=E({row:M,col:F});O.push(Z)}return O.join(`
650
650
  `)}const b=[];let v="|",k="|";for(let O=0;O<s.colCount;O++){const M=E({row:0,col:O});v+=` ${M} |`;const F="-".repeat((C.get(O)||0)+2);k+=`${F}|`}b.push(v),b.push(k);for(let O=1;O<s.rowCount;O++){let M="|";for(let F=0;F<s.colCount;F++){const Z=E({row:O,col:F});M+=` ${Z} |`}b.push(M)}return`${b.join(`
651
651
  `)}
652
652
  `}if(r==="html"){const c=C=>e.blocks[C].map((v,k)=>uC(n,v,e,[...i,{containerId:C,blockIndex:k}])).join(`
@@ -668,7 +668,7 @@ ${l}`:r==="markdown"?`\`\`\`${i.language}
668
668
  ${s}
669
669
  \`\`\`
670
670
  ${l}`:`<p><pre><code>${ym(s)}</code></pre></p>
671
- <p>${ym(l)}</p>`}function UH(n,t){DT(n,qR)}const XR={blockType:"code",blockKind:"complex",createBlockContent:AH,getBlockTextLength:vH,getRangeFromPoint:BH,moveCaret:yH,getCaretRect:TH,updateSelection:kH,clearSelection:RH,getChildContainers:wH,getNextContainer:SH,getSelectedContainers:LH,convertFrom:G$,handleBlockElementUpdated:IH,getOptions:_H,getBlockProperties:MH,convertTo:OH,handleDeleteBlock:UH},YR={...ar,blockType:"code-line"};class NH{constructor(t){m(this,"handleSelectionChange",()=>{const t=this.editor.selection;if(!t.range.isCollapsed())return;const e=t.focusedBlock;if(!qd(this.editor,e))return;const r=e,i=t.range.focus.offset,o=UB(this.editor,r,i,"code-caret");o.scrollIntoView({block:"nearest"}),setTimeout(()=>{o.remove(),this.editor.selection.caret.update()})});this.editor=t,t.addListener("selectionChanged",this.handleSelectionChange)}destroy(){this.editor.removeListener("selectionChanged",this.handleSelectionChange)}}function PH(n){if(!n.isWritable())return!1;const t=n.getFocusedBlock();if(!!qd(n,t)){if(n.selection.range.isCollapsed()){const e=n.selection.range.start;return n.insertTextToBlock(t,e.offset," "),!0}return n.undoManager.runInGroup(()=>{no(n).forEach(r=>{n.insertTextToBlock(r.block,0," ")})}),!0}}function FH(n){if(!n.isWritable())return!1;const t=n.getFocusedBlock();if(!qd(n,t))return;const e=[" "," "];return n.undoManager.runInGroup(()=>{no(n).forEach(i=>{const o=Se(n.getBlockText(i.block));for(let s=0;s<e.length;s++){const l=e[s];if(o.startsWith(l)){n.deleteTextFromBlock(i.block,0,l.length);break}}})}),!0}function KH(n){const t=n.getFocusedBlock(),e=ot(t);if(te(e))return;const r=Q(e);if(!r||Tt(r)!=="code")return;const i=n.selection.range;if(!!i.isSimple()&&!s5(e,i))return f0(n,e),!0}const VH={Tab:PH,"Shift+Tab":FH,"CtrlOrCmd+A":KH},Xd=_("code-text-decorate");class vg{decorateText(t,e,r){if(p(Xd,e.length>0,"invalid path"),e.length===1)return{};const i=e[e.length-2];if(t.doc.getBlockData(i.containerId,i.blockIndex).type!=="code")return{};const s=r;if(s.length===0)return{};const l=Se(s),c=t.doc.getBlockData(i.containerId,i.blockIndex),h=(k=>{if(!k)return Uc.default.languages.plain;const w=k.replace(/\s/g,"").toLocaleLowerCase();return Uc.default.languages[w]||Uc.default.languages.plain})(c.language),C=Uc.default.tokenize(l,h),E=(k,w)=>{if(p(Xd,k,"no token"),typeof k=="string")return[{insert:k,attributes:At.default(w)}];p(Xd,k instanceof Uc.default.Token,"invalid token type");const O=k.content,M=At.default(w);return M[`style-code-${k.type}`]=!0,typeof O=="string"?[{insert:O,attributes:M}]:Array.isArray(O)?O.filter(Y=>Y.length).map(Y=>E(Y,M)).flat():(p(Xd,O instanceof Uc.default.Token,"invalid token"),E(O,M))},v=C.map(k=>E(k,{})).flat();return p(Xd,$n(v)===$n(s),"failed to highlight code, text length mismatch"),{text:v}}}const $H={code:{title:"\u4EE3\u7801",abstract:"\u4EE3\u7801",wrap:"\u6362\u884C",copy:"\u590D\u5236",caption:"\u8BF4\u660E",search:"\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",copySuccess:"\u590D\u5236\u6210\u529F",plainText:"Plain Text"}},HH={code:{title:"Code",abstract:"Code",wrap:"Wrap",copy:"Copy",caption:"Caption",search:"Search",copySuccess:"Copied successfully",plainText:"Plain Text"}},jH={code:{title:"\u30B3\u30FC\u30C9",abstract:"\u30B3\u30FC\u30C9",wrap:"\u6298\u308A\u8FD4\u3059",copy:"\u8907\u88FD",caption:"\u4F8B\u8A3C\u3059\u308B",search:"\u30AD\u30FC\u30EF\u30FC\u30C9\u3067\u691C\u7D22",copySuccess:"\u30B3\u30D4\u30FC\u3055\u308C\u307E\u3057\u305F",plainText:"\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8"}};D.mergeLang({"zh-CN":$H,"en-US":HH,"ja-JP":jH});function zH(n,t,e,r){const i=n.getBlockByIndex(t,e);if(bt(n,i)!==r)return!1;const o=Se(n.getBlockText(i));if(![...o].every(h=>h==="|")||o.length<3||!n.editorBlocks.hasBlock("table"))return!1;const s=n.editorBlocks.getBlockClass("table");if(!s.convertFrom)return!1;const l=s.convertFrom(n,i,{offset:r});if(!l)return!1;const{blockData:c,focusBlockId:f}=l;return c?(n.undoManager.runInGroup(()=>{var C;const h=n.insertBlock(t,e,c,Ae(n,f!=null?f:c.id,0));n.deleteBlock(i),(C=l.onConverted)==null||C.call(l,n,h)}),!0):!1}const WH={mermaid:{blockType:"embed",reg:/^```mermaid$/,data:{embedType:"mermaid"}},flowchart:{blockType:"embed",reg:/^```flowchart$/,data:{embedType:"flowchart"}},plantuml:{blockType:"embed",reg:/^```plantuml$/,data:{embedType:"plantuml"}},code:{blockType:"code",reg:/^```\S+$/},code2:{blockType:"code",reg:/^```$/},table:{blockType:"table",reg:/^\|.+\|.+\|$/},math:{blockType:"embed",reg:/^\$\$.+\$\$$/},image:{blockType:"embed",reg:/^!\[[^\]]*\]\((?<filename>.*?)(?="|\))(?<optionalPart>".*")?\)/,data:{embedType:"image"}},dividing:{blockType:"embed",reg:/^-{3,}$/,data:{embedType:"dividing-line"}},toc:{blockType:"embed",reg:/^\[toc\]/i,data:{embedType:"toc"}}},GH={orderedList:{reg:/^(\d)+(\.|。)$/,blockType:"list",data:{listType:"ordered"}},unorderedList1:{reg:/^\*$/,blockType:"list",data:{listType:"unordered"}},unorderedList2:{reg:/^-$/,blockType:"list",data:{listType:"unordered"}},checkList1:{reg:/^\[\s?\]$/,blockType:"list",data:{listType:"unchecked"}},checkList2:{reg:/^\[X\]$/i,blockType:"list",data:{listType:"checked"}},image:{blockType:"embed",reg:/^!\[[^\]]*\]\((?<filename>.*?)(?="|\))(?<optionalPart>".*")?\)/,data:{embedType:"image"}}};function Bg(n,t,e,r,i){const o=n.getContainerById(t);if(!te(o)){const s=Q(o);if(s&&Pi(s))return!0}return!1}function JR(n,t,e,r,i){if(Bg(n,t))return!1;if(i==="enter"&&zH(n,t,e,r))return!0;const o=n.getBlockByIndex(t,e),s=Se(sr(n.getBlockText(o),r).left),l=i==="enter"?WH:GH;for(const[,c]of Object.entries(l)){if(!s.match(c.reg))continue;return!!n.undoManager.runInGroup(()=>{var v;const h=Om(n,o,c.blockType,{offset:r,data:c.data});if(!h)return null;const{blockData:C,focusBlockId:E}=h;if(!C)return null;const b=n.insertBlock(t,e,C,Ae(n,E!=null?E:C.id,0));return n.deleteBlock(o),(v=h.onConverted)==null||v.call(h,n,b),{newBlock:b,focusBlockId:E}})}return!1}function qH(n,t,e,r){const i=n.getBlockByIndex(t,e);return n.getBlockString(i,{boxReplacement:" "}).substring(0,r)!==">"?!1:(n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,0,r+1),n.updateBlockData(i,{quoted:!0},Ae(n,i,0))}),!0)}const XH={"#":1,"##":2,"###":3,"####":4,"#####":5,"######":6,"#######":7,"########":8};function YH(n,t,e,r){const i=n.getBlockByIndex(t,e),o=n.getBlockString(i,{boxReplacement:" "}).substring(0,r);let s=XH[o];if(!s)return!1;const l=n.getBlockData(i).heading;return l&&l==s&&(s=null),n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,0,r+1),n.updateBlockData(i,{heading:s},Ae(n,i,0))}),!0}function JH(n,t,e,r){return!!(YH(n,t,e,r)||qH(n,t,e,r))}const QH=_("match-text-style");function ZH(n,t){if(n.length<t.length*2+1||!n.endsWith(t)||n.substring(0,n.length-1).endsWith(t))return-1;const e=n.substring(0,n.length-t.length),r=e.lastIndexOf(t);return r===-1?-1:r===0?0:e.substring(r-1).startsWith(t)?-1:r}const tj={"*":{type:"style",styles:["style-italic"],boxType:""},"**":{type:"style",styles:["style-bold"],boxType:""},"***":{type:"style",styles:["style-bold","style-italic"],boxType:""},"~~":{type:"style",styles:["style-strikethrough"],boxType:""},"`":{type:"style",styles:["style-code"],boxType:""},$$:{type:"box",styles:[],boxType:"math"}};function ej(n,t,e,r){var E,b;const i=n.getBlockByIndex(t,e),o=n.getBlockText(i),{left:s}=sr(o,r),l=nC(s),c=$n(s)-l.length,f=Object.entries(tj);for(const[v,k]of f){const w=ZH(l,v);if(w===-1)continue;const O=c+w,M=r,F=v.length,Z=Se(Cn(o,O+F,M-O-F*2).middle);if(k.type==="style"){const Y={};k.styles.forEach(ut=>{Y[ut]=!0});const X=Aa(Z,Y);n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,O,M-O),n.insertTextToBlock(i,O,X)})}else if(k.type==="box")try{const Y=(b=(E=n.editorBoxes.getBoxClass(k.boxType)).convertFrom)==null?void 0:b.call(E,n,Z);if(!Y)continue;n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,O,M-O),n.insertBoxToBlock(i,O,Y)})}catch(Y){QH.warn(`failed to convert to box, ${Y.message}`);continue}return!0}const h=/\[([^\]]+)\]\((https?:\/\/\S+)\)\s*$/,C=l.match(h);if(C){const v=C.index,k=C[1],w=C[2],O=v,M=r,Z={...Xc(o,O),link:w};return n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,O,M-O),n.insertTextToBlock(i,O,Aa(k,Z))}),!0}return!1}class yg{handleAfterInsertText(t,e,r,i,o){if(o===" "){if(Bg(t,e))return!1;if(JH(t,e,r,i)||ej(t,e,r,i))return!0}return!1}handleBeforeKeyDown(t,e){if(!t.selection.range.isSimple())return!1;const{containerId:i,blockIndex:o,offset:s}=t.getTextPosition();if(at(t,t.getBlockByIndex(i,o))){if(Qi(e,"Enter")){if(JR(t,i,o,s,"enter"))return!0}else if(Qi(e,"Space")&&JR(t,i,o,s,"space"))return!0}return!1}}const nj={"en-US":{placeholder:{default:"Type / for commands",heading:"Heading {heading}",list:"List",mention:"Quickly assign tasks and use @ to mention yourself or others",quote:"Quote",title:"Enter document title"}},"zh-CN":{placeholder:{default:"\u8F93\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",heading:"\u6807\u9898{heading}",list:"\u5217\u8868",mention:"\u5FEB\u901F\u5206\u914D\u4EFB\u52A1\uFF0C@\u63D0\u53CA\u81EA\u5DF1\u6216\u4ED6\u4EBA",quote:"\u5F15\u7528",title:"\u8BF7\u8F93\u5165\u6587\u6863\u6807\u9898"}},"ja-JP":{placeholder:{default:"\u300C/\u300D\u3092\u5165\u529B\u3057\u3066\u7D20\u65E9\u304F\u633F\u5165\u3059\u308B",heading:"\u898B\u51FA\u3057{heading}",list:"\u30EA\u30B9\u30C8",mention:"\u81EA\u5206\u3084\u30E1\u30F3\u30D0\u30FC\u3092\uFF20\u3057\u3001\u30BF\u30B9\u30AF\u3092\u7D20\u65E9\u304F\u5272\u308A\u5F53\u3066\u307E\u3059",quote:"\u5F15\u7528",title:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}}};D.mergeLang(nj);function Yd(n,t){const e=so(n,t);return!!(at(n,t)&&e.text&&$n(e.text)===0&&!t.querySelector(".inputting-insertion"))}function QR(n,t){var r;$t(t).removeAttribute("data-content-placeholder"),(r=t.querySelector("[data-type=block-tools] .block-placeholder-container"))==null||r.remove()}function Jd(n,t,e){var i;if(QR(n,t),!Yd(n,t))return;const r=$t(t);if(typeof e=="string")r.setAttribute("data-content-placeholder",e);else{const o=xe(t),s=(i=o.querySelector(".block-placeholder-container"))!=null?i:B("div",["block-placeholder-container"],o);s.innerHTML="",s.appendChild(e)}}function rj(n){const t=n.getAttribute("data-style-heading");return t?D.t("placeholder.heading",{heading:t}):n.getAttribute("data-style-quoted")?D.t("placeholder.quote"):null}function ij(n){const t=n.getAttribute("data-list-type");return t?t==="ordered"||t==="unordered"?D.t("placeholder.list"):D.t("placeholder.mention"):null}function ZR(n){switch(Tt(n)){case"text":return rj(n);case"list":return ij(n);default:return null}}function oj(n){if(Qr(n))return!1;const t=Q(ot(n));return t?Tt(t)==="code":!1}function sj(n){return!Qr(n)}function lj(n,t){var h,C,E,b;const e=n.selection.focusedBlock,r=Tt(e),i=t.contentPlaceholder||D.t("placeholder.default");let o=i;if(r&&Hf(n,r)&&e){if(!n.isBlockWritable(e)||oj(e))return;if(sj(e)){const v=Q(ot(e));(!v||!((C=(h=jt(n,v)).getOptions)!=null&&C.call(h,n).isMenuButtonBaseContainer))&&(o=D.t("placeholder.common.contentInTable"))}o=(E=ZR(e))!=null?E:o}const s=n.getFirstBlock(),l=t.hideTitle?s:ae(s);if(!l)return;const c=ae(l);if(c&&!t.addPlaceholderToAllCurrentEmptyBlock)return;if(!c&&Yd(n,l)){Jd(n,l,(b=ZR(l))!=null?b:i);return}const f=n.getFocusedBlock();!Yd(n,f)||f===s&&!t.hideTitle||Jd(n,f,o)}function aj(n,t){var i,o;const e=n.getFirstBlock(),r=$t(e);Yd(n,e)?(r.setAttribute("data-title-placeholder",(i=t.titlePlaceholder)!=null?i:D.t("placeholder.title")),r.setAttribute("data-title-placeholder-readonly",(o=t.readonlyTitlePlaceholder)!=null?o:"")):(r.removeAttribute("data-title-placeholder"),r.removeAttribute("data-title-placeholder-readonly"))}function cj(n){n.rootContainer.querySelectorAll("[data-content-placeholder").forEach(t=>{t.removeAttribute("data-content-placeholder")}),n.rootContainer.querySelectorAll("[data-type=block-tools] .block-placeholder-container").forEach(t=>{t.remove()})}function uj(n,t){var e;cj(n),n.selection.range.isCollapsed()&&(t.hideTitle||aj(n,t),(e=t.applyContentPlaceholder)!=null&&e.call(t,n)||lj(n,t))}const Vct="";function fj(n){for(let t=0;t<n.length;t++){const e=n[t];if(e.attributes&&Object.keys(e.attributes).length)return!0}return!1}const tw=_("enforce-title");class Db{constructor(t,e={headingLevel:1}){m(this,"handleSelectionChange",t=>{setTimeout(()=>{this.applyPlaceholder(t)})});m(this,"reload",t=>{this.handleChanged(t),this.applyPlaceholder(t)});this.options=e,this.handleChanged(t),this.applyPlaceholder(t),t.addListener("selectionChanged",this.handleSelectionChange),setTimeout(()=>{t.addListener("load",this.reload)})}destroy(t){t.removeListener("selectionChanged",this.handleSelectionChange),t.removeListener("load",this.reload)}handleBeforeKeyDown(t,e){if(!t.selection.range.isSimple())return!1;const{containerId:i,blockIndex:o,offset:s}=t.getTextPosition();if(!this.isDocumentTitleBlock(i,o)||!Qi(e,"Enter"))return!1;let l=!1,c=null;Ai(t.rootContainer)===2&&(c=ol(t.rootContainer,1),bt(t,c)===0&&(l=!0));const f=t.getFirstBlock();return t.undoManager.runInGroup(()=>{t.breakTextBlock(f,s,{forceInsertAfter:!0}),l&&c&&t.deleteBlock(c)}),!0}handleChanged(t){var e,r;try{const i=t.doc.getContainerBlocks(ft(t.rootContainer));p(tw,i.length>0,"root container is empty");const o=i[0];if(o.type!=="text"&&!this.options.hideTitle){const s=oo("",{heading:(e=this.options.headingLevel)!=null?e:1});t.insertBlock(ft(t.rootContainer),0,s,t.selection.range.toDocRange()).setAttribute("data-document-title","");return}if(!this.options.hideTitle){p(tw,o.text,"invalid text block");const s=t.getBlockById(o.id);if(fj(o.text)||o.quoted||o.heading!==this.options.headingLevel){const l=t.getBlockString(s),c=oo(l,{heading:(r=this.options.headingLevel)!=null?r:1,quoted:!1}),f=t.selection.focusedBlock;let h=t.selection.range;const C=t.insertBlock(ft(t.rootContainer),0,c);C.setAttribute("data-document-title",""),f===s&&(h=Ae(t,c.id,bt(t,C))),i0(t,s,h)}else s.setAttribute("data-document-title","")}if(i.length>1||this.options.hideTitle)return;t.insertTextBlock("",ft(t.rootContainer),1,{newRange:t.selection.range.toDocRange()})}finally{this.applyPlaceholder(t)}}handleRemoteChanged(t){setTimeout(()=>{this.applyPlaceholder(t)})}handleUpdateCompositionText(t){this.applyPlaceholder(t)}applyPlaceholder(t){var e,r;!((e=this.options)!=null&&e.titlePlaceholder)&&!((r=this.options)!=null&&r.contentPlaceholder)||uj(t,this.options)}isDocumentTitleBlock(t,e){return t==="root"&&e===0&&!this.options.hideTitle}}function Fi(n){return Tt(n)==="embed"&&Ge(n)==="image"}async function ew(n){return new Promise((t,e)=>{const r=new Image;r.onload=()=>{t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=e,r.src=n})}async function dj(n){const t=await Vc(n);return ew(t)}function Ll(n){return typeof n=="number"}const hj=_("image-data"),Qd=1e3,nw=400,mj=10;function Du(n){return n.src.startsWith("empty:")||!n.src}function gj(n){return n.src.startsWith("http:")||n.src.startsWith("https:")}function rw(n){return`${hm.default(n)}_width`}function iw(n){return`${hm.default(n)}_height`}function ow(n){return`${n}_flex`}function sw(n){let t=n.getBoundingClientRect().width;return t-=Number.parseFloat(window.getComputedStyle(n).paddingLeft)+Number.parseFloat(window.getComputedStyle(n).paddingRight),t}function _u(n){if(n.every(i=>typeof i.flex=="number"&&i.flex))return;const t=100,r=n.map(i=>{const o=i.width==="auto"?Qd:i.width,s=i.height==="auto"?o/t:i.height/t;return o/s}).reduce((i,o)=>i+o,0);n.forEach(i=>{const o=i.width==="auto"?Qd:i.width,s=i.height==="auto"?o/t:i.height/t,l=o/s;i.flex=l/r})}function Mu(n){const t=(i,o)=>{i||(i=`empty:${o}`);const s=rw(i),l=iw(i),c=ow(o);let f=n[s],h=n[l],C=n[c];return typeof f=="string"&&(f=Number.parseInt(f,10)),typeof h=="string"&&(h=Number.parseInt(h,10)),typeof C=="string"&&(C=Number.parseInt(C,10)),{src:i,width:f!=null?f:"auto",height:h!=null?h:"auto",flex:C,virtualSize:!f||!h}};let e=[];const r=n.src;return Array.isArray(r)?e=r.map(t):typeof r=="string"&&(e=r.split("|").map(t)),_u(e),e}function Ki(n){const t=n.embedData;return Mu(n.embedData).length>1?100:t.widthPercent}function pj(n,t,e,r){const i=Mu(t.embedData);if(i.length>1||r)return"100%";const o=Ki(t),s=n.rootContainer.getBoundingClientRect().width;if(o){const l=sw(e);return`${Math.min(s*o/100,l)}px`}return Ll(i[0].width)?`${i[0].width}px`:"auto"}function zn(n,t){const r={src:n.map(i=>i.src).join("|"),widthPercent:t};return n.forEach((i,o)=>{const s=i.src||`empty:${o}`,l=rw(s);l&&Ll(i.width)&&(r[l]=i.width);const c=iw(s);c&&Ll(i.height)&&(r[c]=i.height),p(hj,i.flex,"no image flex");const f=ow(o);r[f]=i.flex}),r}function Cj(n,t,e,r){const i=Mu(t.embedData),o=i.length===1?n.rootContainer:e;if(i.length===1&&r)return`${nw}px`;if(i.some(h=>h.height==="auto"))return"auto";const s=Ki(t);if(!s){if(i.length!==1||Ll(i[0].width))return"";const C=i[0].height;return C==="auto"?"auto":`${C}px`}let l=o.getBoundingClientRect().width*(s/100);if(l-=Number.parseFloat(window.getComputedStyle(o).paddingLeft)+Number.parseFloat(window.getComputedStyle(o).paddingRight),o===n.rootContainer&&o!==e&&(l=Math.min(l,sw(e))),i.length===1){const h=i[0];if(h.virtualSize)return"";const C=h.width==="auto"?Qd:h.width;return`${h.height/(C/l)}px`}l-=(i.length-1)*mj;const c=i.reduce((h,C)=>h+C.flex,0);let f=0;for(const h of i){const C=l*h.flex/c,E=h.width==="auto"?Qd:h.width,b=C/E*h.height;f=Math.max(b,f)}return`${f}px`}function Ej(n){return n.reduce((e,r)=>e+r.flex,0)}function bj(n,t){B("div",["resize-gripper",t],n).setAttribute("data-resize-type",t)}function _b(n){return xe(n).querySelector(".block-resizer")}function xj(n){const t=_b(n);t&&lt(t,"active")}function lw(n,t,e){const r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,s=i.left-r.left,l=i.width,c=i.height;e.style.top=`${o}px`,e.style.left=`${s}px`,e.style.width=`${l}px`,e.style.height=`${c}px`}function Aj(n,t,e,r){const i=_b(n);if(i)return z(i,"active"),lw(n,t,i),i;const o=xe(n),s=B("div",["block-resizer"],o);return lw(n,t,s),e.resize.forEach(l=>{bj(s,l)}),s.addEventListener("mousedown",r),z(s,"active"),s}function Mb(n,t){const e=_b(n);if(!e||!Ee(n,t))return;const r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,s=i.left-r.left,l=i.width,c=i.height;e.style.top=`${o}px`,e.style.left=`${s}px`,e.style.width=`${l}px`,e.style.height=`${c}px`}const $ct="",vj=_("block-resizer");class Zd extends $e.TypedEmitter{constructor(e,r){super();m(this,"resizableElement");m(this,"block",null);m(this,"startRect",null);m(this,"startPos",null);m(this,"resizeType",null);m(this,"enabled",!1);m(this,"handleMouseDown",e=>{e.preventDefault(),e.stopPropagation();const r=this.getResizableElement();if(!r||e.button!==0)return;const i=e.target;if(!i||!(i instanceof HTMLElement))return;const o=i.getAttribute("data-resize-type");!o||(this.bindEvents(),this.startRect=r.getBoundingClientRect(),this.startPos=e,this.resizeType=o,Mf(window.getComputedStyle(i).cursor),this.block&&this.editor.selection.selectBlock(this.block,0))});m(this,"handleMouseMove",e=>{if(!this.startPos||!this.startRect||!this.resizeType||!this.getResizableElement()||!this.block)return;const i=e.x-this.startPos.x,o=e.y-this.startPos.y,s=this.startRect;let{top:l,left:c,right:f,bottom:h}=s;(this.resizeType==="bottom"||this.resizeType==="bottom-left"||this.resizeType==="bottom-right")&&(h+=o),(this.resizeType==="top"||this.resizeType==="top-left"||this.resizeType==="top-right")&&(l+=o),(this.resizeType==="left"||this.resizeType==="top-left"||this.resizeType==="bottom-left")&&(c+=i),(this.resizeType==="right"||this.resizeType==="top-right"||this.resizeType==="bottom-right")&&(f+=i);const C=f>c?f-c:0,E=h>l?h-l:0,b=new DOMRect(c,l,C,E);this.emit("resizing",this,b);const v=this.getResizableElement();v&&Mb(this.block,v)});m(this,"handleMouseUp",e=>{if(e.button!==0)return;Mf(""),this.unbindEvents(),this.emit("resized",this);const r=this.getResizableElement();!r||!this.block||Mb(this.block,r)});this.editor=e,this.options=r}enableResize(e,r){this.block=e,this.resizableElement=r,this.createResizer(),this.enabled=!0}disableResize(){!this.block||(xj(this.block),this.enabled=!1)}update(e,r){this.block=e,this.resizableElement=r,this.getResizableElement()&&this.enabled&&this.createResizer()}updateResizer(){const e=this.getResizableElement();e&&this.block&&Mb(this.block,e)}getBlock(){return this.block}destroy(){}getResizableElement(){return this.resizableElement?this.resizableElement:this.block?$t(this.block):null}createResizer(){const e=this.getResizableElement();!e||!this.block||(p(vj,Ee(this.block,e),"not a block child element"),Aj(this.block,e,this.options,this.handleMouseDown))}bindEvents(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}unbindEvents(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}}const Bj=_("image-dom");function aw(n){return n.querySelector(".uploading-progress-mask")}function yj(n){const t=aw(n);if(t)return t;const e=B("div",["uploading-progress-mask"],n),r=B("div",["uploading-progress-bar"],e);return B("div",["uploading-progress-bar-value"],r),r}function Tj(n){const e=yj(n).querySelector(".uploading-progress-bar-value");return p(Bj,e,"no progress value"),e}function cw(n,t){const e=Tj(n);e.style.width=`${t}%`}function kj(n){var t;(t=aw(n))==null||t.remove()}function th(n,t,e,r){const i=e!=null?e:n.findBlockById(t.id);if(!i)return;const o=r||ot(i),s=!!i.querySelector(".images > .image-container.error, .images > .image-container.empty "),l=pj(n,t,o,s),c=Cj(n,t,o,s),f=$t(i);l==="auto"?f.style.width=l:(f.style.maxWidth=l,f.style.width="100%");const h=i.querySelector(".images");!h||(h.style.height=c||"none")}function Rj(n){let t;return n.forEach((e,r)=>{r.toLocaleLowerCase()==="content-type"&&(t=e)}),t!=null?t:""}async function wj(n){try{const t=await fetch(n,{credentials:"same-origin"}),e=await t.blob(),r=Rj(t.headers).toLocaleLowerCase();let i="";if(r){const s=Wp.default[r].extensions;s&&s.length>0&&(i=s[0])}return new File([e],`${Date.now()}.${i}`,{type:r})}catch{return null}}function Il(n,t){const e=typeof t=="string"?t:dt(t);return n.getCustom(`image-${e}`)}function Tg(n,t){if(!t||!(t instanceof Node))return null;const e=Q(t);return e?Il(n,e):null}function bo(n){return Array.from(n.querySelectorAll(".image-container"))}const Ob=_("table-resize-drag-drop");class Sj{constructor(t,e,r,i){m(this,"cursor","col-resize");m(this,"initWidths");this.editor=t,this.elem=e,this.data=r,this.mouseDownEvent=i;const o=this.data.block,l=Il(this.editor,o).getImages(),c=this.data.splitterIndex;p(Ob,c>=0&&c<l.length-1,`invalid splitter index: ${c}`);const h=bo(o).map(C=>C.getBoundingClientRect().width);this.initWidths=h}onDragStart(t,e,r){if(!this.editor.isWritable())return;const i=this.data.block;Il(this.editor,i).setResizing(!0)}onDragging(t,e,r,i,o){const s=this.data.block,l=Il(this.editor,s),c=At.default(l.getImages()),f=this.data.splitterIndex;p(Ob,f>=0&&f<c.length-1,`invalid splitter index: ${f}`);const h=this.initWidths[f],C=this.initWidths[f+1];if(h+C<100)return;let E=i;h+E<50&&(E=50-h),C-E<50&&(E=C-50);const k=[...this.initWidths];k[f]+=E,k[f+1]-=E;const w=bo(s);p(Ob,w.length===c.length,"invalid image data");const O=k.reduce((Z,Y)=>Z+Y,0);for(let Z=0;Z<c.length;Z++){const Y=k[Z]/O;c[Z].flex=Y,w[Z].style.flexGrow=`${Y}`}const M=At.default(this.editor.getBlockData(s)),F=zn(c,Ki(M));M.embedData=F,th(this.editor,M,s,null)}onDragEnd(t,e,r,i,o){const s=this.data.block,l=Il(this.editor,s),f=bo(s).map(h=>Number.parseFloat(h.style.flexGrow));l.updateFlex(f),l.setResizing(!1)}}function uw(n){var t;return!n||!(n instanceof HTMLElement)?null:_t(n,"image-splitter")?n:(t=n.closest(".image-splitter"))!=null?t:null}function Lj(n,t){var s;const e=uw(t.target);if(!e)return;const r=Q(e);if(!r)return;Il(n,r).setSelectedIndex(-1),n.selection.selectBlock(r,0);const i=Number.parseInt((s=e.getAttribute("data-index"))!=null?s:"",10);if(Number.isNaN(i)||typeof i!="number")return;const o={block:r,splitterIndex:i};t1(new Sj(n,e,o,t))}function Ij(n,t){t.preventDefault(),t.stopPropagation();const e=uw(t.target);if(!e)return;const r=Q(e);!r||Il(n,r).resetFlex()}function Dj(n,t,e,r){const i=B("div",["image-splitter"],e);B("div",["image-splitter-indicator"],i),i.setAttribute("data-index",`${r}`),n.domEvents.addEventListener(i,"mousedown",Lj),n.domEvents.addEventListener(i,"dblclick",Ij)}const _j=_("image-item");function fw(n){return!n||!(n instanceof Node)?null:Q(n)}function dw(n){const t=fw(n);return t?bo(t):[]}function Ub(n){if(!n||!(n instanceof Node))return null;const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest(".image-container");return e||null}function eh(n){const t=Ub(n);return t?dw(n).indexOf(t):-1}async function Mj(n,t){const e=Tg(n,t.target);if(!e)return;const r=eh(t.target);if(r===-1)return;const i=t.target;if(!(i instanceof HTMLImageElement))return;const o=e.getImages()[r];if(Du(o)||n.readonly||!e.isAutoFix()||(setTimeout(()=>{e.setAutoFix(!1)},400),(o.height==="auto"||o.width==="auto")&&e.fixImageSize(r,i),o.virtualSize&&e.fixImageSize(r,i),!o||!gj(o)||o.downloading))return;o.downloading=!0;const s=await wj(o.src);s?e.replaceImage(r,s):_j.warn(`failed to download image: ${o.src}`)}function Oj(n,t,e){if(t.querySelector(".load-error"))return;const i=e.src.startsWith("http:")||e.src.startsWith("https:"),o=B("div",["load-error"],t),s=B("div",["error-icon"],o);s.innerHTML=fE;const l=B("div",["error-message"],o);i?(l.innerHTML=D.t("image.load.remote.failed"),n.domEvents.addEventListener(o,"click",(c,f)=>{f.preventDefault(),f.target instanceof HTMLElement&&f.target.tagName==="A"&&window.open(e.src,"_blank","noreferrer=1")})):(l.innerHTML=D.t("image.load.failed"),n.domEvents.addEventListener(o,"click",(c,f)=>{f.preventDefault(),f.stopPropagation(),f.target instanceof HTMLElement&&f.target.tagName==="A"&&Fj(c,f.target)}))}function Nb(n,t){setTimeout(()=>{if(Ee(n.rootContainer,t)){const e=n.getBlockData(t);th(n,e,null,null)}})}function Uj(n,t){const e=Tg(n,t.target);if(!e)return;const r=eh(t.target);if(r===-1)return;const i=e.getImages()[r];if(!i)return;const o=Ub(t.target);if(!o)return;const s=Q(o);let l=!1;n.doc.buildResourceUrl(i.src,{syncNewResources(c,f){var C,E;n.doc.addResources([c]);const h=(E=(C=n.doc).getServerMeta)==null?void 0:E.call(C).appId;if(i.src&&f!==i.src&&h&&i.src.includes(h)&&s&&!n.readonly&&n.isBlockWritable(s)){const b=At.default(n.getBlockData(s));b.embedData.src=c,n.updateEmbedData(s,b.embedData),l=!0,t.target instanceof HTMLImageElement&&(t.target.src=f)}}}),!l&&(z(o,"error","error-load"),s&&Nb(n,s),o.innerHTML="",Oj(n,o,i))}function Nj(n,t,e){if(t.querySelector(".upload-error"))return;const i=B("div",["upload-error"],t),o=B("div",["error-icon"],i);o.innerHTML=fE;const s=B("div",["error-message"],i);s.innerHTML=D.t("image.upload.failed"),n.domEvents.addEventListener(i,"click",(l,c)=>{if(c.preventDefault(),!c.target||!(c.target instanceof Element)||c.target.tagName!=="A")return;const f=Tg(l,c.target),h=eh(c.target);!f||h===-1||f.replaceImage(h,e)})}function hw(n,t,e,r,i){const o=bo(t)[e];!o||(z(o,"error","error-upload"),Nb(n,t),o.innerHTML="",Nj(n,o,i))}function mw(n,t,e,r,i,o,s){const l=B("div",["image-container"],e);if(l.setAttribute("data-src",r.src),s.length>1&&(l.style.flexShrink=`${r.flex}`,l.style.flexGrow=`${r.flex}`),o===i&&z(l,"active"),Du(r)){z(l,"empty");const f=B("div",["upload-image-icon"],l);return f.innerHTML=qT,l}const c=B("img",["editor-image"],l);if(c.src=n.doc.buildResourceUrl(r.src),n.domEvents.addEventListener(c,"load",Mj),n.domEvents.addEventListener(c,"error",Uj),r.src.startsWith("https:")||r.src.startsWith("http:")){const f=B("div",["image-warning"],l);f.innerHTML=uE,f.setAttribute(`data-editor-tooltip-${n.clientId}`,D.t("image.load.remote.tooltip"))}return l}function Pj(n,t,e,r,i){const o=B("div",["images"],e);return r.forEach((s,l)=>{l>0&&Dj(n,t,o,l-1),mw(n,t,o,s,l,i,r)}),r.length>1&&z(t,"multi"),o}function gw(n,t,e,r,i,o){const l=Array.from(t.querySelectorAll(".image-container"))[r];if(!l)return;const c=mw(n,t,null,e,r,i,o);l.insertAdjacentElement("beforebegin",c),l.remove(),Nb(n,t)}function nh(n,t){return bo(n)[t]}function Fj(n,t){const e=fw(t);if(!e)return;const r=eh(t);if(r===-1)return;const i=Tg(n,t);if(!i)return;const o=i.getImages()[r];gw(n,e,o,r,i.getSelectedIndex(),i.getImages())}function pw(n){var r;let t="image/*";const e=(r=n.getComponentOptions("image"))==null?void 0:r.allowedMedias;return e&&(t=e.map(i=>`.${i}`).join(",")),t}function Cw(n,t){var s;const{maxSize:e,allowedMedias:r,callbacks:i}=(s=n.getComponentOptions("image"))!=null?s:{};if(e&&t.size>e){const l=new Error("image is too large");throw l.code="MaxMediaSize",i!=null&&i.onError&&(i==null||i.onError(n,l)),l}const o=Pf(t.name);if(r&&!r.includes(o.toLowerCase())){const l=new Error(`media file is not allowed: ${o}`);throw l.code="NotAllowedFile",i!=null&&i.onError&&(i==null||i.onError(n,l)),l}}function Ew(n){return n.startsWith("image/")}const bw=_("image-object");class Ke{constructor(t,e){m(this,"images",[]);m(this,"selectedIndex",-1);m(this,"blockResizer");m(this,"resizing",!1);m(this,"parentContainerResizerObserver",null);m(this,"autoFix",!1);m(this,"focusTimes",0);m(this,"mouseStartX",0);m(this,"mouseStartY",0);m(this,"handleMouseDown",async(t,e)=>{const r=eh(e.target);if(r===-1)return;const i=this.images[r];Du(i)||this.setSelectedIndex(r)});m(this,"handleRootContainerResize",()=>{this.handleEditorResize(this.editor.rootContainer)});m(this,"handleEditorResize",t=>{if(this.isEmpty()||this.resizing)return;const e=this.editor.findBlockById(this.blockData.id);!e||ot(e)===t&&th(this.editor,this.blockData,e,null)});m(this,"handleResizing",(t,e)=>{const r=this.editor.findBlockById(this.blockData.id);if(!r)return;this.autoFix||this.setAutoFix(!0);const i=r.querySelector(".images");i.style.height="";const s=this.editor.rootContainer.getBoundingClientRect().width,l=r.getBoundingClientRect();let c=e.width>l.width?l.width:e.width;c<50&&(c=50);const f=c*100/s;this.blockData.embedData.widthPercent=f,th(this.editor,this.blockData,r,null)});m(this,"handleResized",()=>{const t=this.editor.findBlockById(this.blockData.id);if(!t)return;const e=zn(this.images,Ki(this.blockData));this.editor.updateEmbedData(t,e),this.blockResizer.enableResize(t)});m(this,"fixImageSizes",Ue.default(()=>{const t=this.editor.findBlockById(this.blockData.id);if(!t)return;const e=zn(this.images,Ki(this.blockData));this.editor.updateEmbedData(t,e)},1e3));this.editor=t,this.blockData=e,this.blockResizer=new Zd(this.editor,{resize:["top-left","top-right","bottom-left","bottom-right"]}),this.blockResizer.addListener("resizing",this.handleResizing),this.blockResizer.addListener("resized",this.handleResized),this.images=Mu(this.blockData.embedData)}destroy(){var t;this.blockResizer.removeAllListeners(),this.blockResizer.destroy(),this.editor.domEvents.removeEventListener(null,null,this.handleMouseDown),(t=this.parentContainerResizerObserver)==null||t.disconnect()}setAutoFix(t){this.autoFix=t}isAutoFix(){return this.autoFix}createContent(t,e,r){const i=Pj(this.editor,e,r,this.images,this.selectedIndex);if(this.editor.domEvents.addEventListener(r,"mousedown",this.handleMouseDown),this.editor.addListener("resize",this.handleRootContainerResize),xi(t)){const s=()=>{this.handleEditorResize(t)};this.parentContainerResizerObserver=new sa(s),this.parentContainerResizerObserver.observe(t)}const o=()=>!!(this.images.length===1&&this.images[0].virtualSize);this.isEmpty()&&o()&&z(i,"empty"),th(this.editor,this.blockData,e,t),setTimeout(()=>{const s=this.editor.findBlockById(this.blockData.id);s&&this.blockResizer.update(s)})}getImages(){return this.images}getWidthPercent(){return Ki(this.blockData)}isEmpty(){return this.images.length===1&&Du(this.images[0])}setResizing(t){this.resizing=t}getSelectedIndex(){return this.selectedIndex}getBlock(){return this.editor.findBlockById(this.blockData.id)}setSelectedIndex(t){const e=this.getBlock();if(!e||t===this.selectedIndex)return;if(this.selectedIndex!==-1){const i=nh(e,this.selectedIndex);i&&lt(i,"active")}this.selectedIndex=t;const r=nh(e,t);r&&z(r,"active")}async requestUploadImage(t){const e=this.editor.findBlockById(this.blockData.id);if(!e)return;const r=nh(e,t);if(_t(r,"error"))return;const i=pw(this.editor),o=await $c(i);!o||await this.replaceImage(t,o)}tryEnableResizer(){const t=this.editor.findBlockById(this.blockData.id);if(!t||!this.editor.isWritable())return;const e=nh(t,0);!this.isEmpty()&&this.images.length===1&&!_t(e,"error")&&this.blockResizer.enableResize(t)}disableResizer(){this.blockResizer.disableResize()}fixImageSize(t,e){const r=this.images[t];Du(r)||(Ll(r.width)&&!Ll(r.height)?r.height=r.width/e.naturalWidth*e.naturalHeight:Ll(r.height)&&!Ll(r.width)?r.width=r.height/e.naturalHeight*e.naturalWidth:(r.width=e.naturalWidth,r.height=e.naturalHeight),r.virtualSize=!1,this.fixImageSizes())}removeImage(t){const e=this.editor.findBlockById(this.blockData.id);if(!e||t===-1||t>=this.images.length)return!1;const r=At.default(this.images);if(r.splice(t,1),r.length===0)return this.editor.deleteBlock(e),!0;r[0].flex=NaN,_u(r),this.selectedIndex>=r.length&&(this.selectedIndex=r.length-1);const i=zn(r,Ki(this.blockData));return this.editor.updateEmbedData(e,i),!0}async replaceImage(t,e){const r=this.editor.findBlockById(this.blockData.id);if(!r)return!1;try{const o=await Vc(e),s=this.images[t];if(s.virtualSize){const{width:c,height:f}=await ew(o);s.width=c,s.height=f,s.virtualSize=!1,this.images[0].flex=NaN,_u(this.images);const h=zn(this.images,Ki(this.blockData));this.editor.updateEmbedData(r,h)}const l={...s,src:o};gw(this.editor,r,l,t,this.selectedIndex,this.images),setTimeout(()=>{this.blockResizer.update(r)})}catch(o){return hw(this.editor,r,t,o,e),!1}const i=nh(r,t);if(!i)return!1;z(i,"uploading"),cw(i,0),z(r,"media-block-uploading");try{const o=await this.editor.doc.uploadResource(e,{onProgress:c=>{cw(i,c)}});lt(i,"uploading"),this.images[t].src=o.resourceId;const s=this.editor.findBlockById(this.blockData.id);if(!s)return!1;lt(s,"media-block-uploading");const l=zn(this.images,Ki(this.blockData));return this.editor.updateEmbedData(s,l),!0}catch(o){bw.error(o);const s=this.editor.findBlockById(this.blockData.id);return s&&(lt(i,"uploading"),kj(i),hw(this.editor,s,t,o,e),lt(s,"media-block-uploading")),!1}}updateFlex(t){const e=this.editor.findBlockById(this.blockData.id);if(!e)return;p(bw,t.length===this.images.length,"invalid flex");for(let i=0;i<this.images.length;i++)this.images[i].flex=t[i];const r=zn(this.images,Ki(this.blockData));this.editor.updateEmbedData(e,r)}resetFlex(){const t=this.editor.findBlockById(this.blockData.id);if(!t)return;const e=At.default(this.images);e[0].flex=NaN,_u(e);const r=zn(e,Ki(this.blockData));this.editor.updateEmbedData(t,r)}setData(t){this.blockData=t,this.images=Mu(t.embedData)}static create(t,e){const r=t.addCustom(`image-${e.id}`,()=>new Ke(t,e));return r.setData(e),r}static getImageObject(t,e){let r;return typeof e=="string"?r=e:r=dt(e),t.getCustom(`image-${r}`)}}const Hct="",Pb=_("drop-indicator"),hr=2;class Kj{constructor(t){m(this,"indicator",null);m(this,"target",null);this.editor=t,this.createIndicator()}createIndicator(){this.indicator&&this.indicator.remove(),this.indicator=B("div",["editor-drop-indicator"],this.editor.contentElement)}show(t,e){if(!this.indicator)return;const r=this.getIndicatorRect(t,e),i=this.editor.rootElement.getBoundingClientRect(),o=r.top-i.top,s=r.left-i.left;r.height!==parseInt(this.indicator.style.height,10)&&this.createIndicator(),this.indicator.style.top=`${o}px`,this.indicator.style.left=`${s}px`,this.indicator.style.width=`${r.width}px`,this.indicator.style.height=`${r.height}px`,this.indicator.style.display="",this.target={block:t,insertPos:e}}hide(){!this.indicator||(this.indicator.style.display="none",this.target=null)}getIndicatorRect(t,e){if(typeof e!="string"&&e.type==="custom")return e.rect;if(e==="before"){const r=Yr(t);if(!r){p(Pb,xi(ot(t)),"block does not in a child container");const l=t.getBoundingClientRect(),c=this.getViewRect(t);return new DOMRect(c.x,l.y,c.width,hr)}const i=r.getBoundingClientRect(),o=t.getBoundingClientRect(),s=this.getViewRect(t);return new DOMRect(s.x,(i.bottom+o.top)/2,s.width,hr)}if(e==="after"){const r=Jr(t);if(!r){const l=t.getBoundingClientRect(),c=this.getViewRect(t);return new DOMRect(c.x,l.bottom,c.width,hr)}const i=t.getBoundingClientRect(),o=r.getBoundingClientRect(),s=this.getViewRect(t);return new DOMRect(s.x,(i.bottom+o.top)/2,s.width,hr)}if(e.type==="combine"){if(e.pos==="left"){const r=ot(t);p(Pb,r,"block does not in a container");const i=t.getBoundingClientRect(),o=this.getViewRect(t);return new DOMRect(o.x-4,i.y,hr,i.height)}if(e.pos==="right"){const r=ot(t);p(Pb,r,"block does not in a container");const i=t.getBoundingClientRect();let o;return me(t)?o=this.getViewRect($t(t)):o=this.getViewRect(t),new DOMRect(o.x+o.width-hr+4,i.y,hr,i.height)}}throw new Error(`Invalid insertPos: ${JSON.stringify(e)}`)}getViewRect(t){const e=tn(t,{horizontal:!0}),r=t.getBoundingClientRect(),i=e.getBoundingClientRect(),o=Math.max(i.x-r.x,0),s=Math.max(r.right-i.right,0);return new DOMRect(r.x+o,r.y,Math.max(r.width-o-s,0),hr)}}const jct="";function kg(n){const t=xe(n);let e=t.querySelector(":scope > .block-helper");return e||(e=B("div",["block-helper"],t),B("span",["helper-sizer"],e,"A")),e}function Fb(n,t,e){const r=kg(n),o=Array.from(r.children).find(s=>{var c;return Number.parseInt((c=s.getAttribute("data-index"))!=null?c:"0",10)>e});r.insertBefore(t,o!=null?o:null)}const xw=40,Vj=20;class $j{findTargetBlock(t,e){const r=e.target;if(r&&r instanceof Element){const c=Q(r);if(c&&Ee(t.rootContainer,c))return c}let i=e.clientX,o=e.clientY;const s=t.rootContainer.getBoundingClientRect().left;i<s&&s-i<xw&&(i+=xw);let l=Ne(i,o,{noFilter:!0});if(l){const c=Q(l);if(c&&Ee(t.rootContainer,c))return c}if(o-=Vj,l=Ne(i,o,{noFilter:!0}),l){const c=Q(l);if(c&&Ee(t.rootContainer,c))return c}return null}destroy(){}}class Hj extends pg{constructor(e){super(e,{trigger:[],id:"empty-block-menu"});m(this,"currentBlock",null)}get isVisible(){return this.suggest.menu.isVisible}isInMenu(e){return this.menu.isInCommandBar(e)}show(){const r=this.editor.selection.focusedBlock;this.suggest.popup(r,0,"","")}setBlock(e){this.currentBlock=e}}function jj(n,t,e){const r=y1(n,t);if(!r)return[];const i=[],o=(s,l)=>{var c;return(c=s.children)==null?void 0:c.map(f=>({...f,source:"block-command",blockMenuItemCustomData:l,children:o(f,l)}))};return Object.values(r).forEach(s=>{e!=null&&e.has(s.group)||i.push(...s.commands.map(l=>({...l,source:"block-command",blockMenuItemCustomData:s.group,children:o(l,s.group)})))}),i}function Kb(n,t,e,r){const i=bb(n,t,r),o=s=>{s.forEach(l=>{l.source=e,l.children&&o(l.children)})};return o(i),i}function zj(n,t,e,r=!1){var h,C,E;const i=ot(t);let o=t;if(o&&zt(o)&&ZE(o)){if(!r){const b=xF(o);o=(h=ae(b))!=null?h:b}ag.closeMindmap(n,t)}let l=St(o);if(!Te(n,o)&&!r){let b=Jr(o);b?l=St(b):(b=en(i),l=St(b)+1)}const c=ft(i),f=e;return n.emit("beforeExecCommand",n,e,{source:"block-menu"}),f.commandProvider?f.commandProvider.executeCommand(n,e,{from:"block-menu",containerId:c,blockIndex:l}):(E=(C=f.blockOptions)==null?void 0:C.handleInsertEmptyBlock)==null?void 0:E.call(C,n,{containerId:c,blockIndex:l,item:e,from:"block-menu"})}function Wj(n,t){const e=vi(n,t),r=n.getBlockData(t);return!(e!=="text"||r.heading)}class Aw{constructor(t,e,r){m(this,"source","text-style");m(this,"id","text-style-item");m(this,"name","Text styles");m(this,"element");m(this,"textStylesTooltips",{});m(this,"createHeadingItemElement",(t,e,r)=>{var o;const i=hb();this.createItem("text",du,e,Wj(this.editor,t)),(o=i.insertBlockCommandItems)==null||o.forEach(s=>{s.id&&s.icon&&this.createItem(s.id,s.icon,e,r?r===Number(s.value):!1)})});m(this,"createListItemElement",(t,e,r)=>{const{checkbox:i,ordered:o}=r,l=Tt(t)==="list",c=l&&o===!1&&!i,f=l&&o,h=l&&!!i;this.createItem("unordered-list",EE,e,c),this.createItem("ordered-list",bE,e,f),this.createItem("check-list",pE,e,h)});m(this,"handleClick",(t,e)=>{var c,f;if(!e.target||!(e.target instanceof Node))return;const r=e.target instanceof Element?e.target:e.target.parentElement;if(!r)return;const i=r.closest(".text-style-item");if(!i)return;const o=i.id,s="heading-",l={id:o,name:""};if(t.emit("beforeExecCommand",t,l,{source:"block-command"}),o==="text"&&dg(t,this.block,null),o.startsWith(s)){const h=Number.parseInt(o.substring(s.length),10);h&&dg(t,this.block,h)}if(o==="blockquote"&&ub(t,this.block),o.startsWith("align")){const h=o.replace(/^align-/,"");hg(t,this.block,h)}(o==="unordered-list"||o==="ordered-list"||o==="check-list")&&db(t,this.block,o),(f=(c=this.options).onAfterStyleItemClick)==null||f.call(c)});m(this,"calcTextStyleItemTooltipsEnum",()=>{this.textStylesTooltips={text:{title:D.t("commands.text")},blockquote:{title:D.t("commands.quote")},"align-left":{title:D.t("commands.alignLeft")},"align-center":{title:D.t("commands.alignCenter")},"align-right":{title:D.t("commands.alignRight")},"unordered-list":{title:D.t("commands.unordered")},"ordered-list":{title:D.t("commands.ordered")},"check-list":{title:D.t("commands.check")}};let t=1;for(;t<=8;)this.textStylesTooltips[`heading-${t}`]={title:D.t("commands.heading",{name:`${t}`})},t++});this.editor=t,this.block=e,this.options=r,this.calcTextStyleItemTooltipsEnum(),this.element=this.createItemElement(t,e),t.domEvents.addEventListener(this.element,"click",this.handleClick)}createItemElement(t,e){const r=B("div",["text-styles"],null),i=B("div",["text-style-section"],r),o=t.getBlockData(e);if(!this.options.fromEmbed){const l=o.heading,c=o.quoted;this.createHeadingItemElement(e,i,l),this.createListItemElement(e,i,o),this.createItem("blockquote",CE,i,!!c)}const s=o.align||"left";return this.createItem("align-left",xl,i,s==="left"),this.createItem("align-center",fu,i,s==="center"),this.createItem("align-right",uu,i,s==="right"),r}createItem(t,e,r,i=!1){const o=["style-icon","text-style-item"];i&&o.push("active");const s=jo(e,o,r);s.id=t;const l=this.textStylesTooltips[t];if(!l)return;const{title:c,shortcut:f}=l;s.setAttribute(`data-editor-tooltip-${this.editor.clientId}`,c),f&&s.setAttribute(`data-editor-tooltip-desc-${this.editor.clientId}`,mn(f))}}function vw(){return{source:"separator",type:"separator",id:`section-${rt()}`,name:""}}const Bw={copy:f2,cut:d2,delete:xE,"lock-block":h2,"unlock-block":m2,comment:cs},Gj=["image","video"];function qj(n,t,e){const r=[],i=at(n,t),o=me(t)&&Gj.includes(Ge(t)),s=o&&(Ge(t)!=="image"||Ge(t)==="image"&&bo(t).length===1);if(i?r.push(new Aw(n,t,e)):o&&s&&r.push(new Aw(n,t,{...e,fromEmbed:!0})),!Te(n,t)||QE(t)){(i||o&&s)&&r.push(vw());const l=jj(n,t,new Set(["hovering-toolbar"]));l.sort((c,f)=>{var h,C;return((h=c.order)!=null?h:0)-((C=f.order)!=null?C:0)}),l.forEach(c=>{c.id in Bw&&(c.icon=Bw[c.id])}),r.push(...l)}return Te(n,t)&&!QE(t)?r.push(...Kb(n,t,"insert-block",{withPlainText:!1,from:"block-menu",type:"inline"})):r.push(vw(),{id:"insert-block-before",icon:g2,name:D.t("blockMenu.command.insertAbove"),children:Kb(n,t,"insert-block-before",{withPlainText:!0,from:"block-menu",type:"sibling"}),childrenMenuId:"quick-menu",source:"insert-block-before"},{id:"insert-block-after",icon:p2,name:D.t("blockMenu.command.insertAfter"),children:Kb(n,t,"insert-block",{withPlainText:!0,from:"block-menu",type:"sibling"}),source:"insert-block",childrenMenuId:"quick-menu"}),r}function Xj(n,t,e){if(e.source==="block-command"){const r=e.blockMenuItemCustomData;gB(n,t,r,e)}else(e.source==="insert-block"||e.source==="insert-block-before")&&zj(n,t,e,e.source==="insert-block-before")}const Yj=_("exclusive-block");function Vb(n,t,e,r){var l;z(t,"block-exclusive");const i=jt(n,t),o=(l=i.getBlockProperties)==null?void 0:l.call(i,n,t),{abstract:s}=o||{};t.setAttribute("data-user-name",r),t.setAttribute("data-user-id",e),t.setAttribute("data-exclusive-tips",D.t("exclusive.tips",{editor:r,embedType:s||D.t("exclusive.fallbackAbstract")}))}function yw(n){lt(n,"block-exclusive"),n.removeAttribute("data-user-name"),n.removeAttribute("data-user-id"),n.removeAttribute("data-exclusive-tips")}function Jj(n,t,e,r,i){Yj.debug(`block ${dt(t)} ${e?"exclusive":"unexclusive"}, ${r}, ${i}`),e?Vb(n,t,r,i):yw(t)}function rh(n){return n.classList.contains("block-exclusive")}function Tw(n,t){t.blockIds.forEach(e=>{const r=n.findBlockById(e);r&&Jj(n,r,t.exclusive,t.userId,t.displayName)})}class Dl{constructor(t){m(this,"exclusiveBlockIds",new Set);m(this,"exclusiveBlockTimer",0);m(this,"remoteExclusiveBlockIds",new Map);m(this,"handleUserChanged",t=>{const e=new Set(t.map(i=>i.userId));Array.from(this.remoteExclusiveBlockIds.entries()).forEach(([i,o])=>{if(!e.has(o.userId)){this.remoteExclusiveBlockIds.delete(i);const s={...o,exclusive:!1};Tw(this.editor,s)}});const r=Array.from(this.exclusiveBlockIds).map(i=>this.editor.findBlockById(i)).filter(i=>!!i);r.length>0&&this.broadcastExclusiveBlockMessage(r,!0)});this.editor=t,t.doc.registerCallback(this),t.doc.getRemoteUsers().addListener("change",this.handleUserChanged)}destroy(){this.stopExclusiveBlockTimer(),this.editor.doc.unregisterCallback(this),this.editor.doc.getRemoteUsers().addListener("change",this.handleUserChanged)}onCustomMessage(t){if(t.type==="exclusiveBlock"){const e=t;Tw(this.editor,e),e.blockIds.forEach(r=>{e.exclusive?this.remoteExclusiveBlockIds.set(r,e):this.remoteExclusiveBlockIds.delete(r)})}}getExclusiveMessage(t){return this.remoteExclusiveBlockIds.get(t)}broadcastExclusiveBlockMessage(t,e){if(this.editor.readonly||t.length===0)return;const r=this.editor.doc.getUser(),i={type:"exclusiveBlock",userId:r.userId,displayName:r.displayName,blockIds:t.map(o=>dt(o)),exclusive:e};this.editor.doc.broadcastMessage(i)}exclusiveBlock(t){this.exclusiveBlockIds.has(dt(t))||(this.broadcastExclusiveBlockMessage([t],!0),this.exclusiveBlockIds.add(dt(t)),this.exclusiveBlockIds.size===1&&this.startExclusiveBlockTimer())}unexclusiveBlock(t){!this.exclusiveBlockIds.has(dt(t))||(this.exclusiveBlockIds.delete(dt(t)),this.broadcastExclusiveBlockMessage([t],!1),this.exclusiveBlockIds.size===0&&this.stopExclusiveBlockTimer())}startExclusiveBlockTimer(){this.exclusiveBlockTimer=window.setInterval(()=>{Array.from(this.exclusiveBlockIds.keys()).forEach(t=>{this.broadcastExclusiveBlockMessage([this.editor.getBlockById(t)],!0)})},30*1e3)}stopExclusiveBlockTimer(){clearInterval(this.exclusiveBlockTimer),this.exclusiveBlockTimer=0}static get(t){return t.addCustom("exclusiveBlock",()=>new Dl(t))}static register(t){return this.get(t)}}function $b(n,t){Dl.get(n).exclusiveBlock(t)}function Hb(n,t){Dl.get(n).unexclusiveBlock(t)}class kw{writable(t,e){if(Array.isArray(e)){for(const r of e)if(rh(r))return!1;return}if(rh(e))return!1}create(t,e,r,i,o){const s=Dl.get(t).getExclusiveMessage(o.id);s&&Vb(t,i,s.userId,s.displayName)}update(t,e,r,i,o){const s=Dl.get(t).getExclusiveMessage(o.id);s?Vb(t,i,s.userId,s.displayName):yw(i)}}const zct="",Qj={exclusive:{tips:"\u300C{editor}\u300D\u6B63\u5728\u7F16\u8F91\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7F16\u8F91",fallbackAbstract:"\u8BE5 Block"}},Zj={exclusive:{tips:"\u300C{editor}\u300Dis editing\uFF0C\u300C{embedType}\u300Ddoes not support multi-person editing",fallbackAbstract:"This Block"}},tz={exclusive:{tips:"\u300C{editor}\u300D\u306F\u7DE8\u96C6\u4E2D\u3067\u3059\u3002\u300C{embedType}\u300D\u306F\u8907\u6570\u4EBA\u3067\u540C\u6642\u7DE8\u96C6\u3067\u304D\u307E\u305B\u3093",fallbackAbstract:"\u3053\u306E\u8981\u7D20"}};D.mergeLang({"zh-CN":Qj,"en-US":Zj,"ja-JP":tz});function ih(n,t){return n.getBlockData(t).lock}function Rg(n,t){return!!ih(n,t)}function oh(n,t){const e=ih(n,t);return e?e.userId===n.doc.getUser().userId:!1}function jb(n,t){const e=ih(n,t);return e?e.userId!==n.doc.getUser().userId:!1}function ez(n,t){if(n.readonly||!n.isBlockWritable(t)||Rg(n,t)&&!oh(n,t))return;const e=n.doc.getUser(),r={userId:e.userId,displayName:e.displayName,locked:Date.now()},o={...n.getBlockData(t),lock:r};n.updateBlockData(t,o)}function nz(n,t){if(!oh(n,t))return;const e={lock:null};n.updateBlockData(t,e)}const rz=10,iz=80,oz=50;class zb{constructor(){m(this,"executeCommand",(t,e,r)=>{const i=r.data;if(!i||!i.blockId)return;const o=t.getBlockById(i.blockId);i.type==="lock"?ez(t,o):i.type==="unlock"&&nz(t,o)})}create(t,e,r,i,o){const s=o.lock;s&&(s.userId!==t.doc.getUser().userId?z(i,"locked-by-others"):z(i,"locked-by-self"))}update(t,e,r,i,o){const s=o.lock;if(s)if(s.userId!==t.doc.getUser().userId){z(i,"locked-by-others");const l=t.selection.focusedBlock;(l===i||Ee(i,l))&&(at(t,i)||Tt(i)==="code")&&t.insertTextBlock("",ft(r),St(i)+1)}else z(i,"locked-by-self");else lt(i,"locked-by-others"),lt(i,"locked-by-self")}writable(t,e){let r=[];Array.isArray(e)?r=e:r.push(e);for(const i of r){if(jb(t,i))return!1;if(Qr(i))return;let o=ma(i);for(;o;){if(jb(t,o))return!1;o=ma(o)}}}commands(t,e){var c,f,h,C;const r=Rg(t,e),i=oh(t,e),o=rh(e),s={blockId:dt(e),type:"lock"},l={id:"lock-block",name:"",data:s,order:50};if(r)if(i)l.id="unlock-block",l.name=D.t("locker.unlock"),s.type="unlock";else{const E=ih(t,e);let b=(E==null?void 0:E.displayName)||"";const v=D.getCurrentLang()==="ja-JP",k=Mv(b,rz,v?oz:iz);(k==null?void 0:k.length)!==b.length&&(l.ellipsisTooltip=E==null?void 0:E.displayName,b=k||""),l.name=D.t("locker.lockedBy",{name:b}),l.states=["disabled"]}else o?(l.name=D.t("locker.lock"),l.states=["disabled"]):l.name=D.t("locker.lock");return{group:"block-locker",commands:(C=(h=(f=(c=jt(t,e)).getOptions)==null?void 0:f.call(c,t).blockMenu)==null?void 0:h.showLocker)==null||C?[l]:[],executeCommand:this.executeCommand}}}const Wct="",sz={locker:{lock:"\u9501\u5B9A",unlock:"\u89E3\u9664\u9501\u5B9A",lockedBy:"\u88AB {name} \u9501\u5B9A"}},lz={locker:{lock:"Lock",unlock:"Unlock",lockedBy:"Locked by {name}"}},az={locker:{lock:"\u30ED\u30C3\u30AF",unlock:"\u30ED\u30C3\u30AF\u89E3\u9664",lockedBy:"{name}\u304C\u30ED\u30C3\u30AF\u3057\u307E\u3057\u305F"}};D.mergeLang({"zh-CN":sz,"en-US":lz,"ja-JP":az});class wg{async handleBeforePasteDoc(t,e){return Object.values(e.blocks).forEach(r=>{r.forEach(i=>{delete i.lock})}),!1}}const cz=_("standard-block-actions");class uz{constructor(){m(this,"executeCommand",(t,e,r)=>{const i=r.data;try{const o=t.getBlockById(i);if(r.id==="delete"){this.deleteBlock(t,o);return}r.id==="copy"&&this.copyBlock(t,o),r.id==="cut"&&(this.copyBlock(t,o),this.deleteBlock(t,o))}catch(o){cz.error(`failed to execute block command: ${JSON.stringify(o)}`)}})}commands(t,e){const r=Rg(t,e),i=r&&oh(t,e),o=dt(e),s=window.isSecureContext,l=rh(e),c={id:"copy",name:D.t("blockMenu.command.copy"),data:o,order:10,states:s?[]:["disabled"],disableReason:s?void 0:D.t("copyCutProperty.unsafeEnvTips",{shortCut:mn("CtrlOrCmd+C"),operation:D.t("copyCutProperty.copy")})},f={id:"cut",name:D.t("blockMenu.command.cut"),data:o,order:20,states:r&&!i||!s||l?["disabled"]:[],disableReason:s?void 0:D.t("copyCutProperty.unsafeEnvTips",{shortCut:mn("CtrlOrCmd+X"),operation:D.t("copyCutProperty.cut")})},h={id:"delete",name:D.t("blockMenu.command.delete"),data:o,order:30,states:r&&!i||l?["disabled"]:[]};return{group:"standard-block-actions",commands:[c,f,h],executeCommand:this.executeCommand}}deleteBlock(t,e){if(kr(e)){const r=pa(e);t.undoManager.runInGroup(()=>{[e,...r].forEach(i=>t.deleteBlock(i))})}else t.deleteBlock(e)}copyBlock(t,e){if(kr(e)){const r=pa(e),i=u5(t,[e,...r]);m0(t,i)}else UC(t,e)}}const Rw=_("block-menu");class fz{constructor(t){m(this,"menu");m(this,"currentBlock",null);m(this,"commandBlock",null);m(this,"handleShow",()=>{p(Rw,this.currentBlock,"no target block before show block menu");const t=qj(this.editor,this.currentBlock,{onAfterStyleItemClick:this.close});this.menu.updateItems(t),this.commandBlock=this.currentBlock});m(this,"handleClose",()=>{TE(this.editor)&&this.editor.focus()});m(this,"handleItemClick",(t,e)=>{p(Rw,this.commandBlock,"no command block before show block menu"),Xj(this.editor,this.commandBlock,e),e.element||this.close()});m(this,"close",()=>{this.menu.close("clickItem")});this.editor=t,this.menu=new Al([],void 0,{id:"block-menu"}),this.menu.on("show",this.handleShow),this.menu.on("close",this.handleClose),this.menu.on("click",this.handleItemClick),t.blockHooks.push(new uz)}show(t,e){this.menu.manualShow(t,{placement:"bottom-start",...e})}isInMenu(t){return this.menu.isInCommandBar(t)}setBlock(t){this.currentBlock=t}get isVisible(){return this.menu.isVisible}destroy(){this.menu.destroy()}}const dz=1e3;async function hz(n,t,e=!1){const{width:r}=n.rootContainer.getBoundingClientRect(),i=t.getBoundingClientRect();let o=i.width;if(e){const c=window.getComputedStyle(t),f=Number.parseInt(c.marginLeft,10)||0,h=Number.parseInt(c.marginRight,10)||0;o+=f,o+=h}return o>r+100||i.height>=dz?"":(await Gp.default.toSvg(t)).replace(/margin-block:.*?;/,"").replace(/margin:.*?;/,"")}const mz=_("drag-preview-image");class gz{constructor(t){m(this,"startPosition",null);m(this,"dragContainer",null);m(this,"handleDragStart",async(t,e)=>{var F,Z,Y,X,ut,Et;const r=t.target;p(mz,r instanceof Element,`Invalid Drag target:${r}`);const{x:i,y:o}=t;this.startPosition={x:i,y:o};const s=B("div",["drag-image-container"],this.editor.rootContainer),l=B("img",["drag-image"],s),c=B("span",["drag-loading"],s);c.innerHTML=x2;const{x:f,width:h,height:C,y:E}=r.getBoundingClientRect(),b=this.editor.rootContainer.getBoundingClientRect();let v=e;if(Wo(e)){const Ct=(Z=(F=jt(this.editor,e)).getOptions)==null?void 0:Z.call(F,this.editor);if(Ct!=null&&Ct.findPreviewElement){const wt=(Y=Ct.findPreviewElement)==null?void 0:Y.call(Ct,this.editor,e);wt&&(v=wt),Ct!=null&&Ct.previewNoShadow&&z(s,"drag-image-container-no-shadow")}}const k=v.getBoundingClientRect();s.style.left=`${f+h}px`,s.style.top=`${E+C}px`,s.style.width=`${Math.min(b.width/2,k.width)}px`,this.dragContainer=s;let w=!0;Wo(e)&&(w=(Et=(ut=(X=jt(this.editor,e)).getOptions)==null?void 0:ut.call(X,this.editor).draggingPreview)!=null?Et:!0);const M=await(w?hz(this.editor,v,w==="margin-included"):void 0);M?l.src=M:z(s,"drag-placeholder"),Qp(s,{status:"loaded"})});m(this,"handleDrag",t=>{if(this.startPosition&&this.dragContainer){const{x:e,y:r}=t;if(e===0&&r===0){this.dragContainer.style.transition="transform 0.15s, opacity .15s",this.dragContainer.style.transform="",this.dragContainer.style.opacity="0";return}const{x:i,y:o}=this.startPosition,s=e-i,l=r-o;this.dragContainer.style.transform=`translate(${s}px, ${l}px)`}});m(this,"handleDragEnd",()=>{this.dragContainer&&(this.dragContainer.remove(),this.startPosition=null,this.dragContainer=null)});this.editor=t}}const ww="drag-preview-element";function pz(n){if(hB(n)||_t(n,ww))return n;const t=n.querySelector(`.${ww}`);return t||(me(n)?$t(n):n)}const Sg=_("block-menu-drag-handler");function Wb(n,t){return new DragEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,dataTransfer:new DataTransfer,clientX:n.clientX,clientY:n.clientY})}class Cz{constructor(t,e){m(this,"dragPreview");m(this,"autoScroll");m(this,"oldPos",{x:0,y:0});m(this,"handleMouseDown",t=>{const e=this.button.blockMenu.currentBlock;if(p(Sg,e,"no dragged block"),t.button!==0)return;if(!this.editor.isBlockWritable(e)){t.preventDefault(),t.stopPropagation();return}const{x:r,y:i}=t;this.oldPos={x:r,y:i},document.addEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.addEventListener("mousemove",this.handleDrag)});m(this,"handleDragStart",t=>{var s,l;const e=tn(this.button.buttonElement);this.autoScroll||(this.autoScroll=new Ff({scrollElement:e,trackMouseEvent:"mousemove",edge:{top:50,bottom:50}}));const r=this.button.blockMenu.currentBlock;p(Sg,r,"no dragged block"),(l=(s=jt(this.editor,r)).notify)==null||l.call(s,this.editor,"beginDrag");const i=Wb(t,"dragstart");Bz(this.editor,i,r),window.isDragging=!0;const o=pz(r);this.dragPreview.handleDragStart(t,o),this.autoScroll.active(),z(r,"dragging"),z(this.editor.contentElement,"dragging")});m(this,"handleDrag",t=>{const{target:e,x:r,y:i}=t;if(this.oldPos.x===r&&this.oldPos.y===i)return;window.isDragging||this.handleDragStart(t),this.oldPos={x:r,y:i},p(Sg,e instanceof Element,"target is invalid"),this.dragPreview.handleDrag(t);const o=Wb(t,"dragover");this.editor.contentElement.dispatchEvent(o)});m(this,"handleDragEnd",t=>{var i;const e=this.button.blockMenu.currentBlock;p(Sg,e,"no dragged block"),window.isDragging=!1,this.dragPreview.handleDragEnd(),(i=this.autoScroll)==null||i.inactive(),lt(e,"dragging"),lt(this.editor.contentElement,"dragging"),document.removeEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.removeEventListener("mousemove",this.handleDrag);const r=Wb(t,"drop");this.editor.contentElement.dispatchEvent(r)});this.editor=t,this.button=e,this.button.buttonElement.addEventListener("mousedown",this.handleMouseDown),this.dragPreview=new gz(t)}destroy(){this.button.buttonElement.removeEventListener("mousedown",this.handleMouseDown)}}class Ou{constructor(t){m(this,"highlightedBlockId","");m(this,"handleSelectionChange",()=>{this.clearHighlightedBlock()});this.editor=t,this.editor.addListener("selectionChanged",this.handleSelectionChange)}highlightBlock(t){this.clearHighlightedBlock(),this.highlightedBlockId=dt(t),z(t,"highlighted")}clearHighlightedBlock(){if(this.highlightedBlockId){const t=this.editor.findBlockById(this.highlightedBlockId);t&&lt(t,"highlighted"),this.highlightedBlockId=""}}destroy(){}static register(t){return t.addCustom("editor-block-highlighter",()=>new Ou(t))}static get(t){return t.getCustom("editor-block-highlighter")}}class Ez{constructor(t){m(this,"buttonElement");m(this,"emptyBlockMenu");m(this,"blockMenu");m(this,"dragHandler");m(this,"handleHoverBlock",(t,e,r)=>{if(this.emptyBlockMenu.isVisible||this.blockMenu.isVisible||!this.editor.isWritable()||window.isDragging)return;const i=this.editor.getCustom("editor-tooltip");if(i&&i.visible()&&(i.hide(),this.buttonElement.setAttribute("data-tooltip-hide-at",`${Date.now()}`)),!t){this.buttonElement.parentElement&&(this.blockMenu.isInMenu(r)||this.buttonElement.remove());return}r instanceof HTMLElement&&(r.closest('[skip-menu-button="true"]')||r.closest(".block-button"))||(this.removeParentButton(),this.showParentButton(t)||this.showRootButton(t))});m(this,"removeParentButton",()=>{this.buttonElement.remove()});m(this,"handleButtonClick",()=>{if(this.buttonElement.getAttribute("data-type")==="move"){const r=this.blockMenu.currentBlock;if(!r)return;this.editor.selection.selectBlock(r,0,void 0,{noScroll:!0}),this.blockMenu.show(this.buttonElement,{placement:"bottom-end"}),setTimeout(()=>{Ou.get(this.editor).highlightBlock(r)});return}const e=this.emptyBlockMenu.currentBlock;!e||(this.editor.selection.selectBlock(e,0,void 0,{noScroll:!0}),setTimeout(()=>{this.editor.focus(),this.updatePlaceholder(e),this.emptyBlockMenu.show()}))});m(this,"updatePlaceholder",t=>{Jd(this.editor,t,D.t("blockMenu.button.searchPlaceholder"))});m(this,"handleChanged",()=>{const t=this.emptyBlockMenu.currentBlock;if(!t)return;if(this.blockMenu.currentBlock){const r=dt(this.blockMenu.currentBlock);if(!this.editor.findBlockById(r)&&this.blockMenu.isVisible){this.blockMenu.close();return}}const e=Te(this.editor,t)?"insert":"move";this.buttonElement.getAttribute("data-type")!==e&&this.setButtonType(e)});this.editor=t,this.buttonElement=this.createButton(),this.emptyBlockMenu=new Hj(t),this.blockMenu=new fz(t),this.editor.addListener("docChanged",this.handleChanged),this.buttonElement.addEventListener("click",this.handleButtonClick),this.dragHandler=new Cz(this.editor,this);const e=We.get(t);e.addListener("targetChange",this.handleHoverBlock),e.addFinder(new $j),Ou.register(this.editor)}destroy(){We.get(this.editor).removeListener("targetChange",this.handleHoverBlock),this.buttonElement.removeEventListener("click",this.handleButtonClick),this.editor.removeListener("docChanged",this.handleChanged),this.emptyBlockMenu.destroy(),this.blockMenu.destroy(),this.buttonElement.remove(),this.dragHandler.destroy()}showRootButton(t){const e=zf(t);this.addButtonToView(e)}showParentButton(t){const e=zf(t),r=Wf(this.editor,e);if(!r||!r.isMenuButtonBaseContainer)return!1;const i=sB(t,r.isMenuButtonBaseContainer);return!i||Tt(e)===Tt(i)?!1:(this.addButtonToView(i),!0)}addButtonToView(t){Go(t)||(this.updateButton(t),Fb(t,this.buttonElement,Number.MAX_SAFE_INTEGER))}createButton(){const t=B("button",["block-button"],null);return t.setAttribute(`data-editor-tooltip-${this.editor.clientId}`,D.t("blockMenu.button.tips")),t.innerHTML=AE,t}setButtonType(t){this.buttonElement.setAttribute("data-type",t);const e=`data-editor-tooltip-${this.editor.clientId}-dynamic`;this.buttonElement.hasAttribute(e)&&this.buttonElement.removeAttribute(e),t==="insert"?(this.buttonElement.innerHTML=b2,this.buttonElement.setAttribute(e,D.t("blockMenu.button.insertTips"))):(this.buttonElement.innerHTML=AE,this.buttonElement.setAttribute(e,D.t("blockMenu.button.tips")))}updateButton(t){this.emptyBlockMenu.setBlock(t),this.blockMenu.setBlock(t),Te(this.editor,t)&&!(zt(t)&&QE(t))?this.setButtonType("insert"):this.setButtonType("move")}}class Sw{constructor(t){m(this,"rootButton");this.editor=t,this.rootButton=new Ez(t)}destroy(){this.rootButton.destroy()}}const bz={blockMenu:{section:{basics:"\u57FA\u7840",system:"\u7CFB\u7EDF",styles:"\u6837\u5F0F",common:"\u901A\u7528",actions:"\u64CD\u4F5C",thirdParty:"\u7B2C\u4E09\u65B9\u5185\u5BB9"},command:{insertAbove:"\u5728\u4E0A\u65B9\u63D2\u5165",insertAfter:"\u5728\u4E0B\u65B9\u63D2\u5165",copy:"\u590D\u5236",cut:"\u526A\u5207",delete:"\u5220\u9664"},button:{searchPlaceholder:"\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",tips:`\u957F\u6309\u62D6\u62FD
671
+ <p>${ym(l)}</p>`}function UH(n,t){DT(n,qR)}const XR={blockType:"code",blockKind:"complex",createBlockContent:AH,getBlockTextLength:vH,getRangeFromPoint:BH,moveCaret:yH,getCaretRect:TH,updateSelection:kH,clearSelection:RH,getChildContainers:wH,getNextContainer:SH,getSelectedContainers:LH,convertFrom:G$,handleBlockElementUpdated:IH,getOptions:_H,getBlockProperties:MH,convertTo:OH,handleDeleteBlock:UH},YR={...ar,blockType:"code-line"};class NH{constructor(t){m(this,"handleSelectionChange",()=>{const t=this.editor.selection;if(!t.range.isCollapsed())return;const e=t.focusedBlock;if(!qd(this.editor,e))return;const r=e,i=t.range.focus.offset,o=UB(this.editor,r,i,"code-caret");o.scrollIntoView({block:"nearest"}),setTimeout(()=>{o.remove(),this.editor.selection.caret.update()})});this.editor=t,t.addListener("selectionChanged",this.handleSelectionChange)}destroy(){this.editor.removeListener("selectionChanged",this.handleSelectionChange)}}function PH(n){if(!n.isWritable())return!1;const t=n.getFocusedBlock();if(!!qd(n,t)){if(n.selection.range.isCollapsed()){const e=n.selection.range.start;return n.insertTextToBlock(t,e.offset," "),!0}return n.undoManager.runInGroup(()=>{no(n).forEach(r=>{n.insertTextToBlock(r.block,0," ")})}),!0}}function FH(n){if(!n.isWritable())return!1;const t=n.getFocusedBlock();if(!qd(n,t))return;const e=[" "," "];return n.undoManager.runInGroup(()=>{no(n).forEach(i=>{const o=Se(n.getBlockText(i.block));for(let s=0;s<e.length;s++){const l=e[s];if(o.startsWith(l)){n.deleteTextFromBlock(i.block,0,l.length);break}}})}),!0}function KH(n){const t=n.getFocusedBlock(),e=ot(t);if(te(e))return;const r=Q(e);if(!r||Tt(r)!=="code")return;const i=n.selection.range;if(!!i.isSimple()&&!s5(e,i))return f0(n,e),!0}const VH={Tab:PH,"Shift+Tab":FH,"CtrlOrCmd+A":KH},Xd=_("code-text-decorate");class vg{decorateText(t,e,r){if(p(Xd,e.length>0,"invalid path"),e.length===1)return{};const i=e[e.length-2];if(t.doc.getBlockData(i.containerId,i.blockIndex).type!=="code")return{};const s=r;if(s.length===0)return{};const l=Se(s),c=t.doc.getBlockData(i.containerId,i.blockIndex),h=(k=>{if(!k)return Uc.default.languages.plain;const w=k.replace(/\s/g,"").toLocaleLowerCase();return Uc.default.languages[w]||Uc.default.languages.plain})(c.language),C=Uc.default.tokenize(l,h),E=(k,w)=>{if(p(Xd,k,"no token"),typeof k=="string")return[{insert:k,attributes:At.default(w)}];p(Xd,k instanceof Uc.default.Token,"invalid token type");const O=k.content,M=At.default(w);return M[`style-code-${k.type}`]=!0,typeof O=="string"?[{insert:O,attributes:M}]:Array.isArray(O)?O.filter(Y=>Y.length).map(Y=>E(Y,M)).flat():(p(Xd,O instanceof Uc.default.Token,"invalid token"),E(O,M))},v=C.map(k=>E(k,{})).flat();return p(Xd,$n(v)===$n(s),"failed to highlight code, text length mismatch"),{text:v}}}const $H={code:{title:"\u4EE3\u7801",abstract:"\u4EE3\u7801",wrap:"\u6362\u884C",copy:"\u590D\u5236",caption:"\u8BF4\u660E",search:"\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",copySuccess:"\u590D\u5236\u6210\u529F",plainText:"Plain Text"}},HH={code:{title:"Code",abstract:"Code",wrap:"Wrap",copy:"Copy",caption:"Caption",search:"Search",copySuccess:"Copied successfully",plainText:"Plain Text"}},jH={code:{title:"\u30B3\u30FC\u30C9",abstract:"\u30B3\u30FC\u30C9",wrap:"\u6298\u308A\u8FD4\u3059",copy:"\u8907\u88FD",caption:"\u4F8B\u8A3C\u3059\u308B",search:"\u30AD\u30FC\u30EF\u30FC\u30C9\u3067\u691C\u7D22",copySuccess:"\u30B3\u30D4\u30FC\u3055\u308C\u307E\u3057\u305F",plainText:"\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8"}};D.mergeLang({"zh-CN":$H,"en-US":HH,"ja-JP":jH});function zH(n,t,e,r){const i=n.getBlockByIndex(t,e);if(bt(n,i)!==r)return!1;const o=Se(n.getBlockText(i));if(![...o].every(h=>h==="|")||o.length<3||!n.editorBlocks.hasBlock("table"))return!1;const s=n.editorBlocks.getBlockClass("table");if(!s.convertFrom)return!1;const l=s.convertFrom(n,i,{offset:r});if(!l)return!1;const{blockData:c,focusBlockId:f}=l;return c?(n.undoManager.runInGroup(()=>{var C;const h=n.insertBlock(t,e,c,Ae(n,f!=null?f:c.id,0));n.deleteBlock(i),(C=l.onConverted)==null||C.call(l,n,h)}),!0):!1}const WH={mermaid:{blockType:"embed",reg:/^```mermaid$/,data:{embedType:"mermaid"}},flowchart:{blockType:"embed",reg:/^```flowchart$/,data:{embedType:"flowchart"}},plantuml:{blockType:"embed",reg:/^```plantuml$/,data:{embedType:"plantuml"}},code:{blockType:"code",reg:/^```\S+$/},code2:{blockType:"code",reg:/^```$/},table:{blockType:"table",reg:/^\|.+\|.+\|$/},math:{blockType:"embed",reg:/^\$\$.+\$\$$/},image:{blockType:"embed",reg:/^!\[[^\]]*\]\((?<filename>.*?)(?="|\))(?<optionalPart>".*")?\)/,data:{embedType:"image"}},dividing:{blockType:"embed",reg:/^-{3,}$/,data:{embedType:"dividing-line"}},toc:{blockType:"embed",reg:/^\[toc\]/i,data:{embedType:"toc"}}},GH={orderedList:{reg:/^(\d)+(\.|。)$/,blockType:"list",data:{listType:"ordered"}},unorderedList1:{reg:/^\*$/,blockType:"list",data:{listType:"unordered"}},unorderedList2:{reg:/^-$/,blockType:"list",data:{listType:"unordered"}},checkList1:{reg:/^\[\s?\]$/,blockType:"list",data:{listType:"unchecked"}},checkList2:{reg:/^\[X\]$/i,blockType:"list",data:{listType:"checked"}},image:{blockType:"embed",reg:/^!\[[^\]]*\]\((?<filename>.*?)(?="|\))(?<optionalPart>".*")?\)/,data:{embedType:"image"}}};function Bg(n,t,e,r,i){const o=n.getContainerById(t);if(!te(o)){const s=Q(o);if(s&&Pi(s))return!0}return!1}function JR(n,t,e,r,i){if(Bg(n,t))return!1;if(i==="enter"&&zH(n,t,e,r))return!0;const o=n.getBlockByIndex(t,e),s=Se(sr(n.getBlockText(o),r).left),l=i==="enter"?WH:GH;for(const[,c]of Object.entries(l)){if(!s.match(c.reg))continue;return!!n.undoManager.runInGroup(()=>{var v;const h=Om(n,o,c.blockType,{offset:r,data:c.data});if(!h)return null;const{blockData:C,focusBlockId:E}=h;if(!C)return null;const b=n.insertBlock(t,e,C,Ae(n,E!=null?E:C.id,0));return n.deleteBlock(o),(v=h.onConverted)==null||v.call(h,n,b),{newBlock:b,focusBlockId:E}})}return!1}function qH(n,t,e,r){const i=n.getBlockByIndex(t,e);return n.getBlockString(i,{boxReplacement:" "}).substring(0,r)!==">"?!1:(n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,0,r+1),n.updateBlockData(i,{quoted:!0},Ae(n,i,0))}),!0)}const XH={"#":1,"##":2,"###":3,"####":4,"#####":5,"######":6,"#######":7,"########":8};function YH(n,t,e,r){const i=n.getBlockByIndex(t,e),o=n.getBlockString(i,{boxReplacement:" "}).substring(0,r);let s=XH[o];if(!s)return!1;const l=n.getBlockData(i).heading;return l&&l==s&&(s=null),n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,0,r+1),n.updateBlockData(i,{heading:s},Ae(n,i,0))}),!0}function JH(n,t,e,r){return!!(YH(n,t,e,r)||qH(n,t,e,r))}const QH=_("match-text-style");function ZH(n,t){if(n.length<t.length*2+1||!n.endsWith(t)||n.substring(0,n.length-1).endsWith(t))return-1;const e=n.substring(0,n.length-t.length),r=e.lastIndexOf(t);return r===-1?-1:r===0?0:e.substring(r-1).startsWith(t)?-1:r}const tj={"*":{type:"style",styles:["style-italic"],boxType:""},"**":{type:"style",styles:["style-bold"],boxType:""},"***":{type:"style",styles:["style-bold","style-italic"],boxType:""},"~~":{type:"style",styles:["style-strikethrough"],boxType:""},"`":{type:"style",styles:["style-code"],boxType:""},$$:{type:"box",styles:[],boxType:"math"}};function ej(n,t,e,r){var E,b;const i=n.getBlockByIndex(t,e),o=n.getBlockText(i),{left:s}=sr(o,r),l=nC(s),c=$n(s)-l.length,f=Object.entries(tj);for(const[v,k]of f){const w=ZH(l,v);if(w===-1)continue;const O=c+w,M=r,F=v.length,Z=Se(Cn(o,O+F,M-O-F*2).middle);if(k.type==="style"){const Y={};k.styles.forEach(ut=>{Y[ut]=!0});const X=Aa(Z,Y);n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,O,M-O),n.insertTextToBlock(i,O,X)})}else if(k.type==="box")try{const Y=(b=(E=n.editorBoxes.getBoxClass(k.boxType)).convertFrom)==null?void 0:b.call(E,n,Z);if(!Y)continue;n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,O,M-O),n.insertBoxToBlock(i,O,Y)})}catch(Y){QH.warn(`failed to convert to box, ${Y.message}`);continue}return!0}const h=/\[([^\]]+)\]\((https?:\/\/\S+)\)\s*$/,C=l.match(h);if(C){const v=C.index,k=C[1],w=C[2],O=v,M=r,Z={...Xc(o,O),link:w};return n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,O,M-O),n.insertTextToBlock(i,O,Aa(k,Z))}),!0}return!1}class yg{handleAfterInsertText(t,e,r,i,o){if(o===" "){if(Bg(t,e))return!1;if(JH(t,e,r,i)||ej(t,e,r,i))return!0}return!1}handleBeforeKeyDown(t,e){if(!t.selection.range.isSimple())return!1;const{containerId:i,blockIndex:o,offset:s}=t.getTextPosition();if(at(t,t.getBlockByIndex(i,o))){if(Qi(e,"Enter")){if(JR(t,i,o,s,"enter"))return!0}else if(Qi(e,"Space")&&JR(t,i,o,s,"space"))return!0}return!1}}const nj={"en-US":{placeholder:{default:"Type / for commands",heading:"Heading {heading}",list:"List",mention:"Quickly assign tasks and use @ to mention yourself or others",quote:"Quote",title:"Enter document title"}},"zh-CN":{placeholder:{default:"\u8F93\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",heading:"\u6807\u9898{heading}",list:"\u5217\u8868",mention:"\u5FEB\u901F\u5206\u914D\u4EFB\u52A1\uFF0C@\u63D0\u53CA\u81EA\u5DF1\u6216\u4ED6\u4EBA",quote:"\u5F15\u7528",title:"\u8BF7\u8F93\u5165\u6587\u6863\u6807\u9898"}},"ja-JP":{placeholder:{default:"\u300C/\u300D\u3092\u5165\u529B\u3057\u3066\u7D20\u65E9\u304F\u633F\u5165\u3059\u308B",heading:"\u898B\u51FA\u3057{heading}",list:"\u30EA\u30B9\u30C8",mention:"\u81EA\u5206\u3084\u30E1\u30F3\u30D0\u30FC\u3092\uFF20\u3057\u3001\u30BF\u30B9\u30AF\u3092\u7D20\u65E9\u304F\u5272\u308A\u5F53\u3066\u307E\u3059",quote:"\u5F15\u7528",title:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}}};D.mergeLang(nj);function Yd(n,t){const e=so(n,t);return!!(at(n,t)&&e.text&&$n(e.text)===0&&!t.querySelector(".inputting-insertion"))}function QR(n,t){var r;$t(t).removeAttribute("data-content-placeholder"),(r=t.querySelector("[data-type=block-tools] .block-placeholder-container"))==null||r.remove()}function Jd(n,t,e){var i;if(QR(n,t),!Yd(n,t))return;const r=$t(t);if(typeof e=="string")r.setAttribute("data-content-placeholder",e);else{const o=xe(t),s=(i=o.querySelector(".block-placeholder-container"))!=null?i:B("div",["block-placeholder-container"],o);s.innerHTML="",s.appendChild(e)}}function rj(n){const t=n.getAttribute("data-style-heading");return t?D.t("placeholder.heading",{heading:t}):n.getAttribute("data-style-quoted")?D.t("placeholder.quote"):null}function ij(n){const t=n.getAttribute("data-list-type");return t?t==="ordered"||t==="unordered"?D.t("placeholder.list"):D.t("placeholder.mention"):null}function ZR(n){switch(Tt(n)){case"text":return rj(n);case"list":return ij(n);default:return null}}function oj(n){if(Qr(n))return!1;const t=Q(ot(n));return t?Tt(t)==="code":!1}function sj(n){return!Qr(n)}function lj(n,t){var h,C,E,b;const e=n.selection.focusedBlock,r=Tt(e),i=t.contentPlaceholder||D.t("placeholder.default");let o=i;if(r&&Hf(n,r)&&e){if(!n.isBlockWritable(e)||oj(e))return;if(sj(e)){const v=Q(ot(e));(!v||!((C=(h=jt(n,v)).getOptions)!=null&&C.call(h,n).isMenuButtonBaseContainer))&&(o=D.t("placeholder.common.contentInTable"))}o=(E=ZR(e))!=null?E:o}const s=n.getFirstBlock(),l=t.hideTitle?s:ae(s);if(!l)return;const c=ae(l);if(c&&!t.addPlaceholderToAllCurrentEmptyBlock)return;if(!c&&Yd(n,l)){Jd(n,l,(b=ZR(l))!=null?b:i);return}const f=n.getFocusedBlock();!Yd(n,f)||f===s&&!t.hideTitle||Jd(n,f,o)}function aj(n,t){var i,o;const e=n.getFirstBlock(),r=$t(e);Yd(n,e)?(r.setAttribute("data-title-placeholder",(i=t.titlePlaceholder)!=null?i:D.t("placeholder.title")),r.setAttribute("data-title-placeholder-readonly",(o=t.readonlyTitlePlaceholder)!=null?o:"")):(r.removeAttribute("data-title-placeholder"),r.removeAttribute("data-title-placeholder-readonly"))}function cj(n){n.rootContainer.querySelectorAll("[data-content-placeholder").forEach(t=>{t.removeAttribute("data-content-placeholder")}),n.rootContainer.querySelectorAll("[data-type=block-tools] .block-placeholder-container").forEach(t=>{t.remove()})}function uj(n,t){var e;cj(n),n.selection.range.isCollapsed()&&(t.hideTitle||aj(n,t),(e=t.applyContentPlaceholder)!=null&&e.call(t,n)||lj(n,t))}const Vct="";function fj(n){for(let t=0;t<n.length;t++){const e=n[t];if(e.attributes&&Object.keys(e.attributes).length)return!0}return!1}const tw=_("enforce-title");class Db{constructor(t,e={headingLevel:1}){m(this,"handleSelectionChange",t=>{setTimeout(()=>{this.applyPlaceholder(t)})});m(this,"reload",t=>{this.handleChanged(t),this.applyPlaceholder(t)});this.options=e,this.handleChanged(t),this.applyPlaceholder(t),t.addListener("selectionChanged",this.handleSelectionChange),setTimeout(()=>{t.addListener("load",this.reload)})}destroy(t){t.removeListener("selectionChanged",this.handleSelectionChange),t.removeListener("load",this.reload)}handleBeforeKeyDown(t,e){if(!t.selection.range.isSimple())return!1;const{containerId:i,blockIndex:o,offset:s}=t.getTextPosition();if(!this.isDocumentTitleBlock(i,o)||!Qi(e,"Enter"))return!1;let l=!1,c=null;Ai(t.rootContainer)===2&&(c=ol(t.rootContainer,1),bt(t,c)===0&&(l=!0));const f=t.getFirstBlock();return t.undoManager.runInGroup(()=>{t.breakTextBlock(f,s,{forceInsertAfter:!0}),l&&c&&t.deleteBlock(c)}),!0}handleChanged(t){var e,r;try{const i=t.doc.getContainerBlocks(ft(t.rootContainer));p(tw,i.length>0,"root container is empty");const o=i[0];if(o.type!=="text"&&!this.options.hideTitle){const s=oo("",{heading:(e=this.options.headingLevel)!=null?e:1});t.insertBlock(ft(t.rootContainer),0,s,t.selection.range.toDocRange()).setAttribute("data-document-title","");return}if(!this.options.hideTitle){p(tw,o.text,"invalid text block");const s=t.getBlockById(o.id);if(fj(o.text)||o.quoted||o.heading!==this.options.headingLevel){const l=t.getBlockString(s),c=oo(l,{heading:(r=this.options.headingLevel)!=null?r:1,quoted:!1}),f=t.selection.focusedBlock;let h=t.selection.range;const C=t.insertBlock(ft(t.rootContainer),0,c);C.setAttribute("data-document-title",""),f===s&&(h=Ae(t,c.id,bt(t,C))),i0(t,s,h)}else s.setAttribute("data-document-title","")}if(i.length>1||this.options.hideTitle)return;t.insertTextBlock("",ft(t.rootContainer),1,{newRange:t.selection.range.toDocRange()})}finally{this.applyPlaceholder(t)}}handleRemoteChanged(t){setTimeout(()=>{this.applyPlaceholder(t)})}handleUpdateCompositionText(t){this.applyPlaceholder(t)}applyPlaceholder(t){var e,r;!((e=this.options)!=null&&e.titlePlaceholder)&&!((r=this.options)!=null&&r.contentPlaceholder)||uj(t,this.options)}isDocumentTitleBlock(t,e){return t==="root"&&e===0&&!this.options.hideTitle}}function Fi(n){return Tt(n)==="embed"&&Ge(n)==="image"}async function ew(n){return new Promise((t,e)=>{const r=new Image;r.onload=()=>{t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=e,r.src=n})}async function dj(n){const t=await Vc(n);return ew(t)}function Ll(n){return typeof n=="number"}const hj=_("image-data"),Qd=1e3,nw=400,mj=10;function Du(n){return n.src.startsWith("empty:")||!n.src}function gj(n){return n.src.startsWith("http:")||n.src.startsWith("https:")}function rw(n){return`${hm.default(n)}_width`}function iw(n){return`${hm.default(n)}_height`}function ow(n){return`${n}_flex`}function sw(n){let t=n.getBoundingClientRect().width;return t-=Number.parseFloat(window.getComputedStyle(n).paddingLeft)+Number.parseFloat(window.getComputedStyle(n).paddingRight),t}function _u(n){if(n.every(i=>typeof i.flex=="number"&&i.flex))return;const t=100,r=n.map(i=>{const o=i.width==="auto"?Qd:i.width,s=i.height==="auto"?o/t:i.height/t;return o/s}).reduce((i,o)=>i+o,0);n.forEach(i=>{const o=i.width==="auto"?Qd:i.width,s=i.height==="auto"?o/t:i.height/t,l=o/s;i.flex=l/r})}function Mu(n){const t=(i,o)=>{i||(i=`empty:${o}`);const s=rw(i),l=iw(i),c=ow(o);let f=n[s],h=n[l],C=n[c];return typeof f=="string"&&(f=Number.parseInt(f,10)),typeof h=="string"&&(h=Number.parseInt(h,10)),typeof C=="string"&&(C=Number.parseInt(C,10)),{src:i,width:f!=null?f:"auto",height:h!=null?h:"auto",flex:C,virtualSize:!f||!h}};let e=[];const r=n.src;return Array.isArray(r)?e=r.map(t):typeof r=="string"&&(e=r.split("|").map(t)),_u(e),e}function Ki(n){const t=n.embedData;return Mu(n.embedData).length>1?100:t.widthPercent}function pj(n,t,e,r){const i=Mu(t.embedData);if(i.length>1||r)return"100%";const o=Ki(t),s=n.rootContainer.getBoundingClientRect().width;if(o){const l=sw(e);return`${Math.min(s*o/100,l)}px`}return Ll(i[0].width)?`${i[0].width}px`:"auto"}function zn(n,t){const r={src:n.map(i=>i.src).join("|"),widthPercent:t};return n.forEach((i,o)=>{const s=i.src||`empty:${o}`,l=rw(s);l&&Ll(i.width)&&(r[l]=i.width);const c=iw(s);c&&Ll(i.height)&&(r[c]=i.height),p(hj,i.flex,"no image flex");const f=ow(o);r[f]=i.flex}),r}function Cj(n,t,e,r){const i=Mu(t.embedData),o=i.length===1?n.rootContainer:e;if(i.length===1&&r)return`${nw}px`;if(i.some(h=>h.height==="auto"))return"auto";const s=Ki(t);if(!s){if(i.length!==1||Ll(i[0].width))return"";const C=i[0].height;return C==="auto"?"auto":`${C}px`}let l=o.getBoundingClientRect().width*(s/100);if(l-=Number.parseFloat(window.getComputedStyle(o).paddingLeft)+Number.parseFloat(window.getComputedStyle(o).paddingRight),o===n.rootContainer&&o!==e&&(l=Math.min(l,sw(e))),i.length===1){const h=i[0];if(h.virtualSize)return"";const C=h.width==="auto"?Qd:h.width;return`${h.height/(C/l)}px`}l-=(i.length-1)*mj;const c=i.reduce((h,C)=>h+C.flex,0);let f=0;for(const h of i){const C=l*h.flex/c,E=h.width==="auto"?Qd:h.width,b=C/E*h.height;f=Math.max(b,f)}return`${f}px`}function Ej(n){return n.reduce((e,r)=>e+r.flex,0)}function bj(n,t){B("div",["resize-gripper",t],n).setAttribute("data-resize-type",t)}function _b(n){return xe(n).querySelector(".block-resizer")}function xj(n){const t=_b(n);t&&lt(t,"active")}function lw(n,t,e){const r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,s=i.left-r.left,l=i.width,c=i.height;e.style.top=`${o}px`,e.style.left=`${s}px`,e.style.width=`${l}px`,e.style.height=`${c}px`}function Aj(n,t,e,r){const i=_b(n);if(i)return z(i,"active"),lw(n,t,i),i;const o=xe(n),s=B("div",["block-resizer"],o);return lw(n,t,s),e.resize.forEach(l=>{bj(s,l)}),s.addEventListener("mousedown",r),z(s,"active"),s}function Mb(n,t){const e=_b(n);if(!e||!Ee(n,t))return;const r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,s=i.left-r.left,l=i.width,c=i.height;e.style.top=`${o}px`,e.style.left=`${s}px`,e.style.width=`${l}px`,e.style.height=`${c}px`}const $ct="",vj=_("block-resizer");class Zd extends $e.TypedEmitter{constructor(e,r){super();m(this,"resizableElement");m(this,"block",null);m(this,"startRect",null);m(this,"startPos",null);m(this,"resizeType",null);m(this,"enabled",!1);m(this,"handleMouseDown",e=>{e.preventDefault(),e.stopPropagation();const r=this.getResizableElement();if(!r||e.button!==0)return;const i=e.target;if(!i||!(i instanceof HTMLElement))return;const o=i.getAttribute("data-resize-type");!o||(this.bindEvents(),this.startRect=r.getBoundingClientRect(),this.startPos=e,this.resizeType=o,Mf(window.getComputedStyle(i).cursor),this.block&&this.editor.selection.selectBlock(this.block,0))});m(this,"handleMouseMove",e=>{if(!this.startPos||!this.startRect||!this.resizeType||!this.getResizableElement()||!this.block)return;const i=e.x-this.startPos.x,o=e.y-this.startPos.y,s=this.startRect;let{top:l,left:c,right:f,bottom:h}=s;(this.resizeType==="bottom"||this.resizeType==="bottom-left"||this.resizeType==="bottom-right")&&(h+=o),(this.resizeType==="top"||this.resizeType==="top-left"||this.resizeType==="top-right")&&(l+=o),(this.resizeType==="left"||this.resizeType==="top-left"||this.resizeType==="bottom-left")&&(c+=i),(this.resizeType==="right"||this.resizeType==="top-right"||this.resizeType==="bottom-right")&&(f+=i);const C=f>c?f-c:0,E=h>l?h-l:0,b=new DOMRect(c,l,C,E);this.emit("resizing",this,b);const v=this.getResizableElement();v&&Mb(this.block,v)});m(this,"handleMouseUp",e=>{if(e.button!==0)return;Mf(""),this.unbindEvents(),this.emit("resized",this);const r=this.getResizableElement();!r||!this.block||Mb(this.block,r)});this.editor=e,this.options=r}enableResize(e,r){this.block=e,this.resizableElement=r,this.createResizer(),this.enabled=!0}disableResize(){!this.block||(xj(this.block),this.enabled=!1)}update(e,r){this.block=e,this.resizableElement=r,this.getResizableElement()&&this.enabled&&this.createResizer()}updateResizer(){const e=this.getResizableElement();e&&this.block&&Mb(this.block,e)}getBlock(){return this.block}destroy(){}getResizableElement(){return this.resizableElement?this.resizableElement:this.block?$t(this.block):null}createResizer(){const e=this.getResizableElement();!e||!this.block||(p(vj,Ee(this.block,e),"not a block child element"),Aj(this.block,e,this.options,this.handleMouseDown))}bindEvents(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}unbindEvents(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}}const Bj=_("image-dom");function aw(n){return n.querySelector(".uploading-progress-mask")}function yj(n){const t=aw(n);if(t)return t;const e=B("div",["uploading-progress-mask"],n),r=B("div",["uploading-progress-bar"],e);return B("div",["uploading-progress-bar-value"],r),r}function Tj(n){const e=yj(n).querySelector(".uploading-progress-bar-value");return p(Bj,e,"no progress value"),e}function cw(n,t){const e=Tj(n);e.style.width=`${t}%`}function kj(n){var t;(t=aw(n))==null||t.remove()}function th(n,t,e,r){const i=e!=null?e:n.findBlockById(t.id);if(!i)return;const o=r||ot(i),s=!!i.querySelector(".images > .image-container.error, .images > .image-container.empty "),l=pj(n,t,o,s),c=Cj(n,t,o,s),f=$t(i);l==="auto"?f.style.width=l:(f.style.maxWidth=l,f.style.width="100%");const h=i.querySelector(".images");!h||(h.style.height=c||"none")}function Rj(n){let t;return n.forEach((e,r)=>{r.toLocaleLowerCase()==="content-type"&&(t=e)}),t!=null?t:""}async function wj(n){try{const t=await fetch(n,{credentials:"same-origin"}),e=await t.blob(),r=Rj(t.headers).toLocaleLowerCase();let i="";if(r){const s=Wp.default[r].extensions;s&&s.length>0&&(i=s[0])}return new File([e],`${Date.now()}.${i}`,{type:r})}catch{return null}}function Il(n,t){const e=typeof t=="string"?t:dt(t);return n.getCustom(`image-${e}`)}function Tg(n,t){if(!t||!(t instanceof Node))return null;const e=Q(t);return e?Il(n,e):null}function bo(n){return Array.from(n.querySelectorAll(".image-container"))}const Ob=_("table-resize-drag-drop");class Sj{constructor(t,e,r,i){m(this,"cursor","col-resize");m(this,"initWidths");this.editor=t,this.elem=e,this.data=r,this.mouseDownEvent=i;const o=this.data.block,l=Il(this.editor,o).getImages(),c=this.data.splitterIndex;p(Ob,c>=0&&c<l.length-1,`invalid splitter index: ${c}`);const h=bo(o).map(C=>C.getBoundingClientRect().width);this.initWidths=h}onDragStart(t,e,r){if(!this.editor.isWritable())return;const i=this.data.block;Il(this.editor,i).setResizing(!0)}onDragging(t,e,r,i,o){const s=this.data.block,l=Il(this.editor,s),c=At.default(l.getImages()),f=this.data.splitterIndex;p(Ob,f>=0&&f<c.length-1,`invalid splitter index: ${f}`);const h=this.initWidths[f],C=this.initWidths[f+1];if(h+C<100)return;let E=i;h+E<50&&(E=50-h),C-E<50&&(E=C-50);const k=[...this.initWidths];k[f]+=E,k[f+1]-=E;const w=bo(s);p(Ob,w.length===c.length,"invalid image data");const O=k.reduce((Z,Y)=>Z+Y,0);for(let Z=0;Z<c.length;Z++){const Y=k[Z]/O;c[Z].flex=Y,w[Z].style.flexGrow=`${Y}`}const M=At.default(this.editor.getBlockData(s)),F=zn(c,Ki(M));M.embedData=F,th(this.editor,M,s,null)}onDragEnd(t,e,r,i,o){const s=this.data.block,l=Il(this.editor,s),f=bo(s).map(h=>Number.parseFloat(h.style.flexGrow));l.updateFlex(f),l.setResizing(!1)}}function uw(n){var t;return!n||!(n instanceof HTMLElement)?null:_t(n,"image-splitter")?n:(t=n.closest(".image-splitter"))!=null?t:null}function Lj(n,t){var s;const e=uw(t.target);if(!e)return;const r=Q(e);if(!r)return;Il(n,r).setSelectedIndex(-1),n.selection.selectBlock(r,0);const i=Number.parseInt((s=e.getAttribute("data-index"))!=null?s:"",10);if(Number.isNaN(i)||typeof i!="number")return;const o={block:r,splitterIndex:i};t1(new Sj(n,e,o,t))}function Ij(n,t){t.preventDefault(),t.stopPropagation();const e=uw(t.target);if(!e)return;const r=Q(e);!r||Il(n,r).resetFlex()}function Dj(n,t,e,r){const i=B("div",["image-splitter"],e);B("div",["image-splitter-indicator"],i),i.setAttribute("data-index",`${r}`),n.domEvents.addEventListener(i,"mousedown",Lj),n.domEvents.addEventListener(i,"dblclick",Ij)}const _j=_("image-item");function fw(n){return!n||!(n instanceof Node)?null:Q(n)}function dw(n){const t=fw(n);return t?bo(t):[]}function Ub(n){if(!n||!(n instanceof Node))return null;const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest(".image-container");return e||null}function eh(n){const t=Ub(n);return t?dw(n).indexOf(t):-1}async function Mj(n,t){const e=Tg(n,t.target);if(!e)return;const r=eh(t.target);if(r===-1)return;const i=t.target;if(!(i instanceof HTMLImageElement))return;const o=e.getImages()[r];if(Du(o)||n.readonly||!e.isAutoFix()||(setTimeout(()=>{e.setAutoFix(!1)},400),(o.height==="auto"||o.width==="auto")&&e.fixImageSize(r,i),o.virtualSize&&e.fixImageSize(r,i),!o||!gj(o)||o.downloading))return;o.downloading=!0;const s=await wj(o.src);s?e.replaceImage(r,s):_j.warn(`failed to download image: ${o.src}`)}function Oj(n,t,e){if(t.querySelector(".load-error"))return;const i=e.src.startsWith("http:")||e.src.startsWith("https:"),o=B("div",["load-error"],t),s=B("div",["error-icon"],o);s.innerHTML=fE;const l=B("div",["error-message"],o);i?(l.innerHTML=D.t("image.load.remote.failed"),n.domEvents.addEventListener(o,"click",(c,f)=>{f.preventDefault(),f.target instanceof HTMLElement&&f.target.tagName==="A"&&window.open(e.src,"_blank","noreferrer=1")})):(l.innerHTML=D.t("image.load.failed"),n.domEvents.addEventListener(o,"click",(c,f)=>{f.preventDefault(),f.stopPropagation(),f.target instanceof HTMLElement&&f.target.tagName==="A"&&Fj(c,f.target)}))}function Nb(n,t){setTimeout(()=>{if(Ee(n.rootContainer,t)){const e=n.getBlockData(t);th(n,e,null,null)}})}function Uj(n,t){const e=Tg(n,t.target);if(!e)return;const r=eh(t.target);if(r===-1)return;const i=e.getImages()[r];if(!i)return;const o=Ub(t.target);if(!o)return;const s=Q(o);let l=!1;n.doc.buildResourceUrl(i.src,{syncNewResources(c,f){var C,E;n.doc.addResources([c]);const h=(E=(C=n.doc).getServerMeta)==null?void 0:E.call(C).appId;if(i.src&&f!==i.src&&h&&i.src.includes(h)&&s&&!n.readonly&&n.isBlockWritable(s)){const b=At.default(n.getBlockData(s));b.embedData.src=c,n.updateEmbedData(s,b.embedData),l=!0,t.target instanceof HTMLImageElement&&(t.target.src=f)}}}),!l&&(z(o,"error","error-load"),s&&Nb(n,s),o.innerHTML="",Oj(n,o,i))}function Nj(n,t,e){if(t.querySelector(".upload-error"))return;const i=B("div",["upload-error"],t),o=B("div",["error-icon"],i);o.innerHTML=fE;const s=B("div",["error-message"],i);s.innerHTML=D.t("image.upload.failed"),n.domEvents.addEventListener(i,"click",(l,c)=>{if(c.preventDefault(),!c.target||!(c.target instanceof Element)||c.target.tagName!=="A")return;const f=Tg(l,c.target),h=eh(c.target);!f||h===-1||f.replaceImage(h,e)})}function hw(n,t,e,r,i){const o=bo(t)[e];!o||(z(o,"error","error-upload"),Nb(n,t),o.innerHTML="",Nj(n,o,i))}function mw(n,t,e,r,i,o,s){const l=B("div",["image-container"],e);if(l.setAttribute("data-src",r.src),s.length>1&&(l.style.flexShrink=`${r.flex}`,l.style.flexGrow=`${r.flex}`),o===i&&z(l,"active"),Du(r)){z(l,"empty");const f=B("div",["upload-image-icon"],l);return f.innerHTML=qT,l}const c=B("img",["editor-image"],l);if(c.src=n.doc.buildResourceUrl(r.src),n.domEvents.addEventListener(c,"load",Mj),n.domEvents.addEventListener(c,"error",Uj),r.src.startsWith("https:")||r.src.startsWith("http:")){const f=B("div",["image-warning"],l);f.innerHTML=uE,f.setAttribute(`data-editor-tooltip-${n.clientId}`,D.t("image.load.remote.tooltip"))}return l}function Pj(n,t,e,r,i){const o=B("div",["images"],e);return r.forEach((s,l)=>{l>0&&Dj(n,t,o,l-1),mw(n,t,o,s,l,i,r)}),r.length>1&&z(t,"multi"),o}function gw(n,t,e,r,i,o){const l=Array.from(t.querySelectorAll(".image-container"))[r];if(!l)return;const c=mw(n,t,null,e,r,i,o);l.insertAdjacentElement("beforebegin",c),l.remove(),Nb(n,t)}function nh(n,t){return bo(n)[t]}function Fj(n,t){const e=fw(t);if(!e)return;const r=eh(t);if(r===-1)return;const i=Tg(n,t);if(!i)return;const o=i.getImages()[r];gw(n,e,o,r,i.getSelectedIndex(),i.getImages())}function pw(n){var r;let t="image/*";const e=(r=n.getComponentOptions("image"))==null?void 0:r.allowedMedias;return e&&(t=e.map(i=>`.${i}`).join(",")),t}function Cw(n,t){var s;const{maxSize:e,allowedMedias:r,callbacks:i}=(s=n.getComponentOptions("image"))!=null?s:{};if(e&&t.size>e){const l=new Error("image is too large");throw l.code="MaxMediaSize",i!=null&&i.onError&&(i==null||i.onError(n,l)),l}const o=Pf(t.name);if(r&&!r.includes(o.toLowerCase())){const l=new Error(`media file is not allowed: ${o}`);throw l.code="NotAllowedFile",i!=null&&i.onError&&(i==null||i.onError(n,l)),l}}function Ew(n){return n.startsWith("image/")}const bw=_("image-object");class Ke{constructor(t,e){m(this,"images",[]);m(this,"selectedIndex",-1);m(this,"blockResizer");m(this,"resizing",!1);m(this,"parentContainerResizerObserver",null);m(this,"autoFix",!1);m(this,"focusTimes",0);m(this,"mouseStartX",0);m(this,"mouseStartY",0);m(this,"handleMouseDown",async(t,e)=>{const r=eh(e.target);if(r===-1)return;const i=this.images[r];Du(i)||this.setSelectedIndex(r)});m(this,"handleRootContainerResize",()=>{this.handleEditorResize(this.editor.rootContainer)});m(this,"handleEditorResize",t=>{if(this.isEmpty()||this.resizing)return;const e=this.editor.findBlockById(this.blockData.id);!e||ot(e)===t&&th(this.editor,this.blockData,e,null)});m(this,"handleResizing",(t,e)=>{const r=this.editor.findBlockById(this.blockData.id);if(!r)return;this.autoFix||this.setAutoFix(!0);const i=r.querySelector(".images");i.style.height="";const s=this.editor.rootContainer.getBoundingClientRect().width,l=r.getBoundingClientRect();let c=e.width>l.width?l.width:e.width;c<50&&(c=50);const f=c*100/s;this.blockData.embedData.widthPercent=f,th(this.editor,this.blockData,r,null)});m(this,"handleResized",()=>{const t=this.editor.findBlockById(this.blockData.id);if(!t)return;const e=zn(this.images,Ki(this.blockData));this.editor.updateEmbedData(t,e),this.blockResizer.enableResize(t)});m(this,"fixImageSizes",Ue.default(()=>{const t=this.editor.findBlockById(this.blockData.id);if(!t)return;const e=zn(this.images,Ki(this.blockData));this.editor.updateEmbedData(t,e)},1e3));this.editor=t,this.blockData=e,this.blockResizer=new Zd(this.editor,{resize:["top-left","top-right","bottom-left","bottom-right"]}),this.blockResizer.addListener("resizing",this.handleResizing),this.blockResizer.addListener("resized",this.handleResized),this.images=Mu(this.blockData.embedData)}destroy(){var t;this.blockResizer.removeAllListeners(),this.blockResizer.destroy(),this.editor.domEvents.removeEventListener(null,null,this.handleMouseDown),(t=this.parentContainerResizerObserver)==null||t.disconnect()}setAutoFix(t){this.autoFix=t}isAutoFix(){return this.autoFix}createContent(t,e,r){const i=Pj(this.editor,e,r,this.images,this.selectedIndex);if(this.editor.domEvents.addEventListener(r,"mousedown",this.handleMouseDown),this.editor.addListener("resize",this.handleRootContainerResize),xi(t)){const s=()=>{this.handleEditorResize(t)};this.parentContainerResizerObserver=new sa(s),this.parentContainerResizerObserver.observe(t)}const o=()=>!!(this.images.length===1&&this.images[0].virtualSize);this.isEmpty()&&o()&&z(i,"empty"),th(this.editor,this.blockData,e,t),setTimeout(()=>{const s=this.editor.findBlockById(this.blockData.id);s&&this.blockResizer.update(s)})}getImages(){return this.images}getWidthPercent(){return Ki(this.blockData)}isEmpty(){return this.images.length===1&&Du(this.images[0])}setResizing(t){this.resizing=t}getSelectedIndex(){return this.selectedIndex}getBlock(){return this.editor.findBlockById(this.blockData.id)}setSelectedIndex(t){const e=this.getBlock();if(!e||t===this.selectedIndex)return;if(this.selectedIndex!==-1){const i=nh(e,this.selectedIndex);i&&lt(i,"active")}this.selectedIndex=t;const r=nh(e,t);r&&z(r,"active")}async requestUploadImage(t){const e=this.editor.findBlockById(this.blockData.id);if(!e)return;const r=nh(e,t);if(_t(r,"error"))return;const i=pw(this.editor),o=await $c(i);!o||await this.replaceImage(t,o)}tryEnableResizer(){const t=this.editor.findBlockById(this.blockData.id);if(!t||!this.editor.isWritable())return;const e=nh(t,0);!this.isEmpty()&&this.images.length===1&&!_t(e,"error")&&this.blockResizer.enableResize(t)}disableResizer(){this.blockResizer.disableResize()}fixImageSize(t,e){const r=this.images[t];Du(r)||(Ll(r.width)&&!Ll(r.height)?r.height=r.width/e.naturalWidth*e.naturalHeight:Ll(r.height)&&!Ll(r.width)?r.width=r.height/e.naturalHeight*e.naturalWidth:(r.width=e.naturalWidth,r.height=e.naturalHeight),r.virtualSize=!1,this.fixImageSizes())}removeImage(t){const e=this.editor.findBlockById(this.blockData.id);if(!e||t===-1||t>=this.images.length)return!1;const r=At.default(this.images);if(r.splice(t,1),r.length===0)return this.editor.deleteBlock(e),!0;r[0].flex=NaN,_u(r),this.selectedIndex>=r.length&&(this.selectedIndex=r.length-1);const i=zn(r,Ki(this.blockData));return this.editor.updateEmbedData(e,i),!0}async replaceImage(t,e){const r=this.editor.findBlockById(this.blockData.id);if(!r)return!1;try{const o=await Vc(e),s=this.images[t];if(s.virtualSize){const{width:c,height:f}=await ew(o);s.width=c,s.height=f,s.virtualSize=!1,this.images[0].flex=NaN,_u(this.images);const h=zn(this.images,Ki(this.blockData));this.editor.updateEmbedData(r,h)}const l={...s,src:o};gw(this.editor,r,l,t,this.selectedIndex,this.images),setTimeout(()=>{this.blockResizer.update(r)})}catch(o){return hw(this.editor,r,t,o,e),!1}const i=nh(r,t);if(!i)return!1;z(i,"uploading"),cw(i,0),z(r,"media-block-uploading");try{const o=await this.editor.doc.uploadResource(e,{onProgress:c=>{cw(i,c)}});lt(i,"uploading"),this.images[t].src=o.resourceId;const s=this.editor.findBlockById(this.blockData.id);if(!s)return!1;lt(s,"media-block-uploading");const l=zn(this.images,Ki(this.blockData));return this.editor.updateEmbedData(s,l),!0}catch(o){bw.error(o);const s=this.editor.findBlockById(this.blockData.id);return s&&(lt(i,"uploading"),kj(i),hw(this.editor,s,t,o,e),lt(s,"media-block-uploading")),!1}}updateFlex(t){const e=this.editor.findBlockById(this.blockData.id);if(!e)return;p(bw,t.length===this.images.length,"invalid flex");for(let i=0;i<this.images.length;i++)this.images[i].flex=t[i];const r=zn(this.images,Ki(this.blockData));this.editor.updateEmbedData(e,r)}resetFlex(){const t=this.editor.findBlockById(this.blockData.id);if(!t)return;const e=At.default(this.images);e[0].flex=NaN,_u(e);const r=zn(e,Ki(this.blockData));this.editor.updateEmbedData(t,r)}setData(t){this.blockData=t,this.images=Mu(t.embedData)}static create(t,e){const r=t.addCustom(`image-${e.id}`,()=>new Ke(t,e));return r.setData(e),r}static getImageObject(t,e){let r;return typeof e=="string"?r=e:r=dt(e),t.getCustom(`image-${r}`)}}const Hct="",Pb=_("drop-indicator"),hr=2;class Kj{constructor(t){m(this,"indicator",null);m(this,"target",null);this.editor=t,this.createIndicator()}createIndicator(){this.indicator&&this.indicator.remove(),this.indicator=B("div",["editor-drop-indicator"],this.editor.contentElement)}show(t,e){if(!this.indicator)return;const r=this.getIndicatorRect(t,e),i=this.editor.rootElement.getBoundingClientRect(),o=r.top-i.top,s=r.left-i.left;r.height!==parseInt(this.indicator.style.height,10)&&this.createIndicator(),this.indicator.style.top=`${o}px`,this.indicator.style.left=`${s}px`,this.indicator.style.width=`${r.width}px`,this.indicator.style.height=`${r.height}px`,this.indicator.style.display="",this.target={block:t,insertPos:e}}hide(){!this.indicator||(this.indicator.style.display="none",this.target=null)}getIndicatorRect(t,e){if(typeof e!="string"&&e.type==="custom")return e.rect;if(e==="before"){const r=Yr(t);if(!r){p(Pb,xi(ot(t)),"block does not in a child container");const l=t.getBoundingClientRect(),c=this.getViewRect(t);return new DOMRect(c.x,l.y,c.width,hr)}const i=r.getBoundingClientRect(),o=t.getBoundingClientRect(),s=this.getViewRect(t);return new DOMRect(s.x,(i.bottom+o.top)/2,s.width,hr)}if(e==="after"){const r=Jr(t);if(!r){const l=t.getBoundingClientRect(),c=this.getViewRect(t);return new DOMRect(c.x,l.bottom,c.width,hr)}const i=t.getBoundingClientRect(),o=r.getBoundingClientRect(),s=this.getViewRect(t);return new DOMRect(s.x,(i.bottom+o.top)/2,s.width,hr)}if(e.type==="combine"){if(e.pos==="left"){const r=ot(t);p(Pb,r,"block does not in a container");const i=t.getBoundingClientRect(),o=this.getViewRect(t);return new DOMRect(o.x-4,i.y,hr,i.height)}if(e.pos==="right"){const r=ot(t);p(Pb,r,"block does not in a container");const i=t.getBoundingClientRect();let o;return me(t)?o=this.getViewRect($t(t)):o=this.getViewRect(t),new DOMRect(o.x+o.width-hr+4,i.y,hr,i.height)}}throw new Error(`Invalid insertPos: ${JSON.stringify(e)}`)}getViewRect(t){const e=tn(t,{horizontal:!0}),r=t.getBoundingClientRect(),i=e.getBoundingClientRect(),o=Math.max(i.x-r.x,0),s=Math.max(r.right-i.right,0);return new DOMRect(r.x+o,r.y,Math.max(r.width-o-s,0),hr)}}const jct="";function kg(n){const t=xe(n);let e=t.querySelector(":scope > .block-helper");return e||(e=B("div",["block-helper"],t),B("span",["helper-sizer"],e,"A")),e}function Fb(n,t,e){const r=kg(n),o=Array.from(r.children).find(s=>{var c;return Number.parseInt((c=s.getAttribute("data-index"))!=null?c:"0",10)>e});r.insertBefore(t,o!=null?o:null)}const xw=40,Vj=20;class $j{findTargetBlock(t,e){const r=e.target;if(r&&r instanceof Element){const c=Q(r);if(c&&Ee(t.rootContainer,c))return c}let i=e.clientX,o=e.clientY;const s=t.rootContainer.getBoundingClientRect().left;i<s&&s-i<xw&&(i+=xw);let l=Ne(i,o,{noFilter:!0});if(l){const c=Q(l);if(c&&Ee(t.rootContainer,c))return c}if(o-=Vj,l=Ne(i,o,{noFilter:!0}),l){const c=Q(l);if(c&&Ee(t.rootContainer,c))return c}return null}destroy(){}}class Hj extends pg{constructor(e){super(e,{trigger:[],id:"empty-block-menu"});m(this,"currentBlock",null)}get isVisible(){return this.suggest.menu.isVisible}isInMenu(e){return this.menu.isInCommandBar(e)}show(){const r=this.editor.selection.focusedBlock;this.suggest.popup(r,0,"","")}setBlock(e){this.currentBlock=e}}function jj(n,t,e){const r=y1(n,t);if(!r)return[];const i=[],o=(s,l)=>{var c;return(c=s.children)==null?void 0:c.map(f=>({...f,source:"block-command",blockMenuItemCustomData:l,children:o(f,l)}))};return Object.values(r).forEach(s=>{e!=null&&e.has(s.group)||i.push(...s.commands.map(l=>({...l,source:"block-command",blockMenuItemCustomData:s.group,children:o(l,s.group)})))}),i}function Kb(n,t,e,r){const i=bb(n,t,r),o=s=>{s.forEach(l=>{l.source=e,l.children&&o(l.children)})};return o(i),i}function zj(n,t,e,r=!1){var h,C,E;const i=ot(t);let o=t;if(o&&zt(o)&&ZE(o)){if(!r){const b=xF(o);o=(h=ae(b))!=null?h:b}ag.closeMindmap(n,t)}let l=St(o);if(!Te(n,o)&&!r){let b=Jr(o);b?l=St(b):(b=en(i),l=St(b)+1)}const c=ft(i),f=e;return n.emit("beforeExecCommand",n,e,{source:"block-menu"}),f.commandProvider?f.commandProvider.executeCommand(n,e,{from:"block-menu",containerId:c,blockIndex:l}):(E=(C=f.blockOptions)==null?void 0:C.handleInsertEmptyBlock)==null?void 0:E.call(C,n,{containerId:c,blockIndex:l,item:e,from:"block-menu"})}function Wj(n,t){const e=vi(n,t),r=n.getBlockData(t);return!(e!=="text"||r.heading)}class Aw{constructor(t,e,r){m(this,"source","text-style");m(this,"id","text-style-item");m(this,"name","Text styles");m(this,"element");m(this,"textStylesTooltips",{});m(this,"createHeadingItemElement",(t,e,r)=>{var o;const i=hb();this.createItem("text",du,e,Wj(this.editor,t)),(o=i.insertBlockCommandItems)==null||o.forEach(s=>{s.id&&s.icon&&this.createItem(s.id,s.icon,e,r?r===Number(s.value):!1)})});m(this,"createListItemElement",(t,e,r)=>{const{checkbox:i,ordered:o}=r,l=Tt(t)==="list",c=l&&o===!1&&!i,f=l&&o,h=l&&!!i;this.createItem("unordered-list",EE,e,c),this.createItem("ordered-list",bE,e,f),this.createItem("check-list",pE,e,h)});m(this,"handleClick",(t,e)=>{var c,f;if(!e.target||!(e.target instanceof Node))return;const r=e.target instanceof Element?e.target:e.target.parentElement;if(!r)return;const i=r.closest(".text-style-item");if(!i)return;const o=i.id,s="heading-",l={id:o,name:""};if(t.emit("beforeExecCommand",t,l,{source:"block-command"}),o==="text"&&dg(t,this.block,null),o.startsWith(s)){const h=Number.parseInt(o.substring(s.length),10);h&&dg(t,this.block,h)}if(o==="blockquote"&&ub(t,this.block),o.startsWith("align")){const h=o.replace(/^align-/,"");hg(t,this.block,h)}(o==="unordered-list"||o==="ordered-list"||o==="check-list")&&db(t,this.block,o),(f=(c=this.options).onAfterStyleItemClick)==null||f.call(c)});m(this,"calcTextStyleItemTooltipsEnum",()=>{this.textStylesTooltips={text:{title:D.t("commands.text")},blockquote:{title:D.t("commands.quote")},"align-left":{title:D.t("commands.alignLeft")},"align-center":{title:D.t("commands.alignCenter")},"align-right":{title:D.t("commands.alignRight")},"unordered-list":{title:D.t("commands.unordered")},"ordered-list":{title:D.t("commands.ordered")},"check-list":{title:D.t("commands.check")}};let t=1;for(;t<=8;)this.textStylesTooltips[`heading-${t}`]={title:D.t("commands.heading",{name:`${t}`})},t++});this.editor=t,this.block=e,this.options=r,this.calcTextStyleItemTooltipsEnum(),this.element=this.createItemElement(t,e),t.domEvents.addEventListener(this.element,"click",this.handleClick)}createItemElement(t,e){const r=B("div",["text-styles"],null),i=B("div",["text-style-section"],r),o=t.getBlockData(e);if(!this.options.fromEmbed){const l=o.heading,c=o.quoted;this.createHeadingItemElement(e,i,l),this.createListItemElement(e,i,o),this.createItem("blockquote",CE,i,!!c)}const s=o.align||"left";return this.createItem("align-left",xl,i,s==="left"),this.createItem("align-center",fu,i,s==="center"),this.createItem("align-right",uu,i,s==="right"),r}createItem(t,e,r,i=!1){const o=["style-icon","text-style-item"];i&&o.push("active");const s=jo(e,o,r);s.id=t;const l=this.textStylesTooltips[t];if(!l)return;const{title:c,shortcut:f}=l;s.setAttribute(`data-editor-tooltip-${this.editor.clientId}`,c),f&&s.setAttribute(`data-editor-tooltip-desc-${this.editor.clientId}`,mn(f))}}function vw(){return{source:"separator",type:"separator",id:`section-${rt()}`,name:""}}const Bw={copy:f2,cut:d2,delete:xE,"lock-block":h2,"unlock-block":m2,comment:cs},Gj=["image","video"];function qj(n,t,e){const r=[],i=at(n,t),o=me(t)&&Gj.includes(Ge(t)),s=o&&(Ge(t)!=="image"||Ge(t)==="image"&&bo(t).length===1);if(i?r.push(new Aw(n,t,e)):o&&s&&r.push(new Aw(n,t,{...e,fromEmbed:!0})),!Te(n,t)||QE(t)){(i||o&&s)&&r.push(vw());const l=jj(n,t,new Set(["hovering-toolbar"]));l.sort((c,f)=>{var h,C;return((h=c.order)!=null?h:0)-((C=f.order)!=null?C:0)}),l.forEach(c=>{c.id in Bw&&(c.icon=Bw[c.id])}),r.push(...l)}return Te(n,t)&&!QE(t)?r.push(...Kb(n,t,"insert-block",{withPlainText:!1,from:"block-menu",type:"inline"})):r.push(vw(),{id:"insert-block-before",icon:g2,name:D.t("blockMenu.command.insertAbove"),children:Kb(n,t,"insert-block-before",{withPlainText:!0,from:"block-menu",type:"sibling"}),childrenMenuId:"quick-menu",source:"insert-block-before"},{id:"insert-block-after",icon:p2,name:D.t("blockMenu.command.insertAfter"),children:Kb(n,t,"insert-block",{withPlainText:!0,from:"block-menu",type:"sibling"}),source:"insert-block",childrenMenuId:"quick-menu"}),r}function Xj(n,t,e){if(e.source==="block-command"){const r=e.blockMenuItemCustomData;gB(n,t,r,e)}else(e.source==="insert-block"||e.source==="insert-block-before")&&zj(n,t,e,e.source==="insert-block-before")}const Yj=_("exclusive-block");function Vb(n,t,e,r){var l;z(t,"block-exclusive");const i=jt(n,t),o=(l=i.getBlockProperties)==null?void 0:l.call(i,n,t),{abstract:s}=o||{};t.setAttribute("data-user-name",r),t.setAttribute("data-user-id",e),t.setAttribute("data-exclusive-tips",D.t("exclusive.tips",{editor:r,embedType:s||D.t("exclusive.fallbackAbstract")}))}function yw(n){lt(n,"block-exclusive"),n.removeAttribute("data-user-name"),n.removeAttribute("data-user-id"),n.removeAttribute("data-exclusive-tips")}function Jj(n,t,e,r,i){Yj.debug(`block ${dt(t)} ${e?"exclusive":"unexclusive"}, ${r}, ${i}`),e?Vb(n,t,r,i):yw(t)}function rh(n){return n.classList.contains("block-exclusive")}function Tw(n,t){t.blockIds.forEach(e=>{const r=n.findBlockById(e);r&&Jj(n,r,t.exclusive,t.userId,t.displayName)})}class Dl{constructor(t){m(this,"exclusiveBlockIds",new Set);m(this,"exclusiveBlockTimer",0);m(this,"remoteExclusiveBlockIds",new Map);m(this,"handleUserChanged",t=>{const e=new Set(t.map(i=>i.userId));Array.from(this.remoteExclusiveBlockIds.entries()).forEach(([i,o])=>{if(!e.has(o.userId)){this.remoteExclusiveBlockIds.delete(i);const s={...o,exclusive:!1};Tw(this.editor,s)}});const r=Array.from(this.exclusiveBlockIds).map(i=>this.editor.findBlockById(i)).filter(i=>!!i);r.length>0&&this.broadcastExclusiveBlockMessage(r,!0)});this.editor=t,t.doc.registerCallback(this),t.doc.getRemoteUsers().addListener("change",this.handleUserChanged)}destroy(){this.stopExclusiveBlockTimer(),this.editor.doc.unregisterCallback(this),this.editor.doc.getRemoteUsers().addListener("change",this.handleUserChanged)}onCustomMessage(t){if(t.type==="exclusiveBlock"){const e=t;Tw(this.editor,e),e.blockIds.forEach(r=>{e.exclusive?this.remoteExclusiveBlockIds.set(r,e):this.remoteExclusiveBlockIds.delete(r)})}}getExclusiveMessage(t){return this.remoteExclusiveBlockIds.get(t)}broadcastExclusiveBlockMessage(t,e){if(this.editor.readonly||t.length===0)return;const r=this.editor.doc.getUser(),i={type:"exclusiveBlock",userId:r.userId,displayName:r.displayName,blockIds:t.map(o=>dt(o)),exclusive:e};this.editor.doc.broadcastMessage(i)}exclusiveBlock(t){this.exclusiveBlockIds.has(dt(t))||(this.broadcastExclusiveBlockMessage([t],!0),this.exclusiveBlockIds.add(dt(t)),this.exclusiveBlockIds.size===1&&this.startExclusiveBlockTimer())}unexclusiveBlock(t){!this.exclusiveBlockIds.has(dt(t))||(this.exclusiveBlockIds.delete(dt(t)),this.broadcastExclusiveBlockMessage([t],!1),this.exclusiveBlockIds.size===0&&this.stopExclusiveBlockTimer())}startExclusiveBlockTimer(){this.exclusiveBlockTimer=window.setInterval(()=>{Array.from(this.exclusiveBlockIds.keys()).forEach(t=>{this.broadcastExclusiveBlockMessage([this.editor.getBlockById(t)],!0)})},30*1e3)}stopExclusiveBlockTimer(){clearInterval(this.exclusiveBlockTimer),this.exclusiveBlockTimer=0}static get(t){return t.addCustom("exclusiveBlock",()=>new Dl(t))}static register(t){return this.get(t)}}function $b(n,t){Dl.get(n).exclusiveBlock(t)}function Hb(n,t){Dl.get(n).unexclusiveBlock(t)}class kw{writable(t,e){if(Array.isArray(e)){for(const r of e)if(rh(r))return!1;return}if(rh(e))return!1}create(t,e,r,i,o){const s=Dl.get(t).getExclusiveMessage(o.id);s&&Vb(t,i,s.userId,s.displayName)}update(t,e,r,i,o){const s=Dl.get(t).getExclusiveMessage(o.id);s?Vb(t,i,s.userId,s.displayName):yw(i)}}const zct="",Qj={exclusive:{tips:"\u300C{editor}\u300D\u6B63\u5728\u7F16\u8F91\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7F16\u8F91",fallbackAbstract:"\u8BE5 Block"}},Zj={exclusive:{tips:"\u300C{editor}\u300Dis editing\uFF0C\u300C{embedType}\u300Ddoes not support multi-person editing",fallbackAbstract:"This Block"}},tz={exclusive:{tips:"\u300C{editor}\u300D\u306F\u7DE8\u96C6\u4E2D\u3067\u3059\u3002\u300C{embedType}\u300D\u306F\u8907\u6570\u4EBA\u3067\u540C\u6642\u7DE8\u96C6\u3067\u304D\u307E\u305B\u3093",fallbackAbstract:"\u3053\u306E\u8981\u7D20"}};D.mergeLang({"zh-CN":Qj,"en-US":Zj,"ja-JP":tz});function ih(n,t){return n.getBlockData(t).lock}function Rg(n,t){return!!ih(n,t)}function oh(n,t){const e=ih(n,t);return e?e.userId===n.doc.getUser().userId:!1}function jb(n,t){const e=ih(n,t);return e?e.userId!==n.doc.getUser().userId:!1}function ez(n,t){if(n.readonly||!n.isBlockWritable(t)||Rg(n,t)&&!oh(n,t))return;const e=n.doc.getUser(),r={userId:e.userId,displayName:e.displayName,locked:Date.now()},o={...n.getBlockData(t),lock:r};n.updateBlockData(t,o)}function nz(n,t){if(!oh(n,t))return;const e={lock:null};n.updateBlockData(t,e)}const rz=10,iz=80,oz=50;class zb{constructor(){m(this,"executeCommand",(t,e,r)=>{const i=r.data;if(!i||!i.blockId)return;const o=t.getBlockById(i.blockId);i.type==="lock"?ez(t,o):i.type==="unlock"&&nz(t,o)})}create(t,e,r,i,o){const s=o.lock;s&&(s.userId!==t.doc.getUser().userId?z(i,"locked-by-others"):z(i,"locked-by-self"))}update(t,e,r,i,o){const s=o.lock;if(s)if(s.userId!==t.doc.getUser().userId){z(i,"locked-by-others");const l=t.selection.focusedBlock;(l===i||Ee(i,l))&&(at(t,i)||Tt(i)==="code")&&t.insertTextBlock("",ft(r),St(i)+1)}else z(i,"locked-by-self");else lt(i,"locked-by-others"),lt(i,"locked-by-self")}writable(t,e){let r=[];Array.isArray(e)?r=e:r.push(e);for(const i of r){if(jb(t,i))return!1;if(Qr(i))return;let o=ma(i);for(;o;){if(jb(t,o))return!1;o=ma(o)}}}commands(t,e){var c,f,h,C;const r=Rg(t,e),i=oh(t,e),o=rh(e),s={blockId:dt(e),type:"lock"},l={id:"lock-block",name:"",data:s,order:50};if(r)if(i)l.id="unlock-block",l.name=D.t("locker.unlock"),s.type="unlock";else{const E=ih(t,e);let b=(E==null?void 0:E.displayName)||"";const v=D.getCurrentLang()==="ja-JP",k=Mv(b,rz,v?oz:iz);(k==null?void 0:k.length)!==b.length&&(l.ellipsisTooltip=E==null?void 0:E.displayName,b=k||""),l.name=D.t("locker.lockedBy",{name:b}),l.states=["disabled"]}else o?(l.name=D.t("locker.lock"),l.states=["disabled"]):l.name=D.t("locker.lock");return{group:"block-locker",commands:(C=(h=(f=(c=jt(t,e)).getOptions)==null?void 0:f.call(c,t).blockMenu)==null?void 0:h.showLocker)==null||C?[l]:[],executeCommand:this.executeCommand}}}const Wct="",sz={locker:{lock:"\u9501\u5B9A",unlock:"\u89E3\u9664\u9501\u5B9A",lockedBy:"\u88AB {name} \u9501\u5B9A"}},lz={locker:{lock:"Lock",unlock:"Unlock",lockedBy:"Locked by {name}"}},az={locker:{lock:"\u30ED\u30C3\u30AF",unlock:"\u30ED\u30C3\u30AF\u89E3\u9664",lockedBy:"{name}\u304C\u30ED\u30C3\u30AF\u3057\u307E\u3057\u305F"}};D.mergeLang({"zh-CN":sz,"en-US":lz,"ja-JP":az});class wg{async handleBeforePasteDoc(t,e){return Object.values(e.blocks).forEach(r=>{r.forEach(i=>{delete i.lock})}),!1}}const cz=_("standard-block-actions");class uz{constructor(){m(this,"executeCommand",(t,e,r)=>{const i=r.data;try{const o=t.getBlockById(i);if(r.id==="delete"){this.deleteBlock(t,o);return}r.id==="copy"&&this.copyBlock(t,o),r.id==="cut"&&(this.copyBlock(t,o),this.deleteBlock(t,o))}catch(o){cz.error(`failed to execute block command: ${JSON.stringify(o)}`)}})}commands(t,e){const r=Rg(t,e),i=r&&oh(t,e),o=dt(e),s=window.isSecureContext,l=rh(e),c={id:"copy",name:D.t("blockMenu.command.copy"),data:o,order:10,states:s?[]:["disabled"],disableReason:s?void 0:D.t("copyCutProperty.unsafeEnvTips",{shortCut:mn("CtrlOrCmd+C"),operation:D.t("copyCutProperty.copy")})},f={id:"cut",name:D.t("blockMenu.command.cut"),data:o,order:20,states:r&&!i||!s||l?["disabled"]:[],disableReason:s?void 0:D.t("copyCutProperty.unsafeEnvTips",{shortCut:mn("CtrlOrCmd+X"),operation:D.t("copyCutProperty.cut")})},h={id:"delete",name:D.t("blockMenu.command.delete"),data:o,order:30,states:r&&!i||l?["disabled"]:[]};return{group:"standard-block-actions",commands:[c,f,h],executeCommand:this.executeCommand}}deleteBlock(t,e){if(kr(e)){const r=pa(e);t.undoManager.runInGroup(()=>{[e,...r].forEach(i=>t.deleteBlock(i))})}else t.deleteBlock(e)}copyBlock(t,e){if(kr(e)){const r=pa(e),i=u5(t,[e,...r]);m0(t,i)}else UC(t,e)}}const Rw=_("block-menu");class fz{constructor(t){m(this,"menu");m(this,"currentBlock",null);m(this,"commandBlock",null);m(this,"handleShow",()=>{p(Rw,this.currentBlock,"no target block before show block menu");const t=qj(this.editor,this.currentBlock,{onAfterStyleItemClick:this.close});this.menu.updateItems(t),this.commandBlock=this.currentBlock});m(this,"handleClose",()=>{TE(this.editor)&&this.editor.focus()});m(this,"handleItemClick",(t,e)=>{p(Rw,this.commandBlock,"no command block before show block menu"),Xj(this.editor,this.commandBlock,e),e.element||this.close()});m(this,"close",()=>{this.menu.close("clickItem")});this.editor=t,this.menu=new Al([],void 0,{id:"block-menu"}),this.menu.on("show",this.handleShow),this.menu.on("close",this.handleClose),this.menu.on("click",this.handleItemClick),t.blockHooks.push(new uz)}show(t,e){this.menu.manualShow(t,{placement:"bottom-start",...e})}isInMenu(t){return this.menu.isInCommandBar(t)}setBlock(t){this.currentBlock=t}get isVisible(){return this.menu.isVisible}destroy(){this.menu.destroy()}}const dz=1e3;async function hz(n,t,e=!1){const{width:r}=n.rootContainer.getBoundingClientRect(),i=t.getBoundingClientRect();let o=i.width;if(e){const c=window.getComputedStyle(t),f=Number.parseInt(c.marginLeft,10)||0,h=Number.parseInt(c.marginRight,10)||0;o+=f,o+=h}return o>r+100||i.height>=dz?"":(await Gp.default.toSvg(t)).replace(/margin-block:.*?;/,"").replace(/margin:.*?;/,"")}const mz=_("drag-preview-image");class gz{constructor(t){m(this,"startPosition",null);m(this,"dragContainer",null);m(this,"handleDragStart",async(t,e)=>{var F,Z,Y,X,ut,Et;const r=t.target;p(mz,r instanceof Element,`Invalid Drag target:${r}`);const{x:i,y:o}=t;this.startPosition={x:i,y:o};const s=B("div",["drag-image-container"],this.editor.rootContainer),l=B("img",["drag-image"],s),c=B("span",["drag-loading"],s);c.innerHTML=x2;const{x:f,width:h,height:C,y:E}=r.getBoundingClientRect(),b=this.editor.rootContainer.getBoundingClientRect();let v=e;if(Wo(e)){const Ct=(Z=(F=jt(this.editor,e)).getOptions)==null?void 0:Z.call(F,this.editor);if(Ct!=null&&Ct.findPreviewElement){const wt=(Y=Ct.findPreviewElement)==null?void 0:Y.call(Ct,this.editor,e);wt&&(v=wt),Ct!=null&&Ct.previewNoShadow&&z(s,"drag-image-container-no-shadow")}}const k=v.getBoundingClientRect();s.style.left=`${f+h}px`,s.style.top=`${E+C}px`,s.style.width=`${Math.min(b.width/2,k.width)}px`,this.dragContainer=s;let w=!0;Wo(e)&&(w=(Et=(ut=(X=jt(this.editor,e)).getOptions)==null?void 0:ut.call(X,this.editor).draggingPreview)!=null?Et:!0);const M=await(w?hz(this.editor,v,w==="margin-included"):void 0);M?l.src=M:z(s,"drag-placeholder"),Qp(s,{status:"loaded"})});m(this,"handleDrag",t=>{if(this.startPosition&&this.dragContainer){const{x:e,y:r}=t;if(e===0&&r===0){this.dragContainer.style.transition="transform 0.15s, opacity .15s",this.dragContainer.style.transform="",this.dragContainer.style.opacity="0";return}const{x:i,y:o}=this.startPosition,s=e-i,l=r-o;this.dragContainer.style.transform=`translate(${s}px, ${l}px)`}});m(this,"handleDragEnd",()=>{this.dragContainer&&(this.dragContainer.remove(),this.startPosition=null,this.dragContainer=null)});this.editor=t}}const ww="drag-preview-element";function pz(n){if(hB(n)||_t(n,ww))return n;const t=n.querySelector(`.${ww}`);return t||(me(n)?$t(n):n)}const Sg=_("block-menu-drag-handler");function Wb(n,t){return new DragEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,dataTransfer:new DataTransfer,clientX:n.clientX,clientY:n.clientY})}class Cz{constructor(t,e){m(this,"dragPreview");m(this,"autoScroll");m(this,"oldPos",{x:0,y:0});m(this,"handleMouseDown",t=>{const e=this.button.blockMenu.currentBlock;if(p(Sg,e,"no dragged block"),t.button!==0)return;if(!this.editor.isBlockWritable(e)){t.preventDefault(),t.stopPropagation();return}const{x:r,y:i}=t;this.oldPos={x:r,y:i},document.addEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.addEventListener("mousemove",this.handleDrag)});m(this,"handleDragStart",t=>{var s,l;const e=tn(this.button.buttonElement);this.autoScroll||(this.autoScroll=new Ff({scrollElement:e,trackMouseEvent:"mousemove",edge:{top:50,bottom:50}}));const r=this.button.blockMenu.currentBlock;p(Sg,r,"no dragged block"),(l=(s=jt(this.editor,r)).notify)==null||l.call(s,this.editor,"beginDrag");const i=Wb(t,"dragstart");Bz(this.editor,i,r),window.isDragging=!0;const o=pz(r);this.dragPreview.handleDragStart(t,o),this.autoScroll.active(),z(r,"dragging"),z(this.editor.contentElement,"dragging")});m(this,"handleDrag",t=>{const{target:e,x:r,y:i}=t;if(this.oldPos.x===r&&this.oldPos.y===i)return;window.isDragging||this.handleDragStart(t),this.oldPos={x:r,y:i},p(Sg,e instanceof Element,"target is invalid"),this.dragPreview.handleDrag(t);const o=Wb(t,"dragover");this.editor.contentElement.dispatchEvent(o)});m(this,"handleDragEnd",t=>{var i;const e=this.button.blockMenu.currentBlock;p(Sg,e,"no dragged block"),window.isDragging=!1,this.dragPreview.handleDragEnd(),(i=this.autoScroll)==null||i.inactive(),lt(e,"dragging"),lt(this.editor.contentElement,"dragging"),document.removeEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.removeEventListener("mousemove",this.handleDrag);const r=Wb(t,"drop");this.editor.contentElement.dispatchEvent(r)});this.editor=t,this.button=e,this.button.buttonElement.addEventListener("mousedown",this.handleMouseDown),this.dragPreview=new gz(t)}destroy(){this.button.buttonElement.removeEventListener("mousedown",this.handleMouseDown)}}class Ou{constructor(t){m(this,"highlightedBlockId","");m(this,"handleSelectionChange",()=>{this.clearHighlightedBlock()});this.editor=t,this.editor.addListener("selectionChanged",this.handleSelectionChange)}highlightBlock(t){this.clearHighlightedBlock(),this.highlightedBlockId=dt(t),z(t,"highlighted")}clearHighlightedBlock(){if(this.highlightedBlockId){const t=this.editor.findBlockById(this.highlightedBlockId);t&&lt(t,"highlighted"),this.highlightedBlockId=""}}destroy(){}static register(t){return t.addCustom("editor-block-highlighter",()=>new Ou(t))}static get(t){return t.getCustom("editor-block-highlighter")}}class Ez{constructor(t){m(this,"buttonElement");m(this,"emptyBlockMenu");m(this,"blockMenu");m(this,"dragHandler");m(this,"handleHoverBlock",(t,e,r,i)=>{if(this.emptyBlockMenu.isVisible||this.blockMenu.isVisible||!this.editor.isWritable()||window.isDragging)return;const o=this.editor.getCustom("editor-tooltip");if(o&&o.visible()&&(o.hide(),this.buttonElement.setAttribute("data-tooltip-hide-at",`${Date.now()}`)),!t){this.buttonElement.parentElement&&(this.blockMenu.isInMenu(r)||this.buttonElement.remove());return}(r instanceof HTMLElement||r instanceof SVGElement)&&(r.closest('[skip-menu-button="true"]')||r.closest(".block-button"))||r!==i&&(this.removeParentButton(),this.showParentButton(t)||this.showRootButton(t))});m(this,"removeParentButton",()=>{this.buttonElement.remove()});m(this,"handleButtonClick",()=>{if(this.buttonElement.getAttribute("data-type")==="move"){const r=this.blockMenu.currentBlock;if(!r)return;this.editor.selection.selectBlock(r,0,void 0,{noScroll:!0}),this.blockMenu.show(this.buttonElement,{placement:"bottom-end"}),setTimeout(()=>{Ou.get(this.editor).highlightBlock(r)});return}const e=this.emptyBlockMenu.currentBlock;!e||(this.editor.selection.selectBlock(e,0,void 0,{noScroll:!0}),setTimeout(()=>{this.editor.focus(),this.updatePlaceholder(e),this.emptyBlockMenu.show()}))});m(this,"updatePlaceholder",t=>{Jd(this.editor,t,D.t("blockMenu.button.searchPlaceholder"))});m(this,"handleChanged",()=>{const t=this.emptyBlockMenu.currentBlock;if(!t)return;if(this.blockMenu.currentBlock){const r=dt(this.blockMenu.currentBlock);if(!this.editor.findBlockById(r)&&this.blockMenu.isVisible){this.blockMenu.close();return}}const e=Te(this.editor,t)?"insert":"move";this.buttonElement.getAttribute("data-type")!==e&&this.setButtonType(e)});this.editor=t,this.buttonElement=this.createButton(),this.emptyBlockMenu=new Hj(t),this.blockMenu=new fz(t),this.editor.addListener("docChanged",this.handleChanged),this.buttonElement.addEventListener("click",this.handleButtonClick),this.dragHandler=new Cz(this.editor,this);const e=We.get(t);e.addListener("targetChange",this.handleHoverBlock),e.addFinder(new $j),Ou.register(this.editor)}destroy(){We.get(this.editor).removeListener("targetChange",this.handleHoverBlock),this.buttonElement.removeEventListener("click",this.handleButtonClick),this.editor.removeListener("docChanged",this.handleChanged),this.emptyBlockMenu.destroy(),this.blockMenu.destroy(),this.buttonElement.remove(),this.dragHandler.destroy()}showRootButton(t){const e=zf(t);this.addButtonToView(e)}showParentButton(t){const e=zf(t),r=Wf(this.editor,e);if(!r||!r.isMenuButtonBaseContainer)return!1;const i=sB(t,r.isMenuButtonBaseContainer);return!i||Tt(e)===Tt(i)?!1:(this.addButtonToView(i),!0)}addButtonToView(t){Go(t)||(this.updateButton(t),Fb(t,this.buttonElement,Number.MAX_SAFE_INTEGER))}createButton(){const t=B("button",["block-button"],null);return t.setAttribute(`data-editor-tooltip-${this.editor.clientId}`,D.t("blockMenu.button.tips")),t.innerHTML=AE,t}setButtonType(t){this.buttonElement.setAttribute("data-type",t);const e=`data-editor-tooltip-${this.editor.clientId}-dynamic`;this.buttonElement.hasAttribute(e)&&this.buttonElement.removeAttribute(e),t==="insert"?(this.buttonElement.innerHTML=b2,this.buttonElement.setAttribute(e,D.t("blockMenu.button.insertTips"))):(this.buttonElement.innerHTML=AE,this.buttonElement.setAttribute(e,D.t("blockMenu.button.tips")))}updateButton(t){this.emptyBlockMenu.setBlock(t),this.blockMenu.setBlock(t),Te(this.editor,t)&&!(zt(t)&&QE(t))?this.setButtonType("insert"):this.setButtonType("move")}}class Sw{constructor(t){m(this,"rootButton");this.editor=t,this.rootButton=new Ez(t)}destroy(){this.rootButton.destroy()}}const bz={blockMenu:{section:{basics:"\u57FA\u7840",system:"\u7CFB\u7EDF",styles:"\u6837\u5F0F",common:"\u901A\u7528",actions:"\u64CD\u4F5C",thirdParty:"\u7B2C\u4E09\u65B9\u5185\u5BB9"},command:{insertAbove:"\u5728\u4E0A\u65B9\u63D2\u5165",insertAfter:"\u5728\u4E0B\u65B9\u63D2\u5165",copy:"\u590D\u5236",cut:"\u526A\u5207",delete:"\u5220\u9664"},button:{searchPlaceholder:"\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",tips:`\u957F\u6309\u62D6\u62FD
672
672
  \u70B9\u51FB\u6253\u5F00\u83DC\u5355`,insertTips:"\u70B9\u51FB\u6DFB\u52A0\u533A\u5757"}}},xz={blockMenu:{section:{basics:"Basic",system:"System",styles:"Styles",common:"Common",actions:"Actions",thirdParty:"Third-party content"},command:{insertAbove:"Insert above",insertAfter:"Insert below",copy:"Copy",cut:"Cut",delete:"Delete"},button:{searchPlaceholder:"Search",tips:`Hold to drag.
673
673
  Click to open the menu.`,insertTips:"Click to add block"}}},Az={blockMenu:{section:{basics:"\u4E00\u822C",system:"\u30B7\u30B9\u30C6\u30E0",styles:"\u30B9\u30BF\u30A4\u30EB",common:"\u4E00\u822C",actions:"\u64CD\u4F5C",thirdParty:"\u5916\u90E8\u30B3\u30F3\u30C6\u30F3\u30C4"},command:{insertAbove:"\u4E0A\u306B\u633F\u5165",insertAfter:"\u4E0B\u306B\u633F\u5165",copy:"\u8907\u88FD",cut:"\u5207\u308B",delete:"\u524A\u9664"},button:{searchPlaceholder:"\u30AD\u30FC\u30EF\u30FC\u30C9\u3067\u691C\u7D22",tips:`\u30DE\u30A6\u30B9\u306E\u30DC\u30BF\u30F3\u3092\u62BC\u3057\u306A\u304C\u3089\u30C9\u30E9\u30C3\u30B0\u3059\u308B\u3002
674
674
  \u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30E1\u30CB\u30E5\u30FC\u3092\u8868\u793A\u3059\u308B\u3002`,insertTips:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30D6\u30ED\u30C3\u30AF\u3092\u8FFD\u52A0"}}};D.mergeLang({"zh-CN":bz,"en-US":xz,"ja-JP":Az});const Gct="";class vz{constructor(){m(this,"dragObject",null)}setData(t){this.dragObject=t}getData(){return this.dragObject}clearData(){this.dragObject=null}destroy(){}}function Lg(n){return n.addCustom("drag-data",()=>new vz)}function Gb(n,t){if(!t)return null;const e=Lg(n).getData();return!e||e.editorId!==n.id?null:e}function Lw(n,t){const e=Gb(n,t);return e?n.findBlockById(e.blockId):null}function Bz(n,t,e){if(!t.dataTransfer)return;const i=ot(e),o=ft(i),s=dt(e),l={type:"block",editorId:n.id,containerId:o,blockId:s};Lg(n).setData(l)}function yz(n,t,e,r,i){if(!t.dataTransfer)return;const s=ot(e),l=ft(s),c=dt(e),f={type:"custom",customType:r,editorId:n.id,containerId:l,blockId:c,data:i};Lg(n).setData(f)}function Ua(n){Lg(n).clearData()}const Tz=_("find-drop-target");function kz(n,t){const e=Ne(n,t);if(!e)return null;if(to(e)&&xi(e))return e;const r=e.firstElementChild;return r&&to(r)&&xi(r)?r:null}function Rz(n,t,e){const l=e,c=t;for(let f=0;f<2;f++){const h=c+f*50;for(let C=0;C<5;C++){const E=l+C*8,b=Ne(h,E);if(b){const w=Q(b);if(w&&!Nt(n,w))return w}if(C===0)continue;const v=l-C*8,k=Ne(h,v);if(k){const w=Q(k);if(w&&!Nt(n,w))return w}}}return null}function Iw(n,t=document.body.getBoundingClientRect().width/2,e=document.body.getBoundingClientRect().height/2){const r=Ne(t,e);if(r){const h=Q(r);if(h&&(!Nt(n,h)||r.closest("[drop-area=custom]")))return h}const i=new Set,o=kz(t,e);if(o){const h=o.getBoundingClientRect();e<h.top+h.height/2?i.add(Pe(o)):i.add(en(o))}const s=Rz(n,t,e);s&&i.add(s);const l=Array.from(i),c=h=>{for(let C=0;C<l.length;C++){const E=l[C];if(h!==E&&Ee(h,E))return!0}return!1},f=l.filter(h=>!c(h));return f.length>0?f[0]:null}function qb(n,t){if(n.readonly)return!1;const e=ot(t);if(te(e))return!0;const r=Q(e);return p(Tz,r,"no parent block"),n.isBlockWritable(r)?qb(n,r):!1}const wz=_("drop-target");function Sz(n,t){let e={};return/image/.test(t.type)?e=n.editorEmbeds.getEmbedClass("image"):/audio/.test(t.type)?e=n.editorEmbeds.getEmbedClass("audio"):/video/.test(t.type)&&(e=n.editorEmbeds.getEmbedClass("video")),p(wz,e,`unSupport file type ${t.type}`),e}async function Dw(n,t,e,r){var o,s;let i=r;for(const l of t){const c=Sz(n,l);c.getOptions&&await((s=(o=c.getOptions(n)).handleInsertEmptyEmbed)==null?void 0:s.call(o,n,{containerId:e,blockIndex:i,data:{file:l}}))&&(i+=1)}}class Lz{constructor(t){m(this,"handleDrop",(t,e,r,i)=>{if(Array.isArray(e)){const o=e;if(o.length>0){const s=ft(r);return Dw(t,o,s,i),!0}}return!1});this.editor=t}}class sh{constructor(t){m(this,"indicator");m(this,"lastDropOverResult");m(this,"handlers",[]);m(this,"combineToCreate",[]);m(this,"handleDragOver",t=>{if(!this.editor.isWritable())return;const e=o=>{var f,h,C,E;const s=Gb(this.editor,o.dataTransfer),l=Lw(this.editor,o.dataTransfer);if(((f=o.dataTransfer)==null?void 0:f.types.length)&&!((h=o.dataTransfer)!=null&&h.types.includes("Files")))return"none";const c=this.findTargetBlock(l,o.x,o.y);if(c&&Ee(this.editor.rootContainer,c)){const b=this.findInsertPos(l,c,o.x,o.y,(E=s!=null?s:(C=o.dataTransfer)==null?void 0:C.items)!=null?E:null);if(b)return this.indicator.show(c,b),"move"}return this.indicator.hide(),"none"},r=(o,s)=>{o.dataTransfer&&(o.dataTransfer.dropEffect=s),s==="move"&&o.preventDefault()};if(this.lastDropOverResult&&t.x===this.lastDropOverResult.x&&t.y===this.lastDropOverResult.y){const o=this.lastDropOverResult.dropEffect;r(t,o);return}const i=e(t);r(t,i),this.lastDropOverResult={x:t.x,y:t.y,dropEffect:i}});m(this,"handleDrop",t=>{var o,s,l;t.stopPropagation(),setTimeout(()=>{this.indicator.hide()});const e=Gb(this.editor,t.dataTransfer),r=Array.from((s=(o=t.dataTransfer)==null?void 0:o.files)!=null?s:[]);if(!e&&r.length===0){t.dataTransfer&&(t.dataTransfer.dropEffect="none"),Ua(this.editor);return}const i=this.indicator.target;if(i){const{block:c,insertPos:f}=i,h=(l=typeof f=="object"&&f.type==="custom"?f.targetBlock:void 0)!=null?l:c,C=Lw(this.editor,t.dataTransfer);this.editor.undoManager.runInGroup(()=>{if(typeof f=="object"&&f.type==="combine"&&C){const b=f.onCombine(this.editor,C,h,f.pos,e,this.handlers);b&&(this.editor.selection.selectBlock(b,0),Ou.get(this.editor).highlightBlock(b)),this.editor.focus(),t.preventDefault(),Ua(this.editor);return}const E=jt(this.editor,h);if(E.handleDrop){const b=E.handleDrop(this.editor,h,e!=null?e:r,f,{isSourceBlock:!1,targetBlock:h});if(b){t.preventDefault(),this.editor.focus(),Ua(this.editor);const v=typeof b=="boolean"?ot(h):b;for(let k=0;k<this.handlers.length;k++)if(this.handlers[k].handleDrop(this.editor,C!=null?C:r,v,0)){this.editor.focus(),Ua(this.editor);return}return}}if(C){const b=jt(this.editor,C);if(b.handleDrop&&b.handleDrop(this.editor,C,e!=null?e:r,f,{isSourceBlock:!0,targetBlock:h})){t.preventDefault(),this.editor.focus(),Ua(this.editor);return}}if(typeof f=="string"){const b=ot(h);let v=St(h);if(f==="after"){v+=1;let k=ae(h);for(;k&&!ll(k);)v+=1,k=ae(k)}t.preventDefault();for(let k=0;k<this.handlers.length;k++)if(this.handlers[k].handleDrop(this.editor,C!=null?C:r,b,v)){this.editor.focus(),Ua(this.editor);return}if(C){const k=this.editor.getBlockData(C),w=ao(this.editor.editorBlocks,this.editor.doc.toJSON(),k),[O]=this.editor.insertDocAt(b,v,w);this.editor.selection.selectBlock(O,0),Ou.get(this.editor).highlightBlock(O),this.editor.deleteBlock(C),this.editor.focus()}}})}Ua(this.editor)});m(this,"handleDragLeave",()=>{this.indicator.hide()});this.editor=t,this.indicator=new Kj(this.editor),this.handlers.push(new Lz(this.editor)),this.editor.contentElement.addEventListener("dragover",this.handleDragOver),this.editor.contentElement.addEventListener("dragleave",this.handleDragLeave),this.editor.contentElement.addEventListener("drop",this.handleDrop),this.editor.editorBlocks.forEach(e=>{var i;const r=(i=e.getOptions)==null?void 0:i.call(e,this.editor).combineToCreate;r&&this.combineToCreate.push(r)})}destroy(){this.editor.contentElement.removeEventListener("dragover",this.handleDragOver),this.editor.contentElement.removeEventListener("dragleave",this.handleDragLeave),this.editor.contentElement.removeEventListener("drop",this.handleDrop),this.handlers=[]}addHandler(t){this.handlers.push(t)}static register(t){return t.addCustom("drop-target",()=>new sh(t))}static get(t){return t.getCustom("drop-target")}static find(t){return t.findCustom("drop-target")}canInsertAfter(t,e){return!(this.editor.readonly||Jr(e)===t&&t||!qb(this.editor,e))}canInsertBefore(t,e){return!(this.editor.readonly||Yr(e)===t&&t||!qb(this.editor,e)||te(ot(e))&&St(e)===0)}canDrop(t,e){return t===null||t===e?!0:!Ee(t,e)}findTargetBlock(t,e,r){let i=Iw(this.editor,e,r);if(i||(i=Iw(this.editor,void 0,r)),!i||!Ee(this.editor.rootContainer,i))return null;const o=ot(i),s=Q(o);return s&&Tt(s)==="code"&&(i=s),this.canDrop(t,i)?i:null}findInsertPos(t,e,r,i,o){let s=e;for(;s;){const c=jt(this.editor,s);if(c.handleDropOver){const f=c.handleDropOver(this.editor,s,o,r,i);if(f)return f;if(f===!1)return null}s=ma(s)}if(t===e)return null;if(o&&"blockId"in o){const c=this.editor.getBlockById(o.blockId);for(const{combinable:f,onCombine:h}of this.combineToCreate){const C=f(this.editor,c,e);if(!(typeof C>"u")){if(C==="body")throw new Error("unimplemented yet.");if(C==="sideway"){let E;me(e)?E=$t(e).getBoundingClientRect():E=e.getBoundingClientRect();const b=E.width/2+E.left;if(E.left<r&&r<E.right)continue;return r<b?{type:"combine",pos:"left",onCombine:h}:{type:"combine",pos:"right",onCombine:h}}throw new Error(`Invalid combineType: ${C}`)}}}const l=e.getBoundingClientRect();if(l.top<=i&&i<=l.bottom){if(i<l.top+l.height/2){if(this.canInsertBefore(t,e))return"before";if(this.canInsertAfter(t,e))return"after"}else{if(this.canInsertAfter(t,e))return"after";if(this.canInsertBefore(t,e))return"before"}return null}return i<l.top&&this.canInsertBefore(t,e)?"before":l.bottom<i&&this.canInsertAfter(t,e)?"after":null}}function _w(n,t,e){const r=Ke.getImageObject(n,t),i=At.default(r.getImages());if(i.length===1){n.deleteBlock(t);return}if(e===-1||e>=i.length)return;const o=Ej(i);if(i.splice(e,1),i.length===1){const l=i[0],c=100*(l.flex/o);l.flex=1;const f=zn([l],c);n.updateEmbedData(t,f);return}i[0].flex=NaN,_u(i);const s=zn(i,r.getWidthPercent());n.updateEmbedData(t,s)}function Iz(n,t,e,r){if(t.length===0||r==="after"||r==="before"||r.type!=="custom")return!1;let i=r.data;const o=Ke.getImageObject(n,e),s=At.default(o.getImages()),l=[],c=[];t.forEach(C=>{Ew(C.type)&&s.length+l.length<6?l.push(C):c.push(C)}),l.forEach(C=>{try{Cw(n,C)}catch{return}const E={src:"",flex:1,width:0,height:0,virtualSize:!0};s.splice(i,0,E);const b=zn(s,o.getWidthPercent());n.updateEmbedData(e,b),o.replaceImage(i,C),i+=1});const f=n.getBlockIndex(e)+1,h=ft(ot(e));return Dw(n,c,h,f),!0}function Dz(n,t,e,r,i){var s,l,c;if(Sm(e))return Iz(n,e,t,r);if(e.type!=="custom"||e.customType!=="image"||!e.data)return;const o=e.data;if(i.isSourceBlock){const f=i.targetBlock,h=ot(f);let C=St(f);r==="after"&&(C+=1);const b=100*(o.boundingRect.width/n.rootContainer.getBoundingClientRect().width),v=zn([o.image],b),k={id:rt(),type:"embed",embedType:"image",embedData:v},w=(l=(s=n.options.componentsOptions)==null?void 0:s.image)==null?void 0:l.defaultAlign;w&&(k.align=w),n.insertBlock(ft(h),C,k),_w(n,t,o.index),(c=n.findCustom("drag-handler"))==null||c.handleDragEnd()}else{if(typeof r=="string"||r.type!=="custom")return;const f=t;let h=r.data;const C=Ke.getImageObject(n,f),E=At.default(C.getImages());h>E.length&&(h=E.length),n.undoManager.runInGroup(()=>{var v,k;C.setAutoFix(!0);const b=n.getBlockById(e.blockId);if(b===f){const w=o.index,O=h,M=o.image;if(w===O||O===w+1)return;let F=O;w<O?(E.splice(O,0,M),E.splice(w,1),F-=1):(E.splice(w,1),E.splice(O,0,M));const Z=zn(E,C.getWidthPercent());n.updateEmbedData(f,Z),C.setSelectedIndex(F),(v=n.findCustom("drag-handler"))==null||v.handleDragEnd()}else{E.splice(h,0,o.image),E[0].flex=NaN,_u(E);const w=zn(E,C.getWidthPercent());n.updateEmbedData(f,w),_w(n,b,o.index),(k=n.findCustom("drag-handler"))==null||k.handleDragEnd(),C.setSelectedIndex(h),n.selection.selectBlock(f,0)}})}return!0}async function _z(n){return await Gp.default.toSvg(n)}function Xb(n,t){return new DragEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,dataTransfer:new DataTransfer,clientX:n.clientX,clientY:n.clientY})}class Mz{constructor(t){m(this,"img");m(this,"dragContainer",null);m(this,"autoScroll",null);m(this,"imageContainer",null);m(this,"startPosition",null);m(this,"handleMouseDown",t=>{const e=t.target;if(!e||!(e instanceof HTMLImageElement)||t.button!==0)return;const r=Q(e);if(!r||!Fi(r)||!this.editor.isBlockWritable(r)||this.editor.readonly)return;const i=Ke.getImageObject(this.editor,r);if(this.imageContainer=Ub(t.target),!this.imageContainer)return;const s=dw(t.target).indexOf(this.imageContainer);if(s===-1)return;const l=i.getImages()[s];if(!l)return;const{x:c,y:f}=t;this.startPosition={x:c,y:f};const h={image:l,index:s,boundingRect:this.imageContainer.getBoundingClientRect()},C=Xb(t,"dragstart");yz(this.editor,C,r,"image",h),document.addEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.addEventListener("mousemove",this.handleDrag),t.preventDefault()});m(this,"handleDragStart",async t=>{if(!this.imageContainer)return;const e=Q(this.imageContainer);if(!e)return;const{x:r,y:i}=t,{width:o,height:s}=t.target.getBoundingClientRect(),l=xe(e),c=B("div",["drag-container"],l);c.style.left=`${r-o/4}px`,c.style.top=`${i-s/4}px`,c.style.width=`${Math.max(o/2,16)}px`,c.style.height=`${s/2}px`,this.dragContainer=c,z(this.editor.contentElement,"dragging");const f=tn(e);this.autoScroll=new Ff({scrollElement:f,trackMouseEvent:"mousemove",edge:{top:50,bottom:50}}),this.autoScroll.active();const h=B("img",["drag-target"],c),E=await _z(this.imageContainer);E&&(h.src=E)});m(this,"handleDrag",t=>{var o;const{x:e,y:r}=t;if(((o=this.startPosition)==null?void 0:o.x)===e&&this.startPosition.y===r)return;if(window.isDragging||(window.isDragging=!0,this.handleDragStart(t)),this.startPosition&&this.dragContainer){const{x:s,y:l}=t;if(s===0&&l===0){this.dragContainer.style.transform="",this.dragContainer.style.opacity="0";return}const{x:c,y:f}=this.startPosition,h=s-c,C=l-f;this.dragContainer.style.transform=`translate(${h}px, ${C}px)`,this.dragContainer.style.opacity="0.5"}const i=Xb(t,"dragover");this.editor.contentElement.dispatchEvent(i)});m(this,"handleDragEnd",t=>{var e;if(window.isDragging=!1,this.dragContainer&&this.dragContainer.remove(),this.dragContainer=null,this.startPosition=null,this.imageContainer=null,(e=this.autoScroll)==null||e.inactive(),lt(this.editor.contentElement,"dragging"),document.removeEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.removeEventListener("mousemove",this.handleDrag),t){const r=Xb(t,"drop");this.editor.contentElement.dispatchEvent(r)}});this.editor=t,this.editor.rootContainer.addEventListener("mousedown",this.handleMouseDown),this.img=new Image,this.img.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}destroy(){this.editor.rootContainer.removeEventListener("mousedown",this.handleMouseDown)}}class Oz{constructor(t){m(this,"handleFocusBlockChanged",(t,e,r)=>{const o=this.editor.getFocusedBlock();if(o&&Fi(o)){const s=Ke.getImageObject(this.editor,o);s.getImages().length>0&&s.getSelectedIndex()===-1&&s.setSelectedIndex(0)}if(r&&Fi(r)&&t.findCustom(`image-${r.id}`)){const s=Ke.getImageObject(this.editor,r);s.focusTimes=0,s.blockResizer.disableResize()}});this.editor=t,this.editor.addListener("focusBlockChanged",this.handleFocusBlockChanged)}destroy(){this.editor.removeListener("focusBlockChanged",this.handleFocusBlockChanged)}}class Uz{constructor(t){m(this,"currentResizer",null);m(this,"handleHoveringBlockChange",(t,e)=>{window.isDragging||(e&&this.disable(e),t&&(this.currentResizer=t,this.enable(t)))});this.editor=t,We.get(t).addListener("change",this.handleHoveringBlockChange)}destroy(){We.get(this.editor).removeListener("change",this.handleHoveringBlockChange)}disable(t){Fi(t)&&Ke.getImageObject(this.editor,t).disableResizer()}enable(t){if(Fi(t)){const e=Ke.getImageObject(this.editor,t);this.editor.isBlockWritable(t)&&e.tryEnableResizer()}}}const Nz={image:{title:"\u56FE\u7247",upload:{failed:'<div class="line-1">\u56FE\u7247\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <a href="" class="retry-upload">\u91CD\u8BD5</a></div>'},load:{failed:'<div class="line-1">\u56FE\u7247\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <a href="" class="retry-upload">\u91CD\u8BD5</a></div>',remote:{failed:'<div class="line-1">\u56FE\u7247\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u8BE5\u56FE\u7247\u6765\u81EA\u5916\u90E8\u94FE\u63A5\uFF0C\u5916\u90E8\u94FE\u63A5\u5DF2\u5931\u6548</div><div class="line-3">\u8BF7\u5C06\u539F\u56FE\u4FDD\u5B58\u5230\u672C\u5730\u540E\u4E0A\u4F20\uFF0C <a href="" class="retry-upload">\u6253\u5F00\u56FE\u7247\u94FE\u63A5</a></div>',tooltip:"\u8BE5\u56FE\u7247\u6765\u81EA\u5916\u90E8\u94FE\u63A5\uFF0C\u5982\u679C\u94FE\u63A5\u5931\u6548\u56FE\u7247\u5C06\u65E0\u6CD5\u67E5\u770B\uFF0C\u5EFA\u8BAE\u4FDD\u5B58\u5230\u672C\u5730\u540E\u6DFB\u52A0\u5230\u9875\u9762\u4E2D"}},abstract:"\u56FE\u7247"}},Pz={image:{title:"Image",upload:{failed:'<div class="line-1">Image upload failed</div><div class="line-2">Network error, you can <a href="" class="retry-upload">Retry</a></div>'},load:{failed:'<div class="line-1">Image failed to load</div><div class="line-2">Network error, you can <a href="" class="retry-upload">Retry</a></div>',remote:{failed:'<div class="line-1">Failed to load image</div><div class="line-2">This picture is from an expired external link</div><div class="line-3">Please save the original image to local drives and upload it. <a href="" class="retry-upload">Open image link</a></div>',tooltip:"This picture is from an external link. If the link expires, the picture will not be available. It's recommended to save it to local drives and add it to the page."}},abstract:"Image"}},Fz={image:{title:"\u753B\u50CF",upload:{failed:'<div class="line-1">\u753B\u50CF\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <a href="" class="retry-upload">\u518D\u8A66\u884C</a></div>'},load:{failed:'<div class="line-1">\u753B\u50CF\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <a href="" class="retry-upload">\u518D\u8A66\u884C</a></div>',remote:{failed:'<div class="line-1">\u753B\u50CF\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u3053\u306E\u753B\u50CF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u3044\u308B URL \u304C\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u306E\u3067\u3001\u8868\u793A\u3067\u304D\u307E\u305B\u3093</div><div class="line-3">\u753B\u50CF\u3092\u30ED\u30FC\u30AB\u30EB\u306B\u4FDD\u5B58\u3057\u3066\u30A2\u30C3\u30D7\u30ED\u30FC\u30C0\u3057\u3066\u304F\u3060\u3055\u3044 <a href="" class="retry-upload">\u753B\u50CF\u30EA\u30F3\u30AF\u3092\u958B\u304F</a></div>',tooltip:"\u3053\u306E\u753B\u50CF\u306F\u5916\u90E8\u306B\u30EA\u30F3\u30AF\u3057\u3066\u3044\u308B\u305F\u3081\u3001\u30EA\u30F3\u30AF\u304C\u7121\u52B9\u306B\u306A\u308B\u3068\u3001\u8868\u793A\u3067\u304D\u306A\u304F\u306A\u308A\u307E\u3059\u306E\u3067\u3001\u30ED\u30FC\u30AB\u30EB\u306B\u4FDD\u5B58\u3057\u3001\u30DA\u30FC\u30B8\u306B\u633F\u5165\u3059\u308B\u3053\u3068\u3092\u304A\u52E7\u3081\u3057\u307E\u3059"}},abstract:"\u753B\u50CF"}};D.mergeLang({"zh-CN":Nz,"en-US":Pz,"ja-JP":Fz});function Kz(n,t,e,r){const i=n.getBlockByIndex(t,e),o=n.getBlockText(i),{left:s}=sr(o,r),l=Se(s);let c=r;if(l.endsWith("![]()"))c-=5;else if(l.endsWith("![]"))c-=3;else return!1;const f=r;return $c("image/*").then(h=>{!h||n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(i,c,f-c);let C=e+1;Se(n.getBlockText(i)).trim()?(nu(n,i,c,{forceInsertAfter:!0}),c===0&&(n.deleteBlock(i),C--)):(n.deleteBlock(i),C--),k1(n,"image",t,C,{file:h})})}),!0}class Vz{handleAfterInsertText(t,e,r,i,o){if(o===" "){if(Bg(t,e))return!1;if(Kz(t,e,r,i))return!0}return!1}}const $z=_("copy-image");function Hz(n,t,e,r){const i=e.getImages()[r],o=e.getImages().length===1?e.getWidthPercent():i.flex*100,s=zn([i],o),l={id:rt(),type:"embed",embedType:"image",embedData:s},c=n.options.componentsOptions.image;c!=null&&c.defaultAlign&&(l.align=c.defaultAlign);const f={blocks:{root:[l]},comments:{},meta:{}},h=document.createElement("canvas");h.width=t.naturalWidth,h.height=t.naturalHeight;const C=h.getContext("2d");if(!C)return;const E={},b={};try{C.drawImage(t,0,0,h.width,h.height);const F=h.toDataURL("image/png").replace(/^data:image\/(png|jpg);base64,/,""),Z=i1(F),Y=new File([Z],`${Date.now()}.png`,{type:"image/png"});E["image/png"]=Y}catch(M){$z.error(M)}md(n,f);const k=`<img src="${n.doc.buildResourceUrl(i.src,{withToken:!0})}" />`,w=hd(k,f),O=new Blob([w],{type:"text/html"});return E["text/html"]=O,b["text/html"]=w,[E,b]}function jz(n,t,e,r,i){const o=Hz(n,t,e,r);if(!o)return;const[s,l]=o;if(s){const c=Object.entries(s).map(([f,h])=>({type:f,data:h}));return Nf(c).then(f=>{if(!f&&i){const h=i.clipboardData;h&&(h.setData("text/plain",l["text/plain"]),h.setData("text/html",l["text/html"]))}}),!0}}function Ig(n,t){const e=n.selection.range;if(e.start.blockId!==e.end.blockId)return;const i=n.getFocusedBlock();if(i&&Fi(i)){const o=Ke.getImageObject(n,i);if(o.getImages().length>0){const l=o.getSelectedIndex();if(l!==-1){const f=bo(i)[l].querySelector("img");if(f)return jz(n,f,o,l,t)}}}}function zz(n){const t=n.getFocusedBlock(),e=Jr(t);if(e&&Fi(e)){n.selection.selectBlock(e,0);const r=Ke.getImageObject(n,e);return r.getImages().length>0&&r.setSelectedIndex(0),!0}}function Wz(n){const t=n.getFocusedBlock(),e=Yr(t);if(e&&Fi(e)){n.selection.selectBlock(e,0);const r=Ke.getImageObject(n,e);return r.getImages().length>0&&r.setSelectedIndex(0),!0}}function Gz(n){const e=n.getFocusedBlock();if(e&&Fi(e)){const r=Ke.getImageObject(n,e),i=r.getImages();if(i.length>0){const o=r.getSelectedIndex();if(o===-1)return r.setSelectedIndex(i.length-1),!0;if(o>0)return r.setSelectedIndex(o-1),!0}}}function qz(n){const e=n.getFocusedBlock();if(e&&Fi(e)){const r=Ke.getImageObject(n,e),i=r.getImages();if(i.length>0){const o=r.getSelectedIndex();if(o===-1)return r.setSelectedIndex(0),!0;if(o<i.length-1)return r.setSelectedIndex(o+1),!0}}}function Dg(n){const e=n.getFocusedBlock();if(e&&Fi(e)){const r=Ke.getImageObject(n,e);if(r.getImages().length>0){const o=r.getSelectedIndex();if(o!==-1)return r.removeImage(o),!0}}}const Xz={ArrowLeft:Gz,ArrowRight:qz,ArrowUp:Wz,ArrowDown:zz,Delete:Dg,Backspace:Dg};class Yz{constructor(t){this.editor=t,setTimeout(()=>{this.editor.input.addHandler(this)})}handleBeforeCopy(t,e,r){if(!window.isSecureContext)return;if(Ig(t,e))return!0}handleBeforeCut(t,e){if(Ig(t,e))return Dg(t),!0}destroy(){}}class Yb{constructor(t){this.editor=t,setTimeout(()=>{this.editor.input.addHandler(this)})}async handleAfterPasteDoc(t,e,r){return Object.values(e.blocks).forEach(i=>{i.forEach(o=>{if(o.type==="embed"&&o.embedType==="image"){const s=o.embedData;if(Array.isArray(s.src))return;let l=r.blockIdMap.get(o.id);for(;l&&r.blockIdMap.get(l);)l=r.blockIdMap.get(l);l&&Il(t,l).setAutoFix(!0)}})}),!1}destroy(){}}const Jz=2;function _g(n,t,e){const r=bo(t);if(e<=0){const s=r[0].getBoundingClientRect();return new DOMRect(s.left-4,s.top,2,s.height)}if(e===r.length){const s=r[e-1].getBoundingClientRect();return new DOMRect(s.right+2,s.top,2,s.height)}const i=r[e-1].getBoundingClientRect(),o=r[e].getBoundingClientRect();return new DOMRect((o.left+i.right)/2-1,i.top,Jz,i.height)}function Qz(n,t,e,r,i){for(let o=0;o<e.length;o++){const l=e[o].getBoundingClientRect();if(r<=l.right)return r<=l.left+l.width/2?{type:"custom",rect:_g(n,t,o),data:o}:{type:"custom",rect:_g(n,t,o+1),data:o+1}}return r>e[e.length-1].getBoundingClientRect().right?{type:"custom",rect:_g(n,t,e.length),data:e.length}:{type:"custom",rect:_g(n,t,e.length),data:0}}function Zz(n,t,e,r,i){const o=bo(t);if(e instanceof DataTransferItemList){if(!Array.from(e).some(s=>Ew(s.type))||o.length>=6)return}else{if((e==null?void 0:e.type)==="block"||(o.length>=6||o.length===1)&&(e==null?void 0:e.blockId)!==dt(t))return;const s=dt(t);if(o.length===1&&s===(e==null?void 0:e.blockId))return}return Qz(n,t,o,r)}const tW={embedProperties:{edit:"\u7F16\u8F91",addComment:"\u6DFB\u52A0\u6279\u6CE8"}},eW={embedProperties:{edit:"Edit",addComment:"Add annotation"}},nW={embedProperties:{edit:"\u7DE8\u96C6",addComment:"\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0"}};D.mergeLang({"zh-CN":tW,"en-US":eW,"ja-JP":nW});const Mw=_("embed-block-properties");function Na(n,t){var e;for(const r of n.blockHooks){const i=(e=r.commands)==null?void 0:e.call(r,n,t);if(!!i&&i.group==="block-comment-actions")return i.executeCommand(n,t,i.commands[0]),!0}return!1}class Jb{constructor(t,e,r){m(this,"group","hovering-toolbar");m(this,"_commands",[{id:"edit",name:D.t("embedProperties.edit"),icon:K0},{id:"add-comment",name:D.t("embedProperties.addComment"),icon:cs}]);this.editor=t,this.block=e,this.properties=r}get commands(){var i,o,s;if(this.editor.readonly)return[];let t=this._commands;const{enableComments:e=!0}=this.editor.options;e||(t=t.filter(l=>l.id!=="add-comment")),t.forEach(l=>{(l.id==="add-comment"||l.id==="edit")&&(l.states=this.editor.isBlockWritable(this.block)?[]:["disabled"])});let r=(i=this.properties)!=null&&i.presetIds?t.filter(l=>{var c,f;return(f=(c=this.properties)==null?void 0:c.presetIds)==null?void 0:f.includes(l.id)}):[...t];return(s=(o=this.properties)==null?void 0:o.extCommands)!=null&&s.length&&(r.length&&r.push({id:rt(),type:"separator",name:""}),r.push(...this.properties.extCommands)),r.length<=3&&(r=r.filter(l=>l.id!=="separator")),r}executeCommand(t,e,r){var i,o;if(!((o=(i=this.properties)==null?void 0:i.handleExecuteCommand)!=null&&o.call(i,t,e,r))){if(r.id==="add-comment"){Na(t,e)||Mw.error("failed to add comment to block");return}Mw.error(`unknown command: ${JSON.stringify(r)}`)}}}function Qb(n,t,e){return{blockCommands:{"hovering-toolbar":new Jb(n,t,e)}}}class lh{constructor(t){m(this,"blockResizer");m(this,"handleResizing",(t,e)=>{var i,o;const r=t.getBlock();if(r){if(((o=(i=jt(this.editor,r)).notify)==null?void 0:o.call(i,this.editor,"resize",{block:r,rect:e}))===!0)return;const s=Math.max(e.height,100),f={...this.editor.getBlockData(r).embedData,height:s};this.editor.updateEmbedData(r,f)}});m(this,"handleHoveringBlockChange",(t,e)=>{e&&me(e)&&_t(e,"resizable")&&this.disableResizer(),t&&me(t)&&_t(t,"resizable")&&this.editor.isBlockWritable(t)&&this.tryEnableResizer(t)});this.editor=t,We.get(t).addListener("change",this.handleHoveringBlockChange),this.blockResizer=new Zd(this.editor,{resize:["bottom"]}),this.blockResizer.addListener("resizing",this.handleResizing)}destroy(){We.get(this.editor).removeListener("change",this.handleHoveringBlockChange)}tryEnableResizer(t){this.blockResizer.enableResize(t)}disableResizer(){this.blockResizer.disableResize()}static get(t){return t.addCustom("EmbedBlockResizer",()=>new lh(t))}static register(t,e){return z(e,"resizable"),t.addCustom("EmbedBlockResizer",()=>new lh(t))}}class rW{constructor(t,e){m(this,"group","hovering-toolbar");m(this,"_commands",[{id:"addComment",name:D.t("comment.quickMenuCommand"),icon:cs},{id:"sep",name:"",type:"separator"},{id:"left",name:D.t("commands.alignLeft"),icon:xl},{id:"center",name:D.t("commands.alignCenter"),icon:fu},{id:"right",name:D.t("commands.alignRight"),icon:uu}]);this.editor=t,this.block=e,this.editor=t,this.block=e}createIconItem(t,e,r){if(!t)return null;const i=["style-icon","text-style-item"];return e&&i.push("active"),jo(t,i,r)}get commands(){if(this.editor.readonly)return[];const t=this.block.getAttribute("data-style-align");return this._commands.map(r=>r.id===t?{...r,element:()=>{const i=B("div",["image-tooltip-align-style-section"],null);return this.createIconItem(r.icon,!0,i),i}}:r)}executeCommand(t,e,r){switch(r.id){case"addComment":Na(t,e);break;case"left":case"center":case"right":hg(t,e,r.id);break}}}const iW=_("image-embed");function oW(n,t){n.domEvents.addEventListener(t,"mousedown",(e,r)=>{const i=Ke.getImageObject(e,t);i.mouseStartX=r.clientX,i.mouseStartY=r.clientY}),n.domEvents.addEventListener(t,"mouseup",(e,r)=>{const i=Ke.getImageObject(e,t);if(i.focusTimes===0){i.focusTimes+=1;return}if(!(Math.abs(r.clientX-i.mouseStartX)<5&&Math.abs(r.clientY-i.mouseStartY)<5))return;const s=e.options.componentsOptions.image;s!=null&&s.onPreview&&s.onPreview(e,r)})}function sW(n,t,e,r,i,o){Ke.create(n,e).createContent(i,o,t),n.addCustom("image-select-handler",()=>new Oz(n)),n.addCustom("image-copy-handler",()=>new Yz(n)),setTimeout(()=>{n.addCustom("drag-handler",()=>new Mz(n));const l=n.addCustom("image-resizer",()=>new Uz(n)),c=e.embedData;Du(c)?l.disable(o):l.currentResizer===o&&l.enable(o)}),oW(n,o)}function lW(n,t,e,r){const i=t.embedData,o=Mu(i);return r==="html"?o.map(s=>`<img src="${n.doc.buildResourceUrl(s.src,{withToken:!0})}">`).join(""):r==="markdown"?`${o.map(l=>`![img](${n.doc.buildResourceUrl(l.src,{withToken:!0})})`).join(`
@@ -971,4 +971,4 @@ ${o.mermaidText}
971
971
  ${o.flowchartText}
972
972
  \`\`\`\`\`\``}return""}const itt={embedType:"flowchart",convertFrom:ett,handleUpdateBlock:ttt,createEmbedContent:ZZ,getBlockProperties:ntt,convertTo:rtt},ott=_("plantuml-helper");function cL(n,t){var l;let r=((l=(n.getComponentOptions("plantuml")||{}).cdn)==null?void 0:l.plantuml)||UZ;r.endsWith("/")||(r+="/");const i=KI.default.encode(t);p(ott,i,i),r+=i;const s=new URLSearchParams(document.location.search).get("doc");return r1(r,{id:`${s}-${rt()}`})}async function stt(n,t){try{const e=await Fx(n,t);return(await n.doc.uploadResource(e)).resourceId}catch{return Promise.resolve(t)}}class qu extends Hx{constructor(t){super(t,"plantuml","plantumlText")}static get(t,e){return t.addCustom(`plantuml-${e.id}`,()=>new qu(t))}code2ObjectUrl(t){return Promise.resolve(cL(this.editor,t))}code2ResourceId(t){const e=cL(this.editor,t);return stt(this.editor,e)}destroy(){}}function ltt(n,t,e){qu.get(n,e).createEmbedContent(t,e)}function att(n,t,e){const r=qu.get(n,e),i=$t(t);return r.updateEmbedContent(i,e),!0}function ctt(n,t,e){const{data:r}=e,i=n.getBlockString(t).trim();if(!r||r.embedType!=="plantuml"||i!=="```plantuml"||!at(n,t))return null;const o={src:"",plantumlText:""};return{blockData:{id:rt(),type:"embed",embedType:"plantuml",embedData:o},onConverted:(c,f)=>{qu.get(c,c.getBlockData(f)).editGraph($t(f))}}}function utt(n,t){return qu.get(n,n.getBlockData(t)).getBlockProperties(t)}function ftt(n,t,e,r){const{embedData:i}=t,o=i;if(r==="html")return o.src?`<img src="${n.doc.buildResourceUrl(o.src,{withToken:!0})}" />`:o.flowchartText?`<div>${o.flowchartText}</div>`:"<p>[plantuml]</p>";if(r==="markdown"){if(o.src)return`![plantuml](${n.doc.buildResourceUrl(o.src,{withToken:!0})})`;if(o.flowchartText)return`\`\`\`plantuml\`\`\`
973
973
  ${o.flowchartText}
974
- \`\`\`\`\`\``}return""}const dtt={embedType:"plantuml",convertFrom:ctt,handleUpdateBlock:att,createEmbedContent:ltt,getBlockProperties:utt,convertTo:ftt},Lut="",htt="hr",mtt={dividingLine:{type:"\u5206\u5272\u7EBF",abstract:"\u5206\u5272\u7EBF"}},gtt={dividingLine:{type:"Dividing-Line",abstract:"Dividing-Line"}},ptt={dividingLine:{type:"\u533A\u5207\u308A\u7DDA",abstract:"\u533A\u5207\u308A\u7DDA"}};D.mergeLang({"zh-CN":mtt,"en-US":gtt,"ja-JP":ptt});function Ctt(n,t){const e=B("div",["editor-embed-container"],t);B("hr",["editor-embed-hr"],e)}function Ett(n,t,e,r){return r==="html"?"<hr />":r==="markdown"?"---":"------------"}function btt(){return{name:"hr",insertEmbedCommandItems:[{id:"insert-hr",name:D.t("dividingLine.type"),icon:a2,order:500,group:"common",subText:Qn("insert-hr")}],handleInsertEmptyEmbed:async(n,t)=>{const{containerId:e,blockIndex:r}=t;return n.insertEmbed(e,r,htt,{})}}}function xtt(n,t,e){const{data:r}=e;if(!r||r.embedType!=="dividing-line"||!at(n,t))return null;const i={};return{blockData:{id:rt(),type:"embed",embedType:"hr",embedData:i}}}function Att(){return{abstract:D.t("dividingLine.abstract")}}const vtt={embedType:"hr",createEmbedContent:Ctt,convertTo:Ett,getOptions:btt,convertFrom:xtt,getBlockProperties:Att},Iut="",Dut="",Btt={media:{upload:{failed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>',maxSizeFailed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6</div>'},load:{failed:'<div class="line-1">{name}\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>'},audio:{menuItem:"\u97F3\u9891",abstract:"\u97F3\u9891"},video:{menuItem:"\u89C6\u9891",abstract:"\u89C6\u9891"}}},ytt={media:{upload:{failed:'<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',maxSizeFailed:'<div class="line-1">{name} upload failed</div><div class="line-2">The file size exceeds limit. Please choose another file.</div>'},load:{failed:'<div class="line-1">{name} loading failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>'},audio:{menuItem:"Audio",abstract:"Audio"},video:{menuItem:"Video",abstract:"Video"}}},Ttt={media:{upload:{failed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>',maxSizeFailed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u30D5\u30A1\u30A4\u30EB\u306E\u30B5\u30A4\u30BA\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u308B\u305F\u3081\u3001\u4ED6\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044</div>'},load:{failed:'<div class="line-1">{name}\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>'},audio:{menuItem:"\u97F3\u58F0",abstract:"\u97F3\u58F0"},video:{menuItem:"\u52D5\u753B",abstract:"\u52D5\u753B"}}};D.mergeLang({"zh-CN":Btt,"en-US":ytt,"ja-JP":Ttt});var Vi=(n=>(n.AUDIO="audio",n.VIDEO="video",n))(Vi||{}),Eh=(n=>(n.Empty="empty",n.Progress="progress",n.Error="error",n))(Eh||{});const uL=10*1024*1024,ktt=["wav","mp3","aac","ogg","webm","flac"],Rtt=["ogg","mp4","webm"],wtt=()=>{};function fL(n){var h,C,E,b,v,k;const t=(h=n.getComponentOptions("media"))!=null?h:{},{allowedMedias:e,maxSize:r,callbacks:i}=t,o=(C=e==null?void 0:e.audio)!=null?C:ktt,s=(E=e==null?void 0:e.video)!=null?E:Rtt,l=(b=r==null?void 0:r.audio)!=null?b:uL,c=(v=r==null?void 0:r.video)!=null?v:uL,f=(k=i==null?void 0:i.onError)!=null?k:wtt;return{allowedMedias:{audio:o,video:s},maxSize:{audio:l,video:c},callbacks:{onError:f}}}function Stt(n,t){const e=o=>o.map(s=>`.${s}`).join(","),{allowedMedias:r}=fL(n),i=r[t];return i?e(i):"*"}function Ltt(n,t,e){const{maxSize:r,callbacks:i,allowedMedias:o}=fL(t),{[e]:s}=r,{[e]:l}=o;if(s&&n.size>s){const f=new Error("media is too large");throw f.code=`MaxMediaSize-${e}`,i!=null&&i.onError&&(i==null||i.onError(t,f)),f}const c=Pf(n.name);if(l&&!l.includes(c.toLowerCase())){const f=new Error(`media file is not allowed: ${c}`);throw f.code="NotAllowedFile",i!=null&&i.onError&&(i==null||i.onError(t,f)),f}}function Itt(n){return n===Eh.Empty||n===Eh.Error}const bn=_("media");class Dtt extends $e.TypedEmitter{constructor(e){super();m(this,"mediaContainer",null);m(this,"media",null);m(this,"abstract",null);m(this,"handleMediaLoadError",(e,r)=>{if(!r.target||!(r.target instanceof Node)||!(r.target instanceof Element?r.target:r.target.parentElement))return;const o=Q(r.target);if(!o||!o.contains(this.mediaContainer))return;const s=this.renderError();this.updateMediaContent(s),this.emit("mediaError",e,"load_error",dt(o))});m(this,"handleUploadFile",async e=>{p(bn,this.abstract,"no abstract"),p(bn,this.mediaContainer,"The media element not exist");const{editor:r}=this.options,i=Q(this.mediaContainer);p(bn,i,"The block element not exist");const o=r.getBlockData(i);try{const{resourceId:s}=await r.doc.uploadResource(e,{onProgress:C=>{this.renderProgress(C,e)}}),{name:l,type:c,size:f}=e,h={...o,embedData:{...o.embedData,src:s,fileName:l,fileSize:f,fileType:c}};r.updateBlockData(i,h)}catch(s){bn.error(s),this.emit("mediaError",r,"upload_error",o.id),this.renderRetry(e,s)}lt(i,"media-block-uploading")});m(this,"destroy",()=>{this.mediaContainer=null});this.options=e}bindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.addEventListener(this.media,"error",this.handleMediaLoadError)}unbindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.removeEventListener(this.media,"error",this.handleMediaLoadError)}updateMediaContent(e){p(bn,this.mediaContainer,"The media element not exist"),this.mediaContainer.innerHTML="",this.mediaContainer.append(e)}renderError(){p(bn,this.abstract,"no abstract");const{editor:e,createMediaElement:r}=this.options,{mediaIcon:i,mediaName:o}=this.abstract;p(bn,this.mediaContainer,"The media element not exist");const s=Q(this.mediaContainer);p(bn,s,"The block element not exist");const l=e.getBlockData(s),c=B("div",["media-error","embed-selected-content","embed-hover-content"],null),f=B("span",["media-error-icon"],c);f.innerHTML=i;const h=B("div",[],c);h.innerHTML=D.t("media.load.failed",{name:o}),c.appendChild(h);const C=h.querySelector(".retry-upload");return p(bn,C,"The element not exist"),e.domEvents.addEventListener(C,"click",(E,b)=>{const v=B("div",["media-element"],null),k=this.getResourceUrl(l),w=r(E,v,l,k);this.unbindMediaEvent(),this.media=w,this.bindMediaEvent(),this.updateMediaContent(v)}),this.setFullScreen(),c}renderRetry(e,r){var E,b;p(bn,this.abstract,"no abstract");const{editor:i}=this.options,{mediaIcon:o,mediaName:s}=this.abstract,l=B("div",["media-error","embed-selected-content","embed-hover-content"],null),c=B("span",["media-error-icon"],l);c.innerHTML=o;const f=B("div",[],l);let h=D.t("media.upload.failed",{name:s});(((E=r.response)==null?void 0:E.status)===420||((b=r.response)==null?void 0:b.status)===413)&&(h=D.t("media.upload.maxSizeFailed",{name:s})),f.innerHTML=h,l.appendChild(f);const C=f.querySelector(".retry-upload");C&&i.domEvents.addEventListener(C,"click",()=>{i.readonly||(p(bn,this.abstract,"no abstract"),this.handleUploadFile(e))}),this.updateMediaContent(l),this.setFullScreen()}renderProgress(e,r){p(bn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope .media-progress"),o=e===-1||e===100?100:e;if(i){const{updateProgressElement:s}=this.options;s(i,o)}else{const{createProgressElement:s}=this.options,l=Q(this.mediaContainer);p(bn,l,"The element not exist"),z(l,"media-block-uploading");const c=B("div",["media-progress"],null);s(c,o,r),this.updateMediaContent(c)}this.setFullScreen()}renderMediaElement(e,r){p(bn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope > .media-element"),{createMediaElement:o,updateMediaElement:s,editor:l}=this.options,c=this.getResourceUrl(e,r);if(i){const f=s(l,i,e,c);this.unbindMediaEvent(),this.media=f,this.bindMediaEvent()}else{const f=B("div",["media-element"],null),h=o(l,f,e,c);this.unbindMediaEvent(),this.media=h,this.bindMediaEvent(),this.updateMediaContent(f)}}renderEmpty(e){p(bn,this.abstract,"no abstract"),p(bn,this.mediaContainer,"The media element not exist");const r=B("div",["media-empty","embed-selected-content","embed-hover-content"],this.mediaContainer);r.innerHTML=this.abstract.mediaIcon,this.updateMediaContent(r);const{editor:i}=this.options;i.findBlockById(e.id)&&this.emit("mediaError",i,"empty",e.id),this.setFullScreen()}getResourceUrl(e,r){const{src:i}=e.embedData,{editor:o}=this.options;return o.doc.buildResourceUrl(i,{syncNewResources:async(s,l)=>{var f,h;if(!r)return;await o.doc.addResources([s]);const c=(h=(f=o.doc).getServerMeta)==null?void 0:h.call(f).appId;if(l!==e.embedData.src&&c&&e.embedData.src.includes(c)){const C=Q(r);if(C&&!o.readonly&&o.isBlockWritable(C)){const E=At.default(e);E.embedData.src=s,o.updateBlockData(C,E)}}}})}setFullScreen(){p(bn,this.mediaContainer,"The media element not exist"),z(this.mediaContainer,"full-screen")}removeFullScreen(){p(bn,this.mediaContainer,"The media element not exist"),lt(this.mediaContainer,"full-screen")}updateBlockAlign(e,r){const i=Q(r);p(bn,i,"The block element not exist");const{align:o}=e;e.embedType==="video"&&(i.hasAttribute("data-style-align")&&i.removeAttribute("data-style-align"),i.setAttribute("data-style-align",o))}render(e,r){const{src:i}=e.embedData;(!this.mediaContainer||!r.contains(this.mediaContainer))&&(this.mediaContainer=B("div",["media"],r)),this.updateBlockAlign(e,r),Itt(i)?i===Eh.Empty&&this.renderEmpty(e):this.renderMediaElement(e,r)}setAbstract(e){this.abstract=e}}_("media-embed");const _tt="left";class dL{constructor(){m(this,"handleInsertEmptyEmbed",async(t,e)=>{var C;const{containerId:r,blockIndex:i}=e;let o;(C=e.data)!=null&&C.file&&(o=e.data.file);const s=Stt(t,this.embedType);if(o=o!=null?o:await $c(s,{}),!o)return null;const{mediaType:l}=this.getAbstract();try{Ltt(o,t,l)}catch{return null}const c={id:rt(),type:"embed",embedType:this.embedType,embedData:{src:Eh.Empty}};l==="video"&&(c.align=_tt);const f=t.insertBlock(r,i,c);return await this.getMedia(t,c.id).handleUploadFile(o),f})}getMedia(t,e){const r=t.addCustom(`media-${e}`,()=>new Dtt({editor:t,createMediaElement:this.createMediaElement,updateMediaElement:this.updateMediaElement,createProgressElement:this.createProgressElement,updateProgressElement:this.updateProgressElement}));return r.setAbstract({...this.getAbstract()}),r}getOptions(){const{menuItem:t,mediaIcon:e,mediaName:r,order:i,group:o}=this.getAbstract();return{name:r,insertEmbedCommandItems:[{id:`insert-${this.embedType}`,name:t,icon:e,order:i,group:o,subText:Qn(`insert-${this.embedType}`)}],handleInsertEmptyEmbed:this.handleInsertEmptyEmbed}}createEmbedContent(t,e,r){const{id:i}=r;this.getMedia(t,i).render(r,e)}handleUpdateBlock(t,e,r){const{id:i}=r,o=this.getMedia(t,i),s=$t(e);return o.render(r,s),!0}handleDeleteBlock(t,e){const r=e.id,i=this.getMedia(t,r);i.removeAllListeners(),i.destroy()}convertTo(t,e,r,i){const o=e.embedData,s=t.doc.buildResourceUrl(o.src,{withToken:!0});return i==="html"?`<${o.type} src="${s}" />`:i==="markdown"?`![${o.src}](${s})`:s}}function hL(n,t){const e=B("div",["uploading-progress-mask"],n),r=B("div",["uploading-progress-bar"],e),i=B("div",["uploading-progress-bar-value"],r);i.style.width=`${t}%`}function mL(n,t){const e=n.querySelector(".uploading-progress-bar-value");e&&(e.style.width=`${t}%`)}const Mtt=_("media-audio");class Ott extends dL{constructor(){super(...arguments);m(this,"embedType",Vi.AUDIO);m(this,"updateProgressElement",mL);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["audio-container","embed-hover-content","embed-selected-content"],r),l=B("audio",[],s);return l.innerHTML="Your browser does not support the <code>audio</code> element.",l.controls=!0,l.src=o,setTimeout(()=>{this.getMedia(e,i.id).setFullScreen()}),l})}getAbstract(){return{mediaIcon:o2,mediaName:D.t(`media.${Vi.AUDIO}.menuItem`),menuItem:D.t(`media.${Vi.AUDIO}.menuItem`),order:800,mediaType:Vi.AUDIO,group:"common"}}getBlockProperties(){return{abstract:`${D.t(`media.${Vi.AUDIO}.abstract`)}`}}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .audio-container > audio");return p(Mtt,s,"The media element not exist"),s.src!==o&&(s.src=o),s}createProgressElement(e,r){const i=B("audio",[],e);i.innerHTML="Your browser does not support the <code>audio</code> element.",i.controls=!0,i.src="about:blank",hL(e,r)}}const Utt=new Ott;_("video-resizer");function gL(n){return n&&me(n)&&Ge(n)==="video"}const Ntt=50;class jx{constructor(t){m(this,"currentResizableElement",null);m(this,"resizing",!1);m(this,"handleHoveringBlockChange",(t,e)=>{if(!this.resizing&&!window.isDragging&&(e&&gL(e)&&this.disableBlockResize(e),t&&gL(t)&&this.editor.isBlockWritable(t))){const r=this.getVideoElement(t);if(!r)return;this.enableBlockResize(t,r)}});m(this,"handleResizing",(t,e)=>{if(this.resizing=!0,!this.currentResizableElement)return;const r=t.getBlock();if(!r)return;const i=r.getBoundingClientRect().width,o=Math.min(Math.max(e.width,Ntt),i);this.currentResizableElement.style.width=`${o}px`,this.currentResizableElement.style.pointerEvents="none"});m(this,"handleResized",t=>{this.resizing=!1;const e=t.getBlock();if(!this.currentResizableElement||!e)return;const r=this.editor.getBlockData(e),{width:i}=this.currentResizableElement.getBoundingClientRect();this.currentResizableElement.style.pointerEvents="auto",this.editor.updateBlockData(e,{...r,width:i})});this.editor=t,We.get(t).addListener("change",this.handleHoveringBlockChange)}destroy(){this.currentResizableElement=null,We.get(this.editor).removeListener("change",this.handleHoveringBlockChange)}getVideoElement(t){return $t(t).querySelector(":scope .video-container > video")}updateResizer(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.updateResizer()}disableBlockResize(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.disableResize()}enableBlockResize(t,e){const r=this.editor.addCustom(`${dt(t)}-resizer`,()=>new Zd(this.editor,{resize:["top-left","top-right","bottom-left","bottom-right"]}));r.enableResize(t,e),r.removeListener("resizing",this.handleResizing),r.removeListener("resized",this.handleResized),r.addListener("resizing",this.handleResizing),r.addListener("resized",this.handleResized),this.currentResizableElement=e}}class Ptt{constructor(t,e){m(this,"group","hovering-toolbar");m(this,"_commands",[{id:"addComment",name:D.t("comment.quickMenuCommand"),icon:cs},{id:"sep",name:"",type:"separator"},{id:"left",name:D.t("commands.alignLeft"),icon:xl},{id:"center",name:D.t("commands.alignCenter"),icon:fu},{id:"right",name:D.t("commands.alignRight"),icon:uu}]);this.editor=t,this.block=e,this.editor=t,this.block=e}createIconItem(t,e,r){if(!t)return null;const i=["style-icon","text-style-item"];return e&&i.push("active"),jo(t,i,r)}get commands(){if(this.editor.readonly)return[];const t=this.block.getAttribute("data-style-align");return this._commands.map(r=>r.id===t?{...r,element:()=>{const i=B("div",["video-tooltip-align-style-section"],null);return this.createIconItem(r.icon,!0,i),i}}:r)}executeCommand(t,e,r){switch(r.id){case"addComment":Na(t,e);break;case"left":case"center":case"right":hg(t,e,r.id);break}}}const Ftt=_("video");class Ktt extends dL{constructor(){super(...arguments);m(this,"embedType",Vi.VIDEO);m(this,"updateProgressElement",mL);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["video-container","embed-selected-content","drag-preview-element"],r),l=B("video",[],s);return l.innerHTML="Your browser does not support the <code>video</code> element.",l.controls=!0,l.src=o,l.addEventListener("canplay",()=>{e.addCustom("video-resizer",()=>new jx(e)),this.getMedia(e,i.id).removeListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).addListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).removeFullScreen()}),i.width&&(l.style.width=`${i.width}px`),l});m(this,"createProgressElement",(e,r,i)=>{const o=B("video",["progress-video"],e);o.innerHTML="Your browser does not support the <code>audio</code> element.",o.controls=!0,hL(e,r),Vc(i).then(s=>{const l=e.querySelector(".progress-video");l&&v1(e)&&(l.src=s)})})}getAbstract(){return{mediaName:D.t(`media.${Vi.VIDEO}.menuItem`),mediaIcon:s2,menuItem:D.t(`media.${Vi.VIDEO}.menuItem`),order:700,mediaType:Vi.VIDEO,group:"common"}}getBlockProperties(e,r){return{abstract:`${D.t(`media.${Vi.VIDEO}.abstract`)}`,blockCommands:{"hovering-toolbar":new Ptt(e,r)}}}handleMediaError(e,r,i){const o=e.addCustom("video-resizer",()=>new jx(e)),s=e.getBlockById(i);o.disableBlockResize(s)}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .video-container > video");p(Ftt,s,"The media element not exist"),s.src!==o&&(s.src=o),i.width?s.style.width=`${i.width}px`:s.style.width="";const l=e.getBlockById(i.id);return setTimeout(()=>{e.addCustom("video-resizer",()=>new jx(e)).updateResizer(l)}),s}}const Vtt=new Ktt,zx=[UR,XR,YR,wK,G4],Wx=[oL,VQ,XZ,itt,dtt,lV,vtt,Vtt,Utt,hW,k4,zX],pL=[sR,S4,QS,dR];function $tt(n,t,e){var i,o,s,l;Ei.level=(i=e.logLevel)!=null?i:rl.DEBUG;const r=pd(n,t,{components:{blocks:[...zx,...((o=e==null?void 0:e.components)==null?void 0:o.blocks)||[]],embeds:[...Wx,...((s=e.components)==null?void 0:s.embeds)||[]],boxes:[...pL,...((l=e.components)==null?void 0:l.boxes)||[]],textRenders:[new sb],options:{...e.componentsOptions}}});return r.readonly=!0,r.addCustom("heading-collapse",()=>new kx(r)),r.addCustom("editor-tooltip",()=>new zd(r)),r.addListener("clickLink",(c,f,h)=>{var E;if((E=e==null?void 0:e.events)!=null&&E.onClickLink){e.events.onClickLink(c,f,h);return}const C=h.getAttribute("link");C&&(c.readonly||f.ctrlKey||f.metaKey)&&window.open(C,"_blank")}),r}class CL{constructor(t){this.createOptions=t,t.lang&&D.setLang(t.lang)}createHistoryEditor(t,e){return $tt(t,e,this.createOptions)}}function EL(n,{root:t,childDoc:e,doc:r}){var h,C;e.uploadResource=r.uploadResource.bind(r),e.buildResourceUrl=r.buildResourceUrl.bind(r);const i=n.getComponentOptions("comment"),o={image:{defaultAlign:"left"},table:{locatingContainer:t,hideCellMenu:!0,hideToolbar:!0},...i==null?void 0:i.componentsOptions},s=[];n.editorBlocks.forEach(E=>{E.blockType==="text"||E.blockType==="embed"||s.push(E)});const l=[];n.editorEmbeds.forEach(E=>{l.push(E)});const c=[];n.editorBoxes.forEach(E=>{E.boxType==="text"||E.boxType==="br"||E.boxType==="image"||E.boxType==="anchor"||c.push(E)});const f=pd(t,e,{shortcuts:[g0],components:{blocks:s,commandProviders:[new q0],decorators:[new vg],embeds:l,boxes:c,options:o}});if(f.input.addHandler(new yg),f.input.addHandler(new Zb(f)),f.input.addHandler(new ox(f)),f.input.addHandler(new iX(f)),f.input.addHandler(new wg),f.addCustom("image-paste-handler",()=>new Yb(f)),f.addCustom("layout-paste-handler",()=>new Ux(f,!1)),ye.isMobile||f.addCustom("editor-tooltip",()=>new zd(f)),n.options.enableContextMenu!==!1&&f.addCustom("editor-context-menu",E=>new ax(E)),(h=n.options.componentsOptions)!=null&&h.mention){const E=n.options.componentsOptions.mention;f.addCustom("mention",()=>new w4(f,{...E}))}if((C=n.options.componentsOptions)!=null&&C.comment){const E=n.options.componentsOptions.comment;E.onCommentEditorClick&&f.addListener("click",E.onCommentEditorClick)}return f}function Htt(n,t){const e=Array.from(n.rootContainer.querySelectorAll(`[comment-${t.toLocaleLowerCase()}="${t}"]`)),r=new Set;e.forEach(i=>{const o=Q(i);o&&r.add(o)}),r.forEach(i=>{oX(n,i,t)})}class jtt{constructor(t){m(this,"listeners",new Set);m(this,"doc");this.editor=t,this.doc=this.editor.doc.externalDoc,this.doc.registerCallback(this)}getComments(){return this.doc.getComments()}getComment(t){return this.doc.getComment(t)}getCommentDoc(t){return this.doc.getCommentDoc(t)}localCreateComment(t,e){this.doc.localCreateComment(t,e)}localDeleteComment(t){const e=this.getComment(t);this.doc.localDeleteComment(t);const r=e.groupId;this.getComments().filter(o=>o.groupId===r).length===0&&Htt(this.editor,r)}localUpdateComment(t,e){this.doc.localUpdateComment(t,e)}onCreateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onCreateComment(t,e))}onDeleteComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onDeleteComment(t,e))}onUpdateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onUpdateComment(t,e))}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}createCommentEditor(t,e){return EL(this.editor,{root:t,childDoc:e,doc:this.doc})}allowEdit(t){return t.userId===this.doc.getUser().userId}}class ztt{constructor(t,e){m(this,"listeners",new Set);this.editor=t,this.localDoc=e}get doc(){return this.localDoc.toJSON()}getComments(){return Object.values(this.doc.comments)}getComment(t){return this.doc.comments[t]}getCommentDoc(t){const e=this.doc.comments[t];return iE(e)}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}localCreateComment(t,e){}localDeleteComment(t){}localUpdateComment(t,e){}createCommentEditor(t,e){return EL(this.editor,{root:t,childDoc:e,doc:this.localDoc})}allowEdit(t){return t.userId===this.localDoc.getUser().userId}}const Wtt={placeholder:{common:{title:"\u8BF7\u8F93\u5165\u6807\u9898",readonlyTitle:"\u8BF7\u8F93\u5165\u6807\u9898",content:"\u70B9\u51FB + \uFF0C\u6216\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6",contentInTable:"\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6"},local:{readonlyTitle:"\u672A\u547D\u540D"}},copyCutProperty:{copy:"\u590D\u5236",cut:"\u526A\u5207",unsafeEnvTips:"\u7531\u4E8E\u5F53\u524D http \u8BBF\u95EE\u73AF\u5883\u4E0B\u7684\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528\u5FEB\u6377\u952E({shortCut}) {operation}",limitedEnvTips:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528 {shortCut} \u7C98\u8D34"}},Gtt={placeholder:{common:{title:"Enter a title",readonlyTitle:"Enter a title",content:'Click "+", or enter "/" to insert components quickly',contentInTable:'Enter "/" to insert components quickly'},local:{readonlyTitle:"Untitled"}},copyCutProperty:{copy:"Copy",cut:"Cut",unsafeEnvTips:"Due to the limitations of the current http access environment, please use the shortcut ({shortCut}) {operation}",limitedEnvTips:"Press {shortCut} to paste due to browser restrictions"}},qtt={placeholder:{common:{title:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",readonlyTitle:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",content:"\u300C+\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u304B\u3001\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059",contentInTable:"\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059"},local:{readonlyTitle:"\u7121\u984C"}},copyCutProperty:{copy:"\u8907\u88FD",cut:"\u5207\u308B",unsafeEnvTips:"HTTP\u74B0\u5883\u306E\u5236\u7D04\u306B\u3088\u308A\u3001{operation}\u3059\u308B\u306B\u306F\u3001\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8({shortCut}) \u3092\u3054\u4F7F\u7528\u304F\u3060\u3055\u3044",limitedEnvTips:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u5236\u9650\u306B\u3088\u308A\u3001\u300C{shortCut}\u300D\u3092\u4F7F\u7528\u3057\u3066\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044"}};D.mergeLang({"zh-CN":Wtt,"en-US":Gtt,"ja-JP":qtt});const Xtt="UEsDBBQABgAIAAAAIQBk9WPugQEAACkGAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC0lMtqwzAQRfeF/oPRtsRKuiilxMmij2UbaArdKvI4EdULaZzH33fsJKYUJy5NsjHIM/feowHNcLw2OllCiMrZjA3SPkvASpcrO8/Yx/Sld8+SiMLmQjsLGdtAZOPR9dVwuvEQE1LbmLEFon/gPMoFGBFT58FSpXDBCKRjmHMv5JeYA7/t9++4dBbBYg8rDzYaPkEhSo3J85p+b0kC6MiSx21jlZUx4b1WUiDV+dLmv1J6u4SUlHVPXCgfb6iB8daEqnI4YKd7o9EElUMyEQFfhaEuvnIh57mTpSFletymhdMVhZLQ6Cs3H5yEGGnmRqcIxtMNIDVC2T1/G4csIzrzaTRXpJkE5+PgZJzGtPKDgAqaGR6chS3NDALRn38YjXUnRMSNhnh+gq1vdzwgkuASADvnToQVzN4vRvHDvBOkoNypmGk4P0Zj3QmBtIpg+z39VdQ2xyKps36AtNrCP669312Vuuf/9PKaRLI++X5QrcUc8pZsXi/60TcAAAD//wMAUEsDBBQABgAIAAAAIQAekRq37wAAAE4CAAALAAgCX3JlbHMvLnJlbHMgogQCKKAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArJLBasMwDEDvg/2D0b1R2sEYo04vY9DbGNkHCFtJTBPb2GrX/v082NgCXelhR8vS05PQenOcRnXglF3wGpZVDYq9Cdb5XsNb+7x4AJWFvKUxeNZw4gyb5vZm/cojSSnKg4tZFYrPGgaR+IiYzcAT5SpE9uWnC2kiKc/UYySzo55xVdf3mH4zoJkx1dZqSFt7B6o9Rb6GHbrOGX4KZj+xlzMtkI/C3rJdxFTqk7gyjWop9SwabDAvJZyRYqwKGvC80ep6o7+nxYmFLAmhCYkv+3xmXBJa/ueK5hk/Nu8hWbRf4W8bnF1B8wEAAP//AwBQSwMEFAAGAAgAAAAhADPCW79BAQAA5wQAABwACAF3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzIKIEASigAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArJQxT8MwEIV3JP5D5B07LVAQatoFkDqwQJFYneSSWI3tyL6Q9t9zojRNRYkYPN6z7r1P57Pny62uo09wXlmTsAmPWQQms7kyZcLe189X9yzyKE0ua2sgYTvwbLm4vJi/Qi2RmnylGh+Ri/EJqxCbByF8VoGWntsGDJ0U1mmJVLpSNDLbyBLENI5nwg092OLEM1rlCXOrnPLXuwb+422LQmXwaLNWg8EzEQKpF8hQuhIwYd/lXpxwMmPiPMN1SAaPu5qG2EPs67H4u5DxhTW4lmk9GEMvjUFMQ0KYVqfgaMeOEL00BjEJCZG1Hq3+oLQegvOjKhSCHl2LWUiaipxcrczmSPNj23UdT6XKW55ZLQ7HLzan5KctgjPyT8TbkIgdpG+ASHc0WN+BODarm6BP6BfFQTkgiJPvafEFAAD//wMAUEsDBBQABgAIAAAAIQBOMo6QFgYAAKYkAAARAAAAd29yZC9kb2N1bWVudC54bWzUWttu40QYvkfiHSJfLRKtz4eYTVeOD7uVQKoo+wCuPUmstT3WeNI0XC0XC1wguOBiuWClLgjBE4AEiIdZ0T28BTM+JM6h7cTZkm0vEnv+mW+++eb7/0yc3r13lsSdU4DyCKY9TtwXuA5IAxhG6bDHPfzM2zO4To79NPRjmIIeNwU5d+/g/ffuTswQBuMEpLhDINLcnGRBjxthnJk8nwcjkPj5fhIFCOZwgPcDmPBwMIgCwE8gCnlJEIXiKkMwAHlO5rP99NTPuQouOGNDC5E/IYMpoMIHIx9hcDbHEDcGUfkub6wCSS2AyAolcRVK3hhK4ymrFSClFRBhtYKktkNaszitHZK0iqS3Q5JXkYx2SCt2SlYNDjOQkuAAosTH5BYN+cRHj8bZHgHOfBydRHGEpwRT0GoYP0oftWBERs0QEjncGEHnExiCWA5rFNjjxig1q/F7s/GUulmOr97qEYhl/eUQpyoOxcp5BGKiBUzzUZTNMjxpi0aCoxrk9KpFnCZx3W+SiYzpcll5ckop54As9Cv9k7hkfjWiKDDsCIWYjWChsDhnzSQhLpxP3EqahrgiYwGpAaQVAC0AjAW/xjAqDD6YZyjFiRhTo8Ypd4XiRHNhRcY6tkymAZCDzSDUmkc+TRoryobb2fY+guNsjhZth3Y4L0ITehzYAKuyfzMl8+3IHI/8jNSmJDAPhylE/klMGBEzd4gfO8UO0FeyrfStuARnHVoIuANyfDmB4ZS+ZySimJmP/EPiHEV2dE+3La5oJcUf01a9+iOtJjkqhZ/2OEEQJE1z5FmTAwb+OMY04nUVRRfryFGjqZjwCBVvx3gaE4bmqR/3uAfAp2cukeNpDJVdYj8d1h1AuvfwmEb5KszPkMqX6tqDKc7JoFGUEi7Az7GVR35z4MTEBy/Pv3rz0w+0CZeBZZwrp6ajxIXBlMwaMT2l6wh9lUHMRcnejpjSDYrJoND2GksMGquOY+iu7exIY/m2ayyzaKwaqi4YNNd3obFy2zVWGDTW+7Il296uaoX6LmisMugkKIpouJqwI5202+5FjUFjTfQ8S7OMHWms33aNdQaNJd3qqoq8q5pq3HaNDRaNNcFzRafLoLGtaF2JdlzReDFSaFw1NTTeRMf1XBVLNcSux+KHnXOVBddQLEm6DVxVSxf6nubdPNfFPLNhCCqWdRxBOHARIj3wNCNf1YbIT46xj3CVi6WxA5jmMAb7MRzeWUqQtQhuGi6Mf/H4xxGIY/hhh3xbjMMXj5998BFDrsiSZnuiYjPoZLiC7fV3rVM+zTFI9uEY72eI1KA4baPWnZZyiYYu2oLFlK6u2C3OzqtyLURaytXME8Zvv//+9fOr8y8unj1lWKjqeroraMpWvliMFAutmoq9WDp9aJohGzrLN7o2M7asLrVj6MMbM8/8gBgqQyAH6BRwB5RlZ8l/1HgFrSO0NH29Wws7e5jGUQoa+zvbLgwuQ26YiBGX2SOvn39z8eWT0ik3tbAzvIzMuiuXbkRndSfW+1rRlb7nKExng00SeDuXXcK1qwiWJi99hmme4uiaRfNkJ1wXt2u78+Dr35+8+vPXJTeMSNVGxDuPOsiMyILRYahR/qMoxxBNSREuTbdox+vy4UGNem06MPB+8/0/L7/9ZdluM+JvV6SX539c/P0dg7eFru3alrhUs1VH6kuqPD/gULUcRVAdd51fFiM35m21L3ueJNOJGlwFQ1FFxZ0beQ3Xcrs3WkDV1FjA4qfrx8RZR4QYOSlko3JX0nFS9ozi07juJ8xih2HdVjy65mcDGlmyljCbK5rbf/H109fPf7u6FjfA2R5Rq47sCZq2JL/ueo5o2VfK//8oXf0g8K4rvcf0c4DrGX25v3TElmzV1foiLe47tfrGZf16xWbiLMlTh/yTCmauWA4CfDST+jopimUNjz8nwQnxhSQp9LmgOSLXqqFUWZoNP/EpIoYZaVfKLigajvD89gRiDJP5fQwGjegI+CEg8+oCfSRmDiDEjdvhGBe31XQBjKle1cmE9imaQxjcR/SnOJOeho4iHBCWslYM4ut1F5flD3P8/B+MDv4DAAD//wMAUEsDBBQABgAIAAAAIQC29GeY0gYAAMkgAAAVAAAAd29yZC90aGVtZS90aGVtZTEueG1s7FlLixtHEL4H8h+Guct6zehhrDXSSPJr1zbetYOPvVJrpq2eadHd2rUwhmCfcgkEnJBDDLnlEEIMMcTkkh9jsEmcH5HqHkkzLfXEj12DCbuCVT++qv66qrq6NHPh4v2YOkeYC8KSjls9V3EdnIzYmCRhx719MCy1XEdIlIwRZQnuuAss3Is7n392AZ2XEY6xA/KJOI86biTl7Hy5LEYwjMQ5NsMJzE0Yj5GELg/LY46OQW9My7VKpVGOEUlcJ0ExqL0xmZARdg6USndnpXxA4V8ihRoYUb6vVGNDQmPH06r6EgsRUO4cIdpxYZ0xOz7A96XrUCQkTHTciv5zyzsXymshKgtkc3JD/beUWwqMpzUtx8PDtaDn+V6ju9avAVRu4wbNQWPQWOvTADQawU5TLqbOZi3wltgcKG1adPeb/XrVwOf017fwXV99DLwGpU1vCz8cBpkNc6C06W/h/V671zf1a1DabGzhm5Vu32saeA2KKEmmW+iK36gHq92uIRNGL1vhbd8bNmtLeIYq56IrlU9kUazF6B7jQwBo5yJJEkcuZniCRoALECWHnDi7JIwg8GYoYQKGK7XKsFKH/+rj6Zb2KDqPUU46HRqJrSHFxxEjTmay414FrW4O8urFi5ePnr989PvLx49fPvp1ufa23GWUhHm5Nz9988/TL52/f/vxzZNv7XiRx7/+5avXf/z5X+qlQeu7Z6+fP3v1/dd//fzEAu9ydJiHH5AYC+c6PnZusRg2aFkAH/L3kziIEMlLdJNQoAQpGQt6ICMDfX2BKLLgeti04x0O6cIGvDS/ZxDej/hcEgvwWhQbwD3GaI9x656uqbXyVpgnoX1xPs/jbiF0ZFs72PDyYD6DuCc2lUGEDZo3KbgchTjB0lFzbIqxRewuIYZd98iIM8Em0rlLnB4iVpMckEMjmjKhyyQGvyxsBMHfhm327jg9Rm3q+/jIRMLZQNSmElPDjJfQXKLYyhjFNI/cRTKykdxf8JFhcCHB0yGmzBmMsRA2mRt8YdC9BmnG7vY9uohNJJdkakPuIsbyyD6bBhGKZ1bOJIny2CtiCiGKnJtMWkkw84SoPvgBJYXuvkOw4e63n+3bkIbsAaJm5tx2JDAzz+OCThC2Ke/y2EixXU6s0dGbh0Zo72JM0TEaY+zcvmLDs5lh84z01QiyymVss81VZMaq6idYQK2kihuLY4kwQnYfh6yAz95iI/EsUBIjXqT5+tQMmQFcdbE1XuloaqRSwtWhtZO4IWJjf4Vab0bICCvVF/Z4XXDDf+9yxkDm3gfI4PeWgcT+zrY5QNRYIAuYAwRVhi3dgojh/kxEHSctNrfKTcxDm7mhvFH0xCR5awW0Ufv4H6/2gQrj1Q9PLdjTqXfswJNUOkXJZLO+KcJtVjUB42Py6Rc1fTRPbmK4RyzQs5rmrKb539c0Ref5rJI5q2TOKhm7yEeoZLLiRT8CWj3o0Vriwqc+E0LpvlxQvCt02SPg7I+HMKg7Wmj9kGkWQXO5nIELOdJthzP5BZHRfoRmsExVrxCKpepQODMmoHDSw1bdaoLO4z02Tker1dVzTRBAMhuHwms1DmWaTEcbzewB3lq97oX6QeuKgJJ9HxK5xUwSdQuJ5mrwLST0zk6FRdvCoqXUF7LQX0uvwOXkIPVI3PdSRhBuENJj5adUfuXdU/d0kTHNbdcs22srrqfjaYNELtxMErkwjODy2Bw+ZV+3M5ca9JQptmk0Wx/D1yqJbOQGmpg95xjOXN0HNSM067gT+MkEzXgG+oTKVIiGSccdyaWhPySzzLiQfSSiFKan0v3HRGLuUBJDrOfdQJOMW7XWVHv8RMm1K5+e5fRX3sl4MsEjWTCSdWEuVWKdPSFYddgcSO9H42PnkM75LQSG8ptVZcAxEXJtzTHhueDOrLiRrpZH0Xjfkh1RRGcRWt4o+WSewnV7TSe3D810c1dmf7mZw1A56cS37tuF1EQuaRZcIOrWtOePj3fJ51hled9glabuzVzXXuW6olvi5BdCjlq2mEFNMbZQy0ZNaqdYEOSWW4dm0R1x2rfBZtSqC2JVV+re1ottdngPIr8P1eqcSqGpwq8WjoLVK8k0E+jRVXa5L505Jx33QcXvekHND0qVlj8oeXWvUmr53Xqp6/v16sCvVvq92kMwioziqp+uPYQf+3SxfG+vx7fe3cerUvvciMVlpuvgshbW7+6rteJ39w4Byzxo1IbtervXKLXr3WHJ6/dapXbQ6JX6jaDZH/YDv9UePnSdIw32uvXAawxapUY1CEpeo6Lot9qlplerdb1mtzXwug+Xtoadr75X5tW8dv4FAAD//wMAUEsDBBQABgAIAAAAIQDlI7CA9QMAAKALAAARAAAAd29yZC9zZXR0aW5ncy54bWy0Vttu2zgQfV9g/8HQ8zq6WHZsoU4R3zYp4nZRebHPlETZRHgRSMqu8/U7pETLu3ELp0VeEmrOzJkh53DoDx+/MdrbY6mI4FMvvAm8Hua5KAjfTr2/N6v+2OspjXiBqOB46h2x8j7e/f7bh0OisNbgpnpAwVXC8qm307pKfF/lO8yQuhEV5gCWQjKk4VNufYbkc131c8EqpElGKNFHPwqCkdfSiKlXS560FH1GcimUKLUJSURZkhy3/1yEvCZvE7IQec0w1zajLzGFGgRXO1Ipx8Z+lg3AnSPZ/2gTe0ad3yEMrtjuQcjiFHFNeSagkiLHSkGDGHUFEt4ljl8RnXLfQO52i5YKwsPArs4rH76NIHpFMMrxt7dxjFsOHyLPeUjxNp7RiYd0BxuOfq6YMwKF30YxdHWoI+t2pOg1PW6gJ5JJJJsb1DaY5cnjlguJMgrlQKN70Kuerc78hS2bf3YJOe/gIr8IwXqHpMIyBzXDFAgCzzdABtXBaFiIz0KntZSi5sUDRmD7LrwSQrcwKFCUqUYa8iZbiRjc/amXU4x4Q1/gEtVUb1CWalGB0x7B1m+jNnu+QxLlwJZWKAcdzwXXUlDnV5i0c5gjEmTeRtipYla1wqvlEzqKWp8haTOxgIEjBofznym0FgWMFAiV5PoumgBbTTg8L+H/iQRMWEkKvDFNSfWR4hVsJiUv+J4Xn2qlCTDaWfQLFfyoAMxN5i8go82xwiuMdA3H9k7JbGdWlFRrAqKQj7wAWb1bMlKWWEICAkJbg5yIFAd7zo1S3ysvKOwfcIZbPNiATJ9nQmvBHo7VDs761zpp9e+fyxme50K5xVe4YifXYBEHw8WyqdSgHRJEo9FicAkJV9Eyvr+EjJfBfDW7hMxm0WB+ewmZx6NJNLmILMPJ+GIFCyhiPL+IfHc/q0kc39qe+KcTYYl5dv+SbmWuVY81EXPEMklQb20eZt94ZPJ5RrjDMwzzFJ8jaZ05sN9vAMUQpStosANsc1hSEFUtcGnXdI3ktuNtPeRFK8y8TycuM26x/BMGZ9WgB4mq5ro4lzCO20jC9RNhzq7qLHVRHF6AMwim8Je9tOfUHc8h0SA/O3aekJWx9cW8P/9shIeR0veKoKn3sjOmRvlUpka1eI2qqhF/tg2nHiXbnQ5NmIavAn7S2Y9sG7VYZLGowewHys1mwbtddLbI2c78Bs426Gyxs8Wdbehsw842craRse1g3ElK+DPcQ7c09lJQKg64eOjwVyb3SuUERJAeWdY9PjcNRomCwVDBO6WFdNgfFgvjpBD5o3ls48Y+nIwXy8mg0XY4tO+btrMDjvYrLmdI4aJRt/tpffcvAAAA//8DAFBLAwQUAAYACAAAACEAQMH/8TkBAAAjAwAAFAAAAHdvcmQvd2ViU2V0dGluZ3MueG1snNJfT8IwEADwdxO/w9J36CCykIVBYgzGF2OifoDS3aCx7S294sBP720CYnhhvvT//XLXdrbYOZt8QiCDvhCjYSoS8BpL49eFeH9bDqYioah8qSx6KMQeSCzmtzezJm9g9Qox8klKWPGUO12ITYx1LiXpDThFQ6zB82aFwanI07CWToWPbT3Q6GoVzcpYE/dynKaZODDhGgWrymh4QL114GMXLwNYFtHTxtR01JprtAZDWQfUQMT1OPvjOWX8iRndXUDO6ICEVRxyMYeMOorDR2k3cvYXmPQDxhdApmHXz5geDMmR544p+znZyTHlmfO/ZM4Agn7E5JgH7V1bkdP509pjUCvLEr9RwtecdHDbcrZt1w35+Jx/LdbROPMFSwz3ARuCINtlZS02L8+PPJF/vvb8GwAA//8DAFBLAwQUAAYACAAAACEAOdtFTLkFAAAnWgAAEgAAAHdvcmQvbnVtYmVyaW5nLnhtbOyczW7qRhiG95V6D8j7xP8/oEOOwECV6rQ60knV9WAGsGKPrbGB0FV7Ke266q430EvpDfQWOuOxzZ9DbIMw5MwmDuP5Xs/3zjfDk0nCh48vvtdaQhy5AeoK8r0ktCBygomLZl3hp6fRnSW0ohigCfACBLvCGkbCx4dvv/mw6qCFP4aYdGwRDRR1VqHTFeZxHHZEMXLm0AfRve86OIiCaXzvBL4YTKeuA8VVgCeiIslS8l2IAwdGEdGxAVqCSEjlnJdyahMMViSYCmqiMwc4hi8bDbmyiC62RetQSKkhRDJU5EMptbKUIdJRHQhptYTIqA6U9HpKBckZ9ZSUQyWznpJ6qGTVUzooJ/+wwIMQInJzGmAfxOQlnok+wM+L8I4IhyB2x67nxmuiKRmZDHDRc40RkahcwVcnlRVM0Q8m0FMnmUrQFRYYddL4uzyeDr3D4tNLFoHL5M9CBoGz8CGKk8xFDD3iRYCiuRvmK9yvq0ZuzjOR5bEklr6X9VuFcsnl8tr2NGBWbgTLDD/13/fYyI8rylKJGaESeUSZIew+MxuJT6pw8+Ba1myZK5fcQDIB5UDAcGDJDT/TsFIN0dmsUKrjllwamQ6bFarjboyVS+5j+4PZEohgNQk9G0e09rcyCmenle13OFiEGzX3NLXHzSa0ojxQQSst/+0lGZ02mC9zEJK9yXc6jzMUYDD2yIhIMbdIPbaSGaBfybTSS/ItfGnRjUB4IPwCxlGMgRP/uPBbO68eSQERDiIiHQwJ/GDayFCnN40h7mMInmkXqoIiKt9ZAo+0jJS+ItuKINI7/sKL3U9wCb2ndQizPkmrR1tZr9gPveyeatvSUJE0dsdb0hsuuWTPSsaSdZZZL0JhIz9vHC88D8Z5/BN8yW/9++sfefv3TtbqwWnaPfyM6cVFNB3a3BU0hdrQmQM0S3iQviZ9xbwzTi+jAMURNTFyXFJgP5PelCCjJLpHLNpvcxGRn8ApIG6wx4+Tr25uJWuNfskalCRfMX2mmKSx75J8ukv//F7VJEu7nEkbO2T9bTuU0+3477e/q/ohK8alDDmevnqO9P+snL5hXUf6bJM7Mf2/qqavyNJ1pK83UvyKfrEt83j6RiPFr7QvthkeT99spPhV9Uq2PquR4lfNxrY+cQfg6DOO0p1ch+4Uua1LumWw/KvTXbsvGX1LS+O3p+sMdJc+r/xkXRPblYEZznY7dnC2Oz19znbV0udsx9mOsx1nuwunX5HtlDpsp2rKSB5ItdlOaxu2aitWbms+Xfzk7kIndzXW9OXwjsMchzkOc4Xpc5hroPg5zHGYuwWYU2vBXNvWTcsasvyLYW6+HmN38sMRpDN7pqbpmpabm09a4l0cek5XsI2BNVRNu8Y0hl/itZeP55MbxZ8BBjMMwnnhPH8FJ3y5rZakS0N5dAZ2fl9nfrlBw/5Is4b9s7x5XDM4VrWI7hepRZImtSVJYlUFUQxidwnP9JPGLcPmvkHMsjMbdMs4um8QazmzQbcMrPsGXccSuyKk3TfoOpbYFUHvvkHXscRuB4vpLl4HiwdqXxqw/KufcQ7aQ0Oib/2ZrfmEvv8zTn6ayU8z+WkmP818M31+mtlA8fPTTH6aeQvYRjG3Mrbplq0aZttm+VfHNsM2FG3YTk9Dt6frDNhWY7FybOPYtsmeYxvHNo5tHNsaTZ9jWwPFfzvYRk+8K2ObOVBHqmFpLP/q2NYb9CRTVtL47el679jGIe317DmkNVD6HNI4pHFI45DWaPoc0o5DGv2te3VIG/ZNc9QbsPyrQxrZGwzLlL/Kf/vgZ2sc2zi2cWx7M32ObQ0UP8c2jm1Xgm0owTWUffIKbdphtywjNZVDBWHsDbQwLPmf3VfC2BtPYVj2x+RFYQefD7gJM4+EsY2uMEw7EsY2iMKw5JMEXwljC6swLJvrojBWkIVhGcYlYezKIPrhfwAAAP//AwBQSwMEFAAGAAgAAAAhAPiVyO/8DgAA85kAAA8AAAB3b3JkL3N0eWxlcy54bWzsXd9zo0YSfr+q+x8oPSUPG/+QLTtbcVJr2T67btdxVt5L3eMIRhZnYHSA1uv89TczDAjUDKKHjuu8m6RqLQH9MczXX890A5qffvkSR95nnmahSM5GBz/sjzye+CIIk4ez0af7qzenIy/LWRKwSCT8bPTMs9EvP//9bz89vc3y54hnngRIsrexfzZa5vnq7d5e5i95zLIfxIoncudCpDHL5df0YS9m6eN69cYX8Yrl4TyMwvx573B/fzIyMGkfFLFYhD6/EP465kmu7fdSHklEkWTLcJWVaE990J5EGqxS4fMskxcdRwVezMKkgjk4AkBx6KciE4v8B3kxpkUaSpof7OtPcbQBOMYBHAKAic+/4DBODcaetKzjhAEOZ1LhhEENx60xNYCM4yCOy3Zkz7G6oth/e/OQiJTNI4kkOfJkN3saWP0rW6v+6I/y8J+lwwbCv+ALto7yTH1N71Lz1XzTf65Ekmfe01uW+WF4L9slweNQnuf6XZKFI7mHsyx/l4WsvvPSbFP7l+rAVks/y2ubz8MgHO2pk2Z/yJ2fWXQ2Ojwqt0xVIxrbIpY8lNt48mZ6W2/M2eiPpdk0l7hnI5a+mb1Thnvm2oq/tSteVd+Ko7a6R+pJqmtWiFzu5Yv3wn/kwSyXO85G++pUcuOnm7s0FKkU8tnoxx/NxhmPw+swCHhSOzBZhgH/fcmTTxkPNtt/u9JiNBt8sU7k5/HJRFMWZcHlF5+vlLTl3oSp3rtVBpE6eh1uTq7N/1uCHZg+a7Nfcqbim3ewDaGbj4I4VBZZ7WrbMddb166PQp1o/FInOnqpEx2/1IkmL3Wik5c60elLnUjD/JknCpOAfymECE8DUHfhWNSIxrGIDY1j0RIaxyIVNI5FCWgci6OjcSx+jMaxuCkCJxe+zQtrzj62eHs37u4xwg1395Dghrt7BHDD3R3w3XB3x3c33N3h3A13d/R2w90drPG4xVTLu5EyS/LBKlsIkSci517OvwxHY4nE0kkfDZ4a9HhKcpEEMEVkMwPxYDSf6e+7PUSL1H08z1U25omFtwgf1inPBjecJ595JLN2jwWBxCMETHm+Ti094uLTKV/wlCc+p3RsOtAoTLiXrOM5gW+u2AMZFk8C4u4rEUmCQuXQbJ0vlUhCAqeOmZ+K4U0TjCw+vA+z4X2lQLzzdRRxIqxbGhfTWMNzAw0zPDXQMMMzAw0zPDGocUbVRQaNqKcMGlGHGTSifiv8k6rfDBpRvxk0on4zaMP77T7MIx3i67OOg/61u2kkVJl+cDtm4UPC5ARg+HBjaqbeHUvZQ8pWS0+VkNth69eMPc+5CJ69e4oxrUKimtdrF5nKqw6T9fAObaBRiavCI5JXhUcksApvuMQ+yGmymqBd0+Qzs/U8bxWtRuol2hmL1sWEdrjaWD7cwzYCuArTjEwG7bAEHnyrprOKTorIt2nl8IZtsIbLajsqkTbPQBK0MhL+I00Yvn5e8VSmZY+Dka5EFIknHtAhzvJUFL5Wl/yhpqSX5C/j1ZJloc6VGhD9h/ryBr/3ga0GX9BdxMKEhrfLNzELI49uBnF9/+G9dy9WKs1UHUMDeC7yXMRkmKYS+N3vfP49TQPfySQ4eSa62ndE5SENNg0JBpkCSQRESHKaGSYhyRiq8f7Jn+eCpQEN2l3Ki2dqck6EOGPxqph0EGhLxsUnGX8IZkMa718sDVVdiEpU9yRgtbJhtp7/h/vDQ92t8EgqQ7+uc11/1FNdbU0HN3ya0IAbPkXQbMrhQfkvwcU24IZfbAOO6mKnEcuy0HoL1RmP6nJLPOrrHZ78GTwRiXSxjug6sAQk68ESkKwLRbSOk4zyijUe4QVrPOrrJXQZjUdQktN4/0jDgIwMDUbFhAajokGDUXGgwUgJGP6ETg1s+GM6NbDhz+oUYERTgBoYlZ+RDv9Ed3lqYFR+psGo/EyDUfmZBqPys/GFxxcLOQmmG2JqkFQ+V4OkG2iSnMcrkbL0mQjyMuIPjKBAWqDdpWKhXrYQSfEQNwGkqlFHhJPtAo6K5N/5nKxpCouyXQQVURZFQhDV1jYDjrZsPru2y0y/czG4CXcR8/lSRAFPLddkt5X58mzFfFOmB7f7epU934cPy9ybLatqfx1msr/TskzYG2a7T9jW55PDDrMPPAjXcdlQ+DLFZNzfWHt0w7h856XDeDOTaFge97SE55zsttzMkhuWJz0t4TlPe1pqnTYsu/RwwdLHVkc46fKfKsezON9JlxdVxq2n7XKkyrLNBU+6vKghFe+d76u7BZCdfpqx2/cTj90eoyI7CkZOdpTeurJDdAnsI/8cqpEdEzT1+aqnJ0Dc15PoXpHzt7Uo6vaNG079X+q6kROnJONeK864/42rRpSx92PvcGOH6B137BC9A5AdolckspqjQpIdpXdsskP0DlJ2CHS0giMCLlpBe1y0gvYu0QqiuESrAbMAO0Tv6YAdAi1UCIEW6oCZgh0CJVRg7iRUiIIWKoRACxVCoIUKJ2A4oUJ7nFChvYtQIYqLUCEKWqgQAi1UCIEWKoRACxVCoIXqOLe3mjsJFaKghQoh0EKFEGih6vniAKFCe5xQob2LUCGKi1AhClqoEAItVAiBFiqEQAsVQqCFCiFQQgXmTkKFKGihQgi0UCEEWqjFq4buQoX2OKFCexehQhQXoUIUtFAhBFqoEAItVAiBFiqEQAsVQqCECsydhApR0EKFEGihQgi0UPXNwgFChfY4oUJ7F6FCFBehQhS0UCEEWqgQAi1UCIEWKoRACxVCoIQKzJ2EClHQQoUQaKFCiC7/NLcobY/ZH+CrntYn9vvfujKN+lh/lbsONe4PVbbKjtX/XYRzIR691hcPxzrf6AcSzqNQ6BK15bZ6HVc/EoG68fnrtPsNnzr6wB9dMu9C6HumAPyoryWoqRx1uXzdEiR5R12eXrcEs86jruhbtwTD4FFX0NW6LB9KkcMRMO4KMzXjA4t5V7SumcMu7orRNUPYw12RuWYIO7grHtcMjz0VnLetj3v206R6vhQgdLljDeHEjtDllpCrMhxDYfQlzY7Qlz07Ql8a7QgoPq0weGLtUGiG7VBuVEOZYal2F6odAUs1RHCiGsC4Uw2hnKmGUG5Uw8CIpRoiYKl2D852BCeqAYw71RDKmWoI5UY1HMqwVEMELNUQAUv1wAHZCuNONYRyphpCuVENJ3dYqiEClmqIgKUaIjhRDWDcqYZQzlRDKDeqQZaMphoiYKmGCFiqIYIT1QDGnWoI5Uw1hOqiWldRGlSjGK6Z4yZhNUPcgFwzxAXnmqFDtlSzdsyWagiO2RLkquQcly3VSbMj9GXPjtCXRjsCik8rDJ5YOxSaYTuUG9W4bKmNaneh2hGwVOOyJSvVuGypk2pcttRJNS5bslONy5baqMZlS21UuwdnO4IT1bhsqZNqXLbUSTUuW7JTjcuW2qjGZUttVOOypTaqBw7IVhh3qnHZUifVuGzJTjUuW2qjGpcttVGNy5baqMZlS1aqcdlSJ9W4bKmTaly2ZKcaly21UY3LltqoxmVLbVTjsiUr1bhsqZNqXLbUSTUuW/ogTUKCn4CaxSzNPbrfi7tm2TJnw3+c8FOS8kxEn3ng0V7qe9RV7j01lr9S2Hq1O3l8LvtM/QJ67XWloPgFWAOoD7wJqmWqlLFqiWeW7jKbdYPN7Vr9Oc1kTm2O2d8/Pz8cT43UVsXSZFnxZqk8Rv1a0dloPNGvJKkvH9dqDTS2zoVpvTbZM43Z0fyqweb+8wFo8mbBLN2eOZM99avqYXBBifqxxZbtysnK7eVppkuWFns37l8eYwRu75+Lo/3ji8tG/zxyvrqV59fb1BfJOc/0t03XzdXvlHG1qJoRvyh+/On956gCr/ehZWE4qcRyrTrv3+yaNxaGa92pV4Vr3eNnZ6P7MOaZd8ufvI8iZon3nemkzJvOvje9rv/1VfjYdIP6T2HodeV0aDkbqd+9N0xtFpYrb5TXF5Yb60hTWx/OxVsOrd5i4hiNtxz28JamlP9kB7L7TxlBvir/GZuJQ2NhQr1toP+Mrf5jHgqh8Z/x6/GfUpVfl/9QxJojq6+Y6EbjK0evx1e0Rv5ffSWcFhfk7DPlSDzEZ46tPmMeAKPxmePX4zNaK19DfBnoGcUKs22eYcY6Gs+YvB7P0Ir4yzMeTqyeYTIyGs84eT2eUc70vppxZqCHnFo9xBS3aDzk9PV4iFbGq4gdhyfq/3bPKDfeh2oV8gtDZiPp6ek+vmSO+eYnxy0VIrN0UPXbN3rhoG3HsqwvZHGKchJVlbnafcTe7lzVKTvarOuYnaWtotRp9VrjtrtaKNszjwonkh9uEuXET2aV96KlwRdWQMn9Ux5FH1hxtFjZD434QmlP7j3Y1780ubV/XiyaYLVPdXXdCrDXbEzxtdtPimUUw+K1D2slUZWQW7pbv4M0tKd7+rC/zmTXzNQB2+1rVPS2W2l2egfeJphtRcdWHdhiovFwazy0B7y/KnlIQouim43QQyJCTZ3wmyV0SGkNSWhRBbMROiYi1BTuvl1C/xw1FmUpG3lHROSZ6PLqyXup4hOSxKJOZCPxmIhEU9r6phRITlVRuLFRNSGiygT/v6gaQlVRSbFRdUJElSn+fJOhkZyyorRho+yUiDKTwH9d6nqZAkaj/tXBp17ibptHvbGNvX5Pv5xe7k+vzoujTEFpdR7U0nt9nFoI2qyb9oe6raE+rJhftlD32eapmCr532GrPwPbqjDgdOaybOBwalVSM5eeLasu8iPOCqHVjpZfF2Ek916eXE4u9YNl2heu9MY58x8fUrFOgn43mKciyUTE9O+BbFx8FsaztX4oy3h2/bBWl9aLsFbuHDFdT9QXwZM3n2a0weUmUWXJVpes7cKFFWuRrZ//EnVv0eagCgKJSCof0mHb+JD+DByQ1HVoWNwMCNVTiNuUbfYMZayshbWUGZvMTS8Pfjw1CaxhrjlMHk/G002YNbF32WzoujzaSH1A52weiCyfh9zupJZHJql6a3eNFtd5k/3jy+Mp1iMPLq4uLhzGrKoPVZF08/vy2/2nn87d7G7ru/qgBXtrbFJm1F2XZB0XH8Jo68kfve+msi5Ha2MAwnZPKZafsp//BwAA//8DAFBLAwQUAAYACAAAACEAzJJQVH0BAADxAgAAEQAIAWRvY1Byb3BzL2NvcmUueG1sIKIEASigAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjJLLTsMwEEX3SPxD5H1qJ+WlKE3FQ6yoQKIViJ2xJ60hsS17IPTvcZI2JYgFO4/n+GRy7Xz+VVfRJzivjJ6RZMJIBFoYqfR6RlbL2/iCRB65lrwyGmZkC57Mi+OjXNhMGAcPzlhwqMBHwaR9JuyMbBBtRqkXG6i5nwRCh2ZpXM0xlG5NLRfvfA00ZeyM1oBccuS0FcZ2MJKdUopBaT9c1QmkoFBBDRo9TSYJPbAIrvZ/Hug6P8ha4dbCn+i+OdBfXg1g0zSTZtqhYf6EPi/uHrtfjZVusxJAilyKDBVWUOT0sAwr//H6BgL77aEIa+GAo3HFQglnvCkxui9LJSBaeXAdvSfa7N9h2xgnffCMqoBJ8MIpi+FG+6+MNgJdcY+LcMWlAnm1LS5Pz9OzTvOr0bIOPlX7NoqkI4Yy3wXdDwUyCgFlfZz7ztP0+mZ5S4qUpUnMTuIpW7I0O00zxl7auUbnD8J6N8A/jdOMnYyNe0EfzfiRFt8AAAD//wMAUEsDBBQABgAIAAAAIQAiURHx1QEAAN4DAAAQAAgBZG9jUHJvcHMvYXBwLnhtbCCiBAEooAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJxTwW7bMAy9D9g/GLo3crKh6AJFxZBi6GFDA8Rtz5xMJ8JsSZDYINnXj7YTT9l2mk/vkfTTE0mp+2PXFgeMyXq3EvNZKQp0xtfW7VbiufpycyeKROBqaL3DlThhEvf6/Tu1iT5gJIupYAmXVmJPFJZSJrPHDtKM044zjY8dENO4k75prMEHb946dCQXZXkr8UjoaqxvwiQoRsXlgf5XtPam95deqlNgPa0q7EILhJrOYFZ7Oio5xVXlCdrKdqjnJccnpjaww6TnSo5AvfpYJ724U3JEar2HCIa4h3p++0HJjKvPIbTWAHF39Tdrok++oeJpsFz0/yuZlyi+xhbNW7R00mwjp+qrdaOREbCxCLsIYX92NzG1NdDimhugG2gTKvk7oB4R+uFuwPb+DrQ8oCEfi2R/8ngXovgOCfu2rcQBogVHYiwbyYDbkCjqylLL2hMfYF6WY/uxNzmC68KBDB4YX7sbTkhPDd+N/mF2npsdPIxWMzu5s8sZf6iufRfAcX/lhLjBP9JzqPxDvxrnHl4Hs6m/WtpvA5h+OJ/KfP5ZRm05ijUPdJrJFFCPfIPY9vr8r9thfan5O9Fv1Mv4XHnbZiV/wwpdYrwI0zvSvwAAAP//AwBQSwMEFAAGAAgAAAAhAIg/pb/hAAAAVQEAABgAKABjdXN0b21YbWwvaXRlbVByb3BzMS54bWwgoiQAKKAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnJDBasMwEETvhf6D2bsiObFdEyyHuE4g19JCroq8tgWWZCS5tJT+e2V6So89LbPDzhu2OnzoKXlH55U1HNINgwSNtJ0yA4e31zMpIfFBmE5M1iAHY+FQPz5Und93IggfrMNLQJ3EhYrz0nL4ykvW5E87Rsr2nJLilDXkmKUNKTKWt8fnU8pY8Q1JRJsY4zmMIcx7Sr0cUQu/sTOaaPbWaRGidAO1fa8ktlYuGk2g25hA5RLx+qonqNc+v9cv2Pt7uVZbnPov5aZuk7KDE/P4CbSu6B/Uqu9eUf8AAAD//wMAUEsDBBQABgAIAAAAIQDBJ8sItgAAACEBAAATACgAY3VzdG9tWG1sL2l0ZW0xLnhtbCCiJAAooCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACskE0OgjAQRq9CegCKLlgQfmKiWzEhcV/KAE3aGdIOBm5v1egJXE7mfS/zTdlsziYP8MEQVuKQZiIJrHBQlhAqgSSauuyLjlavISSRxlD0lZiZl0LKoGdwKqS0AMbdSN4pjqOfJI2j0XAmvTpAlscsy2Vvemto8mqZd/GR/UfVgQXNMHS823i2PN1Ondl4vgyGY7P2LWjRGoR0CzYGXuBVuQhHViT37wtyUZfyV7h+AgAA//8DAFBLAwQUAAYACAAAACEAdD85esIAAAAoAQAAHgAIAWN1c3RvbVhtbC9fcmVscy9pdGVtMS54bWwucmVscyCiBAEooAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIzPsYrDMAwG4P3g3sFob5zcUMoRp0spdDtKDroaR0lMY8tYamnfvuamK3ToKIn/+1G7vYVFXTGzp2igqWpQGB0NPk4Gfvv9agOKxcbBLhTRwB0Ztt3nR3vExUoJ8ewTq6JENjCLpG+t2c0YLFeUMJbLSDlYKWOedLLubCfUX3W91vm/Ad2TqQ6DgXwYGlD9PeE7No2jd7gjdwkY5UWFdhcWCqew/GQqjaq3eUIx4AXD36qpigm6a/XTf90DAAD//wMAUEsDBBQABgAIAAAAIQDrgGBMUwMAAI8OAAASAAAAd29yZC9mb250VGFibGUueG1szJbPb9MwFMfvSPwPUU7jwJqkXZdV66Y2WzQk2IEVAUc3cVqL2I7itF3/AA6IE+LI38C4gwb/DNPYf8FznLRZm25LQbBGzY9n+5vnT57f8+7+KQ21MY4F4aytm5uGrmHmcZ+wQVt/0XMf27omEsR8FHKG2/oUC31/7+GD3Ukr4CwRGoxnokW9tj5MkqhVqwlviCkSmzzCDBoDHlOUwGM8qFEUvxlFjz1OI5SQPglJMq1ZhtHUM5n4Lio8CIiHD7g3opgl6fhajENQ5EwMSSRytcld1CY89qOYe1gImDMNlR5FhM1kzMaSECVezAUPkk2YTOZRKgXDTSO9o+FcYKuagLUk0PTwaTUNO9OowciiDvGr6TRnOsQv6KznTEFA4GoSW7kfYkrljKjXejJgPEb9EJTgG2mAWUuF5Rm8lZf0FrrvZfGqTVoMURjwEj62DHKRNkWIcYFNaB2jsK0bW8bST6/Jjt4QxQJLmbRj40CZA0RJOM2tPvbAr4SMsWqNSOIN88Yxion0WTUJMoCGkegb8Fb1q+vKYsJyzN+tLNasT26pX7d4qY6tDGZmMQt94J01BWIJSI9QLLRjPNGec4pYKRYLjqZRBzwN+Ftw1yjFktO6jiVOdasQgaVoWB17e04km9syEfsmIoqH61Yj4qCQ9GOygoSbEpBHAzhYlUiICRGiEomOdNY6TGegSDSkwdjuVosN9bxTkcQBZoNXJAsKFCbHYM19vvz87vLrj2wyS5RMiBcIabhmRyklu1lGCY0SvgakbgFS3XbcbcftLEIym7dAknQrQnqWZy/tNTrCKmwWWF18P/t1/uXq09urbx9WEetCXMl4knGVnisQqx5X6XqyiivM6jhu3dmy1kFmVkS2kHO0jSOM0qSsOSePygAuJqmVDJsZvWyF/oUs5eMAjcLkxoQB+w8eovKSorzaWTNjUO7juMytgJxif/m7HsrSYamMN88XrjOzzPPFzu2Zs2q+OCH0ZFSaLS7O3v88/3gvskU2j0K5tWzbzadfOVv8WbnVNrrcn96PsGc86cUj3JtGeK1lkFcL7SkZDJPVNSNrvw+x8H8rR7bRKPAq226oovBvthuHEkenmD4caWmUbDfukD5u3XhlN2LvNwAAAP//AwBQSwECLQAUAAYACAAAACEAZPVj7oEBAAApBgAAEwAAAAAAAAAAAAAAAAAAAAAAW0NvbnRlbnRfVHlwZXNdLnhtbFBLAQItABQABgAIAAAAIQAekRq37wAAAE4CAAALAAAAAAAAAAAAAAAAALoDAABfcmVscy8ucmVsc1BLAQItABQABgAIAAAAIQAzwlu/QQEAAOcEAAAcAAAAAAAAAAAAAAAAANoGAAB3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAE4yjpAWBgAApiQAABEAAAAAAAAAAAAAAAAAXQkAAHdvcmQvZG9jdW1lbnQueG1sUEsBAi0AFAAGAAgAAAAhALb0Z5jSBgAAySAAABUAAAAAAAAAAAAAAAAAog8AAHdvcmQvdGhlbWUvdGhlbWUxLnhtbFBLAQItABQABgAIAAAAIQDlI7CA9QMAAKALAAARAAAAAAAAAAAAAAAAAKcWAAB3b3JkL3NldHRpbmdzLnhtbFBLAQItABQABgAIAAAAIQBAwf/xOQEAACMDAAAUAAAAAAAAAAAAAAAAAMsaAAB3b3JkL3dlYlNldHRpbmdzLnhtbFBLAQItABQABgAIAAAAIQA520VMuQUAACdaAAASAAAAAAAAAAAAAAAAADYcAAB3b3JkL251bWJlcmluZy54bWxQSwECLQAUAAYACAAAACEA+JXI7/wOAADzmQAADwAAAAAAAAAAAAAAAAAfIgAAd29yZC9zdHlsZXMueG1sUEsBAi0AFAAGAAgAAAAhAMySUFR9AQAA8QIAABEAAAAAAAAAAAAAAAAASDEAAGRvY1Byb3BzL2NvcmUueG1sUEsBAi0AFAAGAAgAAAAhACJREfHVAQAA3gMAABAAAAAAAAAAAAAAAAAA/DMAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAiD+lv+EAAABVAQAAGAAAAAAAAAAAAAAAAAAHNwAAY3VzdG9tWG1sL2l0ZW1Qcm9wczEueG1sUEsBAi0AFAAGAAgAAAAhAMEnywi2AAAAIQEAABMAAAAAAAAAAAAAAAAARjgAAGN1c3RvbVhtbC9pdGVtMS54bWxQSwECLQAUAAYACAAAACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=",Ytt=()=>i1(Xtt),Jtt=_("image-to-docx");async function Qtt(n){return new Promise((t,e)=>{const r=new Image;r.onload=()=>{t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=e,r.src=n})}async function bL(n,t){if(n.width&&n.height)return{width:n.width,height:n.height,buffer:t};try{const e=await Vc(new File([t],"",{})),r=await Qtt(e);return r.width===void 0||r.height===void 0?{width:345,height:230,buffer:t}:n.width||n.height?{width:n.width||r.width*n.height/r.height,height:n.height||r.height*n.width/r.width,buffer:t}:{width:r.width,height:r.height,buffer:t}}catch(e){Jtt.error(e);return}}function Ztt(n,t){let e=n.filter(s=>s!=null);const r=t-(e.length-1)*20,i=.87,o=e.reduce((s,l)=>s+l.width,0);return o>r&&(e=e.map(s=>({width:s.width*r/o,height:s.height*r/o,buffer:s.buffer}))),e.map(s=>({width:s.width*i,height:s.height*i,buffer:s.buffer}))}function tet(n,t,e){if(!e||typeof e!="object")return;const r=e,i=n.filter(s=>s!=null),o=t-(i.length-1)*20;i.forEach((s,l)=>{if(i.length===1&&r.widthPercent){const f=r.widthPercent,h=s.width;s.width=o*(f/100),s.height*=s.width/h;return}const c=`${l}_flex`;if(r[c]){const f=r[c],h=s.width;s.width=o*f,s.height*=s.width/h}})}function xL(n=[0,1,2,3,4,5,6,7],t=1){return n.map(e=>{let r;switch(e%3){case 0:r=Bt.LevelFormat.DECIMAL;break;case 1:r=Bt.LevelFormat.LOWER_LETTER;break;default:r=Bt.LevelFormat.LOWER_ROMAN;break}return{level:e,format:r,text:`%${e+1}. `,alignment:Bt.AlignmentType.START,start:t,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(e+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function eet(){return[0,1,2,3,4,5,6,7].map(n=>{let t;switch(n%3){case 0:t="\u2022";break;case 1:t="\u25E6";break;default:t="\u25AA";break}return{level:n,format:Bt.LevelFormat.BULLET,text:t,alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function net(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2611",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}function ret(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2610",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}var bh=(n=>(n.NUMBERING="number-numbering-reference",n.BULLET="number-bullet-reference",n.CHECKED="checked-bullet-reference",n.UNCHECKED="unchecked-bullet-reference",n))(bh||{});const iet=[{levels:xL(),reference:"number-numbering-reference"},{levels:eet(),reference:"number-bullet-reference"},{levels:net(),reference:"checked-bullet-reference"},{levels:ret(),reference:"unchecked-bullet-reference"}];function oet(n){switch(n){case"style-color-0":return"d83931";case"style-color-1":return"de7802";case"style-color-2":return"dc9b04";case"style-color-3":return"2ea121";case"style-color-4":return"245bdb";case"style-color-5":return"6425d0";case"style-color-6":return"8f959e";default:return}}function set(n){switch(n){case"style-bg-color-1":case"style-bg-color-2":case"style-bg-color-8":case"style-bg-color-9":return"yellow";case"style-bg-color-0":case"style-bg-color-5":return"magenta";case"style-bg-color-3":return"green";case"style-bg-color-4":case"style-bg-color-11":return"blue";case"style-bg-color-6":return"lightGray";case"style-bg-color-7":return"red";case"style-bg-color-10":return"darkGreen";case"style-bg-color-12":return"darkMagenta";case"style-bg-color-13":return"darkGray";default:return}}function aet(n){switch(n){case"style-bg-color-0":return"fbbab6";case"style-bg-color-1":return"ffdcb0";case"style-bg-color-2":return"fff7a0";case"style-bg-color-3":return"ceefc5";case"style-bg-color-4":return"d1ddfb";case"style-bg-color-5":return"d9cbf8";case"style-bg-color-6":return"eaeaea";case"style-bg-color-7":return"fe837c";case"style-bg-color-8":return"ffbd6a";case"style-bg-color-9":return"ffe662";case"style-bg-color-10":return"a8f393";case"style-bg-color-11":return"98b5ff";case"style-bg-color-12":return"b394f8";case"style-bg-color-13":return"b1b1b1";default:return}}const cet=/rgb\((\d+),\s*(\d+),\s*(\d+)\)/;function AL(n){if(typeof n=="string"&&n.length>0){if(n[0]==="#")return n.substring(1);const t=n.match(cet);if(t){const e=s=>{let l=Number(s).toString(16);return l.length<2&&(l=`0${l}`),l},r=e(t[1]),i=e(t[2]),o=e(t[3]);return`${r}${i}${o}`}if(n==="red")return"FF0000";if(n==="green")return"00FF00";if(n==="blue")return"0000FF"}}function On(n,t){if(n&&n.attributes&&n.attributes[t])return n.attributes[t];if(n&&n.attributes&&n.attributes.box&&n.attributes.inputType&&t==="style-underline")return!0}function vL(n,t,e){for(let r=0;r<=e;++r){const i=`${t}${r}`;if(On(n,i))return i}}function tp(n,t,e){n.attributes=n.attributes||{},n.attributes[t]=e}function Gx(n){return n==="image"||n==="drawio"||n==="plantuml"||n==="mermaid"||n==="flowchart"}function BL(n){return n&&n.startsWith("//")?`https:${n}`:n&&!n.startsWith("http://")&&!n.startsWith("https://")?`https://${n}`:n}function uet(n){const t=On(n,"inlineStyle");if(t==null)return;const e=t.split(";");for(const r of e){const i=r.split(":");if(i.length!==2)continue;const o=i[0].trim().toLowerCase(),s=i[1].trim().toLowerCase();o==="font-size"&&tp(n,"inline-style-font-size",s),o==="color"&&tp(n,"inline-style-color",s),o==="background-color"&&tp(n,"inline-style-background-color",s),o==="font-family"&&tp(n,"inline-style-font-family",s)}}function fet(n,t){if(t==null)return n==null?void 0:n.normal;if(n)return n[`heading${t}`]}function det(n){const t=`${On(n,"inline-style-font-size")}`;if(t&&t.indexOf("px")>0)return+t.replace(/px/g,"")}function het(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` ${n.attributes.text} `;if(n.attributes&&n.attributes.box&&n.attributes.inputType)return n.attributes.value?`${n.attributes.value}`:" "}function met(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` @${n.attributes.text} `}function get(n){return On(n,"inline-style-font-family")}function pet(n){const t=On(n,"inline-style-background-color");return AL(t)}function Cet(n){const t=On(n,"inline-style-color");return AL(t)}function Eet(n){uet(n);const t=On(n,"type")==="mention";return{box:n.attributes&&n.attributes.box?n.attributes:void 0,inlineCode:!!On(n,"style-code"),link:BL(On(n,"link")),size:det(n),text:t?met(n):het(n)||n.insert,bold:!!On(n,"style-bold"),underline:!!On(n,"style-underline"),italics:!!On(n,"style-italic"),strike:!!On(n,"style-strikethrough"),superScript:!!On(n,"style-super"),subScript:!!On(n,"style-sub"),math:On(n,"type")==="math"?On(n,"src"):void 0,mention:t,fontFamily:get(n),background:pet(n),color:t?"338fe5":oet(vL(n,"style-color-",6))||Cet(n),highlight:vL(n,"style-bg-color-",13)}}function bet(){return[new Bt.Paragraph({border:{top:{color:"auto",style:Bt.BorderStyle.DASHED,size:4,space:1}},spacing:{before:300}}),new Bt.Paragraph({spacing:{line:0}})]}function xet(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function Aet(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function vet(n,t){return new Bt.Paragraph({children:[new Bt.ExternalHyperlink({children:[new Bt.TextRun({style:"Hyperlink",text:t||n})],link:n})]})}function yL(n){if(n.heading!=null)return`Heading${n.heading}`}function TL(n){if(n.alignment!=null){if(n.alignment==="center")return Bt.AlignmentType.CENTER;if(n.alignment==="right")return Bt.AlignmentType.RIGHT;if(n.alignment==="left")return Bt.AlignmentType.LEFT}}function Bet(n){if(n.indent)return{left:Bt.convertInchesToTwip(.3*n.indent-.2)};if(n.padding)return{left:Bt.convertInchesToTwip(.3*n.padding)}}function yet(n){return{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:n}}function Tet(n){const t=n.split(",");if(t.length!==0)return t[0].trim()}function kL(n,t){let e;e=n.inlineCode?"InlineCode":void 0,e=n.link?"Hyperlink":e;const r=n.size||t,i=r!=null?Math.floor(r*1.5+.5):void 0;return new Bt.TextRun({text:n.text,bold:n.bold||void 0,underline:n.underline?{type:Bt.UnderlineType.SINGLE}:void 0,italics:n.italics||void 0,strike:n.strike||void 0,superScript:n.superScript||void 0,subScript:n.subScript||void 0,size:i,style:e,font:n.fontFamily?Tet(n.fontFamily):void 0,shading:n.background?yet(n.background):void 0,color:n.color,highlight:set(n.highlight)})}function ket(n,t){if(n.link)return new Bt.ExternalHyperlink({children:[kL(n,t)],link:n.link})}async function RL(n,t,e,r,i){const[o]=await i(n,t,e);if(o==null)return;const s=await bL({width:r||0,height:0,src:e},o);return new Bt.ImageRun({data:o,transformation:{width:(s==null?void 0:s.width)||100,height:(s==null?void 0:s.height)||20}})}function Ret(n){if(n.heading||n.heading)return n.heading}function wet(n){if(n.align&&(n.align==="center"||n.align==="right"||n.align==="left"))return n.align}function Let(n){if(n.textOnly===!0&&n.level!=null)return n.level}async function Iet(n,t){var r;const e=[];if(n.text&&Array.isArray(n.text)){for(let i=0;i<n.text.length;i++){const o=n.text[i];if(((r=o.attributes)==null?void 0:r.box)===!0&&t){const s=await t(o);if(s){n.text.splice(i+1,0,...s);continue}}e.push(Eet(o))}return e}}function Det(n){if(n.type==="list"&&n.textOnly!==!0)return{checkbox:n.checkbox,groupId:n.groupId,ordered:!!n.ordered,level:n.level||1,start:n.start||0}}function _et(n,t){if(n.type==="embed"&&n.embedType&&Gx(n.embedType)&&n.embedData&&n.embedData.src)return n.embedData.src.split("|").map(r=>{const i=t(r),o=n.embedData[`${i}_width`],s=n.embedData[`${i}_height`];return{src:r,width:o,height:s}})}function Met(n){if(n.padding)return n.padding}function Oet(n){return!!(n.type==="embed"&&n.embedType&&Gx(n.embedType)&&n.embedData&&n.embedData.src)}async function ep(n,t,e){return{quoted:!!n.quoted,heading:Ret(n),alignment:wet(n),indent:Let(n),padding:Met(n),texts:await Iet(n,e),list:Det(n),images:_et(n,t),border:Oet(n)}}async function Uet(n,t,e,r){const i=[];if(!n.children)return[];for(const o of n.children){const s=[];for(const l of t.blocks[o])s.push(await ep(l,e,r));i.push(s)}return i}const Net=_("to-docx");function Pet(n,t){return Array(n).fill(0).map(()=>Array(t).fill(0).map(()=>({cellId:void 0,color:void 0,from:void 0,rowSpan:1,colSpan:1,width:0,originalWidth:void 0,align:void 0})))}function Fet(n,t,e,r){const i=!!n.hasColTitle,o=!!n.hasRowTitle,s=!!n.isStripeStyle,l="F5F8FB";for(let c=0;c<t;c++)for(let f=0;f<e;f++)(i&&f===0||o&&c===0||s&&c%2===1)&&(r[c][f].color=l)}function Ket(n){p(Net,n.children,"no table children");const t=n.rows,e=n.cols,r=n.colsWidth;if(r)for(let s=0;s<r.length;s++)r[s]===0&&(r[s]=100);const i=Pet(t,e);let o=0;for(let s=0;s<t;++s)for(let l=0;l<e;++l){if(i[s][l].originalWidth=r?r[l]:void 0,i[s][l].from!==void 0)continue;const c=n.children[o];o+=1,i[s][l].cellId=c,i[s][l].color=aet(n[`${c}_background`]),i[s][l].width=r?r[l]:100,i[s][l].align=n[`${c}_align`];const f=n[`${c}_rowSpan`]||1,h=n[`${c}_colSpan`]||1;if(i[s][l].rowSpan=f,i[s][l].colSpan=h,f>1||h>1){let C=0;for(let E=0;E<f;E++)for(let b=0;b<h;b++)E===0&&(C+=r?r[l+b]:80),!(E===0&&b===0)&&(i[s+E][l+b].from=[s,l]);i[s][l].width=C}}return Fet(n,t,e,i),i}const Vet=_("to-docx");function $et(n){return Array.from({length:n},()=>({cellId:void 0,originalWidth:0,width:0}))}function Het(n,t){p(Vet,n.children,"no layout children");const e=n.children.length,r=n.colsWidth;if(r)for(let o=0;o<r.length;o++)r[o]===0&&(r[o]=1/r.length);const i=$et(e);for(let o=0;o<e;++o)i[o].cellId=n.children[o],i[o].originalWidth=r[o]*t,i[o].width=r[o]*t;return i}async function jet(n,t,e,r,i,o,s,l,c,f){async function h(E){if(l&&E.type!=="_exportVirtualBlock"){const b=await l(i,o,E);if(b){await r.addDoc(n,b,f);return}}if(E.type==="text"||E.textOnly===!0){const b=await ep(E,s,c);await r.addTextBlock(b);return}if(E.type==="code"){const b=await Uet(E,e,s,c);await r.addCodeBlockObject(b);return}if(E.type==="list"&&E.textOnly!==!0){const b=await ep(E,s,c);await r.addListBlockObject(n,b);return}if(E.type==="embed"&&E.embedType){const b=E,v=b.embedData,k=b.embedType;if(Gx(k)){const w=await ep(E,s,c);await r.addImagesBlockObject(E,w,f)}else E.embedType==="hr"?r.addSeparatorBlock():E.embedType==="video"?r.addVideoPlaceholder():E.embedType==="audio"?r.addAudioPlaceholder():E.embedType==="webpage"?r.addHyperlinkParagraph(BL(v.src),v.title):r.addOtherEmbedBlock(k,E.embedData);return}if(E.type==="table"){let b=[];if(E.colsWidth)b=E.colsWidth;else{const k=E.cols;b=new Array(k);for(let w=0;w<b.length;w++)b[w]=100;E.colsWidth=b}const v=Ket(E);await r.addTableMatrix(b,v,e),r.addEmptyParagraph()}if(E.type==="_exportVirtualBlock"&&await r.addVirtualBlock(E.id,e,f),E.type==="layout"){const v=E.colsWidth.map(w=>w*f),k=Het(E,f);await r.addLayoutMatrix(v,k,e)}}function C(E){var k;const b=((k=E==null?void 0:E.embedData)==null?void 0:k.exportSpec)||(E==null?void 0:E.exportSpec);if(!b)return[E];const v=[];for(const{type:w,data:O}of b){if(w==="text"){const M={id:rt(),text:[{insert:O}],type:"text"};v.push(M);continue}if(w==="image"){const M={id:rt(),type:"embed",embedType:"image",align:"left",embedData:{src:O}};v.push(M);continue}if(w==="link"){const M={id:rt(),type:"embed",embedType:"webpage",embedData:{src:O.url,title:O.title}};v.push(M);continue}if(w==="block")for(const M of O){if(!e.blocks[M])continue;const Z={id:M,type:"_exportVirtualBlock"};v.push(Z)}}return v}for(const E of t)for(const b of C(E))!b||await h(b)}function zet(){return{listMaxInst:1,listInstMap:{},listRefMap:{},levelConfigs:[]}}const Wet=_("to-docx");class Get{constructor(t,e,r,i,o,s){m(this,"paragraphs");this.appId=t,this.docId=e,this.state=r,this.readImageFunc=i,this.convertBlocksFunc=o,this.defaultFontSize=s,this.paragraphs=[]}async addTextBlock(t){this.paragraphs.push(new Bt.Paragraph({heading:yL(t),alignment:TL(t),children:await this.paragraphsFromBlockTexts(t),indent:Bet(t)}))}async addEmptyImagePlaceHolder(){this.paragraphs.push(new Bt.Paragraph({text:`[${D.t("docx.imageExportFailed")}]`,shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}}))}async paragraphsFromBlockTexts(t){if(t.texts==null)return;const e=fet(this.defaultFontSize,t.heading),r=[];for(const i of t.texts){if(i.link){const o=ket(i,e);o&&r.push(o);continue}if(i.box&&i.box.type&&i.box.type==="br"){r.push(new Bt.TextRun({text:"",break:1}));continue}if(i.box&&i.box.type&&i.box.type==="image"){const o=await RL(this.appId,this.docId,i.box.src,i.box.width,this.readImageFunc);o&&r.push(o);continue}if(i.math){const o=await RL(this.appId,this.docId,i.math,0,this.readImageFunc);o&&r.push(o);continue}r.push(kL(i,e))}return r}async addCodeBlockObject(t){for(const e of t)for(const r of e){const i={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};this.paragraphs.push(new Bt.Paragraph({style:"Code",border:{left:{...i},right:{...i},top:{...i},bottom:{...i}},children:await this.paragraphsFromBlockTexts(r)}))}}async addListBlockObject(t,e){if(e.list==null)return;let r;const i=e.list.checkbox?`${t}-${e.list.groupId}-${e.list.checkbox}`:`${t}-${e.list.groupId}`;if(this.state.listInstMap[i])r=this.state.listInstMap[i];else if(r=this.state.listMaxInst,this.state.listMaxInst+=1,this.state.listInstMap[i]=r,e.list.start>0&&e.list.ordered){const s=`number-numbering-reference-${r}`,l=xL([e.list.level-1],e.list.start);this.state.levelConfigs.push({levels:l,reference:s,inst:r}),this.state.listRefMap[i]=s}else e.list.ordered?this.state.listRefMap[i]=bh.NUMBERING:e.list.checkbox&&e.list.checkbox==="checked"?this.state.listRefMap[i]=bh.CHECKED:e.list.checkbox&&e.list.checkbox==="unchecked"?this.state.listRefMap[i]=bh.UNCHECKED:this.state.listRefMap[i]=bh.BULLET;const o=yL(e);e.texts&&this.paragraphs.push(new Bt.Paragraph({heading:o,children:await this.paragraphsFromBlockTexts(e),numbering:{reference:this.state.listRefMap[i],level:e.list.level-1,instance:r}}))}imageDimWithBufferToImageRun(t){return new Bt.ImageRun({data:t.buffer,transformation:{width:t.width,height:t.height}})}async addImagesBlockObject(t,e,r){if(e.images==null){if(t.type==="embed"&&t.embedType==="image"){const{src:c}=t.embedData;c||this.addEmptyImagePlaceHolder()}return}const i=[],o=await Promise.all(e.images.map(async c=>{const[f,h]=await this.readImageFunc(this.appId,this.docId,c.src);if(f){const C=await bL(c,f);if(C)return C}i.push(h)}));tet(o,r,t.embedData);const s=Ztt(o,r),l={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};s.length&&this.paragraphs.push(new Bt.Paragraph({border:e.border?{left:{...l},right:{...l},top:{...l},bottom:{...l}}:void 0,alignment:TL(e)||Bt.AlignmentType.CENTER,children:s.map(c=>this.imageDimWithBufferToImageRun(c)).flatMap((c,f,h)=>c==null?[]:h.length-1!==f?[c,new Bt.TextRun({text:" "})]:c)})),i.forEach(c=>{this.addHyperlinkParagraph(c)})}addSeparatorBlock(){bet().forEach(t=>this.paragraphs.push(t))}addEmptyParagraph(){this.paragraphs.push(new Bt.Paragraph(""))}addVideoPlaceholder(){this.paragraphs.push(xet())}addAudioPlaceholder(){this.paragraphs.push(Aet())}addHyperlinkParagraph(t,e){t!=null&&this.paragraphs.push(vet(t,e))}async addTableMatrix(t,e,r){const i=t.map(o=>o!==0?o*15:1500);this.paragraphs.push(new Bt.Table({rows:await this.generateTableRows(e,r),columnWidths:i}))}async generateRowCells(t,e){const r=[];for(const i of t){const o=i.cellId;if(o===void 0)continue;const s=i.width*.9;r.push(new Bt.TableCell({children:await this.convertBlocksFunc(o,e.blocks[o],e,this.appId,this.docId,this.state,s),columnSpan:i.colSpan,rowSpan:i.rowSpan,width:{type:Bt.WidthType.DXA,size:i.width*15},shading:i.color?{fill:i.color,type:Bt.ShadingType.CLEAR,color:"auto"}:void 0}))}return r}async generateTableRows(t,e){const r=[];for(const i of t)r.push(new Bt.TableRow({children:await this.generateRowCells(i,e)}));return r}async addLayoutMatrix(t,e,r){const i=t.reduce((o,s)=>o+s,0);for(const o of e){const s=o.cellId,l=await this.convertBlocksFunc(s,r.blocks[s],r,this.appId,this.docId,this.state,i);this.paragraphs.push(...l,new Bt.Paragraph(""))}}async addDoc(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks.root,e,this.appId,this.docId,this.state,r);i&&(this.paragraphs=this.paragraphs.concat(i))}async addVirtualBlock(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks[t],e,this.appId,this.docId,this.state,r);this.paragraphs.push(...i)}async addOtherEmbedBlock(){}}class qet{constructor(t,e,r,i,o,s,l,c){m(this,"convertBlocks",async(t,e,r,i,o,s,l=720)=>{const c=new Get(i,o,s,this.readImage,this.convertBlocks,this.defaultFontSize);return await jet(t,e,r,c,i,o,this.md5HexFunc,this.getDocByBlock,this.getTextsByBox,l||720),c.paragraphs});this.templateData=t,this.docData=e,this.md5HexFunc=r,this.readImage=i,this.defaultFontSize=o,this.getDocByBlock=s,this.getTextsByBox=l,this.backgroundImageOptions=c}async convert(t,e){return this.snapshot2docx(this.docData,t,e)}async snapshot2docx(t,e,r){const i=new Bt.ImportDotx,o=this.templateData?await i.extract(this.templateData):void 0,s=t.blocks.root;p(Wet,s,"data must have blocks");const l=zet(),c=await this.convertBlocks("blocks",s,t,e,r,l),f=this.backgroundImageOptions?{default:new Bt.Header({children:[new Bt.Paragraph({children:[new Bt.ImageRun(this.backgroundImageOptions)]})]})}:{},h=new Bt.Document({numbering:{config:[...iet,...l.levelConfigs]},sections:[{headers:f,children:c,properties:{page:{size:{width:12240,height:15840},margin:{top:1440,bottom:1440,left:1440,right:1440}}}}]},{template:o});return Bt.Packer.toBlob(h)}}const Xet=_("editor-to-docx");async function Yet(n,t,e,r){const i=n.doc.buildResourceUrl(r,{withToken:!0});let o=await U4(i);if(!o)return[void 0,i];if(o.type.indexOf("/svg")!==-1){const l=await _4(o);l&&(o=new File([l],o.name))}return[await o.arrayBuffer(),i]}async function Jet(n,t,e){const r=n.editorBlocks.getBlockClass(e.type);if(r.toStandardDoc)try{return await r.toStandardDoc(n,e,t)}catch(i){Xet.error(`toStandardDoc error: ${JSON.stringify(i)}`);return}}async function Qet(n,t){const e=t.attributes,r=n.editorBoxes.getBoxClass(e.type);if(r.toStandardText)return r.toStandardText(n,e)}async function Zet(n,t){let{template:e,download:r,backgroundImageOptions:i}=t!=null?t:{};e||(e=Ytt());const o=n.doc.toJSON(),s=(C,E,b)=>Yet(n,C,E,b),l=async(C,E,b)=>Jet(n,o,b),c=async C=>Qet(n,C),h=await new qet(e,o,hm.default,s,void 0,l,c,i).convert("_appId","_docId");if(r){const C=URL.createObjectURL(h),E=document.createElement("a");E.setAttribute("download",`${O4(n)}.docx`),E.setAttribute("href",`${C}`),E.click(),E.remove()}return h}const qx=_("create-editor");async function tnt(n,t){var s,l,c,f,h,C,E,b,v,k,w,O,M,F,Z,Y;p(qx,n,"app does not exists"),t.lang&&D.setLang(t.lang),Ei.level=(s=t.logLevel)!=null?s:rl.DEBUG;const e=t.onReauth?async()=>{var Ct;const X=t.user.userId,ut=t.docId,Et=await((Ct=t.onReauth)==null?void 0:Ct.call(t,X,ut,t.permission));return{userId:X,docId:ut,permission:t.permission,appId:t.appId,token:Et,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl}}:void 0,r={auth:{appId:t.appId,docId:t.docId,userId:t.user.userId,permission:t.permission,token:t.token,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl},serverUrl:t.serverUrl,reauthFunc:e,disableLogout:t.disableLogout,onMaxUsersError:t.onMaxUsersError},i=await Ld.load(r),o=pd(n,i,{id:t.id,scrollContainer:t==null?void 0:t.scrollContainer,enableComments:t==null?void 0:t.enableComments,enableContextMenu:t==null?void 0:t.enableContextMenu,components:{blocks:[...zx,...((l=t==null?void 0:t.components)==null?void 0:l.blocks)||[]],embeds:[...Wx,...((c=t.components)==null?void 0:c.embeds)||[]],boxes:[...pL,...((f=t.components)==null?void 0:f.boxes)||[]],commandProviders:[new q0,...((h=t.components)==null?void 0:h.commandProviders)||[]],decorators:[new vg,new sE],insertions:[lC],blockHooks:[new zb,new kw,...((C=t.components)==null?void 0:C.blockHooks)||[]],textRenders:[new zS,new sb,...((E=t.components)==null?void 0:E.textRenders)||[]],options:{...t.componentsOptions}},shortcuts:[pX,VH,Xz,Tb,CS,zF,xb,JX,g0,PF,...t.shortcuts||[]],colors:["#0064FF","#EB3723","#F59300","#00A865","#F25A0A","#70A310","#009CAD","#0990D9","#8851ED","#D62069"]});if(o.editorCommandProviders.registerCommandProvider(new Ao(o)),o.input.addHandler(new KY),o.input.addHandler(new yg),o.input.addHandler(new dV),o.input.addHandler(new Vz),o.input.addHandler(new Db(o,{hideTitle:t.hideTitle,headingLevel:1,titlePlaceholder:D.t("placeholder.common.title"),contentPlaceholder:D.t("placeholder.common.content"),readonlyTitlePlaceholder:D.t("placeholder.common.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0,applyContentPlaceholder:(b=t.placeholder)==null?void 0:b.applyContentPlaceholder})),o.input.addHandler(new pg(o,(v=t.componentsOptions)==null?void 0:v.quickMenu)),o.input.addHandler(new Zb(o)),o.input.addHandler(new ox(o)),o.input.addHandler(new wg),o.input.addHandler(new Xk),o.doc.registerCallback(new VY(o)),o.addCustom("remote-cursor",()=>new RT(o)),o.addCustom("block-menu",X=>new Sw(X)),ye.isMobile||o.addCustom("editor-tooltip",()=>new zd(o)),t!=null&&t.enableComments&&o.addCustom("editor-comments",X=>new jS(X,new jtt(X))),t.enableContextMenu!==!1&&o.addCustom("editor-context-menu",X=>new ax(X)),o.addCustom("create-options",()=>new YA(o,t)),o.addCustom("drop-target",()=>new sh(o)),o.addCustom("list-to-mindmap",()=>new cg(o)),o.addCustom("list-to-mention",()=>new lJ(o)),o.addCustom("mobile-helper",()=>new SJ(o)),o.addCustom("code-caret",()=>new NH(o)),o.addCustom("image-paste-handler",()=>new Yb(o)),o.addCustom("layout-paste-handler",()=>new Ux(o,!0)),(k=t.componentsOptions)!=null&&k.mention){const X=t.componentsOptions.mention;o.addCustom("mention",()=>new w4(o,X))}if(o.addCustom("heading-collapse",()=>new kx(o)),o.addCustom(Xg,X=>new _x(X)),Su.register(o),sh.register(o),Pl.register(o),Dl.register(o),o.addListener("clickLink",(X,ut,Et)=>{var wt;if((wt=t==null?void 0:t.events)!=null&&wt.onClickLink){t.events.onClickLink(X,ut,Et);return}const Ct=Et.getAttribute("link");Ct&&(X.readonly||ut.ctrlKey||ut.metaKey)&&window.open(Ct,"_blank")}),(O=(w=t.componentsOptions)==null?void 0:w.remoteCarets)!=null&&O.onUserChanged){const X=(F=(M=t.componentsOptions)==null?void 0:M.remoteCarets)==null?void 0:F.onUserChanged;o.doc.getRemoteUsers().on("change",ut=>{X(o,ut)})}return(Y=(Z=t.componentsOptions)==null?void 0:Z.templates)!=null&&Y.templates.length&&(o.addListener("docChanged",()=>{qg(o)}),o.addListener("resize",()=>{qg(o,{reset:!0})}),setTimeout(()=>{qg(o)},100)),o.doc.registerCallback({onError:async X=>{if(X.code==="ResetDoc"){qx.error(`reset doc: ${X.message}`);const ut=await Ld.load(r);o.doc.reset(ut)}}}),o.version="2.0.4-beta.10",Ei.level===rl.DEBUG&&(window.setReauthFail=X=>{window.isReauthError=X},window.reConnect=X=>o.doc.externalDoc.client.connection.reConnect(X)),o}function ent(n){return n.toJSON!==void 0}async function nnt(n,t,e){var o,s,l,c,f,h,C,E;p(qx,n,"app does not exists");const r=ent(t)?t:new FC(t,{serverUrl:e.serverUrl||""});e.lang&&D.setLang(e.lang),Ei.level=(o=e.logLevel)!=null?o:rl.DEBUG;const i=pd(n,r,{id:e.id,scrollContainer:e==null?void 0:e.scrollContainer,components:{blocks:[...zx,...(l=(s=e.components)==null?void 0:s.blocks)!=null?l:[]],commandProviders:[new q0],decorators:[new vg,new sE],embeds:[...Wx,...((c=e.components)==null?void 0:c.embeds)||[]],boxes:[sR,S4,QS,dR,...((f=e.components)==null?void 0:f.boxes)||[]],insertions:[lC],blockHooks:[new zb,...((h=e.components)==null?void 0:h.blockHooks)||[]],textRenders:[new zS,new sb,...((C=e.components)==null?void 0:C.textRenders)||[]],options:{...e.componentsOptions}},shortcuts:[Tb,CS,xb,g0]});return i.editorCommandProviders.registerCommandProvider(new Ao(i)),i.input.addHandler(new yg),i.input.addHandler(new Db(i,{hideTitle:e.hideTitle,headingLevel:1,titlePlaceholder:D.t("placeholder.common.title"),contentPlaceholder:D.t("placeholder.common.content"),readonlyTitlePlaceholder:D.t("placeholder.local.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0})),i.input.addHandler(new pg(i,(E=e.componentsOptions)==null?void 0:E.quickMenu)),i.input.addHandler(new Zb(i)),i.input.addHandler(new ox(i)),i.input.addHandler(new wg),i.input.addHandler(new Xk),i.addCustom("block-menu",b=>new Sw(b)),ye.isMobile||i.addCustom("editor-tooltip",()=>new zd(i)),i.addCustom("image-paste-handler",()=>new Yb(i)),e!=null&&e.enableComments&&i.addCustom("editor-comments",b=>new jS(b,new ztt(b,r))),e.enableContextMenu!==!1&&i.addCustom("editor-context-menu",b=>new ax(b)),i.addCustom("heading-collapse",()=>new kx(i)),i.addListener("clickLink",(b,v,k)=>{var O;if((O=e==null?void 0:e.events)!=null&&O.onClickLink){e.events.onClickLink(b,v,k);return}const w=k.getAttribute("link");w&&(b.readonly||v.ctrlKey||v.metaKey)&&window.open(w,"_blank")}),i.addCustom(Xg,b=>new _x(b)),Su.register(i),i.version="2.0.4-beta.10",i}async function rnt(n,t,e){var h;const r=n.doc.externalDoc.client.auth,i=await w0.load({auth:r,serverUrl:e});if(!((h=i.getVersionHelper)==null?void 0:h.call(i)))throw new Error("the editor does not support to show versions");const s=n.getCustom("create-options");if(!s)throw new Error("the editor does not support to show versions");const l=s.getData(),c=new CL(l),f=n.addCustom("version-dialog",()=>new m4(i,c));return f.show(t),f}A.tippy=UI,A.AnchorBox=W3,A.AuthError=wd,A.AuthHeader=Ta,A.AutoScroll=Ff,A.BaseURLHeader=cu,A.BasicCommands=MK,A.BlockExclusiveHook=kw,A.BlockLockerHook=zb,A.BlockLockerPasteHandler=wg,A.BlockResizer=Zd,A.BrBox=$3,A.CodeBlock=XR,A.CodeLineBlock=YR,A.CodeTextDecorator=vg,A.DOC_RE_AUTH_KEYS=Xg,A.DefaultShortcuts=g0,A.DocIdError=kU,A.DocReAuthCallbacks=_x,A.DragDrop=mv,A.DrawioEmbed=oL,A.EditorBlocks=kB,A.EditorBoxes=j3,A.EditorCommandProviders=V5,A.EditorComplexBlockPosition=yi,A.EditorComplexSelectionRange=ki,A.EditorDecorators=Y3,A.EditorEmbeds=wB,A.EditorInsertions=X3,A.EditorSimpleBlockPosition=gn,A.EditorSimpleSelectionRange=vn,A.EmbedBlock=LB,A.EmbedBlockResizer=lh,A.EnforceWithDocumentTitleHandler=Db,A.EventCallbacks=Pc,A.FILL_CHAR=Y8,A.FileExtError=RU,A.GroupOrder=Qk,A.HeadingBlockScrollListener=tJ,A.ImageBox=z3,A.InlineBoxCommandProvider=hR,A.InputtingInsertion=G3,A.LayoutBlock=G4,A.LayoutBlockCaptionInputHandler=Ux,A.LocalDoc=FC,A.LogLevel=rl,A.Logger=Ei,A.MIN_DISTANCE_THRESHOLD=dv,A.ManualCloseDialog=Id,A.ManualMenu=Al,A.ManualToolbar=gu,A.MarkdownInputHandler=yg,A.MaxUserError=JC,A.Mindmap=ag,A.OnesEditorAutoSuggest=RE,A.OnesEditorCustomDataWrapper=YA,A.OnesEditorExclusiveBlock=Dl,A.OnesEditorHoveringBlock=We,A.OnesEditorIcons=dN,A.OnesEditorQuickMenu=pg,A.OnesEditorToc=gs,A.OnesEditorTocProvider=Pl,A.OnesEditorToolbar=Su,A.OnesEditorTooltip=zd,A.OnesEditorVersionsDialog=m4,A.PermissionError=R0,A.Popup=mu,A.ReAuthToolbar=N4,A.RemoteCarets=RT,A.RemoteCaretsDecorator=sE,A.RemoteCaretsInsertion=lC,A.RemoteUsers=Cd,A.RequestReloadError=Sd,A.RichText=Hn,A.ShareDBDoc=Ld,A.ShareDBDocVersionsProvider=CL,A.ShareDBServer=w0,A.SimpleCache=iv,A.StandardEmbedBlockCommands=Jb,A.TEXT_STYLE_BACKGROUND_COLOR_PREFIX=K1,A.TEXT_STYLE_COLOR_PREFIX=F1,A.TableBlock=UR,A.TableBlockCommandProvider=q0,A.TableShortcuts=Tb,A.TextBlock=ar,A.TextBox=V3,A.TextColorItem=W2,A.TextStyleShortcuts=xb,A.TocEmbed=k4,A.ZERO_WIDTH_SPACE_CHAR=_f,A.abbreviation=Im,A.addAttribute=Km,A.addClass=z,A.addCommentToBlock=Na,A.addDays=z9,A.addMetaToDoc=md,A.addMonths=j9,A.animateScrollTo=ua,A.applyPlaceholderToBlock=Jd,A.assert=p,A.autoShowHideTemplates=qg,A.bindKeyDownEvent=Bm,A.blockToDoc=_C,A.blockToHtml=uC,A.blockToMarkdown=e0,A.blockToText=sd,A.blocksToDoc=u5,A.clearAllSelection=iB,A.clientType=ye,A.cloneBlock=ao,A.cloneChildContainer=c0,A.cloneDoc=xC,A.cloneText=_3,A.commentToShareDbComment=oE,A.compareElement=xm,A.comparePosition=I1,A.complexBlockAdjustSelectionPos=Nm,A.complexBlockFindNearestChildBlock=$7,A.complexBlockGetAllChildContainers=In,A.complexBlockGetBottomChildContainers=MB,A.complexBlockGetDeepFirstChild=IB,A.complexBlockGetFirstSimpleChild=_1,A.complexBlockGetLastSimpleChild=zc,A.complexBlockGetSelectedContainers=jc,A.complexBlockGetTopChildContainers=_B,A.containerToDoc=f5,A.continuousScroll=Lv,A.convertBlockFrom=Om,A.convertImageFileToPng=_4,A.convertImageSrcToPng=BJ,A.converterIntercept=Bg,A.copyBlockAttributes=ay,A.copyResourcesFromDoc=PC,A.createBlockAnchor=Qo,A.createBlockCaretAnchor=UB,A.createBlockContentElement=al,A.createBlockElement=Jv,A.createBlockSimpleDocRange=Ym,A.createBlockSimpleRange=Ae,A.createBoxContentElement=tB,A.createBoxElement=Qv,A.createBoxOp=D3,A.createChildContainer=yB,A.createComplexBlockPosition=De,A.createComplexDocPos=N3,A.createComplexDocRange=Z8,A.createContainer=Jc,A.createContainerElement=g1,A.createDeleteOps=w3,A.createEditor=pd,A.createEditorSelectionRange=pn,A.createElement=B,A.createEmptyContainer=Sr,A.createEmptyDoc=rs,A.createEmptyTextBlockData=qm,A.createExpandedRange=Em,A.createIconButton=jo,A.createImage=Xp,A.createInsertOps=Wm,A.createInsertionContentElement=rB,A.createInsertionElement=eB,A.createLocalEditor=nnt,A.createOnesEditor=tnt,A.createRange=ov,A.createRichText=Aa,A.createRootContainer=BB,A.createSimpleBlockPosition=mt,A.createSimpleDocPos=U3,A.createTextBlockData=oo,A.createTextButton=_a,A.createTextOp=ti,A.createTextWithReplaceSoftReturn=Q1,A.daysAfter=c1,A.deleteText=tC,A.diffDays=W9,A.disablePageScroll=s1,A.docToHtml=ry,A.docToHtmlFragment=ld,A.docToMarkdown=iy,A.docToText=hl,A.downloadImageToFile=U4,A.downloadObjectToFile=Fx,A.downloadSvgToString=Y4,A.editLink=$d,A.editorAddComment=lX,A.editorAddTextAttribute=by,A.editorAutoInsertBlock=cy,A.editorBreakTextBlock=nu,A.editorClearCompositionText=mC,A.editorClearSelectedContents=s0,A.editorCopyBlock=UC,A.editorCopyDoc=m0,A.editorDeleteBlock=CC,A.editorDeleteBlockText=gC,A.editorDeleteBlockWithoutChildren=i0,A.editorDeleteChildContainer=J_,A.editorDeleteChildContainers=uy,A.editorFocusToBlock=bC,A.editorFocusToEnd=pM,A.editorGetBlockData=so,A.editorGetBlockText=Jn,A.editorGetBlockTextEx=Qm,A.editorGetBoxData=F3,A.editorHandleKeyboardEvent=B5,A.editorInsertBlock=eu,A.editorInsertBoxToBlock=sy,A.editorInsertDoc=Cy,A.editorInsertDocAt=AC,A.editorInsertText=hC,A.editorInsertTextToBlock=oy,A.editorInsertTextToBlockEx=dC,A.editorMergeTextBlock=fy,A.editorMoveDown=Dy,A.editorMoveEnd=wC,A.editorMoveHome=$y,A.editorMoveLeft=Sy,A.editorMoveLineEnd=Yy,A.editorMoveLineHome=Xy,A.editorMovePageDown=n5,A.editorMovePageUp=e5,A.editorMoveRight=Ly,A.editorMoveUp=Iy,A.editorMoveWordEnd=Fy,A.editorMoveWordLeft=Py,A.editorRangeClearColor=Ay,A.editorRangeGetColor=vy,A.editorRangeSetColor=xy,A.editorRemoveTextAttribute=eM,A.editorReplaceBlockText=l0,A.editorReplaceContainer=Ey,A.editorRunOnce=x0,A.editorSelectAll=LC,A.editorSelectContainer=f0,A.editorSelectDown=_y,A.editorSelectEnd=SC,A.editorSelectHome=Hy,A.editorSelectLeft=My,A.editorSelectLineEnd=qy,A.editorSelectLineHome=Gy,A.editorSelectPageDown=o5,A.editorSelectPageUp=i5,A.editorSelectRight=Oy,A.editorSelectUp=Uy,A.editorSelectWordEnd=Vy,A.editorSelectWordLeft=Ky,A.editorSetTextColor=ru,A.editorShowFindDialog=ZG,A.editorToDocx=Zet,A.editorUpdateBlockData=a0,A.editorUpdateCompositionText=ly,A.editorUpdateEmbedData=gy,A.enablePageScroll=l1,A.escapeHtmlText=ym,A.escapeRegExp=h1,A.escapeSpace=R9,A.exclusiveBlock=$b,A.executeBlockCommand=gB,A.executeEmbedBlockCommand=mB,A.executeRangeCommand=K5,A.fileToDataUrl=Vc,A.findAfterOffsetNotType=iC,A.findAllText=IC,A.findBlockByIndex=Hv,A.findEventTargetBlock=av,A.findInsertionById=nB,A.findNextOffset=b_,A.findNextVisibleSimpleBlock=z5,A.findPrevOffset=E_,A.findPrevOffsetNotType=rC,A.findPrevSimpleBlockBeforeChildContainer=DB,A.findPrevVisibleSimpleBlock=j5,A.findTarget=Kc,A.findWordEnd=sC,A.findWordLeft=oC,A.format=Kf,A.formatBytes=Iv,A.formatDate=f1,A.fragmentToHtml=Tv,A.fromBase64=Of,A.fromBase64ToBlob=i1,A.fromBase64ToUint8Array=P9,A.fromDocRange=ul,A.fromNowString=d1,A.genId=rt,A.generateEditorContainerId=m1,A.getAllChildBlocks=N1,A.getAllQuickMenuItems=bb,A.getAllSelectedBlocks=no,A.getAttributesAt=Xc,A.getBlockBackground=E1,A.getBlockByIndex=ol,A.getBlockCaretRect=cl,A.getBlockClass=jt,A.getBlockClassByType=sl,A.getBlockClientRects=qo,A.getBlockCommandsWithHook=y1,A.getBlockContent=$t,A.getBlockHeading=Gf,A.getBlockId=dt,A.getBlockIndex=St,A.getBlockInfo=ih,A.getBlockKind=vi,A.getBlockMinWidth=lB,A.getBlockNearestRangeFromPoint=O1,A.getBlockOptions=Wf,A.getBlockPath=Xo,A.getBlockProperties=uB,A.getBlockRangeFromPoint=Pm,A.getBlockStyles=i7,A.getBlockTextLength=bt,A.getBlockTools=xe,A.getBlockType=Tt,A.getBoxContent=x1,A.getBoxId=Zv,A.getBoxTypeFromElement=jf,A.getChildBlockCount=Ai,A.getChildBlocks=be,A.getChildOffset=fl,A.getClosestContainerByCondition=sB,A.getColorFromAttributes=$1,A.getColorFromContent=Dm,A.getComplexBlockClass=Xr,A.getContainerBlockOverrideOptions=T1,A.getContainerBlockPath=xB,A.getContainerBlocks=Vv,A.getContainerBlocksElement=$f,A.getContainerById=qr,A.getContainerId=ft,A.getContainerMinWidth=S1,A.getContainerToolsElement=e7,A.getContainerWidth=TB,A.getDistanceSquare=il,A.getElementFromPoint=Ne,A.getElementOffset=Df,A.getElementScale=Gr,A.getEmbedType=Ge,A.getExistsBlockTools=_m,A.getExistsContainerById=Vf,A.getFileExt=Pf,A.getFirstChildBlock=Pe,A.getFirstClientRect=bm,A.getHeadingBlockChildren=pa,A.getHeadingMenuOptions=hb,A.getHorizontalPadding=Jp,A.getInsertionContent=A1,A.getLastChildBlock=en,A.getLastClientRect=aa,A.getListAllNextBrothers=yu,A.getLogger=_,A.getNextBlock=ae,A.getNextHiddenBlocks=EB,A.getNextValidOffset=ba,A.getNextVisibleBlock=Jr,A.getOffsetFromPoint=Yp,A.getOffsetInfoAfter=rd,A.getOffsetInfoBefore=Zm,A.getOpAt=a3,A.getOpLength=Fm,A.getParentBlock=Q,A.getParentBlockExcludeSelf=ma,A.getParentBox=b1,A.getParentContainer=ot,A.getPrevBlock=He,A.getPrevValidOffset=dl,A.getPrevVisibleBlock=Yr,A.getRangeCommands=P5,A.getReferenceClientRect=Tk,A.getRootBlock=zf,A.getScrollContainer=tn,A.getSpecialBlockCommands=fB,A.getStandardEmbedBlockProperties=Qb,A.getTextAfterOffset=p_,A.getTextAttributes=fC,A.getTextBeforeOffset=C_,A.getTextBlockChild=Yf,A.getTextBlockClass=zv,A.getTextBlockContentChildTextLength=Zr,A.getTextBlockContentChildType=bB,A.getTextBlockContentChildren=eo,A.getTextLength=$n,A.getTextOpLength=P1,A.getTextWidth=wm,A.getToolbar=eg,A.handleBlockElementUpdated=aB,A.hasAltOnly=_9,A.hasClass=_t,A.hasCtrlOrCmd=xv,A.hasCtrlOrCmdOnly=D9,A.hashCode=Pv,A.hideBlock=Yv,A.hideTemplates=D4,A.htmlToFragment=Rm,A.i18n=D,A.includeBigTable=$N,A.injectDocToHtmlFragment=hd,A.injectStyle=fv,A.inputActions=UM,A.insertEmptyBlock=l7,A.insertEmptyEmbedBlock=k1,A.insertText=ns,A.intersectionCommands=gO,A.isBackspace=vv,A.isBlock=Wo,A.isBlockLocked=Rg,A.isBlockLockedByOthers=jb,A.isBlockLockedBySelf=oh,A.isBlockTools=Xv,A.isBox=Mm,A.isBoxOp=Zo,A.isCJK=Ev,A.isChildContainer=xi,A.isChildNode=Ee,A.isCodeBlock=Pi,A.isCollapsedHeadingBlock=kr,A.isCollapsedRange=Q8,A.isColumnsBlock=hB,A.isComplexBlockPosition=Ca,A.isComplexKindBlock=Nt,A.isContainer=to,A.isContainerSelectedAllChildBlocks=s5,A.isControlEvent=da,A.isDelete=O9,A.isDraggingFiles=Sm,A.isElementVisible=vm,A.isEmbedBlock=me,A.isEmptyContainer=Jf,A.isEmptyDoc=eC,A.isEmptyTextBlock=Te,A.isEmptyTextBlockWithoutCompositionText=Yd,A.isEnterOnly=Av,A.isEscape=km,A.isExclusiveBlock=rh,A.isExpandedHeadingBlock=CB,A.isFirefox=Lf,A.isFirstChildBlockInComplexBlock=V7,A.isHeadingBlock=an,A.isHighSurrogate=B9,A.isInBlock=v1,A.isInBlockTools=Hc,A.isLayoutBlock=K4,A.isLetter=Cv,A.isLowSurrogate=y9,A.isMatchShortcut=Qi,A.isMoveForward=L9,A.isNavigationEvent=S9,A.isNavigationKey=bv,A.isNodeRemoved=If,A.isNumber=pv,A.isPrintableKey=n1,A.isRootBlock=Qr,A.isRootContainer=te,A.isSafari=la,A.isSameDay=u1,A.isSelectBoxOnly=Ni,A.isShiftEnter=M9,A.isShiftTab=N9,A.isShortcutEvent=I9,A.isSimpleBlock=r7,A.isSimpleBlockPosition=Ti,A.isSimplePos=O3,A.isSimpleRange=Xm,A.isSpace=Tm,A.isTab=U9,A.isTextBlockContentBoxChild=Rr,A.isTextBlockContentChild=qf,A.isTextBlockContentInsertionChild=Jo,A.isTextBlockContentTextChild=Xf,A.isTextKindBlock=at,A.isTextKindBlockType=Hf,A.isTitleBlock=Go,A.isToday=Dv,A.isValidOffset=lr,A.isVisibleBlock=ll,A.isYesterday=_v,A.loadJs=lv,A.loadJsPromise=ca,A.lockers=bi,A.mergeCommands=tg,A.mergeDocs=va,A.mergeOps=Z1,A.mergeText=q8,A.multiSplitText=u3,A.overflowText=Mv,A.parseShortcut=Bv,A.patchNode=Uf,A.pointInRect=fa,A.rangeAddAttribute=td,A.rangeGetTextColor=C3,A.rangeRemoveAttribute=qc,A.rangeSetTextColor=m3,A.rangeTransformText=d3,A.registerDragDrop=t1,A.removeAttribute=V1,A.removeClass=lt,A.removeLastBr=j8,A.removePlaceholderFromBlock=QR,A.removeStyle=uv,A.replaceAll=G9,A.replaceAllCaseInsensitive=q9,A.replaceAllText=a5,A.replaceText=Gm,A.requestDownload=Lm,A.resetListStart=ku,A.scrollIntoView=od,A.scrollable=Sv,A.selectFile=$c,A.selectedBlockToDoc=d0,A.selectionToDoc=iu,A.setAttributes=Am,A.setClipboardData=Nf,A.setClipboardDataByEvent=V9,A.setColorToAttributes=g3,A.setDataset=Qp,A.setDefaultCursor=Mf,A.setStyles=Zp,A.shareDBCommentToDocObject=iE,A.shareDBDocCommentToComment=TT,A.shortcutToDisplayText=mn,A.showBlock=C1,A.showDocVersions=rnt,A.showTemplates=Ix,A.splitText=sr,A.splitToThree=Cn,A.stringToDataUrl=o1,A.stringToObjectUrl=a1,A.subText=f3,A.textNodeOffsetFromPoint=sv,A.titleFromEditor=O4,A.toBase64URL=Zi,A.toMindmap=lg,A.toPlainText=Se,A.toPlainTextKeepLength=nC,A.trimChar=e1,A.unexclusiveBlock=Hb,A.unicodeLength=T9,A.unicodeSubstr=k9,A.updateBlockSelection=oB,A.updateOpAttributes=M3,A.updateTextBlockContent=g_,A.updateUrl=r1;for(const n in $e)n!=="default"&&!A.hasOwnProperty(n)&&Object.defineProperty(A,n,{enumerable:!0,get:()=>$e[n]});Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
974
+ \`\`\`\`\`\``}return""}const dtt={embedType:"plantuml",convertFrom:ctt,handleUpdateBlock:att,createEmbedContent:ltt,getBlockProperties:utt,convertTo:ftt},Lut="",htt="hr",mtt={dividingLine:{type:"\u5206\u5272\u7EBF",abstract:"\u5206\u5272\u7EBF"}},gtt={dividingLine:{type:"Dividing-Line",abstract:"Dividing-Line"}},ptt={dividingLine:{type:"\u533A\u5207\u308A\u7DDA",abstract:"\u533A\u5207\u308A\u7DDA"}};D.mergeLang({"zh-CN":mtt,"en-US":gtt,"ja-JP":ptt});function Ctt(n,t){const e=B("div",["editor-embed-container"],t);B("hr",["editor-embed-hr"],e)}function Ett(n,t,e,r){return r==="html"?"<hr />":r==="markdown"?"---":"------------"}function btt(){return{name:"hr",insertEmbedCommandItems:[{id:"insert-hr",name:D.t("dividingLine.type"),icon:a2,order:500,group:"common",subText:Qn("insert-hr")}],handleInsertEmptyEmbed:async(n,t)=>{const{containerId:e,blockIndex:r}=t;return n.insertEmbed(e,r,htt,{})}}}function xtt(n,t,e){const{data:r}=e;if(!r||r.embedType!=="dividing-line"||!at(n,t))return null;const i={};return{blockData:{id:rt(),type:"embed",embedType:"hr",embedData:i}}}function Att(){return{abstract:D.t("dividingLine.abstract")}}const vtt={embedType:"hr",createEmbedContent:Ctt,convertTo:Ett,getOptions:btt,convertFrom:xtt,getBlockProperties:Att},Iut="",Dut="",Btt={media:{upload:{failed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>',maxSizeFailed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6</div>'},load:{failed:'<div class="line-1">{name}\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>'},audio:{menuItem:"\u97F3\u9891",abstract:"\u97F3\u9891"},video:{menuItem:"\u89C6\u9891",abstract:"\u89C6\u9891"}}},ytt={media:{upload:{failed:'<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',maxSizeFailed:'<div class="line-1">{name} upload failed</div><div class="line-2">The file size exceeds limit. Please choose another file.</div>'},load:{failed:'<div class="line-1">{name} loading failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>'},audio:{menuItem:"Audio",abstract:"Audio"},video:{menuItem:"Video",abstract:"Video"}}},Ttt={media:{upload:{failed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>',maxSizeFailed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u30D5\u30A1\u30A4\u30EB\u306E\u30B5\u30A4\u30BA\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u308B\u305F\u3081\u3001\u4ED6\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044</div>'},load:{failed:'<div class="line-1">{name}\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>'},audio:{menuItem:"\u97F3\u58F0",abstract:"\u97F3\u58F0"},video:{menuItem:"\u52D5\u753B",abstract:"\u52D5\u753B"}}};D.mergeLang({"zh-CN":Btt,"en-US":ytt,"ja-JP":Ttt});var Vi=(n=>(n.AUDIO="audio",n.VIDEO="video",n))(Vi||{}),Eh=(n=>(n.Empty="empty",n.Progress="progress",n.Error="error",n))(Eh||{});const uL=10*1024*1024,ktt=["wav","mp3","aac","ogg","webm","flac"],Rtt=["ogg","mp4","webm"],wtt=()=>{};function fL(n){var h,C,E,b,v,k;const t=(h=n.getComponentOptions("media"))!=null?h:{},{allowedMedias:e,maxSize:r,callbacks:i}=t,o=(C=e==null?void 0:e.audio)!=null?C:ktt,s=(E=e==null?void 0:e.video)!=null?E:Rtt,l=(b=r==null?void 0:r.audio)!=null?b:uL,c=(v=r==null?void 0:r.video)!=null?v:uL,f=(k=i==null?void 0:i.onError)!=null?k:wtt;return{allowedMedias:{audio:o,video:s},maxSize:{audio:l,video:c},callbacks:{onError:f}}}function Stt(n,t){const e=o=>o.map(s=>`.${s}`).join(","),{allowedMedias:r}=fL(n),i=r[t];return i?e(i):"*"}function Ltt(n,t,e){const{maxSize:r,callbacks:i,allowedMedias:o}=fL(t),{[e]:s}=r,{[e]:l}=o;if(s&&n.size>s){const f=new Error("media is too large");throw f.code=`MaxMediaSize-${e}`,i!=null&&i.onError&&(i==null||i.onError(t,f)),f}const c=Pf(n.name);if(l&&!l.includes(c.toLowerCase())){const f=new Error(`media file is not allowed: ${c}`);throw f.code="NotAllowedFile",i!=null&&i.onError&&(i==null||i.onError(t,f)),f}}function Itt(n){return n===Eh.Empty||n===Eh.Error}const bn=_("media");class Dtt extends $e.TypedEmitter{constructor(e){super();m(this,"mediaContainer",null);m(this,"media",null);m(this,"abstract",null);m(this,"handleMediaLoadError",(e,r)=>{if(!r.target||!(r.target instanceof Node)||!(r.target instanceof Element?r.target:r.target.parentElement))return;const o=Q(r.target);if(!o||!o.contains(this.mediaContainer))return;const s=this.renderError();this.updateMediaContent(s),this.emit("mediaError",e,"load_error",dt(o))});m(this,"handleUploadFile",async e=>{p(bn,this.abstract,"no abstract"),p(bn,this.mediaContainer,"The media element not exist");const{editor:r}=this.options,i=Q(this.mediaContainer);p(bn,i,"The block element not exist");const o=r.getBlockData(i);try{const{resourceId:s}=await r.doc.uploadResource(e,{onProgress:C=>{this.renderProgress(C,e)}}),{name:l,type:c,size:f}=e,h={...o,embedData:{...o.embedData,src:s,fileName:l,fileSize:f,fileType:c}};r.updateBlockData(i,h)}catch(s){bn.error(s),this.emit("mediaError",r,"upload_error",o.id),this.renderRetry(e,s)}lt(i,"media-block-uploading")});m(this,"destroy",()=>{this.mediaContainer=null});this.options=e}bindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.addEventListener(this.media,"error",this.handleMediaLoadError)}unbindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.removeEventListener(this.media,"error",this.handleMediaLoadError)}updateMediaContent(e){p(bn,this.mediaContainer,"The media element not exist"),this.mediaContainer.innerHTML="",this.mediaContainer.append(e)}renderError(){p(bn,this.abstract,"no abstract");const{editor:e,createMediaElement:r}=this.options,{mediaIcon:i,mediaName:o}=this.abstract;p(bn,this.mediaContainer,"The media element not exist");const s=Q(this.mediaContainer);p(bn,s,"The block element not exist");const l=e.getBlockData(s),c=B("div",["media-error","embed-selected-content","embed-hover-content"],null),f=B("span",["media-error-icon"],c);f.innerHTML=i;const h=B("div",[],c);h.innerHTML=D.t("media.load.failed",{name:o}),c.appendChild(h);const C=h.querySelector(".retry-upload");return p(bn,C,"The element not exist"),e.domEvents.addEventListener(C,"click",(E,b)=>{const v=B("div",["media-element"],null),k=this.getResourceUrl(l),w=r(E,v,l,k);this.unbindMediaEvent(),this.media=w,this.bindMediaEvent(),this.updateMediaContent(v)}),this.setFullScreen(),c}renderRetry(e,r){var E,b;p(bn,this.abstract,"no abstract");const{editor:i}=this.options,{mediaIcon:o,mediaName:s}=this.abstract,l=B("div",["media-error","embed-selected-content","embed-hover-content"],null),c=B("span",["media-error-icon"],l);c.innerHTML=o;const f=B("div",[],l);let h=D.t("media.upload.failed",{name:s});(((E=r.response)==null?void 0:E.status)===420||((b=r.response)==null?void 0:b.status)===413)&&(h=D.t("media.upload.maxSizeFailed",{name:s})),f.innerHTML=h,l.appendChild(f);const C=f.querySelector(".retry-upload");C&&i.domEvents.addEventListener(C,"click",()=>{i.readonly||(p(bn,this.abstract,"no abstract"),this.handleUploadFile(e))}),this.updateMediaContent(l),this.setFullScreen()}renderProgress(e,r){p(bn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope .media-progress"),o=e===-1||e===100?100:e;if(i){const{updateProgressElement:s}=this.options;s(i,o)}else{const{createProgressElement:s}=this.options,l=Q(this.mediaContainer);p(bn,l,"The element not exist"),z(l,"media-block-uploading");const c=B("div",["media-progress"],null);s(c,o,r),this.updateMediaContent(c)}this.setFullScreen()}renderMediaElement(e,r){p(bn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope > .media-element"),{createMediaElement:o,updateMediaElement:s,editor:l}=this.options,c=this.getResourceUrl(e,r);if(i){const f=s(l,i,e,c);this.unbindMediaEvent(),this.media=f,this.bindMediaEvent()}else{const f=B("div",["media-element"],null),h=o(l,f,e,c);this.unbindMediaEvent(),this.media=h,this.bindMediaEvent(),this.updateMediaContent(f)}}renderEmpty(e){p(bn,this.abstract,"no abstract"),p(bn,this.mediaContainer,"The media element not exist");const r=B("div",["media-empty","embed-selected-content","embed-hover-content"],this.mediaContainer);r.innerHTML=this.abstract.mediaIcon,this.updateMediaContent(r);const{editor:i}=this.options;i.findBlockById(e.id)&&this.emit("mediaError",i,"empty",e.id),this.setFullScreen()}getResourceUrl(e,r){const{src:i}=e.embedData,{editor:o}=this.options;return o.doc.buildResourceUrl(i,{syncNewResources:async(s,l)=>{var f,h;if(!r)return;await o.doc.addResources([s]);const c=(h=(f=o.doc).getServerMeta)==null?void 0:h.call(f).appId;if(l!==e.embedData.src&&c&&e.embedData.src.includes(c)){const C=Q(r);if(C&&!o.readonly&&o.isBlockWritable(C)){const E=At.default(e);E.embedData.src=s,o.updateBlockData(C,E)}}}})}setFullScreen(){p(bn,this.mediaContainer,"The media element not exist"),z(this.mediaContainer,"full-screen")}removeFullScreen(){p(bn,this.mediaContainer,"The media element not exist"),lt(this.mediaContainer,"full-screen")}updateBlockAlign(e,r){const i=Q(r);p(bn,i,"The block element not exist");const{align:o}=e;e.embedType==="video"&&(i.hasAttribute("data-style-align")&&i.removeAttribute("data-style-align"),i.setAttribute("data-style-align",o))}render(e,r){const{src:i}=e.embedData;(!this.mediaContainer||!r.contains(this.mediaContainer))&&(this.mediaContainer=B("div",["media"],r)),this.updateBlockAlign(e,r),Itt(i)?i===Eh.Empty&&this.renderEmpty(e):this.renderMediaElement(e,r)}setAbstract(e){this.abstract=e}}_("media-embed");const _tt="left";class dL{constructor(){m(this,"handleInsertEmptyEmbed",async(t,e)=>{var C;const{containerId:r,blockIndex:i}=e;let o;(C=e.data)!=null&&C.file&&(o=e.data.file);const s=Stt(t,this.embedType);if(o=o!=null?o:await $c(s,{}),!o)return null;const{mediaType:l}=this.getAbstract();try{Ltt(o,t,l)}catch{return null}const c={id:rt(),type:"embed",embedType:this.embedType,embedData:{src:Eh.Empty}};l==="video"&&(c.align=_tt);const f=t.insertBlock(r,i,c);return await this.getMedia(t,c.id).handleUploadFile(o),f})}getMedia(t,e){const r=t.addCustom(`media-${e}`,()=>new Dtt({editor:t,createMediaElement:this.createMediaElement,updateMediaElement:this.updateMediaElement,createProgressElement:this.createProgressElement,updateProgressElement:this.updateProgressElement}));return r.setAbstract({...this.getAbstract()}),r}getOptions(){const{menuItem:t,mediaIcon:e,mediaName:r,order:i,group:o}=this.getAbstract();return{name:r,insertEmbedCommandItems:[{id:`insert-${this.embedType}`,name:t,icon:e,order:i,group:o,subText:Qn(`insert-${this.embedType}`)}],handleInsertEmptyEmbed:this.handleInsertEmptyEmbed}}createEmbedContent(t,e,r){const{id:i}=r;this.getMedia(t,i).render(r,e)}handleUpdateBlock(t,e,r){const{id:i}=r,o=this.getMedia(t,i),s=$t(e);return o.render(r,s),!0}handleDeleteBlock(t,e){const r=e.id,i=this.getMedia(t,r);i.removeAllListeners(),i.destroy()}convertTo(t,e,r,i){const o=e.embedData,s=t.doc.buildResourceUrl(o.src,{withToken:!0});return i==="html"?`<${o.type} src="${s}" />`:i==="markdown"?`![${o.src}](${s})`:s}}function hL(n,t){const e=B("div",["uploading-progress-mask"],n),r=B("div",["uploading-progress-bar"],e),i=B("div",["uploading-progress-bar-value"],r);i.style.width=`${t}%`}function mL(n,t){const e=n.querySelector(".uploading-progress-bar-value");e&&(e.style.width=`${t}%`)}const Mtt=_("media-audio");class Ott extends dL{constructor(){super(...arguments);m(this,"embedType",Vi.AUDIO);m(this,"updateProgressElement",mL);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["audio-container","embed-hover-content","embed-selected-content"],r),l=B("audio",[],s);return l.innerHTML="Your browser does not support the <code>audio</code> element.",l.controls=!0,l.src=o,setTimeout(()=>{this.getMedia(e,i.id).setFullScreen()}),l})}getAbstract(){return{mediaIcon:o2,mediaName:D.t(`media.${Vi.AUDIO}.menuItem`),menuItem:D.t(`media.${Vi.AUDIO}.menuItem`),order:800,mediaType:Vi.AUDIO,group:"common"}}getBlockProperties(){return{abstract:`${D.t(`media.${Vi.AUDIO}.abstract`)}`}}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .audio-container > audio");return p(Mtt,s,"The media element not exist"),s.src!==o&&(s.src=o),s}createProgressElement(e,r){const i=B("audio",[],e);i.innerHTML="Your browser does not support the <code>audio</code> element.",i.controls=!0,i.src="about:blank",hL(e,r)}}const Utt=new Ott;_("video-resizer");function gL(n){return n&&me(n)&&Ge(n)==="video"}const Ntt=50;class jx{constructor(t){m(this,"currentResizableElement",null);m(this,"resizing",!1);m(this,"handleHoveringBlockChange",(t,e)=>{if(!this.resizing&&!window.isDragging&&(e&&gL(e)&&this.disableBlockResize(e),t&&gL(t)&&this.editor.isBlockWritable(t))){const r=this.getVideoElement(t);if(!r)return;this.enableBlockResize(t,r)}});m(this,"handleResizing",(t,e)=>{if(this.resizing=!0,!this.currentResizableElement)return;const r=t.getBlock();if(!r)return;const i=r.getBoundingClientRect().width,o=Math.min(Math.max(e.width,Ntt),i);this.currentResizableElement.style.width=`${o}px`,this.currentResizableElement.style.pointerEvents="none"});m(this,"handleResized",t=>{this.resizing=!1;const e=t.getBlock();if(!this.currentResizableElement||!e)return;const r=this.editor.getBlockData(e),{width:i}=this.currentResizableElement.getBoundingClientRect();this.currentResizableElement.style.pointerEvents="auto",this.editor.updateBlockData(e,{...r,width:i})});this.editor=t,We.get(t).addListener("change",this.handleHoveringBlockChange)}destroy(){this.currentResizableElement=null,We.get(this.editor).removeListener("change",this.handleHoveringBlockChange)}getVideoElement(t){return $t(t).querySelector(":scope .video-container > video")}updateResizer(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.updateResizer()}disableBlockResize(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.disableResize()}enableBlockResize(t,e){const r=this.editor.addCustom(`${dt(t)}-resizer`,()=>new Zd(this.editor,{resize:["top-left","top-right","bottom-left","bottom-right"]}));r.enableResize(t,e),r.removeListener("resizing",this.handleResizing),r.removeListener("resized",this.handleResized),r.addListener("resizing",this.handleResizing),r.addListener("resized",this.handleResized),this.currentResizableElement=e}}class Ptt{constructor(t,e){m(this,"group","hovering-toolbar");m(this,"_commands",[{id:"addComment",name:D.t("comment.quickMenuCommand"),icon:cs},{id:"sep",name:"",type:"separator"},{id:"left",name:D.t("commands.alignLeft"),icon:xl},{id:"center",name:D.t("commands.alignCenter"),icon:fu},{id:"right",name:D.t("commands.alignRight"),icon:uu}]);this.editor=t,this.block=e,this.editor=t,this.block=e}createIconItem(t,e,r){if(!t)return null;const i=["style-icon","text-style-item"];return e&&i.push("active"),jo(t,i,r)}get commands(){if(this.editor.readonly)return[];const t=this.block.getAttribute("data-style-align");return this._commands.map(r=>r.id===t?{...r,element:()=>{const i=B("div",["video-tooltip-align-style-section"],null);return this.createIconItem(r.icon,!0,i),i}}:r)}executeCommand(t,e,r){switch(r.id){case"addComment":Na(t,e);break;case"left":case"center":case"right":hg(t,e,r.id);break}}}const Ftt=_("video");class Ktt extends dL{constructor(){super(...arguments);m(this,"embedType",Vi.VIDEO);m(this,"updateProgressElement",mL);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["video-container","embed-selected-content","drag-preview-element"],r),l=B("video",[],s);return l.innerHTML="Your browser does not support the <code>video</code> element.",l.controls=!0,l.src=o,l.addEventListener("canplay",()=>{e.addCustom("video-resizer",()=>new jx(e)),this.getMedia(e,i.id).removeListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).addListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).removeFullScreen()}),i.width&&(l.style.width=`${i.width}px`),l});m(this,"createProgressElement",(e,r,i)=>{const o=B("video",["progress-video"],e);o.innerHTML="Your browser does not support the <code>audio</code> element.",o.controls=!0,hL(e,r),Vc(i).then(s=>{const l=e.querySelector(".progress-video");l&&v1(e)&&(l.src=s)})})}getAbstract(){return{mediaName:D.t(`media.${Vi.VIDEO}.menuItem`),mediaIcon:s2,menuItem:D.t(`media.${Vi.VIDEO}.menuItem`),order:700,mediaType:Vi.VIDEO,group:"common"}}getBlockProperties(e,r){return{abstract:`${D.t(`media.${Vi.VIDEO}.abstract`)}`,blockCommands:{"hovering-toolbar":new Ptt(e,r)}}}handleMediaError(e,r,i){const o=e.addCustom("video-resizer",()=>new jx(e)),s=e.getBlockById(i);o.disableBlockResize(s)}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .video-container > video");p(Ftt,s,"The media element not exist"),s.src!==o&&(s.src=o),i.width?s.style.width=`${i.width}px`:s.style.width="";const l=e.getBlockById(i.id);return setTimeout(()=>{e.addCustom("video-resizer",()=>new jx(e)).updateResizer(l)}),s}}const Vtt=new Ktt,zx=[UR,XR,YR,wK,G4],Wx=[oL,VQ,XZ,itt,dtt,lV,vtt,Vtt,Utt,hW,k4,zX],pL=[sR,S4,QS,dR];function $tt(n,t,e){var i,o,s,l;Ei.level=(i=e.logLevel)!=null?i:rl.DEBUG;const r=pd(n,t,{components:{blocks:[...zx,...((o=e==null?void 0:e.components)==null?void 0:o.blocks)||[]],embeds:[...Wx,...((s=e.components)==null?void 0:s.embeds)||[]],boxes:[...pL,...((l=e.components)==null?void 0:l.boxes)||[]],textRenders:[new sb],options:{...e.componentsOptions}}});return r.readonly=!0,r.addCustom("heading-collapse",()=>new kx(r)),r.addCustom("editor-tooltip",()=>new zd(r)),r.addListener("clickLink",(c,f,h)=>{var E;if((E=e==null?void 0:e.events)!=null&&E.onClickLink){e.events.onClickLink(c,f,h);return}const C=h.getAttribute("link");C&&(c.readonly||f.ctrlKey||f.metaKey)&&window.open(C,"_blank")}),r}class CL{constructor(t){this.createOptions=t,t.lang&&D.setLang(t.lang)}createHistoryEditor(t,e){return $tt(t,e,this.createOptions)}}function EL(n,{root:t,childDoc:e,doc:r}){var h,C;e.uploadResource=r.uploadResource.bind(r),e.buildResourceUrl=r.buildResourceUrl.bind(r);const i=n.getComponentOptions("comment"),o={image:{defaultAlign:"left"},table:{locatingContainer:t,hideCellMenu:!0,hideToolbar:!0},...i==null?void 0:i.componentsOptions},s=[];n.editorBlocks.forEach(E=>{E.blockType==="text"||E.blockType==="embed"||s.push(E)});const l=[];n.editorEmbeds.forEach(E=>{l.push(E)});const c=[];n.editorBoxes.forEach(E=>{E.boxType==="text"||E.boxType==="br"||E.boxType==="image"||E.boxType==="anchor"||c.push(E)});const f=pd(t,e,{shortcuts:[g0],components:{blocks:s,commandProviders:[new q0],decorators:[new vg],embeds:l,boxes:c,options:o}});if(f.input.addHandler(new yg),f.input.addHandler(new Zb(f)),f.input.addHandler(new ox(f)),f.input.addHandler(new iX(f)),f.input.addHandler(new wg),f.addCustom("image-paste-handler",()=>new Yb(f)),f.addCustom("layout-paste-handler",()=>new Ux(f,!1)),ye.isMobile||f.addCustom("editor-tooltip",()=>new zd(f)),n.options.enableContextMenu!==!1&&f.addCustom("editor-context-menu",E=>new ax(E)),(h=n.options.componentsOptions)!=null&&h.mention){const E=n.options.componentsOptions.mention;f.addCustom("mention",()=>new w4(f,{...E}))}if((C=n.options.componentsOptions)!=null&&C.comment){const E=n.options.componentsOptions.comment;E.onCommentEditorClick&&f.addListener("click",E.onCommentEditorClick)}return f}function Htt(n,t){const e=Array.from(n.rootContainer.querySelectorAll(`[comment-${t.toLocaleLowerCase()}="${t}"]`)),r=new Set;e.forEach(i=>{const o=Q(i);o&&r.add(o)}),r.forEach(i=>{oX(n,i,t)})}class jtt{constructor(t){m(this,"listeners",new Set);m(this,"doc");this.editor=t,this.doc=this.editor.doc.externalDoc,this.doc.registerCallback(this)}getComments(){return this.doc.getComments()}getComment(t){return this.doc.getComment(t)}getCommentDoc(t){return this.doc.getCommentDoc(t)}localCreateComment(t,e){this.doc.localCreateComment(t,e)}localDeleteComment(t){const e=this.getComment(t);this.doc.localDeleteComment(t);const r=e.groupId;this.getComments().filter(o=>o.groupId===r).length===0&&Htt(this.editor,r)}localUpdateComment(t,e){this.doc.localUpdateComment(t,e)}onCreateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onCreateComment(t,e))}onDeleteComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onDeleteComment(t,e))}onUpdateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onUpdateComment(t,e))}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}createCommentEditor(t,e){return EL(this.editor,{root:t,childDoc:e,doc:this.doc})}allowEdit(t){return t.userId===this.doc.getUser().userId}}class ztt{constructor(t,e){m(this,"listeners",new Set);this.editor=t,this.localDoc=e}get doc(){return this.localDoc.toJSON()}getComments(){return Object.values(this.doc.comments)}getComment(t){return this.doc.comments[t]}getCommentDoc(t){const e=this.doc.comments[t];return iE(e)}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}localCreateComment(t,e){}localDeleteComment(t){}localUpdateComment(t,e){}createCommentEditor(t,e){return EL(this.editor,{root:t,childDoc:e,doc:this.localDoc})}allowEdit(t){return t.userId===this.localDoc.getUser().userId}}const Wtt={placeholder:{common:{title:"\u8BF7\u8F93\u5165\u6807\u9898",readonlyTitle:"\u8BF7\u8F93\u5165\u6807\u9898",content:"\u70B9\u51FB + \uFF0C\u6216\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6",contentInTable:"\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6"},local:{readonlyTitle:"\u672A\u547D\u540D"}},copyCutProperty:{copy:"\u590D\u5236",cut:"\u526A\u5207",unsafeEnvTips:"\u7531\u4E8E\u5F53\u524D http \u8BBF\u95EE\u73AF\u5883\u4E0B\u7684\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528\u5FEB\u6377\u952E({shortCut}) {operation}",limitedEnvTips:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528 {shortCut} \u7C98\u8D34"}},Gtt={placeholder:{common:{title:"Enter a title",readonlyTitle:"Enter a title",content:'Click "+", or enter "/" to insert components quickly',contentInTable:'Enter "/" to insert components quickly'},local:{readonlyTitle:"Untitled"}},copyCutProperty:{copy:"Copy",cut:"Cut",unsafeEnvTips:"Due to the limitations of the current http access environment, please use the shortcut ({shortCut}) {operation}",limitedEnvTips:"Press {shortCut} to paste due to browser restrictions"}},qtt={placeholder:{common:{title:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",readonlyTitle:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",content:"\u300C+\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u304B\u3001\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059",contentInTable:"\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059"},local:{readonlyTitle:"\u7121\u984C"}},copyCutProperty:{copy:"\u8907\u88FD",cut:"\u5207\u308B",unsafeEnvTips:"HTTP\u74B0\u5883\u306E\u5236\u7D04\u306B\u3088\u308A\u3001{operation}\u3059\u308B\u306B\u306F\u3001\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8({shortCut}) \u3092\u3054\u4F7F\u7528\u304F\u3060\u3055\u3044",limitedEnvTips:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u5236\u9650\u306B\u3088\u308A\u3001\u300C{shortCut}\u300D\u3092\u4F7F\u7528\u3057\u3066\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044"}};D.mergeLang({"zh-CN":Wtt,"en-US":Gtt,"ja-JP":qtt});const Xtt="UEsDBBQABgAIAAAAIQBk9WPugQEAACkGAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC0lMtqwzAQRfeF/oPRtsRKuiilxMmij2UbaArdKvI4EdULaZzH33fsJKYUJy5NsjHIM/feowHNcLw2OllCiMrZjA3SPkvASpcrO8/Yx/Sld8+SiMLmQjsLGdtAZOPR9dVwuvEQE1LbmLEFon/gPMoFGBFT58FSpXDBCKRjmHMv5JeYA7/t9++4dBbBYg8rDzYaPkEhSo3J85p+b0kC6MiSx21jlZUx4b1WUiDV+dLmv1J6u4SUlHVPXCgfb6iB8daEqnI4YKd7o9EElUMyEQFfhaEuvnIh57mTpSFletymhdMVhZLQ6Cs3H5yEGGnmRqcIxtMNIDVC2T1/G4csIzrzaTRXpJkE5+PgZJzGtPKDgAqaGR6chS3NDALRn38YjXUnRMSNhnh+gq1vdzwgkuASADvnToQVzN4vRvHDvBOkoNypmGk4P0Zj3QmBtIpg+z39VdQ2xyKps36AtNrCP669312Vuuf/9PKaRLI++X5QrcUc8pZsXi/60TcAAAD//wMAUEsDBBQABgAIAAAAIQAekRq37wAAAE4CAAALAAgCX3JlbHMvLnJlbHMgogQCKKAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArJLBasMwDEDvg/2D0b1R2sEYo04vY9DbGNkHCFtJTBPb2GrX/v082NgCXelhR8vS05PQenOcRnXglF3wGpZVDYq9Cdb5XsNb+7x4AJWFvKUxeNZw4gyb5vZm/cojSSnKg4tZFYrPGgaR+IiYzcAT5SpE9uWnC2kiKc/UYySzo55xVdf3mH4zoJkx1dZqSFt7B6o9Rb6GHbrOGX4KZj+xlzMtkI/C3rJdxFTqk7gyjWop9SwabDAvJZyRYqwKGvC80ep6o7+nxYmFLAmhCYkv+3xmXBJa/ueK5hk/Nu8hWbRf4W8bnF1B8wEAAP//AwBQSwMEFAAGAAgAAAAhADPCW79BAQAA5wQAABwACAF3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzIKIEASigAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArJQxT8MwEIV3JP5D5B07LVAQatoFkDqwQJFYneSSWI3tyL6Q9t9zojRNRYkYPN6z7r1P57Pny62uo09wXlmTsAmPWQQms7kyZcLe189X9yzyKE0ua2sgYTvwbLm4vJi/Qi2RmnylGh+Ri/EJqxCbByF8VoGWntsGDJ0U1mmJVLpSNDLbyBLENI5nwg092OLEM1rlCXOrnPLXuwb+422LQmXwaLNWg8EzEQKpF8hQuhIwYd/lXpxwMmPiPMN1SAaPu5qG2EPs67H4u5DxhTW4lmk9GEMvjUFMQ0KYVqfgaMeOEL00BjEJCZG1Hq3+oLQegvOjKhSCHl2LWUiaipxcrczmSPNj23UdT6XKW55ZLQ7HLzan5KctgjPyT8TbkIgdpG+ASHc0WN+BODarm6BP6BfFQTkgiJPvafEFAAD//wMAUEsDBBQABgAIAAAAIQBOMo6QFgYAAKYkAAARAAAAd29yZC9kb2N1bWVudC54bWzUWttu40QYvkfiHSJfLRKtz4eYTVeOD7uVQKoo+wCuPUmstT3WeNI0XC0XC1wguOBiuWClLgjBE4AEiIdZ0T28BTM+JM6h7cTZkm0vEnv+mW+++eb7/0yc3r13lsSdU4DyCKY9TtwXuA5IAxhG6bDHPfzM2zO4To79NPRjmIIeNwU5d+/g/ffuTswQBuMEpLhDINLcnGRBjxthnJk8nwcjkPj5fhIFCOZwgPcDmPBwMIgCwE8gCnlJEIXiKkMwAHlO5rP99NTPuQouOGNDC5E/IYMpoMIHIx9hcDbHEDcGUfkub6wCSS2AyAolcRVK3hhK4ymrFSClFRBhtYKktkNaszitHZK0iqS3Q5JXkYx2SCt2SlYNDjOQkuAAosTH5BYN+cRHj8bZHgHOfBydRHGEpwRT0GoYP0oftWBERs0QEjncGEHnExiCWA5rFNjjxig1q/F7s/GUulmOr97qEYhl/eUQpyoOxcp5BGKiBUzzUZTNMjxpi0aCoxrk9KpFnCZx3W+SiYzpcll5ckop54As9Cv9k7hkfjWiKDDsCIWYjWChsDhnzSQhLpxP3EqahrgiYwGpAaQVAC0AjAW/xjAqDD6YZyjFiRhTo8Ypd4XiRHNhRcY6tkymAZCDzSDUmkc+TRoryobb2fY+guNsjhZth3Y4L0ITehzYAKuyfzMl8+3IHI/8jNSmJDAPhylE/klMGBEzd4gfO8UO0FeyrfStuARnHVoIuANyfDmB4ZS+ZySimJmP/EPiHEV2dE+3La5oJcUf01a9+iOtJjkqhZ/2OEEQJE1z5FmTAwb+OMY04nUVRRfryFGjqZjwCBVvx3gaE4bmqR/3uAfAp2cukeNpDJVdYj8d1h1AuvfwmEb5KszPkMqX6tqDKc7JoFGUEi7Az7GVR35z4MTEBy/Pv3rz0w+0CZeBZZwrp6ajxIXBlMwaMT2l6wh9lUHMRcnejpjSDYrJoND2GksMGquOY+iu7exIY/m2ayyzaKwaqi4YNNd3obFy2zVWGDTW+7Il296uaoX6LmisMugkKIpouJqwI5202+5FjUFjTfQ8S7OMHWms33aNdQaNJd3qqoq8q5pq3HaNDRaNNcFzRafLoLGtaF2JdlzReDFSaFw1NTTeRMf1XBVLNcSux+KHnXOVBddQLEm6DVxVSxf6nubdPNfFPLNhCCqWdRxBOHARIj3wNCNf1YbIT46xj3CVi6WxA5jmMAb7MRzeWUqQtQhuGi6Mf/H4xxGIY/hhh3xbjMMXj5998BFDrsiSZnuiYjPoZLiC7fV3rVM+zTFI9uEY72eI1KA4baPWnZZyiYYu2oLFlK6u2C3OzqtyLURaytXME8Zvv//+9fOr8y8unj1lWKjqeroraMpWvliMFAutmoq9WDp9aJohGzrLN7o2M7asLrVj6MMbM8/8gBgqQyAH6BRwB5RlZ8l/1HgFrSO0NH29Wws7e5jGUQoa+zvbLgwuQ26YiBGX2SOvn39z8eWT0ik3tbAzvIzMuiuXbkRndSfW+1rRlb7nKExng00SeDuXXcK1qwiWJi99hmme4uiaRfNkJ1wXt2u78+Dr35+8+vPXJTeMSNVGxDuPOsiMyILRYahR/qMoxxBNSREuTbdox+vy4UGNem06MPB+8/0/L7/9ZdluM+JvV6SX539c/P0dg7eFru3alrhUs1VH6kuqPD/gULUcRVAdd51fFiM35m21L3ueJNOJGlwFQ1FFxZ0beQ3Xcrs3WkDV1FjA4qfrx8RZR4QYOSlko3JX0nFS9ozi07juJ8xih2HdVjy65mcDGlmyljCbK5rbf/H109fPf7u6FjfA2R5Rq47sCZq2JL/ueo5o2VfK//8oXf0g8K4rvcf0c4DrGX25v3TElmzV1foiLe47tfrGZf16xWbiLMlTh/yTCmauWA4CfDST+jopimUNjz8nwQnxhSQp9LmgOSLXqqFUWZoNP/EpIoYZaVfKLigajvD89gRiDJP5fQwGjegI+CEg8+oCfSRmDiDEjdvhGBe31XQBjKle1cmE9imaQxjcR/SnOJOeho4iHBCWslYM4ut1F5flD3P8/B+MDv4DAAD//wMAUEsDBBQABgAIAAAAIQC29GeY0gYAAMkgAAAVAAAAd29yZC90aGVtZS90aGVtZTEueG1s7FlLixtHEL4H8h+Guct6zehhrDXSSPJr1zbetYOPvVJrpq2eadHd2rUwhmCfcgkEnJBDDLnlEEIMMcTkkh9jsEmcH5HqHkkzLfXEj12DCbuCVT++qv66qrq6NHPh4v2YOkeYC8KSjls9V3EdnIzYmCRhx719MCy1XEdIlIwRZQnuuAss3Is7n392AZ2XEY6xA/KJOI86biTl7Hy5LEYwjMQ5NsMJzE0Yj5GELg/LY46OQW9My7VKpVGOEUlcJ0ExqL0xmZARdg6USndnpXxA4V8ihRoYUb6vVGNDQmPH06r6EgsRUO4cIdpxYZ0xOz7A96XrUCQkTHTciv5zyzsXymshKgtkc3JD/beUWwqMpzUtx8PDtaDn+V6ju9avAVRu4wbNQWPQWOvTADQawU5TLqbOZi3wltgcKG1adPeb/XrVwOf017fwXV99DLwGpU1vCz8cBpkNc6C06W/h/V671zf1a1DabGzhm5Vu32saeA2KKEmmW+iK36gHq92uIRNGL1vhbd8bNmtLeIYq56IrlU9kUazF6B7jQwBo5yJJEkcuZniCRoALECWHnDi7JIwg8GYoYQKGK7XKsFKH/+rj6Zb2KDqPUU46HRqJrSHFxxEjTmay414FrW4O8urFi5ePnr989PvLx49fPvp1ufa23GWUhHm5Nz9988/TL52/f/vxzZNv7XiRx7/+5avXf/z5X+qlQeu7Z6+fP3v1/dd//fzEAu9ydJiHH5AYC+c6PnZusRg2aFkAH/L3kziIEMlLdJNQoAQpGQt6ICMDfX2BKLLgeti04x0O6cIGvDS/ZxDej/hcEgvwWhQbwD3GaI9x656uqbXyVpgnoX1xPs/jbiF0ZFs72PDyYD6DuCc2lUGEDZo3KbgchTjB0lFzbIqxRewuIYZd98iIM8Em0rlLnB4iVpMckEMjmjKhyyQGvyxsBMHfhm327jg9Rm3q+/jIRMLZQNSmElPDjJfQXKLYyhjFNI/cRTKykdxf8JFhcCHB0yGmzBmMsRA2mRt8YdC9BmnG7vY9uohNJJdkakPuIsbyyD6bBhGKZ1bOJIny2CtiCiGKnJtMWkkw84SoPvgBJYXuvkOw4e63n+3bkIbsAaJm5tx2JDAzz+OCThC2Ke/y2EixXU6s0dGbh0Zo72JM0TEaY+zcvmLDs5lh84z01QiyymVss81VZMaq6idYQK2kihuLY4kwQnYfh6yAz95iI/EsUBIjXqT5+tQMmQFcdbE1XuloaqRSwtWhtZO4IWJjf4Vab0bICCvVF/Z4XXDDf+9yxkDm3gfI4PeWgcT+zrY5QNRYIAuYAwRVhi3dgojh/kxEHSctNrfKTcxDm7mhvFH0xCR5awW0Ufv4H6/2gQrj1Q9PLdjTqXfswJNUOkXJZLO+KcJtVjUB42Py6Rc1fTRPbmK4RyzQs5rmrKb539c0Ref5rJI5q2TOKhm7yEeoZLLiRT8CWj3o0Vriwqc+E0LpvlxQvCt02SPg7I+HMKg7Wmj9kGkWQXO5nIELOdJthzP5BZHRfoRmsExVrxCKpepQODMmoHDSw1bdaoLO4z02Tker1dVzTRBAMhuHwms1DmWaTEcbzewB3lq97oX6QeuKgJJ9HxK5xUwSdQuJ5mrwLST0zk6FRdvCoqXUF7LQX0uvwOXkIPVI3PdSRhBuENJj5adUfuXdU/d0kTHNbdcs22srrqfjaYNELtxMErkwjODy2Bw+ZV+3M5ca9JQptmk0Wx/D1yqJbOQGmpg95xjOXN0HNSM067gT+MkEzXgG+oTKVIiGSccdyaWhPySzzLiQfSSiFKan0v3HRGLuUBJDrOfdQJOMW7XWVHv8RMm1K5+e5fRX3sl4MsEjWTCSdWEuVWKdPSFYddgcSO9H42PnkM75LQSG8ptVZcAxEXJtzTHhueDOrLiRrpZH0Xjfkh1RRGcRWt4o+WSewnV7TSe3D810c1dmf7mZw1A56cS37tuF1EQuaRZcIOrWtOePj3fJ51hled9glabuzVzXXuW6olvi5BdCjlq2mEFNMbZQy0ZNaqdYEOSWW4dm0R1x2rfBZtSqC2JVV+re1ottdngPIr8P1eqcSqGpwq8WjoLVK8k0E+jRVXa5L505Jx33QcXvekHND0qVlj8oeXWvUmr53Xqp6/v16sCvVvq92kMwioziqp+uPYQf+3SxfG+vx7fe3cerUvvciMVlpuvgshbW7+6rteJ39w4Byzxo1IbtervXKLXr3WHJ6/dapXbQ6JX6jaDZH/YDv9UePnSdIw32uvXAawxapUY1CEpeo6Lot9qlplerdb1mtzXwug+Xtoadr75X5tW8dv4FAAD//wMAUEsDBBQABgAIAAAAIQDlI7CA9QMAAKALAAARAAAAd29yZC9zZXR0aW5ncy54bWy0Vttu2zgQfV9g/8HQ8zq6WHZsoU4R3zYp4nZRebHPlETZRHgRSMqu8/U7pETLu3ELp0VeEmrOzJkh53DoDx+/MdrbY6mI4FMvvAm8Hua5KAjfTr2/N6v+2OspjXiBqOB46h2x8j7e/f7bh0OisNbgpnpAwVXC8qm307pKfF/lO8yQuhEV5gCWQjKk4VNufYbkc131c8EqpElGKNFHPwqCkdfSiKlXS560FH1GcimUKLUJSURZkhy3/1yEvCZvE7IQec0w1zajLzGFGgRXO1Ipx8Z+lg3AnSPZ/2gTe0ad3yEMrtjuQcjiFHFNeSagkiLHSkGDGHUFEt4ljl8RnXLfQO52i5YKwsPArs4rH76NIHpFMMrxt7dxjFsOHyLPeUjxNp7RiYd0BxuOfq6YMwKF30YxdHWoI+t2pOg1PW6gJ5JJJJsb1DaY5cnjlguJMgrlQKN70Kuerc78hS2bf3YJOe/gIr8IwXqHpMIyBzXDFAgCzzdABtXBaFiIz0KntZSi5sUDRmD7LrwSQrcwKFCUqUYa8iZbiRjc/amXU4x4Q1/gEtVUb1CWalGB0x7B1m+jNnu+QxLlwJZWKAcdzwXXUlDnV5i0c5gjEmTeRtipYla1wqvlEzqKWp8haTOxgIEjBofznym0FgWMFAiV5PoumgBbTTg8L+H/iQRMWEkKvDFNSfWR4hVsJiUv+J4Xn2qlCTDaWfQLFfyoAMxN5i8go82xwiuMdA3H9k7JbGdWlFRrAqKQj7wAWb1bMlKWWEICAkJbg5yIFAd7zo1S3ysvKOwfcIZbPNiATJ9nQmvBHo7VDs761zpp9e+fyxme50K5xVe4YifXYBEHw8WyqdSgHRJEo9FicAkJV9Eyvr+EjJfBfDW7hMxm0WB+ewmZx6NJNLmILMPJ+GIFCyhiPL+IfHc/q0kc39qe+KcTYYl5dv+SbmWuVY81EXPEMklQb20eZt94ZPJ5RrjDMwzzFJ8jaZ05sN9vAMUQpStosANsc1hSEFUtcGnXdI3ktuNtPeRFK8y8TycuM26x/BMGZ9WgB4mq5ro4lzCO20jC9RNhzq7qLHVRHF6AMwim8Je9tOfUHc8h0SA/O3aekJWx9cW8P/9shIeR0veKoKn3sjOmRvlUpka1eI2qqhF/tg2nHiXbnQ5NmIavAn7S2Y9sG7VYZLGowewHys1mwbtddLbI2c78Bs426Gyxs8Wdbehsw842craRse1g3ElK+DPcQ7c09lJQKg64eOjwVyb3SuUERJAeWdY9PjcNRomCwVDBO6WFdNgfFgvjpBD5o3ls48Y+nIwXy8mg0XY4tO+btrMDjvYrLmdI4aJRt/tpffcvAAAA//8DAFBLAwQUAAYACAAAACEAQMH/8TkBAAAjAwAAFAAAAHdvcmQvd2ViU2V0dGluZ3MueG1snNJfT8IwEADwdxO/w9J36CCykIVBYgzGF2OifoDS3aCx7S294sBP720CYnhhvvT//XLXdrbYOZt8QiCDvhCjYSoS8BpL49eFeH9bDqYioah8qSx6KMQeSCzmtzezJm9g9Qox8klKWPGUO12ITYx1LiXpDThFQ6zB82aFwanI07CWToWPbT3Q6GoVzcpYE/dynKaZODDhGgWrymh4QL114GMXLwNYFtHTxtR01JprtAZDWQfUQMT1OPvjOWX8iRndXUDO6ICEVRxyMYeMOorDR2k3cvYXmPQDxhdApmHXz5geDMmR544p+znZyTHlmfO/ZM4Agn7E5JgH7V1bkdP509pjUCvLEr9RwtecdHDbcrZt1w35+Jx/LdbROPMFSwz3ARuCINtlZS02L8+PPJF/vvb8GwAA//8DAFBLAwQUAAYACAAAACEAOdtFTLkFAAAnWgAAEgAAAHdvcmQvbnVtYmVyaW5nLnhtbOyczW7qRhiG95V6D8j7xP8/oEOOwECV6rQ60knV9WAGsGKPrbGB0FV7Ke266q430EvpDfQWOuOxzZ9DbIMw5MwmDuP5Xs/3zjfDk0nCh48vvtdaQhy5AeoK8r0ktCBygomLZl3hp6fRnSW0ohigCfACBLvCGkbCx4dvv/mw6qCFP4aYdGwRDRR1VqHTFeZxHHZEMXLm0AfRve86OIiCaXzvBL4YTKeuA8VVgCeiIslS8l2IAwdGEdGxAVqCSEjlnJdyahMMViSYCmqiMwc4hi8bDbmyiC62RetQSKkhRDJU5EMptbKUIdJRHQhptYTIqA6U9HpKBckZ9ZSUQyWznpJ6qGTVUzooJ/+wwIMQInJzGmAfxOQlnok+wM+L8I4IhyB2x67nxmuiKRmZDHDRc40RkahcwVcnlRVM0Q8m0FMnmUrQFRYYddL4uzyeDr3D4tNLFoHL5M9CBoGz8CGKk8xFDD3iRYCiuRvmK9yvq0ZuzjOR5bEklr6X9VuFcsnl8tr2NGBWbgTLDD/13/fYyI8rylKJGaESeUSZIew+MxuJT6pw8+Ba1myZK5fcQDIB5UDAcGDJDT/TsFIN0dmsUKrjllwamQ6bFarjboyVS+5j+4PZEohgNQk9G0e09rcyCmenle13OFiEGzX3NLXHzSa0ojxQQSst/+0lGZ02mC9zEJK9yXc6jzMUYDD2yIhIMbdIPbaSGaBfybTSS/ItfGnRjUB4IPwCxlGMgRP/uPBbO68eSQERDiIiHQwJ/GDayFCnN40h7mMInmkXqoIiKt9ZAo+0jJS+ItuKINI7/sKL3U9wCb2ndQizPkmrR1tZr9gPveyeatvSUJE0dsdb0hsuuWTPSsaSdZZZL0JhIz9vHC88D8Z5/BN8yW/9++sfefv3TtbqwWnaPfyM6cVFNB3a3BU0hdrQmQM0S3iQviZ9xbwzTi+jAMURNTFyXFJgP5PelCCjJLpHLNpvcxGRn8ApIG6wx4+Tr25uJWuNfskalCRfMX2mmKSx75J8ukv//F7VJEu7nEkbO2T9bTuU0+3477e/q/ohK8alDDmevnqO9P+snL5hXUf6bJM7Mf2/qqavyNJ1pK83UvyKfrEt83j6RiPFr7QvthkeT99spPhV9Uq2PquR4lfNxrY+cQfg6DOO0p1ch+4Uua1LumWw/KvTXbsvGX1LS+O3p+sMdJc+r/xkXRPblYEZznY7dnC2Oz19znbV0udsx9mOsx1nuwunX5HtlDpsp2rKSB5ItdlOaxu2aitWbms+Xfzk7kIndzXW9OXwjsMchzkOc4Xpc5hroPg5zHGYuwWYU2vBXNvWTcsasvyLYW6+HmN38sMRpDN7pqbpmpabm09a4l0cek5XsI2BNVRNu8Y0hl/itZeP55MbxZ8BBjMMwnnhPH8FJ3y5rZakS0N5dAZ2fl9nfrlBw/5Is4b9s7x5XDM4VrWI7hepRZImtSVJYlUFUQxidwnP9JPGLcPmvkHMsjMbdMs4um8QazmzQbcMrPsGXccSuyKk3TfoOpbYFUHvvkHXscRuB4vpLl4HiwdqXxqw/KufcQ7aQ0Oib/2ZrfmEvv8zTn6ayU8z+WkmP818M31+mtlA8fPTTH6aeQvYRjG3Mrbplq0aZttm+VfHNsM2FG3YTk9Dt6frDNhWY7FybOPYtsmeYxvHNo5tHNsaTZ9jWwPFfzvYRk+8K2ObOVBHqmFpLP/q2NYb9CRTVtL47el679jGIe317DmkNVD6HNI4pHFI45DWaPoc0o5DGv2te3VIG/ZNc9QbsPyrQxrZGwzLlL/Kf/vgZ2sc2zi2cWx7M32ObQ0UP8c2jm1Xgm0owTWUffIKbdphtywjNZVDBWHsDbQwLPmf3VfC2BtPYVj2x+RFYQefD7gJM4+EsY2uMEw7EsY2iMKw5JMEXwljC6swLJvrojBWkIVhGcYlYezKIPrhfwAAAP//AwBQSwMEFAAGAAgAAAAhAPiVyO/8DgAA85kAAA8AAAB3b3JkL3N0eWxlcy54bWzsXd9zo0YSfr+q+x8oPSUPG/+QLTtbcVJr2T67btdxVt5L3eMIRhZnYHSA1uv89TczDAjUDKKHjuu8m6RqLQH9MczXX890A5qffvkSR95nnmahSM5GBz/sjzye+CIIk4ez0af7qzenIy/LWRKwSCT8bPTMs9EvP//9bz89vc3y54hnngRIsrexfzZa5vnq7d5e5i95zLIfxIoncudCpDHL5df0YS9m6eN69cYX8Yrl4TyMwvx573B/fzIyMGkfFLFYhD6/EP465kmu7fdSHklEkWTLcJWVaE990J5EGqxS4fMskxcdRwVezMKkgjk4AkBx6KciE4v8B3kxpkUaSpof7OtPcbQBOMYBHAKAic+/4DBODcaetKzjhAEOZ1LhhEENx60xNYCM4yCOy3Zkz7G6oth/e/OQiJTNI4kkOfJkN3saWP0rW6v+6I/y8J+lwwbCv+ALto7yTH1N71Lz1XzTf65Ekmfe01uW+WF4L9slweNQnuf6XZKFI7mHsyx/l4WsvvPSbFP7l+rAVks/y2ubz8MgHO2pk2Z/yJ2fWXQ2Ojwqt0xVIxrbIpY8lNt48mZ6W2/M2eiPpdk0l7hnI5a+mb1Thnvm2oq/tSteVd+Ko7a6R+pJqmtWiFzu5Yv3wn/kwSyXO85G++pUcuOnm7s0FKkU8tnoxx/NxhmPw+swCHhSOzBZhgH/fcmTTxkPNtt/u9JiNBt8sU7k5/HJRFMWZcHlF5+vlLTl3oSp3rtVBpE6eh1uTq7N/1uCHZg+a7Nfcqbim3ewDaGbj4I4VBZZ7WrbMddb166PQp1o/FInOnqpEx2/1IkmL3Wik5c60elLnUjD/JknCpOAfymECE8DUHfhWNSIxrGIDY1j0RIaxyIVNI5FCWgci6OjcSx+jMaxuCkCJxe+zQtrzj62eHs37u4xwg1395Dghrt7BHDD3R3w3XB3x3c33N3h3A13d/R2w90drPG4xVTLu5EyS/LBKlsIkSci517OvwxHY4nE0kkfDZ4a9HhKcpEEMEVkMwPxYDSf6e+7PUSL1H08z1U25omFtwgf1inPBjecJ595JLN2jwWBxCMETHm+Ti094uLTKV/wlCc+p3RsOtAoTLiXrOM5gW+u2AMZFk8C4u4rEUmCQuXQbJ0vlUhCAqeOmZ+K4U0TjCw+vA+z4X2lQLzzdRRxIqxbGhfTWMNzAw0zPDXQMMMzAw0zPDGocUbVRQaNqKcMGlGHGTSifiv8k6rfDBpRvxk0on4zaMP77T7MIx3i67OOg/61u2kkVJl+cDtm4UPC5ARg+HBjaqbeHUvZQ8pWS0+VkNth69eMPc+5CJ69e4oxrUKimtdrF5nKqw6T9fAObaBRiavCI5JXhUcksApvuMQ+yGmymqBd0+Qzs/U8bxWtRuol2hmL1sWEdrjaWD7cwzYCuArTjEwG7bAEHnyrprOKTorIt2nl8IZtsIbLajsqkTbPQBK0MhL+I00Yvn5e8VSmZY+Dka5EFIknHtAhzvJUFL5Wl/yhpqSX5C/j1ZJloc6VGhD9h/ryBr/3ga0GX9BdxMKEhrfLNzELI49uBnF9/+G9dy9WKs1UHUMDeC7yXMRkmKYS+N3vfP49TQPfySQ4eSa62ndE5SENNg0JBpkCSQRESHKaGSYhyRiq8f7Jn+eCpQEN2l3Ki2dqck6EOGPxqph0EGhLxsUnGX8IZkMa718sDVVdiEpU9yRgtbJhtp7/h/vDQ92t8EgqQ7+uc11/1FNdbU0HN3ya0IAbPkXQbMrhQfkvwcU24IZfbAOO6mKnEcuy0HoL1RmP6nJLPOrrHZ78GTwRiXSxjug6sAQk68ESkKwLRbSOk4zyijUe4QVrPOrrJXQZjUdQktN4/0jDgIwMDUbFhAajokGDUXGgwUgJGP6ETg1s+GM6NbDhz+oUYERTgBoYlZ+RDv9Ed3lqYFR+psGo/EyDUfmZBqPys/GFxxcLOQmmG2JqkFQ+V4OkG2iSnMcrkbL0mQjyMuIPjKBAWqDdpWKhXrYQSfEQNwGkqlFHhJPtAo6K5N/5nKxpCouyXQQVURZFQhDV1jYDjrZsPru2y0y/czG4CXcR8/lSRAFPLddkt5X58mzFfFOmB7f7epU934cPy9ybLatqfx1msr/TskzYG2a7T9jW55PDDrMPPAjXcdlQ+DLFZNzfWHt0w7h856XDeDOTaFge97SE55zsttzMkhuWJz0t4TlPe1pqnTYsu/RwwdLHVkc46fKfKsezON9JlxdVxq2n7XKkyrLNBU+6vKghFe+d76u7BZCdfpqx2/cTj90eoyI7CkZOdpTeurJDdAnsI/8cqpEdEzT1+aqnJ0Dc15PoXpHzt7Uo6vaNG079X+q6kROnJONeK864/42rRpSx92PvcGOH6B137BC9A5AdolckspqjQpIdpXdsskP0DlJ2CHS0giMCLlpBe1y0gvYu0QqiuESrAbMAO0Tv6YAdAi1UCIEW6oCZgh0CJVRg7iRUiIIWKoRACxVCoIUKJ2A4oUJ7nFChvYtQIYqLUCEKWqgQAi1UCIEWKoRACxVCoIXqOLe3mjsJFaKghQoh0EKFEGih6vniAKFCe5xQob2LUCGKi1AhClqoEAItVAiBFiqEQAsVQqCFCiFQQgXmTkKFKGihQgi0UCEEWqjFq4buQoX2OKFCexehQhQXoUIUtFAhBFqoEAItVAiBFiqEQAsVQqCECsydhApR0EKFEGihQgi0UPXNwgFChfY4oUJ7F6FCFBehQhS0UCEEWqgQAi1UCIEWKoRACxVCoIQKzJ2EClHQQoUQaKFCiC7/NLcobY/ZH+CrntYn9vvfujKN+lh/lbsONe4PVbbKjtX/XYRzIR691hcPxzrf6AcSzqNQ6BK15bZ6HVc/EoG68fnrtPsNnzr6wB9dMu9C6HumAPyoryWoqRx1uXzdEiR5R12eXrcEs86jruhbtwTD4FFX0NW6LB9KkcMRMO4KMzXjA4t5V7SumcMu7orRNUPYw12RuWYIO7grHtcMjz0VnLetj3v206R6vhQgdLljDeHEjtDllpCrMhxDYfQlzY7Qlz07Ql8a7QgoPq0weGLtUGiG7VBuVEOZYal2F6odAUs1RHCiGsC4Uw2hnKmGUG5Uw8CIpRoiYKl2D852BCeqAYw71RDKmWoI5UY1HMqwVEMELNUQAUv1wAHZCuNONYRyphpCuVENJ3dYqiEClmqIgKUaIjhRDWDcqYZQzlRDKDeqQZaMphoiYKmGCFiqIYIT1QDGnWoI5Uw1hOqiWldRGlSjGK6Z4yZhNUPcgFwzxAXnmqFDtlSzdsyWagiO2RLkquQcly3VSbMj9GXPjtCXRjsCik8rDJ5YOxSaYTuUG9W4bKmNaneh2hGwVOOyJSvVuGypk2pcttRJNS5bslONy5baqMZlS21UuwdnO4IT1bhsqZNqXLbUSTUuW7JTjcuW2qjGZUttVOOypTaqBw7IVhh3qnHZUifVuGzJTjUuW2qjGpcttVGNy5baqMZlS1aqcdlSJ9W4bKmTaly2ZKcaly21UY3LltqoxmVLbVTjsiUr1bhsqZNqXLbUSTUuW/ogTUKCn4CaxSzNPbrfi7tm2TJnw3+c8FOS8kxEn3ng0V7qe9RV7j01lr9S2Hq1O3l8LvtM/QJ67XWloPgFWAOoD7wJqmWqlLFqiWeW7jKbdYPN7Vr9Oc1kTm2O2d8/Pz8cT43UVsXSZFnxZqk8Rv1a0dloPNGvJKkvH9dqDTS2zoVpvTbZM43Z0fyqweb+8wFo8mbBLN2eOZM99avqYXBBifqxxZbtysnK7eVppkuWFns37l8eYwRu75+Lo/3ji8tG/zxyvrqV59fb1BfJOc/0t03XzdXvlHG1qJoRvyh+/On956gCr/ehZWE4qcRyrTrv3+yaNxaGa92pV4Vr3eNnZ6P7MOaZd8ufvI8iZon3nemkzJvOvje9rv/1VfjYdIP6T2HodeV0aDkbqd+9N0xtFpYrb5TXF5Yb60hTWx/OxVsOrd5i4hiNtxz28JamlP9kB7L7TxlBvir/GZuJQ2NhQr1toP+Mrf5jHgqh8Z/x6/GfUpVfl/9QxJojq6+Y6EbjK0evx1e0Rv5ffSWcFhfk7DPlSDzEZ46tPmMeAKPxmePX4zNaK19DfBnoGcUKs22eYcY6Gs+YvB7P0Ir4yzMeTqyeYTIyGs84eT2eUc70vppxZqCHnFo9xBS3aDzk9PV4iFbGq4gdhyfq/3bPKDfeh2oV8gtDZiPp6ek+vmSO+eYnxy0VIrN0UPXbN3rhoG3HsqwvZHGKchJVlbnafcTe7lzVKTvarOuYnaWtotRp9VrjtrtaKNszjwonkh9uEuXET2aV96KlwRdWQMn9Ux5FH1hxtFjZD434QmlP7j3Y1780ubV/XiyaYLVPdXXdCrDXbEzxtdtPimUUw+K1D2slUZWQW7pbv4M0tKd7+rC/zmTXzNQB2+1rVPS2W2l2egfeJphtRcdWHdhiovFwazy0B7y/KnlIQouim43QQyJCTZ3wmyV0SGkNSWhRBbMROiYi1BTuvl1C/xw1FmUpG3lHROSZ6PLqyXup4hOSxKJOZCPxmIhEU9r6phRITlVRuLFRNSGiygT/v6gaQlVRSbFRdUJElSn+fJOhkZyyorRho+yUiDKTwH9d6nqZAkaj/tXBp17ibptHvbGNvX5Pv5xe7k+vzoujTEFpdR7U0nt9nFoI2qyb9oe6raE+rJhftlD32eapmCr532GrPwPbqjDgdOaybOBwalVSM5eeLasu8iPOCqHVjpZfF2Ek916eXE4u9YNl2heu9MY58x8fUrFOgn43mKciyUTE9O+BbFx8FsaztX4oy3h2/bBWl9aLsFbuHDFdT9QXwZM3n2a0weUmUWXJVpes7cKFFWuRrZ//EnVv0eagCgKJSCof0mHb+JD+DByQ1HVoWNwMCNVTiNuUbfYMZayshbWUGZvMTS8Pfjw1CaxhrjlMHk/G002YNbF32WzoujzaSH1A52weiCyfh9zupJZHJql6a3eNFtd5k/3jy+Mp1iMPLq4uLhzGrKoPVZF08/vy2/2nn87d7G7ru/qgBXtrbFJm1F2XZB0XH8Jo68kfve+msi5Ha2MAwnZPKZafsp//BwAA//8DAFBLAwQUAAYACAAAACEAzJJQVH0BAADxAgAAEQAIAWRvY1Byb3BzL2NvcmUueG1sIKIEASigAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjJLLTsMwEEX3SPxD5H1qJ+WlKE3FQ6yoQKIViJ2xJ60hsS17IPTvcZI2JYgFO4/n+GRy7Xz+VVfRJzivjJ6RZMJIBFoYqfR6RlbL2/iCRB65lrwyGmZkC57Mi+OjXNhMGAcPzlhwqMBHwaR9JuyMbBBtRqkXG6i5nwRCh2ZpXM0xlG5NLRfvfA00ZeyM1oBccuS0FcZ2MJKdUopBaT9c1QmkoFBBDRo9TSYJPbAIrvZ/Hug6P8ha4dbCn+i+OdBfXg1g0zSTZtqhYf6EPi/uHrtfjZVusxJAilyKDBVWUOT0sAwr//H6BgL77aEIa+GAo3HFQglnvCkxui9LJSBaeXAdvSfa7N9h2xgnffCMqoBJ8MIpi+FG+6+MNgJdcY+LcMWlAnm1LS5Pz9OzTvOr0bIOPlX7NoqkI4Yy3wXdDwUyCgFlfZz7ztP0+mZ5S4qUpUnMTuIpW7I0O00zxl7auUbnD8J6N8A/jdOMnYyNe0EfzfiRFt8AAAD//wMAUEsDBBQABgAIAAAAIQAiURHx1QEAAN4DAAAQAAgBZG9jUHJvcHMvYXBwLnhtbCCiBAEooAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJxTwW7bMAy9D9g/GLo3crKh6AJFxZBi6GFDA8Rtz5xMJ8JsSZDYINnXj7YTT9l2mk/vkfTTE0mp+2PXFgeMyXq3EvNZKQp0xtfW7VbiufpycyeKROBqaL3DlThhEvf6/Tu1iT5gJIupYAmXVmJPFJZSJrPHDtKM044zjY8dENO4k75prMEHb946dCQXZXkr8UjoaqxvwiQoRsXlgf5XtPam95deqlNgPa0q7EILhJrOYFZ7Oio5xVXlCdrKdqjnJccnpjaww6TnSo5AvfpYJ724U3JEar2HCIa4h3p++0HJjKvPIbTWAHF39Tdrok++oeJpsFz0/yuZlyi+xhbNW7R00mwjp+qrdaOREbCxCLsIYX92NzG1NdDimhugG2gTKvk7oB4R+uFuwPb+DrQ8oCEfi2R/8ngXovgOCfu2rcQBogVHYiwbyYDbkCjqylLL2hMfYF6WY/uxNzmC68KBDB4YX7sbTkhPDd+N/mF2npsdPIxWMzu5s8sZf6iufRfAcX/lhLjBP9JzqPxDvxrnHl4Hs6m/WtpvA5h+OJ/KfP5ZRm05ijUPdJrJFFCPfIPY9vr8r9thfan5O9Fv1Mv4XHnbZiV/wwpdYrwI0zvSvwAAAP//AwBQSwMEFAAGAAgAAAAhAIg/pb/hAAAAVQEAABgAKABjdXN0b21YbWwvaXRlbVByb3BzMS54bWwgoiQAKKAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnJDBasMwEETvhf6D2bsiObFdEyyHuE4g19JCroq8tgWWZCS5tJT+e2V6So89LbPDzhu2OnzoKXlH55U1HNINgwSNtJ0yA4e31zMpIfFBmE5M1iAHY+FQPz5Und93IggfrMNLQJ3EhYrz0nL4ykvW5E87Rsr2nJLilDXkmKUNKTKWt8fnU8pY8Q1JRJsY4zmMIcx7Sr0cUQu/sTOaaPbWaRGidAO1fa8ktlYuGk2g25hA5RLx+qonqNc+v9cv2Pt7uVZbnPov5aZuk7KDE/P4CbSu6B/Uqu9eUf8AAAD//wMAUEsDBBQABgAIAAAAIQDBJ8sItgAAACEBAAATACgAY3VzdG9tWG1sL2l0ZW0xLnhtbCCiJAAooCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACskE0OgjAQRq9CegCKLlgQfmKiWzEhcV/KAE3aGdIOBm5v1egJXE7mfS/zTdlsziYP8MEQVuKQZiIJrHBQlhAqgSSauuyLjlavISSRxlD0lZiZl0LKoGdwKqS0AMbdSN4pjqOfJI2j0XAmvTpAlscsy2Vvemto8mqZd/GR/UfVgQXNMHS823i2PN1Ondl4vgyGY7P2LWjRGoR0CzYGXuBVuQhHViT37wtyUZfyV7h+AgAA//8DAFBLAwQUAAYACAAAACEAdD85esIAAAAoAQAAHgAIAWN1c3RvbVhtbC9fcmVscy9pdGVtMS54bWwucmVscyCiBAEooAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIzPsYrDMAwG4P3g3sFob5zcUMoRp0spdDtKDroaR0lMY8tYamnfvuamK3ToKIn/+1G7vYVFXTGzp2igqWpQGB0NPk4Gfvv9agOKxcbBLhTRwB0Ztt3nR3vExUoJ8ewTq6JENjCLpG+t2c0YLFeUMJbLSDlYKWOedLLubCfUX3W91vm/Ad2TqQ6DgXwYGlD9PeE7No2jd7gjdwkY5UWFdhcWCqew/GQqjaq3eUIx4AXD36qpigm6a/XTf90DAAD//wMAUEsDBBQABgAIAAAAIQDrgGBMUwMAAI8OAAASAAAAd29yZC9mb250VGFibGUueG1szJbPb9MwFMfvSPwPUU7jwJqkXZdV66Y2WzQk2IEVAUc3cVqL2I7itF3/AA6IE+LI38C4gwb/DNPYf8FznLRZm25LQbBGzY9n+5vnT57f8+7+KQ21MY4F4aytm5uGrmHmcZ+wQVt/0XMf27omEsR8FHKG2/oUC31/7+GD3Ukr4CwRGoxnokW9tj5MkqhVqwlviCkSmzzCDBoDHlOUwGM8qFEUvxlFjz1OI5SQPglJMq1ZhtHUM5n4Lio8CIiHD7g3opgl6fhajENQ5EwMSSRytcld1CY89qOYe1gImDMNlR5FhM1kzMaSECVezAUPkk2YTOZRKgXDTSO9o+FcYKuagLUk0PTwaTUNO9OowciiDvGr6TRnOsQv6KznTEFA4GoSW7kfYkrljKjXejJgPEb9EJTgG2mAWUuF5Rm8lZf0FrrvZfGqTVoMURjwEj62DHKRNkWIcYFNaB2jsK0bW8bST6/Jjt4QxQJLmbRj40CZA0RJOM2tPvbAr4SMsWqNSOIN88Yxion0WTUJMoCGkegb8Fb1q+vKYsJyzN+tLNasT26pX7d4qY6tDGZmMQt94J01BWIJSI9QLLRjPNGec4pYKRYLjqZRBzwN+Ftw1yjFktO6jiVOdasQgaVoWB17e04km9syEfsmIoqH61Yj4qCQ9GOygoSbEpBHAzhYlUiICRGiEomOdNY6TGegSDSkwdjuVosN9bxTkcQBZoNXJAsKFCbHYM19vvz87vLrj2wyS5RMiBcIabhmRyklu1lGCY0SvgakbgFS3XbcbcftLEIym7dAknQrQnqWZy/tNTrCKmwWWF18P/t1/uXq09urbx9WEetCXMl4knGVnisQqx5X6XqyiivM6jhu3dmy1kFmVkS2kHO0jSOM0qSsOSePygAuJqmVDJsZvWyF/oUs5eMAjcLkxoQB+w8eovKSorzaWTNjUO7juMytgJxif/m7HsrSYamMN88XrjOzzPPFzu2Zs2q+OCH0ZFSaLS7O3v88/3gvskU2j0K5tWzbzadfOVv8WbnVNrrcn96PsGc86cUj3JtGeK1lkFcL7SkZDJPVNSNrvw+x8H8rR7bRKPAq226oovBvthuHEkenmD4caWmUbDfukD5u3XhlN2LvNwAAAP//AwBQSwECLQAUAAYACAAAACEAZPVj7oEBAAApBgAAEwAAAAAAAAAAAAAAAAAAAAAAW0NvbnRlbnRfVHlwZXNdLnhtbFBLAQItABQABgAIAAAAIQAekRq37wAAAE4CAAALAAAAAAAAAAAAAAAAALoDAABfcmVscy8ucmVsc1BLAQItABQABgAIAAAAIQAzwlu/QQEAAOcEAAAcAAAAAAAAAAAAAAAAANoGAAB3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAE4yjpAWBgAApiQAABEAAAAAAAAAAAAAAAAAXQkAAHdvcmQvZG9jdW1lbnQueG1sUEsBAi0AFAAGAAgAAAAhALb0Z5jSBgAAySAAABUAAAAAAAAAAAAAAAAAog8AAHdvcmQvdGhlbWUvdGhlbWUxLnhtbFBLAQItABQABgAIAAAAIQDlI7CA9QMAAKALAAARAAAAAAAAAAAAAAAAAKcWAAB3b3JkL3NldHRpbmdzLnhtbFBLAQItABQABgAIAAAAIQBAwf/xOQEAACMDAAAUAAAAAAAAAAAAAAAAAMsaAAB3b3JkL3dlYlNldHRpbmdzLnhtbFBLAQItABQABgAIAAAAIQA520VMuQUAACdaAAASAAAAAAAAAAAAAAAAADYcAAB3b3JkL251bWJlcmluZy54bWxQSwECLQAUAAYACAAAACEA+JXI7/wOAADzmQAADwAAAAAAAAAAAAAAAAAfIgAAd29yZC9zdHlsZXMueG1sUEsBAi0AFAAGAAgAAAAhAMySUFR9AQAA8QIAABEAAAAAAAAAAAAAAAAASDEAAGRvY1Byb3BzL2NvcmUueG1sUEsBAi0AFAAGAAgAAAAhACJREfHVAQAA3gMAABAAAAAAAAAAAAAAAAAA/DMAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAiD+lv+EAAABVAQAAGAAAAAAAAAAAAAAAAAAHNwAAY3VzdG9tWG1sL2l0ZW1Qcm9wczEueG1sUEsBAi0AFAAGAAgAAAAhAMEnywi2AAAAIQEAABMAAAAAAAAAAAAAAAAARjgAAGN1c3RvbVhtbC9pdGVtMS54bWxQSwECLQAUAAYACAAAACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=",Ytt=()=>i1(Xtt),Jtt=_("image-to-docx");async function Qtt(n){return new Promise((t,e)=>{const r=new Image;r.onload=()=>{t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=e,r.src=n})}async function bL(n,t){if(n.width&&n.height)return{width:n.width,height:n.height,buffer:t};try{const e=await Vc(new File([t],"",{})),r=await Qtt(e);return r.width===void 0||r.height===void 0?{width:345,height:230,buffer:t}:n.width||n.height?{width:n.width||r.width*n.height/r.height,height:n.height||r.height*n.width/r.width,buffer:t}:{width:r.width,height:r.height,buffer:t}}catch(e){Jtt.error(e);return}}function Ztt(n,t){let e=n.filter(s=>s!=null);const r=t-(e.length-1)*20,i=.87,o=e.reduce((s,l)=>s+l.width,0);return o>r&&(e=e.map(s=>({width:s.width*r/o,height:s.height*r/o,buffer:s.buffer}))),e.map(s=>({width:s.width*i,height:s.height*i,buffer:s.buffer}))}function tet(n,t,e){if(!e||typeof e!="object")return;const r=e,i=n.filter(s=>s!=null),o=t-(i.length-1)*20;i.forEach((s,l)=>{if(i.length===1&&r.widthPercent){const f=r.widthPercent,h=s.width;s.width=o*(f/100),s.height*=s.width/h;return}const c=`${l}_flex`;if(r[c]){const f=r[c],h=s.width;s.width=o*f,s.height*=s.width/h}})}function xL(n=[0,1,2,3,4,5,6,7],t=1){return n.map(e=>{let r;switch(e%3){case 0:r=Bt.LevelFormat.DECIMAL;break;case 1:r=Bt.LevelFormat.LOWER_LETTER;break;default:r=Bt.LevelFormat.LOWER_ROMAN;break}return{level:e,format:r,text:`%${e+1}. `,alignment:Bt.AlignmentType.START,start:t,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(e+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function eet(){return[0,1,2,3,4,5,6,7].map(n=>{let t;switch(n%3){case 0:t="\u2022";break;case 1:t="\u25E6";break;default:t="\u25AA";break}return{level:n,format:Bt.LevelFormat.BULLET,text:t,alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function net(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2611",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}function ret(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2610",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}var bh=(n=>(n.NUMBERING="number-numbering-reference",n.BULLET="number-bullet-reference",n.CHECKED="checked-bullet-reference",n.UNCHECKED="unchecked-bullet-reference",n))(bh||{});const iet=[{levels:xL(),reference:"number-numbering-reference"},{levels:eet(),reference:"number-bullet-reference"},{levels:net(),reference:"checked-bullet-reference"},{levels:ret(),reference:"unchecked-bullet-reference"}];function oet(n){switch(n){case"style-color-0":return"d83931";case"style-color-1":return"de7802";case"style-color-2":return"dc9b04";case"style-color-3":return"2ea121";case"style-color-4":return"245bdb";case"style-color-5":return"6425d0";case"style-color-6":return"8f959e";default:return}}function set(n){switch(n){case"style-bg-color-1":case"style-bg-color-2":case"style-bg-color-8":case"style-bg-color-9":return"yellow";case"style-bg-color-0":case"style-bg-color-5":return"magenta";case"style-bg-color-3":return"green";case"style-bg-color-4":case"style-bg-color-11":return"blue";case"style-bg-color-6":return"lightGray";case"style-bg-color-7":return"red";case"style-bg-color-10":return"darkGreen";case"style-bg-color-12":return"darkMagenta";case"style-bg-color-13":return"darkGray";default:return}}function aet(n){switch(n){case"style-bg-color-0":return"fbbab6";case"style-bg-color-1":return"ffdcb0";case"style-bg-color-2":return"fff7a0";case"style-bg-color-3":return"ceefc5";case"style-bg-color-4":return"d1ddfb";case"style-bg-color-5":return"d9cbf8";case"style-bg-color-6":return"eaeaea";case"style-bg-color-7":return"fe837c";case"style-bg-color-8":return"ffbd6a";case"style-bg-color-9":return"ffe662";case"style-bg-color-10":return"a8f393";case"style-bg-color-11":return"98b5ff";case"style-bg-color-12":return"b394f8";case"style-bg-color-13":return"b1b1b1";default:return}}const cet=/rgb\((\d+),\s*(\d+),\s*(\d+)\)/;function AL(n){if(typeof n=="string"&&n.length>0){if(n[0]==="#")return n.substring(1);const t=n.match(cet);if(t){const e=s=>{let l=Number(s).toString(16);return l.length<2&&(l=`0${l}`),l},r=e(t[1]),i=e(t[2]),o=e(t[3]);return`${r}${i}${o}`}if(n==="red")return"FF0000";if(n==="green")return"00FF00";if(n==="blue")return"0000FF"}}function On(n,t){if(n&&n.attributes&&n.attributes[t])return n.attributes[t];if(n&&n.attributes&&n.attributes.box&&n.attributes.inputType&&t==="style-underline")return!0}function vL(n,t,e){for(let r=0;r<=e;++r){const i=`${t}${r}`;if(On(n,i))return i}}function tp(n,t,e){n.attributes=n.attributes||{},n.attributes[t]=e}function Gx(n){return n==="image"||n==="drawio"||n==="plantuml"||n==="mermaid"||n==="flowchart"}function BL(n){return n&&n.startsWith("//")?`https:${n}`:n&&!n.startsWith("http://")&&!n.startsWith("https://")?`https://${n}`:n}function uet(n){const t=On(n,"inlineStyle");if(t==null)return;const e=t.split(";");for(const r of e){const i=r.split(":");if(i.length!==2)continue;const o=i[0].trim().toLowerCase(),s=i[1].trim().toLowerCase();o==="font-size"&&tp(n,"inline-style-font-size",s),o==="color"&&tp(n,"inline-style-color",s),o==="background-color"&&tp(n,"inline-style-background-color",s),o==="font-family"&&tp(n,"inline-style-font-family",s)}}function fet(n,t){if(t==null)return n==null?void 0:n.normal;if(n)return n[`heading${t}`]}function det(n){const t=`${On(n,"inline-style-font-size")}`;if(t&&t.indexOf("px")>0)return+t.replace(/px/g,"")}function het(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` ${n.attributes.text} `;if(n.attributes&&n.attributes.box&&n.attributes.inputType)return n.attributes.value?`${n.attributes.value}`:" "}function met(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` @${n.attributes.text} `}function get(n){return On(n,"inline-style-font-family")}function pet(n){const t=On(n,"inline-style-background-color");return AL(t)}function Cet(n){const t=On(n,"inline-style-color");return AL(t)}function Eet(n){uet(n);const t=On(n,"type")==="mention";return{box:n.attributes&&n.attributes.box?n.attributes:void 0,inlineCode:!!On(n,"style-code"),link:BL(On(n,"link")),size:det(n),text:t?met(n):het(n)||n.insert,bold:!!On(n,"style-bold"),underline:!!On(n,"style-underline"),italics:!!On(n,"style-italic"),strike:!!On(n,"style-strikethrough"),superScript:!!On(n,"style-super"),subScript:!!On(n,"style-sub"),math:On(n,"type")==="math"?On(n,"src"):void 0,mention:t,fontFamily:get(n),background:pet(n),color:t?"338fe5":oet(vL(n,"style-color-",6))||Cet(n),highlight:vL(n,"style-bg-color-",13)}}function bet(){return[new Bt.Paragraph({border:{top:{color:"auto",style:Bt.BorderStyle.DASHED,size:4,space:1}},spacing:{before:300}}),new Bt.Paragraph({spacing:{line:0}})]}function xet(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function Aet(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function vet(n,t){return new Bt.Paragraph({children:[new Bt.ExternalHyperlink({children:[new Bt.TextRun({style:"Hyperlink",text:t||n})],link:n})]})}function yL(n){if(n.heading!=null)return`Heading${n.heading}`}function TL(n){if(n.alignment!=null){if(n.alignment==="center")return Bt.AlignmentType.CENTER;if(n.alignment==="right")return Bt.AlignmentType.RIGHT;if(n.alignment==="left")return Bt.AlignmentType.LEFT}}function Bet(n){if(n.indent)return{left:Bt.convertInchesToTwip(.3*n.indent-.2)};if(n.padding)return{left:Bt.convertInchesToTwip(.3*n.padding)}}function yet(n){return{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:n}}function Tet(n){const t=n.split(",");if(t.length!==0)return t[0].trim()}function kL(n,t){let e;e=n.inlineCode?"InlineCode":void 0,e=n.link?"Hyperlink":e;const r=n.size||t,i=r!=null?Math.floor(r*1.5+.5):void 0;return new Bt.TextRun({text:n.text,bold:n.bold||void 0,underline:n.underline?{type:Bt.UnderlineType.SINGLE}:void 0,italics:n.italics||void 0,strike:n.strike||void 0,superScript:n.superScript||void 0,subScript:n.subScript||void 0,size:i,style:e,font:n.fontFamily?Tet(n.fontFamily):void 0,shading:n.background?yet(n.background):void 0,color:n.color,highlight:set(n.highlight)})}function ket(n,t){if(n.link)return new Bt.ExternalHyperlink({children:[kL(n,t)],link:n.link})}async function RL(n,t,e,r,i){const[o]=await i(n,t,e);if(o==null)return;const s=await bL({width:r||0,height:0,src:e},o);return new Bt.ImageRun({data:o,transformation:{width:(s==null?void 0:s.width)||100,height:(s==null?void 0:s.height)||20}})}function Ret(n){if(n.heading||n.heading)return n.heading}function wet(n){if(n.align&&(n.align==="center"||n.align==="right"||n.align==="left"))return n.align}function Let(n){if(n.textOnly===!0&&n.level!=null)return n.level}async function Iet(n,t){var r;const e=[];if(n.text&&Array.isArray(n.text)){for(let i=0;i<n.text.length;i++){const o=n.text[i];if(((r=o.attributes)==null?void 0:r.box)===!0&&t){const s=await t(o);if(s){n.text.splice(i+1,0,...s);continue}}e.push(Eet(o))}return e}}function Det(n){if(n.type==="list"&&n.textOnly!==!0)return{checkbox:n.checkbox,groupId:n.groupId,ordered:!!n.ordered,level:n.level||1,start:n.start||0}}function _et(n,t){if(n.type==="embed"&&n.embedType&&Gx(n.embedType)&&n.embedData&&n.embedData.src)return n.embedData.src.split("|").map(r=>{const i=t(r),o=n.embedData[`${i}_width`],s=n.embedData[`${i}_height`];return{src:r,width:o,height:s}})}function Met(n){if(n.padding)return n.padding}function Oet(n){return!!(n.type==="embed"&&n.embedType&&Gx(n.embedType)&&n.embedData&&n.embedData.src)}async function ep(n,t,e){return{quoted:!!n.quoted,heading:Ret(n),alignment:wet(n),indent:Let(n),padding:Met(n),texts:await Iet(n,e),list:Det(n),images:_et(n,t),border:Oet(n)}}async function Uet(n,t,e,r){const i=[];if(!n.children)return[];for(const o of n.children){const s=[];for(const l of t.blocks[o])s.push(await ep(l,e,r));i.push(s)}return i}const Net=_("to-docx");function Pet(n,t){return Array(n).fill(0).map(()=>Array(t).fill(0).map(()=>({cellId:void 0,color:void 0,from:void 0,rowSpan:1,colSpan:1,width:0,originalWidth:void 0,align:void 0})))}function Fet(n,t,e,r){const i=!!n.hasColTitle,o=!!n.hasRowTitle,s=!!n.isStripeStyle,l="F5F8FB";for(let c=0;c<t;c++)for(let f=0;f<e;f++)(i&&f===0||o&&c===0||s&&c%2===1)&&(r[c][f].color=l)}function Ket(n){p(Net,n.children,"no table children");const t=n.rows,e=n.cols,r=n.colsWidth;if(r)for(let s=0;s<r.length;s++)r[s]===0&&(r[s]=100);const i=Pet(t,e);let o=0;for(let s=0;s<t;++s)for(let l=0;l<e;++l){if(i[s][l].originalWidth=r?r[l]:void 0,i[s][l].from!==void 0)continue;const c=n.children[o];o+=1,i[s][l].cellId=c,i[s][l].color=aet(n[`${c}_background`]),i[s][l].width=r?r[l]:100,i[s][l].align=n[`${c}_align`];const f=n[`${c}_rowSpan`]||1,h=n[`${c}_colSpan`]||1;if(i[s][l].rowSpan=f,i[s][l].colSpan=h,f>1||h>1){let C=0;for(let E=0;E<f;E++)for(let b=0;b<h;b++)E===0&&(C+=r?r[l+b]:80),!(E===0&&b===0)&&(i[s+E][l+b].from=[s,l]);i[s][l].width=C}}return Fet(n,t,e,i),i}const Vet=_("to-docx");function $et(n){return Array.from({length:n},()=>({cellId:void 0,originalWidth:0,width:0}))}function Het(n,t){p(Vet,n.children,"no layout children");const e=n.children.length,r=n.colsWidth;if(r)for(let o=0;o<r.length;o++)r[o]===0&&(r[o]=1/r.length);const i=$et(e);for(let o=0;o<e;++o)i[o].cellId=n.children[o],i[o].originalWidth=r[o]*t,i[o].width=r[o]*t;return i}async function jet(n,t,e,r,i,o,s,l,c,f){async function h(E){if(l&&E.type!=="_exportVirtualBlock"){const b=await l(i,o,E);if(b){await r.addDoc(n,b,f);return}}if(E.type==="text"||E.textOnly===!0){const b=await ep(E,s,c);await r.addTextBlock(b);return}if(E.type==="code"){const b=await Uet(E,e,s,c);await r.addCodeBlockObject(b);return}if(E.type==="list"&&E.textOnly!==!0){const b=await ep(E,s,c);await r.addListBlockObject(n,b);return}if(E.type==="embed"&&E.embedType){const b=E,v=b.embedData,k=b.embedType;if(Gx(k)){const w=await ep(E,s,c);await r.addImagesBlockObject(E,w,f)}else E.embedType==="hr"?r.addSeparatorBlock():E.embedType==="video"?r.addVideoPlaceholder():E.embedType==="audio"?r.addAudioPlaceholder():E.embedType==="webpage"?r.addHyperlinkParagraph(BL(v.src),v.title):r.addOtherEmbedBlock(k,E.embedData);return}if(E.type==="table"){let b=[];if(E.colsWidth)b=E.colsWidth;else{const k=E.cols;b=new Array(k);for(let w=0;w<b.length;w++)b[w]=100;E.colsWidth=b}const v=Ket(E);await r.addTableMatrix(b,v,e),r.addEmptyParagraph()}if(E.type==="_exportVirtualBlock"&&await r.addVirtualBlock(E.id,e,f),E.type==="layout"){const v=E.colsWidth.map(w=>w*f),k=Het(E,f);await r.addLayoutMatrix(v,k,e)}}function C(E){var k;const b=((k=E==null?void 0:E.embedData)==null?void 0:k.exportSpec)||(E==null?void 0:E.exportSpec);if(!b)return[E];const v=[];for(const{type:w,data:O}of b){if(w==="text"){const M={id:rt(),text:[{insert:O}],type:"text"};v.push(M);continue}if(w==="image"){const M={id:rt(),type:"embed",embedType:"image",align:"left",embedData:{src:O}};v.push(M);continue}if(w==="link"){const M={id:rt(),type:"embed",embedType:"webpage",embedData:{src:O.url,title:O.title}};v.push(M);continue}if(w==="block")for(const M of O){if(!e.blocks[M])continue;const Z={id:M,type:"_exportVirtualBlock"};v.push(Z)}}return v}for(const E of t)for(const b of C(E))!b||await h(b)}function zet(){return{listMaxInst:1,listInstMap:{},listRefMap:{},levelConfigs:[]}}const Wet=_("to-docx");class Get{constructor(t,e,r,i,o,s){m(this,"paragraphs");this.appId=t,this.docId=e,this.state=r,this.readImageFunc=i,this.convertBlocksFunc=o,this.defaultFontSize=s,this.paragraphs=[]}async addTextBlock(t){this.paragraphs.push(new Bt.Paragraph({heading:yL(t),alignment:TL(t),children:await this.paragraphsFromBlockTexts(t),indent:Bet(t)}))}async addEmptyImagePlaceHolder(){this.paragraphs.push(new Bt.Paragraph({text:`[${D.t("docx.imageExportFailed")}]`,shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}}))}async paragraphsFromBlockTexts(t){if(t.texts==null)return;const e=fet(this.defaultFontSize,t.heading),r=[];for(const i of t.texts){if(i.link){const o=ket(i,e);o&&r.push(o);continue}if(i.box&&i.box.type&&i.box.type==="br"){r.push(new Bt.TextRun({text:"",break:1}));continue}if(i.box&&i.box.type&&i.box.type==="image"){const o=await RL(this.appId,this.docId,i.box.src,i.box.width,this.readImageFunc);o&&r.push(o);continue}if(i.math){const o=await RL(this.appId,this.docId,i.math,0,this.readImageFunc);o&&r.push(o);continue}r.push(kL(i,e))}return r}async addCodeBlockObject(t){for(const e of t)for(const r of e){const i={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};this.paragraphs.push(new Bt.Paragraph({style:"Code",border:{left:{...i},right:{...i},top:{...i},bottom:{...i}},children:await this.paragraphsFromBlockTexts(r)}))}}async addListBlockObject(t,e){if(e.list==null)return;let r;const i=e.list.checkbox?`${t}-${e.list.groupId}-${e.list.checkbox}`:`${t}-${e.list.groupId}`;if(this.state.listInstMap[i])r=this.state.listInstMap[i];else if(r=this.state.listMaxInst,this.state.listMaxInst+=1,this.state.listInstMap[i]=r,e.list.start>0&&e.list.ordered){const s=`number-numbering-reference-${r}`,l=xL([e.list.level-1],e.list.start);this.state.levelConfigs.push({levels:l,reference:s,inst:r}),this.state.listRefMap[i]=s}else e.list.ordered?this.state.listRefMap[i]=bh.NUMBERING:e.list.checkbox&&e.list.checkbox==="checked"?this.state.listRefMap[i]=bh.CHECKED:e.list.checkbox&&e.list.checkbox==="unchecked"?this.state.listRefMap[i]=bh.UNCHECKED:this.state.listRefMap[i]=bh.BULLET;const o=yL(e);e.texts&&this.paragraphs.push(new Bt.Paragraph({heading:o,children:await this.paragraphsFromBlockTexts(e),numbering:{reference:this.state.listRefMap[i],level:e.list.level-1,instance:r}}))}imageDimWithBufferToImageRun(t){return new Bt.ImageRun({data:t.buffer,transformation:{width:t.width,height:t.height}})}async addImagesBlockObject(t,e,r){if(e.images==null){if(t.type==="embed"&&t.embedType==="image"){const{src:c}=t.embedData;c||this.addEmptyImagePlaceHolder()}return}const i=[],o=await Promise.all(e.images.map(async c=>{const[f,h]=await this.readImageFunc(this.appId,this.docId,c.src);if(f){const C=await bL(c,f);if(C)return C}i.push(h)}));tet(o,r,t.embedData);const s=Ztt(o,r),l={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};s.length&&this.paragraphs.push(new Bt.Paragraph({border:e.border?{left:{...l},right:{...l},top:{...l},bottom:{...l}}:void 0,alignment:TL(e)||Bt.AlignmentType.CENTER,children:s.map(c=>this.imageDimWithBufferToImageRun(c)).flatMap((c,f,h)=>c==null?[]:h.length-1!==f?[c,new Bt.TextRun({text:" "})]:c)})),i.forEach(c=>{this.addHyperlinkParagraph(c)})}addSeparatorBlock(){bet().forEach(t=>this.paragraphs.push(t))}addEmptyParagraph(){this.paragraphs.push(new Bt.Paragraph(""))}addVideoPlaceholder(){this.paragraphs.push(xet())}addAudioPlaceholder(){this.paragraphs.push(Aet())}addHyperlinkParagraph(t,e){t!=null&&this.paragraphs.push(vet(t,e))}async addTableMatrix(t,e,r){const i=t.map(o=>o!==0?o*15:1500);this.paragraphs.push(new Bt.Table({rows:await this.generateTableRows(e,r),columnWidths:i}))}async generateRowCells(t,e){const r=[];for(const i of t){const o=i.cellId;if(o===void 0)continue;const s=i.width*.9;r.push(new Bt.TableCell({children:await this.convertBlocksFunc(o,e.blocks[o],e,this.appId,this.docId,this.state,s),columnSpan:i.colSpan,rowSpan:i.rowSpan,width:{type:Bt.WidthType.DXA,size:i.width*15},shading:i.color?{fill:i.color,type:Bt.ShadingType.CLEAR,color:"auto"}:void 0}))}return r}async generateTableRows(t,e){const r=[];for(const i of t)r.push(new Bt.TableRow({children:await this.generateRowCells(i,e)}));return r}async addLayoutMatrix(t,e,r){const i=t.reduce((o,s)=>o+s,0);for(const o of e){const s=o.cellId,l=await this.convertBlocksFunc(s,r.blocks[s],r,this.appId,this.docId,this.state,i);this.paragraphs.push(...l,new Bt.Paragraph(""))}}async addDoc(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks.root,e,this.appId,this.docId,this.state,r);i&&(this.paragraphs=this.paragraphs.concat(i))}async addVirtualBlock(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks[t],e,this.appId,this.docId,this.state,r);this.paragraphs.push(...i)}async addOtherEmbedBlock(){}}class qet{constructor(t,e,r,i,o,s,l,c){m(this,"convertBlocks",async(t,e,r,i,o,s,l=720)=>{const c=new Get(i,o,s,this.readImage,this.convertBlocks,this.defaultFontSize);return await jet(t,e,r,c,i,o,this.md5HexFunc,this.getDocByBlock,this.getTextsByBox,l||720),c.paragraphs});this.templateData=t,this.docData=e,this.md5HexFunc=r,this.readImage=i,this.defaultFontSize=o,this.getDocByBlock=s,this.getTextsByBox=l,this.backgroundImageOptions=c}async convert(t,e){return this.snapshot2docx(this.docData,t,e)}async snapshot2docx(t,e,r){const i=new Bt.ImportDotx,o=this.templateData?await i.extract(this.templateData):void 0,s=t.blocks.root;p(Wet,s,"data must have blocks");const l=zet(),c=await this.convertBlocks("blocks",s,t,e,r,l),f=this.backgroundImageOptions?{default:new Bt.Header({children:[new Bt.Paragraph({children:[new Bt.ImageRun(this.backgroundImageOptions)]})]})}:{},h=new Bt.Document({numbering:{config:[...iet,...l.levelConfigs]},sections:[{headers:f,children:c,properties:{page:{size:{width:12240,height:15840},margin:{top:1440,bottom:1440,left:1440,right:1440}}}}]},{template:o});return Bt.Packer.toBlob(h)}}const Xet=_("editor-to-docx");async function Yet(n,t,e,r){const i=n.doc.buildResourceUrl(r,{withToken:!0});let o=await U4(i);if(!o)return[void 0,i];if(o.type.indexOf("/svg")!==-1){const l=await _4(o);l&&(o=new File([l],o.name))}return[await o.arrayBuffer(),i]}async function Jet(n,t,e){const r=n.editorBlocks.getBlockClass(e.type);if(r.toStandardDoc)try{return await r.toStandardDoc(n,e,t)}catch(i){Xet.error(`toStandardDoc error: ${JSON.stringify(i)}`);return}}async function Qet(n,t){const e=t.attributes,r=n.editorBoxes.getBoxClass(e.type);if(r.toStandardText)return r.toStandardText(n,e)}async function Zet(n,t){let{template:e,download:r,backgroundImageOptions:i}=t!=null?t:{};e||(e=Ytt());const o=n.doc.toJSON(),s=(C,E,b)=>Yet(n,C,E,b),l=async(C,E,b)=>Jet(n,o,b),c=async C=>Qet(n,C),h=await new qet(e,o,hm.default,s,void 0,l,c,i).convert("_appId","_docId");if(r){const C=URL.createObjectURL(h),E=document.createElement("a");E.setAttribute("download",`${O4(n)}.docx`),E.setAttribute("href",`${C}`),E.click(),E.remove()}return h}const qx=_("create-editor");async function tnt(n,t){var s,l,c,f,h,C,E,b,v,k,w,O,M,F,Z,Y;p(qx,n,"app does not exists"),t.lang&&D.setLang(t.lang),Ei.level=(s=t.logLevel)!=null?s:rl.DEBUG;const e=t.onReauth?async()=>{var Ct;const X=t.user.userId,ut=t.docId,Et=await((Ct=t.onReauth)==null?void 0:Ct.call(t,X,ut,t.permission));return{userId:X,docId:ut,permission:t.permission,appId:t.appId,token:Et,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl}}:void 0,r={auth:{appId:t.appId,docId:t.docId,userId:t.user.userId,permission:t.permission,token:t.token,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl},serverUrl:t.serverUrl,reauthFunc:e,disableLogout:t.disableLogout,onMaxUsersError:t.onMaxUsersError},i=await Ld.load(r),o=pd(n,i,{id:t.id,scrollContainer:t==null?void 0:t.scrollContainer,enableComments:t==null?void 0:t.enableComments,enableContextMenu:t==null?void 0:t.enableContextMenu,components:{blocks:[...zx,...((l=t==null?void 0:t.components)==null?void 0:l.blocks)||[]],embeds:[...Wx,...((c=t.components)==null?void 0:c.embeds)||[]],boxes:[...pL,...((f=t.components)==null?void 0:f.boxes)||[]],commandProviders:[new q0,...((h=t.components)==null?void 0:h.commandProviders)||[]],decorators:[new vg,new sE],insertions:[lC],blockHooks:[new zb,new kw,...((C=t.components)==null?void 0:C.blockHooks)||[]],textRenders:[new zS,new sb,...((E=t.components)==null?void 0:E.textRenders)||[]],options:{...t.componentsOptions}},shortcuts:[pX,VH,Xz,Tb,CS,zF,xb,JX,g0,PF,...t.shortcuts||[]],colors:["#0064FF","#EB3723","#F59300","#00A865","#F25A0A","#70A310","#009CAD","#0990D9","#8851ED","#D62069"]});if(o.editorCommandProviders.registerCommandProvider(new Ao(o)),o.input.addHandler(new KY),o.input.addHandler(new yg),o.input.addHandler(new dV),o.input.addHandler(new Vz),o.input.addHandler(new Db(o,{hideTitle:t.hideTitle,headingLevel:1,titlePlaceholder:D.t("placeholder.common.title"),contentPlaceholder:D.t("placeholder.common.content"),readonlyTitlePlaceholder:D.t("placeholder.common.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0,applyContentPlaceholder:(b=t.placeholder)==null?void 0:b.applyContentPlaceholder})),o.input.addHandler(new pg(o,(v=t.componentsOptions)==null?void 0:v.quickMenu)),o.input.addHandler(new Zb(o)),o.input.addHandler(new ox(o)),o.input.addHandler(new wg),o.input.addHandler(new Xk),o.doc.registerCallback(new VY(o)),o.addCustom("remote-cursor",()=>new RT(o)),o.addCustom("block-menu",X=>new Sw(X)),ye.isMobile||o.addCustom("editor-tooltip",()=>new zd(o)),t!=null&&t.enableComments&&o.addCustom("editor-comments",X=>new jS(X,new jtt(X))),t.enableContextMenu!==!1&&o.addCustom("editor-context-menu",X=>new ax(X)),o.addCustom("create-options",()=>new YA(o,t)),o.addCustom("drop-target",()=>new sh(o)),o.addCustom("list-to-mindmap",()=>new cg(o)),o.addCustom("list-to-mention",()=>new lJ(o)),o.addCustom("mobile-helper",()=>new SJ(o)),o.addCustom("code-caret",()=>new NH(o)),o.addCustom("image-paste-handler",()=>new Yb(o)),o.addCustom("layout-paste-handler",()=>new Ux(o,!0)),(k=t.componentsOptions)!=null&&k.mention){const X=t.componentsOptions.mention;o.addCustom("mention",()=>new w4(o,X))}if(o.addCustom("heading-collapse",()=>new kx(o)),o.addCustom(Xg,X=>new _x(X)),Su.register(o),sh.register(o),Pl.register(o),Dl.register(o),o.addListener("clickLink",(X,ut,Et)=>{var wt;if((wt=t==null?void 0:t.events)!=null&&wt.onClickLink){t.events.onClickLink(X,ut,Et);return}const Ct=Et.getAttribute("link");Ct&&(X.readonly||ut.ctrlKey||ut.metaKey)&&window.open(Ct,"_blank")}),(O=(w=t.componentsOptions)==null?void 0:w.remoteCarets)!=null&&O.onUserChanged){const X=(F=(M=t.componentsOptions)==null?void 0:M.remoteCarets)==null?void 0:F.onUserChanged;o.doc.getRemoteUsers().on("change",ut=>{X(o,ut)})}return(Y=(Z=t.componentsOptions)==null?void 0:Z.templates)!=null&&Y.templates.length&&(o.addListener("docChanged",()=>{qg(o)}),o.addListener("resize",()=>{qg(o,{reset:!0})}),setTimeout(()=>{qg(o)},100)),o.doc.registerCallback({onError:async X=>{if(X.code==="ResetDoc"){qx.error(`reset doc: ${X.message}`);const ut=await Ld.load(r);o.doc.reset(ut)}}}),o.version="2.0.4-beta.11",Ei.level===rl.DEBUG&&(window.setReauthFail=X=>{window.isReauthError=X},window.reConnect=X=>o.doc.externalDoc.client.connection.reConnect(X)),o}function ent(n){return n.toJSON!==void 0}async function nnt(n,t,e){var o,s,l,c,f,h,C,E;p(qx,n,"app does not exists");const r=ent(t)?t:new FC(t,{serverUrl:e.serverUrl||""});e.lang&&D.setLang(e.lang),Ei.level=(o=e.logLevel)!=null?o:rl.DEBUG;const i=pd(n,r,{id:e.id,scrollContainer:e==null?void 0:e.scrollContainer,components:{blocks:[...zx,...(l=(s=e.components)==null?void 0:s.blocks)!=null?l:[]],commandProviders:[new q0],decorators:[new vg,new sE],embeds:[...Wx,...((c=e.components)==null?void 0:c.embeds)||[]],boxes:[sR,S4,QS,dR,...((f=e.components)==null?void 0:f.boxes)||[]],insertions:[lC],blockHooks:[new zb,...((h=e.components)==null?void 0:h.blockHooks)||[]],textRenders:[new zS,new sb,...((C=e.components)==null?void 0:C.textRenders)||[]],options:{...e.componentsOptions}},shortcuts:[Tb,CS,xb,g0]});return i.editorCommandProviders.registerCommandProvider(new Ao(i)),i.input.addHandler(new yg),i.input.addHandler(new Db(i,{hideTitle:e.hideTitle,headingLevel:1,titlePlaceholder:D.t("placeholder.common.title"),contentPlaceholder:D.t("placeholder.common.content"),readonlyTitlePlaceholder:D.t("placeholder.local.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0})),i.input.addHandler(new pg(i,(E=e.componentsOptions)==null?void 0:E.quickMenu)),i.input.addHandler(new Zb(i)),i.input.addHandler(new ox(i)),i.input.addHandler(new wg),i.input.addHandler(new Xk),i.addCustom("block-menu",b=>new Sw(b)),ye.isMobile||i.addCustom("editor-tooltip",()=>new zd(i)),i.addCustom("image-paste-handler",()=>new Yb(i)),e!=null&&e.enableComments&&i.addCustom("editor-comments",b=>new jS(b,new ztt(b,r))),e.enableContextMenu!==!1&&i.addCustom("editor-context-menu",b=>new ax(b)),i.addCustom("heading-collapse",()=>new kx(i)),i.addListener("clickLink",(b,v,k)=>{var O;if((O=e==null?void 0:e.events)!=null&&O.onClickLink){e.events.onClickLink(b,v,k);return}const w=k.getAttribute("link");w&&(b.readonly||v.ctrlKey||v.metaKey)&&window.open(w,"_blank")}),i.addCustom(Xg,b=>new _x(b)),Su.register(i),i.version="2.0.4-beta.11",i}async function rnt(n,t,e){var h;const r=n.doc.externalDoc.client.auth,i=await w0.load({auth:r,serverUrl:e});if(!((h=i.getVersionHelper)==null?void 0:h.call(i)))throw new Error("the editor does not support to show versions");const s=n.getCustom("create-options");if(!s)throw new Error("the editor does not support to show versions");const l=s.getData(),c=new CL(l),f=n.addCustom("version-dialog",()=>new m4(i,c));return f.show(t),f}A.tippy=UI,A.AnchorBox=W3,A.AuthError=wd,A.AuthHeader=Ta,A.AutoScroll=Ff,A.BaseURLHeader=cu,A.BasicCommands=MK,A.BlockExclusiveHook=kw,A.BlockLockerHook=zb,A.BlockLockerPasteHandler=wg,A.BlockResizer=Zd,A.BrBox=$3,A.CodeBlock=XR,A.CodeLineBlock=YR,A.CodeTextDecorator=vg,A.DOC_RE_AUTH_KEYS=Xg,A.DefaultShortcuts=g0,A.DocIdError=kU,A.DocReAuthCallbacks=_x,A.DragDrop=mv,A.DrawioEmbed=oL,A.EditorBlocks=kB,A.EditorBoxes=j3,A.EditorCommandProviders=V5,A.EditorComplexBlockPosition=yi,A.EditorComplexSelectionRange=ki,A.EditorDecorators=Y3,A.EditorEmbeds=wB,A.EditorInsertions=X3,A.EditorSimpleBlockPosition=gn,A.EditorSimpleSelectionRange=vn,A.EmbedBlock=LB,A.EmbedBlockResizer=lh,A.EnforceWithDocumentTitleHandler=Db,A.EventCallbacks=Pc,A.FILL_CHAR=Y8,A.FileExtError=RU,A.GroupOrder=Qk,A.HeadingBlockScrollListener=tJ,A.ImageBox=z3,A.InlineBoxCommandProvider=hR,A.InputtingInsertion=G3,A.LayoutBlock=G4,A.LayoutBlockCaptionInputHandler=Ux,A.LocalDoc=FC,A.LogLevel=rl,A.Logger=Ei,A.MIN_DISTANCE_THRESHOLD=dv,A.ManualCloseDialog=Id,A.ManualMenu=Al,A.ManualToolbar=gu,A.MarkdownInputHandler=yg,A.MaxUserError=JC,A.Mindmap=ag,A.OnesEditorAutoSuggest=RE,A.OnesEditorCustomDataWrapper=YA,A.OnesEditorExclusiveBlock=Dl,A.OnesEditorHoveringBlock=We,A.OnesEditorIcons=dN,A.OnesEditorQuickMenu=pg,A.OnesEditorToc=gs,A.OnesEditorTocProvider=Pl,A.OnesEditorToolbar=Su,A.OnesEditorTooltip=zd,A.OnesEditorVersionsDialog=m4,A.PermissionError=R0,A.Popup=mu,A.ReAuthToolbar=N4,A.RemoteCarets=RT,A.RemoteCaretsDecorator=sE,A.RemoteCaretsInsertion=lC,A.RemoteUsers=Cd,A.RequestReloadError=Sd,A.RichText=Hn,A.ShareDBDoc=Ld,A.ShareDBDocVersionsProvider=CL,A.ShareDBServer=w0,A.SimpleCache=iv,A.StandardEmbedBlockCommands=Jb,A.TEXT_STYLE_BACKGROUND_COLOR_PREFIX=K1,A.TEXT_STYLE_COLOR_PREFIX=F1,A.TableBlock=UR,A.TableBlockCommandProvider=q0,A.TableShortcuts=Tb,A.TextBlock=ar,A.TextBox=V3,A.TextColorItem=W2,A.TextStyleShortcuts=xb,A.TocEmbed=k4,A.ZERO_WIDTH_SPACE_CHAR=_f,A.abbreviation=Im,A.addAttribute=Km,A.addClass=z,A.addCommentToBlock=Na,A.addDays=z9,A.addMetaToDoc=md,A.addMonths=j9,A.animateScrollTo=ua,A.applyPlaceholderToBlock=Jd,A.assert=p,A.autoShowHideTemplates=qg,A.bindKeyDownEvent=Bm,A.blockToDoc=_C,A.blockToHtml=uC,A.blockToMarkdown=e0,A.blockToText=sd,A.blocksToDoc=u5,A.clearAllSelection=iB,A.clientType=ye,A.cloneBlock=ao,A.cloneChildContainer=c0,A.cloneDoc=xC,A.cloneText=_3,A.commentToShareDbComment=oE,A.compareElement=xm,A.comparePosition=I1,A.complexBlockAdjustSelectionPos=Nm,A.complexBlockFindNearestChildBlock=$7,A.complexBlockGetAllChildContainers=In,A.complexBlockGetBottomChildContainers=MB,A.complexBlockGetDeepFirstChild=IB,A.complexBlockGetFirstSimpleChild=_1,A.complexBlockGetLastSimpleChild=zc,A.complexBlockGetSelectedContainers=jc,A.complexBlockGetTopChildContainers=_B,A.containerToDoc=f5,A.continuousScroll=Lv,A.convertBlockFrom=Om,A.convertImageFileToPng=_4,A.convertImageSrcToPng=BJ,A.converterIntercept=Bg,A.copyBlockAttributes=ay,A.copyResourcesFromDoc=PC,A.createBlockAnchor=Qo,A.createBlockCaretAnchor=UB,A.createBlockContentElement=al,A.createBlockElement=Jv,A.createBlockSimpleDocRange=Ym,A.createBlockSimpleRange=Ae,A.createBoxContentElement=tB,A.createBoxElement=Qv,A.createBoxOp=D3,A.createChildContainer=yB,A.createComplexBlockPosition=De,A.createComplexDocPos=N3,A.createComplexDocRange=Z8,A.createContainer=Jc,A.createContainerElement=g1,A.createDeleteOps=w3,A.createEditor=pd,A.createEditorSelectionRange=pn,A.createElement=B,A.createEmptyContainer=Sr,A.createEmptyDoc=rs,A.createEmptyTextBlockData=qm,A.createExpandedRange=Em,A.createIconButton=jo,A.createImage=Xp,A.createInsertOps=Wm,A.createInsertionContentElement=rB,A.createInsertionElement=eB,A.createLocalEditor=nnt,A.createOnesEditor=tnt,A.createRange=ov,A.createRichText=Aa,A.createRootContainer=BB,A.createSimpleBlockPosition=mt,A.createSimpleDocPos=U3,A.createTextBlockData=oo,A.createTextButton=_a,A.createTextOp=ti,A.createTextWithReplaceSoftReturn=Q1,A.daysAfter=c1,A.deleteText=tC,A.diffDays=W9,A.disablePageScroll=s1,A.docToHtml=ry,A.docToHtmlFragment=ld,A.docToMarkdown=iy,A.docToText=hl,A.downloadImageToFile=U4,A.downloadObjectToFile=Fx,A.downloadSvgToString=Y4,A.editLink=$d,A.editorAddComment=lX,A.editorAddTextAttribute=by,A.editorAutoInsertBlock=cy,A.editorBreakTextBlock=nu,A.editorClearCompositionText=mC,A.editorClearSelectedContents=s0,A.editorCopyBlock=UC,A.editorCopyDoc=m0,A.editorDeleteBlock=CC,A.editorDeleteBlockText=gC,A.editorDeleteBlockWithoutChildren=i0,A.editorDeleteChildContainer=J_,A.editorDeleteChildContainers=uy,A.editorFocusToBlock=bC,A.editorFocusToEnd=pM,A.editorGetBlockData=so,A.editorGetBlockText=Jn,A.editorGetBlockTextEx=Qm,A.editorGetBoxData=F3,A.editorHandleKeyboardEvent=B5,A.editorInsertBlock=eu,A.editorInsertBoxToBlock=sy,A.editorInsertDoc=Cy,A.editorInsertDocAt=AC,A.editorInsertText=hC,A.editorInsertTextToBlock=oy,A.editorInsertTextToBlockEx=dC,A.editorMergeTextBlock=fy,A.editorMoveDown=Dy,A.editorMoveEnd=wC,A.editorMoveHome=$y,A.editorMoveLeft=Sy,A.editorMoveLineEnd=Yy,A.editorMoveLineHome=Xy,A.editorMovePageDown=n5,A.editorMovePageUp=e5,A.editorMoveRight=Ly,A.editorMoveUp=Iy,A.editorMoveWordEnd=Fy,A.editorMoveWordLeft=Py,A.editorRangeClearColor=Ay,A.editorRangeGetColor=vy,A.editorRangeSetColor=xy,A.editorRemoveTextAttribute=eM,A.editorReplaceBlockText=l0,A.editorReplaceContainer=Ey,A.editorRunOnce=x0,A.editorSelectAll=LC,A.editorSelectContainer=f0,A.editorSelectDown=_y,A.editorSelectEnd=SC,A.editorSelectHome=Hy,A.editorSelectLeft=My,A.editorSelectLineEnd=qy,A.editorSelectLineHome=Gy,A.editorSelectPageDown=o5,A.editorSelectPageUp=i5,A.editorSelectRight=Oy,A.editorSelectUp=Uy,A.editorSelectWordEnd=Vy,A.editorSelectWordLeft=Ky,A.editorSetTextColor=ru,A.editorShowFindDialog=ZG,A.editorToDocx=Zet,A.editorUpdateBlockData=a0,A.editorUpdateCompositionText=ly,A.editorUpdateEmbedData=gy,A.enablePageScroll=l1,A.escapeHtmlText=ym,A.escapeRegExp=h1,A.escapeSpace=R9,A.exclusiveBlock=$b,A.executeBlockCommand=gB,A.executeEmbedBlockCommand=mB,A.executeRangeCommand=K5,A.fileToDataUrl=Vc,A.findAfterOffsetNotType=iC,A.findAllText=IC,A.findBlockByIndex=Hv,A.findEventTargetBlock=av,A.findInsertionById=nB,A.findNextOffset=b_,A.findNextVisibleSimpleBlock=z5,A.findPrevOffset=E_,A.findPrevOffsetNotType=rC,A.findPrevSimpleBlockBeforeChildContainer=DB,A.findPrevVisibleSimpleBlock=j5,A.findTarget=Kc,A.findWordEnd=sC,A.findWordLeft=oC,A.format=Kf,A.formatBytes=Iv,A.formatDate=f1,A.fragmentToHtml=Tv,A.fromBase64=Of,A.fromBase64ToBlob=i1,A.fromBase64ToUint8Array=P9,A.fromDocRange=ul,A.fromNowString=d1,A.genId=rt,A.generateEditorContainerId=m1,A.getAllChildBlocks=N1,A.getAllQuickMenuItems=bb,A.getAllSelectedBlocks=no,A.getAttributesAt=Xc,A.getBlockBackground=E1,A.getBlockByIndex=ol,A.getBlockCaretRect=cl,A.getBlockClass=jt,A.getBlockClassByType=sl,A.getBlockClientRects=qo,A.getBlockCommandsWithHook=y1,A.getBlockContent=$t,A.getBlockHeading=Gf,A.getBlockId=dt,A.getBlockIndex=St,A.getBlockInfo=ih,A.getBlockKind=vi,A.getBlockMinWidth=lB,A.getBlockNearestRangeFromPoint=O1,A.getBlockOptions=Wf,A.getBlockPath=Xo,A.getBlockProperties=uB,A.getBlockRangeFromPoint=Pm,A.getBlockStyles=i7,A.getBlockTextLength=bt,A.getBlockTools=xe,A.getBlockType=Tt,A.getBoxContent=x1,A.getBoxId=Zv,A.getBoxTypeFromElement=jf,A.getChildBlockCount=Ai,A.getChildBlocks=be,A.getChildOffset=fl,A.getClosestContainerByCondition=sB,A.getColorFromAttributes=$1,A.getColorFromContent=Dm,A.getComplexBlockClass=Xr,A.getContainerBlockOverrideOptions=T1,A.getContainerBlockPath=xB,A.getContainerBlocks=Vv,A.getContainerBlocksElement=$f,A.getContainerById=qr,A.getContainerId=ft,A.getContainerMinWidth=S1,A.getContainerToolsElement=e7,A.getContainerWidth=TB,A.getDistanceSquare=il,A.getElementFromPoint=Ne,A.getElementOffset=Df,A.getElementScale=Gr,A.getEmbedType=Ge,A.getExistsBlockTools=_m,A.getExistsContainerById=Vf,A.getFileExt=Pf,A.getFirstChildBlock=Pe,A.getFirstClientRect=bm,A.getHeadingBlockChildren=pa,A.getHeadingMenuOptions=hb,A.getHorizontalPadding=Jp,A.getInsertionContent=A1,A.getLastChildBlock=en,A.getLastClientRect=aa,A.getListAllNextBrothers=yu,A.getLogger=_,A.getNextBlock=ae,A.getNextHiddenBlocks=EB,A.getNextValidOffset=ba,A.getNextVisibleBlock=Jr,A.getOffsetFromPoint=Yp,A.getOffsetInfoAfter=rd,A.getOffsetInfoBefore=Zm,A.getOpAt=a3,A.getOpLength=Fm,A.getParentBlock=Q,A.getParentBlockExcludeSelf=ma,A.getParentBox=b1,A.getParentContainer=ot,A.getPrevBlock=He,A.getPrevValidOffset=dl,A.getPrevVisibleBlock=Yr,A.getRangeCommands=P5,A.getReferenceClientRect=Tk,A.getRootBlock=zf,A.getScrollContainer=tn,A.getSpecialBlockCommands=fB,A.getStandardEmbedBlockProperties=Qb,A.getTextAfterOffset=p_,A.getTextAttributes=fC,A.getTextBeforeOffset=C_,A.getTextBlockChild=Yf,A.getTextBlockClass=zv,A.getTextBlockContentChildTextLength=Zr,A.getTextBlockContentChildType=bB,A.getTextBlockContentChildren=eo,A.getTextLength=$n,A.getTextOpLength=P1,A.getTextWidth=wm,A.getToolbar=eg,A.handleBlockElementUpdated=aB,A.hasAltOnly=_9,A.hasClass=_t,A.hasCtrlOrCmd=xv,A.hasCtrlOrCmdOnly=D9,A.hashCode=Pv,A.hideBlock=Yv,A.hideTemplates=D4,A.htmlToFragment=Rm,A.i18n=D,A.includeBigTable=$N,A.injectDocToHtmlFragment=hd,A.injectStyle=fv,A.inputActions=UM,A.insertEmptyBlock=l7,A.insertEmptyEmbedBlock=k1,A.insertText=ns,A.intersectionCommands=gO,A.isBackspace=vv,A.isBlock=Wo,A.isBlockLocked=Rg,A.isBlockLockedByOthers=jb,A.isBlockLockedBySelf=oh,A.isBlockTools=Xv,A.isBox=Mm,A.isBoxOp=Zo,A.isCJK=Ev,A.isChildContainer=xi,A.isChildNode=Ee,A.isCodeBlock=Pi,A.isCollapsedHeadingBlock=kr,A.isCollapsedRange=Q8,A.isColumnsBlock=hB,A.isComplexBlockPosition=Ca,A.isComplexKindBlock=Nt,A.isContainer=to,A.isContainerSelectedAllChildBlocks=s5,A.isControlEvent=da,A.isDelete=O9,A.isDraggingFiles=Sm,A.isElementVisible=vm,A.isEmbedBlock=me,A.isEmptyContainer=Jf,A.isEmptyDoc=eC,A.isEmptyTextBlock=Te,A.isEmptyTextBlockWithoutCompositionText=Yd,A.isEnterOnly=Av,A.isEscape=km,A.isExclusiveBlock=rh,A.isExpandedHeadingBlock=CB,A.isFirefox=Lf,A.isFirstChildBlockInComplexBlock=V7,A.isHeadingBlock=an,A.isHighSurrogate=B9,A.isInBlock=v1,A.isInBlockTools=Hc,A.isLayoutBlock=K4,A.isLetter=Cv,A.isLowSurrogate=y9,A.isMatchShortcut=Qi,A.isMoveForward=L9,A.isNavigationEvent=S9,A.isNavigationKey=bv,A.isNodeRemoved=If,A.isNumber=pv,A.isPrintableKey=n1,A.isRootBlock=Qr,A.isRootContainer=te,A.isSafari=la,A.isSameDay=u1,A.isSelectBoxOnly=Ni,A.isShiftEnter=M9,A.isShiftTab=N9,A.isShortcutEvent=I9,A.isSimpleBlock=r7,A.isSimpleBlockPosition=Ti,A.isSimplePos=O3,A.isSimpleRange=Xm,A.isSpace=Tm,A.isTab=U9,A.isTextBlockContentBoxChild=Rr,A.isTextBlockContentChild=qf,A.isTextBlockContentInsertionChild=Jo,A.isTextBlockContentTextChild=Xf,A.isTextKindBlock=at,A.isTextKindBlockType=Hf,A.isTitleBlock=Go,A.isToday=Dv,A.isValidOffset=lr,A.isVisibleBlock=ll,A.isYesterday=_v,A.loadJs=lv,A.loadJsPromise=ca,A.lockers=bi,A.mergeCommands=tg,A.mergeDocs=va,A.mergeOps=Z1,A.mergeText=q8,A.multiSplitText=u3,A.overflowText=Mv,A.parseShortcut=Bv,A.patchNode=Uf,A.pointInRect=fa,A.rangeAddAttribute=td,A.rangeGetTextColor=C3,A.rangeRemoveAttribute=qc,A.rangeSetTextColor=m3,A.rangeTransformText=d3,A.registerDragDrop=t1,A.removeAttribute=V1,A.removeClass=lt,A.removeLastBr=j8,A.removePlaceholderFromBlock=QR,A.removeStyle=uv,A.replaceAll=G9,A.replaceAllCaseInsensitive=q9,A.replaceAllText=a5,A.replaceText=Gm,A.requestDownload=Lm,A.resetListStart=ku,A.scrollIntoView=od,A.scrollable=Sv,A.selectFile=$c,A.selectedBlockToDoc=d0,A.selectionToDoc=iu,A.setAttributes=Am,A.setClipboardData=Nf,A.setClipboardDataByEvent=V9,A.setColorToAttributes=g3,A.setDataset=Qp,A.setDefaultCursor=Mf,A.setStyles=Zp,A.shareDBCommentToDocObject=iE,A.shareDBDocCommentToComment=TT,A.shortcutToDisplayText=mn,A.showBlock=C1,A.showDocVersions=rnt,A.showTemplates=Ix,A.splitText=sr,A.splitToThree=Cn,A.stringToDataUrl=o1,A.stringToObjectUrl=a1,A.subText=f3,A.textNodeOffsetFromPoint=sv,A.titleFromEditor=O4,A.toBase64URL=Zi,A.toMindmap=lg,A.toPlainText=Se,A.toPlainTextKeepLength=nC,A.trimChar=e1,A.unexclusiveBlock=Hb,A.unicodeLength=T9,A.unicodeSubstr=k9,A.updateBlockSelection=oB,A.updateOpAttributes=M3,A.updateTextBlockContent=g_,A.updateUrl=r1;for(const n in $e)n!=="default"&&!A.hasOwnProperty(n)&&Object.defineProperty(A,n,{enumerable:!0,get:()=>$e[n]});Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});