@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230911.0 → 0.0.0-nightly-20230913.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 (64) hide show
  1. package/build/track-changes.js +2 -2
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -1,5 +1,5 @@
1
- !function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* 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={})),
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 e={417:(e,t,n)=>{e.exports=n(720)("./src/collaboration-core.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},331:(e,t,n)=>{e.exports=n(79)("./src/enter.js")},181:(e,t,n)=>{e.exports=n(79)("./src/typing.js")},273:(e,t,n)=>{e.exports=n(79)("./src/ui.js")},209:(e,t,n)=>{e.exports=n(79)("./src/utils.js")},995:(e,t,n)=>{e.exports=n(79)("./src/widget.js")},720:e=>{"use strict";e.exports=CKEditor5.collaborationDll},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(o){var s=t[o];if(void 0!==s)return s.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wx});var e=n(704),t=n(209),s=n(273),r=n(417),i=n(492),a=n(995);const x=["_disableUnsupportedCommands","editor","_enabledCommands","isEnabled","commands","_enableCommands","execute","_isEnabledBasedOnSelection","refresh","value","has","forceDisabled","TrackChangesCommand","affectsData","clearForceDisabled"];var c,l;c=x,l=399,function(e){for(;--e;)c.push(c.shift())}(++l);const d=function(e,t){return x[e-=0]};class u extends e.Command{constructor(e,t){super(e),this._enabledCommands=t,this[d("0x0")]=!1,this[d("0xe")](),this[d("0xd")]=!1}[d("0xe")](){this[d("0x9")]=!0}[d("0xc")](){this[d("0x0")]=!this[d("0x0")],this.value?this[d("0x6")]():this[d("0xb")]()}[d("0x6")](){for(const e of this[d("0x7")].commands[d("0xa")]())e[d("0x4")]&&!this._enabledCommands[d("0x1")](e)&&e[d("0x2")](d("0x3"))}[d("0xb")](){for(const e of this[d("0x7")][d("0xa")][d("0xa")]())e[d("0x4")]&&!this[d("0x8")][d("0x1")](e)&&e[d("0x5")](d("0x3"))}}const g=["model","isEnabled","acceptSuggestion","_suggestions","get","getRanges","editor","_isEnabledBasedOnSelection","TrackChangesEditing","execute","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=172,function(e){for(;--e;)m.push(m.shift())}(++f);const h=function(e,t){return g[e-=0]};class p extends e.Command{constructor(e,t){super(e),this[h("0x7")]=t,this.refresh(),this[h("0x0")]=!1}refresh(){this[h("0x5")]=!0}[h("0x2")](e){const n=this[h("0x7")][h("0x8")](e);if(!n)throw new t.CKEditorError(h("0x3"),this);const o=n[h("0x9")]();this[h("0xa")][h("0x4")].canEditAt(o)&&this[h("0xa")].plugins[h("0x8")](h("0x1"))[h("0x6")](n)}}const b=["editor","refresh","get","canEditAt","model","execute","_suggestions","isEnabled","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","plugins"];var E,_;E=b,_=158,function(e){for(;--e;)E.push(E.shift())}(++_);const T=function(e,t){return b[e-=0]};class C extends e.Command{constructor(e,t){super(e),this._suggestions=t,this[T("0x8")](),this[T("0x5")]=!1}[T("0x8")](){this[T("0x3")]=!0}[T("0x1")](e){const n=this[T("0x2")][T("0x9")](e);if(!n)throw new t.CKEditorError(T("0x4"),this);const o=n.getRanges();this.editor[T("0x0")][T("0xa")](o)&&this[T("0x7")][T("0x6")].get("TrackChangesEditing").discardSuggestion(n)}}const y=["isMultiRange","from","execute","next","getRanges","end","type","isArray","createPositionAt","splice","isTouching","join","replace","schema"," [color ","createPositionAfter","sort","isIntersecting","map","createPositionBefore","length","deletion","change","color","push","isCollapsed","isObject","isInContent"];var k,A;k=y,A=231,function(e){for(;--e;)k.push(k.shift())}(++A);const v=function(e,t){return y[e-=0]};function R(e){return e[v("0x9")](((e,t)=>"deletion"==e[v("0x1b")]&&v("0xe")!=t[v("0x1b")]?-1:v("0xe")!=e[v("0x1b")]&&"deletion"==t[v("0x1b")]?1:0))}function S(e,t){let n,o=0;const s=[],r=t[v("0x6")];for(;o<e[v("0xd")];){const i=e[o],a=e[o+1];n||(n=t[v("0xc")](i)),I(t,i,a)||(s[v("0x11")](t.createRange(n,r[v("0x13")](i)?t.createPositionAfter(i):t[v("0x1")](i,v("0x1a")))),n=null),o++}return s}function I(e,t,n){if(!n)return!1;const o=e[v("0x8")](t),s=e[v("0xc")](n);return o[v("0x3")](s)}function L(e,t,n){for(;n.length;){const o=n[v("0x2")](0,100);e[v("0xf")]((()=>{for(const e of o)e[v("0x14")]&&t[v("0x17")](e.id)}))}}const N=["getRanges","model","_suggestions","_command","values","isEnabled","editor","from","canEditAt","refresh","execute","some"];var M,w;M=N,w=137,function(e){for(;--e;)M.push(M.shift())}(++w);const O=function(e,t){return N[e-=0]};class F extends e.Command{constructor(e,t,n){super(e),this[O("0xa")]=t,this[O("0x9")]=n,this[O("0x4")](),this._isEnabledBasedOnSelection=!1}[O("0x4")](){const e=Array[O("0x2")](this._suggestions[O("0xb")]())[O("0x6")]((e=>e.isInContent));this[O("0x0")]=this[O("0xa")][O("0x0")]&&e}[O("0x5")](){const e=R(Array[O("0x2")](this._suggestions[O("0xb")]()));for(const t of e){const e=t[O("0x7")]();if(!this[O("0x1")][O("0x8")][O("0x3")](e))return}L(this[O("0x1")][O("0x8")],this[O("0xa")],e)}}const P=["execute","_isEnabledBasedOnSelection","editor","document","isEnabled","size","model","_command","_selectedSuggestions","canEditAt","selection","values","refresh"];var D,B;D=P,B=137,function(e){for(;--e;)D.push(D.shift())}(++B);const j=function(e,t){return P[e-=0]};class U extends e.Command{constructor(e,t,n){super(e),this[j("0x0")]=t,this._suggestions=n,this[j("0x1")]=new Set,this[j("0x5")](),this[j("0x7")]=!1}refresh(){const e=this[j("0x8")][j("0xc")][j("0x9")][j("0x3")],t=Array.from(this._suggestions[j("0x4")]());this[j("0x1")]=function(e,t){const n=Array[v("0x16")](e[v("0x19")]()),o=new Set;for(const s of t)if(s.isInContent)for(const t of n)for(const n of s[v("0x19")]())(t[v("0xa")](n)||e[v("0x12")]&&!s[v("0x15")]&&s[v("0x18")]&&n[v("0x1a")][v("0x3")](t.start))&&o.add(s);return o}(e,t),this.isEnabled=this[j("0x0")][j("0xa")]&&!!this._selectedSuggestions[j("0xb")]}[j("0x6")](){const e=R(Array.from(this[j("0x1")]));for(const t of e){const e=t.getRanges();if(!this[j("0x8")][j("0xc")][j("0x2")](e))return}L(this.editor.model,this[j("0x0")],e)}}const G=function(){this.__data__=[],this.size=0};const H=function(e,t){return e===t||e!=e&&t!=t};const z=function(e,t){for(var n=e.length;n--;)if(H(e[n][0],t))return n;return-1};var W=Array.prototype.splice;const V=function(e){var t=this.__data__,n=z(t,e);return!(n<0)&&(n==t.length-1?t.pop():W.call(t,n,1),--this.size,!0)};const K=function(e){var t=this.__data__,n=z(t,e);return n<0?void 0:t[n][1]};const q=function(e){return z(this.__data__,e)>-1};const X=function(e,t){var n=this.__data__,o=z(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Y=function(e){return this.__data__.get(e)};const ee=function(e){return this.__data__.has(e)};const te="object"==typeof global&&global&&global.Object===Object&&global;var ne="object"==typeof self&&self&&self.Object===Object&&self;const oe=te||ne||Function("return this")();const se=oe.Symbol;var re=Object.prototype,ie=re.hasOwnProperty,ae=re.toString,xe=se?se.toStringTag:void 0;const ce=function(e){var t=ie.call(e,xe),n=e[xe];try{e[xe]=void 0;var o=!0}catch(e){}var s=ae.call(e);return o&&(t?e[xe]=n:delete e[xe]),s};var le=Object.prototype.toString;const de=function(e){return le.call(e)};var ue=se?se.toStringTag:void 0;const ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ue&&ue in Object(e)?ce(e):de(e)};const me=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const fe=function(e){if(!me(e))return!1;var t=ge(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const he=oe["__core-js_shared__"];var pe,be=(pe=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||""))?"Symbol(src)_1."+pe:"";const Ee=function(e){return!!be&&be in e};var _e=Function.prototype.toString;const Te=function(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Ce=/^\[object .+?Constructor\]$/,ye=Function.prototype,ke=Object.prototype,Ae=ye.toString,ve=ke.hasOwnProperty,Re=RegExp("^"+Ae.call(ve).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Se=function(e){return!(!me(e)||Ee(e))&&(fe(e)?Re:Ce).test(Te(e))};const Ie=function(e,t){return null==e?void 0:e[t]};const Le=function(e,t){var n=Ie(e,t);return Se(n)?n:void 0};const Ne=Le(oe,"Map");const Me=Le(Object,"create");const we=function(){this.__data__=Me?Me(null):{},this.size=0};const Oe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Fe=Object.prototype.hasOwnProperty;const Pe=function(e){var t=this.__data__;if(Me){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Fe.call(t,e)?t[e]:void 0};var De=Object.prototype.hasOwnProperty;const Be=function(e){var t=this.__data__;return Me?void 0!==t[e]:De.call(t,e)};const je=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Me&&void 0===t?"__lodash_hash_undefined__":t,this};function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ue.prototype.clear=we,Ue.prototype.delete=Oe,Ue.prototype.get=Pe,Ue.prototype.has=Be,Ue.prototype.set=je;const Ge=Ue;const He=function(){this.size=0,this.__data__={hash:new Ge,map:new(Ne||J),string:new Ge}};const ze=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const We=function(e,t){var n=e.__data__;return ze(t)?n["string"==typeof t?"string":"hash"]:n.map};const Ve=function(e){var t=We(this,e).delete(e);return this.size-=t?1:0,t};const Ke=function(e){return We(this,e).get(e)};const qe=function(e){return We(this,e).has(e)};const Xe=function(e,t){var n=We(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function $e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}$e.prototype.clear=He,$e.prototype.delete=Ve,$e.prototype.get=Ke,$e.prototype.has=qe,$e.prototype.set=Xe;const Je=$e;const Qe=function(e,t){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Ne||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Je(o)}return n.set(e,t),this.size=n.size,this};function Ze(e){var t=this.__data__=new J(e);this.size=t.size}Ze.prototype.clear=Q,Ze.prototype.delete=Z,Ze.prototype.get=Y,Ze.prototype.has=ee,Ze.prototype.set=Qe;const Ye=Ze;const et=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const tt=function(){try{var e=Le(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const nt=function(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var ot=Object.prototype.hasOwnProperty;const st=function(e,t,n){var o=e[t];ot.call(e,t)&&H(o,n)&&(void 0!==n||t in e)||nt(e,t,n)};const rt=function(e,t,n,o){var s=!n;n||(n={});for(var r=-1,i=t.length;++r<i;){var a=t[r],x=o?o(n[a],e[a],a,n,e):void 0;void 0===x&&(x=e[a]),s?nt(n,a,x):st(n,a,x)}return n};const it=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const at=function(e){return null!=e&&"object"==typeof e};const xt=function(e){return at(e)&&"[object Arguments]"==ge(e)};var ct=Object.prototype,lt=ct.hasOwnProperty,dt=ct.propertyIsEnumerable;const ut=xt(function(){return arguments}())?xt:function(e){return at(e)&&lt.call(e,"callee")&&!dt.call(e,"callee")};const gt=Array.isArray;const mt=function(){return!1};var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=ft&&"object"==typeof module&&module&&!module.nodeType&&module,pt=ht&&ht.exports===ft?oe.Buffer:void 0;const bt=(pt?pt.isBuffer:void 0)||mt;var Et=/^(?:0|[1-9]\d*)$/;const _t=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Et.test(e))&&e>-1&&e%1==0&&e<t};const Tt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ct={};Ct["[object Float32Array]"]=Ct["[object Float64Array]"]=Ct["[object Int8Array]"]=Ct["[object Int16Array]"]=Ct["[object Int32Array]"]=Ct["[object Uint8Array]"]=Ct["[object Uint8ClampedArray]"]=Ct["[object Uint16Array]"]=Ct["[object Uint32Array]"]=!0,Ct["[object Arguments]"]=Ct["[object Array]"]=Ct["[object ArrayBuffer]"]=Ct["[object Boolean]"]=Ct["[object DataView]"]=Ct["[object Date]"]=Ct["[object Error]"]=Ct["[object Function]"]=Ct["[object Map]"]=Ct["[object Number]"]=Ct["[object Object]"]=Ct["[object RegExp]"]=Ct["[object Set]"]=Ct["[object String]"]=Ct["[object WeakMap]"]=!1;const yt=function(e){return at(e)&&Tt(e.length)&&!!Ct[ge(e)]};const kt=function(e){return function(t){return e(t)}};var At="object"==typeof exports&&exports&&!exports.nodeType&&exports,vt=At&&"object"==typeof module&&module&&!module.nodeType&&module,Rt=vt&&vt.exports===At&&te.process;const St=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||Rt&&Rt.binding&&Rt.binding("util")}catch(e){}}();var It=St&&St.isTypedArray;const Lt=It?kt(It):yt;var Nt=Object.prototype.hasOwnProperty;const Mt=function(e,t){var n=gt(e),o=!n&&ut(e),s=!n&&!o&&bt(e),r=!n&&!o&&!s&&Lt(e),i=n||o||s||r,a=i?it(e.length,String):[],x=a.length;for(var c in e)!t&&!Nt.call(e,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_t(c,x))||a.push(c);return a};var wt=Object.prototype;const Ot=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||wt)};const Ft=function(e,t){return function(n){return e(t(n))}};const Pt=Ft(Object.keys,Object);var Dt=Object.prototype.hasOwnProperty;const Bt=function(e){if(!Ot(e))return Pt(e);var t=[];for(var n in Object(e))Dt.call(e,n)&&"constructor"!=n&&t.push(n);return t};const jt=function(e){return null!=e&&Tt(e.length)&&!fe(e)};const Ut=function(e){return jt(e)?Mt(e):Bt(e)};const Gt=function(e,t){return e&&rt(t,Ut(t),e)};const Ht=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var zt=Object.prototype.hasOwnProperty;const Wt=function(e){if(!me(e))return Ht(e);var t=Ot(e),n=[];for(var o in e)("constructor"!=o||!t&&zt.call(e,o))&&n.push(o);return n};const Vt=function(e){return jt(e)?Mt(e,!0):Wt(e)};const Kt=function(e,t){return e&&rt(t,Vt(t),e)};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xt=qt&&"object"==typeof module&&module&&!module.nodeType&&module,$t=Xt&&Xt.exports===qt?oe.Buffer:void 0,Jt=$t?$t.allocUnsafe:void 0;const Qt=function(e,t){if(t)return e.slice();var n=e.length,o=Jt?Jt(n):new e.constructor(n);return e.copy(o),o};const Zt=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const Yt=function(e,t){for(var n=-1,o=null==e?0:e.length,s=0,r=[];++n<o;){var i=e[n];t(i,n,e)&&(r[s++]=i)}return r};const en=function(){return[]};var tn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(e){return null==e?[]:(e=Object(e),Yt(nn(e),(function(t){return tn.call(e,t)})))}:en;const sn=function(e,t){return rt(e,on(e),t)};const rn=function(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e};const an=Ft(Object.getPrototypeOf,Object);const xn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rn(t,on(e)),e=an(e);return t}:en;const cn=function(e,t){return rt(e,xn(e),t)};const ln=function(e,t,n){var o=t(e);return gt(e)?o:rn(o,n(e))};const dn=function(e){return ln(e,Ut,on)};const un=function(e){return ln(e,Vt,xn)};const gn=Le(oe,"DataView");const mn=Le(oe,"Promise");const fn=Le(oe,"Set");const hn=Le(oe,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Te(gn),yn=Te(Ne),kn=Te(mn),An=Te(fn),vn=Te(hn),Rn=ge;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Ne&&Rn(new Ne)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(e){var t=ge(e),n="[object Object]"==t?e.constructor:void 0,o=n?Te(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 t});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&In.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Nn=oe.Uint8Array;const Mn=function(e){var t=new e.constructor(e.byteLength);return new Nn(t).set(new Nn(e)),t};const wn=function(e,t){var n=t?Mn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var On=/\w*$/;const Fn=function(e){var t=new e.constructor(e.source,On.exec(e));return t.lastIndex=e.lastIndex,t};var Pn=se?se.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(e){return Dn?Object(Dn.call(e)):{}};const jn=function(e,t){var n=t?Mn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Un=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return Mn(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return wn(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Fn(e);case"[object Symbol]":return Bn(e)}};var Gn=Object.create;const Hn=function(){function e(){}return function(t){if(!me(t))return{};if(Gn)return Gn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const zn=function(e){return"function"!=typeof e.constructor||Ot(e)?{}:Hn(an(e))};const Wn=function(e){return at(e)&&"[object Map]"==Sn(e)};var Vn=St&&St.isMap;const Kn=Vn?kt(Vn):Wn;const qn=function(e){return at(e)&&"[object Set]"==Sn(e)};var Xn=St&&St.isSet;const $n=Xn?kt(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 eo=function e(t,n,o,s,r,i){var a,x=1&n,c=2&n,l=4&n;if(o&&(a=r?o(t,s,r,i):o(t)),void 0!==a)return a;if(!me(t))return t;var d=gt(t);if(d){if(a=Ln(t),!x)return Zt(t,a)}else{var u=Sn(t),g=u==Qn||"[object GeneratorFunction]"==u;if(bt(t))return Qt(t,x);if(u==Zn||u==Jn||g&&!r){if(a=c||g?{}:zn(t),!x)return c?cn(t,Kt(a,t)):sn(t,Gt(a,t))}else{if(!Yn[u])return r?t:{};a=Un(t,u,x)}}i||(i=new Ye);var m=i.get(t);if(m)return m;i.set(t,a),$n(t)?t.forEach((function(s){a.add(e(s,n,o,s,t,i))})):Kn(t)&&t.forEach((function(s,r){a.set(r,e(s,n,o,r,t,i))}));var f=d?void 0:(l?c?un:dn:c?Vt:Ut)(t);return et(f||t,(function(s,r){f&&(s=t[r=s]),st(a,r,e(s,n,o,r,t,i))})),a};const to=function(e){return eo(e,5)};const no=function(e){return"symbol"==typeof e||at(e)&&"[object Symbol]"==ge(e)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(e,t){if(gt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!no(e))||(so.test(e)||!oo.test(e)||null!=t&&e in Object(t))};function io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=e.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Je),n}io.Cache=Je;const ao=io;var xo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(e){var t=ao(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xo,(function(e,n,o,s){t.push(o?s.replace(co,"$1"):n||e)})),t}));const uo=function(e,t){for(var n=-1,o=null==e?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s};var go=se?se.prototype:void 0,mo=go?go.toString:void 0;const fo=function e(t){if("string"==typeof t)return t;if(gt(t))return uo(t,e)+"";if(no(t))return mo?mo.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};const ho=function(e){return null==e?"":fo(e)};const po=function(e,t){return gt(e)?e:ro(e,t)?[e]:lo(ho(e))};const bo=function(e){if("string"==typeof e||no(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const Eo=function(e,t,n,o){if(!me(e))return e;for(var s=-1,r=(t=po(t,e)).length,i=r-1,a=e;null!=a&&++s<r;){var x=bo(t[s]),c=n;if("__proto__"===x||"constructor"===x||"prototype"===x)return e;if(s!=i){var l=a[x];void 0===(c=o?o(l,x,a):void 0)&&(c=me(l)?l:_t(t[s+1])?[]:{})}st(a,x,c),a=a[x]}return e};const _o=function(e,t,n){return null==e?e:Eo(e,t,n)};const To=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const Co=function(e){return this.__data__.has(e)};function yo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Je;++t<n;)this.add(e[t])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const vo=function(e,t){return e.has(t)};const Ro=function(e,t,n,o,s,r){var i=1&n,a=e.length,x=t.length;if(a!=x&&!(i&&x>a))return!1;var c=r.get(e),l=r.get(t);if(c&&l)return c==t&&l==e;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(e,t),r.set(t,e);++d<a;){var m=e[d],f=t[d];if(o)var h=i?o(f,m,d,t,e,r):o(m,f,d,e,t,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(t,(function(e,t){if(!vo(g,t)&&(m===e||s(m,e,n,o,r)))return g.push(t)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(e),r.delete(t),u};const So=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const Io=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Lo=se?se.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(e,t,n,o,s,r,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new Nn(e),new Nn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=So;case"[object Set]":var x=1&o;if(a||(a=Io),e.size!=t.size&&!x)return!1;var c=i.get(e);if(c)return c==t;o|=2,i.set(e,t);var l=Ro(a(e),a(t),o,s,r,i);return i.delete(e),l;case"[object Symbol]":if(No)return No.call(e)==No.call(t)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(e,t,n,o,s,r){var i=1&n,a=dn(e),x=a.length;if(x!=dn(t).length&&!i)return!1;for(var c=x;c--;){var l=a[c];if(!(i?l in t:wo.call(t,l)))return!1}var d=r.get(e),u=r.get(t);if(d&&u)return d==t&&u==e;var g=!0;r.set(e,t),r.set(t,e);for(var m=i;++c<x;){var f=e[l=a[c]],h=t[l];if(o)var p=i?o(h,f,l,t,e,r):o(f,h,l,e,t,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=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(e),r.delete(t),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(e,t,n,o,s,r){var i=gt(e),a=gt(t),x=i?Po:Sn(e),c=a?Po:Sn(t),l=(x=x==Fo?Do:x)==Do,d=(c=c==Fo?Do:c)==Do,u=x==c;if(u&&bt(e)){if(!bt(t))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Ye),i||Lt(e)?Ro(e,t,n,o,s,r):Mo(e,t,x,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(e,"__wrapped__"),m=d&&Bo.call(t,"__wrapped__");if(g||m){var f=g?e.value():e,h=m?t.value():t;return r||(r=new Ye),s(f,h,n,o,r)}}return!!u&&(r||(r=new Ye),Oo(e,t,n,o,s,r))};const Uo=function e(t,n,o,s,r){return t===n||(null==t||null==n||!at(t)&&!at(n)?t!=t&&n!=n:jo(t,n,o,s,e,r))};const Go=function(e,t){return Uo(e,t)};const Ho=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const zo=function(e,t){for(var n=0,o=(t=po(t,e)).length;null!=e&&n<o;)e=e[bo(t[n++])];return n&&n==o?e:void 0};const Wo=function(e,t,n){var o=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(s);++o<s;)r[o]=e[o+t];return r};const Vo=function(e,t){return t.length<2?e:zo(e,Wo(t,0,-1))};const Ko=function(e,t){return t=po(t,e),null==(e=Vo(e,t))||delete e[bo(Ho(t))]};const qo=function(e,t){return null==e||Ko(e,t)},Xo=["getContainedElement","previous","addRange","@external","isMultiRange","_onDiscard","getItems","split","getRange","head","toJSON","map","isIntersecting","next","discard","push","set","addMarker","change","size","get","createdAt","type","addMarkerName","_isDataLoaded","_onAttributesChange","_markerNames","getMarkerNames","_saved","getRanges","creator","hasComments","end","removeMarker","getMultiRangeId","clear","delete","attributes","removeMarkers","getMarkers","length","onAccept","author","markers","filter","isExternal","commentThread","data","decorate","accept","subType","from","_model","onAttributesChange","removeAttribute","getFirstMarker","nodeBefore","getAllAdjacentSuggestions","isInContent","add"];var $o,Jo;$o=Xo,Jo=247,function(e){for(;--e;)$o.push($o.shift())}(++Jo);const Qo=function(e,t){return Xo[e-=0]};class Zo extends((0,t.ObservableMixin)()){constructor(e,t){super(),this[Qo("0x11")]=!1,this.id=t.id,this[Qo("0xf")]=t[Qo("0xf")],this.subType=t.subType||null,this[Qo("0x23")]=t.author,this[Qo("0x17")]=t.creator||t[Qo("0x23")],this[Qo("0x26")]=Boolean(t[Qo("0x1e")]&&t[Qo("0x1e")][Qo("0x38")]),this[Qo("0x28")]=null,this[Qo("0x2d")]=e,this._onAccept=t[Qo("0x22")],this[Qo("0x3a")]=t.onDiscard,this[Qo("0x12")]=t[Qo("0x2e")],this[Qo("0x13")]=new Set,this.createdAt=null,this.set("authoredAt",null),this[Qo("0x9")](Qo("0x1e"),t[Qo("0x1e")]||{}),this.set("previous",null),this[Qo("0x9")]("next",null),this[Qo("0x9")](Qo("0x27"),null),this[Qo("0x9")](Qo("0x15"),!1),this[Qo("0x29")](Qo("0x2a")),this[Qo("0x29")]("discard")}get[Qo("0x2")](){let e=this;for(;e[Qo("0x36")];)e=e[Qo("0x36")];return e}get[Qo("0x18")](){return!!this[Qo("0x27")]&&this[Qo("0x27")][Qo("0x21")]>0}get[Qo("0x39")](){return 0!=this[Qo("0x13")][Qo("0xc")]&&6==Array[Qo("0x2c")](this[Qo("0x13")])[0][Qo("0x0")](":")[Qo("0x21")]}get[Qo("0x33")](){return null!==this[Qo("0x30")]()}[Qo("0x10")](e){this[Qo("0x13")][Qo("0x34")](e)}getMarkerNames(){return Array[Qo("0x2c")](this[Qo("0x13")])}getMarkers(){return this[Qo("0x14")]().map((e=>this._model[Qo("0x24")][Qo("0xd")](e)))[Qo("0x25")]((e=>e))}getFirstMarker(){return this[Qo("0x20")]()[0]||null}removeMarkers(){this[Qo("0x2d")][Qo("0xb")]((e=>{for(const t of this.getMarkers())e[Qo("0x1a")](t)})),this[Qo("0x13")][Qo("0x1c")]()}[Qo("0x1a")](e){this[Qo("0x2d")].change((t=>{t.removeMarker(e)})),this[Qo("0x13")][Qo("0x1d")](e)}[Qo("0x37")](e){const t="suggestion:"+this.type+":"+this[Qo("0x2b")]+":"+this.id+":"+this[Qo("0x17")].id+":"+Zo[Qo("0x1b")]();this[Qo("0x10")](t),this._model.change((n=>{n[Qo("0xa")](t,{range:e,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(e){for(const t of this[Qo("0x16")]())if(t[Qo("0x5")](e))return!0;return!1}[Qo("0x16")](){return this[Qo("0x20")]()[Qo("0x4")]((e=>e[Qo("0x1")]()))}[Qo("0x3b")](){return this[Qo("0x16")]().reduce(((e,t)=>[...e,...t[Qo("0x3b")]()]),[])}getFirstRange(){var e;return(null===(e=this.getFirstMarker())||void 0===e?void 0:e[Qo("0x1")]())||null}[Qo("0x35")](){const e=this.getRanges();if(1!=e.length)return null;const t=e[0],n=t.start.nodeAfter,o=t[Qo("0x19")][Qo("0x31")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2a")](){this._onAccept(this.getRanges(),this[Qo("0x28")],this[Qo("0x1e")]),this[Qo("0x1f")]()}[Qo("0x7")](){this[Qo("0x3a")](this[Qo("0x16")](),this[Qo("0x28")],this[Qo("0x1e")]),this[Qo("0x1f")]()}[Qo("0x32")](){const e=[];let t=this.head;for(;t;)e[Qo("0x8")](t),t=t[Qo("0x6")];return e}setAttribute(e,t){const n=to(this.attributes);_o(n,e,t),Go(n,this[Qo("0x1e")])||(this[Qo("0x1e")]=n,this[Qo("0x12")](n))}[Qo("0x2f")](e){const t=to(this[Qo("0x1e")]);qo(t,e),Go(t,this[Qo("0x1e")])||(this[Qo("0x1e")]=t,this[Qo("0x12")](this[Qo("0x1e")]))}[Qo("0x3")](){return{id:this.id,type:this[Qo("0x2b")]?this.type+":"+this[Qo("0x2b")]:this[Qo("0xf")],authorId:this[Qo("0x17")].id,createdAt:this[Qo("0xe")],hasComments:this[Qo("0x18")],data:this[Qo("0x28")],attributes:this[Qo("0x1e")]}}static[Qo("0x1b")](){return(0,t.uid)().substr(1,5)}}function Yo(e,t,n){const o=e.t;switch(t){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* 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 t}}const es=["label","isEqual","pop","_customCallbacks","replace","skip","*Merge:* %0","end","*Remove:* %0","_locale","registerElementLabel","isEmpty","_addDescriptionItems","length","insertion","ELEMENT_SPACE","push","removeContainer","isObject","getFirstRange","isInContent","text","element","match","set","get","REPLACE_TEXT","type","*Split:* %0","Container","$text","getWalker","elementEnd","*Insert:* %0","_itemLabels","indexOf","$1 $2","removeEmptyContainer","normal","name","start","quantity","softBreak","nextSibling","$textProxy","previousSibling","EmptyContainer","_schema","_resolveDescriptionItems","addEmptyContainer","removeObject","getItemLabel","getDescriptions","data","remove","deletion","add","addObject","Object","_itemLabelsCallbacks"];var ts,ns;ts=es,ns=335,function(e){for(;--e;)ts.push(ts.shift())}(++ns);const os=function(e,t){return es[e-=0]};class ss{constructor(e,t){this[os("0x1c")]=[],this[os("0x3b")]=new Map,this[os("0x18")]=[],this[os("0xc")]=e,this[os("0x22")]=t}[os("0x11")](e){const t=[];for(let n=0;n<e[os("0x26")];n++){const o=e[n];if(!o[os("0x2d")])continue;let s=!1;for(const e of this._customCallbacks){const n=e(o);if(n){os("0x34")in n&&t.push(n),s=!0;break}}if(!s){this[os("0x25")](t,o);const s=e[n+1];if(s&&!o[os("0x2c")]()[os("0x20")][os("0x1a")](s[os("0x2c")]()[os("0x5")])){const e=t[t.length-1],n="insertion"==o[os("0x34")]?os("0x15"):os("0x13");e&&os("0x2e")==e[os("0x34")]&&(e[n]+="\n")}}}return this._resolveDescriptionItems(t)}registerDescriptionCallback(e){this[os("0x1c")].push(e)}[os("0x23")](e,n,o=t.priorities[os("0x3")]){"function"==typeof e?(0,t.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:e,label:n,priority:o}):this._itemLabels[os("0x31")](e,n)}[os("0x10")](e,t=1){let n;for(const t of this[os("0x18")])if(t.matchingCallback(e)){n=t[os("0x19")];break}return n||(n=this._itemLabels[os("0x32")](e[os("0x4")])),n?n(t):1!==t?t+" "+e.name+"s":""+e[os("0x4")]}_addDescriptionItems(e,t){const n=t.getFirstRange()[os("0x38")](),o=os("0x27")==t[os("0x34")]?os("0x15"):os("0x13");for(const t of n){const s=t.item,r=e[e[os("0x26")]-1];if(s.is(os("0x9")))r&&r.type[os("0x0")](os("0x36"))>-1&&e[os("0x1b")](),r&&"text"==r[os("0x34")]?r[o]+=s.data:e.push({type:os("0x2e"),add:os("0x15")==o?s[os("0x12")]:"",remove:os("0x13")==o?s[os("0x12")]:""});else if(this[os("0xc")][os("0x2b")](s)){const i=s;if(r&&r[os("0x34")][os("0x0")]("Container")>-1&&e[os("0x1b")](),os("0x39")==t.type)continue;r&&r[os("0x34")]==o+os("0x17")&&r[os("0x2f")][os("0x4")]==i.name?r[os("0x6")]++:e[os("0x29")]({type:o+os("0x17"),element:i,quantity:1}),n[os("0x1e")]((e=>!(os("0x39")==e.type&&e.item==s)))}else if(this[os("0xc")].checkChild(s,os("0x37"))||s.is(os("0x2f"),os("0x7"))){const n=s;if(os("0x15")==o&&"elementStart"==t.type||os("0x13")==o&&os("0x39")==t[os("0x34")])continue;if(r&&-1==r[os("0x34")][os("0x0")](os("0x36"))){os("0x2e")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x15")==o?n[os("0x8")]&&!this._schema[os("0x2b")](n[os("0x8")])?n[os("0x8")]:null:n.previousSibling&&!this[os("0xc")][os("0x2b")](n[os("0xa")])?n[os("0xa")]:null,n[os("0x24")]||i&&i[os("0x24")]){const t=i&&i[os("0x24")]?i:n;r&&r[os("0x34")]==o+os("0xb")&&r[os("0x2f")].name==t[os("0x4")]?r[os("0x6")]++:e[os("0x29")]({type:o+"EmptyContainer",element:t,quantity:1})}else e[os("0x29")]({type:o+os("0x36"),element:n})}}}[os("0xd")](e){const t=this[os("0x22")],n=[];for(const o of e){switch(o.type){case os("0x2e"):if(o[os("0x15")]=o.add.replace(/(\S)\u000A+(\S)/g,os("0x1"))[os("0x1d")](/\u000A/g,""),o[os("0x13")]=o.remove[os("0x1d")](/(\S)\u000A+(\S)/g,os("0x1"))[os("0x1d")](/\u000A/g,""),""!=o[os("0x15")]&&""!=o[os("0x13")]){n[os("0x29")]({type:os("0x1d"),content:Yo(t,os("0x33"),['"'+o.remove+'"','"'+o[os("0x15")]+'"'])});continue}if(null!=o.add[os("0x30")](/^ +$/)){n[os("0x29")]({type:"insertion",content:Yo(t,os("0x3a"),Yo(t,os("0x28"),o.add[os("0x26")]))});continue}if(null!=o[os("0x13")].match(/^ +$/)){n[os("0x29")]({type:os("0x14"),content:Yo(t,os("0x21"),Yo(t,"ELEMENT_SPACE",o[os("0x13")][os("0x26")]))});continue}if(""!=o[os("0x15")]){n[os("0x29")]({type:os("0x27"),content:Yo(t,os("0x3a"),'"'+o[os("0x15")]+'"')});continue}n[os("0x29")]({type:os("0x14"),content:Yo(t,os("0x21"),'"'+o[os("0x13")]+'"')});continue;case os("0xe"):case os("0x16"):n[os("0x29")]({type:os("0x27"),content:Yo(t,os("0x3a"),this[os("0x10")](o[os("0x2f")],o[os("0x6")]))});continue;case os("0x2"):case os("0xf"):n[os("0x29")]({type:os("0x14"),content:Yo(t,"*Remove:* %0",this[os("0x10")](o[os("0x2f")],o[os("0x6")]))});continue;case"addContainer":n[os("0x29")]({type:"insertion",content:Yo(t,os("0x35"),this[os("0x10")](o.element,o.quantity))});continue;case os("0x2a"):n[os("0x29")]({type:os("0x14"),content:Yo(t,os("0x1f"),this[os("0x10")](o[os("0x2f")],o.quantity))});continue}n[os("0x29")](o)}return n}}const rs=["document","getSelectedBlocks","getAttribute","editor","_descriptionFactory","registerDescriptionCallback","left","contentLanguageDirection","ltr","format","checkAttribute","plugins","commandParams","selection","change","value","model","FORMAT_ALIGN_TO_CENTER","enableCommand","schema","commandName","locale","has","alignment","TrackChangesEditing","afterInit","markBlockFormat","FORMAT_ALIGN_TO_RIGHT","from"];var is,as;is=rs,as=229,function(e){for(;--e;)is.push(is.shift())}(++as);const xs=function(e,t){return rs[e-=0]};class cs extends e.Plugin{[xs("0x1c")](){const e=this[xs("0x6")],t=e[xs("0x18")];if(!e.plugins[xs("0x19")]("AlignmentEditing"))return;const n=e[xs("0xe")].get(xs("0x1b"));n[xs("0x15")]("alignment",((t,o={})=>{let s=o[xs("0x12")];o.value||(s=xs("0xb")===e[xs("0x18")][xs("0xa")]?xs("0x9"):"right");const r=Array[xs("0x2")](this.editor.model[xs("0x3")][xs("0x10")][xs("0x4")]()).filter((e=>function(e,t,n){const o=e[xs("0x5")](xs("0x1a"))||null;return t[xs("0xd")](e,xs("0x1a"))&&n!=o}(e,this[xs("0x6")].model[xs("0x16")],s)));e[xs("0x13")][xs("0x11")]((()=>{for(const e of r)n[xs("0x0")](e,{commandName:xs("0x1a"),commandParams:[{value:s}]})}))})),n[xs("0x7")][xs("0x8")]((e=>{const{data:n}=e;if(n&&xs("0x1a")==n[xs("0x17")]){const e=n[xs("0xf")][0][xs("0x12")];return{type:xs("0xc"),content:Yo(t,"*Format:* %0",function(e){switch(e){case"left":return Yo(t,"FORMAT_ALIGN_TO_LEFT");case"right":return Yo(t,xs("0x1"));case"center":return Yo(t,xs("0x14"));case"justify":return Yo(t,"FORMAT_JUSTIFY_TEXT")}}(e))}}}))}}const ls=["type","ck-suggestion-marker-","parent","isAtEnd","listItem","writer","isLimit","markerName","isBlock","test","addClass","markerRange","previousPosition","consumable","elementEnd","hasAttribute","getWalker","mapper","name","nextSibling","listIndent","TrackChangesEditing","getCustomProperty","getItems","insert","isContent","includes","plugins","schema","element","push","get","bindElementToMarker","createRangeOn"];var ds,us;ds=ls,us=488,function(e){for(;--e;)ds.push(ds.shift())}(++us);const gs=function(e,t){return ls[e-=0]};function ms(e,t,n){const o=[];for(const s of t[gs("0xb")]())s[gs("0x3")](e)&&o.push(n[gs("0x15")](s));return o}function fs(e){const t=[];if(e.is(gs("0x11"),gs("0x1a"))){let n=e[gs("0x7")];for(;n&&n.is(gs("0x11"),gs("0x1a"))&&n.getAttribute(gs("0x8"))>0;)t[gs("0x12")](n),n=n[gs("0x7")]}return t}function hs(e,t,{showActiveMarker:n=!0}={}){const o=e[gs("0xf")][gs("0x13")](gs("0x9"));return(s,r,i)=>{if(!i[gs("0x1")][gs("0x1f")](r.markerRange,s[gs("0x6")]))return;const a=r[gs("0x21")][gs("0x4")](),x=r[gs("0x21")].start,c=e.model[gs("0x10")];let l=null,d=null,u=!1,g=!1;for(const e of a){const t=e.item;u=u||c[gs("0xd")](t);const n=i[gs("0x5")].toViewElement(t);if(n&&n[gs("0xa")]("addHighlight"))return;gs("0x2")==e[gs("0x16")]&&c[gs("0x1e")](t)&&!c[gs("0x1c")](t)&&(t[gs("0x7")]||x[gs("0x19")]?l&&l[gs("0x18")]==t||(l=t,m(e[gs("0x0")]),g=!0):d=d||e[gs("0x0")])}function m(e){const s=i[gs("0x1b")].createUIElement("span",{class:gs("0x17")+t}),a=i[gs("0x5")].toViewPosition(e);n&&o.activeMarkers[gs("0xe")](r[gs("0x1d")])&&i[gs("0x1b")][gs("0x20")]("ck-suggestion-marker--active",s),i[gs("0x1b")][gs("0xc")](a,s),i[gs("0x5")][gs("0x14")](s,r[gs("0x1d")])}u||g||!d||m(d)}}const ps=["FORMAT_CODE","forceValue","strikethrough","value","FORMAT_STRIKETHROUGH","FORMAT_SUBSCRIPT","getRanges","editor","SuperscriptEditing","TrackChangesEditing","SubscriptEditing","locale","FORMAT_ITALIC","superscript","italic","document","toLowerCase","underline","format","subscript","*Remove format:* %0","BoldEditing","from","*Format:* %0","FORMAT_UNDERLINE","ItalicEditing","StrikethroughEditing","slice","change","registerDescriptionCallback","FORMAT_SUPERSCRIPT","selection","get","CodeEditing","plugins","markInlineFormat"];var bs,Es;bs=ps,Es=431,function(e){for(;--e;)bs.push(bs.shift())}(++Es);const _s=function(e,t){return ps[e-=0]},Ts=[_s("0x16"),_s("0x1a"),"UnderlineEditing",_s("0x22"),_s("0x1b"),_s("0xb"),_s("0x9")];class Cs extends e.Plugin{afterInit(){const e=this[_s("0x8")],t=e.model,n=e[_s("0x23")].get(_s("0xa")),o=e[_s("0xc")];for(const o of Ts){if(!e[_s("0x23")].has(o))continue;const s=o[_s("0x1c")](0,-7)[_s("0x11")](),r=e.commands[_s("0x21")](s);n.enableCommand(s,((e,o={})=>{const i=t[_s("0x10")][_s("0x20")];if(i.isCollapsed)return void e(o);const a=void 0!==o.forceValue?o[_s("0x2")]:!r[_s("0x4")];t[_s("0x1d")]((()=>{const e=Array[_s("0x17")](i[_s("0x7")]());for(const o of e){const e=a?[o]:ms(s,o,t);for(const t of e)n[_s("0x0")](t,{commandName:s,commandParams:[{forceValue:a}]})}}))}))}function s(e,t){n._descriptionFactory[_s("0x1e")]((n=>{const{data:s}=n;if(s&&s.commandName===e)return s.commandParams[0].forceValue?{type:"format",content:Yo(o,_s("0x18"),t)}:{type:_s("0x13"),content:Yo(o,_s("0x15"),t)}}))}s("bold",Yo(o,"FORMAT_BOLD")),s(_s("0xf"),Yo(o,_s("0xd"))),s(_s("0x12"),Yo(o,_s("0x19"))),s("code",Yo(o,_s("0x1"))),s(_s("0x3"),Yo(o,_s("0x5"))),s(_s("0x14"),Yo(o,_s("0x6"))),s(_s("0xe"),Yo(o,_s("0x1f")))}}const ys=["plugins","document","has","schema","value","*Remove format:* %0","parent","change","editor","ELEMENT_BLOCK_QUOTE","getSelectedBlocks","locale","from","forceValue","selection","checkChild","blockQuote","afterInit","name","filter","registerDescriptionCallback","$root","format","enableCommand","*Format:* %0","BlockQuoteEditing","get","model","commands"];var ks,As;ks=ys,As=227,function(e){for(;--e;)ks.push(ks.shift())}(++As);const vs=function(e,t){return ys[e-=0]};class Rs extends e.Plugin{[vs("0x16")](){const e=this[vs("0xd")],t=e[vs("0x10")];if(!e[vs("0x5")][vs("0x7")](vs("0x1")))return;const n=e[vs("0x5")][vs("0x2")]("TrackChangesEditing"),o=this.editor[vs("0x4")][vs("0x2")](vs("0x15"));n[vs("0x1c")]("blockQuote",((t,s={})=>{const r=this[vs("0xd")].model[vs("0x6")][vs("0x13")],i=s&&void 0!==s[vs("0x12")]?s.forceValue:!o[vs("0x9")];let a=[];if(i){const t=Array.from(r[vs("0xf")]())[vs("0x18")]((e=>Ss(e)||function(e,t){const n=t[vs("0x14")](e[vs("0xb")],vs("0x15")),o=t[vs("0x14")]([vs("0x1a"),vs("0x15")],e);return n&&o}(e,this[vs("0xd")][vs("0x3")][vs("0x8")])));a=S(t,e[vs("0x3")])}else{const t=Array[vs("0x11")](r[vs("0xf")]())[vs("0x18")]((e=>Ss(e)));a=S(t,e[vs("0x3")])}e.model[vs("0xc")]((()=>{for(const e of a)n.markBlockFormat(e,{commandName:vs("0x15"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x19")]((e=>{const{data:n}=e;if(n&&vs("0x15")==n.commandName){const e=Yo(t,vs("0xe"));return n.commandParams[0].forceValue?{type:vs("0x1b"),content:Yo(t,vs("0x0"),e)}:{type:"format",content:Yo(t,vs("0xa"),e)}}}))}}function Ss(e){return vs("0x15")==e.parent[vs("0x17")]}const Is=["get","ckbox","TrackChangesEditing","plugins","editor","commands","afterInit"];var Ls,Ns;Ls=Is,Ns=198,function(e){for(;--e;)Ls.push(Ls.shift())}(++Ns);const Ms=function(e,t){return Is[e-=0]};class ws extends e.Plugin{[Ms("0x4")](){const e=this[Ms("0x2")];e[Ms("0x3")][Ms("0x5")](Ms("0x6"))&&e[Ms("0x1")].get(Ms("0x0")).enableCommand(Ms("0x6"))}}const Os=["editor","*Format:* %0","codeBlock","ELEMENT_CODE_BLOCK","formatBlock","model","registerElementLabel","selection","_descriptionFactory","label","get","config","commandParams","forceValue","getSelectedBlocks","language","commands","checkChild","rootElement","markBlockFormat","languages","outdentCodeBlock","plugins","enableCommand","commandName","schema","filter","*Remove format:* %0","blockName","has","CodeBlock","name","from","value","format","document","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=197,function(e){for(;--e;)Fs.push(Fs.shift())}(++Ps);const Ds=function(e,t){return Os[e-=0]};class Bs extends e.Plugin{afterInit(){const e=this[Ds("0x19")];if(!e[Ds("0xa")][Ds("0x11")](Ds("0x12")))return;const t=e[Ds("0xa")][Ds("0x23")](Ds("0x18")),n=e.locale,o=e[Ds("0x24")][Ds("0x23")](Ds("0x1b"))[Ds("0x8")],s=e[Ds("0x4")][Ds("0x23")](Ds("0x1b"));t[Ds("0xb")]("indentCodeBlock"),t[Ds("0xb")](Ds("0x9")),t[Ds("0xb")]("codeBlock",((n,r={})=>{const i=e[Ds("0x1e")],a=e.model[Ds("0x17")][Ds("0x20")],x=r&&void 0!==r[Ds("0x1")]?r[Ds("0x1")]:!s[Ds("0x15")];let c;r[Ds("0x3")]||(r[Ds("0x3")]=o[0][Ds("0x3")]),c=x?Array[Ds("0x14")](a.getSelectedBlocks())[Ds("0xe")]((e=>{return js(e)||(t=e,n=i[Ds("0xd")],!t.is(Ds("0x6"))&&!n.isLimit(t)&&n[Ds("0x5")](t.parent,Ds("0x1b")));var t,n})):Array.from(a[Ds("0x2")]()).filter((e=>js(e)));const l=S(c,i);i.change((()=>{for(const e of l)t[Ds("0x7")](e,{commandName:Ds("0x1b"),commandParams:[{...r,forceValue:x}],formatGroupId:Ds("0x10")})}))})),t[Ds("0x21")][Ds("0x1f")]("codeBlock",(e=>Yo(n,Ds("0x1c"),e))),t[Ds("0x21")].registerDescriptionCallback((e=>{const t=n.t,{type:s,data:r}=e;if(Ds("0x1d")==s&&r&&Ds("0x1b")==r[Ds("0xc")]){const e=r.commandParams[0][Ds("0x3")],s=t(o.find((t=>t[Ds("0x3")]===e))[Ds("0x22")]);return r[Ds("0x0")][0][Ds("0x1")]?{type:Ds("0x16"),content:Yo(n,Ds("0x1a"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0x16"),content:Yo(n,Ds("0xf"),Yo(n,Ds("0x1c"),1))}}}))}}function js(e){return Ds("0x1b")==e[Ds("0x13")]}const Us=["editor","plugins","get","enableCommand","addCommentThread","TrackChangesEditing"];var Gs,Hs;Gs=Us,Hs=415,function(e){for(;--e;)Gs.push(Gs.shift())}(++Hs);const zs=function(e,t){return Us[e-=0]};class Ws extends e.Plugin{afterInit(){const e=this[zs("0x5")];e[zs("0x0")].has("CommentsEditing")&&e.plugins[zs("0x1")](zs("0x4"))[zs("0x2")](zs("0x3"))}}var Vs=n(181);const Ks=["batch","end","init","enqueueChange","unbindElementFromMarkerName","plugins","model","high","addMarker:suggestion:deletion","options","fromRange","lock","unlock","requires","delete","get","merge","createSelection","markerNameToElements","uiElement","createRange","getFirstRange","unit","selection","root","editing","downcastDispatcher","bind","commands","remove","removeMarker:suggestion:deletion","writer","markerName","deleteForward","start","setSelection","forward","buffer","enableCommand","isCollapsed"];var qs,Xs;qs=Ks,Xs=486,function(e){for(;--e;)qs.push(qs.shift())}(++Xs);const $s=function(e,t){return Ks[e-=0]};class Js extends e.Plugin{static get[$s("0x7")](){return[Vs.Delete]}[$s("0x24")](){const e=this.editor,t=e[$s("0x27")].get("TrackChangesEditing");t[$s("0x20")]($s("0x8"));const n=e[$s("0x16")][$s("0x9")]($s("0x1b"));t.enableCommand("deleteForward",((t,o={})=>{const s=e.model[$s("0xb")](e[$s("0x0")].document[$s("0x11")]);s[$s("0x21")]&&e[$s("0x0")].modifySelection(s,{direction:$s("0x1e"),unit:o[$s("0x10")]});const r=s[$s("0xf")](),a=i.LiveRange[$s("0x4")](r);let x;t(o),x="$graveyard"==a[$s("0x12")].rootName?e[$s("0x0")][$s("0xe")](r.start):e[$s("0x0")][$s("0xe")](a[$s("0x1c")],a[$s("0x23")]),a.detach(),e[$s("0x0")][$s("0x25")](n.buffer[$s("0x22")],(e=>{n.buffer[$s("0x5")](),e[$s("0x1d")](e.createRange(x.end)),n[$s("0x1f")][$s("0x6")]()}))})),e[$s("0x13")].downcastDispatcher.on($s("0x2"),hs(e,"merge"),{priority:$s("0x1")}),e.data[$s("0x14")].on("addMarker:suggestion:deletion",((t,n,o)=>{o[$s("0x3")].showSuggestionHighlights&&hs(e,$s("0xa"),{showActiveMarker:!1})[$s("0x15")](this)(t,n,o)}),{priority:$s("0x1")}),e[$s("0x13")].downcastDispatcher.on($s("0x18"),((e,t,n)=>{const o=n.mapper[$s("0xc")](t[$s("0x1a")]);if(o)for(const e of o)e.is($s("0xd"))&&(n.mapper[$s("0x26")](e,t[$s("0x1a")]),n[$s("0x19")][$s("0x17")](e))}),{priority:$s("0x1")})}}const Qs=["commandParams","commands","from","plugins","DocumentListUtils","end","getFirstRange","afterInit","markMultiRangeBlockFormat","isFirstBlockOfListItem","before","expandListBlocksToCompleteList","has","registerDescriptionCallback","commandName","listIndent","push","value","accept","forceValue","enableCommand","previousSibling","containsItem","parent","createRange","createPositionAt","model","splitListItemBefore","indentList","getAttribute","documentList","*Change to:* %0","refresh","ELEMENT_NUMBERED_LIST","hasAttribute","numberedList","listType","get","_descriptionFactory","ELEMENT_BULLETED_LIST","detach","change","markBlockFormat","DocumentListEditing","outdentList","mergeListItemForward","selection","schema","add","locale","ELEMENT_LIST_ITEM","splitListItemAfter","multipleBlocks","ELEMENT_","format","listItemId","registerCustomCallback","isObject","document","editor","registerElementLabel","*Format:* remove from %0","*Indent:* %0","mergeListItemBackward","fromRange","execute","getSelectedBlocks","nextSibling","toUpperCase","setSelection","start","nodeAfter"];var Zs,Ys;Zs=Qs,Ys=288,function(e){for(;--e;)Zs.push(Zs.shift())}(++Ys);const er=function(e,t){return Qs[e-=0]};class tr extends e.Plugin{[er("0x7")](){const e=this[er("0x3b")];if(!e[er("0x3")][er("0xc")](er("0x2b")))return;const t=e[er("0x31")],n=e.plugins.get("TrackChangesEditing"),o=e[er("0x3")][er("0x25")](er("0x4"));function s(t){return()=>{const s=e[er("0x1")][er("0x25")](t);let r=Array.from(e.model[er("0x3a")][er("0x2e")][er("0x42")]());if(x(t)){r=o[er("0xb")](r);const e=[];for(const t of r)o[er("0x9")](t)&&e[er("0x10")](t);r=e}e[er("0x1a")][er("0x29")]((()=>{n[er("0x8")](r,{commandName:t,commandParams:[{forceValue:!s[er("0x11")]}],formatGroupId:er("0x24")},[],er("0x1e"))}))}}function r(t){return()=>{const o=function(e){let t=Array[er("0x2")](e);const n=t.findIndex((e=>!e[er("0x22")](er("0x37"))));return n>-1&&(t=t.slice(0,n)),t}(e[er("0x1a")][er("0x3a")][er("0x2e")].getSelectedBlocks()),s=o[o.length-1],r=e[er("0x1a")][er("0x2f")][er("0x39")](s)?"after":er("0x5"),i=e[er("0x1a")].createRange(e[er("0x1a")][er("0x19")](o[0],er("0xa")),e[er("0x1a")][er("0x19")](s,r));e[er("0x1a")][er("0x29")]((()=>{n.markBlockFormat(i,{commandName:t,commandParams:[],formatGroupId:er("0x24")},function(e){const t=new Set;for(const n of e){let e=n[er("0x43")];for(;e&&e[er("0x1d")]("listIndent")>n[er("0x1d")](er("0xf"));)t[er("0x30")](e),e=e[er("0x43")]}return Array.from(t)}(o))}))}}function a(t){return()=>{const o=e.model[er("0x3a")][er("0x2e")][er("0x42")]().next()[er("0x11")],s=e[er("0x1a")][er("0x19")](o,er("0xa")),r=e[er("0x1a")][er("0x19")](o,0),i=e.model[er("0x18")](s,r);e.model[er("0x29")]((()=>{n[er("0x2a")](i,{commandName:t,commandParams:[],formatGroupId:er("0x24")})}))}}function x(t){const n=e[er("0x1")][er("0x25")]("bulletedList")[er("0x11")],o=e.commands.get(er("0x23"))[er("0x11")];return er("0x23")===t?n:o}n[er("0x14")](er("0x23"),s("numberedList")),n[er("0x14")]("bulletedList",s("bulletedList")),n[er("0x14")]("indentList",r("indentList")),n[er("0x14")](er("0x2c"),r(er("0x2c"))),n[er("0x14")]("splitListItemAfter",a(er("0x33"))),n[er("0x14")]("splitListItemBefore",a(er("0x1b"))),n[er("0x26")][er("0x3c")]((function(t){const n=!e[er("0x1a")][er("0x2f")][er("0x39")](t),o=t[er("0x15")],s=t[er("0x43")],r=t[er("0x1d")](er("0x37")),i=!o||o.getAttribute(er("0x37"))!==r,a=!s||s[er("0x1d")](er("0x37"))!==r;return n&&Boolean(r)&&i&&a}),(e=>Yo(t,er("0x32"),e))),n[er("0x26")][er("0xd")]((function(e){const{data:n}=e;if(!n)return;let o,s,r,i;switch(n[er("0xe")]){case"bulletedList":r=n[er("0x0")][0][er("0x13")],i=x(n.commandName),o=r?"*Format:* insert into %0":er("0x3d"),i&&(o=er("0x1f")),s={type:er("0x36"),content:Yo(t,o,Yo(t,er("0x27")))};break;case er("0x23"):r=n[er("0x0")][0][er("0x13")],i=x(n[er("0xe")]),o=r?"*Format:* insert into %0":er("0x3d"),i&&(o=er("0x1f")),s={type:er("0x36"),content:Yo(t,o,Yo(t,er("0x21")))};break;case er("0x1c"):o=er("0x3e"),s={type:er("0x36"),content:Yo(t,o,Yo(t,er("0x32")))};break;case"outdentList":o=function(e){const t=e[er("0x6")]();let n=t.start[er("0x47")];for(;n&&t[er("0x16")](n);){if(n[er("0x1d")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(e)?Yo(t,er("0x3d"),Yo(t,function(e){const t=e.getFirstRange()[er("0x46")].nodeAfter;return er("0x35")+t[er("0x1d")]("listType")[er("0x44")]()+"_LIST"}(e))):Yo(t,"*Outdent:* %0",Yo(t,er("0x32"))),s={type:er("0x36"),content:o};break;case er("0x3f"):case er("0x2d"):!1===n[er("0x34")]&&(o="*Merge:* %0",s={type:"deletion",content:Yo(t,o,Yo(t,er("0x32")))})}return s})),n._suggestionFactory[er("0x38")]("formatBlock",er("0x1e"),er("0x12"),(function(t,n){const o=[];for(let n of t)n[er("0x46")][er("0x47")]===n.end[er("0x17")]&&(n=e[er("0x1a")][er("0x18")](e[er("0x1a")].createPositionAt(n[er("0x46")].nodeAfter,0))),o[er("0x10")](n);e[er("0x1a")][er("0x29")]((t=>{const s=e[er("0x1a")].document[er("0x2e")],r=Array[er("0x2")](s.getRanges()).map((e=>i.LiveRange[er("0x40")](e)));t[er("0x45")](o),e[er("0x1")][er("0x25")](n.commandName)[er("0x20")](),n.commandParams[er("0x10")]({forceDefaultExecution:!0}),e[er("0x41")](n[er("0xe")],...n[er("0x0")]),t[er("0x45")](r);for(const e of r)e[er("0x28")]()}))}))}}var nr=n(331);const or=["detach","get","model","getFirstRange","plugins","afterExecute","hasClass","editing","data","removeMarker:suggestion:insertion","getFirstPosition","mapper","TrackChangesEditing","parent","createRange","downcastDispatcher","remove","addMarker:suggestion:insertion","markerNameToElements","ck-suggestion-marker-split","document","bind","unbindElementFromMarkerName","createPositionAt","change","selection","markInsertion","enterBlock","markerName","enter","setSelection","high","split"];var sr,rr;sr=or,rr=407,function(e){for(;--e;)sr.push(sr.shift())}(++rr);const ir=function(e,t){return or[e-=0]};class ar extends e.Plugin{static get requires(){return[nr.Enter]}init(){const e=this.editor,t=e[ir("0x1a")][ir("0x17")](ir("0x1")),n=e.commands.get(ir("0x12"));t.enableCommand(ir("0x12"),(()=>{e.model[ir("0xd")]((o=>{const s=e[ir("0x18")][ir("0x9")][ir("0xe")],r=s[ir("0x20")](),a=i.LiveRange.fromRange(s[ir("0x19")]());if(n[ir("0x10")](o)){const n=e[ir("0x18")][ir("0xc")](r[ir("0x2")].nextSibling,0),s=o[ir("0x3")](r,n);t[ir("0xf")](s)}else o[ir("0x13")](o[ir("0x3")](a.end));a[ir("0x16")](),n.fire(ir("0x1b"),{writer:o})}))})),e[ir("0x1d")][ir("0x4")].on(ir("0x6"),hs(e,ir("0x15")),{priority:ir("0x14")}),e[ir("0x1d")][ir("0x4")].on(ir("0x1f"),((e,t,n)=>{const o=n.mapper[ir("0x7")](t[ir("0x11")]);if(o)for(const e of o)e[ir("0x1c")](ir("0x8"))&&(n[ir("0x0")][ir("0xb")](e,t[ir("0x11")]),n.writer[ir("0x5")](e))}),{priority:ir("0x14")}),e[ir("0x1e")][ir("0x4")].on(ir("0x6"),((t,n,o)=>{o.options.showSuggestionHighlights&&hs(e,ir("0x15"),{showActiveMarker:!1})[ir("0xa")](this)(t,n,o)}),{priority:ir("0x14")})}}const xr=["find","FindAndReplaceEditing","getIntersection","findPrevious","model","markers","end","createPositionAt","string","handleFindCommand","afterInit","createRange","findByTextCallback","FindAndReplaceUtils","replaceAll","bind","plugins","enableCommand","_isInDeletionRange","getMarkersGroup","editor","get","item","getRange","start","suggestion:deletion","has"];var cr,lr;cr=xr,lr=209,function(e){for(;--e;)cr.push(cr.shift())}(++lr);const dr=function(e,t){return xr[e-=0]};class ur extends e.Plugin{[dr("0x11")](){if(!this[dr("0x0")].plugins[dr("0x6")](dr("0x8")))return;const e=this.editor[dr("0x17")][dr("0x1")]("TrackChangesEditing");e.enableCommand(dr("0x7"),this[dr("0x10")][dr("0x16")](this)),e[dr("0x18")]("findNext"),e.enableCommand(dr("0xa")),e[dr("0x18")]("replace"),e[dr("0x18")](dr("0x15"))}[dr("0x10")](e,t,n={}){const o=this[dr("0x0")][dr("0x17")][dr("0x1")](dr("0x14"));void 0!==n&&e((e=>(dr("0xf")==typeof t?o[dr("0x13")](t,n):t)(e).filter((t=>!1===this[dr("0x19")](t,e[dr("0x2")])))),n)}[dr("0x19")](e,t){const n=this[dr("0x0")][dr("0xb")][dr("0x12")](this[dr("0x0")][dr("0xb")][dr("0xe")](t,e[dr("0x4")]),this.editor.model[dr("0xe")](t,e[dr("0xd")]));for(const e of this[dr("0x0")][dr("0xb")][dr("0xc")][dr("0x1a")](dr("0x5")))if(null!==n[dr("0x9")](e[dr("0x3")]()))return!0;return!1}}const gr=["title","fontSize.options","enableCommand","has","FontBackgroundColorEditing","selection","get","format","label","getRanges","commandName","_enableCommand","editor","config","_descriptionFactory","FontColorEditing","*Reset font size*","commandParams","afterInit","*Set font color:* %0","FontFamilyEditing","plugins","fontBackgroundColor","fontColor","fontColor.colors","trim","*Set font size:* %0","change","model","fontSize","*Reset font family*","toLowerCase","from","value","TrackChangesEditing","locale","find","*Set font family:* %0","FontSizeEditing","markInlineFormat"];var mr,fr;mr=gr,fr=289,function(e){for(;--e;)mr.push(mr.shift())}(++fr);const hr=function(e,t){return gr[e-=0]},pr=[{pluginName:hr("0x1d"),commandName:hr("0x14")},{pluginName:hr("0xb"),commandName:"fontFamily"},{pluginName:hr("0x6"),commandName:hr("0xe")},{pluginName:hr("0x23"),commandName:hr("0xd")}];class br extends e.Plugin{[hr("0x9")](){const e=this[hr("0x3")][hr("0x1a")];for(const{pluginName:e,commandName:t}of pr)this[hr("0x3")][hr("0xc")][hr("0x22")](e)&&this[hr("0x2")](t);this[hr("0x3")][hr("0xc")][hr("0x25")](hr("0x19"))[hr("0x5")].registerDescriptionCallback((t=>{const n=e.t,{data:o}=t;if(null!=o){if(hr("0x14")==o.commandName){const t=o[hr("0x8")][0][hr("0x18")];if(t){const o=n(this.editor[hr("0xc")][hr("0x25")]("FontSize").normalizeSizeOptions(this.editor[hr("0x4")][hr("0x25")](hr("0x20")))[hr("0x1b")]((e=>e[hr("0x13")]==t))[hr("0x1f")]).toLowerCase();return{type:"format",content:Yo(e,hr("0x11"),o)}}return{type:hr("0x26"),content:Yo(e,hr("0x7"))}}if("fontFamily"==o[hr("0x1")]){const t=o[hr("0x8")][0][hr("0x18")];return t?{type:hr("0x26"),content:Yo(e,hr("0x1c"),t)}:{type:hr("0x26"),content:Yo(e,hr("0x15"))}}if(hr("0xe")==o[hr("0x1")]){const t=o[hr("0x8")][0][hr("0x18")];if(t){const o=(0,s.normalizeColorOptions)(this[hr("0x3")][hr("0x4")][hr("0x25")](hr("0xf")))[hr("0x1b")]((e=>e[hr("0x13")]==t));let r=t,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:hr("0x26"),content:Yo(e,hr("0xa"),i)[hr("0x10")](),color:{value:t,title:i||r}}}return{type:"format",content:Yo(e,"*Reset font color*")}}if(hr("0xd")==o[hr("0x1")]){const t=o.commandParams[0][hr("0x18")];if(t){const o=(0,s.normalizeColorOptions)(this[hr("0x3")][hr("0x4")][hr("0x25")]("fontBackgroundColor.colors"))[hr("0x1b")]((e=>e[hr("0x13")]==t));let r=t,i="";return o&&(r=o[hr("0x27")],i=n(r)[hr("0x16")]()),{type:hr("0x26"),content:Yo(e,"*Set font background color:* %0",i).trim(),color:{value:t,title:i||r}}}return{type:hr("0x26"),content:Yo(e,"*Reset font background color*")}}}}))}[hr("0x2")](e){const t=this[hr("0x3")];t.plugins[hr("0x25")](hr("0x19"))[hr("0x21")](e,((n,o={})=>{const s=t[hr("0x13")].document[hr("0x24")],r=o[hr("0x18")];s.isCollapsed?n(o):t.model[hr("0x12")]((()=>{const n=Array[hr("0x17")](s[hr("0x0")]());for(const o of n){const n=r?[o]:ms(e,o,t[hr("0x13")]);for(const o of n)t.plugins[hr("0x25")]("TrackChangesEditing")[hr("0x1e")](o,{commandName:e,commandParams:[{value:r}]})}}))}))}}const Er=["entries","format","config","markInlineFormat","get","isFormatting","copyFormat","normalizeSizeOptions","find","isCollapsed","getAttributeProperties","getAttributes","*Set format to:* %0","commands","toUpperCase","split","fontColor","enableCommand","fontSize","fontSize.options","TrackChangesEditing","title","afterInit","commandName","model","length","fontBackgroundColor","slice","charAt","locale","change","plugins","getItems","isBlock","getRanges","editor","backward","pasteFormat","fontColor.colors","getLastPosition","word","schema","keys","toLowerCase","getFirstPosition"];var _r,Tr;_r=Er,Tr=378,function(e){for(;--e;)_r.push(_r.shift())}(++Tr);const Cr=function(e,t){return Er[e-=0]};class yr extends e.Plugin{[Cr("0x4")](){const e=this[Cr("0x11")],n=e[Cr("0x6")],o=n.document.selection,s=e.plugins[Cr("0x1f")](Cr("0x2")),r=e[Cr("0xb")],i=e[Cr("0x28")][Cr("0x1f")](Cr("0x21")),a=e[Cr("0x28")].get(Cr("0x13"));i&&a&&(s[Cr("0x2c")](Cr("0x13"),((e,r={})=>{const i=r;n[Cr("0xc")]((()=>{const e=Array.from(o[Cr("0x10")]()),r=o[Cr("0x24")]?[kr(n,o)]:e;if(!!(0,t.first)(function*(e,n){const o=e=>!!(0,t.first)(function*(e,t){for(const[n]of e[Cr("0x26")]()){const e=t[Cr("0x25")](n);e&&e[Cr("0x20")]&&(yield n)}}(e,n));for(const t of e[Cr("0x10")]())for(const e of t[Cr("0xe")]())!n[Cr("0xf")](e)&&o(e)&&(yield e);for(const t of e.getSelectedBlocks())o(t)&&(yield t);o(e)&&(yield e)}(o,n[Cr("0x17")]))||0!==Object[Cr("0x18")](i)[Cr("0x7")])for(const e of r)s[Cr("0x1e")](e,{commandName:Cr("0x13"),commandParams:[i]})}))})),s._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Cr("0x13")===n[Cr("0x5")]){const t=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x1b")](o))t.push(Ar(e,n,s));return t.length?{type:Cr("0x1c"),content:Yo(r,Cr("0x27"),t.join(", "))}:{type:Cr("0x1c"),content:Yo(r,"*Remove all formatting*")}}})),e[Cr("0xd")][Cr("0x1f")](Cr("0x2"))[Cr("0x2c")](Cr("0x21")))}}function kr(e,t){const n=e.createSelection(t);e.modifySelection(n,{unit:"word",direction:Cr("0x12")});const o=n[Cr("0x1a")]();e.modifySelection(n,{unit:Cr("0x16"),direction:"forward"});const s=n[Cr("0x15")]();return e.createRange(o,s)}function Ar(e,t,n){const o=e[Cr("0xb")].t,r=t[Cr("0x2a")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0xa")](0)[Cr("0x29")]()+r[Cr("0x9")](1))[Cr("0x19")]();if("boolean"==typeof n)return i;if(Cr("0x2b")===t||Cr("0x8")===t){const t=(0,s.normalizeColorOptions)(e.config[Cr("0x1f")](Cr("0x14")))[Cr("0x23")]((e=>e[Cr("0x6")]==n));return i+" ("+(t?o(t.label)[Cr("0x19")]():n)+")"}if(Cr("0x0")===t&&isNaN(parseFloat(n))){const t=e.plugins[Cr("0x1f")]("FontSize")[Cr("0x22")](e[Cr("0x1d")][Cr("0x1f")](Cr("0x1")))[Cr("0x23")]((e=>e[Cr("0x6")]==n));return i+" ("+(t?o(t[Cr("0x3")])[Cr("0x19")]():n)+")"}return i+" ("+n+")"}const vr=["markBlockFormat","title","TrackChangesEditing","heading.options","parent","get","change","match","from","checkChild","afterInit","_descriptionFactory","getSelectedBlocks","heading","registerElementLabel","formatBlock","isObject","editor","format","selection","commandName","config","name","value","plugins","registerDescriptionCallback","ELEMENT_HEADING","blockName","HeadingEditing","enableCommand","model","document","find","commandParams","schema","*Change to:* %0"];var Rr,Sr;Rr=vr,Sr=436,function(e){for(;--e;)Rr.push(Rr.shift())}(++Sr);const Ir=function(e,t){return vr[e-=0]};class Lr extends e.Plugin{[Ir("0x6")](){const e=this.editor,t=e.locale,n=e[Ir("0x11")][Ir("0x1")](Ir("0x23"));if(!e[Ir("0x14")].has(Ir("0x18")))return;const o=e[Ir("0x14")][Ir("0x1")](Ir("0x22"));o[Ir("0x19")](Ir("0x9"),((t,n)=>{const s=n[Ir("0x13")],r=Array[Ir("0x4")](this[Ir("0xd")][Ir("0x1a")][Ir("0x1b")][Ir("0xf")][Ir("0x8")]()).filter((e=>{return t=e,n=s,(o=this[Ir("0xd")][Ir("0x1a")][Ir("0x1e")])[Ir("0x5")](t[Ir("0x0")],n)&&!o[Ir("0xc")](t)&&t[Ir("0x12")]!=n;var t,n,o}));e[Ir("0x1a")][Ir("0x2")]((()=>{for(const e of r)o[Ir("0x20")](e,{commandName:Ir("0x9"),commandParams:[n],formatGroupId:Ir("0x17")},fs(e))}))}));for(const e of n)"paragraph"!=e[Ir("0x1a")]&&o._descriptionFactory[Ir("0xa")](e[Ir("0x1a")],(t=>{const n=Nr(e[Ir("0x1a")]);return null!==n?s(t,n):r(t,e[Ir("0x21")])}));function s(e,n){return Yo(t,Ir("0x16"),[e,n])}function r(e,n){return Yo(t,"ELEMENT_HEADING_CUSTOM",[e,n])}o[Ir("0x7")][Ir("0x15")]((e=>{const{type:o,data:i}=e;if(Ir("0xb")==o&&i&&Ir("0x9")==i[Ir("0x10")]){const e=i[Ir("0x1d")][0].value,o=Nr(e);if(null!==o)return{type:Ir("0xe"),content:Yo(t,Ir("0x1f"),s(1,o))};const a=n[Ir("0x1c")]((t=>t[Ir("0x1a")]===e))[Ir("0x21")];return{type:"format",content:Yo(t,Ir("0x1f"),r(1,a))}}}))}}function Nr(e){const t=e[Ir("0x3")](/^heading(\d+)$/);return t?t[1]:null}const Mr=["TrackChangesEditing","item","change","value","registerDescriptionCallback","format","enableCommand","has","find","*Set highlight:* %0","getLastMatchingPosition","_descriptionFactory","hasAttribute","getAttribute","editor","createRange","highlight","config","get","title","FORMAT_HIGHLIGHT","plugins","model","highlight.options","commandName","push","markInlineFormat","selection","getFirstPosition","getRanges","afterInit","document","locale"];var wr,Or;wr=Mr,Or=173,function(e){for(;--e;)wr.push(wr.shift())}(++Or);const Fr=function(e,t){return Mr[e-=0]};class Pr extends e.Plugin{[Fr("0x16")](){const e=this[Fr("0x6")];if(!e[Fr("0xd")][Fr("0x20")]("HighlightEditing"))return;const t=e.plugins[Fr("0xa")](Fr("0x19"));t[Fr("0x1f")](Fr("0x8"),((n,o={})=>{const s=e[Fr("0xe")][Fr("0x17")][Fr("0x13")],r=s[Fr("0x5")](Fr("0x8"));let i=o[Fr("0x1c")],a=[];if(s.isCollapsed){const t=s[Fr("0x14")]();if(!s[Fr("0x4")](Fr("0x8")))return void n(o);{const n=e=>e[Fr("0x1a")][Fr("0x5")]("highlight")===r,o=t[Fr("0x2")](n,{direction:"backward"}),s=t[Fr("0x2")](n);a=[e[Fr("0xe")][Fr("0x7")](o,s)],i==r&&(i=null)}}else for(const t of s[Fr("0x15")]())i?a[Fr("0x11")](t):a.push(...ms(Fr("0x8"),t,e[Fr("0xe")]));e[Fr("0xe")][Fr("0x1b")]((()=>{for(const e of a)t[Fr("0x12")](e,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=e[Fr("0x18")];t[Fr("0x3")][Fr("0x1d")]((t=>{const{type:o,data:s}=t;if("formatInline"==o&&s&&Fr("0x8")==s[Fr("0x10")]){const t=n.t,o=s.commandParams[0][Fr("0x1c")];if(o){const s=e[Fr("0x9")].get(Fr("0xf"))[Fr("0x0")]((e=>e.model==o)),r=t(s.title).toLowerCase();return{type:Fr("0x1e"),content:Yo(n,Fr("0x1"),r),color:{value:s.color,title:s[Fr("0xb")]}}}return{type:Fr("0x1e"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0xc")))}}}))}}const Dr=["ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","dataDowncast","createEmptyElement","get","registerElementLabel","high","for","createPositionAt","plugins","div","createContainerElement","conversion","insert","_descriptionFactory","editor","afterInit","HorizontalLineEditing","enableCommand","ck-horizontal-line","showSuggestionHighlights"];var Br,jr;Br=Dr,jr=370,function(e){for(;--e;)Br.push(Br.shift())}(++jr);const Ur=function(e,t){return Dr[e-=0]};class Gr extends e.Plugin{[Ur("0x3")](){const e=this[Ur("0x2")];if(!e[Ur("0x11")].has(Ur("0x4")))return;e[Ur("0x11")][Ur("0xc")](Ur("0x9"))[Ur("0x5")]("horizontalLine");const t=e[Ur("0x11")][Ur("0xc")](Ur("0x9")),n=e.locale;t[Ur("0x1")][Ur("0xd")]("horizontalLine",(e=>Yo(n,Ur("0x8"),e))),e[Ur("0x14")][Ur("0xf")](Ur("0xa")).elementToStructure({model:"horizontalLine",view:(e,{writer:t,options:n})=>{if(!n[Ur("0x7")])return null;const o=t[Ur("0x13")](Ur("0x12")),s=t[Ur("0xb")]("hr");return t.addClass(Ur("0x6"),o),t[Ur("0x0")](t[Ur("0x10")](o,0),s),o},converterPriority:Ur("0xe")})}}const Hr=["ELEMENT_HTML_EMBED","getCustomProperty","getSelectedElement","getAttribute","registerDescriptionCallback","locale","element","get","format","htmlEmbed","has","commandName","_descriptionFactory","model","enableCommand","TrackChangesEditing","rawHtmlApi","editing","*Change %0 content*","selection","document","rawHtml","plugins","editor","view"];var zr,Wr;zr=Hr,Wr=319,function(e){for(;--e;)zr.push(zr.shift())}(++Wr);const Vr=function(e,t){return Hr[e-=0]};class Kr extends e.Plugin{afterInit(){const e=this[Vr("0x4")];if(!e.plugins[Vr("0x10")]("HtmlEmbed"))return;const t=e.plugins[Vr("0xd")]("TrackChangesEditing"),n=e[Vr("0xb")],o=e[Vr("0x17")][Vr("0x5")].document[Vr("0x0")];t[Vr("0x12")].registerElementLabel(Vr("0x2"),(e=>Yo(n,Vr("0x6"),e))),e[Vr("0x3")][Vr("0xd")](Vr("0x15"))[Vr("0x14")]("htmlEmbed",((n,s)=>{const r=e[Vr("0x13")],i=r[Vr("0x1")][Vr("0x0")];r.change((()=>{const e=function(e){const t=e[Vr("0x8")]();return t&&t.is(Vr("0xc"),Vr("0x2"))?e.getSelectedElement():null}(i);if(!e)return void n(null);const r=e[Vr("0x9")]("value")||"";void 0!==s&&s!==r&&(t.markBlockFormat(e,{commandName:Vr("0xf"),commandParams:[s]}),o[Vr("0x8")]()[Vr("0x7")](Vr("0x16")).cancel())}))})),t[Vr("0x12")][Vr("0xa")]((e=>{const{data:t}=e;if(t&&Vr("0xf")==t[Vr("0x11")]){const e=Yo(n,Vr("0x6"));return{type:Vr("0xe"),content:Yo(n,Vr("0x18"),e)}}}))}}const qr=["locale","_suggestionFactory","plugins","alt","markInsertion","getChangedMarkers","newValue","registerCustomCallback","*Set image width:* %0","discardSuggestion","insertImage","*Reset image width*","imageInline","find","start","length","ImageCaptionEditing","hasAttribute","value","imageTypeBlock","Users","editor","ImageUtils","detach","width","isBefore","end","refresh","toPrevious","suggestion","author","join","formatInline","imageStylePostApply","schema","insertion","toLowerCase","_descriptionFactory","toggleImageCaption","getSuggestionCallback","formatBlock","getClosestSelectedImageElement","imageTypeInline","hasSuggestion","ELEMENT_CAPTION","markDeletion","commandName","removeObject","has","commands","title","getContainedElement","previous","_splitMarkerName","TrackChangesEditing","get","ImageBlockEditing","subType","selection","name","isEqual","Block image to inline image","registerDescriptionCallback","createRangeOn","change","filter","convertBlockImageToInline","shouldConvertImageType","createRange","next","isCollapsed","nodeAfter","getCaptionFromImageModelElement","isIntersecting","caption","enableCommand","isInContent","differ","registerElementLabel","format","type","FORMAT_SIDE_IMAGE","forceDefaultExecution","afterInit","discard","resizeImage","addObject","ImageTextAlternativeEditing","markBlockFormat","uploadImage","ImageEditing","getAttribute","imageCaption","getFirstRange","getSuggestion","from","ImageResize","backward","accept","convertInlineImageToBlock","forEach","ImageInlineEditing","getNearestSelectionRange","commandParams","ELEMENT_IMAGE","imageBlock","chain","ELEMENT_INLINE_IMAGE","newRange","ImageStyleEditing","fromPosition","getSuggestions","isBlockImage","document","model","head","forward","findIndex","imageStylePreApply","imageTextAlternative","imageStyle","*Format:* %0"];var Xr,$r;Xr=qr,$r=298,function(e){for(;--e;)Xr.push(Xr.shift())}(++$r);const Jr=function(e,t){return qr[e-=0]};class Qr extends e.Plugin{[Jr("0x1d")](){const e=this[Jr("0x59")];if(!e[Jr("0x46")][Jr("0x74")](Jr("0x24")))return;const n=e[Jr("0x46")][Jr("0x1")](Jr("0x0")),o=e[Jr("0x46")].get(Jr("0x5a")),s={},r=e[Jr("0x44")];if(n.enableCommand(Jr("0x4e")),n[Jr("0x69")][Jr("0x18")](Jr("0x33"),(e=>Yo(r,Jr("0x32"),e))),n._descriptionFactory.registerElementLabel(Jr("0x50"),(e=>Yo(r,Jr("0x35"),e))),n[Jr("0x69")][Jr("0x18")](Jr("0x14"),(()=>Yo(r,Jr("0x70")))),e[Jr("0x46")][Jr("0x74")]("ImageUploadEditing")&&n[Jr("0x15")](Jr("0x23")),e[Jr("0x46")].has(Jr("0x2"))&&e.plugins[Jr("0x74")](Jr("0x2f"))&&(n[Jr("0x15")](Jr("0x6e"),((t,s)=>{const r=o[Jr("0x6d")](e[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]);e[Jr("0x3c")][Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:"imageTypeInline",commandParams:[s]},[],"convertBlockImageToInline")}))})),n.enableCommand(Jr("0x57"),((t,s)=>{e[Jr("0x3c")][Jr("0xa")]((r=>{let a=o[Jr("0x6d")](e.model[Jr("0x3b")][Jr("0x4")]),x=r.createRangeOn(a);const c=i.LivePosition[Jr("0x38")](x.start,Jr("0x60")),l=i.LivePosition[Jr("0x38")](x[Jr("0x5e")],"toNext");n[Jr("0x1c")]((()=>t(s))),a=o[Jr("0x6d")](e.model[Jr("0x3b")][Jr("0x4")]),x=r[Jr("0x9")](a);const d=r.createRange(c,l);c[Jr("0x5b")](),l[Jr("0x5b")](),n[Jr("0x22")](a,{commandName:Jr("0x6e"),commandParams:[]},[],Jr("0x2d")),d[Jr("0x52")].isBefore(x.start)&&n[Jr("0x48")](r[Jr("0xe")](d[Jr("0x52")],x[Jr("0x52")]),Jr("0x2d")),x.end[Jr("0x5d")](d[Jr("0x5e")])&&n[Jr("0x48")](r[Jr("0xe")](x[Jr("0x5e")],d[Jr("0x5e")]),Jr("0x2d"))}))})),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),"convertInlineImageToBlock",Jr("0x63"),(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x2d"),"accept",(()=>!1)),n[Jr("0x45")][Jr("0x4b")]("formatBlock",Jr("0x2d"),Jr("0x1e"),n[Jr("0x45")][Jr("0x6b")](Jr("0x6c"),"",Jr("0x2c"))),n._suggestionFactory[Jr("0x4b")](Jr("0x67"),"convertInlineImageToBlock","join",(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x67"),"convertInlineImageToBlock",Jr("0x1e"),(([t])=>{const o=n._suggestionFactory[Jr("0x6b")]("insertion","",Jr("0x1e"));let s=t[Jr("0x52")],r=t[Jr("0x5e")];const i=e[Jr("0x3c")].schema.getNearestSelectionRange(s,Jr("0x2b")),a=e[Jr("0x3c")][Jr("0x66")][Jr("0x30")](r,Jr("0x3e"));i.isCollapsed&&(s=i[Jr("0x52")]),a[Jr("0x10")]&&(r=a[Jr("0x5e")]),o([e[Jr("0x3c")].createRange(s,r)])})),n._suggestionFactory[Jr("0x4b")]("formatBlock","convertInlineImageToBlock","chain",c),n[Jr("0x45")][Jr("0x4b")](Jr("0x67"),"convertInlineImageToBlock",Jr("0x34"),c)),e[Jr("0x46")][Jr("0x74")](Jr("0x54"))&&(n[Jr("0x15")](Jr("0x6a"),((t,s)=>{const r=e.plugins[Jr("0x1")]("ImageCaptionUtils");let i=o[Jr("0x6d")](e[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]),a=r.getCaptionFromImageModelElement(i);e[Jr("0x3c")][Jr("0xa")]((()=>{if(a)return void n[Jr("0x71")](e[Jr("0x3c")][Jr("0x9")](a));const x=o[Jr("0x3a")](i);t(s),i=o[Jr("0x6d")](e.model[Jr("0x3b")][Jr("0x4")]),a=r[Jr("0x12")](i),n.markInsertion(e[Jr("0x3c")][Jr("0x9")](a),x?null:Jr("0x26"))}))})),n[Jr("0x45")].registerCustomCallback(Jr("0x67"),Jr("0x26"),"chain",c)),e[Jr("0x46")].has("ImageStyleEditing")){n.enableCommand(Jr("0x42"),((s,r)=>{const i=e[Jr("0x46")][Jr("0x1")](Jr("0x58")).me,a=e[Jr("0x75")][Jr("0x1")](Jr("0x42"));let x=o[Jr("0x6d")](e.model[Jr("0x3b")][Jr("0x4")]),c=e.model[Jr("0x9")](x),l=a[Jr("0x56")];if(l==r[Jr("0x56")])return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,t.uid)()};e.model.change((()=>{if(n[Jr("0x39")]()[Jr("0xb")]((e=>e.isInContent&&i==e[Jr("0x62")]&&(Jr("0x6c")==e[Jr("0x1a")]||Jr("0x64")==e[Jr("0x1a")])&&(Jr("0x40")==e[Jr("0x3")]||"imageStylePostApply"==e[Jr("0x3")])&&e[Jr("0x27")]().isEqual(c)))[Jr("0x2e")]((e=>n[Jr("0x4d")](e[Jr("0x3d")]))),x=o.getClosestSelectedImageElement(e[Jr("0x3c")][Jr("0x3b")].selection),c=e[Jr("0x3c")][Jr("0x9")](x),a.refresh(),e[Jr("0x75")].get(Jr("0x6e"))[Jr("0x5f")](),e[Jr("0x75")].get(Jr("0x57"))[Jr("0x5f")](),l=a.value,l!=r[Jr("0x56")])return o.isInlineImage(x)&&a[Jr("0xd")](r[Jr("0x56")],x)?(s(r),x=o[Jr("0x6d")](e[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]),void n[Jr("0x22")](x,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o.isBlockImage(x)?n[Jr("0x22")](x,d,[],Jr("0x65")):n.markInlineFormat(c,d,Jr("0x65")))}))}));for(const t of e[Jr("0x46")][Jr("0x1")](Jr("0x37")).normalizedStyles)s[t[Jr("0x5")]]=t[Jr("0x76")][Jr("0x68")]();n[Jr("0x45")][Jr("0x4b")]("formatBlock",Jr("0x40"),"join",(()=>!1)),n[Jr("0x45")][Jr("0x4b")](Jr("0x6c"),Jr("0x65"),Jr("0x63"),(()=>!1)),n[Jr("0x45")][Jr("0x4b")](Jr("0x64"),Jr("0x65"),"join",(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x40"),Jr("0x2c"),(()=>!1)),n[Jr("0x45")].registerCustomCallback("formatBlock","imageStylePreApply",Jr("0x1e"),((e,t)=>{n[Jr("0x45")][Jr("0x6b")]("formatBlock","","accept")(e,{commandName:t[Jr("0x72")],commandParams:t.commandReversedParams})})),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x40"),Jr("0x34"),c)}const a=[{type:"formatBlock",subType:Jr("0x40")},{type:Jr("0x67"),subType:Jr("0x26")},{type:Jr("0x6c"),subType:Jr("0x2d")},{type:Jr("0x67"),subType:"convertInlineImageToBlock"}];function x(e,t){const s=a.findIndex((({type:t,subType:n})=>e[Jr("0x1a")]==t&&e.subType==n)),r=a[Jr("0x3f")]((({type:e,subType:n})=>t[Jr("0x1a")]==e&&t[Jr("0x3")]==n));if(s<0||r<0)return!1;const i=e[Jr("0x27")](),x=t[Jr("0x27")]();if((0==s||1==s)&&2==r&&i[Jr("0x13")](x))return!0;if(2==s&&3==r){const e=n._findSuggestions(i,"insertion")[Jr("0xb")]((({suggestion:e,meta:t})=>t.isOwn&&Jr("0x2d")==e[Jr("0x3")]));if(e.length>1&&x.end[Jr("0x6")](i[Jr("0x52")]))return!0;if(1==e[Jr("0x53")]&&(i[Jr("0x52")][Jr("0x6")](x[Jr("0x5e")])||i[Jr("0x5e")][Jr("0x6")](x[Jr("0x52")])))return!0}if(3==s&&3==r&&i.start[Jr("0x5d")](x.start)){const e=i[Jr("0x5e")][Jr("0x11")],t=x.start.nodeBefore;return o.isBlockImage(e)&&e===t}return!1}function c(e,t){return x(e,t)?[e,t]:x(t,e)?[t,e]:null}e[Jr("0x3c")].document.registerPostFixer((()=>{let t=!1;const s=Array[Jr("0x29")](e.model[Jr("0x3b")][Jr("0x17")][Jr("0x49")]());for(const{name:e,data:r}of s){const{group:s,type:i,subType:a,id:x}=n[Jr("0x79")](e);if(Jr("0x61")==s&&n[Jr("0x6f")](x)){if(Jr("0x6c")==i&&(Jr("0x40")==a||"imageStylePostApply"==a)){const e=n[Jr("0x28")](x);if(r[Jr("0x36")]){const s=e.getFirstRange()[Jr("0x77")]();if(o[Jr("0x3a")](s))continue;n[Jr("0x4d")](e),t=!0}}if("insertion"==i&&Jr("0x26")==a&&!r[Jr("0x36")]){const e=n.getSuggestion(x);e.next&&e[Jr("0xf")][Jr("0x16")]&&(n[Jr("0x4d")](e.next),t=!0)}}}return t})),e[Jr("0x46")][Jr("0x74")](Jr("0x2a"))&&n[Jr("0x15")](Jr("0x1f"),((t,s)=>{const r=o[Jr("0x6d")](e.model[Jr("0x3b")][Jr("0x4")]);r[Jr("0x25")](Jr("0x5c"))!=s[Jr("0x5c")]&&e.model[Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x1f"),commandParams:[s]})}))})),e[Jr("0x46")].has(Jr("0x21"))&&n[Jr("0x15")](Jr("0x41"),((t,s)=>{const r=o[Jr("0x6d")](e.model[Jr("0x3b")][Jr("0x4")]);(r[Jr("0x55")](Jr("0x47"))?r[Jr("0x25")](Jr("0x47")):"")!=s[Jr("0x4a")]&&e[Jr("0x3c")][Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x41"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x8")]((e=>{if(a[Jr("0x51")]((({type:t,subType:n})=>e[Jr("0x1a")]==t&&e[Jr("0x3")]==n)))return e[Jr("0x78")]?{}:void 0})),n._descriptionFactory[Jr("0x8")]((e=>{if(Jr("0x67")==e[Jr("0x1a")]||"deletion"==e.type){const t=e.getContainedElement();if(t&&t.is("element",Jr("0x14")))return{type:Jr("0x67")==e[Jr("0x1a")]?Jr("0x20"):Jr("0x73"),element:t,quantity:1}}})),n[Jr("0x69")][Jr("0x8")]((e=>"formatBlock"==e[Jr("0x1a")]&&Jr("0x2d")==e.subType?{type:Jr("0x19"),content:"Inline image to block image"}:Jr("0x6c")==e[Jr("0x1a")]&&Jr("0xc")==e[Jr("0x3")]?{type:Jr("0x19"),content:Jr("0x7")}:void 0)),n[Jr("0x69")].registerDescriptionCallback((e=>{const{data:t}=e;if(t){if("imageStyle"==t.commandName){const e=t[Jr("0x31")][0].value;return n="side"===e?Yo(r,Jr("0x1b")):s[e]||e,{type:Jr("0x19"),content:Yo(r,Jr("0x43"),n)}}if(Jr("0x41")==t[Jr("0x72")]){const e=t.commandParams[0][Jr("0x4a")];return e?{type:Jr("0x19"),content:Yo(r,"*Set image text alternative:* %0",'"'+e+'"')}:{type:Jr("0x19"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x1f")==t[Jr("0x72")]){const e=t[Jr("0x31")][0][Jr("0x5c")];return e?{type:Jr("0x19"),content:Yo(r,Jr("0x4c"),e)}:{type:"format",content:Yo(r,Jr("0x4f"))}}}var n}))}}const Zr=["accept","handleSuggestionDescription","editor","model","getSuggestions","source","formatBlock","data","_suggestionFactory","locale","markBlockFormat","enableCommand","getAttribute","replaceImageSource","registerCustomCallback","getSuggestionCallback","format","getSelectedElement","author","has","discard","getContainedElement","change","registerDescriptionCallback","subType","_descriptionFactory","get","*Format:* replace image URL","TrackChangesEditing","plugins","selection","handleReplaceImageCommand","commandName"];var Yr,ei;Yr=Zr,ei=227,function(e){for(;--e;)Yr.push(Yr.shift())}(++ei);const ti=function(e,t){return Zr[e-=0]};class ni extends e.Plugin{afterInit(){if(!this[ti("0x6")][ti("0x0")][ti("0x17")]("ImageEditing"))return;const e=this[ti("0x6")].plugins.get(ti("0x20"));e[ti("0xf")]("replaceImageSource",((e,t)=>this.handleReplaceImageCommand(e,t))),e[ti("0xc")][ti("0x12")](ti("0xa"),ti("0x11"),ti("0x4"),e[ti("0xc")][ti("0x13")](ti("0xa"),null,ti("0x18"))),e[ti("0xc")][ti("0x12")](ti("0xa"),ti("0x11"),"discard",e._suggestionFactory[ti("0x13")]("formatBlock",null,ti("0x4"))),e[ti("0x1d")][ti("0x1b")]((e=>this.handleSuggestionDescription(e)))}[ti("0x2")](e,t){const n=this.editor[ti("0x0")][ti("0x1e")](ti("0x20")),o=this[ti("0x6")][ti("0x7")].document[ti("0x1")][ti("0x15")]();this.editor.model[ti("0x1a")]((()=>{let s=o[ti("0x10")]("src");const r=this[ti("0x6")][ti("0x0")][ti("0x1e")]("Users").me;for(const e of n[ti("0x8")]({skipNotAttached:!0})){const t=e[ti("0x19")]();if(ti("0x11")===e[ti("0x1c")]&&t===o){e[ti("0x16")]!==r&&e[ti("0x18")](),s=e[ti("0xb")].commandParams[0][ti("0x9")];break}}e(t),n[ti("0xe")](o,{commandName:ti("0x11"),commandParams:[{source:s}]},[],ti("0x11"))}))}[ti("0x5")](e){const{data:t}=e;if(t&&ti("0x11")===t[ti("0x3")]){const e=ti("0x1f");return{type:ti("0x14"),content:Yo(this[ti("0x6")][ti("0xd")],e)}}}}const oi=["plugins","lowest","_trackChangesValueDuringImport","listenTo","TrackChangesEditing","commands","Users","afterInit","importWord","editor","_setSuggestionData","enableCommand","get","_trackChangesExecuted","dataInsert","value","collaboration_features","bind","track_changes","high","execute","forEach","_handleImportedData"];var si,ri;si=oi,ri=453,function(e){for(;--e;)si.push(si.shift())}(++ri);const ii=function(e,t){return oi[e-=0]};class ai extends e.Plugin{constructor(e){super(e),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}[ii("0xe")](){const e=this[ii("0x10")],t=e[ii("0xc")][ii("0x13")](ii("0xf")),n=e[ii("0xc")][ii("0x13")]("trackChanges");t&&(t.on(ii("0x4"),((e,[,t])=>{this._trackChangesValueDuringImport=n[ii("0x16")],t[ii("0x0")][ii("0x2")]=!this[ii("0x9")]}),{priority:ii("0x3")}),this[ii("0xa")](t,"dataInsert",this[ii("0x6")][ii("0x1")](this)),this[ii("0xa")](t,ii("0x15"),(()=>{this[ii("0x14")]&&(n.execute(),this[ii("0x14")]=!1)}),{priority:ii("0x8")}),e[ii("0x7")].get(ii("0xb"))[ii("0x12")](ii("0xf")))}[ii("0x6")](e,t){const{suggestions:n}=t,o=this[ii("0x10")][ii("0xc")][ii("0x13")]("trackChanges"),s=o[ii("0x16")];this[ii("0x9")]!==s&&(o[ii("0x4")](),this._trackChangesExecuted=!0),n&&n[ii("0x5")]((({id:e,type:t,author:n,created_at:o})=>{const s={id:e,type:t,authorId:this[ii("0x10")][ii("0x7")][ii("0x13")](ii("0xd")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xf")}}};this.editor[ii("0x7")].get(ii("0xb"))[ii("0x11")](s)}))}}const xi=["locale","change","registerDescriptionCallback","getItems","TrackChangesEditing","indent","outdentBlock","markBlockFormat","enableCommand","getSelectedBlocks","_descriptionFactory","format","afterInit","getItemLabel","*Outdent:* %0","indentBlock","checkAttribute","editor","commandName","plugins","selection","get","IndentBlock","schema","*Indent:* %0","document","outdent","IndentEditing","model"];var ci,li;ci=xi,li=236,function(e){for(;--e;)ci.push(ci.shift())}(++li);const di=function(e,t){return xi[e-=0]};class ui extends e.Plugin{[di("0x8")](){const e=this[di("0xd")],t=e[di("0xf")][di("0x11")](di("0x0"));e.plugins.has(di("0x17"))&&(t[di("0x4")](di("0x1")),t[di("0x4")](di("0x16")));const n=e[di("0x19")];if(e[di("0xf")].has(di("0x12"))){for(const n of[di("0xb"),di("0x2")])t[di("0x4")](n,(()=>{const o=Array.from(this[di("0xd")][di("0x18")][di("0x15")][di("0x10")][di("0x5")]()).filter((e=>this[di("0xd")][di("0x18")][di("0x13")][di("0xc")](e,"blockIndent")));e.model[di("0x1a")]((()=>{for(const e of o)t[di("0x3")](e,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xb")})}))}));t[di("0x6")][di("0x1b")]((e=>{const{data:o}=e;if(!o)return;if(di("0xb")!=o[di("0xe")]&&di("0x2")!=o[di("0xe")])return;const s=e[di("0x1c")]()[0],r=t[di("0x6")][di("0x9")](s);return"indentBlock"==o[di("0xe")]?{type:di("0x7"),content:Yo(n,di("0x14"),r)}:di("0x2")==o.commandName?{type:"format",content:Yo(n,di("0xa"),r)}:void 0}))}}}var gi,mi,fi=["get","input","plugins","editor","init","TrackChangesEditing","requires"];gi=fi,mi=487,function(e){for(;--e;)gi.push(gi.shift())}(++mi);var hi=function(e,t){return fi[e-=0]};class pi extends e.Plugin{static get[hi("0x2")](){return[Vs.Input]}[hi("0x0")](){this[hi("0x6")][hi("0x5")][hi("0x3")](hi("0x1")).enableCommand(hi("0x4"))}}const bi=["enableCommand","getRanges","change","unlink","selection","plugins","TrackChangesEditing","markInlineFormat","commandName","linkHref","locale","registerDescriptionCallback","link","*Remove link*","has","model","getFirstRange","hasAttribute","format","document","getFirstPosition","from","commandParams","getAttribute","*Set link:* %0","isCollapsed","get","_descriptionFactory","afterInit"];var Ei,_i;Ei=bi,_i=266,function(e){for(;--e;)Ei.push(Ei.shift())}(++_i);const Ti=function(e,t){return bi[e-=0]};class Ci extends e.Plugin{[Ti("0x17")](){const e=this.editor;if(!e[Ti("0x0")][Ti("0x9")]("LinkEditing"))return;const t=e[Ti("0x0")][Ti("0x15")](Ti("0x1"));t[Ti("0x18")](Ti("0x7"),((n,o)=>{const s=e[Ti("0xa")].document[Ti("0x1c")];let r=[];if(s[Ti("0x14")]){if(!s[Ti("0xc")](Ti("0x4")))return void n(o);{const t=(0,Vs.findAttributeRange)(s[Ti("0xf")](),"linkHref",s[Ti("0x12")](Ti("0x4")),e.model);r=[t]}}else r=Array[Ti("0x10")](s[Ti("0x19")]());e[Ti("0xa")][Ti("0x1a")]((()=>{for(const e of r)t[Ti("0x2")](e,{commandName:Ti("0x7"),commandParams:[o]})}))})),t[Ti("0x18")]("unlink",(()=>{const n=this.editor[Ti("0xa")],o=n[Ti("0xe")][Ti("0x1c")];n.change((()=>{let n=[];n=o[Ti("0x14")]?[(0,Vs.findAttributeRange)(o[Ti("0xf")](),Ti("0x4"),o[Ti("0x12")](Ti("0x4")),e[Ti("0xa")])]:ms("linkHref",o[Ti("0xb")](),e[Ti("0xa")]);for(const e of n)t[Ti("0x2")](e,{commandName:Ti("0x1b"),commandParams:[]})}))})),t[Ti("0x16")][Ti("0x6")]((t=>{const{data:n}=t,o=e[Ti("0x5")];if(n){if(Ti("0x7")==n[Ti("0x3")]){const e=n[Ti("0x11")][0];return{type:"format",content:Yo(o,Ti("0x13"),'"'+e+'"')}}return Ti("0x1b")==n[Ti("0x3")]?{type:Ti("0xd"),content:Yo(o,Ti("0x8"))}:void 0}}))}}const yi=["locale","get","numbered","bulleted","document","element","commands","registerElementLabel","createPositionAt","numberedList","add","blockName","editor","_descriptionFactory","value","ELEMENT_LIST_ITEM","filter","has","selection","before","findIndex","todoList","registerDescriptionCallback","TodoListEditing","*Outdent:* %0","commandParams","nextSibling","plugins","*Change to:* %0","ELEMENT_BULLETED_LIST","*Indent:* %0","getAttribute","enableCommand","commandName","model","execute","checkTodoList","from","slice","previousSibling","parent","listType","ELEMENT_NUMBERED_LIST","forceValue","listItem","change","indentList","listIndent","*Uncheck item*","outdentList","getSelectedBlocks","_selectedElements","replace","TrackChangesEditing","markBlockFormat","createRange","paragraph","*Check item*","name","bulletedList","todoListChecked","format"];var ki,Ai;ki=yi,Ai=455,function(e){for(;--e;)ki.push(ki.shift())}(++Ai);const vi=function(e,t){return yi[e-=0]};class Ri extends e.Plugin{afterInit(){const e=this[vi("0x35")],t=e[vi("0x29")];if(!e[vi("0x6")][vi("0x3a")]("ListEditing"))return;const n=e[vi("0x6")].get(vi("0x20")),o=e[vi("0x6")][vi("0x3a")](vi("0x2"));function s(t){return()=>{const o=e[vi("0xd")][vi("0x2d")][vi("0x3b")],s=e[vi("0x2f")][vi("0x2a")](t);if(s[vi("0x37")])return void e[vi("0xe")](vi("0x23"),{});const r=t.slice(0,-4),i=function(e,t,n){let o=Array[vi("0x10")](e).filter((e=>{return t=e,(o=n).checkChild(t[vi("0x13")],vi("0x17"))&&!o.isObject(t);var t,o}));o=o[vi("0x39")]((e=>!e.is(vi("0x2e"),vi("0x17"))||e[vi("0xa")](vi("0x14"))!=t));const s=new Set;for(const e of o)e.is(vi("0x2e"),vi("0x17"))?s.add(Si(e)):s[vi("0x33")](e);return Array[vi("0x10")](s)}(o.getSelectedBlocks(),r,e.model.schema);e[vi("0xd")][vi("0x18")]((()=>{for(const e of i)n[vi("0x21")](e,{commandName:t,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x34")},Ii(e))}))}}function r(t){return()=>{const o=function(e){let t=Array.from(e);const n=t[vi("0x3d")]((e=>vi("0x17")!=e[vi("0x25")]));return n>-1&&(t=t[vi("0x11")](0,n)),t}(e[vi("0xd")][vi("0x2d")][vi("0x3b")][vi("0x1d")]()),s=e[vi("0xd")][vi("0x22")](e.model[vi("0x31")](o[0],vi("0x3c")),e.model[vi("0x31")](o[o.length-1],"end"));e.model[vi("0x18")]((()=>{n[vi("0x21")](s,{commandName:t,commandParams:[],formatGroupId:vi("0x1a")},function(e){const t=new Set;for(const n of e){let e=n[vi("0x5")];for(;e&&e[vi("0xa")](vi("0x1a"))>n[vi("0xa")](vi("0x1a"));)t.add(e),e=e[vi("0x5")]}return Array[vi("0x10")](t)}(o))}))}}n[vi("0xb")](vi("0x32"),s("numberedList")),n[vi("0xb")]("bulletedList",s(vi("0x26"))),o&&n[vi("0xb")](vi("0x0"),s(vi("0x0"))),n[vi("0xb")](vi("0x19"),r(vi("0x19"))),n[vi("0xb")]("outdentList",r(vi("0x1c"))),o&&n[vi("0xb")](vi("0xf"),(()=>{const t=e[vi("0x2f")][vi("0x2a")]("checkTodoList"),o=Array[vi("0x10")](t[vi("0x1e")]);o[vi("0x39")]((e=>e.getAttribute(vi("0x27"))!=t[vi("0x37")])),e[vi("0xd")][vi("0x18")]((()=>{for(const e of o)n[vi("0x21")](e,{commandName:vi("0xf"),commandParams:[{forceValue:!t[vi("0x37")]}]})}))})),n[vi("0x36")][vi("0x30")](vi("0x17"),(e=>Yo(t,vi("0x38"),e))),n[vi("0x36")][vi("0x1")]((e=>{const{data:n}=e;if(n){if(vi("0x32")==n[vi("0xc")]||vi("0x26")==n.commandName||vi("0x0")==n.commandName)switch(n[vi("0xc")][vi("0x1f")]("List","")){case vi("0x2c"):return o(Yo(t,vi("0x8")));case vi("0x2b"):return o(Yo(t,vi("0x15")));case"todo":return o(Yo(t,"ELEMENT_TODO_LIST"))}if(vi("0x19")==n[vi("0xc")])return{type:"format",content:Yo(t,vi("0x9"),Yo(t,vi("0x38")))};if("outdentList"==n[vi("0xc")])return{type:"format",content:Yo(t,vi("0x3"),Yo(t,vi("0x38")))};if(vi("0xf")==n[vi("0xc")])return n[vi("0x4")][0][vi("0x16")]?{type:vi("0x28"),content:Yo(t,vi("0x24"))}:{type:vi("0x28"),content:Yo(t,vi("0x1b"))}}function o(e){return{type:vi("0x28"),content:Yo(t,vi("0x7"),e)}}}))}}function Si(e){const t=e.getAttribute("listIndent");if(0==t)return e;let n=e;for(;e.previousSibling&&e[vi("0x12")].is(vi("0x2e"),vi("0x17"));){const o=e[vi("0x12")].getAttribute(vi("0x1a"));if(o==t)n=e[vi("0x12")];else if(o<t)break;e=e[vi("0x12")]}return n}function Ii(e){const t=[];if(e.is("element",vi("0x17"))&&e[vi("0xa")](vi("0x1a"))>0){let n=e[vi("0x5")];for(;n&&vi("0x17")==n.name&&n[vi("0xa")](vi("0x1a"))==e.getAttribute(vi("0x1a"));)t.push(n),n=n.nextSibling}return t}const Li=["getAttribute","plugins","numbered","bind","TrackChangesEditing","afterInit","_LIST_","get","listStyle","ListUtils","_getSuggestionBlocks","parent","enableCommand","getSiblingNodes","getSelectedBlocks","ELEMENT_","listReversed","startIndex","handleListStartCommand","element","length","change","forward","getFirstPosition","model","handleDescriptions","backward","createPositionAt","list.properties","commandName","editor","push","*Format:* set order to reversed","createRange","listItem","listStart","*Format:* set start index to %0","from","_getTranslationKeyForListStyle","has","map","handleListStyleCommand","styles","config","markMultiRangeBlockFormat","unshift","filter","_getSuggestionBlocksForListStyle","reversed","locale","handleListReversedCommand","selection","before","getLastPosition","commandParams","type","format","toUpperCase","document","listType"];var Ni,Mi;Ni=Li,Mi=478,function(e){for(;--e;)Ni.push(Ni.shift())}(++Mi);const wi=function(e,t){return Li[e-=0]};class Oi extends e.Plugin{[wi("0x7")](){if(!this.editor[wi("0x3")][wi("0x29")]("ListPropertiesEditing"))return;const e=this.editor[wi("0x2d")][wi("0x9")](wi("0x1e")),t=this.editor[wi("0x3")][wi("0x9")](wi("0x6"));e[wi("0x2c")]&&t.enableCommand(wi("0xa"),this[wi("0x2b")][wi("0x5")](this)),e[wi("0x32")]&&t[wi("0xe")](wi("0x12"),this[wi("0x34")][wi("0x5")](this)),e[wi("0x13")]&&t.enableCommand(wi("0x25"),this[wi("0x14")][wi("0x5")](this)),t._descriptionFactory.registerDescriptionCallback(this.handleDescriptions[wi("0x5")](this))}handleListStyleCommand(e,t={}){const n=this.editor.plugins[wi("0x9")]("TrackChangesEditing"),o=this[wi("0x31")]();this[wi("0x20")].model[wi("0x17")]((()=>{n[wi("0x2e")](o,{commandName:"listStyle",commandParams:[{type:t[wi("0x39")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(e,t={}){const n=this[wi("0x20")][wi("0x3")][wi("0x9")]("TrackChangesEditing"),o=this[wi("0xc")]((e=>e.is(wi("0x15"),"listItem")&&wi("0x4")===e[wi("0x2")](wi("0x1"))));if(o[wi("0x16")]<1)return;const s=o[wi("0x2a")]((e=>this[wi("0x20")][wi("0x1a")].createRange(this[wi("0x20")][wi("0x1a")][wi("0x1d")](e,wi("0x36")),this[wi("0x20")].model[wi("0x1d")](e,0))));this[wi("0x20")][wi("0x1a")][wi("0x17")]((()=>{n[wi("0x2e")](s,{commandName:wi("0x12"),commandParams:[{reversed:t[wi("0x32")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(e,t={}){const n=this[wi("0x20")].plugins[wi("0x9")](wi("0x6")),o=this[wi("0xc")]((e=>e.is(wi("0x15"),wi("0x24"))&&"numbered"===e.getAttribute(wi("0x1"))));if(o[wi("0x16")]<1)return;const s=o.map((e=>this[wi("0x20")][wi("0x1a")][wi("0x23")](this[wi("0x20")][wi("0x1a")][wi("0x1d")](e,"before"),this[wi("0x20")][wi("0x1a")][wi("0x1d")](e,0))));this[wi("0x20")][wi("0x1a")][wi("0x17")]((()=>{n[wi("0x2e")](s,{commandName:wi("0x25"),commandParams:[{startIndex:t[wi("0x13")]}],formatGroupId:wi("0x25")})}))}[wi("0x1b")](e){const t=this.editor[wi("0x33")],{data:n}=e;if(!n)return;let o,s;switch(n[wi("0x1f")]){case"listStyle":o="*Change to:* %0",s={type:wi("0x3a"),content:Yo(t,o,Yo(t,this[wi("0x28")](n[wi("0x38")][0][wi("0x39")])))};break;case"listReversed":o=n[wi("0x38")][0][wi("0x32")]?wi("0x22"):"*Format:* set order to regular",s={type:wi("0x3a"),content:Yo(t,o)};break;case"listStart":o=wi("0x26"),s={type:"format",content:Yo(t,o,n[wi("0x38")][0].startIndex)}}return s}[wi("0x31")](){var e,t,n,o;const s=this[wi("0x20")][wi("0x3")][wi("0x9")]("ListUtils");let r=Array.from(this[wi("0x20")][wi("0x1a")][wi("0x0")].selection[wi("0x10")]());return(null===(e=r[0])||void 0===e?void 0:e.is(wi("0x15"),"listItem"))&&r[wi("0x2f")](...s[wi("0xf")](this[wi("0x20")][wi("0x1a")][wi("0x0")].selection.getFirstPosition(),wi("0x1c"))),(null===(t=r[r[wi("0x16")]-1])||void 0===t?void 0:t.is("element","listItem"))&&r[wi("0x21")](...s.getSiblingNodes(this[wi("0x20")][wi("0x1a")][wi("0x0")].selection[wi("0x37")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x20")][wi("0x1a")].document.selection[wi("0x19")]())||void 0===n?void 0:n[wi("0xd")])||void 0===o?void 0:o.is(wi("0x15"),wi("0x24")))&&(r=r[wi("0x30")]((e=>e.is(wi("0x15"),wi("0x24"))))),r}[wi("0xc")](e){const t=this[wi("0x20")][wi("0x3")][wi("0x9")]("ListUtils");let n=Array[wi("0x27")](this[wi("0x20")].model[wi("0x0")][wi("0x35")][wi("0x10")]())[wi("0x30")](e)[wi("0x2a")]((e=>{const n=this[wi("0x20")].model[wi("0x1d")](e,0);return[...t[wi("0xf")](n,"backward"),...t[wi("0xf")](n,wi("0x18"))]})).flat();return n=[...new Set(n)],n}[wi("0x28")](e){return wi("0x11")+this.editor[wi("0x3")][wi("0x9")](wi("0xb")).getListTypeFromListStyleType(e).toUpperCase()+wi("0x8")+e[wi("0x3b")]().replace(/-/g,"_")}}const Fi=["elementToElement","enableCommand","plugins","stop","for","media","dataDowncast","afterInit","ELEMENT_MEDIA","data","showSuggestionHighlights","mediaEmbed","high","TrackChangesEditing","options","MediaEmbedEditing","has","conversion","editor","locale","createEmptyElement","_descriptionFactory"];var Pi,Di;Pi=Fi,Di=107,function(e){for(;--e;)Pi.push(Pi.shift())}(++Di);const Bi=function(e,t){return Fi[e-=0]};class ji extends e.Plugin{[Bi("0xa")](){const e=this[Bi("0x15")];if(!e[Bi("0x5")][Bi("0x13")](Bi("0x12")))return;const t=e[Bi("0x5")].get(Bi("0x10")),n=e[Bi("0x0")];t[Bi("0x4")](Bi("0xe")),t[Bi("0x2")].registerElementLabel("media",(e=>Yo(n,Bi("0xb"),e))),e[Bi("0x14")][Bi("0x7")](Bi("0x9"))[Bi("0x3")]({model:Bi("0x8"),view:(e,{writer:t,options:n})=>{if(n[Bi("0xd")])return t[Bi("0x1")]("div")},converterPriority:Bi("0xf")}),e[Bi("0xc")].downcastDispatcher.on("attribute:url:media",((e,t,n)=>{n[Bi("0x11")][Bi("0xd")]&&e[Bi("0x6")]()}),{priority:"high"})}}const Ui=["TrackChangesEditing","get","enableCommand","MentionEditing","afterInit","mention","has","plugins"];var Gi,Hi;Gi=Ui,Hi=244,function(e){for(;--e;)Gi.push(Gi.shift())}(++Hi);const zi=function(e,t){return Ui[e-=0]};class Wi extends e.Plugin{[zi("0x0")](){const e=this.editor;e.plugins[zi("0x2")](zi("0x7"))&&e[zi("0x3")][zi("0x5")](zi("0x4"))[zi("0x6")](zi("0x1"))}}const Vi=["pageBreak","plugins","afterInit","editor","PageBreakEditing","enableCommand","registerElementLabel","get","locale","ELEMENT_PAGE_BREAK","has","_descriptionFactory","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=496,function(e){for(;--e;)Ki.push(Ki.shift())}(++qi);const Xi=function(e,t){return Vi[e-=0]};class $i extends e.Plugin{[Xi("0x0")](){const e=this[Xi("0x1")];if(!e[Xi("0xc")][Xi("0x8")](Xi("0x2")))return;e.plugins.get(Xi("0xa"))[Xi("0x3")](Xi("0xb"));const t=e[Xi("0xc")][Xi("0x5")](Xi("0xa")),n=e[Xi("0x6")];t[Xi("0x9")][Xi("0x4")](Xi("0xb"),(e=>Yo(n,Xi("0x7"),e)))}}const Ji=["activeMarkers","plugins","ELEMENT_PARAGRAPH","Paragraph","type","registerElementLabel","ck-suggestion-marker-split","isTouching","afterInit","registerDescriptionCallback","*Change to:* %0","isLimit","createUIElement","_descriptionFactory","paragraph","$text","filter","addMarker:suggestion:insertion","document","parent","insertParagraph","insertion","change","consumable","enableCommand","from","blockName","downcastDispatcher","showSuggestionHighlights","getSelectedBlocks","get","nodeAfter","writer","checkChild","getItemLabel","editing","ck-suggestion-marker--active","TrackChangesEditing","editor","bindElementToMarker","*Insert:* %0","has","commandName","includes","selection","getFirstRange","markerName","name","isBlock","end","markBlockFormat","markerRange","mapper","toViewPosition","model","locale","insert","options","addClass","highest","span","consume","schema"];var Qi,Zi;Qi=Ji,Zi=224,function(e){for(;--e;)Qi.push(Qi.shift())}(++Zi);const Yi=function(e,t){return Ji[e-=0]};class ea extends e.Plugin{[Yi("0x24")](){const e=this[Yi("0x3")];if(!e[Yi("0x1d")][Yi("0x6")](Yi("0x1f")))return;const t=e[Yi("0x14")],n=e[Yi("0x1d")][Yi("0x3a")](Yi("0x2"));n[Yi("0x29")][Yi("0x21")](Yi("0x2a"),(e=>Yo(t,Yi("0x1e"),e))),n[Yi("0x34")](Yi("0x2a"),((t,o={})=>{const s=e[Yi("0x13")][Yi("0x2e")],r=o[Yi("0x9")]||s[Yi("0x9")],i=Array[Yi("0x35")](r[Yi("0x39")]())[Yi("0x2c")]((e=>{return t=e,(n=this.editor[Yi("0x13")][Yi("0x1b")])[Yi("0x3d")](t[Yi("0x2f")],Yi("0x2a"))&&!n.isObject(t)&&Yi("0x2a")!=t.name;var t,n}));e[Yi("0x13")][Yi("0x32")]((()=>{for(const e of i)n[Yi("0xf")](e,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x36")},fs(e))}))})),n[Yi("0x29")][Yi("0x25")]((e=>{const{data:n}=e;if(n&&Yi("0x2a")==n[Yi("0x7")])return{type:"format",content:Yo(t,Yi("0x26"),Yo(t,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x34")](Yi("0x30")),e[Yi("0x0")][Yi("0x37")].on(Yi("0x2d"),ta(e),{priority:"highest"}),e.data[Yi("0x37")].on(Yi("0x2d"),((t,n,o)=>{o[Yi("0x16")][Yi("0x38")]&&ta(e,{showActiveMarker:!1})(t,n,o)}),{priority:Yi("0x18")});const o=n[Yi("0x29")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Yi("0x20")])return;const{start:s,end:r}=n[Yi("0xa")]();if(!s[Yi("0x23")](r)||!s[Yi("0x3b")])return;const i=e[Yi("0x13")].schema,a=s[Yi("0x3b")];return i[Yi("0xd")](a)&&!i[Yi("0x27")](a)&&i.checkChild(a,Yi("0x2b"))?{type:Yi("0x31"),content:Yo(t,Yi("0x5"),o[Yi("0x3e")](a,1))}:void 0}))}}function ta(e,{showActiveMarker:t=!0}={}){return(n,o,s)=>{const r=e[Yi("0x1d")][Yi("0x3a")]("TrackChangesEditing"),i=o.markerRange.start,a=o.markerRange[Yi("0xe")],x=e.model.schema;if(!i[Yi("0x23")](a)||!i[Yi("0x3b")])return;const c=i[Yi("0x3b")];if(x[Yi("0xd")](c)&&!x.isLimit(c)&&x[Yi("0x3d")](c,Yi("0x2b"))){if(!s[Yi("0x33")][Yi("0x1a")](o[Yi("0x10")],n[Yi("0xc")]))return;const e=s[Yi("0x3c")][Yi("0x28")](Yi("0x19"),{class:Yi("0x22")}),i=s[Yi("0x11")][Yi("0x12")](a);t&&r[Yi("0x1c")][Yi("0x8")](o[Yi("0xb")])&&s[Yi("0x3c")][Yi("0x17")](Yi("0x1"),e),s[Yi("0x3c")][Yi("0x15")](i,e),s[Yi("0x11")][Yi("0x4")](e,o[Yi("0xb")])}}}const na=["removeFormat","commandName","getItems","schema","change","locale","markInlineFormat","isFormatting","isCollapsed","plugins","has","model","format","afterInit","from","*Remove all formatting*"];var oa,sa;oa=na,sa=116,function(e){for(;--e;)oa.push(oa.shift())}(++sa);const ra=function(e,t){return na[e-=0]};class ia extends e.Plugin{[ra("0x9")](){const e=this.editor;if(!e[ra("0x5")][ra("0x6")]("RemoveFormatEditing"))return;const t=e[ra("0x5")].get("TrackChangesEditing");t.enableCommand(ra("0xc"),(n=>{const o=e[ra("0x7")].document.selection;o[ra("0x4")]?n():e[ra("0x7")][ra("0x0")]((()=>{const n=Array[ra("0xa")](o.getRanges());for(const o of n)for(const n of o[ra("0xe")]())aa(n,e[ra("0x7")][ra("0xf")])&&t[ra("0x2")](e.model.createRangeOn(n),{commandName:ra("0xc"),commandParams:[]})}))})),t._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ra("0xc")==n[ra("0xd")])return{type:ra("0x8"),content:Yo(e[ra("0x1")],ra("0xb"))}}))}}function aa(e,t){for(const[n]of e.getAttributes()){const e=t.getAttributeProperties(n);if(e&&e[ra("0x3")])return!0}return!1}const xa=["TrackChangesEditing","plugins","RestrictedEditingModeEditing","trackChanges","enableCommand","get","acceptSuggestion","discardSuggestion","discardAllSuggestions","acceptSelectedSuggestions","goToNextRestrictedEditingException","acceptAllSuggestions","goToPreviousRestrictedEditingException","discardSelectedSuggestions","has"];var ca,la;ca=xa,la=163,function(e){for(;--e;)ca.push(ca.shift())}(++la);const da=function(e,t){return xa[e-=0]};class ua extends e.Plugin{afterInit(){const e=this.editor;if(!e[da("0x3")][da("0x1")](da("0x4")))return;const t=e[da("0x3")][da("0x7")](da("0x2"));t[da("0x6")](da("0xe")),t[da("0x6")](da("0xc"));const n=e.plugins[da("0x7")](da("0x4"));n.enableCommand(da("0x5")),n.enableCommand(da("0x8")),n[da("0x6")](da("0x9")),n[da("0x6")](da("0xd")),n.enableCommand(da("0xa")),n[da("0x6")](da("0xb")),n[da("0x6")](da("0x0"))}}const ga=["init","downcastDispatcher","test","editing","softBreak","plugins","data","ELEMENT_LINE_BREAK","merge","requires","element","writer","addMarker:suggestion:insertion","showSuggestionHighlights","markerRange","model","locale","addClass","options","high","shiftEnter","split","TrackChangesEditing","mapper","deletion","activeMarkers","createPositionBefore","name","toViewPosition","addMarker:suggestion","bindElementToMarker","_descriptionFactory","get"];var ma,fa;ma=ga,fa=124,function(e){for(;--e;)ma.push(ma.shift())}(++fa);const ha=function(e,t){return ga[e-=0]};class pa extends e.Plugin{static get[ha("0x11")](){return[nr.ShiftEnter]}[ha("0x8")](){const e=this.editor,t=e[ha("0xd")][ha("0x7")](ha("0x1e"));t.enableCommand(ha("0x1c")),e[ha("0xb")][ha("0x9")].on(ha("0x14"),ba(e),{priority:ha("0x1b")}),e[ha("0xb")][ha("0x9")].on("addMarker:suggestion:deletion",ba(e),{priority:ha("0x1b")}),e[ha("0xe")].downcastDispatcher.on(ha("0x4"),((t,n,o)=>{o[ha("0x1a")][ha("0x15")]&&ba(e,{showActiveMarker:!1})(t,n,o)})),t[ha("0x6")].registerElementLabel("softBreak",(t=>Yo(e[ha("0x18")],ha("0xf"),t)))}}function ba(e,{showActiveMarker:t=!0}={}){return(n,o,s)=>{const r=e[ha("0xd")].get(ha("0x1e"));if(!s.consumable[ha("0xa")](o[ha("0x16")],n[ha("0x2")]))return;const i=e[ha("0x17")];for(const e of o[ha("0x16")].getItems()){if(!e.is(ha("0x12"),ha("0xc")))continue;const n=ha("0x20")==o.markerName[ha("0x1d")](":")[1]?ha("0x10"):"split",a=s[ha("0x13")].createUIElement("span",{class:"ck-suggestion-marker-"+n}),x=s[ha("0x1f")][ha("0x3")](i[ha("0x1")](e));t&&r[ha("0x0")].includes(o.markerName)&&s.writer[ha("0x19")]("ck-suggestion-marker--active",a),s[ha("0x13")].insert(x,a),s[ha("0x1f")][ha("0x5")](a,o.markerName)}}}const Ea=["value","locale","restrictedEditingException","FORMAT_RESTRICTED_DISABLED","markInlineFormat","isCollapsed","document","getRanges","editor","plugins","FORMAT_RESTRICTED_ENABLED","forceValue","selection","afterInit","_descriptionFactory","StandardEditingModeEditing","enableCommand","registerDescriptionCallback","has","change","format","get"];var _a,Ta;_a=Ea,Ta=272,function(e){for(;--e;)_a.push(_a.shift())}(++Ta);const Ca=function(e,t){return Ea[e-=0]};class ya extends e.Plugin{[Ca("0x5")](){const e=this[Ca("0x0")],t=e.model,n=e[Ca("0xf")];if(!e[Ca("0x1")][Ca("0xa")](Ca("0x7")))return;const o=e[Ca("0x1")][Ca("0xd")]("TrackChangesEditing"),s=Ca("0x10"),r=e.commands.get(s);o[Ca("0x8")](s,((e,n={})=>{const i=t[Ca("0x14")][Ca("0x4")];if(i[Ca("0x13")])return void e(n);const a=void 0!==n[Ca("0x3")]?n[Ca("0x3")]:!r[Ca("0xe")];t[Ca("0xb")]((()=>{const e=Array.from(i[Ca("0x15")]());for(const n of e){const e=a?[n]:ms(s,n,t);for(const t of e)o[Ca("0x12")](t,{commandName:s,commandParams:[{forceValue:a}]})}}))})),o[Ca("0x6")][Ca("0x9")]((e=>{const{data:t}=e;if(t&&t.commandName==s)return t.commandParams[0].forceValue?{type:Ca("0xc"),content:Yo(n,Ca("0x2"))}:{type:Ca("0xc"),content:Yo(n,Ca("0x11"))}}))}}const ka=["model","config","inline","find","TrackChangesEditing","includes","style","createRangeOn","commands","element","block","toLowerCase","format","from","classes","_getStyleDefinition","enabledStyles","push","StyleUtils","plugins","getItems","styleName","get","markInlineFormat","normalizeConfig","_descriptionFactory","change","locale","getAncestors","style.definitions","markBlockFormat","has","forceValue","getSelectedBlocks","name","value","_getRangesWithClasses","style:","*Remove format:* %0","selection","getDefinitionsForView","*Format:* %0","registerDescriptionCallback","DataSchema","afterInit","getRanges","every","commandParams"];var Aa,va;Aa=ka,va=462,function(e){for(;--e;)Aa.push(Aa.shift())}(++va);const Ra=function(e,t){return ka[e-=0]};class Sa extends e.Plugin{[Ra("0xe")](){const e=this.editor;if(!e[Ra("0x25")][Ra("0x1")]("Style"))return;const t=e[Ra("0x1a")][Ra("0x28")]("style"),n=e[Ra("0x25")][Ra("0x28")](Ra("0x16")),o=e[Ra("0x2d")],s=e[Ra("0x25")][Ra("0x28")](Ra("0xd")),r=e.plugins[Ra("0x28")](Ra("0x24"))[Ra("0x2a")](s,e[Ra("0x13")].get(Ra("0x2f")));n.enableCommand(Ra("0x18"),((o,{styleName:i})=>{const a=e[Ra("0x12")].document[Ra("0x9")],x=this[Ra("0x21")](i,r);if(!x)return;if(!t[Ra("0x22")][Ra("0x17")](i))return;if(a.isCollapsed&&!x.isBlock)return void o({styleName:i});const c=!t[Ra("0x5")][Ra("0x17")](x[Ra("0x4")]);if(x.isBlock){const t=function(e,t){const n=new Set;for(const o of e){const e=o[Ra("0x2e")]({includeSelf:!0,parentFirst:!0});for(const o of e)if(t[Ra("0x17")](o[Ra("0x4")])){n.add(o);break}}return n}(a[Ra("0x3")](),x.modelElements);e[Ra("0x12")][Ra("0x2c")]((()=>{for(const e of t)n[Ra("0x0")](e,{commandName:Ra("0x18"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Ra("0x7")+i})}))}else{let t=Array[Ra("0x1f")](a[Ra("0xf")]());if(!c){const n=Array[Ra("0x1f")](s[Ra("0xa")](x[Ra("0x1b")],!1))[0].model,o=[];for(const s of t){const t=this[Ra("0x6")](e.model,s,x[Ra("0x20")],n);o[Ra("0x23")](...t)}t=o}e[Ra("0x12")][Ra("0x2c")]((()=>{for(const e of t)n[Ra("0x29")](e,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Ra("0x2b")][Ra("0xc")]((e=>{const{data:t}=e;if(t&&Ra("0x18")===t.commandName)return t.commandParams[0][Ra("0x2")]?{type:"format",content:Yo(o,Ra("0xb"),t[Ra("0x11")][0][Ra("0x27")].toLowerCase())}:{type:Ra("0x1e"),content:Yo(o,Ra("0x8"),t[Ra("0x11")][0][Ra("0x27")][Ra("0x1d")]())}}))}[Ra("0x21")](e,t){let n=t[Ra("0x1c")][Ra("0x15")]((t=>t[Ra("0x4")]===e));return n||(n=t[Ra("0x14")].find((t=>t[Ra("0x4")]===e))),n}_getRangesWithClasses(e,t,n,o){const s=[];for(const r of t[Ra("0x26")]()){const t=r.getAttribute(o);t&&n[Ra("0x10")]((e=>t[Ra("0x20")][Ra("0x17")](e)))&&s.push(e[Ra("0x19")](r))}return s}}const Ia=["insertTableColumnRight","toViewElement","createPositionAt","data","from","MAX_SAFE_INTEGER","getItems","options","_tableSuggestions","getRowIndexes","isTouching","getRanges","getSelectionAffectedTableCells","position","every","hasAttribute","insertTableRowBelow","isArray","accept","fromRange","_tablePostFixingSubtypes","TrackChangesEditing","locale","ELEMENT_TABLE_WITH_TEXT","registerElementLabel","_getSuggestionCoords","createRangeIn","insertTable","_splitMarkerName","plugins","createTableWalker","getChangedMarkers","downcastDispatcher","setSelection","nodeAfter","includes","$textProxy","enqueueChange","tableRow","toLowerCase","addMarker:suggestion","_setupColumnsRowsFixing","selectTableRow","ELEMENT_TABLE_COLUMN","selection","startsWith","change:data","selectTableColumn","getColumnIndexes","ELEMENT_TABLE_ROW","table","batch","getCellLocation","createRangeOn","map","registerCustomCallback","type","join","removeTableColumn","_getCoordsForCells","some","order","document","getFirstRange","highest","last","findAncestor","minRow","writer","name","isEqual","get","markMultiRangeInsertion","isInContent","max","rowspan","registerDescriptionCallback","nodeBefore","*Remove:* %0","deletion","detach","insertion","removeTableRow","tableCell","oldRange","end","substr","mapper","insert","span","MIN_SAFE_INTEGER","TableUtils","cell","tableColumn","getAttribute","$graveyard","subType","tablePaste","refresh","removeClass","*Insert:* %0","change","colspan","getChanges","has","getContainedElement","addClass","discard","filter","start","TableEditing","commands","differ","model","left","element","item","above","first","ELEMENT_TABLE_COLUMN_WITH_TEXT","root","length","enableCommand","editor","add","getChildren","rootName","_suggestionFactory","maxRow","_descriptionFactory"];var La,Na;La=Ia,Na=496,function(e){for(;--e;)La.push(La.shift())}(++Na);const Ma=function(e,t){return Ia[e-=0]};class wa extends e.Plugin{constructor(e){super(e),this._tablePostFixingSubtypes=["tableRow","tableColumn"],this[Ma("0x20")]=new Set}afterInit(){const e=this[Ma("0x11")],t=e[Ma("0x7")][Ma("0x56")][Ma("0x44")];if(!e.plugins[Ma("0x80")](Ma("0x4")))return;const n=e[Ma("0x2e")],o=e.plugins[Ma("0x5f")](Ma("0x2d")),s=e[Ma("0x35")][Ma("0x5f")]("TableUtils");o[Ma("0x17")][Ma("0x30")]("table",(e=>Yo(n,"ELEMENT_TABLE",e))),this[Ma("0x41")](),o[Ma("0x10")](Ma("0x33")),o[Ma("0x10")](Ma("0x42")),o[Ma("0x10")](Ma("0x47"));for(const n of["insertTableRowAbove",Ma("0x28")]){const r=e[Ma("0x5")][Ma("0x5f")](n);o[Ma("0x10")](n,(n=>{e[Ma("0x7")][Ma("0x7d")]((e=>{n();const i=Ma("0xb")===r[Ma("0x55")],a=s[Ma("0x24")](t),x=s[Ma("0x21")](a),c=i?x.first-1:x.last+1,l=a[0].findAncestor(Ma("0x4a")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Ma("0x1c")](d)[Ma("0x4e")]((t=>e[Ma("0x4d")](t[Ma("0x74")])));o[Ma("0x60")](u,"tableRow")}))}))}for(const n of["insertTableColumnLeft",Ma("0x18")]){const r=e.commands.get(n);o.enableCommand(n,(n=>{e[Ma("0x7")].change((e=>{n();const i=Ma("0x8")===r[Ma("0x55")],a=s[Ma("0x24")](t),x=s[Ma("0x48")](a),c=i?x[Ma("0xc")]-1:x[Ma("0x59")]+1,l=a[0].findAncestor(Ma("0x4a")),d=s[Ma("0x36")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Ma("0x1c")](d)[Ma("0x4e")]((t=>e[Ma("0x4d")](t[Ma("0x74")])));o[Ma("0x60")](u,Ma("0x75"))}))}))}for(const n of[Ma("0x6a"),Ma("0x52")]){const r=n[Ma("0x6e")](11),i=r.toLowerCase(),a=i[Ma("0x6e")](0,3)+Ma("0x71"),x=Ma("0x4a")+r,c="min"+r,l=Ma("0x62")+r;o.enableCommand(n,(()=>{e[Ma("0x7")][Ma("0x7d")]((e=>{const r=s[Ma("0x24")](t),d=r[0][Ma("0x5a")](Ma("0x4a"));let u;if(Ma("0x6a")==n){const e=s[Ma("0x21")](r);u={startRow:e.first,endRow:e[Ma("0x59")],includeAllSlots:!0}}else{const e=s[Ma("0x48")](r);u={startColumn:e[Ma("0xc")],endColumn:e[Ma("0x59")],includeAllSlots:!0}}const g=s[Ma("0x36")](d,u),m=Array[Ma("0x1c")](g).map((({cell:e})=>e)),f=Oa(m[Ma("0x2")]((e=>e[Ma("0x27")](a)))),h=Oa(m[Ma("0x2")]((e=>!e[Ma("0x27")](a))))[Ma("0x4e")]((t=>e[Ma("0x4d")](t))),p=o.markMultiRangeDeletion(h,x);if(p&&(Ma("0x3e")==p[Ma("0x78")]||Ma("0x75")==p.subType)){const t=this[Ma("0x31")](p);for(const n of f){const o=e.createRangeOn(n),r=s[Ma("0x4c")](n),x=n[Ma("0x76")](a)-1,d=t[c],u=t[l];d<=r[i]&&r[i]+x<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(t[Ma("0x23")]())[Ma("0x4e")]((e=>i.LiveRange.fromRange(e)));e[Ma("0x7")][Ma("0x7d")]((t=>{const s=t[Ma("0x4b")];n=n[Ma("0x2")]((e=>Ma("0x77")!=e[Ma("0xe")].rootName)),t.setSelection(n),e[Ma("0x5")][Ma("0x5f")](Ma("0x6a"))[Ma("0x7a")](),e.execute(Ma("0x6a"),{forceDefaultExecution:!0}),e[Ma("0x7")].enqueueChange((()=>{e[Ma("0x7")][Ma("0x3d")](s,(e=>{const t=o[Ma("0x2")]((e=>"$graveyard"!=e.root[Ma("0x14")]));t[Ma("0xf")]>0&&e[Ma("0x39")](t);for(const e of o)e[Ma("0x68")]()}))}))}))}function x(n){e[Ma("0x7")].change((o=>{const s=Array[Ma("0x1c")](t[Ma("0x23")]()).map((e=>i.LiveRange[Ma("0x2b")](e))),r=[];for(const e of n)for(const t of e.getItems({shallow:!0}))r.push(t);for(const t of r)"$graveyard"!=t[Ma("0xe")][Ma("0x14")]&&(o[Ma("0x39")](o[Ma("0x1a")](t,0)),e[Ma("0x5")][Ma("0x5f")]("removeTableColumn")[Ma("0x7a")](),e.execute("removeTableColumn",{forceDefaultExecution:!0}));const a=s[Ma("0x2")]((e=>"$graveyard"!=e[Ma("0xe")][Ma("0x14")]));a[Ma("0xf")]>0&&o.setSelection(a);for(const e of s)e[Ma("0x68")]()}))}function c(e,t){return t[Ma("0x26")]((t=>e[Ma("0x54")]((e=>e.end[Ma("0x5e")](t[Ma("0x3")])||t[Ma("0x6d")][Ma("0x5e")](e[Ma("0x3")])))))}function l(e,t){return e[Ma("0x54")]((e=>t[Ma("0x54")]((t=>e.end[Ma("0x22")](t[Ma("0x3")])))))}e[Ma("0x1b")][Ma("0x38")].on(Ma("0x40"),((e,t,n)=>{if(!n[Ma("0x1f")].showSuggestionHighlights)return;const o=t[Ma("0xa")];if(!o)return;const s=n[Ma("0x6f")][Ma("0x19")](o);function r(e){return Array[Ma("0x29")](e)?e:[e]}s&&Ma("0x6b")===o[Ma("0x5d")]&&(0,a.setHighlightHandling)(s,n[Ma("0x5c")],((e,t,n)=>n[Ma("0x0")](r(t.classes),e)),((e,t,n)=>n[Ma("0x7b")](r(t.classes),e)))}),{priority:Ma("0x58")}),o[Ma("0x17")][Ma("0x64")]((e=>{if("insertion"!=e[Ma("0x50")]&&Ma("0x67")!=e.type)return;const t=e[Ma("0x81")]();if(null!=t&&t.is(Ma("0x9"),Ma("0x4a"))){if(Ma("0x69")==e[Ma("0x50")]){const t=e[Ma("0x1e")]()[Ma("0x2")]((e=>e.is(Ma("0x3c")))).map((e=>e[Ma("0x1b")]));if(t[Ma("0xf")])return{type:Ma("0x69"),content:Yo(n,Ma("0x7c"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+t.join(" ")+'"'))}}if(Ma("0x67")==e[Ma("0x50")]){const t=e[Ma("0x1e")]()[Ma("0x2")]((e=>e.is(Ma("0x3c"))))[Ma("0x4e")]((e=>e[Ma("0x1b")]));if(t.length)return{type:"deletion",content:Yo(n,Ma("0x66"),Yo(n,Ma("0x2f"),'"'+t[Ma("0x51")](" ")+'"'))}}}})),o[Ma("0x17")][Ma("0x64")]((e=>{if("tableRow"==e[Ma("0x78")]){const t=e[Ma("0x1e")]().filter((e=>e.is(Ma("0x3c"))))[Ma("0x4e")]((e=>e[Ma("0x1b")])),o=this._getSuggestionCoords(e),s=o[Ma("0x16")]-o[Ma("0x5b")]+1;if(Ma("0x69")==e[Ma("0x50")])return t[Ma("0xf")]?{type:"insertion",content:Yo(n,Ma("0x7c"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+t[Ma("0x51")](" ")+'"']))}:{type:Ma("0x69"),content:Yo(n,Ma("0x7c"),Yo(n,Ma("0x49"),s))};if(Ma("0x67")==e[Ma("0x50")])return t.length?{type:Ma("0x67"),content:Yo(n,Ma("0x66"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+t[Ma("0x51")](" ")+'"']))}:{type:Ma("0x67"),content:Yo(n,Ma("0x66"),Yo(n,Ma("0x49"),s))}}if(Ma("0x75")==e[Ma("0x78")]){const t=e[Ma("0x1e")]().filter((e=>e.is(Ma("0x3c"))))[Ma("0x4e")]((e=>e.data)),o=this[Ma("0x31")](e),s=o.maxColumn-o.minColumn+1;if("insertion"==e[Ma("0x50")])return t[Ma("0xf")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+t[Ma("0x51")](" ")+'"']))}:{type:"insertion",content:Yo(n,Ma("0x7c"),Yo(n,Ma("0x43"),s))};if(Ma("0x67")==e[Ma("0x50")])return t[Ma("0xf")]?{type:Ma("0x67"),content:Yo(n,Ma("0x66"),Yo(n,Ma("0xd"),[s,'"'+t[Ma("0x51")](" ")+'"']))}:{type:Ma("0x67"),content:Yo(n,Ma("0x66"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Ma("0x15")].registerCustomCallback(Ma("0x69"),Ma("0x3e"),Ma("0x1"),r),o[Ma("0x15")].registerCustomCallback("deletion",Ma("0x3e"),Ma("0x2a"),r),o[Ma("0x15")].registerCustomCallback(Ma("0x69"),"tableColumn",Ma("0x1"),x),o._suggestionFactory.registerCustomCallback("deletion",Ma("0x75"),Ma("0x2a"),x),o[Ma("0x15")][Ma("0x4f")](Ma("0x69"),Ma("0x75"),Ma("0x51"),c),o[Ma("0x15")].registerCustomCallback(Ma("0x67"),Ma("0x75"),Ma("0x51"),c),o[Ma("0x15")].registerCustomCallback(Ma("0x69"),Ma("0x3e"),"join",l),o[Ma("0x15")][Ma("0x4f")]("deletion","tableRow","join",l)}_acceptFormatSuggestionCallbackFactory(){const e=this[Ma("0x11")],t=e[Ma("0x7")].document[Ma("0x44")];return(n,o)=>{e[Ma("0x7")].change((s=>{const{commandName:r,commandParams:a}=o;let x=n[0][Ma("0x6d")][Ma("0x65")];a&&a[0]&&!1===a[0].forceValue&&(x=n[0].start[Ma("0x3a")]);const c=s[Ma("0x32")](x);if(Ma("0x77")==c.root[Ma("0x14")])return;const l=Array[Ma("0x1c")](t[Ma("0x23")]())[Ma("0x4e")]((e=>i.LiveRange[Ma("0x2b")](e)));s[Ma("0x39")](c),e[Ma("0x5")][Ma("0x5f")](r)[Ma("0x7a")](),a.push({forceDefaultExecution:!0}),e.execute(r,...a);const d=l[Ma("0x2")]((e=>Ma("0x77")!=e[Ma("0xe")].rootName));d[Ma("0xf")]>0&&s[Ma("0x39")](d);for(const e of l)e[Ma("0x68")]()}))}}[Ma("0x53")](e){const t=this[Ma("0x11")][Ma("0x35")][Ma("0x5f")](Ma("0x73"));let n=Number[Ma("0x1d")],o=Number[Ma("0x72")],s=Number.MAX_SAFE_INTEGER,r=Number[Ma("0x72")];for(const i of e){if(Ma("0x77")==i[Ma("0xe")].rootName)continue;const{row:e,column:a}=t[Ma("0x4c")](i),x=i[Ma("0x27")]("rowspan")?i.getAttribute(Ma("0x63"))-1:0,c=i[Ma("0x27")](Ma("0x7e"))?i[Ma("0x76")](Ma("0x7e"))-1:0;n=e<n?e:n,o=e+x>o?e+x:o,s=a<s?a:s,r=a+c>r?a+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Ma("0x41")](){const e=this[Ma("0x11")],t=e[Ma("0x35")][Ma("0x5f")](Ma("0x2d")),n=e.plugins[Ma("0x5f")](Ma("0x73"));e.model[Ma("0x56")].on(Ma("0x46"),(()=>{const n=Array.from(e[Ma("0x7")].document[Ma("0x6")][Ma("0x37")]());for(const{name:e,data:o}of n){const{group:n,id:s,subType:r}=t[Ma("0x34")](e);if("suggestion"!=n)continue;if(null!=o[Ma("0x6c")])continue;const i=t.getSuggestion(s);this[Ma("0x2c")][Ma("0x3b")](r)&&this._tableSuggestions[Ma("0x12")](i)}}),{priority:"low"});const o=(e,t)=>{let o=!1;const s=t[Ma("0x4d")](e),r=e[Ma("0x5a")]("table"),i=n[Ma("0x4c")](e);for(const t of this[Ma("0x20")]){const n=t.subType,a=n[Ma("0x45")](Ma("0x79")),x=n[Ma("0x6e")](a?10:5),c=x[Ma("0x3f")](),l=c[Ma("0x6e")](0,3)+"span",d="min"+x,u=Ma("0x62")+x;if(!t[Ma("0x61")])continue;if(r!=t[Ma("0x57")]().start[Ma("0x5a")](Ma("0x4a")))continue;if(t.isIntersectingWithRange(s))continue;const g=e.hasAttribute(l)?e[Ma("0x76")](l)-1:0,m=this._getSuggestionCoords(t),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(t.addRange(s),o=!0)}return o};e.model[Ma("0x56")].registerPostFixer((t=>{let n=!1;for(const s of e[Ma("0x7")][Ma("0x56")].differ[Ma("0x7f")]())if(Ma("0x70")==s[Ma("0x50")])if(Ma("0x3e")==s[Ma("0x5d")])for(const e of s[Ma("0x25")].nodeAfter[Ma("0x13")]())n=n||o(e,t);else Ma("0x6b")==s[Ma("0x5d")]&&(n=n||o(s[Ma("0x25")].nodeAfter,t));return n}))}[Ma("0x31")](e){return this[Ma("0x53")](e[Ma("0x23")]()[Ma("0x4e")]((e=>e[Ma("0x3")].nodeAfter)))}}function Oa(e){return Array[Ma("0x1c")](new Set(e).values())}const Fa=["TableUtils","low","plugins","find","value","map","setSelection","formatBlock","getSuggestions","markMultiRangeBlockFormat","detach","model","registerCustomCallback","getFirstPosition","locale","type","splitTableCellVertically","_acceptFormatSuggestionCallbackFactory","has","return","document","fromRange","mergeTableCellLeft","enableCommand","getSelectionAffectedTableCells","stop","commands","horizontally","highest","accept","from","format","trackChanges","cell","$graveyard","forceDefaultExecution","tableCell","mergeTableCellDown","length","table","mergeTableCellRight","add","splitTableCellHorizontally","_isForcedDefaultExecutionBlock","registerDescriptionCallback","_descriptionFactory","get","direction","refresh","editor","mergeTableCells","TrackChangesEditing","commandName","markBlockFormat","author","selection","_areSelectedCellsMergable","subType","_areMergableCells","*Merge cells*","createTableWalker","size","insertion","*Split cell:* vertically","getAncestors","getCellLocation","filter","afterInit","element","TableEditing","_suggestionFactory","mergeTableCellUp","createRangeOn","change","isEnabled"];var Pa,Da;Pa=Fa,Da=166,function(e){for(;--e;)Pa.push(Pa.shift())}(++Da);const Ba=function(e,t){return Fa[e-=0]};class ja extends e.Plugin{static get requires(){return[wa]}[Ba("0x33")](){const e=this[Ba("0x21")],t=e[Ba("0x46")][Ba("0x4")][Ba("0x27")],n=e[Ba("0x49")];if(!e[Ba("0x3d")].has(Ba("0x35")))return;const o=e[Ba("0x3d")][Ba("0x1e")](Ba("0x23")),s=e[Ba("0x3d")].get(Ba("0x3b")),r=e.plugins[Ba("0x1e")](wa);r._tablePostFixingSubtypes.push("mergeTableCells"),o[Ba("0x7")]("mergeTableCells",(()=>{const t=s[Ba("0x8")](e[Ba("0x46")][Ba("0x4")][Ba("0x27")]);e[Ba("0x46")][Ba("0x39")]((()=>{o[Ba("0x44")](t,{commandName:Ba("0x22"),commandParams:[]},[],Ba("0x22"))}))})),e[Ba("0xa")].get(Ba("0x22")).on("execute",((t,n)=>{e[Ba("0xa")][Ba("0x1e")](Ba("0x10"))[Ba("0x3f")]&&(n[Ba("0x16")]>0&&n[n[Ba("0x16")]-1]&&n[n.length-1][Ba("0x13")]||o[Ba("0x1b")]||this._areSelectedCellsMergable()||t[Ba("0x9")]())}),{priority:Ba("0xc")});for(const t of["mergeTableCellUp",Ba("0x18"),Ba("0x15"),Ba("0x6")]){const n=e.commands[Ba("0x1e")](t);o[Ba("0x7")](t,(()=>{const t=e[Ba("0x46")].document[Ba("0x27")][Ba("0x48")]().getAncestors().find((e=>e.is(Ba("0x34"),Ba("0x14")))),s=n[Ba("0x3f")];e[Ba("0x46")][Ba("0x39")]((()=>{o[Ba("0x44")]([t,s],{commandName:Ba("0x22"),commandParams:[]},[],Ba("0x22"))}))}))}for(const t of["splitTableCellVertically",Ba("0x1a")]){const n=e.commands.get(t);o.enableCommand(t,(()=>{const r=s[Ba("0x8")](e[Ba("0x46")][Ba("0x4")][Ba("0x27")])[0],i=r.findAncestor(Ba("0x17")),{column:a,row:x}=s[Ba("0x31")](r);let c=[];if(Ba("0xb")==n[Ba("0x1f")]){const e=s.createTableWalker(i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array[Ba("0xe")](e)[Ba("0x40")]((e=>e[Ba("0x11")]))}else{const e=s[Ba("0x2c")](i,{column:a,includeAllSlots:!0});c=Array[Ba("0xe")](e)[Ba("0x40")]((e=>e[Ba("0x11")]))}e.model[Ba("0x39")]((e=>{o[Ba("0x25")](e[Ba("0x38")](r),{commandName:t,commandParams:[]},c,t)}))}))}o[Ba("0x1d")][Ba("0x1c")]((e=>{const{data:t}=e;if(t)return"mergeTableCells"==t[Ba("0x24")]?{type:Ba("0xf"),content:Yo(n,Ba("0x2b"))}:void 0})),o[Ba("0x1d")].registerDescriptionCallback((e=>{const{data:t}=e;if(t)return Ba("0x0")==t[Ba("0x24")]?{type:"format",content:Yo(n,Ba("0x2f"))}:"splitTableCellHorizontally"==t.commandName?{type:Ba("0xf"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const a=r[Ba("0x1")]();for(const e of[Ba("0x37"),"mergeTableCellRight",Ba("0x15"),Ba("0x6")])o[Ba("0x36")].registerCustomCallback("formatBlock",e,Ba("0xd"),a);for(const e of["splitTableCellVertically",Ba("0x1a")])o[Ba("0x36")].registerCustomCallback("formatBlock",e,"accept",a);o[Ba("0x36")][Ba("0x47")](Ba("0x42"),Ba("0x22"),Ba("0xd"),(n=>{e[Ba("0x46")][Ba("0x39")]((o=>{const s=Array[Ba("0xe")](t.getRanges())[Ba("0x40")]((e=>i.LiveRange[Ba("0x5")](e)));o[Ba("0x41")](n),e[Ba("0xa")][Ba("0x1e")](Ba("0x22"))[Ba("0x20")](),e.execute(Ba("0x22"),{forceDefaultExecution:!0});const r=s[Ba("0x32")]((e=>Ba("0x12")!=e.root.rootName));r[Ba("0x16")]>0&&o[Ba("0x41")](r);for(const e of s)e[Ba("0x45")]()}))}));for(const t of[Ba("0x37"),Ba("0x15"),Ba("0x6"),Ba("0x18")]){const n=e.commands[Ba("0x1e")](t);n.on("set:isEnabled",((t,o,s)=>{if(s){const o=e[Ba("0x46")][Ba("0x4")].selection[Ba("0x48")]()[Ba("0x30")]()[Ba("0x3e")]((e=>e.is(Ba("0x34"),Ba("0x14"))));this[Ba("0x2a")](n[Ba("0x3f")],o)||(t[Ba("0x3")]=!1,t[Ba("0x9")]())}}),{priority:Ba("0x3c")})}}[Ba("0x28")](){const e=this[Ba("0x21")][Ba("0xa")][Ba("0x1e")]("mergeTableCells"),t=this[Ba("0x21")][Ba("0x3d")][Ba("0x1e")](Ba("0x3b"));if(!e[Ba("0x3a")])return!1;const n=t[Ba("0x8")](this[Ba("0x21")][Ba("0x46")].document.selection);for(const e of n)for(const t of n)if(e!=t&&!this[Ba("0x2a")](e,t))return!1;return!0}[Ba("0x2a")](e,t){const n=this[Ba("0x21")][Ba("0x3d")][Ba("0x1e")]("TrackChangesEditing"),o=this.editor.model[Ba("0x38")](e),s=this[Ba("0x21")].model.createRangeOn(t),r=new Set,i=new Set;for(const e of n[Ba("0x43")]())if((Ba("0x2e")==e[Ba("0x4a")]||"deletion"==e.type||Ba("0x22")==e[Ba("0x29")])&&e.isInContent)for(const t of e.getRanges())t.containsRange(o,!0)&&r[Ba("0x19")](e[Ba("0x4a")]+":"+e[Ba("0x26")].id),t.containsRange(s,!0)&&i[Ba("0x19")](e[Ba("0x4a")]+":"+e[Ba("0x26")].id);if(r.size!=i[Ba("0x2d")])return!1;for(const e of r)if(!i[Ba("0x2")](e))return!1;return!0}}const Ua=["showSuggestionHighlights","parent","index","enableCommand","removeAttribute","options","consumable","registerCustomCallback","table","isBefore","ck-suggestion-marker--active","formatBlock","name","item","locale","getSelectionAffectedTableCells","ck-suggestion-marker-","createTableWalker","editor","headingRows","toViewElement","first","findAncestor","removeClass","change","accept","TableEditing","model","_suggestionFactory","unbindElementFromMarkerName","end","setTableRowHeader","createRange","afterInit","nodeAfter","markerName","FORMAT_REGULAR_COLUMN","data","addMarker:suggestion","setAttribute","markBlockFormat","TableUtils","requires","value","data-suggestion","setTableColumnHeader","get","createPositionBefore","document","mapper","highest","plugins","getSuggestion","nodeBefore","forceValue","cell","TrackChangesEditing","getAttribute","addClass","commandName","*Format:* %0","commands","getColumnIndexes","markerRange","createPositionAfter","registerDescriptionCallback","format","FORMAT_REGULAR_ROW","getCellLocation","headingColumns","downcastDispatcher","writer","last","editing","bindElementToMarker","getChild","_acceptFormatSuggestionCallbackFactory","_descriptionFactory","childCount","removeMarker:suggestion","selection","commandParams","has"];var Ga,Ha;Ga=Ua,Ha=317,function(e){for(;--e;)Ga.push(Ga.shift())}(++Ha);const za=function(e,t){return Ua[e-=0]};class Wa extends e.Plugin{static get[za("0x39")](){return[wa]}[za("0x30")](){const e=this[za("0x21")];if(!e[za("0x42")][za("0xe")](za("0x29")))return;const t=e[za("0x1d")],n=e[za("0x42")][za("0x3d")](za("0x47")),o=e[za("0x42")][za("0x3d")]("TableUtils"),s=e[za("0x42")][za("0x3d")](wa);function r({showActiveMarker:e=!0,setDataAttribute:t=!0}={}){return(s,r,i)=>{const{type:a,id:x}=n._splitMarkerName(r[za("0x32")]),c=n[za("0x43")](x);if(!c[za("0x34")]||za("0x3c")!=c[za("0x34")][za("0x4a")])return;if(r[za("0x1c")])return void s.stop();if(!i[za("0x15")].consume(r[za("0x4e")],s[za("0x1b")]))return;const l=r.markerRange.start[za("0x31")],d=r[za("0x4e")][za("0x2d")][za("0x44")],u=l.parent[za("0x10")],{column:g}=o[za("0x0")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[za("0x20")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[za("0x40")][za("0x23")](s);i.writer[za("0x49")]("ck-suggestion-marker-"+a,c),t&&i.writer[za("0x36")](za("0x3b"),x,c),i[za("0x40")][za("0x6")](c,r[za("0x32")]),e&&(n.activeMarkers.includes(r[za("0x32")])?i[za("0x3")].addClass("ck-suggestion-marker--active",c):i.writer[za("0x26")]("ck-suggestion-marker--active",c))}}}}n.enableCommand(za("0x2e"),((t,s)=>{const r=o[za("0x1e")](e.model[za("0x3f")][za("0xc")]),i=o.getRowIndexes(r),a=r[0][za("0x25")](za("0x17")),x=a.getAttribute(za("0x22"))||0,c=s&&null!==s[za("0x45")]?s[za("0x45")]:!e[za("0x4c")][za("0x3d")](za("0x2e"))[za("0x3a")],l=c?i[za("0x4")]:i[za("0x24")],d=a[za("0x7")](l);let u;if(c){const t=a[za("0x7")](x);if(d[za("0x11")]<t.index)return;u=e.model[za("0x2f")](e[za("0x2a")][za("0x3e")](t.getChild(0)),e[za("0x2a")][za("0x4f")](d[za("0x7")](d.childCount-1)))}else{const t=a.getChild(x-1);if(!t)return;u=e.model[za("0x2f")](e.model[za("0x3e")](d.getChild(0)),e[za("0x2a")][za("0x4f")](t[za("0x7")](t[za("0xa")]-1)))}e[za("0x2a")].change((()=>{n[za("0x37")](u,{commandName:za("0x2e"),commandParams:[{forceValue:c}]},[],za("0x2e"))}))})),n[za("0x12")]("setTableColumnHeader",((t,o)=>{const s=e[za("0x42")][za("0x3d")](za("0x38")),r=s.getSelectionAffectedTableCells(e[za("0x2a")].document.selection),i=s[za("0x4d")](r),a=r[0].findAncestor(za("0x17")),x=a[za("0x48")](za("0x1"))||0,c=o&&null!==o.forceValue?o[za("0x45")]:!e[za("0x4c")][za("0x3d")]("setTableColumnHeader").value;let l;const d=a[za("0x7")](0),u=c?i.last:i[za("0x24")],g=s[za("0x20")](a,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][za("0x46")];if(c){const t=d.getChild(x);if(m[za("0x18")](t))return;l=e[za("0x2a")][za("0x2f")](e[za("0x2a")].createPositionBefore(t),e[za("0x2a")].createPositionAfter(m))}else{const t=d.getChild(x-1);if(!t)return;l=e[za("0x2a")][za("0x2f")](e.model[za("0x3e")](m),e.model[za("0x4f")](t))}e[za("0x2a")][za("0x27")]((()=>{n[za("0x37")](l,{commandName:za("0x3c"),commandParams:[{forceValue:c}]},[],za("0x3c"))}))})),e.editing[za("0x2")].on(za("0x35"),r(),{priority:za("0x41")}),e[za("0x34")][za("0x2")].on(za("0x35"),((e,t,n)=>{n[za("0x14")][za("0xf")]&&r({showActiveMarker:!1,setDataAttribute:!1})(e,t,n)}),{priority:za("0x41")}),e[za("0x5")][za("0x2")].on(za("0xb"),((e,t,o)=>{const{type:s,id:r}=n._splitMarkerName(t[za("0x32")]),i=n[za("0x43")](r);if(!i.data||"setTableColumnHeader"!=i[za("0x34")][za("0x4a")])return;const a=o[za("0x40")].markerNameToElements(t[za("0x32")]);if(a)for(const e of a)o[za("0x3")].removeClass(za("0x1f")+s,e),o[za("0x3")][za("0x26")](za("0x19"),e),o[za("0x3")][za("0x13")](za("0x3b"),e),o[za("0x40")][za("0x2c")](e,t[za("0x32")])}),{priority:za("0x41")}),n[za("0x9")][za("0x50")]((e=>{const{data:n}=e;if(n){if(za("0x2e")==n[za("0x4a")]){const e=n[za("0xd")][0][za("0x45")];return o(Yo(t,e?"FORMAT_HEADER_ROW":za("0x52")))}if(za("0x3c")==n.commandName){const e=n.commandParams[0].forceValue;return o(Yo(t,e?"FORMAT_HEADER_COLUMN":za("0x33")))}}function o(e){return{type:za("0x51"),content:Yo(t,za("0x4b"),e)}}}));const i=s[za("0x8")]();n[za("0x2b")][za("0x16")](za("0x1a"),"setTableRowHeader",za("0x28"),i),n[za("0x2b")].registerCustomCallback(za("0x1a"),"setTableColumnHeader","accept",i)}}const Va=["suggestion-td","document","getAttributes","previous","editing","findAncestor","tableCellBorderWidth","row","root","next","suggestion","differ","find","markMultiRangeBlockFormat","markers","tablePasteChainId","nodeAfter","columns","getShiftedBy","formatBlock","name","updateMarker","add","getSuggestionCallback","removeRows","options","documentSelection","getItems","suggestion:formatBlock:tablePasteCell","dataDowncast","newRange","subType","batch","move","start","includes","has","createPositionBefore","length","startsWith","tableCellHorizontalAlignment","for","tablePasteColumn","_isForcedDefaultExecutionBlock","element","tableCellBorderStyle","createRangeOn","createRangeIn","_splitMarkerName","isEqual","_suggestionFactory","_createdBatches","map","_descriptionFactory","tableCellBackgroundColor","getTableIfOnlyTableInContent","rowInsertionRanges","columnInsertionIndexes","unwrap","TrackChangesEditing","content","_tablePostFixingSubtypes","column","markMultiRangeDeletion","getSuggestion","tablePaste","rootName","table","tablePasteCell","requires","endRow","tableCell","last","schema","first","insertColumns","insertContent","model","markerName","getContainedElement","cell","getSuggestions","getRowIndexes","endColumn","showSuggestionHighlights","selection","ck-suggestion-marker--active","wrap","remove","author","getAllAdjacentSuggestions","containsRange","low","*Replace table cells*","oldRange","getChild","getColumnIndexes","getRanges","_getCoordsForCells","change","markerAttributes","suggestionLoaded","TableClipboard","Users","markerToHighlight","deletion","tableCellVerticalAlignment","some","tableCellPadding","clipboardOutput","attributes","discard","type","editingDowncast","end","getMarkers","reduce","_replaceTableSlotCell","rowInsertionIndexes","isInContent","afterInit","insertion","plugins","previousSibling","insert","getChangedMarkers","from","push","isEmpty","createTableWalker","accept","filter","insertRows","view","get","tableCellSuggestion","entries","keys","fill","TableUtils","set","getRange","registerPostFixer","paragraph","high","registerCustomCallback","stop","cells","markMultiRangeInsertion","conversion","locale","position","ck-suggestion-marker-insertion","createElement","ck-suggestion-marker","getChildren","deletionRanges","forceDefaultExecution","editor","getRows","removeMarker","$graveyard","trackChanges","tablePasteRow","elementToElement","every","commands"];var Ka,qa;Ka=Va,qa=197,function(e){for(;--e;)Ka.push(Ka.shift())}(++qa);const Xa=function(e,t){return Va[e-=0]},$a=[Xa("0x8f"),"tableCellBorderColor",Xa("0xf"),Xa("0xa"),Xa("0x4c"),Xa("0x18"),Xa("0x4e")],Ja=Object.fromEntries($a[Xa("0x16")]((e=>[e,null])));class Qa extends e.Plugin{static get[Xa("0x27")](){return[wa]}[Xa("0x5a")](){const e=this.editor;if(!e[Xa("0x5c")][Xa("0x6")](Xa("0x48")))return;const n=e.plugins.get(Xa("0x1d")),o=e[Xa("0x5c")][Xa("0x68")](Xa("0x6d")),s=e[Xa("0x5c")][Xa("0x68")](wa),r=e[Xa("0x5c")][Xa("0x68")](Xa("0x48"));s[Xa("0x1f")][Xa("0x61")](Xa("0x85"),Xa("0xc")),e[Xa("0x2f")][Xa("0x2b")].register(Xa("0x69"),{allowIn:Xa("0x29"),allowContentOf:Xa("0x29"),isLimit:!0}),e[Xa("0x77")][Xa("0x86")]({model:Xa("0x69"),view:Xa("0x89")});let i=null;e[Xa("0x2f")].on(Xa("0x2e"),((s,a)=>{const[x,c]=a,l=a[a[Xa("0x8")]-1];l&&l[Xa("0x7f")]||n[Xa("0xd")]||this[Xa("0x80")][Xa("0x88")][Xa("0x68")](Xa("0x84")).value&&function(e,t,n,o,s){if(t&&!t.is(Xa("0xa3")))return!1;const r=s[Xa("0x19")](e,n);if(!r||!Ya(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xa("0x8a")][Xa("0x37")]);if(!i[Xa("0x8")])return!1;const a=i[0][Xa("0x8e")](Xa("0x25")),x=o[Xa("0x34")](i),c=o[Xa("0x42")](i),l={startRow:x[Xa("0x2c")],endRow:x[Xa("0x2a")],startColumn:c[Xa("0x2c")],endColumn:c.last};return 1==i[Xa("0x8")]&&(l[Xa("0x28")]+=o[Xa("0x81")](r)-1,l[Xa("0x35")]+=o.getColumns(r)-1),Ya(a,l,o)}(x,c,e[Xa("0x2f")],o,r)&&(s[Xa("0x74")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},e[Xa("0x2f")][Xa("0x45")]((()=>{e[Xa("0x2f")].insertContent(a[0],a[1],a[2],{forceDefaultExecution:!0});const o=(0,t.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:x,deletionRanges:c,cells:l}=i;s.length&&n[Xa("0x76")](s,Xa("0x85"),{tablePasteChainId:o}),r[Xa("0x8")]&&n.markMultiRangeInsertion(r,Xa("0xc"),{tablePasteChainId:o}),x[Xa("0x8")]&&n[Xa("0x76")](x,Xa("0x23"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xa("0x8")]&&n[Xa("0x21")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xa("0x96")](l[Xa("0x16")]((({element:e})=>e)),{formatGroupId:(0,t.uid)()},[],Xa("0x26"),{tablePasteChainId:o});if(d){const t=d[Xa("0x55")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=e[Xa("0x2f")][Xa("0x10")](o),i=t.find((e=>e[Xa("0x6f")]()[Xa("0x13")](r)));i&&n.push([i[Xa("0x9d")],s])}n[Xa("0x8")]&&d.setAttribute(Xa("0x46"),Object.fromEntries(n))}i=null})))}),{priority:t.priorities[Xa("0x72")]+10}),e[Xa("0x5c")][Xa("0x68")]("TableClipboard").on(Xa("0x57"),((e,t)=>{const[n,o,,s]=t;if(!i)return;e[Xa("0x74")]();const r=n[Xa("0x32")],a=o,x=Za(r),c=Za(a);e.return=r;let l=null,d=null;if(c||x)if(x&&!c){s.remove(r.getChild(0));for(const e of Array[Xa("0x60")](a.getChildren()))s[Xa("0x5e")](e,r,Xa("0x54"));const e=i[Xa("0x58")][Xa("0x5")](n[Xa("0x90")]),t=i[Xa("0x1b")].includes(n[Xa("0x20")]);e||t||(l=s[Xa("0x11")](r))}else c&&!x&&(d=s[Xa("0x11")](r));else{const e=s[Xa("0x7b")](Xa("0x69")),t=s[Xa("0x7b")](Xa("0x69"));s[Xa("0x39")](s[Xa("0x11")](r),t),s[Xa("0x5e")](e,r,0);for(const t of Array[Xa("0x60")](a[Xa("0x7d")]()))s[Xa("0x5e")](t,e,Xa("0x54"));l=s[Xa("0x10")](e),d=s[Xa("0x10")](t)}const u=Array.from(a[Xa("0x8b")]())[Xa("0x65")]((([e])=>$a[Xa("0x5")](e)));i[Xa("0x75")].push({element:r,attributes:u[Xa("0x8")]?Object.fromEntries(u):null}),l&&i.insertionRanges[Xa("0x61")](l),d&&i[Xa("0x7e")].push(d)}),{priority:Xa("0x72")}),o.on(Xa("0x2d"),((t,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[Xa("0x9a")]||1;i.columnInsertionIndexes=new Array(x)[Xa("0x6c")](a)[Xa("0x16")](((e,t)=>e+t));for(const{cell:t}of o[Xa("0x63")](s,{startColumn:a,endColumn:a+x-1}))i.columnInsertionRanges.push(e.model[Xa("0x10")](t))}),{priority:Xa("0x3e")}),o.on(Xa("0x66"),((t,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r.rows||1;i[Xa("0x58")]=new Array(x)[Xa("0x6c")](a)[Xa("0x16")](((e,t)=>e+t));for(const{cell:t}of o[Xa("0x63")](s,{startRow:a,endRow:a+x-1}))i[Xa("0x1a")][Xa("0x61")](e[Xa("0x2f")][Xa("0x10")](t))}),{priority:"low"}),n[Xa("0x17")].registerDescriptionCallback((t=>{if(t[Xa("0x1")]&&t[Xa("0x1")][Xa("0x9")](Xa("0x23")))return t.previous?{}:{type:Xa("0x5b"),content:Yo(e[Xa("0x78")],Xa("0x3f"))}}));const a=()=>!1;for(const e of[Xa("0x23"),Xa("0xc"),"tablePasteRow",Xa("0x26")])n[Xa("0x14")].registerCustomCallback(Xa("0x5b"),e,"join",a),n[Xa("0x14")][Xa("0x73")]("deletion",e,"join",a),n[Xa("0x14")][Xa("0x73")](Xa("0x9c"),e,"join",a);n._suggestionFactory.registerCustomCallback(Xa("0x9c"),Xa("0x26"),Xa("0x51"),a),n[Xa("0x14")][Xa("0x73")](Xa("0x9c"),Xa("0x26"),"accept",((t,n,o)=>{const s=t[Xa("0x16")]((e=>e[Xa("0x31")]()))[Xa("0x65")]((e=>e)),r=new Map(s[Xa("0x16")]((e=>[e,null])));if(i)for(const{element:e,attributes:t}of i[Xa("0x75")])t&&r.set(e,t);else if(o&&o[Xa("0x46")])for(const[t,n]of Object[Xa("0x6a")](o[Xa("0x46")])){const o=e[Xa("0x2f")][Xa("0x97")][Xa("0x68")](t),s=o?o[Xa("0x6f")]().getContainedElement():null;s&&r[Xa("0x6e")](s,n)}e[Xa("0x2f")][Xa("0x45")]((e=>{for(const[t,n]of r)e.setAttributes({...Ja,...n},t)}))}));const x=(t,o)=>{n[Xa("0x14")][Xa("0x73")](t,"tablePaste",o,((s,r,i)=>{e.model[Xa("0x45")]((e=>{const a=[];for(const e of s){const t=e[Xa("0x4")][Xa("0x99")];t.is(Xa("0xe"),"tableCellSuggestion")&&a[Xa("0x61")](t)}n[Xa("0x14")][Xa("0xa0")](t,null,o)(s,r,i);for(const t of a)Xa("0x83")!=t[Xa("0x91")][Xa("0x24")]&&e[Xa("0x1c")](t)}))}))};x(Xa("0x5b"),Xa("0x64")),x("insertion",Xa("0x51")),x(Xa("0x4b"),Xa("0x64")),x("deletion",Xa("0x51")),n[Xa("0x14")].registerCustomCallback("insertion","tablePasteRow",Xa("0x51"),(e=>{const t=e[Xa("0x16")]((e=>e[Xa("0x31")]())),n=t[0][Xa("0x8e")](Xa("0x25")),{minRow:r,maxRow:i}=s._getCoordsForCells(t);o[Xa("0xa1")](n,{at:r,rows:i-r+1})})),n[Xa("0x14")][Xa("0x73")]("insertion","tablePasteColumn",Xa("0x51"),(e=>{const t=e[Xa("0x16")]((e=>e[Xa("0x31")]())),n=t[0][Xa("0x8e")](Xa("0x25")),{minColumn:r,maxColumn:i}=s[Xa("0x44")](t);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(e,t)=>{if(!t.subType||!t.subType[Xa("0x9")](Xa("0x23")))return;const o=t.attributes.tablePasteChainId,s=n.getSuggestions()[Xa("0x65")]((e=>e[Xa("0x59")]&&e[Xa("0x50")]&&e[Xa("0x50")][Xa("0x98")]==o));s[Xa("0x8")]&&t[Xa("0x3c")]()[Xa("0x8")]!=s[Xa("0x8")]&&s[Xa("0x56")](((e,t)=>(e[Xa("0x92")]=t,t[Xa("0x8c")]=e,t)))};function l(e,t=!0){const{id:o}=n._splitMarkerName(e[Xa("0x30")]),s=[Xa("0x7c"),Xa("0x7a")],r=n.activeMarkers.includes(e[Xa("0x30")]);return r&&s[Xa("0x61")](Xa("0x38")),{classes:s,attributes:{"data-suggestion":o},priority:r&&t?3010:3e3}}n.on(Xa("0x47"),c,{priority:Xa("0x72")}),n.on("suggestionUnloaded",c,{priority:Xa("0x72")}),e.model[Xa("0x8a")][Xa("0x70")]((()=>{let t=!1;const o=Array.from(e[Xa("0x2f")][Xa("0x8a")][Xa("0x94")][Xa("0x5f")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:a}=n[Xa("0x12")](s);if(Xa("0x93")!=o||Xa("0x4b")!=i||r[Xa("0x40")])continue;if(!n.hasSuggestion(a))continue;const x=n[Xa("0x22")](a)[Xa("0x43")](),c=e[Xa("0x5c")].get(Xa("0x49")).me;for(const e of n[Xa("0x33")]())if(e[Xa("0x59")]&&e[Xa("0x3b")]==c&&"formatBlock"==e[Xa("0x52")]&&Xa("0x26")==e[Xa("0x1")]&&e[Xa("0x43")]()[Xa("0x87")]((e=>x[Xa("0x4d")]((t=>t[Xa("0x3d")](e,!0))))))for(const n of e[Xa("0x3c")]())n[Xa("0x59")]&&(n[Xa("0x51")](),t=!0)}return t})),e[Xa("0x2f")].document.registerPostFixer((t=>{const o=e[Xa("0x88")][Xa("0x68")]("redo");if(!o||!o[Xa("0x15")][Xa("0x6")](t[Xa("0x2")]))return!1;let s=!1;const r=e[Xa("0x5c")].get(Xa("0x49")).me,i=e[Xa("0x2f")][Xa("0x8a")][Xa("0x94")].getChanges(),a=Array[Xa("0x60")](e.model[Xa("0x8a")][Xa("0x94")][Xa("0x5f")]())[Xa("0x65")]((({name:e,data:t})=>{const{group:o,subType:s,authorId:i}=n[Xa("0x12")](e);return Xa("0x93")==o&&Xa("0x23")==s&&i==r.id&&!t.oldRange}));for(const e of i){if("insert"!=e[Xa("0x52")]||Xa("0x69")!=e.name||1!=e[Xa("0x8")])continue;const n=t.createRange(e[Xa("0x79")],e[Xa("0x79")][Xa("0x9b")](1));if(!a[Xa("0x95")]((({data:e})=>e[Xa("0x0")].isEqual(n))))for(const{name:e,data:o}of a)if(n[Xa("0x3d")](o.newRange)){t[Xa("0x9e")](e,{range:n}),s=!0;break}}return s})),e.model[Xa("0x8a")].registerPostFixer((t=>{let o=!1;const s=e[Xa("0x5c")][Xa("0x68")](Xa("0x49")).me,r=n[Xa("0x33")]()[Xa("0x65")]((e=>e[Xa("0x59")]&&e[Xa("0x3b")]==s)),i=new Set,a=new Set;for(const e of r)if("tablePaste"==e.subType)for(const t of e.getMarkers()){const n=t[Xa("0x6f")]().getContainedElement();if(n)if(n.is("element",Xa("0x69"))&&Za(n)){e[Xa("0x82")](t[Xa("0x9d")]),i[Xa("0x9f")](n),o=!0;const s=n.nextSibling,r=n[Xa("0x5d")],x=s&&s.is(Xa("0xe"),"tableCellSuggestion"),c=r&&r.is("element",Xa("0x69"));x&&!i.has(s)&&a[Xa("0x9f")](s),c&&!i[Xa("0x6")](r)&&a[Xa("0x9f")](r)}else n.is(Xa("0xe"),Xa("0x71"))&&n[Xa("0x62")]&&(e[Xa("0x82")](t.name),o=!0)}else if(Xa("0x26")==e[Xa("0x1")]){if(!e[Xa("0x50")]||!e.attributes[Xa("0x98")])continue;const t=e[Xa("0x50")][Xa("0x46")];if(t&&Object[Xa("0x6b")](t)[Xa("0x8")])continue;const n=e[Xa("0x50")][Xa("0x98")];let s=!0,i=!0;for(const t of r)if(t[Xa("0x1")]&&t[Xa("0x1")][Xa("0x9")](Xa("0x23"))){if(!t.attributes[Xa("0x98")]){i=!1;break}if(t.id!=e.id&&t.attributes[Xa("0x98")]==n){s=!1;break}}i&&s&&(e.removeMarkers(),o=!0)}for(const e of i)t.remove(e);for(const e of a)t[Xa("0x1c")](e);return o})),e.conversion[Xa("0xb")](Xa("0x53"))[Xa("0x4a")]({model:Xa("0xa5"),view:(e,t)=>l(e),converterPriority:Xa("0x72")}),e[Xa("0x77")][Xa("0xb")](Xa("0xa6"))[Xa("0x4a")]({model:Xa("0xa5"),view:(e,t)=>t[Xa("0xa2")][Xa("0x36")]?l(e,!1):null,converterPriority:Xa("0x72")});const d=e[Xa("0x8d")][Xa("0x67")];this.listenTo(d[Xa("0x8a")],Xa("0x4f"),((e,t)=>{const n=[];for(const e of d.createRangeIn(t[Xa("0x1e")])[Xa("0xa4")]())e.is("element",Xa("0x89"))&&n[Xa("0x61")](e);d[Xa("0x45")]((e=>{for(const t of n)e[Xa("0x3")](e[Xa("0x11")](t),e[Xa("0x7")](t)),e[Xa("0x3a")](t)}))}))}}function Za(e){if(e.isEmpty)return!0;const t=e[Xa("0x41")](0);return t.is(Xa("0xe"),Xa("0x71"))&&t[Xa("0x62")]}function Ya(e,t={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xa("0x63")](e,{includeAllSlots:!0,...t}))if(!o||1!=s||1!=r)return!1;return!0}const ex=["document","TrackChangesEditing","_suggestionFactory","format","data","locale","enableCommand","getTableColumnsWidths","handleResizeTableWidthCommand","getContainedElement","formatGroupId","getSuggestionCallback","afterInit","columnWidths","registerDescriptionCallback","discard","accept","model","has","author","change","registerCustomCallback","selection","plugins","_descriptionFactory","getColumnGroupElement","table","getAttribute","*Format:* resize table","resizeTableWidth","TableColumnResizeEditing","commandParams","tableWidth","handleSuggestionDescription","editor","subType","get","formatBlock","resizeTable","Users","markBlockFormat","bind"];var tx,nx;tx=ex,nx=371,function(e){for(;--e;)tx.push(tx.shift())}(++nx);const ox=function(e,t){return ex[e-=0]};class sx extends e.Plugin{[ox("0x13")](){if(!this[ox("0x29")][ox("0x1e")][ox("0x19")](ox("0x25")))return;const e=this[ox("0x29")].plugins[ox("0x1")](ox("0x8"));e[ox("0xd")]("resizeTableWidth",this.handleResizeTableWidthCommand[ox("0x6")](this)),e[ox("0xd")]("resizeColumnWidths",this[ox("0xf")].bind(this)),e[ox("0x9")][ox("0x1c")](ox("0x2"),"resizeTable","accept",e._suggestionFactory[ox("0x12")](ox("0x2"),null,ox("0x16"))),e[ox("0x9")].registerCustomCallback(ox("0x2"),ox("0x3"),ox("0x16"),e[ox("0x9")].getSuggestionCallback(ox("0x2"),null,ox("0x17"))),e[ox("0x1f")][ox("0x15")](this.handleSuggestionDescription[ox("0x6")](this))}handleResizeTableWidthCommand(e,t){const n=this[ox("0x29")][ox("0x1e")][ox("0x1")](ox("0x8")),o=this[ox("0x29")][ox("0x1e")].get(ox("0x25")),s=t[ox("0x21")]||this[ox("0x29")][ox("0x18")][ox("0x7")][ox("0x1d")].getSelectedElement();this[ox("0x29")][ox("0x18")][ox("0x1b")]((()=>{const r=o[ox("0x20")](s);let i=r?o[ox("0xe")](r):null,a=s[ox("0x22")](ox("0x27"))||null;const x=t[ox("0x27")]||a,c=t[ox("0x14")]||i,l=this.editor.plugins[ox("0x1")](ox("0x4")).me;for(const e of n.getSuggestions()){const t=e[ox("0x10")]();if(ox("0x3")===e[ox("0x0")]&&t===s){e[ox("0x1a")]!==l&&e[ox("0x16")]();const t=e[ox("0xb")][ox("0x26")];a=t[0].tableWidth,i=t[0][ox("0x14")];break}}e({table:s,tableWidth:x,columnWidths:c}),n[ox("0x5")](s,{commandName:ox("0x24"),commandParams:[{tableWidth:a,columnWidths:i}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[ox("0x28")](e){const{data:t}=e;if(t&&"resizeTable"===t[ox("0x11")]){const e=ox("0x23");return{type:ox("0xa"),content:Yo(this.editor[ox("0xc")],e)}}}}const rx=["insertTemplate","has","Template","get","editor","plugins","TrackChangesEditing","enableCommand","afterInit"];var ix,ax;ix=rx,ax=121,function(e){for(;--e;)ix.push(ix.shift())}(++ax);const xx=function(e,t){return rx[e-=0]};class cx extends e.Plugin{[xx("0x4")](){const e=this[xx("0x0")];e[xx("0x1")][xx("0x6")](xx("0x7"))&&e[xx("0x1")][xx("0x8")](xx("0x2"))[xx("0x3")](xx("0x5"))}}const lx=["tableOfContents","commands","get","_descriptionFactory","plugins","locale","afterInit","editor","enableCommand","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents"];var dx,ux;dx=lx,ux=268,function(e){for(;--e;)dx.push(dx.shift())}(++ux);const gx=function(e,t){return lx[e-=0]};class mx extends e.Plugin{[gx("0x2")](){const e=this[gx("0x3")];if(!e[gx("0x9")][gx("0xa")](gx("0x7")))return;e.plugins[gx("0xa")]("TrackChangesEditing")[gx("0x4")](gx("0x7"));const t=e[gx("0x0")][gx("0xa")](gx("0x5")),n=e[gx("0x1")];t[gx("0xb")].registerElementLabel(gx("0x8"),(e=>Yo(n,gx("0x6"),e)))}}const fx=["afterInit","_splitMarkerName","schema","getChangedMarkers","get","isTouching","title-content","_descriptionFactory","isCollapsed","nodeBefore","Title","model","removeMarker","element","newRange","start","registerElementLabel","has","plugins","isEqual","suggestion","forward","differ","end","locale","TrackChangesEditing","document","from"];var hx,px;hx=fx,px=258,function(e){for(;--e;)hx.push(hx.shift())}(++px);const bx=function(e,t){return fx[e-=0]};class Ex extends e.Plugin{[bx("0x16")](){const e=this.editor;if(!e[bx("0xc")][bx("0xb")](bx("0x4")))return;const t=e[bx("0xc")][bx("0x1a")](bx("0x13"));t[bx("0x1")][bx("0xa")](bx("0x0"),(()=>Yo(e[bx("0x12")],"ELEMENT_TITLE"))),e.model[bx("0x14")].registerPostFixer((n=>{let o=!1;const s=Array[bx("0x15")](e[bx("0x5")][bx("0x14")][bx("0x10")][bx("0x19")]());for(const{name:r,data:i}of s){const{group:s}=t[bx("0x17")](r);if(bx("0xe")!==s||!i[bx("0x8")])continue;const a=i[bx("0x8")],x=a[bx("0x11")][bx("0x3")];if(!x||!x.is(bx("0x7"),bx("0x0")))continue;if(!a[bx("0x9")][bx("0x1b")](a.end))continue;const c=e[bx("0x5")][bx("0x18")].getNearestSelectionRange(a[bx("0x11")],bx("0xf"));if(c&&c[bx("0x2")]){const e=n.createRange(a[bx("0x9")],c.start);e[bx("0xd")](a)||(n.updateMarker(r,{range:e}),o=!0)}o||(n[bx("0x6")](r),o=!0)}return o}))}}const _x=["redo","editor","get","TrackChangesEditing","afterInit","plugins","UndoEditing","has"];var Tx,Cx;Tx=_x,Cx=176,function(e){for(;--e;)Tx.push(Tx.shift())}(++Cx);const yx=function(e,t){return _x[e-=0]};class kx extends e.Plugin{[yx("0x4")](){const e=this[yx("0x1")],t=e[yx("0x5")][yx("0x2")](yx("0x3"));e[yx("0x5")][yx("0x7")](yx("0x6"))&&(t.enableCommand("undo"),t.enableCommand(yx("0x0")))}}const Ax=["enableCommand","TrackChangesEditing","plugins","toggleTableCaption","has","requires","TableCaptionEditing","afterInit"];var vx,Rx;vx=Ax,Rx=233,function(e){for(;--e;)vx.push(vx.shift())}(++Rx);const Sx=function(e,t){return Ax[e-=0]};class Ix extends e.Plugin{static get[Sx("0x4")](){return[wa]}[Sx("0x6")](){const e=this.editor;e[Sx("0x1")][Sx("0x3")](Sx("0x5"))&&e[Sx("0x1")].get(Sx("0x0"))[Sx("0x7")](Sx("0x2"))}}const Lx=["model","list.properties","*Format:* set order to reversed","change","styles","toUpperCase","isFirstBlockOfListItem","_LIST_","_getSuggestionBlocks","listReversed","DocumentListPropertiesEditing","format","afterInit","get","enableCommand","expandListBlocksToCompleteList","getSelectedBlocks","TrackChangesEditing","_getTranslationKeyForListStyle","listStyle","numbered","handleListStyleCommand","commandParams","isListItemBlock","type","_descriptionFactory","startIndex","filter","document","bind","*Change to:* %0","getListTypeFromListStyleType","length","registerDescriptionCallback","listType","plugins","DocumentListPropertiesUtils","replace","DocumentListUtils","from","selection","handleListStartCommand","push","editor","getAttribute","_getSuggestionBlocksForListStyle","locale","markMultiRangeBlockFormat","listStart","reversed","handleDescriptions"];var Nx,Mx;Nx=Lx,Mx=239,function(e){for(;--e;)Nx.push(Nx.shift())}(++Mx);const wx=function(e,t){return Lx[e-=0]};class Ox extends e.Plugin{[wx("0x1c")](){if(!this.editor[wx("0x0")].has(wx("0x1a")))return;const e=this[wx("0x8")].config[wx("0x1d")](wx("0x11")),t=this[wx("0x8")][wx("0x0")][wx("0x1d")](wx("0x21"));e[wx("0x14")]&&t[wx("0x1e")](wx("0x23"),this[wx("0x25")].bind(this)),e[wx("0xe")]&&t[wx("0x1e")](wx("0x19"),this.handleListReversedCommand[wx("0x2d")](this)),e[wx("0x2a")]&&t[wx("0x1e")](wx("0xd"),this[wx("0x6")][wx("0x2d")](this)),t[wx("0x29")][wx("0x31")](this[wx("0xf")][wx("0x2d")](this))}[wx("0x25")](e,t={}){const n=this[wx("0x8")][wx("0x0")][wx("0x1d")](wx("0x21")),o=this[wx("0xa")]();this[wx("0x8")][wx("0x10")][wx("0x13")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wx("0x23"),commandParams:[{type:t[wx("0x28")]}],formatGroupId:wx("0x23")})}))}handleListReversedCommand(e,t={}){const n=this.editor[wx("0x0")][wx("0x1d")](wx("0x21")),o=this.editor[wx("0x0")][wx("0x1d")](wx("0x3")),s=this[wx("0x18")]((e=>o[wx("0x27")](e)&&"numbered"===e[wx("0x9")](wx("0x32"))));null!==s&&this[wx("0x8")].model.change((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listReversed",commandParams:[{reversed:t[wx("0xe")]}],formatGroupId:wx("0x19")})}))}[wx("0x6")](e,t={}){const n=this[wx("0x8")].plugins[wx("0x1d")]("TrackChangesEditing"),o=this[wx("0x8")][wx("0x0")][wx("0x1d")](wx("0x3")),s=this[wx("0x18")]((e=>o[wx("0x27")](e)&&wx("0x24")===e[wx("0x9")]("listType")));null!==s&&this[wx("0x8")].model.change((()=>{n[wx("0xc")](s,{commandName:"listStart",commandParams:[{startIndex:t[wx("0x2a")]}],formatGroupId:wx("0xd")})}))}handleDescriptions(e){const t=this[wx("0x8")][wx("0xb")],{data:n}=e;if(!n)return;let o,s;switch(n.commandName){case wx("0x23"):o=wx("0x2e"),s={type:wx("0x1b"),content:Yo(t,o,Yo(t,this[wx("0x22")](n[wx("0x26")][0].type)))};break;case wx("0x19"):o=n[wx("0x26")][0][wx("0xe")]?wx("0x12"):"*Format:* set order to regular",s={type:wx("0x1b"),content:Yo(t,o)};break;case wx("0xd"):o="*Format:* set start index to %0",s={type:wx("0x1b"),content:Yo(t,o,n[wx("0x26")][0].startIndex)}}return s}[wx("0xa")](){const e=this[wx("0x8")].plugins[wx("0x1d")](wx("0x3"));let t=Array[wx("0x4")](this[wx("0x8")][wx("0x10")][wx("0x2c")][wx("0x5")][wx("0x20")]());return t.push(...e[wx("0x1f")](t)),t=[...new Set(t)],t}[wx("0x18")](e){const t=this[wx("0x8")][wx("0x0")].get("DocumentListUtils");let n=Array.from(this.editor[wx("0x10")][wx("0x2c")][wx("0x5")][wx("0x20")]())[wx("0x2b")](e);if(!n[wx("0x30")])return null;n=t[wx("0x1f")](n);const o=[];for(const e of n)t[wx("0x16")](e)&&o[wx("0x7")](e);return o}[wx("0x22")](e){return"ELEMENT_"+this[wx("0x8")][wx("0x0")][wx("0x1d")](wx("0x1"))[wx("0x2f")](e)[wx("0x15")]()+wx("0x17")+e[wx("0x15")]()[wx("0x2")](/-/g,"_")}}const Fx=["_descriptionFactory","enqueueChange","table","change","_suggestionFactory","registerDescriptionCallback","getSuggestionCallback","plugins","tableBorderColor","tableCellBorderWidth","get","getFirstPosition","tableCellWidth","discard","batch","tableCellBackgroundColor","document","locale","tableBorderWidth","handleSuggestionDescription","tableCellHeight","enableCommand","TrackChangesEditing","model","TablePropertiesEditing","tableWidth","tableBorderStyle","findAncestor","handleDiscardAction","accept","tableCellBorderColor","removeAttribute","_handlePropertyChange","pluginName","has","selection","getAttribute","registerCustomCallback","format","join","data","subType","tableCellProperties","getSuggestions","formatBlock","tableProperties","getSelectionAffectedTableCells","start","*Format:* change table cell properties","tableCellPadding","_getSuggestion","setAttribute","markBlockFormat","getContainedElement","editor","TableCellPropertiesEditing"];var Px,Dx;Px=Fx,Dx=451,function(e){for(;--e;)Px.push(Px.shift())}(++Dx);const Bx=function(e,t){return Fx[e-=0]};class jx extends e.Plugin{constructor(e){super(e),this[Bx("0x2a")]=[Bx("0x5"),Bx("0x17"),Bx("0xf"),"tableAlignment",Bx("0x16"),"tableHeight","tableBackgroundColor"],this[Bx("0x27")]=[Bx("0x1b"),"tableCellBorderStyle",Bx("0x6"),Bx("0x2e"),Bx("0x9"),Bx("0x11"),Bx("0xc"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[Bx("0x1e")](){return"TrackChangesTableProperties"}afterInit(){const e=this[Bx("0x33")][Bx("0x4")][Bx("0x7")](Bx("0x13"));if(this[Bx("0x33")][Bx("0x4")][Bx("0x1f")](Bx("0x15"))){for(const t of this.tableProperties)e.enableCommand(t,((e,n)=>{const o=this[Bx("0x33")][Bx("0x14")][Bx("0xd")].selection[Bx("0x8")]()[Bx("0x18")](Bx("0x37"));this[Bx("0x1d")](t,[o],this[Bx("0x2a")],"tableProperties",e,n)}));e[Bx("0x1")][Bx("0x22")](Bx("0x29"),Bx("0x2a"),Bx("0x1a"),e[Bx("0x1")][Bx("0x3")](Bx("0x29"),null,Bx("0xa"))),e._suggestionFactory[Bx("0x22")](Bx("0x29"),"tableProperties",Bx("0xa"),((e,t)=>this[Bx("0x19")](this[Bx("0x2a")],e,t))),e._suggestionFactory[Bx("0x22")](Bx("0x29"),Bx("0x2a"),Bx("0x24"),(()=>!1))}if(this.editor.plugins[Bx("0x1f")](Bx("0x34"))){for(const t of this[Bx("0x27")])e[Bx("0x12")](t,((e,n)=>{const o=this[Bx("0x33")][Bx("0x4")].get("TableUtils")[Bx("0x2b")](this.editor[Bx("0x14")][Bx("0xd")][Bx("0x20")]);this[Bx("0x1d")](t,o,this[Bx("0x27")],Bx("0x27"),e,n)}));e[Bx("0x1")][Bx("0x22")](Bx("0x29"),Bx("0x27"),Bx("0x1a"),e[Bx("0x1")][Bx("0x3")]("formatBlock",null,"discard")),e._suggestionFactory.registerCustomCallback(Bx("0x29"),Bx("0x27"),"discard",((e,t)=>this[Bx("0x19")](this[Bx("0x27")],e,t))),e[Bx("0x1")][Bx("0x22")](Bx("0x29"),Bx("0x27"),Bx("0x24"),(()=>!1))}e[Bx("0x35")][Bx("0x2")]((e=>this.handleSuggestionDescription(e)))}_handlePropertyChange(e,t,n,o,s,r){const i=this[Bx("0x33")][Bx("0x4")][Bx("0x7")](Bx("0x13"));this.editor[Bx("0x14")][Bx("0x36")](r[Bx("0xb")],(()=>{for(const e of t)if(this._getSuggestion(e,o))s(r);else{const t={};for(const o of n){const n=e[Bx("0x21")](o);void 0!==n&&(t[o]=n)}s(r),i[Bx("0x31")](e,{commandParams:[t]},[],o)}}))}[Bx("0x19")](e,t,n){const o=t[0][Bx("0x2c")].nodeAfter,s=n.commandParams[0];this[Bx("0x33")].model[Bx("0x0")]((t=>{for(const n of e)void 0!==s[n]?t[Bx("0x30")](n,s[n],o):t[Bx("0x1c")](n,o)}))}[Bx("0x10")](e){if(e[Bx("0x25")])switch(e[Bx("0x26")]){case Bx("0x2a"):return{type:"format",content:Yo(this.editor.locale,"*Format:* change table properties")};case Bx("0x27"):return{type:Bx("0x23"),content:Yo(this[Bx("0x33")][Bx("0xe")],Bx("0x2d"))}}}[Bx("0x2f")](e,t){const n=this[Bx("0x33")][Bx("0x4")][Bx("0x7")](Bx("0x13"));for(const o of n[Bx("0x28")]({skipNotAttached:!0})){const n=o[Bx("0x32")]();if(o[Bx("0x26")]===t&&n===e)return o}return null}}const Ux=["isUndo","_enabledCommands","map","ck-suggestion-marker-","creator","end","writer","formatInline:accept","execute","acceptSelectedSuggestions","isAtStart","markerToHighlight","acceptAllSuggestions","type","_cutOutSuggestionMarker","removeMarker","markDeletion","getChangedMarkers","_setSuggestionData","isBlock","trackChanges.trackFormatChanges","backward","authoredAt","substr","position","delete","data-suggestion","buildSuggestion","enableCommand","batch","TrackChangesEditing","mapper","isAtEnd","$marker","discardSuggestion","clone","config","acceptSuggestion","isSelectable","fetchCommentThread","getUser","getRange","normal","insert","keys","dataToMarker","formatBlock","define","isOwn","_registerDefaultCallbacks","containerElement","_splitMarkerName","deletion","containsRangeInObject","editingDowncast","markerReady","getShiftedBy","isInsideObject","add","_getExternalAuthor","tablePasteChainId","suggestionUnloaded","addClass","addMarkerName","getAncestors","ck-suggestion-marker-formatBlock","change:_saved","join","suggestion","return","CommentsRepository","isBefore","isExternal","isCollapsed","lowest","getDifference","deletion:","_adapter","never","_mergeNestedSuggestions","low","includes","ck-suggestion-marker--active","addCommentThread","clear","registerPostFixer","getFirstRange","getCommentThread","createRange","addMarker:suggestion:formatBlock","previous","dataReady","length","ready","showSuggestionHighlights","unbindElementFromMarkerName","every","differ","enqueueChange","change:data","_addThreadToSuggestion","name","plugins","addSuggestion","createdAt","isNextTo","high","_updateSuggestionData","containsPosition","@external","addRange","_suggestionFactory","options","_customCallbacks","formatGroupId","element","_getSuggestionData","insertion:join","trackChanges.mergeNestedSuggestions","track-changes-command-not-found","formatBlock:","markBlockFormat","isLocal","getMultiRangeId","getAttribute","Users","fromRange","_setSuggestionRange","formatInline:chain","formatInline:join","formatBlock:discard","getMarkers","highest","authorName","_model","some","ck-suggestion-marker","activeMarkers","commandName","markerNameToElements","_onDiscard","_addSuggestionMarker","size","$textProxy","widget","containsItem","createSelection","selection","howMany","collaboration.channelId","getLastMatchingPosition","then","updateMarker","schema","_saved","_handleNewSuggestionMarker","split","model","splitPosition","consumable","forceDefaultExecution","isTouching","PENDING_ACTION_SUGGESTION","getItems","item","trackChanges","init","always","sort","insertContent","listenTo","subType","markMultiRangeBlockFormat","suggestion-type","formatInline","updateSuggestion","locale","external:","removeMarkers","setSelection","multipleBlocks","refresh","editing","_joinSuggestions","track-changes-adapter-missing-getsuggestion","addMarker:suggestion","set","change:activeMarkers","markers","head","track-changes-suggestion-not-found","getSuggestionCallback","update:suggestion","moveTargetPosition","data","notReady","upcast","discard","stop","stopListening","accept","values","_refreshSuggestionsChain","reconvertMarker","rethrowUnexpectedError","fromCharCode","range","requires","remove","containsRange","getChanges","isInContent","applyOperation","getCustomProperty","assign","commentThread","rootName","formatInline:discard","newRange","push","get","parent","insertion:discard","getRanges","nodeAfter","change","_isForcedDefaultExecutionBlock","_removeSuggestion","catch","conversion","_commentsRepository","isIntersectingWithRange","attributes","rejected","from","deletion:accept","hasComments","suggestionChanged","toJSON","discardSelectedSuggestions","after","addComment","insertion:accept","detach","track-changes-user-not-found","$graveyard","author","resolve","track-changes-suggestion-data-mismatch","for","removeClass","getAllAdjacentSuggestions","markInlineFormat","_defaultCallbacks","before","nodeBefore","getFirstMarker","isAfter","markerName","editor","consume","insertion:","getWalker","next","markInsertion","_suggestions","_joinWithAdjacentSuggestions","elementStart","suggestionLoaded","isRemovable","insertion","formatBlock:chain","_suggestionState","oldRange","root","isEqual","error-saving-suggestion-data-suggestion-discarded","discardAllSuggestions","hasCommentThread","deletion:discard","skipNestingCheck","deletion:chain","forward","accepted","createElement","_isDataLoaded","_trackFormatChanges","originalSuggestionId","document","chain","_checkSuggestionCorrectness","_findSuggestions","trackChangesCommand","createPositionAt","splice","removed","_getAuthorFromId","formatBlock:join","isObject","_breakSuggestionMarker","filter","commands","documentSelection","isMultiRange","getSuggestions","multi","addMarker","createRangeIn","addHighlight","getSuggestion","isArray","fire","deleteContent","_rangeIsInLocalUserInsertion","unbind","dataDowncast","markMultiRangeDeletion","addUser","addSuggestionData","getIntersection","_createSuggestion","has","removeAttribute","start","value","isLimit","adapter"];var Gx,Hx;Gx=Ux,Hx=326,function(e){for(;--e;)Gx.push(Gx.shift())}(++Hx);const zx=function(e,t){return Ux[e-=0]};class Wx extends e.Plugin{static get[zx("0xd0")](){return[zx("0x47"),r.Users,e.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,tr,Ox,ar,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,ai,ui,pi,Ci,Ri,Oi,ji,Wi,$i,ea,ia,ua,pa,ya,Sa,wa,ja,Wa,Ix,Qa,sx,mx,jx,cx,Ex,kx]}static get pluginName(){return zx("0x1f")}constructor(e){function t(e){return e[zx("0x3")]((e=>String[zx("0xce")](e)))[zx("0x44")]("")}super(e),this[zx("0xbb")](zx("0x8a"),[]),this.on(zx("0xbc"),((t,n,o,s)=>{this[zx("0x87")].change((()=>{for(const t of[...s,...o])this[zx("0x87")][zx("0xbd")][zx("0x142")](t)&&e[zx("0xb7")][zx("0xcc")](t)}))})),this._descriptionFactory=new ss(this.editor[zx("0x9e")][zx("0x9a")],this[zx("0x104")][zx("0xb1")]),this[zx("0x4e")]=null,this[zx("0x70")]=new Vx(this[zx("0x104")]),this._suggestions=new Map,this[zx("0xe7")]=e.plugins[zx("0xdd")](zx("0x47")),this._enabledCommands=new Set,this[zx("0x87")]=this[zx("0x104")][zx("0x9e")],this[zx("0x111")]=new WeakMap,this[zx("0xe3")]=!1,e[zx("0x25")][zx("0x30")](zx("0x15"),"default"),this._trackFormatChanges=e[zx("0x25")][zx("0xdd")](zx("0x15")),e[zx("0x25")].define(zx("0x77"),!0),this[zx("0x50")]=e[zx("0x25")][zx("0xdd")]("trackChanges.mergeNestedSuggestions"),this[zx("0x125")]=new u(e,this._enabledCommands),this[t([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=t([52,48,52,54,49,56,50,50])}[zx("0xa7")](){const e=this.editor;e[zx("0xe6")][zx("0xfa")]("editingDowncast")[zx("0xc")]({model:zx("0x45"),view:e=>{const{id:t,type:n}=this[zx("0x34")](e[zx("0x103")]),o=[zx("0x89"),zx("0x4")+n];let s=3e3;return this[zx("0x8a")][zx("0x52")](e[zx("0x103")])&&(o[zx("0xdc")](zx("0x53")),s=3010),zx("0x35")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":t},priority:s}}}),e[zx("0xe6")][zx("0xfa")](zx("0x13c"))[zx("0x3b")]((t=>{t.on(zx("0xba"),((t,n,o)=>{if(!o[zx("0x71")][zx("0x5f")])return;const s=n[zx("0xa5")];if(!s)return;const r=o[zx("0x20")].toViewElement(s);e[zx("0x9e")].schema[zx("0x12b")](s)&&r&&!r[zx("0xd6")](zx("0x91"))&&r.is(zx("0x33"))&&(0,a.toWidget)(r,o[zx("0x7")])}),{priority:zx("0x6b")})})),e.conversion[zx("0xfa")](zx("0x13c"))[zx("0xc")]({model:zx("0x45"),view:(e,t)=>{if(!t[zx("0x71")][zx("0x5f")])return null;const{type:n}=this._splitMarkerName(e[zx("0x103")]);return{classes:[zx("0x89"),zx("0x4")+n],priority:3e3}}});const n=({showActiveMarkers:t=!0}={})=>(n,o,s)=>{if(!o[zx("0xa5")])return;if(o[zx("0xa5")].is(zx("0x94")))return void s[zx("0xa0")][zx("0x105")](o[zx("0xa5")],n[zx("0x66")]);const r=s.mapper.toViewElement(o.item);if(!o[zx("0xa5")].is(zx("0x74"))||!e.model.schema[zx("0x14")](o.item)||r[zx("0xd6")](zx("0x135")))return;const{id:i}=this._splitMarkerName(o.markerName);s[zx("0x7")].addClass([zx("0x89"),zx("0x42")],r),s.writer.setAttribute(zx("0x1b"),i,r),s.mapper.bindElementToMarker(r,o[zx("0x103")]),t&&(this[zx("0x8a")][zx("0x52")](o[zx("0x103")])?s[zx("0x7")][zx("0x3f")](zx("0x53"),r):s[zx("0x7")][zx("0xfb")]("ck-suggestion-marker--active",r));for(const t of e[zx("0x9e")][zx("0x134")](o[zx("0xa5")])[zx("0xa4")]())s[zx("0xa0")][zx("0x105")](t,n.name);s.consumable[zx("0x105")](o.item,n.name)};e[zx("0xe6")][zx("0xfa")](zx("0x13c")).add((e=>{e.on(zx("0x5a"),((e,t,o)=>{o.options[zx("0x5f")]&&n({showActiveMarkers:!1})(e,t,o)}),{priority:zx("0x85")})})),e[zx("0xe6")].for("dataDowncast").markerToData({model:zx("0x45"),view:(e,t)=>t[zx("0x71")][zx("0x5f")]?null:{group:zx("0x45"),name:e[zx("0x18")](11)}}),e[zx("0xe6")].for(zx("0xc5")).elementToElement({view:{name:zx("0x45"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(e,{writer:t})=>{let n="suggestion:"+e.getAttribute(zx("0xae"))+":"+e.getAttribute("id");return e[zx("0x7d")]("marker-count")&&(n+=":"+e[zx("0x7d")]("marker-count")),t[zx("0x11d")](zx("0x22"),{"data-name":n})}}),e[zx("0xe6")][zx("0xfa")](zx("0xc5"))[zx("0x2e")]({view:zx("0x45")}),e[zx("0xe6")][zx("0xfa")](zx("0x37")).add((e=>{e.on("addMarker:suggestion:formatBlock",n(),{priority:zx("0x6b")})})),e[zx("0xe6")].for(zx("0x37"))[zx("0x3b")]((e=>{e.on("removeMarker:suggestion:formatBlock",((e,t,n)=>{const o=n[zx("0x20")][zx("0x8c")](t[zx("0x103")]);if(o)for(const e of o)e[zx("0xd6")]("addHighlight")||(n[zx("0x7")][zx("0xfb")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock",zx("0x53")],e),n[zx("0x7")][zx("0x143")]("data-suggestion",e),n.mapper[zx("0x60")](e,t.markerName))}),{priority:zx("0x6b")})})),e[zx("0x9e")][zx("0x121")][zx("0x56")]((t=>{let n=!1;const o=Array[zx("0xeb")](e[zx("0x9e")][zx("0x121")].differ[zx("0x12")]()),s=new Set;for(const{name:a,data:x}of o){const{group:o,type:c,id:l}=this[zx("0x34")](a);if(zx("0x45")!==o)continue;const d=this[zx("0x10a")][zx("0xdd")](l);if(null!=x.newRange)if(zx("0xaf")==c&&(n=n||Xx(x[zx("0xdb")],a,t,e[zx("0x9e")][zx("0x9a")])),x[zx("0xdb")][zx("0x4a")]||zx("0xf6")==x[zx("0xdb")][zx("0x113")].rootName||zx("0x2f")==c&&!Jx(x[zx("0xdb")])||zx("0x35")==c&&(qx(i=x[zx("0xdb")])||(r=i)[zx("0x144")][zx("0xde")]==r[zx("0x6")].nodeBefore&&r.start[zx("0x21")]))t[zx("0x10")](a),n=!0;else{if(!d||!d.isInContent)continue;s.add(d)}}var r,i;return s.size>0&&(n=!!this[zx("0x10b")](s)||n),n})),e[zx("0x9e")].document[zx("0x56")]((t=>{let n=!1;for(const o of e.model.document[zx("0x62")][zx("0xd3")]()){if(zx("0x2c")!=o[zx("0xe")])continue;const s=o[zx("0x19")][zx("0x39")](o.length);if(s[zx("0x21")])for(const r of this[zx("0x10a")][zx("0xca")]()){if(r[zx("0x130")]||!r[zx("0xd4")])continue;if(zx("0x2f")!=r[zx("0xe")])continue;const i=r[zx("0x57")]();if(i.start[zx("0xde")]!=i[zx("0x6")][zx("0xde")]&&i[zx("0x6")][zx("0x114")](o[zx("0x19")])){const o=e.model[zx("0x59")](i[zx("0x144")],s);t.updateMarker(r[zx("0x101")](),{range:o}),n=!0}}}return n})),e[zx("0x9e")].markers.on(zx("0xc1"),((e,t,n)=>{if(null==n){const{id:e}=this[zx("0x34")](t[zx("0x66")]),n=this[zx("0x10a")][zx("0xdd")](e);n&&n[zx("0x40")](t.name)}})),e.model[zx("0x121")].on(zx("0x64"),(()=>{const t=Array[zx("0xeb")](e[zx("0x9e")][zx("0x121")][zx("0x62")][zx("0x12")]()).filter((e=>zx("0x45")===this._splitMarkerName(e[zx("0x66")]).group));if(0===t[zx("0x5d")])return;t.sort(((e,t)=>{const n=e[zx("0xc3")][zx("0x112")],o=t[zx("0xc3")][zx("0x112")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[zx("0x144")][zx("0x48")](o[zx("0x144")])?-1:1}));const n=new Set,o=new Set;for(const{name:e,data:s}of t){const{id:t}=this._splitMarkerName(e);if(null===s.oldRange){const t=this[zx("0x9c")](e);o[zx("0x3b")](t)}else{const e=this[zx("0x10a")].get(t);null!==s[zx("0xdb")]||e[zx("0xd4")]?(n[zx("0x3b")](e[zx("0xbe")]),o[zx("0x3b")](e)):this[zx("0xe4")](e)}}o[zx("0x8f")]>0&&this[zx("0xcb")](o);for(const e of n)this.fire(zx("0xee"),e)})),e.model.on(zx("0xd5"),((t,n)=>{const o=n[0];if(!this._suggestions.size)return;if(!o.isDocumentOperation)return;if(o[zx("0x1e")][zx("0x1")]||!o[zx("0x1e")][zx("0x7b")])return;let s,r;switch(o[zx("0xe")]){case zx("0x2c"):s=e[zx("0x9e")].createPositionAt(o[zx("0x19")]),r=s.getShiftedBy(o[zx("0x95")]);break;case zx("0x9d"):s=e[zx("0x9e")][zx("0x126")](o[zx("0x9f")]),r=e[zx("0x9e")][zx("0x126")](o[zx("0xc2")]);break;case"move":s=e.model[zx("0x126")](o.targetPosition),r=s.getShiftedBy(o[zx("0x95")]);break;default:return}const i=e[zx("0x9e")][zx("0x59")](s,r);e[zx("0x9e")][zx("0xe2")]((()=>{for(const{suggestion:e,meta:t}of this._findSuggestions(i)){if(e[zx("0x130")])continue;if(zx("0xaf")==e[zx("0xe")])continue;const n=e[zx("0xc3")]&&e[zx("0xc3")].multipleBlocks;("formatBlock"!=e.type||zx("0x9d")==o[zx("0xe")]&&!n)&&(t[zx("0x36")]||zx("0x10f")==e[zx("0xe")]&&t[zx("0x31")]||e[zx("0x57")]().containsRange(i)&&this[zx("0x12c")](e,s,r))}}))}),{priority:zx("0x4b")}),e[zx("0x9e")].on(zx("0x139"),((t,n)=>{const o=n[0],s=n[1];if(s&&s[zx("0xa1")])return;if(this[zx("0xe3")])return;if(!this[zx("0x125")].value)return;if(o.isCollapsed)return;const r=e.model[zx("0x9a")],{start:i,end:a}=o[zx("0x57")](),x=i[zx("0xe1")]&&r[zx("0x146")](i[zx("0xe1")])?null:r.getNearestSelectionRange(i,zx("0x11b")),c=a.nodeBefore&&r[zx("0x146")](a[zx("0x100")])?null:r.getNearestSelectionRange(a,zx("0x16")),l=e.model.createRange(x?x[zx("0x144")]:i,c?c[zx("0x6")]:a);e[zx("0x9e")].change((t=>{this[zx("0x11")](l);const n=e[zx("0x9e")].schema.getNearestSelectionRange(l[zx("0x144")]);o.is(zx("0x12f"))?t.setSelection(n):o.setTo(n)})),t[zx("0xc7")]()}),{priority:t.priorities[zx("0x2b")]+10}),e[zx("0x9e")].on(zx("0xaa"),((t,n)=>{const o=n[n.length-1];o&&o[zx("0xa1")]||this[zx("0xe3")]||this[zx("0x125")][zx("0x145")]&&(e[zx("0x9e")][zx("0xe2")]((()=>{let o=e[zx("0x9e")][zx("0xaa")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;t[zx("0x46")]=o[zx("0x24")]();const s=o[zx("0x6")].nodeBefore,r=e[zx("0x9e")][zx("0x9a")];s&&r[zx("0x14")](s)&&!r[zx("0x12b")](s)&&(o=e[zx("0x9e")][zx("0x59")](o.start,e[zx("0x9e")][zx("0x126")](s,zx("0x6")))),this[zx("0x109")](o)})),t[zx("0xc7")]())}),{priority:zx("0x6b")}),this[zx("0x104")][zx("0x12e")].add(zx("0xa6"),this[zx("0x125")]),this[zx("0x1d")](zx("0xa6"));const o=new p(e,this[zx("0x10a")]);e.commands[zx("0x3b")](zx("0x26"),o),this[zx("0x1d")](zx("0x26"));const s=new C(e,this[zx("0x10a")]);e[zx("0x12e")][zx("0x3b")](zx("0x23"),s),this[zx("0x1d")](zx("0x23")),e[zx("0x12e")][zx("0x3b")](zx("0xd"),new F(e,o,this._suggestions)),this[zx("0x1d")]("acceptAllSuggestions"),e[zx("0x12e")][zx("0x3b")](zx("0x116"),new F(e,s,this[zx("0x10a")])),this[zx("0x1d")](zx("0x116")),e[zx("0x12e")][zx("0x3b")](zx("0xa"),new U(e,o,this[zx("0x10a")])),this.enableCommand("acceptSelectedSuggestions"),e[zx("0x12e")][zx("0x3b")](zx("0xf0"),new U(e,s,this[zx("0x10a")])),this[zx("0x1d")](zx("0xf0"));const r=e[zx("0x67")][zx("0xdd")](zx("0x47"));this.listenTo(r,zx("0xf2"),((e,{threadId:t})=>{const n=this[zx("0x10a")][zx("0xdd")](t);n&&n[zx("0xd8")]&&1===n.commentThread[zx("0x5d")]&&this[zx("0x6c")](t,{hasComments:!0})}),{priority:zx("0x51")}),this[zx("0xab")](r,"removeComment",((e,{threadId:t})=>{const n=this[zx("0x10a")][zx("0xdd")](t);n&&n[zx("0xd8")]&&!n.commentThread[zx("0x5d")]&&this[zx("0x6c")](t,{hasComments:!1})}),{priority:zx("0x51")})}set[zx("0x0")](e){if(this._adapter)throw new t.CKEditorError("track-changes-adapter-already-set",this);this[zx("0x4e")]=e}get[zx("0x0")](){return this[zx("0x4e")]}getSuggestions({skipNotAttached:e=!1,toJSON:t=!1}={}){const n=[];for(const t of this._suggestions[zx("0xca")]())e&&!t[zx("0xd4")]||n.push(t);return t?n[zx("0x3")]((e=>e[zx("0xef")]())):n}[zx("0x136")](e){const n=this[zx("0x10a")][zx("0xdd")](e);if(!n)throw new t.CKEditorError(zx("0xbf"),this);return n}hasSuggestion(e){return this[zx("0x10a")][zx("0x142")](e)}addSuggestionData(e){const{authorId:t,id:n,attributes:o}=e,[s,r]=e[zx("0xe")][zx("0x9d")](":"),i=this[zx("0x10a")][zx("0xdd")](n)||this._createSuggestion(s,r,n,t,o);if(this[zx("0x65")](i),this[zx("0x123")](i,s,r||null,t),i[zx("0x69")]=e[zx("0x69")],i[zx("0x11e")]=!0,o&&o[zx("0x6e")]){const e=o[zx("0x6e")],t=this[zx("0x3c")](e[zx("0x86")]);i.authoredAt=e[zx("0x69")],i[zx("0xf7")]=t,i[zx("0x49")]=!0}else i[zx("0x17")]=e[zx("0x69")];switch(e[zx("0xc3")]&&(i[zx("0xc3")]=e[zx("0xc3")]),e.attributes&&(i[zx("0xe9")]=e[zx("0xe9")]),this[zx("0x4e")]&&this[zx("0x4e")].addSuggestion||(i[zx("0x9b")]=!0),this[zx("0x111")][zx("0xdd")](i)){case zx("0xc4"):this._suggestionState[zx("0xbb")](i,zx("0x5c"));break;case zx("0x38"):i.isInContent?(this[zx("0xcb")](new Set([i])),this[zx("0x10b")](new Set([i])),this[zx("0x111")][zx("0xbb")](i,zx("0x5e")),this[zx("0x138")](zx("0x10d"),i)):this[zx("0x111")].set(i,"removed")}return i}[zx("0x26")](e){this.forceDefaultExecution((()=>{this[zx("0x104")][zx("0x9e")][zx("0xe2")]((()=>{for(const t of e[zx("0xfc")]())t[zx("0xc9")]()}))}))}discardSuggestion(e){this[zx("0xa1")]((()=>{this[zx("0x104")].model[zx("0xe2")]((()=>{for(const t of e[zx("0xfc")]())t.discard()}))}))}[zx("0x1d")](e,n){const o=this[zx("0x104")][zx("0x12e")][zx("0xdd")](e);if(!o)throw new t.CKEditorError(zx("0x78"),this,{commandName:e});this[zx("0x2")].add(o),n&&o.on("execute",((e,t)=>{this.trackChangesCommand.value&&(this[zx("0xe3")]||t.length>0&&t[t[zx("0x5d")]-1]&&t[t[zx("0x5d")]-1][zx("0xa1")]||(n(((...e)=>o[zx("0x9")](...e,{forceDefaultExecution:!0})),...t),e[zx("0xc7")]()))}),{priority:zx("0x6b")})}forceDefaultExecution(e){let n,o;const s=this[zx("0xe3")];this[zx("0xe3")]=!0;try{n=e()}catch(e){o=e}return s||(this._isForcedDefaultExecutionBlock=!1),o&&t.CKEditorError[zx("0xcd")](o,this),n}[zx("0x109")](e,n=null,o={}){if(e.isCollapsed)return null;const s=this[zx("0x104")][zx("0x67")][zx("0xdd")]("Users").me;for(const{suggestion:t,meta:s}of this._findSuggestions(e,zx("0x10f")))if(s.isOwn){if(!s[zx("0x6a")]){if(s[zx("0x36")]){if(!this._mergeNestedSuggestions||!ec(t,o))continue;return t}if(ec(t,o))return t;this[zx("0x12c")](t,e[zx("0x144")],e[zx("0x6")]);break}if(n==t.subType&&ec(t,o)){const n=t[zx("0x57")]();return n[zx("0x144")].isEqual(e.end)?this[zx("0x80")](t,this._model[zx("0x59")](e[zx("0x144")],n[zx("0x6")])):this[zx("0x80")](t,this[zx("0x87")][zx("0x59")](n[zx("0x144")],e.end)),t}}const r=(0,t.uid)(),i=s.id,a=n?zx("0x106")+n:"insertion",x=this._setSuggestionData({id:r,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0x8e")](a,r,i,e),x}markMultiRangeInsertion(e,n=zx("0x132"),o={}){const s=this[zx("0x104")][zx("0x67")].get(zx("0x7e")).me,r=this[zx("0x70")].getSuggestionCallback(zx("0x10f"),n,zx("0x44"));for(const t of this[zx("0x131")]())if(t[zx("0xf7")].id==s.id&&zx("0x10f")==t.type&&t[zx("0xac")]==n&&ec(t,o)&&(r(t[zx("0xe0")](),e)||r(e,t[zx("0xe0")]()))){for(const n of e)t.addRange(n);return t}for(const{suggestion:t,meta:n}of this[zx("0x124")](e,zx("0x10f"))){if(!n.isOwn)continue;if(!this._mergeNestedSuggestions&&n[zx("0x36")])continue;if(!ec(t,o))continue;let s=!0;for(const n of t[zx("0xe0")]())for(const t of e)if(!n[zx("0xd2")](t)){s=!1;break}if(s)return t}const i=(0,t.uid)(),a=s.id,x=zx("0x106")+n,c=this[zx("0x13")]({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const t of e)this[zx("0x8e")](x,i,a,t,Zo[zx("0x7c")]());return c}[zx("0xfd")](e,n,o=null,s={}){if(o=o||$x(n),e.isCollapsed)return null;if("never"===this[zx("0x11f")]){const t=this[zx("0x70")][zx("0xc0")](zx("0xaf"),o,zx("0xc9"));return this[zx("0xa1")]((()=>t([e],n,s))),null}const r=this[zx("0x104")][zx("0x67")][zx("0xdd")](zx("0x7e")).me,i=[];if("always"!==this[zx("0x11f")])for(const{suggestion:t,meta:n}of this[zx("0x124")](e,zx("0x10f")))n[zx("0x31")]&&!n[zx("0x3a")]&&i[zx("0xdc")](...t[zx("0xe0")]());const a=function(e,t){const n=[];for(const o of t){const t=e[zx("0x140")](o);t&&n[zx("0xdc")](t)}return n}(e,i),x=function(e,t){const n=[e];for(const e of t){let t=0;for(;t<n.length;){const o=n[t][zx("0x4c")](e);n[zx("0x127")](t,1,...o),t+=o[zx("0x5d")]}}return n}(e,i);a[zx("0x5d")]&&this._model[zx("0xe2")]((()=>{for(const e of a){const t=this[zx("0x70")][zx("0xc0")]("formatInline",o,"accept");this.forceDefaultExecution((()=>t([e],n,s)))}}));for(const e of x){let i=null,a=e[zx("0x144")],x=e[zx("0x6")];for(const{suggestion:t,meta:n}of this._findSuggestions(e,zx("0xaf"))){if(!n.isOwn)continue;if(t[zx("0xac")]!=o)continue;if(!ec(t,s))continue;const r=t.getFirstRange();if(r.containsRange(e,!0))return null;a=a[zx("0x48")](r[zx("0x144")])?a:r[zx("0x144")],x=x.isAfter(r[zx("0x6")])?x:r[zx("0x6")],i?r[zx("0x144")].isBefore(i[zx("0x57")]()[zx("0x144")])?(i[zx("0xb3")](),i=t):t[zx("0xb3")]():i=t}const c=this[zx("0x87")][zx("0x59")](a,x);if(i)this[zx("0x80")](i,c);else{const e=(0,t.uid)(),i=r.id;this[zx("0x13")]({id:e,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[zx("0x8e")]("formatInline:"+o,e,i,c)}}return null}[zx("0x7a")](e,n,o=[],s=null,r={}){n.formatGroupId||(n[zx("0x73")]=n[zx("0x8b")]),n[zx("0xb5")]=e.is(zx("0xcf")),s=s||$x(n);const i=o[zx("0x3")]((e=>Qx(e,this[zx("0x87")]))),a=e.is(zx("0xcf"))?e:Qx(e,this[zx("0x87")]);if(zx("0x4f")===this[zx("0x11f")]){const e=this[zx("0x70")][zx("0xc0")](zx("0x2f"),s,"accept");return this[zx("0xa1")]((()=>e([a],n,r))),null}i.push(a);let x=!0;for(const e of i)if(!this[zx("0x13a")](e)){x=!1;break}if(x&&zx("0xa8")!==this[zx("0x11f")]){const e=this[zx("0x70")][zx("0xc0")](zx("0x2f"),s,zx("0xc9"));return this[zx("0xa1")]((()=>e([a],n,r))),null}let c=null,l=a.start,d=a[zx("0x6")];for(const{suggestion:e,meta:t}of this[zx("0x124")](a,zx("0x2f"))){if(!t[zx("0x31")])continue;if(t.isNextTo||t[zx("0x36")]||t.isInsideObject)continue;if(e[zx("0xc3")][zx("0x73")]!=n.formatGroupId)continue;if(!ec(e,r))continue;const o=e.getFirstRange();if(e.subType==s){if(o.containsRange(a,!0))return null;l=l[zx("0x48")](o[zx("0x144")])?l:o[zx("0x144")],d=d[zx("0x102")](o[zx("0x6")])?d:o[zx("0x6")],c?o.start[zx("0x48")](c[zx("0x57")]()[zx("0x144")])?(c.removeMarkers(),c=e):e[zx("0xb3")]():c=e}else{const t=a[zx("0x140")](o);this[zx("0xf")](e,t)}}const u=this[zx("0x104")].plugins[zx("0xdd")](zx("0x7e")).me,g=(0,t.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[zx("0x87")][zx("0x59")](l,d)),c;{const e=this[zx("0x13")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(zx("0x79")+s,g,m,this[zx("0x87")][zx("0x59")](l,d)),e}}[zx("0xad")](e,n,o=[],s=null,r={}){n[zx("0x73")]||(n[zx("0x73")]=n[zx("0x8b")]);const i=e[0];n[zx("0xb5")]=i.is(zx("0xcf")),s=s||$x(n);const a=o[zx("0x3")]((e=>Qx(e,this[zx("0x87")]))),x=i.is(zx("0xcf"))?e:e[zx("0x3")]((e=>Qx(e,this[zx("0x87")])));if(zx("0x4f")===this[zx("0x11f")]){const e=this[zx("0x70")].getSuggestionCallback("formatBlock",s,zx("0xc9"));return this[zx("0xa1")]((()=>e(x,n,r))),null}a.push(...x);let c=!0;for(const e of a)if(!this._rangeIsInLocalUserInsertion(e)){c=!1;break}if(c&&"always"!==this[zx("0x11f")]){const e=this._suggestionFactory[zx("0xc0")](zx("0x2f"),s,zx("0xc9"));return this.forceDefaultExecution((()=>e(x,n,r))),null}const l=this[zx("0x104")][zx("0x67")][zx("0xdd")]("Users").me;for(const e of this[zx("0x131")]()){if(e[zx("0xf7")].id!=l.id)continue;if("formatBlock"!=e.type||e.data[zx("0x73")]!=n[zx("0x73")])continue;if(!ec(e,r))continue;const t=e.subType==s;for(let n=0;n<x[zx("0x5d")];n++){const o=x[n];for(const s of e[zx("0x84")]()){const r=s[zx("0x2a")]();if(o[zx("0x114")](r)){t?(x.splice(n,1),n--):e[zx("0x10")](s[zx("0x66")]);break}}}}if(0==x[zx("0x5d")])return null;const d=this._suggestionFactory[zx("0xc0")](zx("0x2f"),s,zx("0x44"));for(const e of this[zx("0x131")]())if(e[zx("0xf7")].id==l.id&&zx("0x2f")==e[zx("0xe")]&&e[zx("0xc3")][zx("0x73")]==n.formatGroupId&&e[zx("0xac")]==s&&ec(e,r)&&(d(e[zx("0xe0")](),x)||d(x,e[zx("0xe0")]()))){for(const t of x)e.addRange(t);return e}const u=(0,t.uid)(),g=l.id,m="formatBlock:"+s,f=this[zx("0x13")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const e of x)this._addSuggestionMarker(m,u,g,e,Zo[zx("0x7c")]());return f}[zx("0x11")](e,n=null,o={}){if(e.isCollapsed)return null;const s=this[zx("0x104")][zx("0x67")][zx("0xdd")]("Users").me,r=new i.LiveRange(e.start,e[zx("0x6")]);for(const{suggestion:e,meta:t}of this[zx("0x124")](r,zx("0x10f")))if(t[zx("0x31")]&&!t[zx("0x6a")])if(e[zx("0x130")]){const t=e[zx("0xe0")]()[zx("0x12d")]((e=>"$graveyard"!=e[zx("0x113")][zx("0xd9")]));if(t[zx("0x61")]((e=>r.containsRange(e,!0)))&&e[zx("0xc6")](),t.some((e=>e[zx("0xd2")](r,!0)))){const e=this[zx("0x70")][zx("0xc0")](zx("0x35"),n,zx("0xc9"));return this[zx("0xa1")]((()=>e([r],null,o))),null}}else{const t=r[zx("0x140")](e[zx("0x57")]());null!==t&&e[zx("0x8d")]([t],null,o)}if(r[zx("0xf4")](),r[zx("0x4a")]||zx("0xf6")==r.root.rootName)return null;let a=null,x=r[zx("0x144")],c=r[zx("0x6")];const l=this[zx("0x124")](r,zx("0x35"));for(const{suggestion:e,meta:t}of l){const n=this[zx("0x87")][zx("0x59")](x,c);if(t[zx("0x31")]&&(this._mergeNestedSuggestions||!t.containsRangeInObject&&!t.isInsideObject))if(e.isMultiRange){if(!ec(e,o))continue;let t=!0;for(const o of e[zx("0xe0")]()){if(o[zx("0xd2")](n,!0))return e;n[zx("0xd2")](o)||(t=!1)}t&&e.discard()}else{const t=e.getFirstRange();if(t.containsRange(n,!0))return e;if(!ec(e,o)){n[zx("0xd2")](t)?e.removeMarkers():t[zx("0x6d")](x)?x=t[zx("0x6")]:t[zx("0x6d")](c)&&(c=t.start);continue}x=x[zx("0x48")](t[zx("0x144")])?x:t.start,c=c.isAfter(t[zx("0x6")])?c:t[zx("0x6")],o=Object[zx("0xd7")]({},e[zx("0xe9")]),a?t.start[zx("0x48")](a[zx("0x57")]()[zx("0x144")])?(a.removeMarkers(),a=e):e[zx("0xb3")]():a=e}}if(a)return this._setSuggestionRange(a,this[zx("0x87")][zx("0x59")](x,c)),a;{const e=(0,t.uid)(),r=this[zx("0x87")][zx("0x59")](x,c),i=s.id,a=n?zx("0x4d")+n:"deletion",l=this[zx("0x13")]({id:e,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0x8e")](a,e,i,r),l}}[zx("0x13d")](e,n=zx("0x132"),o={}){const s=this[zx("0x104")][zx("0x67")][zx("0xdd")]("Users").me,r=e[zx("0x3")]((e=>new i.LiveRange(e.start,e.end))),a=new Set;for(const{suggestion:e,meta:t}of this[zx("0x124")](r,"insertion"))t.isOwn&&!t[zx("0x6a")]&&a[zx("0x3b")](e);for(const t of a)if(t.isMultiRange){const s=t[zx("0xe0")]();if((!t.attributes||!t[zx("0xe9")][zx("0x119")])&&s.every((e=>r.some((t=>t.containsRange(e,!0)))))&&t[zx("0xc6")](),r.every((e=>s[zx("0x88")]((t=>t[zx("0xd2")](e,!0)))))){const t=this[zx("0x70")][zx("0xc0")]("deletion",n,zx("0xc9"));return this[zx("0xa1")]((()=>t(e,null,o))),null}}else{const e=t.getFirstRange();if(r[zx("0x88")]((t=>t[zx("0xd2")](e,!0)))&&t.discard(),r.every((t=>e[zx("0xd2")](t,!0)))){const e=this[zx("0x70")][zx("0xc0")](zx("0x35"),n,zx("0xc9"));return this.forceDefaultExecution((()=>e(r,null,o))),null}}const x=this[zx("0x70")][zx("0xc0")](zx("0x35"),n,zx("0x44"));let c=null;for(const e of this[zx("0x131")]())if(e[zx("0xf7")].id==s.id&&e[zx("0xd4")]&&zx("0x35")==e[zx("0xe")]&&e.subType==n&&ec(e,o)&&(x(e.getRanges(),r)||x(r,e[zx("0xe0")]())))if(c){if(e[zx("0xd8")]&&e[zx("0xd8")][zx("0x5d")])continue;for(const t of e.getRanges())c.isIntersectingWithRange(t)||c[zx("0x6f")](t);e.removeMarkers()}else{c=e;for(const t of r)e[zx("0xe8")](t)||e[zx("0x6f")](t)}if(c)return c;a[zx("0x55")]();for(const{suggestion:e,meta:t}of this._findSuggestions(r,"deletion"))t[zx("0x31")]&&(this._mergeNestedSuggestions||!t.containsRangeInObject&&!t.isInsideObject)&&ec(e,o)&&a[zx("0x3b")](e);for(const e of a){const t=e.getRanges();if((!o||!o[zx("0x119")])&&r[zx("0x61")]((e=>t[zx("0x88")]((t=>t[zx("0xd2")](e,!0))))))return e;(!e[zx("0xe9")]||!e.attributes[zx("0x119")])&&t[zx("0x61")]((e=>r[zx("0x88")]((t=>t.containsRange(e,!0)))))&&e.discard()}const l=(0,t.uid)(),d=s.id,u=zx("0x4d")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const e of r)e[zx("0xf4")](),e[zx("0x4a")]||zx("0xf6")==e[zx("0x113")][zx("0xd9")]||this[zx("0x8e")](u,l,d,e,Zo[zx("0x7c")]());return g}[zx("0x80")](e,t){const n=e[zx("0x101")]();this[zx("0x87")][zx("0xe2")]((e=>{e[zx("0x99")](n,{range:t})}))}[zx("0x65")](e){const t=e.id,n=this[zx("0x104")][zx("0x25")][zx("0xdd")]("collaboration.channelId");this._commentsRepository[zx("0x117")](t)||this[zx("0xe7")][zx("0x54")]({channelId:n,threadId:t,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[zx("0x58")](t);o[zx("0x13b")]("isRemovable"),o[zx("0x10e")]=!1,e.commentThread=o}[zx("0x123")](e,n,o,s){if(e.type!=n||e[zx("0xac")]!=o||e[zx("0x5")].id!=s)throw this[zx("0x104")].enableReadOnlyMode(zx("0xf9")),new t.CKEditorError(zx("0xf9"),this)}[zx("0xf")](e,n){const o=e[zx("0x57")]();if(n[zx("0x114")](o))e[zx("0xb3")]();else if(o[zx("0xd2")](n)){const s=this[zx("0x87")][zx("0x126")](n.start[zx("0x100")],zx("0x6"));this._setSuggestionRange(e,this[zx("0x87")][zx("0x59")](o[zx("0x144")],s));const r=(0,t.uid)(),i=e[zx("0x5")].id,a=e.type+":"+e.subType;this[zx("0x13")]({id:r,type:a,createdAt:new Date,authorId:i,data:e[zx("0xc3")],attributes:e[zx("0xe9")]});const x=this._model[zx("0x126")](n[zx("0x6")].parent,zx("0xf1")),c=this[zx("0x87")][zx("0x59")](x,o[zx("0x6")]);this[zx("0x8e")](a,r,i,c)}else if(o[zx("0x6d")](n[zx("0x144")])){const t=this[zx("0x87")].createPositionAt(n[zx("0x144")][zx("0x100")],zx("0x6"));this[zx("0x80")](e,this[zx("0x87")][zx("0x59")](o[zx("0x144")],t))}else{const t=this._model[zx("0x126")](n[zx("0x6")][zx("0xde")],zx("0xf1"));this[zx("0x80")](e,this[zx("0x87")][zx("0x59")](t,o[zx("0x6")]))}}_rangeIsInLocalUserInsertion(e){for(const{suggestion:t,meta:n}of this[zx("0x124")](e,zx("0x10f"))){if(!n[zx("0x31")])continue;const o=t.getRanges();for(const t of o)if(!e[zx("0x4c")](t)[zx("0x5d")])return!0}return!1}_getAuthorFromId(e){const n=this[zx("0x104")][zx("0x67")][zx("0xdd")](zx("0x7e"))[zx("0x29")](e);if(!n)throw new t.CKEditorError(zx("0xf5"),this);return n}[zx("0x3c")](e){const t=this[zx("0x104")].plugins[zx("0xdd")]("Users"),n=(0,r.hashObject)(zx("0xb2")+e);return t[zx("0x29")](n)||t[zx("0x13e")]({id:n,name:e})}[zx("0x141")](e,t,n,o,s){const r=this[zx("0x129")](o),i=this._suggestionFactory[zx("0x1c")](e,t,n,r,s,(e=>this[zx("0x6c")](n,{attributes:e})));return this[zx("0xab")](i,"accept",(()=>{this[zx("0x6c")](n,{state:zx("0x11c")})}),{priority:zx("0x6b")}),this[zx("0xab")](i,"discard",(()=>{this[zx("0x6c")](n,{state:zx("0xea")})}),{priority:zx("0x6b")}),this[zx("0x10a")][zx("0xbb")](n,i),this[zx("0x111")][zx("0xbb")](i,zx("0xc4")),i}[zx("0x34")](e){const t=e[zx("0x9d")](":");return{group:t[0],type:t[1],subType:t[zx("0x5d")]>=5?t[2]:null,id:t.length<5?t[2]:t[3],authorId:t[zx("0x5d")]<5?t[3]:t[4],markerCount:6==t[zx("0x5d")]?t[5]:null}}_breakSuggestionMarker(e,n,o){const s=e[zx("0x57")](),r=s.start,i=s[zx("0x6")];this._setSuggestionRange(e,this[zx("0x87")].createRange(r,n));const a=(0,t.uid)(),x=e[zx("0x5")].id,c=e[zx("0xe")]+(e[zx("0xac")]?":"+e[zx("0xac")]:"");this._setSuggestionData({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:e.id,attributes:e[zx("0xe9")],data:e[zx("0xc3")]}),zx("0x2f")==e[zx("0xe")]&&(o=this[zx("0x87")].createPositionBefore(o.parent)),this[zx("0x8e")](c,a,x,this[zx("0x87")][zx("0x59")](o,i))}[zx("0x124")](e,t=null){const n=[],o=this[zx("0x104")][zx("0x67")][zx("0xdd")]("Users").me;Array[zx("0x137")](e)||(e=[e]);for(const s of this.getSuggestions()){if(!s.isInContent)continue;if(t&&s[zx("0xe")]!=t)continue;let r=!1;for(const t of s[zx("0xe0")]()){for(const i of e){const e=i[zx("0x144")][zx("0x114")](t.end)||i[zx("0x6")][zx("0x114")](t[zx("0x144")]);if(e||i[zx("0x140")](t)){const a=i[zx("0xd2")](t)&&Kx(this[zx("0x87")][zx("0x9a")],t[zx("0x144")],i),x=t.containsRange(i)&&Kx(this[zx("0x87")][zx("0x9a")],i[zx("0x144")],t);n.push({suggestion:s,meta:{isOwn:o==s[zx("0xf7")],isNextTo:e,isInsideObject:a,containsRangeInObject:x}}),r=!0;break}}if(r)break}}return n}[zx("0x8e")](e,t,n,o,s){this[zx("0x87")][zx("0xe2")]((r=>{let i="suggestion:"+e+":"+t+":"+n;s&&(i=i+":"+s),r[zx("0x133")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(e){const t=e[zx("0x5b")],n=e[zx("0x108")];e.previous=null,null!=t&&(t[zx("0x108")]=null),e[zx("0x108")]=null,null!=n&&(n[zx("0x5b")]=null),zx("0x5e")==this[zx("0x111")][zx("0xdd")](e)&&(this[zx("0x111")][zx("0xbb")](e,"removed"),this[zx("0x138")](zx("0x3e"),e,t,n))}_setSuggestionData(e){const n=e.id,o=this[zx("0x13f")](e);if(this[zx("0x4e")]&&this[zx("0x4e")][zx("0x68")]){const s=this[zx("0x104")][zx("0x67")].get("PendingActions"),r=o.hasComments,i=o[zx("0xac")]?o[zx("0xe")]+":"+o.subType:o[zx("0xe")],a=this[zx("0x104")][zx("0xb1")],x=s[zx("0x3b")](Yo(a,zx("0xa3"))),c={id:n,type:i,hasComments:r,data:e[zx("0xc3")]||null,originalSuggestionId:e[zx("0x120")]||null,attributes:o[zx("0xe9")]};this[zx("0x4e")][zx("0x68")](c).then((e=>{o[zx("0x9b")]=!0,s[zx("0xd1")](x),e&&e[zx("0x69")]&&(this[zx("0x10a")][zx("0xdd")](n)[zx("0x69")]=e[zx("0x69")])}))[zx("0xe5")]((e=>{throw(0,t.logWarning)(zx("0x115")),this[zx("0x104")][zx("0x9e")][zx("0x63")]({isUndoable:!1},(()=>{o[zx("0xc6")]()})),o[zx("0xc8")](),this[zx("0x10a")][zx("0x1a")](o.id),this[zx("0x111")][zx("0x1a")](o),e}))}return o}[zx("0x6c")](e,t){const n=this.editor[zx("0x67")][zx("0xdd")]("PendingActions"),o=this[zx("0x136")](e);if(this._adapter&&this[zx("0x4e")][zx("0xb0")])if(o[zx("0x9b")]){const o=n[zx("0x3b")](Yo(this.editor[zx("0xb1")],zx("0xa3")));this[zx("0x4e")][zx("0xb0")](e,t)[zx("0x98")]((()=>{n[zx("0xd1")](o)}))}else o.on(zx("0x43"),(()=>{this._updateSuggestionData(e,t)}))}[zx("0x75")](e){if(!this[zx("0x4e")]||!this[zx("0x4e")][zx("0x136")])throw new t.CKEditorError(zx("0xb9"),this);return this[zx("0x4e")][zx("0x136")](e)}_handleNewSuggestionMarker(e){const{id:t,type:n,subType:o,authorId:s}=this[zx("0x34")](e),r=this[zx("0x10a")][zx("0xdd")](t)||this[zx("0x141")](n,o,t,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[zx("0x111")][zx("0xdd")](r)){case zx("0xc4"):this[zx("0x75")](t)[zx("0x98")]((e=>{let n=Promise[zx("0xf8")]();e[zx("0xed")]&&(n=this[zx("0xe7")][zx("0x28")]({channelId:this[zx("0x104")][zx("0x25")][zx("0xdd")](zx("0x96")),threadId:t})),n[zx("0x98")]((()=>{this[zx("0x13f")](e)[zx("0x9b")]=!0}))})),this[zx("0x111")][zx("0xbb")](r,zx("0x38"));break;case zx("0x128"):this[zx("0x6c")](t,{state:"open"});case zx("0x5c"):this._suggestionState[zx("0xbb")](r,zx("0x5e")),this.fire(zx("0x10d"),r);break;case zx("0x5e"):this.fire("suggestionChanged",r)}return r[zx("0x40")](e),r}[zx("0xcb")](e){const t=Array[zx("0xeb")](e)[zx("0x12d")]((e=>!e.isMultiRange)),n=this.getSuggestions({skipNotAttached:!0}).filter((e=>!e.isMultiRange)),o=n[zx("0x12d")]((t=>!e[zx("0x142")](t))),s=new Map(n[zx("0x3")]((e=>[e,this[zx("0x70")].getSuggestionCallback(e[zx("0xe")],e.subType,zx("0x122"))]))),r=new Map(n[zx("0x3")]((e=>[e,e[zx("0x57")]()]))),i=new Set,a=new Set;for(let e=0;e<t[zx("0x5d")];e++)x(t[e],t,e+1);for(let e=0;e<t[zx("0x5d")];e++)x(t[e],o,0);for(let e=0;e<t[zx("0x5d")];e++){const n=t[e];!a[zx("0x142")](n)&&n[zx("0x5b")]&&(n[zx("0x5b")][zx("0x108")]===n&&(n[zx("0x5b")][zx("0x108")]=null),n[zx("0x5b")]=null),!i.has(n)&&n.next&&(n[zx("0x108")][zx("0x5b")]===n&&(n.next[zx("0x5b")]=null),n.next=null)}function x(e,t,n){for(let o=n;o<t.length;o++){const n=c(e,t[o]);n&&(n[0][zx("0x108")]=n[1],n[1].previous=n[0],i[zx("0x3b")](n[0]),a.add(n[1]))}}function c(e,t){if(e.author.id!==t[zx("0xf7")].id)return null;const n=s[zx("0xdd")](e)(e,t,r[zx("0xdd")](e),r.get(t));return n&&s.get(t)(e,t,r.get(e),r[zx("0xdd")](t))?n[1].commentThread&&n[1].commentThread[zx("0x5d")]?null:n:null}}_joinWithAdjacentSuggestions(e){const t=Array.from(e),n=this[zx("0x131")]({skipNotAttached:!0}),o=n.filter((t=>!e[zx("0x142")](t))),s=new Map(t.map((e=>[e,this[zx("0x70")][zx("0xc0")](e[zx("0xe")],e.subType,zx("0x44"))]))),r=new Map(n[zx("0x3")]((e=>[e,e[zx("0xe0")]()])));for(let e=0;e<t.length;e++)if(i(this,t[e],t,e+1))return!0;for(let e=0;e<t[zx("0x5d")];e++)if(i(this,t[e],o,0))return!0;return!1;function i(e,t,n,o){for(let i=o;i<n[zx("0x5d")];i++){const o=n[i];if(o[zx("0xe")]!==t[zx("0xe")]||o[zx("0xf7")].id!==t[zx("0xf7")].id||o.subType!==t[zx("0xac")])continue;if(!Yx(t,o))continue;const a=s[zx("0xdd")](t),x=r[zx("0xdd")](t),c=r[zx("0xdd")](o),l=t[zx("0xd8")]&&t[zx("0xd8")][zx("0x5d")],d=o[zx("0xd8")]&&o[zx("0xd8")][zx("0x5d")];if(!l&&a(c,x))return e[zx("0xb8")](o,t),r[zx("0x1a")](t),!0;if(!d&&a(x,c))return e[zx("0xb8")](t,o),r[zx("0x1a")](o),!0}return!1}}_joinSuggestions(e,t){if(e[zx("0x130")])for(const n of t[zx("0xe0")]())e[zx("0x6f")](n);else{const n=t[zx("0x57")]()[zx("0x6")];this[zx("0x80")](e,this[zx("0x87")][zx("0x59")](e[zx("0x57")]()[zx("0x144")],n))}t[zx("0xb3")]()}}class Vx{constructor(e){this._editor=e,this._model=e[zx("0x9e")],this._customCallbacks=new Map,this[zx("0xfe")]=new Map,this[zx("0x32")]()}[zx("0x1c")](e,t,n,o,s,r){return new Zo(this[zx("0x87")],{type:e,subType:t,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(e,t,zx("0xc9"))(...n),onDiscard:(...n)=>this[zx("0xc0")](e,t,zx("0xc6"))(...n)})}registerCustomCallback(e,t,n,o){const s=e+":"+t+":"+n;this[zx("0x72")][zx("0xbb")](s,o)}getSuggestionCallback(e,t,n){const o=e+":"+t+":"+n;return this._customCallbacks[zx("0xdd")](o)||this[zx("0xfe")][zx("0xdd")](e+":"+n)}_registerDefaultCallbacks(){const e=()=>!1,t=e=>{e[zx("0xa9")](((e,t)=>e.start[zx("0x48")](t[zx("0x144")])?1:-1)),this[zx("0x87")].change((t=>{for(const n of e){let e;e=n[zx("0x6")][zx("0x21")]&&n[zx("0x6")][zx("0xde")]==n[zx("0x144")][zx("0xe1")]?t[zx("0x93")](n.start[zx("0xe1")],"on"):t[zx("0x93")](n),this._model[zx("0x139")](e,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(e,t)=>{this[zx("0x87")].change((n=>{const{commandName:o,commandParams:s=[]}=t,r=e[zx("0x3")]((e=>(qx(e)&&(e=this[zx("0x87")][zx("0x59")](e[zx("0x6")])),e))).filter((e=>zx("0xf6")!==e[zx("0x113")][zx("0xd9")]));if(r.length<1)return;const a=Array[zx("0xeb")](this[zx("0x87")][zx("0x121")][zx("0x94")].getRanges())[zx("0x3")]((e=>i.LiveRange[zx("0x7f")](e)));n[zx("0xb4")](r);for(const e of this._editor.commands[zx("0x12e")]())e[zx("0xb6")]();s[zx("0xdc")]({forceDefaultExecution:!0}),this._editor[zx("0x9")](o,...s);const x=a[zx("0x12d")]((e=>zx("0xf6")!=e[zx("0x113")][zx("0xd9")]));x[zx("0x5d")]>0&&n[zx("0xb4")](x);for(const e of a)e[zx("0xf4")]()}))},o=(e,t)=>1==e[zx("0x5d")]&&1==t[zx("0x5d")]&&e[0].end[zx("0x114")](t[0].start),s=(e,t,n,o)=>Zx(e,t,n,o,this._model)?[e,t]:Zx(t,e,o,n,this[zx("0x87")])?[t,e]:null;this[zx("0xfe")][zx("0xbb")](zx("0xf3"),e),this[zx("0xfe")][zx("0xbb")](zx("0xdf"),t),this[zx("0xfe")].set(zx("0x76"),o),this[zx("0xfe")][zx("0xbb")]("insertion:chain",s),this[zx("0xfe")][zx("0xbb")](zx("0xec"),t),this._defaultCallbacks[zx("0xbb")](zx("0x118"),e),this._defaultCallbacks.set("deletion:join",o),this._defaultCallbacks[zx("0xbb")](zx("0x11a"),s),this._defaultCallbacks[zx("0xbb")](zx("0x8"),n),this[zx("0xfe")][zx("0xbb")](zx("0xda"),e),this._defaultCallbacks.set(zx("0x82"),o),this[zx("0xfe")][zx("0xbb")](zx("0x81"),e),this._defaultCallbacks[zx("0xbb")]("formatBlock:accept",n),this[zx("0xfe")][zx("0xbb")](zx("0x83"),e),this[zx("0xfe")][zx("0xbb")](zx("0x12a"),o),this[zx("0xfe")].set(zx("0x110"),e)}}function Kx(e,t,n){for(const o of t.parent[zx("0x41")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[zx("0x92")](o))return!1;if(e[zx("0x12b")](o)||e[zx("0x146")](o))return!0}return!1}function qx(e){return e.end[zx("0xde")]==e.start[zx("0xe1")]&&e.end[zx("0xb")]}function Xx(e,t,n,o){const s=e=>!e[zx("0xa5")].is(zx("0x90"))&&!o[zx("0x12b")](e.item),r=e[zx("0x144")][zx("0x97")](s),i=e[zx("0x6")][zx("0x97")](s,{direction:"backward"});return!(e.start[zx("0x114")](r)&&e.end[zx("0x114")](i)||(r[zx("0x48")](i)?n[zx("0x99")](t,{range:n[zx("0x59")](r,i)}):n[zx("0x10")](t),0))}function $x(e){return(0,r.hashObject)(e)}function Jx(e){const t=e[zx("0x144")].nodeAfter;return t&&t.is("element")}function Qx(e,t){const n=t.schema[zx("0x12b")](e)||t[zx("0x9a")][zx("0x27")](e);return t[zx("0x59")](t[zx("0x126")](e,zx("0xff")),n?t.createPositionAfter(e):t.createPositionAt(e,zx("0x6")))}function Zx(e,t,n,o,s){if(!Yx(e,t))return!1;if(n[zx("0x6")][zx("0x114")](o.start))return!0;if(e[zx("0xe")]!=t[zx("0xe")])return!1;if(!n.end[zx("0xa2")](o.start))return!1;const r=s.createRange(n[zx("0x6")],o[zx("0x144")])[zx("0x107")]();for(const e of r)if([zx("0x10c"),"elementEnd"].includes(e[zx("0xe")])&&s.schema[zx("0x146")](e.item))return!1;return!0}function Yx(e,t){return!(!e._isDataLoaded||!t._isDataLoaded)&&Go(e.attributes,t[zx("0xe9")])}function ec(e,t){const n=tc(e[zx("0xe9")]),o=tc(t);if(!e[zx("0x11e")])return!1;for(const e of Object[zx("0x2d")](o))if(!Go(n[e],o[e]))return!1;return!0}function tc(e){const t=Object[zx("0xd7")]({},e);return delete t[zx("0x119")],delete t[zx("0x3d")],t}const nc=["destroy","unbind","get","_editor","_pendingAction","PendingActions","commands","stopListening","getRanges","remove","isEnabled","canAccept","_acceptCommand","canDiscard","bind","commentThreadController","add","discardSuggestion","acceptSuggestion","model","_discardCommand","execute","PENDING_ACTION_SUGGESTION","_removePendingAction","listenTo","locale","isDirty","view","_setPendingAction","plugins"];var oc,sc;oc=nc,sc=480,function(e){for(;--e;)oc.push(oc.shift())}(++sc);const rc=function(e,t){return nc[e-=0]};class ic extends((0,t.ObservableMixin)()){constructor(e,t,n,o){super(),this[rc("0x13")]=t,this.view=n,this.commentThreadController=o,this._editor=e,this[rc("0xc")]=e[rc("0x6")][rc("0x2")]("acceptSuggestion"),this[rc("0x14")]=e[rc("0x6")][rc("0x2")](rc("0x11")),this.view[rc("0xe")](rc("0xa")).to(this._acceptCommand,this._discardCommand,((e,t)=>e||t)),this.view[rc("0xe")]("canAccept").to(this[rc("0xc")],"isEnabled",(e=>e&&this[rc("0x3")][rc("0x13")].canEditAt(t[rc("0x8")]()))),this[rc("0x1b")][rc("0xe")]("canDiscard").to(this[rc("0x14")],rc("0xa"),(e=>e&&this[rc("0x3")].model.canEditAt(t[rc("0x8")]()))),this[rc("0x4")]=null,n[rc("0x1a")]&&this._setPendingAction(),this.listenTo(n,"acceptSuggestion",(()=>this[rc("0x12")]())),this[rc("0x18")](n,rc("0x11"),(()=>this.discardSuggestion())),this.listenTo(n,"change:isDirty",(()=>{n[rc("0x1a")]?this[rc("0x1c")]():this[rc("0x17")]()}))}[rc("0x12")](){this[rc("0xc")][rc("0x15")](this[rc("0x13")].id)}[rc("0x11")](){this[rc("0x14")].execute(this[rc("0x13")].id)}[rc("0x0")](){this.view[rc("0x1")](rc("0xa")),this[rc("0x1b")][rc("0x1")](rc("0xb")),this[rc("0x1b")][rc("0x1")](rc("0xd")),this[rc("0x7")](),this[rc("0xf")][rc("0x0")](),this[rc("0x4")]&&this[rc("0x17")]()}[rc("0x1c")](){const e=Yo(this[rc("0x3")][rc("0x19")],rc("0x16"));this[rc("0x4")]=this[rc("0x3")][rc("0x1d")][rc("0x2")]("PendingActions")[rc("0x10")](e)}_removePendingAction(){null!==this._pendingAction&&this[rc("0x3")][rc("0x1d")][rc("0x2")](rc("0x5"))[rc("0x9")](this[rc("0x4")]),this[rc("0x4")]=null}}const ac=["addComment","_localUser","_config","set","destroy","isActive","locale","commentsListView","delegate","isEnabled","_model","bind","commentThreadInputView","commentThread","fire","submit","removeComment","canAccept","_createCommentViews","isReadOnly","value","showInput","isDirty","commentInputView","_createCommentThreadInputView","hasDirtyComment","cancel","assign","authoredAt","updateComment","focus","editorConfig","length"];var xc,cc;xc=ac,cc=445,function(e){for(;--e;)xc.push(xc.shift())}(++cc);const lc=function(e,t){return ac[e-=0]};class dc extends s.View{constructor(e,t,n,o){super(e),this.commentsListView=null,this.commentThreadInputView=null,this[lc("0x14")](lc("0x16"),!1),this[lc("0x14")](lc("0xc"),t[lc("0xc")]),this.bind(lc("0xc")).to(t),this[lc("0x14")]("descriptionParts",[]),this.set(lc("0x6"),!1),this.set(lc("0x1a"),!1),this[lc("0x14")](lc("0x1"),!1),this.set("canDiscard",!1),this[lc("0x1b")]=t,this[lc("0x12")]=n,this[lc("0x13")]=o,o.disableComments?this[lc("0x14")](lc("0x10"),1):this[lc("0x2")]()}focus(){this.element[lc("0xe")]()}[lc("0x15")](){this[lc("0x18")]&&this[lc("0x18")][lc("0x15")](),this.commentThreadInputView&&this[lc("0x1d")][lc("0x15")](),super[lc("0x15")]()}[lc("0x2")](){const{CommentsListView:e}=this[lc("0x13")];this[lc("0x18")]=new e(this[lc("0x17")],this[lc("0x1b")][lc("0x1e")],Object[lc("0xb")]({CommentView:this._config.CommentView},this[lc("0x13")])),this[lc("0x18")][lc("0x19")]("removeComment").to(this),this[lc("0x18")][lc("0x19")](lc("0xd")).to(this),this[lc("0x18")].bind(lc("0x16")).to(this),this.set(lc("0x10"),this[lc("0x18")].length+1),this[lc("0x1c")](lc("0x10")).to(this[lc("0x18")],lc("0x10"),(e=>e+1)),this[lc("0x1d")]=this[lc("0x8")](),this.on(lc("0x0"),(()=>this[lc("0xe")]())),this[lc("0x1c")](lc("0x6")).to(this[lc("0x18")],lc("0x9"),this[lc("0x1d")][lc("0x7")],lc("0x4"),((e,t)=>e||!!t))}[lc("0x8")](){const{CommentThreadInputView:e}=this[lc("0x13")],t=new e(this.locale,this[lc("0x12")],this[lc("0x13")][lc("0xf")]),n=t.commentInputView;return t[lc("0x1c")](lc("0x5")).to(this,lc("0x16"),this._model[lc("0x1e")],lc("0x3"),n,lc("0x4"),((e,t,n)=>!!n||e&&!t)),n.on(lc("0x20"),((e,t)=>{this[lc("0x1f")](lc("0x11"),t),n.editor.setData("")})),n.on(lc("0xa"),(()=>this[lc("0xe")]())),n[lc("0x1c")]("disabledSubmit").to(this[lc("0x1b")][lc("0x1e")],lc("0x3")),t}}const uc=["ck-suggestion--disabled-comments","ck-annotation__actions","title","div","ck-suggestion--discard","acceptButton","commentsListView","Accept suggestion","source","bindTemplate","bind","acceptSuggestion",'" title="',"color","render","userView","isExternal","editorReady","_descriptionElement","querySelector","ck-annotation__content-wrapper","ck-comment__external","editorDestroyed","</p>","description","delegate","authoredAt","getExternalSuggestionNote","formatDateTime","attributes","disableComments","ck-annotation","creator","getUserViewNotificationText","EXTERNAL_AVATAR","split","change:description","<p>","name","setTemplate","children","ck-annotation__info-time","locale","importWord","value",'<span class="ck-suggestion-type">',"innerHTML","push","ck-suggestion-wrapper--active","_config","execute","isEnabled","EXTERNAL_SUGGESTION","extendTemplate","descriptionParts","createElement","_model","ck-annotation__info","cancel","_createButton",".ck-annotation__content-wrapper","@external",'"></span>',"set","element","map","isActive","discardButton","canDiscard","ck-annotation__info-name","ck-suggestion","join","getTemplate","ck-suggestion__user","EXTERNAL_IMPORT_WORD_AVATAR","ck-annotation__user","author","ck-suggestion__info","check","ck-suggestion-","type","ck-suggestion__main","commentThreadInputView","span","ck-annotation__main","commentThread","ck-comment__info-time"];var gc,mc;gc=uc,mc=166,function(e){for(;--e;)gc.push(gc.shift())}(++mc);const fc=function(e,t){return uc[e-=0]};class hc extends dc{constructor(t,n,o,s){super(t,n,o,s),this[fc("0x47")](fc("0x1"),""),this[fc("0x12")](fc("0x1")).to(this,fc("0x3e"),(e=>e&&e[0]?e[0][fc("0x1")]:"")),this[fc("0x12")](fc("0x20")).to(this,fc("0x3e"),this,fc("0x4a"),((e,t)=>{let n="";for(const t of e)n+=fc("0x2d")+pc(t.content,t[fc("0x15")])+fc("0x1f");return t?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[fc("0xd")]=this[fc("0x43")](Yo(t,fc("0xf")),e.icons[fc("0x56")],"ck-suggestion--accept",fc("0x13"),"sw"),this[fc("0xd")][fc("0x12")](fc("0x3b")).to(this,"canAccept"),this.discardButton=this._createButton(Yo(t,"Discard suggestion"),e.icons[fc("0x42")],fc("0xc"),"discardSuggestion","sw"),this[fc("0x4b")][fc("0x12")](fc("0x3b")).to(this,fc("0x4c")),this[fc("0x17")]=new r.UserView(t,this[fc("0x40")][fc("0x54")],this[fc("0x29")]()),this.userView.extendTemplate({attributes:{class:[fc("0x51"),fc("0x53")]}}),this[fc("0x2f")](this.getTemplate())}[fc("0x50")](){const e=this[fc("0x11")],t=[{tag:fc("0xb"),attributes:{class:[fc("0x55"),fc("0x41")]},children:[{tag:fc("0x4"),children:[{text:this.userView[fc("0x2e")]}],attributes:{class:["ck-suggestion__info-name",fc("0x4d")]}},{tag:"time",attributes:{datetime:e.to(fc("0x22")),class:[fc("0x7"),fc("0x31")]},children:[{text:e.to(fc("0x22"),(e=>this[fc("0x39")][fc("0x24")](e)))}]}]},{tag:fc("0xb"),attributes:{class:["ck-suggestion__actions",fc("0x9")]},children:[this[fc("0xd")],this.discardButton]},{tag:fc("0xb"),attributes:{class:[fc("0x1c")]}}];this._model[fc("0x18")]&&t.push({tag:fc("0xb"),attributes:{class:[fc("0x1d")]},children:[{text:this[fc("0x23")]()}]});const n={tag:fc("0xb"),attributes:{class:["ck-suggestion-wrapper",e.if(fc("0x4a"),fc("0x38")),e.to(fc("0x1"),(e=>fc("0x0")+e)),this[fc("0x39")][fc("0x26")]&&fc("0x8")],"data-suggestion-id":this._model.id,"data-thread-id":this[fc("0x40")][fc("0x6")].id,"data-author-id":this[fc("0x40")][fc("0x54")].id,tabindex:-1},children:[{tag:fc("0xb"),attributes:{class:[fc("0x4e"),fc("0x27")]},children:[this.userView,{tag:fc("0xb"),attributes:{class:[fc("0x2"),fc("0x5")]},children:t}]}]};return this[fc("0xe")]&&this.commentThreadInputView&&(n[fc("0x30")][fc("0x37")](this[fc("0xe")],this[fc("0x3")]),this[fc("0xe")][fc("0x21")](fc("0x19")).to(this),this.commentsListView[fc("0x21")]("editorDestroyed").to(this),this[fc("0x3")][fc("0x21")](fc("0x19")).to(this),this[fc("0x3")].delegate(fc("0x1e")).to(this)),n}[fc("0x16")](){super.render(),this._descriptionElement=this[fc("0x48")][fc("0x1b")](fc("0x44")),this[fc("0x1a")][fc("0x36")]=this[fc("0x20")],this.on(fc("0x2c"),((e,t,n)=>{this[fc("0x1a")][fc("0x36")]=n}))}[fc("0x43")](e,t,n,o,r){const i=new s.ButtonView(this.locale);return i[fc("0x47")]({label:e,icon:t,tooltip:!0,tooltipPosition:r}),i[fc("0x3d")]({attributes:{class:n}}),i.on(fc("0x3a"),(()=>{this.fire(o,this[fc("0x40")].id)})),i}[fc("0x23")](){return"importWord"===this[fc("0x40")].attributes[fc("0x45")].source?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[fc("0x32")],fc("0x3c"))}[fc("0x29")](){return this[fc("0x40")][fc("0x18")]?fc("0x33")===this[fc("0x40")][fc("0x25")][fc("0x45")][fc("0x10")]?Yo(this.locale,fc("0x52"),this[fc("0x40")][fc("0x28")][fc("0x2e")]):Yo(this[fc("0x32")],fc("0x2a"),this[fc("0x40")].creator[fc("0x2e")]):null}}function pc(e,t){let n="";return n+=e[fc("0x2b")]("*")[fc("0x49")](((e,t)=>t%2!=0?fc("0x35")+bc(e)+"</span>":bc(e)))[fc("0x4f")](""),t&&(n+='<span class="ck-suggestion-color" style="background-color: '+t[fc("0x34")]+fc("0x14")+t[fc("0xa")]+fc("0x46")),n}function bc(e){const t=document[fc("0x3f")](fc("0x4"));return t.innerText=e,t[fc("0x36")]}const Ec=["filter","_annotationViews","toMany","has","delete","suggestionChanged","Discard all selected suggestions","map","isInContent","SuggestionThreadView","view","suggestionUnloaded","isEnabled","getSuggestion","trackChanges","_updateController","arrowView","Annotations","Track changes","type","button","addComment","_viewToController","lowest","getJoined","innerView","values","get","destroy","requires","_refreshActiveMarkers","buttonView","_createUIButton","locale","set","_descriptionFactory","commandName","descriptionParts","focus","trackChanges.disableComments","switchbutton","length","getAllAdjacentSuggestions","commentThread","Discard all suggestions","isDirty","discardSelectedSuggestions","getMarkers","activeMarkers","Accept all selected suggestions","listenTo","_suggestionToController","add","commands","value","init","_handleControllerBuffer","model","reduce","bind","comments.maxCommentCharsWhenCollapsed","Accept all suggestions","_disableComments","getFirstRange","getRanges","getDescriptions","suggestionLoaded","addSourceCollector","change:activeAnnotations","getMarkerNames","discardAllSuggestions","TrackChangesEditing","editor","_bindAnnotationToEditors","trackChanges.SuggestionThreadView","CommentView","previous","CommentsUI","getByInnerView","hasSuggestion","change:previous","registerAnnotation","_unbindEditors","createAnnotationView","pluginName","size","EditorAnnotations","createCommentThreadController","isMultiRange","execute","_destroyController","mainView","acceptSelectedSuggestions","remove","acceptButton","actionView","isOn","config","push","editing","head","createAnnotation","CommentsRepository","from","acceptAllSuggestions","refreshSelectedViews","activeAnnotations","_initializeController","plugins","_handleSuggestionControllerDelayed"];var _c,Tc;_c=Ec,Tc=127,function(e){for(;--e;)_c.push(_c.shift())}(++Tc);const Cc=function(e,t){return Ec[e-=0]};class yc extends e.Plugin{static get[Cc("0xc")](){return[Wx,r.Users,Cc("0x55"),"Annotations",Cc("0x45")]}static get[Cc("0x43")](){return"TrackChangesUI"}constructor(e){super(e),this._suggestionToController=new Map,this[Cc("0x5")]=new Map,this._annotationViews=new Map,this[Cc("0x27")]=new Map;const t=this.editor[Cc("0x50")];t.define(Cc("0x39"),hc),t.define(Cc("0x16"),!1),this[Cc("0x2d")]=t[Cc("0xa")](Cc("0x16"))}[Cc("0x5c")](e,t){0===this._handleControllerBuffer[Cc("0x44")]&&setTimeout((()=>{for(const[e,t]of this._handleControllerBuffer){const n=this._suggestionToController[Cc("0x60")](e);n||t?n&&t&&this[Cc("0x49")](e):this[Cc("0x5a")](e)}this[Cc("0x37")][Cc("0x5b")][Cc("0xa")]("EditorAnnotations")[Cc("0x58")](),this[Cc("0xd")](),this[Cc("0x27")].clear()}),10),this[Cc("0x27")][Cc("0x11")](e,t)}[Cc("0x26")](){const e=this.editor,t=e[Cc("0x5b")][Cc("0xa")]("TrackChangesEditing"),n=e[Cc("0x5b")][Cc("0xa")]("Annotations"),o=e[Cc("0x5b")][Cc("0xa")](Cc("0x45")),s=e[Cc("0x5b")][Cc("0xa")]("CommentsRepository");e.ui.componentFactory[Cc("0x23")](Cc("0x6b"),(e=>this[Cc("0xf")](e))),o[Cc("0x32")]((()=>{const e=[];for(const[t,n]of Array[Cc("0x56")](this[Cc("0x22")])){const o=t[Cc("0x19")](),s=[];for(const e of o){if(!e[Cc("0x65")])continue;if(e[Cc("0x47")]){s[Cc("0x51")](...e[Cc("0x2f")]());continue}const t=e[Cc("0x2e")]();if(s[Cc("0x18")]>0){const e=s[0][Cc("0x7")](t);if(e){s[0]=e;continue}}s[Cc("0x51")](t)}e.push([n[Cc("0x67")],s])}return e})),this[Cc("0x21")](t,Cc("0x31"),((e,t)=>{this[Cc("0x21")](t,Cc("0x3f"),((e,n,o,s)=>{t[Cc("0x65")]&&(null==o?(this[Cc("0x6c")](s[Cc("0x53")]),this[Cc("0x5c")](t,!1)):(this._updateController(o[Cc("0x53")]),this[Cc("0x5c")](t,!0)))})),null===t[Cc("0x3b")]?this[Cc("0x5c")](t,!1):this[Cc("0x6c")](t[Cc("0x53")])})),this[Cc("0x21")](t,Cc("0x68"),((e,t,n)=>{this.stopListening(t,Cc("0x3f")),this[Cc("0x27")][Cc("0x61")](t);const o=n?n.head:t,s=this._suggestionToController[Cc("0xa")](o);null!==n&&this[Cc("0x6c")](o),null===n&&s&&this[Cc("0x49")](t)})),this[Cc("0x21")](t,Cc("0x62"),((e,t)=>{this[Cc("0x6c")](t)})),this[Cc("0x21")](n,Cc("0x33"),(()=>{this[Cc("0xd")]()})),this[Cc("0x21")](s,Cc("0x4"),((e,{threadId:n,isFromAdapter:o})=>{if(o||!t[Cc("0x3e")](n))return;const s=t[Cc("0x6a")](n);this[Cc("0x22")].get(s).view[Cc("0x15")]()}),{priority:Cc("0x6")})}_refreshActiveMarkers(){const e=this[Cc("0x37")].plugins.get("Annotations"),t=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x36")),n=Array[Cc("0x56")](e[Cc("0x59")],(e=>e[Cc("0x8")]))[Cc("0x5d")]((e=>this[Cc("0x5")].has(e))),o=[];for(const e of n){const t=this[Cc("0x5")].get(e)[Cc("0x28")][Cc("0x19")]();o[Cc("0x51")](...t[Cc("0x29")](((e,t)=>[...e,...t[Cc("0x34")]()]),[]))}t[Cc("0x1f")]=o}[Cc("0xf")](e){const n=(0,s.createDropdown)(e,s.SplitButtonView),o=this[Cc("0x37")][Cc("0x24")].get(Cc("0x6b")),r=Yo(e,Cc("0x1"));n[Cc("0xe")][Cc("0x11")]({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.buttonView[Cc("0x2a")](Cc("0x4f")).to(o,Cc("0x25")),n[Cc("0xe")].on("execute",(()=>{o[Cc("0x48")](),this.editor.editing[Cc("0x67")].focus()}));const i=new t.Collection,a=[{type:Cc("0x17"),model:{withText:!0,label:r,commandName:Cc("0x6b")}},{type:"separator"},{type:Cc("0x3"),model:{withText:!0,label:Yo(e,Cc("0x2c")),commandName:Cc("0x57")}},{type:"button",model:{withText:!0,label:Yo(e,Cc("0x20")),commandName:Cc("0x4b")}},{type:Cc("0x3"),model:{withText:!0,label:Yo(e,Cc("0x1b")),commandName:Cc("0x35")}},{type:Cc("0x3"),model:{withText:!0,label:Yo(e,Cc("0x63")),commandName:Cc("0x1d")}}];for(const e of a){let t={type:"separator"};if(e[Cc("0x28")]){const n=new s.Model(e[Cc("0x28")]),o=this.editor.commands[Cc("0xa")](n.commandName);n[Cc("0x2a")](Cc("0x4f"),Cc("0x69")).to(o,"value",Cc("0x69")),t={type:e.type,model:n}}i.add(t)}(0,s.addListToDropdown)(n,i);const x=a[Cc("0x5d")]((e=>null!=e.model))[Cc("0x64")]((e=>this[Cc("0x37")][Cc("0x24")][Cc("0xa")](e[Cc("0x28")][Cc("0x13")]))),c=n[Cc("0xe")];return c[Cc("0x4e")].unbind(Cc("0x69")),c[Cc("0x6d")].unbind(Cc("0x69")),c[Cc("0x4e")][Cc("0x2a")](Cc("0x69")).to(o,Cc("0x69")),c[Cc("0x6d")].bind("isEnabled")[Cc("0x5f")](x,Cc("0x69"),((...e)=>e.some((e=>e)))),n.on(Cc("0x48"),(e=>{this[Cc("0x37")][Cc("0x48")](e.source[Cc("0x13")]),this[Cc("0x37")][Cc("0x52")][Cc("0x67")].focus()})),n}[Cc("0x5a")](e){const t=this.editor,n=t.config,o=t.plugins[Cc("0xa")](Cc("0x0")),s=t[Cc("0x5b")].get(Cc("0x55")),i=t[Cc("0x5b")][Cc("0xa")](Cc("0x45")),a=t.plugins.get(r.Users).me,x=n[Cc("0xa")](Cc("0x6b"))[Cc("0x66")],{CommentsListView:c,CommentThreadInputView:l}=t[Cc("0x5b")][Cc("0xa")](Cc("0x3c"));let d,u;this[Cc("0x5e")].has(e.id)?(u=this[Cc("0x5e")].get(e.id),d=u[Cc("0x4a")]):(d=new x(t[Cc("0x10")],e,a,{disableComments:this[Cc("0x2d")],editorConfig:n[Cc("0xa")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Cc("0xa")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Cc("0xa")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0xa")](Cc("0x2b")),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0xa")](Cc("0x10"))),CommentView:n[Cc("0xa")]("comments")[Cc("0x3a")],CommentsListView:c,CommentThreadInputView:l}),d[Cc("0x4d")].on("execute",(()=>{t[Cc("0x52")][Cc("0x67")][Cc("0x15")]()})),d.discardButton.on(Cc("0x48"),(()=>{t[Cc("0x52")][Cc("0x67")].focus()})),u=o[Cc("0x42")](this[Cc("0x37")][Cc("0x10")],d),u[Cc("0x2a")](Cc("0x1c")).to(d,"isDirty"),u[Cc("0x2a")](Cc("0x18")).to(d),u.bind(Cc("0x2")).to(d,Cc("0x2"),(e=>"suggestion-"+e)),this[Cc("0x5e")][Cc("0x11")](e.id,u));const g=s[Cc("0x46")](e[Cc("0x1a")],d),m=new ic(t,e,d,g),f=e.getAllAdjacentSuggestions()[Cc("0x5d")]((e=>e[Cc("0x65")]));d.descriptionParts=t[Cc("0x5b")].get("TrackChangesEditing")[Cc("0x12")][Cc("0x30")](f),this[Cc("0x22")][Cc("0x11")](e,m),this._viewToController[Cc("0x11")](d,m);const h=o[Cc("0x54")]({view:u,target:()=>{const n=[],o=e.getAllAdjacentSuggestions()[Cc("0x5d")]((e=>e[Cc("0x65")]));for(const e of o)n[Cc("0x51")](...e[Cc("0x1e")]());return(0,r.getAllMarkersDomElementsSorted)(t.editing,n)},type:()=>"suggestion-"+m[Cc("0x67")][Cc("0x2")]});s[Cc("0x38")](d,h),o[Cc("0x23")](h),i[Cc("0x40")](h)}_destroyController(e){const t=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x55")),n=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x0")),o=this[Cc("0x22")].get(e),s=o[Cc("0x67")],r=n[Cc("0x3d")](s);t[Cc("0x41")](s),r&&n[Cc("0x4c")](r),this[Cc("0x22")].delete(e),this._viewToController[Cc("0x61")](s),o[Cc("0xb")]()}[Cc("0x6c")](e){if(!e[Cc("0x65")]||!this[Cc("0x22")][Cc("0x60")](e))return;const t=this[Cc("0x37")].plugins.get(Cc("0x36")),n=this[Cc("0x22")][Cc("0xa")](e),o=e.getAllAdjacentSuggestions();n[Cc("0x67")][Cc("0x14")]=t[Cc("0x12")][Cc("0x30")](o)}[Cc("0xb")](){for(const e of this[Cc("0x22")].keys())this._destroyController(e);for(const e of this[Cc("0x5e")][Cc("0x9")]())e[Cc("0x4a")][Cc("0xb")]();super[Cc("0xb")]()}}var kc,Ac,vc=["TrackChanges","getSuggestion","addSuggestionData","get","editor","plugins","getSuggestions","requires","pluginName","adapter"];kc=vc,Ac=326,function(e){for(;--e;)kc.push(kc.shift())}(++Ac);var Rc=function(e,t){return vc[e-=0]};class Sc extends e.Plugin{static get[Rc("0x1")](){return[Wx,yc,"Comments"]}static get[Rc("0x2")](){return Rc("0x4")}set[Rc("0x3")](e){this.editor[Rc("0x9")][Rc("0x7")](Wx).adapter=e}get[Rc("0x3")](){return this[Rc("0x8")][Rc("0x9")][Rc("0x7")](Wx)[Rc("0x3")]}addSuggestion(e){return this[Rc("0x8")][Rc("0x9")][Rc("0x7")](Wx)[Rc("0x6")](e)}getSuggestions({skipNotAttached:e=!1,toJSON:t=!1}={}){return this[Rc("0x8")].plugins[Rc("0x7")](Wx)[Rc("0x0")]({skipNotAttached:e,toJSON:t})}[Rc("0x5")](e){return this.editor[Rc("0x9")][Rc("0x7")](Wx)[Rc("0x5")](e)}}const Ic=["_adapter","init","push","map","getRootNames","acceptAllSuggestions","reduce","function","set","getDataWithAcceptedSuggestions","constructor","getRootsAttributes","Users","get","TrackChangesDataGetter","pluginName","appendChild","trackChangesData","useAnonymousUser","data","div","result","getFullData","document","end","requires","Pagination","execute","addUser","TrackChangesData","destroy","plugins","TrackChangesEditing","editor","getSuggestions","getDataWithDiscardedSuggestions","rootsAttributes","getUser","trackChangesData.editorCreator","define","discardAllSuggestions","model","config"];var Lc,Nc;Lc=Ic,Nc=295,function(e){for(;--e;)Lc.push(Lc.shift())}(++Nc);const Mc=function(e,t){return Ic[e-=0]},wc=[Mc("0x20")];class Oc extends e.Plugin{static get[Mc("0x1f")](){return[Wx]}static get[Mc("0x15")](){return Mc("0x23")}init(){const e=this[Mc("0x27")];if(e[Mc("0x5")][Mc("0x2")](Mc("0x1"),(t=>{const n=e[Mc("0x4")][Mc("0x1d")][Mc("0xa")]()[Mc("0xc")](((e,t)=>(e[t]="",e)),{});return e[Mc("0x10")].create(n,t)})),Mc("0xd")!=typeof e[Mc("0x5")][Mc("0x13")](Mc("0x17")).editorCreator)throw new t.CKEditorError("track-changes-data-invalid-editor-creator")}[Mc("0xf")](e){return Dc(this[Mc("0x27")],!0,e)}[Mc("0x29")](e){return Dc(this[Mc("0x27")],!1,e)}}class Fc extends e.Plugin{static get[Mc("0x15")](){return Mc("0x14")}constructor(e){super(e),this[Mc("0x1b")]=Mc("0x1e")}[Mc("0x7")](){this[Mc("0x27")][Mc("0x25")][Mc("0x13")]("CommentsRepository")[Mc("0x6")]={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[Mc("0x27")][Mc("0x25")].get(Mc("0x26"))[Mc("0x6")]=null}}function Pc(e){return void 0!==e[Mc("0x11")]}async function Dc(e,t,n){const o=(0,r.sanitizeEditorConfig)(e,wc);o[Mc("0x25")][Mc("0x8")](Wx,Fc),o[Mc("0x2a")]=Pc(e)?e[Mc("0x11")]():void 0;const s=document.createDocumentFragment(),i=e[Mc("0x5")][Mc("0x13")](Mc("0x17")).editorCreator,a=await i(o,(()=>function(e){const t=document.createElement(Mc("0x1a"));return e[Mc("0x16")](t),t}(s)));!function(e,t){const n=e[Mc("0x4")].document[Mc("0xa")]().reduce(((t,n)=>(t[n]=e[Mc("0x19")].get({rootName:n}),t)),{}),o=e[Mc("0x25")].get("Users").users[Mc("0x9")]((e=>({id:e.id,name:e.name}))),s=e[Mc("0x25")][Mc("0x13")](Mc("0x26"))[Mc("0x28")]({skipNotAttached:!0,toJSON:!0}),r=t[Mc("0x25")][Mc("0x13")](Mc("0x12")),i=t[Mc("0x25")].get(Mc("0x26"));for(const e of o)r[Mc("0x0")](e.id)||r[Mc("0x22")](e);r.me||r[Mc("0x18")]();for(const e of s)i.addSuggestionData(e);t[Mc("0x19")][Mc("0xe")](n)}(e,a),a[Mc("0x21")](Mc(t?"0xb":"0x3"));const x=Pc(a)?a[Mc("0x1c")](n):a.data[Mc("0x13")](n);return await a[Mc("0x24")](),x}})(),(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:()=>uc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["forceDisabled","isEnabled","commands","_enableCommands","refresh","clearForceDisabled","editor","affectsData","TrackChangesCommand","_isEnabledBasedOnSelection","value","execute","_disableUnsupportedCommands"];var c,l;c=a,l=297,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0xc")]=!1,this[u("0x6")](),this[u("0xb")]=!1}[u("0x6")](){this[u("0x3")]=!0}[u("0x0")](){this[u("0xc")]=!this[u("0xc")],this[u("0xc")]?this[u("0x1")]():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this[u("0x8")].commands[u("0x4")]())t[u("0x9")]&&!this._enabledCommands.has(t)&&t[u("0x2")](u("0xa"))}[u("0x5")](){for(const t of this[u("0x8")].commands[u("0x4")]())t[u("0x9")]&&!this._enabledCommands.has(t)&&t[u("0x7")](u("0xa"))}}const g=["_isEnabledBasedOnSelection","model","isEnabled","TrackChangesEditing","_suggestions","refresh","execute","get","plugins","editor","track-changes-accept-suggestion-not-found","canEditAt"];var m,f;m=g,f=153,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("0x7")]=e,this[h("0x8")](),this[h("0x3")]=!1}refresh(){this[h("0x5")]=!0}[h("0x9")](t){const n=this[h("0x7")][h("0xa")](t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n.getRanges();this[h("0x0")][h("0x4")][h("0x2")](o)&&this[h("0x0")][h("0xb")][h("0xa")](h("0x6")).acceptSuggestion(n)}}const b=["model","TrackChangesEditing","execute","plugins","discardSuggestion","track-changes-discard-suggestion-not-found","editor","canEditAt","refresh","isEnabled","get"];var E,_;E=b,_=153,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._suggestions=e,this[T("0x9")](),this._isEnabledBasedOnSelection=!1}[T("0x9")](){this[T("0xa")]=!0}[T("0x3")](t){const n=this._suggestions[T("0x0")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n.getRanges();this[T("0x7")][T("0x1")][T("0x8")](o)&&this[T("0x7")][T("0x4")][T("0x0")](T("0x2"))[T("0x5")](n)}}const y=["change","from","value","createPositionAfter","isInContent","createPositionAt","add","isArray","getRanges","next","color","createPositionBefore","replace","start","isObject","type","join","isMultiRange","push","deletion","isIntersecting"," [color ","map","isTouching","length","execute"];var k,A;k=y,A=464,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t.sort(((t,e)=>v("0x17")==t[v("0x13")]&&v("0x17")!=e[v("0x13")]?-1:v("0x17")!=t[v("0x13")]&&v("0x17")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t[v("0x2")];){const i=t[o],x=t[o+1];n||(n=e[v("0xf")](i)),I(e,i,x)||(s[v("0x16")](e.createRange(n,r[v("0x12")](i)?e[v("0x7")](i):e[v("0x9")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x7")](e),s=t[v("0xf")](n);return o[v("0x1")](s)}function L(t,e,n){for(;n[v("0x2")];){const o=n.splice(0,100);t[v("0x4")]((()=>{for(const t of o)t[v("0x8")]&&e[v("0x3")](t.id)}))}}const N=["refresh","values","_command","editor","model","canEditAt","execute","some","from","_isEnabledBasedOnSelection","isEnabled","getRanges","isInContent","_suggestions"];var M,w;M=N,w=308,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0xd")]=n,this[O("0x0")](),this[O("0x9")]=!1}[O("0x0")](){const t=Array[O("0x8")](this._suggestions.values())[O("0x7")]((t=>t[O("0xc")]));this[O("0xa")]=this[O("0x2")][O("0xa")]&&t}[O("0x6")](){const t=R(Array[O("0x8")](this[O("0xd")][O("0x1")]()));for(const e of t){const t=e[O("0xb")]();if(!this[O("0x3")][O("0x4")][O("0x5")](t))return}L(this[O("0x3")].model,this[O("0x2")],t)}}const P=["_isEnabledBasedOnSelection","from","values","isEnabled","editor","refresh","canEditAt","_command","document","_selectedSuggestions","model","size","_suggestions","selection","execute"];var D,B;D=P,B=153,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("0x9")]=n,this[j("0x6")]=new Set,this[j("0x2")](),this[j("0xc")]=!1}[j("0x2")](){const t=this[j("0x1")][j("0x7")][j("0x5")][j("0xa")],e=Array[j("0xd")](this[j("0x9")][j("0xe")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x5")](t.getRanges()),o=new Set;for(const s of e)if(s[v("0x8")])for(const e of n)for(const n of s[v("0xc")]())(e[v("0x18")](n)||t.isCollapsed&&!s[v("0x15")]&&s[v("0xd")]&&n.end.isTouching(e[v("0x11")]))&&o[v("0xa")](s);return o}(t,e),this.isEnabled=this[j("0x4")][j("0x0")]&&!!this[j("0x6")][j("0x8")]}[j("0xb")](){const t=R(Array.from(this[j("0x6")]));for(const e of t){const t=e.getRanges();if(!this[j("0x1")][j("0x7")][j("0x3")](t))return}L(this[j("0x1")][j("0x7")],this[j("0x4")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const X=function(t){return z(this.__data__,t)>-1};const q=function(t,e){var n=this.__data__,o=z(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 Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?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]=Mt&&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=wt,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 zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const Xt=function(t){return Wt(this,t).has(t)};const qt=function(t,e){var n=Wt(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 Me=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 we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const 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)?Me(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 ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(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 Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var 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?Mn(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 Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return 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 zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;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?{}:zn(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 Mo=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 wo=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:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var 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):Mo(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 zo=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 Wo=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:zo(t,Wo(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=["getFirstRange","isInContent","_model","split","type","_onAttributesChange","getMarkers","subType","isMultiRange","addMarkerName","getRanges","substr","accept","addRange","addMarker","getAllAdjacentSuggestions","removeMarker","removeMarkers","getContainedElement","getMultiRangeId","_isDataLoaded","markers","decorate","onDiscard","isIntersecting","next","data","_saved","push","change","discard","toJSON","commentThread","setAttribute","author","set","@external","previous","_onDiscard","reduce","hasComments","length","_onAccept","createdAt","end","getFirstMarker","isExternal","creator","get","start","suggestion:","authoredAt","getMarkerNames","from","onAccept","head","getRange","delete","attributes","isIntersectingWithRange","_markerNames","clear"];var $o,Jo;$o=qo,Jo=366,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[Qo("0x1a")]=!1,this.id=e.id,this[Qo("0xa")]=e[Qo("0xa")],this[Qo("0xd")]=e[Qo("0xd")]||null,this[Qo("0x28")]=e[Qo("0x28")],this[Qo("0x35")]=e[Qo("0x35")]||e[Qo("0x28")],this[Qo("0x34")]=Boolean(e[Qo("0x2")]&&e[Qo("0x2")][Qo("0x2a")]),this[Qo("0x20")]=null,this[Qo("0x8")]=t,this[Qo("0x30")]=e[Qo("0x3c")],this._onDiscard=e[Qo("0x1d")],this[Qo("0xb")]=e.onAttributesChange,this[Qo("0x4")]=new Set,this[Qo("0x31")]=null,this[Qo("0x29")](Qo("0x39"),null),this.set("attributes",e[Qo("0x2")]||{}),this[Qo("0x29")](Qo("0x2b"),null),this[Qo("0x29")](Qo("0x1f"),null),this[Qo("0x29")](Qo("0x26"),null),this[Qo("0x29")](Qo("0x21"),!1),this[Qo("0x1c")](Qo("0x12")),this[Qo("0x1c")](Qo("0x24"))}get[Qo("0x3d")](){let t=this;for(;t[Qo("0x2b")];)t=t.previous;return t}get[Qo("0x2e")](){return!!this.commentThread&&this[Qo("0x26")][Qo("0x2f")]>0}get[Qo("0xe")](){return 0!=this[Qo("0x4")].size&&6==Array[Qo("0x3b")](this._markerNames)[0][Qo("0x9")](":")[Qo("0x2f")]}get[Qo("0x7")](){return null!==this[Qo("0x33")]()}addMarkerName(t){this[Qo("0x4")].add(t)}getMarkerNames(){return Array[Qo("0x3b")](this[Qo("0x4")])}[Qo("0xc")](){return this[Qo("0x3a")]().map((t=>this._model[Qo("0x1b")][Qo("0x36")](t))).filter((t=>t))}[Qo("0x33")](){return this[Qo("0xc")]()[0]||null}[Qo("0x17")](){this[Qo("0x8")].change((t=>{for(const e of this[Qo("0xc")]())t.removeMarker(e)})),this[Qo("0x4")][Qo("0x5")]()}[Qo("0x16")](t){this._model[Qo("0x23")]((e=>{e[Qo("0x16")](t)})),this[Qo("0x4")][Qo("0x1")](t)}[Qo("0x13")](t){const e=Qo("0x38")+this[Qo("0xa")]+":"+this[Qo("0xd")]+":"+this.id+":"+this[Qo("0x35")].id+":"+Zo[Qo("0x19")]();this[Qo("0xf")](e),this[Qo("0x8")][Qo("0x23")]((n=>{n[Qo("0x14")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x3")](t){for(const e of this[Qo("0x10")]())if(e[Qo("0x1e")](t))return!0;return!1}[Qo("0x10")](){return this.getMarkers().map((t=>t[Qo("0x0")]()))}getItems(){return this.getRanges()[Qo("0x2d")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0x6")](){var t;return(null===(t=this[Qo("0x33")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x18")](){const t=this[Qo("0x10")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x37")].nodeAfter,o=e[Qo("0x32")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}accept(){this._onAccept(this[Qo("0x10")](),this[Qo("0x20")],this[Qo("0x2")]),this.removeMarkers()}discard(){this[Qo("0x2c")](this[Qo("0x10")](),this[Qo("0x20")],this.attributes),this[Qo("0x17")]()}[Qo("0x15")](){const t=[];let e=this[Qo("0x3d")];for(;e;)t[Qo("0x22")](e),e=e[Qo("0x1f")];return t}[Qo("0x27")](t,e){const n=eo(this[Qo("0x2")]);_o(n,t,e),Go(n,this[Qo("0x2")])||(this[Qo("0x2")]=n,this[Qo("0xb")](n))}removeAttribute(t){const e=eo(this[Qo("0x2")]);Xo(e,t),Go(e,this[Qo("0x2")])||(this[Qo("0x2")]=e,this[Qo("0xb")](this[Qo("0x2")]))}[Qo("0x25")](){return{id:this.id,type:this.subType?this[Qo("0xa")]+":"+this[Qo("0xd")]:this.type,authorId:this[Qo("0x35")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this[Qo("0x20")],attributes:this[Qo("0x2")]}}static[Qo("0x19")](){return(0,e.uid)()[Qo("0x11")](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=["ELEMENT_SPACE","*Remove:* %0","softBreak","deletion","text","element","skip","checkChild","set","insertion","quantity","Container","removeObject","isEqual","nextSibling","label","getFirstRange","push","getItemLabel","length","_itemLabelsCallbacks","registerDescriptionCallback","replace","addEmptyContainer","remove","type","start","addObject","*Insert:* %0","_locale","get","elementStart","_schema","_itemLabels","isEmpty","_customCallbacks","isObject","$1 $2","isInContent","addContainer","elementEnd","name","previousSibling","_addDescriptionItems","function","data","pop","indexOf","getWalker","removeContainer","item","match","getDescriptions","add","removeEmptyContainer"];var es,ns;es=ts,ns=314,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("0x33")]=[],this[os("0x31")]=new Map,this[os("0x24")]=[],this._schema=t,this[os("0x2d")]=e}[os("0xd")](t){const e=[];for(let n=0;n<t[os("0x23")];n++){const o=t[n];if(!o[os("0x36")])continue;let s=!1;for(const t of this[os("0x33")]){const n=t(o);if(n){"type"in n&&e.push(n),s=!0;break}}if(!s){this[os("0x4")](e,o);const s=t[n+1];if(s&&!o[os("0x20")]().end[os("0x1d")](s[os("0x20")]()[os("0x2a")])){const t=e[e.length-1],n="insertion"==o[os("0x29")]?os("0xe"):os("0x28");t&&os("0x14")==t[os("0x29")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x25")](t){this[os("0x33")][os("0x21")](t)}registerElementLabel(t,n,o=e.priorities.normal){os("0x5")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x31")][os("0x18")](t,n)}[os("0x22")](t,e=1){let n;for(const e of this[os("0x24")])if(e.matchingCallback(t)){n=e[os("0x1f")];break}return n||(n=this[os("0x31")][os("0x2e")](t.name)),n?n(e):1!==e?e+" "+t[os("0x2")]+"s":""+t[os("0x2")]}[os("0x4")](t,e){const n=e[os("0x20")]()[os("0x9")](),o="insertion"==e[os("0x29")]?os("0xe"):"remove";for(const e of n){const s=e[os("0xb")],r=t[t[os("0x23")]-1];if(s.is("$textProxy"))r&&r[os("0x29")][os("0x8")](os("0x1b"))>-1&&t[os("0x7")](),r&&os("0x14")==r[os("0x29")]?r[o]+=s[os("0x6")]:t[os("0x21")]({type:"text",add:"add"==o?s.data:"",remove:os("0x28")==o?s.data:""});else if(this._schema.isObject(s)){const i=s;if(r&&r.type[os("0x8")](os("0x1b"))>-1&&t.pop(),os("0x1")==e[os("0x29")])continue;r&&r[os("0x29")]==o+"Object"&&r[os("0x15")][os("0x2")]==i[os("0x2")]?r[os("0x1a")]++:t.push({type:o+"Object",element:i,quantity:1}),n[os("0x16")]((t=>!(os("0x1")==t[os("0x29")]&&t[os("0xb")]==s)))}else if(this._schema[os("0x17")](s,"$text")||s.is(os("0x15"),os("0x12"))){const n=s;if(os("0xe")==o&&os("0x2f")==e.type||"remove"==o&&"elementEnd"==e[os("0x29")])continue;if(r&&-1==r[os("0x29")][os("0x8")](os("0x1b"))){os("0x14")==r[os("0x29")]&&(r[o]+="\n");continue}let i;if(i=os("0xe")==o?n[os("0x1e")]&&!this[os("0x30")].isObject(n[os("0x1e")])?n.nextSibling:null:n.previousSibling&&!this[os("0x30")][os("0x34")](n[os("0x3")])?n[os("0x3")]:null,n[os("0x32")]||i&&i[os("0x32")]){const e=i&&i[os("0x32")]?i:n;r&&r[os("0x29")]==o+"EmptyContainer"&&r[os("0x15")][os("0x2")]==e[os("0x2")]?r[os("0x1a")]++:t.push({type:o+"EmptyContainer",element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}_resolveDescriptionItems(t){const e=this[os("0x2d")],n=[];for(const o of t){switch(o[os("0x29")]){case os("0x14"):if(o[os("0xe")]=o[os("0xe")][os("0x26")](/(\S)\u000A+(\S)/g,"$1 $2").replace(/\u000A/g,""),o[os("0x28")]=o[os("0x28")][os("0x26")](/(\S)\u000A+(\S)/g,os("0x35"))[os("0x26")](/\u000A/g,""),""!=o[os("0xe")]&&""!=o[os("0x28")]){n.push({type:"replace",content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x28")]+'"','"'+o[os("0xe")]+'"'])});continue}if(null!=o[os("0xe")][os("0xc")](/^ +$/)){n.push({type:"insertion",content:Yo(e,os("0x2c"),Yo(e,"ELEMENT_SPACE",o[os("0xe")][os("0x23")]))});continue}if(null!=o[os("0x28")][os("0xc")](/^ +$/)){n[os("0x21")]({type:"deletion",content:Yo(e,"*Remove:* %0",Yo(e,os("0x10"),o[os("0x28")][os("0x23")]))});continue}if(""!=o[os("0xe")]){n[os("0x21")]({type:os("0x19"),content:Yo(e,os("0x2c"),'"'+o[os("0xe")]+'"')});continue}n.push({type:os("0x13"),content:Yo(e,os("0x11"),'"'+o[os("0x28")]+'"')});continue;case os("0x27"):case os("0x2b"):n[os("0x21")]({type:os("0x19"),content:Yo(e,os("0x2c"),this[os("0x22")](o.element,o[os("0x1a")]))});continue;case os("0xf"):case os("0x1c"):n[os("0x21")]({type:os("0x13"),content:Yo(e,os("0x11"),this.getItemLabel(o[os("0x15")],o[os("0x1a")]))});continue;case os("0x0"):n[os("0x21")]({type:os("0x19"),content:Yo(e,"*Split:* %0",this[os("0x22")](o.element,o[os("0x1a")]))});continue;case os("0xa"):n[os("0x21")]({type:os("0x13"),content:Yo(e,"*Merge:* %0",this[os("0x22")](o[os("0x15")],o[os("0x1a")]))});continue}n[os("0x21")](o)}return n}}const rs=["*Format:* %0","editor","ltr","FORMAT_ALIGN_TO_RIGHT","getAttribute","getSelectedBlocks","_descriptionFactory","schema","has","selection","enableCommand","model","commandName","AlignmentEditing","FORMAT_ALIGN_TO_CENTER","afterInit","from","filter","alignment","left","right","markBlockFormat","document","contentLanguageDirection","format","checkAttribute","value","change","commandParams"];var is,xs;is=rs,xs=348,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0xf")](){const t=this[as("0x1")],e=t.locale;if(!t.plugins[as("0x8")](as("0xd")))return;const n=t.plugins.get("TrackChangesEditing");n[as("0xa")](as("0x12"),((e,o={})=>{let s=o.value;o.value||(s=as("0x2")===t.locale[as("0x17")]?as("0x13"):as("0x14"));const r=Array[as("0x10")](this[as("0x1")].model[as("0x16")][as("0x9")][as("0x5")]())[as("0x11")]((t=>function(t,e,n){const o=t[as("0x4")](as("0x12"))||null;return e[as("0x19")](t,as("0x12"))&&n!=o}(t,this[as("0x1")][as("0xb")][as("0x7")],s)));t[as("0xb")][as("0x1b")]((()=>{for(const t of r)n[as("0x15")](t,{commandName:as("0x12"),commandParams:[{value:s}]})}))})),n[as("0x6")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x12")==n[as("0xc")]){const t=n[as("0x1c")][0][as("0x1a")];return{type:as("0x18"),content:Yo(e,as("0x0"),function(t){switch(t){case"left":return Yo(e,"FORMAT_ALIGN_TO_LEFT");case as("0x14"):return Yo(e,as("0x3"));case"center":return Yo(e,as("0xe"));case"justify":return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["push","listIndent","getWalker","previousPosition","insert","isLimit","getAttribute","type","mapper","get","isBlock","toViewElement","parent","toViewPosition","includes","TrackChangesEditing","elementEnd","getItems","name","markerName","start","addClass","schema","writer","markerRange","element","hasAttribute","bindElementToMarker","ck-suggestion-marker--active","isAtEnd","listItem","nextSibling","activeMarkers","getCustomProperty","createRangeOn"];var us,ds;us=ls,ds=388,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("0xe")]())s[gs("0x17")](t)&&o.push(n[gs("0x1f")](s));return o}function fs(t){const e=[];if(t.is(gs("0x16"),gs("0x1b"))){let n=t[gs("0x1c")];for(;n&&n.is(gs("0x16"),gs("0x1b"))&&n[gs("0x3")](gs("0x21"))>0;)e[gs("0x20")](n),n=n[gs("0x1c")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x6")](gs("0xc"));return(s,r,i)=>{if(!i.consumable.test(r[gs("0x15")],s[gs("0xf")]))return;const x=r[gs("0x15")][gs("0x22")](),a=r[gs("0x15")][gs("0x11")],c=t.model[gs("0x13")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=i[gs("0x5")][gs("0x8")](e);if(n&&n[gs("0x1e")]("addHighlight"))return;gs("0xd")==t[gs("0x4")]&&c[gs("0x7")](e)&&!c[gs("0x2")](e)&&(e[gs("0x1c")]||a[gs("0x1a")]?l&&l[gs("0x9")]==e||(l=e,m(t[gs("0x0")]),g=!0):u=u||t.previousPosition)}function m(t){const s=i.writer.createUIElement("span",{class:"ck-suggestion-marker-"+e}),x=i[gs("0x5")][gs("0xa")](t);n&&o[gs("0x1d")][gs("0xb")](r[gs("0x10")])&&i[gs("0x14")][gs("0x12")](gs("0x19"),s),i[gs("0x14")][gs("0x1")](x,s),i[gs("0x5")][gs("0x18")](s,r[gs("0x10")])}d||g||!u||m(u)}}const ps=["has","format","forceValue","FORMAT_SUPERSCRIPT","plugins","italic","bold","commandName","code","subscript","selection","*Remove format:* %0","commands","model","ItalicEditing","locale","UnderlineEditing","commandParams","FORMAT_BOLD","FORMAT_UNDERLINE","from","editor","strikethrough","change","SuperscriptEditing","isCollapsed","value","CodeEditing","FORMAT_ITALIC","StrikethroughEditing","FORMAT_STRIKETHROUGH","enableCommand","SubscriptEditing","TrackChangesEditing","document","superscript","BoldEditing","markInlineFormat"];var bs,Es;bs=ps,Es=348,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x1e"),_s("0x8"),_s("0xa"),_s("0x15"),_s("0x17"),_s("0x1a"),_s("0x12")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0xf")],e=t[_s("0x7")],n=t[_s("0x24")].get(_s("0x1b")),o=t[_s("0x9")];for(const o of Ts){if(!t.plugins[_s("0x20")](o))continue;const s=o.slice(0,-7).toLowerCase(),r=t[_s("0x6")].get(s);n[_s("0x19")](s,((t,o={})=>{const i=e[_s("0x1c")][_s("0x4")];if(i[_s("0x13")])return void t(o);const x=void 0!==o[_s("0x22")]?o[_s("0x22")]:!r[_s("0x14")];e[_s("0x11")]((()=>{const t=Array[_s("0xe")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x1f")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x1")]===t)return s[_s("0xb")][0][_s("0x22")]?{type:_s("0x21"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x21"),content:Yo(o,_s("0x5"),e)}}))}s(_s("0x0"),Yo(o,_s("0xc"))),s(_s("0x25"),Yo(o,_s("0x16"))),s("underline",Yo(o,_s("0xd"))),s(_s("0x2"),Yo(o,"FORMAT_CODE")),s(_s("0x10"),Yo(o,_s("0x18"))),s(_s("0x3"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x1d"),Yo(o,_s("0x23")))}}const ys=["commands","markBlockFormat","get","checkChild","TrackChangesEditing","ELEMENT_BLOCK_QUOTE","*Remove format:* %0","format","registerDescriptionCallback","from","document","name","forceValue","model","schema","commandParams","editor","$root","enableCommand","getSelectedBlocks","blockQuote","value"];var ks,As;ks=ys,As=309,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{afterInit(){const t=this[vs("0xf")],e=t.locale;if(!t.plugins.has("BlockQuoteEditing"))return;const n=t.plugins[vs("0x1")](vs("0x3")),o=this[vs("0xf")][vs("0x15")][vs("0x1")](vs("0x13"));n[vs("0x11")](vs("0x13"),((e,s={})=>{const r=this[vs("0xf")].model[vs("0x9")].selection,i=s&&void 0!==s[vs("0xb")]?s[vs("0xb")]:!o[vs("0x14")];let x=[];if(i){const e=Array[vs("0x8")](r[vs("0x12")]()).filter((t=>Ss(t)||function(t,e){const n=e[vs("0x2")](t.parent,vs("0x13")),o=e[vs("0x2")]([vs("0x10"),"blockQuote"],t);return n&&o}(t,this[vs("0xf")][vs("0xc")][vs("0xd")])));x=S(e,t[vs("0xc")])}else{const e=Array[vs("0x8")](r[vs("0x12")]()).filter((t=>Ss(t)));x=S(e,t.model)}t.model.change((()=>{for(const t of x)n[vs("0x0")](t,{commandName:vs("0x13"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x7")]((t=>{const{data:n}=t;if(n&&vs("0x13")==n.commandName){const t=Yo(e,vs("0x4"));return n[vs("0xe")][0][vs("0xb")]?{type:vs("0x6"),content:Yo(e,"*Format:* %0",t)}:{type:vs("0x6"),content:Yo(e,vs("0x5"),t)}}}))}}function Ss(t){return vs("0x13")==t.parent[vs("0xa")]}const Is=["afterInit","commands","get","TrackChangesEditing","ckbox","editor"];var Ls,Ns;Ls=Is,Ns=345,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x3")](){const t=this[Ms("0x2")];t[Ms("0x4")][Ms("0x5")](Ms("0x1"))&&t.plugins.get(Ms("0x0")).enableCommand(Ms("0x1"))}}const Os=["registerDescriptionCallback","language","commandParams","schema","TrackChangesEditing","codeBlock","*Remove format:* %0","_descriptionFactory","CodeBlock","find","selection","languages","forceValue","enableCommand","rootElement","registerElementLabel","has","model","editor","indentCodeBlock","value","getSelectedBlocks","afterInit","format","filter","markBlockFormat","locale","commandName","parent","ELEMENT_CODE_BLOCK","document","change","get"];var Fs,Ps;Fs=Os,Ps=390,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1c")](){const t=this[Ds("0x18")];if(!t.plugins[Ds("0x16")](Ds("0xe")))return;const e=t.plugins[Ds("0x5")](Ds("0xa")),n=t[Ds("0x20")],o=t.config[Ds("0x5")](Ds("0xb"))[Ds("0x11")],s=t.commands.get(Ds("0xb"));e[Ds("0x13")](Ds("0x19")),e.enableCommand("outdentCodeBlock"),e[Ds("0x13")](Ds("0xb"),((n,r={})=>{const i=t.model,x=t[Ds("0x17")][Ds("0x3")][Ds("0x10")],a=r&&void 0!==r[Ds("0x12")]?r[Ds("0x12")]:!s[Ds("0x1a")];let c;r[Ds("0x7")]||(r[Ds("0x7")]=o[0].language),c=a?Array.from(x[Ds("0x1b")]())[Ds("0x1e")]((t=>{return js(t)||(e=t,n=i[Ds("0x9")],!e.is(Ds("0x14"))&&!n.isLimit(e)&&n.checkChild(e[Ds("0x1")],Ds("0xb")));var e,n})):Array.from(x[Ds("0x1b")]())[Ds("0x1e")]((t=>js(t)));const l=S(c,i);i[Ds("0x4")]((()=>{for(const t of l)e[Ds("0x1f")](t,{commandName:Ds("0xb"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Ds("0x15")](Ds("0xb"),(t=>Yo(n,Ds("0x2"),t))),e[Ds("0xd")][Ds("0x6")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r[Ds("0x0")]){const t=r[Ds("0x8")][0][Ds("0x7")],s=e(o[Ds("0xf")]((e=>e[Ds("0x7")]===t)).label);return r[Ds("0x8")][0].forceValue?{type:Ds("0x1d"),content:Yo(n,"*Format:* %0",Yo(n,Ds("0x2"),1)+" ("+s+")")}:{type:Ds("0x1d"),content:Yo(n,Ds("0xc"),Yo(n,Ds("0x2"),1))}}}))}}function js(t){return Ds("0xb")==t.name}const Us=["editor","addCommentThread","plugins","get"];var Gs,Hs;Gs=Us,Hs=242,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this[zs("0x2")];t[zs("0x0")].has("CommentsEditing")&&t[zs("0x0")][zs("0x1")]("TrackChangesEditing").enableCommand(zs("0x3"))}}var Vs=n(181);const Ks=["document","isCollapsed","enableCommand","fromRange","createSelection","options","selection","bind","$graveyard","get","unlock","deleteForward","addMarker:suggestion:deletion","start","data","createRange","markerNameToElements","commands","remove","editing","model","batch","unit","requires","end","root","mapper","high","enqueueChange","lock","buffer","removeMarker:suggestion:deletion","forward","showSuggestionHighlights","getFirstRange","detach","unbindElementFromMarkerName","editor","markerName","uiElement","rootName","merge","downcastDispatcher","TrackChangesEditing"];var Xs,qs;Xs=Ks,qs=227,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("0x10")](){return[Vs.Delete]}init(){const t=this[$s("0x1e")],e=t.plugins[$s("0x2")]($s("0x24"));e.enableCommand("delete");const n=t[$s("0xa")][$s("0x2")]("deleteForward");e[$s("0x27")]($s("0x4"),((e,o={})=>{const s=t[$s("0xd")][$s("0x29")](t[$s("0xd")][$s("0x25")][$s("0x2b")]);s[$s("0x26")]&&t[$s("0xd")].modifySelection(s,{direction:$s("0x19"),unit:o[$s("0xf")]});const r=s[$s("0x1b")](),x=i.LiveRange[$s("0x28")](r);let a;e(o),a=$s("0x1")==x[$s("0x12")][$s("0x21")]?t.model[$s("0x8")](r[$s("0x6")]):t[$s("0xd")][$s("0x8")](x[$s("0x6")],x[$s("0x11")]),x[$s("0x1c")](),t[$s("0xd")][$s("0x15")](n[$s("0x17")][$s("0xe")],(t=>{n.buffer[$s("0x16")](),t.setSelection(t.createRange(a[$s("0x11")])),n[$s("0x17")][$s("0x3")]()}))})),t[$s("0xc")][$s("0x23")].on($s("0x5"),hs(t,"merge"),{priority:"high"}),t[$s("0x7")].downcastDispatcher.on($s("0x5"),((e,n,o)=>{o[$s("0x2a")][$s("0x1a")]&&hs(t,$s("0x22"),{showActiveMarker:!1})[$s("0x0")](this)(e,n,o)}),{priority:$s("0x14")}),t[$s("0xc")][$s("0x23")].on($s("0x18"),((t,e,n)=>{const o=n[$s("0x13")][$s("0x9")](e[$s("0x1f")]);if(o)for(const t of o)t.is($s("0x20"))&&(n[$s("0x13")][$s("0x1d")](t,e[$s("0x1f")]),n.writer[$s("0xb")](t))}),{priority:$s("0x14")})}}const Qs=["bulletedList","ELEMENT_LIST_ITEM","registerCustomCallback","DocumentListEditing","numberedList","commands","splitListItemBefore","start","editor","forceValue","selection","length","listIndent","listType","getSelectedBlocks","findIndex","map","ELEMENT_NUMBERED_LIST","documentList","nextSibling","change","containsItem","end","model","add","push","parent","format","expandListBlocksToCompleteList","detach","locale","schema","from","indentList","value","mergeListItemForward","isFirstBlockOfListItem","previousSibling","document","registerElementLabel","accept","outdentList","slice","TrackChangesEditing","nodeAfter","next","_descriptionFactory","ELEMENT_","createRange","listItemId","getAttribute","splitListItemAfter","markBlockFormat","DocumentListUtils","getFirstRange","commandParams","commandName","createPositionAt","*Merge:* %0","afterInit","ELEMENT_BULLETED_LIST","hasAttribute","setSelection","plugins","enableCommand","get","*Format:* remove from %0","*Change to:* %0","deletion","isObject","*Format:* insert into %0","before"];var Zs,Ys;Zs=Qs,Ys=329,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x12")](){const t=this[tr("0x27")];if(!t[tr("0x16")].has(tr("0x22")))return;const e=t[tr("0x3d")],n=t[tr("0x16")].get(tr("0x2")),o=t[tr("0x16")][tr("0x18")](tr("0xc"));function s(e){return()=>{const s=t[tr("0x24")][tr("0x18")](e);let r=Array[tr("0x3f")](t[tr("0x36")][tr("0x45")].selection[tr("0x2d")]());if(a(e)){r=o[tr("0x3b")](r);const t=[];for(const e of r)o[tr("0x43")](e)&&t[tr("0x38")](e);r=t}t[tr("0x36")].change((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!s[tr("0x41")]}],formatGroupId:tr("0x2c")},[],tr("0x31"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x3f")](t);const n=e[tr("0x2e")]((t=>!t[tr("0x14")](tr("0x8"))));return n>-1&&(e=e[tr("0x1")](0,n)),e}(t.model.document[tr("0x29")][tr("0x2d")]()),s=o[o[tr("0x2a")]-1],r=t.model[tr("0x3e")][tr("0x1c")](s)?"after":"end",i=t[tr("0x36")][tr("0x7")](t[tr("0x36")].createPositionAt(o[0],tr("0x1e")),t.model[tr("0x10")](s,r));t[tr("0x36")][tr("0x33")]((()=>{n[tr("0xb")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x2c")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x32")];for(;t&&t[tr("0x9")](tr("0x2b"))>n[tr("0x9")](tr("0x2b"));)e[tr("0x37")](t),t=t[tr("0x32")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x36")][tr("0x45")][tr("0x29")][tr("0x2d")]()[tr("0x4")]().value,s=t[tr("0x36")][tr("0x10")](o,"before"),r=t.model[tr("0x10")](o,0),i=t.model[tr("0x7")](s,r);t[tr("0x36")][tr("0x33")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x2c")})}))}}function a(e){const n=t[tr("0x24")][tr("0x18")](tr("0x1f"))[tr("0x41")],o=t[tr("0x24")][tr("0x18")](tr("0x23"))[tr("0x41")];return tr("0x23")===e?n:o}n[tr("0x17")](tr("0x23"),s(tr("0x23"))),n[tr("0x17")](tr("0x1f"),s("bulletedList")),n[tr("0x17")](tr("0x40"),r("indentList")),n[tr("0x17")](tr("0x0"),r(tr("0x0"))),n[tr("0x17")](tr("0xa"),x(tr("0xa"))),n[tr("0x17")](tr("0x25"),x("splitListItemBefore")),n[tr("0x5")][tr("0x46")]((function(e){const n=!t[tr("0x36")].schema[tr("0x1c")](e),o=e[tr("0x44")],s=e[tr("0x32")],r=e.getAttribute(tr("0x8")),i=!o||o[tr("0x9")](tr("0x8"))!==r,x=!s||s.getAttribute(tr("0x8"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0x5")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0xf")]){case tr("0x1f"):r=n[tr("0xe")][0][tr("0x28")],i=a(n[tr("0xf")]),o=tr(r?"0x1d":"0x19"),i&&(o=tr("0x1a")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x13")))};break;case"numberedList":r=n[tr("0xe")][0][tr("0x28")],i=a(n[tr("0xf")]),o=tr(r?"0x1d":"0x19"),i&&(o=tr("0x1a")),s={type:tr("0x3a"),content:Yo(e,o,Yo(e,tr("0x30")))};break;case tr("0x40"):o="*Indent:* %0",s={type:tr("0x3a"),content:Yo(e,o,Yo(e,tr("0x20")))};break;case tr("0x0"):o=function(t){const e=t[tr("0xd")]();let n=e.start[tr("0x3")];for(;n&&e[tr("0x34")](n);){if(n[tr("0x9")](tr("0x2b"))>0)return!1;n=n[tr("0x32")]}return!0}(t)?Yo(e,tr("0x19"),Yo(e,function(t){const e=t.getFirstRange()[tr("0x26")].nodeAfter;return tr("0x6")+e[tr("0x9")](tr("0x2c")).toUpperCase()+"_LIST"}(t))):Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM")),s={type:tr("0x3a"),content:o};break;case"mergeListItemBackward":case tr("0x42"):!1===n.multipleBlocks&&(o=tr("0x11"),s={type:tr("0x1b"),content:Yo(e,o,Yo(e,tr("0x20")))})}return s})),n._suggestionFactory[tr("0x21")]("formatBlock",tr("0x31"),tr("0x47"),(function(e,n){const o=[];for(let n of e)n[tr("0x26")][tr("0x3")]===n[tr("0x35")][tr("0x39")]&&(n=t[tr("0x36")][tr("0x7")](t[tr("0x36")][tr("0x10")](n.start[tr("0x3")],0))),o.push(n);t[tr("0x36")][tr("0x33")]((e=>{const s=t.model[tr("0x45")].selection,r=Array[tr("0x3f")](s.getRanges())[tr("0x2f")]((t=>i.LiveRange.fromRange(t)));e[tr("0x15")](o),t[tr("0x24")][tr("0x18")](n[tr("0xf")]).refresh(),n[tr("0xe")][tr("0x38")]({forceDefaultExecution:!0}),t.execute(n.commandName,...n[tr("0xe")]),e.setSelection(r);for(const t of r)t[tr("0x3c")]()}))}))}}var nr=n(331);const or=["requires","enableCommand","remove","init","setSelection","plugins","mapper","markInsertion","editing","commands","getFirstPosition","markerName","createRange","getFirstRange","split","hasClass","editor","high","unbindElementFromMarkerName","model","fromRange","get","showSuggestionHighlights","afterExecute","parent","addMarker:suggestion:insertion","removeMarker:suggestion:insertion","nextSibling","writer","enter","downcastDispatcher","fire","end"];var sr,rr;sr=or,rr=392,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("0x4")](){return[nr.Enter]}[ir("0x7")](){const t=this[ir("0x14")],e=t[ir("0x9")].get("TrackChangesEditing"),n=t[ir("0xd")][ir("0x19")](ir("0x0"));e[ir("0x5")](ir("0x0"),(()=>{t[ir("0x17")].change((o=>{const s=t.model.document.selection,r=s[ir("0xe")](),x=i.LiveRange[ir("0x18")](s[ir("0x11")]());if(n.enterBlock(o)){const n=t[ir("0x17")].createPositionAt(r[ir("0x1c")][ir("0x1f")],0),s=o[ir("0x10")](r,n);e[ir("0xb")](s)}else o[ir("0x8")](o.createRange(x[ir("0x3")]));x.detach(),n[ir("0x2")](ir("0x1b"),{writer:o})}))})),t[ir("0xc")][ir("0x1")].on("addMarker:suggestion:insertion",hs(t,"split"),{priority:ir("0x15")}),t[ir("0xc")][ir("0x1")].on(ir("0x1e"),((t,e,n)=>{const o=n[ir("0xa")].markerNameToElements(e[ir("0xf")]);if(o)for(const t of o)t[ir("0x13")]("ck-suggestion-marker-split")&&(n.mapper[ir("0x16")](t,e[ir("0xf")]),n[ir("0x20")][ir("0x6")](t))}),{priority:ir("0x15")}),t.data[ir("0x1")].on(ir("0x1d"),((e,n,o)=>{o.options[ir("0x1a")]&&hs(t,ir("0x12"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ir("0x15")})}}const ar=["start","enableCommand","replace","editor","filter","getIntersection","FindAndReplaceUtils","findByTextCallback","TrackChangesEditing","markers","string","handleFindCommand","FindAndReplaceEditing","has","model","createRange","getRange","_isInDeletionRange","createPositionAt","get","replaceAll","plugins","getMarkersGroup","end","item","suggestion:deletion"];var cr,lr;cr=ar,lr=186,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{afterInit(){if(!this[ur("0x19")].plugins[ur("0x9")](ur("0x8")))return;const t=this[ur("0x19")].plugins[ur("0xf")](ur("0x4"));t[ur("0x17")]("find",this[ur("0x7")].bind(this)),t.enableCommand("findNext"),t.enableCommand("findPrevious"),t[ur("0x17")](ur("0x18")),t[ur("0x17")](ur("0x10"))}[ur("0x7")](t,e,n={}){const o=this.editor[ur("0x11")][ur("0xf")](ur("0x2"));void 0!==n&&t((t=>(ur("0x6")==typeof e?o[ur("0x3")](e,n):e)(t)[ur("0x0")]((e=>!1===this[ur("0xd")](e,t[ur("0x14")])))),n)}[ur("0xd")](t,e){const n=this[ur("0x19")][ur("0xa")][ur("0xb")](this[ur("0x19")].model[ur("0xe")](e,t[ur("0x16")]),this.editor.model[ur("0xe")](e,t[ur("0x13")]));for(const t of this.editor[ur("0xa")][ur("0x5")][ur("0x12")](ur("0x15")))if(null!==n[ur("0x1")](t[ur("0xc")]()))return!0;return!1}}const gr=["commandName","enableCommand","change","*Reset font family*","fontBackgroundColor.colors","label","registerDescriptionCallback","plugins","FontSize","isCollapsed","markInlineFormat","*Reset font size*","*Set font size:* %0","has","toLowerCase","_enableCommand","getRanges","value","model","*Set font background color:* %0","document","format","*Set font color:* %0","*Set font family:* %0","title","commandParams","FontFamilyEditing","normalizeSizeOptions","afterInit","FontColorEditing","fontBackgroundColor","TrackChangesEditing","fontColor.colors","get","*Reset font background color*","from","fontFamily","trim","FontSizeEditing","find","fontSize.options","fontColor","editor","_descriptionFactory","config"];var mr,fr;mr=gr,fr=130,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x2b"),commandName:"fontSize"},{pluginName:hr("0x1f"),commandName:hr("0x29")},{pluginName:hr("0x22"),commandName:hr("0x1")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x23")}];class br extends t.Plugin{[hr("0x21")](){const t=this[hr("0x2")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x2")].plugins[hr("0x12")](t)&&this[hr("0x14")](e);this.editor.plugins.get(hr("0x24"))[hr("0x3")][hr("0xb")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x5")]){const e=o[hr("0x1e")][0][hr("0x16")];if(e){const o=n(this[hr("0x2")][hr("0xc")].get(hr("0xd"))[hr("0x20")](this.editor[hr("0x4")][hr("0x26")](hr("0x0"))).find((t=>t[hr("0x17")]==e))[hr("0x1d")])[hr("0x13")]();return{type:hr("0x1a"),content:Yo(t,hr("0x11"),o)}}return{type:hr("0x1a"),content:Yo(t,hr("0x10"))}}if(hr("0x29")==o.commandName){const e=o.commandParams[0][hr("0x16")];return e?{type:hr("0x1a"),content:Yo(t,hr("0x1c"),e)}:{type:"format",content:Yo(t,hr("0x8"))}}if(hr("0x1")==o[hr("0x5")]){const e=o.commandParams[0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x2")][hr("0x4")][hr("0x26")](hr("0x25")))[hr("0x2c")]((t=>t[hr("0x17")]==e));let r=e,i="";return o&&(r=o[hr("0xa")],i=n(r)[hr("0x13")]()),{type:"format",content:Yo(t,hr("0x1b"),i)[hr("0x2a")](),color:{value:e,title:i||r}}}return{type:hr("0x1a"),content:Yo(t,"*Reset font color*")}}if(hr("0x23")==o[hr("0x5")]){const e=o.commandParams[0][hr("0x16")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x2")][hr("0x4")].get(hr("0x9")))[hr("0x2c")]((t=>t[hr("0x17")]==e));let r=e,i="";return o&&(r=o[hr("0xa")],i=n(r).toLowerCase()),{type:hr("0x1a"),content:Yo(t,hr("0x18"),i)[hr("0x2a")](),color:{value:e,title:i||r}}}return{type:hr("0x1a"),content:Yo(t,hr("0x27"))}}}}))}[hr("0x14")](t){const e=this[hr("0x2")];e.plugins[hr("0x26")](hr("0x24"))[hr("0x6")](t,((n,o={})=>{const s=e[hr("0x17")][hr("0x19")].selection,r=o.value;s[hr("0xe")]?n(o):e[hr("0x17")][hr("0x7")]((()=>{const n=Array[hr("0x28")](s[hr("0x15")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x17")]);for(const o of n)e[hr("0xc")][hr("0x26")](hr("0x24"))[hr("0xf")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["commandName","push","toLowerCase","registerDescriptionCallback","keys","TrackChangesEditing","fontColor.colors","pasteFormat","FontSize","charAt","fontSize.options","selection","format","*Remove all formatting*","getLastPosition","getSelectedBlocks","plugins","word","toUpperCase","model","backward","length","fontColor","split","label","getFirstPosition","commands","getItems","locale","find","title","createSelection","enableCommand","get","entries","join","commandParams","createRange","getRanges","config","change","editor","fontBackgroundColor","slice","forward","schema","from","modifySelection","document","getAttributes","getAttributeProperties","copyFormat"];var _r,Tr;_r=Er,Tr=441,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("0x10")],n=t[Cr("0x2e")],o=n[Cr("0x17")][Cr("0x26")],s=t.plugins.get(Cr("0x20")),r=t[Cr("0x3")],i=t[Cr("0x1")][Cr("0x8")](Cr("0x1a")),x=t[Cr("0x1")][Cr("0x8")]("pasteFormat");i&&x&&(s[Cr("0x7")](Cr("0x22"),((t,r={})=>{const i=r;n[Cr("0xf")]((()=>{const t=Array[Cr("0x15")](o.getRanges()),r=o.isCollapsed?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x18")]()){const t=e[Cr("0x19")](n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cr("0xd")]())for(const t of e[Cr("0x2")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Cr("0x2a")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x14")]))||0!==Object[Cr("0x1f")](i)[Cr("0x30")])for(const t of r)s.markInlineFormat(t,{commandName:"pasteFormat",commandParams:[i]})}))})),s._descriptionFactory[Cr("0x1e")]((e=>{const{data:n}=e;if(n&&Cr("0x22")===n[Cr("0x1b")]){const e=[],o=n[Cr("0xb")][0];for(const[n,s]of Object[Cr("0x9")](o))e[Cr("0x1c")](Ar(t,n,s));return e.length?{type:Cr("0x27"),content:Yo(r,"*Set format to:* %0",e[Cr("0xa")](", "))}:{type:Cr("0x27"),content:Yo(r,Cr("0x28"))}}})),t[Cr("0x2b")][Cr("0x8")](Cr("0x20"))[Cr("0x7")](Cr("0x1a")))}}function kr(t,e){const n=t[Cr("0x6")](e);t[Cr("0x16")](n,{unit:Cr("0x2c"),direction:Cr("0x2f")});const o=n[Cr("0x0")]();t[Cr("0x16")](n,{unit:Cr("0x2c"),direction:Cr("0x13")});const s=n[Cr("0x29")]();return t[Cr("0xc")](o,s)}function Ar(t,e,n){const o=t[Cr("0x3")].t,r=e[Cr("0x32")](/(?=[A-Z])/)[Cr("0xa")](" "),i=o(r[Cr("0x24")](0)[Cr("0x2d")]()+r[Cr("0x12")](1))[Cr("0x1d")]();if("boolean"==typeof n)return i;if(Cr("0x31")===e||Cr("0x11")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0xe")][Cr("0x8")](Cr("0x21"))).find((t=>t[Cr("0x2e")]==n));return i+" ("+(e?o(e[Cr("0x33")])[Cr("0x1d")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x2b")][Cr("0x8")](Cr("0x23")).normalizeSizeOptions(t[Cr("0xe")][Cr("0x8")](Cr("0x25")))[Cr("0x4")]((t=>t[Cr("0x2e")]==n));return i+" ("+(e?o(e[Cr("0x5")])[Cr("0x1d")]():n)+")"}return i+" ("+n+")"}const vr=["locale","TrackChangesEditing","config","get","blockName","ELEMENT_HEADING","registerDescriptionCallback","document","markBlockFormat","find","parent","heading","plugins","format","registerElementLabel","title","model","commandName","filter","HeadingEditing","*Change to:* %0","value","ELEMENT_HEADING_CUSTOM","from","_descriptionFactory","has","editor","heading.options","checkChild"];var Rr,Sr;Rr=vr,Sr=348,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Ir("0x1a")],e=t[Ir("0x0")],n=t[Ir("0x2")][Ir("0x3")](Ir("0x1b"));if(!t.plugins[Ir("0x19")](Ir("0x13")))return;const o=t[Ir("0xc")][Ir("0x3")](Ir("0x1"));o.enableCommand(Ir("0xb"),((e,n)=>{const s=n[Ir("0x15")],r=Array[Ir("0x17")](this[Ir("0x1a")][Ir("0x10")][Ir("0x7")].selection.getSelectedBlocks())[Ir("0x12")]((t=>{return e=t,n=s,(o=this[Ir("0x1a")][Ir("0x10")].schema)[Ir("0x1c")](e[Ir("0xa")],n)&&!o.isObject(e)&&e.name!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o[Ir("0x8")](t,{commandName:Ir("0xb"),commandParams:[n],formatGroupId:Ir("0x4")},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0x10")]&&o[Ir("0x18")][Ir("0xe")](t[Ir("0x10")],(e=>{const n=Nr(t[Ir("0x10")]);return null!==n?s(e,n):r(e,t[Ir("0xf")])}));function s(t,n){return Yo(e,Ir("0x5"),[t,n])}function r(t,n){return Yo(e,Ir("0x16"),[t,n])}o._descriptionFactory[Ir("0x6")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&"heading"==i[Ir("0x11")]){const t=i.commandParams[0][Ir("0x15")],o=Nr(t);if(null!==o)return{type:Ir("0xd"),content:Yo(e,Ir("0x14"),s(1,o))};const x=n[Ir("0x9")]((e=>e.model===t))[Ir("0xf")];return{type:"format",content:Yo(e,Ir("0x14"),r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["value","isCollapsed","push","*Remove highlight*","color","registerDescriptionCallback","locale","selection","document","markInlineFormat","_descriptionFactory","getRanges","model","highlight","hasAttribute","HighlightEditing","highlight.options","commandName","*Set highlight:* %0","has","change","createRange","TrackChangesEditing","getLastMatchingPosition","toLowerCase","afterInit","format","getAttribute","commandParams","get","getFirstPosition","item","plugins","backward","formatInline","title"];var wr,Or;wr=Mr,Or=468,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x19")](){const t=this.editor;if(!t[Fr("0x20")][Fr("0x13")](Fr("0xf")))return;const e=t[Fr("0x20")][Fr("0x1d")](Fr("0x16"));e.enableCommand("highlight",((n,o={})=>{const s=t[Fr("0xc")][Fr("0x8")][Fr("0x7")],r=s[Fr("0x1b")](Fr("0xd"));let i=o[Fr("0x0")],x=[];if(s[Fr("0x1")]){const e=s[Fr("0x1e")]();if(!s[Fr("0xe")]("highlight"))return void n(o);{const n=t=>t[Fr("0x1f")][Fr("0x1b")](Fr("0xd"))===r,o=e[Fr("0x17")](n,{direction:Fr("0x21")}),s=e[Fr("0x17")](n);x=[t[Fr("0xc")][Fr("0x15")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xb")]())i?x[Fr("0x2")](e):x[Fr("0x2")](...ms("highlight",e,t[Fr("0xc")]));t.model[Fr("0x14")]((()=>{for(const t of x)e[Fr("0x9")](t,{commandName:Fr("0xd"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x6")];e[Fr("0xa")][Fr("0x5")]((e=>{const{type:o,data:s}=e;if(Fr("0x22")==o&&s&&Fr("0xd")==s[Fr("0x11")]){const e=n.t,o=s[Fr("0x1c")][0][Fr("0x0")];if(o){const s=t.config[Fr("0x1d")](Fr("0x10")).find((t=>t[Fr("0xc")]==o)),r=e(s[Fr("0x23")])[Fr("0x18")]();return{type:Fr("0x1a"),content:Yo(n,Fr("0x12"),r),color:{value:s[Fr("0x4")],title:s.title}}}return{type:Fr("0x1a"),content:Yo(n,Fr("0x3"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["conversion","get","HorizontalLineEditing","for","TrackChangesEditing","afterInit","enableCommand","createEmptyElement","high","ELEMENT_HORIZONTAL_LINE","addClass","horizontalLine","insert","elementToStructure","div","createContainerElement","dataDowncast","showSuggestionHighlights","plugins","editor","createPositionAt"];var Br,jr;Br=Dr,jr=276,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x2")](){const t=this[Ur("0x10")];if(!t[Ur("0xf")].has(Ur("0x14")))return;t[Ur("0xf")].get(Ur("0x1"))[Ur("0x3")]("horizontalLine");const e=t[Ur("0xf")][Ur("0x13")](Ur("0x1")),n=t.locale;e._descriptionFactory.registerElementLabel(Ur("0x8"),(t=>Yo(n,Ur("0x6"),t))),t[Ur("0x12")][Ur("0x0")](Ur("0xd"))[Ur("0xa")]({model:Ur("0x8"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0xe")])return null;const o=e[Ur("0xc")](Ur("0xb")),s=e[Ur("0x4")]("hr");return e[Ur("0x7")]("ck-horizontal-line",o),e[Ur("0x9")](e[Ur("0x11")](o,0),s),o},converterPriority:Ur("0x5")})}}const Hr=["cancel","editor","model","getCustomProperty","HtmlEmbed","markBlockFormat","rawHtml","get","has","afterInit","editing","enableCommand","TrackChangesEditing","rawHtmlApi","document","format","plugins","ELEMENT_HTML_EMBED","registerDescriptionCallback","selection","getSelectedElement","_descriptionFactory","locale","commandName","value","htmlEmbed"];var zr,Wr;zr=Hr,Wr=438,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0xd")](){const t=this[Vr("0x5")];if(!t[Vr("0x14")][Vr("0xc")](Vr("0x8")))return;const e=t[Vr("0x14")][Vr("0xb")](Vr("0x10")),n=t[Vr("0x0")],o=t[Vr("0xe")].view[Vr("0x12")].selection;e[Vr("0x19")].registerElementLabel(Vr("0xa"),(t=>Yo(n,Vr("0x15"),t))),t[Vr("0x14")][Vr("0xb")](Vr("0x10"))[Vr("0xf")](Vr("0x3"),((n,s)=>{const r=t[Vr("0x6")],i=r[Vr("0x12")][Vr("0x17")];r.change((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is("element","rawHtml")?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x2"))||"";void 0!==s&&s!==r&&(e[Vr("0x9")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Vr("0x18")]()[Vr("0x7")](Vr("0x11"))[Vr("0x4")]())}))})),e[Vr("0x19")][Vr("0x16")]((t=>{const{data:e}=t;if(e&&Vr("0x3")==e[Vr("0x1")]){const t=Yo(n,Vr("0x15"));return{type:Vr("0x13"),content:Yo(n,"*Change %0 content*",t)}}}))}}const Xr=["refresh","imageStylePostApply","imageStylePreApply","ImageUtils","fromPosition","find","ImageCaptionEditing","commands","value","width","nodeBefore","hasAttribute","end","join","ImageUploadEditing","insertion","change","isCollapsed","forceDefaultExecution","format","locale","getSuggestion","side","detach","Users","editor","isEqual","getFirstRange","markInlineFormat","imageTextAlternative","filter","element","imageStyle","convertBlockImageToInline","forward","forEach","getSuggestionCallback","ImageStyleEditing","next","getChangedMarkers","alt","subType","nodeAfter","imageTypeInline","newValue","commandReversedParams","isBefore","markDeletion","length","isOwn","createRange","type","has","isIntersecting","getContainedElement","chain","isBlockImage","uploadImage","ELEMENT_CAPTION","registerDescriptionCallback","formatBlock","model","commandName","*Reset image width*","document","previous","title","from","schema","ImageResize","markInsertion","toPrevious","registerCustomCallback","insertImage","newRange","author","_suggestionFactory","formatInline","name","discard","imageCaption","backward","_descriptionFactory","hasSuggestion","getCaptionFromImageModelElement","ELEMENT_INLINE_IMAGE","convertInlineImageToBlock","start","accept","get","selection","ImageCaptionUtils","isInContent","discardSuggestion","imageTypeBlock","getAttribute","differ","caption","registerPostFixer","createRangeOn","Block image to inline image","head","getNearestSelectionRange","_splitMarkerName","*Set image text alternative:* %0","toNext","markBlockFormat","imageInline","_findSuggestions","deletion","Inline image to block image","removeObject","findIndex","commandParams","enableCommand","plugins","registerElementLabel","afterInit","ImageTextAlternativeEditing","addObject","getClosestSelectedImageElement","toLowerCase","imageBlock","resizeImage"];var qr,$r;qr=Xr,$r=324,function(t){for(;--t;)qr.push(qr.shift())}(++$r);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{[Jr("0x29")](){const t=this[Jr("0x49")];if(!t[Jr("0x27")][Jr("0x64")]("ImageEditing"))return;const n=t.plugins[Jr("0xd")]("TrackChangesEditing"),o=t[Jr("0x27")][Jr("0xd")](Jr("0x33")),s={},r=t[Jr("0x44")];if(n[Jr("0x26")](Jr("0x79")),n[Jr("0x6")].registerElementLabel(Jr("0x2e"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n[Jr("0x6")][Jr("0x28")](Jr("0x1f"),(t=>Yo(r,Jr("0x9"),t))),n[Jr("0x6")].registerElementLabel(Jr("0x15"),(()=>Yo(r,Jr("0x6a")))),t[Jr("0x27")][Jr("0x64")](Jr("0x3e"))&&n[Jr("0x26")](Jr("0x69")),t[Jr("0x27")].has("ImageBlockEditing")&&t[Jr("0x27")][Jr("0x64")]("ImageInlineEditing")&&(n[Jr("0x26")](Jr("0x5b"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x6d")][Jr("0x70")].selection);t[Jr("0x6d")][Jr("0x40")]((()=>{n[Jr("0x1e")](r,{commandName:Jr("0x5b"),commandParams:[s]},[],Jr("0x51"))}))})),n[Jr("0x26")](Jr("0x12"),((e,s)=>{t[Jr("0x6d")].change((r=>{let x=o[Jr("0x2c")](t[Jr("0x6d")][Jr("0x70")][Jr("0xe")]),a=r[Jr("0x17")](x);const c=i.LivePosition[Jr("0x34")](a.start,Jr("0x77")),l=i.LivePosition[Jr("0x34")](a[Jr("0x3c")],Jr("0x1d"));n[Jr("0x42")]((()=>e(s))),x=o[Jr("0x2c")](t[Jr("0x6d")].document[Jr("0xe")]),a=r[Jr("0x17")](x);const u=r.createRange(c,l);c[Jr("0x47")](),l.detach(),n[Jr("0x1e")](x,{commandName:Jr("0x5b"),commandParams:[]},[],"convertInlineImageToBlock"),u[Jr("0xb")][Jr("0x5e")](a[Jr("0xb")])&&n[Jr("0x76")](r.createRange(u[Jr("0xb")],a[Jr("0xb")]),"convertInlineImageToBlock"),a.end[Jr("0x5e")](u[Jr("0x3c")])&&n[Jr("0x76")](r[Jr("0x62")](a.end,u[Jr("0x3c")]),Jr("0xa"))}))})),n[Jr("0x0")][Jr("0x78")]("formatBlock",Jr("0xa"),Jr("0x3d"),(()=>!1)),n[Jr("0x0")][Jr("0x78")](Jr("0x6c"),Jr("0xa"),"accept",(()=>!1)),n[Jr("0x0")][Jr("0x78")](Jr("0x6c"),Jr("0xa"),Jr("0x3"),n[Jr("0x0")].getSuggestionCallback("formatBlock","",Jr("0xc"))),n[Jr("0x0")][Jr("0x78")](Jr("0x3f"),Jr("0xa"),Jr("0x3d"),(()=>!1)),n[Jr("0x0")][Jr("0x78")]("insertion",Jr("0xa"),"discard",(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(Jr("0x3f"),"","discard");let s=e[Jr("0xb")],r=e[Jr("0x3c")];const i=t[Jr("0x6d")][Jr("0x74")][Jr("0x1a")](s,Jr("0x5")),x=t.model[Jr("0x74")][Jr("0x1a")](r,Jr("0x52"));i[Jr("0x41")]&&(s=i[Jr("0xb")]),x[Jr("0x41")]&&(r=x[Jr("0x3c")]),o([t.model.createRange(s,r)])})),n[Jr("0x0")][Jr("0x78")](Jr("0x6c"),Jr("0xa"),Jr("0x67"),c),n[Jr("0x0")][Jr("0x78")]("insertion","convertInlineImageToBlock",Jr("0x67"),c)),t[Jr("0x27")][Jr("0x64")](Jr("0x36"))&&(n[Jr("0x26")]("toggleImageCaption",((e,s)=>{const r=t[Jr("0x27")][Jr("0xd")](Jr("0xf"));let i=o[Jr("0x2c")](t[Jr("0x6d")][Jr("0x70")][Jr("0xe")]),x=r[Jr("0x8")](i);t.model[Jr("0x40")]((()=>{if(x)return void n[Jr("0x5f")](t[Jr("0x6d")][Jr("0x17")](x));const a=o[Jr("0x68")](i);e(s),i=o[Jr("0x2c")](t[Jr("0x6d")][Jr("0x70")][Jr("0xe")]),x=r[Jr("0x8")](i),n[Jr("0x76")](t[Jr("0x6d")].createRangeOn(x),a?null:Jr("0x4"))}))})),n[Jr("0x0")][Jr("0x78")]("insertion","imageCaption",Jr("0x67"),c)),t.plugins[Jr("0x64")](Jr("0x55"))){n[Jr("0x26")](Jr("0x50"),((s,r)=>{const i=t[Jr("0x27")][Jr("0xd")](Jr("0x48")).me,x=t[Jr("0x37")][Jr("0xd")](Jr("0x50"));let a=o[Jr("0x2c")](t.model[Jr("0x70")][Jr("0xe")]),c=t[Jr("0x6d")][Jr("0x17")](a),l=x.value;if(l==r[Jr("0x38")])return;const u={commandName:Jr("0x50"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x6d")][Jr("0x40")]((()=>{if(n.getSuggestions()[Jr("0x4e")]((t=>t[Jr("0x10")]&&i==t[Jr("0x7b")]&&(Jr("0x6c")==t.type||Jr("0x1")==t[Jr("0x63")])&&("imageStylePreApply"==t[Jr("0x59")]||Jr("0x31")==t.subType)&&t[Jr("0x4b")]().isEqual(c)))[Jr("0x53")]((t=>n.discardSuggestion(t[Jr("0x19")]))),a=o.getClosestSelectedImageElement(t[Jr("0x6d")].document[Jr("0xe")]),c=t[Jr("0x6d")][Jr("0x17")](a),x[Jr("0x30")](),t.commands.get(Jr("0x5b")).refresh(),t[Jr("0x37")][Jr("0xd")](Jr("0x12"))[Jr("0x30")](),l=x[Jr("0x38")],l!=r[Jr("0x38")])return o.isInlineImage(a)&&x.shouldConvertImageType(r[Jr("0x38")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Jr("0x6d")][Jr("0x70")][Jr("0xe")]),void n[Jr("0x1e")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x32"))):void(o[Jr("0x68")](a)?n[Jr("0x1e")](a,u,[],Jr("0x31")):n[Jr("0x4c")](c,u,Jr("0x31")))}))}));for(const e of t[Jr("0x27")][Jr("0xd")]("ImageStyleEditing").normalizedStyles)s[e[Jr("0x2")]]=e[Jr("0x72")][Jr("0x2d")]();n[Jr("0x0")].registerCustomCallback("formatBlock",Jr("0x32"),Jr("0x3d"),(()=>!1)),n._suggestionFactory.registerCustomCallback("formatBlock",Jr("0x31"),"join",(()=>!1)),n[Jr("0x0")][Jr("0x78")]("formatInline",Jr("0x31"),"join",(()=>!1)),n._suggestionFactory[Jr("0x78")](Jr("0x6c"),Jr("0x32"),Jr("0xc"),(()=>!1)),n[Jr("0x0")][Jr("0x78")]("formatBlock",Jr("0x32"),Jr("0x3"),((t,e)=>{n[Jr("0x0")][Jr("0x54")](Jr("0x6c"),"",Jr("0xc"))(t,{commandName:e[Jr("0x6e")],commandParams:e[Jr("0x5d")]})})),n[Jr("0x0")][Jr("0x78")](Jr("0x6c"),Jr("0x32"),"chain",c)}const x=[{type:Jr("0x6c"),subType:Jr("0x32")},{type:Jr("0x3f"),subType:Jr("0x4")},{type:Jr("0x6c"),subType:Jr("0xa")},{type:Jr("0x3f"),subType:Jr("0xa")}];function a(t,e){const s=x[Jr("0x24")]((({type:e,subType:n})=>t[Jr("0x63")]==e&&t[Jr("0x59")]==n)),r=x.findIndex((({type:t,subType:n})=>e.type==t&&e[Jr("0x59")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x4b")](),a=e[Jr("0x4b")]();if((0==s||1==s)&&2==r&&i[Jr("0x65")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x20")](i,Jr("0x3f"))[Jr("0x4e")]((({suggestion:t,meta:e})=>e[Jr("0x61")]&&Jr("0xa")==t[Jr("0x59")]));if(t[Jr("0x60")]>1&&a[Jr("0x3c")][Jr("0x4a")](i[Jr("0xb")]))return!0;if(1==t[Jr("0x60")]&&(i[Jr("0xb")][Jr("0x4a")](a.end)||i[Jr("0x3c")][Jr("0x4a")](a.start)))return!0}if(3==s&&3==r&&i[Jr("0xb")][Jr("0x5e")](a[Jr("0xb")])){const t=i[Jr("0x3c")][Jr("0x5a")],e=a[Jr("0xb")][Jr("0x3a")];return o[Jr("0x68")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[Jr("0x70")][Jr("0x16")]((()=>{let e=!1;const s=Array[Jr("0x73")](t[Jr("0x6d")].document[Jr("0x14")][Jr("0x57")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x1b")](t);if("suggestion"==s&&n[Jr("0x7")](a)){if(Jr("0x6c")==i&&(Jr("0x32")==x||Jr("0x31")==x)){const t=n[Jr("0x45")](a);if(r[Jr("0x7a")]){const s=t[Jr("0x4b")]()[Jr("0x66")]();if(o[Jr("0x68")](s))continue;n[Jr("0x11")](t),e=!0}}if(Jr("0x3f")==i&&Jr("0x4")==x&&!r[Jr("0x7a")]){const t=n[Jr("0x45")](a);t[Jr("0x56")]&&t[Jr("0x56")].isInContent&&(n[Jr("0x11")](t[Jr("0x56")]),e=!0)}}}return e})),t.plugins[Jr("0x64")](Jr("0x75"))&&n[Jr("0x26")]("resizeImage",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x6d")][Jr("0x70")][Jr("0xe")]);r.getAttribute(Jr("0x39"))!=s[Jr("0x39")]&&t[Jr("0x6d")].change((()=>{n[Jr("0x1e")](r,{commandName:Jr("0x2f"),commandParams:[s]})}))})),t.plugins[Jr("0x64")](Jr("0x2a"))&&n[Jr("0x26")](Jr("0x4d"),((e,s)=>{const r=o[Jr("0x2c")](t[Jr("0x6d")][Jr("0x70")][Jr("0xe")]);(r[Jr("0x3b")]("alt")?r[Jr("0x13")](Jr("0x58")):"")!=s[Jr("0x5c")]&&t[Jr("0x6d")][Jr("0x40")]((()=>{n[Jr("0x1e")](r,{commandName:Jr("0x4d"),commandParams:[s]})}))})),n[Jr("0x6")][Jr("0x6b")]((t=>{if(x[Jr("0x35")]((({type:e,subType:n})=>t[Jr("0x63")]==e&&t[Jr("0x59")]==n)))return t[Jr("0x71")]?{}:void 0})),n[Jr("0x6")][Jr("0x6b")]((t=>{if(Jr("0x3f")==t[Jr("0x63")]||Jr("0x21")==t.type){const e=t[Jr("0x66")]();if(e&&e.is(Jr("0x4f"),Jr("0x15")))return{type:Jr("0x3f")==t[Jr("0x63")]?Jr("0x2b"):Jr("0x23"),element:e,quantity:1}}})),n[Jr("0x6")][Jr("0x6b")]((t=>Jr("0x6c")==t[Jr("0x63")]&&Jr("0xa")==t[Jr("0x59")]?{type:Jr("0x43"),content:Jr("0x22")}:"formatBlock"==t[Jr("0x63")]&&Jr("0x51")==t[Jr("0x59")]?{type:Jr("0x43"),content:Jr("0x18")}:void 0)),n[Jr("0x6")][Jr("0x6b")]((t=>{const{data:e}=t;if(e){if(Jr("0x50")==e.commandName){const t=e[Jr("0x25")][0][Jr("0x38")];return n=Jr("0x46")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x43"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x4d")==e[Jr("0x6e")]){const t=e[Jr("0x25")][0][Jr("0x5c")];return t?{type:Jr("0x43"),content:Yo(r,Jr("0x1c"),'"'+t+'"')}:{type:Jr("0x43"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x2f")==e.commandName){const t=e[Jr("0x25")][0][Jr("0x39")];return t?{type:Jr("0x43"),content:Yo(r,"*Set image width:* %0",t)}:{type:"format",content:Yo(r,Jr("0x6f"))}}}var n}))}}const Zr=["formatBlock","selection","handleSuggestionDescription","TrackChangesEditing","commandName","source","getContainedElement","_suggestionFactory","*Format:* replace image URL","replaceImageSource","Users","author","document","discard","locale","plugins","handleReplaceImageCommand","model","markBlockFormat","getSuggestionCallback","src","accept","enableCommand","editor","getSelectedElement","registerCustomCallback","get","_descriptionFactory","ImageEditing","subType","registerDescriptionCallback"];var Yr,ti;Yr=Zr,ti=328,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x5")][ei("0x1c")].has(ei("0xa")))return;const t=this[ei("0x5")][ei("0x1c")][ei("0x8")](ei("0x10"));t[ei("0x4")]("replaceImageSource",((t,e)=>this[ei("0x1d")](t,e))),t[ei("0x14")].registerCustomCallback("formatBlock","replaceImageSource",ei("0x3"),t[ei("0x14")].getSuggestionCallback(ei("0xd"),null,ei("0x1a"))),t[ei("0x14")][ei("0x7")](ei("0xd"),"replaceImageSource","discard",t[ei("0x14")][ei("0x1")](ei("0xd"),null,ei("0x3"))),t[ei("0x9")][ei("0xc")]((t=>this[ei("0xf")](t)))}handleReplaceImageCommand(t,e){const n=this.editor.plugins[ei("0x8")](ei("0x10")),o=this[ei("0x5")][ei("0x1e")][ei("0x19")][ei("0xe")][ei("0x6")]();this[ei("0x5")].model.change((()=>{let s=o.getAttribute(ei("0x2"));const r=this[ei("0x5")][ei("0x1c")][ei("0x8")](ei("0x17")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ei("0x13")]();if(ei("0x16")===t[ei("0xb")]&&e===o){t[ei("0x18")]!==r&&t.discard(),s=t.data.commandParams[0][ei("0x12")];break}}t(e),n[ei("0x0")](o,{commandName:ei("0x16"),commandParams:[{source:s}]},[],ei("0x16"))}))}[ei("0xf")](t){const{data:e}=t;if(e&&ei("0x16")===e[ei("0x11")]){const t=ei("0x15");return{type:"format",content:Yo(this[ei("0x5")][ei("0x1b")],t)}}}}const oi=["listenTo","lowest","TrackChangesEditing","dataInsert","trackChanges","_trackChangesExecuted","value","importWord","execute","editor","_trackChangesValueDuringImport","afterInit","_handleImportedData","bind","collaboration_features","plugins","get","forEach","commands","enableCommand"];var si,ri;si=oi,ri=357,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._trackChangesValueDuringImport=!1,this[ii("0x8")]=!1}[ii("0xe")](){const t=this[ii("0xc")],e=t[ii("0x1")].get(ii("0xa")),n=t[ii("0x1")][ii("0x13")](ii("0x7"));e&&(e.on(ii("0xb"),((t,[,e])=>{this[ii("0xd")]=n[ii("0x9")],e[ii("0x11")].track_changes=!this[ii("0xd")]}),{priority:"high"}),this[ii("0x3")](e,ii("0x6"),this[ii("0xf")][ii("0x10")](this)),this[ii("0x3")](e,ii("0x6"),(()=>{this[ii("0x8")]&&(n[ii("0xb")](),this._trackChangesExecuted=!1)}),{priority:ii("0x4")}),t[ii("0x12")][ii("0x13")]("TrackChangesEditing")[ii("0x2")](ii("0xa")))}[ii("0xf")](t,e){const{suggestions:n}=e,o=this[ii("0xc")][ii("0x1")].get("trackChanges"),s=o[ii("0x9")];this[ii("0xd")]!==s&&(o[ii("0xb")](),this[ii("0x8")]=!0),n&&n[ii("0x0")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xc")][ii("0x12")][ii("0x13")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xa")}}};this[ii("0xc")][ii("0x12")][ii("0x13")](ii("0x5"))._setSuggestionData(s)}))}}const ai=["checkAttribute","indent","getSelectedBlocks","IndentEditing","has","locale","filter","selection","editor","afterInit","document","_descriptionFactory","enableCommand","markBlockFormat","format","blockIndent","model","change","*Outdent:* %0","getItemLabel","plugins","*Indent:* %0","get","commandName","outdentBlock","TrackChangesEditing","getItems","IndentBlock","registerDescriptionCallback","indentBlock","outdent"];var ci,li;ci=ai,li=289,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x1e")](){const t=this[ui("0x1d")],e=t[ui("0xa")][ui("0xc")](ui("0xf"));t[ui("0xa")][ui("0x19")](ui("0x18"))&&(e[ui("0x2")](ui("0x16")),e[ui("0x2")](ui("0x14")));const n=t[ui("0x1a")];if(t[ui("0xa")][ui("0x19")](ui("0x11"))){for(const n of["indentBlock",ui("0xe")])e[ui("0x2")](n,(()=>{const o=Array.from(this[ui("0x1d")][ui("0x6")][ui("0x0")][ui("0x1c")][ui("0x17")]())[ui("0x1b")]((t=>this[ui("0x1d")][ui("0x6")].schema[ui("0x15")](t,ui("0x5"))));t.model[ui("0x7")]((()=>{for(const t of o)e[ui("0x3")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x13")})}))}));e[ui("0x1")][ui("0x12")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x13")!=o[ui("0xd")]&&"outdentBlock"!=o.commandName)return;const s=t[ui("0x10")]()[0],r=e[ui("0x1")][ui("0x9")](s);return ui("0x13")==o.commandName?{type:ui("0x4"),content:Yo(n,ui("0xb"),r)}:ui("0xe")==o[ui("0xd")]?{type:ui("0x4"),content:Yo(n,ui("0x8"),r)}:void 0}))}}}var gi,mi,fi=["TrackChangesEditing","requires","plugins","editor","input","init"];gi=fi,mi=178,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("0x3")](){return[Vs.Input]}[hi("0x1")](){this[hi("0x5")][hi("0x4")].get(hi("0x2")).enableCommand(hi("0x0"))}}const bi=["getAttribute","hasAttribute","from","*Set link:* %0","format","_descriptionFactory","registerDescriptionCallback","markInlineFormat","change","model","has","document","editor","unlink","isCollapsed","getFirstPosition","plugins","LinkEditing","commandName","linkHref","*Remove link*","link","TrackChangesEditing","getRanges","locale","getFirstRange","enableCommand","afterInit","selection","commandParams","get"];var Ei,_i;Ei=bi,_i=448,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xd")](){const t=this.editor;if(!t.plugins[Ti("0x1b")](Ti("0x3")))return;const e=t[Ti("0x2")][Ti("0x10")](Ti("0x8"));e[Ti("0xc")](Ti("0x7"),((n,o)=>{const s=t[Ti("0x1a")][Ti("0x1c")][Ti("0xe")];let r=[];if(s.isCollapsed){if(!s[Ti("0x12")]("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x1")](),Ti("0x5"),s[Ti("0x11")]("linkHref"),t.model);r=[e]}}else r=Array[Ti("0x13")](s[Ti("0x9")]());t[Ti("0x1a")][Ti("0x19")]((()=>{for(const t of r)e[Ti("0x18")](t,{commandName:Ti("0x7"),commandParams:[o]})}))})),e[Ti("0xc")](Ti("0x1e"),(()=>{const n=this[Ti("0x1d")][Ti("0x1a")],o=n[Ti("0x1c")][Ti("0xe")];n[Ti("0x19")]((()=>{let n=[];n=o[Ti("0x0")]?[(0,Vs.findAttributeRange)(o[Ti("0x1")](),"linkHref",o[Ti("0x11")](Ti("0x5")),t[Ti("0x1a")])]:ms(Ti("0x5"),o[Ti("0xb")](),t[Ti("0x1a")]);for(const t of n)e[Ti("0x18")](t,{commandName:"unlink",commandParams:[]})}))})),e[Ti("0x16")][Ti("0x17")]((e=>{const{data:n}=e,o=t[Ti("0xa")];if(n){if(Ti("0x7")==n.commandName){const t=n[Ti("0xf")][0];return{type:Ti("0x15"),content:Yo(o,Ti("0x14"),'"'+t+'"')}}return"unlink"==n[Ti("0x4")]?{type:"format",content:Yo(o,Ti("0x6"))}:void 0}}))}}const yi=["plugins","selection","schema","commandParams","afterInit","bulletedList","has","_selectedElements","*Change to:* %0","todoList","before","forceValue","outdentList","_descriptionFactory","listItem","listType","nextSibling","registerElementLabel","get","getSelectedBlocks","paragraph","ListEditing","registerDescriptionCallback","name","checkTodoList","findIndex","*Indent:* %0","change","model","document","parent","commands","ELEMENT_TODO_LIST","numberedList","blockName","TrackChangesEditing","value","TodoListEditing","add","*Outdent:* %0","length","List","filter","bulleted","slice","markBlockFormat","enableCommand","from","todo","ELEMENT_NUMBERED_LIST","listIndent","ELEMENT_BULLETED_LIST","commandName","execute","createPositionAt","locale","getAttribute","isObject","*Uncheck item*","format","indentList","previousSibling","end","element","ELEMENT_LIST_ITEM"];var ki,Ai;ki=yi,Ai=317,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")](){const t=this.editor,e=t[vi("0x3f")];if(!t.plugins[vi("0xe")](vi("0x1d")))return;const n=t[vi("0x8")].get(vi("0x2b")),o=t.plugins[vi("0xe")](vi("0x2d"));function s(e){return()=>{const o=t[vi("0x24")][vi("0x25")][vi("0x9")],s=t[vi("0x27")][vi("0x1a")](e);if(s.value)return void t[vi("0x3d")](vi("0x1c"),{});const r=e[vi("0x34")](0,-4),i=function(t,e,n){let o=Array[vi("0x37")](t)[vi("0x32")]((t=>{return e=t,(o=n).checkChild(e[vi("0x26")],vi("0x16"))&&!o[vi("0x0")](e);var e,o}));o=o[vi("0x32")]((t=>!t.is(vi("0x6"),vi("0x16"))||t[vi("0x40")](vi("0x17"))!=e));const s=new Set;for(const t of o)t.is(vi("0x6"),vi("0x16"))?s[vi("0x2e")](Si(t)):s[vi("0x2e")](t);return Array[vi("0x37")](s)}(o[vi("0x1b")](),r,t[vi("0x24")][vi("0xa")]);t[vi("0x24")][vi("0x23")]((()=>{for(const t of i)n[vi("0x35")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x2c")]}],formatGroupId:vi("0x2a")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x37")](t);const n=e[vi("0x21")]((t=>vi("0x16")!=t.name));return n>-1&&(e=e[vi("0x34")](0,n)),e}(t[vi("0x24")][vi("0x25")][vi("0x9")][vi("0x1b")]()),s=t[vi("0x24")].createRange(t[vi("0x24")][vi("0x3e")](o[0],vi("0x12")),t[vi("0x24")][vi("0x3e")](o[o[vi("0x30")]-1],vi("0x5")));t.model.change((()=>{n[vi("0x35")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x3a")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x18")];for(;t&&t[vi("0x40")](vi("0x3a"))>n.getAttribute(vi("0x3a"));)e[vi("0x2e")](t),t=t[vi("0x18")]}return Array[vi("0x37")](e)}(o))}))}}n.enableCommand(vi("0x29"),s(vi("0x29"))),n[vi("0x36")]("bulletedList",s(vi("0xd"))),o&&n[vi("0x36")](vi("0x11"),s("todoList")),n.enableCommand(vi("0x3"),r(vi("0x3"))),n[vi("0x36")](vi("0x14"),r(vi("0x14"))),o&&n[vi("0x36")](vi("0x20"),(()=>{const e=t.commands[vi("0x1a")]("checkTodoList"),o=Array[vi("0x37")](e[vi("0xf")]);o[vi("0x32")]((t=>t[vi("0x40")]("todoListChecked")!=e[vi("0x2c")])),t[vi("0x24")].change((()=>{for(const t of o)n[vi("0x35")](t,{commandName:vi("0x20"),commandParams:[{forceValue:!e[vi("0x2c")]}]})}))})),n[vi("0x15")][vi("0x19")](vi("0x16"),(t=>Yo(e,vi("0x7"),t))),n[vi("0x15")][vi("0x1e")]((t=>{const{data:n}=t;if(n){if(vi("0x29")==n.commandName||vi("0xd")==n[vi("0x3c")]||vi("0x11")==n[vi("0x3c")])switch(n[vi("0x3c")].replace(vi("0x31"),"")){case vi("0x33"):return o(Yo(e,vi("0x3b")));case"numbered":return o(Yo(e,vi("0x39")));case vi("0x38"):return o(Yo(e,vi("0x28")))}if(vi("0x3")==n[vi("0x3c")])return{type:vi("0x2"),content:Yo(e,vi("0x22"),Yo(e,vi("0x7")))};if(vi("0x14")==n[vi("0x3c")])return{type:vi("0x2"),content:Yo(e,vi("0x2f"),Yo(e,vi("0x7")))};if("checkTodoList"==n[vi("0x3c")])return n[vi("0xb")][0][vi("0x13")]?{type:vi("0x2"),content:Yo(e,"*Check item*")}:{type:"format",content:Yo(e,vi("0x1"))}}function o(t){return{type:vi("0x2"),content:Yo(e,vi("0x10"),t)}}}))}}function Si(t){const e=t[vi("0x40")](vi("0x3a"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x4")].is(vi("0x6"),vi("0x16"));){const o=t.previousSibling.getAttribute("listIndent");if(o==e)n=t[vi("0x4")];else if(o<e)break;t=t[vi("0x4")]}return n}function Ii(t){const e=[];if(t.is(vi("0x6"),vi("0x16"))&&t[vi("0x40")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x16")==n[vi("0x1f")]&&n[vi("0x40")](vi("0x3a"))==t[vi("0x40")]("listIndent");)e.push(n),n=n.nextSibling}return e}const Li=["markMultiRangeBlockFormat","_getSuggestionBlocksForListStyle","handleListStartCommand","toUpperCase","getFirstPosition","*Change to:* %0","parent","list.properties","type","createRange","change","_LIST_","getListTypeFromListStyleType","unshift","TrackChangesEditing","element","_getTranslationKeyForListStyle","getSelectedBlocks","length","getAttribute","handleListReversedCommand","commandName","createPositionAt","handleDescriptions","getSiblingNodes","ELEMENT_","filter","reversed","editor","bind","listStyle","config","startIndex","format","*Format:* set order to reversed","ListUtils","listReversed","listStart","enableCommand","push","commandParams","before","replace","_getSuggestionBlocks","plugins","forward","backward","*Format:* set start index to %0","handleListStyleCommand","from","selection","_descriptionFactory","model","get","document","ListPropertiesEditing","numbered","listItem","map","listType","getLastPosition"];var Ni,Mi;Ni=Li,Mi=110,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this.editor[wi("0x38")].has(wi("0x6")))return;const t=this[wi("0x28")][wi("0x2b")][wi("0x4")](wi("0x13")),e=this[wi("0x28")][wi("0x38")].get(wi("0x1a"));t.styles&&e.enableCommand(wi("0x2a"),this[wi("0x3c")][wi("0x29")](this)),t[wi("0x27")]&&e[wi("0x32")](wi("0x30"),this[wi("0x20")].bind(this)),t[wi("0x2c")]&&e[wi("0x32")](wi("0x31"),this[wi("0xe")].bind(this)),e[wi("0x2")].registerDescriptionCallback(this[wi("0x23")][wi("0x29")](this))}handleListStyleCommand(t,e={}){const n=this.editor[wi("0x38")][wi("0x4")]("TrackChangesEditing"),o=this[wi("0xd")]();this[wi("0x28")][wi("0x3")].change((()=>{n[wi("0xc")](o,{commandName:wi("0x2a"),commandParams:[{type:e[wi("0x14")]}],formatGroupId:wi("0x2a")})}))}[wi("0x20")](t,e={}){const n=this.editor[wi("0x38")][wi("0x4")](wi("0x1a")),o=this[wi("0x37")]((t=>t.is(wi("0x1b"),wi("0x8"))&&"numbered"===t[wi("0x1f")](wi("0xa"))));if(o[wi("0x1e")]<1)return;const s=o[wi("0x9")]((t=>this[wi("0x28")].model[wi("0x15")](this[wi("0x28")][wi("0x3")].createPositionAt(t,wi("0x35")),this[wi("0x28")].model.createPositionAt(t,0))));this[wi("0x28")][wi("0x3")][wi("0x16")]((()=>{n[wi("0xc")](s,{commandName:wi("0x30"),commandParams:[{reversed:e[wi("0x27")]}],formatGroupId:"listReversed"})}))}[wi("0xe")](t,e={}){const n=this[wi("0x28")][wi("0x38")][wi("0x4")](wi("0x1a")),o=this._getSuggestionBlocks((t=>t.is(wi("0x1b"),wi("0x8"))&&wi("0x7")===t[wi("0x1f")](wi("0xa"))));if(o.length<1)return;const s=o[wi("0x9")]((t=>this[wi("0x28")].model.createRange(this.editor[wi("0x3")][wi("0x22")](t,wi("0x35")),this[wi("0x28")][wi("0x3")][wi("0x22")](t,0))));this[wi("0x28")].model[wi("0x16")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x31"),commandParams:[{startIndex:e[wi("0x2c")]}],formatGroupId:wi("0x31")})}))}[wi("0x23")](t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x21")]){case wi("0x2a"):o=wi("0x11"),s={type:wi("0x2d"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wi("0x14")])))};break;case wi("0x30"):o=n[wi("0x34")][0][wi("0x27")]?wi("0x2e"):"*Format:* set order to regular",s={type:wi("0x2d"),content:Yo(e,o)};break;case"listStart":o=wi("0x3b"),s={type:wi("0x2d"),content:Yo(e,o,n[wi("0x34")][0][wi("0x2c")])}}return s}[wi("0xd")](){var t,e,n,o;const s=this[wi("0x28")][wi("0x38")][wi("0x4")](wi("0x2f"));let r=Array[wi("0x0")](this.editor[wi("0x3")][wi("0x5")][wi("0x1")][wi("0x1d")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x1b"),"listItem"))&&r[wi("0x19")](...s.getSiblingNodes(this[wi("0x28")][wi("0x3")].document[wi("0x1")][wi("0x10")](),wi("0x3a"))),(null===(e=r[r[wi("0x1e")]-1])||void 0===e?void 0:e.is("element","listItem"))&&r[wi("0x33")](...s.getSiblingNodes(this[wi("0x28")][wi("0x3")][wi("0x5")][wi("0x1")][wi("0xb")](),wi("0x39"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x28")][wi("0x3")][wi("0x5")].selection[wi("0x10")]())||void 0===n?void 0:n[wi("0x12")])||void 0===o?void 0:o.is("element",wi("0x8")))&&(r=r.filter((t=>t.is(wi("0x1b"),wi("0x8"))))),r}[wi("0x37")](t){const e=this[wi("0x28")][wi("0x38")].get(wi("0x2f"));let n=Array[wi("0x0")](this.editor[wi("0x3")][wi("0x5")].selection.getSelectedBlocks())[wi("0x26")](t)[wi("0x9")]((t=>{const n=this[wi("0x28")][wi("0x3")][wi("0x22")](t,0);return[...e[wi("0x24")](n,wi("0x3a")),...e[wi("0x24")](n,"forward")]})).flat();return n=[...new Set(n)],n}[wi("0x1c")](t){return wi("0x25")+this.editor.plugins[wi("0x4")](wi("0x2f"))[wi("0x18")](t).toUpperCase()+wi("0x17")+t[wi("0xf")]()[wi("0x36")](/-/g,"_")}}const Fi=["ELEMENT_MEDIA","locale","attribute:url:media","stop","enableCommand","showSuggestionHighlights","data","div","MediaEmbedEditing","_descriptionFactory","media","afterInit","elementToElement","for","mediaEmbed","high","plugins","registerElementLabel"];var Pi,Di;Pi=Fi,Di=232,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xd")](){const t=this.editor;if(!t[Bi("0x0")].has(Bi("0xa")))return;const e=t[Bi("0x0")].get("TrackChangesEditing"),n=t[Bi("0x3")];e[Bi("0x6")](Bi("0x10")),e[Bi("0xb")][Bi("0x1")](Bi("0xc"),(t=>Yo(n,Bi("0x2"),t))),t.conversion[Bi("0xf")]("dataDowncast")[Bi("0xe")]({model:Bi("0xc"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e.createEmptyElement(Bi("0x9"))},converterPriority:Bi("0x11")}),t[Bi("0x8")].downcastDispatcher.on(Bi("0x4"),((t,e,n)=>{n.options[Bi("0x7")]&&t[Bi("0x5")]()}),{priority:"high"})}}const Ui=["plugins","mention","get","MentionEditing","enableCommand"];var Gi,Hi;Gi=Ui,Hi=449,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this.editor;t[zi("0x1")].has(zi("0x4"))&&t[zi("0x1")][zi("0x3")]("TrackChangesEditing")[zi("0x0")](zi("0x2"))}}const Vi=["get","afterInit","has","TrackChangesEditing","registerElementLabel","enableCommand","pageBreak","ELEMENT_PAGE_BREAK","plugins"];var Ki,Xi;Ki=Vi,Xi=182,function(t){for(;--t;)Ki.push(Ki.shift())}(++Xi);const qi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[qi("0x8")](){const t=this.editor;if(!t[qi("0x6")][qi("0x0")]("PageBreakEditing"))return;t.plugins[qi("0x7")](qi("0x1"))[qi("0x3")](qi("0x4"));const e=t[qi("0x6")].get(qi("0x1")),n=t.locale;e._descriptionFactory[qi("0x2")](qi("0x4"),(t=>Yo(n,qi("0x5"),t)))}}const Ji=["locale","afterInit","from","mapper","document","$text","downcastDispatcher","_descriptionFactory","plugins","paragraph","parent","bindElementToMarker","registerElementLabel","highest","isTouching","checkChild","getFirstRange","markBlockFormat","isBlock","model","markerRange","insertParagraph","editor","end","nodeAfter","options","ELEMENT_PARAGRAPH","*Change to:* %0","writer","start","TrackChangesEditing","addMarker:suggestion:insertion","consume","change","registerDescriptionCallback","filter","markerName","name","activeMarkers","selection","isLimit","consumable","includes","schema","toViewPosition","getSelectedBlocks","insertion","showSuggestionHighlights","enableCommand","get","Paragraph"];var Qi,Zi;Qi=Ji,Zi=331,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("0x30")];if(!t[Yi("0x22")].has(Yi("0x19")))return;const e=t[Yi("0x1a")],n=t.plugins[Yi("0x18")](Yi("0x5"));n[Yi("0x21")][Yi("0x26")]("paragraph",(t=>Yo(e,Yi("0x1"),t))),n[Yi("0x17")](Yi("0x23"),((e,o={})=>{const s=t[Yi("0x2d")][Yi("0x1e")],r=o[Yi("0xe")]||s[Yi("0xe")],i=Array[Yi("0x1c")](r[Yi("0x14")]())[Yi("0xa")]((t=>{return e=t,(n=this.editor[Yi("0x2d")][Yi("0x12")])[Yi("0x29")](e[Yi("0x24")],Yi("0x23"))&&!n.isObject(e)&&Yi("0x23")!=e[Yi("0xc")];var e,n}));t[Yi("0x2d")][Yi("0x8")]((()=>{for(const t of i)n[Yi("0x2b")](t,{commandName:Yi("0x23"),commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n._descriptionFactory[Yi("0x9")]((t=>{const{data:n}=t;if(n&&Yi("0x23")==n.commandName)return{type:"format",content:Yo(e,Yi("0x2"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x2f")),t.editing[Yi("0x20")].on(Yi("0x6"),ex(t),{priority:Yi("0x27")}),t.data[Yi("0x20")].on(Yi("0x6"),((e,n,o)=>{o[Yi("0x0")][Yi("0x16")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x27")});const o=n[Yi("0x21")];o[Yi("0x9")]((n=>{if("insertion"!==n.type)return;const{start:s,end:r}=n[Yi("0x2a")]();if(!s[Yi("0x28")](r)||!s[Yi("0x32")])return;const i=t[Yi("0x2d")][Yi("0x12")],x=s[Yi("0x32")];return i[Yi("0x2c")](x)&&!i[Yi("0xf")](x)&&i[Yi("0x29")](x,Yi("0x1f"))?{type:Yi("0x15"),content:Yo(e,"*Insert:* %0",o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x22")][Yi("0x18")](Yi("0x5")),i=o[Yi("0x2e")][Yi("0x4")],x=o[Yi("0x2e")][Yi("0x31")],a=t.model[Yi("0x12")];if(!i[Yi("0x28")](x)||!i[Yi("0x32")])return;const c=i[Yi("0x32")];if(a[Yi("0x2c")](c)&&!a[Yi("0xf")](c)&&a[Yi("0x29")](c,Yi("0x1f"))){if(!s[Yi("0x10")][Yi("0x7")](o[Yi("0x2e")],n[Yi("0xc")]))return;const t=s[Yi("0x3")].createUIElement("span",{class:"ck-suggestion-marker-split"}),i=s.mapper[Yi("0x13")](x);e&&r[Yi("0xd")][Yi("0x11")](o[Yi("0xb")])&&s[Yi("0x3")].addClass("ck-suggestion-marker--active",t),s[Yi("0x3")].insert(i,t),s[Yi("0x1d")][Yi("0x25")](t,o.markerName)}}}const nx=["RemoveFormatEditing","getItems","get","from","afterInit","editor","createRangeOn","locale","*Remove all formatting*","TrackChangesEditing","plugins","registerDescriptionCallback","_descriptionFactory","getAttributeProperties","enableCommand","change","getRanges","selection","removeFormat","commandName","isCollapsed","model","getAttributes","markInlineFormat","has"];var ox,sx;ox=nx,sx=200,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x4")](){const t=this[rx("0x5")];if(!t[rx("0xa")][rx("0x18")](rx("0x0")))return;const e=t[rx("0xa")][rx("0x2")](rx("0x9"));e[rx("0xe")](rx("0x12"),(n=>{const o=t[rx("0x15")].document[rx("0x11")];o[rx("0x14")]?n():t[rx("0x15")][rx("0xf")]((()=>{const n=Array[rx("0x3")](o[rx("0x10")]());for(const o of n)for(const n of o[rx("0x1")]())xx(n,t[rx("0x15")].schema)&&e[rx("0x17")](t[rx("0x15")][rx("0x6")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[rx("0xc")][rx("0xb")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[rx("0x13")])return{type:"format",content:Yo(t[rx("0x7")],rx("0x8"))}}))}}function xx(t,e){for(const[n]of t[rx("0x16")]()){const t=e[rx("0xd")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["editor","plugins","get","acceptSelectedSuggestions","trackChanges","enableCommand","RestrictedEditingModeEditing","has","goToNextRestrictedEditingException","discardSuggestion"];var cx,lx;cx=ax,lx=356,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this[ux("0x4")];if(!t[ux("0x5")][ux("0x1")](ux("0x0")))return;const e=t[ux("0x5")][ux("0x6")]("TrackChangesEditing");e[ux("0x9")]("goToPreviousRestrictedEditingException"),e[ux("0x9")](ux("0x2"));const n=t[ux("0x5")][ux("0x6")](ux("0x0"));n.enableCommand(ux("0x8")),n.enableCommand("acceptSuggestion"),n[ux("0x9")](ux("0x3")),n[ux("0x9")]("acceptAllSuggestions"),n[ux("0x9")]("discardAllSuggestions"),n[ux("0x9")](ux("0x7")),n[ux("0x9")]("discardSelectedSuggestions")}}const gx=["addMarker:suggestion:insertion","deletion","mapper","model","createUIElement","markerRange","toViewPosition","showSuggestionHighlights","test","softBreak","shiftEnter","ck-suggestion-marker-","high","insert","merge","name","locale","plugins","addClass","_descriptionFactory","consumable","split","bindElementToMarker","markerName","get","TrackChangesEditing","createPositionBefore","includes","writer","addMarker:suggestion:deletion","downcastDispatcher","addMarker:suggestion","enableCommand","ck-suggestion-marker--active","span","registerElementLabel"];var mx,fx;mx=gx,fx=496,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 requires(){return[nr.ShiftEnter]}init(){const t=this.editor,e=t[hx("0x19")][hx("0x20")](hx("0x21"));e[hx("0x4")](hx("0x12")),t.editing[hx("0x2")].on(hx("0x8"),bx(t),{priority:hx("0x14")}),t.editing[hx("0x2")].on(hx("0x1"),bx(t),{priority:hx("0x14")}),t.data[hx("0x2")].on(hx("0x3"),((e,n,o)=>{o.options[hx("0xf")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x1b")][hx("0x7")](hx("0x11"),(e=>Yo(t[hx("0x18")],"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x19")][hx("0x20")](hx("0x21"));if(!s[hx("0x1c")][hx("0x10")](o.markerRange,n[hx("0x17")]))return;const i=t[hx("0xb")];for(const t of o[hx("0xd")].getItems()){if(!t.is("element",hx("0x11")))continue;const n=hx("0x9")==o[hx("0x1f")][hx("0x1d")](":")[1]?hx("0x16"):hx("0x1d"),x=s[hx("0x0")][hx("0xc")](hx("0x6"),{class:hx("0x13")+n}),a=s[hx("0xa")][hx("0xe")](i[hx("0x22")](t));e&&r.activeMarkers[hx("0x23")](o[hx("0x1f")])&&s.writer[hx("0x1a")](hx("0x5"),x),s.writer[hx("0x15")](a,x),s[hx("0xa")][hx("0x1e")](x,o[hx("0x1f")])}}}const Ex=["TrackChangesEditing","plugins","commandName","registerDescriptionCallback","FORMAT_RESTRICTED_ENABLED","locale","forceValue","commandParams","StandardEditingModeEditing","selection","_descriptionFactory","from","value","commands","afterInit","getRanges","document","markInlineFormat","get","model","format","restrictedEditingException","has"];var _x,Tx;_x=Ex,Tx=212,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x9")](){const t=this.editor,e=t[Cx("0xe")],n=t[Cx("0x0")];if(!t[Cx("0x13")][Cx("0x11")](Cx("0x3")))return;const o=t[Cx("0x13")][Cx("0xd")](Cx("0x12")),s=Cx("0x10"),r=t[Cx("0x8")][Cx("0xd")](s);o.enableCommand(s,((t,n={})=>{const i=e[Cx("0xb")][Cx("0x4")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x1")]?n[Cx("0x1")]:!r[Cx("0x7")];e.change((()=>{const t=Array[Cx("0x6")](i[Cx("0xa")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x5")][Cx("0x15")]((t=>{const{data:e}=t;if(e&&e[Cx("0x14")]==s)return e[Cx("0x2")][0][Cx("0x1")]?{type:Cx("0xf"),content:Yo(n,Cx("0x16"))}:{type:Cx("0xf"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["every","editor","classes","has","config","_descriptionFactory","TrackChangesEditing","style:","enabledStyles","find","*Remove format:* %0","element","plugins","selection","getDefinitionsForView","enableCommand","style","commandParams","getRanges","markInlineFormat","change","DataSchema","afterInit","from","toLowerCase","_getRangesWithClasses","commandName","modelElements","push","style.definitions","*Format:* %0","styleName","getItems","document","locale","getAncestors","name","get","_getStyleDefinition","format","getAttribute","model","getSelectedBlocks","value","createRangeOn","forceValue","isBlock","includes"];var Ax,vx;Ax=kx,vx=383,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x17")](){const t=this[Rx("0x2")];if(!t[Rx("0xd")][Rx("0x4")]("Style"))return;const e=t.commands[Rx("0x26")]("style"),n=t.plugins[Rx("0x26")](Rx("0x7")),o=t[Rx("0x23")],s=t[Rx("0xd")][Rx("0x26")](Rx("0x16")),r=t[Rx("0xd")][Rx("0x26")]("StyleUtils").normalizeConfig(s,t[Rx("0x5")].get(Rx("0x1e")));n[Rx("0x10")](Rx("0x11"),((o,{styleName:i})=>{const x=t.model[Rx("0x22")][Rx("0xe")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0x9")][Rx("0x0")](i))return;if(x.isCollapsed&&!a[Rx("0x2f")])return void o({styleName:i});const c=!e[Rx("0x2c")][Rx("0x0")](a[Rx("0x25")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x24")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x0")](o[Rx("0x25")])){n.add(o);break}}return n}(x[Rx("0x2b")](),a[Rx("0x1c")]);t[Rx("0x2a")][Rx("0x15")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x8")+i})}))}else{let e=Array[Rx("0x18")](x[Rx("0x13")]());if(!c){const n=Array[Rx("0x18")](s[Rx("0xf")](a[Rx("0xc")],!1))[0][Rx("0x2a")],o=[];for(const s of e){const e=this[Rx("0x1a")](t.model,s,a[Rx("0x3")],n);o[Rx("0x1d")](...e)}e=o}t[Rx("0x2a")][Rx("0x15")]((()=>{for(const t of e)n[Rx("0x14")](t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x6")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Rx("0x11")===e[Rx("0x1b")])return e[Rx("0x12")][0][Rx("0x2e")]?{type:Rx("0x28"),content:Yo(o,Rx("0x1f"),e.commandParams[0].styleName[Rx("0x19")]())}:{type:"format",content:Yo(o,Rx("0xb"),e[Rx("0x12")][0][Rx("0x20")][Rx("0x19")]())}}))}[Rx("0x27")](t,e){let n=e.block[Rx("0xa")]((e=>e.name===t));return n||(n=e.inline[Rx("0xa")]((e=>e[Rx("0x25")]===t))),n}[Rx("0x1a")](t,e,n,o){const s=[];for(const r of e[Rx("0x21")]()){const e=r[Rx("0x29")](o);e&&n[Rx("0x1")]((t=>e[Rx("0x3")][Rx("0x0")](t)))&&s.push(t[Rx("0x2d")](r))}return s}}const Ix=["includes","span","forceValue","downcastDispatcher","setSelection","isEqual","*Insert:* %0","getRanges","commands","insertTableRowBelow","getRowIndexes","every","from","editor","max","_suggestionFactory","substr","_getCoordsForCells","ELEMENT_TABLE_WITH_TEXT","rowspan","getAttribute","getChildren","*Remove:* %0","markMultiRangeInsertion","above","ELEMENT_TABLE_ROW","type","filter","ELEMENT_TABLE","_tableSuggestions","getColumnIndexes","createTableWalker","minRow","registerElementLabel","startsWith","_splitMarkerName","insertTableColumnRight","element","detach","min","classes","tableColumn","removeTableRow","discard","MIN_SAFE_INTEGER","_acceptFormatSuggestionCallbackFactory","colspan","findAncestor","_setupColumnsRowsFixing","change:data","table","addRange","addClass","push","subType","deletion","get","isInContent","TableEditing","model","item","last","nodeAfter","showSuggestionHighlights","length","rootName","ELEMENT_TABLE_COLUMN_WITH_TEXT","getFirstRange","markMultiRangeDeletion","start","name","getContainedElement","createPositionAt","accept","MAX_SAFE_INTEGER","refresh","has","ELEMENT_TABLE_ROW_WITH_TEXT","maxColumn","_tablePostFixingSubtypes","end","tablePaste","order","suggestion","enqueueChange","writer","some","addMarker:suggestion","getSelectionAffectedTableCells","ELEMENT_TABLE_COLUMN","maxRow","toViewElement","TrackChangesEditing","getSuggestion","insertTableRowAbove","getCellLocation","left","insertTableColumnLeft","position","$textProxy","registerDescriptionCallback","_getSuggestionCoords","toLowerCase","TableUtils","insertion","$graveyard","createRangeOn","removeTableColumn","registerCustomCallback","data","createRangeIn","join","getChanges","tableCell","selection","first","nodeBefore","enableCommand","document","differ","insertTable","map","change","execute","tableRow","highest","fromRange","plugins","cell","hasAttribute","options","_descriptionFactory","getItems","root"];var Lx,Nx;Lx=Ix,Nx=376,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x69")]=[Mx("0x10"),"tableColumn"],this[Mx("0x37")]=new Set}afterInit(){const t=this[Mx("0x27")],e=t[Mx("0x55")][Mx("0xa")][Mx("0x6")];if(!t.plugins[Mx("0x66")](Mx("0x54")))return;const n=t.locale,o=t[Mx("0x13")][Mx("0x52")](Mx("0x76")),s=t[Mx("0x13")][Mx("0x52")](Mx("0x81"));o[Mx("0x17")][Mx("0x3b")](Mx("0x4c"),(t=>Yo(n,Mx("0x36"),t))),this[Mx("0x4a")](),o[Mx("0x9")](Mx("0xc")),o.enableCommand("selectTableRow"),o[Mx("0x9")]("selectTableColumn");for(const n of[Mx("0x78"),Mx("0x23")]){const r=t.commands[Mx("0x52")](n);o[Mx("0x9")](n,(n=>{t.model[Mx("0xe")]((t=>{n();const i=Mx("0x32")===r[Mx("0x6c")],x=s[Mx("0x72")](e),a=s[Mx("0x24")](x),c=i?a[Mx("0x7")]-1:a[Mx("0x57")]+1,l=x[0][Mx("0x49")]("table"),u=s[Mx("0x39")](l,{startRow:c,endRow:c}),d=Array[Mx("0x26")](u)[Mx("0xd")]((e=>t[Mx("0x84")](e[Mx("0x14")])));o.markMultiRangeInsertion(d,Mx("0x10"))}))}))}for(const n of[Mx("0x7b"),Mx("0x3e")]){const r=t[Mx("0x22")][Mx("0x52")](n);o[Mx("0x9")](n,(n=>{t[Mx("0x55")][Mx("0xe")]((t=>{n();const i=Mx("0x7a")===r[Mx("0x6c")],x=s[Mx("0x72")](e),a=s.getColumnIndexes(x),c=i?a[Mx("0x7")]-1:a[Mx("0x57")]+1,l=x[0][Mx("0x49")](Mx("0x4c")),u=s[Mx("0x39")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x26")](u).map((e=>t[Mx("0x84")](e[Mx("0x14")])));o[Mx("0x31")](d,Mx("0x43"))}))}))}for(const n of[Mx("0x44"),Mx("0x85")]){const r=n[Mx("0x2a")](11),i=r.toLowerCase(),x=i[Mx("0x2a")](0,3)+Mx("0x1b"),a=Mx("0x4c")+r,c=Mx("0x41")+r,l=Mx("0x28")+r;o[Mx("0x9")](n,(()=>{t[Mx("0x55")][Mx("0xe")]((t=>{const r=s[Mx("0x72")](e),u=r[0][Mx("0x49")]("table");let d;if(Mx("0x44")==n){const t=s[Mx("0x24")](r);d={startRow:t.first,endRow:t[Mx("0x57")],includeAllSlots:!0}}else{const t=s[Mx("0x38")](r);d={startColumn:t.first,endColumn:t[Mx("0x57")],includeAllSlots:!0}}const g=s[Mx("0x39")](u,d),m=Array[Mx("0x26")](g)[Mx("0xd")]((({cell:t})=>t)),f=Ox(m.filter((t=>t.hasAttribute(x)))),h=Ox(m[Mx("0x35")]((t=>!t[Mx("0x15")](x))))[Mx("0xd")]((e=>t[Mx("0x84")](e))),p=o[Mx("0x5e")](h,a);if(p&&("tableRow"==p.subType||"tableColumn"==p[Mx("0x50")])){const e=this[Mx("0x7f")](p);for(const n of f){const o=t[Mx("0x84")](n),r=s[Mx("0x79")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x21")]()).map((t=>i.LiveRange[Mx("0x12")](t)));t[Mx("0x55")].change((e=>{const s=e.batch;n=n[Mx("0x35")]((t=>Mx("0x83")!=t.root.rootName)),e[Mx("0x1e")](n),t[Mx("0x22")][Mx("0x52")](Mx("0x44")).refresh(),t.execute("removeTableRow",{forceDefaultExecution:!0}),t.model[Mx("0x6e")]((()=>{t[Mx("0x55")][Mx("0x6e")](s,(t=>{const e=o[Mx("0x35")]((t=>"$graveyard"!=t.root.rootName));e.length>0&&t[Mx("0x1e")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Mx("0x55")][Mx("0xe")]((o=>{const s=Array[Mx("0x26")](e[Mx("0x21")]()).map((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t[Mx("0x18")]({shallow:!0}))r[Mx("0x4f")](e);for(const e of r)"$graveyard"!=e.root[Mx("0x5b")]&&(o[Mx("0x1e")](o[Mx("0x62")](e,0)),t[Mx("0x22")][Mx("0x52")](Mx("0x85"))[Mx("0x65")](),t[Mx("0xf")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s[Mx("0x35")]((t=>"$graveyard"!=t[Mx("0x19")].rootName));x[Mx("0x5a")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x40")]()}))}function c(t,e){return e[Mx("0x25")]((e=>t[Mx("0x70")]((t=>t[Mx("0x6a")][Mx("0x1f")](e[Mx("0x5f")])||e.end.isEqual(t[Mx("0x5f")])))))}function l(t,e){return t.some((t=>e[Mx("0x70")]((e=>t.end.isTouching(e[Mx("0x5f")])))))}t[Mx("0x1")][Mx("0x1d")].on(Mx("0x71"),((t,e,n)=>{if(!n[Mx("0x16")][Mx("0x59")])return;const o=e[Mx("0x56")];if(!o)return;const s=n.mapper[Mx("0x75")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x5")===o[Mx("0x60")]&&(0,x.setHighlightHandling)(s,n[Mx("0x6f")],((t,e,n)=>n[Mx("0x4e")](r(e.classes),t)),((t,e,n)=>n.removeClass(r(e[Mx("0x42")]),t)))}),{priority:Mx("0x11")}),o[Mx("0x17")][Mx("0x7e")]((t=>{if(Mx("0x82")!=t[Mx("0x34")]&&Mx("0x51")!=t[Mx("0x34")])return;const e=t[Mx("0x61")]();if(null!=e&&e.is(Mx("0x3f"),Mx("0x4c"))){if(Mx("0x82")==t[Mx("0x34")]){const e=t[Mx("0x18")]()[Mx("0x35")]((t=>t.is(Mx("0x7d"))))[Mx("0xd")]((t=>t[Mx("0x1")]));if(e[Mx("0x5a")])return{type:Mx("0x82"),content:Yo(n,Mx("0x20"),Yo(n,Mx("0x2c"),'"'+e.join(" ")+'"'))}}if(Mx("0x51")==t[Mx("0x34")]){const e=t[Mx("0x18")]()[Mx("0x35")]((t=>t.is(Mx("0x7d"))))[Mx("0xd")]((t=>t[Mx("0x1")]));if(e[Mx("0x5a")])return{type:Mx("0x51"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}}})),o._descriptionFactory[Mx("0x7e")]((t=>{if(Mx("0x10")==t[Mx("0x50")]){const e=t[Mx("0x18")]()[Mx("0x35")]((t=>t.is(Mx("0x7d"))))[Mx("0xd")]((t=>t[Mx("0x1")])),o=this[Mx("0x7f")](t),s=o[Mx("0x74")]-o[Mx("0x3a")]+1;if("insertion"==t[Mx("0x34")])return e[Mx("0x5a")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x67"),[s,'"'+e[Mx("0x3")](" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x20"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x51")==t[Mx("0x34")])return e[Mx("0x5a")]?{type:Mx("0x51"),content:Yo(n,Mx("0x30"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x3")](" ")+'"']))}:{type:Mx("0x51"),content:Yo(n,Mx("0x30"),Yo(n,Mx("0x33"),s))}}if(Mx("0x43")==t[Mx("0x50")]){const e=t[Mx("0x18")]()[Mx("0x35")]((t=>t.is(Mx("0x7d"))))[Mx("0xd")]((t=>t[Mx("0x1")])),o=this._getSuggestionCoords(t),s=o[Mx("0x68")]-o.minColumn+1;if("insertion"==t.type)return e[Mx("0x5a")]?{type:Mx("0x82"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x5c"),[s,'"'+e[Mx("0x3")](" ")+'"']))}:{type:Mx("0x82"),content:Yo(n,Mx("0x20"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Mx("0x51")==t[Mx("0x34")])return e[Mx("0x5a")]?{type:Mx("0x51"),content:Yo(n,Mx("0x30"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x51"),content:Yo(n,Mx("0x30"),Yo(n,Mx("0x73"),s))}}})),o[Mx("0x29")][Mx("0x0")](Mx("0x82"),Mx("0x10"),Mx("0x45"),r),o._suggestionFactory[Mx("0x0")]("deletion",Mx("0x10"),Mx("0x63"),r),o._suggestionFactory[Mx("0x0")](Mx("0x82"),Mx("0x43"),"discard",a),o[Mx("0x29")].registerCustomCallback(Mx("0x51"),Mx("0x43"),Mx("0x63"),a),o[Mx("0x29")].registerCustomCallback(Mx("0x82"),"tableColumn",Mx("0x3"),c),o[Mx("0x29")][Mx("0x0")](Mx("0x51"),Mx("0x43"),Mx("0x3"),c),o[Mx("0x29")][Mx("0x0")](Mx("0x82"),"tableRow","join",l),o[Mx("0x29")][Mx("0x0")](Mx("0x51"),"tableRow",Mx("0x3"),l)}[Mx("0x47")](){const t=this[Mx("0x27")],e=t.model.document[Mx("0x6")];return(n,o)=>{t[Mx("0x55")][Mx("0xe")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x6a")][Mx("0x8")];x&&x[0]&&!1===x[0][Mx("0x1c")]&&(a=n[0].start[Mx("0x58")]);const c=s[Mx("0x2")](a);if(Mx("0x83")==c.root[Mx("0x5b")])return;const l=Array[Mx("0x26")](e.getRanges())[Mx("0xd")]((t=>i.LiveRange[Mx("0x12")](t)));s[Mx("0x1e")](c),t[Mx("0x22")].get(r)[Mx("0x65")](),x.push({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Mx("0x35")]((t=>Mx("0x83")!=t[Mx("0x19")][Mx("0x5b")]));u[Mx("0x5a")]>0&&s[Mx("0x1e")](u);for(const t of l)t[Mx("0x40")]()}))}}[Mx("0x2b")](t){const e=this.editor[Mx("0x13")][Mx("0x52")](Mx("0x81"));let n=Number[Mx("0x64")],o=Number[Mx("0x46")],s=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;for(const i of t){if(Mx("0x83")==i[Mx("0x19")][Mx("0x5b")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x15")](Mx("0x2d"))?i.getAttribute(Mx("0x2d"))-1:0,c=i[Mx("0x15")](Mx("0x48"))?i.getAttribute("colspan")-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.editor,e=t[Mx("0x13")][Mx("0x52")](Mx("0x76")),n=t.plugins.get(Mx("0x81"));t[Mx("0x55")].document.on(Mx("0x4b"),(()=>{const n=Array.from(t[Mx("0x55")][Mx("0xa")][Mx("0xb")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x3d")](t);if(Mx("0x6d")!=n)continue;if(null!=o.oldRange)continue;const i=e[Mx("0x77")](s);this[Mx("0x69")][Mx("0x1a")](r)&&this[Mx("0x37")].add(i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Mx("0x84")](t),r=t[Mx("0x49")](Mx("0x4c")),i=n[Mx("0x79")](t);for(const e of this[Mx("0x37")]){const n=e[Mx("0x50")],x=n[Mx("0x3c")](Mx("0x6b")),a=n[Mx("0x2a")](x?10:5),c=a[Mx("0x80")](),l=c.substr(0,3)+Mx("0x1b"),u=Mx("0x41")+a,d=Mx("0x28")+a;if(!e[Mx("0x53")])continue;if(r!=e[Mx("0x5d")]()[Mx("0x5f")].findAncestor(Mx("0x4c")))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Mx("0x15")](l)?t[Mx("0x2e")](l)-1:0,m=this[Mx("0x7f")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x4d")](s),o=!0)}return o};t[Mx("0x55")][Mx("0xa")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x55")][Mx("0xa")].differ[Mx("0x4")]())if("insert"==s[Mx("0x34")])if(Mx("0x10")==s[Mx("0x60")])for(const t of s.position[Mx("0x58")][Mx("0x2f")]())n=n||o(t,e);else"tableCell"==s[Mx("0x60")]&&(n=n||o(s[Mx("0x7c")][Mx("0x58")],e));return n}))}[Mx("0x7f")](t){return this._getCoordsForCells(t[Mx("0x21")]()[Mx("0xd")]((t=>t[Mx("0x5f")][Mx("0x58")])))}}function Ox(t){return Array[Mx("0x26")](new Set(t).values())}const Fx=["formatBlock","getFirstPosition","splitTableCellVertically","findAncestor","_isForcedDefaultExecutionBlock","plugins","mergeTableCellUp","from","push","mergeTableCells","getSelectionAffectedTableCells","_areSelectedCellsMergable","accept","length","element","subType","author","createRangeOn","selection","format","size","change","mergeTableCellRight","insertion","TableUtils","enableCommand","locale","has","markMultiRangeBlockFormat","detach","TrackChangesEditing","refresh","mergeTableCellDown","setSelection","rootName","registerCustomCallback","mergeTableCellLeft","getAncestors","find","_areMergableCells","TableEditing","set:isEnabled","createTableWalker","requires","tableCell","commands","trackChanges","table","direction","value","_acceptFormatSuggestionCallbackFactory","forceDefaultExecution","afterInit","commandName","_suggestionFactory","editor","splitTableCellHorizontally","type","document","low","_tablePostFixingSubtypes","getRanges","execute","fromRange","root","model","return","cell","add","containsRange","map","get"];var Px,Dx;Px=Fx,Dx=384,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("0x13")](){return[wx]}[Bx("0x1c")](){const t=this.editor,e=t[Bx("0x29")][Bx("0x22")][Bx("0x42")],n=t[Bx("0x2")];if(!t[Bx("0x35")][Bx("0x3")](Bx("0x10")))return;const o=t[Bx("0x35")][Bx("0x2f")](Bx("0x6")),s=t[Bx("0x35")][Bx("0x2f")](Bx("0x0")),r=t[Bx("0x35")].get(wx);r[Bx("0x24")][Bx("0x38")](Bx("0x39")),o[Bx("0x1")](Bx("0x39"),(()=>{const e=s[Bx("0x3a")](t.model[Bx("0x22")].selection);t.model[Bx("0x45")]((()=>{o[Bx("0x4")](e,{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))})),t[Bx("0x15")][Bx("0x2f")](Bx("0x39")).on(Bx("0x26"),((e,n)=>{t[Bx("0x15")][Bx("0x2f")](Bx("0x16")).value&&(n[Bx("0x3d")]>0&&n[n[Bx("0x3d")]-1]&&n[n[Bx("0x3d")]-1][Bx("0x1b")]||o[Bx("0x34")]||this[Bx("0x3b")]()||e.stop())}),{priority:"highest"});for(const e of[Bx("0x36"),Bx("0x46"),Bx("0x8"),Bx("0xc")]){const n=t[Bx("0x15")][Bx("0x2f")](e);o[Bx("0x1")](e,(()=>{const e=t.model[Bx("0x22")].selection[Bx("0x31")]()[Bx("0xd")]()[Bx("0xe")]((t=>t.is("element",Bx("0x14")))),s=n[Bx("0x19")];t[Bx("0x29")][Bx("0x45")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x39"),commandParams:[]},[],Bx("0x39"))}))}))}for(const e of[Bx("0x32"),Bx("0x20")]){const n=t[Bx("0x15")][Bx("0x2f")](e);o[Bx("0x1")](e,(()=>{const r=s[Bx("0x3a")](t.model[Bx("0x22")][Bx("0x42")])[0],i=r[Bx("0x33")](Bx("0x17")),{column:x,row:a}=s.getCellLocation(r);let c=[];if("horizontally"==n[Bx("0x18")]){const t=s[Bx("0x12")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x2e")]((t=>t[Bx("0x2b")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x2e")]((t=>t.cell))}t[Bx("0x29")][Bx("0x45")]((t=>{o.markBlockFormat(t[Bx("0x41")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x39")==e.commandName?{type:Bx("0x43"),content:Yo(n,"*Merge cells*")}:void 0})),o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x1d")]?{type:Bx("0x43"),content:Yo(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e[Bx("0x1d")]?{type:"format",content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x1a")]();for(const t of[Bx("0x36"),"mergeTableCellRight",Bx("0x8"),Bx("0xc")])o._suggestionFactory[Bx("0xb")](Bx("0x30"),t,Bx("0x3c"),x);for(const t of["splitTableCellVertically","splitTableCellHorizontally"])o[Bx("0x1e")].registerCustomCallback("formatBlock",t,"accept",x);o[Bx("0x1e")].registerCustomCallback(Bx("0x30"),"mergeTableCells",Bx("0x3c"),(n=>{t[Bx("0x29")].change((o=>{const s=Array[Bx("0x37")](e[Bx("0x25")]()).map((t=>i.LiveRange[Bx("0x27")](t)));o[Bx("0x9")](n),t[Bx("0x15")].get(Bx("0x39"))[Bx("0x7")](),t.execute(Bx("0x39"),{forceDefaultExecution:!0});const r=s.filter((t=>"$graveyard"!=t[Bx("0x28")][Bx("0xa")]));r.length>0&&o[Bx("0x9")](r);for(const t of s)t[Bx("0x5")]()}))}));for(const e of[Bx("0x36"),Bx("0x8"),Bx("0xc"),Bx("0x46")]){const n=t[Bx("0x15")][Bx("0x2f")](e);n.on(Bx("0x11"),((e,o,s)=>{if(s){const o=t.model[Bx("0x22")][Bx("0x42")][Bx("0x31")]()[Bx("0xd")]()[Bx("0xe")]((t=>t.is(Bx("0x3e"),Bx("0x14"))));this[Bx("0xf")](n[Bx("0x19")],o)||(e[Bx("0x2a")]=!1,e.stop())}}),{priority:Bx("0x23")})}}[Bx("0x3b")](){const t=this[Bx("0x1f")].commands[Bx("0x2f")]("mergeTableCells"),e=this[Bx("0x1f")].plugins[Bx("0x2f")](Bx("0x0"));if(!t.isEnabled)return!1;const n=e[Bx("0x3a")](this.editor[Bx("0x29")].document.selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0xf")](t,e))return!1;return!0}[Bx("0xf")](t,e){const n=this[Bx("0x1f")][Bx("0x35")][Bx("0x2f")](Bx("0x6")),o=this.editor[Bx("0x29")].createRangeOn(t),s=this[Bx("0x1f")][Bx("0x29")][Bx("0x41")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0x47")==t[Bx("0x21")]||"deletion"==t[Bx("0x21")]||Bx("0x39")==t[Bx("0x3f")])&&t.isInContent)for(const e of t[Bx("0x25")]())e[Bx("0x2d")](o,!0)&&r[Bx("0x2c")](t[Bx("0x21")]+":"+t[Bx("0x40")].id),e[Bx("0x2d")](s,!0)&&i[Bx("0x2c")](t[Bx("0x21")]+":"+t[Bx("0x40")].id);if(r[Bx("0x44")]!=i[Bx("0x44")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["index","FORMAT_REGULAR_ROW","parent","showSuggestionHighlights","format","getSelectionAffectedTableCells","childCount","consumable","unbindElementFromMarkerName","registerDescriptionCallback","forceValue","mapper","commandName","includes","requires","editing","_acceptFormatSuggestionCallbackFactory","setTableColumnHeader","addClass","commandParams","setTableRowHeader","consume","stop","nodeAfter","markerNameToElements","getAttribute","findAncestor","value","createRange","name","accept","end","getChild","createPositionBefore","cell","getRowIndexes","createPositionAfter","TableEditing","markerRange","headingRows","FORMAT_HEADER_ROW","activeMarkers","afterInit","FORMAT_HEADER_COLUMN","addMarker:suggestion","table","highest","registerCustomCallback","item","formatBlock","removeClass","last","data","_suggestionFactory","_splitMarkerName","nodeBefore","commands","ck-suggestion-marker-","data-suggestion","enableCommand","removeAttribute","createTableWalker","FORMAT_REGULAR_COLUMN","ck-suggestion-marker--active","document","getCellLocation","downcastDispatcher","has","first","toViewElement","TrackChangesEditing","setAttribute","markBlockFormat","writer","selection","markerName","change","get","model","plugins","headingColumns"];var Gx,Hx;Gx=Ux,Hx=413,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x6")](){return[wx]}[zx("0x22")](){const t=this.editor;if(!t[zx("0x47")][zx("0x3b")](zx("0x1d")))return;const e=t.locale,n=t[zx("0x47")].get(zx("0x3e")),o=t[zx("0x47")].get("TableUtils"),s=t.plugins[zx("0x45")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x2e")](r.markerName),c=n.getSuggestion(a);if(!c[zx("0x2c")]||zx("0x9")!=c.data[zx("0x4")])return;if(r[zx("0x28")])return void s[zx("0xe")]();if(!i[zx("0x50")][zx("0xd")](r.markerRange,s[zx("0x15")]))return;const l=r[zx("0x1e")].start[zx("0xf")],u=r[zx("0x1e")][zx("0x17")][zx("0x2f")],d=l.parent[zx("0x4b")],{column:g}=o[zx("0x39")](l),{column:m}=o[zx("0x39")](u);for(let s=g;s<=m;s++){const c=o[zx("0x35")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x1a")],c=i[zx("0x3")][zx("0x3d")](s);i[zx("0x41")][zx("0xa")](zx("0x31")+x,c),e&&i[zx("0x41")][zx("0x3f")]("data-suggestion",a,c),i[zx("0x3")].bindElementToMarker(c,r[zx("0x43")]),t&&(n[zx("0x21")][zx("0x5")](r[zx("0x43")])?i[zx("0x41")].addClass(zx("0x37"),c):i[zx("0x41")][zx("0x2a")]("ck-suggestion-marker--active",c))}}}}n[zx("0x33")](zx("0xc"),((e,s)=>{const r=o[zx("0x4e")](t.model[zx("0x38")].selection),i=o[zx("0x1b")](r),x=r[0][zx("0x12")](zx("0x25")),a=x[zx("0x11")](zx("0x1f"))||0,c=s&&null!==s.forceValue?s[zx("0x2")]:!t[zx("0x30")][zx("0x45")](zx("0xc"))[zx("0x13")],l=c?i[zx("0x2b")]:i[zx("0x3c")],u=x[zx("0x18")](l);let d;if(c){const e=x[zx("0x18")](a);if(u[zx("0x49")]<e[zx("0x49")])return;d=t[zx("0x46")][zx("0x14")](t[zx("0x46")][zx("0x19")](e[zx("0x18")](0)),t[zx("0x46")][zx("0x1c")](u.getChild(u[zx("0x4f")]-1)))}else{const e=x.getChild(a-1);if(!e)return;d=t.model[zx("0x14")](t[zx("0x46")][zx("0x19")](u[zx("0x18")](0)),t[zx("0x46")].createPositionAfter(e[zx("0x18")](e[zx("0x4f")]-1)))}t[zx("0x46")][zx("0x44")]((()=>{n[zx("0x40")](d,{commandName:zx("0xc"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x33")](zx("0x9"),((e,o)=>{const s=t[zx("0x47")].get("TableUtils"),r=s[zx("0x4e")](t.model[zx("0x38")][zx("0x42")]),i=s.getColumnIndexes(r),x=r[0][zx("0x12")](zx("0x25")),a=x[zx("0x11")](zx("0x48"))||0,c=o&&null!==o[zx("0x2")]?o[zx("0x2")]:!t.commands.get(zx("0x9"))[zx("0x13")];let l;const u=x[zx("0x18")](0),d=c?i[zx("0x2b")]:i.first,g=s[zx("0x35")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x1a")];if(c){const e=u[zx("0x18")](a);if(m.isBefore(e))return;l=t[zx("0x46")][zx("0x14")](t[zx("0x46")][zx("0x19")](e),t[zx("0x46")].createPositionAfter(m))}else{const e=u[zx("0x18")](a-1);if(!e)return;l=t[zx("0x46")].createRange(t[zx("0x46")][zx("0x19")](m),t[zx("0x46")][zx("0x1c")](e))}t[zx("0x46")].change((()=>{n.markBlockFormat(l,{commandName:zx("0x9"),commandParams:[{forceValue:c}]},[],zx("0x9"))}))})),t[zx("0x7")][zx("0x3a")].on(zx("0x24"),r(),{priority:"highest"}),t.data[zx("0x3a")].on("addMarker:suggestion",((t,e,n)=>{n.options[zx("0x4c")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x26")}),t[zx("0x7")][zx("0x3a")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[zx("0x2e")](e[zx("0x43")]),i=n.getSuggestion(r);if(!i.data||"setTableColumnHeader"!=i[zx("0x2c")][zx("0x4")])return;const x=o[zx("0x3")][zx("0x10")](e[zx("0x43")]);if(x)for(const t of x)o[zx("0x41")][zx("0x2a")](zx("0x31")+s,t),o[zx("0x41")][zx("0x2a")](zx("0x37"),t),o[zx("0x41")][zx("0x34")](zx("0x32"),t),o[zx("0x3")][zx("0x0")](t,e[zx("0x43")])}),{priority:zx("0x26")}),n._descriptionFactory[zx("0x1")]((t=>{const{data:n}=t;if(n){if(zx("0xc")==n[zx("0x4")]){const t=n[zx("0xb")][0].forceValue;return o(Yo(e,zx(t?"0x20":"0x4a")))}if("setTableColumnHeader"==n[zx("0x4")]){const t=n.commandParams[0][zx("0x2")];return o(Yo(e,zx(t?"0x23":"0x36")))}}function o(t){return{type:zx("0x4d"),content:Yo(e,"*Format:* %0",t)}}}));const i=s[zx("0x8")]();n[zx("0x2d")].registerCustomCallback(zx("0x29"),"setTableRowHeader","accept",i),n[zx("0x2d")][zx("0x27")](zx("0x29"),"setTableColumnHeader",zx("0x16"),i)}}const Vx=["suggestion","getRows","ck-suggestion-marker-insertion","markerAttributes","getChild","tableCellBorderStyle","stop","removeColumns","deletion","dataDowncast","tableCellBorderColor","containsRange","suggestion-td","last","tableCellBorderWidth","_splitMarkerName","getSuggestion","markMultiRangeInsertion","first","locale","getAttributes","rows","tablePasteColumn","paragraph","*Replace table cells*","createPositionBefore","fromEntries","clipboardOutput","redo","plugins","cells","getMarkers","tableCellVerticalAlignment","TrackChangesEditing","some","options","nextSibling","getColumns","registerCustomCallback","TableUtils","Users","column","documentSelection","commands","_suggestionFactory","set","_isForcedDefaultExecutionBlock","markMultiRangeDeletion","tablePasteRow","filter","insert","unwrap","author","startsWith","discard","getRange","previousSibling","createElement","getColumnIndexes","createRange","schema","includes","trackChanges","attributes","reduce","conversion","registerDescriptionCallback","ck-suggestion-marker","fill","position","get","value","add","oldRange","markers","getSuggestionCallback","accept","suggestion:formatBlock:tablePasteCell","return","registerPostFixer","markerToHighlight","getTableIfOnlyTableInContent","tableCellPadding","_replaceTableSlotCell","_getCoordsForCells","requires","getChangedMarkers","$graveyard","root","rowInsertionIndexes","type","join","insertContent","subType","element","editingDowncast","keys","insertRows","for","formatBlock","low","createRangeIn","endRow","push","endColumn","listenTo","getAllAdjacentSuggestions","insertColumns","nodeAfter","getRowIndexes","has","insertionRanges","removeRows","next","tablePaste","getContainedElement","editor","remove","from","rowInsertionRanges","columnInsertionIndexes","markerName","row","deletionRanges","updateMarker","high","map","createRangeOn","_descriptionFactory","length","change","table","tablePasteChainId","ck-suggestion-marker--active","cell","tableCellSuggestion","setAttribute","getChildren","differ","end","wrap","name","getChanges","createTableWalker","getItems","TableClipboard","forceDefaultExecution","editing","insertion","findAncestor","selection","_createdBatches","removeMarker","model","previous","batch","document","isEqual","suggestionUnloaded","setAttributes","tablePasteCell","isInContent","activeMarkers","isEmpty","tableCellHorizontalAlignment","getSuggestions","hasSuggestion","afterInit"];var Kx,Xx;Kx=Vx,Xx=485,function(t){for(;--t;)Kx.push(Kx.shift())}(++Xx);const qx=function(t,e){return Vx[t-=0]},$x=[qx("0x21"),qx("0x1d"),qx("0x18"),qx("0xf"),qx("0x33"),"tableCellBackgroundColor",qx("0x65")],Jx=Object[qx("0x2d")]($x[qx("0x91")]((t=>[t,null])));class Qx extends t.Plugin{static get[qx("0x68")](){return[wx]}[qx("0x12")](){const t=this[qx("0x87")];if(!t[qx("0x30")][qx("0x81")](qx("0xa4")))return;const n=t.plugins.get(qx("0x34")),o=t.plugins[qx("0x59")](qx("0x3a")),s=t[qx("0x30")][qx("0x59")](wx),r=t[qx("0x30")][qx("0x59")](qx("0xa4"));s._tablePostFixingSubtypes.push(qx("0x43"),qx("0x29")),t[qx("0x4")][qx("0x4f")].register(qx("0x9a"),{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t[qx("0x54")].elementToElement({model:qx("0x9a"),view:qx("0x1f")});let i=null;t[qx("0x4")].on(qx("0x6f"),((s,x)=>{const[a,c]=x,l=x[x[qx("0x94")]-1];l&&l[qx("0xa5")]||n[qx("0x41")]||this[qx("0x87")].commands.get(qx("0x51"))[qx("0x5a")]&&function(t,e,n,o,s){if(e&&!e.is(qx("0x3d")))return!1;const r=s[qx("0x64")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[qx("0x7")][qx("0x1")]);if(!i.length)return!1;const x=i[0][qx("0x0")]("table"),a=o[qx("0x80")](i),c=o[qx("0x4d")](i),l={startRow:a.first,endRow:a[qx("0x20")],startColumn:c[qx("0x25")],endColumn:c.last};return 1==i[qx("0x94")]&&(l[qx("0x79")]+=o[qx("0x14")](r)-1,l[qx("0x7b")]+=o[qx("0x38")](r)-1),Yx(x,l,o)}(a,c,t[qx("0x4")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[qx("0x4")][qx("0x95")]((()=>{t[qx("0x4")][qx("0x6f")](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.length&&n[qx("0x24")](s,qx("0x43"),{tablePasteChainId:o}),r[qx("0x94")]&&n[qx("0x24")](r,qx("0x29"),{tablePasteChainId:o}),a[qx("0x94")]&&n[qx("0x24")](a,qx("0x85"),{tablePasteChainId:o,skipNestingCheck:!0}),c[qx("0x94")]&&n[qx("0x42")](c,qx("0x85"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[qx("0x91")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],qx("0xb"),{tablePasteChainId:o});if(u){const e=u[qx("0x32")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[qx("0x92")](o),i=e.find((t=>t.getRange()[qx("0x8")](r)));i&&n[qx("0x7a")]([i[qx("0xa0")],s])}n[qx("0x94")]&&u[qx("0x9b")](qx("0x16"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities.high+10}),t.plugins[qx("0x59")](qx("0xa4")).on(qx("0x66"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[qx("0x19")]();const r=n[qx("0x99")],x=o,a=Zx(r),c=Zx(x);t[qx("0x61")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[qx("0x88")](r.getChild(0));for(const t of Array[qx("0x89")](x[qx("0x9c")]()))s.insert(t,r,qx("0x9e"));const t=i[qx("0x6c")].includes(n[qx("0x8d")]),e=i[qx("0x8b")][qx("0x50")](n[qx("0x3c")]);t||e||(l=s[qx("0x78")](r))}else c&&!a&&(u=s.createRangeIn(r));else{const t=s.createElement(qx("0x9a")),e=s[qx("0x4c")](qx("0x9a"));s[qx("0x9f")](s[qx("0x78")](r),e),s[qx("0x45")](t,r,0);for(const e of Array[qx("0x89")](x.getChildren()))s[qx("0x45")](e,t,qx("0x9e"));l=s[qx("0x92")](t),u=s[qx("0x92")](e)}const d=Array[qx("0x89")](x[qx("0x27")]())[qx("0x44")]((([t])=>$x[qx("0x50")](t)));i[qx("0x31")].push({element:r,attributes:d[qx("0x94")]?Object[qx("0x2d")](d):null}),l&&i[qx("0x82")][qx("0x7a")](l),u&&i[qx("0x8e")][qx("0x7a")](u)}),{priority:qx("0x90")}),o.on(qx("0x7e"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i.columnInsertionIndexes=new Array(a)[qx("0x57")](x)[qx("0x91")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[qx("0x4")][qx("0x92")](e))}),{priority:qx("0x77")}),o.on(qx("0x74"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[qx("0x28")]||1;i[qx("0x6c")]=new Array(a)[qx("0x57")](x)[qx("0x91")](((t,e)=>t+e));for(const{cell:e}of o[qx("0xa2")](s,{startRow:x,endRow:x+a-1}))i[qx("0x8a")][qx("0x7a")](t[qx("0x4")][qx("0x92")](e))}),{priority:qx("0x77")}),n[qx("0x93")][qx("0x55")]((e=>{if(e[qx("0x70")]&&e[qx("0x70")][qx("0x48")](qx("0x85")))return e.previous?{}:{type:qx("0xa7"),content:Yo(t[qx("0x26")],qx("0x2b"))}}));const x=()=>!1;for(const t of[qx("0x85"),qx("0x29"),qx("0x43"),qx("0xb")])n[qx("0x3f")][qx("0x39")](qx("0xa7"),t,qx("0x6e"),x),n[qx("0x3f")][qx("0x39")](qx("0x1b"),t,qx("0x6e"),x),n[qx("0x3f")].registerCustomCallback(qx("0x76"),t,qx("0x6e"),x);n._suggestionFactory[qx("0x39")](qx("0x76"),"tablePasteCell",qx("0x49"),x),n._suggestionFactory[qx("0x39")](qx("0x76"),qx("0xb"),qx("0x5f"),((e,n,o)=>{const s=e[qx("0x91")]((t=>t[qx("0x86")]())).filter((t=>t)),r=new Map(s[qx("0x91")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[qx("0x31")])e&&r[qx("0x40")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o[qx("0x16")])){const o=t[qx("0x4")][qx("0x5d")][qx("0x59")](e),s=o?o[qx("0x4a")]()[qx("0x86")]():null;s&&r[qx("0x40")](s,n)}t[qx("0x4")].change((t=>{for(const[e,n]of r)t[qx("0xa")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[qx("0x3f")][qx("0x39")](e,qx("0x85"),o,((s,r,i)=>{t.model.change((t=>{const x=[];for(const t of s){const e=t.start[qx("0x7f")];e.is(qx("0x71"),qx("0x9a"))&&x[qx("0x7a")](e)}n[qx("0x3f")][qx("0x5e")](e,null,o)(s,r,i);for(const e of x)qx("0x6a")!=e[qx("0x6b")].rootName&&t[qx("0x46")](e)}))}))};a(qx("0xa7"),qx("0x5f")),a(qx("0xa7"),"discard"),a("deletion",qx("0x5f")),a("deletion",qx("0x49")),n._suggestionFactory[qx("0x39")](qx("0xa7"),"tablePasteRow","discard",(t=>{const e=t[qx("0x91")]((t=>t[qx("0x86")]())),n=e[0][qx("0x0")](qx("0x96")),{minRow:r,maxRow:i}=s[qx("0x67")](e);o[qx("0x83")](n,{at:r,rows:i-r+1})})),n[qx("0x3f")][qx("0x39")]("insertion",qx("0x29"),qx("0x49"),(t=>{const e=t.map((t=>t[qx("0x86")]())),n=e[0].findAncestor(qx("0x96")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[qx("0x1a")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[qx("0x70")]||!e[qx("0x70")].startsWith(qx("0x85")))return;const o=e[qx("0x52")][qx("0x97")],s=n.getSuggestions()[qx("0x44")]((t=>t[qx("0xc")]&&t[qx("0x52")]&&t[qx("0x52")][qx("0x97")]==o));s[qx("0x94")]&&e[qx("0x7d")]().length!=s[qx("0x94")]&&s[qx("0x53")](((t,e)=>(t[qx("0x84")]=e,e[qx("0x5")]=t,e)))};function l(t,e=!0){const{id:o}=n[qx("0x22")](t.markerName),s=[qx("0x56"),qx("0x15")],r=n[qx("0xd")][qx("0x50")](t[qx("0x8c")]);return r&&s.push(qx("0x98")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:qx("0x90")}),n.on(qx("0x9"),c,{priority:qx("0x90")}),t[qx("0x4")][qx("0x7")][qx("0x62")]((()=>{let e=!1;const o=Array[qx("0x89")](t[qx("0x4")][qx("0x7")][qx("0x9d")][qx("0x69")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if(qx("0x13")!=o||"deletion"!=i||r[qx("0x5c")])continue;if(!n[qx("0x11")](x))continue;const a=n[qx("0x23")](x).getRanges(),c=t[qx("0x30")][qx("0x59")]("Users").me;for(const t of n[qx("0x10")]())if(t[qx("0xc")]&&t.author==c&&qx("0x76")==t.type&&qx("0xb")==t[qx("0x70")]&&t.getRanges().every((t=>a[qx("0x35")]((e=>e[qx("0x1e")](t,!0))))))for(const n of t[qx("0x7d")]())n[qx("0xc")]&&(n[qx("0x49")](),e=!0)}return e})),t.model[qx("0x7")][qx("0x62")]((e=>{const o=t[qx("0x3e")][qx("0x59")](qx("0x2f"));if(!o||!o[qx("0x2")][qx("0x81")](e[qx("0x6")]))return!1;let s=!1;const r=t[qx("0x30")].get(qx("0x3b")).me,i=t[qx("0x4")][qx("0x7")].differ[qx("0xa1")](),x=Array[qx("0x89")](t[qx("0x4")].document[qx("0x9d")].getChangedMarkers())[qx("0x44")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[qx("0x22")](t);return qx("0x13")==o&&qx("0x85")==s&&i==r.id&&!e[qx("0x5c")]}));for(const t of i){if(qx("0x45")!=t[qx("0x6d")]||qx("0x9a")!=t[qx("0xa0")]||1!=t.length)continue;const n=e[qx("0x4e")](t[qx("0x58")],t[qx("0x58")].getShiftedBy(1));if(!x.find((({data:t})=>t.newRange[qx("0x8")](n))))for(const{name:t,data:o}of x)if(n[qx("0x1e")](o.newRange)){e[qx("0x8f")](t,{range:n}),s=!0;break}}return s})),t[qx("0x4")].document.registerPostFixer((e=>{let o=!1;const s=t[qx("0x30")][qx("0x59")](qx("0x3b")).me,r=n.getSuggestions().filter((t=>t[qx("0xc")]&&t[qx("0x47")]==s)),i=new Set,x=new Set;for(const t of r)if(qx("0x85")==t.subType)for(const e of t.getMarkers()){const n=e[qx("0x4a")]().getContainedElement();if(n)if(n.is(qx("0x71"),qx("0x9a"))&&Zx(n)){t.removeMarker(e[qx("0xa0")]),i[qx("0x5b")](n),o=!0;const s=n[qx("0x37")],r=n[qx("0x4b")],a=s&&s.is(qx("0x71"),qx("0x9a")),c=r&&r.is("element",qx("0x9a"));a&&!i[qx("0x81")](s)&&x[qx("0x5b")](s),c&&!i[qx("0x81")](r)&&x[qx("0x5b")](r)}else n.is("element","paragraph")&&n[qx("0xe")]&&(t[qx("0x3")](e[qx("0xa0")]),o=!0)}else if("tablePasteCell"==t[qx("0x70")]){if(!t[qx("0x52")]||!t[qx("0x52")][qx("0x97")])continue;const e=t[qx("0x52")][qx("0x16")];if(e&&Object[qx("0x73")](e).length)continue;const n=t[qx("0x52")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[qx("0x70")]&&e[qx("0x70")][qx("0x48")](qx("0x85"))){if(!e[qx("0x52")][qx("0x97")]){i=!1;break}if(e.id!=t.id&&e[qx("0x52")][qx("0x97")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[qx("0x88")](t);for(const t of x)e[qx("0x46")](t);return o})),t[qx("0x54")][qx("0x75")](qx("0x72"))[qx("0x63")]({model:qx("0x60"),view:(t,e)=>l(t),converterPriority:qx("0x90")}),t[qx("0x54")][qx("0x75")](qx("0x1c"))[qx("0x63")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[qx("0x36")].showSuggestionHighlights?l(t,!1):null,converterPriority:qx("0x90")});const u=t[qx("0xa6")].view;this[qx("0x7c")](u[qx("0x7")],qx("0x2e"),((t,e)=>{const n=[];for(const t of u[qx("0x78")](e.content)[qx("0xa3")]())t.is(qx("0x71"),qx("0x1f"))&&n.push(t);u.change((t=>{for(const e of n)t.move(t[qx("0x78")](e),t[qx("0x2c")](e)),t[qx("0x88")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[qx("0x17")](0);return e.is("element",qx("0x2a"))&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[qx("0xa2")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["getSuggestionCallback","has","data","get","accept","getTableColumnsWidths","registerDescriptionCallback","model","afterInit","format","formatBlock","getColumnGroupElement","handleResizeTableWidthCommand","enableCommand","registerCustomCallback","locale","*Format:* resize table","columnWidths","formatGroupId","plugins","discard","getSelectedElement","getSuggestions","selection","_suggestionFactory","Users","commandParams","resizeTable","bind","TableColumnResizeEditing","change","resizeColumnWidths","getAttribute","author","markBlockFormat","TrackChangesEditing","tableWidth","table","getContainedElement","editor","resizeTableWidth"];var ea,na;ea=ta,na=166,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x6")](){if(!this.editor[oa("0x11")][oa("0x28")](oa("0x1b")))return;const t=this[oa("0x25")].plugins.get(oa("0x21"));t[oa("0xb")](oa("0x26"),this[oa("0xa")][oa("0x1a")](this)),t[oa("0xb")](oa("0x1d"),this[oa("0xa")][oa("0x1a")](this)),t[oa("0x16")].registerCustomCallback(oa("0x8"),oa("0x19"),oa("0x2"),t[oa("0x16")][oa("0x27")](oa("0x8"),null,oa("0x12"))),t._suggestionFactory[oa("0xc")](oa("0x8"),oa("0x19"),"discard",t[oa("0x16")].getSuggestionCallback("formatBlock",null,oa("0x2"))),t._descriptionFactory[oa("0x4")](this.handleSuggestionDescription[oa("0x1a")](this))}[oa("0xa")](t,e){const n=this.editor[oa("0x11")][oa("0x1")](oa("0x21")),o=this[oa("0x25")][oa("0x11")].get(oa("0x1b")),s=e[oa("0x23")]||this[oa("0x25")][oa("0x5")].document[oa("0x15")][oa("0x13")]();this[oa("0x25")][oa("0x5")][oa("0x1c")]((()=>{const r=o[oa("0x9")](s);let i=r?o[oa("0x3")](r):null,x=s[oa("0x1e")](oa("0x22"))||null;const a=e.tableWidth||x,c=e[oa("0xf")]||i,l=this.editor[oa("0x11")][oa("0x1")](oa("0x17")).me;for(const t of n[oa("0x14")]()){const e=t[oa("0x24")]();if(oa("0x19")===t.subType&&e===s){t[oa("0x1f")]!==l&&t.discard();const e=t[oa("0x0")][oa("0x18")];x=e[0][oa("0x22")],i=e[0][oa("0xf")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x20")](s,{commandName:oa("0x26"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x19")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x19")===e[oa("0x10")]){const t=oa("0xe");return{type:oa("0x7"),content:Yo(this[oa("0x25")][oa("0xd")],t)}}}}const ra=["editor","has","enableCommand","afterInit","get","Template","TrackChangesEditing"];var ia,xa;ia=ra,xa=386,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x2")](){const t=this[aa("0x6")];t.plugins[aa("0x0")](aa("0x4"))&&t.plugins[aa("0x3")](aa("0x5"))[aa("0x1")]("insertTemplate")}}const la=["afterInit","insertTableOfContents","TrackChangesEditing","commands","tableOfContents","registerElementLabel","get","editor","ELEMENT_TABLE_OF_CONTENTS","plugins"];var ua,da;ua=la,da=333,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("0x4")];if(!t[ga("0x0")][ga("0x3")]("insertTableOfContents"))return;t[ga("0x6")].get(ga("0x9")).enableCommand(ga("0x8"));const e=t.plugins[ga("0x3")]("TrackChangesEditing"),n=t.locale;e._descriptionFactory[ga("0x2")](ga("0x1"),(t=>Yo(n,ga("0x5"),t)))}}const fa=["afterInit","document","suggestion","has","isTouching","_splitMarkerName","createRange","_descriptionFactory","plugins","start","registerPostFixer","element","get","Title","isCollapsed","end","updateMarker","TrackChangesEditing","getNearestSelectionRange","newRange","model","registerElementLabel","getChangedMarkers","differ","locale"];var ha,pa;ha=fa,pa=280,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x14")](){const t=this.editor;if(!t[ba("0x3")][ba("0x17")](ba("0x8")))return;const e=t[ba("0x3")][ba("0x7")](ba("0xc"));e[ba("0x2")][ba("0x10")]("title-content",(()=>Yo(t[ba("0x13")],"ELEMENT_TITLE"))),t[ba("0xf")][ba("0x15")][ba("0x5")]((n=>{let o=!1;const s=Array.from(t[ba("0xf")][ba("0x15")][ba("0x12")][ba("0x11")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x0")](r);if(ba("0x16")!==s||!i.newRange)continue;const x=i[ba("0xe")],a=x[ba("0xa")].nodeBefore;if(!a||!a.is(ba("0x6"),"title-content"))continue;if(!x[ba("0x4")][ba("0x18")](x[ba("0xa")]))continue;const c=t[ba("0xf")].schema[ba("0xd")](x.end,"forward");if(c&&c[ba("0x9")]){const t=n[ba("0x1")](x[ba("0x4")],c[ba("0x4")]);t.isEqual(x)||(n[ba("0xb")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["plugins","afterInit","TrackChangesEditing","enableCommand","redo","editor","get","has"];var Ta,Ca;Ta=_a,Ca=281,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x0")](){const t=this[ya("0x4")],e=t[ya("0x7")][ya("0x5")](ya("0x1"));t[ya("0x7")][ya("0x6")]("UndoEditing")&&(e[ya("0x2")]("undo"),e.enableCommand(ya("0x3")))}}const Aa=["TrackChangesEditing","editor","afterInit","has","requires","get","plugins","enableCommand","toggleTableCaption"];var va,Ra;va=Aa,Ra=465,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[Sa("0x7")](){return[wx]}[Sa("0x5")](){const t=this[Sa("0x4")];t[Sa("0x0")][Sa("0x6")]("TableCaptionEditing")&&t[Sa("0x0")][Sa("0x8")](Sa("0x3"))[Sa("0x1")](Sa("0x2"))}}const La=["getAttribute","_descriptionFactory","*Format:* set start index to %0","type","isFirstBlockOfListItem","has","commandName","DocumentListUtils","handleListReversedCommand","listType","push","*Format:* set order to regular","listStart","styles","document","editor","toUpperCase","TrackChangesEditing","handleDescriptions","numbered","listStyle","handleListStartCommand","afterInit","commandParams","markMultiRangeBlockFormat","getSelectedBlocks","*Change to:* %0","filter","ELEMENT_","get","DocumentListPropertiesEditing","model","getListTypeFromListStyleType","plugins","handleListStyleCommand","bind","format","enableCommand","_getTranslationKeyForListStyle","_getSuggestionBlocksForListStyle","selection","DocumentListPropertiesUtils","list.properties","startIndex","length","from","_LIST_","replace","reversed","_getSuggestionBlocks","change","expandListBlocksToCompleteList","listReversed"];var Na,Ma;Na=La,Ma=404,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x2a")](){if(!this[wa("0x23")][wa("0x0")][wa("0x19")](wa("0x32")))return;const t=this[wa("0x23")].config.get(wa("0x9")),e=this[wa("0x23")][wa("0x0")][wa("0x31")](wa("0x25"));t[wa("0x21")]&&e.enableCommand(wa("0x28"),this[wa("0x1")][wa("0x2")](this)),t.reversed&&e[wa("0x4")](wa("0x13"),this[wa("0x1c")].bind(this)),t.startIndex&&e[wa("0x4")](wa("0x20"),this[wa("0x29")][wa("0x2")](this)),e[wa("0x15")].registerDescriptionCallback(this[wa("0x26")][wa("0x2")](this))}[wa("0x1")](t,e={}){const n=this[wa("0x23")][wa("0x0")][wa("0x31")]("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this[wa("0x23")].model[wa("0x11")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x28"),commandParams:[{type:e[wa("0x17")]}],formatGroupId:wa("0x28")})}))}[wa("0x1c")](t,e={}){const n=this[wa("0x23")][wa("0x0")][wa("0x31")](wa("0x25")),o=this[wa("0x23")][wa("0x0")][wa("0x31")](wa("0x1b")),s=this[wa("0x10")]((t=>o.isListItemBlock(t)&&wa("0x27")===t[wa("0x14")](wa("0x1d"))));null!==s&&this.editor[wa("0x33")][wa("0x11")]((()=>{n[wa("0x2c")](s,{commandName:wa("0x13"),commandParams:[{reversed:e[wa("0xf")]}],formatGroupId:"listReversed"})}))}[wa("0x29")](t,e={}){const n=this[wa("0x23")][wa("0x0")][wa("0x31")]("TrackChangesEditing"),o=this.editor.plugins[wa("0x31")](wa("0x1b")),s=this[wa("0x10")]((t=>o.isListItemBlock(t)&&wa("0x27")===t[wa("0x14")](wa("0x1d"))));null!==s&&this.editor[wa("0x33")][wa("0x11")]((()=>{n[wa("0x2c")](s,{commandName:wa("0x20"),commandParams:[{startIndex:e[wa("0xa")]}],formatGroupId:wa("0x20")})}))}handleDescriptions(t){const e=this[wa("0x23")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x1a")]){case wa("0x28"):o=wa("0x2e"),s={type:"format",content:Yo(e,o,Yo(e,this[wa("0x5")](n[wa("0x2b")][0].type)))};break;case wa("0x13"):o=n.commandParams[0][wa("0xf")]?"*Format:* set order to reversed":wa("0x1f"),s={type:wa("0x3"),content:Yo(e,o)};break;case"listStart":o=wa("0x16"),s={type:wa("0x3"),content:Yo(e,o,n[wa("0x2b")][0][wa("0xa")])}}return s}[wa("0x6")](){const t=this.editor[wa("0x0")][wa("0x31")](wa("0x1b"));let e=Array[wa("0xc")](this[wa("0x23")][wa("0x33")][wa("0x22")].selection[wa("0x2d")]());return e[wa("0x1e")](...t[wa("0x12")](e)),e=[...new Set(e)],e}[wa("0x10")](t){const e=this[wa("0x23")][wa("0x0")].get(wa("0x1b"));let n=Array[wa("0xc")](this[wa("0x23")].model[wa("0x22")][wa("0x7")][wa("0x2d")]())[wa("0x2f")](t);if(!n[wa("0xb")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x18")](t)&&o.push(t);return o}[wa("0x5")](t){return wa("0x30")+this[wa("0x23")][wa("0x0")].get(wa("0x8"))[wa("0x34")](t)[wa("0x24")]()+wa("0xd")+t[wa("0x24")]()[wa("0xe")](/-/g,"_")}}const Fa=["tableBorderStyle","getAttribute","tableCellBorderWidth","getFirstPosition","setAttribute","tableCellBackgroundColor","TrackChangesEditing","registerDescriptionCallback","_descriptionFactory","plugins","TablePropertiesEditing","discard","TrackChangesTableProperties","_getSuggestion","markBlockFormat","getContainedElement","removeAttribute","getSelectionAffectedTableCells","*Format:* change table cell properties","registerCustomCallback","tableWidth","has","subType","commandParams","batch","tableCellWidth","tableAlignment","model","locale","accept","document","_handlePropertyChange","get","getSuggestionCallback","_suggestionFactory","tableProperties","tableCellBorderStyle","enableCommand","editor","formatBlock","selection","tableBorderColor","handleDiscardAction","join","start","findAncestor","tableCellProperties","handleSuggestionDescription","TableCellPropertiesEditing","tableCellHorizontalAlignment"];var Pa,Da;Pa=Fa,Da=348,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[Ba("0x25")]=[Ba("0x2b"),Ba("0x2"),"tableBorderWidth",Ba("0x1c"),Ba("0x16"),"tableHeight","tableBackgroundColor"],this[Ba("0x30")]=["tableCellBorderColor",Ba("0x26"),Ba("0x4"),"tableCellPadding",Ba("0x1b"),"tableCellHeight",Ba("0x7"),Ba("0x1"),"tableCellVerticalAlignment"]}static get pluginName(){return Ba("0xe")}afterInit(){const t=this[Ba("0x28")][Ba("0xb")][Ba("0x22")](Ba("0x8"));if(this[Ba("0x28")].plugins[Ba("0x17")](Ba("0xc"))){for(const e of this[Ba("0x25")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x28")][Ba("0x1d")].document.selection[Ba("0x5")]()[Ba("0x2f")]("table");this[Ba("0x21")](e,[o],this.tableProperties,Ba("0x25"),t,n)}));t[Ba("0x24")].registerCustomCallback(Ba("0x29"),Ba("0x25"),"accept",t[Ba("0x24")][Ba("0x23")]("formatBlock",null,"discard")),t[Ba("0x24")].registerCustomCallback(Ba("0x29"),"tableProperties",Ba("0xd"),((t,e)=>this[Ba("0x2c")](this.tableProperties,t,e))),t[Ba("0x24")].registerCustomCallback(Ba("0x29"),Ba("0x25"),Ba("0x2d"),(()=>!1))}if(this[Ba("0x28")][Ba("0xb")][Ba("0x17")](Ba("0x0"))){for(const e of this[Ba("0x30")])t[Ba("0x27")](e,((t,n)=>{const o=this.editor[Ba("0xb")][Ba("0x22")]("TableUtils")[Ba("0x13")](this[Ba("0x28")][Ba("0x1d")][Ba("0x20")][Ba("0x2a")]);this._handlePropertyChange(e,o,this.tableCellProperties,Ba("0x30"),t,n)}));t[Ba("0x24")].registerCustomCallback(Ba("0x29"),"tableCellProperties",Ba("0x1f"),t[Ba("0x24")][Ba("0x23")]("formatBlock",null,"discard")),t[Ba("0x24")].registerCustomCallback(Ba("0x29"),Ba("0x30"),"discard",((t,e)=>this[Ba("0x2c")](this[Ba("0x30")],t,e))),t._suggestionFactory[Ba("0x15")]("formatBlock",Ba("0x30"),"join",(()=>!1))}t[Ba("0xa")][Ba("0x9")]((t=>this[Ba("0x31")](t)))}[Ba("0x21")](t,e,n,o,s,r){const i=this[Ba("0x28")][Ba("0xb")][Ba("0x22")]("TrackChangesEditing");this[Ba("0x28")][Ba("0x1d")].enqueueChange(r[Ba("0x1a")],(()=>{for(const t of e)if(this[Ba("0xf")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x3")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x10")](t,{commandParams:[e]},[],o)}}))}[Ba("0x2c")](t,e,n){const o=e[0][Ba("0x2e")].nodeAfter,s=n[Ba("0x19")][0];this[Ba("0x28")][Ba("0x1d")].change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x6")](n,s[n],o):e[Ba("0x12")](n,o)}))}[Ba("0x31")](t){if(t.data)switch(t[Ba("0x18")]){case Ba("0x25"):return{type:"format",content:Yo(this[Ba("0x28")][Ba("0x1e")],"*Format:* change table properties")};case Ba("0x30"):return{type:"format",content:Yo(this[Ba("0x28")][Ba("0x1e")],Ba("0x14"))}}}_getSuggestion(t,e){const n=this[Ba("0x28")][Ba("0xb")][Ba("0x22")](Ba("0x8"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0x11")]();if(o.subType===e&&n===t)return o}return null}}const Ua=["ready","_commentsRepository","createSelection","change:activeMarkers","setAttribute","editing","newRange","fromRange","low","toViewElement","_removeSuggestion","document","_editor","_onDiscard","name","hasSuggestion","_refreshSuggestionsChain","ck-suggestion-marker-formatBlock","multipleBlocks","track-changes-suggestion-not-found","enqueueChange","_trackFormatChanges","item","attributes","unbindElementFromMarkerName","isEqual","requires","@external","dataDowncast","_setSuggestionData","discardSelectedSuggestions","elementStart","data","createElement","element","never","selection","mapper","catch","dataToMarker","stop","getAllAdjacentSuggestions","some","author","isObject","getRanges","sort","addMarker","_suggestions","parent","getSuggestion","isMultiRange","deletion","createRange","value","_cutOutSuggestionMarker","values","getMarkers","forceDefaultExecution","position","marker-count","suggestionUnloaded","insertion:accept","getChangedMarkers","isExternal","always","tablePasteChainId","before","writer","_joinWithAdjacentSuggestions","splice","discardSuggestion","filter","markInlineFormat","nodeBefore","acceptAllSuggestions","commandName","ck-suggestion-marker-","options","markBlockFormat","$graveyard","oldRange","track-changes-adapter-missing-getsuggestion","isBefore","_getSuggestionData","getDifference","insertion:","markers","_addThreadToSuggestion","PENDING_ACTION_SUGGESTION","insertContent","getCommentThread","addComment","_mergeNestedSuggestions","execute","reconvertMarker","_suggestionFactory","$marker","hasComments","_findSuggestions","isLocal","removeAttribute","listenTo","isInContent","_adapter","isAfter","elementEnd","containsItem","formatInline:accept","length","model","markerToHighlight","formatBlock:chain","getWalker","deletion:chain","addMarker:suggestion:formatBlock","CommentsRepository","isAtStart","createRangeIn","containerElement","editor","_rangeIsInLocalUserInsertion","trackChanges.mergeNestedSuggestions","_joinSuggestions","markDeletion","formatGroupId","batch","trackChanges.trackFormatChanges","isSelectable","discardAllSuggestions","_enabledCommands","_isForcedDefaultExecutionBlock","addMarker:suggestion","substr","track-changes-adapter-already-set","ck-suggestion-marker--active","_checkSuggestionCorrectness","ck-suggestion-marker","includes","join","_saved","creator","rootName","locale","acceptSuggestion","_splitMarkerName","getRange","markerReady","after","_getAuthorFromId","_handleNewSuggestionMarker","getFirstRange","highest","_registerDefaultCallbacks","formatBlock:","getUser","split","next","getAncestors","backward","skipNestingCheck","suggestionLoaded","accept","enableCommand","getShiftedBy","range","notReady","multi","move","change","then","isUndo","addSuggestion","track-changes-suggestion-data-mismatch","formatInline:","plugins","root","commentThread","markMultiRangeDeletion","define","containsRange","insertion","consumable","updateSuggestion","getCustomProperty","registerPostFixer","schema","toJSON","start","isBlock","moveTargetPosition","addUser","consume","addHighlight","_updateSuggestionData","size","nodeAfter","removed","normal","remove","applyOperation","_breakSuggestionMarker","chain","fire","add","_descriptionFactory","detach","_createSuggestion","fromCharCode","showSuggestionHighlights","every","removeMarkers","data-suggestion","markMultiRangeInsertion","getFirstMarker","targetPosition","insert","isCollapsed","from","isAtEnd","adapter","end","external:","trackChanges","lowest","upcast","getSuggestions","change:_saved","formatInline","addMarkerName","isInsideObject","addCommentThread","discard","formatInline:discard","activeMarkers","forward","_getExternalAuthor","delete","_customCallbacks","_setSuggestionRange","createPositionAt","trackChangesCommand","track-changes-command-not-found","editingDowncast","differ","addRange","has","containsPosition","markerToData","setSelection","previous","collaboration.channelId","formatBlock","acceptSelectedSuggestions","commands","conversion","_suggestionState","deletion:discard","dataReady","isLimit","removeMarker:suggestion:formatBlock","buildSuggestion","registerCustomCallback","TrackChangesEditing","widget","formatBlock:join","getNearestSelectionRange","isNextTo","pluginName","markerName","isDocumentOperation","getSuggestionCallback","getChanges","deletion:","get","group","_model","set","documentSelection","addSuggestionData","head","howMany","refresh","type","_isDataLoaded","elementToElement","high","_addSuggestionMarker","authoredAt","subType","assign","insertion:chain","removeMarker","isOwn","for","removeClass","suggestion:","rethrowUnexpectedError","map","_defaultCallbacks","removeComment","suggestion","config","getLastMatchingPosition","getAttribute","init","containsRangeInObject","Users","push","deletion:join","open","addClass","PendingActions","isRemovable","getIntersection","createdAt","getMultiRangeId","markInsertion","isIntersectingWithRange","setTo","change:data","updateMarker","deleteContent"];var Ga,Ha;Ga=Ua,Ha=320,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x1d")](){return[za("0x77"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x10f")](){return za("0x10a")}constructor(t){function e(t){return t.map((t=>String[za("0xd3")](t))).join("")}super(t),this[za("0x118")](za("0xed"),[]),this.on(za("0x6"),((e,n,o,s)=>{this[za("0x117")].change((()=>{for(const e of[...s,...o])this[za("0x117")].markers.has(e)&&t[za("0x8")][za("0x62")](e)}))})),this[za("0xd0")]=new ss(this.editor.model.schema,this[za("0x7b")].locale),this[za("0x6b")]=null,this._suggestionFactory=new Va(this[za("0x7b")]),this._suggestions=new Map,this[za("0x4")]=t.plugins[za("0x115")]("CommentsRepository"),this[za("0x85")]=new Set,this[za("0x117")]=this[za("0x7b")].model,this._suggestionState=new WeakMap,this[za("0x86")]=!1,t[za("0x131")][za("0xb6")](za("0x82"),"default"),this[za("0x18")]=t.config[za("0x115")]("trackChanges.trackFormatChanges"),t[za("0x131")][za("0xb6")](za("0x7d"),!0),this[za("0x60")]=t.config.get(za("0x7d")),this[za("0xf4")]=new d(t,this[za("0x85")]),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,49,56,50,54])}[za("0x134")](){const t=this[za("0x7b")];t[za("0x102")][za("0x129")](za("0xf6"))[za("0x72")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[za("0x94")](t[za("0x110")]),o=[za("0x8c"),za("0x50")+n];let s=3e3;return this[za("0xed")][za("0x8d")](t.markerName)&&(o[za("0x137")](za("0x8a")),s=3010),za("0x37")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x102")][za("0x129")](za("0x1f"))[za("0xcf")]((e=>{e.on(za("0x87"),((e,n,o)=>{if(!o[za("0x51")][za("0xd4")])return;const s=n[za("0x19")];if(!s)return;const r=o[za("0x28")][za("0xc")](s);t.model.schema[za("0x2f")](s)&&r&&!r.getCustomProperty(za("0x10b"))&&r.is(za("0x7a"))&&(0,x.toWidget)(r,o[za("0x47")])}),{priority:za("0x121")})})),t.conversion[za("0x129")](za("0x1f"))[za("0x72")]({model:"suggestion",view:(t,e)=>{if(!e.options[za("0xd4")])return null;const{type:n}=this[za("0x94")](t[za("0x110")]);return{classes:[za("0x8c"),za("0x50")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x19")])return;if(o[za("0x19")].is("selection"))return void s[za("0xb9")].consume(o[za("0x19")],n[za("0x11")]);const r=s.mapper[za("0xc")](o[za("0x19")]);if(!o.item.is(za("0x25"))||!t[za("0x71")][za("0xbd")][za("0xc0")](o[za("0x19")])||r[za("0xbb")](za("0xc4")))return;const{id:i}=this[za("0x94")](o[za("0x110")]);s.writer[za("0x13a")]([za("0x8c"),za("0x14")],r),s[za("0x47")][za("0x7")](za("0xd7"),i,r),s[za("0x28")].bindElementToMarker(r,o[za("0x110")]),e&&(this[za("0xed")].includes(o[za("0x110")])?s[za("0x47")][za("0x13a")](za("0x8a"),r):s[za("0x47")][za("0x12a")](za("0x8a"),r));for(const e of t.model[za("0x79")](o[za("0x19")]).getItems())s[za("0xb9")][za("0xc3")](e,n.name);s.consumable[za("0xc3")](o.item,n.name)};t[za("0x102")].for(za("0x1f")).add((t=>{t.on(za("0x76"),((t,e,o)=>{o[za("0x51")][za("0xd4")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x9b")})})),t[za("0x102")][za("0x129")](za("0x1f"))[za("0xfb")]({model:za("0x130"),view:(t,e)=>e[za("0x51")][za("0xd4")]?null:{group:za("0x130"),name:t[za("0x88")](11)}}),t[za("0x102")][za("0x129")](za("0xe4"))[za("0x120")]({view:{name:za("0x130"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x12b")+t.getAttribute("suggestion-type")+":"+t[za("0x133")]("id");return t[za("0x133")](za("0x3f"))&&(n+=":"+t[za("0x133")](za("0x3f"))),e[za("0x24")](za("0x64"),{"data-name":n})}}),t.conversion[za("0x129")](za("0xe4"))[za("0x2a")]({view:za("0x130")}),t[za("0x102")][za("0x129")]("editingDowncast")[za("0xcf")]((t=>{t.on(za("0x76"),n(),{priority:za("0x121")})})),t[za("0x102")][za("0x129")](za("0xf6"))[za("0xcf")]((t=>{t.on(za("0x107"),((t,e,n)=>{const o=n[za("0x28")].markerNameToElements(e[za("0x110")]);if(o)for(const t of o)t[za("0xbb")]("addHighlight")||(n.writer[za("0x12a")]([za("0x8c"),za("0x14"),"ck-suggestion-marker--active"],t),n[za("0x47")][za("0x68")]("data-suggestion",t),n[za("0x28")][za("0x1b")](t,e[za("0x110")]))}),{priority:za("0x121")})})),t[za("0x71")].document[za("0xbc")]((e=>{let n=!1;const o=Array.from(t[za("0x71")].document[za("0xf7")][za("0x42")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x94")](x);if("suggestion"!==o)continue;const u=this[za("0x33")][za("0x115")](l);if(null!=a[za("0x9")])if(za("0xe7")==c&&(n=n||qa(a.newRange,x,e,t[za("0x71")].schema)),a[za("0x9")][za("0xdc")]||"$graveyard"==a[za("0x9")][za("0xb3")][za("0x91")]||"formatBlock"==c&&!Ja(a[za("0x9")])||za("0x37")==c&&(Xa(i=a.newRange)||(r=i).start[za("0x34")]==r[za("0xe0")][za("0x4d")]&&r[za("0xbf")][za("0xde")]))e.removeMarker(x),n=!0;else{if(!u||!u[za("0x6a")])continue;s[za("0xcf")](u)}}var r,i;return s[za("0xc6")]>0&&(n=!!this[za("0x48")](s)||n),n})),t[za("0x71")][za("0xe")][za("0xbc")]((e=>{let n=!1;for(const o of t.model.document[za("0xf7")][za("0x113")]()){if(za("0xdb")!=o[za("0x11e")])continue;const s=o[za("0x3e")].getShiftedBy(o[za("0x70")]);if(s.isAtEnd)for(const r of this[za("0x33")][za("0x3b")]()){if(r.isMultiRange||!r[za("0x6a")])continue;if(za("0xff")!=r[za("0x11e")])continue;const i=r[za("0x9a")]();if(i[za("0xbf")][za("0x34")]!=i.end[za("0x34")]&&i.end[za("0x1c")](o.position)){const o=t[za("0x71")][za("0x38")](i.start,s);e.updateMarker(r[za("0xd9")](),{range:o}),n=!0}}}return n})),t[za("0x71")][za("0x5a")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[za("0x94")](e.name),n=this[za("0x33")][za("0x115")](t);n&&n.addMarkerName(e[za("0x11")])}})),t.model.document.on(za("0x0"),(()=>{const e=Array[za("0xdd")](t[za("0x71")].document[za("0xf7")][za("0x42")]())[za("0x4b")]((t=>za("0x130")===this[za("0x94")](t[za("0x11")])[za("0x116")]));if(0===e.length)return;e[za("0x31")](((t,e)=>{const n=t[za("0x23")][za("0x54")],o=e[za("0x23")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xbf")][za("0x56")](o.start)?-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[za("0x99")](t);o[za("0xcf")](e)}else{const t=this[za("0x33")][za("0x115")](e);null!==s[za("0x9")]||t[za("0x6a")]?(n[za("0xcf")](t[za("0x11b")]),o.add(t)):this[za("0xd")](t)}}o[za("0xc6")]>0&&this[za("0x13")](o);for(const t of n)this[za("0xce")]("suggestionChanged",t)})),t.model.on(za("0xcb"),((e,n)=>{const o=n[0];if(!this[za("0x33")][za("0xc6")])return;if(!o[za("0x111")])return;if(o[za("0x81")][za("0xae")]||!o.batch[za("0x67")])return;let s,r;switch(o[za("0x11e")]){case za("0xdb"):s=t[za("0x71")].createPositionAt(o[za("0x3e")]),r=s[za("0xa7")](o[za("0x11c")]);break;case za("0x9f"):s=t[za("0x71")].createPositionAt(o.splitPosition),r=t[za("0x71")][za("0xf3")](o[za("0xc1")]);break;case za("0xab"):s=t[za("0x71")].createPositionAt(o[za("0xda")]),r=s[za("0xa7")](o.howMany);break;default:return}const i=t.model[za("0x38")](s,r);t[za("0x71")].change((()=>{for(const{suggestion:t,meta:e}of this[za("0x66")](i)){if(t[za("0x36")])continue;if(za("0xe7")==t[za("0x11e")])continue;const n=t[za("0x23")]&&t[za("0x23")][za("0x15")];(za("0xff")!=t[za("0x11e")]||"split"==o[za("0x11e")]&&!n)&&(e[za("0x135")]||za("0xb8")==t[za("0x11e")]&&e.isOwn||t[za("0x9a")]()[za("0xb7")](i)&&this[za("0xcc")](t,s,r))}}))}),{priority:za("0xe3")}),t.model.on(za("0x2"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x3d")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[za("0xf4")][za("0x39")])return;if(o[za("0xdc")])return;const r=t[za("0x71")].schema,{start:i,end:x}=o[za("0x9a")](),a=i[za("0xc7")]&&r.isLimit(i.nodeAfter)?null:r[za("0x10d")](i,za("0xee")),c=x[za("0x4d")]&&r[za("0x106")](x.nodeBefore)?null:r[za("0x10d")](x,za("0xa2")),l=t[za("0x71")][za("0x38")](a?a.start:i,c?c[za("0xe0")]:x);t[za("0x71")].change((e=>{this[za("0x7f")](l);const n=t[za("0x71")].schema[za("0x10d")](l[za("0xbf")]);o.is(za("0x119"))?e[za("0xfc")](n):o[za("0x142")](n)})),e[za("0x2b")]()}),{priority:e.priorities[za("0xc9")]+10}),t.model.on(za("0x5d"),((e,n)=>{const o=n[n[za("0x70")]-1];o&&o[za("0x3d")]||this._isForcedDefaultExecutionBlock||this[za("0xf4")][za("0x39")]&&(t[za("0x71")][za("0xac")]((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const s=o.end.nodeBefore,r=t[za("0x71")][za("0xbd")];s&&r[za("0xc0")](s)&&!r.isObject(s)&&(o=t[za("0x71")].createRange(o[za("0xbf")],t.model[za("0xf3")](s,za("0xe0")))),this[za("0x140")](o)})),e[za("0x2b")]())}),{priority:za("0x121")}),this.editor[za("0x101")][za("0xcf")](za("0xe2"),this[za("0xf4")]),this.enableCommand(za("0xe2"));const o=new p(t,this[za("0x33")]);t[za("0x101")][za("0xcf")]("acceptSuggestion",o),this[za("0xa6")](za("0x93"));const s=new C(t,this[za("0x33")]);t[za("0x101")].add(za("0x4a"),s),this[za("0xa6")](za("0x4a")),t[za("0x101")][za("0xcf")](za("0x4e"),new F(t,o,this._suggestions)),this.enableCommand(za("0x4e")),t[za("0x101")][za("0xcf")]("discardAllSuggestions",new F(t,s,this[za("0x33")])),this[za("0xa6")](za("0x84")),t[za("0x101")][za("0xcf")](za("0x100"),new U(t,o,this[za("0x33")])),this[za("0xa6")](za("0x100")),t.commands.add(za("0x21"),new U(t,s,this._suggestions)),this.enableCommand(za("0x21"));const r=t[za("0xb2")].get(za("0x77"));this.listenTo(r,za("0x5f"),((t,{threadId:e})=>{const n=this[za("0x33")].get(e);n&&n[za("0xb4")]&&1===n.commentThread[za("0x70")]&&this[za("0xc5")](e,{hasComments:!0})}),{priority:"low"}),this[za("0x69")](r,za("0x12f"),((t,{threadId:e})=>{const n=this._suggestions[za("0x115")](e);n&&n[za("0xb4")]&&!n[za("0xb4")][za("0x70")]&&this[za("0xc5")](e,{hasComments:!1})}),{priority:za("0xb")})}set[za("0xdf")](t){if(this._adapter)throw new e.CKEditorError(za("0x89"),this);this[za("0x6b")]=t}get[za("0xdf")](){return this[za("0x6b")]}[za("0xe5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x33")][za("0x3b")]())t&&!e[za("0x6a")]||n.push(e);return e?n[za("0x12d")]((t=>t[za("0xbe")]())):n}[za("0x35")](t){const n=this[za("0x33")][za("0x115")](t);if(!n)throw new e.CKEditorError(za("0x16"),this);return n}[za("0x12")](t){return this._suggestions.has(t)}[za("0x11a")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x11e")].split(":"),i=this._suggestions[za("0x115")](n)||this._createSuggestion(s,r,n,e,o);if(this[za("0x5b")](i),this[za("0x8b")](i,s,r||null,e),i[za("0x13e")]=t[za("0x13e")],i[za("0x11f")]=!0,o&&o[za("0x1e")]){const t=o[za("0x1e")],e=this[za("0xef")](t.authorName);i[za("0x123")]=t[za("0x13e")],i[za("0x2e")]=e,i[za("0x43")]=!0}else i[za("0x123")]=t[za("0x13e")];switch(t[za("0x23")]&&(i[za("0x23")]=t[za("0x23")]),t[za("0x1a")]&&(i[za("0x1a")]=t[za("0x1a")]),this[za("0x6b")]&&this[za("0x6b")][za("0xaf")]||(i[za("0x8f")]=!0),this._suggestionState[za("0x115")](i)){case za("0xa9"):this[za("0x103")][za("0x118")](i,za("0x105"));break;case za("0x96"):i[za("0x6a")]?(this._refreshSuggestionsChain(new Set([i])),this[za("0x48")](new Set([i])),this[za("0x103")][za("0x118")](i,"ready"),this[za("0xce")](za("0xa4"),i)):this[za("0x103")][za("0x118")](i,"removed")}return i}[za("0x93")](t){this[za("0x3d")]((()=>{this[za("0x7b")][za("0x71")][za("0xac")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0xa5")]()}))}))}[za("0x4a")](t){this[za("0x3d")]((()=>{this[za("0x7b")][za("0x71")][za("0xac")]((()=>{for(const e of t[za("0x2c")]())e.discard()}))}))}[za("0xa6")](t,n){const o=this[za("0x7b")][za("0x101")][za("0x115")](t);if(!o)throw new e.CKEditorError(za("0xf5"),this,{commandName:t});this[za("0x85")].add(o),n&&o.on("execute",((t,e)=>{this[za("0xf4")][za("0x39")]&&(this._isForcedDefaultExecutionBlock||e[za("0x70")]>0&&e[e[za("0x70")]-1]&&e[e[za("0x70")]-1].forceDefaultExecution||(n(((...t)=>o[za("0x61")](...t,{forceDefaultExecution:!0})),...e),t[za("0x2b")]()))}),{priority:za("0x121")})}[za("0x3d")](t){let n,o;const s=this[za("0x86")];this[za("0x86")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x86")]=!1),o&&e.CKEditorError[za("0x12c")](o,this),n}[za("0x140")](t,n=null,o={}){if(t[za("0xdc")])return null;const s=this.editor[za("0xb2")][za("0x115")](za("0x136")).me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,za("0xb8")))if(s.isOwn){if(!s[za("0x10e")]){if(s[za("0x135")]){if(!this[za("0x60")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this._breakSuggestionMarker(e,t[za("0xbf")],t[za("0xe0")]);break}if(n==e[za("0x124")]&&tc(e,o)){const n=e.getFirstRange();return n[za("0xbf")][za("0x1c")](t.end)?this[za("0xf2")](e,this[za("0x117")].createRange(t.start,n[za("0xe0")])):this[za("0xf2")](e,this[za("0x117")][za("0x38")](n.start,t[za("0xe0")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x59")+n:za("0xb8"),a=this[za("0x20")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x122")](x,r,i,t),a}[za("0xd8")](t,n=za("0xaa"),o={}){const s=this[za("0x7b")][za("0xb2")][za("0x115")](za("0x136")).me,r=this._suggestionFactory[za("0x112")](za("0xb8"),n,za("0x8e"));for(const e of this.getSuggestions())if(e[za("0x2e")].id==s.id&&za("0xb8")==e[za("0x11e")]&&e[za("0x124")]==n&&tc(e,o)&&(r(e[za("0x30")](),t)||r(t,e[za("0x30")]()))){for(const n of t)e[za("0xf8")](n);return e}for(const{suggestion:e,meta:n}of this[za("0x66")](t,za("0xb8"))){if(!n.isOwn)continue;if(!this._mergeNestedSuggestions&&n[za("0x135")])continue;if(!tc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[za("0xb7")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=za("0x59")+n,c=this[za("0x20")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x122")](a,i,x,e,Zo[za("0x13f")]());return c}[za("0x4c")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0xdc")])return null;if(za("0x26")===this._trackFormatChanges){const e=this[za("0x63")].getSuggestionCallback(za("0xe7"),o,"accept");return this[za("0x3d")]((()=>e([t],n,s))),null}const r=this.editor[za("0xb2")][za("0x115")](za("0x136")).me,i=[];if("always"!==this[za("0x18")])for(const{suggestion:e,meta:n}of this[za("0x66")](t,"insertion"))n[za("0x128")]&&!n[za("0xe9")]&&i[za("0x137")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[za("0x137")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x70")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[za("0x70")]}}return n}(t,i);x[za("0x70")]&&this._model.change((()=>{for(const t of x){const e=this[za("0x63")][za("0x112")]("formatInline",o,za("0xa5"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0xe0")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xe7"))){if(!n[za("0x128")])continue;if(e[za("0x124")]!=o)continue;if(!tc(e,s))continue;const r=e.getFirstRange();if(r[za("0xb7")](t,!0))return null;x=x[za("0x56")](r[za("0xbf")])?x:r.start,a=a[za("0x6c")](r[za("0xe0")])?a:r[za("0xe0")],i?r[za("0xbf")][za("0x56")](i[za("0x9a")]()[za("0xbf")])?(i[za("0xd6")](),i=e):e[za("0xd6")]():i=e}const c=this._model.createRange(x,a);if(i)this[za("0xf2")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x20")]({id:t,type:za("0xb1")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x122")]("formatInline:"+o,t,i,c)}}return null}[za("0x52")](t,n,o=[],s=null,r={}){n[za("0x80")]||(n[za("0x80")]=n.commandName),n.multipleBlocks=t.is(za("0xa8")),s=s||$a(n);const i=o[za("0x12d")]((t=>Qa(t,this[za("0x117")]))),x=t.is(za("0xa8"))?t:Qa(t,this[za("0x117")]);if(za("0x26")===this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback("formatBlock",s,za("0xa5"));return this[za("0x3d")]((()=>t([x],n,r))),null}i[za("0x137")](x);let a=!0;for(const t of i)if(!this[za("0x7c")](t)){a=!1;break}if(a&&"always"!==this[za("0x18")]){const t=this._suggestionFactory.getSuggestionCallback("formatBlock",s,za("0xa5"));return this[za("0x3d")]((()=>t([x],n,r))),null}let c=null,l=x[za("0xbf")],u=x.end;for(const{suggestion:t,meta:e}of this[za("0x66")](x,"formatBlock")){if(!e[za("0x128")])continue;if(e[za("0x10e")]||e.containsRangeInObject||e[za("0xe9")])continue;if(t.data[za("0x80")]!=n[za("0x80")])continue;if(!tc(t,r))continue;const o=t[za("0x9a")]();if(t[za("0x124")]==s){if(o[za("0xb7")](x,!0))return null;l=l[za("0x56")](o.start)?l:o[za("0xbf")],u=u[za("0x6c")](o[za("0xe0")])?u:o[za("0xe0")],c?o[za("0xbf")][za("0x56")](c[za("0x9a")]()[za("0xbf")])?(c.removeMarkers(),c=t):t[za("0xd6")]():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const d=this[za("0x7b")][za("0xb2")][za("0x115")](za("0x136")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0xf2")](c,this._model[za("0x38")](l,u)),c;{const t=this[za("0x20")]({id:g,type:za("0x9d")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker("formatBlock:"+s,g,m,this._model.createRange(l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0x80")]=n[za("0x4f")]);const i=t[0];n[za("0x15")]=i.is(za("0xa8")),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0x117")]))),a=i.is("range")?t:t[za("0x12d")]((t=>Qa(t,this[za("0x117")])));if("never"===this[za("0x18")]){const t=this[za("0x63")][za("0x112")](za("0xff"),s,za("0xa5"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[za("0x137")](...a);let c=!0;for(const t of x)if(!this[za("0x7c")](t)){c=!1;break}if(c&&za("0x44")!==this[za("0x18")]){const t=this[za("0x63")].getSuggestionCallback(za("0xff"),s,za("0xa5"));return this[za("0x3d")]((()=>t(a,n,r))),null}const l=this[za("0x7b")][za("0xb2")][za("0x115")]("Users").me;for(const t of this[za("0xe5")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[za("0x11e")]||t[za("0x23")][za("0x80")]!=n.formatGroupId)continue;if(!tc(t,r))continue;const e=t.subType==s;for(let n=0;n<a[za("0x70")];n++){const o=a[n];for(const s of t[za("0x3c")]()){const r=s[za("0x95")]();if(o[za("0x1c")](r)){e?(a[za("0x49")](n,1),n--):t.removeMarker(s[za("0x11")]);break}}}}if(0==a[za("0x70")])return null;const u=this[za("0x63")][za("0x112")](za("0xff"),s,za("0x8e"));for(const t of this[za("0xe5")]())if(t[za("0x2e")].id==l.id&&"formatBlock"==t[za("0x11e")]&&t[za("0x23")][za("0x80")]==n[za("0x80")]&&t[za("0x124")]==s&&tc(t,r)&&(u(t[za("0x30")](),a)||u(a,t[za("0x30")]()))){for(const e of a)t[za("0xf8")](e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x9d")+s,f=this[za("0x20")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x122")](m,d,g,t,Zo[za("0x13f")]());return f}[za("0x7f")](t,n=null,o={}){if(t[za("0xdc")])return null;const s=this.editor.plugins.get("Users").me,r=new i.LiveRange(t[za("0xbf")],t[za("0xe0")]);for(const{suggestion:t,meta:e}of this[za("0x66")](r,za("0xb8")))if(e.isOwn&&!e.isNextTo)if(t[za("0x36")]){const e=t[za("0x30")]().filter((t=>za("0x53")!=t[za("0xb3")][za("0x91")]));if(e[za("0xd5")]((t=>r[za("0xb7")](t,!0)))&&t[za("0xeb")](),e[za("0x2d")]((t=>t[za("0xb7")](r,!0)))){const t=this[za("0x63")][za("0x112")](za("0x37"),n,za("0xa5"));return this[za("0x3d")]((()=>t([r],null,o))),null}}else{const e=r[za("0x13d")](t[za("0x9a")]());null!==e&&t[za("0x10")]([e],null,o)}if(r[za("0xd1")](),r[za("0xdc")]||za("0x53")==r.root[za("0x91")])return null;let x=null,a=r[za("0xbf")],c=r[za("0xe0")];const l=this[za("0x66")](r,za("0x37"));for(const{suggestion:t,meta:e}of l){const n=this[za("0x117")].createRange(a,c);if(e[za("0x128")]&&(this[za("0x60")]||!e.containsRangeInObject&&!e[za("0xe9")]))if(t[za("0x36")]){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0x30")]()){if(o[za("0xb7")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[za("0xeb")]()}else{const e=t.getFirstRange();if(e[za("0xb7")](n,!0))return t;if(!tc(t,o)){n[za("0xb7")](e)?t[za("0xd6")]():e[za("0xfa")](a)?a=e[za("0xe0")]:e[za("0xfa")](c)&&(c=e[za("0xbf")]);continue}a=a[za("0x56")](e.start)?a:e.start,c=c[za("0x6c")](e[za("0xe0")])?c:e[za("0xe0")],o=Object[za("0x125")]({},t.attributes),x?e[za("0xbf")][za("0x56")](x[za("0x9a")]().start)?(x.removeMarkers(),x=t):t.removeMarkers():x=t}}if(x)return this[za("0xf2")](x,this[za("0x117")][za("0x38")](a,c)),x;{const t=(0,e.uid)(),r=this._model[za("0x38")](a,c),i=s.id,x=n?"deletion:"+n:za("0x37"),l=this[za("0x20")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0xb5")](t,n="multi",o={}){const s=this[za("0x7b")][za("0xb2")][za("0x115")](za("0x136")).me,r=t[za("0x12d")]((t=>new i.LiveRange(t[za("0xbf")],t[za("0xe0")]))),x=new Set;for(const{suggestion:t,meta:e}of this[za("0x66")](r,za("0xb8")))e[za("0x128")]&&!e[za("0x10e")]&&x.add(t);for(const e of x)if(e[za("0x36")]){const s=e[za("0x30")]();if((!e[za("0x1a")]||!e.attributes[za("0xa3")])&&s[za("0xd5")]((t=>r.some((e=>e[za("0xb7")](t,!0)))))&&e[za("0xeb")](),r[za("0xd5")]((t=>s[za("0x2d")]((e=>e[za("0xb7")](t,!0)))))){const e=this[za("0x63")][za("0x112")](za("0x37"),n,za("0xa5"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x9a")]();if(r[za("0x2d")]((e=>e[za("0xb7")](t,!0)))&&e[za("0xeb")](),r[za("0xd5")]((e=>t[za("0xb7")](e,!0)))){const t=this[za("0x63")].getSuggestionCallback(za("0x37"),n,za("0xa5"));return this[za("0x3d")]((()=>t(r,null,o))),null}}const a=this[za("0x63")][za("0x112")](za("0x37"),n,za("0x8e"));let c=null;for(const t of this[za("0xe5")]())if(t[za("0x2e")].id==s.id&&t[za("0x6a")]&&za("0x37")==t[za("0x11e")]&&t.subType==n&&tc(t,o)&&(a(t[za("0x30")](),r)||a(r,t.getRanges())))if(c){if(t.commentThread&&t[za("0xb4")][za("0x70")])continue;for(const e of t[za("0x30")]())c[za("0x141")](e)||c[za("0xf8")](e);t.removeMarkers()}else{c=t;for(const e of r)t[za("0x141")](e)||t.addRange(e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[za("0x66")](r,za("0x37")))e[za("0x128")]&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[za("0xe9")])&&tc(t,o)&&x.add(t);for(const t of x){const e=t.getRanges();if((!o||!o[za("0xa3")])&&r[za("0xd5")]((t=>e[za("0x2d")]((e=>e[za("0xb7")](t,!0))))))return t;(!t[za("0x1a")]||!t[za("0x1a")][za("0xa3")])&&e[za("0xd5")]((t=>r[za("0x2d")]((e=>e[za("0xb7")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=s.id,d=za("0x114")+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0xd1")](),t[za("0xdc")]||za("0x53")==t[za("0xb3")][za("0x91")]||this[za("0x122")](d,l,u,t,Zo.getMultiRangeId());return g}[za("0xf2")](t,e){const n=t.getFirstMarker();this[za("0x117")].change((t=>{t.updateMarker(n,{range:e})}))}[za("0x5b")](t){const e=t.id,n=this[za("0x7b")].config[za("0x115")](za("0xfe"));this[za("0x4")].hasCommentThread(e)||this[za("0x4")][za("0xea")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0x5e")](e);o.unbind(za("0x13c")),o[za("0x13c")]=!1,t.commentThread=o}[za("0x8b")](t,n,o,s){if(t[za("0x11e")]!=n||t[za("0x124")]!=o||t[za("0x90")].id!=s)throw this[za("0x7b")].enableReadOnlyMode(za("0xb0")),new e.CKEditorError(za("0xb0"),this)}[za("0x3a")](t,n){const o=t[za("0x9a")]();if(n[za("0x1c")](o))t[za("0xd6")]();else if(o[za("0xb7")](n)){const s=this[za("0x117")].createPositionAt(n[za("0xbf")][za("0x4d")],za("0xe0"));this._setSuggestionRange(t,this._model[za("0x38")](o[za("0xbf")],s));const r=(0,e.uid)(),i=t[za("0x90")].id,x=t[za("0x11e")]+":"+t.subType;this[za("0x20")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x23")],attributes:t[za("0x1a")]});const a=this[za("0x117")][za("0xf3")](n[za("0xe0")].parent,za("0x97")),c=this._model.createRange(a,o[za("0xe0")]);this[za("0x122")](x,r,i,c)}else if(o[za("0xfa")](n.start)){const e=this._model[za("0xf3")](n[za("0xbf")][za("0x4d")],za("0xe0"));this[za("0xf2")](t,this._model[za("0x38")](o[za("0xbf")],e))}else{const e=this[za("0x117")][za("0xf3")](n[za("0xe0")][za("0x34")],"after");this[za("0xf2")](t,this._model[za("0x38")](e,o.end))}}[za("0x7c")](t){for(const{suggestion:e,meta:n}of this[za("0x66")](t,za("0xb8"))){if(!n[za("0x128")])continue;const o=e.getRanges();for(const e of o)if(!t[za("0x58")](e)[za("0x70")])return!0}return!1}[za("0x98")](t){const n=this[za("0x7b")][za("0xb2")].get(za("0x136"))[za("0x9e")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[za("0xef")](t){const e=this[za("0x7b")][za("0xb2")][za("0x115")](za("0x136")),n=(0,r.hashObject)(za("0xe1")+t);return e[za("0x9e")](n)||e[za("0xc2")]({id:n,name:t})}[za("0xd2")](t,e,n,o,s){const r=this[za("0x98")](o),i=this[za("0x63")].buildSuggestion(t,e,n,r,s,(t=>this[za("0xc5")](n,{attributes:t})));return this[za("0x69")](i,"accept",(()=>{this[za("0xc5")](n,{state:"accepted"})}),{priority:za("0x121")}),this[za("0x69")](i,"discard",(()=>{this[za("0xc5")](n,{state:"rejected"})}),{priority:za("0x121")}),this[za("0x33")].set(n,i),this._suggestionState[za("0x118")](i,za("0xa9")),i}[za("0x94")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[za("0x70")]<5?e[3]:e[4],markerCount:6==e[za("0x70")]?e[5]:null}}[za("0xcc")](t,n,o){const s=t[za("0x9a")](),r=s[za("0xbf")],i=s.end;this[za("0xf2")](t,this[za("0x117")][za("0x38")](r,n));const x=(0,e.uid)(),a=t[za("0x90")].id,c=t[za("0x11e")]+(t.subType?":"+t.subType:"");this[za("0x20")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x1a")],data:t[za("0x23")]}),za("0xff")==t.type&&(o=this[za("0x117")].createPositionBefore(o[za("0x34")])),this[za("0x122")](c,x,a,this[za("0x117")].createRange(o,i))}[za("0x66")](t,e=null){const n=[],o=this[za("0x7b")][za("0xb2")][za("0x115")](za("0x136")).me;Array.isArray(t)||(t=[t]);for(const s of this.getSuggestions()){if(!s[za("0x6a")])continue;if(e&&s[za("0x11e")]!=e)continue;let r=!1;for(const e of s[za("0x30")]()){for(const i of t){const t=i[za("0xbf")].isEqual(e.end)||i[za("0xe0")][za("0x1c")](e[za("0xbf")]);if(t||i[za("0x13d")](e)){const x=i[za("0xb7")](e)&&Ka(this[za("0x117")][za("0xbd")],e[za("0xbf")],i),a=e[za("0xb7")](i)&&Ka(this[za("0x117")].schema,i.start,e);n.push({suggestion:s,meta:{isOwn:o==s.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[za("0x122")](t,e,n,o,s){this[za("0x117")].change((r=>{let i=za("0x12b")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x32")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t[za("0xa0")];t[za("0xfd")]=null,null!=e&&(e[za("0xa0")]=null),t[za("0xa0")]=null,null!=n&&(n[za("0xfd")]=null),za("0x3")==this[za("0x103")][za("0x115")](t)&&(this._suggestionState[za("0x118")](t,za("0xc8")),this.fire(za("0x40"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[za("0x11a")](t);if(this[za("0x6b")]&&this[za("0x6b")][za("0xaf")]){const s=this[za("0x7b")][za("0xb2")][za("0x115")]("PendingActions"),r=o[za("0x65")],i=o.subType?o[za("0x11e")]+":"+o[za("0x124")]:o[za("0x11e")],x=this.editor[za("0x92")],a=s[za("0xcf")](Yo(x,za("0x5c"))),c={id:n,type:i,hasComments:r,data:t[za("0x23")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[za("0x1a")]};this[za("0x6b")].addSuggestion(c)[za("0xad")]((t=>{o[za("0x8f")]=!0,s[za("0xca")](a),t&&t.createdAt&&(this._suggestions.get(n)[za("0x13e")]=t[za("0x13e")])}))[za("0x29")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0x7b")][za("0x71")][za("0x17")]({isUndoable:!1},(()=>{o[za("0xeb")]()})),o.stopListening(),this[za("0x33")][za("0xf0")](o.id),this[za("0x103")][za("0xf0")](o),t}))}return o}[za("0xc5")](t,e){const n=this[za("0x7b")][za("0xb2")][za("0x115")](za("0x13b")),o=this[za("0x35")](t);if(this[za("0x6b")]&&this[za("0x6b")][za("0xba")])if(o[za("0x8f")]){const o=n[za("0xcf")](Yo(this[za("0x7b")][za("0x92")],za("0x5c")));this[za("0x6b")][za("0xba")](t,e)[za("0xad")]((()=>{n.remove(o)}))}else o.on(za("0xe6"),(()=>{this[za("0xc5")](t,e)}))}[za("0x57")](t){if(!this[za("0x6b")]||!this[za("0x6b")][za("0x35")])throw new e.CKEditorError(za("0x55"),this);return this[za("0x6b")][za("0x35")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[za("0x33")][za("0x115")](e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x8b")](r,n,o,s),this[za("0x103")][za("0x115")](r)){case za("0xa9"):this[za("0x57")](e)[za("0xad")]((t=>{let n=Promise.resolve();t[za("0x65")]&&(n=this[za("0x4")].fetchCommentThread({channelId:this[za("0x7b")][za("0x131")][za("0x115")](za("0xfe")),threadId:e})),n[za("0xad")]((()=>{this[za("0x11a")](t)[za("0x8f")]=!0}))})),this[za("0x103")][za("0x118")](r,za("0x96"));break;case"removed":this._updateSuggestionData(e,{state:za("0x139")});case za("0x105"):this[za("0x103")][za("0x118")](r,za("0x3")),this[za("0xce")](za("0xa4"),r);break;case za("0x3"):this[za("0xce")]("suggestionChanged",r)}return r[za("0xe8")](t),r}[za("0x13")](t){const e=Array[za("0xdd")](t)[za("0x4b")]((t=>!t.isMultiRange)),n=this.getSuggestions({skipNotAttached:!0})[za("0x4b")]((t=>!t[za("0x36")])),o=n.filter((e=>!t[za("0xf9")](e))),s=new Map(n.map((t=>[t,this[za("0x63")].getSuggestionCallback(t.type,t[za("0x124")],za("0xcd"))]))),r=new Map(n[za("0x12d")]((t=>[t,t[za("0x9a")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x70")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x70")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x70")];t++){const n=e[t];!x.has(n)&&n.previous&&(n[za("0xfd")][za("0xa0")]===n&&(n[za("0xfd")][za("0xa0")]=null),n.previous=null),!i[za("0xf9")](n)&&n.next&&(n[za("0xa0")][za("0xfd")]===n&&(n.next[za("0xfd")]=null),n[za("0xa0")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x70")];o++){const n=c(t,e[o]);n&&(n[0][za("0xa0")]=n[1],n[1].previous=n[0],i[za("0xcf")](n[0]),x[za("0xcf")](n[1]))}}function c(t,e){if(t[za("0x2e")].id!==e[za("0x2e")].id)return null;const n=s.get(t)(t,e,r[za("0x115")](t),r.get(e));return n&&s.get(e)(t,e,r[za("0x115")](t),r.get(e))?n[1][za("0xb4")]&&n[1][za("0xb4")][za("0x70")]?null:n:null}}[za("0x48")](t){const e=Array[za("0xdd")](t),n=this[za("0xe5")]({skipNotAttached:!0}),o=n.filter((e=>!t[za("0xf9")](e))),s=new Map(e.map((t=>[t,this[za("0x63")][za("0x112")](t[za("0x11e")],t[za("0x124")],za("0x8e"))]))),r=new Map(n[za("0x12d")]((t=>[t,t[za("0x30")]()])));for(let t=0;t<e[za("0x70")];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[za("0x11e")]!==e[za("0x11e")]||o.author.id!==e.author.id||o.subType!==e[za("0x124")])continue;if(!Ya(e,o))continue;const x=s[za("0x115")](e),a=r[za("0x115")](e),c=r.get(o),l=e[za("0xb4")]&&e[za("0xb4")][za("0x70")],u=o[za("0xb4")]&&o[za("0xb4")][za("0x70")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r.delete(e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,o),r[za("0xf0")](o),!0}return!1}}[za("0x7e")](t,e){if(t[za("0x36")])for(const n of e[za("0x30")]())t[za("0xf8")](n);else{const n=e[za("0x9a")]()[za("0xe0")];this[za("0xf2")](t,this[za("0x117")][za("0x38")](t[za("0x9a")]()[za("0xbf")],n))}e[za("0xd6")]()}}class Va{constructor(t){this[za("0xf")]=t,this[za("0x117")]=t[za("0x71")],this[za("0xf1")]=new Map,this[za("0x12e")]=new Map,this[za("0x9c")]()}[za("0x108")](t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x112")](t,e,za("0xa5"))(...n),onDiscard:(...n)=>this[za("0x112")](t,e,za("0xeb"))(...n)})}[za("0x109")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xf1")][za("0x118")](s,o)}[za("0x112")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xf1")][za("0x115")](o)||this[za("0x12e")][za("0x115")](t+":"+n)}[za("0x9c")](){const t=()=>!1,e=t=>{t[za("0x31")](((t,e)=>t[za("0xbf")][za("0x56")](e.start)?1:-1)),this._model[za("0xac")]((e=>{for(const n of t){let t;t=n[za("0xe0")][za("0xde")]&&n[za("0xe0")].parent==n.start[za("0xc7")]?e[za("0x5")](n[za("0xbf")][za("0xc7")],"on"):e[za("0x5")](n),this[za("0x117")][za("0x2")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x117")][za("0xac")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x12d")]((t=>(Xa(t)&&(t=this[za("0x117")].createRange(t.end)),t)))[za("0x4b")]((t=>za("0x53")!==t[za("0xb3")][za("0x91")]));if(r[za("0x70")]<1)return;const x=Array.from(this[za("0x117")][za("0xe")][za("0x27")][za("0x30")]()).map((t=>i.LiveRange[za("0xa")](t)));n[za("0xfc")](r);for(const t of this[za("0xf")].commands.commands())t[za("0x11d")]();s[za("0x137")]({forceDefaultExecution:!0}),this[za("0xf")][za("0x61")](o,...s);const a=x[za("0x4b")]((t=>"$graveyard"!=t[za("0xb3")][za("0x91")]));a[za("0x70")]>0&&n[za("0xfc")](a);for(const t of x)t[za("0xd1")]()}))},o=(t,e)=>1==t[za("0x70")]&&1==e[za("0x70")]&&t[0].end.isEqual(e[0][za("0xbf")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x117")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x12e")][za("0x118")](za("0x41"),t),this._defaultCallbacks[za("0x118")]("insertion:discard",e),this[za("0x12e")].set("insertion:join",o),this[za("0x12e")].set(za("0x126"),s),this[za("0x12e")][za("0x118")]("deletion:accept",e),this[za("0x12e")][za("0x118")](za("0x104"),t),this._defaultCallbacks[za("0x118")](za("0x138"),o),this[za("0x12e")][za("0x118")](za("0x75"),s),this._defaultCallbacks[za("0x118")](za("0x6f"),n),this[za("0x12e")].set(za("0xec"),t),this[za("0x12e")][za("0x118")]("formatInline:join",o),this[za("0x12e")][za("0x118")]("formatInline:chain",t),this[za("0x12e")].set("formatBlock:accept",n),this[za("0x12e")][za("0x118")]("formatBlock:discard",t),this._defaultCallbacks[za("0x118")](za("0x10c"),o),this[za("0x12e")].set(za("0x73"),t)}}function Ka(t,e,n){for(const o of e.parent[za("0xa1")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xb3")]==o)return!1;if(!n[za("0x6e")](o))return!1;if(t[za("0x2f")](o)||t[za("0x106")](o))return!0}return!1}function Xa(t){return t[za("0xe0")].parent==t[za("0xbf")][za("0xc7")]&&t[za("0xe0")][za("0x78")]}function qa(t,e,n,o){const s=t=>!t[za("0x19")].is("$textProxy")&&!o[za("0x2f")](t[za("0x19")]),r=t[za("0xbf")][za("0x132")](s),i=t[za("0xe0")].getLastMatchingPosition(s,{direction:za("0xa2")});return!(t[za("0xbf")].isEqual(r)&&t[za("0xe0")][za("0x1c")](i)||(r[za("0x56")](i)?n[za("0x1")](e,{range:n[za("0x38")](r,i)}):n[za("0x127")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xbf")][za("0xc7")];return e&&e.is("element")}function Qa(t,e){const n=e[za("0xbd")][za("0x2f")](t)||e[za("0xbd")][za("0x83")](t);return e[za("0x38")](e.createPositionAt(t,za("0x46")),n?e.createPositionAfter(t):e[za("0xf3")](t,za("0xe0")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[za("0xe0")][za("0x1c")](o[za("0xbf")]))return!0;if(t[za("0x11e")]!=e[za("0x11e")])return!1;if(!n[za("0xe0")].isTouching(o[za("0xbf")]))return!1;const r=s.createRange(n.end,o[za("0xbf")])[za("0x74")]();for(const t of r)if([za("0x22"),za("0x6d")][za("0x8d")](t[za("0x11e")])&&s[za("0xbd")].isLimit(t[za("0x19")]))return!1;return!0}function Ya(t,e){return!(!t._isDataLoaded||!e[za("0x11f")])&&Go(t[za("0x1a")],e[za("0x1a")])}function tc(t,e){const n=ec(t[za("0x1a")]),o=ec(e);if(!t._isDataLoaded)return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[za("0x125")]({},t);return delete e.skipNestingCheck,delete e[za("0x45")],e}const nc=["PendingActions","remove","unbind","commands","getRanges","change:isDirty","isDirty","canEditAt","acceptSuggestion","discardSuggestion","isEnabled","_discardCommand","add","canAccept","_removePendingAction","canDiscard","execute","plugins","model","_pendingAction","PENDING_ACTION_SUGGESTION","view","bind","listenTo","_acceptCommand","destroy","commentThreadController","get","_setPendingAction","_editor"];var oc,sc;oc=nc,sc=491,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this[rc("0xa")]=n,this.commentThreadController=o,this[rc("0x12")]=t,this[rc("0xd")]=t.commands[rc("0x10")](rc("0x1b")),this[rc("0x0")]=t[rc("0x16")][rc("0x10")](rc("0x1c")),this[rc("0xa")][rc("0xb")](rc("0x1d")).to(this[rc("0xd")],this[rc("0x0")],((t,e)=>t||e)),this[rc("0xa")][rc("0xb")]("canAccept").to(this._acceptCommand,rc("0x1d"),(t=>t&&this._editor[rc("0x7")][rc("0x1a")](e.getRanges()))),this[rc("0xa")][rc("0xb")](rc("0x4")).to(this[rc("0x0")],rc("0x1d"),(t=>t&&this[rc("0x12")][rc("0x7")][rc("0x1a")](e[rc("0x17")]()))),this[rc("0x8")]=null,n.isDirty&&this[rc("0x11")](),this[rc("0xc")](n,rc("0x1b"),(()=>this[rc("0x1b")]())),this.listenTo(n,"discardSuggestion",(()=>this[rc("0x1c")]())),this[rc("0xc")](n,rc("0x18"),(()=>{n[rc("0x19")]?this[rc("0x11")]():this[rc("0x3")]()}))}acceptSuggestion(){this._acceptCommand.execute(this[rc("0x7")].id)}[rc("0x1c")](){this._discardCommand[rc("0x5")](this[rc("0x7")].id)}destroy(){this[rc("0xa")][rc("0x15")]("isEnabled"),this[rc("0xa")].unbind(rc("0x2")),this[rc("0xa")][rc("0x15")](rc("0x4")),this.stopListening(),this[rc("0xf")][rc("0xe")](),this[rc("0x8")]&&this[rc("0x3")]()}[rc("0x11")](){const t=Yo(this[rc("0x12")].locale,rc("0x9"));this[rc("0x8")]=this[rc("0x12")][rc("0x6")][rc("0x10")](rc("0x13"))[rc("0x1")](t)}[rc("0x3")](){null!==this[rc("0x8")]&&this[rc("0x12")][rc("0x6")].get(rc("0x13"))[rc("0x14")](this._pendingAction),this[rc("0x8")]=null}}const xc=["commentInputView","value","editor","canDiscard","isActive","fire","element","addComment","isDirty","set","removeComment","isReadOnly","hasDirtyComment","commentsListView","submit","canAccept","commentThreadInputView","descriptionParts","disabledSubmit","_localUser","_model","isEnabled","delegate","assign","disableComments","commentThread","_config","focus","bind","length","locale","_createCommentViews","_createCommentThreadInputView","destroy","authoredAt","cancel"];var ac,cc;ac=xc,cc=396,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends s.View{constructor(t,e,n,o){super(t),this[lc("0xd")]=null,this[lc("0x10")]=null,this.set(lc("0x4"),!1),this[lc("0x9")](lc("0x22"),e.authoredAt),this[lc("0x1c")](lc("0x22")).to(e),this[lc("0x9")](lc("0x11"),[]),this.set(lc("0x8"),!1),this[lc("0x9")](lc("0x15"),!1),this.set(lc("0xf"),!1),this[lc("0x9")](lc("0x3"),!1),this[lc("0x14")]=e,this[lc("0x13")]=n,this._config=o,o[lc("0x18")]?this.set(lc("0x1d"),1):this[lc("0x1f")]()}[lc("0x1b")](){this[lc("0x6")][lc("0x1b")]()}[lc("0x21")](){this[lc("0xd")]&&this[lc("0xd")][lc("0x21")](),this.commentThreadInputView&&this[lc("0x10")][lc("0x21")](),super[lc("0x21")]()}[lc("0x1f")](){const{CommentsListView:t}=this[lc("0x1a")];this[lc("0xd")]=new t(this[lc("0x1e")],this[lc("0x14")][lc("0x19")],Object[lc("0x17")]({CommentView:this[lc("0x1a")].CommentView},this[lc("0x1a")])),this.commentsListView.delegate(lc("0xa")).to(this),this[lc("0xd")][lc("0x16")]("updateComment").to(this),this[lc("0xd")].bind("isActive").to(this),this[lc("0x9")](lc("0x1d"),this.commentsListView[lc("0x1d")]+1),this[lc("0x1c")](lc("0x1d")).to(this[lc("0xd")],"length",(t=>t+1)),this[lc("0x10")]=this[lc("0x20")](),this.on(lc("0xa"),(()=>this[lc("0x1b")]())),this.bind(lc("0x8")).to(this[lc("0xd")],lc("0xc"),this[lc("0x10")][lc("0x0")],"value",((t,e)=>t||!!e))}[lc("0x20")](){const{CommentThreadInputView:t}=this[lc("0x1a")],e=new t(this.locale,this[lc("0x13")],this[lc("0x1a")].editorConfig),n=e.commentInputView;return e[lc("0x1c")]("showInput").to(this,lc("0x4"),this[lc("0x14")][lc("0x19")],lc("0xb"),n,lc("0x1"),((t,e,n)=>!!n||t&&!e)),n.on(lc("0xe"),((t,e)=>{this[lc("0x5")](lc("0x7"),e),n[lc("0x2")].setData("")})),n.on(lc("0x23"),(()=>this[lc("0x1b")]())),n[lc("0x1c")](lc("0x12")).to(this[lc("0x14")][lc("0x19")],"isReadOnly"),e}}const dc=["getUserViewNotificationText","ck-annotation__user","discardSuggestion","acceptButton","ck-annotation__actions","render","ck-suggestion-wrapper","<p>","EXTERNAL_IMPORT_WORD_SUGGESTION","title","discardButton","ck-suggestion-wrapper--active","formatDateTime","editorDestroyed","description","ck-suggestion__info","ck-annotation","editorReady","ck-suggestion__main","extendTemplate","children","descriptionParts","commentThread","color","ck-annotation__main",'" title="',"ck-suggestion-","acceptSuggestion","ck-suggestion__info-name","isEnabled","delegate","type","change:description","getTemplate","split","content","execute","getExternalSuggestionNote","ck-suggestion__actions","locale","push","EXTERNAL_AVATAR","ck-suggestion__user","div","span","bind","map","_createButton","canAccept","setTemplate","source","canDiscard","Accept suggestion","isExternal","ck-suggestion--discard","ck-suggestion","EXTERNAL_IMPORT_WORD_AVATAR","innerHTML","commentThreadInputView","ck-suggestion--disabled-comments","createElement","Discard suggestion","set","time",'"></span>',"author","creator","@external","disableComments","cancel","commentsListView","ck-comment__external","querySelector","userView","innerText","value","name","attributes","importWord","ck-annotation__info-name","ck-annotation__info","_model","_descriptionElement","</span>","element","check",'<span class="ck-suggestion-type">','<span class="ck-suggestion-color" style="background-color: ',"_config","EXTERNAL_SUGGESTION"];var gc,mc;gc=dc,mc=188,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return dc[t-=0]};class hc extends uc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x36")]("type",""),this.bind("type").to(this,fc("0xd"),(t=>t&&t[0]?t[0].type:"")),this[fc("0x25")](fc("0x6")).to(this,"descriptionParts",this,"isActive",((t,e)=>{let n="";for(const e of t)n+=fc("0x59")+pc(e[fc("0x1b")],e[fc("0xf")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[fc("0x4a")]=null,this.acceptButton=this[fc("0x27")](Yo(e,fc("0x2c")),t.icons[fc("0x4d")],"ck-suggestion--accept",fc("0x13"),"sw"),this[fc("0x55")][fc("0x25")]("isEnabled").to(this,fc("0x28")),this.discardButton=this[fc("0x27")](Yo(e,fc("0x35")),t.icons[fc("0x3d")],fc("0x2e"),fc("0x54"),"sw"),this[fc("0x2")][fc("0x25")](fc("0x15")).to(this,fc("0x2b")),this.userView=new r.UserView(e,this[fc("0x49")][fc("0x39")],this[fc("0x52")]()),this.userView.extendTemplate({attributes:{class:[fc("0x22"),fc("0x53")]}}),this[fc("0x29")](this[fc("0x19")]())}[fc("0x19")](){const t=this.bindTemplate,e=[{tag:fc("0x23"),attributes:{class:[fc("0x7"),fc("0x48")]},children:[{tag:fc("0x24"),children:[{text:this[fc("0x41")][fc("0x44")]}],attributes:{class:[fc("0x14"),fc("0x47")]}},{tag:fc("0x37"),attributes:{datetime:t.to("authoredAt"),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this._config[fc("0x4")](t)))}]}]},{tag:fc("0x23"),attributes:{class:[fc("0x1e"),fc("0x56")]},children:[this[fc("0x55")],this[fc("0x2")]]},{tag:fc("0x23"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[fc("0x49")][fc("0x2d")]&&e.push({tag:fc("0x23"),attributes:{class:[fc("0x3f")]},children:[{text:this[fc("0x1d")]()}]});const n={tag:fc("0x23"),attributes:{class:[fc("0x58"),t.if("isActive",fc("0x3")),t.to(fc("0x17"),(t=>fc("0x12")+t)),this[fc("0x50")][fc("0x3c")]&&fc("0x33")],"data-suggestion-id":this[fc("0x49")].id,"data-thread-id":this[fc("0x49")][fc("0xe")].id,"data-author-id":this[fc("0x49")][fc("0x39")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[fc("0x2f"),fc("0x8")]},children:[this[fc("0x41")],{tag:fc("0x23"),attributes:{class:[fc("0xa"),fc("0x10")]},children:e}]}]};return this[fc("0x3e")]&&this[fc("0x32")]&&(n[fc("0xc")][fc("0x20")](this.commentsListView,this[fc("0x32")]),this[fc("0x3e")].delegate(fc("0x9")).to(this),this[fc("0x3e")][fc("0x16")](fc("0x5")).to(this),this[fc("0x32")].delegate("editorReady").to(this),this[fc("0x32")][fc("0x16")]("editorDestroyed").to(this)),n}[fc("0x57")](){super.render(),this[fc("0x4a")]=this[fc("0x4c")][fc("0x40")](".ck-annotation__content-wrapper"),this[fc("0x4a")][fc("0x31")]=this[fc("0x6")],this.on(fc("0x18"),((t,e,n)=>{this[fc("0x4a")].innerHTML=n}))}[fc("0x27")](t,e,n,o,r){const i=new s.ButtonView(this[fc("0x1f")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0xb")]({attributes:{class:n}}),i.on(fc("0x1c"),(()=>{this.fire(o,this[fc("0x49")].id)})),i}[fc("0x1d")](){return fc("0x46")===this[fc("0x49")][fc("0x45")][fc("0x3b")][fc("0x2a")]?Yo(this[fc("0x1f")],fc("0x0")):Yo(this[fc("0x1f")],fc("0x51"))}[fc("0x52")](){return this._model[fc("0x2d")]?fc("0x46")===this[fc("0x49")].attributes[fc("0x3b")][fc("0x2a")]?Yo(this[fc("0x1f")],fc("0x30"),this._model[fc("0x3a")][fc("0x44")]):Yo(this[fc("0x1f")],fc("0x21"),this[fc("0x49")].creator[fc("0x44")]):null}}function pc(t,e){let n="";return n+=t[fc("0x1a")]("*")[fc("0x26")](((t,e)=>e%2!=0?fc("0x4e")+bc(t)+fc("0x4b"):bc(t))).join(""),e&&(n+=fc("0x4f")+e[fc("0x43")]+fc("0x11")+e[fc("0x1")]+fc("0x38")),n}function bc(t){const e=document[fc("0x34")](fc("0x24"));return e[fc("0x42")]=t,e[fc("0x31")]}const Ec=["comments.maxThreadTotalWeight","config","model","_annotationViews","commandName","acceptAllSuggestions","type","_initializeController","Track changes","CommentsRepository","_destroyController","define","set","refreshSelectedViews","suggestion-","bind","arrowView","toMany","_viewToController","listenTo","_updateController","TrackChangesEditing","mainView","lowest","has","delete","buttonView","add","destroy","_handleControllerBuffer","Discard all suggestions","_refreshActiveMarkers","editor","source","commentThread","activeAnnotations","_handleSuggestionControllerDelayed","_unbindEditors","createCommentThreadController","SuggestionThreadView","unbind","TrackChangesUI","_descriptionFactory","some","registerAnnotation","view","isOn","hasSuggestion","isInContent","locale","switchbutton","focus","trackChanges.SuggestionThreadView","execute","acceptButton","descriptionParts","values","isEnabled","componentFactory","activeMarkers","discardButton","commands","head","EditorAnnotations","actionView","length","init","get","suggestionUnloaded","trackChanges","getAllAdjacentSuggestions","trackChanges.disableComments","button","suggestionLoaded","Discard all selected suggestions","editing","CommentView","change:previous","Accept all selected suggestions","_createUIButton","discardSelectedSuggestions","getDescriptions","isDirty","comments.maxCommentCharsWhenCollapsed","value","addComment","innerView","_disableComments","getFirstRange","discardAllSuggestions","_suggestionToController","plugins","comments","requires","from","filter","getMarkerNames","Annotations","push","acceptSelectedSuggestions","getByInnerView","change:activeAnnotations"];var _c,Tc;_c=Ec,Tc=323,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0x4c")](){return[Wa,r.Users,Cc("0x5e"),"Annotations",Cc("0x2e")]}static get pluginName(){return Cc("0x18")}constructor(t){super(t),this._suggestionToController=new Map,this[Cc("0x1")]=new Map,this._annotationViews=new Map,this[Cc("0xc")]=new Map;const e=this[Cc("0xf")][Cc("0x56")];e[Cc("0x60")](Cc("0x23"),hc),e[Cc("0x60")](Cc("0x36"),!1),this[Cc("0x46")]=e[Cc("0x32")](Cc("0x36"))}_handleSuggestionControllerDelayed(t,e){0===this[Cc("0xc")].size&&setTimeout((()=>{for(const[t,e]of this[Cc("0xc")]){const n=this[Cc("0x49")][Cc("0x7")](t);n||e?n&&e&&this[Cc("0x5f")](t):this._initializeController(t)}this[Cc("0xf")].plugins[Cc("0x32")](Cc("0x2e"))[Cc("0x62")](),this[Cc("0xe")](),this[Cc("0xc")].clear()}),10),this._handleControllerBuffer.set(t,e)}[Cc("0x31")](){const t=this[Cc("0xf")],e=t[Cc("0x4a")][Cc("0x32")](Cc("0x4")),n=t[Cc("0x4a")][Cc("0x32")](Cc("0x50")),o=t[Cc("0x4a")].get(Cc("0x2e")),s=t[Cc("0x4a")][Cc("0x32")](Cc("0x5e"));t.ui[Cc("0x29")][Cc("0xa")](Cc("0x34"),(t=>this[Cc("0x3e")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Cc("0x4d")](this[Cc("0x49")])){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Cc("0x1f")])continue;if(t.isMultiRange){s[Cc("0x51")](...t.getRanges());continue}const e=t[Cc("0x47")]();if(s.length>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s[Cc("0x51")](e)}t.push([n[Cc("0x1c")],s])}return t})),this.listenTo(e,Cc("0x38"),((t,e)=>{this[Cc("0x2")](e,Cc("0x3c"),((t,n,o,s)=>{e[Cc("0x1f")]&&(null==o?(this[Cc("0x3")](s[Cc("0x2d")]),this._handleSuggestionControllerDelayed(e,!1)):(this[Cc("0x3")](o[Cc("0x2d")]),this[Cc("0x13")](e,!0)))})),null===e.previous?this[Cc("0x13")](e,!1):this[Cc("0x3")](e[Cc("0x2d")])})),this[Cc("0x2")](e,Cc("0x33"),((t,e,n)=>{this.stopListening(e,Cc("0x3c")),this[Cc("0xc")].delete(e);const o=n?n.head:e,s=this[Cc("0x49")][Cc("0x32")](o);null!==n&&this._updateController(o),null===n&&s&&this._destroyController(e)})),this[Cc("0x2")](e,"suggestionChanged",((t,e)=>{this[Cc("0x3")](e)})),this[Cc("0x2")](n,Cc("0x54"),(()=>{this[Cc("0xe")]()})),this[Cc("0x2")](s,Cc("0x44"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x1e")](n))return;const s=e.getSuggestion(n);this._suggestionToController[Cc("0x32")](s).view[Cc("0x22")]()}),{priority:Cc("0x6")})}_refreshActiveMarkers(){const t=this[Cc("0xf")][Cc("0x4a")][Cc("0x32")]("Annotations"),e=this.editor.plugins[Cc("0x32")](Cc("0x4")),n=Array[Cc("0x4d")](t[Cc("0x12")],(t=>t[Cc("0x45")]))[Cc("0x4e")]((t=>this[Cc("0x1")][Cc("0x7")](t))),o=[];for(const t of n){const e=this._viewToController.get(t)[Cc("0x57")][Cc("0x35")]();o[Cc("0x51")](...e.reduce(((t,e)=>[...t,...e[Cc("0x4f")]()]),[]))}e[Cc("0x2a")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Cc("0x2c")].get(Cc("0x34")),r=Yo(t,Cc("0x5d"));n[Cc("0x9")][Cc("0x61")]({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[Cc("0x9")][Cc("0x64")](Cc("0x1d")).to(o,Cc("0x43")),n[Cc("0x9")].on(Cc("0x24"),(()=>{o.execute(),this[Cc("0xf")][Cc("0x3a")][Cc("0x1c")].focus()}));const i=new e.Collection,x=[{type:Cc("0x21"),model:{withText:!0,label:r,commandName:Cc("0x34")}},{type:"separator"},{type:Cc("0x37"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Cc("0x5a")}},{type:Cc("0x37"),model:{withText:!0,label:Yo(t,Cc("0x3d")),commandName:Cc("0x52")}},{type:Cc("0x37"),model:{withText:!0,label:Yo(t,Cc("0xd")),commandName:Cc("0x48")}},{type:"button",model:{withText:!0,label:Yo(t,Cc("0x39")),commandName:Cc("0x3f")}}];for(const t of x){let e={type:"separator"};if(t[Cc("0x57")]){const n=new s.Model(t[Cc("0x57")]),o=this[Cc("0xf")][Cc("0x2c")][Cc("0x32")](n.commandName);n.bind(Cc("0x1d"),Cc("0x28")).to(o,Cc("0x43"),Cc("0x28")),e={type:t[Cc("0x5b")],model:n}}i[Cc("0xa")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Cc("0x57")])).map((t=>this.editor[Cc("0x2c")][Cc("0x32")](t[Cc("0x57")][Cc("0x59")]))),c=n.buttonView;return c[Cc("0x2f")][Cc("0x17")]("isEnabled"),c[Cc("0x65")].unbind(Cc("0x28")),c[Cc("0x2f")].bind(Cc("0x28")).to(o,Cc("0x28")),c[Cc("0x65")][Cc("0x64")](Cc("0x28"))[Cc("0x0")](a,Cc("0x28"),((...t)=>t[Cc("0x1a")]((t=>t)))),n.on(Cc("0x24"),(t=>{this[Cc("0xf")].execute(t[Cc("0x10")][Cc("0x59")]),this[Cc("0xf")][Cc("0x3a")][Cc("0x1c")].focus()})),n}[Cc("0x5c")](t){const e=this[Cc("0xf")],n=e[Cc("0x56")],o=e.plugins[Cc("0x32")](Cc("0x50")),s=e[Cc("0x4a")].get(Cc("0x5e")),i=e[Cc("0x4a")].get(Cc("0x2e")),x=e[Cc("0x4a")][Cc("0x32")](r.Users).me,a=n[Cc("0x32")]("trackChanges")[Cc("0x16")],{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x4a")].get("CommentsUI");let u,d;this[Cc("0x58")][Cc("0x7")](t.id)?(d=this[Cc("0x58")][Cc("0x32")](t.id),u=d[Cc("0x5")]):(u=new a(e[Cc("0x20")],t,x,{disableComments:this[Cc("0x46")],editorConfig:n[Cc("0x32")]("comments.editorConfig"),maxCommentsWhenCollapsed:n.get("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Cc("0x32")](Cc("0x55")),maxCommentCharsWhenCollapsed:n[Cc("0x32")](Cc("0x42")),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x32")]("locale")),CommentView:n[Cc("0x32")](Cc("0x4b"))[Cc("0x3b")],CommentsListView:c,CommentThreadInputView:l}),u[Cc("0x25")].on(Cc("0x24"),(()=>{e[Cc("0x3a")][Cc("0x1c")][Cc("0x22")]()})),u[Cc("0x2b")].on(Cc("0x24"),(()=>{e[Cc("0x3a")].view[Cc("0x22")]()})),d=o.createAnnotationView(this[Cc("0xf")][Cc("0x20")],u),d[Cc("0x64")](Cc("0x41")).to(u,Cc("0x41")),d.bind(Cc("0x30")).to(u),d[Cc("0x64")](Cc("0x5b")).to(u,"type",(t=>Cc("0x63")+t)),this[Cc("0x58")][Cc("0x61")](t.id,d));const g=s[Cc("0x15")](t[Cc("0x11")],u),m=new ic(e,t,u,g),f=t[Cc("0x35")]()[Cc("0x4e")]((t=>t[Cc("0x1f")]));u[Cc("0x26")]=e.plugins[Cc("0x32")](Cc("0x4"))[Cc("0x19")][Cc("0x40")](f),this[Cc("0x49")].set(t,m),this[Cc("0x1")].set(u,m);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[Cc("0x35")]()[Cc("0x4e")]((t=>t[Cc("0x1f")]));for(const t of o)n[Cc("0x51")](...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[Cc("0x3a")],n)},type:()=>Cc("0x63")+m.view[Cc("0x5b")]});s._bindAnnotationToEditors(u,h),o[Cc("0xa")](h),i[Cc("0x1b")](h)}_destroyController(t){const e=this[Cc("0xf")][Cc("0x4a")][Cc("0x32")]("CommentsRepository"),n=this[Cc("0xf")].plugins[Cc("0x32")](Cc("0x50")),o=this[Cc("0x49")][Cc("0x32")](t),s=o[Cc("0x1c")],r=n[Cc("0x53")](s);e[Cc("0x14")](s),r&&n.remove(r),this[Cc("0x49")][Cc("0x8")](t),this[Cc("0x1")][Cc("0x8")](s),o[Cc("0xb")]()}[Cc("0x3")](t){if(!t[Cc("0x1f")]||!this[Cc("0x49")][Cc("0x7")](t))return;const e=this.editor.plugins[Cc("0x32")](Cc("0x4")),n=this[Cc("0x49")][Cc("0x32")](t),o=t[Cc("0x35")]();n.view[Cc("0x26")]=e[Cc("0x19")][Cc("0x40")](o)}[Cc("0xb")](){for(const t of this[Cc("0x49")].keys())this[Cc("0x5f")](t);for(const t of this[Cc("0x58")][Cc("0x27")]())t[Cc("0x5")][Cc("0xb")]();super.destroy()}}var kc,Ac,vc=["get","Comments","addSuggestion","requires","plugins","addSuggestionData","getSuggestions","adapter","editor","pluginName"];kc=vc,Ac=308,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x5")](){return[Wa,yc,Rc("0x3")]}static get[Rc("0x1")](){return"TrackChanges"}set[Rc("0x9")](t){this.editor[Rc("0x6")][Rc("0x2")](Wa)[Rc("0x9")]=t}get[Rc("0x9")](){return this[Rc("0x0")][Rc("0x6")].get(Wa)[Rc("0x9")]}[Rc("0x4")](t){return this.editor[Rc("0x6")][Rc("0x2")](Wa)[Rc("0x7")](t)}[Rc("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0x0")].plugins[Rc("0x2")](Wa)[Rc("0x8")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[Rc("0x0")].plugins[Rc("0x2")](Wa).getSuggestion(t)}}const Ic=["editor","getSuggestions","init","_adapter","acceptAllSuggestions","data","Pagination","model","TrackChangesEditing","getFullData","map","constructor","pluginName","CommentsRepository","track-changes-data-invalid-editor-creator","getUser","plugins","get","TrackChangesDataGetter","editorCreator","trackChangesData","document","push","Users","div","useAnonymousUser","getRootsAttributes","name","createDocumentFragment","result","destroy","trackChangesData.editorCreator","config","define","create","set","addSuggestionData","discardAllSuggestions","appendChild","function","getDataWithAcceptedSuggestions","getRootNames"];var Lc,Nc;Lc=Ic,Nc=341,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=[Mc("0x1")];class Oc extends t.Plugin{static get requires(){return[Wa]}static get[Mc("0x7")](){return"TrackChangesData"}[Mc("0x27")](){const t=this[Mc("0x25")];if(t[Mc("0x1b")][Mc("0x1c")](Mc("0x1a"),(e=>{const n=t[Mc("0x2")].document[Mc("0x24")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Mc("0x6")][Mc("0x1d")](n,e)})),Mc("0x22")!=typeof t[Mc("0x1b")][Mc("0xc")]("trackChangesData").editorCreator)throw new e.CKEditorError(Mc("0x9"))}[Mc("0x23")](t){return Dc(this[Mc("0x25")],!0,t)}getDataWithDiscardedSuggestions(t){return Dc(this[Mc("0x25")],!1,t)}}class Fc extends t.Plugin{static get[Mc("0x7")](){return Mc("0xd")}constructor(t){super(t),this[Mc("0x18")]="end"}[Mc("0x27")](){this[Mc("0x25")].plugins.get(Mc("0x8"))._adapter={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[Mc("0x25")][Mc("0xb")].get("TrackChangesEditing")[Mc("0x28")]=null}}function Pc(t){return void 0!==t[Mc("0x15")]}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o.plugins[Mc("0x11")](Wa,Fc),o.rootsAttributes=Pc(t)?t[Mc("0x15")]():void 0;const s=document[Mc("0x17")](),i=t[Mc("0x1b")][Mc("0xc")](Mc("0xf"))[Mc("0xe")],x=await i(o,(()=>function(t){const e=document.createElement(Mc("0x13"));return t[Mc("0x21")](e),e}(s)));!function(t,e){const n=t[Mc("0x2")][Mc("0x10")].getRootNames().reduce(((e,n)=>(e[n]=t[Mc("0x0")].get({rootName:n}),e)),{}),o=t[Mc("0xb")].get("Users").users[Mc("0x5")]((t=>({id:t.id,name:t[Mc("0x16")]}))),s=t[Mc("0xb")][Mc("0xc")](Mc("0x3"))[Mc("0x26")]({skipNotAttached:!0,toJSON:!0}),r=e[Mc("0xb")].get(Mc("0x12")),i=e[Mc("0xb")][Mc("0xc")](Mc("0x3"));for(const t of o)r[Mc("0xa")](t.id)||r.addUser(t);r.me||r[Mc("0x14")]();for(const t of s)i[Mc("0x1f")](t);e[Mc("0x0")][Mc("0x1e")](n)}(t,x),x.execute(Mc(e?"0x29":"0x20"));const a=Pc(x)?x[Mc("0x4")](n):x[Mc("0x0")][Mc("0xc")](n);return await x[Mc("0x19")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();