@ckeditor/ckeditor5-track-changes 35.3.0 → 35.3.2
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/build/track-changes.js +1 -2
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
package/build/track-changes.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
1
|
/*!
|
|
3
2
|
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
3
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var e={701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content pre>code.ck-suggestion-marker-formatBlock{box-shadow:-7px 0 0 0 #ededed,-10px 0 0 0 var(--ck-color-suggestion-marker-format-border);display:block}.ck-content pre>code.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 #ededed,-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}",""]);const s=r},156:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},510:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.image{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image img{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image,.ck-content .ck-suggestion-marker-insertion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},481:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.media .ck-media__wrapper{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},437:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-color-suggestion-widget-th-insertion-background:rgba(102,229,119,.12);--ck-color-suggestion-widget-th-insertion-background-active:rgba(37,218,61,.14);--ck-color-suggestion-widget-th-deletion-background:rgba(229,102,134,.14);--ck-color-suggestion-widget-th-deletion-background-active:rgba(196,33,74,.16)}.ck-content figure.table .ck-suggestion-marker-formatBlock{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content figure.table .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-insertion.table{border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table{border-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-th-insertion-background)}.ck-content .table th.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-th-deletion-background);text-decoration:none}.ck-content .table th.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .table td.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table td.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);text-decoration:none}.ck-content .table td.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-formatBlock,.ck-content .table td.ck-suggestion-marker-formatInline,.ck-content .table th.ck-suggestion-marker-formatBlock,.ck-content .table th.ck-suggestion-marker-formatInline{background-color:var(--ck-color-suggestion-widget-format-background);box-shadow:none}.ck-content .table td.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table td.ck-suggestion-marker-formatInline.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatInline.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-format-background-active);box-shadow:none}",""]);const s=r},72:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-color-comment-box-border:#f2de02;--ck-color-suggestion-box-deletion-border:#d85a79;--ck-color-suggestion-box-insertion-border:#5ad86b;--ck-color-suggestion-box-format-border:#5ac1d8}.ck .ck-suggestion{border-top-left-radius:var(--ck-border-radius)}.ck .ck-annotation{border-left:3px solid transparent}.ck .ck-suggestion--disabled-comments .ck-annotation{min-height:80px}.ck .ck-comment,.ck .ck-comment__input-container,.ck .ck-thread__comment-count{border-left:3px solid var(--ck-color-comment-box-border)}.ck .ck-suggestion-insertion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-replace .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-format .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-format-border)}.ck .ck-suggestion-wrapper{outline:0}.ck .ck-suggestion-type{font-weight:700}.ck .ck-suggestion-color{border-radius:14px;box-shadow:0 0 0 1px #444;display:inline-block;height:14px;margin:0 5px;vertical-align:text-bottom;width:14px}.ck .ck-suggestion-insertion .ck-comment,.ck .ck-suggestion-insertion .ck-comment__input-container,.ck .ck-suggestion-insertion .ck-thread__comment-count,.ck .ck-suggestion-replace .ck-comment,.ck .ck-suggestion-replace .ck-comment__input-container,.ck .ck-suggestion-replace .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-comment,.ck .ck-suggestion-deletion .ck-comment__input-container,.ck .ck-suggestion-deletion .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-format .ck-comment,.ck .ck-suggestion-format .ck-comment__input-container,.ck .ck-suggestion-format .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-format-border)}",""]);const s=r},529:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,':root{--ck-color-suggestion-marker-insertion-border:rgba(30,174,49,.35);--ck-color-suggestion-marker-insertion-border-active:rgba(18,109,31,.5);--ck-color-suggestion-marker-insertion-background:rgba(102,229,119,.35);--ck-color-suggestion-marker-insertion-background-active:rgba(37,218,61,.5);--ck-color-suggestion-marker-deletion-border:rgba(174,30,66,.35);--ck-color-suggestion-marker-deletion-border-active:rgba(109,18,41,.5);--ck-color-suggestion-marker-deletion-background:rgba(229,102,134,.35);--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.5);--ck-color-suggestion-marker-deletion-stroke:rgba(87,15,33,.5);--ck-color-suggestion-marker-format-border:rgba(10,160,194,.4);--ck-color-suggestion-marker-format-border-active:rgba(10,160,194,.65);--ck-color-suggestion-widget-insertion-background:rgba(102,229,119,.05);--ck-color-suggestion-widget-insertion-background-active:rgba(37,218,61,.07);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.05);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.07);--ck-color-suggestion-widget-format-background:rgba(10,160,194,.09);--ck-color-suggestion-widget-format-background-active:rgba(10,160,194,.16)}.ck-content .ck-suggestion-marker-insertion{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-insertion-border);text-decoration:none}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-merge:after{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);color:var(--ck-color-suggestion-marker-deletion-stroke);content:"¶";text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke)}.ck-content .ck-suggestion-marker-merge.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-split:after{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border);color:var(--ck-color-suggestion-marker-insertion-border);content:"¶"}.ck-content .ck-suggestion-marker-split.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-formatInline{border-bottom:3px solid var(--ck-color-suggestion-marker-format-border);border-top:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatInline.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatBlock{background:none;border:0;box-shadow:-7px 0 0 0 var(--ck-color-base-background),-10px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 var(--ck-color-base-background),-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content ol .ck-suggestion-marker-formatBlock,.ck-content ul .ck-suggestion-marker-formatBlock{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content ol .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content ul .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}',""]);const s=r},756:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-user-colors--0:#6d78e8;--ck-user-colors--0-alpha:rgba(109,120,232,.15);--ck-user-colors--1:#007a6c;--ck-user-colors--1-alpha:rgba(0,122,108,.15);--ck-user-colors--2:#ba4545;--ck-user-colors--2-alpha:rgba(186,69,69,.15);--ck-user-colors--3:#5635b1;--ck-user-colors--3-alpha:rgba(86,53,177,.15);--ck-user-colors--4:#548a2e;--ck-user-colors--4-alpha:rgba(84,138,46,.15);--ck-user-colors--5:#c3185d;--ck-user-colors--5-alpha:rgba(195,24,93,.15);--ck-user-colors--6:#ea4343;--ck-user-colors--6-alpha:rgba(234,67,67,.15);--ck-user-colors--7:#0bc3d0;--ck-user-colors--7-alpha:rgba(11,195,208,.15);--ck-user-dot-size:6px}.ck .ck-user__color--0{color:var(--ck-user-colors--0)}.ck .ck-user__bg-color--0{background-color:var(--ck-user-colors--0)}.ck .ck-user__selection--0{background-color:var(--ck-user-colors--0-alpha)}.ck .ck-user__selection--0.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--0)}.ck .ck-user__marker--0,.ck .ck-user__marker--0 .ck-user__marker-dot,.ck .ck-user__marker--0:after{background-color:var(--ck-user-colors--0)}.ck .ck-user__marker--0 .ck-user__marker-line{border:1px solid var(--ck-user-colors--0)}.ck .ck-user__color--1{color:var(--ck-user-colors--1)}.ck .ck-user__bg-color--1{background-color:var(--ck-user-colors--1)}.ck .ck-user__selection--1{background-color:var(--ck-user-colors--1-alpha)}.ck .ck-user__selection--1.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--1)}.ck .ck-user__marker--1,.ck .ck-user__marker--1 .ck-user__marker-dot,.ck .ck-user__marker--1:after{background-color:var(--ck-user-colors--1)}.ck .ck-user__marker--1 .ck-user__marker-line{border:1px solid var(--ck-user-colors--1)}.ck .ck-user__color--2{color:var(--ck-user-colors--2)}.ck .ck-user__bg-color--2{background-color:var(--ck-user-colors--2)}.ck .ck-user__selection--2{background-color:var(--ck-user-colors--2-alpha)}.ck .ck-user__selection--2.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--2)}.ck .ck-user__marker--2,.ck .ck-user__marker--2 .ck-user__marker-dot,.ck .ck-user__marker--2:after{background-color:var(--ck-user-colors--2)}.ck .ck-user__marker--2 .ck-user__marker-line{border:1px solid var(--ck-user-colors--2)}.ck .ck-user__color--3{color:var(--ck-user-colors--3)}.ck .ck-user__bg-color--3{background-color:var(--ck-user-colors--3)}.ck .ck-user__selection--3{background-color:var(--ck-user-colors--3-alpha)}.ck .ck-user__selection--3.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--3)}.ck .ck-user__marker--3,.ck .ck-user__marker--3 .ck-user__marker-dot,.ck .ck-user__marker--3:after{background-color:var(--ck-user-colors--3)}.ck .ck-user__marker--3 .ck-user__marker-line{border:1px solid var(--ck-user-colors--3)}.ck .ck-user__color--4{color:var(--ck-user-colors--4)}.ck .ck-user__bg-color--4{background-color:var(--ck-user-colors--4)}.ck .ck-user__selection--4{background-color:var(--ck-user-colors--4-alpha)}.ck .ck-user__selection--4.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--4)}.ck .ck-user__marker--4,.ck .ck-user__marker--4 .ck-user__marker-dot,.ck .ck-user__marker--4:after{background-color:var(--ck-user-colors--4)}.ck .ck-user__marker--4 .ck-user__marker-line{border:1px solid var(--ck-user-colors--4)}.ck .ck-user__color--5{color:var(--ck-user-colors--5)}.ck .ck-user__bg-color--5{background-color:var(--ck-user-colors--5)}.ck .ck-user__selection--5{background-color:var(--ck-user-colors--5-alpha)}.ck .ck-user__selection--5.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--5)}.ck .ck-user__marker--5,.ck .ck-user__marker--5 .ck-user__marker-dot,.ck .ck-user__marker--5:after{background-color:var(--ck-user-colors--5)}.ck .ck-user__marker--5 .ck-user__marker-line{border:1px solid var(--ck-user-colors--5)}.ck .ck-user__color--6{color:var(--ck-user-colors--6)}.ck .ck-user__bg-color--6{background-color:var(--ck-user-colors--6)}.ck .ck-user__selection--6{background-color:var(--ck-user-colors--6-alpha)}.ck .ck-user__selection--6.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--6)}.ck .ck-user__marker--6,.ck .ck-user__marker--6 .ck-user__marker-dot,.ck .ck-user__marker--6:after{background-color:var(--ck-user-colors--6)}.ck .ck-user__marker--6 .ck-user__marker-line{border:1px solid var(--ck-user-colors--6)}.ck .ck-user__color--7{color:var(--ck-user-colors--7)}.ck .ck-user__bg-color--7{background-color:var(--ck-user-colors--7)}.ck .ck-user__selection--7{background-color:var(--ck-user-colors--7-alpha)}.ck .ck-user__selection--7.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--7)}.ck .ck-user__marker--7,.ck .ck-user__marker--7 .ck-user__marker-dot,.ck .ck-user__marker--7:after{background-color:var(--ck-user-colors--7)}.ck .ck-user__marker--7 .ck-user__marker-line{border:1px solid var(--ck-user-colors--7)}",""]);const s=r},893:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-user-avatar-size:40px;--ck-user-avatar-background:#3670ab;--ck-user-avatar-color:#fff}.ck.ck-user{align-items:center;background-color:var(--ck-user-avatar-background);border-radius:50%;display:flex;height:var(--ck-user-avatar-size);justify-content:center;min-height:var(--ck-user-avatar-size);min-width:var(--ck-user-avatar-size);position:relative;width:var(--ck-user-avatar-size)}.ck.ck-user__name{color:var(--ck-user-avatar-color);cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-user__name.ck-user__name--hidden{display:none}.ck.ck-user__img{background-color:var(--ck-user-avatar-background);background-position:50%;background-repeat:no-repeat;background-size:cover;border:2px solid var(--ck-user-avatar-background);border-radius:50%;display:none;height:inherit;width:inherit}.ck.ck-user__img.ck-user__anonymous{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23FFF' d='M9.8 20H2c0-5.7 5-5.7 6-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5 0-2.8 2-5.2 4.3-5.2S14 4.4 14 7.3c0 2.2-1 4-2.6 5l.2.6c1.2 1.3 6 1.4 6 7H9.8z'/%3E%3C/svg%3E\");display:block}.ck.ck-user__img.ck-user__anonymous+.ck-user__name{display:none}.ck.ck-user__img.ck-user__avatar{background-color:#fff;display:block}.ck.ck-user__img.ck-user__img--hidden{display:none}.ck.ck-user__notification{align-items:center;background:#fff;border:2px solid #fff;border-radius:50%;box-sizing:content-box;display:flex;height:15px;justify-content:center;overflow:hidden;position:absolute;right:-7px;top:-8px;transform:translateZ(0);width:15px}.ck.ck-user__notification .ck-user__icon{background:#fff;color:var(--ck-color-annotation-info);height:19px;max-height:19px;max-width:19px;min-height:19px;min-width:19px;width:19px}",""]);const s=r},758:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var s=0;s<this.length;s++){var i=this[s][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},278:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},s=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function a(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},o=[],r=0;r<e.length;r++){var s=e[r],c=t.base?s[0]+t.base:s[0],x=n[c]||0,l="".concat(c," ").concat(x);n[c]=x+1;var u=a(l),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==u?(i[u].references++,i[u].updater(d)):i.push({identifier:l,updater:h(d,t),references:1}),o.push(l)}return o}function x(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var i=s(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=u(t,r);else{var s=document.createTextNode(r),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function g(e,t,n){var o=n.css,r=n.media,s=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var m=null,f=0;function h(e,t){var n,o,r;if(t.singleton){var s=f++;n=m||(m=x(t)),o=d.bind(null,n,s,!1),r=d.bind(null,n,s,!0)}else n=x(t),o=g.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=a(n[o]);i[r].references--}for(var s=c(e,t),x=0;x<n.length;x++){var l=a(n[x]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}n=s}}}},417:(e,t,n)=>{e.exports=n(720)("./src/collaboration-core.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},331:(e,t,n)=>{e.exports=n(79)("./src/enter.js")},181:(e,t,n)=>{e.exports=n(79)("./src/typing.js")},273:(e,t,n)=>{e.exports=n(79)("./src/ui.js")},209:(e,t,n)=>{e.exports=n(79)("./src/utils.js")},995:(e,t,n)=>{e.exports=n(79)("./src/widget.js")},720:e=>{"use strict";e.exports=CKEditor5.collaborationDll},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={id:o,exports:{}};return e[o](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>wx,TrackChanges:()=>Vx,TrackChangesData:()=>$x});var e=n(704),t=n(209),r=n(273),s=n(417),i=n(492),a=n(995);const c=["execute","refresh","TrackChangesCommand","editor","commands","_disableUnsupportedCommands","_enabledCommands","value","forceDisabled","has","affectsData","isEnabled","_enableCommands"];var x,l;x=c,l=486,function(e){for(;--e;)x.push(x.shift())}(++l);const u=function(e,t){return c[e-=0]};class d extends e.Command{constructor(e,t){super(e),this[u("0x1")]=t,this[u("0x2")]=!1,this[u("0x9")]()}[u("0x9")](){this[u("0x6")]=!0}[u("0x8")](){this[u("0x2")]=!this[u("0x2")],this[u("0x2")]?this._disableUnsupportedCommands():this[u("0x7")]()}[u("0x0")](){for(const e of this[u("0xb")][u("0xc")].commands())e[u("0x5")]&&!this[u("0x1")][u("0x4")](e)&&e[u("0x3")](u("0xa"))}[u("0x7")](){for(const e of this[u("0xb")].commands[u("0xc")]())e[u("0x5")]&&!this[u("0x1")][u("0x4")](e)&&e.clearForceDisabled(u("0xa"))}}const g=["acceptSuggestion","refresh","get","TrackChangesEditing","_suggestions","track-changes-accept-suggestion-not-found","isEnabled","execute","plugins"];var m,f;m=g,f=144,function(e){for(;--e;)m.push(m.shift())}(++f);const h=function(e,t){return g[e-=0]};class k extends e.Command{constructor(e,t){super(e),this[h("0x4")]=t,this[h("0x1")]()}[h("0x1")](){this[h("0x6")]=!0}[h("0x7")](e){const n=this._suggestions[h("0x2")](e);if(!n)throw new t.CKEditorError(h("0x5"),this);this.editor[h("0x8")].get(h("0x3"))[h("0x0")](n)}}const b=["refresh","editor","isEnabled","execute","get","discardSuggestion","_suggestions","track-changes-discard-suggestion-not-found"];var p,_;p=b,_=230,function(e){for(;--e;)p.push(p.shift())}(++_);const v=function(e,t){return b[e-=0]};class E extends e.Command{constructor(e,t){super(e),this[v("0x0")]=t,this[v("0x2")]()}[v("0x2")](){this[v("0x4")]=!0}[v("0x5")](e){const n=this._suggestions[v("0x6")](e);if(!n)throw new t.CKEditorError(v("0x1"),this);this[v("0x3")].plugins[v("0x6")]("TrackChangesEditing")[v("0x7")](n)}}const y=["isIntersecting","schema","join","type","start","color","isObject","from","isCollapsed","isInContent","end","content","sort","createPositionBefore","add","getRanges","createPositionAt","map","deletion","isArray","createPositionAfter","isTouching","change"];var T,C;T=y,C=317,function(e){for(;--e;)T.push(T.shift())}(++C);const w=function(e,t){return y[e-=0]};function A(e){return e[w("0x11")](((e,t)=>"deletion"==e[w("0x8")]&&w("0x0")!=t[w("0x8")]?-1:w("0x0")!=e[w("0x8")]&&w("0x0")==t[w("0x8")]?1:0))}function R(e,t){let n,o=0;const r=[],s=t[w("0x6")];for(;o<e.length;){const i=e[o],a=e[o+1];n||(n=t[w("0x12")](i)),I(t,i,a)||(r.push(t.createRange(n,s[w("0xb")](i)?t[w("0x2")](i):t[w("0x15")](i,"end"))),n=null),o++}return r}function I(e,t,n){if(!n)return!1;const o=e[w("0x2")](t),r=e[w("0x12")](n);return o[w("0x3")](r)}function S(e,t,n){for(;n.length;){const o=n.splice(0,100);e[w("0x4")]((()=>{for(const e of o)e[w("0xe")]&&t.execute(e.id)}))}}const M=["values","isInContent","from","execute","_command","_suggestions","model","isEnabled","editor","refresh"];var N,L;N=M,L=336,function(e){for(;--e;)N.push(N.shift())}(++L);const O=function(e,t){return M[e-=0]};class F extends e.Command{constructor(e,t,n){super(e),this[O("0x8")]=t,this[O("0x9")]=n,this[O("0x3")]()}[O("0x3")](){const e=Array[O("0x6")](this._suggestions[O("0x4")]()).some((e=>e[O("0x5")]));this[O("0x1")]=this[O("0x8")][O("0x1")]&&e}[O("0x7")](){const e=A(Array[O("0x6")](this[O("0x9")][O("0x4")]()));S(this[O("0x2")][O("0x0")],this._command,e)}}const P=["isEnabled","execute","values","_command","editor","refresh","_selectedSuggestions","_suggestions","from","model","size"];var D,B;D=P,B=257,function(e){for(;--e;)D.push(D.shift())}(++B);const j=function(e,t){return P[e-=0]};class U extends e.Command{constructor(e,t,n){super(e),this[j("0xa")]=t,this._suggestions=n,this[j("0x2")]=new Set,this[j("0x1")]()}[j("0x1")](){const e=this[j("0x0")][j("0x5")].document.selection,t=Array[j("0x4")](this[j("0x3")][j("0x9")]());this[j("0x2")]=function(e,t){const n=Array[w("0xc")](e[w("0x14")]()),o=new Set;for(const r of t)if(r[w("0xe")])for(const t of n)for(const n of r.getMarkers()){const s=n.getRange();(t[w("0x5")](s)||e[w("0xd")]&&!r.isMultiRange&&r.next&&s[w("0xf")].isTouching(t[w("0x9")]))&&o[w("0x13")](r)}return o}(e,t),this[j("0x7")]=this._command[j("0x7")]&&!!this[j("0x2")][j("0x6")]}[j("0x8")](){const e=A(Array[j("0x4")](this[j("0x2")]));S(this[j("0x0")][j("0x5")],this._command,e)}}const H=function(){this.__data__=[],this.size=0};const G=function(e,t){return e===t||e!=e&&t!=t};const V=function(e,t){for(var n=e.length;n--;)if(G(e[n][0],t))return n;return-1};var z=Array.prototype.splice;const W=function(e){var t=this.__data__,n=V(t,e);return!(n<0)&&(n==t.length-1?t.pop():z.call(t,n,1),--this.size,!0)};const K=function(e){var t=this.__data__,n=V(t,e);return n<0?void 0:t[n][1]};const q=function(e){return V(this.__data__,e)>-1};const X=function(e,t){var n=this.__data__,o=V(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Z.prototype.clear=H,Z.prototype.delete=W,Z.prototype.get=K,Z.prototype.has=q,Z.prototype.set=X;const $=Z;const J=function(){this.__data__=new $,this.size=0};const Q=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Y=function(e){return this.__data__.get(e)};const ee=function(e){return this.__data__.has(e)};const te="object"==typeof global&&global&&global.Object===Object&&global;var ne="object"==typeof self&&self&&self.Object===Object&&self;const oe=te||ne||Function("return this")();const re=oe.Symbol;var se=Object.prototype,ie=se.hasOwnProperty,ae=se.toString,ce=re?re.toStringTag:void 0;const xe=function(e){var t=ie.call(e,ce),n=e[ce];try{e[ce]=void 0;var o=!0}catch(e){}var r=ae.call(e);return o&&(t?e[ce]=n:delete e[ce]),r};var le=Object.prototype.toString;const ue=function(e){return le.call(e)};var de=re?re.toStringTag:void 0;const ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":de&&de in Object(e)?xe(e):ue(e)};const me=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const fe=function(e){if(!me(e))return!1;var t=ge(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const he=oe["__core-js_shared__"];var ke,be=(ke=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||""))?"Symbol(src)_1."+ke:"";const pe=function(e){return!!be&&be in e};var _e=Function.prototype.toString;const ve=function(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Ee=/^\[object .+?Constructor\]$/,ye=Function.prototype,Te=Object.prototype,Ce=ye.toString,we=Te.hasOwnProperty,Ae=RegExp("^"+Ce.call(we).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Re=function(e){return!(!me(e)||pe(e))&&(fe(e)?Ae:Ee).test(ve(e))};const Ie=function(e,t){return null==e?void 0:e[t]};const Se=function(e,t){var n=Ie(e,t);return Re(n)?n:void 0};const Me=Se(oe,"Map");const Ne=Se(Object,"create");const Le=function(){this.__data__=Ne?Ne(null):{},this.size=0};const Oe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Fe=Object.prototype.hasOwnProperty;const Pe=function(e){var t=this.__data__;if(Ne){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Fe.call(t,e)?t[e]:void 0};var De=Object.prototype.hasOwnProperty;const Be=function(e){var t=this.__data__;return Ne?void 0!==t[e]:De.call(t,e)};const je=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ne&&void 0===t?"__lodash_hash_undefined__":t,this};function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ue.prototype.clear=Le,Ue.prototype.delete=Oe,Ue.prototype.get=Pe,Ue.prototype.has=Be,Ue.prototype.set=je;const He=Ue;const Ge=function(){this.size=0,this.__data__={hash:new He,map:new(Me||$),string:new He}};const Ve=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const ze=function(e,t){var n=e.__data__;return Ve(t)?n["string"==typeof t?"string":"hash"]:n.map};const We=function(e){var t=ze(this,e).delete(e);return this.size-=t?1:0,t};const Ke=function(e){return ze(this,e).get(e)};const qe=function(e){return ze(this,e).has(e)};const Xe=function(e,t){var n=ze(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function Ze(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ze.prototype.clear=Ge,Ze.prototype.delete=We,Ze.prototype.get=Ke,Ze.prototype.has=qe,Ze.prototype.set=Xe;const $e=Ze;const Je=function(e,t){var n=this.__data__;if(n instanceof $){var o=n.__data__;if(!Me||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new $e(o)}return n.set(e,t),this.size=n.size,this};function Qe(e){var t=this.__data__=new $(e);this.size=t.size}Qe.prototype.clear=J,Qe.prototype.delete=Q,Qe.prototype.get=Y,Qe.prototype.has=ee,Qe.prototype.set=Je;const Ye=Qe;const et=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const tt=function(){try{var e=Se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const nt=function(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var ot=Object.prototype.hasOwnProperty;const rt=function(e,t,n){var o=e[t];ot.call(e,t)&&G(o,n)&&(void 0!==n||t in e)||nt(e,t,n)};const st=function(e,t,n,o){var r=!n;n||(n={});for(var s=-1,i=t.length;++s<i;){var a=t[s],c=o?o(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?nt(n,a,c):rt(n,a,c)}return n};const it=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const at=function(e){return null!=e&&"object"==typeof e};const ct=function(e){return at(e)&&"[object Arguments]"==ge(e)};var xt=Object.prototype,lt=xt.hasOwnProperty,ut=xt.propertyIsEnumerable;const dt=ct(function(){return arguments}())?ct:function(e){return at(e)&<.call(e,"callee")&&!ut.call(e,"callee")};const gt=Array.isArray;const mt=function(){return!1};var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=ft&&"object"==typeof module&&module&&!module.nodeType&&module,kt=ht&&ht.exports===ft?oe.Buffer:void 0;const bt=(kt?kt.isBuffer:void 0)||mt;var pt=/^(?:0|[1-9]\d*)$/;const _t=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&pt.test(e))&&e>-1&&e%1==0&&e<t};const vt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Et={};Et["[object Float32Array]"]=Et["[object Float64Array]"]=Et["[object Int8Array]"]=Et["[object Int16Array]"]=Et["[object Int32Array]"]=Et["[object Uint8Array]"]=Et["[object Uint8ClampedArray]"]=Et["[object Uint16Array]"]=Et["[object Uint32Array]"]=!0,Et["[object Arguments]"]=Et["[object Array]"]=Et["[object ArrayBuffer]"]=Et["[object Boolean]"]=Et["[object DataView]"]=Et["[object Date]"]=Et["[object Error]"]=Et["[object Function]"]=Et["[object Map]"]=Et["[object Number]"]=Et["[object Object]"]=Et["[object RegExp]"]=Et["[object Set]"]=Et["[object String]"]=Et["[object WeakMap]"]=!1;const yt=function(e){return at(e)&&vt(e.length)&&!!Et[ge(e)]};const Tt=function(e){return function(t){return e(t)}};var Ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,wt=Ct&&"object"==typeof module&&module&&!module.nodeType&&module,At=wt&&wt.exports===Ct&&te.process;const Rt=function(){try{var e=wt&&wt.require&&wt.require("util").types;return e||At&&At.binding&&At.binding("util")}catch(e){}}();var It=Rt&&Rt.isTypedArray;const St=It?Tt(It):yt;var Mt=Object.prototype.hasOwnProperty;const Nt=function(e,t){var n=gt(e),o=!n&&dt(e),r=!n&&!o&&bt(e),s=!n&&!o&&!r&&St(e),i=n||o||r||s,a=i?it(e.length,String):[],c=a.length;for(var x in e)!t&&!Mt.call(e,x)||i&&("length"==x||r&&("offset"==x||"parent"==x)||s&&("buffer"==x||"byteLength"==x||"byteOffset"==x)||_t(x,c))||a.push(x);return a};var Lt=Object.prototype;const Ot=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Lt)};const Ft=function(e,t){return function(n){return e(t(n))}};const Pt=Ft(Object.keys,Object);var Dt=Object.prototype.hasOwnProperty;const Bt=function(e){if(!Ot(e))return Pt(e);var t=[];for(var n in Object(e))Dt.call(e,n)&&"constructor"!=n&&t.push(n);return t};const jt=function(e){return null!=e&&vt(e.length)&&!fe(e)};const Ut=function(e){return jt(e)?Nt(e):Bt(e)};const Ht=function(e,t){return e&&st(t,Ut(t),e)};const Gt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Vt=Object.prototype.hasOwnProperty;const zt=function(e){if(!me(e))return Gt(e);var t=Ot(e),n=[];for(var o in e)("constructor"!=o||!t&&Vt.call(e,o))&&n.push(o);return n};const Wt=function(e){return jt(e)?Nt(e,!0):zt(e)};const Kt=function(e,t){return e&&st(t,Wt(t),e)};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xt=qt&&"object"==typeof module&&module&&!module.nodeType&&module,Zt=Xt&&Xt.exports===qt?oe.Buffer:void 0,$t=Zt?Zt.allocUnsafe:void 0;const Jt=function(e,t){if(t)return e.slice();var n=e.length,o=$t?$t(n):new e.constructor(n);return e.copy(o),o};const Qt=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const Yt=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,s=[];++n<o;){var i=e[n];t(i,n,e)&&(s[r++]=i)}return s};const en=function(){return[]};var tn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(e){return null==e?[]:(e=Object(e),Yt(nn(e),(function(t){return tn.call(e,t)})))}:en;const rn=function(e,t){return st(e,on(e),t)};const sn=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e};const an=Ft(Object.getPrototypeOf,Object);const cn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)sn(t,on(e)),e=an(e);return t}:en;const xn=function(e,t){return st(e,cn(e),t)};const ln=function(e,t,n){var o=t(e);return gt(e)?o:sn(o,n(e))};const un=function(e){return ln(e,Ut,on)};const dn=function(e){return ln(e,Wt,cn)};const gn=Se(oe,"DataView");const mn=Se(oe,"Promise");const fn=Se(oe,"Set");const hn=Se(oe,"WeakMap");var kn="[object Map]",bn="[object Promise]",pn="[object Set]",_n="[object WeakMap]",vn="[object DataView]",En=ve(gn),yn=ve(Me),Tn=ve(mn),Cn=ve(fn),wn=ve(hn),An=ge;(gn&&An(new gn(new ArrayBuffer(1)))!=vn||Me&&An(new Me)!=kn||mn&&An(mn.resolve())!=bn||fn&&An(new fn)!=pn||hn&&An(new hn)!=_n)&&(An=function(e){var t=ge(e),n="[object Object]"==t?e.constructor:void 0,o=n?ve(n):"";if(o)switch(o){case En:return vn;case yn:return kn;case Tn:return bn;case Cn:return pn;case wn:return _n}return t});const Rn=An;var In=Object.prototype.hasOwnProperty;const Sn=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&In.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Mn=oe.Uint8Array;const Nn=function(e){var t=new e.constructor(e.byteLength);return new Mn(t).set(new Mn(e)),t};const Ln=function(e,t){var n=t?Nn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var On=/\w*$/;const Fn=function(e){var t=new e.constructor(e.source,On.exec(e));return t.lastIndex=e.lastIndex,t};var Pn=re?re.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(e){return Dn?Object(Dn.call(e)):{}};const jn=function(e,t){var n=t?Nn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Un=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return Nn(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return Ln(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Fn(e);case"[object Symbol]":return Bn(e)}};var Hn=Object.create;const Gn=function(){function e(){}return function(t){if(!me(t))return{};if(Hn)return Hn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Vn=function(e){return"function"!=typeof e.constructor||Ot(e)?{}:Gn(an(e))};const zn=function(e){return at(e)&&"[object Map]"==Rn(e)};var Wn=Rt&&Rt.isMap;const Kn=Wn?Tt(Wn):zn;const qn=function(e){return at(e)&&"[object Set]"==Rn(e)};var Xn=Rt&&Rt.isSet;const Zn=Xn?Tt(Xn):qn;var $n="[object Arguments]",Jn="[object Function]",Qn="[object Object]",Yn={};Yn[$n]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn["[object Object]"]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const eo=function e(t,n,o,r,s,i){var a,c=1&n,x=2&n,l=4&n;if(o&&(a=s?o(t,r,s,i):o(t)),void 0!==a)return a;if(!me(t))return t;var u=gt(t);if(u){if(a=Sn(t),!c)return Qt(t,a)}else{var d=Rn(t),g=d==Jn||"[object GeneratorFunction]"==d;if(bt(t))return Jt(t,c);if(d==Qn||d==$n||g&&!s){if(a=x||g?{}:Vn(t),!c)return x?xn(t,Kt(a,t)):rn(t,Ht(a,t))}else{if(!Yn[d])return s?t:{};a=Un(t,d,c)}}i||(i=new Ye);var m=i.get(t);if(m)return m;i.set(t,a),Zn(t)?t.forEach((function(r){a.add(e(r,n,o,r,t,i))})):Kn(t)&&t.forEach((function(r,s){a.set(s,e(r,n,o,s,t,i))}));var f=u?void 0:(l?x?dn:un:x?Wt:Ut)(t);return et(f||t,(function(r,s){f&&(r=t[s=r]),rt(a,s,e(r,n,o,s,t,i))})),a};const to=function(e){return eo(e,5)};const no=function(e){return"symbol"==typeof e||at(e)&&"[object Symbol]"==ge(e)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const so=function(e,t){if(gt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!no(e))||(ro.test(e)||!oo.test(e)||null!=t&&e in Object(t))};function io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=e.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||$e),n}io.Cache=$e;const ao=io;var co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/\\(\\)?/g;const lo=function(e){var t=ao(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(co,(function(e,n,o,r){t.push(o?r.replace(xo,"$1"):n||e)})),t}));const uo=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r};var go=re?re.prototype:void 0,mo=go?go.toString:void 0;const fo=function e(t){if("string"==typeof t)return t;if(gt(t))return uo(t,e)+"";if(no(t))return mo?mo.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};const ho=function(e){return null==e?"":fo(e)};const ko=function(e,t){return gt(e)?e:so(e,t)?[e]:lo(ho(e))};const bo=function(e){if("string"==typeof e||no(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const po=function(e,t,n,o){if(!me(e))return e;for(var r=-1,s=(t=ko(t,e)).length,i=s-1,a=e;null!=a&&++r<s;){var c=bo(t[r]),x=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=i){var l=a[c];void 0===(x=o?o(l,c,a):void 0)&&(x=me(l)?l:_t(t[r+1])?[]:{})}rt(a,c,x),a=a[c]}return e};const _o=function(e,t,n){return null==e?e:po(e,t,n)};const vo=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const Eo=function(e){return this.__data__.has(e)};function yo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $e;++t<n;)this.add(e[t])}yo.prototype.add=yo.prototype.push=vo,yo.prototype.has=Eo;const To=yo;const Co=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const wo=function(e,t){return e.has(t)};const Ao=function(e,t,n,o,r,s){var i=1&n,a=e.length,c=t.length;if(a!=c&&!(i&&c>a))return!1;var x=s.get(e),l=s.get(t);if(x&&l)return x==t&&l==e;var u=-1,d=!0,g=2&n?new To:void 0;for(s.set(e,t),s.set(t,e);++u<a;){var m=e[u],f=t[u];if(o)var h=i?o(f,m,u,t,e,s):o(m,f,u,e,t,s);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Co(t,(function(e,t){if(!wo(g,t)&&(m===e||r(m,e,n,o,s)))return g.push(t)}))){d=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){d=!1;break}}return s.delete(e),s.delete(t),d};const Ro=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const Io=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var So=re?re.prototype:void 0,Mo=So?So.valueOf:void 0;const No=function(e,t,n,o,r,s,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new Mn(e),new Mn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return G(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Ro;case"[object Set]":var c=1&o;if(a||(a=Io),e.size!=t.size&&!c)return!1;var x=i.get(e);if(x)return x==t;o|=2,i.set(e,t);var l=Ao(a(e),a(t),o,r,s,i);return i.delete(e),l;case"[object Symbol]":if(Mo)return Mo.call(e)==Mo.call(t)}return!1};var Lo=Object.prototype.hasOwnProperty;const Oo=function(e,t,n,o,r,s){var i=1&n,a=un(e),c=a.length;if(c!=un(t).length&&!i)return!1;for(var x=c;x--;){var l=a[x];if(!(i?l in t:Lo.call(t,l)))return!1}var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=i;++x<c;){var f=e[l=a[x]],h=t[l];if(o)var k=i?o(h,f,l,t,e,s):o(f,h,l,e,t,s);if(!(void 0===k?f===h||r(f,h,n,o,s):k)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=e.constructor,p=t.constructor;b==p||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof p&&p instanceof p||(g=!1)}return s.delete(e),s.delete(t),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(e,t,n,o,r,s){var i=gt(e),a=gt(t),c=i?Po:Rn(e),x=a?Po:Rn(t),l=(c=c==Fo?Do:c)==Do,u=(x=x==Fo?Do:x)==Do,d=c==x;if(d&&bt(e)){if(!bt(t))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new Ye),i||St(e)?Ao(e,t,n,o,r,s):No(e,t,c,n,o,r,s);if(!(1&n)){var g=l&&Bo.call(e,"__wrapped__"),m=u&&Bo.call(t,"__wrapped__");if(g||m){var f=g?e.value():e,h=m?t.value():t;return s||(s=new Ye),r(f,h,n,o,s)}}return!!d&&(s||(s=new Ye),Oo(e,t,n,o,r,s))};const Uo=function e(t,n,o,r,s){return t===n||(null==t||null==n||!at(t)&&!at(n)?t!=t&&n!=n:jo(t,n,o,r,e,s))};const Ho=function(e,t){return Uo(e,t)};const Go=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const Vo=function(e,t){for(var n=0,o=(t=ko(t,e)).length;null!=e&&n<o;)e=e[bo(t[n++])];return n&&n==o?e:void 0};const zo=function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(r);++o<r;)s[o]=e[o+t];return s};const Wo=function(e,t){return t.length<2?e:Vo(e,zo(t,0,-1))};const Ko=function(e,t){return t=ko(t,e),null==(e=Wo(e,t))||delete e[bo(Go(t))]};const qo=function(e,t){return null==e||Ko(e,t)},Xo=["commentThread","previous","attributes","getFirstMarker","addRange","getItems","setAttribute","isIntersectingWithRange","getMarkers","authoredAt","_onAccept","creator","_onDiscard","accept","_markerNames","removeMarker","markers","onAttributesChange","data","isMultiRange","change","split","next","removeAttribute","getRange","getContainedElement","head","delete","hasComments","reduce","@external","toJSON","push","createdAt","removeMarkers","subType","getMultiRangeId","type","onDiscard","getMarkerNames","decorate","_onAttributesChange","length","add","onAccept","set","isInContent","suggestion:","getRanges","addMarkerName","nodeAfter","isIntersecting","map","from","author","_model","discard","substr","end"];var Zo,$o;Zo=Xo,$o=215,function(e){for(;--e;)Zo.push(Zo.shift())}(++$o);const Jo=function(e,t){return Xo[e-=0]};class Qo{constructor(e,t){this.id=t.id,this[Jo("0x3a")]=t[Jo("0x3a")],this.subType=t[Jo("0x38")]||null,this[Jo("0x10")]=t.author,this[Jo("0x20")]=t[Jo("0x20")]||t[Jo("0x10")],this.isExternal=Boolean(t[Jo("0x17")]&&t[Jo("0x17")][Jo("0x33")]),this.data=null,this[Jo("0x11")]=e,this[Jo("0x1f")]=t[Jo("0x6")],this[Jo("0x21")]=t[Jo("0x0")],this[Jo("0x3")]=t[Jo("0x26")],this[Jo("0x23")]=new Set,this.createdAt=null,this[Jo("0x7")](Jo("0x1e"),null),this[Jo("0x7")]("attributes",t[Jo("0x17")]||{}),this[Jo("0x7")](Jo("0x16"),null),this[Jo("0x7")](Jo("0x2b"),null),this[Jo("0x7")](Jo("0x15"),null),this[Jo("0x7")]("_saved",!1),this[Jo("0x2")](Jo("0x22")),this[Jo("0x2")](Jo("0x12"))}get head(){let e=this;for(;e[Jo("0x16")];)e=e[Jo("0x16")];return e}get hasComments(){return!!this[Jo("0x15")]&&this[Jo("0x15")][Jo("0x4")]>0}get[Jo("0x28")](){return 0!=this[Jo("0x23")].size&&6==Array[Jo("0xf")](this[Jo("0x23")])[0][Jo("0x2a")](":")[Jo("0x4")]}get[Jo("0x8")](){return null!==this[Jo("0x18")]()}[Jo("0xb")](e){this[Jo("0x23")][Jo("0x5")](e)}[Jo("0x1")](){return Array.from(this[Jo("0x23")])}getMarkers(){return this[Jo("0x1")]()[Jo("0xe")]((e=>this[Jo("0x11")][Jo("0x25")].get(e))).filter((e=>e))}[Jo("0x18")](){return this.getMarkers()[0]||null}removeMarkers(){this._model[Jo("0x29")]((e=>{for(const t of this[Jo("0x1d")]())e[Jo("0x24")](t)})),this[Jo("0x23")].clear()}[Jo("0x24")](e){this._model[Jo("0x29")]((t=>{t.removeMarker(e)})),this[Jo("0x23")][Jo("0x30")](e)}[Jo("0x19")](e){const t=Jo("0x9")+this.type+":"+this[Jo("0x38")]+":"+this.id+":"+this[Jo("0x20")].id+":"+Qo[Jo("0x39")]();this[Jo("0xb")](t),this[Jo("0x11")][Jo("0x29")]((n=>{n.addMarker(t,{range:e,usingOperation:!0,affectsData:!0})}))}[Jo("0x1c")](e){for(const t of this[Jo("0xa")]())if(t[Jo("0xd")](e))return!0;return!1}getRanges(){return this.getMarkers()[Jo("0xe")]((e=>e[Jo("0x2d")]()))}[Jo("0x1a")](){return this[Jo("0xa")]()[Jo("0x32")](((e,t)=>[...e,...t.getItems()]),[])}getFirstRange(){return this[Jo("0x18")]()[Jo("0x2d")]()}[Jo("0x2e")](){const e=this[Jo("0xa")]();if(1!=e.length)return null;const t=e[0],n=t.start[Jo("0xc")],o=t[Jo("0x14")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}accept(){this[Jo("0x1f")](this.getRanges(),this[Jo("0x27")],this[Jo("0x17")]),this[Jo("0x37")]()}[Jo("0x12")](){this[Jo("0x21")](this[Jo("0xa")](),this[Jo("0x27")],this[Jo("0x17")]),this[Jo("0x37")]()}getAllAdjacentSuggestions(){const e=[];let t=this[Jo("0x2f")];for(;t;)e[Jo("0x35")](t),t=t.next;return e}[Jo("0x1b")](e,t){const n=to(this[Jo("0x17")]);_o(n,e,t),Ho(n,this[Jo("0x17")])||(this.attributes=n,this[Jo("0x3")](n))}[Jo("0x2c")](e){const t=to(this[Jo("0x17")]);qo(t,e),Ho(t,this[Jo("0x17")])||(this[Jo("0x17")]=t,this[Jo("0x3")](this.attributes))}[Jo("0x34")](){return{id:this.id,type:this[Jo("0x38")]?this[Jo("0x3a")]+":"+this.subType:this[Jo("0x3a")],authorId:this[Jo("0x20")].id,createdAt:this[Jo("0x36")],hasComments:this[Jo("0x31")],data:this[Jo("0x27")],attributes:this.attributes}}static[Jo("0x39")](){return(0,t.uid)()[Jo("0x13")](1,5)}}function Yo(e,t,n){const o=e.t;switch(t){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n)}}(0,t.mix)(Qo,t.ObservableMixin);const er=["getDescriptions","item","_itemLabelsCallbacks","pop","start","addObject","addContainer","normal","textProxy","ELEMENT_SPACE","replace","text","_itemLabels","match","registerDescriptionCallback","function","insertion","quantity","end","$text","isEmpty","*Remove:* %0","_locale","Object","*Merge:* %0","element","_addDescriptionItems","getFirstRange","removeContainer","addEmptyContainer","$1 $2","add","indexOf","_resolveDescriptionItems","*Split:* %0","getItemLabel","_schema","removeObject","previousSibling","deletion","isObject","length","removeEmptyContainer","_customCallbacks","push","*Insert:* %0","elementEnd","data","type","remove","REPLACE_TEXT","matchingCallback","elementStart","label","name","softBreak","get","Container","isInContent","getWalker"];var tr,nr;tr=er,nr=103,function(e){for(;--e;)tr.push(tr.shift())}(++nr);const or=function(e,t){return er[e-=0]};class rr{constructor(e,t){this._customCallbacks=[],this[or("0x1d")]=new Map,this._itemLabelsCallbacks=[],this._schema=e,this._locale=t}[or("0x11")](e){const t=[];for(let n=0;n<e[or("0x3a")];n++){const o=e[n];if(!o[or("0xf")])continue;let r=!1;for(const e of this[or("0x0")]){const n=e(o);if(n){n[or("0x5")]&&t[or("0x1")](n),r=!0;break}}if(!r){this[or("0x2b")](t,o);const r=e[n+1];if(r&&!o[or("0x2c")]()[or("0x23")].isEqual(r[or("0x2c")]()[or("0x15")])){const e=t[t[or("0x3a")]-1],n=or("0x21")==o[or("0x5")]?or("0x30"):or("0x6");e&&"text"==e[or("0x5")]&&(e[n]+="\n")}}}return this[or("0x32")](t)}[or("0x1f")](e){this[or("0x0")].push(e)}registerElementLabel(e,n,o=t.priorities[or("0x18")]){or("0x20")==typeof e?(0,t.insertToPriorityArray)(this[or("0x13")],{matchingCallback:e,label:n,priority:o}):this[or("0x1d")].set(e,n)}[or("0x34")](e,t=1){let n;for(const t of this[or("0x13")])if(t[or("0x8")](e)){n=t[or("0xa")];break}return n||(n=this._itemLabels[or("0xd")](e[or("0xb")])),n?n(t):1!==t?t+" "+e.name+"s":""+e[or("0xb")]}[or("0x2b")](e,t){const n=t[or("0x2c")]()[or("0x10")](),o=or("0x21")==t.type?or("0x30"):or("0x6");for(const t of n){const r=t.item,s=e[e.length-1];if(r.is(or("0x19")))s&&s[or("0x5")].indexOf(or("0xe"))>-1&&e[or("0x14")](),s&&or("0x1c")==s[or("0x5")]?s[o]+=r[or("0x4")]:e[or("0x1")]({type:or("0x1c"),add:"add"==o?r[or("0x4")]:"",remove:"remove"==o?r[or("0x4")]:""});else if(this[or("0x35")][or("0x39")](r)){if(s&&s[or("0x5")].indexOf(or("0xe"))>-1&&e[or("0x14")](),or("0x3")==t[or("0x5")])continue;s&&s[or("0x5")]==o+or("0x28")&&s[or("0x2a")][or("0xb")]==r[or("0xb")]?s[or("0x22")]++:e.push({type:o+or("0x28"),element:r,quantity:1}),n.skip((e=>!(or("0x3")==e[or("0x5")]&&e[or("0x12")]==r)))}else if(this[or("0x35")].checkChild(r,or("0x24"))||r.is("element",or("0xc"))){if("add"==o&&or("0x9")==t.type||or("0x6")==o&&"elementEnd"==t[or("0x5")])continue;if(s&&-1==s[or("0x5")][or("0x31")](or("0xe"))){or("0x1c")==s.type&&(s[o]+="\n");continue}let n;if(n=or("0x30")==o?r.nextSibling&&!this[or("0x35")].isObject(r.nextSibling)?r.nextSibling:null:r[or("0x37")]&&!this[or("0x35")][or("0x39")](r[or("0x37")])?r[or("0x37")]:null,r[or("0x25")]||n&&n[or("0x25")]){const t=n&&n.isEmpty?n:r;s&&s[or("0x5")]==o+"EmptyContainer"&&s[or("0x2a")].name==t[or("0xb")]?s[or("0x22")]++:e[or("0x1")]({type:o+"EmptyContainer",element:t,quantity:1})}else e.push({type:o+"Container",element:r})}}}[or("0x32")](e){const t=this[or("0x27")],n=[];for(const o of e){switch(o[or("0x5")]){case"text":if(o.add=o.add[or("0x1b")](/(\S)\u000A+(\S)/g,or("0x2f"))[or("0x1b")](/\u000A/g,""),o[or("0x6")]=o[or("0x6")].replace(/(\S)\u000A+(\S)/g,or("0x2f"))[or("0x1b")](/\u000A/g,""),""!=o[or("0x30")]&&""!=o.remove){n[or("0x1")]({type:"replace",content:Yo(t,or("0x7"),['"'+o[or("0x6")]+'"','"'+o[or("0x30")]+'"'])});continue}if(null!=o[or("0x30")].match(/^ +$/)){n[or("0x1")]({type:"insertion",content:Yo(t,or("0x2"),Yo(t,or("0x1a"),o.add[or("0x3a")]))});continue}if(null!=o.remove[or("0x1e")](/^ +$/)){n[or("0x1")]({type:or("0x38"),content:Yo(t,or("0x26"),Yo(t,"ELEMENT_SPACE",o[or("0x6")][or("0x3a")]))});continue}if(""!=o[or("0x30")]){n[or("0x1")]({type:"insertion",content:Yo(t,or("0x2"),'"'+o[or("0x30")]+'"')});continue}n[or("0x1")]({type:or("0x38"),content:Yo(t,"*Remove:* %0",'"'+o.remove+'"')});continue;case or("0x2e"):case or("0x16"):n[or("0x1")]({type:or("0x21"),content:Yo(t,or("0x2"),this[or("0x34")](o[or("0x2a")],o[or("0x22")]))});continue;case or("0x3b"):case or("0x36"):n[or("0x1")]({type:or("0x38"),content:Yo(t,"*Remove:* %0",this[or("0x34")](o[or("0x2a")],o.quantity))});continue;case or("0x17"):n[or("0x1")]({type:or("0x21"),content:Yo(t,or("0x33"),this[or("0x34")](o[or("0x2a")],o.quantity))});continue;case or("0x2d"):n[or("0x1")]({type:or("0x38"),content:Yo(t,or("0x29"),this[or("0x34")](o[or("0x2a")],o.quantity))});continue}n[or("0x1")](o)}return n}}const sr=["value","registerDescriptionCallback","left","justify","document","editor","plugins","from","format","right","afterInit","checkAttribute","getSelectedBlocks","get","markBlockFormat","commandName","change","_descriptionFactory","FORMAT_ALIGN_TO_LEFT","TrackChangesEditing","filter","*Format:* %0","FORMAT_ALIGN_TO_CENTER","contentLanguageDirection","model","center","has","locale","alignment","schema","FORMAT_JUSTIFY_TEXT"];var ir,ar;ir=sr,ar=437,function(e){for(;--e;)ir.push(ir.shift())}(++ar);const cr=function(e,t){return sr[e-=0]};class xr extends e.Plugin{[cr("0x7")](){const e=this[cr("0x2")],t=e[cr("0x18")];if(!e[cr("0x3")][cr("0x17")]("AlignmentEditing"))return;const n=e[cr("0x3")][cr("0xa")](cr("0x10"));n.enableCommand(cr("0x19"),((t,o={})=>{let r=o[cr("0x1c")];o[cr("0x1c")]||(r="ltr"===e[cr("0x18")][cr("0x14")]?cr("0x1e"):"right");const s=Array[cr("0x4")](this.editor[cr("0x15")][cr("0x1")].selection[cr("0x9")]())[cr("0x11")]((e=>function(e,t,n){const o=e.getAttribute(cr("0x19"))||null;return t[cr("0x8")](e,cr("0x19"))&&n!=o}(e,this[cr("0x2")].model[cr("0x1a")],r)));e.model[cr("0xd")]((()=>{for(const e of s)n[cr("0xb")](e,{commandName:"alignment",commandParams:[{value:r}]})}))})),n[cr("0xe")][cr("0x1d")]((e=>{const{data:n}=e;if(n&&cr("0x19")==n[cr("0xc")]){const e=n.commandParams[0][cr("0x1c")];return{type:cr("0x5"),content:Yo(t,cr("0x12"),function(e){switch(e){case cr("0x1e"):return Yo(t,cr("0xf"));case cr("0x6"):return Yo(t,"FORMAT_ALIGN_TO_RIGHT");case cr("0x16"):return Yo(t,cr("0x13"));case cr("0x0"):return Yo(t,cr("0x1b"))}}(e))}}}))}}const lr=["type","start","markerName","getWalker","push","createRangeOn","markerRange","writer","schema","item","parent","addHighlight","bindElementToMarker","elementEnd","test","insert","toViewElement","getItems","hasAttribute","ck-suggestion-marker--active","element","getCustomProperty","isBlock","name","mapper","isContent","listItem","listIndent","nextSibling","getAttribute","isLimit","plugins","previousPosition"];var ur,dr;ur=lr,dr=200,function(e){for(;--e;)ur.push(ur.shift())}(++dr);const gr=function(e,t){return lr[e-=0]};function mr(e,t,n){const o=[];for(const r of t[gr("0xf")]())r[gr("0x10")](e)&&o[gr("0x2")](n[gr("0x3")](r));return o}function fr(e){const t=[];if(e.is(gr("0x12"),"listItem")){let n=e[gr("0x1a")];for(;n&&n.is(gr("0x12"),gr("0x18"))&&n[gr("0x1b")](gr("0x19"))>0;)t.push(n),n=n[gr("0x1a")]}return t}function hr(e,t,{showActiveMarker:n=!0}={}){const o=e[gr("0x1d")].get("TrackChangesEditing");return(r,s,i)=>{if(!i.consumable[gr("0xc")](s[gr("0x4")],r[gr("0x15")]))return;const a=s[gr("0x4")][gr("0x1")](),c=s[gr("0x4")][gr("0x20")],x=e.model[gr("0x6")];let l=null,u=null,d=!1,g=!1;for(const e of a){const t=e[gr("0x7")];d=d||x[gr("0x17")](t);const n=i[gr("0x16")][gr("0xe")](t);if(n&&n[gr("0x13")](gr("0x9")))return;gr("0xb")==e[gr("0x1f")]&&x[gr("0x14")](t)&&!x[gr("0x1c")](t)&&(t[gr("0x1a")]||c.isAtEnd?l&&l[gr("0x8")]==t||(l=t,m(e[gr("0x1e")]),g=!0):u=u||e.previousPosition)}function m(e){const r=i[gr("0x5")].createUIElement("span",{class:"ck-suggestion-marker-"+t}),a=i[gr("0x16")].toViewPosition(e);n&&o.activeMarkers.includes(s[gr("0x0")])&&i[gr("0x5")].addClass(gr("0x11"),r),i[gr("0x5")][gr("0xd")](a,r),i[gr("0x16")][gr("0xa")](r,s[gr("0x0")])}d||g||!u||m(u)}}const kr=["SuperscriptEditing","FORMAT_STRIKETHROUGH","commandName","slice","code","commands","StrikethroughEditing","FORMAT_BOLD","afterInit","from","FORMAT_UNDERLINE","bold","italic","_descriptionFactory","plugins","underline","FORMAT_ITALIC","document","SubscriptEditing","has","get","value","CodeEditing","toLowerCase","strikethrough","FORMAT_CODE","ItalicEditing","*Remove format:* %0","editor","change","forceValue","getRanges","TrackChangesEditing","subscript","format"];var br,pr;br=kr,pr=186,function(e){for(;--e;)br.push(br.shift())}(++pr);const _r=function(e,t){return kr[e-=0]},vr=["BoldEditing",_r("0xf"),"UnderlineEditing",_r("0xb"),_r("0x1e"),_r("0x7"),_r("0x18")];class Er extends e.Plugin{[_r("0x20")](){const e=this[_r("0x11")],t=e.model,n=e[_r("0x3")][_r("0x9")](_r("0x15")),o=e.locale;for(const o of vr){if(!e[_r("0x3")][_r("0x8")](o))continue;const r=o[_r("0x1b")](0,-7)[_r("0xc")](),s=e[_r("0x1d")][_r("0x9")](r);n.enableCommand(r,((e,o={})=>{const i=t[_r("0x6")].selection;if(i.isCollapsed)return void e(o);const a=void 0!==o.forceValue?o[_r("0x13")]:!s[_r("0xa")];t[_r("0x12")]((()=>{const e=Array[_r("0x21")](i[_r("0x14")]());for(const o of e){const e=a?[o]:mr(r,o,t);for(const t of e)n.markInlineFormat(t,{commandName:r,commandParams:[{forceValue:a}]})}}))}))}function r(e,t){n[_r("0x2")].registerDescriptionCallback((n=>{const{data:r}=n;if(r&&r[_r("0x1a")]===e)return r.commandParams[0][_r("0x13")]?{type:_r("0x17"),content:Yo(o,"*Format:* %0",t)}:{type:_r("0x17"),content:Yo(o,_r("0x10"),t)}}))}r(_r("0x0"),Yo(o,_r("0x1f"))),r(_r("0x1"),Yo(o,_r("0x5"))),r(_r("0x4"),Yo(o,_r("0x22"))),r(_r("0x1c"),Yo(o,_r("0xe"))),r(_r("0xd"),Yo(o,_r("0x19"))),r(_r("0x16"),Yo(o,"FORMAT_SUBSCRIPT")),r("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const yr=["ELEMENT_BLOCK_QUOTE","locale","TrackChangesEditing","get","selection","document","_descriptionFactory","has","afterInit","forceValue","BlockQuoteEditing","from","filter","name","value","blockQuote","plugins","$root","enableCommand","schema","commandParams","editor","markBlockFormat","format","checkChild","change","getSelectedBlocks","model","parent"];var Tr,Cr;Tr=yr,Cr=395,function(e){for(;--e;)Tr.push(Tr.shift())}(++Cr);const wr=function(e,t){return yr[e-=0]};class Ar extends e.Plugin{[wr("0x13")](){const e=this.editor,t=e[wr("0xc")];if(!e[wr("0x1b")][wr("0x12")](wr("0x15")))return;const n=e.plugins[wr("0xe")](wr("0xd")),o=this[wr("0x3")].commands.get(wr("0x1a"));n[wr("0x0")](wr("0x1a"),((t,r={})=>{const s=this[wr("0x3")][wr("0x9")][wr("0x10")][wr("0xf")],i=r&&void 0!==r.forceValue?r[wr("0x14")]:!o[wr("0x19")];let a=[];if(i){const t=Array[wr("0x16")](s[wr("0x8")]())[wr("0x17")]((e=>Rr(e)||function(e,t){const n=t.checkChild(e.parent,"blockQuote"),o=t[wr("0x6")]([wr("0x1c"),wr("0x1a")],e);return n&&o}(e,this[wr("0x3")][wr("0x9")][wr("0x1")])));a=R(t,e[wr("0x9")])}else{const t=Array[wr("0x16")](s[wr("0x8")]())[wr("0x17")]((e=>Rr(e)));a=R(t,e[wr("0x9")])}e.model[wr("0x7")]((()=>{for(const e of a)n[wr("0x4")](e,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[wr("0x11")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&wr("0x1a")==n.commandName){const e=Yo(t,wr("0xb"));return n[wr("0x2")][0][wr("0x14")]?{type:"format",content:Yo(t,"*Format:* %0",e)}:{type:wr("0x5"),content:Yo(t,"*Remove format:* %0",e)}}}))}}function Rr(e){return"blockQuote"==e[wr("0xa")][wr("0x18")]}const Ir=["get","ckbox","commands","enableCommand","editor"];var Sr,Mr;Sr=Ir,Mr=328,function(e){for(;--e;)Sr.push(Sr.shift())}(++Mr);const Nr=function(e,t){return Ir[e-=0]};class Lr extends e.Plugin{afterInit(){const e=this[Nr("0x1")];e[Nr("0x4")].get("ckbox")&&e.plugins[Nr("0x2")]("TrackChangesEditing")[Nr("0x0")](Nr("0x3"))}}const Or=["_descriptionFactory","value","filter","registerDescriptionCallback","has","commands","plugins","editor","registerElementLabel","blockName","TrackChangesEditing","formatBlock","indentCodeBlock","label","locale","enableCommand","schema","find","ELEMENT_CODE_BLOCK","model","format","commandName","*Format:* %0","name","codeBlock","language","afterInit","rootElement","from","commandParams","getSelectedBlocks","CodeBlock","markBlockFormat","forceValue","document","change","get"];var Fr,Pr;Fr=Or,Pr=190,function(e){for(;--e;)Fr.push(Fr.shift())}(++Pr);const Dr=function(e,t){return Or[e-=0]};class Br extends e.Plugin{[Dr("0x15")](){const e=this[Dr("0x2")];if(!e[Dr("0x1")][Dr("0x24")](Dr("0x1a")))return;const t=e[Dr("0x1")][Dr("0x1f")](Dr("0x5")),n=e[Dr("0x9")],o=e.config[Dr("0x1f")](Dr("0x13")).languages,r=e[Dr("0x0")][Dr("0x1f")](Dr("0x13"));t.enableCommand(Dr("0x7")),t[Dr("0xa")]("outdentCodeBlock"),t[Dr("0xa")](Dr("0x13"),((n,s={})=>{const i=e.model,a=e[Dr("0xe")][Dr("0x1d")].selection,c=s&&void 0!==s[Dr("0x1c")]?s[Dr("0x1c")]:!r[Dr("0x21")];let x;s[Dr("0x14")]||(s.language=o[0].language),x=c?Array[Dr("0x17")](a[Dr("0x19")]()).filter((e=>{return jr(e)||(t=e,n=i[Dr("0xb")],!t.is(Dr("0x16"))&&!n.isLimit(t)&&n.checkChild(t.parent,Dr("0x13")));var t,n})):Array[Dr("0x17")](a[Dr("0x19")]())[Dr("0x22")]((e=>jr(e)));const l=R(x,i);i[Dr("0x1e")]((()=>{for(const e of l)t[Dr("0x1b")](e,{commandName:Dr("0x13"),commandParams:[{...s,forceValue:c}],formatGroupId:Dr("0x4")})}))})),t._descriptionFactory[Dr("0x3")](Dr("0x13"),(e=>Yo(n,Dr("0xd"),e))),t[Dr("0x20")][Dr("0x23")]((e=>{const{type:t,data:r}=e;if(Dr("0x6")==t&&r&&Dr("0x13")==r[Dr("0x10")]){const e=r[Dr("0x18")][0][Dr("0x14")],t=o[Dr("0xc")]((t=>t[Dr("0x14")]===e))[Dr("0x8")],s=n._t(t);return r.commandParams[0][Dr("0x1c")]?{type:Dr("0xf"),content:Yo(n,Dr("0x11"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,"*Remove format:* %0",Yo(n,Dr("0xd"),1))}}}))}}function jr(e){return"codeBlock"==e[Dr("0x12")]}const Ur=["afterInit","editor","has","TrackChangesEditing","plugins"];var Hr,Gr;Hr=Ur,Gr=206,function(e){for(;--e;)Hr.push(Hr.shift())}(++Gr);const Vr=function(e,t){return Ur[e-=0]};class zr extends e.Plugin{[Vr("0x4")](){const e=this[Vr("0x0")];e.plugins[Vr("0x1")]("CommentsEditing")&&e[Vr("0x3")].get(Vr("0x2")).enableCommand("addCommentThread")}}var Wr=n(181);const Kr=["delete","document","enableCommand","buffer","detach","setSelection","mapper","markerNameToElements","isCollapsed","deleteForward","enqueueChange","model","options","fromRange","commands","modifySelection","unlock","high","removeMarker:suggestion:deletion","end","remove","requires","createRange","showSuggestionHighlights","downcastDispatcher","unit","editing","start","rootName","addMarker:suggestion:deletion","plugins","data","createSelection","TrackChangesEditing","lock","get","writer","markerName","forward"];var qr,Xr;qr=Kr,Xr=232,function(e){for(;--e;)qr.push(qr.shift())}(++Xr);const Zr=function(e,t){return Kr[e-=0]};class $r extends e.Plugin{static get[Zr("0x17")](){return[Wr.Delete]}init(){const e=this.editor,t=e[Zr("0x20")][Zr("0x25")](Zr("0x23"));t[Zr("0x4")](Zr("0x2"));const n=e[Zr("0x10")][Zr("0x25")](Zr("0xb"));t[Zr("0x4")](Zr("0xb"),((t,o={})=>{const r=e.model[Zr("0x22")](e[Zr("0xd")][Zr("0x3")].selection);r[Zr("0xa")]&&e.model[Zr("0x11")](r,{direction:Zr("0x1"),unit:o[Zr("0x1b")]});const s=r.getFirstRange(),a=i.LiveRange[Zr("0xf")](s);let c;t(o),c="$graveyard"==a.root[Zr("0x1e")]?e[Zr("0xd")][Zr("0x18")](s[Zr("0x1d")]):e[Zr("0xd")][Zr("0x18")](a.start,a[Zr("0x15")]),a[Zr("0x6")](),e[Zr("0xd")][Zr("0xc")](n[Zr("0x5")].batch,(e=>{n[Zr("0x5")][Zr("0x24")](),e[Zr("0x7")](e[Zr("0x18")](c.end)),n.buffer[Zr("0x12")]()}))})),e[Zr("0x1c")][Zr("0x1a")].on(Zr("0x1f"),hr(e,"merge"),{priority:Zr("0x13")}),e[Zr("0x21")][Zr("0x1a")].on(Zr("0x1f"),((t,n,o)=>{o[Zr("0xe")][Zr("0x19")]&&hr(e,"merge",{showActiveMarker:!1})(t,n,o)}),{priority:Zr("0x13")}),e[Zr("0x1c")][Zr("0x1a")].on(Zr("0x14"),((e,t,n)=>{const o=n[Zr("0x8")][Zr("0x9")](t[Zr("0x0")]);if(o)for(const e of o)e.is("uiElement")&&(n[Zr("0x8")].unbindElementFromMarkerName(e,t[Zr("0x0")]),n[Zr("0x26")][Zr("0x16")](e))}),{priority:Zr("0x13")})}}const Jr=["*Format:* remove from %0","registerElementLabel","afterInit","commandName","bulletedList","outdentList","commandParams","listIndent","markBlockFormat","ELEMENT_LIST_ITEM","*Indent:* %0","has","model","indentList","slice","get","format","hasAttribute","previousSibling","forceValue","document","getAttribute","schema","registerDescriptionCallback","getSelectedBlocks","numberedList","splitListItemBefore","*Outdent:* %0","selection","listType","listItemId","DocumentListEditing","filter","push","ELEMENT_NUMBERED_LIST","editor","length","end","_descriptionFactory","add","before","ELEMENT_BULLETED_LIST","*Format:* insert into %0","findIndex","locale","TrackChangesEditing","value","createPositionAt","nextSibling","commands","plugins","from","enableCommand","change"];var Qr,Yr;Qr=Jr,Yr=422,function(e){for(;--e;)Qr.push(Qr.shift())}(++Yr);const es=function(e,t){return Jr[e-=0]};class ts extends e.Plugin{[es("0xc")](){const e=this[es("0x2d")];if(!e[es("0x6")][es("0x15")](es("0x29")))return;const t=e[es("0x0")],n=e[es("0x6")][es("0x19")](es("0x1"));function o(t){return()=>{const o=e[es("0x16")][es("0x1e")].selection,r=e[es("0x5")][es("0x19")](t);if(r.value){const s=o[es("0x22")]();return void e[es("0x16")][es("0x9")]((()=>{for(const e of s)n.markBlockFormat(e,{commandName:t,commandParams:[{forceValue:!r.value}],formatGroupId:es("0x27")})}))}const s=t[es("0x18")](0,-4),i=function(e,t,n){let o=Array.from(e).filter((e=>{return t=e,n.checkAttribute(t,es("0x28"));var t}));o=o[es("0x2a")]((e=>!e[es("0x1b")](es("0x28"))||e[es("0x1f")](es("0x27"))!==t));const r=new Set;for(const e of o)e[es("0x1b")](es("0x28"))?r[es("0x31")](os(e)):r[es("0x31")](e);return Array.from(r)}(o[es("0x22")](),s,e[es("0x16")][es("0x20")]);e[es("0x16")][es("0x9")]((()=>{for(const e of i)n.markBlockFormat(e,{commandName:t,commandParams:[{forceValue:!r[es("0x2")]}],formatGroupId:es("0x27")},ns(e))}))}}function r(t){return()=>{const o=function(e){const t=(e=Array.from(e))[es("0x35")]((e=>!e[es("0x1b")](es("0x28"))));return t>-1&&(e=e[es("0x18")](0,t)),e}(e[es("0x16")][es("0x1e")][es("0x26")][es("0x22")]()),r=e[es("0x16")].createRange(e[es("0x16")].createPositionAt(o[0],es("0x32")),e[es("0x16")][es("0x3")](o[o[es("0x2e")]-1],es("0x2f")));e[es("0x16")][es("0x9")]((()=>{n[es("0x12")](r,{commandName:t,commandParams:[],formatGroupId:"listIndent"},function(e){const t=new Set;for(const n of e){let e=n.nextSibling;for(;e&&e[es("0x1f")](es("0x11"))>n.getAttribute(es("0x11"));)t[es("0x31")](e),e=e[es("0x4")]}return Array[es("0x7")](t)}(o))}))}}n[es("0x8")]("numberedList",o(es("0x23"))),n[es("0x8")](es("0xe"),o(es("0xe"))),n[es("0x8")]("indentList",r(es("0x17"))),n.enableCommand(es("0xf"),r(es("0xf"))),n.enableCommand("splitListItemAfter"),n[es("0x8")](es("0x24")),n[es("0x30")][es("0xb")]((t=>!e.model.schema.isObject(t)&&t.hasAttribute("listItemId")),(e=>Yo(t,es("0x13"),e))),n._descriptionFactory[es("0x21")]((e=>{const{data:n}=e;if(!n)return;let o,r,s;switch(n[es("0xd")]){case es("0xe"):s=n[es("0x10")][0][es("0x1d")],o=es(s?"0x34":"0xa"),r={type:es("0x1a"),content:Yo(t,o,Yo(t,es("0x33")))};break;case es("0x23"):s=n[es("0x10")][0][es("0x1d")],o=es(s?"0x34":"0xa"),r={type:es("0x1a"),content:Yo(t,o,Yo(t,es("0x2c")))};break;case es("0x17"):o=es("0x14"),r={type:es("0x1a"),content:Yo(t,o,Yo(t,es("0x13")))};break;case"outdentList":o=es("0x25"),r={type:es("0x1a"),content:Yo(t,o,Yo(t,es("0x13")))}}return r}))}}function ns(e){const t=[];if(e[es("0x1b")](es("0x28"))&&e[es("0x1f")]("listIndent")>0){let n=e.nextSibling;for(;n&&n[es("0x1b")]("listItemId")&&n[es("0x1f")]("listIndent")===e.getAttribute(es("0x11"));)t[es("0x2b")](n),n=n[es("0x4")]}return t}function os(e){const t=e[es("0x1f")]("listIndent");if(0==t)return e;let n=e;for(;e.previousSibling&&e[es("0x1b")](es("0x28"));){const o=e[es("0x1c")][es("0x1f")](es("0x11"));if(o==t)n=e[es("0x1c")];else if(o<t)break;e=e[es("0x1c")]}return n}var rs=n(331);const ss=["requires","markerName","markInsertion","setSelection","mapper","document","TrackChangesEditing","nextSibling","editor","isLimit","plugins","addMarker:suggestion:insertion","enableCommand","high","end","isAtEnd","getFirstPosition","ck-suggestion-marker-split","hasClass","split","options","isCollapsed","downcastDispatcher","selection","unbindElementFromMarkerName","parent","init","start","detach","model","data","change","isAtStart","editing","writer","getFirstRange","schema"];var is,as;is=ss,as=209,function(e){for(;--e;)is.push(is.shift())}(++as);const cs=function(e,t){return ss[e-=0]};class xs extends e.Plugin{static get[cs("0xd")](){return[rs.Enter]}[cs("0x2")](){const e=this[cs("0x15")],t=e[cs("0x17")].get(cs("0x13"));t[cs("0x19")]("enter",(n=>{e.model[cs("0x7")]((o=>{const r=e[cs("0x5")][cs("0x12")][cs("0x24")],s=r[cs("0x1d")](),a=r[cs("0x22")],c=i.LiveRange.fromRange(r[cs("0xb")]()),x=c[cs("0x3")][cs("0x1")],l=c[cs("0x1b")][cs("0x1")],u=!(c[cs("0x3")][cs("0x8")]&&c[cs("0x1b")][cs("0x1c")]),d=x==l,g=!(e[cs("0x5")][cs("0xc")][cs("0x16")](x)||e[cs("0x5")][cs("0xc")][cs("0x16")](l))&&(a||u&&d);if(n(),g){const n=e[cs("0x5")].createPositionAt(s.parent[cs("0x14")],0),r=o.createRange(s,n);t[cs("0xf")](r)}else o[cs("0x10")](o.createRange(c.end));c[cs("0x4")]()}))})),e[cs("0x9")][cs("0x23")].on(cs("0x18"),hr(e,cs("0x20")),{priority:"high"}),e[cs("0x9")][cs("0x23")].on("removeMarker:suggestion:insertion",((e,t,n)=>{const o=n.mapper.markerNameToElements(t[cs("0xe")]);if(o)for(const e of o)e[cs("0x1f")](cs("0x1e"))&&(n[cs("0x11")][cs("0x0")](e,t[cs("0xe")]),n[cs("0xa")].remove(e))}),{priority:cs("0x1a")}),e[cs("0x6")][cs("0x23")].on(cs("0x18"),((t,n,o)=>{o[cs("0x21")].showSuggestionHighlights&&hr(e,cs("0x20"),{showActiveMarker:!1})(t,n,o)}),{priority:cs("0x1a")})}}const ls=["fontBackgroundColor","locale","normalizeSizeOptions","commandParams","title","TrackChangesEditing","label","format","fontSize.options","FontFamilyEditing","get","getRanges","*Set font size:* %0","document","isCollapsed","find","commandName","fontSize","*Set font color:* %0","toLowerCase","editor","from","change","trim","*Reset font size*","plugins","has","_enableCommand","markInlineFormat","fontColor","model","fontFamily","*Reset font color*","value","config","FontSizeEditing","FontBackgroundColorEditing","FontSize","afterInit"];var us,ds;us=ls,ds=306,function(e){for(;--e;)us.push(us.shift())}(++ds);const gs=function(e,t){return ls[e-=0]},ms=[{pluginName:gs("0x2"),commandName:gs("0x17")},{pluginName:gs("0xf"),commandName:gs("0x25")},{pluginName:"FontColorEditing",commandName:gs("0x23")},{pluginName:gs("0x3"),commandName:gs("0x6")}];class fs extends e.Plugin{[gs("0x5")](){const e=this[gs("0x1a")][gs("0x7")];for(const{pluginName:e,commandName:t}of ms)this[gs("0x1a")][gs("0x1f")][gs("0x20")](e)&&this[gs("0x21")](t);this[gs("0x1a")].plugins[gs("0x10")](gs("0xb"))._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(null!=n){if(gs("0x17")==n[gs("0x16")]){const t=n.commandParams[0][gs("0x0")];if(t){const n=this[gs("0x1a")][gs("0x1f")].get(gs("0x4"))[gs("0x8")](this[gs("0x1a")][gs("0x1")][gs("0x10")](gs("0xe"))).find((e=>e[gs("0x24")]==t))[gs("0xa")],o=this.editor.locale._t(n)[gs("0x19")]();return{type:gs("0xd"),content:Yo(e,gs("0x12"),o)}}return{type:"format",content:Yo(e,gs("0x1e"))}}if("fontFamily"==n[gs("0x16")]){const t=n.commandParams[0][gs("0x0")];return t?{type:gs("0xd"),content:Yo(e,"*Set font family:* %0",t)}:{type:"format",content:Yo(e,"*Reset font family*")}}if("fontColor"==n[gs("0x16")]){const t=n[gs("0x9")][0].value;if(t){const n=(0,r.normalizeColorOptions)(this.editor[gs("0x1")][gs("0x10")]("fontColor.colors"))[gs("0x15")]((e=>e[gs("0x24")]==t));let o=t,s="";return n&&(o=n[gs("0xc")],s=e._t(o)[gs("0x19")]()),{type:"format",content:Yo(e,gs("0x18"),s)[gs("0x1d")](),color:{value:t,title:s||o}}}return{type:gs("0xd"),content:Yo(e,gs("0x26"))}}if(gs("0x6")==n.commandName){const t=n[gs("0x9")][0].value;if(t){const n=(0,r.normalizeColorOptions)(this[gs("0x1a")].config.get("fontBackgroundColor.colors")).find((e=>e[gs("0x24")]==t));let o=t,s="";return n&&(o=n[gs("0xc")],s=e._t(o)[gs("0x19")]()),{type:"format",content:Yo(e,"*Set font background color:* %0",s).trim(),color:{value:t,title:s||o}}}return{type:gs("0xd"),content:Yo(e,"*Reset font background color*")}}}}))}[gs("0x21")](e){const t=this.editor;t[gs("0x1f")][gs("0x10")](gs("0xb")).enableCommand(e,((n,o={})=>{const r=t[gs("0x24")][gs("0x13")].selection,s=o[gs("0x0")];r[gs("0x14")]?n(o):t[gs("0x24")][gs("0x1c")]((()=>{const n=Array[gs("0x1b")](r[gs("0x11")]());for(const o of n){const n=s?[o]:mr(e,o,t[gs("0x24")]);for(const o of n)t.plugins[gs("0x10")](gs("0xb"))[gs("0x22")](o,{commandName:e,commandParams:[{value:s}]})}}))}))}}const hs=["from","enableCommand","heading.options","find","markBlockFormat","isObject","ELEMENT_HEADING","document","get","selection","match","has","title","checkChild","getSelectedBlocks","paragraph","name","formatBlock","registerDescriptionCallback","locale","commandParams","commandName","_descriptionFactory","heading","editor","schema","value","filter","change","config","plugins","model","blockName","*Change to:* %0"];var ks,bs;ks=hs,bs=136,function(e){for(;--e;)ks.push(ks.shift())}(++bs);const ps=function(e,t){return hs[e-=0]};class _s extends e.Plugin{afterInit(){const e=this.editor,t=e[ps("0x13")],n=e[ps("0x1d")][ps("0x8")](ps("0x2"));if(!e[ps("0x1e")][ps("0xb")]("HeadingEditing"))return;const o=e.plugins[ps("0x8")]("TrackChangesEditing");o[ps("0x1")](ps("0x17"),((t,n)=>{const r=n.value,s=Array[ps("0x0")](this[ps("0x18")][ps("0x1f")][ps("0x7")][ps("0x9")][ps("0xe")]())[ps("0x1b")]((e=>{return t=e,n=r,(o=this[ps("0x18")][ps("0x1f")][ps("0x19")])[ps("0xd")](t.parent,n)&&!o[ps("0x5")](t)&&t[ps("0x10")]!=n;var t,n,o}));e[ps("0x1f")][ps("0x1c")]((()=>{for(const e of s)o[ps("0x4")](e,{commandName:ps("0x17"),commandParams:[n],formatGroupId:ps("0x20")},fr(e))}))}));for(const e of n)ps("0xf")!=e.model&&o[ps("0x16")].registerElementLabel(e[ps("0x1f")],(t=>{const n=vs(e.model);return null!==n?r(t,n):s(t,e[ps("0xc")])}));function r(e,n){return Yo(t,ps("0x6"),[e,n])}function s(e,n){return Yo(t,"ELEMENT_HEADING_CUSTOM",[e,n])}o[ps("0x16")][ps("0x12")]((e=>{const{type:o,data:i}=e;if(ps("0x11")==o&&i&&"heading"==i[ps("0x15")]){const e=i[ps("0x14")][0][ps("0x1a")],o=vs(e);if(null!==o)return{type:"format",content:Yo(t,ps("0x21"),r(1,o))};const a=n[ps("0x3")]((t=>t[ps("0x1f")]===e))[ps("0xc")];return{type:"format",content:Yo(t,ps("0x21"),s(1,a))}}}))}}function vs(e){const t=e[ps("0xa")](/^heading(\d+)$/);return t?t[1]:null}const Es=["toLowerCase","find","change","enableCommand","getAttribute","commandParams","editor","getLastMatchingPosition","plugins","hasAttribute","title","color","isCollapsed","HighlightEditing","_descriptionFactory","registerDescriptionCallback","format","FORMAT_HIGHLIGHT","value","commandName","afterInit","TrackChangesEditing","*Set highlight:* %0","push","formatInline","*Remove highlight*","config","locale","highlight","model","has","getRanges","highlight.options","document","backward","get","getFirstPosition","markInlineFormat","selection"];var ys,Ts;ys=Es,Ts=162,function(e){for(;--e;)ys.push(ys.shift())}(++Ts);const Cs=function(e,t){return Es[e-=0]};class ws extends e.Plugin{[Cs("0xe")](){const e=this[Cs("0x0")];if(!e[Cs("0x2")][Cs("0x18")](Cs("0x7")))return;const t=e[Cs("0x2")][Cs("0x1d")](Cs("0xf"));t[Cs("0x24")](Cs("0x16"),((n,o={})=>{const r=e.model[Cs("0x1b")][Cs("0x20")],s=r[Cs("0x25")]("highlight");let i=o[Cs("0xc")],a=[];if(r[Cs("0x6")]){const t=r[Cs("0x1e")]();if(!r[Cs("0x3")](Cs("0x16")))return void n(o);{const n=e=>e.item[Cs("0x25")](Cs("0x16"))===s,o=t[Cs("0x1")](n,{direction:Cs("0x1c")}),r=t[Cs("0x1")](n);a=[e[Cs("0x17")].createRange(o,r)],i==s&&(i=null)}}else for(const t of r[Cs("0x19")]())i?a[Cs("0x11")](t):a[Cs("0x11")](...mr(Cs("0x16"),t,e.model));e[Cs("0x17")][Cs("0x23")]((()=>{for(const e of a)t[Cs("0x1f")](e,{commandName:Cs("0x16"),commandParams:[{value:i}]})}))}));const n=e[Cs("0x15")];t[Cs("0x8")][Cs("0x9")]((t=>{const{type:o,data:r}=t;if(Cs("0x12")==o&&r&&"highlight"==r[Cs("0xd")]){const t=r[Cs("0x26")][0][Cs("0xc")];if(t){const o=e[Cs("0x14")][Cs("0x1d")](Cs("0x1a"))[Cs("0x22")]((e=>e.model==t)),r=n._t(o.title)[Cs("0x21")]();return{type:Cs("0xa"),content:Yo(n,Cs("0x10"),r),color:{value:o[Cs("0x5")],title:o[Cs("0x4")]}}}return{type:"format",content:Yo(n,Cs("0x13"),Yo(n,Cs("0xb")))}}}))}}const As=["enableCommand","createPositionAt","_descriptionFactory","HorizontalLineEditing","high","addClass","horizontalLine","insert","div","for","createContainerElement","TrackChangesEditing","registerElementLabel","showSuggestionHighlights","ck-horizontal-line","createEmptyElement","editor","plugins","get","ELEMENT_HORIZONTAL_LINE"];var Rs,Is;Rs=As,Is=289,function(e){for(;--e;)Rs.push(Rs.shift())}(++Is);const Ss=function(e,t){return As[e-=0]};class Ms extends e.Plugin{afterInit(){const e=this[Ss("0x7")];if(!e.plugins.has(Ss("0xe")))return;e[Ss("0x8")][Ss("0x9")](Ss("0x2"))[Ss("0xb")](Ss("0x11"));const t=e[Ss("0x8")][Ss("0x9")](Ss("0x2")),n=e.locale;t[Ss("0xd")][Ss("0x3")](Ss("0x11"),(e=>Yo(n,Ss("0xa"),e))),e.conversion[Ss("0x0")]("dataDowncast").elementToStructure({model:Ss("0x11"),view:(e,{writer:t,options:n})=>{if(!n[Ss("0x4")])return;const o=t[Ss("0x1")](Ss("0x13")),r=t[Ss("0x6")]("hr");return t[Ss("0x10")](Ss("0x5"),o),t[Ss("0x12")](t[Ss("0xc")](o,0),r),o},converterPriority:Ss("0xf")})}}const Ns=["getAttribute","afterInit","locale","getCustomProperty","rawHtmlApi","TrackChangesEditing","value","editing","enableCommand","htmlEmbed","selection","get","*Change %0 content*","_descriptionFactory","rawHtml","editor","document","markBlockFormat","getSelectedElement","HtmlEmbed","view","model","ELEMENT_HTML_EMBED","plugins"];var Ls,Os;Ls=Ns,Os=354,function(e){for(;--e;)Ls.push(Ls.shift())}(++Os);const Fs=function(e,t){return Ns[e-=0]};class Ps extends e.Plugin{[Fs("0x7")](){const e=this[Fs("0x15")];if(!e[Fs("0x5")].has(Fs("0x1")))return;const t=e[Fs("0x5")].get(Fs("0xb")),n=e[Fs("0x8")],o=e[Fs("0xd")][Fs("0x2")].document.selection;t._descriptionFactory.registerElementLabel(Fs("0x14"),(e=>Yo(n,Fs("0x4"),e))),e[Fs("0x5")][Fs("0x11")](Fs("0xb"))[Fs("0xe")](Fs("0xf"),((n,r)=>{const s=e[Fs("0x3")],i=s[Fs("0x16")][Fs("0x10")];s.change((()=>{const e=function(e){const t=e[Fs("0x0")]();return t&&t.is("element","rawHtml")?e[Fs("0x0")]():null}(i);if(!e)return void n(null);const s=e[Fs("0x6")](Fs("0xc"))||"";void 0!==r&&r!==s&&(t[Fs("0x17")](e,{commandName:Fs("0xf"),commandParams:[r]}),o[Fs("0x0")]()[Fs("0x9")](Fs("0xa")).cancel())}))})),t[Fs("0x13")].registerDescriptionCallback((e=>{const{data:t}=e;if(t&&Fs("0xf")==t.commandName){const e=Yo(n,Fs("0x4"));return{type:"format",content:Yo(n,Fs("0x12"),e)}}}))}}const Ds=["format","registerElementLabel","_descriptionFactory","ImageEditing","getNearestSelectionRange","getSuggestion","commandParams","shouldConvertImageType","accept","ImageCaptionUtils","isOwn","type","value","length","ImageBlockEditing","registerCustomCallback","ImageUploadEditing","_findSuggestions","isInlineImage","getSuggestionCallback","ImageCaptionEditing","ImageUtils","head","*Set image text alternative:* %0","markDeletion","suggestion","newRange","insertion","width","*Remove image text alternative*","normalizedStyles","imageCaption","from","deletion","*Format:* %0","imageStylePreApply","plugins","Users","alt","isCollapsed","isBlockImage","imageStyle","formatBlock","schema","has","next","imageTextAlternative","formatInline","markBlockFormat","enableCommand","FORMAT_SIDE_IMAGE","fromPosition","forceDefaultExecution","isInContent","caption","previous","commands","markInsertion","ImageResize","title","ELEMENT_IMAGE","model","discard","getAttribute","convertBlockImageToInline","toggleImageCaption","registerDescriptionCallback","discardSuggestion","getCaptionFromImageModelElement","isBefore","newValue","imageStylePostApply","imageBlock","start","change","TrackChangesEditing","getClosestSelectedImageElement","isIntersecting","addObject","removeObject","convertInlineImageToBlock","imageInline","getFirstRange","_suggestionFactory","toNext","end","filter","getSuggestions","toPrevious","forward","createRangeOn","getChangedMarkers","join","differ","subType","editor","selection","nodeAfter","find","author","ImageTextAlternativeEditing","commandReversedParams","imageTypeInline","insertImage","document","*Set image width:* %0","hasAttribute","element","resizeImage","get","commandName","ImageStyleEditing","isEqual","imageTypeBlock","createRange","chain","hasSuggestion","ELEMENT_INLINE_IMAGE","ELEMENT_CAPTION","findIndex","refresh","detach"];var Bs,js;Bs=Ds,js=297,function(e){for(;--e;)Bs.push(Bs.shift())}(++js);const Us=function(e,t){return Ds[e-=0]};class Hs extends e.Plugin{afterInit(){const e=this[Us("0x2a")];if(!e[Us("0x69")][Us("0x71")](Us("0x48")))return;const n=e[Us("0x69")][Us("0x38")](Us("0x16")),o=e[Us("0x69")][Us("0x38")](Us("0x5a")),r={},s=e.locale;if(n[Us("0x76")](Us("0x32")),n[Us("0x47")].registerElementLabel(Us("0x13"),(e=>Yo(s,Us("0x7"),e))),n[Us("0x47")][Us("0x46")](Us("0x1c"),(e=>Yo(s,Us("0x40"),e))),n[Us("0x47")][Us("0x46")](Us("0x1"),(()=>Yo(s,Us("0x41")))),e[Us("0x69")][Us("0x71")](Us("0x55"))&&n[Us("0x76")]("uploadImage"),e[Us("0x69")].has(Us("0x53"))&&e.plugins.has("ImageInlineEditing")&&(n[Us("0x76")](Us("0x31"),((t,r)=>{const s=o[Us("0x17")](e[Us("0x8")].document[Us("0x2b")]);e[Us("0x8")][Us("0x15")]((()=>{n[Us("0x75")](s,{commandName:"imageTypeInline",commandParams:[r]},[],Us("0xb"))}))})),n.enableCommand(Us("0x3c"),((t,r)=>{e.model.change((s=>{let a=o[Us("0x17")](e[Us("0x8")][Us("0x33")][Us("0x2b")]),c=s[Us("0x25")](a);const x=i.LivePosition[Us("0x78")](c[Us("0x14")],Us("0x23")),l=i.LivePosition.fromPosition(c[Us("0x20")],Us("0x1f"));n[Us("0x79")]((()=>t(r))),a=o.getClosestSelectedImageElement(e[Us("0x8")][Us("0x33")].selection),c=s.createRangeOn(a);const u=s.createRange(x,l);x[Us("0x44")](),l[Us("0x44")](),n[Us("0x75")](a,{commandName:Us("0x31")},[],"convertInlineImageToBlock"),u.start[Us("0x10")](c[Us("0x14")])&&n[Us("0x4")](s.createRange(u.start,c[Us("0x14")]),"convertInlineImageToBlock"),c[Us("0x20")].isBefore(u[Us("0x20")])&&n[Us("0x4")](s[Us("0x3d")](c[Us("0x20")],u[Us("0x20")]),Us("0x1b"))}))})),n[Us("0x1e")][Us("0x54")](Us("0x6f"),Us("0x1b"),Us("0x27"),(()=>{})),n[Us("0x1e")].registerCustomCallback("formatBlock",Us("0x1b"),Us("0x4d"),(()=>{})),n._suggestionFactory[Us("0x54")](Us("0x6f"),Us("0x1b"),"discard",n._suggestionFactory.getSuggestionCallback("formatBlock","",Us("0x4d"))),n[Us("0x1e")][Us("0x54")](Us("0x60"),Us("0x1b"),Us("0x27"),(()=>{})),n._suggestionFactory[Us("0x54")](Us("0x60"),Us("0x1b"),Us("0x9"),(([t])=>{const o=n[Us("0x1e")][Us("0x58")](Us("0x60"),"",Us("0x9"));let r=t[Us("0x14")],s=t[Us("0x20")];const i=e[Us("0x8")][Us("0x70")][Us("0x49")](r,"backward"),a=e[Us("0x8")][Us("0x70")][Us("0x49")](s,Us("0x24"));i[Us("0x6c")]&&(r=i[Us("0x14")]),a[Us("0x6c")]&&(s=a[Us("0x20")]),o([e[Us("0x8")].createRange(r,s)])})),n[Us("0x1e")][Us("0x54")]("formatBlock",Us("0x1b"),Us("0x3e"),x),n[Us("0x1e")][Us("0x54")]("insertion","convertInlineImageToBlock",Us("0x3e"),x)),e[Us("0x69")][Us("0x71")](Us("0x59"))&&(n[Us("0x76")](Us("0xc"),((t,r)=>{const s=e[Us("0x69")][Us("0x38")](Us("0x4e"));let i=o[Us("0x17")](e[Us("0x8")].document[Us("0x2b")]),a=s[Us("0xf")](i);e[Us("0x8")].change((()=>{if(a)return void n[Us("0x5d")](e.model[Us("0x25")](a));const c=o[Us("0x6d")](i);t(r),i=o[Us("0x17")](e[Us("0x8")].document[Us("0x2b")]),a=s.getCaptionFromImageModelElement(i),n[Us("0x4")](e[Us("0x8")].createRangeOn(a),c?null:Us("0x64"))}))})),n._suggestionFactory[Us("0x54")](Us("0x60"),Us("0x64"),"chain",x)),e[Us("0x69")].has("ImageStyleEditing")){n[Us("0x76")](Us("0x6e"),((r,s)=>{const i=e[Us("0x69")][Us("0x38")](Us("0x6a")).me,a=e[Us("0x3")][Us("0x38")](Us("0x6e"));let c=o.getClosestSelectedImageElement(e[Us("0x8")][Us("0x33")].selection),x=e.model[Us("0x25")](c),l=a[Us("0x51")];if(l==s[Us("0x51")])return;const u={commandName:"imageStyle",commandParams:[s],formatGroupId:(0,t.uid)()};e[Us("0x8")][Us("0x15")]((()=>{if(n[Us("0x22")]()[Us("0x21")]((e=>e[Us("0x0")]&&i==e[Us("0x2e")]&&("formatBlock"==e[Us("0x50")]||Us("0x74")==e.type)&&(Us("0x68")==e[Us("0x29")]||Us("0x12")==e[Us("0x29")])&&e.getFirstRange()[Us("0x3b")](x))).forEach((e=>n[Us("0xe")](e[Us("0x5b")]))),c=o[Us("0x17")](e.model[Us("0x33")].selection),x=e[Us("0x8")][Us("0x25")](c),a[Us("0x43")](),e.commands[Us("0x38")]("imageTypeInline")[Us("0x43")](),e[Us("0x3")][Us("0x38")](Us("0x3c"))[Us("0x43")](),l=a[Us("0x51")],l!=s[Us("0x51")])return o[Us("0x57")](c)&&a[Us("0x4c")](s[Us("0x51")],c)?(r(s),c=o[Us("0x17")](e.model.document[Us("0x2b")]),void n[Us("0x75")](c,{...u,commandReversedParams:[{value:l||null}]},[],Us("0x68"))):void(o.isBlockImage(c)?n[Us("0x75")](c,u,[],Us("0x12")):n.markInlineFormat(x,u,Us("0x12")))}))}));for(const t of e[Us("0x69")][Us("0x38")](Us("0x3a"))[Us("0x63")])r[t.name]=t[Us("0x6")].toLowerCase();n[Us("0x1e")].registerCustomCallback("formatBlock","imageStylePreApply",Us("0x27"),(()=>{})),n[Us("0x1e")].registerCustomCallback(Us("0x6f"),"imageStylePostApply",Us("0x27"),(()=>{})),n[Us("0x1e")][Us("0x54")](Us("0x74"),Us("0x12"),Us("0x27"),(()=>{})),n[Us("0x1e")][Us("0x54")](Us("0x6f"),Us("0x68"),Us("0x4d"),(()=>{})),n[Us("0x1e")].registerCustomCallback(Us("0x6f"),Us("0x68"),Us("0x9"),((e,t)=>{n[Us("0x1e")][Us("0x58")]("formatBlock","",Us("0x4d"))(e,{commandName:t[Us("0x39")],commandParams:t[Us("0x30")]})})),n[Us("0x1e")].registerCustomCallback("formatBlock",Us("0x68"),Us("0x3e"),x)}const a=[{type:"formatBlock",subType:Us("0x68")},{type:Us("0x60"),subType:Us("0x64")},{type:Us("0x6f"),subType:Us("0x1b")},{type:"insertion",subType:Us("0x1b")}];function c(e,t){const r=a[Us("0x42")]((({type:t,subType:n})=>e[Us("0x50")]==t&&e[Us("0x29")]==n)),s=a[Us("0x42")]((({type:e,subType:n})=>t[Us("0x50")]==e&&t[Us("0x29")]==n));if(r<0||s<0)return!1;const i=e[Us("0x1d")](),c=t[Us("0x1d")]();if((0==r||1==r)&&2==s&&i[Us("0x18")](c))return!0;if(2==r&&3==s){const e=n[Us("0x56")](i,Us("0x60"))[Us("0x21")]((({suggestion:e,meta:t})=>t[Us("0x4f")]&&"convertInlineImageToBlock"==e.subType));if(e[Us("0x52")]>1&&c[Us("0x20")][Us("0x3b")](i[Us("0x14")]))return!0;if(1==e.length&&(i[Us("0x14")].isEqual(c[Us("0x20")])||i[Us("0x20")][Us("0x3b")](c[Us("0x14")])))return!0}if(3==r&&3==s&&i.start[Us("0x10")](c[Us("0x14")])){const e=i.end[Us("0x2c")],t=c[Us("0x14")].nodeBefore;return o[Us("0x6d")](e)&&e===t}return!1}function x(e,t){return c(e,t)?[e,t]:c(t,e)?[t,e]:null}e.model[Us("0x33")].registerPostFixer((()=>{let t=!1;const r=Array[Us("0x65")](e[Us("0x8")][Us("0x33")][Us("0x28")][Us("0x26")]());for(const{name:e,data:s}of r){const{group:r,type:i,subType:a,id:c}=n._splitMarkerName(e);if(Us("0x5e")==r&&n[Us("0x3f")](c)){if("formatBlock"==i&&(Us("0x68")==a||"imageStylePostApply"==a)){const e=n[Us("0x4a")](c);if(s[Us("0x5f")]){const r=e[Us("0x1d")]().getContainedElement();if(o[Us("0x6d")](r))continue;n[Us("0xe")](e),t=!0}}if(Us("0x60")==i&&Us("0x64")==a&&!s[Us("0x5f")]){const e=n[Us("0x4a")](c);e[Us("0x72")]&&e[Us("0x72")][Us("0x0")]&&(n[Us("0xe")](e.next),t=!0)}}}return t})),e.plugins[Us("0x71")](Us("0x5"))&&n[Us("0x76")](Us("0x37"),((t,r)=>{const s=o[Us("0x17")](e.model.document[Us("0x2b")]);s.getAttribute(Us("0x61"))!=r.width&&e.model[Us("0x15")]((()=>{n[Us("0x75")](s,{commandName:Us("0x37"),commandParams:[r]})}))})),e[Us("0x69")].has(Us("0x2f"))&&n.enableCommand(Us("0x73"),((t,r)=>{const s=o[Us("0x17")](e[Us("0x8")][Us("0x33")].selection);(s[Us("0x35")](Us("0x6b"))?s[Us("0xa")](Us("0x6b")):"")!=r[Us("0x11")]&&e[Us("0x8")][Us("0x15")]((()=>{n.markBlockFormat(s,{commandName:Us("0x73"),commandParams:[r]})}))})),n[Us("0x47")][Us("0xd")]((e=>{if(a[Us("0x2d")]((({type:t,subType:n})=>e[Us("0x50")]==t&&e[Us("0x29")]==n)))return e[Us("0x2")]?{}:void 0})),n[Us("0x47")][Us("0xd")]((e=>{if(Us("0x60")==e[Us("0x50")]||Us("0x66")==e[Us("0x50")]){const t=e.getContainedElement();if(t&&t.is(Us("0x36"),Us("0x1")))return{type:Us("0x60")==e[Us("0x50")]?Us("0x19"):Us("0x1a"),element:t,quantity:1}}})),n[Us("0x47")][Us("0xd")]((e=>Us("0x6f")==e[Us("0x50")]&&Us("0x1b")==e[Us("0x29")]?{type:Us("0x45"),content:"Inline image to block image"}:"formatBlock"==e[Us("0x50")]&&"convertBlockImageToInline"==e[Us("0x29")]?{type:Us("0x45"),content:"Block image to inline image"}:void 0)),n[Us("0x47")].registerDescriptionCallback((e=>{const{data:t}=e;if(t){if(Us("0x6e")==t[Us("0x39")]){const e=t[Us("0x4b")][0][Us("0x51")];return n="side"===e?Yo(s,Us("0x77")):r[e]||e,{type:Us("0x45"),content:Yo(s,Us("0x67"),n)}}if(Us("0x73")==t.commandName){const e=t[Us("0x4b")][0][Us("0x11")];return e?{type:Us("0x45"),content:Yo(s,Us("0x5c"),'"'+e+'"')}:{type:Us("0x45"),content:Yo(s,Us("0x62"))}}if(Us("0x37")==t[Us("0x39")]){const e=t[Us("0x4b")][0].width;return e?{type:Us("0x45"),content:Yo(s,Us("0x34"),e)}:{type:Us("0x45"),content:Yo(s,"*Reset image width*")}}}var n}))}}const Gs=["execute","enableCommand","collaboration_features","value","forEach","plugins","_trackChangesExecuted","get","afterInit","editor","_setSuggestionData","importWord","trackChanges","_handleImportedData","bind","commands","track_changes","_trackChangesValueDuringImport","listenTo","dataInsert"];var Vs,zs;Vs=Gs,zs=468,function(e){for(;--e;)Vs.push(Vs.shift())}(++zs);const Ws=function(e,t){return Gs[e-=0]};class Ks extends e.Plugin{constructor(e){super(e),this[Ws("0x9")]=!1,this[Ws("0x12")]=!1}[Ws("0x0")](){const e=this[Ws("0x1")],t=e[Ws("0x7")].get("importWord"),n=e[Ws("0x7")][Ws("0x13")](Ws("0x4"));t&&(t.on(Ws("0xc"),((e,[,t])=>{this[Ws("0x9")]=n[Ws("0xf")],t[Ws("0xe")][Ws("0x8")]=!this._trackChangesValueDuringImport}),{priority:"high"}),this[Ws("0xa")](t,Ws("0xb"),this[Ws("0x5")][Ws("0x6")](this)),this[Ws("0xa")](t,"dataInsert",(()=>{this[Ws("0x12")]&&(n[Ws("0xc")](),this._trackChangesExecuted=!1)}),{priority:"lowest"}),e[Ws("0x11")][Ws("0x13")]("TrackChangesEditing")[Ws("0xd")](Ws("0x3")))}[Ws("0x5")](e,t){const{suggestions:n}=t,o=this[Ws("0x1")][Ws("0x7")][Ws("0x13")](Ws("0x4")),r=o[Ws("0xf")];this[Ws("0x9")]!==r&&(o[Ws("0xc")](),this[Ws("0x12")]=!0),n&&n[Ws("0x10")]((({id:e,type:t,author:n,created_at:o})=>{const r={id:e,type:t,authorId:this.editor[Ws("0x11")][Ws("0x13")]("Users").me.id,createdAt:new Date,data:{},hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:Ws("0x3")}}};this[Ws("0x1")][Ws("0x11")][Ws("0x13")](cx)[Ws("0x2")](r)}))}}const qs=["getItemLabel","outdentBlock","afterInit","enableCommand","*Outdent:* %0","IndentBlock","document","IndentEditing","editor","commandName","getSelectedBlocks","*Indent:* %0","has","outdent","registerDescriptionCallback","filter","change","indentBlock","_descriptionFactory","indent","model","TrackChangesEditing","blockIndent","checkAttribute","selection","plugins","markBlockFormat"];var Xs,Zs;Xs=qs,Zs=378,function(e){for(;--e;)Xs.push(Xs.shift())}(++Zs);const $s=function(e,t){return qs[e-=0]};class Js extends e.Plugin{[$s("0x2")](){const e=this[$s("0x8")],t=e[$s("0x19")].get($s("0x15"));e.plugins[$s("0xc")]($s("0x7"))&&(t.enableCommand($s("0x13")),t[$s("0x3")]($s("0xd")));const n=e.locale;if(e[$s("0x19")][$s("0xc")]($s("0x5"))){for(const n of[$s("0x11"),"outdentBlock"])t[$s("0x3")](n,(()=>{const o=Array.from(this[$s("0x8")][$s("0x14")][$s("0x6")][$s("0x18")][$s("0xa")]())[$s("0xf")]((e=>this[$s("0x8")][$s("0x14")].schema[$s("0x17")](e,$s("0x16"))));e[$s("0x14")][$s("0x10")]((()=>{for(const e of o)t[$s("0x1a")](e,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));t[$s("0x12")][$s("0xe")]((e=>{const{data:o}=e;if(!o)return;if($s("0x11")!=o[$s("0x9")]&&$s("0x1")!=o.commandName)return;const r=e.getItems()[0],s=t[$s("0x12")][$s("0x0")](r);return $s("0x11")==o.commandName?{type:"format",content:Yo(n,$s("0xb"),s)}:$s("0x1")==o[$s("0x9")]?{type:"format",content:Yo(n,$s("0x4"),s)}:void 0}))}}}var Qs,Ys,ei=["enableCommand","editor","get","plugins","requires","input","init","TrackChangesEditing"];Qs=ei,Ys=454,function(e){for(;--e;)Qs.push(Qs.shift())}(++Ys);var ti=function(e,t){return ei[e-=0]};class ni extends e.Plugin{static get[ti("0x6")](){return[Wr.Input]}[ti("0x0")](){this[ti("0x3")][ti("0x5")][ti("0x4")](ti("0x1"))[ti("0x2")](ti("0x7"))}}const oi=["*Set link:* %0","commandName","format","getAttribute","getFirstPosition","afterInit","has","plugins","_descriptionFactory","locale","LinkEditing","editor","markInlineFormat","document","model","get","enableCommand","TrackChangesEditing","link","hasAttribute","unlink","selection","getFirstRange","isCollapsed","from","linkHref","registerDescriptionCallback"];var ri,si;ri=oi,si=439,function(e){for(;--e;)ri.push(ri.shift())}(++si);const ii=function(e,t){return oi[e-=0]};class ai extends e.Plugin{[ii("0x19")](){const e=this[ii("0x4")];if(!e[ii("0x0")][ii("0x1a")](ii("0x3")))return;const t=e[ii("0x0")][ii("0x8")](ii("0xa"));t.enableCommand(ii("0xb"),((n,o)=>{const r=e[ii("0x7")][ii("0x6")][ii("0xe")];let s=[];if(r[ii("0x10")]){if(!r[ii("0xc")](ii("0x12")))return void n(o);{const t=(0,Wr.findAttributeRange)(r[ii("0x18")](),ii("0x12"),r[ii("0x17")](ii("0x12")),e[ii("0x7")]);s=[t]}}else s=Array[ii("0x11")](r.getRanges());e[ii("0x7")].change((()=>{for(const e of s)t[ii("0x5")](e,{commandName:ii("0xb"),commandParams:[o]})}))})),t[ii("0x9")]("unlink",(()=>{const n=this[ii("0x4")].model,o=n.document[ii("0xe")];n.change((()=>{let n=[];n=o[ii("0x10")]?[(0,Wr.findAttributeRange)(o[ii("0x18")](),ii("0x12"),o[ii("0x17")](ii("0x12")),e.model)]:mr(ii("0x12"),o[ii("0xf")](),e[ii("0x7")]);for(const e of n)t[ii("0x5")](e,{commandName:ii("0xd"),commandParams:[]})}))})),t[ii("0x1")][ii("0x13")]((t=>{const{data:n}=t,o=e[ii("0x2")];if(n){if(ii("0xb")==n[ii("0x15")]){const e=n.commandParams[0];return{type:ii("0x16"),content:Yo(o,ii("0x14"),'"'+e+'"')}}return ii("0xd")==n[ii("0x15")]?{type:ii("0x16"),content:Yo(o,"*Remove link*")}:void 0}}))}}const ci=["listType","ELEMENT_BULLETED_LIST","*Change to:* %0","locale","format","length","bulletedList","filter","afterInit","commandName","getAttribute","blockName","todoList","listItem","push","execute","checkChild","ELEMENT_LIST_ITEM","_selectedElements","markBlockFormat","value","slice","numbered","from","registerElementLabel","*Check item*","numberedList","add","*Outdent:* %0","indentList","TodoListEditing","selection","before","model","commands","name","getSelectedBlocks","plugins","todo","List","outdentList","has","createPositionAt","checkTodoList","*Uncheck item*","ELEMENT_TODO_LIST","listIndent","ListEditing","get","ELEMENT_NUMBERED_LIST","paragraph","end","findIndex","enableCommand","nextSibling","document","editor","registerDescriptionCallback","replace","createRange","change","bulleted","previousSibling","element"];var xi,li;xi=ci,li=361,function(e){for(;--e;)xi.push(xi.shift())}(++li);const ui=function(e,t){return ci[e-=0]};class di extends e.Plugin{[ui("0x1f")](){const e=this[ui("0xf")],t=e[ui("0x1a")];if(!e.plugins[ui("0x0")](ui("0x6")))return;const n=e[ui("0x3c")][ui("0x7")]("TrackChangesEditing"),o=e[ui("0x3c")][ui("0x0")](ui("0x35"));function r(t){return()=>{const o=e.model[ui("0xe")][ui("0x36")],r=e[ui("0x39")].get(t);if(r[ui("0x2b")])return void e[ui("0x26")](ui("0x9"),{});const s=t[ui("0x2c")](0,-4),i=function(e,t,n){let o=Array[ui("0x2e")](e)[ui("0x1e")]((e=>{return t=e,(o=n)[ui("0x27")](t.parent,ui("0x24"))&&!o.isObject(t);var t,o}));o=o[ui("0x1e")]((e=>!e.is("element",ui("0x24"))||e[ui("0x21")](ui("0x17"))!=t));const r=new Set;for(const e of o)e.is("element",ui("0x24"))?r[ui("0x32")](gi(e)):r[ui("0x32")](e);return Array[ui("0x2e")](r)}(o.getSelectedBlocks(),s,e[ui("0x38")].schema);e[ui("0x38")][ui("0x13")]((()=>{for(const e of i)n.markBlockFormat(e,{commandName:t,commandParams:[{forceValue:!r[ui("0x2b")]}],formatGroupId:ui("0x22")},mi(e))}))}}function s(t){return()=>{const o=function(e){const t=(e=Array[ui("0x2e")](e))[ui("0xb")]((e=>ui("0x24")!=e.name));return t>-1&&(e=e.slice(0,t)),e}(e.model[ui("0xe")].selection[ui("0x3b")]()),r=e.model[ui("0x12")](e[ui("0x38")][ui("0x1")](o[0],ui("0x37")),e[ui("0x38")][ui("0x1")](o[o[ui("0x1c")]-1],ui("0xa")));e.model[ui("0x13")]((()=>{n[ui("0x2a")](r,{commandName:t,commandParams:[],formatGroupId:ui("0x5")},function(e){const t=new Set;for(const n of e){let e=n[ui("0xd")];for(;e&&e[ui("0x21")]("listIndent")>n[ui("0x21")](ui("0x5"));)t[ui("0x32")](e),e=e[ui("0xd")]}return Array[ui("0x2e")](t)}(o))}))}}n.enableCommand(ui("0x31"),r(ui("0x31"))),n.enableCommand(ui("0x1d"),r(ui("0x1d"))),o&&n[ui("0xc")](ui("0x23"),r(ui("0x23"))),n[ui("0xc")]("indentList",s(ui("0x34"))),n[ui("0xc")](ui("0x3f"),s(ui("0x3f"))),o&&n.enableCommand(ui("0x2"),(()=>{const t=e[ui("0x39")].get(ui("0x2")),o=Array.from(t[ui("0x29")]);o[ui("0x1e")]((e=>e.getAttribute("todoListChecked")!=t[ui("0x2b")])),e[ui("0x38")].change((()=>{for(const e of o)n[ui("0x2a")](e,{commandName:ui("0x2"),commandParams:[{forceValue:!t.value}]})}))})),n._descriptionFactory[ui("0x2f")]("listItem",(e=>Yo(t,ui("0x28"),e))),n._descriptionFactory[ui("0x10")]((e=>{const{data:n}=e;if(n){if(ui("0x31")==n[ui("0x20")]||ui("0x1d")==n.commandName||"todoList"==n.commandName)switch(n.commandName[ui("0x11")](ui("0x3e"),"")){case ui("0x14"):return o(Yo(t,ui("0x18")));case ui("0x2d"):return o(Yo(t,ui("0x8")));case ui("0x3d"):return o(Yo(t,ui("0x4")))}if(ui("0x34")==n[ui("0x20")])return{type:"format",content:Yo(t,"*Indent:* %0",Yo(t,ui("0x28")))};if(ui("0x3f")==n[ui("0x20")])return{type:"format",content:Yo(t,ui("0x33"),Yo(t,ui("0x28")))};if("checkTodoList"==n[ui("0x20")])return n.commandParams[0].forceValue?{type:ui("0x1b"),content:Yo(t,ui("0x30"))}:{type:"format",content:Yo(t,ui("0x3"))}}function o(e){return{type:ui("0x1b"),content:Yo(t,ui("0x19"),e)}}}))}}function gi(e){const t=e.getAttribute(ui("0x5"));if(0==t)return e;let n=e;for(;e[ui("0x15")]&&e.previousSibling.is(ui("0x16"),"listItem");){const o=e[ui("0x15")][ui("0x21")](ui("0x5"));if(o==t)n=e[ui("0x15")];else if(o<t)break;e=e[ui("0x15")]}return n}function mi(e){const t=[];if(e.is(ui("0x16"),ui("0x24"))&&e[ui("0x21")](ui("0x5"))>0){let n=e.nextSibling;for(;n&&"listItem"==n[ui("0x3a")]&&n[ui("0x21")](ui("0x5"))==e.getAttribute(ui("0x5"));)t[ui("0x25")](n),n=n[ui("0xd")]}return t}const fi=["get","attribute:url:media","conversion","ELEMENT_MEDIA","dataDowncast","stop","locale","editor","_descriptionFactory","afterInit","has","createEmptyElement","data","showSuggestionHighlights","mediaEmbed","MediaEmbedEditing","TrackChangesEditing","high","enableCommand","media","for","registerElementLabel","plugins","downcastDispatcher"];var hi,ki;hi=fi,ki=497,function(e){for(;--e;)hi.push(hi.shift())}(++ki);const bi=function(e,t){return fi[e-=0]};class pi extends e.Plugin{[bi("0x10")](){const e=this[bi("0xe")];if(!e[bi("0x5")][bi("0x11")](bi("0x16")))return;const t=e[bi("0x5")][bi("0x7")](bi("0x17")),n=e[bi("0xd")];t[bi("0x1")](bi("0x15")),t[bi("0xf")][bi("0x4")](bi("0x2"),(e=>Yo(n,bi("0xa"),e))),e[bi("0x9")][bi("0x3")](bi("0xb")).elementToElement({model:"media",view:(e,{writer:t,options:n})=>{if(n[bi("0x14")])return t[bi("0x12")]("div")},converterPriority:bi("0x0")}),e[bi("0x13")][bi("0x6")].on(bi("0x8"),((e,t,n)=>{n.options.showSuggestionHighlights&&e[bi("0xc")]()}),{priority:"high"})}}const _i=["TrackChangesEditing","get","MentionEditing","plugins","afterInit","has","enableCommand","mention"];var vi,Ei;vi=_i,Ei=297,function(e){for(;--e;)vi.push(vi.shift())}(++Ei);const yi=function(e,t){return _i[e-=0]};class Ti extends e.Plugin{[yi("0x3")](){const e=this.editor;e[yi("0x2")][yi("0x4")](yi("0x1"))&&e[yi("0x2")][yi("0x0")](yi("0x7"))[yi("0x5")](yi("0x6"))}}const Ci=["locale","plugins","enableCommand","editor","afterInit","registerElementLabel","PageBreakEditing","_descriptionFactory","TrackChangesEditing","pageBreak","get"];var wi,Ai;wi=Ci,Ai=224,function(e){for(;--e;)wi.push(wi.shift())}(++Ai);const Ri=function(e,t){return Ci[e-=0]};class Ii extends e.Plugin{[Ri("0x0")](){const e=this[Ri("0xa")];if(!e[Ri("0x8")].has(Ri("0x2")))return;e[Ri("0x8")][Ri("0x6")](Ri("0x4"))[Ri("0x9")](Ri("0x5"));const t=e.plugins.get("TrackChangesEditing"),n=e[Ri("0x7")];t[Ri("0x3")][Ri("0x1")]("pageBreak",(e=>Yo(n,"ELEMENT_PAGE_BREAK",e)))}}const Si=["registerDescriptionCallback","plugins","get","name","schema","paragraph","mapper","downcastDispatcher","insertion","insert","TrackChangesEditing","commandName","insertParagraph","model","options","toViewPosition","format","markerRange","enableCommand","*Change to:* %0","isTouching","parent","selection","nodeAfter","ck-suggestion-marker--active","$text","activeMarkers","_descriptionFactory","filter","start","locale","editing","afterInit","includes","Paragraph","getItemLabel","ELEMENT_PARAGRAPH","markerName","createUIElement","bindElementToMarker","*Insert:* %0","addMarker:suggestion:insertion","getSelectedBlocks","change","writer","markBlockFormat","highest","getFirstRange","has","checkChild","document","isBlock","data","isLimit","editor"];var Mi,Ni;Mi=Si,Ni=152,function(e){for(;--e;)Mi.push(Mi.shift())}(++Ni);const Li=function(e,t){return Si[e-=0]};class Oi extends e.Plugin{[Li("0x2d")](){const e=this[Li("0xc")];if(!e.plugins[Li("0x6")](Li("0x2f")))return;const t=e[Li("0x2b")],n=e[Li("0xe")][Li("0xf")](Li("0x17"));n[Li("0x28")].registerElementLabel(Li("0x12"),(e=>Yo(t,"ELEMENT_PARAGRAPH",e))),n[Li("0x1f")]("paragraph",((t,o={})=>{const r=e[Li("0x1a")][Li("0x8")],s=o[Li("0x23")]||r[Li("0x23")],i=Array.from(s[Li("0x0")]())[Li("0x29")]((e=>{return t=e,(n=this[Li("0xc")][Li("0x1a")][Li("0x11")]).checkChild(t[Li("0x22")],Li("0x12"))&&!n.isObject(t)&&"paragraph"!=t[Li("0x10")];var t,n}));e.model[Li("0x1")]((()=>{for(const e of i)n[Li("0x3")](e,{commandName:"paragraph",commandParams:[],formatGroupId:"blockName"},fr(e))}))})),n[Li("0x28")][Li("0xd")]((e=>{const{data:n}=e;if(n&&"paragraph"==n[Li("0x18")])return{type:Li("0x1d"),content:Yo(t,Li("0x20"),Yo(t,Li("0x31")))}})),n[Li("0x1f")](Li("0x19")),e[Li("0x2c")][Li("0x14")].on(Li("0x36"),Fi(e),{priority:Li("0x4")}),e[Li("0xa")].downcastDispatcher.on("addMarker:suggestion:insertion",((t,n,o)=>{o[Li("0x1b")].showSuggestionHighlights&&Fi(e,{showActiveMarker:!1})(t,n,o)}),{priority:Li("0x4")});const o=n[Li("0x28")];o[Li("0xd")]((n=>{if(Li("0x15")!==n.type)return;const{start:r,end:s}=n[Li("0x5")]();if(!r[Li("0x21")](s)||!r.nodeAfter)return;const i=e[Li("0x1a")][Li("0x11")],a=r[Li("0x24")];return i[Li("0x9")](a)&&!i[Li("0xb")](a)&&i[Li("0x7")](a,Li("0x26"))?{type:Li("0x15"),content:Yo(t,Li("0x35"),o[Li("0x30")](a,1))}:void 0}))}}function Fi(e,{showActiveMarker:t=!0}={}){return(n,o,r)=>{const s=e[Li("0xe")][Li("0xf")](Li("0x17")),i=o.markerRange[Li("0x2a")],a=o[Li("0x1e")].end,c=e[Li("0x1a")][Li("0x11")];if(!i[Li("0x21")](a)||!i[Li("0x24")])return;const x=i[Li("0x24")];if(c[Li("0x9")](x)&&!c[Li("0xb")](x)&&c[Li("0x7")](x,Li("0x26"))){if(!r.consumable.consume(o[Li("0x1e")],n[Li("0x10")]))return;const e=r.writer[Li("0x33")]("span",{class:"ck-suggestion-marker-split"}),i=r[Li("0x13")][Li("0x1c")](a);t&&s[Li("0x27")][Li("0x2e")](o[Li("0x32")])&&r[Li("0x2")].addClass(Li("0x25"),e),r[Li("0x2")][Li("0x16")](i,e),r[Li("0x13")][Li("0x34")](e,o[Li("0x32")])}}}const Pi=["getItems","removeFormat","get","change","document","getAttributes","markInlineFormat","format","afterInit","registerDescriptionCallback","plugins","*Remove all formatting*","createRangeOn","enableCommand","editor","selection","locale","getAttributeProperties","getRanges","isCollapsed","schema","from","isFormatting","_descriptionFactory","model","RemoveFormatEditing"];var Di,Bi;Di=Pi,Bi=250,function(e){for(;--e;)Di.push(Di.shift())}(++Bi);const ji=function(e,t){return Pi[e-=0]};class Ui extends e.Plugin{[ji("0x12")](){const e=this[ji("0x18")];if(!e[ji("0x14")].has(ji("0x9")))return;const t=e.plugins[ji("0xc")]("TrackChangesEditing");t[ji("0x17")](ji("0xb"),(n=>{const o=e.model[ji("0xe")][ji("0x19")];o[ji("0x3")]?n():e[ji("0x8")][ji("0xd")]((()=>{const n=Array[ji("0x5")](o[ji("0x2")]());for(const o of n)for(const n of o[ji("0xa")]())Hi(n,e.model[ji("0x4")])&&t[ji("0x10")](e[ji("0x8")][ji("0x16")](n),{commandName:ji("0xb"),commandParams:[]})}))})),t[ji("0x7")][ji("0x13")]((t=>{const{data:n}=t;if(n&&ji("0xb")==n.commandName)return{type:ji("0x11"),content:Yo(e[ji("0x0")],ji("0x15"))}}))}}function Hi(e,t){for(const[n]of e[ji("0xf")]()){const e=t[ji("0x1")](n);if(e&&e[ji("0x6")])return!0}return!1}const Gi=["enableCommand","editor","get","trackChanges","acceptSelectedSuggestions","discardAllSuggestions","TrackChangesEditing","discardSuggestion","plugins","RestrictedEditingModeEditing","goToPreviousRestrictedEditingException","acceptSuggestion","afterInit"];var Vi,zi;Vi=Gi,zi=144,function(e){for(;--e;)Vi.push(Vi.shift())}(++zi);const Wi=function(e,t){return Gi[e-=0]};class Ki extends e.Plugin{[Wi("0xb")](){const e=this[Wi("0x0")];if(!e[Wi("0x7")].has(Wi("0x8")))return;const t=e.plugins.get(Wi("0x5"));t[Wi("0xc")](Wi("0x9")),t[Wi("0xc")]("goToNextRestrictedEditingException");const n=e[Wi("0x7")][Wi("0x1")](Wi("0x8"));n[Wi("0xc")](Wi("0x2")),n[Wi("0xc")](Wi("0xa")),n[Wi("0xc")](Wi("0x6")),n[Wi("0xc")]("acceptAllSuggestions"),n.enableCommand(Wi("0x4")),n[Wi("0xc")](Wi("0x3")),n.enableCommand("discardSelectedSuggestions")}}const qi=["toViewPosition","addClass","TrackChangesEditing","ELEMENT_LINE_BREAK","addMarker:suggestion:deletion","markerRange","mapper","name","createPositionBefore","ck-suggestion-marker--active","merge","model","get","insert","consumable","plugins","requires","addMarker:suggestion","editing","test","createUIElement","high","downcastDispatcher","markerName","showSuggestionHighlights","includes","bindElementToMarker","shiftEnter","writer","split","_descriptionFactory","enableCommand","deletion","softBreak","init","data"];var Xi,Zi;Xi=qi,Zi=177,function(e){for(;--e;)Xi.push(Xi.shift())}(++Zi);const $i=function(e,t){return qi[e-=0]};class Ji extends e.Plugin{static get[$i("0x13")](){return[rs.ShiftEnter]}[$i("0x1")](){const e=this.editor,t=e[$i("0x12")][$i("0xf")]($i("0x5"));t[$i("0x22")]($i("0x1e")),e[$i("0x15")][$i("0x19")].on("addMarker:suggestion:insertion",Qi(e),{priority:$i("0x18")}),e.editing[$i("0x19")].on($i("0x7"),Qi(e),{priority:$i("0x18")}),e[$i("0x2")][$i("0x19")].on($i("0x14"),((t,n,o)=>{o.options[$i("0x1b")]&&Qi(e,{showActiveMarker:!1})(t,n,o)})),t[$i("0x21")].registerElementLabel($i("0x0"),(t=>Yo(e.locale,$i("0x6"),t)))}}function Qi(e,{showActiveMarker:t=!0}={}){return(n,o,r)=>{const s=e[$i("0x12")][$i("0xf")]("TrackChangesEditing");if(!r[$i("0x11")][$i("0x16")](o[$i("0x8")],n[$i("0xa")]))return;const i=e[$i("0xe")];for(const e of o[$i("0x8")].getItems()){if(!e.is("element",$i("0x0")))continue;const n=$i("0x23")==o[$i("0x1a")][$i("0x20")](":")[1]?$i("0xd"):"split",a=r.writer[$i("0x17")]("span",{class:"ck-suggestion-marker-"+n}),c=r[$i("0x9")][$i("0x3")](i[$i("0xb")](e));t&&s.activeMarkers[$i("0x1c")](o[$i("0x1a")])&&r[$i("0x1f")][$i("0x4")]($i("0xc"),a),r[$i("0x1f")][$i("0x10")](c,a),r[$i("0x9")][$i("0x1d")](a,o.markerName)}}}const Yi=["commands","commandParams","change","isCollapsed","model","registerDescriptionCallback","selection","StandardEditingModeEditing","locale","TrackChangesEditing","has","getRanges","markInlineFormat","forceValue","format","enableCommand","editor","afterInit","plugins","document","from","restrictedEditingException","commandName","get","value"];var ea,ta;ea=Yi,ta=468,function(e){for(;--e;)ea.push(ea.shift())}(++ta);const na=function(e,t){return Yi[e-=0]};class oa extends e.Plugin{[na("0x18")](){const e=this[na("0x17")],t=e[na("0xb")],n=e[na("0xf")];if(!e.plugins[na("0x11")](na("0xe")))return;const o=e[na("0x0")][na("0x5")](na("0x10")),r=na("0x3"),s=e[na("0x7")].get(r);o[na("0x16")](r,((e,n={})=>{const i=t[na("0x1")][na("0xd")];if(i[na("0xa")])return void e(n);const a=void 0!==n[na("0x14")]?n[na("0x14")]:!s[na("0x6")];t[na("0x9")]((()=>{const e=Array[na("0x2")](i[na("0x12")]());for(const n of e){const e=a?[n]:mr(r,n,t);for(const t of e)o[na("0x13")](t,{commandName:r,commandParams:[{forceValue:a}]})}}))})),o._descriptionFactory[na("0xc")]((e=>{const{data:t}=e;if(t&&t[na("0x4")]==r)return t[na("0x8")][0][na("0x14")]?{type:na("0x15"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:na("0x15"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const ra=["commandParams","Style","block","getItems","styleName","*Remove format:* %0","_descriptionFactory","markBlockFormat","enableCommand","getStyleDefinition","config","get","find","TrackChangesEditing","inline","every","from","afterInit","DataSchema","classes","createRangeOn","modelElements","style","isBlock","markInlineFormat","format","getRangesWithClasses","add","getRanges","style.definitions","has","plugins","model","commands","locale","selection","element","push","editor","isCollapsed","style:","registerDescriptionCallback","includes","document","commandName","name","change"];var sa,ia;sa=ra,ia=346,function(e){for(;--e;)sa.push(sa.shift())}(++ia);const aa=function(e,t){return ra[e-=0]};class ca extends e.Plugin{[aa("0x0")](){const e=this[aa("0x15")];if(!e[aa("0xe")][aa("0xd")](aa("0x1f")))return;const t=e[aa("0x10")].get(aa("0x5")),n=e[aa("0xe")][aa("0x29")](aa("0x2b")),o=e[aa("0x11")],r=e.plugins.get(aa("0x1")),s=function(e,t=[]){const n={block:[],inline:[]};for(const o of t){const t=[],r=[];for(const n of e.getDefinitionsForView(o.element))n.isBlock?t.push(n.model):r.push(n.model);t.length?n.block.push({...o,modelElements:t,isBlock:!0}):n.inline.push({...o,ghsAttributes:r})}return n}(r,e[aa("0x28")][aa("0x29")](aa("0xc")));n[aa("0x26")](aa("0x5"),((o,{styleName:i})=>{const a=e[aa("0xf")][aa("0x1a")][aa("0x12")],c=this[aa("0x27")](i,s);if(!c)return;if(!t.enabledStyles.includes(i))return;if(a[aa("0x16")]&&!c[aa("0x6")])return void o({styleName:i});const x=!t.value.includes(c[aa("0x1c")]);if(c.isBlock){const t=function(e,t){const n=new Set;for(const o of e){const e=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of e)if(t[aa("0x19")](o[aa("0x1c")])){n[aa("0xa")](o);break}}return n}(a.getSelectedBlocks(),c[aa("0x4")]);e.model[aa("0x1d")]((()=>{for(const e of t)n[aa("0x25")](e,{commandName:aa("0x5"),commandParams:[{styleName:i,forceValue:x}],formatGroupId:aa("0x17")+i})}))}else{let t=Array[aa("0x2e")](a[aa("0xb")]());if(!x){const n=Array[aa("0x2e")](r.getDefinitionsForView(c[aa("0x13")],!1))[0][aa("0xf")],o=[];for(const r of t){const t=this[aa("0x9")](e.model,r,c.classes,n);o[aa("0x14")](...t)}t=o}e[aa("0xf")][aa("0x1d")]((()=>{for(const e of t)n[aa("0x7")](e,{commandName:aa("0x5"),commandParams:[{styleName:i,forceValue:x}]})}))}})),n[aa("0x24")][aa("0x18")]((e=>{const{data:t}=e;if(t&&aa("0x5")===t[aa("0x1b")])return t.commandParams[0].forceValue?{type:aa("0x8"),content:Yo(o,"*Format:* %0",t[aa("0x1e")][0][aa("0x22")].toLowerCase())}:{type:aa("0x8"),content:Yo(o,aa("0x23"),t[aa("0x1e")][0][aa("0x22")].toLowerCase())}}))}getStyleDefinition(e,t){let n=t[aa("0x20")].find((t=>t[aa("0x1c")]===e));return n||(n=t[aa("0x2c")][aa("0x2a")]((t=>t.name===e))),n}[aa("0x9")](e,t,n,o){const r=[];for(const s of t[aa("0x21")]()){const t=s.getAttribute(o);t&&n[aa("0x2d")]((e=>t[aa("0x2")][aa("0x19")](e)))&&r.push(e[aa("0x3")](s))}return r}}const xa=["_tableSuggestions","MIN_SAFE_INTEGER","end","MAX_SAFE_INTEGER","startsWith","removeTableColumn","ELEMENT_TABLE_ROW_WITH_TEXT","ELEMENT_TABLE_ROW","ELEMENT_TABLE_COLUMN_WITH_TEXT","writer","registerPostFixer","refresh","fromRange","add","rowspan","subType","deletion","min","_acceptFormatSuggestionCallbackFactory","name","detach","textProxy","downcastDispatcher","$graveyard","ELEMENT_TABLE","*Remove:* %0","maxRow","forceValue","every","_tablePostFixingSubtypes","hasAttribute","ELEMENT_TABLE_WITH_TEXT","type","highest","locale","commands","_getCoordsForCells","enqueueChange","getAttribute","enableCommand","low","execute","insertion","insertTable","getRowIndexes","createRangeOn","tablePaste","isEqual","change","table","max","join","*Insert:* %0","left","oldRange","findAncestor","TrackChangesEditing","TableUtils","discard","accept","getRanges","model","addRange","afterInit","getCellLocation","editor","getContainedElement","tableCell","TableEditing","maxColumn","classes","removeTableRow","insertTableColumnRight","_getSuggestionCoords","map","colspan","getColumnIndexes","minRow","setSelection","some","insert","getChanges","length","selection","get","last","tableRow","start","getItems","push","registerElementLabel","_suggestionFactory","rootName","registerCustomCallback","position","ELEMENT_TABLE_COLUMN","getSelectionAffectedTableCells","first","registerDescriptionCallback","getSuggestion","insertTableRowBelow","document","_descriptionFactory","_setupColumnsRowsFixing","createTableWalker","differ","removeClass","values","filter","from","mapper","showSuggestionHighlights","order","has","batch","substr","tableColumn","plugins","item","data","toViewElement","isInContent","markMultiRangeDeletion","addMarker:suggestion","cell","toLowerCase","root","nodeAfter","selectTableColumn"];var la,ua;la=xa,ua=325,function(e){for(;--e;)la.push(la.shift())}(++ua);const da=function(e,t){return xa[e-=0]};class ga extends e.Plugin{constructor(e){super(e),this[da("0x5b")]=["tableRow",da("0x31")]}[da("0x7d")](){const e=this[da("0x7f")],t=e[da("0x7b")][da("0x22")][da("0x10")];if(!e[da("0x32")][da("0x2e")](da("0x1")))return;const n=e[da("0x60")],o=e[da("0x32")][da("0x11")]("TrackChangesEditing"),r=e[da("0x32")][da("0x11")](da("0x77"));o[da("0x23")][da("0x17")](da("0x6f"),(e=>Yo(n,da("0x56"),e))),this[da("0x24")](),o[da("0x65")](da("0x69")),o[da("0x65")]("selectTableRow"),o[da("0x65")](da("0x3d"));for(const n of["insertTableRowAbove",da("0x21")]){const s=e.commands[da("0x11")](n);o[da("0x65")](n,(n=>{e[da("0x7b")][da("0x6e")]((e=>{n();const i="above"===s[da("0x2d")],a=r[da("0x1d")](t),c=r[da("0x6a")](a),x=i?c[da("0x1e")]-1:c[da("0x12")]+1,l=a[0][da("0x75")]("table"),u=r[da("0x25")](l,{startRow:x,endRow:x}),d=Array[da("0x2a")](u)[da("0x7")]((t=>e[da("0x6b")](t[da("0x39")])));o.markMultiRangeInsertion(d,da("0x13"))}))}))}for(const n of["insertTableColumnLeft",da("0x5")]){const s=e[da("0x61")][da("0x11")](n);o.enableCommand(n,(n=>{e.model[da("0x6e")]((e=>{n();const i=da("0x73")===s[da("0x2d")],a=r[da("0x1d")](t),c=r[da("0x9")](a),x=i?c[da("0x1e")]-1:c.last+1,l=a[0].findAncestor(da("0x6f")),u=r[da("0x25")](l,{startRow:0,column:x,includeAllSlots:!1}),d=Array.from(u)[da("0x7")]((t=>e[da("0x6b")](t[da("0x39")])));o.markMultiRangeInsertion(d,da("0x31"))}))}))}for(const n of["removeTableRow","removeTableColumn"]){const s=n[da("0x30")](11),i=s[da("0x3a")](),a=i[da("0x30")](0,3)+"span",c=da("0x6f")+s,x=da("0x4f")+s,l=da("0x70")+s;o[da("0x65")](n,(()=>{e[da("0x7b")][da("0x6e")]((e=>{const s=r[da("0x1d")](t),u=s[0].findAncestor(da("0x6f"));let d;if(da("0x4")==n){const e=r[da("0x6a")](s);d={startRow:e.first,endRow:e[da("0x12")],includeAllSlots:!0}}else{const e=r.getColumnIndexes(s);d={startColumn:e[da("0x1e")],endColumn:e[da("0x12")],includeAllSlots:!0}}const g=r[da("0x25")](u,d),m=Array[da("0x2a")](g)[da("0x7")]((({cell:e})=>e)),f=ma(m.filter((e=>e[da("0x5c")](a)))),h=ma(m[da("0x29")]((e=>!e[da("0x5c")](a)))).map((t=>e[da("0x6b")](t))),k=o[da("0x37")](h,c);if(k&&(da("0x13")==k[da("0x4d")]||da("0x31")==k[da("0x4d")])){const t=this[da("0x6")](k);for(const n of f){const o=e[da("0x6b")](n),s=r[da("0x7e")](n),c=n.getAttribute(a)-1,u=t[x],d=t[l];u<=s[i]&&s[i]+c<=d&&k[da("0x7c")](o)}}}))}))}function s(n){const o=Array[da("0x2a")](t[da("0x7a")]())[da("0x7")]((e=>i.LiveRange.fromRange(e)));e[da("0x7b")][da("0x6e")]((t=>{const r=t[da("0x2f")];n=n.filter((e=>da("0x55")!=e[da("0x3b")][da("0x19")])),t[da("0xb")](n),e.commands[da("0x11")](da("0x4"))[da("0x49")](),e.execute("removeTableRow",{forceDefaultExecution:!0}),e[da("0x7b")].enqueueChange((()=>{e.model[da("0x63")](r,(e=>{const t=o[da("0x29")]((e=>"$graveyard"!=e[da("0x3b")][da("0x19")]));t.length>0&&e.setSelection(t);for(const e of o)e[da("0x52")]()}))}))}))}function c(n){e[da("0x7b")][da("0x6e")]((o=>{const r=Array[da("0x2a")](t[da("0x7a")]())[da("0x7")]((e=>i.LiveRange[da("0x4a")](e))),s=[];for(const e of n)for(const t of e.getItems({shallow:!0}))s.push(t);for(const t of s)da("0x55")!=t[da("0x3b")].rootName&&(o[da("0xb")](o.createPositionAt(t,0)),e[da("0x61")][da("0x11")]("removeTableColumn").refresh(),e[da("0x67")](da("0x43"),{forceDefaultExecution:!0}));const a=r[da("0x29")]((e=>da("0x55")!=e[da("0x3b")][da("0x19")]));a.length>0&&o[da("0xb")](a);for(const e of r)e[da("0x52")]()}))}function x(e,t){return t[da("0x5a")]((t=>e[da("0xc")]((e=>e.end[da("0x6d")](t[da("0x14")])||t.end.isEqual(e[da("0x14")])))))}function l(e,t){return e[da("0xc")]((e=>t.some((t=>e[da("0x40")].isTouching(t[da("0x14")])))))}e[da("0x34")][da("0x54")].on(da("0x38"),((e,t,n)=>{if(!n.options[da("0x2c")])return;const o=t[da("0x33")];if(!o)return;const r=n[da("0x2b")][da("0x35")](o);function s(e){return Array.isArray(e)?e:[e]}r&&da("0x0")===o.name&&(0,a.setHighlightHandling)(r,n[da("0x47")],((e,t,n)=>n.addClass(s(t[da("0x3")]),e)),((e,t,n)=>n[da("0x27")](s(t[da("0x3")]),e)))}),{priority:da("0x5f")}),o[da("0x23")][da("0x1f")]((e=>{if(da("0x68")!=e[da("0x5e")]&&da("0x4e")!=e.type)return;const t=e[da("0x80")]();if(null!=t&&t.is("element",da("0x6f"))){if("insertion"==e[da("0x5e")]){const t=e[da("0x15")]()[da("0x29")]((e=>e.is(da("0x53"))))[da("0x7")]((e=>e.data));if(t.length)return{type:da("0x68"),content:Yo(n,da("0x72"),Yo(n,da("0x5d"),'"'+t[da("0x71")](" ")+'"'))}}if("deletion"==e[da("0x5e")]){const t=e[da("0x15")]()[da("0x29")]((e=>e.is(da("0x53"))))[da("0x7")]((e=>e.data));if(t[da("0xf")])return{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,da("0x5d"),'"'+t.join(" ")+'"'))}}}})),o[da("0x23")][da("0x1f")]((e=>{if(da("0x13")==e.subType){const t=e[da("0x15")]()[da("0x29")]((e=>e.is(da("0x53"))))[da("0x7")]((e=>e.data)),o=this[da("0x6")](e),r=o[da("0x58")]-o[da("0xa")]+1;if(da("0x68")==e[da("0x5e")])return t.length?{type:da("0x68"),content:Yo(n,da("0x72"),Yo(n,da("0x44"),[r,'"'+t[da("0x71")](" ")+'"']))}:{type:da("0x68"),content:Yo(n,da("0x72"),Yo(n,da("0x45"),r))};if(da("0x4e")==e[da("0x5e")])return t[da("0xf")]?{type:"deletion",content:Yo(n,da("0x57"),Yo(n,da("0x44"),[r,'"'+t.join(" ")+'"']))}:{type:da("0x4e"),content:Yo(n,da("0x57"),Yo(n,"ELEMENT_TABLE_ROW",r))}}if("tableColumn"==e[da("0x4d")]){const t=e[da("0x15")]()[da("0x29")]((e=>e.is("textProxy")))[da("0x7")]((e=>e[da("0x34")])),o=this[da("0x6")](e),r=o[da("0x2")]-o.minColumn+1;if(da("0x68")==e[da("0x5e")])return t.length?{type:da("0x68"),content:Yo(n,da("0x72"),Yo(n,da("0x46"),[r,'"'+t.join(" ")+'"']))}:{type:da("0x68"),content:Yo(n,da("0x72"),Yo(n,da("0x1c"),r))};if("deletion"==e.type)return t[da("0xf")]?{type:"deletion",content:Yo(n,da("0x57"),Yo(n,da("0x46"),[r,'"'+t[da("0x71")](" ")+'"']))}:{type:"deletion",content:Yo(n,da("0x57"),Yo(n,da("0x1c"),r))}}})),o[da("0x18")][da("0x1a")](da("0x68"),"tableRow",da("0x78"),s),o[da("0x18")].registerCustomCallback("deletion",da("0x13"),"accept",s),o[da("0x18")].registerCustomCallback(da("0x68"),da("0x31"),da("0x78"),c),o._suggestionFactory[da("0x1a")](da("0x4e"),"tableColumn",da("0x79"),c),o._suggestionFactory[da("0x1a")](da("0x68"),da("0x31"),da("0x71"),x),o._suggestionFactory[da("0x1a")](da("0x4e"),da("0x31"),da("0x71"),x),o[da("0x18")][da("0x1a")](da("0x68"),da("0x13"),"join",l),o[da("0x18")][da("0x1a")](da("0x4e"),da("0x13"),da("0x71"),l)}[da("0x50")](){const e=this[da("0x7f")],t=e[da("0x7b")][da("0x22")][da("0x10")];return(n,o)=>{e[da("0x7b")][da("0x6e")]((r=>{const{commandName:s,commandParams:a}=o;let c=n[0][da("0x40")].nodeBefore;a&&a[0]&&!1===a[0][da("0x59")]&&(c=n[0][da("0x14")][da("0x3c")]);const x=r.createRangeIn(c);if("$graveyard"==x.root.rootName)return;const l=Array[da("0x2a")](t[da("0x7a")]())[da("0x7")]((e=>i.LiveRange.fromRange(e)));r[da("0xb")](x),e[da("0x61")][da("0x11")](s).refresh(),a[da("0x16")]({forceDefaultExecution:!0}),e[da("0x67")](s,...a);const u=l.filter((e=>da("0x55")!=e[da("0x3b")].rootName));u[da("0xf")]>0&&r[da("0xb")](u);for(const e of l)e[da("0x52")]()}))}}[da("0x62")](e){const t=this[da("0x7f")][da("0x32")][da("0x11")](da("0x77"));let n=Number[da("0x41")],o=Number[da("0x3f")],r=Number.MAX_SAFE_INTEGER,s=Number[da("0x3f")];for(const i of e){if("$graveyard"==i[da("0x3b")].rootName)continue;const{row:e,column:a}=t[da("0x7e")](i),c=i[da("0x5c")](da("0x4c"))?i[da("0x64")]("rowspan")-1:0,x=i[da("0x5c")](da("0x8"))?i[da("0x64")](da("0x8"))-1:0;n=e<n?e:n,o=e+c>o?e+c:o,r=a<r?a:r,s=a+x>s?a+x:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[da("0x24")](){const e=this[da("0x7f")],t=e.plugins[da("0x11")](da("0x76")),n=e[da("0x32")].get("TableUtils");this[da("0x3e")]=new Set,e[da("0x7b")].document.on("change:data",(()=>{const n=Array[da("0x2a")](e[da("0x7b")][da("0x22")][da("0x26")].getChangedMarkers());for(const{name:e,data:o}of n){const{group:n,id:r,subType:s}=t._splitMarkerName(e);if("suggestion"!=n)continue;if(null!=o[da("0x74")])continue;const i=t[da("0x20")](r);this[da("0x5b")].includes(s)&&this[da("0x3e")][da("0x4b")](i)}}),{priority:da("0x66")});const o=(e,t)=>{let o=!1;const r=t.createRangeOn(e),s=e.findAncestor("table"),i=n[da("0x7e")](e);for(const t of this[da("0x3e")]){const n=t.subType,a=n[da("0x42")](da("0x6c")),c=n.substr(a?10:5),x=c.toLowerCase(),l=x.substr(0,3)+"span",u=da("0x4f")+c,d=da("0x70")+c;if(!t[da("0x36")])continue;if(s!=t.getFirstRange()[da("0x14")][da("0x75")]("table"))continue;if(t.isIntersectingWithRange(r))continue;const g=e[da("0x5c")](l)?e[da("0x64")](l)-1:0,m=this[da("0x6")](t),f=m[u],h=m[d];f<=i[x]&&i[x]+g<=h&&(t[da("0x7c")](r),o=!0)}return o};e[da("0x7b")].document[da("0x48")]((t=>{let n=!1;for(const r of e[da("0x7b")].document[da("0x26")][da("0xe")]())if(da("0xd")==r[da("0x5e")])if("tableRow"==r[da("0x51")])for(const e of r[da("0x1b")].nodeAfter.getChildren())n=n||o(e,t);else da("0x0")==r.name&&(n=n||o(r[da("0x1b")].nodeAfter,t));return n}))}_getSuggestionCoords(e){return this[da("0x62")](e[da("0x7a")]()[da("0x7")]((e=>e[da("0x14")][da("0x3c")])))}}function ma(e){return Array[da("0x2a")](new Set(e)[da("0x28")]())}const fa=["getRanges","size","formatBlock","tableCell","mergeTableCellDown","set:isEnabled","splitTableCellHorizontally","stop","registerCustomCallback","TableEditing","rootName","getSelectionAffectedTableCells","TrackChangesEditing","_areMergableCells","commands","get","createRangeOn","TableUtils","table","model","*Split cell:* horizontally","detach","afterInit","_acceptFormatSuggestionCallbackFactory","commandName","_descriptionFactory","getAncestors","isInContent","change","registerDescriptionCallback","_areSelectedCellsMergable","markBlockFormat","push","filter","locale","*Split cell:* vertically","findAncestor","from","has","highest","map","low","return","_isForcedDefaultExecutionBlock","isEnabled","createTableWalker","mergeTableCells","mergeTableCellLeft","subType","_suggestionFactory","cell","find","forceDefaultExecution","format","refresh","*Merge cells*","add","length","setSelection","direction","accept","enableCommand","getCellLocation","element","containsRange","getFirstPosition","author","execute","deletion","selection","requires","editor","plugins","document","markMultiRangeBlockFormat","value","root","mergeTableCellUp","mergeTableCellRight","splitTableCellVertically","type","$graveyard"];var ha,ka;ha=fa,ka=205,function(e){for(;--e;)ha.push(ha.shift())}(++ka);const ba=function(e,t){return fa[e-=0]};class pa extends e.Plugin{static get[ba("0x1d")](){return[ga]}[ba("0x3f")](){const e=this[ba("0x1e")],t=e[ba("0x3c")].document[ba("0x1c")],n=e[ba("0x4b")];if(!e.plugins[ba("0x4f")](ba("0x32")))return;const o=e[ba("0x1f")].get("TrackChangesEditing"),r=e.plugins.get(ba("0x3a")),s=e.plugins.get(ga);s._tablePostFixingSubtypes[ba("0x49")](ba("0x5")),o[ba("0x14")](ba("0x5"),(()=>{const t=r[ba("0x34")](e.model[ba("0x20")][ba("0x1c")]);e[ba("0x3c")].change((()=>{o[ba("0x21")](t,{commandName:ba("0x5"),commandParams:[]},[],"mergeTableCells")}))})),e[ba("0x37")][ba("0x38")]("mergeTableCells").on(ba("0x1a"),((t,n)=>{e[ba("0x37")][ba("0x38")]("trackChanges")[ba("0x22")]&&(n[ba("0x10")]>0&&n[n[ba("0x10")]-1]&&n[n[ba("0x10")]-1][ba("0xb")]||o[ba("0x2")]||this._areSelectedCellsMergable()||t[ba("0x30")]())}),{priority:ba("0x50")});for(const t of[ba("0x24"),ba("0x25"),"mergeTableCellDown",ba("0x6")]){const n=e.commands[ba("0x38")](t);o[ba("0x14")](t,(()=>{const t=e[ba("0x3c")][ba("0x20")][ba("0x1c")][ba("0x18")]()[ba("0x43")]()[ba("0xa")]((e=>e.is(ba("0x16"),ba("0x2c")))),r=n[ba("0x22")];e[ba("0x3c")][ba("0x45")]((()=>{o[ba("0x21")]([t,r],{commandName:ba("0x5"),commandParams:[]},[],ba("0x5"))}))}))}for(const t of[ba("0x26"),ba("0x2f")]){const n=e[ba("0x37")].get(t);o[ba("0x14")](t,(()=>{const s=r[ba("0x34")](e[ba("0x3c")][ba("0x20")][ba("0x1c")])[0],i=s[ba("0x4d")](ba("0x3b")),{column:a,row:c}=r[ba("0x15")](s);let x=[];if("horizontally"==n[ba("0x12")]){const e=r[ba("0x4")](i,{startRow:c,endRow:c,includeAllSlots:!0});x=Array[ba("0x4e")](e)[ba("0x51")]((e=>e[ba("0x9")]))}else{const e=r[ba("0x4")](i,{column:a,includeAllSlots:!0});x=Array.from(e)[ba("0x51")]((e=>e.cell))}e[ba("0x3c")][ba("0x45")]((e=>{o[ba("0x48")](e[ba("0x39")](s),{commandName:t,commandParams:[]},x,t)}))}))}o._descriptionFactory.registerDescriptionCallback((e=>{const{data:t}=e;if(t)return"mergeTableCells"==t[ba("0x41")]?{type:"format",content:Yo(n,ba("0xe"))}:void 0})),o[ba("0x42")][ba("0x46")]((e=>{const{data:t}=e;if(t)return"splitTableCellVertically"==t[ba("0x41")]?{type:"format",content:Yo(n,ba("0x4c"))}:ba("0x2f")==t.commandName?{type:ba("0xc"),content:Yo(n,ba("0x3d"))}:void 0}));const a=s[ba("0x40")]();for(const e of["mergeTableCellUp",ba("0x25"),ba("0x2d"),ba("0x6")])o[ba("0x8")].registerCustomCallback(ba("0x2b"),e,ba("0x13"),a);for(const e of[ba("0x26"),ba("0x2f")])o[ba("0x8")][ba("0x31")](ba("0x2b"),e,ba("0x13"),a);o[ba("0x8")][ba("0x31")](ba("0x2b"),ba("0x5"),"accept",(n=>{e[ba("0x3c")][ba("0x45")]((o=>{const r=Array[ba("0x4e")](t[ba("0x29")]())[ba("0x51")]((e=>i.LiveRange.fromRange(e)));o[ba("0x11")](n),e[ba("0x37")][ba("0x38")](ba("0x5"))[ba("0xd")](),e.execute(ba("0x5"),{forceDefaultExecution:!0});const s=r[ba("0x4a")]((e=>ba("0x28")!=e[ba("0x23")][ba("0x33")]));s.length>0&&o[ba("0x11")](s);for(const e of r)e[ba("0x3e")]()}))}));for(const t of[ba("0x24"),ba("0x2d"),"mergeTableCellLeft",ba("0x25")]){const n=e[ba("0x37")][ba("0x38")](t);n.on(ba("0x2e"),((t,o,r)=>{if(r){const o=e[ba("0x3c")][ba("0x20")].selection[ba("0x18")]()[ba("0x43")]()[ba("0xa")]((e=>e.is("element",ba("0x2c"))));this[ba("0x36")](n[ba("0x22")],o)||(t[ba("0x1")]=!1,t.stop())}}),{priority:ba("0x0")})}}[ba("0x47")](){const e=this[ba("0x1e")][ba("0x37")][ba("0x38")](ba("0x5")),t=this.editor[ba("0x1f")].get(ba("0x3a"));if(!e[ba("0x3")])return!1;const n=t[ba("0x34")](this.editor.model[ba("0x20")].selection);for(const e of n)for(const t of n)if(e!=t&&!this._areMergableCells(e,t))return!1;return!0}[ba("0x36")](e,t){const n=this[ba("0x1e")].plugins[ba("0x38")](ba("0x35")),o=this[ba("0x1e")][ba("0x3c")][ba("0x39")](e),r=this.editor[ba("0x3c")][ba("0x39")](t),s=new Set,i=new Set;for(const e of n.getSuggestions())if(("insertion"==e[ba("0x27")]||ba("0x1b")==e.type||ba("0x5")==e[ba("0x7")])&&e[ba("0x44")])for(const t of e[ba("0x29")]())t[ba("0x17")](o,!0)&&s[ba("0xf")](e.type+":"+e[ba("0x19")].id),t[ba("0x17")](r,!0)&&i.add(e[ba("0x27")]+":"+e[ba("0x19")].id);if(s[ba("0x2a")]!=i[ba("0x2a")])return!1;for(const e of s)if(!i[ba("0x4f")](e))return!1;return!0}}const _a=["mapper","editing","nodeAfter","format","consume","stop","accept","isBefore","editor","childCount","createRange","registerCustomCallback","table","commands","FORMAT_REGULAR_ROW","markerNameToElements","createPositionBefore","model","item","downcastDispatcher","getChild","registerDescriptionCallback","setAttribute","getSuggestion","consumable","removeAttribute","last","options","createTableWalker","end","setTableColumnHeader","createPositionAfter","plugins","findAncestor","get","_splitMarkerName","highest","commandName","removeMarker:suggestion","index","name","markerName","nodeBefore","getAttribute","_acceptFormatSuggestionCallbackFactory","commandParams","setTableRowHeader","document","requires","headingColumns","value","change","cell","data-suggestion","ck-suggestion-marker-","enableCommand","_suggestionFactory","toViewElement","removeClass","first","data","afterInit","_descriptionFactory","TrackChangesEditing","getRowIndexes","selection","markBlockFormat","TableEditing","FORMAT_HEADER_COLUMN","unbindElementFromMarkerName","writer","parent","forceValue","formatBlock","headingRows","addClass","*Format:* %0","activeMarkers","ck-suggestion-marker--active","markerRange"];var va,Ea;va=_a,Ea=473,function(e){for(;--e;)va.push(va.shift())}(++Ea);const ya=function(e,t){return _a[e-=0]};class Ta extends e.Plugin{static get[ya("0x37")](){return[ga]}[ya("0x44")](){const e=this[ya("0xf")];if(!e[ya("0x27")].has(ya("0x4a")))return;const t=e.locale,n=e.plugins[ya("0x29")](ya("0x46")),o=e[ya("0x27")].get("TableUtils"),r=e[ya("0x27")].get(ga);function s({showActiveMarker:e=!0,setDataAttribute:t=!0}={}){return(r,s,i)=>{const{type:a,id:c}=n[ya("0x2a")](s[ya("0x30")]),x=n.getSuggestion(c);if(!x.data||ya("0x25")!=x[ya("0x43")][ya("0x2c")])return;if(s[ya("0x19")])return void r[ya("0xc")]();if(!i[ya("0x1f")][ya("0xb")](s[ya("0x6")],r[ya("0x2f")]))return;const l=s.markerRange.start[ya("0x9")],u=s.markerRange[ya("0x24")][ya("0x31")],d=l[ya("0x4e")].parent,{column:g}=o.getCellLocation(l),{column:m}=o.getCellLocation(u);for(let r=g;r<=m;r++){const x=o[ya("0x23")](d,{column:r,includeAllSlots:!1});for(const o of x){const r=o[ya("0x3b")],x=i[ya("0x7")][ya("0x40")](r);i.writer[ya("0x2")](ya("0x3d")+a,x),t&&i.writer[ya("0x1d")](ya("0x3c"),c,x),i.mapper.bindElementToMarker(x,s[ya("0x30")]),e&&(n[ya("0x4")].includes(s[ya("0x30")])?i[ya("0x4d")][ya("0x2")](ya("0x5"),x):i.writer[ya("0x41")](ya("0x5"),x))}}}}n[ya("0x3e")](ya("0x35"),((t,r)=>{const s=o.getSelectionAffectedTableCells(e[ya("0x18")][ya("0x36")].selection),i=o[ya("0x47")](s),a=s[0][ya("0x28")](ya("0x13")),c=a[ya("0x32")](ya("0x1"))||0,x=r&&null!==r[ya("0x4f")]?r[ya("0x4f")]:!e[ya("0x14")].get(ya("0x35"))[ya("0x39")],l=x?i[ya("0x21")]:i.first,u=a.getChild(l);let d;if(x){const t=a[ya("0x1b")](c);if(u.index<t[ya("0x2e")])return;d=e[ya("0x18")][ya("0x11")](e[ya("0x18")][ya("0x17")](t.getChild(0)),e[ya("0x18")][ya("0x26")](u[ya("0x1b")](u[ya("0x10")]-1)))}else{const t=a[ya("0x1b")](c-1);if(!t)return;d=e[ya("0x18")][ya("0x11")](e[ya("0x18")][ya("0x17")](u[ya("0x1b")](0)),e.model[ya("0x26")](t.getChild(t[ya("0x10")]-1)))}e[ya("0x18")][ya("0x3a")]((()=>{n[ya("0x49")](d,{commandName:ya("0x35"),commandParams:[{forceValue:x}]},[],"setTableRowHeader")}))})),n[ya("0x3e")](ya("0x25"),((t,o)=>{const r=e[ya("0x27")][ya("0x29")]("TableUtils"),s=r.getSelectionAffectedTableCells(e[ya("0x18")][ya("0x36")][ya("0x48")]),i=r.getColumnIndexes(s),a=s[0][ya("0x28")](ya("0x13")),c=a.getAttribute(ya("0x38"))||0,x=o&&null!==o[ya("0x4f")]?o[ya("0x4f")]:!e[ya("0x14")][ya("0x29")]("setTableColumnHeader").value;let l;const u=a.getChild(0),d=x?i[ya("0x21")]:i[ya("0x42")],g=r[ya("0x23")](a,{startRow:0,column:d,includeAllSlots:!1}),m=Array.from(g)[0][ya("0x3b")];if(x){const t=u.getChild(c);if(m[ya("0xe")](t))return;l=e[ya("0x18")][ya("0x11")](e[ya("0x18")].createPositionBefore(t),e[ya("0x18")][ya("0x26")](m))}else{const t=u.getChild(c-1);if(!t)return;l=e[ya("0x18")][ya("0x11")](e.model[ya("0x17")](m),e[ya("0x18")][ya("0x26")](t))}e[ya("0x18")].change((()=>{n[ya("0x49")](l,{commandName:ya("0x25"),commandParams:[{forceValue:x}]},[],ya("0x25"))}))})),e[ya("0x8")][ya("0x1a")].on("addMarker:suggestion",s(),{priority:ya("0x2b")}),e[ya("0x43")][ya("0x1a")].on("addMarker:suggestion",((e,t,n)=>{n[ya("0x22")].showSuggestionHighlights&&s({showActiveMarker:!1,setDataAttribute:!1})(e,t,n)}),{priority:"highest"}),e[ya("0x8")].downcastDispatcher.on(ya("0x2d"),((e,t,o)=>{const{type:r,id:s}=n[ya("0x2a")](t[ya("0x30")]),i=n[ya("0x1e")](s);if(!i[ya("0x43")]||ya("0x25")!=i[ya("0x43")][ya("0x2c")])return;const a=o[ya("0x7")][ya("0x16")](t[ya("0x30")]);if(a)for(const e of a)o[ya("0x4d")].removeClass(ya("0x3d")+r,e),o[ya("0x4d")].removeClass(ya("0x5"),e),o.writer[ya("0x20")](ya("0x3c"),e),o[ya("0x7")][ya("0x4c")](e,t[ya("0x30")])}),{priority:ya("0x2b")}),n[ya("0x45")][ya("0x1c")]((e=>{const{data:n}=e;if(n){if("setTableRowHeader"==n[ya("0x2c")]){const e=n[ya("0x34")][0][ya("0x4f")];return o(Yo(t,e?"FORMAT_HEADER_ROW":ya("0x15")))}if(ya("0x25")==n[ya("0x2c")]){const e=n[ya("0x34")][0][ya("0x4f")];return o(Yo(t,e?ya("0x4b"):"FORMAT_REGULAR_COLUMN"))}}function o(e){return{type:ya("0xa"),content:Yo(t,ya("0x3"),e)}}}));const i=r[ya("0x33")]();n._suggestionFactory.registerCustomCallback("formatBlock",ya("0x35"),ya("0xd"),i),n[ya("0x3f")][ya("0x12")](ya("0x0"),ya("0x25"),ya("0xd"),i)}}const Ca=["suggestion:formatBlock:tablePasteCell","newRange","content","previousSibling","model","TableClipboard","TableUtils","ck-suggestion-marker","documentSelection","reduce","filter","element","end","_splitMarkerName","some","afterInit","suggestion-td","markerAttributes","value","start","showSuggestionHighlights","commands","endRow","endColumn","dataDowncast","keys","getChild","push","from","get","subType","findAncestor","document","nextSibling","createRangeOn","tableCellBorderColor","tableCell","_tablePostFixingSubtypes","getMarkers","plugins","editingDowncast","getSelectionAffectedTableCells","removeMarkers","high","insertColumns","containsRange","tablePaste","columnInsertionIndexes","set","tableCellBackgroundColor","unwrap","deletion","fromEntries","requires","for","options","batch","getRanges","insertionRanges","tableCellVerticalAlignment","$graveyard","first","tablePasteCell","return","ck-suggestion-marker--active","isEqual","setAttributes","name","_getCoordsForCells","fill","getContainedElement","removeMarker","cell","getRows","removeRows","tableCellSuggestion","markMultiRangeInsertion","_replaceTableSlotCell","conversion","editing","getAttributes","createElement","wrap","tableCellHorizontalAlignment","ck-suggestion-marker-insertion","createRangeIn","trackChanges","hasSuggestion","column","_isForcedDefaultExecutionBlock","registerCustomCallback","remove","isEmpty","tablePasteColumn","createTableWalker","add","low","position","insertContent","insertion","tablePasteChainId","tableCellBorderStyle","getChanges","accept","forceDefaultExecution","tablePasteRow","insertRows","getSuggestions","tableCellPadding","columns","change","map","getItems","suggestionUnloaded","*Replace table cells*","getAllAdjacentSuggestions","_descriptionFactory","differ","register","isInContent","cells","attributes","Users","getShiftedBy","oldRange","table","registerDescriptionCallback","TrackChangesEditing","type","discard","getChildren","author","next","registerPostFixer","length","getChangedMarkers","last","markerName","markers","suggestionLoaded","deletionRanges","has","_createdBatches","selection","entries","find","markerToHighlight","elementToElement","formatBlock","suggestion","getColumns","startsWith","columnInsertionRanges","stop","editor","paragraph","includes","markMultiRangeBlockFormat","_suggestionFactory","insert","previous"];var wa,Aa;wa=Ca,Aa=345,function(e){for(;--e;)wa.push(wa.shift())}(++Aa);const Ra=function(e,t){return Ca[e-=0]},Ia=["tableCellBorderWidth",Ra("0xc"),Ra("0x4e"),Ra("0x3c"),Ra("0x24"),Ra("0x1a"),Ra("0x55")],Sa=Object.fromEntries(Ia.map((e=>[e,null])));class Ma extends e.Plugin{static get[Ra("0x1e")](){return[ga]}[Ra("0x99")](){const e=this[Ra("0x83")];if(!e.plugins.has("TableClipboard"))return;const n=e[Ra("0x10")][Ra("0x6")](Ra("0x68")),o=e[Ra("0x10")][Ra("0x6")](Ra("0x90")),r=e[Ra("0x10")][Ra("0x6")](ga),s=e[Ra("0x10")][Ra("0x6")](Ra("0x8f"));r[Ra("0xe")][Ra("0x4")](Ra("0x52"),"tablePasteColumn"),e[Ra("0x8e")].schema[Ra("0x5f")](Ra("0x34"),{allowIn:Ra("0xd"),allowContentOf:Ra("0xd"),isLimit:!0}),e.conversion[Ra("0x7c")]({model:Ra("0x34"),view:"suggestion-td"});let i=null;e[Ra("0x8e")].on("insertContent",((r,a)=>{const[c,x]=a,l=a[a[Ra("0x6f")]-1];l&&l[Ra("0x51")]||n[Ra("0x42")]||this[Ra("0x83")][Ra("0x9f")][Ra("0x6")](Ra("0x3f"))[Ra("0x9c")]&&function(e,t,n,o,r){if(t&&!t.is(Ra("0x92")))return!1;const s=r.getTableIfOnlyTableInContent(e,n);if(!s||!La(s,null,o))return!1;const i=o[Ra("0x12")](n.document[Ra("0x78")]);if(!i[Ra("0x6f")])return!1;const a=i[0].findAncestor(Ra("0x66")),c=o.getRowIndexes(i),x=o.getColumnIndexes(i),l={startRow:c[Ra("0x26")],endRow:c.last,startColumn:x.first,endColumn:x[Ra("0x71")]};return 1==i[Ra("0x6f")]&&(l[Ra("0xa0")]+=o[Ra("0x32")](s)-1,l[Ra("0x0")]+=o[Ra("0x7f")](s)-1),La(a,l,o)}(c,x,e.model,o,s)&&(r[Ra("0x82")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},e.model.change((()=>{e[Ra("0x8e")][Ra("0x4b")](a[0],a[1],a[2],a[3],{forceDefaultExecution:!0});const o=(0,t.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:c,deletionRanges:x,cells:l}=i;r.length&&n[Ra("0x35")](r,Ra("0x52"),{tablePasteChainId:o}),s.length&&n[Ra("0x35")](s,Ra("0x46"),{tablePasteChainId:o}),c[Ra("0x6f")]&&n[Ra("0x35")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),x.length&&n.markMultiRangeDeletion(x,Ra("0x17"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Ra("0x86")](l[Ra("0x58")]((({element:e})=>e)),{formatGroupId:(0,t.uid)()},[],Ra("0x27"),{tablePasteChainId:o});if(u){const t=u[Ra("0xf")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=e[Ra("0x8e")][Ra("0xb")](o),i=t.find((e=>e.getRange()[Ra("0x2a")](s)));i&&n[Ra("0x4")]([i.name,r])}n[Ra("0x6f")]&&u.setAttribute(Ra("0x9b"),Object[Ra("0x1d")](n))}i=null})))}),{priority:t.priorities[Ra("0x14")]+10}),e[Ra("0x10")][Ra("0x6")](Ra("0x8f")).on(Ra("0x36"),((e,t)=>{const[n,o,,r]=t;if(!i)return;e[Ra("0x82")]();const s=n[Ra("0x31")],a=o,c=Na(s),x=Na(a);e[Ra("0x28")]=s;let l=null,u=null;if(x||c)if(c&&!x){r[Ra("0x44")](s[Ra("0x3")](0));for(const e of Array[Ra("0x5")](a[Ra("0x6b")]()))r[Ra("0x88")](e,s,Ra("0x96"));const e=i.rowInsertionIndexes.includes(n.row),t=i[Ra("0x18")][Ra("0x85")](n[Ra("0x41")]);e||t||(l=r[Ra("0x3e")](s))}else x&&!c&&(u=r[Ra("0x3e")](s));else{const e=r[Ra("0x3a")](Ra("0x34")),t=r[Ra("0x3a")](Ra("0x34"));r[Ra("0x3b")](r[Ra("0x3e")](s),t),r.insert(e,s,0);for(const t of Array.from(a.getChildren()))r[Ra("0x88")](t,e,"end");l=r[Ra("0xb")](e),u=r[Ra("0xb")](t)}const d=Array.from(a[Ra("0x39")]())[Ra("0x94")]((([e])=>Ia[Ra("0x85")](e)));i[Ra("0x61")][Ra("0x4")]({element:s,attributes:d.length?Object.fromEntries(d):null}),l&&i[Ra("0x23")].push(l),u&&i[Ra("0x75")].push(u)}),{priority:Ra("0x14")}),o.on(Ra("0x15"),((t,n)=>{const[r,s={}]=n;if(!i)return;const a=s.at||0,c=s[Ra("0x56")]||1;i[Ra("0x18")]=new Array(c)[Ra("0x2e")](a)[Ra("0x58")](((e,t)=>e+t));for(const{cell:t}of o[Ra("0x47")](r,{startColumn:a,endColumn:a+c-1}))i[Ra("0x81")].push(e.model[Ra("0xb")](t))}),{priority:Ra("0x49")}),o.on(Ra("0x53"),((t,n)=>{const[r,s={}]=n;if(!i)return;const a=s.at||0,c=s.rows||1;i.rowInsertionIndexes=new Array(c)[Ra("0x2e")](a)[Ra("0x58")](((e,t)=>e+t));for(const{cell:t}of o.createTableWalker(r,{startRow:a,endRow:a+c-1}))i.rowInsertionRanges[Ra("0x4")](e[Ra("0x8e")][Ra("0xb")](t))}),{priority:Ra("0x49")}),n[Ra("0x5d")][Ra("0x67")]((t=>{if(t[Ra("0x7")]&&t.subType[Ra("0x80")]("tablePaste"))return t[Ra("0x89")]?{}:{type:Ra("0x4c"),content:Yo(e.locale,Ra("0x5b"))}}));const a=()=>{};for(const e of[Ra("0x17"),Ra("0x46"),Ra("0x52"),"tablePasteCell"])n._suggestionFactory[Ra("0x43")](Ra("0x4c"),e,"join",a),n[Ra("0x87")][Ra("0x43")](Ra("0x1c"),e,"join",a);n[Ra("0x87")][Ra("0x43")](Ra("0x7d"),Ra("0x27"),Ra("0x6a"),a),n[Ra("0x87")].registerCustomCallback(Ra("0x7d"),Ra("0x27"),Ra("0x50"),((t,n,o)=>{const r=t[Ra("0x58")]((e=>e[Ra("0x2f")]()))[Ra("0x94")]((e=>e)),s=new Map(r.map((e=>[e,null])));if(i)for(const{element:e,attributes:t}of i.cells)t&&s.set(e,t);else if(o&&o[Ra("0x9b")])for(const[t,n]of Object[Ra("0x79")](o[Ra("0x9b")])){const o=e[Ra("0x8e")][Ra("0x73")].get(t),r=o?o.getRange()[Ra("0x2f")]():null;r&&s[Ra("0x19")](r,n)}e[Ra("0x8e")].change((e=>{for(const[t,n]of s)e[Ra("0x2b")]({...Sa,...n},t)}))}));const c=(t,o)=>{n[Ra("0x87")][Ra("0x43")](t,Ra("0x17"),o,((r,s,i)=>{e.model[Ra("0x57")]((e=>{const a=[];for(const e of r){const t=e[Ra("0x9d")].nodeAfter;t.is(Ra("0x95"),Ra("0x34"))&&a[Ra("0x4")](t)}n[Ra("0x87")].getSuggestionCallback(t,null,o)(r,s,i);for(const t of a)Ra("0x25")!=t.root.rootName&&e[Ra("0x1b")](t)}))}))};c(Ra("0x4c"),Ra("0x50")),c(Ra("0x4c"),Ra("0x6a")),c(Ra("0x1c"),Ra("0x50")),c(Ra("0x1c"),"discard"),n[Ra("0x87")].registerCustomCallback(Ra("0x4c"),Ra("0x52"),Ra("0x6a"),(e=>{const t=e[Ra("0x58")]((e=>e[Ra("0x2f")]())),n=t[0][Ra("0x8")](Ra("0x66")),{minRow:s,maxRow:i}=r[Ra("0x2d")](t);o[Ra("0x33")](n,{at:s,rows:i-s+1})})),n._suggestionFactory.registerCustomCallback(Ra("0x4c"),Ra("0x46"),Ra("0x6a"),(e=>{const t=e.map((e=>e[Ra("0x2f")]())),n=t[0][Ra("0x8")](Ra("0x66")),{minColumn:s,maxColumn:i}=r._getCoordsForCells(t);o.removeColumns(n,{at:s,columns:i-s+1})}));const x=(e,t)=>{if(!t.subType||!t[Ra("0x7")].startsWith(Ra("0x17")))return;const o=t.attributes[Ra("0x4d")],r=n[Ra("0x54")]()[Ra("0x94")]((e=>e[Ra("0x60")]&&e[Ra("0x62")]&&e[Ra("0x62")][Ra("0x4d")]==o));r.length&&t[Ra("0x5c")]().length!=r.length&&r[Ra("0x93")](((e,t)=>(e[Ra("0x6d")]=t,t[Ra("0x89")]=e,t)))};function l(e,{showActiveMarker:t=!0}={}){const{id:o}=n[Ra("0x97")](e[Ra("0x72")]),r=[Ra("0x91"),Ra("0x3d")],s=n.activeMarkers[Ra("0x85")](e.markerName);return s&&r.push(Ra("0x29")),{classes:r,attributes:{"data-suggestion":o},priority:s&&t?3010:3e3}}n.on(Ra("0x74"),x,{priority:Ra("0x14")}),n.on(Ra("0x5a"),x,{priority:Ra("0x14")}),e.model[Ra("0x9")][Ra("0x6e")]((()=>{let t=!1;const o=Array.from(e[Ra("0x8e")][Ra("0x9")][Ra("0x5e")].getChangedMarkers());for(const{name:r,data:s}of o){const{group:o,type:i,id:a}=n[Ra("0x97")](r);if(Ra("0x7e")!=o||Ra("0x1c")!=i||s[Ra("0x65")])continue;if(!n[Ra("0x40")](a))continue;const c=n.getSuggestion(a)[Ra("0x22")](),x=e[Ra("0x10")][Ra("0x6")](Ra("0x63")).me;for(const e of n[Ra("0x54")]())if(e[Ra("0x60")]&&e.author==x&&Ra("0x7d")==e[Ra("0x69")]&&Ra("0x27")==e.subType&&e[Ra("0x22")]().every((e=>c[Ra("0x98")]((t=>t[Ra("0x16")](e,!0))))))for(const n of e.getAllAdjacentSuggestions())n[Ra("0x60")]&&(n[Ra("0x6a")](),t=!0)}return t})),e.model.document.registerPostFixer((t=>{const o=e[Ra("0x9f")][Ra("0x6")]("redo");if(!o||!o[Ra("0x77")][Ra("0x76")](t[Ra("0x21")]))return!1;let r=!1;const s=e[Ra("0x10")].get("Users").me,i=e.model.document[Ra("0x5e")][Ra("0x4f")](),a=Array[Ra("0x5")](e[Ra("0x8e")][Ra("0x9")][Ra("0x5e")][Ra("0x70")]())[Ra("0x94")]((({name:e,data:t})=>{const{group:o,subType:r,authorId:i}=n._splitMarkerName(e);return Ra("0x7e")==o&&Ra("0x17")==r&&i==s.id&&!t[Ra("0x65")]}));for(const e of i){if("insert"!=e[Ra("0x69")]||Ra("0x34")!=e[Ra("0x2c")]||1!=e[Ra("0x6f")])continue;const n=t.createRange(e.position,e[Ra("0x4a")][Ra("0x64")](1));if(!a[Ra("0x7a")]((({data:e})=>e[Ra("0x8b")][Ra("0x2a")](n))))for(const{name:e,data:o}of a)if(n[Ra("0x16")](o[Ra("0x8b")])){t.updateMarker(e,{range:n}),r=!0;break}}return r})),e.model[Ra("0x9")][Ra("0x6e")]((t=>{let o=!1;const r=e[Ra("0x10")].get(Ra("0x63")).me,s=n[Ra("0x54")]()[Ra("0x94")]((e=>e.isInContent&&e[Ra("0x6c")]==r)),i=new Set,a=new Set;for(const e of s)if(Ra("0x17")==e.subType)for(const t of e[Ra("0xf")]()){const n=t.getRange()[Ra("0x2f")]();if(n)if(n.is("element",Ra("0x34"))&&Na(n)){e[Ra("0x30")](t[Ra("0x2c")]),i[Ra("0x48")](n),o=!0;const r=n[Ra("0xa")],s=n[Ra("0x8d")],c=r&&r.is("element",Ra("0x34")),x=s&&s.is("element",Ra("0x34"));c&&!i.has(r)&&a[Ra("0x48")](r),x&&!i[Ra("0x76")](s)&&a[Ra("0x48")](s)}else n.is(Ra("0x95"),"paragraph")&&n[Ra("0x45")]&&(e[Ra("0x30")](t[Ra("0x2c")]),o=!0)}else if(Ra("0x27")==e[Ra("0x7")]){if(!e[Ra("0x62")]||!e[Ra("0x62")][Ra("0x4d")])continue;const t=e[Ra("0x62")][Ra("0x9b")];if(t&&Object[Ra("0x2")](t).length)continue;const n=e[Ra("0x62")][Ra("0x4d")];let r=!0,i=!0;for(const t of s)if(t[Ra("0x7")]&&t[Ra("0x7")][Ra("0x80")]("tablePaste")){if(!t.attributes[Ra("0x4d")]){i=!1;break}if(t.id!=e.id&&t[Ra("0x62")].tablePasteChainId==n){r=!1;break}}i&&r&&(e[Ra("0x13")](),o=!0)}for(const e of i)t.remove(e);for(const e of a)t[Ra("0x1b")](e);return o})),e[Ra("0x37")][Ra("0x1f")](Ra("0x11"))[Ra("0x7b")]({model:"suggestion:formatBlock:tablePasteCell",view:l,converterPriority:"high"}),e[Ra("0x37")][Ra("0x1f")](Ra("0x1"))[Ra("0x7b")]({model:Ra("0x8a"),view:(e,t)=>{if(t[Ra("0x20")][Ra("0x9e")])return l(e,{showActiveMarker:!1})},converterPriority:Ra("0x14")});const u=e[Ra("0x38")].view;this.listenTo(u[Ra("0x9")],"clipboardOutput",((e,t)=>{const n=[];for(const e of u[Ra("0x3e")](t[Ra("0x8c")])[Ra("0x59")]())e.is("element",Ra("0x9a"))&&n[Ra("0x4")](e);u[Ra("0x57")]((e=>{for(const t of n)e.move(e[Ra("0x3e")](t),e.createPositionBefore(t)),e.remove(t)}))}))}}function Na(e){if(e[Ra("0x45")])return!0;const t=e.getChild(0);return t.is(Ra("0x95"),Ra("0x84"))&&t[Ra("0x45")]}function La(e,t={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Ra("0x47")](e,{includeAllSlots:!0,...t}))if(!o||1!=r||1!=s)return!1;return!0}const Oa=["Title","_splitMarkerName","start","has","newRange","removeMarker","end","model","title-content","getNearestSelectionRange","registerPostFixer","plugins","registerElementLabel","schema","locale","isEqual","TrackChangesEditing","getChangedMarkers","updateMarker","isTouching","afterInit","_descriptionFactory","from","differ","get","document"];var Fa,Pa;Fa=Oa,Pa=309,function(e){for(;--e;)Fa.push(Fa.shift())}(++Pa);const Da=function(e,t){return Oa[e-=0]};class Ba extends e.Plugin{[Da("0x17")](){const e=this.editor;if(!e[Da("0xe")][Da("0x6")](Da("0x3")))return;const t=e[Da("0xe")][Da("0x1")](Da("0x13"));t[Da("0x18")][Da("0xf")](Da("0xb"),(()=>Yo(e[Da("0x11")],"ELEMENT_TITLE"))),e[Da("0xa")][Da("0x2")][Da("0xd")]((n=>{let o=!1;const r=Array[Da("0x19")](e[Da("0xa")][Da("0x2")][Da("0x0")][Da("0x14")]());for(const{name:s,data:i}of r){const{group:r}=t[Da("0x4")](s);if("suggestion"!==r||!i[Da("0x7")])continue;const a=i.newRange,c=a.end.nodeBefore;if(!c||!c.is("element","title-content"))continue;if(!a[Da("0x5")][Da("0x16")](a[Da("0x9")]))continue;const x=e[Da("0xa")][Da("0x10")][Da("0xc")](a[Da("0x9")],"forward");if(x&&x.isCollapsed){const e=n.createRange(a[Da("0x5")],x[Da("0x5")]);e[Da("0x12")](a)||(n[Da("0x15")](s,{range:e}),o=!0)}o||(n[Da("0x8")](s),o=!0)}return o}))}}const ja=["enableCommand","editor","TrackChangesEditing","get","plugins","has"];var Ua,Ha;Ua=ja,Ha=135,function(e){for(;--e;)Ua.push(Ua.shift())}(++Ha);const Ga=function(e,t){return ja[e-=0]};class Va extends e.Plugin{afterInit(){const e=this[Ga("0x4")],t=e[Ga("0x1")][Ga("0x0")](Ga("0x5"));e.plugins[Ga("0x2")]("UndoEditing")&&(t[Ga("0x3")]("undo"),t.enableCommand("redo"))}}const za=["includes","noPermissions","enableReadOnlyMode","has","context","plugins","config","no-permissions","CommentsOnly","setAdminPermissions","editors","find","commands","disableReadOnlyMode","clearForceDisabled","get","setPermissions","isEnabled","collaboration.channelId","comment:write","addCommentThread","document:write","Permissions","CommentsRepository"];var Wa,Ka;Wa=za,Ka=205,function(e){for(;--e;)Wa.push(Wa.shift())}(++Ka);const qa=function(e,t){return za[e-=0]};class Xa extends(null){static get pluginName(){return qa("0x9")}[qa("0x3")](e,t){let n;if(t||(t=this[qa("0xf")][qa("0x11")][qa("0x2")]("collaboration.channelId")),this[qa("0xf")][qa("0x11")].get(qa("0x5"))==t?n=this[qa("0xf")]:this[qa("0xf")][qa("0x15")]&&(n=this.context[qa("0x15")][qa("0x16")]((e=>e[qa("0x11")][qa("0x2")](qa("0x5"))==t))),!n)throw new _0x3963e0("permissions-set-permissions-invalid-channel-id",null);const o=n[qa("0x10")],r=n instanceof _0x42d238,s=o[qa("0xe")](qa("0xa"))&&o[qa("0x2")](qa("0xa")),i=o[qa("0xe")](qa("0x13"))&&o[qa("0x2")]("CommentsOnly"),a=e[qa("0xb")](qa("0x8")),c=e.includes("comment:admin"),x=e[qa("0xb")](qa("0x6"))||c;if(i&&(i[qa("0x4")]=!a&&x),r&&(a||x&&s?n[qa("0x0")](qa("0x12")):n[qa("0xd")](qa("0x12"))),s){s.switchReadOnly(!x,t),s[qa("0x14")](c,t);const e=r&&n[qa("0x17")].get(qa("0x7"));e&&(x?e[qa("0x1")](qa("0xc")):e.forceDisabled("noPermissions"))}}}var Za=n(278),$a=n.n(Za),Ja=n(756),Qa={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Ja.Z,Qa);Ja.Z.locals;const Ya=["licenseKeyTrialLimit:time","_getNextColor","ck-user__selection--","split","trial-license-key-reached-limit-changes","Anonymous","anonymous-user","info","ck-user__bg-color--","_getInitial","invalid-license-key","length","destroy","users-add-invalid-id","Users","getUser","users-me-already-defined","name","useAnonymousUser","users.colorsCount","_isAnonymous","licenseKeyValid","has","charAt","_locale","users-add-duplicated-id","_lastColor","licenseKeyTrialLimit:operations","_addAnonymousUser","getSelectionClass","addUser","users-me-missing-user","init","assign","You are using the trial version of CKEditor 5 collaboration plugin with limited usage. Make sure you will not use it in the production environment.","trial-license-key-reached-limit-revisions","requires","string","trial-license-key-reached-limit-time","_myId","licenseKeyInvalid","define","_id","config","licenseKeyTrial","pluginName","defineMe","context","locale","licenseKeyTrialLimit:revisions","users","trim","_licenseKeyCheckInterval","licenseKey","get","color","getBackgroundColorClass","users.anonymousUserId","isAnonymous","avatar"];var ec,tc;ec=Ya,tc=410,function(e){for(;--e;)ec.push(ec.shift())}(++tc);const nc=function(e,t){return Ya[e-=0]};class oc extends(null){static get[nc("0x37")](){return nc("0x18")}static get[nc("0x2e")](){return[_0x4d4199]}constructor(e){super(e),e[nc("0x35")][nc("0x33")](nc("0x7"),nc("0x10")),e[nc("0x35")][nc("0x33")](nc("0x1d"),8),this[nc("0x0")]=new _0x5ecafa,this[nc("0x22")]=e[nc("0x3a")],this[nc("0x2")]=null,this._lastColor=0,this[nc("0x31")]=null,this.decorate("getOperationAuthor")}[nc("0x2a")](){const e=this.context;this.licenseKey=e[nc("0x35")][nc("0x4")](nc("0x3"));const t=[nc("0x36"),nc("0x32"),nc("0x1f"),"licenseKeyTrialLimit:operations",nc("0xa"),nc("0x3b")];this._licenseKeyCheckInterval=setInterval((()=>{let n;for(const o in e){const r=e[o];if(t.includes(r)){delete e[o],n=r;break}}if(nc("0x32")===n)throw clearInterval(this._licenseKeyCheckInterval),new _0x4035f6(nc("0x14"),null);if("licenseKeyTrial"===n&&console[nc("0x11")](nc("0x2c")),nc("0x25")===n)throw clearInterval(this[nc("0x2")]),new _0x4035f6(nc("0xe"),null);if("licenseKeyTrialLimit:time"===n)throw clearInterval(this[nc("0x2")]),new _0x4035f6(nc("0x30"),null);if(nc("0x3b")===n)throw clearInterval(this[nc("0x2")]),new _0x4035f6(nc("0x2d"),null);nc("0x1f")===n&&clearInterval(this[nc("0x2")])}),1e3),this._addAnonymousUser()}get me(){return null==this._myId?null:this.getUser(this[nc("0x31")])}addUser(e){if(!Object[nc("0x2b")]({},e,{color:this[nc("0xb")]()}).id||nc("0x2f")!=typeof e.id)throw new _0x4035f6(nc("0x17"));if(this[nc("0x0")][nc("0x20")](e.id))throw new _0x4035f6(nc("0x23"),null,{id:e.id});e[nc("0x1b")]=function(e,t=""){return""==t[nc("0x1")]()?_0x4e8bf5(e,"Anonymous"):t}(this[nc("0x22")],e[nc("0x1b")]);const t=new rc(e);return this[nc("0x0")].add(t),t}[nc("0x19")](e){return this[nc("0x0")].get(e)}[nc("0x1c")](){const e=this[nc("0x39")][nc("0x35")][nc("0x4")](nc("0x7"));this[nc("0x31")]||this.defineMe(e)}[nc("0x38")](e){if(this[nc("0x31")])throw new _0x4035f6(nc("0x1a"),null);if(!this[nc("0x19")](e))throw new _0x4035f6(nc("0x29"),null);this._myId=e}getOperationAuthor(){return this.me}[nc("0x16")](){super[nc("0x16")](),clearInterval(this[nc("0x2")])}[nc("0xb")](){const e=this.context[nc("0x35")][nc("0x4")](nc("0x1d"));return this[nc("0x24")]>=e&&(this[nc("0x24")]=0),new sc(this[nc("0x24")]++)}[nc("0x26")](){const e=this[nc("0x39")][nc("0x35")][nc("0x4")](nc("0x7"));this[nc("0x28")]({id:e,name:_0x4e8bf5(this[nc("0x22")],nc("0xf"))})[nc("0x1e")]=!0}}class rc{constructor(e){this.id=e.id,this[nc("0x5")]=e[nc("0x5")],this[nc("0x1b")]=e[nc("0x1b")],this[nc("0x9")]=e[nc("0x9")],this._isAnonymous=!1}get[nc("0x8")](){return this[nc("0x1e")]}get initials(){const e=this[nc("0x1b")][nc("0xd")](" ");return 1===e.length?this[nc("0x13")](e[0]):this[nc("0x13")](e[0])+this[nc("0x13")](e[e[nc("0x15")]-1])}[nc("0x13")](e){return e[nc("0x21")](0).toUpperCase()}}class sc{constructor(e){this._id=e}[nc("0x6")](){return nc("0x12")+this[nc("0x34")]}[nc("0x27")](){return nc("0xc")+this._id}getMarkerClass(){return"ck-user__marker--"+this[nc("0x34")]}}var ic=n(893),ac={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(ic.Z,ac);ic.Z.locals;const cc=["ck-user__icon","div","notificationView","ck-user__notification","initials","ck-user__avatar","ck-user","ck ck-user__name","push","avatar","name","ck ck-user__name ck-user__name--hidden","setTemplate","ck-user__anonymous","ck-user__img","content","isAnonymous"];var xc,lc;xc=cc,lc=154,function(e){for(;--e;)xc.push(xc.shift())}(++lc);const uc=["string","dateTimeFormat","'Yesterday' hh:mma","MM-dd-yyyy hh:mma","'Today' hh:mma"];var dc,gc;dc=uc,gc=117,function(e){for(;--e;)dc.push(dc.shift())}(++gc);const mc=["values","domConverter","markerNameToElements","view","name","mapper"];var fc,hc;fc=mc,hc=346,function(e){for(;--e;)fc.push(fc.shift())}(++hc);const kc=["indexOf","push","join","replace","length","...","split","pop","slice","substring","startsWith"];var bc,pc;bc=kc,pc=399,function(e){for(;--e;)bc.push(bc.shift())}(++pc);const _c=["execute","cancelView","icon","Yes","fire","submit","bindTemplate","ck-thread__remove-confirm-actions","Are you sure?","extendTemplate","div","ck-thread__remove-confirm-","ck-thread__remove-confirm","label","message","check","_createButtonView","submitView","set","ck-thread__remove-confirm-inner","cancel"];var vc,Ec;vc=_c,Ec=471,function(e){for(;--e;)vc.push(vc.shift())}(++Ec);class yc extends r.View{constructor(t){super(t);const n=this[_0x3307("0x12")];this[_0x3307("0x8")]=this[_0x3307("0x7")](t,common_translations_getTranslation(t,_0x3307("0xf")),e.icons[_0x3307("0x6")],_0x3307("0x11")),this[_0x3307("0xd")]=this[_0x3307("0x7")](t,common_translations_getTranslation(t,"No"),e.icons[_0x3307("0xb")],_0x3307("0xb")),this[_0x3307("0x9")]("message",common_translations_getTranslation(t,_0x3307("0x14"))),this.setTemplate({tag:_0x3307("0x1"),attributes:{class:[_0x3307("0x3")]},children:[{tag:_0x3307("0x1"),attributes:{class:_0x3307("0xa")},children:[{tag:"p",children:[{text:n.to(_0x3307("0x5"))}]},{tag:_0x3307("0x1"),attributes:{class:_0x3307("0x13")},children:[this[_0x3307("0x8")],this[_0x3307("0xd")]]}]}]})}_createButtonView(e,t,n,o){const s=new r.ButtonView(e);return s[_0x3307("0x4")]=t,s[_0x3307("0xe")]=n,s[_0x3307("0x0")]({attributes:{class:_0x3307("0x2")+o}}),s.on(_0x3307("0xc"),(()=>this[_0x3307("0x10")](o))),s}}var Tc,Cc,wc=["appendChild","message","render","destroy","once","isConfirm","set","_removeConfirm","confirmView","element","cancel","locale","submit","remove"];Tc=wc,Cc=427,function(e){for(;--e;)Tc.push(Tc.shift())}(++Cc);const Ac=["toString","number","keys","sign","sort","boolean"];var Rc,Ic;Rc=Ac,Ic=500,function(e){for(;--e;)Rc.push(Rc.shift())}(++Ic);const Sc=function(e,t){return Ac[e-=0]};function Mc(e){let t=0,n=0;for(const o of Lc(e))t=(t<<5)-t+o,t&=t,[t,n]=[n,t];return Pc(t)+Pc(n)}function*Nc(e){e?Sc("0x3")==typeof e?yield 1:Array.isArray(e)?yield*function*(e){for(const t of e)yield*Nc(t)}(e):"object"==typeof e?yield*Lc(e):"string"==typeof e?yield*Oc(e):Sc("0x5")==typeof e&&(yield e):yield 0}function*Lc(e){if(yield Fc("{"),e){const t=Object[Sc("0x0")](e)[Sc("0x2")]();for(const n of t){yield*Oc(n),yield Fc(":");const t=e[n];yield*Nc(t)}}yield Fc("}")}function*Oc(e){yield Fc('"');for(const t of e)yield Fc(t);yield Fc('"')}function Fc(e){return e.charCodeAt(0)}function Pc(e){return(e*=Math[Sc("0x1")](e))[Sc("0x4")](36)}var Dc=n(72),Bc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Dc.Z,Bc);Dc.Z.locals;var jc=n(529),Uc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(jc.Z,Uc);jc.Z.locals;var Hc=n(510),Gc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Hc.Z,Gc);Hc.Z.locals;var Vc=n(156),zc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Vc.Z,zc);Vc.Z.locals;var Wc=n(481),Kc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Wc.Z,Kc);Wc.Z.locals;var qc=n(437),Xc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(qc.Z,Xc);qc.Z.locals;var Zc=n(895),$c={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Zc.Z,$c);Zc.Z.locals;var Jc=n(701),Qc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Jc.Z,Qc);Jc.Z.locals;const Yc=["afterInit","editor","toggleTableCaption","enableCommand","TrackChangesEditing","plugins","TableCaptionEditing","requires"];var ex,tx;ex=Yc,tx=359,function(e){for(;--e;)ex.push(ex.shift())}(++tx);const nx=function(e,t){return Yc[e-=0]};class ox extends e.Plugin{static get[nx("0x0")](){return[ga]}[nx("0x1")](){const e=this[nx("0x2")];e[nx("0x6")].has(nx("0x7"))&&e[nx("0x6")].get(nx("0x5"))[nx("0x4")](nx("0x3"))}}const rx=["getShiftedBy","elementToElement","formatBlock","showSuggestionHighlights","enqueueChange","deleteContent","dataReady","consume","isInsideObject","_isForcedDefaultExecutionBlock","_getAuthorFromId","detach","nodeAfter","chain","change:data","isLimit","commandName","size","removeMarker","formatInline","splice","isCollapsed","mapper","createPositionAt","markerToData","normal","_joinSuggestions","isInContent","_descriptionFactory","getFirstMarker","getNearestSelectionRange","markerToHighlight","getRange","isUndo","isDocumentOperation","commentThread","originalSuggestionId","addSuggestionData","root","_addThreadToSuggestion","delete","next","dataToMarker","model","addSuggestion","markMultiRangeDeletion","after","notReady","formatBlock:","_suggestions","getFirstRange","addHighlight","PendingActions","suggestionChanged","createPositionAfter","isObject","track-changes-adapter-missing-getsuggestion","set","length","suggestion-type","acceptAllSuggestions","elementStart","_saved","_model","from","selection","adapter","setSelection","map","howMany","_handleNewSuggestionMarker","_registerDefaultCallbacks","rejected","_addSuggestionMarker","upcast","isAtEnd","name","getChangedMarkers","getSuggestionCallback","toJSON","discardAllSuggestions","_onDiscard","init","split","unbind","listenTo","insertion:chain","range","getAllAdjacentSuggestions","createRangeIn","ck-suggestion-marker","subType","suggestionLoaded","previous","widget","ck-suggestion-marker--active","addMarker:suggestion:formatBlock","add","getSuggestion","isEqual","markMultiRangeInsertion","ck-suggestion-marker-","refresh","_suggestionState","removeClass","editor","containsRangeInObject","createSelection","addCommentThread","containsPosition","plugins","elementEnd","_editor","getCustomProperty","CommentsRepository","isNextTo","rootName","skipNestingCheck","isTouching","insertion:","markInlineFormat","before","isRemovable","marker-count","$marker","remove","_enabledCommands","requires","isAfter","attributes","element","group","trackChanges","insertion:discard","nodeBefore","_getSuggestionData","addRange","value","getMultiRangeId","addMarker:suggestion","createRange","isSelectable","highest","authoredAt","markerReady","clone","acceptSuggestion","markerName","accept","_rangeIsInLocalUserInsertion","_joinWithAdjacentSuggestions","_refreshSuggestionsChain","addUser","registerCustomCallback","push","formatInline:discard","then","@external","registerPostFixer","get","includes","discardSelectedSuggestions","_suggestionFactory","discard","getUser","markMultiRangeBlockFormat","_breakSuggestionMarker","hasComments","ready","high","change:_saved","getAttribute","getLastMatchingPosition","filter","suggestionUnloaded","_splitMarkerName","editing","return","_checkSuggestionCorrectness","newRange","collaboration.channelId","_getExternalAuthor","unbindElementFromMarkerName","getCommentThread","position","insertion:accept","external:","every","type","forward","some","config","enableCommand","schema","track-changes-adapter-already-set","_updateSuggestionData","multi","low","trackChangesCommand","updateSuggestion","backward","_findSuggestions","change:activeMarkers","isOwn","insertion:join","deletion:chain","open","for","error-saving-suggestion-data-suggestion-discarded","differ","isAtStart","getItems","dataDowncast","document","insertContent","ck-suggestion-marker-formatBlock","parent","creator","formatInline:join","fire","consumable","values","deletion:","batch","data","_commentsRepository","start","isIntersectingWithRange","getWalker","getRanges","getDifference","substr","isMultiRange","has","addMarkerName","deletion:accept","$graveyard","end","forceDefaultExecution","enableReadOnlyMode","track-changes-command-not-found","item","hasCommentThread","_createSuggestion","createPositionBefore","bindElementToMarker","data-suggestion","PENDING_ACTION_SUGGESTION","suggestion","discardSuggestion","isLocal","track-changes-user-not-found","change","_defaultCallbacks","multipleBlocks","author","rethrowUnexpectedError","removeComment","markInsertion","locale","formatGroupId","TrackChangesEditing","targetPosition","oldRange","Users","catch","_removeSuggestion","writer","insert","buildSuggestion","pluginName","execute","sort","removed","editingDowncast","updateMarker","insertion","deletion","move","lowest","track-changes-suggestion-not-found","containsRange","isBefore","conversion","_adapter","options","suggestion:","getIntersection","getAncestors","textProxy","removeAttribute","markDeletion","markers","track-changes-suggestion-data-mismatch","createdAt","formatBlock:accept","fromCharCode","formatInline:chain","removeMarkers","isBlock","_setSuggestionRange","formatBlock:join","activeMarkers","stop","getSuggestions","removeMarker:suggestion:formatBlock","getChanges","commands","_setSuggestionData","accepted","markBlockFormat","deletion:join","setTo","createElement","splitPosition","join","_customCallbacks"];var sx,ix;sx=rx,ix=399,function(e){for(;--e;)sx.push(sx.shift())}(++ix);const ax=function(e,t){return rx[e-=0]};class cx extends e.Plugin{static get[ax("0x2d")](){return[ax("0x20"),s.Users,e.PendingActions,xr,Er,Ar,Lr,Br,zr,$r,ts,xs,fs,_s,ws,Ms,Ps,Hs,Ks,Js,ni,ai,di,pi,Ti,Ii,Oi,Ui,Ki,Ji,oa,ca,ga,pa,Ta,ox,Ma,Ba,Va]}static get[ax("0xbc")](){return ax("0xb3")}constructor(e){function t(e){return e[ax("0x12f")]((e=>String[ax("0xd6")](e)))[ax("0xe9")]("")}super(e),this[ax("0x124")](ax("0xdc"),[]),this.on(ax("0x78"),((t,n,o,r)=>{this[ax("0x12a")][ax("0xaa")]((()=>{for(const t of[...r,...o])this[ax("0x12a")][ax("0xd2")][ax("0x97")](t)&&e[ax("0x5e")].reconvertMarker(t)}))})),this[ax("0x107")]=new rr(this[ax("0x17")][ax("0x116")][ax("0x6f")],this[ax("0x17")].locale),this[ax("0xca")]=null,this[ax("0x50")]=new xx(this[ax("0x17")]),this[ax("0x11c")]=new Map,this[ax("0x8f")]=e[ax("0x1c")][ax("0x4d")](ax("0x20")),this._enabledCommands=new Set,this[ax("0x12a")]=this.editor[ax("0x116")],this[ax("0x15")]=new WeakMap,this[ax("0xf4")]=!1,this[t([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=t([52,48,52,52,50,50,48,54])}[ax("0x0")](){const e=this.editor;e[ax("0xc9")].for(ax("0xc0"))[ax("0x10a")]({model:ax("0xa6"),view:e=>{const{id:t,type:n}=this[ax("0x5d")](e[ax("0x41")]),o=["ck-suggestion-marker",ax("0x13")+n];let r=3e3;return this[ax("0xdc")][ax("0x4e")](e[ax("0x41")])&&(o[ax("0x48")](ax("0xd")),r=3010),ax("0xc3")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":t},priority:r}}}),e.conversion.for(ax("0x82")).add((t=>{t.on(ax("0x39"),((t,n,o)=>{if(!o[ax("0xcb")][ax("0xee")])return;const r=n[ax("0x9f")];if(!r)return;const s=o[ax("0x101")].toViewElement(r);e.model[ax("0x6f")][ax("0x122")](r)&&s&&!s.getCustomProperty(ax("0xc"))&&s.is("containerElement")&&(0,a.toWidget)(s,o[ax("0xb9")])}),{priority:"high"})})),e[ax("0xc9")][ax("0x7d")](ax("0x82"))[ax("0x10a")]({model:"suggestion",view:(e,t)=>{if(!t[ax("0xcb")][ax("0xee")])return null;const{type:n}=this[ax("0x5d")](e.markerName);return{classes:[ax("0x8"),ax("0x13")+n],priority:3e3}}});const n=({showActiveMarkers:t=!0}={})=>(n,o,r)=>{if(!o[ax("0x9f")])return;if(o[ax("0x9f")].is(ax("0x12c")))return void r[ax("0x8a")][ax("0xf2")](o[ax("0x9f")],n[ax("0x137")]);const s=r[ax("0x101")].toViewElement(o.item);if(!o[ax("0x9f")].is(ax("0x30"))||!e[ax("0x116")][ax("0x6f")][ax("0xd9")](o.item)||s[ax("0x1f")](ax("0x11e")))return;const{id:i}=this[ax("0x5d")](o[ax("0x41")]);r.writer.addClass([ax("0x8"),ax("0x85")],s),r[ax("0xb9")].setAttribute(ax("0xa4"),i,s),r[ax("0x101")][ax("0xa3")](s,o[ax("0x41")]),t&&(this.activeMarkers[ax("0x4e")](o.markerName)?r[ax("0xb9")].addClass(ax("0xd"),s):r[ax("0xb9")][ax("0x16")]("ck-suggestion-marker--active",s));for(const t of e[ax("0x116")][ax("0x7")](o.item)[ax("0x81")]())r.consumable[ax("0xf2")](t,n[ax("0x137")]);r.consumable[ax("0xf2")](o.item,n[ax("0x137")])};e.conversion.for("dataDowncast")[ax("0xf")]((e=>{e.on(ax("0xe"),((e,t,o)=>{o[ax("0xcb")][ax("0xee")]&&n({showActiveMarkers:!1})(e,t,o)}),{priority:ax("0x3c")})})),e[ax("0xc9")][ax("0x7d")](ax("0x82"))[ax("0x103")]({model:"suggestion",view:(e,t)=>t[ax("0xcb")][ax("0xee")]?null:{group:ax("0xa6"),name:e[ax("0x95")](ax("0xa6")[ax("0x125")]+1)}}),e[ax("0xc9")][ax("0x7d")](ax("0x135"))[ax("0xec")]({view:{name:"suggestion",attribute:{id:/^\w/,suggestionType:/^\w/}},model:(e,{writer:t})=>{let n=ax("0xcc")+e[ax("0x59")](ax("0x126"))+":"+e[ax("0x59")]("id");return e[ax("0x59")]("marker-count")&&(n+=":"+e.getAttribute(ax("0x29"))),t[ax("0xe7")](ax("0x2a"),{"data-name":n})}}),e[ax("0xc9")][ax("0x7d")]("upcast")[ax("0x115")]({view:ax("0xa6")}),e[ax("0xc9")][ax("0x7d")](ax("0xc0")).add((e=>{e.on(ax("0xe"),n(),{priority:ax("0x57")})})),e[ax("0xc9")].for(ax("0xc0"))[ax("0xf")]((e=>{e.on(ax("0xdf"),((e,t,n)=>{const o=n.mapper.markerNameToElements(t[ax("0x41")]);if(o)for(const e of o)e[ax("0x1f")](ax("0x11e"))||(n.writer[ax("0x16")]([ax("0x8"),ax("0x85"),ax("0xd")],e),n[ax("0xb9")][ax("0xd0")](ax("0xa4"),e),n[ax("0x101")][ax("0x64")](e,t[ax("0x41")]))}),{priority:ax("0x57")})})),e[ax("0x116")][ax("0x83")][ax("0x4c")]((t=>{let n=!1;const o=Array.from(e[ax("0x116")][ax("0x83")].differ[ax("0x138")]()),r=new Set;for(const{name:a,data:c}of o){const{group:o,type:x,id:l}=this[ax("0x5d")](a);if(ax("0xa6")!==o)continue;const u=this[ax("0x11c")][ax("0x4d")](l);if(null!=c[ax("0x61")])if(ax("0xfe")==x&&(n=n||dx(c[ax("0x61")],a,t,e[ax("0x116")][ax("0x6f")])),c[ax("0x61")].isCollapsed||ax("0x9a")==c[ax("0x61")][ax("0x111")][ax("0x22")]||ax("0xed")==x&&!mx(c[ax("0x61")])||ax("0xc3")==x&&(ux(i=c[ax("0x61")])||(s=i)[ax("0x90")][ax("0x86")]==s[ax("0x9b")][ax("0x34")]&&s[ax("0x90")].isAtEnd))t.removeMarker(a),n=!0;else{if(!u||!u.isInContent)continue;r[ax("0xf")](u)}}var s,i;return r[ax("0xfc")]>0&&(n=!!this._joinWithAdjacentSuggestions(r)||n),n})),e[ax("0x116")][ax("0x83")][ax("0x4c")]((t=>{let n=!1;for(const o of e[ax("0x116")].document[ax("0x7f")][ax("0xe0")]()){if(ax("0xba")!=o[ax("0x6a")])continue;const r=o[ax("0x66")][ax("0xeb")](o[ax("0x125")]);if(r[ax("0x136")])for(const s of this[ax("0x11c")][ax("0x8b")]()){if(s[ax("0x96")]||!s[ax("0x106")])continue;if(ax("0xed")!=s[ax("0x6a")])continue;const i=s.getFirstRange();if(i.start[ax("0x86")]!=i[ax("0x9b")][ax("0x86")]&&i[ax("0x9b")][ax("0x11")](o[ax("0x66")])){const o=e[ax("0x116")][ax("0x3a")](i[ax("0x90")],r);t[ax("0xc1")](s[ax("0x108")](),{range:o}),n=!0}}}return n})),e[ax("0x116")][ax("0xd2")].on("update:suggestion",((e,t,n)=>{if(null==n){const{id:e}=this[ax("0x5d")](t[ax("0x137")]),n=this[ax("0x11c")][ax("0x4d")](e);n&&n.addMarkerName(t.name)}})),e[ax("0x116")][ax("0x83")].on(ax("0xf9"),(()=>{const t=Array.from(e.model[ax("0x83")].differ[ax("0x138")]()).filter((e=>ax("0xa6")===this._splitMarkerName(e[ax("0x137")])[ax("0x31")]));if(0===t[ax("0x125")])return;t[ax("0xbe")](((e,t)=>{const n=e.data[ax("0xb5")],o=t.data[ax("0xb5")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[ax("0xc8")](o[ax("0x90")])?-1:1}));const n=new Set,o=new Set;for(const{name:e,data:r}of t){const{id:t}=this[ax("0x5d")](e);if(null===r[ax("0xb5")]){const t=this._handleNewSuggestionMarker(e);o[ax("0xf")](t)}else{const e=this._suggestions[ax("0x4d")](t);null!==r[ax("0x61")]||e[ax("0x106")]?(n[ax("0xf")](e.head),o[ax("0xf")](e)):this[ax("0xb8")](e)}}o[ax("0xfc")]>0&&this[ax("0x45")](o);for(const e of n)this[ax("0x89")]("suggestionChanged",e)})),e[ax("0x116")].on("applyOperation",((t,n)=>{const o=n[0];if(!this[ax("0x11c")].size)return;if(!o[ax("0x10d")])return;if(o[ax("0x8d")][ax("0x10c")]||!o[ax("0x8d")][ax("0xa8")])return;let r,s;switch(o[ax("0x6a")]){case ax("0xba"):r=e[ax("0x116")][ax("0x102")](o.position),s=r[ax("0xeb")](o[ax("0x130")]);break;case"split":r=e[ax("0x116")][ax("0x102")](o[ax("0xe8")]),s=e[ax("0x116")][ax("0x102")](o.moveTargetPosition);break;case ax("0xc4"):r=e.model[ax("0x102")](o[ax("0xb4")]),s=r[ax("0xeb")](o[ax("0x130")]);break;default:return}const i=e[ax("0x116")][ax("0x3a")](r,s);e[ax("0x116")][ax("0xaa")]((()=>{for(const{suggestion:e,meta:t}of this[ax("0x77")](i)){if(e[ax("0x96")])continue;if(ax("0xfe")==e[ax("0x6a")])continue;const n=e.data&&e[ax("0x8e")][ax("0xac")];(ax("0xed")!=e[ax("0x6a")]||ax("0x1")==o.type&&!n)&&(t.containsRangeInObject||ax("0xc2")==e[ax("0x6a")]&&t[ax("0x79")]||e[ax("0x11d")]()[ax("0xc7")](i)&&this._breakSuggestionMarker(e,r,s))}}))}),{priority:ax("0xc5")}),e[ax("0x116")].on(ax("0xf0"),((t,n)=>{const o=n[0],r=n[1];if(r&&r[ax("0x9c")])return;if(this[ax("0xf4")])return;if(!this[ax("0x74")][ax("0x37")])return;if(o[ax("0x100")])return;const s=e[ax("0x116")][ax("0x6f")],{start:i,end:a}=o[ax("0x11d")](),c=i[ax("0xf7")]&&s.isLimit(i[ax("0xf7")])?null:s[ax("0x109")](i,ax("0x6b")),x=a[ax("0x34")]&&s[ax("0xfa")](a[ax("0x34")])?null:s[ax("0x109")](a,ax("0x76")),l=e[ax("0x116")][ax("0x3a")](c?c.start:i,x?x[ax("0x9b")]:a);e[ax("0x116")][ax("0xaa")]((t=>{this[ax("0xd1")](l);const n=e[ax("0x116")][ax("0x6f")][ax("0x109")](l[ax("0x90")]);o.is("documentSelection")?t[ax("0x12e")](n):o[ax("0xe6")](n)})),t.stop()}),{priority:t.priorities[ax("0x104")]+10}),e[ax("0x116")].on(ax("0x84"),((t,n)=>{const o=n[n[ax("0x125")]-1];o&&o[ax("0x9c")]||this[ax("0xf4")]||this[ax("0x74")].value&&(e[ax("0x116")][ax("0xaa")]((()=>{let o=e[ax("0x116")][ax("0x84")](n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;t[ax("0x5f")]=o[ax("0x3f")]();const r=o.end[ax("0x34")],s=e[ax("0x116")][ax("0x6f")];r&&s.isBlock(r)&&!s.isObject(r)&&(o=e[ax("0x116")][ax("0x3a")](o[ax("0x90")],e[ax("0x116")][ax("0x102")](r,"end"))),this[ax("0xb0")](o)})),t[ax("0xdd")]())}),{priority:ax("0x57")}),this[ax("0x74")]=new d(e,this[ax("0x2c")]),this[ax("0x17")][ax("0xe1")][ax("0xf")](ax("0x32"),this[ax("0x74")]),this[ax("0x6e")](ax("0x32"));const o=new k(e,this[ax("0x11c")]);e[ax("0xe1")][ax("0xf")](ax("0x40"),o),this[ax("0x6e")]("acceptSuggestion");const r=new E(e,this[ax("0x11c")]);e[ax("0xe1")][ax("0xf")](ax("0xa7"),r),this[ax("0x6e")]("discardSuggestion"),e[ax("0xe1")][ax("0xf")](ax("0x127"),new F(e,o,this._suggestions)),this[ax("0x6e")](ax("0x127")),e[ax("0xe1")].add(ax("0x13b"),new F(e,r,this[ax("0x11c")])),this[ax("0x6e")](ax("0x13b")),e[ax("0xe1")][ax("0xf")]("acceptSelectedSuggestions",new U(e,o,this[ax("0x11c")])),this[ax("0x6e")]("acceptSelectedSuggestions"),e[ax("0xe1")][ax("0xf")](ax("0x4f"),new U(e,r,this[ax("0x11c")])),this[ax("0x6e")](ax("0x4f"));const s=e[ax("0x1c")].get(ax("0x20"));this[ax("0x3")](s,"addComment",((e,{threadId:t})=>{const n=this[ax("0x11c")][ax("0x4d")](t);n&&n[ax("0x10e")]&&1===n[ax("0x10e")][ax("0x125")]&&this[ax("0x71")](t,{hasComments:!0})}),{priority:ax("0x73")}),this[ax("0x3")](s,ax("0xaf"),((e,{threadId:t})=>{const n=this[ax("0x11c")].get(t);n&&n[ax("0x10e")]&&!n.commentThread[ax("0x125")]&&this._updateSuggestionData(t,{hasComments:!1})}),{priority:ax("0x73")})}set[ax("0x12d")](e){if(this[ax("0xca")])throw new t.CKEditorError(ax("0x70"),this);this[ax("0xca")]=e}get[ax("0x12d")](){return this[ax("0xca")]}[ax("0xde")]({skipNotAttached:e=!1,toJSON:t=!1}={}){const n=[];for(const t of this[ax("0x11c")][ax("0x8b")]())e&&!t.isInContent||n[ax("0x48")](t);return t?n.map((e=>e[ax("0x13a")]())):n}[ax("0x10")](e){const n=this._suggestions[ax("0x4d")](e);if(!n)throw new t.CKEditorError(ax("0xc6"),this);return n}hasSuggestion(e){return this[ax("0x11c")][ax("0x97")](e)}[ax("0x110")](e){const{authorId:t,id:n,attributes:o}=e,[r,s]=e[ax("0x6a")][ax("0x1")](":"),i=this._suggestions[ax("0x4d")](n)||this[ax("0xa1")](r,s,n,t,o);if(this._addThreadToSuggestion(i),this[ax("0x60")](i,r,s||null,t),i[ax("0xd4")]=e[ax("0xd4")],o&&o[ax("0x4b")]){const{authorName:e,createdAt:t}=o["@external"],n=this[ax("0x63")](e);i[ax("0x3d")]=t,i.author=n,i.isExternal=!0}else i.authoredAt=e.createdAt;switch(e[ax("0x8e")]&&(i[ax("0x8e")]=e[ax("0x8e")]),e[ax("0x2f")]&&(i[ax("0x2f")]=e.attributes),this._adapter&&this[ax("0xca")][ax("0x117")]||(i[ax("0x129")]=!0),this[ax("0x15")].get(i)){case ax("0x11a"):this._suggestionState[ax("0x124")](i,ax("0xf1"));break;case"markerReady":i[ax("0x106")]?(this[ax("0x15")][ax("0x124")](i,"ready"),this[ax("0x89")](ax("0xa"),i)):this[ax("0x15")].set(i,"removed")}return i}[ax("0x40")](e){this.forceDefaultExecution((()=>{this.editor.model.change((()=>{for(const t of e[ax("0x6")]())t[ax("0x42")]()}))}))}discardSuggestion(e){this[ax("0x9c")]((()=>{this[ax("0x17")][ax("0x116")][ax("0xaa")]((()=>{for(const t of e[ax("0x6")]())t[ax("0x51")]()}))}))}[ax("0x6e")](e,n){const o=this[ax("0x17")][ax("0xe1")][ax("0x4d")](e);if(!o)throw new t.CKEditorError(ax("0x9e"),this,{commandName:e});this._enabledCommands[ax("0xf")](o),n&&o.on("execute",((e,t)=>{this[ax("0x74")][ax("0x37")]&&(this[ax("0xf4")]||t[ax("0x125")]>0&&t[t[ax("0x125")]-1]&&t[t[ax("0x125")]-1].forceDefaultExecution||(n(((...e)=>o[ax("0xbd")](...e,{forceDefaultExecution:!0})),...t),e[ax("0xdd")]()))}),{priority:ax("0x57")})}forceDefaultExecution(e){let n,o;const r=this[ax("0xf4")];this[ax("0xf4")]=!0;try{n=e()}catch(e){o=e}return r||(this[ax("0xf4")]=!1),o&&t.CKEditorError[ax("0xae")](o,this),n}[ax("0xb0")](e,n=null,o={}){if(e[ax("0x100")])return null;const r=this[ax("0x17")][ax("0x1c")].get(ax("0xb6")).me;for(const{suggestion:t,meta:o}of this[ax("0x77")](e,ax("0xc2")))if(o[ax("0x79")]){if(!o[ax("0x21")])return t;if(n==t[ax("0x9")]){const n=t.getFirstRange();return n[ax("0x90")][ax("0x11")](e[ax("0x9b")])?this._setSuggestionRange(t,this[ax("0x12a")][ax("0x3a")](e[ax("0x90")],n[ax("0x9b")])):this._setSuggestionRange(t,this[ax("0x12a")].createRange(n[ax("0x90")],e[ax("0x9b")])),t}}const s=(0,t.uid)(),i=r.id,a=n?ax("0x25")+n:ax("0xc2"),c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(a,s,i,e),c}[ax("0x12")](e,n=ax("0x72"),o={}){const r=this[ax("0x17")].plugins[ax("0x4d")]("Users").me,s=this[ax("0x50")][ax("0x139")]("insertion",n,ax("0xe9"));for(const t of this.getSuggestions())if(t[ax("0xad")].id==r.id&&ax("0xc2")==t[ax("0x6a")]&&t[ax("0x9")]==n&&(s(t.getRanges(),e)||s(e,t[ax("0x93")]()))){for(const n of e)t[ax("0x36")](n);return t}for(const t of e)for(const{suggestion:n,meta:o}of this[ax("0x77")](t,"insertion")){if(!o[ax("0x79")])continue;let t=!0;for(const o of n[ax("0x93")]())for(const n of e)if(!o[ax("0xc7")](n)){t=!1;break}if(t)return n}const i=(0,t.uid)(),a=r.id,c="insertion:"+n,x=this[ax("0xe2")]({id:i,type:c,createdAt:new Date,authorId:a,attributes:o});for(const t of e)this[ax("0x134")](c,i,a,t,Qo[ax("0x38")]());return x}[ax("0x26")](e,n,o=null,r={}){if(o=o||gx(n),e[ax("0x100")])return;const s=this.editor[ax("0x1c")][ax("0x4d")](ax("0xb6")).me,i=[];for(const{suggestion:t,meta:n}of this[ax("0x77")](e,ax("0xc2")))n[ax("0x79")]&&!n[ax("0xf3")]&&i[ax("0x48")](...t[ax("0x93")]());const a=function(e,t){const n=[];for(const o of t){const t=e.getIntersection(o);t&&n.push(t)}return n}(e,i),c=function(e,t){const n=[e];for(const e of t){let t=0;for(;t<n[ax("0x125")];){const o=n[t][ax("0x94")](e);n[ax("0xff")](t,1,...o),t+=o.length}}return n}(e,i);a[ax("0x125")]&&this._model.change((()=>{for(const e of a){const t=this[ax("0x50")].getSuggestionCallback(ax("0xfe"),o,"accept");this[ax("0x9c")]((()=>t([e],n,r)))}}));for(const e of c){let i=null,a=e[ax("0x90")],c=e[ax("0x9b")];for(const{suggestion:t,meta:n}of this[ax("0x77")](e,ax("0xfe"))){if(!n.isOwn)continue;if(t[ax("0x9")]!=o)continue;const r=t[ax("0x11d")]();if(r[ax("0xc7")](e,!0))return;a=a[ax("0xc8")](r[ax("0x90")])?a:r[ax("0x90")],c=c[ax("0x2e")](r[ax("0x9b")])?c:r[ax("0x9b")],i?r[ax("0x90")].isBefore(i[ax("0x11d")]()[ax("0x90")])?(i[ax("0xd8")](),i=t):t.removeMarkers():i=t}const x=this._model[ax("0x3a")](a,c);if(i)this[ax("0xda")](i,x);else{const e=(0,t.uid)(),i=s.id;this[ax("0xe2")]({id:e,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[ax("0x134")]("formatInline:"+o,e,i,x)}}}[ax("0xe4")](e,n,o=[],r=null,s={}){n[ax("0xb2")]||(n[ax("0xb2")]=n[ax("0xfb")]),n[ax("0xac")]=e.is(ax("0x5")),r=r||gx(n);const i=o[ax("0x12f")]((e=>fx(e,this._model))),a=e.is(ax("0x5"))?e:fx(e,this[ax("0x12a")]);i.push(a);let c=!0;for(const e of i)if(!this[ax("0x43")](e)){c=!1;break}if(c){const e=this[ax("0x50")][ax("0x139")](ax("0xed"),r,"accept");return void this[ax("0x9c")]((()=>e([a],n,s)))}let x=null,l=a[ax("0x90")],u=a[ax("0x9b")];for(const{suggestion:e,meta:t}of this._findSuggestions(a,ax("0xed"))){if(!t.isOwn||t[ax("0x21")]||t[ax("0x18")]||t[ax("0xf3")])continue;if(e[ax("0x8e")][ax("0xb2")]!=n[ax("0xb2")])continue;const o=e[ax("0x11d")]();if(e.subType==r){if(o[ax("0xc7")](a,!0))return;l=l.isBefore(o[ax("0x90")])?l:o[ax("0x90")],u=u[ax("0x2e")](o[ax("0x9b")])?u:o[ax("0x9b")],x?o[ax("0x90")][ax("0xc8")](x.getFirstRange()[ax("0x90")])?(x[ax("0xd8")](),x=e):e.removeMarkers():x=e}else{const t=a.getIntersection(o);this._cutOutSuggestionMarker(e,t)}}const d=this[ax("0x17")][ax("0x1c")][ax("0x4d")](ax("0xb6")).me,g=(0,t.uid)(),m=d.id;x?this._setSuggestionRange(x,this[ax("0x12a")][ax("0x3a")](l,u)):(this[ax("0xe2")]({id:g,type:ax("0x11b")+r,data:n,createdAt:new Date,authorId:m,attributes:s}),this[ax("0x134")]("formatBlock:"+r,g,m,this[ax("0x12a")].createRange(l,u)))}[ax("0x53")](e,n,o=[],r=null,s={}){n[ax("0xb2")]||(n[ax("0xb2")]=n[ax("0xfb")]),n[ax("0xac")]=!1,r=r||gx(n);const i=o[ax("0x12f")]((e=>fx(e,this[ax("0x12a")]))),a=e[ax("0x12f")]((e=>fx(e,this._model)));i[ax("0x48")](...a);let c=!0;for(const e of i)if(!this[ax("0x43")](e)){c=!1;break}if(c){const e=this._suggestionFactory.getSuggestionCallback("formatBlock",r,"accept");return void this[ax("0x9c")]((()=>e(a,n,s)))}const x=this[ax("0x17")][ax("0x1c")][ax("0x4d")](ax("0xb6")).me;for(const e of this[ax("0xde")]()){if(e[ax("0xad")].id!=x.id)continue;if(ax("0xed")!=e[ax("0x6a")]||e[ax("0x8e")][ax("0xb2")]!=n[ax("0xb2")])continue;const t=e.subType==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of e.getMarkers()){const s=r[ax("0x10b")]();if(o.isEqual(s)){t?(a.splice(n,1),n--):e[ax("0xfd")](r[ax("0x137")]);break}}}}if(0==a[ax("0x125")])return;const l=this[ax("0x50")][ax("0x139")](ax("0xed"),r,ax("0xe9"));for(const e of this[ax("0xde")]())if(e.author.id==x.id&&ax("0xed")==e.type&&e[ax("0x8e")][ax("0xb2")]==n[ax("0xb2")]&&e[ax("0x9")]==r&&(l(e[ax("0x93")](),a)||l(a,e.getRanges()))){for(const t of a)e[ax("0x36")](t);return e}const u=(0,t.uid)(),d=x.id,g="formatBlock:"+r,m=this[ax("0xe2")]({id:u,type:g,data:n,createdAt:new Date,authorId:d,attributes:s});for(const e of a)this[ax("0x134")](g,u,d,e,Qo.getMultiRangeId());return m}[ax("0xd1")](e,n=null,o={}){if(e[ax("0x100")])return null;const r=this[ax("0x17")][ax("0x1c")][ax("0x4d")](ax("0xb6")).me,s=new i.LiveRange(e[ax("0x90")],e.end);for(const{suggestion:e,meta:t}of this[ax("0x77")](s,ax("0xc2")))if(t.isOwn&&!t[ax("0x21")])if(e[ax("0x96")]){const t=e[ax("0x93")]()[ax("0x5b")]((e=>ax("0x9a")!=e[ax("0x111")][ax("0x22")]));if(t[ax("0x69")]((e=>s[ax("0xc7")](e,!0)))&&e[ax("0x51")](),t.some((e=>e[ax("0xc7")](s,!0)))){const e=this._suggestionFactory[ax("0x139")](ax("0xc3"),n,ax("0x42"));return this[ax("0x9c")]((()=>e([s],null,o))),null}}else{const t=s.getIntersection(e.getFirstRange());e[ax("0x13c")]([t],null,o)}if(s[ax("0xf6")](),s[ax("0x100")]||ax("0x9a")==s[ax("0x111")].rootName)return null;let a=null,c=s[ax("0x90")],x=s[ax("0x9b")];for(const{suggestion:e,meta:t}of this[ax("0x77")](s,ax("0xc3")))if(t[ax("0x79")])if(e[ax("0x96")]){let t=!0;for(const n of e[ax("0x93")]()){if(n[ax("0xc7")](s,!0))return e;s[ax("0xc7")](n)||(t=!1)}t&&e.discard()}else{const t=e[ax("0x11d")]();if(t[ax("0xc7")](s,!0))return e;c=c.isBefore(t[ax("0x90")])?c:t[ax("0x90")],x=x[ax("0x2e")](t[ax("0x9b")])?x:t[ax("0x9b")],a?t[ax("0x90")].isBefore(a.getFirstRange()[ax("0x90")])?(a[ax("0xd8")](),a=e):e[ax("0xd8")]():a=e}if(a)return this._setSuggestionRange(a,this._model.createRange(c,x)),a;{const e=(0,t.uid)(),s=this[ax("0x12a")].createRange(c,x),i=r.id,a=n?ax("0x8c")+n:"deletion",l=this[ax("0xe2")]({id:e,type:a,createdAt:new Date,authorId:i,attributes:o});return this[ax("0x134")](a,e,i,s),l}}[ax("0x118")](e,n=ax("0x72"),o={}){const r=this.editor[ax("0x1c")][ax("0x4d")]("Users").me,s=e[ax("0x12f")]((e=>new i.LiveRange(e.start,e[ax("0x9b")]))),a=new Set;for(const e of s)for(const{suggestion:t,meta:n}of this[ax("0x77")](e,ax("0xc2")))n[ax("0x79")]&&!n[ax("0x21")]&&a.add(t);for(const t of a)if(t[ax("0x96")]){const r=t[ax("0x93")]();if((!t[ax("0x2f")]||!t.attributes[ax("0x23")])&&r[ax("0x69")]((e=>s[ax("0x6c")]((t=>t[ax("0xc7")](e,!0)))))&&t[ax("0x51")](),s[ax("0x69")]((e=>r.some((t=>t[ax("0xc7")](e,!0)))))){const t=this[ax("0x50")][ax("0x139")](ax("0xc3"),n,"accept");return this[ax("0x9c")]((()=>t(e,null,o))),null}}else{const e=t[ax("0x11d")]();if(s.some((t=>t[ax("0xc7")](e,!0)))&&t[ax("0x51")](),s[ax("0x69")]((t=>e[ax("0xc7")](t,!0)))){const e=this[ax("0x50")][ax("0x139")](ax("0xc3"),n,ax("0x42"));return this[ax("0x9c")]((()=>e(s,null,o))),null}}const c=this._suggestionFactory[ax("0x139")](ax("0xc3"),n,ax("0xe9"));let x=null;for(const e of this[ax("0xde")]())if(e[ax("0xad")].id==r.id&&e[ax("0x106")]&&ax("0xc3")==e.type&&e[ax("0x9")]==n&&(c(e[ax("0x93")](),s)||c(s,e[ax("0x93")]())))if(x){if(e[ax("0x10e")]&&e.commentThread.length)continue;for(const t of e[ax("0x93")]())x[ax("0x91")](t)||x[ax("0x36")](t);e[ax("0xd8")]()}else{x=e;for(const t of s)e[ax("0x91")](t)||e[ax("0x36")](t)}if(x)return x;a.clear();for(const e of s)for(const{suggestion:t,meta:n}of this[ax("0x77")](e,ax("0xc3")))n[ax("0x79")]&&a[ax("0xf")](t);for(const e of a){const t=e[ax("0x93")]();if((!o||!o[ax("0x23")])&&s[ax("0x69")]((e=>t[ax("0x6c")]((t=>t[ax("0xc7")](e,!0))))))return e;(!e[ax("0x2f")]||!e[ax("0x2f")].skipNestingCheck)&&t[ax("0x69")]((e=>s[ax("0x6c")]((t=>t.containsRange(e,!0)))))&&e[ax("0x51")]()}const l=(0,t.uid)(),u=r.id,d="deletion:"+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const e of s)e.detach(),e[ax("0x100")]||ax("0x9a")==e[ax("0x111")].rootName||this._addSuggestionMarker(d,l,u,e,Qo[ax("0x38")]());return g}[ax("0xda")](e,t){const n=e[ax("0x108")]();this[ax("0x12a")][ax("0xaa")]((e=>{e[ax("0xc1")](n,{range:t})}))}[ax("0x112")](e){const t=e.id,n=this[ax("0x17")][ax("0x6d")][ax("0x4d")](ax("0x62"));this[ax("0x8f")][ax("0xa0")](t)||this[ax("0x8f")][ax("0x1a")]({channelId:n,threadId:t});const o=this[ax("0x8f")][ax("0x65")](t);o[ax("0x2")](ax("0x28")),o[ax("0x28")]=!1,e[ax("0x10e")]=o}_checkSuggestionCorrectness(e,n,o,r){if(e[ax("0x6a")]!=n||e[ax("0x9")]!=o||e[ax("0x87")].id!=r)throw this[ax("0x17")][ax("0x9d")]("track-changes-suggestion-data-mismatch"),new t.CKEditorError(ax("0xd3"),this)}_cutOutSuggestionMarker(e,n){const o=e[ax("0x11d")]();if(n[ax("0x11")](o))e[ax("0xd8")]();else if(o[ax("0xc7")](n)){const r=this[ax("0x12a")][ax("0x102")](n[ax("0x90")].nodeBefore,ax("0x9b"));this._setSuggestionRange(e,this[ax("0x12a")][ax("0x3a")](o[ax("0x90")],r));const s=(0,t.uid)(),i=e[ax("0x87")].id,a=e[ax("0x6a")]+":"+e[ax("0x9")];this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:i,data:e[ax("0x8e")],attributes:e[ax("0x2f")]});const c=this[ax("0x12a")][ax("0x102")](n.end[ax("0x86")],ax("0x119")),x=this[ax("0x12a")][ax("0x3a")](c,o[ax("0x9b")]);this[ax("0x134")](a,s,i,x)}else if(o[ax("0x1b")](n[ax("0x90")])){const t=this[ax("0x12a")].createPositionAt(n[ax("0x90")][ax("0x34")],"end");this[ax("0xda")](e,this[ax("0x12a")][ax("0x3a")](o[ax("0x90")],t))}else{const t=this[ax("0x12a")][ax("0x102")](n[ax("0x9b")][ax("0x86")],ax("0x119"));this[ax("0xda")](e,this._model[ax("0x3a")](t,o.end))}}[ax("0x43")](e){for(const{suggestion:t,meta:n}of this[ax("0x77")](e,ax("0xc2"))){if(!n[ax("0x79")])continue;const o=t[ax("0x93")]();for(const t of o)if(!e.getDifference(t)[ax("0x125")])return!0}return!1}[ax("0xf5")](e){const n=this[ax("0x17")].plugins.get("Users")[ax("0x52")](e);if(!n)throw new t.CKEditorError(ax("0xa9"),this);return n}_getExternalAuthor(e){const t=this[ax("0x17")].plugins[ax("0x4d")]("Users"),n=Mc(ax("0x68")+e);return t[ax("0x52")](n)||t[ax("0x46")]({id:n,name:e})}[ax("0xa1")](e,t,n,o,r){const s=this[ax("0xf5")](o),i=this[ax("0x50")][ax("0xbb")](e,t,n,s,r,(e=>this[ax("0x71")](n,{attributes:e})));return this[ax("0x3")](i,ax("0x42"),(()=>{this._updateSuggestionData(n,{state:ax("0xe3")})}),{priority:ax("0x57")}),this.listenTo(i,"discard",(()=>{this._updateSuggestionData(n,{state:ax("0x133")})}),{priority:ax("0x57")}),this._suggestions[ax("0x124")](n,i),this[ax("0x15")][ax("0x124")](i,ax("0x11a")),i}[ax("0x5d")](e){const t=e[ax("0x1")](":");return{group:t[0],type:t[1],subType:t.length>=5?t[2]:null,id:t[ax("0x125")]<5?t[2]:t[3],authorId:t[ax("0x125")]<5?t[3]:t[4],markerCount:6==t.length?t[5]:null}}[ax("0x54")](e,n,o){const r=e.getFirstRange(),s=r.start,i=r[ax("0x9b")];this[ax("0xda")](e,this[ax("0x12a")][ax("0x3a")](s,n));const a=(0,t.uid)(),c=e[ax("0x87")].id,x=e[ax("0x6a")]+(e[ax("0x9")]?":"+e[ax("0x9")]:"");this[ax("0xe2")]({id:a,type:x,createdAt:new Date,authorId:c,originalSuggestionId:e.id,attributes:e.attributes,data:e[ax("0x8e")]}),ax("0xed")==e[ax("0x6a")]&&(o=this[ax("0x12a")][ax("0xa2")](o[ax("0x86")])),this[ax("0x134")](x,a,c,this._model[ax("0x3a")](o,i))}_findSuggestions(e,t=null){const n=[],o=this[ax("0x12a")].schema,r=this[ax("0x17")][ax("0x1c")][ax("0x4d")](ax("0xb6")).me;for(const s of this[ax("0xde")]())if(s.isInContent&&(!t||s[ax("0x6a")]==t))for(const t of s[ax("0x93")]()){const i=e[ax("0x90")][ax("0x11")](t[ax("0x9b")])||e.end[ax("0x11")](t[ax("0x90")]);if(i||e[ax("0xcd")](t)){const a=e[ax("0xc7")](t)&&lx(o,t[ax("0x90")],e),c=t[ax("0xc7")](e)&&lx(o,e[ax("0x90")],t);n[ax("0x48")]({suggestion:s,meta:{isOwn:r==s[ax("0xad")],isNextTo:i,isInsideObject:a,containsRangeInObject:c}});break}}return n}[ax("0x134")](e,t,n,o,r=null){this[ax("0x12a")].change((s=>{let i=ax("0xcc")+e+":"+t+":"+n;r&&(i=i+":"+r),s.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[ax("0xb8")](e){const t=e[ax("0xb")],n=e[ax("0x114")];e[ax("0xb")]=null,null!=t&&(t[ax("0x114")]=null),e.next=null,null!=n&&(n.previous=null),"ready"==this[ax("0x15")][ax("0x4d")](e)&&(this[ax("0x15")][ax("0x124")](e,"removed"),this.fire(ax("0x5c"),e,t,n))}_setSuggestionData(e){const n=e.id,o=this[ax("0x110")](e);if(this[ax("0xca")]&&this[ax("0xca")][ax("0x117")]){const r=this[ax("0x17")].plugins[ax("0x4d")](ax("0x11f")),s=o[ax("0x55")],i=o[ax("0x9")]?o.type+":"+o.subType:o.type,a=this[ax("0x17")][ax("0xb1")],c=r[ax("0xf")](Yo(a,ax("0xa5"))),x={id:n,type:i,hasComments:s,data:e.data||null,originalSuggestionId:e[ax("0x10f")]||null,attributes:o[ax("0x2f")]};this._adapter[ax("0x117")](x).then((e=>{o._saved=!0,r.remove(c),e&&e[ax("0xd4")]&&(this[ax("0x11c")][ax("0x4d")](n)[ax("0xd4")]=e[ax("0xd4")])}))[ax("0xb7")]((e=>{throw(0,t.logWarning)(ax("0x7e")),this[ax("0x17")][ax("0x116")][ax("0xef")]({isUndoable:!1},(()=>{o[ax("0x51")]()})),o.stopListening(),this._suggestions[ax("0x113")](o.id),this[ax("0x15")][ax("0x113")](o),e}))}return o}[ax("0x71")](e,t){const n=this[ax("0x17")][ax("0x1c")][ax("0x4d")](ax("0x11f")),o=this[ax("0x11c")][ax("0x4d")](e);if(this._adapter&&this[ax("0xca")][ax("0x75")])if(o[ax("0x129")]){const o=n[ax("0xf")](Yo(this[ax("0x17")][ax("0xb1")],ax("0xa5")));this[ax("0xca")][ax("0x75")](e,t).then((()=>{n[ax("0x2b")](o)}))}else o.on(ax("0x58"),(()=>{this[ax("0x71")](e,t)}))}[ax("0x35")](e){if(!this._adapter||!this[ax("0xca")][ax("0x10")])throw new t.CKEditorError(ax("0x123"),this);return this[ax("0xca")][ax("0x10")](e)}[ax("0x131")](e){const{id:t,type:n,subType:o,authorId:r}=this[ax("0x5d")](e),s=this[ax("0x11c")][ax("0x4d")](t)||this[ax("0xa1")](n,o,t,r);switch(this[ax("0x60")](s,n,o,r),this[ax("0x15")].get(s)){case ax("0x11a"):this[ax("0x35")](t)[ax("0x4a")]((e=>{let n=Promise.resolve();e[ax("0x55")]&&(n=this[ax("0x8f")].fetchCommentThread({channelId:this.editor.config[ax("0x4d")](ax("0x62")),threadId:t})),n.then((()=>{this[ax("0x110")](e)[ax("0x129")]=!0}))})),this[ax("0x15")].set(s,ax("0x3e"));break;case ax("0xbf"):this[ax("0x71")](t,{state:ax("0x7c")});case ax("0xf1"):this._suggestionState.set(s,ax("0x56")),this[ax("0x89")](ax("0xa"),s);break;case"ready":this.fire(ax("0x120"),s)}return s[ax("0x98")](e),s}[ax("0x45")](e){const t=Array[ax("0x12b")](e)[ax("0x5b")]((e=>!e[ax("0x96")])),n=this.getSuggestions({skipNotAttached:!0})[ax("0x5b")]((e=>!e[ax("0x96")])),o=n[ax("0x5b")]((t=>!e[ax("0x97")](t))),r=new Map(n[ax("0x12f")]((e=>[e,this[ax("0x50")][ax("0x139")](e[ax("0x6a")],e[ax("0x9")],ax("0xf8"))]))),s=new Map(n.map((e=>[e,e[ax("0x11d")]()]))),i=new Set,a=new Set;for(let e=0;e<t[ax("0x125")];e++)c(t[e],t,e+1);for(let e=0;e<t[ax("0x125")];e++)c(t[e],o,0);for(let e=0;e<t[ax("0x125")];e++){const n=t[e];!a[ax("0x97")](n)&&n[ax("0xb")]&&(n[ax("0xb")][ax("0x114")]===n&&(n.previous[ax("0x114")]=null),n[ax("0xb")]=null),!i[ax("0x97")](n)&&n.next&&(n.next[ax("0xb")]===n&&(n[ax("0x114")][ax("0xb")]=null),n.next=null)}function c(e,t,n){for(let o=n;o<t[ax("0x125")];o++){const n=x(e,t[o]);n&&(n[0].next=n[1],n[1][ax("0xb")]=n[0],i[ax("0xf")](n[0]),a[ax("0xf")](n[1]))}}function x(e,t){if(e.author.id!==t.author.id)return null;const n=r.get(e)(e,t,s.get(e),s[ax("0x4d")](t));return n&&r[ax("0x4d")](t)(e,t,s[ax("0x4d")](e),s[ax("0x4d")](t))?n[1][ax("0x10e")]&&n[1].commentThread[ax("0x125")]?null:n:null}}[ax("0x44")](e){const t=Array.from(e),n=this[ax("0xde")]({skipNotAttached:!0}),o=n[ax("0x5b")]((t=>!e[ax("0x97")](t))),r=new Map(t[ax("0x12f")]((e=>[e,this[ax("0x50")][ax("0x139")](e.type,e.subType,ax("0xe9"))]))),s=new Map(n.map((e=>[e,e[ax("0x93")]()])));for(let e=0;e<t[ax("0x125")];e++)if(i(this,t[e],t,e+1))return!0;for(let e=0;e<t[ax("0x125")];e++)if(i(this,t[e],o,0))return!0;return!1;function i(e,t,n,o){for(let i=o;i<n[ax("0x125")];i++){const o=n[i];if(o[ax("0x6a")]!==t.type||o.author.id!==t[ax("0xad")].id||o[ax("0x9")]!==t[ax("0x9")])continue;const a=r.get(t),c=s[ax("0x4d")](t),x=s[ax("0x4d")](o),l=t[ax("0x10e")]&&t[ax("0x10e")][ax("0x125")],u=o[ax("0x10e")]&&o.commentThread[ax("0x125")];if(!l&&a(x,c))return e[ax("0x105")](o,t),s[ax("0x113")](t),!0;if(!u&&a(c,x))return e[ax("0x105")](t,o),s[ax("0x113")](o),!0}return!1}}[ax("0x105")](e,t){if(e.isMultiRange)for(const n of t.getRanges())e[ax("0x36")](n);else{const n=t[ax("0x11d")]().end;this[ax("0xda")](e,this[ax("0x12a")][ax("0x3a")](e[ax("0x11d")]()[ax("0x90")],n))}t[ax("0xd8")]()}}(0,t.mix)(cx,t.EmitterMixin);class xx{constructor(e){this[ax("0x1e")]=e,this[ax("0x12a")]=e[ax("0x116")],this[ax("0xea")]=new Map,this[ax("0xab")]=new Map,this[ax("0x132")]()}[ax("0xbb")](e,t,n,o,r,s){return new Qo(this[ax("0x12a")],{type:e,subType:t,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[ax("0x139")](e,t,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(e,t,ax("0x51"))(...n)})}[ax("0x47")](e,t,n,o){const r=e+":"+t+":"+n;this[ax("0xea")].set(r,o)}[ax("0x139")](e,t,n){const o=e+":"+t+":"+n;return this._customCallbacks.get(o)||this[ax("0xab")][ax("0x4d")](e+":"+n)}_registerDefaultCallbacks(){const e=()=>{},t=e=>{e[ax("0xbe")](((e,t)=>e[ax("0x90")][ax("0xc8")](t[ax("0x90")])?1:-1)),this[ax("0x12a")][ax("0xaa")]((t=>{for(const n of e){let e;e=n[ax("0x9b")][ax("0x136")]&&n.end[ax("0x86")]==n[ax("0x90")][ax("0xf7")]?t[ax("0x19")](n.start[ax("0xf7")],"on"):t.createSelection(n),this._model[ax("0xf0")](e,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(e,t)=>{this[ax("0x12a")][ax("0xaa")]((n=>{const{commandName:o,commandParams:r=[]}=t,s=e[0];if(ax("0x9a")==s[ax("0x111")][ax("0x22")])return;const a=Array.from(this[ax("0x12a")][ax("0x83")][ax("0x12c")][ax("0x93")]())[ax("0x12f")]((e=>i.LiveRange.fromRange(e)));ux(s)?n[ax("0x12e")](this._model[ax("0x3a")](s[ax("0x9b")])):n[ax("0x12e")](s);for(const e of this[ax("0x1e")][ax("0xe1")].commands())e[ax("0x14")]();r[ax("0x48")]({forceDefaultExecution:!0}),this[ax("0x1e")].execute(o,...r);const c=a[ax("0x5b")]((e=>ax("0x9a")!=e[ax("0x111")][ax("0x22")]));c[ax("0x125")]>0&&n.setSelection(c);for(const e of a)e.detach()}))},o=(e,t)=>1==e[ax("0x125")]&&1==t.length&&e[0][ax("0x9b")][ax("0x11")](t[0][ax("0x90")]),r=(e,t,n,o)=>hx(e,t,n,o,this[ax("0x12a")])?[e,t]:hx(t,e,o,n,this[ax("0x12a")])?[t,e]:null;this[ax("0xab")][ax("0x124")](ax("0x67"),e),this[ax("0xab")][ax("0x124")](ax("0x33"),t),this[ax("0xab")].set(ax("0x7a"),o),this[ax("0xab")][ax("0x124")](ax("0x4"),r),this[ax("0xab")][ax("0x124")](ax("0x99"),t),this[ax("0xab")][ax("0x124")]("deletion:discard",e),this._defaultCallbacks[ax("0x124")](ax("0xe5"),o),this._defaultCallbacks[ax("0x124")](ax("0x7b"),r),this._defaultCallbacks.set("formatInline:accept",n),this[ax("0xab")].set(ax("0x49"),e),this[ax("0xab")][ax("0x124")](ax("0x88"),o),this[ax("0xab")].set(ax("0xd7"),e),this[ax("0xab")].set(ax("0xd5"),n),this[ax("0xab")][ax("0x124")]("formatBlock:discard",e),this._defaultCallbacks.set(ax("0xdb"),o),this._defaultCallbacks[ax("0x124")]("formatBlock:chain",e)}}function lx(e,t,n){for(const o of t[ax("0x86")][ax("0xce")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n.containsItem(o))return!1;if(e[ax("0x122")](o)||e[ax("0xfa")](o))return!0}}function ux(e){return e[ax("0x9b")][ax("0x86")]==e.start[ax("0xf7")]&&e.end[ax("0x80")]}function dx(e,t,n,o){const r=e=>!e[ax("0x9f")].is(ax("0xcf"))&&!o[ax("0x122")](e.item),s=e[ax("0x90")][ax("0x5a")](r),i=e[ax("0x9b")].getLastMatchingPosition(r,{direction:ax("0x76")});return!(e[ax("0x90")][ax("0x11")](s)&&e[ax("0x9b")].isEqual(i)||(s[ax("0xc8")](i)?n.updateMarker(t,{range:n[ax("0x3a")](s,i)}):n[ax("0xfd")](t),0))}function gx(e){return Mc(e)}function mx(e){const t=e[ax("0x90")][ax("0xf7")];return t&&t.is(ax("0x30"))}function fx(e,t){const n=t[ax("0x6f")][ax("0x122")](e)||t[ax("0x6f")][ax("0x3b")](e);return t.createRange(t[ax("0x102")](e,ax("0x27")),n?t[ax("0x121")](e):t.createPositionAt(e,"end"))}function hx(e,t,n,o,r){if(n[ax("0x9b")][ax("0x11")](o.start))return!0;if(e[ax("0x6a")]!=t[ax("0x6a")])return!1;if(!n.end[ax("0x24")](o[ax("0x90")]))return!1;const s=r[ax("0x3a")](n[ax("0x9b")],o[ax("0x90")])[ax("0x92")]();for(const e of s)if([ax("0x128"),ax("0x1d")][ax("0x4e")](e[ax("0x6a")])&&r[ax("0x6f")].isLimit(e[ax("0x9f")]))return!1;return!0}const kx=["_acceptCommand","bind","PENDING_ACTION_SUGGESTION","discardSuggestion","plugins","_discardCommand","PendingActions","listenTo","locale","view","get","isDirty","add","model","acceptSuggestion","stopListening","_setPendingAction","commands","_removePendingAction","unbind","isEnabled","_editor","commentThreadController","_pendingAction","execute"];var bx,px;bx=kx,px=360,function(e){for(;--e;)bx.push(bx.shift())}(++px);const _x=function(e,t){return kx[e-=0]};class vx{constructor(e,t,n,o){this[_x("0x3")]=t,this[_x("0x18")]=n,this[_x("0xc")]=o,this._editor=e,this[_x("0xf")]=e[_x("0x7")].get(_x("0x4")),this[_x("0x14")]=e[_x("0x7")].get(_x("0x12")),this.view[_x("0x10")](_x("0xa")).to(this[_x("0xf")]),this[_x("0xd")]=null,n[_x("0x1")]&&this[_x("0x6")](),this[_x("0x16")](n,_x("0x4"),(()=>this[_x("0x4")]())),this[_x("0x16")](n,"discardSuggestion",(()=>this[_x("0x12")]())),this.listenTo(n,"change:isDirty",(()=>{n[_x("0x1")]?this[_x("0x6")]():this[_x("0x8")]()}))}acceptSuggestion(){this[_x("0xf")][_x("0xe")](this[_x("0x3")].id)}[_x("0x12")](){this[_x("0x14")][_x("0xe")](this[_x("0x3")].id)}destroy(){this[_x("0x18")][_x("0x9")](_x("0xa")),this[_x("0x5")](),this[_x("0xc")].destroy(),this._pendingAction&&this[_x("0x8")]()}[_x("0x6")](){const e=Yo(this._editor[_x("0x17")],_x("0x11"));this[_x("0xd")]=this[_x("0xb")][_x("0x13")][_x("0x0")]("PendingActions")[_x("0x2")](e)}_removePendingAction(){this[_x("0xb")][_x("0x13")][_x("0x0")](_x("0x15")).remove(this[_x("0xd")]),this[_x("0xd")]=null}}(0,t.mix)(vx,t.ObservableMixin);const Ex=["commentThreadInputView","set","updateComment","_config","isDirty","disabledSubmit","commentsListView","removeComment","_createCommentViews","length","editor","_createCommentThreadInputView","locale","disableComments","isReadOnly","value","setData","destroy","CommentView","element","_localUser","commentThread","_model","bind","isActive","focus","isEnabled","fire","editorConfig","authoredAt","commentInputView","delegate","submit"];var yx,Tx;yx=Ex,Tx=393,function(e){for(;--e;)yx.push(yx.shift())}(++Tx);const Cx=function(e,t){return Ex[e-=0]};class wx extends r.View{constructor(e,t,n,o){super(e),this.commentsListView=null,this[Cx("0x3")]=null,this[Cx("0x4")](Cx("0x1b"),!1),this[Cx("0x4")](Cx("0x20"),t.authoredAt),this[Cx("0x1a")](Cx("0x20")).to(t),this.set("descriptionParts",[]),this.set(Cx("0x7"),!1),this[Cx("0x4")](Cx("0x1d"),!1),this[Cx("0x19")]=t,this[Cx("0x17")]=n,this._config=o,o[Cx("0x10")]?this.set("length",1):this[Cx("0xb")]()}[Cx("0x1c")](){this[Cx("0x16")][Cx("0x1c")]()}[Cx("0x14")](){this[Cx("0x9")]&&this.commentsListView[Cx("0x14")](),this[Cx("0x3")]&&this[Cx("0x3")][Cx("0x14")](),super[Cx("0x14")]()}[Cx("0xb")](){const{CommentsListView:e}=this[Cx("0x6")];this.commentsListView=new e(this[Cx("0xf")],this[Cx("0x19")][Cx("0x18")],Object.assign({CommentView:this[Cx("0x6")][Cx("0x15")]},this[Cx("0x6")])),this[Cx("0x9")][Cx("0x1")](Cx("0xa")).to(this),this[Cx("0x9")][Cx("0x1")](Cx("0x5")).to(this),this[Cx("0x9")][Cx("0x1a")](Cx("0x1b")).to(this),this.set(Cx("0xc"),this.commentsListView.length+1),this[Cx("0x1a")](Cx("0xc")).to(this[Cx("0x9")],Cx("0xc"),(e=>e+1)),this[Cx("0x3")]=this._createCommentThreadInputView(),this.on(Cx("0xa"),(()=>this.focus())),this[Cx("0x1a")](Cx("0x7")).to(this[Cx("0x9")],"hasDirtyComment",this[Cx("0x3")][Cx("0x0")],Cx("0x12"),((e,t)=>e||!!t))}[Cx("0xe")](){const{CommentThreadInputView:e}=this[Cx("0x6")],t=new e(this[Cx("0xf")],this[Cx("0x17")],this._config[Cx("0x1f")]),n=t.commentInputView;return t[Cx("0x1a")]("showInput").to(this,Cx("0x1b"),this[Cx("0x19")].commentThread,Cx("0x11"),n,Cx("0x12"),((e,t,n)=>!!n||e&&!t)),n.on(Cx("0x2"),((e,t)=>{this[Cx("0x1e")]("addComment",t),n[Cx("0xd")][Cx("0x13")]("")})),n.on("cancel",(()=>this[Cx("0x1c")]())),n[Cx("0x1a")](Cx("0x8")).to(this._model[Cx("0x18")],Cx("0x11")),t}}const Ax=["formatDateTime","cancel",'<span class="ck-suggestion-type">',"setTemplate","type","ck-suggestion--accept","discardButton","ck-suggestion--disabled-comments","ck-annotation__main","span","commentThread","ck-suggestion-wrapper","children","Accept suggestion","getTemplate","ck-suggestion__actions","ck-annotation__info-name","source","getExternalSuggestionNote","extendTemplate","execute","ck-comment__info-time","isActive","commentsListView","acceptSuggestion","_model","name","fire","creator","div","color","discardSuggestion","commentThreadInputView","_descriptionElement","_createButton","attributes","element","innerText","content","ck-annotation__actions","userView","ck-annotation__info","_config","</p>","set","Discard suggestion","bind","ck-suggestion__main","locale","split","ck-suggestion__info-name","time","title","innerHTML","EXTERNAL_AVATAR","render","createElement","<p>","author","disableComments","ck-annotation__user","authoredAt","push","ck-suggestion__info","isEnabled","@external","descriptionParts","bindTemplate","</span>","description","ck-annotation__info-time","importWord","getUserViewNotificationText","ck-suggestion-wrapper--active","acceptButton","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-comment__external",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation","join","value","change:description","ck-annotation__content-wrapper"];var Rx,Ix;Rx=Ax,Ix=271,function(e){for(;--e;)Rx.push(Rx.shift())}(++Ix);const Sx=function(e,t){return Ax[e-=0]};class Mx extends wx{constructor(t,n,o,r){super(t,n,o,r),this[Sx("0x16")](Sx("0x41"),""),this[Sx("0x18")](Sx("0x41")).to(this,"descriptionParts",(e=>e&&e[0]?e[0][Sx("0x41")]:"")),this.bind(Sx("0x2f")).to(this,Sx("0x2c"),this,Sx("0x0"),((e,t)=>{let n="";for(const t of e)n+=Sx("0x23")+Nx(t[Sx("0x10")],t[Sx("0x8")])+Sx("0x15");return t?n:(0,s.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Sx("0x34")]=this[Sx("0xc")](Yo(t,Sx("0x4a")),e.icons.check,Sx("0x42"),Sx("0x2"),"sw"),this.discardButton=this[Sx("0xc")](Yo(t,Sx("0x17")),e.icons[Sx("0x3e")],"ck-suggestion--discard",Sx("0x9"),"sw"),this[Sx("0x12")]=new s.UserView(t,this._model.author,this[Sx("0x32")]()),this.userView[Sx("0x50")]({attributes:{class:["ck-suggestion__user",Sx("0x26")]}}),this[Sx("0x40")](this[Sx("0x4b")]())}[Sx("0x4b")](){const e=this[Sx("0x2d")],t=[{tag:Sx("0x7"),attributes:{class:[Sx("0x29"),Sx("0x13")]},children:[{tag:Sx("0x46"),children:[{text:this.userView[Sx("0x4")]}],attributes:{class:[Sx("0x1c"),Sx("0x4d")]}},{tag:Sx("0x1d"),attributes:{datetime:e.to(Sx("0x27")),class:[Sx("0x52"),Sx("0x30")]},children:[{text:e.to(Sx("0x27"),(e=>this[Sx("0x14")][Sx("0x3d")](e)))}]}]},{tag:Sx("0x7"),attributes:{class:[Sx("0x4c"),Sx("0x11")]},children:[this.acceptButton,this[Sx("0x43")]]},{tag:Sx("0x7"),attributes:{class:[Sx("0x3c")]}}];this[Sx("0x3")].isExternal&&t[Sx("0x28")]({tag:Sx("0x7"),attributes:{class:[Sx("0x36")]},children:[{text:this[Sx("0x4f")]()}]});const n={tag:"div",attributes:{class:[Sx("0x48"),e.if("isActive",Sx("0x33")),e.to(Sx("0x41"),(e=>"ck-suggestion-"+e)),this[Sx("0x14")][Sx("0x25")]&&Sx("0x44")],"data-suggestion-id":this._model.id,"data-thread-id":this[Sx("0x3")][Sx("0x47")].id,"data-author-id":this._model[Sx("0x24")].id,tabindex:-1},children:[{tag:Sx("0x7"),attributes:{class:["ck-suggestion",Sx("0x38")]},children:[this[Sx("0x12")],{tag:"div",attributes:{class:[Sx("0x19"),Sx("0x45")]},children:t}]}]};return this.commentsListView&&this[Sx("0xa")]&&n[Sx("0x49")][Sx("0x28")](this[Sx("0x1")],this.commentThreadInputView),n}[Sx("0x21")](){super[Sx("0x21")](),this[Sx("0xb")]=this[Sx("0xe")].querySelector(".ck-annotation__content-wrapper"),this[Sx("0xb")][Sx("0x1f")]=this.description,this.on(Sx("0x3b"),((e,t,n)=>{this[Sx("0xb")].innerHTML=n}))}[Sx("0xc")](e,t,n,o,s){const i=new r.ButtonView(this[Sx("0x1a")]);return i.set({label:e,icon:t,tooltip:!0,tooltipPosition:s}),i.extendTemplate({attributes:{class:n}}),i.on(Sx("0x51"),(()=>{this[Sx("0x5")](o,this._model.id)})),i[Sx("0x18")](Sx("0x2a")).to(this),i}[Sx("0x4f")](){return Sx("0x31")===this[Sx("0x3")][Sx("0xd")][Sx("0x2b")][Sx("0x4e")]?Yo(this.locale,Sx("0x35")):Yo(this.locale,"EXTERNAL_SUGGESTION")}[Sx("0x32")](){return this._model.isExternal?Sx("0x31")===this[Sx("0x3")][Sx("0xd")][Sx("0x2b")].source?Yo(this[Sx("0x1a")],"EXTERNAL_IMPORT_WORD_AVATAR",this[Sx("0x3")][Sx("0x6")].name):Yo(this[Sx("0x1a")],Sx("0x20"),this[Sx("0x3")][Sx("0x6")].name):null}}function Nx(e,t){let n="";return n+=e[Sx("0x1b")]("*").map(((e,t)=>t%2!=0?Sx("0x3f")+Lx(e)+Sx("0x2e"):Lx(e)))[Sx("0x39")](""),t&&(n+=Sx("0x37")+t[Sx("0x3a")]+'" title="'+t[Sx("0x1e")]+'"></span>'),n}function Lx(e){const t=document[Sx("0x22")](Sx("0x46"));return t[Sx("0xf")]=e,t[Sx("0x1f")]}const Ox=["config","getSuggestion","model","commentThread","previous","Accept all selected suggestions","_updateController","discardButton","_initializeController","_createUIButton","comments.maxCommentsWhenCollapsed","trackChanges.SuggestionThreadView","isEnabled","CommentsRepository","delete","Annotations","filter","createAnnotation","keys","acceptAllSuggestions","mainView","editor","_descriptionFactory","getDescriptions","innerView","activeMarkers","locale","suggestionUnloaded","isInContent","destroy","componentFactory","unbind","Discard all suggestions","add","requires","listenTo","isMultiRange","getMarkerNames","toMany","commandName","createCommentThreadController","_destroyController","comments.editorConfig","has","change:previous","suggestionChanged","_handleSuggestionControllerDelayed","focus","acceptSelectedSuggestions","descriptionParts","comments","set","trackChanges","SuggestionThreadView","value","buttonView","remove","bind","button","getRanges","view","from","type","init","getRange","push","pluginName","suggestion-","addSourceCollector","getByInnerView","CommentsUI","execute","length","head","getFirstRange","_annotationViews","_suggestionToController","getAllAdjacentSuggestions","Track changes","TrackChangesEditing","comments.maxCommentCharsWhenCollapsed","change:activeAnnotations","isOn","separator","isDirty","_handleControllerBuffer","values","registerAnnotation","_disableComments","EditorAnnotations","addComment","size","lowest","stopListening","define","source","trackChanges.disableComments","getContainedElement","arrowView","createAnnotationView","commands","getJoined","discardSelectedSuggestions","discardAllSuggestions","Discard all selected suggestions","get","plugins","editing","_viewToController","some"];var Fx,Px;Fx=Ox,Px=338,function(e){for(;--e;)Fx.push(Fx.shift())}(++Px);const Dx=function(e,t){return Ox[e-=0]};class Bx extends e.Plugin{static get[Dx("0x1a")](){return[cx,s.Users,Dx("0x5"),Dx("0x7"),Dx("0x51")]}static get[Dx("0x3a")](){return"TrackChangesUI"}constructor(e){super(e),this[Dx("0x44")]=new Map,this[Dx("0x64")]=new Map,this._annotationViews=new Map,this[Dx("0x4d")]=new Map;const t=this[Dx("0xd")][Dx("0x66")];t[Dx("0x56")](Dx("0x3"),Mx),t.define("trackChanges.disableComments",!1),this[Dx("0x50")]=t[Dx("0x61")](Dx("0x58"))}[Dx("0x26")](e,t){0===this[Dx("0x4d")][Dx("0x53")]&&setTimeout((()=>{for(const[e,t]of this[Dx("0x4d")]){const n=this[Dx("0x44")][Dx("0x23")](e);n||t?n&&t&&this[Dx("0x21")](e):this[Dx("0x0")](e)}this[Dx("0xd")][Dx("0x62")][Dx("0x61")](Dx("0x51")).refreshSelectedViews(),this[Dx("0x4d")].clear()}),10),this[Dx("0x4d")].set(e,t)}[Dx("0x37")](){const e=this[Dx("0xd")],t=e[Dx("0x62")].get(cx),n=e[Dx("0x62")][Dx("0x61")](Dx("0x7")),o=e[Dx("0x62")][Dx("0x61")](Dx("0x51")),r=e[Dx("0x62")].get(Dx("0x5"));e.ui[Dx("0x16")][Dx("0x19")]("trackChanges",(e=>this[Dx("0x1")](e))),o[Dx("0x3c")]((()=>{const e=[];for(const[t,n]of Array[Dx("0x35")](this._suggestionToController)){const o=t[Dx("0x45")](),r=[];for(const e of o){if(!e.isInContent)continue;if(e[Dx("0x1c")]){r[Dx("0x39")](...e[Dx("0x33")]());continue}const t=e[Dx("0x42")]();if(r.length>0){const e=r[0][Dx("0x5d")](t);if(e){r[0]=e;continue}}r[Dx("0x39")](t)}e[Dx("0x39")]([n[Dx("0x34")],r])}return e})),this[Dx("0x1b")](t,"suggestionLoaded",((e,t)=>{this[Dx("0x1b")](t,Dx("0x24"),((e,n,o,r)=>{t[Dx("0x14")]&&(null==o?(this[Dx("0x6c")](r[Dx("0x41")]),this._handleSuggestionControllerDelayed(t,!1)):(this[Dx("0x6c")](o.head),this._handleSuggestionControllerDelayed(t,!0)))})),null===t[Dx("0x6a")]?this[Dx("0x26")](t,!1):this[Dx("0x6c")](t[Dx("0x41")])})),this[Dx("0x1b")](t,Dx("0x13"),((e,t,n)=>{this[Dx("0x55")](t,Dx("0x24")),this[Dx("0x4d")][Dx("0x6")](t);const o=n?n[Dx("0x41")]:t,r=this[Dx("0x44")][Dx("0x61")](o);null!==n&&this[Dx("0x6c")](o),null===n&&r&&this[Dx("0x21")](t)})),this[Dx("0x1b")](t,Dx("0x25"),((e,t)=>{this[Dx("0x6c")](t)})),this.listenTo(n,Dx("0x49"),((e,n,o)=>{const r=Array[Dx("0x35")](o,(e=>e[Dx("0x10")]))[Dx("0x8")]((e=>this[Dx("0x64")][Dx("0x23")](e))),s=[];for(const e of r){const t=this[Dx("0x64")][Dx("0x61")](e)[Dx("0x68")][Dx("0x45")]();s[Dx("0x39")](...t.reduce(((e,t)=>[...e,...t[Dx("0x1d")]()]),[]))}t[Dx("0x11")]=s})),this[Dx("0x1b")](r,Dx("0x52"),((e,{threadId:n,isFromAdapter:o})=>{if(o||!t.hasSuggestion(n))return;const r=t[Dx("0x67")](n);this._suggestionToController.get(r)[Dx("0x34")][Dx("0x27")]()}),{priority:Dx("0x54")})}[Dx("0x1")](e){const n=(0,r.createDropdown)(e,r.SplitButtonView),o=this[Dx("0xd")].commands[Dx("0x61")]("trackChanges"),s=Yo(e,Dx("0x46"));n[Dx("0x2f")][Dx("0x2b")]({tooltip:s,label:s,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Dx("0x2f")].bind(Dx("0x4a")).to(o,Dx("0x2e")),n.buttonView.on(Dx("0x3f"),(()=>{o[Dx("0x3f")](),this.editor[Dx("0x63")][Dx("0x34")].focus()}));const i=new t.Collection,a=[{type:"switchbutton",model:{withText:!0,label:s,commandName:"trackChanges"}},{type:Dx("0x4b")},{type:Dx("0x32"),model:{withText:!0,label:Yo(e,"Accept all suggestions"),commandName:Dx("0xb")}},{type:Dx("0x32"),model:{withText:!0,label:Yo(e,Dx("0x6b")),commandName:Dx("0x28")}},{type:"button",model:{withText:!0,label:Yo(e,Dx("0x18")),commandName:Dx("0x5f")}},{type:Dx("0x32"),model:{withText:!0,label:Yo(e,Dx("0x60")),commandName:Dx("0x5e")}}];for(const e of a){const t={type:e[Dx("0x36")]};if(e.model){const n=new r.Model(e[Dx("0x68")]),o=this[Dx("0xd")][Dx("0x5c")][Dx("0x61")](n[Dx("0x1f")]);n[Dx("0x31")](Dx("0x4a"),Dx("0x4")).to(o,Dx("0x2e"),Dx("0x4")),t.model=n}i[Dx("0x19")](t)}(0,r.addListToDropdown)(n,i);const c=a[Dx("0x8")]((e=>null!=e.model)).map((e=>this.editor[Dx("0x5c")][Dx("0x61")](e.model[Dx("0x1f")])));return n[Dx("0x2f")].actionView[Dx("0x17")]("isEnabled"),n.buttonView[Dx("0x5a")][Dx("0x17")](Dx("0x4")),n[Dx("0x2f")].actionView[Dx("0x31")](Dx("0x4")).to(o,"isEnabled"),n[Dx("0x2f")][Dx("0x5a")][Dx("0x31")](Dx("0x4"))[Dx("0x1e")](c,Dx("0x4"),((...e)=>e[Dx("0x65")]((e=>e)))),n.on(Dx("0x3f"),(e=>{this.editor[Dx("0x3f")](e[Dx("0x57")][Dx("0x1f")]),this[Dx("0xd")][Dx("0x63")][Dx("0x34")][Dx("0x27")]()})),n}_initializeController(e){const t=this[Dx("0xd")],n=t[Dx("0x66")],o=t.plugins[Dx("0x61")](Dx("0x7")),r=t.plugins[Dx("0x61")](Dx("0x5")),i=t[Dx("0x62")][Dx("0x61")](Dx("0x51")),a=e[Dx("0x45")]()[Dx("0x8")]((e=>e[Dx("0x14")])),c=t.plugins[Dx("0x61")](s.Users).me,x=n[Dx("0x61")](Dx("0x2c"))[Dx("0x2d")],{CommentsListView:l,CommentThreadInputView:u}=t[Dx("0x62")].get(Dx("0x3e"));let d,g;this._annotationViews[Dx("0x23")](e.id)?(g=this[Dx("0x43")][Dx("0x61")](e.id),d=g.mainView):(d=new x(t[Dx("0x12")],e,c,{disableComments:this[Dx("0x50")],editorConfig:n[Dx("0x61")](Dx("0x22")),maxCommentsWhenCollapsed:n[Dx("0x61")](Dx("0x2")),maxThreadTotalWeight:n[Dx("0x61")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Dx("0x61")](Dx("0x48")),formatDateTime:(0,s.getDateTimeFormatter)(n[Dx("0x61")](Dx("0x12"))),CommentView:n.get(Dx("0x2a")).CommentView,CommentsListView:l,CommentThreadInputView:u}),d.acceptButton.on(Dx("0x3f"),(()=>{t[Dx("0x63")][Dx("0x34")][Dx("0x27")]()})),d[Dx("0x6d")].on(Dx("0x3f"),(()=>{t[Dx("0x63")][Dx("0x34")][Dx("0x27")]()})),g=o[Dx("0x5b")](this[Dx("0xd")][Dx("0x12")],d),g.bind(Dx("0x4c")).to(d,"isDirty"),g[Dx("0x31")](Dx("0x40")).to(d),g[Dx("0x31")](Dx("0x36")).to(d,Dx("0x36"),(e=>Dx("0x3b")+e)),this[Dx("0x43")][Dx("0x2b")](e.id,g));const m=r[Dx("0x20")](e[Dx("0x69")],d),f=new vx(t,e,d,m);d[Dx("0x29")]=t[Dx("0x62")][Dx("0x61")](Dx("0x47"))[Dx("0xe")][Dx("0xf")](a),this._suggestionToController[Dx("0x2b")](e,f),this._viewToController[Dx("0x2b")](d,f);const h=o[Dx("0x9")]({view:g,target:()=>{const e=a[0].getFirstMarker();if(!e)return null;const n=e[Dx("0x38")]()[Dx("0x59")]();return n&&!t[Dx("0x63")].mapper.toViewElement(n)?null:(0,s.getMarkerDomElement)(t[Dx("0x63")],e)||null},type:()=>Dx("0x3b")+f[Dx("0x34")][Dx("0x36")]});o[Dx("0x19")](h),i[Dx("0x4f")](h)}[Dx("0x21")](e){const t=this[Dx("0xd")][Dx("0x62")][Dx("0x61")](Dx("0x7")),n=this[Dx("0x44")][Dx("0x61")](e),o=n[Dx("0x34")],r=t[Dx("0x3d")](o);r&&t[Dx("0x30")](r),this[Dx("0x44")][Dx("0x6")](e),this[Dx("0x64")].delete(o),n.destroy()}[Dx("0x6c")](e){if(!e[Dx("0x14")]||!this._suggestionToController[Dx("0x23")](e))return;const t=this.editor.plugins[Dx("0x61")](Dx("0x47")),n=this._suggestionToController[Dx("0x61")](e),o=e[Dx("0x45")]();n.view[Dx("0x29")]=t._descriptionFactory[Dx("0xf")](o)}[Dx("0x15")](){for(const e of this._suggestionToController[Dx("0xa")]())this[Dx("0x21")](e);for(const e of this[Dx("0x43")][Dx("0x4e")]())e[Dx("0xc")].destroy();super[Dx("0x15")]()}}var jx,Ux,Hx=["plugins","getSuggestions","addSuggestion","pluginName","requires","TrackChanges","editor","getSuggestion","adapter","get"];jx=Hx,Ux=457,function(e){for(;--e;)jx.push(jx.shift())}(++Ux);var Gx=function(e,t){return Hx[e-=0]};class Vx extends e.Plugin{static get[Gx("0x7")](){return[cx,Bx,"Comments"]}static get[Gx("0x6")](){return Gx("0x8")}set[Gx("0x1")](e){this[Gx("0x9")][Gx("0x3")].get(cx)[Gx("0x1")]=e}get[Gx("0x1")](){return this[Gx("0x9")].plugins.get(cx).adapter}[Gx("0x5")](e){return this[Gx("0x9")].plugins.get(cx).addSuggestionData(e)}[Gx("0x4")](e){return this[Gx("0x9")][Gx("0x3")][Gx("0x2")](cx)[Gx("0x4")](e)}[Gx("0x0")](e){return this[Gx("0x9")].plugins[Gx("0x2")](cx)[Gx("0x0")](e)}}const zx=["init","discardAllSuggestions","createElement","div","pluginName","getDataWithAcceptedSuggestions","has","config","addSuggestionData","TrackChangesDataGetter","concat","CommentsRepository","RealTimeCollaborativeRevisionHistory","editor","plugins","addUser","WordCount","result","model","TrackChangesEditing","TrackChangesData","appendChild","get","getRootNames","trackChangesData.editorCreator","constructor","from","create","initialData","acceptAllSuggestions","filter","add","requires","createDocumentFragment","includes","editorCreator","trackChangesData","getDataWithDiscardedSuggestions","track-changes-data-invalid-editor-creator","RealTimeCollaborativeTrackChanges","_adapter","Users","push","users","context","execute","RealTimeCollaborativeComments","every","function","data","extraPlugins","useAnonymousUser","document","getUser"];var Wx,Kx;Wx=zx,Kx=399,function(e){for(;--e;)Wx.push(Wx.shift())}(++Kx);const qx=function(e,t){return zx[e-=0]},Xx=[qx("0x7"),qx("0x17"),"toolbar"],Zx=["RealTimeCollaborativeEditing",qx("0x19"),qx("0x12"),qx("0x2d"),"Autosave",qx("0x31")];class $x extends e.Plugin{static get requires(){return[cx]}static get[qx("0x25")](){return qx("0x35")}[qx("0x21")](){const e=this.editor;if(e.config.define(qx("0x3"),(t=>e[qx("0x4")][qx("0x6")]("",t))),qx("0x1b")!=typeof e[qx("0x28")][qx("0x1")](qx("0xf"))[qx("0xe")])throw new t.CKEditorError(qx("0x11"))}[qx("0x26")](e){return Qx(this.editor,!0,e)}[qx("0x10")](e){return Qx(this[qx("0x2e")],!1,e)}}class Jx extends e.Plugin{static get[qx("0x25")](){return qx("0x2a")}[qx("0x21")](){this[qx("0x32")]="end",this[qx("0x2e")][qx("0x2f")].get(qx("0x2c"))._adapter={getCommentThread:()=>new Promise((()=>{}))},this[qx("0x2e")][qx("0x2f")].get(qx("0x34"))[qx("0x13")]=null}}async function Qx(e,t,n){const o=function(e){const t={};for(const n of e.config.names())Xx.includes(n)||(t[n]=e.config[qx("0x1")](n));const n=e[qx("0x4")].builtinPlugins||[],o=t.extraPlugins||[];delete t[qx("0x1d")];const r=n[qx("0x2b")](t[qx("0x2f")])[qx("0x2b")](o).map((e=>"string"==typeof e?n.find((t=>t[qx("0x25")]==e)):e)),s=Array[qx("0x5")](new Set(r));return t[qx("0x2f")]=s[qx("0x9")]((e=>Yx(e,new Set))),t[qx("0x2f")][qx("0x15")](Jx),t.plugins[qx("0x15")](cx),t}(e),r=document[qx("0xc")](),s=e.config[qx("0x1")](qx("0xf")).editorCreator,i=await s(o,(()=>function(e){const t=document[qx("0x23")](qx("0x24"));return e[qx("0x0")](t),t}(r)));!function(e,t){const n=e[qx("0x33")][qx("0x1f")][qx("0x2")]().reduce(((t,n)=>(t[n]=e[qx("0x1c")][qx("0x1")]({rootName:n}),t)),{}),o=e[qx("0x2f")][qx("0x1")]("Users")[qx("0x16")].map((e=>({id:e.id}))),r=e[qx("0x2f")][qx("0x1")](qx("0x34")).getSuggestions({skipNotAttached:!0,toJSON:!0}),s=t.plugins[qx("0x1")](qx("0x14")),i=t[qx("0x2f")][qx("0x1")](qx("0x34"));for(const e of o)s[qx("0x20")](e.id)||s[qx("0x30")](e);s.me||s[qx("0x1e")]();for(const e of r)i[qx("0x29")](e);t[qx("0x1c")].set(n)}(e,i),i[qx("0x18")](qx(t?"0x8":"0x22"));const a=i[qx("0x1c")][qx("0x1")](n);return await i.destroy(),a}function Yx(e,t){if(t[qx("0x27")](e))return!0;t[qx("0xa")](e);const n=qx("0x1b")==typeof e?e[qx("0x25")]||e.name:e;return(!n||!Zx[qx("0xd")](n))&&(!e[qx("0xb")]||e[qx("0xb")][qx("0x1a")]((e=>Yx(e,t))))}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
4
|
+
*/(()=>{var e={701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content pre>code.ck-suggestion-marker-formatBlock{box-shadow:-7px 0 0 0 #ededed,-10px 0 0 0 var(--ck-color-suggestion-marker-format-border);display:block}.ck-content pre>code.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 #ededed,-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}",""]);const s=r},156:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},510:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.image{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image img{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image,.ck-content .ck-suggestion-marker-insertion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},481:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.media .ck-media__wrapper{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},437:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-color-suggestion-widget-th-insertion-background:rgba(102,229,119,.12);--ck-color-suggestion-widget-th-insertion-background-active:rgba(37,218,61,.14);--ck-color-suggestion-widget-th-deletion-background:rgba(229,102,134,.14);--ck-color-suggestion-widget-th-deletion-background-active:rgba(196,33,74,.16)}.ck-content figure.table .ck-suggestion-marker-formatBlock{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content figure.table .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-insertion.table{border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table{border-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-th-insertion-background)}.ck-content .table th.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-th-deletion-background);text-decoration:none}.ck-content .table th.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .table td.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table td.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);text-decoration:none}.ck-content .table td.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-formatBlock,.ck-content .table td.ck-suggestion-marker-formatInline,.ck-content .table th.ck-suggestion-marker-formatBlock,.ck-content .table th.ck-suggestion-marker-formatInline{background-color:var(--ck-color-suggestion-widget-format-background);box-shadow:none}.ck-content .table td.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table td.ck-suggestion-marker-formatInline.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatInline.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-format-background-active);box-shadow:none}",""]);const s=r},72:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-color-comment-box-border:#f2de02;--ck-color-suggestion-box-deletion-border:#d85a79;--ck-color-suggestion-box-insertion-border:#5ad86b;--ck-color-suggestion-box-format-border:#5ac1d8}.ck .ck-suggestion{border-top-left-radius:var(--ck-border-radius)}.ck .ck-annotation{border-left:3px solid transparent}.ck .ck-suggestion--disabled-comments .ck-annotation{min-height:80px}.ck .ck-comment,.ck .ck-comment__input-container,.ck .ck-thread__comment-count{border-left:3px solid var(--ck-color-comment-box-border)}.ck .ck-suggestion-insertion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-replace .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-format .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-format-border)}.ck .ck-suggestion-wrapper{outline:0}.ck .ck-suggestion-type{font-weight:700}.ck .ck-suggestion-color{border-radius:14px;box-shadow:0 0 0 1px #444;display:inline-block;height:14px;margin:0 5px;vertical-align:text-bottom;width:14px}.ck .ck-suggestion-insertion .ck-comment,.ck .ck-suggestion-insertion .ck-comment__input-container,.ck .ck-suggestion-insertion .ck-thread__comment-count,.ck .ck-suggestion-replace .ck-comment,.ck .ck-suggestion-replace .ck-comment__input-container,.ck .ck-suggestion-replace .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-comment,.ck .ck-suggestion-deletion .ck-comment__input-container,.ck .ck-suggestion-deletion .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-format .ck-comment,.ck .ck-suggestion-format .ck-comment__input-container,.ck .ck-suggestion-format .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-format-border)}",""]);const s=r},529:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,':root{--ck-color-suggestion-marker-insertion-border:rgba(30,174,49,.35);--ck-color-suggestion-marker-insertion-border-active:rgba(18,109,31,.5);--ck-color-suggestion-marker-insertion-background:rgba(102,229,119,.35);--ck-color-suggestion-marker-insertion-background-active:rgba(37,218,61,.5);--ck-color-suggestion-marker-deletion-border:rgba(174,30,66,.35);--ck-color-suggestion-marker-deletion-border-active:rgba(109,18,41,.5);--ck-color-suggestion-marker-deletion-background:rgba(229,102,134,.35);--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.5);--ck-color-suggestion-marker-deletion-stroke:rgba(87,15,33,.5);--ck-color-suggestion-marker-format-border:rgba(10,160,194,.4);--ck-color-suggestion-marker-format-border-active:rgba(10,160,194,.65);--ck-color-suggestion-widget-insertion-background:rgba(102,229,119,.05);--ck-color-suggestion-widget-insertion-background-active:rgba(37,218,61,.07);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.05);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.07);--ck-color-suggestion-widget-format-background:rgba(10,160,194,.09);--ck-color-suggestion-widget-format-background-active:rgba(10,160,194,.16)}.ck-content .ck-suggestion-marker-insertion{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-insertion-border);text-decoration:none}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-merge:after{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);color:var(--ck-color-suggestion-marker-deletion-stroke);content:"¶";text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke)}.ck-content .ck-suggestion-marker-merge.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-split:after{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border);color:var(--ck-color-suggestion-marker-insertion-border);content:"¶"}.ck-content .ck-suggestion-marker-split.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-formatInline{border-bottom:3px solid var(--ck-color-suggestion-marker-format-border);border-top:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatInline.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatBlock{background:none;border:0;box-shadow:-7px 0 0 0 var(--ck-color-base-background),-10px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 var(--ck-color-base-background),-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content ol .ck-suggestion-marker-formatBlock,.ck-content ul .ck-suggestion-marker-formatBlock{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content ol .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content ul .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}',""]);const s=r},756:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-user-colors--0:#6d78e8;--ck-user-colors--0-alpha:rgba(109,120,232,.15);--ck-user-colors--1:#007a6c;--ck-user-colors--1-alpha:rgba(0,122,108,.15);--ck-user-colors--2:#ba4545;--ck-user-colors--2-alpha:rgba(186,69,69,.15);--ck-user-colors--3:#5635b1;--ck-user-colors--3-alpha:rgba(86,53,177,.15);--ck-user-colors--4:#548a2e;--ck-user-colors--4-alpha:rgba(84,138,46,.15);--ck-user-colors--5:#c3185d;--ck-user-colors--5-alpha:rgba(195,24,93,.15);--ck-user-colors--6:#ea4343;--ck-user-colors--6-alpha:rgba(234,67,67,.15);--ck-user-colors--7:#0bc3d0;--ck-user-colors--7-alpha:rgba(11,195,208,.15);--ck-user-dot-size:6px}.ck .ck-user__color--0{color:var(--ck-user-colors--0)}.ck .ck-user__bg-color--0{background-color:var(--ck-user-colors--0)}.ck .ck-user__selection--0{background-color:var(--ck-user-colors--0-alpha)}.ck .ck-user__selection--0.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--0)}.ck .ck-user__marker--0,.ck .ck-user__marker--0 .ck-user__marker-dot,.ck .ck-user__marker--0:after{background-color:var(--ck-user-colors--0)}.ck .ck-user__marker--0 .ck-user__marker-line{border:1px solid var(--ck-user-colors--0)}.ck .ck-user__color--1{color:var(--ck-user-colors--1)}.ck .ck-user__bg-color--1{background-color:var(--ck-user-colors--1)}.ck .ck-user__selection--1{background-color:var(--ck-user-colors--1-alpha)}.ck .ck-user__selection--1.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--1)}.ck .ck-user__marker--1,.ck .ck-user__marker--1 .ck-user__marker-dot,.ck .ck-user__marker--1:after{background-color:var(--ck-user-colors--1)}.ck .ck-user__marker--1 .ck-user__marker-line{border:1px solid var(--ck-user-colors--1)}.ck .ck-user__color--2{color:var(--ck-user-colors--2)}.ck .ck-user__bg-color--2{background-color:var(--ck-user-colors--2)}.ck .ck-user__selection--2{background-color:var(--ck-user-colors--2-alpha)}.ck .ck-user__selection--2.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--2)}.ck .ck-user__marker--2,.ck .ck-user__marker--2 .ck-user__marker-dot,.ck .ck-user__marker--2:after{background-color:var(--ck-user-colors--2)}.ck .ck-user__marker--2 .ck-user__marker-line{border:1px solid var(--ck-user-colors--2)}.ck .ck-user__color--3{color:var(--ck-user-colors--3)}.ck .ck-user__bg-color--3{background-color:var(--ck-user-colors--3)}.ck .ck-user__selection--3{background-color:var(--ck-user-colors--3-alpha)}.ck .ck-user__selection--3.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--3)}.ck .ck-user__marker--3,.ck .ck-user__marker--3 .ck-user__marker-dot,.ck .ck-user__marker--3:after{background-color:var(--ck-user-colors--3)}.ck .ck-user__marker--3 .ck-user__marker-line{border:1px solid var(--ck-user-colors--3)}.ck .ck-user__color--4{color:var(--ck-user-colors--4)}.ck .ck-user__bg-color--4{background-color:var(--ck-user-colors--4)}.ck .ck-user__selection--4{background-color:var(--ck-user-colors--4-alpha)}.ck .ck-user__selection--4.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--4)}.ck .ck-user__marker--4,.ck .ck-user__marker--4 .ck-user__marker-dot,.ck .ck-user__marker--4:after{background-color:var(--ck-user-colors--4)}.ck .ck-user__marker--4 .ck-user__marker-line{border:1px solid var(--ck-user-colors--4)}.ck .ck-user__color--5{color:var(--ck-user-colors--5)}.ck .ck-user__bg-color--5{background-color:var(--ck-user-colors--5)}.ck .ck-user__selection--5{background-color:var(--ck-user-colors--5-alpha)}.ck .ck-user__selection--5.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--5)}.ck .ck-user__marker--5,.ck .ck-user__marker--5 .ck-user__marker-dot,.ck .ck-user__marker--5:after{background-color:var(--ck-user-colors--5)}.ck .ck-user__marker--5 .ck-user__marker-line{border:1px solid var(--ck-user-colors--5)}.ck .ck-user__color--6{color:var(--ck-user-colors--6)}.ck .ck-user__bg-color--6{background-color:var(--ck-user-colors--6)}.ck .ck-user__selection--6{background-color:var(--ck-user-colors--6-alpha)}.ck .ck-user__selection--6.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--6)}.ck .ck-user__marker--6,.ck .ck-user__marker--6 .ck-user__marker-dot,.ck .ck-user__marker--6:after{background-color:var(--ck-user-colors--6)}.ck .ck-user__marker--6 .ck-user__marker-line{border:1px solid var(--ck-user-colors--6)}.ck .ck-user__color--7{color:var(--ck-user-colors--7)}.ck .ck-user__bg-color--7{background-color:var(--ck-user-colors--7)}.ck .ck-user__selection--7{background-color:var(--ck-user-colors--7-alpha)}.ck .ck-user__selection--7.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--7)}.ck .ck-user__marker--7,.ck .ck-user__marker--7 .ck-user__marker-dot,.ck .ck-user__marker--7:after{background-color:var(--ck-user-colors--7)}.ck .ck-user__marker--7 .ck-user__marker-line{border:1px solid var(--ck-user-colors--7)}",""]);const s=r},893:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-user-avatar-size:40px;--ck-user-avatar-background:#3670ab;--ck-user-avatar-color:#fff}.ck.ck-user{align-items:center;background-color:var(--ck-user-avatar-background);border-radius:50%;display:flex;height:var(--ck-user-avatar-size);justify-content:center;min-height:var(--ck-user-avatar-size);min-width:var(--ck-user-avatar-size);position:relative;width:var(--ck-user-avatar-size)}.ck.ck-user__name{color:var(--ck-user-avatar-color);cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-user__name.ck-user__name--hidden{display:none}.ck.ck-user__img{background-color:var(--ck-user-avatar-background);background-position:50%;background-repeat:no-repeat;background-size:cover;border:2px solid var(--ck-user-avatar-background);border-radius:50%;display:none;height:inherit;width:inherit}.ck.ck-user__img.ck-user__anonymous{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23FFF' d='M9.8 20H2c0-5.7 5-5.7 6-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5 0-2.8 2-5.2 4.3-5.2S14 4.4 14 7.3c0 2.2-1 4-2.6 5l.2.6c1.2 1.3 6 1.4 6 7H9.8z'/%3E%3C/svg%3E\");display:block}.ck.ck-user__img.ck-user__anonymous+.ck-user__name{display:none}.ck.ck-user__img.ck-user__avatar{background-color:#fff;display:block}.ck.ck-user__img.ck-user__img--hidden{display:none}.ck.ck-user__notification{align-items:center;background:#fff;border:2px solid #fff;border-radius:50%;box-sizing:content-box;display:flex;height:15px;justify-content:center;overflow:hidden;position:absolute;right:-7px;top:-8px;transform:translateZ(0);width:15px}.ck.ck-user__notification .ck-user__icon{background:#fff;color:var(--ck-color-annotation-info);height:19px;max-height:19px;max-width:19px;min-height:19px;min-width:19px;width:19px}",""]);const s=r},758:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var s=0;s<this.length;s++){var i=this[s][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},278:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},s=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function a(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},o=[],r=0;r<e.length;r++){var s=e[r],c=t.base?s[0]+t.base:s[0],x=n[c]||0,l="".concat(c," ").concat(x);n[c]=x+1;var u=a(l),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==u?(i[u].references++,i[u].updater(d)):i.push({identifier:l,updater:h(d,t),references:1}),o.push(l)}return o}function x(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var i=s(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=u(t,r);else{var s=document.createTextNode(r),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function g(e,t,n){var o=n.css,r=n.media,s=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var m=null,f=0;function h(e,t){var n,o,r;if(t.singleton){var s=f++;n=m||(m=x(t)),o=d.bind(null,n,s,!1),r=d.bind(null,n,s,!0)}else n=x(t),o=g.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=a(n[o]);i[r].references--}for(var s=c(e,t),x=0;x<n.length;x++){var l=a(n[x]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}n=s}}}},417:(e,t,n)=>{e.exports=n(720)("./src/collaboration-core.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},331:(e,t,n)=>{e.exports=n(79)("./src/enter.js")},181:(e,t,n)=>{e.exports=n(79)("./src/typing.js")},273:(e,t,n)=>{e.exports=n(79)("./src/ui.js")},209:(e,t,n)=>{e.exports=n(79)("./src/utils.js")},995:(e,t,n)=>{e.exports=n(79)("./src/widget.js")},720:e=>{"use strict";e.exports=CKEditor5.collaborationDll},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={id:o,exports:{}};return e[o](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Ax,TrackChanges:()=>zx,TrackChangesData:()=>Jx});var e=n(704),t=n(209),r=n(273),s=n(417),i=n(492),a=n(995);const c=["commands","_enabledCommands","forceDisabled","editor","affectsData","clearForceDisabled","execute","_enableCommands","value","_disableUnsupportedCommands","refresh","has"];var x,l;x=c,l=111,function(e){for(;--e;)x.push(x.shift())}(++l);const u=function(e,t){return c[e-=0]};class d extends e.Command{constructor(e,t){super(e),this._enabledCommands=t,this[u("0x5")]=!1,this[u("0x7")]()}[u("0x7")](){this.isEnabled=!0}[u("0x3")](){this[u("0x5")]=!this[u("0x5")],this.value?this[u("0x6")]():this[u("0x4")]()}[u("0x6")](){for(const e of this[u("0x0")][u("0x9")][u("0x9")]())e[u("0x1")]&&!this[u("0xa")][u("0x8")](e)&&e[u("0xb")]("TrackChangesCommand")}[u("0x4")](){for(const e of this[u("0x0")].commands.commands())e[u("0x1")]&&!this._enabledCommands[u("0x8")](e)&&e[u("0x2")]("TrackChangesCommand")}}const g=["get","acceptSuggestion","execute","plugins","isEnabled","track-changes-accept-suggestion-not-found","editor","refresh","_suggestions"];var m,f;m=g,f=223,function(e){for(;--e;)m.push(m.shift())}(++f);const h=function(e,t){return g[e-=0]};class k extends e.Command{constructor(e,t){super(e),this[h("0x1")]=t,this[h("0x0")]()}[h("0x0")](){this[h("0x6")]=!0}[h("0x4")](e){const n=this[h("0x1")][h("0x2")](e);if(!n)throw new t.CKEditorError(h("0x7"),this);this[h("0x8")][h("0x5")][h("0x2")]("TrackChangesEditing")[h("0x3")](n)}}const b=["execute","get","plugins","_suggestions","track-changes-discard-suggestion-not-found","discardSuggestion","editor","TrackChangesEditing","refresh"];var p,_;p=b,_=206,function(e){for(;--e;)p.push(p.shift())}(++_);const v=function(e,t){return b[e-=0]};class y extends e.Command{constructor(e,t){super(e),this[v("0x4")]=t,this[v("0x0")]()}refresh(){this.isEnabled=!0}[v("0x1")](e){const n=this[v("0x4")][v("0x2")](e);if(!n)throw new t.CKEditorError(v("0x5"),this);this[v("0x7")][v("0x3")][v("0x2")](v("0x8"))[v("0x6")](n)}}const E=["splice","isIntersecting"," [color ","end","createPositionBefore","createPositionAfter","isCollapsed","length","isInContent","execute","next","type","isObject","getMarkers","getRanges","isTouching","getRange","replace","value","push","createRange","deletion","color","isMultiRange","schema"];var C,T;C=E,T=287,function(e){for(;--e;)C.push(C.shift())}(++T);const w=function(e,t){return E[e-=0]};function A(e){return e.sort(((e,t)=>w("0x9")==e[w("0x18")]&&w("0x9")!=t.type?-1:w("0x9")!=e[w("0x18")]&&w("0x9")==t[w("0x18")]?1:0))}function I(e,t){let n,o=0;const r=[],s=t[w("0xc")];for(;o<e[w("0x14")];){const i=e[o],a=e[o+1];n||(n=t[w("0x11")](i)),R(t,i,a)||(r[w("0x7")](t[w("0x8")](n,s[w("0x0")](i)?t[w("0x12")](i):t.createPositionAt(i,w("0x10")))),n=null),o++}return r}function R(e,t,n){if(!n)return!1;const o=e[w("0x12")](t),r=e[w("0x11")](n);return o[w("0x3")](r)}function S(e,t,n){for(;n.length;){const o=n[w("0xd")](0,100);e.change((()=>{for(const e of o)e[w("0x15")]&&t[w("0x16")](e.id)}))}}const M=["from","isEnabled","_command","isInContent","model","editor","values","some","_suggestions","refresh"];var N,L;N=M,L=330,function(e){for(;--e;)N.push(N.shift())}(++L);const O=function(e,t){return M[e-=0]};class P extends e.Command{constructor(e,t,n){super(e),this._command=t,this[O("0x8")]=n,this[O("0x9")]()}refresh(){const e=Array[O("0x0")](this[O("0x8")][O("0x6")]())[O("0x7")]((e=>e[O("0x3")]));this[O("0x1")]=this[O("0x2")][O("0x1")]&&e}execute(){const e=A(Array[O("0x0")](this[O("0x8")][O("0x6")]()));S(this[O("0x5")][O("0x4")],this[O("0x2")],e)}}const F=["values","_selectedSuggestions","_command","from","model","selection","_suggestions","isEnabled","editor","document","size","refresh","execute"];var D,j;D=F,j=398,function(e){for(;--e;)D.push(D.shift())}(++j);const B=function(e,t){return F[e-=0]};class U extends e.Command{constructor(e,t,n){super(e),this[B("0x7")]=t,this._suggestions=n,this[B("0x6")]=new Set,this[B("0x3")]()}[B("0x3")](){const e=this[B("0x0")][B("0x9")][B("0x1")][B("0xa")],t=Array[B("0x8")](this[B("0xb")][B("0x5")]());this[B("0x6")]=function(e,t){const n=Array.from(e[w("0x2")]()),o=new Set;for(const r of t)if(r.isInContent)for(const t of n)for(const n of r[w("0x1")]()){const s=n[w("0x4")]();(t[w("0xe")](s)||e[w("0x13")]&&!r[w("0xb")]&&r[w("0x17")]&&s.end[w("0x3")](t.start))&&o.add(r)}return o}(e,t),this.isEnabled=this[B("0x7")][B("0xc")]&&!!this[B("0x6")][B("0x2")]}[B("0x4")](){const e=A(Array[B("0x8")](this[B("0x6")]));S(this.editor[B("0x9")],this[B("0x7")],e)}}const V=function(){this.__data__=[],this.size=0};const H=function(e,t){return e===t||e!=e&&t!=t};const G=function(e,t){for(var n=e.length;n--;)if(H(e[n][0],t))return n;return-1};var z=Array.prototype.splice;const W=function(e){var t=this.__data__,n=G(t,e);return!(n<0)&&(n==t.length-1?t.pop():z.call(t,n,1),--this.size,!0)};const K=function(e){var t=this.__data__,n=G(t,e);return n<0?void 0:t[n][1]};const q=function(e){return G(this.__data__,e)>-1};const Z=function(e,t){var n=this.__data__,o=G(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}X.prototype.clear=V,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=Z;const $=X;const J=function(){this.__data__=new $,this.size=0};const Q=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Y=function(e){return this.__data__.get(e)};const ee=function(e){return this.__data__.has(e)};const te="object"==typeof global&&global&&global.Object===Object&&global;var ne="object"==typeof self&&self&&self.Object===Object&&self;const oe=te||ne||Function("return this")();const re=oe.Symbol;var se=Object.prototype,ie=se.hasOwnProperty,ae=se.toString,ce=re?re.toStringTag:void 0;const xe=function(e){var t=ie.call(e,ce),n=e[ce];try{e[ce]=void 0;var o=!0}catch(e){}var r=ae.call(e);return o&&(t?e[ce]=n:delete e[ce]),r};var le=Object.prototype.toString;const ue=function(e){return le.call(e)};var de=re?re.toStringTag:void 0;const ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":de&&de in Object(e)?xe(e):ue(e)};const me=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const fe=function(e){if(!me(e))return!1;var t=ge(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const he=oe["__core-js_shared__"];var ke,be=(ke=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||""))?"Symbol(src)_1."+ke:"";const pe=function(e){return!!be&&be in e};var _e=Function.prototype.toString;const ve=function(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var ye=/^\[object .+?Constructor\]$/,Ee=Function.prototype,Ce=Object.prototype,Te=Ee.toString,we=Ce.hasOwnProperty,Ae=RegExp("^"+Te.call(we).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ie=function(e){return!(!me(e)||pe(e))&&(fe(e)?Ae:ye).test(ve(e))};const Re=function(e,t){return null==e?void 0:e[t]};const Se=function(e,t){var n=Re(e,t);return Ie(n)?n:void 0};const Me=Se(oe,"Map");const Ne=Se(Object,"create");const Le=function(){this.__data__=Ne?Ne(null):{},this.size=0};const Oe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Pe=Object.prototype.hasOwnProperty;const Fe=function(e){var t=this.__data__;if(Ne){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Pe.call(t,e)?t[e]:void 0};var De=Object.prototype.hasOwnProperty;const je=function(e){var t=this.__data__;return Ne?void 0!==t[e]:De.call(t,e)};const Be=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ne&&void 0===t?"__lodash_hash_undefined__":t,this};function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ue.prototype.clear=Le,Ue.prototype.delete=Oe,Ue.prototype.get=Fe,Ue.prototype.has=je,Ue.prototype.set=Be;const Ve=Ue;const He=function(){this.size=0,this.__data__={hash:new Ve,map:new(Me||$),string:new Ve}};const Ge=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const ze=function(e,t){var n=e.__data__;return Ge(t)?n["string"==typeof t?"string":"hash"]:n.map};const We=function(e){var t=ze(this,e).delete(e);return this.size-=t?1:0,t};const Ke=function(e){return ze(this,e).get(e)};const qe=function(e){return ze(this,e).has(e)};const Ze=function(e,t){var n=ze(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function Xe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Xe.prototype.clear=He,Xe.prototype.delete=We,Xe.prototype.get=Ke,Xe.prototype.has=qe,Xe.prototype.set=Ze;const $e=Xe;const Je=function(e,t){var n=this.__data__;if(n instanceof $){var o=n.__data__;if(!Me||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new $e(o)}return n.set(e,t),this.size=n.size,this};function Qe(e){var t=this.__data__=new $(e);this.size=t.size}Qe.prototype.clear=J,Qe.prototype.delete=Q,Qe.prototype.get=Y,Qe.prototype.has=ee,Qe.prototype.set=Je;const Ye=Qe;const et=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const tt=function(){try{var e=Se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const nt=function(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var ot=Object.prototype.hasOwnProperty;const rt=function(e,t,n){var o=e[t];ot.call(e,t)&&H(o,n)&&(void 0!==n||t in e)||nt(e,t,n)};const st=function(e,t,n,o){var r=!n;n||(n={});for(var s=-1,i=t.length;++s<i;){var a=t[s],c=o?o(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?nt(n,a,c):rt(n,a,c)}return n};const it=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const at=function(e){return null!=e&&"object"==typeof e};const ct=function(e){return at(e)&&"[object Arguments]"==ge(e)};var xt=Object.prototype,lt=xt.hasOwnProperty,ut=xt.propertyIsEnumerable;const dt=ct(function(){return arguments}())?ct:function(e){return at(e)&<.call(e,"callee")&&!ut.call(e,"callee")};const gt=Array.isArray;const mt=function(){return!1};var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=ft&&"object"==typeof module&&module&&!module.nodeType&&module,kt=ht&&ht.exports===ft?oe.Buffer:void 0;const bt=(kt?kt.isBuffer:void 0)||mt;var pt=/^(?:0|[1-9]\d*)$/;const _t=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&pt.test(e))&&e>-1&&e%1==0&&e<t};const vt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var yt={};yt["[object Float32Array]"]=yt["[object Float64Array]"]=yt["[object Int8Array]"]=yt["[object Int16Array]"]=yt["[object Int32Array]"]=yt["[object Uint8Array]"]=yt["[object Uint8ClampedArray]"]=yt["[object Uint16Array]"]=yt["[object Uint32Array]"]=!0,yt["[object Arguments]"]=yt["[object Array]"]=yt["[object ArrayBuffer]"]=yt["[object Boolean]"]=yt["[object DataView]"]=yt["[object Date]"]=yt["[object Error]"]=yt["[object Function]"]=yt["[object Map]"]=yt["[object Number]"]=yt["[object Object]"]=yt["[object RegExp]"]=yt["[object Set]"]=yt["[object String]"]=yt["[object WeakMap]"]=!1;const Et=function(e){return at(e)&&vt(e.length)&&!!yt[ge(e)]};const Ct=function(e){return function(t){return e(t)}};var Tt="object"==typeof exports&&exports&&!exports.nodeType&&exports,wt=Tt&&"object"==typeof module&&module&&!module.nodeType&&module,At=wt&&wt.exports===Tt&&te.process;const It=function(){try{var e=wt&&wt.require&&wt.require("util").types;return e||At&&At.binding&&At.binding("util")}catch(e){}}();var Rt=It&&It.isTypedArray;const St=Rt?Ct(Rt):Et;var Mt=Object.prototype.hasOwnProperty;const Nt=function(e,t){var n=gt(e),o=!n&&dt(e),r=!n&&!o&&bt(e),s=!n&&!o&&!r&&St(e),i=n||o||r||s,a=i?it(e.length,String):[],c=a.length;for(var x in e)!t&&!Mt.call(e,x)||i&&("length"==x||r&&("offset"==x||"parent"==x)||s&&("buffer"==x||"byteLength"==x||"byteOffset"==x)||_t(x,c))||a.push(x);return a};var Lt=Object.prototype;const Ot=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Lt)};const Pt=function(e,t){return function(n){return e(t(n))}};const Ft=Pt(Object.keys,Object);var Dt=Object.prototype.hasOwnProperty;const jt=function(e){if(!Ot(e))return Ft(e);var t=[];for(var n in Object(e))Dt.call(e,n)&&"constructor"!=n&&t.push(n);return t};const Bt=function(e){return null!=e&&vt(e.length)&&!fe(e)};const Ut=function(e){return Bt(e)?Nt(e):jt(e)};const Vt=function(e,t){return e&&st(t,Ut(t),e)};const Ht=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Gt=Object.prototype.hasOwnProperty;const zt=function(e){if(!me(e))return Ht(e);var t=Ot(e),n=[];for(var o in e)("constructor"!=o||!t&&Gt.call(e,o))&&n.push(o);return n};const Wt=function(e){return Bt(e)?Nt(e,!0):zt(e)};const Kt=function(e,t){return e&&st(t,Wt(t),e)};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Zt=qt&&"object"==typeof module&&module&&!module.nodeType&&module,Xt=Zt&&Zt.exports===qt?oe.Buffer:void 0,$t=Xt?Xt.allocUnsafe:void 0;const Jt=function(e,t){if(t)return e.slice();var n=e.length,o=$t?$t(n):new e.constructor(n);return e.copy(o),o};const Qt=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const Yt=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,s=[];++n<o;){var i=e[n];t(i,n,e)&&(s[r++]=i)}return s};const en=function(){return[]};var tn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(e){return null==e?[]:(e=Object(e),Yt(nn(e),(function(t){return tn.call(e,t)})))}:en;const rn=function(e,t){return st(e,on(e),t)};const sn=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e};const an=Pt(Object.getPrototypeOf,Object);const cn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)sn(t,on(e)),e=an(e);return t}:en;const xn=function(e,t){return st(e,cn(e),t)};const ln=function(e,t,n){var o=t(e);return gt(e)?o:sn(o,n(e))};const un=function(e){return ln(e,Ut,on)};const dn=function(e){return ln(e,Wt,cn)};const gn=Se(oe,"DataView");const mn=Se(oe,"Promise");const fn=Se(oe,"Set");const hn=Se(oe,"WeakMap");var kn="[object Map]",bn="[object Promise]",pn="[object Set]",_n="[object WeakMap]",vn="[object DataView]",yn=ve(gn),En=ve(Me),Cn=ve(mn),Tn=ve(fn),wn=ve(hn),An=ge;(gn&&An(new gn(new ArrayBuffer(1)))!=vn||Me&&An(new Me)!=kn||mn&&An(mn.resolve())!=bn||fn&&An(new fn)!=pn||hn&&An(new hn)!=_n)&&(An=function(e){var t=ge(e),n="[object Object]"==t?e.constructor:void 0,o=n?ve(n):"";if(o)switch(o){case yn:return vn;case En:return kn;case Cn:return bn;case Tn:return pn;case wn:return _n}return t});const In=An;var Rn=Object.prototype.hasOwnProperty;const Sn=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Rn.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Mn=oe.Uint8Array;const Nn=function(e){var t=new e.constructor(e.byteLength);return new Mn(t).set(new Mn(e)),t};const Ln=function(e,t){var n=t?Nn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var On=/\w*$/;const Pn=function(e){var t=new e.constructor(e.source,On.exec(e));return t.lastIndex=e.lastIndex,t};var Fn=re?re.prototype:void 0,Dn=Fn?Fn.valueOf:void 0;const jn=function(e){return Dn?Object(Dn.call(e)):{}};const Bn=function(e,t){var n=t?Nn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Un=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return Nn(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return Ln(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Bn(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Pn(e);case"[object Symbol]":return jn(e)}};var Vn=Object.create;const Hn=function(){function e(){}return function(t){if(!me(t))return{};if(Vn)return Vn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Gn=function(e){return"function"!=typeof e.constructor||Ot(e)?{}:Hn(an(e))};const zn=function(e){return at(e)&&"[object Map]"==In(e)};var Wn=It&&It.isMap;const Kn=Wn?Ct(Wn):zn;const qn=function(e){return at(e)&&"[object Set]"==In(e)};var Zn=It&&It.isSet;const Xn=Zn?Ct(Zn):qn;var $n="[object Arguments]",Jn="[object Function]",Qn="[object Object]",Yn={};Yn[$n]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn["[object Object]"]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const eo=function e(t,n,o,r,s,i){var a,c=1&n,x=2&n,l=4&n;if(o&&(a=s?o(t,r,s,i):o(t)),void 0!==a)return a;if(!me(t))return t;var u=gt(t);if(u){if(a=Sn(t),!c)return Qt(t,a)}else{var d=In(t),g=d==Jn||"[object GeneratorFunction]"==d;if(bt(t))return Jt(t,c);if(d==Qn||d==$n||g&&!s){if(a=x||g?{}:Gn(t),!c)return x?xn(t,Kt(a,t)):rn(t,Vt(a,t))}else{if(!Yn[d])return s?t:{};a=Un(t,d,c)}}i||(i=new Ye);var m=i.get(t);if(m)return m;i.set(t,a),Xn(t)?t.forEach((function(r){a.add(e(r,n,o,r,t,i))})):Kn(t)&&t.forEach((function(r,s){a.set(s,e(r,n,o,s,t,i))}));var f=u?void 0:(l?x?dn:un:x?Wt:Ut)(t);return et(f||t,(function(r,s){f&&(r=t[s=r]),rt(a,s,e(r,n,o,s,t,i))})),a};const to=function(e){return eo(e,5)};const no=function(e){return"symbol"==typeof e||at(e)&&"[object Symbol]"==ge(e)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const so=function(e,t){if(gt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!no(e))||(ro.test(e)||!oo.test(e)||null!=t&&e in Object(t))};function io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=e.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||$e),n}io.Cache=$e;const ao=io;var co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/\\(\\)?/g;const lo=function(e){var t=ao(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(co,(function(e,n,o,r){t.push(o?r.replace(xo,"$1"):n||e)})),t}));const uo=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r};var go=re?re.prototype:void 0,mo=go?go.toString:void 0;const fo=function e(t){if("string"==typeof t)return t;if(gt(t))return uo(t,e)+"";if(no(t))return mo?mo.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};const ho=function(e){return null==e?"":fo(e)};const ko=function(e,t){return gt(e)?e:so(e,t)?[e]:lo(ho(e))};const bo=function(e){if("string"==typeof e||no(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const po=function(e,t,n,o){if(!me(e))return e;for(var r=-1,s=(t=ko(t,e)).length,i=s-1,a=e;null!=a&&++r<s;){var c=bo(t[r]),x=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=i){var l=a[c];void 0===(x=o?o(l,c,a):void 0)&&(x=me(l)?l:_t(t[r+1])?[]:{})}rt(a,c,x),a=a[c]}return e};const _o=function(e,t,n){return null==e?e:po(e,t,n)};const vo=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const yo=function(e){return this.__data__.has(e)};function Eo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $e;++t<n;)this.add(e[t])}Eo.prototype.add=Eo.prototype.push=vo,Eo.prototype.has=yo;const Co=Eo;const To=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const wo=function(e,t){return e.has(t)};const Ao=function(e,t,n,o,r,s){var i=1&n,a=e.length,c=t.length;if(a!=c&&!(i&&c>a))return!1;var x=s.get(e),l=s.get(t);if(x&&l)return x==t&&l==e;var u=-1,d=!0,g=2&n?new Co:void 0;for(s.set(e,t),s.set(t,e);++u<a;){var m=e[u],f=t[u];if(o)var h=i?o(f,m,u,t,e,s):o(m,f,u,e,t,s);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!To(t,(function(e,t){if(!wo(g,t)&&(m===e||r(m,e,n,o,s)))return g.push(t)}))){d=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){d=!1;break}}return s.delete(e),s.delete(t),d};const Io=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const Ro=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var So=re?re.prototype:void 0,Mo=So?So.valueOf:void 0;const No=function(e,t,n,o,r,s,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new Mn(e),new Mn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Io;case"[object Set]":var c=1&o;if(a||(a=Ro),e.size!=t.size&&!c)return!1;var x=i.get(e);if(x)return x==t;o|=2,i.set(e,t);var l=Ao(a(e),a(t),o,r,s,i);return i.delete(e),l;case"[object Symbol]":if(Mo)return Mo.call(e)==Mo.call(t)}return!1};var Lo=Object.prototype.hasOwnProperty;const Oo=function(e,t,n,o,r,s){var i=1&n,a=un(e),c=a.length;if(c!=un(t).length&&!i)return!1;for(var x=c;x--;){var l=a[x];if(!(i?l in t:Lo.call(t,l)))return!1}var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=i;++x<c;){var f=e[l=a[x]],h=t[l];if(o)var k=i?o(h,f,l,t,e,s):o(f,h,l,e,t,s);if(!(void 0===k?f===h||r(f,h,n,o,s):k)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=e.constructor,p=t.constructor;b==p||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof p&&p instanceof p||(g=!1)}return s.delete(e),s.delete(t),g};var Po="[object Arguments]",Fo="[object Array]",Do="[object Object]",jo=Object.prototype.hasOwnProperty;const Bo=function(e,t,n,o,r,s){var i=gt(e),a=gt(t),c=i?Fo:In(e),x=a?Fo:In(t),l=(c=c==Po?Do:c)==Do,u=(x=x==Po?Do:x)==Do,d=c==x;if(d&&bt(e)){if(!bt(t))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new Ye),i||St(e)?Ao(e,t,n,o,r,s):No(e,t,c,n,o,r,s);if(!(1&n)){var g=l&&jo.call(e,"__wrapped__"),m=u&&jo.call(t,"__wrapped__");if(g||m){var f=g?e.value():e,h=m?t.value():t;return s||(s=new Ye),r(f,h,n,o,s)}}return!!d&&(s||(s=new Ye),Oo(e,t,n,o,r,s))};const Uo=function e(t,n,o,r,s){return t===n||(null==t||null==n||!at(t)&&!at(n)?t!=t&&n!=n:Bo(t,n,o,r,e,s))};const Vo=function(e,t){return Uo(e,t)};const Ho=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const Go=function(e,t){for(var n=0,o=(t=ko(t,e)).length;null!=e&&n<o;)e=e[bo(t[n++])];return n&&n==o?e:void 0};const zo=function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(r);++o<r;)s[o]=e[o+t];return s};const Wo=function(e,t){return t.length<2?e:Go(e,zo(t,0,-1))};const Ko=function(e,t){return t=ko(t,e),null==(e=Wo(e,t))||delete e[bo(Ho(t))]};const qo=function(e,t){return null==e||Ko(e,t)},Zo=["isInContent","onAccept","previous","authoredAt","creator","filter","accept","subType","removeMarker","_model","nodeAfter","setAttribute","getItems","isIntersecting","isExternal","from","getRanges","toJSON","getMarkerNames","getAllAdjacentSuggestions","end","getMarkers","createdAt","_markerNames","getRange","discard","start","getMultiRangeId","_saved","set","markers","commentThread","getContainedElement","removeAttribute","attributes","clear","_onAttributesChange","addMarkerName","addMarker","length","removeMarkers","isMultiRange","suggestion:","getFirstMarker","substr","delete","hasComments","author","nodeBefore","onDiscard","head","change","next","isIntersectingWithRange","decorate","onAttributesChange","type","_onDiscard","map","data","size"];var Xo,$o;Xo=Zo,$o=415,function(e){for(;--e;)Xo.push(Xo.shift())}(++$o);const Jo=function(e,t){return Zo[e-=0]};class Qo{constructor(e,t){this.id=t.id,this[Jo("0x7")]=t[Jo("0x7")],this[Jo("0x13")]=t[Jo("0x13")]||null,this.author=t[Jo("0x3b")],this[Jo("0x10")]=t[Jo("0x10")]||t.author,this[Jo("0x1a")]=Boolean(t[Jo("0x2e")]&&t[Jo("0x2e")]["@external"]),this[Jo("0xa")]=null,this[Jo("0x15")]=e,this._onAccept=t[Jo("0xd")],this._onDiscard=t[Jo("0x0")],this._onAttributesChange=t[Jo("0x6")],this[Jo("0x23")]=new Set,this[Jo("0x22")]=null,this[Jo("0x29")](Jo("0xf"),null),this[Jo("0x29")](Jo("0x2e"),t.attributes||{}),this.set(Jo("0xe"),null),this[Jo("0x29")]("next",null),this[Jo("0x29")](Jo("0x2b"),null),this[Jo("0x29")](Jo("0x28"),!1),this[Jo("0x5")](Jo("0x12")),this.decorate(Jo("0x25"))}get[Jo("0x1")](){let e=this;for(;e[Jo("0xe")];)e=e[Jo("0xe")];return e}get[Jo("0x3a")](){return!!this[Jo("0x2b")]&&this[Jo("0x2b")].length>0}get[Jo("0x35")](){return 0!=this._markerNames[Jo("0xb")]&&6==Array[Jo("0x1b")](this[Jo("0x23")])[0].split(":")[Jo("0x33")]}get[Jo("0xc")](){return null!==this[Jo("0x37")]()}[Jo("0x31")](e){this[Jo("0x23")].add(e)}[Jo("0x1e")](){return Array[Jo("0x1b")](this._markerNames)}[Jo("0x21")](){return this[Jo("0x1e")]()[Jo("0x9")]((e=>this[Jo("0x15")][Jo("0x2a")].get(e)))[Jo("0x11")]((e=>e))}getFirstMarker(){return this[Jo("0x21")]()[0]||null}[Jo("0x34")](){this[Jo("0x15")][Jo("0x2")]((e=>{for(const t of this.getMarkers())e[Jo("0x14")](t)})),this[Jo("0x23")][Jo("0x2f")]()}removeMarker(e){this._model[Jo("0x2")]((t=>{t.removeMarker(e)})),this._markerNames[Jo("0x39")](e)}addRange(e){const t=Jo("0x36")+this[Jo("0x7")]+":"+this[Jo("0x13")]+":"+this.id+":"+this.creator.id+":"+Qo.getMultiRangeId();this[Jo("0x31")](t),this[Jo("0x15")][Jo("0x2")]((n=>{n[Jo("0x32")](t,{range:e,usingOperation:!0,affectsData:!0})}))}[Jo("0x4")](e){for(const t of this.getRanges())if(t[Jo("0x19")](e))return!0;return!1}getRanges(){return this[Jo("0x21")]()[Jo("0x9")]((e=>e[Jo("0x24")]()))}getItems(){return this[Jo("0x1c")]().reduce(((e,t)=>[...e,...t[Jo("0x18")]()]),[])}getFirstRange(){return this.getFirstMarker().getRange()}[Jo("0x2c")](){const e=this[Jo("0x1c")]();if(1!=e[Jo("0x33")])return null;const t=e[0],n=t[Jo("0x26")][Jo("0x16")],o=t[Jo("0x20")][Jo("0x3c")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x12")](){this._onAccept(this.getRanges(),this.data,this.attributes),this[Jo("0x34")]()}[Jo("0x25")](){this[Jo("0x8")](this[Jo("0x1c")](),this.data,this.attributes),this[Jo("0x34")]()}[Jo("0x1f")](){const e=[];let t=this[Jo("0x1")];for(;t;)e.push(t),t=t[Jo("0x3")];return e}[Jo("0x17")](e,t){const n=to(this[Jo("0x2e")]);_o(n,e,t),Vo(n,this[Jo("0x2e")])||(this[Jo("0x2e")]=n,this._onAttributesChange(n))}[Jo("0x2d")](e){const t=to(this[Jo("0x2e")]);qo(t,e),Vo(t,this[Jo("0x2e")])||(this[Jo("0x2e")]=t,this[Jo("0x30")](this.attributes))}[Jo("0x1d")](){return{id:this.id,type:this[Jo("0x13")]?this[Jo("0x7")]+":"+this[Jo("0x13")]:this[Jo("0x7")],authorId:this[Jo("0x10")].id,createdAt:this[Jo("0x22")],hasComments:this.hasComments,data:this.data,attributes:this[Jo("0x2e")]}}static[Jo("0x27")](){return(0,t.uid)()[Jo("0x38")](1,5)}}function Yo(e,t,n){const o=e.t;switch(t){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n)}}(0,t.mix)(Qo,t.ObservableMixin);const er=["deletion","$1 $2","$text","textProxy","registerDescriptionCallback","isInContent","pop","quantity","function","getWalker","_addDescriptionItems","get","*Remove:* %0","_schema","nextSibling","matchingCallback","EmptyContainer","removeContainer","getFirstRange","name","normal","_itemLabels","label","_itemLabelsCallbacks","elementEnd","*Split:* %0","ELEMENT_SPACE","remove","item","_resolveDescriptionItems","_locale","length","add","end","match","text","skip","Container","Object","data","set","element","indexOf","isEmpty","getDescriptions","type","removeObject","push","_customCallbacks","*Insert:* %0","getItemLabel","isObject","replace","previousSibling","softBreak","removeEmptyContainer","REPLACE_TEXT","addObject","insertion"];var tr,nr;tr=er,nr=478,function(e){for(;--e;)tr.push(tr.shift())}(++nr);const or=function(e,t){return er[e-=0]};class rr{constructor(e,t){this[or("0x2a")]=[],this[or("0xf")]=new Map,this._itemLabelsCallbacks=[],this[or("0x7")]=e,this[or("0x18")]=t}[or("0x26")](e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];if(!o[or("0x3a")])continue;let r=!1;for(const e of this[or("0x2a")]){const n=e(o);if(n){n.type&&t[or("0x29")](n),r=!0;break}}if(!r){this[or("0x4")](t,o);const r=e[n+1];if(r&&!o.getFirstRange()[or("0x1b")].isEqual(r[or("0xc")]().start)){const e=t[t.length-1],n=or("0x34")==o.type?"add":or("0x15");e&&or("0x1d")==e.type&&(e[n]+="\n")}}}return this._resolveDescriptionItems(t)}[or("0x39")](e){this._customCallbacks[or("0x29")](e)}registerElementLabel(e,n,o=t.priorities[or("0xe")]){or("0x2")==typeof e?(0,t.insertToPriorityArray)(this[or("0x11")],{matchingCallback:e,label:n,priority:o}):this[or("0xf")][or("0x22")](e,n)}[or("0x2c")](e,t=1){let n;for(const t of this[or("0x11")])if(t[or("0x9")](e)){n=t[or("0x10")];break}return n||(n=this[or("0xf")][or("0x5")](e[or("0xd")])),n?n(t):1!==t?t+" "+e[or("0xd")]+"s":""+e.name}[or("0x4")](e,t){const n=t.getFirstRange()[or("0x3")](),o="insertion"==t[or("0x27")]?or("0x1a"):"remove";for(const t of n){const r=t[or("0x16")],s=e[e.length-1];if(r.is(or("0x38")))s&&s[or("0x27")][or("0x24")](or("0x1f"))>-1&&e[or("0x0")](),s&&or("0x1d")==s[or("0x27")]?s[o]+=r.data:e[or("0x29")]({type:"text",add:or("0x1a")==o?r[or("0x21")]:"",remove:or("0x15")==o?r[or("0x21")]:""});else if(this[or("0x7")].isObject(r)){if(s&&s[or("0x27")][or("0x24")](or("0x1f"))>-1&&e.pop(),or("0x12")==t.type)continue;s&&s.type==o+or("0x20")&&s[or("0x23")].name==r[or("0xd")]?s[or("0x1")]++:e[or("0x29")]({type:o+or("0x20"),element:r,quantity:1}),n[or("0x1e")]((e=>!(or("0x12")==e.type&&e[or("0x16")]==r)))}else if(this._schema.checkChild(r,or("0x37"))||r.is("element",or("0x30"))){if(or("0x1a")==o&&"elementStart"==t[or("0x27")]||"remove"==o&&or("0x12")==t[or("0x27")])continue;if(s&&-1==s[or("0x27")][or("0x24")]("Container")){or("0x1d")==s.type&&(s[o]+="\n");continue}let n;if(n=or("0x1a")==o?r[or("0x8")]&&!this[or("0x7")][or("0x2d")](r[or("0x8")])?r[or("0x8")]:null:r[or("0x2f")]&&!this[or("0x7")].isObject(r.previousSibling)?r.previousSibling:null,r[or("0x25")]||n&&n[or("0x25")]){const t=n&&n.isEmpty?n:r;s&&s[or("0x27")]==o+or("0xa")&&s[or("0x23")][or("0xd")]==t[or("0xd")]?s[or("0x1")]++:e[or("0x29")]({type:o+or("0xa"),element:t,quantity:1})}else e[or("0x29")]({type:o+"Container",element:r})}}}[or("0x17")](e){const t=this[or("0x18")],n=[];for(const o of e){switch(o[or("0x27")]){case or("0x1d"):if(o.add=o[or("0x1a")][or("0x2e")](/(\S)\u000A+(\S)/g,or("0x36"))[or("0x2e")](/\u000A/g,""),o[or("0x15")]=o[or("0x15")][or("0x2e")](/(\S)\u000A+(\S)/g,or("0x36")).replace(/\u000A/g,""),""!=o[or("0x1a")]&&""!=o[or("0x15")]){n[or("0x29")]({type:"replace",content:Yo(t,or("0x32"),['"'+o[or("0x15")]+'"','"'+o[or("0x1a")]+'"'])});continue}if(null!=o[or("0x1a")][or("0x1c")](/^ +$/)){n.push({type:or("0x34"),content:Yo(t,or("0x2b"),Yo(t,or("0x14"),o[or("0x1a")][or("0x19")]))});continue}if(null!=o[or("0x15")][or("0x1c")](/^ +$/)){n.push({type:or("0x35"),content:Yo(t,or("0x6"),Yo(t,or("0x14"),o[or("0x15")][or("0x19")]))});continue}if(""!=o[or("0x1a")]){n.push({type:or("0x34"),content:Yo(t,"*Insert:* %0",'"'+o[or("0x1a")]+'"')});continue}n[or("0x29")]({type:or("0x35"),content:Yo(t,or("0x6"),'"'+o[or("0x15")]+'"')});continue;case"addEmptyContainer":case or("0x33"):n[or("0x29")]({type:or("0x34"),content:Yo(t,or("0x2b"),this.getItemLabel(o[or("0x23")],o[or("0x1")]))});continue;case or("0x31"):case or("0x28"):n.push({type:or("0x35"),content:Yo(t,or("0x6"),this[or("0x2c")](o[or("0x23")],o[or("0x1")]))});continue;case"addContainer":n[or("0x29")]({type:"insertion",content:Yo(t,or("0x13"),this[or("0x2c")](o[or("0x23")],o[or("0x1")]))});continue;case or("0xb"):n[or("0x29")]({type:"deletion",content:Yo(t,"*Merge:* %0",this[or("0x2c")](o[or("0x23")],o[or("0x1")]))});continue}n[or("0x29")](o)}return n}}const sr=["_descriptionFactory","TrackChangesEditing","enableCommand","model","contentLanguageDirection","locale","schema","document","value","FORMAT_ALIGN_TO_LEFT","editor","get","alignment","left","change","filter","from","plugins","getSelectedBlocks","AlignmentEditing","right","markBlockFormat","checkAttribute","FORMAT_JUSTIFY_TEXT","selection","commandParams","getAttribute"];var ir,ar;ir=sr,ar=413,function(e){for(;--e;)ir.push(ir.shift())}(++ar);const cr=function(e,t){return sr[e-=0]};class xr extends e.Plugin{afterInit(){const e=this.editor,t=e[cr("0x18")];if(!e[cr("0x9")].has(cr("0xb")))return;const n=e.plugins[cr("0x3")](cr("0x14"));n[cr("0x15")](cr("0x4"),((t,o={})=>{let r=o.value;o[cr("0x0")]||(r="ltr"===e[cr("0x18")][cr("0x17")]?cr("0x5"):"right");const s=Array[cr("0x8")](this[cr("0x2")][cr("0x16")][cr("0x1a")][cr("0x10")][cr("0xa")]())[cr("0x7")]((e=>function(e,t,n){const o=e[cr("0x12")]("alignment")||null;return t[cr("0xe")](e,cr("0x4"))&&n!=o}(e,this[cr("0x2")].model[cr("0x19")],r)));e[cr("0x16")][cr("0x6")]((()=>{for(const e of s)n[cr("0xd")](e,{commandName:cr("0x4"),commandParams:[{value:r}]})}))})),n[cr("0x13")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"alignment"==n.commandName){const e=n[cr("0x11")][0][cr("0x0")];return{type:"format",content:Yo(t,"*Format:* %0",function(e){switch(e){case cr("0x5"):return Yo(t,cr("0x1"));case cr("0xc"):return Yo(t,"FORMAT_ALIGN_TO_RIGHT");case"center":return Yo(t,"FORMAT_ALIGN_TO_CENTER");case"justify":return Yo(t,cr("0xf"))}}(e))}}}))}}const lr=["markerRange","markerName","push","model","getCustomProperty","listItem","ck-suggestion-marker--active","plugins","test","listIndent","insert","addClass","consumable","span","hasAttribute","element","getWalker","bindElementToMarker","activeMarkers","getItems","createRangeOn","getAttribute","isBlock","item","isAtEnd","parent","type","includes","previousPosition","nextSibling","isLimit","get","createUIElement","writer","elementEnd","mapper"];var ur,dr;ur=lr,dr=415,function(e){for(;--e;)ur.push(ur.shift())}(++dr);const gr=function(e,t){return lr[e-=0]};function mr(e,t,n){const o=[];for(const r of t[gr("0x0")]())r[gr("0x1f")](e)&&o[gr("0x13")](n[gr("0x1")](r));return o}function fr(e){const t=[];if(e.is(gr("0x20"),gr("0x16"))){let n=e.nextSibling;for(;n&&n.is(gr("0x20"),gr("0x16"))&&n[gr("0x2")](gr("0x1a"))>0;)t.push(n),n=n[gr("0xa")]}return t}function hr(e,t,{showActiveMarker:n=!0}={}){const o=e[gr("0x18")][gr("0xc")]("TrackChangesEditing");return(r,s,i)=>{if(!i[gr("0x1d")][gr("0x19")](s.markerRange,r.name))return;const a=s[gr("0x11")][gr("0x21")](),c=s[gr("0x11")].start,x=e[gr("0x14")].schema;let l=null,u=null,d=!1,g=!1;for(const e of a){const t=e[gr("0x4")];d=d||x.isContent(t);const n=i[gr("0x10")].toViewElement(t);if(n&&n[gr("0x15")]("addHighlight"))return;gr("0xf")==e[gr("0x7")]&&x[gr("0x3")](t)&&!x[gr("0xb")](t)&&(t.nextSibling||c[gr("0x5")]?l&&l[gr("0x6")]==t||(l=t,m(e.previousPosition),g=!0):u=u||e[gr("0x9")])}function m(e){const r=i[gr("0xe")][gr("0xd")](gr("0x1e"),{class:"ck-suggestion-marker-"+t}),a=i[gr("0x10")].toViewPosition(e);n&&o[gr("0x23")][gr("0x8")](s[gr("0x12")])&&i[gr("0xe")][gr("0x1c")](gr("0x17"),r),i[gr("0xe")][gr("0x1b")](a,r),i[gr("0x10")][gr("0x22")](r,s[gr("0x12")])}d||g||!u||m(u)}}const kr=["plugins","enableCommand","markInlineFormat","TrackChangesEditing","toLowerCase","document","subscript","locale","FORMAT_ITALIC","registerDescriptionCallback","getRanges","forceValue","underline","FORMAT_BOLD","FORMAT_CODE","_descriptionFactory","superscript","model","UnderlineEditing","isCollapsed","bold","*Remove format:* %0","*Format:* %0","FORMAT_STRIKETHROUGH","strikethrough","italic","SubscriptEditing","FORMAT_UNDERLINE","format","CodeEditing","commands","has","commandParams","SuperscriptEditing","ItalicEditing","afterInit","BoldEditing","get","FORMAT_SUBSCRIPT","commandName"];var br,pr;br=kr,pr=330,function(e){for(;--e;)br.push(br.shift())}(++pr);const _r=function(e,t){return kr[e-=0]},vr=[_r("0x1a"),_r("0x18"),_r("0x8"),_r("0x13"),"StrikethroughEditing",_r("0x10"),_r("0x17")];class yr extends e.Plugin{[_r("0x19")](){const e=this.editor,t=e[_r("0x7")],n=e[_r("0x1e")][_r("0x1b")](_r("0x21")),o=e[_r("0x25")];for(const o of vr){if(!e[_r("0x1e")][_r("0x15")](o))continue;const r=o.slice(0,-7)[_r("0x22")](),s=e[_r("0x14")].get(r);n[_r("0x1f")](r,((e,o={})=>{const i=t[_r("0x23")].selection;if(i[_r("0x9")])return void e(o);const a=void 0!==o[_r("0x1")]?o[_r("0x1")]:!s.value;t.change((()=>{const e=Array.from(i[_r("0x0")]());for(const o of e){const e=a?[o]:mr(r,o,t);for(const t of e)n[_r("0x20")](t,{commandName:r,commandParams:[{forceValue:a}]})}}))}))}function r(e,t){n[_r("0x5")][_r("0x27")]((n=>{const{data:r}=n;if(r&&r[_r("0x1d")]===e)return r[_r("0x16")][0][_r("0x1")]?{type:_r("0x12"),content:Yo(o,_r("0xc"),t)}:{type:"format",content:Yo(o,_r("0xb"),t)}}))}r(_r("0xa"),Yo(o,_r("0x3"))),r(_r("0xf"),Yo(o,_r("0x26"))),r(_r("0x2"),Yo(o,_r("0x11"))),r("code",Yo(o,_r("0x4"))),r(_r("0xe"),Yo(o,_r("0xd"))),r(_r("0x24"),Yo(o,_r("0x1c"))),r(_r("0x6"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const Er=["has","schema","from","_descriptionFactory","TrackChangesEditing","commands","selection","commandParams","get","blockQuote","name","locale","format","document","plugins","value","editor","*Format:* %0","getSelectedBlocks","model","filter","change","checkChild","afterInit","forceValue"];var Cr,Tr;Cr=Er,Tr=247,function(e){for(;--e;)Cr.push(Cr.shift())}(++Tr);const wr=function(e,t){return Er[e-=0]};class Ar extends e.Plugin{[wr("0x1")](){const e=this[wr("0x13")],t=e[wr("0xe")];if(!e.plugins[wr("0x3")]("BlockQuoteEditing"))return;const n=e[wr("0x11")].get(wr("0x7")),o=this[wr("0x13")][wr("0x8")][wr("0xb")]("blockQuote");n.enableCommand(wr("0xc"),((t,r={})=>{const s=this[wr("0x13")].model[wr("0x10")][wr("0x9")],i=r&&void 0!==r[wr("0x2")]?r[wr("0x2")]:!o[wr("0x12")];let a=[];if(i){const t=Array[wr("0x5")](s[wr("0x15")]())[wr("0x17")]((e=>Ir(e)||function(e,t){const n=t[wr("0x0")](e.parent,wr("0xc")),o=t[wr("0x0")](["$root",wr("0xc")],e);return n&&o}(e,this[wr("0x13")][wr("0x16")][wr("0x4")])));a=I(t,e[wr("0x16")])}else{const t=Array.from(s[wr("0x15")]()).filter((e=>Ir(e)));a=I(t,e[wr("0x16")])}e[wr("0x16")][wr("0x18")]((()=>{for(const e of a)n.markBlockFormat(e,{commandName:wr("0xc"),commandParams:[{forceValue:i}]})}))})),n[wr("0x6")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&wr("0xc")==n.commandName){const e=Yo(t,"ELEMENT_BLOCK_QUOTE");return n[wr("0xa")][0].forceValue?{type:"format",content:Yo(t,wr("0x14"),e)}:{type:wr("0xf"),content:Yo(t,"*Remove format:* %0",e)}}}))}}function Ir(e){return"blockQuote"==e.parent[wr("0xd")]}const Rr=["editor","get","ckbox","plugins","afterInit","commands","TrackChangesEditing"];var Sr,Mr;Sr=Rr,Mr=195,function(e){for(;--e;)Sr.push(Sr.shift())}(++Mr);const Nr=function(e,t){return Rr[e-=0]};class Lr extends e.Plugin{[Nr("0x5")](){const e=this[Nr("0x1")];e[Nr("0x6")].get("ckbox")&&e[Nr("0x4")][Nr("0x2")](Nr("0x0")).enableCommand(Nr("0x3"))}}const Or=["registerElementLabel","locale","editor","label","codeBlock","registerDescriptionCallback","commandParams","outdentCodeBlock","*Format:* %0","model","plugins","isLimit","format","commands","rootElement","change","ELEMENT_CODE_BLOCK","name","filter","*Remove format:* %0","formatBlock","forceValue","commandName","get","language","TrackChangesEditing","afterInit","from","selection","CodeBlock","parent","blockName","enableCommand","checkChild","has","_descriptionFactory","indentCodeBlock"];var Pr,Fr;Pr=Or,Fr=138,function(e){for(;--e;)Pr.push(Pr.shift())}(++Fr);const Dr=function(e,t){return Or[e-=0]};class jr extends e.Plugin{[Dr("0x24")](){const e=this[Dr("0xc")];if(!e[Dr("0x14")][Dr("0x7")](Dr("0x2")))return;const t=e.plugins[Dr("0x21")](Dr("0x23")),n=e[Dr("0xb")],o=e.config[Dr("0x21")](Dr("0xe")).languages,r=e[Dr("0x17")][Dr("0x21")](Dr("0xe"));t[Dr("0x5")](Dr("0x9")),t[Dr("0x5")](Dr("0x11")),t[Dr("0x5")](Dr("0xe"),((n,s={})=>{const i=e[Dr("0x13")],a=e[Dr("0x13")].document[Dr("0x1")],c=s&&void 0!==s[Dr("0x1f")]?s[Dr("0x1f")]:!r.value;let x;s[Dr("0x22")]||(s[Dr("0x22")]=o[0].language),x=c?Array.from(a.getSelectedBlocks())[Dr("0x1c")]((e=>{return Br(e)||(t=e,n=i.schema,!t.is(Dr("0x18"))&&!n[Dr("0x15")](t)&&n[Dr("0x6")](t[Dr("0x3")],Dr("0xe")));var t,n})):Array[Dr("0x0")](a.getSelectedBlocks()).filter((e=>Br(e)));const l=I(x,i);i[Dr("0x19")]((()=>{for(const e of l)t.markBlockFormat(e,{commandName:Dr("0xe"),commandParams:[{...s,forceValue:c}],formatGroupId:Dr("0x4")})}))})),t[Dr("0x8")][Dr("0xa")](Dr("0xe"),(e=>Yo(n,Dr("0x1a"),e))),t[Dr("0x8")][Dr("0xf")]((e=>{const{type:t,data:r}=e;if(Dr("0x1e")==t&&r&&Dr("0xe")==r[Dr("0x20")]){const e=r[Dr("0x10")][0][Dr("0x22")],t=o.find((t=>t[Dr("0x22")]===e))[Dr("0xd")],s=n._t(t);return r[Dr("0x10")][0][Dr("0x1f")]?{type:Dr("0x16"),content:Yo(n,Dr("0x12"),Yo(n,Dr("0x1a"),1)+" ("+s+")")}:{type:Dr("0x16"),content:Yo(n,Dr("0x1d"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function Br(e){return Dr("0xe")==e[Dr("0x1b")]}const Ur=["plugins","get","CommentsEditing","editor","has","addCommentThread","enableCommand","TrackChangesEditing"];var Vr,Hr;Vr=Ur,Hr=429,function(e){for(;--e;)Vr.push(Vr.shift())}(++Hr);const Gr=function(e,t){return Ur[e-=0]};class zr extends e.Plugin{afterInit(){const e=this[Gr("0x6")];e.plugins[Gr("0x7")](Gr("0x5"))&&e[Gr("0x3")][Gr("0x4")](Gr("0x2"))[Gr("0x1")](Gr("0x0"))}}var Wr=n(181);const Kr=["merge","batch","high","model","writer","enableCommand","modifySelection","showSuggestionHighlights","getFirstRange","unit","editing","enqueueChange","removeMarker:suggestion:deletion","createSelection","downcastDispatcher","commands","addMarker:suggestion:deletion","createRange","markerName","setSelection","lock","get","selection","detach","isCollapsed","data","document","end","mapper","deleteForward","delete","remove","buffer","markerNameToElements","unbindElementFromMarkerName","TrackChangesEditing"];var qr,Zr;qr=Kr,Zr=358,function(e){for(;--e;)qr.push(qr.shift())}(++Zr);const Xr=function(e,t){return Kr[e-=0]};class $r extends e.Plugin{static get requires(){return[Wr.Delete]}init(){const e=this.editor,t=e.plugins[Xr("0x17")](Xr("0x1"));t[Xr("0x7")](Xr("0x20"));const n=e[Xr("0x11")][Xr("0x17")](Xr("0x1f"));t[Xr("0x7")](Xr("0x1f"),((t,o={})=>{const r=e[Xr("0x5")][Xr("0xf")](e[Xr("0x5")][Xr("0x1c")][Xr("0x18")]);r[Xr("0x1a")]&&e[Xr("0x5")][Xr("0x8")](r,{direction:"forward",unit:o[Xr("0xb")]});const s=r[Xr("0xa")](),a=i.LiveRange.fromRange(s);let c;t(o),c="$graveyard"==a.root.rootName?e[Xr("0x5")][Xr("0x13")](s.start):e[Xr("0x5")].createRange(a.start,a[Xr("0x1d")]),a[Xr("0x19")](),e[Xr("0x5")][Xr("0xd")](n[Xr("0x22")][Xr("0x3")],(e=>{n[Xr("0x22")][Xr("0x16")](),e[Xr("0x15")](e.createRange(c[Xr("0x1d")])),n[Xr("0x22")].unlock()}))})),e[Xr("0xc")].downcastDispatcher.on(Xr("0x12"),hr(e,Xr("0x2")),{priority:"high"}),e[Xr("0x1b")][Xr("0x10")].on(Xr("0x12"),((t,n,o)=>{o.options[Xr("0x9")]&&hr(e,Xr("0x2"),{showActiveMarker:!1})(t,n,o)}),{priority:"high"}),e[Xr("0xc")][Xr("0x10")].on(Xr("0xe"),((e,t,n)=>{const o=n[Xr("0x1e")][Xr("0x23")](t[Xr("0x14")]);if(o)for(const e of o)e.is("uiElement")&&(n[Xr("0x1e")][Xr("0x0")](e,t[Xr("0x14")]),n[Xr("0x6")][Xr("0x21")](e))}),{priority:Xr("0x4")})}}const Jr=["splitListItemBefore","listIndent","ELEMENT_BULLETED_LIST","numberedList","createRange","afterInit","listType","enableCommand","schema","outdentList","indentList","*Outdent:* %0","end","change","listItemId","document","editor","bulletedList","commandName","*Format:* remove from %0","forceValue","markBlockFormat","plugins","slice","nextSibling","filter","ELEMENT_LIST_ITEM","length","from","previousSibling","value","getSelectedBlocks","model","ELEMENT_NUMBERED_LIST","get","splitListItemAfter","hasAttribute","createPositionAt","registerElementLabel","has","isObject","getAttribute","commandParams","commands","locale","_descriptionFactory","selection","format","add","*Format:* insert into %0"];var Qr,Yr;Qr=Jr,Yr=471,function(e){for(;--e;)Qr.push(Qr.shift())}(++Yr);const es=function(e,t){return Jr[e-=0]};class ts extends e.Plugin{[es("0x22")](){const e=this[es("0x2d")];if(!e.plugins[es("0x12")]("DocumentListEditing"))return;const t=e[es("0x17")],n=e[es("0x1")][es("0xd")]("TrackChangesEditing");function o(t){return()=>{const o=e[es("0xb")][es("0x2c")][es("0x19")],r=e[es("0x16")][es("0xd")](t);if(r.value){const s=o[es("0xa")]();return void e.model[es("0x2a")]((()=>{for(const e of s)n.markBlockFormat(e,{commandName:t,commandParams:[{forceValue:!r[es("0x9")]}],formatGroupId:"listType"})}))}const s=t[es("0x2")](0,-4),i=function(e,t,n){let o=Array[es("0x7")](e).filter((e=>{return t=e,n.checkAttribute(t,es("0x2b"));var t}));o=o[es("0x4")]((e=>!e[es("0xf")]("listItemId")||e[es("0x14")](es("0x23"))!==t));const r=new Set;for(const e of o)e[es("0xf")](es("0x2b"))?r[es("0x1b")](os(e)):r[es("0x1b")](e);return Array[es("0x7")](r)}(o.getSelectedBlocks(),s,e[es("0xb")][es("0x25")]);e[es("0xb")][es("0x2a")]((()=>{for(const e of i)n[es("0x0")](e,{commandName:t,commandParams:[{forceValue:!r.value}],formatGroupId:"listType"},ns(e))}))}}function r(t){return()=>{const o=function(e){const t=(e=Array[es("0x7")](e)).findIndex((e=>!e[es("0xf")](es("0x2b"))));return t>-1&&(e=e.slice(0,t)),e}(e[es("0xb")].document[es("0x19")][es("0xa")]()),r=e[es("0xb")][es("0x21")](e[es("0xb")][es("0x10")](o[0],"before"),e.model.createPositionAt(o[o[es("0x6")]-1],es("0x29")));e.model.change((()=>{n[es("0x0")](r,{commandName:t,commandParams:[],formatGroupId:es("0x1e")},function(e){const t=new Set;for(const n of e){let e=n.nextSibling;for(;e&&e.getAttribute(es("0x1e"))>n[es("0x14")]("listIndent");)t[es("0x1b")](e),e=e.nextSibling}return Array[es("0x7")](t)}(o))}))}}n.enableCommand(es("0x20"),o(es("0x20"))),n[es("0x24")](es("0x2e"),o(es("0x2e"))),n[es("0x24")](es("0x27"),r("indentList")),n.enableCommand(es("0x26"),r(es("0x26"))),n[es("0x24")](es("0xe")),n[es("0x24")](es("0x1d")),n[es("0x18")][es("0x11")]((t=>!e.model[es("0x25")][es("0x13")](t)&&t[es("0xf")](es("0x2b"))),(e=>Yo(t,"ELEMENT_LIST_ITEM",e))),n[es("0x18")].registerDescriptionCallback((e=>{const{data:n}=e;if(!n)return;let o,r,s;switch(n[es("0x2f")]){case es("0x2e"):s=n[es("0x15")][0].forceValue,o=es(s?"0x1c":"0x30"),r={type:"format",content:Yo(t,o,Yo(t,es("0x1f")))};break;case"numberedList":s=n[es("0x15")][0][es("0x31")],o=es(s?"0x1c":"0x30"),r={type:es("0x1a"),content:Yo(t,o,Yo(t,es("0xc")))};break;case es("0x27"):o="*Indent:* %0",r={type:"format",content:Yo(t,o,Yo(t,es("0x5")))};break;case"outdentList":o=es("0x28"),r={type:es("0x1a"),content:Yo(t,o,Yo(t,"ELEMENT_LIST_ITEM"))}}return r}))}}function ns(e){const t=[];if(e.hasAttribute("listItemId")&&e[es("0x14")](es("0x1e"))>0){let n=e[es("0x3")];for(;n&&n[es("0xf")](es("0x2b"))&&n.getAttribute("listIndent")===e.getAttribute(es("0x1e"));)t.push(n),n=n.nextSibling}return t}function os(e){const t=e.getAttribute(es("0x1e"));if(0==t)return e;let n=e;for(;e[es("0x8")]&&e[es("0xf")](es("0x2b"));){const o=e.previousSibling.getAttribute(es("0x1e"));if(o==t)n=e[es("0x8")];else if(o<t)break;e=e[es("0x8")]}return n}var rs=n(331);const ss=["nextSibling","markerName","plugins","createRange","markInsertion","enter","mapper","high","getFirstRange","selection","removeMarker:suggestion:insertion","isLimit","remove","parent","schema","detach","isAtEnd","data","start","model","end","TrackChangesEditing","addMarker:suggestion:insertion","unbindElementFromMarkerName","writer","editing","change","options","downcastDispatcher","document","split","enableCommand","get","editor","markerNameToElements","isCollapsed","createPositionAt"];var is,as;is=ss,as=474,function(e){for(;--e;)is.push(is.shift())}(++as);const cs=function(e,t){return ss[e-=0]};class xs extends e.Plugin{static get requires(){return[rs.Enter]}init(){const e=this[cs("0x3")],t=e[cs("0x9")][cs("0x2")](cs("0x1c"));t[cs("0x1")](cs("0xc"),(n=>{e[cs("0x1a")][cs("0x21")]((o=>{const r=e[cs("0x1a")][cs("0x24")][cs("0x10")],s=r.getFirstPosition(),a=r[cs("0x5")],c=i.LiveRange.fromRange(r[cs("0xf")]()),x=c[cs("0x19")][cs("0x14")],l=c.end.parent,u=!(c[cs("0x19")].isAtStart&&c[cs("0x1b")][cs("0x17")]),d=x==l,g=!(e[cs("0x1a")][cs("0x15")][cs("0x12")](x)||e[cs("0x1a")][cs("0x15")][cs("0x12")](l))&&(a||u&&d);if(n(),g){const n=e[cs("0x1a")][cs("0x6")](s.parent[cs("0x7")],0),r=o[cs("0xa")](s,n);t[cs("0xb")](r)}else o.setSelection(o[cs("0xa")](c[cs("0x1b")]));c[cs("0x16")]()}))})),e[cs("0x20")][cs("0x23")].on(cs("0x1d"),hr(e,cs("0x0")),{priority:cs("0xe")}),e[cs("0x20")][cs("0x23")].on(cs("0x11"),((e,t,n)=>{const o=n[cs("0xd")][cs("0x4")](t[cs("0x8")]);if(o)for(const e of o)e.hasClass("ck-suggestion-marker-split")&&(n[cs("0xd")][cs("0x1e")](e,t[cs("0x8")]),n[cs("0x1f")][cs("0x13")](e))}),{priority:"high"}),e[cs("0x18")].downcastDispatcher.on(cs("0x1d"),((t,n,o)=>{o[cs("0x22")].showSuggestionHighlights&&hr(e,"split",{showActiveMarker:!1})(t,n,o)}),{priority:"high"})}}const ls=["toLowerCase","config","from","markInlineFormat","get","fontFamily","label","*Set font size:* %0","model","format","FontSize","value","fontBackgroundColor","FontSizeEditing","*Reset font size*","*Reset font background color*","fontColor","document","commandName","FontColorEditing","*Set font background color:* %0","TrackChangesEditing","afterInit","*Set font color:* %0","enableCommand","_descriptionFactory","registerDescriptionCallback","commandParams","editor","fontSize.options","*Reset font family*","selection","trim","plugins","locale","_enableCommand","title","fontSize","find","FontFamilyEditing","getRanges"];var us,ds;us=ls,ds=459,function(e){for(;--e;)us.push(us.shift())}(++ds);const gs=function(e,t){return ls[e-=0]},ms=[{pluginName:gs("0x5"),commandName:"fontSize"},{pluginName:gs("0x1f"),commandName:gs("0x26")},{pluginName:gs("0xb"),commandName:gs("0x8")},{pluginName:"FontBackgroundColorEditing",commandName:gs("0x4")}];class fs extends e.Plugin{[gs("0xe")](){const e=this.editor.locale;for(const{pluginName:e,commandName:t}of ms)this[gs("0x14")].plugins.has(e)&&this[gs("0x1b")](t);this[gs("0x14")].plugins.get("TrackChangesEditing")[gs("0x11")][gs("0x12")]((t=>{const{data:n}=t;if(null!=n){if(gs("0x1d")==n[gs("0xa")]){const t=n.commandParams[0][gs("0x3")];if(t){const n=this.editor[gs("0x19")].get(gs("0x2")).normalizeSizeOptions(this[gs("0x14")][gs("0x22")][gs("0x25")](gs("0x15")))[gs("0x1e")]((e=>e[gs("0x0")]==t))[gs("0x1c")],o=this.editor[gs("0x1a")]._t(n)[gs("0x21")]();return{type:gs("0x1"),content:Yo(e,gs("0x28"),o)}}return{type:gs("0x1"),content:Yo(e,gs("0x6"))}}if(gs("0x26")==n.commandName){const t=n.commandParams[0][gs("0x3")];return t?{type:gs("0x1"),content:Yo(e,"*Set font family:* %0",t)}:{type:"format",content:Yo(e,gs("0x16"))}}if(gs("0x8")==n.commandName){const t=n[gs("0x13")][0][gs("0x3")];if(t){const n=(0,r.normalizeColorOptions)(this[gs("0x14")].config[gs("0x25")]("fontColor.colors"))[gs("0x1e")]((e=>e[gs("0x0")]==t));let o=t,s="";return n&&(o=n[gs("0x27")],s=e._t(o)[gs("0x21")]()),{type:"format",content:Yo(e,gs("0xf"),s)[gs("0x18")](),color:{value:t,title:s||o}}}return{type:gs("0x1"),content:Yo(e,"*Reset font color*")}}if("fontBackgroundColor"==n[gs("0xa")]){const t=n[gs("0x13")][0].value;if(t){const n=(0,r.normalizeColorOptions)(this.editor[gs("0x22")].get("fontBackgroundColor.colors")).find((e=>e.model==t));let o=t,s="";return n&&(o=n[gs("0x27")],s=e._t(o)[gs("0x21")]()),{type:gs("0x1"),content:Yo(e,gs("0xc"),s)[gs("0x18")](),color:{value:t,title:s||o}}}return{type:gs("0x1"),content:Yo(e,gs("0x7"))}}}}))}[gs("0x1b")](e){const t=this[gs("0x14")];t[gs("0x19")][gs("0x25")](gs("0xd"))[gs("0x10")](e,((n,o={})=>{const r=t[gs("0x0")][gs("0x9")][gs("0x17")],s=o[gs("0x3")];r.isCollapsed?n(o):t[gs("0x0")].change((()=>{const n=Array[gs("0x23")](r[gs("0x20")]());for(const o of n){const n=s?[o]:mr(e,o,t[gs("0x0")]);for(const o of n)t[gs("0x19")][gs("0x25")](gs("0xd"))[gs("0x24")](o,{commandName:e,commandParams:[{value:s}]})}}))}))}}const hs=["document","change","model","enableCommand","registerElementLabel","afterInit","blockName","format","config","commandName","selection","ELEMENT_HEADING_CUSTOM","parent","get","name","paragraph","isObject","commandParams","_descriptionFactory","title","value","editor","filter","HeadingEditing","locale","getSelectedBlocks","has","ELEMENT_HEADING","heading","plugins","TrackChangesEditing","registerDescriptionCallback"];var ks,bs;ks=hs,bs=153,function(e){for(;--e;)ks.push(ks.shift())}(++bs);const ps=function(e,t){return hs[e-=0]};class _s extends e.Plugin{[ps("0xc")](){const e=this[ps("0x1c")],t=e[ps("0x1f")],n=e[ps("0xf")][ps("0x14")]("heading.options");if(!e.plugins[ps("0x1")](ps("0x1e")))return;const o=e[ps("0x4")].get(ps("0x5"));o[ps("0xa")](ps("0x3"),((t,n)=>{const r=n[ps("0x1b")],s=Array.from(this.editor[ps("0x9")][ps("0x7")][ps("0x11")][ps("0x0")]())[ps("0x1d")]((e=>{return t=e,n=r,(o=this.editor[ps("0x9")].schema).checkChild(t[ps("0x13")],n)&&!o[ps("0x17")](t)&&t[ps("0x15")]!=n;var t,n,o}));e.model[ps("0x8")]((()=>{for(const e of s)o.markBlockFormat(e,{commandName:ps("0x3"),commandParams:[n],formatGroupId:ps("0xd")},fr(e))}))}));for(const e of n)ps("0x16")!=e.model&&o[ps("0x19")][ps("0xb")](e[ps("0x9")],(t=>{const n=vs(e[ps("0x9")]);return null!==n?r(t,n):s(t,e[ps("0x1a")])}));function r(e,n){return Yo(t,ps("0x2"),[e,n])}function s(e,n){return Yo(t,ps("0x12"),[e,n])}o[ps("0x19")][ps("0x6")]((e=>{const{type:o,data:i}=e;if("formatBlock"==o&&i&&ps("0x3")==i[ps("0x10")]){const e=i[ps("0x18")][0][ps("0x1b")],o=vs(e);if(null!==o)return{type:ps("0xe"),content:Yo(t,"*Change to:* %0",r(1,o))};const a=n.find((t=>t[ps("0x9")]===e))[ps("0x1a")];return{type:ps("0xe"),content:Yo(t,"*Change to:* %0",s(1,a))}}}))}}function vs(e){const t=e.match(/^heading(\d+)$/);return t?t[1]:null}const ys=["model","getFirstPosition","TrackChangesEditing","getAttribute","highlight","getRanges","formatInline","*Remove highlight*","change","plugins","title","highlight.options","createRange","*Set highlight:* %0","get","format","backward","item","locale","registerDescriptionCallback","value","_descriptionFactory","commandName","selection","push","toLowerCase","hasAttribute","find","editor","commandParams","color"];var Es,Cs;Es=ys,Cs=163,function(e){for(;--e;)Es.push(Es.shift())}(++Cs);const Ts=function(e,t){return ys[e-=0]};class ws extends e.Plugin{afterInit(){const e=this[Ts("0x14")];if(!e[Ts("0x1")].has("HighlightEditing"))return;const t=e[Ts("0x1")][Ts("0x6")](Ts("0x19"));t.enableCommand(Ts("0x1b"),((n,o={})=>{const r=e[Ts("0x17")].document[Ts("0xf")],s=r[Ts("0x1a")](Ts("0x1b"));let i=o[Ts("0xc")],a=[];if(r.isCollapsed){const t=r[Ts("0x18")]();if(!r[Ts("0x12")](Ts("0x1b")))return void n(o);{const n=e=>e[Ts("0x9")][Ts("0x1a")]("highlight")===s,o=t.getLastMatchingPosition(n,{direction:Ts("0x8")}),r=t.getLastMatchingPosition(n);a=[e[Ts("0x17")][Ts("0x4")](o,r)],i==s&&(i=null)}}else for(const t of r[Ts("0x1c")]())i?a.push(t):a[Ts("0x10")](...mr(Ts("0x1b"),t,e[Ts("0x17")]));e.model[Ts("0x0")]((()=>{for(const e of a)t.markInlineFormat(e,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=e[Ts("0xa")];t[Ts("0xd")][Ts("0xb")]((t=>{const{type:o,data:r}=t;if(Ts("0x1d")==o&&r&&Ts("0x1b")==r[Ts("0xe")]){const t=r[Ts("0x15")][0].value;if(t){const o=e.config[Ts("0x6")](Ts("0x3"))[Ts("0x13")]((e=>e[Ts("0x17")]==t)),r=n._t(o.title)[Ts("0x11")]();return{type:"format",content:Yo(n,Ts("0x5"),r),color:{value:o[Ts("0x16")],title:o[Ts("0x2")]}}}return{type:Ts("0x7"),content:Yo(n,Ts("0x1e"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const As=["afterInit","plugins","addClass","TrackChangesEditing","for","createPositionAt","ELEMENT_HORIZONTAL_LINE","horizontalLine","elementToStructure","locale","get","createContainerElement","enableCommand","conversion","editor","has","HorizontalLineEditing","_descriptionFactory"];var Is,Rs;Is=As,Rs=238,function(e){for(;--e;)Is.push(Is.shift())}(++Rs);const Ss=function(e,t){return As[e-=0]};class Ms extends e.Plugin{[Ss("0xe")](){const e=this[Ss("0xa")];if(!e[Ss("0xf")][Ss("0xb")](Ss("0xc")))return;e[Ss("0xf")].get("TrackChangesEditing")[Ss("0x8")](Ss("0x3"));const t=e.plugins[Ss("0x6")](Ss("0x11")),n=e[Ss("0x5")];t[Ss("0xd")].registerElementLabel(Ss("0x3"),(e=>Yo(n,Ss("0x2"),e))),e[Ss("0x9")][Ss("0x0")]("dataDowncast")[Ss("0x4")]({model:Ss("0x3"),view:(e,{writer:t,options:n})=>{if(!n.showSuggestionHighlights)return;const o=t[Ss("0x7")]("div"),r=t.createEmptyElement("hr");return t[Ss("0x10")]("ck-horizontal-line",o),t.insert(t[Ss("0x1")](o,0),r),o},converterPriority:"high"})}}const Ns=["enableCommand","rawHtml","afterInit","editing","getAttribute","rawHtmlApi","has","plugins","HtmlEmbed","getSelectedElement","commandName","format","element","value","ELEMENT_HTML_EMBED","cancel","get","locale","htmlEmbed","model","selection","view","markBlockFormat"];var Ls,Os;Ls=Ns,Os=164,function(e){for(;--e;)Ls.push(Ls.shift())}(++Os);const Ps=function(e,t){return Ns[e-=0]};class Fs extends e.Plugin{[Ps("0x16")](){const e=this.editor;if(!e[Ps("0x4")][Ps("0x3")](Ps("0x5")))return;const t=e[Ps("0x4")][Ps("0xd")]("TrackChangesEditing"),n=e[Ps("0xe")],o=e[Ps("0x0")][Ps("0x12")].document[Ps("0x11")];t._descriptionFactory.registerElementLabel(Ps("0x15"),(e=>Yo(n,"ELEMENT_HTML_EMBED",e))),e[Ps("0x4")].get("TrackChangesEditing")[Ps("0x14")](Ps("0xf"),((n,r)=>{const s=e[Ps("0x10")],i=s.document[Ps("0x11")];s.change((()=>{const e=function(e){const t=e[Ps("0x6")]();return t&&t.is(Ps("0x9"),"rawHtml")?e[Ps("0x6")]():null}(i);if(!e)return void n(null);const s=e[Ps("0x1")](Ps("0xa"))||"";void 0!==r&&r!==s&&(t[Ps("0x13")](e,{commandName:Ps("0xf"),commandParams:[r]}),o.getSelectedElement().getCustomProperty(Ps("0x2"))[Ps("0xc")]())}))})),t._descriptionFactory.registerDescriptionCallback((e=>{const{data:t}=e;if(t&&Ps("0xf")==t[Ps("0x7")]){const e=Yo(n,Ps("0xb"));return{type:Ps("0x8"),content:Yo(n,"*Change %0 content*",e)}}}))}}const Ds=["head","getAttribute","createRangeOn","imageTextAlternative","toPrevious","document","ImageStyleEditing","newRange","getCaptionFromImageModelElement","isCollapsed","imageTypeInline","change","*Set image text alternative:* %0","isInlineImage","imageStylePostApply","resizeImage","getSuggestion","isOwn","subType","markInlineFormat","Inline image to block image","schema","toNext","ImageUploadEditing","toggleImageCaption","isIntersecting","nodeBefore","commandName","refresh","registerPostFixer","afterInit","normalizedStyles","title","_splitMarkerName","hasSuggestion","formatBlock","*Reset image width*","start","alt","ImageCaptionUtils","convertBlockImageToInline","registerElementLabel","shouldConvertImageType","imageTypeBlock","imageStyle","_suggestionFactory","ImageTextAlternativeEditing","filter","commandParams","getSuggestions","next","format","insertion","name","getFirstRange","getNearestSelectionRange","newValue","Users","_descriptionFactory","forEach","getClosestSelectedImageElement","caption","registerCustomCallback","end","markInsertion","forward","length","imageInline","*Set image width:* %0","value","*Remove image text alternative*","type","detach","getSuggestionCallback","ELEMENT_IMAGE","ImageCaptionEditing","Block image to inline image","FORMAT_SIDE_IMAGE","markBlockFormat","suggestion","find","registerDescriptionCallback","_findSuggestions","commands","getChangedMarkers","*Format:* %0","plugins","chain","backward","TrackChangesEditing","width","ELEMENT_INLINE_IMAGE","addObject","isBlockImage","createRange","isInContent","enableCommand","imageStylePreApply","getContainedElement","discardSuggestion","isEqual","get","locale","selection","author","side","convertInlineImageToBlock","discard","model","nodeAfter","fromPosition","accept","findIndex","insertImage","join","has","differ","imageCaption","commandReversedParams","uploadImage","previous","isBefore"];var js,Bs;js=Ds,Bs=398,function(e){for(;--e;)js.push(js.shift())}(++Bs);const Us=function(e,t){return Ds[e-=0]};class Vs extends e.Plugin{[Us("0x78")](){const e=this.editor;if(!e[Us("0x36")][Us("0x53")]("ImageEditing"))return;const n=e[Us("0x36")][Us("0x45")](Us("0x39")),o=e[Us("0x36")].get("ImageUtils"),r={},s=e[Us("0x46")];if(n[Us("0x40")](Us("0x51")),n._descriptionFactory[Us("0x9")]("imageBlock",(e=>Yo(s,Us("0x2a"),e))),n[Us("0x1a")][Us("0x9")](Us("0x23"),(e=>Yo(s,Us("0x3b"),e))),n[Us("0x1a")][Us("0x9")](Us("0x1d"),(()=>Yo(s,"ELEMENT_CAPTION"))),e.plugins[Us("0x53")](Us("0x71"))&&n[Us("0x40")](Us("0x57")),e[Us("0x36")][Us("0x53")]("ImageBlockEditing")&&e[Us("0x36")].has("ImageInlineEditing")&&(n[Us("0x40")]("imageTypeInline",((t,r)=>{const s=o[Us("0x1c")](e[Us("0x4c")][Us("0x5f")][Us("0x47")]);e[Us("0x4c")][Us("0x65")]((()=>{n[Us("0x2e")](s,{commandName:Us("0x64"),commandParams:[r]},[],Us("0x8"))}))})),n[Us("0x40")](Us("0xb"),((t,r)=>{e.model[Us("0x65")]((s=>{let a=o[Us("0x1c")](e[Us("0x4c")][Us("0x5f")].selection),c=s[Us("0x5c")](a);const x=i.LivePosition.fromPosition(c[Us("0x5")],Us("0x5e")),l=i.LivePosition[Us("0x4e")](c.end,Us("0x70"));n.forceDefaultExecution((()=>t(r))),a=o[Us("0x1c")](e[Us("0x4c")].document.selection),c=s[Us("0x5c")](a);const u=s.createRange(x,l);x[Us("0x28")](),l[Us("0x28")](),n[Us("0x2e")](a,{commandName:Us("0x64")},[],Us("0x4a")),u[Us("0x5")].isBefore(c[Us("0x5")])&&n[Us("0x20")](s[Us("0x3e")](u.start,c.start),Us("0x4a")),c[Us("0x1f")].isBefore(u.end)&&n[Us("0x20")](s.createRange(c[Us("0x1f")],u[Us("0x1f")]),Us("0x4a"))}))})),n[Us("0xd")][Us("0x1e")](Us("0x3"),Us("0x4a"),Us("0x52"),(()=>{})),n._suggestionFactory[Us("0x1e")](Us("0x3"),Us("0x4a"),Us("0x4f"),(()=>{})),n[Us("0xd")][Us("0x1e")](Us("0x3"),Us("0x4a"),Us("0x4b"),n._suggestionFactory[Us("0x29")](Us("0x3"),"",Us("0x4f"))),n[Us("0xd")][Us("0x1e")](Us("0x14"),Us("0x4a"),Us("0x52"),(()=>{})),n[Us("0xd")][Us("0x1e")]("insertion",Us("0x4a"),Us("0x4b"),(([t])=>{const o=n[Us("0xd")][Us("0x29")](Us("0x14"),"",Us("0x4b"));let r=t[Us("0x5")],s=t[Us("0x1f")];const i=e[Us("0x4c")][Us("0x6f")][Us("0x17")](r,Us("0x38")),a=e[Us("0x4c")][Us("0x6f")][Us("0x17")](s,Us("0x21"));i[Us("0x63")]&&(r=i.start),a[Us("0x63")]&&(s=a[Us("0x1f")]),o([e[Us("0x4c")].createRange(r,s)])})),n[Us("0xd")][Us("0x1e")](Us("0x3"),Us("0x4a"),"chain",x),n._suggestionFactory[Us("0x1e")](Us("0x14"),Us("0x4a"),"chain",x)),e[Us("0x36")].has(Us("0x2b"))&&(n.enableCommand(Us("0x72"),((t,r)=>{const s=e.plugins[Us("0x45")](Us("0x7"));let i=o[Us("0x1c")](e.model[Us("0x5f")][Us("0x47")]),a=s[Us("0x62")](i);e.model[Us("0x65")]((()=>{if(a)return void n.markDeletion(e.model[Us("0x5c")](a));const c=o[Us("0x3d")](i);t(r),i=o[Us("0x1c")](e.model[Us("0x5f")][Us("0x47")]),a=s.getCaptionFromImageModelElement(i),n[Us("0x20")](e[Us("0x4c")][Us("0x5c")](a),c?null:Us("0x55"))}))})),n[Us("0xd")].registerCustomCallback(Us("0x14"),Us("0x55"),Us("0x37"),x)),e[Us("0x36")].has(Us("0x60"))){n.enableCommand(Us("0xc"),((r,s)=>{const i=e.plugins[Us("0x45")](Us("0x19")).me,a=e.commands[Us("0x45")](Us("0xc"));let c=o.getClosestSelectedImageElement(e.model[Us("0x5f")][Us("0x47")]),x=e[Us("0x4c")][Us("0x5c")](c),l=a[Us("0x25")];if(l==s.value)return;const u={commandName:Us("0xc"),commandParams:[s],formatGroupId:(0,t.uid)()};e.model[Us("0x65")]((()=>{if(n[Us("0x11")]()[Us("0xf")]((e=>e[Us("0x3f")]&&i==e[Us("0x48")]&&("formatBlock"==e[Us("0x27")]||"formatInline"==e[Us("0x27")])&&(Us("0x41")==e[Us("0x6c")]||Us("0x68")==e[Us("0x6c")])&&e[Us("0x16")]()[Us("0x44")](x)))[Us("0x1b")]((e=>n[Us("0x43")](e[Us("0x5a")]))),c=o[Us("0x1c")](e[Us("0x4c")][Us("0x5f")][Us("0x47")]),x=e[Us("0x4c")][Us("0x5c")](c),a[Us("0x76")](),e[Us("0x33")][Us("0x45")]("imageTypeInline").refresh(),e[Us("0x33")][Us("0x45")](Us("0xb"))[Us("0x76")](),l=a.value,l!=s[Us("0x25")])return o[Us("0x67")](c)&&a[Us("0xa")](s[Us("0x25")],c)?(r(s),c=o[Us("0x1c")](e.model[Us("0x5f")][Us("0x47")]),void n[Us("0x2e")](c,{...u,commandReversedParams:[{value:l||null}]},[],Us("0x41"))):void(o.isBlockImage(c)?n[Us("0x2e")](c,u,[],Us("0x68")):n[Us("0x6d")](x,u,Us("0x68")))}))}));for(const t of e[Us("0x36")][Us("0x45")](Us("0x60"))[Us("0x79")])r[t[Us("0x15")]]=t[Us("0x0")].toLowerCase();n._suggestionFactory[Us("0x1e")](Us("0x3"),Us("0x41"),Us("0x52"),(()=>{})),n[Us("0xd")][Us("0x1e")](Us("0x3"),Us("0x68"),Us("0x52"),(()=>{})),n[Us("0xd")][Us("0x1e")]("formatInline",Us("0x68"),Us("0x52"),(()=>{})),n._suggestionFactory[Us("0x1e")](Us("0x3"),Us("0x41"),"accept",(()=>{})),n[Us("0xd")][Us("0x1e")](Us("0x3"),"imageStylePreApply",Us("0x4b"),((e,t)=>{n._suggestionFactory[Us("0x29")](Us("0x3"),"",Us("0x4f"))(e,{commandName:t[Us("0x75")],commandParams:t[Us("0x56")]})})),n[Us("0xd")][Us("0x1e")]("formatBlock","imageStylePreApply",Us("0x37"),x)}const a=[{type:"formatBlock",subType:Us("0x41")},{type:Us("0x14"),subType:Us("0x55")},{type:Us("0x3"),subType:Us("0x4a")},{type:Us("0x14"),subType:Us("0x4a")}];function c(e,t){const r=a.findIndex((({type:t,subType:n})=>e[Us("0x27")]==t&&e[Us("0x6c")]==n)),s=a[Us("0x50")]((({type:e,subType:n})=>t.type==e&&t[Us("0x6c")]==n));if(r<0||s<0)return!1;const i=e[Us("0x16")](),c=t[Us("0x16")]();if((0==r||1==r)&&2==s&&i[Us("0x73")](c))return!0;if(2==r&&3==s){const e=n[Us("0x32")](i,Us("0x14")).filter((({suggestion:e,meta:t})=>t[Us("0x6b")]&&Us("0x4a")==e[Us("0x6c")]));if(e.length>1&&c[Us("0x1f")][Us("0x44")](i.start))return!0;if(1==e[Us("0x22")]&&(i[Us("0x5")].isEqual(c[Us("0x1f")])||i.end[Us("0x44")](c[Us("0x5")])))return!0}if(3==r&&3==s&&i[Us("0x5")][Us("0x59")](c.start)){const e=i.end[Us("0x4d")],t=c.start[Us("0x74")];return o[Us("0x3d")](e)&&e===t}return!1}function x(e,t){return c(e,t)?[e,t]:c(t,e)?[t,e]:null}e[Us("0x4c")][Us("0x5f")][Us("0x77")]((()=>{let t=!1;const r=Array.from(e[Us("0x4c")][Us("0x5f")][Us("0x54")][Us("0x34")]());for(const{name:e,data:s}of r){const{group:r,type:i,subType:a,id:c}=n[Us("0x1")](e);if(Us("0x2f")==r&&n[Us("0x2")](c)){if(Us("0x3")==i&&(Us("0x41")==a||Us("0x68")==a)){const e=n[Us("0x6a")](c);if(s[Us("0x61")]){const r=e[Us("0x16")]()[Us("0x42")]();if(o.isBlockImage(r))continue;n.discardSuggestion(e),t=!0}}if(Us("0x14")==i&&"imageCaption"==a&&!s[Us("0x61")]){const e=n.getSuggestion(c);e.next&&e[Us("0x12")][Us("0x3f")]&&(n[Us("0x43")](e.next),t=!0)}}}return t})),e[Us("0x36")][Us("0x53")]("ImageResize")&&n[Us("0x40")](Us("0x69"),((t,r)=>{const s=o[Us("0x1c")](e.model[Us("0x5f")].selection);s[Us("0x5b")](Us("0x3a"))!=r.width&&e[Us("0x4c")][Us("0x65")]((()=>{n[Us("0x2e")](s,{commandName:Us("0x69"),commandParams:[r]})}))})),e.plugins.has(Us("0xe"))&&n[Us("0x40")](Us("0x5d"),((t,r)=>{const s=o[Us("0x1c")](e[Us("0x4c")][Us("0x5f")][Us("0x47")]);(s.hasAttribute(Us("0x6"))?s[Us("0x5b")]("alt"):"")!=r[Us("0x18")]&&e.model.change((()=>{n[Us("0x2e")](s,{commandName:"imageTextAlternative",commandParams:[r]})}))})),n._descriptionFactory[Us("0x31")]((e=>{if(a[Us("0x30")]((({type:t,subType:n})=>e[Us("0x27")]==t&&e[Us("0x6c")]==n)))return e[Us("0x58")]?{}:void 0})),n[Us("0x1a")][Us("0x31")]((e=>{if(Us("0x14")==e.type||"deletion"==e.type){const t=e.getContainedElement();if(t&&t.is("element",Us("0x1d")))return{type:"insertion"==e[Us("0x27")]?Us("0x3c"):"removeObject",element:t,quantity:1}}})),n[Us("0x1a")][Us("0x31")]((e=>Us("0x3")==e[Us("0x27")]&&"convertInlineImageToBlock"==e.subType?{type:Us("0x13"),content:Us("0x6e")}:Us("0x3")==e.type&&Us("0x8")==e.subType?{type:"format",content:Us("0x2c")}:void 0)),n._descriptionFactory[Us("0x31")]((e=>{const{data:t}=e;if(t){if("imageStyle"==t[Us("0x75")]){const e=t[Us("0x10")][0].value;return n=Us("0x49")===e?Yo(s,Us("0x2d")):r[e]||e,{type:Us("0x13"),content:Yo(s,Us("0x35"),n)}}if(Us("0x5d")==t[Us("0x75")]){const e=t[Us("0x10")][0][Us("0x18")];return e?{type:Us("0x13"),content:Yo(s,Us("0x66"),'"'+e+'"')}:{type:"format",content:Yo(s,Us("0x26"))}}if(Us("0x69")==t[Us("0x75")]){const e=t.commandParams[0].width;return e?{type:Us("0x13"),content:Yo(s,Us("0x24"),e)}:{type:Us("0x13"),content:Yo(s,Us("0x4"))}}}var n}))}}const Hs=["importWord","_handleImportedData","trackChanges","execute","editor","high","commands","_setSuggestionData","_trackChangesExecuted","get","plugins","forEach","enableCommand","_trackChangesValueDuringImport","lowest","listenTo","track_changes","TrackChangesEditing","Users","value"];var Gs,zs;Gs=Hs,zs=345,function(e){for(;--e;)Gs.push(Gs.shift())}(++zs);const Ws=function(e,t){return Hs[e-=0]};class Ks extends e.Plugin{constructor(e){super(e),this[Ws("0x8")]=!1,this[Ws("0x3")]=!1}afterInit(){const e=this.editor,t=e[Ws("0x1")].get("importWord"),n=e[Ws("0x1")].get(Ws("0x11"));t&&(t.on(Ws("0x12"),((e,[,t])=>{this[Ws("0x8")]=n[Ws("0xe")],t.collaboration_features[Ws("0xb")]=!this._trackChangesValueDuringImport}),{priority:Ws("0x0")}),this[Ws("0xa")](t,"dataInsert",this[Ws("0x10")].bind(this)),this[Ws("0xa")](t,"dataInsert",(()=>{this[Ws("0x3")]&&(n.execute(),this[Ws("0x3")]=!1)}),{priority:Ws("0x9")}),e[Ws("0x5")][Ws("0x4")](Ws("0xc"))[Ws("0x7")](Ws("0xf")))}[Ws("0x10")](e,t){const{suggestions:n}=t,o=this[Ws("0x13")][Ws("0x1")][Ws("0x4")]("trackChanges"),r=o[Ws("0xe")];this[Ws("0x8")]!==r&&(o[Ws("0x12")](),this._trackChangesExecuted=!0),n&&n[Ws("0x6")]((({id:e,type:t,author:n,created_at:o})=>{const r={id:e,type:t,authorId:this[Ws("0x13")][Ws("0x5")][Ws("0x4")](Ws("0xd")).me.id,createdAt:new Date,data:{},hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:Ws("0xf")}}};this.editor.plugins[Ws("0x4")](xx)[Ws("0x2")](r)}))}}const qs=["filter","selection","enableCommand","commandName","IndentBlock","format","document","model","indent","_descriptionFactory","getSelectedBlocks","outdentBlock","has","indentBlock","get","locale","registerDescriptionCallback","getItemLabel","afterInit","change","editor","outdent","plugins","from","TrackChangesEditing","getItems"];var Zs,Xs;Zs=qs,Xs=493,function(e){for(;--e;)Zs.push(Zs.shift())}(++Xs);const $s=function(e,t){return qs[e-=0]};class Js extends e.Plugin{[$s("0x13")](){const e=this.editor,t=e[$s("0x17")][$s("0xf")]($s("0x19"));e.plugins[$s("0xd")]("IndentEditing")&&(t.enableCommand($s("0x9")),t[$s("0x3")]($s("0x16")));const n=e[$s("0x10")];if(e[$s("0x17")][$s("0xd")]($s("0x5"))){for(const n of[$s("0xe"),$s("0xc")])t.enableCommand(n,(()=>{const o=Array[$s("0x18")](this[$s("0x15")][$s("0x8")][$s("0x7")][$s("0x2")][$s("0xb")]())[$s("0x1")]((e=>this[$s("0x15")].model.schema.checkAttribute(e,"blockIndent")));e.model[$s("0x14")]((()=>{for(const e of o)t.markBlockFormat(e,{commandName:n,commandParams:[{value:""}],formatGroupId:$s("0xe")})}))}));t[$s("0xa")][$s("0x11")]((e=>{const{data:o}=e;if(!o)return;if($s("0xe")!=o[$s("0x4")]&&$s("0xc")!=o[$s("0x4")])return;const r=e[$s("0x0")]()[0],s=t[$s("0xa")][$s("0x12")](r);return $s("0xe")==o.commandName?{type:$s("0x6"),content:Yo(n,"*Indent:* %0",s)}:"outdentBlock"==o.commandName?{type:$s("0x6"),content:Yo(n,"*Outdent:* %0",s)}:void 0}))}}}var Qs,Ys,ei=["get","requires","input","editor","enableCommand","TrackChangesEditing"];Qs=ei,Ys=393,function(e){for(;--e;)Qs.push(Qs.shift())}(++Ys);var ti=function(e,t){return ei[e-=0]};class ni extends e.Plugin{static get[ti("0x4")](){return[Wr.Input]}init(){this[ti("0x0")].plugins[ti("0x3")](ti("0x2"))[ti("0x1")](ti("0x5"))}}const oi=["commandName","get","hasAttribute","editor","unlink","*Remove link*","*Set link:* %0","markInlineFormat","locale","format","document","isCollapsed","commandParams","getAttribute","registerDescriptionCallback","TrackChangesEditing","link","_descriptionFactory","getFirstPosition","getFirstRange","afterInit","change","selection","plugins","model","enableCommand","has","linkHref","LinkEditing"];var ri,si;ri=oi,si=267,function(e){for(;--e;)ri.push(ri.shift())}(++si);const ii=function(e,t){return oi[e-=0]};class ai extends e.Plugin{[ii("0xe")](){const e=this[ii("0x1a")];if(!e[ii("0x11")][ii("0x14")](ii("0x16")))return;const t=e[ii("0x11")][ii("0x18")](ii("0x9"));t[ii("0x13")]("link",((n,o)=>{const r=e[ii("0x12")][ii("0x4")][ii("0x10")];let s=[];if(r[ii("0x5")]){if(!r[ii("0x19")](ii("0x15")))return void n(o);{const t=(0,Wr.findAttributeRange)(r[ii("0xc")](),ii("0x15"),r.getAttribute(ii("0x15")),e[ii("0x12")]);s=[t]}}else s=Array.from(r.getRanges());e[ii("0x12")].change((()=>{for(const e of s)t[ii("0x1")](e,{commandName:ii("0xa"),commandParams:[o]})}))})),t[ii("0x13")]("unlink",(()=>{const n=this[ii("0x1a")][ii("0x12")],o=n[ii("0x4")][ii("0x10")];n[ii("0xf")]((()=>{let n=[];n=o[ii("0x5")]?[(0,Wr.findAttributeRange)(o[ii("0xc")](),ii("0x15"),o[ii("0x7")](ii("0x15")),e[ii("0x12")])]:mr(ii("0x15"),o[ii("0xd")](),e.model);for(const e of n)t[ii("0x1")](e,{commandName:ii("0x1b"),commandParams:[]})}))})),t[ii("0xb")][ii("0x8")]((t=>{const{data:n}=t,o=e[ii("0x2")];if(n){if("link"==n.commandName){const e=n[ii("0x6")][0];return{type:ii("0x3"),content:Yo(o,ii("0x0"),'"'+e+'"')}}return ii("0x1b")==n[ii("0x17")]?{type:ii("0x3"),content:Yo(o,ii("0x1c"))}:void 0}}))}}const ci=["ListEditing","enableCommand","*Check item*","outdentList","TodoListEditing","TrackChangesEditing","listIndent","todoListChecked","todo","locale","List","listType","ELEMENT_TODO_LIST","checkTodoList","get","getSelectedBlocks","createPositionAt","add","filter","numberedList","length","*Uncheck item*","before","replace","_selectedElements","name","markBlockFormat","bulleted","push","value","editor","selection","element","findIndex","nextSibling","parent","from","commandParams","ELEMENT_LIST_ITEM","getAttribute","_descriptionFactory","commands","isObject","slice","ELEMENT_NUMBERED_LIST","schema","*Indent:* %0","afterInit","plugins","execute","registerElementLabel","ELEMENT_BULLETED_LIST","model","listItem","document","previousSibling","registerDescriptionCallback","bulletedList","*Change to:* %0","commandName","todoList","change","format","numbered","checkChild","*Outdent:* %0","indentList","has"];var xi,li;xi=ci,li=468,function(e){for(;--e;)xi.push(xi.shift())}(++li);const ui=function(e,t){return ci[e-=0]};class di extends e.Plugin{[ui("0x37")](){const e=this[ui("0x26")],t=e[ui("0x11")];if(!e[ui("0x38")][ui("0x7")](ui("0x8")))return;const n=e[ui("0x38")][ui("0x16")](ui("0xd")),o=e[ui("0x38")].has(ui("0xc"));function r(t){return()=>{const o=e[ui("0x3c")].document.selection,r=e[ui("0x31")][ui("0x16")](t);if(r[ui("0x25")])return void e[ui("0x39")]("paragraph",{});const s=t[ui("0x33")](0,-4),i=function(e,t,n){let o=Array[ui("0x2c")](e).filter((e=>{return t=e,(o=n)[ui("0x4")](t[ui("0x2b")],ui("0x3d"))&&!o[ui("0x32")](t);var t,o}));o=o[ui("0x1a")]((e=>!e.is(ui("0x28"),ui("0x3d"))||e[ui("0x2f")](ui("0x13"))!=t));const r=new Set;for(const e of o)e.is(ui("0x28"),ui("0x3d"))?r.add(gi(e)):r[ui("0x19")](e);return Array[ui("0x2c")](r)}(o[ui("0x17")](),s,e.model[ui("0x35")]);e[ui("0x3c")][ui("0x1")]((()=>{for(const e of i)n[ui("0x22")](e,{commandName:t,commandParams:[{forceValue:!r[ui("0x25")]}],formatGroupId:"blockName"},mi(e))}))}}function s(t){return()=>{const o=function(e){const t=(e=Array.from(e))[ui("0x29")]((e=>"listItem"!=e.name));return t>-1&&(e=e[ui("0x33")](0,t)),e}(e.model[ui("0x3e")][ui("0x27")][ui("0x17")]()),r=e[ui("0x3c")].createRange(e.model[ui("0x18")](o[0],ui("0x1e")),e.model.createPositionAt(o[o[ui("0x1c")]-1],"end"));e[ui("0x3c")].change((()=>{n[ui("0x22")](r,{commandName:t,commandParams:[],formatGroupId:"listIndent"},function(e){const t=new Set;for(const n of e){let e=n[ui("0x2a")];for(;e&&e[ui("0x2f")](ui("0xe"))>n[ui("0x2f")]("listIndent");)t[ui("0x19")](e),e=e.nextSibling}return Array[ui("0x2c")](t)}(o))}))}}n[ui("0x9")]("numberedList",r("numberedList")),n[ui("0x9")]("bulletedList",r(ui("0x41"))),o&&n[ui("0x9")](ui("0x0"),r(ui("0x0"))),n.enableCommand(ui("0x6"),s(ui("0x6"))),n[ui("0x9")]("outdentList",s("outdentList")),o&&n.enableCommand(ui("0x15"),(()=>{const t=e[ui("0x31")][ui("0x16")](ui("0x15")),o=Array[ui("0x2c")](t[ui("0x20")]);o[ui("0x1a")]((e=>e[ui("0x2f")](ui("0xf"))!=t.value)),e.model[ui("0x1")]((()=>{for(const e of o)n[ui("0x22")](e,{commandName:ui("0x15"),commandParams:[{forceValue:!t.value}]})}))})),n[ui("0x30")][ui("0x3a")](ui("0x3d"),(e=>Yo(t,ui("0x2e"),e))),n._descriptionFactory[ui("0x40")]((e=>{const{data:n}=e;if(n){if(ui("0x1b")==n[ui("0x43")]||ui("0x41")==n[ui("0x43")]||ui("0x0")==n[ui("0x43")])switch(n[ui("0x43")][ui("0x1f")](ui("0x12"),"")){case ui("0x23"):return o(Yo(t,ui("0x3b")));case ui("0x3"):return o(Yo(t,ui("0x34")));case ui("0x10"):return o(Yo(t,ui("0x14")))}if(ui("0x6")==n[ui("0x43")])return{type:ui("0x2"),content:Yo(t,ui("0x36"),Yo(t,ui("0x2e")))};if(ui("0xb")==n[ui("0x43")])return{type:ui("0x2"),content:Yo(t,ui("0x5"),Yo(t,ui("0x2e")))};if(ui("0x15")==n[ui("0x43")])return n[ui("0x2d")][0].forceValue?{type:ui("0x2"),content:Yo(t,ui("0xa"))}:{type:ui("0x2"),content:Yo(t,ui("0x1d"))}}function o(e){return{type:ui("0x2"),content:Yo(t,ui("0x42"),e)}}}))}}function gi(e){const t=e[ui("0x2f")](ui("0xe"));if(0==t)return e;let n=e;for(;e[ui("0x3f")]&&e[ui("0x3f")].is(ui("0x28"),ui("0x3d"));){const o=e.previousSibling[ui("0x2f")](ui("0xe"));if(o==t)n=e[ui("0x3f")];else if(o<t)break;e=e[ui("0x3f")]}return n}function mi(e){const t=[];if(e.is(ui("0x28"),ui("0x3d"))&&e[ui("0x2f")](ui("0xe"))>0){let n=e[ui("0x2a")];for(;n&&ui("0x3d")==n[ui("0x21")]&&n.getAttribute("listIndent")==e[ui("0x2f")]("listIndent");)t[ui("0x24")](n),n=n.nextSibling}return t}const fi=["MediaEmbedEditing","media","plugins","div","ELEMENT_MEDIA","locale","downcastDispatcher","dataDowncast","enableCommand","high","stop","get","createEmptyElement","editor","data","conversion","elementToElement","afterInit","TrackChangesEditing","registerElementLabel","showSuggestionHighlights","options","has","_descriptionFactory"];var hi,ki;hi=fi,ki=488,function(e){for(;--e;)hi.push(hi.shift())}(++ki);const bi=function(e,t){return fi[e-=0]};class pi extends e.Plugin{[bi("0x9")](){const e=this[bi("0x5")];if(!e[bi("0x12")][bi("0xe")](bi("0x10")))return;const t=e.plugins[bi("0x3")](bi("0xa")),n=e[bi("0x15")];t[bi("0x0")]("mediaEmbed"),t[bi("0xf")][bi("0xb")](bi("0x11"),(e=>Yo(n,bi("0x14"),e))),e[bi("0x7")].for(bi("0x17"))[bi("0x8")]({model:bi("0x11"),view:(e,{writer:t,options:n})=>{if(n[bi("0xc")])return t[bi("0x4")](bi("0x13"))},converterPriority:bi("0x1")}),e[bi("0x6")][bi("0x16")].on("attribute:url:media",((e,t,n)=>{n[bi("0xd")].showSuggestionHighlights&&e[bi("0x2")]()}),{priority:bi("0x1")})}}const _i=["has","afterInit","mention","enableCommand","plugins","MentionEditing","get","editor","TrackChangesEditing"];var vi,yi;vi=_i,yi=237,function(e){for(;--e;)vi.push(vi.shift())}(++yi);const Ei=function(e,t){return _i[e-=0]};class Ci extends e.Plugin{[Ei("0x7")](){const e=this[Ei("0x4")];e[Ei("0x1")][Ei("0x6")](Ei("0x2"))&&e[Ei("0x1")][Ei("0x3")](Ei("0x5"))[Ei("0x0")](Ei("0x8"))}}const Ti=["has","pageBreak","TrackChangesEditing","get","enableCommand","afterInit","plugins","PageBreakEditing","registerElementLabel","_descriptionFactory","locale","ELEMENT_PAGE_BREAK","editor"];var wi,Ai;wi=Ti,Ai=247,function(e){for(;--e;)wi.push(wi.shift())}(++Ai);const Ii=function(e,t){return Ti[e-=0]};class Ri extends e.Plugin{[Ii("0x5")](){const e=this[Ii("0xc")];if(!e.plugins[Ii("0x0")](Ii("0x7")))return;e[Ii("0x6")][Ii("0x3")](Ii("0x2"))[Ii("0x4")](Ii("0x1"));const t=e[Ii("0x6")][Ii("0x3")](Ii("0x2")),n=e[Ii("0xa")];t[Ii("0x9")][Ii("0x8")](Ii("0x1"),(e=>Yo(n,Ii("0xb"),e)))}}const Si=["has","commandName","nodeAfter","afterInit","editing","$text","toViewPosition","model","showSuggestionHighlights","TrackChangesEditing","filter","registerElementLabel","isLimit","checkChild","markerName","consume","options","isBlock","ELEMENT_PARAGRAPH","*Insert:* %0","name","createUIElement","bindElementToMarker","addMarker:suggestion:insertion","isTouching","locale","type","downcastDispatcher","getItemLabel","editor","plugins","selection","markBlockFormat","schema","writer","get","getFirstRange","mapper","_descriptionFactory","end","paragraph","insert","insertParagraph","highest","enableCommand","from","start","markerRange","document"];var Mi,Ni;Mi=Si,Ni=306,function(e){for(;--e;)Mi.push(Mi.shift())}(++Ni);const Li=function(e,t){return Si[e-=0]};class Oi extends e.Plugin{[Li("0x28")](){const e=this[Li("0x11")];if(!e[Li("0x12")][Li("0x25")]("Paragraph"))return;const t=e[Li("0xd")],n=e[Li("0x12")][Li("0x17")]("TrackChangesEditing");n[Li("0x1a")][Li("0x30")](Li("0x1c"),(e=>Yo(t,Li("0x6"),e))),n.enableCommand(Li("0x1c"),((t,o={})=>{const r=e[Li("0x2c")][Li("0x24")],s=o[Li("0x13")]||r[Li("0x13")],i=Array[Li("0x21")](s.getSelectedBlocks())[Li("0x2f")]((e=>{return t=e,(n=this[Li("0x11")][Li("0x2c")][Li("0x15")])[Li("0x1")](t.parent,Li("0x1c"))&&!n.isObject(t)&&Li("0x1c")!=t[Li("0x8")];var t,n}));e.model.change((()=>{for(const e of i)n[Li("0x14")](e,{commandName:Li("0x1c"),commandParams:[],formatGroupId:"blockName"},fr(e))}))})),n[Li("0x1a")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Li("0x1c")==n[Li("0x26")])return{type:"format",content:Yo(t,"*Change to:* %0",Yo(t,Li("0x6")))}})),n[Li("0x20")](Li("0x1e")),e[Li("0x29")][Li("0xf")].on("addMarker:suggestion:insertion",Pi(e),{priority:Li("0x1f")}),e.data[Li("0xf")].on(Li("0xb"),((t,n,o)=>{o[Li("0x4")][Li("0x2d")]&&Pi(e,{showActiveMarker:!1})(t,n,o)}),{priority:"highest"});const o=n[Li("0x1a")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Li("0xe")])return;const{start:r,end:s}=n[Li("0x18")]();if(!r.isTouching(s)||!r[Li("0x27")])return;const i=e.model[Li("0x15")],a=r[Li("0x27")];return i[Li("0x5")](a)&&!i[Li("0x0")](a)&&i.checkChild(a,"$text")?{type:"insertion",content:Yo(t,Li("0x7"),o[Li("0x10")](a,1))}:void 0}))}}function Pi(e,{showActiveMarker:t=!0}={}){return(n,o,r)=>{const s=e[Li("0x12")][Li("0x17")](Li("0x2e")),i=o[Li("0x23")][Li("0x22")],a=o[Li("0x23")][Li("0x1b")],c=e[Li("0x2c")].schema;if(!i[Li("0xc")](a)||!i[Li("0x27")])return;const x=i[Li("0x27")];if(c.isBlock(x)&&!c.isLimit(x)&&c.checkChild(x,Li("0x2a"))){if(!r.consumable[Li("0x3")](o[Li("0x23")],n[Li("0x8")]))return;const e=r.writer[Li("0x9")]("span",{class:"ck-suggestion-marker-split"}),i=r[Li("0x19")][Li("0x2b")](a);t&&s.activeMarkers.includes(o[Li("0x2")])&&r[Li("0x16")].addClass("ck-suggestion-marker--active",e),r[Li("0x16")][Li("0x1d")](i,e),r[Li("0x19")][Li("0xa")](e,o[Li("0x2")])}}}const Fi=["model","getAttributes","get","getAttributeProperties","TrackChangesEditing","plugins","RemoveFormatEditing","commandName","locale","schema","document","isFormatting","*Remove all formatting*","markInlineFormat","_descriptionFactory","from","getRanges","change","enableCommand","afterInit","getItems","removeFormat","isCollapsed"];var Di,ji;Di=Fi,ji=306,function(e){for(;--e;)Di.push(Di.shift())}(++ji);const Bi=function(e,t){return Fi[e-=0]};class Ui extends e.Plugin{[Bi("0xc")](){const e=this.editor;if(!e[Bi("0x15")].has(Bi("0x16")))return;const t=e[Bi("0x15")][Bi("0x12")](Bi("0x14"));t[Bi("0xb")](Bi("0xe"),(n=>{const o=e[Bi("0x10")][Bi("0x3")].selection;o[Bi("0xf")]?n():e[Bi("0x10")][Bi("0xa")]((()=>{const n=Array[Bi("0x8")](o[Bi("0x9")]());for(const o of n)for(const n of o[Bi("0xd")]())Vi(n,e[Bi("0x10")][Bi("0x2")])&&t[Bi("0x6")](e[Bi("0x10")].createRangeOn(n),{commandName:"removeFormat",commandParams:[]})}))})),t[Bi("0x7")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Bi("0xe")==n[Bi("0x0")])return{type:"format",content:Yo(e[Bi("0x1")],Bi("0x5"))}}))}}function Vi(e,t){for(const[n]of e[Bi("0x11")]()){const e=t[Bi("0x13")](n);if(e&&e[Bi("0x4")])return!0}return!1}const Hi=["editor","acceptSuggestion","discardSelectedSuggestions","goToPreviousRestrictedEditingException","enableCommand","afterInit","discardSuggestion","discardAllSuggestions","RestrictedEditingModeEditing","has","trackChanges","get","plugins","acceptSelectedSuggestions","acceptAllSuggestions"];var Gi,zi;Gi=Hi,zi=466,function(e){for(;--e;)Gi.push(Gi.shift())}(++zi);const Wi=function(e,t){return Hi[e-=0]};class Ki extends e.Plugin{[Wi("0x4")](){const e=this[Wi("0xe")];if(!e[Wi("0xb")][Wi("0x8")](Wi("0x7")))return;const t=e[Wi("0xb")].get("TrackChangesEditing");t.enableCommand(Wi("0x2")),t[Wi("0x3")]("goToNextRestrictedEditingException");const n=e[Wi("0xb")][Wi("0xa")]("RestrictedEditingModeEditing");n[Wi("0x3")](Wi("0x9")),n[Wi("0x3")](Wi("0x0")),n[Wi("0x3")](Wi("0x5")),n.enableCommand(Wi("0xd")),n.enableCommand(Wi("0x6")),n[Wi("0x3")](Wi("0xc")),n[Wi("0x3")](Wi("0x1"))}}const qi=["writer","consumable","ck-suggestion-marker--active","includes","activeMarkers","registerElementLabel","enableCommand","_descriptionFactory","split","mapper","model","showSuggestionHighlights","init","markerRange","editing","plugins","span","addClass","deletion","data","requires","softBreak","addMarker:suggestion:deletion","options","locale","bindElementToMarker","element","addMarker:suggestion:insertion","ELEMENT_LINE_BREAK","ck-suggestion-marker-","shiftEnter","createUIElement","markerName","get","downcastDispatcher","test","TrackChangesEditing"];var Zi,Xi;Zi=qi,Xi=105,function(e){for(;--e;)Zi.push(Zi.shift())}(++Xi);const $i=function(e,t){return qi[e-=0]};class Ji extends e.Plugin{static get[$i("0x1a")](){return[rs.ShiftEnter]}[$i("0x12")](){const e=this.editor,t=e[$i("0x15")][$i("0x2")]($i("0x5"));t[$i("0xc")]($i("0x24")),e[$i("0x14")].downcastDispatcher.on($i("0x21"),Qi(e),{priority:"high"}),e.editing[$i("0x3")].on($i("0x1c"),Qi(e),{priority:"high"}),e[$i("0x19")].downcastDispatcher.on("addMarker:suggestion",((t,n,o)=>{o[$i("0x1d")][$i("0x11")]&&Qi(e,{showActiveMarker:!1})(t,n,o)})),t[$i("0xd")][$i("0xb")]($i("0x1b"),(t=>Yo(e[$i("0x1e")],$i("0x22"),t)))}}function Qi(e,{showActiveMarker:t=!0}={}){return(n,o,r)=>{const s=e[$i("0x15")].get("TrackChangesEditing");if(!r[$i("0x7")][$i("0x4")](o[$i("0x13")],n.name))return;const i=e[$i("0x10")];for(const e of o[$i("0x13")].getItems()){if(!e.is($i("0x20"),$i("0x1b")))continue;const n=$i("0x18")==o[$i("0x1")].split(":")[1]?"merge":$i("0xe"),a=r[$i("0x6")][$i("0x0")]($i("0x16"),{class:$i("0x23")+n}),c=r[$i("0xf")].toViewPosition(i.createPositionBefore(e));t&&s[$i("0xa")][$i("0x9")](o[$i("0x1")])&&r[$i("0x6")][$i("0x17")]($i("0x8"),a),r[$i("0x6")].insert(c,a),r.mapper[$i("0x1f")](a,o[$i("0x1")])}}}const Yi=["getRanges","commands","afterInit","editor","change","StandardEditingModeEditing","markInlineFormat","_descriptionFactory","commandName","TrackChangesEditing","restrictedEditingException","isCollapsed","locale","has","format","commandParams","forceValue","FORMAT_RESTRICTED_ENABLED","get","selection","plugins","model","value","enableCommand"];var ea,ta;ea=Yi,ta=219,function(e){for(;--e;)ea.push(ea.shift())}(++ta);const na=function(e,t){return Yi[e-=0]};class oa extends e.Plugin{[na("0x17")](){const e=this[na("0x0")],t=e[na("0x12")],n=e[na("0x9")];if(!e.plugins[na("0xa")](na("0x2")))return;const o=e[na("0x11")][na("0xf")](na("0x6")),r=na("0x7"),s=e[na("0x16")][na("0xf")](r);o[na("0x14")](r,((e,n={})=>{const i=t.document[na("0x10")];if(i[na("0x8")])return void e(n);const a=void 0!==n.forceValue?n[na("0xd")]:!s[na("0x13")];t[na("0x1")]((()=>{const e=Array.from(i[na("0x15")]());for(const n of e){const e=a?[n]:mr(r,n,t);for(const t of e)o[na("0x3")](t,{commandName:r,commandParams:[{forceValue:a}]})}}))})),o[na("0x4")].registerDescriptionCallback((e=>{const{data:t}=e;if(t&&t[na("0x5")]==r)return t[na("0xc")][0][na("0xd")]?{type:na("0xb"),content:Yo(n,na("0xe"))}:{type:"format",content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const ra=["style:","change","model","plugins","getRanges","getStyleDefinition","forceValue","getSelectedBlocks","createRangeOn","get","push","value","includes","*Remove format:* %0","TrackChangesEditing","markInlineFormat","commandName","styleName","registerDescriptionCallback","find","name","document","DataSchema","config","toLowerCase","from","editor","isBlock","format","element","getItems","getDefinitionsForView","classes","*Format:* %0","selection","_descriptionFactory","add","commandParams","Style","inline","getAttribute","enableCommand","isCollapsed","style","block","commands","enabledStyles","markBlockFormat"];var sa,ia;sa=ra,ia=243,function(e){for(;--e;)sa.push(sa.shift())}(++ia);const aa=function(e,t){return ra[e-=0]};class ca extends e.Plugin{afterInit(){const e=this[aa("0x17")];if(!e[aa("0x0")].has(aa("0x23")))return;const t=e[aa("0x2a")][aa("0x6")](aa("0x28")),n=e[aa("0x0")][aa("0x6")](aa("0xb")),o=e.locale,r=e[aa("0x0")].get(aa("0x13")),s=function(e,t=[]){const n={block:[],inline:[]};for(const o of t){const t=[],r=[];for(const n of e.getDefinitionsForView(o.element))n.isBlock?t.push(n.model):r.push(n.model);t.length?n.block.push({...o,modelElements:t,isBlock:!0}):n.inline.push({...o,ghsAttributes:r})}return n}(r,e[aa("0x14")].get("style.definitions"));n[aa("0x26")](aa("0x28"),((o,{styleName:i})=>{const a=e[aa("0x2f")][aa("0x12")][aa("0x1f")],c=this[aa("0x2")](i,s);if(!c)return;if(!t[aa("0x2b")][aa("0x9")](i))return;if(a[aa("0x27")]&&!c[aa("0x18")])return void o({styleName:i});const x=!t[aa("0x8")][aa("0x9")](c[aa("0x11")]);if(c[aa("0x18")]){const t=function(e,t){const n=new Set;for(const o of e){const e=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of e)if(t[aa("0x9")](o[aa("0x11")])){n[aa("0x21")](o);break}}return n}(a[aa("0x4")](),c.modelElements);e[aa("0x2f")][aa("0x2e")]((()=>{for(const e of t)n[aa("0x2c")](e,{commandName:aa("0x28"),commandParams:[{styleName:i,forceValue:x}],formatGroupId:aa("0x2d")+i})}))}else{let t=Array[aa("0x16")](a[aa("0x1")]());if(!x){const n=Array[aa("0x16")](r[aa("0x1c")](c[aa("0x1a")],!1))[0][aa("0x2f")],o=[];for(const r of t){const t=this.getRangesWithClasses(e[aa("0x2f")],r,c[aa("0x1d")],n);o.push(...t)}t=o}e[aa("0x2f")][aa("0x2e")]((()=>{for(const e of t)n[aa("0xc")](e,{commandName:aa("0x28"),commandParams:[{styleName:i,forceValue:x}]})}))}})),n[aa("0x20")][aa("0xf")]((e=>{const{data:t}=e;if(t&&aa("0x28")===t[aa("0xd")])return t[aa("0x22")][0][aa("0x3")]?{type:aa("0x19"),content:Yo(o,aa("0x1e"),t.commandParams[0][aa("0xe")][aa("0x15")]())}:{type:aa("0x19"),content:Yo(o,aa("0xa"),t[aa("0x22")][0][aa("0xe")].toLowerCase())}}))}getStyleDefinition(e,t){let n=t[aa("0x29")][aa("0x10")]((t=>t[aa("0x11")]===e));return n||(n=t[aa("0x24")][aa("0x10")]((t=>t[aa("0x11")]===e))),n}getRangesWithClasses(e,t,n,o){const r=[];for(const s of t[aa("0x1b")]()){const t=s[aa("0x25")](o);t&&n.every((e=>t[aa("0x1d")].includes(e)))&&r[aa("0x7")](e[aa("0x5")](s))}return r}}const xa=["showSuggestionHighlights","getRanges","_acceptFormatSuggestionCallbackFactory","min","selectTableColumn","insertion","afterInit","insertTableRowBelow","registerCustomCallback","getItems","getColumnIndexes","commands","root","end","join","createRangeOn","data","tableCell","rowspan","$graveyard","element","MIN_SAFE_INTEGER","enableCommand","selection","insertTableColumnRight","*Remove:* %0","nodeBefore","name","batch","ELEMENT_TABLE_WITH_TEXT","createTableWalker","execute","createPositionAt","addMarker:suggestion","maxRow","length","cell","ELEMENT_TABLE_ROW_WITH_TEXT","getContainedElement","deletion","getAttribute","change:data","ELEMENT_TABLE_COLUMN_WITH_TEXT","first","markMultiRangeInsertion","classes","getRowIndexes","getChangedMarkers","tableRow","accept","plugins","type","selectTableRow","get","registerPostFixer","values","_splitMarkerName","toLowerCase","removeTableColumn","start","insertTableRowAbove","options","getChanges","addRange","position","textProxy","discard","isIntersectingWithRange","TableEditing","insertTableColumnLeft","isArray","_getSuggestionCoords","ELEMENT_TABLE_ROW","_suggestionFactory","createRangeIn","above","model","colspan","fromRange","max","_setupColumnsRowsFixing","insert","findAncestor","oldRange","from","getSelectionAffectedTableCells","substr","markMultiRangeDeletion","differ","has","rootName","maxColumn","nodeAfter","ELEMENT_TABLE_COLUMN","some","change","locale","table","forceValue","addClass","getCellLocation","isInContent","_tableSuggestions","suggestion","MAX_SAFE_INTEGER","setSelection","add","_descriptionFactory","filter","writer","subType","order","detach","includes","refresh","toViewElement","removeTableRow","isEqual","enqueueChange","getChildren","_getCoordsForCells","last","map","TrackChangesEditing","_tablePostFixingSubtypes","*Insert:* %0","editor","highest","span","minColumn","hasAttribute","minRow","getSuggestion","document","tableColumn","left","removeClass"];var la,ua;la=xa,ua=237,function(e){for(;--e;)la.push(la.shift())}(++ua);const da=function(e,t){return xa[e-=0]};class ga extends e.Plugin{constructor(e){super(e),this[da("0x18")]=[da("0x55"),da("0x22")]}[da("0x2b")](){const e=this[da("0x1a")],t=e[da("0x71")][da("0x21")][da("0x3c")];if(!e[da("0x57")][da("0x7e")](da("0x69")))return;const n=e[da("0x85")],o=e[da("0x57")].get(da("0x17")),r=e.plugins[da("0x5a")]("TableUtils");o[da("0x7")].registerElementLabel("table",(e=>Yo(n,"ELEMENT_TABLE",e))),this._setupColumnsRowsFixing(),o.enableCommand("insertTable"),o[da("0x3b")](da("0x59")),o[da("0x3b")](da("0x29"));for(const n of[da("0x61"),da("0x2c")]){const s=e[da("0x30")].get(n);o[da("0x3b")](n,(n=>{e[da("0x71")][da("0x84")]((e=>{n();const i=da("0x70")===s[da("0xb")],a=r[da("0x7a")](t),c=r[da("0x53")](a),x=i?c[da("0x50")]-1:c.last+1,l=a[0].findAncestor(da("0x86")),u=r.createTableWalker(l,{startRow:x,endRow:x}),d=Array[da("0x79")](u).map((t=>e[da("0x34")](t[da("0x49")])));o[da("0x51")](d,da("0x55"))}))}))}for(const n of[da("0x6a"),da("0x3d")]){const s=e.commands[da("0x5a")](n);o.enableCommand(n,(n=>{e.model.change((e=>{n();const i=da("0x23")===s[da("0xb")],a=r.getSelectionAffectedTableCells(t),c=r[da("0x2f")](a),x=i?c.first-1:c[da("0x15")]+1,l=a[0][da("0x77")](da("0x86")),u=r[da("0x43")](l,{startRow:0,column:x,includeAllSlots:!1}),d=Array.from(u)[da("0x16")]((t=>e[da("0x34")](t.cell)));o[da("0x51")](d,da("0x22"))}))}))}for(const n of[da("0x10"),"removeTableColumn"]){const s=n.substr(11),i=s.toLowerCase(),a=i[da("0x7b")](0,3)+da("0x1c"),c="table"+s,x=da("0x28")+s,l=da("0x74")+s;o[da("0x3b")](n,(()=>{e.model[da("0x84")]((e=>{const s=r[da("0x7a")](t),u=s[0][da("0x77")](da("0x86"));let d;if(da("0x10")==n){const e=r[da("0x53")](s);d={startRow:e[da("0x50")],endRow:e[da("0x15")],includeAllSlots:!0}}else{const e=r.getColumnIndexes(s);d={startColumn:e[da("0x50")],endColumn:e[da("0x15")],includeAllSlots:!0}}const g=r[da("0x43")](u,d),m=Array[da("0x79")](g).map((({cell:e})=>e)),f=ma(m.filter((e=>e.hasAttribute(a)))),h=ma(m.filter((e=>!e.hasAttribute(a))))[da("0x16")]((t=>e.createRangeOn(t))),k=o[da("0x7c")](h,c);if(k&&(da("0x55")==k[da("0xa")]||"tableColumn"==k[da("0xa")])){const t=this._getSuggestionCoords(k);for(const n of f){const o=e[da("0x34")](n),s=r.getCellLocation(n),c=n.getAttribute(a)-1,u=t[x],d=t[l];u<=s[i]&&s[i]+c<=d&&k[da("0x64")](o)}}}))}))}function s(n){const o=Array.from(t.getRanges())[da("0x16")]((e=>i.LiveRange[da("0x73")](e)));e[da("0x71")][da("0x84")]((t=>{const r=t[da("0x41")];n=n[da("0x8")]((e=>da("0x38")!=e[da("0x31")][da("0x7f")])),t[da("0x5")](n),e.commands[da("0x5a")](da("0x10")).refresh(),e[da("0x44")](da("0x10"),{forceDefaultExecution:!0}),e[da("0x71")].enqueueChange((()=>{e.model[da("0x12")](r,(e=>{const t=o.filter((e=>da("0x38")!=e[da("0x31")][da("0x7f")]));t[da("0x48")]>0&&e[da("0x5")](t);for(const e of o)e[da("0xc")]()}))}))}))}function c(n){e[da("0x71")][da("0x84")]((o=>{const r=Array[da("0x79")](t[da("0x26")]())[da("0x16")]((e=>i.LiveRange[da("0x73")](e))),s=[];for(const e of n)for(const t of e.getItems({shallow:!0}))s.push(t);for(const t of s)da("0x38")!=t[da("0x31")][da("0x7f")]&&(o.setSelection(o[da("0x45")](t,0)),e[da("0x30")][da("0x5a")](da("0x5f"))[da("0xe")](),e.execute("removeTableColumn",{forceDefaultExecution:!0}));const a=r[da("0x8")]((e=>da("0x38")!=e[da("0x31")].rootName));a.length>0&&o[da("0x5")](a);for(const e of r)e.detach()}))}function x(e,t){return t.every((t=>e.some((e=>e[da("0x32")][da("0x11")](t[da("0x60")])||t.end[da("0x11")](e[da("0x60")])))))}function l(e,t){return e[da("0x83")]((e=>t[da("0x83")]((t=>e[da("0x32")].isTouching(t[da("0x60")])))))}e[da("0x35")].downcastDispatcher.on(da("0x46"),((e,t,n)=>{if(!n[da("0x62")][da("0x25")])return;const o=t.item;if(!o)return;const r=n.mapper[da("0xf")](o);function s(e){return Array[da("0x6b")](e)?e:[e]}r&&"tableCell"===o[da("0x40")]&&(0,a.setHighlightHandling)(r,n[da("0x9")],((e,t,n)=>n[da("0x88")](s(t.classes),e)),((e,t,n)=>n[da("0x24")](s(t[da("0x52")]),e)))}),{priority:da("0x1b")}),o[da("0x7")].registerDescriptionCallback((e=>{if("insertion"!=e[da("0x58")]&&da("0x4c")!=e[da("0x58")])return;const t=e[da("0x4b")]();if(null!=t&&t.is(da("0x39"),da("0x86"))){if("insertion"==e[da("0x58")]){const t=e[da("0x2e")]()[da("0x8")]((e=>e.is(da("0x66"))))[da("0x16")]((e=>e[da("0x35")]));if(t[da("0x48")])return{type:da("0x2a"),content:Yo(n,da("0x19"),Yo(n,da("0x42"),'"'+t[da("0x33")](" ")+'"'))}}if(da("0x4c")==e[da("0x58")]){const t=e[da("0x2e")]().filter((e=>e.is(da("0x66"))))[da("0x16")]((e=>e[da("0x35")]));if(t[da("0x48")])return{type:da("0x4c"),content:Yo(n,da("0x3e"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+t[da("0x33")](" ")+'"'))}}}})),o[da("0x7")].registerDescriptionCallback((e=>{if(da("0x55")==e[da("0xa")]){const t=e[da("0x2e")]()[da("0x8")]((e=>e.is(da("0x66"))))[da("0x16")]((e=>e.data)),o=this[da("0x6c")](e),r=o[da("0x47")]-o[da("0x1f")]+1;if(da("0x2a")==e[da("0x58")])return t[da("0x48")]?{type:da("0x2a"),content:Yo(n,da("0x19"),Yo(n,da("0x4a"),[r,'"'+t[da("0x33")](" ")+'"']))}:{type:"insertion",content:Yo(n,da("0x19"),Yo(n,da("0x6d"),r))};if(da("0x4c")==e[da("0x58")])return t[da("0x48")]?{type:da("0x4c"),content:Yo(n,da("0x3e"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+t[da("0x33")](" ")+'"']))}:{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,da("0x6d"),r))}}if(da("0x22")==e[da("0xa")]){const t=e[da("0x2e")]().filter((e=>e.is(da("0x66"))))[da("0x16")]((e=>e[da("0x35")])),o=this[da("0x6c")](e),r=o[da("0x80")]-o[da("0x1d")]+1;if("insertion"==e[da("0x58")])return t[da("0x48")]?{type:"insertion",content:Yo(n,da("0x19"),Yo(n,da("0x4f"),[r,'"'+t[da("0x33")](" ")+'"']))}:{type:da("0x2a"),content:Yo(n,"*Insert:* %0",Yo(n,da("0x82"),r))};if(da("0x4c")==e[da("0x58")])return t[da("0x48")]?{type:da("0x4c"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+t[da("0x33")](" ")+'"']))}:{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,da("0x82"),r))}}})),o[da("0x6e")][da("0x2d")](da("0x2a"),da("0x55"),da("0x67"),s),o._suggestionFactory.registerCustomCallback(da("0x4c"),da("0x55"),da("0x56"),s),o[da("0x6e")][da("0x2d")](da("0x2a"),da("0x22"),da("0x67"),c),o._suggestionFactory.registerCustomCallback("deletion",da("0x22"),"accept",c),o[da("0x6e")].registerCustomCallback(da("0x2a"),da("0x22"),"join",x),o[da("0x6e")][da("0x2d")](da("0x4c"),da("0x22"),"join",x),o[da("0x6e")][da("0x2d")]("insertion","tableRow",da("0x33"),l),o[da("0x6e")][da("0x2d")](da("0x4c"),"tableRow","join",l)}[da("0x27")](){const e=this[da("0x1a")],t=e[da("0x71")][da("0x21")].selection;return(n,o)=>{e[da("0x71")].change((r=>{const{commandName:s,commandParams:a}=o;let c=n[0][da("0x32")][da("0x3f")];a&&a[0]&&!1===a[0][da("0x87")]&&(c=n[0][da("0x60")][da("0x81")]);const x=r[da("0x6f")](c);if("$graveyard"==x[da("0x31")][da("0x7f")])return;const l=Array[da("0x79")](t.getRanges())[da("0x16")]((e=>i.LiveRange[da("0x73")](e)));r[da("0x5")](x),e[da("0x30")][da("0x5a")](s)[da("0xe")](),a.push({forceDefaultExecution:!0}),e[da("0x44")](s,...a);const u=l.filter((e=>da("0x38")!=e[da("0x31")][da("0x7f")]));u[da("0x48")]>0&&r.setSelection(u);for(const e of l)e.detach()}))}}_getCoordsForCells(e){const t=this[da("0x1a")].plugins[da("0x5a")]("TableUtils");let n=Number[da("0x4")],o=Number.MIN_SAFE_INTEGER,r=Number[da("0x4")],s=Number[da("0x3a")];for(const i of e){if("$graveyard"==i[da("0x31")][da("0x7f")])continue;const{row:e,column:a}=t[da("0x0")](i),c=i.hasAttribute(da("0x37"))?i[da("0x4d")](da("0x37"))-1:0,x=i[da("0x1e")](da("0x72"))?i[da("0x4d")](da("0x72"))-1:0;n=e<n?e:n,o=e+c>o?e+c:o,r=a<r?a:r,s=a+x>s?a+x:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[da("0x75")](){const e=this[da("0x1a")],t=e[da("0x57")][da("0x5a")](da("0x17")),n=e.plugins[da("0x5a")]("TableUtils");this[da("0x2")]=new Set,e[da("0x71")][da("0x21")].on(da("0x4e"),(()=>{const n=Array[da("0x79")](e[da("0x71")].document.differ[da("0x54")]());for(const{name:e,data:o}of n){const{group:n,id:r,subType:s}=t[da("0x5d")](e);if(da("0x3")!=n)continue;if(null!=o[da("0x78")])continue;const i=t[da("0x20")](r);this[da("0x18")][da("0xd")](s)&&this[da("0x2")][da("0x6")](i)}}),{priority:"low"});const o=(e,t)=>{let o=!1;const r=t.createRangeOn(e),s=e.findAncestor(da("0x86")),i=n[da("0x0")](e);for(const t of this[da("0x2")]){const n=t[da("0xa")],a=n.startsWith("tablePaste"),c=n[da("0x7b")](a?10:5),x=c[da("0x5e")](),l=x.substr(0,3)+"span",u=da("0x28")+c,d="max"+c;if(!t[da("0x1")])continue;if(s!=t.getFirstRange()[da("0x60")].findAncestor(da("0x86")))continue;if(t[da("0x68")](r))continue;const g=e.hasAttribute(l)?e[da("0x4d")](l)-1:0,m=this[da("0x6c")](t),f=m[u],h=m[d];f<=i[x]&&i[x]+g<=h&&(t[da("0x64")](r),o=!0)}return o};e[da("0x71")][da("0x21")][da("0x5b")]((t=>{let n=!1;for(const r of e[da("0x71")][da("0x21")][da("0x7d")][da("0x63")]())if(da("0x76")==r.type)if(da("0x55")==r[da("0x40")])for(const e of r[da("0x65")].nodeAfter[da("0x13")]())n=n||o(e,t);else da("0x36")==r[da("0x40")]&&(n=n||o(r[da("0x65")][da("0x81")],t));return n}))}[da("0x6c")](e){return this[da("0x14")](e[da("0x26")]()[da("0x16")]((e=>e[da("0x60")][da("0x81")])))}}function ma(e){return Array[da("0x79")](new Set(e)[da("0x5c")]())}const fa=["map","get","TableEditing","*Split cell:* vertically","refresh","has","document","element","commandName","_areSelectedCellsMergable","commands","TrackChangesEditing","splitTableCellHorizontally","format","isInContent","*Split cell:* horizontally","length","fromRange","tableCell","mergeTableCellRight","mergeTableCells","*Merge cells*","author","enableCommand","registerCustomCallback","change","$graveyard","add","mergeTableCellDown","model","getFirstPosition","rootName","selection","TableUtils","createRangeOn","push","value","markMultiRangeBlockFormat","isEnabled","formatBlock","horizontally","markBlockFormat","_areMergableCells","set:isEnabled","locale","_suggestionFactory","createTableWalker","getRanges","registerDescriptionCallback","trackChanges","getSuggestions","splitTableCellVertically","mergeTableCellLeft","type","find","execute","forceDefaultExecution","_descriptionFactory","_tablePostFixingSubtypes","low","subType","table","from","getAncestors","cell","stop","size","getCellLocation","accept","detach","editor","_acceptFormatSuggestionCallbackFactory","getSelectionAffectedTableCells","insertion","mergeTableCellUp","plugins","highest","return"];var ha,ka;ha=fa,ka=248,function(e){for(;--e;)ha.push(ha.shift())}(++ka);const ba=function(e,t){return fa[e-=0]};class pa extends e.Plugin{static get requires(){return[ga]}afterInit(){const e=this[ba("0x38")],t=e[ba("0xf")][ba("0x46")][ba("0x12")],n=e[ba("0x1e")];if(!e[ba("0x3d")][ba("0x45")](ba("0x42")))return;const o=e.plugins[ba("0x41")](ba("0x4b")),r=e[ba("0x3d")].get(ba("0x13")),s=e[ba("0x3d")][ba("0x41")](ga);s[ba("0x2c")][ba("0x15")](ba("0x6")),o.enableCommand(ba("0x6"),(()=>{const t=r[ba("0x3a")](e[ba("0xf")][ba("0x46")].selection);e[ba("0xf")][ba("0xb")]((()=>{o[ba("0x17")](t,{commandName:ba("0x6"),commandParams:[]},[],ba("0x6"))}))})),e[ba("0x4a")].get(ba("0x6")).on(ba("0x29"),((t,n)=>{e[ba("0x4a")][ba("0x41")](ba("0x23"))[ba("0x16")]&&(n[ba("0x2")]>0&&n[n.length-1]&&n[n[ba("0x2")]-1][ba("0x2a")]||o._isForcedDefaultExecutionBlock||this[ba("0x49")]()||t.stop())}),{priority:ba("0x3e")});for(const t of[ba("0x3c"),"mergeTableCellRight",ba("0xe"),ba("0x26")]){const n=e[ba("0x4a")][ba("0x41")](t);o[ba("0x9")](t,(()=>{const t=e.model[ba("0x46")][ba("0x12")][ba("0x10")]()[ba("0x31")]()[ba("0x28")]((e=>e.is(ba("0x47"),ba("0x4")))),r=n.value;e.model[ba("0xb")]((()=>{o.markMultiRangeBlockFormat([t,r],{commandName:ba("0x6"),commandParams:[]},[],ba("0x6"))}))}))}for(const t of[ba("0x25"),ba("0x4c")]){const n=e[ba("0x4a")][ba("0x41")](t);o[ba("0x9")](t,(()=>{const s=r[ba("0x3a")](e[ba("0xf")][ba("0x46")][ba("0x12")])[0],i=s.findAncestor(ba("0x2f")),{column:a,row:c}=r[ba("0x35")](s);let x=[];if(ba("0x1a")==n.direction){const e=r[ba("0x20")](i,{startRow:c,endRow:c,includeAllSlots:!0});x=Array[ba("0x30")](e)[ba("0x40")]((e=>e[ba("0x32")]))}else{const e=r[ba("0x20")](i,{column:a,includeAllSlots:!0});x=Array[ba("0x30")](e)[ba("0x40")]((e=>e[ba("0x32")]))}e.model[ba("0xb")]((e=>{o[ba("0x1b")](e[ba("0x14")](s),{commandName:t,commandParams:[]},x,t)}))}))}o._descriptionFactory[ba("0x22")]((e=>{const{data:t}=e;if(t)return ba("0x6")==t[ba("0x48")]?{type:ba("0x4d"),content:Yo(n,ba("0x7"))}:void 0})),o[ba("0x2b")][ba("0x22")]((e=>{const{data:t}=e;if(t)return ba("0x25")==t.commandName?{type:"format",content:Yo(n,ba("0x43"))}:"splitTableCellHorizontally"==t[ba("0x48")]?{type:"format",content:Yo(n,ba("0x1"))}:void 0}));const a=s[ba("0x39")]();for(const e of["mergeTableCellUp",ba("0x5"),ba("0xe"),ba("0x26")])o[ba("0x1f")].registerCustomCallback(ba("0x19"),e,ba("0x36"),a);for(const e of[ba("0x25"),ba("0x4c")])o[ba("0x1f")].registerCustomCallback("formatBlock",e,ba("0x36"),a);o[ba("0x1f")][ba("0xa")](ba("0x19"),ba("0x6"),"accept",(n=>{e[ba("0xf")][ba("0xb")]((o=>{const r=Array.from(t[ba("0x21")]())[ba("0x40")]((e=>i.LiveRange[ba("0x3")](e)));o.setSelection(n),e[ba("0x4a")].get(ba("0x6"))[ba("0x44")](),e[ba("0x29")](ba("0x6"),{forceDefaultExecution:!0});const s=r.filter((e=>ba("0xc")!=e.root[ba("0x11")]));s.length>0&&o.setSelection(s);for(const e of r)e[ba("0x37")]()}))}));for(const t of[ba("0x3c"),"mergeTableCellDown",ba("0x26"),ba("0x5")]){const n=e[ba("0x4a")][ba("0x41")](t);n.on(ba("0x1d"),((t,o,r)=>{if(r){const o=e[ba("0xf")][ba("0x46")][ba("0x12")][ba("0x10")]()[ba("0x31")]()[ba("0x28")]((e=>e.is(ba("0x47"),ba("0x4"))));this[ba("0x1c")](n[ba("0x16")],o)||(t[ba("0x3f")]=!1,t[ba("0x33")]())}}),{priority:ba("0x2d")})}}[ba("0x49")](){const e=this.editor.commands.get(ba("0x6")),t=this[ba("0x38")][ba("0x3d")][ba("0x41")](ba("0x13"));if(!e[ba("0x18")])return!1;const n=t[ba("0x3a")](this.editor[ba("0xf")].document[ba("0x12")]);for(const e of n)for(const t of n)if(e!=t&&!this[ba("0x1c")](e,t))return!1;return!0}[ba("0x1c")](e,t){const n=this.editor[ba("0x3d")][ba("0x41")](ba("0x4b")),o=this.editor[ba("0xf")].createRangeOn(e),r=this[ba("0x38")].model[ba("0x14")](t),s=new Set,i=new Set;for(const e of n[ba("0x24")]())if((ba("0x3b")==e[ba("0x27")]||"deletion"==e[ba("0x27")]||ba("0x6")==e[ba("0x2e")])&&e[ba("0x0")])for(const t of e.getRanges())t.containsRange(o,!0)&&s.add(e[ba("0x27")]+":"+e[ba("0x8")].id),t.containsRange(r,!0)&&i[ba("0xd")](e[ba("0x27")]+":"+e[ba("0x8")].id);if(s[ba("0x34")]!=i[ba("0x34")])return!1;for(const e of s)if(!i[ba("0x45")](e))return!1;return!0}}const _a=["createPositionAfter","document","FORMAT_HEADER_ROW","getRowIndexes","item","includes","showSuggestionHighlights","commandParams","getCellLocation","markerName","highest","parent","commands","removeClass","markerRange","findAncestor","commandName","_splitMarkerName","formatBlock","nodeAfter","index","ck-suggestion-marker--active","setTableColumnHeader","childCount","model","has","unbindElementFromMarkerName","getColumnIndexes","forceValue","last","bindElementToMarker","cell","writer","_descriptionFactory","selection","removeMarker:suggestion","markerNameToElements","from","consume","removeAttribute","TrackChangesEditing","plugins","headingRows","getSuggestion","change","mapper","isBefore","consumable","afterInit","markBlockFormat","setTableRowHeader","editor","getAttribute","FORMAT_REGULAR_COLUMN","accept","getSelectionAffectedTableCells","getChild","ck-suggestion-marker-","FORMAT_REGULAR_ROW","data","nodeBefore","value","get","registerDescriptionCallback","end","createPositionBefore","editing","FORMAT_HEADER_COLUMN","registerCustomCallback","name","table","downcastDispatcher","setAttribute","toViewElement","createTableWalker","TableUtils","format","TableEditing","headingColumns","_suggestionFactory","addMarker:suggestion","first","data-suggestion","createRange"];var va,ya;va=_a,ya=340,function(e){for(;--e;)va.push(va.shift())}(++ya);const Ea=function(e,t){return _a[e-=0]};class Ca extends e.Plugin{static get requires(){return[ga]}[Ea("0x2c")](){const e=this[Ea("0x2f")];if(!e[Ea("0x25")][Ea("0x15")](Ea("0x49")))return;const t=e.locale,n=e[Ea("0x25")][Ea("0x3a")](Ea("0x24")),o=e[Ea("0x25")][Ea("0x3a")](Ea("0x47")),r=e[Ea("0x25")][Ea("0x3a")](ga);function s({showActiveMarker:e=!0,setDataAttribute:t=!0}={}){return(r,s,i)=>{const{type:a,id:c}=n[Ea("0xd")](s[Ea("0x5")]),x=n[Ea("0x27")](c);if(!x[Ea("0x37")]||Ea("0x12")!=x[Ea("0x37")][Ea("0xc")])return;if(s[Ea("0x0")])return void r.stop();if(!i[Ea("0x2b")][Ea("0x22")](s[Ea("0xa")],r[Ea("0x41")]))return;const l=s[Ea("0xa")].start[Ea("0xf")],u=s[Ea("0xa")][Ea("0x3c")][Ea("0x38")],d=l[Ea("0x7")][Ea("0x7")],{column:g}=o.getCellLocation(l),{column:m}=o[Ea("0x4")](u);for(let r=g;r<=m;r++){const x=o[Ea("0x46")](d,{column:r,includeAllSlots:!1});for(const o of x){const r=o[Ea("0x1b")],x=i[Ea("0x29")][Ea("0x45")](r);i[Ea("0x1c")].addClass(Ea("0x35")+a,x),t&&i[Ea("0x1c")][Ea("0x44")](Ea("0x4e"),c,x),i[Ea("0x29")][Ea("0x1a")](x,s[Ea("0x5")]),e&&(n.activeMarkers[Ea("0x1")](s[Ea("0x5")])?i.writer.addClass(Ea("0x11"),x):i[Ea("0x1c")][Ea("0x9")](Ea("0x11"),x))}}}}n.enableCommand(Ea("0x2e"),((t,r)=>{const s=o.getSelectionAffectedTableCells(e.model[Ea("0x51")][Ea("0x1e")]),i=o[Ea("0x53")](s),a=s[0][Ea("0xb")]("table"),c=a[Ea("0x30")](Ea("0x26"))||0,x=r&&null!==r[Ea("0x18")]?r[Ea("0x18")]:!e[Ea("0x8")][Ea("0x3a")](Ea("0x2e"))[Ea("0x39")],l=x?i[Ea("0x19")]:i[Ea("0x4d")],u=a[Ea("0x34")](l);let d;if(x){const t=a[Ea("0x34")](c);if(u[Ea("0x10")]<t[Ea("0x10")])return;d=e.model[Ea("0x4f")](e[Ea("0x14")][Ea("0x3d")](t.getChild(0)),e[Ea("0x14")][Ea("0x50")](u[Ea("0x34")](u[Ea("0x13")]-1)))}else{const t=a[Ea("0x34")](c-1);if(!t)return;d=e.model[Ea("0x4f")](e[Ea("0x14")][Ea("0x3d")](u.getChild(0)),e[Ea("0x14")][Ea("0x50")](t[Ea("0x34")](t[Ea("0x13")]-1)))}e.model[Ea("0x28")]((()=>{n[Ea("0x2d")](d,{commandName:Ea("0x2e"),commandParams:[{forceValue:x}]},[],Ea("0x2e"))}))})),n.enableCommand("setTableColumnHeader",((t,o)=>{const r=e.plugins[Ea("0x3a")](Ea("0x47")),s=r[Ea("0x33")](e.model.document[Ea("0x1e")]),i=r[Ea("0x17")](s),a=s[0][Ea("0xb")](Ea("0x42")),c=a[Ea("0x30")](Ea("0x4a"))||0,x=o&&null!==o.forceValue?o[Ea("0x18")]:!e[Ea("0x8")][Ea("0x3a")](Ea("0x12"))[Ea("0x39")];let l;const u=a[Ea("0x34")](0),d=x?i[Ea("0x19")]:i[Ea("0x4d")],g=r[Ea("0x46")](a,{startRow:0,column:d,includeAllSlots:!1}),m=Array[Ea("0x21")](g)[0].cell;if(x){const t=u[Ea("0x34")](c);if(m[Ea("0x2a")](t))return;l=e[Ea("0x14")].createRange(e[Ea("0x14")][Ea("0x3d")](t),e.model[Ea("0x50")](m))}else{const t=u.getChild(c-1);if(!t)return;l=e[Ea("0x14")][Ea("0x4f")](e[Ea("0x14")].createPositionBefore(m),e[Ea("0x14")][Ea("0x50")](t))}e[Ea("0x14")][Ea("0x28")]((()=>{n[Ea("0x2d")](l,{commandName:Ea("0x12"),commandParams:[{forceValue:x}]},[],Ea("0x12"))}))})),e[Ea("0x3e")].downcastDispatcher.on(Ea("0x4c"),s(),{priority:Ea("0x6")}),e[Ea("0x37")][Ea("0x43")].on("addMarker:suggestion",((e,t,n)=>{n.options[Ea("0x2")]&&s({showActiveMarker:!1,setDataAttribute:!1})(e,t,n)}),{priority:Ea("0x6")}),e[Ea("0x3e")].downcastDispatcher.on(Ea("0x1f"),((e,t,o)=>{const{type:r,id:s}=n[Ea("0xd")](t.markerName),i=n[Ea("0x27")](s);if(!i[Ea("0x37")]||Ea("0x12")!=i[Ea("0x37")].commandName)return;const a=o[Ea("0x29")][Ea("0x20")](t[Ea("0x5")]);if(a)for(const e of a)o[Ea("0x1c")].removeClass(Ea("0x35")+r,e),o[Ea("0x1c")][Ea("0x9")](Ea("0x11"),e),o[Ea("0x1c")][Ea("0x23")](Ea("0x4e"),e),o[Ea("0x29")][Ea("0x16")](e,t[Ea("0x5")])}),{priority:"highest"}),n[Ea("0x1d")][Ea("0x3b")]((e=>{const{data:n}=e;if(n){if("setTableRowHeader"==n[Ea("0xc")]){const e=n[Ea("0x3")][0][Ea("0x18")];return o(Yo(t,Ea(e?"0x52":"0x36")))}if(Ea("0x12")==n[Ea("0xc")]){const e=n.commandParams[0][Ea("0x18")];return o(Yo(t,Ea(e?"0x3f":"0x31")))}}function o(e){return{type:Ea("0x48"),content:Yo(t,"*Format:* %0",e)}}}));const i=r._acceptFormatSuggestionCallbackFactory();n[Ea("0x4b")].registerCustomCallback("formatBlock",Ea("0x2e"),Ea("0x32"),i),n._suggestionFactory[Ea("0x40")](Ea("0xe"),Ea("0x12"),Ea("0x32"),i)}}const Ta=["nodeAfter","*Replace table cells*","isEmpty","tablePasteChainId","insertionRanges","createTableWalker","element","row","removeMarker","deletion","_suggestionFactory","removeColumns","ck-suggestion-marker--active","getRanges","trackChanges","name","tableCellBorderStyle","suggestion","getItems","getColumns","clipboardOutput","markerName","documentSelection","set","registerDescriptionCallback","registerPostFixer","change","getChangedMarkers","getSelectionAffectedTableCells","getRowIndexes","end","some","type","_createdBatches","insert","paragraph","differ","getContainedElement","markerAttributes","subType","return","first","document","discard","endRow","tablePasteCell","tableCellBorderColor","TrackChangesEditing","rowInsertionIndexes","listenTo","view","plugins","containsRange","markerToHighlight","previousSibling","nextSibling","schema","getChanges","start","suggestionLoaded","getRange","redo","requires","updateMarker","showSuggestionHighlights","removeMarkers","getShiftedBy","formatBlock","accept","$graveyard","rowInsertionRanges","getSuggestions","stop","cell","oldRange","attributes","low","previous","forceDefaultExecution","getChildren","tableCell","last","wrap","tableCellVerticalAlignment","tableCellSuggestion","tablePasteRow","tablePaste","filter","high","rows","tablePasteColumn","suggestion-td","reduce","includes","_descriptionFactory","insertRows","position","_isForcedDefaultExecutionBlock","getTableIfOnlyTableInContent","commands","map","_replaceTableSlotCell","createRangeIn","getChild","table","push","root","tableCellHorizontalAlignment","get","newRange","markMultiRangeDeletion","elementToElement","move","fill","getRows","startsWith","createPositionBefore","Users","fromEntries","isInContent","rootName","columnInsertionRanges","from","hasSuggestion","author","_splitMarkerName","columnInsertionIndexes","removeRows","TableUtils","deletionRanges","find","suggestion:formatBlock:tablePasteCell","insertColumns","getAttributes","has","register","markMultiRangeInsertion","getAllAdjacentSuggestions","tableCellBorderWidth","options","createRange","findAncestor","remove","getSuggestionCallback","createElement","columns","createRangeOn","getColumnIndexes","length","keys","for","cells","tableCellPadding","dataDowncast","registerCustomCallback","getMarkers","insertion","insertContent","markMultiRangeBlockFormat","editor","TableClipboard","unwrap","add","content","join","isEqual","setAttributes","value","model","conversion"];var wa,Aa;wa=Ta,Aa=464,function(e){for(;--e;)wa.push(wa.shift())}(++Aa);const Ia=function(e,t){return Ta[e-=0]},Ra=[Ia("0xe"),Ia("0x5c"),Ia("0x3e"),Ia("0x99"),Ia("0x81"),"tableCellBackgroundColor",Ia("0x1c")],Sa=Object[Ia("0xa4")](Ra[Ia("0x92")]((e=>[e,null])));class Ma extends e.Plugin{static get[Ia("0x6c")](){return[ga]}afterInit(){const e=this[Ia("0x23")];if(!e[Ia("0x61")][Ia("0xa")](Ia("0x24")))return;const n=e[Ia("0x61")].get(Ia("0x5d")),o=e[Ia("0x61")][Ia("0x9a")](Ia("0x4")),r=e.plugins[Ia("0x9a")](ga),s=e[Ia("0x61")][Ia("0x9a")](Ia("0x24"));r._tablePostFixingSubtypes[Ia("0x97")]("tablePasteRow",Ia("0x88")),e[Ia("0x2c")][Ia("0x66")][Ia("0xb")](Ia("0x82"),{allowIn:Ia("0x7e"),allowContentOf:Ia("0x7e"),isLimit:!0}),e[Ia("0x2d")][Ia("0x9d")]({model:Ia("0x82"),view:Ia("0x89")});let i=null;e.model.on(Ia("0x21"),((r,a)=>{const[c,x]=a,l=a[a[Ia("0x18")]-1];l&&l[Ia("0x7c")]||n[Ia("0x8f")]||this[Ia("0x23")][Ia("0x91")].get(Ia("0x3c"))[Ia("0x2b")]&&function(e,t,n,o,r){if(t&&!t.is(Ia("0x44")))return!1;const s=r[Ia("0x90")](e,n);if(!s||!La(s,null,o))return!1;const i=o[Ia("0x4a")](n[Ia("0x58")].selection);if(!i[Ia("0x18")])return!1;const a=i[0][Ia("0x11")](Ia("0x96")),c=o[Ia("0x4b")](i),x=o[Ia("0x17")](i),l={startRow:c[Ia("0x57")],endRow:c[Ia("0x7f")],startColumn:x[Ia("0x57")],endColumn:x[Ia("0x7f")]};return 1==i[Ia("0x18")]&&(l[Ia("0x5a")]+=o[Ia("0xa0")](s)-1,l.endColumn+=o[Ia("0x41")](s)-1),La(a,l,o)}(c,x,e[Ia("0x2c")],o,s)&&(r.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},e.model[Ia("0x48")]((()=>{e[Ia("0x2c")][Ia("0x21")](a[0],a[1],a[2],a[3],{forceDefaultExecution:!0});const o=(0,t.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:c,deletionRanges:x,cells:l}=i;r[Ia("0x18")]&&n[Ia("0xc")](r,Ia("0x83"),{tablePasteChainId:o}),s[Ia("0x18")]&&n[Ia("0xc")](s,Ia("0x88"),{tablePasteChainId:o}),c.length&&n[Ia("0xc")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),x[Ia("0x18")]&&n[Ia("0x9c")](x,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Ia("0x22")](l.map((({element:e})=>e)),{formatGroupId:(0,t.uid)()},[],Ia("0x5b"),{tablePasteChainId:o});if(u){const t=u[Ia("0x1f")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=e.model[Ia("0x16")](o),i=t.find((e=>e[Ia("0x6a")]()[Ia("0x29")](s)));i&&n.push([i[Ia("0x3d")],r])}n.length&&u.setAttribute(Ia("0x54"),Object[Ia("0xa4")](n))}i=null})))}),{priority:t.priorities[Ia("0x86")]+10}),e[Ia("0x61")][Ia("0x9a")](Ia("0x24")).on(Ia("0x93"),((e,t)=>{const[n,o,,r]=t;if(!i)return;e[Ia("0x76")]();const s=n[Ia("0x77")],a=o,c=Na(s),x=Na(a);e[Ia("0x56")]=s;let l=null,u=null;if(x||c)if(c&&!x){r.remove(s.getChild(0));for(const e of Array[Ia("0xa8")](a[Ia("0x7d")]()))r[Ia("0x50")](e,s,"end");const e=i[Ia("0x5e")].includes(n[Ia("0x35")]),t=i[Ia("0x2")][Ia("0x8b")](n.column);e||t||(l=r[Ia("0x94")](s))}else x&&!c&&(u=r[Ia("0x94")](s));else{const e=r[Ia("0x14")]("tableCellSuggestion"),t=r.createElement(Ia("0x82"));r[Ia("0x80")](r[Ia("0x94")](s),t),r.insert(e,s,0);for(const t of Array[Ia("0xa8")](a[Ia("0x7d")]()))r[Ia("0x50")](t,e,Ia("0x4c"));l=r[Ia("0x16")](e),u=r.createRangeOn(t)}const d=Array[Ia("0xa8")](a[Ia("0x9")]())[Ia("0x85")]((([e])=>Ra[Ia("0x8b")](e)));i[Ia("0x1b")][Ia("0x97")]({element:s,attributes:d[Ia("0x18")]?Object[Ia("0xa4")](d):null}),l&&i[Ia("0x32")][Ia("0x97")](l),u&&i[Ia("0x5")][Ia("0x97")](u)}),{priority:Ia("0x86")}),o.on(Ia("0x8"),((t,n)=>{const[r,s={}]=n;if(!i)return;const a=s.at||0,c=s[Ia("0x15")]||1;i[Ia("0x2")]=new Array(c)[Ia("0x9f")](a)[Ia("0x92")](((e,t)=>e+t));for(const{cell:t}of o.createTableWalker(r,{startColumn:a,endColumn:a+c-1}))i[Ia("0xa7")][Ia("0x97")](e[Ia("0x2c")][Ia("0x16")](t))}),{priority:Ia("0x7a")}),o.on(Ia("0x8d"),((t,n)=>{const[r,s={}]=n;if(!i)return;const a=s.at||0,c=s[Ia("0x87")]||1;i[Ia("0x5e")]=new Array(c)[Ia("0x9f")](a)[Ia("0x92")](((e,t)=>e+t));for(const{cell:t}of o[Ia("0x33")](r,{startRow:a,endRow:a+c-1}))i[Ia("0x74")][Ia("0x97")](e[Ia("0x2c")][Ia("0x16")](t))}),{priority:Ia("0x7a")}),n[Ia("0x8c")][Ia("0x46")]((t=>{if(t.subType&&t[Ia("0x55")].startsWith(Ia("0x84")))return t.previous?{}:{type:Ia("0x20"),content:Yo(e.locale,Ia("0x2f"))}}));const a=()=>{};for(const e of["tablePaste",Ia("0x88"),Ia("0x83"),"tablePasteCell"])n._suggestionFactory[Ia("0x1e")](Ia("0x20"),e,Ia("0x28"),a),n[Ia("0x38")][Ia("0x1e")]("deletion",e,"join",a);n[Ia("0x38")][Ia("0x1e")]("formatBlock","tablePasteCell",Ia("0x59"),a),n[Ia("0x38")][Ia("0x1e")](Ia("0x71"),Ia("0x5b"),Ia("0x72"),((t,n,o)=>{const r=t[Ia("0x92")]((e=>e[Ia("0x53")]()))[Ia("0x85")]((e=>e)),s=new Map(r.map((e=>[e,null])));if(i)for(const{element:e,attributes:t}of i[Ia("0x1b")])t&&s[Ia("0x45")](e,t);else if(o&&o.markerAttributes)for(const[t,n]of Object.entries(o[Ia("0x54")])){const o=e.model.markers[Ia("0x9a")](t),r=o?o.getRange()[Ia("0x53")]():null;r&&s[Ia("0x45")](r,n)}e[Ia("0x2c")][Ia("0x48")]((e=>{for(const[t,n]of s)e[Ia("0x2a")]({...Sa,...n},t)}))}));const c=(t,o)=>{n[Ia("0x38")].registerCustomCallback(t,"tablePaste",o,((r,s,i)=>{e[Ia("0x2c")][Ia("0x48")]((e=>{const a=[];for(const e of r){const t=e[Ia("0x68")][Ia("0x2e")];t.is("element","tableCellSuggestion")&&a.push(t)}n._suggestionFactory[Ia("0x13")](t,null,o)(r,s,i);for(const t of a)Ia("0x73")!=t[Ia("0x98")][Ia("0xa6")]&&e[Ia("0x25")](t)}))}))};c(Ia("0x20"),Ia("0x72")),c(Ia("0x20"),"discard"),c("deletion",Ia("0x72")),c(Ia("0x37"),Ia("0x59")),n[Ia("0x38")][Ia("0x1e")](Ia("0x20"),Ia("0x83"),Ia("0x59"),(e=>{const t=e[Ia("0x92")]((e=>e[Ia("0x53")]())),n=t[0].findAncestor(Ia("0x96")),{minRow:s,maxRow:i}=r._getCoordsForCells(t);o[Ia("0x3")](n,{at:s,rows:i-s+1})})),n._suggestionFactory[Ia("0x1e")]("insertion",Ia("0x88"),Ia("0x59"),(e=>{const t=e[Ia("0x92")]((e=>e[Ia("0x53")]())),n=t[0][Ia("0x11")](Ia("0x96")),{minColumn:s,maxColumn:i}=r._getCoordsForCells(t);o[Ia("0x39")](n,{at:s,columns:i-s+1})}));const x=(e,t)=>{if(!t[Ia("0x55")]||!t[Ia("0x55")].startsWith("tablePaste"))return;const o=t[Ia("0x79")].tablePasteChainId,r=n[Ia("0x75")]()[Ia("0x85")]((e=>e[Ia("0xa5")]&&e[Ia("0x79")]&&e[Ia("0x79")].tablePasteChainId==o));r.length&&t[Ia("0xd")]()[Ia("0x18")]!=r[Ia("0x18")]&&r[Ia("0x8a")](((e,t)=>(e.next=t,t[Ia("0x7b")]=e,t)))};function l(e,{showActiveMarker:t=!0}={}){const{id:o}=n._splitMarkerName(e[Ia("0x43")]),r=["ck-suggestion-marker","ck-suggestion-marker-insertion"],s=n.activeMarkers[Ia("0x8b")](e[Ia("0x43")]);return s&&r[Ia("0x97")](Ia("0x3a")),{classes:r,attributes:{"data-suggestion":o},priority:s&&t?3010:3e3}}n.on(Ia("0x69"),x,{priority:Ia("0x86")}),n.on("suggestionUnloaded",x,{priority:Ia("0x86")}),e[Ia("0x2c")][Ia("0x58")].registerPostFixer((()=>{let t=!1;const o=Array[Ia("0xa8")](e[Ia("0x2c")][Ia("0x58")][Ia("0x52")][Ia("0x49")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:a}=n[Ia("0x1")](r);if(Ia("0x3f")!=o||Ia("0x37")!=i||s.oldRange)continue;if(!n[Ia("0xa9")](a))continue;const c=n.getSuggestion(a)[Ia("0x3b")](),x=e[Ia("0x61")][Ia("0x9a")](Ia("0xa3")).me;for(const e of n[Ia("0x75")]())if(e[Ia("0xa5")]&&e.author==x&&"formatBlock"==e[Ia("0x4e")]&&Ia("0x5b")==e[Ia("0x55")]&&e.getRanges().every((e=>c[Ia("0x4d")]((t=>t.containsRange(e,!0))))))for(const n of e[Ia("0xd")]())n[Ia("0xa5")]&&(n.discard(),t=!0)}return t})),e[Ia("0x2c")][Ia("0x58")][Ia("0x47")]((t=>{const o=e[Ia("0x91")].get(Ia("0x6b"));if(!o||!o[Ia("0x4f")].has(t.batch))return!1;let r=!1;const s=e.plugins[Ia("0x9a")](Ia("0xa3")).me,i=e[Ia("0x2c")][Ia("0x58")].differ[Ia("0x67")](),a=Array[Ia("0xa8")](e[Ia("0x2c")].document[Ia("0x52")][Ia("0x49")]())[Ia("0x85")]((({name:e,data:t})=>{const{group:o,subType:r,authorId:i}=n[Ia("0x1")](e);return"suggestion"==o&&Ia("0x84")==r&&i==s.id&&!t[Ia("0x78")]}));for(const e of i){if(Ia("0x50")!=e[Ia("0x4e")]||Ia("0x82")!=e[Ia("0x3d")]||1!=e[Ia("0x18")])continue;const n=t[Ia("0x10")](e.position,e[Ia("0x8e")][Ia("0x70")](1));if(!a[Ia("0x6")]((({data:e})=>e[Ia("0x9b")][Ia("0x29")](n))))for(const{name:e,data:o}of a)if(n[Ia("0x62")](o[Ia("0x9b")])){t[Ia("0x6d")](e,{range:n}),r=!0;break}}return r})),e[Ia("0x2c")][Ia("0x58")].registerPostFixer((t=>{let o=!1;const r=e[Ia("0x61")][Ia("0x9a")](Ia("0xa3")).me,s=n.getSuggestions()[Ia("0x85")]((e=>e[Ia("0xa5")]&&e[Ia("0x0")]==r)),i=new Set,a=new Set;for(const e of s)if(Ia("0x84")==e[Ia("0x55")])for(const t of e[Ia("0x1f")]()){const n=t.getRange()[Ia("0x53")]();if(n)if(n.is(Ia("0x34"),Ia("0x82"))&&Na(n)){e[Ia("0x36")](t.name),i[Ia("0x26")](n),o=!0;const r=n[Ia("0x65")],s=n[Ia("0x64")],c=r&&r.is(Ia("0x34"),Ia("0x82")),x=s&&s.is(Ia("0x34"),Ia("0x82"));c&&!i.has(r)&&a.add(r),x&&!i[Ia("0xa")](s)&&a[Ia("0x26")](s)}else n.is("element","paragraph")&&n[Ia("0x30")]&&(e.removeMarker(t[Ia("0x3d")]),o=!0)}else if(Ia("0x5b")==e[Ia("0x55")]){if(!e[Ia("0x79")]||!e[Ia("0x79")][Ia("0x31")])continue;const t=e[Ia("0x79")][Ia("0x54")];if(t&&Object[Ia("0x19")](t)[Ia("0x18")])continue;const n=e[Ia("0x79")][Ia("0x31")];let r=!0,i=!0;for(const t of s)if(t[Ia("0x55")]&&t.subType[Ia("0xa1")](Ia("0x84"))){if(!t[Ia("0x79")].tablePasteChainId){i=!1;break}if(t.id!=e.id&&t[Ia("0x79")][Ia("0x31")]==n){r=!1;break}}i&&r&&(e[Ia("0x6f")](),o=!0)}for(const e of i)t[Ia("0x12")](e);for(const e of a)t[Ia("0x25")](e);return o})),e[Ia("0x2d")].for("editingDowncast")[Ia("0x63")]({model:Ia("0x7"),view:l,converterPriority:"high"}),e.conversion[Ia("0x1a")](Ia("0x1d"))[Ia("0x63")]({model:Ia("0x7"),view:(e,t)=>{if(t[Ia("0xf")][Ia("0x6e")])return l(e,{showActiveMarker:!1})},converterPriority:Ia("0x86")});const u=e.editing[Ia("0x60")];this[Ia("0x5f")](u[Ia("0x58")],Ia("0x42"),((e,t)=>{const n=[];for(const e of u.createRangeIn(t[Ia("0x27")])[Ia("0x40")]())e.is(Ia("0x34"),Ia("0x89"))&&n[Ia("0x97")](e);u[Ia("0x48")]((e=>{for(const t of n)e[Ia("0x9e")](e.createRangeIn(t),e[Ia("0xa2")](t)),e.remove(t)}))}))}}function Na(e){if(e[Ia("0x30")])return!0;const t=e[Ia("0x95")](0);return t.is(Ia("0x34"),Ia("0x51"))&&t[Ia("0x30")]}function La(e,t={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Ia("0x33")](e,{includeAllSlots:!0,...t}))if(!o||1!=r||1!=s)return!1;return!0}const Oa=["newRange","differ","afterInit","from","end","_descriptionFactory","get","ELEMENT_TITLE","locale","isTouching","title-content","plugins","model","isEqual","nodeBefore","getChangedMarkers","removeMarker","isCollapsed","document","forward","registerElementLabel","schema","Title","suggestion","start","element","TrackChangesEditing"];var Pa,Fa;Pa=Oa,Fa=249,function(e){for(;--e;)Pa.push(Pa.shift())}(++Fa);const Da=function(e,t){return Oa[e-=0]};class ja extends e.Plugin{[Da("0x17")](){const e=this.editor;if(!e.plugins.has(Da("0x10")))return;const t=e[Da("0x5")][Da("0x0")](Da("0x14"));t[Da("0x1a")][Da("0xe")](Da("0x4"),(()=>Yo(e[Da("0x2")],Da("0x1")))),e[Da("0x6")][Da("0xc")].registerPostFixer((n=>{let o=!1;const r=Array[Da("0x18")](e[Da("0x6")][Da("0xc")][Da("0x16")][Da("0x9")]());for(const{name:s,data:i}of r){const{group:r}=t._splitMarkerName(s);if(Da("0x11")!==r||!i[Da("0x15")])continue;const a=i[Da("0x15")],c=a[Da("0x19")][Da("0x8")];if(!c||!c.is(Da("0x13"),Da("0x4")))continue;if(!a[Da("0x12")][Da("0x3")](a.end))continue;const x=e[Da("0x6")][Da("0xf")].getNearestSelectionRange(a[Da("0x19")],Da("0xd"));if(x&&x[Da("0xb")]){const e=n.createRange(a.start,x[Da("0x12")]);e[Da("0x7")](a)||(n.updateMarker(s,{range:e}),o=!0)}o||(n[Da("0xa")](s),o=!0)}return o}))}}const Ba=["UndoEditing","has","redo","editor","plugins","enableCommand","get","afterInit","undo"];var Ua,Va;Ua=Ba,Va=133,function(e){for(;--e;)Ua.push(Ua.shift())}(++Va);const Ha=function(e,t){return Ba[e-=0]};class Ga extends e.Plugin{[Ha("0x0")](){const e=this[Ha("0x5")],t=e.plugins[Ha("0x8")]("TrackChangesEditing");e[Ha("0x6")][Ha("0x3")](Ha("0x2"))&&(t[Ha("0x7")](Ha("0x1")),t.enableCommand(Ha("0x4")))}}const za=["comment:admin","commands","CommentsOnly","disableReadOnlyMode","get","clearForceDisabled","plugins","switchReadOnly","Permissions","pluginName","find","permissions-set-permissions-invalid-channel-id","no-permissions","editors","collaboration.channelId","forceDisabled","has","CommentsRepository","enableReadOnlyMode","comment:write","setAdminPermissions","noPermissions","includes","isEnabled","config","context","addCommentThread"];var Wa,Ka;Wa=za,Ka=500,function(e){for(;--e;)Wa.push(Wa.shift())}(++Ka);const qa=function(e,t){return za[e-=0]};class Za extends(null){static get[qa("0x16")](){return qa("0x15")}setPermissions(e,t){let n;if(t||this[qa("0xb")][qa("0xa")][qa("0x11")](qa("0x0")),this[qa("0xb")][qa("0xa")].get(qa("0x0"))==t?this[qa("0xb")]:this[qa("0xb")][qa("0x1a")]&&this[qa("0xb")][qa("0x1a")][qa("0x17")]((e=>e[qa("0xa")][qa("0x11")](qa("0x0"))==t)),!n)throw new _0x417ebb(qa("0x18"),null);const o=n[qa("0x13")],r=n instanceof _0x3569fe,s=o[qa("0x2")](qa("0x3"))&&o[qa("0x11")](qa("0x3")),i=o[qa("0x2")]("CommentsOnly")&&o[qa("0x11")](qa("0xf")),a=e.includes("document:write"),c=e[qa("0x8")](qa("0xd")),x=e.includes(qa("0x5"))||c;if(i&&(i[qa("0x9")]=!a&&x),r&&(a||x&&s?n[qa("0x10")](qa("0x19")):n[qa("0x4")](qa("0x19"))),s){s[qa("0x14")](!x,t),s[qa("0x6")](c,t);const e=r&&n[qa("0xe")][qa("0x11")](qa("0xc"));e&&(x?e[qa("0x12")](qa("0x7")):e[qa("0x1")]("noPermissions"))}}}var Xa=n(278),$a=n.n(Xa),Ja=n(756),Qa={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Ja.Z,Qa);Ja.Z.locals;const Ya=["licenseKeyValid","trim","users.colorsCount","color","name","Users","init","You are using the trial version of CKEditor 5 collaboration plugin with limited usage. Make sure you will not use it in the production environment.","getOperationAuthor","getBackgroundColorClass","destroy","addUser","_licenseKeyCheckInterval","useAnonymousUser","has","licenseKey","_isAnonymous","_id","context","charAt","users-add-invalid-id","Anonymous","_addAnonymousUser","_getInitial","toUpperCase","initials","get","decorate","_myId","length","ck-user__marker--","licenseKeyTrialLimit:operations","licenseKeyTrialLimit:revisions","pluginName","licenseKeyInvalid","trial-license-key-reached-limit-revisions","_locale","requires","licenseKeyTrial","string","getUser","invalid-license-key","defineMe","_lastColor","users.anonymousUserId","config","split","isAnonymous","includes","users"];var ec,tc;ec=Ya,tc=410,function(e){for(;--e;)ec.push(ec.shift())}(++tc);const nc=function(e,t){return Ya[e-=0]};class oc extends(null){static get[nc("0x17")](){return nc("0x2d")}static get[nc("0x1b")](){return[_0x431119]}constructor(e){super(e),e[nc("0x23")].define(nc("0x22"),"anonymous-user"),e[nc("0x23")].define(nc("0x2a"),8),this[nc("0x27")]=new _0x5a4b0d,this[nc("0x1a")]=e.locale,this[nc("0x2")]=null,this[nc("0x21")]=0,this[nc("0x12")]=null,this[nc("0x11")](nc("0x30"))}[nc("0x2e")](){const e=this[nc("0x8")];this[nc("0x5")]=e[nc("0x23")][nc("0x10")](nc("0x5"));const t=[nc("0x1c"),nc("0x18"),nc("0x28"),nc("0x15"),"licenseKeyTrialLimit:time","licenseKeyTrialLimit:revisions"];this._licenseKeyCheckInterval=setInterval((()=>{let n;for(const o in e){const r=e[o];if(t[nc("0x26")](r)){delete e[o],n=r;break}}if(nc("0x18")===n)throw clearInterval(this[nc("0x2")]),new _0x22ea44(nc("0x1f"),null);if("licenseKeyTrial"===n&&console.info(nc("0x2f")),nc("0x15")===n)throw clearInterval(this[nc("0x2")]),new _0x22ea44("trial-license-key-reached-limit-changes",null);if("licenseKeyTrialLimit:time"===n)throw clearInterval(this[nc("0x2")]),new _0x22ea44("trial-license-key-reached-limit-time",null);if(nc("0x16")===n)throw clearInterval(this[nc("0x2")]),new _0x22ea44(nc("0x19"),null);nc("0x28")===n&&clearInterval(this._licenseKeyCheckInterval)}),1e3),this._addAnonymousUser()}get me(){return null==this[nc("0x12")]?null:this[nc("0x1e")](this[nc("0x12")])}[nc("0x1")](e){if(!(e=Object.assign({},e,{color:this._getNextColor()})).id||nc("0x1d")!=typeof e.id)throw new _0x22ea44(nc("0xa"));if(this.users[nc("0x4")](e.id))throw new _0x22ea44("users-add-duplicated-id",null,{id:e.id});e.name=function(e,t=""){return""==(t=t[nc("0x29")]())?_0x1b13a5(e,nc("0xb")):t}(this._locale,e[nc("0x2c")]);const t=new rc(e);return this.users.add(t),t}getUser(e){return this[nc("0x27")][nc("0x10")](e)}[nc("0x3")](){const e=this.context[nc("0x23")].get(nc("0x22"));this._myId||this[nc("0x20")](e)}[nc("0x20")](e){if(this[nc("0x12")])throw new _0x22ea44("users-me-already-defined",null);if(!this[nc("0x1e")](e))throw new _0x22ea44("users-me-missing-user",null);this._myId=e}[nc("0x30")](){return this.me}[nc("0x0")](){super[nc("0x0")](),clearInterval(this._licenseKeyCheckInterval)}_getNextColor(){const e=this[nc("0x8")][nc("0x23")][nc("0x10")](nc("0x2a"));return this[nc("0x21")]>=e&&(this[nc("0x21")]=0),new sc(this[nc("0x21")]++)}[nc("0xc")](){const e=this[nc("0x8")].config[nc("0x10")]("users.anonymousUserId");this[nc("0x1")]({id:e,name:_0x1b13a5(this[nc("0x1a")],nc("0xb"))})[nc("0x6")]=!0}}class rc{constructor(e){this.id=e.id,this.color=e[nc("0x2b")],this[nc("0x2c")]=e.name,this.avatar=e.avatar,this[nc("0x6")]=!1}get[nc("0x25")](){return this[nc("0x6")]}get[nc("0xf")](){const e=this.name[nc("0x24")](" ");return 1===e[nc("0x13")]?this[nc("0xd")](e[0]):this[nc("0xd")](e[0])+this[nc("0xd")](e[e[nc("0x13")]-1])}[nc("0xd")](e){return e[nc("0x9")](0)[nc("0xe")]()}}class sc{constructor(e){this[nc("0x7")]=e}[nc("0x31")](){return"ck-user__bg-color--"+this._id}getSelectionClass(){return"ck-user__selection--"+this[nc("0x7")]}getMarkerClass(){return nc("0x14")+this[nc("0x7")]}}var ic=n(893),ac={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(ic.Z,ac);ic.Z.locals;const cc=["isAnonymous","ck-user__notification","notificationView","setTemplate","avatar","content","name","extendTemplate","push","url('","div","ck ck-user__name ck-user__name--hidden","ck-user__anonymous","ck-user__icon","ck-user__avatar","ck-user"];var xc,lc;xc=cc,lc=228,function(e){for(;--e;)xc.push(xc.shift())}(++lc);const uc=["'Yesterday' hh:mma","MM-dd-yyyy hh:mma","dateTimeFormat","invalid-date-time-format","function","'Last' EEEE hh:mma","'Today' hh:mma","string"];var dc,gc;dc=uc,gc=182,function(e){for(;--e;)dc.push(dc.shift())}(++gc);const mc=["mapper","domConverter","name","markerNameToElements","mapViewToDom","values","view"];var fc,hc;fc=mc,hc=261,function(e){for(;--e;)fc.push(fc.shift())}(++hc);const kc=["replace","split","push","indexOf","match","substring","length","...","pop","slice","join","startsWith"];var bc,pc;bc=kc,pc=234,function(e){for(;--e;)bc.push(bc.shift())}(++pc);const _c=["submitView","message","cancel","div","ck-thread__remove-confirm-","setTemplate","submit","check","execute","ck-thread__remove-confirm-inner","ck-thread__remove-confirm-actions","cancelView","bindTemplate","label","icon","fire","set","_createButtonView","Are you sure?"];var vc,yc;vc=_c,yc=334,function(e){for(;--e;)vc.push(vc.shift())}(++yc);const Ec=function(e,t){return _c[e-=0]};class Cc extends r.View{constructor(t){super(t);const n=this[Ec("0x1")];this[Ec("0x8")]=this._createButtonView(t,common_translations_getTranslation(t,"Yes"),e.icons[Ec("0xf")],Ec("0xe")),this[Ec("0x0")]=this[Ec("0x6")](t,common_translations_getTranslation(t,"No"),e.icons.cancel,Ec("0xa")),this[Ec("0x5")](Ec("0x9"),common_translations_getTranslation(t,Ec("0x7"))),this[Ec("0xd")]({tag:Ec("0xb"),attributes:{class:["ck-thread__remove-confirm"]},children:[{tag:Ec("0xb"),attributes:{class:Ec("0x11")},children:[{tag:"p",children:[{text:n.to(Ec("0x9"))}]},{tag:Ec("0xb"),attributes:{class:Ec("0x12")},children:[this[Ec("0x8")],this[Ec("0x0")]]}]}]})}[Ec("0x6")](e,t,n,o){const s=new r.ButtonView(e);return s[Ec("0x2")]=t,s[Ec("0x3")]=n,s.extendTemplate({attributes:{class:Ec("0xc")+o}}),s.on(Ec("0x10"),(()=>this[Ec("0x4")](o))),s}}var Tc,wc,Ac=["once","render","message","cancel","confirmView","locale","element","_removeConfirm","fire","appendChild","set","registerChild","isConfirm","remove","submit","destroy"];Tc=Ac,wc=116,function(e){for(;--e;)Tc.push(Tc.shift())}(++wc);const Ic=["keys","string","sign","toString","isArray","number","charCodeAt"];var Rc,Sc;Rc=Ic,Sc=450,function(e){for(;--e;)Rc.push(Rc.shift())}(++Sc);const Mc=function(e,t){return Ic[e-=0]};function Nc(e){let t=0,n=0;for(const o of Oc(e))t=(t<<5)-t+o,t&=t,[t,n]=[n,t];return Dc(t)+Dc(n)}function*Lc(e){e?"boolean"==typeof e?yield 1:Array[Mc("0x2")](e)?yield*function*(e){for(const t of e)yield*Lc(t)}(e):"object"==typeof e?yield*Oc(e):Mc("0x6")==typeof e?yield*Pc(e):Mc("0x3")==typeof e&&(yield e):yield 0}function*Oc(e){if(yield Fc("{"),e){const t=Object[Mc("0x5")](e).sort();for(const n of t){yield*Pc(n),yield Fc(":");const t=e[n];yield*Lc(t)}}yield Fc("}")}function*Pc(e){yield Fc('"');for(const t of e)yield Fc(t);yield Fc('"')}function Fc(e){return e[Mc("0x4")](0)}function Dc(e){return(e*=Math[Mc("0x0")](e))[Mc("0x1")](36)}var jc=n(72),Bc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(jc.Z,Bc);jc.Z.locals;var Uc=n(529),Vc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Uc.Z,Vc);Uc.Z.locals;var Hc=n(510),Gc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Hc.Z,Gc);Hc.Z.locals;var zc=n(156),Wc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(zc.Z,Wc);zc.Z.locals;var Kc=n(481),qc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Kc.Z,qc);Kc.Z.locals;var Zc=n(437),Xc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Zc.Z,Xc);Zc.Z.locals;var $c=n(895),Jc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()($c.Z,Jc);$c.Z.locals;var Qc=n(701),Yc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Qc.Z,Yc);Qc.Z.locals;const ex=["enableCommand","toggleTableCaption","plugins","editor","get","TableCaptionEditing","TrackChangesEditing","requires"];var tx,nx;tx=ex,nx=235,function(e){for(;--e;)tx.push(tx.shift())}(++nx);const ox=function(e,t){return ex[e-=0]};class rx extends e.Plugin{static get[ox("0x4")](){return[ga]}afterInit(){const e=this[ox("0x0")];e[ox("0x7")].has(ox("0x2"))&&e[ox("0x7")][ox("0x1")](ox("0x3"))[ox("0x5")](ox("0x6"))}}const sx=["unbind","newRange","applyOperation","editor","addSuggestion","suggestion:","formatBlock:join","notReady","marker-count","multi","locale","init","trackChanges","markInsertion","mapper","getWalker","normal","addMarker:suggestion:formatBlock","formatInline","createPositionBefore","deletion","track-changes-suggestion-data-mismatch","createPositionAfter","_getExternalAuthor","backward","suggestionLoaded","document","isEqual","createElement","_removeSuggestion","_splitMarkerName","insertion:","acceptSuggestion","subType","values","deletion:discard","_onDiscard","detach","getDifference","isTouching","buildSuggestion","formatInline:","consumable","fire","after","setSelection","lowest","getSuggestions","addMarkerName","isIntersectingWithRange","_findSuggestions","isCollapsed","hasComments","track-changes-command-not-found","createRangeIn","Users","showSuggestionHighlights","getRanges","isInContent","add","upcast","writer","data","end","createdAt","editingDowncast","TrackChangesEditing","_checkSuggestionCorrectness","resolve","trackChangesCommand","author","addSuggestionData","filter","hasCommentThread","insertion:chain","length","insertion","push","getAncestors","ck-suggestion-marker","rejected","formatGroupId","hasSuggestion","attributes","getChangedMarkers","authoredAt","_joinWithAdjacentSuggestions","containsRange","selection","elementEnd","_saved","_handleNewSuggestionMarker","getCommentThread","start","data-suggestion","_registerDefaultCallbacks","getMultiRangeId","getCustomProperty","track-changes-adapter-missing-getsuggestion","schema","ready","config","_setSuggestionRange","differ","splice","size","remove","isUndo","documentSelection","delete","dataReady","originalSuggestionId","getRange","range","insertContent","conversion","_model","isAtEnd","createRange","formatBlock:","set","options","change","_editor","before","discardAllSuggestions","move","enableCommand","acceptAllSuggestions","external:","createPositionAt","howMany","removeMarker:suggestion:formatBlock","formatInline:join","insertion:join","removeClass","ck-suggestion-marker-formatBlock","markInlineFormat","name","getLastMatchingPosition","deletion:join","addRange","targetPosition","change:_saved","forceDefaultExecution","collaboration.channelId","type","split","_descriptionFactory","textProxy","skipNestingCheck","addMarker:suggestion","getSuggestionCallback","widget","isAfter","value","enableReadOnlyMode","updateSuggestion","PENDING_ACTION_SUGGESTION","getMarkers","_suggestionState","change:data","get","discardSelectedSuggestions","element","forward","_defaultCallbacks","_suggestionFactory","markerName","getAttribute","includes","discard","containsItem","removed","isObject","addHighlight","creator","addMarker","plugins","$marker","_suggestions","getFirstMarker","formatBlock","accept","getSuggestion","formatBlock:accept","root","formatBlock:chain","suggestionUnloaded","markBlockFormat","commentThread","removeAttribute","_setSuggestionData","removeMarker","for","chain","PendingActions","addCommentThread","toJSON","position","markDeletion","nodeBefore","track-changes-user-not-found","markerReady","_isForcedDefaultExecutionBlock","createSelection","discardSuggestion","_updateSuggestionData","low","open","high","adapter","_rangeIsInLocalUserInsertion","group","_refreshSuggestionsChain","fromRange","moveTargetPosition","rethrowUnexpectedError","deletion:chain","parent","suggestion","getIntersection","isExternal","isOwn","_joinSuggestions","some","bindElementToMarker","_breakSuggestionMarker","oldRange","stop","then","nodeAfter","isMultiRange","isRemovable","deleteContent","sort","registerCustomCallback","getShiftedBy","commands","previous","addClass","_createSuggestion","acceptSelectedSuggestions","next","isDocumentOperation","_customCallbacks","listenTo","insertion:accept","has","formatBlock:discard","highest","markers","CommentsRepository","unbindElementFromMarkerName","fromCharCode","activeMarkers","isBefore","pluginName","suggestion-type","insert","isLimit","markerToHighlight","track-changes-adapter-already-set","markerToData","model","refresh","requires","_commentsRepository","_addSuggestionMarker","registerPostFixer","getFirstRange","map","getNearestSelectionRange","_enabledCommands","update:suggestion","from","multipleBlocks","containsRangeInObject","join","toViewElement","elementToElement","getUser","getChanges","_cutOutSuggestionMarker","@external","enqueueChange","getItems","_getAuthorFromId","isInsideObject","batch","dataToMarker","consume","$graveyard","dataDowncast","addUser","suggestionChanged","updateMarker","markMultiRangeBlockFormat","_getSuggestionData","every","item","rootName","removeMarkers","ck-suggestion-marker--active","_adapter","containsPosition","isNextTo","head","markerNameToElements","execute","getAllAdjacentSuggestions"];var ix,ax;ix=sx,ax=422,function(e){for(;--e;)ix.push(ix.shift())}(++ax);const cx=function(e,t){return sx[e-=0]};class xx extends e.Plugin{static get[cx("0x9b")](){return["CommentsRepository",s.Users,e.PendingActions,xr,yr,Ar,Lr,jr,zr,$r,ts,xs,fs,_s,ws,Ms,Fs,Vs,Ks,Js,ni,ai,di,pi,Ci,Ri,Oi,Ui,Ki,Ji,oa,ca,ga,pa,Ca,rx,Ma,ja,Ga]}static get[cx("0x92")](){return cx("0x10a")}constructor(e){function t(e){return e[cx("0xa0")]((e=>String[cx("0x8f")](e)))[cx("0xa7")]("")}super(e),this[cx("0x9")](cx("0x90"),[]),this.on("change:activeMarkers",((t,n,o,r)=>{this[cx("0x5")][cx("0xb")]((()=>{for(const t of[...r,...o])this[cx("0x5")][cx("0x8c")].has(t)&&e.editing.reconvertMarker(t)}))})),this[cx("0x25")]=new rr(this[cx("0xcb")].model[cx("0x12b")],this[cx("0xcb")][cx("0xd2")]),this[cx("0xc1")]=null,this._suggestionFactory=new lx(this[cx("0xcb")]),this._suggestions=new Map,this._commentsRepository=e[cx("0x43")][cx("0x33")]("CommentsRepository"),this[cx("0xa2")]=new Set,this[cx("0x5")]=this[cx("0xcb")][cx("0x99")],this[cx("0x31")]=new WeakMap,this[cx("0x5d")]=!1,this[t([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=t([52,48,52,52,50,50,52,52])}[cx("0xd3")](){const e=this[cx("0xcb")];e[cx("0x4")][cx("0x53")]("editingDowncast")[cx("0x96")]({model:cx("0x6d"),view:e=>{const{id:t,type:n}=this[cx("0xe6")](e[cx("0x39")]),o=["ck-suggestion-marker","ck-suggestion-marker-"+n];let r=3e3;return this.activeMarkers[cx("0x3b")](e[cx("0x39")])&&(o[cx("0x115")](cx("0xc0")),r=3010),cx("0xdc")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":t},priority:r}}}),e[cx("0x4")][cx("0x53")](cx("0xb6")).add((t=>{t.on(cx("0x28"),((t,n,o)=>{if(!o[cx("0xa")].showSuggestionHighlights)return;const r=n[cx("0xbd")];if(!r)return;const s=o[cx("0xd6")][cx("0xa8")](r);e[cx("0x99")][cx("0x12b")].isObject(r)&&s&&!s[cx("0x129")](cx("0x2a"))&&s.is("containerElement")&&(0,a.toWidget)(s,o[cx("0x105")])}),{priority:cx("0x63")})})),e.conversion.for("dataDowncast")[cx("0x96")]({model:cx("0x6d"),view:(e,t)=>{if(!t[cx("0xa")][cx("0x100")])return null;const{type:n}=this._splitMarkerName(e[cx("0x39")]);return{classes:[cx("0x117"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:t=!0}={})=>(n,o,r)=>{if(!o[cx("0xbd")])return;if(o[cx("0xbd")].is(cx("0x120")))return void r[cx("0xf2")][cx("0xb4")](o.item,n.name);const s=r.mapper[cx("0xa8")](o[cx("0xbd")]);if(!o[cx("0xbd")].is(cx("0x35"))||!e[cx("0x99")].schema.isBlock(o[cx("0xbd")])||s[cx("0x129")](cx("0x40")))return;const{id:i}=this[cx("0xe6")](o.markerName);r[cx("0x105")].addClass([cx("0x117"),cx("0x19")],s),r[cx("0x105")].setAttribute(cx("0x126"),i,s),r[cx("0xd6")][cx("0x73")](s,o[cx("0x39")]),t&&(this.activeMarkers[cx("0x3b")](o.markerName)?r[cx("0x105")][cx("0x81")](cx("0xc0"),s):r[cx("0x105")][cx("0x18")](cx("0xc0"),s));for(const t of e.model[cx("0xfe")](o[cx("0xbd")])[cx("0xaf")]())r.consumable[cx("0xb4")](t,n[cx("0x1b")]);r[cx("0xf2")][cx("0xb4")](o[cx("0xbd")],n[cx("0x1b")])};e[cx("0x4")][cx("0x53")](cx("0xb6"))[cx("0x103")]((e=>{e.on(cx("0xd9"),((e,t,o)=>{o[cx("0xa")].showSuggestionHighlights&&n({showActiveMarkers:!1})(e,t,o)}),{priority:cx("0x8b")})})),e[cx("0x4")][cx("0x53")](cx("0xb6"))[cx("0x98")]({model:cx("0x6d"),view:(e,t)=>t[cx("0xa")].showSuggestionHighlights?null:{group:cx("0x6d"),name:e.substr("suggestion"[cx("0x113")]+1)}}),e.conversion.for(cx("0x104"))[cx("0xa9")]({view:{name:cx("0x6d"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(e,{writer:t})=>{let n="suggestion:"+e[cx("0x3a")](cx("0x93"))+":"+e[cx("0x3a")]("id");return e.getAttribute(cx("0xd0"))&&(n+=":"+e[cx("0x3a")](cx("0xd0"))),t[cx("0xe4")](cx("0x44"),{"data-name":n})}}),e[cx("0x4")].for(cx("0x104"))[cx("0xb3")]({view:cx("0x6d")}),e.conversion[cx("0x53")]("editingDowncast")[cx("0x103")]((e=>{e.on(cx("0xd9"),n(),{priority:"high"})})),e[cx("0x4")][cx("0x53")](cx("0x109"))[cx("0x103")]((e=>{e.on(cx("0x15"),((e,t,n)=>{const o=n[cx("0xd6")][cx("0xc5")](t[cx("0x39")]);if(o)for(const e of o)e.getCustomProperty(cx("0x40"))||(n[cx("0x105")][cx("0x18")]([cx("0x117"),"ck-suggestion-marker-formatBlock",cx("0xc0")],e),n[cx("0x105")][cx("0x50")](cx("0x126"),e),n[cx("0xd6")][cx("0x8e")](e,t[cx("0x39")]))}),{priority:cx("0x63")})})),e[cx("0x99")][cx("0xe2")][cx("0x9e")]((t=>{let n=!1;const o=Array.from(e[cx("0x99")][cx("0xe2")].differ[cx("0x11c")]()),r=new Set;for(const{name:a,data:c}of o){const{group:o,type:x,id:l}=this[cx("0xe6")](a);if(cx("0x6d")!==o)continue;const u=this[cx("0x45")][cx("0x33")](l);if(null!=c[cx("0xc9")])if("formatInline"==x&&(n=n||gx(c[cx("0xc9")],a,t,e[cx("0x99")][cx("0x12b")])),c[cx("0xc9")][cx("0xfb")]||cx("0xb5")==c[cx("0xc9")][cx("0x4b")][cx("0xbe")]||cx("0x47")==x&&!fx(c[cx("0xc9")])||cx("0xdc")==x&&(dx(i=c[cx("0xc9")])||(s=i)[cx("0x125")][cx("0x6c")]==s[cx("0x107")][cx("0x5a")]&&s[cx("0x125")][cx("0x6")]))t[cx("0x52")](a),n=!0;else{if(!u||!u[cx("0x102")])continue;r[cx("0x103")](u)}}var s,i;return r[cx("0x131")]>0&&(n=!!this[cx("0x11e")](r)||n),n})),e[cx("0x99")].document.registerPostFixer((t=>{let n=!1;for(const o of e[cx("0x99")][cx("0xe2")][cx("0x12f")][cx("0xab")]()){if(cx("0x94")!=o[cx("0x23")])continue;const r=o[cx("0x58")].getShiftedBy(o[cx("0x113")]);if(r.isAtEnd)for(const s of this._suggestions.values()){if(s.isMultiRange||!s[cx("0x102")])continue;if(cx("0x47")!=s.type)continue;const i=s.getFirstRange();if(i[cx("0x125")][cx("0x6c")]!=i[cx("0x107")][cx("0x6c")]&&i[cx("0x107")][cx("0xe3")](o[cx("0x58")])){const o=e[cx("0x99")].createRange(i[cx("0x125")],r);t.updateMarker(s[cx("0x46")](),{range:o}),n=!0}}}return n})),e[cx("0x99")][cx("0x8c")].on(cx("0xa3"),((e,t,n)=>{if(null==n){const{id:e}=this[cx("0xe6")](t[cx("0x1b")]),n=this[cx("0x45")][cx("0x33")](e);n&&n[cx("0xf8")](t[cx("0x1b")])}})),e.model[cx("0xe2")].on(cx("0x32"),(()=>{const t=Array[cx("0xa4")](e.model.document[cx("0x12f")].getChangedMarkers()).filter((e=>"suggestion"===this._splitMarkerName(e[cx("0x1b")])[cx("0x66")]));if(0===t[cx("0x113")])return;t[cx("0x7c")](((e,t)=>{const n=e.data[cx("0x75")],o=t[cx("0x106")][cx("0x75")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[cx("0x125")][cx("0x91")](o[cx("0x125")])?-1:1}));const n=new Set,o=new Set;for(const{name:e,data:r}of t){const{id:t}=this[cx("0xe6")](e);if(null===r.oldRange){const t=this[cx("0x123")](e);o[cx("0x103")](t)}else{const e=this[cx("0x45")][cx("0x33")](t);null!==r[cx("0xc9")]||e.isInContent?(n.add(e[cx("0xc4")]),o.add(e)):this[cx("0xe5")](e)}}o[cx("0x131")]>0&&this[cx("0x67")](o);for(const e of n)this[cx("0xf3")](cx("0xb8"),e)})),e.model.on(cx("0xca"),((t,n)=>{const o=n[0];if(!this[cx("0x45")][cx("0x131")])return;if(!o[cx("0x85")])return;if(o[cx("0xb2")][cx("0x133")]||!o[cx("0xb2")].isLocal)return;let r,s;switch(o.type){case cx("0x94"):r=e[cx("0x99")][cx("0x13")](o[cx("0x58")]),s=r[cx("0x7e")](o[cx("0x14")]);break;case cx("0x24"):r=e.model[cx("0x13")](o.splitPosition),s=e.model[cx("0x13")](o[cx("0x69")]);break;case cx("0xf"):r=e[cx("0x99")][cx("0x13")](o[cx("0x1f")]),s=r[cx("0x7e")](o[cx("0x14")]);break;default:return}const i=e.model[cx("0x7")](r,s);e[cx("0x99")][cx("0xb")]((()=>{for(const{suggestion:e,meta:t}of this._findSuggestions(i)){if(e[cx("0x79")])continue;if(cx("0xda")==e[cx("0x23")])continue;const n=e[cx("0x106")]&&e[cx("0x106")].multipleBlocks;(cx("0x47")!=e[cx("0x23")]||"split"==o.type&&!n)&&(t.containsRangeInObject||cx("0x114")==e[cx("0x23")]&&t[cx("0x70")]||e[cx("0x9f")]().containsRange(i)&&this[cx("0x74")](e,r,s))}}))}),{priority:cx("0xf6")}),e[cx("0x99")].on("deleteContent",((t,n)=>{const o=n[0],r=n[1];if(r&&r[cx("0x21")])return;if(this[cx("0x5d")])return;if(!this[cx("0x10d")][cx("0x2c")])return;if(o[cx("0xfb")])return;const s=e[cx("0x99")][cx("0x12b")],{start:i,end:a}=o[cx("0x9f")](),c=i[cx("0x78")]&&s[cx("0x95")](i[cx("0x78")])?null:s[cx("0xa1")](i,cx("0x36")),x=a.nodeBefore&&s[cx("0x95")](a.nodeBefore)?null:s[cx("0xa1")](a,cx("0xe0")),l=e[cx("0x99")].createRange(c?c[cx("0x125")]:i,x?x[cx("0x107")]:a);e[cx("0x99")][cx("0xb")]((t=>{this[cx("0x59")](l);const n=e[cx("0x99")][cx("0x12b")][cx("0xa1")](l[cx("0x125")]);o.is(cx("0x134"))?t[cx("0xf5")](n):o.setTo(n)})),t[cx("0x76")]()}),{priority:t.priorities[cx("0xd8")]+10}),e[cx("0x99")].on("insertContent",((t,n)=>{const o=n[n.length-1];o&&o[cx("0x21")]||this[cx("0x5d")]||this[cx("0x10d")].value&&(e[cx("0x99")][cx("0xb")]((()=>{let o=e[cx("0x99")][cx("0x3")](n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;t.return=o.clone();const r=o[cx("0x107")][cx("0x5a")],s=e.model.schema;r&&s.isBlock(r)&&!s[cx("0x3f")](r)&&(o=e.model.createRange(o.start,e[cx("0x99")][cx("0x13")](r,"end"))),this.markInsertion(o)})),t[cx("0x76")]())}),{priority:cx("0x63")}),this[cx("0x10d")]=new d(e,this[cx("0xa2")]),this.editor[cx("0x7f")].add(cx("0xd4"),this[cx("0x10d")]),this[cx("0x10")](cx("0xd4"));const o=new k(e,this[cx("0x45")]);e[cx("0x7f")][cx("0x103")](cx("0xe8"),o),this[cx("0x10")](cx("0xe8"));const r=new y(e,this[cx("0x45")]);e.commands[cx("0x103")](cx("0x5f"),r),this[cx("0x10")]("discardSuggestion"),e[cx("0x7f")][cx("0x103")](cx("0x11"),new P(e,o,this[cx("0x45")])),this[cx("0x10")](cx("0x11")),e[cx("0x7f")][cx("0x103")](cx("0xe"),new P(e,r,this[cx("0x45")])),this.enableCommand(cx("0xe")),e.commands[cx("0x103")](cx("0x83"),new U(e,o,this[cx("0x45")])),this[cx("0x10")](cx("0x83")),e.commands[cx("0x103")](cx("0x34"),new U(e,r,this[cx("0x45")])),this.enableCommand("discardSelectedSuggestions");const s=e[cx("0x43")][cx("0x33")](cx("0x8d"));this.listenTo(s,"addComment",((e,{threadId:t})=>{const n=this[cx("0x45")][cx("0x33")](t);n&&n[cx("0x4f")]&&1===n[cx("0x4f")][cx("0x113")]&&this._updateSuggestionData(t,{hasComments:!0})}),{priority:cx("0x61")}),this[cx("0x87")](s,"removeComment",((e,{threadId:t})=>{const n=this._suggestions[cx("0x33")](t);n&&n[cx("0x4f")]&&!n.commentThread.length&&this[cx("0x60")](t,{hasComments:!1})}),{priority:cx("0x61")})}set adapter(e){if(this[cx("0xc1")])throw new t.CKEditorError(cx("0x97"),this);this._adapter=e}get[cx("0x64")](){return this[cx("0xc1")]}[cx("0xf7")]({skipNotAttached:e=!1,toJSON:t=!1}={}){const n=[];for(const t of this[cx("0x45")][cx("0xea")]())e&&!t[cx("0x102")]||n.push(t);return t?n[cx("0xa0")]((e=>e[cx("0x57")]())):n}[cx("0x49")](e){const n=this._suggestions[cx("0x33")](e);if(!n)throw new t.CKEditorError("track-changes-suggestion-not-found",this);return n}[cx("0x11a")](e){return this[cx("0x45")][cx("0x89")](e)}[cx("0x10f")](e){const{authorId:t,id:n,attributes:o}=e,[r,s]=e[cx("0x23")][cx("0x24")](":"),i=this._suggestions[cx("0x33")](n)||this[cx("0x82")](r,s,n,t,o);if(this._addThreadToSuggestion(i),this[cx("0x10b")](i,r,s||null,t),i[cx("0x108")]=e[cx("0x108")],o&&o[cx("0xad")]){const{authorName:e,createdAt:t}=o["@external"],n=this[cx("0xdf")](e);i[cx("0x11d")]=t,i[cx("0x10e")]=n,i[cx("0x6f")]=!0}else i[cx("0x11d")]=e[cx("0x108")];switch(e.data&&(i.data=e.data),e[cx("0x11b")]&&(i.attributes=e[cx("0x11b")]),this._adapter&&this[cx("0xc1")].addSuggestion||(i[cx("0x122")]=!0),this[cx("0x31")][cx("0x33")](i)){case"notReady":this[cx("0x31")][cx("0x9")](i,cx("0x136"));break;case"markerReady":i[cx("0x102")]?(this[cx("0x31")][cx("0x9")](i,cx("0x12c")),this[cx("0xf3")](cx("0xe1"),i)):this[cx("0x31")].set(i,cx("0x3e"))}return i}[cx("0xe8")](e){this.forceDefaultExecution((()=>{this[cx("0xcb")][cx("0x99")][cx("0xb")]((()=>{for(const t of e[cx("0xc7")]())t[cx("0x48")]()}))}))}[cx("0x5f")](e){this[cx("0x21")]((()=>{this.editor[cx("0x99")].change((()=>{for(const t of e.getAllAdjacentSuggestions())t.discard()}))}))}[cx("0x10")](e,n){const o=this[cx("0xcb")][cx("0x7f")].get(e);if(!o)throw new t.CKEditorError(cx("0xfd"),this,{commandName:e});this[cx("0xa2")][cx("0x103")](o),n&&o.on("execute",((e,t)=>{this[cx("0x10d")][cx("0x2c")]&&(this._isForcedDefaultExecutionBlock||t[cx("0x113")]>0&&t[t[cx("0x113")]-1]&&t[t[cx("0x113")]-1][cx("0x21")]||(n(((...e)=>o[cx("0xc6")](...e,{forceDefaultExecution:!0})),...t),e[cx("0x76")]()))}),{priority:cx("0x63")})}forceDefaultExecution(e){let n,o;const r=this[cx("0x5d")];this[cx("0x5d")]=!0;try{n=e()}catch(e){o=e}return r||(this[cx("0x5d")]=!1),o&&t.CKEditorError[cx("0x6a")](o,this),n}[cx("0xd5")](e,n=null,o={}){if(e.isCollapsed)return null;const r=this.editor[cx("0x43")][cx("0x33")]("Users").me;for(const{suggestion:t,meta:o}of this[cx("0xfa")](e,cx("0x114")))if(o.isOwn){if(!o[cx("0xc3")])return t;if(n==t.subType){const n=t[cx("0x9f")]();return n[cx("0x125")].isEqual(e[cx("0x107")])?this[cx("0x12e")](t,this[cx("0x5")][cx("0x7")](e[cx("0x125")],n[cx("0x107")])):this[cx("0x12e")](t,this[cx("0x5")].createRange(n[cx("0x125")],e[cx("0x107")])),t}}const s=(0,t.uid)(),i=r.id,a=n?"insertion:"+n:cx("0x114"),c=this[cx("0x51")]({id:s,type:a,createdAt:new Date,authorId:i,attributes:o});return this[cx("0x9d")](a,s,i,e),c}markMultiRangeInsertion(e,n=cx("0xd1"),o={}){const r=this[cx("0xcb")][cx("0x43")][cx("0x33")](cx("0xff")).me,s=this[cx("0x38")][cx("0x29")](cx("0x114"),n,cx("0xa7"));for(const t of this.getSuggestions())if(t[cx("0x10e")].id==r.id&&cx("0x114")==t[cx("0x23")]&&t[cx("0xe9")]==n&&(s(t[cx("0x101")](),e)||s(e,t[cx("0x101")]()))){for(const n of e)t.addRange(n);return t}for(const t of e)for(const{suggestion:n,meta:o}of this._findSuggestions(t,"insertion")){if(!o.isOwn)continue;let t=!0;for(const o of n[cx("0x101")]())for(const n of e)if(!o[cx("0x11f")](n)){t=!1;break}if(t)return n}const i=(0,t.uid)(),a=r.id,c=cx("0xe7")+n,x=this[cx("0x51")]({id:i,type:c,createdAt:new Date,authorId:a,attributes:o});for(const t of e)this[cx("0x9d")](c,i,a,t,Qo.getMultiRangeId());return x}[cx("0x1a")](e,n,o=null,r={}){if(o=o||mx(n),e[cx("0xfb")])return;const s=this.editor[cx("0x43")][cx("0x33")](cx("0xff")).me,i=[];for(const{suggestion:t,meta:n}of this._findSuggestions(e,cx("0x114")))n[cx("0x70")]&&!n[cx("0xb1")]&&i.push(...t[cx("0x101")]());const a=function(e,t){const n=[];for(const o of t){const t=e[cx("0x6e")](o);t&&n.push(t)}return n}(e,i),c=function(e,t){const n=[e];for(const e of t){let t=0;for(;t<n[cx("0x113")];){const o=n[t][cx("0xee")](e);n[cx("0x130")](t,1,...o),t+=o[cx("0x113")]}}return n}(e,i);a[cx("0x113")]&&this[cx("0x5")].change((()=>{for(const e of a){const t=this[cx("0x38")][cx("0x29")](cx("0xda"),o,"accept");this.forceDefaultExecution((()=>t([e],n,r)))}}));for(const e of c){let i=null,a=e[cx("0x125")],c=e[cx("0x107")];for(const{suggestion:t,meta:n}of this._findSuggestions(e,cx("0xda"))){if(!n[cx("0x70")])continue;if(t[cx("0xe9")]!=o)continue;const r=t[cx("0x9f")]();if(r[cx("0x11f")](e,!0))return;a=a[cx("0x91")](r[cx("0x125")])?a:r[cx("0x125")],c=c[cx("0x2b")](r[cx("0x107")])?c:r[cx("0x107")],i?r.start[cx("0x91")](i.getFirstRange()[cx("0x125")])?(i[cx("0xbf")](),i=t):t[cx("0xbf")]():i=t}const x=this[cx("0x5")][cx("0x7")](a,c);if(i)this[cx("0x12e")](i,x);else{const e=(0,t.uid)(),i=s.id;this[cx("0x51")]({id:e,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[cx("0x9d")](cx("0xf1")+o,e,i,x)}}}[cx("0x4e")](e,n,o=[],r=null,s={}){n[cx("0x119")]||(n[cx("0x119")]=n.commandName),n[cx("0xa5")]=e.is(cx("0x2")),r=r||mx(n);const i=o.map((e=>hx(e,this._model))),a=e.is(cx("0x2"))?e:hx(e,this[cx("0x5")]);i[cx("0x115")](a);let c=!0;for(const e of i)if(!this._rangeIsInLocalUserInsertion(e)){c=!1;break}if(c){const e=this._suggestionFactory.getSuggestionCallback(cx("0x47"),r,cx("0x48"));return void this[cx("0x21")]((()=>e([a],n,s)))}let x=null,l=a[cx("0x125")],u=a.end;for(const{suggestion:e,meta:t}of this._findSuggestions(a,"formatBlock")){if(!t[cx("0x70")]||t[cx("0xc3")]||t[cx("0xa6")]||t[cx("0xb1")])continue;if(e.data.formatGroupId!=n[cx("0x119")])continue;const o=e[cx("0x9f")]();if(e[cx("0xe9")]==r){if(o[cx("0x11f")](a,!0))return;l=l.isBefore(o.start)?l:o[cx("0x125")],u=u[cx("0x2b")](o[cx("0x107")])?u:o.end,x?o[cx("0x125")][cx("0x91")](x[cx("0x9f")]()[cx("0x125")])?(x.removeMarkers(),x=e):e.removeMarkers():x=e}else{const t=a.getIntersection(o);this[cx("0xac")](e,t)}}const d=this.editor[cx("0x43")].get(cx("0xff")).me,g=(0,t.uid)(),m=d.id;x?this[cx("0x12e")](x,this[cx("0x5")][cx("0x7")](l,u)):(this[cx("0x51")]({id:g,type:cx("0x8")+r,data:n,createdAt:new Date,authorId:m,attributes:s}),this._addSuggestionMarker("formatBlock:"+r,g,m,this._model[cx("0x7")](l,u)))}[cx("0xba")](e,n,o=[],r=null,s={}){n[cx("0x119")]||(n[cx("0x119")]=n.commandName),n[cx("0xa5")]=!1,r=r||mx(n);const i=o[cx("0xa0")]((e=>hx(e,this[cx("0x5")]))),a=e.map((e=>hx(e,this._model)));i[cx("0x115")](...a);let c=!0;for(const e of i)if(!this[cx("0x65")](e)){c=!1;break}if(c){const e=this[cx("0x38")][cx("0x29")](cx("0x47"),r,cx("0x48"));return void this[cx("0x21")]((()=>e(a,n,s)))}const x=this[cx("0xcb")].plugins[cx("0x33")](cx("0xff")).me;for(const e of this.getSuggestions()){if(e[cx("0x10e")].id!=x.id)continue;if(cx("0x47")!=e.type||e[cx("0x106")][cx("0x119")]!=n[cx("0x119")])continue;const t=e[cx("0xe9")]==r;for(let n=0;n<a[cx("0x113")];n++){const o=a[n];for(const r of e[cx("0x30")]()){const s=r[cx("0x1")]();if(o[cx("0xe3")](s)){t?(a[cx("0x130")](n,1),n--):e[cx("0x52")](r[cx("0x1b")]);break}}}}if(0==a[cx("0x113")])return;const l=this[cx("0x38")].getSuggestionCallback(cx("0x47"),r,"join");for(const e of this[cx("0xf7")]())if(e.author.id==x.id&&cx("0x47")==e[cx("0x23")]&&e[cx("0x106")].formatGroupId==n[cx("0x119")]&&e[cx("0xe9")]==r&&(l(e[cx("0x101")](),a)||l(a,e.getRanges()))){for(const t of a)e[cx("0x1e")](t);return e}const u=(0,t.uid)(),d=x.id,g="formatBlock:"+r,m=this[cx("0x51")]({id:u,type:g,data:n,createdAt:new Date,authorId:d,attributes:s});for(const e of a)this._addSuggestionMarker(g,u,d,e,Qo[cx("0x128")]());return m}[cx("0x59")](e,n=null,o={}){if(e.isCollapsed)return null;const r=this[cx("0xcb")].plugins[cx("0x33")]("Users").me,s=new i.LiveRange(e[cx("0x125")],e[cx("0x107")]);for(const{suggestion:e,meta:t}of this[cx("0xfa")](s,cx("0x114")))if(t.isOwn&&!t[cx("0xc3")])if(e.isMultiRange){const t=e.getRanges()[cx("0x110")]((e=>cx("0xb5")!=e[cx("0x4b")][cx("0xbe")]));if(t[cx("0xbc")]((e=>s[cx("0x11f")](e,!0)))&&e[cx("0x3c")](),t[cx("0x72")]((e=>e[cx("0x11f")](s,!0)))){const e=this[cx("0x38")][cx("0x29")]("deletion",n,cx("0x48"));return this[cx("0x21")]((()=>e([s],null,o))),null}}else{const t=s[cx("0x6e")](e[cx("0x9f")]());e[cx("0xec")]([t],null,o)}if(s[cx("0xed")](),s[cx("0xfb")]||cx("0xb5")==s[cx("0x4b")][cx("0xbe")])return null;let a=null,c=s.start,x=s.end;for(const{suggestion:e,meta:t}of this[cx("0xfa")](s,cx("0xdc")))if(t[cx("0x70")])if(e[cx("0x79")]){let t=!0;for(const n of e[cx("0x101")]()){if(n[cx("0x11f")](s,!0))return e;s[cx("0x11f")](n)||(t=!1)}t&&e.discard()}else{const t=e[cx("0x9f")]();if(t[cx("0x11f")](s,!0))return e;c=c[cx("0x91")](t[cx("0x125")])?c:t.start,x=x[cx("0x2b")](t[cx("0x107")])?x:t[cx("0x107")],a?t[cx("0x125")][cx("0x91")](a[cx("0x9f")]().start)?(a[cx("0xbf")](),a=e):e.removeMarkers():a=e}if(a)return this[cx("0x12e")](a,this[cx("0x5")][cx("0x7")](c,x)),a;{const e=(0,t.uid)(),s=this._model[cx("0x7")](c,x),i=r.id,a=n?"deletion:"+n:cx("0xdc"),l=this[cx("0x51")]({id:e,type:a,createdAt:new Date,authorId:i,attributes:o});return this[cx("0x9d")](a,e,i,s),l}}markMultiRangeDeletion(e,n=cx("0xd1"),o={}){const r=this[cx("0xcb")][cx("0x43")][cx("0x33")]("Users").me,s=e[cx("0xa0")]((e=>new i.LiveRange(e[cx("0x125")],e.end))),a=new Set;for(const e of s)for(const{suggestion:t,meta:n}of this._findSuggestions(e,cx("0x114")))n.isOwn&&!n[cx("0xc3")]&&a[cx("0x103")](t);for(const t of a)if(t.isMultiRange){const r=t[cx("0x101")]();if((!t[cx("0x11b")]||!t[cx("0x11b")][cx("0x27")])&&r.every((e=>s.some((t=>t.containsRange(e,!0)))))&&t[cx("0x3c")](),s[cx("0xbc")]((e=>r[cx("0x72")]((t=>t[cx("0x11f")](e,!0)))))){const t=this[cx("0x38")].getSuggestionCallback(cx("0xdc"),n,cx("0x48"));return this[cx("0x21")]((()=>t(e,null,o))),null}}else{const e=t[cx("0x9f")]();if(s[cx("0x72")]((t=>t[cx("0x11f")](e,!0)))&&t[cx("0x3c")](),s[cx("0xbc")]((t=>e[cx("0x11f")](t,!0)))){const e=this._suggestionFactory.getSuggestionCallback(cx("0xdc"),n,cx("0x48"));return this[cx("0x21")]((()=>e(s,null,o))),null}}const c=this[cx("0x38")].getSuggestionCallback(cx("0xdc"),n,cx("0xa7"));let x=null;for(const e of this.getSuggestions())if(e[cx("0x10e")].id==r.id&&e[cx("0x102")]&&"deletion"==e[cx("0x23")]&&e[cx("0xe9")]==n&&(c(e[cx("0x101")](),s)||c(s,e[cx("0x101")]())))if(x){if(e.commentThread&&e.commentThread[cx("0x113")])continue;for(const t of e.getRanges())x[cx("0xf9")](t)||x[cx("0x1e")](t);e[cx("0xbf")]()}else{x=e;for(const t of s)e[cx("0xf9")](t)||e[cx("0x1e")](t)}if(x)return x;a.clear();for(const e of s)for(const{suggestion:t,meta:n}of this._findSuggestions(e,cx("0xdc")))n.isOwn&&a.add(t);for(const e of a){const t=e[cx("0x101")]();if((!o||!o[cx("0x27")])&&s[cx("0xbc")]((e=>t.some((t=>t.containsRange(e,!0))))))return e;(!e.attributes||!e[cx("0x11b")][cx("0x27")])&&t[cx("0xbc")]((e=>s[cx("0x72")]((t=>t.containsRange(e,!0)))))&&e.discard()}const l=(0,t.uid)(),u=r.id,d="deletion:"+n,g=this[cx("0x51")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const e of s)e.detach(),e.isCollapsed||cx("0xb5")==e[cx("0x4b")][cx("0xbe")]||this[cx("0x9d")](d,l,u,e,Qo[cx("0x128")]());return g}_setSuggestionRange(e,t){const n=e.getFirstMarker();this[cx("0x5")][cx("0xb")]((e=>{e[cx("0xb9")](n,{range:t})}))}_addThreadToSuggestion(e){const t=e.id,n=this[cx("0xcb")].config.get("collaboration.channelId");this[cx("0x9c")][cx("0x111")](t)||this[cx("0x9c")][cx("0x56")]({channelId:n,threadId:t});const o=this[cx("0x9c")][cx("0x124")](t);o[cx("0xc8")](cx("0x7a")),o.isRemovable=!1,e[cx("0x4f")]=o}_checkSuggestionCorrectness(e,n,o,r){if(e.type!=n||e.subType!=o||e.creator.id!=r)throw this[cx("0xcb")][cx("0x2d")](cx("0xdd")),new t.CKEditorError(cx("0xdd"),this)}[cx("0xac")](e,n){const o=e[cx("0x9f")]();if(n[cx("0xe3")](o))e.removeMarkers();else if(o[cx("0x11f")](n)){const r=this[cx("0x5")][cx("0x13")](n[cx("0x125")].nodeBefore,"end");this[cx("0x12e")](e,this[cx("0x5")].createRange(o.start,r));const s=(0,t.uid)(),i=e[cx("0x41")].id,a=e[cx("0x23")]+":"+e[cx("0xe9")];this[cx("0x51")]({id:s,type:a,createdAt:new Date,authorId:i,data:e[cx("0x106")],attributes:e[cx("0x11b")]});const c=this._model[cx("0x13")](n.end[cx("0x6c")],"after"),x=this[cx("0x5")][cx("0x7")](c,o[cx("0x107")]);this[cx("0x9d")](a,s,i,x)}else if(o[cx("0xc2")](n[cx("0x125")])){const t=this[cx("0x5")][cx("0x13")](n.start[cx("0x5a")],cx("0x107"));this[cx("0x12e")](e,this._model[cx("0x7")](o[cx("0x125")],t))}else{const t=this._model[cx("0x13")](n.end.parent,cx("0xf4"));this._setSuggestionRange(e,this._model.createRange(t,o[cx("0x107")]))}}[cx("0x65")](e){for(const{suggestion:t,meta:n}of this[cx("0xfa")](e,cx("0x114"))){if(!n[cx("0x70")])continue;const o=t.getRanges();for(const t of o)if(!e.getDifference(t)[cx("0x113")])return!0}return!1}[cx("0xb0")](e){const n=this[cx("0xcb")][cx("0x43")][cx("0x33")](cx("0xff"))[cx("0xaa")](e);if(!n)throw new t.CKEditorError(cx("0x5b"),this);return n}[cx("0xdf")](e){const t=this[cx("0xcb")].plugins[cx("0x33")](cx("0xff")),n=Nc(cx("0x12")+e);return t[cx("0xaa")](n)||t[cx("0xb7")]({id:n,name:e})}[cx("0x82")](e,t,n,o,r){const s=this._getAuthorFromId(o),i=this[cx("0x38")][cx("0xf0")](e,t,n,s,r,(e=>this[cx("0x60")](n,{attributes:e})));return this[cx("0x87")](i,"accept",(()=>{this[cx("0x60")](n,{state:"accepted"})}),{priority:cx("0x63")}),this[cx("0x87")](i,cx("0x3c"),(()=>{this[cx("0x60")](n,{state:cx("0x118")})}),{priority:cx("0x63")}),this[cx("0x45")][cx("0x9")](n,i),this._suggestionState[cx("0x9")](i,"notReady"),i}[cx("0xe6")](e){const t=e[cx("0x24")](":");return{group:t[0],type:t[1],subType:t[cx("0x113")]>=5?t[2]:null,id:t[cx("0x113")]<5?t[2]:t[3],authorId:t[cx("0x113")]<5?t[3]:t[4],markerCount:6==t[cx("0x113")]?t[5]:null}}[cx("0x74")](e,n,o){const r=e.getFirstRange(),s=r[cx("0x125")],i=r[cx("0x107")];this[cx("0x12e")](e,this._model[cx("0x7")](s,n));const a=(0,t.uid)(),c=e.creator.id,x=e[cx("0x23")]+(e[cx("0xe9")]?":"+e[cx("0xe9")]:"");this[cx("0x51")]({id:a,type:x,createdAt:new Date,authorId:c,originalSuggestionId:e.id,attributes:e[cx("0x11b")],data:e[cx("0x106")]}),"formatBlock"==e[cx("0x23")]&&(o=this[cx("0x5")][cx("0xdb")](o[cx("0x6c")])),this._addSuggestionMarker(x,a,c,this._model[cx("0x7")](o,i))}[cx("0xfa")](e,t=null){const n=[],o=this[cx("0x5")].schema,r=this[cx("0xcb")].plugins[cx("0x33")](cx("0xff")).me;for(const s of this[cx("0xf7")]())if(s[cx("0x102")]&&(!t||s[cx("0x23")]==t))for(const t of s[cx("0x101")]()){const i=e[cx("0x125")][cx("0xe3")](t.end)||e[cx("0x107")][cx("0xe3")](t[cx("0x125")]);if(i||e[cx("0x6e")](t)){const a=e[cx("0x11f")](t)&&ux(o,t.start,e),c=t[cx("0x11f")](e)&&ux(o,e[cx("0x125")],t);n[cx("0x115")]({suggestion:s,meta:{isOwn:r==s[cx("0x10e")],isNextTo:i,isInsideObject:a,containsRangeInObject:c}});break}}return n}[cx("0x9d")](e,t,n,o,r=null){this[cx("0x5")][cx("0xb")]((s=>{let i=cx("0xcd")+e+":"+t+":"+n;r&&(i=i+":"+r),s[cx("0x42")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[cx("0xe5")](e){const t=e[cx("0x80")],n=e[cx("0x84")];e[cx("0x80")]=null,null!=t&&(t[cx("0x84")]=null),e[cx("0x84")]=null,null!=n&&(n[cx("0x80")]=null),cx("0x12c")==this._suggestionState[cx("0x33")](e)&&(this[cx("0x31")][cx("0x9")](e,cx("0x3e")),this.fire(cx("0x4d"),e,t,n))}[cx("0x51")](e){const n=e.id,o=this.addSuggestionData(e);if(this[cx("0xc1")]&&this._adapter[cx("0xcc")]){const r=this[cx("0xcb")].plugins.get(cx("0x55")),s=o.hasComments,i=o[cx("0xe9")]?o[cx("0x23")]+":"+o[cx("0xe9")]:o[cx("0x23")],a=this.editor[cx("0xd2")],c=r[cx("0x103")](Yo(a,cx("0x2f"))),x={id:n,type:i,hasComments:s,data:e[cx("0x106")]||null,originalSuggestionId:e[cx("0x0")]||null,attributes:o[cx("0x11b")]};this[cx("0xc1")][cx("0xcc")](x)[cx("0x77")]((e=>{o[cx("0x122")]=!0,r[cx("0x132")](c),e&&e.createdAt&&(this[cx("0x45")][cx("0x33")](n)[cx("0x108")]=e.createdAt)})).catch((e=>{throw(0,t.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[cx("0xcb")][cx("0x99")][cx("0xae")]({isUndoable:!1},(()=>{o[cx("0x3c")]()})),o.stopListening(),this._suggestions[cx("0x135")](o.id),this[cx("0x31")].delete(o),e}))}return o}[cx("0x60")](e,t){const n=this[cx("0xcb")][cx("0x43")].get(cx("0x55")),o=this[cx("0x45")][cx("0x33")](e);if(this[cx("0xc1")]&&this[cx("0xc1")][cx("0x2e")])if(o[cx("0x122")]){const o=n.add(Yo(this.editor[cx("0xd2")],cx("0x2f")));this[cx("0xc1")][cx("0x2e")](e,t)[cx("0x77")]((()=>{n[cx("0x132")](o)}))}else o.on(cx("0x20"),(()=>{this._updateSuggestionData(e,t)}))}[cx("0xbb")](e){if(!this[cx("0xc1")]||!this[cx("0xc1")][cx("0x49")])throw new t.CKEditorError(cx("0x12a"),this);return this._adapter[cx("0x49")](e)}[cx("0x123")](e){const{id:t,type:n,subType:o,authorId:r}=this._splitMarkerName(e),s=this[cx("0x45")].get(t)||this[cx("0x82")](n,o,t,r);switch(this[cx("0x10b")](s,n,o,r),this[cx("0x31")][cx("0x33")](s)){case cx("0xcf"):this[cx("0xbb")](t).then((e=>{let n=Promise[cx("0x10c")]();e[cx("0xfc")]&&(n=this[cx("0x9c")].fetchCommentThread({channelId:this[cx("0xcb")][cx("0x12d")][cx("0x33")](cx("0x22")),threadId:t})),n[cx("0x77")]((()=>{this[cx("0x10f")](e)[cx("0x122")]=!0}))})),this[cx("0x31")][cx("0x9")](s,cx("0x5c"));break;case cx("0x3e"):this._updateSuggestionData(t,{state:cx("0x62")});case"dataReady":this[cx("0x31")][cx("0x9")](s,cx("0x12c")),this[cx("0xf3")](cx("0xe1"),s);break;case cx("0x12c"):this[cx("0xf3")](cx("0xb8"),s)}return s[cx("0xf8")](e),s}[cx("0x67")](e){const t=Array[cx("0xa4")](e)[cx("0x110")]((e=>!e[cx("0x79")])),n=this[cx("0xf7")]({skipNotAttached:!0})[cx("0x110")]((e=>!e[cx("0x79")])),o=n.filter((t=>!e[cx("0x89")](t))),r=new Map(n[cx("0xa0")]((e=>[e,this._suggestionFactory[cx("0x29")](e[cx("0x23")],e[cx("0xe9")],cx("0x54"))]))),s=new Map(n.map((e=>[e,e.getFirstRange()]))),i=new Set,a=new Set;for(let e=0;e<t[cx("0x113")];e++)c(t[e],t,e+1);for(let e=0;e<t.length;e++)c(t[e],o,0);for(let e=0;e<t[cx("0x113")];e++){const n=t[e];!a[cx("0x89")](n)&&n[cx("0x80")]&&(n[cx("0x80")].next===n&&(n[cx("0x80")][cx("0x84")]=null),n[cx("0x80")]=null),!i.has(n)&&n[cx("0x84")]&&(n[cx("0x84")][cx("0x80")]===n&&(n[cx("0x84")][cx("0x80")]=null),n[cx("0x84")]=null)}function c(e,t,n){for(let o=n;o<t.length;o++){const n=x(e,t[o]);n&&(n[0].next=n[1],n[1].previous=n[0],i[cx("0x103")](n[0]),a.add(n[1]))}}function x(e,t){if(e[cx("0x10e")].id!==t.author.id)return null;const n=r.get(e)(e,t,s[cx("0x33")](e),s[cx("0x33")](t));return n&&r[cx("0x33")](t)(e,t,s[cx("0x33")](e),s[cx("0x33")](t))?n[1][cx("0x4f")]&&n[1][cx("0x4f")][cx("0x113")]?null:n:null}}[cx("0x11e")](e){const t=Array.from(e),n=this.getSuggestions({skipNotAttached:!0}),o=n.filter((t=>!e[cx("0x89")](t))),r=new Map(t[cx("0xa0")]((e=>[e,this[cx("0x38")][cx("0x29")](e[cx("0x23")],e[cx("0xe9")],"join")]))),s=new Map(n[cx("0xa0")]((e=>[e,e[cx("0x101")]()])));for(let e=0;e<t[cx("0x113")];e++)if(i(this,t[e],t,e+1))return!0;for(let e=0;e<t[cx("0x113")];e++)if(i(this,t[e],o,0))return!0;return!1;function i(e,t,n,o){for(let i=o;i<n[cx("0x113")];i++){const o=n[i];if(o.type!==t[cx("0x23")]||o.author.id!==t.author.id||o[cx("0xe9")]!==t.subType)continue;const a=r[cx("0x33")](t),c=s[cx("0x33")](t),x=s[cx("0x33")](o),l=t[cx("0x4f")]&&t.commentThread.length,u=o[cx("0x4f")]&&o.commentThread.length;if(!l&&a(x,c))return e[cx("0x71")](o,t),s.delete(t),!0;if(!u&&a(c,x))return e[cx("0x71")](t,o),s[cx("0x135")](o),!0}return!1}}_joinSuggestions(e,t){if(e.isMultiRange)for(const n of t[cx("0x101")]())e[cx("0x1e")](n);else{const n=t[cx("0x9f")]()[cx("0x107")];this[cx("0x12e")](e,this[cx("0x5")].createRange(e[cx("0x9f")]().start,n))}t[cx("0xbf")]()}}(0,t.mix)(xx,t.EmitterMixin);class lx{constructor(e){this[cx("0xc")]=e,this._model=e[cx("0x99")],this[cx("0x86")]=new Map,this[cx("0x37")]=new Map,this[cx("0x127")]()}buildSuggestion(e,t,n,o,r,s){return new Qo(this[cx("0x5")],{type:e,subType:t,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[cx("0x29")](e,t,cx("0x48"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(e,t,cx("0x3c"))(...n)})}[cx("0x7d")](e,t,n,o){const r=e+":"+t+":"+n;this._customCallbacks[cx("0x9")](r,o)}getSuggestionCallback(e,t,n){const o=e+":"+t+":"+n;return this._customCallbacks[cx("0x33")](o)||this._defaultCallbacks.get(e+":"+n)}[cx("0x127")](){const e=()=>{},t=e=>{e[cx("0x7c")](((e,t)=>e.start[cx("0x91")](t.start)?1:-1)),this[cx("0x5")][cx("0xb")]((t=>{for(const n of e){let e;e=n.end[cx("0x6")]&&n[cx("0x107")][cx("0x6c")]==n[cx("0x125")][cx("0x78")]?t.createSelection(n[cx("0x125")][cx("0x78")],"on"):t[cx("0x5e")](n),this[cx("0x5")][cx("0x7b")](e,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(e,t)=>{this._model.change((n=>{const{commandName:o,commandParams:r=[]}=t,s=e[0];if("$graveyard"==s[cx("0x4b")].rootName)return;const a=Array[cx("0xa4")](this[cx("0x5")][cx("0xe2")].selection.getRanges())[cx("0xa0")]((e=>i.LiveRange[cx("0x68")](e)));dx(s)?n[cx("0xf5")](this[cx("0x5")].createRange(s.end)):n[cx("0xf5")](s);for(const e of this[cx("0xc")].commands[cx("0x7f")]())e[cx("0x9a")]();r[cx("0x115")]({forceDefaultExecution:!0}),this[cx("0xc")].execute(o,...r);const c=a[cx("0x110")]((e=>cx("0xb5")!=e[cx("0x4b")][cx("0xbe")]));c[cx("0x113")]>0&&n[cx("0xf5")](c);for(const e of a)e.detach()}))},o=(e,t)=>1==e.length&&1==t[cx("0x113")]&&e[0][cx("0x107")][cx("0xe3")](t[0][cx("0x125")]),r=(e,t,n,o)=>kx(e,t,n,o,this[cx("0x5")])?[e,t]:kx(t,e,o,n,this._model)?[t,e]:null;this[cx("0x37")][cx("0x9")](cx("0x88"),e),this[cx("0x37")][cx("0x9")]("insertion:discard",t),this._defaultCallbacks[cx("0x9")](cx("0x17"),o),this._defaultCallbacks[cx("0x9")](cx("0x112"),r),this[cx("0x37")][cx("0x9")]("deletion:accept",t),this[cx("0x37")][cx("0x9")](cx("0xeb"),e),this[cx("0x37")][cx("0x9")](cx("0x1d"),o),this[cx("0x37")][cx("0x9")](cx("0x6b"),r),this[cx("0x37")][cx("0x9")]("formatInline:accept",n),this[cx("0x37")][cx("0x9")]("formatInline:discard",e),this[cx("0x37")][cx("0x9")](cx("0x16"),o),this[cx("0x37")][cx("0x9")]("formatInline:chain",e),this._defaultCallbacks[cx("0x9")](cx("0x4a"),n),this._defaultCallbacks[cx("0x9")](cx("0x8a"),e),this[cx("0x37")][cx("0x9")](cx("0xce"),o),this[cx("0x37")].set(cx("0x4c"),e)}}function ux(e,t,n){for(const o of t[cx("0x6c")][cx("0x116")]({includeSelf:!0,parentFirst:!0})){if(o[cx("0x4b")]==o)return!1;if(!n[cx("0x3d")](o))return!1;if(e[cx("0x3f")](o)||e[cx("0x95")](o))return!0}}function dx(e){return e[cx("0x107")][cx("0x6c")]==e.start[cx("0x78")]&&e.end.isAtStart}function gx(e,t,n,o){const r=e=>!e[cx("0xbd")].is(cx("0x26"))&&!o[cx("0x3f")](e[cx("0xbd")]),s=e[cx("0x125")][cx("0x1c")](r),i=e[cx("0x107")].getLastMatchingPosition(r,{direction:cx("0xe0")});return!(e[cx("0x125")][cx("0xe3")](s)&&e[cx("0x107")][cx("0xe3")](i)||(s[cx("0x91")](i)?n.updateMarker(t,{range:n[cx("0x7")](s,i)}):n.removeMarker(t),0))}function mx(e){return Nc(e)}function fx(e){const t=e[cx("0x125")][cx("0x78")];return t&&t.is("element")}function hx(e,t){const n=t[cx("0x12b")].isObject(e)||t[cx("0x12b")].isSelectable(e);return t.createRange(t.createPositionAt(e,cx("0xd")),n?t[cx("0xde")](e):t.createPositionAt(e,cx("0x107")))}function kx(e,t,n,o,r){if(n[cx("0x107")][cx("0xe3")](o.start))return!0;if(e[cx("0x23")]!=t[cx("0x23")])return!1;if(!n[cx("0x107")][cx("0xef")](o[cx("0x125")]))return!1;const s=r[cx("0x7")](n[cx("0x107")],o[cx("0x125")])[cx("0xd7")]();for(const e of s)if(["elementStart",cx("0x121")][cx("0x3b")](e[cx("0x23")])&&r.schema[cx("0x95")](e[cx("0xbd")]))return!1;return!0}const bx=["bind","listenTo","discardSuggestion","unbind","plugins","destroy","_removePendingAction","commentThreadController","view","PENDING_ACTION_SUGGESTION","_acceptCommand","execute","isEnabled","add","isDirty","locale","_editor","_discardCommand","_setPendingAction","_pendingAction","acceptSuggestion","stopListening","get","commands","model"];var px,_x;px=bx,_x=405,function(e){for(;--e;)px.push(px.shift())}(++_x);const vx=function(e,t){return bx[e-=0]};class yx{constructor(e,t,n,o){this[vx("0x13")]=t,this[vx("0x3")]=n,this.commentThreadController=o,this[vx("0xb")]=e,this[vx("0x5")]=e[vx("0x12")][vx("0x11")](vx("0xf")),this[vx("0xc")]=e[vx("0x12")][vx("0x11")](vx("0x16")),this[vx("0x3")][vx("0x14")](vx("0x7")).to(this[vx("0x5")]),this._pendingAction=null,n[vx("0x9")]&&this[vx("0xd")](),this[vx("0x15")](n,vx("0xf"),(()=>this[vx("0xf")]())),this[vx("0x15")](n,"discardSuggestion",(()=>this[vx("0x16")]())),this[vx("0x15")](n,"change:isDirty",(()=>{n[vx("0x9")]?this[vx("0xd")]():this._removePendingAction()}))}[vx("0xf")](){this[vx("0x5")][vx("0x6")](this[vx("0x13")].id)}[vx("0x16")](){this._discardCommand[vx("0x6")](this.model.id)}destroy(){this[vx("0x3")][vx("0x17")](vx("0x7")),this[vx("0x10")](),this[vx("0x2")][vx("0x0")](),this[vx("0xe")]&&this[vx("0x1")]()}_setPendingAction(){const e=Yo(this[vx("0xb")][vx("0xa")],vx("0x4"));this[vx("0xe")]=this[vx("0xb")][vx("0x18")].get("PendingActions")[vx("0x8")](e)}[vx("0x1")](){this[vx("0xb")][vx("0x18")][vx("0x11")]("PendingActions").remove(this[vx("0xe")]),this._pendingAction=null}}(0,t.mix)(yx,t.ObservableMixin);const Ex=["setData","delegate","_createCommentThreadInputView","isDirty","authoredAt","cancel","locale","_localUser","disabledSubmit","commentThreadInputView","descriptionParts","removeComment","isActive","hasDirtyComment","submit","showInput","_model","isEnabled","element","bind","disableComments","commentsListView","length","commentThread","fire","_config","destroy","commentInputView","focus","_createCommentViews","editor","set","value","isReadOnly"];var Cx,Tx;Cx=Ex,Tx=428,function(e){for(;--e;)Cx.push(Cx.shift())}(++Tx);const wx=function(e,t){return Ex[e-=0]};class Ax extends r.View{constructor(e,t,n,o){super(e),this.commentsListView=null,this.commentThreadInputView=null,this[wx("0xb")](wx("0x1a"),!1),this.set(wx("0x12"),t[wx("0x12")]),this[wx("0x21")](wx("0x12")).to(t),this.set(wx("0x18"),[]),this[wx("0xb")](wx("0x11"),!1),this.set(wx("0x1f"),!1),this[wx("0x1e")]=t,this[wx("0x15")]=n,this[wx("0x5")]=o,o[wx("0x0")]?this[wx("0xb")]("length",1):this[wx("0x9")]()}[wx("0x8")](){this[wx("0x20")][wx("0x8")]()}destroy(){this[wx("0x1")]&&this[wx("0x1")][wx("0x6")](),this[wx("0x17")]&&this[wx("0x17")][wx("0x6")](),super.destroy()}[wx("0x9")](){const{CommentsListView:e}=this[wx("0x5")];this.commentsListView=new e(this[wx("0x14")],this[wx("0x1e")][wx("0x3")],Object.assign({CommentView:this[wx("0x5")].CommentView},this._config)),this[wx("0x1")][wx("0xf")]("removeComment").to(this),this[wx("0x1")][wx("0xf")]("updateComment").to(this),this[wx("0x1")].bind(wx("0x1a")).to(this),this.set(wx("0x2"),this[wx("0x1")].length+1),this[wx("0x21")](wx("0x2")).to(this[wx("0x1")],wx("0x2"),(e=>e+1)),this.commentThreadInputView=this[wx("0x10")](),this.on(wx("0x19"),(()=>this[wx("0x8")]())),this[wx("0x21")](wx("0x11")).to(this[wx("0x1")],wx("0x1b"),this[wx("0x17")][wx("0x7")],wx("0xc"),((e,t)=>e||!!t))}_createCommentThreadInputView(){const{CommentThreadInputView:e}=this[wx("0x5")],t=new e(this[wx("0x14")],this._localUser,this[wx("0x5")].editorConfig),n=t.commentInputView;return t[wx("0x21")](wx("0x1d")).to(this,"isActive",this._model[wx("0x3")],wx("0xd"),n,"value",((e,t,n)=>!!n||e&&!t)),n.on(wx("0x1c"),((e,t)=>{this[wx("0x4")]("addComment",t),n[wx("0xa")][wx("0xe")]("")})),n.on(wx("0x13"),(()=>this[wx("0x8")]())),n.bind(wx("0x16")).to(this[wx("0x1e")][wx("0x3")],"isReadOnly"),t}}const Ix=["acceptButton","commentThreadInputView","EXTERNAL_IMPORT_WORD_AVATAR","ck-suggestion__actions","acceptSuggestion","ck-comment__info-time","description","type","formatDateTime","bindTemplate","render","isEnabled","ck-suggestion-wrapper--active","execute","getTemplate","_descriptionElement","name","span","map","commentsListView","isActive","EXTERNAL_SUGGESTION","ck-suggestion__info-name","ck-suggestion--discard","EXTERNAL_AVATAR","ck-annotation__info-name","ck-annotation__content-wrapper","value","ck-comment__external","ck-annotation__info","extendTemplate","_createButton","@external","creator","discardButton","_config",'"></span>',"ck-suggestion--disabled-comments","split","attributes","bind","cancel",'<span class="ck-suggestion-color" style="background-color: ',"getUserViewNotificationText","<p>","ck-annotation__actions","EXTERNAL_IMPORT_WORD_SUGGESTION","change:description","importWord","locale","</span>","ck-suggestion","userView","content","check","isExternal","_model","ck-annotation","getExternalSuggestionNote","element","innerHTML","</p>","ck-suggestion--accept","querySelector","source","fire","innerText","ck-suggestion__user","ck-suggestion-","ck-annotation__main","ck-annotation__info-time",".ck-annotation__content-wrapper",'" title="',"set","title","ck-suggestion-wrapper","author","commentThread","descriptionParts","setTemplate","push","div"];var Rx,Sx;Rx=Ix,Sx=378,function(e){for(;--e;)Rx.push(Rx.shift())}(++Sx);const Mx=function(e,t){return Ix[e-=0]};class Nx extends Ax{constructor(t,n,o,r){super(t,n,o,r),this[Mx("0x17")](Mx("0x27"),""),this[Mx("0x48")](Mx("0x27")).to(this,Mx("0x1c"),(e=>e&&e[0]?e[0][Mx("0x27")]:"")),this.bind("description").to(this,Mx("0x1c"),this,Mx("0x34"),((e,t)=>{let n="";for(const t of e)n+=Mx("0x4c")+Lx(t[Mx("0x3")],t.color)+Mx("0xb");return t?n:(0,s.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Mx("0x20")]=this[Mx("0x3f")](Yo(t,"Accept suggestion"),e.icons[Mx("0x4")],Mx("0xc"),Mx("0x24"),"sw"),this[Mx("0x42")]=this._createButton(Yo(t,"Discard suggestion"),e.icons[Mx("0x49")],Mx("0x37"),"discardSuggestion","sw"),this[Mx("0x2")]=new s.UserView(t,this[Mx("0x6")][Mx("0x1a")],this[Mx("0x4b")]()),this[Mx("0x2")].extendTemplate({attributes:{class:[Mx("0x11"),"ck-annotation__user"]}}),this[Mx("0x1d")](this[Mx("0x2e")]())}[Mx("0x2e")](){const e=this[Mx("0x29")],t=[{tag:"div",attributes:{class:["ck-suggestion__info",Mx("0x3d")]},children:[{tag:Mx("0x31"),children:[{text:this.userView[Mx("0x30")]}],attributes:{class:[Mx("0x36"),Mx("0x39")]}},{tag:"time",attributes:{datetime:e.to("authoredAt"),class:[Mx("0x25"),Mx("0x14")]},children:[{text:e.to("authoredAt",(e=>this[Mx("0x43")][Mx("0x28")](e)))}]}]},{tag:Mx("0x1f"),attributes:{class:[Mx("0x23"),Mx("0x4d")]},children:[this[Mx("0x20")],this[Mx("0x42")]]},{tag:Mx("0x1f"),attributes:{class:[Mx("0x3a")]}}];this[Mx("0x6")].isExternal&&t.push({tag:Mx("0x1f"),attributes:{class:[Mx("0x3c")]},children:[{text:this[Mx("0x8")]()}]});const n={tag:Mx("0x1f"),attributes:{class:[Mx("0x19"),e.if("isActive",Mx("0x2c")),e.to(Mx("0x27"),(e=>Mx("0x12")+e)),this[Mx("0x43")].disableComments&&Mx("0x45")],"data-suggestion-id":this._model.id,"data-thread-id":this[Mx("0x6")][Mx("0x1b")].id,"data-author-id":this[Mx("0x6")][Mx("0x1a")].id,tabindex:-1},children:[{tag:Mx("0x1f"),attributes:{class:[Mx("0x1"),Mx("0x7")]},children:[this[Mx("0x2")],{tag:Mx("0x1f"),attributes:{class:["ck-suggestion__main",Mx("0x13")]},children:t}]}]};return this[Mx("0x33")]&&this[Mx("0x21")]&&n.children[Mx("0x1e")](this[Mx("0x33")],this[Mx("0x21")]),n}[Mx("0x2a")](){super[Mx("0x2a")](),this._descriptionElement=this[Mx("0x9")][Mx("0xd")](Mx("0x15")),this[Mx("0x2f")].innerHTML=this[Mx("0x26")],this.on(Mx("0x4f"),((e,t,n)=>{this[Mx("0x2f")][Mx("0xa")]=n}))}_createButton(e,t,n,o,s){const i=new r.ButtonView(this[Mx("0x51")]);return i[Mx("0x17")]({label:e,icon:t,tooltip:!0,tooltipPosition:s}),i[Mx("0x3e")]({attributes:{class:n}}),i.on(Mx("0x2d"),(()=>{this[Mx("0xf")](o,this._model.id)})),i[Mx("0x48")](Mx("0x2b")).to(this),i}getExternalSuggestionNote(){return Mx("0x50")===this[Mx("0x6")][Mx("0x47")][Mx("0x40")][Mx("0xe")]?Yo(this[Mx("0x51")],Mx("0x4e")):Yo(this[Mx("0x51")],Mx("0x35"))}[Mx("0x4b")](){return this[Mx("0x6")][Mx("0x5")]?Mx("0x50")===this._model[Mx("0x47")][Mx("0x40")][Mx("0xe")]?Yo(this[Mx("0x51")],Mx("0x22"),this[Mx("0x6")][Mx("0x41")][Mx("0x30")]):Yo(this[Mx("0x51")],Mx("0x38"),this[Mx("0x6")][Mx("0x41")][Mx("0x30")]):null}}function Lx(e,t){let n="";return n+=e[Mx("0x46")]("*")[Mx("0x32")](((e,t)=>t%2!=0?'<span class="ck-suggestion-type">'+Ox(e)+Mx("0x0"):Ox(e))).join(""),t&&(n+=Mx("0x4a")+t[Mx("0x3b")]+Mx("0x16")+t[Mx("0x18")]+Mx("0x44")),n}function Ox(e){const t=document.createElement(Mx("0x31"));return t[Mx("0x10")]=e,t[Mx("0xa")]}const Px=["CommentView","reduce","_suggestionToController","refreshSelectedViews","destroy","set","addSourceCollector","isInContent","acceptSelectedSuggestions","source","acceptButton","_destroyController","toViewElement","suggestionUnloaded","bind","commentThread","getMarkerNames","delete","CommentsUI","commands","registerAnnotation","from","some","createCommentThreadController","Discard all suggestions","filter","commandName","config","isMultiRange","change:previous","head","TrackChangesEditing","focus","acceptAllSuggestions","values","getContainedElement","editing","comments.maxCommentCharsWhenCollapsed","getAllAdjacentSuggestions","innerView","getSuggestion","mainView","comments.maxThreadTotalWeight","map","Accept all suggestions","CommentsRepository","discardButton","hasSuggestion","_initializeController","getRanges","view","change:activeAnnotations","has","_handleControllerBuffer","Accept all selected suggestions","_handleSuggestionControllerDelayed","define","model","trackChanges.disableComments","isDirty","descriptionParts","switchbutton","stopListening","locale","isEnabled","requires","add","value","remove","_descriptionFactory","plugins","Discard all selected suggestions","comments","keys","isOn","length","previous","execute","type","get","pluginName","unbind","TrackChangesUI","_createUIButton","trackChanges","_annotationViews","listenTo","button","toMany","suggestionChanged","comments.maxCommentsWhenCollapsed","push","discardSelectedSuggestions","suggestionLoaded","editor","_viewToController","trackChanges.SuggestionThreadView","EditorAnnotations","arrowView","activeMarkers","buttonView","discardAllSuggestions","_updateController","separator","Track changes","_disableComments","suggestion-","getDescriptions","addComment","Annotations"];var Fx,Dx;Fx=Px,Dx=429,function(e){for(;--e;)Fx.push(Fx.shift())}(++Dx);const jx=function(e,t){return Px[e-=0]};class Bx extends e.Plugin{static get[jx("0x4c")](){return[xx,s.Users,"CommentsRepository","Annotations",jx("0x6c")]}static get[jx("0x5b")](){return jx("0x5d")}constructor(e){super(e),this._suggestionToController=new Map,this[jx("0x6a")]=new Map,this[jx("0x60")]=new Map,this[jx("0x40")]=new Map;const t=this[jx("0x69")][jx("0x26")];t[jx("0x43")](jx("0x6b"),Nx),t[jx("0x43")](jx("0x45"),!1),this[jx("0x6")]=t[jx("0x5a")](jx("0x45"))}[jx("0x42")](e,t){0===this._handleControllerBuffer.size&&setTimeout((()=>{for(const[e,t]of this[jx("0x40")]){const n=this[jx("0xd")][jx("0x3f")](e);n||t?n&&t&&this[jx("0x16")](e):this._initializeController(e)}this[jx("0x69")][jx("0x51")][jx("0x5a")](jx("0x6c"))[jx("0xe")](),this[jx("0x40")].clear()}),10),this[jx("0x40")][jx("0x10")](e,t)}init(){const e=this.editor,t=e[jx("0x51")][jx("0x5a")](xx),n=e[jx("0x51")][jx("0x5a")](jx("0xa")),o=e[jx("0x51")][jx("0x5a")]("EditorAnnotations"),r=e[jx("0x51")][jx("0x5a")](jx("0x38"));e.ui.componentFactory[jx("0x4d")]("trackChanges",(e=>this._createUIButton(e))),o[jx("0x11")]((()=>{const e=[];for(const[t,n]of Array.from(this[jx("0xd")])){const o=t[jx("0x31")](),r=[];for(const e of o){if(!e[jx("0x12")])continue;if(e[jx("0x27")]){r[jx("0x66")](...e[jx("0x3c")]());continue}const t=e.getFirstRange();if(r[jx("0x56")]>0){const e=r[0].getJoined(t);if(e){r[0]=e;continue}}r[jx("0x66")](t)}e[jx("0x66")]([n[jx("0x3d")],r])}return e})),this.listenTo(t,jx("0x68"),((e,t)=>{this.listenTo(t,jx("0x28"),((e,n,o,r)=>{t[jx("0x12")]&&(null==o?(this[jx("0x3")](r[jx("0x29")]),this[jx("0x42")](t,!1)):(this._updateController(o[jx("0x29")]),this[jx("0x42")](t,!0)))})),null===t[jx("0x57")]?this._handleSuggestionControllerDelayed(t,!1):this[jx("0x3")](t.head)})),this[jx("0x61")](t,jx("0x18"),((e,t,n)=>{this[jx("0x49")](t,jx("0x28")),this[jx("0x40")][jx("0x1c")](t);const o=n?n[jx("0x29")]:t,r=this._suggestionToController[jx("0x5a")](o);null!==n&&this[jx("0x3")](o),null===n&&r&&this[jx("0x16")](t)})),this[jx("0x61")](t,jx("0x64"),((e,t)=>{this._updateController(t)})),this[jx("0x61")](n,jx("0x3e"),((e,n,o)=>{const r=Array[jx("0x20")](o,(e=>e[jx("0x32")]))[jx("0x24")]((e=>this[jx("0x6a")].has(e))),s=[];for(const e of r){const t=this[jx("0x6a")][jx("0x5a")](e).model[jx("0x31")]();s[jx("0x66")](...t[jx("0xc")](((e,t)=>[...e,...t[jx("0x1b")]()]),[]))}t[jx("0x0")]=s})),this[jx("0x61")](r,jx("0x9"),((e,{threadId:n,isFromAdapter:o})=>{if(o||!t[jx("0x3a")](n))return;const r=t[jx("0x33")](n);this[jx("0xd")][jx("0x5a")](r)[jx("0x3d")].focus()}),{priority:"lowest"})}[jx("0x5e")](e){const n=(0,r.createDropdown)(e,r.SplitButtonView),o=this[jx("0x69")].commands[jx("0x5a")](jx("0x5f")),s=Yo(e,jx("0x5"));n.buttonView[jx("0x10")]({tooltip:s,label:s,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[jx("0x1")][jx("0x19")]("isOn").to(o,"value"),n[jx("0x1")].on(jx("0x58"),(()=>{o[jx("0x58")](),this[jx("0x69")][jx("0x2f")].view[jx("0x2b")]()}));const i=new t.Collection,a=[{type:jx("0x48"),model:{withText:!0,label:s,commandName:jx("0x5f")}},{type:jx("0x4")},{type:jx("0x62"),model:{withText:!0,label:Yo(e,jx("0x37")),commandName:jx("0x2c")}},{type:jx("0x62"),model:{withText:!0,label:Yo(e,jx("0x41")),commandName:jx("0x13")}},{type:jx("0x62"),model:{withText:!0,label:Yo(e,jx("0x23")),commandName:jx("0x2")}},{type:jx("0x62"),model:{withText:!0,label:Yo(e,jx("0x52")),commandName:jx("0x67")}}];for(const e of a){const t={type:e[jx("0x59")]};if(e.model){const n=new r.Model(e[jx("0x44")]),o=this[jx("0x69")][jx("0x1e")].get(n.commandName);n[jx("0x19")](jx("0x55"),jx("0x4b")).to(o,jx("0x4e"),"isEnabled"),t[jx("0x44")]=n}i.add(t)}(0,r.addListToDropdown)(n,i);const c=a[jx("0x24")]((e=>null!=e.model))[jx("0x36")]((e=>this[jx("0x69")][jx("0x1e")][jx("0x5a")](e[jx("0x44")].commandName)));return n.buttonView.actionView.unbind("isEnabled"),n[jx("0x1")].arrowView[jx("0x5c")](jx("0x4b")),n[jx("0x1")].actionView[jx("0x19")]("isEnabled").to(o,jx("0x4b")),n[jx("0x1")][jx("0x6d")].bind(jx("0x4b"))[jx("0x63")](c,jx("0x4b"),((...e)=>e[jx("0x21")]((e=>e)))),n.on(jx("0x58"),(e=>{this[jx("0x69")][jx("0x58")](e[jx("0x14")][jx("0x25")]),this.editor[jx("0x2f")].view[jx("0x2b")]()})),n}[jx("0x3b")](e){const t=this[jx("0x69")],n=t[jx("0x26")],o=t[jx("0x51")][jx("0x5a")](jx("0xa")),r=t.plugins[jx("0x5a")]("CommentsRepository"),i=t[jx("0x51")][jx("0x5a")](jx("0x6c")),a=e.getAllAdjacentSuggestions().filter((e=>e.isInContent)),c=t[jx("0x51")][jx("0x5a")](s.Users).me,x=n[jx("0x5a")](jx("0x5f")).SuggestionThreadView,{CommentsListView:l,CommentThreadInputView:u}=t[jx("0x51")][jx("0x5a")](jx("0x1d"));let d,g;this[jx("0x60")][jx("0x3f")](e.id)?(g=this._annotationViews[jx("0x5a")](e.id),d=g[jx("0x34")]):(d=new x(t[jx("0x4a")],e,c,{disableComments:this[jx("0x6")],editorConfig:n[jx("0x5a")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[jx("0x5a")](jx("0x65")),maxThreadTotalWeight:n.get(jx("0x35")),maxCommentCharsWhenCollapsed:n[jx("0x5a")](jx("0x30")),formatDateTime:(0,s.getDateTimeFormatter)(n[jx("0x5a")]("locale")),CommentView:n[jx("0x5a")](jx("0x53"))[jx("0xb")],CommentsListView:l,CommentThreadInputView:u}),d[jx("0x15")].on(jx("0x58"),(()=>{t.editing.view[jx("0x2b")]()})),d[jx("0x39")].on(jx("0x58"),(()=>{t.editing.view[jx("0x2b")]()})),g=o.createAnnotationView(this[jx("0x69")][jx("0x4a")],d),g.bind(jx("0x46")).to(d,"isDirty"),g[jx("0x19")](jx("0x56")).to(d),g[jx("0x19")](jx("0x59")).to(d,jx("0x59"),(e=>jx("0x7")+e)),this[jx("0x60")][jx("0x10")](e.id,g));const m=r[jx("0x22")](e[jx("0x1a")],d),f=new yx(t,e,d,m);d[jx("0x47")]=t.plugins[jx("0x5a")](jx("0x2a"))[jx("0x50")][jx("0x8")](a),this[jx("0xd")][jx("0x10")](e,f),this._viewToController[jx("0x10")](d,f);const h=o.createAnnotation({view:g,target:()=>{const e=a[0].getFirstMarker();if(!e)return null;const n=e.getRange()[jx("0x2e")]();return n&&!t.editing.mapper[jx("0x17")](n)?null:(0,s.getMarkerDomElement)(t.editing,e)||null},type:()=>"suggestion-"+f.view.type});o[jx("0x4d")](h),i[jx("0x1f")](h)}[jx("0x16")](e){const t=this[jx("0x69")][jx("0x51")][jx("0x5a")]("Annotations"),n=this[jx("0xd")][jx("0x5a")](e),o=n[jx("0x3d")],r=t.getByInnerView(o);r&&t[jx("0x4f")](r),this[jx("0xd")].delete(e),this[jx("0x6a")][jx("0x1c")](o),n[jx("0xf")]()}[jx("0x3")](e){if(!e[jx("0x12")]||!this[jx("0xd")][jx("0x3f")](e))return;const t=this.editor[jx("0x51")][jx("0x5a")]("TrackChangesEditing"),n=this[jx("0xd")][jx("0x5a")](e),o=e[jx("0x31")]();n[jx("0x3d")][jx("0x47")]=t[jx("0x50")].getDescriptions(o)}destroy(){for(const e of this[jx("0xd")][jx("0x54")]())this._destroyController(e);for(const e of this[jx("0x60")][jx("0x2d")]())e[jx("0x34")][jx("0xf")]();super[jx("0xf")]()}}var Ux,Vx,Hx=["adapter","pluginName","getSuggestions","editor","Comments","addSuggestionData","getSuggestion","addSuggestion","TrackChanges","get","plugins"];Ux=Hx,Vx=403,function(e){for(;--e;)Ux.push(Ux.shift())}(++Vx);var Gx=function(e,t){return Hx[e-=0]};class zx extends e.Plugin{static get requires(){return[xx,Bx,Gx("0x8")]}static get[Gx("0x5")](){return Gx("0x1")}set[Gx("0x4")](e){this.editor[Gx("0x3")][Gx("0x2")](xx).adapter=e}get[Gx("0x4")](){return this[Gx("0x7")][Gx("0x3")][Gx("0x2")](xx)[Gx("0x4")]}[Gx("0x0")](e){return this[Gx("0x7")][Gx("0x3")].get(xx)[Gx("0x9")](e)}[Gx("0x6")](e){return this[Gx("0x7")][Gx("0x3")].get(xx)[Gx("0x6")](e)}[Gx("0xa")](e){return this[Gx("0x7")].plugins[Gx("0x2")](xx).getSuggestion(e)}}const Wx=["getDataWithDiscardedSuggestions","destroy","string","CommentsRepository","document","getUser","RealTimeCollaborativeComments","every","plugins","find","TrackChangesEditing","includes","execute","model","RealTimeCollaborativeRevisionHistory","useAnonymousUser","map","name","WordCount","pluginName","editor","toolbar","TrackChangesData","filter","initialData","set","users","getSuggestions","requires","extraPlugins","trackChangesData","RealTimeCollaborativeEditing","div","context","trackChangesData.editorCreator","push","init","discardAllSuggestions","constructor","data","function","end","createElement","editorCreator","reduce","get","result","createDocumentFragment","define","addSuggestionData","config","addUser","concat","getRootNames","TrackChangesDataGetter","_adapter","getDataWithAcceptedSuggestions"];var Kx,qx;Kx=Wx,qx=102,function(e){for(;--e;)Kx.push(Kx.shift())}(++qx);const Zx=function(e,t){return Wx[e-=0]},Xx=[Zx("0x24"),Zx("0x2d"),Zx("0x21")],$x=[Zx("0x2b"),Zx("0x12"),"RealTimeCollaborativeTrackChanges",Zx("0x1a"),"Autosave",Zx("0x1e")];class Jx extends e.Plugin{static get[Zx("0x28")](){return[xx]}static get[Zx("0x1f")](){return Zx("0x22")}init(){const e=this[Zx("0x20")];if(e.config[Zx("0x3")](Zx("0x2e"),(t=>e[Zx("0x32")].create("",t))),Zx("0x34")!=typeof e.config[Zx("0x0")](Zx("0x2a"))[Zx("0x37")])throw new t.CKEditorError("track-changes-data-invalid-editor-creator")}[Zx("0xb")](e){return Yx(this.editor,!0,e)}[Zx("0xc")](e){return Yx(this[Zx("0x20")],!1,e)}}class Qx extends e.Plugin{static get[Zx("0x1f")](){return Zx("0x9")}[Zx("0x30")](){this[Zx("0x1")]=Zx("0x35"),this.editor[Zx("0x14")][Zx("0x0")](Zx("0xf"))._adapter={getCommentThread:()=>new Promise((()=>{}))},this.editor[Zx("0x14")].get("TrackChangesEditing")[Zx("0xa")]=null}}async function Yx(e,t,n){const o=function(e){const t={};for(const n of e[Zx("0x5")].names())Xx[Zx("0x17")](n)||(t[n]=e[Zx("0x5")].get(n));const n=e[Zx("0x32")].builtinPlugins||[],o=t.extraPlugins||[];delete t[Zx("0x29")];const r=n[Zx("0x7")](t[Zx("0x14")])[Zx("0x7")](o)[Zx("0x1c")]((e=>Zx("0xe")==typeof e?n[Zx("0x15")]((t=>t[Zx("0x1f")]==e)):e)),s=Array.from(new Set(r));return t[Zx("0x14")]=s[Zx("0x23")]((e=>el(e,new Set))),t[Zx("0x14")].push(Qx),t[Zx("0x14")][Zx("0x2f")](xx),t}(e),r=document[Zx("0x2")](),s=e.config.get(Zx("0x2a"))[Zx("0x37")],i=await s(o,(()=>function(e){const t=document[Zx("0x36")](Zx("0x2c"));return e.appendChild(t),t}(r)));!function(e,t){const n=e[Zx("0x19")][Zx("0x10")][Zx("0x8")]()[Zx("0x38")](((t,n)=>(t[n]=e[Zx("0x33")][Zx("0x0")]({rootName:n}),t)),{}),o=e[Zx("0x14")].get("Users")[Zx("0x26")].map((e=>({id:e.id}))),r=e[Zx("0x14")][Zx("0x0")](Zx("0x16"))[Zx("0x27")]({skipNotAttached:!0,toJSON:!0}),s=t[Zx("0x14")][Zx("0x0")]("Users"),i=t[Zx("0x14")][Zx("0x0")]("TrackChangesEditing");for(const e of o)s[Zx("0x11")](e.id)||s[Zx("0x6")](e);s.me||s[Zx("0x1b")]();for(const e of r)i[Zx("0x4")](e);t.data[Zx("0x25")](n)}(e,i),i[Zx("0x18")](t?"acceptAllSuggestions":Zx("0x31"));const a=i.data.get(n);return await i[Zx("0xd")](),a}function el(e,t){if(t.has(e))return!0;t.add(e);const n=Zx("0x34")==typeof e?e[Zx("0x1f")]||e[Zx("0x1d")]:e;return(!n||!$x.includes(n))&&(!e[Zx("0x28")]||e[Zx("0x28")][Zx("0x13")]((e=>el(e,t))))}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|