@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231115.0 → 0.0.0-nightly-20231117.0
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 +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +3 -3
- package/lang/translations/ar.po +19 -19
- package/lang/translations/bg.po +19 -19
- package/lang/translations/bn.po +19 -19
- package/lang/translations/ca.po +19 -19
- package/lang/translations/cs.po +19 -19
- package/lang/translations/da.po +19 -19
- package/lang/translations/de.po +19 -19
- package/lang/translations/el.po +19 -19
- package/lang/translations/es.po +19 -19
- package/lang/translations/et.po +19 -19
- package/lang/translations/fi.po +19 -19
- package/lang/translations/fr.po +19 -19
- package/lang/translations/he.po +19 -19
- package/lang/translations/hi.po +19 -19
- package/lang/translations/hu.po +19 -19
- package/lang/translations/id.po +19 -19
- package/lang/translations/it.po +19 -19
- package/lang/translations/ja.po +19 -19
- package/lang/translations/ko.po +19 -19
- package/lang/translations/lt.po +19 -19
- package/lang/translations/lv.po +19 -19
- package/lang/translations/ms.po +19 -19
- package/lang/translations/nl.po +19 -19
- package/lang/translations/no.po +19 -19
- package/lang/translations/pl.po +19 -19
- package/lang/translations/pt-br.po +19 -19
- package/lang/translations/pt.po +19 -19
- package/lang/translations/ro.po +19 -19
- package/lang/translations/ru.po +19 -19
- package/lang/translations/sk.po +19 -19
- package/lang/translations/sr.po +19 -19
- package/lang/translations/sv.po +19 -19
- package/lang/translations/th.po +19 -19
- package/lang/translations/tr.po +19 -19
- package/lang/translations/uk.po +19 -19
- package/lang/translations/vi.po +19 -19
- package/lang/translations/zh-cn.po +19 -19
- package/lang/translations/zh.po +19 -19
- package/package.json +3 -3
- 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/index.d.ts +1 -1
- package/src/integrations/aiassistant.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/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.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/imagereplace.js +1 -1
- package/src/integrations/imagestyle.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/listproperties.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.d.ts +0 -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/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.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.d.ts +7 -4
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +0 -67
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +22 -19
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +14 -23
- 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.d.ts +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/track-changes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:*
|
|
1
|
+
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %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 format to:* %0":"*Set format to:* %0","*Set format:* %0":"*Set format:* %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_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DEFAULT:"bulleted list (default)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",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_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_DEFAULT:"numbered list (default)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",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_OF_CONTENTS:["table of contents","%0 tables of contents"],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",ENTER_DELETION_SUGGESTION_ANNOUNCEMENT:"Entering deletion suggestion.",ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Entering formatting suggestion.",ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT:"Entering insertion suggestion.",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_ALIGNMENT:"alignment",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_FONT_BACKGROUND:"font background color",FORMAT_FONT_COLOR:"font color",FORMAT_FONT_FAMILY:"font family",FORMAT_FONT_SIZE:"font size",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_INDENT:"indent",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_LIST_REVERSED:"list reversed",FORMAT_LIST_START:"list start",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_STYLE:"style",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT:"Leaving deletion suggestion.",LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Leaving formatting suggestion.",LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT:"Leaving insertion suggestion.",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>bc,TrackChanges:()=>Fc,TrackChangesData:()=>Gc,TrackChangesEditing:()=>Za});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["forceDisabled","clearForceDisabled","_enabledCommands","affectsData","refresh","has","_isEnabledBasedOnSelection","execute","editor","_disableUnsupportedCommands","value","TrackChangesCommand","_enableCommands","commands"];var c,l;c=a,l=374,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x0")]=!1,this[u("0x8")](),this[u("0xa")]=!1}[u("0x8")](){this.isEnabled=!0}[u("0xb")](){this[u("0x0")]=!this[u("0x0")],this[u("0x0")]?this._disableUnsupportedCommands():this[u("0x2")]()}[u("0xd")](){for(const t of this[u("0xc")][u("0x3")][u("0x3")]())t[u("0x7")]&&!this[u("0x6")][u("0x9")](t)&&t[u("0x4")]("TrackChangesCommand")}[u("0x2")](){for(const t of this[u("0xc")][u("0x3")][u("0x3")]())t[u("0x7")]&&!this[u("0x6")].has(t)&&t[u("0x5")](u("0x1"))}}const g=["acceptSuggestion","model","getRanges","get","isEnabled","track-changes-accept-suggestion-not-found","_isEnabledBasedOnSelection","canEditAt","refresh","editor","plugins"];var f,m;f=g,m=396,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x8")](),this[h("0x6")]=!1}refresh(){this[h("0x4")]=!0}execute(t){const n=this._suggestions[h("0x3")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n[h("0x2")]();this[h("0x9")][h("0x1")][h("0x7")](o)&&this[h("0x9")][h("0xa")][h("0x3")]("TrackChangesEditing")[h("0x0")](n)}}const b=["refresh","_isEnabledBasedOnSelection","isEnabled","track-changes-discard-suggestion-not-found","getRanges","plugins","_suggestions","model","editor","get","execute"];var E,_;E=b,_=116,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x5")](),this[T("0x6")]=!1}[T("0x5")](){this[T("0x7")]=!0}[T("0x4")](t){const n=this[T("0x0")][T("0x3")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n[T("0x9")]();this.editor[T("0x1")].canEditAt(o)&&this[T("0x2")][T("0xa")][T("0x3")]("TrackChangesEditing").discardSuggestion(n)}}const C=["createRange","end","createPositionAt","deletion","add","isCollapsed","replace","type","isInContent","schema","splice","getRanges","isArray","push","isObject","length","color","sort","change","createPositionAfter","from","createPositionBefore"," [color ","next","join","value","isIntersecting","isMultiRange"];var A,k;A=C,k=180,function(t){for(;--t;)A.push(A.shift())}(++k);const R=function(t,e){return C[t-=0]};function I(t){return t[R("0x5")](((t,e)=>"deletion"==t[R("0x17")]&&R("0x13")!=e[R("0x17")]?-1:R("0x13")!=t[R("0x17")]&&"deletion"==e.type?1:0))}function S(t,e){let n,o=0;const i=[],r=e[R("0x19")];for(;o<t[R("0x3")];){const s=t[o],x=t[o+1];n||(n=e.createPositionBefore(s)),N(e,s,x)||(i[R("0x1")](e[R("0x10")](n,r[R("0x2")](s)?e[R("0x7")](s):e[R("0x12")](s,R("0x11")))),n=null),o++}return i}function N(t,e,n){if(!n)return!1;const o=t[R("0x7")](e),i=t[R("0x9")](n);return o.isTouching(i)}function v(t,e,n){for(;n[R("0x3")];){const o=n[R("0x1a")](0,100);t[R("0x6")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const L=["model","isEnabled","editor","some","refresh","values","from","_suggestions","canEditAt","getRanges","_isEnabledBasedOnSelection","isInContent","execute"];var M,O;M=L,O=319,function(t){for(;--t;)M.push(M.shift())}(++O);const w=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[w("0x0")]=n,this[w("0xa")](),this[w("0x3")]=!1}refresh(){const t=Array[w("0xc")](this[w("0x0")][w("0xb")]())[w("0x9")]((t=>t[w("0x4")]));this[w("0x7")]=this._command.isEnabled&&t}[w("0x5")](){const t=I(Array.from(this[w("0x0")][w("0xb")]()));for(const e of t){const t=e[w("0x2")]();if(!this[w("0x8")][w("0x6")][w("0x1")](t))return}v(this.editor.model,this._command,t)}}const D=["isEnabled","document","getRanges","refresh","_command","model","editor","_selectedSuggestions","canEditAt","execute","values","size","from","_suggestions","_isEnabledBasedOnSelection"];var B,P;B=D,P=380,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this[U("0x8")]=n,this[U("0x2")]=new Set,this[U("0xd")](),this[U("0x9")]=!1}[U("0xd")](){const t=this.editor[U("0x0")][U("0xb")].selection,e=Array[U("0x7")](this[U("0x8")][U("0x5")]());this._selectedSuggestions=function(t,e){const n=Array[R("0x8")](t[R("0x1b")]()),o=new Set;for(const i of e)if(i[R("0x18")])for(const e of n)for(const n of i[R("0x1b")]())(e[R("0xe")](n)||t[R("0x15")]&&!i[R("0xf")]&&i[R("0xb")]&&n[R("0x11")].isTouching(e.start))&&o[R("0x14")](i);return o}(t,e),this[U("0xa")]=this[U("0xe")].isEnabled&&!!this[U("0x2")][U("0x6")]}[U("0x4")](){const t=I(Array[U("0x7")](this[U("0x2")]));for(const e of t){const t=e[U("0xc")]();if(!this[U("0x1")][U("0x0")][U("0x3")](t))return}v(this[U("0x1")][U("0x0")],this[U("0xe")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=V(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]};const q=function(t){return V(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=V(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Y=$;const Z=function(){this.__data__=new Y,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,Rt=At.hasOwnProperty,It=RegExp("^"+kt.call(Rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?It:yt).test(Tt(t))};const Nt=function(t,e){return null==t?void 0:t[e]};const vt=function(t,e){var n=Nt(t,e);return St(n)?n:void 0};const Lt=vt(ot,"Map");const Mt=vt(Object,"create");const Ot=function(){this.__data__=Mt?Mt(null):{},this.size=0};const wt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=Ot,jt.prototype.delete=wt,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Y),string:new Gt}};const Vt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Yt=$t;const Zt=function(t,e){var n=this.__data__;if(n instanceof Y){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Yt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Y(t);this.size=e.size}Jt.prototype.clear=Z,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Zt;const Qt=Jt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=vt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Re=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Re&&Re.exports===ke&&et.process;const Se=function(){try{var t=Re&&Re.require&&Re.require("util").types;return t||Ie&&Ie.binding&&Ie.binding("util")}catch(t){}}();var Ne=Se&&Se.isTypedArray;const ve=Ne?Ae(Ne):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&ve(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Oe=Object.prototype;const we=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Oe)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!we(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ve=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return He(t);var e=we(t),n=[];for(var o in t)("constructor"!=o||!e&&Ve.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ye=$e?$e.allocUnsafe:void 0;const Ze=function(t,e){if(e)return t.slice();var n=t.length,o=Ye?Ye(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=vt(ot,"DataView");const fn=vt(ot,"Promise");const mn=vt(ot,"Set");const hn=vt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),Rn=Tt(hn),In=gt;(gn&&In(new gn(new ArrayBuffer(1)))!=Tn||Lt&&In(new Lt)!=pn||fn&&In(fn.resolve())!=bn||mn&&In(new mn)!=En||hn&&In(new hn)!=_n)&&(In=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case Rn:return _n}return e});const Sn=In;var Nn=Object.prototype.hasOwnProperty;const vn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Nn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const On=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var wn=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,wn.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return On(t,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 Un(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Vn=function(t){return"function"!=typeof t.constructor||we(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Yn="[object Arguments]",Zn="[object Function]",Jn="[object Object]",Qn={};Qn[Yn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Zn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=vn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Zn||"[object GeneratorFunction]"==d;if(be(e))return Ze(e,a);if(d==Jn||d==Yn||g&&!r){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,io=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Yt),n}so.Cache=Yt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Yt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Ro=function(t,e){return t.has(e)};const Io=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Ro(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const No=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vo=it?it.prototype:void 0,Lo=vo?vo.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=No),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=Io(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var Oo=Object.prototype.hasOwnProperty;const wo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Oo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||ve(t)?Io(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Qt),wo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Vo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["reduce","removeAttribute","accept","getContainedElement","end","getMultiRangeId","_onDiscard","isInContent","add","length","decorate","next","removeMarkers","filter","type","split","getMarkers","toJSON","previous","change","substr","discard","start","_onAttributesChange","removeMarker","creator","onAttributesChange","_onAccept","getFirstRange","commentThread","attributes","clear","addRange","from","createdAt","head","isIntersectingWithRange","set","data","push","nodeAfter","map","hasComments","isIntersecting","author","@external","_model","onAccept","_markerNames","nodeBefore","addMarkerName","getRange","get","getRanges","onDiscard","getFirstMarker","getMarkerNames","isMultiRange","setAttribute","delete","subType","getItems"];var $o,Yo;$o=Xo,Yo=314,function(t){for(;--t;)$o.push($o.shift())}(++Yo);const Zo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Zo("0xa")]=e.type,this.subType=e[Zo("0x38")]||null,this[Zo("0x28")]=e[Zo("0x28")],this[Zo("0x15")]=e[Zo("0x15")]||e[Zo("0x28")],this.isExternal=Boolean(e[Zo("0x1a")]&&e[Zo("0x1a")][Zo("0x29")]),this[Zo("0x22")]=null,this[Zo("0x2a")]=t,this[Zo("0x17")]=e[Zo("0x2b")],this[Zo("0x2")]=e[Zo("0x32")],this._onAttributesChange=e[Zo("0x16")],this._markerNames=new Set,this[Zo("0x1e")]=null,this[Zo("0x21")]("authoredAt",null),this[Zo("0x21")](Zo("0x1a"),e[Zo("0x1a")]||{}),this[Zo("0x21")](Zo("0xe"),null),this[Zo("0x21")]("next",null),this.set("commentThread",null),this.set("_saved",!1),this.decorate("accept"),this[Zo("0x6")](Zo("0x11"))}get head(){let t=this;for(;t[Zo("0xe")];)t=t.previous;return t}get[Zo("0x26")](){return!!this[Zo("0x19")]&&this.commentThread[Zo("0x5")]>0}get[Zo("0x35")](){return 0!=this._markerNames.size&&6==Array[Zo("0x1d")](this[Zo("0x2c")])[0][Zo("0xb")](":")[Zo("0x5")]}get[Zo("0x3")](){return null!==this[Zo("0x33")]()}[Zo("0x2e")](t){this[Zo("0x2c")][Zo("0x4")](t)}getMarkerNames(){return Array[Zo("0x1d")](this[Zo("0x2c")])}[Zo("0xc")](){return this[Zo("0x34")]()[Zo("0x25")]((t=>this[Zo("0x2a")].markers[Zo("0x30")](t)))[Zo("0x9")]((t=>t))}[Zo("0x33")](){return this.getMarkers()[0]||null}removeMarkers(){this[Zo("0x2a")].change((t=>{for(const e of this[Zo("0xc")]())t[Zo("0x14")](e)})),this[Zo("0x2c")][Zo("0x1b")]()}[Zo("0x14")](t){this[Zo("0x2a")].change((e=>{e[Zo("0x14")](t)})),this._markerNames[Zo("0x37")](t)}[Zo("0x1c")](t){const e="suggestion:"+this.type+":"+this[Zo("0x38")]+":"+this.id+":"+this.creator.id+":"+Jo[Zo("0x1")]();this[Zo("0x2e")](e),this[Zo("0x2a")][Zo("0xf")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zo("0x20")](t){for(const e of this[Zo("0x31")]())if(e[Zo("0x27")](t))return!0;return!1}[Zo("0x31")](){return this.getMarkers()[Zo("0x25")]((t=>t[Zo("0x2f")]()))}[Zo("0x39")](){return this[Zo("0x31")]()[Zo("0x3a")](((t,e)=>[...t,...e.getItems()]),[])}[Zo("0x18")](){var t;return(null===(t=this[Zo("0x33")]())||void 0===t?void 0:t[Zo("0x2f")]())||null}[Zo("0x3d")](){const t=this[Zo("0x31")]();if(1!=t.length)return null;const e=t[0],n=e[Zo("0x12")][Zo("0x24")],o=e[Zo("0x0")][Zo("0x2d")];return n instanceof s.Element?n!=o?null:n:null}[Zo("0x3c")](){this[Zo("0x17")](this.getRanges(),this[Zo("0x22")],this[Zo("0x1a")]),this[Zo("0x8")]()}discard(){this._onDiscard(this[Zo("0x31")](),this[Zo("0x22")],this[Zo("0x1a")]),this[Zo("0x8")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Zo("0x1f")];for(;e;)t[Zo("0x23")](e),e=e[Zo("0x7")];return t}[Zo("0x36")](t,e){const n=eo(this[Zo("0x1a")]);_o(n,t,e),Go(n,this[Zo("0x1a")])||(this[Zo("0x1a")]=n,this[Zo("0x13")](n))}[Zo("0x3b")](t){const e=eo(this[Zo("0x1a")]);qo(e,t),Go(e,this[Zo("0x1a")])||(this.attributes=e,this._onAttributesChange(this[Zo("0x1a")]))}[Zo("0xd")](){return{id:this.id,type:this[Zo("0x38")]?this[Zo("0xa")]+":"+this.subType:this[Zo("0xa")],authorId:this[Zo("0x15")].id,createdAt:this[Zo("0x1e")],hasComments:this.hasComments,data:this[Zo("0x22")],attributes:this.attributes}}static[Zo("0x1")](){return(0,e.uid)()[Zo("0x10")](1,5)}}function Qo(t,e,n){const o=t.t;switch(e){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:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");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"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %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 format to:* %0":return o("*Set format to:* %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 format:* %0":return o("*Set format:* %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_BULLETED_LIST_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_WIDTH":return o({string:"image size",id:"FORMAT_IMAGE_WIDTH"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["matchingCallback","indexOf","Container","deletion","element","*Split:* %0","removeFormat","insertion","normal","_handleCustomCallbackDescription","replace","get","_itemLabelsCallbacks","getWalker","_handleInsertRemoveSuggestionDescription","nextSibling","function","remove","isObject","newValue","*Insert:* %0","checkChild","_resolveDescriptionItems","text","*Set format:* %0","data","format","attribute","Object","ELEMENT_SPACE","has","addFormat","_customCallbacks","key","subType","EmptyContainer","addObject","addContainer","length","_locale","registerAttributeLabel","match","_attributeLabels","nodeAfter","getItemLabel","REPLACE_TEXT","*Remove:* %0","join","_schema","$1 $2","type","isEqual","set","elementEnd","name","$text","quantity","getDescriptions","registerElementLabel","_addDescriptionItems","registerDescriptionCallback","pop","label","*Merge:* %0","isEmpty","_handleAttributeSuggestionDescription","$textProxy","getFirstRange","isInContent","item","push","add","previousSibling","_itemLabels"];var ei,ni;ei=ti,ni=390,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this[oi("0xc")]=[],this._itemLabels=new Map,this[oi("0x42")]=[],this._attributeLabels=new Map,this[oi("0x1c")]=t,this._locale=e}[oi("0x25")](t){const e=this[oi("0x13")],n=[],o=new Set,i=new Set;for(let r=0;r<t[oi("0x12")];r++){const s=t[r];if(!s[oi("0x30")])continue;const x=this[oi("0x3f")](s);if(x){if(null!=s[oi("0xe")]){if(o[oi("0xa")](s[oi("0xe")]))continue;o.add(s[oi("0xe")])}n.push(x)}else if(oi("0x7")!=s[oi("0x1e")])oi("0x3d")!=s[oi("0x1e")]&&"deletion"!=s.type||this[oi("0x44")](n,s,t[r+1]);else{if(i[oi("0xa")](s[oi("0x5")][oi("0xd")]))continue;if(i[oi("0x33")](s.data[oi("0xd")]),s.data[oi("0xd")]==Ya){n[oi("0x32")]({type:oi("0x6"),content:Qo(e,"*Change to:* %0",this.getItemLabel(s[oi("0x2f")]().start[oi("0x17")],1))});continue}this._handleAttributeSuggestionDescription(n,s)}}return this[oi("0x2")](n)}[oi("0x28")](t){this[oi("0xc")][oi("0x32")](t)}[oi("0x26")](t,n,o=e.priorities[oi("0x3e")]){oi("0x46")==typeof t?(0,e.insertToPriorityArray)(this[oi("0x42")],{matchingCallback:t,label:n,priority:o}):this[oi("0x35")][oi("0x20")](t,n)}[oi("0x14")](t,e){this[oi("0x16")][oi("0x20")](t,e)}getItemLabel(t,e=1){let n;for(const e of this[oi("0x42")])if(e[oi("0x36")](t)){n=e[oi("0x2a")];break}return n||(n=this[oi("0x35")].get(t[oi("0x22")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[oi("0x22")]}[oi("0x27")](t,e){const n=e.getFirstRange()[oi("0x43")](),o=oi("0x3d")==e[oi("0x1e")]?"add":oi("0x47");for(const e of n){const i=e[oi("0x31")],r=t[t.length-1];if(i.is(oi("0x2e")))r&&r[oi("0x1e")][oi("0x37")]("Container")>-1&&t[oi("0x29")](),r&&oi("0x3")==r.type?r[o]+=i[oi("0x5")]:t.push({type:oi("0x3"),add:"add"==o?i[oi("0x5")]:"",remove:oi("0x47")==o?i[oi("0x5")]:""});else if(this[oi("0x1c")].isObject(i)){const s=i;if(r&&r[oi("0x1e")][oi("0x37")](oi("0x38"))>-1&&t.pop(),oi("0x21")==e.type)continue;r&&r.type==o+oi("0x8")&&r[oi("0x3a")][oi("0x22")]==s.name?r[oi("0x24")]++:t.push({type:o+oi("0x8"),element:s,quantity:1}),n.skip((t=>!(oi("0x21")==t[oi("0x1e")]&&t[oi("0x31")]==i)))}else if(this[oi("0x1c")][oi("0x1")](i,oi("0x23"))||i.is("element","softBreak")){const n=i;if(oi("0x33")==o&&"elementStart"==e.type||oi("0x47")==o&&"elementEnd"==e[oi("0x1e")])continue;if(r&&-1==r[oi("0x1e")][oi("0x37")](oi("0x38"))){oi("0x3")==r[oi("0x1e")]&&(r[o]+="\n");continue}let s;if(s=oi("0x33")==o?n.nextSibling&&!this[oi("0x1c")][oi("0x48")](n[oi("0x45")])?n.nextSibling:null:n[oi("0x34")]&&!this[oi("0x1c")][oi("0x48")](n[oi("0x34")])?n.previousSibling:null,n.isEmpty||s&&s[oi("0x2c")]){const e=s&&s[oi("0x2c")]?s:n;r&&r.type==o+oi("0xf")&&r[oi("0x3a")].name==e[oi("0x22")]?r[oi("0x24")]++:t[oi("0x32")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[oi("0x32")]({type:o+oi("0x38"),element:n})}}}_resolveDescriptionItems(t){const e=this[oi("0x13")],n=[],o=[],i=[];for(const r of t)switch(r.type){case oi("0x3"):if(r[oi("0x33")]=r.add.replace(/(\S)\u000A+(\S)/g,oi("0x1d"))[oi("0x40")](/\u000A/g,""),r[oi("0x47")]=r.remove[oi("0x40")](/(\S)\u000A+(\S)/g,oi("0x1d"))[oi("0x40")](/\u000A/g,""),""!=r[oi("0x33")]&&""!=r[oi("0x47")]){n[oi("0x32")]({type:oi("0x40"),content:Qo(e,oi("0x19"),['"'+r[oi("0x47")]+'"','"'+r.add+'"'])});continue}if(null!=r[oi("0x33")][oi("0x15")](/^ +$/)){n[oi("0x32")]({type:oi("0x3d"),content:Qo(e,oi("0x0"),Qo(e,oi("0x9"),r[oi("0x33")].length))});continue}if(null!=r[oi("0x47")][oi("0x15")](/^ +$/)){n[oi("0x32")]({type:oi("0x39"),content:Qo(e,oi("0x1a"),Qo(e,oi("0x9"),r[oi("0x47")][oi("0x12")]))});continue}if(""!=r[oi("0x33")]){n[oi("0x32")]({type:oi("0x3d"),content:Qo(e,oi("0x0"),'"'+r[oi("0x33")]+'"')});continue}n[oi("0x32")]({type:"deletion",content:Qo(e,oi("0x1a"),'"'+r[oi("0x47")]+'"')});continue;case"addEmptyContainer":case oi("0x10"):n[oi("0x32")]({type:oi("0x3d"),content:Qo(e,oi("0x0"),this[oi("0x18")](r[oi("0x3a")],r[oi("0x24")]))});continue;case"removeEmptyContainer":case"removeObject":n.push({type:"deletion",content:Qo(e,"*Remove:* %0",this.getItemLabel(r[oi("0x3a")],r[oi("0x24")]))});continue;case oi("0x11"):n[oi("0x32")]({type:oi("0x3d"),content:Qo(e,oi("0x3b"),this.getItemLabel(r[oi("0x3a")],r[oi("0x24")]))});continue;case"removeContainer":n[oi("0x32")]({type:oi("0x39"),content:Qo(e,oi("0x2b"),this.getItemLabel(r[oi("0x3a")],r[oi("0x24")]))});continue;case oi("0xb"):o[oi("0x32")](r[oi("0xd")]);continue;case"removeFormat":i[oi("0x32")](r[oi("0xd")]);continue;default:n[oi("0x32")](r)}if(o[oi("0x12")]){const t=o.map((t=>this[oi("0x16")][oi("0xa")](t)?this[oi("0x16")][oi("0x41")](t):t)).join(", ");n[oi("0x32")]({type:oi("0x6"),content:Qo(this._locale,oi("0x4"),t)})}if(i[oi("0x12")]){const t=i.map((t=>this._attributeLabels.has(t)?this._attributeLabels[oi("0x41")](t):t))[oi("0x1b")](", ");n[oi("0x32")]({type:oi("0x6"),content:Qo(this._locale,"*Remove format:* %0",t)})}return n}[oi("0x3f")](t){for(const e of this[oi("0xc")]){const n=e(t);if(n&&oi("0x1e")in n)return n}}[oi("0x2d")](t,e){const n=e.data,o=void 0===n[oi("0x49")]?oi("0x3c"):oi("0xb");t.push({type:o,key:n.key})}[oi("0x44")](t,e,n){if(this._addDescriptionItems(t,e),n&&n[oi("0x2f")]()&&!e[oi("0x2f")]().end[oi("0x1f")](n[oi("0x2f")]().start)){const n=t[t[oi("0x12")]-1],o=oi("0x3d")==e.type?oi("0x33"):oi("0x47");n&&oi("0x3")==n.type&&(n[o]+="\n")}}}const ri=["enableCommand","editor","commands","get","TrackChangesEditing","showAIAssistant"];var si,xi;si=ri,xi=267,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{afterInit(){const t=this[ai("0x4")],e=t.plugins[ai("0x0")](ai("0x1"));t[ai("0x5")][ai("0x0")](ai("0x2"))&&e[ai("0x3")]("showAIAssistant")}}const li=["format","AlignmentEditing","alignment","plugins","right","registerDescriptionCallback","FORMAT_ALIGNMENT","center","editor","TrackChangesEditing","_registerLegacyDescription","FORMAT_JUSTIFY_TEXT","has","*Format:* %0","locale","type","commandName","commandParams","formatBlock","enableDefaultIntegration","registerAttributeLabel","FORMAT_ALIGN_TO_CENTER","get","FORMAT_ALIGN_TO_LEFT","FORMAT_ALIGN_TO_RIGHT","value"];var ui,di;ui=li,di=158,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{afterInit(){const t=this[gi("0x6")],e=t[gi("0xc")];if(!t[gi("0x1")][gi("0xa")](gi("0x19")))return;const n=t[gi("0x1")].get(gi("0x7"));n[gi("0x11")](gi("0x0"),[],[gi("0x0")]),n._descriptionFactory[gi("0x12")](gi("0x0"),Qo(e,gi("0x4"))),this[gi("0x8")]()}[gi("0x8")](){const t=this[gi("0x6")],e=t[gi("0xc")];t[gi("0x1")][gi("0x14")](gi("0x7"))._descriptionFactory[gi("0x3")]((t=>{if(gi("0x10")!=t[gi("0xd")])return;const{data:n}=t;if(n&&"alignment"==n[gi("0xe")]){const t=n[gi("0xf")][0][gi("0x17")];return{type:gi("0x18"),content:Qo(e,gi("0xb"),function(t){switch(t){case"left":return Qo(e,gi("0x15"));case gi("0x2"):return Qo(e,gi("0x16"));case gi("0x5"):return Qo(e,gi("0x13"));case"justify":return Qo(e,gi("0x9"))}}(t))}}}))}}const mi=["subscript","_registerLegacyDescription","slice","get","italic","type","*Format:* %0","TrackChangesEditing","FORMAT_CODE","CodeEditing","bold","plugins","BoldEditing","forceValue","_descriptionFactory","FORMAT_STRIKETHROUGH","*Remove format:* %0","locale","FORMAT_SUBSCRIPT","FORMAT_UNDERLINE","UnderlineEditing","code","SuperscriptEditing","commandParams","FORMAT_BOLD","FORMAT_SUPERSCRIPT","FORMAT_ITALIC","SubscriptEditing","registerAttributeLabel","superscript","editor","format","commandName","underline","toLowerCase","has","strikethrough","afterInit"];var hi,pi;hi=mi,pi=313,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=[bi("0x3"),"ItalicEditing",bi("0xb"),bi("0x0"),"StrikethroughEditing",bi("0x12"),bi("0xd")];class _i extends t.Plugin{[bi("0x1c")](){const t=this[bi("0x15")],e=t[bi("0x2")][bi("0x20")](bi("0x24")),n=t[bi("0x8")];for(const n of Ei){if(!t[bi("0x2")][bi("0x1a")](n))continue;const o=n[bi("0x1f")](0,-7)[bi("0x19")]();e.enableDefaultIntegration(o,[o])}e[bi("0x5")][bi("0x13")](bi("0x1"),Qo(n,bi("0xf"))),e[bi("0x5")][bi("0x13")](bi("0x21"),Qo(n,bi("0x11"))),e[bi("0x5")][bi("0x13")](bi("0x18"),Qo(n,bi("0xa"))),e[bi("0x5")][bi("0x13")]("code",Qo(n,"FORMAT_CODE")),e._descriptionFactory[bi("0x13")](bi("0x1b"),Qo(n,"FORMAT_STRIKETHROUGH")),e[bi("0x5")][bi("0x13")](bi("0x1d"),Qo(n,bi("0x9"))),e[bi("0x5")].registerAttributeLabel(bi("0x14"),Qo(n,bi("0x10"))),this[bi("0x1e")]()}[bi("0x1e")](){const t=this.editor,e=t[bi("0x8")],n=t[bi("0x2")][bi("0x20")]("TrackChangesEditing");function o(t,o){n[bi("0x5")].registerDescriptionCallback((n=>{if("formatInline"!=n[bi("0x22")])return;const{data:i}=n;return i&&i[bi("0x17")]===t?i[bi("0xe")][0][bi("0x4")]?{type:bi("0x16"),content:Qo(e,bi("0x23"),o)}:{type:bi("0x16"),content:Qo(e,bi("0x7"),o)}:void 0}))}o(bi("0x1"),Qo(e,bi("0xf"))),o(bi("0x21"),Qo(e,"FORMAT_ITALIC")),o(bi("0x18"),Qo(e,bi("0xa"))),o(bi("0xc"),Qo(e,bi("0x25"))),o(bi("0x1b"),Qo(e,bi("0x6"))),o(bi("0x1d"),Qo(e,bi("0x9"))),o(bi("0x14"),Qo(e,bi("0x10")))}}const Ti=["markBlockFormat","ELEMENT_BLOCK_QUOTE","plugins","$root","enableCommand","change","parent","afterInit","from","filter","editor","registerDescriptionCallback","schema","forceValue","document","_descriptionFactory","locale","BlockQuoteEditing","TrackChangesEditing","has","*Remove format:* %0","model","name","get","commands","*Set format:* %0","getSelectedBlocks","blockQuote","checkChild","format","commandParams"];var yi,Ci;yi=Ti,Ci=235,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{[Ai("0x14")](){const t=this[Ai("0x17")],e=t[Ai("0x1d")];if(!t[Ai("0xf")][Ai("0x1")](Ai("0x1e")))return;const n=t.plugins[Ai("0x5")](Ai("0x0")),o=this[Ai("0x17")][Ai("0x6")][Ai("0x5")](Ai("0x9"));n[Ai("0x11")](Ai("0x9"),((e,i={})=>{const r=this[Ai("0x17")][Ai("0x3")][Ai("0x1b")].selection,s=i&&void 0!==i[Ai("0x1a")]?i[Ai("0x1a")]:!o.value;let x=[];if(s){const e=Array.from(r[Ai("0x8")]()).filter((t=>Ri(t)||function(t,e){const n=e[Ai("0xa")](t.parent,Ai("0x9")),o=e[Ai("0xa")]([Ai("0x10"),"blockQuote"],t);return n&&o}(t,this[Ai("0x17")][Ai("0x3")][Ai("0x19")])));x=S(e,t[Ai("0x3")])}else{const e=Array[Ai("0x15")](r[Ai("0x8")]())[Ai("0x16")]((t=>Ri(t)));x=S(e,t[Ai("0x3")])}t[Ai("0x3")][Ai("0x12")]((()=>{for(const t of x)n[Ai("0xd")](t,{commandName:Ai("0x9"),commandParams:[{forceValue:s}]})}))})),n[Ai("0x1c")][Ai("0x18")]((t=>{const{data:n}=t;if(n&&Ai("0x9")==n.commandName){const t=Qo(e,Ai("0xe"));return n[Ai("0xc")][0].forceValue?{type:Ai("0xb"),content:Qo(e,Ai("0x7"),t)}:{type:"format",content:Qo(e,Ai("0x2"),t)}}}))}}function Ri(t){return Ai("0x9")==t[Ai("0x13")][Ai("0x4")]}const Ii=["ckbox","enableCommand","afterInit","TrackChangesEditing"];var Si,Ni;Si=Ii,Ni=218,function(t){for(;--t;)Si.push(Si.shift())}(++Ni);const vi=function(t,e){return Ii[t-=0]};class Li extends t.Plugin{[vi("0x0")](){const t=this.editor;t.commands.get(vi("0x2"))&&t.plugins.get(vi("0x1"))[vi("0x3")](vi("0x2"))}}const Mi=["has","format","commands","commandParams","document","language","from","find","CodeBlock","blockName","type","formatBlock","*Set format:* %0","enableCommand","commandName","model","name","getSelectedBlocks","codeBlock","plugins","change","filter","forceValue","languages","rootElement","registerElementLabel","_descriptionFactory","*Remove format:* %0","locale","indentCodeBlock","ELEMENT_CODE_BLOCK","registerDescriptionCallback","get","label","config"];var Oi,wi;Oi=Mi,wi=365,function(t){for(;--t;)Oi.push(Oi.shift())}(++wi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{afterInit(){const t=this.editor;if(!t[Fi("0x4")][Fi("0x14")](Fi("0x1c")))return;const e=t[Fi("0x4")].get("TrackChangesEditing"),n=t[Fi("0xd")],o=t[Fi("0x13")][Fi("0x11")](Fi("0x3"))[Fi("0x8")],i=t[Fi("0x16")][Fi("0x11")](Fi("0x3"));e[Fi("0x21")](Fi("0xe")),e[Fi("0x21")]("outdentCodeBlock"),e.enableCommand(Fi("0x3"),((n,r={})=>{const s=t[Fi("0x0")],x=t[Fi("0x0")][Fi("0x18")].selection,a=r&&void 0!==r[Fi("0x7")]?r.forceValue:!i.value;let c;r[Fi("0x19")]||(r[Fi("0x19")]=o[0].language),c=a?Array[Fi("0x1a")](x[Fi("0x2")]())[Fi("0x6")]((t=>{return Bi(t)||(e=t,n=s.schema,!e.is(Fi("0x9"))&&!n.isLimit(e)&&n.checkChild(e.parent,Fi("0x3")));var e,n})):Array[Fi("0x1a")](x[Fi("0x2")]())[Fi("0x6")]((t=>Bi(t)));const l=S(c,s);s[Fi("0x5")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Fi("0x3"),commandParams:[{...r,forceValue:a}],formatGroupId:Fi("0x1d")})}))})),e[Fi("0xb")][Fi("0xa")]("codeBlock",(t=>Qo(n,Fi("0xf"),t))),e._descriptionFactory[Fi("0x10")]((t=>{if(Fi("0x1f")!=t[Fi("0x1e")])return;const e=n.t,{data:i}=t;if(!i||Fi("0x3")!=i[Fi("0x22")])return;const r=i[Fi("0x17")][0].language,s=e(o[Fi("0x1b")]((t=>t[Fi("0x19")]===r))[Fi("0x12")]).toLowerCase();return i[Fi("0x17")][0][Fi("0x7")]?{type:Fi("0x15"),content:Qo(n,Fi("0x20"),Qo(n,Fi("0xf"),1)+" ("+s+")")}:{type:Fi("0x15"),content:Qo(n,Fi("0xc"),Qo(n,Fi("0xf"),1))}}))}}function Bi(t){return Fi("0x3")==t[Fi("0x1")]}const Pi=["CommentsEditing","TrackChangesEditing","addCommentThread","editor","plugins","has","get"];var Ui,ji;Ui=Pi,ji=368,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Hi extends t.Plugin{afterInit(){const t=this[Gi("0x6")];t[Gi("0x0")][Gi("0x1")](Gi("0x3"))&&t[Gi("0x0")][Gi("0x2")](Gi("0x4")).enableCommand(Gi("0x5"))}}var Vi=n(181);const zi=["mapper","writer","includes","consumable","toViewPosition","start","model","ck-suggestion-marker-","toViewElement","push","getCustomProperty","getAttribute","nextSibling","isLimit","markerName","addClass","addHighlight","getWalker","TrackChangesEditing","plugins","isAtEnd","listIndent","getItems","element","isContent","previousPosition","markerRange","listItem","bindElementToMarker","elementEnd","hasAttribute","activeMarkers","isBlock","parent"];var Wi,Ki;Wi=zi,Ki=139,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function Xi(t,e,n){const o=[];for(const i of e[qi("0x13")]())i[qi("0x1b")](t)&&o[qi("0x6")](n.createRangeOn(i));return o}function $i(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0x10")].get(qi("0xf"));return(i,r,s)=>{if(!s[qi("0x0")].test(r.markerRange,i.name))return;const x=r[qi("0x17")][qi("0xe")](),a=r[qi("0x17")][qi("0x2")],c=t[qi("0x3")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[qi("0x15")](e);const n=s[qi("0x1f")][qi("0x5")](e);if(n&&n[qi("0x7")](qi("0xd")))return;qi("0x1a")==t.type&&c[qi("0x1d")](e)&&!c[qi("0xa")](e)&&(e.nextSibling||a[qi("0x11")]?l&&l[qi("0x1e")]==e||(l=e,f(t[qi("0x16")]),g=!0):u=u||t.previousPosition)}function f(t){const i=s.writer.createUIElement("span",{class:qi("0x4")+e}),x=s[qi("0x1f")][qi("0x1")](t);n&&o[qi("0x1c")][qi("0x21")](r[qi("0xb")])&&s[qi("0x20")][qi("0xc")]("ck-suggestion-marker--active",i),s[qi("0x20")].insert(x,i),s[qi("0x1f")][qi("0x19")](i,r[qi("0xb")])}d||g||!u||f(u)}}const Yi=["delete","uiElement","getFirstRange","isCollapsed","lock","merge","rootName","createRange","get","buffer","options","addMarker:suggestion:deletion","markerName","modifySelection","end","forward","enableCommand","$graveyard","createSelection","deleteForward","plugins","editor","showSuggestionHighlights","init","batch","start","root","unlock","detach","model","commands","setSelection","high","data","markerNameToElements","downcastDispatcher","writer","requires","unbindElementFromMarkerName","mapper","enqueueChange"];var Zi,Ji;Zi=Yi,Ji=130,function(t){for(;--t;)Zi.push(Zi.shift())}(++Ji);const Qi=function(t,e){return Yi[t-=0]};class tr extends t.Plugin{static get[Qi("0x1e")](){return[Vi.Delete]}[Qi("0x10")](){const t=this[Qi("0xe")],e=t[Qi("0xd")][Qi("0x1")]("TrackChangesEditing");e[Qi("0x9")](Qi("0x22"));const n=t[Qi("0x17")][Qi("0x1")]("deleteForward");e[Qi("0x9")](Qi("0xc"),((e,o={})=>{const i=t[Qi("0x16")][Qi("0xb")](t[Qi("0x16")].document.selection);i[Qi("0x25")]&&t[Qi("0x16")][Qi("0x6")](i,{direction:Qi("0x8"),unit:o.unit});const r=i[Qi("0x24")](),x=s.LiveRange.fromRange(r);let a;e(o),a=Qi("0xa")==x[Qi("0x13")][Qi("0x28")]?t[Qi("0x16")].createRange(r[Qi("0x12")]):t[Qi("0x16")].createRange(x.start,x[Qi("0x7")]),x[Qi("0x15")](),t[Qi("0x16")][Qi("0x21")](n[Qi("0x2")][Qi("0x11")],(t=>{n.buffer[Qi("0x26")](),t[Qi("0x18")](t[Qi("0x0")](a[Qi("0x7")])),n[Qi("0x2")][Qi("0x14")]()}))})),t.editing[Qi("0x1c")].on(Qi("0x4"),$i(t,Qi("0x27")),{priority:Qi("0x19")}),t[Qi("0x1a")][Qi("0x1c")].on(Qi("0x4"),((e,n,o)=>{o[Qi("0x3")][Qi("0xf")]&&$i(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:Qi("0x19")}),t.editing.downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n.mapper[Qi("0x1b")](e[Qi("0x5")]);if(o)for(const t of o)t.is(Qi("0x23"))&&(n[Qi("0x20")][Qi("0x1f")](t,e[Qi("0x5")]),n[Qi("0x1d")].remove(t))}),{priority:"high"})}}const er=["next","selection","mergeListItemBackward","getRanges","*Format:* remove from %0","forceValue","after","map","bulletedList","listItemId","deletion","multipleBlocks","ELEMENT_NUMBERED_LIST","formatBlock","getAttribute","accept","setSelection","hasAttribute","*Change to:* %0","*Outdent:* %0","execute","createPositionAt","paragraph","splitListItemAfter","commands","type","markBlockFormat","list.multiBlock","*Merge:* %0","plugins","get","*Indent:* %0","outdentList","enableCommand","end","numberedList","*Format:* insert into %0","schema","change","start","getSelectedBlocks","indentList","value","commandParams","formatInline","listType","_descriptionFactory","push","format","previousSibling","parent","findIndex","nodeAfter","length","nextSibling","locale","DocumentListUtils","ELEMENT_","containsItem","isObject","refresh","config","add","document","registerElementLabel","TrackChangesEditing","createRange","before","from","registerDescriptionCallback","commandName","afterInit","has","mergeListItemForward","editor","model","getFirstRange","detach","splitListItemBefore","ELEMENT_LIST_ITEM","listIndent","ELEMENT_BULLETED_LIST","documentList"];var nr,or;nr=er,or=471,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{[ir("0xf")](){const t=this[ir("0x12")];if(!t[ir("0x38")][ir("0x10")]("DocumentListEditing"))return;const e=t[ir("0x52")],n=t[ir("0x38")][ir("0x39")](ir("0x9")),o=t[ir("0x38")][ir("0x39")](ir("0x0"));function i(e){return()=>{const i=t[ir("0x33")][ir("0x39")](e);if(i[ir("0x45")]&&!t[ir("0x5")][ir("0x39")](ir("0x36")))return void t.execute(ir("0x31"),{});let r=Array[ir("0xc")](t[ir("0x13")][ir("0x7")][ir("0x1c")][ir("0x43")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[ir("0x4a")](e);r=t}t[ir("0x13")][ir("0x41")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!i[ir("0x45")]}],formatGroupId:"listType"},[],ir("0x1a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[ir("0xc")](t);const n=e[ir("0x4e")]((t=>!t[ir("0x2c")](ir("0x24"))));return n>-1&&(e=e.slice(0,n)),e}(t[ir("0x13")][ir("0x7")][ir("0x1c")][ir("0x43")]()),i=o[o[ir("0x50")]-1],r=t[ir("0x13")][ir("0x40")][ir("0x3")](i)?ir("0x21"):ir("0x3d"),s=t[ir("0x13")][ir("0xa")](t[ir("0x13")][ir("0x30")](o[0],ir("0xb")),t.model[ir("0x30")](i,r));t[ir("0x13")][ir("0x41")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:ir("0x48")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ir("0x29")](ir("0x18"))>n[ir("0x29")](ir("0x18"));)e[ir("0x6")](t),t=t[ir("0x51")]}return Array[ir("0xc")](e)}(o))}))}}function x(e){return()=>{const o=t[ir("0x13")][ir("0x7")].selection[ir("0x43")]()[ir("0x1b")]()[ir("0x45")],i=t[ir("0x13")].createPositionAt(o,ir("0xb")),r=t[ir("0x13")][ir("0x30")](o,0),s=t[ir("0x13")][ir("0xa")](i,r);t[ir("0x13")].change((()=>{n[ir("0x35")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x48")})}))}}function a(e){const n=t[ir("0x33")][ir("0x39")](ir("0x23"))[ir("0x45")],o=t[ir("0x33")][ir("0x39")](ir("0x3e"))[ir("0x45")];return ir("0x3e")===e?n:o}n[ir("0x3c")](ir("0x3e"),i(ir("0x3e"))),n[ir("0x3c")](ir("0x23"),i("bulletedList")),n.enableCommand(ir("0x44"),r(ir("0x44"))),n[ir("0x3c")]("outdentList",r(ir("0x3b"))),n[ir("0x3c")](ir("0x32"),x(ir("0x32"))),n[ir("0x3c")](ir("0x16"),x(ir("0x16"))),n[ir("0x49")][ir("0x8")]((function(e){const n=!t.model[ir("0x40")][ir("0x3")](e),o=e[ir("0x4c")],i=e[ir("0x51")],r=e[ir("0x29")](ir("0x24")),s=!o||o[ir("0x29")](ir("0x24"))!==r,x=!i||i[ir("0x29")](ir("0x24"))!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,ir("0x17"),t))),n[ir("0x49")][ir("0xd")]((function(n){if("formatBlock"!=n[ir("0x34")]&&ir("0x47")!=n[ir("0x34")])return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0xe")]){case ir("0x23"):s=o[ir("0x46")][0].forceValue,x=a(o[ir("0xe")]),i=ir(s?"0x3f":"0x1f"),!x&&t[ir("0x5")][ir("0x39")](ir("0x36"))||(i=ir("0x2d")),r={type:"format",content:Qo(e,i,Qo(e,ir("0x19")))};break;case ir("0x3e"):s=o[ir("0x46")][0][ir("0x20")],x=a(o.commandName),i=ir(s?"0x3f":"0x1f"),!x&&t.config[ir("0x39")](ir("0x36"))||(i=ir("0x2d")),r={type:ir("0x4b"),content:Qo(e,i,Qo(e,ir("0x27")))};break;case"indentList":i=ir("0x3a"),r={type:ir("0x4b"),content:Qo(e,i,Qo(e,ir("0x17")))};break;case ir("0x3b"):i=function(t){const e=t[ir("0x14")]();let n=e.start[ir("0x4f")];for(;n&&e[ir("0x2")](n);){if(n[ir("0x29")](ir("0x18"))>0)return!1;n=n.nextSibling}return!0}(n)?Qo(e,ir("0x1f"),Qo(e,function(t){const e=t.getFirstRange()[ir("0x42")].nodeAfter;return ir("0x1")+e[ir("0x29")]("listType").toUpperCase()+"_LIST"}(n))):Qo(e,ir("0x2e"),Qo(e,ir("0x17"))),r={type:ir("0x4b"),content:i};break;case ir("0x1d"):case ir("0x11"):!1===o[ir("0x26")]&&(i=ir("0x37"),r={type:ir("0x25"),content:Qo(e,i,Qo(e,ir("0x17")))})}return r})),n._suggestionFactory.registerCustomCallback(ir("0x28"),"documentList",ir("0x2a"),(function(e,n){const o=[];for(let n of e)n[ir("0x42")].nodeAfter===n[ir("0x3d")][ir("0x4d")]&&(n=t[ir("0x13")][ir("0xa")](t[ir("0x13")][ir("0x30")](n[ir("0x42")][ir("0x4f")],0))),o[ir("0x4a")](n);t.model[ir("0x41")]((e=>{const i=t[ir("0x13")][ir("0x7")][ir("0x1c")],r=Array[ir("0xc")](i[ir("0x1e")]())[ir("0x22")]((t=>s.LiveRange.fromRange(t)));e[ir("0x2b")](o),t.commands[ir("0x39")](n[ir("0xe")])[ir("0x4")](),n[ir("0x46")][ir("0x4a")]({forceDefaultExecution:!0}),t[ir("0x2f")](n.commandName,...n[ir("0x46")]),e[ir("0x2b")](r);for(const t of r)t[ir("0x15")]()}))}))}}const sr=["commandParams","_getTranslationKeyForListStyle","model","*Format:* set order to regular","editor","filter","change","config","getAttribute","*Format:* set start index to %0","plugins","getListTypeFromListStyleType","_getSuggestionBlocks","DocumentListPropertiesEditing","push","isListItemBlock","listStart","toUpperCase","DocumentListPropertiesUtils","formatInline","*Format:* set order to reversed","document","getSelectedBlocks","startIndex","type","selection","listType","length","enableCommand","markMultiRangeBlockFormat","has","TrackChangesEditing","handleListReversedCommand","bind","listStyle","from","styles","get","*Change to:* %0","handleDescriptions","numbered","listReversed","handleListStyleCommand","commandName","DocumentListUtils","format","registerDescriptionCallback","handleListStartCommand","list.properties","expandListBlocksToCompleteList","_getSuggestionBlocksForListStyle","ELEMENT_","afterInit","reversed"];var xr,ar;xr=sr,ar=103,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x3")](){if(!this[cr("0x9")][cr("0xf")][cr("0x23")](cr("0x12")))return;const t=this[cr("0x9")][cr("0xc")].get(cr("0x35")),e=this[cr("0x9")].plugins[cr("0x2a")]("TrackChangesEditing");t[cr("0x29")]&&e[cr("0x21")]("listStyle",this[cr("0x2f")][cr("0x26")](this)),t[cr("0x4")]&&e.enableCommand(cr("0x2e"),this[cr("0x25")][cr("0x26")](this)),t[cr("0x1c")]&&e[cr("0x21")](cr("0x15"),this[cr("0x34")][cr("0x26")](this)),e._descriptionFactory[cr("0x33")](this.handleDescriptions[cr("0x26")](this))}[cr("0x2f")](t,e={}){const n=this[cr("0x9")][cr("0xf")][cr("0x2a")](cr("0x24")),o=this[cr("0x1")]();this[cr("0x9")][cr("0x7")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:cr("0x27"),commandParams:[{type:e[cr("0x1d")]}],formatGroupId:cr("0x27")})}))}handleListReversedCommand(t,e={}){const n=this[cr("0x9")].plugins[cr("0x2a")](cr("0x24")),o=this[cr("0x9")][cr("0xf")][cr("0x2a")](cr("0x31")),i=this[cr("0x11")]((t=>o[cr("0x14")](t)&&cr("0x2d")===t.getAttribute("listType")));null!==i&&this[cr("0x9")][cr("0x7")][cr("0xb")]((()=>{n[cr("0x22")](i,{commandName:cr("0x2e"),commandParams:[{reversed:e[cr("0x4")]}],formatGroupId:cr("0x2e")})}))}[cr("0x34")](t,e={}){const n=this.editor[cr("0xf")][cr("0x2a")](cr("0x24")),o=this.editor[cr("0xf")][cr("0x2a")](cr("0x31")),i=this[cr("0x11")]((t=>o[cr("0x14")](t)&&cr("0x2d")===t[cr("0xd")](cr("0x1f"))));null!==i&&this[cr("0x9")][cr("0x7")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:cr("0x15"),commandParams:[{startIndex:e[cr("0x1c")]}],formatGroupId:cr("0x15")})}))}[cr("0x2c")](t){if("formatBlock"!=t[cr("0x1d")]&&cr("0x18")!=t[cr("0x1d")])return;const e=this[cr("0x9")].locale,{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x30")]){case"listStyle":o=cr("0x2b"),i={type:cr("0x32"),content:Qo(e,o,Qo(e,this[cr("0x6")](n[cr("0x5")][0][cr("0x1d")])))};break;case"listReversed":o=n[cr("0x5")][0][cr("0x4")]?cr("0x19"):cr("0x8"),i={type:cr("0x32"),content:Qo(e,o)};break;case cr("0x15"):o=cr("0xe"),i={type:cr("0x32"),content:Qo(e,o,n[cr("0x5")][0][cr("0x1c")])}}return i}_getSuggestionBlocksForListStyle(){const t=this[cr("0x9")].plugins[cr("0x2a")](cr("0x31"));let e=Array[cr("0x28")](this[cr("0x9")][cr("0x7")][cr("0x1a")][cr("0x1e")][cr("0x1b")]());return e[cr("0x13")](...t[cr("0x0")](e)),e=[...new Set(e)],e}[cr("0x11")](t){const e=this.editor[cr("0xf")][cr("0x2a")](cr("0x31"));let n=Array[cr("0x28")](this[cr("0x9")][cr("0x7")][cr("0x1a")][cr("0x1e")][cr("0x1b")]())[cr("0xa")](t);if(!n[cr("0x20")])return null;n=e[cr("0x0")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[cr("0x13")](t);return o}[cr("0x6")](t){return cr("0x2")+this.editor.plugins.get(cr("0x17"))[cr("0x10")](t)[cr("0x16")]()+"_LIST_"+t.toUpperCase().replace(/-/g,"_")}}var ur=n(331);const dr=["hasClass","setSelection","downcastDispatcher","plugins","fromRange","enterBlock","editor","markerName","end","TrackChangesEditing","enter","options","createPositionAt","enableCommand","mapper","afterExecute","unbindElementFromMarkerName","getFirstRange","get","markerNameToElements","fire","nextSibling","change","markInsertion","createRange","document","detach","split","writer","bind","ck-suggestion-marker-split","addMarker:suggestion:insertion","removeMarker:suggestion:insertion","requires","high","model","data","commands","getFirstPosition","init","editing"];var gr,fr;gr=dr,fr=469,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get[mr("0xf")](){return[ur.Enter]}[mr("0x15")](){const t=this[mr("0x1d")],e=t[mr("0x1a")].get(mr("0x20")),n=t[mr("0x13")][mr("0x0")](mr("0x21"));e[mr("0x24")](mr("0x21"),(()=>{t.model[mr("0x4")]((o=>{const i=t[mr("0x11")][mr("0x7")].selection,r=i[mr("0x14")](),x=s.LiveRange[mr("0x1b")](i[mr("0x28")]());if(n[mr("0x1c")](o)){const n=t[mr("0x11")][mr("0x23")](r.parent[mr("0x3")],0),i=o[mr("0x6")](r,n);e[mr("0x5")](i)}else o[mr("0x18")](o[mr("0x6")](x[mr("0x1f")]));x[mr("0x8")](),n[mr("0x2")](mr("0x26"),{writer:o})}))})),t[mr("0x16")][mr("0x19")].on("addMarker:suggestion:insertion",$i(t,mr("0x9")),{priority:"high"}),t.editing[mr("0x19")].on(mr("0xe"),((t,e,n)=>{const o=n[mr("0x25")][mr("0x1")](e[mr("0x1e")]);if(o)for(const t of o)t[mr("0x17")](mr("0xc"))&&(n[mr("0x25")][mr("0x27")](t,e[mr("0x1e")]),n[mr("0xa")].remove(t))}),{priority:mr("0x10")}),t[mr("0x12")][mr("0x19")].on(mr("0xd"),((e,n,o)=>{o[mr("0x22")].showSuggestionHighlights&&$i(t,mr("0x9"),{showActiveMarker:!1})[mr("0xb")](this)(e,n,o)}),{priority:mr("0x10")})}}const pr=["find","FindAndReplaceUtils","string","getIntersection","afterInit","markers","get","has","item","_isInDeletionRange","model","plugins","end","getMarkersGroup","TrackChangesEditing","filter","bind","findByTextCallback","handleFindCommand","editor","enableCommand","replaceAll"];var br,Er;br=pr,Er=405,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{[_r("0x11")](){if(!this.editor[_r("0x2")][_r("0x14")]("FindAndReplaceEditing"))return;const t=this[_r("0xa")][_r("0x2")][_r("0x13")](_r("0x5"));t[_r("0xb")](_r("0xd"),this.handleFindCommand[_r("0x7")](this)),t[_r("0xb")]("findNext"),t[_r("0xb")]("findPrevious"),t[_r("0xb")]("replace"),t.enableCommand(_r("0xc"))}[_r("0x9")](t,e,n={}){const o=this[_r("0xa")].plugins.get(_r("0xe"));if(void 0!==n)return t((t=>(_r("0xf")==typeof e?o[_r("0x8")](e,n):e)(t)[_r("0x6")]((e=>!1===this[_r("0x0")](e,t[_r("0x15")])))),n)}[_r("0x0")](t,e){const n=this[_r("0xa")][_r("0x1")].createRange(this.editor[_r("0x1")].createPositionAt(e,t.start),this[_r("0xa")].model.createPositionAt(e,t[_r("0x3")]));for(const t of this[_r("0xa")].model[_r("0x12")][_r("0x4")]("suggestion:deletion"))if(null!==n[_r("0x10")](t.getRange()))return!0;return!1}}const yr=["commandName","label","get","TrackChangesEditing","FORMAT_FONT_COLOR","value","config","trim","_registerLegacyDescription","fontColor","title","editor","plugins","model","registerAttributeLabel","registerDescriptionCallback","_descriptionFactory","toLowerCase","FORMAT_FONT_FAMILY","fontFamily","*Set font size:* %0","format","find","FontColorEditing","FontBackgroundColorEditing","*Reset font size*","normalizeSizeOptions","*Set font color:* %0","fontBackgroundColor.colors","fontBackgroundColor","type","FontSize","FORMAT_FONT_SIZE","locale","fontSize.options","*Reset font color*","has","commandParams","*Set font family:* %0","fontSize"];var Cr,Ar;Cr=yr,Ar=401,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Rr=[{pluginName:"FontSizeEditing",commandName:kr("0x26")},{pluginName:"FontFamilyEditing",commandName:kr("0x12")},{pluginName:kr("0x16"),commandName:kr("0x8")},{pluginName:kr("0x17"),commandName:"fontBackgroundColor"}];class Ir extends t.Plugin{afterInit(){const t=this[kr("0xa")][kr("0x20")],e=this[kr("0xa")].plugins[kr("0x1")](kr("0x2"));for(const{pluginName:t,commandName:n}of Rr)this.editor[kr("0xb")][kr("0x23")](t)&&e.enableDefaultIntegration(n,[n]);t.t,e[kr("0xf")][kr("0xd")]("fontSize",Qo(t,kr("0x1f"))),e._descriptionFactory[kr("0xd")]("fontFamily",Qo(t,kr("0x11"))),e[kr("0xf")].registerAttributeLabel(kr("0x8"),Qo(t,kr("0x3"))),e[kr("0xf")][kr("0xd")](kr("0x1c"),Qo(t,"FORMAT_FONT_BACKGROUND")),this[kr("0x7")]()}[kr("0x7")](){const t=this[kr("0xa")],e=t[kr("0x20")];t.plugins[kr("0x1")](kr("0x2"))[kr("0xf")][kr("0xe")]((t=>{const n=e.t;if("formatInline"!=t[kr("0x1d")])return;const{data:o}=t;if(null!=o){if("fontSize"==o[kr("0x27")]){const t=o[kr("0x24")][0][kr("0x4")];if(t){const o=n(this[kr("0xa")].plugins[kr("0x1")](kr("0x1e"))[kr("0x19")](this[kr("0xa")][kr("0x5")][kr("0x1")](kr("0x21")))[kr("0x15")]((e=>e.model==t))[kr("0x9")])[kr("0x10")]();return{type:kr("0x14"),content:Qo(e,kr("0x13"),o)}}return{type:kr("0x14"),content:Qo(e,kr("0x18"))}}if(kr("0x12")==o[kr("0x27")]){const t=o[kr("0x24")][0][kr("0x4")];return t?{type:kr("0x14"),content:Qo(e,kr("0x25"),t)}:{type:"format",content:Qo(e,"*Reset font family*")}}if(kr("0x8")==o.commandName){const t=o[kr("0x24")][0][kr("0x4")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0xa")][kr("0x5")][kr("0x1")]("fontColor.colors"))[kr("0x15")]((e=>e[kr("0xc")]==t));let r=t,s="";return o&&(r=o[kr("0x0")],s=n(r)[kr("0x10")]()),{type:kr("0x14"),content:Qo(e,kr("0x1a"),s).trim(),color:{value:t,title:s||r}}}return{type:kr("0x14"),content:Qo(e,kr("0x22"))}}if(kr("0x1c")==o.commandName){const t=o[kr("0x24")][0][kr("0x4")];if(t){const o=(0,i.normalizeColorOptions)(this.editor[kr("0x5")][kr("0x1")](kr("0x1b"))).find((e=>e[kr("0xc")]==t));let r=t,s="";return o&&(r=o[kr("0x0")],s=n(r)[kr("0x10")]()),{type:kr("0x14"),content:Qo(e,"*Set font background color:* %0",s)[kr("0x6")](),color:{value:t,title:s||r}}}return{type:kr("0x14"),content:Qo(e,"*Reset font background color*")}}}}))}}const Sr=["enableCommand","formatBlock","plugins","fontSize.options","pasteFormat","fontColor.colors","toLowerCase","_descriptionFactory","boolean","length","*Set format to:* %0","join","copyFormat","find","*Remove all formatting*","TrackChangesEditing","config","toUpperCase","enableDefaultIntegration","afterInit","charAt","format","_registerLegacyDescription","push","editor","type","registerDescriptionCallback","split","title","get","locale","commandParams"];var Nr,vr;Nr=Sr,vr=135,function(t){for(;--t;)Nr.push(Nr.shift())}(++vr);const Lr=function(t,e){return Sr[t-=0]};class Mr extends t.Plugin{[Lr("0xc")](){const t=this[Lr("0x11")],e=t[Lr("0x1b")].get(Lr("0x8")),n=t.commands[Lr("0x16")](Lr("0x5")),o=t.commands[Lr("0x16")]("pasteFormat");n&&o&&(e[Lr("0xb")](Lr("0x1d")),e[Lr("0x19")](Lr("0x5")),this[Lr("0xf")]())}[Lr("0xf")](){const t=this[Lr("0x11")],e=t[Lr("0x17")];t.plugins[Lr("0x16")](Lr("0x8"))[Lr("0x0")][Lr("0x13")]((n=>{if(Lr("0x1a")!=n[Lr("0x12")]&&"formatInline"!=n[Lr("0x12")])return;const{data:o}=n;if(o&&Lr("0x1d")===o.commandName){const n=[],i=o[Lr("0x18")][0];for(const[e,o]of Object.entries(i))n[Lr("0x10")](Or(t,e,o));return n[Lr("0x2")]?{type:"format",content:Qo(e,Lr("0x3"),n[Lr("0x4")](", "))}:{type:Lr("0xe"),content:Qo(e,Lr("0x7"))}}}))}}function Or(t,e,n){const o=t[Lr("0x17")].t,r=e[Lr("0x14")](/(?=[A-Z])/)[Lr("0x4")](" "),s=o(r[Lr("0xd")](0)[Lr("0xa")]()+r.slice(1))[Lr("0x1f")]();if(Lr("0x1")==typeof n)return s;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,i.normalizeColorOptions)(t[Lr("0x9")][Lr("0x16")](Lr("0x1e")))[Lr("0x6")]((t=>t.model==n));return s+" ("+(e?o(e.label)[Lr("0x1f")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins.get("FontSize").normalizeSizeOptions(t[Lr("0x9")][Lr("0x16")](Lr("0x1c")))[Lr("0x6")]((t=>t.model==n));return s+" ("+(e?o(e[Lr("0x15")])[Lr("0x1f")]():n)+")"}return s+" ("+n+")"}const wr=["locale","match","ELEMENT_HEADING_CUSTOM","*Change to:* %0","HeadingEditing","registerElementLabel","commandName","afterInit","_getHeadingLevel","TrackChangesEditing","heading","view","_registerLegacyDescription","has","enableDefaultIntegration","format","plugins","model","editor","registerDescriptionCallback","value","paragraph","_headingOptions","title","ELEMENT_HEADING","find","get","name"];var Fr,Dr;Fr=wr,Dr=180,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Br("0x17")](){const t=this[Br("0x6")];if(!t[Br("0x4")][Br("0x1")](Br("0x14")))return;const e=t[Br("0x10")];this._headingOptions=t.config[Br("0xe")]("heading.options");const n=t[Br("0x4")][Br("0xe")](Br("0x19"));n[Br("0x2")](Br("0x1a"));for(const t of this[Br("0xa")])Br("0x9")!=t[Br("0x5")]&&n._descriptionFactory[Br("0x15")](t[Br("0x5")],(n=>{const o=this[Br("0x18")](t[Br("0x5")]);return null!==o?(s=n,x=o,Qo(e,Br("0xc"),[s,x])):(i=n,r=t[Br("0xb")],Qo(e,Br("0x12"),[i,r]));var i,r,s,x}));this[Br("0x0")]()}[Br("0x0")](){const t=this[Br("0x6")],e=t[Br("0x10")];t[Br("0x4")].get(Br("0x19"))._descriptionFactory[Br("0x7")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(n&&Br("0x1a")==n[Br("0x16")]){const t=n.commandParams[0][Br("0x8")],s=this[Br("0x18")](t);if(null!==s)return{type:Br("0x3"),content:Qo(e,Br("0x13"),(1,r=s,Qo(e,Br("0xc"),[1,r])))};const x=this[Br("0xa")][Br("0xd")]((e=>e.model===t))[Br("0xb")];return{type:Br("0x3"),content:Qo(e,Br("0x13"),(o=1,i=x,Qo(e,Br("0x12"),[o,i])))}}var o,i,r}))}_getHeadingLevel(t){var e,n;const o=t.match(/^heading(\d+)/);if(o)return o[1];const i=null===(e=this[Br("0xa")])||void 0===e?void 0:e.find((e=>e[Br("0x5")]==t));if(i&&i[Br("0x1b")]){const t=i[Br("0x1b")],e=(null!==(n=t[Br("0xf")])&&void 0!==n?n:t)[Br("0x11")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["value","_descriptionFactory","registerAttributeLabel","*Remove highlight*","commandParams","TrackChangesEditing","*Set highlight:* %0","color","_registerLegacyDescription","format","HighlightEditing","title","highlight","locale","get","formatInline","editor","model","has","FORMAT_HIGHLIGHT","plugins","toLowerCase","highlight.options"];var jr,Gr;jr=Ur,Gr=203,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Hr=function(t,e){return Ur[t-=0]};class Vr extends t.Plugin{afterInit(){const t=this[Hr("0x14")];if(!t[Hr("0x1")][Hr("0x16")](Hr("0xe")))return;const e=t[Hr("0x1")][Hr("0x12")]("TrackChangesEditing"),n=t.locale;e.enableDefaultIntegration("highlight",[Hr("0x10")]),e[Hr("0x5")][Hr("0x6")]("highlight",Qo(n,Hr("0x0"))),this[Hr("0xc")]()}_registerLegacyDescription(){const t=this[Hr("0x14")],e=t[Hr("0x11")];t[Hr("0x1")][Hr("0x12")](Hr("0x9"))[Hr("0x5")].registerDescriptionCallback((n=>{if(Hr("0x13")!=n.type)return;const{data:o}=n;if(o&&"highlight"==o.commandName){const n=e.t,i=o[Hr("0x8")][0][Hr("0x4")];if(i){const o=t.config.get(Hr("0x3")).find((t=>t[Hr("0x15")]==i)),r=n(o[Hr("0xf")])[Hr("0x2")]();return{type:Hr("0xd"),content:Qo(e,Hr("0xa"),r),color:{value:o[Hr("0xb")],title:o[Hr("0xf")]}}}return{type:Hr("0xd"),content:Qo(e,Hr("0x7"),Qo(e,Hr("0x0")))}}}))}}const zr=["editor","showSuggestionHighlights","horizontalLine","HorizontalLineEditing","createEmptyElement","get","locale","TrackChangesEditing","afterInit","plugins","registerElementLabel","addClass","_descriptionFactory","div","createPositionAt","ELEMENT_HORIZONTAL_LINE","ck-horizontal-line","has","elementToStructure","high","enableCommand"];var Wr,Kr;Wr=zr,Kr=187,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{[qr("0xa")](){const t=this[qr("0x2")];if(!t.plugins[qr("0x13")](qr("0x5")))return;t[qr("0xb")][qr("0x7")](qr("0x9"))[qr("0x1")](qr("0x4"));const e=t.plugins[qr("0x7")](qr("0x9")),n=t[qr("0x8")];e[qr("0xe")][qr("0xc")](qr("0x4"),(t=>Qo(n,qr("0x11"),t))),t.conversion.for("dataDowncast")[qr("0x14")]({model:qr("0x4"),view:(t,{writer:e,options:n})=>{if(!n[qr("0x3")])return null;const o=e.createContainerElement(qr("0xf")),i=e[qr("0x6")]("hr");return e[qr("0xd")](qr("0x12"),o),e.insert(e[qr("0x10")](o,0),i),o},converterPriority:qr("0x0")})}}const $r=["plugins","*Change %0 content*","enableDefaultIntegration","getFirstRange","ELEMENT_HTML_EMBED","htmlEmbed","registerElementLabel","key","_descriptionFactory","TrackChangesEditing","_registerLegacyDescription","get","type","nodeAfter","registerDescriptionCallback","editor","rawHtml","HtmlEmbed","formatBlock","locale","value"];var Yr,Zr;Yr=$r,Zr=341,function(t){for(;--t;)Yr.push(Yr.shift())}(++Zr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0xa")];if(!t.plugins.has(Jr("0xc")))return;const e=t[Jr("0x10")][Jr("0x6")](Jr("0x4")),n=t[Jr("0xe")];e[Jr("0x3")][Jr("0x1")]("rawHtml",(t=>Qo(n,Jr("0x14"),t))),e[Jr("0x12")]("htmlEmbed",[],[Jr("0xf")]),e[Jr("0x3")][Jr("0x9")]((t=>{if("attribute"!=t[Jr("0x7")])return;const{data:e}=t;if(e&&"value"==e[Jr("0x2")]&&t[Jr("0x13")]().start[Jr("0x8")].is("element",Jr("0xb"))){const t=Qo(n,Jr("0x14"));return{type:"format",content:Qo(n,Jr("0x11"),t)}}})),this[Jr("0x5")]()}[Jr("0x5")](){const t=this[Jr("0xa")],e=t[Jr("0xe")];t[Jr("0x10")][Jr("0x6")](Jr("0x4"))[Jr("0x3")].registerDescriptionCallback((t=>{if(Jr("0xd")!=t[Jr("0x7")])return;const{data:n}=t;if(n&&Jr("0x0")==n.commandName){const t=Qo(e,Jr("0x14"));return{type:"format",content:Qo(e,Jr("0x11"),t)}}}))}}const ts=["selection","enableDefaultIntegration","*Set image text alternative:* %0","commandParams","markInsertion","getFirstRange","alt","has","subType","type","nodeBefore","ImageCaptionEditing","fromPosition","createRange","imageStylePreApply","format","discard","plugins","registerCustomCallback","afterInit","_findSuggestions","FORMAT_IMAGE_WIDTH","removeObject","toggleImageCaption","isBefore","registerElementLabel","_descriptionFactory","_registerLegacyDescription","isIntersecting","insertion","previous","nodeAfter","getClosestSelectedImageElement","get","key","convertBlockImageToInline","registerAttributeLabel","getSuggestionCallback","addObject","attribute","chain","join","imageTypeInline","commandName","imageTextAlternative","ImageInlineEditing","resizedWidth","model","isOwn","element","getContainedElement","convertInlineImageToBlock","getNearestSelectionRange","schema","ImageEditing","getCaptionFromImageModelElement","ImageCaptionUtils","*Reset image width*","resizeImage","isEqual","formatBlock","findIndex","_suggestionFactory","start","Block image to inline image","ELEMENT_CAPTION","enableCommand","end","editor","uploadImage","isBlockImage","width","*Set image width:* %0","locale","registerDescriptionCallback","imageCaption","document","caption","change","*Remove image text alternative*","createRangeOn","markDeletion","imageInline","isCollapsed","newValue","markBlockFormat","detach"];var es,ns;es=ts,ns=123,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x46")](){const t=this[os("0x20")];if(!t[os("0x44")][os("0x3a")](os("0x12")))return;const e=t[os("0x44")].get("TrackChangesEditing"),n=t.plugins[os("0x54")]("ImageUtils"),o=t.locale;e[os("0x1e")]("insertImage"),e._descriptionFactory.registerElementLabel("imageBlock",(t=>Qo(o,"ELEMENT_IMAGE",t))),e[os("0x4d")].registerElementLabel(os("0x2e"),(t=>Qo(o,"ELEMENT_INLINE_IMAGE",t))),e[os("0x4d")][os("0x4c")](os("0x29"),(()=>Qo(o,os("0x1d")))),t[os("0x44")][os("0x3a")]("ImageUploadEditing")&&e[os("0x1e")](os("0x21")),t[os("0x44")].has("ImageBlockEditing")&&t[os("0x44")][os("0x3a")](os("0x9"))&&(e.enableCommand(os("0x6"),((o,i)=>{const r=n[os("0x53")](t[os("0xb")][os("0x28")].selection);t[os("0xb")][os("0x2a")]((()=>{e[os("0x31")](r,{commandName:"imageTypeInline",commandParams:[i]},[],os("0x56"))}))})),e[os("0x1e")]("imageTypeBlock",((o,i)=>{t[os("0xb")].change((r=>{let x=n.getClosestSelectedImageElement(t[os("0xb")][os("0x28")][os("0x33")]),a=r[os("0x2c")](x);const c=s.LivePosition[os("0x3f")](a[os("0x1b")],"toPrevious"),l=s.LivePosition.fromPosition(a[os("0x1f")],"toNext");e.forceDefaultExecution((()=>o(i))),x=n[os("0x53")](t.model[os("0x28")].selection),a=r[os("0x2c")](x);const u=r[os("0x40")](c,l);c[os("0x32")](),l.detach(),e.markBlockFormat(x,{commandName:os("0x6"),commandParams:[i]},[],os("0xf")),u[os("0x1b")].isBefore(a[os("0x1b")])&&e[os("0x37")](r[os("0x40")](u[os("0x1b")],a[os("0x1b")]),os("0xf")),a[os("0x1f")][os("0x4b")](u[os("0x1f")])&&e[os("0x37")](r[os("0x40")](a[os("0x1f")],u[os("0x1f")]),os("0xf"))}))})),e[os("0x1a")][os("0x45")]("formatBlock","convertInlineImageToBlock","join",(()=>!1)),e[os("0x1a")].registerCustomCallback("formatBlock",os("0xf"),"accept",(()=>!1)),e[os("0x1a")][os("0x45")]("formatBlock",os("0xf"),os("0x43"),e[os("0x1a")][os("0x1")](os("0x18"),"","accept")),e[os("0x1a")][os("0x45")](os("0x50"),os("0xf"),os("0x5"),(()=>!1)),e[os("0x1a")].registerCustomCallback(os("0x50"),"convertInlineImageToBlock",os("0x43"),(([n])=>{const o=e[os("0x1a")][os("0x1")](os("0x50"),"",os("0x43"));let i=n[os("0x1b")],r=n.end;const s=t[os("0xb")].schema[os("0x10")](i,"backward"),x=t[os("0xb")][os("0x11")][os("0x10")](r,"forward");s.isCollapsed&&(i=s[os("0x1b")]),x[os("0x2f")]&&(r=x[os("0x1f")]),o([t.model[os("0x40")](i,r)])})),e[os("0x1a")][os("0x45")](os("0x18"),os("0xf"),os("0x4"),x),e[os("0x1a")][os("0x45")](os("0x50"),os("0xf"),os("0x4"),x)),t[os("0x44")][os("0x3a")](os("0x3e"))&&(e[os("0x1e")](os("0x4a"),((o,i)=>{const r=t.plugins[os("0x54")](os("0x14"));let s=n[os("0x53")](t[os("0xb")][os("0x28")][os("0x33")]),x=r[os("0x13")](s);t[os("0xb")].change((()=>{if(x)return void e[os("0x2d")](t[os("0xb")][os("0x2c")](x));const a=n[os("0x22")](s);o(i),s=n.getClosestSelectedImageElement(t[os("0xb")][os("0x28")][os("0x33")]),x=r[os("0x13")](s),e[os("0x37")](t.model[os("0x2c")](x),a?null:os("0x27"))}))})),e[os("0x1a")].registerCustomCallback(os("0x50"),"imageCaption","chain",x));const i=[{type:os("0x18"),subType:os("0x41")},{type:os("0x50"),subType:"imageCaption"},{type:os("0x18"),subType:os("0xf")},{type:os("0x50"),subType:os("0xf")}];function r(t,o){const r=i[os("0x19")]((({type:e,subType:n})=>t[os("0x3c")]==e&&t[os("0x3b")]==n)),s=i[os("0x19")]((({type:t,subType:e})=>o[os("0x3c")]==t&&o[os("0x3b")]==e));if(r<0||s<0)return!1;const x=t[os("0x38")](),a=o[os("0x38")]();if((0==r||1==r)&&2==s&&x[os("0x4f")](a))return!0;if(2==r&&3==s){const t=e[os("0x47")](x,os("0x50")).filter((({suggestion:t,meta:e})=>e[os("0xc")]&&os("0xf")==t[os("0x3b")]));if(t.length>1&&a[os("0x1f")][os("0x17")](x[os("0x1b")]))return!0;if(1==t.length&&(x[os("0x1b")].isEqual(a[os("0x1f")])||x[os("0x1f")][os("0x17")](a[os("0x1b")])))return!0}if(3==r&&3==s&&x[os("0x1b")].isBefore(a[os("0x1b")])){const t=x[os("0x1f")][os("0x52")],e=a.start[os("0x3d")];return n[os("0x22")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x44")][os("0x3a")]("ImageResize")&&(e[os("0x34")]("resizeImage",[],["resizedWidth"]),e[os("0x4d")][os("0x0")](os("0xa"),Qo(o,os("0x48")))),t[os("0x44")][os("0x3a")]("ImageTextAlternativeEditing")&&e[os("0x34")]("imageTextAlternative",[],[os("0x39")]),e[os("0x4d")][os("0x26")]((t=>{if(i.find((({type:e,subType:n})=>t.type==e&&t[os("0x3b")]==n)))return t[os("0x51")]?{}:void 0})),e[os("0x4d")][os("0x26")]((t=>{if(os("0x50")==t[os("0x3c")]||"deletion"==t[os("0x3c")]){const e=t[os("0xe")]();if(e&&e.is(os("0xd"),os("0x29")))return{type:"insertion"==t[os("0x3c")]?os("0x2"):os("0x49"),element:e,quantity:1}}})),e._descriptionFactory[os("0x26")]((t=>"formatBlock"==t[os("0x3c")]&&os("0xf")==t[os("0x3b")]?{type:os("0x42"),content:"Inline image to block image"}:"formatBlock"==t[os("0x3c")]&&os("0x56")==t.subType?{type:"format",content:os("0x1c")}:void 0)),e[os("0x4d")].registerDescriptionCallback((t=>{if(os("0x3")!=t.type)return;const{data:e}=t;if(!e||"alt"!=e[os("0x55")])return;const n=e[os("0x30")];return n?{type:os("0x42"),content:Qo(o,os("0x35"),'"'+n+'"')}:{type:"format",content:Qo(o,os("0x2b"))}})),this._registerLegacyDescription()}[os("0x4e")](){const t=this[os("0x20")],e=t[os("0x25")];t[os("0x44")][os("0x54")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{if(os("0x18")!=t[os("0x3c")]&&"formatInline"!=t[os("0x3c")])return;const{data:n}=t;if(n){if(os("0x8")==n.commandName){const t=n[os("0x36")][0][os("0x30")];return t?{type:os("0x42"),content:Qo(e,os("0x35"),'"'+t+'"')}:{type:os("0x42"),content:Qo(e,"*Remove image text alternative*")}}if(os("0x16")==n[os("0x7")]){const t=n.commandParams[0][os("0x23")];return t?{type:os("0x42"),content:Qo(e,os("0x24"),t)}:{type:os("0x42"),content:Qo(e,os("0x15"))}}}}))}}const rs=["plugins","get","has","afterInit","editor","type","oldValue","*Format:* replace image URL","_descriptionFactory","_registerLegacyDescription","newValue","attribute","registerDescriptionCallback","format","replaceImageSource","key","ImageEditing","formatBlock","formatInline","src"];var ss,xs;ss=rs,xs=183,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x0")](){if(!this[as("0x1")][as("0x11")][as("0x13")](as("0xd")))return;const t=this[as("0x1")].locale,e=this[as("0x1")].plugins[as("0x12")]("TrackChangesEditing");e.enableDefaultIntegration("replaceImageSource",[],[as("0x10")]),e._descriptionFactory.registerDescriptionCallback((e=>{if(as("0x8")!=e[as("0x2")])return;const{data:n}=e;return n&&as("0x10")==n[as("0xc")]?n[as("0x7")]&&n[as("0x3")]?{type:as("0xa"),content:Qo(t,as("0x4"))}:{type:as("0xa"),content:""}:void 0})),this._registerLegacyDescription()}[as("0x6")](){const t=this[as("0x1")],e=t.locale;t.plugins[as("0x12")]("TrackChangesEditing")[as("0x5")][as("0x9")]((t=>{if(as("0xe")!=t.type&&as("0xf")!=t[as("0x2")])return;const{data:n}=t;return n&&as("0xb")===n.commandName?{type:as("0xa"),content:Qo(e,as("0x4"))}:void 0}))}}const ls=["newRange","imageTypeInline","length","refresh","imageStylePreApply","imageStylePostApply","accept","from","suggestion","getContainedElement","document","name","selection","ImageUtils","isInContent","_splitMarkerName","locale","end","convertInlineImageToBlock","insertion","findIndex","discard","markBlockFormat","getFirstRange","imageTypeBlock","filter","_findSuggestions","plugins","FORMAT_SIDE_IMAGE","isBefore","start","registerPostFixer","get","chain","commandReversedParams","discardSuggestion","_suggestionFactory","isIntersecting","value","ImageStyleEditing","markInlineFormat","getChangedMarkers","formatBlock","author","imageCaption","isOwn","getSuggestion","has","toLowerCase","_descriptionFactory","model","formatInline","nodeBefore","getClosestSelectedImageElement","isInlineImage","afterInit","registerCustomCallback","change","commands","isBlockImage","join","imageStyle","enableCommand","next","differ","subType","type","TrackChangesEditing","commandParams","createRangeOn","isEqual","hasSuggestion","editor","getSuggestions","setImageNaturalSizeAttributes","head","commandName","_registerLegacyDescription","title","side","Users"];var us,ds;us=ls,ds=276,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x16")](){const t=this[gs("0x27")];if(!t[gs("0x4b")][gs("0xe")](gs("0x6")))return;const n=t[gs("0x4b")][gs("0x50")]("TrackChangesEditing"),o=t[gs("0x4b")][gs("0x50")](gs("0x3d")),i={};n[gs("0x1d")](gs("0x1c"),((i,r)=>{const s=t[gs("0x4b")][gs("0x50")](gs("0x2f")).me,x=t.commands.get(gs("0x1c"));let a=o[gs("0x14")](t[gs("0x11")][gs("0x3a")].selection),c=t[gs("0x11")].createRangeOn(a),l=x[gs("0x5")];if(l==r[gs("0x5")])return;const u={commandName:gs("0x1c"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[gs("0x18")]((()=>{if(n[gs("0x28")]()[gs("0x49")]((t=>t[gs("0x3e")]&&s==t[gs("0xa")]&&(gs("0x9")==t[gs("0x21")]||gs("0x12")==t.type)&&(gs("0x34")==t.subType||"imageStylePostApply"==t[gs("0x20")])&&t.getFirstRange()[gs("0x25")](c))).forEach((t=>n[gs("0x2")](t[gs("0x2a")]))),a=o[gs("0x14")](t[gs("0x11")][gs("0x3a")][gs("0x3c")]),c=t.model[gs("0x24")](a),x[gs("0x33")](),t[gs("0x19")][gs("0x50")](gs("0x31")).refresh(),t[gs("0x19")][gs("0x50")](gs("0x48"))[gs("0x33")](),l=x[gs("0x5")],l!=r.value)return o[gs("0x15")](a)&&x.shouldConvertImageType(r[gs("0x5")],a)?(i({...r,setImageSizes:!1}),a=o[gs("0x14")](t[gs("0x11")].document[gs("0x3c")]),void n[gs("0x46")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x34"))):void(o[gs("0x1a")](a)?n.markBlockFormat(a,u,[],gs("0x35")):n[gs("0x7")](c,u,gs("0x35")))}))}));for(const e of t[gs("0x4b")][gs("0x50")]("ImageStyleEditing").normalizedStyles)i[e[gs("0x3b")]]=e[gs("0x2d")][gs("0xf")]();n[gs("0x3")][gs("0x17")](gs("0x9"),gs("0x34"),gs("0x1b"),(()=>!1)),n[gs("0x3")].registerCustomCallback("formatBlock",gs("0x35"),gs("0x1b"),(()=>!1)),n[gs("0x3")][gs("0x17")](gs("0x12"),gs("0x35"),gs("0x1b"),(()=>!1)),n[gs("0x3")][gs("0x17")]("formatBlock",gs("0x34"),gs("0x36"),(([t])=>{o[gs("0x29")](t[gs("0x39")]())})),n[gs("0x3")][gs("0x17")]("formatBlock",gs("0x34"),gs("0x45"),((t,e)=>{n._suggestionFactory.getSuggestionCallback(gs("0x9"),"",gs("0x36"))(t,{commandName:e[gs("0x2b")],commandParams:e[gs("0x1")]})})),n[gs("0x3")][gs("0x17")](gs("0x9"),"imageStylePreApply",gs("0x0"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:gs("0x9"),subType:gs("0x34")},{type:gs("0x43"),subType:gs("0xb")},{type:"formatBlock",subType:gs("0x42")},{type:gs("0x43"),subType:"convertInlineImageToBlock"}];function s(t,e){const i=r.findIndex((({type:e,subType:n})=>t[gs("0x21")]==e&&t[gs("0x20")]==n)),s=r[gs("0x44")]((({type:t,subType:n})=>e.type==t&&e[gs("0x20")]==n));if(i<0||s<0)return!1;const x=t.getFirstRange(),a=e[gs("0x47")]();if((0==i||1==i)&&2==s&&x[gs("0x4")](a))return!0;if(2==i&&3==s){const t=n[gs("0x4a")](x,gs("0x43")).filter((({suggestion:t,meta:e})=>e[gs("0xc")]&&gs("0x42")==t[gs("0x20")]));if(t[gs("0x32")]>1&&a[gs("0x41")][gs("0x25")](x.start))return!0;if(1==t[gs("0x32")]&&(x[gs("0x4e")].isEqual(a[gs("0x41")])||x[gs("0x41")][gs("0x25")](a.start)))return!0}if(3==i&&3==s&&x[gs("0x4e")][gs("0x4d")](a[gs("0x4e")])){const t=x[gs("0x41")].nodeAfter,e=a[gs("0x4e")][gs("0x13")];return o[gs("0x1a")](t)&&t===e}return!1}t[gs("0x11")][gs("0x3a")][gs("0x4f")]((()=>{let e=!1;const i=Array[gs("0x37")](t[gs("0x11")][gs("0x3a")][gs("0x1f")][gs("0x8")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x3f")](t);if(gs("0x38")==i&&n[gs("0x26")](a)){if(gs("0x9")==s&&(gs("0x34")==x||gs("0x35")==x)){const t=n[gs("0xd")](a);if(r[gs("0x30")]){const i=t[gs("0x47")]().getContainedElement();if(o.isBlockImage(i))continue;n[gs("0x2")](t),e=!0}}if(gs("0x43")==s&&"imageCaption"==x&&!r.newRange){const t=n[gs("0xd")](a);t[gs("0x1e")]&&t[gs("0x1e")][gs("0x3e")]&&(n[gs("0x2")](t.next),e=!0)}}}return e})),this._registerLegacyDescription(i)}[gs("0x2c")](t){const e=this[gs("0x27")],n=e[gs("0x40")];e[gs("0x4b")].get(gs("0x22"))[gs("0x10")].registerDescriptionCallback((e=>{if("formatBlock"!=e[gs("0x21")]&&gs("0x12")!=e[gs("0x21")])return;const{data:o}=e;if(!o||"imageStyle"!=o[gs("0x2b")])return;const i=o[gs("0x23")][0][gs("0x5")];return r=gs("0x2e")===i?Qo(n,gs("0x4c")):t[i]||i,{type:"format",content:Qo(n,"*Format:* %0",r)};var r}))}}const ms=["_trackChangesValueDuringImport","_trackChangesExecuted","high","listenTo","track_changes","dataInsert","execute","value","Users","get","afterInit","collaboration_features","_setSuggestionData","_handleImportedData","commands","importWord","plugins","editor","enableCommand","forEach","trackChanges","TrackChangesEditing"];var hs,ps;hs=ms,ps=232,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0xa")]=!1,this[bs("0xb")]=!1}[bs("0x14")](){const t=this[bs("0x5")],e=t[bs("0x2")][bs("0x13")](bs("0x3")),n=t[bs("0x2")][bs("0x13")](bs("0x8"));e&&(e.on(bs("0x10"),((t,[,e])=>{this[bs("0xa")]=n.value,e[bs("0x15")][bs("0xe")]=!this[bs("0xa")]}),{priority:bs("0xc")}),this[bs("0xd")](e,bs("0xf"),this._handleImportedData.bind(this)),this[bs("0xd")](e,bs("0xf"),(()=>{this[bs("0xb")]&&(n[bs("0x10")](),this[bs("0xb")]=!1)}),{priority:"lowest"}),t.plugins[bs("0x13")](bs("0x9"))[bs("0x6")]("importWord"))}[bs("0x1")](t,e){const{suggestions:n}=e,o=this[bs("0x5")].commands[bs("0x13")](bs("0x8")),i=o[bs("0x11")];this[bs("0xa")]!==i&&(o[bs("0x10")](),this[bs("0xb")]=!0),n&&n[bs("0x7")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this.editor.plugins.get(bs("0x12")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0x3")}}};this[bs("0x5")][bs("0x4")].get(bs("0x9"))[bs("0x0")](i)}))}}const _s=["*Indent:* %0","blockIndent","IndentEditing","registerDescriptionCallback","outdent","get","indent","registerAttributeLabel","registerBlockAttribute","has","formatBlock","indentBlock","TrackChangesEditing","outdentBlock","getItems","getItemLabel","IndentBlock","locale","plugins","format","enableDefaultIntegration","enableCommand","FORMAT_INDENT","_registerLegacyDescription","editor","_descriptionFactory"];var Ts,ys;Ts=_s,ys=486,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{afterInit(){const t=this[Cs("0x6")],e=t.plugins[Cs("0xd")](Cs("0x14"));if(t[Cs("0x0")][Cs("0x11")](Cs("0xa"))&&(e[Cs("0x3")](Cs("0xe")),e.enableCommand(Cs("0xc"))),t[Cs("0x0")][Cs("0x11")](Cs("0x18")))for(const t of[Cs("0x13"),Cs("0x15")])e[Cs("0x2")](t);const n=t[Cs("0x19")];e[Cs("0x10")](Cs("0x9")),e[Cs("0x7")][Cs("0xf")](Cs("0x9"),Qo(n,Cs("0x4"))),this[Cs("0x5")]()}[Cs("0x5")](){const t=this[Cs("0x6")],e=t[Cs("0x19")],n=t[Cs("0x0")].get(Cs("0x14"));n._descriptionFactory[Cs("0xb")]((t=>{if(Cs("0x12")!=t.type)return;const{data:o}=t;if(!o)return;if(Cs("0x13")!=o.commandName&&"outdentBlock"!=o.commandName)return;const i=t[Cs("0x16")]()[0],r=n[Cs("0x7")][Cs("0x17")](i);return Cs("0x13")==o.commandName?{type:Cs("0x1"),content:Qo(e,Cs("0x8"),r)}:"outdentBlock"==o.commandName?{type:Cs("0x1"),content:Qo(e,"*Outdent:* %0",r)}:void 0}))}}var ks,Rs,Is=["editor","TrackChangesEditing","requires","get","plugins","enableCommand","input"];ks=Is,Rs=477,function(t){for(;--t;)ks.push(ks.shift())}(++Rs);var Ss=function(t,e){return Is[t-=0]};class Ns extends t.Plugin{static get[Ss("0x1")](){return[Vi.Input]}init(){this[Ss("0x6")][Ss("0x3")][Ss("0x2")](Ss("0x0"))[Ss("0x4")](Ss("0x5"))}}const vs=["*Set link:* %0","registerAttributeLabel","_registerLegacyDescription","get","enableDefaultIntegration","commandName","type","commandParams","commands","linkHref","plugins","label","unlink","format","TrackChangesEditing","link (","link","_descriptionFactory","newValue","*Remove link*","toLowerCase","registerDescriptionCallback","manualDecorators","key","afterInit","formatInline","has","locale"];var Ls,Ms;Ls=vs,Ms=427,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const Os=function(t,e){return vs[t-=0]};class ws extends t.Plugin{[Os("0x11")](){const t=this.editor;if(!t[Os("0x3")][Os("0x13")]("LinkEditing"))return;const e=t[Os("0x3")][Os("0x18")]("TrackChangesEditing"),n=t[Os("0x1")][Os("0x18")](Os("0x9"));e[Os("0x19")]("link",[Os("0x2"),...n[Os("0xf")].map((t=>t.id))]),e[Os("0x19")](Os("0x5"));for(const t of n[Os("0xf")])e[Os("0xa")][Os("0x16")](t.id,Os("0x8")+t[Os("0x4")][Os("0xd")]()+")");e[Os("0xa")][Os("0xe")]((e=>{if("attribute"!=e[Os("0x1b")])return;const{data:n}=e,o=t.locale;if(!n)return;if(Os("0x2")!=n[Os("0x10")])return;const i=n[Os("0xb")];return i?{type:"format",content:Qo(o,Os("0x15"),'"'+i+'"')}:{type:Os("0x6"),content:Qo(o,Os("0xc"))}})),this[Os("0x17")]()}[Os("0x17")](){const t=this.editor,e=t[Os("0x14")];t[Os("0x3")][Os("0x18")](Os("0x7"))[Os("0xa")].registerDescriptionCallback((t=>{if(Os("0x12")!=t[Os("0x1b")])return;const{data:n}=t;if(n){if("link"==n[Os("0x1a")]){const t=n[Os("0x0")][0];return{type:Os("0x6"),content:Qo(e,Os("0x15"),'"'+t+'"')}}return"unlink"==n[Os("0x1a")]?{type:Os("0x6"),content:Qo(e,Os("0xc"))}:void 0}}))}}const Fs=["plugins","commandName","ELEMENT_TODO_LIST","nextSibling","TodoListEditing","editor","has","numberedList","registerDescriptionCallback","enableCommand","*Check item*","element","findIndex","selection","filter","length","_selectedElements","getSelectedBlocks","slice","forceValue","createPositionAt","listType","registerElementLabel","bulletedList","checkTodoList","change","TrackChangesEditing","get","*Indent:* %0","replace","format","outdentList","formatBlock","add","value","_descriptionFactory","before","markBlockFormat","parent","name","type","isObject","commands","from","listIndent","model","ELEMENT_NUMBERED_LIST","push","listItem","end","*Change to:* %0","blockName","ELEMENT_LIST_ITEM","todoListChecked","execute","locale","checkChild","todoList","*Outdent:* %0","afterInit","previousSibling","getAttribute","document"];var Ds,Bs;Ds=Fs,Bs=204,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x2c")](){const t=this[Ps("0x35")],e=t[Ps("0x28")];if(!t[Ps("0x30")][Ps("0x36")]("ListEditing"))return;const n=t.plugins[Ps("0xc")](Ps("0xb")),o=t[Ps("0x30")][Ps("0x36")](Ps("0x34"));function i(e){return()=>{const o=t[Ps("0x1e")][Ps("0x2f")].selection,i=t[Ps("0x1b")][Ps("0xc")](e);if(i.value)return void t[Ps("0x27")]("paragraph",{});const r=e[Ps("0x3")](0,-4),s=function(t,e,n){let o=Array[Ps("0x1c")](t)[Ps("0x3e")]((t=>{return e=t,(o=n)[Ps("0x29")](e[Ps("0x17")],"listItem")&&!o[Ps("0x1a")](e);var e,o}));o=o[Ps("0x3e")]((t=>!t.is(Ps("0x3b"),Ps("0x21"))||t[Ps("0x2e")](Ps("0x6"))!=e));const i=new Set;for(const t of o)t.is(Ps("0x3b"),Ps("0x21"))?i[Ps("0x12")](js(t)):i[Ps("0x12")](t);return Array.from(i)}(o[Ps("0x2")](),r,t[Ps("0x1e")].schema);t[Ps("0x1e")][Ps("0xa")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!i[Ps("0x13")]}],formatGroupId:Ps("0x24")},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[Ps("0x3c")]((t=>"listItem"!=t[Ps("0x18")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ps("0x1e")][Ps("0x2f")][Ps("0x3d")][Ps("0x2")]()),i=t[Ps("0x1e")].createRange(t[Ps("0x1e")][Ps("0x5")](o[0],Ps("0x15")),t[Ps("0x1e")][Ps("0x5")](o[o[Ps("0x0")]-1],Ps("0x22")));t[Ps("0x1e")][Ps("0xa")]((()=>{n[Ps("0x16")](i,{commandName:e,commandParams:[],formatGroupId:Ps("0x1d")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x33")];for(;t&&t[Ps("0x2e")](Ps("0x1d"))>n[Ps("0x2e")]("listIndent");)e.add(t),t=t.nextSibling}return Array.from(e)}(o))}))}}n[Ps("0x39")](Ps("0x37"),i(Ps("0x37"))),n[Ps("0x39")](Ps("0x8"),i(Ps("0x8"))),o&&n[Ps("0x39")]("todoList",i(Ps("0x2a"))),n[Ps("0x39")]("indentList",r("indentList")),n[Ps("0x39")](Ps("0x10"),r("outdentList")),o&&n[Ps("0x39")](Ps("0x9"),(()=>{const e=t[Ps("0x1b")][Ps("0xc")](Ps("0x9")),o=Array[Ps("0x1c")](e[Ps("0x1")]);o[Ps("0x3e")]((t=>t[Ps("0x2e")](Ps("0x26"))!=e[Ps("0x13")])),t[Ps("0x1e")][Ps("0xa")]((()=>{for(const t of o)n[Ps("0x16")](t,{commandName:Ps("0x9"),commandParams:[{forceValue:!e[Ps("0x13")]}]})}))})),n[Ps("0x14")][Ps("0x7")](Ps("0x21"),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x14")][Ps("0x38")]((t=>{if(Ps("0x11")!=t[Ps("0x19")]&&"formatInline"!=t[Ps("0x19")])return;const{data:n}=t;if(n){if(Ps("0x37")==n[Ps("0x31")]||Ps("0x8")==n.commandName||Ps("0x2a")==n[Ps("0x31")])switch(n.commandName[Ps("0xe")]("List","")){case"bulleted":return o(Qo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Qo(e,Ps("0x1f")));case"todo":return o(Qo(e,Ps("0x32")))}if("indentList"==n.commandName)return{type:Ps("0xf"),content:Qo(e,Ps("0xd"),Qo(e,Ps("0x25")))};if(Ps("0x10")==n[Ps("0x31")])return{type:"format",content:Qo(e,Ps("0x2b"),Qo(e,Ps("0x25")))};if("checkTodoList"==n[Ps("0x31")])return n.commandParams[0][Ps("0x4")]?{type:"format",content:Qo(e,Ps("0x3a"))}:{type:Ps("0xf"),content:Qo(e,"*Uncheck item*")}}function o(t){return{type:Ps("0xf"),content:Qo(e,Ps("0x23"),t)}}}))}}function js(t){const e=t[Ps("0x2e")](Ps("0x1d"));if(0==e)return t;let n=t;for(;t[Ps("0x2d")]&&t[Ps("0x2d")].is(Ps("0x3b"),Ps("0x21"));){const o=t[Ps("0x2d")][Ps("0x2e")](Ps("0x1d"));if(o==e)n=t[Ps("0x2d")];else if(o<e)break;t=t.previousSibling}return n}function Gs(t){const e=[];if(t.is("element",Ps("0x21"))&&t[Ps("0x2e")](Ps("0x1d"))>0){let n=t[Ps("0x33")];for(;n&&Ps("0x21")==n.name&&n[Ps("0x2e")]("listIndent")==t.getAttribute(Ps("0x1d"));)e[Ps("0x20")](n),n=n[Ps("0x33")]}return e}const Hs=["length","editor","formatInline","from","getSelectedBlocks","_getSuggestionBlocks","handleListStyleCommand","backward","*Change to:* %0","replace","unshift","format","push","map","markMultiRangeBlockFormat","get","toUpperCase","list.properties","getLastPosition","before","_getSuggestionBlocksForListStyle","model","registerDescriptionCallback","commandName","listType","ELEMENT_","handleListStartCommand","filter","document","_descriptionFactory","_getTranslationKeyForListStyle","plugins","styles","listStart","handleDescriptions","listItem","_LIST_","ListPropertiesEditing","config","getFirstPosition","selection","*Format:* set order to reversed","handleListReversedCommand","flat","listReversed","getListTypeFromListStyleType","TrackChangesEditing","ListUtils","*Format:* set start index to %0","element","formatBlock","enableCommand","createPositionAt","getSiblingNodes","type","createRange","bind","startIndex","listStyle","forward","afterInit","change","commandParams","has","reversed","numbered","*Format:* set order to regular"];var Vs,zs;Vs=Hs,zs=350,function(t){for(;--t;)Vs.push(Vs.shift())}(++zs);const Ws=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{[Ws("0x2d")](){if(!this[Ws("0x35")][Ws("0x10")][Ws("0x30")](Ws("0x16")))return;const t=this[Ws("0x35")][Ws("0x17")][Ws("0x0")](Ws("0x2")),e=this[Ws("0x35")].plugins[Ws("0x0")]("TrackChangesEditing");t[Ws("0x11")]&&e[Ws("0x24")]("listStyle",this[Ws("0x3a")][Ws("0x29")](this)),t[Ws("0x31")]&&e[Ws("0x24")](Ws("0x1d"),this.handleListReversedCommand.bind(this)),t.startIndex&&e[Ws("0x24")](Ws("0x12"),this[Ws("0xb")].bind(this)),e[Ws("0xe")][Ws("0x7")](this[Ws("0x13")].bind(this))}[Ws("0x3a")](t,e={}){const n=this[Ws("0x35")][Ws("0x10")][Ws("0x0")](Ws("0x1f")),o=this._getSuggestionBlocksForListStyle();this[Ws("0x35")][Ws("0x6")][Ws("0x2e")]((()=>{n[Ws("0x42")](o,{commandName:Ws("0x2b"),commandParams:[{type:e[Ws("0x27")]}],formatGroupId:Ws("0x2b")})}))}[Ws("0x1b")](t,e={}){const n=this.editor[Ws("0x10")].get("TrackChangesEditing"),o=this._getSuggestionBlocks((t=>t.is("element",Ws("0x14"))&&Ws("0x32")===t.getAttribute(Ws("0x9"))));if(o[Ws("0x34")]<1)return;const i=o[Ws("0x41")]((t=>this[Ws("0x35")][Ws("0x6")].createRange(this[Ws("0x35")][Ws("0x6")][Ws("0x25")](t,Ws("0x4")),this[Ws("0x35")][Ws("0x6")][Ws("0x25")](t,0))));this.editor[Ws("0x6")][Ws("0x2e")]((()=>{n[Ws("0x42")](i,{commandName:"listReversed",commandParams:[{reversed:e[Ws("0x31")]}],formatGroupId:Ws("0x1d")})}))}[Ws("0xb")](t,e={}){const n=this[Ws("0x35")][Ws("0x10")][Ws("0x0")](Ws("0x1f")),o=this[Ws("0x39")]((t=>t.is(Ws("0x22"),"listItem")&&Ws("0x32")===t.getAttribute("listType")));if(o[Ws("0x34")]<1)return;const i=o[Ws("0x41")]((t=>this[Ws("0x35")].model[Ws("0x28")](this[Ws("0x35")][Ws("0x6")][Ws("0x25")](t,Ws("0x4")),this[Ws("0x35")].model[Ws("0x25")](t,0))));this.editor[Ws("0x6")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:Ws("0x12"),commandParams:[{startIndex:e[Ws("0x2a")]}],formatGroupId:Ws("0x12")})}))}[Ws("0x13")](t){if(Ws("0x23")!=t.type&&Ws("0x36")!=t.type)return;const e=this[Ws("0x35")].locale,{data:n}=t;if(!n)return;let o,i;switch(n[Ws("0x8")]){case Ws("0x2b"):o=Ws("0x3c"),i={type:Ws("0x3f"),content:Qo(e,o,Qo(e,this[Ws("0xf")](n[Ws("0x2f")][0][Ws("0x27")])))};break;case Ws("0x1d"):o=n.commandParams[0][Ws("0x31")]?Ws("0x1a"):Ws("0x33"),i={type:"format",content:Qo(e,o)};break;case"listStart":o=Ws("0x21"),i={type:Ws("0x3f"),content:Qo(e,o,n[Ws("0x2f")][0][Ws("0x2a")])}}return i}[Ws("0x5")](){var t,e,n,o;const i=this.editor[Ws("0x10")][Ws("0x0")](Ws("0x20"));let r=Array[Ws("0x37")](this[Ws("0x35")][Ws("0x6")][Ws("0xd")][Ws("0x19")][Ws("0x38")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r[Ws("0x3e")](...i.getSiblingNodes(this[Ws("0x35")][Ws("0x6")][Ws("0xd")][Ws("0x19")][Ws("0x18")](),Ws("0x3b"))),(null===(e=r[r[Ws("0x34")]-1])||void 0===e?void 0:e.is(Ws("0x22"),"listItem"))&&r[Ws("0x40")](...i.getSiblingNodes(this.editor[Ws("0x6")][Ws("0xd")].selection[Ws("0x3")](),Ws("0x2c"))),r=[...new Set(r)],(null===(o=null===(n=this[Ws("0x35")][Ws("0x6")][Ws("0xd")].selection.getFirstPosition())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is("element",Ws("0x14")))&&(r=r[Ws("0xc")]((t=>t.is(Ws("0x22"),Ws("0x14"))))),r}_getSuggestionBlocks(t){const e=this[Ws("0x35")][Ws("0x10")][Ws("0x0")](Ws("0x20"));let n=Array[Ws("0x37")](this.editor[Ws("0x6")][Ws("0xd")][Ws("0x19")][Ws("0x38")]())[Ws("0xc")](t).map((t=>{const n=this[Ws("0x35")][Ws("0x6")][Ws("0x25")](t,0);return[...e.getSiblingNodes(n,Ws("0x3b")),...e[Ws("0x26")](n,"forward")]}))[Ws("0x1c")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Ws("0xa")+this.editor.plugins[Ws("0x0")](Ws("0x20"))[Ws("0x1e")](t).toUpperCase()+Ws("0x15")+t[Ws("0x1")]()[Ws("0x3d")](/-/g,"_")}}const qs=["for","plugins","MediaEmbedEditing","high","registerElementLabel","dataDowncast","has","media","afterInit","editor","stop","mediaEmbed","conversion","options","elementToElement","downcastDispatcher","ELEMENT_MEDIA","TrackChangesEditing","get","data","div","_descriptionFactory","createEmptyElement"];var Xs,$s;Xs=qs,$s=384,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Ys=function(t,e){return qs[t-=0]};class Zs extends t.Plugin{[Ys("0xf")](){const t=this[Ys("0x10")];if(!t[Ys("0x8")][Ys("0xd")](Ys("0x9")))return;const e=t[Ys("0x8")][Ys("0x2")](Ys("0x1")),n=t.locale;e.enableCommand(Ys("0x12")),e[Ys("0x5")][Ys("0xb")](Ys("0xe"),(t=>Qo(n,Ys("0x0"),t))),t[Ys("0x13")][Ys("0x7")](Ys("0xc"))[Ys("0x15")]({model:Ys("0xe"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Ys("0x6")](Ys("0x4"))},converterPriority:Ys("0xa")}),t[Ys("0x3")][Ys("0x16")].on("attribute:url:media",((t,e,n)=>{n[Ys("0x14")].showSuggestionHighlights&&t[Ys("0x11")]()}),{priority:"high"})}}const Js=["has","enableCommand","afterInit","editor","plugins","MentionEditing"];var Qs,tx;Qs=Js,tx=470,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x1")];t[ex("0x2")][ex("0x4")](ex("0x3"))&&t[ex("0x2")].get("TrackChangesEditing")[ex("0x5")]("mention")}}const ox=["get","plugins","afterInit","pageBreak","_descriptionFactory","locale","enableCommand","has","registerElementLabel","TrackChangesEditing","ELEMENT_PAGE_BREAK","PageBreakEditing","editor"];var ix,rx;ix=ox,rx=309,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x5")](){const t=this[sx("0x2")];if(!t[sx("0x4")][sx("0xa")](sx("0x1")))return;t[sx("0x4")][sx("0x3")](sx("0xc"))[sx("0x9")](sx("0x6"));const e=t.plugins.get(sx("0xc")),n=t[sx("0x8")];e[sx("0x7")][sx("0xb")](sx("0x6"),(t=>Qo(n,sx("0x0"),t)))}}const ax=["data","nodeAfter","addMarker:suggestion:insertion","Paragraph","_descriptionFactory","$text","*Change to:* %0","options","TrackChangesEditing","locale","highest","span","bindElementToMarker","markerRange","toViewPosition","type","enableCommand","insertion","end","model","plugins","mapper","ELEMENT_PARAGRAPH","isLimit","isTouching","enableDefaultIntegration","checkChild","isBlock","getItemLabel","get","_registerLegacyDescription","name","activeMarkers","formatBlock","schema","paragraph","start","downcastDispatcher","createUIElement","editor","consume","showSuggestionHighlights","writer","ck-suggestion-marker-split","commandName","editing","registerDescriptionCallback","has","afterInit"];var cx,lx;cx=ax,lx=331,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0xb")](){const t=this[ux("0x2")];if(!t[ux("0x20")][ux("0xa")](ux("0xf")))return;const e=t.locale,n=t[ux("0x20")][ux("0x29")](ux("0x14"));n._descriptionFactory.registerElementLabel("paragraph",(t=>Qo(e,"ELEMENT_PARAGRAPH",t))),n[ux("0x25")](ux("0x2f")),n[ux("0x1c")]("insertParagraph"),t[ux("0x8")][ux("0x0")].on(ux("0xe"),gx(t),{priority:ux("0x16")}),t[ux("0xc")][ux("0x0")].on(ux("0xe"),((e,n,o)=>{o[ux("0x13")][ux("0x4")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x10")];o.registerDescriptionCallback((n=>{if(ux("0x1d")!==n[ux("0x1b")])return;const{start:i,end:r}=n.getFirstRange();if(!i[ux("0x24")](r)||!i.nodeAfter)return;const s=t[ux("0x1f")][ux("0x2e")],x=i.nodeAfter;return s[ux("0x27")](x)&&!s[ux("0x23")](x)&&s.checkChild(x,ux("0x11"))?{type:ux("0x1d"),content:Qo(e,"*Insert:* %0",o[ux("0x28")](x,1))}:void 0})),this[ux("0x2a")]()}[ux("0x2a")](){const t=this[ux("0x2")],e=t[ux("0x15")];t[ux("0x20")][ux("0x29")](ux("0x14"))[ux("0x10")][ux("0x9")]((t=>{if(ux("0x2d")!=t[ux("0x1b")])return;const{data:n}=t;return n&&ux("0x2f")==n[ux("0x7")]?{type:"format",content:Qo(e,ux("0x12"),Qo(e,ux("0x22")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[ux("0x20")].get(ux("0x14")),s=o[ux("0x19")][ux("0x30")],x=o[ux("0x19")][ux("0x1e")],a=t.model.schema;if(!s[ux("0x24")](x)||!s[ux("0xd")])return;const c=s[ux("0xd")];if(a[ux("0x27")](c)&&!a.isLimit(c)&&a[ux("0x26")](c,"$text")){if(!i.consumable[ux("0x3")](o[ux("0x19")],n[ux("0x2b")]))return;const t=i[ux("0x5")][ux("0x1")](ux("0x17"),{class:ux("0x6")}),s=i[ux("0x21")][ux("0x1a")](x);e&&r[ux("0x2c")].includes(o.markerName)&&i[ux("0x5")].addClass("ck-suggestion-marker--active",t),i.writer.insert(s,t),i[ux("0x21")][ux("0x18")](t,o.markerName)}}}const fx=["editor","plugins","get","_descriptionFactory","RemoveFormatEditing","_registerLegacyDescription","enableDefaultIntegration","TrackChangesEditing","has","formatBlock","locale","*Remove all formatting*","formatInline","afterInit","format","type","commandName"];var mx,hx;mx=fx,hx=150,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x10")](){const t=this[px("0x3")];t[px("0x4")][px("0xb")](px("0x7"))&&(t.plugins[px("0x5")](px("0xa"))[px("0x9")]("removeFormat"),this._registerLegacyDescription())}[px("0x8")](){const t=this[px("0x3")];t.plugins[px("0x5")](px("0xa"))[px("0x6")].registerDescriptionCallback((e=>{if(px("0xc")!=e[px("0x1")]&&px("0xf")!=e[px("0x1")])return;const{data:n}=e;return n&&"removeFormat"==n[px("0x2")]?{type:px("0x0"),content:Qo(t[px("0xd")],px("0xe"))}:void 0}))}}const Ex=["get","enableCommand","acceptSelectedSuggestions","trackChanges","acceptSuggestion","afterInit","TrackChangesEditing","goToNextRestrictedEditingException","RestrictedEditingModeEditing","discardAllSuggestions","acceptAllSuggestions","discardSuggestion","has"];var _x,Tx;_x=Ex,Tx=132,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x3")](){const t=this.editor;if(!t.plugins[yx("0xa")]("RestrictedEditingModeEditing"))return;const e=t.plugins.get(yx("0x4"));e[yx("0xc")]("goToPreviousRestrictedEditingException"),e[yx("0xc")](yx("0x5"));const n=t.plugins[yx("0xb")](yx("0x6"));n[yx("0xc")](yx("0x1")),n.enableCommand(yx("0x2")),n.enableCommand(yx("0x9")),n[yx("0xc")](yx("0x8")),n[yx("0xc")](yx("0x7")),n.enableCommand(yx("0x0")),n[yx("0xc")]("discardSelectedSuggestions")}}const Ax=["split","span","writer","createPositionBefore","ck-suggestion-marker--active","activeMarkers","consumable","ELEMENT_LINE_BREAK","includes","init","requires","model","locale","addMarker:suggestion","markerName","toViewPosition","mapper","editing","createUIElement","element","softBreak","merge","high","editor","registerElementLabel","shiftEnter","insert","get","plugins","downcastDispatcher","data","enableCommand","addMarker:suggestion:insertion","TrackChangesEditing","options"];var kx,Rx;kx=Ax,Rx=283,function(t){for(;--t;)kx.push(kx.shift())}(++Rx);const Ix=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Ix("0x7")](){return[ur.ShiftEnter]}[Ix("0x6")](){const t=this[Ix("0x14")],e=t[Ix("0x19")][Ix("0x18")](Ix("0x1e"));e[Ix("0x1c")](Ix("0x16")),t.editing.downcastDispatcher.on(Ix("0x1d"),Nx(t),{priority:"high"}),t[Ix("0xe")][Ix("0x1a")].on("addMarker:suggestion:deletion",Nx(t),{priority:Ix("0x13")}),t[Ix("0x1b")].downcastDispatcher.on(Ix("0xa"),((e,n,o)=>{o[Ix("0x1f")].showSuggestionHighlights&&Nx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Ix("0x15")]("softBreak",(e=>Qo(t[Ix("0x9")],Ix("0x4"),e)))}}function Nx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[Ix("0x19")][Ix("0x18")](Ix("0x1e"));if(!i[Ix("0x3")].test(o.markerRange,n.name))return;const s=t[Ix("0x8")];for(const t of o.markerRange.getItems()){if(!t.is(Ix("0x10"),Ix("0x11")))continue;const n="deletion"==o[Ix("0xb")][Ix("0x20")](":")[1]?Ix("0x12"):Ix("0x20"),x=i[Ix("0x22")][Ix("0xf")](Ix("0x21"),{class:"ck-suggestion-marker-"+n}),a=i[Ix("0xd")][Ix("0xc")](s[Ix("0x0")](t));e&&r[Ix("0x2")][Ix("0x5")](o[Ix("0xb")])&&i.writer.addClass(Ix("0x1"),x),i[Ix("0x22")][Ix("0x17")](a,x),i.mapper.bindElementToMarker(x,o[Ix("0xb")])}}}const vx=["isCollapsed","StandardEditingModeEditing","TrackChangesEditing","forceValue","editor","enableCommand","formatBlock","markInlineFormat","document","commandParams","selection","change","_descriptionFactory","from","plugins","commands","get","value","type","FORMAT_RESTRICTED_ENABLED","commandName","getRanges","formatInline"];var Lx,Mx;Lx=vx,Mx=344,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const Ox=function(t,e){return vx[t-=0]};class wx extends t.Plugin{afterInit(){const t=this[Ox("0x5")],e=t.model,n=t.locale;if(!t[Ox("0xf")].has(Ox("0x2")))return;const o=t[Ox("0xf")][Ox("0x11")](Ox("0x3")),i="restrictedEditingException",r=t[Ox("0x10")].get(i);o[Ox("0x6")](i,((t,n={})=>{const s=e[Ox("0x9")][Ox("0xb")];if(s[Ox("0x1")])return void t(n);const x=void 0!==n.forceValue?n[Ox("0x4")]:!r[Ox("0x12")];e[Ox("0xc")]((()=>{const t=Array[Ox("0xe")](s[Ox("0x16")]());for(const n of t){const t=x?[n]:Xi(i,n,e);for(const e of t)o[Ox("0x8")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[Ox("0xd")].registerDescriptionCallback((t=>{if(Ox("0x7")!=t[Ox("0x13")]&&Ox("0x0")!=t[Ox("0x13")])return;const{data:e}=t;return e&&e[Ox("0x15")]==i?e[Ox("0xa")][0][Ox("0x4")]?{type:"format",content:Qo(n,Ox("0x14"))}:{type:"format",content:Qo(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Fx=["style","TrackChangesEditing","plugins","type","has","inline","editor","getGhsAttributeNameForElement","_descriptionFactory","registerInlineAttribute","ghsAttributes","formatInline","config","registerAttributeLabel","commandParams","_registerLegacyDescription","afterInit","get","StyleUtils","styleName","normalizeConfig","FORMAT_STYLE","DataSchema","commandName","element","enableDefaultIntegration","Style","forceValue","*Remove format:* %0","toLowerCase","add","registerBlockAttribute","GeneralHtmlSupport"];var Dx,Bx;Dx=Fx,Bx=153,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x1c")](){const t=this.editor;if(!t[Px("0xe")][Px("0x10")](Px("0x5"))||!t[Px("0xe")][Px("0x10")](Px("0x1")))return;const e=t.plugins[Px("0x1d")](Px("0xd")),n=t.locale,o=t[Px("0x18")][Px("0x1d")]("style"),i=t[Px("0xe")][Px("0x1d")](Px("0xb")),r=t[Px("0xe")][Px("0x1d")](Px("0x1e"))[Px("0x20")](t[Px("0xe")].get(Px("0x1")),o.definitions);e[Px("0x4")](Px("0xc"));const s=new Set;for(const t of r.block){const e=i[Px("0x13")](t[Px("0x3")]);s.add(e)}const x=new Set;for(const t of r[Px("0x11")]){const e=i[Px("0x13")](t.element);x[Px("0x9")](e);for(const e of t[Px("0x16")])x.add(e)}for(const t of s)e[Px("0xa")](t),e[Px("0x14")][Px("0x19")](t,Qo(n,Px("0x0")));for(const t of x)e[Px("0x15")](t),e._descriptionFactory.registerAttributeLabel(t,Qo(n,Px("0x0")));this[Px("0x1b")]()}[Px("0x1b")](){const t=this[Px("0x12")],e=t.locale;t.plugins[Px("0x1d")](Px("0xd"))[Px("0x14")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type&&Px("0x17")!=t[Px("0xf")])return;const{data:n}=t;return n&&Px("0xc")===n[Px("0x2")]?n.commandParams[0][Px("0x6")]?{type:"format",content:Qo(e,"*Set format:* %0",n[Px("0x1a")][0][Px("0x1f")].toLowerCase())}:{type:"format",content:Qo(e,Px("0x7"),n[Px("0x1a")][0].styleName[Px("0x8")]())}:void 0}))}}const jx=["createRangeOn","oldRange","document","ELEMENT_TABLE_COLUMN","push","createTableWalker","ELEMENT_TABLE_ROW_WITH_TEXT","_splitMarkerName","selection","getColumnIndexes","minColumn","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","*Insert:* %0","cell","nodeBefore","writer","removeTableRow","addRange","isIntersectingWithRange","enableCommand","removeClass","_getCoordsForCells","addMarker:suggestion","markMultiRangeInsertion","findAncestor","type","first","ELEMENT_TABLE_ROW","getChangedMarkers","deletion","model","ELEMENT_TABLE_COLUMN_WITH_TEXT","getCellLocation","options","rootName","tableColumn","commands","TrackChangesEditing","substr","insertTableColumnLeft","isEqual","isInContent","batch","addClass","name","start","from","$textProxy","TableUtils","element","change:data","root","data","suggestion","afterInit","length","change","registerCustomCallback","_suggestionFactory","getAttribute","removeTableColumn","span","toLowerCase","some","discard","has","forceValue","_setupColumnsRowsFixing","getChanges","nodeAfter","ELEMENT_TABLE","tableRow","createPositionAt","registerDescriptionCallback","getRanges","getChildren","*Remove:* %0","insert","max","differ","values","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","hasAttribute","refresh","startsWith","get","$graveyard","position","last","plugins","ELEMENT_TABLE_WITH_TEXT","low","tablePaste","classes","fromRange","left","showSuggestionHighlights","subType","getRowIndexes","getFirstRange","insertion","add","minRow","detach","tableCell","map","locale","_tableSuggestions","markMultiRangeDeletion","filter","end","accept","order","registerPostFixer","_tablePostFixingSubtypes","getItems","enqueueChange","insertTableRowAbove","table","rowspan","execute","registerElementLabel","includes","selectTableColumn","maxRow","selectTableRow","_getSuggestionCoords","isArray","editor","join","_descriptionFactory","setSelection","TableEditing"];var Gx,Hx;Gx=jx,Hx=475,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Vx("0x2e")]=[Vx("0x2"),"tableColumn"],this[Vx("0x27")]=new Set}[Vx("0x78")](){const t=this.editor,e=t[Vx("0x60")].document[Vx("0x49")];if(!t[Vx("0x15")][Vx("0x83")](Vx("0x40")))return;const n=t[Vx("0x26")],o=t[Vx("0x15")][Vx("0x11")](Vx("0x67")),i=t.plugins[Vx("0x11")](Vx("0x72"));o[Vx("0x3e")][Vx("0x35")](Vx("0x32"),(t=>Qo(n,Vx("0x1"),t))),this[Vx("0x85")](),o[Vx("0x55")]("insertTable"),o[Vx("0x55")](Vx("0x39")),o[Vx("0x55")](Vx("0x37"));for(const n of[Vx("0x31"),"insertTableRowBelow"]){const r=t[Vx("0x66")][Vx("0x11")](n);o[Vx("0x55")](n,(n=>{t.model.change((t=>{n();const s="above"===r[Vx("0x2c")],x=i.getSelectionAffectedTableCells(e),a=i[Vx("0x1e")](x),c=s?a.first-1:a[Vx("0x14")]+1,l=x[0].findAncestor("table"),u=i[Vx("0x46")](l,{startRow:c,endRow:c}),d=Array[Vx("0x70")](u)[Vx("0x25")]((e=>t.createRangeOn(e[Vx("0x4f")])));o[Vx("0x59")](d,Vx("0x2"))}))}))}for(const n of[Vx("0x69"),"insertTableColumnRight"]){const r=t[Vx("0x66")][Vx("0x11")](n);o.enableCommand(n,(n=>{t[Vx("0x60")][Vx("0x7a")]((t=>{n();const s=Vx("0x1b")===r[Vx("0x2c")],x=i[Vx("0xc")](e),a=i[Vx("0x4a")](x),c=s?a[Vx("0x5c")]-1:a[Vx("0x14")]+1,l=x[0].findAncestor(Vx("0x32")),u=i[Vx("0x46")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Vx("0x70")](u)[Vx("0x25")]((e=>t[Vx("0x41")](e[Vx("0x4f")])));o[Vx("0x59")](d,Vx("0x65"))}))}))}for(const n of[Vx("0x52"),Vx("0x7e")]){const r=n[Vx("0x68")](11),s=r[Vx("0x80")](),x=s.substr(0,3)+Vx("0x7f"),a=Vx("0x32")+r,c="min"+r,l=Vx("0x9")+r;o[Vx("0x55")](n,(()=>{t.model[Vx("0x7a")]((t=>{const r=i.getSelectionAffectedTableCells(e),u=r[0][Vx("0x5a")](Vx("0x32"));let d;if(Vx("0x52")==n){const t=i[Vx("0x1e")](r);d={startRow:t[Vx("0x5c")],endRow:t[Vx("0x14")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(r);d={startColumn:t.first,endColumn:t[Vx("0x14")],includeAllSlots:!0}}const g=i[Vx("0x46")](u,d),f=Array[Vx("0x70")](g)[Vx("0x25")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Vx("0xe")](x)))),h=Wx(f[Vx("0x29")]((t=>!t[Vx("0xe")](x))))[Vx("0x25")]((e=>t[Vx("0x41")](e))),p=o[Vx("0x28")](h,a);if(p&&(Vx("0x2")==p[Vx("0x1d")]||Vx("0x65")==p[Vx("0x1d")])){const e=this._getSuggestionCoords(p);for(const n of m){const o=t[Vx("0x41")](n),r=i[Vx("0x62")](n),a=n[Vx("0x7d")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p[Vx("0x53")](o)}}}))}))}function r(n){const o=Array[Vx("0x70")](e[Vx("0x5")]()).map((t=>s.LiveRange[Vx("0x1a")](t)));t[Vx("0x60")][Vx("0x7a")]((e=>{const i=e[Vx("0x6c")];n=n[Vx("0x29")]((t=>Vx("0x12")!=t.root[Vx("0x64")])),e[Vx("0x3f")](n),t[Vx("0x66")][Vx("0x11")](Vx("0x52")).refresh(),t[Vx("0x34")](Vx("0x52"),{forceDefaultExecution:!0}),t[Vx("0x60")][Vx("0x30")]((()=>{t.model[Vx("0x30")](i,(t=>{const e=o[Vx("0x29")]((t=>Vx("0x12")!=t[Vx("0x75")][Vx("0x64")]));e.length>0&&t.setSelection(e);for(const t of o)t[Vx("0x23")]()}))}))}))}function a(n){t[Vx("0x60")][Vx("0x7a")]((o=>{const i=Array[Vx("0x70")](e.getRanges())[Vx("0x25")]((t=>s.LiveRange[Vx("0x1a")](t))),r=[];for(const t of n)for(const e of t[Vx("0x2f")]({shallow:!0}))r[Vx("0x45")](e);for(const e of r)Vx("0x12")!=e.root[Vx("0x64")]&&(o[Vx("0x3f")](o[Vx("0x3")](e,0)),t.commands.get("removeTableColumn")[Vx("0xf")](),t[Vx("0x34")](Vx("0x7e"),{forceDefaultExecution:!0}));const x=i[Vx("0x29")]((t=>"$graveyard"!=t[Vx("0x75")][Vx("0x64")]));x[Vx("0x79")]>0&&o.setSelection(x);for(const t of i)t[Vx("0x23")]()}))}function c(t,e){return e.every((e=>t[Vx("0x81")]((t=>t[Vx("0x2a")][Vx("0x6a")](e[Vx("0x6f")])||e[Vx("0x2a")][Vx("0x6a")](t[Vx("0x6f")])))))}function l(t,e){return t.some((t=>e[Vx("0x81")]((e=>t[Vx("0x2a")].isTouching(e[Vx("0x6f")])))))}t[Vx("0x76")].downcastDispatcher.on(Vx("0x58"),((t,e,n)=>{if(!n[Vx("0x63")][Vx("0x1c")])return;const o=e.item;if(!o)return;const i=n.mapper.toViewElement(o);function r(t){return Array[Vx("0x3b")](t)?t:[t]}i&&Vx("0x24")===o[Vx("0x6e")]&&(0,x.setHighlightHandling)(i,n[Vx("0x51")],((t,e,n)=>n[Vx("0x6d")](r(e[Vx("0x19")]),t)),((t,e,n)=>n[Vx("0x56")](r(e[Vx("0x19")]),t)))}),{priority:"highest"}),o[Vx("0x3e")][Vx("0x4")]((t=>{if(Vx("0x20")!=t[Vx("0x5b")]&&Vx("0x5f")!=t[Vx("0x5b")])return;const e=t.getContainedElement();if(null!=e&&e.is(Vx("0x73"),Vx("0x32"))){if("insertion"==t[Vx("0x5b")]){const e=t.getItems()[Vx("0x29")]((t=>t.is("$textProxy")))[Vx("0x25")]((t=>t[Vx("0x76")]));if(e.length)return{type:Vx("0x20"),content:Qo(n,Vx("0x4e"),Qo(n,Vx("0x16"),'"'+e[Vx("0x3d")](" ")+'"'))}}if("deletion"==t[Vx("0x5b")]){const e=t.getItems()[Vx("0x29")]((t=>t.is(Vx("0x71"))))[Vx("0x25")]((t=>t[Vx("0x76")]));if(e[Vx("0x79")])return{type:Vx("0x5f"),content:Qo(n,Vx("0x7"),Qo(n,Vx("0x16"),'"'+e.join(" ")+'"'))}}}})),o[Vx("0x3e")].registerDescriptionCallback((t=>{if(Vx("0x2")==t.subType){const e=t[Vx("0x2f")]()[Vx("0x29")]((t=>t.is(Vx("0x71")))).map((t=>t[Vx("0x76")])),o=this[Vx("0x3a")](t),i=o[Vx("0x38")]-o[Vx("0x22")]+1;if("insertion"==t[Vx("0x5b")])return e[Vx("0x79")]?{type:Vx("0x20"),content:Qo(n,Vx("0x4e"),Qo(n,Vx("0x47"),[i,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Qo(n,Vx("0x4e"),Qo(n,Vx("0x5d"),i))};if(Vx("0x5f")==t[Vx("0x5b")])return e.length?{type:Vx("0x5f"),content:Qo(n,Vx("0x7"),Qo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[i,'"'+e[Vx("0x3d")](" ")+'"']))}:{type:Vx("0x5f"),content:Qo(n,Vx("0x7"),Qo(n,Vx("0x5d"),i))}}if(Vx("0x65")==t.subType){const e=t[Vx("0x2f")]()[Vx("0x29")]((t=>t.is("$textProxy")))[Vx("0x25")]((t=>t.data)),o=this[Vx("0x3a")](t),i=o.maxColumn-o[Vx("0x4b")]+1;if(Vx("0x20")==t[Vx("0x5b")])return e[Vx("0x79")]?{type:Vx("0x20"),content:Qo(n,Vx("0x4e"),Qo(n,Vx("0x61"),[i,'"'+e[Vx("0x3d")](" ")+'"']))}:{type:Vx("0x20"),content:Qo(n,Vx("0x4e"),Qo(n,Vx("0x44"),i))};if(Vx("0x5f")==t[Vx("0x5b")])return e[Vx("0x79")]?{type:Vx("0x5f"),content:Qo(n,Vx("0x7"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Vx("0x3d")](" ")+'"']))}:{type:Vx("0x5f"),content:Qo(n,"*Remove:* %0",Qo(n,Vx("0x44"),i))}}})),o[Vx("0x7c")].registerCustomCallback(Vx("0x20"),Vx("0x2"),Vx("0x82"),r),o[Vx("0x7c")][Vx("0x7b")]("deletion",Vx("0x2"),Vx("0x2b"),r),o[Vx("0x7c")][Vx("0x7b")]("insertion","tableColumn",Vx("0x82"),a),o[Vx("0x7c")][Vx("0x7b")]("deletion",Vx("0x65"),Vx("0x2b"),a),o[Vx("0x7c")].registerCustomCallback(Vx("0x20"),Vx("0x65"),"join",c),o[Vx("0x7c")][Vx("0x7b")](Vx("0x5f"),Vx("0x65"),Vx("0x3d"),c),o[Vx("0x7c")][Vx("0x7b")](Vx("0x20"),"tableRow",Vx("0x3d"),l),o[Vx("0x7c")][Vx("0x7b")](Vx("0x5f"),"tableRow",Vx("0x3d"),l)}[Vx("0xd")](){const t=this.editor,e=t[Vx("0x60")][Vx("0x43")][Vx("0x49")];return(n,o)=>{t[Vx("0x60")][Vx("0x7a")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0][Vx("0x2a")][Vx("0x50")];x&&x[0]&&!1===x[0][Vx("0x84")]&&(a=n[0].start.nodeAfter);const c=i.createRangeIn(a);if(Vx("0x12")==c.root[Vx("0x64")])return;const l=Array[Vx("0x70")](e[Vx("0x5")]())[Vx("0x25")]((t=>s.LiveRange.fromRange(t)));i.setSelection(c),t[Vx("0x66")][Vx("0x11")](r).refresh(),x[Vx("0x45")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Vx("0x29")]((t=>Vx("0x12")!=t[Vx("0x75")][Vx("0x64")]));u[Vx("0x79")]>0&&i.setSelection(u);for(const t of l)t[Vx("0x23")]()}))}}[Vx("0x57")](t){const e=this[Vx("0x3c")][Vx("0x15")][Vx("0x11")](Vx("0x72"));let n=Number[Vx("0x4c")],o=Number[Vx("0x4d")],i=Number[Vx("0x4c")],r=Number[Vx("0x4d")];for(const s of t){if("$graveyard"==s[Vx("0x75")][Vx("0x64")])continue;const{row:t,column:x}=e[Vx("0x62")](s),a=s[Vx("0xe")](Vx("0x33"))?s.getAttribute(Vx("0x33"))-1:0,c=s[Vx("0xe")]("colspan")?s[Vx("0x7d")]("colspan")-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Vx("0x85")](){const t=this.editor,e=t[Vx("0x15")].get("TrackChangesEditing"),n=t.plugins[Vx("0x11")](Vx("0x72"));t[Vx("0x60")].document.on(Vx("0x74"),(()=>{const n=Array.from(t[Vx("0x60")][Vx("0x43")][Vx("0xa")][Vx("0x5e")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e[Vx("0x48")](t);if(Vx("0x77")!=n)continue;if(null!=o[Vx("0x42")])continue;const s=e.getSuggestion(i);this[Vx("0x2e")][Vx("0x36")](r)&&this[Vx("0x27")][Vx("0x21")](s)}}),{priority:Vx("0x17")});const o=(t,e)=>{let o=!1;const i=e.createRangeOn(t),r=t[Vx("0x5a")](Vx("0x32")),s=n[Vx("0x62")](t);for(const e of this[Vx("0x27")]){const n=e.subType,x=n[Vx("0x10")](Vx("0x18")),a=n.substr(x?10:5),c=a[Vx("0x80")](),l=c[Vx("0x68")](0,3)+Vx("0x7f"),u="min"+a,d=Vx("0x9")+a;if(!e[Vx("0x6b")])continue;if(r!=e[Vx("0x1f")]()[Vx("0x6f")][Vx("0x5a")](Vx("0x32")))continue;if(e[Vx("0x54")](i))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,f=this[Vx("0x3a")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Vx("0x53")](i),o=!0)}return o};t[Vx("0x60")].document[Vx("0x2d")]((e=>{let n=!1;for(const i of t[Vx("0x60")][Vx("0x43")][Vx("0xa")][Vx("0x86")]())if(Vx("0x8")==i[Vx("0x5b")])if("tableRow"==i[Vx("0x6e")])for(const t of i[Vx("0x13")].nodeAfter[Vx("0x6")]())n=n||o(t,e);else Vx("0x24")==i.name&&(n=n||o(i[Vx("0x13")][Vx("0x0")],e));return n}))}[Vx("0x3a")](t){return this[Vx("0x57")](t[Vx("0x5")]()[Vx("0x25")]((t=>t[Vx("0x6f")][Vx("0x0")])))}}function Wx(t){return Array[Vx("0x70")](new Set(t)[Vx("0xb")]())}const Kx=["getSuggestions","plugins","isEnabled","insertion","selection","low","findAncestor","editor","subType","deletion","get","set:isEnabled","model","formatInline","change","accept","table","registerCustomCallback","getSelectionAffectedTableCells","getRanges","registerDescriptionCallback","TrackChangesEditing","TableUtils","formatBlock","push","trackChanges","*Split cell:* vertically","has","horizontally","splitTableCellHorizontally","filter","getFirstPosition","rootName","setSelection","getAncestors","type","locale","document","mergeTableCellDown","forceDefaultExecution","cell","isInContent","markBlockFormat","TableEditing","find","mergeTableCellUp","value","detach","createTableWalker","from","size","highest","author","format","enableCommand","mergeTableCells","*Merge cells*","*Split cell:* horizontally","_isForcedDefaultExecutionBlock","direction","containsRange","stop","commands","fromRange","splitTableCellVertically","tableCell","refresh","add","createRangeOn","$graveyard","mergeTableCellLeft","_areSelectedCellsMergable","_suggestionFactory","length","execute","map","mergeTableCellRight","_areMergableCells","commandName","_acceptFormatSuggestionCallbackFactory","element"];var qx,Xx;qx=Kx,Xx=378,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Yx extends t.Plugin{static get requires(){return[zx]}afterInit(){const t=this.editor,e=t[$x("0x27")][$x("0x40")].selection,n=t[$x("0x3f")];if(!t.plugins[$x("0x36")]($x("0x46")))return;const o=t[$x("0x1c")][$x("0x25")]($x("0x30")),i=t[$x("0x1c")].get($x("0x31")),r=t[$x("0x1c")][$x("0x25")](zx);r._tablePostFixingSubtypes[$x("0x33")]("mergeTableCells"),o[$x("0x0")]($x("0x1"),(()=>{const e=i[$x("0x2d")](t[$x("0x27")].document.selection);t[$x("0x27")].change((()=>{o.markMultiRangeBlockFormat(e,{commandName:$x("0x1"),commandParams:[]},[],$x("0x1"))}))})),t[$x("0x8")].get($x("0x1")).on($x("0x14"),((e,n)=>{t[$x("0x8")].get($x("0x34")).value&&(n[$x("0x13")]>0&&n[n[$x("0x13")]-1]&&n[n[$x("0x13")]-1][$x("0x42")]||o[$x("0x4")]||this[$x("0x11")]()||e[$x("0x7")]())}),{priority:$x("0x4e")});for(const e of[$x("0x48"),$x("0x16"),$x("0x41"),$x("0x10")]){const n=t[$x("0x8")][$x("0x25")](e);o[$x("0x0")](e,(()=>{const e=t[$x("0x27")][$x("0x40")].selection[$x("0x3a")]()[$x("0x3d")]()[$x("0x47")]((t=>t.is($x("0x1a"),$x("0xb")))),i=n[$x("0x49")];t[$x("0x27")][$x("0x29")]((()=>{o.markMultiRangeBlockFormat([e,i],{commandName:"mergeTableCells",commandParams:[]},[],$x("0x1"))}))}))}for(const e of[$x("0xa"),$x("0x38")]){const n=t[$x("0x8")][$x("0x25")](e);o[$x("0x0")](e,(()=>{const r=i.getSelectionAffectedTableCells(t[$x("0x27")][$x("0x40")].selection)[0],s=r[$x("0x21")]($x("0x2b")),{column:x,row:a}=i.getCellLocation(r);let c=[];if($x("0x37")==n[$x("0x5")]){const t=i.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[$x("0x43")]))}else{const t=i[$x("0x4b")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x4c")](t)[$x("0x15")]((t=>t[$x("0x43")]))}t[$x("0x27")].change((t=>{o[$x("0x45")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[$x("0x2f")]((t=>{if($x("0x32")!=t[$x("0x3e")]&&"formatInline"!=t.type)return;const{data:e}=t;return e&&$x("0x1")==e[$x("0x18")]?{type:"format",content:Qo(n,$x("0x2"))}:void 0})),o._descriptionFactory[$x("0x2f")]((t=>{if("formatBlock"!=t[$x("0x3e")]&&$x("0x28")!=t[$x("0x3e")])return;const{data:e}=t;return e?$x("0xa")==e[$x("0x18")]?{type:$x("0x50"),content:Qo(n,$x("0x35"))}:$x("0x38")==e[$x("0x18")]?{type:$x("0x50"),content:Qo(n,$x("0x3"))}:void 0:void 0}));const x=r[$x("0x19")]();for(const t of[$x("0x48"),$x("0x16"),$x("0x41"),$x("0x10")])o[$x("0x12")][$x("0x2c")]("formatBlock",t,$x("0x2a"),x);for(const t of[$x("0xa"),$x("0x38")])o[$x("0x12")].registerCustomCallback($x("0x32"),t,$x("0x2a"),x);o[$x("0x12")][$x("0x2c")]($x("0x32"),$x("0x1"),$x("0x2a"),(n=>{t[$x("0x27")].change((o=>{const i=Array[$x("0x4c")](e.getRanges()).map((t=>s.LiveRange[$x("0x9")](t)));o[$x("0x3c")](n),t[$x("0x8")][$x("0x25")]($x("0x1"))[$x("0xc")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const r=i[$x("0x39")]((t=>$x("0xf")!=t.root[$x("0x3b")]));r.length>0&&o.setSelection(r);for(const t of i)t[$x("0x4a")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown","mergeTableCellLeft",$x("0x16")]){const n=t.commands.get(e);n.on($x("0x26"),((e,o,i)=>{if(i){const o=t[$x("0x27")][$x("0x40")].selection[$x("0x3a")]()[$x("0x3d")]()[$x("0x47")]((t=>t.is($x("0x1a"),"tableCell")));this[$x("0x17")](n[$x("0x49")],o)||(e.return=!1,e[$x("0x7")]())}}),{priority:$x("0x20")})}}_areSelectedCellsMergable(){const t=this.editor[$x("0x8")][$x("0x25")]($x("0x1")),e=this.editor[$x("0x1c")].get("TableUtils");if(!t[$x("0x1d")])return!1;const n=e[$x("0x2d")](this[$x("0x22")].model[$x("0x40")][$x("0x1f")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[$x("0x17")](t,e){const n=this[$x("0x22")].plugins[$x("0x25")]($x("0x30")),o=this[$x("0x22")][$x("0x27")][$x("0xe")](t),i=this[$x("0x22")].model.createRangeOn(e),r=new Set,s=new Set;for(const t of n[$x("0x1b")]())if(($x("0x1e")==t[$x("0x3e")]||$x("0x24")==t[$x("0x3e")]||"mergeTableCells"==t[$x("0x23")])&&t[$x("0x44")])for(const e of t[$x("0x2e")]())e[$x("0x6")](o,!0)&&r[$x("0xd")](t.type+":"+t[$x("0x4f")].id),e[$x("0x6")](i,!0)&&s[$x("0xd")](t.type+":"+t.author.id);if(r[$x("0x4d")]!=s.size)return!1;for(const t of r)if(!s[$x("0x36")](t))return!1;return!0}}const Zx=["editor","format","requires","key","_descriptionFactory","setTableRowHeader","get","forceValue","FORMAT_HEADER_ROW","TrackChangesEditing","plugins","registerDescriptionCallback","*Format:* %0","headingColumns","FORMAT_HEADER_COLUMN","FORMAT_REGULAR_ROW","type","locale","commandName","FORMAT_REGULAR_COLUMN","oldValue","newValue","enableDefaultIntegration","_registerLegacyDescription","formatBlock"];var Jx,Qx;Jx=Zx,Qx=251,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Zx[t-=0]};class ea extends t.Plugin{static get[ta("0x1")](){return[zx]}afterInit(){const t=this[ta("0x18")];if(!t[ta("0x9")].has("TableEditing"))return;const e=t[ta("0x10")],n=t[ta("0x9")][ta("0x5")]("TrackChangesEditing");function o(t){return{type:"format",content:Qo(e,ta("0xb"),t)}}n[ta("0x15")](ta("0x4"),[],["headingRows"]),n[ta("0x15")]("setTableColumnHeader",[],[ta("0xc")]),n._descriptionFactory[ta("0xa")]((t=>{const{data:n}=t;if(n)return"headingRows"==n[ta("0x2")]?n[ta("0x14")]>n[ta("0x13")]?o(Qo(e,ta("0x7"))):o(Qo(e,"FORMAT_REGULAR_ROW")):ta("0xc")==n[ta("0x2")]?n[ta("0x14")]>n[ta("0x13")]?o(Qo(e,ta("0xd"))):o(Qo(e,ta("0x12"))):void 0})),this[ta("0x16")]()}[ta("0x16")](){const t=this[ta("0x18")],e=t[ta("0x10")];function n(t){return{type:ta("0x0"),content:Qo(e,ta("0xb"),t)}}t[ta("0x9")][ta("0x5")](ta("0x8"))[ta("0x3")].registerDescriptionCallback((t=>{if(ta("0x17")!=t[ta("0xf")])return;const{data:o}=t;if(o){if(ta("0x4")==o.commandName){const t=o.commandParams[0][ta("0x6")];return n(Qo(e,t?"FORMAT_HEADER_ROW":ta("0xe")))}if("setTableColumnHeader"==o[ta("0x11")]){const t=o.commandParams[0].forceValue;return n(Qo(e,ta(t?"0xd":"0x12")))}}}))}}const na=["markerAttributes","columnInsertionIndexes","newRange","ck-suggestion-marker","markMultiRangeInsertion","markMultiRangeDeletion","fill","isEqual","createPositionBefore","add","conversion","markers","cell","formatBlock","model","filter","createRange","getAttributes","createRangeOn","accept","getColumns","markMultiRangeBlockFormat","nodeAfter","getAllAdjacentSuggestions","reduce","updateMarker","tableCellPadding","plugins","row","name","table","tablePaste","unwrap","discard","removeRows","cells","tableCellVerticalAlignment","setAttributes","Users","columnInsertionRanges","registerDescriptionCallback","endColumn","tableCellBackgroundColor","attributes","length","nextSibling","entries","return","forceDefaultExecution","insertContent","wrap","previous","createRangeIn","getRange","value","keys","get","registerPostFixer","getSuggestions","start","documentSelection","getChild","activeMarkers","insertion","locale","_splitMarkerName","batch","registerCustomCallback","low","_replaceTableSlotCell","getTableIfOnlyTableInContent","every","deletionRanges","columns","suggestion-td","afterInit","tablePasteChainId","rowInsertionRanges","suggestion","elementToElement","removeColumns","tableCellSuggestion","first","requires","last","removeMarker","selection","set","from","suggestion:formatBlock:tablePasteCell","stop","tablePasteColumn","removeMarkers","join","author","document","tableCellBorderColor","tablePasteRow","paragraph","getSuggestion","push","position","has","findAncestor","insertRows","TableUtils","rows","view","isInContent","end","suggestionUnloaded","createElement","startsWith","editor","subType","rowInsertionIndexes","root","type","trackChanges","getMarkers","dataDowncast","change","editing","options","getRows","schema","commands","createTableWalker","some","clipboardOutput","redo","tableCellBorderStyle","for","element","map","insert","high","$graveyard","tableCellBorderWidth","markerName","_suggestionFactory","setAttribute","next","remove","tablePasteCell","getRanges","TrackChangesEditing","ck-suggestion-marker-insertion","deletion","tableCell","markerToHighlight","differ","isEmpty","getRowIndexes","containsRange","tableCellHorizontalAlignment","_createdBatches","endRow","insertionRanges","getColumnIndexes","getContainedElement","fromEntries","includes","_getCoordsForCells","getChangedMarkers","_tablePostFixingSubtypes","TableClipboard","insertColumns","getChanges","column","oldRange","find","_descriptionFactory"];var oa,ia;oa=na,ia=250,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0x3d"),ra("0x13"),ra("0x36"),ra("0x4e"),ra("0x84"),ra("0x8a"),ra("0x7a")],xa=Object[ra("0x54")](sa[ra("0x39")]((t=>[t,null])));class aa extends t.Plugin{static get[ra("0x6")](){return[zx]}[ra("0xab")](){const t=this[ra("0x24")];if(!t[ra("0x7b")].has(ra("0x59")))return;const n=t[ra("0x7b")].get(ra("0x45")),o=t[ra("0x7b")].get(ra("0x1c")),i=t[ra("0x7b")].get(zx),r=t[ra("0x7b")][ra("0x98")](ra("0x59"));i[ra("0x58")][ra("0x17")]("tablePasteRow",ra("0xe")),t.model[ra("0x30")].register(ra("0x4"),{allowIn:ra("0x48"),allowContentOf:ra("0x48"),isLimit:!0}),t[ra("0x6a")][ra("0x2")]({model:ra("0x4"),view:ra("0xaa")});let s=null;t.model.on(ra("0x91"),((i,x)=>{const[a,c]=x,l=x[x[ra("0x8c")]-1];l&&l[ra("0x90")]||n._isForcedDefaultExecutionBlock||this[ra("0x24")][ra("0x31")][ra("0x98")](ra("0x29"))[ra("0x96")]&&function(t,e,n,o,i){if(e&&!e.is(ra("0x9c")))return!1;const r=i[ra("0xa6")](t,n);if(!r||!la(r,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n[ra("0x12")][ra("0x9")]);if(!s.length)return!1;const x=s[0][ra("0x1a")](ra("0x7e")),a=o[ra("0x4c")](s),c=o[ra("0x52")](s),l={startRow:a[ra("0x5")],endRow:a[ra("0x7")],startColumn:c.first,endColumn:c[ra("0x7")]};return 1==s[ra("0x8c")]&&(l[ra("0x50")]+=o[ra("0x2f")](r)-1,l[ra("0x89")]+=o[ra("0x74")](r)-1),la(x,l,o)}(a,c,t.model,o,r)&&(i[ra("0xd")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x6e")][ra("0x2c")]((()=>{t[ra("0x6e")][ra("0x91")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ra("0x8c")]&&n[ra("0x64")](i,ra("0x14"),{tablePasteChainId:o}),r[ra("0x8c")]&&n[ra("0x64")](r,ra("0xe"),{tablePasteChainId:o}),a[ra("0x8c")]&&n[ra("0x64")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0x8c")]&&n[ra("0x65")](c,ra("0x7f"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0x75")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x43"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[ra("0x6e")][ra("0x72")](o),s=e[ra("0x5e")]((t=>t[ra("0x95")]()[ra("0x67")](r)));s&&n.push([s.name,i])}n[ra("0x8c")]&&u[ra("0x40")](ra("0x60"),Object[ra("0x54")](n))}s=null})))}),{priority:e.priorities[ra("0x3b")]+10}),t[ra("0x7b")][ra("0x98")](ra("0x59")).on(ra("0xa5"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t.stop();const r=n[ra("0x6c")],x=o,a=ca(r),c=ca(x);t[ra("0x8f")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x42")](r[ra("0x9d")](0));for(const t of Array[ra("0xb")](x.getChildren()))i.insert(t,r,ra("0x20"));const t=s[ra("0x26")][ra("0x55")](n[ra("0x7c")]),e=s[ra("0x61")][ra("0x55")](n[ra("0x5c")]);t||e||(l=i[ra("0x94")](r))}else c&&!a&&(u=i[ra("0x94")](r));else{const t=i[ra("0x22")](ra("0x4")),e=i.createElement(ra("0x4"));i[ra("0x92")](i[ra("0x94")](r),e),i.insert(t,r,0);for(const e of Array.from(x.getChildren()))i[ra("0x3a")](e,t,ra("0x20"));l=i[ra("0x72")](t),u=i.createRangeOn(e)}const d=Array[ra("0xb")](x[ra("0x71")]())[ra("0x6f")]((([t])=>sa.includes(t)));s.cells[ra("0x17")]({element:r,attributes:d[ra("0x8c")]?Object.fromEntries(d):null}),l&&s[ra("0x51")][ra("0x17")](l),u&&s[ra("0xa8")][ra("0x17")](u)}),{priority:ra("0x3b")}),o.on(ra("0x5a"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0xa9")]||1;s[ra("0x61")]=new Array(a)[ra("0x66")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ra("0x32")](i,{startColumn:x,endColumn:x+a-1}))s[ra("0x87")].push(t[ra("0x6e")][ra("0x72")](e))}),{priority:ra("0xa4")}),o.on(ra("0x1b"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x1d")]||1;s[ra("0x26")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(i,{startRow:x,endRow:x+a-1}))s[ra("0x0")][ra("0x17")](t[ra("0x6e")].createRangeOn(e))}),{priority:ra("0xa4")}),n[ra("0x5f")][ra("0x88")]((e=>{if(e[ra("0x25")]&&e[ra("0x25")].startsWith(ra("0x7f")))return e[ra("0x93")]?{}:{type:ra("0x9f"),content:Qo(t[ra("0xa0")],"*Replace table cells*")}}));const x=()=>!1;for(const t of[ra("0x7f"),"tablePasteColumn",ra("0x14"),ra("0x43")])n[ra("0x3f")][ra("0xa3")]("insertion",t,ra("0x10"),x),n[ra("0x3f")].registerCustomCallback("deletion",t,ra("0x10"),x),n[ra("0x3f")].registerCustomCallback(ra("0x6d"),t,ra("0x10"),x);n[ra("0x3f")][ra("0xa3")]("formatBlock",ra("0x43"),ra("0x81"),x),n[ra("0x3f")].registerCustomCallback(ra("0x6d"),"tablePasteCell",ra("0x73"),((e,n,o)=>{const i=e[ra("0x39")]((t=>t[ra("0x53")]())).filter((t=>t)),r=new Map(i[ra("0x39")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x83")])e&&r.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[ra("0x8e")](o.markerAttributes)){const o=t.model[ra("0x6b")][ra("0x98")](e),i=o?o[ra("0x95")]()[ra("0x53")]():null;i&&r[ra("0xa")](i,n)}t.model[ra("0x2c")]((t=>{for(const[e,n]of r)t[ra("0x85")]({...xa,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[ra("0xa3")](e,ra("0x7f"),o,((i,r,s)=>{t[ra("0x6e")][ra("0x2c")]((t=>{const x=[];for(const t of i){const e=t[ra("0x9b")][ra("0x76")];e.is(ra("0x38"),ra("0x4"))&&x[ra("0x17")](e)}n[ra("0x3f")].getSuggestionCallback(e,null,o)(i,r,s);for(const e of x)ra("0x3c")!=e[ra("0x27")].rootName&&t[ra("0x80")](e)}))}))};a(ra("0x9f"),ra("0x73")),a("insertion","discard"),a(ra("0x47"),ra("0x73")),a("deletion",ra("0x81")),n[ra("0x3f")][ra("0xa3")]("insertion",ra("0x14"),ra("0x81"),(t=>{const e=t[ra("0x39")]((t=>t[ra("0x53")]())),n=e[0][ra("0x1a")](ra("0x7e")),{minRow:r,maxRow:s}=i[ra("0x56")](e);o[ra("0x82")](n,{at:r,rows:s-r+1})})),n[ra("0x3f")].registerCustomCallback(ra("0x9f"),"tablePasteColumn",ra("0x81"),(t=>{const e=t[ra("0x39")]((t=>t[ra("0x53")]())),n=e[0][ra("0x1a")]("table"),{minColumn:r,maxColumn:s}=i[ra("0x56")](e);o[ra("0x3")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x25")]||!e[ra("0x25")][ra("0x23")](ra("0x7f")))return;const o=e[ra("0x8b")][ra("0xac")],i=n[ra("0x9a")]()[ra("0x6f")]((t=>t[ra("0x1f")]&&t[ra("0x8b")]&&t[ra("0x8b")][ra("0xac")]==o));i[ra("0x8c")]&&e[ra("0x77")]()[ra("0x8c")]!=i[ra("0x8c")]&&i[ra("0x78")](((t,e)=>(t[ra("0x41")]=e,e[ra("0x93")]=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0xa1")](t[ra("0x3e")]),i=[ra("0x63"),ra("0x46")],r=n[ra("0x9e")][ra("0x55")](t[ra("0x3e")]);return r&&i[ra("0x17")]("ck-suggestion-marker--active"),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on(ra("0x21"),c,{priority:ra("0x3b")}),t.model[ra("0x12")][ra("0x99")]((()=>{let e=!1;const o=Array.from(t[ra("0x6e")][ra("0x12")].differ[ra("0x57")]());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n[ra("0xa1")](i);if(ra("0x1")!=o||"deletion"!=s||r[ra("0x5d")])continue;if(!n.hasSuggestion(x))continue;const a=n[ra("0x16")](x).getRanges(),c=t[ra("0x7b")][ra("0x98")]("Users").me;for(const t of n[ra("0x9a")]())if(t[ra("0x1f")]&&t[ra("0x11")]==c&&"formatBlock"==t[ra("0x28")]&&ra("0x43")==t[ra("0x25")]&&t[ra("0x44")]()[ra("0xa7")]((t=>a[ra("0x33")]((e=>e[ra("0x4d")](t,!0))))))for(const n of t[ra("0x77")]())n.isInContent&&(n[ra("0x81")](),e=!0)}return e})),t[ra("0x6e")].document.registerPostFixer((e=>{const o=t[ra("0x31")].get(ra("0x35"));if(!o||!o[ra("0x4f")][ra("0x19")](e[ra("0xa2")]))return!1;let i=!1;const r=t[ra("0x7b")].get(ra("0x86")).me,s=t[ra("0x6e")][ra("0x12")][ra("0x4a")][ra("0x5b")](),x=Array.from(t.model.document[ra("0x4a")].getChangedMarkers()).filter((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0xa1")](t);return ra("0x1")==o&&"tablePaste"==i&&s==r.id&&!e[ra("0x5d")]}));for(const t of s){if(ra("0x3a")!=t[ra("0x28")]||ra("0x4")!=t[ra("0x7d")]||1!=t[ra("0x8c")])continue;const n=e[ra("0x70")](t[ra("0x18")],t.position.getShiftedBy(1));if(!x[ra("0x5e")]((({data:t})=>t[ra("0x62")].isEqual(n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[ra("0x79")](t,{range:n}),i=!0;break}}return i})),t[ra("0x6e")][ra("0x12")][ra("0x99")]((e=>{let o=!1;const i=t[ra("0x7b")][ra("0x98")]("Users").me,r=n[ra("0x9a")]()[ra("0x6f")]((t=>t.isInContent&&t[ra("0x11")]==i)),s=new Set,x=new Set;for(const t of r)if(ra("0x7f")==t[ra("0x25")])for(const e of t[ra("0x2a")]()){const n=e[ra("0x95")]()[ra("0x53")]();if(n)if(n.is(ra("0x38"),ra("0x4"))&&ca(n)){t[ra("0x8")](e.name),s[ra("0x69")](n),o=!0;const i=n[ra("0x8d")],r=n.previousSibling,a=i&&i.is(ra("0x38"),ra("0x4")),c=r&&r.is("element",ra("0x4"));a&&!s[ra("0x19")](i)&&x[ra("0x69")](i),c&&!s[ra("0x19")](r)&&x[ra("0x69")](r)}else n.is(ra("0x38"),ra("0x15"))&&n[ra("0x4b")]&&(t[ra("0x8")](e.name),o=!0)}else if(ra("0x43")==t[ra("0x25")]){if(!t[ra("0x8b")]||!t[ra("0x8b")][ra("0xac")])continue;const e=t[ra("0x8b")][ra("0x60")];if(e&&Object[ra("0x97")](e)[ra("0x8c")])continue;const n=t.attributes[ra("0xac")];let i=!0,s=!0;for(const e of r)if(e.subType&&e[ra("0x25")][ra("0x23")](ra("0x7f"))){if(!e.attributes[ra("0xac")]){s=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){i=!1;break}}s&&i&&(t[ra("0xf")](),o=!0)}for(const t of s)e[ra("0x42")](t);for(const t of x)e[ra("0x80")](t);return o})),t[ra("0x6a")][ra("0x37")]("editingDowncast")[ra("0x49")]({model:ra("0xc"),view:(t,e)=>l(t),converterPriority:ra("0x3b")}),t[ra("0x6a")][ra("0x37")](ra("0x2b"))[ra("0x49")]({model:ra("0xc"),view:(t,e)=>e[ra("0x2e")].showSuggestionHighlights?l(t,!1):null,converterPriority:ra("0x3b")});const u=t[ra("0x2d")][ra("0x1e")];this.listenTo(u[ra("0x12")],ra("0x34"),((t,e)=>{const n=[];for(const t of u[ra("0x94")](e.content).getItems())t.is(ra("0x38"),ra("0xaa"))&&n[ra("0x17")](t);u[ra("0x2c")]((t=>{for(const e of n)t.move(t[ra("0x94")](e),t[ra("0x68")](e)),t.remove(e)}))}))}}function ca(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is(ra("0x38"),"paragraph")&&e[ra("0x4b")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x32")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["TrackChangesEditing","get","resizeTable","change","formatGroupId","tableWidth","has","locale","resizeTableWidth","registerCustomCallback","getAttribute","type","accept","editor","enableCommand","columnWidths","getContainedElement","getSelectedElement","TableColumnResizeEditing","getColumnGroupElement","selection","author","formatInline","formatBlock","subType","plugins","document","getSuggestionCallback","handleResizeTableWidthCommand","registerDescriptionCallback","*Format:* resize table","afterInit","getTableColumnsWidths","model","_suggestionFactory","markBlockFormat","bind","discard","table","handleSuggestionDescription","_descriptionFactory","getSuggestions"];var da,ga;da=ua,ga=468,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x19")](){if(!this.editor[fa("0x13")][fa("0x0")](fa("0xc")))return;const t=this.editor[fa("0x13")].get(fa("0x24"));t[fa("0x8")](fa("0x2"),this[fa("0x16")][fa("0x1e")](this)),t[fa("0x1c")][fa("0x3")](fa("0x11"),fa("0x26"),fa("0x6"),t._suggestionFactory[fa("0x15")](fa("0x11"),null,"discard")),t[fa("0x1c")][fa("0x3")](fa("0x11"),fa("0x26"),"discard",t[fa("0x1c")][fa("0x15")](fa("0x11"),null,fa("0x6"))),t[fa("0x22")][fa("0x17")](this[fa("0x21")][fa("0x1e")](this))}[fa("0x16")](t,e){const n=this[fa("0x7")][fa("0x13")][fa("0x25")]("TrackChangesEditing"),o=this[fa("0x7")][fa("0x13")][fa("0x25")]("TableColumnResizeEditing"),i=e[fa("0x20")]||this[fa("0x7")][fa("0x1b")][fa("0x14")][fa("0xe")][fa("0xb")]();this[fa("0x7")][fa("0x1b")][fa("0x27")]((()=>{const r=o[fa("0xd")](i);let s=r?o[fa("0x1a")](r):null,x=i[fa("0x4")]("tableWidth")||null;const a=e[fa("0x29")]||x,c=e[fa("0x9")]||s,l=this.editor[fa("0x13")][fa("0x25")]("Users").me;for(const t of n[fa("0x23")]()){const e=t[fa("0xa")]();if(fa("0x26")===t[fa("0x12")]&&e===i){t[fa("0xf")]!==l&&t[fa("0x1f")]();const e=t.data.commandParams;x=e[0][fa("0x29")],s=e[0][fa("0x9")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[fa("0x1d")](i,{commandName:fa("0x2"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x26")},[],"resizeTable")}))}handleSuggestionDescription(t){if(fa("0x11")!=t.type&&fa("0x10")!=t[fa("0x5")])return;const{data:e}=t;if(e&&fa("0x26")===e[fa("0x28")]){const t=fa("0x18");return{type:"format",content:Qo(this[fa("0x7")][fa("0x1")],t)}}}}const ha=["insertTemplate","enableCommand","afterInit","Template","has","plugins","get","editor","TrackChangesEditing"];var pa,ba;pa=ha,ba=244,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x1")](){const t=this[Ea("0x6")];t[Ea("0x4")][Ea("0x3")](Ea("0x2"))&&t[Ea("0x4")][Ea("0x5")](Ea("0x7"))[Ea("0x0")](Ea("0x8"))}}const Ta=["insertTableOfContents","commands","plugins","get","afterInit","editor","registerElementLabel","_descriptionFactory","ELEMENT_TABLE_OF_CONTENTS","enableCommand","tableOfContents","TrackChangesEditing","locale"];var ya,Ca;ya=Ta,Ca=428,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x5")](){const t=this[Aa("0x6")];if(!t[Aa("0x2")][Aa("0x4")](Aa("0x1")))return;t[Aa("0x3")][Aa("0x4")](Aa("0xc"))[Aa("0xa")](Aa("0x1"));const e=t[Aa("0x3")][Aa("0x4")](Aa("0xc")),n=t[Aa("0x0")];e[Aa("0x8")][Aa("0x7")](Aa("0xb"),(t=>Qo(n,Aa("0x9"),t)))}}const Ra=["start","model","TrackChangesEditing","element","from","get","Title","isEqual","has","newRange","registerElementLabel","ELEMENT_TITLE","title-content","forward","afterInit","_splitMarkerName","getNearestSelectionRange","differ","locale","document","removeMarker","getChangedMarkers","suggestion","nodeBefore","editor","end"];var Ia,Sa;Ia=Ra,Sa=278,function(t){for(;--t;)Ia.push(Ia.shift())}(++Sa);const Na=function(t,e){return Ra[t-=0]};class va extends t.Plugin{[Na("0x16")](){const t=this[Na("0x6")];if(!t.plugins[Na("0x10")](Na("0xe")))return;const e=t.plugins[Na("0xd")](Na("0xa"));e._descriptionFactory[Na("0x12")](Na("0x14"),(()=>Qo(t[Na("0x0")],Na("0x13")))),t[Na("0x9")].document.registerPostFixer((n=>{let o=!1;const i=Array[Na("0xc")](t[Na("0x9")][Na("0x1")][Na("0x19")][Na("0x3")]());for(const{name:r,data:s}of i){const{group:i}=e[Na("0x17")](r);if(Na("0x4")!==i||!s[Na("0x11")])continue;const x=s[Na("0x11")],a=x[Na("0x7")][Na("0x5")];if(!a||!a.is(Na("0xb"),"title-content"))continue;if(!x.start.isTouching(x[Na("0x7")]))continue;const c=t[Na("0x9")].schema[Na("0x18")](x[Na("0x7")],Na("0x15"));if(c&&c.isCollapsed){const t=n.createRange(x[Na("0x8")],c[Na("0x8")]);t[Na("0xf")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[Na("0x2")](r),o=!0)}return o}))}}const La=["plugins","redo","undo","get","has","enableCommand","UndoEditing","editor","TrackChangesEditing"];var Ma,Oa;Ma=La,Oa=142,function(t){for(;--t;)Ma.push(Ma.shift())}(++Oa);const wa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{afterInit(){const t=this[wa("0x0")],e=t.plugins[wa("0x5")](wa("0x1"));t[wa("0x2")][wa("0x6")](wa("0x8"))&&(e[wa("0x7")](wa("0x4")),e[wa("0x7")](wa("0x3")))}}const Da=["plugins","TrackChangesEditing","requires","toggleTableCaption","editor","afterInit","TableCaptionEditing"];var Ba,Pa;Ba=Da,Pa=256,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x5")](){return[zx]}[Ua("0x1")](){const t=this[Ua("0x0")];t[Ua("0x3")].has(Ua("0x2"))&&t[Ua("0x3")].get(Ua("0x4")).enableCommand(Ua("0x6"))}}const Ga=["model","subType","join","setAttribute","batch","locale","tableBorderStyle","formatBlock","*Format:* change table cell properties","has","tableCellBorderWidth","discard","tableCellProperties","tableHeight","_handlePropertyChange","enableCommand","tableBorderWidth","tableProperties","handleSuggestionDescription","removeAttribute","_descriptionFactory","tableBackgroundColor","accept","tableWidth","tableBorderColor","commandParams","findAncestor","registerDescriptionCallback","get","TableUtils","tableCellWidth","getContainedElement","TrackChangesEditing","selection","tableCellBorderColor","getSuggestions","tableAlignment","table","tableCellBackgroundColor","plugins","TableCellPropertiesEditing","_getSuggestion","getSuggestionCallback","_suggestionFactory","TablePropertiesEditing","tableCellPadding","change","registerCustomCallback","editor","afterInit","document","format","getFirstPosition","handleDiscardAction","nodeAfter"];var Ha,Va;Ha=Ga,Va=409,function(t){for(;--t;)Ha.push(Ha.shift())}(++Va);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this.tableProperties=[za("0x0"),za("0x25"),za("0x2f"),za("0xc"),za("0x36"),za("0x2c"),za("0x34")],this.tableCellProperties=[za("0xa"),"tableCellBorderStyle",za("0x29"),za("0x15"),za("0x6"),"tableCellHeight",za("0xe"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get pluginName(){return"TrackChangesTableProperties"}[za("0x19")](){const t=this[za("0x18")][za("0xf")][za("0x4")](za("0x8"));if(this[za("0x18")][za("0xf")][za("0x28")](za("0x14"))){for(const e of this[za("0x30")])t[za("0x2e")](e,((t,n)=>{const o=this[za("0x18")].model[za("0x1a")][za("0x9")][za("0x1c")]()[za("0x2")](za("0xd"));this[za("0x2d")](e,[o],this[za("0x30")],"tableProperties",t,n)}));t._suggestionFactory[za("0x17")]("formatBlock",za("0x30"),za("0x35"),t[za("0x13")].getSuggestionCallback(za("0x26"),null,za("0x2a"))),t[za("0x13")][za("0x17")](za("0x26"),"tableProperties","discard",((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t._suggestionFactory[za("0x17")](za("0x26"),za("0x30"),za("0x21"),(()=>!1))}if(this[za("0x18")].plugins[za("0x28")](za("0x10"))){for(const e of this.tableCellProperties)t.enableCommand(e,((t,n)=>{const o=this.editor[za("0xf")][za("0x4")](za("0x5")).getSelectionAffectedTableCells(this[za("0x18")].model[za("0x1a")][za("0x9")]);this._handlePropertyChange(e,o,this[za("0x2b")],za("0x2b"),t,n)}));t._suggestionFactory[za("0x17")](za("0x26"),za("0x2b"),"accept",t[za("0x13")][za("0x12")](za("0x26"),null,za("0x2a"))),t[za("0x13")][za("0x17")](za("0x26"),za("0x2b"),za("0x2a"),((t,e)=>this[za("0x1d")](this[za("0x2b")],t,e))),t[za("0x13")][za("0x17")]("formatBlock",za("0x2b"),za("0x21"),(()=>!1))}t[za("0x33")][za("0x3")]((t=>this[za("0x31")](t)))}_handlePropertyChange(t,e,n,o,i,r){const s=this.editor[za("0xf")][za("0x4")]("TrackChangesEditing");this.editor[za("0x1f")].enqueueChange(r[za("0x23")],(()=>{for(const t of e)if(this._getSuggestion(t,o))i(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}i(r),s.markBlockFormat(t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[za("0x1e")],i=n[za("0x1")][0];this[za("0x18")][za("0x1f")][za("0x16")]((e=>{for(const n of t)void 0!==i[n]?e[za("0x22")](n,i[n],o):e[za("0x32")](n,o)}))}[za("0x31")](t){if(t.data)switch(t[za("0x20")]){case"tableProperties":return{type:za("0x1b"),content:Qo(this[za("0x18")].locale,"*Format:* change table properties")};case"tableCellProperties":return{type:"format",content:Qo(this[za("0x18")][za("0x24")],za("0x27"))}}}[za("0x11")](t,e){const n=this[za("0x18")][za("0xf")][za("0x4")](za("0x8"));for(const o of n[za("0xb")]({skipNotAttached:!0})){const n=o[za("0x7")]();if(o[za("0x20")]===e&&n===t)return o}return null}}const Ka=["assign","backward","dataToMarker","change","substr","getFirstMarker","showSuggestionHighlights","getSuggestions","removeMarkers","formatInline:","hasCommentThread","getWalker","markMultiRangeBlockFormat","multi","_processAttributeSuggestions","addRange","removeAttribute","isArray","every","changeAttribute","isInContent","addSuggestion","suggestion:attribute:","marker-count","isMultiRange","_getAuthorFromId","markBlockFormat","includes","range","init","conversion","@external","_recordAttributeSuggestionsFromVersion","adapter","unbindElementFromMarkerName","getRanges","newValue","trackChanges.trackFormatChanges","formatBlock:","_trackFormatChanges","PENDING_ACTION_SUGGESTION","attributeNewValue","createdAt","for","pop","updateSuggestion","announce","start","originalSuggestionId","find","commands","ck-suggestion-marker--active","attribute:discard","forEach","deletion:chain","_cutOutSuggestionMarker","format","authoredAt","end","toJSON","detach","dataDowncast","howMany","_processAttributeChanges","_initAriaMarkerChangeAnnouncements","commentThread","formatBlock:chain","change:data","commandName","_splitMarkerName","previous","_removeSuggestion","oldRange","always","element","markAttributeChange","after","accept","setTo","isOwn","_handleNewSuggestionMarker","_updateSuggestionData","suggestion:","suggestionChanged","key","getOperations","trackChanges","pluginName","formatGroupId","discardSuggestion","attribute","bindElementToMarker","subType","sort","formatBlock:accept","_isBlockAttribute","containsRangeInObject","editor","_refreshAttributeSuggestionsChain","_reduceExistingSuggestions","setAttribute","name","deletion:","trackChangesCommand","widget","clear","open","Users","requires","getNearestSelectionRange","formatBlock","insertContent","reconvertMarker","formatInline","ck-suggestion-marker","document","insertion:discard","getCommentThread","acceptSelectedSuggestions","isInsideObject","comments","getChangedMarkers","markMultiRangeDeletion","define","has","isObject","formatInline:chain","type","_descriptionFactory","_isForcedDefaultExecutionBlock","track-changes-suggestion-data-mismatch","getRange","move","change:activeMarkers","isAfter","deletion:join","rootName","applyOperation","_joinSuggestions","editing","markerReady","group","update:suggestion","insert","getAncestors","discard","normal","filter","listenTo","substring","createPositionBefore","splice","resolve","locale","dataReady","getChanges","_refreshSuggestionsChain","getCustomProperty","writer","_registerDefaultCallbacks","getShiftedBy","_SUGGESTION_ANNOUNCEMENT","batch","elementEnd","execute","accepted","_addSuggestionMarker","skipNestingCheck","track-changes-enable-command-twice","isNextTo","discardSelectedSuggestions","isAtEnd","remove","removed","formatInline:discard","addMarker","_checkSuggestionCorrectness","insertion","_editor","fromCharCode","targetPosition","consume","notReady","stopListening","isEqual","formatInline:accept","markers","low","_setSuggestionRange","_commentsRepository","creator","return","containsPosition","markerNameToElements","isAtStart","delete","_mergeNestedSuggestions","_recordAttributeChanges","attributeKey","addClass","containsItem","attributes","elementStart","isIntersectingWithRange","ck-suggestion-marker-formatInline","moveTargetPosition","clone","addMarkerName","concat","rename","insertion:chain","markerToHighlight","removeMarker","_getMarkerAnnouncementText","createSelection","upcast","root","author","schema","parent","containsRange","documentSelection","markInsertion","createElement","_isSuggestionMarker","splitPosition","attributeOldValue","forceDefaultExecution","_breakSuggestionMarker","newName","from","getIntersection","mapper","deletion:discard","collaboration.channelId","highest","change:_saved","split","LEAVE","getItems","external:","_rangeIsInLocalUserInsertion","forward","chain","_defaultCallbacks","_findSuggestions","updateMarker","_adapter","_customCallbacks","_suggestionFactory","consumable","suggestionUnloaded","_saved","values","_isDataLoaded","ready","_createSuggestion","_inlineAttributeKeys","_blockAttributeKeys","high","registerPostFixer","enableReadOnlyMode","getSuggestionCallback","markerName","discardAllSuggestions","CommentsRepository","isLocal","removeMarker:suggestion:attribute","getSuggestion","formatBlock:join","data","model","suggestionLoaded","isTouching","_enabledCommands","deletion","oldValue","registerInlineAttribute","ck-suggestion-marker-","join","PendingActions","error-saving-suggestion-data-suggestion-discarded","differ","_onDiscard","addMarker:suggestion:attribute","stop","size","config","_suggestions","suggestion","some","options","_getSuggestionData","selection","map","getAttribute","getDifference","value","buildSuggestion","setSelection","elementToElement","newRange","createRange","markInlineFormat","markMultiRangeInsertion","length","_reduceSuggestionAttributeRange","_getAttributeKeyFromSubType","_getExternalAuthor","addHighlight","position","isRemovable","isIntersecting","ENTER","addMarker:suggestion:formatBlock","trackChanges.mergeNestedSuggestions","add","plugins","set","startsWith","markerToData","getFirstRange","isBefore","formatInline:join","getAllAdjacentSuggestions","addSuggestionData","editingDowncast","enableCommand","isBlock","isExternal","deleteContent","_joinWithAdjacentSuggestions","ck-suggestion-marker-formatBlock","_model","_setSuggestionData","createPositionAfter","item","acceptAllSuggestions","attribute:accept","insertion:accept","getMultiRangeId","createPositionAt","isUndo","attribute:","get","attribute:join","activeMarkers","isSelectable","_addThreadToSuggestion","formatBlock:discard","removeClass","acceptSuggestion","isLimit","refresh","meta","nodeAfter","getMarkers","getUser","data-suggestion","then","head","never","_suggestionState","catch","$elementName","$graveyard","push","addMarker:suggestion","fire","addCommentThread","insertion:","$textProxy","hasComments","nodeBefore","removeMarker:suggestion:formatBlock","isCollapsed","next","registerBlockAttribute"];var qa,Xa;qa=Ka,Xa=401,function(t){for(;--t;)qa.push(qa.shift())}(++Xa);const $a=function(t,e){return Ka[t-=0]},Ya=$a("0x155");class Za extends t.Plugin{static get[$a("0x55")](){return[$a("0xf2"),r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Hi,tr,rr,lr,hr,Tr,Ir,Mr,Pr,Vr,Xr,Qr,is,fs,cs,Es,As,Ns,ws,Us,Ks,Zs,nx,xx,dx,bx,Cx,Sx,wx,Ux,zx,Yx,ea,ja,aa,ma,ka,Wa,_a,va,Fa]}static get[$a("0x40")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[$a("0x10f")]((t=>String[$a("0x9c")](t)))[$a("0x100")]("")}super(t),this._recordAttributeSuggestionsFromVersion=null,this[$a("0x127")]($a("0x143"),[]),this.on($a("0x6e"),((e,n,o,i)=>{this._model.change((()=>{for(const e of[...i,...o])this[$a("0x136")][$a("0xa3")].has(e)&&t[$a("0x74")][$a("0x59")](e)}))})),this[$a("0x69")]=new ii(this[$a("0x4a")][$a("0xf8")][$a("0xc3")],this[$a("0x4a")].locale),this._adapter=null,this[$a("0xe2")]=new Ja(this[$a("0x4a")]),this[$a("0x109")]=new Map,this._commentsRepository=t.plugins.get("CommentsRepository"),this[$a("0xfb")]=new Set,this[$a("0x136")]=this.editor.model,this[$a("0x153")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this[$a("0xeb")]=new Set([$a("0x155")]),this[$a("0xea")]=new Set,t[$a("0x108")][$a("0x64")]($a("0xe"),"default"),this[$a("0x10")]=t[$a("0x108")][$a("0x141")]("trackChanges.trackFormatChanges"),t[$a("0x108")][$a("0x64")]($a("0x124"),!0),this[$a("0xad")]=t[$a("0x108")][$a("0x141")]("trackChanges.mergeNestedSuggestions"),this[$a("0x50")]=new d(t,this._enabledCommands),this[$a("0x29")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,51,48])}[$a("0x6")](){const t=this.editor,n=(t,e)=>{if($a("0x43")!=t)return $a("0xff")+t;const n=e[$a("0xd6")]("|")[0];return this[$a("0x48")](n)?$a("0x135"):$a("0xb5")};t[$a("0x7")].for($a("0x12f"))[$a("0xbc")]({model:$a("0x10a"),view:t=>{const{id:e,type:o,subType:i}=this[$a("0x2e")](t[$a("0xf0")]),r=[$a("0x5b"),n(o,i)];let s=3e3;return this[$a("0x143")].includes(t.markerName)&&(r.push($a("0x1c")),s=3010),$a("0xfc")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[$a("0x7")][$a("0x14")]($a("0x26"))[$a("0x125")]((e=>{e.on($a("0x158"),((e,n,o)=>{if(!o[$a("0x10c")][$a("0x169")])return;const i=n[$a("0x139")];if(!i)return;const r=o[$a("0xd1")].toViewElement(i);t.model[$a("0xc3")][$a("0x66")](i)&&r&&!r[$a("0x86")]($a("0x51"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[$a("0x87")])}),{priority:$a("0xec")})})),t[$a("0x7")][$a("0x14")]($a("0x26"))[$a("0xbc")]({model:$a("0x10a"),view:(t,e)=>{if(!e.options.showSuggestionHighlights)return null;const{type:o,subType:i}=this._splitMarkerName(t.markerName);return{classes:[$a("0x5b"),n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i.item)return;const{id:s}=this[$a("0x2e")](i[$a("0xf0")]);if(n){const t=this[$a("0x109")][$a("0x141")](s);if(!t.data)return;if(!this[$a("0x48")](t[$a("0xf7")][$a("0x3d")]))return}if(i[$a("0x139")].is("selection"))return void r[$a("0xe3")].consume(i[$a("0x139")],o[$a("0x4e")]);const x=r.mapper.toViewElement(i[$a("0x139")]);if(i[$a("0x139")].is($a("0x33"))&&t[$a("0xf8")].schema[$a("0x131")](i[$a("0x139")])&&!x[$a("0x86")]("addHighlight")){r[$a("0x87")][$a("0xb0")](["ck-suggestion-marker",$a("0x135")],x),r[$a("0x87")].setAttribute($a("0x14f"),s,x),r[$a("0xd1")][$a("0x44")](x,i[$a("0xf0")]),e&&(this[$a("0x143")][$a("0x4")](i.markerName)?r[$a("0x87")][$a("0xb0")]($a("0x1c"),x):r.writer[$a("0x147")]("ck-suggestion-marker--active",x));for(const e of t[$a("0xf8")].createRangeIn(i[$a("0x139")])[$a("0xd8")]())r[$a("0xe3")].consume(e,o[$a("0x4e")]);r[$a("0xe3")][$a("0x9e")](i[$a("0x139")],o[$a("0x4e")])}};t[$a("0x7")][$a("0x14")]($a("0x26"))[$a("0x125")]((t=>{t.on($a("0x123"),((t,e,n)=>{n[$a("0x10c")][$a("0x169")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:$a("0xd4")})})),t.conversion[$a("0x14")]($a("0x26"))[$a("0x125")]((t=>{t.on($a("0x105"),((t,e,n)=>{n[$a("0x10c")][$a("0x169")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:$a("0xd4")})})),t[$a("0x7")].for($a("0x26"))[$a("0x129")]({model:$a("0x10a"),view:(t,e)=>e[$a("0x10c")][$a("0x169")]?null:{group:$a("0x10a"),name:t[$a("0x167")](11)}}),t[$a("0x7")][$a("0x14")]($a("0xc0"))[$a("0x115")]({view:{name:$a("0x10a"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=$a("0x3b")+t.getAttribute("suggestion-type")+":"+t[$a("0x110")]("id");return t[$a("0x110")]($a("0x0"))&&(n+=":"+t[$a("0x110")]("marker-count")),e[$a("0xc8")]("$marker",{"data-name":n})}}),t.conversion[$a("0x14")]("upcast")[$a("0x165")]({view:"suggestion"}),t.conversion[$a("0x14")]($a("0x12f"))[$a("0x125")]((t=>{t.on($a("0x123"),o(),{priority:"high"})})),t[$a("0x7")][$a("0x14")]($a("0x12f"))[$a("0x125")]((t=>{t.on($a("0x105"),o({isAttributeSuggestion:!0}),{priority:$a("0xec")})})),t[$a("0x7")][$a("0x14")]($a("0x12f")).add((t=>{t.on($a("0x15f"),((t,e,n)=>{const o=n[$a("0xd1")][$a("0xaa")](e[$a("0xf0")]);if(o)for(const t of o)t[$a("0x86")]($a("0x11e"))||(n.writer.removeClass([$a("0x5b"),$a("0x135"),$a("0x1c")],t),n[$a("0x87")][$a("0x173")]("data-suggestion",t),n[$a("0xd1")][$a("0xb")](t,e[$a("0xf0")]))}),{priority:$a("0xec")})})),t.conversion[$a("0x14")]($a("0x12f"))[$a("0x125")]((t=>{t.on($a("0xf4"),((t,e,n)=>{const o=n[$a("0xd1")][$a("0xaa")](e[$a("0xf0")]);if(!o)return;const{id:i}=this._splitMarkerName(e[$a("0xf0")]),r=this[$a("0x109")][$a("0x141")](i);if(r[$a("0xf7")]&&this[$a("0x48")](r[$a("0xf7")][$a("0x3d")]))for(const t of o)t[$a("0x86")]($a("0x11e"))||(n.writer[$a("0x147")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock",$a("0x1c")],t),n[$a("0x87")][$a("0x173")]($a("0x14f"),t),n[$a("0xd1")][$a("0xb")](t,e[$a("0xf0")]))}),{priority:$a("0xec")})})),t[$a("0xf8")].document[$a("0xed")]((e=>{let n=!1;const o=Array[$a("0xcf")](t[$a("0xf8")][$a("0x5c")][$a("0x103")][$a("0x62")]()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this._splitMarkerName(x);if($a("0x10a")!==o)continue;const d=this[$a("0x109")][$a("0x141")](u);if(null!=a.newRange){$a("0x5a")==c&&(n=n||ec(a[$a("0x116")],x,e,t[$a("0xf8")].schema));const o=$a("0x43")==c&&this[$a("0x48")](l[$a("0xd6")]("|")[0]);if(a[$a("0x116")][$a("0x160")]||$a("0x156")==a[$a("0x116")][$a("0xc1")][$a("0x71")]||$a("0x57")==c&&!oc(a[$a("0x116")])||o&&!oc(a.newRange)||"deletion"==c&&(tc(s=a[$a("0x116")])||(r=s)[$a("0x18")][$a("0xc4")]==r[$a("0x23")][$a("0x15e")]&&r[$a("0x18")].isAtEnd))e[$a("0xbd")](x),n=!0;else{if(!d||!d[$a("0x177")])continue;i[$a("0x125")](d)}}}var r,s;return i[$a("0x107")]>0&&(n=!!this[$a("0x134")](i)||n),n})),t[$a("0xf8")][$a("0x5c")][$a("0xed")]((e=>{let n=!1;for(const o of t.model[$a("0x5c")][$a("0x103")][$a("0x84")]())if($a("0x78")==o[$a("0x68")])for(const o of this._suggestions.values()){if(o[$a("0x1")]||!o[$a("0x177")])continue;const i="formatBlock"==o[$a("0x68")],r=this._getAttributeKeyFromSubType(o),s=r&&this._isBlockAttribute(r);if(!i&&!s)continue;const x=o.getFirstRange();if(x.start[$a("0xc4")]!=x[$a("0x23")][$a("0xc4")]&&!x[$a("0x23")][$a("0x94")]){const i=t[$a("0xf8")][$a("0x13e")](x[$a("0x18")][$a("0x14c")],$a("0x23")),r=t[$a("0xf8")][$a("0x117")](x.start,i);e[$a("0xdf")](o[$a("0x168")](),{range:r}),n=!0}}return n})),t[$a("0xf8")][$a("0x5c")][$a("0xed")]((t=>this[$a("0x28")](t))),t[$a("0xf8")].document.registerPostFixer((t=>!t[$a("0x8b")].isLocal&&this[$a("0x171")](t))),t[$a("0xf8")][$a("0xa3")].on($a("0x77"),((t,e,n)=>{if(null==n){const{id:t}=this[$a("0x2e")](e[$a("0x4e")]),n=this._suggestions[$a("0x141")](t);n&&n[$a("0xb8")](e[$a("0x4e")])}})),t[$a("0xf8")][$a("0x5c")].on($a("0x2c"),(()=>{const e=Array[$a("0xcf")](t[$a("0xf8")][$a("0x5c")][$a("0x103")][$a("0x62")]())[$a("0x7c")]((t=>$a("0x10a")===this._splitMarkerName(t[$a("0x4e")])[$a("0x76")]));if(0===e[$a("0x11a")])return;e[$a("0x46")](((t,e)=>{const n=t[$a("0xf7")].oldRange,o=e.data[$a("0x31")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[$a("0x18")][$a("0x12b")](o[$a("0x18")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[$a("0x2e")](t);if(null===i[$a("0x31")]){const e=this[$a("0x39")](t);o.add(e)}else{const t=this._suggestions[$a("0x141")](e);null!==i[$a("0x116")]||t[$a("0x177")]?(n[$a("0x125")](t[$a("0x151")]),o[$a("0x125")](t)):this[$a("0x30")](t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this.fire($a("0x3c"),t)})),t[$a("0xf8")].on($a("0x72"),((e,n)=>{const o=n[0];if(!this._suggestions[$a("0x107")])return;if(!o.isDocumentOperation)return;if(o[$a("0x8b")][$a("0x13f")]||!o[$a("0x8b")][$a("0xf3")])return;let i,r;switch(o[$a("0x68")]){case $a("0x78"):i=t[$a("0xf8")][$a("0x13e")](o[$a("0x11f")]),r=i[$a("0x89")](o[$a("0x27")]);break;case $a("0xd6"):i=t[$a("0xf8")][$a("0x13e")](o[$a("0xca")]),r=t[$a("0xf8")][$a("0x13e")](o[$a("0xb6")]);break;case $a("0x6d"):i=t[$a("0xf8")][$a("0x13e")](o[$a("0x9d")]),r=i[$a("0x89")](o[$a("0x27")]);break;default:return}const s=t[$a("0xf8")][$a("0x117")](i,r);t[$a("0xf8")][$a("0x166")]((()=>{for(const{suggestion:t,meta:e}of this[$a("0xde")](s)){if(t.isMultiRange)continue;if("formatInline"==t[$a("0x68")])continue;if(this[$a("0x11c")](t)&&this[$a("0x48")](t[$a("0xf7")][$a("0x3d")])&&$a("0xd6")!=o.type)continue;const n=t[$a("0xf7")]&&t.data.multipleBlocks;($a("0x57")!=t.type||"split"==o[$a("0x68")]&&!n)&&(e[$a("0x49")]||$a("0x9a")==t[$a("0x68")]&&e.isOwn||t[$a("0x12a")]()[$a("0xc5")](s)&&this[$a("0xcd")](t,i,r))}}))}),{priority:"lowest"}),t[$a("0xf8")].on($a("0x133"),((e,n)=>{const o=n[0],i=n[1];if(i&&i[$a("0xcc")])return;if(this[$a("0x6a")])return;if(!this[$a("0x50")].value)return;if(o.isCollapsed)return;const r=t.model[$a("0xc3")],{start:s,end:x}=o.getFirstRange(),a=s[$a("0x14c")]&&r[$a("0x149")](s[$a("0x14c")])?null:r[$a("0x56")](s,$a("0xdb")),c=x.nodeBefore&&r[$a("0x149")](x[$a("0x15e")])?null:r[$a("0x56")](x,$a("0x164")),l=t[$a("0xf8")][$a("0x117")](a?a[$a("0x18")]:s,c?c[$a("0x23")]:x);t[$a("0xf8")][$a("0x166")]((e=>{this.markDeletion(l);const n=t.model[$a("0xc3")][$a("0x56")](l.start);o.is($a("0xc6"))?e[$a("0x114")](n):o[$a("0x37")](n)})),e[$a("0x106")]()}),{priority:e.priorities[$a("0x7b")]+10}),t.model.on($a("0x58"),((e,n)=>{const o=n[n.length-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this[$a("0x50")][$a("0x112")]&&(t[$a("0xf8")][$a("0x166")]((()=>{let o=t.model[$a("0x58")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[$a("0xa8")]=o[$a("0xb7")]();const i=o[$a("0x23")].nodeBefore,r=t.model[$a("0xc3")];i&&r[$a("0x131")](i)&&!r.isObject(i)&&(o=t[$a("0xf8")].createRange(o[$a("0x18")],t.model.createPositionAt(i,$a("0x23")))),this[$a("0xc7")](o)})),e.stop())}),{priority:$a("0xec")}),this[$a("0x4a")][$a("0x1b")][$a("0x125")]("trackChanges",this[$a("0x50")]),this.enableCommand($a("0x3f"));const i=new p(t,this._suggestions);t[$a("0x1b")].add($a("0x148"),i),this[$a("0x130")]("acceptSuggestion");const r=new y(t,this[$a("0x109")]);t.commands[$a("0x125")]($a("0x42"),r),this.enableCommand($a("0x42")),t[$a("0x1b")][$a("0x125")]($a("0x13a"),new F(t,i,this[$a("0x109")])),this[$a("0x130")]($a("0x13a")),t.commands.add($a("0xf1"),new F(t,r,this._suggestions)),this[$a("0x130")]("discardAllSuggestions"),t.commands[$a("0x125")]($a("0x5f"),new j(t,i,this._suggestions)),this[$a("0x130")]($a("0x5f")),t.commands.add("discardSelectedSuggestions",new j(t,r,this[$a("0x109")])),this.enableCommand($a("0x93"));const s=t.plugins[$a("0x141")]($a("0xf2"));this[$a("0x7d")](s,"addComment",((t,{threadId:e})=>{const n=this[$a("0x109")][$a("0x141")](e);n&&n[$a("0x2a")]&&1===n[$a("0x2a")].length&&this[$a("0x3a")](e,{hasComments:!0})}),{priority:$a("0xa4")}),this[$a("0x7d")](s,"removeComment",((t,{threadId:e})=>{const n=this[$a("0x109")][$a("0x141")](e);n&&n[$a("0x2a")]&&!n[$a("0x2a")].length&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:$a("0xa4")})}set[$a("0xa")](t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[$a("0xe0")]=t}get[$a("0xa")](){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[$a("0x109")].values())t&&!e.isInContent||n[$a("0x157")](e);return e?n[$a("0x10f")]((t=>t[$a("0x24")]())):n}[$a("0xf5")](t){const n=this._suggestions[$a("0x141")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this._suggestions[$a("0x65")](t)}[$a("0x12e")](t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t.type[$a("0xd6")](":"),s=this[$a("0x109")].get(n)||this[$a("0xe9")](i,r,n,e,o);if(this[$a("0x145")](s),this[$a("0x99")](s,i,r||null,e),s[$a("0x13")]=t.createdAt,s._isDataLoaded=!0,o&&o[$a("0x8")]){const t=o[$a("0x8")],e=this[$a("0x11d")](t.authorName);s[$a("0x22")]=t[$a("0x13")],s[$a("0xc2")]=e,s[$a("0x132")]=!0}else s[$a("0x22")]=t[$a("0x13")];switch(t[$a("0xf7")]&&(s[$a("0xf7")]=t[$a("0xf7")]),t[$a("0xb2")]&&(s[$a("0xb2")]=t[$a("0xb2")]),this._adapter&&this[$a("0xe0")][$a("0x178")]||(s._saved=!0),this._suggestionState[$a("0x141")](s)){case $a("0x9f"):this[$a("0x153")][$a("0x127")](s,"dataReady");break;case $a("0x75"):s[$a("0x177")]?(s[$a("0x14d")]()[$a("0x1e")]((t=>{this.editor[$a("0x74")][$a("0x59")](t)})),this[$a("0x85")](new Set([s])),this[$a("0x134")](new Set([s])),this._suggestionState[$a("0x127")](s,$a("0xe8")),this[$a("0x159")]($a("0xf9"),s)):this[$a("0x153")][$a("0x127")](s,"removed")}return s}[$a("0x148")](t){this.forceDefaultExecution((()=>{this[$a("0x4a")][$a("0xf8")][$a("0x166")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.accept()}))}))}[$a("0x42")](t){this[$a("0xcc")]((()=>{this.editor[$a("0xf8")][$a("0x166")]((()=>{for(const e of t[$a("0x12d")]())e[$a("0x7a")]()}))}))}[$a("0x130")](t,n){const o=this[$a("0x4a")][$a("0x1b")][$a("0x141")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[$a("0xfb")][$a("0x65")](o))throw new e.CKEditorError($a("0x91"),this,{commandName:t});this[$a("0xfb")][$a("0x125")](o),n&&o.on($a("0x8d"),((t,e)=>{this[$a("0x50")][$a("0x112")]&&(this[$a("0x6a")]||(e[$a("0x11a")]>0&&e[e[$a("0x11a")]-1]&&e[e[$a("0x11a")]-1][$a("0xcc")]?e[$a("0x15")]():(t[$a("0xa8")]=n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[$a("0x106")]())))}),{priority:$a("0xec")})}[$a("0xcc")](t){let n,o;const i=this[$a("0x6a")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return i||(this[$a("0x6a")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[$a("0xc7")](t,n=null,o={}){if(t.isCollapsed)return null;const i=this.editor[$a("0x126")][$a("0x141")]($a("0x54")).me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,$a("0x9a")))if(i[$a("0x38")]){if(!i[$a("0x92")]){if(i[$a("0x49")]){if(!this._mergeNestedSuggestions||!xc(e,o))continue;return e}if(xc(e,o))return e;this[$a("0xcd")](e,t.start,t[$a("0x23")]);break}if(n==e[$a("0x45")]&&xc(e,o)){const n=e[$a("0x12a")]();return n[$a("0x18")][$a("0xa1")](t.end)?this._setSuggestionRange(e,this[$a("0x136")][$a("0x117")](t[$a("0x18")],n[$a("0x23")])):this[$a("0xa5")](e,this._model[$a("0x117")](n.start,t[$a("0x23")])),e}}const r=(0,e.uid)(),s=i.id,x=n?$a("0x15b")+n:$a("0x9a"),a=this[$a("0x137")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[$a("0x8f")](x,r,s,t),a}[$a("0x119")](t,n=$a("0x170"),o={}){const i=this[$a("0x4a")].plugins.get($a("0x54")).me,r=this._suggestionFactory[$a("0xef")]($a("0x9a"),n,"join");for(const e of this[$a("0x16a")]())if(e[$a("0xc2")].id==i.id&&$a("0x9a")==e[$a("0x68")]&&e[$a("0x45")]==n&&xc(e,o)&&(r(e[$a("0xc")](),t)||r(t,e[$a("0xc")]()))){for(const n of t)e[$a("0x172")](n);return e}for(const{suggestion:e,meta:n}of this[$a("0xde")](t,$a("0x9a"))){if(!n[$a("0x38")])continue;if(!this[$a("0xad")]&&n[$a("0x49")])continue;if(!xc(e,o))continue;let i=!0;for(const n of e[$a("0xc")]())for(const e of t)if(!n[$a("0xc5")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=$a("0x15b")+n,c=this[$a("0x137")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[$a("0x8f")](a,s,x,e,Jo[$a("0x13d")]());return c}[$a("0x118")](t,n,o=null,i={}){if(o=o||nc(n),t[$a("0x160")])return null;if("never"===this._trackFormatChanges){const e=this[$a("0xe2")].getSuggestionCallback($a("0x5a"),o,"accept");return this[$a("0xcc")]((()=>e([t],n,i))),null}const r=this.editor[$a("0x126")][$a("0x141")]("Users").me,s=[];if($a("0x32")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n[$a("0x38")]&&!n[$a("0x60")]&&s.push(...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[$a("0xd0")](o);e&&n[$a("0x157")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[$a("0x11a")];){const o=n[e][$a("0x111")](t);n[$a("0x80")](e,1,...o),e+=o[$a("0x11a")]}}return n}(t,s);x[$a("0x11a")]&&this[$a("0x136")][$a("0x166")]((()=>{for(const t of x){const e=this[$a("0xe2")][$a("0xef")]($a("0x5a"),o,"accept");this[$a("0xcc")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[$a("0x18")],a=t.end;for(const{suggestion:e,meta:n}of this._findSuggestions(t,$a("0x5a"))){if(!n[$a("0x38")])continue;if(e[$a("0x45")]!=o)continue;if(!xc(e,i))continue;const r=e[$a("0x12a")]();if(r.containsRange(t,!0))return null;x=x[$a("0x12b")](r[$a("0x18")])?x:r[$a("0x18")],a=a[$a("0x6f")](r[$a("0x23")])?a:r[$a("0x23")],s?r.start[$a("0x12b")](s[$a("0x12a")]()[$a("0x18")])?(s[$a("0x16b")](),s=e):e.removeMarkers():s=e}const c=this._model[$a("0x117")](x,a);if(s)this[$a("0xa5")](s,c);else{const t=(0,e.uid)(),s=r.id;this[$a("0x137")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[$a("0x8f")]($a("0x16c")+o,t,s,c)}}return null}[$a("0x3")](t,n,o=[],i=null,r={}){n[$a("0x41")]||(n[$a("0x41")]=n.commandName),n.multipleBlocks=t.is($a("0x5")),i=i||nc(n);const s=o[$a("0x10f")]((t=>ic(t,this[$a("0x136")]))),x=t.is($a("0x5"))?t:ic(t,this[$a("0x136")]);if($a("0x152")===this._trackFormatChanges){const t=this[$a("0xe2")][$a("0xef")]("formatBlock",i,"accept");return this[$a("0xcc")]((()=>t([x],n,r))),null}s[$a("0x157")](x);let a=!0;for(const t of s)if(!this[$a("0xda")](t)){a=!1;break}if(a&&$a("0x32")!==this[$a("0x10")]){const t=this[$a("0xe2")][$a("0xef")]($a("0x57"),i,"accept");return this[$a("0xcc")]((()=>t([x],n,r))),null}let c=null,l=x[$a("0x18")],u=x[$a("0x23")];for(const{suggestion:t,meta:e}of this[$a("0xde")](x,$a("0x57"))){if(!e[$a("0x38")])continue;if(e[$a("0x92")]||e[$a("0x49")]||e[$a("0x60")])continue;if(t.data.formatGroupId!=n[$a("0x41")])continue;if(!xc(t,r))continue;const o=t.getFirstRange();if(t.subType==i){if(o[$a("0xc5")](x,!0))return null;l=l.isBefore(o[$a("0x18")])?l:o.start,u=u[$a("0x6f")](o.end)?u:o[$a("0x23")],c?o[$a("0x18")][$a("0x12b")](c[$a("0x12a")]()[$a("0x18")])?(c[$a("0x16b")](),c=t):t[$a("0x16b")]():c=t}else{const e=x[$a("0xd0")](o);this[$a("0x20")](t,e)}}const d=this[$a("0x4a")][$a("0x126")][$a("0x141")]($a("0x54")).me,g=(0,e.uid)(),f=d.id;if(c)return this[$a("0xa5")](c,this[$a("0x136")][$a("0x117")](l,u)),c;{const t=this._setSuggestionData({id:g,type:$a("0xf")+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this._addSuggestionMarker("formatBlock:"+i,g,f,this[$a("0x136")].createRange(l,u)),t}}[$a("0x16f")](t,n,o=[],i=null,r={}){n[$a("0x41")]||(n[$a("0x41")]=n[$a("0x2d")]);const s=t[0];n.multipleBlocks=s.is($a("0x5")),i=i||nc(n);const x=o[$a("0x10f")]((t=>ic(t,this[$a("0x136")]))),a=s.is($a("0x5"))?t:t[$a("0x10f")]((t=>ic(t,this[$a("0x136")])));if($a("0x152")===this[$a("0x10")]){const t=this[$a("0xe2")][$a("0xef")]($a("0x57"),i,$a("0x36"));return this[$a("0xcc")]((()=>t(a,n,r))),null}x[$a("0x157")](...a);let c=!0;for(const t of x)if(!this[$a("0xda")](t)){c=!1;break}if(c&&$a("0x32")!==this[$a("0x10")]){const t=this[$a("0xe2")][$a("0xef")]($a("0x57"),i,"accept");return this[$a("0xcc")]((()=>t(a,n,r))),null}const l=this.editor[$a("0x126")][$a("0x141")]("Users").me;for(const t of this.getSuggestions()){if(t[$a("0xc2")].id!=l.id)continue;if($a("0x57")!=t[$a("0x68")]||t[$a("0xf7")].formatGroupId!=n[$a("0x41")])continue;if(!xc(t,r))continue;const e=t[$a("0x45")]==i;for(let n=0;n<a[$a("0x11a")];n++){const o=a[n];for(const i of t[$a("0x14d")]()){const r=i[$a("0x6c")]();if(o.isEqual(r)){e?(a[$a("0x80")](n,1),n--):t.removeMarker(i[$a("0x4e")]);break}}}}if(0==a.length)return null;const u=this[$a("0xe2")].getSuggestionCallback("formatBlock",i,$a("0x100"));for(const t of this.getSuggestions())if(t[$a("0xc2")].id==l.id&&$a("0x57")==t[$a("0x68")]&&t[$a("0xf7")][$a("0x41")]==n[$a("0x41")]&&t[$a("0x45")]==i&&xc(t,r)&&(u(t[$a("0xc")](),a)||u(a,t[$a("0xc")]()))){for(const e of a)t[$a("0x172")](e);return t}const d=(0,e.uid)(),g=l.id,f=$a("0xf")+i,m=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(f,d,g,t,Jo[$a("0x13d")]());return m}markDeletion(t,n=null,o={}){if(t.isCollapsed)return null;const i=this[$a("0x4a")][$a("0x126")][$a("0x141")]($a("0x54")).me,r=new s.LiveRange(t[$a("0x18")],t[$a("0x23")]);for(const{suggestion:t,meta:e}of this[$a("0xde")](r,"insertion"))if(e[$a("0x38")]&&!e[$a("0x92")])if(t[$a("0x1")]){const e=t[$a("0xc")]().filter((t=>$a("0x156")!=t[$a("0xc1")].rootName));if(e[$a("0x175")]((t=>r.containsRange(t,!0)))&&t.discard(),e[$a("0x10b")]((t=>t[$a("0xc5")](r,!0)))){const t=this[$a("0xe2")].getSuggestionCallback($a("0xfc"),n,"accept");return this[$a("0xcc")]((()=>t([r],null,o))),null}}else{const e=r[$a("0xd0")](t[$a("0x12a")]());null!==e&&t[$a("0x104")]([e],null,o)}if(r[$a("0x25")](),r.isCollapsed||$a("0x156")==r[$a("0xc1")].rootName)return null;let x=null,a=r[$a("0x18")],c=r[$a("0x23")];const l=this[$a("0xde")](r,$a("0xfc"));for(const{suggestion:t,meta:e}of l){const n=this._model[$a("0x117")](a,c);if(e[$a("0x38")]&&(this._mergeNestedSuggestions||!e[$a("0x49")]&&!e[$a("0x60")]))if(t[$a("0x1")]){if(!xc(t,o))continue;let e=!0;for(const o of t[$a("0xc")]()){if(o[$a("0xc5")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[$a("0x7a")]()}else{const e=t[$a("0x12a")]();if(e.containsRange(n,!0))return t;if(!xc(t,o)){n[$a("0xc5")](e)?t.removeMarkers():e[$a("0xa9")](a)?a=e.end:e[$a("0xa9")](c)&&(c=e[$a("0x18")]);continue}a=a[$a("0x12b")](e[$a("0x18")])?a:e.start,c=c.isAfter(e[$a("0x23")])?c:e[$a("0x23")],o=Object[$a("0x163")]({},t[$a("0xb2")]),x?e[$a("0x18")][$a("0x12b")](x[$a("0x12a")]().start)?(x[$a("0x16b")](),x=t):t.removeMarkers():x=t}}if(x)return this._setSuggestionRange(x,this[$a("0x136")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this[$a("0x136")][$a("0x117")](a,c),s=i.id,x=n?$a("0x4f")+n:$a("0xfc"),l=this[$a("0x137")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,t,s,r),l}}[$a("0x63")](t,n="multi",o={}){const i=this[$a("0x4a")][$a("0x126")].get($a("0x54")).me,r=t[$a("0x10f")]((t=>new s.LiveRange(t.start,t[$a("0x23")]))),x=new Set;for(const{suggestion:t,meta:e}of this[$a("0xde")](r,"insertion"))e[$a("0x38")]&&!e.isNextTo&&x.add(t);for(const e of x)if(e.isMultiRange){const i=e[$a("0xc")]();if((!e[$a("0xb2")]||!e[$a("0xb2")].skipNestingCheck)&&i[$a("0x175")]((t=>r.some((e=>e[$a("0xc5")](t,!0)))))&&e[$a("0x7a")](),r.every((t=>i[$a("0x10b")]((e=>e[$a("0xc5")](t,!0)))))){const e=this[$a("0xe2")][$a("0xef")]($a("0xfc"),n,$a("0x36"));return this[$a("0xcc")]((()=>e(t,null,o))),null}}else{const t=e[$a("0x12a")]();if(r[$a("0x10b")]((e=>e.containsRange(t,!0)))&&e[$a("0x7a")](),r.every((e=>t[$a("0xc5")](e,!0)))){const t=this[$a("0xe2")][$a("0xef")]($a("0xfc"),n,$a("0x36"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[$a("0xe2")].getSuggestionCallback($a("0xfc"),n,$a("0x100"));let c=null;for(const t of this[$a("0x16a")]())if(t[$a("0xc2")].id==i.id&&t[$a("0x177")]&&"deletion"==t[$a("0x68")]&&t[$a("0x45")]==n&&xc(t,o)&&(a(t[$a("0xc")](),r)||a(r,t[$a("0xc")]())))if(c){if(t[$a("0x2a")]&&t[$a("0x2a")][$a("0x11a")])continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c[$a("0x172")](e);t[$a("0x16b")]()}else{c=t;for(const e of r)t[$a("0xb4")](e)||t[$a("0x172")](e)}if(c)return c;x[$a("0x52")]();for(const{suggestion:t,meta:e}of this._findSuggestions(r,$a("0xfc")))e[$a("0x38")]&&(this[$a("0xad")]||!e[$a("0x49")]&&!e[$a("0x60")])&&xc(t,o)&&x[$a("0x125")](t);for(const t of x){const e=t.getRanges();if((!o||!o.skipNestingCheck)&&r[$a("0x175")]((t=>e[$a("0x10b")]((e=>e.containsRange(t,!0))))))return t;(!t[$a("0xb2")]||!t[$a("0xb2")][$a("0x90")])&&e[$a("0x175")]((t=>r[$a("0x10b")]((e=>e[$a("0xc5")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d=$a("0x4f")+n,g=this[$a("0x137")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[$a("0x25")](),t.isCollapsed||$a("0x156")==t[$a("0xc1")][$a("0x71")]||this[$a("0x8f")](d,l,u,t,Jo[$a("0x13d")]());return g}[$a("0x34")](t,n,o,i,r,s={}){if(t[$a("0x160")])return[];if($a("0x152")===this[$a("0x10")])return[];const x=this.editor[$a("0x126")].get($a("0x54")).me.id,a=Array[$a("0xcf")](this[$a("0x109")][$a("0xe6")]())[$a("0x7c")]((e=>$a("0x43")==e.type&&e.data.key==n&&e.isIntersectingWithRange(t)));if("default"===this[$a("0x10")]){const e=this._findSuggestions(t,"insertion")[$a("0x7c")]((({meta:t})=>t.isOwn&&!t[$a("0x60")]&&!t.isNextTo))[$a("0x10f")]((({suggestion:t})=>t));a.unshift(...e)}const c=new Map([[t,o]]);for(const t of a){const e=$a("0x43")==t[$a("0x68")]?t[$a("0xf7")].oldValue:void 0,r=t[$a("0x12a")](),s=Array[$a("0xcf")](c.keys())[$a("0x1a")]((t=>t.isIntersecting(r)));s&&(c[$a("0xac")](s),this._isBlockAttribute(n)?s[$a("0x111")](r)[$a("0x11a")]>0&&c[$a("0x127")](s,o):s[$a("0x111")](r)[$a("0x1e")]((t=>{c[$a("0x127")](t,o)})),"insertion"!=t[$a("0x68")]&&e!=i&&c[$a("0x127")](s[$a("0xd0")](r),e))}const l=[];for(const[t,o]of c){const a=(0,e.uid)(),c={key:n,oldValue:o,newValue:i,batchId:r},u=$a("0x140")+(n[$a("0x7e")](0,37)+"|")+nc({newValue:i}),d=this[$a("0x137")]({id:a,type:u,data:c,createdAt:new Date,authorId:x,attributes:s});l[$a("0x157")](d),this[$a("0x8f")](u,a,x,t)}return l}[$a("0x162")](t){this._blockAttributeKeys[$a("0x125")](t)}[$a("0xfe")](t){this[$a("0xea")][$a("0x125")](t)}enableDefaultIntegration(t,e=[],n=[]){this[$a("0x130")](t,((t,...e)=>{this[$a("0xae")]((()=>{t(...e)}))}));for(const t of e)this[$a("0xfe")](t);for(const t of n)this[$a("0x162")](t)}[$a("0xa5")](t,e){const n=t.getFirstMarker();this[$a("0x136")][$a("0x166")]((t=>{t[$a("0xdf")](n,{range:e})}))}[$a("0x145")](t){const e=t.id,n=this.editor[$a("0x108")][$a("0x141")]("collaboration.channelId");this[$a("0xa6")][$a("0x16d")](e)||this[$a("0xa6")][$a("0x15a")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[$a("0xa6")][$a("0x5e")](e);o.unbind($a("0x120")),o[$a("0x120")]=!1,t.commentThread=o}[$a("0x99")](t,n,o,i){if(t.type!=n||t.subType!=o||t[$a("0xa7")].id!=i)throw this[$a("0x4a")][$a("0xee")]($a("0x6b")),new e.CKEditorError($a("0x6b"),this)}[$a("0x20")](t,n){const o=t[$a("0x12a")]();if(n.isEqual(o))t[$a("0x16b")]();else if(o[$a("0xc5")](n)){const i=this[$a("0x136")].createPositionAt(n.start[$a("0x15e")],$a("0x23"));this[$a("0xa5")](t,this[$a("0x136")][$a("0x117")](o[$a("0x18")],i));const r=(0,e.uid)(),s=t.creator.id,x=t[$a("0x68")]+":"+t[$a("0x45")];this[$a("0x137")]({id:r,type:x,createdAt:new Date,authorId:s,data:t[$a("0xf7")],attributes:t[$a("0xb2")]});const a=this._model[$a("0x13e")](n[$a("0x23")][$a("0xc4")],$a("0x35")),c=this._model[$a("0x117")](a,o[$a("0x23")]);this[$a("0x8f")](x,r,s,c)}else if(o[$a("0xa9")](n.start)){const e=this[$a("0x136")][$a("0x13e")](n[$a("0x18")][$a("0x15e")],$a("0x23"));this._setSuggestionRange(t,this[$a("0x136")][$a("0x117")](o[$a("0x18")],e))}else{const e=this[$a("0x136")][$a("0x13e")](n[$a("0x23")][$a("0xc4")],$a("0x35"));this[$a("0xa5")](t,this[$a("0x136")][$a("0x117")](e,o[$a("0x23")]))}}[$a("0xda")](t){for(const{suggestion:e,meta:n}of this[$a("0xde")](t,"insertion")){if(!n[$a("0x38")])continue;const o=e[$a("0xc")]();for(const e of o)if(!t[$a("0x111")](e)[$a("0x11a")])return!0}return!1}[$a("0x2")](t){const n=this[$a("0x4a")][$a("0x126")][$a("0x141")]("Users").getUser(t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[$a("0x11d")](t){const e=this[$a("0x4a")][$a("0x126")].get($a("0x54")),n=(0,r.hashObject)($a("0xd9")+t);return e[$a("0x14e")](n)||e.addUser({id:n,name:t})}[$a("0xe9")](t,e,n,o,i){const r=this[$a("0x2")](o),s=this[$a("0xe2")].buildSuggestion(t,e,n,r,i,(t=>this[$a("0x3a")](n,{attributes:t})));return this[$a("0x7d")](s,$a("0x36"),(()=>{this[$a("0x3a")](n,{state:$a("0x8e")})}),{priority:"high"}),this[$a("0x7d")](s,$a("0x7a"),(()=>{this[$a("0x3a")](n,{state:"rejected"})}),{priority:$a("0xec")}),this[$a("0x109")][$a("0x127")](n,s),this._suggestionState.set(s,$a("0x9f")),s}_splitMarkerName(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[$a("0x11a")]>=5?e[2]:null,id:e[$a("0x11a")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[$a("0x11a")]?e[5]:null}}[$a("0xcd")](t,n,o){const i=t.getFirstRange(),r=i[$a("0x18")],s=i.end;this[$a("0xa5")](t,this[$a("0x136")][$a("0x117")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t.type+(t[$a("0x45")]?":"+t[$a("0x45")]:"");this[$a("0x137")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[$a("0xf7")]});const l=this[$a("0x11c")](t);($a("0x57")==t[$a("0x68")]||l&&this[$a("0x48")](l))&&(o=this[$a("0x136")][$a("0x7f")](o[$a("0xc4")])),this[$a("0x8f")](c,x,a,this._model.createRange(o,s))}_findSuggestions(t,e=null){const n=[],o=this[$a("0x4a")][$a("0x126")][$a("0x141")]($a("0x54")).me;Array[$a("0x174")](t)||(t=[t]);for(const i of this[$a("0x16a")]()){if(!i[$a("0x177")])continue;if(e&&i.type!=e)continue;let r=!1;for(const e of i[$a("0xc")]()){for(const s of t){const t=s[$a("0x18")][$a("0xa1")](e[$a("0x23")])||s[$a("0x23")][$a("0xa1")](e[$a("0x18")]);if(t||s[$a("0xd0")](e)){const x=s[$a("0xc5")](e)&&Qa(this._model.schema,e[$a("0x18")],s),a=e[$a("0xc5")](s)&&Qa(this[$a("0x136")].schema,s.start,e);n[$a("0x157")]({suggestion:i,meta:{isOwn:o==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[$a("0x8f")](t,e,n,o,i){this._model.change((r=>{let s=$a("0x3b")+t+":"+e+":"+n;i&&(s=s+":"+i),r[$a("0x98")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[$a("0x30")](t){const e=t.previous,n=t[$a("0x161")];t[$a("0x2f")]=null,t[$a("0x161")]=null,null!=e&&(e[$a("0x161")]=n),null!=n&&(n.previous=e),$a("0xe8")==this._suggestionState.get(t)&&(this[$a("0x153")][$a("0x127")](t,$a("0x96")),this[$a("0x159")]($a("0xe4"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[$a("0x12e")](t);if(this[$a("0xe0")]&&this[$a("0xe0")][$a("0x178")]){const i=this[$a("0x4a")][$a("0x126")].get($a("0x101")),r=o.hasComments,s=o.subType?o[$a("0x68")]+":"+o.subType:o.type,x=this.editor.locale,a=i[$a("0x125")](Qo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:r,data:t[$a("0xf7")]||null,originalSuggestionId:t[$a("0x19")]||null,attributes:o.attributes};this[$a("0xe0")][$a("0x178")](c).then((t=>{o[$a("0xe5")]=!0,i[$a("0x95")](a),t&&t[$a("0x13")]&&(this[$a("0x109")].get(n)[$a("0x13")]=t.createdAt)}))[$a("0x154")]((t=>{throw(0,e.logWarning)($a("0x102")),this[$a("0x4a")].model.enqueueChange({isUndoable:!1},(()=>{o[$a("0x7a")]()})),o[$a("0xa0")](),this._suggestions[$a("0xac")](o.id),this._suggestionState[$a("0xac")](o),t}))}return o}[$a("0x48")](t){return this[$a("0xeb")][$a("0x65")](t)}[$a("0x11c")](t){return $a("0x43")==t[$a("0x68")]&&t.subType[$a("0xd6")]("|")[0]}[$a("0x3a")](t,e){const n=this[$a("0x4a")][$a("0x126")][$a("0x141")]($a("0x101")),o=this[$a("0xf5")](t);if(this._adapter&&this[$a("0xe0")][$a("0x16")])if(o[$a("0xe5")]){const o=n[$a("0x125")](Qo(this.editor.locale,$a("0x11")));this[$a("0xe0")][$a("0x16")](t,e)[$a("0x150")]((()=>{n[$a("0x95")](o)}))}else o.on($a("0xd5"),(()=>{this[$a("0x3a")](t,e)}))}[$a("0x10d")](t){if(!this[$a("0xe0")]||!this[$a("0xe0")][$a("0xf5")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this._adapter[$a("0xf5")](t)}[$a("0x39")](t){const{id:e,type:n,subType:o,authorId:i}=this[$a("0x2e")](t),r=this._suggestions[$a("0x141")](e)||this._createSuggestion(n,o,e,i,{});switch(this[$a("0x99")](r,n,o,i),this[$a("0x153")][$a("0x141")](r)){case $a("0x9f"):this[$a("0x10d")](e).then((t=>{let n=Promise[$a("0x81")]();t[$a("0x15d")]&&(n=this[$a("0xa6")].fetchCommentThread({channelId:this[$a("0x4a")][$a("0x108")][$a("0x141")]($a("0xd3")),threadId:e})),n[$a("0x150")]((()=>{this[$a("0x12e")](t)[$a("0xe5")]=!0}))})),this[$a("0x153")][$a("0x127")](r,$a("0x75"));break;case $a("0x96"):this[$a("0x3a")](e,{state:$a("0x53")});case $a("0x83"):this._suggestionState[$a("0x127")](r,"ready"),this[$a("0x159")]($a("0xf9"),r);break;case $a("0xe8"):this[$a("0x159")]($a("0x3c"),r)}return r.addMarkerName(t),r}[$a("0x85")](t){const e=Array[$a("0xcf")](t),n=e[$a("0x7c")]((t=>$a("0x43")==t[$a("0x68")]));this[$a("0x4b")](n);const o=e.filter((t=>!t[$a("0x1")]&&$a("0x43")!=t[$a("0x68")])),i=this[$a("0x16a")]({skipNotAttached:!0})[$a("0x7c")]((t=>!t[$a("0x1")]&&"attribute"!=t[$a("0x68")])),r=i[$a("0x7c")]((e=>!t[$a("0x65")](e))),s=new Map(i.map((t=>[t,this[$a("0xe2")][$a("0xef")](t[$a("0x68")],t[$a("0x45")],$a("0xdc"))]))),x=new Map(i[$a("0x10f")]((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<o.length;t++)u(o[t],o,t+1);for(let t=0;t<o[$a("0x11a")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o.length;t++){const e=o[t];!c.has(e)&&e[$a("0x2f")]&&(l[$a("0x125")](e.previous),e[$a("0x2f")].next===e&&(e[$a("0x2f")][$a("0x161")]=null),e[$a("0x2f")]=null),!a[$a("0x65")](e)&&e.next&&(l[$a("0x125")](e[$a("0x161")]),e[$a("0x161")][$a("0x2f")]===e&&(e[$a("0x161")].previous=null),e[$a("0x161")]=null)}function u(t,e,n){for(let o=n;o<e[$a("0x11a")];o++){const n=d(t,e[o]);n&&(n[0].next=n[1],n[1][$a("0x2f")]=n[0],a.add(n[0]),c.add(n[1]))}}function d(t,e){if(t[$a("0xc2")].id!==e[$a("0xc2")].id)return null;const n=s[$a("0x141")](t)(t,e,x.get(t),x[$a("0x141")](e));return n&&s[$a("0x141")](e)(t,e,x[$a("0x141")](t),x[$a("0x141")](e))?n[1].commentThread&&n[1][$a("0x2a")][$a("0x11a")]?null:n:null}}[$a("0x4b")](t){if(0==t[$a("0x11a")])return;const e=this[$a("0x16a")]({skipNotAttached:!0})[$a("0x7c")]((t=>$a("0x43")==t.type&&t[$a("0xe7")])),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t.attributes),i=t.data.batchId+e;o.has(i)||(o[$a("0x127")](i,n[$a("0x11a")]),n[$a("0x157")]([]));const s=o[$a("0x141")](i);n[s].push(t)}!function(){n[$a("0x46")](((t,e)=>t[0][$a("0x13")]<e[0][$a("0x13")]?-1:1));for(const t of n)t[$a("0x46")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[$a("0x11a")];t++){if(0==n[t][$a("0x11a")])continue;const e=[];for(let o=t+1;o<n[$a("0x11a")];o++)0!=n[o][$a("0x11a")]&&i(n[t],n[o])&&e[$a("0x157")](o);for(const o of e)n[t]=n[t][$a("0xb9")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[$a("0x11a")];e++)t[e][$a("0x2f")]=t[e-1]||null,t[e][$a("0x161")]=t[e+1]||null;function i(t,e){return t[0][$a("0xc2")]===e[0].author&&(n=t[0],o=e[0],(!n[$a("0x15d")]&&!o[$a("0x15d")]||!(n[$a("0x15d")]&&o[$a("0x15d")]||!(n[$a("0x15d")]&&o[$a("0x13")]<n[$a("0x2a")][$a("0x61")][$a("0x141")](0)[$a("0x13")]||o[$a("0x15d")]&&n.createdAt<o[$a("0x2a")][$a("0x61")].get(0)[$a("0x13")])))&&(!!sc(t[0],e[0])&&(!!t.every((t=>e[$a("0x10b")]((e=>t[$a("0x12a")]()[$a("0xa1")](e[$a("0x12a")]())))))&&e[$a("0x175")]((e=>t[$a("0x10b")]((t=>e[$a("0x12a")]().isEqual(t[$a("0x12a")]()))))))));var n,o}}[$a("0x134")](t){const e=Array[$a("0xcf")](t),n=this[$a("0x16a")]({skipNotAttached:!0}),o=n[$a("0x7c")]((e=>!t[$a("0x65")](e))),i=new Map(e[$a("0x10f")]((t=>[t,this[$a("0xe2")][$a("0xef")](t.type,t[$a("0x45")],$a("0x100"))]))),r=new Map(n[$a("0x10f")]((t=>[t,t[$a("0xc")]()])));for(let t=0;t<e[$a("0x11a")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[$a("0x11a")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[$a("0x11a")];s++){const o=n[s];if(o[$a("0x68")]!==e[$a("0x68")]||o[$a("0xc2")].id!==e[$a("0xc2")].id||o.subType!==e[$a("0x45")])continue;if(!sc(e,o))continue;if($a("0x43")==e[$a("0x68")]&&e[$a("0xf7")].oldValue!=o.data[$a("0xfd")])continue;const x=i.get(e),a=r[$a("0x141")](e),c=r[$a("0x141")](o),l=e[$a("0x2a")]&&e[$a("0x2a")][$a("0x11a")],u=o.commentThread&&o[$a("0x2a")][$a("0x11a")];if(!l&&x(c,a))return t[$a("0x73")](o,e),r.delete(e),!0;if(!u&&x(a,c))return t[$a("0x73")](e,o),r.delete(o),!0}return!1}}[$a("0x73")](t,e){if(t.isMultiRange)for(const n of e[$a("0xc")]())t[$a("0x172")](n);else{const n=e.getFirstRange()[$a("0x23")];this[$a("0xa5")](t,this[$a("0x136")][$a("0x117")](t[$a("0x12a")]()[$a("0x18")],n))}e.removeMarkers()}[$a("0xc9")](t){return $a("0x10a")===this._splitMarkerName(t[$a("0x4e")])[$a("0x76")]}[$a("0xbe")](t,e){const n=t[$a("0x128")]($a("0x21"))||t[$a("0x128")]($a("0x43"))?"FORMATTING":t.toUpperCase();return Qo(this[$a("0x4a")][$a("0x82")],e+"_"+n+$a("0x8a"))}_initAriaMarkerChangeAnnouncements(){const t=this.editor;(0,r.surroundingMarkersDetector)(this[$a("0x136")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[$a("0x2e")](t[$a("0x4e")]);if($a("0x10a")===e){o[$a("0x157")](this[$a("0xbe")](n,$a("0xd7")));break}}for(const t of n){const{group:e,type:n}=this[$a("0x2e")](t.name);if($a("0x10a")===e){o.push(this._getMarkerAnnouncementText(n,$a("0x122")));break}}o[$a("0x11a")]&&t.ui.ariaLiveAnnouncer[$a("0x17")]("trackChanges",o[$a("0x100")](" "))}))}[$a("0x28")](t){if(null!==this[$a("0x9")])return!1;const e=this[$a("0x4a")],n=e.model[$a("0x5c")][$a("0x103")][$a("0x84")]();if(0==n[$a("0x11a")])return!1;const o=[],i=n[$a("0x7c")]((t=>$a("0x43")==t[$a("0x68")])),r=n[$a("0x7c")]((t=>"insert"==t[$a("0x68")]&&"$text"!=t[$a("0x4e")])),s=n[$a("0x7c")]((t=>$a("0x95")==t[$a("0x68")]&&"$text"!=t[$a("0x4e")]));for(const t of i)o.push({key:t[$a("0xaf")],newValue:t[$a("0x12")],oldValue:t[$a("0xcb")],range:(x=t[$a("0x5")],null==x[$a("0x23")][$a("0x15e")]&&x[$a("0x23")][$a("0xc4")]==x[$a("0x18")][$a("0x14c")]?ic(x[$a("0x18")][$a("0x14c")],e[$a("0xf8")]):x)});var x;for(const t of r){const n=s[$a("0x1a")]((e=>e[$a("0x11f")][$a("0xa1")](t[$a("0x11f")])));n&&o[$a("0x157")]({key:$a("0x155"),newValue:n[$a("0x4e")],oldValue:t.name,range:e.model.createRangeOn(t[$a("0x11f")].nodeAfter)})}return 0!=o[$a("0x11a")]&&this[$a("0x4c")](t,o)}_processAttributeSuggestions(t){let e=!1;const n=this[$a("0x4a")][$a("0xf8")][$a("0x5c")][$a("0x103")][$a("0x62")]().filter((t=>t[$a("0xf7")].newRange&&t.name[$a("0x128")]($a("0x179"))));for(const o of n){const{subType:n,id:i}=this._splitMarkerName(o.name),r=n[$a("0xd6")]("|")[0];for(const n of this[$a("0x16a")]({skipNotAttached:!0}))n.id!=i&&$a("0x43")==n[$a("0x68")]&&n[$a("0xf7")]&&n.data[$a("0x3d")]==r&&n[$a("0x12a")]()[$a("0x121")](o[$a("0xf7")][$a("0x116")])&&(this._reduceSuggestionAttributeRange(n,o[$a("0xf7")][$a("0x116")],t),e=!0)}return e}_recordAttributeChanges(t){if(null!==this._recordAttributeSuggestionsFromVersion)return void t();const n=this[$a("0x4a")];this[$a("0x9")]=n.model[$a("0x5c")].version,t();const o=new Map;for(const t of n[$a("0xf8")].document.history[$a("0x3e")](this[$a("0x9")]))if([$a("0xba"),"addAttribute",$a("0x173"),$a("0x176")][$a("0x4")](t.type)){const e=t[$a("0x8b")],n=o[$a("0x141")](e)||[];n.push(t),o.set(e,n)}this[$a("0x9")]=null;for(const[t,i]of o){const o=(0,e.uid)();n.model.enqueueChange(t,(t=>{const e=[];for(const t of i){let i,r,s,x;if("rename"==t[$a("0x68")]){const e=t;i=ic(e[$a("0x11f")].nodeAfter,n.model),r=$a("0x155"),s=e[$a("0xce")],x=e.oldName}else{const e=t,o=this[$a("0x48")](e.key),a=this[$a("0xea")][$a("0x65")](e[$a("0x3d")]);if(!o&&!a)continue;i=o?ic(e[$a("0x5")].start.nodeAfter,n[$a("0xf8")]):e[$a("0x5")],r=e[$a("0x3d")],s="removeAttribute"==t[$a("0x68")]?void 0:e[$a("0xd")],x=e[$a("0xfd")]}this.markAttributeChange(i,r,x,s,o),e[$a("0x157")]({range:i,key:r,newValue:s,oldValue:x})}this[$a("0x4c")](t,e)}))}}[$a("0x4c")](t,e){if(0==e[$a("0x11a")])return!1;let n=!1;for(const o of e){const e=this[$a("0xde")](o[$a("0x5")],$a("0x43")).filter((t=>!t[$a("0x14b")][$a("0x92")]))[$a("0x10f")]((t=>t[$a("0x10a")])),i=(0,r.hashObject)({newValue:o[$a("0xd")]}),s=e[$a("0x7c")]((t=>{const[e,n]=t[$a("0x45")].split("|");return e==o[$a("0x3d")]&&n!=i}));for(const e of s)this[$a("0x11b")](e,o[$a("0x5")],t),n=!0}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t[$a("0x12a")]()[$a("0x111")](e);if(0===o[$a("0x11a")])return void n.removeMarker(t[$a("0x168")]());const i=this._getAttributeKeyFromSubType(t);this[$a("0x48")](i)||(1!==o[$a("0x11a")]?this._breakSuggestionMarker(t,e[$a("0x18")],e[$a("0x23")]):this[$a("0xa5")](t,o[0]))}}class Ja{constructor(t){this[$a("0x9b")]=t,this[$a("0x136")]=t[$a("0xf8")],this[$a("0xe1")]=new Map,this[$a("0xdd")]=new Map,this[$a("0x88")]()}[$a("0x113")](t,e,n,o,i,r){return new Jo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,$a("0x36"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,$a("0x7a"))(...n)})}registerCustomCallback(t,e,n,o){const i=t+":"+e+":"+n;this[$a("0xe1")][$a("0x127")](i,o)}[$a("0xef")](t,e,n){const o=t+":"+e+":"+n;return this[$a("0xe1")][$a("0x141")](o)||this._defaultCallbacks[$a("0x141")](t+":"+n)}[$a("0x88")](){const t=()=>!1,e=t=>{t[$a("0x46")](((t,e)=>t[$a("0x18")][$a("0x12b")](e[$a("0x18")])?1:-1)),this[$a("0x136")].change((e=>{for(const n of t){let t;t=n[$a("0x23")][$a("0x94")]&&n[$a("0x23")][$a("0xc4")]==n[$a("0x18")][$a("0x14c")]?e.createSelection(n[$a("0x18")][$a("0x14c")],"on"):e[$a("0xbf")](n),this[$a("0x136")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model.change((n=>{const{commandName:o,commandParams:i=[]}=e,r=t[$a("0x10f")]((t=>(tc(t)&&(t=this[$a("0x136")].createRange(t[$a("0x23")])),t)))[$a("0x7c")]((t=>$a("0x156")!==t[$a("0xc1")][$a("0x71")]));if(r.length<1)return;const x=Array[$a("0xcf")](this[$a("0x136")][$a("0x5c")][$a("0x10e")][$a("0xc")]())[$a("0x10f")]((t=>s.LiveRange.fromRange(t)));n[$a("0x114")](r);for(const t of this[$a("0x9b")][$a("0x1b")][$a("0x1b")]())t[$a("0x14a")]();i.push({forceDefaultExecution:!0}),this[$a("0x9b")][$a("0x8d")](o,...i);const a=x[$a("0x7c")]((t=>$a("0x156")!=t[$a("0xc1")][$a("0x71")]));a[$a("0x11a")]>0&&n[$a("0x114")](a);for(const t of x)t[$a("0x25")]()}))},o=(t,e)=>1==t[$a("0x11a")]&&1==e[$a("0x11a")]&&t[0][$a("0x23")][$a("0xa1")](e[0][$a("0x18")]),i=(t,e,n,o)=>rc(t,e,n,o,this[$a("0x136")])?[t,e]:rc(e,t,o,n,this[$a("0x136")])?[e,t]:null;this[$a("0xdd")].set($a("0x13c"),t),this[$a("0xdd")][$a("0x127")]($a("0x5d"),e),this._defaultCallbacks[$a("0x127")]("insertion:join",o),this[$a("0xdd")].set($a("0xbb"),i),this[$a("0xdd")][$a("0x127")]("deletion:accept",e),this[$a("0xdd")][$a("0x127")]($a("0xd2"),t),this[$a("0xdd")][$a("0x127")]($a("0x70"),o),this[$a("0xdd")][$a("0x127")]($a("0x1f"),i),this[$a("0xdd")][$a("0x127")]($a("0xa2"),n),this[$a("0xdd")][$a("0x127")]($a("0x97"),t),this[$a("0xdd")].set($a("0x12c"),o),this[$a("0xdd")][$a("0x127")]($a("0x67"),t),this[$a("0xdd")][$a("0x127")]($a("0x47"),n),this._defaultCallbacks[$a("0x127")]($a("0x146"),t),this._defaultCallbacks[$a("0x127")]($a("0xf6"),o),this[$a("0xdd")][$a("0x127")]($a("0x2b"),t),this[$a("0xdd")][$a("0x127")]($a("0x13b"),t),this[$a("0xdd")][$a("0x127")]($a("0x1d"),((t,e)=>{e&&($a("0x155")!=e[$a("0x3d")]?this[$a("0x9b")].plugins.get(Za)[$a("0x48")](e[$a("0x3d")])?this[$a("0x136")].change((n=>{for(const o of t)void 0===e[$a("0xfd")]?n[$a("0x173")](e[$a("0x3d")],o[$a("0x18")][$a("0x14c")]):n[$a("0x4d")](e.key,e[$a("0xfd")],o.start[$a("0x14c")])})):this[$a("0x136")].change((n=>{for(const o of t)e[$a("0xfd")]?n[$a("0x4d")](e[$a("0x3d")],e.oldValue,o):n[$a("0x173")](e[$a("0x3d")],o)})):this[$a("0x136")].change((n=>{for(const o of t){const t=o[$a("0x18")][$a("0x14c")];n[$a("0xba")](t,e[$a("0xfd")])}})))})),this[$a("0xdd")].set($a("0x142"),o)}}function Qa(t,e,n){for(const o of e[$a("0xc4")][$a("0x79")]({includeSelf:!0,parentFirst:!0})){if(o[$a("0xc1")]==o)return!1;if(!n[$a("0xb1")](o))return!1;if(t[$a("0x66")](o)||t[$a("0x149")](o))return!0}return!1}function tc(t){return t[$a("0x23")][$a("0xc4")]==t[$a("0x18")][$a("0x14c")]&&t[$a("0x23")][$a("0xab")]}function ec(t,e,n,o){const i=t=>!t.item.is($a("0x15c"))&&!o.isObject(t[$a("0x139")]),r=t[$a("0x18")].getLastMatchingPosition(i),s=t[$a("0x23")].getLastMatchingPosition(i,{direction:$a("0x164")});return!(t.start.isEqual(r)&&t.end.isEqual(s)||(r[$a("0x12b")](s)?n[$a("0xdf")](e,{range:n[$a("0x117")](r,s)}):n[$a("0xbd")](e),0))}function nc(t){return(0,r.hashObject)(t)}function oc(t){const e=t[$a("0x18")].nodeAfter;return e&&e.is($a("0x33"))}function ic(t,e){const n=e.schema[$a("0x66")](t)||e[$a("0xc3")][$a("0x144")](t);return e.createRange(e[$a("0x13e")](t,"before"),n?e[$a("0x138")](t):e[$a("0x13e")](t,$a("0x23")))}function rc(t,e,n,o,i){if(!sc(t,e))return!1;if(n[$a("0x23")][$a("0xa1")](o.start))return!0;if(t[$a("0x68")]!=e.type)return!1;if(!n[$a("0x23")][$a("0xfa")](o[$a("0x18")]))return!1;const r=i[$a("0x117")](n[$a("0x23")],o[$a("0x18")])[$a("0x16e")]();for(const t of r)if([$a("0xb3"),$a("0x8c")][$a("0x4")](t[$a("0x68")])&&i[$a("0xc3")][$a("0x149")](t[$a("0x139")]))return!1;return!0}function sc(t,e){return!(!t[$a("0xe7")]||!e._isDataLoaded)&&Go(t[$a("0xb2")],e[$a("0xb2")])}function xc(t,e){const n=ac(t.attributes),o=ac(e);if(!t[$a("0xe7")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ac(t){const e=Object[$a("0x163")]({},t);return delete e.skipNestingCheck,delete e.tablePasteChainId,e}const cc=["PendingActions","_pendingAction","_editor","add","discardSuggestion","commands","destroy","getRanges","plugins","unbind","_removePendingAction","listenTo","bind","isEnabled","_discardCommand","_setPendingAction","view","stopListening","model","PENDING_ACTION_SUGGESTION","get","execute","commentThreadController","canDiscard","_acceptCommand","isDirty","change:isDirty","locale","canAccept","canEditAt","acceptSuggestion"];var lc,uc;lc=cc,uc=457,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[dc("0x1a")]=e,this.view=n,this[dc("0x1e")]=o,this._editor=t,this[dc("0x1")]=t[dc("0xd")].get("acceptSuggestion"),this[dc("0x16")]=t.commands.get("discardSuggestion"),this[dc("0x18")][dc("0x14")](dc("0x15")).to(this[dc("0x1")],this[dc("0x16")],((t,e)=>t||e)),this[dc("0x18")][dc("0x14")](dc("0x5")).to(this._acceptCommand,dc("0x15"),(t=>t&&this[dc("0xa")][dc("0x1a")][dc("0x6")](e[dc("0xf")]()))),this[dc("0x18")][dc("0x14")](dc("0x0")).to(this[dc("0x16")],dc("0x15"),(t=>t&&this._editor[dc("0x1a")][dc("0x6")](e[dc("0xf")]()))),this[dc("0x9")]=null,n[dc("0x2")]&&this[dc("0x17")](),this[dc("0x13")](n,"acceptSuggestion",(()=>this[dc("0x7")]())),this[dc("0x13")](n,dc("0xc"),(()=>this.discardSuggestion())),this[dc("0x13")](n,dc("0x3"),(()=>{n[dc("0x2")]?this[dc("0x17")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand[dc("0x1d")](this[dc("0x1a")].id)}[dc("0xc")](){this[dc("0x16")][dc("0x1d")](this.model.id)}[dc("0xe")](){this.view[dc("0x11")](dc("0x15")),this[dc("0x18")].unbind(dc("0x5")),this[dc("0x18")][dc("0x11")](dc("0x0")),this[dc("0x19")](),this.commentThreadController[dc("0xe")](),this[dc("0x9")]&&this[dc("0x12")]()}[dc("0x17")](){const t=Qo(this[dc("0xa")][dc("0x4")],dc("0x1b"));this[dc("0x9")]=this[dc("0xa")][dc("0x10")][dc("0x1c")](dc("0x8"))[dc("0xb")](t)}[dc("0x12")](){null!==this[dc("0x9")]&&this[dc("0xa")][dc("0x10")][dc("0x1c")]("PendingActions").remove(this[dc("0x9")]),this._pendingAction=null}}const fc=["_createCommentThreadInputView","locale","isDirty","editor","setData","_config","authoredAt","addComment","CommentView","commentThread","cancel","value","element","commentsListView","descriptionParts","assign","removeComment","commentInputView","isReadOnly","updateComment","_model","fire","length","delegate","showInput","bind","set","destroy","canDiscard","isEnabled","focus","_createCommentViews","commentThreadInputView","submit","_localUser","disabledSubmit","disableComments","isActive"];var mc,hc;mc=fc,hc=475,function(t){for(;--t;)mc.push(mc.shift())}(++hc);const pc=function(t,e){return fc[t-=0]};class bc extends i.View{constructor(t,e,n,o){super(t),this[pc("0x20")]=null,this[pc("0xd")]=null,this[pc("0x7")](pc("0x12"),!1),this.set(pc("0x19"),e[pc("0x19")]),this[pc("0x6")](pc("0x19")).to(e),this[pc("0x7")](pc("0x21"),[]),this[pc("0x7")](pc("0x15"),!1),this.set(pc("0xa"),!1),this[pc("0x7")]("canAccept",!1),this[pc("0x7")](pc("0x9"),!1),this[pc("0x1")]=e,this[pc("0xf")]=n,this[pc("0x18")]=o,o[pc("0x11")]?this.set(pc("0x3"),1):this[pc("0xc")]()}[pc("0xb")](){this[pc("0x1f")].focus()}[pc("0x8")](){this[pc("0x20")]&&this.commentsListView.destroy(),this[pc("0xd")]&&this[pc("0xd")][pc("0x8")](),super[pc("0x8")]()}[pc("0xc")](){const{CommentsListView:t}=this[pc("0x18")];this[pc("0x20")]=new t(this[pc("0x14")],this[pc("0x1")].commentThread,Object[pc("0x22")]({CommentView:this[pc("0x18")][pc("0x1b")]},this._config)),this.commentsListView.delegate(pc("0x23")).to(this),this[pc("0x20")][pc("0x4")](pc("0x0")).to(this),this.commentsListView[pc("0x6")](pc("0x12")).to(this),this[pc("0x7")](pc("0x3"),this[pc("0x20")][pc("0x3")]+1),this[pc("0x6")](pc("0x3")).to(this[pc("0x20")],"length",(t=>t+1)),this[pc("0xd")]=this[pc("0x13")](),this.on(pc("0x23"),(()=>this[pc("0xb")]())),this[pc("0x6")]("isDirty").to(this[pc("0x20")],"hasDirtyComment",this[pc("0xd")][pc("0x24")],"value",((t,e)=>t||!!e))}[pc("0x13")](){const{CommentThreadInputView:t}=this[pc("0x18")],e=new t(this[pc("0x14")],this[pc("0xf")],this[pc("0x18")].editorConfig),n=e[pc("0x24")];return e[pc("0x6")](pc("0x5")).to(this,pc("0x12"),this[pc("0x1")][pc("0x1c")],pc("0x25"),n,pc("0x1e"),((t,e,n)=>!!n||t&&!e)),n.on(pc("0xe"),((t,e)=>{this[pc("0x2")](pc("0x1a"),e),n[pc("0x16")][pc("0x17")]("")})),n.on(pc("0x1d"),(()=>this[pc("0xb")]())),n[pc("0x6")](pc("0x10")).to(this[pc("0x1")][pc("0x1c")],pc("0x25")),e}}const Ec=["ck-annotation","getTemplate","_descriptionElement","description","join","cancel","commentThreadInputView","author","name","ck-annotation__main","fire","importWord","disableComments",".ck-annotation__content-wrapper","innerHTML","querySelector","ck-annotation__info","bind","ck-comment__external","delegate","ck-suggestion__info","EXTERNAL_SUGGESTION","descriptionParts","editorDestroyed","span","isExternal","source","acceptButton","ck-suggestion__info-name","Discard suggestion","isActive","ck-suggestion","formatDateTime","getExternalSuggestionNote","authoredAt","attributes","ck-annotation__content-wrapper","ck-suggestion-wrapper--active","render","ck-annotation__user","_config",'" title="',"discardSuggestion","@external","</p>","isEnabled","Accept suggestion","type","getUserViewNotificationText","ck-annotation__actions","_model","div","EXTERNAL_IMPORT_WORD_SUGGESTION","commentsListView","extendTemplate","ck-comment__info-time","userView","ck-annotation__info-time","ck-suggestion-wrapper","ck-suggestion--discard","check","title","canDiscard","bindTemplate","acceptSuggestion","execute","_createButton","ck-suggestion__main","push","time","set","setTemplate","ck-suggestion__actions","editorReady","locale",'"></span>',"creator","createElement","commentThread","</span>","<p>"];var _c,Tc;_c=Ec,Tc=292,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]};class Cc extends bc{constructor(e,n,o,i){super(e,n,o,i),this[yc("0x15")]("type",""),this[yc("0x31")](yc("0x4f")).to(this,yc("0x36"),(t=>t&&t[0]?t[0][yc("0x4f")]:"")),this.bind(yc("0x23")).to(this,yc("0x36"),this,yc("0x3e"),((t,e)=>{let n="";for(const e of t)n+=yc("0x1f")+Ac(e.content,e.color)+yc("0x4c");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[yc("0x22")]=null,this[yc("0x3b")]=this[yc("0x11")](Qo(e,yc("0x4e")),t.icons[yc("0xb")],"ck-suggestion--accept",yc("0xf"),"sw"),this[yc("0x3b")][yc("0x31")](yc("0x4d")).to(this,"canAccept"),this.discardButton=this[yc("0x11")](Qo(e,yc("0x3d")),t.icons[yc("0x25")],yc("0xa"),yc("0x4a"),"sw"),this.discardButton.bind(yc("0x4d")).to(this,yc("0xd")),this[yc("0x7")]=new r.UserView(e,this[yc("0x1")].author,this[yc("0x50")]()),this[yc("0x7")].extendTemplate({attributes:{class:["ck-suggestion__user",yc("0x47")]}}),this[yc("0x16")](this[yc("0x21")]())}getTemplate(){const t=this[yc("0xe")],e=[{tag:yc("0x2"),attributes:{class:[yc("0x34"),yc("0x30")]},children:[{tag:yc("0x38"),children:[{text:this[yc("0x7")][yc("0x28")]}],attributes:{class:[yc("0x3c"),"ck-annotation__info-name"]}},{tag:yc("0x14"),attributes:{datetime:t.to(yc("0x42")),class:[yc("0x6"),yc("0x8")]},children:[{text:t.to(yc("0x42"),(t=>this[yc("0x48")][yc("0x40")](t)))}]}]},{tag:"div",attributes:{class:[yc("0x17"),yc("0x0")]},children:[this[yc("0x3b")],this.discardButton]},{tag:"div",attributes:{class:[yc("0x44")]}}];this[yc("0x1")][yc("0x39")]&&e[yc("0x13")]({tag:"div",attributes:{class:[yc("0x32")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:yc("0x2"),attributes:{class:[yc("0x9"),t.if(yc("0x3e"),yc("0x45")),t.to(yc("0x4f"),(t=>"ck-suggestion-"+t)),this[yc("0x48")][yc("0x2c")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[yc("0x1")].id,"data-thread-id":this._model[yc("0x1d")].id,"data-author-id":this._model[yc("0x27")].id,tabindex:-1},children:[{tag:yc("0x2"),attributes:{class:[yc("0x3f"),yc("0x20")]},children:[this[yc("0x7")],{tag:"div",attributes:{class:[yc("0x12"),yc("0x29")]},children:e}]}]};return this[yc("0x4")]&&this[yc("0x26")]&&(n.children[yc("0x13")](this[yc("0x4")],this[yc("0x26")]),this[yc("0x4")][yc("0x33")](yc("0x18")).to(this),this[yc("0x4")][yc("0x33")](yc("0x37")).to(this),this[yc("0x26")].delegate(yc("0x18")).to(this),this[yc("0x26")][yc("0x33")](yc("0x37")).to(this)),n}[yc("0x46")](){super[yc("0x46")](),this[yc("0x22")]=this.element[yc("0x2f")](yc("0x2d")),this[yc("0x22")].innerHTML=this.description,this.on("change:description",((t,e,n)=>{this._descriptionElement.innerHTML=n}))}_createButton(t,e,n,o,r){const s=new i.ButtonView(this.locale);return s[yc("0x15")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[yc("0x5")]({attributes:{class:n}}),s.on(yc("0x10"),(()=>{this[yc("0x2a")](o,this._model.id)})),s}[yc("0x41")](){return"importWord"===this[yc("0x1")].attributes[yc("0x4b")][yc("0x3a")]?Qo(this[yc("0x19")],yc("0x3")):Qo(this[yc("0x19")],yc("0x35"))}[yc("0x50")](){return this._model[yc("0x39")]?yc("0x2b")===this._model[yc("0x43")][yc("0x4b")].source?Qo(this[yc("0x19")],"EXTERNAL_IMPORT_WORD_AVATAR",this[yc("0x1")][yc("0x1b")][yc("0x28")]):Qo(this[yc("0x19")],"EXTERNAL_AVATAR",this[yc("0x1")][yc("0x1b")].name):null}}function Ac(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+kc(t)+yc("0x1e"):kc(t)))[yc("0x24")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e.value+yc("0x49")+e[yc("0xc")]+yc("0x1a")),n}function kc(t){const e=document[yc("0x1c")](yc("0x38"));return e.innerText=t,e[yc("0x2e")]}const Rc=["unbind","head","getByInnerView","change:previous","Track changes","acceptSelectedSuggestions","createAnnotation","suggestionLoaded","arrowView","discardAllSuggestions","CommentView","activeAnnotations","_initializeController","separator","focus","Discard all suggestions","innerView","getJoined","SuggestionThreadView","comments.maxCommentCharsWhenCollapsed","editor","CommentsRepository","toMany","Accept all selected suggestions","push","_refreshActiveMarkers","getDescriptions","_annotationViews","plugins","_unbindEditors","commandName","CommentsUI","suggestionChanged","_destroyController","execute","get","getSuggestion","_viewToController","isInContent","_handleControllerBuffer","_suggestionToController","_descriptionFactory","from","commentThread","values","remove","value","Discard all selected suggestions","discardSelectedSuggestions","_handleSuggestionControllerDelayed","comments.maxThreadTotalWeight","getMarkers","listenTo","isEnabled","buttonView","refreshSelectedViews","_updateController","lowest","suggestionUnloaded","descriptionParts","view","trackChanges.disableComments","comments.maxCommentsWhenCollapsed","size","keys","has","Annotations","define","commands","type","EditorAnnotations","comments","destroy","suggestion-","filter","addComment","isDirty","model","pluginName","discardButton","isMultiRange","registerAnnotation","createAnnotationView","comments.editorConfig","length","_disableComments","mainView","_bindAnnotationToEditors","actionView","getMarkerNames","button","add","trackChanges","some","isOn","_createUIButton","stopListening","activeMarkers","set","getAllAdjacentSuggestions","locale","reduce","bind","init","editing","switchbutton","requires","delete","source","TrackChangesEditing"];var Ic,Sc;Ic=Rc,Sc=317,function(t){for(;--t;)Ic.push(Ic.shift())}(++Sc);const Nc=function(t,e){return Rc[t-=0]};class vc extends t.Plugin{static get[Nc("0x9")](){return[Za,r.Users,Nc("0x22"),Nc("0x4f"),Nc("0x53")]}static get[Nc("0x5b")](){return"TrackChangesUI"}constructor(t){super(t),this._suggestionToController=new Map,this._viewToController=new Map,this[Nc("0x28")]=new Map,this[Nc("0x34")]=new Map;const e=this[Nc("0x21")].config;e[Nc("0x50")]("trackChanges.SuggestionThreadView",Cc),e.define(Nc("0x4a"),!1),this[Nc("0x62")]=e.get("trackChanges.disableComments")}[Nc("0x3e")](t,e){0===this[Nc("0x34")][Nc("0x4c")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Nc("0x35")][Nc("0x4e")](t);n||e?n&&e&&this[Nc("0x2e")](t):this[Nc("0x19")](t)}this.editor.plugins[Nc("0x30")](Nc("0x53"))[Nc("0x44")](),this[Nc("0x26")](),this._handleControllerBuffer.clear()}),10),this._handleControllerBuffer[Nc("0x1")](t,e)}[Nc("0x6")](){const t=this[Nc("0x21")],e=t[Nc("0x29")][Nc("0x30")]("TrackChangesEditing"),n=t.plugins[Nc("0x30")](Nc("0x4f")),o=t[Nc("0x29")][Nc("0x30")](Nc("0x53")),i=t[Nc("0x29")][Nc("0x30")]("CommentsRepository");t.ui.componentFactory[Nc("0x68")]("trackChanges",(t=>this._createUIButton(t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Nc("0x37")](this[Nc("0x35")])){const o=e[Nc("0x2")](),i=[];for(const t of o){if(!t.isInContent)continue;if(t[Nc("0x5d")]){i[Nc("0x25")](...t.getRanges());continue}const e=t.getFirstRange();if(i.length>0){const t=i[0][Nc("0x1e")](e);if(t){i[0]=t;continue}}i.push(e)}t[Nc("0x25")]([n[Nc("0x49")],i])}return t})),this.listenTo(e,Nc("0x14"),((t,e)=>{this.listenTo(e,Nc("0x10"),((t,n,o,i)=>{e[Nc("0x33")]&&(null==o?(this._updateController(i[Nc("0xe")]),this[Nc("0x3e")](e,!1)):(this[Nc("0x45")](o[Nc("0xe")]),null==i&&this[Nc("0x3e")](e,!0)))})),null!==e.previous?this[Nc("0x45")](e[Nc("0xe")]):this[Nc("0x3e")](e,!1)})),this[Nc("0x41")](e,Nc("0x47"),((t,e,n)=>{this[Nc("0x6d")](e,"change:previous"),this._handleControllerBuffer[Nc("0xa")](e),this._suggestionToController.has(e)&&this._destroyController(e),n&&this[Nc("0x45")](n[Nc("0xe")])})),this[Nc("0x41")](e,Nc("0x2d"),((t,e)=>{this[Nc("0x45")](e)})),this[Nc("0x41")](n,"change:activeAnnotations",(()=>{this[Nc("0x26")]()})),this[Nc("0x41")](i,Nc("0x58"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const i=e[Nc("0x31")](n);this[Nc("0x35")][Nc("0x30")](i)[Nc("0x49")][Nc("0x1b")]()}),{priority:Nc("0x46")})}[Nc("0x26")](){const t=this[Nc("0x21")][Nc("0x29")][Nc("0x30")](Nc("0x4f")),e=this[Nc("0x21")][Nc("0x29")][Nc("0x30")](Nc("0xc")),n=Array[Nc("0x37")](t[Nc("0x18")],(t=>t[Nc("0x1d")])).filter((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this[Nc("0x32")].get(t)[Nc("0x5a")][Nc("0x2")]();o.push(...e[Nc("0x4")](((t,e)=>[...t,...e[Nc("0x66")]()]),[]))}e[Nc("0x0")]=o}[Nc("0x6c")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this[Nc("0x21")].commands[Nc("0x30")]("trackChanges"),r=Qo(t,Nc("0x11"));n[Nc("0x43")][Nc("0x1")]({tooltip:r,label:r,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-2023, 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[Nc("0x43")][Nc("0x5")](Nc("0x6b")).to(o,Nc("0x3b")),n[Nc("0x43")].on(Nc("0x2f"),(()=>{o[Nc("0x2f")](),this[Nc("0x21")][Nc("0x7")][Nc("0x49")][Nc("0x1b")]()}));const s=new e.Collection,x=[{type:Nc("0x8"),model:{withText:!0,label:r,commandName:Nc("0x69")}},{type:Nc("0x1a")},{type:Nc("0x67"),model:{withText:!0,label:Qo(t,"Accept all suggestions"),commandName:"acceptAllSuggestions"}},{type:Nc("0x67"),model:{withText:!0,label:Qo(t,Nc("0x24")),commandName:Nc("0x12")}},{type:Nc("0x67"),model:{withText:!0,label:Qo(t,Nc("0x1c")),commandName:Nc("0x16")}},{type:"button",model:{withText:!0,label:Qo(t,Nc("0x3c")),commandName:Nc("0x3d")}}];for(const t of x){let e={type:Nc("0x1a")};if(t[Nc("0x5a")]){const n=new i.Model(t[Nc("0x5a")]),o=this[Nc("0x21")][Nc("0x51")][Nc("0x30")](n[Nc("0x2b")]);n[Nc("0x5")]("isOn",Nc("0x42")).to(o,Nc("0x3b"),Nc("0x42")),e={type:t.type,model:n}}s[Nc("0x68")](e)}(0,i.addListToDropdown)(n,s);const a=x.filter((t=>null!=t.model)).map((t=>this[Nc("0x21")][Nc("0x51")][Nc("0x30")](t[Nc("0x5a")][Nc("0x2b")]))),c=n.buttonView;return c[Nc("0x65")][Nc("0xd")]("isEnabled"),c[Nc("0x15")][Nc("0xd")](Nc("0x42")),c[Nc("0x65")][Nc("0x5")]("isEnabled").to(o,Nc("0x42")),c[Nc("0x15")][Nc("0x5")](Nc("0x42"))[Nc("0x23")](a,Nc("0x42"),((...t)=>t[Nc("0x6a")]((t=>t)))),n.on(Nc("0x2f"),(t=>{this.editor[Nc("0x2f")](t[Nc("0xb")].commandName),this.editor[Nc("0x7")][Nc("0x49")].focus()})),n}[Nc("0x19")](t){const e=this[Nc("0x21")],n=e.config,o=e[Nc("0x29")][Nc("0x30")](Nc("0x4f")),i=e[Nc("0x29")].get("CommentsRepository"),s=e[Nc("0x29")][Nc("0x30")]("EditorAnnotations"),x=e[Nc("0x29")][Nc("0x30")](r.Users).me,a=n[Nc("0x30")](Nc("0x69"))[Nc("0x1f")],{CommentsListView:c,CommentThreadInputView:l}=e[Nc("0x29")][Nc("0x30")](Nc("0x2c"));let u,d;this[Nc("0x28")][Nc("0x4e")](t.id)?(d=this[Nc("0x28")].get(t.id),u=d[Nc("0x63")]):(u=new a(e[Nc("0x3")],t,x,{disableComments:this._disableComments,editorConfig:n[Nc("0x30")](Nc("0x60")),maxCommentsWhenCollapsed:n[Nc("0x30")](Nc("0x4b")),maxThreadTotalWeight:n[Nc("0x30")](Nc("0x3f")),maxCommentCharsWhenCollapsed:n[Nc("0x30")](Nc("0x20")),formatDateTime:(0,r.getDateTimeFormatter)(n[Nc("0x30")]("locale")),CommentView:n[Nc("0x30")](Nc("0x54"))[Nc("0x17")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on("execute",(()=>{e.editing[Nc("0x49")][Nc("0x1b")]()})),u[Nc("0x5c")].on("execute",(()=>{e[Nc("0x7")].view[Nc("0x1b")]()})),d=o[Nc("0x5f")](this[Nc("0x21")][Nc("0x3")],u),d[Nc("0x5")](Nc("0x59")).to(u,Nc("0x59")),d[Nc("0x5")](Nc("0x61")).to(u),d[Nc("0x5")](Nc("0x52")).to(u,"type",(t=>Nc("0x56")+t)),this[Nc("0x28")][Nc("0x1")](t.id,d));const g=i.createCommentThreadController(t[Nc("0x38")],u),f=new gc(e,t,u,g),m=t[Nc("0x2")]()[Nc("0x57")]((t=>t.isInContent));u[Nc("0x48")]=e[Nc("0x29")][Nc("0x30")](Nc("0xc"))[Nc("0x36")][Nc("0x27")](m),this[Nc("0x35")].set(t,f),this[Nc("0x32")].set(u,f);const h=o[Nc("0x13")]({view:d,target:()=>{const n=[],o=t[Nc("0x2")]()[Nc("0x57")]((t=>t[Nc("0x33")]));for(const t of o)n.push(...t[Nc("0x40")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Nc("0x56")+f[Nc("0x49")][Nc("0x52")]});i[Nc("0x64")](u,h),o[Nc("0x68")](h),s[Nc("0x5e")](h)}[Nc("0x2e")](t){const e=this[Nc("0x21")].plugins[Nc("0x30")]("CommentsRepository"),n=this[Nc("0x21")][Nc("0x29")].get(Nc("0x4f")),o=this._suggestionToController.get(t),i=o[Nc("0x49")],r=n[Nc("0xf")](i);e[Nc("0x2a")](i),r&&n[Nc("0x3a")](r),this._suggestionToController[Nc("0xa")](t),this._viewToController.delete(i),o[Nc("0x55")]()}[Nc("0x45")](t){if(!t[Nc("0x33")]||!this[Nc("0x35")].has(t))return;const e=this[Nc("0x21")][Nc("0x29")].get(Nc("0xc")),n=this[Nc("0x35")][Nc("0x30")](t),o=t[Nc("0x2")]();n[Nc("0x49")].descriptionParts=e[Nc("0x36")][Nc("0x27")](o)}destroy(){for(const t of this[Nc("0x35")][Nc("0x4d")]())this[Nc("0x2e")](t);for(const t of this._annotationViews[Nc("0x39")]())t[Nc("0x63")][Nc("0x55")]();super[Nc("0x55")]()}}var Lc,Mc,Oc=["adapter","requires","editor","Comments","getSuggestions","TrackChanges","pluginName","addSuggestion","getSuggestion","plugins","get"];Lc=Oc,Mc=483,function(t){for(;--t;)Lc.push(Lc.shift())}(++Mc);var wc=function(t,e){return Oc[t-=0]};class Fc extends t.Plugin{static get[wc("0x2")](){return[Za,vc,wc("0x4")]}static get[wc("0x7")](){return wc("0x6")}set[wc("0x1")](t){this[wc("0x3")].plugins[wc("0x0")](Za).adapter=t}get[wc("0x1")](){return this[wc("0x3")][wc("0xa")][wc("0x0")](Za).adapter}[wc("0x8")](t){return this.editor.plugins[wc("0x0")](Za).addSuggestionData(t)}[wc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x3")][wc("0xa")][wc("0x0")](Za)[wc("0x5")]({skipNotAttached:t,toJSON:e})}[wc("0x9")](t){return this.editor[wc("0xa")][wc("0x0")](Za).getSuggestion(t)}}const Dc=["config","CommentsRepository","function","pluginName","getUser","acceptAllSuggestions","getRootsAttributes","plugins","rootsAttributes","reduce","set","TrackChangesData","getSuggestions","end","TrackChangesDataGetter","createElement","data","create","track-changes-data-invalid-editor-creator","addSuggestionData","appendChild","name","createDocumentFragment","editor","TrackChangesEditing","trackChangesData.editorCreator","requires","Users","_adapter","div","getDataWithDiscardedSuggestions","push","getDataWithAcceptedSuggestions","trackChangesData","map","getRootNames","model","addUser","get","init","document","users"];var Bc,Pc;Bc=Dc,Pc=159,function(t){for(;--t;)Bc.push(Bc.shift())}(++Pc);const Uc=function(t,e){return Dc[t-=0]},jc=["Pagination"];class Gc extends t.Plugin{static get[Uc("0x23")](){return[Za]}static get[Uc("0xc")](){return Uc("0x14")}[Uc("0x6")](){const t=this[Uc("0x20")];if(t[Uc("0x9")].define(Uc("0x22"),(e=>{const n=t[Uc("0x3")][Uc("0x7")].getRootNames()[Uc("0x12")](((t,e)=>(t[e]="",t)),{});return t.constructor[Uc("0x1a")](n,e)})),Uc("0xb")!=typeof t[Uc("0x9")].get(Uc("0x0")).editorCreator)throw new e.CKEditorError(Uc("0x1b"))}[Uc("0x29")](t){return zc(this[Uc("0x20")],!0,t)}[Uc("0x27")](t){return zc(this.editor,!1,t)}}class Hc extends t.Plugin{static get[Uc("0xc")](){return Uc("0x17")}constructor(t){super(t),this.result=Uc("0x16")}[Uc("0x6")](){this[Uc("0x20")][Uc("0x10")][Uc("0x5")](Uc("0xa"))[Uc("0x25")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Uc("0x20")].plugins[Uc("0x5")](Uc("0x21"))[Uc("0x25")]=null}}function Vc(t){return void 0!==t[Uc("0xf")]}async function zc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,jc);o[Uc("0x10")][Uc("0x28")](Za,Hc),o[Uc("0x11")]=Vc(t)?t[Uc("0xf")]():void 0;const i=document[Uc("0x1f")](),s=t.config[Uc("0x5")](Uc("0x0")).editorCreator,x=await s(o,(()=>function(t){const e=document[Uc("0x18")](Uc("0x26"));return t[Uc("0x1d")](e),e}(i)));!function(t,e){const n=t.model.document[Uc("0x2")]().reduce(((e,n)=>(e[n]=t[Uc("0x19")][Uc("0x5")]({rootName:n}),e)),{}),o=t[Uc("0x10")].get(Uc("0x24"))[Uc("0x8")][Uc("0x1")]((t=>({id:t.id,name:t[Uc("0x1e")]}))),i=t[Uc("0x10")][Uc("0x5")]("TrackChangesEditing")[Uc("0x15")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Uc("0x5")]("Users"),s=e.plugins[Uc("0x5")]("TrackChangesEditing");for(const t of o)r[Uc("0xd")](t.id)||r[Uc("0x4")](t);r.me||r.useAnonymousUser();for(const t of i)s[Uc("0x1c")](t);e[Uc("0x19")][Uc("0x13")](n)}(t,x),x.execute(e?Uc("0xe"):"discardAllSuggestions");const a=Vc(x)?x.getFullData(n):x[Uc("0x19")][Uc("0x5")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["commands","value","has","refresh","forceDisabled","_enabledCommands","_enableCommands","clearForceDisabled","_disableUnsupportedCommands","affectsData","editor"];var c,l;c=a,l=499,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x1")]=e,this[u("0x8")]=!1,this[u("0xa")](),this._isEnabledBasedOnSelection=!1}[u("0xa")](){this.isEnabled=!0}execute(){this.value=!this[u("0x8")],this[u("0x8")]?this[u("0x4")]():this._enableCommands()}[u("0x4")](){for(const t of this[u("0x6")][u("0x7")][u("0x7")]())t.affectsData&&!this[u("0x1")][u("0x9")](t)&&t[u("0x0")]("TrackChangesCommand")}[u("0x2")](){for(const t of this.editor.commands[u("0x7")]())t[u("0x5")]&&!this[u("0x1")][u("0x9")](t)&&t[u("0x3")]("TrackChangesCommand")}}const g=["canEditAt","acceptSuggestion","TrackChangesEditing","track-changes-accept-suggestion-not-found","getRanges","refresh","get","execute","isEnabled","editor","plugins"];var f,m;f=g,m=202,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x1")](),this._isEnabledBasedOnSelection=!1}[h("0x1")](){this[h("0x4")]=!0}[h("0x3")](t){const n=this._suggestions[h("0x2")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n[h("0x0")]();this[h("0x5")].model[h("0x7")](o)&&this[h("0x5")][h("0x6")][h("0x2")](h("0x9"))[h("0x8")](n)}}const b=["refresh","editor","_isEnabledBasedOnSelection","model","get","TrackChangesEditing","track-changes-discard-suggestion-not-found","getRanges","plugins","discardSuggestion","_suggestions","isEnabled","canEditAt","execute"];var E,_;E=b,_=213,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0xb")](),this[T("0xd")]=!1}[T("0xb")](){this[T("0x8")]=!0}[T("0xa")](t){const n=this[T("0x7")].get(t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n[T("0x4")]();this[T("0xc")][T("0x0")][T("0x9")](o)&&this[T("0xc")][T("0x5")][T("0x1")](T("0x2"))[T("0x6")](n)}}const C=["replace","isObject","push","execute","deletion","add","length","isIntersecting","color","isArray","type","isCollapsed","join","isTouching","value","from","isInContent","createPositionAfter","start","createRange","isMultiRange","schema","createPositionAt","sort","getRanges","createPositionBefore"];var A,k;A=C,k=207,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t[I("0x18")](((t,e)=>I("0x5")==t[I("0xb")]&&I("0x5")!=e.type?-1:I("0x5")!=t.type&&I("0x5")==e[I("0xb")]?1:0))}function v(t,e){let n,o=0;const i=[],r=e[I("0x16")];for(;o<t[I("0x7")];){const s=t[o],x=t[o+1];n||(n=e[I("0x0")](s)),R(e,s,x)||(i[I("0x3")](e[I("0x14")](n,r[I("0x2")](s)?e.createPositionAfter(s):e[I("0x17")](s,"end"))),n=null),o++}return i}function R(t,e,n){if(!n)return!1;const o=t[I("0x12")](e),i=t[I("0x0")](n);return o[I("0xe")](i)}function N(t,e,n){for(;n[I("0x7")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t[I("0x11")]&&e[I("0x4")](t.id)}))}}const L=["editor","_suggestions","refresh","from","some","execute","getRanges","_command","_isEnabledBasedOnSelection","isEnabled","values"];var M,w;M=L,w=414,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x0")]=e,this[O("0x5")]=n,this[O("0x6")](),this[O("0x1")]=!1}[O("0x6")](){const t=Array.from(this[O("0x5")][O("0x3")]())[O("0x8")]((t=>t.isInContent));this[O("0x2")]=this[O("0x0")][O("0x2")]&&t}[O("0x9")](){const t=S(Array[O("0x7")](this[O("0x5")][O("0x3")]()));for(const e of t){const t=e[O("0xa")]();if(!this[O("0x4")].model.canEditAt(t))return}N(this[O("0x4")].model,this[O("0x0")],t)}}const D=["document","canEditAt","execute","_command","isEnabled","values","editor","selection","getRanges","from","refresh","model","_isEnabledBasedOnSelection","_suggestions","_selectedSuggestions"];var B,P;B=D,P=326,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x7")]=e,this[U("0x2")]=n,this[U("0x3")]=new Set,this[U("0xe")](),this[U("0x1")]=!1}refresh(){const t=this[U("0xa")][U("0x0")][U("0x4")][U("0xb")],e=Array.from(this[U("0x2")][U("0x9")]());this[U("0x3")]=function(t,e){const n=Array[I("0x10")](t[I("0x19")]()),o=new Set;for(const i of e)if(i.isInContent)for(const e of n)for(const n of i.getRanges())(e[I("0x8")](n)||t[I("0xc")]&&!i[I("0x15")]&&i.next&&n.end.isTouching(e[I("0x13")]))&&o[I("0x6")](i);return o}(t,e),this[U("0x8")]=this._command.isEnabled&&!!this[U("0x3")].size}[U("0x6")](){const t=S(Array[U("0xd")](this[U("0x3")]));for(const e of t){const t=e[U("0xc")]();if(!this[U("0xa")].model[U("0x5")](t))return}N(this[U("0xa")][U("0x0")],this[U("0x7")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const vt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?St:yt).test(Tt(t))};const Rt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=Rt(t,e);return vt(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const ve=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var Re=ve&&ve.isTypedArray;const Ne=Re?Ae(Re):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const vn=Sn;var Rn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Rn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,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 Un(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==vn(t)};var Wn=ve&&ve.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==vn(t)};var Xn=ve&&ve.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=vn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!r){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,io=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Io=function(t,e){return t.has(e)};const So=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=it?it.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=vo;case"[object Set]":var a=1&o;if(x||(x=Ro),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:vn(t),c=x?Do:vn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||Ne(t)?So(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Qt),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["change","onAccept","subType","end","next","addMarkerName","authoredAt","toJSON","getFirstMarker","setAttribute","decorate","onAttributesChange","isExternal","_markerNames","isInContent","previous","accept","_onDiscard","getAllAdjacentSuggestions","onDiscard","isMultiRange","getMultiRangeId","type","nodeAfter","size","push","getFirstRange","filter","removeAttribute","_onAttributesChange","commentThread","_onAccept","getMarkers","getContainedElement","clear","getMarkerNames","set","_model","hasComments","from","@external","map","creator","length","addRange","split","data","reduce","add","getRange","removeMarker","discard","addMarker","author","markers","attributes","getRanges","isIntersecting","suggestion:","removeMarkers"];var $o,Zo;$o=Xo,Zo=447,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Yo("0x37")]=e[Yo("0x37")],this[Yo("0x23")]=e[Yo("0x23")]||null,this[Yo("0x1a")]=e[Yo("0x1a")],this[Yo("0xf")]=e[Yo("0xf")]||e[Yo("0x1a")],this[Yo("0x2d")]=Boolean(e.attributes&&e[Yo("0x1c")][Yo("0xd")]),this[Yo("0x13")]=null,this[Yo("0xa")]=t,this[Yo("0x4")]=e[Yo("0x22")],this[Yo("0x32")]=e[Yo("0x34")],this[Yo("0x2")]=e[Yo("0x2c")],this[Yo("0x2e")]=new Set,this.createdAt=null,this[Yo("0x9")](Yo("0x27"),null),this[Yo("0x9")](Yo("0x1c"),e.attributes||{}),this.set("previous",null),this.set(Yo("0x25"),null),this[Yo("0x9")](Yo("0x3"),null),this[Yo("0x9")]("_saved",!1),this[Yo("0x2b")](Yo("0x31")),this[Yo("0x2b")](Yo("0x18"))}get head(){let t=this;for(;t[Yo("0x30")];)t=t[Yo("0x30")];return t}get[Yo("0xb")](){return!!this.commentThread&&this.commentThread[Yo("0x10")]>0}get[Yo("0x35")](){return 0!=this[Yo("0x2e")][Yo("0x39")]&&6==Array[Yo("0xc")](this[Yo("0x2e")])[0][Yo("0x12")](":")[Yo("0x10")]}get[Yo("0x2f")](){return null!==this[Yo("0x29")]()}addMarkerName(t){this[Yo("0x2e")][Yo("0x15")](t)}[Yo("0x8")](){return Array[Yo("0xc")](this[Yo("0x2e")])}[Yo("0x5")](){return this[Yo("0x8")]()[Yo("0xe")]((t=>this._model[Yo("0x1b")].get(t)))[Yo("0x0")]((t=>t))}getFirstMarker(){return this[Yo("0x5")]()[0]||null}[Yo("0x20")](){this[Yo("0xa")].change((t=>{for(const e of this[Yo("0x5")]())t.removeMarker(e)})),this[Yo("0x2e")][Yo("0x7")]()}[Yo("0x17")](t){this._model[Yo("0x21")]((e=>{e[Yo("0x17")](t)})),this._markerNames.delete(t)}[Yo("0x11")](t){const e=Yo("0x1f")+this[Yo("0x37")]+":"+this[Yo("0x23")]+":"+this.id+":"+this[Yo("0xf")].id+":"+Jo[Yo("0x36")]();this[Yo("0x26")](e),this[Yo("0xa")][Yo("0x21")]((n=>{n[Yo("0x19")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this.getRanges())if(e[Yo("0x1e")](t))return!0;return!1}[Yo("0x1d")](){return this[Yo("0x5")]()[Yo("0xe")]((t=>t.getRange()))}getItems(){return this[Yo("0x1d")]()[Yo("0x14")](((t,e)=>[...t,...e.getItems()]),[])}[Yo("0x3b")](){var t;return(null===(t=this[Yo("0x29")]())||void 0===t?void 0:t[Yo("0x16")]())||null}[Yo("0x6")](){const t=this[Yo("0x1d")]();if(1!=t[Yo("0x10")])return null;const e=t[0],n=e.start[Yo("0x38")],o=e[Yo("0x24")].nodeBefore;return n instanceof s.Element?n!=o?null:n:null}[Yo("0x31")](){this[Yo("0x4")](this[Yo("0x1d")](),this[Yo("0x13")],this[Yo("0x1c")]),this.removeMarkers()}discard(){this[Yo("0x32")](this[Yo("0x1d")](),this[Yo("0x13")],this.attributes),this[Yo("0x20")]()}[Yo("0x33")](){const t=[];let e=this.head;for(;e;)t[Yo("0x3a")](e),e=e[Yo("0x25")];return t}[Yo("0x2a")](t,e){const n=eo(this[Yo("0x1c")]);_o(n,t,e),Go(n,this[Yo("0x1c")])||(this[Yo("0x1c")]=n,this[Yo("0x2")](n))}[Yo("0x1")](t){const e=eo(this[Yo("0x1c")]);qo(e,t),Go(e,this[Yo("0x1c")])||(this[Yo("0x1c")]=e,this[Yo("0x2")](this[Yo("0x1c")]))}[Yo("0x28")](){return{id:this.id,type:this.subType?this[Yo("0x37")]+":"+this[Yo("0x23")]:this[Yo("0x37")],authorId:this[Yo("0xf")].id,createdAt:this.createdAt,hasComments:this[Yo("0xb")],data:this.data,attributes:this[Yo("0x1c")]}}static[Yo("0x36")](){return(0,e.uid)().substr(1,5)}}function Qo(t,e,n){const o=t.t;switch(e){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:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");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"*Replace image URL*":return o("*Replace image URL*");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %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 format to:* %0":return o("*Set format to:* %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 format:* %0":return o("*Set format:* %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_BULLETED_LIST_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["_itemLabels","name","item","has","getWalker","_handleCustomCallbackDescription","newValue","elementEnd","attribute","getFirstRange","EmptyContainer","indexOf","registerElementLabel","addEmptyContainer","removeContainer","_customCallbacks","_locale","Container","_schema","deletion","_attributeLabels","quantity","type","*Split:* %0","remove","add","get","nodeAfter","length","removeEmptyContainer","_addDescriptionItems","skip","set","_handleInsertRemoveSuggestionDescription","end","normal","insertion","previousSibling","start","*Insert:* %0","softBreak","label","data","isEmpty","removeObject","element","replace","$text","ELEMENT_SPACE","nextSibling","match","_handleRenameSuggestionDescription","_handleAttributeSuggestionDescription","checkChild","key","text","registerDescriptionCallback","removeFormat","join","pop","format","map","function","subType","getItemLabel","addFormat","isObject","push","*Remove format:* %0","Object","*Remove:* %0","_itemLabelsCallbacks","addObject"];var ei,ni;ei=ti,ni=466,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this._customCallbacks=[],this[oi("0x2d")]=new Map,this[oi("0x2b")]=[],this[oi("0x41")]=new Map,this[oi("0x3f")]=t,this[oi("0x3d")]=e}getDescriptions(t){const e=[],n=new Set,o=new Set;for(let i=0;i<t.length;i++){const r=t[i];if(!r.isInContent)continue;const s=this[oi("0x32")](r);if(s){if(null!=r[oi("0x23")]){if(n.has(r[oi("0x23")]))continue;n[oi("0x46")](r[oi("0x23")])}e.push(s)}else if(oi("0x35")!=r[oi("0x43")])oi("0x8")!=r[oi("0x43")]&&"deletion"!=r[oi("0x43")]||this[oi("0x5")](e,r,t[i+1]);else{const t=r[oi("0xe")][oi("0x1a")];if(o[oi("0x30")](t))continue;o[oi("0x46")](r[oi("0xe")][oi("0x1a")]),t==mc?this[oi("0x17")](e,r):this._handleAttributeSuggestionDescription(e,r)}}return this._resolveDescriptionItems(e)}[oi("0x1c")](t){this._customCallbacks.push(t)}[oi("0x39")](t,n,o=e.priorities[oi("0x7")]){oi("0x22")==typeof t?(0,e.insertToPriorityArray)(this[oi("0x2b")],{matchingCallback:t,label:n,priority:o}):this[oi("0x2d")][oi("0x4")](t,n)}registerAttributeLabel(t,e){this._attributeLabels[oi("0x4")](t,e)}[oi("0x24")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[oi("0xd")];break}return n||(n=this[oi("0x2d")][oi("0x47")](t[oi("0x2e")])),n?n(e):1!==e?e+" "+t[oi("0x2e")]+"s":""+t[oi("0x2e")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[oi("0x31")](),o="insertion"==e.type?oi("0x46"):oi("0x45");for(const e of n){const i=e[oi("0x2f")],r=t[t[oi("0x0")]-1];if(i.is("$textProxy"))r&&r[oi("0x43")][oi("0x38")](oi("0x3e"))>-1&&t[oi("0x1f")](),r&&"text"==r[oi("0x43")]?r[o]+=i[oi("0xe")]:t[oi("0x27")]({type:"text",add:oi("0x46")==o?i[oi("0xe")]:"",remove:"remove"==o?i.data:""});else if(this[oi("0x3f")][oi("0x26")](i)){const s=i;if(r&&r[oi("0x43")][oi("0x38")](oi("0x3e"))>-1&&t[oi("0x1f")](),"elementEnd"==e[oi("0x43")])continue;r&&r[oi("0x43")]==o+oi("0x29")&&r[oi("0x11")].name==s[oi("0x2e")]?r[oi("0x42")]++:t[oi("0x27")]({type:o+oi("0x29"),element:s,quantity:1}),n[oi("0x3")]((t=>!("elementEnd"==t[oi("0x43")]&&t.item==i)))}else if(this[oi("0x3f")][oi("0x19")](i,oi("0x13"))||i.is(oi("0x11"),oi("0xc"))){const n=i;if(oi("0x46")==o&&"elementStart"==e[oi("0x43")]||oi("0x45")==o&&oi("0x34")==e[oi("0x43")])continue;if(r&&-1==r[oi("0x43")][oi("0x38")]("Container")){"text"==r[oi("0x43")]&&(r[o]+="\n");continue}let s;if(s=oi("0x46")==o?n.nextSibling&&!this[oi("0x3f")][oi("0x26")](n[oi("0x15")])?n[oi("0x15")]:null:n[oi("0x9")]&&!this[oi("0x3f")].isObject(n[oi("0x9")])?n.previousSibling:null,n.isEmpty||s&&s[oi("0xf")]){const e=s&&s[oi("0xf")]?s:n;r&&r[oi("0x43")]==o+oi("0x37")&&r[oi("0x11")][oi("0x2e")]==e[oi("0x2e")]?r[oi("0x42")]++:t[oi("0x27")]({type:o+oi("0x37"),element:e,quantity:1})}else t[oi("0x27")]({type:o+oi("0x3e"),element:n})}}}_resolveDescriptionItems(t){const e=this._locale,n=[],o=[],i=[];for(const r of t)switch(r[oi("0x43")]){case"text":if(r[oi("0x46")]=r[oi("0x46")][oi("0x12")](/(\S)\u000A+(\S)/g,"$1 $2")[oi("0x12")](/\u000A/g,""),r[oi("0x45")]=r[oi("0x45")][oi("0x12")](/(\S)\u000A+(\S)/g,"$1 $2")[oi("0x12")](/\u000A/g,""),""!=r.add&&""!=r[oi("0x45")]){n.push({type:oi("0x12"),content:Qo(e,"REPLACE_TEXT",['"'+r[oi("0x45")]+'"','"'+r[oi("0x46")]+'"'])});continue}if(null!=r[oi("0x46")][oi("0x16")](/^ +$/)){n.push({type:oi("0x8"),content:Qo(e,oi("0xb"),Qo(e,oi("0x14"),r[oi("0x46")].length))});continue}if(null!=r[oi("0x45")][oi("0x16")](/^ +$/)){n[oi("0x27")]({type:oi("0x40"),content:Qo(e,oi("0x2a"),Qo(e,"ELEMENT_SPACE",r[oi("0x45")].length))});continue}if(""!=r[oi("0x46")]){n[oi("0x27")]({type:oi("0x8"),content:Qo(e,oi("0xb"),'"'+r[oi("0x46")]+'"')});continue}n[oi("0x27")]({type:oi("0x40"),content:Qo(e,oi("0x2a"),'"'+r[oi("0x45")]+'"')});continue;case oi("0x3a"):case oi("0x2c"):n[oi("0x27")]({type:"insertion",content:Qo(e,"*Insert:* %0",this[oi("0x24")](r[oi("0x11")],r[oi("0x42")]))});continue;case oi("0x1"):case oi("0x10"):n[oi("0x27")]({type:oi("0x40"),content:Qo(e,oi("0x2a"),this[oi("0x24")](r.element,r.quantity))});continue;case"addContainer":n[oi("0x27")]({type:oi("0x8"),content:Qo(e,oi("0x44"),this[oi("0x24")](r[oi("0x11")],r.quantity))});continue;case oi("0x3b"):n[oi("0x27")]({type:oi("0x40"),content:Qo(e,"*Merge:* %0",this[oi("0x24")](r.element,r[oi("0x42")]))});continue;case oi("0x25"):o[oi("0x27")](r[oi("0x1a")]);continue;case oi("0x1d"):i[oi("0x27")](r.key);continue;default:n[oi("0x27")](r)}if(o[oi("0x0")]){const t=o[oi("0x21")]((t=>this[oi("0x41")].has(t)?this[oi("0x41")][oi("0x47")](t):t))[oi("0x1e")](", ");n[oi("0x27")]({type:oi("0x20"),content:Qo(this[oi("0x3d")],"*Set format:* %0",t)})}if(i[oi("0x0")]){const t=i.map((t=>this[oi("0x41")][oi("0x30")](t)?this[oi("0x41")][oi("0x47")](t):t))[oi("0x1e")](", ");n[oi("0x27")]({type:"format",content:Qo(this[oi("0x3d")],oi("0x28"),t)})}return n}[oi("0x32")](t){for(const e of this[oi("0x3c")]){const n=e(t);if(n&&oi("0x43")in n)return n}}[oi("0x18")](t,e){const n=e[oi("0xe")],o=void 0===n[oi("0x33")]?oi("0x1d"):oi("0x25");t[oi("0x27")]({type:o,key:n[oi("0x1a")]})}[oi("0x17")](t,e){t[oi("0x27")]({type:"format",content:Qo(this[oi("0x3d")],"*Change to:* %0",this.getItemLabel(e[oi("0x36")]()[oi("0xa")][oi("0x48")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[oi("0x2")](t,e),n&&n[oi("0x36")]()&&!e[oi("0x36")]()[oi("0x6")].isEqual(n[oi("0x36")]()[oi("0xa")])){const n=t[t.length-1],o=oi("0x8")==e[oi("0x43")]?oi("0x46"):oi("0x45");n&&oi("0x1b")==n[oi("0x43")]&&(n[o]+="\n")}}}const ri=["showAIAssistant","plugins","afterInit","get","TrackChangesEditing","commands","enableCommand","editor"];var si,xi;si=ri,xi=214,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{[ai("0x4")](){const t=this[ai("0x1")],e=t[ai("0x3")][ai("0x5")](ai("0x6"));t[ai("0x7")][ai("0x5")](ai("0x2"))&&e[ai("0x0")](ai("0x2"))}}const li=["*Format:* %0","FORMAT_JUSTIFY_TEXT","AlignmentEditing","FORMAT_ALIGN_TO_LEFT","center","editor","has","registerDescriptionCallback","TrackChangesEditing","_descriptionFactory","left","locale","format","get","type","commandParams","commandName","justify","plugins","registerAttributeLabel","alignment"];var ui,di;ui=li,di=272,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{afterInit(){const t=this.editor,e=t[gi("0xc")];if(!t[gi("0x13")][gi("0x7")](gi("0x3")))return;const n=t.plugins[gi("0xe")]("TrackChangesEditing");n._enableDefaultAttributesIntegration("alignment",[],[gi("0x0")]),n[gi("0xa")][gi("0x14")](gi("0x0"),Qo(e,"FORMAT_ALIGNMENT")),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[gi("0x6")],e=t[gi("0xc")];t[gi("0x13")].get(gi("0x9"))._descriptionFactory[gi("0x8")]((t=>{if("formatBlock"!=t[gi("0xf")])return;const{data:n}=t;if(n&&"alignment"==n[gi("0x11")]){const t=n[gi("0x10")][0].value;return{type:gi("0xd"),content:Qo(e,gi("0x1"),function(t){switch(t){case gi("0xb"):return Qo(e,gi("0x4"));case"right":return Qo(e,"FORMAT_ALIGN_TO_RIGHT");case gi("0x5"):return Qo(e,"FORMAT_ALIGN_TO_CENTER");case gi("0x12"):return Qo(e,gi("0x2"))}}(t))}}}))}}const mi=["StrikethroughEditing","has","SubscriptEditing","ItalicEditing","underline","afterInit","SuperscriptEditing","FORMAT_UNDERLINE","toLowerCase","commandName","forceValue","slice","BoldEditing","formatInline","get","toUpperCase","*Remove format:* %0","FORMAT_CODE","editor","type","superscript","bold","strikethrough","*Format:* %0","_enableDefaultAttributesIntegration","format","code","subscript","FORMAT_SUPERSCRIPT","_descriptionFactory","TrackChangesEditing","locale","plugins","FORMAT_SUBSCRIPT","_registerLegacyDescription","commandParams","UnderlineEditing","italic","FORMAT_"];var hi,pi;hi=mi,pi=272,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=[bi("0xd"),bi("0x4"),bi("0x25"),"CodeEditing",bi("0x1"),bi("0x3"),bi("0x7")];class _i extends t.Plugin{[bi("0x6")](){const t=this[bi("0x13")],e=t[bi("0x21")][bi("0xf")]("TrackChangesEditing"),n=t[bi("0x20")];for(const o of Ei){if(!t[bi("0x21")][bi("0x2")](o))continue;const i=o[bi("0xc")](0,-7)[bi("0x9")](),r=bi("0x0")+i[bi("0x10")]();e[bi("0x19")](i,[i]),e._descriptionFactory.registerAttributeLabel(i,Qo(n,r))}this[bi("0x23")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale,n=t.plugins[bi("0xf")](bi("0x1f"));function o(t,o){n[bi("0x1e")].registerDescriptionCallback((n=>{if(bi("0xe")!=n[bi("0x14")])return;const{data:i}=n;return i&&i[bi("0xa")]===t?i[bi("0x24")][0][bi("0xb")]?{type:bi("0x1a"),content:Qo(e,bi("0x18"),o)}:{type:bi("0x1a"),content:Qo(e,bi("0x11"),o)}:void 0}))}o(bi("0x16"),Qo(e,"FORMAT_BOLD")),o(bi("0x26"),Qo(e,"FORMAT_ITALIC")),o(bi("0x5"),Qo(e,bi("0x8"))),o(bi("0x1b"),Qo(e,bi("0x12"))),o(bi("0x17"),Qo(e,"FORMAT_STRIKETHROUGH")),o(bi("0x1c"),Qo(e,bi("0x22"))),o(bi("0x15"),Qo(e,bi("0x1d")))}}const Ti=["commandName","document","forceValue","blockQuote","afterInit","enableCommand","editor","*Remove format:* %0","change","getSelectedBlocks","checkChild","markBlockFormat","name","from","format","plugins","registerDescriptionCallback","ELEMENT_BLOCK_QUOTE","filter","schema","locale","commands","get","commandParams","parent","_descriptionFactory","model","$root"];var yi,Ci;yi=Ti,Ci=183,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{[Ai("0x11")](){const t=this[Ai("0x13")],e=t[Ai("0x5")];if(!t[Ai("0x0")].has("BlockQuoteEditing"))return;const n=t.plugins.get("TrackChangesEditing"),o=this[Ai("0x13")][Ai("0x6")][Ai("0x7")](Ai("0x10"));n[Ai("0x12")](Ai("0x10"),((e,i={})=>{const r=this.editor[Ai("0xb")][Ai("0xe")].selection,s=i&&void 0!==i[Ai("0xf")]?i[Ai("0xf")]:!o.value;let x=[];if(s){const e=Array[Ai("0x1a")](r.getSelectedBlocks())[Ai("0x3")]((t=>Ii(t)||function(t,e){const n=e.checkChild(t[Ai("0x9")],Ai("0x10")),o=e[Ai("0x17")]([Ai("0xc"),"blockQuote"],t);return n&&o}(t,this[Ai("0x13")][Ai("0xb")][Ai("0x4")])));x=v(e,t[Ai("0xb")])}else{const e=Array[Ai("0x1a")](r[Ai("0x16")]()).filter((t=>Ii(t)));x=v(e,t[Ai("0xb")])}t[Ai("0xb")][Ai("0x15")]((()=>{for(const t of x)n[Ai("0x18")](t,{commandName:Ai("0x10"),commandParams:[{forceValue:s}]})}))})),n[Ai("0xa")][Ai("0x1")]((t=>{const{data:n}=t;if(n&&Ai("0x10")==n[Ai("0xd")]){const t=Qo(e,Ai("0x2"));return n[Ai("0x8")][0].forceValue?{type:Ai("0x1b"),content:Qo(e,"*Set format:* %0",t)}:{type:"format",content:Qo(e,Ai("0x14"),t)}}}))}}function Ii(t){return"blockQuote"==t[Ai("0x9")][Ai("0x19")]}const Si=["commands","afterInit","editor","enableCommand","get","ckbox","plugins"];var vi,Ri;vi=Si,Ri=169,function(t){for(;--t;)vi.push(vi.shift())}(++Ri);const Ni=function(t,e){return Si[t-=0]};class Li extends t.Plugin{[Ni("0x0")](){const t=this[Ni("0x1")];t[Ni("0x6")][Ni("0x3")]("ckbox")&&t[Ni("0x5")][Ni("0x3")]("TrackChangesEditing")[Ni("0x2")](Ni("0x4"))}}const Mi=["model","language","filter","editor","markBlockFormat","change","indentCodeBlock","forceValue","document","toLowerCase","commands","codeBlock","enableCommand","rootElement","type","plugins","name","formatBlock","get","format","has","selection","checkChild","CodeBlock","from","locale","registerElementLabel","parent","commandParams","languages","*Remove format:* %0","isLimit","_descriptionFactory","getSelectedBlocks","config","find","*Set format:* %0","ELEMENT_CODE_BLOCK"];var wi,Oi;wi=Mi,Oi=369,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{afterInit(){const t=this[Fi("0xe")];if(!t[Fi("0x1a")][Fi("0x1f")](Fi("0x22")))return;const e=t[Fi("0x1a")][Fi("0x1d")]("TrackChangesEditing"),n=t[Fi("0x24")],o=t[Fi("0x7")][Fi("0x1d")](Fi("0x16"))[Fi("0x2")],i=t[Fi("0x15")][Fi("0x1d")]("codeBlock");e.enableCommand(Fi("0x11")),e.enableCommand("outdentCodeBlock"),e[Fi("0x17")]("codeBlock",((n,r={})=>{const s=t[Fi("0xb")],x=t.model[Fi("0x13")][Fi("0x20")],a=r&&void 0!==r.forceValue?r[Fi("0x12")]:!i.value;let c;r[Fi("0xc")]||(r.language=o[0][Fi("0xc")]),c=a?Array[Fi("0x23")](x[Fi("0x6")]()).filter((t=>{return Bi(t)||(e=t,n=s.schema,!e.is(Fi("0x18"))&&!n[Fi("0x4")](e)&&n[Fi("0x21")](e[Fi("0x0")],Fi("0x16")));var e,n})):Array[Fi("0x23")](x.getSelectedBlocks())[Fi("0xd")]((t=>Bi(t)));const l=v(c,s);s[Fi("0x10")]((()=>{for(const t of l)e[Fi("0xf")](t,{commandName:Fi("0x16"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Fi("0x5")][Fi("0x25")](Fi("0x16"),(t=>Qo(n,Fi("0xa"),t))),e._descriptionFactory.registerDescriptionCallback((t=>{if(Fi("0x1c")!=t[Fi("0x19")])return;const e=n.t,{data:i}=t;if(!i||Fi("0x16")!=i.commandName)return;const r=i[Fi("0x1")][0].language,s=e(o[Fi("0x8")]((t=>t[Fi("0xc")]===r)).label)[Fi("0x14")]();return i.commandParams[0][Fi("0x12")]?{type:"format",content:Qo(n,Fi("0x9"),Qo(n,Fi("0xa"),1)+" ("+s+")")}:{type:Fi("0x1e"),content:Qo(n,Fi("0x3"),Qo(n,Fi("0xa"),1))}}))}}function Bi(t){return"codeBlock"==t[Fi("0x1b")]}const Pi=["afterInit","plugins","get","has","TrackChangesEditing","CommentsEditing"];var Ui,ji;Ui=Pi,ji=319,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Vi extends t.Plugin{[Gi("0x5")](){const t=this.editor;t[Gi("0x0")][Gi("0x2")](Gi("0x4"))&&t.plugins[Gi("0x1")](Gi("0x3")).enableCommand("addCommentThread")}}var Hi=n(181);const zi=["isContent","activeMarkers","isLimit","writer","isAtEnd","includes","bindElementToMarker","consumable","TrackChangesEditing","plugins","ck-suggestion-marker--active","element","markerRange","toViewPosition","nextSibling","markerName","listItem","span","item","addHighlight","test","start","mapper","previousPosition","getCustomProperty","getItems","name","push","parent","createUIElement","listIndent","schema","getWalker","model","hasAttribute"];var Wi,Ki;Wi=zi,Ki=450,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function Xi(t,e,n){const o=[];for(const i of e[qi("0x1e")]())i[qi("0x4")](t)&&o[qi("0x20")](n.createRangeOn(i));return o}function $i(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0xe")].get(qi("0xd"));return(i,r,s)=>{if(!s[qi("0xc")][qi("0x19")](r[qi("0x11")],i[qi("0x1f")]))return;const x=r[qi("0x11")][qi("0x2")](),a=r[qi("0x11")][qi("0x1a")],c=t[qi("0x3")][qi("0x1")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qi("0x17")];d=d||c[qi("0x5")](e);const n=s.mapper.toViewElement(e);if(n&&n[qi("0x1d")](qi("0x18")))return;"elementEnd"==t.type&&c.isBlock(e)&&!c[qi("0x7")](e)&&(e[qi("0x13")]||a[qi("0x9")]?l&&l[qi("0x21")]==e||(l=e,f(t.previousPosition),g=!0):u=u||t[qi("0x1c")])}function f(t){const i=s[qi("0x8")][qi("0x22")](qi("0x16"),{class:"ck-suggestion-marker-"+e}),x=s.mapper[qi("0x12")](t);n&&o[qi("0x6")][qi("0xa")](r[qi("0x14")])&&s.writer.addClass(qi("0xf"),i),s[qi("0x8")].insert(x,i),s[qi("0x1b")][qi("0xb")](i,r[qi("0x14")])}d||g||!u||f(u)}}const Zi=["init","removeMarker:suggestion:deletion","fromRange","addMarker:suggestion:deletion","markerName","model","editing","merge","enableCommand","plugins","createRange","start","mapper","end","root","getFirstRange","markerNameToElements","data","unlock","writer","commands","TrackChangesEditing","get","modifySelection","unbindElementFromMarkerName","detach","high","document","downcastDispatcher","uiElement","deleteForward","forward","delete"];var Yi,Ji;Yi=Zi,Ji=247,function(t){for(;--t;)Yi.push(Yi.shift())}(++Ji);const Qi=function(t,e){return Zi[t-=0]};class tr extends t.Plugin{static get requires(){return[Hi.Delete]}[Qi("0x11")](){const t=this.editor,e=t[Qi("0x1a")][Qi("0x6")](Qi("0x5"));e[Qi("0x19")](Qi("0x10"));const n=t[Qi("0x4")][Qi("0x6")](Qi("0xe"));e[Qi("0x19")](Qi("0xe"),((e,o={})=>{const i=t[Qi("0x16")].createSelection(t[Qi("0x16")][Qi("0xb")].selection);i.isCollapsed&&t[Qi("0x16")][Qi("0x7")](i,{direction:Qi("0xf"),unit:o.unit});const r=i[Qi("0x20")](),x=s.LiveRange[Qi("0x13")](r);let a;e(o),a="$graveyard"==x[Qi("0x1f")].rootName?t.model[Qi("0x1b")](r[Qi("0x1c")]):t[Qi("0x16")][Qi("0x1b")](x[Qi("0x1c")],x.end),x[Qi("0x9")](),t[Qi("0x16")].enqueueChange(n.buffer.batch,(t=>{n.buffer.lock(),t.setSelection(t[Qi("0x1b")](a[Qi("0x1e")])),n.buffer[Qi("0x2")]()}))})),t[Qi("0x17")][Qi("0xc")].on(Qi("0x14"),$i(t,Qi("0x18")),{priority:Qi("0xa")}),t[Qi("0x1")][Qi("0xc")].on(Qi("0x14"),((e,n,o)=>{o.options.showSuggestionHighlights&&$i(t,Qi("0x18"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:Qi("0xa")}),t[Qi("0x17")][Qi("0xc")].on(Qi("0x12"),((t,e,n)=>{const o=n[Qi("0x1d")][Qi("0x0")](e[Qi("0x15")]);if(o)for(const t of o)t.is(Qi("0xd"))&&(n[Qi("0x1d")][Qi("0x8")](t,e[Qi("0x15")]),n[Qi("0x3")].remove(t))}),{priority:"high"})}}const er=["slice","forceValue","registerCustomCallback","selection","getSelectedBlocks","multipleBlocks","splitListItemBefore","hasAttribute","ELEMENT_BULLETED_LIST","ELEMENT_","model","_descriptionFactory","next","listType","commandParams","value","_LIST","bulletedList","documentList","outdentList","deletion","createRange","*Format:* remove from %0","listItemId","paragraph","numberedList","enableCommand","from","type","refresh","DocumentListUtils","locale","isObject","change","end","*Indent:* %0","has","setSelection","getFirstRange","registerElementLabel","expandListBlocksToCompleteList","add","parent","editor","accept","commands","nodeAfter","indentList","execute","plugins","detach","start","formatInline","*Outdent:* %0","get","ELEMENT_LIST_ITEM","*Format:* insert into %0","listIndent","mergeListItemBackward","nextSibling","formatBlock","getAttribute","after","markBlockFormat","document","config","*Change to:* %0","format","toUpperCase","createPositionAt","commandName","push","mergeListItemForward","before","markMultiRangeBlockFormat","map","schema","list.multiBlock","TrackChangesEditing","afterInit","fromRange"];var nr,or;nr=er,or=400,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{[ir("0x3")](){const t=this[ir("0x30")];if(!t[ir("0x36")][ir("0x29")]("DocumentListEditing"))return;const e=t[ir("0x24")],n=t[ir("0x36")][ir("0x3b")](ir("0x2")),o=t[ir("0x36")][ir("0x3b")](ir("0x23"));function i(e){return()=>{const i=t[ir("0x32")][ir("0x3b")](e);if(i[ir("0x14")]&&!t[ir("0x46")][ir("0x3b")](ir("0x1")))return void t.execute(ir("0x1d"),{});let r=Array[ir("0x20")](t[ir("0xf")][ir("0x45")][ir("0x8")][ir("0x9")]());if(a(e)){r=o[ir("0x2d")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[ir("0x4c")](e);r=t}t[ir("0xf")].change((()=>{n[ir("0x4f")](r,{commandName:e,commandParams:[{forceValue:!i[ir("0x14")]}],formatGroupId:"listType"},[],ir("0x17"))}))}}function r(e){return()=>{const o=function(t){let e=Array[ir("0x20")](t);const n=e.findIndex((t=>!t[ir("0xc")](ir("0x1c"))));return n>-1&&(e=e[ir("0x5")](0,n)),e}(t[ir("0xf")].document[ir("0x8")][ir("0x9")]()),i=o[o.length-1],r=t[ir("0xf")][ir("0x0")][ir("0x25")](i)?ir("0x43"):ir("0x27"),s=t[ir("0xf")][ir("0x1a")](t[ir("0xf")].createPositionAt(o[0],"before"),t[ir("0xf")].createPositionAt(i,r));t.model[ir("0x26")]((()=>{n[ir("0x44")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x12")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ir("0x42")](ir("0x3e"))>n[ir("0x42")](ir("0x3e"));)e[ir("0x2e")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[ir("0xf")][ir("0x45")][ir("0x8")].getSelectedBlocks()[ir("0x11")]().value,i=t[ir("0xf")].createPositionAt(o,ir("0x4e")),r=t[ir("0xf")][ir("0x4a")](o,0),s=t[ir("0xf")][ir("0x1a")](i,r);t[ir("0xf")][ir("0x26")]((()=>{n[ir("0x44")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x12")})}))}}function a(e){const n=t.commands[ir("0x3b")]("bulletedList")[ir("0x14")],o=t[ir("0x32")][ir("0x3b")](ir("0x1e"))[ir("0x14")];return ir("0x1e")===e?n:o}n[ir("0x1f")](ir("0x1e"),i(ir("0x1e"))),n[ir("0x1f")](ir("0x16"),i(ir("0x16"))),n[ir("0x1f")](ir("0x34"),r("indentList")),n[ir("0x1f")](ir("0x18"),r(ir("0x18"))),n[ir("0x1f")]("splitListItemAfter",x("splitListItemAfter")),n[ir("0x1f")](ir("0xb"),x(ir("0xb"))),n[ir("0x10")][ir("0x2c")]((function(e){const n=!t.model.schema[ir("0x25")](e),o=e.previousSibling,i=e[ir("0x40")],r=e[ir("0x42")](ir("0x1c")),s=!o||o[ir("0x42")](ir("0x1c"))!==r,x=!i||i[ir("0x42")]("listItemId")!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[ir("0x10")].registerDescriptionCallback((function(n){if(ir("0x41")!=n.type&&ir("0x39")!=n[ir("0x21")])return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0x4b")]){case"bulletedList":s=o[ir("0x13")][0][ir("0x6")],x=a(o[ir("0x4b")]),i=s?ir("0x3d"):"*Format:* remove from %0",!x&&t[ir("0x46")][ir("0x3b")]("list.multiBlock")||(i=ir("0x47")),r={type:ir("0x48"),content:Qo(e,i,Qo(e,ir("0xd")))};break;case ir("0x1e"):s=o[ir("0x13")][0][ir("0x6")],x=a(o.commandName),i=ir(s?"0x3d":"0x1b"),!x&&t[ir("0x46")][ir("0x3b")](ir("0x1"))||(i="*Change to:* %0"),r={type:ir("0x48"),content:Qo(e,i,Qo(e,"ELEMENT_NUMBERED_LIST"))};break;case ir("0x34"):i=ir("0x28"),r={type:ir("0x48"),content:Qo(e,i,Qo(e,ir("0x3c")))};break;case ir("0x18"):i=function(t){const e=t[ir("0x2b")]();let n=e[ir("0x38")][ir("0x33")];for(;n&&e.containsItem(n);){if(n[ir("0x42")]("listIndent")>0)return!1;n=n[ir("0x40")]}return!0}(n)?Qo(e,ir("0x1b"),Qo(e,function(t){const e=t[ir("0x2b")]()[ir("0x38")][ir("0x33")];return ir("0xe")+e.getAttribute("listType")[ir("0x49")]()+ir("0x15")}(n))):Qo(e,ir("0x3a"),Qo(e,ir("0x3c"))),r={type:"format",content:i};break;case ir("0x3f"):case ir("0x4d"):!1===o[ir("0xa")]&&(i="*Merge:* %0",r={type:ir("0x19"),content:Qo(e,i,Qo(e,ir("0x3c")))})}return r})),n._suggestionFactory[ir("0x7")](ir("0x41"),ir("0x17"),ir("0x31"),(function(e,n){const o=[];for(let n of e)n.start.nodeAfter===n[ir("0x27")][ir("0x2f")]&&(n=t[ir("0xf")][ir("0x1a")](t.model[ir("0x4a")](n[ir("0x38")][ir("0x33")],0))),o.push(n);t[ir("0xf")][ir("0x26")]((e=>{const i=t[ir("0xf")][ir("0x45")][ir("0x8")],r=Array.from(i.getRanges())[ir("0x50")]((t=>s.LiveRange[ir("0x4")](t)));e.setSelection(o),t[ir("0x32")][ir("0x3b")](n.commandName)[ir("0x22")](),n.commandParams[ir("0x4c")]({forceDefaultExecution:!0}),t[ir("0x35")](n[ir("0x4b")],...n[ir("0x13")]),e[ir("0x2a")](r);for(const t of r)t[ir("0x37")]()}))}))}}const sr=["DocumentListPropertiesEditing","enableCommand","listType","listStart","handleListStartCommand","startIndex","get","handleListReversedCommand","reversed","toUpperCase","formatBlock","filter","getListTypeFromListStyleType","has","length","getAttribute","DocumentListUtils","isFirstBlockOfListItem","_getSuggestionBlocks","plugins","handleDescriptions","list.properties","model","styles","commandParams","isListItemBlock","*Format:* set order to regular","push","from","TrackChangesEditing","config","_getSuggestionBlocksForListStyle","ELEMENT_","format","_getTranslationKeyForListStyle","numbered","listStyle","type","expandListBlocksToCompleteList","change","locale","editor","getSelectedBlocks","markMultiRangeBlockFormat","replace","selection","bind","handleListStyleCommand","*Format:* set start index to %0","formatInline","_LIST_","listReversed","document"];var xr,ar;xr=sr,ar=311,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{afterInit(){if(!this[cr("0x30")].plugins[cr("0x14")](cr("0x7")))return;const t=this.editor[cr("0x25")][cr("0xd")](cr("0x1c")),e=this[cr("0x30")][cr("0x1a")][cr("0xd")]("TrackChangesEditing");t[cr("0x1e")]&&e.enableCommand(cr("0x2b"),this[cr("0x1")][cr("0x0")](this)),t.reversed&&e[cr("0x8")]("listReversed",this[cr("0xe")][cr("0x0")](this)),t[cr("0xc")]&&e[cr("0x8")](cr("0xa"),this.handleListStartCommand.bind(this)),e._descriptionFactory.registerDescriptionCallback(this.handleDescriptions[cr("0x0")](this))}[cr("0x1")](t,e={}){const n=this[cr("0x30")][cr("0x1a")][cr("0xd")](cr("0x24")),o=this[cr("0x26")]();this[cr("0x30")][cr("0x1d")][cr("0x2e")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:cr("0x2b"),commandParams:[{type:e[cr("0x2c")]}],formatGroupId:cr("0x2b")})}))}[cr("0xe")](t,e={}){const n=this[cr("0x30")].plugins[cr("0xd")](cr("0x24")),o=this[cr("0x30")][cr("0x1a")][cr("0xd")](cr("0x17")),i=this[cr("0x19")]((t=>o[cr("0x20")](t)&&"numbered"===t[cr("0x16")](cr("0x9"))));null!==i&&this.editor[cr("0x1d")][cr("0x2e")]((()=>{n[cr("0x32")](i,{commandName:cr("0x5"),commandParams:[{reversed:e[cr("0xf")]}],formatGroupId:cr("0x5")})}))}[cr("0xb")](t,e={}){const n=this[cr("0x30")][cr("0x1a")][cr("0xd")](cr("0x24")),o=this[cr("0x30")][cr("0x1a")][cr("0xd")](cr("0x17")),i=this[cr("0x19")]((t=>o[cr("0x20")](t)&&cr("0x2a")===t.getAttribute(cr("0x9"))));null!==i&&this[cr("0x30")][cr("0x1d")][cr("0x2e")]((()=>{n[cr("0x32")](i,{commandName:cr("0xa"),commandParams:[{startIndex:e.startIndex}],formatGroupId:cr("0xa")})}))}[cr("0x1b")](t){if(cr("0x11")!=t[cr("0x2c")]&&cr("0x3")!=t[cr("0x2c")])return;const e=this[cr("0x30")][cr("0x2f")],{data:n}=t;if(!n)return;let o,i;switch(n.commandName){case cr("0x2b"):o="*Change to:* %0",i={type:"format",content:Qo(e,o,Qo(e,this[cr("0x29")](n[cr("0x1f")][0].type)))};break;case cr("0x5"):o=n.commandParams[0].reversed?"*Format:* set order to reversed":cr("0x21"),i={type:cr("0x28"),content:Qo(e,o)};break;case cr("0xa"):o=cr("0x2"),i={type:cr("0x28"),content:Qo(e,o,n[cr("0x1f")][0][cr("0xc")])}}return i}[cr("0x26")](){const t=this.editor[cr("0x1a")][cr("0xd")](cr("0x17"));let e=Array[cr("0x23")](this[cr("0x30")].model[cr("0x6")][cr("0x34")][cr("0x31")]());return e[cr("0x22")](...t[cr("0x2d")](e)),e=[...new Set(e)],e}[cr("0x19")](t){const e=this[cr("0x30")][cr("0x1a")].get(cr("0x17"));let n=Array[cr("0x23")](this[cr("0x30")][cr("0x1d")][cr("0x6")].selection[cr("0x31")]())[cr("0x12")](t);if(!n[cr("0x15")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[cr("0x18")](t)&&o.push(t);return o}_getTranslationKeyForListStyle(t){return cr("0x27")+this[cr("0x30")][cr("0x1a")][cr("0xd")]("DocumentListPropertiesUtils")[cr("0x13")](t)[cr("0x10")]()+cr("0x4")+t[cr("0x10")]()[cr("0x33")](/-/g,"_")}}var ur=n(331);const dr=["ck-suggestion-marker-split","end","fromRange","markerName","editing","TrackChangesEditing","enterBlock","data","fire","detach","bind","setSelection","document","getFirstRange","mapper","options","selection","split","unbindElementFromMarkerName","get","downcastDispatcher","createRange","parent","getFirstPosition","change","remove","markInsertion","commands","nextSibling","model","enter","removeMarker:suggestion:insertion","init","high","plugins","addMarker:suggestion:insertion"];var gr,fr;gr=dr,fr=180,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get requires(){return[ur.Enter]}[mr("0x20")](){const t=this.editor,e=t[mr("0x22")].get(mr("0x5")),n=t[mr("0x1b")][mr("0x13")](mr("0x1e"));e.enableCommand(mr("0x1e"),(()=>{t[mr("0x1d")][mr("0x18")]((o=>{const i=t[mr("0x1d")][mr("0xc")][mr("0x10")],r=i[mr("0x17")](),x=s.LiveRange[mr("0x2")](i[mr("0xd")]());if(n[mr("0x6")](o)){const n=t[mr("0x1d")].createPositionAt(r[mr("0x16")][mr("0x1c")],0),i=o[mr("0x15")](r,n);e[mr("0x1a")](i)}else o[mr("0xb")](o[mr("0x15")](x[mr("0x1")]));x[mr("0x9")](),n[mr("0x8")]("afterExecute",{writer:o})}))})),t[mr("0x4")][mr("0x14")].on(mr("0x23"),$i(t,"split"),{priority:mr("0x21")}),t[mr("0x4")][mr("0x14")].on(mr("0x1f"),((t,e,n)=>{const o=n[mr("0xe")].markerNameToElements(e.markerName);if(o)for(const t of o)t.hasClass(mr("0x0"))&&(n[mr("0xe")][mr("0x12")](t,e[mr("0x3")]),n.writer[mr("0x19")](t))}),{priority:"high"}),t[mr("0x7")].downcastDispatcher.on(mr("0x23"),((e,n,o)=>{o[mr("0xf")].showSuggestionHighlights&&$i(t,mr("0x11"),{showActiveMarker:!1})[mr("0xa")](this)(e,n,o)}),{priority:mr("0x21")})}}const pr=["replaceAll","item","replace","filter","FindAndReplaceUtils","findByTextCallback","has","createPositionAt","bind","end","enableCommand","get","findNext","FindAndReplaceEditing","markers","find","getIntersection","string","getMarkersGroup","handleFindCommand","suggestion:deletion","start","createRange","editor","model","_isInDeletionRange"];var br,Er;br=pr,Er=259,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{afterInit(){if(!this[_r("0x18")].plugins[_r("0x7")](_r("0xe")))return;const t=this[_r("0x18")].plugins[_r("0xc")]("TrackChangesEditing");t[_r("0xb")](_r("0x10"),this[_r("0x14")][_r("0x9")](this)),t[_r("0xb")](_r("0xd")),t[_r("0xb")]("findPrevious"),t[_r("0xb")](_r("0x3")),t[_r("0xb")](_r("0x1"))}handleFindCommand(t,e,n={}){const o=this[_r("0x18")].plugins[_r("0xc")](_r("0x5"));if(void 0!==n)return t((t=>(_r("0x12")==typeof e?o[_r("0x6")](e,n):e)(t)[_r("0x4")]((e=>!1===this._isInDeletionRange(e,t[_r("0x2")])))),n)}[_r("0x0")](t,e){const n=this[_r("0x18")].model[_r("0x17")](this.editor[_r("0x19")].createPositionAt(e,t[_r("0x16")]),this[_r("0x18")].model[_r("0x8")](e,t[_r("0xa")]));for(const t of this.editor[_r("0x19")][_r("0xf")][_r("0x13")](_r("0x15")))if(null!==n[_r("0x11")](t.getRange()))return!0;return!1}}const yr=["trim","FORMAT_FONT_SIZE","_enableDefaultAttributesIntegration","fontFamily","_registerLegacyDescription","TrackChangesEditing","has","FontSize","_descriptionFactory","fontBackgroundColor.colors","fontSize.options","FontColorEditing","config","toLowerCase","normalizeSizeOptions","find","*Reset font color*","plugins","title","fontColor","editor","label","formatInline","FontFamilyEditing","commandParams","*Reset font background color*","FORMAT_FONT_FAMILY","*Reset font size*","type","registerAttributeLabel","*Set font family:* %0","fontBackgroundColor","value","*Set font size:* %0","format","afterInit","FontBackgroundColorEditing","get","*Set font background color:* %0","commandName","fontSize","FORMAT_FONT_COLOR","locale","model"];var Cr,Ar;Cr=yr,Ar=174,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:"FontSizeEditing",commandName:kr("0x2a")},{pluginName:kr("0x19"),commandName:kr("0x5")},{pluginName:kr("0xd"),commandName:kr("0x15")},{pluginName:kr("0x26"),commandName:"fontBackgroundColor"}];class Sr extends t.Plugin{[kr("0x25")](){const t=this.editor[kr("0x0")],e=this.editor.plugins[kr("0x27")](kr("0x7"));for(const{pluginName:t,commandName:n}of Ir)this[kr("0x16")][kr("0x13")][kr("0x8")](t)&&e[kr("0x4")](n,[n]);t.t,e._descriptionFactory[kr("0x1f")](kr("0x2a"),Qo(t,kr("0x3"))),e[kr("0xa")][kr("0x1f")](kr("0x5"),Qo(t,kr("0x1c"))),e[kr("0xa")][kr("0x1f")](kr("0x15"),Qo(t,kr("0x2b"))),e[kr("0xa")][kr("0x1f")](kr("0x21"),Qo(t,"FORMAT_FONT_BACKGROUND")),this[kr("0x6")]()}[kr("0x6")](){const t=this[kr("0x16")],e=t[kr("0x0")];t.plugins.get("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{const n=e.t;if(kr("0x18")!=t[kr("0x1e")])return;const{data:o}=t;if(null!=o){if(kr("0x2a")==o[kr("0x29")]){const t=o[kr("0x1a")][0][kr("0x22")];if(t){const o=n(this[kr("0x16")][kr("0x13")].get(kr("0x9"))[kr("0x10")](this[kr("0x16")].config.get(kr("0xc"))).find((e=>e[kr("0x1")]==t))[kr("0x14")]).toLowerCase();return{type:"format",content:Qo(e,kr("0x23"),o)}}return{type:"format",content:Qo(e,kr("0x1d"))}}if("fontFamily"==o[kr("0x29")]){const t=o.commandParams[0][kr("0x22")];return t?{type:kr("0x24"),content:Qo(e,kr("0x20"),t)}:{type:kr("0x24"),content:Qo(e,"*Reset font family*")}}if("fontColor"==o.commandName){const t=o[kr("0x1a")][0][kr("0x22")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0x16")][kr("0xe")][kr("0x27")]("fontColor.colors"))[kr("0x11")]((e=>e[kr("0x1")]==t));let r=t,s="";return o&&(r=o[kr("0x17")],s=n(r)[kr("0xf")]()),{type:kr("0x24"),content:Qo(e,"*Set font color:* %0",s)[kr("0x2")](),color:{value:t,title:s||r}}}return{type:"format",content:Qo(e,kr("0x12"))}}if("fontBackgroundColor"==o[kr("0x29")]){const t=o[kr("0x1a")][0][kr("0x22")];if(t){const o=(0,i.normalizeColorOptions)(this.editor[kr("0xe")].get(kr("0xb")))[kr("0x11")]((e=>e[kr("0x1")]==t));let r=t,s="";return o&&(r=o[kr("0x17")],s=n(r)[kr("0xf")]()),{type:kr("0x24"),content:Qo(e,kr("0x28"),s).trim(),color:{value:t,title:s||r}}}return{type:kr("0x24"),content:Qo(e,kr("0x1b"))}}}}))}}const vr=["push","*Set format to:* %0","copyFormat","TrackChangesEditing","join","afterInit","fontSize.options","_registerLegacyDescription","formatInline","formatBlock","get","split","toLowerCase","editor","fontSize","locale","find","config","title","fontColor.colors","registerDescriptionCallback","length","toUpperCase","plugins","fontColor","entries","enableCommand","*Remove all formatting*","boolean","commands","model","_descriptionFactory","commandParams","pasteFormat","normalizeSizeOptions"];var Rr,Nr;Rr=vr,Nr=421,function(t){for(;--t;)Rr.push(Rr.shift())}(++Nr);const Lr=function(t,e){return vr[t-=0]};class Mr extends t.Plugin{[Lr("0x4")](){const t=this[Lr("0xc")],e=t[Lr("0x16")][Lr("0x9")]("TrackChangesEditing"),n=t[Lr("0x1c")][Lr("0x9")](Lr("0x1")),o=t.commands[Lr("0x9")](Lr("0x20"));n&&o&&(e._enableDefaultAttributesIntegration(Lr("0x20")),e[Lr("0x19")](Lr("0x1")),this[Lr("0x6")]())}[Lr("0x6")](){const t=this[Lr("0xc")],e=t[Lr("0xe")];t[Lr("0x16")][Lr("0x9")](Lr("0x2"))[Lr("0x1e")][Lr("0x13")]((n=>{if(Lr("0x8")!=n.type&&Lr("0x7")!=n.type)return;const{data:o}=n;if(o&&"pasteFormat"===o.commandName){const n=[],i=o[Lr("0x1f")][0];for(const[e,o]of Object[Lr("0x18")](i))n[Lr("0x22")](wr(t,e,o));return n[Lr("0x14")]?{type:"format",content:Qo(e,Lr("0x0"),n[Lr("0x3")](", "))}:{type:"format",content:Qo(e,Lr("0x1a"))}}}))}}function wr(t,e,n){const o=t[Lr("0xe")].t,r=e[Lr("0xa")](/(?=[A-Z])/)[Lr("0x3")](" "),s=o(r.charAt(0)[Lr("0x15")]()+r.slice(1))[Lr("0xb")]();if(Lr("0x1b")==typeof n)return s;if(Lr("0x17")===e||"fontBackgroundColor"===e){const e=(0,i.normalizeColorOptions)(t[Lr("0x10")][Lr("0x9")](Lr("0x12")))[Lr("0xf")]((t=>t.model==n));return s+" ("+(e?o(e.label).toLowerCase():n)+")"}if(Lr("0xd")===e&&isNaN(parseFloat(n))){const e=t[Lr("0x16")][Lr("0x9")]("FontSize")[Lr("0x21")](t[Lr("0x10")].get(Lr("0x5"))).find((t=>t[Lr("0x1d")]==n));return s+" ("+(e?o(e[Lr("0x11")])[Lr("0xb")]():n)+")"}return s+" ("+n+")"}const Or=["commandName","match","plugins","model","type","_headingOptions","paragraph","registerDescriptionCallback","_descriptionFactory","_getHeadingLevel","get","value","registerElementLabel","*Change to:* %0","_registerLegacyDescription","TrackChangesEditing","view","_enableDefaultAttributesIntegration","has","format","commandParams","locale","ELEMENT_HEADING","find","editor","ELEMENT_HEADING_CUSTOM","heading.options","name","heading","title"];var Fr,Dr;Fr=Or,Dr=126,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this.editor;if(!t[Br("0x1a")][Br("0xc")]("HeadingEditing"))return;this[Br("0x1d")]=t.config[Br("0x4")](Br("0x14"));const e=t[Br("0xf")],n=t[Br("0x1a")].get("TrackChangesEditing");n[Br("0xb")](Br("0x16"));for(const t of this[Br("0x1d")])Br("0x0")!=t[Br("0x1b")]&&n._descriptionFactory[Br("0x6")](t.model,(n=>{const o=this._getHeadingLevel(t[Br("0x1b")]);return null!==o?(s=n,x=o,Qo(e,Br("0x10"),[s,x])):(i=n,r=t[Br("0x17")],Qo(e,Br("0x13"),[i,r]));var i,r,s,x}));this[Br("0x8")]()}[Br("0x8")](){const t=this[Br("0x12")],e=t[Br("0xf")];t[Br("0x1a")][Br("0x4")](Br("0x9"))[Br("0x2")][Br("0x1")]((t=>{if("formatBlock"!=t[Br("0x1c")])return;const{data:n}=t;if(n&&"heading"==n[Br("0x18")]){const t=n[Br("0xe")][0][Br("0x5")],s=this[Br("0x3")](t);if(null!==s)return{type:Br("0xd"),content:Qo(e,"*Change to:* %0",(1,r=s,Qo(e,"ELEMENT_HEADING",[1,r])))};const x=this._headingOptions[Br("0x11")]((e=>e.model===t))[Br("0x17")];return{type:"format",content:Qo(e,Br("0x7"),(o=1,i=x,Qo(e,"ELEMENT_HEADING_CUSTOM",[o,i])))}}var o,i,r}))}[Br("0x3")](t){var e,n;const o=t[Br("0x19")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this._headingOptions)||void 0===e?void 0:e.find((e=>e[Br("0x1b")]==t));if(i&&i[Br("0xa")]){const t=i[Br("0xa")],e=(null!==(n=t[Br("0x15")])&&void 0!==n?n:t)[Br("0x19")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["*Set highlight:* %0","toLowerCase","HighlightEditing","FORMAT_HIGHLIGHT","TrackChangesEditing","commandName","editor","format","config","color","_registerLegacyDescription","registerDescriptionCallback","type","title","_descriptionFactory","get","*Remove highlight*","find","highlight","_enableDefaultAttributesIntegration","plugins","registerAttributeLabel","has","locale","value","formatInline","afterInit"];var jr,Gr;jr=Ur,Gr=176,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{[Vr("0xc")](){const t=this[Vr("0x13")];if(!t[Vr("0x6")][Vr("0x8")](Vr("0xf")))return;const e=t[Vr("0x6")][Vr("0x1")](Vr("0x11")),n=t.locale;e[Vr("0x5")](Vr("0x4"),[Vr("0x4")]),e[Vr("0x0")][Vr("0x7")](Vr("0x4"),Qo(n,Vr("0x10"))),this[Vr("0x17")]()}[Vr("0x17")](){const t=this[Vr("0x13")],e=t[Vr("0x9")];t[Vr("0x6")][Vr("0x1")](Vr("0x11"))[Vr("0x0")][Vr("0x18")]((n=>{if(Vr("0xb")!=n[Vr("0x19")])return;const{data:o}=n;if(o&&Vr("0x4")==o[Vr("0x12")]){const n=e.t,i=o.commandParams[0][Vr("0xa")];if(i){const o=t[Vr("0x15")][Vr("0x1")]("highlight.options")[Vr("0x3")]((t=>t.model==i)),r=n(o[Vr("0x1a")])[Vr("0xe")]();return{type:Vr("0x14"),content:Qo(e,Vr("0xd"),r),color:{value:o[Vr("0x16")],title:o[Vr("0x1a")]}}}return{type:Vr("0x14"),content:Qo(e,Vr("0x2"),Qo(e,Vr("0x10")))}}}))}}const zr=["conversion","div","createEmptyElement","for","registerElementLabel","plugins","TrackChangesEditing","high","createPositionAt","editor","horizontalLine","locale","get","addClass","enableCommand","insert","ELEMENT_HORIZONTAL_LINE","ck-horizontal-line","showSuggestionHighlights","afterInit","HorizontalLineEditing"];var Wr,Kr;Wr=zr,Kr=132,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{[qr("0xd")](){const t=this[qr("0x3")];if(!t.plugins.has(qr("0xe")))return;t[qr("0x14")][qr("0x6")](qr("0x0"))[qr("0x8")](qr("0x4"));const e=t.plugins[qr("0x6")](qr("0x0")),n=t[qr("0x5")];e._descriptionFactory[qr("0x13")](qr("0x4"),(t=>Qo(n,qr("0xa"),t))),t[qr("0xf")][qr("0x12")]("dataDowncast").elementToStructure({model:qr("0x4"),view:(t,{writer:e,options:n})=>{if(!n[qr("0xc")])return null;const o=e.createContainerElement(qr("0x10")),i=e[qr("0x11")]("hr");return e[qr("0x7")](qr("0xb"),o),e[qr("0x9")](e[qr("0x2")](o,0),i),o},converterPriority:qr("0x1")})}}const $r=["ELEMENT_HTML_EMBED","element","plugins","commandName","*Change %0 content*","_enableDefaultAttributesIntegration","registerDescriptionCallback","rawHtml","HtmlEmbed","format","editor","has","htmlEmbed","_registerLegacyDescription","_descriptionFactory","getFirstRange","attribute","afterInit","registerElementLabel","formatBlock","type","get","value","locale","TrackChangesEditing"];var Zr,Yr;Zr=$r,Yr=291,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{[Jr("0x1")](){const t=this[Jr("0x13")];if(!t[Jr("0xb")][Jr("0x14")](Jr("0x11")))return;const e=t[Jr("0xb")][Jr("0x5")](Jr("0x8")),n=t[Jr("0x7")];e[Jr("0x17")][Jr("0x2")](Jr("0x10"),(t=>Qo(n,Jr("0x9"),t))),e[Jr("0xe")](Jr("0x15"),[],[Jr("0x6")]),e[Jr("0x17")].registerDescriptionCallback((t=>{if(Jr("0x0")!=t[Jr("0x4")])return;const{data:e}=t;if(e&&Jr("0x6")==e.key&&t[Jr("0x18")]().start.nodeAfter.is(Jr("0xa"),Jr("0x10"))){const t=Qo(n,Jr("0x9"));return{type:Jr("0x12"),content:Qo(n,Jr("0xd"),t)}}})),this[Jr("0x16")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t[Jr("0xb")][Jr("0x5")](Jr("0x8"))[Jr("0x17")][Jr("0xf")]((t=>{if(Jr("0x3")!=t.type)return;const{data:n}=t;if(n&&Jr("0x15")==n[Jr("0xc")]){const t=Qo(e,"ELEMENT_HTML_EMBED");return{type:Jr("0x12"),content:Qo(e,Jr("0xd"),t)}}}))}}const ts=["ImageEditing","registerCustomCallback","formatBlock","ImageCaptionEditing","resizedWidth","isEqual","imageStylePreApply","*Set image text alternative:* %0","attribute","findIndex","*Reset image width*","FORMAT_IMAGE_SIZE","getFirstRange","afterInit","length","insertion","_findSuggestions","*Remove image text alternative*","end","TrackChangesEditing","_registerLegacyDescription","start","caption","markDeletion","document","_enableDefaultAttributesIntegration","removeObject","formatInline","ImageInlineEditing","convertBlockImageToInline","Inline image to block image","ELEMENT_IMAGE","createRangeOn","_descriptionFactory","discard","accept","ImageUploadEditing","imageTypeInline","getNearestSelectionRange","nodeBefore","addObject","markBlockFormat","change","has","schema","newValue","imageTextAlternative","selection","subType","filter","detach","createRange","format","isCollapsed","fromPosition","markInsertion","model","registerDescriptionCallback","toNext","type","getCaptionFromImageModelElement","enableCommand","alt","ImageResize","commandName","imageCaption","get","editor","resizeImage","uploadImage","_suggestionFactory","chain","isBlockImage","element","registerElementLabel","getClosestSelectedImageElement","commandParams","getSuggestionCallback","toggleImageCaption","getContainedElement","isOwn","locale","isBefore","forceDefaultExecution","insertImage","join","ImageCaptionUtils","imageInline","plugins","toPrevious","convertInlineImageToBlock","ImageUtils"];var es,ns;es=ts,ns=181,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x10")](){const t=this[os("0x46")];if(!t.plugins[os("0x2e")](os("0x3")))return;const e=t.plugins.get(os("0x16")),n=t.plugins.get(os("0x2")),o=t[os("0x54")];e[os("0x40")](os("0x57")),e[os("0x24")][os("0x4d")]("imageBlock",(t=>Qo(o,os("0x22"),t))),e._descriptionFactory[os("0x4d")](os("0x5a"),(t=>Qo(o,"ELEMENT_INLINE_IMAGE",t))),e[os("0x24")][os("0x4d")](os("0x19"),(()=>Qo(o,"ELEMENT_CAPTION"))),t[os("0x5b")][os("0x2e")](os("0x27"))&&e[os("0x40")](os("0x48")),t[os("0x5b")][os("0x2e")]("ImageBlockEditing")&&t[os("0x5b")][os("0x2e")](os("0x1f"))&&(e.enableCommand(os("0x28"),((o,i)=>{const r=n.getClosestSelectedImageElement(t[os("0x3b")][os("0x1b")][os("0x32")]);t.model.change((()=>{e[os("0x2c")](r,{commandName:os("0x28"),commandParams:[i]},[],os("0x20"))}))})),e.enableCommand("imageTypeBlock",((o,i)=>{t.model.change((r=>{let x=n[os("0x4e")](t[os("0x3b")][os("0x1b")][os("0x32")]),a=r[os("0x23")](x);const c=s.LivePosition[os("0x39")](a[os("0x18")],os("0x0")),l=s.LivePosition[os("0x39")](a[os("0x15")],os("0x3d"));e[os("0x56")]((()=>o(i))),x=n[os("0x4e")](t.model.document[os("0x32")]),a=r.createRangeOn(x);const u=r[os("0x36")](c,l);c.detach(),l[os("0x35")](),e[os("0x2c")](x,{commandName:os("0x28"),commandParams:[i]},[],os("0x1")),u.start[os("0x55")](a[os("0x18")])&&e.markInsertion(r[os("0x36")](u[os("0x18")],a[os("0x18")]),"convertInlineImageToBlock"),a[os("0x15")][os("0x55")](u[os("0x15")])&&e[os("0x3a")](r[os("0x36")](a[os("0x15")],u[os("0x15")]),os("0x1"))}))})),e[os("0x49")][os("0x4")]("formatBlock",os("0x1"),os("0x58"),(()=>!1)),e[os("0x49")].registerCustomCallback("formatBlock",os("0x1"),os("0x26"),(()=>!1)),e[os("0x49")][os("0x4")](os("0x5"),os("0x1"),os("0x25"),e._suggestionFactory[os("0x50")](os("0x5"),"",os("0x26"))),e[os("0x49")][os("0x4")](os("0x12"),os("0x1"),os("0x58"),(()=>!1)),e[os("0x49")][os("0x4")]("insertion","convertInlineImageToBlock",os("0x25"),(([n])=>{const o=e[os("0x49")][os("0x50")](os("0x12"),"",os("0x25"));let i=n[os("0x18")],r=n.end;const s=t[os("0x3b")][os("0x2f")].getNearestSelectionRange(i,"backward"),x=t.model[os("0x2f")][os("0x29")](r,"forward");s[os("0x38")]&&(i=s[os("0x18")]),x[os("0x38")]&&(r=x.end),o([t[os("0x3b")][os("0x36")](i,r)])})),e._suggestionFactory[os("0x4")](os("0x5"),os("0x1"),os("0x4a"),x),e[os("0x49")][os("0x4")](os("0x12"),os("0x1"),os("0x4a"),x)),t.plugins[os("0x2e")](os("0x6"))&&(e[os("0x40")](os("0x51"),((o,i)=>{const r=t[os("0x5b")][os("0x45")](os("0x59"));let s=n[os("0x4e")](t[os("0x3b")][os("0x1b")][os("0x32")]),x=r[os("0x3f")](s);t[os("0x3b")][os("0x2d")]((()=>{if(x)return void e[os("0x1a")](t[os("0x3b")][os("0x23")](x));const a=n[os("0x4b")](s);o(i),s=n[os("0x4e")](t[os("0x3b")][os("0x1b")][os("0x32")]),x=r[os("0x3f")](s),e[os("0x3a")](t[os("0x3b")][os("0x23")](x),a?null:os("0x44"))}))})),e[os("0x49")][os("0x4")](os("0x12"),os("0x44"),os("0x4a"),x));const i=[{type:os("0x5"),subType:os("0x9")},{type:os("0x12"),subType:os("0x44")},{type:os("0x5"),subType:"convertInlineImageToBlock"},{type:os("0x12"),subType:"convertInlineImageToBlock"}];function r(t,o){const r=i[os("0xc")]((({type:e,subType:n})=>t[os("0x3e")]==e&&t[os("0x33")]==n)),s=i[os("0xc")]((({type:t,subType:e})=>o.type==t&&o[os("0x33")]==e));if(r<0||s<0)return!1;const x=t[os("0xf")](),a=o.getFirstRange();if((0==r||1==r)&&2==s&&x.isIntersecting(a))return!0;if(2==r&&3==s){const t=e[os("0x13")](x,os("0x12"))[os("0x34")]((({suggestion:t,meta:e})=>e[os("0x53")]&&os("0x1")==t[os("0x33")]));if(t[os("0x11")]>1&&a.end[os("0x8")](x.start))return!0;if(1==t.length&&(x.start.isEqual(a.end)||x[os("0x15")][os("0x8")](a[os("0x18")])))return!0}if(3==r&&3==s&&x[os("0x18")][os("0x55")](a.start)){const t=x.end.nodeAfter,e=a[os("0x18")][os("0x2a")];return n.isBlockImage(t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x5b")][os("0x2e")](os("0x42"))&&(e[os("0x1c")]("resizeImage",[],[os("0x7")]),e._descriptionFactory.registerAttributeLabel(os("0x7"),Qo(o,os("0xe")))),t.plugins[os("0x2e")]("ImageTextAlternativeEditing")&&e[os("0x1c")](os("0x31"),[],[os("0x41")]),e[os("0x24")].registerDescriptionCallback((t=>{if(i.find((({type:e,subType:n})=>t[os("0x3e")]==e&&t[os("0x33")]==n)))return t.previous?{}:void 0})),e[os("0x24")][os("0x3c")]((t=>{if(os("0x12")==t[os("0x3e")]||"deletion"==t[os("0x3e")]){const e=t[os("0x52")]();if(e&&e.is(os("0x4c"),os("0x19")))return{type:"insertion"==t.type?os("0x2b"):os("0x1d"),element:e,quantity:1}}})),e._descriptionFactory.registerDescriptionCallback((t=>os("0x5")==t[os("0x3e")]&&os("0x1")==t.subType?{type:os("0x37"),content:os("0x21")}:os("0x5")==t[os("0x3e")]&&"convertBlockImageToInline"==t[os("0x33")]?{type:os("0x37"),content:"Block image to inline image"}:void 0)),e[os("0x24")][os("0x3c")]((t=>{if(os("0xb")!=t[os("0x3e")])return;const{data:e}=t;if(!e||os("0x41")!=e.key)return;const n=e[os("0x30")];return n?{type:os("0x37"),content:Qo(o,os("0xa"),'"'+n+'"')}:{type:os("0x37"),content:Qo(o,os("0x14"))}})),this[os("0x17")]()}[os("0x17")](){const t=this[os("0x46")],e=t.locale;t[os("0x5b")][os("0x45")](os("0x16"))[os("0x24")].registerDescriptionCallback((t=>{if(os("0x5")!=t[os("0x3e")]&&os("0x1e")!=t.type)return;const{data:n}=t;if(n){if(os("0x31")==n[os("0x43")]){const t=n.commandParams[0][os("0x30")];return t?{type:os("0x37"),content:Qo(e,os("0xa"),'"'+t+'"')}:{type:os("0x37"),content:Qo(e,os("0x14"))}}if(os("0x47")==n[os("0x43")]){const t=n[os("0x4f")][0].width;return t?{type:os("0x37"),content:Qo(e,"*Set image width:* %0",t)}:{type:os("0x37"),content:Qo(e,os("0xd"))}}}}))}}const rs=["commandName","newValue","has","editor","format","_descriptionFactory","formatBlock","key","*Replace image URL*","replaceImageSource","src","_suggestionFactory","TrackChangesEditing","getSuggestionCallback","type","_handleLegacySuggestions","attribute","registerDescriptionCallback","_enableDefaultAttributesIntegration","accept","get","plugins","afterInit","locale","registerCustomCallback","_registerLegacyDescription"];var ss,xs;ss=rs,xs=375,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0xb")](){if(!this[as("0x12")][as("0xa")][as("0x11")]("ImageEditing"))return;const t=this[as("0x12")][as("0xc")],e=this[as("0x12")][as("0xa")][as("0x9")](as("0x1"));e[as("0x7")](as("0x18"),[],[as("0x19")]),e[as("0x14")][as("0x6")]((e=>{if(as("0x5")!=e[as("0x3")])return;const{data:n}=e;return n&&as("0x19")==n[as("0x16")]?n[as("0x10")]&&n.oldValue?{type:"format",content:Qo(t,as("0x17"))}:{type:as("0x13"),content:""}:void 0})),this[as("0x4")]()}[as("0x4")](){const t=this[as("0x12")][as("0xa")].get(as("0x1"));t._suggestionFactory[as("0xd")]("formatBlock",as("0x18"),as("0x8"),t[as("0x0")][as("0x2")](as("0x15"),null,"discard")),t[as("0x0")][as("0xd")](as("0x15"),as("0x18"),"discard",t[as("0x0")][as("0x2")](as("0x15"),null,as("0x8"))),this._registerLegacyDescription()}[as("0xe")](){const t=this[as("0x12")],e=t[as("0xc")];t[as("0xa")].get(as("0x1"))[as("0x14")][as("0x6")]((t=>{if(as("0x15")!=t[as("0x3")]&&"formatInline"!=t[as("0x3")])return;const{data:n}=t;return n&&as("0x18")===n[as("0xf")]?{type:as("0x13"),content:Qo(e,as("0x17"))}:void 0}))}}const ls=["name","getSuggestionCallback","TrackChangesEditing","isIntersecting","newRange","next","_registerLegacyDescription","registerDescriptionCallback","commandReversedParams","getFirstRange","formatInline","head","markBlockFormat","imageCaption","findIndex","createRangeOn","subType","markInlineFormat","convertInlineImageToBlock","discard","value","differ","ImageStyleEditing","format","getSuggestion","getSuggestions","registerPostFixer","isOwn","change","suggestion","getClosestSelectedImageElement","locale","afterInit","forEach","toLowerCase","_suggestionFactory","nodeAfter","insertion","discardSuggestion","Users","setImageNaturalSizeAttributes","_descriptionFactory","hasSuggestion","isEqual","isInContent","imageStylePreApply","length","commandParams","registerCustomCallback","imageStylePostApply","formatBlock","normalizedStyles","get","start","join","filter","commands","document","end","selection","side","getChangedMarkers","model","plugins","getContainedElement","type","accept","commandName","editor","refresh","_splitMarkerName","has","shouldConvertImageType","imageStyle","from","author","isBlockImage"];var us,ds;us=ls,ds=404,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0xd")](){const t=this[gs("0x31")];if(!t[gs("0x2c")][gs("0x34")](gs("0x3")))return;const n=t[gs("0x2c")][gs("0x21")](gs("0x3c")),o=t[gs("0x2c")][gs("0x21")]("ImageUtils"),i={};n.enableCommand(gs("0x36"),((i,r)=>{const s=t[gs("0x2c")][gs("0x21")](gs("0x14")).me,x=t[gs("0x25")][gs("0x21")](gs("0x36"));let a=o[gs("0xb")](t[gs("0x2b")][gs("0x26")].selection),c=t[gs("0x2b")][gs("0x49")](a),l=x.value;if(l==r[gs("0x1")])return;const u={commandName:gs("0x36"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[gs("0x9")]((()=>{if(n[gs("0x6")]()[gs("0x24")]((t=>t[gs("0x19")]&&s==t[gs("0x38")]&&(gs("0x1f")==t[gs("0x2e")]||gs("0x44")==t.type)&&("imageStylePreApply"==t[gs("0x4a")]||gs("0x1e")==t[gs("0x4a")])&&t[gs("0x43")]()[gs("0x18")](c)))[gs("0xe")]((t=>n.discardSuggestion(t[gs("0x45")]))),a=o[gs("0xb")](t[gs("0x2b")][gs("0x26")].selection),c=t[gs("0x2b")][gs("0x49")](a),x[gs("0x32")](),t[gs("0x25")][gs("0x21")]("imageTypeInline")[gs("0x32")](),t.commands.get("imageTypeBlock")[gs("0x32")](),l=x[gs("0x1")],l!=r[gs("0x1")])return o.isInlineImage(a)&&x[gs("0x35")](r[gs("0x1")],a)?(i({...r,setImageSizes:!1}),a=o[gs("0xb")](t[gs("0x2b")][gs("0x26")][gs("0x28")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x1a"))):void(o.isBlockImage(a)?n[gs("0x46")](a,u,[],"imageStylePostApply"):n[gs("0x4b")](c,u,gs("0x1e")))}))}));for(const e of t.plugins[gs("0x21")](gs("0x3"))[gs("0x20")])i[e[gs("0x3a")]]=e.title[gs("0xf")]();n[gs("0x10")].registerCustomCallback(gs("0x1f"),gs("0x1a"),gs("0x23"),(()=>!1)),n[gs("0x10")][gs("0x1d")](gs("0x1f"),gs("0x1e"),"join",(()=>!1)),n._suggestionFactory.registerCustomCallback("formatInline",gs("0x1e"),gs("0x23"),(()=>!1)),n[gs("0x10")][gs("0x1d")](gs("0x1f"),gs("0x1a"),gs("0x2f"),(([t])=>{o[gs("0x15")](t[gs("0x2d")]())})),n[gs("0x10")][gs("0x1d")](gs("0x1f"),gs("0x1a"),gs("0x0"),((t,e)=>{n._suggestionFactory[gs("0x3b")]("formatBlock","",gs("0x2f"))(t,{commandName:e[gs("0x30")],commandParams:e[gs("0x42")]})})),n[gs("0x10")][gs("0x1d")](gs("0x1f"),gs("0x1a"),"chain",(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:gs("0x1f"),subType:gs("0x1a")},{type:gs("0x12"),subType:gs("0x47")},{type:gs("0x1f"),subType:gs("0x4c")},{type:gs("0x12"),subType:gs("0x4c")}];function s(t,e){const i=r.findIndex((({type:e,subType:n})=>t[gs("0x2e")]==e&&t[gs("0x4a")]==n)),s=r[gs("0x48")]((({type:t,subType:n})=>e[gs("0x2e")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t[gs("0x43")](),a=e[gs("0x43")]();if((0==i||1==i)&&2==s&&x[gs("0x3d")](a))return!0;if(2==i&&3==s){const t=n._findSuggestions(x,gs("0x12"))[gs("0x24")]((({suggestion:t,meta:e})=>e[gs("0x8")]&&gs("0x4c")==t[gs("0x4a")]));if(t.length>1&&a[gs("0x27")][gs("0x18")](x[gs("0x22")]))return!0;if(1==t[gs("0x1b")]&&(x.start[gs("0x18")](a.end)||x[gs("0x27")][gs("0x18")](a.start)))return!0}if(3==i&&3==s&&x[gs("0x22")].isBefore(a[gs("0x22")])){const t=x[gs("0x27")][gs("0x11")],e=a.start.nodeBefore;return o[gs("0x39")](t)&&t===e}return!1}t[gs("0x2b")][gs("0x26")][gs("0x7")]((()=>{let e=!1;const i=Array[gs("0x37")](t[gs("0x2b")][gs("0x26")][gs("0x2")][gs("0x2a")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x33")](t);if(gs("0xa")==i&&n[gs("0x17")](a)){if(gs("0x1f")==s&&(gs("0x1a")==x||gs("0x1e")==x)){const t=n[gs("0x5")](a);if(r[gs("0x3e")]){const i=t[gs("0x43")]()[gs("0x2d")]();if(o[gs("0x39")](i))continue;n[gs("0x13")](t),e=!0}}if(gs("0x12")==s&&gs("0x47")==x&&!r.newRange){const t=n.getSuggestion(a);t[gs("0x3f")]&&t[gs("0x3f")][gs("0x19")]&&(n.discardSuggestion(t[gs("0x3f")]),e=!0)}}}return e})),this[gs("0x40")](i)}[gs("0x40")](t){const e=this.editor,n=e[gs("0xc")];e[gs("0x2c")].get("TrackChangesEditing")[gs("0x16")][gs("0x41")]((e=>{if(gs("0x1f")!=e.type&&"formatInline"!=e[gs("0x2e")])return;const{data:o}=e;if(!o||gs("0x36")!=o[gs("0x30")])return;const i=o[gs("0x1c")][0].value;return r=gs("0x29")===i?Qo(n,"FORMAT_SIDE_IMAGE"):t[i]||i,{type:gs("0x4"),content:Qo(n,"*Format:* %0",r)};var r}))}}const ms=["track_changes","_handleImportedData","importWord","get","_trackChangesValueDuringImport","_trackChangesExecuted","enableCommand","bind","value","listenTo","forEach","execute","_setSuggestionData","Users","high","lowest","commands","dataInsert","editor","afterInit","plugins"];var hs,ps;hs=ms,ps=318,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x1")]=!1,this[bs("0x2")]=!1}[bs("0x10")](){const t=this[bs("0xf")],e=t[bs("0xd")][bs("0x0")](bs("0x14")),n=t[bs("0xd")].get("trackChanges");e&&(e.on(bs("0x8"),((t,[,e])=>{this[bs("0x1")]=n[bs("0x5")],e.collaboration_features[bs("0x12")]=!this[bs("0x1")]}),{priority:bs("0xb")}),this.listenTo(e,bs("0xe"),this[bs("0x13")][bs("0x4")](this)),this[bs("0x6")](e,bs("0xe"),(()=>{this._trackChangesExecuted&&(n[bs("0x8")](),this[bs("0x2")]=!1)}),{priority:bs("0xc")}),t[bs("0x11")][bs("0x0")]("TrackChangesEditing")[bs("0x3")](bs("0x14")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this.editor.commands[bs("0x0")]("trackChanges"),i=o[bs("0x5")];this[bs("0x1")]!==i&&(o[bs("0x8")](),this[bs("0x2")]=!0),n&&n[bs("0x7")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[bs("0xf")].plugins[bs("0x0")](bs("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[bs("0xf")].plugins.get("TrackChangesEditing")[bs("0x9")](i)}))}}const _s=["plugins","_registerLegacyDescription","indentBlock","_registerBlockAttribute","commandName","afterInit","IndentEditing","format","has","FORMAT_INDENT","_enableDefaultAttributesIntegration","outdentBlock","IndentBlock","blockIndent","registerAttributeLabel","_descriptionFactory","type","locale","indent","*Outdent:* %0","outdent","TrackChangesEditing","get","enableCommand","formatBlock"];var Ts,ys;Ts=_s,ys=451,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x4")](){const t=this.editor,e=t[Cs("0x18")][Cs("0x15")](Cs("0x14"));if(t[Cs("0x18")][Cs("0x7")](Cs("0x5"))&&(e[Cs("0x16")](Cs("0x11")),e[Cs("0x16")](Cs("0x13"))),t[Cs("0x18")][Cs("0x7")](Cs("0xb")))for(const t of["indentBlock","outdentBlock"])e[Cs("0x9")](t);const n=t.locale;e[Cs("0x2")](Cs("0xc")),e[Cs("0xe")][Cs("0xd")](Cs("0xc"),Qo(n,Cs("0x8"))),this[Cs("0x0")]()}_registerLegacyDescription(){const t=this.editor,e=t[Cs("0x10")],n=t[Cs("0x18")][Cs("0x15")](Cs("0x14"));n[Cs("0xe")].registerDescriptionCallback((t=>{if(Cs("0x17")!=t[Cs("0xf")])return;const{data:o}=t;if(!o)return;if(Cs("0x1")!=o[Cs("0x3")]&&Cs("0xa")!=o[Cs("0x3")])return;const i=t.getItems()[0],r=n._descriptionFactory.getItemLabel(i);return"indentBlock"==o[Cs("0x3")]?{type:Cs("0x6"),content:Qo(e,"*Indent:* %0",r)}:Cs("0xa")==o[Cs("0x3")]?{type:"format",content:Qo(e,Cs("0x12"),r)}:void 0}))}}var ks,Is,Ss=["init","editor","TrackChangesEditing","requires"];ks=Ss,Is=168,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var vs=function(t,e){return Ss[t-=0]};class Rs extends t.Plugin{static get[vs("0x3")](){return[Hi.Input]}[vs("0x0")](){this[vs("0x1")].plugins.get(vs("0x2")).enableCommand("input")}}const Ns=["_enableDefaultAttributesIntegration","editor","link (","type","TrackChangesEditing","has","registerDescriptionCallback","get","_registerLegacyDescription","plugins","map","_descriptionFactory","formatInline","format","commandName","attribute","label","commands","newValue","link","afterInit","linkHref","registerAttributeLabel","*Set link:* %0","commandParams","unlink","locale","toLowerCase","*Remove link*","manualDecorators"];var Ls,Ms;Ls=Ns,Ms=272,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x12")](){const t=this[ws("0x1d")];if(!t.plugins[ws("0x3")]("LinkEditing"))return;const e=t[ws("0x7")][ws("0x5")](ws("0x2")),n=t[ws("0xf")][ws("0x5")](ws("0x11"));e[ws("0x1c")](ws("0x11"),[ws("0x13"),...n.manualDecorators[ws("0x8")]((t=>t.id))]),e[ws("0x1c")](ws("0x17"));for(const t of n[ws("0x1b")])e[ws("0x9")][ws("0x14")](t.id,ws("0x0")+t[ws("0xe")][ws("0x19")]()+")");e[ws("0x9")][ws("0x4")]((e=>{if(ws("0xd")!=e[ws("0x1")])return;const{data:n}=e;if(!n||ws("0x13")!=n.key)return;const o=n[ws("0x10")],i=t[ws("0x18")];return{type:ws("0xb"),content:o?Qo(i,"*Set link:* %0",'"'+o+'"'):Qo(i,ws("0x1a"))}})),this[ws("0x6")]()}[ws("0x6")](){const t=this[ws("0x1d")],e=t[ws("0x18")];t[ws("0x7")].get("TrackChangesEditing")[ws("0x9")][ws("0x4")]((t=>{if(ws("0xa")!=t.type)return;const{data:n}=t;if(n){if(ws("0x11")==n[ws("0xc")]){const t=n[ws("0x16")][0];return{type:ws("0xb"),content:Qo(e,ws("0x15"),'"'+t+'"')}}return ws("0x17")==n.commandName?{type:ws("0xb"),content:Qo(e,"*Remove link*")}:void 0}}))}}const Fs=["todoListChecked","editor","numbered","end","ELEMENT_LIST_ITEM","*Change to:* %0","model","*Check item*","commands","checkChild","filter","execute","from","length","indentList","List","get","*Uncheck item*","nextSibling","checkTodoList","push","markBlockFormat","value","ListEditing","numberedList","*Outdent:* %0","isObject","slice","enableCommand","schema","registerDescriptionCallback","_selectedElements","formatBlock","document","formatInline","commandParams","todoList","createRange","add","_descriptionFactory","TrackChangesEditing","previousSibling","ELEMENT_TODO_LIST","ELEMENT_BULLETED_LIST","has","before","change","format","paragraph","plugins","outdentList","bulletedList","getAttribute","selection","listIndent","listItem","type","listType","createPositionAt","element","forceValue","TodoListEditing","todo","locale","commandName","getSelectedBlocks"];var Ds,Bs;Ds=Fs,Bs=319,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this[Ps("0xc")],e=t[Ps("0x8")];if(!t.plugins[Ps("0x37")](Ps("0x22")))return;const n=t[Ps("0x3c")][Ps("0x1b")](Ps("0x33")),o=t[Ps("0x3c")][Ps("0x37")](Ps("0x6"));function i(e){return()=>{const o=t[Ps("0x11")].document[Ps("0x40")],i=t.commands[Ps("0x1b")](e);if(i[Ps("0x21")])return void t[Ps("0x16")](Ps("0x3b"),{});const r=e[Ps("0x26")](0,-4),s=function(t,e,n){let o=Array[Ps("0x17")](t)[Ps("0x15")]((t=>{return e=t,(o=n)[Ps("0x14")](e.parent,Ps("0x0"))&&!o[Ps("0x25")](e);var e,o}));o=o.filter((t=>!t.is(Ps("0x4"),"listItem")||t[Ps("0x3f")](Ps("0x2"))!=e));const i=new Set;for(const t of o)t.is(Ps("0x4"),Ps("0x0"))?i[Ps("0x31")](js(t)):i.add(t);return Array[Ps("0x17")](i)}(o[Ps("0xa")](),r,t[Ps("0x11")][Ps("0x28")]);t[Ps("0x11")][Ps("0x39")]((()=>{for(const t of s)n[Ps("0x20")](t,{commandName:e,commandParams:[{forceValue:!i[Ps("0x21")]}],formatGroupId:"blockName"},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ps("0x17")](t);const n=e.findIndex((t=>Ps("0x0")!=t.name));return n>-1&&(e=e[Ps("0x26")](0,n)),e}(t.model[Ps("0x2c")][Ps("0x40")].getSelectedBlocks()),i=t.model[Ps("0x30")](t[Ps("0x11")][Ps("0x3")](o[0],Ps("0x38")),t[Ps("0x11")][Ps("0x3")](o[o[Ps("0x18")]-1],Ps("0xe")));t[Ps("0x11")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:Ps("0x41")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x1d")];for(;t&&t[Ps("0x3f")](Ps("0x41"))>n[Ps("0x3f")](Ps("0x41"));)e[Ps("0x31")](t),t=t.nextSibling}return Array[Ps("0x17")](e)}(o))}))}}n[Ps("0x27")]("numberedList",i(Ps("0x23"))),n[Ps("0x27")]("bulletedList",i("bulletedList")),o&&n[Ps("0x27")](Ps("0x2f"),i(Ps("0x2f"))),n[Ps("0x27")](Ps("0x19"),r(Ps("0x19"))),n.enableCommand(Ps("0x3d"),r(Ps("0x3d"))),o&&n[Ps("0x27")](Ps("0x1e"),(()=>{const e=t[Ps("0x13")].get(Ps("0x1e")),o=Array[Ps("0x17")](e[Ps("0x2a")]);o[Ps("0x15")]((t=>t[Ps("0x3f")](Ps("0xb"))!=e.value)),t[Ps("0x11")][Ps("0x39")]((()=>{for(const t of o)n[Ps("0x20")](t,{commandName:Ps("0x1e"),commandParams:[{forceValue:!e[Ps("0x21")]}]})}))})),n._descriptionFactory.registerElementLabel(Ps("0x0"),(t=>Qo(e,Ps("0xf"),t))),n[Ps("0x32")][Ps("0x29")]((t=>{if(Ps("0x2b")!=t[Ps("0x1")]&&Ps("0x2d")!=t.type)return;const{data:n}=t;if(n){if(Ps("0x23")==n.commandName||Ps("0x3e")==n[Ps("0x9")]||Ps("0x2f")==n.commandName)switch(n[Ps("0x9")].replace(Ps("0x1a"),"")){case"bulleted":return o(Qo(e,Ps("0x36")));case Ps("0xd"):return o(Qo(e,"ELEMENT_NUMBERED_LIST"));case Ps("0x7"):return o(Qo(e,Ps("0x35")))}if(Ps("0x19")==n[Ps("0x9")])return{type:Ps("0x3a"),content:Qo(e,"*Indent:* %0",Qo(e,"ELEMENT_LIST_ITEM"))};if(Ps("0x3d")==n.commandName)return{type:"format",content:Qo(e,Ps("0x24"),Qo(e,Ps("0xf")))};if(Ps("0x1e")==n[Ps("0x9")])return n[Ps("0x2e")][0][Ps("0x5")]?{type:Ps("0x3a"),content:Qo(e,Ps("0x12"))}:{type:Ps("0x3a"),content:Qo(e,Ps("0x1c"))}}function o(t){return{type:Ps("0x3a"),content:Qo(e,Ps("0x10"),t)}}}))}}function js(t){const e=t[Ps("0x3f")]("listIndent");if(0==e)return t;let n=t;for(;t[Ps("0x34")]&&t[Ps("0x34")].is("element",Ps("0x0"));){const o=t[Ps("0x34")][Ps("0x3f")](Ps("0x41"));if(o==e)n=t[Ps("0x34")];else if(o<e)break;t=t[Ps("0x34")]}return n}function Gs(t){const e=[];if(t.is("element",Ps("0x0"))&&t[Ps("0x3f")](Ps("0x41"))>0){let n=t[Ps("0x1d")];for(;n&&Ps("0x0")==n.name&&n[Ps("0x3f")](Ps("0x41"))==t[Ps("0x3f")](Ps("0x41"));)e[Ps("0x1f")](n),n=n[Ps("0x1d")]}return e}const Vs=["element","handleListStyleCommand","type","document","TrackChangesEditing","registerDescriptionCallback","listStyle","handleDescriptions","map","format","replace","push","_getSuggestionBlocks","has","listItem","startIndex","unshift","numbered","getLastPosition","editor","get","length","getSiblingNodes","selection","createRange","_LIST_","list.properties","markMultiRangeBlockFormat","handleListStartCommand","bind","*Format:* set start index to %0","createPositionAt","handleListReversedCommand","listStart","_getTranslationKeyForListStyle","*Format:* set order to regular","config","toUpperCase","afterInit","getAttribute","change","before","enableCommand","commandParams","model","filter","*Change to:* %0","reversed","_getSuggestionBlocksForListStyle","getSelectedBlocks","listType","ListPropertiesEditing","from","listReversed","plugins","getFirstPosition","getListTypeFromListStyleType","formatBlock","forward","commandName","backward","_descriptionFactory","parent","ListUtils"];var Hs,zs;Hs=Vs,zs=244,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x32")](){if(!this.editor[Ws("0x2")][Ws("0x19")](Ws("0x3f")))return;const t=this[Ws("0x1f")][Ws("0x30")][Ws("0x20")](Ws("0x26")),e=this.editor[Ws("0x2")].get("TrackChangesEditing");t.styles&&e[Ws("0x36")](Ws("0x12"),this[Ws("0xd")][Ws("0x29")](this)),t.reversed&&e.enableCommand(Ws("0x1"),this.handleListReversedCommand[Ws("0x29")](this)),t[Ws("0x1b")]&&e[Ws("0x36")](Ws("0x2d"),this.handleListStartCommand[Ws("0x29")](this)),e[Ws("0x9")][Ws("0x11")](this[Ws("0x13")][Ws("0x29")](this))}[Ws("0xd")](t,e={}){const n=this[Ws("0x1f")][Ws("0x2")].get("TrackChangesEditing"),o=this[Ws("0x3c")]();this[Ws("0x1f")].model[Ws("0x34")]((()=>{n[Ws("0x27")](o,{commandName:Ws("0x12"),commandParams:[{type:e[Ws("0xe")]}],formatGroupId:"listStyle"})}))}[Ws("0x2c")](t,e={}){const n=this.editor[Ws("0x2")][Ws("0x20")](Ws("0x10")),o=this[Ws("0x18")]((t=>t.is(Ws("0xc"),Ws("0x1a"))&&Ws("0x1d")===t[Ws("0x33")](Ws("0x3e"))));if(o[Ws("0x21")]<1)return;const i=o.map((t=>this[Ws("0x1f")][Ws("0x38")].createRange(this[Ws("0x1f")][Ws("0x38")].createPositionAt(t,Ws("0x35")),this[Ws("0x1f")].model[Ws("0x2b")](t,0))));this[Ws("0x1f")][Ws("0x38")][Ws("0x34")]((()=>{n[Ws("0x27")](i,{commandName:Ws("0x1"),commandParams:[{reversed:e[Ws("0x3b")]}],formatGroupId:Ws("0x1")})}))}[Ws("0x28")](t,e={}){const n=this.editor[Ws("0x2")][Ws("0x20")](Ws("0x10")),o=this._getSuggestionBlocks((t=>t.is(Ws("0xc"),Ws("0x1a"))&&Ws("0x1d")===t[Ws("0x33")](Ws("0x3e"))));if(o[Ws("0x21")]<1)return;const i=o[Ws("0x14")]((t=>this[Ws("0x1f")].model[Ws("0x24")](this[Ws("0x1f")].model.createPositionAt(t,Ws("0x35")),this[Ws("0x1f")][Ws("0x38")][Ws("0x2b")](t,0))));this[Ws("0x1f")][Ws("0x38")][Ws("0x34")]((()=>{n[Ws("0x27")](i,{commandName:Ws("0x2d"),commandParams:[{startIndex:e[Ws("0x1b")]}],formatGroupId:Ws("0x2d")})}))}handleDescriptions(t){if(Ws("0x5")!=t[Ws("0xe")]&&"formatInline"!=t[Ws("0xe")])return;const e=this[Ws("0x1f")].locale,{data:n}=t;if(!n)return;let o,i;switch(n[Ws("0x7")]){case Ws("0x12"):o=Ws("0x3a"),i={type:Ws("0x15"),content:Qo(e,o,Qo(e,this[Ws("0x2e")](n[Ws("0x37")][0][Ws("0xe")])))};break;case"listReversed":o=n[Ws("0x37")][0].reversed?"*Format:* set order to reversed":Ws("0x2f"),i={type:"format",content:Qo(e,o)};break;case Ws("0x2d"):o=Ws("0x2a"),i={type:Ws("0x15"),content:Qo(e,o,n[Ws("0x37")][0][Ws("0x1b")])}}return i}[Ws("0x3c")](){var t,e,n,o;const i=this[Ws("0x1f")][Ws("0x2")].get(Ws("0xb"));let r=Array[Ws("0x0")](this[Ws("0x1f")][Ws("0x38")].document[Ws("0x23")][Ws("0x3d")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0xc"),Ws("0x1a")))&&r[Ws("0x1c")](...i.getSiblingNodes(this[Ws("0x1f")][Ws("0x38")][Ws("0xf")][Ws("0x23")][Ws("0x3")](),Ws("0x8"))),(null===(e=r[r[Ws("0x21")]-1])||void 0===e?void 0:e.is("element",Ws("0x1a")))&&r[Ws("0x17")](...i[Ws("0x22")](this[Ws("0x1f")][Ws("0x38")][Ws("0xf")][Ws("0x23")][Ws("0x1e")](),Ws("0x6"))),r=[...new Set(r)],(null===(o=null===(n=this.editor[Ws("0x38")][Ws("0xf")][Ws("0x23")][Ws("0x3")]())||void 0===n?void 0:n[Ws("0xa")])||void 0===o?void 0:o.is("element",Ws("0x1a")))&&(r=r[Ws("0x39")]((t=>t.is(Ws("0xc"),"listItem")))),r}_getSuggestionBlocks(t){const e=this[Ws("0x1f")][Ws("0x2")][Ws("0x20")](Ws("0xb"));let n=Array.from(this[Ws("0x1f")][Ws("0x38")].document[Ws("0x23")][Ws("0x3d")]())[Ws("0x39")](t)[Ws("0x14")]((t=>{const n=this[Ws("0x1f")][Ws("0x38")][Ws("0x2b")](t,0);return[...e[Ws("0x22")](n,Ws("0x8")),...e.getSiblingNodes(n,Ws("0x6"))]})).flat();return n=[...new Set(n)],n}[Ws("0x2e")](t){return"ELEMENT_"+this[Ws("0x1f")][Ws("0x2")][Ws("0x20")](Ws("0xb"))[Ws("0x4")](t)[Ws("0x31")]()+Ws("0x25")+t[Ws("0x31")]()[Ws("0x16")](/-/g,"_")}}const qs=["dataDowncast","data","_descriptionFactory","has","MediaEmbedEditing","high","ELEMENT_MEDIA","elementToElement","enableCommand","get","downcastDispatcher","for","div","media","registerElementLabel","mediaEmbed","conversion","plugins","attribute:url:media","locale","showSuggestionHighlights"];var Xs,$s;Xs=qs,$s=432,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{afterInit(){const t=this.editor;if(!t[Zs("0x5")][Zs("0xc")](Zs("0xd")))return;const e=t.plugins[Zs("0x12")]("TrackChangesEditing"),n=t[Zs("0x7")];e[Zs("0x11")](Zs("0x3")),e[Zs("0xb")][Zs("0x2")](Zs("0x1"),(t=>Qo(n,Zs("0xf"),t))),t[Zs("0x4")][Zs("0x14")](Zs("0x9"))[Zs("0x10")]({model:Zs("0x1"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x8")])return e.createEmptyElement(Zs("0x0"))},converterPriority:"high"}),t[Zs("0xa")][Zs("0x13")].on(Zs("0x6"),((t,e,n)=>{n.options[Zs("0x8")]&&t.stop()}),{priority:Zs("0xe")})}}const Js=["editor","mention","TrackChangesEditing","get","afterInit","plugins","MentionEditing","enableCommand"];var Qs,tx;Qs=Js,tx=220,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x4")];t[ex("0x1")].has(ex("0x2"))&&t.plugins[ex("0x7")](ex("0x6"))[ex("0x3")](ex("0x5"))}}const ox=["ELEMENT_PAGE_BREAK","locale","PageBreakEditing","enableCommand","_descriptionFactory","TrackChangesEditing","editor","has","get","afterInit","plugins","pageBreak","registerElementLabel"];var ix,rx;ix=ox,rx=420,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x5")](){const t=this[sx("0x2")];if(!t[sx("0x6")][sx("0x3")](sx("0xb")))return;t[sx("0x6")].get("TrackChangesEditing")[sx("0xc")]("pageBreak");const e=t[sx("0x6")][sx("0x4")](sx("0x1")),n=t[sx("0xa")];e[sx("0x0")][sx("0x8")](sx("0x7"),(t=>Qo(n,sx("0x9"),t)))}}const ax=["insertion","name","get","ELEMENT_PARAGRAPH","$text","has","data","registerDescriptionCallback","editing","start","options","_descriptionFactory","markerRange","end","ck-suggestion-marker--active","insertParagraph","TrackChangesEditing","addClass","insert","commandName","isBlock","plugins","bindElementToMarker","writer","ck-suggestion-marker-split","registerElementLabel","getFirstRange","_registerLegacyDescription","isTouching","isLimit","includes","getItemLabel","mapper","model","editor","locale","type","formatBlock","schema","consume","paragraph","markerName","downcastDispatcher","addMarker:suggestion:insertion","nodeAfter","span","checkChild","Paragraph","highest"];var cx,lx;cx=ax,lx=417,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this.editor;if(!t[ux("0x2d")][ux("0x1d")](ux("0x16")))return;const e=t[ux("0xa")],n=t[ux("0x2d")][ux("0x1a")]("TrackChangesEditing");n[ux("0x23")][ux("0x0")](ux("0xf"),(t=>Qo(e,ux("0x1b"),t))),n._enableDefaultAttributesIntegration("paragraph"),n.enableCommand(ux("0x27")),t[ux("0x20")][ux("0x11")].on(ux("0x12"),gx(t),{priority:ux("0x17")}),t[ux("0x1e")][ux("0x11")].on(ux("0x12"),((e,n,o)=>{o[ux("0x22")].showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x17")});const o=n[ux("0x23")];o[ux("0x1f")]((n=>{if("insertion"!==n.type)return;const{start:i,end:r}=n[ux("0x1")]();if(!i[ux("0x3")](r)||!i[ux("0x13")])return;const s=t.model[ux("0xd")],x=i[ux("0x13")];return s.isBlock(x)&&!s[ux("0x4")](x)&&s[ux("0x15")](x,ux("0x1c"))?{type:ux("0x18"),content:Qo(e,"*Insert:* %0",o[ux("0x6")](x,1))}:void 0})),this[ux("0x2")]()}[ux("0x2")](){const t=this[ux("0x9")],e=t[ux("0xa")];t[ux("0x2d")][ux("0x1a")]("TrackChangesEditing")[ux("0x23")][ux("0x1f")]((t=>{if(ux("0xc")!=t[ux("0xb")])return;const{data:n}=t;return n&&ux("0xf")==n[ux("0x2b")]?{type:"format",content:Qo(e,"*Change to:* %0",Qo(e,ux("0x1b")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins.get(ux("0x28")),s=o.markerRange[ux("0x21")],x=o[ux("0x24")][ux("0x25")],a=t[ux("0x8")].schema;if(!s[ux("0x3")](x)||!s.nodeAfter)return;const c=s[ux("0x13")];if(a[ux("0x2c")](c)&&!a[ux("0x4")](c)&&a.checkChild(c,ux("0x1c"))){if(!i.consumable[ux("0xe")](o[ux("0x24")],n[ux("0x19")]))return;const t=i[ux("0x2f")].createUIElement(ux("0x14"),{class:ux("0x30")}),s=i[ux("0x7")].toViewPosition(x);e&&r.activeMarkers[ux("0x5")](o[ux("0x10")])&&i.writer[ux("0x29")](ux("0x26"),t),i.writer[ux("0x2a")](s,t),i[ux("0x7")][ux("0x2e")](t,o.markerName)}}}const fx=["removeFormat","plugins","registerDescriptionCallback","commandName","TrackChangesEditing","_registerLegacyDescription","_descriptionFactory","locale","editor","_enableDefaultAttributesIntegration","get","type","*Remove all formatting*","format","afterInit"];var mx,hx;mx=fx,hx=391,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0xd")](){const t=this[px("0x7")];t[px("0x0")].has("RemoveFormatEditing")&&(t[px("0x0")][px("0x9")](px("0x3"))[px("0x8")](px("0xe")),this._registerLegacyDescription())}[px("0x4")](){const t=this.editor;t[px("0x0")][px("0x9")](px("0x3"))[px("0x5")][px("0x1")]((e=>{if("formatBlock"!=e[px("0xa")]&&"formatInline"!=e[px("0xa")])return;const{data:n}=e;return n&&"removeFormat"==n[px("0x2")]?{type:px("0xc"),content:Qo(t[px("0x6")],px("0xb"))}:void 0}))}}const Ex=["goToNextRestrictedEditingException","acceptSelectedSuggestions","has","acceptSuggestion","enableCommand","TrackChangesEditing","plugins","editor","goToPreviousRestrictedEditingException","discardSuggestion","get","RestrictedEditingModeEditing"];var _x,Tx;_x=Ex,Tx=298,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{afterInit(){const t=this[yx("0x9")];if(!t[yx("0x8")][yx("0x4")](yx("0x1")))return;const e=t[yx("0x8")][yx("0x0")](yx("0x7"));e.enableCommand(yx("0xa")),e.enableCommand(yx("0x2"));const n=t[yx("0x8")][yx("0x0")]("RestrictedEditingModeEditing");n[yx("0x6")]("trackChanges"),n[yx("0x6")](yx("0x5")),n[yx("0x6")](yx("0xb")),n[yx("0x6")]("acceptAllSuggestions"),n[yx("0x6")]("discardAllSuggestions"),n[yx("0x6")](yx("0x3")),n[yx("0x6")]("discardSelectedSuggestions")}}const Ax=["consumable","markerRange","addMarker:suggestion:insertion","enableCommand","locale","markerName","editing","model","activeMarkers","getItems","mapper","ck-suggestion-marker-","get","element","downcastDispatcher","createPositionBefore","addMarker:suggestion:deletion","addClass","name","ELEMENT_LINE_BREAK","init","TrackChangesEditing","softBreak","high","test","requires","editor","deletion","addMarker:suggestion","data","span","registerElementLabel","shiftEnter","writer","merge","split","plugins","ck-suggestion-marker--active","_descriptionFactory","options","insert"];var kx,Ix;kx=Ax,Ix=137,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class vx extends t.Plugin{static get[Sx("0xb")](){return[ur.ShiftEnter]}[Sx("0x6")](){const t=this[Sx("0xc")],e=t[Sx("0x16")][Sx("0x27")](Sx("0x7"));e[Sx("0x1e")](Sx("0x12")),t.editing[Sx("0x0")].on(Sx("0x1d"),Rx(t),{priority:Sx("0x9")}),t[Sx("0x21")].downcastDispatcher.on(Sx("0x2"),Rx(t),{priority:Sx("0x9")}),t[Sx("0xf")].downcastDispatcher.on(Sx("0xe"),((e,n,o)=>{o[Sx("0x19")].showSuggestionHighlights&&Rx(t,{showActiveMarker:!1})(e,n,o)})),e[Sx("0x18")][Sx("0x11")](Sx("0x8"),(e=>Qo(t[Sx("0x1f")],Sx("0x5"),e)))}}function Rx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[Sx("0x27")](Sx("0x7"));if(!i[Sx("0x1b")][Sx("0xa")](o.markerRange,n[Sx("0x4")]))return;const s=t[Sx("0x22")];for(const t of o[Sx("0x1c")][Sx("0x24")]()){if(!t.is(Sx("0x28"),Sx("0x8")))continue;const n=Sx("0xd")==o.markerName[Sx("0x15")](":")[1]?Sx("0x14"):Sx("0x15"),x=i[Sx("0x13")].createUIElement(Sx("0x10"),{class:Sx("0x26")+n}),a=i[Sx("0x25")].toViewPosition(s[Sx("0x1")](t));e&&r[Sx("0x23")].includes(o[Sx("0x20")])&&i[Sx("0x13")][Sx("0x3")](Sx("0x17"),x),i.writer[Sx("0x1a")](a,x),i[Sx("0x25")].bindElementToMarker(x,o[Sx("0x20")])}}}const Nx=["FORMAT_RESTRICTED_DISABLED","plugins","get","restrictedEditingException","from","markInlineFormat","getRanges","afterInit","enableCommand","commands","FORMAT_RESTRICTED_ENABLED","type","document","selection","isCollapsed","has","forceValue","TrackChangesEditing","registerDescriptionCallback","_descriptionFactory","formatInline","locale","value","editor"];var Lx,Mx;Lx=Nx,Mx=139,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0xc")](){const t=this[wx("0x4")],e=t.model,n=t[wx("0x2")];if(!t[wx("0x6")][wx("0x14")]("StandardEditingModeEditing"))return;const o=t.plugins.get(wx("0x16")),i=wx("0x8"),r=t[wx("0xe")][wx("0x7")](i);o[wx("0xd")](i,((t,n={})=>{const s=e[wx("0x11")][wx("0x12")];if(s[wx("0x13")])return void t(n);const x=void 0!==n[wx("0x15")]?n[wx("0x15")]:!r[wx("0x3")];e.change((()=>{const t=Array[wx("0x9")](s[wx("0xb")]());for(const n of t){const t=x?[n]:Xi(i,n,e);for(const e of t)o[wx("0xa")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[wx("0x0")][wx("0x17")]((t=>{if("formatBlock"!=t[wx("0x10")]&&wx("0x1")!=t[wx("0x10")])return;const{data:e}=t;return e&&e.commandName==i?e.commandParams[0][wx("0x15")]?{type:"format",content:Qo(n,wx("0xf"))}:{type:"format",content:Qo(n,wx("0x5"))}:void 0}))}}const Fx=["styleName","_registerLegacyDescription","StyleUtils","afterInit","ghsAttributes","commandParams","toLowerCase","add","locale","inline","TrackChangesEditing","format","registerAttributeLabel","FORMAT_STYLE","type","getGhsAttributeNameForElement","plugins","_registerBlockAttribute","_descriptionFactory","get","GeneralHtmlSupport","block","Style","*Set format:* %0","commandName","has","config","DataSchema","style","_enableDefaultAttributesIntegration","normalizeConfig","_registerInlineAttribute","element"];var Dx,Bx;Dx=Fx,Bx=381,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x12")](){const t=this.editor;if(!t[Px("0x1f")].has(Px("0x4"))||!t[Px("0x1f")][Px("0x7")](Px("0x9")))return;const e=t[Px("0x1f")][Px("0x1")]("TrackChangesEditing"),n=t[Px("0x17")],o=t[Px("0x8")].get(Px("0xa")),i=t.plugins[Px("0x1")](Px("0x2")),r=t.plugins[Px("0x1")](Px("0x11"))[Px("0xc")](t[Px("0x1f")][Px("0x1")](Px("0x9")),o.definitions);e[Px("0xb")](Px("0xa"));const s=new Set;for(const t of r[Px("0x3")]){const e=i[Px("0x1e")](t[Px("0xe")]);s[Px("0x16")](e)}const x=new Set;for(const t of r[Px("0x18")]){const e=i.getGhsAttributeNameForElement(t.element);x[Px("0x16")](e);for(const e of t[Px("0x13")])x[Px("0x16")](e)}for(const t of s)e[Px("0x20")](t),e._descriptionFactory[Px("0x1b")](t,Qo(n,Px("0x1c")));for(const t of x)e[Px("0xd")](t),e[Px("0x0")][Px("0x1b")](t,Qo(n,"FORMAT_STYLE"));this[Px("0x10")]()}[Px("0x10")](){const t=this.editor,e=t[Px("0x17")];t[Px("0x1f")].get(Px("0x19"))[Px("0x0")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Px("0x1d")]&&"formatInline"!=t[Px("0x1d")])return;const{data:n}=t;return n&&"style"===n[Px("0x6")]?n[Px("0x14")][0].forceValue?{type:Px("0x1a"),content:Qo(e,Px("0x5"),n[Px("0x14")][0][Px("0xf")][Px("0x15")]())}:{type:"format",content:Qo(e,"*Remove format:* %0",n[Px("0x14")][0][Px("0xf")][Px("0x15")]())}:void 0}))}}const jx=["TableUtils","above","locale","suggestion","selection","isArray","startsWith","order","isIntersectingWithRange","element","span","createTableWalker","document","getColumnIndexes","_tablePostFixingSubtypes","substr","*Insert:* %0","createPositionAt","deletion","tableColumn","subType","every","addRange","last","_setupColumnsRowsFixing","maxColumn","from","getAttribute","start","TrackChangesEditing","rowspan","ELEMENT_TABLE_WITH_TEXT","colspan","_tableSuggestions","removeClass","ELEMENT_TABLE_COLUMN_WITH_TEXT","refresh","insertTableRowBelow","removeTableColumn","getChangedMarkers","registerPostFixer","rootName","tableRow","change","has","writer","fromRange","getContainedElement","getRowIndexes","toLowerCase","type","downcastDispatcher","_splitMarkerName","get","insert","$graveyard","forceValue","TableEditing","add","registerDescriptionCallback","table","isEqual","map","createRangeIn","setSelection","tableCell","*Remove:* %0","end","classes","MAX_SAFE_INTEGER","cell","batch","enableCommand","selectTableRow","low","removeTableRow","findAncestor","insertTableRowAbove","getSuggestion","filter","insertTableColumnRight","ELEMENT_TABLE_ROW","getItems","ELEMENT_TABLE","first","minColumn","markMultiRangeInsertion","maxRow","$textProxy","some","addClass","discard","data","join","ELEMENT_TABLE_ROW_WITH_TEXT","includes","max","min","showSuggestionHighlights","_suggestionFactory","plugins","accept","getRanges","nodeAfter","left","ELEMENT_TABLE_COLUMN","push","insertion","_descriptionFactory","editor","name","_acceptFormatSuggestionCallbackFactory","options","hasAttribute","root","enqueueChange","differ","change:data","isInContent","execute","model","getSelectionAffectedTableCells","registerCustomCallback","getChanges","createRangeOn","detach","selectTableColumn","addMarker:suggestion","tablePaste","getChildren","nodeBefore","length","_getCoordsForCells","commands","_getSuggestionCoords","mapper","position","afterInit"];var Gx,Vx;Gx=jx,Vx=283,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x7")]=[Hx("0x23"),Hx("0xc")],this._tableSuggestions=new Set}[Hx("0x82")](){const t=this.editor,e=t[Hx("0x71")][Hx("0x5")][Hx("0x87")];if(!t[Hx("0x5d")][Hx("0x25")](Hx("0x32")))return;const n=t[Hx("0x85")],o=t.plugins[Hx("0x2e")](Hx("0x16")),i=t[Hx("0x5d")][Hx("0x2e")]("TableUtils");o[Hx("0x65")].registerElementLabel(Hx("0x35"),(t=>Qo(n,Hx("0x4c"),t))),this._setupColumnsRowsFixing(),o[Hx("0x41")]("insertTable"),o[Hx("0x41")](Hx("0x42")),o[Hx("0x41")](Hx("0x77"));for(const n of[Hx("0x46"),Hx("0x1e")]){const r=t[Hx("0x7e")][Hx("0x2e")](n);o[Hx("0x41")](n,(n=>{t[Hx("0x71")][Hx("0x24")]((t=>{n();const s=Hx("0x84")===r[Hx("0x0")],x=i[Hx("0x72")](e),a=i.getRowIndexes(x),c=s?a.first-1:a[Hx("0x10")]+1,l=x[0][Hx("0x45")](Hx("0x35")),u=i[Hx("0x4")](l,{startRow:c,endRow:c}),d=Array[Hx("0x13")](u)[Hx("0x37")]((e=>t[Hx("0x75")](e[Hx("0x3f")])));o.markMultiRangeInsertion(d,Hx("0x23"))}))}))}for(const n of["insertTableColumnLeft",Hx("0x49")]){const r=t[Hx("0x7e")][Hx("0x2e")](n);o[Hx("0x41")](n,(n=>{t.model[Hx("0x24")]((t=>{n();const s=Hx("0x61")===r[Hx("0x0")],x=i[Hx("0x72")](e),a=i.getColumnIndexes(x),c=s?a[Hx("0x4d")]-1:a[Hx("0x10")]+1,l=x[0][Hx("0x45")](Hx("0x35")),u=i[Hx("0x4")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x13")](u)[Hx("0x37")]((e=>t[Hx("0x75")](e[Hx("0x3f")])));o[Hx("0x4f")](d,Hx("0xc"))}))}))}for(const n of[Hx("0x44"),Hx("0x1f")]){const r=n[Hx("0x8")](11),s=r[Hx("0x2a")](),x=s[Hx("0x8")](0,3)+Hx("0x3"),a=Hx("0x35")+r,c=Hx("0x5a")+r,l="max"+r;o[Hx("0x41")](n,(()=>{t.model[Hx("0x24")]((t=>{const r=i[Hx("0x72")](e),u=r[0].findAncestor(Hx("0x35"));let d;if(Hx("0x44")==n){const t=i[Hx("0x29")](r);d={startRow:t[Hx("0x4d")],endRow:t[Hx("0x10")],includeAllSlots:!0}}else{const t=i[Hx("0x6")](r);d={startColumn:t[Hx("0x4d")],endColumn:t[Hx("0x10")],includeAllSlots:!0}}const g=i.createTableWalker(u,d),f=Array[Hx("0x13")](g)[Hx("0x37")]((({cell:t})=>t)),m=Wx(f[Hx("0x48")]((t=>t[Hx("0x6a")](x)))),h=Wx(f[Hx("0x48")]((t=>!t[Hx("0x6a")](x))))[Hx("0x37")]((e=>t[Hx("0x75")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Hx("0x23")==p.subType||Hx("0xc")==p[Hx("0xd")])){const e=this[Hx("0x7f")](p);for(const n of m){const o=t[Hx("0x75")](n),r=i.getCellLocation(n),a=n[Hx("0x14")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array[Hx("0x13")](e[Hx("0x5f")]()).map((t=>s.LiveRange[Hx("0x27")](t)));t[Hx("0x71")][Hx("0x24")]((e=>{const i=e[Hx("0x40")];n=n[Hx("0x48")]((t=>Hx("0x30")!=t[Hx("0x6b")][Hx("0x22")])),e[Hx("0x39")](n),t[Hx("0x7e")].get(Hx("0x44")).refresh(),t.execute(Hx("0x44"),{forceDefaultExecution:!0}),t[Hx("0x71")].enqueueChange((()=>{t[Hx("0x71")][Hx("0x6c")](i,(t=>{const e=o[Hx("0x48")]((t=>"$graveyard"!=t[Hx("0x6b")].rootName));e[Hx("0x7c")]>0&&t[Hx("0x39")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Hx("0x71")][Hx("0x24")]((o=>{const i=Array[Hx("0x13")](e.getRanges())[Hx("0x37")]((t=>s.LiveRange[Hx("0x27")](t))),r=[];for(const t of n)for(const e of t[Hx("0x4b")]({shallow:!0}))r[Hx("0x63")](e);for(const e of r)Hx("0x30")!=e.root[Hx("0x22")]&&(o.setSelection(o[Hx("0xa")](e,0)),t[Hx("0x7e")][Hx("0x2e")](Hx("0x1f"))[Hx("0x1d")](),t[Hx("0x70")]("removeTableColumn",{forceDefaultExecution:!0}));const x=i[Hx("0x48")]((t=>"$graveyard"!=t[Hx("0x6b")][Hx("0x22")]));x.length>0&&o[Hx("0x39")](x);for(const t of i)t[Hx("0x76")]()}))}function c(t,e){return e[Hx("0xe")]((e=>t[Hx("0x52")]((t=>t[Hx("0x3c")][Hx("0x36")](e[Hx("0x15")])||e[Hx("0x3c")][Hx("0x36")](t[Hx("0x15")])))))}function l(t,e){return t[Hx("0x52")]((t=>e[Hx("0x52")]((e=>t.end.isTouching(e[Hx("0x15")])))))}t[Hx("0x55")][Hx("0x2c")].on(Hx("0x78"),((t,e,n)=>{if(!n[Hx("0x69")][Hx("0x5b")])return;const o=e.item;if(!o)return;const i=n[Hx("0x80")].toViewElement(o);function r(t){return Array[Hx("0x88")](t)?t:[t]}i&&"tableCell"===o[Hx("0x67")]&&(0,x.setHighlightHandling)(i,n[Hx("0x26")],((t,e,n)=>n[Hx("0x53")](r(e[Hx("0x3d")]),t)),((t,e,n)=>n[Hx("0x1b")](r(e.classes),t)))}),{priority:"highest"}),o[Hx("0x65")][Hx("0x34")]((t=>{if(Hx("0x64")!=t[Hx("0x2b")]&&"deletion"!=t[Hx("0x2b")])return;const e=t[Hx("0x28")]();if(null!=e&&e.is(Hx("0x2"),Hx("0x35"))){if(Hx("0x64")==t[Hx("0x2b")]){const e=t.getItems()[Hx("0x48")]((t=>t.is(Hx("0x51"))))[Hx("0x37")]((t=>t[Hx("0x55")]));if(e[Hx("0x7c")])return{type:Hx("0x64"),content:Qo(n,Hx("0x9"),Qo(n,Hx("0x18"),'"'+e.join(" ")+'"'))}}if("deletion"==t[Hx("0x2b")]){const e=t[Hx("0x4b")]()[Hx("0x48")]((t=>t.is(Hx("0x51"))))[Hx("0x37")]((t=>t[Hx("0x55")]));if(e.length)return{type:Hx("0xb"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}}})),o._descriptionFactory[Hx("0x34")]((t=>{if(Hx("0x23")==t[Hx("0xd")]){const e=t[Hx("0x4b")]()[Hx("0x48")]((t=>t.is(Hx("0x51")))).map((t=>t.data)),o=this[Hx("0x7f")](t),i=o[Hx("0x50")]-o.minRow+1;if(Hx("0x64")==t.type)return e.length?{type:"insertion",content:Qo(n,Hx("0x9"),Qo(n,Hx("0x57"),[i,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Qo(n,Hx("0x9"),Qo(n,Hx("0x4a"),i))};if(Hx("0xb")==t[Hx("0x2b")])return e[Hx("0x7c")]?{type:Hx("0xb"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x57"),[i,'"'+e[Hx("0x56")](" ")+'"']))}:{type:Hx("0xb"),content:Qo(n,Hx("0x3b"),Qo(n,Hx("0x4a"),i))}}if("tableColumn"==t[Hx("0xd")]){const e=t[Hx("0x4b")]()[Hx("0x48")]((t=>t.is(Hx("0x51"))))[Hx("0x37")]((t=>t[Hx("0x55")])),o=this._getSuggestionCoords(t),i=o[Hx("0x12")]-o[Hx("0x4e")]+1;if(Hx("0x64")==t[Hx("0x2b")])return e[Hx("0x7c")]?{type:Hx("0x64"),content:Qo(n,Hx("0x9"),Qo(n,Hx("0x1c"),[i,'"'+e[Hx("0x56")](" ")+'"']))}:{type:Hx("0x64"),content:Qo(n,Hx("0x9"),Qo(n,Hx("0x62"),i))};if(Hx("0xb")==t.type)return e[Hx("0x7c")]?{type:"deletion",content:Qo(n,Hx("0x3b"),Qo(n,Hx("0x1c"),[i,'"'+e[Hx("0x56")](" ")+'"']))}:{type:Hx("0xb"),content:Qo(n,Hx("0x3b"),Qo(n,Hx("0x62"),i))}}})),o[Hx("0x5c")][Hx("0x73")]("insertion",Hx("0x23"),Hx("0x54"),r),o[Hx("0x5c")][Hx("0x73")]("deletion","tableRow","accept",r),o[Hx("0x5c")][Hx("0x73")](Hx("0x64"),Hx("0xc"),"discard",a),o._suggestionFactory[Hx("0x73")]("deletion",Hx("0xc"),Hx("0x5e"),a),o[Hx("0x5c")].registerCustomCallback(Hx("0x64"),Hx("0xc"),"join",c),o._suggestionFactory[Hx("0x73")]("deletion",Hx("0xc"),Hx("0x56"),c),o[Hx("0x5c")][Hx("0x73")](Hx("0x64"),"tableRow",Hx("0x56"),l),o[Hx("0x5c")].registerCustomCallback(Hx("0xb"),Hx("0x23"),Hx("0x56"),l)}[Hx("0x68")](){const t=this[Hx("0x66")],e=t[Hx("0x71")][Hx("0x5")][Hx("0x87")];return(n,o)=>{t[Hx("0x71")][Hx("0x24")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0][Hx("0x3c")][Hx("0x7b")];x&&x[0]&&!1===x[0][Hx("0x31")]&&(a=n[0][Hx("0x15")][Hx("0x60")]);const c=i[Hx("0x38")](a);if(Hx("0x30")==c[Hx("0x6b")][Hx("0x22")])return;const l=Array[Hx("0x13")](e[Hx("0x5f")]())[Hx("0x37")]((t=>s.LiveRange[Hx("0x27")](t)));i.setSelection(c),t[Hx("0x7e")][Hx("0x2e")](r)[Hx("0x1d")](),x[Hx("0x63")]({forceDefaultExecution:!0}),t[Hx("0x70")](r,...x);const u=l[Hx("0x48")]((t=>"$graveyard"!=t[Hx("0x6b")][Hx("0x22")]));u[Hx("0x7c")]>0&&i[Hx("0x39")](u);for(const t of l)t[Hx("0x76")]()}))}}[Hx("0x7d")](t){const e=this[Hx("0x66")][Hx("0x5d")].get(Hx("0x83"));let n=Number[Hx("0x3e")],o=Number.MIN_SAFE_INTEGER,i=Number[Hx("0x3e")],r=Number.MIN_SAFE_INTEGER;for(const s of t){if("$graveyard"==s[Hx("0x6b")][Hx("0x22")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s[Hx("0x6a")](Hx("0x17"))?s.getAttribute(Hx("0x17"))-1:0,c=s.hasAttribute("colspan")?s[Hx("0x14")](Hx("0x19"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Hx("0x11")](){const t=this[Hx("0x66")],e=t[Hx("0x5d")][Hx("0x2e")](Hx("0x16")),n=t.plugins.get(Hx("0x83"));t[Hx("0x71")][Hx("0x5")].on(Hx("0x6e"),(()=>{const n=Array.from(t[Hx("0x71")][Hx("0x5")][Hx("0x6d")][Hx("0x20")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e[Hx("0x2d")](t);if(Hx("0x86")!=n)continue;if(null!=o.oldRange)continue;const s=e[Hx("0x47")](i);this[Hx("0x7")][Hx("0x58")](r)&&this[Hx("0x1a")][Hx("0x33")](s)}}),{priority:Hx("0x43")});const o=(t,e)=>{let o=!1;const i=e.createRangeOn(t),r=t.findAncestor(Hx("0x35")),s=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[Hx("0xd")],x=n[Hx("0x89")](Hx("0x79")),a=n[Hx("0x8")](x?10:5),c=a[Hx("0x2a")](),l=c.substr(0,3)+Hx("0x3"),u=Hx("0x5a")+a,d=Hx("0x59")+a;if(!e[Hx("0x6f")])continue;if(r!=e.getFirstRange().start[Hx("0x45")]("table"))continue;if(e[Hx("0x1")](i))continue;const g=t[Hx("0x6a")](l)?t[Hx("0x14")](l)-1:0,f=this[Hx("0x7f")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0xf")](i),o=!0)}return o};t.model.document[Hx("0x21")]((e=>{let n=!1;for(const i of t[Hx("0x71")][Hx("0x5")][Hx("0x6d")][Hx("0x74")]())if(Hx("0x2f")==i[Hx("0x2b")])if(Hx("0x23")==i[Hx("0x67")])for(const t of i[Hx("0x81")][Hx("0x60")][Hx("0x7a")]())n=n||o(t,e);else Hx("0x3a")==i[Hx("0x67")]&&(n=n||o(i[Hx("0x81")].nodeAfter,e));return n}))}[Hx("0x7f")](t){return this[Hx("0x7d")](t[Hx("0x5f")]().map((t=>t[Hx("0x15")][Hx("0x60")])))}}function Wx(t){return Array[Hx("0x13")](new Set(t).values())}const Kx=["TrackChangesEditing","refresh","createTableWalker","direction","map","document","selection","registerCustomCallback","mergeTableCells","requires","_areMergableCells","splitTableCellHorizontally","execute","TableEditing","type","plugins","forceDefaultExecution","stop","*Split cell:* vertically","insertion","afterInit","$graveyard","getSelectionAffectedTableCells","filter","element","detach","change","getSuggestions","set:isEnabled","_areSelectedCellsMergable","getRanges","_descriptionFactory","*Merge cells*","formatInline","setSelection","mergeTableCellLeft","value","fromRange","getFirstPosition","add","deletion","return","createRangeOn","accept","registerDescriptionCallback","push","_suggestionFactory","model","editor","_isForcedDefaultExecutionBlock","rootName","_tablePostFixingSubtypes","mergeTableCellUp","mergeTableCellDown","author","from","subType","TableUtils","tableCell","getAncestors","formatBlock","markMultiRangeBlockFormat","isInContent","low","root","find","enableCommand","format","length","table","containsRange","cell","size","mergeTableCellRight","get","has","markBlockFormat","splitTableCellVertically","commands","highest","getCellLocation"];var qx,Xx;qx=Kx,Xx=104,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x43")](){return[zx]}[$x("0x4e")](){const t=this[$x("0x19")],e=t.model[$x("0x3f")].selection,n=t.locale;if(!t[$x("0x49")][$x("0x34")]($x("0x47")))return;const o=t.plugins.get($x("0x3a")),i=t[$x("0x49")].get($x("0x22")),r=t[$x("0x49")].get(zx);r[$x("0x1c")][$x("0x16")]("mergeTableCells"),o[$x("0x2b")]($x("0x42"),(()=>{const e=i.getSelectionAffectedTableCells(t[$x("0x18")].document[$x("0x40")]);t[$x("0x18")][$x("0x3")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:$x("0x42"),commandParams:[]},[],$x("0x42"))}))})),t.commands[$x("0x33")]($x("0x42")).on($x("0x46"),((e,n)=>{t[$x("0x37")][$x("0x33")]("trackChanges")[$x("0xd")]&&(n.length>0&&n[n.length-1]&&n[n.length-1][$x("0x4a")]||o[$x("0x1a")]||this[$x("0x6")]()||e[$x("0x4b")]())}),{priority:$x("0x38")});for(const e of[$x("0x1d"),"mergeTableCellRight",$x("0x1e"),$x("0xc")]){const n=t[$x("0x37")][$x("0x33")](e);o[$x("0x2b")](e,(()=>{const e=t.model[$x("0x3f")].selection[$x("0xf")]()[$x("0x24")]().find((t=>t.is($x("0x1"),$x("0x23")))),i=n[$x("0xd")];t[$x("0x18")].change((()=>{o[$x("0x26")]([e,i],{commandName:$x("0x42"),commandParams:[]},[],$x("0x42"))}))}))}for(const e of[$x("0x36"),"splitTableCellHorizontally"]){const n=t.commands[$x("0x33")](e);o[$x("0x2b")](e,(()=>{const r=i[$x("0x50")](t.model.document[$x("0x40")])[0],s=r.findAncestor($x("0x2e")),{column:x,row:a}=i[$x("0x39")](r);let c=[];if("horizontally"==n[$x("0x3d")]){const t=i[$x("0x3c")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x20")](t)[$x("0x3e")]((t=>t[$x("0x30")]))}else{const t=i[$x("0x3c")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x20")](t)[$x("0x3e")]((t=>t[$x("0x30")]))}t[$x("0x18")][$x("0x3")]((t=>{o[$x("0x35")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x8")][$x("0x15")]((t=>{if("formatBlock"!=t[$x("0x48")]&&"formatInline"!=t[$x("0x48")])return;const{data:e}=t;return e&&$x("0x42")==e.commandName?{type:$x("0x2c"),content:Qo(n,$x("0x9"))}:void 0})),o[$x("0x8")][$x("0x15")]((t=>{if($x("0x25")!=t[$x("0x48")]&&$x("0xa")!=t[$x("0x48")])return;const{data:e}=t;return e?$x("0x36")==e.commandName?{type:$x("0x2c"),content:Qo(n,$x("0x4c"))}:$x("0x45")==e.commandName?{type:$x("0x2c"),content:Qo(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp",$x("0x32"),$x("0x1e"),$x("0xc")])o[$x("0x17")][$x("0x41")]($x("0x25"),t,$x("0x14"),x);for(const t of[$x("0x36"),"splitTableCellHorizontally"])o[$x("0x17")][$x("0x41")]($x("0x25"),t,$x("0x14"),x);o._suggestionFactory.registerCustomCallback($x("0x25"),$x("0x42"),$x("0x14"),(n=>{t[$x("0x18")].change((o=>{const i=Array[$x("0x20")](e[$x("0x7")]())[$x("0x3e")]((t=>s.LiveRange[$x("0xe")](t)));o[$x("0xb")](n),t[$x("0x37")][$x("0x33")]($x("0x42"))[$x("0x3b")](),t.execute($x("0x42"),{forceDefaultExecution:!0});const r=i[$x("0x0")]((t=>$x("0x4f")!=t[$x("0x29")][$x("0x1b")]));r[$x("0x2d")]>0&&o[$x("0xb")](r);for(const t of i)t[$x("0x2")]()}))}));for(const e of[$x("0x1d"),$x("0x1e"),$x("0xc"),"mergeTableCellRight"]){const n=t[$x("0x37")][$x("0x33")](e);n.on($x("0x5"),((e,o,i)=>{if(i){const o=t[$x("0x18")][$x("0x3f")].selection.getFirstPosition()[$x("0x24")]()[$x("0x2a")]((t=>t.is($x("0x1"),"tableCell")));this[$x("0x44")](n[$x("0xd")],o)||(e[$x("0x12")]=!1,e[$x("0x4b")]())}}),{priority:$x("0x28")})}}[$x("0x6")](){const t=this[$x("0x19")][$x("0x37")][$x("0x33")]($x("0x42")),e=this.editor.plugins[$x("0x33")]($x("0x22"));if(!t.isEnabled)return!1;const n=e[$x("0x50")](this[$x("0x19")][$x("0x18")][$x("0x3f")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}_areMergableCells(t,e){const n=this.editor.plugins[$x("0x33")]($x("0x3a")),o=this.editor[$x("0x18")][$x("0x13")](t),i=this[$x("0x19")][$x("0x18")][$x("0x13")](e),r=new Set,s=new Set;for(const t of n[$x("0x4")]())if(($x("0x4d")==t.type||$x("0x11")==t[$x("0x48")]||$x("0x42")==t[$x("0x21")])&&t[$x("0x27")])for(const e of t[$x("0x7")]())e[$x("0x2f")](o,!0)&&r[$x("0x10")](t.type+":"+t.author.id),e[$x("0x2f")](i,!0)&&s[$x("0x10")](t.type+":"+t[$x("0x1f")].id);if(r[$x("0x31")]!=s[$x("0x31")])return!1;for(const t of r)if(!s[$x("0x34")](t))return!1;return!0}}const Yx=["_acceptFormatSuggestionCallbackFactory","activeMarkers","type","options","unbindElementFromMarkerName","_handleLegacySuggestions","downcastDispatcher","name","toViewElement","start","registerDescriptionCallback","bindElementToMarker","_descriptionFactory","*Format:* %0","stop","createTableWalker","headingColumns","FORMAT_HEADER_ROW","has","parent","markerName","removeClass","locale","data-suggestion","consumable","addClass","ck-suggestion-marker-","getCellLocation","TableEditing","registerAttributeLabel","forceValue","requires","mapper","TrackChangesEditing","get","FORMAT_HEADER_COLUMN","_suggestionFactory","commandParams","data","setTableRowHeader","ck-suggestion-marker--active","editor","showSuggestionHighlights","addMarker:suggestion","afterInit","setAttribute","highest","editing","accept","_splitMarkerName","getSuggestion","consume","headingRows","registerCustomCallback","markerRange","cell","setTableColumnHeader","plugins","nodeBefore","commandName","_enableDefaultAttributesIntegration","formatBlock","writer"];var Jx,Qx;Jx=Yx,Qx=421,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x33")](){return[zx]}[ta("0x1")](){const t=this[ta("0x3d")];if(!t[ta("0xe")][ta("0x26")](ta("0x30")))return;const e=t[ta("0x2a")],n=t[ta("0xe")].get("TrackChangesEditing");n[ta("0x11")](ta("0x3b"),[],[ta("0x9")]),n[ta("0x11")](ta("0xd"),[],[ta("0x24")]),n[ta("0x20")][ta("0x31")](ta("0x9"),Qo(e,"FORMAT_HEADER_ROW")),n._descriptionFactory[ta("0x31")](ta("0x24"),Qo(e,ta("0x37"))),this[ta("0x19")]()}_handleLegacySuggestions(){const t=this[ta("0x3d")][ta("0xe")][ta("0x36")](ta("0x35")),e=this.editor[ta("0xe")][ta("0x36")]("TableUtils"),n=this[ta("0x3d")][ta("0xe")][ta("0x36")](zx)[ta("0x14")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t[ta("0x6")](r[ta("0x28")]),c=t[ta("0x7")](a),l=c[ta("0x3a")];if(ta("0x12")!=c[ta("0x16")]||!l||ta("0xd")!=l[ta("0x10")])return;if(r.item)return void i[ta("0x22")]();if(!s[ta("0x2c")][ta("0x8")](r[ta("0xb")],i[ta("0x1b")]))return;const u=r[ta("0xb")][ta("0x1d")].nodeAfter,d=r[ta("0xb")].end[ta("0xf")],g=u[ta("0x27")][ta("0x27")],{column:f}=e[ta("0x2f")](u),{column:m}=e.getCellLocation(d);for(let i=f;i<=m;i++){const c=e[ta("0x23")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0xc")],c=s[ta("0x34")][ta("0x1c")](i);s[ta("0x13")][ta("0x2d")](ta("0x2e")+x,c),o&&s[ta("0x13")][ta("0x2")](ta("0x2b"),a,c),s[ta("0x34")][ta("0x1f")](c,r[ta("0x28")]),n&&(t[ta("0x15")].includes(r[ta("0x28")])?s[ta("0x13")][ta("0x2d")](ta("0x3c"),c):s[ta("0x13")][ta("0x29")]("ck-suggestion-marker--active",c))}}}}t[ta("0x38")][ta("0xa")](ta("0x12"),ta("0x3b"),ta("0x5"),n),t[ta("0x38")].registerCustomCallback(ta("0x12"),"setTableColumnHeader",ta("0x5"),n),this[ta("0x3d")][ta("0x4")][ta("0x1a")].on(ta("0x0"),o(),{priority:ta("0x3")}),this[ta("0x3d")][ta("0x3a")][ta("0x1a")].on(ta("0x0"),((t,e,n)=>{n[ta("0x17")][ta("0x3e")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x3")}),this[ta("0x3d")][ta("0x4")][ta("0x1a")].on("removeMarker:suggestion",((e,n,o)=>{const{type:i,id:r}=t[ta("0x6")](n[ta("0x28")]),s=t[ta("0x7")](r),x=s.data;if(ta("0x12")!=s[ta("0x16")]||!x||ta("0xd")!=x.commandName)return;const a=o[ta("0x34")].markerNameToElements(n[ta("0x28")]);if(a)for(const t of a)o[ta("0x13")].removeClass(ta("0x2e")+i,t),o[ta("0x13")][ta("0x29")](ta("0x3c"),t),o[ta("0x13")].removeAttribute(ta("0x2b"),t),o[ta("0x34")][ta("0x18")](t,n.markerName)}),{priority:ta("0x3")}),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[ta("0x2a")];function n(t){return{type:"format",content:Qo(e,ta("0x21"),t)}}t.plugins[ta("0x36")](ta("0x35"))[ta("0x20")][ta("0x1e")]((t=>{if(ta("0x12")!=t.type)return;const{data:o}=t;if(o){if(ta("0x3b")==o.commandName){const t=o[ta("0x39")][0][ta("0x32")];return n(Qo(e,t?ta("0x25"):"FORMAT_REGULAR_ROW"))}if(ta("0xd")==o.commandName){const t=o[ta("0x39")][0].forceValue;return n(Qo(e,t?ta("0x37"):"FORMAT_REGULAR_COLUMN"))}}}))}}const na=["getChild","wrap","tablePasteColumn","for","plugins","tableCellBorderWidth","removeMarkers","tablePasteCell","cells","getColumnIndexes","isEmpty","columns","element","isEqual","suggestion-td","oldRange","endColumn","setAttributes","editingDowncast","createTableWalker","change","getSuggestionCallback","tablePaste","nextSibling","markerToHighlight","set","getRange","_createdBatches","createRangeOn","_getCoordsForCells","createPositionBefore","name","getShiftedBy","insertColumns","createRangeIn","cell","startsWith","removeColumns","discard","differ","hasSuggestion","findAncestor","fromEntries","includes","documentSelection","trackChanges","registerPostFixer","getChildren","tablePasteChainId","containsRange","insertRows","forceDefaultExecution","add","_splitMarkerName","low","commands","columnInsertionIndexes","fill","accept","registerCustomCallback","updateMarker","_suggestionFactory","join","author","activeMarkers","insertionRanges","TableUtils","createRange","listenTo","return","push","high","showSuggestionHighlights","insertContent","view","getContainedElement","paragraph","reduce","tablePasteRow","length","getAllAdjacentSuggestions","getRanges","newRange","last","options","tableCell","has","insertion","tableCellBorderColor","unwrap","markerName","table","Users","remove","$graveyard","_tablePostFixingSubtypes","_replaceTableSlotCell","redo","value","TableClipboard","getItems","end","ck-suggestion-marker-insertion","get","markMultiRangeInsertion","position","requires","rowInsertionIndexes","tableCellBackgroundColor","model","filter","columnInsertionRanges","registerDescriptionCallback","from","isInContent","first","attributes","document","editor","register","nodeAfter","previousSibling","subType","insert","_isForcedDefaultExecutionBlock","ck-suggestion-marker","suggestion","deletionRanges","*Replace table cells*","conversion","ck-suggestion-marker--active","markers","_descriptionFactory","stop","getSuggestions","type","map","every","endRow","locale","markerAttributes","tableCellSuggestion","dataDowncast","getMarkers","content","some","tableCellPadding","getChangedMarkers","find","markMultiRangeBlockFormat","elementToElement","keys","getRowIndexes","formatBlock","createElement","removeRows","deletion","getColumns","markMultiRangeDeletion"];var oa,ia;oa=na,ia=139,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0x19"),ra("0x6c"),"tableCellBorderStyle","tableCellHorizontalAlignment","tableCellVerticalAlignment",ra("0x80"),ra("0x7")],xa=Object[ra("0x3e")](sa[ra("0x9c")]((t=>[t,null])));class aa extends t.Plugin{static get[ra("0x7e")](){return[zx]}afterInit(){const t=this.editor;if(!t[ra("0x18")][ra("0x6a")](ra("0x77")))return;const n=t.plugins.get("TrackChangesEditing"),o=t[ra("0x18")][ra("0x7b")](ra("0x56")),i=t[ra("0x18")][ra("0x7b")](zx),r=t[ra("0x18")][ra("0x7b")](ra("0x77"));i[ra("0x73")][ra("0x5a")](ra("0x62"),ra("0x16")),t[ra("0x81")].schema[ra("0x8b")](ra("0x2"),{allowIn:ra("0x69"),allowContentOf:"tableCell",isLimit:!0}),t.conversion[ra("0xb")]({model:ra("0x2"),view:ra("0x22")});let s=null;t[ra("0x81")].on("insertContent",((i,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ra("0x47")]||n[ra("0x90")]||this[ra("0x8a")][ra("0x4b")][ra("0x7b")](ra("0x41"))[ra("0x76")]&&function(t,e,n,o,i){if(e&&!e.is(ra("0x40")))return!1;const r=i.getTableIfOnlyTableInContent(t,n);if(!r||!la(r,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n[ra("0x89")].selection);if(!s[ra("0x63")])return!1;const x=s[0][ra("0x3d")](ra("0x6f")),a=o[ra("0xd")](s),c=o[ra("0x1d")](s),l={startRow:a[ra("0x87")],endRow:a.last,startColumn:c[ra("0x87")],endColumn:c[ra("0x67")]};return 1==s[ra("0x63")]&&(l[ra("0x9e")]+=o.getRows(r)-1,l[ra("0x24")]+=o[ra("0x12")](r)-1),la(x,l,o)}(a,c,t[ra("0x81")],o,r)&&(i[ra("0x99")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x81")][ra("0x28")]((()=>{t.model[ra("0x5d")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ra("0x63")]&&n[ra("0x7c")](i,ra("0x62"),{tablePasteChainId:o}),r[ra("0x63")]&&n[ra("0x7c")](r,"tablePasteColumn",{tablePasteChainId:o}),a[ra("0x63")]&&n[ra("0x7c")](a,ra("0x2a"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0x63")]&&n[ra("0x13")](c,ra("0x2a"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0xa")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x1b"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t.model[ra("0x30")](o),s=e[ra("0x9")]((t=>t[ra("0x2e")]()[ra("0x21")](r)));s&&n[ra("0x5a")]([s[ra("0x33")],i])}n[ra("0x63")]&&u.setAttribute(ra("0x1"),Object[ra("0x3e")](n))}s=null})))}),{priority:e.priorities[ra("0x5b")]+10}),t[ra("0x18")][ra("0x7b")](ra("0x77")).on(ra("0x74"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t[ra("0x99")]();const r=n[ra("0x37")],x=o,a=ca(r),c=ca(x);t[ra("0x59")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x71")](r.getChild(0));for(const t of Array[ra("0x85")](x.getChildren()))i.insert(t,r,"end");const t=s[ra("0x7f")].includes(n.row),e=s[ra("0x4c")][ra("0x3f")](n.column);t||e||(l=i[ra("0x36")](r))}else c&&!a&&(u=i[ra("0x36")](r));else{const t=i.createElement(ra("0x2")),e=i[ra("0xf")]("tableCellSuggestion");i[ra("0x15")](i[ra("0x36")](r),e),i[ra("0x8f")](t,r,0);for(const e of Array.from(x[ra("0x43")]()))i[ra("0x8f")](e,t,ra("0x79"));l=i.createRangeOn(t),u=i[ra("0x30")](e)}const d=Array[ra("0x85")](x.getAttributes())[ra("0x82")]((([t])=>sa[ra("0x3f")](t)));s[ra("0x1c")][ra("0x5a")]({element:r,attributes:d[ra("0x63")]?Object[ra("0x3e")](d):null}),l&&s[ra("0x55")][ra("0x5a")](l),u&&s[ra("0x93")][ra("0x5a")](u)}),{priority:ra("0x5b")}),o.on(ra("0x35"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x1f")]||1;s.columnInsertionIndexes=new Array(a)[ra("0x4d")](x)[ra("0x9c")](((t,e)=>t+e));for(const{cell:e}of o[ra("0x27")](i,{startColumn:x,endColumn:x+a-1}))s[ra("0x83")][ra("0x5a")](t[ra("0x81")][ra("0x30")](e))}),{priority:ra("0x4a")}),o.on(ra("0x46"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r.rows||1;s[ra("0x7f")]=new Array(a)[ra("0x4d")](x)[ra("0x9c")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(i,{startRow:x,endRow:x+a-1}))s.rowInsertionRanges[ra("0x5a")](t.model[ra("0x30")](e))}),{priority:ra("0x4a")}),n[ra("0x98")][ra("0x84")]((e=>{if(e[ra("0x8e")]&&e[ra("0x8e")][ra("0x38")](ra("0x2a")))return e.previous?{}:{type:ra("0x6b"),content:Qo(t[ra("0x0")],ra("0x94"))}}));const x=()=>!1;for(const t of[ra("0x2a"),"tablePasteColumn","tablePasteRow",ra("0x1b")])n[ra("0x51")][ra("0x4f")]("insertion",t,ra("0x52"),x),n[ra("0x51")][ra("0x4f")]("deletion",t,"join",x),n._suggestionFactory[ra("0x4f")](ra("0xe"),t,"join",x);n[ra("0x51")].registerCustomCallback(ra("0xe"),"tablePasteCell",ra("0x3a"),x),n[ra("0x51")][ra("0x4f")](ra("0xe"),ra("0x1b"),"accept",((e,n,o)=>{const i=e.map((t=>t[ra("0x5f")]()))[ra("0x82")]((t=>t)),r=new Map(i[ra("0x9c")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x1c")])e&&r[ra("0x2d")](t,e);else if(o&&o[ra("0x1")])for(const[e,n]of Object.entries(o[ra("0x1")])){const o=t[ra("0x81")][ra("0x97")].get(e),i=o?o.getRange()[ra("0x5f")]():null;i&&r[ra("0x2d")](i,n)}t[ra("0x81")][ra("0x28")]((t=>{for(const[e,n]of r)t[ra("0x25")]({...xa,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[ra("0x4f")](e,ra("0x2a"),o,((i,r,s)=>{t.model[ra("0x28")]((t=>{const x=[];for(const t of i){const e=t.start[ra("0x8c")];e.is("element",ra("0x2"))&&x[ra("0x5a")](e)}n._suggestionFactory[ra("0x29")](e,null,o)(i,r,s);for(const e of x)ra("0x72")!=e.root.rootName&&t[ra("0x6d")](e)}))}))};a("insertion",ra("0x4e")),a(ra("0x6b"),ra("0x3a")),a("deletion",ra("0x4e")),a(ra("0x11"),"discard"),n[ra("0x51")][ra("0x4f")](ra("0x6b"),ra("0x62"),ra("0x3a"),(t=>{const e=t[ra("0x9c")]((t=>t.getContainedElement())),n=e[0].findAncestor("table"),{minRow:r,maxRow:s}=i[ra("0x31")](e);o[ra("0x10")](n,{at:r,rows:s-r+1})})),n._suggestionFactory[ra("0x4f")](ra("0x6b"),ra("0x16"),ra("0x3a"),(t=>{const e=t[ra("0x9c")]((t=>t[ra("0x5f")]())),n=e[0][ra("0x3d")](ra("0x6f")),{minColumn:r,maxColumn:s}=i._getCoordsForCells(e);o[ra("0x39")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[ra("0x38")](ra("0x2a")))return;const o=e[ra("0x88")][ra("0x44")],i=n[ra("0x9a")]().filter((t=>t[ra("0x86")]&&t[ra("0x88")]&&t.attributes.tablePasteChainId==o));i[ra("0x63")]&&e[ra("0x64")]()[ra("0x63")]!=i[ra("0x63")]&&i[ra("0x61")](((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0x49")](t.markerName),i=[ra("0x91"),ra("0x7a")],r=n[ra("0x54")][ra("0x3f")](t[ra("0x6e")]);return r&&i.push(ra("0x96")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ra("0x5b")}),n.on("suggestionUnloaded",c,{priority:"high"}),t[ra("0x81")].document[ra("0x42")]((()=>{let e=!1;const o=Array[ra("0x85")](t[ra("0x81")][ra("0x89")][ra("0x3b")][ra("0x8")]());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n._splitMarkerName(i);if(ra("0x92")!=o||"deletion"!=s||r[ra("0x23")])continue;if(!n[ra("0x3c")](x))continue;const a=n.getSuggestion(x)[ra("0x65")](),c=t.plugins[ra("0x7b")](ra("0x70")).me;for(const t of n.getSuggestions())if(t[ra("0x86")]&&t[ra("0x53")]==c&&"formatBlock"==t.type&&ra("0x1b")==t[ra("0x8e")]&&t[ra("0x65")]()[ra("0x9d")]((t=>a[ra("0x6")]((e=>e.containsRange(t,!0))))))for(const n of t[ra("0x64")]())n[ra("0x86")]&&(n.discard(),e=!0)}return e})),t[ra("0x81")][ra("0x89")][ra("0x42")]((e=>{const o=t[ra("0x4b")].get(ra("0x75"));if(!o||!o[ra("0x2f")].has(e.batch))return!1;let i=!1;const r=t[ra("0x18")][ra("0x7b")]("Users").me,s=t.model[ra("0x89")][ra("0x3b")].getChanges(),x=Array[ra("0x85")](t[ra("0x81")].document[ra("0x3b")][ra("0x8")]())[ra("0x82")]((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n._splitMarkerName(t);return ra("0x92")==o&&"tablePaste"==i&&s==r.id&&!e[ra("0x23")]}));for(const t of s){if(ra("0x8f")!=t[ra("0x9b")]||"tableCellSuggestion"!=t[ra("0x33")]||1!=t[ra("0x63")])continue;const n=e[ra("0x57")](t[ra("0x7d")],t[ra("0x7d")][ra("0x34")](1));if(!x[ra("0x9")]((({data:t})=>t[ra("0x66")][ra("0x21")](n))))for(const{name:t,data:o}of x)if(n[ra("0x45")](o[ra("0x66")])){e[ra("0x50")](t,{range:n}),i=!0;break}}return i})),t[ra("0x81")][ra("0x89")][ra("0x42")]((e=>{let o=!1;const i=t[ra("0x18")].get("Users").me,r=n[ra("0x9a")]()[ra("0x82")]((t=>t[ra("0x86")]&&t[ra("0x53")]==i)),s=new Set,x=new Set;for(const t of r)if("tablePaste"==t[ra("0x8e")])for(const e of t[ra("0x4")]()){const n=e[ra("0x2e")]()[ra("0x5f")]();if(n)if(n.is(ra("0x20"),ra("0x2"))&&ca(n)){t.removeMarker(e[ra("0x33")]),s[ra("0x48")](n),o=!0;const i=n[ra("0x2b")],r=n[ra("0x8d")],a=i&&i.is(ra("0x20"),"tableCellSuggestion"),c=r&&r.is(ra("0x20"),ra("0x2"));a&&!s[ra("0x6a")](i)&&x.add(i),c&&!s.has(r)&&x[ra("0x48")](r)}else n.is(ra("0x20"),ra("0x60"))&&n.isEmpty&&(t.removeMarker(e[ra("0x33")]),o=!0)}else if("tablePasteCell"==t[ra("0x8e")]){if(!t[ra("0x88")]||!t[ra("0x88")].tablePasteChainId)continue;const e=t[ra("0x88")][ra("0x1")];if(e&&Object[ra("0xc")](e)[ra("0x63")])continue;const n=t[ra("0x88")].tablePasteChainId;let i=!0,s=!0;for(const e of r)if(e[ra("0x8e")]&&e[ra("0x8e")].startsWith("tablePaste")){if(!e[ra("0x88")].tablePasteChainId){s=!1;break}if(e.id!=t.id&&e[ra("0x88")][ra("0x44")]==n){i=!1;break}}s&&i&&(t[ra("0x1a")](),o=!0)}for(const t of s)e[ra("0x71")](t);for(const t of x)e.unwrap(t);return o})),t[ra("0x95")][ra("0x17")](ra("0x26"))[ra("0x2c")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t.conversion[ra("0x17")](ra("0x3"))[ra("0x2c")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ra("0x68")][ra("0x5c")]?l(t,!1):null,converterPriority:ra("0x5b")});const u=t.editing[ra("0x5e")];this[ra("0x58")](u[ra("0x89")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u.createRangeIn(e[ra("0x5")])[ra("0x78")]())t.is("element",ra("0x22"))&&n[ra("0x5a")](t);u[ra("0x28")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t[ra("0x32")](e)),t.remove(e)}))}))}}function ca(t){if(t[ra("0x1e")])return!0;const e=t[ra("0x14")](0);return e.is(ra("0x20"),ra("0x60"))&&e[ra("0x1e")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x27")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["columnWidths","selection","plugins","tableWidth","enableCommand","table","registerCustomCallback","commandParams","discard","data","getSuggestionCallback","getTableColumnsWidths","getSelectedElement","Users","has","getColumnGroupElement","bind","handleResizeTableWidthCommand","resizeTableWidth","model","_suggestionFactory","*Format:* resize table","change","type","author","afterInit","registerDescriptionCallback","_descriptionFactory","TableColumnResizeEditing","accept","markBlockFormat","editor","getSuggestions","get","formatBlock","formatGroupId","resizeTable","TrackChangesEditing","format"];var da,ga;da=ua,ga=308,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x1d")](){if(!this.editor[fa("0x6")][fa("0x12")](fa("0x20")))return;const t=this.editor[fa("0x6")][fa("0x25")](fa("0x2"));t[fa("0x8")]("resizeTableWidth",this.handleResizeTableWidthCommand[fa("0x14")](this)),t[fa("0x18")][fa("0xa")]("formatBlock",fa("0x1"),"accept",t[fa("0x18")][fa("0xe")](fa("0x26"),null,"discard")),t._suggestionFactory[fa("0xa")](fa("0x26"),"resizeTable",fa("0xc"),t[fa("0x18")][fa("0xe")](fa("0x26"),null,fa("0x21"))),t[fa("0x1f")][fa("0x1e")](this.handleSuggestionDescription[fa("0x14")](this))}[fa("0x15")](t,e){const n=this[fa("0x23")][fa("0x6")][fa("0x25")](fa("0x2")),o=this[fa("0x23")][fa("0x6")][fa("0x25")](fa("0x20")),i=e[fa("0x9")]||this[fa("0x23")][fa("0x17")].document[fa("0x5")][fa("0x10")]();this.editor.model[fa("0x1a")]((()=>{const r=o[fa("0x13")](i);let s=r?o[fa("0xf")](r):null,x=i.getAttribute(fa("0x7"))||null;const a=e[fa("0x7")]||x,c=e[fa("0x4")]||s,l=this[fa("0x23")].plugins[fa("0x25")](fa("0x11")).me;for(const t of n[fa("0x24")]()){const e=t.getContainedElement();if("resizeTable"===t.subType&&e===i){t[fa("0x1c")]!==l&&t[fa("0xc")]();const e=t[fa("0xd")][fa("0xb")];x=e[0][fa("0x7")],s=e[0][fa("0x4")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[fa("0x22")](i,{commandName:fa("0x16"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x1")},[],"resizeTable")}))}handleSuggestionDescription(t){if(fa("0x26")!=t[fa("0x1b")]&&"formatInline"!=t[fa("0x1b")])return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x0")]){const t=fa("0x19");return{type:fa("0x3"),content:Qo(this[fa("0x23")].locale,t)}}}}const ha=["enableCommand","editor","plugins","get","afterInit","insertTemplate","TrackChangesEditing"];var pa,ba;pa=ha,ba=343,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x4")](){const t=this[Ea("0x1")];t[Ea("0x2")].has("Template")&&t.plugins[Ea("0x3")](Ea("0x6"))[Ea("0x0")](Ea("0x5"))}}const Ta=["TrackChangesEditing","enableCommand","commands","plugins","afterInit","ELEMENT_TABLE_OF_CONTENTS","get","registerElementLabel","insertTableOfContents","editor","locale"];var ya,Ca;ya=Ta,Ca=442,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x2")](){const t=this[Aa("0x7")];if(!t[Aa("0x0")].get(Aa("0x6")))return;t.plugins[Aa("0x4")](Aa("0x9"))[Aa("0xa")](Aa("0x6"));const e=t[Aa("0x1")][Aa("0x4")](Aa("0x9")),n=t[Aa("0x8")];e._descriptionFactory[Aa("0x5")]("tableOfContents",(t=>Qo(n,Aa("0x3"),t)))}}const Ia=["from","document","getNearestSelectionRange","plugins","updateMarker","TrackChangesEditing","removeMarker","isEqual","registerPostFixer","_splitMarkerName","isCollapsed","newRange","has","nodeBefore","registerElementLabel","forward","isTouching","end","getChangedMarkers","schema","model","element","afterInit","title-content","start"];var Sa,va;Sa=Ia,va=306,function(t){for(;--t;)Sa.push(Sa.shift())}(++va);const Ra=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[Ra("0x10")](){const t=this.editor;if(!t[Ra("0x16")][Ra("0x6")]("Title"))return;const e=t.plugins.get(Ra("0x18"));e._descriptionFactory[Ra("0x8")](Ra("0x11"),(()=>Qo(t.locale,"ELEMENT_TITLE"))),t.model[Ra("0x14")][Ra("0x2")]((n=>{let o=!1;const i=Array[Ra("0x13")](t[Ra("0xe")][Ra("0x14")].differ[Ra("0xc")]());for(const{name:r,data:s}of i){const{group:i}=e[Ra("0x3")](r);if("suggestion"!==i||!s[Ra("0x5")])continue;const x=s[Ra("0x5")],a=x[Ra("0xb")][Ra("0x7")];if(!a||!a.is(Ra("0xf"),"title-content"))continue;if(!x.start[Ra("0xa")](x[Ra("0xb")]))continue;const c=t.model[Ra("0xd")][Ra("0x15")](x.end,Ra("0x9"));if(c&&c[Ra("0x4")]){const t=n.createRange(x.start,c[Ra("0x12")]);t[Ra("0x1")](x)||(n[Ra("0x17")](r,{range:t}),o=!0)}o||(n[Ra("0x0")](r),o=!0)}return o}))}}const La=["has","get","redo","TrackChangesEditing","plugins","afterInit","undo","enableCommand","editor"];var Ma,wa;Ma=La,wa=347,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x0")](){const t=this[Oa("0x3")],e=t[Oa("0x8")][Oa("0x5")](Oa("0x7"));t[Oa("0x8")][Oa("0x4")]("UndoEditing")&&(e[Oa("0x2")](Oa("0x1")),e.enableCommand(Oa("0x6")))}}const Da=["get","requires","toggleTableCaption","plugins","enableCommand","editor","has","TableCaptionEditing","afterInit"];var Ba,Pa;Ba=Da,Pa=157,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x6")](){return[zx]}[Ua("0x4")](){const t=this[Ua("0x1")];t.plugins[Ua("0x2")](Ua("0x3"))&&t[Ua("0x8")][Ua("0x5")]("TrackChangesEditing")[Ua("0x0")](Ua("0x7"))}}const Ga=["nodeAfter","table","selection","locale","formatBlock","*Format:* change table cell properties","model","TablePropertiesEditing","getContainedElement","_descriptionFactory","_getSuggestion","*Format:* change table properties","tableHeight","markBlockFormat","getSuggestionCallback","accept","change","tableProperties","registerDescriptionCallback","getAttribute","tableCellBorderWidth","tableCellProperties","_handlePropertyChange","getSelectionAffectedTableCells","enableCommand","format","commandParams","tableCellBackgroundColor","data","tableCellPadding","TrackChangesEditing","afterInit","tableAlignment","editor","tableWidth","_suggestionFactory","tableCellWidth","registerCustomCallback","join","TableCellPropertiesEditing","findAncestor","tableBorderWidth","plugins","tableBorderStyle","handleDiscardAction","TrackChangesTableProperties","tableCellVerticalAlignment","tableBackgroundColor","removeAttribute","tableCellHorizontalAlignment","setAttribute","tableCellHeight","has","tableCellBorderColor","start","getSuggestions","discard","tableCellBorderStyle","subType","document","handleSuggestionDescription","get"];var Va,Ha;Va=Ga,Ha=390,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x3d")]=["tableBorderColor",za("0x19"),za("0x17"),za("0xe"),za("0x10"),za("0x38"),za("0x1d")],this[za("0x3")]=[za("0x23"),za("0x27"),za("0x2"),za("0xb"),za("0x12"),za("0x21"),za("0x9"),za("0x1f"),za("0x1c")]}static get pluginName(){return za("0x1b")}[za("0xd")](){const t=this[za("0xf")][za("0x18")][za("0x2b")](za("0xc"));if(this[za("0xf")][za("0x18")].has(za("0x33"))){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[za("0xf")][za("0x32")][za("0x29")].selection.getFirstPosition()[za("0x16")](za("0x2d"));this[za("0x4")](e,[o],this[za("0x3d")],za("0x3d"),t,n)}));t._suggestionFactory[za("0x13")]("formatBlock",za("0x3d"),za("0x3b"),t._suggestionFactory[za("0x3a")](za("0x30"),null,za("0x26"))),t[za("0x11")].registerCustomCallback(za("0x30"),"tableProperties",za("0x26"),((t,e)=>this[za("0x1a")](this.tableProperties,t,e))),t[za("0x11")][za("0x13")]("formatBlock",za("0x3d"),za("0x14"),(()=>!1))}if(this[za("0xf")][za("0x18")][za("0x22")](za("0x15"))){for(const e of this[za("0x3")])t[za("0x6")](e,((t,n)=>{const o=this[za("0xf")][za("0x18")][za("0x2b")]("TableUtils")[za("0x5")](this[za("0xf")][za("0x32")][za("0x29")][za("0x2e")]);this._handlePropertyChange(e,o,this[za("0x3")],za("0x3"),t,n)}));t[za("0x11")][za("0x13")](za("0x30"),za("0x3"),za("0x3b"),t[za("0x11")][za("0x3a")](za("0x30"),null,za("0x26"))),t[za("0x11")][za("0x13")](za("0x30"),za("0x3"),za("0x26"),((t,e)=>this[za("0x1a")](this[za("0x3")],t,e))),t[za("0x11")].registerCustomCallback("formatBlock",za("0x3"),"join",(()=>!1))}t[za("0x35")][za("0x0")]((t=>this[za("0x2a")](t)))}[za("0x4")](t,e,n,o,i,r){const s=this[za("0xf")].plugins[za("0x2b")](za("0xc"));this.editor.model.enqueueChange(r.batch,(()=>{for(const t of e)if(this[za("0x36")](t,o))i(r);else{const e={};for(const o of n){const n=t[za("0x1")](o);void 0!==n&&(e[o]=n)}i(r),s[za("0x39")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][za("0x24")][za("0x2c")],i=n[za("0x8")][0];this[za("0xf")].model[za("0x3c")]((e=>{for(const n of t)void 0!==i[n]?e[za("0x20")](n,i[n],o):e[za("0x1e")](n,o)}))}[za("0x2a")](t){if(t[za("0xa")])switch(t[za("0x28")]){case za("0x3d"):return{type:za("0x7"),content:Qo(this[za("0xf")][za("0x2f")],za("0x37"))};case za("0x3"):return{type:za("0x7"),content:Qo(this[za("0xf")][za("0x2f")],za("0x31"))}}}[za("0x36")](t,e){const n=this[za("0xf")][za("0x18")].get("TrackChangesEditing");for(const o of n[za("0x25")]({skipNotAttached:!0})){const n=o[za("0x34")]();if(o[za("0x28")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var ic=Math.max;const rc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ic(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,Ja));for(var i=e.length;i--;)Ko(n,e[i]);return n})),uc=["setSelection","_reduceSuggestionAttributeRange","originalSuggestionId","rootName","toJSON","_rangeIsInLocalUserInsertion","track-changes-command-not-found","writer","isRemovable","trackChanges","fromCharCode","size","commentThread","bindElementToMarker","forward","getAttribute","_model","multi","getRanges","insertion:","attributes","$graveyard","_enabledCommands","isEqual","isAtEnd","upcast","rethrowUnexpectedError","_joinWithAdjacentSuggestions","isTouching","oldName","get","data-suggestion","find","isBefore","_splitMarkerName","suggestion","getAncestors","_addSuggestionMarker","addAttribute","consume","_registerDefaultCallbacks","getOperations","newRange","ready","assign","isIntersecting","external:","_isBlockAttribute","formatBlock:join","attribute:accept","ck-suggestion-marker-formatBlock","removeClass","containsRangeInObject","suggestion:","value","addHighlight","nodeAfter","markInsertion","notReady","_suggestionState","isAfter","getMultiRangeId","isDocumentOperation","$textProxy","data","change","addUser","isOwn","subType","highest","length","commands","getNearestSelectionRange","markerToData","_onDiscard","pop","attribute:","isInsideObject","removeMarkers","_recordAttributeSuggestionsFromVersion","_processAttributeChanges","authoredAt","track-changes-adapter-missing-getsuggestion","createElement","toUpperCase","getSuggestionCallback","collaboration.channelId","markerName","targetPosition","oldValue","isLocal","fetchCommentThread","updateMarker","insertion:discard","locale","getDifference","getSuggestions","TrackChangesEditing","markMultiRangeDeletion","markInlineFormat","toViewElement","_createSuggestion","error-saving-suggestion-data-suggestion-discarded","from","forEach","deletion:chain","addMarker","getFirstRange","end","addMarker:suggestion","backward","_removeSuggestion","getSuggestion","isExternal","authorName","_getExternalAuthor","requires","_handleNewSuggestionMarker","getMarkers","editingDowncast","getCommentThread","FORMATTING","deletion:discard","deletion","oldRange","_getMarkerAnnouncementText","getWalker","parent","ck-suggestion-marker--active","_suggestionFactory","marker-count","multipleBlocks","_suggestions","start","item","unshift","fire","isAtStart","PendingActions","acceptSuggestion","splitPosition","editing","insertion","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","PENDING_ACTION_SUGGESTION","containsRange","@external","markerToHighlight","setTo","startsWith","discardSelectedSuggestions","moveTargetPosition","then","_adapter","markDeletion","track-changes-adapter-already-set","selection","deletion:","stop","createPositionBefore","insertion:join","suggestionLoaded","discardAllSuggestions","_defaultCallbacks","model","always","_isForcedDefaultExecutionBlock","removeMarker","_isDataLoaded","suggestionUnloaded","_updateSuggestionData","insertContent","reconvertMarker","mapper","for","isInContent","markers","createPositionAfter","history","clone","formatInline:accept","update:suggestion","unbindElementFromMarkerName","addCommentThread","push","hasSuggestion","ENTER","isUndo","position","getAllAdjacentSuggestions","range","commandName","version","_reduceExistingSuggestions","ck-suggestion-marker","containsPosition","getCustomProperty","createRange","keys","createRangeOn","editor","attributeKey","trackChanges.trackFormatChanges","buildSuggestion","howMany","insertion:chain","_initAriaMarkerChangeAnnouncements","after","addComment","map","getFirstMarker","removed","_findSuggestions","key","isIntersectingWithRange","document","removeAttribute","define","_registerBlockAttribute","open","change:activeMarkers","batch","attribute:join","schema","trackChangesCommand","creator","track-changes-enable-command-twice","addMarker:suggestion:attribute","showSuggestionHighlights","formatGroupId","CommentsRepository","isNextTo","_refreshAttributeSuggestionsChain","markerNameToElements","refresh","isBlock","_registerInlineAttribute","meta","addSuggestion","markBlockFormat","insert","getShiftedBy","substring","formatInline:chain","_setSuggestionRange","track-changes-suggestion-data-mismatch","skipNestingCheck","chain","type","head","activeMarkers","detach","listenTo","_commentsRepository","_processAttributeSuggestions","markerReady","_enableDefaultAttributesIntegration","some","formatBlock:accept","formatInline:","getChangedMarkers","updateSuggestion","getChanges","nodeBefore","_setSuggestionData","_joinSuggestions","_checkSuggestionCorrectness","ck-suggestion-marker-formatInline","next","formatBlock","_addThreadToSuggestion","addMarkerName","$elementName","dataToMarker","author","_customCallbacks","_saved","element","accept","catch","enqueueChange","sort","consumable","enableCommand","join","suggestionChanged","previous","default","formatBlock:","never","enableReadOnlyMode","_trackFormatChanges","addMarker:suggestion:formatBlock","formatInline","delete","warn","track-changes-user-not-found","isLimit","root","getUser","registerPostFixer","concat","substr","_recordAttributeChanges","addClass","elementToElement","getLastMatchingPosition","adapter","_mergeNestedSuggestions","suggestion-type","dataDowncast","conversion","trackChanges.mergeNestedSuggestions","execute","createdAt","includes","split","insertion:accept","isCollapsed","lowest","values","attributeNewValue","_getSuggestionData","Users","acceptSelectedSuggestions","every","filter","formatInline:join","_getAttributeKeyFromSubType","_SUGGESTION_ANNOUNCEMENT","_breakSuggestionMarker","isSelectable","deleteContent","init","isMultiRange","rename","hasComments","has","addSuggestionData","createRangeIn","name","attribute:discard","high","splice","before","_cutOutSuggestionMarker","forceDefaultExecution","isObject","acceptAllSuggestions","_inlineAttributeKeys","setAttribute","createSelection","isArray","dataReady","containsItem","tablePasteChainId","comments","createPositionAt","remove","set","groupId","discard","differ","$text","deletion:join","discardSuggestion","_refreshSuggestionsChain","getIntersection","hasCommentThread","addRange","_blockAttributeKeys","_editor","add","plugins","options","return","markAttributeChange","attribute","config","elementStart","group"];var dc,gc;dc=uc,gc=131,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x8d");class hc extends t.Plugin{static get[fc("0x16e")](){return[fc("0x63"),r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Vi,tr,rr,lr,hr,Tr,Sr,Mr,Pr,Hr,Xr,Qr,is,fs,cs,Es,As,Rs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,vx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get pluginName(){return fc("0x15b")}constructor(t){function e(t){return t[fc("0x4e")]((t=>String[fc("0x104")](t))).join("")}super(t),this[fc("0x149")]=null,this.set(fc("0x77"),[]),this.on(fc("0x59"),((e,n,o,i)=>{this._model.change((()=>{for(const e of[...i,...o])this[fc("0x10a")][fc("0x2d")].has(e)&&t[fc("0xa")][fc("0x29")](e)}))})),this._descriptionFactory=new ii(this[fc("0x45")][fc("0x21")][fc("0x5c")],this[fc("0x45")].locale),this[fc("0x16")]=null,this[fc("0x17b")]=new pc(this[fc("0x45")]),this._suggestions=new Map,this[fc("0x7a")]=t[fc("0xf2")].get(fc("0x63")),this[fc("0x110")]=new Set,this[fc("0x10a")]=this[fc("0x45")][fc("0x21")],this[fc("0x135")]=new WeakMap,this[fc("0x23")]=!1,this[fc("0xef")]=new Set([fc("0x8d")]),this[fc("0xda")]=new Set,t.config[fc("0x56")](fc("0x47"),fc("0x9c")),this._trackFormatChanges=t[fc("0xf7")][fc("0x118")](fc("0x47")),t.config[fc("0x56")](fc("0xb5"),!0),this._mergeNestedSuggestions=t[fc("0xf7")][fc("0x118")](fc("0xb5")),this[fc("0x5d")]=new d(t,this._enabledCommands),this[fc("0x4b")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,51,52])}[fc("0xca")](){const t=this.editor,n=(t,e)=>{if("attribute"!=t)return"ck-suggestion-marker-"+t;const n=e[fc("0xb9")]("|")[0];return this._isBlockAttribute(n)?fc("0x12c"):fc("0x88")};t[fc("0xb4")][fc("0x2b")](fc("0x171"))[fc("0x10")]({model:fc("0x11d"),view:t=>{const{id:e,type:o,subType:i}=this[fc("0x11c")](t[fc("0x151")]),r=["ck-suggestion-marker",n(o,i)];let s=3e3;return this[fc("0x77")][fc("0xb8")](t[fc("0x151")])&&(r[fc("0x35")](fc("0x17a")),s=3010),fc("0x175")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[fc("0x2b")]("dataDowncast")[fc("0xf1")]((e=>{e.on(fc("0x167"),((e,n,o)=>{if(!o.options[fc("0x61")])return;const i=n[fc("0x3")];if(!i)return;const r=o[fc("0x2a")][fc("0x15e")](i);t[fc("0x21")].schema[fc("0xd8")](i)&&r&&!r.getCustomProperty("widget")&&r.is("containerElement")&&(0,x.toWidget)(r,o[fc("0x101")])}),{priority:fc("0xd3")})})),t[fc("0xb4")].for("dataDowncast")[fc("0x10")]({model:fc("0x11d"),view:(t,e)=>{if(!e[fc("0xf3")][fc("0x61")])return null;const{type:o,subType:i}=this._splitMarkerName(t.markerName);return{classes:[fc("0x3f"),n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i.item)return;const{id:s}=this._splitMarkerName(i[fc("0x151")]);if(n){const t=this[fc("0x1")][fc("0x118")](s),e=this[fc("0xc5")](t);if(!this[fc("0x129")](e))return}if(i.item.is(fc("0x19")))return void r[fc("0x97")][fc("0x121")](i[fc("0x3")],o[fc("0xd1")]);const x=r[fc("0x2a")][fc("0x15e")](i[fc("0x3")]);if(i[fc("0x3")].is(fc("0x92"))&&t[fc("0x21")][fc("0x5c")].isBlock(i[fc("0x3")])&&!x[fc("0x41")]("addHighlight")){r.writer.addClass(["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],x),r[fc("0x101")][fc("0xdb")](fc("0x119"),s,x),r.mapper[fc("0x107")](x,i[fc("0x151")]),e&&(this[fc("0x77")].includes(i[fc("0x151")])?r[fc("0x101")][fc("0xad")](fc("0x17a"),x):r[fc("0x101")][fc("0x12d")](fc("0x17a"),x));for(const e of t.model[fc("0xd0")](i.item).getItems())r[fc("0x97")][fc("0x121")](e,o[fc("0xd1")]);r[fc("0x97")][fc("0x121")](i[fc("0x3")],o[fc("0xd1")])}};t.conversion[fc("0x2b")](fc("0xb3"))[fc("0xf1")]((t=>{t.on(fc("0xa1"),((t,e,n)=>{n[fc("0xf3")][fc("0x61")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[fc("0xb4")].for(fc("0xb3")).add((t=>{t.on(fc("0x60"),((t,e,n)=>{n[fc("0xf3")].showSuggestionHighlights&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x13f")})})),t[fc("0xb4")][fc("0x2b")]("dataDowncast")[fc("0x143")]({model:fc("0x11d"),view:(t,e)=>e[fc("0xf3")].showSuggestionHighlights?null:{group:fc("0x11d"),name:t[fc("0xab")](11)}}),t.conversion[fc("0x2b")](fc("0x113"))[fc("0xae")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x12f")+t[fc("0x109")](fc("0xb2"))+":"+t[fc("0x109")]("id");return t[fc("0x109")](fc("0x17c"))&&(n+=":"+t.getAttribute("marker-count")),e[fc("0x14d")]("$marker",{"data-name":n})}}),t[fc("0xb4")].for("upcast")[fc("0x8e")]({view:"suggestion"}),t[fc("0xb4")].for(fc("0x171"))[fc("0xf1")]((t=>{t.on("addMarker:suggestion:formatBlock",o(),{priority:"high"})})),t.conversion[fc("0x2b")](fc("0x171"))[fc("0xf1")]((t=>{t.on(fc("0x60"),o({isAttributeSuggestion:!0}),{priority:fc("0xd3")})})),t.conversion[fc("0x2b")]("editingDowncast")[fc("0xf1")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[fc("0x2a")][fc("0x66")](e[fc("0x151")]);if(o)for(const t of o)t[fc("0x41")](fc("0x131"))||(n[fc("0x101")].removeClass(["ck-suggestion-marker",fc("0x12c"),fc("0x17a")],t),n.writer[fc("0x55")](fc("0x119"),t),n[fc("0x2a")][fc("0x33")](t,e.markerName))}),{priority:fc("0xd3")})})),t.conversion.for(fc("0x171"))[fc("0xf1")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const o=n[fc("0x2a")][fc("0x66")](e.markerName);if(!o)return;const{id:i}=this[fc("0x11c")](e[fc("0x151")]),r=this[fc("0x1")][fc("0x118")](i),s=this[fc("0xc5")](r);if(this._isBlockAttribute(s))for(const t of o)t[fc("0x41")](fc("0x131"))||(n[fc("0x101")].removeClass([fc("0x3f"),fc("0x12c"),"ck-suggestion-marker--active"],t),n[fc("0x101")].removeAttribute(fc("0x119"),t),n[fc("0x2a")].unbindElementFromMarkerName(t,e[fc("0x151")]))}),{priority:fc("0xd3")})})),t[fc("0x21")][fc("0x54")].registerPostFixer((e=>{let n=!1;const o=Array.from(t[fc("0x21")][fc("0x54")][fc("0xe7")][fc("0x81")]()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x11c")](x);if("suggestion"!==o)continue;const d=this[fc("0x1")][fc("0x118")](u);if(null!=a[fc("0x124")]){fc("0xa2")==c&&(n=n||_c(a[fc("0x124")],x,e,t.model[fc("0x5c")]));const o="attribute"==c&&this._isBlockAttribute(l[fc("0xb9")]("|")[0]);if(a[fc("0x124")][fc("0xbb")]||fc("0x10f")==a[fc("0x124")][fc("0xa7")].rootName||fc("0x8a")==c&&!yc(a[fc("0x124")])||o&&!yc(a.newRange)||fc("0x175")==c&&(Ec(s=a[fc("0x124")])||(r=s)[fc("0x2")][fc("0x179")]==r[fc("0x166")][fc("0x84")]&&r[fc("0x2")].isAtEnd))e[fc("0x24")](x),n=!0;else{if(!d||!d[fc("0x2c")])continue;i[fc("0xf1")](d)}}}var r,s;return i[fc("0x105")]>0&&(n=!!this._joinWithAdjacentSuggestions(i)||n),n})),t.model[fc("0x54")][fc("0xa9")]((e=>{let n=!1;for(const o of t.model[fc("0x54")][fc("0xe7")][fc("0x83")]())if(fc("0x6d")==o.type)for(const o of this._suggestions[fc("0xbd")]()){if(o.isMultiRange||!o[fc("0x2c")])continue;const i=fc("0x8a")==o[fc("0x75")],r=this[fc("0xc5")](o),s=r&&this[fc("0x129")](r);if(!i&&!s)continue;const x=o[fc("0x165")]();if(x[fc("0x2")][fc("0x179")]!=x[fc("0x166")][fc("0x179")]&&!x[fc("0x166")][fc("0x112")]){const i=t.model[fc("0xe2")](x[fc("0x2")][fc("0x132")],fc("0x166")),r=t[fc("0x21")][fc("0x42")](x.start,i);e[fc("0x156")](o[fc("0x4f")](),{range:r}),n=!0}}return n})),t[fc("0x21")].document[fc("0xa9")]((t=>this[fc("0x14a")](t))),t.model[fc("0x54")][fc("0xa9")]((t=>!t[fc("0x5a")][fc("0x154")]&&this._processAttributeSuggestions(t))),t[fc("0x21")][fc("0x2d")].on(fc("0x32"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x11c")](e[fc("0xd1")]),n=this[fc("0x1")].get(t);n&&n[fc("0x8c")](e[fc("0xd1")])}})),t[fc("0x21")][fc("0x54")].on("change:data",(()=>{const e=Array[fc("0x161")](t[fc("0x21")][fc("0x54")][fc("0xe7")][fc("0x81")]())[fc("0xc3")]((t=>fc("0x11d")===this[fc("0x11c")](t.name)[fc("0xf9")]));if(0===e[fc("0x140")])return;e[fc("0x96")](((t,e)=>{const n=t.data[fc("0x176")],o=e[fc("0x13a")][fc("0x176")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x2")][fc("0x11b")](o[fc("0x2")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[fc("0x11c")](t);if(null===i[fc("0x176")]){const e=this[fc("0x16f")](t);o[fc("0xf1")](e)}else{const t=this[fc("0x1")][fc("0x118")](e);null!==i[fc("0x124")]||t[fc("0x2c")]?(n[fc("0xf1")](t[fc("0x76")]),o[fc("0xf1")](t)):this[fc("0x169")](t)}}o[fc("0x105")]>0&&this[fc("0xeb")](o);for(const t of n)this[fc("0x5")]("suggestionChanged",t)})),t[fc("0x21")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[fc("0x1")][fc("0x105")])return;if(!o[fc("0x138")])return;if(o.batch[fc("0x38")]||!o[fc("0x5a")][fc("0x154")])return;let i,r;switch(o[fc("0x75")]){case fc("0x6d"):i=t.model[fc("0xe2")](o[fc("0x39")]),r=i[fc("0x6e")](o.howMany);break;case fc("0xb9"):i=t[fc("0x21")][fc("0xe2")](o[fc("0x9")]),r=t[fc("0x21")][fc("0xe2")](o[fc("0x14")]);break;case"move":i=t.model[fc("0xe2")](o[fc("0x152")]),r=i[fc("0x6e")](o[fc("0x49")]);break;default:return}const s=t[fc("0x21")][fc("0x42")](i,r);t.model[fc("0x13b")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x51")](s)){if(t[fc("0xcb")])continue;if(fc("0xa2")==t[fc("0x75")])continue;const n=this[fc("0xc5")](t);if(n&&this[fc("0x129")](n)&&fc("0xb9")!=o[fc("0x75")])continue;const x=t[fc("0x13a")]&&t[fc("0x13a")][fc("0x0")];("formatBlock"!=t[fc("0x75")]||"split"==o[fc("0x75")]&&!x)&&(e[fc("0x12e")]||"insertion"==t[fc("0x75")]&&e.isOwn||t[fc("0x165")]()[fc("0xe")](s)&&this[fc("0xc7")](t,i,r))}}))}),{priority:fc("0xbc")}),t[fc("0x21")].on(fc("0xc9"),((e,n)=>{const o=n[0],i=n[1];if(i&&i.forceDefaultExecution)return;if(this[fc("0x23")])return;if(!this[fc("0x5d")][fc("0x130")])return;if(o[fc("0xbb")])return;const r=t[fc("0x21")][fc("0x5c")],{start:s,end:x}=o[fc("0x165")](),a=s[fc("0x132")]&&r[fc("0xa6")](s.nodeAfter)?null:r[fc("0x142")](s,fc("0x108")),c=x.nodeBefore&&r[fc("0xa6")](x.nodeBefore)?null:r[fc("0x142")](x,fc("0x168")),l=t[fc("0x21")][fc("0x42")](a?a.start:s,c?c.end:x);t[fc("0x21")][fc("0x13b")]((e=>{this[fc("0x17")](l);const n=t.model.schema[fc("0x142")](l[fc("0x2")]);o.is("documentSelection")?e[fc("0xfa")](n):o[fc("0x11")](n)})),e[fc("0x1b")]()}),{priority:e.priorities.normal+10}),t[fc("0x21")].on(fc("0x28"),((e,n)=>{const o=n[n[fc("0x140")]-1];o&&o[fc("0xd7")]||this[fc("0x23")]||this[fc("0x5d")][fc("0x130")]&&(t.model.change((()=>{let o=t[fc("0x21")][fc("0x28")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0xf4")]=o[fc("0x30")]();const i=o[fc("0x166")].nodeBefore,r=t[fc("0x21")][fc("0x5c")];i&&r[fc("0x68")](i)&&!r[fc("0xd8")](i)&&(o=t[fc("0x21")][fc("0x42")](o[fc("0x2")],t.model[fc("0xe2")](i,fc("0x166")))),this[fc("0x133")](o)})),e[fc("0x1b")]())}),{priority:fc("0xd3")}),this.editor[fc("0x141")][fc("0xf1")](fc("0x103"),this[fc("0x5d")]),this[fc("0x98")](fc("0x103"));const i=new p(t,this[fc("0x1")]);t[fc("0x141")][fc("0xf1")]("acceptSuggestion",i),this[fc("0x98")](fc("0x8"));const r=new y(t,this[fc("0x1")]);t[fc("0x141")][fc("0xf1")](fc("0xea"),r),this[fc("0x98")](fc("0xea")),t[fc("0x141")][fc("0xf1")]("acceptAllSuggestions",new F(t,i,this[fc("0x1")])),this.enableCommand(fc("0xd9")),t[fc("0x141")][fc("0xf1")]("discardAllSuggestions",new F(t,r,this[fc("0x1")])),this[fc("0x98")](fc("0x1f")),t.commands.add(fc("0xc1"),new j(t,i,this._suggestions)),this[fc("0x98")](fc("0xc1")),t.commands[fc("0xf1")]("discardSelectedSuggestions",new j(t,r,this._suggestions)),this[fc("0x98")](fc("0x13"));const s=t[fc("0xf2")].get(fc("0x63"));this[fc("0x79")](s,fc("0x4d"),((t,{threadId:e})=>{const n=this[fc("0x1")][fc("0x118")](e);n&&n[fc("0x106")]&&1===n[fc("0x106")][fc("0x140")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[fc("0x79")](s,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[fc("0x118")](e);n&&n[fc("0x106")]&&!n[fc("0x106")][fc("0x140")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set[fc("0xb0")](t){if(this[fc("0x16")])throw new e.CKEditorError(fc("0x18"),this);this._adapter=t}get[fc("0xb0")](){return this[fc("0x16")]}[fc("0x15a")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x1")][fc("0xbd")]())t&&!e[fc("0x2c")]||n.push(e);return e?n[fc("0x4e")]((t=>t[fc("0xfe")]())):n}[fc("0x16a")](t){const n=this._suggestions[fc("0x118")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[fc("0x36")](t){return this._suggestions[fc("0xce")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t[fc("0x75")][fc("0xb9")](":"),s=this._suggestions[fc("0x118")](n)||this[fc("0x15f")](i,r,n,e,o);if(this[fc("0x8b")](s),this[fc("0x87")](s,i,r||null,e),s.createdAt=t.createdAt,s._isDataLoaded=!0,o&&o[fc("0xf")]){const t=o[fc("0xf")],e=this[fc("0x16d")](t[fc("0x16c")]);s[fc("0x14b")]=t.createdAt,s[fc("0x8f")]=e,s[fc("0x16b")]=!0}else s[fc("0x14b")]=t[fc("0xb7")];switch(t.data&&(s[fc("0x13a")]=t.data),t[fc("0x10e")]&&(s[fc("0x10e")]=t[fc("0x10e")]),this[fc("0x16")]&&this[fc("0x16")][fc("0x6b")]||(s[fc("0x91")]=!0),this[fc("0x135")].get(s)){case"notReady":this[fc("0x135")][fc("0xe4")](s,fc("0xde"));break;case fc("0x7c"):s[fc("0x2c")]?(this[fc("0xeb")](new Set([s])),this[fc("0x115")](new Set([s])),this[fc("0x135")][fc("0xe4")](s,"ready"),this[fc("0x5")](fc("0x1e"),s)):this[fc("0x135")].set(s,fc("0x50"))}return s}[fc("0x8")](t){this.forceDefaultExecution((()=>{this[fc("0x45")][fc("0x21")][fc("0x13b")]((()=>{for(const e of t[fc("0x3a")]())e[fc("0x93")]()}))}))}[fc("0xea")](t){this[fc("0xd7")]((()=>{this[fc("0x45")].model.change((()=>{for(const e of t.getAllAdjacentSuggestions())e[fc("0xe6")]()}))}))}[fc("0x98")](t,n){const o=this[fc("0x45")][fc("0x141")][fc("0x118")](t);if(!o)throw new e.CKEditorError(fc("0x100"),this,{commandName:t});if(this[fc("0x110")].has(o))throw new e.CKEditorError(fc("0x5f"),this,{commandName:t});this[fc("0x110")][fc("0xf1")](o),n&&o.on(fc("0xb6"),((t,e)=>{this[fc("0x5d")][fc("0x130")]&&(this[fc("0x23")]||(e[fc("0x140")]>0&&e[e[fc("0x140")]-1]&&e[e[fc("0x140")]-1][fc("0xd7")]?e[fc("0x145")]():(t.return=n(((...t)=>o[fc("0xb6")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x1b")]())))}),{priority:fc("0xd3")})}[fc("0xd7")](t){let n,o;const i=this._isForcedDefaultExecutionBlock;this[fc("0x23")]=!0;try{n=t()}catch(t){o=t}return i||(this[fc("0x23")]=!1),o&&e.CKEditorError[fc("0x114")](o,this),n}[fc("0x133")](t,n=null,o={}){if(t[fc("0xbb")])return null;const i=this[fc("0x45")].plugins.get(fc("0xc0")).me;for(const{suggestion:e,meta:i}of this[fc("0x51")](t,fc("0xb")))if(i[fc("0x13d")]){if(!i[fc("0x64")]){if(i[fc("0x12e")]){if(!this[fc("0xb1")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this._breakSuggestionMarker(e,t[fc("0x2")],t[fc("0x166")]);break}if(n==e[fc("0x13e")]&&Ic(e,o)){const n=e[fc("0x165")]();return n[fc("0x2")][fc("0x111")](t.end)?this[fc("0x71")](e,this[fc("0x10a")][fc("0x42")](t[fc("0x2")],n[fc("0x166")])):this[fc("0x71")](e,this[fc("0x10a")].createRange(n[fc("0x2")],t[fc("0x166")])),e}}const r=(0,e.uid)(),s=i.id,x=n?fc("0x10d")+n:fc("0xb"),a=this[fc("0x85")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x11f")](x,r,s,t),a}markMultiRangeInsertion(t,n="multi",o={}){const i=this.editor[fc("0xf2")][fc("0x118")](fc("0xc0")).me,r=this[fc("0x17b")].getSuggestionCallback(fc("0xb"),n,fc("0x99"));for(const e of this.getSuggestions())if(e[fc("0x8f")].id==i.id&&fc("0xb")==e[fc("0x75")]&&e[fc("0x13e")]==n&&Ic(e,o)&&(r(e.getRanges(),t)||r(t,e.getRanges()))){for(const n of t)e[fc("0xee")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0xb"))){if(!n[fc("0x13d")])continue;if(!this[fc("0xb1")]&&n.containsRangeInObject)continue;if(!Ic(e,o))continue;let i=!0;for(const n of e[fc("0x10c")]())for(const e of t)if(!n.containsRange(e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=fc("0x10d")+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x11f")](a,s,x,e,Jo[fc("0x137")]());return c}[fc("0x15d")](t,n,o=null,i={}){if(o=o||Tc(n),t[fc("0xbb")])return null;if(fc("0x9e")===this[fc("0xa0")]){const e=this[fc("0x17b")].getSuggestionCallback(fc("0xa2"),o,fc("0x93"));return this.forceDefaultExecution((()=>e([t],n,i))),null}const r=this[fc("0x45")][fc("0xf2")][fc("0x118")](fc("0xc0")).me,s=[];if("always"!==this[fc("0xa0")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n[fc("0x13d")]&&!n[fc("0x147")]&&s.push(...e[fc("0x10c")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0xec")](o);e&&n[fc("0x35")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x140")];){const o=n[e][fc("0x159")](t);n[fc("0xd4")](e,1,...o),e+=o[fc("0x140")]}}return n}(t,s);x[fc("0x140")]&&this._model[fc("0x13b")]((()=>{for(const t of x){const e=this._suggestionFactory[fc("0x14f")]("formatInline",o,"accept");this[fc("0xd7")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[fc("0x2")],a=t[fc("0x166")];for(const{suggestion:e,meta:n}of this[fc("0x51")](t,"formatInline")){if(!n[fc("0x13d")])continue;if(e[fc("0x13e")]!=o)continue;if(!Ic(e,i))continue;const r=e[fc("0x165")]();if(r[fc("0xe")](t,!0))return null;x=x[fc("0x11b")](r[fc("0x2")])?x:r[fc("0x2")],a=a[fc("0x136")](r[fc("0x166")])?a:r[fc("0x166")],s?r[fc("0x2")][fc("0x11b")](s.getFirstRange().start)?(s.removeMarkers(),s=e):e.removeMarkers():s=e}const c=this[fc("0x10a")][fc("0x42")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0x85")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[fc("0x11f")](fc("0x80")+o,t,s,c)}}return null}[fc("0x6c")](t,n,o=[],i=null,r={}){n[fc("0x62")]||(n.formatGroupId=n[fc("0x3c")]),n.multipleBlocks=t.is(fc("0x3b")),i=i||Tc(n);const s=o[fc("0x4e")]((t=>Cc(t,this[fc("0x10a")]))),x=t.is(fc("0x3b"))?t:Cc(t,this[fc("0x10a")]);if("never"===this[fc("0xa0")]){const t=this[fc("0x17b")][fc("0x14f")](fc("0x8a"),i,fc("0x93"));return this[fc("0xd7")]((()=>t([x],n,r))),null}s.push(x);let a=!0;for(const t of s)if(!this[fc("0xff")](t)){a=!1;break}if(a&&fc("0x22")!==this[fc("0xa0")]){const t=this._suggestionFactory[fc("0x14f")]("formatBlock",i,fc("0x93"));return this[fc("0xd7")]((()=>t([x],n,r))),null}let c=null,l=x[fc("0x2")],u=x[fc("0x166")];for(const{suggestion:t,meta:e}of this[fc("0x51")](x,fc("0x8a"))){if(!e[fc("0x13d")])continue;if(e[fc("0x64")]||e[fc("0x12e")]||e.isInsideObject)continue;if(t[fc("0x13a")][fc("0x62")]!=n[fc("0x62")])continue;if(!Ic(t,r))continue;const o=t[fc("0x165")]();if(t[fc("0x13e")]==i){if(o[fc("0xe")](x,!0))return null;l=l[fc("0x11b")](o[fc("0x2")])?l:o[fc("0x2")],u=u[fc("0x136")](o[fc("0x166")])?u:o[fc("0x166")],c?o[fc("0x2")][fc("0x11b")](c[fc("0x165")]()[fc("0x2")])?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=x[fc("0xec")](o);this[fc("0xd6")](t,e)}}const d=this[fc("0x45")][fc("0xf2")][fc("0x118")](fc("0xc0")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x71")](c,this._model[fc("0x42")](l,u)),c;{const t=this[fc("0x85")]({id:g,type:fc("0x9d")+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this._addSuggestionMarker(fc("0x9d")+i,g,f,this[fc("0x10a")][fc("0x42")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],i=null,r={}){n.formatGroupId||(n.formatGroupId=n[fc("0x3c")]);const s=t[0];n[fc("0x0")]=s.is(fc("0x3b")),i=i||Tc(n);const x=o[fc("0x4e")]((t=>Cc(t,this[fc("0x10a")]))),a=s.is(fc("0x3b"))?t:t[fc("0x4e")]((t=>Cc(t,this[fc("0x10a")])));if(fc("0x9e")===this._trackFormatChanges){const t=this[fc("0x17b")][fc("0x14f")](fc("0x8a"),i,fc("0x93"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[fc("0x35")](...a);let c=!0;for(const t of x)if(!this[fc("0xff")](t)){c=!1;break}if(c&&fc("0x22")!==this[fc("0xa0")]){const t=this[fc("0x17b")][fc("0x14f")](fc("0x8a"),i,fc("0x93"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[fc("0x45")][fc("0xf2")][fc("0x118")]("Users").me;for(const t of this[fc("0x15a")]()){if(t[fc("0x8f")].id!=l.id)continue;if(fc("0x8a")!=t[fc("0x75")]||t[fc("0x13a")][fc("0x62")]!=n.formatGroupId)continue;if(!Ic(t,r))continue;const e=t.subType==i;for(let n=0;n<a[fc("0x140")];n++){const o=a[n];for(const i of t[fc("0x170")]()){const r=i.getRange();if(o[fc("0x111")](r)){e?(a[fc("0xd4")](n,1),n--):t[fc("0x24")](i[fc("0xd1")]);break}}}}if(0==a[fc("0x140")])return null;const u=this._suggestionFactory.getSuggestionCallback(fc("0x8a"),i,"join");for(const t of this[fc("0x15a")]())if(t[fc("0x8f")].id==l.id&&fc("0x8a")==t.type&&t[fc("0x13a")][fc("0x62")]==n.formatGroupId&&t.subType==i&&Ic(t,r)&&(u(t[fc("0x10c")](),a)||u(a,t[fc("0x10c")]()))){for(const e of a)t[fc("0xee")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x9d")+i,m=this[fc("0x85")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[fc("0x11f")](f,d,g,t,Jo[fc("0x137")]());return m}[fc("0x17")](t,n=null,o={}){if(t.isCollapsed)return null;const i=this[fc("0x45")].plugins[fc("0x118")](fc("0xc0")).me,r=new s.LiveRange(t[fc("0x2")],t[fc("0x166")]);for(const{suggestion:t,meta:e}of this[fc("0x51")](r,fc("0xb")))if(e[fc("0x13d")]&&!e[fc("0x64")])if(t.isMultiRange){const e=t[fc("0x10c")]().filter((t=>fc("0x10f")!=t[fc("0xa7")][fc("0xfd")]));if(e[fc("0xc2")]((t=>r.containsRange(t,!0)))&&t[fc("0xe6")](),e.some((t=>t[fc("0xe")](r,!0)))){const t=this[fc("0x17b")][fc("0x14f")](fc("0x175"),n,fc("0x93"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[fc("0x165")]());null!==e&&t[fc("0x144")]([e],null,o)}if(r.detach(),r[fc("0xbb")]||fc("0x10f")==r.root[fc("0xfd")])return null;let x=null,a=r.start,c=r[fc("0x166")];const l=this[fc("0x51")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0x42")](a,c);if(e[fc("0x13d")]&&(this[fc("0xb1")]||!e[fc("0x12e")]&&!e.isInsideObject))if(t.isMultiRange){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0x10c")]()){if(o[fc("0xe")](n,!0))return t;n[fc("0xe")](o)||(e=!1)}e&&t[fc("0xe6")]()}else{const e=t.getFirstRange();if(e.containsRange(n,!0))return t;if(!Ic(t,o)){n.containsRange(e)?t[fc("0x148")]():e[fc("0x40")](a)?a=e[fc("0x166")]:e.containsPosition(c)&&(c=e[fc("0x2")]);continue}a=a[fc("0x11b")](e[fc("0x2")])?a:e.start,c=c[fc("0x136")](e[fc("0x166")])?c:e[fc("0x166")],o=Object.assign({},t.attributes),x?e[fc("0x2")][fc("0x11b")](x[fc("0x165")]()[fc("0x2")])?(x[fc("0x148")](),x=t):t[fc("0x148")]():x=t}}if(x)return this[fc("0x71")](x,this._model[fc("0x42")](a,c)),x;{const t=(0,e.uid)(),r=this[fc("0x10a")][fc("0x42")](a,c),s=i.id,x=n?fc("0x1a")+n:fc("0x175"),l=this[fc("0x85")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x11f")](x,t,s,r),l}}[fc("0x15c")](t,n=fc("0x10b"),o={}){const i=this[fc("0x45")][fc("0xf2")][fc("0x118")](fc("0xc0")).me,r=t[fc("0x4e")]((t=>new s.LiveRange(t.start,t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x51")](r,fc("0xb")))e[fc("0x13d")]&&!e[fc("0x64")]&&x[fc("0xf1")](t);for(const e of x)if(e.isMultiRange){const i=e[fc("0x10c")]();if((!e[fc("0x10e")]||!e[fc("0x10e")][fc("0x73")])&&i[fc("0xc2")]((t=>r[fc("0x7e")]((e=>e[fc("0xe")](t,!0)))))&&e[fc("0xe6")](),r[fc("0xc2")]((t=>i[fc("0x7e")]((e=>e[fc("0xe")](t,!0)))))){const e=this[fc("0x17b")][fc("0x14f")]("deletion",n,fc("0x93"));return this[fc("0xd7")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x165")]();if(r[fc("0x7e")]((e=>e[fc("0xe")](t,!0)))&&e[fc("0xe6")](),r[fc("0xc2")]((e=>t[fc("0xe")](e,!0)))){const t=this._suggestionFactory[fc("0x14f")]("deletion",n,fc("0x93"));return this[fc("0xd7")]((()=>t(r,null,o))),null}}const a=this[fc("0x17b")].getSuggestionCallback(fc("0x175"),n,fc("0x99"));let c=null;for(const t of this.getSuggestions())if(t.author.id==i.id&&t.isInContent&&"deletion"==t[fc("0x75")]&&t[fc("0x13e")]==n&&Ic(t,o)&&(a(t[fc("0x10c")](),r)||a(r,t[fc("0x10c")]())))if(c){if(t.commentThread&&t.commentThread[fc("0x140")])continue;for(const e of t[fc("0x10c")]())c.isIntersectingWithRange(e)||c[fc("0xee")](e);t.removeMarkers()}else{c=t;for(const e of r)t[fc("0x53")](e)||t.addRange(e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this._findSuggestions(r,"deletion"))e[fc("0x13d")]&&(this._mergeNestedSuggestions||!e[fc("0x12e")]&&!e[fc("0x147")])&&Ic(t,o)&&x[fc("0xf1")](t);for(const t of x){const e=t[fc("0x10c")]();if((!o||!o[fc("0x73")])&&r.every((t=>e[fc("0x7e")]((e=>e[fc("0xe")](t,!0))))))return t;(!t[fc("0x10e")]||!t[fc("0x10e")][fc("0x73")])&&e[fc("0xc2")]((t=>r.some((e=>e[fc("0xe")](t,!0)))))&&t[fc("0xe6")]()}const l=(0,e.uid)(),u=i.id,d=fc("0x1a")+n,g=this[fc("0x85")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[fc("0x78")](),t.isCollapsed||fc("0x10f")==t[fc("0xa7")][fc("0xfd")]||this[fc("0x11f")](d,l,u,t,Jo[fc("0x137")]());return g}markAttributeChange(t,n,o,i,r){if(t[fc("0xbb")])return[];if(fc("0x9e")===this._trackFormatChanges)return[];const s=this.editor.plugins[fc("0x118")]("Users").me.id,x=Array[fc("0x161")](this[fc("0x1")][fc("0xbd")]())[fc("0xc3")]((e=>fc("0xf6")==e[fc("0x75")]&&e[fc("0x13a")][fc("0x52")]==n&&e[fc("0x53")](t)));if(fc("0x9c")===this[fc("0xa0")]){const e=this[fc("0x51")](t,"insertion")[fc("0xc3")]((({meta:t})=>t[fc("0x13d")]&&!t[fc("0x147")]&&!t[fc("0x64")]))[fc("0x4e")]((({suggestion:t})=>t));x[fc("0x4")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0xf6")==t[fc("0x75")]?t[fc("0x13a")][fc("0x153")]:void 0,n=t[fc("0x165")](),r=Array[fc("0x161")](a[fc("0x43")]())[fc("0x11a")]((t=>t.isIntersecting(n)));r&&(a[fc("0xa3")](r),r[fc("0x159")](n)[fc("0x162")]((t=>{a[fc("0xe4")](t,o)})),"insertion"!=t[fc("0x75")]&&e!=i&&a.set(r.getIntersection(n),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n[fc("0x140")]>37&&console[fc("0xa4")](fc("0xc"),{key:n});const l=(fc("0x146")+(n+"|")+Tc({newValue:i}))[fc("0x6f")](0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c[fc("0x35")](u),this[fc("0x11f")](l,x,s,t)}return c}[fc("0x57")](t){this[fc("0xef")].add(t)}_registerInlineAttribute(t){this[fc("0xda")].add(t)}[fc("0x7d")](t,e=[],n=[]){this[fc("0x98")](t,((t,...e)=>{this[fc("0xac")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x69")](t);for(const t of n)this._registerBlockAttribute(t)}[fc("0x71")](t,e){const n=t[fc("0x4f")]();this._model[fc("0x13b")]((t=>{t[fc("0x156")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[fc("0x45")].config[fc("0x118")](fc("0x150"));this[fc("0x7a")][fc("0xed")](e)||this[fc("0x7a")][fc("0x34")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x7a")][fc("0x172")](e);o.unbind(fc("0x102")),o.isRemovable=!1,t[fc("0x106")]=o}[fc("0x87")](t,n,o,i){if(t[fc("0x75")]!=n||t[fc("0x13e")]!=o||t[fc("0x5e")].id!=i)throw this[fc("0x45")][fc("0x9f")](fc("0x72")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[fc("0xd6")](t,n){const o=t[fc("0x165")]();if(n.isEqual(o))t[fc("0x148")]();else if(o[fc("0xe")](n)){const i=this[fc("0x10a")][fc("0xe2")](n[fc("0x2")][fc("0x84")],fc("0x166"));this[fc("0x71")](t,this[fc("0x10a")][fc("0x42")](o[fc("0x2")],i));const r=(0,e.uid)(),s=t[fc("0x5e")].id,x=t.type+":"+t[fc("0x13e")];this[fc("0x85")]({id:r,type:x,createdAt:new Date,authorId:s,data:t[fc("0x13a")],attributes:t[fc("0x10e")]});const a=this[fc("0x10a")][fc("0xe2")](n[fc("0x166")][fc("0x179")],fc("0x4c")),c=this[fc("0x10a")][fc("0x42")](a,o[fc("0x166")]);this[fc("0x11f")](x,r,s,c)}else if(o[fc("0x40")](n.start)){const e=this._model[fc("0xe2")](n.start[fc("0x84")],fc("0x166"));this[fc("0x71")](t,this._model.createRange(o[fc("0x2")],e))}else{const e=this[fc("0x10a")][fc("0xe2")](n.end[fc("0x179")],"after");this._setSuggestionRange(t,this[fc("0x10a")][fc("0x42")](e,o.end))}}[fc("0xff")](t){for(const{suggestion:e,meta:n}of this[fc("0x51")](t,"insertion")){if(!n[fc("0x13d")])continue;const o=e[fc("0x10c")]();for(const e of o)if(!t[fc("0x159")](e)[fc("0x140")])return!0}return!1}_getAuthorFromId(t){const n=this[fc("0x45")].plugins[fc("0x118")](fc("0xc0"))[fc("0xa8")](t);if(!n)throw new e.CKEditorError(fc("0xa5"),this);return n}[fc("0x16d")](t){const e=this.editor[fc("0xf2")][fc("0x118")](fc("0xc0")),n=(0,r.hashObject)(fc("0x128")+t);return e[fc("0xa8")](n)||e[fc("0x13c")]({id:n,name:t})}_createSuggestion(t,e,n,o,i){const r=this._getAuthorFromId(o),s=this[fc("0x17b")].buildSuggestion(t,e,n,r,i,(t=>this[fc("0x27")](n,{attributes:t})));return this[fc("0x79")](s,fc("0x93"),(()=>{this[fc("0x27")](n,{state:"accepted"})}),{priority:fc("0xd3")}),this[fc("0x79")](s,"discard",(()=>{this[fc("0x27")](n,{state:"rejected"})}),{priority:fc("0xd3")}),this[fc("0x1")][fc("0xe4")](n,s),this[fc("0x135")][fc("0xe4")](s,fc("0x134")),s}_splitMarkerName(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[fc("0x140")]<5?e[2]:e[3],authorId:e[fc("0x140")]<5?e[3]:e[4],markerCount:6==e[fc("0x140")]?e[5]:null}}[fc("0xc7")](t,n,o){const i=t[fc("0x165")](),r=i[fc("0x2")],s=i[fc("0x166")];this[fc("0x71")](t,this[fc("0x10a")].createRange(r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[fc("0x75")]+(t[fc("0x13e")]?":"+t[fc("0x13e")]:"");this[fc("0x85")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x10e")],data:t[fc("0x13a")]});const l=this[fc("0xc5")](t);("formatBlock"==t[fc("0x75")]||l&&this[fc("0x129")](l))&&(o=this[fc("0x10a")][fc("0x1c")](o[fc("0x179")])),this[fc("0x11f")](c,x,a,this[fc("0x10a")][fc("0x42")](o,s))}_findSuggestions(t,e=null){const n=[],o=this[fc("0x45")][fc("0xf2")][fc("0x118")](fc("0xc0")).me;Array[fc("0xdd")](t)||(t=[t]);for(const i of this[fc("0x15a")]()){if(!i[fc("0x2c")])continue;if(e&&i[fc("0x75")]!=e)continue;let r=!1;for(const e of i[fc("0x10c")]()){for(const s of t){const t=s.start[fc("0x111")](e[fc("0x166")])||s.end[fc("0x111")](e[fc("0x2")]);if(t||s[fc("0xec")](e)){const x=s[fc("0xe")](e)&&bc(this[fc("0x10a")][fc("0x5c")],e[fc("0x2")],s),a=e[fc("0xe")](s)&&bc(this[fc("0x10a")][fc("0x5c")],s[fc("0x2")],e);n.push({suggestion:i,meta:{isOwn:o==i[fc("0x8f")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,i){this[fc("0x10a")][fc("0x13b")]((r=>{let s=fc("0x12f")+t+":"+e+":"+n;i&&(s=s+":"+i),r[fc("0x164")](s,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t[fc("0x89")];t[fc("0x9b")]=null,t[fc("0x89")]=null,null!=e&&(e[fc("0x89")]=n),null!=n&&(n[fc("0x9b")]=e),fc("0x125")==this[fc("0x135")][fc("0x118")](t)&&(this[fc("0x135")].set(t,fc("0x50")),this.fire(fc("0x26"),t,e,n))}[fc("0x85")](t){const n=t.id,o=this[fc("0xcf")](t);if(this[fc("0x16")]&&this[fc("0x16")][fc("0x6b")]){const i=this[fc("0x45")][fc("0xf2")].get(fc("0x7")),r=o[fc("0xcd")],s=o.subType?o[fc("0x75")]+":"+o[fc("0x13e")]:o.type,x=this.editor[fc("0x158")],a=i[fc("0xf1")](Qo(x,fc("0xd"))),c={id:n,type:s,hasComments:r,data:t[fc("0x13a")]||null,originalSuggestionId:t[fc("0xfc")]||null,attributes:o[fc("0x10e")]};this[fc("0x16")][fc("0x6b")](c)[fc("0x15")]((t=>{o._saved=!0,i[fc("0xe3")](a),t&&t[fc("0xb7")]&&(this[fc("0x1")].get(n).createdAt=t[fc("0xb7")])}))[fc("0x94")]((t=>{throw(0,e.logWarning)(fc("0x160")),this[fc("0x45")][fc("0x21")][fc("0x95")]({isUndoable:!1},(()=>{o[fc("0xe6")]()})),o.stopListening(),this[fc("0x1")].delete(o.id),this[fc("0x135")][fc("0xa3")](o),t}))}return o}_isBlockAttribute(t){return this._blockAttributeKeys.has(t)}_getAttributeKeyFromSubType(t){return fc("0xf6")==t[fc("0x75")]&&t[fc("0x13e")][fc("0xb9")]("|")[0]}[fc("0x27")](t,e){const n=this.editor.plugins[fc("0x118")]("PendingActions"),o=this[fc("0x16a")](t);if(this[fc("0x16")]&&this[fc("0x16")].updateSuggestion)if(o[fc("0x91")]){const o=n[fc("0xf1")](Qo(this[fc("0x45")][fc("0x158")],fc("0xd")));this[fc("0x16")][fc("0x82")](t,e).then((()=>{n[fc("0xe3")](o)}))}else o.on("change:_saved",(()=>{this._updateSuggestionData(t,e)}))}[fc("0xbf")](t){if(!this[fc("0x16")]||!this._adapter[fc("0x16a")])throw new e.CKEditorError(fc("0x14c"),this);return this[fc("0x16")][fc("0x16a")](t)}[fc("0x16f")](t){const{id:e,type:n,subType:o,authorId:i}=this[fc("0x11c")](t),r=this._suggestions[fc("0x118")](e)||this[fc("0x15f")](n,o,e,i,{});switch(this[fc("0x87")](r,n,o,i),this[fc("0x135")].get(r)){case fc("0x134"):this[fc("0xbf")](e)[fc("0x15")]((t=>{let n=Promise.resolve();t[fc("0xcd")]&&(n=this[fc("0x7a")][fc("0x155")]({channelId:this.editor.config[fc("0x118")](fc("0x150")),threadId:e})),n.then((()=>{this.addSuggestionData(t)._saved=!0}))})),this[fc("0x135")][fc("0xe4")](r,"markerReady");break;case fc("0x50"):this[fc("0x27")](e,{state:fc("0x58")});case fc("0xde"):this[fc("0x135")].set(r,fc("0x125")),this[fc("0x5")](fc("0x1e"),r);break;case fc("0x125"):this[fc("0x5")](fc("0x9a"),r)}return r[fc("0x8c")](t),r}[fc("0xeb")](t){const e=Array[fc("0x161")](t),n=e[fc("0xc3")]((t=>"attribute"==t[fc("0x75")]));this._refreshAttributeSuggestionsChain(n);const o=e[fc("0xc3")]((t=>!t[fc("0xcb")]&&fc("0xf6")!=t[fc("0x75")])),i=this[fc("0x15a")]({skipNotAttached:!0})[fc("0xc3")]((t=>!t[fc("0xcb")]&&fc("0xf6")!=t[fc("0x75")])),r=i[fc("0xc3")]((e=>!t[fc("0xce")](e))),s=new Map(i.map((t=>[t,this[fc("0x17b")][fc("0x14f")](t[fc("0x75")],t[fc("0x13e")],fc("0x74"))]))),x=new Map(i[fc("0x4e")]((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x140")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x140")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[fc("0x140")];t++){const e=o[t];!c.has(e)&&e.previous&&(l[fc("0xf1")](e[fc("0x9b")]),e[fc("0x9b")][fc("0x89")]===e&&(e[fc("0x9b")][fc("0x89")]=null),e[fc("0x9b")]=null),!a[fc("0xce")](e)&&e[fc("0x89")]&&(l[fc("0xf1")](e.next),e[fc("0x89")][fc("0x9b")]===e&&(e.next[fc("0x9b")]=null),e.next=null)}function u(t,e,n){for(let o=n;o<e[fc("0x140")];o++){const n=d(t,e[o]);n&&(n[0][fc("0x89")]=n[1],n[1][fc("0x9b")]=n[0],a[fc("0xf1")](n[0]),c[fc("0xf1")](n[1]))}}function d(t,e){if(t[fc("0x8f")].id!==e[fc("0x8f")].id)return null;const n=s[fc("0x118")](t)(t,e,x.get(t),x.get(e));return n&&s[fc("0x118")](e)(t,e,x[fc("0x118")](t),x[fc("0x118")](e))?n[1].commentThread&&n[1][fc("0x106")][fc("0x140")]?null:n:null}l[fc("0x105")]&&this[fc("0xeb")](l)}[fc("0x65")](t){if(0==t[fc("0x140")])return;const e=this.getSuggestions({skipNotAttached:!0}).filter((t=>fc("0xf6")==t[fc("0x75")]&&t[fc("0x25")])),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t.attributes);o[fc("0xce")](e)||(o[fc("0xe4")](e,n.length),n[fc("0x35")]([]));const i=o[fc("0x118")](e);n[i][fc("0x35")](t)}!function(){n[fc("0x96")](((t,e)=>{const n=t[0].createdAt,o=e[0].createdAt;return n==o?t[0][fc("0x10e")][fc("0xe5")]<e[0][fc("0x10e")][fc("0xe5")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x96")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x140")];t++){if(0==n[t].length)continue;const e=[];for(let o=t+1;o<n[fc("0x140")];o++)0!=n[o].length&&i(n[t],n[o])&&e.push(o);for(const o of e)n[t]=n[t][fc("0xaa")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x140")];e++)t[e].next=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x140")];e++)t[e][fc("0x9b")]=t[e-1]||null;function i(t,e){if(t[0][fc("0x8f")]!==e[0][fc("0x8f")])return!1;if(n=t[0],o=e[0],(n[fc("0xcd")]||o.hasComments)&&(n[fc("0xcd")]&&o[fc("0xcd")]||!(n[fc("0xcd")]&&o[fc("0xb7")]<n[fc("0x106")][fc("0xe1")][fc("0x118")](0).createdAt||o[fc("0xcd")]&&n[fc("0xb7")]<o[fc("0x106")][fc("0xe1")][fc("0x118")](0)[fc("0xb7")])))return!1;var n,o;const i=lc(t[0].attributes,"groupId"),r=lc(e[0].attributes,fc("0xe5"));return!!Go(i,r)&&(!!t.every((t=>e[fc("0x7e")]((e=>t[fc("0x165")]()[fc("0x111")](e[fc("0x165")]())))))&&e[fc("0xc2")]((e=>t.some((t=>e[fc("0x165")]()[fc("0x111")](t[fc("0x165")]()))))))}}[fc("0x115")](t){const e=Array[fc("0x161")](t),n=this[fc("0x15a")]({skipNotAttached:!0}),o=n[fc("0xc3")]((e=>!t[fc("0xce")](e))),i=new Map(e[fc("0x4e")]((t=>[t,this[fc("0x17b")][fc("0x14f")](t.type,t[fc("0x13e")],"join")]))),r=new Map(n[fc("0x4e")]((t=>[t,t[fc("0x10c")]()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x140")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x140")];s++){const o=n[s];if(o[fc("0x75")]!==e[fc("0x75")]||o[fc("0x8f")].id!==e[fc("0x8f")].id||o.subType!==e.subType)continue;if(!kc(e,o))continue;if(fc("0xf6")==e.type&&e[fc("0x13a")][fc("0x153")]!=o[fc("0x13a")][fc("0x153")])continue;if(fc("0xf6")==e.type&&t[fc("0x129")](e[fc("0x13a")][fc("0x52")]))continue;const x=i[fc("0x118")](e),a=r[fc("0x118")](e),c=r[fc("0x118")](o),l=e[fc("0x106")]&&e[fc("0x106")].length,u=o.commentThread&&o[fc("0x106")][fc("0x140")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[fc("0xa3")](e),!0;if(!u&&x(a,c))return t[fc("0x86")](e,o),r[fc("0xa3")](o),!0}return!1}}[fc("0x86")](t,e){if(t.isMultiRange)for(const n of e[fc("0x10c")]())t[fc("0xee")](n);else{const n=e[fc("0x165")]()[fc("0x166")];this[fc("0x71")](t,this[fc("0x10a")][fc("0x42")](t[fc("0x165")]()[fc("0x2")],n))}e[fc("0x148")]()}[fc("0x177")](t,e){const n=t[fc("0x12")]("format")||t[fc("0x12")](fc("0xf6"))?fc("0x173"):t[fc("0x14e")]();return Qo(this[fc("0x45")][fc("0x158")],e+"_"+n+fc("0xc6"))}_initAriaMarkerChangeAnnouncements(){const t=this[fc("0x45")];(0,r.surroundingMarkersDetector)(this[fc("0x10a")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x11c")](t[fc("0xd1")]);if("suggestion"===e){o.push(this._getMarkerAnnouncementText(n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[fc("0x11c")](t[fc("0xd1")]);if("suggestion"===e){o[fc("0x35")](this[fc("0x177")](n,fc("0x37")));break}}o[fc("0x140")]&&t.ui.ariaLiveAnnouncer.announce(fc("0x103"),o[fc("0x99")](" "))}))}[fc("0x14a")](t){if(null!==this[fc("0x149")])return!1;const e=this[fc("0x45")],n=e.model[fc("0x54")][fc("0xe7")][fc("0x83")]();if(0==n[fc("0x140")])return!1;const o=[],i=n[fc("0xc3")]((t=>fc("0xf6")==t[fc("0x75")])),r=n[fc("0xc3")]((t=>fc("0x6d")==t[fc("0x75")]&&fc("0xe8")!=t[fc("0xd1")])),s=n[fc("0xc3")]((t=>"remove"==t[fc("0x75")]&&fc("0xe8")!=t[fc("0xd1")]));for(const t of i)o[fc("0x35")]({key:t[fc("0x46")],newValue:t[fc("0xbe")],oldValue:t.attributeOldValue,range:(x=t[fc("0x3b")],null==x[fc("0x166")][fc("0x84")]&&x.end[fc("0x179")]==x.start[fc("0x132")]?Cc(x.start[fc("0x132")],e[fc("0x21")]):x)});var x;for(const t of r){const n=s[fc("0x11a")]((e=>e[fc("0x39")].isEqual(t[fc("0x39")])));n&&o[fc("0x35")]({key:fc("0x8d"),newValue:t[fc("0xd1")],oldValue:n[fc("0xd1")],range:e[fc("0x21")][fc("0x44")](t[fc("0x39")][fc("0x132")])})}return 0!=o[fc("0x140")]&&this._reduceExistingSuggestions(t,o)}[fc("0x7b")](t){let e=!1;const n=this.editor[fc("0x21")][fc("0x54")].differ[fc("0x81")]()[fc("0xc3")]((t=>t[fc("0x13a")][fc("0x124")]&&t[fc("0xd1")][fc("0x12")]("suggestion:attribute:")));for(const o of n){const{subType:n,id:i}=this[fc("0x11c")](o[fc("0xd1")]),r=n.split("|")[0];for(const n of this[fc("0x15a")]({skipNotAttached:!0}))n.id!=i&&fc("0xf6")==n.type&&n[fc("0x13a")]&&n[fc("0x13a")][fc("0x52")]==r&&n.getFirstRange()[fc("0x127")](o[fc("0x13a")].newRange)&&(this[fc("0xfb")](n,o.data[fc("0x124")],t),e=!0)}return e}[fc("0xac")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return void t();const n=this[fc("0x45")];this[fc("0x149")]=n.model[fc("0x54")][fc("0x3d")],t();const o=new Map;for(const t of n[fc("0x21")][fc("0x54")][fc("0x2f")][fc("0x123")](this[fc("0x149")]))if([fc("0xcc"),fc("0x120"),fc("0x55"),"changeAttribute"][fc("0xb8")](t[fc("0x75")])){const e=t[fc("0x5a")],n=o[fc("0x118")](e)||[];n.push(t),o[fc("0xe4")](e,n)}this._recordAttributeSuggestionsFromVersion=null;for(const[t,i]of o){const o=(0,e.uid)();n[fc("0x21")][fc("0x95")](t,(t=>{const e=[];for(const t of i){let i,r,s,x;if(fc("0xcc")==t.type){const e=t;i=Cc(e[fc("0x39")][fc("0x132")],n[fc("0x21")]),r="$elementName",s=e.newName,x=e[fc("0x117")]}else{const e=t,o=this[fc("0x129")](e[fc("0x52")]),a=this[fc("0xda")].has(e[fc("0x52")]);if(!o&&!a)continue;i=o?Cc(e.range[fc("0x2")][fc("0x132")],n[fc("0x21")]):e.range,r=e[fc("0x52")],s="removeAttribute"==t.type?void 0:e.newValue,x=e[fc("0x153")]}this[fc("0xf5")](i,r,x,s,{groupId:o}),e[fc("0x35")]({range:i,key:r,newValue:s,oldValue:x})}this[fc("0x3e")](t,e)}))}}[fc("0x3e")](t,e){if(0==e[fc("0x140")])return!1;let n=!1;for(const o of e){const e=this._findSuggestions(o[fc("0x3b")],fc("0xf6"))[fc("0xc3")]((t=>!t[fc("0x6a")][fc("0x64")])).map((t=>t.suggestion)),i=(0,r.hashObject)({newValue:o.newValue});e[fc("0xc3")]((t=>{const[e,n]=t[fc("0x13e")].split("|");return e==o[fc("0x52")]&&n!=i}))[fc("0x162")]((e=>{this._reduceSuggestionAttributeRange(e,o.range,t),n=!0}))}return n}[fc("0xfb")](t,e,n){const o=t[fc("0x165")]()[fc("0x159")](e);0!==o[fc("0x140")]?1!==o[fc("0x140")]?this[fc("0xc7")](t,e[fc("0x2")],e[fc("0x166")]):this[fc("0x71")](t,o[0]):n.removeMarker(t.getFirstMarker())}}class pc{constructor(t){this[fc("0xf0")]=t,this._model=t.model,this[fc("0x90")]=new Map,this._defaultCallbacks=new Map,this[fc("0x122")]()}[fc("0x48")](t,e,n,o,i,r){return new Jo(this[fc("0x10a")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this[fc("0x14f")](t,e,fc("0x93"))(...n),onDiscard:(...n)=>this[fc("0x14f")](t,e,fc("0xe6"))(...n)})}registerCustomCallback(t,e,n,o){const i=t+":"+e+":"+n;this[fc("0x90")][fc("0xe4")](i,o)}[fc("0x14f")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0x90")].get(o)||this[fc("0x20")][fc("0x118")](t+":"+n)}[fc("0x122")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t.start.isBefore(e[fc("0x2")])?1:-1)),this[fc("0x10a")][fc("0x13b")]((e=>{for(const n of t){let t;t=n[fc("0x166")][fc("0x112")]&&n[fc("0x166")][fc("0x179")]==n.start[fc("0x132")]?e[fc("0xdc")](n[fc("0x2")].nodeAfter,"on"):e.createSelection(n),this[fc("0x10a")][fc("0xc9")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x10a")][fc("0x13b")]((n=>{const{commandName:o,commandParams:i=[]}=e,r=t.map((t=>(Ec(t)&&(t=this._model[fc("0x42")](t.end)),t)))[fc("0xc3")]((t=>fc("0x10f")!==t[fc("0xa7")][fc("0xfd")]));if(r.length<1)return;const x=Array[fc("0x161")](this[fc("0x10a")][fc("0x54")][fc("0x19")][fc("0x10c")]())[fc("0x4e")]((t=>s.LiveRange.fromRange(t)));n[fc("0xfa")](r);for(const t of this[fc("0xf0")].commands[fc("0x141")]())t[fc("0x67")]();i.push({forceDefaultExecution:!0}),this[fc("0xf0")][fc("0xb6")](o,...i);const a=x.filter((t=>fc("0x10f")!=t.root.rootName));a[fc("0x140")]>0&&n[fc("0xfa")](a);for(const t of x)t[fc("0x78")]()}))},o=(t,e)=>1==t[fc("0x140")]&&1==e[fc("0x140")]&&t[0][fc("0x166")].isEqual(e[0][fc("0x2")]),i=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x10a")])?[t,e]:Ac(e,t,o,n,this[fc("0x10a")])?[e,t]:null;this[fc("0x20")].set(fc("0xba"),t),this[fc("0x20")].set(fc("0x157"),e),this[fc("0x20")].set(fc("0x1d"),o),this[fc("0x20")][fc("0xe4")](fc("0x4a"),i),this._defaultCallbacks[fc("0xe4")]("deletion:accept",e),this[fc("0x20")].set(fc("0x174"),t),this._defaultCallbacks[fc("0xe4")](fc("0xe9"),o),this[fc("0x20")][fc("0xe4")](fc("0x163"),i),this[fc("0x20")][fc("0xe4")](fc("0x31"),n),this._defaultCallbacks.set("formatInline:discard",t),this._defaultCallbacks[fc("0xe4")](fc("0xc4"),o),this[fc("0x20")].set(fc("0x70"),t),this[fc("0x20")][fc("0xe4")](fc("0x7f"),n),this._defaultCallbacks[fc("0xe4")]("formatBlock:discard",t),this._defaultCallbacks[fc("0xe4")](fc("0x12a"),o),this[fc("0x20")][fc("0xe4")]("formatBlock:chain",t),this._defaultCallbacks[fc("0xe4")](fc("0x12b"),t),this._defaultCallbacks[fc("0xe4")](fc("0xd2"),((t,e)=>{if(!e)return;const n=this[fc("0xf0")][fc("0xf2")][fc("0x118")](hc);this[fc("0x10a")][fc("0x13b")]((o=>{if(fc("0x8d")==e[fc("0x52")])for(const n of t){const t=n[fc("0x2")][fc("0x132")],i=e.oldValue;o[fc("0xcc")](t,i)}else if(n._isBlockAttribute(e[fc("0x52")]))for(const n of t)void 0!==e.oldValue?o[fc("0xdb")](e[fc("0x52")],e[fc("0x153")],n[fc("0x2")].nodeAfter):o[fc("0x55")](e[fc("0x52")],n.start[fc("0x132")]);else for(const n of t)e[fc("0x153")]?o[fc("0xdb")](e.key,e[fc("0x153")],n):o[fc("0x55")](e[fc("0x52")],n)}))})),this[fc("0x20")][fc("0xe4")](fc("0x5b"),o)}}function bc(t,e,n){for(const o of e[fc("0x179")][fc("0x11e")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0xa7")]==o)return!1;if(!n[fc("0xdf")](o))return!1;if(t[fc("0xd8")](o)||t[fc("0xa6")](o))return!0}return!1}function Ec(t){return t[fc("0x166")][fc("0x179")]==t[fc("0x2")][fc("0x132")]&&t[fc("0x166")][fc("0x6")]}function _c(t,e,n,o){const i=t=>!t[fc("0x3")].is(fc("0x139"))&&!o.isObject(t[fc("0x3")]),r=t.start[fc("0xaf")](i),s=t[fc("0x166")].getLastMatchingPosition(i,{direction:"backward"});return!(t[fc("0x2")].isEqual(r)&&t.end[fc("0x111")](s)||(r[fc("0x11b")](s)?n[fc("0x156")](e,{range:n[fc("0x42")](r,s)}):n[fc("0x24")](e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t[fc("0x2")][fc("0x132")];return e&&e.is(fc("0x92"))}function Cc(t,e){const n=e[fc("0x5c")].isObject(t)||e.schema[fc("0xc8")](t);return e[fc("0x42")](e[fc("0xe2")](t,fc("0xd5")),n?e[fc("0x2e")](t):e[fc("0xe2")](t,"end"))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n[fc("0x166")][fc("0x111")](o[fc("0x2")]))return!0;if(t[fc("0x75")]!=e[fc("0x75")])return!1;if(!n[fc("0x166")][fc("0x116")](o[fc("0x2")]))return!1;const r=i[fc("0x42")](n[fc("0x166")],o.start)[fc("0x178")]();for(const t of r)if([fc("0xf8"),"elementEnd"][fc("0xb8")](t.type)&&i[fc("0x5c")][fc("0xa6")](t.item))return!1;return!0}function kc(t,e){return!(!t[fc("0x25")]||!e[fc("0x25")])&&Go(t[fc("0x10e")],e[fc("0x10e")])}function Ic(t,e){const n=Sc(t[fc("0x10e")]),o=Sc(e);if(!t[fc("0x25")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object[fc("0x126")]({},t);return delete e[fc("0x73")],delete e[fc("0xe0")],e}const vc=["acceptSuggestion","destroy","canEditAt","_acceptCommand","locale","isEnabled","get","view","_pendingAction","_editor","getRanges","model","_removePendingAction","_discardCommand","discardSuggestion","commands","stopListening","PendingActions","PENDING_ACTION_SUGGESTION","canAccept","unbind","_setPendingAction","execute","listenTo","change:isDirty","add","commentThreadController","plugins","bind","isDirty","canDiscard"];var Rc,Nc;Rc=vc,Nc=307,function(t){for(;--t;)Rc.push(Rc.shift())}(++Nc);const Lc=function(t,e){return vc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Lc("0xe")]=e,this[Lc("0xa")]=n,this[Lc("0x1d")]=o,this[Lc("0xc")]=t,this[Lc("0x6")]=t[Lc("0x12")].get(Lc("0x3")),this[Lc("0x10")]=t[Lc("0x12")][Lc("0x9")](Lc("0x11")),this[Lc("0xa")].bind(Lc("0x8")).to(this[Lc("0x6")],this._discardCommand,((t,e)=>t||e)),this[Lc("0xa")][Lc("0x0")](Lc("0x16")).to(this._acceptCommand,Lc("0x8"),(t=>t&&this[Lc("0xc")][Lc("0xe")][Lc("0x5")](e[Lc("0xd")]()))),this[Lc("0xa")][Lc("0x0")]("canDiscard").to(this._discardCommand,"isEnabled",(t=>t&&this._editor[Lc("0xe")].canEditAt(e[Lc("0xd")]()))),this[Lc("0xb")]=null,n[Lc("0x1")]&&this[Lc("0x18")](),this[Lc("0x1a")](n,Lc("0x3"),(()=>this[Lc("0x3")]())),this[Lc("0x1a")](n,Lc("0x11"),(()=>this.discardSuggestion())),this[Lc("0x1a")](n,Lc("0x1b"),(()=>{n[Lc("0x1")]?this[Lc("0x18")]():this[Lc("0xf")]()}))}[Lc("0x3")](){this[Lc("0x6")][Lc("0x19")](this[Lc("0xe")].id)}[Lc("0x11")](){this[Lc("0x10")][Lc("0x19")](this.model.id)}[Lc("0x4")](){this[Lc("0xa")][Lc("0x17")](Lc("0x8")),this[Lc("0xa")][Lc("0x17")](Lc("0x16")),this[Lc("0xa")][Lc("0x17")](Lc("0x2")),this[Lc("0x13")](),this.commentThreadController[Lc("0x4")](),this[Lc("0xb")]&&this._removePendingAction()}[Lc("0x18")](){const t=Qo(this[Lc("0xc")][Lc("0x7")],Lc("0x15"));this[Lc("0xb")]=this[Lc("0xc")][Lc("0x1e")][Lc("0x9")](Lc("0x14"))[Lc("0x1c")](t)}[Lc("0xf")](){null!==this[Lc("0xb")]&&this[Lc("0xc")][Lc("0x1e")][Lc("0x9")](Lc("0x14")).remove(this[Lc("0xb")]),this[Lc("0xb")]=null}}const wc=["updateComment","addComment","canAccept","_createCommentViews","hasDirtyComment","commentThread","setData","length","_model","element","set","_localUser","assign","destroy","isEnabled","isActive","disabledSubmit","isReadOnly","focus","locale","isDirty","showInput","editorConfig","commentThreadInputView","value","editor","_config","authoredAt","bind","submit","delegate","commentsListView","fire","removeComment","commentInputView"];var Oc,Fc;Oc=wc,Fc=419,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends i.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[Dc("0x18")]=null,this[Dc("0xb")](Dc("0x10"),!1),this.set(Dc("0x1c"),e.authoredAt),this[Dc("0x1d")](Dc("0x1c")).to(e),this[Dc("0xb")]("descriptionParts",[]),this[Dc("0xb")](Dc("0x15"),!1),this[Dc("0xb")](Dc("0xf"),!1),this.set(Dc("0x3"),!1),this[Dc("0xb")]("canDiscard",!1),this[Dc("0x9")]=e,this[Dc("0xc")]=n,this._config=o,o.disableComments?this[Dc("0xb")](Dc("0x8"),1):this[Dc("0x4")]()}focus(){this[Dc("0xa")][Dc("0x13")]()}[Dc("0xe")](){this.commentsListView&&this.commentsListView[Dc("0xe")](),this[Dc("0x18")]&&this.commentThreadInputView[Dc("0xe")](),super[Dc("0xe")]()}[Dc("0x4")](){const{CommentsListView:t}=this[Dc("0x1b")];this[Dc("0x20")]=new t(this[Dc("0x14")],this[Dc("0x9")].commentThread,Object[Dc("0xd")]({CommentView:this[Dc("0x1b")].CommentView},this[Dc("0x1b")])),this[Dc("0x20")][Dc("0x1f")](Dc("0x22")).to(this),this[Dc("0x20")].delegate(Dc("0x1")).to(this),this[Dc("0x20")][Dc("0x1d")](Dc("0x10")).to(this),this.set("length",this[Dc("0x20")][Dc("0x8")]+1),this[Dc("0x1d")](Dc("0x8")).to(this[Dc("0x20")],Dc("0x8"),(t=>t+1)),this[Dc("0x18")]=this._createCommentThreadInputView(),this.on(Dc("0x22"),(()=>this[Dc("0x13")]())),this[Dc("0x1d")]("isDirty").to(this[Dc("0x20")],Dc("0x5"),this.commentThreadInputView[Dc("0x0")],"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Dc("0x1b")],e=new t(this.locale,this[Dc("0xc")],this._config[Dc("0x17")]),n=e.commentInputView;return e[Dc("0x1d")](Dc("0x16")).to(this,Dc("0x10"),this[Dc("0x9")][Dc("0x6")],Dc("0x12"),n,Dc("0x19"),((t,e,n)=>!!n||t&&!e)),n.on(Dc("0x1e"),((t,e)=>{this[Dc("0x21")](Dc("0x2"),e),n[Dc("0x1a")][Dc("0x7")]("")})),n.on("cancel",(()=>this.focus())),n[Dc("0x1d")](Dc("0x11")).to(this._model[Dc("0x6")],Dc("0x12")),e}}const Pc=["ck-annotation__info","description","commentThreadInputView","innerHTML","acceptSuggestion","descriptionParts","set","querySelector","div","</p>","creator","discardSuggestion","isActive","join","getTemplate","title","ck-annotation__user","acceptButton","bind","map","ck-suggestion--accept","commentThread","locale","ck-annotation","time","canAccept","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion-wrapper","getExternalSuggestionNote","element","source","createElement",'<span class="ck-suggestion-color" style="background-color: ',"EXTERNAL_AVATAR","ck-suggestion__info-name","author","ck-suggestion__info",".ck-annotation__content-wrapper","authoredAt","innerText","value","delegate","ck-annotation__main","isExternal",'"></span>',"<p>","name","attributes","render","extendTemplate","discardButton","ck-annotation__info-time","Accept suggestion","_config","isEnabled","_model","check",'" title="',"EXTERNAL_SUGGESTION","span","ck-annotation__actions","bindTemplate","ck-suggestion__actions","Discard suggestion","_createButton","@external","push","_descriptionElement","getUserViewNotificationText","split","ck-suggestion--disabled-comments","content","fire",'<span class="ck-suggestion-type">',"commentsListView","type","execute","ck-suggestion","editorReady","ck-suggestion-wrapper--active","ck-suggestion-","editorDestroyed","canDiscard","importWord","userView"];var Uc,jc;Uc=Pc,jc=286,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,o,i){super(e,n,o,i),this[Gc("0x3c")]("type",""),this[Gc("0x48")]("type").to(this,Gc("0x3b"),(t=>t&&t[0]?t[0][Gc("0x2c")]:"")),this[Gc("0x48")]("description").to(this,Gc("0x3b"),this,Gc("0x42"),((t,e)=>{let n="";for(const e of t)n+=Gc("0xe")+Hc(e[Gc("0x28")],e.color)+Gc("0x3f");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[Gc("0x24")]=null,this[Gc("0x47")]=this[Gc("0x21")](Qo(e,Gc("0x15")),t.icons[Gc("0x19")],Gc("0x4a"),Gc("0x3a"),"sw"),this[Gc("0x47")].bind(Gc("0x17")).to(this,Gc("0x4f")),this[Gc("0x13")]=this[Gc("0x21")](Qo(e,Gc("0x20")),t.icons.cancel,"ck-suggestion--discard",Gc("0x41"),"sw"),this.discardButton[Gc("0x48")](Gc("0x17")).to(this,Gc("0x33")),this[Gc("0x35")]=new r.UserView(e,this[Gc("0x18")].author,this[Gc("0x25")]()),this[Gc("0x35")][Gc("0x12")]({attributes:{class:["ck-suggestion__user",Gc("0x46")]}}),this.setTemplate(this[Gc("0x44")]())}[Gc("0x44")](){const t=this[Gc("0x1e")],e=[{tag:"div",attributes:{class:[Gc("0x5"),Gc("0x36")]},children:[{tag:"span",children:[{text:this[Gc("0x35")][Gc("0xf")]}],attributes:{class:[Gc("0x3"),"ck-annotation__info-name"]}},{tag:Gc("0x4e"),attributes:{datetime:t.to(Gc("0x7")),class:["ck-comment__info-time",Gc("0x14")]},children:[{text:t.to(Gc("0x7"),(t=>this[Gc("0x16")].formatDateTime(t)))}]}]},{tag:Gc("0x3e"),attributes:{class:[Gc("0x1f"),Gc("0x1d")]},children:[this[Gc("0x47")],this[Gc("0x13")]]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this._model[Gc("0xc")]&&e[Gc("0x23")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this[Gc("0x52")]()}]});const n={tag:Gc("0x3e"),attributes:{class:[Gc("0x51"),t.if(Gc("0x42"),Gc("0x30")),t.to(Gc("0x2c"),(t=>Gc("0x31")+t)),this[Gc("0x16")].disableComments&&Gc("0x27")],"data-suggestion-id":this._model.id,"data-thread-id":this[Gc("0x18")][Gc("0x4b")].id,"data-author-id":this._model[Gc("0x4")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[Gc("0x2e"),Gc("0x4d")]},children:[this[Gc("0x35")],{tag:Gc("0x3e"),attributes:{class:["ck-suggestion__main",Gc("0xb")]},children:e}]}]};return this.commentsListView&&this.commentThreadInputView&&(n.children.push(this[Gc("0x2b")],this[Gc("0x38")]),this[Gc("0x2b")][Gc("0xa")]("editorReady").to(this),this[Gc("0x2b")][Gc("0xa")](Gc("0x32")).to(this),this[Gc("0x38")].delegate(Gc("0x2f")).to(this),this.commentThreadInputView[Gc("0xa")]("editorDestroyed").to(this)),n}[Gc("0x11")](){super.render(),this[Gc("0x24")]=this[Gc("0x53")][Gc("0x3d")](Gc("0x6")),this[Gc("0x24")][Gc("0x39")]=this[Gc("0x37")],this.on("change:description",((t,e,n)=>{this[Gc("0x24")][Gc("0x39")]=n}))}[Gc("0x21")](t,e,n,o,r){const s=new i.ButtonView(this[Gc("0x4c")]);return s[Gc("0x3c")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Gc("0x12")]({attributes:{class:n}}),s.on(Gc("0x2d"),(()=>{this[Gc("0x29")](o,this[Gc("0x18")].id)})),s}getExternalSuggestionNote(){return Gc("0x34")===this[Gc("0x18")][Gc("0x10")][Gc("0x22")].source?Qo(this.locale,Gc("0x50")):Qo(this[Gc("0x4c")],Gc("0x1b"))}[Gc("0x25")](){return this._model[Gc("0xc")]?Gc("0x34")===this[Gc("0x18")][Gc("0x10")][Gc("0x22")][Gc("0x54")]?Qo(this[Gc("0x4c")],"EXTERNAL_IMPORT_WORD_AVATAR",this._model[Gc("0x40")][Gc("0xf")]):Qo(this[Gc("0x4c")],Gc("0x2"),this[Gc("0x18")][Gc("0x40")][Gc("0xf")]):null}}function Hc(t,e){let n="";return n+=t[Gc("0x26")]("*")[Gc("0x49")](((t,e)=>e%2!=0?Gc("0x2a")+zc(t)+"</span>":zc(t)))[Gc("0x43")](""),e&&(n+=Gc("0x1")+e[Gc("0x9")]+Gc("0x1a")+e[Gc("0x45")]+Gc("0xd")),n}function zc(t){const e=document[Gc("0x0")](Gc("0x1c"));return e[Gc("0x8")]=t,e.innerHTML}const Wc=["_viewToController","_unbindEditors","comments.maxCommentCharsWhenCollapsed","listenTo","editor","getAllAdjacentSuggestions","head","createCommentThreadController","descriptionParts","Accept all suggestions","length","commandName","map","_handleSuggestionControllerDelayed","actionView","createAnnotationView","change:activeAnnotations","separator","activeAnnotations","isInContent","arrowView","isEnabled","discardButton","CommentsUI","values","_handleControllerBuffer","comments.editorConfig","editing","trackChanges","model","acceptSelectedSuggestions","discardSelectedSuggestions","isOn","comments","getByInnerView","filter","isDirty","_bindAnnotationToEditors","destroy","_disableComments","type","_initializeController","clear","_annotationViews","commentThread","_descriptionFactory","Track changes","_createUIButton","hasSuggestion","bind","plugins","Discard all selected suggestions","TrackChangesUI","pluginName","suggestionLoaded","get","_suggestionToController","define","activeMarkers","EditorAnnotations","keys","comments.maxThreadTotalWeight","previous","addSourceCollector","suggestion-","has","config","isMultiRange","_refreshActiveMarkers","buttonView","from","set","stopListening","mainView","view","componentFactory","createAnnotation","focus","delete","some","remove","getJoined","execute","add","reduce","trackChanges.SuggestionThreadView","locale","getSuggestion","size","comments.maxCommentsWhenCollapsed","getDescriptions","CommentsRepository","push","refreshSelectedViews","change:previous","innerView","SuggestionThreadView","suggestionChanged","Accept all selected suggestions","CommentView","button","Annotations","trackChanges.disableComments","_updateController","Discard all suggestions","commands","unbind","_destroyController","acceptAllSuggestions","TrackChangesEditing"];var Kc,qc;Kc=Wc,qc=322,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return Wc[t-=0]};class $c extends t.Plugin{static get requires(){return[hc,r.Users,Xc("0x63"),"Annotations",Xc("0x43")]}static get[Xc("0x3d")](){return Xc("0x3c")}constructor(t){super(t),this._suggestionToController=new Map,this[Xc("0x8")]=new Map,this._annotationViews=new Map,this[Xc("0x21")]=new Map;const e=this[Xc("0xc")][Xc("0x4a")];e[Xc("0x41")](Xc("0x5d"),Vc),e[Xc("0x41")]("trackChanges.disableComments",!1),this[Xc("0x2f")]=e[Xc("0x3f")](Xc("0x0"))}[Xc("0x15")](t,e){0===this[Xc("0x21")][Xc("0x60")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x21")]){const n=this[Xc("0x40")].has(t);n||e?n&&e&&this[Xc("0x5")](t):this._initializeController(t)}this[Xc("0xc")][Xc("0x3a")][Xc("0x3f")]("EditorAnnotations")[Xc("0x65")](),this[Xc("0x4c")](),this[Xc("0x21")][Xc("0x32")]()}),10),this[Xc("0x21")][Xc("0x4f")](t,e)}init(){const t=this[Xc("0xc")],e=t.plugins[Xc("0x3f")](Xc("0x7")),n=t[Xc("0x3a")][Xc("0x3f")](Xc("0x6d")),o=t[Xc("0x3a")][Xc("0x3f")](Xc("0x43")),i=t.plugins[Xc("0x3f")](Xc("0x63"));t.ui[Xc("0x53")][Xc("0x5b")]("trackChanges",(t=>this[Xc("0x37")](t))),o[Xc("0x47")]((()=>{const t=[];for(const[e,n]of Array[Xc("0x4e")](this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),i=[];for(const t of o){if(!t[Xc("0x1b")])continue;if(t[Xc("0x4b")]){i[Xc("0x64")](...t.getRanges());continue}const e=t.getFirstRange();if(i[Xc("0x12")]>0){const t=i[0][Xc("0x59")](e);if(t){i[0]=t;continue}}i[Xc("0x64")](e)}t[Xc("0x64")]([n[Xc("0x52")],i])}return t})),this[Xc("0xb")](e,Xc("0x3e"),((t,e)=>{this[Xc("0xb")](e,Xc("0x66"),((t,n,o,i)=>{e[Xc("0x1b")]&&(null==o?(this[Xc("0x1")](i.head),this._handleSuggestionControllerDelayed(e,!1)):(this._updateController(o.head),null==i&&this[Xc("0x15")](e,!0)))})),null!==e[Xc("0x46")]?this._updateController(e[Xc("0xe")]):this[Xc("0x15")](e,!1)})),this[Xc("0xb")](e,"suggestionUnloaded",((t,e,n)=>{this[Xc("0x50")](e,Xc("0x66")),this[Xc("0x21")][Xc("0x56")](e),this[Xc("0x40")][Xc("0x49")](e)&&this[Xc("0x5")](e),n&&this._updateController(n[Xc("0xe")])})),this[Xc("0xb")](e,Xc("0x69"),((t,e)=>{this[Xc("0x1")](e)})),this.listenTo(n,Xc("0x18"),(()=>{this[Xc("0x4c")]()})),this[Xc("0xb")](i,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Xc("0x38")](n))return;const i=e[Xc("0x5f")](n);this._suggestionToController[Xc("0x3f")](i)[Xc("0x52")][Xc("0x55")]()}),{priority:"lowest"})}[Xc("0x4c")](){const t=this.editor.plugins.get(Xc("0x6d")),e=this[Xc("0xc")][Xc("0x3a")][Xc("0x3f")]("TrackChangesEditing"),n=Array[Xc("0x4e")](t[Xc("0x1a")],(t=>t[Xc("0x67")]))[Xc("0x2b")]((t=>this[Xc("0x8")].has(t))),o=[];for(const t of n){const e=this[Xc("0x8")][Xc("0x3f")](t)[Xc("0x25")].getAllAdjacentSuggestions();o[Xc("0x64")](...e[Xc("0x5c")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Xc("0x42")]=o}_createUIButton(t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this.editor[Xc("0x3")][Xc("0x3f")](Xc("0x24")),r=Qo(t,Xc("0x36"));n[Xc("0x4d")][Xc("0x4f")]({tooltip:r,label:r,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-2023, 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.buttonView.bind(Xc("0x28")).to(o,"value"),n.buttonView.on("execute",(()=>{o[Xc("0x5a")](),this.editor.editing[Xc("0x52")][Xc("0x55")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Xc("0x19")},{type:Xc("0x6c"),model:{withText:!0,label:Qo(t,Xc("0x11")),commandName:Xc("0x6")}},{type:Xc("0x6c"),model:{withText:!0,label:Qo(t,Xc("0x6a")),commandName:Xc("0x26")}},{type:Xc("0x6c"),model:{withText:!0,label:Qo(t,Xc("0x2")),commandName:"discardAllSuggestions"}},{type:Xc("0x6c"),model:{withText:!0,label:Qo(t,Xc("0x3b")),commandName:Xc("0x27")}}];for(const t of x){let e={type:Xc("0x19")};if(t[Xc("0x25")]){const n=new i.Model(t[Xc("0x25")]),o=this[Xc("0xc")][Xc("0x3")][Xc("0x3f")](n[Xc("0x13")]);n[Xc("0x39")]("isOn",Xc("0x1d")).to(o,"value",Xc("0x1d")),e={type:t[Xc("0x30")],model:n}}s[Xc("0x5b")](e)}(0,i.addListToDropdown)(n,s);const a=x[Xc("0x2b")]((t=>null!=t[Xc("0x25")]))[Xc("0x14")]((t=>this[Xc("0xc")].commands[Xc("0x3f")](t[Xc("0x25")].commandName))),c=n[Xc("0x4d")];return c[Xc("0x16")].unbind(Xc("0x1d")),c[Xc("0x1c")][Xc("0x4")](Xc("0x1d")),c.actionView[Xc("0x39")](Xc("0x1d")).to(o,Xc("0x1d")),c[Xc("0x1c")][Xc("0x39")](Xc("0x1d")).toMany(a,Xc("0x1d"),((...t)=>t[Xc("0x57")]((t=>t)))),n.on(Xc("0x5a"),(t=>{this[Xc("0xc")][Xc("0x5a")](t.source.commandName),this.editor[Xc("0x23")][Xc("0x52")].focus()})),n}[Xc("0x31")](t){const e=this[Xc("0xc")],n=e[Xc("0x4a")],o=e[Xc("0x3a")][Xc("0x3f")](Xc("0x6d")),i=e[Xc("0x3a")][Xc("0x3f")](Xc("0x63")),s=e[Xc("0x3a")][Xc("0x3f")](Xc("0x43")),x=e[Xc("0x3a")][Xc("0x3f")](r.Users).me,a=n[Xc("0x3f")](Xc("0x24"))[Xc("0x68")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x3a")][Xc("0x3f")](Xc("0x1f"));let u,d;this[Xc("0x33")][Xc("0x49")](t.id)?(d=this[Xc("0x33")][Xc("0x3f")](t.id),u=d.mainView):(u=new a(e.locale,t,x,{disableComments:this._disableComments,editorConfig:n.get(Xc("0x22")),maxCommentsWhenCollapsed:n[Xc("0x3f")](Xc("0x61")),maxThreadTotalWeight:n[Xc("0x3f")](Xc("0x45")),maxCommentCharsWhenCollapsed:n[Xc("0x3f")](Xc("0xa")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Xc("0x5e"))),CommentView:n[Xc("0x3f")](Xc("0x29"))[Xc("0x6b")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on(Xc("0x5a"),(()=>{e[Xc("0x23")][Xc("0x52")][Xc("0x55")]()})),u[Xc("0x1e")].on(Xc("0x5a"),(()=>{e.editing[Xc("0x52")][Xc("0x55")]()})),d=o[Xc("0x17")](this[Xc("0xc")][Xc("0x5e")],u),d.bind(Xc("0x2c")).to(u,"isDirty"),d[Xc("0x39")](Xc("0x12")).to(u),d[Xc("0x39")](Xc("0x30")).to(u,"type",(t=>Xc("0x48")+t)),this[Xc("0x33")][Xc("0x4f")](t.id,d));const g=i[Xc("0xf")](t[Xc("0x34")],u),f=new Mc(e,t,u,g),m=t[Xc("0xd")]().filter((t=>t[Xc("0x1b")]));u[Xc("0x10")]=e.plugins[Xc("0x3f")](Xc("0x7"))[Xc("0x35")][Xc("0x62")](m),this[Xc("0x40")][Xc("0x4f")](t,f),this[Xc("0x8")].set(u,f);const h=o[Xc("0x54")]({view:d,target:()=>{const n=[],o=t[Xc("0xd")]()[Xc("0x2b")]((t=>t[Xc("0x1b")]));for(const t of o)n[Xc("0x64")](...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>"suggestion-"+f[Xc("0x52")][Xc("0x30")]});i[Xc("0x2d")](u,h),o[Xc("0x5b")](h),s.registerAnnotation(h)}[Xc("0x5")](t){const e=this[Xc("0xc")][Xc("0x3a")].get("CommentsRepository"),n=this[Xc("0xc")][Xc("0x3a")].get("Annotations"),o=this[Xc("0x40")][Xc("0x3f")](t),i=o[Xc("0x52")],r=n[Xc("0x2a")](i);e[Xc("0x9")](i),r&&n[Xc("0x58")](r),this[Xc("0x40")][Xc("0x56")](t),this[Xc("0x8")][Xc("0x56")](i),o[Xc("0x2e")]()}[Xc("0x1")](t){if(!t.isInContent||!this._suggestionToController[Xc("0x49")](t))return;const e=this[Xc("0xc")][Xc("0x3a")].get(Xc("0x7")),n=this[Xc("0x40")][Xc("0x3f")](t),o=t[Xc("0xd")]();n[Xc("0x52")][Xc("0x10")]=e[Xc("0x35")][Xc("0x62")](o)}[Xc("0x2e")](){for(const t of this._suggestionToController[Xc("0x44")]())this[Xc("0x5")](t);for(const t of this[Xc("0x33")][Xc("0x20")]())t[Xc("0x51")][Xc("0x2e")]();super[Xc("0x2e")]()}}var Zc,Yc,Jc=["addSuggestionData","requires","getSuggestion","get","getSuggestions","editor","Comments","addSuggestion","plugins","adapter"];Zc=Jc,Yc=337,function(t){for(;--t;)Zc.push(Zc.shift())}(++Yc);var Qc=function(t,e){return Jc[t-=0]};class tl extends t.Plugin{static get[Qc("0x4")](){return[hc,$c,Qc("0x9")]}static get pluginName(){return"TrackChanges"}set[Qc("0x2")](t){this.editor[Qc("0x1")][Qc("0x6")](hc)[Qc("0x2")]=t}get[Qc("0x2")](){return this[Qc("0x8")][Qc("0x1")][Qc("0x6")](hc)[Qc("0x2")]}[Qc("0x0")](t){return this.editor[Qc("0x1")].get(hc)[Qc("0x3")](t)}[Qc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Qc("0x8")][Qc("0x1")][Qc("0x6")](hc)[Qc("0x7")]({skipNotAttached:t,toJSON:e})}[Qc("0x5")](t){return this[Qc("0x8")][Qc("0x1")][Qc("0x6")](hc)[Qc("0x5")](t)}}const el=["init","appendChild","define","discardAllSuggestions","create","constructor","editorCreator","data","getDataWithAcceptedSuggestions","trackChangesData.editorCreator","TrackChangesEditing","createDocumentFragment","div","requires","addUser","_adapter","getFullData","getUser","getRootNames","trackChangesData","model","useAnonymousUser","name","track-changes-data-invalid-editor-creator","acceptAllSuggestions","document","editor","createElement","users","end","push","plugins","config","function","TrackChangesDataGetter","addSuggestionData","get","getRootsAttributes","reduce","Users","rootsAttributes","execute"];var nl,ol;nl=el,ol=352,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const il=function(t,e){return el[t-=0]},rl=["Pagination"];class sl extends t.Plugin{static get[il("0x27")](){return[hc]}static get pluginName(){return"TrackChangesData"}init(){const t=this[il("0xa")];if(t[il("0x10")][il("0x1c")](il("0x23"),(e=>{const n=t[il("0x4")][il("0x9")][il("0x2")]()[il("0x16")](((t,e)=>(t[e]="",t)),{});return t[il("0x1f")][il("0x1e")](n,e)})),il("0x11")!=typeof t[il("0x10")][il("0x14")](il("0x3"))[il("0x20")])throw new e.CKEditorError(il("0x7"))}[il("0x22")](t){return cl(this[il("0xa")],!0,t)}getDataWithDiscardedSuggestions(t){return cl(this[il("0xa")],!1,t)}}class xl extends t.Plugin{static get pluginName(){return il("0x12")}constructor(t){super(t),this.result=il("0xd")}[il("0x1a")](){this[il("0xa")][il("0xf")].get("CommentsRepository")[il("0x29")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[il("0xa")][il("0xf")][il("0x14")](il("0x24"))[il("0x29")]=null}}function al(t){return void 0!==t[il("0x15")]}async function cl(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,rl);o[il("0xf")][il("0xe")](hc,xl),o[il("0x18")]=al(t)?t[il("0x15")]():void 0;const i=document[il("0x25")](),s=t.config[il("0x14")](il("0x3"))[il("0x20")],x=await s(o,(()=>function(t){const e=document[il("0xb")](il("0x26"));return t[il("0x1b")](e),e}(i)));!function(t,e){const n=t[il("0x4")][il("0x9")][il("0x2")]()[il("0x16")](((e,n)=>(e[n]=t[il("0x21")][il("0x14")]({rootName:n}),e)),{}),o=t.plugins.get(il("0x17"))[il("0xc")].map((t=>({id:t.id,name:t[il("0x6")]}))),i=t[il("0xf")][il("0x14")](il("0x24")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[il("0xf")][il("0x14")]("Users"),s=e[il("0xf")][il("0x14")](il("0x24"));for(const t of o)r[il("0x1")](t.id)||r[il("0x28")](t);r.me||r[il("0x5")]();for(const t of i)s[il("0x13")](t);e[il("0x21")].set(n)}(t,x),x[il("0x19")](il(e?"0x8":"0x1d"));const a=al(x)?x[il("0x0")](n):x[il("0x21")][il("0x14")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|