@ebl-vue/editor-full 2.31.51 → 2.31.54
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.mjs +476 -451
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--color-border: #EFF0F1}.ebl-editor{cursor:text;font-size:16px;font-weight:400;background-color:#fff;height:100%;overflow:auto;position:relative;padding-top:15px}.ebl-editor.outline{padding-right:280px}.ebl-editor.outline .codex-editor{-webkit-box-flex:1;-ms-flex:1;flex:1}@media (max-width:1240px){.ebl-outline{display:none}.ebl-editor.outline{padding-right:0}}@media (min-width:1240px){.ebl-editor.readonly .ce-block__content{max-width:100%;padding-left:100px;padding-right:100px}}.ce-toolbar,.ce-inline-toolbar{z-index:1000}.ce-toolbar__plus{border:1px solid #EFF0F1}.ce-toolbar .ce-popover__items,.ce-popover-clone .ce-popover__items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.ce-toolbar .ce-popover__items .ce-popover-item,.ce-popover-clone .ce-popover__items .ce-popover-item{position:relative}.ce-toolbar .ce-popover__items .ce-popover-item__title,.ce-popover-clone .ce-popover__items .ce-popover-item__title{display:none}.ce-toolbar .ce-popover-item-html,.ce-toolbar .ce-popover-item-separator,.ce-toolbar .ce-popover-item[data-item-name=convert-to],.ce-popover-clone .ce-popover-item-html,.ce-popover-clone .ce-popover-item-separator,.ce-popover-clone .ce-popover-item[data-item-name=convert-to]{width:100%}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting],.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting]{width:auto;overflow:hidden}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting-start-with],.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting-start-with]{border-radius:6px;padding:3px}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting-start-with]:hover,.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting-start-with]:hover{background-color:#f8f8f8}.ce-toolbar .ce-popover-item[data-item-name=convert-to] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=convert-to] .ce-popover-item__title{display:block}.ce-toolbar .ce-popover-item[data-item-name=add-below],.ce-popover-clone .ce-popover-item[data-item-name=add-below]{width:100%}.ce-toolbar .ce-popover-item[data-item-name=add-below] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=add-below] .ce-popover-item__title{display:block}.ce-toolbar .ce-popover-item[data-item-name=list-setting],.ce-popover-clone .ce-popover-item[data-item-name=list-setting]{width:100%}.ce-toolbar .ce-popover-item[data-item-name=list-setting] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=list-setting] .ce-popover-item__title{display:block}.ce-popover--inline .ce-popover-item-html{padding:0 2px}.ce-inline-toolbar .ce-popover__items{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.ce-inline-toolbar .ce-popover__items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.ce-inline-toolbar .ce-popover__items .ce-popover-item__title{display:none}.ebl-editor ::-webkit-scrollbar{width:6px;height:6px}.ebl-editor ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-editor ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-editor ::-webkit-scrollbar-thumb:hover{background:#555}.cdx-notifies{left:50%!important}.cdx-notifies{-webkit-transform:translateX(-50%);transform:translate(-50%);top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ebl-er-doc-outline-item{padding:7px 24px;cursor:pointer;white-space:normal;word-wrap:break-word}.ebl-er-doc-outline-item:hover{background-color:#f6f6f6}.ebl-er-doc-outline-item.selected{background-color:#ebebeb}.ebl-outline .level_1{padding-left:24px}.ebl-outline .level_2{padding-left:42px}.ebl-outline .level_3{padding-left:60px}.ce-popover--inline .ce-popover--nested .ce-popover__container{width:-webkit-min-content!important;width:-moz-min-content!important;width:min-content!important;min-width:0!important;min-width:initial!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:-webkit-max-content;width:-moz-max-content;width:max-content}.editorjs__color-selector-container{display:grid;grid-gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.editorjs__color-selector__container-item:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.cel-inline-bold{font-weight:700}.cel-inline-strikethrough{-webkit-text-decoration:line-through;text-decoration:line-through}.cel-inline-italic{font-style:italic}.cel-inline-code{margin-left:2px;margin-right:2px;background-color:#f5f6f7;border:1px solid #dee0e3;border-color:#dee0e3;border-width:1px 0;border-radius:4px;padding:1px 5px 1px 4px}.cel-inline-underline{-webkit-text-decoration:underline;text-decoration:underline}.cel-inline-mark{background-color:#ff0;padding:2px}.cel-inline-link-input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:5px}.cel-inline-link-input{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#f8f8f8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;font-size:14px;line-height:22px;outline:none;margin:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:500;font-family:inherit}.cel-inline-link-input-btn{width:50px;border-radius:5px;background-color:#161c27;color:#fff;border:none;cursor:pointer}.cel-inline-link-input-btn.disabled{opacity:.4;cursor:not-allowed}.cel-fake-background{background-color:#a8d6ff}.editorjs__color-selector__input{width:1px;height:1px;opacity:0}.editorjs__color-selector__container-item-none{background-color:transparent;border:1px solid #e6e6e6;position:relative}.editorjs__color-selector__container-item-none:before{content:"";position:absolute;top:50%;left:50%;width:1px;height:35px;background-color:#e6e6e6;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.cel-inline-gray-text{color:#646a73}.cel-inline-pink-text{color:#d83931}.cel-inline-orange-text{color:#de7802}.cel-inline-yellow-text{color:#dc9b04}.cel-inline-green-text{color:#2ea121}.cel-inline-blue-text{color:#245bdb}.cel-inline-purple-text{color:#6425d0}.ebl-er-doc{font-family:var(--font-family);font-size:16px;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-header{height:var(--ebl-er-header-height);-webkit-box-sizing:border-box;box-sizing:border-box;position:sticky;top:0;z-index:10}.ebl-er-footer{height:var(--ebl-er-footer-height);-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;min-height:calc(100vh - var(--ebl-er-header-height))}.ebl-er-doc-menu{width:var(--ebl-er-doc-menu-width);-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height)}.ebl-er-doc-menu-content{-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-doc-content{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;max-width:calc(100% - var(--ebl-er-doc-menu-width));-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.ebl-er-doc-content-container{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 50px 50px;width:100%;overflow-x:hidden;white-space:normal;word-wrap:break-word}.ebl-er-doc-content-inner-wrap{margin:0 auto}.ebl-er-doc-content-inner .ce-block{width:100%}.ebl-er-doc-outline{width:280px;-webkit-box-sizing:border-box;box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height);overflow:auto;padding:12px}.ebl-er-doc-pre-next{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:33px 0}@media (max-width:960px){.ebl-er-doc-outline{display:none}}.ebl-er-doc ::-webkit-scrollbar{width:6px;height:6px}.ebl-er-doc ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-er-doc ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-er-doc ::-webkit-scrollbar-thumb:hover{background:#555}.ce-el-link-wrapper{position:absolute;z-index:1000;width:auto;max-width:300px;height:46px;padding:6px 20px;border:1px solid #eff0f1;border-radius:6px;background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ce-el-link-input{border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;background-color:#f8f8f8;font-size:12px;line-height:22px;margin:0;-webkit-box-flex:1;-ms-flex:1;flex:1;width:260px}.ce-el-link-input.ce-el-link__noedit{display:none}.ce-el-link-btn-wrap{width:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ce-el-link-btn{width:50px;background-color:#161c27;color:#fff;border-radius:6px;margin-left:5px;display:block}.ce-el-link-btn.ce-el-link__noedit{display:none}.ce-el-link-icon-btn{width:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:5px;cursor:pointer;display:none}.ce-el-link-icon-btn.ce-el-link__noedit{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-el-link-input-text{padding-right:20px;display:none}.ce-el-link-input-text.ce-el-link__noedit{display:block}.ce-block--drop-target .ce-block__content:before{content:"";position:absolute;top:50%;left:-20px;margin-top:-1px;height:8px;width:8px;border:solid #a0a0a0;border-width:1px 1px 0 0;-webkit-transform-origin:right;transform-origin:right;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ce-block--drop-target .ce-block__content:after{background:none}.ce-header{padding:15px 0 3px;margin:0;line-height:1.25;outline:none}.ce-header p,.ce-header div{padding:0!important;margin:0!important}.ce-tune-alignment--right{text-align:right}.ce-tune-alignment--center{text-align:center}.ce-tune-alignment--left{text-align:left}.ce-paragraph{line-height:2!important}.ce-paragraph{outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}.ce-editorjs-x-shiki{border-radius:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:10px 0;border:2px solid transparent;position:relative}.ce-editorjs-x-shiki.editable:hover{border:2px solid #C0C0C0}.ce-editorjs-x-shiki__lang{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:8px}.ce-editorjs-x-shiki__code{position:relative;float:left;min-width:100%;overflow:hidden;height:auto;min-height:60px}.ce-editorjs-x-shiki__code__dragHandler{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:-5px;cursor:ns-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:8px;width:60px;background-color:silver;border-radius:5px;display:none}.ce-editorjs-x-shiki:hover .ce-editorjs-x-shiki__code__dragHandler{display:block}.ce-editorjs-x-shiki__selector{display:-webkit-box;display:-ms-flexbox;display:flex;gap:15px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom-style:solid;border-color:#9ca3af0d;border-bottom-width:1px;padding:0 8px 8px}.ce-editorjs-x-shiki__selector-language,.ce-editorjs-x-shiki__selector-theme{font-size:13px;font-family:inherit}.ce-editorjs-x-shiki__selector-language{width:90px}.ce-editorjs-x-shiki__selector select{border:none;outline:none}.ce-editorjs-x-shiki__span{position:relative;z-index:0;padding:20px 20px 20px 55px;margin:0;white-space:pre;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__span code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea{all:unset;white-space:pre;background-color:transparent;position:absolute;padding:20px 20px 20px 55px;inset:0;color:transparent;z-index:0;font-size:13px;caret-color:#999;resize:none;border:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea::-moz-selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__textarea::selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__copy{width:24px;height:24px;cursor:pointer;position:relative;margin-right:0}.ce-editorjs-x-shiki__copy_tip{font-size:12px;width:60px;margin-left:-20px;background-color:#0c0c0c;color:#ececec;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;z-index:1;top:125%;-webkit-transition:opacity .3s;transition:opacity .3s;visibility:hidden;opacity:0}.ce-editorjs-x-shiki__copy_tip:after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #0c0c0c transparent}.ce-editorjs-x-shiki__copy_tip.visible{visibility:visible;opacity:1}.ce-editorjs-x-shiki__span.shiki .line:before{content:attr(data-line);width:40px;display:inline-block;text-align:right;color:#888;position:absolute;left:0}.ce-editorjs-x-shiki__code ::-webkit-scrollbar{width:8px;height:8px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-track{background:#22272e;border-radius:1px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:2px solid #22272e}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb:hover{background:#555}.cdx-quote{overflow:hidden;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;word-wrap:break-word;word-break:break-all}.cdx-quote blockquote{margin:0}.cdx-block-quote{border:solid #acacac;border-width:0 0 0 3px;-webkit-box-shadow:none;box-shadow:none;color:#666;line-height:1.6em;padding:1px 0 0 12px}.ce-delimiter__line__wrapper{height:24px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ce-delimiter__line{-webkit-box-flex:1;-ms-flex:1;flex:1;height:2px;background-color:#eff0f1}.cdx-list{margin:0;padding:0;outline:none;display:grid;counter-reset:item;grid-gap:var(--spacing-s);padding:var(--spacing-xs);--spacing-s: 8px;--spacing-xs: 6px;--list-counter-type: numeric;--radius-border: 5px;--checkbox-background: #fff;--color-border: #C9C9C9;--color-bg-checked: #369FFF;--line-height: 1.45em;--color-bg-checked-hover: #0059AB;--color-tick: #fff;--size-checkbox: 1.2em}.cdx-list ol{padding-left:0}.cdx-list__item{line-height:var(--line-height);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:"checkbox content" ". child"}.cdx-list__item-children{display:grid;grid-area:child;grid-gap:var(--spacing-s);padding-top:var(--spacing-s)}.cdx-list__item [contenteditable]{outline:none}.cdx-list__item-content{word-break:break-word;white-space:pre-wrap;grid-area:content;padding-left:var(--spacing-s)}.cdx-list__item:before{counter-increment:item;white-space:nowrap}.cdx-list-ordered .cdx-list__item:before{content:counters(item,".",var(--list-counter-type)) "."}.cdx-list-ordered{counter-reset:item}.cdx-list-unordered{padding-left:0}.cdx-list-unordered .cdx-list__item:before{content:"•"}.cdx-list-checklist .cdx-list__item:before{content:""}.cdx-list__settings .cdx-settings-button{width:50%}.cdx-list__checkbox{padding-top:calc((var(--line-height) - var(--size-checkbox)) / 2);grid-area:checkbox;width:var(--size-checkbox);height:var(--size-checkbox);display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}.cdx-list__checkbox svg{opacity:0;height:var(--size-checkbox);width:var(--size-checkbox);left:-1px;top:-1px;position:absolute}@media (hover: hover){.cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg{opacity:1}}.cdx-list__checkbox--checked{line-height:var(--line-height)}@media (hover: hover){.cdx-list__checkbox--checked:not(.cdx-list__checkbox--checked--no-hover):hover .cdx-checklist__checkbox-check{background:var(--color-bg-checked-hover);border-color:var(--color-bg-checked-hover)}}.cdx-list__checkbox--checked .cdx-list__checkbox-check{background:var(--color-bg-checked);border-color:var(--color-bg-checked)}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg{opacity:1}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg path{stroke:var(--color-tick)}.cdx-list__checkbox--checked .cdx-list__checkbox-check:before{opacity:0;visibility:visible;-webkit-transform:scale(2.5);transform:scale(2.5)}.cdx-list__checkbox-check{cursor:pointer;display:inline-block;position:relative;margin:0 auto;width:var(--size-checkbox);height:var(--size-checkbox);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:var(--radius-border);border:1px solid var(--color-border);background:var(--checkbox-background)}.cdx-list__checkbox-check:before{content:"";position:absolute;inset:0;border-radius:100%;background-color:var(--color-bg-checked);visibility:hidden;pointer-events:none;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:opacity .4s,-webkit-transform .4s ease-out;transition:opacity .4s,-webkit-transform .4s ease-out;transition:transform .4s ease-out,opacity .4s;transition:transform .4s ease-out,opacity .4s,-webkit-transform .4s ease-out}.cdx-list__checkbox-check--disabled{pointer-events:none}.cdx-list-start-with-field{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;overflow:hidden;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cdx-list-start-with-field--invalid{background:#ffeced;border:1px solid #E13F3F}.cdx-list-start-with-field:hover{background-color:#f8f8f8}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input{color:#e13f3f}.cdx-list-start-with-field__startlabel{width:70px;font-size:14px}.cdx-list-start-with-field__input-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden}.cdx-list-start-with-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;line-height:22px;-webkit-box-flex:1;-ms-flex:1;flex:1;border:1px solid rgba(226,226,229,1);border-radius:6px;padding:0 10px;width:50px;text-align:center}.cdx-list-start-with-field__input::-webkit-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::-moz-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input:-ms-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::-ms-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::placeholder{color:var(--grayText);font-weight:500}.cdx-alert{position:relative;padding:10px;border-radius:5px;margin-bottom:10px;margin-top:10px}.cdx-alert-primary{background-color:#ebf8ff;border:1px solid #4299e1;color:#2b6cb0}.cdx-alert-secondary{background-color:#f7fafc;border:1px solid #cbd5e0;color:#222731}.cdx-alert-info{background-color:#e6fdff;border:1px solid #4cd4ce;color:#00727c}.cdx-alert-success{background-color:#f0fff4;border:1px solid #68d391;color:#2f855a}.cdx-alert-warning{background-color:#fffaf0;border:1px solid #ed8936;color:#c05621}.cdx-alert-danger{background-color:#fff5f5;border:1px solid #fc8181;color:#c53030}.cdx-alert-light{background-color:#fff;border:1px solid #edf2f7;color:#1a202c}.cdx-alert-dark{background-color:#2d3748;border:1px solid #1a202c;color:#d3d3d3}.cdx-alert-align-left{text-align:left}.cdx-alert-align-center{text-align:center}.cdx-alert-align-right{text-align:right}.cdx-alert__message{outline:none}.cdx-alert [contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}.cdx-alert [contentEditable=true][data-placeholder]:empty:before{opacity:1}.cdx-alert [contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #background{fill:#ebf8ff;stroke:#4299e1}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #content{fill:#2b6cb0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #background{fill:#f7fafc;stroke:#cbd5e0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #content{fill:#222731}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #background{fill:#e6fdff;stroke:#4cd4ce}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #content{fill:#00727c}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #background{fill:#f0fff4;stroke:#68d391}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #content{fill:#2f855a}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #background{fill:#fffaf0;stroke:#ed8936}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #content{fill:#c05621}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #background{fill:#fff5f5;stroke:#fc8181}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #content{fill:#c53030}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #background{fill:#fff;stroke:#edf2f7}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #content{fill:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #background{fill:#2d3748;stroke:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #content{fill:#d3d3d3}.cdx-alert_setting__icon_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.cdx-alert_setting__icon_wrapper_align{margin-top:10px}.cdx-alert_setting__icon{display:inline-block;width:24px;height:24px;text-align:center;line-height:24px;cursor:pointer}.cdx-alert_setting__icon_active{opacity:.3}.ce-popover-indent-item{cursor:default!important}.ce-popover-indent-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px}.ce-popover-indent-item[version^="2.26"]{gap:10px}.ce-popover-indent-item:hover{background-color:transparent!important}.ce-popover-indent-item .ce-popover-item__icon{width:26px;height:26px;cursor:pointer;will-change:background-color,color;transition:.3s background-color,.3s color;padding:0;border-width:0px;color:#000;background-color:#fff;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;-webkit-transition:.3s background-color,.3s color;-moz-transition:.3s background-color,.3s color;-ms-transition:.3s background-color,.3s color;-o-transition:.3s background-color,.3s color}.ce-popover-indent-item .ce-popover-item--disabled{color:#707684;opacity:.3;cursor:default}.ce-popover-indent-item .ce-popover-item__icon:focus{outline:none}.ce-popover-indent-item[version^="2.26"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.27"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.28"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.29"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.26"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.27"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.28"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.29"] .ce-popover-item__icon{box-shadow:0 0 0 1px #c9c9cc7a!important;-webkit-box-shadow:0 0 0 1px rgba(201,201,204,.48)!important}.ce-popover-indent-item[version^="2.26"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.27"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.28"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.29"] .ce-popover-item__icon:hover{background-color:#eff2f5}.ce-highlight-indent{display:inline-block;height:1.6em;top:50%;position:absolute;transform:translateY(-50%);-webkit-transform:translate(0px,-50%);-moz-transform:translate(0px,-50%);-ms-transform:translate(0px,-50%);-o-transform:translate(0px,-50%)}.ce-popover-indent-item[version^="2.3"] .ce-popover-item__title{margin-left:4px}.tc-wrap{--color-background: #f9f9fb;--color-text-secondary: #7b7e89;--color-border: #e8e8eb;--cell-size: 34px;--toolbox-icon-size: 18px;--toolbox-padding: 6px;--toolbox-aiming-field-size: calc(var(--toolbox-icon-size) + var(--toolbox-padding)*2);--col-width: 100px 100px 100px;position:relative;height:100%;margin-top:var(--toolbox-icon-size);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-grid;z-index:0}.tc-wrap svg{vertical-align:top}@media print{.tc-wrap{border-left-color:var(--color-border);border-left-style:solid;border-left-width:1px}}@media print{.tc-wrap .tc-row:after{display:none}}.tc-table{position:relative;width:100%;height:100%;display:grid;font-size:14px;border-top:1px solid var(--color-border);border-left:1px solid var(--color-border);line-height:1.4;overflow-x:auto}.tc-table:after{width:calc(var(--cell-size));height:100%;left:calc(var(--cell-size)*-1);top:0}.tc-table:after,.tc-table:before{position:absolute;content:""}.tc-table:before{width:100%;height:var(--toolbox-aiming-field-size);top:calc(var(--toolbox-aiming-field-size)*-1);left:0}.tc-table--heading .tc-row:first-child{font-weight:600;border-bottom:2px solid var(--color-border);position:sticky;top:0;z-index:2;background:var(--color-background)}.tc-table--heading .tc-row:first-child [contenteditable]:empty:before{content:attr(heading);color:var(--color-text-secondary)}.tc-table--heading .tc-row:first-child:after{bottom:-2px;border-bottom:2px solid var(--color-border)}.tc-add-column,.tc-add-row{display:-webkit-box;display:-ms-flexbox;display:flex;color:var(--color-text-secondary)}@media print{.tc-add{display:none}}.tc-add-column{display:grid;border-top:1px solid var(--color-border);grid-auto-rows:var(--cell-size);-webkit-box-align:center;-ms-flex-align:center;align-items:center;justify-items:center}.tc-add-column svg{padding:5px;position:sticky;top:0;background-color:var(--color-background)}.tc-add-column--disabled{visibility:hidden}@media print{.tc-add-column{display:none}}.tc-add-row{height:var(--cell-size);-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:4px;position:relative}.tc-add-row--disabled{display:none}.tc-add-row:before{content:"";position:absolute;right:calc(var(--cell-size)*-1);width:var(--cell-size);height:100%}@media print{.tc-add-row{display:none}}.tc-add-column,.tc-add-row{-webkit-transition:0s;transition:0s;cursor:pointer;will-change:background-color}.tc-add-column:hover,.tc-add-row:hover{-webkit-transition:background-color .1s ease;transition:background-color .1s ease;background-color:var(--color-background)}.tc-add-row{margin-top:1px}.tc-add-row:hover:before{-webkit-transition:.1s;transition:.1s;background-color:var(--color-background)}.tc-row{display:grid;grid-template-columns:var(--col-width);position:relative;border-bottom:1px solid var(--color-border)}.tc-row--selected{background:var(--color-background)}.tc-row--selected:after{background:var(--color-background)}.tc-cell{border-right:1px solid var(--color-border);padding:6px 12px;overflow:hidden;outline:none;line-break:normal}.tc-cell--selected{background:var(--color-background)}.tc-wrap--readonly .tc-row:after{display:none}.tc-toolbox{--toolbox-padding: 6px;--popover-margin: 30px;--toggler-click-zone-size: 30px;--toggler-dots-color: #7b7e89;--toggler-dots-color-hovered: #1d202b;position:absolute;cursor:pointer;z-index:1;opacity:0;-webkit-transition:opacity .1s;transition:opacity .1s;will-change:left,opacity}.tc-toolbox--column{top:calc(var(--toggler-click-zone-size)*-1);-webkit-transform:translate(calc(var(--toggler-click-zone-size)*-1/2));transform:translate(calc(var(--toggler-click-zone-size)*-1/2));will-change:left,opacity}.tc-toolbox--row{left:calc(var(--popover-margin)*-1);-webkit-transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));margin-top:-1px;will-change:top,opacity}.tc-toolbox--showed{opacity:1}.tc-toolbox .tc-popover{position:absolute;top:0;left:var(--popover-margin)}.tc-toolbox__toggler{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:var(--toggler-click-zone-size);height:var(--toggler-click-zone-size);color:var(--toggler-dots-color);opacity:0;-webkit-transition:opacity .15s ease;transition:opacity .15s ease;will-change:opacity}.tc-toolbox__toggler:hover{color:var(--toggler-dots-color-hovered)}.tc-toolbox__toggler svg{fill:currentColor}.tc-wrap:hover .tc-toolbox__toggler{opacity:1}.tc-settings .cdx-settings-button{width:50%;margin:0}.tc-popover{--color-border: #eaeaea;--color-background: #fff;--color-background-hover: rgba(232, 232, 235, .49);--color-background-confirm: #e24a4a;--color-background-confirm-hover: #d54040;--color-text-confirm: #fff;background:var(--color-background);border:1px solid var(--color-border);-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.12941);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;padding:6px;display:none;will-change:opacity,transform}.tc-popover--opened{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards;animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards}.tc-popover__item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 14px 2px 2px;border-radius:5px;cursor:pointer;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tc-popover__item:hover{background:var(--color-background-hover)}.tc-popover__item:not(:last-of-type){margin-bottom:2px}.tc-popover__item-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:26px;height:26px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:var(--color-background);border-radius:5px;border:1px solid var(--color-border);margin-right:8px}.tc-popover__item-label{line-height:22px;font-size:14px;font-weight:500}.tc-popover__item--confirm{background:var(--color-background-confirm);color:var(--color-text-confirm)}.tc-popover__item--confirm:hover{background-color:var(--color-background-confirm-hover)}.tc-popover__item--confirm .tc-popover__item-icon{background:var(--color-background-confirm);border-color:#0000001a}.tc-popover__item--confirm .tc-popover__item-icon svg{-webkit-transition:-webkit-transform .2s ease-in;transition:-webkit-transform .2s ease-in;transition:transform .2s ease-in;transition:transform .2s ease-in,-webkit-transform .2s ease-in;-webkit-transform:rotate(90deg) scale(1.2);transform:rotate(90deg) scale(1.2)}.tc-popover__item--hidden{display:none}@-webkit-keyframes menuShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes menuShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.cell-resizable{cursor:col-resize}.image-tool{--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;display:inline-block}.image-tool__image{border-radius:3px;overflow:hidden;margin-bottom:10px;padding-bottom:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.image-tool__image-picture{max-width:100%;vertical-align:bottom;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.image-tool__image-preloader{width:150px;height:150px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--bg-color);background-position:center center}.image-tool__image-preloader:after{content:"";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--bg-color);border-top-color:var(--front-color);left:50%;top:50%;margin-top:-30px;margin-left:-30px;-webkit-animation:image-preloader-spin 2s infinite linear;animation:image-preloader-spin 2s infinite linear;-webkit-box-sizing:border-box;box-sizing:border-box}.image-tool__caption{visibility:hidden;position:absolute;bottom:0;left:0;margin-bottom:10px}.image-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute!important}.image-tool__caption[contentEditable=true][data-placeholder]:before{content:attr(data-placeholder);color:#707684;font-weight:400;display:none}.image-tool__caption[contentEditable=true][data-placeholder]:empty:before{display:block}.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{display:none}.image-tool--empty .image-tool__image,.image-tool--empty .image-tool__image-preloader{display:none}.image-tool--empty .image-tool__caption,.image-tool--uploading .image-tool__caption{visibility:hidden!important}.image-tool .cdx-button{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.image-tool .cdx-button svg{height:auto;margin:0 6px 0 0}.image-tool--filled .cdx-button,.image-tool--filled .image-tool__image-preloader{display:none}.image-tool--uploading{width:100%}.image-tool--uploading .resizable{display:none!important}.image-tool--uploading .image-tool__image{min-height:200px;display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#fff}.image-tool--uploading .image-tool__image-picture,.image-tool--uploading .cdx-button{display:none}.image-tool--withBorder .image-tool__image{border:1px solid var(--border-color)}.image-tool--withBackground .image-tool__image{padding:15px;background:var(--bg-color)}.image-tool--withBackground .image-tool__image-picture{max-width:60%;margin:0 auto}.image-tool--stretched .image-tool__image-picture{width:100%}.image-tool--caption .image-tool__caption{visibility:visible}.image-tool--caption{padding-bottom:50px}@-webkit-keyframes image-preloader-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes image-preloader-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.cdx-image-tool-tune--floatLeft .cdx-block,.cdx-image-tool-tune--center .cdx-block,.cdx-image-tool-tune--floatRight .cdx-block,.cdx-image-tool-tune--floatLeft .image-tool__image,.cdx-image-tool-tune--center .image-tool__image,.cdx-image-tool-tune--floatRight .image-tool__image{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}:root{--primary: #2492F5;--primary-content: #E9F4FE}.cdx-settings-button--active{background:#e9f4fe;color:#2492f5}.cdx-settings-button:hover{background:#e9f4fe}.cdx-image-tool-tune--center{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media all and (min-width: 470px){.codex-editor:not(.read-only) .cdx-image-tool-tune--floatLeft.ce-block__content,.codex-editor:not(.read-only) .cdx-image-tool-tune--floatRight.ce-block__content{min-height:20px}.cdx-image-tool-tune--floatLeft.ce-block__content .image-tool__image,.cdx-image-tool-tune--floatRight.ce-block__content .image-tool__image{margin-top:40px}.cdx-image-tool-tune--floatLeft.ce-block__content .image-tool__image{margin-left:20px}.cdx-image-tool-tune--floatRight.ce-block__content .image-tool__image{margin-right:20px}.cdx-image-tool-tune--floatLeft.ce-block__content .cdx-input,.cdx-image-tool-tune--floatRight.ce-block__content .cdx-input{width:calc(100% - 20px)}.cdx-image-tool-tune--floatLeft.ce-block__content .cdx-input{margin-left:20px}.cdx-image-tool-tune--floatRight.ce-block__content .cdx-input{margin-right:20px}.cdx-image-tool-tune--floatLeft .cdx-block{float:left;margin-right:10px}.cdx-image-tool-tune--floatRight .cdx-block{float:right;margin-left:10px}.cdx-image-tool-tune--sizeSmall .cdx-block{max-width:25%!important}.cdx-image-tool-tune--sizeMiddle .cdx-block{max-width:50%!important}.cdx-image-tool-tune--sizeLarge .cdx-block{max-width:75%!important}}.cdx-image-tool-tune--sizeLarge img,.cdx-image-tool-tune--sizeSmall img,.cdx-image-tool-tune--sizeMiddle img{-o-object-fit:cover;object-fit:cover;max-width:100%}.codex-editor.read-only .cdx-input.image-tool__caption:empty,.read-only>.codex-editor .cdx-input.image-tool__caption:empty{display:none}.cdx-image-tool-tune--resize .cdx-block{position:relative;overflow:visible}.cdx-image-tool-tune--resize .cdx-block .resizable{display:none}.cdx-image-tool-tune--resize .image-tool__image-picture{width:100%!important}.cdx-image-tool-tune--resize .cdx-block:hover .resizable{display:block}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer{-webkit-box-sizing:border-box;box-sizing:border-box;width:14px;height:14px;border-radius:50%;background:#e9f4fe;border:3px solid #2492F5;position:absolute}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-left{left:-8px;top:2px;cursor:nwse-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-right{right:-8px;top:1px;cursor:nesw-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-left{left:-9px;bottom:10px;cursor:nesw-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-right{right:-9px;bottom:10px;cursor:nwse-resize}.cdx-image-tool-tune--crop:hover,.cdx-image-tool-tune--crop.isCropping,.cdx-image-tool-tune--resize:hover{z-index:2}.cdx-image-tool-tune--crop .image-tool__image{position:relative}.cdx-image-tool-tune--crop .isCropping .image-tool__image{min-height:600px;min-width:100%}.cdx-image-tool-tune--crop .image-tool__image .crop-btn,.cdx-image-tool-tune--crop .image-tool__image .crop-save{position:absolute;top:0;left:0;padding:7px;background:#2492f5;color:#e9f4fe;text-align:center;line-height:20px;cursor:pointer;display:none}.cdx-image-tool-tune--crop .image-tool__image:hover .crop-btn,.cdx-image-tool-tune--crop .image-tool__image:hover .crop-save{display:block}.cdx-image-tool-tune--crop .image-tool__image img.isCropped{position:absolute;min-width:0;min-width:initial;max-width:none;max-width:initial;min-height:0;min-height:initial;max-height:none;max-height:initial}.cdx-image-tool-tune--crop .cdx-block.image-tool.isCropping{min-width:0!important;min-width:initial!important;max-width:none!important;max-width:initial!important;min-height:0!important;min-height:initial!important;max-height:none!important;max-height:initial!important}.image-tool__caption{background-color:#fff}.image-tool{position:relative;z-index:1}.cdx-image-tool-tune{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;gap:4px;width:100%}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--color-border: #EFF0F1}.ebl-editor{cursor:text;font-size:16px;font-weight:400;background-color:#fff;height:100%;overflow:auto;position:relative;padding-top:15px}.ebl-editor.outline{padding-right:280px}.ebl-editor.outline .codex-editor{-webkit-box-flex:1;-ms-flex:1;flex:1}@media (max-width:1240px){.ebl-outline{display:none}.ebl-editor.outline{padding-right:0}}@media (min-width:1240px){.ebl-editor.readonly .ce-block__content{max-width:100%;padding-left:100px;padding-right:100px}}.ce-toolbar,.ce-inline-toolbar{z-index:1000}.ce-toolbar__plus{border:1px solid #EFF0F1}.ce-toolbar .ce-popover__items,.ce-popover-clone .ce-popover__items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.ce-toolbar .ce-popover__items .ce-popover-item,.ce-popover-clone .ce-popover__items .ce-popover-item{position:relative}.ce-toolbar .ce-popover__items .ce-popover-item__title,.ce-popover-clone .ce-popover__items .ce-popover-item__title{display:none}.ce-toolbar .ce-popover-item-html,.ce-toolbar .ce-popover-item-separator,.ce-toolbar .ce-popover-item[data-item-name=convert-to],.ce-popover-clone .ce-popover-item-html,.ce-popover-clone .ce-popover-item-separator,.ce-popover-clone .ce-popover-item[data-item-name=convert-to]{width:100%}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting],.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting]{width:auto;overflow:hidden}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting-start-with],.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting-start-with]{border-radius:6px;padding:3px}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting-start-with]:hover,.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting-start-with]:hover{background-color:#f8f8f8}.ce-toolbar .ce-popover-item[data-item-name=convert-to] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=convert-to] .ce-popover-item__title{display:block}.ce-toolbar .ce-popover-item[data-item-name=add-below],.ce-popover-clone .ce-popover-item[data-item-name=add-below]{width:100%}.ce-toolbar .ce-popover-item[data-item-name=add-below] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=add-below] .ce-popover-item__title{display:block}.ce-toolbar .ce-popover-item[data-item-name=list-setting],.ce-popover-clone .ce-popover-item[data-item-name=list-setting]{width:100%}.ce-toolbar .ce-popover-item[data-item-name=list-setting] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=list-setting] .ce-popover-item__title{display:block}.ce-popover--inline .ce-popover-item-html{padding:0 2px}.ce-inline-toolbar .ce-popover__items{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.ce-inline-toolbar .ce-popover__items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.ce-inline-toolbar .ce-popover__items .ce-popover-item__title{display:none}.ebl-editor ::-webkit-scrollbar{width:6px;height:6px}.ebl-editor ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-editor ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-editor ::-webkit-scrollbar-thumb:hover{background:#555}.cdx-notifies{left:50%!important}.cdx-notifies{-webkit-transform:translateX(-50%);transform:translate(-50%);top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ebl-er-doc-outline-item{padding:7px 24px;cursor:pointer;white-space:normal;word-wrap:break-word}.ebl-er-doc-outline-item:hover{background-color:#f6f6f6}.ebl-er-doc-outline-item.selected{background-color:#ebebeb}.ebl-outline .level_1{padding-left:24px}.ebl-outline .level_2{padding-left:42px}.ebl-outline .level_3{padding-left:60px}.ce-popover--inline .ce-popover--nested .ce-popover__container{width:-webkit-min-content!important;width:-moz-min-content!important;width:min-content!important;min-width:0!important;min-width:initial!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:-webkit-max-content;width:-moz-max-content;width:max-content}.editorjs__color-selector-container{display:grid;grid-gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.editorjs__color-selector__container-item:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.cel-inline-bold{font-weight:700}.cel-inline-strikethrough{-webkit-text-decoration:line-through;text-decoration:line-through}.cel-inline-italic{font-style:italic}.cel-inline-code{margin-left:2px;margin-right:2px;background-color:#f5f6f7;border:1px solid #dee0e3;border-color:#dee0e3;border-width:1px 0;border-radius:4px;padding:1px 5px 1px 4px}.cel-inline-underline{-webkit-text-decoration:underline;text-decoration:underline}.cel-inline-mark{background-color:#ff0;padding:2px}.cel-inline-link-input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:5px}.cel-inline-link-input{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#f8f8f8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;font-size:14px;line-height:22px;outline:none;margin:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:500;font-family:inherit}.cel-inline-link-input-btn{width:50px;border-radius:5px;background-color:#161c27;color:#fff;border:none;cursor:pointer}.cel-inline-link-input-btn.disabled{opacity:.4;cursor:not-allowed}.cel-fake-background{background-color:#a8d6ff}.editorjs__color-selector__input{width:1px;height:1px;opacity:0}.editorjs__color-selector__container-item-none{background-color:transparent;border:1px solid #e6e6e6;position:relative}.editorjs__color-selector__container-item-none:before{content:"";position:absolute;top:50%;left:50%;width:1px;height:35px;background-color:#e6e6e6;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.cel-inline-gray-text{color:#646a73}.cel-inline-pink-text{color:#d83931}.cel-inline-orange-text{color:#de7802}.cel-inline-yellow-text{color:#dc9b04}.cel-inline-green-text{color:#2ea121}.cel-inline-blue-text{color:#245bdb}.cel-inline-purple-text{color:#6425d0}.ebl-er-doc{font-family:var(--font-family);font-size:16px;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-header{height:var(--ebl-er-header-height);-webkit-box-sizing:border-box;box-sizing:border-box;position:sticky;top:0;z-index:10}.ebl-er-footer{height:var(--ebl-er-footer-height);-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;min-height:calc(100vh - var(--ebl-er-header-height))}.ebl-er-doc-menu{width:var(--ebl-er-doc-menu-width);-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height)}.ebl-er-doc-menu-content{-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-doc-content{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;max-width:calc(100% - var(--ebl-er-doc-menu-width));-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.ebl-er-doc-content-container{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 50px 50px;width:100%;overflow-x:hidden;white-space:normal;word-wrap:break-word}.ebl-er-doc-content-inner-wrap{margin:0 auto}.ebl-er-doc-content-inner .ce-block{width:100%}.ebl-er-doc-outline{width:280px;-webkit-box-sizing:border-box;box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height);overflow:auto;padding:12px}.ebl-er-doc-pre-next{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:33px 0}@media (max-width:960px){.ebl-er-doc-outline{display:none}}.ebl-er-doc ::-webkit-scrollbar{width:6px;height:6px}.ebl-er-doc ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-er-doc ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-er-doc ::-webkit-scrollbar-thumb:hover{background:#555}.ce-el-link-wrapper{position:absolute;z-index:1000;width:auto;max-width:300px;height:46px;padding:6px 20px;border:1px solid #eff0f1;border-radius:6px;background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ce-el-link-input{border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;background-color:#f8f8f8;font-size:12px;line-height:22px;margin:0;-webkit-box-flex:1;-ms-flex:1;flex:1;width:260px}.ce-el-link-input.ce-el-link__noedit{display:none}.ce-el-link-btn-wrap{width:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ce-el-link-btn{width:50px;background-color:#161c27;color:#fff;border-radius:6px;margin-left:5px;display:block}.ce-el-link-btn.ce-el-link__noedit{display:none}.ce-el-link-icon-btn{width:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:5px;cursor:pointer;display:none}.ce-el-link-icon-btn.ce-el-link__noedit{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-el-link-input-text{padding-right:20px;display:none}.ce-el-link-input-text.ce-el-link__noedit{display:block}.ce-block--drop-target .ce-block__content:before{content:"";position:absolute;top:50%;left:-20px;margin-top:-1px;height:8px;width:8px;border:solid #a0a0a0;border-width:1px 1px 0 0;-webkit-transform-origin:right;transform-origin:right;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ce-block--drop-target .ce-block__content:after{background:none}.ce-header{padding:15px 0 3px;margin:0;line-height:1.25;outline:none}.ce-header p,.ce-header div{padding:0!important;margin:0!important}.ce-tune-alignment--right{text-align:right}.ce-tune-alignment--center{text-align:center}.ce-tune-alignment--left{text-align:left}.ce-paragraph{line-height:2!important}.ce-paragraph{outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}.ce-editorjs-x-shiki{border-radius:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:10px 0;border:2px solid transparent;position:relative}.ce-editorjs-x-shiki.editable:hover{border:2px solid #C0C0C0}.ce-editorjs-x-shiki__lang{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:8px}.ce-editorjs-x-shiki__code{position:relative;float:left;min-width:100%;overflow:hidden;height:auto;min-height:60px}.ce-editorjs-x-shiki__code__dragHandler{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:-5px;cursor:ns-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:8px;width:60px;background-color:silver;border-radius:5px;display:none}.ce-editorjs-x-shiki:hover .ce-editorjs-x-shiki__code__dragHandler{display:block}.ce-editorjs-x-shiki__selector{display:-webkit-box;display:-ms-flexbox;display:flex;gap:15px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom-style:solid;border-color:#9ca3af0d;border-bottom-width:1px;padding:0 8px 8px}.ce-editorjs-x-shiki__selector-language,.ce-editorjs-x-shiki__selector-theme{font-size:13px;font-family:inherit}.ce-editorjs-x-shiki__selector-language{width:90px}.ce-editorjs-x-shiki__selector select{border:none;outline:none}.ce-editorjs-x-shiki__span{position:relative;z-index:0;padding:20px 20px 20px 55px;margin:0;white-space:pre;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__span code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea{all:unset;white-space:pre;background-color:transparent;position:absolute;padding:20px 20px 20px 55px;inset:0;color:transparent;z-index:0;font-size:13px;caret-color:#999;resize:none;border:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea::-moz-selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__textarea::selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__copy{width:24px;height:24px;cursor:pointer;position:relative;margin-right:0}.ce-editorjs-x-shiki__copy_tip{font-size:12px;width:60px;margin-left:-20px;background-color:#0c0c0c;color:#ececec;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;z-index:1;top:125%;-webkit-transition:opacity .3s;transition:opacity .3s;visibility:hidden;opacity:0}.ce-editorjs-x-shiki__copy_tip:after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #0c0c0c transparent}.ce-editorjs-x-shiki__copy_tip.visible{visibility:visible;opacity:1}.ce-editorjs-x-shiki__span.shiki .line:before{content:attr(data-line);width:40px;display:inline-block;text-align:right;color:#888;position:absolute;left:0}.ce-editorjs-x-shiki__code ::-webkit-scrollbar{width:8px;height:8px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-track{background:#22272e;border-radius:1px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:2px solid #22272e}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb:hover{background:#555}.ce-block--selected .ce-editorjs-x-shiki{outline:2px solid #4299e1}.ce-block--selected .ce-editorjs-x-shiki,.ce-block--selected .ce-editorjs-x-shiki__selector-language,.ce-block--selected .ce-editorjs-x-shiki__span{background-color:#e1f2ff!important}.cdx-quote{overflow:hidden;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;word-wrap:break-word;word-break:break-all}.cdx-quote blockquote{margin:0}.cdx-block-quote{border:solid #acacac;border-width:0 0 0 3px;-webkit-box-shadow:none;box-shadow:none;color:#666;line-height:1.6em;padding:1px 0 0 12px}.ce-delimiter__line__wrapper{height:24px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ce-delimiter__line{-webkit-box-flex:1;-ms-flex:1;flex:1;height:2px;background-color:#eff0f1}.cdx-list{margin:0;padding:0;outline:none;display:grid;counter-reset:item;grid-gap:var(--spacing-s);padding:var(--spacing-xs);--spacing-s: 8px;--spacing-xs: 6px;--list-counter-type: numeric;--radius-border: 5px;--checkbox-background: #fff;--color-border: #C9C9C9;--color-bg-checked: #369FFF;--line-height: 1.45em;--color-bg-checked-hover: #0059AB;--color-tick: #fff;--size-checkbox: 1.2em}.cdx-list ol{padding-left:0}.cdx-list__item{line-height:var(--line-height);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:"checkbox content" ". child"}.cdx-list__item-children{display:grid;grid-area:child;grid-gap:var(--spacing-s);padding-top:var(--spacing-s)}.cdx-list__item [contenteditable]{outline:none}.cdx-list__item-content{word-break:break-word;white-space:pre-wrap;grid-area:content;padding-left:var(--spacing-s)}.cdx-list__item:before{counter-increment:item;white-space:nowrap}.cdx-list-ordered .cdx-list__item:before{content:counters(item,".",var(--list-counter-type)) "."}.cdx-list-ordered{counter-reset:item}.cdx-list-unordered{padding-left:0}.cdx-list-unordered .cdx-list__item:before{content:"•"}.cdx-list-checklist .cdx-list__item:before{content:""}.cdx-list__settings .cdx-settings-button{width:50%}.cdx-list__checkbox{padding-top:calc((var(--line-height) - var(--size-checkbox)) / 2);grid-area:checkbox;width:var(--size-checkbox);height:var(--size-checkbox);display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}.cdx-list__checkbox svg{opacity:0;height:var(--size-checkbox);width:var(--size-checkbox);left:-1px;top:-1px;position:absolute}@media (hover: hover){.cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg{opacity:1}}.cdx-list__checkbox--checked{line-height:var(--line-height)}@media (hover: hover){.cdx-list__checkbox--checked:not(.cdx-list__checkbox--checked--no-hover):hover .cdx-checklist__checkbox-check{background:var(--color-bg-checked-hover);border-color:var(--color-bg-checked-hover)}}.cdx-list__checkbox--checked .cdx-list__checkbox-check{background:var(--color-bg-checked);border-color:var(--color-bg-checked)}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg{opacity:1}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg path{stroke:var(--color-tick)}.cdx-list__checkbox--checked .cdx-list__checkbox-check:before{opacity:0;visibility:visible;-webkit-transform:scale(2.5);transform:scale(2.5)}.cdx-list__checkbox-check{cursor:pointer;display:inline-block;position:relative;margin:0 auto;width:var(--size-checkbox);height:var(--size-checkbox);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:var(--radius-border);border:1px solid var(--color-border);background:var(--checkbox-background)}.cdx-list__checkbox-check:before{content:"";position:absolute;inset:0;border-radius:100%;background-color:var(--color-bg-checked);visibility:hidden;pointer-events:none;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:opacity .4s,-webkit-transform .4s ease-out;transition:opacity .4s,-webkit-transform .4s ease-out;transition:transform .4s ease-out,opacity .4s;transition:transform .4s ease-out,opacity .4s,-webkit-transform .4s ease-out}.cdx-list__checkbox-check--disabled{pointer-events:none}.cdx-list-start-with-field{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;overflow:hidden;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cdx-list-start-with-field--invalid{background:#ffeced;border:1px solid #E13F3F}.cdx-list-start-with-field:hover{background-color:#f8f8f8}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input{color:#e13f3f}.cdx-list-start-with-field__startlabel{width:70px;font-size:14px}.cdx-list-start-with-field__input-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden}.cdx-list-start-with-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;line-height:22px;-webkit-box-flex:1;-ms-flex:1;flex:1;border:1px solid rgba(226,226,229,1);border-radius:6px;padding:0 10px;width:50px;text-align:center}.cdx-list-start-with-field__input::-webkit-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::-moz-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input:-ms-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::-ms-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::placeholder{color:var(--grayText);font-weight:500}.cdx-alert{position:relative;padding:10px;border-radius:5px;margin-bottom:10px;margin-top:10px}.cdx-alert-primary{background-color:#ebf8ff;border:1px solid #4299e1;color:#2b6cb0}.cdx-alert-secondary{background-color:#f7fafc;border:1px solid #cbd5e0;color:#222731}.cdx-alert-info{background-color:#e6fdff;border:1px solid #4cd4ce;color:#00727c}.cdx-alert-success{background-color:#f0fff4;border:1px solid #68d391;color:#2f855a}.cdx-alert-warning{background-color:#fffaf0;border:1px solid #ed8936;color:#c05621}.cdx-alert-danger{background-color:#fff5f5;border:1px solid #fc8181;color:#c53030}.cdx-alert-light{background-color:#fff;border:1px solid #edf2f7;color:#1a202c}.cdx-alert-dark{background-color:#2d3748;border:1px solid #1a202c;color:#d3d3d3}.cdx-alert-align-left{text-align:left}.cdx-alert-align-center{text-align:center}.cdx-alert-align-right{text-align:right}.cdx-alert__message{outline:none}.cdx-alert [contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}.cdx-alert [contentEditable=true][data-placeholder]:empty:before{opacity:1}.cdx-alert [contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #background{fill:#ebf8ff;stroke:#4299e1}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #content{fill:#2b6cb0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #background{fill:#f7fafc;stroke:#cbd5e0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #content{fill:#222731}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #background{fill:#e6fdff;stroke:#4cd4ce}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #content{fill:#00727c}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #background{fill:#f0fff4;stroke:#68d391}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #content{fill:#2f855a}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #background{fill:#fffaf0;stroke:#ed8936}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #content{fill:#c05621}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #background{fill:#fff5f5;stroke:#fc8181}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #content{fill:#c53030}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #background{fill:#fff;stroke:#edf2f7}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #content{fill:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #background{fill:#2d3748;stroke:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #content{fill:#d3d3d3}.cdx-alert_setting__icon_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.cdx-alert_setting__icon_wrapper_align{margin-top:10px}.cdx-alert_setting__icon{display:inline-block;width:24px;height:24px;text-align:center;line-height:24px;cursor:pointer}.cdx-alert_setting__icon_active{opacity:.3}.ce-block--selected .cdx-alert{outline:2px solid #4299e1}.ce-popover-indent-item{cursor:default!important}.ce-popover-indent-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px}.ce-popover-indent-item[version^="2.26"]{gap:10px}.ce-popover-indent-item:hover{background-color:transparent!important}.ce-popover-indent-item .ce-popover-item__icon{width:26px;height:26px;cursor:pointer;will-change:background-color,color;transition:.3s background-color,.3s color;padding:0;border-width:0px;color:#000;background-color:#fff;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;-webkit-transition:.3s background-color,.3s color;-moz-transition:.3s background-color,.3s color;-ms-transition:.3s background-color,.3s color;-o-transition:.3s background-color,.3s color}.ce-popover-indent-item .ce-popover-item--disabled{color:#707684;opacity:.3;cursor:default}.ce-popover-indent-item .ce-popover-item__icon:focus{outline:none}.ce-popover-indent-item[version^="2.26"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.27"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.28"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.29"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.26"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.27"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.28"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.29"] .ce-popover-item__icon{box-shadow:0 0 0 1px #c9c9cc7a!important;-webkit-box-shadow:0 0 0 1px rgba(201,201,204,.48)!important}.ce-popover-indent-item[version^="2.26"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.27"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.28"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.29"] .ce-popover-item__icon:hover{background-color:#eff2f5}.ce-highlight-indent{display:inline-block;height:1.6em;top:50%;position:absolute;transform:translateY(-50%);-webkit-transform:translate(0px,-50%);-moz-transform:translate(0px,-50%);-ms-transform:translate(0px,-50%);-o-transform:translate(0px,-50%)}.ce-popover-indent-item[version^="2.3"] .ce-popover-item__title{margin-left:4px}.tc-wrap{--color-background: #f9f9fb;--color-text-secondary: #7b7e89;--color-border: #e8e8eb;--cell-size: 34px;--toolbox-icon-size: 18px;--toolbox-padding: 6px;--toolbox-aiming-field-size: calc(var(--toolbox-icon-size) + var(--toolbox-padding)*2);--col-width: 100px 100px 100px;position:relative;height:100%;margin-top:var(--toolbox-icon-size);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-grid;z-index:0}.tc-wrap svg{vertical-align:top}@media print{.tc-wrap{border-left-color:var(--color-border);border-left-style:solid;border-left-width:1px}}@media print{.tc-wrap .tc-row:after{display:none}}.tc-table{position:relative;width:100%;height:100%;display:grid;font-size:14px;border-top:1px solid var(--color-border);border-left:1px solid var(--color-border);line-height:1.4;overflow-x:auto}.tc-table:after{width:calc(var(--cell-size));height:100%;left:calc(var(--cell-size)*-1);top:0}.tc-table:after,.tc-table:before{position:absolute;content:""}.tc-table:before{width:100%;height:var(--toolbox-aiming-field-size);top:calc(var(--toolbox-aiming-field-size)*-1);left:0}.tc-table--heading .tc-row:first-child{font-weight:600;border-bottom:2px solid var(--color-border);position:sticky;top:0;z-index:2;background:var(--color-background)}.tc-table--heading .tc-row:first-child [contenteditable]:empty:before{content:attr(heading);color:var(--color-text-secondary)}.tc-table--heading .tc-row:first-child:after{bottom:-2px;border-bottom:2px solid var(--color-border)}.tc-add-column,.tc-add-row{display:-webkit-box;display:-ms-flexbox;display:flex;color:var(--color-text-secondary)}@media print{.tc-add{display:none}}.tc-add-column{display:grid;border-top:1px solid var(--color-border);grid-auto-rows:var(--cell-size);-webkit-box-align:center;-ms-flex-align:center;align-items:center;justify-items:center}.tc-add-column svg{padding:5px;position:sticky;top:0;background-color:var(--color-background)}.tc-add-column--disabled{visibility:hidden}@media print{.tc-add-column{display:none}}.tc-add-row{height:var(--cell-size);-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:4px;position:relative}.tc-add-row--disabled{display:none}.tc-add-row:before{content:"";position:absolute;right:calc(var(--cell-size)*-1);width:var(--cell-size);height:100%}@media print{.tc-add-row{display:none}}.tc-add-column,.tc-add-row{-webkit-transition:0s;transition:0s;cursor:pointer;will-change:background-color}.tc-add-column:hover,.tc-add-row:hover{-webkit-transition:background-color .1s ease;transition:background-color .1s ease;background-color:var(--color-background)}.tc-add-row{margin-top:1px}.tc-add-row:hover:before{-webkit-transition:.1s;transition:.1s;background-color:var(--color-background)}.tc-row{display:grid;grid-template-columns:var(--col-width);position:relative;border-bottom:1px solid var(--color-border)}.tc-row--selected{background:var(--color-background)}.tc-row--selected:after{background:var(--color-background)}.tc-cell{border-right:1px solid var(--color-border);padding:6px 12px;overflow:hidden;outline:none;line-break:normal}.tc-cell--selected{background:var(--color-background)}.tc-wrap--readonly .tc-row:after{display:none}.tc-toolbox{--toolbox-padding: 6px;--popover-margin: 30px;--toggler-click-zone-size: 30px;--toggler-dots-color: #7b7e89;--toggler-dots-color-hovered: #1d202b;position:absolute;cursor:pointer;z-index:1;opacity:0;-webkit-transition:opacity .1s;transition:opacity .1s;will-change:left,opacity}.tc-toolbox--column{top:calc(var(--toggler-click-zone-size)*-1);-webkit-transform:translate(calc(var(--toggler-click-zone-size)*-1/2));transform:translate(calc(var(--toggler-click-zone-size)*-1/2));will-change:left,opacity}.tc-toolbox--row{left:calc(var(--popover-margin)*-1);-webkit-transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));margin-top:-1px;will-change:top,opacity}.tc-toolbox--showed{opacity:1}.tc-toolbox .tc-popover{position:absolute;top:0;left:var(--popover-margin)}.tc-toolbox__toggler{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:var(--toggler-click-zone-size);height:var(--toggler-click-zone-size);color:var(--toggler-dots-color);opacity:0;-webkit-transition:opacity .15s ease;transition:opacity .15s ease;will-change:opacity}.tc-toolbox__toggler:hover{color:var(--toggler-dots-color-hovered)}.tc-toolbox__toggler svg{fill:currentColor}.tc-wrap:hover .tc-toolbox__toggler{opacity:1}.tc-settings .cdx-settings-button{width:50%;margin:0}.tc-popover{--color-border: #eaeaea;--color-background: #fff;--color-background-hover: rgba(232, 232, 235, .49);--color-background-confirm: #e24a4a;--color-background-confirm-hover: #d54040;--color-text-confirm: #fff;background:var(--color-background);border:1px solid var(--color-border);-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.12941);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;padding:6px;display:none;will-change:opacity,transform}.tc-popover--opened{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards;animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards}.tc-popover__item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 14px 2px 2px;border-radius:5px;cursor:pointer;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tc-popover__item:hover{background:var(--color-background-hover)}.tc-popover__item:not(:last-of-type){margin-bottom:2px}.tc-popover__item-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:26px;height:26px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:var(--color-background);border-radius:5px;border:1px solid var(--color-border);margin-right:8px}.tc-popover__item-label{line-height:22px;font-size:14px;font-weight:500}.tc-popover__item--confirm{background:var(--color-background-confirm);color:var(--color-text-confirm)}.tc-popover__item--confirm:hover{background-color:var(--color-background-confirm-hover)}.tc-popover__item--confirm .tc-popover__item-icon{background:var(--color-background-confirm);border-color:#0000001a}.tc-popover__item--confirm .tc-popover__item-icon svg{-webkit-transition:-webkit-transform .2s ease-in;transition:-webkit-transform .2s ease-in;transition:transform .2s ease-in;transition:transform .2s ease-in,-webkit-transform .2s ease-in;-webkit-transform:rotate(90deg) scale(1.2);transform:rotate(90deg) scale(1.2)}.tc-popover__item--hidden{display:none}@-webkit-keyframes menuShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes menuShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.cell-resizable{cursor:col-resize}.image-tool{--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;display:inline-block}.image-tool__image{border-radius:3px;overflow:hidden;margin-bottom:10px;padding-bottom:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.image-tool__image-picture{max-width:100%;vertical-align:bottom;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.image-tool__image-preloader{width:150px;height:150px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--bg-color);background-position:center center}.image-tool__image-preloader:after{content:"";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--bg-color);border-top-color:var(--front-color);left:50%;top:50%;margin-top:-30px;margin-left:-30px;-webkit-animation:image-preloader-spin 2s infinite linear;animation:image-preloader-spin 2s infinite linear;-webkit-box-sizing:border-box;box-sizing:border-box}.image-tool__caption{visibility:hidden;position:absolute;bottom:0;left:0;margin-bottom:10px}.image-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute!important}.image-tool__caption[contentEditable=true][data-placeholder]:before{content:attr(data-placeholder);color:#707684;font-weight:400;display:none}.image-tool__caption[contentEditable=true][data-placeholder]:empty:before{display:block}.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{display:none}.image-tool--empty .image-tool__image,.image-tool--empty .image-tool__image-preloader{display:none}.image-tool--empty .image-tool__caption,.image-tool--uploading .image-tool__caption{visibility:hidden!important}.image-tool .cdx-button{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.image-tool .cdx-button svg{height:auto;margin:0 6px 0 0}.image-tool--filled .cdx-button,.image-tool--filled .image-tool__image-preloader{display:none}.image-tool--uploading{width:100%}.image-tool--uploading .resizable{display:none!important}.image-tool--uploading .image-tool__image{min-height:200px;display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#fff}.image-tool--uploading .image-tool__image-picture,.image-tool--uploading .cdx-button{display:none}.image-tool--withBorder .image-tool__image{border:1px solid var(--border-color)}.image-tool--withBackground .image-tool__image{padding:15px;background:var(--bg-color)}.image-tool--withBackground .image-tool__image-picture{max-width:60%;margin:0 auto}.image-tool--stretched .image-tool__image-picture{width:100%}.image-tool--caption .image-tool__caption{visibility:visible}.image-tool--caption{padding-bottom:50px}@-webkit-keyframes image-preloader-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes image-preloader-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.cdx-image-tool-tune--floatLeft .cdx-block,.cdx-image-tool-tune--center .cdx-block,.cdx-image-tool-tune--floatRight .cdx-block,.cdx-image-tool-tune--floatLeft .image-tool__image,.cdx-image-tool-tune--center .image-tool__image,.cdx-image-tool-tune--floatRight .image-tool__image{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}:root{--primary: #2492F5;--primary-content: #E9F4FE}.cdx-settings-button--active{background:#e9f4fe;color:#2492f5}.cdx-settings-button:hover{background:#e9f4fe}.cdx-image-tool-tune--center{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media all and (min-width: 470px){.codex-editor:not(.read-only) .cdx-image-tool-tune--floatLeft.ce-block__content,.codex-editor:not(.read-only) .cdx-image-tool-tune--floatRight.ce-block__content{min-height:20px}.cdx-image-tool-tune--floatLeft.ce-block__content .image-tool__image,.cdx-image-tool-tune--floatRight.ce-block__content .image-tool__image{margin-top:40px}.cdx-image-tool-tune--floatLeft.ce-block__content .image-tool__image{margin-left:20px}.cdx-image-tool-tune--floatRight.ce-block__content .image-tool__image{margin-right:20px}.cdx-image-tool-tune--floatLeft.ce-block__content .cdx-input,.cdx-image-tool-tune--floatRight.ce-block__content .cdx-input{width:calc(100% - 20px)}.cdx-image-tool-tune--floatLeft.ce-block__content .cdx-input{margin-left:20px}.cdx-image-tool-tune--floatRight.ce-block__content .cdx-input{margin-right:20px}.cdx-image-tool-tune--floatLeft .cdx-block{float:left;margin-right:10px}.cdx-image-tool-tune--floatRight .cdx-block{float:right;margin-left:10px}.cdx-image-tool-tune--sizeSmall .cdx-block{max-width:25%!important}.cdx-image-tool-tune--sizeMiddle .cdx-block{max-width:50%!important}.cdx-image-tool-tune--sizeLarge .cdx-block{max-width:75%!important}}.cdx-image-tool-tune--sizeLarge img,.cdx-image-tool-tune--sizeSmall img,.cdx-image-tool-tune--sizeMiddle img{-o-object-fit:cover;object-fit:cover;max-width:100%}.codex-editor.read-only .cdx-input.image-tool__caption:empty,.read-only>.codex-editor .cdx-input.image-tool__caption:empty{display:none}.cdx-image-tool-tune--resize .cdx-block{position:relative;overflow:visible}.cdx-image-tool-tune--resize .cdx-block .resizable{display:none}.cdx-image-tool-tune--resize .image-tool__image-picture{width:100%!important}.cdx-image-tool-tune--resize .cdx-block:hover .resizable{display:block}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer{-webkit-box-sizing:border-box;box-sizing:border-box;width:14px;height:14px;border-radius:50%;background:#e9f4fe;border:3px solid #2492F5;position:absolute}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-left{left:-8px;top:2px;cursor:nwse-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-right{right:-8px;top:1px;cursor:nesw-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-left{left:-9px;bottom:10px;cursor:nesw-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-right{right:-9px;bottom:10px;cursor:nwse-resize}.cdx-image-tool-tune--crop:hover,.cdx-image-tool-tune--crop.isCropping,.cdx-image-tool-tune--resize:hover{z-index:2}.cdx-image-tool-tune--crop .image-tool__image{position:relative}.cdx-image-tool-tune--crop .isCropping .image-tool__image{min-height:600px;min-width:100%}.cdx-image-tool-tune--crop .image-tool__image .crop-btn,.cdx-image-tool-tune--crop .image-tool__image .crop-save{position:absolute;top:0;left:0;padding:7px;background:#2492f5;color:#e9f4fe;text-align:center;line-height:20px;cursor:pointer;display:none}.cdx-image-tool-tune--crop .image-tool__image:hover .crop-btn,.cdx-image-tool-tune--crop .image-tool__image:hover .crop-save{display:block}.cdx-image-tool-tune--crop .image-tool__image img.isCropped{position:absolute;min-width:0;min-width:initial;max-width:none;max-width:initial;min-height:0;min-height:initial;max-height:none;max-height:initial}.cdx-image-tool-tune--crop .cdx-block.image-tool.isCropping{min-width:0!important;min-width:initial!important;max-width:none!important;max-width:initial!important;min-height:0!important;min-height:initial!important;max-height:none!important;max-height:initial!important}.image-tool__caption{background-color:#fff}.image-tool{position:relative;z-index:1}.cdx-image-tool-tune{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;gap:4px;width:100%}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { defineComponent as xn, inject as Rn, onMounted as Nn, toRaw as Mt, onUnmounted as An, watch as _n, createElementBlock as Mn, openBlock as On } from "vue";
|
|
3
|
+
import In from "@ebl-vue/editorjs";
|
|
4
|
+
import { isCaretAtStartOfInput as wn, focus as Hn, getCaretNodeAndOffset as Bn } from "@editorjs/caret";
|
|
5
|
+
import { bundledLanguagesInfo as Dn, codeToHtml as Pn } from "shiki";
|
|
5
6
|
import * as Tt from "@editorjs/dom";
|
|
6
7
|
import { make as Re, isEmpty as $t } from "@editorjs/dom";
|
|
7
|
-
import { focus as Bn, isCaretAtStartOfInput as Dn, getCaretNodeAndOffset as Pn } from "@editorjs/caret";
|
|
8
8
|
import Et from "axios";
|
|
9
9
|
const Kt = Symbol("INSTALLED_KEY"), zn = (_, e) => (_.install = (t) => {
|
|
10
10
|
for (const n of [_, ...Object.values({})]) t.component(n.name, n);
|
|
@@ -34,16 +34,16 @@ function Wn() {
|
|
|
34
34
|
function H(p) {
|
|
35
35
|
return g(p, "body") ? p.body : p.getElementsByTagName("body")[0];
|
|
36
36
|
}
|
|
37
|
-
var B,
|
|
37
|
+
var B, G, ie = {}, de = typeof window != e && typeof document != e, fe = { isHostMethod: c, isHostObject: g, isHostProperty: C, areHostMethods: b, areHostObjects: M, areHostProperties: A, isTextRange: R, getBody: H, forEach: [].forEach ? function(p, x) {
|
|
38
38
|
p.forEach(x);
|
|
39
39
|
} : function(p, x) {
|
|
40
40
|
for (var L = 0, F = p.length; L < F; ++L) x(p[L], L);
|
|
41
41
|
} }, q = { version: "1.3.2", initialized: !1, isBrowser: de, supported: !0, util: fe, features: {}, modules: ie, config: { alertOnFail: !1, alertOnWarn: !1, preferTextRange: !1, autoInitialize: typeof rangyAutoInitialize == e || rangyAutoInitialize } };
|
|
42
|
-
function
|
|
42
|
+
function we(p) {
|
|
43
43
|
typeof console != e && c(console, "log");
|
|
44
44
|
}
|
|
45
45
|
function $e(p, x) {
|
|
46
|
-
de && x ? alert(p) :
|
|
46
|
+
de && x ? alert(p) : we();
|
|
47
47
|
}
|
|
48
48
|
function Ae(p) {
|
|
49
49
|
q.initialized = !0, q.supported = !1, $e("Rangy is not supported in this environment. Reason: " + p, q.config.alertOnFail);
|
|
@@ -74,11 +74,11 @@ function Wn() {
|
|
|
74
74
|
for (var J = [], ee = 0, K = F.length; ee < K; ++ee) J[ee] = F[ee];
|
|
75
75
|
return J;
|
|
76
76
|
}), fe.toArray = p;
|
|
77
|
-
}(), de && (c(document, "addEventListener") ?
|
|
77
|
+
}(), de && (c(document, "addEventListener") ? G = function(p, x, L) {
|
|
78
78
|
p.addEventListener(x, L, !1);
|
|
79
|
-
} : c(document, "attachEvent") ?
|
|
79
|
+
} : c(document, "attachEvent") ? G = function(p, x, L) {
|
|
80
80
|
p.attachEvent("on" + x, L);
|
|
81
|
-
} : Ae("Document does not have required addEventListener or attachEvent method"), fe.addListener =
|
|
81
|
+
} : Ae("Document does not have required addEventListener or attachEvent method"), fe.addListener = G);
|
|
82
82
|
var Be = [];
|
|
83
83
|
function Ye(p) {
|
|
84
84
|
return p.message || p.description || String(p);
|
|
@@ -94,7 +94,7 @@ function Wn() {
|
|
|
94
94
|
for (var K = 0, ue = Be.length; K < ue; ++K) try {
|
|
95
95
|
Be[K](q);
|
|
96
96
|
} catch (r) {
|
|
97
|
-
"" + Ye(r),
|
|
97
|
+
"" + Ye(r), we();
|
|
98
98
|
}
|
|
99
99
|
} else Ae("Neither Range nor TextRange are available");
|
|
100
100
|
else Ae("No body element found");
|
|
@@ -122,7 +122,7 @@ function Wn() {
|
|
|
122
122
|
try {
|
|
123
123
|
L(q, J), J.supported = !0;
|
|
124
124
|
} catch (ee) {
|
|
125
|
-
Ye(ee),
|
|
125
|
+
Ye(ee), we(), ee.stack && we(ee.stack);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
});
|
|
@@ -185,7 +185,7 @@ function Wn() {
|
|
|
185
185
|
}
|
|
186
186
|
return !1;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function w(d, S, D) {
|
|
189
189
|
for (var $, ne = D ? d : d.parentNode; ne; ) {
|
|
190
190
|
if (($ = ne.parentNode) === S) return ne;
|
|
191
191
|
ne = $;
|
|
@@ -296,7 +296,7 @@ function Wn() {
|
|
|
296
296
|
}
|
|
297
297
|
}, getCommonAncestor: h, isAncestorOf: u, isOrIsAncestorOf: function(d, S) {
|
|
298
298
|
return u(d, S, !0);
|
|
299
|
-
}, getClosestAncestorIn:
|
|
299
|
+
}, getClosestAncestorIn: w, isCharacterDataNode: T, isTextOrCommentNode: function(d) {
|
|
300
300
|
if (!d) return !1;
|
|
301
301
|
var S = d.nodeType;
|
|
302
302
|
return S == 3 || S == 8;
|
|
@@ -316,16 +316,16 @@ function Wn() {
|
|
|
316
316
|
for (var S; S = d.parentNode; ) d = S;
|
|
317
317
|
return d;
|
|
318
318
|
}, comparePoints: function(d, S, D, $) {
|
|
319
|
-
var ne, ge, Me, Ce,
|
|
319
|
+
var ne, ge, Me, Ce, ye;
|
|
320
320
|
if (d == D) return S === $ ? 0 : S < $ ? -1 : 1;
|
|
321
|
-
if (ne =
|
|
322
|
-
if (ne =
|
|
321
|
+
if (ne = w(D, d, !0)) return S <= r(ne) ? -1 : 1;
|
|
322
|
+
if (ne = w(d, D, !0)) return r(ne) < $ ? -1 : 1;
|
|
323
323
|
if (!(ge = h(d, D))) throw new Error("comparePoints error: nodes have no common ancestor");
|
|
324
|
-
if ((Me = d === ge ? ge :
|
|
325
|
-
for (
|
|
326
|
-
if (
|
|
327
|
-
if (
|
|
328
|
-
|
|
324
|
+
if ((Me = d === ge ? ge : w(d, ge, !0)) === (Ce = D === ge ? ge : w(D, ge, !0))) throw x.createError("comparePoints got to case 4 and childA and childB are the same!");
|
|
325
|
+
for (ye = ge.firstChild; ye; ) {
|
|
326
|
+
if (ye === Me) return -1;
|
|
327
|
+
if (ye === Ce) return 1;
|
|
328
|
+
ye = ye.nextSibling;
|
|
329
329
|
}
|
|
330
330
|
}, isBrokenNode: Y, inspectNode: Z, getComputedStyleProperty: I, createTestElement: function(d, S, D) {
|
|
331
331
|
var $ = J(d), ne = d.createElement("div");
|
|
@@ -341,7 +341,7 @@ function Wn() {
|
|
|
341
341
|
return new ce(d);
|
|
342
342
|
}, DomPosition: te }, p.DOMException = he;
|
|
343
343
|
}), q.createCoreModule("DomRange", ["DomUtil"], function(p, x) {
|
|
344
|
-
var L = p.dom, F = p.util, J = L.DomPosition, ee = p.DOMException, K = L.isCharacterDataNode, ue = L.getNodeIndex, r = L.isOrIsAncestorOf, h = L.getDocument, u = L.comparePoints,
|
|
344
|
+
var L = p.dom, F = p.util, J = L.DomPosition, ee = p.DOMException, K = L.isCharacterDataNode, ue = L.getNodeIndex, r = L.isOrIsAncestorOf, h = L.getDocument, u = L.comparePoints, w = L.splitDataNode, T = L.getClosestAncestorIn, O = L.getNodeLength, z = L.arrayContains, v = L.getRootContainer, P = p.features.crashyTextNodes, W = L.removeNode;
|
|
345
345
|
function I(o, f) {
|
|
346
346
|
return o.nodeType != 3 && (r(o, f.startContainer) || r(o, f.endContainer));
|
|
347
347
|
}
|
|
@@ -356,7 +356,7 @@ function Wn() {
|
|
|
356
356
|
}
|
|
357
357
|
function ce(o, f, i) {
|
|
358
358
|
var l = o.nodeType == 11 ? o.firstChild : o;
|
|
359
|
-
return K(f) ? i == f.length ? L.insertAfter(o, f) : f.parentNode.insertBefore(o, i == 0 ? f :
|
|
359
|
+
return K(f) ? i == f.length ? L.insertAfter(o, f) : f.parentNode.insertBefore(o, i == 0 ? f : w(f, i)) : i >= f.childNodes.length ? f.appendChild(o) : f.insertBefore(o, f.childNodes[i]), l;
|
|
360
360
|
}
|
|
361
361
|
function te(o, f, i) {
|
|
362
362
|
if (pe(o), pe(f), U(f) != U(o)) throw new ee("WRONG_DOCUMENT_ERR");
|
|
@@ -371,10 +371,10 @@ function Wn() {
|
|
|
371
371
|
return m;
|
|
372
372
|
}
|
|
373
373
|
function d(o, f, i) {
|
|
374
|
-
var l, m, k,
|
|
374
|
+
var l, m, k, y;
|
|
375
375
|
for (i = i || { stop: !1 }; k = o.next(); ) if (o.isPartiallySelectedSubtree()) {
|
|
376
376
|
if (f(k) === !1) return void (i.stop = !0);
|
|
377
|
-
if (d(
|
|
377
|
+
if (d(y = o.getSubtreeIterator(), f, i), y.detach(), i.stop) return;
|
|
378
378
|
} else for (l = L.createIterator(k); m = l.next(); ) if (f(m) === !1) return void (i.stop = !0);
|
|
379
379
|
}
|
|
380
380
|
function S(o) {
|
|
@@ -421,7 +421,7 @@ function Wn() {
|
|
|
421
421
|
}, detach: function() {
|
|
422
422
|
this.range = this._current = this._next = this._first = this._last = this.sc = this.so = this.ec = this.eo = null;
|
|
423
423
|
} };
|
|
424
|
-
var ge = [1, 3, 4, 5, 7, 8, 10], Me = [2, 9, 11], Ce = [1, 3, 4, 5, 7, 8, 10, 11],
|
|
424
|
+
var ge = [1, 3, 4, 5, 7, 8, 10], Me = [2, 9, 11], Ce = [1, 3, 4, 5, 7, 8, 10, 11], ye = [1, 3, 4, 5, 7, 8];
|
|
425
425
|
function Ne(o) {
|
|
426
426
|
return function(f, i) {
|
|
427
427
|
for (var l, m = i ? f : f.parentNode; m; ) {
|
|
@@ -431,7 +431,7 @@ function Wn() {
|
|
|
431
431
|
return null;
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
|
-
var Ie = Ne([9, 11]),
|
|
434
|
+
var Ie = Ne([9, 11]), Xe = Ne([5, 6, 10, 12]), Pe = Ne([6, 10, 12]), nt = Ne([1]);
|
|
435
435
|
function be(o, f) {
|
|
436
436
|
if (Pe(o, f)) throw new ee("INVALID_NODE_TYPE_ERR");
|
|
437
437
|
}
|
|
@@ -441,20 +441,20 @@ function Wn() {
|
|
|
441
441
|
function je(o, f) {
|
|
442
442
|
if (f < 0 || f > (K(o) ? o.length : o.childNodes.length)) throw new ee("INDEX_SIZE_ERR");
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function it(o, f) {
|
|
445
445
|
if (Ie(o, !0) !== Ie(f, !0)) throw new ee("WRONG_DOCUMENT_ERR");
|
|
446
446
|
}
|
|
447
447
|
function ze(o) {
|
|
448
|
-
if (
|
|
448
|
+
if (Xe(o, !0)) throw new ee("NO_MODIFICATION_ALLOWED_ERR");
|
|
449
449
|
}
|
|
450
450
|
function ft(o, f) {
|
|
451
451
|
if (!o) throw new ee(f);
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ge(o, f) {
|
|
454
454
|
return f <= (K(o) ? o.length : o.childNodes.length);
|
|
455
455
|
}
|
|
456
456
|
function mt(o) {
|
|
457
|
-
return !!o.startContainer && !!o.endContainer && !(P && (L.isBrokenNode(o.startContainer) || L.isBrokenNode(o.endContainer))) && v(o.startContainer) == v(o.endContainer) &&
|
|
457
|
+
return !!o.startContainer && !!o.endContainer && !(P && (L.isBrokenNode(o.startContainer) || L.isBrokenNode(o.endContainer))) && v(o.startContainer) == v(o.endContainer) && Ge(o.startContainer, o.startOffset) && Ge(o.endContainer, o.endOffset);
|
|
458
458
|
}
|
|
459
459
|
function pe(o) {
|
|
460
460
|
if (!mt(o)) throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: (" + o.inspect() + ")");
|
|
@@ -476,98 +476,98 @@ function Wn() {
|
|
|
476
476
|
};
|
|
477
477
|
function dt(o, f) {
|
|
478
478
|
pe(o);
|
|
479
|
-
var i = o.startContainer, l = o.startOffset, m = o.endContainer, k = o.endOffset,
|
|
480
|
-
K(m) && k > 0 && k < m.length &&
|
|
479
|
+
var i = o.startContainer, l = o.startOffset, m = o.endContainer, k = o.endOffset, y = i === m;
|
|
480
|
+
K(m) && k > 0 && k < m.length && w(m, k, f), K(i) && l > 0 && l < i.length && (i = w(i, l, f), y ? (k -= l, m = i) : m == i.parentNode && k >= ue(i) && k++, l = 0), o.setStartAndEnd(i, l, m, k);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function st(o) {
|
|
483
483
|
pe(o);
|
|
484
484
|
var f = o.commonAncestorContainer.parentNode.cloneNode(!1);
|
|
485
485
|
return f.appendChild(o.cloneContents()), f.innerHTML;
|
|
486
486
|
}
|
|
487
487
|
var se = ["startContainer", "startOffset", "endContainer", "endOffset", "collapsed", "commonAncestorContainer"];
|
|
488
|
-
function
|
|
488
|
+
function yt(o) {
|
|
489
489
|
o.START_TO_START = 0, o.START_TO_END = 1, o.END_TO_END = 2, o.END_TO_START = 3, o.NODE_BEFORE = 0, o.NODE_AFTER = 1, o.NODE_BEFORE_AND_AFTER = 2, o.NODE_INSIDE = 3;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
|
|
491
|
+
function wt(o) {
|
|
492
|
+
yt(o), yt(o.prototype);
|
|
493
493
|
}
|
|
494
494
|
function Qe(o, f) {
|
|
495
495
|
return function() {
|
|
496
496
|
pe(this);
|
|
497
|
-
var i, l = this.startContainer, m = this.startOffset, k = this.commonAncestorContainer,
|
|
498
|
-
l !== k && (l = (i = Z(T(l, k, !0))).node, m = i.offset), d(
|
|
499
|
-
var N = o(
|
|
500
|
-
return
|
|
497
|
+
var i, l = this.startContainer, m = this.startOffset, k = this.commonAncestorContainer, y = new ne(this, !0);
|
|
498
|
+
l !== k && (l = (i = Z(T(l, k, !0))).node, m = i.offset), d(y, ze), y.reset();
|
|
499
|
+
var N = o(y);
|
|
500
|
+
return y.detach(), f(this, l, m, l, m), N;
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
503
|
function kt(o, f) {
|
|
504
|
-
function i(
|
|
505
|
-
return function(
|
|
506
|
-
Ee(
|
|
507
|
-
var j = (
|
|
504
|
+
function i(y, N) {
|
|
505
|
+
return function(X) {
|
|
506
|
+
Ee(X, ge), Ee(v(X), Me);
|
|
507
|
+
var j = (y ? Y : Z)(X);
|
|
508
508
|
(N ? l : m)(this, j.node, j.offset);
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
|
-
function l(
|
|
512
|
-
var j =
|
|
513
|
-
N ===
|
|
511
|
+
function l(y, N, X) {
|
|
512
|
+
var j = y.endContainer, oe = y.endOffset;
|
|
513
|
+
N === y.startContainer && X === y.startOffset || (v(N) == v(j) && u(N, X, j, oe) != 1 || (j = N, oe = X), f(y, N, X, j, oe));
|
|
514
514
|
}
|
|
515
|
-
function m(
|
|
516
|
-
var j =
|
|
517
|
-
N ===
|
|
515
|
+
function m(y, N, X) {
|
|
516
|
+
var j = y.startContainer, oe = y.startOffset;
|
|
517
|
+
N === y.endContainer && X === y.endOffset || (v(N) == v(j) && u(N, X, j, oe) != -1 || (j = N, oe = X), f(y, j, oe, N, X));
|
|
518
518
|
}
|
|
519
519
|
var k = function() {
|
|
520
520
|
};
|
|
521
|
-
k.prototype = p.rangePrototype, o.prototype = new k(), F.extend(o.prototype, { setStart: function(
|
|
522
|
-
be(
|
|
523
|
-
}, setEnd: function(
|
|
524
|
-
be(
|
|
521
|
+
k.prototype = p.rangePrototype, o.prototype = new k(), F.extend(o.prototype, { setStart: function(y, N) {
|
|
522
|
+
be(y, !0), je(y, N), l(this, y, N);
|
|
523
|
+
}, setEnd: function(y, N) {
|
|
524
|
+
be(y, !0), je(y, N), m(this, y, N);
|
|
525
525
|
}, setStartAndEnd: function() {
|
|
526
|
-
var
|
|
527
|
-
switch (
|
|
526
|
+
var y = arguments, N = y[0], X = y[1], j = N, oe = X;
|
|
527
|
+
switch (y.length) {
|
|
528
528
|
case 3:
|
|
529
|
-
oe =
|
|
529
|
+
oe = y[2];
|
|
530
530
|
break;
|
|
531
531
|
case 4:
|
|
532
|
-
j =
|
|
532
|
+
j = y[2], oe = y[3];
|
|
533
533
|
}
|
|
534
|
-
be(N, !0), je(N,
|
|
535
|
-
}, setBoundary: function(
|
|
536
|
-
this["set" + (
|
|
537
|
-
}, setStartBefore: i(!0, !0), setStartAfter: i(!1, !0), setEndBefore: i(!0, !1), setEndAfter: i(!1, !1), collapse: function(
|
|
538
|
-
pe(this),
|
|
539
|
-
}, selectNodeContents: function(
|
|
540
|
-
be(
|
|
541
|
-
}, selectNode: function(
|
|
542
|
-
be(
|
|
543
|
-
var N = Y(
|
|
544
|
-
f(this, N.node, N.offset,
|
|
534
|
+
be(N, !0), je(N, X), be(j, !0), je(j, oe), f(this, N, X, j, oe);
|
|
535
|
+
}, setBoundary: function(y, N, X) {
|
|
536
|
+
this["set" + (X ? "Start" : "End")](y, N);
|
|
537
|
+
}, setStartBefore: i(!0, !0), setStartAfter: i(!1, !0), setEndBefore: i(!0, !1), setEndAfter: i(!1, !1), collapse: function(y) {
|
|
538
|
+
pe(this), y ? f(this, this.startContainer, this.startOffset, this.startContainer, this.startOffset) : f(this, this.endContainer, this.endOffset, this.endContainer, this.endOffset);
|
|
539
|
+
}, selectNodeContents: function(y) {
|
|
540
|
+
be(y, !0), f(this, y, 0, y, O(y));
|
|
541
|
+
}, selectNode: function(y) {
|
|
542
|
+
be(y, !1), Ee(y, ge);
|
|
543
|
+
var N = Y(y), X = Z(y);
|
|
544
|
+
f(this, N.node, N.offset, X.node, X.offset);
|
|
545
545
|
}, extractContents: Qe(D, f), deleteContents: Qe(S, f), canSurroundContents: function() {
|
|
546
546
|
pe(this), ze(this.startContainer), ze(this.endContainer);
|
|
547
|
-
var
|
|
548
|
-
return
|
|
547
|
+
var y = new ne(this, !0), N = y._first && I(y._first, this) || y._last && I(y._last, this);
|
|
548
|
+
return y.detach(), !N;
|
|
549
549
|
}, splitBoundaries: function() {
|
|
550
550
|
dt(this);
|
|
551
|
-
}, splitBoundariesPreservingPositions: function(
|
|
552
|
-
dt(this,
|
|
551
|
+
}, splitBoundariesPreservingPositions: function(y) {
|
|
552
|
+
dt(this, y);
|
|
553
553
|
}, normalizeBoundaries: function() {
|
|
554
554
|
pe(this);
|
|
555
|
-
var
|
|
555
|
+
var y, N = this.startContainer, X = this.startOffset, j = this.endContainer, oe = this.endOffset, Je = function(Le) {
|
|
556
556
|
var We = Le.nextSibling;
|
|
557
557
|
We && We.nodeType == Le.nodeType && (j = Le, oe = Le.length, Le.appendData(We.data), W(We));
|
|
558
558
|
}, ht = function(Le) {
|
|
559
559
|
var We = Le.previousSibling;
|
|
560
560
|
if (We && We.nodeType == Le.nodeType) {
|
|
561
561
|
N = Le;
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
562
|
+
var Ln = Le.length;
|
|
563
|
+
if (X = We.length, Le.insertData(0, We.data), W(We), N == j) oe += X, j = N;
|
|
564
564
|
else if (j == Le.parentNode) {
|
|
565
565
|
var Vt = ue(Le);
|
|
566
|
-
oe == Vt ? (j = Le, oe =
|
|
566
|
+
oe == Vt ? (j = Le, oe = Ln) : oe > Vt && oe--;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
}, Nt = !0;
|
|
570
|
-
if (K(j)) oe == j.length ? Je(j) : oe == 0 && (
|
|
570
|
+
if (K(j)) oe == j.length ? Je(j) : oe == 0 && (y = j.previousSibling) && y.nodeType == j.nodeType && (oe = y.length, N == j && (Nt = !1), y.appendData(j.data), W(j), j = y);
|
|
571
571
|
else {
|
|
572
572
|
if (oe > 0) {
|
|
573
573
|
var At = j.childNodes[oe - 1];
|
|
@@ -576,18 +576,18 @@ function Wn() {
|
|
|
576
576
|
Nt = !this.collapsed;
|
|
577
577
|
}
|
|
578
578
|
if (Nt) {
|
|
579
|
-
if (K(N))
|
|
580
|
-
else if (
|
|
581
|
-
var _t = N.childNodes[
|
|
579
|
+
if (K(N)) X == 0 ? ht(N) : X == N.length && (y = N.nextSibling) && y.nodeType == N.nodeType && (j == y && (j = N, oe += N.length), N.appendData(y.data), W(y));
|
|
580
|
+
else if (X < N.childNodes.length) {
|
|
581
|
+
var _t = N.childNodes[X];
|
|
582
582
|
_t && K(_t) && ht(_t);
|
|
583
583
|
}
|
|
584
|
-
} else N = j,
|
|
585
|
-
f(this, N,
|
|
586
|
-
}, collapseToPoint: function(
|
|
587
|
-
be(
|
|
584
|
+
} else N = j, X = oe;
|
|
585
|
+
f(this, N, X, j, oe);
|
|
586
|
+
}, collapseToPoint: function(y, N) {
|
|
587
|
+
be(y, !0), je(y, N), this.setStartAndEnd(y, N);
|
|
588
588
|
}, parentElement: function() {
|
|
589
|
-
return pe(this), this.commonAncestorContainer ?
|
|
590
|
-
} }),
|
|
589
|
+
return pe(this), this.commonAncestorContainer ? nt(this.commonAncestorContainer, !0) : null;
|
|
590
|
+
} }), wt(o);
|
|
591
591
|
}
|
|
592
592
|
function Ze(o, f, i, l, m) {
|
|
593
593
|
o.startContainer = f, o.startOffset = i, o.endContainer = l, o.endOffset = m, o.document = L.getDocument(f), function(k) {
|
|
@@ -599,9 +599,9 @@ function Wn() {
|
|
|
599
599
|
}
|
|
600
600
|
F.extend(p.rangePrototype, { compareBoundaryPoints: function(o, f) {
|
|
601
601
|
var i, l, m, k;
|
|
602
|
-
pe(this),
|
|
603
|
-
var
|
|
604
|
-
return i = this[
|
|
602
|
+
pe(this), it(this.startContainer, f.startContainer);
|
|
603
|
+
var y = o == 3 || o == 0 ? "start" : "end", N = o == 1 || o == 0 ? "start" : "end";
|
|
604
|
+
return i = this[y + "Container"], l = this[y + "Offset"], m = f[N + "Container"], k = f[N + "Offset"], u(i, l, m, k);
|
|
605
605
|
}, insertNode: function(o) {
|
|
606
606
|
if (pe(this), Ee(o, Ce), ze(this.startContainer), r(o, this.startContainer)) throw new ee("HIERARCHY_REQUEST_ERR");
|
|
607
607
|
var f = ce(o, this.startContainer, this.startOffset);
|
|
@@ -617,7 +617,7 @@ function Wn() {
|
|
|
617
617
|
var o = new ne(this, !0), f = o._first && I(o._first, this) || o._last && I(o._last, this);
|
|
618
618
|
return o.detach(), !f;
|
|
619
619
|
}, surroundContents: function(o) {
|
|
620
|
-
if (Ee(o,
|
|
620
|
+
if (Ee(o, ye), !this.canSurroundContents()) throw new ee("INVALID_STATE_ERR");
|
|
621
621
|
var f = this.extractContents();
|
|
622
622
|
if (o.hasChildNodes()) for (; o.lastChild; ) o.removeChild(o.lastChild);
|
|
623
623
|
ce(o, this.startContainer, this.startOffset), o.appendChild(f), this.selectNode(o);
|
|
@@ -640,9 +640,9 @@ function Wn() {
|
|
|
640
640
|
var l = this.comparePoint(f, i), m = this.comparePoint(f, i + 1);
|
|
641
641
|
return l < 0 ? m > 0 ? 2 : 0 : m > 0 ? 1 : 3;
|
|
642
642
|
}, comparePoint: function(o, f) {
|
|
643
|
-
return pe(this), ft(o, "HIERARCHY_REQUEST_ERR"),
|
|
643
|
+
return pe(this), ft(o, "HIERARCHY_REQUEST_ERR"), it(o, this.startContainer), u(o, f, this.startContainer, this.startOffset) < 0 ? -1 : u(o, f, this.endContainer, this.endOffset) > 0 ? 1 : 0;
|
|
644
644
|
}, createContextualFragment: Ct, toHtml: function() {
|
|
645
|
-
return
|
|
645
|
+
return st(this);
|
|
646
646
|
}, intersectsNode: function(o, f) {
|
|
647
647
|
if (pe(this), v(o) != v(this.startContainer)) return !1;
|
|
648
648
|
var i = o.parentNode, l = ue(o);
|
|
@@ -650,7 +650,7 @@ function Wn() {
|
|
|
650
650
|
var m = u(i, l, this.endContainer, this.endOffset), k = u(i, l + 1, this.startContainer, this.startOffset);
|
|
651
651
|
return f ? m <= 0 && k >= 0 : m < 0 && k > 0;
|
|
652
652
|
}, isPointInRange: function(o, f) {
|
|
653
|
-
return pe(this), ft(o, "HIERARCHY_REQUEST_ERR"),
|
|
653
|
+
return pe(this), ft(o, "HIERARCHY_REQUEST_ERR"), it(o, this.startContainer), u(o, f, this.startContainer, this.startOffset) >= 0 && u(o, f, this.endContainer, this.endOffset) <= 0;
|
|
654
654
|
}, intersectsRange: function(o) {
|
|
655
655
|
return te(this, o, !1);
|
|
656
656
|
}, intersectsOrTouchesRange: function(o) {
|
|
@@ -686,18 +686,18 @@ function Wn() {
|
|
|
686
686
|
return this.containsNodeContents(o);
|
|
687
687
|
}, getNodes: function(o, f) {
|
|
688
688
|
return pe(this), function(i, l, m) {
|
|
689
|
-
var k,
|
|
690
|
-
|
|
691
|
-
var
|
|
689
|
+
var k, y = !(!l || !l.length), N = !!m;
|
|
690
|
+
y && (k = new RegExp("^(" + l.join("|") + ")$"));
|
|
691
|
+
var X = [];
|
|
692
692
|
return d(new ne(i, !1), function(j) {
|
|
693
|
-
if ((!
|
|
693
|
+
if ((!y || k.test(j.nodeType)) && (!N || m(j))) {
|
|
694
694
|
var oe = i.startContainer;
|
|
695
695
|
if (j != oe || !K(oe) || i.startOffset != oe.length) {
|
|
696
696
|
var Je = i.endContainer;
|
|
697
|
-
j == Je && K(Je) && i.endOffset == 0 ||
|
|
697
|
+
j == Je && K(Je) && i.endOffset == 0 || X.push(j);
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
}),
|
|
700
|
+
}), X;
|
|
701
701
|
}(this, o, f);
|
|
702
702
|
}, getDocument: function() {
|
|
703
703
|
return U(this);
|
|
@@ -713,8 +713,8 @@ function Wn() {
|
|
|
713
713
|
}, moveToBookmark: function(o) {
|
|
714
714
|
var f = o.containerNode, i = 0;
|
|
715
715
|
this.setStart(f, 0), this.collapse(!0);
|
|
716
|
-
for (var l, m, k,
|
|
717
|
-
else for (k = (
|
|
716
|
+
for (var l, m, k, y, N = [f], X = !1, j = !1; !j && (l = N.pop()); ) if (l.nodeType == 3) m = i + l.length, !X && o.start >= i && o.start <= m && (this.setStart(l, o.start - i), X = !0), X && o.end >= i && o.end <= m && (this.setEnd(l, o.end - i), j = !0), i = m;
|
|
717
|
+
else for (k = (y = l.childNodes).length; k--; ) N.push(y[k]);
|
|
718
718
|
}, getName: function() {
|
|
719
719
|
return "DomRange";
|
|
720
720
|
}, equals: function(o) {
|
|
@@ -724,7 +724,7 @@ function Wn() {
|
|
|
724
724
|
}, inspect: function() {
|
|
725
725
|
return $(this);
|
|
726
726
|
}, detach: function() {
|
|
727
|
-
} }), kt(Ve, Ze), F.extend(Ve, { rangeProperties: se, RangeIterator: ne, copyComparisonConstants:
|
|
727
|
+
} }), kt(Ve, Ze), F.extend(Ve, { rangeProperties: se, RangeIterator: ne, copyComparisonConstants: wt, createPrototypeRange: kt, inspect: $, toHtml: st, getRangeDocument: U, rangesEqual: function(o, f) {
|
|
728
728
|
return o.startContainer === f.startContainer && o.startOffset === f.startOffset && o.endContainer === f.endContainer && o.endOffset === f.endOffset;
|
|
729
729
|
} }), p.DomRange = Ve;
|
|
730
730
|
}), q.createCoreModule("WrappedRange", ["DomRange"], function(p, x) {
|
|
@@ -821,7 +821,7 @@ function Wn() {
|
|
|
821
821
|
return (d = h(d, x, "createNativeRange")).createRange();
|
|
822
822
|
};
|
|
823
823
|
}(), p.features.implementsTextRange) {
|
|
824
|
-
var
|
|
824
|
+
var w = function(v, P, W, I, U) {
|
|
825
825
|
var Y = v.duplicate();
|
|
826
826
|
Y.collapse(W);
|
|
827
827
|
var Z = Y.parentElement();
|
|
@@ -831,22 +831,22 @@ function Wn() {
|
|
|
831
831
|
}
|
|
832
832
|
var te = J.getDocument(Z).createElement("span");
|
|
833
833
|
te.parentNode && J.removeNode(te);
|
|
834
|
-
for (var he, d, S, D, $, ne = W ? "StartToStart" : "StartToEnd", ge = U && U.containerElement == Z ? U.nodeIndex : 0, Me = Z.childNodes.length, Ce = Me,
|
|
834
|
+
for (var he, d, S, D, $, ne = W ? "StartToStart" : "StartToEnd", ge = U && U.containerElement == Z ? U.nodeIndex : 0, Me = Z.childNodes.length, Ce = Me, ye = Ce; ye == Me ? Z.appendChild(te) : Z.insertBefore(te, Z.childNodes[ye]), Y.moveToElementText(te), (he = Y.compareEndPoints(ne, v)) != 0 && ge != Ce; ) {
|
|
835
835
|
if (he == -1) {
|
|
836
836
|
if (Ce == ge + 1) break;
|
|
837
|
-
ge =
|
|
838
|
-
} else Ce = Ce == ge + 1 ? ge :
|
|
839
|
-
|
|
837
|
+
ge = ye;
|
|
838
|
+
} else Ce = Ce == ge + 1 ? ge : ye;
|
|
839
|
+
ye = Math.floor((ge + Ce) / 2), Z.removeChild(te);
|
|
840
840
|
}
|
|
841
841
|
if ($ = te.nextSibling, he == -1 && $ && u($)) {
|
|
842
842
|
var Ne;
|
|
843
843
|
if (Y.setEndPoint(W ? "EndToStart" : "EndToEnd", v), /[\r\n]/.test($.data)) {
|
|
844
|
-
var Ie = Y.duplicate(),
|
|
845
|
-
for (Ne = Ie.moveStart("character",
|
|
844
|
+
var Ie = Y.duplicate(), Xe = Ie.text.replace(/\r\n/g, "\r").length;
|
|
845
|
+
for (Ne = Ie.moveStart("character", Xe); (he = Ie.compareEndPoints("StartToEnd", Ie)) == -1; ) Ne++, Ie.moveStart("character", 1);
|
|
846
846
|
} else Ne = Y.text.length;
|
|
847
847
|
D = new K($, Ne);
|
|
848
848
|
} else d = (I || !W) && te.previousSibling, D = (S = (I || W) && te.nextSibling) && u(S) ? new K(S, 0) : d && u(d) ? new K(d, d.data.length) : new K(Z, J.getNodeIndex(te));
|
|
849
|
-
return J.removeNode(te), { boundaryPosition: D, nodeInfo: { nodeIndex:
|
|
849
|
+
return J.removeNode(te), { boundaryPosition: D, nodeInfo: { nodeIndex: ye, containerElement: Z } };
|
|
850
850
|
}, T = function(v, P) {
|
|
851
851
|
var W, I, U, Y, Z = v.offset, ce = J.getDocument(v.node), te = r(ce).createTextRange(), he = u(v.node);
|
|
852
852
|
return he ? I = (W = v.node).parentNode : (W = Z < (Y = v.node.childNodes).length ? Y[Z] : null, I = v.node), (U = ce.createElement("span")).innerHTML = "&#feff;", W ? I.insertBefore(U, W) : I.appendChild(U), te.moveToElementText(U), te.collapse(!P), I.removeChild(U), he && te[P ? "moveStart" : "moveEnd"]("character", Z), te;
|
|
@@ -862,7 +862,7 @@ function Wn() {
|
|
|
862
862
|
var he = ce.parentElement(), d = te == he ? te : J.getCommonAncestor(te, he);
|
|
863
863
|
return d == Z ? d : J.getCommonAncestor(Z, d);
|
|
864
864
|
}(this.textRange);
|
|
865
|
-
(I = this.textRange).compareEndPoints("StartToEnd", I) == 0 ? P = v =
|
|
865
|
+
(I = this.textRange).compareEndPoints("StartToEnd", I) == 0 ? P = v = w(this.textRange, U, !0, !0).boundaryPosition : (v = (W = w(this.textRange, U, !0, !1)).boundaryPosition, P = w(this.textRange, U, !1, !1, W.nodeInfo).boundaryPosition), this.setStart(v.node, v.offset), this.setEnd(P.node, P.offset);
|
|
866
866
|
}, F.prototype.getName = function() {
|
|
867
867
|
return "WrappedTextRange";
|
|
868
868
|
}, ue.copyComparisonConstants(F);
|
|
@@ -892,7 +892,7 @@ function Wn() {
|
|
|
892
892
|
});
|
|
893
893
|
}), q.createCoreModule("WrappedSelection", ["DomRange", "WrappedRange"], function(p, x) {
|
|
894
894
|
p.config.checkSelectionRanges = !0;
|
|
895
|
-
var L, F, J = "boolean", ee = "number", K = p.dom, ue = p.util, r = ue.isHostMethod, h = p.DomRange, u = p.WrappedRange,
|
|
895
|
+
var L, F, J = "boolean", ee = "number", K = p.dom, ue = p.util, r = ue.isHostMethod, h = p.DomRange, u = p.WrappedRange, w = p.DOMException, T = K.DomPosition, O = p.features, z = "Control", v = K.getDocument, P = K.getBody, W = h.rangesEqual;
|
|
896
896
|
function I(i) {
|
|
897
897
|
return typeof i == "string" ? /^backward(s)?$/i.test(i) : !!i;
|
|
898
898
|
}
|
|
@@ -938,16 +938,16 @@ function Wn() {
|
|
|
938
938
|
O.selectionHasSetBaseAndExtent = ge;
|
|
939
939
|
var Me = typeof d.rangeCount == ee;
|
|
940
940
|
O.selectionHasRangeCount = Me;
|
|
941
|
-
var Ce = !1,
|
|
941
|
+
var Ce = !1, ye = !0, Ne = ne ? function(i, l) {
|
|
942
942
|
var m = h.getRangeDocument(l), k = p.createRange(m);
|
|
943
943
|
k.collapseToPoint(l.endContainer, l.endOffset), i.addRange(je(k)), i.extend(l.startContainer, l.startOffset);
|
|
944
944
|
} : null;
|
|
945
945
|
ue.areHostMethods(d, ["addRange", "getRangeAt", "removeAllRanges"]) && typeof d.rangeCount == ee && O.implementsDomRange && function() {
|
|
946
946
|
var i = window.getSelection();
|
|
947
947
|
if (i) {
|
|
948
|
-
for (var l = i.rangeCount, m = l > 1, k = [],
|
|
949
|
-
var
|
|
950
|
-
if (oe.setStart(j, 1), oe.collapse(!0), i.removeAllRanges(), i.addRange(oe),
|
|
948
|
+
for (var l = i.rangeCount, m = l > 1, k = [], y = Z(i), N = 0; N < l; ++N) k[N] = i.getRangeAt(N);
|
|
949
|
+
var X = K.createTestElement(document, "", !1), j = X.appendChild(document.createTextNode(" ")), oe = document.createRange();
|
|
950
|
+
if (oe.setStart(j, 1), oe.collapse(!0), i.removeAllRanges(), i.addRange(oe), ye = i.rangeCount == 1, i.removeAllRanges(), !m) {
|
|
951
951
|
var Je = window.navigator.appVersion.match(/Chrome\/(.*?) /);
|
|
952
952
|
if (Je && parseInt(Je[1]) >= 36) Ce = !1;
|
|
953
953
|
else {
|
|
@@ -955,13 +955,13 @@ function Wn() {
|
|
|
955
955
|
oe.setStart(j, 0), ht.setEnd(j, 3), ht.setStart(j, 2), i.addRange(oe), i.addRange(ht), Ce = i.rangeCount == 2;
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
for (K.removeNode(
|
|
958
|
+
for (K.removeNode(X), i.removeAllRanges(), N = 0; N < l; ++N) N == 0 && y ? Ne ? Ne(i, k[N]) : (p.warn("Rangy initialization: original selection was backwards but selection has been restored forwards because the browser does not support Selection.extend"), i.addRange(k[N])) : i.addRange(k[N]);
|
|
959
959
|
}
|
|
960
|
-
}(), O.selectionSupportsMultipleRanges = Ce, O.collapsedNonEditableSelectionsSupported =
|
|
961
|
-
var Ie,
|
|
962
|
-
function
|
|
963
|
-
var k = m ? "end" : "start",
|
|
964
|
-
i.anchorNode = l[k + "Container"], i.anchorOffset = l[k + "Offset"], i.focusNode = l[
|
|
960
|
+
}(), O.selectionSupportsMultipleRanges = Ce, O.collapsedNonEditableSelectionsSupported = ye;
|
|
961
|
+
var Ie, Xe, Pe = !1;
|
|
962
|
+
function nt(i, l, m) {
|
|
963
|
+
var k = m ? "end" : "start", y = m ? "start" : "end";
|
|
964
|
+
i.anchorNode = l[k + "Container"], i.anchorOffset = l[k + "Offset"], i.focusNode = l[y + "Container"], i.focusOffset = l[y + "Offset"];
|
|
965
965
|
}
|
|
966
966
|
function be(i) {
|
|
967
967
|
i.anchorNode = i.focusNode = null, i.anchorOffset = i.focusOffset = 0, i.rangeCount = 0, i.isCollapsed = !0, i._ranges.length = 0, Ee(i);
|
|
@@ -973,11 +973,11 @@ function Wn() {
|
|
|
973
973
|
var l;
|
|
974
974
|
return i instanceof h ? ((l = p.createNativeRange(i.getDocument())).setEnd(i.endContainer, i.endOffset), l.setStart(i.startContainer, i.startOffset)) : i instanceof u ? l = i.nativeRange : O.implementsDomRange && i instanceof K.getWindow(i.startContainer).Range && (l = i), l;
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function it(i) {
|
|
977
977
|
var l = i.getNodes();
|
|
978
978
|
if (!function(m) {
|
|
979
979
|
if (!m.length || m[0].nodeType != 1) return !1;
|
|
980
|
-
for (var k = 1,
|
|
980
|
+
for (var k = 1, y = m.length; k < y; ++k) if (!K.isAncestorOf(m[0], m[k])) return !1;
|
|
981
981
|
return !0;
|
|
982
982
|
}(l)) throw x.createError("getSingleElementFromRange: range " + i.inspect() + " did not consist of a single element");
|
|
983
983
|
return l[0];
|
|
@@ -987,28 +987,28 @@ function Wn() {
|
|
|
987
987
|
}
|
|
988
988
|
function ft(i, l) {
|
|
989
989
|
var m = new u(l);
|
|
990
|
-
i._ranges = [m],
|
|
990
|
+
i._ranges = [m], nt(i, m, !1), i.rangeCount = 1, i.isCollapsed = m.collapsed, Ee(i);
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function Ge(i) {
|
|
993
993
|
if (i._ranges.length = 0, i.docSelection.type == "None") be(i);
|
|
994
994
|
else {
|
|
995
995
|
var l = i.docSelection.createRange();
|
|
996
996
|
if (ze(l)) ft(i, l);
|
|
997
997
|
else {
|
|
998
998
|
i.rangeCount = l.length;
|
|
999
|
-
for (var m, k = v(l.item(0)),
|
|
1000
|
-
i.isCollapsed = i.rangeCount == 1 && i._ranges[0].collapsed,
|
|
999
|
+
for (var m, k = v(l.item(0)), y = 0; y < i.rangeCount; ++y) (m = p.createRange(k)).selectNode(l.item(y)), i._ranges.push(m);
|
|
1000
|
+
i.isCollapsed = i.rangeCount == 1 && i._ranges[0].collapsed, nt(i, i._ranges[i.rangeCount - 1], !1), Ee(i);
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
function mt(i, l) {
|
|
1005
|
-
for (var m = i.docSelection.createRange(), k =
|
|
1005
|
+
for (var m = i.docSelection.createRange(), k = it(l), y = v(m.item(0)), N = P(y).createControlRange(), X = 0, j = m.length; X < j; ++X) N.add(m.item(X));
|
|
1006
1006
|
try {
|
|
1007
1007
|
N.add(k);
|
|
1008
1008
|
} catch (oe) {
|
|
1009
1009
|
throw x.createError("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)");
|
|
1010
1010
|
}
|
|
1011
|
-
N.select(),
|
|
1011
|
+
N.select(), Ge(i);
|
|
1012
1012
|
}
|
|
1013
1013
|
function pe(i, l, m) {
|
|
1014
1014
|
this.nativeSelection = i, this.docSelection = l, this._ranges = [], this.win = m, this.refresh();
|
|
@@ -1020,20 +1020,20 @@ function Wn() {
|
|
|
1020
1020
|
return i.anchorNode === i.focusNode && i.anchorOffset === i.focusOffset;
|
|
1021
1021
|
} : function(i) {
|
|
1022
1022
|
return !!i.rangeCount && i.getRangeAt(i.rangeCount - 1).collapsed;
|
|
1023
|
-
}, r(d, "getRangeAt") ?
|
|
1023
|
+
}, r(d, "getRangeAt") ? Xe = function(i, l) {
|
|
1024
1024
|
try {
|
|
1025
1025
|
return i.getRangeAt(l);
|
|
1026
1026
|
} catch (m) {
|
|
1027
1027
|
return null;
|
|
1028
1028
|
}
|
|
1029
|
-
} : $ && (
|
|
1029
|
+
} : $ && (Xe = function(i) {
|
|
1030
1030
|
var l = v(i.anchorNode), m = p.createRange(l);
|
|
1031
1031
|
return m.setStartAndEnd(i.anchorNode, i.anchorOffset, i.focusNode, i.focusOffset), m.collapsed !== this.isCollapsed && m.setStartAndEnd(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset), m;
|
|
1032
1032
|
}), pe.prototype = p.selectionPrototype;
|
|
1033
1033
|
var qe = [];
|
|
1034
1034
|
function Ct(i, l) {
|
|
1035
|
-
for (var m, k,
|
|
1036
|
-
else if (m.win == i) return l == "delete" ? (qe.splice(
|
|
1035
|
+
for (var m, k, y = qe.length; y--; ) if (k = (m = qe[y]).selection, l == "deleteAll") vt(k);
|
|
1036
|
+
else if (m.win == i) return l == "delete" ? (qe.splice(y, 1), !0) : k;
|
|
1037
1037
|
return l == "deleteAll" && (qe.length = 0), null;
|
|
1038
1038
|
}
|
|
1039
1039
|
var dt = function(i) {
|
|
@@ -1042,28 +1042,28 @@ function Wn() {
|
|
|
1042
1042
|
return l ? (l.nativeSelection = m, l.docSelection = k, l.refresh()) : (l = new pe(m, k, i), qe.push({ win: i, selection: l })), l;
|
|
1043
1043
|
};
|
|
1044
1044
|
p.getSelection = dt, ue.createAliasForDeprecatedMethod(p, "getIframeSelection", "getSelection");
|
|
1045
|
-
var
|
|
1046
|
-
function
|
|
1047
|
-
for (var m, k = v(l[0].startContainer),
|
|
1048
|
-
m =
|
|
1045
|
+
var st, se = pe.prototype;
|
|
1046
|
+
function yt(i, l) {
|
|
1047
|
+
for (var m, k = v(l[0].startContainer), y = P(k).createControlRange(), N = 0, X = l.length; N < X; ++N) {
|
|
1048
|
+
m = it(l[N]);
|
|
1049
1049
|
try {
|
|
1050
|
-
|
|
1050
|
+
y.add(m);
|
|
1051
1051
|
} catch (j) {
|
|
1052
1052
|
throw x.createError("setRanges(): Element within one of the specified Ranges could not be added to control selection (does it have layout?)");
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
|
-
|
|
1055
|
+
y.select(), Ge(i);
|
|
1056
1056
|
}
|
|
1057
1057
|
if (!he && $ && ue.areHostMethods(d, ["removeAllRanges", "addRange"])) {
|
|
1058
1058
|
se.removeAllRanges = function() {
|
|
1059
1059
|
this.nativeSelection.removeAllRanges(), be(this);
|
|
1060
1060
|
};
|
|
1061
|
-
var
|
|
1061
|
+
var wt = function(i, l) {
|
|
1062
1062
|
Ne(i.nativeSelection, l), i.refresh();
|
|
1063
1063
|
};
|
|
1064
1064
|
se.addRange = Me ? function(i, l) {
|
|
1065
1065
|
if (Pe && te && this.docSelection.type == z) mt(this, i);
|
|
1066
|
-
else if (I(l) && ne)
|
|
1066
|
+
else if (I(l) && ne) wt(this, i);
|
|
1067
1067
|
else {
|
|
1068
1068
|
var m;
|
|
1069
1069
|
Ce ? m = this.rangeCount : (this.removeAllRanges(), m = 0);
|
|
@@ -1074,16 +1074,16 @@ function Wn() {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
if (this.rangeCount = this.nativeSelection.rangeCount, this.rangeCount == m + 1) {
|
|
1076
1076
|
if (p.config.checkSelectionRanges) {
|
|
1077
|
-
var
|
|
1078
|
-
|
|
1077
|
+
var y = Xe(this.nativeSelection, this.rangeCount - 1);
|
|
1078
|
+
y && !W(y, i) && (i = new u(y));
|
|
1079
1079
|
}
|
|
1080
|
-
this._ranges[this.rangeCount - 1] = i,
|
|
1080
|
+
this._ranges[this.rangeCount - 1] = i, nt(this, i, Qe(this.nativeSelection)), this.isCollapsed = F(this), Ee(this);
|
|
1081
1081
|
} else this.refresh();
|
|
1082
1082
|
}
|
|
1083
1083
|
} : function(i, l) {
|
|
1084
|
-
I(l) && ne ?
|
|
1084
|
+
I(l) && ne ? wt(this, i) : (this.nativeSelection.addRange(je(i)), this.refresh());
|
|
1085
1085
|
}, se.setRanges = function(i) {
|
|
1086
|
-
if (Pe && te && i.length > 1)
|
|
1086
|
+
if (Pe && te && i.length > 1) yt(this, i);
|
|
1087
1087
|
else {
|
|
1088
1088
|
this.removeAllRanges();
|
|
1089
1089
|
for (var l = 0, m = i.length; l < m; ++l) this.addRange(i[l]);
|
|
@@ -1106,57 +1106,57 @@ function Wn() {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
be(this);
|
|
1108
1108
|
}, se.addRange = function(i) {
|
|
1109
|
-
this.docSelection.type == z ? mt(this, i) : (p.WrappedTextRange.rangeToTextRange(i).select(), this._ranges[0] = i, this.rangeCount = 1, this.isCollapsed = this._ranges[0].collapsed,
|
|
1109
|
+
this.docSelection.type == z ? mt(this, i) : (p.WrappedTextRange.rangeToTextRange(i).select(), this._ranges[0] = i, this.rangeCount = 1, this.isCollapsed = this._ranges[0].collapsed, nt(this, i, !1), Ee(this));
|
|
1110
1110
|
}, se.setRanges = function(i) {
|
|
1111
1111
|
this.removeAllRanges();
|
|
1112
1112
|
var l = i.length;
|
|
1113
|
-
l > 1 ?
|
|
1113
|
+
l > 1 ? yt(this, i) : l && this.addRange(i[0]);
|
|
1114
1114
|
};
|
|
1115
1115
|
}
|
|
1116
1116
|
if (se.getRangeAt = function(i) {
|
|
1117
|
-
if (i < 0 || i >= this.rangeCount) throw new
|
|
1117
|
+
if (i < 0 || i >= this.rangeCount) throw new w("INDEX_SIZE_ERR");
|
|
1118
1118
|
return this._ranges[i].cloneRange();
|
|
1119
|
-
}, he)
|
|
1119
|
+
}, he) st = function(i) {
|
|
1120
1120
|
var l;
|
|
1121
|
-
p.isSelectionValid(i.win) ? l = i.docSelection.createRange() : (l = P(i.win.document).createTextRange()).collapse(!0), i.docSelection.type == z ?
|
|
1121
|
+
p.isSelectionValid(i.win) ? l = i.docSelection.createRange() : (l = P(i.win.document).createTextRange()).collapse(!0), i.docSelection.type == z ? Ge(i) : ze(l) ? ft(i, l) : be(i);
|
|
1122
1122
|
};
|
|
1123
|
-
else if (r(d, "getRangeAt") && typeof d.rangeCount == ee)
|
|
1124
|
-
if (Pe && te && i.docSelection.type == z)
|
|
1123
|
+
else if (r(d, "getRangeAt") && typeof d.rangeCount == ee) st = function(i) {
|
|
1124
|
+
if (Pe && te && i.docSelection.type == z) Ge(i);
|
|
1125
1125
|
else if (i._ranges.length = i.rangeCount = i.nativeSelection.rangeCount, i.rangeCount) {
|
|
1126
1126
|
for (var l = 0, m = i.rangeCount; l < m; ++l) i._ranges[l] = new p.WrappedRange(i.nativeSelection.getRangeAt(l));
|
|
1127
|
-
|
|
1127
|
+
nt(i, i._ranges[i.rangeCount - 1], Qe(i.nativeSelection)), i.isCollapsed = F(i), Ee(i);
|
|
1128
1128
|
} else be(i);
|
|
1129
1129
|
};
|
|
1130
1130
|
else {
|
|
1131
1131
|
if (!$ || typeof d.isCollapsed != J || typeof S.collapsed != J || !O.implementsDomRange) return x.fail("No means of obtaining a Range or TextRange from the user's selection was found"), !1;
|
|
1132
|
-
|
|
1132
|
+
st = function(i) {
|
|
1133
1133
|
var l, m = i.nativeSelection;
|
|
1134
|
-
m.anchorNode ? (l =
|
|
1135
|
-
var
|
|
1136
|
-
k.anchorNode =
|
|
1134
|
+
m.anchorNode ? (l = Xe(m, 0), i._ranges = [l], i.rangeCount = 1, function(k) {
|
|
1135
|
+
var y = k.nativeSelection;
|
|
1136
|
+
k.anchorNode = y.anchorNode, k.anchorOffset = y.anchorOffset, k.focusNode = y.focusNode, k.focusOffset = y.focusOffset;
|
|
1137
1137
|
}(i), i.isCollapsed = F(i), Ee(i)) : be(i);
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
se.refresh = function(i) {
|
|
1141
1141
|
var l = i ? this._ranges.slice(0) : null, m = this.anchorNode, k = this.anchorOffset;
|
|
1142
|
-
if (
|
|
1143
|
-
var
|
|
1144
|
-
if (
|
|
1145
|
-
for (;
|
|
1142
|
+
if (st(this), i) {
|
|
1143
|
+
var y = l.length;
|
|
1144
|
+
if (y != this._ranges.length || this.anchorNode != m || this.anchorOffset != k) return !0;
|
|
1145
|
+
for (; y--; ) if (!W(l[y], this._ranges[y])) return !0;
|
|
1146
1146
|
return !1;
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
1149
|
var Qe, kt = function(i, l) {
|
|
1150
1150
|
var m = i.getAllRanges();
|
|
1151
1151
|
i.removeAllRanges();
|
|
1152
|
-
for (var k = 0,
|
|
1152
|
+
for (var k = 0, y = m.length; k < y; ++k) W(l, m[k]) || i.addRange(m[k]);
|
|
1153
1153
|
i.rangeCount || be(i);
|
|
1154
1154
|
};
|
|
1155
1155
|
function Ze(i, l) {
|
|
1156
|
-
if (i.win.document != v(l)) throw new
|
|
1156
|
+
if (i.win.document != v(l)) throw new w("WRONG_DOCUMENT_ERR");
|
|
1157
1157
|
}
|
|
1158
1158
|
function Ve(i, l) {
|
|
1159
|
-
if (l < 0 || l > (K.isCharacterDataNode(i) ? i.length : i.childNodes.length)) throw new
|
|
1159
|
+
if (l < 0 || l > (K.isCharacterDataNode(i) ? i.length : i.childNodes.length)) throw new w("INDEX_SIZE_ERR");
|
|
1160
1160
|
}
|
|
1161
1161
|
function o(i) {
|
|
1162
1162
|
return function(l, m) {
|
|
@@ -1165,14 +1165,14 @@ function Wn() {
|
|
|
1165
1165
|
};
|
|
1166
1166
|
}
|
|
1167
1167
|
function f(i) {
|
|
1168
|
-
var l = [], m = new T(i.anchorNode, i.anchorOffset), k = new T(i.focusNode, i.focusOffset),
|
|
1169
|
-
if (i.rangeCount !== void 0) for (var N = 0,
|
|
1170
|
-
return "[" +
|
|
1168
|
+
var l = [], m = new T(i.anchorNode, i.anchorOffset), k = new T(i.focusNode, i.focusOffset), y = typeof i.getName == "function" ? i.getName() : "Selection";
|
|
1169
|
+
if (i.rangeCount !== void 0) for (var N = 0, X = i.rangeCount; N < X; ++N) l[N] = h.inspect(i.getRangeAt(N));
|
|
1170
|
+
return "[" + y + "(Ranges: " + l.join(", ") + ")(anchor: " + m.inspect() + ", focus: " + k.inspect() + "]";
|
|
1171
1171
|
}
|
|
1172
1172
|
se.removeRange = Pe && te ? function(i) {
|
|
1173
1173
|
if (this.docSelection.type == z) {
|
|
1174
|
-
for (var l = this.docSelection.createRange(), m =
|
|
1175
|
-
|
|
1174
|
+
for (var l = this.docSelection.createRange(), m = it(i), k = v(l.item(0)), y = P(k).createControlRange(), N = !1, X = 0, j = l.length; X < j; ++X) l.item(X) !== m || N ? y.add(l.item(X)) : N = !0;
|
|
1175
|
+
y.select(), Ge(this);
|
|
1176
1176
|
} else kt(this, i);
|
|
1177
1177
|
} : function(i) {
|
|
1178
1178
|
kt(this, i);
|
|
@@ -1188,11 +1188,11 @@ function Wn() {
|
|
|
1188
1188
|
var m = p.createRange(i);
|
|
1189
1189
|
m.collapseToPoint(i, l), this.setSingleRange(m), this.isCollapsed = !0;
|
|
1190
1190
|
}, se.collapseToStart = function() {
|
|
1191
|
-
if (!this.rangeCount) throw new
|
|
1191
|
+
if (!this.rangeCount) throw new w("INVALID_STATE_ERR");
|
|
1192
1192
|
var i = this._ranges[0];
|
|
1193
1193
|
this.collapse(i.startContainer, i.startOffset);
|
|
1194
1194
|
}, se.collapseToEnd = function() {
|
|
1195
|
-
if (!this.rangeCount) throw new
|
|
1195
|
+
if (!this.rangeCount) throw new w("INVALID_STATE_ERR");
|
|
1196
1196
|
var i = this._ranges[this.rangeCount - 1];
|
|
1197
1197
|
this.collapse(i.endContainer, i.endOffset);
|
|
1198
1198
|
}, se.selectAllChildren = function(i) {
|
|
@@ -1203,8 +1203,8 @@ function Wn() {
|
|
|
1203
1203
|
this.nativeSelection.setBaseAndExtent(i, l, m, k), this.refresh();
|
|
1204
1204
|
} : ne && (se.setBaseAndExtent = function(i, l, m, k) {
|
|
1205
1205
|
Ve(i, l), Ve(m, k), Ze(this, i), Ze(this, m);
|
|
1206
|
-
var
|
|
1207
|
-
N ?
|
|
1206
|
+
var y = p.createRange(node), N = K.comparePoints(i, l, m, k) == -1;
|
|
1207
|
+
N ? y.setStartAndEnd(m, k, i, l) : y.setStartAndEnd(i, l, m, k), this.setSingleRange(y, N);
|
|
1208
1208
|
}), se.deleteFromDocument = function() {
|
|
1209
1209
|
if (Pe && te && this.docSelection.type == z) {
|
|
1210
1210
|
for (var i, l = this.docSelection.createRange(); l.length; ) i = l.item(0), l.remove(i), K.removeNode(i);
|
|
@@ -1213,8 +1213,8 @@ function Wn() {
|
|
|
1213
1213
|
var m = this.getAllRanges();
|
|
1214
1214
|
if (m.length) {
|
|
1215
1215
|
this.removeAllRanges();
|
|
1216
|
-
for (var k = 0,
|
|
1217
|
-
this.addRange(m[
|
|
1216
|
+
for (var k = 0, y = m.length; k < y; ++k) m[k].deleteContents();
|
|
1217
|
+
this.addRange(m[y - 1]);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
1220
|
}, se.eachRange = function(i, l) {
|
|
@@ -1245,7 +1245,7 @@ function Wn() {
|
|
|
1245
1245
|
}, se.getBookmark = function(i) {
|
|
1246
1246
|
return { backward: this.isBackward(), rangeBookmarks: this.callMethodOnEachRange("getBookmark", [i]) };
|
|
1247
1247
|
}, se.moveToBookmark = function(i) {
|
|
1248
|
-
for (var l, m, k = [],
|
|
1248
|
+
for (var l, m, k = [], y = 0; l = i.rangeBookmarks[y++]; ) (m = p.createRange(this.win)).moveToBookmark(l), k.push(m);
|
|
1249
1249
|
i.backward ? this.setSingleRange(k[0], "backward") : this.setRanges(k);
|
|
1250
1250
|
}, se.saveRanges = function() {
|
|
1251
1251
|
return { backward: this.isBackward(), ranges: this.callMethodOnEachRange("cloneRange") };
|
|
@@ -1283,7 +1283,7 @@ function Wn() {
|
|
|
1283
1283
|
var le = !1, ve = function(p) {
|
|
1284
1284
|
le || (le = !0, !q.initialized && q.config.autoInitialize && Oe());
|
|
1285
1285
|
};
|
|
1286
|
-
return de && (document.readyState == "complete" ? ve() : (c(document, "addEventListener") && document.addEventListener("DOMContentLoaded", ve, !1),
|
|
1286
|
+
return de && (document.readyState == "complete" ? ve() : (c(document, "addEventListener") && document.addEventListener("DOMContentLoaded", ve, !1), G(window, "load", ve))), q;
|
|
1287
1287
|
}
|
|
1288
1288
|
function Fn(_) {
|
|
1289
1289
|
return _.createModule("ClassApplier", ["WrappedSelection"], function(e, t) {
|
|
@@ -1304,76 +1304,76 @@ function Fn(_) {
|
|
|
1304
1304
|
function R(r, h) {
|
|
1305
1305
|
if (typeof r.classList == "object") r.classList.add(h);
|
|
1306
1306
|
else {
|
|
1307
|
-
var u = typeof r.className == "string",
|
|
1308
|
-
|
|
1307
|
+
var u = typeof r.className == "string", w = u ? r.className : r.getAttribute("class");
|
|
1308
|
+
w ? M(w, h) || (w += " " + h) : w = h, u ? r.className = w : r.setAttribute("class", w);
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
1311
|
var H = /* @__PURE__ */ function() {
|
|
1312
|
-
function r(h, u,
|
|
1313
|
-
return u &&
|
|
1312
|
+
function r(h, u, w) {
|
|
1313
|
+
return u && w ? " " : "";
|
|
1314
1314
|
}
|
|
1315
1315
|
return function(h, u) {
|
|
1316
1316
|
if (typeof h.classList == "object") h.classList.remove(u);
|
|
1317
1317
|
else {
|
|
1318
|
-
var
|
|
1319
|
-
T = T.replace(new RegExp("(^|\\s)" + u + "(\\s|$)"), r),
|
|
1318
|
+
var w = typeof h.className == "string", T = w ? h.className : h.getAttribute("class");
|
|
1319
|
+
T = T.replace(new RegExp("(^|\\s)" + u + "(\\s|$)"), r), w ? h.className = T : h.setAttribute("class", T);
|
|
1320
1320
|
}
|
|
1321
1321
|
};
|
|
1322
1322
|
}();
|
|
1323
1323
|
function B(r) {
|
|
1324
1324
|
return typeof r.className == "string" ? r.className : r.getAttribute("class");
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function G(r) {
|
|
1327
1327
|
return r && r.split(/\s+/).sort().join(" ");
|
|
1328
1328
|
}
|
|
1329
1329
|
function ie(r) {
|
|
1330
|
-
return
|
|
1330
|
+
return G(B(r));
|
|
1331
1331
|
}
|
|
1332
1332
|
function de(r, h) {
|
|
1333
1333
|
return ie(r) == ie(h);
|
|
1334
1334
|
}
|
|
1335
1335
|
function fe(r, h) {
|
|
1336
|
-
for (var u = h.split(/\s+/),
|
|
1336
|
+
for (var u = h.split(/\s+/), w = 0, T = u.length; w < T; ++w) if (!A(r, b(u[w]))) return !1;
|
|
1337
1337
|
return !0;
|
|
1338
1338
|
}
|
|
1339
|
-
function q(r, h, u,
|
|
1339
|
+
function q(r, h, u, w) {
|
|
1340
1340
|
u == -1 && (u = h.childNodes.length);
|
|
1341
1341
|
var T = r.parentNode, O = n.getNodeIndex(r);
|
|
1342
|
-
g(
|
|
1342
|
+
g(w, function(z) {
|
|
1343
1343
|
(function(v, P, W, I, U) {
|
|
1344
1344
|
var Y = v.node, Z = v.offset, ce = Y, te = Z;
|
|
1345
1345
|
Y == I && Z > U && ++te, Y != P || Z != W && Z != W + 1 || (ce = I, te += U - W), Y == P && Z > W + 1 && --te, v.node = ce, v.offset = te;
|
|
1346
1346
|
})(z, T, O, h, u);
|
|
1347
1347
|
}), h.childNodes.length == u ? h.appendChild(r) : h.insertBefore(r, h.childNodes[u]);
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1350
|
-
var u = r.parentNode,
|
|
1349
|
+
function we(r, h) {
|
|
1350
|
+
var u = r.parentNode, w = n.getNodeIndex(r);
|
|
1351
1351
|
g(h, function(T) {
|
|
1352
1352
|
(function(O, z, v) {
|
|
1353
1353
|
O.node == z && O.offset > v && --O.offset;
|
|
1354
|
-
})(T, u,
|
|
1354
|
+
})(T, u, w);
|
|
1355
1355
|
}), n.removeNode(r);
|
|
1356
1356
|
}
|
|
1357
1357
|
function $e(r, h) {
|
|
1358
|
-
return function(u,
|
|
1359
|
-
for (var v, P = []; v = u.firstChild; ) q(v,
|
|
1360
|
-
return
|
|
1358
|
+
return function(u, w, T, O, z) {
|
|
1359
|
+
for (var v, P = []; v = u.firstChild; ) q(v, w, T++, z), P.push(v);
|
|
1360
|
+
return we(u, z), P;
|
|
1361
1361
|
}(r, r.parentNode, n.getNodeIndex(r), 0, h);
|
|
1362
1362
|
}
|
|
1363
1363
|
function Ae(r, h) {
|
|
1364
1364
|
var u = r.cloneRange();
|
|
1365
1365
|
u.selectNodeContents(h);
|
|
1366
|
-
var
|
|
1367
|
-
return (
|
|
1366
|
+
var w = u.intersection(r);
|
|
1367
|
+
return (w ? w.toString() : "") != "";
|
|
1368
1368
|
}
|
|
1369
1369
|
function Be(r) {
|
|
1370
|
-
for (var h, u = r.getNodes([3]),
|
|
1370
|
+
for (var h, u = r.getNodes([3]), w = 0; (h = u[w]) && !Ae(r, h); ) ++w;
|
|
1371
1371
|
for (var T = u.length - 1; (h = u[T]) && !Ae(r, h); ) --T;
|
|
1372
|
-
return u.slice(
|
|
1372
|
+
return u.slice(w, T + 1);
|
|
1373
1373
|
}
|
|
1374
1374
|
function Ye(r, h) {
|
|
1375
1375
|
if (r.attributes.length != h.attributes.length) return !1;
|
|
1376
|
-
for (var u,
|
|
1376
|
+
for (var u, w, T, O = 0, z = r.attributes.length; O < z; ++O) if ((T = (u = r.attributes[O]).name) != "class" && (u === null != ((w = h.attributes.getNamedItem(T)) === null) || u.specified != w.specified || u.specified && u.nodeValue !== w.nodeValue))
|
|
1377
1377
|
return !1;
|
|
1378
1378
|
return !0;
|
|
1379
1379
|
}
|
|
@@ -1395,14 +1395,14 @@ function Fn(_) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
var ae = /[^\r\n\t\f \u200B]/;
|
|
1397
1397
|
function le(r) {
|
|
1398
|
-
var h, u,
|
|
1399
|
-
for (h = 0; u = r[h++]; )
|
|
1400
|
-
return
|
|
1398
|
+
var h, u, w = [];
|
|
1399
|
+
for (h = 0; u = r[h++]; ) w.push(new s(u.startContainer, u.startOffset), new s(u.endContainer, u.endOffset));
|
|
1400
|
+
return w;
|
|
1401
1401
|
}
|
|
1402
1402
|
function ve(r, h) {
|
|
1403
|
-
for (var u,
|
|
1403
|
+
for (var u, w, T, O = 0, z = r.length; O < z; ++O) u = r[O], w = h[2 * O], T = h[2 * O + 1], u.setStartAndEnd(w.node, w.offset, T.node, T.offset);
|
|
1404
1404
|
}
|
|
1405
|
-
function p(r, h, u,
|
|
1405
|
+
function p(r, h, u, w) {
|
|
1406
1406
|
var T, O, z = u == 0;
|
|
1407
1407
|
if (n.isAncestorOf(h, r)) return r;
|
|
1408
1408
|
if (n.isCharacterDataNode(h)) {
|
|
@@ -1418,23 +1418,23 @@ function Fn(_) {
|
|
|
1418
1418
|
return n.isCharacterDataNode(U) ? Y == 0 ? !!U.previousSibling : Y != U.length || !!U.nextSibling : Y > 0 && Y < U.childNodes.length;
|
|
1419
1419
|
}(h, u)) {
|
|
1420
1420
|
T = h.cloneNode(!1), O = h.parentNode, T.id && T.removeAttribute("id");
|
|
1421
|
-
for (var P, W = 0; P = h.childNodes[u]; ) q(P, T, W++,
|
|
1422
|
-
return q(T, O, n.getNodeIndex(h) + 1,
|
|
1421
|
+
for (var P, W = 0; P = h.childNodes[u]; ) q(P, T, W++, w);
|
|
1422
|
+
return q(T, O, n.getNodeIndex(h) + 1, w), h == r ? T : p(r, O, n.getNodeIndex(T), w);
|
|
1423
1423
|
}
|
|
1424
1424
|
if (r != h) {
|
|
1425
1425
|
T = h.parentNode;
|
|
1426
1426
|
var I = n.getNodeIndex(h);
|
|
1427
|
-
return z || I++, p(r, T, I,
|
|
1427
|
+
return z || I++, p(r, T, I, w);
|
|
1428
1428
|
}
|
|
1429
1429
|
return r;
|
|
1430
1430
|
}
|
|
1431
1431
|
function x(r) {
|
|
1432
1432
|
var h = r ? "nextSibling" : "previousSibling";
|
|
1433
|
-
return function(u,
|
|
1433
|
+
return function(u, w) {
|
|
1434
1434
|
var T, O, z = u.parentNode, v = u[h];
|
|
1435
1435
|
if (v) {
|
|
1436
1436
|
if (v && v.nodeType == 3) return v;
|
|
1437
|
-
} else if (
|
|
1437
|
+
} else if (w && (v = z[h]) && v.nodeType == 1 && (O = v, (T = z).namespaceURI == O.namespaceURI && T.tagName.toLowerCase() == O.tagName.toLowerCase() && de(T, O) && Ye(T, O) && Oe(T, "display") == "inline" && Oe(O, "display") == "inline")) {
|
|
1438
1438
|
var P = v[r ? "firstChild" : "lastChild"];
|
|
1439
1439
|
if (P && P.nodeType == 3) return P;
|
|
1440
1440
|
}
|
|
@@ -1450,10 +1450,10 @@ function Fn(_) {
|
|
|
1450
1450
|
J.prototype = { doMerge: function(r) {
|
|
1451
1451
|
var h = this.textNodes, u = h[0];
|
|
1452
1452
|
if (h.length > 1) {
|
|
1453
|
-
var
|
|
1453
|
+
var w, T = n.getNodeIndex(u), O = [], z = 0;
|
|
1454
1454
|
g(h, function(v, P) {
|
|
1455
|
-
|
|
1456
|
-
W.node == v && (W.node = u, W.offset += z), W.node ==
|
|
1455
|
+
w = v.parentNode, P > 0 && (w.removeChild(v), w.hasChildNodes() || n.removeNode(w), r && g(r, function(W) {
|
|
1456
|
+
W.node == v && (W.node = u, W.offset += z), W.node == w && W.offset > T && (--W.offset, W.offset == T + 1 && P < h.length - 1 && (W.node = u, W.offset = z));
|
|
1457
1457
|
})), O[P] = v.data, z += v.data.length;
|
|
1458
1458
|
}), u.data = O.join("");
|
|
1459
1459
|
}
|
|
@@ -1469,28 +1469,28 @@ function Fn(_) {
|
|
|
1469
1469
|
} };
|
|
1470
1470
|
var ee = ["elementTagName", "ignoreWhiteSpace", "applyToEditableOnly", "useExistingElements", "removeEmptyElements", "onElementCreate"], K = {};
|
|
1471
1471
|
function ue(r, h, u) {
|
|
1472
|
-
var
|
|
1472
|
+
var w, T, O, z, v = this;
|
|
1473
1473
|
v.cssClass = v.className = r;
|
|
1474
1474
|
var P = null, W = {};
|
|
1475
1475
|
if (typeof h == "object" && h !== null) {
|
|
1476
1476
|
for (h.elementTagName !== void 0 && (h.elementTagName = h.elementTagName.toLowerCase()), u = h.tagNames, P = h.elementProperties, W = h.elementAttributes, T = 0; z = ee[T++]; ) h.hasOwnProperty(z) && (v[z] = h[z]);
|
|
1477
|
-
|
|
1478
|
-
} else
|
|
1479
|
-
v.normalize =
|
|
1477
|
+
w = h.normalize;
|
|
1478
|
+
} else w = h;
|
|
1479
|
+
v.normalize = w === void 0 || w, v.attrExceptions = [];
|
|
1480
1480
|
var I = document.createElement(v.elementTagName);
|
|
1481
1481
|
v.elementProperties = v.copyPropertiesToElement(P, I, !0), E(W, function(Y, Z) {
|
|
1482
1482
|
v.attrExceptions.push(Y), W[Y] = "" + Z;
|
|
1483
|
-
}), v.elementAttributes = W, v.elementSortedClassName = v.elementProperties.hasOwnProperty("className") ?
|
|
1483
|
+
}), v.elementAttributes = W, v.elementSortedClassName = v.elementProperties.hasOwnProperty("className") ? G(v.elementProperties.className + " " + r) : r, v.applyToAnyTagName = !1;
|
|
1484
1484
|
var U = typeof u;
|
|
1485
1485
|
if (U == "string") u == "*" ? v.applyToAnyTagName = !0 : v.tagNames = b(u.toLowerCase()).split(/\s*,\s*/);
|
|
1486
1486
|
else if (U == "object" && typeof u.length == "number") for (v.tagNames = [], T = 0, O = u.length; T < O; ++T) u[T] == "*" ? v.applyToAnyTagName = !0 : v.tagNames.push(u[T].toLowerCase());
|
|
1487
1487
|
else v.tagNames = [v.elementTagName];
|
|
1488
1488
|
}
|
|
1489
1489
|
ue.prototype = { elementTagName: "span", elementProperties: {}, elementAttributes: {}, ignoreWhiteSpace: !0, applyToEditableOnly: !1, useExistingElements: !0, removeEmptyElements: !0, onElementCreate: null, copyPropertiesToElement: function(r, h, u) {
|
|
1490
|
-
var
|
|
1491
|
-
for (var I in r) if (r.hasOwnProperty(I)) if (z = r[I], v = h[I], I == "className") R(h, z), R(h, this.className), h[I] =
|
|
1490
|
+
var w, T, O, z, v, P, W = {};
|
|
1491
|
+
for (var I in r) if (r.hasOwnProperty(I)) if (z = r[I], v = h[I], I == "className") R(h, z), R(h, this.className), h[I] = G(h[I]), u && (W[I] = z);
|
|
1492
1492
|
else if (I == "style") {
|
|
1493
|
-
for (
|
|
1493
|
+
for (w in T = v, u && (W[I] = O = {}), r[I]) r[I].hasOwnProperty(w) && (T[w] = z[w], u && (O[w] = T[w]));
|
|
1494
1494
|
this.attrExceptions.push(I);
|
|
1495
1495
|
} else h[I] = z, u && (W[I] = h[I], P = K.hasOwnProperty(I) ? K[I] : I, this.attrExceptions.push(P));
|
|
1496
1496
|
return u ? W : "";
|
|
@@ -1527,12 +1527,12 @@ function Fn(_) {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
return Q(h.previousSibling) || Q(h.nextSibling);
|
|
1529
1529
|
}(r);
|
|
1530
|
-
}, postApply: function(r, h, u,
|
|
1530
|
+
}, postApply: function(r, h, u, w) {
|
|
1531
1531
|
var T, O, z = r[0], v = r[r.length - 1], P = [], W = z, I = v, U = 0, Y = v.length;
|
|
1532
1532
|
g(r, function(he) {
|
|
1533
|
-
(O = L(he, !
|
|
1533
|
+
(O = L(he, !w)) ? (T || (T = new J(O), P.push(T)), T.textNodes.push(he), he === z && (W = T.textNodes[0], U = W.length), he === v && (I = T.textNodes[0], Y = T.getLength())) : T = null;
|
|
1534
1534
|
});
|
|
1535
|
-
var Z = F(v, !
|
|
1535
|
+
var Z = F(v, !w);
|
|
1536
1536
|
if (Z && (T || (T = new J(v), P.push(T)), T.textNodes.push(Z)), P.length) {
|
|
1537
1537
|
for (var ce = 0, te = P.length; ce < te; ++ce) P[ce].doMerge(u);
|
|
1538
1538
|
h.setStartAndEnd(W, U, I, Y);
|
|
@@ -1542,15 +1542,15 @@ function Fn(_) {
|
|
|
1542
1542
|
return this.copyPropertiesToElement(this.elementProperties, u, !1), this.copyAttributesToElement(this.elementAttributes, u), R(u, this.className), this.onElementCreate && this.onElementCreate(u, this), u;
|
|
1543
1543
|
}, elementHasProperties: function(r, h) {
|
|
1544
1544
|
var u = this;
|
|
1545
|
-
return E(h, function(
|
|
1546
|
-
if (
|
|
1545
|
+
return E(h, function(w, T) {
|
|
1546
|
+
if (w == "className") return fe(r, T);
|
|
1547
1547
|
if (typeof T == "object") {
|
|
1548
|
-
if (!u.elementHasProperties(r[
|
|
1549
|
-
} else if (r[
|
|
1548
|
+
if (!u.elementHasProperties(r[w], T)) return !1;
|
|
1549
|
+
} else if (r[w] !== T) return !1;
|
|
1550
1550
|
});
|
|
1551
1551
|
}, elementHasAttributes: function(r, h) {
|
|
1552
|
-
return E(h, function(u,
|
|
1553
|
-
if (r.getAttribute(u) !==
|
|
1552
|
+
return E(h, function(u, w) {
|
|
1553
|
+
if (r.getAttribute(u) !== w) return !1;
|
|
1554
1554
|
});
|
|
1555
1555
|
}, applyToTextNode: function(r, h) {
|
|
1556
1556
|
if (function(O) {
|
|
@@ -1560,8 +1560,8 @@ function Fn(_) {
|
|
|
1560
1560
|
var u = r.parentNode;
|
|
1561
1561
|
if (u.childNodes.length == 1 && this.useExistingElements && this.appliesToElement(u) && this.elementHasProperties(u, this.elementProperties) && this.elementHasAttributes(u, this.elementAttributes)) R(u, this.className);
|
|
1562
1562
|
else {
|
|
1563
|
-
var
|
|
1564
|
-
|
|
1563
|
+
var w = r.parentNode, T = this.createContainer(w);
|
|
1564
|
+
w.insertBefore(T, r), T.appendChild(r);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
1567
|
}, isRemovable: function(r) {
|
|
@@ -1572,31 +1572,31 @@ function Fn(_) {
|
|
|
1572
1572
|
}, removeEmptyContainers: function(r) {
|
|
1573
1573
|
var h = this, u = r.getNodes([1], function(O) {
|
|
1574
1574
|
return h.isEmptyContainer(O);
|
|
1575
|
-
}),
|
|
1575
|
+
}), w = [r], T = le(w);
|
|
1576
1576
|
g(u, function(O) {
|
|
1577
|
-
|
|
1578
|
-
}), ve(
|
|
1579
|
-
}, undoToTextNode: function(r, h, u,
|
|
1577
|
+
we(O, T);
|
|
1578
|
+
}), ve(w, T);
|
|
1579
|
+
}, undoToTextNode: function(r, h, u, w) {
|
|
1580
1580
|
if (!h.containsNode(u)) {
|
|
1581
1581
|
var T = h.cloneRange();
|
|
1582
|
-
T.selectNode(u), T.isPointInRange(h.endContainer, h.endOffset) && (p(u, h.endContainer, h.endOffset,
|
|
1582
|
+
T.selectNode(u), T.isPointInRange(h.endContainer, h.endOffset) && (p(u, h.endContainer, h.endOffset, w), h.setEndAfter(u)), T.isPointInRange(h.startContainer, h.startOffset) && (u = p(u, h.startContainer, h.startOffset, w));
|
|
1583
1583
|
}
|
|
1584
|
-
this.isRemovable(u) ? $e(u,
|
|
1584
|
+
this.isRemovable(u) ? $e(u, w) : H(u, this.className);
|
|
1585
1585
|
}, splitAncestorWithClass: function(r, h, u) {
|
|
1586
|
-
var
|
|
1587
|
-
|
|
1586
|
+
var w = this.getSelfOrAncestorWithClass(r);
|
|
1587
|
+
w && p(w, r, h, u);
|
|
1588
1588
|
}, undoToAncestor: function(r, h) {
|
|
1589
1589
|
this.isRemovable(r) ? $e(r, h) : H(r, this.className);
|
|
1590
1590
|
}, applyToRange: function(r, h) {
|
|
1591
|
-
var u = this,
|
|
1592
|
-
r.splitBoundariesPreservingPositions(
|
|
1591
|
+
var u = this, w = le((h = h || []) || []);
|
|
1592
|
+
r.splitBoundariesPreservingPositions(w), u.removeEmptyElements && u.removeEmptyContainers(r);
|
|
1593
1593
|
var T = Be(r);
|
|
1594
1594
|
if (T.length) {
|
|
1595
1595
|
g(T, function(v) {
|
|
1596
|
-
u.isIgnorableWhiteSpaceNode(v) || u.getSelfOrAncestorWithClass(v) || !u.isModifiable(v) || u.applyToTextNode(v,
|
|
1596
|
+
u.isIgnorableWhiteSpaceNode(v) || u.getSelfOrAncestorWithClass(v) || !u.isModifiable(v) || u.applyToTextNode(v, w);
|
|
1597
1597
|
});
|
|
1598
1598
|
var O = T[T.length - 1];
|
|
1599
|
-
r.setStartAndEnd(T[0], 0, O, O.length), u.normalize && u.postApply(T, r,
|
|
1599
|
+
r.setStartAndEnd(T[0], 0, O, O.length), u.normalize && u.postApply(T, r, w, !1), ve(h, w);
|
|
1600
1600
|
}
|
|
1601
1601
|
var z = u.getEmptyElements(r);
|
|
1602
1602
|
g(z, function(v) {
|
|
@@ -1609,13 +1609,13 @@ function Fn(_) {
|
|
|
1609
1609
|
var h = e.getSelection(r);
|
|
1610
1610
|
h.setRanges(this.applyToRanges(h.getAllRanges()));
|
|
1611
1611
|
}, undoToRange: function(r, h) {
|
|
1612
|
-
var u = this,
|
|
1613
|
-
r.splitBoundariesPreservingPositions(
|
|
1612
|
+
var u = this, w = le(h = h || []);
|
|
1613
|
+
r.splitBoundariesPreservingPositions(w), u.removeEmptyElements && u.removeEmptyContainers(r, w);
|
|
1614
1614
|
var T, O, z = Be(r), v = z[z.length - 1];
|
|
1615
1615
|
if (z.length) {
|
|
1616
|
-
u.splitAncestorWithClass(r.endContainer, r.endOffset,
|
|
1617
|
-
for (var P = 0, W = z.length; P < W; ++P) T = z[P], (O = u.getSelfOrAncestorWithClass(T)) && u.isModifiable(T) && u.undoToAncestor(O,
|
|
1618
|
-
r.setStartAndEnd(z[0], 0, v, v.length), u.normalize && u.postApply(z, r,
|
|
1616
|
+
u.splitAncestorWithClass(r.endContainer, r.endOffset, w), u.splitAncestorWithClass(r.startContainer, r.startOffset, w);
|
|
1617
|
+
for (var P = 0, W = z.length; P < W; ++P) T = z[P], (O = u.getSelfOrAncestorWithClass(T)) && u.isModifiable(T) && u.undoToAncestor(O, w);
|
|
1618
|
+
r.setStartAndEnd(z[0], 0, v, v.length), u.normalize && u.postApply(z, r, w, !0), ve(h, w);
|
|
1619
1619
|
}
|
|
1620
1620
|
var I = u.getEmptyElements(r);
|
|
1621
1621
|
g(I, function(U) {
|
|
@@ -1631,7 +1631,7 @@ function Fn(_) {
|
|
|
1631
1631
|
if (r.collapsed || r.toString() == "") return !!this.getSelfOrAncestorWithClass(r.commonAncestorContainer);
|
|
1632
1632
|
var h = r.getNodes([3]);
|
|
1633
1633
|
if (h.length) {
|
|
1634
|
-
for (var u,
|
|
1634
|
+
for (var u, w = 0; u = h[w++]; ) if (!this.isIgnorableWhiteSpaceNode(u) && Ae(r, u) && this.isModifiable(u) && !this.getSelfOrAncestorWithClass(u)) return !1;
|
|
1635
1635
|
}
|
|
1636
1636
|
return !0;
|
|
1637
1637
|
}, findEffectiveTextNodes: function(r) {
|
|
@@ -1650,20 +1650,20 @@ function Fn(_) {
|
|
|
1650
1650
|
this.isAppliedToSelection(r) ? this.undoToSelection(r) : this.applyToSelection(r);
|
|
1651
1651
|
}, getElementsWithClassIntersectingRange: function(r) {
|
|
1652
1652
|
var h = [], u = this;
|
|
1653
|
-
return r.getNodes([3], function(
|
|
1654
|
-
var T = u.getSelfOrAncestorWithClass(
|
|
1653
|
+
return r.getNodes([3], function(w) {
|
|
1654
|
+
var T = u.getSelfOrAncestorWithClass(w);
|
|
1655
1655
|
T && !a(h, T) && h.push(T);
|
|
1656
1656
|
}), h;
|
|
1657
1657
|
}, detach: function() {
|
|
1658
1658
|
} }, ue.util = { hasClass: A, addClass: R, removeClass: H, getClass: B, hasSameClasses: de, hasAllClasses: fe, replaceWithOwnChildren: $e, elementsHaveSameNonClassAttributes: Ye, elementHasNonClassAttributes: function(r, h) {
|
|
1659
|
-
for (var u,
|
|
1659
|
+
for (var u, w = 0, T = r.attributes.length; w < T; ++w) if (u = r.attributes[w].name, (!h || !a(h, u)) && r.attributes[w].specified && u != "class") return !0;
|
|
1660
1660
|
return !1;
|
|
1661
1661
|
}, splitNodeAt: p, isEditableElement: _e, isEditingHost: De, isEditable: V }, e.CssClassApplier = e.ClassApplier = ue, e.createClassApplier = function(r, h, u) {
|
|
1662
1662
|
return new ue(r, h, u);
|
|
1663
1663
|
}, c.createAliasForDeprecatedMethod(e, "createCssClassApplier", "createClassApplier", t);
|
|
1664
1664
|
}), _;
|
|
1665
1665
|
}
|
|
1666
|
-
const Yt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19 17V10.2135C19 10.1287 18.9011 10.0824 18.836 10.1367L16 12.5"/></svg>',
|
|
1666
|
+
const Yt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19 17V10.2135C19 10.1287 18.9011 10.0824 18.836 10.1367L16 12.5"/></svg>', Xt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10 19 9.5 19 12C19 13.9771 16.0684 13.9997 16.0012 16.8981C15.9999 16.9533 16.0448 17 16.1 17L19.3 17"/></svg>', Gt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10.5 16.8323 10 17.6 10C18.3677 10 19.5 10.311 19.5 11.5C19.5 12.5315 18.7474 12.9022 18.548 12.9823C18.5378 12.9864 18.5395 13.0047 18.5503 13.0063C18.8115 13.0456 20 13.3065 20 14.8C20 16 19.5 17 17.8 17C17.8 17 16 17 16 16.3"/></svg>', Qt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 10L15.2834 14.8511C15.246 14.9178 15.294 15 15.3704 15C16.8489 15 18.7561 15 20.2 15M19 17C19 15.7187 19 14.8813 19 13.6"/></svg>', Zt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 15.9C16 15.9 16.3768 17 17.8 17C19.5 17 20 15.6199 20 14.7C20 12.7323 17.6745 12.0486 16.1635 12.9894C16.094 13.0327 16 12.9846 16 12.9027V10.1C16 10.0448 16.0448 10 16.1 10H19.8"/></svg>', Jt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19.5 10C16.5 10.5 16 13.3285 16 15M16 15V15C16 16.1046 16.8954 17 18 17H18.3246C19.3251 17 20.3191 16.3492 20.2522 15.3509C20.0612 12.4958 16 12.6611 16 15Z"/></svg>', en = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.2 12L11.0586 13.8586C11.1367 13.9367 11.2633 13.9367 11.3414 13.8586L14.7 10.5"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', tn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16"/></svg>', nn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.69998 12.6L7.67896 12.62C6.53993 13.7048 6.52012 15.5155 7.63516 16.625V16.625C8.72293 17.7073 10.4799 17.7102 11.5712 16.6314L13.0263 15.193C14.0703 14.1609 14.2141 12.525 13.3662 11.3266L13.22 11.12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16.22 11.12L16.3564 10.9805C17.2895 10.0265 17.3478 8.5207 16.4914 7.49733V7.49733C15.5691 6.39509 13.9269 6.25143 12.8271 7.17675L11.3901 8.38588C10.0935 9.47674 9.95706 11.4241 11.0888 12.6852L11.12 12.72"/></svg>', sn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="9" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 17H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 12H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 7H4.99002"/></svg>', rn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="12" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.79999 14L7.79999 7.2135C7.79999 7.12872 7.7011 7.0824 7.63597 7.13668L4.79999 9.5"/></svg>', kn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.13968 15.32L8.69058 11.5661C9.02934 11.2036 9.48873 11 9.96774 11C10.4467 11 10.9061 11.2036 11.2449 11.5661L15.3871 16M13.5806 14.0664L15.0132 12.533C15.3519 12.1705 15.8113 11.9668 16.2903 11.9668C16.7693 11.9668 17.2287 12.1705 17.5675 12.533L18.841 13.9634"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.7778 9.33331H13.7867"/></svg>', bn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14"/></svg>', Sn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M15.7795 11.5C15.7795 11.5 16.053 11.1962 16.5497 10.6722C17.4442 9.72856 17.4701 8.2475 16.5781 7.30145V7.30145C15.6482 6.31522 14.0873 6.29227 13.1288 7.25073L11.8796 8.49999"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8.24517 12.3883C8.24517 12.3883 7.97171 12.6922 7.47504 13.2161C6.58051 14.1598 6.55467 15.6408 7.44666 16.5869V16.5869C8.37653 17.5731 9.93744 17.5961 10.8959 16.6376L12.1452 15.3883"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M17.7802 15.1032L16.597 14.9422C16.0109 14.8624 15.4841 15.3059 15.4627 15.8969L15.4199 17.0818"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6.39064 9.03238L7.58432 9.06668C8.17551 9.08366 8.6522 8.58665 8.61056 7.99669L8.5271 6.81397"/><line x1="12.1142" x2="11.7" y1="12.2" y2="11.7858" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>', on = '<svg t="1763708081701" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2604" width="24" height="24"><path d="M469.3330000000001 725.333H896V640H469.3330000000001v85.333zM128 512l170.667 170.667V341.3330000000001L128 512z m0 384h768v-85.333H128V896z m0-768v85.333h768V128H128z m341.333 256H896v-85.333H469.3330000000001V384z m0 170.667H896v-85.334H469.3330000000001v85.334z" p-id="2605" fill="#000000"></path></svg>', an = '<svg t="1763708124227" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2788" width="24" height="24"><path d="M128 896h768v-85.333H128V896z m0-554.667v341.334L298.667 512 128 341.333z m341.333 384H896V640H469.333v85.333zM128 128v85.333h768V128H128z m341.333 256H896v-85.333H469.333V384z m0 170.667H896v-85.334H469.333v85.334z" p-id="2789" fill="#000000"></path></svg>';
|
|
1667
1667
|
class Un {
|
|
1668
1668
|
constructor(e, t) {
|
|
1669
1669
|
this.holder = document.getElementById(e), this.holder.addEventListener("click", (n) => {
|
|
@@ -1700,13 +1700,13 @@ class Un {
|
|
|
1700
1700
|
const R = document.createElement("div");
|
|
1701
1701
|
R.setAttribute("class", "ce-el-link-btn-wrap");
|
|
1702
1702
|
const H = document.createElement("div");
|
|
1703
|
-
H.innerHTML =
|
|
1703
|
+
H.innerHTML = Sn, H.setAttribute("class", "ce-el-link-icon-btn ce-el-link-unlink-btn ce-el-link__noedit"), H.setAttribute("title", "取消链接");
|
|
1704
1704
|
const B = document.createElement("div");
|
|
1705
1705
|
B.innerHTML = '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="2483" width="20" height="20"><path d="M391.467 736.322a31.99 31.99 0 0 1-13.783 8.126l-232.261 66.798c-12.088 3.477-23.276-7.711-19.799-19.799l66.798-232.261a32 32 0 0 1 8.126-13.782l472.869-472.87c12.496-12.496 32.758-12.496 45.254 0L864.335 218.2c12.497 12.496 12.497 32.758 0 45.255L391.467 736.322z m248.009-516.709l77.781 77.782 56.569-56.569-77.782-77.782-56.568 56.569z m-50.912 50.911L265.88 593.209l-31.401 109.182 109.182-31.401 322.685-322.684-77.782-77.782zM129.001 889h768v72h-768v-72z" fill="#323338" ></path></svg>', B.setAttribute("class", "ce-el-link-icon-btn ce-el-link-edit-btn ce-el-link__noedit"), B.setAttribute("title", "编辑链接");
|
|
1706
|
-
const
|
|
1707
|
-
|
|
1708
|
-
ie.preventDefault(), ie.stopPropagation(), M.classList.remove("ce-el-link__noedit"), A.classList.remove("ce-el-link__noedit"), B.classList.remove("ce-el-link__noedit"), H.classList.remove("ce-el-link__noedit"),
|
|
1709
|
-
}),
|
|
1706
|
+
const G = document.createElement("button");
|
|
1707
|
+
G.setAttribute("type", "button"), G.setAttribute("class", "ce-el-link-btn ce-el-link__noedit"), G.innerHTML = "确定", R.appendChild(B), R.appendChild(H), R.appendChild(G), B.addEventListener("click", (ie) => {
|
|
1708
|
+
ie.preventDefault(), ie.stopPropagation(), M.classList.remove("ce-el-link__noedit"), A.classList.remove("ce-el-link__noedit"), B.classList.remove("ce-el-link__noedit"), H.classList.remove("ce-el-link__noedit"), G.classList.remove("ce-el-link__noedit"), s.removeEventListener("mouseout", this.mouseOut), b.removeEventListener("mouseout", this.mouseOut);
|
|
1709
|
+
}), G.addEventListener("click", (ie) => {
|
|
1710
1710
|
var de;
|
|
1711
1711
|
ie.preventDefault(), ie.stopPropagation(), s.href = M.value, (de = s.querySelector('div[data-input-wrap="true"]')) == null || de.remove();
|
|
1712
1712
|
}), H.addEventListener("click", (ie) => {
|
|
@@ -1798,6 +1798,28 @@ class $n {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
1800
|
class jn {
|
|
1801
|
+
constructor(e, t, n) {
|
|
1802
|
+
this.holder = document.getElementById(e), this.readOnly = t, this.editor = n, this.blockSelection = n.blockSelection, this.readOnly || this.setListener();
|
|
1803
|
+
}
|
|
1804
|
+
setListener() {
|
|
1805
|
+
this.readOnly || new MutationObserver((e, t) => {
|
|
1806
|
+
var n;
|
|
1807
|
+
(n = this.holder) == null || n.querySelectorAll(".cdx-alert__message,.cdx-block-quote,.ce-editorjs-x-shiki__textarea").forEach((s) => {
|
|
1808
|
+
s.getAttribute("data-block-backspace") !== "true" && (s.addEventListener("keydown", (a) => {
|
|
1809
|
+
if (a.code === "Backspace" && wn(s)) {
|
|
1810
|
+
a.preventDefault(), a.stopPropagation();
|
|
1811
|
+
const c = this.editor.blockManager.currentBlock;
|
|
1812
|
+
this.blockSelection.selectBlock(c);
|
|
1813
|
+
}
|
|
1814
|
+
}), s.setAttribute("data-block-backspace", "true"));
|
|
1815
|
+
});
|
|
1816
|
+
}).observe(this.holder, { childList: !0, subtree: !0 });
|
|
1817
|
+
}
|
|
1818
|
+
static get isReadOnlySupported() {
|
|
1819
|
+
return !0;
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
class qn {
|
|
1801
1823
|
constructor({ data: e, config: t, api: n, readOnly: s }) {
|
|
1802
1824
|
this.api = n, this.readOnly = s, this._settings = { placeholder: "H1" }, this._data = this.normalizeData(e), this._element = this.getTag();
|
|
1803
1825
|
}
|
|
@@ -1878,7 +1900,7 @@ class jn {
|
|
|
1878
1900
|
return { icon: Yt, title: "H1" };
|
|
1879
1901
|
}
|
|
1880
1902
|
}
|
|
1881
|
-
class
|
|
1903
|
+
class Vn {
|
|
1882
1904
|
constructor({ data: e, config: t, api: n, readOnly: s }) {
|
|
1883
1905
|
this.api = n, this.readOnly = s, this._settings = { placeholder: "H2" }, this._data = this.normalizeData(e), this._element = this.getTag();
|
|
1884
1906
|
}
|
|
@@ -1946,7 +1968,7 @@ class qn {
|
|
|
1946
1968
|
e.dataset.placeholder = this.api.i18n.t(this._settings.placeholder || "");
|
|
1947
1969
|
}
|
|
1948
1970
|
get defaultLevel() {
|
|
1949
|
-
return { number: 2, tag: "H2", svg:
|
|
1971
|
+
return { number: 2, tag: "H2", svg: Xt };
|
|
1950
1972
|
}
|
|
1951
1973
|
onPaste(e) {
|
|
1952
1974
|
const t = e.detail;
|
|
@@ -1956,10 +1978,10 @@ class qn {
|
|
|
1956
1978
|
}
|
|
1957
1979
|
}
|
|
1958
1980
|
static get toolbox() {
|
|
1959
|
-
return { icon:
|
|
1981
|
+
return { icon: Xt, title: "H2" };
|
|
1960
1982
|
}
|
|
1961
1983
|
}
|
|
1962
|
-
class
|
|
1984
|
+
class Kn {
|
|
1963
1985
|
constructor({ data: e, config: t, api: n, readOnly: s }) {
|
|
1964
1986
|
this.api = n, this.readOnly = s, this._settings = { placeholder: "H3" }, this._data = this.normalizeData(e), this._element = this.getTag();
|
|
1965
1987
|
}
|
|
@@ -2027,7 +2049,7 @@ class Vn {
|
|
|
2027
2049
|
e.dataset.placeholder = this.api.i18n.t(this._settings.placeholder || "");
|
|
2028
2050
|
}
|
|
2029
2051
|
get defaultLevel() {
|
|
2030
|
-
return { number: 3, tag: "H3", svg:
|
|
2052
|
+
return { number: 3, tag: "H3", svg: Gt };
|
|
2031
2053
|
}
|
|
2032
2054
|
onPaste(e) {
|
|
2033
2055
|
const t = e.detail;
|
|
@@ -2037,10 +2059,10 @@ class Vn {
|
|
|
2037
2059
|
}
|
|
2038
2060
|
}
|
|
2039
2061
|
static get toolbox() {
|
|
2040
|
-
return { icon:
|
|
2062
|
+
return { icon: Gt, title: "H3" };
|
|
2041
2063
|
}
|
|
2042
2064
|
}
|
|
2043
|
-
class
|
|
2065
|
+
class Yn {
|
|
2044
2066
|
constructor({ data: e, config: t, api: n, readOnly: s }) {
|
|
2045
2067
|
this.api = n, this.readOnly = s, this._settings = { placeholder: "H4" }, this._data = this.normalizeData(e), this._element = this.getTag();
|
|
2046
2068
|
}
|
|
@@ -2121,7 +2143,7 @@ class Kn {
|
|
|
2121
2143
|
return { icon: Qt, title: "H4" };
|
|
2122
2144
|
}
|
|
2123
2145
|
}
|
|
2124
|
-
class
|
|
2146
|
+
class Xn {
|
|
2125
2147
|
constructor({ data: e, config: t, api: n, readOnly: s }) {
|
|
2126
2148
|
this.api = n, this.readOnly = s, this._settings = { placeholder: "H5" }, this._data = this.normalizeData(e), this._element = this.getTag();
|
|
2127
2149
|
}
|
|
@@ -2376,7 +2398,7 @@ class qt {
|
|
|
2376
2398
|
return { tags: ["P", "div", "br"] };
|
|
2377
2399
|
}
|
|
2378
2400
|
static get toolbox() {
|
|
2379
|
-
return { icon:
|
|
2401
|
+
return { icon: bn, title: "Text" };
|
|
2380
2402
|
}
|
|
2381
2403
|
}
|
|
2382
2404
|
class St {
|
|
@@ -2446,7 +2468,7 @@ class St {
|
|
|
2446
2468
|
}
|
|
2447
2469
|
drawView() {
|
|
2448
2470
|
const e = document.createElement("div"), t = document.createElement("div"), n = document.createElement("div"), s = document.createElement("div"), a = document.createElement("div"), c = document.createElement("div"), g = document.createElement("select"), C = document.createElement("select"), E = document.createElement("span"), b = document.createElement("textarea"), M = document.createElement("div");
|
|
2449
|
-
return M.classList.add("ce-editorjs-x-shiki__code__dragHandler"), e.classList.add(this.CSS.baseClass, this.CSS.wrapper), this.readOnly ? e.classList.add("read-only") : e.classList.add("editable"), t.classList.add("ce-editorjs-x-shiki__code"), n.classList.add("ce-editorjs-x-shiki__selector"), s.classList.add("ce-editorjs-x-shiki__lang"), a.classList.add("ce-editorjs-x-shiki__copy"), c.classList.add("ce-editorjs-x-shiki__copy_tip"), g.classList.add(this.CSS.selectorLanguage), b.classList.add(this.CSS.textarea, this.CSS.input), s.innerHTML = this.data.lang, a.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5"/></svg>', c.innerText = this.api.i18n.t("Copied"),
|
|
2471
|
+
return M.classList.add("ce-editorjs-x-shiki__code__dragHandler"), e.classList.add(this.CSS.baseClass, this.CSS.wrapper), this.readOnly ? e.classList.add("read-only") : e.classList.add("editable"), t.classList.add("ce-editorjs-x-shiki__code"), n.classList.add("ce-editorjs-x-shiki__selector"), s.classList.add("ce-editorjs-x-shiki__lang"), a.classList.add("ce-editorjs-x-shiki__copy"), c.classList.add("ce-editorjs-x-shiki__copy_tip"), g.classList.add(this.CSS.selectorLanguage), b.classList.add(this.CSS.textarea, this.CSS.input), s.innerHTML = this.data.lang, a.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5"/></svg>', c.innerText = this.api.i18n.t("Copied"), Dn.forEach((A) => {
|
|
2450
2472
|
const R = document.createElement("option");
|
|
2451
2473
|
R.value = A.id, R.text = A.name, g.appendChild(R);
|
|
2452
2474
|
}), g.value = this.data.lang, b.value = this.data.code, b.placeholder = this.placeholder, b.spellcheck = !1, b.autocomplete = "off", b.autocapitalize = "off", this.readOnly && (b.disabled = !0), t.appendChild(E), t.appendChild(b), e.appendChild(M), this.data.resizeSize && this.data.resizeSize > 0 && (t.style.height = this.data.resizeSize + "px"), this.readOnly ? n.appendChild(s) : n.appendChild(g), a.appendChild(c), n.appendChild(a), e.appendChild(n), e.appendChild(t), this.runShiki().then(({ html: A, preStyle: R }) => {
|
|
@@ -2466,15 +2488,9 @@ class St {
|
|
|
2466
2488
|
E.innerHTML = A, e == null || e.setAttribute("style", R), g.setAttribute("style", R), C.setAttribute("style", R);
|
|
2467
2489
|
});
|
|
2468
2490
|
}), b.addEventListener("keydown", (A) => {
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
break;
|
|
2473
|
-
case "Tab":
|
|
2474
|
-
this.tabHandler(A), this.data.code = b.value, this.runShiki().then(({ html: R, preStyle: H }) => {
|
|
2475
|
-
E.innerHTML = R;
|
|
2476
|
-
});
|
|
2477
|
-
}
|
|
2491
|
+
A.code === "Tab" && (this.tabHandler(A), this.data.code = b.value, this.runShiki().then(({ html: R, preStyle: H }) => {
|
|
2492
|
+
E.innerHTML = R;
|
|
2493
|
+
}));
|
|
2478
2494
|
}), b.addEventListener("scroll", () => {
|
|
2479
2495
|
E.style = `display:block;transform: translateY(-${b.scrollTop}px)`;
|
|
2480
2496
|
}), a.addEventListener("click", (A) => {
|
|
@@ -2497,7 +2513,7 @@ class St {
|
|
|
2497
2513
|
}
|
|
2498
2514
|
async runShiki() {
|
|
2499
2515
|
let e = "";
|
|
2500
|
-
return { html: await
|
|
2516
|
+
return { html: await Pn(this.data.code, { lang: this._selectorLanguage, theme: this._selectorTheme, transformers: [{ preprocess: (t) => `${t}`, pre(t) {
|
|
2501
2517
|
var n;
|
|
2502
2518
|
this.addClassToHast(t, "ce-editorjs-x-shiki__span"), e = ((n = t.properties) == null ? void 0 : n.style) || "";
|
|
2503
2519
|
}, line(t, n) {
|
|
@@ -2537,7 +2553,7 @@ class St {
|
|
|
2537
2553
|
}
|
|
2538
2554
|
}
|
|
2539
2555
|
}
|
|
2540
|
-
class
|
|
2556
|
+
class Qn {
|
|
2541
2557
|
constructor({ data: e, api: t, readOnly: n }) {
|
|
2542
2558
|
this.api = t, this.readOnly = n, this._data = { text: e.text || "" }, this._CSS = { baseClass: this.api.styles.block, wrapper: "cdx-quote", text: "cdx-quote__text", input: this.api.styles.input };
|
|
2543
2559
|
}
|
|
@@ -2570,13 +2586,7 @@ class Xn {
|
|
|
2570
2586
|
return e.nodeType !== Node.ELEMENT_NODE && (e = e.parentNode), e.closest(`.${this.CSS.text}`);
|
|
2571
2587
|
}
|
|
2572
2588
|
handleKeydown(e) {
|
|
2573
|
-
|
|
2574
|
-
const t = this._quoteElement;
|
|
2575
|
-
if (e.key === "Enter" && (e.shiftKey || (e.preventDefault(), this.getOutOfQuote())), e.key === "Backspace" && ((n = t.textContent) == null ? void 0 : n.trim().length) === 0) {
|
|
2576
|
-
e.preventDefault();
|
|
2577
|
-
const s = this.api.blocks.getCurrentBlockIndex();
|
|
2578
|
-
return this.api.blocks.delete(s), this.api.blocks.insert("paragraph", { text: "" }), void this.api.caret.setToBlock(s);
|
|
2579
|
-
}
|
|
2589
|
+
e.key === "Enter" && (e.shiftKey || (e.preventDefault(), e.stopPropagation(), this.getOutOfQuote()));
|
|
2580
2590
|
}
|
|
2581
2591
|
getOutOfQuote() {
|
|
2582
2592
|
this.api.blocks.insert(), this.api.caret.setToBlock(this.api.blocks.getCurrentBlockIndex());
|
|
@@ -2590,7 +2600,7 @@ class Xn {
|
|
|
2590
2600
|
return { text: { br: !0 } };
|
|
2591
2601
|
}
|
|
2592
2602
|
}
|
|
2593
|
-
class
|
|
2603
|
+
class Zn {
|
|
2594
2604
|
static get isReadOnlySupported() {
|
|
2595
2605
|
return !0;
|
|
2596
2606
|
}
|
|
@@ -2673,7 +2683,7 @@ class Ue {
|
|
|
2673
2683
|
return {};
|
|
2674
2684
|
}
|
|
2675
2685
|
}
|
|
2676
|
-
function
|
|
2686
|
+
function rt(_) {
|
|
2677
2687
|
return _.nodeType === Node.ELEMENT_NODE;
|
|
2678
2688
|
}
|
|
2679
2689
|
class me {
|
|
@@ -2733,32 +2743,32 @@ function Ke(_, e = !0) {
|
|
|
2733
2743
|
let t = _;
|
|
2734
2744
|
return _.classList.contains(ke.item) && (t = _.querySelector(`.${ke.itemChildren}`)), t === null ? [] : e ? Array.from(t.querySelectorAll(`:scope > .${ke.item}`)) : Array.from(t.querySelectorAll(`.${ke.item}`));
|
|
2735
2745
|
}
|
|
2736
|
-
function
|
|
2746
|
+
function lt(_) {
|
|
2737
2747
|
return _.querySelector(`.${ke.itemChildren}`);
|
|
2738
2748
|
}
|
|
2739
2749
|
function It(_) {
|
|
2740
2750
|
let e = _;
|
|
2741
|
-
_.classList.contains(ke.item) && (e =
|
|
2751
|
+
_.classList.contains(ke.item) && (e = lt(_)), e !== null && Ke(e).length === 0 && e.remove();
|
|
2742
2752
|
}
|
|
2743
2753
|
function Ft(_) {
|
|
2744
2754
|
return _.querySelector(`.${ke.itemContent}`);
|
|
2745
2755
|
}
|
|
2746
2756
|
function ut(_, e = !0) {
|
|
2747
2757
|
const t = Ft(_);
|
|
2748
|
-
t &&
|
|
2758
|
+
t && Hn(t, e);
|
|
2749
2759
|
}
|
|
2750
2760
|
class Ht {
|
|
2751
2761
|
get currentItem() {
|
|
2752
2762
|
const e = window.getSelection();
|
|
2753
2763
|
if (!e) return null;
|
|
2754
2764
|
let t = e.anchorNode;
|
|
2755
|
-
return t ? (
|
|
2765
|
+
return t ? (rt(t) || (t = t.parentNode), t && rt(t) ? t.closest(`.${ke.item}`) : null) : null;
|
|
2756
2766
|
}
|
|
2757
2767
|
get currentItemLevel() {
|
|
2758
2768
|
const e = this.currentItem;
|
|
2759
2769
|
if (e === null) return null;
|
|
2760
2770
|
let t = e.parentNode, n = 0;
|
|
2761
|
-
for (; t !== null && t !== this.listWrapper; )
|
|
2771
|
+
for (; t !== null && t !== this.listWrapper; ) rt(t) && t.classList.contains(ke.item) && (n += 1), t = t.parentNode;
|
|
2762
2772
|
return n + 1;
|
|
2763
2773
|
}
|
|
2764
2774
|
constructor({ data: e, config: t, api: n, readOnly: s, block: a }, c) {
|
|
@@ -2780,7 +2790,7 @@ class Ht {
|
|
|
2780
2790
|
}
|
|
2781
2791
|
save(e) {
|
|
2782
2792
|
const t = e != null ? e : this.listWrapper, n = (c) => Ke(c).map((g) => {
|
|
2783
|
-
const C =
|
|
2793
|
+
const C = lt(g);
|
|
2784
2794
|
return { content: this.renderer.getItemContent(g), meta: this.renderer.getItemMeta(g), items: C ? n(C) : [] };
|
|
2785
2795
|
}), s = t ? n(t) : [];
|
|
2786
2796
|
let a = { style: this.data.style, meta: {}, items: s };
|
|
@@ -2794,7 +2804,7 @@ class Ht {
|
|
|
2794
2804
|
if (n === null || s === null || (s.insertAdjacentHTML("beforeend", e.items[0].content), this.listWrapper === void 0)) return;
|
|
2795
2805
|
const a = Ke(this.listWrapper);
|
|
2796
2806
|
if (a.length === 0) return;
|
|
2797
|
-
let c =
|
|
2807
|
+
let c = lt(a[a.length - 1]);
|
|
2798
2808
|
const g = e.items.shift();
|
|
2799
2809
|
g !== void 0 && (g.items.length !== 0 && (c === null && (c = this.renderer.renderWrapper(!1)), this.appendItems(g.items, c)), e.items.length > 0 && this.appendItems(e.items, this.listWrapper));
|
|
2800
2810
|
}
|
|
@@ -2843,16 +2853,16 @@ class Ht {
|
|
|
2843
2853
|
backspace(e) {
|
|
2844
2854
|
var n;
|
|
2845
2855
|
const t = this.currentItem;
|
|
2846
|
-
t !== null &&
|
|
2856
|
+
t !== null && wn(t) && ((n = window.getSelection()) == null ? void 0 : n.isCollapsed) !== !1 && (e.stopPropagation(), t.parentNode !== this.listWrapper || t.previousElementSibling !== null ? (e.preventDefault(), this.mergeItemWithPrevious(t)) : this.convertFirstItemToDefaultBlock());
|
|
2847
2857
|
}
|
|
2848
2858
|
shiftTab(e) {
|
|
2849
2859
|
e.stopPropagation(), e.preventDefault(), this.currentItem !== null && this.unshiftItem(this.currentItem);
|
|
2850
2860
|
}
|
|
2851
2861
|
unshiftItem(e) {
|
|
2852
|
-
if (!e.parentNode || !
|
|
2862
|
+
if (!e.parentNode || !rt(e.parentNode)) return;
|
|
2853
2863
|
const t = e.parentNode.closest(`.${ke.item}`);
|
|
2854
2864
|
if (!t) return;
|
|
2855
|
-
let n =
|
|
2865
|
+
let n = lt(e);
|
|
2856
2866
|
if (e.parentElement === null) return;
|
|
2857
2867
|
const s = Ot(e);
|
|
2858
2868
|
s !== null && (n === null && (n = this.renderer.renderWrapper(!1)), s.forEach((a) => {
|
|
@@ -2876,7 +2886,7 @@ class Ht {
|
|
|
2876
2886
|
g.meta.start = this.data.style == "ordered" ? 1 : void 0, this.api.blocks.insert(n == null ? void 0 : n.name, g, this.config, s + 1), this.convertItemToDefaultBlock(s + 1), c.remove();
|
|
2877
2887
|
}
|
|
2878
2888
|
splitItem(e) {
|
|
2879
|
-
const [t] =
|
|
2889
|
+
const [t] = Bn();
|
|
2880
2890
|
if (t === null) return;
|
|
2881
2891
|
const n = this.renderItem(null);
|
|
2882
2892
|
e == null || e.after(n), ut(n);
|
|
@@ -2884,9 +2894,9 @@ class Ht {
|
|
|
2884
2894
|
mergeItemWithPrevious(e) {
|
|
2885
2895
|
var M;
|
|
2886
2896
|
const t = e.previousElementSibling, n = e.parentNode;
|
|
2887
|
-
if (n === null || !
|
|
2897
|
+
if (n === null || !rt(n)) return;
|
|
2888
2898
|
const s = n.closest(`.${ke.item}`);
|
|
2889
|
-
if (!t && !s || t && !
|
|
2899
|
+
if (!t && !s || t && !rt(t)) return;
|
|
2890
2900
|
let a;
|
|
2891
2901
|
if (t) {
|
|
2892
2902
|
const A = Ke(t, !1);
|
|
@@ -2900,12 +2910,12 @@ class Ht {
|
|
|
2900
2910
|
g.insertAdjacentHTML("beforeend", c);
|
|
2901
2911
|
const C = Ke(e);
|
|
2902
2912
|
if (C.length === 0) return e.remove(), void It(a);
|
|
2903
|
-
const E = t || s, b = (M =
|
|
2913
|
+
const E = t || s, b = (M = lt(E)) != null ? M : this.renderer.renderWrapper(!1);
|
|
2904
2914
|
t ? C.forEach((A) => {
|
|
2905
2915
|
b.appendChild(A);
|
|
2906
2916
|
}) : C.forEach((A) => {
|
|
2907
2917
|
b.prepend(A);
|
|
2908
|
-
}),
|
|
2918
|
+
}), lt(E) === null && a.appendChild(b), e.remove();
|
|
2909
2919
|
}
|
|
2910
2920
|
addTab(e) {
|
|
2911
2921
|
var a;
|
|
@@ -2917,8 +2927,8 @@ class Ht {
|
|
|
2917
2927
|
if (c !== null && c === this.config.maxLevel) return;
|
|
2918
2928
|
}
|
|
2919
2929
|
const n = t.previousSibling;
|
|
2920
|
-
if (n === null || !
|
|
2921
|
-
const s =
|
|
2930
|
+
if (n === null || !rt(n)) return;
|
|
2931
|
+
const s = lt(n);
|
|
2922
2932
|
if (s)
|
|
2923
2933
|
s.appendChild(t), Ke(t).forEach((c) => {
|
|
2924
2934
|
s.appendChild(c);
|
|
@@ -3035,11 +3045,11 @@ class xt {
|
|
|
3035
3045
|
if (this.listStyle === "ordered") {
|
|
3036
3046
|
const n = function(c, g, { value: C, placeholder: E, attributes: b, sanitize: M }) {
|
|
3037
3047
|
const A = Tt.make("div", pt.wrapper), R = Tt.make("div", "cdx-list-start-with-field__startlabel", { innerText: c }), H = Tt.make("div", "cdx-list-start-with-field__input-wrapper"), B = Tt.make("input", pt.input, { placeholder: E, tabIndex: -1, value: C, type: "number" });
|
|
3038
|
-
for (const
|
|
3048
|
+
for (const G in b) B.setAttribute(G, b[G]);
|
|
3039
3049
|
return A.appendChild(R), H.appendChild(B), A.appendChild(H), B.addEventListener("input", () => {
|
|
3040
3050
|
M !== void 0 && (B.value = M(B.value));
|
|
3041
|
-
const
|
|
3042
|
-
|
|
3051
|
+
const G = B.checkValidity();
|
|
3052
|
+
G || A.classList.contains(pt.startWithElementWrapperInvalid) || A.classList.add(pt.startWithElementWrapperInvalid), G && A.classList.contains(pt.startWithElementWrapperInvalid) && A.classList.remove(pt.startWithElementWrapperInvalid), G && g(B.value);
|
|
3043
3053
|
}), A;
|
|
3044
3054
|
}(this.api.i18n.t("Start with"), (c) => this.changeStartWith(Number(c)), { value: String((t = this.data.meta.start) != null ? t : 1), placeholder: "", attributes: { required: "true" }, sanitize: (c) => function(g) {
|
|
3045
3055
|
return g.replace(/\D+/g, "");
|
|
@@ -3121,7 +3131,7 @@ class cn {
|
|
|
3121
3131
|
return n;
|
|
3122
3132
|
}
|
|
3123
3133
|
}
|
|
3124
|
-
class
|
|
3134
|
+
class Jn {
|
|
3125
3135
|
constructor(e, t, n) {
|
|
3126
3136
|
this.holder = t, this.observer = null, this.debounceTimer = n, this.mutationDebouncer = this.debounce(() => {
|
|
3127
3137
|
e();
|
|
@@ -3161,12 +3171,12 @@ class Zn {
|
|
|
3161
3171
|
document.dispatchEvent(e), (t = this.observer) == null || t.disconnect();
|
|
3162
3172
|
}
|
|
3163
3173
|
}
|
|
3164
|
-
class
|
|
3174
|
+
class ei {
|
|
3165
3175
|
constructor({ editor: e, config: t = {}, onUpdate: n, maxLength: s }) {
|
|
3166
3176
|
this.position = 0;
|
|
3167
3177
|
const a = { maxLength: 30, onUpdate() {
|
|
3168
|
-
}, config: { debounceTimer: 200, shortcuts: { undo: ["CMD+Z"], redo: ["CMD+Y", "CMD+SHIFT+Z"] } } }, { blocks: c, caret: g } = e, { configuration: C } = e, { holder: E, defaultBlock: b } = C, M = a.config.shortcuts, { shortcuts: A } = t, R = { ...M, ...A }, H = Array.isArray(R.undo) ? R.undo : [R.undo], B = Array.isArray(R.redo) ? R.redo : [R.redo],
|
|
3169
|
-
this.holder = typeof E == "string" ? document.getElementById(E) : E, this.editor = e, this.defaultBlock = b, this.blocks = c, this.caret = g, this.shouldSaveHistory = !0, this.readOnly = C.readOnly, this.maxLength = s || a.maxLength, this.onUpdate = n || a.onUpdate, this.config = { debounceTimer: ie, shortcuts: { undo: H, redo: B } }, new
|
|
3178
|
+
}, config: { debounceTimer: 200, shortcuts: { undo: ["CMD+Z"], redo: ["CMD+Y", "CMD+SHIFT+Z"] } } }, { blocks: c, caret: g } = e, { configuration: C } = e, { holder: E, defaultBlock: b } = C, M = a.config.shortcuts, { shortcuts: A } = t, R = { ...M, ...A }, H = Array.isArray(R.undo) ? R.undo : [R.undo], B = Array.isArray(R.redo) ? R.redo : [R.redo], G = a.config.debounceTimer, { debounceTimer: ie = G } = t;
|
|
3179
|
+
this.holder = typeof E == "string" ? document.getElementById(E) : E, this.editor = e, this.defaultBlock = b, this.blocks = c, this.caret = g, this.shouldSaveHistory = !0, this.readOnly = C.readOnly, this.maxLength = s || a.maxLength, this.onUpdate = n || a.onUpdate, this.config = { debounceTimer: ie, shortcuts: { undo: H, redo: B } }, new Jn(() => this.registerChange(), this.holder, this.config.debounceTimer).setMutationObserver(), this.setEventListeners(), this.initialItem = null, this.clear();
|
|
3170
3180
|
}
|
|
3171
3181
|
static get isReadOnlySupported() {
|
|
3172
3182
|
return !0;
|
|
@@ -3288,7 +3298,7 @@ class Jn {
|
|
|
3288
3298
|
return n.push(s), n;
|
|
3289
3299
|
}
|
|
3290
3300
|
setEventListeners() {
|
|
3291
|
-
const { holder: e } = this, { shortcuts: t } = this.config, { undo: n, redo: s } = t, a = n.map((R) => R.replace(/ /g, "").split("+")), c = s.map((R) => R.replace(/ /g, "").split("+")), g = a.map((R) => this.parseKeys(R)), C = c.map((R) => this.parseKeys(R)), E = (R, H) => H.reduce((B,
|
|
3301
|
+
const { holder: e } = this, { shortcuts: t } = this.config, { undo: n, redo: s } = t, a = n.map((R) => R.replace(/ /g, "").split("+")), c = s.map((R) => R.replace(/ /g, "").split("+")), g = a.map((R) => this.parseKeys(R)), C = c.map((R) => this.parseKeys(R)), E = (R, H) => H.reduce((B, G) => B || ((ie, de) => de.length === 3 && ie[de[0]] && ie[de[1]] && ie.key.toLowerCase() === de[2])(R, G), !1), b = (R, H, B) => !(!((G, ie) => ie.reduce((de, fe) => de || ((q, we) => we.length === 2 && q[we[0]] && q.key.toLowerCase() === we[1])(G, fe), !1))(R, H) || E(R, B)) || !!E(R, H), M = (R) => {
|
|
3292
3302
|
b(R, g, C) && (R.preventDefault(), this.undo());
|
|
3293
3303
|
}, A = (R) => {
|
|
3294
3304
|
b(R, C, g) && (R.preventDefault(), this.redo());
|
|
@@ -3323,8 +3333,9 @@ class et {
|
|
|
3323
3333
|
get CSS() {
|
|
3324
3334
|
return { wrapper: "cdx-alert", wrapperForType: (e) => `cdx-alert-${e}`, wrapperForAlignType: (e) => `cdx-alert-align-${e}`, message: "cdx-alert__message" };
|
|
3325
3335
|
}
|
|
3326
|
-
constructor(
|
|
3327
|
-
|
|
3336
|
+
constructor(e) {
|
|
3337
|
+
const { data: t, config: n, api: s, readOnly: a } = e;
|
|
3338
|
+
this.api = s, this.alertTypes = n.alertTypes || et.ALERT_TYPES, this.defaultType = n.defaultType || et.DEFAULT_TYPE, this.defaultAlign = n.defaultAlign || et.DEFAULT_ALIGN_TYPE, this.messagePlaceholder = this.api.i18n.t(n.messagePlaceholder || et.DEFAULT_MESSAGE_PLACEHOLDER), this.data = { type: this.alertTypes.includes(t.type) ? t.type : this.defaultType, align: et.ALIGN_TYPES.includes(t.align) ? t.align : this.defaultAlign, message: t.message || "" }, this.container = void 0, this.readOnly = a;
|
|
3328
3339
|
}
|
|
3329
3340
|
static get isReadOnlySupported() {
|
|
3330
3341
|
return !0;
|
|
@@ -3333,7 +3344,9 @@ class et {
|
|
|
3333
3344
|
const e = [this.CSS.wrapper, this.CSS.wrapperForType(this.data.type)];
|
|
3334
3345
|
this.container = this._make("div", e);
|
|
3335
3346
|
const t = this._make("div", [this.CSS.message], { contentEditable: !this.readOnly, innerHTML: this.data.message });
|
|
3336
|
-
return t.dataset.placeholder = this.messagePlaceholder,
|
|
3347
|
+
return t.dataset.placeholder = this.messagePlaceholder, t.addEventListener("keydown", (n) => {
|
|
3348
|
+
n.code === "Enter" && (n.shiftKey || (n.preventDefault(), n.stopPropagation(), this.api.blocks.insert(), this.api.caret.setToBlock(this.api.blocks.getCurrentBlockIndex())));
|
|
3349
|
+
}), this.container.appendChild(t), this.container;
|
|
3337
3350
|
}
|
|
3338
3351
|
_getSettingIconStyle(e) {
|
|
3339
3352
|
let t = "";
|
|
@@ -3421,9 +3434,9 @@ const dn = { orientation: !1 }, Se = class Se {
|
|
|
3421
3434
|
this.wrapper = document.createElement("div"), this.DEFAULT_INDENT_KEY = "Tab", this.lastResizeTimeout = null, this.cachedMaxWidthForContent = null, this.api = e, this.block = s, !n && "settings" in a && (n = (g = a.settings) != null ? g : {}), this.config = { indentSize: 24, maxIndent: 8, minIndent: 0, multiblock: !1, autoIndent: !1, tuneName: null, orientation: "horizontal", customBlockIndentLimits: {}, handleShortcut: void 0, direction: "ltr", directionChangeHandler: null, version: "2.30", ...n != null ? n : {} }, this.changeConfigBasedOnVersionIfNeeded(), (C = this.config) != null && C.directionChangeHandler && this.config.directionChangeHandler(this.alignmentChangeListener.bind(this));
|
|
3422
3435
|
const c = (A = (M = this.config.customBlockIndentLimits[(b = (E = this.block) == null ? void 0 : E.name) != null ? b : ""]) == null ? void 0 : M.min) != null ? A : this.config.minIndent;
|
|
3423
3436
|
this.data = { indentLevel: c, ...t != null ? t : {} }, this.config.multiblock && this.config.tuneName, window.addEventListener("resize", (R) => this.onResize.call(this, R)), this.api.events.on("block changed", ({ event: R }) => {
|
|
3424
|
-
var
|
|
3437
|
+
var G;
|
|
3425
3438
|
const H = R.detail.target.id;
|
|
3426
|
-
((
|
|
3439
|
+
((G = this.block) == null ? void 0 : G.id) === H && this.shouldApplyAutoIndent && queueMicrotask(() => this.autoIndentBlock());
|
|
3427
3440
|
});
|
|
3428
3441
|
}
|
|
3429
3442
|
static get isTune() {
|
|
@@ -3778,8 +3791,8 @@ class tt {
|
|
|
3778
3791
|
(e = this.popover) == null || e.close(), this.wrapper.classList.remove(tt.CSS.toolboxShowed);
|
|
3779
3792
|
}
|
|
3780
3793
|
}
|
|
3781
|
-
const gn = "tc-wrap",
|
|
3782
|
-
class
|
|
3794
|
+
const gn = "tc-wrap", ti = "tc-wrap--readonly", fn = "tc-table", ot = "tc-row", mn = "tc-table--heading", Dt = "tc-row--selected", at = "tc-cell", Pt = "tc-cell--selected", zt = "tc-add-row", vn = "tc-add-row--disabled", Wt = "tc-add-column", Cn = "tc-add-column--disabled";
|
|
3795
|
+
class ni {
|
|
3783
3796
|
constructor(e, t, n, s) {
|
|
3784
3797
|
this.minCellWidhth = 50, this.defaultCellWidth = 100, this.handleDocumentMousedown = (a) => {
|
|
3785
3798
|
this.wrapper.contains(a.target) && a.target.classList.contains("cell-resizable") && (a.preventDefault(), this.isDragging = !0, this.table.classList.add("table-resizing"), document.addEventListener("mousemove", this.handleDocumentMousemove), document.addEventListener("mouseup", this.handleDocumentMouseup), this.draggingColumn = this.hoveredColumn, this.startWidth = this.colWidthArr[this.draggingColumn - 1], this.mouseStartX = a.clientX);
|
|
@@ -3811,8 +3824,8 @@ class ti {
|
|
|
3811
3824
|
}
|
|
3812
3825
|
getCellInCol(e) {
|
|
3813
3826
|
const t = [];
|
|
3814
|
-
return this.table.querySelectorAll(`.${
|
|
3815
|
-
const s = n.querySelector(`.${
|
|
3827
|
+
return this.table.querySelectorAll(`.${ot}`).forEach((n) => {
|
|
3828
|
+
const s = n.querySelector(`.${at}:nth-child(${e})`);
|
|
3816
3829
|
s && t.push(s);
|
|
3817
3830
|
}), t;
|
|
3818
3831
|
}
|
|
@@ -3846,16 +3859,16 @@ class ti {
|
|
|
3846
3859
|
this.focusedCell.row !== this.numberOfRows ? (this.focusedCell.row += 1, this.focusCell()) : (this.addRow(), this.focusedCell.row += 1, this.focusCell(), this.updateToolboxesPosition(0, 0));
|
|
3847
3860
|
}
|
|
3848
3861
|
getCell(e, t) {
|
|
3849
|
-
return this.table.querySelectorAll(`.${
|
|
3862
|
+
return this.table.querySelectorAll(`.${ot}:nth-child(${e}) .${at}`)[t - 1];
|
|
3850
3863
|
}
|
|
3851
3864
|
getRow(e) {
|
|
3852
|
-
return this.table.querySelector(`.${
|
|
3865
|
+
return this.table.querySelector(`.${ot}:nth-child(${e})`);
|
|
3853
3866
|
}
|
|
3854
3867
|
getRowByCell(e) {
|
|
3855
3868
|
return e.parentElement;
|
|
3856
3869
|
}
|
|
3857
3870
|
getRowFirstCell(e) {
|
|
3858
|
-
return e.querySelector(`.${
|
|
3871
|
+
return e.querySelector(`.${at}:first-child`);
|
|
3859
3872
|
}
|
|
3860
3873
|
setCellContent(e, t, n) {
|
|
3861
3874
|
this.getCell(e, t).innerHTML = n;
|
|
@@ -3876,7 +3889,7 @@ class ti {
|
|
|
3876
3889
|
(a = this.config) != null && a.maxcols && this.numberOfColumns > this.config.maxcols - 1 && s && s.classList.add(Cn), this.addHeadingAttrToFirstRow(), this.colWidthArr.splice(e - 1, 0, this.defaultCellWidth);
|
|
3877
3890
|
}
|
|
3878
3891
|
addRow(e = -1, t = !1) {
|
|
3879
|
-
let n, s = He("div",
|
|
3892
|
+
let n, s = He("div", ot);
|
|
3880
3893
|
this.tunes.withHeadings && this.removeHeadingAttrFromFirstRow();
|
|
3881
3894
|
let a = this.numberOfColumns;
|
|
3882
3895
|
if (this.config && this.config.maxrows && this.numberOfRows >= this.config.maxrows) return;
|
|
@@ -3901,7 +3914,7 @@ class ti {
|
|
|
3901
3914
|
t && t.classList.remove(vn), this.addHeadingAttrToFirstRow();
|
|
3902
3915
|
}
|
|
3903
3916
|
createTableWrapper() {
|
|
3904
|
-
this.wrapper = He("div", gn), this.table = He("div", fn), this.readOnly && this.wrapper.classList.add(
|
|
3917
|
+
this.wrapper = He("div", gn), this.table = He("div", fn), this.readOnly && this.wrapper.classList.add(ti), this.wrapper.appendChild(this.toolboxRow.element), this.wrapper.appendChild(this.toolboxColumn.element), this.wrapper.appendChild(this.table);
|
|
3905
3918
|
}
|
|
3906
3919
|
computeInitialSize() {
|
|
3907
3920
|
const e = this.data && this.data.content, t = Array.isArray(e), n = !!t && e.length, s = t ? e.length : void 0, a = n ? e[0].length : void 0, c = Number.parseInt(this.config && this.config.rows), g = Number.parseInt(this.config && this.config.cols), C = !isNaN(c) && c > 0 ? c : void 0, E = !isNaN(g) && g > 0 ? g : void 0;
|
|
@@ -3928,13 +3941,13 @@ class ti {
|
|
|
3928
3941
|
}
|
|
3929
3942
|
}
|
|
3930
3943
|
createCell() {
|
|
3931
|
-
return He("div",
|
|
3944
|
+
return He("div", at, { contentEditable: !this.readOnly });
|
|
3932
3945
|
}
|
|
3933
3946
|
get numberOfRows() {
|
|
3934
3947
|
return this.table.childElementCount;
|
|
3935
3948
|
}
|
|
3936
3949
|
get numberOfColumns() {
|
|
3937
|
-
return this.numberOfRows ? this.table.querySelectorAll(`.${
|
|
3950
|
+
return this.numberOfRows ? this.table.querySelectorAll(`.${ot}:first-child .${at}`).length : 0;
|
|
3938
3951
|
}
|
|
3939
3952
|
get isColumnMenuShowing() {
|
|
3940
3953
|
return this.selectedColumn !== 0;
|
|
@@ -3961,7 +3974,7 @@ class ti {
|
|
|
3961
3974
|
}
|
|
3962
3975
|
focusInTableListener(e) {
|
|
3963
3976
|
const t = e.target, n = this.getRowByCell(t);
|
|
3964
|
-
n && (this.focusedCell = { row: Array.from(this.table.querySelectorAll(`.${
|
|
3977
|
+
n && (this.focusedCell = { row: Array.from(this.table.querySelectorAll(`.${ot}`)).indexOf(n) + 1, column: Array.from(n.querySelectorAll(`.${at}`)).indexOf(t) + 1 });
|
|
3965
3978
|
}
|
|
3966
3979
|
hideToolboxes() {
|
|
3967
3980
|
this.hideRowToolbox(), this.hideColumnToolbox(), this.updateToolboxesPosition();
|
|
@@ -4030,8 +4043,8 @@ class ti {
|
|
|
4030
4043
|
getHoveredCell(e) {
|
|
4031
4044
|
let t = this.hoveredRow, n = this.hoveredColumn;
|
|
4032
4045
|
const { width: s, height: a, x: c, y: g } = function(A, R) {
|
|
4033
|
-
const H = A.getBoundingClientRect(), { width: B, height:
|
|
4034
|
-
return { width: B, height:
|
|
4046
|
+
const H = A.getBoundingClientRect(), { width: B, height: G, x: ie, y: de } = H, { clientX: fe, clientY: q } = R;
|
|
4047
|
+
return { width: B, height: G, x: fe - ie, y: q - de };
|
|
4035
4048
|
}(this.table, e);
|
|
4036
4049
|
if (c >= 0) {
|
|
4037
4050
|
const A = ({ fromLeftBorder: H }) => c < H, R = ({ fromRightBorder: H }) => c > s - H;
|
|
@@ -4065,7 +4078,7 @@ class ti {
|
|
|
4065
4078
|
getData() {
|
|
4066
4079
|
const e = [];
|
|
4067
4080
|
for (let t = 1; t <= this.numberOfRows; t++) {
|
|
4068
|
-
const n = this.table.querySelector(`.${
|
|
4081
|
+
const n = this.table.querySelector(`.${ot}:nth-child(${t})`), s = Array.from(n.querySelectorAll(`.${at}`));
|
|
4069
4082
|
s.every((a) => !a.textContent.trim()) || e.push(s.map((a) => a.innerHTML));
|
|
4070
4083
|
}
|
|
4071
4084
|
return e;
|
|
@@ -4074,7 +4087,7 @@ class ti {
|
|
|
4074
4087
|
document.removeEventListener("click", this.documentClicked);
|
|
4075
4088
|
}
|
|
4076
4089
|
}
|
|
4077
|
-
class
|
|
4090
|
+
class ii {
|
|
4078
4091
|
static get isReadOnlySupported() {
|
|
4079
4092
|
return !0;
|
|
4080
4093
|
}
|
|
@@ -4088,7 +4101,7 @@ class ni {
|
|
|
4088
4101
|
return { icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M10 5V18.5"/><path stroke="currentColor" stroke-width="2" d="M5 10H19"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', title: "Table" };
|
|
4089
4102
|
}
|
|
4090
4103
|
render() {
|
|
4091
|
-
return this.table = new
|
|
4104
|
+
return this.table = new ni(this.readOnly, this.api, this.data, this.config), this.container = He("div", this.api.styles.block), this.container.appendChild(this.table.getWrapper()), this.table.setHeadingsSetting(this.data.withHeadings), this.container;
|
|
4092
4105
|
}
|
|
4093
4106
|
renderSettings() {
|
|
4094
4107
|
return [{ label: this.api.i18n.t("With headings"), icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M5 10H19"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', isActive: this.data.withHeadings, closeOnActivate: !0, toggle: !0, hint: { title: this.api.i18n.t("With headings") }, onActivate: () => {
|
|
@@ -4125,7 +4138,7 @@ function gt(_, e = null, t = {}) {
|
|
|
4125
4138
|
return n;
|
|
4126
4139
|
}
|
|
4127
4140
|
var Lt = ((_) => (_.Empty = "empty", _.Uploading = "uploading", _.Filled = "filled", _))(Lt || {});
|
|
4128
|
-
class
|
|
4141
|
+
class si {
|
|
4129
4142
|
constructor({ api: e, config: t, onSelectFile: n, readOnly: s }) {
|
|
4130
4143
|
this.api = e, this.config = t, this.onSelectFile = n, this.readOnly = s, this.nodes = { wrapper: gt("div", [this.CSS.baseClass, this.CSS.wrapper]), imageContainer: gt("div", [this.CSS.imageContainer]), fileButton: this.createFileButton(), imageEl: void 0, imagePreloader: gt("div", this.CSS.imagePreloader), caption: gt("div", [this.CSS.input, this.CSS.caption], { contentEditable: !this.readOnly }) }, this.nodes.caption.dataset.placeholder = this.config.captionPlaceholder, this.nodes.imageContainer.appendChild(this.nodes.imagePreloader), this.nodes.wrapper.appendChild(this.nodes.imageContainer), this.nodes.wrapper.appendChild(this.nodes.caption), this.nodes.wrapper.appendChild(this.nodes.fileButton);
|
|
4131
4144
|
}
|
|
@@ -4163,12 +4176,12 @@ class ii {
|
|
|
4163
4176
|
createFileButton() {
|
|
4164
4177
|
var t;
|
|
4165
4178
|
const e = gt("div", [this.CSS.button]);
|
|
4166
|
-
return e.innerHTML = (t = this.config.buttonContent) != null ? t : `${
|
|
4179
|
+
return e.innerHTML = (t = this.config.buttonContent) != null ? t : `${kn} ${this.api.i18n.t("Select an Image")}`, e.addEventListener("click", () => {
|
|
4167
4180
|
this.onSelectFile();
|
|
4168
4181
|
}), e;
|
|
4169
4182
|
}
|
|
4170
4183
|
}
|
|
4171
|
-
class
|
|
4184
|
+
class ri {
|
|
4172
4185
|
constructor({ config: e, onUpload: t, onError: n }) {
|
|
4173
4186
|
this.config = e, this.onUpload = t, this.onError = n;
|
|
4174
4187
|
}
|
|
@@ -4176,24 +4189,24 @@ class si {
|
|
|
4176
4189
|
var H;
|
|
4177
4190
|
let n = "", s = "";
|
|
4178
4191
|
const a = await function(B = {}) {
|
|
4179
|
-
let
|
|
4192
|
+
let G = !0;
|
|
4180
4193
|
return new Promise((ie, de) => {
|
|
4181
4194
|
let fe = document.createElement("INPUT");
|
|
4182
4195
|
fe.type = "file", B.multiple && fe.setAttribute("multiple", "multiple"), B.accept && fe.setAttribute("accept", B.accept), fe.style.display = "none", document.body.appendChild(fe), fe.addEventListener("change", (q) => {
|
|
4183
|
-
|
|
4184
|
-
const
|
|
4185
|
-
ie(
|
|
4196
|
+
G = !1;
|
|
4197
|
+
const we = q.target.files;
|
|
4198
|
+
ie(we), document.body.removeChild(fe);
|
|
4186
4199
|
}, !1), window.addEventListener("focus", () => {
|
|
4187
4200
|
setTimeout(() => {
|
|
4188
|
-
|
|
4201
|
+
G && ie([]);
|
|
4189
4202
|
}, 1e3);
|
|
4190
4203
|
}, { once: !0 }), fe.click();
|
|
4191
4204
|
});
|
|
4192
4205
|
}({ accept: (H = this.config.types) != null ? H : "image/*" });
|
|
4193
4206
|
if (!(a && a.length > 0)) return void t();
|
|
4194
4207
|
(function(B) {
|
|
4195
|
-
const
|
|
4196
|
-
|
|
4208
|
+
const G = new FileReader();
|
|
4209
|
+
G.readAsDataURL(B), G.onload = (ie) => {
|
|
4197
4210
|
e(ie.target.result);
|
|
4198
4211
|
};
|
|
4199
4212
|
})(a[0]);
|
|
@@ -4202,8 +4215,8 @@ class si {
|
|
|
4202
4215
|
if (!g.includes(E.toLowerCase())) return void this.onError("文件类型不支持");
|
|
4203
4216
|
let b = {};
|
|
4204
4217
|
if (this.config.tokenInfo) {
|
|
4205
|
-
const B = this.config.tokenInfo.token,
|
|
4206
|
-
B &&
|
|
4218
|
+
const B = this.config.tokenInfo.token, G = this.config.tokenInfo.tokenName, ie = this.config.tokenInfo.tokenPrefix;
|
|
4219
|
+
B && G && (b[G] = ie + " " + B);
|
|
4207
4220
|
}
|
|
4208
4221
|
b["Content-Type"] = "application/json";
|
|
4209
4222
|
const M = Et.create({ timeout: 18e5, headers: b }), A = await M.post(this.config.endpoints.byFile, { fileName: c.name, contentType: c.type });
|
|
@@ -4211,8 +4224,8 @@ class si {
|
|
|
4211
4224
|
const R = A.data;
|
|
4212
4225
|
if (!R.success) return void this.onError(R.message);
|
|
4213
4226
|
n = R.data.cdn, n && !n.endsWith && (n += "/"), s = R.data.objectKey, Et.create({ timeout: 18e5, headers: { "Content-Type": c.type } }).put(R.data.presignedUrl, c).then((B) => {
|
|
4214
|
-
let
|
|
4215
|
-
|
|
4227
|
+
let G = {};
|
|
4228
|
+
G = B.status === 200 ? { success: 1, file: { url: n + s } } : { success: 0, message: B.statusText }, this.onUpload(G);
|
|
4216
4229
|
}).catch((B) => {
|
|
4217
4230
|
this.onError(B);
|
|
4218
4231
|
});
|
|
@@ -4258,7 +4271,7 @@ class si {
|
|
|
4258
4271
|
class Rt {
|
|
4259
4272
|
constructor({ data: e, config: t, api: n, readOnly: s, block: a }) {
|
|
4260
4273
|
var c;
|
|
4261
|
-
this.isCaptionEnabled = null, this.api = n, this.block = a, this.config = { endpoints: t.endpoints, additionalRequestData: t.additionalRequestData, additionalRequestHeaders: t.additionalRequestHeaders, field: t.field, types: t.types, captionPlaceholder: this.api.i18n.t((c = t.captionPlaceholder) != null ? c : "Caption"), buttonContent: t.buttonContent, uploader: t.uploader, actions: t.actions, features: t.features || {}, tokenInfo: t.tokenInfo }, this.uploader = new
|
|
4274
|
+
this.isCaptionEnabled = null, this.api = n, this.block = a, this.config = { endpoints: t.endpoints, additionalRequestData: t.additionalRequestData, additionalRequestHeaders: t.additionalRequestHeaders, field: t.field, types: t.types, captionPlaceholder: this.api.i18n.t((c = t.captionPlaceholder) != null ? c : "Caption"), buttonContent: t.buttonContent, uploader: t.uploader, actions: t.actions, features: t.features || {}, tokenInfo: t.tokenInfo }, this.uploader = new ri({ config: this.config, onUpload: (g) => this.onUpload(g), onError: (g) => this.uploadingFailed(g) }), this.ui = new si({ api: n, config: this.config, onSelectFile: () => {
|
|
4262
4275
|
this.uploader.uploadSelectedFile({ onPreview: (g) => {
|
|
4263
4276
|
this.ui.showPreloader(g);
|
|
4264
4277
|
}, noSelectedFile: () => {
|
|
@@ -4276,7 +4289,7 @@ class Rt {
|
|
|
4276
4289
|
return !0;
|
|
4277
4290
|
}
|
|
4278
4291
|
static get toolbox() {
|
|
4279
|
-
return { icon:
|
|
4292
|
+
return { icon: kn, title: "Image" };
|
|
4280
4293
|
}
|
|
4281
4294
|
static get tunes() {
|
|
4282
4295
|
return [{ name: "withBorder", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18.9919 9.5H19.0015"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.5 5H14.5096"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M14.625 5H15C17.2091 5 19 6.79086 19 9V9.375"/><path stroke="currentColor" stroke-width="2" d="M9.375 5L9 5C6.79086 5 5 6.79086 5 9V9.375"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.3725 5H9.38207"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 9.5H5.00957"/><path stroke="currentColor" stroke-width="2" d="M9.375 19H9C6.79086 19 5 17.2091 5 15V14.625"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.3725 19H9.38207"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 14.55H5.00957"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 13V16M16 19V16M19 16H16M16 16H13"/></svg>', title: "With border", toggle: !0 }, { name: "stretched", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 9L20 12L17 15"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 12H20"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 9L4 12L7 15"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 12H10"/></svg>', title: "Stretch image", toggle: !0 }, { name: "withBackground", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 19V19C9.13623 19 8.20435 19 7.46927 18.6955C6.48915 18.2895 5.71046 17.5108 5.30448 16.5307C5 15.7956 5 14.8638 5 13V12C5 9.19108 5 7.78661 5.67412 6.77772C5.96596 6.34096 6.34096 5.96596 6.77772 5.67412C7.78661 5 9.19108 5 12 5H13.5C14.8956 5 15.5933 5 16.1611 5.17224C17.4395 5.56004 18.44 6.56046 18.8278 7.83886C19 8.40666 19 9.10444 19 10.5V10.5"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 13V16M16 19V16M19 16H16M16 16H13"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6.5 17.5L17.5 6.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18.9919 10.5H19.0015"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.9919 19H11.0015"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13L13 5"/></svg>', title: "With background", toggle: !0 }];
|
|
@@ -4295,7 +4308,7 @@ class Rt {
|
|
|
4295
4308
|
renderSettings() {
|
|
4296
4309
|
var a;
|
|
4297
4310
|
const e = Rt.tunes.concat(this.config.actions || []), t = { border: "withBorder", background: "withBackground", stretch: "stretched", caption: "caption" };
|
|
4298
|
-
((a = this.config.features) == null ? void 0 : a.caption) === "optional" && e.push({ name: "caption", icon:
|
|
4311
|
+
((a = this.config.features) == null ? void 0 : a.caption) === "optional" && e.push({ name: "caption", icon: bn, title: "With caption", toggle: !0 });
|
|
4299
4312
|
const n = e.filter((c) => {
|
|
4300
4313
|
var C, E;
|
|
4301
4314
|
const g = Object.keys(t).find((b) => t[b] === c.name);
|
|
@@ -4374,7 +4387,7 @@ class Rt {
|
|
|
4374
4387
|
this.ui.showPreloader(e), this.uploader.uploadByUrl(e);
|
|
4375
4388
|
}
|
|
4376
4389
|
}
|
|
4377
|
-
class
|
|
4390
|
+
class oi {
|
|
4378
4391
|
constructor({ api: e, data: t, config: n, block: s }) {
|
|
4379
4392
|
var a, c, g, C, E, b, M, A, R;
|
|
4380
4393
|
this.settings = [], this.api = e, this.block = s, this.data = { floatLeft: (a = t == null ? void 0 : t.floatLeft) != null ? a : !1, floatRight: (c = t == null ? void 0 : t.floatRight) != null ? c : !1, center: (g = t == null ? void 0 : t.center) != null ? g : !1, sizeSmall: (C = t == null ? void 0 : t.sizeSmall) != null ? C : !1, sizeMiddle: (E = t == null ? void 0 : t.sizeMiddle) != null ? E : !1, sizeLarge: (b = t == null ? void 0 : t.sizeLarge) != null ? b : !1, resize: (A = (M = t == null ? void 0 : t.resize) != null ? M : n == null ? void 0 : n.resize) != null ? A : !1, resizeSize: (R = t == null ? void 0 : t.resizeSize) != null ? R : 0 }, this.wrapper = void 0, this.buttons = [], this.styles = { settingsButton: "cdx-settings-button", settingsButtonActive: "cdx-settings-button--active", settingsButtonModifier: "", settingsButtonModifierActive: "" };
|
|
@@ -4519,13 +4532,13 @@ class ri {
|
|
|
4519
4532
|
this.setTune(e);
|
|
4520
4533
|
}
|
|
4521
4534
|
}
|
|
4522
|
-
class
|
|
4535
|
+
class ct {
|
|
4523
4536
|
constructor(e, t) {
|
|
4524
4537
|
this.styleTypeClass = { bold: "cel-inline-bold", italic: "cel-inline-italic", code: "cel-inline-code", underline: "cel-inline-underline", color: "cel-inline-color", mark: "cel-inline-mark", link: "cel-inline-link", strikethrough: "cel-inline-strikethrough" }, this.saveSel = null, this.type = e, this.tag = e == "link" ? "A" : "SPAN", this.rangy = t;
|
|
4525
4538
|
const n = t.modules.ClassApplier;
|
|
4526
4539
|
if (t.supported && n && n.supported) {
|
|
4527
4540
|
const s = { elementTagName: this.tag, ignoreWhiteSpace: !0, applyToEditableOnly: !0, tagNames: [this.tag], normalize: !0, useExistingElements: !0 };
|
|
4528
|
-
this.applier = t.createClassApplier(this.styleTypeClass[this.type], s);
|
|
4541
|
+
this.applier = t.createClassApplier(this.styleTypeClass[this.type], s), this.fakeBackgroundApplier = t.createClassApplier("cel-fake-background", { elementTagName: "span", tagNames: ["span"], normalize: !1, useExistingElements: !1 });
|
|
4529
4542
|
}
|
|
4530
4543
|
}
|
|
4531
4544
|
surround() {
|
|
@@ -4539,10 +4552,7 @@ class nt {
|
|
|
4539
4552
|
}
|
|
4540
4553
|
fakeBackground(e = !1) {
|
|
4541
4554
|
const t = this.rangy.modules.ClassApplier;
|
|
4542
|
-
|
|
4543
|
-
const n = { elementTagName: "span", tagNames: ["span"], normalize: !1, useExistingElements: !1 }, s = this.rangy.createClassApplier("cel-fake-background", n);
|
|
4544
|
-
e ? s.undoToSelection() : s.applyToSelection();
|
|
4545
|
-
}
|
|
4555
|
+
this.rangy.supported && t && t.supported && (e ? this.fakeBackgroundApplier.undoToSelection() : this.fakeBackgroundApplier.applyToSelection());
|
|
4546
4556
|
}
|
|
4547
4557
|
wrapByPropertys(e) {
|
|
4548
4558
|
const t = this.rangy.modules.ClassApplier;
|
|
@@ -4558,28 +4568,6 @@ class nt {
|
|
|
4558
4568
|
this.rangy.createClassApplier(this.styleTypeClass[this.type], n).undoToSelection();
|
|
4559
4569
|
}
|
|
4560
4570
|
}
|
|
4561
|
-
wrapColor(e, t) {
|
|
4562
|
-
const n = this.rangy.modules.ClassApplier;
|
|
4563
|
-
if (this.rangy.supported && n && n.supported) {
|
|
4564
|
-
const s = { elementTagName: this.tag, ignoreWhiteSpace: !0, applyToEditableOnly: !0, tagNames: [this.tag], normalize: !0, useExistingElements: !1 };
|
|
4565
|
-
this.rangy.createClassApplier(e, s).applyToSelection();
|
|
4566
|
-
}
|
|
4567
|
-
}
|
|
4568
|
-
unWrapColorAll(e) {
|
|
4569
|
-
const t = { elementTagName: this.tag, ignoreWhiteSpace: !0, applyToEditableOnly: !0, tagNames: [this.tag], normalize: !0, useExistingElements: !1 };
|
|
4570
|
-
for (let [n, s] of Object.entries(e))
|
|
4571
|
-
n !== "none" && this.rangy.createClassApplier(s, t).undoToSelection();
|
|
4572
|
-
}
|
|
4573
|
-
findStateColor(e) {
|
|
4574
|
-
let t = "";
|
|
4575
|
-
const n = { elementTagName: this.tag, ignoreWhiteSpace: !0, applyToEditableOnly: !0, tagNames: [this.tag], normalize: !0, useExistingElements: !1 };
|
|
4576
|
-
for (let [s, a] of Object.entries(e))
|
|
4577
|
-
if (this.rangy.createClassApplier(a, n).isAppliedToSelection()) {
|
|
4578
|
-
t = a;
|
|
4579
|
-
break;
|
|
4580
|
-
}
|
|
4581
|
-
return t;
|
|
4582
|
-
}
|
|
4583
4571
|
checkState() {
|
|
4584
4572
|
return this.applier.isAppliedToSelection();
|
|
4585
4573
|
}
|
|
@@ -4598,9 +4586,9 @@ class nt {
|
|
|
4598
4586
|
this.rangy.removeAllRanges();
|
|
4599
4587
|
}
|
|
4600
4588
|
}
|
|
4601
|
-
class
|
|
4589
|
+
class ai {
|
|
4602
4590
|
constructor({ api: e, config: t }) {
|
|
4603
|
-
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new
|
|
4591
|
+
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("bold", t.rangy);
|
|
4604
4592
|
}
|
|
4605
4593
|
static get isInline() {
|
|
4606
4594
|
return !0;
|
|
@@ -4623,9 +4611,9 @@ class oi {
|
|
|
4623
4611
|
return "CMD+B";
|
|
4624
4612
|
}
|
|
4625
4613
|
}
|
|
4626
|
-
class
|
|
4614
|
+
class li {
|
|
4627
4615
|
constructor({ api: e, config: t }) {
|
|
4628
|
-
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new
|
|
4616
|
+
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("strikethrough", t.rangy);
|
|
4629
4617
|
}
|
|
4630
4618
|
static get isInline() {
|
|
4631
4619
|
return !0;
|
|
@@ -4648,9 +4636,9 @@ class ai {
|
|
|
4648
4636
|
return "CMD+SHIFT+X";
|
|
4649
4637
|
}
|
|
4650
4638
|
}
|
|
4651
|
-
class
|
|
4639
|
+
class ci {
|
|
4652
4640
|
constructor({ api: e, config: t }) {
|
|
4653
|
-
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new
|
|
4641
|
+
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("italic", t.rangy);
|
|
4654
4642
|
}
|
|
4655
4643
|
static get isInline() {
|
|
4656
4644
|
return !0;
|
|
@@ -4673,9 +4661,9 @@ class li {
|
|
|
4673
4661
|
return "CMD+I";
|
|
4674
4662
|
}
|
|
4675
4663
|
}
|
|
4676
|
-
class
|
|
4664
|
+
class di {
|
|
4677
4665
|
constructor({ api: e, config: t }) {
|
|
4678
|
-
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new
|
|
4666
|
+
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("code", t.rangy);
|
|
4679
4667
|
}
|
|
4680
4668
|
static get isInline() {
|
|
4681
4669
|
return !0;
|
|
@@ -4698,9 +4686,9 @@ class ci {
|
|
|
4698
4686
|
return "CMD+SHIFT+C";
|
|
4699
4687
|
}
|
|
4700
4688
|
}
|
|
4701
|
-
class
|
|
4689
|
+
class hi {
|
|
4702
4690
|
constructor({ api: e, config: t }) {
|
|
4703
|
-
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new
|
|
4691
|
+
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("underline", t.rangy);
|
|
4704
4692
|
}
|
|
4705
4693
|
static get isInline() {
|
|
4706
4694
|
return !0;
|
|
@@ -4723,9 +4711,9 @@ class di {
|
|
|
4723
4711
|
return "CMD+U";
|
|
4724
4712
|
}
|
|
4725
4713
|
}
|
|
4726
|
-
class
|
|
4714
|
+
class ui {
|
|
4727
4715
|
constructor({ api: e, config: t }) {
|
|
4728
|
-
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new
|
|
4716
|
+
this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("mark", t.rangy);
|
|
4729
4717
|
}
|
|
4730
4718
|
static get isInline() {
|
|
4731
4719
|
return !0;
|
|
@@ -4745,9 +4733,9 @@ class hi {
|
|
|
4745
4733
|
return { span: { class: !0 } };
|
|
4746
4734
|
}
|
|
4747
4735
|
}
|
|
4748
|
-
class
|
|
4736
|
+
class pi {
|
|
4749
4737
|
constructor({ api: e, config: t }) {
|
|
4750
|
-
this.input = null, this.okbtn = null, this.ENTER_KEY = 13, this.inputOpened = !1, this.isFakeBackgroundEnabled = !1, this.api = e, this.button = null, this.i18n = e.i18n, this.rangy = t.rangy, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new
|
|
4738
|
+
this.input = null, this.okbtn = null, this.ENTER_KEY = 13, this.inputOpened = !1, this.isFakeBackgroundEnabled = !1, this.api = e, this.button = null, this.i18n = e.i18n, this.rangy = t.rangy, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("link", t.rangy);
|
|
4751
4739
|
}
|
|
4752
4740
|
static get isInline() {
|
|
4753
4741
|
return !0;
|
|
@@ -4808,7 +4796,7 @@ class ui {
|
|
|
4808
4796
|
checkState() {
|
|
4809
4797
|
var t;
|
|
4810
4798
|
const e = this.inlineToolUtils.checkState();
|
|
4811
|
-
return (t = this.button) == null || t.classList.toggle(this.iconClasses.active, e), this.button.innerHTML = e ?
|
|
4799
|
+
return (t = this.button) == null || t.classList.toggle(this.iconClasses.active, e), this.button.innerHTML = e ? Sn : nn, e;
|
|
4812
4800
|
}
|
|
4813
4801
|
static get sanitize() {
|
|
4814
4802
|
return { a: { class: !0, href: !0, target: !0 } };
|
|
@@ -4820,69 +4808,106 @@ class ui {
|
|
|
4820
4808
|
this.closeActions();
|
|
4821
4809
|
}
|
|
4822
4810
|
}
|
|
4823
|
-
class
|
|
4811
|
+
class gi {
|
|
4824
4812
|
constructor({ api: e, config: t }) {
|
|
4825
|
-
this.colors = { none: "inherit", "#646a73": "cel-inline-gray-text", "#d83931": "cel-inline-pink-text", "#de7802": "cel-inline-orange-text", "#dc9b04": "cel-inline-yellow-text", "#2ea121": "cel-inline-green-text", "#245bdb": "cel-inline-blue-text", "#6425d0": "cel-inline-purple-text" }, this.columns = 4, this.
|
|
4813
|
+
this.colors = { none: "inherit", "#646a73": "cel-inline-gray-text", "#d83931": "cel-inline-pink-text", "#de7802": "cel-inline-orange-text", "#dc9b04": "cel-inline-yellow-text", "#2ea121": "cel-inline-green-text", "#245bdb": "cel-inline-blue-text", "#6425d0": "cel-inline-purple-text" }, this.columns = 4, this.hidenInput = null, this.saveSel = null, this.colorOpened = !1, this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, t.colors && (this.colors = t.colors), t.columns && (this.columns = t.columns), this.rangy = t.rangy;
|
|
4826
4814
|
}
|
|
4827
4815
|
static get isInline() {
|
|
4828
4816
|
return !0;
|
|
4829
4817
|
}
|
|
4830
4818
|
render() {
|
|
4831
|
-
return this.button = document.createElement("button"), this.button.setAttribute("type", "button"), this.button.classList.add(this.iconClasses.base), this.button.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M5.24296 11.4075C5.23167 10.6253 5.52446 9.8395 6.12132 9.24264L9.65686 5.70711C10.0474 5.31658 10.6809 5.31693 11.0714 5.70745L16.0205 10.6565C16.2268 10.8629 16.3243 11.1371 16.3126 11.4075M5.24296 11.4075C5.25382 12.1607 5.54661 12.9106 6.12132 13.4853L8 15.364M5.24296 11.4075H11.9565M16.3126 11.4075C16.3022 11.6487 16.205 11.8869 16.0208 12.0711L12.4853 15.6066C11.3137 16.7782 9.41421 16.7782 8.24264 15.6066L8 15.364M16.3126 11.4075H11.9565M8 15.364L11.9565 11.4075"/><path stroke="currentColor" stroke-width="2" d="M20 17.4615C20 18.3112 19.3284 19 18.5 19C17.6716 19 17 18.3112 17 17.4615C17 16.6119 17.9 15.6154 18.5 15C19.1 15.6154 20 16.6119 20 17.4615Z"/></svg>', this.button
|
|
4832
|
-
e.preventDefault();
|
|
4833
|
-
}), this.button;
|
|
4819
|
+
return this.button = document.createElement("button"), this.button.setAttribute("type", "button"), this.button.classList.add(this.iconClasses.base), this.button.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M5.24296 11.4075C5.23167 10.6253 5.52446 9.8395 6.12132 9.24264L9.65686 5.70711C10.0474 5.31658 10.6809 5.31693 11.0714 5.70745L16.0205 10.6565C16.2268 10.8629 16.3243 11.1371 16.3126 11.4075M5.24296 11.4075C5.25382 12.1607 5.54661 12.9106 6.12132 13.4853L8 15.364M5.24296 11.4075H11.9565M16.3126 11.4075C16.3022 11.6487 16.205 11.8869 16.0208 12.0711L12.4853 15.6066C11.3137 16.7782 9.41421 16.7782 8.24264 15.6066L8 15.364M16.3126 11.4075H11.9565M8 15.364L11.9565 11.4075"/><path stroke="currentColor" stroke-width="2" d="M20 17.4615C20 18.3112 19.3284 19 18.5 19C17.6716 19 17 18.3112 17 17.4615C17 16.6119 17.9 15.6154 18.5 15C19.1 15.6154 20 16.6119 20 17.4615Z"/></svg>', this.button;
|
|
4834
4820
|
}
|
|
4835
4821
|
renderActions() {
|
|
4836
4822
|
const e = document.createElement("div");
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
this.
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4823
|
+
if (!this.findStateColor()) {
|
|
4824
|
+
e.classList.add("editorjs__color-selector-container"), e.style.gridTemplateColumns = `repeat(${this.columns}, 1fr)`;
|
|
4825
|
+
for (let [t, n] of Object.entries(this.colors)) {
|
|
4826
|
+
const s = document.createElement("div");
|
|
4827
|
+
this.api.tooltip.onHover(s, this.api.i18n.t(t)), s.classList.add("editorjs__color-selector__container-item"), s.style.backgroundColor = t, t == "none" && s.classList.add("editorjs__color-selector__container-item-none"), s.onclick = (a) => {
|
|
4828
|
+
var c = this.rangy.modules.SaveRestore;
|
|
4829
|
+
this.rangy.supported && c && c.supported && this.saveSel && this.rangy.restoreSelection(this.saveSel), this.unWrapColorAll(), a.currentTarget.classList.contains("editorjs__color-selector__container-item-none") || this.wrapColor(n);
|
|
4830
|
+
}, e.append(s);
|
|
4831
|
+
}
|
|
4832
|
+
e.addEventListener("click", (t) => {
|
|
4833
|
+
t.stopPropagation(), t.preventDefault();
|
|
4834
|
+
}), this.hidenInput = document.createElement("input"), this.hidenInput.style.opacity = "0", this.hidenInput.style.width = "0px", this.hidenInput.style.height = "0px", e.append(this.hidenInput);
|
|
4835
|
+
}
|
|
4836
|
+
return e;
|
|
4849
4837
|
}
|
|
4850
4838
|
surround(e) {
|
|
4851
|
-
|
|
4839
|
+
if (this.findStateColor()) this.unWrapColorAll();
|
|
4840
|
+
else if (!this.colorOpened) {
|
|
4841
|
+
var t = this.rangy.modules.SaveRestore;
|
|
4842
|
+
this.rangy.supported && t && t.supported && (this.saveSel = this.rangy.saveSelection()), this.openActions();
|
|
4843
|
+
}
|
|
4844
|
+
}
|
|
4845
|
+
openActions() {
|
|
4846
|
+
var e;
|
|
4847
|
+
(e = this.hidenInput) == null || e.focus(), this.colorOpened = !0;
|
|
4852
4848
|
}
|
|
4853
4849
|
checkState() {
|
|
4854
4850
|
var n;
|
|
4855
|
-
|
|
4856
|
-
const e = this.inlineToolUtils.findStateColor(this.colors);
|
|
4851
|
+
const e = this.findStateColor();
|
|
4857
4852
|
let t = !1;
|
|
4858
|
-
return e && e !== "" && (t = !0), (n = this.button) == null || n.classList.toggle(this.iconClasses.active, t),
|
|
4853
|
+
return e && e !== "" && (t = !0), (n = this.button) == null || n.classList.toggle(this.iconClasses.active, t), t;
|
|
4859
4854
|
}
|
|
4860
4855
|
static get sanitize() {
|
|
4861
4856
|
return { span: { class: !0, style: !0 } };
|
|
4862
4857
|
}
|
|
4858
|
+
unWrapColorAll() {
|
|
4859
|
+
const e = { elementTagName: "span", ignoreWhiteSpace: !0, applyToEditableOnly: !0, tagNames: ["span"], normalize: !0, useExistingElements: !1 };
|
|
4860
|
+
for (let [t, n] of Object.entries(this.colors))
|
|
4861
|
+
t !== "none" && this.rangy.createClassApplier(n, e).undoToSelection();
|
|
4862
|
+
}
|
|
4863
|
+
wrapColor(e) {
|
|
4864
|
+
const t = this.rangy.modules.ClassApplier;
|
|
4865
|
+
if (this.rangy.supported && t && t.supported) {
|
|
4866
|
+
const n = { elementTagName: "span", ignoreWhiteSpace: !0, applyToEditableOnly: !0, tagNames: ["span"], normalize: !0, useExistingElements: !1 };
|
|
4867
|
+
this.rangy.createClassApplier(e, n).applyToSelection();
|
|
4868
|
+
}
|
|
4869
|
+
}
|
|
4870
|
+
findStateColor() {
|
|
4871
|
+
let e = "";
|
|
4872
|
+
const t = { elementTagName: "span", ignoreWhiteSpace: !0, applyToEditableOnly: !0, tagNames: ["span"], normalize: !0, useExistingElements: !1 };
|
|
4873
|
+
for (let [n] of Object.entries(this.colors))
|
|
4874
|
+
if (this.rangy.createClassApplier(n, t).isAppliedToSelection()) {
|
|
4875
|
+
e = n;
|
|
4876
|
+
break;
|
|
4877
|
+
}
|
|
4878
|
+
return e;
|
|
4879
|
+
}
|
|
4880
|
+
closeActions() {
|
|
4881
|
+
if (!this.colorOpened) return;
|
|
4882
|
+
const e = this.rangy.saveSelection();
|
|
4883
|
+
this.colorOpened = !1, this.rangy.restoreSelection(e), this.rangy.getSelection().removeAllRanges();
|
|
4884
|
+
}
|
|
4885
|
+
clear() {
|
|
4886
|
+
this.closeActions();
|
|
4887
|
+
}
|
|
4863
4888
|
}
|
|
4864
|
-
const
|
|
4889
|
+
const fi = { class: "ebl-editor", id: "holder" }, mi = xn({ name: "EblEditor", inheritAttrs: !1, __name: "Editor", props: { readOnly: { type: Boolean, default: !1 }, placeholder: { default: "Enter something" }, data: { default: () => ({ blocks: [] }) }, locale: { default: {} }, tokenInfo: { default: { token: "", tokenName: "Authorization", tokenPrefix: "Bearer" } } }, emits: ["onReady", "onChange"], setup(_, { expose: e, emit: t }) {
|
|
4865
4890
|
let n = Wn();
|
|
4866
4891
|
n = Fn(n), n = function(H) {
|
|
4867
|
-
return H.createModule("SaveRestore", ["WrappedSelection"], function(B,
|
|
4892
|
+
return H.createModule("SaveRestore", ["WrappedSelection"], function(B, G) {
|
|
4868
4893
|
var ie = B.dom, de = ie.removeNode, fe = B.Selection.isDirectionBackward;
|
|
4869
4894
|
function q(V, re) {
|
|
4870
4895
|
return (re || document).getElementById(V);
|
|
4871
4896
|
}
|
|
4872
|
-
function
|
|
4897
|
+
function we(V, re) {
|
|
4873
4898
|
var Q, ae = "selectionBoundary_" + +/* @__PURE__ */ new Date() + "_" + ("" + Math.random()).slice(2), le = ie.getDocument(V.startContainer), ve = V.cloneRange();
|
|
4874
4899
|
return ve.collapse(re), (Q = le.createElement("span")).id = ae, Q.style.lineHeight = "0", Q.style.display = "none", Q.className = "rangySelectionBoundary", Q.appendChild(le.createTextNode("\uFEFF")), ve.insertNode(Q), Q;
|
|
4875
4900
|
}
|
|
4876
4901
|
function $e(V, re, Q, ae) {
|
|
4877
4902
|
var le = q(Q, V);
|
|
4878
|
-
le ? (re[ae ? "setStartBefore" : "setEndBefore"](le), de(le)) :
|
|
4903
|
+
le ? (re[ae ? "setStartBefore" : "setEndBefore"](le), de(le)) : G.warn("Marker element has been removed. Cannot restore selection.");
|
|
4879
4904
|
}
|
|
4880
4905
|
function Ae(V, re) {
|
|
4881
4906
|
return re.compareBoundaryPoints(V.START_TO_START, V);
|
|
4882
4907
|
}
|
|
4883
4908
|
function Be(V, re) {
|
|
4884
4909
|
var Q, ae = B.DomRange.getRangeDocument(V), le = V.toString(), ve = fe(re);
|
|
4885
|
-
return V.collapsed ? { document: ae, markerId: (Q =
|
|
4910
|
+
return V.collapsed ? { document: ae, markerId: (Q = we(V, !1)).id, collapsed: !0 } : (Q = we(V, !1), { document: ae, startMarkerId: we(V, !0).id, endMarkerId: Q.id, collapsed: !1, backward: ve, toString: function() {
|
|
4886
4911
|
return "original text: '" + le + "', new text: '" + V.toString() + "'";
|
|
4887
4912
|
} });
|
|
4888
4913
|
}
|
|
@@ -4896,7 +4921,7 @@ const gi = { class: "ebl-editor", id: "holder" }, fi = Ln({ name: "EblEditor", i
|
|
|
4896
4921
|
le.style.display = "inline";
|
|
4897
4922
|
var ve = le.previousSibling;
|
|
4898
4923
|
ve && ve.nodeType == 3 ? (de(le), ae.collapseToPoint(ve, ve.length)) : (ae.collapseBefore(le), de(le));
|
|
4899
|
-
} else
|
|
4924
|
+
} else G.warn("Marker element has been removed. Cannot restore selection.");
|
|
4900
4925
|
} else $e(Q, ae, V.startMarkerId, !0), $e(Q, ae, V.endMarkerId, !1);
|
|
4901
4926
|
return re && ae.normalizeBoundaries(), ae;
|
|
4902
4927
|
}
|
|
@@ -4916,7 +4941,7 @@ const gi = { class: "ebl-editor", id: "holder" }, fi = Ln({ name: "EblEditor", i
|
|
|
4916
4941
|
Q && de(Q);
|
|
4917
4942
|
}
|
|
4918
4943
|
B.util.extend(B, { saveRange: Be, restoreRange: Ye, saveRanges: Oe, restoreRanges: _e, saveSelection: function(V) {
|
|
4919
|
-
if (!B.isSelectionValid(V)) return
|
|
4944
|
+
if (!B.isSelectionValid(V)) return G.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."), null;
|
|
4920
4945
|
var re = B.getSelection(V), Q = re.getAllRanges(), ae = Q.length == 1 && re.isBackward(), le = Oe(Q, ae);
|
|
4921
4946
|
return ae ? re.setSingleRange(Q[0], ae) : re.setRanges(Q), { win: V, rangeInfos: le, restored: !1 };
|
|
4922
4947
|
}, restoreSelection: function(V, re) {
|
|
@@ -4929,19 +4954,19 @@ const gi = { class: "ebl-editor", id: "holder" }, fi = Ln({ name: "EblEditor", i
|
|
|
4929
4954
|
} });
|
|
4930
4955
|
}), H;
|
|
4931
4956
|
}(n);
|
|
4932
|
-
const s =
|
|
4957
|
+
const s = Rn("EblEditorSettings");
|
|
4933
4958
|
let a = t;
|
|
4934
4959
|
const c = _;
|
|
4935
4960
|
let g = { blocks: [] }, C = null, E = null;
|
|
4936
4961
|
const b = ["indent", "blockAlignment"], M = ["linkTool", "boldTool", "strikethrough", "italicTool", "inlineCode", "underline", "Color", "marker"];
|
|
4937
|
-
|
|
4938
|
-
n.init(), C = new
|
|
4962
|
+
Nn(() => {
|
|
4963
|
+
n.init(), C = new In({ minHeight: 300, holder: "holder", autofocus: !0, defaultBlock: "paragraph", placeholder: c.placeholder, tunes: b, tools: { linkTool: { class: pi, config: { rangy: n }, shortcut: "CMD+K" }, boldTool: { class: ai, config: { rangy: n }, shortcut: "CMD+B" }, strikethrough: { class: li, config: { rangy: n }, shortcut: "CMD+SHIFT+X" }, italicTool: { class: ci, config: { rangy: n }, shortcut: "CMD+I" }, inlineCode: { class: di, config: { rangy: n }, shortcut: "CMD+SHIFT+C" }, underline: { class: hi, config: { rangy: n }, shortcut: "CMD+U" }, Color: { class: gi, config: { rangy: n } }, marker: { class: ui, config: { rangy: n } }, indent: { class: Ut }, alert: { class: et, inlineToolbar: M }, List: { class: xt, inlineToolbar: M, config: { defaultStyle: "checklist", maxLevel: 4 } }, h1: { class: qn, inlineToolbar: M }, h2: { class: Vn, inlineToolbar: M }, h3: { class: Kn, inlineToolbar: M }, h4: { class: Yn, inlineToolbar: M }, h5: { class: Xn, inlineToolbar: M }, h6: { class: Gn, inlineToolbar: M }, paragraph: { class: qt, inlineToolbar: M }, blockAlignment: { class: jt, inlineToolbar: !1 }, code: { tunes: [], class: St, config: { lang: "javascript", theme: "github-dark-dimmed" } }, quote: { tunes: ["blockAlignment"], class: Qn, inlineToolbar: M }, delimiter: Zn, table: { class: ii, inlineToolbar: M, config: { rows: 2, cols: 3 } }, image: { class: Rt, inlineToolbar: !1, tunes: b.concat(["imageResize"]), config: { types: ".png,.jpeg,.jpg,.gif,.webp", tokenInfo: c.tokenInfo, endpoints: { byFile: s == null ? void 0 : s.fileUploadEndpoint }, features: { caption: !1, stretch: !1, border: !1, background: !1 } } }, imageResize: { class: oi, config: { resize: !0, crop: !1 } } }, readOnly: c.readOnly, i18n: c.locale, onChange: (H, B) => {
|
|
4939
4964
|
a("onChange", H, B);
|
|
4940
4965
|
}, onReady: () => {
|
|
4941
|
-
new $n("holder", c.readOnly, C, "1px solid #999"), new Un("holder", c.readOnly), c.data && c.data.blocks && c.data.blocks.length > 0 && (E = new
|
|
4966
|
+
new $n("holder", c.readOnly, C, "1px solid #999"), new Un("holder", c.readOnly), new jn("holder", c.readOnly, C), c.data && c.data.blocks && c.data.blocks.length > 0 && (E = new ei({ editor: C, config: { debounceTimer: 200, maxLength: 100 }, onUpdate: () => {
|
|
4942
4967
|
} }), g = Mt(c.data), E.initialize(g), R(g)), a("onReady");
|
|
4943
4968
|
} });
|
|
4944
|
-
}),
|
|
4969
|
+
}), An(() => {
|
|
4945
4970
|
C !== null && (C.destroy(), C = null);
|
|
4946
4971
|
});
|
|
4947
4972
|
let A = !1;
|
|
@@ -4952,32 +4977,32 @@ const gi = { class: "ebl-editor", id: "holder" }, fi = Ln({ name: "EblEditor", i
|
|
|
4952
4977
|
});
|
|
4953
4978
|
}));
|
|
4954
4979
|
}
|
|
4955
|
-
return
|
|
4980
|
+
return _n(() => c.data, (H, B) => {
|
|
4956
4981
|
H && H.blocks && H.blocks.length !== 0 && (g = Mt(H), R(Mt(H)), E != null && (E.clear(), E.initialize(g)));
|
|
4957
4982
|
}, { deep: !0 }), e({ validate: function() {
|
|
4958
4983
|
return new Promise((H, B) => {
|
|
4959
4984
|
if (C === null) return H(!1);
|
|
4960
|
-
C.save().then((
|
|
4985
|
+
C.save().then((G) => G.blocks.length > 0 ? H(!0) : H(!1));
|
|
4961
4986
|
});
|
|
4962
4987
|
}, getData: function() {
|
|
4963
4988
|
return new Promise((H, B) => {
|
|
4964
4989
|
if (C === null) return H(null);
|
|
4965
|
-
C.save().then((
|
|
4990
|
+
C.save().then((G) => H(G));
|
|
4966
4991
|
});
|
|
4967
|
-
} }), (H, B) => (
|
|
4968
|
-
} }),
|
|
4969
|
-
let
|
|
4970
|
-
for (let _ in
|
|
4971
|
-
const e = zn(
|
|
4972
|
-
|
|
4992
|
+
} }), (H, B) => (On(), Mn("div", fi));
|
|
4993
|
+
} }), yn = [mi];
|
|
4994
|
+
let Tn = [];
|
|
4995
|
+
for (let _ in yn) {
|
|
4996
|
+
const e = zn(yn[_]);
|
|
4997
|
+
Tn.push(e);
|
|
4973
4998
|
}
|
|
4974
|
-
const
|
|
4999
|
+
const Si = { messages: { ui: { blockTunes: { toggler: { "Click to tune": "可拖拽和点击" } }, toolbar: { toolbox: { Add: "添加", Filter: "过滤", "Nothing found": "无内容" }, popover: { Filter: "过滤", "Nothing found": "无内容" } }, popover: { Filter: "筛选", "Nothing found": "未找到任何内容", "Convert to": "转化为", "Add below": "在下方插入" } }, toolNames: { Text: "段落", H1: "一级标题", H2: "二级标题", H3: "三级标题", H4: "四级标题", H5: "五级标题", H6: "六级标题", "Ordered List": "有序列表", "Unordered List": "无序列表", Checklist: "任务列表", Quote: "引用", Code: "代码块", Delimiter: "分割线", Link: "链接", LinkTool: "链接", Bold: "加粗", BoldTool: "粗体", Italic: "倾斜", ItalicTool: "斜体", Alert: "高亮块", indent: "缩进", Marker: "文本高亮", Color: "文本颜色", Underline: "下划线", InlineCode: "行内代码", Table: "表格", Image: "图片", Strikethrough: "删除线" }, tools: { image: { "Couldn’t upload image. Please try another.": "上传图片失败,请稍后重试。" }, table: { "Add row above": "在上面插入行", "Add row below": "在下面插入行", "Delete row": "删除行", "Add column to left": "在左边插入列", "Add column to right": "在右边插入列", "Delete column": "删除列", "With headings": "使用标题行", "Without headings": "不使用标题行" }, marker: { Marker: "突出显示" }, linkTool: { "Add a link": "添加链接", Save: "确定", "Pasted link is not valid.": "链接地址无效" }, List: { Unordered: "无序", Ordered: "有序", Checklist: "任务列表", "Counter type": "计数器类型", Numeric: "阿拉伯数字", "Lower Roman": "小写罗马数字", "Upper Roman": "大写罗马数字", "Lower Alpha": "小写字母", "Upper Alpha": "大写字母", "Start with": "开始序号" }, paragraph: { "Enter something": "请输入内容" }, stub: { "The block can not be displayed correctly.": "该模块不能放置在这里" }, code: { "Enter your code": "输入代码", Copied: "已复制", "Unable to copy": "复制失败" }, convertTo: { "Convert to": "转化为" }, alert: { "alert-primary": "主要样式", "alert-secondary": "次要样式", "alert-info": "信息", "alert-success": "成功", "alert-warning": "警告", "alert-danger": "危险", "alert-light": "浅色", "alert-dark": "深色", "align-left": "左对齐", "align-center": "居中", "align-right": "右对齐", "Type here...": "输入内容" }, Color: { "#646a73": "灰色", "#d83931": "红色", "#de7802": "橙色", "#dc9b04": "黄色", "#2ea121": "绿色", "#245bdb": "蓝色", "#6425d0": "紫色", none: "恢复默认" } }, blockTunes: { delete: { Delete: "删除", "Click to delete": "点击删除" }, moveUp: { "Move up": "向上移" }, moveDown: { "Move down": "向下移" }, filter: { Filter: "过滤" }, blockAlignment: { "left align": "左对齐", "center align": "居中对齐", "right align": "右对齐", "justify align": "两端对齐" }, indent: { "Indent right": "向右缩进", "Indent left": "向左缩进" } } } }, En = /* @__PURE__ */ ((_ = []) => ({ version: "2.31.54", install: (e, t) => {
|
|
4975
5000
|
e[Kt] || (e[Kt] = !0, _.forEach((n) => e.use(n)), e.provide("EblEditorSettings", t));
|
|
4976
|
-
} }))(
|
|
5001
|
+
} }))(Tn), Ti = En.install, Ei = En.version;
|
|
4977
5002
|
export {
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
5003
|
+
mi as EblEditor,
|
|
5004
|
+
En as default,
|
|
5005
|
+
Ti as install,
|
|
5006
|
+
Ei as version,
|
|
5007
|
+
Si as zhCn
|
|
4983
5008
|
};
|