@ckeditor/ckeditor5-track-changes 37.0.1 → 37.1.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.
Files changed (162) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -0
  49. package/lang/translations/ar.po +15 -1
  50. package/lang/translations/az.po +11 -1
  51. package/lang/translations/bg.po +11 -1
  52. package/lang/translations/bn.po +11 -1
  53. package/lang/translations/ca.po +11 -1
  54. package/lang/translations/cs.po +13 -1
  55. package/lang/translations/da.po +11 -1
  56. package/lang/translations/de.po +11 -1
  57. package/lang/translations/el.po +11 -1
  58. package/lang/translations/en-au.po +11 -1
  59. package/lang/translations/en.po +10 -0
  60. package/lang/translations/es.po +12 -1
  61. package/lang/translations/et.po +11 -1
  62. package/lang/translations/fi.po +11 -1
  63. package/lang/translations/fr.po +12 -1
  64. package/lang/translations/gl.po +11 -1
  65. package/lang/translations/he.po +13 -1
  66. package/lang/translations/hi.po +11 -1
  67. package/lang/translations/hr.po +12 -1
  68. package/lang/translations/hu.po +11 -1
  69. package/lang/translations/id.po +10 -1
  70. package/lang/translations/it.po +12 -1
  71. package/lang/translations/ja.po +10 -1
  72. package/lang/translations/ko.po +10 -1
  73. package/lang/translations/lt.po +13 -1
  74. package/lang/translations/lv.po +12 -1
  75. package/lang/translations/ms.po +10 -1
  76. package/lang/translations/nl.po +11 -1
  77. package/lang/translations/no.po +11 -1
  78. package/lang/translations/pl.po +13 -1
  79. package/lang/translations/pt-br.po +12 -1
  80. package/lang/translations/pt.po +12 -1
  81. package/lang/translations/ro.po +12 -1
  82. package/lang/translations/ru.po +13 -1
  83. package/lang/translations/sk.po +13 -1
  84. package/lang/translations/sr-latn.po +12 -1
  85. package/lang/translations/sr.po +33 -22
  86. package/lang/translations/sv.po +11 -1
  87. package/lang/translations/th.po +10 -1
  88. package/lang/translations/tk.po +11 -1
  89. package/lang/translations/tr.po +11 -1
  90. package/lang/translations/tt.po +10 -1
  91. package/lang/translations/uk.po +13 -1
  92. package/lang/translations/ur.po +11 -1
  93. package/lang/translations/vi.po +10 -1
  94. package/lang/translations/zh-cn.po +10 -1
  95. package/lang/translations/zh.po +10 -1
  96. package/package.json +3 -3
  97. package/src/commands/acceptsuggestioncommand.js +1 -1
  98. package/src/commands/discardsuggestioncommand.js +1 -1
  99. package/src/commands/executeonallsuggestionscommand.js +1 -1
  100. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  101. package/src/commands/trackchangescommand.js +1 -1
  102. package/src/index.d.ts +1 -1
  103. package/src/integrations/alignment.js +1 -1
  104. package/src/integrations/basicstyles.js +1 -1
  105. package/src/integrations/blockquote.js +1 -1
  106. package/src/integrations/ckbox.js +1 -1
  107. package/src/integrations/codeblock.js +1 -1
  108. package/src/integrations/comments.js +1 -1
  109. package/src/integrations/deletecommand.js +1 -1
  110. package/src/integrations/documentlist.js +1 -1
  111. package/src/integrations/documentlistproperties.js +1 -1
  112. package/src/integrations/entercommand.js +1 -1
  113. package/src/integrations/findandreplace.js +1 -1
  114. package/src/integrations/font.js +1 -1
  115. package/src/integrations/formatpainter.d.ts +13 -0
  116. package/src/integrations/formatpainter.js +23 -0
  117. package/src/integrations/heading.js +1 -1
  118. package/src/integrations/highlight.js +1 -1
  119. package/src/integrations/horizontalline.js +1 -1
  120. package/src/integrations/htmlembed.js +1 -1
  121. package/src/integrations/image.js +1 -1
  122. package/src/integrations/imagereplace.js +1 -1
  123. package/src/integrations/importword.js +1 -1
  124. package/src/integrations/indent.js +1 -1
  125. package/src/integrations/inputcommand.js +1 -1
  126. package/src/integrations/link.js +1 -1
  127. package/src/integrations/list.js +1 -1
  128. package/src/integrations/listproperties.js +1 -1
  129. package/src/integrations/mediaembed.js +1 -1
  130. package/src/integrations/mention.js +1 -1
  131. package/src/integrations/pagebreak.js +1 -1
  132. package/src/integrations/paragraph.js +1 -1
  133. package/src/integrations/removeformat.js +1 -1
  134. package/src/integrations/restrictededitingmode.js +1 -1
  135. package/src/integrations/shiftentercommand.js +1 -1
  136. package/src/integrations/standardeditingmode.js +1 -1
  137. package/src/integrations/style.js +1 -1
  138. package/src/integrations/table.js +1 -1
  139. package/src/integrations/tablecaption.js +1 -1
  140. package/src/integrations/tableclipboard.js +1 -1
  141. package/src/integrations/tablecolumnresize.js +1 -1
  142. package/src/integrations/tableheadings.js +1 -1
  143. package/src/integrations/tablemergesplit.js +1 -1
  144. package/src/integrations/tableofcontents.d.ts +13 -0
  145. package/src/integrations/tableofcontents.js +23 -0
  146. package/src/integrations/tableproperties.js +1 -1
  147. package/src/integrations/template.d.ts +13 -0
  148. package/src/integrations/template.js +23 -0
  149. package/src/integrations/title.js +1 -1
  150. package/src/integrations/undo.js +1 -1
  151. package/src/integrations/utils.js +1 -1
  152. package/src/suggestion.js +1 -1
  153. package/src/suggestiondescriptionfactory.js +1 -1
  154. package/src/trackchanges.js +1 -1
  155. package/src/trackchangesdata.js +1 -1
  156. package/src/trackchangesediting.js +1 -1
  157. package/src/trackchangesui.js +1 -1
  158. package/src/ui/suggestioncontroller.js +1 -1
  159. package/src/ui/view/basesuggestionthreadview.js +1 -1
  160. package/src/ui/view/suggestionthreadview.js +1 -1
  161. package/src/utils/common-translations.js +1 -1
  162. package/src/utils/utils.js +1 -1
@@ -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:* replace image URL":"*Format:* replace image URL","*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 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_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_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_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
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:* replace image URL":"*Format:* replace image URL","*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 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_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_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",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
2
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 s=e[o];if(void 0!==s)return s.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:()=>zx,TrackChanges:()=>xc,TrackChangesData:()=>fc,TrackChangesEditing:()=>Rx});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),a=n(995);const x=["editor","_enabledCommands","_disableUnsupportedCommands","forceDisabled","execute","TrackChangesCommand","commands","clearForceDisabled","isEnabled","value","refresh","affectsData","has"];var c,l;c=x,l=369,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return x[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x9")]=e,this[u("0x4")]=!1,this[u("0x5")]()}refresh(){this[u("0x3")]=!0}[u("0xc")](){this[u("0x4")]=!this.value,this.value?this._disableUnsupportedCommands():this._enableCommands()}[u("0xa")](){for(const t of this[u("0x8")][u("0x1")][u("0x1")]())t[u("0x6")]&&!this._enabledCommands[u("0x7")](t)&&t[u("0xb")](u("0x0"))}_enableCommands(){for(const t of this[u("0x8")][u("0x1")].commands())t[u("0x6")]&&!this[u("0x9")][u("0x7")](t)&&t[u("0x2")](u("0x0"))}}const g=["TrackChangesEditing","editor","execute","isEnabled","get","acceptSuggestion","track-changes-accept-suggestion-not-found","refresh","plugins"];var m,f;m=g,f=185,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x2")]()}[h("0x2")](){this[h("0x7")]=!0}[h("0x6")](t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(h("0x1"),this);this[h("0x5")][h("0x3")][h("0x8")](h("0x4"))[h("0x0")](n)}}const b=["isEnabled","plugins","editor","_suggestions","TrackChangesEditing","discardSuggestion","execute","refresh","get"];var E,_;E=b,_=420,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x6")]=e,this.refresh()}[T("0x1")](){this[T("0x3")]=!0}[T("0x0")](t){const n=this._suggestions[T("0x2")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);this[T("0x5")][T("0x4")][T("0x2")](T("0x7"))[T("0x8")](n)}}const y=["add","length","createPositionAt","getRanges","from","isArray","isCollapsed","isTouching","start","deletion","value","isIntersecting","color","isInContent","execute","change","createPositionAfter","schema","getRange","next","isObject","end","sort","splice","type","content","createRange"];var k,A;k=y,A=175,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x9")](((t,e)=>"deletion"==t[v("0xb")]&&"deletion"!=e[v("0xb")]?-1:v("0x17")!=t.type&&v("0x17")==e[v("0xb")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x4")];for(;o<t.length;){const i=t[o],a=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,a)||(s.push(e[v("0xd")](n,r[v("0x7")](i)?e.createPositionAfter(i):e[v("0x10")](i,v("0x8")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x3")](e),s=t.createPositionBefore(n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0xf")];){const o=n[v("0xa")](0,100);t[v("0x2")]((()=>{for(const t of o)t.isInContent&&e[v("0x1")](t.id)}))}}const w=["isEnabled","refresh","some","values","_suggestions","isInContent","from","_command","model"];var N,M;N=w,M=312,function(t){for(;--t;)N.push(N.shift())}(++M);const O=function(t,e){return w[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x1")]=e,this[O("0x7")]=n,this.refresh()}[O("0x4")](){const t=Array.from(this[O("0x7")].values())[O("0x5")]((t=>t[O("0x8")]));this.isEnabled=this[O("0x1")][O("0x3")]&&t}execute(){const t=R(Array[O("0x0")](this[O("0x7")][O("0x6")]()));L(this.editor[O("0x2")],this._command,t)}}const P=["_selectedSuggestions","_command","_suggestions","execute","size","values","model","document","isEnabled","selection","from"];var D,B;D=P,B=168,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this[j("0xa")]=n,this[j("0x8")]=new Set,this.refresh()}refresh(){const t=this.editor[j("0x3")][j("0x4")][j("0x6")],e=Array.from(this[j("0xa")][j("0x2")]());this[j("0x8")]=function(t,e){const n=Array[v("0x12")](t[v("0x11")]()),o=new Set;for(const s of e)if(s[v("0x0")])for(const e of n)for(const n of s.getMarkers()){const r=n[v("0x5")]();(e[v("0x19")](r)||t[v("0x14")]&&!s.isMultiRange&&s[v("0x6")]&&r.end[v("0x15")](e[v("0x16")]))&&o[v("0xe")](s)}return o}(t,e),this.isEnabled=this._command[j("0x5")]&&!!this._selectedSuggestions[j("0x1")]}[j("0x0")](){const t=R(Array[j("0x7")](this[j("0x8")]));L(this.editor[j("0x3")],this[j("0x9")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var V=Array.prototype.splice;const z=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(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=z,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=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 st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,at=rt.toString,xt=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,xt),n=t[xt];try{t[xt]=void 0;var o=!0}catch(t){}var s=at.call(t);return o&&(e?t[xt]=n:delete t[xt]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.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 mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(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 Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const wt=Lt(ot,"Map");const Nt=Lt(Object,"create");const Mt=function(){this.__data__=Nt?Nt(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 Pt=function(t){var e=this.__data__;if(Nt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Nt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Nt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(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])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(wt||J),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Vt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const zt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(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=zt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!wt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;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=Lt(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 se=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 s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var a=e[r],x=o?o(n[a],t[a],a,n,t):void 0;void 0===x&&(x=t[a]),s?ne(n,a,x):se(n,a,x)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const ae=function(t){return null!=t&&"object"==typeof t};const xe=function(t){return ae(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=xe(function(){return arguments}())?xe:function(t){return ae(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;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 Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return ae(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var we=Object.prototype.hasOwnProperty;const Ne=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,a=i?ie(t.length,String):[],x=a.length;for(var c in t)!e&&!we.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,x))||a.push(c);return a};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Ne(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const Ve=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const ze=function(t){return je(t)?Ne(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(e,ze(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,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}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),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const an=Fe(Object.getPrototypeOf,Object);const xn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=an(t);return e}:tn;const cn=function(t,e){return re(t,xn(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,ze,xn)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(wt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||wt&&Rn(new wt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const wn=ot.Uint8Array;const Nn=function(t){var e=new t.constructor(t.byteLength);return new wn(e).set(new wn(t)),e};const Mn=function(t,e){var n=e?Nn(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 Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Nn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Nn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(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 jn(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 Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(an(t))};const Vn=function(t){return ae(t)&&"[object Map]"==Sn(t)};var zn=Se&&Se.isMap;const Kn=zn?ke(zn):Vn;const qn=function(t){return ae(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var a,x=1&n,c=2&n,l=4&n;if(o&&(a=r?o(e,s,r,i):o(e)),void 0!==a)return a;if(!mt(e))return e;var u=ge(e);if(u){if(a=Ln(e),!x)return Ze(e,a)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,x);if(d==Zn||d==Jn||g&&!r){if(a=c||g?{}:Wn(e),!x)return c?cn(e,Ke(a,e)):sn(e,Ge(a,e))}else{if(!Yn[d])return r?e:{};a=Un(e,d,x)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,a),$n(e)?e.forEach((function(s){a.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){a.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?ze:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(a,r,t(s,n,o,r,e,i))})),a};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||ae(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\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))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const ao=io;var xo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=ao(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(xo,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(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(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,a=t;null!=a&&++s<r;){var x=bo(e[s]),c=n;if("__proto__"===x||"constructor"===x||"prototype"===x)return t;if(s!=i){var l=a[x];void 0===(c=o?o(l,x,a):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(a,x,c),a=a[x]}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 Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=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 vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,a=t.length,x=e.length;if(a!=x&&!(i&&x>a))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 ko:void 0;for(r.set(t,e),r.set(e,t);++u<a;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,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 Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,wo=Lo?Lo.valueOf:void 0;const No=function(t,e,n,o,s,r,i){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 wn(t),new wn(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 a=So;case"[object Set]":var x=1&o;if(a||(a=Io),t.size!=e.size&&!x)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(a(t),a(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(wo)return wo.call(t)==wo.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,a=un(t),x=a.length;if(x!=un(e).length&&!i)return!1;for(var c=x;c--;){var l=a[c];if(!(i?l in e:Mo.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 m=i;++c<x;){var f=t[l=a[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){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]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),a=ge(e),x=i?Po:Sn(t),c=a?Po:Sn(e),l=(x=x==Fo?Do:x)==Do,u=(c=c==Fo?Do:c)==Do,d=x==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):No(t,e,x,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!ae(e)&&!ae(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=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 Vo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const zo=function(t,e){return e.length<2?t:Wo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=zo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["push","accept","head","discard","createdAt","getMarkers","getMarkerNames","_saved","getContainedElement","onAccept","_onAccept","previous","isMultiRange","getAllAdjacentSuggestions","delete","nodeAfter","_onDiscard","removeAttribute","removeMarkers","author","attributes","clear","decorate","addMarker","removeMarker","creator","setAttribute","change","markers","authoredAt","size","getRanges","data","hasComments","reduce","subType","toJSON","map","filter","isInContent","add","getMultiRangeId","isIntersecting","addMarkerName","addRange","nodeBefore","getFirstMarker","set","onAttributesChange","getItems","_markerNames","length","getRange","commentThread","from","type","isIntersectingWithRange","_model","_onAttributesChange","onDiscard"];var $o,Jo;$o=Xo,Jo=193,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x2a")]=e[Qo("0x2a")],this[Qo("0x16")]=e[Qo("0x16")]||null,this[Qo("0x6")]=e.author,this.creator=e.creator||e.author,this.isExternal=Boolean(e[Qo("0x7")]&&e[Qo("0x7")]["@external"]),this[Qo("0x13")]=null,this._model=t,this._onAccept=e[Qo("0x38")],this[Qo("0x3")]=e[Qo("0x2e")],this[Qo("0x2d")]=e[Qo("0x23")],this._markerNames=new Set,this.createdAt=null,this.set(Qo("0x10"),null),this[Qo("0x22")]("attributes",e.attributes||{}),this[Qo("0x22")](Qo("0x3a"),null),this[Qo("0x22")]("next",null),this[Qo("0x22")](Qo("0x28"),null),this[Qo("0x22")](Qo("0x36"),!1),this.decorate(Qo("0x30")),this[Qo("0x9")](Qo("0x32"))}get head(){let t=this;for(;t[Qo("0x3a")];)t=t[Qo("0x3a")];return t}get[Qo("0x14")](){return!!this[Qo("0x28")]&&this[Qo("0x28")][Qo("0x26")]>0}get[Qo("0x3b")](){return 0!=this[Qo("0x25")][Qo("0x11")]&&6==Array[Qo("0x29")](this[Qo("0x25")])[0].split(":")[Qo("0x26")]}get[Qo("0x1a")](){return null!==this.getFirstMarker()}[Qo("0x1e")](t){this[Qo("0x25")][Qo("0x1b")](t)}[Qo("0x35")](){return Array[Qo("0x29")](this[Qo("0x25")])}getMarkers(){return this[Qo("0x35")]()[Qo("0x18")]((t=>this[Qo("0x2c")][Qo("0xf")].get(t)))[Qo("0x19")]((t=>t))}[Qo("0x21")](){return this[Qo("0x34")]()[0]||null}[Qo("0x5")](){this[Qo("0x2c")][Qo("0xe")]((t=>{for(const e of this.getMarkers())t[Qo("0xb")](e)})),this[Qo("0x25")][Qo("0x8")]()}[Qo("0xb")](t){this[Qo("0x2c")][Qo("0xe")]((e=>{e[Qo("0xb")](t)})),this._markerNames[Qo("0x1")](t)}[Qo("0x1f")](t){const e="suggestion:"+this.type+":"+this[Qo("0x16")]+":"+this.id+":"+this[Qo("0xc")].id+":"+Zo[Qo("0x1c")]();this[Qo("0x1e")](e),this[Qo("0x2c")][Qo("0xe")]((n=>{n[Qo("0xa")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x2b")](t){for(const e of this.getRanges())if(e[Qo("0x1d")](t))return!0;return!1}[Qo("0x12")](){return this[Qo("0x34")]()[Qo("0x18")]((t=>t[Qo("0x27")]()))}[Qo("0x24")](){return this[Qo("0x12")]()[Qo("0x15")](((t,e)=>[...t,...e[Qo("0x24")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0x21")]())||void 0===t?void 0:t[Qo("0x27")]())||null}[Qo("0x37")](){const t=this.getRanges();if(1!=t[Qo("0x26")])return null;const e=t[0],n=e.start[Qo("0x2")],o=e.end[Qo("0x20")];return n instanceof i.Element?n!=o?null:n:null}accept(){this[Qo("0x39")](this.getRanges(),this.data,this[Qo("0x7")]),this[Qo("0x5")]()}discard(){this[Qo("0x3")](this.getRanges(),this[Qo("0x13")],this[Qo("0x7")]),this.removeMarkers()}[Qo("0x0")](){const t=[];let e=this[Qo("0x31")];for(;e;)t[Qo("0x2f")](e),e=e.next;return t}[Qo("0xd")](t,e){const n=eo(this[Qo("0x7")]);_o(n,t,e),Go(n,this[Qo("0x7")])||(this[Qo("0x7")]=n,this[Qo("0x2d")](n))}[Qo("0x4")](t){const e=eo(this[Qo("0x7")]);qo(e,t),Go(e,this[Qo("0x7")])||(this.attributes=e,this[Qo("0x2d")](this[Qo("0x7")]))}[Qo("0x17")](){return{id:this.id,type:this.subType?this[Qo("0x2a")]+":"+this[Qo("0x16")]:this[Qo("0x2a")],authorId:this[Qo("0xc")].id,createdAt:this[Qo("0x33")],hasComments:this[Qo("0x14")],data:this[Qo("0x13")],attributes:this[Qo("0x7")]}}static[Qo("0x1c")](){return(0,e.uid)().substr(1,5)}}function Yo(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 font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_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":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_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["_schema","text","matchingCallback","previousSibling","checkChild","_itemLabels","_itemLabelsCallbacks","indexOf","deletion","_resolveDescriptionItems","getFirstRange","element","item","elementEnd","$1 $2","replace","ELEMENT_SPACE","addObject","length","label","data","registerDescriptionCallback","*Merge:* %0","isObject","type","*Insert:* %0","isEmpty","start","function","registerElementLabel","isEqual","elementStart","getDescriptions","get","softBreak","add","_addDescriptionItems","normal","push","name","match","quantity","Container","Object","getItemLabel","addContainer","removeObject","insertion","isInContent","nextSibling","*Remove:* %0","EmptyContainer","_locale","skip","end","_customCallbacks","remove"];var es,ns;es=ts,ns=266,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x11")]=[],this._itemLabels=new Map,this[os("0x19")]=[],this[os("0x13")]=t,this[os("0xe")]=e}[os("0x33")](t){const e=[];for(let n=0;n<t[os("0x25")];n++){const o=t[n];if(!o[os("0xa")])continue;let s=!1;for(const t of this[os("0x11")]){const n=t(o);if(n){os("0x2b")in n&&e[os("0x0")](n),s=!0;break}}if(!s){this[os("0x37")](e,o);const s=t[n+1];if(s&&!o[os("0x1d")]()[os("0x10")][os("0x31")](s[os("0x1d")]()[os("0x2e")])){const t=e[e[os("0x25")]-1],n=os("0x9")==o[os("0x2b")]?os("0x36"):"remove";t&&os("0x14")==t[os("0x2b")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x28")](t){this._customCallbacks[os("0x0")](t)}[os("0x30")](t,n,o=e.priorities[os("0x38")]){os("0x2f")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x18")].set(t,n)}getItemLabel(t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x15")](t)){n=e[os("0x26")];break}return n||(n=this._itemLabels[os("0x34")](t[os("0x1")])),n?n(e):1!==e?e+" "+t[os("0x1")]+"s":""+t[os("0x1")]}[os("0x37")](t,e){const n=e[os("0x1d")]().getWalker(),o="insertion"==e[os("0x2b")]?os("0x36"):os("0x12");for(const e of n){const s=e[os("0x1f")],r=t[t[os("0x25")]-1];if(s.is("$textProxy"))r&&r.type[os("0x1a")](os("0x4"))>-1&&t.pop(),r&&os("0x14")==r[os("0x2b")]?r[o]+=s[os("0x27")]:t[os("0x0")]({type:os("0x14"),add:"add"==o?s.data:"",remove:os("0x12")==o?s[os("0x27")]:""});else if(this[os("0x13")].isObject(s)){const i=s;if(r&&r.type[os("0x1a")](os("0x4"))>-1&&t.pop(),os("0x20")==e[os("0x2b")])continue;r&&r.type==o+os("0x5")&&r.element[os("0x1")]==i.name?r[os("0x3")]++:t[os("0x0")]({type:o+os("0x5"),element:i,quantity:1}),n[os("0xf")]((t=>!(os("0x20")==t[os("0x2b")]&&t.item==s)))}else if(this._schema[os("0x17")](s,"$text")||s.is(os("0x1e"),os("0x35"))){const n=s;if("add"==o&&os("0x32")==e.type||os("0x12")==o&&os("0x20")==e.type)continue;if(r&&-1==r[os("0x2b")][os("0x1a")](os("0x4"))){os("0x14")==r[os("0x2b")]&&(r[o]+="\n");continue}let i;if(i="add"==o?n[os("0xb")]&&!this[os("0x13")][os("0x2a")](n[os("0xb")])?n.nextSibling:null:n.previousSibling&&!this._schema[os("0x2a")](n[os("0x16")])?n[os("0x16")]:null,n[os("0x2d")]||i&&i.isEmpty){const e=i&&i[os("0x2d")]?i:n;r&&r[os("0x2b")]==o+os("0xd")&&r.element[os("0x1")]==e[os("0x1")]?r[os("0x3")]++:t[os("0x0")]({type:o+"EmptyContainer",element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0x1c")](t){const e=this._locale,n=[];for(const o of t){switch(o.type){case"text":if(o[os("0x36")]=o.add[os("0x22")](/(\S)\u000A+(\S)/g,os("0x21"))[os("0x22")](/\u000A/g,""),o[os("0x12")]=o.remove[os("0x22")](/(\S)\u000A+(\S)/g,os("0x21"))[os("0x22")](/\u000A/g,""),""!=o[os("0x36")]&&""!=o[os("0x12")]){n[os("0x0")]({type:"replace",content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x12")]+'"','"'+o.add+'"'])});continue}if(null!=o.add[os("0x2")](/^ +$/)){n[os("0x0")]({type:os("0x9"),content:Yo(e,os("0x2c"),Yo(e,os("0x23"),o[os("0x36")][os("0x25")]))});continue}if(null!=o.remove.match(/^ +$/)){n.push({type:os("0x1b"),content:Yo(e,"*Remove:* %0",Yo(e,os("0x23"),o[os("0x12")][os("0x25")]))});continue}if(""!=o.add){n[os("0x0")]({type:"insertion",content:Yo(e,os("0x2c"),'"'+o[os("0x36")]+'"')});continue}n[os("0x0")]({type:"deletion",content:Yo(e,"*Remove:* %0",'"'+o[os("0x12")]+'"')});continue;case"addEmptyContainer":case os("0x24"):n[os("0x0")]({type:"insertion",content:Yo(e,os("0x2c"),this[os("0x6")](o[os("0x1e")],o[os("0x3")]))});continue;case"removeEmptyContainer":case os("0x8"):n[os("0x0")]({type:os("0x1b"),content:Yo(e,os("0xc"),this.getItemLabel(o[os("0x1e")],o[os("0x3")]))});continue;case os("0x7"):n[os("0x0")]({type:"insertion",content:Yo(e,"*Split:* %0",this[os("0x6")](o[os("0x1e")],o[os("0x3")]))});continue;case"removeContainer":n.push({type:os("0x1b"),content:Yo(e,os("0x29"),this.getItemLabel(o[os("0x1e")],o[os("0x3")]))});continue}n.push(o)}return n}}const rs=["selection","afterInit","alignment","registerDescriptionCallback","FORMAT_ALIGN_TO_RIGHT","left","commandParams","FORMAT_JUSTIFY_TEXT","has","change","locale","document","plugins","getSelectedBlocks","FORMAT_ALIGN_TO_CENTER","model","right","value","markBlockFormat","schema","filter","*Format:* %0","editor","get","AlignmentEditing","checkAttribute","from","_descriptionFactory","FORMAT_ALIGN_TO_LEFT"];var is,as;is=rs,as=289,function(t){for(;--t;)is.push(is.shift())}(++as);const xs=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[xs("0x2")](){const t=this[xs("0x17")],e=t[xs("0xb")];if(!t[xs("0xd")][xs("0x9")](xs("0x19")))return;const n=t.plugins[xs("0x18")]("TrackChangesEditing");n.enableCommand(xs("0x3"),((e,o={})=>{let s=o.value;o[xs("0x12")]||(s="ltr"===t[xs("0xb")].contentLanguageDirection?"left":xs("0x11"));const r=Array[xs("0x1b")](this[xs("0x17")].model[xs("0xc")][xs("0x1")][xs("0xe")]())[xs("0x15")]((t=>function(t,e,n){const o=t.getAttribute(xs("0x3"))||null;return e[xs("0x1a")](t,xs("0x3"))&&n!=o}(t,this[xs("0x17")][xs("0x10")][xs("0x14")],s)));t.model[xs("0xa")]((()=>{for(const t of r)n[xs("0x13")](t,{commandName:xs("0x3"),commandParams:[{value:s}]})}))})),n[xs("0x1c")][xs("0x4")]((t=>{const{data:n}=t;if(n&&xs("0x3")==n.commandName){const t=n[xs("0x7")][0][xs("0x12")];return{type:"format",content:Yo(e,xs("0x16"),function(t){switch(t){case xs("0x6"):return Yo(e,xs("0x0"));case"right":return Yo(e,xs("0x5"));case"center":return Yo(e,xs("0xf"));case"justify":return Yo(e,xs("0x8"))}}(t))}}}))}}const ls=["span","isBlock","listItem","createUIElement","getAttribute","ck-suggestion-marker-","markerName","TrackChangesEditing","get","includes","toViewElement","isLimit","insert","createRangeOn","previousPosition","listIndent","parent","writer","consumable","mapper","isContent","name","item","bindElementToMarker","nextSibling","push","ck-suggestion-marker--active","plugins","toViewPosition","test","markerRange","getItems","type","activeMarkers","element"];var us,ds;us=ls,ds=263,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0xd")]())s.hasAttribute(t)&&o[gs("0x7")](n[gs("0x1e")](s));return o}function fs(t){const e=[];if(t.is(gs("0x10"),gs("0x13"))){let n=t.nextSibling;for(;n&&n.is(gs("0x10"),"listItem")&&n[gs("0x15")](gs("0x20"))>0;)e.push(n),n=n[gs("0x6")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x9")][gs("0x19")](gs("0x18"));return(s,r,i)=>{if(!i[gs("0x0")][gs("0xb")](r[gs("0xc")],s[gs("0x3")]))return;const a=r[gs("0xc")].getWalker(),x=r[gs("0xc")].start,c=t.model.schema;let l=null,u=null,d=!1,g=!1;for(const t of a){const e=t[gs("0x4")];d=d||c[gs("0x2")](e);const n=i.mapper[gs("0x1b")](e);if(n&&n.getCustomProperty("addHighlight"))return;"elementEnd"==t[gs("0xe")]&&c[gs("0x12")](e)&&!c[gs("0x1c")](e)&&(e.nextSibling||x.isAtEnd?l&&l[gs("0x21")]==e||(l=e,m(t[gs("0x1f")]),g=!0):u=u||t[gs("0x1f")])}function m(t){const s=i[gs("0x22")][gs("0x14")](gs("0x11"),{class:gs("0x16")+e}),a=i[gs("0x1")][gs("0xa")](t);n&&o[gs("0xf")][gs("0x1a")](r[gs("0x17")])&&i[gs("0x22")].addClass(gs("0x8"),s),i[gs("0x22")][gs("0x1d")](a,s),i[gs("0x1")][gs("0x5")](s,r[gs("0x17")])}d||g||!u||m(u)}}const ps=["FORMAT_CODE","registerDescriptionCallback","FORMAT_BOLD","model","underline","strikethrough","CodeEditing","FORMAT_ITALIC","superscript","get","SuperscriptEditing","plugins","afterInit","change","document","FORMAT_STRIKETHROUGH","SubscriptEditing","TrackChangesEditing","commandName","FORMAT_UNDERLINE","StrikethroughEditing","bold","editor","BoldEditing","locale","code","selection","*Format:* %0","format","slice","FORMAT_SUPERSCRIPT","ItalicEditing","subscript","forceValue","has"];var bs,Es;bs=ps,Es=465,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xd"),_s("0x15"),"UnderlineEditing",_s("0x1f"),_s("0xa"),_s("0x6"),_s("0x0")];class Cs extends t.Plugin{[_s("0x2")](){const t=this[_s("0xc")],e=t[_s("0x1c")],n=t.plugins[_s("0x22")](_s("0x7")),o=t[_s("0xe")];for(const o of Ts){if(!t[_s("0x1")][_s("0x18")](o))continue;const s=o[_s("0x13")](0,-7).toLowerCase(),r=t.commands.get(s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x4")][_s("0x10")];if(i.isCollapsed)return void t(o);const a=void 0!==o[_s("0x17")]?o[_s("0x17")]:!r.value;e[_s("0x3")]((()=>{const t=Array.from(i.getRanges());for(const o of t){const t=a?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:a}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x1a")]((n=>{const{data:s}=n;if(s&&s[_s("0x8")]===t)return s.commandParams[0].forceValue?{type:"format",content:Yo(o,_s("0x11"),e)}:{type:_s("0x12"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0xb"),Yo(o,_s("0x1b"))),s("italic",Yo(o,_s("0x20"))),s(_s("0x1d"),Yo(o,_s("0x9"))),s(_s("0xf"),Yo(o,_s("0x19"))),s(_s("0x1e"),Yo(o,_s("0x5"))),s(_s("0x16"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x21"),Yo(o,_s("0x14")))}}const ys=["schema","enableCommand","plugins","parent","model","markBlockFormat","document","_descriptionFactory","has","from","filter","editor","checkChild","forceValue","selection","commandParams","getSelectedBlocks","ELEMENT_BLOCK_QUOTE","BlockQuoteEditing","blockQuote","value","format","name","afterInit","change"];var ks,As;ks=ys,As=350,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x17")](){const t=this[vs("0xb")],e=t.locale;if(!t[vs("0x2")][vs("0x8")](vs("0x12")))return;const n=t[vs("0x2")].get("TrackChangesEditing"),o=this.editor.commands.get("blockQuote");n[vs("0x1")](vs("0x13"),((e,s={})=>{const r=this[vs("0xb")][vs("0x4")][vs("0x6")][vs("0xe")],i=s&&void 0!==s[vs("0xd")]?s[vs("0xd")]:!o[vs("0x14")];let a=[];if(i){const e=Array[vs("0x9")](r[vs("0x10")]())[vs("0xa")]((t=>Ss(t)||function(t,e){const n=e[vs("0xc")](t[vs("0x3")],vs("0x13")),o=e[vs("0xc")](["$root",vs("0x13")],t);return n&&o}(t,this.editor[vs("0x4")][vs("0x0")])));a=S(e,t[vs("0x4")])}else{const e=Array[vs("0x9")](r[vs("0x10")]())[vs("0xa")]((t=>Ss(t)));a=S(e,t[vs("0x4")])}t[vs("0x4")][vs("0x18")]((()=>{for(const t of a)n[vs("0x5")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vs("0x7")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x13")==n.commandName){const t=Yo(e,vs("0x11"));return n[vs("0xf")][0][vs("0xd")]?{type:vs("0x15"),content:Yo(e,"*Format:* %0",t)}:{type:vs("0x15"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ss(t){return vs("0x13")==t[vs("0x3")][vs("0x16")]}const Is=["get","plugins","afterInit","TrackChangesEditing","ckbox"];var Ls,ws;Ls=Is,ws=190,function(t){for(;--t;)Ls.push(Ls.shift())}(++ws);const Ns=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[Ns("0x2")](){const t=this.editor;t.commands[Ns("0x0")](Ns("0x4"))&&t[Ns("0x1")][Ns("0x0")](Ns("0x3")).enableCommand(Ns("0x4"))}}const Os=["enableCommand","afterInit","outdentCodeBlock","filter","label","parent","rootElement","find","selection","commandParams","document","forceValue","locale","registerElementLabel","has","language","languages","editor","ELEMENT_CODE_BLOCK","value","isLimit","config","getSelectedBlocks","indentCodeBlock","commands","*Format:* %0","change","codeBlock","get","plugins","commandName","schema","markBlockFormat","TrackChangesEditing","formatBlock","format","_descriptionFactory","blockName","checkChild"];var Fs,Ps;Fs=Os,Ps=407,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x17")](){const t=this[Ds("0x0")];if(!t.plugins[Ds("0x24")]("CodeBlock"))return;const e=t[Ds("0xc")][Ds("0xb")](Ds("0x10")),n=t[Ds("0x22")],o=t[Ds("0x4")][Ds("0xb")](Ds("0xa"))[Ds("0x26")],s=t[Ds("0x7")].get("codeBlock");e[Ds("0x16")](Ds("0x6")),e[Ds("0x16")](Ds("0x18")),e[Ds("0x16")]("codeBlock",((n,r={})=>{const i=t.model,a=t.model[Ds("0x20")][Ds("0x1e")],x=r&&void 0!==r[Ds("0x21")]?r[Ds("0x21")]:!s[Ds("0x2")];let c;r[Ds("0x25")]||(r[Ds("0x25")]=o[0][Ds("0x25")]),c=x?Array.from(a[Ds("0x5")]())[Ds("0x19")]((t=>{return js(t)||(e=t,n=i[Ds("0xe")],!e.is(Ds("0x1c"))&&!n[Ds("0x3")](e)&&n[Ds("0x15")](e[Ds("0x1b")],Ds("0xa")));var e,n})):Array.from(a[Ds("0x5")]()).filter((t=>js(t)));const l=S(c,i);i[Ds("0x9")]((()=>{for(const t of l)e[Ds("0xf")](t,{commandName:Ds("0xa"),commandParams:[{...r,forceValue:x}],formatGroupId:Ds("0x14")})}))})),e[Ds("0x13")][Ds("0x23")]("codeBlock",(t=>Yo(n,Ds("0x1"),t))),e[Ds("0x13")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x11")==s&&r&&Ds("0xa")==r[Ds("0xd")]){const t=r[Ds("0x1f")][0][Ds("0x25")],s=e(o[Ds("0x1d")]((e=>e[Ds("0x25")]===t))[Ds("0x1a")]);return r[Ds("0x1f")][0][Ds("0x21")]?{type:"format",content:Yo(n,Ds("0x8"),Yo(n,Ds("0x1"),1)+" ("+s+")")}:{type:Ds("0x12"),content:Yo(n,"*Remove format:* %0",Yo(n,Ds("0x1"),1))}}}))}}function js(t){return Ds("0xa")==t.name}const Us=["editor","has","plugins","get","TrackChangesEditing","enableCommand"];var Gs,Hs;Gs=Us,Hs=208,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{afterInit(){const t=this[Ws("0x2")];t.plugins[Ws("0x3")]("CommentsEditing")&&t[Ws("0x4")][Ws("0x5")](Ws("0x0"))[Ws("0x1")]("addCommentThread")}}var zs=n(181);const Ks=["document","buffer","high","end","unlock","enableCommand","removeMarker:suggestion:deletion","isCollapsed","data","getFirstRange","createRange","setSelection","delete","$graveyard","merge","uiElement","unbindElementFromMarkerName","showSuggestionHighlights","selection","TrackChangesEditing","markerName","lock","bind","modifySelection","rootName","batch","root","forward","get","editing","model","start","requires","deleteForward","detach","createSelection","mapper","remove","downcastDispatcher","editor","plugins"];var qs,Xs;qs=Ks,Xs=280,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x27")](){return[zs.Delete]}init(){const t=this[$s("0x5")],e=t[$s("0x6")][$s("0x23")]($s("0x1a"));e[$s("0xc")]($s("0x13"));const n=t.commands[$s("0x23")]($s("0x28"));e[$s("0xc")]($s("0x28"),((e,o={})=>{const s=t.model[$s("0x1")](t[$s("0x25")][$s("0x7")][$s("0x19")]);s[$s("0xe")]&&t[$s("0x25")][$s("0x1e")](s,{direction:$s("0x22"),unit:o.unit});const r=s[$s("0x10")](),a=i.LiveRange.fromRange(r);let x;e(o),x=$s("0x14")==a[$s("0x21")][$s("0x1f")]?t.model.createRange(r[$s("0x26")]):t[$s("0x25")][$s("0x11")](a[$s("0x26")],a[$s("0xa")]),a[$s("0x0")](),t[$s("0x25")].enqueueChange(n.buffer[$s("0x20")],(t=>{n[$s("0x8")][$s("0x1c")](),t[$s("0x12")](t[$s("0x11")](x[$s("0xa")])),n.buffer[$s("0xb")]()}))})),t[$s("0x24")].downcastDispatcher.on("addMarker:suggestion:deletion",hs(t,$s("0x15")),{priority:$s("0x9")}),t[$s("0xf")][$s("0x4")].on("addMarker:suggestion:deletion",((e,n,o)=>{o.options[$s("0x18")]&&hs(t,$s("0x15"),{showActiveMarker:!1})[$s("0x1d")](this)(e,n,o)}),{priority:$s("0x9")}),t.editing.downcastDispatcher.on($s("0xd"),((t,e,n)=>{const o=n[$s("0x2")].markerNameToElements(e[$s("0x1b")]);if(o)for(const t of o)t.is($s("0x16"))&&(n[$s("0x2")][$s("0x17")](t,e[$s("0x1b")]),n.writer[$s("0x3")](t))}),{priority:$s("0x9")})}}const Qs=["*Indent:* %0","getAttribute","*Change to:* %0","createPositionAt","outdentList","indentList","documentList","DocumentListEditing","hasAttribute","change","listItemId","format","mergeListItemBackward","detach","registerDescriptionCallback","nodeAfter","enableCommand","locale","listIndent","bulletedList","push","numberedList","value","registerCustomCallback","deletion","length","getSelectedBlocks","expandListBlocksToCompleteList","registerElementLabel","schema","_descriptionFactory","from","commandName","nextSibling","next","commandParams","selection","multipleBlocks","slice","*Merge:* %0","createRange","afterInit","markMultiRangeBlockFormat","after","*Outdent:* %0","ELEMENT_","getFirstRange","splitListItemAfter","editor","refresh","*Format:* insert into %0","start","findIndex","formatBlock","listType","accept","splitListItemBefore","commands","forceValue","model","document","has","execute","markBlockFormat","add","isObject","*Format:* remove from %0","_LIST","plugins","DocumentListUtils","before","ELEMENT_NUMBERED_LIST","toUpperCase","get","ELEMENT_LIST_ITEM","mergeListItemForward"];var Zs,Ys;Zs=Qs,Ys=134,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x3b")](){const t=this[tr("0x42")];if(!t[tr("0xa")][tr("0x3")](tr("0x19")))return;const e=t[tr("0x23")],n=t[tr("0xa")].get("TrackChangesEditing"),o=t[tr("0xa")][tr("0xf")](tr("0xb"));function s(e){return()=>{const s=t[tr("0x4b")][tr("0xf")](e);let r=Array[tr("0x31")](t[tr("0x1")][tr("0x2")].selection.getSelectedBlocks());if(x(e)){r=o[tr("0x2d")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[tr("0x26")](e);r=t}t[tr("0x1")].change((()=>{n[tr("0x3c")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x28")]}],formatGroupId:"listType"},[],tr("0x18"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[tr("0x46")]((t=>!t[tr("0x1a")](tr("0x1c"))));return n>-1&&(e=e[tr("0x38")](0,n)),e}(t[tr("0x1")][tr("0x2")][tr("0x36")][tr("0x2c")]()),s=o[o[tr("0x2b")]-1],r=t[tr("0x1")][tr("0x2f")][tr("0x7")](s)?tr("0x3d"):"end",i=t[tr("0x1")][tr("0x3a")](t[tr("0x1")][tr("0x15")](o[0],"before"),t[tr("0x1")][tr("0x15")](s,r));t.model.change((()=>{n[tr("0x5")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x33")];for(;t&&t[tr("0x13")](tr("0x24"))>n[tr("0x13")](tr("0x24"));)e[tr("0x6")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function a(e){return()=>{const o=t[tr("0x1")][tr("0x2")][tr("0x36")].getSelectedBlocks()[tr("0x34")]()[tr("0x28")],s=t[tr("0x1")].createPositionAt(o,tr("0xc")),r=t[tr("0x1")].createPositionAt(o,0),i=t.model[tr("0x3a")](s,r);t[tr("0x1")][tr("0x1b")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function x(e){const n=t.commands[tr("0xf")](tr("0x25"))[tr("0x28")],o=t.commands.get(tr("0x27")).value;return"numberedList"===e?n:o}n.enableCommand(tr("0x27"),s(tr("0x27"))),n[tr("0x22")]("bulletedList",s(tr("0x25"))),n[tr("0x22")]("indentList",r("indentList")),n[tr("0x22")](tr("0x16"),r(tr("0x16"))),n.enableCommand(tr("0x41"),a(tr("0x41"))),n[tr("0x22")](tr("0x4a"),a("splitListItemBefore")),n._descriptionFactory[tr("0x2e")]((function(e){const n=!t[tr("0x1")].schema[tr("0x7")](e),o=e.previousSibling,s=e[tr("0x33")],r=e[tr("0x13")](tr("0x1c")),i=!o||o.getAttribute(tr("0x1c"))!==r,a=!s||s[tr("0x13")](tr("0x1c"))!==r;return n&&Boolean(r)&&i&&a}),(t=>Yo(e,tr("0x10"),t))),n[tr("0x30")][tr("0x20")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case"bulletedList":r=n[tr("0x35")][0][tr("0x0")],i=x(n[tr("0x32")]),o=tr(r?"0x44":"0x8"),i&&(o=tr("0x14")),s={type:tr("0x1d"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case"numberedList":r=n[tr("0x35")][0][tr("0x0")],i=x(n[tr("0x32")]),o=r?"*Format:* insert into %0":tr("0x8"),i&&(o=tr("0x14")),s={type:"format",content:Yo(e,o,Yo(e,tr("0xd")))};break;case tr("0x17"):o=tr("0x12"),s={type:tr("0x1d"),content:Yo(e,o,Yo(e,tr("0x10")))};break;case"outdentList":o=function(t){const e=t.getFirstRange();let n=e[tr("0x45")].nodeAfter;for(;n&&e.containsItem(n);){if(n[tr("0x13")](tr("0x24"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x8"),Yo(e,function(t){const e=t[tr("0x40")]()[tr("0x45")][tr("0x21")];return tr("0x3f")+e[tr("0x13")](tr("0x48"))[tr("0xe")]()+tr("0x9")}(t))):Yo(e,tr("0x3e"),Yo(e,tr("0x10"))),s={type:"format",content:o};break;case tr("0x1e"):case tr("0x11"):!1===n[tr("0x37")]&&(o=tr("0x39"),s={type:tr("0x2a"),content:Yo(e,o,Yo(e,tr("0x10")))})}return s})),n._suggestionFactory[tr("0x29")](tr("0x47"),tr("0x18"),tr("0x49"),(function(e,n){const o=[];for(let n of e)n[tr("0x45")][tr("0x21")]===n.end.parent&&(n=t.model[tr("0x3a")](t[tr("0x1")][tr("0x15")](n[tr("0x45")][tr("0x21")],0))),o[tr("0x26")](n);t[tr("0x1")].change((e=>{const s=t[tr("0x1")].document[tr("0x36")],r=Array[tr("0x31")](s.getRanges()).map((t=>i.LiveRange.fromRange(t)));e.setSelection(o),t[tr("0x4b")][tr("0xf")](n[tr("0x32")])[tr("0x43")](),n[tr("0x35")][tr("0x26")]({forceDefaultExecution:!0}),t[tr("0x4")](n[tr("0x32")],...n[tr("0x35")]),e.setSelection(r);for(const t of r)t[tr("0x1f")]()}))}))}}var nr=n(331);const or=["parent","markerName","mapper","change","writer","model","downcastDispatcher","markerNameToElements","getFirstRange","enableCommand","options","nextSibling","hasClass","requires","createPositionAt","editing","document","setSelection","commands","high","fire","get","afterExecute","selection","TrackChangesEditing","addMarker:suggestion:insertion","ck-suggestion-marker-split","bind","enterBlock","unbindElementFromMarkerName","data","fromRange","removeMarker:suggestion:insertion","createRange","split","markInsertion","showSuggestionHighlights"];var sr,rr;sr=or,rr=201,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class ar extends t.Plugin{static get[ir("0x22")](){return[nr.Enter]}init(){const t=this.editor,e=t.plugins[ir("0x5")](ir("0x8")),n=t[ir("0x2")].get("enter");e[ir("0x1e")]("enter",(()=>{t[ir("0x1a")][ir("0x18")]((o=>{const s=t[ir("0x1a")][ir("0x0")][ir("0x7")],r=s.getFirstPosition(),a=i.LiveRange[ir("0xf")](s[ir("0x1d")]());if(n[ir("0xc")](o)){const n=t[ir("0x1a")][ir("0x23")](r[ir("0x15")][ir("0x20")],0),s=o[ir("0x11")](r,n);e[ir("0x13")](s)}else o[ir("0x1")](o[ir("0x11")](a.end));a.detach(),n[ir("0x4")](ir("0x6"),{writer:o})}))})),t.editing.downcastDispatcher.on(ir("0x9"),hs(t,ir("0x12")),{priority:ir("0x3")}),t[ir("0x24")][ir("0x1b")].on(ir("0x10"),((t,e,n)=>{const o=n[ir("0x17")][ir("0x1c")](e[ir("0x16")]);if(o)for(const t of o)t[ir("0x21")](ir("0xa"))&&(n.mapper[ir("0xd")](t,e[ir("0x16")]),n[ir("0x19")].remove(t))}),{priority:ir("0x3")}),t[ir("0xe")][ir("0x1b")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x1f")][ir("0x14")]&&hs(t,ir("0x12"),{showActiveMarker:!1})[ir("0xb")](this)(e,n,o)}),{priority:ir("0x3")})}}const xr=["filter","plugins","createPositionAt","item","getRange","_isInDeletionRange","string","FindAndReplaceEditing","getIntersection","start","find","suggestion:deletion","editor","replaceAll","findByTextCallback","end","model","markers","has","handleFindCommand","bind","TrackChangesEditing","enableCommand","afterInit"];var cr,lr;cr=xr,lr=174,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return xr[t-=0]};class dr extends t.Plugin{[ur("0x11")](){if(!this.editor[ur("0x13")][ur("0xc")](ur("0x1")))return;const t=this.editor.plugins.get(ur("0xf"));t[ur("0x10")](ur("0x4"),this[ur("0xd")][ur("0xe")](this)),t.enableCommand("findNext"),t[ur("0x10")]("findPrevious"),t[ur("0x10")]("replace"),t[ur("0x10")](ur("0x7"))}handleFindCommand(t,e,n={}){const o=this.editor[ur("0x13")].get("FindAndReplaceUtils");void 0!==n&&t((t=>(ur("0x0")==typeof e?o[ur("0x8")](e,n):e)(t)[ur("0x12")]((e=>!1===this[ur("0x17")](e,t[ur("0x15")])))),n)}[ur("0x17")](t,e){const n=this[ur("0x6")][ur("0xa")].createRange(this.editor.model[ur("0x14")](e,t[ur("0x3")]),this.editor[ur("0xa")][ur("0x14")](e,t[ur("0x9")]));for(const t of this[ur("0x6")][ur("0xa")][ur("0xb")].getMarkersGroup(ur("0x5")))if(null!==n[ur("0x2")](t[ur("0x16")]()))return!0;return!1}}const gr=["from","*Reset font color*","FontSizeEditing","*Reset font family*","fontSize.options","isCollapsed","*Reset font size*","has","toLowerCase","*Set font family:* %0","locale","model","fontBackgroundColor","selection","_enableCommand","find","fontColor","*Reset font background color*","format","TrackChangesEditing","editor","FontColorEditing","config","change","document","fontSize","normalizeSizeOptions","afterInit","markInlineFormat","commandName","FontFamilyEditing","registerDescriptionCallback","plugins","get","commandParams","title","value","trim","label","FontBackgroundColorEditing"];var mr,fr;mr=gr,fr=421,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x15"),commandName:"fontSize"},{pluginName:hr("0x9"),commandName:"fontFamily"},{pluginName:hr("0x0"),commandName:"fontColor"},{pluginName:hr("0x12"),commandName:hr("0x1f")}];class br extends t.Plugin{[hr("0x6")](){const t=this.editor[hr("0x1d")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x27")][hr("0xb")][hr("0x1a")](t)&&this._enableCommand(e);this[hr("0x27")][hr("0xb")][hr("0xc")]("TrackChangesEditing")._descriptionFactory[hr("0xa")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x4")==o[hr("0x8")]){const e=o[hr("0xd")][0][hr("0xf")];if(e){const o=n(this[hr("0x27")][hr("0xb")][hr("0xc")]("FontSize")[hr("0x5")](this.editor[hr("0x1")].get(hr("0x17")))[hr("0x22")]((t=>t[hr("0x1e")]==e))[hr("0xe")])[hr("0x1b")]();return{type:hr("0x25"),content:Yo(t,"*Set font size:* %0",o)}}return{type:"format",content:Yo(t,hr("0x19"))}}if("fontFamily"==o[hr("0x8")]){const e=o[hr("0xd")][0][hr("0xf")];return e?{type:"format",content:Yo(t,hr("0x1c"),e)}:{type:hr("0x25"),content:Yo(t,hr("0x16"))}}if(hr("0x23")==o[hr("0x8")]){const e=o[hr("0xd")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x27")][hr("0x1")][hr("0xc")]("fontColor.colors")).find((t=>t[hr("0x1e")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x1b")]()),{type:hr("0x25"),content:Yo(t,"*Set font color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x25"),content:Yo(t,hr("0x14"))}}if(hr("0x1f")==o[hr("0x8")]){const e=o[hr("0xd")][0][hr("0xf")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x1")][hr("0xc")]("fontBackgroundColor.colors"))[hr("0x22")]((t=>t[hr("0x1e")]==e));let r=e,i="";return o&&(r=o[hr("0x11")],i=n(r)[hr("0x1b")]()),{type:hr("0x25"),content:Yo(t,"*Set font background color:* %0",i)[hr("0x10")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x24"))}}}}))}[hr("0x21")](t){const e=this[hr("0x27")];e[hr("0xb")][hr("0xc")](hr("0x26")).enableCommand(t,((n,o={})=>{const s=e[hr("0x1e")][hr("0x3")][hr("0x20")],r=o[hr("0xf")];s[hr("0x18")]?n(o):e[hr("0x1e")][hr("0x2")]((()=>{const n=Array[hr("0x13")](s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x1e")]);for(const o of n)e[hr("0xb")][hr("0xc")](hr("0x26"))[hr("0x7")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["get","has","isObject","plugins","_descriptionFactory","value","selection","parent","model","match","registerDescriptionCallback","commandParams","name","checkChild","format","document","enableCommand","formatBlock","heading.options","commandName","change","editor","HeadingEditing","markBlockFormat","paragraph","heading","config","ELEMENT_HEADING","TrackChangesEditing","getSelectedBlocks","*Change to:* %0","locale"];var _r,Tr;_r=Er,Tr=231,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{afterInit(){const t=this[Cr("0xe")],e=t[Cr("0x18")],n=t[Cr("0x13")].get(Cr("0xb"));if(!t[Cr("0x1c")][Cr("0x1a")](Cr("0xf")))return;const o=t[Cr("0x1c")][Cr("0x19")](Cr("0x15"));o[Cr("0x9")]("heading",((e,n)=>{const s=n[Cr("0x1e")],r=Array.from(this[Cr("0xe")].model[Cr("0x8")][Cr("0x1f")][Cr("0x16")]()).filter((t=>{return e=t,n=s,(o=this[Cr("0xe")].model.schema)[Cr("0x6")](e[Cr("0x0")],n)&&!o[Cr("0x1b")](e)&&e[Cr("0x5")]!=n;var e,n,o}));t.model[Cr("0xd")]((()=>{for(const t of r)o[Cr("0x10")](t,{commandName:"heading",commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)Cr("0x11")!=t.model&&o[Cr("0x1d")].registerElementLabel(t[Cr("0x1")],(e=>{const n=kr(t[Cr("0x1")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,Cr("0x14"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Cr("0x1d")][Cr("0x3")]((t=>{const{type:o,data:i}=t;if(Cr("0xa")==o&&i&&Cr("0x12")==i[Cr("0xc")]){const t=i[Cr("0x4")][0][Cr("0x1e")],o=kr(t);if(null!==o)return{type:"format",content:Yo(e,Cr("0x17"),s(1,o))};const a=n.find((e=>e[Cr("0x1")]===t)).title;return{type:Cr("0x7"),content:Yo(e,Cr("0x17"),r(1,a))}}}))}}function kr(t){const e=t[Cr("0x2")](/^heading(\d+)$/);return e?e[1]:null}const Ar=["plugins","get","getRanges","selection","title","getLastMatchingPosition","locale","_descriptionFactory","document","markInlineFormat","isCollapsed","backward","color","item","FORMAT_HIGHLIGHT","push","createRange","HighlightEditing","afterInit","commandName","TrackChangesEditing","format","formatInline","*Remove highlight*","commandParams","registerDescriptionCallback","highlight","enableCommand","editor","getAttribute","model","value","toLowerCase","highlight.options"];var vr,Rr;vr=Ar,Rr=132,function(t){for(;--t;)vr.push(vr.shift())}(++Rr);const Sr=function(t,e){return Ar[t-=0]};class Ir extends t.Plugin{[Sr("0x16")](){const t=this[Sr("0x20")];if(!t[Sr("0x4")].has(Sr("0x15")))return;const e=t.plugins.get(Sr("0x18"));e[Sr("0x1f")](Sr("0x1e"),((n,o={})=>{const s=t[Sr("0x0")][Sr("0xc")][Sr("0x7")],r=s[Sr("0x21")]("highlight");let i=o[Sr("0x1")],a=[];if(s[Sr("0xe")]){const e=s.getFirstPosition();if(!s.hasAttribute(Sr("0x1e")))return void n(o);{const n=t=>t[Sr("0x11")][Sr("0x21")](Sr("0x1e"))===r,o=e[Sr("0x9")](n,{direction:Sr("0xf")}),s=e[Sr("0x9")](n);a=[t[Sr("0x0")][Sr("0x14")](o,s)],i==r&&(i=null)}}else for(const e of s[Sr("0x6")]())i?a[Sr("0x13")](e):a[Sr("0x13")](...ms("highlight",e,t[Sr("0x0")]));t[Sr("0x0")].change((()=>{for(const t of a)e[Sr("0xd")](t,{commandName:Sr("0x1e"),commandParams:[{value:i}]})}))}));const n=t[Sr("0xa")];e[Sr("0xb")][Sr("0x1d")]((e=>{const{type:o,data:s}=e;if(Sr("0x1a")==o&&s&&"highlight"==s[Sr("0x17")]){const e=n.t,o=s[Sr("0x1c")][0].value;if(o){const s=t.config[Sr("0x5")](Sr("0x3")).find((t=>t.model==o)),r=e(s[Sr("0x8")])[Sr("0x2")]();return{type:Sr("0x19"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Sr("0x10")],title:s[Sr("0x8")]}}}return{type:Sr("0x19"),content:Yo(n,Sr("0x1b"),Yo(n,Sr("0x12")))}}}))}}const Lr=["createPositionAt","div","for","registerElementLabel","locale","showSuggestionHighlights","addClass","ck-horizontal-line","insert","_descriptionFactory","get","HorizontalLineEditing","conversion","afterInit","horizontalLine","elementToStructure","TrackChangesEditing","createEmptyElement","plugins"];var wr,Nr;wr=Lr,Nr=386,function(t){for(;--t;)wr.push(wr.shift())}(++Nr);const Mr=function(t,e){return Lr[t-=0]};class Or extends t.Plugin{[Mr("0x7")](){const t=this.editor;if(!t.plugins.has(Mr("0x5")))return;t[Mr("0xc")][Mr("0x4")](Mr("0xa")).enableCommand(Mr("0x8"));const e=t[Mr("0xc")][Mr("0x4")](Mr("0xa")),n=t[Mr("0x11")];e[Mr("0x3")][Mr("0x10")]("horizontalLine",(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Mr("0x6")][Mr("0xf")]("dataDowncast")[Mr("0x9")]({model:Mr("0x8"),view:(t,{writer:e,options:n})=>{if(!n[Mr("0x12")])return null;const o=e.createContainerElement(Mr("0xe")),s=e[Mr("0xb")]("hr");return e[Mr("0x0")](Mr("0x1"),o),e[Mr("0x2")](e[Mr("0xd")](o,0),s),o},converterPriority:"high"})}}const Fr=["format","editing","selection","change","markBlockFormat","*Change %0 content*","get","registerDescriptionCallback","getSelectedElement","ELEMENT_HTML_EMBED","_descriptionFactory","getAttribute","commandName","registerElementLabel","plugins","getCustomProperty","htmlEmbed","locale","TrackChangesEditing","view","has","value","enableCommand","rawHtml","afterInit"];var Pr,Dr;Pr=Fr,Dr=446,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const Br=function(t,e){return Fr[t-=0]};class jr extends t.Plugin{[Br("0x3")](){const t=this.editor;if(!t[Br("0x12")][Br("0x18")]("HtmlEmbed"))return;const e=t[Br("0x12")][Br("0xa")](Br("0x16")),n=t[Br("0x15")],o=t[Br("0x5")][Br("0x17")].document[Br("0x6")];e[Br("0xe")][Br("0x11")](Br("0x2"),(t=>Yo(n,Br("0xd"),t))),t.plugins.get(Br("0x16"))[Br("0x1")]("htmlEmbed",((n,s)=>{const r=t.model,i=r.document[Br("0x6")];r[Br("0x7")]((()=>{const t=function(t){const e=t[Br("0xc")]();return e&&e.is("element",Br("0x2"))?t[Br("0xc")]():null}(i);if(!t)return void n(null);const r=t[Br("0xf")](Br("0x0"))||"";void 0!==s&&s!==r&&(e[Br("0x8")](t,{commandName:Br("0x14"),commandParams:[s]}),o[Br("0xc")]()[Br("0x13")]("rawHtmlApi").cancel())}))})),e[Br("0xe")][Br("0xb")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Br("0x10")]){const t=Yo(n,Br("0xd"));return{type:Br("0x4"),content:Yo(n,Br("0x9"),t)}}}))}}const Ur=["start","_splitMarkerName","_descriptionFactory","registerPostFixer","Users","value","refresh","toNext","Block image to inline image","backward","formatInline","change","fromPosition","end","*Remove image text alternative*","imageStyle","hasSuggestion","createRangeOn","commands","enableCommand","resizeImage","markInlineFormat","document","differ","insertion","discardSuggestion","getNearestSelectionRange","next","getAttribute","newRange","forEach","accept","convertInlineImageToBlock","FORMAT_SIDE_IMAGE","detach","ImageEditing","isBlockImage","createRange","markInsertion","markBlockFormat","getContainedElement","toggleImageCaption","*Reset image width*","element","imageTypeInline","deletion","Inline image to block image","registerElementLabel","name","from","subType","editor","_suggestionFactory","registerDescriptionCallback","join","previous","format","find","chain","commandParams","getClosestSelectedImageElement","*Format:* %0","author","width","model","getChangedMarkers","ImageUtils","isBefore","forward","locale","isInContent","title","*Set image text alternative:* %0","ImageBlockEditing","addObject","findIndex","imageTextAlternative","hasAttribute","formatBlock","*Set image width:* %0","imageStylePreApply","ImageCaptionUtils","getSuggestion","ImageStyleEditing","selection","registerCustomCallback","getSuggestionCallback","suggestion","getFirstRange","commandName","isOwn","plugins","imageTypeBlock","ImageInlineEditing","imageBlock","ELEMENT_INLINE_IMAGE","type","commandReversedParams","ELEMENT_CAPTION","getSuggestions","imageStylePostApply","imageInline","get","convertBlockImageToInline","schema","_findSuggestions","isEqual","caption","isIntersecting","imageCaption","shouldConvertImageType","toPrevious","ImageCaptionEditing","getCaptionFromImageModelElement","side","has","isInlineImage","isCollapsed","filter","discard","length","uploadImage"];var Gr,Hr;Gr=Ur,Hr=472,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Wr=function(t,e){return Ur[t-=0]};class Vr extends t.Plugin{afterInit(){const t=this[Wr("0x43")];if(!t.plugins.has(Wr("0x33")))return;const n=t[Wr("0x6b")][Wr("0x76")]("TrackChangesEditing"),o=t.plugins[Wr("0x76")](Wr("0x52")),s={},r=t[Wr("0x55")];if(n[Wr("0x23")]("insertImage"),n[Wr("0x12")].registerElementLabel(Wr("0x6e"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n[Wr("0x12")].registerElementLabel(Wr("0x75"),(t=>Yo(r,Wr("0x6f"),t))),n[Wr("0x12")][Wr("0x3f")](Wr("0x1"),(()=>Yo(r,Wr("0x72")))),t[Wr("0x6b")][Wr("0x9")]("ImageUploadEditing")&&n[Wr("0x23")](Wr("0xf")),t[Wr("0x6b")][Wr("0x9")](Wr("0x59"))&&t.plugins[Wr("0x9")](Wr("0x6d"))&&(n[Wr("0x23")](Wr("0x3c"),((e,s)=>{const r=o[Wr("0x4c")](t[Wr("0x50")].document[Wr("0x64")]);t.model[Wr("0x1b")]((()=>{n[Wr("0x37")](r,{commandName:Wr("0x3c"),commandParams:[s]},[],Wr("0x77"))}))})),n[Wr("0x23")](Wr("0x6c"),((e,s)=>{t[Wr("0x50")][Wr("0x1b")]((r=>{let a=o[Wr("0x4c")](t[Wr("0x50")].document[Wr("0x64")]),x=r[Wr("0x21")](a);const c=i.LivePosition[Wr("0x1c")](x[Wr("0x10")],Wr("0x5")),l=i.LivePosition.fromPosition(x.end,Wr("0x17"));n.forceDefaultExecution((()=>e(s))),a=o[Wr("0x4c")](t[Wr("0x50")][Wr("0x26")][Wr("0x64")]),x=r[Wr("0x21")](a);const u=r.createRange(c,l);c[Wr("0x32")](),l[Wr("0x32")](),n[Wr("0x37")](a,{commandName:Wr("0x3c"),commandParams:[]},[],Wr("0x30")),u[Wr("0x10")][Wr("0x53")](x[Wr("0x10")])&&n[Wr("0x36")](r.createRange(u[Wr("0x10")],x[Wr("0x10")]),"convertInlineImageToBlock"),x[Wr("0x1d")][Wr("0x53")](u[Wr("0x1d")])&&n[Wr("0x36")](r[Wr("0x35")](x[Wr("0x1d")],u[Wr("0x1d")]),Wr("0x30"))}))})),n[Wr("0x44")][Wr("0x65")](Wr("0x5e"),"convertInlineImageToBlock","join",(()=>{})),n[Wr("0x44")][Wr("0x65")](Wr("0x5e"),Wr("0x30"),Wr("0x2f"),(()=>{})),n[Wr("0x44")][Wr("0x65")](Wr("0x5e"),Wr("0x30"),"discard",n[Wr("0x44")].getSuggestionCallback(Wr("0x5e"),"","accept")),n[Wr("0x44")][Wr("0x65")]("insertion",Wr("0x30"),"join",(()=>{})),n._suggestionFactory[Wr("0x65")](Wr("0x28"),Wr("0x30"),Wr("0xd"),(([e])=>{const o=n[Wr("0x44")][Wr("0x66")]("insertion","","discard");let s=e.start,r=e[Wr("0x1d")];const i=t[Wr("0x50")][Wr("0x78")].getNearestSelectionRange(s,Wr("0x19")),a=t.model[Wr("0x78")][Wr("0x2a")](r,Wr("0x54"));i[Wr("0xb")]&&(s=i.start),a.isCollapsed&&(r=a[Wr("0x1d")]),o([t[Wr("0x50")][Wr("0x35")](s,r)])})),n[Wr("0x44")].registerCustomCallback(Wr("0x5e"),Wr("0x30"),"chain",c),n[Wr("0x44")][Wr("0x65")](Wr("0x28"),"convertInlineImageToBlock","chain",c)),t.plugins[Wr("0x9")](Wr("0x6"))&&(n[Wr("0x23")](Wr("0x39"),((e,s)=>{const r=t[Wr("0x6b")][Wr("0x76")](Wr("0x61"));let i=o[Wr("0x4c")](t.model.document.selection),a=r[Wr("0x7")](i);t[Wr("0x50")].change((()=>{if(a)return void n.markDeletion(t[Wr("0x50")][Wr("0x21")](a));const x=o[Wr("0x34")](i);e(s),i=o[Wr("0x4c")](t[Wr("0x50")][Wr("0x26")][Wr("0x64")]),a=r.getCaptionFromImageModelElement(i),n.markInsertion(t[Wr("0x50")][Wr("0x21")](a),x?null:Wr("0x3"))}))})),n[Wr("0x44")].registerCustomCallback(Wr("0x28"),Wr("0x3"),Wr("0x4a"),c)),t[Wr("0x6b")][Wr("0x9")](Wr("0x63"))){n.enableCommand("imageStyle",((s,r)=>{const i=t.plugins[Wr("0x76")](Wr("0x14")).me,a=t[Wr("0x22")][Wr("0x76")](Wr("0x1f"));let x=o[Wr("0x4c")](t.model[Wr("0x26")][Wr("0x64")]),c=t[Wr("0x50")][Wr("0x21")](x),l=a.value;if(l==r[Wr("0x15")])return;const u={commandName:Wr("0x1f"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Wr("0x50")][Wr("0x1b")]((()=>{if(n[Wr("0x73")]()[Wr("0xc")]((t=>t[Wr("0x56")]&&i==t[Wr("0x4e")]&&("formatBlock"==t.type||Wr("0x1a")==t.type)&&("imageStylePreApply"==t[Wr("0x42")]||Wr("0x74")==t[Wr("0x42")])&&t[Wr("0x68")]()[Wr("0x0")](c)))[Wr("0x2e")]((t=>n[Wr("0x29")](t.head))),x=o.getClosestSelectedImageElement(t[Wr("0x50")][Wr("0x26")][Wr("0x64")]),c=t.model[Wr("0x21")](x),a[Wr("0x16")](),t[Wr("0x22")][Wr("0x76")](Wr("0x3c")).refresh(),t.commands[Wr("0x76")]("imageTypeBlock")[Wr("0x16")](),l=a.value,l!=r.value)return o[Wr("0xa")](x)&&a[Wr("0x4")](r[Wr("0x15")],x)?(s(r),x=o[Wr("0x4c")](t[Wr("0x50")][Wr("0x26")].selection),void n.markBlockFormat(x,{...u,commandReversedParams:[{value:l||null}]},[],Wr("0x60"))):void(o.isBlockImage(x)?n[Wr("0x37")](x,u,[],"imageStylePostApply"):n[Wr("0x25")](c,u,Wr("0x74")))}))}));for(const e of t[Wr("0x6b")][Wr("0x76")](Wr("0x63")).normalizedStyles)s[e[Wr("0x40")]]=e[Wr("0x57")].toLowerCase();n._suggestionFactory[Wr("0x65")](Wr("0x5e"),Wr("0x60"),Wr("0x46"),(()=>{})),n[Wr("0x44")][Wr("0x65")]("formatBlock",Wr("0x74"),Wr("0x46"),(()=>{})),n[Wr("0x44")][Wr("0x65")](Wr("0x1a"),Wr("0x74"),"join",(()=>{})),n[Wr("0x44")][Wr("0x65")](Wr("0x5e"),Wr("0x60"),Wr("0x2f"),(()=>{})),n[Wr("0x44")][Wr("0x65")](Wr("0x5e"),Wr("0x60"),Wr("0xd"),((t,e)=>{n[Wr("0x44")].getSuggestionCallback("formatBlock","",Wr("0x2f"))(t,{commandName:e[Wr("0x69")],commandParams:e[Wr("0x71")]})})),n._suggestionFactory[Wr("0x65")](Wr("0x5e"),Wr("0x60"),Wr("0x4a"),c)}const a=[{type:Wr("0x5e"),subType:Wr("0x60")},{type:Wr("0x28"),subType:Wr("0x3")},{type:Wr("0x5e"),subType:Wr("0x30")},{type:Wr("0x28"),subType:Wr("0x30")}];function x(t,e){const s=a[Wr("0x5b")]((({type:e,subType:n})=>t[Wr("0x70")]==e&&t[Wr("0x42")]==n)),r=a.findIndex((({type:t,subType:n})=>e[Wr("0x70")]==t&&e[Wr("0x42")]==n));if(s<0||r<0)return!1;const i=t[Wr("0x68")](),x=e[Wr("0x68")]();if((0==s||1==s)&&2==r&&i[Wr("0x2")](x))return!0;if(2==s&&3==r){const t=n[Wr("0x79")](i,Wr("0x28"))[Wr("0xc")]((({suggestion:t,meta:e})=>e[Wr("0x6a")]&&Wr("0x30")==t[Wr("0x42")]));if(t[Wr("0xe")]>1&&x[Wr("0x1d")][Wr("0x0")](i.start))return!0;if(1==t.length&&(i[Wr("0x10")][Wr("0x0")](x[Wr("0x1d")])||i[Wr("0x1d")][Wr("0x0")](x[Wr("0x10")])))return!0}if(3==s&&3==r&&i[Wr("0x10")][Wr("0x53")](x[Wr("0x10")])){const t=i[Wr("0x1d")].nodeAfter,e=x[Wr("0x10")].nodeBefore;return o[Wr("0x34")](t)&&t===e}return!1}function c(t,e){return x(t,e)?[t,e]:x(e,t)?[e,t]:null}t[Wr("0x50")].document[Wr("0x13")]((()=>{let e=!1;const s=Array[Wr("0x41")](t[Wr("0x50")][Wr("0x26")][Wr("0x27")][Wr("0x51")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:a,id:x}=n[Wr("0x11")](t);if(Wr("0x67")==s&&n[Wr("0x20")](x)){if("formatBlock"==i&&(Wr("0x60")==a||"imageStylePostApply"==a)){const t=n.getSuggestion(x);if(r[Wr("0x2d")]){const s=t[Wr("0x68")]().getContainedElement();if(o.isBlockImage(s))continue;n[Wr("0x29")](t),e=!0}}if(Wr("0x28")==i&&Wr("0x3")==a&&!r[Wr("0x2d")]){const t=n[Wr("0x62")](x);t[Wr("0x2b")]&&t[Wr("0x2b")][Wr("0x56")]&&(n[Wr("0x29")](t[Wr("0x2b")]),e=!0)}}}return e})),t[Wr("0x6b")].has("ImageResize")&&n[Wr("0x23")](Wr("0x24"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Wr("0x50")][Wr("0x26")][Wr("0x64")]);r.getAttribute(Wr("0x4f"))!=s.width&&t[Wr("0x50")][Wr("0x1b")]((()=>{n[Wr("0x37")](r,{commandName:Wr("0x24"),commandParams:[s]})}))})),t[Wr("0x6b")].has("ImageTextAlternativeEditing")&&n.enableCommand(Wr("0x5c"),((e,s)=>{const r=o[Wr("0x4c")](t[Wr("0x50")][Wr("0x26")][Wr("0x64")]);(r[Wr("0x5d")]("alt")?r[Wr("0x2c")]("alt"):"")!=s.newValue&&t.model.change((()=>{n[Wr("0x37")](r,{commandName:Wr("0x5c"),commandParams:[s]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{if(a[Wr("0x49")]((({type:e,subType:n})=>t[Wr("0x70")]==e&&t[Wr("0x42")]==n)))return t[Wr("0x47")]?{}:void 0})),n[Wr("0x12")][Wr("0x45")]((t=>{if(Wr("0x28")==t[Wr("0x70")]||Wr("0x3d")==t[Wr("0x70")]){const e=t[Wr("0x38")]();if(e&&e.is(Wr("0x3b"),Wr("0x1")))return{type:Wr("0x28")==t[Wr("0x70")]?Wr("0x5a"):"removeObject",element:e,quantity:1}}})),n[Wr("0x12")][Wr("0x45")]((t=>Wr("0x5e")==t[Wr("0x70")]&&Wr("0x30")==t[Wr("0x42")]?{type:"format",content:Wr("0x3e")}:Wr("0x5e")==t.type&&Wr("0x77")==t[Wr("0x42")]?{type:Wr("0x48"),content:Wr("0x18")}:void 0)),n._descriptionFactory[Wr("0x45")]((t=>{const{data:e}=t;if(e){if(Wr("0x1f")==e[Wr("0x69")]){const t=e[Wr("0x4b")][0][Wr("0x15")];return n=Wr("0x8")===t?Yo(r,Wr("0x31")):s[t]||t,{type:Wr("0x48"),content:Yo(r,Wr("0x4d"),n)}}if("imageTextAlternative"==e.commandName){const t=e[Wr("0x4b")][0].newValue;return t?{type:"format",content:Yo(r,Wr("0x58"),'"'+t+'"')}:{type:Wr("0x48"),content:Yo(r,Wr("0x1e"))}}if(Wr("0x24")==e[Wr("0x69")]){const t=e.commandParams[0][Wr("0x4f")];return t?{type:Wr("0x48"),content:Yo(r,Wr("0x5f"),t)}:{type:"format",content:Yo(r,Wr("0x3a"))}}}var n}))}}const zr=["discard","replaceImageSource","registerDescriptionCallback","handleReplaceImageCommand","editor","enableCommand","accept","handleSuggestionDescription","format","afterInit","*Format:* replace image URL","getAttribute","subType","formatBlock","Users","registerCustomCallback","document","plugins","getSuggestionCallback","source","has","getSuggestions","get","commandParams","TrackChangesEditing","selection","src","getContainedElement","data","markBlockFormat","_descriptionFactory","ImageEditing","locale","_suggestionFactory","model","getSelectedElement"];var Kr,qr;Kr=zr,qr=216,function(t){for(;--t;)Kr.push(Kr.shift())}(++qr);const Xr=function(t,e){return zr[t-=0]};class $r extends t.Plugin{[Xr("0x9")](){if(!this.editor[Xr("0x11")][Xr("0x14")](Xr("0x1f")))return;const t=this.editor[Xr("0x11")][Xr("0x16")](Xr("0x18"));t[Xr("0x5")](Xr("0x1"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[Xr("0x21")][Xr("0xf")]("formatBlock","replaceImageSource",Xr("0x6"),t._suggestionFactory.getSuggestionCallback(Xr("0xd"),null,"discard")),t[Xr("0x21")][Xr("0xf")](Xr("0xd"),Xr("0x1"),"discard",t[Xr("0x21")][Xr("0x12")]("formatBlock",null,Xr("0x6"))),t[Xr("0x1e")][Xr("0x2")]((t=>this[Xr("0x7")](t)))}[Xr("0x3")](t,e){const n=this[Xr("0x4")].plugins[Xr("0x16")](Xr("0x18")),o=this[Xr("0x4")][Xr("0x22")][Xr("0x10")][Xr("0x19")][Xr("0x23")]();this.editor[Xr("0x22")].change((()=>{let s=o[Xr("0xb")](Xr("0x1a"));const r=this.editor[Xr("0x11")][Xr("0x16")](Xr("0xe")).me;for(const t of n[Xr("0x15")]({skipNotAttached:!0})){const e=t[Xr("0x1b")]();if(Xr("0x1")===t[Xr("0xc")]&&e===o){t.author!==r&&t[Xr("0x0")](),s=t[Xr("0x1c")][Xr("0x17")][0][Xr("0x13")];break}}t(e),n[Xr("0x1d")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"replaceImageSource"===e.commandName){const t=Xr("0xa");return{type:Xr("0x8"),content:Yo(this[Xr("0x4")][Xr("0x20")],t)}}}}const Jr=["TrackChangesEditing","importWord","enableCommand","Users","_handleImportedData","editor","_setSuggestionData","dataInsert","value","high","get","collaboration_features","execute","listenTo","track_changes","afterInit","_trackChangesValueDuringImport","_trackChangesExecuted","plugins","commands","trackChanges"];var Qr,Zr;Qr=Jr,Zr=399,function(t){for(;--t;)Qr.push(Qr.shift())}(++Zr);const Yr=function(t,e){return Jr[t-=0]};class ti extends t.Plugin{constructor(t){super(t),this[Yr("0x10")]=!1,this._trackChangesExecuted=!1}[Yr("0xf")](){const t=this[Yr("0x5")],e=t[Yr("0x13")][Yr("0xa")](Yr("0x1")),n=t[Yr("0x13")][Yr("0xa")](Yr("0x14"));e&&(e.on(Yr("0xc"),((t,[,e])=>{this[Yr("0x10")]=n[Yr("0x8")],e[Yr("0xb")][Yr("0xe")]=!this[Yr("0x10")]}),{priority:Yr("0x9")}),this[Yr("0xd")](e,Yr("0x7"),this[Yr("0x4")].bind(this)),this[Yr("0xd")](e,"dataInsert",(()=>{this[Yr("0x11")]&&(n[Yr("0xc")](),this[Yr("0x11")]=!1)}),{priority:"lowest"}),t[Yr("0x12")][Yr("0xa")]("TrackChangesEditing")[Yr("0x2")](Yr("0x1")))}[Yr("0x4")](t,e){const{suggestions:n}=e,o=this[Yr("0x5")][Yr("0x13")][Yr("0xa")]("trackChanges"),s=o[Yr("0x8")];this._trackChangesValueDuringImport!==s&&(o[Yr("0xc")](),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[Yr("0x5")].plugins[Yr("0xa")](Yr("0x3")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:Yr("0x1")}}};this[Yr("0x5")][Yr("0x12")][Yr("0xa")](Yr("0x0"))[Yr("0x6")](s)}))}}const ei=["indent","getItems","plugins","afterInit","registerDescriptionCallback","getSelectedBlocks","document","checkAttribute","has","model","selection","_descriptionFactory","editor","IndentBlock","outdent","blockIndent","from","indentBlock","enableCommand","change","schema","TrackChangesEditing","getItemLabel","outdentBlock","commandName","IndentEditing"];var ni,oi;ni=ei,oi=163,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const si=function(t,e){return ei[t-=0]};class ri extends t.Plugin{[si("0x16")](){const t=this[si("0x5")],e=t[si("0x15")].get(si("0xe"));t[si("0x15")][si("0x1")](si("0x12"))&&(e[si("0xb")](si("0x13")),e.enableCommand(si("0x7")));const n=t.locale;if(t[si("0x15")][si("0x1")](si("0x6"))){for(const n of[si("0xa"),si("0x10")])e[si("0xb")](n,(()=>{const o=Array[si("0x9")](this[si("0x5")][si("0x2")][si("0x19")][si("0x3")][si("0x18")]()).filter((t=>this.editor[si("0x2")][si("0xd")][si("0x0")](t,si("0x8"))));t[si("0x2")][si("0xc")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:si("0xa")})}))}));e[si("0x4")][si("0x17")]((t=>{const{data:o}=t;if(!o)return;if(si("0xa")!=o.commandName&&si("0x10")!=o.commandName)return;const s=t[si("0x14")]()[0],r=e[si("0x4")][si("0xf")](s);return si("0xa")==o[si("0x11")]?{type:"format",content:Yo(n,"*Indent:* %0",r)}:si("0x10")==o[si("0x11")]?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var ii,ai,xi=["editor","requires","plugins","init","input","TrackChangesEditing"];ii=xi,ai=115,function(t){for(;--t;)ii.push(ii.shift())}(++ai);var ci=function(t,e){return xi[t-=0]};class li extends t.Plugin{static get[ci("0x0")](){return[zs.Input]}[ci("0x2")](){this[ci("0x5")][ci("0x1")].get(ci("0x4")).enableCommand(ci("0x3"))}}const ui=["editor","commandParams","*Remove link*","_descriptionFactory","getFirstRange","isCollapsed","commandName","get","link","getAttribute","selection","getRanges","document","format","getFirstPosition","enableCommand","markInlineFormat","LinkEditing","afterInit","linkHref","hasAttribute","unlink","plugins","TrackChangesEditing","locale","has","registerDescriptionCallback","change","model"];var di,gi;di=ui,gi=190,function(t){for(;--t;)di.push(di.shift())}(++gi);const mi=function(t,e){return ui[t-=0]};class fi extends t.Plugin{[mi("0x2")](){const t=this[mi("0xd")];if(!t[mi("0x6")][mi("0x9")](mi("0x1")))return;const e=t[mi("0x6")][mi("0x14")](mi("0x7"));e.enableCommand(mi("0x15"),((n,o)=>{const s=t[mi("0xc")][mi("0x19")].selection;let r=[];if(s[mi("0x12")]){if(!s[mi("0x4")](mi("0x3")))return void n(o);{const e=(0,zs.findAttributeRange)(s[mi("0x1b")](),"linkHref",s[mi("0x16")](mi("0x3")),t[mi("0xc")]);r=[e]}}else r=Array.from(s[mi("0x18")]());t[mi("0xc")][mi("0xb")]((()=>{for(const t of r)e[mi("0x0")](t,{commandName:mi("0x15"),commandParams:[o]})}))})),e[mi("0x1c")](mi("0x5"),(()=>{const n=this[mi("0xd")].model,o=n[mi("0x19")][mi("0x17")];n[mi("0xb")]((()=>{let n=[];n=o[mi("0x12")]?[(0,zs.findAttributeRange)(o[mi("0x1b")](),"linkHref",o[mi("0x16")](mi("0x3")),t[mi("0xc")])]:ms("linkHref",o[mi("0x11")](),t[mi("0xc")]);for(const t of n)e[mi("0x0")](t,{commandName:mi("0x5"),commandParams:[]})}))})),e[mi("0x10")][mi("0xa")]((e=>{const{data:n}=e,o=t[mi("0x8")];if(n){if(mi("0x15")==n.commandName){return{type:"format",content:Yo(o,"*Set link:* %0",'"'+n[mi("0xe")][0]+'"')}}return mi("0x5")==n[mi("0x13")]?{type:mi("0x1a"),content:Yo(o,mi("0xf"))}:void 0}}))}}const hi=["bulletedList","*Change to:* %0","listIndent","List","forceValue","name","todoList","_descriptionFactory","enableCommand","ListEditing","paragraph","selection","before","getAttribute","*Check item*","execute","plugins","listItem","ELEMENT_TODO_LIST","value","TrackChangesEditing","createRange","locale","numberedList","*Outdent:* %0","element","outdentList","get","checkTodoList","commands","nextSibling","blockName","ELEMENT_BULLETED_LIST","checkChild","previousSibling","from","parent","editor","end","todo","createPositionAt","registerElementLabel","registerDescriptionCallback","filter","add","afterInit","_selectedElements","format","slice","*Uncheck item*","isObject","push","bulleted","commandName","indentList","ELEMENT_LIST_ITEM","model","getSelectedBlocks","document","schema","markBlockFormat","replace","change","findIndex","has"];var pi,bi;pi=hi,bi=213,function(t){for(;--t;)pi.push(pi.shift())}(++bi);const Ei=function(t,e){return hi[t-=0]};class _i extends t.Plugin{[Ei("0x1b")](){const t=this[Ei("0x13")],e=t[Ei("0x4")];if(!t[Ei("0x3f")][Ei("0x2e")](Ei("0x38")))return;const n=t[Ei("0x3f")].get(Ei("0x2")),o=t[Ei("0x3f")].has("TodoListEditing");function s(e){return()=>{const o=t[Ei("0x26")][Ei("0x28")][Ei("0x3a")],s=t[Ei("0xb")].get(e);if(s[Ei("0x1")])return void t[Ei("0x3e")](Ei("0x39"),{});const r=e[Ei("0x1e")](0,-4),i=function(t,e,n){let o=Array[Ei("0x11")](t)[Ei("0x19")]((t=>{return e=t,(o=n)[Ei("0xf")](e[Ei("0x12")],Ei("0x40"))&&!o[Ei("0x20")](e);var e,o}));o=o.filter((t=>!t.is(Ei("0x7"),Ei("0x40"))||t[Ei("0x3c")]("listType")!=e));const s=new Set;for(const t of o)t.is("element","listItem")?s[Ei("0x1a")](Ti(t)):s[Ei("0x1a")](t);return Array[Ei("0x11")](s)}(o[Ei("0x27")](),r,t.model[Ei("0x29")]);t[Ei("0x26")][Ei("0x2c")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ei("0x1")]}],formatGroupId:Ei("0xd")},Ci(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ei("0x11")](t);const n=e[Ei("0x2d")]((t=>Ei("0x40")!=t[Ei("0x34")]));return n>-1&&(e=e[Ei("0x1e")](0,n)),e}(t[Ei("0x26")][Ei("0x28")][Ei("0x3a")][Ei("0x27")]()),s=t[Ei("0x26")][Ei("0x3")](t[Ei("0x26")][Ei("0x16")](o[0],Ei("0x3b")),t.model[Ei("0x16")](o[o.length-1],Ei("0x14")));t[Ei("0x26")][Ei("0x2c")]((()=>{n[Ei("0x2a")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ei("0xc")];for(;t&&t[Ei("0x3c")]("listIndent")>n[Ei("0x3c")](Ei("0x31"));)e.add(t),t=t[Ei("0xc")]}return Array.from(e)}(o))}))}}n[Ei("0x37")]("numberedList",s(Ei("0x5"))),n[Ei("0x37")]("bulletedList",s("bulletedList")),o&&n.enableCommand(Ei("0x35"),s(Ei("0x35"))),n[Ei("0x37")]("indentList",r(Ei("0x24"))),n[Ei("0x37")](Ei("0x8"),r(Ei("0x8"))),o&&n[Ei("0x37")](Ei("0xa"),(()=>{const e=t[Ei("0xb")][Ei("0x9")]("checkTodoList"),o=Array[Ei("0x11")](e[Ei("0x1c")]);o[Ei("0x19")]((t=>t[Ei("0x3c")]("todoListChecked")!=e[Ei("0x1")])),t[Ei("0x26")][Ei("0x2c")]((()=>{for(const t of o)n[Ei("0x2a")](t,{commandName:Ei("0xa"),commandParams:[{forceValue:!e[Ei("0x1")]}]})}))})),n[Ei("0x36")][Ei("0x17")](Ei("0x40"),(t=>Yo(e,Ei("0x25"),t))),n[Ei("0x36")][Ei("0x18")]((t=>{const{data:n}=t;if(n){if(Ei("0x5")==n[Ei("0x23")]||Ei("0x2f")==n[Ei("0x23")]||"todoList"==n[Ei("0x23")])switch(n[Ei("0x23")][Ei("0x2b")](Ei("0x32"),"")){case Ei("0x22"):return o(Yo(e,Ei("0xe")));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case Ei("0x15"):return o(Yo(e,Ei("0x0")))}if(Ei("0x24")==n[Ei("0x23")])return{type:"format",content:Yo(e,"*Indent:* %0",Yo(e,Ei("0x25")))};if(Ei("0x8")==n[Ei("0x23")])return{type:Ei("0x1d"),content:Yo(e,Ei("0x6"),Yo(e,Ei("0x25")))};if(Ei("0xa")==n.commandName)return n.commandParams[0][Ei("0x33")]?{type:"format",content:Yo(e,Ei("0x3d"))}:{type:Ei("0x1d"),content:Yo(e,Ei("0x1f"))}}function o(t){return{type:Ei("0x1d"),content:Yo(e,Ei("0x30"),t)}}}))}}function Ti(t){const e=t[Ei("0x3c")]("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t.previousSibling.is(Ei("0x7"),Ei("0x40"));){const o=t[Ei("0x10")][Ei("0x3c")](Ei("0x31"));if(o==e)n=t[Ei("0x10")];else if(o<e)break;t=t[Ei("0x10")]}return n}function Ci(t){const e=[];if(t.is(Ei("0x7"),Ei("0x40"))&&t[Ei("0x3c")](Ei("0x31"))>0){let n=t[Ei("0xc")];for(;n&&Ei("0x40")==n[Ei("0x34")]&&n[Ei("0x3c")](Ei("0x31"))==t[Ei("0x3c")](Ei("0x31"));)e[Ei("0x21")](n),n=n[Ei("0xc")]}return e}const yi=["forward","ListPropertiesEditing","listReversed","toUpperCase","getSiblingNodes","getFirstPosition","from","unshift","get","enableCommand","format","TrackChangesEditing","_getSuggestionBlocks","model","numbered","flat","handleListStartCommand","listStart","getAttribute","push","change","replace","listItem","list.properties","markMultiRangeBlockFormat","startIndex","registerDescriptionCallback","commandParams","bind","commandName","reversed","listType","backward","has","filter","*Format:* set start index to %0","ListUtils","length","_LIST_","getSelectedBlocks","locale","_getTranslationKeyForListStyle","config","createRange","_getSuggestionBlocksForListStyle","document","createPositionAt","handleListStyleCommand","plugins","ELEMENT_","before","element","afterInit","parent","listStyle","map","getListTypeFromListStyleType","type","selection","*Format:* set order to reversed","editor","handleListReversedCommand"];var ki,Ai;ki=yi,Ai=164,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xc")](){if(!this.editor.plugins[vi("0x37")](vi("0x17")))return;const t=this[vi("0x14")][vi("0x2")][vi("0x1e")](vi("0x2d")),e=this[vi("0x14")][vi("0x8")].get("TrackChangesEditing");t.styles&&e.enableCommand(vi("0xe"),this[vi("0x7")][vi("0x32")](this)),t.reversed&&e[vi("0x1f")](vi("0x18"),this.handleListReversedCommand[vi("0x32")](this)),t[vi("0x2f")]&&e[vi("0x1f")](vi("0x27"),this.handleListStartCommand.bind(this)),e._descriptionFactory[vi("0x30")](this.handleDescriptions.bind(this))}[vi("0x7")](t,e={}){const n=this[vi("0x14")][vi("0x8")][vi("0x1e")]("TrackChangesEditing"),o=this[vi("0x4")]();this[vi("0x14")][vi("0x23")][vi("0x2a")]((()=>{n[vi("0x2e")](o,{commandName:vi("0xe"),commandParams:[{type:e[vi("0x11")]}],formatGroupId:vi("0xe")})}))}[vi("0x15")](t,e={}){const n=this.editor.plugins[vi("0x1e")]("TrackChangesEditing"),o=this[vi("0x22")]((t=>t.is(vi("0xb"),vi("0x2c"))&&vi("0x24")===t.getAttribute(vi("0x35"))));if(o[vi("0x3b")]<1)return;const s=o[vi("0xf")]((t=>this[vi("0x14")][vi("0x23")][vi("0x3")](this.editor.model.createPositionAt(t,vi("0xa")),this[vi("0x14")][vi("0x23")][vi("0x6")](t,0))));this.editor.model[vi("0x2a")]((()=>{n[vi("0x2e")](s,{commandName:vi("0x18"),commandParams:[{reversed:e[vi("0x34")]}],formatGroupId:vi("0x18")})}))}[vi("0x26")](t,e={}){const n=this.editor[vi("0x8")][vi("0x1e")](vi("0x21")),o=this[vi("0x22")]((t=>t.is(vi("0xb"),vi("0x2c"))&&vi("0x24")===t[vi("0x28")](vi("0x35"))));if(o[vi("0x3b")]<1)return;const s=o[vi("0xf")]((t=>this[vi("0x14")].model.createRange(this.editor[vi("0x23")][vi("0x6")](t,vi("0xa")),this[vi("0x14")][vi("0x23")].createPositionAt(t,0))));this[vi("0x14")][vi("0x23")][vi("0x2a")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:vi("0x27"),commandParams:[{startIndex:e[vi("0x2f")]}],formatGroupId:vi("0x27")})}))}handleDescriptions(t){const e=this.editor[vi("0x0")],{data:n}=t;if(!n)return;let o,s;switch(n[vi("0x33")]){case"listStyle":o="*Change to:* %0",s={type:vi("0x20"),content:Yo(e,o,Yo(e,this[vi("0x1")](n[vi("0x31")][0][vi("0x11")])))};break;case"listReversed":o=n[vi("0x31")][0][vi("0x34")]?vi("0x13"):"*Format:* set order to regular",s={type:vi("0x20"),content:Yo(e,o)};break;case"listStart":o=vi("0x39"),s={type:vi("0x20"),content:Yo(e,o,n.commandParams[0][vi("0x2f")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[vi("0x14")][vi("0x8")][vi("0x1e")]("ListUtils");let r=Array[vi("0x1c")](this[vi("0x14")].model.document[vi("0x12")][vi("0x3d")]());return(null===(t=r[0])||void 0===t?void 0:t.is(vi("0xb"),vi("0x2c")))&&r[vi("0x1d")](...s.getSiblingNodes(this.editor[vi("0x23")][vi("0x5")][vi("0x12")][vi("0x1b")](),vi("0x36"))),(null===(e=r[r[vi("0x3b")]-1])||void 0===e?void 0:e.is("element",vi("0x2c")))&&r[vi("0x29")](...s[vi("0x1a")](this.editor[vi("0x23")].document[vi("0x12")].getLastPosition(),vi("0x16"))),r=[...new Set(r)],(null===(o=null===(n=this[vi("0x14")][vi("0x23")].document[vi("0x12")][vi("0x1b")]())||void 0===n?void 0:n[vi("0xd")])||void 0===o?void 0:o.is("element",vi("0x2c")))&&(r=r[vi("0x38")]((t=>t.is(vi("0xb"),"listItem")))),r}[vi("0x22")](t){const e=this.editor.plugins[vi("0x1e")](vi("0x3a"));let n=Array[vi("0x1c")](this[vi("0x14")][vi("0x23")][vi("0x5")][vi("0x12")].getSelectedBlocks()).filter(t)[vi("0xf")]((t=>{const n=this.editor[vi("0x23")].createPositionAt(t,0);return[...e[vi("0x1a")](n,"backward"),...e[vi("0x1a")](n,vi("0x16"))]}))[vi("0x25")]();return n=[...new Set(n)],n}[vi("0x1")](t){return vi("0x9")+this[vi("0x14")][vi("0x8")][vi("0x1e")](vi("0x3a"))[vi("0x10")](t)[vi("0x19")]()+vi("0x3c")+t.toUpperCase()[vi("0x2b")](/-/g,"_")}}const Si=["div","enableCommand","downcastDispatcher","ELEMENT_MEDIA","elementToElement","createEmptyElement","editor","TrackChangesEditing","high","registerElementLabel","locale","media","options","showSuggestionHighlights","stop","afterInit","data","for","conversion","_descriptionFactory","plugins"];var Ii,Li;Ii=Si,Li=441,function(t){for(;--t;)Ii.push(Ii.shift())}(++Li);const wi=function(t,e){return Si[t-=0]};class Ni extends t.Plugin{[wi("0xf")](){const t=this[wi("0x6")];if(!t[wi("0x14")].has("MediaEmbedEditing"))return;const e=t[wi("0x14")].get(wi("0x7")),n=t[wi("0xa")];e[wi("0x1")]("mediaEmbed"),e[wi("0x13")][wi("0x9")](wi("0xb"),(t=>Yo(n,wi("0x3"),t))),t[wi("0x12")][wi("0x11")]("dataDowncast")[wi("0x4")]({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[wi("0x5")](wi("0x0"))},converterPriority:wi("0x8")}),t[wi("0x10")][wi("0x2")].on("attribute:url:media",((t,e,n)=>{n[wi("0xc")][wi("0xd")]&&t[wi("0xe")]()}),{priority:"high"})}}const Mi=["mention","afterInit","plugins","editor","get","TrackChangesEditing","has","MentionEditing","enableCommand"];var Oi,Fi;Oi=Mi,Fi=471,function(t){for(;--t;)Oi.push(Oi.shift())}(++Fi);const Pi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{[Pi("0x7")](){const t=this[Pi("0x0")];t[Pi("0x8")][Pi("0x3")](Pi("0x4"))&&t[Pi("0x8")][Pi("0x1")](Pi("0x2"))[Pi("0x5")](Pi("0x6"))}}const Bi=["PageBreakEditing","has","TrackChangesEditing","_descriptionFactory","pageBreak","ELEMENT_PAGE_BREAK","locale","plugins","get","editor"];var ji,Ui;ji=Bi,Ui=188,function(t){for(;--t;)ji.push(ji.shift())}(++Ui);const Gi=function(t,e){return Bi[t-=0]};class Hi extends t.Plugin{afterInit(){const t=this[Gi("0x1")];if(!t[Gi("0x9")][Gi("0x3")](Gi("0x2")))return;t[Gi("0x9")][Gi("0x0")](Gi("0x4")).enableCommand(Gi("0x6"));const e=t[Gi("0x9")][Gi("0x0")](Gi("0x4")),n=t[Gi("0x8")];e[Gi("0x5")].registerElementLabel(Gi("0x6"),(t=>Yo(n,Gi("0x7"),t)))}}const Wi=["markerName","filter","schema","getSelectedBlocks","markBlockFormat","*Insert:* %0","plugins","downcastDispatcher","registerDescriptionCallback","consumable","bindElementToMarker","enableCommand","selection","editor","editing","addMarker:suggestion:insertion","$text","getItemLabel","isTouching","_descriptionFactory","type","parent","end","activeMarkers","ck-suggestion-marker-split","getFirstRange","start","format","createUIElement","afterInit","markerRange","span","ELEMENT_PARAGRAPH","has","insertParagraph","consume","isLimit","nodeAfter","isBlock","commandName","checkChild","model","TrackChangesEditing","mapper","*Change to:* %0","insertion","toViewPosition","get","from","writer","paragraph","highest"];var Vi,zi;Vi=Wi,zi=228,function(t){for(;--t;)Vi.push(Vi.shift())}(++zi);const Ki=function(t,e){return Wi[t-=0]};class qi extends t.Plugin{[Ki("0x9")](){const t=this[Ki("0x2d")];if(!t.plugins[Ki("0xd")]("Paragraph"))return;const e=t.locale,n=t.plugins.get(Ki("0x16"));n._descriptionFactory.registerElementLabel(Ki("0x1e"),(t=>Yo(e,Ki("0xc"),t))),n.enableCommand(Ki("0x1e"),((e,o={})=>{const s=t[Ki("0x15")].document,r=o[Ki("0x2c")]||s[Ki("0x2c")],i=Array[Ki("0x1c")](r[Ki("0x23")]())[Ki("0x21")]((t=>{return e=t,(n=this.editor[Ki("0x15")][Ki("0x22")])[Ki("0x14")](e[Ki("0x1")],Ki("0x1e"))&&!n.isObject(e)&&Ki("0x1e")!=e.name;var e,n}));t[Ki("0x15")].change((()=>{for(const t of i)n[Ki("0x24")](t,{commandName:"paragraph",commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Ki("0x33")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"paragraph"==n[Ki("0x13")])return{type:Ki("0x7"),content:Yo(e,Ki("0x18"),Yo(e,Ki("0xc")))}})),n[Ki("0x2b")](Ki("0xe")),t[Ki("0x2e")][Ki("0x27")].on(Ki("0x2f"),Xi(t),{priority:Ki("0x1f")}),t.data[Ki("0x27")].on(Ki("0x2f"),((e,n,o)=>{o.options.showSuggestionHighlights&&Xi(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Ki("0x33")];o[Ki("0x28")]((n=>{if(Ki("0x19")!==n[Ki("0x0")])return;const{start:s,end:r}=n[Ki("0x5")]();if(!s[Ki("0x32")](r)||!s[Ki("0x11")])return;const i=t[Ki("0x15")].schema,a=s[Ki("0x11")];return i[Ki("0x12")](a)&&!i.isLimit(a)&&i[Ki("0x14")](a,"$text")?{type:Ki("0x19"),content:Yo(e,Ki("0x25"),o[Ki("0x31")](a,1))}:void 0}))}}function Xi(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Ki("0x26")][Ki("0x1b")]("TrackChangesEditing"),i=o.markerRange[Ki("0x6")],a=o[Ki("0xa")][Ki("0x2")],x=t.model[Ki("0x22")];if(!i[Ki("0x32")](a)||!i[Ki("0x11")])return;const c=i[Ki("0x11")];if(x[Ki("0x12")](c)&&!x[Ki("0x10")](c)&&x[Ki("0x14")](c,Ki("0x30"))){if(!s[Ki("0x29")][Ki("0xf")](o[Ki("0xa")],n.name))return;const t=s[Ki("0x1d")][Ki("0x8")](Ki("0xb"),{class:Ki("0x4")}),i=s.mapper[Ki("0x1a")](a);e&&r[Ki("0x3")].includes(o.markerName)&&s.writer.addClass("ck-suggestion-marker--active",t),s.writer.insert(i,t),s[Ki("0x17")][Ki("0x2a")](t,o[Ki("0x20")])}}}const $i=["document","registerDescriptionCallback","isCollapsed","createRangeOn","enableCommand","plugins","schema","markInlineFormat","editor","model","getAttributeProperties","getRanges","afterInit","isFormatting","getAttributes","RemoveFormatEditing","_descriptionFactory","commandName","removeFormat","has","getItems","change","locale"];var Ji,Qi;Ji=$i,Qi=218,function(t){for(;--t;)Ji.push(Ji.shift())}(++Qi);const Zi=function(t,e){return $i[t-=0]};class Yi extends t.Plugin{[Zi("0x1")](){const t=this[Zi("0x14")];if(!t[Zi("0x11")][Zi("0x8")](Zi("0x4")))return;const e=t[Zi("0x11")].get("TrackChangesEditing");e[Zi("0x10")]("removeFormat",(n=>{const o=t[Zi("0x15")][Zi("0xc")].selection;o[Zi("0xe")]?n():t[Zi("0x15")][Zi("0xa")]((()=>{const n=Array.from(o[Zi("0x0")]());for(const o of n)for(const n of o[Zi("0x9")]())ta(n,t[Zi("0x15")][Zi("0x12")])&&e[Zi("0x13")](t.model[Zi("0xf")](n),{commandName:Zi("0x7"),commandParams:[]})}))})),e[Zi("0x5")][Zi("0xd")]((e=>{const{data:n}=e;if(n&&Zi("0x7")==n[Zi("0x6")])return{type:"format",content:Yo(t[Zi("0xb")],"*Remove all formatting*")}}))}}function ta(t,e){for(const[n]of t[Zi("0x3")]()){const t=e[Zi("0x16")](n);if(t&&t[Zi("0x2")])return!0}return!1}const ea=["get","editor","discardSelectedSuggestions","enableCommand","RestrictedEditingModeEditing","plugins","goToPreviousRestrictedEditingException","discardAllSuggestions","has","goToNextRestrictedEditingException","acceptSuggestion","discardSuggestion","acceptAllSuggestions","afterInit","acceptSelectedSuggestions"];var na,oa;na=ea,oa=254,function(t){for(;--t;)na.push(na.shift())}(++oa);const sa=function(t,e){return ea[t-=0]};class ra extends t.Plugin{[sa("0xe")](){const t=this[sa("0x2")];if(!t[sa("0x6")][sa("0x9")](sa("0x5")))return;const e=t[sa("0x6")][sa("0x1")]("TrackChangesEditing");e[sa("0x4")](sa("0x7")),e.enableCommand(sa("0xa"));const n=t[sa("0x6")][sa("0x1")](sa("0x5"));n[sa("0x4")]("trackChanges"),n[sa("0x4")](sa("0xb")),n[sa("0x4")](sa("0xc")),n.enableCommand(sa("0xd")),n.enableCommand(sa("0x8")),n[sa("0x4")](sa("0x0")),n[sa("0x4")](sa("0x3"))}}const ia=["data","ck-suggestion-marker-","_descriptionFactory","createUIElement","enableCommand","getItems","high","addMarker:suggestion:deletion","locale","model","bindElementToMarker","activeMarkers","toViewPosition","showSuggestionHighlights","addClass","createPositionBefore","plugins","markerName","ck-suggestion-marker--active","TrackChangesEditing","writer","markerRange","insert","split","consumable","name","registerElementLabel","get","addMarker:suggestion:insertion","options","test","mapper","requires","softBreak","includes","editing","editor","span","downcastDispatcher","addMarker:suggestion","init"];var aa,xa;aa=ia,xa=494,function(t){for(;--t;)aa.push(aa.shift())}(++xa);const ca=function(t,e){return ia[t-=0]};class la extends t.Plugin{static get[ca("0x1e")](){return[nr.ShiftEnter]}[ca("0x26")](){const t=this[ca("0x22")],e=t.plugins[ca("0x19")](ca("0x11"));e[ca("0x2")]("shiftEnter"),t[ca("0x21")].downcastDispatcher.on(ca("0x1a"),ua(t),{priority:ca("0x4")}),t[ca("0x21")].downcastDispatcher.on(ca("0x5"),ua(t),{priority:"high"}),t[ca("0x27")][ca("0x24")].on(ca("0x25"),((e,n,o)=>{o[ca("0x1b")][ca("0xb")]&&ua(t,{showActiveMarker:!1})(e,n,o)})),e[ca("0x0")][ca("0x18")]("softBreak",(e=>Yo(t[ca("0x6")],"ELEMENT_LINE_BREAK",e)))}}function ua(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[ca("0xe")][ca("0x19")](ca("0x11"));if(!s[ca("0x16")][ca("0x1c")](o[ca("0x13")],n[ca("0x17")]))return;const i=t[ca("0x7")];for(const t of o[ca("0x13")][ca("0x3")]()){if(!t.is("element",ca("0x1f")))continue;const n="deletion"==o[ca("0xf")][ca("0x15")](":")[1]?"merge":ca("0x15"),a=s[ca("0x12")][ca("0x1")](ca("0x23"),{class:ca("0x28")+n}),x=s[ca("0x1d")][ca("0xa")](i[ca("0xd")](t));e&&r[ca("0x9")][ca("0x20")](o[ca("0xf")])&&s[ca("0x12")][ca("0xc")](ca("0x10"),a),s.writer[ca("0x14")](x,a),s[ca("0x1d")][ca("0x8")](a,o[ca("0xf")])}}}const da=["has","editor","model","markInlineFormat","format","commandName","commands","enableCommand","_descriptionFactory","locale","restrictedEditingException","getRanges","afterInit","plugins","registerDescriptionCallback","forceValue","get","from","isCollapsed","FORMAT_RESTRICTED_DISABLED","selection"];var ga,ma;ga=da,ma=373,function(t){for(;--t;)ga.push(ga.shift())}(++ma);const fa=function(t,e){return da[t-=0]};class ha extends t.Plugin{[fa("0x11")](){const t=this[fa("0x6")],e=t[fa("0x7")],n=t[fa("0xe")];if(!t[fa("0x12")][fa("0x5")]("StandardEditingModeEditing"))return;const o=t[fa("0x12")][fa("0x0")]("TrackChangesEditing"),s=fa("0xf"),r=t[fa("0xb")].get(s);o[fa("0xc")](s,((t,n={})=>{const i=e.document[fa("0x4")];if(i[fa("0x2")])return void t(n);const a=void 0!==n[fa("0x14")]?n[fa("0x14")]:!r.value;e.change((()=>{const t=Array[fa("0x1")](i[fa("0x10")]());for(const n of t){const t=a?[n]:ms(s,n,e);for(const e of t)o[fa("0x8")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))})),o[fa("0xd")][fa("0x13")]((t=>{const{data:e}=t;if(e&&e[fa("0xa")]==s)return e.commandParams[0].forceValue?{type:fa("0x9"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:fa("0x9"),content:Yo(n,fa("0x3"))}}))}}const pa=["enableCommand","_descriptionFactory","_getRangesWithClasses","add","push","Style","markInlineFormat","toLowerCase","DataSchema","get","TrackChangesEditing","style","getDefinitionsForView","format","*Remove format:* %0","change","commands","config","style.definitions","from","modelElements","locale","block","styleName","value","enabledStyles","commandParams","element","selection","isCollapsed","name","afterInit","getAncestors","getItems","_getStyleDefinition","has","registerDescriptionCallback","includes","getRanges","document","classes","forceValue","plugins","getSelectedBlocks","model","markBlockFormat","find","editor","isBlock","every","normalizeConfig"];var ba,Ea;ba=pa,Ea=113,function(t){for(;--t;)ba.push(ba.shift())}(++Ea);const _a=function(t,e){return pa[t-=0]};class Ta extends t.Plugin{[_a("0x14")](){const t=this[_a("0x24")];if(!t.plugins[_a("0x18")](_a("0x2d")))return;const e=t[_a("0x5")].get(_a("0x0")),n=t[_a("0x1f")][_a("0x31")](_a("0x32")),o=t[_a("0xa")],s=t[_a("0x1f")][_a("0x31")](_a("0x30")),r=t[_a("0x1f")][_a("0x31")]("StyleUtils")[_a("0x27")](s,t[_a("0x6")].get(_a("0x7")));n[_a("0x28")](_a("0x0"),((o,{styleName:i})=>{const a=t.model[_a("0x1c")][_a("0x11")],x=this._getStyleDefinition(i,r);if(!x)return;if(!e[_a("0xe")][_a("0x1a")](i))return;if(a[_a("0x12")]&&!x[_a("0x25")])return void o({styleName:i});const c=!e[_a("0xd")][_a("0x1a")](x[_a("0x13")]);if(x[_a("0x25")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[_a("0x15")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[_a("0x1a")](o[_a("0x13")])){n[_a("0x2b")](o);break}}return n}(a[_a("0x20")](),x[_a("0x9")]);t[_a("0x21")][_a("0x4")]((()=>{for(const t of e)n[_a("0x22")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[_a("0x8")](a[_a("0x1b")]());if(!c){const n=Array[_a("0x8")](s[_a("0x1")](x[_a("0x10")],!1))[0][_a("0x21")],o=[];for(const s of e){const e=this._getRangesWithClasses(t.model,s,x.classes,n);o[_a("0x2c")](...e)}e=o}t[_a("0x21")][_a("0x4")]((()=>{for(const t of e)n[_a("0x2e")](t,{commandName:_a("0x0"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[_a("0x29")][_a("0x19")]((t=>{const{data:e}=t;if(e&&_a("0x0")===e.commandName)return e.commandParams[0][_a("0x1e")]?{type:_a("0x2"),content:Yo(o,"*Format:* %0",e.commandParams[0][_a("0xc")][_a("0x2f")]())}:{type:_a("0x2"),content:Yo(o,_a("0x3"),e[_a("0xf")][0][_a("0xc")][_a("0x2f")]())}}))}[_a("0x17")](t,e){let n=e[_a("0xb")][_a("0x23")]((e=>e[_a("0x13")]===t));return n||(n=e.inline.find((e=>e[_a("0x13")]===t))),n}[_a("0x2a")](t,e,n,o){const s=[];for(const r of e[_a("0x16")]()){const e=r.getAttribute(o);e&&n[_a("0x26")]((t=>e[_a("0x1d")][_a("0x1a")](t)))&&s[_a("0x2c")](t.createRangeOn(r))}return s}}const Ca=["model","afterInit","createRangeIn","_suggestionFactory","createTableWalker","enqueueChange","commands","nodeBefore","$graveyard","max","tablePaste","end","removeTableRow","isArray","setSelection","values","minColumn","type","ELEMENT_TABLE_ROW","*Remove:* %0","add","toViewElement","tableCell","markMultiRangeInsertion","addClass","TableUtils","hasAttribute","map","from","ELEMENT_TABLE_ROW_WITH_TEXT","_tablePostFixingSubtypes","forceValue","plugins","enableCommand","_acceptFormatSuggestionCallbackFactory","_tableSuggestions","selection","editor","getChangedMarkers","length","_getCoordsForCells","insertTableRowBelow","change","deletion","writer","get","$textProxy","isTouching","position","getCellLocation","getRanges","rowspan","getFirstRange","document","accept","minRow","ELEMENT_TABLE_WITH_TEXT","getSuggestion","subType","insert","insertTableColumnLeft","colspan","item","span","discard","MIN_SAFE_INTEGER","filter","tableRow","has","ELEMENT_TABLE_COLUMN_WITH_TEXT","suggestion","MAX_SAFE_INTEGER","classes","first","name","removeTableColumn","toLowerCase","includes","getChildren","addRange","fromRange","order","TrackChangesEditing","cell","findAncestor","push","registerCustomCallback","_getSuggestionCoords","oldRange","rootName","createRangeOn","root","*Insert:* %0","getSelectionAffectedTableCells","differ","maxColumn","start","getRowIndexes","options","substr","nodeAfter","min","_setupColumnsRowsFixing","refresh","detach","batch","_splitMarkerName","registerDescriptionCallback","join","ELEMENT_TABLE_COLUMN","maxRow","getColumnIndexes","_descriptionFactory","getChanges","last","createPositionAt","registerElementLabel","data","showSuggestionHighlights","getContainedElement","registerPostFixer","element","getItems","table","tableColumn","addMarker:suggestion","insertion","insertTableRowAbove","some","getAttribute","execute"];var ya,ka;ya=Ca,ka=189,function(t){for(;--t;)ya.push(ya.shift())}(++ka);const Aa=function(t,e){return Ca[t-=0]};class va extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Aa("0x9"),Aa("0x42")],this[Aa("0x6c")]=new Set}[Aa("0x4a")](){const t=this[Aa("0x6e")],e=t[Aa("0x49")].document[Aa("0x6d")];if(!t.plugins[Aa("0xa")]("TableEditing"))return;const n=t.locale,o=t[Aa("0x69")].get(Aa("0x18")),s=t[Aa("0x69")][Aa("0x76")](Aa("0x62"));o._descriptionFactory[Aa("0x3a")](Aa("0x41"),(t=>Yo(n,"ELEMENT_TABLE",t))),this[Aa("0x2c")](),o[Aa("0x6a")]("insertTable"),o[Aa("0x6a")]("selectTableRow"),o[Aa("0x6a")]("selectTableColumn");for(const n of[Aa("0x45"),Aa("0x72")]){const r=t[Aa("0x4f")][Aa("0x76")](n);o.enableCommand(n,(n=>{t[Aa("0x49")][Aa("0x73")]((t=>{n();const i="above"===r[Aa("0x17")],a=s[Aa("0x23")](e),x=s[Aa("0x27")](a),c=i?x[Aa("0xf")]-1:x[Aa("0x38")]+1,l=a[0][Aa("0x1a")]("table"),u=s[Aa("0x4d")](l,{startRow:c,endRow:c}),d=Array[Aa("0x65")](u)[Aa("0x64")]((e=>t.createRangeOn(e[Aa("0x19")])));o[Aa("0x60")](d,"tableRow")}))}))}for(const n of[Aa("0x2"),"insertTableColumnRight"]){const r=t.commands[Aa("0x76")](n);o[Aa("0x6a")](n,(n=>{t[Aa("0x49")][Aa("0x73")]((t=>{n();const i="left"===r[Aa("0x17")],a=s[Aa("0x23")](e),x=s[Aa("0x35")](a),c=i?x[Aa("0xf")]-1:x.last+1,l=a[0].findAncestor("table"),u=s[Aa("0x4d")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Aa("0x65")](u)[Aa("0x64")]((e=>t[Aa("0x20")](e[Aa("0x19")])));o[Aa("0x60")](d,"tableColumn")}))}))}for(const n of[Aa("0x55"),Aa("0x11")]){const r=n[Aa("0x29")](11),i=r[Aa("0x12")](),a=i.substr(0,3)+Aa("0x5"),x=Aa("0x41")+r,c=Aa("0x2b")+r,l=Aa("0x52")+r;o[Aa("0x6a")](n,(()=>{t[Aa("0x49")][Aa("0x73")]((t=>{const r=s[Aa("0x23")](e),u=r[0][Aa("0x1a")]("table");let d;if(Aa("0x55")==n){const t=s[Aa("0x27")](r);d={startRow:t[Aa("0xf")],endRow:t[Aa("0x38")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);d={startColumn:t[Aa("0xf")],endColumn:t[Aa("0x38")],includeAllSlots:!0}}const g=s.createTableWalker(u,d),m=Array[Aa("0x65")](g)[Aa("0x64")]((({cell:t})=>t)),f=Ra(m[Aa("0x8")]((t=>t[Aa("0x63")](a)))),h=Ra(m[Aa("0x8")]((t=>!t[Aa("0x63")](a))))[Aa("0x64")]((e=>t.createRangeOn(e))),p=o.markMultiRangeDeletion(h,x);if(p&&("tableRow"==p[Aa("0x0")]||"tableColumn"==p[Aa("0x0")])){const e=this[Aa("0x1d")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Aa("0x7a")](n),x=n[Aa("0x47")](a)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+x<=d&&p[Aa("0x15")](o)}}}))}))}function r(n){const o=Array[Aa("0x65")](e[Aa("0x7b")]())[Aa("0x64")]((t=>i.LiveRange[Aa("0x16")](t)));t[Aa("0x49")][Aa("0x73")]((e=>{const s=e[Aa("0x2f")];n=n[Aa("0x8")]((t=>Aa("0x51")!=t.root.rootName)),e[Aa("0x57")](n),t[Aa("0x4f")][Aa("0x76")](Aa("0x55"))[Aa("0x2d")](),t[Aa("0x48")](Aa("0x55"),{forceDefaultExecution:!0}),t.model[Aa("0x4e")]((()=>{t[Aa("0x49")][Aa("0x4e")](s,(t=>{const e=o[Aa("0x8")]((t=>Aa("0x51")!=t[Aa("0x21")].rootName));e[Aa("0x70")]>0&&t[Aa("0x57")](e);for(const t of o)t[Aa("0x2e")]()}))}))}))}function x(n){t.model[Aa("0x73")]((o=>{const s=Array[Aa("0x65")](e[Aa("0x7b")]()).map((t=>i.LiveRange[Aa("0x16")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Aa("0x1b")](e);for(const e of r)Aa("0x51")!=e[Aa("0x21")][Aa("0x1f")]&&(o[Aa("0x57")](o[Aa("0x39")](e,0)),t.commands[Aa("0x76")](Aa("0x11")).refresh(),t[Aa("0x48")](Aa("0x11"),{forceDefaultExecution:!0}));const a=s[Aa("0x8")]((t=>Aa("0x51")!=t[Aa("0x21")][Aa("0x1f")]));a[Aa("0x70")]>0&&o[Aa("0x57")](a);for(const t of s)t[Aa("0x2e")]()}))}function c(t,e){return e.every((e=>t.some((t=>t.end.isEqual(e[Aa("0x26")])||e.end.isEqual(t[Aa("0x26")])))))}function l(t,e){return t[Aa("0x46")]((t=>e[Aa("0x46")]((e=>t.end[Aa("0x78")](e[Aa("0x26")])))))}t[Aa("0x3b")].downcastDispatcher.on(Aa("0x43"),((t,e,n)=>{if(!n[Aa("0x28")][Aa("0x3c")])return;const o=e[Aa("0x4")];if(!o)return;const s=n.mapper[Aa("0x5e")](o);function r(t){return Array[Aa("0x56")](t)?t:[t]}s&&Aa("0x5f")===o.name&&(0,a.setHighlightHandling)(s,n[Aa("0x75")],((t,e,n)=>n[Aa("0x61")](r(e[Aa("0xe")]),t)),((t,e,n)=>n.removeClass(r(e[Aa("0xe")]),t)))}),{priority:"highest"}),o[Aa("0x36")][Aa("0x31")]((t=>{if(Aa("0x44")!=t[Aa("0x5a")]&&"deletion"!=t[Aa("0x5a")])return;const e=t[Aa("0x3d")]();if(null!=e&&e.is(Aa("0x3f"),Aa("0x41"))){if(Aa("0x44")==t[Aa("0x5a")]){const e=t[Aa("0x40")]().filter((t=>t.is(Aa("0x77"))))[Aa("0x64")]((t=>t[Aa("0x3b")]));if(e.length)return{type:Aa("0x44"),content:Yo(n,Aa("0x22"),Yo(n,Aa("0x81"),'"'+e[Aa("0x32")](" ")+'"'))}}if(Aa("0x74")==t[Aa("0x5a")]){const e=t[Aa("0x40")]()[Aa("0x8")]((t=>t.is(Aa("0x77"))))[Aa("0x64")]((t=>t.data));if(e[Aa("0x70")])return{type:Aa("0x74"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Aa("0x32")](" ")+'"'))}}}})),o[Aa("0x36")][Aa("0x31")]((t=>{if("tableRow"==t[Aa("0x0")]){const e=t[Aa("0x40")]()[Aa("0x8")]((t=>t.is(Aa("0x77")))).map((t=>t.data)),o=this[Aa("0x1d")](t),s=o[Aa("0x34")]-o[Aa("0x80")]+1;if(Aa("0x44")==t[Aa("0x5a")])return e[Aa("0x70")]?{type:Aa("0x44"),content:Yo(n,Aa("0x22"),Yo(n,Aa("0x66"),[s,'"'+e.join(" ")+'"']))}:{type:Aa("0x44"),content:Yo(n,Aa("0x22"),Yo(n,"ELEMENT_TABLE_ROW",s))};if("deletion"==t.type)return e[Aa("0x70")]?{type:Aa("0x74"),content:Yo(n,Aa("0x5c"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Aa("0x32")](" ")+'"']))}:{type:Aa("0x74"),content:Yo(n,Aa("0x5c"),Yo(n,Aa("0x5b"),s))}}if(Aa("0x42")==t[Aa("0x0")]){const e=t[Aa("0x40")]()[Aa("0x8")]((t=>t.is(Aa("0x77")))).map((t=>t.data)),o=this[Aa("0x1d")](t),s=o[Aa("0x25")]-o[Aa("0x59")]+1;if(Aa("0x44")==t[Aa("0x5a")])return e[Aa("0x70")]?{type:Aa("0x44"),content:Yo(n,Aa("0x22"),Yo(n,Aa("0xb"),[s,'"'+e[Aa("0x32")](" ")+'"']))}:{type:"insertion",content:Yo(n,Aa("0x22"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Aa("0x74")==t[Aa("0x5a")])return e[Aa("0x70")]?{type:Aa("0x74"),content:Yo(n,Aa("0x5c"),Yo(n,Aa("0xb"),[s,'"'+e[Aa("0x32")](" ")+'"']))}:{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Aa("0x33"),s))}}})),o[Aa("0x4c")][Aa("0x1c")](Aa("0x44"),Aa("0x9"),"discard",r),o[Aa("0x4c")][Aa("0x1c")](Aa("0x74"),Aa("0x9"),Aa("0x7f"),r),o[Aa("0x4c")].registerCustomCallback("insertion","tableColumn",Aa("0x6"),x),o[Aa("0x4c")][Aa("0x1c")]("deletion",Aa("0x42"),"accept",x),o[Aa("0x4c")].registerCustomCallback(Aa("0x44"),Aa("0x42"),Aa("0x32"),c),o[Aa("0x4c")].registerCustomCallback("deletion",Aa("0x42"),Aa("0x32"),c),o[Aa("0x4c")][Aa("0x1c")](Aa("0x44"),"tableRow",Aa("0x32"),l),o[Aa("0x4c")].registerCustomCallback("deletion",Aa("0x9"),Aa("0x32"),l)}[Aa("0x6b")](){const t=this[Aa("0x6e")],e=t.model[Aa("0x7e")][Aa("0x6d")];return(n,o)=>{t.model[Aa("0x73")]((s=>{const{commandName:r,commandParams:a}=o;let x=n[0][Aa("0x54")][Aa("0x50")];a&&a[0]&&!1===a[0][Aa("0x68")]&&(x=n[0].start[Aa("0x2a")]);const c=s[Aa("0x4b")](x);if(Aa("0x51")==c[Aa("0x21")][Aa("0x1f")])return;const l=Array[Aa("0x65")](e[Aa("0x7b")]())[Aa("0x64")]((t=>i.LiveRange[Aa("0x16")](t)));s.setSelection(c),t[Aa("0x4f")][Aa("0x76")](r).refresh(),a.push({forceDefaultExecution:!0}),t[Aa("0x48")](r,...a);const u=l[Aa("0x8")]((t=>"$graveyard"!=t[Aa("0x21")][Aa("0x1f")]));u[Aa("0x70")]>0&&s[Aa("0x57")](u);for(const t of l)t[Aa("0x2e")]()}))}}[Aa("0x71")](t){const e=this[Aa("0x6e")].plugins[Aa("0x76")](Aa("0x62"));let n=Number[Aa("0xd")],o=Number[Aa("0x7")],s=Number[Aa("0xd")],r=Number[Aa("0x7")];for(const i of t){if(Aa("0x51")==i[Aa("0x21")][Aa("0x1f")])continue;const{row:t,column:a}=e.getCellLocation(i),x=i[Aa("0x63")](Aa("0x7c"))?i[Aa("0x47")]("rowspan")-1:0,c=i[Aa("0x63")](Aa("0x3"))?i.getAttribute(Aa("0x3"))-1:0;n=t<n?t:n,o=t+x>o?t+x:o,s=a<s?a:s,r=a+c>r?a+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Aa("0x2c")](){const t=this[Aa("0x6e")],e=t[Aa("0x69")][Aa("0x76")]("TrackChangesEditing"),n=t[Aa("0x69")][Aa("0x76")]("TableUtils");t[Aa("0x49")][Aa("0x7e")].on("change:data",(()=>{const n=Array[Aa("0x65")](t[Aa("0x49")][Aa("0x7e")][Aa("0x24")][Aa("0x6f")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Aa("0x30")](t);if(Aa("0xc")!=n)continue;if(null!=o[Aa("0x1e")])continue;const i=e[Aa("0x82")](s);this[Aa("0x67")][Aa("0x13")](r)&&this._tableSuggestions[Aa("0x5d")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Aa("0x20")](t),r=t.findAncestor(Aa("0x41")),i=n[Aa("0x7a")](t);for(const e of this[Aa("0x6c")]){const n=e[Aa("0x0")],a=n.startsWith(Aa("0x53")),x=n.substr(a?10:5),c=x.toLowerCase(),l=c[Aa("0x29")](0,3)+Aa("0x5"),u=Aa("0x2b")+x,d=Aa("0x52")+x;if(!e.isInContent)continue;if(r!=e[Aa("0x7d")]()[Aa("0x26")].findAncestor(Aa("0x41")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Aa("0x47")](l)-1:0,m=this[Aa("0x1d")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Aa("0x15")](s),o=!0)}return o};t[Aa("0x49")][Aa("0x7e")][Aa("0x3e")]((e=>{let n=!1;for(const s of t.model[Aa("0x7e")][Aa("0x24")][Aa("0x37")]())if(Aa("0x1")==s[Aa("0x5a")])if("tableRow"==s[Aa("0x10")])for(const t of s[Aa("0x79")][Aa("0x2a")][Aa("0x14")]())n=n||o(t,e);else"tableCell"==s[Aa("0x10")]&&(n=n||o(s[Aa("0x79")][Aa("0x2a")],e));return n}))}_getSuggestionCoords(t){return this._getCoordsForCells(t[Aa("0x7b")]()[Aa("0x64")]((t=>t.start[Aa("0x2a")])))}}function Ra(t){return Array[Aa("0x65")](new Set(t)[Aa("0x58")]())}const Sa=["_descriptionFactory","model","_tablePostFixingSubtypes","TableEditing","mergeTableCellRight","cell","createRangeOn","format","fromRange","registerDescriptionCallback","mergeTableCellUp","createTableWalker","push","insertion","document","splitTableCellVertically","editor","$graveyard","_areSelectedCellsMergable","map","find","direction","deletion","getFirstPosition","commandName","set:isEnabled","execute","TableUtils","plugins","*Split cell:* vertically","stop","*Merge cells*","formatBlock","horizontally","element","value","detach","TrackChangesEditing","findAncestor","*Split cell:* horizontally","markMultiRangeBlockFormat","subType","mergeTableCellDown","length","forceDefaultExecution","mergeTableCells","getSuggestions","commands","has","markBlockFormat","from","filter","enableCommand","containsRange","accept","locale","_suggestionFactory","selection","rootName","isEnabled","registerCustomCallback","author","add","type","_acceptFormatSuggestionCallbackFactory","get","splitTableCellHorizontally","setSelection","change","table","getSelectionAffectedTableCells","tableCell","mergeTableCellLeft","size","getRanges","_isForcedDefaultExecutionBlock"];var Ia,La;Ia=Sa,La=459,function(t){for(;--t;)Ia.push(Ia.shift())}(++La);const wa=function(t,e){return Sa[t-=0]};class Na extends t.Plugin{static get requires(){return[va]}afterInit(){const t=this[wa("0xd")],e=t[wa("0x4a")].document[wa("0x36")],n=t[wa("0x34")];if(!t[wa("0x19")][wa("0x2d")](wa("0x0")))return;const o=t.plugins[wa("0x3e")](wa("0x22")),s=t[wa("0x19")].get("TableUtils"),r=t[wa("0x19")].get(va);r[wa("0x4b")][wa("0x9")](wa("0x2a")),o.enableCommand(wa("0x2a"),(()=>{const e=s[wa("0x43")](t[wa("0x4a")].document[wa("0x36")]);t.model[wa("0x41")]((()=>{o[wa("0x25")](e,{commandName:wa("0x2a"),commandParams:[]},[],wa("0x2a"))}))})),t[wa("0x2c")][wa("0x3e")](wa("0x2a")).on(wa("0x17"),((e,n)=>{t[wa("0x2c")][wa("0x3e")]("trackChanges")[wa("0x20")]&&(n[wa("0x28")]>0&&n[n[wa("0x28")]-1]&&n[n[wa("0x28")]-1][wa("0x29")]||o[wa("0x48")]||this[wa("0xf")]()||e[wa("0x1b")]())}),{priority:"highest"});for(const e of["mergeTableCellUp","mergeTableCellRight",wa("0x27"),wa("0x45")]){const n=t[wa("0x2c")][wa("0x3e")](e);o[wa("0x31")](e,(()=>{const e=t[wa("0x4a")].document[wa("0x36")].getFirstPosition().getAncestors()[wa("0x11")]((t=>t.is(wa("0x1f"),wa("0x44")))),s=n[wa("0x20")];t.model[wa("0x41")]((()=>{o[wa("0x25")]([e,s],{commandName:"mergeTableCells",commandParams:[]},[],wa("0x2a"))}))}))}for(const e of[wa("0xc"),wa("0x3f")]){const n=t[wa("0x2c")].get(e);o[wa("0x31")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[wa("0x4a")].document.selection)[0],i=r[wa("0x23")](wa("0x42")),{column:a,row:x}=s.getCellLocation(r);let c=[];if(wa("0x1e")==n[wa("0x12")]){const t=s[wa("0x8")](i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array[wa("0x2f")](t)[wa("0x10")]((t=>t[wa("0x2")]))}else{const t=s[wa("0x8")](i,{column:a,includeAllSlots:!0});c=Array[wa("0x2f")](t)[wa("0x10")]((t=>t.cell))}t[wa("0x4a")][wa("0x41")]((t=>{o[wa("0x2e")](t[wa("0x3")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[wa("0x49")][wa("0x6")]((t=>{const{data:e}=t;if(e)return wa("0x2a")==e.commandName?{type:"format",content:Yo(n,wa("0x1c"))}:void 0})),o[wa("0x49")][wa("0x6")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e.commandName?{type:wa("0x4"),content:Yo(n,wa("0x1a"))}:wa("0x3f")==e[wa("0x15")]?{type:wa("0x4"),content:Yo(n,wa("0x24"))}:void 0}));const a=r[wa("0x3d")]();for(const t of[wa("0x7"),wa("0x1"),wa("0x27"),"mergeTableCellLeft"])o[wa("0x35")][wa("0x39")](wa("0x1d"),t,wa("0x33"),a);for(const t of[wa("0xc"),wa("0x3f")])o[wa("0x35")][wa("0x39")](wa("0x1d"),t,"accept",a);o[wa("0x35")].registerCustomCallback(wa("0x1d"),wa("0x2a"),wa("0x33"),(n=>{t[wa("0x4a")][wa("0x41")]((o=>{const s=Array.from(e.getRanges()).map((t=>i.LiveRange[wa("0x5")](t)));o[wa("0x40")](n),t[wa("0x2c")][wa("0x3e")]("mergeTableCells").refresh(),t[wa("0x17")]("mergeTableCells",{forceDefaultExecution:!0});const r=s[wa("0x30")]((t=>wa("0xe")!=t.root[wa("0x37")]));r[wa("0x28")]>0&&o.setSelection(r);for(const t of s)t[wa("0x21")]()}))}));for(const e of["mergeTableCellUp",wa("0x27"),wa("0x45"),wa("0x1")]){const n=t.commands[wa("0x3e")](e);n.on(wa("0x16"),((e,o,s)=>{if(s){const o=t[wa("0x4a")][wa("0xb")].selection[wa("0x14")]().getAncestors().find((t=>t.is(wa("0x1f"),"tableCell")));this._areMergableCells(n[wa("0x20")],o)||(e.return=!1,e[wa("0x1b")]())}}),{priority:"low"})}}[wa("0xf")](){const t=this.editor.commands[wa("0x3e")](wa("0x2a")),e=this.editor[wa("0x19")][wa("0x3e")](wa("0x18"));if(!t[wa("0x38")])return!1;const n=e.getSelectionAffectedTableCells(this[wa("0xd")][wa("0x4a")][wa("0xb")][wa("0x36")]);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[wa("0xd")][wa("0x19")][wa("0x3e")](wa("0x22")),o=this[wa("0xd")].model.createRangeOn(t),s=this[wa("0xd")][wa("0x4a")][wa("0x3")](e),r=new Set,i=new Set;for(const t of n[wa("0x2b")]())if((wa("0xa")==t[wa("0x3c")]||wa("0x13")==t[wa("0x3c")]||"mergeTableCells"==t[wa("0x26")])&&t.isInContent)for(const e of t[wa("0x47")]())e[wa("0x32")](o,!0)&&r[wa("0x3b")](t.type+":"+t.author.id),e[wa("0x32")](s,!0)&&i.add(t[wa("0x3c")]+":"+t[wa("0x3a")].id);if(r[wa("0x46")]!=i.size)return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ma=["mapper","showSuggestionHighlights","format","TableUtils","removeClass","highest","last","nodeBefore","ck-suggestion-marker-","forceValue","markerRange","getCellLocation","index","getRowIndexes","_acceptFormatSuggestionCallbackFactory","findAncestor","end","locale","getSuggestion","getSelectionAffectedTableCells","headingColumns","FORMAT_HEADER_COLUMN","enableCommand","createRange","setTableRowHeader","data","addClass","change","_splitMarkerName","setAttribute","FORMAT_REGULAR_COLUMN","writer","nodeAfter","document","consumable","accept","_descriptionFactory","markerName","commandName","ck-suggestion-marker--active","formatBlock","getAttribute","downcastDispatcher","_suggestionFactory","has","get","registerCustomCallback","from","includes","cell","parent","createPositionAfter","FORMAT_HEADER_ROW","first","markBlockFormat","options","childCount","getColumnIndexes","commands","data-suggestion","setTableColumnHeader","registerDescriptionCallback","name","headingRows","start","plugins","createTableWalker","table","addMarker:suggestion","getChild","createPositionBefore","afterInit","toViewElement","model","bindElementToMarker"];var Oa,Fa;Oa=Ma,Fa=437,function(t){for(;--t;)Oa.push(Oa.shift())}(++Fa);const Pa=function(t,e){return Ma[t-=0]};class Da extends t.Plugin{static get requires(){return[va]}[Pa("0x9")](){const t=this.editor;if(!t[Pa("0x3")][Pa("0x39")]("TableEditing"))return;const e=t[Pa("0x1e")],n=t[Pa("0x3")][Pa("0x3a")]("TrackChangesEditing"),o=t[Pa("0x3")].get(Pa("0x10")),s=t[Pa("0x3")][Pa("0x3a")](va);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:a,id:x}=n[Pa("0x29")](r.markerName),c=n[Pa("0x1f")](x);if(!c[Pa("0x26")]||Pa("0x49")!=c[Pa("0x26")][Pa("0x33")])return;if(r.item)return void s.stop();if(!i[Pa("0x2f")].consume(r.markerRange,s[Pa("0x0")]))return;const l=r.markerRange[Pa("0x2")][Pa("0x2d")],u=r[Pa("0x17")][Pa("0x1d")][Pa("0x14")],d=l[Pa("0x3f")][Pa("0x3f")],{column:g}=o.getCellLocation(l),{column:m}=o[Pa("0x18")](u);for(let s=g;s<=m;s++){const c=o.createTableWalker(d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Pa("0x3e")],c=i.mapper[Pa("0xa")](s);i.writer.addClass(Pa("0x15")+a,c),e&&i[Pa("0x2c")][Pa("0x2a")](Pa("0x48"),x,c),i[Pa("0xd")][Pa("0xc")](c,r[Pa("0x32")]),t&&(n.activeMarkers[Pa("0x3d")](r[Pa("0x32")])?i[Pa("0x2c")][Pa("0x27")](Pa("0x34"),c):i.writer[Pa("0x11")](Pa("0x34"),c))}}}}n[Pa("0x23")](Pa("0x25"),((e,s)=>{const r=o[Pa("0x20")](t[Pa("0xb")].document.selection),i=o[Pa("0x1a")](r),a=r[0][Pa("0x1c")](Pa("0x5")),x=a.getAttribute(Pa("0x1"))||0,c=s&&null!==s.forceValue?s.forceValue:!t[Pa("0x47")].get(Pa("0x25")).value,l=c?i.last:i[Pa("0x42")],u=a.getChild(l);let d;if(c){const e=a[Pa("0x7")](x);if(u[Pa("0x19")]<e.index)return;d=t[Pa("0xb")][Pa("0x24")](t.model.createPositionBefore(e[Pa("0x7")](0)),t[Pa("0xb")][Pa("0x40")](u.getChild(u.childCount-1)))}else{const e=a[Pa("0x7")](x-1);if(!e)return;d=t[Pa("0xb")][Pa("0x24")](t[Pa("0xb")][Pa("0x8")](u[Pa("0x7")](0)),t.model.createPositionAfter(e[Pa("0x7")](e[Pa("0x45")]-1)))}t[Pa("0xb")][Pa("0x28")]((()=>{n[Pa("0x43")](d,{commandName:Pa("0x25"),commandParams:[{forceValue:c}]},[],Pa("0x25"))}))})),n[Pa("0x23")](Pa("0x49"),((e,o)=>{const s=t[Pa("0x3")][Pa("0x3a")]("TableUtils"),r=s.getSelectionAffectedTableCells(t[Pa("0xb")][Pa("0x2e")].selection),i=s[Pa("0x46")](r),a=r[0][Pa("0x1c")](Pa("0x5")),x=a[Pa("0x36")](Pa("0x21"))||0,c=o&&null!==o[Pa("0x16")]?o[Pa("0x16")]:!t[Pa("0x47")].get(Pa("0x49")).value;let l;const u=a[Pa("0x7")](0),d=c?i[Pa("0x13")]:i[Pa("0x42")],g=s[Pa("0x4")](a,{startRow:0,column:d,includeAllSlots:!1}),m=Array[Pa("0x3c")](g)[0].cell;if(c){const e=u[Pa("0x7")](x);if(m.isBefore(e))return;l=t[Pa("0xb")][Pa("0x24")](t[Pa("0xb")][Pa("0x8")](e),t[Pa("0xb")][Pa("0x40")](m))}else{const e=u[Pa("0x7")](x-1);if(!e)return;l=t.model.createRange(t.model.createPositionBefore(m),t.model[Pa("0x40")](e))}t[Pa("0xb")][Pa("0x28")]((()=>{n[Pa("0x43")](l,{commandName:Pa("0x49"),commandParams:[{forceValue:c}]},[],Pa("0x49"))}))})),t.editing[Pa("0x37")].on(Pa("0x6"),r(),{priority:Pa("0x12")}),t.data[Pa("0x37")].on(Pa("0x6"),((t,e,n)=>{n[Pa("0x44")][Pa("0xe")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Pa("0x12")}),t.editing[Pa("0x37")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[Pa("0x29")](e.markerName),i=n[Pa("0x1f")](r);if(!i.data||Pa("0x49")!=i[Pa("0x26")].commandName)return;const a=o[Pa("0xd")].markerNameToElements(e.markerName);if(a)for(const t of a)o[Pa("0x2c")].removeClass("ck-suggestion-marker-"+s,t),o[Pa("0x2c")].removeClass("ck-suggestion-marker--active",t),o.writer.removeAttribute(Pa("0x48"),t),o[Pa("0xd")].unbindElementFromMarkerName(t,e.markerName)}),{priority:Pa("0x12")}),n[Pa("0x31")][Pa("0x4a")]((t=>{const{data:n}=t;if(n){if(Pa("0x25")==n.commandName){const t=n.commandParams[0][Pa("0x16")];return o(Yo(e,t?Pa("0x41"):"FORMAT_REGULAR_ROW"))}if(Pa("0x49")==n[Pa("0x33")]){const t=n.commandParams[0].forceValue;return o(Yo(e,Pa(t?"0x22":"0x2b")))}}function o(t){return{type:Pa("0xf"),content:Yo(e,"*Format:* %0",t)}}}));const i=s[Pa("0x1b")]();n[Pa("0x38")][Pa("0x3b")]("formatBlock",Pa("0x25"),Pa("0x30"),i),n[Pa("0x38")][Pa("0x3b")](Pa("0x35"),Pa("0x49"),Pa("0x30"),i)}}const Ba=["getChildren","has","tablePasteRow","low","_createdBatches","markerToHighlight","tableCellBorderColor","schema","insertContent","markerAttributes","discard","showSuggestionHighlights","getContainedElement","isEmpty","_suggestionFactory","_splitMarkerName","accept","createTableWalker","includes","removeColumns","createRangeIn","tablePasteCell","plugins","conversion","some","removeMarkers","getRange","root","selection","getChangedMarkers","columnInsertionIndexes","length","column","getRanges","getChild","endColumn","markers","getColumnIndexes","differ","markMultiRangeInsertion","element","suggestionLoaded","view","for","keys","getAllAdjacentSuggestions","stop","remove","cell","suggestionUnloaded","documentSelection","Users","push","TrackChangesEditing","every","setAttributes","markMultiRangeDeletion","batch","insertColumns","change","get","locale","registerDescriptionCallback","first","editing","createElement","getRowIndexes","tablePasteChainId","$graveyard","getSelectionAffectedTableCells","_getCoordsForCells","insertionRanges","paragraph","getTableIfOnlyTableInContent","subType","end","map","_tablePostFixingSubtypes","add","containsRange","suggestion","tableCell","getSuggestions","newRange","insertRows","listenTo","set","next","table","row","registerCustomCallback","afterInit","TableUtils","removeMarker","activeMarkers","formatBlock","ck-suggestion-marker","clipboardOutput","reduce","unwrap","value","join","rowInsertionRanges","suggestion:formatBlock:tablePasteCell","registerPostFixer","document","getAttributes","getMarkers","isEqual","elementToElement","from","insertion","deletion","startsWith","nodeAfter","oldRange","options","name","position","*Replace table cells*","hasSuggestion","tableCellSuggestion","_descriptionFactory","register","tablePasteColumn","find","markerName","isInContent","ck-suggestion-marker--active","getColumns","author","editor","filter","dataDowncast","model","markMultiRangeBlockFormat","commands","forceDefaultExecution","last","createRangeOn","insert","nextSibling","tableCellVerticalAlignment","fromEntries","removeRows","findAncestor","previous","type","columnInsertionRanges","rowInsertionIndexes","high","move","endRow","tablePaste","attributes","entries","cells","_replaceTableSlotCell","deletionRanges"];var ja,Ua;ja=Ba,Ua=416,function(t){for(;--t;)ja.push(ja.shift())}(++Ua);const Ga=function(t,e){return Ba[t-=0]},Ha=["tableCellBorderWidth",Ga("0x43"),"tableCellBorderStyle","tableCellHorizontalAlignment",Ga("0x2c"),"tableCellBackgroundColor","tableCellPadding"],Wa=Object.fromEntries(Ha[Ga("0x89")]((t=>[t,null])));class Va extends t.Plugin{static get requires(){return[va]}[Ga("0x98")](){const t=this[Ga("0x21")];if(!t[Ga("0x53")][Ga("0x3e")]("TableClipboard"))return;const n=t.plugins.get(Ga("0x72")),o=t[Ga("0x53")].get(Ga("0x99")),s=t[Ga("0x53")][Ga("0x79")](va),r=t[Ga("0x53")][Ga("0x79")]("TableClipboard");s[Ga("0x8a")][Ga("0x71")](Ga("0x3f"),Ga("0x1a")),t[Ga("0x24")][Ga("0x44")][Ga("0x19")](Ga("0x17"),{allowIn:Ga("0x8e"),allowContentOf:"tableCell",isLimit:!0}),t[Ga("0x54")][Ga("0xb")]({model:Ga("0x17"),view:"suggestion-td"});let i=null;t[Ga("0x24")].on(Ga("0x45"),((s,a)=>{const[x,c]=a,l=a[a[Ga("0x5c")]-1];l&&l[Ga("0x27")]||n._isForcedDefaultExecutionBlock||this.editor[Ga("0x26")][Ga("0x79")]("trackChanges")[Ga("0x2")]&&function(t,e,n,o,s){if(e&&!e.is(Ga("0x6f")))return!1;const r=s[Ga("0x86")](t,n);if(!r||!Ka(r,void 0,o))return!1;const i=o[Ga("0x82")](n[Ga("0x7")][Ga("0x59")]);if(!i[Ga("0x5c")])return!1;const a=i[0][Ga("0x2f")](Ga("0x95")),x=o[Ga("0x7f")](i),c=o[Ga("0x62")](i),l={startRow:x[Ga("0x7c")],endRow:x[Ga("0x28")],startColumn:c.first,endColumn:c[Ga("0x28")]};return 1==i.length&&(l[Ga("0x36")]+=o.getRows(r)-1,l[Ga("0x60")]+=o[Ga("0x1f")](r)-1),Ka(a,l,o)}(x,c,t[Ga("0x24")],o,r)&&(s[Ga("0x6b")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Ga("0x24")].change((()=>{t.model.insertContent(a[0],a[1],a[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:x,deletionRanges:c,cells:l}=i;s[Ga("0x5c")]&&n[Ga("0x64")](s,Ga("0x3f"),{tablePasteChainId:o}),r.length&&n[Ga("0x64")](r,Ga("0x1a"),{tablePasteChainId:o}),x[Ga("0x5c")]&&n[Ga("0x64")](x,Ga("0x37"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Ga("0x5c")]&&n[Ga("0x75")](c,Ga("0x37"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Ga("0x25")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Ga("0x52"),{tablePasteChainId:o});if(u){const e=u[Ga("0x9")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Ga("0x29")](o),i=e[Ga("0x1b")]((t=>t.getRange()[Ga("0xa")](r)));i&&n.push([i[Ga("0x13")],s])}n[Ga("0x5c")]&&u.setAttribute(Ga("0x46"),Object[Ga("0x2d")](n))}i=null})))}),{priority:e.priorities.high+10}),t[Ga("0x53")].get("TableClipboard").on(Ga("0x3b"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Ga("0x6b")]();const r=n[Ga("0x6d")],a=o,x=za(r),c=za(a);t.return=r;let l=null,u=null;if(c||x)if(x&&!c){s[Ga("0x6c")](r[Ga("0x5f")](0));for(const t of Array[Ga("0xc")](a[Ga("0x3d")]()))s[Ga("0x2a")](t,r,Ga("0x88"));const t=i[Ga("0x33")].includes(n[Ga("0x96")]),e=i[Ga("0x5b")].includes(n[Ga("0x5d")]);t||e||(l=s[Ga("0x51")](r))}else c&&!x&&(u=s[Ga("0x51")](r));else{const t=s[Ga("0x7e")](Ga("0x17")),e=s[Ga("0x7e")](Ga("0x17"));s.wrap(s.createRangeIn(r),e),s.insert(t,r,0);for(const e of Array[Ga("0xc")](a[Ga("0x3d")]()))s[Ga("0x2a")](e,t,Ga("0x88"));l=s[Ga("0x29")](t),u=s[Ga("0x29")](e)}const d=Array[Ga("0xc")](a[Ga("0x8")]())[Ga("0x22")]((([t])=>Ha.includes(t)));i[Ga("0x3a")][Ga("0x71")]({element:r,attributes:d.length?Object.fromEntries(d):null}),l&&i[Ga("0x84")][Ga("0x71")](l),u&&i[Ga("0x3c")][Ga("0x71")](u)}),{priority:Ga("0x34")}),o.on(Ga("0x77"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r.columns||1;i.columnInsertionIndexes=new Array(x).fill(a)[Ga("0x89")](((t,e)=>t+e));for(const{cell:e}of o[Ga("0x4e")](s,{startColumn:a,endColumn:a+x-1}))i[Ga("0x32")][Ga("0x71")](t[Ga("0x24")][Ga("0x29")](e))}),{priority:Ga("0x40")}),o.on(Ga("0x91"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r.rows||1;i[Ga("0x33")]=new Array(x).fill(a)[Ga("0x89")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:a,endRow:a+x-1}))i[Ga("0x4")][Ga("0x71")](t[Ga("0x24")][Ga("0x29")](e))}),{priority:"low"}),n[Ga("0x18")][Ga("0x7b")]((e=>{if(e.subType&&e.subType[Ga("0xf")](Ga("0x37")))return e[Ga("0x30")]?{}:{type:Ga("0xd"),content:Yo(t[Ga("0x7a")],Ga("0x15"))}}));const a=()=>{};for(const t of[Ga("0x37"),Ga("0x1a"),Ga("0x3f"),Ga("0x52")])n[Ga("0x4b")][Ga("0x97")]("insertion",t,Ga("0x3"),a),n[Ga("0x4b")].registerCustomCallback(Ga("0xe"),t,"join",a);n._suggestionFactory[Ga("0x97")](Ga("0x9c"),Ga("0x52"),"discard",a),n._suggestionFactory[Ga("0x97")](Ga("0x9c"),Ga("0x52"),Ga("0x4d"),((e,n,o)=>{const s=e[Ga("0x89")]((t=>t[Ga("0x49")]()))[Ga("0x22")]((t=>t)),r=new Map(s[Ga("0x89")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Ga("0x3a")])e&&r[Ga("0x93")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Ga("0x39")](o[Ga("0x46")])){const o=t[Ga("0x24")][Ga("0x61")].get(e),s=o?o[Ga("0x57")]()[Ga("0x49")]():null;s&&r[Ga("0x93")](s,n)}t.model[Ga("0x78")]((t=>{for(const[e,n]of r)t[Ga("0x74")]({...Wa,...n},e)}))}));const x=(e,o)=>{n._suggestionFactory[Ga("0x97")](e,Ga("0x37"),o,((s,r,i)=>{t[Ga("0x24")].change((t=>{const a=[];for(const t of s){const e=t.start[Ga("0x10")];e.is(Ga("0x65"),"tableCellSuggestion")&&a[Ga("0x71")](e)}n[Ga("0x4b")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of a)Ga("0x81")!=e[Ga("0x58")].rootName&&t.unwrap(e)}))}))};x("insertion",Ga("0x4d")),x(Ga("0xd"),Ga("0x47")),x(Ga("0xe"),Ga("0x4d")),x(Ga("0xe"),"discard"),n[Ga("0x4b")][Ga("0x97")]("insertion",Ga("0x3f"),Ga("0x47"),(t=>{const e=t[Ga("0x89")]((t=>t[Ga("0x49")]())),n=e[0][Ga("0x2f")](Ga("0x95")),{minRow:r,maxRow:i}=s[Ga("0x83")](e);o[Ga("0x2e")](n,{at:r,rows:i-r+1})})),n[Ga("0x4b")].registerCustomCallback(Ga("0xd"),Ga("0x1a"),Ga("0x47"),(t=>{const e=t[Ga("0x89")]((t=>t[Ga("0x49")]())),n=e[0].findAncestor(Ga("0x95")),{minColumn:r,maxColumn:i}=s[Ga("0x83")](e);o[Ga("0x50")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Ga("0x87")]||!e[Ga("0x87")].startsWith(Ga("0x37")))return;const o=e[Ga("0x38")].tablePasteChainId,s=n[Ga("0x8f")]()[Ga("0x22")]((t=>t[Ga("0x1d")]&&t[Ga("0x38")]&&t[Ga("0x38")][Ga("0x80")]==o));s[Ga("0x5c")]&&e[Ga("0x6a")]().length!=s.length&&s[Ga("0x0")](((t,e)=>(t[Ga("0x94")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Ga("0x4c")](t[Ga("0x1c")]),s=[Ga("0x9d"),"ck-suggestion-marker-insertion"],r=n[Ga("0x9b")][Ga("0x4f")](t.markerName);return r&&s[Ga("0x71")](Ga("0x1e")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Ga("0x66"),c,{priority:Ga("0x34")}),n.on(Ga("0x6e"),c,{priority:Ga("0x34")}),t[Ga("0x24")][Ga("0x7")].registerPostFixer((()=>{let e=!1;const o=Array[Ga("0xc")](t[Ga("0x24")].document[Ga("0x63")][Ga("0x5a")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:a}=n[Ga("0x4c")](s);if("suggestion"!=o||Ga("0xe")!=i||r[Ga("0x11")])continue;if(!n[Ga("0x16")](a))continue;const x=n.getSuggestion(a)[Ga("0x5e")](),c=t[Ga("0x53")][Ga("0x79")](Ga("0x70")).me;for(const t of n[Ga("0x8f")]())if(t[Ga("0x1d")]&&t.author==c&&Ga("0x9c")==t.type&&Ga("0x52")==t.subType&&t[Ga("0x5e")]()[Ga("0x73")]((t=>x[Ga("0x55")]((e=>e[Ga("0x8c")](t,!0))))))for(const n of t[Ga("0x6a")]())n[Ga("0x1d")]&&(n[Ga("0x47")](),e=!0)}return e})),t.model[Ga("0x7")][Ga("0x6")]((e=>{const o=t.commands[Ga("0x79")]("redo");if(!o||!o[Ga("0x41")].has(e[Ga("0x76")]))return!1;let s=!1;const r=t.plugins.get("Users").me,i=t[Ga("0x24")][Ga("0x7")][Ga("0x63")].getChanges(),a=Array[Ga("0xc")](t[Ga("0x24")][Ga("0x7")].differ[Ga("0x5a")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Ga("0x4c")](t);return Ga("0x8d")==o&&Ga("0x37")==s&&i==r.id&&!e[Ga("0x11")]}));for(const t of i){if(Ga("0x2a")!=t[Ga("0x31")]||Ga("0x17")!=t[Ga("0x13")]||1!=t[Ga("0x5c")])continue;const n=e.createRange(t.position,t[Ga("0x14")].getShiftedBy(1));if(!a[Ga("0x1b")]((({data:t})=>t[Ga("0x90")].isEqual(n))))for(const{name:t,data:o}of a)if(n.containsRange(o[Ga("0x90")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Ga("0x24")][Ga("0x7")][Ga("0x6")]((e=>{let o=!1;const s=t[Ga("0x53")][Ga("0x79")]("Users").me,r=n[Ga("0x8f")]()[Ga("0x22")]((t=>t[Ga("0x1d")]&&t[Ga("0x20")]==s)),i=new Set,a=new Set;for(const t of r)if("tablePaste"==t[Ga("0x87")])for(const e of t[Ga("0x9")]()){const n=e[Ga("0x57")]()[Ga("0x49")]();if(n)if(n.is(Ga("0x65"),"tableCellSuggestion")&&za(n)){t.removeMarker(e.name),i[Ga("0x8b")](n),o=!0;const s=n[Ga("0x2b")],r=n.previousSibling,x=s&&s.is(Ga("0x65"),Ga("0x17")),c=r&&r.is("element","tableCellSuggestion");x&&!i[Ga("0x3e")](s)&&a.add(s),c&&!i.has(r)&&a[Ga("0x8b")](r)}else n.is("element",Ga("0x85"))&&n[Ga("0x4a")]&&(t[Ga("0x9a")](e[Ga("0x13")]),o=!0)}else if("tablePasteCell"==t.subType){if(!t[Ga("0x38")]||!t.attributes[Ga("0x80")])continue;const e=t.attributes.markerAttributes;if(e&&Object[Ga("0x69")](e)[Ga("0x5c")])continue;const n=t[Ga("0x38")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[Ga("0x87")]&&e.subType.startsWith(Ga("0x37"))){if(!e[Ga("0x38")][Ga("0x80")]){i=!1;break}if(e.id!=t.id&&e.attributes[Ga("0x80")]==n){s=!1;break}}i&&s&&(t[Ga("0x56")](),o=!0)}for(const t of i)e.remove(t);for(const t of a)e[Ga("0x1")](t);return o})),t[Ga("0x54")].for("editingDowncast")[Ga("0x42")]({model:Ga("0x5"),view:(t,e)=>l(t),converterPriority:Ga("0x34")}),t.conversion[Ga("0x68")](Ga("0x23")).markerToHighlight({model:Ga("0x5"),view:(t,e)=>e[Ga("0x12")][Ga("0x48")]?l(t,!1):null,converterPriority:"high"});const u=t[Ga("0x7d")][Ga("0x67")];this[Ga("0x92")](u[Ga("0x7")],Ga("0x9e"),((t,e)=>{const n=[];for(const t of u[Ga("0x51")](e.content).getItems())t.is(Ga("0x65"),"suggestion-td")&&n[Ga("0x71")](t);u[Ga("0x78")]((t=>{for(const e of n)t[Ga("0x35")](t[Ga("0x51")](e),t.createPositionBefore(e)),t[Ga("0x6c")](e)}))}))}}function za(t){if(t[Ga("0x4a")])return!0;const e=t.getChild(0);return e.is(Ga("0x65"),Ga("0x85"))&&e.isEmpty}function Ka(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Ga("0x4e")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const qa=["*Format:* resize table","TableColumnResizeEditing","resizeTable","getSelectedElement","author","handleResizeTableWidthCommand","document","bind","enableCommand","model","registerCustomCallback","table","get","locale","tableWidth","commandParams","getTableColumnsWidths","discard","editor","getAttribute","getColumnGroupElement","_suggestionFactory","handleSuggestionDescription","TrackChangesEditing","resizeColumnWidths","subType","getContainedElement","columnWidths","resizeTableWidth","plugins","selection","registerDescriptionCallback","formatBlock","data","accept","Users","markBlockFormat","_descriptionFactory"];var Xa,$a;Xa=qa,$a=224,function(t){for(;--t;)Xa.push(Xa.shift())}(++$a);const Ja=function(t,e){return qa[t-=0]};class Qa extends t.Plugin{afterInit(){if(!this.editor[Ja("0x21")].has("TableColumnResizeEditing"))return;const t=this[Ja("0x16")][Ja("0x21")][Ja("0x10")](Ja("0x1b"));t[Ja("0xc")](Ja("0x20"),this[Ja("0x9")][Ja("0xb")](this)),t[Ja("0xc")](Ja("0x1c"),this[Ja("0x9")][Ja("0xb")](this)),t[Ja("0x19")][Ja("0xe")]("formatBlock",Ja("0x6"),Ja("0x0"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,"discard")),t._suggestionFactory[Ja("0xe")]("formatBlock",Ja("0x6"),Ja("0x15"),t[Ja("0x19")].getSuggestionCallback(Ja("0x24"),null,Ja("0x0"))),t[Ja("0x3")][Ja("0x23")](this[Ja("0x1a")][Ja("0xb")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor[Ja("0x21")][Ja("0x10")]("TrackChangesEditing"),o=this[Ja("0x16")][Ja("0x21")][Ja("0x10")](Ja("0x5")),s=e[Ja("0xf")]||this[Ja("0x16")][Ja("0xd")][Ja("0xa")][Ja("0x22")][Ja("0x7")]();this[Ja("0x16")][Ja("0xd")].change((()=>{const r=o[Ja("0x18")](s);let i=r?o[Ja("0x14")](r):null,a=s[Ja("0x17")](Ja("0x12"))||null;const x=e.tableWidth||a,c=e[Ja("0x1f")]||i,l=this.editor.plugins[Ja("0x10")](Ja("0x1")).me;for(const t of n.getSuggestions()){const e=t[Ja("0x1e")]();if(Ja("0x6")===t[Ja("0x1d")]&&e===s){t[Ja("0x8")]!==l&&t.discard();const e=t[Ja("0x25")][Ja("0x13")];a=e[0][Ja("0x12")],i=e[0].columnWidths;break}}t({table:s,tableWidth:x,columnWidths:c}),n[Ja("0x2")](s,{commandName:Ja("0x20"),commandParams:[{tableWidth:a,columnWidths:i}],formatGroupId:Ja("0x6")},[],Ja("0x6"))}))}[Ja("0x1a")](t){const{data:e}=t;if(e&&Ja("0x6")===e.formatGroupId){const t=Ja("0x4");return{type:"format",content:Yo(this.editor[Ja("0x11")],t)}}}}const Za=["element","registerPostFixer","registerElementLabel","ELEMENT_TITLE","_splitMarkerName","get","differ","start","isTouching","TrackChangesEditing","nodeBefore","_descriptionFactory","document","locale","model","from","title-content","Title","removeMarker","isCollapsed","editor","getNearestSelectionRange","schema","getChangedMarkers","newRange","plugins","end","afterInit"];var Ya,tx;Ya=Za,tx=119,function(t){for(;--t;)Ya.push(Ya.shift())}(++tx);const ex=function(t,e){return Za[t-=0]};class nx extends t.Plugin{[ex("0x14")](){const t=this[ex("0xd")];if(!t[ex("0x12")].has(ex("0xa")))return;const e=t[ex("0x12")][ex("0x1a")](ex("0x2"));e[ex("0x4")][ex("0x17")](ex("0x9"),(()=>Yo(t[ex("0x6")],ex("0x18")))),t[ex("0x7")].document[ex("0x16")]((n=>{let o=!1;const s=Array[ex("0x8")](t[ex("0x7")][ex("0x5")][ex("0x1b")][ex("0x10")]());for(const{name:r,data:i}of s){const{group:s}=e[ex("0x19")](r);if("suggestion"!==s||!i.newRange)continue;const a=i[ex("0x11")],x=a[ex("0x13")][ex("0x3")];if(!x||!x.is(ex("0x15"),ex("0x9")))continue;if(!a.start[ex("0x1")](a[ex("0x13")]))continue;const c=t[ex("0x7")][ex("0xf")][ex("0xe")](a[ex("0x13")],"forward");if(c&&c[ex("0xc")]){const t=n.createRange(a[ex("0x0")],c[ex("0x0")]);t.isEqual(a)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[ex("0xb")](r),o=!0)}return o}))}}const ox=["enableCommand","plugins","TrackChangesEditing","UndoEditing","undo","afterInit","get","editor"];var sx,rx;sx=ox,rx=192,function(t){for(;--t;)sx.push(sx.shift())}(++rx);const ix=function(t,e){return ox[t-=0]};class ax extends t.Plugin{[ix("0x5")](){const t=this[ix("0x7")],e=t.plugins[ix("0x6")](ix("0x2"));t[ix("0x1")].has(ix("0x3"))&&(e[ix("0x0")](ix("0x4")),e.enableCommand("redo"))}}const xx=["editor","afterInit","plugins","TableCaptionEditing","has","enableCommand"];var cx,lx;cx=xx,lx=461,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return xx[t-=0]};class dx extends t.Plugin{static get requires(){return[va]}[ux("0x2")](){const t=this[ux("0x1")];t.plugins[ux("0x5")](ux("0x4"))&&t[ux("0x3")].get("TrackChangesEditing")[ux("0x0")]("toggleTableCaption")}}const gx=["has","locale","DocumentListPropertiesUtils","startIndex","handleListReversedCommand","isFirstBlockOfListItem","type","format","selection","getAttribute","listReversed","markMultiRangeBlockFormat","*Format:* set order to regular","toUpperCase","ELEMENT_","list.properties","handleDescriptions","getListTypeFromListStyleType","afterInit","handleListStyleCommand","listStart","listStyle","plugins","document","*Format:* set order to reversed","DocumentListUtils","commandParams","numbered","_getTranslationKeyForListStyle","expandListBlocksToCompleteList","handleListStartCommand","commandName","from","DocumentListPropertiesEditing","editor","enableCommand","styles","model","TrackChangesEditing","get","_getSuggestionBlocksForListStyle","isListItemBlock","config","length","bind","reversed","*Format:* set start index to %0","filter","change","_getSuggestionBlocks"];var mx,fx;mx=gx,fx=329,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0x27")](){if(!this[hx("0x5")][hx("0x2b")][hx("0x15")](hx("0x4")))return;const t=this[hx("0x5")][hx("0xd")].get(hx("0x24")),e=this[hx("0x5")][hx("0x2b")][hx("0xa")](hx("0x9"));t[hx("0x7")]&&e[hx("0x6")](hx("0x2a"),this.handleListStyleCommand.bind(this)),t.reversed&&e[hx("0x6")](hx("0x1f"),this[hx("0x19")][hx("0xf")](this)),t.startIndex&&e[hx("0x6")]("listStart",this[hx("0x1")].bind(this)),e._descriptionFactory.registerDescriptionCallback(this[hx("0x25")].bind(this))}[hx("0x28")](t,e={}){const n=this[hx("0x5")][hx("0x2b")].get(hx("0x9")),o=this._getSuggestionBlocksForListStyle();this[hx("0x5")][hx("0x8")][hx("0x13")]((()=>{n[hx("0x20")](o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:hx("0x2a")})}))}[hx("0x19")](t,e={}){const n=this.editor[hx("0x2b")].get(hx("0x9")),o=this.editor[hx("0x2b")][hx("0xa")](hx("0x2e")),s=this[hx("0x14")]((t=>o[hx("0xc")](t)&&"numbered"===t[hx("0x1e")]("listType")));null!==s&&this[hx("0x5")].model[hx("0x13")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:hx("0x1f"),commandParams:[{reversed:e[hx("0x10")]}],formatGroupId:hx("0x1f")})}))}[hx("0x1")](t,e={}){const n=this[hx("0x5")][hx("0x2b")].get(hx("0x9")),o=this[hx("0x5")].plugins[hx("0xa")]("DocumentListUtils"),s=this._getSuggestionBlocks((t=>o[hx("0xc")](t)&&hx("0x30")===t[hx("0x1e")]("listType")));null!==s&&this[hx("0x5")].model[hx("0x13")]((()=>{n[hx("0x20")](s,{commandName:"listStart",commandParams:[{startIndex:e[hx("0x18")]}],formatGroupId:hx("0x29")})}))}[hx("0x25")](t){const e=this.editor[hx("0x16")],{data:n}=t;if(!n)return;let o,s;switch(n[hx("0x2")]){case hx("0x2a"):o="*Change to:* %0",s={type:hx("0x1c"),content:Yo(e,o,Yo(e,this[hx("0x31")](n.commandParams[0][hx("0x1b")])))};break;case hx("0x1f"):o=n[hx("0x2f")][0][hx("0x10")]?hx("0x2d"):hx("0x21"),s={type:hx("0x1c"),content:Yo(e,o)};break;case hx("0x29"):o=hx("0x11"),s={type:hx("0x1c"),content:Yo(e,o,n[hx("0x2f")][0][hx("0x18")])}}return s}[hx("0xb")](){const t=this.editor[hx("0x2b")][hx("0xa")]("DocumentListUtils");let e=Array.from(this[hx("0x5")].model[hx("0x2c")][hx("0x1d")].getSelectedBlocks());return e.push(...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[hx("0x5")].plugins.get(hx("0x2e"));let n=Array[hx("0x3")](this[hx("0x5")][hx("0x8")].document[hx("0x1d")].getSelectedBlocks())[hx("0x12")](t);if(!n[hx("0xe")])return null;n=e[hx("0x0")](n);const o=[];for(const t of n)e[hx("0x1a")](t)&&o.push(t);return o}[hx("0x31")](t){return hx("0x23")+this[hx("0x5")][hx("0x2b")].get(hx("0x17"))[hx("0x26")](t)[hx("0x22")]()+"_LIST_"+t[hx("0x22")]().replace(/-/g,"_")}}const bx=["join","registerCustomCallback","tableCellProperties","enableCommand","_suggestionFactory","tableCellPadding","removeAttribute","tableCellVerticalAlignment","TableCellPropertiesEditing","_handlePropertyChange","tableHeight","tableBackgroundColor","handleDiscardAction","tableAlignment","TrackChangesTableProperties","tableCellBorderWidth","data","format","enqueueChange","editor","_getSuggestion","tableCellHorizontalAlignment","tableBorderColor","start","tableCellBorderColor","getAttribute","getSuggestionCallback","getContainedElement","pluginName","plugins","commandParams","getFirstPosition","discard","afterInit","table","*Format:* change table cell properties","setAttribute","handleSuggestionDescription","tableProperties","selection","getSelectionAffectedTableCells","TablePropertiesEditing","change","model","*Format:* change table properties","findAncestor","tableBorderWidth","get","TableUtils","has","subType","TrackChangesEditing","getSuggestions","accept","registerDescriptionCallback","formatBlock","tableWidth","locale","tableCellHeight","tableCellWidth","document"];var Ex,_x;Ex=bx,_x=438,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{constructor(t){super(t),this[Tx("0x1b")]=[Tx("0xb"),"tableBorderStyle",Tx("0x23"),Tx("0x2"),Tx("0x2d"),Tx("0x3c"),Tx("0x0")],this[Tx("0x34")]=[Tx("0xd"),"tableCellBorderStyle",Tx("0x4"),Tx("0x37"),Tx("0x30"),Tx("0x2f"),"tableCellBackgroundColor",Tx("0xa"),Tx("0x39")]}static get[Tx("0x11")](){return Tx("0x3")}[Tx("0x16")](){const t=this[Tx("0x8")][Tx("0x12")][Tx("0x24")](Tx("0x28"));if(this[Tx("0x8")][Tx("0x12")].has(Tx("0x1e"))){for(const e of this[Tx("0x1b")])t[Tx("0x35")](e,((t,n)=>{const o=this[Tx("0x8")][Tx("0x20")][Tx("0x31")][Tx("0x1c")][Tx("0x14")]()[Tx("0x22")](Tx("0x17"));this._handlePropertyChange(e,[o],this.tableProperties,Tx("0x1b"),t,n)}));t[Tx("0x36")][Tx("0x33")](Tx("0x2c"),Tx("0x1b"),Tx("0x2a"),t._suggestionFactory.getSuggestionCallback(Tx("0x2c"),null,Tx("0x15"))),t[Tx("0x36")][Tx("0x33")]("formatBlock",Tx("0x1b"),Tx("0x15"),((t,e)=>this[Tx("0x1")](this[Tx("0x1b")],t,e))),t[Tx("0x36")].registerCustomCallback(Tx("0x2c"),Tx("0x1b"),Tx("0x32"),(()=>!1))}if(this.editor[Tx("0x12")][Tx("0x26")](Tx("0x3a"))){for(const e of this.tableCellProperties)t[Tx("0x35")](e,((t,n)=>{const o=this[Tx("0x8")][Tx("0x12")].get(Tx("0x25"))[Tx("0x1d")](this[Tx("0x8")].model.document.selection);this[Tx("0x3b")](e,o,this.tableCellProperties,Tx("0x34"),t,n)}));t[Tx("0x36")].registerCustomCallback(Tx("0x2c"),Tx("0x34"),Tx("0x2a"),t[Tx("0x36")][Tx("0xf")](Tx("0x2c"),null,Tx("0x15"))),t[Tx("0x36")][Tx("0x33")](Tx("0x2c"),"tableCellProperties",Tx("0x15"),((t,e)=>this[Tx("0x1")](this[Tx("0x34")],t,e))),t._suggestionFactory[Tx("0x33")](Tx("0x2c"),"tableCellProperties","join",(()=>!1))}t._descriptionFactory[Tx("0x2b")]((t=>this.handleSuggestionDescription(t)))}[Tx("0x3b")](t,e,n,o,s,r){const i=this[Tx("0x8")].plugins[Tx("0x24")](Tx("0x28"));this[Tx("0x8")].model[Tx("0x7")](r.batch,(()=>{for(const t of e)if(this[Tx("0x9")](t,o))s(r);else{const e={};for(const o of n){const n=t[Tx("0xe")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Tx("0xc")].nodeAfter,s=n[Tx("0x13")][0];this[Tx("0x8")][Tx("0x20")][Tx("0x1f")]((e=>{for(const n of t)void 0!==s[n]?e[Tx("0x19")](n,s[n],o):e[Tx("0x38")](n,o)}))}[Tx("0x1a")](t){if(t[Tx("0x5")])switch(t[Tx("0x27")]){case Tx("0x1b"):return{type:Tx("0x6"),content:Yo(this.editor[Tx("0x2e")],Tx("0x21"))};case Tx("0x34"):return{type:Tx("0x6"),content:Yo(this[Tx("0x8")][Tx("0x2e")],Tx("0x18"))}}}_getSuggestion(t,e){const n=this[Tx("0x8")].plugins.get("TrackChangesEditing");for(const o of n[Tx("0x29")]({skipNotAttached:!0})){const n=o[Tx("0x10")]();if(o[Tx("0x27")]===e&&n===t)return o}return null}}const yx=["PENDING_ACTION_SUGGESTION","getAncestors","_enabledCommands","options","data-suggestion","update:suggestion","applyOperation","commandName","return","isEqual","selection","activeMarkers","suggestion:","addRange","discard","normal","_customCallbacks","dataToMarker","detach","getMultiRangeId","change:activeMarkers","markerReady","isDocumentOperation","_findSuggestions","elementStart","_handleNewSuggestionMarker","_checkSuggestionCorrectness","values","isObject","insert","has","parent","updateSuggestion","filter","containerElement","subType","_rangeIsInLocalUserInsertion","containsRange","_getExternalAuthor","size","formatInline:chain","isNextTo","refresh","elementToElement","_trackFormatChanges","$graveyard","removeComment","_getAuthorFromId","isMultiRange","_breakSuggestionMarker","howMany","hasCommentThread","createRange","attributes","getChangedMarkers","deletion:discard","insertion:","_defaultCallbacks","createPositionAt","getAttribute","getLastMatchingPosition","@external","registerCustomCallback","marker-count","name","PendingActions","isOwn","accepted","isCollapsed","deletion:join","trackChangesCommand","isAtEnd","isBefore","ck-suggestion-marker--active","_getSuggestionData","external:","deletion","ready","adapter","_setSuggestionData","push","bindElementToMarker","createPositionBefore","enableCommand","formatInline:discard","CommentsRepository","isInContent","acceptSuggestion","isSelectable","next","_adapter","length","commands","deletion:chain","track-changes-suggestion-data-mismatch","formatInline:accept","createRangeIn","_createSuggestion","commentThread","getAllAdjacentSuggestions","delete","suggestionChanged","createPositionAfter","formatInline","pluginName","ck-suggestion-marker-","track-changes-adapter-missing-getsuggestion","markDeletion","root","getShiftedBy","differ","isRemovable","acceptAllSuggestions","conversion","type","formatGroupId","formatInline:","addMarker:suggestion:formatBlock","clone","isUndo","createdAt","setSelection","markInsertion","removed","_registerDefaultCallbacks","split","author","model","suggestionLoaded","splice","every","getChanges","join","addComment","isLimit","splitPosition","high","removeMarkers","nodeAfter","hasSuggestion","markerToData","before","getMarkers","group","getFirstMarker","_commentsRepository","dataDowncast","isIntersectingWithRange","_addSuggestionMarker","locale","_saved","getSuggestionCallback","value","Users","forceDefaultExecution","getWalker","get","move","consumable","previous","getUser","remove","_model","getFirstRange","map","ck-suggestion-marker-formatBlock","isInsideObject","$textProxy","end","addSuggestion","addMarker","schema","plugins","setAttribute","isBlock","getSuggestions","editor","newRange","_suggestionFactory","stop","_setSuggestionRange","_joinWithAdjacentSuggestions","multipleBlocks","track-changes-command-not-found","head","authoredAt","ck-suggestion-marker","formatBlock:accept","sort","range","containsRangeInObject","track-changes-suggestion-not-found","documentSelection","mapper","position","init","define","markerNameToElements","getIntersection","config","trackChanges.trackFormatChanges","getDifference","removeMarker","trackChanges","_isForcedDefaultExecutionBlock","insertion:chain","toViewElement","_editor","enableReadOnlyMode","rootName","discardAllSuggestions","isAfter","fire","consume","data","addClass","nodeBefore","getRanges","formatBlock:chain","rejected","markBlockFormat","execute","deletion:","_cutOutSuggestionMarker","createElement","item","removeMarker:suggestion:formatBlock","insertContent","addSuggestionData","addMarker:suggestion","updateMarker","registerPostFixer","formatBlock:discard","lowest","listenTo","markers","_refreshSuggestionsChain","acceptSelectedSuggestions","markInlineFormat","start","formatInline:join","change","getNearestSelectionRange","writer","editingDowncast","track-changes-adapter-already-set","createSelection","batch","getCustomProperty","resolve","_addThreadToSuggestion","add","fromCharCode","chain","forward","creator","upcast","includes","markerToHighlight","buildSuggestion","_descriptionFactory","_suggestionState","multi","suggestion","markerName","hasComments","for","containsItem","toJSON","_suggestions","catch","set","then","deleteContent","isAtStart","formatBlock:","_joinSuggestions","getItems","showSuggestionHighlights","removeClass","_splitMarkerName","reconvertMarker","insertion","some","unbindElementFromMarkerName","getCommentThread","_onDiscard","containsPosition","suggestion-type","moveTargetPosition","discardSuggestion","getSuggestion","addHighlight","addMarkerName","collaboration.channelId","_removeSuggestion","change:data","_updateSuggestionData","deletion:accept","setTo","widget","element","discardSelectedSuggestions","notReady","dataReady","insertion:join","oldRange","stopListening","formatBlock","document","from","accept","after","low"];var kx,Ax;kx=yx,Ax=103,function(t){for(;--t;)kx.push(kx.shift())}(++Ax);const vx=function(t,e){return yx[t-=0]};class Rx extends t.Plugin{static get requires(){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Vs,Js,er,px,ar,dr,br,yr,Ir,Or,jr,Vr,$r,ti,ri,li,fi,_i,Ri,Ni,Di,Hi,qi,Yi,ra,la,ha,Ta,va,Na,Da,dx,Va,Qa,Cx,nx,ax]}static get[vx("0x1")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[vx("0x3d")]((t=>String[vx("0x95")](t))).join("")}super(t),this[vx("0xa8")](vx("0xde"),[]),this.on(vx("0xe7"),((e,n,o,s)=>{this[vx("0x3b")][vx("0x8a")]((()=>{for(const e of[...s,...o])this[vx("0x3b")][vx("0x84")][vx("0xf1")](e)&&t.editing[vx("0xb2")](e)}))})),this[vx("0x9d")]=new ss(this[vx("0x49")].model[vx("0x44")],this[vx("0x49")][vx("0x2e")]),this[vx("0x12d")]=null,this[vx("0x4b")]=new Sx(this.editor),this[vx("0xa6")]=new Map,this[vx("0x2a")]=t[vx("0x45")][vx("0x35")](vx("0x128")),this[vx("0xd5")]=new Set,this[vx("0x3b")]=this[vx("0x49")].model,this[vx("0x9e")]=new WeakMap,this[vx("0x65")]=!1,t[vx("0x60")][vx("0x5d")]("trackChanges.trackFormatChanges",!0),this._trackFormatChanges=t[vx("0x60")].get(vx("0x61")),this[vx("0x119")]=new d(t,this[vx("0xd5")]),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,48,56,49,48])}[vx("0x5c")](){const t=this[vx("0x49")];t[vx("0xa")][vx("0xa3")](vx("0x8d")).markerToHighlight({model:vx("0xa0"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[vx("0xa1")]),o=[vx("0x53"),vx("0x2")+n];let s=3e3;return this.activeMarkers.includes(t[vx("0xa1")])&&(o[vx("0x123")](vx("0x11c")),s=3010),vx("0x11f")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[vx("0xa")][vx("0xa3")](vx("0x2b"))[vx("0x94")]((e=>{e.on(vx("0x7e"),((e,n,o)=>{if(!o[vx("0xd6")][vx("0xaf")])return;const s=n.item;if(!s)return;const r=o.mapper[vx("0x67")](s);t[vx("0x18")][vx("0x44")][vx("0xef")](s)&&r&&!r[vx("0x91")](vx("0xc5"))&&r.is(vx("0xf5"))&&(0,a.toWidget)(r,o[vx("0x8c")])}),{priority:vx("0x21")})})),t[vx("0xa")][vx("0xa3")]("dataDowncast")[vx("0x9b")]({model:vx("0xa0"),view:(t,e)=>{if(!e.options[vx("0xaf")])return null;const{type:n}=this[vx("0xb1")](t[vx("0xa1")]);return{classes:[vx("0x53"),vx("0x2")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[vx("0x7a")])return;if(o.item.is(vx("0xdd")))return void s[vx("0x37")][vx("0x6e")](o.item,n[vx("0x113")]);const r=s[vx("0x5a")].toViewElement(o[vx("0x7a")]);if(!o[vx("0x7a")].is(vx("0xc6"))||!t[vx("0x18")][vx("0x44")][vx("0x47")](o[vx("0x7a")])||r[vx("0x91")](vx("0xbd")))return;const{id:i}=this[vx("0xb1")](o[vx("0xa1")]);s.writer[vx("0x70")]([vx("0x53"),"ck-suggestion-marker-formatBlock"],r),s[vx("0x8c")][vx("0x46")](vx("0xd7"),i,r),s[vx("0x5a")][vx("0x124")](r,o[vx("0xa1")]),e&&(this[vx("0xde")][vx("0x9a")](o[vx("0xa1")])?s[vx("0x8c")].addClass("ck-suggestion-marker--active",r):s[vx("0x8c")][vx("0xb0")](vx("0x11c"),r));for(const e of t[vx("0x18")][vx("0x133")](o[vx("0x7a")])[vx("0xae")]())s[vx("0x37")][vx("0x6e")](e,n.name);s.consumable[vx("0x6e")](o[vx("0x7a")],n.name)};t[vx("0xa")][vx("0xa3")](vx("0x2b")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[vx("0xd6")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[vx("0xa")].for(vx("0x2b"))[vx("0x25")]({model:vx("0xa0"),view:(t,e)=>e[vx("0xd6")][vx("0xaf")]?null:{group:vx("0xa0"),name:t.substr(vx("0xa0")[vx("0x12e")]+1)}}),t.conversion[vx("0xa3")](vx("0x99"))[vx("0xfe")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=vx("0xdf")+t.getAttribute(vx("0xb9"))+":"+t.getAttribute("id");return t[vx("0x10e")]("marker-count")&&(n+=":"+t[vx("0x10e")](vx("0x112"))),e[vx("0x79")]("$marker",{"data-name":n})}}),t[vx("0xa")][vx("0xa3")]("upcast")[vx("0xe4")]({view:vx("0xa0")}),t[vx("0xa")][vx("0xa3")](vx("0x8d"))[vx("0x94")]((t=>{t.on(vx("0xe"),n(),{priority:vx("0x21")})})),t[vx("0xa")][vx("0xa3")](vx("0x8d"))[vx("0x94")]((t=>{t.on(vx("0x7b"),((t,e,n)=>{const o=n[vx("0x5a")][vx("0x5e")](e[vx("0xa1")]);if(o)for(const t of o)t[vx("0x91")]("addHighlight")||(n.writer.removeClass([vx("0x53"),vx("0x3e"),"ck-suggestion-marker--active"],t),n[vx("0x8c")].removeAttribute(vx("0xd7"),t),n.mapper[vx("0xb5")](t,e.markerName))}),{priority:"high"})})),t[vx("0x18")].document[vx("0x80")]((e=>{let n=!1;const o=Array[vx("0xcf")](t[vx("0x18")][vx("0xce")].differ[vx("0x109")]()),s=new Set;for(const{name:a,data:x}of o){const{group:o,type:c,id:l}=this[vx("0xb1")](a);if(vx("0xa0")!==o)continue;const u=this[vx("0xa6")][vx("0x35")](l);if(null!=x[vx("0x4a")])if("formatInline"==c&&(n=n||wx(x[vx("0x4a")],a,e,t[vx("0x18")][vx("0x44")])),x[vx("0x4a")].isCollapsed||vx("0x100")==x[vx("0x4a")][vx("0x5")][vx("0x6a")]||vx("0xcd")==c&&!Mx(x[vx("0x4a")])||"deletion"==c&&(Lx(i=x.newRange)||(r=i)[vx("0x88")][vx("0xf2")]==r[vx("0x41")][vx("0x71")]&&r.start[vx("0x11a")]))e[vx("0x63")](a),n=!0;else{if(!u||!u[vx("0x129")])continue;s[vx("0x94")](u)}}var r,i;return s[vx("0xfa")]>0&&(n=!!this[vx("0x4e")](s)||n),n})),t.model[vx("0xce")][vx("0x80")]((e=>{let n=!1;for(const o of t[vx("0x18")][vx("0xce")][vx("0x7")][vx("0x1c")]()){if("insert"!=o[vx("0xb")])continue;const s=o[vx("0x5b")][vx("0x6")](o[vx("0x12e")]);if(s[vx("0x11a")])for(const r of this[vx("0xa6")][vx("0xee")]()){if(r[vx("0x103")]||!r[vx("0x129")])continue;if(vx("0xcd")!=r[vx("0xb")])continue;const i=r.getFirstRange();if(i.start.parent!=i[vx("0x41")].parent&&i[vx("0x41")][vx("0xdc")](o.position)){const o=t.model[vx("0x107")](i[vx("0x88")],s);e[vx("0x7f")](r[vx("0x29")](),{range:o}),n=!0}}}return n})),t[vx("0x18")][vx("0x84")].on(vx("0xd8"),((t,e,n)=>{if(null==n){const{id:t}=this[vx("0xb1")](e[vx("0x113")]),n=this._suggestions[vx("0x35")](t);n&&n[vx("0xbe")](e[vx("0x113")])}})),t.model.document.on(vx("0xc1"),(()=>{const e=Array[vx("0xcf")](t[vx("0x18")][vx("0xce")][vx("0x7")].getChangedMarkers())[vx("0xf4")]((t=>vx("0xa0")===this[vx("0xb1")](t.name)[vx("0x28")]));if(0===e[vx("0x12e")])return;e[vx("0x55")](((t,e)=>{const n=t[vx("0x6f")][vx("0xcb")],o=e.data[vx("0xcb")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[vx("0x88")][vx("0x11b")](o[vx("0x88")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[vx("0xb1")](t);if(null===s.oldRange){const e=this[vx("0xec")](t);o[vx("0x94")](e)}else{const t=this[vx("0xa6")][vx("0x35")](e);null!==s[vx("0x4a")]||t.isInContent?(n.add(t[vx("0x51")]),o[vx("0x94")](t)):this[vx("0xc0")](t)}}o[vx("0xfa")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[vx("0x6d")]("suggestionChanged",t)})),t[vx("0x18")].on(vx("0xd9"),((e,n)=>{const o=n[0];if(!this[vx("0xa6")][vx("0xfa")])return;if(!o[vx("0xe9")])return;if(o[vx("0x90")][vx("0x10")]||!o[vx("0x90")].isLocal)return;let s,r;switch(o[vx("0xb")]){case vx("0xf0"):s=t.model.createPositionAt(o[vx("0x5b")]),r=s[vx("0x6")](o[vx("0x105")]);break;case vx("0x16"):s=t[vx("0x18")][vx("0x10d")](o[vx("0x20")]),r=t[vx("0x18")].createPositionAt(o[vx("0xba")]);break;case vx("0x36"):s=t[vx("0x18")].createPositionAt(o.targetPosition),r=s.getShiftedBy(o[vx("0x105")]);break;default:return}const i=t[vx("0x18")][vx("0x107")](s,r);t[vx("0x18")][vx("0x8a")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t.isMultiRange)continue;if(vx("0x0")==t[vx("0xb")])continue;const n=t[vx("0x6f")]&&t.data[vx("0x4f")];(vx("0xcd")!=t.type||vx("0x16")==o.type&&!n)&&(e[vx("0x57")]||vx("0xb3")==t[vx("0xb")]&&e.isOwn||t[vx("0x3c")]()[vx("0xf8")](i)&&this[vx("0x104")](t,s,r))}}))}),{priority:vx("0x82")}),t[vx("0x18")].on(vx("0xaa"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[vx("0x119")][vx("0x31")])return;if(o[vx("0x117")])return;const r=t[vx("0x18")].schema,{start:i,end:a}=o[vx("0x3c")](),x=i[vx("0x23")]&&r[vx("0x1f")](i[vx("0x23")])?null:r.getNearestSelectionRange(i,vx("0x97")),c=a[vx("0x71")]&&r[vx("0x1f")](a[vx("0x71")])?null:r[vx("0x8b")](a,"backward"),l=t.model[vx("0x107")](x?x[vx("0x88")]:i,c?c.end:a);t.model[vx("0x8a")]((e=>{this[vx("0x4")](l);const n=t[vx("0x18")].schema.getNearestSelectionRange(l[vx("0x88")]);o.is(vx("0x59"))?e.setSelection(n):o[vx("0xc4")](n)})),e[vx("0x4c")]()}),{priority:e.priorities[vx("0xe2")]+10}),t.model.on(vx("0x7c"),((e,n)=>{const o=n[n[vx("0x12e")]-1];o&&o[vx("0x33")]||this[vx("0x65")]||this.trackChangesCommand.value&&(t[vx("0x18")][vx("0x8a")]((()=>{let o=t[vx("0x18")][vx("0x7c")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[vx("0xdb")]=o[vx("0xf")]();const s=o[vx("0x41")][vx("0x71")],r=t.model[vx("0x44")];s&&r[vx("0x47")](s)&&!r[vx("0xef")](s)&&(o=t.model.createRange(o[vx("0x88")],t[vx("0x18")][vx("0x10d")](s,vx("0x41")))),this[vx("0x13")](o)})),e.stop())}),{priority:vx("0x21")}),this[vx("0x49")][vx("0x12f")].add(vx("0x64"),this[vx("0x119")]),this.enableCommand(vx("0x64"));const o=new p(t,this[vx("0xa6")]);t[vx("0x12f")][vx("0x94")](vx("0x12a"),o),this.enableCommand(vx("0x12a"));const s=new C(t,this._suggestions);t.commands[vx("0x94")](vx("0xbb"),s),this[vx("0x126")](vx("0xbb")),t.commands.add(vx("0x9"),new F(t,o,this[vx("0xa6")])),this[vx("0x126")](vx("0x9")),t[vx("0x12f")].add(vx("0x6b"),new F(t,s,this[vx("0xa6")])),this[vx("0x126")](vx("0x6b")),t.commands[vx("0x94")](vx("0x86"),new U(t,o,this[vx("0xa6")])),this[vx("0x126")]("acceptSelectedSuggestions"),t[vx("0x12f")][vx("0x94")]("discardSelectedSuggestions",new U(t,s,this[vx("0xa6")])),this[vx("0x126")](vx("0xc7"));const r=t[vx("0x45")][vx("0x35")](vx("0x128"));this[vx("0x83")](r,vx("0x1e"),((t,{threadId:e})=>{const n=this._suggestions[vx("0x35")](e);n&&n[vx("0x135")]&&1===n[vx("0x135")][vx("0x12e")]&&this[vx("0xc2")](e,{hasComments:!0})}),{priority:vx("0xd2")}),this.listenTo(r,vx("0x101"),((t,{threadId:e})=>{const n=this[vx("0xa6")][vx("0x35")](e);n&&n[vx("0x135")]&&!n[vx("0x135")][vx("0x12e")]&&this[vx("0xc2")](e,{hasComments:!1})}),{priority:"low"})}set[vx("0x121")](t){if(this._adapter)throw new e.CKEditorError(vx("0x8e"),this);this[vx("0x12d")]=t}get[vx("0x121")](){return this[vx("0x12d")]}[vx("0x48")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[vx("0xa6")][vx("0xee")]())t&&!e[vx("0x129")]||n[vx("0x123")](e);return e?n.map((t=>t[vx("0xa5")]())):n}[vx("0xbc")](t){const n=this._suggestions[vx("0x35")](t);if(!n)throw new e.CKEditorError(vx("0x58"),this);return n}[vx("0x24")](t){return this._suggestions[vx("0xf1")](t)}[vx("0x7d")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type[vx("0x16")](":"),i=this._suggestions[vx("0x35")](n)||this[vx("0x134")](s,r,n,e,o);if(this[vx("0x93")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i[vx("0x11")]=t.createdAt,o&&o[vx("0x110")]){const t=o[vx("0x110")],e=this[vx("0xf9")](t.authorName);i[vx("0x52")]=t[vx("0x11")],i[vx("0x17")]=e,i.isExternal=!0}else i[vx("0x52")]=t[vx("0x11")];switch(t[vx("0x6f")]&&(i[vx("0x6f")]=t.data),t.attributes&&(i[vx("0x108")]=t[vx("0x108")]),this[vx("0x12d")]&&this[vx("0x12d")][vx("0x42")]||(i[vx("0x2f")]=!0),this[vx("0x9e")][vx("0x35")](i)){case vx("0xc8"):this[vx("0x9e")][vx("0xa8")](i,"dataReady");break;case vx("0xe8"):i[vx("0x129")]?(this[vx("0x9e")][vx("0xa8")](i,"ready"),this[vx("0x6d")]("suggestionLoaded",i)):this[vx("0x9e")][vx("0xa8")](i,"removed")}return i}[vx("0x12a")](t){this[vx("0x33")]((()=>{this[vx("0x49")][vx("0x18")][vx("0x8a")]((()=>{for(const e of t[vx("0x136")]())e[vx("0xd0")]()}))}))}[vx("0xbb")](t){this[vx("0x33")]((()=>{this[vx("0x49")][vx("0x18")][vx("0x8a")]((()=>{for(const e of t[vx("0x136")]())e.discard()}))}))}[vx("0x126")](t,n){const o=this[vx("0x49")][vx("0x12f")][vx("0x35")](t);if(!o)throw new e.CKEditorError(vx("0x50"),this,{commandName:t});this._enabledCommands[vx("0x94")](o),n&&o.on(vx("0x76"),((t,e)=>{this[vx("0x119")][vx("0x31")]&&(this[vx("0x65")]||e.length>0&&e[e[vx("0x12e")]-1]&&e[e[vx("0x12e")]-1].forceDefaultExecution||(n(((...t)=>o[vx("0x76")](...t,{forceDefaultExecution:!0})),...e),t[vx("0x4c")]()))}),{priority:"high"})}forceDefaultExecution(t){let n,o;const s=this[vx("0x65")];this[vx("0x65")]=!0;try{n=t()}catch(t){o=t}return s||(this[vx("0x65")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}markInsertion(t,n=null,o={}){if(t[vx("0x117")])return null;const s=this[vx("0x49")][vx("0x45")].get(vx("0x32")).me;for(const{suggestion:e,meta:o}of this[vx("0xea")](t,vx("0xb3")))if(o.isOwn){if(!o[vx("0xfc")])return e;if(n==e[vx("0xf6")]){const n=e[vx("0x3c")]();return n[vx("0x88")][vx("0xdc")](t[vx("0x41")])?this[vx("0x4d")](e,this[vx("0x3b")][vx("0x107")](t[vx("0x88")],n[vx("0x41")])):this[vx("0x4d")](e,this[vx("0x3b")][vx("0x107")](n[vx("0x88")],t[vx("0x41")])),e}}const r=(0,e.uid)(),i=s.id,a=n?vx("0x10b")+n:vx("0xb3"),x=this[vx("0x122")]({id:r,type:a,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(a,r,i,t),x}markMultiRangeInsertion(t,n=vx("0x9f"),o={}){const s=this[vx("0x49")].plugins.get("Users").me,r=this[vx("0x4b")][vx("0x30")](vx("0xb3"),n,vx("0x1d"));for(const e of this[vx("0x48")]())if(e[vx("0x17")].id==s.id&&vx("0xb3")==e.type&&e.subType==n&&(r(e[vx("0x72")](),t)||r(t,e.getRanges()))){for(const n of t)e[vx("0xe0")](n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,vx("0xb3"))){if(!o.isOwn)continue;let e=!0;for(const o of n[vx("0x72")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),a=s.id,x=vx("0x10b")+n,c=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const e of t)this._addSuggestionMarker(x,i,a,e,Zo[vx("0xe6")]());return c}[vx("0x87")](t,n,o=null,s={}){if(o=o||Nx(n),t[vx("0x117")])return null;if(!1===this[vx("0xff")]){const e=this[vx("0x4b")][vx("0x30")](vx("0x0"),o,"accept");return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[vx("0x49")][vx("0x45")][vx("0x35")](vx("0x32")).me,i=[];for(const{suggestion:e,meta:n}of this[vx("0xea")](t,vx("0xb3")))n[vx("0x115")]&&!n[vx("0x3f")]&&i[vx("0x123")](...e[vx("0x72")]());const a=function(t,e){const n=[];for(const o of e){const e=t[vx("0x5f")](o);e&&n[vx("0x123")](e)}return n}(t,i),x=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[vx("0x12e")];){const o=n[e][vx("0x62")](t);n[vx("0x1a")](e,1,...o),e+=o[vx("0x12e")]}}return n}(t,i);a[vx("0x12e")]&&this[vx("0x3b")].change((()=>{for(const t of a){const e=this._suggestionFactory[vx("0x30")](vx("0x0"),o,"accept");this[vx("0x33")]((()=>e([t],n,s)))}}));for(const t of x){let i=null,a=t[vx("0x88")],x=t.end;for(const{suggestion:e,meta:n}of this[vx("0xea")](t,vx("0x0"))){if(!n[vx("0x115")])continue;if(e[vx("0xf6")]!=o)continue;const s=e[vx("0x3c")]();if(s[vx("0xf8")](t,!0))return null;a=a[vx("0x11b")](s.start)?a:s[vx("0x88")],x=x[vx("0x6c")](s[vx("0x41")])?x:s[vx("0x41")],i?s[vx("0x88")][vx("0x11b")](i[vx("0x3c")]().start)?(i[vx("0x22")](),i=e):e[vx("0x22")]():i=e}const c=this._model[vx("0x107")](a,x);if(i)this[vx("0x4d")](i,c);else{const t=(0,e.uid)(),i=r.id;this[vx("0x122")]({id:t,type:vx("0xd")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[vx("0x2d")](vx("0xd")+o,t,i,c)}}return null}[vx("0x75")](t,n,o=[],s=null,r={}){n[vx("0xc")]||(n.formatGroupId=n[vx("0xda")]),n.multipleBlocks=t.is(vx("0x56")),s=s||Nx(n);const i=o[vx("0x3d")]((t=>Ox(t,this[vx("0x3b")]))),a=t.is(vx("0x56"))?t:Ox(t,this._model);if(!1===this[vx("0xff")]){const t=this[vx("0x4b")].getSuggestionCallback("formatBlock",s,vx("0xd0"));return this[vx("0x33")]((()=>t([a],n,r))),null}i.push(a);let x=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){x=!1;break}if(x){const t=this[vx("0x4b")][vx("0x30")](vx("0xcd"),s,vx("0xd0"));return this[vx("0x33")]((()=>t([a],n,r))),null}let c=null,l=a[vx("0x88")],u=a[vx("0x41")];for(const{suggestion:t,meta:e}of this._findSuggestions(a,vx("0xcd"))){if(!e[vx("0x115")]||e.isNextTo||e[vx("0x57")]||e[vx("0x3f")])continue;if(t[vx("0x6f")].formatGroupId!=n[vx("0xc")])continue;const o=t[vx("0x3c")]();if(t[vx("0xf6")]==s){if(o[vx("0xf8")](a,!0))return null;l=l[vx("0x11b")](o.start)?l:o[vx("0x88")],u=u[vx("0x6c")](o[vx("0x41")])?u:o[vx("0x41")],c?o[vx("0x88")].isBefore(c.getFirstRange()[vx("0x88")])?(c[vx("0x22")](),c=t):t[vx("0x22")]():c=t}else{const e=a[vx("0x5f")](o);this[vx("0x78")](t,e)}}const d=this[vx("0x49")][vx("0x45")].get(vx("0x32")).me,g=(0,e.uid)(),m=d.id;if(c)return this[vx("0x4d")](c,this[vx("0x3b")][vx("0x107")](l,u)),c;{const t=this[vx("0x122")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[vx("0x2d")](vx("0xac")+s,g,m,this[vx("0x3b")][vx("0x107")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[vx("0xc")]||(n[vx("0xc")]=n.commandName);const i=t[0];n[vx("0x4f")]=i.is(vx("0x56")),s=s||Nx(n);const a=o[vx("0x3d")]((t=>Ox(t,this[vx("0x3b")]))),x=i.is(vx("0x56"))?t:t.map((t=>Ox(t,this[vx("0x3b")])));if(!1===this._trackFormatChanges){const t=this[vx("0x4b")][vx("0x30")](vx("0xcd"),s,vx("0xd0"));return this.forceDefaultExecution((()=>t(x,n,r))),null}a[vx("0x123")](...x);let c=!0;for(const t of a)if(!this[vx("0xf7")](t)){c=!1;break}if(c){const t=this[vx("0x4b")].getSuggestionCallback(vx("0xcd"),s,"accept");return this[vx("0x33")]((()=>t(x,n,r))),null}const l=this[vx("0x49")][vx("0x45")][vx("0x35")]("Users").me;for(const t of this.getSuggestions()){if(t[vx("0x17")].id!=l.id)continue;if(vx("0xcd")!=t[vx("0xb")]||t[vx("0x6f")][vx("0xc")]!=n[vx("0xc")])continue;const e=t[vx("0xf6")]==s;for(let n=0;n<x.length;n++){const o=x[n];for(const s of t[vx("0x27")]()){const r=s.getRange();if(o[vx("0xdc")](r)){e?(x[vx("0x1a")](n,1),n--):t[vx("0x63")](s.name);break}}}}if(0==x[vx("0x12e")])return null;const u=this._suggestionFactory[vx("0x30")]("formatBlock",s,vx("0x1d"));for(const t of this[vx("0x48")]())if(t[vx("0x17")].id==l.id&&vx("0xcd")==t[vx("0xb")]&&t[vx("0x6f")][vx("0xc")]==n[vx("0xc")]&&t[vx("0xf6")]==s&&(u(t[vx("0x72")](),x)||u(x,t[vx("0x72")]()))){for(const e of x)t[vx("0xe0")](e);return t}const d=(0,e.uid)(),g=l.id,m=vx("0xac")+s,f=this._setSuggestionData({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of x)this[vx("0x2d")](m,d,g,t,Zo[vx("0xe6")]());return f}[vx("0x4")](t,n=null,o={}){if(t[vx("0x117")])return null;const s=this[vx("0x49")][vx("0x45")][vx("0x35")](vx("0x32")).me,r=new i.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[vx("0xea")](r,vx("0xb3")))if(e[vx("0x115")]&&!e[vx("0xfc")])if(t[vx("0x103")]){const e=t[vx("0x72")]()[vx("0xf4")]((t=>"$graveyard"!=t[vx("0x5")][vx("0x6a")]));if(e[vx("0x1b")]((t=>r[vx("0xf8")](t,!0)))&&t[vx("0xe1")](),e.some((t=>t[vx("0xf8")](r,!0)))){const t=this._suggestionFactory[vx("0x30")](vx("0x11f"),n,vx("0xd0"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[vx("0x5f")](t[vx("0x3c")]());t[vx("0xb7")]([e],null,o)}if(r[vx("0xe5")](),r[vx("0x117")]||vx("0x100")==r[vx("0x5")][vx("0x6a")])return null;let a=null,x=r.start,c=r.end;for(const{suggestion:t,meta:e}of this[vx("0xea")](r,vx("0x11f")))if(e.isOwn)if(t[vx("0x103")]){let e=!0;for(const n of t.getRanges()){if(n[vx("0xf8")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[vx("0xe1")]()}else{const e=t.getFirstRange();if(e[vx("0xf8")](r,!0))return t;x=x[vx("0x11b")](e[vx("0x88")])?x:e[vx("0x88")],c=c[vx("0x6c")](e.end)?c:e[vx("0x41")],a?e[vx("0x88")][vx("0x11b")](a.getFirstRange()[vx("0x88")])?(a[vx("0x22")](),a=t):t[vx("0x22")]():a=t}if(a)return this[vx("0x4d")](a,this[vx("0x3b")].createRange(x,c)),a;{const t=(0,e.uid)(),r=this[vx("0x3b")][vx("0x107")](x,c),i=s.id,a=n?"deletion:"+n:vx("0x11f"),l=this[vx("0x122")]({id:t,type:a,createdAt:new Date,authorId:i,attributes:o});return this[vx("0x2d")](a,t,i,r),l}}markMultiRangeDeletion(t,n=vx("0x9f"),o={}){const s=this[vx("0x49")][vx("0x45")][vx("0x35")](vx("0x32")).me,r=t[vx("0x3d")]((t=>new i.LiveRange(t[vx("0x88")],t[vx("0x41")]))),a=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[vx("0xea")](t,vx("0xb3")))n.isOwn&&!n.isNextTo&&a[vx("0x94")](e);for(const e of a)if(e[vx("0x103")]){const s=e.getRanges();if((!e[vx("0x108")]||!e[vx("0x108")].skipNestingCheck)&&s[vx("0x1b")]((t=>r[vx("0xb4")]((e=>e[vx("0xf8")](t,!0)))))&&e.discard(),r.every((t=>s[vx("0xb4")]((e=>e[vx("0xf8")](t,!0)))))){const e=this[vx("0x4b")][vx("0x30")](vx("0x11f"),n,"accept");return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[vx("0x3c")]();if(r.some((e=>e[vx("0xf8")](t,!0)))&&e[vx("0xe1")](),r.every((e=>t[vx("0xf8")](e,!0)))){const t=this[vx("0x4b")][vx("0x30")](vx("0x11f"),n,vx("0xd0"));return this[vx("0x33")]((()=>t(r,null,o))),null}}const x=this._suggestionFactory[vx("0x30")](vx("0x11f"),n,vx("0x1d"));let c=null;for(const t of this[vx("0x48")]())if(t[vx("0x17")].id==s.id&&t[vx("0x129")]&&vx("0x11f")==t[vx("0xb")]&&t[vx("0xf6")]==n&&(x(t[vx("0x72")](),r)||x(r,t.getRanges())))if(c){if(t[vx("0x135")]&&t[vx("0x135")][vx("0x12e")])continue;for(const e of t[vx("0x72")]())c[vx("0x2c")](e)||c[vx("0xe0")](e);t[vx("0x22")]()}else{c=t;for(const e of r)t[vx("0x2c")](e)||t[vx("0xe0")](e)}if(c)return c;a.clear();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"deletion"))n[vx("0x115")]&&a[vx("0x94")](e);for(const t of a){const e=t[vx("0x72")]();if((!o||!o.skipNestingCheck)&&r.every((t=>e[vx("0xb4")]((e=>e[vx("0xf8")](t,!0))))))return t;(!t.attributes||!t[vx("0x108")].skipNestingCheck)&&e.every((t=>r[vx("0xb4")]((e=>e[vx("0xf8")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=s.id,d=vx("0x77")+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[vx("0xe5")](),t[vx("0x117")]||vx("0x100")==t[vx("0x5")][vx("0x6a")]||this[vx("0x2d")](d,l,u,t,Zo[vx("0xe6")]());return g}[vx("0x4d")](t,e){const n=t[vx("0x29")]();this[vx("0x3b")][vx("0x8a")]((t=>{t[vx("0x7f")](n,{range:e})}))}[vx("0x93")](t){const e=t.id,n=this.editor.config[vx("0x35")](vx("0xbf"));this[vx("0x2a")][vx("0x106")](e)||this[vx("0x2a")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[vx("0x2a")][vx("0xb6")](e);o.unbind(vx("0x8")),o[vx("0x8")]=!1,t[vx("0x135")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[vx("0xb")]!=n||t[vx("0xf6")]!=o||t[vx("0x98")].id!=s)throw this[vx("0x49")][vx("0x69")](vx("0x131")),new e.CKEditorError(vx("0x131"),this)}[vx("0x78")](t,n){const o=t[vx("0x3c")]();if(n[vx("0xdc")](o))t[vx("0x22")]();else if(o.containsRange(n)){const s=this[vx("0x3b")][vx("0x10d")](n.start[vx("0x71")],vx("0x41"));this[vx("0x4d")](t,this._model[vx("0x107")](o[vx("0x88")],s));const r=(0,e.uid)(),i=t[vx("0x98")].id,a=t[vx("0xb")]+":"+t[vx("0xf6")];this._setSuggestionData({id:r,type:a,createdAt:new Date,authorId:i,data:t[vx("0x6f")],attributes:t[vx("0x108")]});const x=this._model[vx("0x10d")](n[vx("0x41")][vx("0xf2")],"after"),c=this[vx("0x3b")][vx("0x107")](x,o[vx("0x41")]);this[vx("0x2d")](a,r,i,c)}else if(o[vx("0xb8")](n[vx("0x88")])){const e=this._model[vx("0x10d")](n.start.nodeBefore,vx("0x41"));this._setSuggestionRange(t,this[vx("0x3b")][vx("0x107")](o[vx("0x88")],e))}else{const e=this._model[vx("0x10d")](n[vx("0x41")][vx("0xf2")],vx("0xd1"));this._setSuggestionRange(t,this[vx("0x3b")][vx("0x107")](e,o[vx("0x41")]))}}[vx("0xf7")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,vx("0xb3"))){if(!n[vx("0x115")])continue;const o=e[vx("0x72")]();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}[vx("0x102")](t){const n=this[vx("0x49")][vx("0x45")][vx("0x35")](vx("0x32"))[vx("0x39")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this[vx("0x49")][vx("0x45")][vx("0x35")](vx("0x32")),n=(0,r.hashObject)(vx("0x11e")+t);return e[vx("0x39")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[vx("0x102")](o),i=this[vx("0x4b")][vx("0x9c")](t,e,n,r,s,(t=>this[vx("0xc2")](n,{attributes:t})));return this[vx("0x83")](i,"accept",(()=>{this[vx("0xc2")](n,{state:vx("0x116")})}),{priority:vx("0x21")}),this[vx("0x83")](i,vx("0xe1"),(()=>{this[vx("0xc2")](n,{state:vx("0x74")})}),{priority:vx("0x21")}),this[vx("0xa6")][vx("0xa8")](n,i),this[vx("0x9e")].set(i,vx("0xc8")),i}_splitMarkerName(t){const e=t[vx("0x16")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[vx("0x12e")]<5?e[3]:e[4],markerCount:6==e[vx("0x12e")]?e[5]:null}}[vx("0x104")](t,n,o){const s=t[vx("0x3c")](),r=s[vx("0x88")],i=s[vx("0x41")];this._setSuggestionRange(t,this[vx("0x3b")][vx("0x107")](r,n));const a=(0,e.uid)(),x=t[vx("0x98")].id,c=t[vx("0xb")]+(t[vx("0xf6")]?":"+t[vx("0xf6")]:"");this[vx("0x122")]({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:t.id,attributes:t.attributes,data:t[vx("0x6f")]}),"formatBlock"==t[vx("0xb")]&&(o=this[vx("0x3b")][vx("0x125")](o[vx("0xf2")])),this._addSuggestionMarker(c,a,x,this[vx("0x3b")].createRange(o,i))}[vx("0xea")](t,e=null){const n=[],o=this[vx("0x3b")].schema,s=this[vx("0x49")][vx("0x45")][vx("0x35")]("Users").me;for(const r of this.getSuggestions())if(r.isInContent&&(!e||r[vx("0xb")]==e))for(const e of r[vx("0x72")]()){const i=t.start[vx("0xdc")](e[vx("0x41")])||t.end[vx("0xdc")](e[vx("0x88")]);if(i||t[vx("0x5f")](e)){const a=t.containsRange(e)&&Ix(o,e.start,t),x=e[vx("0xf8")](t)&&Ix(o,t[vx("0x88")],e);n[vx("0x123")]({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:a,containsRangeInObject:x}});break}}return n}[vx("0x2d")](t,e,n,o,s){this[vx("0x3b")][vx("0x8a")]((r=>{let i=vx("0xdf")+t+":"+e+":"+n;s&&(i=i+":"+s),r[vx("0x43")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[vx("0xc0")](t){const e=t[vx("0x38")],n=t[vx("0x12c")];t[vx("0x38")]=null,null!=e&&(e[vx("0x12c")]=null),t[vx("0x12c")]=null,null!=n&&(n[vx("0x38")]=null),vx("0x120")==this[vx("0x9e")][vx("0x35")](t)&&(this._suggestionState[vx("0xa8")](t,vx("0x14")),this[vx("0x6d")]("suggestionUnloaded",t,e,n))}[vx("0x122")](t){const n=t.id,o=this[vx("0x7d")](t);if(this[vx("0x12d")]&&this[vx("0x12d")][vx("0x42")]){const s=this[vx("0x49")][vx("0x45")][vx("0x35")](vx("0x114")),r=o[vx("0xa2")],i=o.subType?o[vx("0xb")]+":"+o[vx("0xf6")]:o.type,a=this[vx("0x49")].locale,x=s[vx("0x94")](Yo(a,vx("0xd3"))),c={id:n,type:i,hasComments:r,data:t[vx("0x6f")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[vx("0x108")]};this[vx("0x12d")][vx("0x42")](c)[vx("0xa9")]((t=>{o._saved=!0,s.remove(x),t&&t.createdAt&&(this[vx("0xa6")][vx("0x35")](n).createdAt=t[vx("0x11")])}))[vx("0xa7")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[vx("0x49")][vx("0x18")].enqueueChange({isUndoable:!1},(()=>{o[vx("0xe1")]()})),o[vx("0xcc")](),this._suggestions[vx("0x137")](o.id),this._suggestionState.delete(o),t}))}return o}[vx("0xc2")](t,e){const n=this.editor[vx("0x45")].get(vx("0x114")),o=this.getSuggestion(t);if(this[vx("0x12d")]&&this._adapter[vx("0xf3")])if(o._saved){const o=n[vx("0x94")](Yo(this[vx("0x49")][vx("0x2e")],vx("0xd3")));this._adapter[vx("0xf3")](t,e)[vx("0xa9")]((()=>{n[vx("0x3a")](o)}))}else o.on("change:_saved",(()=>{this[vx("0xc2")](t,e)}))}_getSuggestionData(t){if(!this[vx("0x12d")]||!this[vx("0x12d")].getSuggestion)throw new e.CKEditorError(vx("0x3"),this);return this[vx("0x12d")].getSuggestion(t)}[vx("0xec")](t){const{id:e,type:n,subType:o,authorId:s}=this[vx("0xb1")](t),r=this[vx("0xa6")][vx("0x35")](e)||this[vx("0x134")](n,o,e,s,{});switch(this[vx("0xed")](r,n,o,s),this._suggestionState.get(r)){case vx("0xc8"):this[vx("0x11d")](e)[vx("0xa9")]((t=>{let n=Promise[vx("0x92")]();t[vx("0xa2")]&&(n=this[vx("0x2a")].fetchCommentThread({channelId:this.editor[vx("0x60")][vx("0x35")](vx("0xbf")),threadId:e})),n.then((()=>{this[vx("0x7d")](t)._saved=!0}))})),this[vx("0x9e")][vx("0xa8")](r,vx("0xe8"));break;case"removed":this[vx("0xc2")](e,{state:"open"});case vx("0xc9"):this[vx("0x9e")].set(r,"ready"),this[vx("0x6d")](vx("0x19"),r);break;case vx("0x120"):this[vx("0x6d")](vx("0x138"),r)}return r.addMarkerName(t),r}[vx("0x85")](t){const e=Array.from(t)[vx("0xf4")]((t=>!t[vx("0x103")])),n=this[vx("0x48")]({skipNotAttached:!0})[vx("0xf4")]((t=>!t[vx("0x103")])),o=n[vx("0xf4")]((e=>!t[vx("0xf1")](e))),s=new Map(n.map((t=>[t,this[vx("0x4b")][vx("0x30")](t[vx("0xb")],t[vx("0xf6")],vx("0x96"))]))),r=new Map(n[vx("0x3d")]((t=>[t,t[vx("0x3c")]()]))),i=new Set,a=new Set;for(let t=0;t<e.length;t++)x(e[t],e,t+1);for(let t=0;t<e[vx("0x12e")];t++)x(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!a[vx("0xf1")](n)&&n.previous&&(n[vx("0x38")].next===n&&(n.previous[vx("0x12c")]=null),n.previous=null),!i[vx("0xf1")](n)&&n[vx("0x12c")]&&(n[vx("0x12c")][vx("0x38")]===n&&(n.next[vx("0x38")]=null),n[vx("0x12c")]=null)}function x(t,e,n){for(let o=n;o<e[vx("0x12e")];o++){const n=c(t,e[o]);n&&(n[0][vx("0x12c")]=n[1],n[1][vx("0x38")]=n[0],i[vx("0x94")](n[0]),a[vx("0x94")](n[1]))}}function c(t,e){if(t[vx("0x17")].id!==e[vx("0x17")].id)return null;const n=s[vx("0x35")](t)(t,e,r[vx("0x35")](t),r.get(e));return n&&s.get(e)(t,e,r.get(t),r[vx("0x35")](e))?n[1].commentThread&&n[1][vx("0x135")][vx("0x12e")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[vx("0xcf")](t),n=this[vx("0x48")]({skipNotAttached:!0}),o=n.filter((e=>!t[vx("0xf1")](e))),s=new Map(e[vx("0x3d")]((t=>[t,this[vx("0x4b")][vx("0x30")](t[vx("0xb")],t[vx("0xf6")],vx("0x1d"))]))),r=new Map(n[vx("0x3d")]((t=>[t,t[vx("0x72")]()])));for(let t=0;t<e[vx("0x12e")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[vx("0x12e")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[vx("0x12e")];i++){const o=n[i];if(o.type!==e[vx("0xb")]||o.author.id!==e.author.id||o.subType!==e.subType)continue;const a=s[vx("0x35")](e),x=r[vx("0x35")](e),c=r[vx("0x35")](o),l=e.commentThread&&e[vx("0x135")][vx("0x12e")],u=o.commentThread&&o[vx("0x135")].length;if(!l&&a(c,x))return t[vx("0xad")](o,e),r[vx("0x137")](e),!0;if(!u&&a(x,c))return t._joinSuggestions(e,o),r[vx("0x137")](o),!0}return!1}}_joinSuggestions(t,e){if(t[vx("0x103")])for(const n of e[vx("0x72")]())t[vx("0xe0")](n);else{const n=e[vx("0x3c")]().end;this[vx("0x4d")](t,this[vx("0x3b")][vx("0x107")](t.getFirstRange()[vx("0x88")],n))}e[vx("0x22")]()}}class Sx{constructor(t){this._editor=t,this[vx("0x3b")]=t[vx("0x18")],this[vx("0xe3")]=new Map,this[vx("0x10c")]=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[vx("0x3b")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,vx("0xd0"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,vx("0xe1"))(...n)})}[vx("0x111")](t,e,n,o){const s=t+":"+e+":"+n;this[vx("0xe3")][vx("0xa8")](s,o)}[vx("0x30")](t,e,n){const o=t+":"+e+":"+n;return this[vx("0xe3")][vx("0x35")](o)||this._defaultCallbacks[vx("0x35")](t+":"+n)}[vx("0x15")](){const t=()=>{},e=t=>{t[vx("0x55")](((t,e)=>t.start.isBefore(e[vx("0x88")])?1:-1)),this._model.change((e=>{for(const n of t){let t;t=n.end[vx("0x11a")]&&n[vx("0x41")][vx("0xf2")]==n.start[vx("0x23")]?e[vx("0x8f")](n[vx("0x88")][vx("0x23")],"on"):e.createSelection(n),this[vx("0x3b")][vx("0xaa")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[vx("0x3b")][vx("0x8a")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(Lx(t)&&(t=this[vx("0x3b")][vx("0x107")](t[vx("0x41")])),t)))[vx("0xf4")]((t=>vx("0x100")!==t[vx("0x5")][vx("0x6a")]));if(r[vx("0x12e")]<1)return;const a=Array[vx("0xcf")](this._model[vx("0xce")][vx("0xdd")][vx("0x72")]()).map((t=>i.LiveRange.fromRange(t)));n[vx("0x12")](r);for(const t of this[vx("0x68")].commands.commands())t[vx("0xfd")]();s[vx("0x123")]({forceDefaultExecution:!0}),this[vx("0x68")][vx("0x76")](o,...s);const x=a.filter((t=>"$graveyard"!=t[vx("0x5")][vx("0x6a")]));x[vx("0x12e")]>0&&n[vx("0x12")](x);for(const t of a)t.detach()}))},o=(t,e)=>1==t[vx("0x12e")]&&1==e.length&&t[0][vx("0x41")].isEqual(e[0][vx("0x88")]),s=(t,e,n,o)=>Fx(t,e,n,o,this[vx("0x3b")])?[t,e]:Fx(e,t,o,n,this[vx("0x3b")])?[e,t]:null;this[vx("0x10c")][vx("0xa8")]("insertion:accept",t),this[vx("0x10c")].set("insertion:discard",e),this._defaultCallbacks[vx("0xa8")](vx("0xca"),o),this._defaultCallbacks[vx("0xa8")](vx("0x66"),s),this._defaultCallbacks[vx("0xa8")](vx("0xc3"),e),this[vx("0x10c")][vx("0xa8")](vx("0x10a"),t),this[vx("0x10c")][vx("0xa8")](vx("0x118"),o),this[vx("0x10c")].set(vx("0x130"),s),this[vx("0x10c")][vx("0xa8")](vx("0x132"),n),this[vx("0x10c")][vx("0xa8")](vx("0x127"),t),this[vx("0x10c")][vx("0xa8")](vx("0x89"),o),this[vx("0x10c")].set(vx("0xfb"),t),this[vx("0x10c")][vx("0xa8")](vx("0x54"),n),this[vx("0x10c")][vx("0xa8")](vx("0x81"),t),this._defaultCallbacks[vx("0xa8")]("formatBlock:join",o),this[vx("0x10c")][vx("0xa8")](vx("0x73"),t)}}function Ix(t,e,n){for(const o of e[vx("0xf2")][vx("0xd4")]({includeSelf:!0,parentFirst:!0})){if(o[vx("0x5")]==o)return!1;if(!n[vx("0xa4")](o))return!1;if(t[vx("0xef")](o)||t[vx("0x1f")](o))return!0}return!1}function Lx(t){return t[vx("0x41")][vx("0xf2")]==t[vx("0x88")][vx("0x23")]&&t.end[vx("0xab")]}function wx(t,e,n,o){const s=t=>!t[vx("0x7a")].is(vx("0x40"))&&!o[vx("0xef")](t[vx("0x7a")]),r=t[vx("0x88")][vx("0x10f")](s),i=t[vx("0x41")].getLastMatchingPosition(s,{direction:"backward"});return!(t.start[vx("0xdc")](r)&&t[vx("0x41")][vx("0xdc")](i)||(r.isBefore(i)?n[vx("0x7f")](e,{range:n[vx("0x107")](r,i)}):n.removeMarker(e),0))}function Nx(t){return(0,r.hashObject)(t)}function Mx(t){const e=t[vx("0x88")][vx("0x23")];return e&&e.is("element")}function Ox(t,e){const n=e[vx("0x44")][vx("0xef")](t)||e[vx("0x44")][vx("0x12b")](t);return e.createRange(e[vx("0x10d")](t,vx("0x26")),n?e[vx("0x139")](t):e.createPositionAt(t,"end"))}function Fx(t,e,n,o,s){if(n[vx("0x41")].isEqual(o[vx("0x88")]))return!0;if(t[vx("0xb")]!=e[vx("0xb")])return!1;if(!n.end.isTouching(o.start))return!1;const r=s[vx("0x107")](n[vx("0x41")],o[vx("0x88")])[vx("0x34")]();for(const t of r)if([vx("0xeb"),"elementEnd"][vx("0x9a")](t[vx("0xb")])&&s[vx("0x44")][vx("0x1f")](t.item))return!1;return!0}const Px=["locale","view","unbind","_setPendingAction","isEnabled","canAccept","model","acceptSuggestion","commands","canDiscard","_pendingAction","listenTo","discardSuggestion","add","change:isDirty","_editor","_acceptCommand","isDirty","_removePendingAction","commentThreadController","get","execute","bind","stopListening","PendingActions","remove","destroy","plugins","_discardCommand"];var Dx,Bx;Dx=Px,Bx=412,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const jx=function(t,e){return Px[t-=0]};class Ux extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[jx("0x0")]=e,this[jx("0x18")]=n,this[jx("0xd")]=o,this[jx("0x9")]=t,this._acceptCommand=t[jx("0x2")][jx("0xe")]("acceptSuggestion"),this._discardCommand=t[jx("0x2")][jx("0xe")](jx("0x6")),this.view[jx("0x10")](jx("0x1b")).to(this[jx("0xa")],this[jx("0x16")],((t,e)=>t||e)),this[jx("0x18")][jx("0x10")](jx("0x1c")).to(this[jx("0xa")],"isEnabled"),this.view.bind(jx("0x3")).to(this[jx("0x16")],jx("0x1b")),this[jx("0x4")]=null,n.isDirty&&this._setPendingAction(),this[jx("0x5")](n,jx("0x1"),(()=>this.acceptSuggestion())),this[jx("0x5")](n,jx("0x6"),(()=>this[jx("0x6")]())),this[jx("0x5")](n,jx("0x8"),(()=>{n[jx("0xb")]?this._setPendingAction():this._removePendingAction()}))}[jx("0x1")](){this[jx("0xa")][jx("0xf")](this.model.id)}[jx("0x6")](){this[jx("0x16")][jx("0xf")](this[jx("0x0")].id)}[jx("0x14")](){this[jx("0x18")][jx("0x19")]("isEnabled"),this.view[jx("0x19")](jx("0x1c")),this[jx("0x18")].unbind(jx("0x3")),this[jx("0x11")](),this[jx("0xd")][jx("0x14")](),this[jx("0x4")]&&this._removePendingAction()}[jx("0x1a")](){const t=Yo(this[jx("0x9")][jx("0x17")],"PENDING_ACTION_SUGGESTION");this[jx("0x4")]=this[jx("0x9")][jx("0x15")][jx("0xe")](jx("0x12"))[jx("0x7")](t)}[jx("0xc")](){null!==this[jx("0x4")]&&this[jx("0x9")][jx("0x15")][jx("0xe")](jx("0x12"))[jx("0x13")](this._pendingAction),this._pendingAction=null}}const Gx=["canDiscard","value","bind","_model","editorConfig","isDirty","updateComment","delegate","commentsListView","destroy","length","_config","_createCommentThreadInputView","isEnabled","cancel","addComment","_localUser","authoredAt","commentThreadInputView","commentInputView","commentThread","showInput","assign","isReadOnly","canAccept","set","locale","isActive","focus","setData","element","_createCommentViews","removeComment"];var Hx,Wx;Hx=Gx,Wx=347,function(t){for(;--t;)Hx.push(Hx.shift())}(++Wx);const Vx=function(t,e){return Gx[t-=0]};class zx extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[Vx("0x1")]=null,this.set("isActive",!1),this.set("authoredAt",e[Vx("0x0")]),this.bind(Vx("0x0")).to(e),this[Vx("0x8")]("descriptionParts",[]),this.set(Vx("0x15"),!1),this[Vx("0x8")](Vx("0x1d"),!1),this[Vx("0x8")](Vx("0x7"),!1),this.set(Vx("0x10"),!1),this[Vx("0x13")]=e,this[Vx("0x20")]=n,this[Vx("0x1b")]=o,o.disableComments?this[Vx("0x8")]("length",1):this[Vx("0xe")]()}[Vx("0xb")](){this[Vx("0xd")].focus()}[Vx("0x19")](){this.commentsListView&&this.commentsListView[Vx("0x19")](),this.commentThreadInputView&&this[Vx("0x1")].destroy(),super[Vx("0x19")]()}[Vx("0xe")](){const{CommentsListView:t}=this._config;this[Vx("0x18")]=new t(this[Vx("0x9")],this[Vx("0x13")].commentThread,Object[Vx("0x5")]({CommentView:this[Vx("0x1b")].CommentView},this[Vx("0x1b")])),this.commentsListView[Vx("0x17")](Vx("0xf")).to(this),this[Vx("0x18")][Vx("0x17")](Vx("0x16")).to(this),this[Vx("0x18")][Vx("0x12")](Vx("0xa")).to(this),this[Vx("0x8")](Vx("0x1a"),this.commentsListView.length+1),this.bind(Vx("0x1a")).to(this[Vx("0x18")],"length",(t=>t+1)),this[Vx("0x1")]=this[Vx("0x1c")](),this.on(Vx("0xf"),(()=>this[Vx("0xb")]())),this.bind(Vx("0x15")).to(this[Vx("0x18")],"hasDirtyComment",this[Vx("0x1")][Vx("0x2")],Vx("0x11"),((t,e)=>t||!!e))}[Vx("0x1c")](){const{CommentThreadInputView:t}=this[Vx("0x1b")],e=new t(this[Vx("0x9")],this._localUser,this[Vx("0x1b")][Vx("0x14")]),n=e[Vx("0x2")];return e[Vx("0x12")](Vx("0x4")).to(this,"isActive",this[Vx("0x13")][Vx("0x3")],Vx("0x6"),n,Vx("0x11"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this.fire(Vx("0x1f"),e),n.editor[Vx("0xc")]("")})),n.on(Vx("0x1e"),(()=>this[Vx("0xb")]())),n.bind("disabledSubmit").to(this[Vx("0x13")][Vx("0x3")],"isReadOnly"),e}}const Kx=["isEnabled","creator","locale","_createButton","ck-suggestion--disabled-comments","ck-suggestion__actions","acceptButton","check","Discard suggestion","commentThreadInputView","ck-suggestion-","importWord","formatDateTime","source","getUserViewNotificationText","join","ck-annotation__main",'<span class="ck-suggestion-color" style="background-color: ',"ck-suggestion-wrapper--active","createElement","discardSuggestion","EXTERNAL_IMPORT_WORD_AVATAR","author","bind","@external","ck-suggestion__user","span","getExternalSuggestionNote","EXTERNAL_SUGGESTION","_model","description","ck-annotation__info-time","canDiscard","querySelector","change:description","descriptionParts","ck-comment__external","execute","canAccept","_config","userView","<p>","ck-annotation__info-name","getTemplate","attributes","fire",'<span class="ck-suggestion-type">',"type","</p>","authoredAt","ck-suggestion__info-name","ck-comment__info-time","</span>","title","ck-annotation__user","ck-suggestion__info","bindTemplate","div","isActive","ck-suggestion__main","render","discardButton","ck-suggestion--discard","push","value","ck-annotation__info","_descriptionElement","commentThread","set",'"></span>',"disableComments","time","cancel","color","isExternal","innerHTML","name","extendTemplate","content","split","children","element"];var qx,Xx;qx=Kx,Xx=199,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Jx extends zx{constructor(e,n,o,s){super(e,n,o,s),this[$x("0x21")]($x("0xc"),""),this[$x("0x46")]("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[$x("0x46")]("description").to(this,$x("0x0"),this,$x("0x17"),((t,e)=>{let n="";for(const e of t)n+=$x("0x6")+Qx(e[$x("0x2b")],e[$x("0x26")])+$x("0xd");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[$x("0x1f")]=null,this[$x("0x35")]=this[$x("0x32")](Yo(e,"Accept suggestion"),t.icons[$x("0x36")],"ck-suggestion--accept","acceptSuggestion","sw"),this.acceptButton[$x("0x46")]($x("0x2f")).to(this,$x("0x3")),this[$x("0x1a")]=this[$x("0x32")](Yo(e,$x("0x37")),t.icons[$x("0x25")],$x("0x1b"),$x("0x43"),"sw"),this[$x("0x1a")][$x("0x46")]($x("0x2f")).to(this,$x("0x4f")),this[$x("0x5")]=new r.UserView(e,this[$x("0x4c")][$x("0x45")],this[$x("0x3d")]()),this.userView[$x("0x2a")]({attributes:{class:[$x("0x48"),$x("0x13")]}}),this.setTemplate(this[$x("0x8")]())}[$x("0x8")](){const t=this[$x("0x15")],e=[{tag:$x("0x16"),attributes:{class:[$x("0x14"),$x("0x1e")]},children:[{tag:$x("0x49"),children:[{text:this[$x("0x5")][$x("0x29")]}],attributes:{class:[$x("0xf"),$x("0x7")]}},{tag:$x("0x24"),attributes:{datetime:t.to($x("0xe")),class:[$x("0x10"),$x("0x4e")]},children:[{text:t.to($x("0xe"),(t=>this[$x("0x4")][$x("0x3b")](t)))}]}]},{tag:$x("0x16"),attributes:{class:[$x("0x34"),"ck-annotation__actions"]},children:[this[$x("0x35")],this.discardButton]},{tag:$x("0x16"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[$x("0x4c")][$x("0x27")]&&e[$x("0x1c")]({tag:$x("0x16"),attributes:{class:[$x("0x1")]},children:[{text:this[$x("0x4a")]()}]});const n={tag:$x("0x16"),attributes:{class:["ck-suggestion-wrapper",t.if($x("0x17"),$x("0x41")),t.to("type",(t=>$x("0x39")+t)),this[$x("0x4")][$x("0x23")]&&$x("0x33")],"data-suggestion-id":this[$x("0x4c")].id,"data-thread-id":this[$x("0x4c")][$x("0x20")].id,"data-author-id":this[$x("0x4c")].author.id,tabindex:-1},children:[{tag:$x("0x16"),attributes:{class:["ck-suggestion","ck-annotation"]},children:[this[$x("0x5")],{tag:$x("0x16"),attributes:{class:[$x("0x18"),$x("0x3f")]},children:e}]}]};return this.commentsListView&&this[$x("0x38")]&&n[$x("0x2d")][$x("0x1c")](this.commentsListView,this[$x("0x38")]),n}[$x("0x19")](){super[$x("0x19")](),this[$x("0x1f")]=this[$x("0x2e")][$x("0x50")](".ck-annotation__content-wrapper"),this[$x("0x1f")][$x("0x28")]=this[$x("0x4d")],this.on($x("0x51"),((t,e,n)=>{this[$x("0x1f")][$x("0x28")]=n}))}[$x("0x32")](t,e,n,o,r){const i=new s.ButtonView(this[$x("0x31")]);return i[$x("0x21")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[$x("0x2a")]({attributes:{class:n}}),i.on($x("0x2"),(()=>{this[$x("0xa")](o,this[$x("0x4c")].id)})),i}[$x("0x4a")](){return $x("0x3a")===this._model[$x("0x9")][$x("0x47")][$x("0x3c")]?Yo(this[$x("0x31")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[$x("0x31")],$x("0x4b"))}getUserViewNotificationText(){return this[$x("0x4c")][$x("0x27")]?$x("0x3a")===this[$x("0x4c")].attributes[$x("0x47")][$x("0x3c")]?Yo(this[$x("0x31")],$x("0x44"),this[$x("0x4c")][$x("0x30")].name):Yo(this[$x("0x31")],"EXTERNAL_AVATAR",this._model[$x("0x30")][$x("0x29")]):null}}function Qx(t,e){let n="";return n+=t[$x("0x2c")]("*").map(((t,e)=>e%2!=0?$x("0xb")+Zx(t)+$x("0x11"):Zx(t)))[$x("0x3e")](""),e&&(n+=$x("0x40")+e[$x("0x1d")]+'" title="'+e[$x("0x12")]+$x("0x22")),n}function Zx(t){const e=document[$x("0x42")]($x("0x49"));return e.innerText=t,e[$x("0x28")]}const Yx=["has","EditorAnnotations","registerAnnotation","CommentsUI","isOn","_initializeController","commandName","getSuggestion","isMultiRange","pluginName","requires","suggestion-","value","_suggestionToController","editor","stopListening","_updateController","from","isDirty","button","remove","getByInnerView","descriptionParts","isInContent","innerView","comments.editorConfig","size","buttonView","change:activeAnnotations","Discard all suggestions","CommentsRepository","actionView","CommentView","discardButton","getAllAdjacentSuggestions","editing","TrackChangesEditing","destroy","arrowView","delete","Track changes","length","_destroyController","_descriptionFactory","define","comments.maxCommentsWhenCollapsed","createCommentThreadController","listenTo","commentThread","activeMarkers","addSourceCollector","change:previous","_viewToController","Accept all selected suggestions","suggestionLoaded","comments.maxThreadTotalWeight","getDescriptions","addComment","_refreshActiveMarkers","separator","createAnnotation","isEnabled","view","Annotations","add","_handleSuggestionControllerDelayed","_createUIButton","activeAnnotations","TrackChangesUI","get","set","hasSuggestion","_handleControllerBuffer","getJoined","reduce","head","discardSelectedSuggestions","_disableComments","refreshSelectedViews","SuggestionThreadView","previous","map","unbind","init","suggestionChanged","locale","execute","keys","focus","switchbutton","values","suggestionUnloaded","getFirstRange","source","_annotationViews","bind","type","model","acceptSelectedSuggestions","trackChanges.SuggestionThreadView","commands","trackChanges","plugins","createAnnotationView","Accept all suggestions","push","toMany","getMarkers"];var tc,ec;tc=Yx,ec=307,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Yx[t-=0]};class oc extends t.Plugin{static get[nc("0x1b")](){return[Rx,r.Users,nc("0x2f"),nc("0x50"),nc("0x12")]}static get[nc("0x1a")](){return nc("0x55")}constructor(t){super(t),this[nc("0x1e")]=new Map,this[nc("0x45")]=new Map,this[nc("0x3")]=new Map,this[nc("0x59")]=new Map;const e=this.editor.config;e[nc("0x3d")](nc("0x8"),Jx),e[nc("0x3d")]("trackChanges.disableComments",!1),this[nc("0x5e")]=e[nc("0x56")]("trackChanges.disableComments")}[nc("0x52")](t,e){0===this[nc("0x59")][nc("0x2b")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[nc("0x1e")].has(t);n||e?n&&e&&this._destroyController(t):this[nc("0x16")](t)}this[nc("0x1f")].plugins[nc("0x56")](nc("0x12"))[nc("0x5f")](),this._refreshActiveMarkers(),this[nc("0x59")].clear()}),10),this[nc("0x59")].set(t,e)}[nc("0x64")](){const t=this[nc("0x1f")],e=t[nc("0xb")][nc("0x56")](nc("0x35")),n=t[nc("0xb")][nc("0x56")](nc("0x50")),o=t[nc("0xb")][nc("0x56")]("EditorAnnotations"),s=t.plugins[nc("0x56")](nc("0x2f"));t.ui.componentFactory.add("trackChanges",(t=>this[nc("0x53")](t))),o[nc("0x43")]((()=>{const t=[];for(const[e,n]of Array[nc("0x22")](this[nc("0x1e")])){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[nc("0x28")])continue;if(t[nc("0x19")]){s[nc("0xe")](...t.getRanges());continue}const e=t[nc("0x1")]();if(s[nc("0x3a")]>0){const t=s[0][nc("0x5a")](e);if(t){s[0]=t;continue}}s[nc("0xe")](e)}t[nc("0xe")]([n[nc("0x4f")],s])}return t})),this[nc("0x40")](e,nc("0x47"),((t,e)=>{this[nc("0x40")](e,nc("0x44"),((t,n,o,s)=>{e[nc("0x28")]&&(null==o?(this[nc("0x21")](s.head),this[nc("0x52")](e,!1)):(this[nc("0x21")](o[nc("0x5c")]),this[nc("0x52")](e,!0)))})),null===e[nc("0x61")]?this[nc("0x52")](e,!1):this[nc("0x21")](e[nc("0x5c")])})),this[nc("0x40")](e,nc("0x0"),((t,e,n)=>{this[nc("0x20")](e,"change:previous"),this[nc("0x59")][nc("0x38")](e);const o=n?n[nc("0x5c")]:e,s=this._suggestionToController[nc("0x56")](o);null!==n&&this[nc("0x21")](o),null===n&&s&&this[nc("0x3b")](e)})),this.listenTo(e,nc("0x65"),((t,e)=>{this[nc("0x21")](e)})),this.listenTo(n,nc("0x2d"),(()=>{this[nc("0x4b")]()})),this[nc("0x40")](s,nc("0x4a"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[nc("0x58")](n))return;const s=e[nc("0x18")](n);this[nc("0x1e")].get(s)[nc("0x4f")][nc("0x69")]()}),{priority:"lowest"})}[nc("0x4b")](){const t=this[nc("0x1f")][nc("0xb")][nc("0x56")](nc("0x50")),e=this[nc("0x1f")][nc("0xb")][nc("0x56")](nc("0x35")),n=Array[nc("0x22")](t[nc("0x54")],(t=>t[nc("0x29")])).filter((t=>this[nc("0x45")][nc("0x11")](t))),o=[];for(const t of n){const e=this[nc("0x45")].get(t)[nc("0x6")].getAllAdjacentSuggestions();o[nc("0xe")](...e[nc("0x5b")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[nc("0x42")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[nc("0x1f")][nc("0x9")][nc("0x56")](nc("0xa")),r=Yo(t,nc("0x39"));n[nc("0x2c")][nc("0x57")]({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-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[nc("0x2c")][nc("0x4")](nc("0x15")).to(o,nc("0x1d")),n[nc("0x2c")].on(nc("0x67"),(()=>{o.execute(),this[nc("0x1f")][nc("0x34")][nc("0x4f")][nc("0x69")]()}));const i=new e.Collection,a=[{type:nc("0x6a"),model:{withText:!0,label:r,commandName:nc("0xa")}},{type:"separator"},{type:nc("0x24"),model:{withText:!0,label:Yo(t,nc("0xd")),commandName:"acceptAllSuggestions"}},{type:nc("0x24"),model:{withText:!0,label:Yo(t,nc("0x46")),commandName:nc("0x7")}},{type:nc("0x24"),model:{withText:!0,label:Yo(t,nc("0x2e")),commandName:"discardAllSuggestions"}},{type:nc("0x24"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:nc("0x5d")}}];for(const t of a){let e={type:nc("0x4c")};if(t[nc("0x6")]){const n=new s.Model(t.model),o=this[nc("0x1f")][nc("0x9")][nc("0x56")](n[nc("0x17")]);n[nc("0x4")](nc("0x15"),"isEnabled").to(o,nc("0x1d"),nc("0x4e")),e={type:t[nc("0x5")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const x=a.filter((t=>null!=t[nc("0x6")]))[nc("0x62")]((t=>this[nc("0x1f")][nc("0x9")].get(t[nc("0x6")][nc("0x17")]))),c=n[nc("0x2c")];return c.actionView[nc("0x63")](nc("0x4e")),c.arrowView[nc("0x63")](nc("0x4e")),c[nc("0x30")].bind("isEnabled").to(o,"isEnabled"),c[nc("0x37")][nc("0x4")](nc("0x4e"))[nc("0xf")](x,nc("0x4e"),((...t)=>t.some((t=>t)))),n.on("execute",(t=>{this.editor[nc("0x67")](t[nc("0x2")][nc("0x17")]),this[nc("0x1f")][nc("0x34")][nc("0x4f")][nc("0x69")]()})),n}_initializeController(t){const e=this[nc("0x1f")],n=e.config,o=e[nc("0xb")][nc("0x56")]("Annotations"),s=e.plugins[nc("0x56")](nc("0x2f")),i=e[nc("0xb")][nc("0x56")](nc("0x12")),a=e[nc("0xb")][nc("0x56")](r.Users).me,x=n.get(nc("0xa"))[nc("0x60")],{CommentsListView:c,CommentThreadInputView:l}=e[nc("0xb")][nc("0x56")](nc("0x14"));let u,d;this[nc("0x3")][nc("0x11")](t.id)?(d=this[nc("0x3")][nc("0x56")](t.id),u=d.mainView):(u=new x(e[nc("0x66")],t,a,{disableComments:this._disableComments,editorConfig:n.get(nc("0x2a")),maxCommentsWhenCollapsed:n[nc("0x56")](nc("0x3e")),maxThreadTotalWeight:n[nc("0x56")](nc("0x48")),maxCommentCharsWhenCollapsed:n.get("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[nc("0x56")](nc("0x66"))),CommentView:n.get("comments")[nc("0x31")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on(nc("0x67"),(()=>{e.editing[nc("0x4f")].focus()})),u[nc("0x32")].on(nc("0x67"),(()=>{e[nc("0x34")].view[nc("0x69")]()})),d=o[nc("0xc")](this[nc("0x1f")].locale,u),d[nc("0x4")]("isDirty").to(u,nc("0x23")),d[nc("0x4")](nc("0x3a")).to(u),d.bind(nc("0x5")).to(u,"type",(t=>nc("0x1c")+t)),this[nc("0x3")][nc("0x57")](t.id,d));const g=s[nc("0x3f")](t[nc("0x41")],u),m=new Ux(e,t,u,g),f=t[nc("0x33")]().filter((t=>t[nc("0x28")]));u[nc("0x27")]=e[nc("0xb")].get(nc("0x35"))[nc("0x3c")][nc("0x49")](f),this[nc("0x1e")][nc("0x57")](t,m),this[nc("0x45")][nc("0x57")](u,m);const h=o[nc("0x4d")]({view:d,target:()=>{const n=[],o=t[nc("0x33")]().filter((t=>t[nc("0x28")]));for(const t of o)n[nc("0xe")](...t[nc("0x10")]());return(0,r.getAllMarkersDomElementsSorted)(e[nc("0x34")],n)},type:()=>nc("0x1c")+m.view[nc("0x5")]});o[nc("0x51")](h),i[nc("0x13")](h)}_destroyController(t){const e=this[nc("0x1f")][nc("0xb")][nc("0x56")](nc("0x50")),n=this[nc("0x1e")][nc("0x56")](t),o=n[nc("0x4f")],s=e[nc("0x26")](o);s&&e[nc("0x25")](s),this[nc("0x1e")].delete(t),this._viewToController.delete(o),n[nc("0x36")]()}[nc("0x21")](t){if(!t[nc("0x28")]||!this[nc("0x1e")][nc("0x11")](t))return;const e=this[nc("0x1f")].plugins.get("TrackChangesEditing"),n=this[nc("0x1e")][nc("0x56")](t),o=t[nc("0x33")]();n[nc("0x4f")][nc("0x27")]=e[nc("0x3c")][nc("0x49")](o)}[nc("0x36")](){for(const t of this[nc("0x1e")][nc("0x68")]())this[nc("0x3b")](t);for(const t of this[nc("0x3")][nc("0x6b")]())t.mainView.destroy();super[nc("0x36")]()}}var sc,rc,ic=["TrackChanges","get","editor","adapter","getSuggestions","requires","addSuggestionData","plugins","pluginName","getSuggestion"];sc=ic,rc=291,function(t){for(;--t;)sc.push(sc.shift())}(++rc);var ac=function(t,e){return ic[t-=0]};class xc extends t.Plugin{static get[ac("0x4")](){return[Rx,oc,"Comments"]}static get[ac("0x7")](){return ac("0x9")}set adapter(t){this[ac("0x1")].plugins.get(Rx)[ac("0x2")]=t}get adapter(){return this[ac("0x1")][ac("0x6")].get(Rx)[ac("0x2")]}addSuggestion(t){return this[ac("0x1")][ac("0x6")][ac("0x0")](Rx)[ac("0x5")](t)}[ac("0x3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[ac("0x6")][ac("0x0")](Rx)[ac("0x3")]({skipNotAttached:t,toJSON:e})}[ac("0x8")](t){return this[ac("0x1")][ac("0x6")][ac("0x0")](Rx)[ac("0x8")](t)}}const cc=["useAnonymousUser","track-changes-data-invalid-editor-creator","extraPlugins","find","editorCreator","users","builtinPlugins","model","discardAllSuggestions","end","WebSocketGateway","constructor","getUser","editor","appendChild","Autosave","WordCount","TrackChangesData","requires","push","includes","trackChangesData.editorCreator","set","init","adapter","name","pluginName","config","RevisionTracker","filter","getRootNames","getDataWithDiscardedSuggestions","map","trackChangesData","has","create","execute","string","plugins","document","addSuggestionData","createElement","CommentsRepository","TrackChangesEditing","createDocumentFragment","data","destroy","concat","getDataWithAcceptedSuggestions","context","Users","TrackChangesDataGetter","function","get"];var lc,uc;lc=cc,uc=479,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]},gc=["initialData",dc("0x2"),"toolbar"],mc=[dc("0x11"),dc("0x23"),dc("0x16"),dc("0x17"),"Pagination"];class fc extends t.Plugin{static get[dc("0x19")](){return[Rx]}static get pluginName(){return dc("0x18")}init(){const t=this[dc("0x14")];if(t.config.define(dc("0x1c"),(e=>t[dc("0x12")][dc("0x2a")]("",e))),dc("0x5")!=typeof t[dc("0x22")][dc("0x6")](dc("0x28"))[dc("0xb")])throw new e.CKEditorError(dc("0x8"))}[dc("0x1")](t){return pc(this[dc("0x14")],!0,t)}[dc("0x26")](t){return pc(this[dc("0x14")],!1,t)}}class hc extends t.Plugin{static get pluginName(){return dc("0x4")}constructor(t){super(t),this.result=dc("0x10")}[dc("0x1e")](){this[dc("0x14")][dc("0x2d")][dc("0x6")](dc("0x31"))[dc("0x1f")]={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[dc("0x14")][dc("0x2d")][dc("0x6")](dc("0x32"))._adapter=null}}async function pc(t,e,n){const o=function(t){const e={};for(const n of t.config.names())gc[dc("0x1b")](n)||(e[n]=t[dc("0x22")][dc("0x6")](n));const n=t.constructor[dc("0xd")]||[],o=e[dc("0x9")]||[];delete e[dc("0x9")];const s=n[dc("0x0")](e.plugins).concat(o)[dc("0x27")]((t=>dc("0x2c")==typeof t?n[dc("0xa")]((e=>e[dc("0x21")]==t)):t)),r=Array.from(new Set(s)),i=new Map;return e.plugins=r[dc("0x24")]((t=>bc(t,i))),e[dc("0x2d")][dc("0x1a")](hc),e[dc("0x2d")].push(Rx),e}(t),s=document[dc("0x33")](),r=t[dc("0x22")].get(dc("0x28"))[dc("0xb")],i=await r(o,(()=>function(t){const e=document[dc("0x30")]("div");return t[dc("0x15")](e),e}(s)));!function(t,e){const n=t[dc("0xe")][dc("0x2e")][dc("0x25")]().reduce(((e,n)=>(e[n]=t[dc("0x34")][dc("0x6")]({rootName:n}),e)),{}),o=t.plugins[dc("0x6")](dc("0x3"))[dc("0xc")].map((t=>({id:t.id,name:t[dc("0x20")]}))),s=t[dc("0x2d")].get("TrackChangesEditing").getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get(dc("0x3")),i=e[dc("0x2d")][dc("0x6")](dc("0x32"));for(const t of o)r[dc("0x13")](t.id)||r.addUser(t);r.me||r[dc("0x7")]();for(const t of s)i[dc("0x2f")](t);e[dc("0x34")][dc("0x1d")](n)}(t,i),i[dc("0x2b")](e?"acceptAllSuggestions":dc("0xf"));const a=i[dc("0x34")].get(n);return await i[dc("0x35")](),a}function bc(t,e){const n=dc("0x5")==typeof t?t.pluginName||t[dc("0x20")]:t;if(e[dc("0x29")](n))return e.get(n);if(e[dc("0x1d")](n,!0),n&&mc[dc("0x1b")](n))return e[dc("0x1d")](n,!1),!1;if(!t[dc("0x19")])return e[dc("0x1d")](n,!0),!0;const o=t[dc("0x19")].every((t=>bc(t,e)));return e[dc("0x1d")](n,o),o}})(),(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 s=e[o];if(void 0!==s)return s.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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>wc,TrackChangesEditing:()=>za});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["execute","editor","_enableCommands","_disableUnsupportedCommands","affectsData","refresh","forceDisabled","_enabledCommands","TrackChangesCommand","commands","clearForceDisabled","has","value"];var c,l;c=a,l=226,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("0x2")]=e,this[u("0x7")]=!1,this[u("0x0")]()}[u("0x0")](){this.isEnabled=!0}[u("0x8")](){this[u("0x7")]=!this[u("0x7")],this[u("0x7")]?this[u("0xb")]():this[u("0xa")]()}_disableUnsupportedCommands(){for(const t of this[u("0x9")][u("0x4")].commands())t[u("0xc")]&&!this[u("0x2")][u("0x6")](t)&&t[u("0x1")](u("0x3"))}[u("0xa")](){for(const t of this.editor[u("0x4")][u("0x4")]())t[u("0xc")]&&!this[u("0x2")][u("0x6")](t)&&t[u("0x5")](u("0x3"))}}const g=["refresh","track-changes-accept-suggestion-not-found","editor","plugins","_suggestions","execute","get"];var m,f;m=g,f=141,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x3")]=e,this[h("0x6")]()}refresh(){this.isEnabled=!0}[h("0x4")](t){const n=this._suggestions[h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x0"),this);this[h("0x1")][h("0x2")].get("TrackChangesEditing").acceptSuggestion(n)}}const b=["refresh","_suggestions","editor","isEnabled","discardSuggestion","plugins","get","TrackChangesEditing","track-changes-discard-suggestion-not-found"];var E,_;E=b,_=455,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x5")]=e,this[T("0x4")]()}refresh(){this[T("0x7")]=!0}execute(t){const n=this._suggestions[T("0x1")](t);if(!n)throw new e.CKEditorError(T("0x3"),this);this[T("0x6")][T("0x0")].get(T("0x2"))[T("0x8")](n)}}const y=["getRange","schema","from","change","next","replace","push","length","splice","map","getMarkers","isMultiRange","value","isArray","type","end","execute","sort","isTouching","color","createPositionAt","isInContent","isCollapsed","createRange","createPositionAfter","createPositionBefore","deletion"," [color ","getRanges","join","add"];var k,A;k=y,A=440,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xb")](((t,e)=>v("0x14")==t.type&&v("0x14")!=e[v("0x8")]?-1:v("0x14")!=t[v("0x8")]&&v("0x14")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x1a")];for(;o<t[v("0x1")];){const i=t[o],x=t[o+1];n||(n=e[v("0x13")](i)),I(e,i,x)||(s[v("0x0")](e[v("0x11")](n,r.isObject(i)?e[v("0x12")](i):e[v("0xe")](i,v("0x9")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x12")](e),s=t[v("0x13")](n);return o[v("0xc")](s)}function L(t,e,n){for(;n[v("0x1")];){const o=n[v("0x2")](0,100);t[v("0x1c")]((()=>{for(const t of o)t.isInContent&&e[v("0xa")](t.id)}))}}const N=["refresh","some","isEnabled","execute","values","from","isInContent","_suggestions","_command"];var w,M;w=N,M=147,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x5")]=e,this[O("0x4")]=n,this[O("0x6")]()}[O("0x6")](){const t=Array[O("0x2")](this[O("0x4")].values())[O("0x7")]((t=>t[O("0x3")]));this[O("0x8")]=this[O("0x5")].isEnabled&&t}[O("0x0")](){const t=R(Array[O("0x2")](this[O("0x4")][O("0x1")]()));L(this.editor.model,this[O("0x5")],t)}}const P=["size","document","execute","from","editor","values","_command","model","selection","_suggestions","isEnabled","_selectedSuggestions"];var D,B;D=P,B=189,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this[j("0x0")]=n,this._selectedSuggestions=new Set,this.refresh()}refresh(){const t=this[j("0x7")][j("0xa")][j("0x4")][j("0xb")],e=Array[j("0x6")](this[j("0x0")][j("0x8")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x1b")](t[v("0x16")]()),o=new Set;for(const s of e)if(s[v("0xf")])for(const e of n)for(const n of s[v("0x4")]()){const r=n[v("0x19")]();(e.isIntersecting(r)||t[v("0x10")]&&!s[v("0x5")]&&s[v("0x1d")]&&r[v("0x9")][v("0xc")](e.start))&&o[v("0x18")](s)}return o}(t,e),this.isEnabled=this._command[j("0x1")]&&!!this._selectedSuggestions[j("0x3")]}[j("0x5")](){const t=R(Array[j("0x6")](this[j("0x2")]));L(this[j("0x7")][j("0xa")],this[j("0x9")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=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 V=function(t){var e=this.__data__,n=W(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=W(e,t);return n<0?void 0:e[n][1]};const X=function(t){return W(this.__data__,t)>-1};const q=function(t,e){var n=this.__data__,o=W(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=V,$.prototype.get=K,$.prototype.has=X,$.prototype.set=q;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=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 st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.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 mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(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 Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(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 Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(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])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const Wt=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 Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=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 Xt=function(t){return zt(this,t).has(t)};const qt=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=Vt,$t.prototype.get=Kt,$t.prototype.has=Xt,$t.prototype.set=qt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;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=Lt(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 se=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 s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=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 me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;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 Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var Xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Xe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=qe&&qe.exports===Xe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}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),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(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:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(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 Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(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 jn(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 Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const Xn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var qn=Se&&Se.isSet;const $n=qn?ke(qn):Xn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),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)\]/,so=/^\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))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;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,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(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(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(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 Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=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 vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&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 ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,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 Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){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 Nn(t),new Nn(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=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.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 m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){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]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=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,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:Wo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const Xo=function(t,e){return null==t||Ko(t,e)},qo=["isInContent","removeMarker","delete","addRange","head","get","onDiscard","removeAttribute","createdAt","_onAttributesChange","commentThread","reduce","markers","toJSON","substr","_markerNames","onAccept","@external","authoredAt","decorate","onAttributesChange","getMarkerNames","set","suggestion:","author","creator","getRanges","getMarkers","getItems","attributes","discard","setAttribute","nodeAfter","map","getAllAdjacentSuggestions","isExternal","getContainedElement","length","getFirstRange","getFirstMarker","data","push","start","isIntersectingWithRange","getRange","removeMarkers","nodeBefore","accept","add","subType","_model","clear","type","addMarkerName","from","hasComments","_onDiscard","previous","isMultiRange","size","getMultiRangeId","_onAccept"];var $o,Jo;$o=qo,Jo=437,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return qo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x31")]=e[Qo("0x31")],this[Qo("0x2e")]=e[Qo("0x2e")]||null,this.author=e[Qo("0x15")],this[Qo("0x16")]=e[Qo("0x16")]||e[Qo("0x15")],this[Qo("0x20")]=Boolean(e[Qo("0x1a")]&&e[Qo("0x1a")][Qo("0xe")]),this.data=null,this[Qo("0x2f")]=t,this[Qo("0x3a")]=e[Qo("0xd")],this[Qo("0x35")]=e[Qo("0x3")],this[Qo("0x6")]=e[Qo("0x11")],this[Qo("0xc")]=new Set,this[Qo("0x5")]=null,this[Qo("0x13")](Qo("0xf"),null),this[Qo("0x13")](Qo("0x1a"),e[Qo("0x1a")]||{}),this[Qo("0x13")](Qo("0x36"),null),this.set("next",null),this[Qo("0x13")](Qo("0x7"),null),this[Qo("0x13")]("_saved",!1),this[Qo("0x10")](Qo("0x2c")),this[Qo("0x10")](Qo("0x1b"))}get[Qo("0x1")](){let t=this;for(;t[Qo("0x36")];)t=t[Qo("0x36")];return t}get[Qo("0x34")](){return!!this[Qo("0x7")]&&this[Qo("0x7")][Qo("0x22")]>0}get[Qo("0x37")](){return 0!=this._markerNames[Qo("0x38")]&&6==Array.from(this[Qo("0xc")])[0].split(":")[Qo("0x22")]}get[Qo("0x3b")](){return null!==this[Qo("0x24")]()}[Qo("0x32")](t){this[Qo("0xc")][Qo("0x2d")](t)}[Qo("0x12")](){return Array[Qo("0x33")](this[Qo("0xc")])}[Qo("0x18")](){return this[Qo("0x12")]().map((t=>this[Qo("0x2f")][Qo("0x9")][Qo("0x2")](t))).filter((t=>t))}[Qo("0x24")](){return this.getMarkers()[0]||null}[Qo("0x2a")](){this[Qo("0x2f")].change((t=>{for(const e of this[Qo("0x18")]())t[Qo("0x3c")](e)})),this[Qo("0xc")][Qo("0x30")]()}removeMarker(t){this[Qo("0x2f")].change((e=>{e[Qo("0x3c")](t)})),this._markerNames[Qo("0x3d")](t)}[Qo("0x0")](t){const e=Qo("0x14")+this.type+":"+this[Qo("0x2e")]+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x39")]();this[Qo("0x32")](e),this[Qo("0x2f")].change((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x28")](t){for(const e of this[Qo("0x17")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x17")](){return this[Qo("0x18")]()[Qo("0x1e")]((t=>t.getRange()))}[Qo("0x19")](){return this[Qo("0x17")]()[Qo("0x8")](((t,e)=>[...t,...e[Qo("0x19")]()]),[])}[Qo("0x23")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x29")]())||null}[Qo("0x21")](){const t=this[Qo("0x17")]();if(1!=t[Qo("0x22")])return null;const e=t[0],n=e[Qo("0x27")][Qo("0x1d")],o=e.end[Qo("0x2b")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2c")](){this[Qo("0x3a")](this[Qo("0x17")](),this[Qo("0x25")],this[Qo("0x1a")]),this[Qo("0x2a")]()}discard(){this[Qo("0x35")](this.getRanges(),this[Qo("0x25")],this[Qo("0x1a")]),this[Qo("0x2a")]()}[Qo("0x1f")](){const t=[];let e=this[Qo("0x1")];for(;e;)t[Qo("0x26")](e),e=e.next;return t}[Qo("0x1c")](t,e){const n=eo(this[Qo("0x1a")]);_o(n,t,e),Go(n,this.attributes)||(this.attributes=n,this._onAttributesChange(n))}[Qo("0x4")](t){const e=eo(this[Qo("0x1a")]);Xo(e,t),Go(e,this.attributes)||(this.attributes=e,this._onAttributesChange(this[Qo("0x1a")]))}[Qo("0xa")](){return{id:this.id,type:this[Qo("0x2e")]?this[Qo("0x31")]+":"+this.subType:this[Qo("0x31")],authorId:this[Qo("0x16")].id,createdAt:this[Qo("0x5")],hasComments:this[Qo("0x34")],data:this.data,attributes:this[Qo("0x1a")]}}static getMultiRangeId(){return(0,e.uid)()[Qo("0xb")](1,5)}}function Yo(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 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_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":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_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_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);default:return e}}const ts=["start","ELEMENT_SPACE","$text","isInContent","_customCallbacks","push","isObject","deletion","registerElementLabel","Object","quantity","getItemLabel","$1 $2","element","type","softBreak","pop","*Insert:* %0","elementEnd","insertion","elementStart","addEmptyContainer","*Merge:* %0","nextSibling","set","addObject","_schema","end","_addDescriptionItems","getDescriptions","text","function","name","Container","length","_locale","removeEmptyContainer","removeObject","add","indexOf","remove","data","item","*Remove:* %0","replace","*Split:* %0","isEmpty","_itemLabels","getFirstRange","getWalker","REPLACE_TEXT","match","previousSibling","_resolveDescriptionItems","get","_itemLabelsCallbacks"];var es,ns;es=ts,ns=320,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x14")]=[],this._itemLabels=new Map,this[os("0xf")]=[],this[os("0x2a")]=t,this[os("0x33")]=e}[os("0x2d")](t){const e=[];for(let n=0;n<t[os("0x32")];n++){const o=t[n];if(!o[os("0x13")])continue;let s=!1;for(const t of this[os("0x14")]){const n=t(o);if(n){os("0x1e")in n&&e[os("0x15")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x8")]()[os("0x2b")].isEqual(s[os("0x8")]()[os("0x10")])){const t=e[e[os("0x32")]-1],n=os("0x23")==o[os("0x1e")]?os("0x36"):os("0x0");t&&os("0x2e")==t[os("0x1e")]&&(t[n]+="\n")}}}return this[os("0xd")](e)}registerDescriptionCallback(t){this._customCallbacks.push(t)}[os("0x18")](t,n,o=e.priorities.normal){os("0x2f")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x7")][os("0x28")](t,n)}[os("0x1b")](t,e=1){let n;for(const e of this[os("0xf")])if(e.matchingCallback(t)){n=e.label;break}return n||(n=this._itemLabels[os("0xe")](t[os("0x30")])),n?n(e):1!==e?e+" "+t[os("0x30")]+"s":""+t[os("0x30")]}[os("0x2c")](t,e){const n=e[os("0x8")]()[os("0x9")](),o=os("0x23")==e[os("0x1e")]?os("0x36"):os("0x0");for(const e of n){const s=e[os("0x2")],r=t[t[os("0x32")]-1];if(s.is("$textProxy"))r&&r.type[os("0x37")]("Container")>-1&&t[os("0x20")](),r&&os("0x2e")==r[os("0x1e")]?r[o]+=s[os("0x1")]:t[os("0x15")]({type:"text",add:os("0x36")==o?s[os("0x1")]:"",remove:os("0x0")==o?s[os("0x1")]:""});else if(this[os("0x2a")][os("0x16")](s)){const i=s;if(r&&r[os("0x1e")].indexOf(os("0x31"))>-1&&t[os("0x20")](),os("0x22")==e[os("0x1e")])continue;r&&r[os("0x1e")]==o+os("0x19")&&r[os("0x1d")][os("0x30")]==i[os("0x30")]?r[os("0x1a")]++:t.push({type:o+os("0x19"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t[os("0x1e")]&&t[os("0x2")]==s)))}else if(this._schema.checkChild(s,os("0x12"))||s.is(os("0x1d"),os("0x1f"))){const n=s;if("add"==o&&os("0x24")==e[os("0x1e")]||os("0x0")==o&&os("0x22")==e.type)continue;if(r&&-1==r[os("0x1e")][os("0x37")]("Container")){os("0x2e")==r[os("0x1e")]&&(r[o]+="\n");continue}let i;if(i=os("0x36")==o?n[os("0x27")]&&!this[os("0x2a")][os("0x16")](n[os("0x27")])?n.nextSibling:null:n.previousSibling&&!this._schema.isObject(n.previousSibling)?n[os("0xc")]:null,n[os("0x6")]||i&&i[os("0x6")]){const e=i&&i[os("0x6")]?i:n;r&&r[os("0x1e")]==o+"EmptyContainer"&&r[os("0x1d")][os("0x30")]==e[os("0x30")]?r[os("0x1a")]++:t[os("0x15")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x15")]({type:o+os("0x31"),element:n})}}}[os("0xd")](t){const e=this[os("0x33")],n=[];for(const o of t){switch(o[os("0x1e")]){case os("0x2e"):if(o[os("0x36")]=o[os("0x36")][os("0x4")](/(\S)\u000A+(\S)/g,os("0x1c"))[os("0x4")](/\u000A/g,""),o[os("0x0")]=o[os("0x0")][os("0x4")](/(\S)\u000A+(\S)/g,os("0x1c"))[os("0x4")](/\u000A/g,""),""!=o[os("0x36")]&&""!=o.remove){n.push({type:os("0x4"),content:Yo(e,os("0xa"),['"'+o[os("0x0")]+'"','"'+o.add+'"'])});continue}if(null!=o.add[os("0xb")](/^ +$/)){n.push({type:os("0x23"),content:Yo(e,os("0x21"),Yo(e,os("0x11"),o[os("0x36")].length))});continue}if(null!=o[os("0x0")][os("0xb")](/^ +$/)){n[os("0x15")]({type:os("0x17"),content:Yo(e,os("0x3"),Yo(e,os("0x11"),o[os("0x0")][os("0x32")]))});continue}if(""!=o[os("0x36")]){n[os("0x15")]({type:"insertion",content:Yo(e,os("0x21"),'"'+o.add+'"')});continue}n[os("0x15")]({type:os("0x17"),content:Yo(e,os("0x3"),'"'+o[os("0x0")]+'"')});continue;case os("0x25"):case os("0x29"):n[os("0x15")]({type:os("0x23"),content:Yo(e,os("0x21"),this.getItemLabel(o[os("0x1d")],o.quantity))});continue;case os("0x34"):case os("0x35"):n.push({type:os("0x17"),content:Yo(e,os("0x3"),this[os("0x1b")](o[os("0x1d")],o[os("0x1a")]))});continue;case"addContainer":n.push({type:"insertion",content:Yo(e,os("0x5"),this[os("0x1b")](o[os("0x1d")],o[os("0x1a")]))});continue;case"removeContainer":n[os("0x15")]({type:os("0x17"),content:Yo(e,os("0x26"),this[os("0x1b")](o[os("0x1d")],o.quantity))});continue}n[os("0x15")](o)}return n}}const rs=["value","locale","FORMAT_ALIGN_TO_RIGHT","_descriptionFactory","center","commandName","format","checkAttribute","ltr","left","TrackChangesEditing","contentLanguageDirection","model","*Format:* %0","right","editor","getAttribute","FORMAT_JUSTIFY_TEXT","selection","AlignmentEditing","commandParams","afterInit","schema","change","getSelectedBlocks","FORMAT_ALIGN_TO_CENTER","filter","enableCommand","plugins","FORMAT_ALIGN_TO_LEFT","alignment"];var is,xs;is=rs,xs=155,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x15")](){const t=this[as("0xf")],e=t[as("0x1")];if(!t[as("0x1c")].has(as("0x13")))return;const n=t[as("0x1c")].get(as("0xa"));n[as("0x1b")]("alignment",((e,o={})=>{let s=o.value;o[as("0x0")]||(s=as("0x8")===t.locale[as("0xb")]?"left":as("0xe"));const r=Array.from(this[as("0xf")].model.document[as("0x12")][as("0x18")]())[as("0x1a")]((t=>function(t,e,n){const o=t[as("0x10")](as("0x1e"))||null;return e[as("0x7")](t,as("0x1e"))&&n!=o}(t,this.editor[as("0xc")][as("0x16")],s)));t[as("0xc")][as("0x17")]((()=>{for(const t of r)n.markBlockFormat(t,{commandName:as("0x1e"),commandParams:[{value:s}]})}))})),n[as("0x3")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x1e")==n[as("0x5")]){const t=n[as("0x14")][0][as("0x0")];return{type:as("0x6"),content:Yo(e,as("0xd"),function(t){switch(t){case as("0x9"):return Yo(e,as("0x1d"));case as("0xe"):return Yo(e,as("0x2"));case as("0x4"):return Yo(e,as("0x19"));case"justify":return Yo(e,as("0x11"))}}(t))}}}))}}const ls=["name","createUIElement","push","schema","previousPosition","type","getItems","addClass","model","nextSibling","isLimit","ck-suggestion-marker--active","get","test","toViewElement","bindElementToMarker","consumable","ck-suggestion-marker-","plugins","TrackChangesEditing","includes","activeMarkers","markerRange","isContent","isAtEnd","item","getCustomProperty","element","toViewPosition","isBlock","getWalker","start","mapper","insert","writer","listItem","elementEnd","span"];var us,ds;us=ls,ds=475,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x19")]())s.hasAttribute(t)&&o[gs("0x15")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x8"),gs("0x10"))){let n=t[gs("0x1c")];for(;n&&n.is(gs("0x8"),gs("0x10"))&&n.getAttribute("listIndent")>0;)e[gs("0x15")](n),n=n[gs("0x1c")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x25")][gs("0x1f")](gs("0x0"));return(s,r,i)=>{if(!i[gs("0x23")][gs("0x20")](r[gs("0x3")],s[gs("0x13")]))return;const x=r[gs("0x3")][gs("0xb")](),a=r[gs("0x3")][gs("0xc")],c=t[gs("0x1b")][gs("0x16")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x6")];d=d||c[gs("0x4")](e);const n=i[gs("0xd")][gs("0x21")](e);if(n&&n[gs("0x7")]("addHighlight"))return;gs("0x11")==t[gs("0x18")]&&c[gs("0xa")](e)&&!c[gs("0x1d")](e)&&(e.nextSibling||a[gs("0x5")]?l&&l.parent==e||(l=e,m(t[gs("0x17")]),g=!0):u=u||t[gs("0x17")])}function m(t){const s=i[gs("0xf")][gs("0x14")](gs("0x12"),{class:gs("0x24")+e}),x=i[gs("0xd")][gs("0x9")](t);n&&o[gs("0x2")][gs("0x1")](r.markerName)&&i.writer[gs("0x1a")](gs("0x1e"),s),i.writer[gs("0xe")](x,s),i[gs("0xd")][gs("0x22")](s,r.markerName)}d||g||!u||m(u)}}const ps=["enableCommand","strikethrough","code","toLowerCase","SuperscriptEditing","StrikethroughEditing","editor","from","underline","FORMAT_BOLD","subscript","markInlineFormat","FORMAT_CODE","selection","_descriptionFactory","FORMAT_SUPERSCRIPT","*Remove format:* %0","bold","FORMAT_ITALIC","afterInit","change","commandParams","TrackChangesEditing","get","ItalicEditing","BoldEditing","plugins","has","value","commandName","isCollapsed","forceValue","format","getRanges","registerDescriptionCallback","SubscriptEditing","locale","FORMAT_STRIKETHROUGH"];var bs,Es;bs=ps,Es=318,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xb"),_s("0xa"),"UnderlineEditing","CodeEditing",_s("0x1d"),_s("0x15"),_s("0x1c")];class Cs extends t.Plugin{[_s("0x5")](){const t=this[_s("0x1e")],e=t.model,n=t[_s("0xc")][_s("0x9")](_s("0x8")),o=t[_s("0x16")];for(const o of Ts){if(!t[_s("0xc")][_s("0xd")](o))continue;const s=o.slice(0,-7)[_s("0x1b")](),r=t.commands[_s("0x9")](s);n[_s("0x18")](s,((t,o={})=>{const i=e.document[_s("0x25")];if(i[_s("0x10")])return void t(o);const x=void 0!==o[_s("0x11")]?o[_s("0x11")]:!r[_s("0xe")];e[_s("0x6")]((()=>{const t=Array[_s("0x1f")](i[_s("0x13")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x23")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x0")][_s("0x14")]((n=>{const{data:s}=n;if(s&&s[_s("0xf")]===t)return s[_s("0x7")][0][_s("0x11")]?{type:"format",content:Yo(o,"*Format:* %0",e)}:{type:_s("0x12"),content:Yo(o,_s("0x2"),e)}}))}s(_s("0x3"),Yo(o,_s("0x21"))),s("italic",Yo(o,_s("0x4"))),s(_s("0x20"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x1a"),Yo(o,_s("0x24"))),s(_s("0x19"),Yo(o,_s("0x17"))),s(_s("0x22"),Yo(o,"FORMAT_SUBSCRIPT")),s("superscript",Yo(o,_s("0x1")))}}const ys=["selection","plugins","format","afterInit","editor","parent","$root","commands","blockQuote","forceValue","commandParams","schema","BlockQuoteEditing","model","locale","registerDescriptionCallback","_descriptionFactory","from","getSelectedBlocks","has","TrackChangesEditing","commandName","ELEMENT_BLOCK_QUOTE","*Format:* %0","*Remove format:* %0","get","enableCommand","value"];var ks,As;ks=ys,As=484,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x17")](){const t=this[vs("0x18")],e=t[vs("0x6")];if(!t.plugins[vs("0xb")](vs("0x4")))return;const n=t[vs("0x15")][vs("0x11")](vs("0xc")),o=this.editor[vs("0x1b")].get(vs("0x0"));n[vs("0x12")](vs("0x0"),((e,s={})=>{const r=this[vs("0x18")].model.document[vs("0x14")],i=s&&void 0!==s[vs("0x1")]?s[vs("0x1")]:!o[vs("0x13")];let x=[];if(i){const e=Array[vs("0x9")](r[vs("0xa")]()).filter((t=>Ss(t)||function(t,e){const n=e.checkChild(t.parent,"blockQuote"),o=e.checkChild([vs("0x1a"),vs("0x0")],t);return n&&o}(t,this.editor[vs("0x5")][vs("0x3")])));x=S(e,t[vs("0x5")])}else{const e=Array[vs("0x9")](r[vs("0xa")]()).filter((t=>Ss(t)));x=S(e,t[vs("0x5")])}t[vs("0x5")].change((()=>{for(const t of x)n.markBlockFormat(t,{commandName:vs("0x0"),commandParams:[{forceValue:i}]})}))})),n[vs("0x8")][vs("0x7")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[vs("0xd")]){const t=Yo(e,vs("0xe"));return n[vs("0x2")][0][vs("0x1")]?{type:"format",content:Yo(e,vs("0xf"),t)}:{type:vs("0x16"),content:Yo(e,vs("0x10"),t)}}}))}}function Ss(t){return vs("0x0")==t[vs("0x19")].name}const Is=["afterInit","commands","TrackChangesEditing","ckbox","get","enableCommand","editor"];var Ls,Ns;Ls=Is,Ns=461,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x1")](){const t=this[ws("0x0")];t[ws("0x2")][ws("0x5")](ws("0x4"))&&t.plugins[ws("0x5")](ws("0x3"))[ws("0x6")](ws("0x4"))}}const Os=["value","codeBlock","document","commandParams","find","from","isLimit","change","formatBlock","registerElementLabel","schema","commands","getSelectedBlocks","plugins","_descriptionFactory","filter","enableCommand","selection","format","config","forceValue","rootElement","*Remove format:* %0","afterInit","ELEMENT_CODE_BLOCK","parent","get","model","name","CodeBlock","registerDescriptionCallback","commandName","TrackChangesEditing","locale","has","language","label","editor"];var Fs,Ps;Fs=Os,Ps=328,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x25")](){const t=this[Ds("0xd")];if(!t[Ds("0x1b")][Ds("0xa")](Ds("0x5")))return;const e=t[Ds("0x1b")].get(Ds("0x8")),n=t[Ds("0x9")],o=t[Ds("0x21")][Ds("0x2")](Ds("0xf")).languages,s=t[Ds("0x19")].get(Ds("0xf"));e.enableCommand("indentCodeBlock"),e.enableCommand("outdentCodeBlock"),e[Ds("0x1e")]("codeBlock",((n,r={})=>{const i=t.model,x=t[Ds("0x3")][Ds("0x10")][Ds("0x1f")],a=r&&void 0!==r.forceValue?r[Ds("0x22")]:!s[Ds("0xe")];let c;r[Ds("0xb")]||(r.language=o[0][Ds("0xb")]),c=a?Array[Ds("0x13")](x[Ds("0x1a")]())[Ds("0x1d")]((t=>{return js(t)||(e=t,n=i[Ds("0x18")],!e.is(Ds("0x23"))&&!n[Ds("0x14")](e)&&n.checkChild(e[Ds("0x1")],Ds("0xf")));var e,n})):Array.from(x[Ds("0x1a")]()).filter((t=>js(t)));const l=S(c,i);i[Ds("0x15")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0xf"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x1c")][Ds("0x17")](Ds("0xf"),(t=>Yo(n,Ds("0x0"),t))),e._descriptionFactory[Ds("0x6")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x16")==s&&r&&Ds("0xf")==r[Ds("0x7")]){const t=r[Ds("0x11")][0][Ds("0xb")],s=e(o[Ds("0x12")]((e=>e[Ds("0xb")]===t))[Ds("0xc")]);return r[Ds("0x11")][0][Ds("0x22")]?{type:Ds("0x20"),content:Yo(n,"*Format:* %0",Yo(n,Ds("0x0"),1)+" ("+s+")")}:{type:Ds("0x20"),content:Yo(n,Ds("0x24"),Yo(n,Ds("0x0"),1))}}}))}}function js(t){return Ds("0xf")==t[Ds("0x4")]}const Us=["get","plugins","addCommentThread","enableCommand","editor","afterInit"];var Gs,Hs;Gs=Us,Hs=412,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class zs extends t.Plugin{[Ws("0x1")](){const t=this[Ws("0x0")];t[Ws("0x3")].has("CommentsEditing")&&t[Ws("0x3")][Ws("0x2")]("TrackChangesEditing")[Ws("0x5")](Ws("0x4"))}}var Vs=n(181);const Ks=["markerName","showSuggestionHighlights","createRange","high","isCollapsed","fromRange","detach","enableCommand","deleteForward","end","TrackChangesEditing","lock","addMarker:suggestion:deletion","setSelection","batch","model","selection","options","get","markerNameToElements","unit","unlock","getFirstRange","$graveyard","merge","rootName","mapper","delete","remove","downcastDispatcher","root","modifySelection","enqueueChange","commands","buffer","removeMarker:suggestion:deletion","start","requires"];var Xs,qs;Xs=Ks,qs=326,function(t){for(;--t;)Xs.push(Xs.shift())}(++qs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0xf")](){return[Vs.Delete]}init(){const t=this.editor,e=t.plugins[$s("0x22")]($s("0x1a"));e[$s("0x17")]($s("0x5"));const n=t[$s("0xb")][$s("0x22")]("deleteForward");e[$s("0x17")]($s("0x18"),((e,o={})=>{const s=t.model.createSelection(t[$s("0x1f")].document[$s("0x20")]);s[$s("0x14")]&&t[$s("0x1f")][$s("0x9")](s,{direction:"forward",unit:o[$s("0x24")]});const r=s[$s("0x0")](),x=i.LiveRange[$s("0x15")](r);let a;e(o),a=$s("0x1")==x[$s("0x8")][$s("0x3")]?t[$s("0x1f")][$s("0x12")](r[$s("0xe")]):t[$s("0x1f")][$s("0x12")](x[$s("0xe")],x[$s("0x19")]),x[$s("0x16")](),t[$s("0x1f")][$s("0xa")](n[$s("0xc")][$s("0x1e")],(t=>{n[$s("0xc")][$s("0x1b")](),t[$s("0x1d")](t.createRange(a[$s("0x19")])),n.buffer[$s("0x25")]()}))})),t.editing[$s("0x7")].on($s("0x1c"),hs(t,"merge"),{priority:$s("0x13")}),t.data.downcastDispatcher.on("addMarker:suggestion:deletion",((e,n,o)=>{o[$s("0x21")][$s("0x11")]&&hs(t,$s("0x2"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:$s("0x13")}),t.editing[$s("0x7")].on($s("0xd"),((t,e,n)=>{const o=n[$s("0x4")][$s("0x23")](e[$s("0x10")]);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x4")].unbindElementFromMarkerName(t,e[$s("0x10")]),n.writer[$s("0x6")](t))}),{priority:$s("0x13")})}}const Qs=["listItemId","value","DocumentListEditing","markBlockFormat","commands","start","setSelection","getSelectedBlocks","enableCommand","bulletedList","nextSibling","model","add","getFirstRange","after","_LIST","listIndent","commandName","outdentList","editor","documentList","splitListItemAfter","push","mergeListItemBackward","ELEMENT_NUMBERED_LIST","slice","document","format","isObject","locale","getAttribute","containsItem","splitListItemBefore","*Format:* insert into %0","from","DocumentListUtils","createRange","plugins","*Format:* remove from %0","listType","nodeAfter","getRanges","registerElementLabel","*Outdent:* %0","*Change to:* %0","createPositionAt","selection","indentList","before","deletion","_descriptionFactory","mergeListItemForward","*Merge:* %0","markMultiRangeBlockFormat","hasAttribute","previousSibling","commandParams","ELEMENT_LIST_ITEM","get","expandListBlocksToCompleteList","refresh","end","formatBlock","change","numberedList","map","has","detach","schema"];var Zs,Ys;Zs=Qs,Ys=393,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{afterInit(){const t=this[tr("0x28")];if(!t[tr("0x3a")][tr("0x12")](tr("0x17")))return;const e=t[tr("0x32")],n=t.plugins[tr("0xa")]("TrackChangesEditing"),o=t.plugins[tr("0xa")](tr("0x38"));function s(e){return()=>{const s=t[tr("0x19")].get(e);let r=Array.from(t[tr("0x20")][tr("0x2f")].selection[tr("0x1c")]());if(a(e)){r=o[tr("0xb")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[tr("0x2b")](e);r=t}t[tr("0x20")].change((()=>{n[tr("0x5")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x16")]}],formatGroupId:tr("0x3c")},[],tr("0x29"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x37")](t);const n=e.findIndex((t=>!t[tr("0x6")](tr("0x15"))));return n>-1&&(e=e[tr("0x2e")](0,n)),e}(t[tr("0x20")].document[tr("0x43")][tr("0x1c")]()),s=o[o.length-1],r=t[tr("0x20")][tr("0x14")][tr("0x31")](s)?tr("0x23"):tr("0xd"),i=t[tr("0x20")].createRange(t[tr("0x20")][tr("0x42")](o[0],tr("0x0")),t[tr("0x20")].createPositionAt(s,r));t[tr("0x20")].change((()=>{n[tr("0x18")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x1f")];for(;t&&t.getAttribute("listIndent")>n[tr("0x33")](tr("0x25"));)e[tr("0x21")](t),t=t[tr("0x1f")]}return Array[tr("0x37")](e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x2f")].selection[tr("0x1c")]().next().value,s=t[tr("0x20")][tr("0x42")](o,tr("0x0")),r=t[tr("0x20")][tr("0x42")](o,0),i=t[tr("0x20")][tr("0x39")](s,r);t[tr("0x20")][tr("0xf")]((()=>{n[tr("0x18")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x3c")})}))}}function a(e){const n=t[tr("0x19")].get("bulletedList")[tr("0x16")],o=t.commands[tr("0xa")](tr("0x10")).value;return tr("0x10")===e?n:o}n.enableCommand(tr("0x10"),s(tr("0x10"))),n[tr("0x1d")](tr("0x1e"),s(tr("0x1e"))),n.enableCommand("indentList",r("indentList")),n[tr("0x1d")](tr("0x27"),r("outdentList")),n[tr("0x1d")]("splitListItemAfter",x(tr("0x2a"))),n.enableCommand(tr("0x35"),x(tr("0x35"))),n[tr("0x2")][tr("0x3f")]((function(e){const n=!t.model[tr("0x14")][tr("0x31")](e),o=e[tr("0x7")],s=e[tr("0x1f")],r=e[tr("0x33")](tr("0x15")),i=!o||o[tr("0x33")](tr("0x15"))!==r,x=!s||s[tr("0x33")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0x2")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x26")]){case tr("0x1e"):r=n[tr("0x8")][0].forceValue,i=a(n[tr("0x26")]),o=r?tr("0x36"):"*Format:* remove from %0",i&&(o=tr("0x41")),s={type:tr("0x30"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x10"):r=n[tr("0x8")][0].forceValue,i=a(n[tr("0x26")]),o=r?"*Format:* insert into %0":tr("0x3b"),i&&(o="*Change to:* %0"),s={type:tr("0x30"),content:Yo(e,o,Yo(e,tr("0x2d")))};break;case tr("0x44"):o="*Indent:* %0",s={type:tr("0x30"),content:Yo(e,o,Yo(e,tr("0x9")))};break;case"outdentList":o=function(t){const e=t[tr("0x22")]();let n=e[tr("0x1a")].nodeAfter;for(;n&&e[tr("0x34")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n[tr("0x1f")]}return!0}(t)?Yo(e,tr("0x3b"),Yo(e,"ELEMENT_"+t[tr("0x22")]()[tr("0x1a")].nodeAfter.getAttribute(tr("0x3c")).toUpperCase()+tr("0x24"))):Yo(e,tr("0x40"),Yo(e,tr("0x9"))),s={type:tr("0x30"),content:o};break;case tr("0x2c"):case tr("0x3"):!1===n.multipleBlocks&&(o=tr("0x4"),s={type:tr("0x1"),content:Yo(e,o,Yo(e,tr("0x9")))})}return s})),n._suggestionFactory.registerCustomCallback(tr("0xe"),tr("0x29"),"accept",(function(e,n){const o=[];for(let n of e)n[tr("0x1a")][tr("0x3d")]===n[tr("0xd")].parent&&(n=t[tr("0x20")][tr("0x39")](t[tr("0x20")][tr("0x42")](n[tr("0x1a")][tr("0x3d")],0))),o[tr("0x2b")](n);t[tr("0x20")][tr("0xf")]((e=>{const s=t.model[tr("0x2f")][tr("0x43")],r=Array[tr("0x37")](s[tr("0x3e")]())[tr("0x11")]((t=>i.LiveRange.fromRange(t)));e.setSelection(o),t[tr("0x19")][tr("0xa")](n[tr("0x26")])[tr("0xc")](),n[tr("0x8")][tr("0x2b")]({forceDefaultExecution:!0}),t.execute(n[tr("0x26")],...n[tr("0x8")]),e[tr("0x1b")](r);for(const t of r)t[tr("0x13")]()}))}))}}var nr=n(331);const or=["downcastDispatcher","hasClass","get","removeMarker:suggestion:insertion","change","model","enter","enableCommand","showSuggestionHighlights","document","high","bind","markInsertion","addMarker:suggestion:insertion","requires","TrackChangesEditing","unbindElementFromMarkerName","commands","getFirstPosition","remove","init","data","afterExecute","createRange","plugins","fromRange","setSelection","editor","nextSibling","enterBlock","options","split","detach","ck-suggestion-marker-split","markerName","editing"];var sr,rr;sr=or,rr=277,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x19")](){return[nr.Enter]}[ir("0x1f")](){const t=this[ir("0x2")],e=t[ir("0x23")][ir("0xd")](ir("0x1a")),n=t[ir("0x1c")][ir("0xd")](ir("0x11"));e[ir("0x12")]("enter",(()=>{t.model[ir("0xf")]((o=>{const s=t[ir("0x10")][ir("0x14")].selection,r=s[ir("0x1d")](),x=i.LiveRange[ir("0x0")](s.getFirstRange());if(n[ir("0x4")](o)){const n=t[ir("0x10")].createPositionAt(r.parent[ir("0x3")],0),s=o[ir("0x22")](r,n);e[ir("0x17")](s)}else o[ir("0x1")](o[ir("0x22")](x.end));x[ir("0x7")](),n.fire(ir("0x21"),{writer:o})}))})),t[ir("0xa")].downcastDispatcher.on(ir("0x18"),hs(t,ir("0x6")),{priority:ir("0x15")}),t.editing[ir("0xb")].on(ir("0xe"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[ir("0x9")]);if(o)for(const t of o)t[ir("0xc")](ir("0x8"))&&(n.mapper[ir("0x1b")](t,e[ir("0x9")]),n.writer[ir("0x1e")](t))}),{priority:ir("0x15")}),t[ir("0x20")][ir("0xb")].on(ir("0x18"),((e,n,o)=>{o[ir("0x5")][ir("0x13")]&&hs(t,ir("0x6"),{showActiveMarker:!1})[ir("0x16")](this)(e,n,o)}),{priority:ir("0x15")})}}const ar=["TrackChangesEditing","findPrevious","afterInit","getMarkersGroup","find","suggestion:deletion","_isInDeletionRange","createPositionAt","handleFindCommand","get","getRange","replaceAll","item","FindAndReplaceEditing","getIntersection","end","model","editor","start","enableCommand","has","replace","findNext","plugins"];var cr,lr;cr=ar,lr=335,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x3")](){if(!this.editor[ur("0x0")][ur("0x15")](ur("0xe")))return;const t=this[ur("0x12")][ur("0x0")][ur("0xa")](ur("0x1"));t[ur("0x14")](ur("0x5"),this[ur("0x9")].bind(this)),t[ur("0x14")](ur("0x17")),t.enableCommand(ur("0x2")),t[ur("0x14")](ur("0x16")),t.enableCommand(ur("0xc"))}[ur("0x9")](t,e,n={}){const o=this[ur("0x12")][ur("0x0")].get("FindAndReplaceUtils");void 0!==n&&t((t=>("string"==typeof e?o.findByTextCallback(e,n):e)(t).filter((e=>!1===this[ur("0x7")](e,t[ur("0xd")])))),n)}_isInDeletionRange(t,e){const n=this[ur("0x12")].model.createRange(this[ur("0x12")][ur("0x11")][ur("0x8")](e,t[ur("0x13")]),this[ur("0x12")].model[ur("0x8")](e,t[ur("0x10")]));for(const t of this.editor[ur("0x11")].markers[ur("0x4")](ur("0x6")))if(null!==n[ur("0xf")](t[ur("0xb")]()))return!0;return!1}}const gr=["get","value","locale","*Reset font family*","fontBackgroundColor","change","*Reset font size*","FontSize","selection","trim","fontSize.options","label","find","TrackChangesEditing","markInlineFormat","model","commandParams","fontBackgroundColor.colors","commandName","getRanges","fontColor","afterInit","*Set font family:* %0","document","config","has","*Set font size:* %0","isCollapsed","registerDescriptionCallback","fontFamily","toLowerCase","fontSize","title","FontFamilyEditing","*Set font background color:* %0","*Set font color:* %0","enableCommand","editor","format","plugins","*Reset font background color*","_enableCommand"];var mr,fr;mr=gr,fr=230,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:"FontSizeEditing",commandName:hr("0xb")},{pluginName:hr("0xd"),commandName:hr("0x9")},{pluginName:"FontColorEditing",commandName:hr("0x0")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x1")](){const t=this.editor[hr("0x18")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x11")][hr("0x13")][hr("0x5")](t)&&this._enableCommand(e);this.editor[hr("0x13")].get(hr("0x23"))._descriptionFactory[hr("0x8")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xb")==o[hr("0x28")]){const e=o[hr("0x26")][0][hr("0x17")];if(e){const o=n(this.editor[hr("0x13")][hr("0x16")](hr("0x1d")).normalizeSizeOptions(this[hr("0x11")][hr("0x4")].get(hr("0x20")))[hr("0x22")]((t=>t[hr("0x25")]==e))[hr("0xc")]).toLowerCase();return{type:hr("0x12"),content:Yo(t,hr("0x6"),o)}}return{type:hr("0x12"),content:Yo(t,hr("0x1c"))}}if("fontFamily"==o[hr("0x28")]){const e=o[hr("0x26")][0].value;return e?{type:hr("0x12"),content:Yo(t,hr("0x2"),e)}:{type:hr("0x12"),content:Yo(t,hr("0x19"))}}if("fontColor"==o[hr("0x28")]){const e=o.commandParams[0][hr("0x17")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x11")][hr("0x4")][hr("0x16")]("fontColor.colors"))[hr("0x22")]((t=>t[hr("0x25")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0xa")]()),{type:hr("0x12"),content:Yo(t,hr("0xf"),i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,"*Reset font color*")}}if(hr("0x1a")==o[hr("0x28")]){const e=o[hr("0x26")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x11")].config[hr("0x16")](hr("0x27")))[hr("0x22")]((t=>t[hr("0x25")]==e));let r=e,i="";return o&&(r=o[hr("0x21")],i=n(r)[hr("0xa")]()),{type:"format",content:Yo(t,hr("0xe"),i)[hr("0x1f")](),color:{value:e,title:i||r}}}return{type:hr("0x12"),content:Yo(t,hr("0x14"))}}}}))}[hr("0x15")](t){const e=this[hr("0x11")];e.plugins[hr("0x16")](hr("0x23"))[hr("0x10")](t,((n,o={})=>{const s=e[hr("0x25")][hr("0x3")][hr("0x1e")],r=o[hr("0x17")];s[hr("0x7")]?n(o):e.model[hr("0x1b")]((()=>{const n=Array.from(s[hr("0x29")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x25")]);for(const o of n)e[hr("0x13")][hr("0x16")](hr("0x23"))[hr("0x24")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["copyFormat","join","format","length","isEnabled","change","createRange","commandParams","document","selection","markInlineFormat","afterInit","createSelection","TrackChangesEditing","pasteFormat","modifySelection","*Set format to:* %0","_descriptionFactory","getFirstPosition","*Remove all formatting*","locale","entries","registerDescriptionCallback","toUpperCase","fontBackgroundColor","fontColor.colors","title","plugins","editor","commands","config","removeFormat","enableCommand","charAt","split","word","fontSize","push","fontSize.options","get","toLowerCase","boolean","model","from","forward"];var _r,Tr;_r=Er,Tr=275,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x6")](){const t=this[Cr("0x17")],e=t[Cr("0x25")],n=e[Cr("0x3")][Cr("0x4")],o=t[Cr("0x16")][Cr("0x22")](Cr("0x8")),s=t[Cr("0xf")],r=t[Cr("0x18")][Cr("0x22")](Cr("0x28")),i=t[Cr("0x18")][Cr("0x22")](Cr("0x9")),x=t[Cr("0x18")][Cr("0x22")](Cr("0x1a"));r&&i&&(o[Cr("0x1b")](Cr("0x9"),((t,s={})=>{const r=s;e[Cr("0x0")]((()=>{const t=Array[Cr("0x26")](n.getRanges()),s=n.isCollapsed?[kr(e,n)]:t;if(x&&x[Cr("0x2c")]||0!==Object.keys(r)[Cr("0x2b")])for(const t of s)o[Cr("0x5")](t,{commandName:Cr("0x9"),commandParams:[r]})}))})),o[Cr("0xc")][Cr("0x11")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cr("0x2")][0];for(const[n,s]of Object[Cr("0x10")](o))e[Cr("0x20")](Ar(t,n,s));return e[Cr("0x2b")]?{type:Cr("0x2a"),content:Yo(s,Cr("0xb"),e[Cr("0x29")](", "))}:{type:"format",content:Yo(s,Cr("0xe"))}}})),t.plugins[Cr("0x22")](Cr("0x8")).enableCommand("copyFormat"))}}function kr(t,e){const n=t[Cr("0x7")](e);t[Cr("0xa")](n,{unit:Cr("0x1e"),direction:"backward"});const o=n[Cr("0xd")]();t[Cr("0xa")](n,{unit:Cr("0x1e"),direction:Cr("0x27")});const s=n.getLastPosition();return t[Cr("0x1")](o,s)}function Ar(t,e,n){const o=t[Cr("0xf")].t,r=e[Cr("0x1d")](/(?=[A-Z])/)[Cr("0x29")](" "),i=o(r[Cr("0x1c")](0)[Cr("0x12")]()+r.slice(1))[Cr("0x23")]();if(Cr("0x24")==typeof n)return i;if("fontColor"===e||Cr("0x13")===e){const e=(0,s.normalizeColorOptions)(t.config.get(Cr("0x14"))).find((t=>t[Cr("0x25")]==n));return i+" ("+(e?o(e.label)[Cr("0x23")]():n)+")"}if(Cr("0x1f")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x16")][Cr("0x22")]("FontSize").normalizeSizeOptions(t[Cr("0x19")][Cr("0x22")](Cr("0x21"))).find((t=>t[Cr("0x25")]==n));return i+" ("+(e?o(e[Cr("0x15")])[Cr("0x23")]():n)+")"}return i+" ("+n+")"}const vr=["TrackChangesEditing","document","commandName","value","HeadingEditing","selection","registerDescriptionCallback","_descriptionFactory","from","heading.options","parent","markBlockFormat","filter","match","editor","plugins","formatBlock","config","ELEMENT_HEADING","find","getSelectedBlocks","format","get","afterInit","title","heading","*Change to:* %0","enableCommand","change","name","locale","paragraph","model","has","blockName"];var Rr,Sr;Rr=vr,Sr=133,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x1e")](){const t=this[Ir("0x15")],e=t[Ir("0x2")],n=t[Ir("0x18")][Ir("0x1d")](Ir("0x10"));if(!t[Ir("0x16")][Ir("0x5")](Ir("0xb")))return;const o=t[Ir("0x16")][Ir("0x1d")](Ir("0x7"));o[Ir("0x22")](Ir("0x20"),((e,n)=>{const s=n[Ir("0xa")],r=Array[Ir("0xf")](this[Ir("0x15")][Ir("0x4")][Ir("0x8")][Ir("0xc")][Ir("0x1b")]())[Ir("0x13")]((t=>{return e=t,n=s,(o=this[Ir("0x15")][Ir("0x4")].schema).checkChild(e[Ir("0x11")],n)&&!o.isObject(e)&&e[Ir("0x1")]!=n;var e,n,o}));t[Ir("0x4")][Ir("0x0")]((()=>{for(const t of r)o[Ir("0x12")](t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0x6")},fs(t))}))}));for(const t of n)Ir("0x3")!=t[Ir("0x4")]&&o[Ir("0xe")].registerElementLabel(t[Ir("0x4")],(e=>{const n=Nr(t[Ir("0x4")]);return null!==n?s(e,n):r(e,t[Ir("0x1f")])}));function s(t,n){return Yo(e,Ir("0x19"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o._descriptionFactory[Ir("0xd")]((t=>{const{type:o,data:i}=t;if(Ir("0x17")==o&&i&&Ir("0x20")==i[Ir("0x9")]){const t=i.commandParams[0][Ir("0xa")],o=Nr(t);if(null!==o)return{type:Ir("0x1c"),content:Yo(e,Ir("0x21"),s(1,o))};const x=n[Ir("0x1a")]((e=>e[Ir("0x4")]===t))[Ir("0x1f")];return{type:Ir("0x1c"),content:Yo(e,Ir("0x21"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x14")](/^heading(\d+)$/);return e?e[1]:null}const wr=["selection","enableCommand","formatInline","afterInit","title","getAttribute","value","model","*Set highlight:* %0","find","isCollapsed","createRange","TrackChangesEditing","toLowerCase","registerDescriptionCallback","getFirstPosition","push","_descriptionFactory","*Remove highlight*","highlight","plugins","backward","commandParams","change","getRanges","format","has","item","editor","HighlightEditing","get"];var Mr,Or;Mr=wr,Or=375,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x0")](){const t=this[Fr("0x19")];if(!t[Fr("0x11")][Fr("0x17")](Fr("0x1a")))return;const e=t[Fr("0x11")][Fr("0x1b")](Fr("0x9"));e[Fr("0x1d")]("highlight",((n,o={})=>{const s=t[Fr("0x4")].document[Fr("0x1c")],r=s[Fr("0x2")]("highlight");let i=o[Fr("0x3")],x=[];if(s[Fr("0x7")]){const e=s[Fr("0xc")]();if(!s.hasAttribute(Fr("0x10")))return void n(o);{const n=t=>t[Fr("0x18")][Fr("0x2")](Fr("0x10"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x12")}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x4")][Fr("0x8")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x15")]())i?x[Fr("0xd")](e):x[Fr("0xd")](...ms("highlight",e,t[Fr("0x4")]));t.model[Fr("0x14")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Fr("0x10"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0xe")][Fr("0xb")]((e=>{const{type:o,data:s}=e;if(Fr("0x1e")==o&&s&&Fr("0x10")==s.commandName){const e=n.t,o=s[Fr("0x13")][0][Fr("0x3")];if(o){const s=t.config.get("highlight.options")[Fr("0x6")]((t=>t[Fr("0x4")]==o)),r=e(s[Fr("0x1")])[Fr("0xa")]();return{type:"format",content:Yo(n,Fr("0x5"),r),color:{value:s.color,title:s.title}}}return{type:Fr("0x16"),content:Yo(n,Fr("0xf"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["TrackChangesEditing","afterInit","ck-horizontal-line","ELEMENT_HORIZONTAL_LINE","locale","has","for","createContainerElement","elementToStructure","enableCommand","plugins","horizontalLine","showSuggestionHighlights","dataDowncast","_descriptionFactory","HorizontalLineEditing","get","insert","high","createEmptyElement","createPositionAt"];var Br,jr;Br=Dr,jr=447,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x10")](){const t=this.editor;if(!t[Ur("0x4")][Ur("0x14")](Ur("0x9")))return;t[Ur("0x4")][Ur("0xa")](Ur("0xf"))[Ur("0x3")](Ur("0x5"));const e=t[Ur("0x4")][Ur("0xa")](Ur("0xf")),n=t[Ur("0x13")];e[Ur("0x8")].registerElementLabel(Ur("0x5"),(t=>Yo(n,Ur("0x12"),t))),t.conversion[Ur("0x0")](Ur("0x7"))[Ur("0x2")]({model:Ur("0x5"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x6")])return null;const o=e[Ur("0x1")]("div"),s=e[Ur("0xd")]("hr");return e.addClass(Ur("0x11"),o),e[Ur("0xb")](e[Ur("0xe")](o,0),s),o},converterPriority:Ur("0xc")})}}const Hr=["getCustomProperty","has","locale","get","value","registerElementLabel","htmlEmbed","model","editing","selection","rawHtmlApi","plugins","markBlockFormat","document","rawHtml","getAttribute","change","ELEMENT_HTML_EMBED","registerDescriptionCallback","TrackChangesEditing","view","commandName","_descriptionFactory","enableCommand","afterInit","element","getSelectedElement"];var Wr,zr;Wr=Hr,zr=205,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x8")](){const t=this.editor;if(!t.plugins[Vr("0xc")]("HtmlEmbed"))return;const e=t[Vr("0x16")][Vr("0xe")](Vr("0x3")),n=t[Vr("0xd")],o=t[Vr("0x13")][Vr("0x4")].document[Vr("0x14")];e[Vr("0x6")][Vr("0x10")](Vr("0x19"),(t=>Yo(n,Vr("0x1"),t))),t[Vr("0x16")][Vr("0xe")](Vr("0x3"))[Vr("0x7")](Vr("0x11"),((n,s)=>{const r=t[Vr("0x12")],i=r[Vr("0x18")][Vr("0x14")];r[Vr("0x0")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x9"),Vr("0x19"))?t[Vr("0xa")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x1a")](Vr("0xf"))||"";void 0!==s&&s!==r&&(e[Vr("0x17")](t,{commandName:Vr("0x11"),commandParams:[s]}),o[Vr("0xa")]()[Vr("0xb")](Vr("0x15")).cancel())}))})),e[Vr("0x6")][Vr("0x2")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vr("0x5")]){const t=Yo(n,Vr("0x1"));return{type:"format",content:Yo(n,"*Change %0 content*",t)}}}))}}const Xr=["toLowerCase","differ","title","type","value","hasAttribute","resizeImage","detach","deletion","ImageStyleEditing","getAttribute","backward","newRange","ImageInlineEditing","commandName","caption","accept","chain","length","createRangeOn","ImageResize","alt","get","markInsertion","registerDescriptionCallback","commandParams","TrackChangesEditing","locale","commands","imageCaption","getSuggestions","end","imageStylePreApply","isInlineImage","Users","refresh","imageTypeInline","getCaptionFromImageModelElement","fromPosition","isBefore","getSuggestion","start","getSuggestionCallback","getClosestSelectedImageElement","markBlockFormat","width","discard","schema","filter","isOwn","uploadImage","imageStylePostApply","markInlineFormat","ImageEditing","Inline image to block image","_descriptionFactory","selection","insertImage","suggestion","imageBlock","imageStyle","ImageUploadEditing","isInContent","convertInlineImageToBlock","_suggestionFactory","toPrevious","imageTextAlternative","has","subType","head","isEqual","change","format","document","_findSuggestions","getChangedMarkers","model","side","shouldConvertImageType","author","editor","*Remove image text alternative*","hasSuggestion","previous","_splitMarkerName","findIndex","getNearestSelectionRange","ImageBlockEditing","removeObject","next","discardSuggestion","from","enableCommand","formatInline","createRange","normalizedStyles","ELEMENT_IMAGE","registerCustomCallback","formatBlock","join","*Reset image width*","isBlockImage","newValue","toggleImageCaption","getFirstRange","registerElementLabel","convertBlockImageToInline","isCollapsed","insertion","plugins","forEach","element","*Format:* %0","imageInline","getContainedElement"];var qr,$r;qr=Xr,$r=227,function(t){for(;--t;)qr.push(qr.shift())}(++$r);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x53")];if(!t[Jr("0x70")][Jr("0x46")](Jr("0x38")))return;const n=t[Jr("0x70")][Jr("0x19")](Jr("0x1d")),o=t.plugins[Jr("0x19")]("ImageUtils"),s={},r=t[Jr("0x1e")];if(n.enableCommand(Jr("0x3c")),n[Jr("0x3a")][Jr("0x6c")](Jr("0x3e"),(t=>Yo(r,Jr("0x63"),t))),n._descriptionFactory[Jr("0x6c")](Jr("0x1"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x3a")][Jr("0x6c")]("caption",(()=>Yo(r,"ELEMENT_CAPTION"))),t[Jr("0x70")][Jr("0x46")](Jr("0x40"))&&n[Jr("0x5f")](Jr("0x35")),t[Jr("0x70")][Jr("0x46")](Jr("0x5a"))&&t[Jr("0x70")][Jr("0x46")](Jr("0x10"))&&(n[Jr("0x5f")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x2e")](t[Jr("0x4f")][Jr("0x4c")][Jr("0x3b")]);t[Jr("0x4f")].change((()=>{n[Jr("0x2f")](r,{commandName:Jr("0x27"),commandParams:[s]},[],Jr("0x6d"))}))})),n[Jr("0x5f")]("imageTypeBlock",((e,s)=>{t[Jr("0x4f")][Jr("0x4a")]((r=>{let x=o[Jr("0x2e")](t[Jr("0x4f")][Jr("0x4c")].selection),a=r[Jr("0x16")](x);const c=i.LivePosition.fromPosition(a[Jr("0x2c")],Jr("0x44")),l=i.LivePosition[Jr("0x29")](a[Jr("0x22")],"toNext");n.forceDefaultExecution((()=>e(s))),x=o[Jr("0x2e")](t[Jr("0x4f")][Jr("0x4c")][Jr("0x3b")]),a=r[Jr("0x16")](x);const u=r[Jr("0x61")](c,l);c[Jr("0xa")](),l[Jr("0xa")](),n[Jr("0x2f")](x,{commandName:Jr("0x27"),commandParams:[]},[],"convertInlineImageToBlock"),u[Jr("0x2c")].isBefore(a[Jr("0x2c")])&&n.markInsertion(r.createRange(u[Jr("0x2c")],a[Jr("0x2c")]),"convertInlineImageToBlock"),a.end[Jr("0x2a")](u.end)&&n.markInsertion(r[Jr("0x61")](a[Jr("0x22")],u[Jr("0x22")]),"convertInlineImageToBlock")}))})),n[Jr("0x43")][Jr("0x64")]("formatBlock","convertInlineImageToBlock","join",(()=>{})),n[Jr("0x43")][Jr("0x64")](Jr("0x65"),Jr("0x42"),Jr("0x13"),(()=>{})),n[Jr("0x43")][Jr("0x64")](Jr("0x65"),"convertInlineImageToBlock","discard",n._suggestionFactory.getSuggestionCallback(Jr("0x65"),"",Jr("0x13"))),n[Jr("0x43")][Jr("0x64")](Jr("0x6f"),Jr("0x42"),Jr("0x66"),(()=>{})),n[Jr("0x43")][Jr("0x64")](Jr("0x6f"),Jr("0x42"),Jr("0x31"),(([e])=>{const o=n[Jr("0x43")][Jr("0x2d")]("insertion","",Jr("0x31"));let s=e.start,r=e[Jr("0x22")];const i=t.model[Jr("0x32")].getNearestSelectionRange(s,Jr("0xe")),x=t[Jr("0x4f")].schema[Jr("0x59")](r,"forward");i[Jr("0x6e")]&&(s=i.start),x[Jr("0x6e")]&&(r=x[Jr("0x22")]),o([t.model.createRange(s,r)])})),n[Jr("0x43")][Jr("0x64")]("formatBlock","convertInlineImageToBlock",Jr("0x14"),c),n[Jr("0x43")].registerCustomCallback(Jr("0x6f"),Jr("0x42"),Jr("0x14"),c)),t[Jr("0x70")][Jr("0x46")]("ImageCaptionEditing")&&(n[Jr("0x5f")](Jr("0x6a"),((e,s)=>{const r=t[Jr("0x70")][Jr("0x19")]("ImageCaptionUtils");let i=o[Jr("0x2e")](t[Jr("0x4f")][Jr("0x4c")].selection),x=r[Jr("0x28")](i);t[Jr("0x4f")][Jr("0x4a")]((()=>{if(x)return void n.markDeletion(t[Jr("0x4f")].createRangeOn(x));const a=o[Jr("0x68")](i);e(s),i=o[Jr("0x2e")](t[Jr("0x4f")].document[Jr("0x3b")]),x=r[Jr("0x28")](i),n[Jr("0x1a")](t[Jr("0x4f")][Jr("0x16")](x),a?null:Jr("0x20"))}))})),n._suggestionFactory[Jr("0x64")](Jr("0x6f"),"imageCaption",Jr("0x14"),c)),t[Jr("0x70")].has("ImageStyleEditing")){n[Jr("0x5f")]("imageStyle",((s,r)=>{const i=t.plugins[Jr("0x19")](Jr("0x25")).me,x=t[Jr("0x1f")].get(Jr("0x3f"));let a=o.getClosestSelectedImageElement(t[Jr("0x4f")][Jr("0x4c")][Jr("0x3b")]),c=t[Jr("0x4f")].createRangeOn(a),l=x[Jr("0x7")];if(l==r.value)return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x4f")][Jr("0x4a")]((()=>{if(n[Jr("0x21")]()[Jr("0x33")]((t=>t[Jr("0x41")]&&i==t[Jr("0x52")]&&(Jr("0x65")==t[Jr("0x6")]||Jr("0x60")==t[Jr("0x6")])&&("imageStylePreApply"==t[Jr("0x47")]||Jr("0x36")==t.subType)&&t[Jr("0x6b")]()[Jr("0x49")](c)))[Jr("0x71")]((t=>n[Jr("0x5d")](t[Jr("0x48")]))),a=o[Jr("0x2e")](t.model[Jr("0x4c")][Jr("0x3b")]),c=t[Jr("0x4f")][Jr("0x16")](a),x[Jr("0x26")](),t[Jr("0x1f")][Jr("0x19")](Jr("0x27")).refresh(),t.commands[Jr("0x19")]("imageTypeBlock")[Jr("0x26")](),l=x[Jr("0x7")],l!=r.value)return o[Jr("0x24")](a)&&x[Jr("0x51")](r[Jr("0x7")],a)?(s(r),a=o[Jr("0x2e")](t.model[Jr("0x4c")][Jr("0x3b")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x23"))):void(o[Jr("0x68")](a)?n[Jr("0x2f")](a,u,[],"imageStylePostApply"):n[Jr("0x37")](c,u,Jr("0x36")))}))}));for(const e of t[Jr("0x70")].get(Jr("0xc"))[Jr("0x62")])s[e.name]=e[Jr("0x5")][Jr("0x3")]();n[Jr("0x43")][Jr("0x64")](Jr("0x65"),Jr("0x23"),"join",(()=>{})),n[Jr("0x43")][Jr("0x64")]("formatBlock",Jr("0x36"),Jr("0x66"),(()=>{})),n[Jr("0x43")].registerCustomCallback(Jr("0x60"),Jr("0x36"),Jr("0x66"),(()=>{})),n[Jr("0x43")][Jr("0x64")](Jr("0x65"),Jr("0x23"),"accept",(()=>{})),n._suggestionFactory[Jr("0x64")](Jr("0x65"),Jr("0x23"),"discard",((t,e)=>{n[Jr("0x43")][Jr("0x2d")]("formatBlock","","accept")(t,{commandName:e[Jr("0x11")],commandParams:e.commandReversedParams})})),n[Jr("0x43")].registerCustomCallback(Jr("0x65"),"imageStylePreApply",Jr("0x14"),c)}const x=[{type:Jr("0x65"),subType:Jr("0x23")},{type:Jr("0x6f"),subType:Jr("0x20")},{type:"formatBlock",subType:Jr("0x42")},{type:"insertion",subType:Jr("0x42")}];function a(t,e){const s=x[Jr("0x58")]((({type:e,subType:n})=>t[Jr("0x6")]==e&&t.subType==n)),r=x[Jr("0x58")]((({type:t,subType:n})=>e[Jr("0x6")]==t&&e[Jr("0x47")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x6b")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x4d")](i,Jr("0x6f")).filter((({suggestion:t,meta:e})=>e[Jr("0x34")]&&Jr("0x42")==t[Jr("0x47")]));if(t[Jr("0x15")]>1&&a.end[Jr("0x49")](i.start))return!0;if(1==t[Jr("0x15")]&&(i[Jr("0x2c")][Jr("0x49")](a[Jr("0x22")])||i[Jr("0x22")][Jr("0x49")](a[Jr("0x2c")])))return!0}if(3==s&&3==r&&i.start[Jr("0x2a")](a[Jr("0x2c")])){const t=i[Jr("0x22")].nodeAfter,e=a[Jr("0x2c")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x4f")].document.registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x5e")](t[Jr("0x4f")][Jr("0x4c")][Jr("0x4")][Jr("0x4e")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x57")](t);if(Jr("0x3d")==s&&n[Jr("0x55")](a)){if(Jr("0x65")==i&&(Jr("0x23")==x||Jr("0x36")==x)){const t=n[Jr("0x2b")](a);if(r.newRange){const s=t[Jr("0x6b")]()[Jr("0x2")]();if(o[Jr("0x68")](s))continue;n.discardSuggestion(t),e=!0}}if("insertion"==i&&Jr("0x20")==x&&!r[Jr("0xf")]){const t=n[Jr("0x2b")](a);t.next&&t.next.isInContent&&(n.discardSuggestion(t[Jr("0x5c")]),e=!0)}}}return e})),t.plugins[Jr("0x46")](Jr("0x17"))&&n.enableCommand(Jr("0x9"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x4f")].document.selection);r[Jr("0xd")](Jr("0x30"))!=s[Jr("0x30")]&&t[Jr("0x4f")][Jr("0x4a")]((()=>{n[Jr("0x2f")](r,{commandName:Jr("0x9"),commandParams:[s]})}))})),t[Jr("0x70")][Jr("0x46")]("ImageTextAlternativeEditing")&&n[Jr("0x5f")]("imageTextAlternative",((e,s)=>{const r=o[Jr("0x2e")](t[Jr("0x4f")][Jr("0x4c")][Jr("0x3b")]);(r[Jr("0x8")]("alt")?r[Jr("0xd")](Jr("0x18")):"")!=s[Jr("0x69")]&&t[Jr("0x4f")][Jr("0x4a")]((()=>{n[Jr("0x2f")](r,{commandName:Jr("0x45"),commandParams:[s]})}))})),n[Jr("0x3a")].registerDescriptionCallback((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x6")]==e&&t[Jr("0x47")]==n)))return t[Jr("0x56")]?{}:void 0})),n[Jr("0x3a")][Jr("0x1b")]((t=>{if(Jr("0x6f")==t[Jr("0x6")]||Jr("0xb")==t[Jr("0x6")]){const e=t[Jr("0x2")]();if(e&&e.is(Jr("0x72"),Jr("0x12")))return{type:"insertion"==t[Jr("0x6")]?"addObject":Jr("0x5b"),element:e,quantity:1}}})),n[Jr("0x3a")][Jr("0x1b")]((t=>Jr("0x65")==t[Jr("0x6")]&&Jr("0x42")==t[Jr("0x47")]?{type:Jr("0x4b"),content:Jr("0x39")}:"formatBlock"==t[Jr("0x6")]&&Jr("0x6d")==t[Jr("0x47")]?{type:Jr("0x4b"),content:"Block image to inline image"}:void 0)),n[Jr("0x3a")][Jr("0x1b")]((t=>{const{data:e}=t;if(e){if(Jr("0x3f")==e[Jr("0x11")]){const t=e.commandParams[0].value;return n=Jr("0x50")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x4b"),content:Yo(r,Jr("0x0"),n)}}if(Jr("0x45")==e[Jr("0x11")]){const t=e[Jr("0x1c")][0].newValue;return t?{type:Jr("0x4b"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x4b"),content:Yo(r,Jr("0x54"))}}if("resizeImage"==e[Jr("0x11")]){const t=e[Jr("0x1c")][0][Jr("0x30")];return t?{type:"format",content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x4b"),content:Yo(r,Jr("0x67"))}}}var n}))}}const Zr=["registerCustomCallback","TrackChangesEditing","get","*Format:* replace image URL","editor","Users","model","markBlockFormat","formatBlock","plugins","data","getSuggestionCallback","getAttribute","getContainedElement","replaceImageSource","change","ImageEditing","format","locale","document","_suggestionFactory","getSelectedElement","enableCommand","afterInit","src","handleSuggestionDescription","has","selection","author","commandName","discard","handleReplaceImageCommand","source","subType","_descriptionFactory"];var Yr,ti;Yr=Zr,ti=427,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x10")](){if(!this[ei("0x20")][ei("0x2")][ei("0x13")](ei("0x9")))return;const t=this[ei("0x20")].plugins[ei("0x1e")](ei("0x1d"));t[ei("0xf")]("replaceImageSource",((t,e)=>this[ei("0x18")](t,e))),t._suggestionFactory[ei("0x1c")](ei("0x1"),"replaceImageSource","accept",t[ei("0xd")][ei("0x4")](ei("0x1"),null,ei("0x17"))),t[ei("0xd")][ei("0x1c")]("formatBlock",ei("0x7"),ei("0x17"),t[ei("0xd")][ei("0x4")](ei("0x1"),null,"accept")),t[ei("0x1b")].registerDescriptionCallback((t=>this[ei("0x12")](t)))}[ei("0x18")](t,e){const n=this[ei("0x20")][ei("0x2")][ei("0x1e")](ei("0x1d")),o=this[ei("0x20")][ei("0x22")][ei("0xc")][ei("0x14")][ei("0xe")]();this.editor.model[ei("0x8")]((()=>{let s=o[ei("0x5")](ei("0x11"));const r=this[ei("0x20")][ei("0x2")].get(ei("0x21")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ei("0x6")]();if(ei("0x7")===t[ei("0x1a")]&&e===o){t[ei("0x15")]!==r&&t[ei("0x17")](),s=t[ei("0x3")].commandParams[0][ei("0x19")];break}}t(e),n[ei("0x0")](o,{commandName:ei("0x7"),commandParams:[{source:s}]},[],ei("0x7"))}))}[ei("0x12")](t){const{data:e}=t;if(e&&ei("0x7")===e[ei("0x16")]){const t=ei("0x1f");return{type:ei("0xa"),content:Yo(this.editor[ei("0xb")],t)}}}}const oi=["forEach","plugins","_trackChangesValueDuringImport","get","_handleImportedData","listenTo","editor","collaboration_features","_setSuggestionData","dataInsert","high","trackChanges","TrackChangesEditing","commands","value","Users","_trackChangesExecuted","bind","lowest","execute","importWord"];var si,ri;si=oi,ri=474,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0xb")]=!1,this[ii("0x4")]=!1}afterInit(){const t=this[ii("0xf")],e=t[ii("0x1")].get("importWord"),n=t[ii("0x1")][ii("0xc")]("trackChanges");e&&(e.on(ii("0x7"),((t,[,e])=>{this[ii("0xb")]=n[ii("0x2")],e[ii("0x10")].track_changes=!this[ii("0xb")]}),{priority:ii("0x13")}),this[ii("0xe")](e,ii("0x12"),this[ii("0xd")][ii("0x5")](this)),this.listenTo(e,ii("0x12"),(()=>{this[ii("0x4")]&&(n[ii("0x7")](),this[ii("0x4")]=!1)}),{priority:ii("0x6")}),t[ii("0xa")][ii("0xc")](ii("0x0")).enableCommand("importWord"))}_handleImportedData(t,e){const{suggestions:n}=e,o=this.editor[ii("0x1")][ii("0xc")](ii("0x14")),s=o[ii("0x2")];this[ii("0xb")]!==s&&(o[ii("0x7")](),this._trackChangesExecuted=!0),n&&n[ii("0x9")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xf")].plugins[ii("0xc")](ii("0x3")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x8")}}};this.editor.plugins[ii("0xc")](ii("0x0"))[ii("0x11")](s)}))}}const ai=["indentBlock","schema","indent","plugins","getSelectedBlocks","filter","getItemLabel","checkAttribute","*Indent:* %0","markBlockFormat","outdentBlock","commandName","editor","change","*Outdent:* %0","enableCommand","from","model","registerDescriptionCallback","has","getItems","format","_descriptionFactory","get","IndentBlock","afterInit"];var ci,li;ci=ai,li=417,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x18")](){const t=this.editor,e=t[ui("0x2")][ui("0x16")]("TrackChangesEditing");t.plugins[ui("0x12")]("IndentEditing")&&(e[ui("0xe")](ui("0x1")),e[ui("0xe")]("outdent"));const n=t.locale;if(t[ui("0x2")][ui("0x12")](ui("0x17"))){for(const n of[ui("0x19"),ui("0x9")])e[ui("0xe")](n,(()=>{const o=Array[ui("0xf")](this[ui("0xb")][ui("0x10")].document.selection[ui("0x3")]())[ui("0x4")]((t=>this[ui("0xb")].model[ui("0x0")][ui("0x6")](t,"blockIndent")));t[ui("0x10")][ui("0xc")]((()=>{for(const t of o)e[ui("0x8")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[ui("0x15")][ui("0x11")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[ui("0xa")]&&ui("0x9")!=o[ui("0xa")])return;const s=t[ui("0x13")]()[0],r=e._descriptionFactory[ui("0x5")](s);return ui("0x19")==o[ui("0xa")]?{type:ui("0x14"),content:Yo(n,ui("0x7"),r)}:ui("0x9")==o[ui("0xa")]?{type:ui("0x14"),content:Yo(n,ui("0xd"),r)}:void 0}))}}}var gi,mi,fi=["enableCommand","init","get","requires","TrackChangesEditing","editor","plugins"];gi=fi,mi=342,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[Vs.Input]}[hi("0x2")](){this[hi("0x6")][hi("0x0")][hi("0x3")](hi("0x5"))[hi("0x1")]("input")}}const bi=["change","*Set link:* %0","isCollapsed","selection","LinkEditing","locale","format","model","getAttribute","enableCommand","registerDescriptionCallback","hasAttribute","unlink","getRanges","link","markInlineFormat","linkHref","getFirstPosition","from","has","get","document","*Remove link*","editor","_descriptionFactory"];var Ei,_i;Ei=bi,_i=375,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this[Ti("0x17")];if(!t.plugins[Ti("0x13")](Ti("0x4")))return;const e=t.plugins[Ti("0x14")]("TrackChangesEditing");e[Ti("0x9")]("link",((n,o)=>{const s=t[Ti("0x7")][Ti("0x15")][Ti("0x3")];let r=[];if(s[Ti("0x2")]){if(!s[Ti("0xb")](Ti("0x10")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x11")](),Ti("0x10"),s[Ti("0x8")]("linkHref"),t[Ti("0x7")]);r=[e]}}else r=Array[Ti("0x12")](s[Ti("0xd")]());t[Ti("0x7")][Ti("0x0")]((()=>{for(const t of r)e[Ti("0xf")](t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x9")](Ti("0xc"),(()=>{const n=this[Ti("0x17")][Ti("0x7")],o=n[Ti("0x15")].selection;n[Ti("0x0")]((()=>{let n=[];n=o.isCollapsed?[(0,Vs.findAttributeRange)(o[Ti("0x11")](),Ti("0x10"),o[Ti("0x8")](Ti("0x10")),t[Ti("0x7")])]:ms("linkHref",o.getFirstRange(),t[Ti("0x7")]);for(const t of n)e[Ti("0xf")](t,{commandName:Ti("0xc"),commandParams:[]})}))})),e[Ti("0x18")][Ti("0xa")]((e=>{const{data:n}=e,o=t[Ti("0x5")];if(n){if(Ti("0xe")==n.commandName){const t=n.commandParams[0];return{type:"format",content:Yo(o,Ti("0x1"),'"'+t+'"')}}return Ti("0xc")==n.commandName?{type:Ti("0x6"),content:Yo(o,Ti("0x16"))}:void 0}}))}}const yi=["selection","commandParams","forceValue","ELEMENT_NUMBERED_LIST","*Change to:* %0","TrackChangesEditing","replace","createPositionAt","commandName","element","bulleted","slice","from","before","_descriptionFactory","todo","checkChild","todoListChecked","length","listIndent","*Uncheck item*","afterInit","commands","has","change","blockName","plugins","filter","numbered","bulletedList","name","nextSibling","editor","locale","TodoListEditing","parent","*Outdent:* %0","ELEMENT_LIST_ITEM","outdentList","listItem","isObject","indentList","ListEditing","document","todoList","get","push","paragraph","findIndex","format","numberedList","enableCommand","model","add","ELEMENT_BULLETED_LIST","getAttribute","_selectedElements","schema","listType","end","checkTodoList","previousSibling","value"];var ki,Ai;ki=yi,Ai=362,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x25")](){const t=this[vi("0x30")],e=t[vi("0x31")];if(!t[vi("0x2a")][vi("0x27")](vi("0x3a")))return;const n=t[vi("0x2a")][vi("0x3d")](vi("0x15")),o=t.plugins.has(vi("0x32"));function s(e){return()=>{const o=t[vi("0x5")][vi("0x3b")].selection,s=t[vi("0x26")][vi("0x3d")](e);if(s[vi("0xf")])return void t.execute(vi("0x0"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[vi("0x20")](e[vi("0x33")],vi("0x37"))&&!o[vi("0x38")](e);var e,o}));o=o[vi("0x2b")]((t=>!t.is(vi("0x19"),vi("0x37"))||t[vi("0x8")](vi("0xb"))!=e));const s=new Set;for(const t of o)t.is("element","listItem")?s[vi("0x6")](Si(t)):s[vi("0x6")](t);return Array[vi("0x1c")](s)}(o.getSelectedBlocks(),r,t[vi("0x5")][vi("0xa")]);t.model.change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0xf")]}],formatGroupId:vi("0x29")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x1c")](t);const n=e[vi("0x1")]((t=>vi("0x37")!=t[vi("0x2e")]));return n>-1&&(e=e[vi("0x1b")](0,n)),e}(t[vi("0x5")][vi("0x3b")][vi("0x10")].getSelectedBlocks()),s=t[vi("0x5")].createRange(t.model[vi("0x17")](o[0],vi("0x1d")),t[vi("0x5")][vi("0x17")](o[o[vi("0x22")]-1],vi("0xc")));t[vi("0x5")][vi("0x28")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x23")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x2f")];for(;t&&t[vi("0x8")](vi("0x23"))>n.getAttribute(vi("0x23"));)e.add(t),t=t[vi("0x2f")]}return Array[vi("0x1c")](e)}(o))}))}}n.enableCommand(vi("0x3"),s("numberedList")),n.enableCommand("bulletedList",s(vi("0x2d"))),o&&n[vi("0x4")](vi("0x3c"),s("todoList")),n[vi("0x4")]("indentList",r(vi("0x39"))),n[vi("0x4")](vi("0x36"),r(vi("0x36"))),o&&n[vi("0x4")](vi("0xd"),(()=>{const e=t[vi("0x26")].get(vi("0xd")),o=Array[vi("0x1c")](e[vi("0x9")]);o.filter((t=>t[vi("0x8")](vi("0x21"))!=e[vi("0xf")])),t[vi("0x5")][vi("0x28")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e.value}]})}))})),n._descriptionFactory.registerElementLabel(vi("0x37"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x1e")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x3")==n[vi("0x18")]||vi("0x2d")==n[vi("0x18")]||"todoList"==n[vi("0x18")])switch(n.commandName[vi("0x16")]("List","")){case vi("0x1a"):return o(Yo(e,vi("0x7")));case vi("0x2c"):return o(Yo(e,vi("0x13")));case vi("0x1f"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x39")==n[vi("0x18")])return{type:vi("0x2"),content:Yo(e,"*Indent:* %0",Yo(e,vi("0x35")))};if(vi("0x36")==n[vi("0x18")])return{type:vi("0x2"),content:Yo(e,vi("0x34"),Yo(e,vi("0x35")))};if(vi("0xd")==n.commandName)return n[vi("0x11")][0][vi("0x12")]?{type:"format",content:Yo(e,"*Check item*")}:{type:vi("0x2"),content:Yo(e,vi("0x24"))}}function o(t){return{type:"format",content:Yo(e,vi("0x14"),t)}}}))}}function Si(t){const e=t[vi("0x8")]("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0xe")].is("element","listItem");){const o=t[vi("0xe")][vi("0x8")](vi("0x23"));if(o==e)n=t[vi("0xe")];else if(o<e)break;t=t.previousSibling}return n}function Ii(t){const e=[];if(t.is(vi("0x19"),vi("0x37"))&&t[vi("0x8")](vi("0x23"))>0){let n=t.nextSibling;for(;n&&vi("0x37")==n[vi("0x2e")]&&n[vi("0x8")]("listIndent")==t.getAttribute(vi("0x23"));)e[vi("0x3e")](n),n=n[vi("0x2f")]}return e}const Li=["list.properties","backward","createPositionAt","numbered","_LIST_","listStart","change","parent","before","document","bind","toUpperCase","reversed","getAttribute","TrackChangesEditing","unshift","*Format:* set start index to %0","getLastPosition","*Format:* set order to regular","handleListReversedCommand","getSiblingNodes","handleDescriptions","listReversed","model","forward","styles","ListUtils","element","type","startIndex","_getSuggestionBlocks","selection","getFirstPosition","_getSuggestionBlocksForListStyle","editor","config","format","has","listStyle","from","afterInit","enableCommand","_getTranslationKeyForListStyle","listType","commandParams","flat","plugins","map","markMultiRangeBlockFormat","*Format:* set order to reversed","createRange","handleListStartCommand","listItem","commandName","handleListStyleCommand","length","get"];var Ni,wi;Ni=Li,wi=119,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x23")](){if(!this[Mi("0x1d")][Mi("0x29")][Mi("0x20")]("ListPropertiesEditing"))return;const t=this[Mi("0x1d")][Mi("0x1e")][Mi("0x33")](Mi("0x34")),e=this[Mi("0x1d")].plugins[Mi("0x33")](Mi("0x9"));t[Mi("0x14")]&&e[Mi("0x24")](Mi("0x21"),this[Mi("0x31")][Mi("0x5")](this)),t[Mi("0x7")]&&e[Mi("0x24")](Mi("0x11"),this.handleListReversedCommand.bind(this)),t[Mi("0x18")]&&e[Mi("0x24")](Mi("0x0"),this[Mi("0x2e")].bind(this)),e._descriptionFactory.registerDescriptionCallback(this[Mi("0x10")][Mi("0x5")](this))}handleListStyleCommand(t,e={}){const n=this[Mi("0x1d")][Mi("0x29")][Mi("0x33")]("TrackChangesEditing"),o=this[Mi("0x1c")]();this[Mi("0x1d")][Mi("0x12")][Mi("0x1")]((()=>{n[Mi("0x2b")](o,{commandName:Mi("0x21"),commandParams:[{type:e[Mi("0x17")]}],formatGroupId:Mi("0x21")})}))}[Mi("0xe")](t,e={}){const n=this[Mi("0x1d")][Mi("0x29")][Mi("0x33")](Mi("0x9")),o=this[Mi("0x19")]((t=>t.is(Mi("0x16"),Mi("0x2f"))&&"numbered"===t[Mi("0x8")](Mi("0x26"))));if(o[Mi("0x32")]<1)return;const s=o[Mi("0x2a")]((t=>this[Mi("0x1d")][Mi("0x12")].createRange(this[Mi("0x1d")][Mi("0x12")][Mi("0x36")](t,Mi("0x3")),this[Mi("0x1d")].model[Mi("0x36")](t,0))));this[Mi("0x1d")][Mi("0x12")][Mi("0x1")]((()=>{n[Mi("0x2b")](s,{commandName:Mi("0x11"),commandParams:[{reversed:e[Mi("0x7")]}],formatGroupId:Mi("0x11")})}))}handleListStartCommand(t,e={}){const n=this[Mi("0x1d")][Mi("0x29")][Mi("0x33")](Mi("0x9")),o=this[Mi("0x19")]((t=>t.is(Mi("0x16"),"listItem")&&Mi("0x37")===t[Mi("0x8")]("listType")));if(o[Mi("0x32")]<1)return;const s=o[Mi("0x2a")]((t=>this[Mi("0x1d")][Mi("0x12")][Mi("0x2d")](this[Mi("0x1d")][Mi("0x12")].createPositionAt(t,"before"),this.editor[Mi("0x12")][Mi("0x36")](t,0))));this[Mi("0x1d")].model[Mi("0x1")]((()=>{n[Mi("0x2b")](s,{commandName:Mi("0x0"),commandParams:[{startIndex:e[Mi("0x18")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){const e=this[Mi("0x1d")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x30")]){case Mi("0x21"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[Mi("0x25")](n[Mi("0x27")][0].type)))};break;case Mi("0x11"):o=n[Mi("0x27")][0].reversed?Mi("0x2c"):Mi("0xd"),s={type:Mi("0x1f"),content:Yo(e,o)};break;case"listStart":o=Mi("0xb"),s={type:Mi("0x1f"),content:Yo(e,o,n[Mi("0x27")][0][Mi("0x18")])}}return s}[Mi("0x1c")](){var t,e,n,o;const s=this[Mi("0x1d")].plugins[Mi("0x33")](Mi("0x15"));let r=Array[Mi("0x22")](this[Mi("0x1d")][Mi("0x12")][Mi("0x4")][Mi("0x1a")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x16"),Mi("0x2f")))&&r[Mi("0xa")](...s[Mi("0xf")](this[Mi("0x1d")][Mi("0x12")][Mi("0x4")][Mi("0x1a")][Mi("0x1b")](),"backward")),(null===(e=r[r[Mi("0x32")]-1])||void 0===e?void 0:e.is("element",Mi("0x2f")))&&r.push(...s[Mi("0xf")](this[Mi("0x1d")][Mi("0x12")].document[Mi("0x1a")][Mi("0xc")](),Mi("0x13"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x1d")].model[Mi("0x4")][Mi("0x1a")].getFirstPosition())||void 0===n?void 0:n[Mi("0x2")])||void 0===o?void 0:o.is(Mi("0x16"),Mi("0x2f")))&&(r=r.filter((t=>t.is("element",Mi("0x2f"))))),r}[Mi("0x19")](t){const e=this.editor[Mi("0x29")][Mi("0x33")](Mi("0x15"));let n=Array[Mi("0x22")](this[Mi("0x1d")][Mi("0x12")][Mi("0x4")][Mi("0x1a")].getSelectedBlocks()).filter(t)[Mi("0x2a")]((t=>{const n=this.editor[Mi("0x12")].createPositionAt(t,0);return[...e.getSiblingNodes(n,Mi("0x35")),...e[Mi("0xf")](n,Mi("0x13"))]}))[Mi("0x28")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[Mi("0x1d")].plugins[Mi("0x33")](Mi("0x15")).getListTypeFromListStyleType(t)[Mi("0x6")]()+Mi("0x38")+t.toUpperCase().replace(/-/g,"_")}}const Fi=["showSuggestionHighlights","conversion","MediaEmbedEditing","elementToElement","registerElementLabel","attribute:url:media","ELEMENT_MEDIA","afterInit","editor","TrackChangesEditing","_descriptionFactory","enableCommand","plugins","mediaEmbed","stop","high","data","createEmptyElement","media","get","downcastDispatcher"];var Pi,Di;Pi=Fi,Di=121,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xc")](){const t=this[Bi("0xd")];if(!t[Bi("0x11")].has(Bi("0x7")))return;const e=t[Bi("0x11")][Bi("0x3")](Bi("0xe")),n=t.locale;e[Bi("0x10")](Bi("0x12")),e[Bi("0xf")][Bi("0x9")](Bi("0x2"),(t=>Yo(n,Bi("0xb"),t))),t[Bi("0x6")].for("dataDowncast")[Bi("0x8")]({model:Bi("0x2"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0x1")]("div")},converterPriority:"high"}),t[Bi("0x0")][Bi("0x4")].on(Bi("0xa"),((t,e,n)=>{n.options[Bi("0x5")]&&t[Bi("0x13")]()}),{priority:Bi("0x14")})}}const Ui=["afterInit","MentionEditing","editor","plugins","mention","enableCommand","TrackChangesEditing","get"];var Gi,Hi;Gi=Ui,Hi=398,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x2")](){const t=this[Wi("0x4")];t[Wi("0x5")].has(Wi("0x3"))&&t[Wi("0x5")][Wi("0x1")](Wi("0x0"))[Wi("0x7")](Wi("0x6"))}}const Vi=["enableCommand","pageBreak","registerElementLabel","has","PageBreakEditing","get","ELEMENT_PAGE_BREAK","editor","TrackChangesEditing","_descriptionFactory","plugins"];var Ki,Xi;Ki=Vi,Xi=110,function(t){for(;--t;)Ki.push(Ki.shift())}(++Xi);const qi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[qi("0x7")];if(!t[qi("0xa")][qi("0x3")](qi("0x4")))return;t[qi("0xa")].get(qi("0x8"))[qi("0x0")](qi("0x1"));const e=t[qi("0xa")][qi("0x5")](qi("0x8")),n=t.locale;e[qi("0x9")][qi("0x2")](qi("0x1"),(t=>Yo(n,qi("0x6"),t)))}}const Ji=["type","getFirstRange","locale","ELEMENT_PARAGRAPH","afterInit","*Change to:* %0","model","has","plugins","activeMarkers","schema","ck-suggestion-marker-split","includes","selection","Paragraph","isBlock","checkChild","paragraph","registerElementLabel","from","addMarker:suggestion:insertion","enableCommand","document","isTouching","getSelectedBlocks","ck-suggestion-marker--active","$text","registerDescriptionCallback","end","addClass","nodeAfter","options","*Insert:* %0","insertion","consumable","name","bindElementToMarker","_descriptionFactory","createUIElement","downcastDispatcher","insert","data","get","highest","markerRange","mapper","parent","markBlockFormat","consume","commandName","markerName","toViewPosition","TrackChangesEditing","isLimit","writer","editor"];var Qi,Zi;Qi=Ji,Zi=257,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1b")](){const t=this[Yi("0x16")];if(!t.plugins[Yi("0x1e")](Yi("0x25")))return;const e=t[Yi("0x19")],n=t[Yi("0x1f")][Yi("0x9")](Yi("0x13"));n[Yi("0x4")][Yi("0x29")](Yi("0x28"),(t=>Yo(e,Yi("0x1a"),t))),n[Yi("0x2c")](Yi("0x28"),((e,o={})=>{const s=t[Yi("0x1d")][Yi("0x2d")],r=o[Yi("0x24")]||s.selection,i=Array[Yi("0x2a")](r[Yi("0x2f")]()).filter((t=>{return e=t,(n=this[Yi("0x16")][Yi("0x1d")][Yi("0x21")])[Yi("0x27")](e[Yi("0xd")],Yi("0x28"))&&!n.isObject(e)&&Yi("0x28")!=e[Yi("0x2")];var e,n}));t.model.change((()=>{for(const t of i)n[Yi("0xe")](t,{commandName:Yi("0x28"),commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0x4")][Yi("0x32")]((t=>{const{data:n}=t;if(n&&Yi("0x28")==n[Yi("0x10")])return{type:"format",content:Yo(e,Yi("0x1c"),Yo(e,Yi("0x1a")))}})),n[Yi("0x2c")]("insertParagraph"),t.editing[Yi("0x6")].on(Yi("0x2b"),ex(t),{priority:Yi("0xa")}),t[Yi("0x8")][Yi("0x6")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x36")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0xa")});const o=n[Yi("0x4")];o[Yi("0x32")]((n=>{if("insertion"!==n[Yi("0x17")])return;const{start:s,end:r}=n[Yi("0x18")]();if(!s.isTouching(r)||!s[Yi("0x35")])return;const i=t[Yi("0x1d")][Yi("0x21")],x=s[Yi("0x35")];return i[Yi("0x26")](x)&&!i[Yi("0x14")](x)&&i.checkChild(x,Yi("0x31"))?{type:Yi("0x0"),content:Yo(e,Yi("0x37"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1f")][Yi("0x9")](Yi("0x13")),i=o.markerRange.start,x=o[Yi("0xb")][Yi("0x33")],a=t[Yi("0x1d")][Yi("0x21")];if(!i[Yi("0x2e")](x)||!i[Yi("0x35")])return;const c=i[Yi("0x35")];if(a[Yi("0x26")](c)&&!a[Yi("0x14")](c)&&a[Yi("0x27")](c,Yi("0x31"))){if(!s[Yi("0x1")][Yi("0xf")](o.markerRange,n.name))return;const t=s[Yi("0x15")][Yi("0x5")]("span",{class:Yi("0x22")}),i=s.mapper[Yi("0x12")](x);e&&r[Yi("0x20")][Yi("0x23")](o[Yi("0x11")])&&s[Yi("0x15")][Yi("0x34")](Yi("0x30"),t),s[Yi("0x15")][Yi("0x7")](i,t),s[Yi("0xc")][Yi("0x3")](t,o.markerName)}}}const nx=["get","getAttributeProperties","RemoveFormatEditing","isFormatting","removeFormat","document","plugins","registerDescriptionCallback","enableCommand","isCollapsed","TrackChangesEditing","selection","commandName","markInlineFormat","schema","model","createRangeOn","has","getItems","_descriptionFactory","editor","getAttributes"];var ox,sx;ox=nx,sx=127,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this[rx("0x3")];if(!t[rx("0xb")][rx("0x0")](rx("0x7")))return;const e=t[rx("0xb")][rx("0x5")](rx("0xf"));e[rx("0xd")](rx("0x9"),(n=>{const o=t[rx("0x14")][rx("0xa")][rx("0x10")];o[rx("0xe")]?n():t[rx("0x14")].change((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o[rx("0x1")]())xx(n,t.model[rx("0x13")])&&e[rx("0x12")](t[rx("0x14")][rx("0x15")](n),{commandName:rx("0x9"),commandParams:[]})}))})),e[rx("0x2")][rx("0xc")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[rx("0x11")])return{type:"format",content:Yo(t.locale,"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0x4")]()){const t=e[rx("0x6")](n);if(t&&t[rx("0x8")])return!0}return!1}const ax=["afterInit","goToPreviousRestrictedEditingException","editor","RestrictedEditingModeEditing","enableCommand","get","trackChanges","plugins","discardSuggestion","discardSelectedSuggestions","acceptSelectedSuggestions","acceptSuggestion","TrackChangesEditing","acceptAllSuggestions","goToNextRestrictedEditingException"];var cx,lx;cx=ax,lx=185,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0xa")](){const t=this[ux("0xc")];if(!t[ux("0x2")].has("RestrictedEditingModeEditing"))return;const e=t[ux("0x2")][ux("0x0")](ux("0x7"));e[ux("0xe")](ux("0xb")),e.enableCommand(ux("0x9"));const n=t[ux("0x2")][ux("0x0")](ux("0xd"));n[ux("0xe")](ux("0x1")),n[ux("0xe")](ux("0x6")),n[ux("0xe")](ux("0x3")),n[ux("0xe")](ux("0x8")),n[ux("0xe")]("discardAllSuggestions"),n[ux("0xe")](ux("0x5")),n[ux("0xe")](ux("0x4"))}}const gx=["data","createUIElement","get","requires","writer","getItems","locale","addMarker:suggestion:insertion","TrackChangesEditing","markerName","insert","activeMarkers","enableCommand","softBreak","bindElementToMarker","addMarker:suggestion","toViewPosition","split","consumable","markerRange","_descriptionFactory","plugins","downcastDispatcher","includes","createPositionBefore","editing","editor","mapper","init","model","high","registerElementLabel","element","ck-suggestion-marker-","deletion","ck-suggestion-marker--active"];var mx,fx;mx=gx,fx=486,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x15")](){return[nr.ShiftEnter]}[hx("0xa")](){const t=this[hx("0x8")],e=t[hx("0x3")][hx("0x14")](hx("0x1a"));e[hx("0x1e")]("shiftEnter"),t[hx("0x7")][hx("0x4")].on(hx("0x19"),bx(t),{priority:"high"}),t[hx("0x7")].downcastDispatcher.on("addMarker:suggestion:deletion",bx(t),{priority:hx("0xc")}),t[hx("0x12")][hx("0x4")].on(hx("0x21"),((e,n,o)=>{o.options.showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x2")][hx("0xd")]("softBreak",(e=>Yo(t[hx("0x18")],"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x14")](hx("0x1a"));if(!s[hx("0x0")].test(o[hx("0x1")],n.name))return;const i=t[hx("0xb")];for(const t of o.markerRange[hx("0x17")]()){if(!t.is(hx("0xe"),hx("0x1f")))continue;const n=hx("0x10")==o[hx("0x1b")].split(":")[1]?"merge":hx("0x23"),x=s[hx("0x16")][hx("0x13")]("span",{class:hx("0xf")+n}),a=s[hx("0x9")][hx("0x22")](i[hx("0x6")](t));e&&r[hx("0x1d")][hx("0x5")](o.markerName)&&s[hx("0x16")].addClass(hx("0x11"),x),s[hx("0x16")][hx("0x1c")](a,x),s[hx("0x9")][hx("0x20")](x,o[hx("0x1b")])}}}const Ex=["forceValue","TrackChangesEditing","from","FORMAT_RESTRICTED_ENABLED","selection","document","get","afterInit","plugins","FORMAT_RESTRICTED_DISABLED","StandardEditingModeEditing","editor","enableCommand","isCollapsed","markInlineFormat","format","commandName","getRanges","commands","model"];var _x,Tx;_x=Ex,Tx=353,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0xe")](){const t=this[Cx("0x12")],e=t[Cx("0x6")],n=t.locale;if(!t[Cx("0xf")].has(Cx("0x11")))return;const o=t.plugins[Cx("0xd")](Cx("0x8")),s="restrictedEditingException",r=t[Cx("0x5")][Cx("0xd")](s);o[Cx("0x13")](s,((t,n={})=>{const i=e[Cx("0xc")][Cx("0xb")];if(i[Cx("0x0")])return void t(n);const x=void 0!==n.forceValue?n[Cx("0x7")]:!r.value;e.change((()=>{const t=Array[Cx("0x9")](i[Cx("0x4")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0x3")]==s)return e.commandParams[0][Cx("0x7")]?{type:Cx("0x2"),content:Yo(n,Cx("0xa"))}:{type:"format",content:Yo(n,Cx("0x10"))}}))}}const kx=["*Format:* %0","style.definitions","commandParams","getAttribute","markInlineFormat","isCollapsed","getAncestors","forceValue","commandName","config","style","getDefinitionsForView","isBlock","model","getSelectedBlocks","_getStyleDefinition","enableCommand","toLowerCase","StyleUtils","Style","format","change","name","registerDescriptionCallback","afterInit","value","_getRangesWithClasses","has","getItems","plugins","enabledStyles","_descriptionFactory","inline","TrackChangesEditing","styleName","includes","normalizeConfig","document","add","push","from","get","modelElements","getRanges"];var Ax,vx;Ax=kx,vx=261,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x1b")](){const t=this.editor;if(!t.plugins[Rx("0x1e")](Rx("0x16")))return;const e=t.commands[Rx("0x0")](Rx("0xd")),n=t.plugins[Rx("0x0")](Rx("0x24")),o=t.locale,s=t[Rx("0x20")][Rx("0x0")]("DataSchema"),r=t[Rx("0x20")].get(Rx("0x15"))[Rx("0x27")](s,t[Rx("0xc")][Rx("0x0")](Rx("0x4")));n[Rx("0x13")]("style",((o,{styleName:i})=>{const x=t[Rx("0x10")][Rx("0x28")].selection,a=this[Rx("0x12")](i,r);if(!a)return;if(!e[Rx("0x21")].includes(i))return;if(x[Rx("0x8")]&&!a[Rx("0xf")])return void o({styleName:i});const c=!e[Rx("0x1c")][Rx("0x26")](a[Rx("0x19")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x9")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[Rx("0x19")])){n[Rx("0x29")](o);break}}return n}(x[Rx("0x11")](),a[Rx("0x1")]);t[Rx("0x10")][Rx("0x18")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Rx("0xd"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0x2b")](x[Rx("0x2")]());if(!c){const n=Array[Rx("0x2b")](s[Rx("0xe")](a.element,!1))[0][Rx("0x10")],o=[];for(const s of e){const e=this[Rx("0x1d")](t[Rx("0x10")],s,a.classes,n);o.push(...e)}e=o}t[Rx("0x10")].change((()=>{for(const t of e)n[Rx("0x7")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x22")][Rx("0x1a")]((t=>{const{data:e}=t;if(e&&Rx("0xd")===e[Rx("0xb")])return e[Rx("0x5")][0][Rx("0xa")]?{type:Rx("0x17"),content:Yo(o,Rx("0x3"),e[Rx("0x5")][0][Rx("0x25")][Rx("0x14")]())}:{type:Rx("0x17"),content:Yo(o,"*Remove format:* %0",e[Rx("0x5")][0][Rx("0x25")][Rx("0x14")]())}}))}[Rx("0x12")](t,e){let n=e.block.find((e=>e[Rx("0x19")]===t));return n||(n=e[Rx("0x23")].find((e=>e[Rx("0x19")]===t))),n}[Rx("0x1d")](t,e,n,o){const s=[];for(const r of e[Rx("0x1f")]()){const e=r[Rx("0x6")](o);e&&n.every((t=>e.classes[Rx("0x26")](t)))&&s[Rx("0x2a")](t.createRangeOn(r))}return s}}const Ix=["end","TableUtils","MIN_SAFE_INTEGER","*Remove:* %0","$textProxy","insert","mapper","subType","commands","locale","model","afterInit","insertTableRowAbove","_descriptionFactory","isArray","setSelection","getSelectionAffectedTableCells","table","_setupColumnsRowsFixing","rootName","downcastDispatcher","insertion","tableRow","nodeAfter","insertTableRowBelow","differ","selection","execute","detach","tableCell","name","min","low","has","editor","get","getAttribute","maxColumn","getCellLocation","createRangeOn","data","classes","hasAttribute","from","selectTableColumn","element","max","change","colspan","deletion","getChildren","tableColumn","registerDescriptionCallback","createRangeIn","item","values","change:data","insertTable","showSuggestionHighlights","selectTableRow","span","ELEMENT_TABLE","some","_suggestionFactory","_tableSuggestions","MAX_SAFE_INTEGER","_getSuggestionCoords","getRanges","_splitMarkerName","markMultiRangeDeletion","startsWith","order","start","refresh","ELEMENT_TABLE_ROW_WITH_TEXT","enqueueChange","_acceptFormatSuggestionCallbackFactory","isIntersectingWithRange","ELEMENT_TABLE_ROW","last","includes","markMultiRangeInsertion","plugins","above","registerPostFixer","type","$graveyard","insertTableColumnLeft","insertTableColumnRight","minRow","isEqual","highest","findAncestor","TableEditing","removeTableRow","rowspan","getColumnIndexes","add","filter","TrackChangesEditing","length","first","fromRange","join","addRange","left","accept","oldRange","*Insert:* %0","addMarker:suggestion","removeClass","every","registerCustomCallback","getFirstRange","enableCommand","getItems","position","document","removeTableColumn","ELEMENT_TABLE_COLUMN","isTouching","root","toLowerCase","writer","ELEMENT_TABLE_WITH_TEXT","_getCoordsForCells","_tablePostFixingSubtypes","discard","push","createTableWalker","maxRow","getChangedMarkers","map","cell","createPositionAt","substr"];var Lx,Nx;Lx=Ix,Nx=389,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x9")]=[wx("0x29"),wx("0x46")],this[wx("0x53")]=new Set}[wx("0x1e")](){const t=this[wx("0x35")],e=t[wx("0x1d")][wx("0x0")].selection;if(!t.plugins[wx("0x34")](wx("0x70")))return;const n=t[wx("0x1c")],o=t[wx("0x65")][wx("0x36")](wx("0x76")),s=t[wx("0x65")][wx("0x36")]("TableUtils");o[wx("0x20")].registerElementLabel(wx("0x24"),(t=>Yo(n,wx("0x50"),t))),this[wx("0x25")](),o[wx("0x85")](wx("0x4c")),o.enableCommand(wx("0x4e")),o[wx("0x85")](wx("0x3f"));for(const n of[wx("0x1f"),wx("0x2b")]){const r=t[wx("0x1b")][wx("0x36")](n);o[wx("0x85")](n,(n=>{t[wx("0x1d")][wx("0x42")]((t=>{n();const i=wx("0x66")===r[wx("0x5a")],x=s.getSelectionAffectedTableCells(e),a=s.getRowIndexes(x),c=i?a[wx("0x78")]-1:a[wx("0x62")]+1,l=x[0][wx("0x6f")](wx("0x24")),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array[wx("0x3e")](u)[wx("0xf")]((e=>t[wx("0x3a")](e[wx("0x10")])));o[wx("0x64")](d,"tableRow")}))}))}for(const n of[wx("0x6a"),wx("0x6b")]){const r=t[wx("0x1b")][wx("0x36")](n);o.enableCommand(n,(n=>{t.model.change((t=>{n();const i=wx("0x7c")===r[wx("0x5a")],x=s[wx("0x23")](e),a=s[wx("0x73")](x),c=i?a.first-1:a[wx("0x62")]+1,l=x[0].findAncestor(wx("0x24")),u=s[wx("0xc")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[wx("0x3e")](u)[wx("0xf")]((e=>t.createRangeOn(e.cell)));o[wx("0x64")](d,wx("0x46"))}))}))}for(const n of["removeTableRow","removeTableColumn"]){const r=n.substr(11),i=r[wx("0x5")](),x=i[wx("0x12")](0,3)+"span",a=wx("0x24")+r,c=wx("0x32")+r,l=wx("0x41")+r;o.enableCommand(n,(()=>{t[wx("0x1d")][wx("0x42")]((t=>{const r=s[wx("0x23")](e),u=r[0].findAncestor("table");let d;if(wx("0x71")==n){const t=s.getRowIndexes(r);d={startRow:t[wx("0x78")],endRow:t[wx("0x62")],includeAllSlots:!0}}else{const t=s[wx("0x73")](r);d={startColumn:t[wx("0x78")],endColumn:t[wx("0x62")],includeAllSlots:!0}}const g=s[wx("0xc")](u,d),m=Array[wx("0x3e")](g)[wx("0xf")]((({cell:t})=>t)),f=Ox(m[wx("0x75")]((t=>t[wx("0x3d")](x)))),h=Ox(m[wx("0x75")]((t=>!t.hasAttribute(x)))).map((e=>t[wx("0x3a")](e))),p=o[wx("0x58")](h,a);if(p&&(wx("0x29")==p[wx("0x1a")]||wx("0x46")==p[wx("0x1a")])){const e=this[wx("0x55")](p);for(const n of f){const o=t[wx("0x3a")](n),r=s[wx("0x39")](n),a=n[wx("0x37")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[wx("0x7b")](o)}}}))}))}function r(n){const o=Array.from(e[wx("0x56")]())[wx("0xf")]((t=>i.LiveRange[wx("0x79")](t)));t[wx("0x1d")][wx("0x42")]((e=>{const s=e.batch;n=n.filter((t=>wx("0x69")!=t[wx("0x4")][wx("0x26")])),e.setSelection(n),t[wx("0x1b")][wx("0x36")](wx("0x71"))[wx("0x5c")](),t[wx("0x2e")](wx("0x71"),{forceDefaultExecution:!0}),t[wx("0x1d")].enqueueChange((()=>{t.model[wx("0x5e")](s,(t=>{const e=o[wx("0x75")]((t=>wx("0x69")!=t[wx("0x4")][wx("0x26")]));e[wx("0x77")]>0&&t[wx("0x22")](e);for(const t of o)t[wx("0x2f")]()}))}))}))}function a(n){t[wx("0x1d")][wx("0x42")]((o=>{const s=Array.from(e[wx("0x56")]())[wx("0xf")]((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r.push(e);for(const e of r)wx("0x69")!=e[wx("0x4")][wx("0x26")]&&(o[wx("0x22")](o[wx("0x11")](e,0)),t[wx("0x1b")][wx("0x36")](wx("0x1"))[wx("0x5c")](),t[wx("0x2e")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s[wx("0x75")]((t=>wx("0x69")!=t[wx("0x4")][wx("0x26")]));x[wx("0x77")]>0&&o.setSelection(x);for(const t of s)t.detach()}))}function c(t,e){return e[wx("0x82")]((e=>t[wx("0x51")]((t=>t[wx("0x13")][wx("0x6d")](e.start)||e.end[wx("0x6d")](t[wx("0x5b")])))))}function l(t,e){return t[wx("0x51")]((t=>e[wx("0x51")]((e=>t[wx("0x13")][wx("0x3")](e.start)))))}t[wx("0x3b")][wx("0x27")].on(wx("0x80"),((t,e,n)=>{if(!n.options[wx("0x4d")])return;const o=e[wx("0x49")];if(!o)return;const s=n[wx("0x19")].toViewElement(o);function r(t){return Array[wx("0x21")](t)?t:[t]}s&&wx("0x30")===o[wx("0x31")]&&(0,x.setHighlightHandling)(s,n[wx("0x6")],((t,e,n)=>n.addClass(r(e.classes),t)),((t,e,n)=>n[wx("0x81")](r(e[wx("0x3c")]),t)))}),{priority:wx("0x6e")}),o[wx("0x20")][wx("0x47")]((t=>{if(wx("0x28")!=t[wx("0x68")]&&wx("0x44")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(wx("0x40"),"table")){if(wx("0x28")==t[wx("0x68")]){const e=t[wx("0x86")]()[wx("0x75")]((t=>t.is(wx("0x17"))))[wx("0xf")]((t=>t.data));if(e.length)return{type:wx("0x28"),content:Yo(n,wx("0x7f"),Yo(n,wx("0x7"),'"'+e[wx("0x7a")](" ")+'"'))}}if("deletion"==t[wx("0x68")]){const e=t[wx("0x86")]()[wx("0x75")]((t=>t.is(wx("0x17"))))[wx("0xf")]((t=>t[wx("0x3b")]));if(e[wx("0x77")])return{type:wx("0x44"),content:Yo(n,wx("0x16"),Yo(n,wx("0x7"),'"'+e[wx("0x7a")](" ")+'"'))}}}})),o[wx("0x20")].registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t.getItems()[wx("0x75")]((t=>t.is(wx("0x17")))).map((t=>t.data)),o=this[wx("0x55")](t),s=o[wx("0xd")]-o[wx("0x6c")]+1;if(wx("0x28")==t.type)return e.length?{type:wx("0x28"),content:Yo(n,wx("0x7f"),Yo(n,wx("0x5d"),[s,'"'+e[wx("0x7a")](" ")+'"']))}:{type:wx("0x28"),content:Yo(n,wx("0x7f"),Yo(n,wx("0x61"),s))};if("deletion"==t[wx("0x68")])return e.length?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[wx("0x7a")](" ")+'"']))}:{type:wx("0x44"),content:Yo(n,wx("0x16"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(wx("0x46")==t[wx("0x1a")]){const e=t.getItems().filter((t=>t.is(wx("0x17"))))[wx("0xf")]((t=>t.data)),o=this[wx("0x55")](t),s=o[wx("0x38")]-o.minColumn+1;if(wx("0x28")==t[wx("0x68")])return e[wx("0x77")]?{type:wx("0x28"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[wx("0x7a")](" ")+'"']))}:{type:"insertion",content:Yo(n,wx("0x7f"),Yo(n,wx("0x2"),s))};if(wx("0x44")==t.type)return e.length?{type:wx("0x44"),content:Yo(n,wx("0x16"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[wx("0x7a")](" ")+'"']))}:{type:wx("0x44"),content:Yo(n,wx("0x16"),Yo(n,wx("0x2"),s))}}})),o[wx("0x52")].registerCustomCallback(wx("0x28"),"tableRow",wx("0xa"),r),o[wx("0x52")][wx("0x83")](wx("0x44"),wx("0x29"),wx("0x7d"),r),o[wx("0x52")][wx("0x83")](wx("0x28"),wx("0x46"),wx("0xa"),a),o._suggestionFactory[wx("0x83")](wx("0x44"),wx("0x46"),wx("0x7d"),a),o._suggestionFactory[wx("0x83")]("insertion","tableColumn",wx("0x7a"),c),o._suggestionFactory[wx("0x83")](wx("0x44"),wx("0x46"),wx("0x7a"),c),o[wx("0x52")][wx("0x83")](wx("0x28"),wx("0x29"),wx("0x7a"),l),o[wx("0x52")][wx("0x83")](wx("0x44"),"tableRow",wx("0x7a"),l)}[wx("0x5f")](){const t=this[wx("0x35")],e=t[wx("0x1d")].document[wx("0x2d")];return(n,o)=>{t[wx("0x1d")][wx("0x42")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][wx("0x13")].nodeBefore;x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=s[wx("0x48")](a);if(wx("0x69")==c[wx("0x4")][wx("0x26")])return;const l=Array[wx("0x3e")](e.getRanges())[wx("0xf")]((t=>i.LiveRange[wx("0x79")](t)));s[wx("0x22")](c),t[wx("0x1b")][wx("0x36")](r)[wx("0x5c")](),x[wx("0xb")]({forceDefaultExecution:!0}),t[wx("0x2e")](r,...x);const u=l[wx("0x75")]((t=>wx("0x69")!=t[wx("0x4")][wx("0x26")]));u[wx("0x77")]>0&&s[wx("0x22")](u);for(const t of l)t[wx("0x2f")]()}))}}[wx("0x8")](t){const e=this[wx("0x35")][wx("0x65")][wx("0x36")](wx("0x14"));let n=Number[wx("0x54")],o=Number.MIN_SAFE_INTEGER,s=Number[wx("0x54")],r=Number[wx("0x15")];for(const i of t){if(wx("0x69")==i[wx("0x4")][wx("0x26")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[wx("0x3d")](wx("0x72"))?i[wx("0x37")](wx("0x72"))-1:0,c=i[wx("0x3d")](wx("0x43"))?i[wx("0x37")](wx("0x43"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[wx("0x35")],e=t[wx("0x65")][wx("0x36")](wx("0x76")),n=t[wx("0x65")][wx("0x36")]("TableUtils");t.model.document.on(wx("0x4b"),(()=>{const n=Array[wx("0x3e")](t.model[wx("0x0")][wx("0x2c")][wx("0xe")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[wx("0x57")](t);if("suggestion"!=n)continue;if(null!=o[wx("0x7e")])continue;const i=e.getSuggestion(s);this[wx("0x9")][wx("0x63")](r)&&this[wx("0x53")][wx("0x74")](i)}}),{priority:wx("0x33")});const o=(t,e)=>{let o=!1;const s=e[wx("0x3a")](t),r=t[wx("0x6f")](wx("0x24")),i=n[wx("0x39")](t);for(const e of this[wx("0x53")]){const n=e[wx("0x1a")],x=n[wx("0x59")]("tablePaste"),a=n[wx("0x12")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+wx("0x4f"),u=wx("0x32")+a,d=wx("0x41")+a;if(!e.isInContent)continue;if(r!=e[wx("0x84")]()[wx("0x5b")].findAncestor(wx("0x24")))continue;if(e[wx("0x60")](s))continue;const g=t[wx("0x3d")](l)?t.getAttribute(l)-1:0,m=this._getSuggestionCoords(e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[wx("0x7b")](s),o=!0)}return o};t[wx("0x1d")][wx("0x0")][wx("0x67")]((e=>{let n=!1;for(const s of t.model[wx("0x0")][wx("0x2c")].getChanges())if(wx("0x18")==s.type)if(wx("0x29")==s[wx("0x31")])for(const t of s[wx("0x87")][wx("0x2a")][wx("0x45")]())n=n||o(t,e);else wx("0x30")==s.name&&(n=n||o(s[wx("0x87")][wx("0x2a")],e));return n}))}[wx("0x55")](t){return this[wx("0x8")](t.getRanges().map((t=>t.start[wx("0x2a")])))}}function Ox(t){return Array[wx("0x3e")](new Set(t)[wx("0x4a")]())}const Fx=["insertion","getSuggestions","TableUtils","getFirstPosition","length","mergeTableCells","forceDefaultExecution","has","isInContent","push","getAncestors","get","low","model","$graveyard","return","trackChanges","registerCustomCallback","find","stop","enableCommand","author","editor","TableEditing","document","containsRange","set:isEnabled","from","getRanges","format","_areSelectedCellsMergable","_isForcedDefaultExecutionBlock","createTableWalker","cell","change","_suggestionFactory","getSelectionAffectedTableCells","commandName","*Merge cells*","_tablePostFixingSubtypes","size","splitTableCellVertically","_descriptionFactory","rootName","add","accept","registerDescriptionCallback","requires","mergeTableCellLeft","*Split cell:* vertically","mergeTableCellRight","table","tableCell","refresh","plugins","setSelection","*Split cell:* horizontally","element","markMultiRangeBlockFormat","type","getCellLocation","mergeTableCellDown","selection","isEnabled","TrackChangesEditing","value","detach","fromRange","filter","createRangeOn","mergeTableCellUp","splitTableCellHorizontally","commands","markBlockFormat","map","_areMergableCells","execute","formatBlock","locale"];var Px,Dx;Px=Fx,Dx=402,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x28")](){return[Mx]}afterInit(){const t=this.editor,e=t.model[Bx("0x11")][Bx("0x37")],n=t[Bx("0x47")];if(!t[Bx("0x2f")][Bx("0x0")](Bx("0x10")))return;const o=t.plugins.get(Bx("0x39")),s=t[Bx("0x2f")][Bx("0x4")]("TableUtils"),r=t[Bx("0x2f")][Bx("0x4")](Mx);r[Bx("0x20")][Bx("0x2")](Bx("0x4d")),o.enableCommand(Bx("0x4d"),(()=>{const e=s[Bx("0x1d")](t[Bx("0x6")].document.selection);t.model[Bx("0x1b")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x4d"),commandParams:[]},[],Bx("0x4d"))}))})),t[Bx("0x41")].get(Bx("0x4d")).on(Bx("0x45"),((e,n)=>{t[Bx("0x41")][Bx("0x4")](Bx("0x9"))[Bx("0x3a")]&&(n[Bx("0x4c")]>0&&n[n[Bx("0x4c")]-1]&&n[n[Bx("0x4c")]-1][Bx("0x4e")]||o[Bx("0x18")]||this._areSelectedCellsMergable()||e[Bx("0xc")]())}),{priority:"highest"});for(const e of["mergeTableCellUp",Bx("0x2b"),Bx("0x36"),Bx("0x29")]){const n=t[Bx("0x41")][Bx("0x4")](e);o[Bx("0xd")](e,(()=>{const e=t[Bx("0x6")][Bx("0x11")][Bx("0x37")][Bx("0x4b")]()[Bx("0x3")]()[Bx("0xb")]((t=>t.is(Bx("0x32"),Bx("0x2d")))),s=n[Bx("0x3a")];t[Bx("0x6")][Bx("0x1b")]((()=>{o[Bx("0x33")]([e,s],{commandName:Bx("0x4d"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x22"),Bx("0x40")]){const n=t[Bx("0x41")][Bx("0x4")](e);o.enableCommand(e,(()=>{const r=s[Bx("0x1d")](t.model[Bx("0x11")][Bx("0x37")])[0],i=r.findAncestor(Bx("0x2c")),{column:x,row:a}=s[Bx("0x35")](r);let c=[];if("horizontally"==n.direction){const t=s[Bx("0x19")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x14")](t)[Bx("0x43")]((t=>t[Bx("0x1a")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x14")](t)[Bx("0x43")]((t=>t[Bx("0x1a")]))}t[Bx("0x6")][Bx("0x1b")]((t=>{o[Bx("0x42")](t[Bx("0x3e")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x23")][Bx("0x27")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e.commandName?{type:"format",content:Yo(n,Bx("0x1f"))}:void 0})),o[Bx("0x23")][Bx("0x27")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x1e")]?{type:"format",content:Yo(n,Bx("0x2a"))}:Bx("0x40")==e.commandName?{type:Bx("0x16"),content:Yo(n,Bx("0x31"))}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[Bx("0x3f"),Bx("0x2b"),Bx("0x36"),Bx("0x29")])o._suggestionFactory[Bx("0xa")](Bx("0x46"),t,Bx("0x26"),x);for(const t of[Bx("0x22"),"splitTableCellHorizontally"])o[Bx("0x1c")][Bx("0xa")](Bx("0x46"),t,"accept",x);o[Bx("0x1c")].registerCustomCallback(Bx("0x46"),Bx("0x4d"),"accept",(n=>{t[Bx("0x6")].change((o=>{const s=Array[Bx("0x14")](e[Bx("0x15")]())[Bx("0x43")]((t=>i.LiveRange[Bx("0x3c")](t)));o[Bx("0x30")](n),t.commands.get("mergeTableCells")[Bx("0x2e")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const r=s[Bx("0x3d")]((t=>Bx("0x7")!=t.root[Bx("0x24")]));r[Bx("0x4c")]>0&&o[Bx("0x30")](r);for(const t of s)t[Bx("0x3b")]()}))}));for(const e of[Bx("0x3f"),Bx("0x36"),Bx("0x29"),"mergeTableCellRight"]){const n=t[Bx("0x41")][Bx("0x4")](e);n.on(Bx("0x13"),((e,o,s)=>{if(s){const o=t.model[Bx("0x11")].selection[Bx("0x4b")]().getAncestors()[Bx("0xb")]((t=>t.is(Bx("0x32"),"tableCell")));this._areMergableCells(n.value,o)||(e[Bx("0x8")]=!1,e.stop())}}),{priority:Bx("0x5")})}}[Bx("0x17")](){const t=this.editor[Bx("0x41")][Bx("0x4")](Bx("0x4d")),e=this.editor[Bx("0x2f")][Bx("0x4")](Bx("0x4a"));if(!t[Bx("0x38")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0xf")].model[Bx("0x11")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x44")](t,e))return!1;return!0}[Bx("0x44")](t,e){const n=this[Bx("0xf")][Bx("0x2f")][Bx("0x4")]("TrackChangesEditing"),o=this[Bx("0xf")][Bx("0x6")][Bx("0x3e")](t),s=this[Bx("0xf")][Bx("0x6")][Bx("0x3e")](e),r=new Set,i=new Set;for(const t of n[Bx("0x49")]())if((Bx("0x48")==t[Bx("0x34")]||"deletion"==t[Bx("0x34")]||"mergeTableCells"==t.subType)&&t[Bx("0x1")])for(const e of t.getRanges())e.containsRange(o,!0)&&r.add(t[Bx("0x34")]+":"+t[Bx("0xe")].id),e[Bx("0x12")](s,!0)&&i[Bx("0x25")](t[Bx("0x34")]+":"+t.author.id);if(r[Bx("0x21")]!=i[Bx("0x21")])return!1;for(const t of r)if(!i[Bx("0x0")](t))return!1;return!0}}const Ux=["locale","showSuggestionHighlights","ck-suggestion-marker-","forceValue","document","registerCustomCallback","formatBlock","createPositionBefore","selection","TableUtils","FORMAT_REGULAR_COLUMN","from","index","first","createPositionAfter","_suggestionFactory","writer","stop","nodeAfter","data","editor","requires","afterInit","unbindElementFromMarkerName","commands","consumable","TableEditing","end","downcastDispatcher","has","plugins","createTableWalker","headingRows","includes","*Format:* %0","isBefore","ck-suggestion-marker--active","setTableColumnHeader","cell","addMarker:suggestion","markerName","childCount","markBlockFormat","getChild","_descriptionFactory","data-suggestion","removeClass","mapper","item","get","headingColumns","_splitMarkerName","highest","findAncestor","FORMAT_HEADER_ROW","markerNameToElements","accept","commandName","activeMarkers","editing","getCellLocation","removeAttribute","createRange","format","table","consume","enableCommand","options","markerRange","value","TrackChangesEditing","last","commandParams","getAttribute","setTableRowHeader","parent","getSelectionAffectedTableCells","toViewElement","setAttribute","registerDescriptionCallback","model","change"];var Gx,Hx;Gx=Ux,Hx=285,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get[Wx("0x40")](){return[Mx]}[Wx("0x41")](){const t=this[Wx("0x3f")];if(!t.plugins[Wx("0x48")](Wx("0x45")))return;const e=t[Wx("0x2b")],n=t[Wx("0x49")][Wx("0xa")](Wx("0x1f")),o=t[Wx("0x49")][Wx("0xa")](Wx("0x34")),s=t[Wx("0x49")][Wx("0xa")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Wx("0xc")](r[Wx("0x1")]),c=n.getSuggestion(a);if(!c[Wx("0x3e")]||Wx("0x50")!=c[Wx("0x3e")].commandName)return;if(r[Wx("0x9")])return void s[Wx("0x3c")]();if(!i[Wx("0x44")][Wx("0x1a")](r[Wx("0x1d")],s.name))return;const l=r[Wx("0x1d")].start[Wx("0x3d")],u=r.markerRange[Wx("0x46")].nodeBefore,d=l[Wx("0x24")][Wx("0x24")],{column:g}=o[Wx("0x15")](l),{column:m}=o[Wx("0x15")](u);for(let s=g;s<=m;s++){const c=o[Wx("0x4a")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Wx("0x51")],c=i[Wx("0x8")][Wx("0x26")](s);i[Wx("0x3b")].addClass(Wx("0x2d")+x,c),e&&i[Wx("0x3b")][Wx("0x27")](Wx("0x6"),a,c),i[Wx("0x8")].bindElementToMarker(c,r[Wx("0x1")]),t&&(n[Wx("0x13")][Wx("0x4c")](r.markerName)?i.writer.addClass(Wx("0x4f"),c):i[Wx("0x3b")][Wx("0x7")](Wx("0x4f"),c))}}}}n[Wx("0x1b")](Wx("0x23"),((e,s)=>{const r=o[Wx("0x25")](t[Wx("0x29")][Wx("0x2f")][Wx("0x33")]),i=o.getRowIndexes(r),x=r[0][Wx("0xe")](Wx("0x19")),a=x[Wx("0x22")](Wx("0x4b"))||0,c=s&&null!==s[Wx("0x2e")]?s[Wx("0x2e")]:!t[Wx("0x43")].get(Wx("0x23"))[Wx("0x1e")],l=c?i[Wx("0x20")]:i[Wx("0x38")],u=x[Wx("0x4")](l);let d;if(c){const e=x[Wx("0x4")](a);if(u[Wx("0x37")]<e.index)return;d=t[Wx("0x29")][Wx("0x17")](t.model[Wx("0x32")](e[Wx("0x4")](0)),t[Wx("0x29")][Wx("0x39")](u[Wx("0x4")](u[Wx("0x2")]-1)))}else{const e=x.getChild(a-1);if(!e)return;d=t.model[Wx("0x17")](t[Wx("0x29")][Wx("0x32")](u.getChild(0)),t[Wx("0x29")][Wx("0x39")](e[Wx("0x4")](e[Wx("0x2")]-1)))}t[Wx("0x29")][Wx("0x2a")]((()=>{n.markBlockFormat(d,{commandName:Wx("0x23"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[Wx("0x1b")](Wx("0x50"),((e,o)=>{const s=t[Wx("0x49")][Wx("0xa")]("TableUtils"),r=s.getSelectionAffectedTableCells(t.model.document.selection),i=s.getColumnIndexes(r),x=r[0].findAncestor(Wx("0x19")),a=x.getAttribute(Wx("0xb"))||0,c=o&&null!==o[Wx("0x2e")]?o[Wx("0x2e")]:!t[Wx("0x43")][Wx("0xa")](Wx("0x50"))[Wx("0x1e")];let l;const u=x[Wx("0x4")](0),d=c?i.last:i[Wx("0x38")],g=s[Wx("0x4a")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[Wx("0x36")](g)[0][Wx("0x51")];if(c){const e=u[Wx("0x4")](a);if(m[Wx("0x4e")](e))return;l=t.model[Wx("0x17")](t[Wx("0x29")].createPositionBefore(e),t[Wx("0x29")][Wx("0x39")](m))}else{const e=u[Wx("0x4")](a-1);if(!e)return;l=t[Wx("0x29")].createRange(t[Wx("0x29")][Wx("0x32")](m),t[Wx("0x29")][Wx("0x39")](e))}t[Wx("0x29")].change((()=>{n[Wx("0x3")](l,{commandName:Wx("0x50"),commandParams:[{forceValue:c}]},[],Wx("0x50"))}))})),t.editing[Wx("0x47")].on(Wx("0x0"),r(),{priority:Wx("0xd")}),t[Wx("0x3e")][Wx("0x47")].on(Wx("0x0"),((t,e,n)=>{n[Wx("0x1c")][Wx("0x2c")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Wx("0xd")}),t[Wx("0x14")][Wx("0x47")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[Wx("0xc")](e[Wx("0x1")]),i=n.getSuggestion(r);if(!i[Wx("0x3e")]||"setTableColumnHeader"!=i[Wx("0x3e")][Wx("0x12")])return;const x=o.mapper[Wx("0x10")](e[Wx("0x1")]);if(x)for(const t of x)o[Wx("0x3b")][Wx("0x7")](Wx("0x2d")+s,t),o[Wx("0x3b")][Wx("0x7")](Wx("0x4f"),t),o[Wx("0x3b")][Wx("0x16")](Wx("0x6"),t),o[Wx("0x8")][Wx("0x42")](t,e.markerName)}),{priority:Wx("0xd")}),n[Wx("0x5")][Wx("0x28")]((t=>{const{data:n}=t;if(n){if(Wx("0x23")==n.commandName){const t=n[Wx("0x21")][0][Wx("0x2e")];return o(Yo(e,t?Wx("0xf"):"FORMAT_REGULAR_ROW"))}if(Wx("0x50")==n[Wx("0x12")]){const t=n[Wx("0x21")][0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_COLUMN":Wx("0x35")))}}function o(t){return{type:Wx("0x18"),content:Yo(e,Wx("0x4d"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[Wx("0x3a")][Wx("0x30")]("formatBlock",Wx("0x23"),Wx("0x11"),i),n[Wx("0x3a")][Wx("0x30")](Wx("0x31"),Wx("0x50"),"accept",i)}}const Vx=["nodeAfter","getSelectionAffectedTableCells","stop","for","TableClipboard","removeRows","suggestion","suggestionLoaded","getItems","getRanges","first","ck-suggestion-marker--active","createPositionBefore","content","remove","_splitMarkerName","redo","value","$graveyard","rowInsertionIndexes","tableCellBackgroundColor","getShiftedBy","getRowIndexes","endRow","options","suggestion-td","markMultiRangeDeletion","tableCellSuggestion","getSuggestion","plugins","discard","markerName","locale","attributes","createTableWalker","suggestionUnloaded","add","suggestion:formatBlock:tablePasteCell","getContainedElement","getRows","find","deletion","conversion","removeColumns","register","endColumn","removeMarker","createRange","createRangeOn","afterInit","high","TableUtils","commands","fill","_getCoordsForCells","getChangedMarkers","rowInsertionRanges","elementToElement","findAncestor","insertionRanges","oldRange","tableCellBorderStyle","get","nextSibling","table","reduce","isEmpty","ck-suggestion-marker","setAttributes","isEqual","tableCellPadding","newRange","getAttributes","insertRows","insertion","set","column","clipboardOutput","tablePasteChainId","columnInsertionIndexes","getColumns","formatBlock","getTableIfOnlyTableInContent","tablePasteColumn","getChildren","paragraph","deletionRanges","getChanges","fromEntries","createElement","getAllAdjacentSuggestions","registerPostFixer","trackChanges","markMultiRangeBlockFormat","markerToHighlight","ck-suggestion-marker-insertion","insertContent","batch","includes","editor","listenTo","end","previous","insertColumns","registerDescriptionCallback","_descriptionFactory","accept","filter","start","map","model","updateMarker","row","document","markMultiRangeInsertion","createRangeIn","rootName","differ","move","_createdBatches","low","from","tableCellBorderColor","subType","_replaceTableSlotCell","getSuggestions","insert","getChild","view","return","startsWith","Users","getSuggestionCallback","getColumnIndexes","tablePasteRow","_tablePostFixingSubtypes","markers","markerAttributes","push","previousSibling","_isForcedDefaultExecutionBlock","tablePaste","some","position","registerCustomCallback","dataDowncast","cells","tableCellVerticalAlignment","has","columns","forceDefaultExecution","type","getRange","change","TrackChangesEditing","element","isInContent","_suggestionFactory","editingDowncast","tablePasteCell","editing","tableCell","cell","length","join","author","name"];var Kx,Xx;Kx=Vx,Xx=123,function(t){for(;--t;)Kx.push(Kx.shift())}(++Xx);const qx=function(t,e){return Vx[t-=0]},$x=["tableCellBorderWidth",qx("0xa6"),qx("0x69"),"tableCellHorizontalAlignment",qx("0x18"),qx("0x40"),qx("0x72")],Jx=Object[qx("0x84")]($x[qx("0x99")]((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[Mx]}[qx("0x5d")](){const t=this[qx("0x8f")];if(!t[qx("0x49")].has(qx("0x30")))return;const n=t.plugins[qx("0x6a")](qx("0x1f")),o=t[qx("0x49")][qx("0x6a")](qx("0x5f")),s=t.plugins[qx("0x6a")](Mx),r=t[qx("0x49")][qx("0x6a")](qx("0x30"));s[qx("0xc")][qx("0xf")](qx("0xb"),"tablePasteColumn"),t.model.schema[qx("0x58")](qx("0x47"),{allowIn:qx("0x26"),allowContentOf:"tableCell",isLimit:!0}),t[qx("0x56")][qx("0x65")]({model:qx("0x47"),view:qx("0x45")});let i=null;t[qx("0x9a")].on(qx("0x8c"),((s,x)=>{const[a,c]=x,l=x[x[qx("0x28")]-1];l&&l[qx("0x1b")]||n[qx("0x11")]||this[qx("0x8f")][qx("0x60")].get(qx("0x88"))[qx("0x3d")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[qx("0x7e")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[qx("0x2d")](n[qx("0x9d")].selection);if(!i.length)return!1;const x=i[0][qx("0x66")](qx("0x6c")),a=o[qx("0x42")](i),c=o[qx("0xa")](i),l={startRow:a[qx("0x36")],endRow:a.last,startColumn:c[qx("0x36")],endColumn:c.last};return 1==i.length&&(l[qx("0x43")]+=o[qx("0x53")](r)-1,l[qx("0x59")]+=o[qx("0x7c")](r)-1),Yx(x,l,o)}(a,c,t[qx("0x9a")],o,r)&&(s[qx("0x2e")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[qx("0x9a")][qx("0x1e")]((()=>{t.model[qx("0x8c")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[qx("0x28")]&&n[qx("0x9e")](s,qx("0xb"),{tablePasteChainId:o}),r[qx("0x28")]&&n[qx("0x9e")](r,qx("0x7f"),{tablePasteChainId:o}),a[qx("0x28")]&&n[qx("0x9e")](a,qx("0x12"),{tablePasteChainId:o,skipNestingCheck:!0}),c[qx("0x28")]&&n[qx("0x46")](c,qx("0x12"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[qx("0x89")](l[qx("0x99")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[qx("0x9a")][qx("0x5c")](o),i=e[qx("0x54")]((t=>t[qx("0x1d")]()[qx("0x71")](r)));i&&n[qx("0xf")]([i[qx("0x2b")],s])}n.length&&u.setAttribute("markerAttributes",Object[qx("0x84")](n))}i=null})))}),{priority:e.priorities.high+10}),t[qx("0x49")].get(qx("0x30")).on(qx("0x1"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[qx("0x2e")]();const r=n[qx("0x27")],x=o,a=Zx(r),c=Zx(x);t[qx("0x6")]=r;let l=null,u=null;if(c||a)if(a&&!c){s.remove(r[qx("0x4")](0));for(const t of Array[qx("0xa5")](x[qx("0x80")]()))s[qx("0x3")](t,r,"end");const t=i[qx("0x3f")][qx("0x8e")](n[qx("0x9c")]),e=i[qx("0x7b")][qx("0x8e")](n[qx("0x78")]);t||e||(l=s[qx("0x9f")](r))}else c&&!a&&(u=s[qx("0x9f")](r));else{const t=s[qx("0x85")](qx("0x47")),e=s.createElement(qx("0x47"));s.wrap(s[qx("0x9f")](r),e),s[qx("0x3")](t,r,0);for(const e of Array.from(x[qx("0x80")]()))s[qx("0x3")](e,t,qx("0x91"));l=s[qx("0x5c")](t),u=s[qx("0x5c")](e)}const d=Array[qx("0xa5")](x[qx("0x74")]()).filter((([t])=>$x.includes(t)));i[qx("0x17")][qx("0xf")]({element:r,attributes:d[qx("0x28")]?Object[qx("0x84")](d):null}),l&&i[qx("0x67")][qx("0xf")](l),u&&i[qx("0x82")][qx("0xf")](u)}),{priority:qx("0x5e")}),o.on(qx("0x93"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[qx("0x1a")]||1;i.columnInsertionIndexes=new Array(a)[qx("0x61")](x)[qx("0x99")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x4e")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges[qx("0xf")](t[qx("0x9a")][qx("0x5c")](e))}),{priority:qx("0xa4")}),o.on(qx("0x75"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[qx("0x3f")]=new Array(a).fill(x)[qx("0x99")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x4e")](s,{startRow:x,endRow:x+a-1}))i[qx("0x64")][qx("0xf")](t[qx("0x9a")][qx("0x5c")](e))}),{priority:"low"}),n[qx("0x95")][qx("0x94")]((e=>{if(e[qx("0x0")]&&e[qx("0x0")].startsWith("tablePaste"))return e[qx("0x92")]?{}:{type:qx("0x76"),content:Yo(t[qx("0x4c")],"*Replace table cells*")}}));const x=()=>{};for(const t of[qx("0x12"),qx("0x7f"),qx("0xb"),"tablePasteCell"])n[qx("0x22")].registerCustomCallback("insertion",t,qx("0x29"),x),n[qx("0x22")].registerCustomCallback(qx("0x55"),t,qx("0x29"),x);n[qx("0x22")].registerCustomCallback(qx("0x7d"),qx("0x24"),qx("0x4a"),x),n._suggestionFactory[qx("0x15")](qx("0x7d"),qx("0x24"),qx("0x96"),((e,n,o)=>{const s=e.map((t=>t[qx("0x52")]()))[qx("0x97")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[qx("0x17")])e&&r[qx("0x77")](t,e);else if(o&&o[qx("0xe")])for(const[e,n]of Object.entries(o[qx("0xe")])){const o=t[qx("0x9a")][qx("0xd")][qx("0x6a")](e),s=o?o.getRange()[qx("0x52")]():null;s&&r[qx("0x77")](s,n)}t[qx("0x9a")][qx("0x1e")]((t=>{for(const[e,n]of r)t[qx("0x70")]({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[qx("0x15")](e,qx("0x12"),o,((s,r,i)=>{t[qx("0x9a")][qx("0x1e")]((t=>{const x=[];for(const t of s){const e=t[qx("0x98")][qx("0x2c")];e.is(qx("0x20"),"tableCellSuggestion")&&x[qx("0xf")](e)}n[qx("0x22")][qx("0x9")](e,null,o)(s,r,i);for(const e of x)qx("0x3e")!=e.root[qx("0xa0")]&&t.unwrap(e)}))}))};a(qx("0x76"),"accept"),a(qx("0x76"),"discard"),a(qx("0x55"),qx("0x96")),a("deletion","discard"),n[qx("0x22")][qx("0x15")]("insertion",qx("0xb"),qx("0x4a"),(t=>{const e=t.map((t=>t[qx("0x52")]())),n=e[0].findAncestor(qx("0x6c")),{minRow:r,maxRow:i}=s[qx("0x62")](e);o[qx("0x31")](n,{at:r,rows:i-r+1})})),n._suggestionFactory.registerCustomCallback("insertion","tablePasteColumn","discard",(t=>{const e=t.map((t=>t[qx("0x52")]())),n=e[0][qx("0x66")](qx("0x6c")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[qx("0x57")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[qx("0x0")]||!e[qx("0x0")][qx("0x7")]("tablePaste"))return;const o=e[qx("0x4d")][qx("0x7a")],s=n[qx("0x2")]()[qx("0x97")]((t=>t[qx("0x21")]&&t[qx("0x4d")]&&t[qx("0x4d")].tablePasteChainId==o));s[qx("0x28")]&&e[qx("0x86")]()[qx("0x28")]!=s.length&&s[qx("0x6d")](((t,e)=>(t.next=e,e[qx("0x92")]=t,e)))};function l(t,e=!0){const{id:o}=n[qx("0x3b")](t.markerName),s=[qx("0x6f"),qx("0x8b")],r=n.activeMarkers[qx("0x8e")](t[qx("0x4b")]);return r&&s.push(qx("0x37")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(qx("0x33"),c,{priority:qx("0x5e")}),n.on(qx("0x4f"),c,{priority:qx("0x5e")}),t.model[qx("0x9d")].registerPostFixer((()=>{let e=!1;const o=Array[qx("0xa5")](t.model[qx("0x9d")].differ[qx("0x63")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[qx("0x3b")](s);if("suggestion"!=o||qx("0x55")!=i||r[qx("0x68")])continue;if(!n.hasSuggestion(x))continue;const a=n[qx("0x48")](x)[qx("0x35")](),c=t.plugins[qx("0x6a")]("Users").me;for(const t of n[qx("0x2")]())if(t[qx("0x21")]&&t[qx("0x2a")]==c&&qx("0x7d")==t[qx("0x1c")]&&qx("0x24")==t[qx("0x0")]&&t[qx("0x35")]().every((t=>a[qx("0x13")]((e=>e.containsRange(t,!0))))))for(const n of t.getAllAdjacentSuggestions())n.isInContent&&(n[qx("0x4a")](),e=!0)}return e})),t[qx("0x9a")].document.registerPostFixer((e=>{const o=t.commands[qx("0x6a")](qx("0x3c"));if(!o||!o[qx("0xa3")][qx("0x19")](e[qx("0x8d")]))return!1;let s=!1;const r=t[qx("0x49")].get(qx("0x8")).me,i=t.model[qx("0x9d")].differ[qx("0x83")](),x=Array.from(t[qx("0x9a")][qx("0x9d")][qx("0xa1")].getChangedMarkers())[qx("0x97")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[qx("0x3b")](t);return qx("0x32")==o&&qx("0x12")==s&&i==r.id&&!e[qx("0x68")]}));for(const t of i){if(qx("0x3")!=t[qx("0x1c")]||qx("0x47")!=t.name||1!=t[qx("0x28")])continue;const n=e[qx("0x5b")](t[qx("0x14")],t[qx("0x14")][qx("0x41")](1));if(!x.find((({data:t})=>t[qx("0x73")][qx("0x71")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[qx("0x9b")](t,{range:n}),s=!0;break}}return s})),t.model[qx("0x9d")][qx("0x87")]((e=>{let o=!1;const s=t.plugins[qx("0x6a")]("Users").me,r=n[qx("0x2")]()[qx("0x97")]((t=>t[qx("0x21")]&&t[qx("0x2a")]==s)),i=new Set,x=new Set;for(const t of r)if(qx("0x12")==t[qx("0x0")])for(const e of t.getMarkers()){const n=e[qx("0x1d")]().getContainedElement();if(n)if(n.is(qx("0x20"),qx("0x47"))&&Zx(n)){t[qx("0x5a")](e[qx("0x2b")]),i.add(n),o=!0;const s=n[qx("0x6b")],r=n[qx("0x10")],a=s&&s.is(qx("0x20"),"tableCellSuggestion"),c=r&&r.is(qx("0x20"),qx("0x47"));a&&!i.has(s)&&x.add(s),c&&!i[qx("0x19")](r)&&x[qx("0x50")](r)}else n.is("element",qx("0x81"))&&n[qx("0x6e")]&&(t[qx("0x5a")](e[qx("0x2b")]),o=!0)}else if(qx("0x24")==t[qx("0x0")]){if(!t[qx("0x4d")]||!t[qx("0x4d")][qx("0x7a")])continue;const e=t.attributes[qx("0xe")];if(e&&Object.keys(e)[qx("0x28")])continue;const n=t.attributes.tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e.subType&&e[qx("0x0")][qx("0x7")]("tablePaste")){if(!e.attributes[qx("0x7a")]){i=!1;break}if(e.id!=t.id&&e[qx("0x4d")].tablePasteChainId==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[qx("0x3a")](t);for(const t of x)e.unwrap(t);return o})),t[qx("0x56")][qx("0x2f")](qx("0x23")).markerToHighlight({model:qx("0x51"),view:(t,e)=>l(t),converterPriority:qx("0x5e")}),t[qx("0x56")][qx("0x2f")](qx("0x16"))[qx("0x8a")]({model:qx("0x51"),view:(t,e)=>e[qx("0x44")].showSuggestionHighlights?l(t,!1):null,converterPriority:qx("0x5e")});const u=t[qx("0x25")][qx("0x5")];this[qx("0x90")](u.document,qx("0x79"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e[qx("0x39")])[qx("0x34")]())t.is(qx("0x20"),qx("0x45"))&&n[qx("0xf")](t);u[qx("0x1e")]((t=>{for(const e of n)t[qx("0xa2")](t[qx("0x9f")](e),t[qx("0x38")](e)),t[qx("0x3a")](e)}))}))}}function Zx(t){if(t[qx("0x6e")])return!0;const e=t[qx("0x4")](0);return e.is(qx("0x20"),qx("0x81"))&&e[qx("0x6e")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[qx("0x4e")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["accept","getSelectedElement","TrackChangesEditing","formatGroupId","tableWidth","Users","registerDescriptionCallback","table","get","getAttribute","format","*Format:* resize table","getSuggestions","plugins","TableColumnResizeEditing","getSuggestionCallback","subType","model","enableCommand","formatBlock","data","selection","author","bind","handleSuggestionDescription","afterInit","handleResizeTableWidthCommand","_suggestionFactory","document","resizeTable","getContainedElement","has","columnWidths","editor","discard","registerCustomCallback","resizeTableWidth","locale"];var ea,na;ea=ta,na=296,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x21")](){if(!this[oa("0x3")][oa("0x15")][oa("0x1")](oa("0x16")))return;const t=this[oa("0x3")].plugins[oa("0x10")](oa("0xa"));t[oa("0x1a")]("resizeTableWidth",this.handleResizeTableWidthCommand[oa("0x1f")](this)),t[oa("0x1a")]("resizeColumnWidths",this[oa("0x22")][oa("0x1f")](this)),t[oa("0x23")][oa("0x5")](oa("0x1b"),oa("0x25"),oa("0x8"),t[oa("0x23")].getSuggestionCallback(oa("0x1b"),null,oa("0x4"))),t[oa("0x23")][oa("0x5")](oa("0x1b"),"resizeTable",oa("0x4"),t._suggestionFactory[oa("0x17")]("formatBlock",null,"accept")),t._descriptionFactory[oa("0xe")](this.handleSuggestionDescription[oa("0x1f")](this))}[oa("0x22")](t,e){const n=this[oa("0x3")][oa("0x15")].get(oa("0xa")),o=this[oa("0x3")][oa("0x15")][oa("0x10")](oa("0x16")),s=e[oa("0xf")]||this.editor.model[oa("0x24")][oa("0x1d")][oa("0x9")]();this[oa("0x3")][oa("0x19")].change((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0x11")]("tableWidth")||null;const a=e[oa("0xc")]||x,c=e[oa("0x2")]||i,l=this.editor[oa("0x15")][oa("0x10")](oa("0xd")).me;for(const t of n[oa("0x14")]()){const e=t[oa("0x0")]();if(oa("0x25")===t[oa("0x18")]&&e===s){t[oa("0x1e")]!==l&&t[oa("0x4")]();const e=t[oa("0x1c")].commandParams;x=e[0][oa("0xc")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x6"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x25")},[],oa("0x25"))}))}[oa("0x20")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0xb")]){const t=oa("0x13");return{type:oa("0x12"),content:Yo(this.editor[oa("0x7")],t)}}}}const ra=["Template","insertTemplate","plugins","afterInit","has","enableCommand","editor"];var ia,xa;ia=ra,xa=356,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this[aa("0x0")];t[aa("0x3")][aa("0x5")](aa("0x1"))&&t[aa("0x3")].get("TrackChangesEditing")[aa("0x6")](aa("0x2"))}}const la=["plugins","afterInit","get","ELEMENT_TABLE_OF_CONTENTS","enableCommand","editor","commands","registerElementLabel","_descriptionFactory","TrackChangesEditing","insertTableOfContents","tableOfContents"];var ua,da;ua=la,da=462,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x7")](){const t=this[ga("0xb")];if(!t[ga("0x0")][ga("0x8")](ga("0x4")))return;t[ga("0x6")].get(ga("0x3"))[ga("0xa")](ga("0x4"));const e=t.plugins.get(ga("0x3")),n=t.locale;e[ga("0x2")][ga("0x1")](ga("0x5"),(t=>Yo(n,ga("0x9"),t)))}}const fa=["createRange","schema","locale","registerPostFixer","editor","getNearestSelectionRange","newRange","removeMarker","element","get","end","start","Title","suggestion","isEqual","forward","isCollapsed","document","model","getChangedMarkers","nodeBefore","plugins","title-content","afterInit","from","_descriptionFactory","registerElementLabel","updateMarker","TrackChangesEditing","differ"];var ha,pa;ha=fa,pa=191,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xc")](){const t=this[ba("0x17")];if(!t[ba("0xa")].has(ba("0x1")))return;const e=t[ba("0xa")][ba("0x1c")](ba("0x11"));e[ba("0xe")][ba("0xf")](ba("0xb"),(()=>Yo(t[ba("0x15")],"ELEMENT_TITLE"))),t[ba("0x7")][ba("0x6")][ba("0x16")]((n=>{let o=!1;const s=Array[ba("0xd")](t[ba("0x7")][ba("0x6")][ba("0x12")][ba("0x8")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x2")!==s||!i[ba("0x19")])continue;const x=i.newRange,a=x.end[ba("0x9")];if(!a||!a.is(ba("0x1b"),ba("0xb")))continue;if(!x[ba("0x0")].isTouching(x[ba("0x1d")]))continue;const c=t.model[ba("0x14")][ba("0x18")](x[ba("0x1d")],ba("0x4"));if(c&&c[ba("0x5")]){const t=n[ba("0x13")](x[ba("0x0")],c.start);t[ba("0x3")](x)||(n[ba("0x10")](r,{range:t}),o=!0)}o||(n[ba("0x1a")](r),o=!0)}return o}))}}const _a=["undo","has","editor","UndoEditing","enableCommand","plugins","afterInit","redo"];var Ta,Ca;Ta=_a,Ca=440,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x6")](){const t=this[ya("0x2")],e=t[ya("0x5")].get("TrackChangesEditing");t[ya("0x5")][ya("0x1")](ya("0x3"))&&(e[ya("0x4")](ya("0x0")),e[ya("0x4")](ya("0x7")))}}const Aa=["plugins","toggleTableCaption","afterInit","editor","enableCommand","has","TrackChangesEditing"];var va,Ra;va=Aa,Ra=256,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get requires(){return[Mx]}[Sa("0x5")](){const t=this[Sa("0x6")];t[Sa("0x3")][Sa("0x1")]("TableCaptionEditing")&&t[Sa("0x3")].get(Sa("0x2"))[Sa("0x0")](Sa("0x4"))}}const La=["handleListStartCommand","commandName","push","isListItemBlock","change","getListTypeFromListStyleType","_getSuggestionBlocks","document","*Format:* set order to regular","numbered","markMultiRangeBlockFormat","commandParams","_descriptionFactory","*Format:* set start index to %0","locale","listReversed","reversed","from","ELEMENT_","replace","expandListBlocksToCompleteList","length","list.properties","styles","has","getSelectedBlocks","plugins","enableCommand","startIndex","filter","toUpperCase","DocumentListUtils","listStart","model","listStyle","selection","_LIST_","editor","get","listType","format","bind","DocumentListPropertiesUtils","*Change to:* %0","TrackChangesEditing","_getTranslationKeyForListStyle","handleListReversedCommand","handleListStyleCommand","getAttribute","_getSuggestionBlocksForListStyle","handleDescriptions"];var Na,wa;Na=La,wa=419,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this.editor[Ma("0xf")][Ma("0xd")]("DocumentListPropertiesEditing"))return;const t=this[Ma("0x1a")].config[Ma("0x1b")](Ma("0xb")),e=this[Ma("0x1a")][Ma("0xf")][Ma("0x1b")](Ma("0x21"));t[Ma("0xc")]&&e[Ma("0x10")](Ma("0x17"),this[Ma("0x24")][Ma("0x1e")](this)),t[Ma("0x5")]&&e.enableCommand("listReversed",this[Ma("0x23")][Ma("0x1e")](this)),t[Ma("0x11")]&&e[Ma("0x10")](Ma("0x15"),this[Ma("0x28")].bind(this)),e[Ma("0x1")].registerDescriptionCallback(this[Ma("0x27")].bind(this))}[Ma("0x24")](t,e={}){const n=this[Ma("0x1a")][Ma("0xf")][Ma("0x1b")]("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this[Ma("0x1a")][Ma("0x16")][Ma("0x2c")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ma("0x17"),commandParams:[{type:e.type}],formatGroupId:Ma("0x17")})}))}handleListReversedCommand(t,e={}){const n=this.editor.plugins[Ma("0x1b")](Ma("0x21")),o=this[Ma("0x1a")][Ma("0xf")][Ma("0x1b")]("DocumentListUtils"),s=this[Ma("0x2e")]((t=>o[Ma("0x2b")](t)&&Ma("0x31")===t[Ma("0x25")](Ma("0x1c"))));null!==s&&this.editor[Ma("0x16")][Ma("0x2c")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ma("0x4"),commandParams:[{reversed:e.reversed}],formatGroupId:Ma("0x4")})}))}[Ma("0x28")](t,e={}){const n=this[Ma("0x1a")][Ma("0xf")][Ma("0x1b")]("TrackChangesEditing"),o=this[Ma("0x1a")][Ma("0xf")][Ma("0x1b")](Ma("0x14")),s=this[Ma("0x2e")]((t=>o[Ma("0x2b")](t)&&Ma("0x31")===t[Ma("0x25")](Ma("0x1c"))));null!==s&&this[Ma("0x1a")][Ma("0x16")][Ma("0x2c")]((()=>{n[Ma("0x32")](s,{commandName:"listStart",commandParams:[{startIndex:e[Ma("0x11")]}],formatGroupId:Ma("0x15")})}))}handleDescriptions(t){const e=this.editor[Ma("0x3")],{data:n}=t;if(!n)return;let o,s;switch(n[Ma("0x29")]){case"listStyle":o=Ma("0x20"),s={type:Ma("0x1d"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[Ma("0x0")][0].type)))};break;case"listReversed":o=n.commandParams[0].reversed?"*Format:* set order to reversed":Ma("0x30"),s={type:"format",content:Yo(e,o)};break;case Ma("0x15"):o=Ma("0x2"),s={type:"format",content:Yo(e,o,n[Ma("0x0")][0][Ma("0x11")])}}return s}[Ma("0x26")](){const t=this[Ma("0x1a")][Ma("0xf")].get(Ma("0x14"));let e=Array[Ma("0x6")](this[Ma("0x1a")].model.document[Ma("0x18")][Ma("0xe")]());return e[Ma("0x2a")](...t[Ma("0x9")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ma("0x1a")][Ma("0xf")][Ma("0x1b")](Ma("0x14"));let n=Array[Ma("0x6")](this.editor[Ma("0x16")][Ma("0x2f")].selection.getSelectedBlocks())[Ma("0x12")](t);if(!n[Ma("0xa")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[Ma("0x2a")](t);return o}[Ma("0x22")](t){return Ma("0x7")+this[Ma("0x1a")].plugins[Ma("0x1b")](Ma("0x1f"))[Ma("0x2d")](t)[Ma("0x13")]()+Ma("0x19")+t[Ma("0x13")]()[Ma("0x8")](/-/g,"_")}}const Fa=["model","getSelectionAffectedTableCells","registerDescriptionCallback","findAncestor","TableUtils","tableCellPadding","TrackChangesTableProperties","get","TrackChangesEditing","locale","commandParams","afterInit","*Format:* change table properties","subType","tableCellWidth","tableBackgroundColor","getSuggestionCallback","tableCellHeight","registerCustomCallback","tableCellBorderWidth","document","tableBorderStyle","getAttribute","tableHeight","getContainedElement","*Format:* change table cell properties","tableWidth","tableCellProperties","pluginName","has","enqueueChange","tableBorderColor","handleSuggestionDescription","_suggestionFactory","removeAttribute","discard","tableCellVerticalAlignment","setAttribute","join","nodeAfter","tableCellBackgroundColor","markBlockFormat","_getSuggestion","plugins","tableProperties","tableCellHorizontalAlignment","_handlePropertyChange","TableCellPropertiesEditing","editor","handleDiscardAction","accept","formatBlock","enableCommand"];var Pa,Da;Pa=Fa,Da=493,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this.tableProperties=[Ba("0xf"),Ba("0x5"),"tableBorderWidth","tableAlignment",Ba("0xa"),Ba("0x7"),Ba("0x34")],this[Ba("0xb")]=["tableCellBorderColor","tableCellBorderStyle",Ba("0x3"),Ba("0x2a"),Ba("0x33"),Ba("0x1"),Ba("0x18"),Ba("0x1d"),Ba("0x14")]}static get[Ba("0xc")](){return Ba("0x2b")}[Ba("0x30")](){const t=this[Ba("0x20")][Ba("0x1b")][Ba("0x2c")](Ba("0x2d"));if(this.editor[Ba("0x1b")].has("TablePropertiesEditing")){for(const e of this[Ba("0x1c")])t[Ba("0x24")](e,((t,n)=>{const o=this[Ba("0x20")][Ba("0x25")][Ba("0x4")].selection.getFirstPosition()[Ba("0x28")]("table");this[Ba("0x1e")](e,[o],this[Ba("0x1c")],Ba("0x1c"),t,n)}));t[Ba("0x11")][Ba("0x2")](Ba("0x23"),Ba("0x1c"),Ba("0x22"),t._suggestionFactory[Ba("0x0")](Ba("0x23"),null,"discard")),t[Ba("0x11")][Ba("0x2")](Ba("0x23"),Ba("0x1c"),Ba("0x13"),((t,e)=>this.handleDiscardAction(this[Ba("0x1c")],t,e))),t._suggestionFactory[Ba("0x2")]("formatBlock",Ba("0x1c"),Ba("0x16"),(()=>!1))}if(this[Ba("0x20")][Ba("0x1b")][Ba("0xd")](Ba("0x1f"))){for(const e of this[Ba("0xb")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x20")].plugins[Ba("0x2c")](Ba("0x29"))[Ba("0x26")](this.editor[Ba("0x25")][Ba("0x4")].selection);this[Ba("0x1e")](e,o,this[Ba("0xb")],Ba("0xb"),t,n)}));t._suggestionFactory.registerCustomCallback(Ba("0x23"),Ba("0xb"),"accept",t[Ba("0x11")][Ba("0x0")](Ba("0x23"),null,"discard")),t[Ba("0x11")][Ba("0x2")](Ba("0x23"),"tableCellProperties","discard",((t,e)=>this[Ba("0x21")](this[Ba("0xb")],t,e))),t._suggestionFactory[Ba("0x2")]("formatBlock",Ba("0xb"),Ba("0x16"),(()=>!1))}t._descriptionFactory[Ba("0x27")]((t=>this[Ba("0x10")](t)))}[Ba("0x1e")](t,e,n,o,s,r){const i=this[Ba("0x20")][Ba("0x1b")].get("TrackChangesEditing");this[Ba("0x20")][Ba("0x25")][Ba("0xe")](r.batch,(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x6")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x19")](t,{commandParams:[e]},[],o)}}))}[Ba("0x21")](t,e,n){const o=e[0].start[Ba("0x17")],s=n[Ba("0x2f")][0];this[Ba("0x20")][Ba("0x25")].change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x15")](n,s[n],o):e[Ba("0x12")](n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t.subType){case Ba("0x1c"):return{type:"format",content:Yo(this[Ba("0x20")].locale,Ba("0x31"))};case Ba("0xb"):return{type:"format",content:Yo(this.editor[Ba("0x2e")],Ba("0x9"))}}}[Ba("0x1a")](t,e){const n=this[Ba("0x20")][Ba("0x1b")][Ba("0x2c")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0x8")]();if(o[Ba("0x32")]===e&&n===t)return o}return null}}const Ua=["_suggestions","isAfter","attributes","includes","getAllAdjacentSuggestions","discardSuggestion","trackChanges","ck-suggestion-marker-","nodeBefore","isMultiRange","from","pluginName","detach","isUndo","_splitMarkerName","commands","setTo","insertContent","addRange","applyOperation","isInsideObject","createPositionBefore","for","rejected","_removeSuggestion","document","data","config","getShiftedBy","unbindElementFromMarkerName","consumable","length","high","PENDING_ACTION_SUGGESTION","chain","addUser","targetPosition","updateSuggestion","isInContent","markMultiRangeDeletion","_findSuggestions","containsRange","unbind","getAttribute","createSelection","getNearestSelectionRange","containsItem","nodeAfter","hasSuggestion","deletion:","toViewElement","markerToData","markerNameToElements","sort","delete","discard","get","insertion","activeMarkers","addMarkerName","createRangeIn","markDeletion","isExternal","values","discardAllSuggestions","subType","_saved","plugins","isObject","isBlock","stopListening","addHighlight","@external","_joinSuggestions","_handleNewSuggestionMarker","_customCallbacks","_editor","insertion:discard","authoredAt","change:data","removeMarkers","$graveyard","schema","collaboration.channelId","_checkSuggestionCorrectness","_setSuggestionData","insertion:chain","consume","type","change","removeMarker:suggestion:formatBlock","formatBlock:accept","toJSON","trackChangesCommand","isOwn","_isForcedDefaultExecutionBlock","has","stop","rootName","define","formatInline","fromCharCode","formatInline:","getChanges","_adapter","size","containsRangeInObject","clone","getChangedMarkers","_setSuggestionRange","_commentsRepository","getSuggestions","deletion:discard","addMarker","$marker","_addThreadToSuggestion","_model","reconvertMarker","getLastMatchingPosition","catch","removed","markerName","push","_addSuggestionMarker","addSuggestionData","suggestionLoaded","author","PendingActions","commentThread","isCollapsed","insertion:","isRemovable","suggestionChanged","clear","getMarkers","CommentsRepository","_getExternalAuthor","createElement","dataToMarker","ck-suggestion-marker--active","suggestion-type","_defaultCallbacks","createPositionAfter","getUser","track-changes-suggestion-data-mismatch","conversion","next","enableCommand","filter","createdAt","deletion:join","registerPostFixer","formatBlock:discard","writer","model","formatGroupId","_cutOutSuggestionMarker","end","ck-suggestion-marker-formatBlock","listenTo","_getAuthorFromId","dataReady","selection","start","addMarker:suggestion:formatBlock","hasComments","formatBlock","createPositionAt","forceDefaultExecution","originalSuggestionId","insert","error-saving-suggestion-data-suggestion-discarded","dataDowncast","data-suggestion","getSuggestionCallback","backward","markers","ck-suggestion-marker","deletion:accept","before","bindElementToMarker","return","_getSuggestionData","formatBlock:join","remove","previous","getMultiRangeId","ready","after","getFirstMarker","suggestion","multi","isLocal","documentSelection","$textProxy","deleteContent","_onDiscard","editor","getRanges","mapper","resolve","isBefore","newRange","getCommentThread","isTouching","map","fromRange","upcast","acceptSuggestion","getWalker","low","getDifference","open","options","_updateSuggestionData","root","set","deletion:chain","editing","howMany","removeMarker","change:_saved","formatBlock:","lowest","isIntersectingWithRange","name","adapter","enqueueChange","element","authorName","suggestionUnloaded","multipleBlocks","isAtEnd","getItems","elementEnd","_descriptionFactory","fire","highest","then","_enabledCommands","moveTargetPosition","value","formatInline:accept","isEqual","updateMarker","fetchCommentThread","getFirstRange","trackChanges.trackFormatChanges","containsPosition","isNextTo","isSelectable","addComment","markerToHighlight","addClass","formatBlock:chain","every","_suggestionFactory","locale","markMultiRangeInsertion","containerElement","addCommentThread","deletion","buildSuggestion","differ","commandName","getRange","getIntersection","markMultiRangeBlockFormat","_registerDefaultCallbacks","some","_rangeIsInLocalUserInsertion","refresh","showSuggestionHighlights","substr","insertion:join","execute","acceptAllSuggestions","split","notReady","marker-count","add","_suggestionState","creator","range","_refreshSuggestionsChain","formatInline:join","addSuggestion","join","removeAttribute","isLimit","_createSuggestion","parent","getCustomProperty","formatInline:discard","markerReady","_breakSuggestionMarker","skipNestingCheck","splitPosition","normal","oldRange","rethrowUnexpectedError","TrackChangesEditing","elementToElement","requires","createRange","editingDowncast","elementStart","suggestion:","Users","track-changes-command-not-found","_trackFormatChanges","batch","item","accept"];var Ga,Ha;Ga=Ua,Ha=334,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{static get[Wa("0x11b")](){return[Wa("0x73"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,zs,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,zi,$i,tx,ix,dx,px,yx,Sx,Mx,jx,zx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[Wa("0x131")](){return Wa("0x119")}constructor(t){function e(t){return t[Wa("0xb9")]((t=>String[Wa("0x51")](t)))[Wa("0x10b")]("")}super(t),this.set(Wa("0x26"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Wa("0x60")][Wa("0x45")]((()=>{for(const e of[...s,...o])this._model[Wa("0x9c")].has(e)&&t[Wa("0xc6")][Wa("0x61")](e)}))})),this[Wa("0xd7")]=new ss(this[Wa("0xb1")].model[Wa("0x3e")],this[Wa("0xb1")][Wa("0xed")]),this[Wa("0x54")]=null,this[Wa("0xec")]=new Va(this[Wa("0xb1")]),this[Wa("0x126")]=new Map,this[Wa("0x5a")]=t[Wa("0x2f")][Wa("0x24")](Wa("0x73")),this[Wa("0xdb")]=new Set,this[Wa("0x60")]=this[Wa("0xb1")][Wa("0x86")],this[Wa("0x105")]=new WeakMap,this[Wa("0x4b")]=!1,t.config[Wa("0x4f")](Wa("0xe3"),!0),this._trackFormatChanges=t[Wa("0x7")].get("trackChanges.trackFormatChanges"),this[Wa("0x49")]=new d(t,this._enabledCommands),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,48,56,51,56])}init(){const t=this[Wa("0xb1")];t.conversion.for("editingDowncast")[Wa("0xe8")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[Wa("0x134")](t.markerName),o=["ck-suggestion-marker",Wa("0x12d")+n];let s=3e3;return this[Wa("0x26")][Wa("0x129")](t[Wa("0x65")])&&(o.push(Wa("0x77")),s=3010),Wa("0xf1")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[Wa("0x2")]("dataDowncast")[Wa("0x104")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[Wa("0xc1")][Wa("0xfc")])return;const s=n.item;if(!s)return;const r=o[Wa("0xb3")][Wa("0x1e")](s);t.model.schema.isObject(s)&&r&&!r.getCustomProperty("widget")&&r.is(Wa("0xef"))&&(0,x.toWidget)(r,o[Wa("0x85")])}),{priority:Wa("0xc")})})),t.conversion[Wa("0x2")](Wa("0x98"))[Wa("0xe8")]({model:Wa("0xaa"),view:(t,e)=>{if(!e[Wa("0xc1")][Wa("0xfc")])return null;const{type:n}=this[Wa("0x134")](t[Wa("0x65")]);return{classes:[Wa("0x9d"),Wa("0x12d")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Wa("0x124")])return;if(o[Wa("0x124")].is(Wa("0x8e")))return void s[Wa("0xa")].consume(o[Wa("0x124")],n.name);const r=s[Wa("0xb3")][Wa("0x1e")](o[Wa("0x124")]);if(!o[Wa("0x124")].is(Wa("0xd0"))||!t[Wa("0x86")].schema[Wa("0x31")](o.item)||r[Wa("0x110")](Wa("0x33")))return;const{id:i}=this[Wa("0x134")](o.markerName);s[Wa("0x85")][Wa("0xe9")]([Wa("0x9d"),"ck-suggestion-marker-formatBlock"],r),s.writer.setAttribute(Wa("0x99"),i,r),s[Wa("0xb3")][Wa("0xa0")](r,o[Wa("0x65")]),e&&(this[Wa("0x26")][Wa("0x129")](o[Wa("0x65")])?s[Wa("0x85")][Wa("0xe9")]("ck-suggestion-marker--active",r):s[Wa("0x85")].removeClass(Wa("0x77"),r));for(const e of t[Wa("0x86")][Wa("0x28")](o[Wa("0x124")])[Wa("0xd5")]())s.consumable[Wa("0x43")](e,n.name);s[Wa("0xa")].consume(o[Wa("0x124")],n[Wa("0xcd")])};t[Wa("0x7d")][Wa("0x2")](Wa("0x98"))[Wa("0x104")]((t=>{t.on(Wa("0x90"),((t,e,o)=>{o[Wa("0xc1")][Wa("0xfc")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Wa("0xd9")})})),t[Wa("0x7d")].for(Wa("0x98"))[Wa("0x1f")]({model:Wa("0xaa"),view:(t,e)=>e[Wa("0xc1")][Wa("0xfc")]?null:{group:Wa("0xaa"),name:t[Wa("0xfd")](11)}}),t[Wa("0x7d")].for(Wa("0xbb"))[Wa("0x11a")]({view:{name:Wa("0xaa"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Wa("0x11f")+t[Wa("0x17")](Wa("0x78"))+":"+t.getAttribute("id");return t[Wa("0x17")]("marker-count")&&(n+=":"+t[Wa("0x17")](Wa("0x103"))),e[Wa("0x75")](Wa("0x5e"),{"data-name":n})}}),t[Wa("0x7d")].for(Wa("0xbb"))[Wa("0x76")]({view:Wa("0xaa")}),t.conversion[Wa("0x2")](Wa("0x11d"))[Wa("0x104")]((t=>{t.on(Wa("0x90"),n(),{priority:Wa("0xc")})})),t[Wa("0x7d")][Wa("0x2")]("editingDowncast")[Wa("0x104")]((t=>{t.on(Wa("0x46"),((t,e,n)=>{const o=n[Wa("0xb3")][Wa("0x20")](e[Wa("0x65")]);if(o)for(const t of o)t[Wa("0x110")](Wa("0x33"))||(n.writer.removeClass([Wa("0x9d"),Wa("0x8a"),"ck-suggestion-marker--active"],t),n[Wa("0x85")][Wa("0x10c")](Wa("0x99"),t),n[Wa("0xb3")][Wa("0x9")](t,e[Wa("0x65")]))}),{priority:Wa("0xc")})})),t[Wa("0x86")].document.registerPostFixer((e=>{let n=!1;const o=Array[Wa("0x130")](t[Wa("0x86")].document[Wa("0xf3")][Wa("0x58")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Wa("0x134")](x);if(Wa("0xaa")!==o)continue;const u=this._suggestions[Wa("0x24")](l);if(null!=a[Wa("0xb6")])if(Wa("0x50")==c&&(n=n||qa(a[Wa("0xb6")],x,e,t[Wa("0x86")][Wa("0x3e")])),a[Wa("0xb6")][Wa("0x6d")]||Wa("0x3d")==a.newRange[Wa("0xc3")][Wa("0x4e")]||Wa("0x92")==c&&!Ja(a[Wa("0xb6")])||Wa("0xf1")==c&&(Xa(i=a[Wa("0xb6")])||(r=i).start[Wa("0x10f")]==r[Wa("0x89")][Wa("0x12e")]&&r.start[Wa("0xd4")]))e[Wa("0xc8")](x),n=!0;else{if(!u||!u[Wa("0x12")])continue;s[Wa("0x104")](u)}}var r,i;return s[Wa("0x55")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[Wa("0x86")][Wa("0x5")][Wa("0x83")]((e=>{let n=!1;for(const o of t[Wa("0x86")][Wa("0x5")].differ[Wa("0x53")]()){if(Wa("0x96")!=o[Wa("0x44")])continue;const s=o.position[Wa("0x8")](o.length);if(s.isAtEnd)for(const r of this[Wa("0x126")][Wa("0x2b")]()){if(r[Wa("0x12f")]||!r[Wa("0x12")])continue;if("formatBlock"!=r.type)continue;const i=r.getFirstRange();if(i[Wa("0x8f")].parent!=i.end[Wa("0x10f")]&&i[Wa("0x89")][Wa("0xdf")](o.position)){const o=t[Wa("0x86")].createRange(i[Wa("0x8f")],s);e.updateMarker(r[Wa("0xa9")](),{range:o}),n=!0}}}return n})),t[Wa("0x86")][Wa("0x9c")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[Wa("0x134")](e.name),n=this._suggestions[Wa("0x24")](t);n&&n[Wa("0x27")](e[Wa("0xcd")])}})),t.model[Wa("0x5")].on(Wa("0x3b"),(()=>{const e=Array.from(t[Wa("0x86")][Wa("0x5")][Wa("0xf3")][Wa("0x58")]())[Wa("0x80")]((t=>Wa("0xaa")===this[Wa("0x134")](t[Wa("0xcd")]).group));if(0===e.length)return;e[Wa("0x21")](((t,e)=>{const n=t[Wa("0x6")].oldRange,o=e[Wa("0x6")][Wa("0x117")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Wa("0x8f")][Wa("0xb5")](o[Wa("0x8f")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s.oldRange){const e=this[Wa("0x36")](t);o[Wa("0x104")](e)}else{const t=this[Wa("0x126")].get(e);null!==s[Wa("0xb6")]||t[Wa("0x12")]?(n.add(t.head),o[Wa("0x104")](t)):this._removeSuggestion(t)}}o[Wa("0x55")]>0&&this[Wa("0x108")](o);for(const t of n)this[Wa("0xd8")](Wa("0x70"),t)})),t[Wa("0x86")].on(Wa("0x139"),((e,n)=>{const o=n[0];if(!this._suggestions[Wa("0x55")])return;if(!o.isDocumentOperation)return;if(o[Wa("0x123")][Wa("0x133")]||!o[Wa("0x123")][Wa("0xac")])return;let s,r;switch(o[Wa("0x44")]){case Wa("0x96"):s=t.model[Wa("0x93")](o.position),r=s[Wa("0x8")](o[Wa("0xc7")]);break;case"split":s=t[Wa("0x86")][Wa("0x93")](o[Wa("0x115")]),r=t[Wa("0x86")][Wa("0x93")](o[Wa("0xdc")]);break;case"move":s=t[Wa("0x86")].createPositionAt(o[Wa("0x10")]),r=s[Wa("0x8")](o[Wa("0xc7")]);break;default:return}const i=t[Wa("0x86")][Wa("0x11c")](s,r);t[Wa("0x86")][Wa("0x45")]((()=>{for(const{suggestion:t,meta:e}of this[Wa("0x14")](i)){if(t[Wa("0x12f")])continue;if("formatInline"==t[Wa("0x44")])continue;const n=t[Wa("0x6")]&&t[Wa("0x6")][Wa("0xd3")];(Wa("0x92")!=t.type||Wa("0x101")==o.type&&!n)&&(e[Wa("0x56")]||Wa("0x25")==t[Wa("0x44")]&&e.isOwn||t.getFirstRange()[Wa("0x15")](i)&&this[Wa("0x113")](t,s,r))}}))}),{priority:Wa("0xcb")}),t[Wa("0x86")].on(Wa("0xaf"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Wa("0x94")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Wa("0x49")][Wa("0xdd")])return;if(o[Wa("0x6d")])return;const r=t[Wa("0x86")][Wa("0x3e")],{start:i,end:x}=o.getFirstRange(),a=i.nodeAfter&&r[Wa("0x10d")](i[Wa("0x1b")])?null:r.getNearestSelectionRange(i,"forward"),c=x.nodeBefore&&r[Wa("0x10d")](x[Wa("0x12e")])?null:r[Wa("0x19")](x,Wa("0x9b")),l=t[Wa("0x86")][Wa("0x11c")](a?a[Wa("0x8f")]:i,c?c.end:x);t[Wa("0x86")][Wa("0x45")]((e=>{this[Wa("0x29")](l);const n=t[Wa("0x86")][Wa("0x3e")][Wa("0x19")](l[Wa("0x8f")]);o.is(Wa("0xad"))?e.setSelection(n):o[Wa("0x136")](n)})),e[Wa("0x4d")]()}),{priority:e.priorities[Wa("0x116")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[Wa("0xb")]-1];o&&o[Wa("0x94")]||this[Wa("0x4b")]||this[Wa("0x49")][Wa("0xdd")]&&(t[Wa("0x86")][Wa("0x45")]((()=>{let o=t[Wa("0x86")][Wa("0x137")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Wa("0xa1")]=o[Wa("0x57")]();const s=o[Wa("0x89")][Wa("0x12e")],r=t[Wa("0x86")][Wa("0x3e")];s&&r.isBlock(s)&&!r.isObject(s)&&(o=t.model[Wa("0x11c")](o[Wa("0x8f")],t.model[Wa("0x93")](s,Wa("0x89")))),this.markInsertion(o)})),e.stop())}),{priority:Wa("0xc")}),this[Wa("0xb1")][Wa("0x135")][Wa("0x104")](Wa("0x12c"),this[Wa("0x49")]),this[Wa("0x7f")](Wa("0x12c"));const o=new p(t,this[Wa("0x126")]);t[Wa("0x135")][Wa("0x104")](Wa("0xbc"),o),this[Wa("0x7f")](Wa("0xbc"));const s=new C(t,this[Wa("0x126")]);t[Wa("0x135")][Wa("0x104")](Wa("0x12b"),s),this[Wa("0x7f")]("discardSuggestion"),t[Wa("0x135")].add(Wa("0x100"),new F(t,o,this[Wa("0x126")])),this[Wa("0x7f")](Wa("0x100")),t[Wa("0x135")].add("discardAllSuggestions",new F(t,s,this[Wa("0x126")])),this[Wa("0x7f")](Wa("0x2c")),t[Wa("0x135")][Wa("0x104")]("acceptSelectedSuggestions",new U(t,o,this._suggestions)),this[Wa("0x7f")]("acceptSelectedSuggestions"),t.commands[Wa("0x104")]("discardSelectedSuggestions",new U(t,s,this[Wa("0x126")])),this.enableCommand("discardSelectedSuggestions");const r=t[Wa("0x2f")].get(Wa("0x73"));this.listenTo(r,Wa("0xe7"),((t,{threadId:e})=>{const n=this[Wa("0x126")][Wa("0x24")](e);n&&n[Wa("0x6c")]&&1===n[Wa("0x6c")][Wa("0xb")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this.listenTo(r,"removeComment",((t,{threadId:e})=>{const n=this[Wa("0x126")].get(e);n&&n.commentThread&&!n[Wa("0x6c")][Wa("0xb")]&&this[Wa("0xc2")](e,{hasComments:!1})}),{priority:Wa("0xbe")})}set[Wa("0xce")](t){if(this[Wa("0x54")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[Wa("0x54")]=t}get adapter(){return this[Wa("0x54")]}[Wa("0x5b")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Wa("0x126")][Wa("0x2b")]())t&&!e.isInContent||n[Wa("0x66")](e);return e?n.map((t=>t[Wa("0x48")]())):n}getSuggestion(t){const n=this._suggestions[Wa("0x24")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[Wa("0x1c")](t){return this[Wa("0x126")].has(t)}[Wa("0x68")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Wa("0x44")][Wa("0x101")](":"),i=this[Wa("0x126")][Wa("0x24")](n)||this._createSuggestion(s,r,n,e,o);if(this[Wa("0x5f")](i),this[Wa("0x40")](i,s,r||null,e),i[Wa("0x81")]=t[Wa("0x81")],o&&o[Wa("0x34")]){const t=o[Wa("0x34")],e=this[Wa("0x74")](t[Wa("0xd1")]);i[Wa("0x3a")]=t[Wa("0x81")],i[Wa("0x6a")]=e,i[Wa("0x2a")]=!0}else i.authoredAt=t.createdAt;switch(t[Wa("0x6")]&&(i.data=t[Wa("0x6")]),t[Wa("0x128")]&&(i[Wa("0x128")]=t[Wa("0x128")]),this[Wa("0x54")]&&this[Wa("0x54")][Wa("0x10a")]||(i[Wa("0x2e")]=!0),this[Wa("0x105")][Wa("0x24")](i)){case Wa("0x102"):this[Wa("0x105")][Wa("0xc4")](i,Wa("0x8d"));break;case Wa("0x112"):i[Wa("0x12")]?(this[Wa("0x105")][Wa("0xc4")](i,"ready"),this[Wa("0xd8")](Wa("0x69"),i)):this[Wa("0x105")][Wa("0xc4")](i,Wa("0x64"))}return i}acceptSuggestion(t){this[Wa("0x94")]((()=>{this[Wa("0xb1")].model[Wa("0x45")]((()=>{for(const e of t[Wa("0x12a")]())e[Wa("0x125")]()}))}))}discardSuggestion(t){this[Wa("0x94")]((()=>{this[Wa("0xb1")][Wa("0x86")][Wa("0x45")]((()=>{for(const e of t[Wa("0x12a")]())e[Wa("0x23")]()}))}))}[Wa("0x7f")](t,n){const o=this.editor[Wa("0x135")][Wa("0x24")](t);if(!o)throw new e.CKEditorError(Wa("0x121"),this,{commandName:t});this[Wa("0xdb")][Wa("0x104")](o),n&&o.on("execute",((t,e)=>{this[Wa("0x49")][Wa("0xdd")]&&(this._isForcedDefaultExecutionBlock||e[Wa("0xb")]>0&&e[e[Wa("0xb")]-1]&&e[e.length-1][Wa("0x94")]||(n(((...t)=>o[Wa("0xff")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:"high"})}[Wa("0x94")](t){let n,o;const s=this[Wa("0x4b")];this[Wa("0x4b")]=!0;try{n=t()}catch(t){o=t}return s||(this[Wa("0x4b")]=!1),o&&e.CKEditorError[Wa("0x118")](o,this),n}markInsertion(t,n=null,o={}){if(t[Wa("0x6d")])return null;const s=this[Wa("0xb1")][Wa("0x2f")][Wa("0x24")](Wa("0x120")).me;for(const{suggestion:e,meta:o}of this[Wa("0x14")](t,Wa("0x25")))if(o[Wa("0x4a")]){if(!o[Wa("0xe5")])return e;if(n==e[Wa("0x2d")]){const n=e[Wa("0xe2")]();return n[Wa("0x8f")][Wa("0xdf")](t.end)?this[Wa("0x59")](e,this[Wa("0x60")][Wa("0x11c")](t[Wa("0x8f")],n[Wa("0x89")])):this[Wa("0x59")](e,this[Wa("0x60")][Wa("0x11c")](n.start,t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?Wa("0x6e")+n:Wa("0x25"),a=this[Wa("0x41")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0x67")](x,r,i,t),a}[Wa("0xee")](t,n="multi",o={}){const s=this[Wa("0xb1")][Wa("0x2f")][Wa("0x24")]("Users").me,r=this._suggestionFactory[Wa("0x9a")](Wa("0x25"),n,Wa("0x10b"));for(const e of this[Wa("0x5b")]())if(e[Wa("0x6a")].id==s.id&&Wa("0x25")==e.type&&e.subType==n&&(r(e.getRanges(),t)||r(t,e[Wa("0xb2")]()))){for(const n of t)e.addRange(n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this[Wa("0x14")](e,Wa("0x25"))){if(!o[Wa("0x4a")])continue;let e=!0;for(const o of n[Wa("0xb2")]())for(const n of t)if(!o[Wa("0x15")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=Wa("0x6e")+n,c=this[Wa("0x41")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Wa("0x67")](a,i,x,e,Zo[Wa("0xa6")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[Wa("0x6d")])return null;if(!1===this[Wa("0x122")]){const e=this[Wa("0xec")].getSuggestionCallback("formatInline",o,Wa("0x125"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[Wa("0xb1")][Wa("0x2f")][Wa("0x24")](Wa("0x120")).me,i=[];for(const{suggestion:e,meta:n}of this[Wa("0x14")](t,"insertion"))n[Wa("0x4a")]&&!n[Wa("0x0")]&&i[Wa("0x66")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[Wa("0xf6")](o);e&&n[Wa("0x66")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][Wa("0xbf")](t);n.splice(e,1,...o),e+=o[Wa("0xb")]}}return n}(t,i);x[Wa("0xb")]&&this[Wa("0x60")][Wa("0x45")]((()=>{for(const t of x){const e=this[Wa("0xec")].getSuggestionCallback(Wa("0x50"),o,Wa("0x125"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Wa("0x8f")],a=t[Wa("0x89")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,Wa("0x50"))){if(!n.isOwn)continue;if(e[Wa("0x2d")]!=o)continue;const s=e[Wa("0xe2")]();if(s.containsRange(t,!0))return null;x=x[Wa("0xb5")](s[Wa("0x8f")])?x:s[Wa("0x8f")],a=a[Wa("0x127")](s[Wa("0x89")])?a:s[Wa("0x89")],i?s[Wa("0x8f")].isBefore(i[Wa("0xe2")]()[Wa("0x8f")])?(i[Wa("0x3c")](),i=e):e[Wa("0x3c")]():i=e}const c=this[Wa("0x60")][Wa("0x11c")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[Wa("0x41")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Wa("0x67")](Wa("0x52")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[Wa("0x87")]||(n.formatGroupId=n[Wa("0xf4")]),n[Wa("0xd3")]=t.is(Wa("0x107")),s=s||$a(n);const i=o[Wa("0xb9")]((t=>Qa(t,this[Wa("0x60")]))),x=t.is(Wa("0x107"))?t:Qa(t,this[Wa("0x60")]);if(!1===this[Wa("0x122")]){const t=this[Wa("0xec")][Wa("0x9a")](Wa("0x92"),s,"accept");return this[Wa("0x94")]((()=>t([x],n,r))),null}i[Wa("0x66")](x);let a=!0;for(const t of i)if(!this[Wa("0xfa")](t)){a=!1;break}if(a){const t=this[Wa("0xec")][Wa("0x9a")]("formatBlock",s,Wa("0x125"));return this[Wa("0x94")]((()=>t([x],n,r))),null}let c=null,l=x[Wa("0x8f")],u=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,Wa("0x92"))){if(!e[Wa("0x4a")]||e[Wa("0xe5")]||e[Wa("0x56")]||e[Wa("0x0")])continue;if(t.data[Wa("0x87")]!=n[Wa("0x87")])continue;const o=t[Wa("0xe2")]();if(t[Wa("0x2d")]==s){if(o[Wa("0x15")](x,!0))return null;l=l.isBefore(o.start)?l:o.start,u=u[Wa("0x127")](o[Wa("0x89")])?u:o[Wa("0x89")],c?o[Wa("0x8f")][Wa("0xb5")](c.getFirstRange()[Wa("0x8f")])?(c[Wa("0x3c")](),c=t):t[Wa("0x3c")]():c=t}else{const e=x[Wa("0xf6")](o);this._cutOutSuggestionMarker(t,e)}}const d=this.editor[Wa("0x2f")][Wa("0x24")]("Users").me,g=(0,e.uid)(),m=d.id;if(c)return this[Wa("0x59")](c,this[Wa("0x60")].createRange(l,u)),c;{const t=this[Wa("0x41")]({id:g,type:Wa("0xca")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Wa("0x67")](Wa("0xca")+s,g,m,this._model.createRange(l,u)),t}}[Wa("0xf7")](t,n,o=[],s=null,r={}){n[Wa("0x87")]||(n[Wa("0x87")]=n[Wa("0xf4")]);const i=t[0];n.multipleBlocks=i.is(Wa("0x107")),s=s||$a(n);const x=o[Wa("0xb9")]((t=>Qa(t,this[Wa("0x60")]))),a=i.is(Wa("0x107"))?t:t[Wa("0xb9")]((t=>Qa(t,this._model)));if(!1===this[Wa("0x122")]){const t=this._suggestionFactory.getSuggestionCallback("formatBlock",s,Wa("0x125"));return this[Wa("0x94")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Wa("0xfa")](t)){c=!1;break}if(c){const t=this[Wa("0xec")][Wa("0x9a")](Wa("0x92"),s,"accept");return this[Wa("0x94")]((()=>t(a,n,r))),null}const l=this.editor[Wa("0x2f")].get("Users").me;for(const t of this[Wa("0x5b")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[Wa("0x44")]||t[Wa("0x6")][Wa("0x87")]!=n[Wa("0x87")])continue;const e=t.subType==s;for(let n=0;n<a[Wa("0xb")];n++){const o=a[n];for(const s of t[Wa("0x72")]()){const r=s[Wa("0xf5")]();if(o[Wa("0xdf")](r)){e?(a.splice(n,1),n--):t[Wa("0xc8")](s[Wa("0xcd")]);break}}}}if(0==a[Wa("0xb")])return null;const u=this._suggestionFactory.getSuggestionCallback(Wa("0x92"),s,"join");for(const t of this[Wa("0x5b")]())if(t.author.id==l.id&&Wa("0x92")==t.type&&t[Wa("0x6")][Wa("0x87")]==n[Wa("0x87")]&&t[Wa("0x2d")]==s&&(u(t[Wa("0xb2")](),a)||u(a,t[Wa("0xb2")]()))){for(const e of a)t[Wa("0x138")](e);return t}const d=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this._setSuggestionData({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Wa("0x67")](m,d,g,t,Zo[Wa("0xa6")]());return f}[Wa("0x29")](t,n=null,o={}){if(t[Wa("0x6d")])return null;const s=this[Wa("0xb1")][Wa("0x2f")][Wa("0x24")](Wa("0x120")).me,r=new i.LiveRange(t[Wa("0x8f")],t[Wa("0x89")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,Wa("0x25")))if(e[Wa("0x4a")]&&!e[Wa("0xe5")])if(t.isMultiRange){const e=t[Wa("0xb2")]()[Wa("0x80")]((t=>Wa("0x3d")!=t[Wa("0xc3")][Wa("0x4e")]));if(e[Wa("0xeb")]((t=>r[Wa("0x15")](t,!0)))&&t[Wa("0x23")](),e[Wa("0xf9")]((t=>t[Wa("0x15")](r,!0)))){const t=this[Wa("0xec")][Wa("0x9a")](Wa("0xf1"),n,Wa("0x125"));return this[Wa("0x94")]((()=>t([r],null,o))),null}}else{const e=r[Wa("0xf6")](t[Wa("0xe2")]());t[Wa("0xb0")]([e],null,o)}if(r.detach(),r.isCollapsed||Wa("0x3d")==r[Wa("0xc3")].rootName)return null;let x=null,a=r[Wa("0x8f")],c=r[Wa("0x89")];for(const{suggestion:t,meta:e}of this[Wa("0x14")](r,Wa("0xf1")))if(e[Wa("0x4a")])if(t[Wa("0x12f")]){let e=!0;for(const n of t[Wa("0xb2")]()){if(n[Wa("0x15")](r,!0))return t;r[Wa("0x15")](n)||(e=!1)}e&&t.discard()}else{const e=t[Wa("0xe2")]();if(e[Wa("0x15")](r,!0))return t;a=a.isBefore(e[Wa("0x8f")])?a:e[Wa("0x8f")],c=c[Wa("0x127")](e[Wa("0x89")])?c:e[Wa("0x89")],x?e.start[Wa("0xb5")](x[Wa("0xe2")]()[Wa("0x8f")])?(x[Wa("0x3c")](),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this[Wa("0x60")][Wa("0x11c")](a,c)),x;{const t=(0,e.uid)(),r=this._model[Wa("0x11c")](a,c),i=s.id,x=n?Wa("0x1d")+n:Wa("0xf1"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0x67")](x,t,i,r),l}}[Wa("0x13")](t,n=Wa("0xab"),o={}){const s=this[Wa("0xb1")].plugins[Wa("0x24")](Wa("0x120")).me,r=t[Wa("0xb9")]((t=>new i.LiveRange(t[Wa("0x8f")],t[Wa("0x89")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[Wa("0x14")](t,Wa("0x25")))n[Wa("0x4a")]&&!n[Wa("0xe5")]&&x.add(e);for(const e of x)if(e[Wa("0x12f")]){const s=e[Wa("0xb2")]();if((!e[Wa("0x128")]||!e.attributes[Wa("0x114")])&&s[Wa("0xeb")]((t=>r[Wa("0xf9")]((e=>e[Wa("0x15")](t,!0)))))&&e.discard(),r[Wa("0xeb")]((t=>s[Wa("0xf9")]((e=>e[Wa("0x15")](t,!0)))))){const e=this[Wa("0xec")][Wa("0x9a")]("deletion",n,Wa("0x125"));return this[Wa("0x94")]((()=>e(t,null,o))),null}}else{const t=e[Wa("0xe2")]();if(r[Wa("0xf9")]((e=>e[Wa("0x15")](t,!0)))&&e[Wa("0x23")](),r.every((e=>t[Wa("0x15")](e,!0)))){const t=this[Wa("0xec")].getSuggestionCallback(Wa("0xf1"),n,Wa("0x125"));return this[Wa("0x94")]((()=>t(r,null,o))),null}}const a=this[Wa("0xec")][Wa("0x9a")](Wa("0xf1"),n,Wa("0x10b"));let c=null;for(const t of this[Wa("0x5b")]())if(t[Wa("0x6a")].id==s.id&&t[Wa("0x12")]&&Wa("0xf1")==t[Wa("0x44")]&&t[Wa("0x2d")]==n&&(a(t.getRanges(),r)||a(r,t.getRanges())))if(c){if(t[Wa("0x6c")]&&t[Wa("0x6c")][Wa("0xb")])continue;for(const e of t[Wa("0xb2")]())c[Wa("0xcc")](e)||c[Wa("0x138")](e);t[Wa("0x3c")]()}else{c=t;for(const e of r)t[Wa("0xcc")](e)||t.addRange(e)}if(c)return c;x[Wa("0x71")]();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"deletion"))n.isOwn&&x[Wa("0x104")](e);for(const t of x){const e=t.getRanges();if((!o||!o[Wa("0x114")])&&r.every((t=>e[Wa("0xf9")]((e=>e[Wa("0x15")](t,!0))))))return t;(!t[Wa("0x128")]||!t[Wa("0x128")][Wa("0x114")])&&e.every((t=>r[Wa("0xf9")]((e=>e[Wa("0x15")](t,!0)))))&&t[Wa("0x23")]()}const l=(0,e.uid)(),u=s.id,d=Wa("0x1d")+n,g=this[Wa("0x41")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Wa("0x132")](),t.isCollapsed||Wa("0x3d")==t[Wa("0xc3")].rootName||this[Wa("0x67")](d,l,u,t,Zo[Wa("0xa6")]());return g}[Wa("0x59")](t,e){const n=t[Wa("0xa9")]();this[Wa("0x60")][Wa("0x45")]((t=>{t[Wa("0xe0")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[Wa("0xb1")][Wa("0x7")][Wa("0x24")](Wa("0x3f"));this[Wa("0x5a")].hasCommentThread(e)||this._commentsRepository[Wa("0xf0")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[Wa("0xb7")](e);o[Wa("0x16")](Wa("0x6f")),o[Wa("0x6f")]=!1,t[Wa("0x6c")]=o}[Wa("0x40")](t,n,o,s){if(t[Wa("0x44")]!=n||t[Wa("0x2d")]!=o||t[Wa("0x106")].id!=s)throw this.editor.enableReadOnlyMode(Wa("0x7c")),new e.CKEditorError(Wa("0x7c"),this)}[Wa("0x88")](t,n){const o=t[Wa("0xe2")]();if(n[Wa("0xdf")](o))t[Wa("0x3c")]();else if(o[Wa("0x15")](n)){const s=this[Wa("0x60")].createPositionAt(n[Wa("0x8f")][Wa("0x12e")],"end");this[Wa("0x59")](t,this[Wa("0x60")][Wa("0x11c")](o[Wa("0x8f")],s));const r=(0,e.uid)(),i=t[Wa("0x106")].id,x=t[Wa("0x44")]+":"+t[Wa("0x2d")];this[Wa("0x41")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Wa("0x6")],attributes:t.attributes});const a=this[Wa("0x60")][Wa("0x93")](n[Wa("0x89")][Wa("0x10f")],Wa("0xa8")),c=this[Wa("0x60")].createRange(a,o[Wa("0x89")]);this[Wa("0x67")](x,r,i,c)}else if(o[Wa("0xe4")](n[Wa("0x8f")])){const e=this[Wa("0x60")][Wa("0x93")](n[Wa("0x8f")][Wa("0x12e")],"end");this[Wa("0x59")](t,this[Wa("0x60")].createRange(o[Wa("0x8f")],e))}else{const e=this._model[Wa("0x93")](n[Wa("0x89")][Wa("0x10f")],Wa("0xa8"));this[Wa("0x59")](t,this[Wa("0x60")][Wa("0x11c")](e,o.end))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Wa("0x14")](t,Wa("0x25"))){if(!n[Wa("0x4a")])continue;const o=e[Wa("0xb2")]();for(const e of o)if(!t[Wa("0xbf")](e)[Wa("0xb")])return!0}return!1}[Wa("0x8c")](t){const n=this[Wa("0xb1")].plugins[Wa("0x24")](Wa("0x120"))[Wa("0x7b")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Wa("0x74")](t){const e=this[Wa("0xb1")][Wa("0x2f")][Wa("0x24")](Wa("0x120")),n=(0,r.hashObject)("external:"+t);return e[Wa("0x7b")](n)||e[Wa("0xf")]({id:n,name:t})}[Wa("0x10e")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this._suggestionFactory[Wa("0xf2")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[Wa("0x8b")](i,Wa("0x125"),(()=>{this[Wa("0xc2")](n,{state:"accepted"})}),{priority:Wa("0xc")}),this[Wa("0x8b")](i,Wa("0x23"),(()=>{this._updateSuggestionData(n,{state:Wa("0x3")})}),{priority:Wa("0xc")}),this._suggestions[Wa("0xc4")](n,i),this[Wa("0x105")].set(i,"notReady"),i}_splitMarkerName(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[Wa("0xb")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[Wa("0xb")]?e[5]:null}}[Wa("0x113")](t,n,o){const s=t[Wa("0xe2")](),r=s[Wa("0x8f")],i=s[Wa("0x89")];this[Wa("0x59")](t,this[Wa("0x60")][Wa("0x11c")](r,n));const x=(0,e.uid)(),a=t[Wa("0x106")].id,c=t[Wa("0x44")]+(t[Wa("0x2d")]?":"+t[Wa("0x2d")]:"");this[Wa("0x41")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Wa("0x128")],data:t[Wa("0x6")]}),Wa("0x92")==t.type&&(o=this[Wa("0x60")][Wa("0x1")](o.parent)),this[Wa("0x67")](c,x,a,this[Wa("0x60")][Wa("0x11c")](o,i))}[Wa("0x14")](t,e=null){const n=[],o=this[Wa("0x60")][Wa("0x3e")],s=this[Wa("0xb1")].plugins[Wa("0x24")]("Users").me;for(const r of this[Wa("0x5b")]())if(r.isInContent&&(!e||r[Wa("0x44")]==e))for(const e of r[Wa("0xb2")]()){const i=t[Wa("0x8f")][Wa("0xdf")](e[Wa("0x89")])||t[Wa("0x89")][Wa("0xdf")](e[Wa("0x8f")]);if(i||t[Wa("0xf6")](e)){const x=t[Wa("0x15")](e)&&Ka(o,e.start,t),a=e[Wa("0x15")](t)&&Ka(o,t[Wa("0x8f")],e);n.push({suggestion:r,meta:{isOwn:s==r[Wa("0x6a")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[Wa("0x67")](t,e,n,o,s){this[Wa("0x60")][Wa("0x45")]((r=>{let i=Wa("0x11f")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Wa("0x5d")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Wa("0x4")](t){const e=t[Wa("0xa5")],n=t[Wa("0x7e")];t[Wa("0xa5")]=null,null!=e&&(e.next=null),t.next=null,null!=n&&(n[Wa("0xa5")]=null),Wa("0xa7")==this._suggestionState.get(t)&&(this[Wa("0x105")][Wa("0xc4")](t,Wa("0x64")),this[Wa("0xd8")](Wa("0xd2"),t,e,n))}[Wa("0x41")](t){const n=t.id,o=this[Wa("0x68")](t);if(this._adapter&&this[Wa("0x54")][Wa("0x10a")]){const s=this[Wa("0xb1")][Wa("0x2f")].get(Wa("0x6b")),r=o[Wa("0x91")],i=o.subType?o[Wa("0x44")]+":"+o.subType:o[Wa("0x44")],x=this[Wa("0xb1")][Wa("0xed")],a=s[Wa("0x104")](Yo(x,Wa("0xd"))),c={id:n,type:i,hasComments:r,data:t[Wa("0x6")]||null,originalSuggestionId:t[Wa("0x95")]||null,attributes:o[Wa("0x128")]};this[Wa("0x54")][Wa("0x10a")](c)[Wa("0xda")]((t=>{o[Wa("0x2e")]=!0,s.remove(a),t&&t.createdAt&&(this[Wa("0x126")][Wa("0x24")](n).createdAt=t[Wa("0x81")])}))[Wa("0x63")]((t=>{throw(0,e.logWarning)(Wa("0x97")),this[Wa("0xb1")].model[Wa("0xcf")]({isUndoable:!1},(()=>{o[Wa("0x23")]()})),o[Wa("0x32")](),this[Wa("0x126")][Wa("0x22")](o.id),this._suggestionState[Wa("0x22")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[Wa("0xb1")][Wa("0x2f")][Wa("0x24")](Wa("0x6b")),o=this.getSuggestion(t);if(this[Wa("0x54")]&&this[Wa("0x54")][Wa("0x11")])if(o[Wa("0x2e")]){const o=n[Wa("0x104")](Yo(this[Wa("0xb1")][Wa("0xed")],"PENDING_ACTION_SUGGESTION"));this[Wa("0x54")][Wa("0x11")](t,e).then((()=>{n[Wa("0xa4")](o)}))}else o.on(Wa("0xc9"),(()=>{this[Wa("0xc2")](t,e)}))}[Wa("0xa2")](t){if(!this[Wa("0x54")]||!this[Wa("0x54")].getSuggestion)throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[Wa("0x54")].getSuggestion(t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[Wa("0x134")](t),r=this[Wa("0x126")].get(e)||this[Wa("0x10e")](n,o,e,s,{});switch(this[Wa("0x40")](r,n,o,s),this[Wa("0x105")][Wa("0x24")](r)){case"notReady":this[Wa("0xa2")](e)[Wa("0xda")]((t=>{let n=Promise[Wa("0xb4")]();t.hasComments&&(n=this[Wa("0x5a")][Wa("0xe1")]({channelId:this[Wa("0xb1")][Wa("0x7")].get(Wa("0x3f")),threadId:e})),n.then((()=>{this[Wa("0x68")](t)[Wa("0x2e")]=!0}))})),this[Wa("0x105")][Wa("0xc4")](r,Wa("0x112"));break;case Wa("0x64"):this[Wa("0xc2")](e,{state:Wa("0xc0")});case Wa("0x8d"):this[Wa("0x105")][Wa("0xc4")](r,"ready"),this[Wa("0xd8")]("suggestionLoaded",r);break;case Wa("0xa7"):this[Wa("0xd8")](Wa("0x70"),r)}return r[Wa("0x27")](t),r}[Wa("0x108")](t){const e=Array[Wa("0x130")](t)[Wa("0x80")]((t=>!t[Wa("0x12f")])),n=this[Wa("0x5b")]({skipNotAttached:!0})[Wa("0x80")]((t=>!t[Wa("0x12f")])),o=n.filter((e=>!t[Wa("0x4c")](e))),s=new Map(n[Wa("0xb9")]((t=>[t,this[Wa("0xec")][Wa("0x9a")](t[Wa("0x44")],t[Wa("0x2d")],Wa("0xe"))]))),r=new Map(n.map((t=>[t,t[Wa("0xe2")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Wa("0xb")];t++)a(e[t],e,t+1);for(let t=0;t<e[Wa("0xb")];t++)a(e[t],o,0);for(let t=0;t<e[Wa("0xb")];t++){const n=e[t];!x.has(n)&&n[Wa("0xa5")]&&(n.previous[Wa("0x7e")]===n&&(n[Wa("0xa5")].next=null),n[Wa("0xa5")]=null),!i.has(n)&&n[Wa("0x7e")]&&(n[Wa("0x7e")][Wa("0xa5")]===n&&(n[Wa("0x7e")][Wa("0xa5")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[Wa("0xb")];o++){const n=c(t,e[o]);n&&(n[0][Wa("0x7e")]=n[1],n[1].previous=n[0],i[Wa("0x104")](n[0]),x.add(n[1]))}}function c(t,e){if(t[Wa("0x6a")].id!==e[Wa("0x6a")].id)return null;const n=s[Wa("0x24")](t)(t,e,r[Wa("0x24")](t),r[Wa("0x24")](e));return n&&s.get(e)(t,e,r.get(t),r[Wa("0x24")](e))?n[1][Wa("0x6c")]&&n[1][Wa("0x6c")][Wa("0xb")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[Wa("0x130")](t),n=this[Wa("0x5b")]({skipNotAttached:!0}),o=n[Wa("0x80")]((e=>!t[Wa("0x4c")](e))),s=new Map(e[Wa("0xb9")]((t=>[t,this[Wa("0xec")][Wa("0x9a")](t[Wa("0x44")],t.subType,Wa("0x10b"))]))),r=new Map(n[Wa("0xb9")]((t=>[t,t[Wa("0xb2")]()])));for(let t=0;t<e[Wa("0xb")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[Wa("0x44")]!==e.type||o.author.id!==e[Wa("0x6a")].id||o[Wa("0x2d")]!==e[Wa("0x2d")])continue;const x=s[Wa("0x24")](e),a=r[Wa("0x24")](e),c=r[Wa("0x24")](o),l=e[Wa("0x6c")]&&e[Wa("0x6c")][Wa("0xb")],u=o[Wa("0x6c")]&&o.commentThread.length;if(!l&&x(c,a))return t[Wa("0x35")](o,e),r[Wa("0x22")](e),!0;if(!u&&x(a,c))return t[Wa("0x35")](e,o),r[Wa("0x22")](o),!0}return!1}}[Wa("0x35")](t,e){if(t[Wa("0x12f")])for(const n of e[Wa("0xb2")]())t[Wa("0x138")](n);else{const n=e[Wa("0xe2")]().end;this[Wa("0x59")](t,this[Wa("0x60")][Wa("0x11c")](t[Wa("0xe2")]()[Wa("0x8f")],n))}e[Wa("0x3c")]()}}class Va{constructor(t){this._editor=t,this[Wa("0x60")]=t[Wa("0x86")],this[Wa("0x37")]=new Map,this._defaultCallbacks=new Map,this[Wa("0xf8")]()}[Wa("0xf2")](t,e,n,o,s,r){return new Zo(this[Wa("0x60")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Wa("0x9a")](t,e,Wa("0x125"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,Wa("0x23"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Wa("0x37")][Wa("0xc4")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[Wa("0x24")](o)||this[Wa("0x79")].get(t+":"+n)}[Wa("0xf8")](){const t=()=>{},e=t=>{t.sort(((t,e)=>t[Wa("0x8f")].isBefore(e[Wa("0x8f")])?1:-1)),this[Wa("0x60")][Wa("0x45")]((e=>{for(const n of t){let t;t=n[Wa("0x89")].isAtEnd&&n[Wa("0x89")][Wa("0x10f")]==n.start[Wa("0x1b")]?e[Wa("0x18")](n[Wa("0x8f")][Wa("0x1b")],"on"):e.createSelection(n),this[Wa("0x60")][Wa("0xaf")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Wa("0x60")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Wa("0xb9")]((t=>(Xa(t)&&(t=this[Wa("0x60")][Wa("0x11c")](t[Wa("0x89")])),t)))[Wa("0x80")]((t=>Wa("0x3d")!==t.root.rootName));if(r.length<1)return;const x=Array[Wa("0x130")](this[Wa("0x60")][Wa("0x5")][Wa("0x8e")][Wa("0xb2")]())[Wa("0xb9")]((t=>i.LiveRange[Wa("0xba")](t)));n.setSelection(r);for(const t of this[Wa("0x38")][Wa("0x135")][Wa("0x135")]())t[Wa("0xfb")]();s[Wa("0x66")]({forceDefaultExecution:!0}),this[Wa("0x38")].execute(o,...s);const a=x[Wa("0x80")]((t=>Wa("0x3d")!=t[Wa("0xc3")][Wa("0x4e")]));a[Wa("0xb")]>0&&n.setSelection(a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[Wa("0xb")]&&1==e.length&&t[0][Wa("0x89")][Wa("0xdf")](e[0][Wa("0x8f")]),s=(t,e,n,o)=>Za(t,e,n,o,this[Wa("0x60")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks[Wa("0xc4")]("insertion:accept",t),this[Wa("0x79")].set(Wa("0x39"),e),this[Wa("0x79")][Wa("0xc4")](Wa("0xfe"),o),this[Wa("0x79")][Wa("0xc4")](Wa("0x42"),s),this[Wa("0x79")][Wa("0xc4")](Wa("0x9e"),e),this[Wa("0x79")].set(Wa("0x5c"),t),this[Wa("0x79")][Wa("0xc4")](Wa("0x82"),o),this[Wa("0x79")][Wa("0xc4")](Wa("0xc5"),s),this._defaultCallbacks[Wa("0xc4")](Wa("0xde"),n),this[Wa("0x79")][Wa("0xc4")](Wa("0x111"),t),this._defaultCallbacks[Wa("0xc4")](Wa("0x109"),o),this[Wa("0x79")][Wa("0xc4")]("formatInline:chain",t),this[Wa("0x79")][Wa("0xc4")](Wa("0x47"),n),this._defaultCallbacks[Wa("0xc4")](Wa("0x84"),t),this[Wa("0x79")][Wa("0xc4")](Wa("0xa3"),o),this[Wa("0x79")][Wa("0xc4")](Wa("0xea"),t)}}function Ka(t,e,n){for(const o of e[Wa("0x10f")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[Wa("0xc3")]==o)return!1;if(!n[Wa("0x1a")](o))return!1;if(t[Wa("0x30")](o)||t.isLimit(o))return!0}return!1}function Xa(t){return t.end[Wa("0x10f")]==t.start.nodeAfter&&t[Wa("0x89")].isAtStart}function qa(t,e,n,o){const s=t=>!t[Wa("0x124")].is(Wa("0xae"))&&!o[Wa("0x30")](t[Wa("0x124")]),r=t[Wa("0x8f")][Wa("0x62")](s),i=t.end[Wa("0x62")](s,{direction:Wa("0x9b")});return!(t[Wa("0x8f")][Wa("0xdf")](r)&&t[Wa("0x89")][Wa("0xdf")](i)||(r.isBefore(i)?n[Wa("0xe0")](e,{range:n[Wa("0x11c")](r,i)}):n[Wa("0xc8")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[Wa("0x8f")].nodeAfter;return e&&e.is("element")}function Qa(t,e){const n=e.schema.isObject(t)||e[Wa("0x3e")][Wa("0xe6")](t);return e[Wa("0x11c")](e[Wa("0x93")](t,Wa("0x9f")),n?e[Wa("0x7a")](t):e.createPositionAt(t,Wa("0x89")))}function Za(t,e,n,o,s){if(n[Wa("0x89")][Wa("0xdf")](o[Wa("0x8f")]))return!0;if(t.type!=e.type)return!1;if(!n[Wa("0x89")][Wa("0xb8")](o[Wa("0x8f")]))return!1;const r=s[Wa("0x11c")](n[Wa("0x89")],o.start)[Wa("0xbd")]();for(const t of r)if([Wa("0x11e"),Wa("0xd6")][Wa("0x129")](t[Wa("0x44")])&&s[Wa("0x3e")].isLimit(t[Wa("0x124")]))return!1;return!0}const Ya=["_pendingAction","isEnabled","bind","get","_setPendingAction","execute","unbind","acceptSuggestion","destroy","view","PENDING_ACTION_SUGGESTION","model","PendingActions","canAccept","discardSuggestion","canDiscard","listenTo","_removePendingAction","remove","commands","add","change:isDirty","_discardCommand","plugins","commentThreadController","_editor","_acceptCommand"];var tc,ec;tc=Ya,ec=329,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x6")]=e,this[nc("0x4")]=n,this[nc("0x13")]=o,this[nc("0x14")]=t,this[nc("0x15")]=t[nc("0xe")][nc("0x19")]("acceptSuggestion"),this[nc("0x11")]=t[nc("0xe")][nc("0x19")](nc("0x9")),this[nc("0x4")][nc("0x18")](nc("0x17")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this.view.bind(nc("0x8")).to(this[nc("0x15")],"isEnabled"),this[nc("0x4")][nc("0x18")](nc("0xa")).to(this[nc("0x11")],nc("0x17")),this._pendingAction=null,n.isDirty&&this._setPendingAction(),this[nc("0xb")](n,nc("0x2"),(()=>this[nc("0x2")]())),this[nc("0xb")](n,nc("0x9"),(()=>this[nc("0x9")]())),this[nc("0xb")](n,nc("0x10"),(()=>{n.isDirty?this[nc("0x1a")]():this[nc("0xc")]()}))}acceptSuggestion(){this[nc("0x15")][nc("0x0")](this[nc("0x6")].id)}discardSuggestion(){this[nc("0x11")][nc("0x0")](this[nc("0x6")].id)}[nc("0x3")](){this.view[nc("0x1")](nc("0x17")),this[nc("0x4")][nc("0x1")](nc("0x8")),this[nc("0x4")].unbind(nc("0xa")),this.stopListening(),this[nc("0x13")][nc("0x3")](),this._pendingAction&&this._removePendingAction()}_setPendingAction(){const t=Yo(this[nc("0x14")].locale,nc("0x5"));this[nc("0x16")]=this[nc("0x14")][nc("0x12")][nc("0x19")](nc("0x7"))[nc("0xf")](t)}[nc("0xc")](){null!==this[nc("0x16")]&&this._editor[nc("0x12")][nc("0x19")](nc("0x7"))[nc("0xd")](this[nc("0x16")]),this[nc("0x16")]=null}}const sc=["set","_model","setData","isDirty","locale","_localUser","CommentView","element","authoredAt","canAccept","_config","fire","isEnabled","bind","delegate","disabledSubmit","commentThreadInputView","cancel","hasDirtyComment","focus","value","removeComment","destroy","commentsListView","_createCommentThreadInputView","disableComments","commentInputView","addComment","commentThread","submit","_createCommentViews","showInput","isActive","canDiscard","isReadOnly","length"];var rc,ic;rc=sc,ic=277,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x22")]=null,this.commentThreadInputView=null,this[xc("0xb")]("isActive",!1),this.set(xc("0x13"),e.authoredAt),this.bind(xc("0x13")).to(e),this[xc("0xb")]("descriptionParts",[]),this[xc("0xb")](xc("0xe"),!1),this[xc("0xb")](xc("0x17"),!1),this[xc("0xb")](xc("0x14"),!1),this.set(xc("0x8"),!1),this[xc("0xc")]=e,this[xc("0x10")]=n,this[xc("0x15")]=o,o[xc("0x0")]?this[xc("0xb")]("length",1):this._createCommentViews()}[xc("0x1e")](){this[xc("0x12")][xc("0x1e")]()}[xc("0x21")](){this.commentsListView&&this.commentsListView[xc("0x21")](),this[xc("0x1b")]&&this.commentThreadInputView[xc("0x21")](),super.destroy()}[xc("0x5")](){const{CommentsListView:t}=this[xc("0x15")];this[xc("0x22")]=new t(this[xc("0xf")],this[xc("0xc")].commentThread,Object.assign({CommentView:this[xc("0x15")][xc("0x11")]},this._config)),this[xc("0x22")][xc("0x19")](xc("0x20")).to(this),this[xc("0x22")][xc("0x19")]("updateComment").to(this),this.commentsListView[xc("0x18")]("isActive").to(this),this.set(xc("0xa"),this[xc("0x22")][xc("0xa")]+1),this.bind(xc("0xa")).to(this[xc("0x22")],xc("0xa"),(t=>t+1)),this[xc("0x1b")]=this[xc("0x23")](),this.on(xc("0x20"),(()=>this.focus())),this[xc("0x18")](xc("0xe")).to(this[xc("0x22")],xc("0x1d"),this.commentThreadInputView.commentInputView,xc("0x1f"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[xc("0x15")],e=new t(this[xc("0xf")],this[xc("0x10")],this[xc("0x15")].editorConfig),n=e[xc("0x1")];return e[xc("0x18")](xc("0x6")).to(this,xc("0x7"),this[xc("0xc")][xc("0x3")],xc("0x9"),n,xc("0x1f"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x4"),((t,e)=>{this[xc("0x16")](xc("0x2"),e),n.editor[xc("0xd")]("")})),n.on(xc("0x1c"),(()=>this.focus())),n[xc("0x18")](xc("0x1a")).to(this[xc("0xc")][xc("0x3")],"isReadOnly"),e}}const cc=["</p>","name","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-annotation__content-wrapper","check","ck-suggestion__user","formatDateTime","getTemplate","getExternalSuggestionNote","change:description","render",'" title="',"ck-comment__info-time",'<span class="ck-suggestion-color" style="background-color: ',"discardButton","ck-suggestion--accept","ck-annotation__info-time","<p>","title","set","isExternal","userView","EXTERNAL_AVATAR","ck-annotation__user","creator","attributes",'"></span>',"ck-suggestion-wrapper","ck-suggestion-wrapper--active","acceptButton","innerHTML","EXTERNAL_IMPORT_WORD_AVATAR","@external","ck-suggestion","span","ck-suggestion__info","cancel","ck-suggestion__info-name","discardSuggestion","canDiscard",'<span class="ck-suggestion-type">',"fire","_descriptionElement","ck-annotation","type","Accept suggestion","_config","innerText","execute","</span>","content","authoredAt","isEnabled","setTemplate","acceptSuggestion","author","extendTemplate","ck-suggestion--discard","ck-annotation__info-name","color","children","commentsListView","getUserViewNotificationText","descriptionParts","commentThreadInputView","element","ck-suggestion__main","_createButton","push","bindTemplate","querySelector",".ck-annotation__content-wrapper","map","_model","locale","bind","ck-suggestion-","source","disableComments","Discard suggestion","description","div","split","ck-suggestion--disabled-comments","ck-suggestion__actions"];var lc,uc;lc=cc,uc=112,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x4d")](dc("0x11"),""),this[dc("0x30")](dc("0x11")).to(this,dc("0x24"),(t=>t&&t[0]?t[0][dc("0x11")]:"")),this[dc("0x30")](dc("0x35")).to(this,dc("0x24"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=dc("0x4b")+mc(e[dc("0x17")],e[dc("0x20")])+dc("0x3a");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0xf")]=null,this.acceptButton=this[dc("0x28")](Yo(e,dc("0x12")),t.icons[dc("0x3e")],dc("0x49"),dc("0x1b"),"sw"),this[dc("0x2")].bind(dc("0x19")).to(this,"canAccept"),this[dc("0x48")]=this[dc("0x28")](Yo(e,dc("0x34")),t.icons[dc("0x9")],dc("0x1e"),dc("0xb"),"sw"),this.discardButton.bind(dc("0x19")).to(this,dc("0xc")),this[dc("0x4f")]=new r.UserView(e,this[dc("0x2e")].author,this[dc("0x23")]()),this[dc("0x4f")][dc("0x1d")]({attributes:{class:[dc("0x3f"),dc("0x51")]}}),this[dc("0x1a")](this[dc("0x41")]())}[dc("0x41")](){const t=this[dc("0x2a")],e=[{tag:dc("0x36"),attributes:{class:[dc("0x8"),"ck-annotation__info"]},children:[{tag:dc("0x7"),children:[{text:this[dc("0x4f")][dc("0x3b")]}],attributes:{class:[dc("0xa"),dc("0x1f")]}},{tag:"time",attributes:{datetime:t.to(dc("0x18")),class:[dc("0x46"),dc("0x4a")]},children:[{text:t.to(dc("0x18"),(t=>this._config[dc("0x40")](t)))}]}]},{tag:dc("0x36"),attributes:{class:[dc("0x39"),"ck-annotation__actions"]},children:[this.acceptButton,this[dc("0x48")]]},{tag:dc("0x36"),attributes:{class:[dc("0x3d")]}}];this[dc("0x2e")][dc("0x4e")]&&e[dc("0x29")]({tag:dc("0x36"),attributes:{class:["ck-comment__external"]},children:[{text:this[dc("0x42")]()}]});const n={tag:"div",attributes:{class:[dc("0x0"),t.if("isActive",dc("0x1")),t.to("type",(t=>dc("0x31")+t)),this[dc("0x13")][dc("0x33")]&&dc("0x38")],"data-suggestion-id":this[dc("0x2e")].id,"data-thread-id":this._model.commentThread.id,"data-author-id":this[dc("0x2e")][dc("0x1c")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[dc("0x6"),dc("0x10")]},children:[this[dc("0x4f")],{tag:dc("0x36"),attributes:{class:[dc("0x27"),"ck-annotation__main"]},children:e}]}]};return this.commentsListView&&this[dc("0x25")]&&n[dc("0x21")][dc("0x29")](this[dc("0x22")],this[dc("0x25")]),n}[dc("0x44")](){super[dc("0x44")](),this._descriptionElement=this[dc("0x26")][dc("0x2b")](dc("0x2c")),this[dc("0xf")].innerHTML=this[dc("0x35")],this.on(dc("0x43"),((t,e,n)=>{this[dc("0xf")][dc("0x3")]=n}))}[dc("0x28")](t,e,n,o,r){const i=new s.ButtonView(this[dc("0x2f")]);return i[dc("0x4d")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x1d")]({attributes:{class:n}}),i.on(dc("0x15"),(()=>{this[dc("0xe")](o,this[dc("0x2e")].id)})),i}getExternalSuggestionNote(){return"importWord"===this._model[dc("0x53")][dc("0x5")][dc("0x32")]?Yo(this[dc("0x2f")],dc("0x3c")):Yo(this[dc("0x2f")],"EXTERNAL_SUGGESTION")}getUserViewNotificationText(){return this[dc("0x2e")][dc("0x4e")]?"importWord"===this[dc("0x2e")][dc("0x53")]["@external"][dc("0x32")]?Yo(this[dc("0x2f")],dc("0x4"),this[dc("0x2e")][dc("0x52")][dc("0x3b")]):Yo(this[dc("0x2f")],dc("0x50"),this[dc("0x2e")].creator[dc("0x3b")]):null}}function mc(t,e){let n="";return n+=t[dc("0x37")]("*")[dc("0x2d")](((t,e)=>e%2!=0?dc("0xd")+fc(t)+dc("0x16"):fc(t))).join(""),e&&(n+=dc("0x47")+e.value+dc("0x45")+e[dc("0x4c")]+dc("0x54")),n}function fc(t){const e=document.createElement("span");return e[dc("0x14")]=t,e[dc("0x3")]}const hc=["suggestion-","suggestionLoaded","stopListening","add","Accept all suggestions","has","switchbutton","set","suggestionUnloaded","editor","Discard all selected suggestions","getAllAdjacentSuggestions","separator","getJoined","_updateController","delete","componentFactory","_initializeController","mainView","isMultiRange","registerAnnotation","value","keys","getSuggestion","activeMarkers","focus","config","_viewToController","CommentsUI","_createUIButton","values","EditorAnnotations","Annotations","comments.maxThreadTotalWeight","editing","trackChanges","CommentsRepository","acceptButton","actionView","isOn","_handleControllerBuffer","unbind","trackChanges.disableComments","getFirstRange","discardSelectedSuggestions","clear","source","view","commentThread","createAnnotationView","change:activeAnnotations","isEnabled","getMarkers","map","_refreshActiveMarkers","remove","reduce","button","some","init","model","requires","Track changes","length","TrackChangesEditing","_annotationViews","change:previous","comments.maxCommentCharsWhenCollapsed","_disableComments","isInContent","Accept all selected suggestions","getByInnerView","comments.maxCommentsWhenCollapsed","_destroyController","arrowView","discardAllSuggestions","push","commandName","discardButton","commands","isDirty","SuggestionThreadView","suggestionChanged","getMarkerNames","addComment","from","_handleSuggestionControllerDelayed","destroy","listenTo","buttonView","acceptAllSuggestions","locale","_suggestionToController","activeAnnotations","plugins","size","comments.editorConfig","_descriptionFactory","descriptionParts","type","get","head","execute","define","createAnnotation","filter","hasSuggestion","getRanges","getDescriptions","bind"];var pc,bc;pc=hc,bc=415,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x56")](){return[za,r.Users,Ec("0x3d"),Ec("0x39"),Ec("0x38")]}static get pluginName(){return"TrackChangesUI"}constructor(t){super(t),this[Ec("0x7")]=new Map,this[Ec("0x34")]=new Map,this[Ec("0x5a")]=new Map,this[Ec("0x41")]=new Map;const e=this.editor[Ec("0x33")];e.define("trackChanges.SuggestionThreadView",gc),e[Ec("0x12")]("trackChanges.disableComments",!1),this[Ec("0x5d")]=e[Ec("0xf")](Ec("0x43"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x41")][Ec("0xa")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Ec("0x7")][Ec("0x1e")](t);n||e?n&&e&&this[Ec("0x62")](t):this[Ec("0x2a")](t)}this[Ec("0x22")][Ec("0x9")][Ec("0xf")](Ec("0x38")).refreshSelectedViews(),this[Ec("0x4f")](),this[Ec("0x41")][Ec("0x46")]()}),10),this[Ec("0x41")][Ec("0x20")](t,e)}[Ec("0x54")](){const t=this[Ec("0x22")],e=t[Ec("0x9")][Ec("0xf")]("TrackChangesEditing"),n=t[Ec("0x9")][Ec("0xf")](Ec("0x39")),o=t[Ec("0x9")][Ec("0xf")](Ec("0x38")),s=t[Ec("0x9")].get("CommentsRepository");t.ui[Ec("0x29")][Ec("0x1c")]("trackChanges",(t=>this[Ec("0x36")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Ec("0x0")](this[Ec("0x7")])){const o=e[Ec("0x24")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x2c")]){s[Ec("0x65")](...t[Ec("0x16")]());continue}const e=t[Ec("0x44")]();if(s[Ec("0x58")]>0){const t=s[0][Ec("0x26")](e);if(t){s[0]=t;continue}}s[Ec("0x65")](e)}t[Ec("0x65")]([n[Ec("0x48")],s])}return t})),this.listenTo(e,Ec("0x1a"),((t,e)=>{this[Ec("0x3")](e,Ec("0x5b"),((t,n,o,s)=>{e[Ec("0x5e")]&&(null==o?(this[Ec("0x27")](s[Ec("0x10")]),this[Ec("0x1")](e,!1)):(this._updateController(o.head),this[Ec("0x1")](e,!0)))})),null===e.previous?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x27")](e.head)})),this[Ec("0x3")](e,Ec("0x21"),((t,e,n)=>{this[Ec("0x1b")](e,"change:previous"),this[Ec("0x41")][Ec("0x28")](e);const o=n?n[Ec("0x10")]:e,s=this[Ec("0x7")][Ec("0xf")](o);null!==n&&this[Ec("0x27")](o),null===n&&s&&this[Ec("0x62")](e)})),this[Ec("0x3")](e,Ec("0x6b"),((t,e)=>{this[Ec("0x27")](e)})),this.listenTo(n,Ec("0x4b"),(()=>{this[Ec("0x4f")]()})),this.listenTo(s,Ec("0x6d"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x15")](n))return;const s=e[Ec("0x30")](n);this[Ec("0x7")][Ec("0xf")](s)[Ec("0x48")][Ec("0x32")]()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[Ec("0x22")].plugins[Ec("0xf")](Ec("0x39")),e=this.editor[Ec("0x9")].get(Ec("0x59")),n=Array[Ec("0x0")](t[Ec("0x8")],(t=>t.innerView))[Ec("0x14")]((t=>this._viewToController[Ec("0x1e")](t))),o=[];for(const t of n){const e=this[Ec("0x34")].get(t)[Ec("0x55")][Ec("0x24")]();o[Ec("0x65")](...e[Ec("0x51")](((t,e)=>[...t,...e[Ec("0x6c")]()]),[]))}e[Ec("0x31")]=o}[Ec("0x36")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x22")][Ec("0x68")].get(Ec("0x3c")),r=Yo(t,Ec("0x57"));n[Ec("0x4")][Ec("0x20")]({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-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x4")][Ec("0x18")]("isOn").to(o,Ec("0x2e")),n.buttonView.on(Ec("0x11"),(()=>{o[Ec("0x11")](),this.editor[Ec("0x3b")][Ec("0x48")][Ec("0x32")]()}));const i=new e.Collection,x=[{type:Ec("0x1f"),model:{withText:!0,label:r,commandName:Ec("0x3c")}},{type:Ec("0x25")},{type:Ec("0x52"),model:{withText:!0,label:Yo(t,Ec("0x1d")),commandName:Ec("0x5")}},{type:Ec("0x52"),model:{withText:!0,label:Yo(t,Ec("0x5f")),commandName:"acceptSelectedSuggestions"}},{type:Ec("0x52"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Ec("0x64")}},{type:Ec("0x52"),model:{withText:!0,label:Yo(t,Ec("0x23")),commandName:Ec("0x45")}}];for(const t of x){let e={type:Ec("0x25")};if(t[Ec("0x55")]){const n=new s.Model(t[Ec("0x55")]),o=this[Ec("0x22")][Ec("0x68")][Ec("0xf")](n.commandName);n[Ec("0x18")](Ec("0x40"),"isEnabled").to(o,"value","isEnabled"),e={type:t[Ec("0xe")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ec("0x55")]))[Ec("0x4e")]((t=>this[Ec("0x22")][Ec("0x68")][Ec("0xf")](t[Ec("0x55")][Ec("0x66")]))),c=n[Ec("0x4")];return c[Ec("0x3f")][Ec("0x42")](Ec("0x4c")),c[Ec("0x63")].unbind(Ec("0x4c")),c[Ec("0x3f")].bind(Ec("0x4c")).to(o,Ec("0x4c")),c[Ec("0x63")][Ec("0x18")](Ec("0x4c")).toMany(a,"isEnabled",((...t)=>t[Ec("0x53")]((t=>t)))),n.on(Ec("0x11"),(t=>{this.editor.execute(t[Ec("0x47")].commandName),this[Ec("0x22")].editing.view[Ec("0x32")]()})),n}[Ec("0x2a")](t){const e=this.editor,n=e[Ec("0x33")],o=e.plugins.get(Ec("0x39")),s=e[Ec("0x9")][Ec("0xf")](Ec("0x3d")),i=e.plugins.get(Ec("0x38")),x=e.plugins[Ec("0xf")](r.Users).me,a=n.get(Ec("0x3c"))[Ec("0x6a")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x9")].get(Ec("0x35"));let u,d;this[Ec("0x5a")].has(t.id)?(d=this._annotationViews[Ec("0xf")](t.id),u=d[Ec("0x2b")]):(u=new a(e[Ec("0x6")],t,x,{disableComments:this[Ec("0x5d")],editorConfig:n[Ec("0xf")](Ec("0xb")),maxCommentsWhenCollapsed:n[Ec("0xf")](Ec("0x61")),maxThreadTotalWeight:n[Ec("0xf")](Ec("0x3a")),maxCommentCharsWhenCollapsed:n[Ec("0xf")](Ec("0x5c")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Ec("0x6"))),CommentView:n[Ec("0xf")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x3e")].on("execute",(()=>{e[Ec("0x3b")][Ec("0x48")][Ec("0x32")]()})),u[Ec("0x67")].on(Ec("0x11"),(()=>{e[Ec("0x3b")][Ec("0x48")][Ec("0x32")]()})),d=o[Ec("0x4a")](this[Ec("0x22")][Ec("0x6")],u),d[Ec("0x18")](Ec("0x69")).to(u,Ec("0x69")),d.bind(Ec("0x58")).to(u),d.bind("type").to(u,Ec("0xe"),(t=>"suggestion-"+t)),this[Ec("0x5a")][Ec("0x20")](t.id,d));const g=s.createCommentThreadController(t[Ec("0x49")],u),m=new oc(e,t,u,g),f=t[Ec("0x24")]()[Ec("0x14")]((t=>t.isInContent));u[Ec("0xd")]=e.plugins.get(Ec("0x59"))[Ec("0xc")][Ec("0x17")](f),this._suggestionToController[Ec("0x20")](t,m),this[Ec("0x34")][Ec("0x20")](u,m);const h=o[Ec("0x13")]({view:d,target:()=>{const n=[],o=t[Ec("0x24")]().filter((t=>t.isInContent));for(const t of o)n[Ec("0x65")](...t[Ec("0x4d")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x3b")],n)},type:()=>Ec("0x19")+m[Ec("0x48")][Ec("0xe")]});o[Ec("0x1c")](h),i[Ec("0x2d")](h)}[Ec("0x62")](t){const e=this[Ec("0x22")].plugins[Ec("0xf")](Ec("0x39")),n=this[Ec("0x7")][Ec("0xf")](t),o=n[Ec("0x48")],s=e[Ec("0x60")](o);s&&e[Ec("0x50")](s),this[Ec("0x7")][Ec("0x28")](t),this[Ec("0x34")].delete(o),n[Ec("0x2")]()}[Ec("0x27")](t){if(!t[Ec("0x5e")]||!this[Ec("0x7")][Ec("0x1e")](t))return;const e=this[Ec("0x22")].plugins[Ec("0xf")](Ec("0x59")),n=this[Ec("0x7")].get(t),o=t[Ec("0x24")]();n[Ec("0x48")][Ec("0xd")]=e[Ec("0xc")][Ec("0x17")](o)}[Ec("0x2")](){for(const t of this[Ec("0x7")][Ec("0x2f")]())this[Ec("0x62")](t);for(const t of this[Ec("0x5a")][Ec("0x37")]())t[Ec("0x2b")][Ec("0x2")]();super[Ec("0x2")]()}}var Tc,Cc,yc=["addSuggestionData","plugins","getSuggestion","TrackChanges","addSuggestion","get","editor","pluginName","Comments","getSuggestions","adapter"];Tc=yc,Cc=349,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[za,_c,kc("0x0")]}static get[kc("0xa")](){return kc("0x6")}set adapter(t){this[kc("0x9")].plugins[kc("0x8")](za)[kc("0x2")]=t}get[kc("0x2")](){return this[kc("0x9")].plugins.get(za)[kc("0x2")]}[kc("0x7")](t){return this[kc("0x9")][kc("0x4")][kc("0x8")](za)[kc("0x3")](t)}[kc("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x9")][kc("0x4")].get(za).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x5")](t){return this[kc("0x9")][kc("0x4")].get(za).getSuggestion(t)}}const vc=["appendChild","filter","function","discardAllSuggestions","init","RevisionTracker","_adapter","context","editor","DocumentOutline","plugins","has","get","destroy","data","end","Users","set","trackChangesData.editorCreator","getRootNames","trackChangesData","push","getSuggestions","addSuggestionData","execute","Pagination","users","adapter","names","TrackChangesEditing","constructor","from","every","requires","define","div","editorCreator","concat","CommentsRepository","result","createElement","WordCount","useAnonymousUser","addUser","string","WebSocketGateway","TrackChangesDataGetter","reduce","pluginName","track-changes-data-invalid-editor-creator","createDocumentFragment","extraPlugins","map","toolbar","config","acceptAllSuggestions","getDataWithAcceptedSuggestions"];var Rc,Sc;Rc=vc,Sc=112,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=["initialData",Ic("0x9"),Ic("0x37")],Nc=[Ic("0x2f"),Ic("0x7"),"Autosave",Ic("0x2b"),Ic("0x1b"),Ic("0xb")];class wc extends t.Plugin{static get[Ic("0x23")](){return[za]}static get[Ic("0x32")](){return"TrackChangesData"}[Ic("0x6")](){const t=this[Ic("0xa")];if(t[Ic("0x38")][Ic("0x24")](Ic("0x14"),(e=>t[Ic("0x20")].create("",e))),Ic("0x4")!=typeof t[Ic("0x38")].get("trackChangesData")[Ic("0x26")])throw new e.CKEditorError(Ic("0x33"))}[Ic("0x1")](t){return Oc(this[Ic("0xa")],!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Ic("0xa")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x32")](){return Ic("0x30")}constructor(t){super(t),this[Ic("0x29")]=Ic("0x11")}[Ic("0x6")](){this[Ic("0xa")][Ic("0xc")][Ic("0xe")](Ic("0x28"))[Ic("0x1d")]={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.editor.plugins.get("TrackChangesEditing")[Ic("0x8")]=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t[Ic("0x38")][Ic("0x1e")]())Lc.includes(n)||(e[n]=t[Ic("0x38")][Ic("0xe")](n));const n=t[Ic("0x20")].builtinPlugins||[],o=e.extraPlugins||[];delete e[Ic("0x35")];const s=n[Ic("0x27")](e[Ic("0xc")])[Ic("0x27")](o)[Ic("0x36")]((t=>Ic("0x2e")==typeof t?n.find((e=>e[Ic("0x32")]==t)):t)),r=Array[Ic("0x21")](new Set(s)),i=new Map;return e[Ic("0xc")]=r[Ic("0x3")]((t=>Fc(t,i))),e[Ic("0xc")][Ic("0x17")](Mc),e[Ic("0xc")][Ic("0x17")](za),e}(t),s=document[Ic("0x34")](),r=t[Ic("0x38")][Ic("0xe")](Ic("0x16"))[Ic("0x26")],i=await r(o,(()=>function(t){const e=document[Ic("0x2a")](Ic("0x25"));return t[Ic("0x2")](e),e}(s)));!function(t,e){const n=t.model.document[Ic("0x15")]()[Ic("0x31")](((e,n)=>(e[n]=t[Ic("0x10")][Ic("0xe")]({rootName:n}),e)),{}),o=t[Ic("0xc")][Ic("0xe")]("Users")[Ic("0x1c")][Ic("0x36")]((t=>({id:t.id,name:t.name}))),s=t[Ic("0xc")][Ic("0xe")](Ic("0x1f"))[Ic("0x18")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0xc")].get(Ic("0x12")),i=e[Ic("0xc")][Ic("0xe")]("TrackChangesEditing");for(const t of o)r.getUser(t.id)||r[Ic("0x2d")](t);r.me||r[Ic("0x2c")]();for(const t of s)i[Ic("0x19")](t);e.data[Ic("0x13")](n)}(t,i),i[Ic("0x1a")](Ic(e?"0x0":"0x5"));const x=i[Ic("0x10")][Ic("0xe")](n);return await i[Ic("0xf")](),x}function Fc(t,e){const n=Ic("0x4")==typeof t?t[Ic("0x32")]||t.name:t;if(e[Ic("0xd")](n))return e[Ic("0xe")](n);if(e[Ic("0x13")](n,!0),n&&Nc.includes(n))return e[Ic("0x13")](n,!1),!1;if(!t[Ic("0x23")])return e[Ic("0x13")](n,!0),!0;const o=t[Ic("0x23")][Ic("0x22")]((t=>Fc(t,e)));return e[Ic("0x13")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();