@ckeditor/ckeditor5-track-changes 39.0.2 → 40.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +20 -1
- package/lang/translations/ar.po +76 -0
- package/lang/translations/az.po +76 -0
- package/lang/translations/bg.po +76 -0
- package/lang/translations/bn.po +76 -0
- package/lang/translations/ca.po +76 -0
- package/lang/translations/cs.po +76 -0
- package/lang/translations/da.po +76 -0
- package/lang/translations/de.po +76 -0
- package/lang/translations/el.po +76 -0
- package/lang/translations/en-au.po +76 -0
- package/lang/translations/en.po +76 -0
- package/lang/translations/es.po +76 -0
- package/lang/translations/et.po +76 -0
- package/lang/translations/fi.po +76 -0
- package/lang/translations/fr.po +76 -0
- package/lang/translations/gl.po +76 -0
- package/lang/translations/he.po +76 -0
- package/lang/translations/hi.po +76 -0
- package/lang/translations/hr.po +76 -0
- package/lang/translations/hu.po +76 -0
- package/lang/translations/id.po +76 -0
- package/lang/translations/it.po +76 -0
- package/lang/translations/ja.po +76 -0
- package/lang/translations/ko.po +76 -0
- package/lang/translations/lt.po +76 -0
- package/lang/translations/lv.po +76 -0
- package/lang/translations/ms.po +76 -0
- package/lang/translations/nl.po +76 -0
- package/lang/translations/no.po +76 -0
- package/lang/translations/pl.po +76 -0
- package/lang/translations/pt-br.po +94 -18
- package/lang/translations/pt.po +76 -0
- package/lang/translations/ro.po +76 -0
- package/lang/translations/ru.po +76 -0
- package/lang/translations/sk.po +76 -0
- package/lang/translations/sq.po +76 -0
- package/lang/translations/sr-latn.po +76 -0
- package/lang/translations/sr.po +76 -0
- package/lang/translations/sv.po +76 -0
- package/lang/translations/th.po +76 -0
- package/lang/translations/tk.po +76 -0
- package/lang/translations/tr.po +76 -0
- package/lang/translations/tt.po +76 -0
- package/lang/translations/uk.po +76 -0
- package/lang/translations/ur.po +76 -0
- package/lang/translations/vi.po +76 -0
- package/lang/translations/zh-cn.po +76 -0
- package/lang/translations/zh.po +76 -0
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/integrations/aiassistant.d.ts +17 -0
- package/src/integrations/aiassistant.js +23 -0
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +0 -6
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +17 -0
- package/src/integrations/imagestyle.js +23 -0
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +0 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +26 -11
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +25 -5
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -69
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +22 -19
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +59 -2
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
package/build/track-changes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:*
|
|
1
|
+
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set format:* %0":"*Set format:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DEFAULT:"bulleted list (default)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_DEFAULT:"numbered list (default)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",ENTER_DELETION_SUGGESTION_ANNOUNCEMENT:"Entering deletion suggestion.",ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Entering formatting suggestion.",ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT:"Entering insertion suggestion.",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_ALIGNMENT:"alignment",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_FONT_BACKGROUND:"font background color",FORMAT_FONT_COLOR:"font color",FORMAT_FONT_FAMILY:"font family",FORMAT_FONT_SIZE:"font size",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_INDENT:"indent",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_LIST_REVERSED:"list reversed",FORMAT_LIST_START:"list start",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_STYLE:"style",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT:"Leaving deletion suggestion.",LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Leaving formatting suggestion.",LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT:"Leaving insertion suggestion.",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var 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:()=>dc,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=["_enableCommands","value","has","TrackChangesCommand","_enabledCommands","forceDisabled","affectsData","refresh","_disableUnsupportedCommands","editor","commands","isEnabled"];var c,l;c=a,l=474,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xa")]=e,this[d("0x7")]=!1,this[d("0x1")](),this._isEnabledBasedOnSelection=!1}[d("0x1")](){this[d("0x5")]=!0}execute(){this[d("0x7")]=!this[d("0x7")],this[d("0x7")]?this[d("0x2")]():this[d("0x6")]()}_disableUnsupportedCommands(){for(const t of this[d("0x3")].commands[d("0x4")]())t[d("0x0")]&&!this[d("0xa")][d("0x8")](t)&&t[d("0xb")](d("0x9"))}[d("0x6")](){for(const t of this[d("0x3")][d("0x4")][d("0x4")]())t[d("0x0")]&&!this[d("0xa")][d("0x8")](t)&&t.clearForceDisabled(d("0x9"))}}const g=["_suggestions","acceptSuggestion","_isEnabledBasedOnSelection","isEnabled","refresh","execute","editor","get","getRanges","track-changes-accept-suggestion-not-found","TrackChangesEditing"];var m,f;m=g,f=255,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("0x9")]=e,this[h("0x2")](),this[h("0x0")]=!1}refresh(){this[h("0x1")]=!0}[h("0x3")](t){const n=this[h("0x9")][h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x7"),this);const o=n[h("0x6")]();this.editor.model.canEditAt(o)&&this[h("0x4")].plugins[h("0x5")](h("0x8"))[h("0xa")](n)}}const b=["discardSuggestion","_isEnabledBasedOnSelection","refresh","canEditAt","isEnabled","_suggestions","track-changes-discard-suggestion-not-found","execute","model","editor","get"];var E,_;E=b,_=289,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x2")]=e,this[T("0xa")](),this[T("0x9")]=!1}[T("0xa")](){this[T("0x1")]=!0}[T("0x4")](t){const n=this[T("0x2")][T("0x7")](t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n.getRanges();this[T("0x6")][T("0x5")][T("0x0")](o)&&this[T("0x6")].plugins[T("0x7")]("TrackChangesEditing")[T("0x8")](n)}}const y=["sort","isInContent","schema","getRanges","change","isObject","value","splice","createPositionBefore","deletion","isTouching","start","color","execute","length","replace","type"," [color ","isMultiRange","join","createPositionAfter","isIntersecting","content","map","push","next","end","add"];var k,A;k=y,A=105,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x7")](((t,e)=>"deletion"==t[v("0x17")]&&"deletion"!=e[v("0x17")]?-1:v("0x10")!=t[v("0x17")]&&"deletion"==e[v("0x17")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x9")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0xf")](i)),I(e,i,x)||(s[v("0x3")](e.createRange(n,r[v("0xc")](i)?e.createPositionAfter(i):e.createPositionAt(i,v("0x5")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x1b")](e),s=t.createPositionBefore(n);return o[v("0x11")](s)}function L(t,e,n){for(;n[v("0x15")];){const o=n[v("0xe")](0,100);t[v("0xb")]((()=>{for(const t of o)t[v("0x8")]&&e[v("0x14")](t.id)}))}}const N=["refresh","canEditAt","from","getRanges","some","_isEnabledBasedOnSelection","_suggestions","isInContent","_command","values","editor","model","isEnabled"];var M,w;M=N,w=419,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[O("0x5")]=e,this[O("0x3")]=n,this[O("0xa")](),this[O("0x2")]=!1}[O("0xa")](){const t=Array[O("0xc")](this[O("0x3")][O("0x6")]())[O("0x1")]((t=>t[O("0x4")]));this[O("0x9")]=this[O("0x5")].isEnabled&&t}execute(){const t=R(Array[O("0xc")](this[O("0x3")][O("0x6")]()));for(const e of t){const t=e[O("0x0")]();if(!this.editor[O("0x8")][O("0xb")](t))return}L(this[O("0x7")][O("0x8")],this[O("0x5")],t)}}const P=["execute","document","isEnabled","_command","getRanges","values","canEditAt","_suggestions","from","_selectedSuggestions","model","refresh"];var D,B;D=P,B=264,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[j("0x3")]=e,this[j("0x7")]=n,this._selectedSuggestions=new Set,this[j("0xb")](),this._isEnabledBasedOnSelection=!1}[j("0xb")](){const t=this.editor.model[j("0x1")].selection,e=Array.from(this[j("0x7")][j("0x5")]());this[j("0x9")]=function(t,e){const n=Array.from(t[v("0xa")]()),o=new Set;for(const s of e)if(s[v("0x8")])for(const e of n)for(const n of s[v("0xa")]())(e[v("0x0")](n)||t.isCollapsed&&!s[v("0x19")]&&s[v("0x4")]&&n.end[v("0x11")](e[v("0x12")]))&&o[v("0x6")](s);return o}(t,e),this[j("0x2")]=this._command.isEnabled&&!!this[j("0x9")].size}[j("0x0")](){const t=R(Array[j("0x8")](this[j("0x9")]));for(const e of t){const t=e[j("0x4")]();if(!this.editor[j("0xa")][j("0x6")](t))return}L(this.editor[j("0xa")],this._command,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 Q=$;const J=function(){this.__data__=new Q,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 dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(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||Q),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 Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;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,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.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&&ue(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,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(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 dn=function(t){return ln(t,Ue,on)};const un=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 Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=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[Jn]=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 d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Jn||"[object GeneratorFunction]"==u;if(be(e))return Je(e,a);if(u==Zn||u==Qn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,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=d?void 0:(l?c?un:dn: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||Qt),n}io.Cache=Qt;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 Qt;++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 d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!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)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};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=dn(t),a=x.length;if(a!=dn(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 d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==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,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!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=d&&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!!u&&(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=["author","nodeAfter","get","_markerNames","createdAt","authoredAt","attributes","toJSON","hasComments","getMarkers","next","length","getRange","creator","commentThread","map","onAttributesChange","previous","discard","getContainedElement","end","set","_isDataLoaded","onDiscard","split","head","delete","getItems","addMarkerName","isIntersecting","_saved","reduce","addRange","getMultiRangeId","data","_model","setAttribute","add","isExternal","change","from","nodeBefore","removeAttribute","substr","decorate","getFirstMarker","type","accept","_onAccept","removeMarker","getMarkerNames","clear","subType","isIntersectingWithRange","size","getAllAdjacentSuggestions","markers","@external","removeMarkers","_onDiscard","filter","_onAttributesChange","getRanges"];var $o,Qo;$o=qo,Qo=357,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return qo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Jo("0x2b")]=!1,this.id=e.id,this[Jo("0x4")]=e[Jo("0x4")],this.subType=e[Jo("0xa")]||null,this[Jo("0x15")]=e[Jo("0x15")],this.creator=e[Jo("0x22")]||e.author,this[Jo("0x3b")]=Boolean(e[Jo("0x1b")]&&e[Jo("0x1b")][Jo("0xf")]),this[Jo("0x37")]=null,this[Jo("0x38")]=t,this[Jo("0x6")]=e.onAccept,this[Jo("0x11")]=e[Jo("0x2c")],this[Jo("0x13")]=e[Jo("0x25")],this[Jo("0x18")]=new Set,this[Jo("0x19")]=null,this[Jo("0x2a")](Jo("0x1a"),null),this[Jo("0x2a")]("attributes",e[Jo("0x1b")]||{}),this[Jo("0x2a")]("previous",null),this[Jo("0x2a")](Jo("0x1f"),null),this[Jo("0x2a")](Jo("0x23"),null),this.set(Jo("0x33"),!1),this[Jo("0x2")](Jo("0x5")),this[Jo("0x2")](Jo("0x27"))}get[Jo("0x2e")](){let t=this;for(;t[Jo("0x26")];)t=t[Jo("0x26")];return t}get[Jo("0x1d")](){return!!this[Jo("0x23")]&&this[Jo("0x23")][Jo("0x20")]>0}get isMultiRange(){return 0!=this[Jo("0x18")][Jo("0xc")]&&6==Array.from(this[Jo("0x18")])[0][Jo("0x2d")](":")[Jo("0x20")]}get isInContent(){return null!==this.getFirstMarker()}[Jo("0x31")](t){this[Jo("0x18")][Jo("0x3a")](t)}[Jo("0x8")](){return Array[Jo("0x3d")](this[Jo("0x18")])}getMarkers(){return this[Jo("0x8")]()[Jo("0x24")]((t=>this[Jo("0x38")][Jo("0xe")][Jo("0x17")](t)))[Jo("0x12")]((t=>t))}[Jo("0x3")](){return this[Jo("0x1e")]()[0]||null}[Jo("0x10")](){this[Jo("0x38")][Jo("0x3c")]((t=>{for(const e of this.getMarkers())t[Jo("0x7")](e)})),this[Jo("0x18")][Jo("0x9")]()}[Jo("0x7")](t){this[Jo("0x38")][Jo("0x3c")]((e=>{e[Jo("0x7")](t)})),this[Jo("0x18")][Jo("0x2f")](t)}[Jo("0x35")](t){const e="suggestion:"+this[Jo("0x4")]+":"+this.subType+":"+this.id+":"+this[Jo("0x22")].id+":"+Zo[Jo("0x36")]();this[Jo("0x31")](e),this._model[Jo("0x3c")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0xb")](t){for(const e of this[Jo("0x14")]())if(e[Jo("0x32")](t))return!0;return!1}[Jo("0x14")](){return this[Jo("0x1e")]()[Jo("0x24")]((t=>t[Jo("0x21")]()))}[Jo("0x30")](){return this[Jo("0x14")]()[Jo("0x34")](((t,e)=>[...t,...e[Jo("0x30")]()]),[])}getFirstRange(){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Jo("0x21")]())||null}[Jo("0x28")](){const t=this[Jo("0x14")]();if(1!=t[Jo("0x20")])return null;const e=t[0],n=e.start[Jo("0x16")],o=e[Jo("0x29")][Jo("0x3e")];return n instanceof i.Element?n!=o?null:n:null}accept(){this[Jo("0x6")](this.getRanges(),this[Jo("0x37")],this[Jo("0x1b")]),this.removeMarkers()}[Jo("0x27")](){this._onDiscard(this[Jo("0x14")](),this.data,this[Jo("0x1b")]),this.removeMarkers()}[Jo("0xd")](){const t=[];let e=this[Jo("0x2e")];for(;e;)t.push(e),e=e[Jo("0x1f")];return t}[Jo("0x39")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Jo("0x1b")])||(this[Jo("0x1b")]=n,this._onAttributesChange(n))}[Jo("0x0")](t){const e=eo(this.attributes);Xo(e,t),Go(e,this[Jo("0x1b")])||(this[Jo("0x1b")]=e,this[Jo("0x13")](this.attributes))}[Jo("0x1c")](){return{id:this.id,type:this[Jo("0xa")]?this[Jo("0x4")]+":"+this[Jo("0xa")]:this[Jo("0x4")],authorId:this[Jo("0x22")].id,createdAt:this.createdAt,hasComments:this[Jo("0x1d")],data:this[Jo("0x37")],attributes:this.attributes}}static[Jo("0x36")](){return(0,e.uid)()[Jo("0x1")](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=["previousSibling","registerDescriptionCallback","pop","quantity","Object","add","push","function","_resolveDescriptionItems","_itemLabelsCallbacks","$1 $2","text","getFirstRange","Container","*Merge:* %0","replace","deletion","isEqual","addEmptyContainer","removeEmptyContainer","_schema","type","data","checkChild","name","remove","matchingCallback","_itemLabels","nextSibling","addContainer","isEmpty","elementEnd","_addDescriptionItems","insertion","isInContent","_customCallbacks","label","normal","getItemLabel","registerElementLabel","get","softBreak","isObject","elementStart","*Insert:* %0","EmptyContainer","length","*Remove:* %0","end","*Split:* %0","start","ELEMENT_SPACE","match","indexOf","element","_locale"];var es,ns;es=ts,ns=368,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("0x3")]=[],this[os("0x33")]=new Map,this._itemLabelsCallbacks=[],this[os("0x2c")]=t,this[os("0x17")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0xe")];n++){const o=t[n];if(!o[os("0x2")])continue;let s=!1;for(const t of this[os("0x3")]){const n=t(o);if(n){os("0x2d")in n&&e[os("0x1e")](n),s=!0;break}}if(!s){this[os("0x0")](e,o);const s=t[n+1];if(s&&!o[os("0x24")]()[os("0x10")][os("0x29")](s[os("0x24")]()[os("0x12")])){const t=e[e.length-1],n=os("0x1")==o.type?os("0x1d"):"remove";t&&os("0x23")==t[os("0x2d")]&&(t[n]+="\n")}}}return this[os("0x20")](e)}[os("0x19")](t){this[os("0x3")][os("0x1e")](t)}[os("0x7")](t,n,o=e.priorities[os("0x5")]){os("0x1f")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x33")].set(t,n)}[os("0x6")](t,e=1){let n;for(const e of this[os("0x21")])if(e[os("0x32")](t)){n=e[os("0x4")];break}return n||(n=this[os("0x33")][os("0x8")](t.name)),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x30")]}[os("0x0")](t,e){const n=e.getFirstRange().getWalker(),o=os("0x1")==e[os("0x2d")]?os("0x1d"):"remove";for(const e of n){const s=e.item,r=t[t[os("0xe")]-1];if(s.is("$textProxy"))r&&r[os("0x2d")][os("0x15")]("Container")>-1&&t[os("0x1a")](),r&&os("0x23")==r[os("0x2d")]?r[o]+=s[os("0x2e")]:t.push({type:os("0x23"),add:os("0x1d")==o?s.data:"",remove:os("0x31")==o?s.data:""});else if(this[os("0x2c")][os("0xa")](s)){const i=s;if(r&&r[os("0x2d")][os("0x15")](os("0x25"))>-1&&t[os("0x1a")](),os("0x37")==e[os("0x2d")])continue;r&&r[os("0x2d")]==o+"Object"&&r[os("0x16")].name==i[os("0x30")]?r[os("0x1b")]++:t[os("0x1e")]({type:o+os("0x1c"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t.type&&t.item==s)))}else if(this._schema[os("0x2f")](s,"$text")||s.is(os("0x16"),os("0x9"))){const n=s;if(os("0x1d")==o&&os("0xb")==e[os("0x2d")]||os("0x31")==o&&os("0x37")==e[os("0x2d")])continue;if(r&&-1==r[os("0x2d")][os("0x15")]("Container")){os("0x23")==r[os("0x2d")]&&(r[o]+="\n");continue}let i;if(i=os("0x1d")==o?n.nextSibling&&!this[os("0x2c")][os("0xa")](n[os("0x34")])?n.nextSibling:null:n[os("0x18")]&&!this[os("0x2c")].isObject(n[os("0x18")])?n.previousSibling:null,n[os("0x36")]||i&&i.isEmpty){const e=i&&i[os("0x36")]?i:n;r&&r[os("0x2d")]==o+os("0xd")&&r[os("0x16")][os("0x30")]==e[os("0x30")]?r[os("0x1b")]++:t[os("0x1e")]({type:o+os("0xd"),element:e,quantity:1})}else t[os("0x1e")]({type:o+"Container",element:n})}}}[os("0x20")](t){const e=this[os("0x17")],n=[];for(const o of t){switch(o.type){case os("0x23"):if(o[os("0x1d")]=o[os("0x1d")].replace(/(\S)\u000A+(\S)/g,os("0x22"))[os("0x27")](/\u000A/g,""),o[os("0x31")]=o[os("0x31")].replace(/(\S)\u000A+(\S)/g,os("0x22"))[os("0x27")](/\u000A/g,""),""!=o[os("0x1d")]&&""!=o[os("0x31")]){n[os("0x1e")]({type:os("0x27"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x31")]+'"','"'+o[os("0x1d")]+'"'])});continue}if(null!=o[os("0x1d")][os("0x14")](/^ +$/)){n[os("0x1e")]({type:os("0x1"),content:Yo(e,os("0xc"),Yo(e,os("0x13"),o[os("0x1d")][os("0xe")]))});continue}if(null!=o[os("0x31")][os("0x14")](/^ +$/)){n[os("0x1e")]({type:"deletion",content:Yo(e,os("0xf"),Yo(e,os("0x13"),o[os("0x31")].length))});continue}if(""!=o[os("0x1d")]){n[os("0x1e")]({type:os("0x1"),content:Yo(e,os("0xc"),'"'+o.add+'"')});continue}n[os("0x1e")]({type:os("0x28"),content:Yo(e,os("0xf"),'"'+o[os("0x31")]+'"')});continue;case os("0x2a"):case"addObject":n.push({type:os("0x1"),content:Yo(e,"*Insert:* %0",this[os("0x6")](o[os("0x16")],o[os("0x1b")]))});continue;case os("0x2b"):case"removeObject":n[os("0x1e")]({type:os("0x28"),content:Yo(e,"*Remove:* %0",this[os("0x6")](o.element,o.quantity))});continue;case os("0x35"):n[os("0x1e")]({type:os("0x1"),content:Yo(e,os("0x11"),this[os("0x6")](o[os("0x16")],o[os("0x1b")]))});continue;case"removeContainer":n.push({type:"deletion",content:Yo(e,os("0x26"),this[os("0x6")](o[os("0x16")],o[os("0x1b")]))});continue}n[os("0x1e")](o)}return n}}const rs=["_descriptionFactory","from","document","FORMAT_JUSTIFY_TEXT","selection","commandParams","markBlockFormat","right","format","value","change","commandName","editor","getSelectedBlocks","getAttribute","checkAttribute","plugins","schema","*Format:* %0","AlignmentEditing","get","FORMAT_ALIGN_TO_LEFT","ltr","contentLanguageDirection","filter","TrackChangesEditing","model","left","alignment"];var is,xs;is=rs,xs=378,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this[as("0xb")],e=t.locale;if(!t[as("0xf")].has(as("0x12")))return;const n=t[as("0xf")][as("0x13")](as("0x18"));n.enableCommand("alignment",((e,o={})=>{let s=o[as("0x8")];o[as("0x8")]||(s=as("0x15")===t.locale[as("0x16")]?as("0x1a"):as("0x6"));const r=Array[as("0x0")](this[as("0xb")].model[as("0x1")][as("0x3")][as("0xc")]())[as("0x17")]((t=>function(t,e,n){const o=t[as("0xd")](as("0x1b"))||null;return e[as("0xe")](t,as("0x1b"))&&n!=o}(t,this[as("0xb")][as("0x19")][as("0x10")],s)));t[as("0x19")][as("0x9")]((()=>{for(const t of r)n[as("0x5")](t,{commandName:as("0x1b"),commandParams:[{value:s}]})}))})),n[as("0x1c")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x1b")==n[as("0xa")]){const t=n[as("0x4")][0][as("0x8")];return{type:as("0x7"),content:Yo(e,as("0x11"),function(t){switch(t){case as("0x1a"):return Yo(e,as("0x14"));case as("0x6"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case"center":return Yo(e,"FORMAT_ALIGN_TO_CENTER");case"justify":return Yo(e,as("0x2"))}}(t))}}}))}}const ls=["listIndent","getItems","get","includes","isBlock","markerName","isAtEnd","start","ck-suggestion-marker--active","listItem","span","push","markerRange","nextSibling","item","getCustomProperty","parent","type","name","toViewElement","createUIElement","element","getAttribute","ck-suggestion-marker-","toViewPosition","model","consumable","getWalker","createRangeOn","elementEnd","test","mapper","TrackChangesEditing","isLimit","plugins","previousPosition","addHighlight","writer"];var ds,us;ds=ls,us=290,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0xf")]())s.hasAttribute(t)&&o.push(n[gs("0x4")](s));return o}function fs(t){const e=[];if(t.is(gs("0x23"),gs("0x17"))){let n=t[gs("0x1b")];for(;n&&n.is("element",gs("0x17"))&&n[gs("0x24")](gs("0xe"))>0;)e[gs("0x19")](n),n=n[gs("0x1b")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0xa")][gs("0x10")](gs("0x8"));return(s,r,i)=>{if(!i[gs("0x2")][gs("0x6")](r[gs("0x1a")],s[gs("0x20")]))return;const x=r.markerRange[gs("0x3")](),a=r[gs("0x1a")][gs("0x15")],c=t[gs("0x1")].schema;let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x1c")];u=u||c.isContent(e);const n=i.mapper[gs("0x21")](e);if(n&&n[gs("0x1d")](gs("0xc")))return;gs("0x5")==t[gs("0x1f")]&&c[gs("0x12")](e)&&!c[gs("0x9")](e)&&(e.nextSibling||a[gs("0x14")]?l&&l[gs("0x1e")]==e||(l=e,m(t[gs("0xb")]),g=!0):d=d||t[gs("0xb")])}function m(t){const s=i[gs("0xd")][gs("0x22")](gs("0x18"),{class:gs("0x25")+e}),x=i[gs("0x7")][gs("0x0")](t);n&&o.activeMarkers[gs("0x11")](r[gs("0x13")])&&i[gs("0xd")].addClass(gs("0x16"),s),i.writer.insert(x,s),i[gs("0x7")].bindElementToMarker(s,r[gs("0x13")])}u||g||!d||m(d)}}const ps=["*Remove format:* %0","markInlineFormat","commands","code","TrackChangesEditing","UnderlineEditing","ItalicEditing","_descriptionFactory","document","editor","value","slice","forceValue","bold","CodeEditing","strikethrough","has","isCollapsed","FORMAT_CODE","underline","commandName","SuperscriptEditing","toLowerCase","superscript","italic","get","FORMAT_BOLD","FORMAT_SUPERSCRIPT","*Format:* %0","commandParams","FORMAT_UNDERLINE","FORMAT_SUBSCRIPT","plugins","enableCommand","format","model","selection","getRanges"];var bs,Es;bs=ps,Es=383,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing",_s("0x3"),_s("0x2"),_s("0xb"),"StrikethroughEditing","SubscriptEditing",_s("0x12")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x6")],e=t[_s("0x20")],n=t[_s("0x1d")][_s("0x16")](_s("0x1")),o=t.locale;for(const o of Ts){if(!t.plugins[_s("0xd")](o))continue;const s=o[_s("0x8")](0,-7)[_s("0x13")](),r=t[_s("0x25")][_s("0x16")](s);n[_s("0x1e")](s,((t,o={})=>{const i=e[_s("0x5")][_s("0x21")];if(i[_s("0xe")])return void t(o);const x=void 0!==o.forceValue?o.forceValue:!r[_s("0x7")];e.change((()=>{const t=Array.from(i[_s("0x22")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x24")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x4")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x11")]===t)return s[_s("0x1a")][0][_s("0x9")]?{type:_s("0x1f"),content:Yo(o,_s("0x19"),e)}:{type:_s("0x1f"),content:Yo(o,_s("0x23"),e)}}))}s(_s("0xa"),Yo(o,_s("0x17"))),s(_s("0x15"),Yo(o,"FORMAT_ITALIC")),s(_s("0x10"),Yo(o,_s("0x1b"))),s(_s("0x0"),Yo(o,_s("0xf"))),s(_s("0xc"),Yo(o,"FORMAT_STRIKETHROUGH")),s("subscript",Yo(o,_s("0x1c"))),s(_s("0x14"),Yo(o,_s("0x18")))}}const ys=["editor","_descriptionFactory","markBlockFormat","change","*Remove format:* %0","enableCommand","selection","document","locale","registerDescriptionCallback","filter","parent","*Format:* %0","model","schema","value","checkChild","commandName","get","name","afterInit","forceValue","getSelectedBlocks","BlockQuoteEditing","$root","plugins","commands","ELEMENT_BLOCK_QUOTE","blockQuote","commandParams","from","format"];var ks,As;ks=ys,As=489,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0xb")](){const t=this[vs("0x17")],e=t[vs("0x1f")];if(!t[vs("0x10")].has(vs("0xe")))return;const n=t.plugins[vs("0x9")]("TrackChangesEditing"),o=this.editor[vs("0x11")][vs("0x9")]("blockQuote");n[vs("0x1c")]("blockQuote",((e,s={})=>{const r=this.editor[vs("0x4")][vs("0x1e")][vs("0x1d")],i=s&&void 0!==s[vs("0xc")]?s.forceValue:!o[vs("0x6")];let x=[];if(i){const e=Array[vs("0x15")](r[vs("0xd")]())[vs("0x1")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t[vs("0x2")],vs("0x13")),o=e[vs("0x7")]([vs("0xf"),vs("0x13")],t);return n&&o}(t,this.editor.model[vs("0x5")])));x=S(e,t[vs("0x4")])}else{const e=Array.from(r.getSelectedBlocks())[vs("0x1")]((t=>Ss(t)));x=S(e,t[vs("0x4")])}t[vs("0x4")][vs("0x1a")]((()=>{for(const t of x)n[vs("0x19")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vs("0x18")][vs("0x0")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[vs("0x8")]){const t=Yo(e,vs("0x12"));return n[vs("0x14")][0][vs("0xc")]?{type:"format",content:Yo(e,vs("0x3"),t)}:{type:vs("0x16"),content:Yo(e,vs("0x1b"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0x2")][vs("0xa")]}const Is=["ckbox","editor","afterInit","enableCommand","plugins","get","TrackChangesEditing"];var Ls,Ns;Ls=Is,Ns=437,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x6")](){const t=this[Ms("0x5")];t.commands[Ms("0x2")](Ms("0x4"))&&t[Ms("0x1")][Ms("0x2")](Ms("0x3"))[Ms("0x0")](Ms("0x4"))}}const Os=["selection","TrackChangesEditing","model","_descriptionFactory","registerElementLabel","ELEMENT_CODE_BLOCK","codeBlock","formatBlock","commandParams","registerDescriptionCallback","parent","plugins","CodeBlock","commandName","from","indentCodeBlock","checkChild","isLimit","value","locale","enableCommand","editor","languages","filter","config","*Format:* %0","getSelectedBlocks","forceValue","change","commands","markBlockFormat","name","outdentCodeBlock","schema","format","language","get"];var Fs,Ps;Fs=Os,Ps=203,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x3")];if(!t[Ds("0x1e")].has(Ds("0x1f")))return;const e=t.plugins.get(Ds("0x14")),n=t[Ds("0x1")],o=t[Ds("0x6")][Ds("0x12")](Ds("0x19"))[Ds("0x4")],s=t[Ds("0xb")][Ds("0x12")](Ds("0x19"));e[Ds("0x2")](Ds("0x22")),e[Ds("0x2")](Ds("0xe")),e[Ds("0x2")](Ds("0x19"),((n,r={})=>{const i=t[Ds("0x15")],x=t.model.document[Ds("0x13")],a=r&&void 0!==r[Ds("0x9")]?r[Ds("0x9")]:!s[Ds("0x0")];let c;r[Ds("0x11")]||(r[Ds("0x11")]=o[0][Ds("0x11")]),c=a?Array[Ds("0x21")](x[Ds("0x8")]())[Ds("0x5")]((t=>{return js(t)||(e=t,n=i[Ds("0xf")],!e.is("rootElement")&&!n[Ds("0x24")](e)&&n[Ds("0x23")](e[Ds("0x1d")],Ds("0x19")));var e,n})):Array[Ds("0x21")](x[Ds("0x8")]())[Ds("0x5")]((t=>js(t)));const l=S(c,i);i[Ds("0xa")]((()=>{for(const t of l)e[Ds("0xc")](t,{commandName:Ds("0x19"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x16")][Ds("0x17")](Ds("0x19"),(t=>Yo(n,Ds("0x18"),t))),e[Ds("0x16")][Ds("0x1c")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x1a")==s&&r&&"codeBlock"==r[Ds("0x20")]){const t=r[Ds("0x1b")][0][Ds("0x11")],s=e(o.find((e=>e[Ds("0x11")]===t)).label);return r[Ds("0x1b")][0][Ds("0x9")]?{type:Ds("0x10"),content:Yo(n,Ds("0x7"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,"*Remove format:* %0",Yo(n,Ds("0x18"),1))}}}))}}function js(t){return Ds("0x19")==t[Ds("0xd")]}const Us=["TrackChangesEditing","plugins","get","has","CommentsEditing"];var Gs,Hs;Gs=Us,Hs=226,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.editor;t[zs("0x0")][zs("0x2")](zs("0x3"))&&t[zs("0x0")][zs("0x1")](zs("0x4")).enableCommand("addCommentThread")}}var Vs=n(181);const Ks=["editing","uiElement","selection","forward","deleteForward","showSuggestionHighlights","plugins","downcastDispatcher","buffer","model","root","removeMarker:suggestion:deletion","enableCommand","requires","document","data","merge","createRange","mapper","markerNameToElements","lock","remove","end","enqueueChange","createSelection","markerName","getFirstRange","$graveyard","high","start","editor","fromRange","writer","addMarker:suggestion:deletion","init","batch","rootName","isCollapsed","get","detach","TrackChangesEditing","bind","commands","unit","unbindElementFromMarkerName","options","unlock","setSelection"];var Xs,qs;Xs=Ks,qs=470,function(t){for(;--t;)Xs.push(Xs.shift())}(++qs);const $s=function(t,e){return Ks[t-=0]};class Qs extends t.Plugin{static get[$s("0x17")](){return[Vs.Delete]}[$s("0x2c")](){const t=this[$s("0x28")],e=t[$s("0x10")][$s("0x0")]($s("0x2"));e[$s("0x16")]("delete");const n=t[$s("0x4")][$s("0x0")]($s("0xe"));e.enableCommand($s("0xe"),((e,o={})=>{const s=t[$s("0x13")][$s("0x22")](t[$s("0x13")][$s("0x18")][$s("0xc")]);s[$s("0x2f")]&&t.model.modifySelection(s,{direction:$s("0xd"),unit:o[$s("0x5")]});const r=s[$s("0x24")](),x=i.LiveRange[$s("0x29")](r);let a;e(o),a=$s("0x25")==x[$s("0x14")][$s("0x2e")]?t[$s("0x13")].createRange(r.start):t[$s("0x13")][$s("0x1b")](x[$s("0x27")],x[$s("0x20")]),x[$s("0x1")](),t[$s("0x13")][$s("0x21")](n[$s("0x12")][$s("0x2d")],(t=>{n[$s("0x12")][$s("0x1e")](),t[$s("0x9")](t[$s("0x1b")](a.end)),n[$s("0x12")][$s("0x8")]()}))})),t[$s("0xa")][$s("0x11")].on($s("0x2b"),hs(t,"merge"),{priority:$s("0x26")}),t[$s("0x19")][$s("0x11")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[$s("0x7")][$s("0xf")]&&hs(t,$s("0x1a"),{showActiveMarker:!1})[$s("0x3")](this)(e,n,o)}),{priority:"high"}),t[$s("0xa")][$s("0x11")].on($s("0x15"),((t,e,n)=>{const o=n[$s("0x1c")][$s("0x1d")](e.markerName);if(o)for(const t of o)t.is($s("0xb"))&&(n[$s("0x1c")][$s("0x6")](t,e[$s("0x23")]),n[$s("0x2a")][$s("0x1f")](t))}),{priority:$s("0x26")})}}const Js=["splitListItemAfter","listIndent","add","isFirstBlockOfListItem","execute","*Change to:* %0","editor","listItemId","forceValue","*Outdent:* %0","ELEMENT_LIST_ITEM","refresh","expandListBlocksToCompleteList","containsItem","slice","push","markBlockFormat","mergeListItemForward","parent","*Format:* remove from %0","bulletedList","commandParams","map","format","document","numberedList","end","commands","model","plugins","ELEMENT_","ELEMENT_BULLETED_LIST","value","getSelectedBlocks","outdentList","start","selection","getAttribute","_suggestionFactory","listType","*Format:* insert into %0","enableCommand","TrackChangesEditing","before","registerCustomCallback","documentList","indentList","formatBlock","nextSibling","afterInit","hasAttribute","nodeAfter","_descriptionFactory","getRanges","accept","length","get","createRange","ELEMENT_NUMBERED_LIST","schema","setSelection","from","detach","locale","after","DocumentListUtils","fromRange","previousSibling","isObject","DocumentListEditing","change","createPositionAt","getFirstRange","has","*Indent:* %0","commandName"];var Zs,Ys;Zs=Js,Ys=461,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Js[t-=0]};class er extends t.Plugin{[tr("0x2c")](){const t=this[tr("0x1")];if(!t[tr("0x18")][tr("0x44")](tr("0x40")))return;const e=t[tr("0x3a")],n=t.plugins[tr("0x33")](tr("0x25")),o=t[tr("0x18")].get(tr("0x3c"));function s(e){return()=>{const s=t[tr("0x16")][tr("0x33")](e);let r=Array[tr("0x38")](t[tr("0x17")][tr("0x13")][tr("0x1f")][tr("0x1c")]());if(a(e)){r=o[tr("0x7")](r);const t=[];for(const e of r)o[tr("0x4a")](e)&&t[tr("0xa")](e);r=t}t[tr("0x17")][tr("0x41")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!s[tr("0x1b")]}],formatGroupId:"listType"},[],tr("0x28"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t[tr("0x2d")](tr("0x2"))));return n>-1&&(e=e[tr("0x9")](0,n)),e}(t[tr("0x17")][tr("0x13")].selection[tr("0x1c")]()),s=o[o[tr("0x32")]-1],r=t[tr("0x17")][tr("0x36")][tr("0x3f")](s)?tr("0x3b"):tr("0x15"),i=t[tr("0x17")][tr("0x34")](t.model[tr("0x42")](o[0],tr("0x26")),t[tr("0x17")][tr("0x42")](s,r));t.model.change((()=>{n[tr("0xb")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x22")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x20")](tr("0x48"))>n[tr("0x20")](tr("0x48"));)e[tr("0x49")](t),t=t[tr("0x2b")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x17")].document[tr("0x1f")][tr("0x1c")]().next()[tr("0x1b")],s=t[tr("0x17")].createPositionAt(o,"before"),r=t.model[tr("0x42")](o,0),i=t[tr("0x17")][tr("0x34")](s,r);t[tr("0x17")].change((()=>{n[tr("0xb")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x22")})}))}}function a(e){const n=t[tr("0x16")][tr("0x33")](tr("0xf")).value,o=t[tr("0x16")][tr("0x33")](tr("0x14"))[tr("0x1b")];return"numberedList"===e?n:o}n[tr("0x24")](tr("0x14"),s(tr("0x14"))),n[tr("0x24")](tr("0xf"),s(tr("0xf"))),n[tr("0x24")](tr("0x29"),r(tr("0x29"))),n[tr("0x24")](tr("0x1d"),r(tr("0x1d"))),n[tr("0x24")](tr("0x47"),x(tr("0x47"))),n[tr("0x24")]("splitListItemBefore",x("splitListItemBefore")),n[tr("0x2f")].registerElementLabel((function(e){const n=!t[tr("0x17")][tr("0x36")][tr("0x3f")](e),o=e[tr("0x3e")],s=e[tr("0x2b")],r=e[tr("0x20")](tr("0x2")),i=!o||o[tr("0x20")](tr("0x2"))!==r,x=!s||s[tr("0x20")](tr("0x2"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x5"),t))),n[tr("0x2f")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x46")]){case tr("0xf"):r=n[tr("0x10")][0].forceValue,i=a(n[tr("0x46")]),o=tr(r?"0x23":"0xe"),i&&(o=tr("0x0")),s={type:tr("0x12"),content:Yo(e,o,Yo(e,tr("0x1a")))};break;case tr("0x14"):r=n[tr("0x10")][0][tr("0x3")],i=a(n[tr("0x46")]),o=r?"*Format:* insert into %0":tr("0xe"),i&&(o=tr("0x0")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x35")))};break;case tr("0x29"):o=tr("0x45"),s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case"outdentList":o=function(t){const e=t.getFirstRange();let n=e.start[tr("0x2e")];for(;n&&e[tr("0x8")](n);){if(n[tr("0x20")](tr("0x48"))>0)return!1;n=n[tr("0x2b")]}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x43")]()[tr("0x1e")][tr("0x2e")];return tr("0x19")+e[tr("0x20")](tr("0x22")).toUpperCase()+"_LIST"}(t))):Yo(e,tr("0x4"),Yo(e,tr("0x5"))),s={type:tr("0x12"),content:o};break;case"mergeListItemBackward":case tr("0xc"):!1===n.multipleBlocks&&(o="*Merge:* %0",s={type:"deletion",content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x21")][tr("0x27")](tr("0x2a"),tr("0x28"),tr("0x31"),(function(e,n){const o=[];for(let n of e)n[tr("0x1e")][tr("0x2e")]===n.end[tr("0xd")]&&(n=t[tr("0x17")][tr("0x34")](t[tr("0x17")][tr("0x42")](n.start[tr("0x2e")],0))),o[tr("0xa")](n);t.model[tr("0x41")]((e=>{const s=t[tr("0x17")].document[tr("0x1f")],r=Array.from(s[tr("0x30")]())[tr("0x11")]((t=>i.LiveRange[tr("0x3d")](t)));e[tr("0x37")](o),t[tr("0x16")][tr("0x33")](n[tr("0x46")])[tr("0x6")](),n[tr("0x10")].push({forceDefaultExecution:!0}),t[tr("0x4b")](n[tr("0x46")],...n[tr("0x10")]),e[tr("0x37")](r);for(const t of r)t[tr("0x39")]()}))}))}}var nr=n(331);const or=["enter","setSelection","addMarker:suggestion:insertion","detach","downcastDispatcher","createRange","options","fire","getFirstRange","getFirstPosition","remove","init","commands","model","change","removeMarker:suggestion:insertion","mapper","document","split","createPositionAt","enableCommand","ck-suggestion-marker-split","selection","get","markInsertion","afterExecute","high","editor","markerName","data","editing","TrackChangesEditing","fromRange","bind"];var sr,rr;sr=or,rr=327,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 requires(){return[nr.Enter]}[ir("0x18")](){const t=this[ir("0x6")],e=t.plugins[ir("0x2")](ir("0xa")),n=t[ir("0x19")].get(ir("0xd"));e[ir("0x21")](ir("0xd"),(()=>{t[ir("0x1a")][ir("0x1b")]((o=>{const s=t[ir("0x1a")][ir("0x1e")][ir("0x1")],r=s[ir("0x16")](),x=i.LiveRange[ir("0xb")](s[ir("0x15")]());if(n.enterBlock(o)){const n=t.model[ir("0x20")](r.parent.nextSibling,0),s=o[ir("0x12")](r,n);e[ir("0x3")](s)}else o[ir("0xe")](o[ir("0x12")](x.end));x[ir("0x10")](),n[ir("0x14")](ir("0x4"),{writer:o})}))})),t[ir("0x9")].downcastDispatcher.on(ir("0xf"),hs(t,ir("0x1f")),{priority:ir("0x5")}),t.editing[ir("0x11")].on(ir("0x1c"),((t,e,n)=>{const o=n[ir("0x1d")].markerNameToElements(e[ir("0x7")]);if(o)for(const t of o)t.hasClass(ir("0x0"))&&(n[ir("0x1d")].unbindElementFromMarkerName(t,e.markerName),n.writer[ir("0x17")](t))}),{priority:ir("0x5")}),t[ir("0x8")][ir("0x11")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x13")].showSuggestionHighlights&&hs(t,ir("0x1f"),{showActiveMarker:!1})[ir("0xc")](this)(e,n,o)}),{priority:ir("0x5")})}}const ar=["filter","findNext","FindAndReplaceUtils","replaceAll","afterInit","markers","model","getIntersection","handleFindCommand","get","replace","start","plugins","string","findByTextCallback","_isInDeletionRange","bind","editor","end","getRange","TrackChangesEditing","find","enableCommand","FindAndReplaceEditing","createPositionAt","has"];var cr,lr;cr=ar,lr=439,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x7")](){if(!this.editor[dr("0xf")][dr("0x2")](dr("0x0")))return;const t=this[dr("0x14")][dr("0xf")][dr("0xc")](dr("0x17"));t[dr("0x19")](dr("0x18"),this[dr("0xb")][dr("0x13")](this)),t[dr("0x19")](dr("0x4")),t[dr("0x19")]("findPrevious"),t[dr("0x19")](dr("0xd")),t[dr("0x19")](dr("0x6"))}[dr("0xb")](t,e,n={}){const o=this[dr("0x14")][dr("0xf")][dr("0xc")](dr("0x5"));void 0!==n&&t((t=>(dr("0x10")==typeof e?o[dr("0x11")](e,n):e)(t)[dr("0x3")]((e=>!1===this[dr("0x12")](e,t.item)))),n)}_isInDeletionRange(t,e){const n=this[dr("0x14")][dr("0x9")].createRange(this.editor[dr("0x9")][dr("0x1")](e,t[dr("0xe")]),this[dr("0x14")][dr("0x9")][dr("0x1")](e,t[dr("0x15")]));for(const t of this[dr("0x14")].model[dr("0x8")].getMarkersGroup("suggestion:deletion"))if(null!==n[dr("0xa")](t[dr("0x16")]()))return!0;return!1}}const gr=["commandName","afterInit","TrackChangesEditing","find","*Set font family:* %0","get","registerDescriptionCallback","title","FontFamilyEditing","getRanges","enableCommand","fontFamily","markInlineFormat","from","*Reset font background color*","commandParams","fontBackgroundColor.colors","FontSizeEditing","*Reset font family*","isCollapsed","format","label","plugins","fontBackgroundColor","fontSize","normalizeSizeOptions","document","fontColor","toLowerCase","has","fontColor.colors","editor","model","change","locale","trim","config","_enableCommand","*Reset font color*","value"];var mr,fr;mr=gr,fr=204,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0xd"),commandName:hr("0x14")},{pluginName:hr("0x4"),commandName:hr("0x7")},{pluginName:"FontColorEditing",commandName:"fontColor"},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x25")](){const t=this[hr("0x1b")][hr("0x1e")];for(const{pluginName:t,commandName:e}of pr)this.editor.plugins[hr("0x19")](t)&&this[hr("0x21")](e);this[hr("0x1b")][hr("0x12")][hr("0x1")](hr("0x26"))._descriptionFactory[hr("0x2")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x14")==o[hr("0x24")]){const e=o[hr("0xb")][0][hr("0x23")];if(e){const o=n(this[hr("0x1b")][hr("0x12")][hr("0x1")]("FontSize")[hr("0x15")](this[hr("0x1b")][hr("0x20")].get("fontSize.options"))[hr("0x27")]((t=>t[hr("0x1c")]==e))[hr("0x3")])[hr("0x18")]();return{type:hr("0x10"),content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x10"),content:Yo(t,"*Reset font size*")}}if("fontFamily"==o.commandName){const e=o[hr("0xb")][0][hr("0x23")];return e?{type:hr("0x10"),content:Yo(t,hr("0x0"),e)}:{type:hr("0x10"),content:Yo(t,hr("0xe"))}}if(hr("0x17")==o[hr("0x24")]){const e=o[hr("0xb")][0][hr("0x23")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x1b")].config[hr("0x1")](hr("0x1a"))).find((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x11")],i=n(r).toLowerCase()),{type:hr("0x10"),content:Yo(t,"*Set font color:* %0",i)[hr("0x1f")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x22"))}}if(hr("0x13")==o[hr("0x24")]){const e=o.commandParams[0][hr("0x23")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x1b")][hr("0x20")][hr("0x1")](hr("0xc")))[hr("0x27")]((t=>t[hr("0x1c")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x18")]()),{type:hr("0x10"),content:Yo(t,"*Set font background color:* %0",i)[hr("0x1f")](),color:{value:e,title:i||r}}}return{type:hr("0x10"),content:Yo(t,hr("0xa"))}}}}))}_enableCommand(t){const e=this[hr("0x1b")];e[hr("0x12")][hr("0x1")](hr("0x26"))[hr("0x6")](t,((n,o={})=>{const s=e[hr("0x1c")][hr("0x16")].selection,r=o.value;s[hr("0xf")]?n(o):e[hr("0x1c")][hr("0x1d")]((()=>{const n=Array[hr("0x9")](s[hr("0x5")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x1c")]);for(const o of n)e.plugins[hr("0x1")](hr("0x26"))[hr("0x8")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["backward","commandParams","split","format","fontColor","entries","isFormatting","*Remove all formatting*","config","forward","isCollapsed","commands","title","createRange","*Set format to:* %0","selection","fontColor.colors","markInlineFormat","boolean","toUpperCase","afterInit","from","get","pasteFormat","FontSize","modifySelection","model","getRanges","label","normalizeSizeOptions","keys","plugins","getLastPosition","enableCommand","isBlock","fontSize","createSelection","change","word","copyFormat","_descriptionFactory","getSelectedBlocks","TrackChangesEditing","fontBackgroundColor","schema","toLowerCase","fontSize.options","length","slice","find","locale"];var _r,Tr;_r=Er,Tr=190,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x22")](){const t=this.editor,n=t.model,o=n.document[Cr("0x1d")],s=t[Cr("0x2d")][Cr("0x24")](Cr("0x5")),r=t[Cr("0xd")],i=t.commands.get(Cr("0x2")),x=t[Cr("0x19")][Cr("0x24")](Cr("0x25"));i&&x&&(s[Cr("0x2f")]("pasteFormat",((t,r={})=>{const i=r;n[Cr("0x0")]((()=>{const t=Array[Cr("0x23")](o[Cr("0x29")]()),r=o[Cr("0x18")]?[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.getAttributes()){const t=e.getAttributeProperties(n);t&&t[Cr("0x14")]&&(yield n)}}(t,n));for(const e of t[Cr("0x29")]())for(const t of e.getItems())!n[Cr("0x30")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x4")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x7")]))||0!==Object[Cr("0x2c")](i)[Cr("0xa")])for(const t of r)s[Cr("0x1f")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x3")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cr("0xf")][0];for(const[n,s]of Object[Cr("0x13")](o))e.push(Ar(t,n,s));return e[Cr("0xa")]?{type:Cr("0x11"),content:Yo(r,Cr("0x1c"),e.join(", "))}:{type:Cr("0x11"),content:Yo(r,Cr("0x15"))}}})),t[Cr("0x2d")].get("TrackChangesEditing")[Cr("0x2f")](Cr("0x2")))}}function kr(t,e){const n=t[Cr("0x32")](e);t[Cr("0x27")](n,{unit:Cr("0x1"),direction:Cr("0xe")});const o=n.getFirstPosition();t.modifySelection(n,{unit:Cr("0x1"),direction:Cr("0x17")});const s=n[Cr("0x2e")]();return t[Cr("0x1b")](o,s)}function Ar(t,e,n){const o=t[Cr("0xd")].t,r=e[Cr("0x10")](/(?=[A-Z])/).join(" "),i=o(r.charAt(0)[Cr("0x21")]()+r[Cr("0xb")](1))[Cr("0x8")]();if(Cr("0x20")==typeof n)return i;if(Cr("0x12")===e||Cr("0x6")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x16")].get(Cr("0x1e")))[Cr("0xc")]((t=>t[Cr("0x28")]==n));return i+" ("+(e?o(e[Cr("0x2a")])[Cr("0x8")]():n)+")"}if(Cr("0x31")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x2d")][Cr("0x24")](Cr("0x26"))[Cr("0x2b")](t[Cr("0x16")][Cr("0x24")](Cr("0x9")))[Cr("0xc")]((t=>t[Cr("0x28")]==n));return i+" ("+(e?o(e[Cr("0x1a")])[Cr("0x8")]():n)+")"}return i+" ("+n+")"}const vr=["title","get","blockName","heading","commandName","find","isObject","registerDescriptionCallback","change","from","editor","heading.options","name","value","locale","parent","filter","paragraph","getSelectedBlocks","*Change to:* %0","has","ELEMENT_HEADING","selection","config","plugins","_descriptionFactory","format","checkChild","enableCommand","ELEMENT_HEADING_CUSTOM","commandParams","HeadingEditing","match","model"];var Rr,Sr;Rr=vr,Sr=463,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.editor,e=t[Ir("0x1b")],n=t[Ir("0x2")].get(Ir("0x18"));if(!t[Ir("0x3")][Ir("0x21")](Ir("0xa")))return;const o=t[Ir("0x3")][Ir("0xe")]("TrackChangesEditing");o[Ir("0x7")]("heading",((e,n)=>{const s=n[Ir("0x1a")],r=Array[Ir("0x16")](this.editor.model.document[Ir("0x1")][Ir("0x1f")]())[Ir("0x1d")]((t=>{return e=t,n=s,(o=this[Ir("0x17")][Ir("0xc")].schema)[Ir("0x6")](e[Ir("0x1c")],n)&&!o[Ir("0x13")](e)&&e[Ir("0x19")]!=n;var e,n,o}));t[Ir("0xc")][Ir("0x15")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x10"),commandParams:[n],formatGroupId:Ir("0xf")},fs(t))}))}));for(const t of n)Ir("0x1e")!=t[Ir("0xc")]&&o[Ir("0x4")].registerElementLabel(t[Ir("0xc")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0xd")])}));function s(t,n){return Yo(e,Ir("0x0"),[t,n])}function r(t,n){return Yo(e,Ir("0x8"),[t,n])}o._descriptionFactory[Ir("0x14")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&Ir("0x10")==i[Ir("0x11")]){const t=i[Ir("0x9")][0][Ir("0x1a")],o=Nr(t);if(null!==o)return{type:Ir("0x5"),content:Yo(e,Ir("0x20"),s(1,o))};const x=n[Ir("0x12")]((e=>e[Ir("0xc")]===t)).title;return{type:Ir("0x5"),content:Yo(e,Ir("0x20"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0xb")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["item","formatInline","_descriptionFactory","value","registerDescriptionCallback","isCollapsed","*Set highlight:* %0","hasAttribute","push","getRanges","title","HighlightEditing","backward","get","getLastMatchingPosition","find","model","afterInit","highlight.options","color","getFirstPosition","toLowerCase","plugins","FORMAT_HIGHLIGHT","getAttribute","format","highlight","locale","change","*Remove highlight*","selection"];var wr,Or;wr=Mr,Or=488,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("0x1e")].has(Fr("0x13")))return;const e=t[Fr("0x1e")][Fr("0x15")]("TrackChangesEditing");e.enableCommand(Fr("0x3"),((n,o={})=>{const s=t[Fr("0x18")].document[Fr("0x7")],r=s[Fr("0x1")](Fr("0x3"));let i=o[Fr("0xb")],x=[];if(s[Fr("0xd")]){const e=s[Fr("0x1c")]();if(!s[Fr("0xf")](Fr("0x3")))return void n(o);{const n=t=>t[Fr("0x8")][Fr("0x1")]("highlight")===r,o=e[Fr("0x16")](n,{direction:Fr("0x14")}),s=e[Fr("0x16")](n);x=[t[Fr("0x18")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x11")]())i?x[Fr("0x10")](e):x[Fr("0x10")](...ms(Fr("0x3"),e,t[Fr("0x18")]));t[Fr("0x18")][Fr("0x5")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x4")];e[Fr("0xa")][Fr("0xc")]((e=>{const{type:o,data:s}=e;if(Fr("0x9")==o&&s&&Fr("0x3")==s.commandName){const e=n.t,o=s.commandParams[0][Fr("0xb")];if(o){const s=t.config[Fr("0x15")](Fr("0x1a"))[Fr("0x17")]((t=>t[Fr("0x18")]==o)),r=e(s[Fr("0x12")])[Fr("0x1d")]();return{type:"format",content:Yo(n,Fr("0xe"),r),color:{value:s[Fr("0x1b")],title:s.title}}}return{type:Fr("0x2"),content:Yo(n,Fr("0x6"),Yo(n,Fr("0x0")))}}}))}}const Dr=["createEmptyElement","_descriptionFactory","plugins","createPositionAt","registerElementLabel","showSuggestionHighlights","conversion","HorizontalLineEditing","has","locale","TrackChangesEditing","horizontalLine","for","createContainerElement","afterInit","elementToStructure","high","enableCommand","ck-horizontal-line","get"];var Br,jr;Br=Dr,jr=434,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x0")](){const t=this.editor;if(!t[Ur("0x8")][Ur("0xe")](Ur("0xd")))return;t[Ur("0x8")][Ur("0x5")]("TrackChangesEditing")[Ur("0x3")](Ur("0x11"));const e=t[Ur("0x8")][Ur("0x5")](Ur("0x10")),n=t[Ur("0xf")];e[Ur("0x7")][Ur("0xa")]("horizontalLine",(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Ur("0xc")][Ur("0x12")]("dataDowncast")[Ur("0x1")]({model:Ur("0x11"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0xb")])return null;const o=e[Ur("0x13")]("div"),s=e[Ur("0x6")]("hr");return e.addClass(Ur("0x4"),o),e.insert(e[Ur("0x9")](o,0),s),o},converterPriority:Ur("0x2")})}}const Hr=["has","*Change %0 content*","change","enableCommand","TrackChangesEditing","editing","plugins","view","cancel","_descriptionFactory","commandName","editor","registerDescriptionCallback","get","ELEMENT_HTML_EMBED","selection","registerElementLabel","htmlEmbed","document","locale","rawHtmlApi","value","rawHtml"];var zr,Wr;zr=Hr,Wr=318,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0xf")];if(!t.plugins[Vr("0x4")]("HtmlEmbed"))return;const e=t[Vr("0xa")][Vr("0x11")](Vr("0x8")),n=t[Vr("0x0")],o=t[Vr("0x9")][Vr("0xb")][Vr("0x16")][Vr("0x13")];e[Vr("0xd")][Vr("0x14")]("rawHtml",(t=>Yo(n,Vr("0x12"),t))),t.plugins[Vr("0x11")](Vr("0x8"))[Vr("0x7")](Vr("0x15"),((n,s)=>{const r=t.model,i=r[Vr("0x16")][Vr("0x13")];r[Vr("0x6")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is("element",Vr("0x3"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x2"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x15"),commandParams:[s]}),o.getSelectedElement().getCustomProperty(Vr("0x1"))[Vr("0xc")]())}))})),e[Vr("0xd")][Vr("0x10")]((t=>{const{data:e}=t;if(e&&Vr("0x15")==e[Vr("0xe")]){const t=Yo(n,Vr("0x12"));return{type:"format",content:Yo(n,Vr("0x5"),t)}}}))}}const Xr=["ImageStyleEditing","markInlineFormat","getSuggestionCallback","insertImage","_suggestionFactory","formatBlock","isBlockImage","imageStyle","addObject","forceDefaultExecution","ImageCaptionUtils","length","refresh","imageBlock","commandName","backward","_findSuggestions","getClosestSelectedImageElement","toggleImageCaption","document","forward","registerElementLabel","head","registerCustomCallback","editor","createRange","suggestion","getFirstRange","accept","newValue","nodeAfter","*Format:* %0","from","newRange","detach","imageStylePreApply","registerPostFixer","ImageUploadEditing","commandParams","ImageCaptionEditing","ImageBlockEditing","discardSuggestion","fromPosition","isInContent","get","markBlockFormat","previous","type","name","registerDescriptionCallback","schema","getChangedMarkers","isOwn","alt","*Reset image width*","imageTextAlternative","title","hasAttribute","convertBlockImageToInline","selection","insertion","ImageTextAlternativeEditing","model","getCaptionFromImageModelElement","change","getAttribute","getNearestSelectionRange","format","caption","find","filter","next","plugins","TrackChangesEditing","uploadImage","removeObject","isEqual","_splitMarkerName","differ","getSuggestion","formatInline","markInsertion","toPrevious","afterInit","convertInlineImageToBlock","side","resizeImage","imageStylePostApply","*Set image text alternative:* %0","getSuggestions","width","findIndex","subType","start","shouldConvertImageType","Inline image to block image","imageTypeBlock","isBefore","imageTypeInline","Users","*Remove image text alternative*","discard","getContainedElement","imageCaption","commands","author","forEach","enableCommand","nodeBefore","join","hasSuggestion","element","toLowerCase","ELEMENT_INLINE_IMAGE","has","chain","ImageUtils","end","ELEMENT_IMAGE","_descriptionFactory","createRangeOn","value"];var qr,$r;qr=Xr,$r=193,function(t){for(;--t;)qr.push(qr.shift())}(++$r);const Qr=function(t,e){return Xr[t-=0]};class Jr extends t.Plugin{[Qr("0xc")](){const t=this[Qr("0x4b")];if(!t.plugins[Qr("0x2b")]("ImageEditing"))return;const n=t[Qr("0x1")].get(Qr("0x2")),o=t.plugins[Qr("0x5f")](Qr("0x2d")),s={},r=t.locale;if(n[Qr("0x24")](Qr("0x36")),n[Qr("0x30")][Qr("0x48")](Qr("0x40"),(t=>Yo(r,Qr("0x2f"),t))),n._descriptionFactory[Qr("0x48")]("imageInline",(t=>Yo(r,Qr("0x2a"),t))),n[Qr("0x30")].registerElementLabel(Qr("0x77"),(()=>Yo(r,"ELEMENT_CAPTION"))),t[Qr("0x1")][Qr("0x2b")](Qr("0x58"))&&n[Qr("0x24")](Qr("0x3")),t[Qr("0x1")][Qr("0x2b")](Qr("0x5b"))&&t[Qr("0x1")][Qr("0x2b")]("ImageInlineEditing")&&(n[Qr("0x24")]("imageTypeInline",((e,s)=>{const r=o[Qr("0x44")](t[Qr("0x71")][Qr("0x46")][Qr("0x6e")]);t[Qr("0x71")].change((()=>{n[Qr("0x60")](r,{commandName:Qr("0x1b"),commandParams:[s]},[],Qr("0x6d"))}))})),n[Qr("0x24")](Qr("0x19"),((e,s)=>{t.model[Qr("0x73")]((r=>{let x=o[Qr("0x44")](t[Qr("0x71")][Qr("0x46")][Qr("0x6e")]),a=r[Qr("0x31")](x);const c=i.LivePosition[Qr("0x5d")](a.start,Qr("0xb")),l=i.LivePosition[Qr("0x5d")](a[Qr("0x2e")],"toNext");n[Qr("0x3c")]((()=>e(s))),x=o[Qr("0x44")](t[Qr("0x71")][Qr("0x46")][Qr("0x6e")]),a=r.createRangeOn(x);const d=r.createRange(c,l);c[Qr("0x55")](),l.detach(),n[Qr("0x60")](x,{commandName:"imageTypeInline",commandParams:[]},[],Qr("0xd")),d[Qr("0x16")][Qr("0x1a")](a.start)&&n[Qr("0xa")](r[Qr("0x4c")](d[Qr("0x16")],a[Qr("0x16")]),Qr("0xd")),a[Qr("0x2e")][Qr("0x1a")](d.end)&&n.markInsertion(r.createRange(a.end,d[Qr("0x2e")]),"convertInlineImageToBlock")}))})),n[Qr("0x37")][Qr("0x4a")](Qr("0x38"),Qr("0xd"),Qr("0x26"),(()=>!1)),n._suggestionFactory[Qr("0x4a")](Qr("0x38"),Qr("0xd"),Qr("0x4f"),(()=>!1)),n._suggestionFactory[Qr("0x4a")](Qr("0x38"),Qr("0xd"),Qr("0x1e"),n[Qr("0x37")][Qr("0x35")](Qr("0x38"),"",Qr("0x4f"))),n[Qr("0x37")][Qr("0x4a")](Qr("0x6f"),Qr("0xd"),Qr("0x26"),(()=>!1)),n[Qr("0x37")].registerCustomCallback(Qr("0x6f"),"convertInlineImageToBlock",Qr("0x1e"),(([e])=>{const o=n[Qr("0x37")][Qr("0x35")]("insertion","",Qr("0x1e"));let s=e[Qr("0x16")],r=e[Qr("0x2e")];const i=t[Qr("0x71")][Qr("0x65")][Qr("0x75")](s,Qr("0x42")),x=t.model[Qr("0x65")][Qr("0x75")](r,Qr("0x47"));i.isCollapsed&&(s=i.start),x.isCollapsed&&(r=x[Qr("0x2e")]),o([t[Qr("0x71")][Qr("0x4c")](s,r)])})),n[Qr("0x37")][Qr("0x4a")]("formatBlock","convertInlineImageToBlock","chain",c),n[Qr("0x37")][Qr("0x4a")](Qr("0x6f"),Qr("0xd"),Qr("0x2c"),c)),t[Qr("0x1")][Qr("0x2b")](Qr("0x5a"))&&(n[Qr("0x24")](Qr("0x45"),((e,s)=>{const r=t[Qr("0x1")][Qr("0x5f")](Qr("0x3d"));let i=o[Qr("0x44")](t.model[Qr("0x46")][Qr("0x6e")]),x=r[Qr("0x72")](i);t[Qr("0x71")].change((()=>{if(x)return void n.markDeletion(t[Qr("0x71")][Qr("0x31")](x));const a=o[Qr("0x39")](i);e(s),i=o[Qr("0x44")](t[Qr("0x71")][Qr("0x46")][Qr("0x6e")]),x=r[Qr("0x72")](i),n[Qr("0xa")](t.model[Qr("0x31")](x),a?null:Qr("0x20"))}))})),n[Qr("0x37")][Qr("0x4a")]("insertion",Qr("0x20"),"chain",c)),t[Qr("0x1")][Qr("0x2b")](Qr("0x33"))){n[Qr("0x24")]("imageStyle",((s,r)=>{const i=t[Qr("0x1")][Qr("0x5f")](Qr("0x1c")).me,x=t[Qr("0x21")][Qr("0x5f")](Qr("0x3a"));let a=o[Qr("0x44")](t.model.document[Qr("0x6e")]),c=t[Qr("0x71")].createRangeOn(a),l=x[Qr("0x32")];if(l==r[Qr("0x32")])return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[Qr("0x71")][Qr("0x73")]((()=>{if(n[Qr("0x12")]()[Qr("0x79")]((t=>t[Qr("0x5e")]&&i==t[Qr("0x22")]&&(Qr("0x38")==t[Qr("0x62")]||Qr("0x9")==t.type)&&(Qr("0x56")==t[Qr("0x15")]||Qr("0x10")==t[Qr("0x15")])&&t[Qr("0x4e")]()[Qr("0x5")](c)))[Qr("0x23")]((t=>n.discardSuggestion(t[Qr("0x49")]))),a=o[Qr("0x44")](t.model.document[Qr("0x6e")]),c=t[Qr("0x71")][Qr("0x31")](a),x[Qr("0x3f")](),t[Qr("0x21")][Qr("0x5f")](Qr("0x1b"))[Qr("0x3f")](),t.commands[Qr("0x5f")](Qr("0x19"))[Qr("0x3f")](),l=x.value,l!=r[Qr("0x32")])return o.isInlineImage(a)&&x[Qr("0x17")](r.value,a)?(s(r),a=o.getClosestSelectedImageElement(t[Qr("0x71")][Qr("0x46")].selection),void n[Qr("0x60")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Qr("0x39")](a)?n[Qr("0x60")](a,d,[],Qr("0x10")):n[Qr("0x34")](c,d,Qr("0x10")))}))}));for(const e of t.plugins.get(Qr("0x33")).normalizedStyles)s[e[Qr("0x63")]]=e[Qr("0x6b")][Qr("0x29")]();n[Qr("0x37")].registerCustomCallback(Qr("0x38"),Qr("0x56"),Qr("0x26"),(()=>!1)),n[Qr("0x37")].registerCustomCallback(Qr("0x38"),"imageStylePostApply","join",(()=>!1)),n[Qr("0x37")][Qr("0x4a")]("formatInline","imageStylePostApply",Qr("0x26"),(()=>!1)),n[Qr("0x37")][Qr("0x4a")](Qr("0x38"),Qr("0x56"),"accept",(()=>!1)),n[Qr("0x37")].registerCustomCallback(Qr("0x38"),Qr("0x56"),Qr("0x1e"),((t,e)=>{n[Qr("0x37")][Qr("0x35")](Qr("0x38"),"",Qr("0x4f"))(t,{commandName:e[Qr("0x41")],commandParams:e.commandReversedParams})})),n[Qr("0x37")][Qr("0x4a")]("formatBlock",Qr("0x56"),Qr("0x2c"),c)}const x=[{type:"formatBlock",subType:Qr("0x56")},{type:Qr("0x6f"),subType:Qr("0x20")},{type:Qr("0x38"),subType:Qr("0xd")},{type:Qr("0x6f"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Qr("0x62")]==e&&t[Qr("0x15")]==n)),r=x[Qr("0x14")]((({type:t,subType:n})=>e.type==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[Qr("0x4e")](),a=e[Qr("0x4e")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Qr("0x43")](i,Qr("0x6f"))[Qr("0x79")]((({suggestion:t,meta:e})=>e[Qr("0x67")]&&Qr("0xd")==t[Qr("0x15")]));if(t.length>1&&a[Qr("0x2e")][Qr("0x5")](i.start))return!0;if(1==t[Qr("0x3e")]&&(i[Qr("0x16")][Qr("0x5")](a[Qr("0x2e")])||i.end[Qr("0x5")](a[Qr("0x16")])))return!0}if(3==s&&3==r&&i[Qr("0x16")][Qr("0x1a")](a[Qr("0x16")])){const t=i.end[Qr("0x51")],e=a[Qr("0x16")][Qr("0x25")];return o[Qr("0x39")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[Qr("0x46")][Qr("0x57")]((()=>{let e=!1;const s=Array[Qr("0x53")](t.model[Qr("0x46")][Qr("0x7")][Qr("0x66")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Qr("0x6")](t);if(Qr("0x4d")==s&&n[Qr("0x27")](a)){if("formatBlock"==i&&("imageStylePreApply"==x||"imageStylePostApply"==x)){const t=n[Qr("0x8")](a);if(r[Qr("0x54")]){const s=t[Qr("0x4e")]().getContainedElement();if(o[Qr("0x39")](s))continue;n[Qr("0x5c")](t),e=!0}}if("insertion"==i&&"imageCaption"==x&&!r.newRange){const t=n[Qr("0x8")](a);t[Qr("0x0")]&&t[Qr("0x0")][Qr("0x5e")]&&(n[Qr("0x5c")](t.next),e=!0)}}}return e})),t[Qr("0x1")][Qr("0x2b")]("ImageResize")&&n[Qr("0x24")](Qr("0xf"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Qr("0x71")][Qr("0x46")][Qr("0x6e")]);r[Qr("0x74")](Qr("0x13"))!=s[Qr("0x13")]&&t[Qr("0x71")][Qr("0x73")]((()=>{n[Qr("0x60")](r,{commandName:Qr("0xf"),commandParams:[s]})}))})),t[Qr("0x1")].has(Qr("0x70"))&&n[Qr("0x24")](Qr("0x6a"),((e,s)=>{const r=o[Qr("0x44")](t[Qr("0x71")].document[Qr("0x6e")]);(r[Qr("0x6c")](Qr("0x68"))?r[Qr("0x74")](Qr("0x68")):"")!=s.newValue&&t.model[Qr("0x73")]((()=>{n[Qr("0x60")](r,{commandName:Qr("0x6a"),commandParams:[s]})}))})),n[Qr("0x30")][Qr("0x64")]((t=>{if(x[Qr("0x78")]((({type:e,subType:n})=>t[Qr("0x62")]==e&&t[Qr("0x15")]==n)))return t[Qr("0x61")]?{}:void 0})),n._descriptionFactory[Qr("0x64")]((t=>{if(Qr("0x6f")==t[Qr("0x62")]||"deletion"==t[Qr("0x62")]){const e=t[Qr("0x1f")]();if(e&&e.is(Qr("0x28"),Qr("0x77")))return{type:"insertion"==t[Qr("0x62")]?Qr("0x3b"):Qr("0x4"),element:e,quantity:1}}})),n[Qr("0x30")][Qr("0x64")]((t=>Qr("0x38")==t[Qr("0x62")]&&Qr("0xd")==t[Qr("0x15")]?{type:"format",content:Qr("0x18")}:Qr("0x38")==t[Qr("0x62")]&&"convertBlockImageToInline"==t.subType?{type:Qr("0x76"),content:"Block image to inline image"}:void 0)),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Qr("0x3a")==e[Qr("0x41")]){const t=e[Qr("0x59")][0][Qr("0x32")];return n=Qr("0xe")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Qr("0x76"),content:Yo(r,Qr("0x52"),n)}}if("imageTextAlternative"==e[Qr("0x41")]){const t=e[Qr("0x59")][0][Qr("0x50")];return t?{type:Qr("0x76"),content:Yo(r,Qr("0x11"),'"'+t+'"')}:{type:Qr("0x76"),content:Yo(r,Qr("0x1d"))}}if(Qr("0xf")==e[Qr("0x41")]){const t=e.commandParams[0].width;return t?{type:Qr("0x76"),content:Yo(r,"*Set image width:* %0",t)}:{type:Qr("0x76"),content:Yo(r,Qr("0x69"))}}}var n}))}}const Zr=["ImageEditing","TrackChangesEditing","accept","change","commandParams","afterInit","handleSuggestionDescription","formatBlock","getSelectedElement","editor","Users","enableCommand","_suggestionFactory","src","plugins","author","_descriptionFactory","source","registerCustomCallback","model","getSuggestionCallback","get","commandName","getAttribute","format","discard","document","handleReplaceImageCommand","markBlockFormat","registerDescriptionCallback","replaceImageSource"];var Yr,ti;Yr=Zr,ti=241,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0xc")](){if(!this.editor[ei("0x15")].has(ei("0x7")))return;const t=this[ei("0x10")].plugins[ei("0x1c")](ei("0x8"));t[ei("0x12")](ei("0x6"),((t,e)=>this[ei("0x3")](t,e))),t[ei("0x13")][ei("0x19")](ei("0xe"),"replaceImageSource",ei("0x9"),t[ei("0x13")][ei("0x1b")]("formatBlock",null,ei("0x1"))),t[ei("0x13")][ei("0x19")](ei("0xe"),ei("0x6"),"discard",t[ei("0x13")].getSuggestionCallback(ei("0xe"),null,ei("0x9"))),t[ei("0x17")][ei("0x5")]((t=>this[ei("0xd")](t)))}[ei("0x3")](t,e){const n=this[ei("0x10")][ei("0x15")].get(ei("0x8")),o=this.editor[ei("0x1a")][ei("0x2")].selection[ei("0xf")]();this[ei("0x10")][ei("0x1a")][ei("0xa")]((()=>{let s=o[ei("0x1e")](ei("0x14"));const r=this[ei("0x10")][ei("0x15")][ei("0x1c")](ei("0x11")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t.getContainedElement();if("replaceImageSource"===t.subType&&e===o){t[ei("0x16")]!==r&&t[ei("0x1")](),s=t.data[ei("0xb")][0][ei("0x18")];break}}t(e),n[ei("0x4")](o,{commandName:ei("0x6"),commandParams:[{source:s}]},[],ei("0x6"))}))}[ei("0xd")](t){const{data:e}=t;if(e&&ei("0x6")===e[ei("0x1d")]){const t="*Format:* replace image URL";return{type:ei("0x0"),content:Yo(this[ei("0x10")].locale,t)}}}}const oi=["bind","high","_setSuggestionData","commands","TrackChangesEditing","_handleImportedData","trackChanges","editor","lowest","dataInsert","importWord","_trackChangesExecuted","collaboration_features","enableCommand","afterInit","listenTo","get","execute","plugins","_trackChangesValueDuringImport","Users"];var si,ri;si=oi,ri=318,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x10")]=!1,this._trackChangesExecuted=!1}[ii("0xb")](){const t=this.editor,e=t.commands.get(ii("0x7")),n=t[ii("0x0")][ii("0xd")](ii("0x3"));e&&(e.on("execute",((t,[,e])=>{this[ii("0x10")]=n.value,e[ii("0x9")].track_changes=!this[ii("0x10")]}),{priority:ii("0x13")}),this[ii("0xc")](e,ii("0x6"),this[ii("0x2")][ii("0x12")](this)),this[ii("0xc")](e,ii("0x6"),(()=>{this._trackChangesExecuted&&(n[ii("0xe")](),this[ii("0x8")]=!1)}),{priority:ii("0x5")}),t[ii("0xf")][ii("0xd")]("TrackChangesEditing")[ii("0xa")](ii("0x7")))}[ii("0x2")](t,e){const{suggestions:n}=e,o=this[ii("0x4")][ii("0x0")][ii("0xd")](ii("0x3")),s=o.value;this[ii("0x10")]!==s&&(o[ii("0xe")](),this[ii("0x8")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x4")][ii("0xf")].get(ii("0x11")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x7")}}};this[ii("0x4")][ii("0xf")].get(ii("0x1"))[ii("0x14")](s)}))}}const ai=["model","IndentEditing","*Indent:* %0","format","document","IndentBlock","get","schema","plugins","_descriptionFactory","getItemLabel","outdent","indent","blockIndent","getSelectedBlocks","has","registerDescriptionCallback","indentBlock","*Outdent:* %0","markBlockFormat","commandName","selection","outdentBlock","filter","locale","enableCommand","editor","TrackChangesEditing"];var ci,li;ci=ai,li=460,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{afterInit(){const t=this[di("0xe")],e=t.plugins[di("0x16")](di("0xf"));t[di("0x18")][di("0x3")](di("0x11"))&&(e.enableCommand(di("0x0")),e[di("0xd")](di("0x1b")));const n=t[di("0xc")];if(t[di("0x18")][di("0x3")](di("0x15"))){for(const n of[di("0x5"),di("0xa")])e.enableCommand(n,(()=>{const o=Array.from(this.editor[di("0x10")][di("0x14")][di("0x9")][di("0x2")]())[di("0xb")]((t=>this[di("0xe")][di("0x10")][di("0x17")].checkAttribute(t,di("0x1"))));t[di("0x10")].change((()=>{for(const t of o)e[di("0x7")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e._descriptionFactory[di("0x4")]((t=>{const{data:o}=t;if(!o)return;if(di("0x5")!=o[di("0x8")]&&di("0xa")!=o.commandName)return;const s=t.getItems()[0],r=e[di("0x19")][di("0x1a")](s);return"indentBlock"==o[di("0x8")]?{type:di("0x13"),content:Yo(n,di("0x12"),r)}:di("0xa")==o[di("0x8")]?{type:di("0x13"),content:Yo(n,di("0x6"),r)}:void 0}))}}}var gi,mi,fi=["input","requires","get","enableCommand","editor","init","TrackChangesEditing"];gi=fi,mi=143,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("0x5")](){return[Vs.Input]}[hi("0x2")](){this[hi("0x1")].plugins[hi("0x6")](hi("0x3"))[hi("0x0")](hi("0x4"))}}const bi=["getFirstPosition","format","plugins","enableCommand","_descriptionFactory","commandParams","isCollapsed","editor","document","getRanges","markInlineFormat","hasAttribute","commandName","afterInit","LinkEditing","getAttribute","unlink","locale","from","has","model","selection","getFirstRange","link","linkHref","*Remove link*"];var Ei,_i;Ei=bi,_i=326,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x19")](){const t=this[Ti("0x13")];if(!t[Ti("0xe")][Ti("0x5")](Ti("0x0")))return;const e=t[Ti("0xe")].get("TrackChangesEditing");e[Ti("0xf")](Ti("0x9"),((n,o)=>{const s=t[Ti("0x6")][Ti("0x14")][Ti("0x7")];let r=[];if(s[Ti("0x12")]){if(!s[Ti("0x17")](Ti("0xa")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xc")](),Ti("0xa"),s[Ti("0x1")](Ti("0xa")),t[Ti("0x6")]);r=[e]}}else r=Array[Ti("0x4")](s[Ti("0x15")]());t[Ti("0x6")].change((()=>{for(const t of r)e[Ti("0x16")](t,{commandName:Ti("0x9"),commandParams:[o]})}))})),e.enableCommand(Ti("0x2"),(()=>{const n=this.editor[Ti("0x6")],o=n[Ti("0x14")][Ti("0x7")];n.change((()=>{let n=[];n=o[Ti("0x12")]?[(0,Vs.findAttributeRange)(o[Ti("0xc")](),"linkHref",o[Ti("0x1")](Ti("0xa")),t[Ti("0x6")])]:ms(Ti("0xa"),o[Ti("0x8")](),t.model);for(const t of n)e.markInlineFormat(t,{commandName:"unlink",commandParams:[]})}))})),e[Ti("0x10")].registerDescriptionCallback((e=>{const{data:n}=e,o=t[Ti("0x3")];if(n){if("link"==n[Ti("0x18")]){const t=n[Ti("0x11")][0];return{type:Ti("0xd"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x2")==n[Ti("0x18")]?{type:"format",content:Yo(o,Ti("0xb"))}:void 0}}))}}const yi=["document","getSelectedBlocks","indentList","push","markBlockFormat","registerElementLabel","*Uncheck item*","List","listIndent","parent","commands","bulletedList","enableCommand","filter","slice","plugins","element","ELEMENT_NUMBERED_LIST","checkChild","checkTodoList","execute","length","ELEMENT_BULLETED_LIST","todoListChecked","createPositionAt","createRange","ELEMENT_TODO_LIST","blockName","replace","todoList","outdentList","value","TodoListEditing","model","isObject","numberedList","*Indent:* %0","_selectedElements","getAttribute","from","nextSibling","format","*Change to:* %0","TrackChangesEditing","change","previousSibling","_descriptionFactory","listType","commandName","add","todo","listItem","numbered","afterInit","ListEditing","selection","forceValue","has","get","end","ELEMENT_LIST_ITEM","bulleted","schema"];var ki,Ai;ki=yi,Ai=468,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x1a")](){const t=this.editor,e=t.locale;if(!t[vi("0x33")][vi("0x1e")](vi("0x1b")))return;const n=t[vi("0x33")][vi("0x1f")](vi("0x10")),o=t[vi("0x33")][vi("0x1e")](vi("0x5"));function s(e){return()=>{const o=t.model.document[vi("0x1c")],s=t.commands[vi("0x1f")](e);if(s[vi("0x4")])return void t[vi("0x38")]("paragraph",{});const r=e[vi("0x32")](0,-4),i=function(t,e,n){let o=Array.from(t)[vi("0x31")]((t=>{return e=t,(o=n)[vi("0x36")](e[vi("0x2d")],vi("0x18"))&&!o[vi("0x7")](e);var e,o}));o=o[vi("0x31")]((t=>!t.is(vi("0x34"),"listItem")||t[vi("0xb")](vi("0x14"))!=e));const s=new Set;for(const t of o)t.is(vi("0x34"),vi("0x18"))?s.add(Si(t)):s[vi("0x16")](t);return Array[vi("0xc")](s)}(o[vi("0x25")](),r,t[vi("0x6")][vi("0x23")]);t[vi("0x6")][vi("0x11")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x4")]}],formatGroupId:vi("0x0")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0xc")](t);const n=e.findIndex((t=>"listItem"!=t.name));return n>-1&&(e=e[vi("0x32")](0,n)),e}(t.model[vi("0x24")][vi("0x1c")].getSelectedBlocks()),s=t[vi("0x6")][vi("0x3d")](t[vi("0x6")][vi("0x3c")](o[0],"before"),t[vi("0x6")][vi("0x3c")](o[o[vi("0x39")]-1],vi("0x20")));t[vi("0x6")].change((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x2c")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(vi("0x2c"))>n[vi("0xb")](vi("0x2c"));)e[vi("0x16")](t),t=t[vi("0xd")]}return Array.from(e)}(o))}))}}n[vi("0x30")]("numberedList",s(vi("0x8"))),n[vi("0x30")](vi("0x2f"),s("bulletedList")),o&&n.enableCommand(vi("0x2"),s(vi("0x2"))),n.enableCommand("indentList",r(vi("0x26"))),n.enableCommand("outdentList",r(vi("0x3"))),o&&n[vi("0x30")](vi("0x37"),(()=>{const e=t[vi("0x2e")].get("checkTodoList"),o=Array[vi("0xc")](e[vi("0xa")]);o[vi("0x31")]((t=>t[vi("0xb")](vi("0x3b"))!=e[vi("0x4")])),t[vi("0x6")][vi("0x11")]((()=>{for(const t of o)n[vi("0x28")](t,{commandName:vi("0x37"),commandParams:[{forceValue:!e[vi("0x4")]}]})}))})),n[vi("0x13")][vi("0x29")](vi("0x18"),(t=>Yo(e,vi("0x21"),t))),n[vi("0x13")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x8")==n[vi("0x15")]||"bulletedList"==n[vi("0x15")]||"todoList"==n[vi("0x15")])switch(n.commandName[vi("0x1")](vi("0x2b"),"")){case vi("0x22"):return o(Yo(e,vi("0x3a")));case vi("0x19"):return o(Yo(e,vi("0x35")));case vi("0x17"):return o(Yo(e,vi("0x3e")))}if(vi("0x26")==n[vi("0x15")])return{type:vi("0xe"),content:Yo(e,vi("0x9"),Yo(e,vi("0x21")))};if(vi("0x3")==n[vi("0x15")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x37")==n[vi("0x15")])return n.commandParams[0][vi("0x1d")]?{type:vi("0xe"),content:Yo(e,"*Check item*")}:{type:vi("0xe"),content:Yo(e,vi("0x2a"))}}function o(t){return{type:vi("0xe"),content:Yo(e,vi("0xf"),t)}}}))}}function Si(t){const e=t.getAttribute("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x12")].is(vi("0x34"),vi("0x18"));){const o=t[vi("0x12")].getAttribute("listIndent");if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x12")]}return n}function Ii(t){const e=[];if(t.is(vi("0x34"),vi("0x18"))&&t[vi("0xb")](vi("0x2c"))>0){let n=t[vi("0xd")];for(;n&&vi("0x18")==n.name&&n[vi("0xb")]("listIndent")==t.getAttribute(vi("0x2c"));)e[vi("0x27")](n),n=n[vi("0xd")]}return e}const Li=["config","*Format:* set order to reversed","createPositionAt","listStyle","ListPropertiesEditing","_getTranslationKeyForListStyle","listType","listReversed","filter","_getSuggestionBlocks","*Format:* set order to regular","markMultiRangeBlockFormat","type","getFirstPosition","startIndex","backward","listItem","format","listStart","commandParams","handleListStyleCommand","length","toUpperCase","afterInit","from","change","commandName","styles","getAttribute","getSiblingNodes","_LIST_","get","enableCommand","model","createRange","ELEMENT_","element","replace","handleDescriptions","locale","document","before","handleListStartCommand","reversed","_getSuggestionBlocksForListStyle","selection","ListUtils","TrackChangesEditing","map","forward","bind","numbered","*Format:* set start index to %0","getSelectedBlocks","handleListReversedCommand","plugins","editor","getLastPosition"];var Ni,Mi;Ni=Li,Mi=220,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x23")](){if(!this[wi("0xa")][wi("0x9")].has(wi("0x10")))return;const t=this.editor[wi("0xc")][wi("0x2b")]("list.properties"),e=this[wi("0xa")].plugins[wi("0x2b")](wi("0x1"));t[wi("0x27")]&&e[wi("0x2c")](wi("0xf"),this[wi("0x20")][wi("0x4")](this)),t[wi("0x37")]&&e[wi("0x2c")](wi("0x13"),this[wi("0x8")][wi("0x4")](this)),t[wi("0x1a")]&&e[wi("0x2c")](wi("0x1e"),this[wi("0x36")][wi("0x4")](this)),e._descriptionFactory.registerDescriptionCallback(this[wi("0x32")][wi("0x4")](this))}handleListStyleCommand(t,e={}){const n=this.editor[wi("0x9")][wi("0x2b")]("TrackChangesEditing"),o=this[wi("0x38")]();this[wi("0xa")].model[wi("0x25")]((()=>{n[wi("0x17")](o,{commandName:wi("0xf"),commandParams:[{type:e[wi("0x18")]}],formatGroupId:wi("0xf")})}))}[wi("0x8")](t,e={}){const n=this[wi("0xa")][wi("0x9")].get(wi("0x1")),o=this[wi("0x15")]((t=>t.is("element",wi("0x1c"))&&"numbered"===t[wi("0x28")](wi("0x12"))));if(o[wi("0x21")]<1)return;const s=o.map((t=>this[wi("0xa")][wi("0x2d")].createRange(this[wi("0xa")][wi("0x2d")][wi("0xe")](t,wi("0x35")),this[wi("0xa")][wi("0x2d")].createPositionAt(t,0))));this[wi("0xa")][wi("0x2d")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[wi("0x36")](t,e={}){const n=this[wi("0xa")].plugins[wi("0x2b")](wi("0x1")),o=this[wi("0x15")]((t=>t.is(wi("0x30"),wi("0x1c"))&&wi("0x5")===t.getAttribute(wi("0x12"))));if(o[wi("0x21")]<1)return;const s=o[wi("0x2")]((t=>this.editor.model[wi("0x2e")](this[wi("0xa")].model[wi("0xe")](t,"before"),this[wi("0xa")][wi("0x2d")][wi("0xe")](t,0))));this[wi("0xa")][wi("0x2d")][wi("0x25")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x1e"),commandParams:[{startIndex:e[wi("0x1a")]}],formatGroupId:wi("0x1e")})}))}[wi("0x32")](t){const e=this[wi("0xa")][wi("0x33")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x26")]){case wi("0xf"):o="*Change to:* %0",s={type:wi("0x1d"),content:Yo(e,o,Yo(e,this[wi("0x11")](n[wi("0x1f")][0].type)))};break;case wi("0x13"):o=n[wi("0x1f")][0][wi("0x37")]?wi("0xd"):wi("0x16"),s={type:"format",content:Yo(e,o)};break;case wi("0x1e"):o=wi("0x6"),s={type:wi("0x1d"),content:Yo(e,o,n[wi("0x1f")][0][wi("0x1a")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[wi("0xa")][wi("0x9")][wi("0x2b")](wi("0x0"));let r=Array[wi("0x24")](this[wi("0xa")][wi("0x2d")][wi("0x34")][wi("0x39")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x30"),wi("0x1c")))&&r.unshift(...s.getSiblingNodes(this.editor[wi("0x2d")][wi("0x34")].selection[wi("0x19")](),wi("0x1b"))),(null===(e=r[r[wi("0x21")]-1])||void 0===e?void 0:e.is(wi("0x30"),wi("0x1c")))&&r.push(...s[wi("0x29")](this[wi("0xa")].model[wi("0x34")][wi("0x39")][wi("0xb")](),wi("0x3"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0xa")].model[wi("0x34")].selection.getFirstPosition())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(wi("0x30"),wi("0x1c")))&&(r=r[wi("0x14")]((t=>t.is(wi("0x30"),"listItem")))),r}_getSuggestionBlocks(t){const e=this.editor[wi("0x9")][wi("0x2b")]("ListUtils");let n=Array.from(this[wi("0xa")][wi("0x2d")][wi("0x34")][wi("0x39")][wi("0x7")]()).filter(t)[wi("0x2")]((t=>{const n=this[wi("0xa")].model[wi("0xe")](t,0);return[...e[wi("0x29")](n,"backward"),...e[wi("0x29")](n,"forward")]})).flat();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0x2f")+this.editor[wi("0x9")][wi("0x2b")](wi("0x0")).getListTypeFromListStyleType(t)[wi("0x22")]()+wi("0x2a")+t.toUpperCase()[wi("0x31")](/-/g,"_")}}const Fi=["media","downcastDispatcher","showSuggestionHighlights","elementToElement","MediaEmbedEditing","has","locale","TrackChangesEditing","get","data","_descriptionFactory","attribute:url:media","enableCommand","registerElementLabel","afterInit","ELEMENT_MEDIA","dataDowncast","plugins","for","editor","high","div","stop"];var Pi,Di;Pi=Fi,Di=308,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x5")](){const t=this[Bi("0xa")];if(!t[Bi("0x8")][Bi("0x13")](Bi("0x12")))return;const e=t[Bi("0x8")][Bi("0x16")](Bi("0x15")),n=t[Bi("0x14")];e[Bi("0x3")]("mediaEmbed"),e[Bi("0x1")][Bi("0x4")](Bi("0xe"),(t=>Yo(n,Bi("0x6"),t))),t.conversion[Bi("0x9")](Bi("0x7"))[Bi("0x11")]({model:Bi("0xe"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x10")])return e.createEmptyElement(Bi("0xc"))},converterPriority:"high"}),t[Bi("0x0")][Bi("0xf")].on(Bi("0x2"),((t,e,n)=>{n.options[Bi("0x10")]&&t[Bi("0xd")]()}),{priority:Bi("0xb")})}}const Ui=["MentionEditing","TrackChangesEditing","plugins","enableCommand","has","afterInit","mention"];var Gi,Hi;Gi=Ui,Hi=127,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x4")](){const t=this.editor;t.plugins[zi("0x3")](zi("0x6"))&&t[zi("0x1")].get(zi("0x0"))[zi("0x2")](zi("0x5"))}}const Vi=["editor","get","TrackChangesEditing","enableCommand","PageBreakEditing","pageBreak","plugins","registerElementLabel","_descriptionFactory","afterInit"];var Ki,Xi;Ki=Vi,Xi=498,function(t){for(;--t;)Ki.push(Ki.shift())}(++Xi);const qi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[qi("0x1")](){const t=this[qi("0x2")];if(!t[qi("0x8")].has(qi("0x6")))return;t[qi("0x8")][qi("0x3")]("TrackChangesEditing")[qi("0x5")](qi("0x7"));const e=t.plugins[qi("0x3")](qi("0x4")),n=t.locale;e[qi("0x0")][qi("0x9")](qi("0x7"),(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Qi=["paragraph","isTouching","editing","insertion","checkChild","editor","start","insert","registerDescriptionCallback","highest","type","options","model","parent","enableCommand","createUIElement","downcastDispatcher","span","Paragraph","addMarker:suggestion:insertion","getFirstRange","nodeAfter","addClass","filter","writer","markerName","format","schema","getItemLabel","change","consumable","data","mapper","insertParagraph","plugins","TrackChangesEditing","markerRange","isLimit","ck-suggestion-marker-split","afterInit","registerElementLabel","toViewPosition","isBlock","name","get","locale","$text","getSelectedBlocks","ELEMENT_PARAGRAPH","_descriptionFactory","bindElementToMarker","*Insert:* %0","activeMarkers","selection","includes"];var Ji,Zi;Ji=Qi,Zi=342,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{[Yi("0x1b")](){const t=this[Yi("0x30")];if(!t.plugins.has(Yi("0x6")))return;const e=t[Yi("0x21")],n=t[Yi("0x16")][Yi("0x20")](Yi("0x17"));n[Yi("0x25")][Yi("0x1c")](Yi("0x2b"),(t=>Yo(e,Yi("0x24"),t))),n[Yi("0x2")](Yi("0x2b"),((e,o={})=>{const s=t[Yi("0x0")].document,r=o.selection||s[Yi("0x29")],i=Array.from(r[Yi("0x23")]())[Yi("0xb")]((t=>{return e=t,(n=this.editor[Yi("0x0")].schema)[Yi("0x2f")](e[Yi("0x1")],"paragraph")&&!n.isObject(e)&&Yi("0x2b")!=e[Yi("0x1f")];var e,n}));t.model[Yi("0x11")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x2b"),commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0x25")][Yi("0x33")]((t=>{const{data:n}=t;if(n&&Yi("0x2b")==n.commandName)return{type:Yi("0xe"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x24")))}})),n[Yi("0x2")](Yi("0x15")),t[Yi("0x2d")][Yi("0x4")].on("addMarker:suggestion:insertion",ex(t),{priority:Yi("0x34")}),t[Yi("0x13")].downcastDispatcher.on(Yi("0x7"),((e,n,o)=>{o[Yi("0x36")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x25")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Yi("0x35")])return;const{start:s,end:r}=n[Yi("0x8")]();if(!s[Yi("0x2c")](r)||!s[Yi("0x9")])return;const i=t[Yi("0x0")][Yi("0xf")],x=s.nodeAfter;return i[Yi("0x1e")](x)&&!i.isLimit(x)&&i[Yi("0x2f")](x,Yi("0x22"))?{type:Yi("0x2e"),content:Yo(e,Yi("0x27"),o[Yi("0x10")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0x20")](Yi("0x17")),i=o[Yi("0x18")][Yi("0x31")],x=o.markerRange.end,a=t[Yi("0x0")].schema;if(!i[Yi("0x2c")](x)||!i[Yi("0x9")])return;const c=i.nodeAfter;if(a[Yi("0x1e")](c)&&!a[Yi("0x19")](c)&&a[Yi("0x2f")](c,"$text")){if(!s[Yi("0x12")].consume(o[Yi("0x18")],n[Yi("0x1f")]))return;const t=s.writer[Yi("0x3")](Yi("0x5"),{class:Yi("0x1a")}),i=s[Yi("0x14")][Yi("0x1d")](x);e&&r[Yi("0x28")][Yi("0x2a")](o[Yi("0xd")])&&s[Yi("0xc")][Yi("0xa")]("ck-suggestion-marker--active",t),s[Yi("0xc")][Yi("0x32")](i,t),s[Yi("0x14")][Yi("0x26")](t,o[Yi("0xd")])}}}const nx=["getItems","afterInit","enableCommand","getAttributeProperties","isCollapsed","isFormatting","registerDescriptionCallback","schema","editor","*Remove all formatting*","plugins","removeFormat","createRangeOn","markInlineFormat","change","format","get","TrackChangesEditing","document","selection","model"];var ox,sx;ox=nx,sx=275,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x14")](){const t=this[rx("0x6")];if(!t[rx("0x8")].has("RemoveFormatEditing"))return;const e=t[rx("0x8")][rx("0xe")](rx("0xf"));e[rx("0x0")]("removeFormat",(n=>{const o=t[rx("0x12")][rx("0x10")][rx("0x11")];o[rx("0x2")]?n():t[rx("0x12")][rx("0xc")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o[rx("0x13")]())xx(n,t.model[rx("0x5")])&&e[rx("0xb")](t.model[rx("0xa")](n),{commandName:"removeFormat",commandParams:[]})}))})),e._descriptionFactory[rx("0x4")]((e=>{const{data:n}=e;if(n&&rx("0x9")==n.commandName)return{type:rx("0xd"),content:Yo(t.locale,rx("0x7"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0x1")](n);if(t&&t[rx("0x3")])return!0}return!1}const ax=["get","enableCommand","TrackChangesEditing","RestrictedEditingModeEditing","acceptAllSuggestions","discardAllSuggestions","afterInit","acceptSuggestion","plugins","goToNextRestrictedEditingException","acceptSelectedSuggestions","discardSelectedSuggestions","trackChanges","discardSuggestion"];var cx,lx;cx=ax,lx=152,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x8")](){const t=this.editor;if(!t[dx("0xa")].has(dx("0x5")))return;const e=t.plugins[dx("0x2")](dx("0x4"));e[dx("0x3")]("goToPreviousRestrictedEditingException"),e[dx("0x3")](dx("0xb"));const n=t[dx("0xa")][dx("0x2")]("RestrictedEditingModeEditing");n[dx("0x3")](dx("0x0")),n.enableCommand(dx("0x9")),n[dx("0x3")](dx("0x1")),n.enableCommand(dx("0x6")),n[dx("0x3")](dx("0x7")),n.enableCommand(dx("0xc")),n[dx("0x3")](dx("0xd"))}}const gx=["data","registerElementLabel","addClass","addMarker:suggestion:deletion","bindElementToMarker","deletion","_descriptionFactory","init","split","addMarker:suggestion:insertion","high","plugins","ck-suggestion-marker--active","createPositionBefore","mapper","TrackChangesEditing","span","shiftEnter","get","markerRange","editing","ck-suggestion-marker-","writer","insert","ELEMENT_LINE_BREAK","merge","markerName","downcastDispatcher","softBreak","name","showSuggestionHighlights","toViewPosition"];var mx,fx;mx=gx,fx=482,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]}[hx("0x5")](){const t=this.editor,e=t[hx("0x9")][hx("0x10")](hx("0xd"));e.enableCommand(hx("0xf")),t.editing[hx("0x19")].on(hx("0x7"),bx(t),{priority:"high"}),t[hx("0x12")][hx("0x19")].on(hx("0x1"),bx(t),{priority:hx("0x8")}),t[hx("0x1e")][hx("0x19")].on("addMarker:suggestion",((e,n,o)=>{o.options[hx("0x1c")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x4")][hx("0x1f")](hx("0x1a"),(e=>Yo(t.locale,hx("0x16"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x10")]("TrackChangesEditing");if(!s.consumable.test(o.markerRange,n[hx("0x1b")]))return;const i=t.model;for(const t of o[hx("0x11")].getItems()){if(!t.is("element",hx("0x1a")))continue;const n=hx("0x3")==o.markerName.split(":")[1]?hx("0x17"):hx("0x6"),x=s[hx("0x14")].createUIElement(hx("0xe"),{class:hx("0x13")+n}),a=s.mapper[hx("0x1d")](i[hx("0xb")](t));e&&r.activeMarkers.includes(o.markerName)&&s.writer[hx("0x0")](hx("0xa"),x),s[hx("0x14")][hx("0x15")](a,x),s[hx("0xc")][hx("0x2")](x,o[hx("0x18")])}}}const Ex=["plugins","afterInit","TrackChangesEditing","markInlineFormat","editor","model","value","FORMAT_RESTRICTED_DISABLED","commandParams","forceValue","FORMAT_RESTRICTED_ENABLED","document","from","selection","format","enableCommand","change","commands","isCollapsed","StandardEditingModeEditing","registerDescriptionCallback","has","restrictedEditingException","_descriptionFactory"];var _x,Tx;_x=Ex,Tx=449,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x8")](){const t=this[Cx("0xb")],e=t[Cx("0xc")],n=t.locale;if(!t[Cx("0x7")][Cx("0x4")](Cx("0x2")))return;const o=t[Cx("0x7")].get(Cx("0x9")),s=Cx("0x5"),r=t[Cx("0x0")].get(s);o[Cx("0x16")](s,((t,n={})=>{const i=e[Cx("0x12")][Cx("0x14")];if(i[Cx("0x1")])return void t(n);const x=void 0!==n[Cx("0x10")]?n[Cx("0x10")]:!r[Cx("0xd")];e[Cx("0x17")]((()=>{const t=Array[Cx("0x13")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0xa")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x6")][Cx("0x3")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Cx("0xf")][0][Cx("0x10")]?{type:Cx("0x15"),content:Yo(n,Cx("0x11"))}:{type:"format",content:Yo(n,Cx("0xe"))}}))}}const kx=["getItems","enableCommand","selection","TrackChangesEditing","change","markInlineFormat","_getRangesWithClasses","value","inline","includes","getRanges","every","config","StyleUtils","modelElements","createRangeOn","plugins","registerDescriptionCallback","toLowerCase","getSelectedBlocks","style.definitions","format","isBlock","commands","style:","push","normalizeConfig","editor","getDefinitionsForView","from","*Format:* %0","find","styleName","commandParams","_getStyleDefinition","document","markBlockFormat","getAncestors","has","forceValue","name","style","Style","getAttribute","add","locale","isCollapsed","afterInit","model","get"];var Ax,vx;Ax=kx,vx=176,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x15")](){const t=this[Rx("0x1")];if(!t[Rx("0x28")][Rx("0xc")](Rx("0x10")))return;const e=t[Rx("0x2f")][Rx("0x17")](Rx("0xf")),n=t.plugins.get(Rx("0x1b")),o=t[Rx("0x13")],s=t.plugins.get("DataSchema"),r=t[Rx("0x28")][Rx("0x17")](Rx("0x25"))[Rx("0x0")](s,t[Rx("0x24")][Rx("0x17")](Rx("0x2c")));n[Rx("0x19")](Rx("0xf"),((o,{styleName:i})=>{const x=t[Rx("0x16")][Rx("0x9")][Rx("0x1a")],a=this[Rx("0x8")](i,r);if(!a)return;if(!e.enabledStyles[Rx("0x21")](i))return;if(x[Rx("0x14")]&&!a[Rx("0x2e")])return void o({styleName:i});const c=!e[Rx("0x1f")].includes(a[Rx("0xe")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0xb")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n[Rx("0x12")](o);break}}return n}(x[Rx("0x2b")](),a[Rx("0x26")]);t[Rx("0x16")].change((()=>{for(const t of e)n[Rx("0xa")](t,{commandName:Rx("0xf"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x30")+i})}))}else{let e=Array[Rx("0x3")](x[Rx("0x22")]());if(!c){const n=Array[Rx("0x3")](s[Rx("0x2")](a.element,!1))[0][Rx("0x16")],o=[];for(const s of e){const e=this[Rx("0x1e")](t[Rx("0x16")],s,a.classes,n);o[Rx("0x31")](...e)}e=o}t[Rx("0x16")][Rx("0x1c")]((()=>{for(const t of e)n[Rx("0x1d")](t,{commandName:Rx("0xf"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[Rx("0x29")]((t=>{const{data:e}=t;if(e&&Rx("0xf")===e.commandName)return e[Rx("0x7")][0][Rx("0xd")]?{type:"format",content:Yo(o,Rx("0x4"),e[Rx("0x7")][0].styleName[Rx("0x2a")]())}:{type:Rx("0x2d"),content:Yo(o,"*Remove format:* %0",e[Rx("0x7")][0][Rx("0x6")][Rx("0x2a")]())}}))}[Rx("0x8")](t,e){let n=e.block[Rx("0x5")]((e=>e[Rx("0xe")]===t));return n||(n=e[Rx("0x20")].find((e=>e[Rx("0xe")]===t))),n}[Rx("0x1e")](t,e,n,o){const s=[];for(const r of e[Rx("0x18")]()){const e=r[Rx("0x11")](o);e&&n[Rx("0x23")]((t=>e.classes[Rx("0x21")](t)))&&s[Rx("0x31")](t[Rx("0x27")](r))}return s}}const Ix=["substr","toLowerCase","document","differ","deletion","filter","rootName","left","minRow","isArray","map","enqueueChange","markMultiRangeDeletion","getItems","tableCell","createRangeOn","ELEMENT_TABLE_WITH_TEXT","registerDescriptionCallback","ELEMENT_TABLE_ROW","ELEMENT_TABLE_COLUMN","low","nodeAfter","tableColumn","selectTableColumn","length","removeClass","type","showSuggestionHighlights","createRangeIn","getFirstRange","options","start","getContainedElement","MIN_SAFE_INTEGER","isIntersectingWithRange","getSelectionAffectedTableCells","table","forceValue","insert","mapper","data","ELEMENT_TABLE","createTableWalker","getChanges","execute","selection","includes","fromRange","classes","*Insert:* %0","_suggestionFactory","_acceptFormatSuggestionCallbackFactory","$textProxy","position","change","isTouching","insertTableColumnLeft","createPositionAt","ELEMENT_TABLE_ROW_WITH_TEXT","maxRow","min","item","writer","push","downcastDispatcher","TableEditing","registerCustomCallback","_setupColumnsRowsFixing","get","values","removeTableRow","last","rowspan","getChildren","setSelection","startsWith","_splitMarkerName","tablePaste","commands","from","locale","max","hasAttribute","root","markMultiRangeInsertion","batch","TableUtils","registerElementLabel","nodeBefore","suggestion","some","span","element","order","end","colspan","_descriptionFactory","getRanges","*Remove:* %0","plugins","cell","insertTableRowAbove","has","highest","removeTableColumn","enableCommand","editor","model","toViewElement","name","discard","above","getAttribute","detach","ELEMENT_TABLE_COLUMN_WITH_TEXT","tableRow","getSuggestion","insertTableRowBelow","accept","join","change:data","insertion","addMarker:suggestion","findAncestor","subType","_tablePostFixingSubtypes","getCellLocation","TrackChangesEditing","minColumn","first","isEqual","refresh","getColumnIndexes","$graveyard","_tableSuggestions","_getSuggestionCoords","insertTable","addClass","_getCoordsForCells","addRange"];var Lx,Nx;Lx=Ix,Nx=344,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("0x3d")]=[Mx("0x33"),"tableColumn"],this[Mx("0x46")]=new Set}afterInit(){const t=this[Mx("0x2a")],e=t.model[Mx("0x4e")][Mx("0x79")];if(!t[Mx("0x23")][Mx("0x26")](Mx("0x1")))return;const n=t[Mx("0x10")],o=t.plugins.get(Mx("0x3f")),s=t[Mx("0x23")].get(Mx("0x16"));o[Mx("0x20")][Mx("0x17")]("table",(t=>Yo(n,Mx("0x75"),t))),this._setupColumnsRowsFixing(),o[Mx("0x29")](Mx("0x48")),o.enableCommand("selectTableRow"),o[Mx("0x29")](Mx("0x63"));for(const n of[Mx("0x25"),Mx("0x35")]){const r=t[Mx("0xe")][Mx("0x4")](n);o[Mx("0x29")](n,(n=>{t.model[Mx("0x82")]((t=>{n();const i=Mx("0x2f")===r[Mx("0x1d")],x=s[Mx("0x6f")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x41")]-1:a[Mx("0x7")]+1,l=x[0].findAncestor("table"),d=s[Mx("0x76")](l,{startRow:c,endRow:c}),u=Array[Mx("0xf")](d)[Mx("0x56")]((e=>t[Mx("0x5b")](e[Mx("0x24")])));o.markMultiRangeInsertion(u,Mx("0x33"))}))}))}for(const n of[Mx("0x84"),"insertTableColumnRight"]){const r=t[Mx("0xe")][Mx("0x4")](n);o.enableCommand(n,(n=>{t.model.change((t=>{n();const i=Mx("0x53")===r.order,x=s.getSelectionAffectedTableCells(e),a=s.getColumnIndexes(x),c=i?a[Mx("0x41")]-1:a.last+1,l=x[0][Mx("0x3b")]("table"),d=s[Mx("0x76")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0xf")](d)[Mx("0x56")]((e=>t[Mx("0x5b")](e.cell)));o[Mx("0x14")](u,Mx("0x62"))}))}))}for(const n of[Mx("0x6"),Mx("0x28")]){const r=n[Mx("0x4c")](11),i=r[Mx("0x4d")](),x=i[Mx("0x4c")](0,3)+Mx("0x1b"),a=Mx("0x70")+r,c="min"+r,l=Mx("0x11")+r;o[Mx("0x29")](n,(()=>{t[Mx("0x2b")].change((t=>{const r=s[Mx("0x6f")](e),d=r[0].findAncestor(Mx("0x70"));let u;if("removeTableRow"==n){const t=s.getRowIndexes(r);u={startRow:t.first,endRow:t[Mx("0x7")],includeAllSlots:!0}}else{const t=s[Mx("0x44")](r);u={startColumn:t.first,endColumn:t.last,includeAllSlots:!0}}const g=s[Mx("0x76")](d,u),m=Array[Mx("0xf")](g)[Mx("0x56")]((({cell:t})=>t)),f=Ox(m[Mx("0x51")]((t=>t[Mx("0x12")](x)))),h=Ox(m[Mx("0x51")]((t=>!t.hasAttribute(x)))).map((e=>t.createRangeOn(e))),p=o[Mx("0x58")](h,a);if(p&&(Mx("0x33")==p.subType||Mx("0x62")==p.subType)){const e=this[Mx("0x47")](p);for(const n of f){const o=t[Mx("0x5b")](n),r=s[Mx("0x3e")](n),a=n[Mx("0x30")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x4b")](o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x21")]())[Mx("0x56")]((t=>i.LiveRange[Mx("0x7b")](t)));t.model[Mx("0x82")]((e=>{const s=e[Mx("0x15")];n=n.filter((t=>Mx("0x45")!=t[Mx("0x13")][Mx("0x52")])),e[Mx("0xa")](n),t[Mx("0xe")][Mx("0x4")](Mx("0x6"))[Mx("0x43")](),t[Mx("0x78")](Mx("0x6"),{forceDefaultExecution:!0}),t[Mx("0x2b")][Mx("0x57")]((()=>{t.model.enqueueChange(s,(t=>{const e=o.filter((t=>Mx("0x45")!=t[Mx("0x13")].rootName));e[Mx("0x64")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x31")]()}))}))}))}function a(n){t.model[Mx("0x82")]((o=>{const s=Array[Mx("0xf")](e[Mx("0x21")]())[Mx("0x56")]((t=>i.LiveRange[Mx("0x7b")](t))),r=[];for(const t of n)for(const e of t[Mx("0x59")]({shallow:!0}))r[Mx("0x8b")](e);for(const e of r)Mx("0x45")!=e[Mx("0x13")][Mx("0x52")]&&(o[Mx("0xa")](o[Mx("0x85")](e,0)),t.commands[Mx("0x4")](Mx("0x28")).refresh(),t[Mx("0x78")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s.filter((t=>Mx("0x45")!=t[Mx("0x13")].rootName));x[Mx("0x64")]>0&&o[Mx("0xa")](x);for(const t of s)t[Mx("0x31")]()}))}function c(t,e){return e.every((e=>t[Mx("0x1a")]((t=>t[Mx("0x1e")][Mx("0x42")](e[Mx("0x6b")])||e[Mx("0x1e")][Mx("0x42")](t[Mx("0x6b")])))))}function l(t,e){return t[Mx("0x1a")]((t=>e[Mx("0x1a")]((e=>t[Mx("0x1e")][Mx("0x83")](e[Mx("0x6b")])))))}t[Mx("0x74")][Mx("0x0")].on(Mx("0x3a"),((t,e,n)=>{if(!n[Mx("0x6a")][Mx("0x67")])return;const o=e[Mx("0x89")];if(!o)return;const s=n[Mx("0x73")][Mx("0x2c")](o);function r(t){return Array[Mx("0x55")](t)?t:[t]}s&&Mx("0x5a")===o[Mx("0x2d")]&&(0,x.setHighlightHandling)(s,n[Mx("0x8a")],((t,e,n)=>n[Mx("0x49")](r(e.classes),t)),((t,e,n)=>n[Mx("0x65")](r(e[Mx("0x7c")]),t)))}),{priority:Mx("0x27")}),o[Mx("0x20")][Mx("0x5d")]((t=>{if(Mx("0x39")!=t[Mx("0x66")]&&Mx("0x50")!=t[Mx("0x66")])return;const e=t[Mx("0x6c")]();if(null!=e&&e.is(Mx("0x1c"),Mx("0x70"))){if(Mx("0x39")==t[Mx("0x66")]){const e=t[Mx("0x59")]()[Mx("0x51")]((t=>t.is("$textProxy")))[Mx("0x56")]((t=>t[Mx("0x74")]));if(e.length)return{type:Mx("0x39"),content:Yo(n,Mx("0x7d"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x37")](" ")+'"'))}}if("deletion"==t.type){const e=t[Mx("0x59")]()[Mx("0x51")]((t=>t.is(Mx("0x80")))).map((t=>t.data));if(e[Mx("0x64")])return{type:"deletion",content:Yo(n,Mx("0x22"),Yo(n,Mx("0x5c"),'"'+e[Mx("0x37")](" ")+'"'))}}}})),o[Mx("0x20")][Mx("0x5d")]((t=>{if("tableRow"==t[Mx("0x3c")]){const e=t[Mx("0x59")]()[Mx("0x51")]((t=>t.is(Mx("0x80")))).map((t=>t[Mx("0x74")])),o=this[Mx("0x47")](t),s=o[Mx("0x87")]-o[Mx("0x54")]+1;if(Mx("0x39")==t[Mx("0x66")])return e.length?{type:Mx("0x39"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x37")](" ")+'"']))}:{type:Mx("0x39"),content:Yo(n,Mx("0x7d"),Yo(n,Mx("0x5e"),s))};if(Mx("0x50")==t[Mx("0x66")])return e[Mx("0x64")]?{type:"deletion",content:Yo(n,Mx("0x22"),Yo(n,Mx("0x86"),[s,'"'+e[Mx("0x37")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x22"),Yo(n,Mx("0x5e"),s))}}if(Mx("0x62")==t[Mx("0x3c")]){const e=t[Mx("0x59")]().filter((t=>t.is("$textProxy")))[Mx("0x56")]((t=>t[Mx("0x74")])),o=this._getSuggestionCoords(t),s=o.maxColumn-o[Mx("0x40")]+1;if(Mx("0x39")==t[Mx("0x66")])return e[Mx("0x64")]?{type:Mx("0x39"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x39"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x5f"),s))};if(Mx("0x50")==t[Mx("0x66")])return e.length?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x32"),[s,'"'+e[Mx("0x37")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x5f"),s))}}})),o[Mx("0x7e")].registerCustomCallback(Mx("0x39"),Mx("0x33"),"discard",r),o[Mx("0x7e")].registerCustomCallback(Mx("0x50"),Mx("0x33"),Mx("0x36"),r),o[Mx("0x7e")][Mx("0x2")](Mx("0x39"),Mx("0x62"),Mx("0x2e"),a),o[Mx("0x7e")][Mx("0x2")](Mx("0x50"),Mx("0x62"),Mx("0x36"),a),o[Mx("0x7e")][Mx("0x2")](Mx("0x39"),"tableColumn",Mx("0x37"),c),o[Mx("0x7e")][Mx("0x2")](Mx("0x50"),Mx("0x62"),Mx("0x37"),c),o[Mx("0x7e")][Mx("0x2")]("insertion",Mx("0x33"),Mx("0x37"),l),o[Mx("0x7e")].registerCustomCallback(Mx("0x50"),Mx("0x33"),Mx("0x37"),l)}[Mx("0x7f")](){const t=this[Mx("0x2a")],e=t[Mx("0x2b")][Mx("0x4e")].selection;return(n,o)=>{t.model[Mx("0x82")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x1e")][Mx("0x18")];x&&x[0]&&!1===x[0][Mx("0x71")]&&(a=n[0].start[Mx("0x61")]);const c=s[Mx("0x68")](a);if(Mx("0x45")==c[Mx("0x13")][Mx("0x52")])return;const l=Array.from(e.getRanges())[Mx("0x56")]((t=>i.LiveRange.fromRange(t)));s.setSelection(c),t[Mx("0xe")].get(r)[Mx("0x43")](),x[Mx("0x8b")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x51")]((t=>Mx("0x45")!=t[Mx("0x13")][Mx("0x52")]));d[Mx("0x64")]>0&&s.setSelection(d);for(const t of l)t[Mx("0x31")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x2a")][Mx("0x23")].get(Mx("0x16"));let n=Number.MAX_SAFE_INTEGER,o=Number[Mx("0x6d")],s=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;for(const i of t){if(Mx("0x45")==i[Mx("0x13")].rootName)continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x12")]("rowspan")?i[Mx("0x30")](Mx("0x8"))-1:0,c=i.hasAttribute("colspan")?i[Mx("0x30")](Mx("0x1f"))-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}}[Mx("0x3")](){const t=this[Mx("0x2a")],e=t.plugins[Mx("0x4")]("TrackChangesEditing"),n=t[Mx("0x23")].get(Mx("0x16"));t[Mx("0x2b")][Mx("0x4e")].on(Mx("0x38"),(()=>{const n=Array[Mx("0xf")](t[Mx("0x2b")].document[Mx("0x4f")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0xc")](t);if(Mx("0x19")!=n)continue;if(null!=o.oldRange)continue;const i=e[Mx("0x34")](s);this._tablePostFixingSubtypes[Mx("0x7a")](r)&&this[Mx("0x46")].add(i)}}),{priority:Mx("0x60")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x5b")](t),r=t[Mx("0x3b")]("table"),i=n[Mx("0x3e")](t);for(const e of this[Mx("0x46")]){const n=e[Mx("0x3c")],x=n[Mx("0xb")](Mx("0xd")),a=n[Mx("0x4c")](x?10:5),c=a[Mx("0x4d")](),l=c[Mx("0x4c")](0,3)+Mx("0x1b"),d=Mx("0x88")+a,u=Mx("0x11")+a;if(!e.isInContent)continue;if(r!=e[Mx("0x69")]().start.findAncestor("table"))continue;if(e[Mx("0x6e")](s))continue;const g=t[Mx("0x12")](l)?t[Mx("0x30")](l)-1:0,m=this[Mx("0x47")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x4b")](s),o=!0)}return o};t[Mx("0x2b")][Mx("0x4e")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x2b")].document[Mx("0x4f")][Mx("0x77")]())if(Mx("0x72")==s.type)if(Mx("0x33")==s[Mx("0x2d")])for(const t of s[Mx("0x81")][Mx("0x61")][Mx("0x9")]())n=n||o(t,e);else Mx("0x5a")==s.name&&(n=n||o(s[Mx("0x81")].nodeAfter,e));return n}))}[Mx("0x47")](t){return this[Mx("0x4a")](t.getRanges()[Mx("0x56")]((t=>t[Mx("0x6b")].nodeAfter)))}}function Ox(t){return Array[Mx("0xf")](new Set(t)[Mx("0x5")]())}const Fx=["mergeTableCellLeft","mergeTableCellRight","has","find","_isForcedDefaultExecutionBlock","formatBlock","tableCell","*Merge cells*","horizontally","get","element","value","setSelection","_acceptFormatSuggestionCallbackFactory","getAncestors","getSuggestions","commandName","_areSelectedCellsMergable","change","type","size","findAncestor","deletion","length","editor","stop","mergeTableCellUp","splitTableCellHorizontally","model","TrackChangesEditing","document","markBlockFormat","registerCustomCallback","detach","highest","markMultiRangeBlockFormat","enableCommand","createTableWalker","splitTableCellVertically","author","plugins","direction","selection","format","TableEditing","from","createRangeOn","_areMergableCells","requires","mergeTableCellDown","push","commands","trackChanges","getRanges","cell","getFirstPosition","add","afterInit","containsRange","accept","mergeTableCells","locale","insertion","_tablePostFixingSubtypes","TableUtils","registerDescriptionCallback","subType","execute","refresh","isInContent","_suggestionFactory","fromRange","rootName","map","low","getSelectionAffectedTableCells","*Split cell:* vertically"];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("0x31")](){return[wx]}[Bx("0x3a")](){const t=this[Bx("0x19")],e=t[Bx("0x1d")][Bx("0x1f")][Bx("0x2b")],n=t[Bx("0x3e")];if(!t[Bx("0x29")][Bx("0x3")](Bx("0x2d")))return;const o=t[Bx("0x29")][Bx("0xa")](Bx("0x1e")),s=t[Bx("0x29")].get(Bx("0x41")),r=t.plugins[Bx("0xa")](wx);r[Bx("0x40")][Bx("0x33")]("mergeTableCells"),o[Bx("0x25")](Bx("0x3d"),(()=>{const e=s.getSelectionAffectedTableCells(t.model.document[Bx("0x2b")]);t[Bx("0x1d")][Bx("0x13")]((()=>{o[Bx("0x24")](e,{commandName:Bx("0x3d"),commandParams:[]},[],Bx("0x3d"))}))})),t.commands[Bx("0xa")](Bx("0x3d")).on(Bx("0x44"),((e,n)=>{t.commands[Bx("0xa")](Bx("0x35"))[Bx("0xc")]&&(n[Bx("0x18")]>0&&n[n[Bx("0x18")]-1]&&n[n.length-1].forceDefaultExecution||o[Bx("0x5")]||this[Bx("0x12")]()||e[Bx("0x1a")]())}),{priority:Bx("0x23")});for(const e of[Bx("0x1b"),Bx("0x2"),Bx("0x32"),Bx("0x1")]){const n=t[Bx("0x34")][Bx("0xa")](e);o[Bx("0x25")](e,(()=>{const e=t[Bx("0x1d")][Bx("0x1f")].selection.getFirstPosition().getAncestors().find((t=>t.is(Bx("0xb"),Bx("0x7")))),s=n[Bx("0xc")];t[Bx("0x1d")][Bx("0x13")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x3d"),commandParams:[]},[],Bx("0x3d"))}))}))}for(const e of[Bx("0x27"),"splitTableCellHorizontally"]){const n=t[Bx("0x34")][Bx("0xa")](e);o[Bx("0x25")](e,(()=>{const r=s[Bx("0x4c")](t.model[Bx("0x1f")].selection)[0],i=r[Bx("0x16")]("table"),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x9")==n[Bx("0x2a")]){const t=s[Bx("0x26")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x2e")](t).map((t=>t[Bx("0x37")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x2e")](t)[Bx("0x4a")]((t=>t[Bx("0x37")]))}t[Bx("0x1d")].change((t=>{o[Bx("0x20")](t[Bx("0x2f")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x42")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e.commandName?{type:"format",content:Yo(n,Bx("0x8"))}:void 0})),o._descriptionFactory[Bx("0x42")]((t=>{const{data:e}=t;if(e)return Bx("0x27")==e[Bx("0x11")]?{type:Bx("0x2c"),content:Yo(n,Bx("0x0"))}:"splitTableCellHorizontally"==e[Bx("0x11")]?{type:Bx("0x2c"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0xe")]();for(const t of["mergeTableCellUp",Bx("0x2"),Bx("0x32"),Bx("0x1")])o[Bx("0x47")].registerCustomCallback("formatBlock",t,Bx("0x3c"),x);for(const t of[Bx("0x27"),Bx("0x1c")])o[Bx("0x47")][Bx("0x21")](Bx("0x6"),t,Bx("0x3c"),x);o._suggestionFactory[Bx("0x21")]("formatBlock","mergeTableCells",Bx("0x3c"),(n=>{t[Bx("0x1d")].change((o=>{const s=Array[Bx("0x2e")](e[Bx("0x36")]()).map((t=>i.LiveRange[Bx("0x48")](t)));o[Bx("0xd")](n),t[Bx("0x34")].get("mergeTableCells")[Bx("0x45")](),t[Bx("0x44")](Bx("0x3d"),{forceDefaultExecution:!0});const r=s.filter((t=>"$graveyard"!=t.root[Bx("0x49")]));r[Bx("0x18")]>0&&o.setSelection(r);for(const t of s)t[Bx("0x22")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown",Bx("0x1"),Bx("0x2")]){const n=t[Bx("0x34")][Bx("0xa")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x1d")].document.selection[Bx("0x38")]()[Bx("0xf")]()[Bx("0x4")]((t=>t.is("element",Bx("0x7"))));this[Bx("0x30")](n[Bx("0xc")],o)||(e.return=!1,e[Bx("0x1a")]())}}),{priority:Bx("0x4b")})}}[Bx("0x12")](){const t=this.editor.commands[Bx("0xa")](Bx("0x3d")),e=this.editor[Bx("0x29")][Bx("0xa")]("TableUtils");if(!t.isEnabled)return!1;const n=e[Bx("0x4c")](this[Bx("0x19")][Bx("0x1d")][Bx("0x1f")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x30")](t,e))return!1;return!0}[Bx("0x30")](t,e){const n=this[Bx("0x19")].plugins.get(Bx("0x1e")),o=this[Bx("0x19")][Bx("0x1d")][Bx("0x2f")](t),s=this[Bx("0x19")][Bx("0x1d")][Bx("0x2f")](e),r=new Set,i=new Set;for(const t of n[Bx("0x10")]())if((Bx("0x3f")==t[Bx("0x14")]||Bx("0x17")==t.type||Bx("0x3d")==t[Bx("0x43")])&&t[Bx("0x46")])for(const e of t[Bx("0x36")]())e[Bx("0x3b")](o,!0)&&r[Bx("0x39")](t[Bx("0x14")]+":"+t[Bx("0x28")].id),e[Bx("0x3b")](s,!0)&&i[Bx("0x39")](t[Bx("0x14")]+":"+t[Bx("0x28")].id);if(r[Bx("0x15")]!=i[Bx("0x15")])return!1;for(const t of r)if(!i[Bx("0x3")](t))return!1;return!0}}const Ux=["getColumnIndexes","registerCustomCallback","consumable","TableEditing","writer","plugins","setAttribute","downcastDispatcher","index","nodeAfter","value","highest","start","bindElementToMarker","childCount","markerName","last","locale","requires","editing","removeClass","removeMarker:suggestion","editor","item","markerRange","has","stop","setTableColumnHeader","createTableWalker","getRowIndexes","commandName","FORMAT_REGULAR_ROW","_descriptionFactory","TableUtils","getSuggestion","markerNameToElements","data","TrackChangesEditing","table","cell","addMarker:suggestion","unbindElementFromMarkerName","model","createPositionBefore","document","isBefore","change","mapper","FORMAT_HEADER_COLUMN","_splitMarkerName","ck-suggestion-marker--active","setTableRowHeader","nodeBefore","createRange","ck-suggestion-marker-","first","end","includes","parent","data-suggestion","createPositionAfter","FORMAT_HEADER_ROW","findAncestor","*Format:* %0","showSuggestionHighlights","getSelectionAffectedTableCells","selection","getAttribute","formatBlock","getCellLocation","name","get","commands","headingRows","addClass","accept","removeAttribute","forceValue","markBlockFormat","getChild"];var Gx,Hx;Gx=Ux,Hx=153,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("0x19")](){return[wx]}afterInit(){const t=this[zx("0x1d")];if(!t.plugins[zx("0x20")](zx("0xa")))return;const e=t[zx("0x18")],n=t[zx("0xc")][zx("0x4e")](zx("0x2c")),o=t[zx("0xc")][zx("0x4e")](zx("0x28")),s=t[zx("0xc")][zx("0x4e")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x38")](r[zx("0x16")]),c=n.getSuggestion(a);if(!c[zx("0x2b")]||"setTableColumnHeader"!=c[zx("0x2b")].commandName)return;if(r[zx("0x1e")])return void s[zx("0x21")]();if(!i[zx("0x9")].consume(r[zx("0x1f")],s[zx("0x4d")]))return;const l=r[zx("0x1f")][zx("0x13")][zx("0x10")],d=r[zx("0x1f")][zx("0x3f")][zx("0x3b")],u=l[zx("0x41")][zx("0x41")],{column:g}=o[zx("0x4c")](l),{column:m}=o[zx("0x4c")](d);for(let s=g;s<=m;s++){const c=o[zx("0x23")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x2e")],c=i[zx("0x36")].toViewElement(s);i[zx("0xb")][zx("0x1")](zx("0x3d")+x,c),e&&i.writer[zx("0xd")](zx("0x42"),a,c),i[zx("0x36")][zx("0x14")](c,r[zx("0x16")]),t&&(n.activeMarkers[zx("0x40")](r[zx("0x16")])?i[zx("0xb")][zx("0x1")]("ck-suggestion-marker--active",c):i.writer[zx("0x1b")](zx("0x39"),c))}}}}n.enableCommand(zx("0x3a"),((e,s)=>{const r=o[zx("0x48")](t[zx("0x31")][zx("0x33")][zx("0x49")]),i=o[zx("0x24")](r),x=r[0][zx("0x45")](zx("0x2d")),a=x[zx("0x4a")](zx("0x0"))||0,c=s&&null!==s[zx("0x4")]?s[zx("0x4")]:!t[zx("0x4f")].get(zx("0x3a"))[zx("0x11")],l=c?i[zx("0x17")]:i.first,d=x[zx("0x6")](l);let u;if(c){const e=x[zx("0x6")](a);if(d[zx("0xf")]<e[zx("0xf")])return;u=t.model[zx("0x3c")](t[zx("0x31")][zx("0x32")](e[zx("0x6")](0)),t[zx("0x31")][zx("0x43")](d[zx("0x6")](d[zx("0x15")]-1)))}else{const e=x[zx("0x6")](a-1);if(!e)return;u=t[zx("0x31")][zx("0x3c")](t.model[zx("0x32")](d[zx("0x6")](0)),t.model.createPositionAfter(e[zx("0x6")](e.childCount-1)))}t[zx("0x31")][zx("0x35")]((()=>{n.markBlockFormat(u,{commandName:zx("0x3a"),commandParams:[{forceValue:c}]},[],zx("0x3a"))}))})),n.enableCommand(zx("0x22"),((e,o)=>{const s=t.plugins[zx("0x4e")]("TableUtils"),r=s[zx("0x48")](t[zx("0x31")].document[zx("0x49")]),i=s[zx("0x7")](r),x=r[0][zx("0x45")](zx("0x2d")),a=x[zx("0x4a")]("headingColumns")||0,c=o&&null!==o[zx("0x4")]?o.forceValue:!t[zx("0x4f")][zx("0x4e")]("setTableColumnHeader")[zx("0x11")];let l;const d=x[zx("0x6")](0),u=c?i[zx("0x17")]:i[zx("0x3e")],g=s[zx("0x23")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x2e")];if(c){const e=d[zx("0x6")](a);if(m[zx("0x34")](e))return;l=t[zx("0x31")].createRange(t.model[zx("0x32")](e),t[zx("0x31")][zx("0x43")](m))}else{const e=d[zx("0x6")](a-1);if(!e)return;l=t[zx("0x31")][zx("0x3c")](t[zx("0x31")][zx("0x32")](m),t.model[zx("0x43")](e))}t[zx("0x31")].change((()=>{n[zx("0x5")](l,{commandName:zx("0x22"),commandParams:[{forceValue:c}]},[],zx("0x22"))}))})),t[zx("0x1a")].downcastDispatcher.on(zx("0x2f"),r(),{priority:zx("0x12")}),t.data[zx("0xe")].on(zx("0x2f"),((t,e,n)=>{n.options[zx("0x47")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x12")}),t[zx("0x1a")][zx("0xe")].on(zx("0x1c"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x38")](e.markerName),i=n[zx("0x29")](r);if(!i.data||zx("0x22")!=i.data[zx("0x25")])return;const x=o[zx("0x36")][zx("0x2a")](e[zx("0x16")]);if(x)for(const t of x)o[zx("0xb")][zx("0x1b")]("ck-suggestion-marker-"+s,t),o[zx("0xb")][zx("0x1b")]("ck-suggestion-marker--active",t),o[zx("0xb")][zx("0x3")]("data-suggestion",t),o[zx("0x36")][zx("0x30")](t,e[zx("0x16")])}),{priority:"highest"}),n[zx("0x27")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[zx("0x25")]){const t=n.commandParams[0][zx("0x4")];return o(Yo(e,zx(t?"0x44":"0x26")))}if(zx("0x22")==n[zx("0x25")]){const t=n.commandParams[0][zx("0x4")];return o(Yo(e,t?zx("0x37"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:"format",content:Yo(e,zx("0x46"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n._suggestionFactory[zx("0x8")]("formatBlock",zx("0x3a"),zx("0x2"),i),n._suggestionFactory[zx("0x8")](zx("0x4b"),"setTableColumnHeader","accept",i)}}const Vx=["getRows","plugins","from","getTableIfOnlyTableInContent","type","redo","insertion","suggestion-td","suggestionUnloaded","findAncestor","$graveyard","keys","Users","first","getShiftedBy","rowInsertionIndexes","columns","markerToHighlight","dataDowncast","getSuggestions","markerAttributes","registerCustomCallback","conversion","getChildren","registerPostFixer","oldRange","startsWith","tablePasteCell","_descriptionFactory","rowInsertionRanges","remove","createRangeIn","forceDefaultExecution","wrap","has","_splitMarkerName","_suggestionFactory","isEmpty","requires","some","getAllAdjacentSuggestions","high","filter","nodeAfter","batch","isInContent","fill","markMultiRangeDeletion","hasSuggestion","showSuggestionHighlights","tableCellBackgroundColor","TableClipboard","suggestionLoaded","setAttributes","tableCellBorderStyle","afterInit","low","getRange","_tablePostFixingSubtypes","nextSibling","tableCell","getColumnIndexes","ck-suggestion-marker-insertion","getChanges","length","listenTo","table","return","createRangeOn","name","position","setAttribute","getRowIndexes","getColumns","getChild","_createdBatches","registerDescriptionCallback","createPositionBefore","set","markMultiRangeBlockFormat","insertionRanges","register","getSuggestion","fromEntries","*Replace table cells*","getAttributes","options","getContainedElement","tableCellBorderWidth","selection","tableCellBorderColor","tablePasteRow","TableUtils","suggestion:formatBlock:tablePasteCell","isEqual","insert","value","_getCoordsForCells","end","endRow","clipboardOutput","paragraph","includes","createRange","trackChanges","map","tableCellSuggestion","removeMarker","removeMarkers","tablePasteChainId","getChangedMarkers","editing","attributes","getRanges","editingDowncast","formatBlock","deletionRanges","activeMarkers","getSuggestionCallback","newRange","push","every","rows","columnInsertionIndexes","discard","tablePaste","accept","documentSelection","getSelectionAffectedTableCells","createTableWalker","previousSibling","rootName","element","differ","model","insertColumns","suggestion","deletion","change","add","containsRange","getItems","tableCellHorizontalAlignment","stop","elementToElement","find","document","cell","for","_isForcedDefaultExecutionBlock","tableCellVerticalAlignment","last","markerName","previous","subType","updateMarker","author","markMultiRangeInsertion","ck-suggestion-marker--active","unwrap","move","column","createElement","editor","tablePasteColumn","get","insertContent","reduce","join"];var Kx,Xx;Kx=Vx,Xx=126,function(t){for(;--t;)Kx.push(Kx.shift())}(++Xx);const qx=function(t,e){return Vx[t-=0]},$x=[qx("0x83"),qx("0x85"),qx("0x61"),qx("0x10"),qx("0x18"),qx("0x5d"),"tableCellPadding"],Qx=Object[qx("0x7e")]($x[qx("0x94")]((t=>[t,null])));class Jx extends t.Plugin{static get[qx("0x51")](){return[wx]}[qx("0x62")](){const t=this[qx("0x25")];if(!t[qx("0x2c")][qx("0x4d")]("TableClipboard"))return;const n=t.plugins[qx("0x27")]("TrackChangesEditing"),o=t[qx("0x2c")][qx("0x27")](qx("0x87")),s=t[qx("0x2c")][qx("0x27")](wx),r=t[qx("0x2c")][qx("0x27")]("TableClipboard");s[qx("0x65")][qx("0xa3")](qx("0x86"),qx("0x26")),t[qx("0x8")].schema[qx("0x7c")](qx("0x95"),{allowIn:qx("0x67"),allowContentOf:qx("0x67"),isLimit:!0}),t[qx("0x41")][qx("0x12")]({model:"tableCellSuggestion",view:qx("0x32")});let i=null;t[qx("0x8")].on(qx("0x28"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[qx("0x4b")]||n[qx("0x17")]||this[qx("0x25")].commands.get(qx("0x93"))[qx("0x8b")]&&function(t,e,n,o,s){if(e&&!e.is(qx("0x1")))return!1;const r=s[qx("0x2e")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[qx("0x2")](n[qx("0x14")][qx("0x84")]);if(!i[qx("0x6b")])return!1;const x=i[0][qx("0x34")]("table"),a=o[qx("0x73")](i),c=o[qx("0x68")](i),l={startRow:a[qx("0x38")],endRow:a[qx("0x19")],startColumn:c[qx("0x38")],endColumn:c[qx("0x19")]};return 1==i.length&&(l[qx("0x8e")]+=o[qx("0x2b")](r)-1,l.endColumn+=o[qx("0x74")](r)-1),Yx(x,l,o)}(a,c,t[qx("0x8")],o,r)&&(s[qx("0x11")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[qx("0x8")][qx("0xc")]((()=>{t[qx("0x8")].insertContent(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("0x1f")](s,qx("0x86"),{tablePasteChainId:o}),r[qx("0x6b")]&&n[qx("0x1f")](r,qx("0x26"),{tablePasteChainId:o}),a[qx("0x6b")]&&n[qx("0x1f")](a,qx("0xa8"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[qx("0x5a")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[qx("0x7a")](l[qx("0x94")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],qx("0x46"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[qx("0x8")].createRangeOn(o),i=e[qx("0x13")]((t=>t[qx("0x64")]()[qx("0x89")](r)));i&&n[qx("0xa3")]([i[qx("0x70")],s])}n[qx("0x6b")]&&d[qx("0x72")](qx("0x3f"),Object[qx("0x7e")](n))}i=null})))}),{priority:e.priorities.high+10}),t[qx("0x2c")][qx("0x27")](qx("0x5e")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[qx("0x11")]();const r=n[qx("0x15")],x=o,a=Zx(r),c=Zx(x);t[qx("0x6e")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[qx("0x49")](r[qx("0x75")](0));for(const t of Array[qx("0x2d")](x[qx("0x42")]()))s.insert(t,r,qx("0x8d"));const t=i[qx("0x3a")][qx("0x91")](n.row),e=i[qx("0xa6")][qx("0x91")](n[qx("0x23")]);t||e||(l=s[qx("0x4a")](r))}else c&&!a&&(d=s[qx("0x4a")](r));else{const t=s[qx("0x24")]("tableCellSuggestion"),e=s[qx("0x24")](qx("0x95"));s[qx("0x4c")](s[qx("0x4a")](r),e),s[qx("0x8a")](t,r,0);for(const e of Array[qx("0x2d")](x[qx("0x42")]()))s[qx("0x8a")](e,t,qx("0x8d"));l=s[qx("0x6f")](t),d=s[qx("0x6f")](e)}const u=Array[qx("0x2d")](x[qx("0x80")]())[qx("0x55")]((([t])=>$x[qx("0x91")](t)));i.cells[qx("0xa3")]({element:r,attributes:u[qx("0x6b")]?Object[qx("0x7e")](u):null}),l&&i[qx("0x7b")][qx("0xa3")](l),d&&i[qx("0x9f")][qx("0xa3")](d)}),{priority:qx("0x54")}),o.on(qx("0x9"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[qx("0x3b")]||1;i[qx("0xa6")]=new Array(a)[qx("0x59")](x)[qx("0x94")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[qx("0x8")][qx("0x6f")](e))}),{priority:qx("0x63")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[qx("0xa5")]||1;i[qx("0x3a")]=new Array(a)[qx("0x59")](x)[qx("0x94")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x3")](s,{startRow:x,endRow:x+a-1}))i[qx("0x48")][qx("0xa3")](t[qx("0x8")][qx("0x6f")](e))}),{priority:qx("0x63")}),n[qx("0x47")][qx("0x77")]((e=>{if(e.subType&&e[qx("0x1c")][qx("0x45")](qx("0xa8")))return e[qx("0x1b")]?{}:{type:qx("0x31"),content:Yo(t.locale,qx("0x7f"))}}));const x=()=>!1;for(const t of[qx("0xa8"),qx("0x26"),"tablePasteRow","tablePasteCell"])n[qx("0x4f")][qx("0x40")](qx("0x31"),t,qx("0x2a"),x),n._suggestionFactory.registerCustomCallback(qx("0xb"),t,qx("0x2a"),x),n[qx("0x4f")][qx("0x40")]("formatBlock",t,qx("0x2a"),x);n[qx("0x4f")][qx("0x40")](qx("0x9e"),qx("0x46"),qx("0xa7"),x),n._suggestionFactory[qx("0x40")](qx("0x9e"),qx("0x46"),qx("0x0"),((e,n,o)=>{const s=e[qx("0x94")]((t=>t.getContainedElement())).filter((t=>t)),r=new Map(s[qx("0x94")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[qx("0x79")](t,e);else if(o&&o[qx("0x3f")])for(const[e,n]of Object.entries(o[qx("0x3f")])){const o=t[qx("0x8")].markers[qx("0x27")](e),s=o?o[qx("0x64")]().getContainedElement():null;s&&r[qx("0x79")](s,n)}t.model.change((t=>{for(const[e,n]of r)t[qx("0x60")]({...Qx,...n},e)}))}));const a=(e,o)=>{n[qx("0x4f")].registerCustomCallback(e,"tablePaste",o,((s,r,i)=>{t[qx("0x8")][qx("0xc")]((t=>{const x=[];for(const t of s){const e=t.start[qx("0x56")];e.is(qx("0x6"),qx("0x95"))&&x[qx("0xa3")](e)}n[qx("0x4f")][qx("0xa1")](e,null,o)(s,r,i);for(const e of x)qx("0x35")!=e.root[qx("0x5")]&&t[qx("0x21")](e)}))}))};a(qx("0x31"),qx("0x0")),a(qx("0x31"),qx("0xa7")),a(qx("0xb"),"accept"),a(qx("0xb"),qx("0xa7")),n[qx("0x4f")].registerCustomCallback(qx("0x31"),qx("0x86"),qx("0xa7"),(t=>{const e=t.map((t=>t[qx("0x82")]())),n=e[0].findAncestor(qx("0x6d")),{minRow:r,maxRow:i}=s[qx("0x8c")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[qx("0x4f")][qx("0x40")](qx("0x31"),qx("0x26"),"discard",(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][qx("0x34")]("table"),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[qx("0x1c")]||!e[qx("0x1c")].startsWith("tablePaste"))return;const o=e[qx("0x9b")][qx("0x98")],s=n.getSuggestions().filter((t=>t.isInContent&&t[qx("0x9b")]&&t[qx("0x9b")][qx("0x98")]==o));s.length&&e[qx("0x53")]()[qx("0x6b")]!=s[qx("0x6b")]&&s[qx("0x29")](((t,e)=>(t.next=e,e[qx("0x1b")]=t,e)))};function l(t,e=!0){const{id:o}=n[qx("0x4e")](t[qx("0x1a")]),s=["ck-suggestion-marker",qx("0x69")],r=n[qx("0xa0")][qx("0x91")](t.markerName);return r&&s[qx("0xa3")](qx("0x20")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(qx("0x5f"),c,{priority:"high"}),n.on(qx("0x33"),c,{priority:qx("0x54")}),t[qx("0x8")].document[qx("0x43")]((()=>{let e=!1;const o=Array[qx("0x2d")](t[qx("0x8")][qx("0x14")][qx("0x7")][qx("0x99")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[qx("0x4e")](s);if(qx("0xa")!=o||"deletion"!=i||r[qx("0x44")])continue;if(!n[qx("0x5b")](x))continue;const a=n[qx("0x7d")](x).getRanges(),c=t.plugins.get(qx("0x37")).me;for(const t of n.getSuggestions())if(t.isInContent&&t[qx("0x1e")]==c&&qx("0x9e")==t[qx("0x2f")]&&qx("0x46")==t.subType&&t[qx("0x9c")]()[qx("0xa4")]((t=>a[qx("0x52")]((e=>e[qx("0xe")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[qx("0x58")]&&(n[qx("0xa7")](),e=!0)}return e})),t[qx("0x8")][qx("0x14")].registerPostFixer((e=>{const o=t.commands[qx("0x27")](qx("0x30"));if(!o||!o[qx("0x76")][qx("0x4d")](e[qx("0x57")]))return!1;let s=!1;const r=t.plugins[qx("0x27")](qx("0x37")).me,i=t[qx("0x8")].document.differ[qx("0x6a")](),x=Array.from(t[qx("0x8")].document[qx("0x7")][qx("0x99")]())[qx("0x55")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[qx("0x4e")](t);return qx("0xa")==o&&"tablePaste"==s&&i==r.id&&!e[qx("0x44")]}));for(const t of i){if(qx("0x8a")!=t.type||"tableCellSuggestion"!=t[qx("0x70")]||1!=t[qx("0x6b")])continue;const n=e[qx("0x92")](t[qx("0x71")],t[qx("0x71")][qx("0x39")](1));if(!x[qx("0x13")]((({data:t})=>t.newRange[qx("0x89")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[qx("0xa2")])){e[qx("0x1d")](t,{range:n}),s=!0;break}}return s})),t[qx("0x8")][qx("0x14")][qx("0x43")]((e=>{let o=!1;const s=t[qx("0x2c")][qx("0x27")](qx("0x37")).me,r=n[qx("0x3e")]().filter((t=>t[qx("0x58")]&&t[qx("0x1e")]==s)),i=new Set,x=new Set;for(const t of r)if(qx("0xa8")==t[qx("0x1c")])for(const e of t.getMarkers()){const n=e.getRange()[qx("0x82")]();if(n)if(n.is(qx("0x6"),qx("0x95"))&&Zx(n)){t[qx("0x96")](e.name),i.add(n),o=!0;const s=n[qx("0x66")],r=n[qx("0x4")],a=s&&s.is("element","tableCellSuggestion"),c=r&&r.is(qx("0x6"),qx("0x95"));a&&!i[qx("0x4d")](s)&&x[qx("0xd")](s),c&&!i[qx("0x4d")](r)&&x[qx("0xd")](r)}else n.is(qx("0x6"),qx("0x90"))&&n[qx("0x50")]&&(t.removeMarker(e[qx("0x70")]),o=!0)}else if(qx("0x46")==t[qx("0x1c")]){if(!t.attributes||!t[qx("0x9b")][qx("0x98")])continue;const e=t[qx("0x9b")].markerAttributes;if(e&&Object[qx("0x36")](e)[qx("0x6b")])continue;const n=t[qx("0x9b")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[qx("0x1c")]&&e[qx("0x1c")][qx("0x45")](qx("0xa8"))){if(!e.attributes.tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[qx("0x9b")][qx("0x98")]==n){s=!1;break}}i&&s&&(t[qx("0x97")](),o=!0)}for(const t of i)e[qx("0x49")](t);for(const t of x)e[qx("0x21")](t);return o})),t[qx("0x41")][qx("0x16")](qx("0x9d"))[qx("0x3c")]({model:qx("0x88"),view:(t,e)=>l(t),converterPriority:"high"}),t[qx("0x41")].for(qx("0x3d"))[qx("0x3c")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[qx("0x81")][qx("0x5c")]?l(t,!1):null,converterPriority:qx("0x54")});const d=t[qx("0x9a")].view;this[qx("0x6c")](d[qx("0x14")],qx("0x8f"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e.content)[qx("0xf")]())t.is(qx("0x6"),qx("0x32"))&&n[qx("0xa3")](t);d[qx("0xc")]((t=>{for(const e of n)t[qx("0x22")](t[qx("0x4a")](e),t[qx("0x78")](e)),t[qx("0x49")](e)}))}))}}function Zx(t){if(t[qx("0x50")])return!0;const e=t.getChild(0);return e.is(qx("0x6"),qx("0x90"))&&e[qx("0x50")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[qx("0x3")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["getTableColumnsWidths","model","afterInit","handleSuggestionDescription","registerCustomCallback","Users","selection","locale","commandParams","columnWidths","document","registerDescriptionCallback","author","has","discard","plugins","formatBlock","_descriptionFactory","resizeTable","getSuggestionCallback","data","change","format","bind","get","editor","enableCommand","getColumnGroupElement","tableWidth","getContainedElement","accept","TableColumnResizeEditing","TrackChangesEditing","resizeTableWidth","_suggestionFactory","getAttribute","handleResizeTableWidthCommand"];var ea,na;ea=ta,na=228,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x21")](){if(!this[oa("0x13")].plugins[oa("0x7")]("TableColumnResizeEditing"))return;const t=this.editor[oa("0x9")][oa("0x12")](oa("0x1a"));t[oa("0x14")](oa("0x1b"),this[oa("0x1e")].bind(this)),t.enableCommand("resizeColumnWidths",this[oa("0x1e")][oa("0x11")](this)),t[oa("0x1c")][oa("0x23")](oa("0xa"),oa("0xc"),oa("0x18"),t[oa("0x1c")][oa("0xd")](oa("0xa"),null,oa("0x8"))),t[oa("0x1c")][oa("0x23")](oa("0xa"),oa("0xc"),oa("0x8"),t._suggestionFactory.getSuggestionCallback(oa("0xa"),null,oa("0x18"))),t[oa("0xb")][oa("0x5")](this[oa("0x22")].bind(this))}[oa("0x1e")](t,e){const n=this[oa("0x13")].plugins[oa("0x12")](oa("0x1a")),o=this[oa("0x13")][oa("0x9")][oa("0x12")](oa("0x19")),s=e.table||this[oa("0x13")][oa("0x20")][oa("0x4")][oa("0x0")].getSelectedElement();this[oa("0x13")].model[oa("0xf")]((()=>{const r=o[oa("0x15")](s);let i=r?o[oa("0x1f")](r):null,x=s[oa("0x1d")](oa("0x16"))||null;const a=e[oa("0x16")]||x,c=e[oa("0x3")]||i,l=this.editor[oa("0x9")][oa("0x12")](oa("0x24")).me;for(const t of n.getSuggestions()){const e=t[oa("0x17")]();if(oa("0xc")===t.subType&&e===s){t[oa("0x6")]!==l&&t.discard();const e=t[oa("0xe")][oa("0x2")];x=e[0].tableWidth,i=e[0][oa("0x3")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x1b"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0xc")},[],oa("0xc"))}))}[oa("0x22")](t){const{data:e}=t;if(e&&oa("0xc")===e.formatGroupId){const t="*Format:* resize table";return{type:oa("0x10"),content:Yo(this.editor[oa("0x1")],t)}}}}const ra=["TrackChangesEditing","has","editor","plugins","afterInit","Template","insertTemplate"];var ia,xa;ia=ra,xa=172,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x0")](){const t=this[aa("0x5")];t.plugins[aa("0x4")](aa("0x1"))&&t[aa("0x6")].get(aa("0x3")).enableCommand(aa("0x2"))}}const la=["tableOfContents","_descriptionFactory","insertTableOfContents","TrackChangesEditing","plugins","editor","ELEMENT_TABLE_OF_CONTENTS","enableCommand","afterInit","get","commands"];var da,ua;da=la,ua=487,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x5")](){const t=this[ga("0x2")];if(!t[ga("0x7")].get(ga("0xa")))return;t.plugins.get(ga("0x0"))[ga("0x4")]("insertTableOfContents");const e=t[ga("0x1")][ga("0x6")]("TrackChangesEditing"),n=t.locale;e[ga("0x9")].registerElementLabel(ga("0x8"),(t=>Yo(n,ga("0x3"),t)))}}const fa=["document","registerElementLabel","locale","forward","has","title-content","ELEMENT_TITLE","TrackChangesEditing","nodeBefore","removeMarker","isTouching","from","Title","registerPostFixer","_descriptionFactory","newRange","editor","isCollapsed","differ","end","isEqual","get","model","afterInit","element","suggestion","start","plugins"];var ha,pa;ha=fa,pa=368,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x13")](){const t=this[ba("0xc")];if(!t[ba("0x17")][ba("0x0")](ba("0x8")))return;const e=t[ba("0x17")][ba("0x11")](ba("0x3"));e[ba("0xa")][ba("0x19")](ba("0x1"),(()=>Yo(t[ba("0x1a")],ba("0x2")))),t[ba("0x12")].document[ba("0x9")]((n=>{let o=!1;const s=Array[ba("0x7")](t[ba("0x12")][ba("0x18")][ba("0xe")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x15")!==s||!i.newRange)continue;const x=i[ba("0xb")],a=x[ba("0xf")][ba("0x4")];if(!a||!a.is(ba("0x14"),ba("0x1")))continue;if(!x[ba("0x16")][ba("0x6")](x.end))continue;const c=t[ba("0x12")].schema.getNearestSelectionRange(x.end,ba("0x1b"));if(c&&c[ba("0xd")]){const t=n.createRange(x.start,c.start);t[ba("0x10")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[ba("0x5")](r),o=!0)}return o}))}}const _a=["TrackChangesEditing","UndoEditing","editor","redo","plugins","afterInit","get","undo"];var Ta,Ca;Ta=_a,Ca=307,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x2")](){const t=this[ya("0x7")],e=t.plugins[ya("0x3")](ya("0x5"));t[ya("0x1")].has(ya("0x6"))&&(e.enableCommand(ya("0x4")),e.enableCommand(ya("0x0")))}}const Aa=["get","afterInit","TrackChangesEditing","TableCaptionEditing","has","requires","plugins","enableCommand"];var va,Ra;va=Aa,Ra=379,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("0x2")](){return[wx]}[Sa("0x6")](){const t=this.editor;t[Sa("0x3")][Sa("0x1")](Sa("0x0"))&&t[Sa("0x3")][Sa("0x5")](Sa("0x7"))[Sa("0x4")]("toggleTableCaption")}}const La=["_getTranslationKeyForListStyle","model","format","registerDescriptionCallback","handleListStartCommand","selection","afterInit","locale","listStyle","ELEMENT_","*Change to:* %0","_getSuggestionBlocks","replace","filter","listType","isListItemBlock","handleListReversedCommand","from","numbered","commandName","TrackChangesEditing","length","enableCommand","type","*Format:* set start index to %0","startIndex","handleDescriptions","DocumentListPropertiesUtils","change","toUpperCase","getAttribute","_getSuggestionBlocksForListStyle","expandListBlocksToCompleteList","markMultiRangeBlockFormat","*Format:* set order to reversed","styles","bind","document","list.properties","handleListStyleCommand","listReversed","DocumentListUtils","get","config","commandParams","_LIST_","listStart","reversed","plugins","getSelectedBlocks","has","isFirstBlockOfListItem","editor"];var Na,Ma;Na=La,Ma=479,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x4")](){if(!this.editor[wa("0x2e")][wa("0x30")]("DocumentListPropertiesEditing"))return;const t=this[wa("0x32")][wa("0x29")][wa("0x28")](wa("0x24")),e=this.editor.plugins[wa("0x28")](wa("0x12"));t[wa("0x21")]&&e[wa("0x14")](wa("0x6"),this.handleListStyleCommand.bind(this)),t[wa("0x2d")]&&e[wa("0x14")](wa("0x26"),this[wa("0xe")][wa("0x22")](this)),t[wa("0x17")]&&e[wa("0x14")](wa("0x2c"),this.handleListStartCommand[wa("0x22")](this)),e._descriptionFactory[wa("0x1")](this[wa("0x18")][wa("0x22")](this))}[wa("0x25")](t,e={}){const n=this[wa("0x32")][wa("0x2e")].get(wa("0x12")),o=this[wa("0x1d")]();this[wa("0x32")][wa("0x34")][wa("0x1a")]((()=>{n[wa("0x1f")](o,{commandName:wa("0x6"),commandParams:[{type:e[wa("0x15")]}],formatGroupId:wa("0x6")})}))}[wa("0xe")](t,e={}){const n=this[wa("0x32")].plugins[wa("0x28")](wa("0x12")),o=this[wa("0x32")][wa("0x2e")][wa("0x28")](wa("0x27")),s=this[wa("0x9")]((t=>o[wa("0xd")](t)&&wa("0x10")===t[wa("0x1c")](wa("0xc"))));null!==s&&this[wa("0x32")][wa("0x34")][wa("0x1a")]((()=>{n[wa("0x1f")](s,{commandName:wa("0x26"),commandParams:[{reversed:e[wa("0x2d")]}],formatGroupId:wa("0x26")})}))}[wa("0x2")](t,e={}){const n=this[wa("0x32")][wa("0x2e")][wa("0x28")]("TrackChangesEditing"),o=this[wa("0x32")][wa("0x2e")][wa("0x28")](wa("0x27")),s=this[wa("0x9")]((t=>o[wa("0xd")](t)&&"numbered"===t.getAttribute("listType")));null!==s&&this[wa("0x32")][wa("0x34")][wa("0x1a")]((()=>{n[wa("0x1f")](s,{commandName:wa("0x2c"),commandParams:[{startIndex:e[wa("0x17")]}],formatGroupId:wa("0x2c")})}))}[wa("0x18")](t){const e=this.editor[wa("0x5")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x11")]){case wa("0x6"):o=wa("0x8"),s={type:wa("0x0"),content:Yo(e,o,Yo(e,this[wa("0x33")](n.commandParams[0][wa("0x15")])))};break;case wa("0x26"):o=n[wa("0x2a")][0].reversed?wa("0x20"):"*Format:* set order to regular",s={type:wa("0x0"),content:Yo(e,o)};break;case"listStart":o=wa("0x16"),s={type:wa("0x0"),content:Yo(e,o,n[wa("0x2a")][0][wa("0x17")])}}return s}[wa("0x1d")](){const t=this[wa("0x32")][wa("0x2e")][wa("0x28")](wa("0x27"));let e=Array[wa("0xf")](this[wa("0x32")].model[wa("0x23")][wa("0x3")].getSelectedBlocks());return e.push(...t[wa("0x1e")](e)),e=[...new Set(e)],e}[wa("0x9")](t){const e=this[wa("0x32")].plugins[wa("0x28")]("DocumentListUtils");let n=Array.from(this[wa("0x32")][wa("0x34")].document[wa("0x3")][wa("0x2f")]())[wa("0xb")](t);if(!n[wa("0x13")])return null;n=e[wa("0x1e")](n);const o=[];for(const t of n)e[wa("0x31")](t)&&o.push(t);return o}[wa("0x33")](t){return wa("0x7")+this[wa("0x32")][wa("0x2e")][wa("0x28")](wa("0x19")).getListTypeFromListStyleType(t)[wa("0x1b")]()+wa("0x2b")+t[wa("0x1b")]()[wa("0xa")](/-/g,"_")}}const Fa=["_getSuggestion","tableCellProperties","commandParams","registerCustomCallback","document","*Format:* change table cell properties","afterInit","locale","handleDiscardAction","tableCellVerticalAlignment","setAttribute","tableCellPadding","enableCommand","data","nodeAfter","change","findAncestor","accept","tableWidth","subType","tableCellHeight","plugins","_descriptionFactory","tableBorderStyle","tableCellBorderWidth","*Format:* change table properties","model","tableAlignment","has","tableCellBorderStyle","_handlePropertyChange","tableBackgroundColor","tableBorderWidth","getSuggestionCallback","tableProperties","discard","tableCellWidth","getContainedElement","TableUtils","TablePropertiesEditing","formatBlock","removeAttribute","editor","get","batch","pluginName","handleSuggestionDescription","_suggestionFactory","enqueueChange","selection","getFirstPosition","tableCellBackgroundColor","TrackChangesEditing","join","TrackChangesTableProperties","table"];var Pa,Da;Pa=Fa,Da=313,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this.tableProperties=["tableBorderColor",Ba("0x2e"),Ba("0x37"),Ba("0x32"),Ba("0x29"),"tableHeight",Ba("0x36")],this[Ba("0x18")]=["tableCellBorderColor",Ba("0x34"),Ba("0x2f"),Ba("0x22"),Ba("0x3"),Ba("0x2b"),Ba("0x12"),"tableCellHorizontalAlignment",Ba("0x20")]}static get[Ba("0xc")](){return Ba("0x15")}[Ba("0x1d")](){const t=this[Ba("0x9")][Ba("0x2c")].get(Ba("0x13"));if(this[Ba("0x9")][Ba("0x2c")][Ba("0x33")](Ba("0x6"))){for(const e of this[Ba("0x1")])t[Ba("0x23")](e,((t,n)=>{const o=this[Ba("0x9")][Ba("0x31")][Ba("0x1b")][Ba("0x10")][Ba("0x11")]()[Ba("0x27")](Ba("0x16"));this[Ba("0x35")](e,[o],this.tableProperties,Ba("0x1"),t,n)}));t._suggestionFactory[Ba("0x1a")](Ba("0x7"),Ba("0x1"),Ba("0x28"),t._suggestionFactory[Ba("0x0")]("formatBlock",null,"discard")),t[Ba("0xe")][Ba("0x1a")](Ba("0x7"),Ba("0x1"),Ba("0x2"),((t,e)=>this[Ba("0x1f")](this[Ba("0x1")],t,e))),t[Ba("0xe")][Ba("0x1a")]("formatBlock",Ba("0x1"),Ba("0x14"),(()=>!1))}if(this[Ba("0x9")][Ba("0x2c")][Ba("0x33")]("TableCellPropertiesEditing")){for(const e of this.tableCellProperties)t[Ba("0x23")](e,((t,n)=>{const o=this[Ba("0x9")][Ba("0x2c")][Ba("0xa")](Ba("0x5")).getSelectionAffectedTableCells(this.editor[Ba("0x31")][Ba("0x1b")].selection);this[Ba("0x35")](e,o,this[Ba("0x18")],Ba("0x18"),t,n)}));t._suggestionFactory[Ba("0x1a")](Ba("0x7"),Ba("0x18"),"accept",t[Ba("0xe")][Ba("0x0")](Ba("0x7"),null,Ba("0x2"))),t[Ba("0xe")][Ba("0x1a")]("formatBlock",Ba("0x18"),Ba("0x2"),((t,e)=>this[Ba("0x1f")](this[Ba("0x18")],t,e))),t[Ba("0xe")][Ba("0x1a")](Ba("0x7"),Ba("0x18"),"join",(()=>!1))}t[Ba("0x2d")].registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[Ba("0x35")](t,e,n,o,s,r){const i=this[Ba("0x9")].plugins[Ba("0xa")](Ba("0x13"));this.editor[Ba("0x31")][Ba("0xf")](r[Ba("0xb")],(()=>{for(const t of e)if(this[Ba("0x17")](t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Ba("0x1f")](t,e,n){const o=e[0].start[Ba("0x25")],s=n[Ba("0x19")][0];this[Ba("0x9")].model[Ba("0x26")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x21")](n,s[n],o):e[Ba("0x8")](n,o)}))}[Ba("0xd")](t){if(t[Ba("0x24")])switch(t[Ba("0x2a")]){case Ba("0x1"):return{type:"format",content:Yo(this[Ba("0x9")][Ba("0x1e")],Ba("0x30"))};case Ba("0x18"):return{type:"format",content:Yo(this[Ba("0x9")][Ba("0x1e")],Ba("0x1c"))}}}[Ba("0x17")](t,e){const n=this[Ba("0x9")][Ba("0x2c")][Ba("0xa")](Ba("0x13"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0x4")]();if(o[Ba("0x2a")]===e&&n===t)return o}return null}}const Ua=["config","createSelection","previous","removeMarker","change:_saved","addMarker","update:suggestion","getMultiRangeId","Users","addCommentThread","reconvertMarker","isRemovable","getCustomProperty","registerPostFixer","root","commentThread","stop","_defaultCallbacks","differ","commandName","activeMarkers","length","options","ready","multi","setSelection","suggestion:","howMany","error-saving-suggestion-data-suggestion-discarded","_breakSuggestionMarker","item","_splitMarkerName","containsItem","getSuggestion","_joinSuggestions","markerName","containsRange","formatInline","getMarkers","before","requires","_setSuggestionRange","getRange","markInsertion","createdAt","_getSuggestionData","CommentsRepository","removeClass","removed","isAtEnd","updateMarker","pluginName","element","start","_rangeIsInLocalUserInsertion","buildSuggestion","_cutOutSuggestionMarker","fetchCommentThread","sort","end","getIntersection","track-changes-user-not-found","listenTo","discardAllSuggestions","getLastMatchingPosition","getAttribute","isBlock","change","getFirstMarker","suggestion","formatInline:chain","targetPosition","values","createRangeIn","createElement","_getExternalAuthor","marker-count","getDifference","getShiftedBy","split","mapper","dataReady","createPositionAt","getAncestors","_suggestions","author","_addSuggestionMarker","change:data","external:","tablePasteChainId","insertion:accept","createRange","isDocumentOperation","_addThreadToSuggestion","_joinWithAdjacentSuggestions","acceptSuggestion","trackChangesCommand","moveTargetPosition","detach","acceptAllSuggestions","suggestion-type","keys","addComment","newRange","getSuggestions","value","track-changes-suggestion-not-found","consume","insert","removeComment","getWalker","always","formatBlock:accept","schema","size","authoredAt","deletion:discard","getFirstRange","formatInline:accept","splice","_adapter","_registerDefaultCallbacks","ck-suggestion-marker","markerNameToElements","deletion:chain","catch","remove","trackChanges","rootName","_handleNewSuggestionMarker","_model","addMarkerName","for","getRanges","isObject","containsPosition","name","markBlockFormat","authorName","_enabledCommands","_createSuggestion","TrackChangesEditing","bindElementToMarker","lowest","isIntersectingWithRange","join","markMultiRangeBlockFormat","formatBlock:join","addMarker:suggestion","widget","define","markerToData","enableReadOnlyMode","add","addHighlight","isLocal","$graveyard","getItems","_isForcedDefaultExecutionBlock","_removeSuggestion","track-changes-adapter-already-set","rejected","deletion","updateSuggestion","@external","has","return","formatBlock:","removeMarkers","selection","isTouching","unbindElementFromMarkerName","insertion:","get","data-suggestion","unbind","markInlineFormat","setAttribute","document","insertContent","isSelectable","high","isLimit","createPositionBefore","range","_mergeNestedSuggestions","isEqual","init","getAllAdjacentSuggestions","insertion:join","highest","adapter","editing","formatInline:discard","push","discardSelectedSuggestions","multipleBlocks","dataToMarker","_isDataLoaded","discardSuggestion","conversion","execute","consumable","isAfter","model","_findSuggestions","_setSuggestionData","discard","from","PendingActions","suggestionUnloaded","move","writer","insertion:discard","ck-suggestion-marker--active","clear","applyOperation","group","fromRange","_suggestionState","isBefore","nodeBefore","suggestionLoaded","isMultiRange","toJSON","delete","commands","isArray","addUser","enableCommand","track-changes-adapter-missing-getsuggestion","markers","fromCharCode","skipNestingCheck","_refreshSuggestionsChain","upcast","formatGroupId","ck-suggestion-marker-formatBlock","trackChanges.trackFormatChanges","parent","isOwn","containerElement","nodeAfter","_updateSuggestionData","position","addRange","never","_getAuthorFromId","_editor","oldRange","_trackFormatChanges","_saved","_customCallbacks","addSuggestion","after","deletion:join","then","originalSuggestionId","set","insertion:chain","getNearestSelectionRange","editingDowncast","assign","ck-suggestion-marker-","some","markerReady","_checkSuggestionCorrectness","markMultiRangeDeletion","isInContent","forward","deletion:","insertion","suggestionChanged","showSuggestionHighlights","formatInline:","data","getSuggestionCallback","formatBlock:chain","getChangedMarkers","isExternal","trackChanges.mergeNestedSuggestions","locale","_suggestionFactory","next","isUndo","every","hasSuggestion","forceDefaultExecution","track-changes-suggestion-data-mismatch","hasCommentThread","$textProxy","containsRangeInObject","isNextTo","subType","_commentsRepository","enqueueChange","editor","head","addMarker:suggestion:formatBlock","dataDowncast","low","plugins","filter","batch","markDeletion","clone","toViewElement","creator","getUser","isCollapsed","accept","formatBlock","markMultiRangeInsertion","deleteContent","notReady","fire","backward","isInsideObject","getCommentThread","collaboration.channelId","attributes","change:activeMarkers","type","map","acceptSelectedSuggestions"];var Ga,Ha;Ga=Ua,Ha=298,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("0x43")](){return[za("0x49"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Qs,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Jr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Jx,sa,ma,ja,ca,Ea,ka]}static get[za("0x4e")](){return za("0xa8")}constructor(t){function e(t){return t[za("0x19")]((t=>String[za("0x103")](t)))[za("0xac")]("")}super(t),this[za("0x11d")](za("0x2f"),[]),this.on(za("0x17"),((e,n,o,s)=>{this[za("0x9d")][za("0x5e")]((()=>{for(const e of[...s,...o])this[za("0x9d")][za("0x102")][za("0xc0")](e)&&t[za("0xdb")][za("0x25")](e)}))})),this._descriptionFactory=new ss(this[za("0x143")][za("0xe7")][za("0x8c")],this[za("0x143")][za("0x134")]),this[za("0x93")]=null,this[za("0x135")]=new Va(this[za("0x143")]),this[za("0x6f")]=new Map,this[za("0x141")]=t.plugins.get(za("0x49")),this[za("0xa6")]=new Set,this._model=this[za("0x143")][za("0xe7")],this[za("0xf6")]=new WeakMap,this[za("0xb9")]=!1,t[za("0x1b")][za("0xb1")]("trackChanges.trackFormatChanges","default"),this._trackFormatChanges=t[za("0x1b")][za("0xc8")](za("0x109")),t[za("0x1b")][za("0xb1")](za("0x133"),!0),this._mergeNestedSuggestions=t[za("0x1b")].get(za("0x133")),this.trackChangesCommand=new u(t,this[za("0xa6")]),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,49,50])}[za("0xd6")](){const t=this.editor;t[za("0xe3")][za("0x9f")](za("0x120")).markerToHighlight({model:za("0x60"),view:t=>{const{id:e,type:n}=this[za("0x3a")](t[za("0x3e")]),o=[za("0x95"),"ck-suggestion-marker-"+n];let s=3e3;return this[za("0x2f")].includes(t[za("0x3e")])&&(o[za("0xdd")](za("0xf1")),s=3010),za("0xbd")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xe3")][za("0x9f")]("dataDowncast").add((e=>{e.on(za("0xaf"),((e,n,o)=>{if(!o[za("0x31")][za("0x12c")])return;const s=n[za("0x39")];if(!s)return;const r=o.mapper[za("0x8")](s);t[za("0xe7")].schema[za("0xa1")](s)&&r&&!r[za("0x27")](za("0xb0"))&&r.is(za("0x10c"))&&(0,x.toWidget)(r,o[za("0xef")])}),{priority:za("0xd0")})})),t[za("0xe3")][za("0x9f")](za("0x1")).markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e.options[za("0x12c")])return null;const{type:n}=this[za("0x3a")](t.markerName);return{classes:[za("0x95"),za("0x122")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x39")])return;if(o[za("0x39")].is(za("0xc4")))return void s[za("0xe5")][za("0x86")](o[za("0x39")],n[za("0xa3")]);const r=s[za("0x6b")][za("0x8")](o.item);if(!o.item.is("element")||!t[za("0xe7")][za("0x8c")][za("0x5d")](o[za("0x39")])||r[za("0x27")](za("0xb5")))return;const{id:i}=this[za("0x3a")](o[za("0x3e")]);s[za("0xef")].addClass([za("0x95"),za("0x108")],r),s[za("0xef")][za("0xcc")](za("0xc9"),i,r),s[za("0x6b")][za("0xa9")](r,o[za("0x3e")]),e&&(this[za("0x2f")].includes(o.markerName)?s[za("0xef")].addClass(za("0xf1"),r):s[za("0xef")].removeClass(za("0xf1"),r));for(const e of t.model[za("0x64")](o[za("0x39")])[za("0xb8")]())s[za("0xe5")][za("0x86")](e,n[za("0xa3")]);s[za("0xe5")][za("0x86")](o.item,n[za("0xa3")])};t[za("0xe3")][za("0x9f")]("dataDowncast")[za("0xb4")]((t=>{t.on(za("0x0"),((t,e,o)=>{o[za("0x31")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xd9")})})),t[za("0xe3")][za("0x9f")](za("0x1"))[za("0xb2")]({model:za("0x60"),view:(t,e)=>e[za("0x31")][za("0x12c")]?null:{group:za("0x60"),name:t.substr(11)}}),t[za("0xe3")][za("0x9f")](za("0x106")).elementToElement({view:{name:za("0x60"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t.getAttribute(za("0x7f"))+":"+t[za("0x5c")]("id");return t[za("0x5c")](za("0x67"))&&(n+=":"+t[za("0x5c")](za("0x67"))),e[za("0x65")]("$marker",{"data-name":n})}}),t[za("0xe3")][za("0x9f")](za("0x106"))[za("0xe0")]({view:za("0x60")}),t[za("0xe3")].for("editingDowncast").add((t=>{t.on(za("0x0"),n(),{priority:"high"})})),t[za("0xe3")][za("0x9f")]("editingDowncast")[za("0xb4")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[za("0x6b")][za("0x96")](e[za("0x3e")]);if(o)for(const t of o)t[za("0x27")](za("0xb5"))||(n[za("0xef")][za("0x4a")](["ck-suggestion-marker",za("0x108"),za("0xf1")],t),n[za("0xef")].removeAttribute(za("0xc9"),t),n[za("0x6b")][za("0xc6")](t,e[za("0x3e")]))}),{priority:za("0xd0")})})),t[za("0xe7")][za("0xcd")][za("0x28")]((e=>{let n=!1;const o=Array[za("0xeb")](t[za("0xe7")][za("0xcd")][za("0x2d")][za("0x131")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x3a")](x);if("suggestion"!==o)continue;const d=this[za("0x6f")][za("0xc8")](l);if(null!=a[za("0x82")])if("formatInline"==c&&(n=n||qa(a[za("0x82")],x,e,t.model[za("0x8c")])),a[za("0x82")].isCollapsed||za("0xb7")==a.newRange.root[za("0x9b")]||za("0xd")==c&&!Qa(a[za("0x82")])||za("0xbd")==c&&(Xa(i=a.newRange)||(r=i)[za("0x50")][za("0x10a")]==r[za("0x56")][za("0xf8")]&&r[za("0x50")][za("0x4c")]))e[za("0x1e")](x),n=!0;else{if(!d||!d.isInContent)continue;s[za("0xb4")](d)}}var r,i;return s[za("0x8d")]>0&&(n=!!this[za("0x79")](s)||n),n})),t[za("0xe7")][za("0xcd")][za("0x28")]((e=>{let n=!1;for(const o of t[za("0xe7")][za("0xcd")].differ.getChanges()){if(za("0x87")!=o[za("0x18")])continue;const s=o[za("0x10f")][za("0x69")](o[za("0x30")]);if(s[za("0x4c")])for(const r of this[za("0x6f")][za("0x63")]()){if(r[za("0xfa")]||!r[za("0x127")])continue;if(za("0xd")!=r.type)continue;const i=r.getFirstRange();if(i.start[za("0x10a")]!=i[za("0x56")][za("0x10a")]&&i[za("0x56")][za("0xd5")](o[za("0x10f")])){const o=t.model.createRange(i[za("0x50")],s);e[za("0x4d")](r[za("0x5f")](),{range:o}),n=!0}}}return n})),t[za("0xe7")][za("0x102")].on(za("0x21"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0xa3")]),n=this[za("0x6f")][za("0xc8")](t);n&&n[za("0x9e")](e[za("0xa3")])}})),t[za("0xe7")].document.on(za("0x72"),(()=>{const e=Array.from(t[za("0xe7")][za("0xcd")][za("0x2d")][za("0x131")]())[za("0x4")]((t=>"suggestion"===this[za("0x3a")](t.name)[za("0xf4")]));if(0===e[za("0x30")])return;e.sort(((t,e)=>{const n=t[za("0x12e")][za("0x114")],o=e[za("0x12e")][za("0x114")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x50")][za("0xf7")](o[za("0x50")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x3a")](t);if(null===s[za("0x114")]){const e=this[za("0x9c")](t);o[za("0xb4")](e)}else{const t=this._suggestions[za("0xc8")](e);null!==s[za("0x82")]||t[za("0x127")]?(n[za("0xb4")](t[za("0x144")]),o[za("0xb4")](t)):this[za("0xba")](t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x11")](za("0x12b"),t)})),t[za("0xe7")].on(za("0xf3"),((e,n)=>{const o=n[0];if(!this[za("0x6f")][za("0x8d")])return;if(!o[za("0x77")])return;if(o[za("0x5")][za("0x137")]||!o[za("0x5")][za("0xb6")])return;let s,r;switch(o.type){case za("0x87"):s=t[za("0xe7")][za("0x6d")](o.position),r=s[za("0x69")](o[za("0x36")]);break;case"split":s=t[za("0xe7")][za("0x6d")](o.splitPosition),r=t[za("0xe7")].createPositionAt(o[za("0x7c")]);break;case za("0xee"):s=t[za("0xe7")].createPositionAt(o[za("0x62")]),r=s[za("0x69")](o[za("0x36")]);break;default:return}const i=t[za("0xe7")][za("0x76")](s,r);t[za("0xe7")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[za("0xfa")])continue;if("formatInline"==t.type)continue;const n=t[za("0x12e")]&&t[za("0x12e")][za("0xdf")];(za("0xd")!=t.type||za("0x6a")==o[za("0x18")]&&!n)&&(e[za("0x13e")]||za("0x12a")==t[za("0x18")]&&e[za("0x10b")]||t[za("0x90")]()[za("0x3f")](i)&&this[za("0x38")](t,s,r))}}))}),{priority:za("0xaa")}),t[za("0xe7")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x13a")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this.trackChangesCommand[za("0x84")])return;if(o.isCollapsed)return;const r=t[za("0xe7")][za("0x8c")],{start:i,end:x}=o[za("0x90")](),a=i.nodeAfter&&r[za("0xd1")](i[za("0x10d")])?null:r[za("0x11f")](i,za("0x128")),c=x[za("0xf8")]&&r[za("0xd1")](x[za("0xf8")])?null:r[za("0x11f")](x,"backward"),l=t.model[za("0x76")](a?a.start:i,c?c[za("0x56")]:x);t[za("0xe7")][za("0x5e")]((e=>{this[za("0x6")](l);const n=t.model.schema[za("0x11f")](l[za("0x50")]);o.is("documentSelection")?e[za("0x34")](n):o.setTo(n)})),e.stop()}),{priority:e.priorities.normal+10}),t[za("0xe7")].on(za("0xce"),((e,n)=>{const o=n[n[za("0x30")]-1];o&&o.forceDefaultExecution||this[za("0xb9")]||this.trackChangesCommand[za("0x84")]&&(t[za("0xe7")][za("0x5e")]((()=>{let o=t[za("0xe7")][za("0xce")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0xc1")]=o[za("0x7")]();const s=o[za("0x56")][za("0xf8")],r=t[za("0xe7")][za("0x8c")];s&&r[za("0x5d")](s)&&!r.isObject(s)&&(o=t[za("0xe7")][za("0x76")](o[za("0x50")],t[za("0xe7")][za("0x6d")](s,za("0x56")))),this[za("0x46")](o)})),e[za("0x2b")]())}),{priority:za("0xd0")}),this[za("0x143")][za("0xfd")][za("0xb4")](za("0x9a"),this[za("0x7b")]),this[za("0x100")](za("0x9a"));const o=new p(t,this._suggestions);t[za("0xfd")][za("0xb4")](za("0x7a"),o),this[za("0x100")](za("0x7a"));const s=new C(t,this[za("0x6f")]);t.commands[za("0xb4")](za("0xe2"),s),this[za("0x100")](za("0xe2")),t[za("0xfd")][za("0xb4")]("acceptAllSuggestions",new F(t,o,this[za("0x6f")])),this[za("0x100")](za("0x7e")),t[za("0xfd")][za("0xb4")](za("0x5a"),new F(t,s,this[za("0x6f")])),this[za("0x100")](za("0x5a")),t[za("0xfd")].add(za("0x1a"),new U(t,o,this[za("0x6f")])),this.enableCommand(za("0x1a")),t[za("0xfd")][za("0xb4")]("discardSelectedSuggestions",new U(t,s,this._suggestions)),this.enableCommand(za("0xde"));const r=t[za("0x3")][za("0xc8")](za("0x49"));this[za("0x59")](r,za("0x81"),((t,{threadId:e})=>{const n=this[za("0x6f")][za("0xc8")](e);n&&n[za("0x2a")]&&1===n.commentThread[za("0x30")]&&this[za("0x10e")](e,{hasComments:!0})}),{priority:za("0x2")}),this.listenTo(r,za("0x88"),((t,{threadId:e})=>{const n=this[za("0x6f")][za("0xc8")](e);n&&n[za("0x2a")]&&!n[za("0x2a")].length&&this[za("0x10e")](e,{hasComments:!1})}),{priority:za("0x2")})}set[za("0xda")](t){if(this[za("0x93")])throw new e.CKEditorError(za("0xbb"),this);this[za("0x93")]=t}get[za("0xda")](){return this[za("0x93")]}[za("0x83")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x6f")][za("0x63")]())t&&!e.isInContent||n.push(e);return e?n.map((t=>t[za("0xfb")]())):n}[za("0x3c")](t){const n=this._suggestions[za("0xc8")](t);if(!n)throw new e.CKEditorError(za("0x85"),this);return n}[za("0x139")](t){return this._suggestions[za("0xc0")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x18")][za("0x6a")](":"),i=this._suggestions[za("0xc8")](n)||this[za("0xa7")](s,r,n,e,o);if(this[za("0x78")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i[za("0x47")]=t[za("0x47")],i[za("0xe1")]=!0,o&&o[za("0xbf")]){const t=o["@external"],e=this[za("0x66")](t[za("0xa5")]);i[za("0x8e")]=t.createdAt,i[za("0x70")]=e,i[za("0x132")]=!0}else i[za("0x8e")]=t[za("0x47")];switch(t.data&&(i.data=t[za("0x12e")]),t.attributes&&(i[za("0x16")]=t.attributes),this[za("0x93")]&&this._adapter.addSuggestion||(i[za("0x116")]=!0),this._suggestionState[za("0xc8")](i)){case za("0x10"):this[za("0xf6")][za("0x11d")](i,za("0x6c"));break;case za("0x124"):i[za("0x127")]?(this[za("0x105")](new Set([i])),this[za("0x79")](new Set([i])),this[za("0xf6")].set(i,za("0x32")),this[za("0x11")](za("0xf9"),i)):this._suggestionState.set(i,za("0x4b"))}return i}[za("0x7a")](t){this[za("0x13a")]((()=>{this[za("0x143")][za("0xe7")][za("0x5e")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0xc")]()}))}))}discardSuggestion(t){this[za("0x13a")]((()=>{this[za("0x143")][za("0xe7")][za("0x5e")]((()=>{for(const e of t[za("0xd7")]())e.discard()}))}))}enableCommand(t,n){const o=this[za("0x143")][za("0xfd")].get(t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0xa6")][za("0xb4")](o),n&&o.on(za("0xe4"),((t,e)=>{this.trackChangesCommand[za("0x84")]&&(this[za("0xb9")]||e[za("0x30")]>0&&e[e[za("0x30")]-1]&&e[e.length-1][za("0x13a")]||(n(((...t)=>o[za("0xe4")](...t,{forceDefaultExecution:!0})),...e),t[za("0x2b")]()))}),{priority:za("0xd0")})}forceDefaultExecution(t){let n,o;const s=this[za("0xb9")];this[za("0xb9")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xb9")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[za("0x46")](t,n=null,o={}){if(t[za("0xb")])return null;const s=this[za("0x143")][za("0x3")].get(za("0x23")).me;for(const{suggestion:e,meta:s}of this[za("0xe8")](t,za("0x12a")))if(s[za("0x10b")]){if(!s[za("0x13f")]){if(s.containsRangeInObject){if(!this[za("0xd4")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this[za("0x38")](e,t[za("0x50")],t[za("0x56")]);break}if(n==e[za("0x140")]&&tc(e,o)){const n=e[za("0x90")]();return n[za("0x50")][za("0xd5")](t[za("0x56")])?this[za("0x44")](e,this[za("0x9d")][za("0x76")](t[za("0x50")],n[za("0x56")])):this[za("0x44")](e,this[za("0x9d")][za("0x76")](n[za("0x50")],t[za("0x56")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xc7")+n:za("0x12a"),a=this[za("0xe9")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x71")](x,r,i,t),a}[za("0xe")](t,n=za("0x33"),o={}){const s=this[za("0x143")].plugins[za("0xc8")]("Users").me,r=this[za("0x135")][za("0x12f")](za("0x12a"),n,za("0xac"));for(const e of this[za("0x83")]())if(e.author.id==s.id&&za("0x12a")==e[za("0x18")]&&e[za("0x140")]==n&&tc(e,o)&&(r(e.getRanges(),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x110")](n);return e}for(const{suggestion:e,meta:n}of this[za("0xe8")](t,za("0x12a"))){if(!n[za("0x10b")])continue;if(!this[za("0xd4")]&&n[za("0x13e")])continue;if(!tc(e,o))continue;let s=!0;for(const n of e[za("0xa0")]())for(const e of t)if(!n[za("0x3f")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=za("0xc7")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x71")](a,i,x,e,Zo[za("0x22")]());return c}[za("0xcb")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0xb")])return null;if(za("0x111")===this._trackFormatChanges){const e=this[za("0x135")][za("0x12f")](za("0x40"),o,za("0xc"));return this[za("0x13a")]((()=>e([t],n,s))),null}const r=this.editor[za("0x3")].get("Users").me,i=[];if("always"!==this[za("0x115")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x12a")))n[za("0x10b")]&&!n.isInsideObject&&i[za("0xdd")](...e[za("0xa0")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x57")](o);e&&n[za("0xdd")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e].getDifference(t);n[za("0x92")](e,1,...o),e+=o[za("0x30")]}}return n}(t,i);x.length&&this[za("0x9d")][za("0x5e")]((()=>{for(const t of x){const e=this[za("0x135")][za("0x12f")]("formatInline",o,za("0xc"));this[za("0x13a")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x50")],a=t.end;for(const{suggestion:e,meta:n}of this[za("0xe8")](t,za("0x40"))){if(!n[za("0x10b")])continue;if(e[za("0x140")]!=o)continue;if(!tc(e,s))continue;const r=e[za("0x90")]();if(r.containsRange(t,!0))return null;x=x.isBefore(r[za("0x50")])?x:r.start,a=a.isAfter(r[za("0x56")])?a:r[za("0x56")],i?r[za("0x50")][za("0xf7")](i[za("0x90")]().start)?(i.removeMarkers(),i=e):e[za("0xc3")]():i=e}const c=this[za("0x9d")][za("0x76")](x,a);if(i)this[za("0x44")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xe9")]({id:t,type:za("0x12d")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x71")](za("0x12d")+o,t,i,c)}}return null}[za("0xa4")](t,n,o=[],s=null,r={}){n[za("0x107")]||(n.formatGroupId=n[za("0x2e")]),n[za("0xdf")]=t.is(za("0xd3")),s=s||$a(n);const i=o[za("0x19")]((t=>Ja(t,this[za("0x9d")]))),x=t.is(za("0xd3"))?t:Ja(t,this[za("0x9d")]);if(za("0x111")===this[za("0x115")]){const t=this[za("0x135")][za("0x12f")](za("0xd"),s,za("0xc"));return this[za("0x13a")]((()=>t([x],n,r))),null}i[za("0xdd")](x);let a=!0;for(const t of i)if(!this[za("0x51")](t)){a=!1;break}if(a&&za("0x8a")!==this._trackFormatChanges){const t=this._suggestionFactory[za("0x12f")](za("0xd"),s,za("0xc"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0x50")],d=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0xd"))){if(!e.isOwn)continue;if(e[za("0x13f")]||e[za("0x13e")]||e[za("0x13")])continue;if(t[za("0x12e")].formatGroupId!=n.formatGroupId)continue;if(!tc(t,r))continue;const o=t.getFirstRange();if(t.subType==s){if(o[za("0x3f")](x,!0))return null;l=l[za("0xf7")](o[za("0x50")])?l:o.start,d=d[za("0xe6")](o[za("0x56")])?d:o[za("0x56")],c?o.start[za("0xf7")](c[za("0x90")]()[za("0x50")])?(c.removeMarkers(),c=t):t[za("0xc3")]():c=t}else{const e=x[za("0x57")](o);this[za("0x53")](t,e)}}const u=this[za("0x143")][za("0x3")].get(za("0x23")).me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[za("0x9d")][za("0x76")](l,d)),c;{const t=this[za("0xe9")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x71")]("formatBlock:"+s,g,m,this[za("0x9d")][za("0x76")](l,d)),t}}[za("0xad")](t,n,o=[],s=null,r={}){n[za("0x107")]||(n[za("0x107")]=n[za("0x2e")]);const i=t[0];n[za("0xdf")]=i.is(za("0xd3")),s=s||$a(n);const x=o[za("0x19")]((t=>Ja(t,this[za("0x9d")]))),a=i.is(za("0xd3"))?t:t[za("0x19")]((t=>Ja(t,this[za("0x9d")])));if(za("0x111")===this[za("0x115")]){const t=this[za("0x135")][za("0x12f")]("formatBlock",s,za("0xc"));return this[za("0x13a")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&za("0x8a")!==this[za("0x115")]){const t=this._suggestionFactory[za("0x12f")](za("0xd"),s,za("0xc"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[za("0x143")].plugins.get(za("0x23")).me;for(const t of this[za("0x83")]()){if(t.author.id!=l.id)continue;if(za("0xd")!=t[za("0x18")]||t.data[za("0x107")]!=n[za("0x107")])continue;if(!tc(t,r))continue;const e=t[za("0x140")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[za("0x41")]()){const r=s[za("0x45")]();if(o[za("0xd5")](r)){e?(a[za("0x92")](n,1),n--):t[za("0x1e")](s[za("0xa3")]);break}}}}if(0==a.length)return null;const d=this[za("0x135")][za("0x12f")]("formatBlock",s,za("0xac"));for(const t of this[za("0x83")]())if(t.author.id==l.id&&za("0xd")==t[za("0x18")]&&t[za("0x12e")][za("0x107")]==n.formatGroupId&&t.subType==s&&tc(t,r)&&(d(t[za("0xa0")](),a)||d(a,t[za("0xa0")]()))){for(const e of a)t[za("0x110")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xc2")+s,f=this[za("0xe9")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x71")](m,u,g,t,Zo[za("0x22")]());return f}[za("0x6")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this.editor.plugins[za("0xc8")](za("0x23")).me,r=new i.LiveRange(t[za("0x50")],t[za("0x56")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x12a")))if(e[za("0x10b")]&&!e[za("0x13f")])if(t[za("0xfa")]){const e=t.getRanges()[za("0x4")]((t=>"$graveyard"!=t[za("0x29")][za("0x9b")]));if(e[za("0x138")]((t=>r[za("0x3f")](t,!0)))&&t[za("0xea")](),e[za("0x123")]((t=>t[za("0x3f")](r,!0)))){const t=this[za("0x135")][za("0x12f")](za("0xbd"),n,za("0xc"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[za("0x57")](t.getFirstRange());null!==e&&t._onDiscard([e],null,o)}if(r[za("0x7d")](),r[za("0xb")]||za("0xb7")==r[za("0x29")][za("0x9b")])return null;let x=null,a=r[za("0x50")],c=r[za("0x56")];const l=this[za("0xe8")](r,za("0xbd"));for(const{suggestion:t,meta:e}of l){const n=this[za("0x9d")][za("0x76")](a,c);if(e.isOwn&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[za("0x13")]))if(t[za("0xfa")]){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0xa0")]()){if(o[za("0x3f")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t.discard()}else{const e=t[za("0x90")]();if(e[za("0x3f")](n,!0))return t;if(!tc(t,o)){n[za("0x3f")](e)?t.removeMarkers():e.containsPosition(a)?a=e.end:e[za("0xa2")](c)&&(c=e[za("0x50")]);continue}a=a.isBefore(e.start)?a:e.start,c=c[za("0xe6")](e[za("0x56")])?c:e[za("0x56")],o=Object[za("0x121")]({},t.attributes),x?e.start[za("0xf7")](x[za("0x90")]()[za("0x50")])?(x.removeMarkers(),x=t):t.removeMarkers():x=t}}if(x)return this[za("0x44")](x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),r=this[za("0x9d")][za("0x76")](a,c),i=s.id,x=n?"deletion:"+n:"deletion",l=this[za("0xe9")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x71")](x,t,i,r),l}}[za("0x126")](t,n=za("0x33"),o={}){const s=this.editor[za("0x3")][za("0xc8")](za("0x23")).me,r=t.map((t=>new i.LiveRange(t[za("0x50")],t[za("0x56")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x12a")))e[za("0x10b")]&&!e[za("0x13f")]&&x[za("0xb4")](t);for(const e of x)if(e[za("0xfa")]){const s=e.getRanges();if((!e[za("0x16")]||!e[za("0x16")][za("0x104")])&&s[za("0x138")]((t=>r[za("0x123")]((e=>e[za("0x3f")](t,!0)))))&&e[za("0xea")](),r.every((t=>s[za("0x123")]((e=>e[za("0x3f")](t,!0)))))){const e=this[za("0x135")][za("0x12f")](za("0xbd"),n,za("0xc"));return this[za("0x13a")]((()=>e(t,null,o))),null}}else{const t=e[za("0x90")]();if(r[za("0x123")]((e=>e.containsRange(t,!0)))&&e.discard(),r[za("0x138")]((e=>t.containsRange(e,!0)))){const t=this[za("0x135")].getSuggestionCallback(za("0xbd"),n,"accept");return this[za("0x13a")]((()=>t(r,null,o))),null}}const a=this[za("0x135")].getSuggestionCallback(za("0xbd"),n,za("0xac"));let c=null;for(const t of this[za("0x83")]())if(t[za("0x70")].id==s.id&&t[za("0x127")]&&za("0xbd")==t[za("0x18")]&&t[za("0x140")]==n&&tc(t,o)&&(a(t[za("0xa0")](),r)||a(r,t.getRanges())))if(c){if(t[za("0x2a")]&&t[za("0x2a")][za("0x30")])continue;for(const e of t[za("0xa0")]())c[za("0xab")](e)||c[za("0x110")](e);t.removeMarkers()}else{c=t;for(const e of r)t[za("0xab")](e)||t[za("0x110")](e)}if(c)return c;x[za("0xf2")]();for(const{suggestion:t,meta:e}of this[za("0xe8")](r,"deletion"))e[za("0x10b")]&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[za("0x13")])&&tc(t,o)&&x.add(t);for(const t of x){const e=t.getRanges();if((!o||!o[za("0x104")])&&r[za("0x138")]((t=>e[za("0x123")]((e=>e[za("0x3f")](t,!0))))))return t;(!t.attributes||!t[za("0x16")][za("0x104")])&&e[za("0x138")]((t=>r[za("0x123")]((e=>e.containsRange(t,!0)))))&&t[za("0xea")]()}const l=(0,e.uid)(),d=s.id,u=za("0x129")+n,g=this[za("0xe9")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x7d")](),t[za("0xb")]||za("0xb7")==t[za("0x29")][za("0x9b")]||this._addSuggestionMarker(u,l,d,t,Zo.getMultiRangeId());return g}[za("0x44")](t,e){const n=t[za("0x5f")]();this[za("0x9d")][za("0x5e")]((t=>{t[za("0x4d")](n,{range:e})}))}[za("0x78")](t){const e=t.id,n=this[za("0x143")].config[za("0xc8")](za("0x15"));this._commentsRepository[za("0x13c")](e)||this[za("0x141")][za("0x24")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0x14")](e);o[za("0xca")]("isRemovable"),o[za("0x26")]=!1,t[za("0x2a")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[za("0x18")]!=n||t[za("0x140")]!=o||t[za("0x9")].id!=s)throw this.editor[za("0xb3")](za("0x13b")),new e.CKEditorError(za("0x13b"),this)}_cutOutSuggestionMarker(t,n){const o=t.getFirstRange();if(n[za("0xd5")](o))t[za("0xc3")]();else if(o[za("0x3f")](n)){const s=this[za("0x9d")].createPositionAt(n.start[za("0xf8")],"end");this[za("0x44")](t,this[za("0x9d")].createRange(o[za("0x50")],s));const r=(0,e.uid)(),i=t.creator.id,x=t.type+":"+t.subType;this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x12e")],attributes:t[za("0x16")]});const a=this[za("0x9d")][za("0x6d")](n.end[za("0x10a")],za("0x119")),c=this._model.createRange(a,o[za("0x56")]);this[za("0x71")](x,r,i,c)}else if(o[za("0xa2")](n[za("0x50")])){const e=this._model.createPositionAt(n[za("0x50")][za("0xf8")],za("0x56"));this[za("0x44")](t,this[za("0x9d")].createRange(o[za("0x50")],e))}else{const e=this._model[za("0x6d")](n.end[za("0x10a")],za("0x119"));this._setSuggestionRange(t,this[za("0x9d")][za("0x76")](e,o[za("0x56")]))}}[za("0x51")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x12a"))){if(!n[za("0x10b")])continue;const o=e.getRanges();for(const e of o)if(!t[za("0x68")](e)[za("0x30")])return!0}return!1}[za("0x112")](t){const n=this[za("0x143")][za("0x3")].get(za("0x23"))[za("0xa")](t);if(!n)throw new e.CKEditorError(za("0x58"),this);return n}[za("0x66")](t){const e=this.editor[za("0x3")].get(za("0x23")),n=(0,r.hashObject)(za("0x73")+t);return e[za("0xa")](n)||e[za("0xff")]({id:n,name:t})}[za("0xa7")](t,e,n,o,s){const r=this[za("0x112")](o),i=this._suggestionFactory[za("0x52")](t,e,n,r,s,(t=>this[za("0x10e")](n,{attributes:t})));return this[za("0x59")](i,za("0xc"),(()=>{this[za("0x10e")](n,{state:"accepted"})}),{priority:za("0xd0")}),this[za("0x59")](i,za("0xea"),(()=>{this[za("0x10e")](n,{state:za("0xbc")})}),{priority:za("0xd0")}),this[za("0x6f")][za("0x11d")](n,i),this[za("0xf6")][za("0x11d")](i,za("0x10")),i}[za("0x3a")](t){const e=t[za("0x6a")](":");return{group:e[0],type:e[1],subType:e[za("0x30")]>=5?e[2]:null,id:e[za("0x30")]<5?e[2]:e[3],authorId:e[za("0x30")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[za("0x38")](t,n,o){const s=t[za("0x90")](),r=s[za("0x50")],i=s[za("0x56")];this[za("0x44")](t,this[za("0x9d")][za("0x76")](r,n));const x=(0,e.uid)(),a=t[za("0x9")].id,c=t[za("0x18")]+(t.subType?":"+t[za("0x140")]:"");this[za("0xe9")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x16")],data:t[za("0x12e")]}),za("0xd")==t[za("0x18")]&&(o=this[za("0x9d")][za("0xd2")](o[za("0x10a")])),this._addSuggestionMarker(c,x,a,this[za("0x9d")][za("0x76")](o,i))}[za("0xe8")](t,e=null){const n=[],o=this[za("0x143")][za("0x3")][za("0xc8")](za("0x23")).me;Array[za("0xfe")](t)||(t=[t]);for(const s of this[za("0x83")]()){if(!s.isInContent)continue;if(e&&s[za("0x18")]!=e)continue;let r=!1;for(const e of s[za("0xa0")]()){for(const i of t){const t=i[za("0x50")].isEqual(e[za("0x56")])||i.end[za("0xd5")](e[za("0x50")]);if(t||i[za("0x57")](e)){const x=i[za("0x3f")](e)&&Ka(this._model[za("0x8c")],e.start,i),a=e[za("0x3f")](i)&&Ka(this._model.schema,i.start,e);n[za("0xdd")]({suggestion:s,meta:{isOwn:o==s[za("0x70")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[za("0x71")](t,e,n,o,s){this[za("0x9d")][za("0x5e")]((r=>{let i=za("0x35")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x20")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xba")](t){const e=t[za("0x1d")],n=t[za("0x136")];t[za("0x1d")]=null,null!=e&&(e[za("0x136")]=null),t[za("0x136")]=null,null!=n&&(n[za("0x1d")]=null),"ready"==this[za("0xf6")][za("0xc8")](t)&&(this[za("0xf6")][za("0x11d")](t,za("0x4b")),this[za("0x11")](za("0xed"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this.addSuggestionData(t);if(this[za("0x93")]&&this[za("0x93")][za("0x118")]){const s=this[za("0x143")][za("0x3")][za("0xc8")](za("0xec")),r=o.hasComments,i=o[za("0x140")]?o[za("0x18")]+":"+o.subType:o[za("0x18")],x=this[za("0x143")][za("0x134")],a=s[za("0xb4")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x12e")]||null,originalSuggestionId:t[za("0x11c")]||null,attributes:o[za("0x16")]};this[za("0x93")][za("0x118")](c)[za("0x11b")]((t=>{o[za("0x116")]=!0,s[za("0x99")](a),t&&t.createdAt&&(this._suggestions[za("0xc8")](n)[za("0x47")]=t[za("0x47")])}))[za("0x98")]((t=>{throw(0,e.logWarning)(za("0x37")),this[za("0x143")][za("0xe7")][za("0x142")]({isUndoable:!1},(()=>{o.discard()})),o.stopListening(),this[za("0x6f")][za("0xfc")](o.id),this[za("0xf6")][za("0xfc")](o),t}))}return o}[za("0x10e")](t,e){const n=this[za("0x143")][za("0x3")][za("0xc8")](za("0xec")),o=this[za("0x3c")](t);if(this[za("0x93")]&&this[za("0x93")][za("0xbe")])if(o._saved){const o=n[za("0xb4")](Yo(this[za("0x143")][za("0x134")],"PENDING_ACTION_SUGGESTION"));this[za("0x93")][za("0xbe")](t,e)[za("0x11b")]((()=>{n.remove(o)}))}else o.on(za("0x1f"),(()=>{this[za("0x10e")](t,e)}))}[za("0x48")](t){if(!this[za("0x93")]||!this[za("0x93")][za("0x3c")])throw new e.CKEditorError(za("0x101"),this);return this[za("0x93")][za("0x3c")](t)}[za("0x9c")](t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[za("0x6f")][za("0xc8")](e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x125")](r,n,o,s),this._suggestionState[za("0xc8")](r)){case za("0x10"):this[za("0x48")](e)[za("0x11b")]((t=>{let n=Promise.resolve();t.hasComments&&(n=this[za("0x141")][za("0x54")]({channelId:this[za("0x143")][za("0x1b")].get("collaboration.channelId"),threadId:e})),n[za("0x11b")]((()=>{this.addSuggestionData(t)._saved=!0}))})),this[za("0xf6")][za("0x11d")](r,za("0x124"));break;case za("0x4b"):this[za("0x10e")](e,{state:"open"});case za("0x6c"):this[za("0xf6")][za("0x11d")](r,za("0x32")),this[za("0x11")](za("0xf9"),r);break;case za("0x32"):this[za("0x11")](za("0x12b"),r)}return r[za("0x9e")](t),r}_refreshSuggestionsChain(t){const e=Array[za("0xeb")](t)[za("0x4")]((t=>!t[za("0xfa")])),n=this[za("0x83")]({skipNotAttached:!0})[za("0x4")]((t=>!t.isMultiRange)),o=n[za("0x4")]((e=>!t.has(e))),s=new Map(n[za("0x19")]((t=>[t,this._suggestionFactory[za("0x12f")](t[za("0x18")],t.subType,"chain")]))),r=new Map(n[za("0x19")]((t=>[t,t[za("0x90")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x30")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x30")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x30")];t++){const n=e[t];!x.has(n)&&n[za("0x1d")]&&(n[za("0x1d")][za("0x136")]===n&&(n[za("0x1d")][za("0x136")]=null),n[za("0x1d")]=null),!i[za("0xc0")](n)&&n[za("0x136")]&&(n[za("0x136")][za("0x1d")]===n&&(n[za("0x136")][za("0x1d")]=null),n[za("0x136")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x30")];o++){const n=c(t,e[o]);n&&(n[0][za("0x136")]=n[1],n[1][za("0x1d")]=n[0],i[za("0xb4")](n[0]),x.add(n[1]))}}function c(t,e){if(t[za("0x70")].id!==e[za("0x70")].id)return null;const n=s[za("0xc8")](t)(t,e,r[za("0xc8")](t),r[za("0xc8")](e));return n&&s.get(e)(t,e,r[za("0xc8")](t),r[za("0xc8")](e))?n[1][za("0x2a")]&&n[1][za("0x2a")][za("0x30")]?null:n:null}}[za("0x79")](t){const e=Array[za("0xeb")](t),n=this[za("0x83")]({skipNotAttached:!0}),o=n[za("0x4")]((e=>!t[za("0xc0")](e))),s=new Map(e.map((t=>[t,this[za("0x135")][za("0x12f")](t[za("0x18")],t.subType,za("0xac"))]))),r=new Map(n[za("0x19")]((t=>[t,t[za("0xa0")]()])));for(let t=0;t<e[za("0x30")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x30")];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.type!==e[za("0x18")]||o.author.id!==e[za("0x70")].id||o[za("0x140")]!==e[za("0x140")])continue;if(!Ya(e,o))continue;const x=s[za("0xc8")](e),a=r[za("0xc8")](e),c=r[za("0xc8")](o),l=e[za("0x2a")]&&e.commentThread.length,d=o[za("0x2a")]&&o[za("0x2a")].length;if(!l&&x(c,a))return t[za("0x3d")](o,e),r[za("0xfc")](e),!0;if(!d&&x(a,c))return t[za("0x3d")](e,o),r[za("0xfc")](o),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e[za("0xa0")]())t[za("0x110")](n);else{const n=e[za("0x90")]()[za("0x56")];this[za("0x44")](t,this._model[za("0x76")](t[za("0x90")]()[za("0x50")],n))}e[za("0xc3")]()}}class Va{constructor(t){this._editor=t,this[za("0x9d")]=t.model,this._customCallbacks=new Map,this._defaultCallbacks=new Map,this[za("0x94")]()}[za("0x52")](t,e,n,o,s,r){return new Zo(this[za("0x9d")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x12f")](t,e,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,"discard")(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[za("0x117")][za("0x11d")](s,o)}[za("0x12f")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x117")].get(o)||this[za("0x2c")].get(t+":"+n)}[za("0x94")](){const t=()=>!1,e=t=>{t[za("0x55")](((t,e)=>t.start.isBefore(e[za("0x50")])?1:-1)),this._model.change((e=>{for(const n of t){let t;t=n[za("0x56")][za("0x4c")]&&n[za("0x56")][za("0x10a")]==n[za("0x50")][za("0x10d")]?e[za("0x1c")](n[za("0x50")][za("0x10d")],"on"):e.createSelection(n),this[za("0x9d")][za("0xf")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x9d")][za("0x5e")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x19")]((t=>(Xa(t)&&(t=this[za("0x9d")].createRange(t[za("0x56")])),t)))[za("0x4")]((t=>za("0xb7")!==t[za("0x29")][za("0x9b")]));if(r[za("0x30")]<1)return;const x=Array[za("0xeb")](this[za("0x9d")][za("0xcd")].selection.getRanges()).map((t=>i.LiveRange[za("0xf5")](t)));n[za("0x34")](r);for(const t of this[za("0x113")][za("0xfd")].commands())t.refresh();s.push({forceDefaultExecution:!0}),this[za("0x113")][za("0xe4")](o,...s);const a=x[za("0x4")]((t=>za("0xb7")!=t[za("0x29")].rootName));a[za("0x30")]>0&&n[za("0x34")](a);for(const t of x)t[za("0x7d")]()}))},o=(t,e)=>1==t[za("0x30")]&&1==e.length&&t[0].end.isEqual(e[0][za("0x50")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x9d")])?[t,e]:Za(e,t,o,n,this[za("0x9d")])?[e,t]:null;this[za("0x2c")][za("0x11d")](za("0x75"),t),this[za("0x2c")].set(za("0xf0"),e),this[za("0x2c")].set(za("0xd8"),o),this._defaultCallbacks[za("0x11d")](za("0x11e"),s),this[za("0x2c")][za("0x11d")]("deletion:accept",e),this[za("0x2c")][za("0x11d")](za("0x8f"),t),this[za("0x2c")][za("0x11d")](za("0x11a"),o),this[za("0x2c")][za("0x11d")](za("0x97"),s),this[za("0x2c")][za("0x11d")](za("0x91"),n),this[za("0x2c")][za("0x11d")](za("0xdc"),t),this[za("0x2c")][za("0x11d")]("formatInline:join",o),this._defaultCallbacks[za("0x11d")](za("0x61"),t),this[za("0x2c")][za("0x11d")](za("0x8b"),n),this[za("0x2c")][za("0x11d")]("formatBlock:discard",t),this[za("0x2c")][za("0x11d")](za("0xae"),o),this._defaultCallbacks[za("0x11d")](za("0x130"),t)}}function Ka(t,e,n){for(const o of e[za("0x10a")][za("0x6e")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x29")]==o)return!1;if(!n[za("0x3b")](o))return!1;if(t[za("0xa1")](o)||t[za("0xd1")](o))return!0}return!1}function Xa(t){return t[za("0x56")][za("0x10a")]==t[za("0x50")][za("0x10d")]&&t[za("0x56")].isAtStart}function qa(t,e,n,o){const s=t=>!t[za("0x39")].is(za("0x13d"))&&!o.isObject(t[za("0x39")]),r=t.start.getLastMatchingPosition(s),i=t[za("0x56")][za("0x5b")](s,{direction:za("0x12")});return!(t.start[za("0xd5")](r)&&t[za("0x56")][za("0xd5")](i)||(r[za("0xf7")](i)?n[za("0x4d")](e,{range:n.createRange(r,i)}):n[za("0x1e")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Qa(t){const e=t[za("0x50")][za("0x10d")];return e&&e.is(za("0x4f"))}function Ja(t,e){const n=e[za("0x8c")][za("0xa1")](t)||e[za("0x8c")][za("0xcf")](t);return e[za("0x76")](e.createPositionAt(t,za("0x42")),n?e.createPositionAfter(t):e.createPositionAt(t,za("0x56")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[za("0x56")][za("0xd5")](o[za("0x50")]))return!0;if(t[za("0x18")]!=e.type)return!1;if(!n.end[za("0xc5")](o[za("0x50")]))return!1;const r=s[za("0x76")](n[za("0x56")],o[za("0x50")])[za("0x89")]();for(const t of r)if(["elementStart","elementEnd"].includes(t.type)&&s.schema[za("0xd1")](t[za("0x39")]))return!1;return!0}function Ya(t,e){return!(!t[za("0xe1")]||!e[za("0xe1")])&&Go(t[za("0x16")],e.attributes)}function tc(t,e){const n=ec(t[za("0x16")]),o=ec(e);if(!t[za("0xe1")])return!1;for(const t of Object[za("0x80")](o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[za("0x121")]({},t);return delete e[za("0x104")],delete e[za("0x74")],e}const nc=["model","PENDING_ACTION_SUGGESTION","discardSuggestion","canAccept","locale","plugins","unbind","get","execute","_setPendingAction","_removePendingAction","remove","canDiscard","getRanges","commands","_discardCommand","add","destroy","_editor","change:isDirty","_acceptCommand","listenTo","acceptSuggestion","_pendingAction","canEditAt","isDirty","view","PendingActions","bind","isEnabled","commentThreadController"];var oc,sc;oc=nc,sc=148,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[rc("0x7")]=e,this[rc("0x2")]=n,this[rc("0x6")]=o,this[rc("0x19")]=t,this[rc("0x1b")]=t[rc("0x15")][rc("0xe")](rc("0x1d")),this[rc("0x16")]=t[rc("0x15")][rc("0xe")]("discardSuggestion"),this[rc("0x2")][rc("0x4")]("isEnabled").to(this._acceptCommand,this[rc("0x16")],((t,e)=>t||e)),this[rc("0x2")].bind(rc("0xa")).to(this[rc("0x1b")],rc("0x5"),(t=>t&&this[rc("0x19")].model.canEditAt(e.getRanges()))),this.view[rc("0x4")](rc("0x13")).to(this[rc("0x16")],"isEnabled",(t=>t&&this._editor[rc("0x7")][rc("0x0")](e[rc("0x14")]()))),this[rc("0x1e")]=null,n[rc("0x1")]&&this[rc("0x10")](),this[rc("0x1c")](n,"acceptSuggestion",(()=>this[rc("0x1d")]())),this.listenTo(n,rc("0x9"),(()=>this[rc("0x9")]())),this[rc("0x1c")](n,rc("0x1a"),(()=>{n.isDirty?this[rc("0x10")]():this[rc("0x11")]()}))}[rc("0x1d")](){this[rc("0x1b")].execute(this.model.id)}[rc("0x9")](){this[rc("0x16")][rc("0xf")](this[rc("0x7")].id)}[rc("0x18")](){this.view.unbind(rc("0x5")),this[rc("0x2")][rc("0xd")]("canAccept"),this[rc("0x2")][rc("0xd")]("canDiscard"),this.stopListening(),this.commentThreadController.destroy(),this[rc("0x1e")]&&this[rc("0x11")]()}[rc("0x10")](){const t=Yo(this[rc("0x19")][rc("0xb")],rc("0x8"));this[rc("0x1e")]=this[rc("0x19")][rc("0xc")][rc("0xe")](rc("0x3"))[rc("0x17")](t)}[rc("0x11")](){null!==this._pendingAction&&this._editor[rc("0xc")][rc("0xe")](rc("0x3"))[rc("0x12")](this._pendingAction),this[rc("0x1e")]=null}}const xc=["CommentView","assign","_createCommentViews","bind","set","destroy","locale","_model","isReadOnly","_localUser","commentThread","isActive","value","commentsListView","cancel","fire","isDirty","updateComment","commentThreadInputView","commentInputView","setData","hasDirtyComment","focus","canDiscard","showInput","descriptionParts","editorConfig","submit","delegate","disabledSubmit","authoredAt","addComment","_createCommentThreadInputView","editor","_config","length"];var ac,cc;ac=xc,cc=421,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this.commentThreadInputView=null,this[lc("0xf")](lc("0x16"),!1),this.set(lc("0x5"),e[lc("0x5")]),this[lc("0xe")]("authoredAt").to(e),this[lc("0xf")](lc("0x0"),[]),this[lc("0xf")]("isDirty",!1),this.set("isEnabled",!1),this.set("canAccept",!1),this[lc("0xf")](lc("0x22"),!1),this[lc("0x12")]=e,this[lc("0x14")]=n,this[lc("0x9")]=o,o.disableComments?this[lc("0xf")](lc("0xa"),1):this[lc("0xd")]()}[lc("0x21")](){this.element[lc("0x21")]()}destroy(){this[lc("0x18")]&&this[lc("0x18")][lc("0x10")](),this[lc("0x1d")]&&this[lc("0x1d")].destroy(),super.destroy()}_createCommentViews(){const{CommentsListView:t}=this._config;this[lc("0x18")]=new t(this[lc("0x11")],this[lc("0x12")][lc("0x15")],Object[lc("0xc")]({CommentView:this[lc("0x9")][lc("0xb")]},this._config)),this[lc("0x18")][lc("0x3")]("removeComment").to(this),this[lc("0x18")][lc("0x3")](lc("0x1c")).to(this),this[lc("0x18")][lc("0xe")](lc("0x16")).to(this),this[lc("0xf")](lc("0xa"),this[lc("0x18")][lc("0xa")]+1),this[lc("0xe")]("length").to(this[lc("0x18")],lc("0xa"),(t=>t+1)),this[lc("0x1d")]=this[lc("0x7")](),this.on("removeComment",(()=>this.focus())),this[lc("0xe")](lc("0x1b")).to(this[lc("0x18")],lc("0x20"),this.commentThreadInputView[lc("0x1e")],lc("0x17"),((t,e)=>t||!!e))}[lc("0x7")](){const{CommentThreadInputView:t}=this[lc("0x9")],e=new t(this[lc("0x11")],this[lc("0x14")],this._config[lc("0x1")]),n=e[lc("0x1e")];return e[lc("0xe")](lc("0x23")).to(this,"isActive",this[lc("0x12")][lc("0x15")],lc("0x13"),n,lc("0x17"),((t,e,n)=>!!n||t&&!e)),n.on(lc("0x2"),((t,e)=>{this[lc("0x1a")](lc("0x6"),e),n[lc("0x8")][lc("0x1f")]("")})),n.on(lc("0x19"),(()=>this[lc("0x21")]())),n[lc("0xe")](lc("0x4")).to(this._model[lc("0x15")],lc("0x13")),e}}const uc=["commentThreadInputView","join","split","discardButton","isExternal","canDiscard","_config","ck-suggestion__info-name","ck-annotation__actions","commentsListView",".ck-annotation__content-wrapper","execute","_createButton","attributes","acceptButton","@external","ck-suggestion--discard","setTemplate","ck-suggestion--accept","ck-suggestion--disabled-comments","ck-suggestion-wrapper--active","author","ck-suggestion-wrapper","ck-suggestion__user",'<span class="ck-suggestion-color" style="background-color: ',"editorDestroyed","ck-suggestion__actions","render","delegate","innerHTML",'"></span>',"check","isActive","Accept suggestion",'" title="',"_model","span","</p>","ck-suggestion","editorReady","map","getUserViewNotificationText","ck-annotation","extendTemplate","time","_descriptionElement","change:description","locale","bind","color","authoredAt","children","formatDateTime","ck-annotation__user","ck-suggestion__info","set","acceptSuggestion","getExternalSuggestionNote","bindTemplate",'<span class="ck-suggestion-type">',"EXTERNAL_AVATAR","ck-comment__external","title","<p>","ck-suggestion__main","descriptionParts","description","content","Discard suggestion","importWord","source","div","element","cancel","ck-suggestion-","userView","type","ck-annotation__info-name","ck-annotation__main","name","push","creator","ck-annotation__content-wrapper","isEnabled"];var gc,mc;gc=uc,mc=342,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends dc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x31")](fc("0x46"),""),this[fc("0x2a")]("type").to(this,fc("0x3b"),(t=>t&&t[0]?t[0][fc("0x46")]:"")),this.bind(fc("0x3c")).to(this,fc("0x3b"),this,fc("0x1a"),((t,e)=>{let n="";for(const e of t)n+=fc("0x39")+pc(e[fc("0x3d")],e[fc("0x2b")])+fc("0x1f");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[fc("0x8")]=this[fc("0x6")](Yo(e,fc("0x1b")),t.icons[fc("0x19")],fc("0xc"),fc("0x32"),"sw"),this[fc("0x8")].bind(fc("0x4d")).to(this,"canAccept"),this.discardButton=this[fc("0x6")](Yo(e,fc("0x3e")),t.icons[fc("0x43")],fc("0xa"),"discardSuggestion","sw"),this[fc("0x51")][fc("0x2a")]("isEnabled").to(this,fc("0x53")),this[fc("0x45")]=new r.UserView(e,this[fc("0x1d")].author,this[fc("0x23")]()),this[fc("0x45")][fc("0x25")]({attributes:{class:[fc("0x11"),fc("0x2f")]}}),this[fc("0xb")](this.getTemplate())}getTemplate(){const t=this[fc("0x34")],e=[{tag:fc("0x41"),attributes:{class:[fc("0x30"),"ck-annotation__info"]},children:[{tag:fc("0x1e"),children:[{text:this[fc("0x45")][fc("0x49")]}],attributes:{class:[fc("0x1"),fc("0x47")]}},{tag:fc("0x26"),attributes:{datetime:t.to(fc("0x2c")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to(fc("0x2c"),(t=>this._config[fc("0x2e")](t)))}]}]},{tag:"div",attributes:{class:[fc("0x14"),fc("0x2")]},children:[this.acceptButton,this.discardButton]},{tag:fc("0x41"),attributes:{class:[fc("0x4c")]}}];this[fc("0x1d")][fc("0x52")]&&e[fc("0x4a")]({tag:"div",attributes:{class:[fc("0x37")]},children:[{text:this[fc("0x33")]()}]});const n={tag:"div",attributes:{class:[fc("0x10"),t.if(fc("0x1a"),fc("0xe")),t.to("type",(t=>fc("0x44")+t)),this[fc("0x0")].disableComments&&fc("0xd")],"data-suggestion-id":this[fc("0x1d")].id,"data-thread-id":this[fc("0x1d")].commentThread.id,"data-author-id":this._model[fc("0xf")].id,tabindex:-1},children:[{tag:fc("0x41"),attributes:{class:[fc("0x20"),fc("0x24")]},children:[this[fc("0x45")],{tag:"div",attributes:{class:[fc("0x3a"),fc("0x48")]},children:e}]}]};return this.commentsListView&&this[fc("0x4e")]&&(n[fc("0x2d")][fc("0x4a")](this.commentsListView,this.commentThreadInputView),this[fc("0x3")][fc("0x16")](fc("0x21")).to(this),this[fc("0x3")][fc("0x16")](fc("0x13")).to(this),this.commentThreadInputView[fc("0x16")]("editorReady").to(this),this[fc("0x4e")][fc("0x16")]("editorDestroyed").to(this)),n}render(){super[fc("0x15")](),this[fc("0x27")]=this[fc("0x42")].querySelector(fc("0x4")),this._descriptionElement[fc("0x17")]=this[fc("0x3c")],this.on(fc("0x28"),((t,e,n)=>{this[fc("0x27")][fc("0x17")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[fc("0x29")]);return i[fc("0x31")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x25")]({attributes:{class:n}}),i.on(fc("0x5"),(()=>{this.fire(o,this[fc("0x1d")].id)})),i}[fc("0x33")](){return fc("0x3f")===this[fc("0x1d")][fc("0x7")][fc("0x9")].source?Yo(this[fc("0x29")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[fc("0x29")],"EXTERNAL_SUGGESTION")}[fc("0x23")](){return this._model[fc("0x52")]?fc("0x3f")===this[fc("0x1d")][fc("0x7")][fc("0x9")][fc("0x40")]?Yo(this[fc("0x29")],"EXTERNAL_IMPORT_WORD_AVATAR",this[fc("0x1d")][fc("0x4b")].name):Yo(this[fc("0x29")],fc("0x36"),this._model.creator[fc("0x49")]):null}}function pc(t,e){let n="";return n+=t[fc("0x50")]("*")[fc("0x22")](((t,e)=>e%2!=0?fc("0x35")+bc(t)+"</span>":bc(t)))[fc("0x4f")](""),e&&(n+=fc("0x12")+e.value+fc("0x1c")+e[fc("0x38")]+fc("0x18")),n}function bc(t){const e=document.createElement(fc("0x1e"));return e.innerText=t,e.innerHTML}const Ec=["some","addComment","arrowView","size","listenTo","CommentsUI","TrackChangesEditing","Discard all suggestions","getDescriptions","switchbutton","mainView","plugins","_unbindEditors","getMarkerNames","editing","getByInnerView","stopListening","push","createAnnotation","isInContent","Discard all selected suggestions","getRanges","SuggestionThreadView","_handleSuggestionControllerDelayed","hasSuggestion","isDirty","suggestion-","suggestionLoaded","bind","_handleControllerBuffer","destroy","suggestionChanged","buttonView","EditorAnnotations","length","config","_suggestionToController","comments.editorConfig","delete","Track changes","_annotationViews","activeAnnotations","define","lowest","focus","view","_updateController","actionView","type","_initializeController","commands","innerView","value","add","comments","head","map","toMany","separator","execute","acceptSelectedSuggestions","change:previous","TrackChangesUI","isOn","descriptionParts","addSourceCollector","createCommentThreadController","has","editor","discardButton","discardAllSuggestions","discardSelectedSuggestions","from","comments.maxThreadTotalWeight","unbind","commentThread","Accept all selected suggestions","source","Annotations","get","CommentsRepository","trackChanges.disableComments","trackChanges","getJoined","_destroyController","_refreshActiveMarkers","keys","filter","locale","_descriptionFactory","componentFactory","refreshSelectedViews","registerAnnotation","getAllAdjacentSuggestions","model","button","getMarkers","commandName","_viewToController","activeMarkers","set","previous","isEnabled","_createUIButton"];var _c,Tc;_c=Ec,Tc=334,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 requires(){return[Wa,r.Users,Cc("0x3a"),Cc("0x38"),Cc("0xb")]}static get pluginName(){return Cc("0x28")}constructor(t){super(t),this[Cc("0xe")]=new Map,this[Cc("0x4c")]=new Map,this[Cc("0x12")]=new Map,this[Cc("0x7")]=new Map;const e=this[Cc("0x2e")][Cc("0xd")];e[Cc("0x14")]("trackChanges.SuggestionThreadView",hc),e[Cc("0x14")](Cc("0x3b"),!1),this._disableComments=e[Cc("0x39")](Cc("0x3b"))}_handleSuggestionControllerDelayed(t,e){0===this[Cc("0x7")][Cc("0x55")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController[Cc("0x2d")](t);n||e?n&&e&&this._destroyController(t):this[Cc("0x1b")](t)}this[Cc("0x2e")][Cc("0x5d")][Cc("0x39")](Cc("0xb"))[Cc("0x45")](),this[Cc("0x3f")](),this[Cc("0x7")].clear()}),10),this[Cc("0x7")].set(t,e)}init(){const t=this[Cc("0x2e")],e=t[Cc("0x5d")].get(Cc("0x58")),n=t[Cc("0x5d")][Cc("0x39")](Cc("0x38")),o=t.plugins[Cc("0x39")](Cc("0xb")),s=t[Cc("0x5d")][Cc("0x39")](Cc("0x3a"));t.ui[Cc("0x44")][Cc("0x1f")](Cc("0x3c"),(t=>this[Cc("0x51")](t))),o[Cc("0x2b")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x32")](this[Cc("0xe")])){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Cc("0x65")])continue;if(t.isMultiRange){s.push(...t[Cc("0x67")]());continue}const e=t.getFirstRange();if(s.length>0){const t=s[0][Cc("0x3d")](e);if(t){s[0]=t;continue}}s[Cc("0x63")](e)}t[Cc("0x63")]([n[Cc("0x17")],s])}return t})),this[Cc("0x56")](e,Cc("0x5"),((t,e)=>{this[Cc("0x56")](e,Cc("0x27"),((t,n,o,s)=>{e.isInContent&&(null==o?(this._updateController(s[Cc("0x21")]),this[Cc("0x1")](e,!1)):(this[Cc("0x18")](o.head),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Cc("0x4f")]?this._handleSuggestionControllerDelayed(e,!1):this[Cc("0x18")](e[Cc("0x21")])})),this[Cc("0x56")](e,"suggestionUnloaded",((t,e,n)=>{this[Cc("0x62")](e,Cc("0x27")),this[Cc("0x7")][Cc("0x10")](e);const o=n?n[Cc("0x21")]:e,s=this[Cc("0xe")][Cc("0x39")](o);null!==n&&this[Cc("0x18")](o),null===n&&s&&this[Cc("0x3e")](e)})),this.listenTo(e,Cc("0x9"),((t,e)=>{this[Cc("0x18")](e)})),this[Cc("0x56")](n,"change:activeAnnotations",(()=>{this[Cc("0x3f")]()})),this[Cc("0x56")](s,Cc("0x53"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x2")](n))return;const s=e.getSuggestion(n);this._suggestionToController[Cc("0x39")](s).view[Cc("0x16")]()}),{priority:Cc("0x15")})}[Cc("0x3f")](){const t=this[Cc("0x2e")].plugins[Cc("0x39")](Cc("0x38")),e=this[Cc("0x2e")][Cc("0x5d")][Cc("0x39")](Cc("0x58")),n=Array.from(t[Cc("0x13")],(t=>t[Cc("0x1d")]))[Cc("0x41")]((t=>this[Cc("0x4c")][Cc("0x2d")](t))),o=[];for(const t of n){const e=this._viewToController.get(t)[Cc("0x48")][Cc("0x47")]();o.push(...e.reduce(((t,e)=>[...t,...e[Cc("0x5f")]()]),[]))}e[Cc("0x4d")]=o}[Cc("0x51")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Cc("0x1c")][Cc("0x39")]("trackChanges"),r=Yo(t,Cc("0x11"));n.buttonView.set({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("0xa")].bind(Cc("0x29")).to(o,Cc("0x1e")),n[Cc("0xa")].on("execute",(()=>{o.execute(),this[Cc("0x2e")][Cc("0x60")][Cc("0x17")].focus()}));const i=new e.Collection,x=[{type:Cc("0x5b"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Cc("0x24")},{type:Cc("0x49"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:"acceptAllSuggestions"}},{type:Cc("0x49"),model:{withText:!0,label:Yo(t,Cc("0x36")),commandName:Cc("0x26")}},{type:"button",model:{withText:!0,label:Yo(t,Cc("0x59")),commandName:Cc("0x30")}},{type:Cc("0x49"),model:{withText:!0,label:Yo(t,Cc("0x66")),commandName:Cc("0x31")}}];for(const t of x){let e={type:Cc("0x24")};if(t[Cc("0x48")]){const n=new s.Model(t[Cc("0x48")]),o=this[Cc("0x2e")][Cc("0x1c")][Cc("0x39")](n.commandName);n.bind(Cc("0x29"),Cc("0x50")).to(o,Cc("0x1e"),Cc("0x50")),e={type:t[Cc("0x1a")],model:n}}i[Cc("0x1f")](e)}(0,s.addListToDropdown)(n,i);const a=x[Cc("0x41")]((t=>null!=t[Cc("0x48")]))[Cc("0x22")]((t=>this.editor.commands[Cc("0x39")](t[Cc("0x48")][Cc("0x4b")]))),c=n[Cc("0xa")];return c[Cc("0x19")].unbind(Cc("0x50")),c.arrowView[Cc("0x34")](Cc("0x50")),c.actionView.bind(Cc("0x50")).to(o,Cc("0x50")),c[Cc("0x54")][Cc("0x6")](Cc("0x50"))[Cc("0x23")](a,Cc("0x50"),((...t)=>t[Cc("0x52")]((t=>t)))),n.on(Cc("0x25"),(t=>{this.editor[Cc("0x25")](t[Cc("0x37")][Cc("0x4b")]),this[Cc("0x2e")][Cc("0x60")].view.focus()})),n}[Cc("0x1b")](t){const e=this[Cc("0x2e")],n=e.config,o=e[Cc("0x5d")].get(Cc("0x38")),s=e.plugins[Cc("0x39")]("CommentsRepository"),i=e[Cc("0x5d")][Cc("0x39")](Cc("0xb")),x=e[Cc("0x5d")][Cc("0x39")](r.Users).me,a=n[Cc("0x39")]("trackChanges")[Cc("0x0")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Cc("0x39")](Cc("0x57"));let d,u;this[Cc("0x12")].has(t.id)?(u=this[Cc("0x12")][Cc("0x39")](t.id),d=u[Cc("0x5c")]):(d=new a(e[Cc("0x42")],t,x,{disableComments:this._disableComments,editorConfig:n[Cc("0x39")](Cc("0xf")),maxCommentsWhenCollapsed:n[Cc("0x39")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Cc("0x39")](Cc("0x33")),maxCommentCharsWhenCollapsed:n[Cc("0x39")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x39")](Cc("0x42"))),CommentView:n[Cc("0x39")](Cc("0x20")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on(Cc("0x25"),(()=>{e[Cc("0x60")][Cc("0x17")].focus()})),d[Cc("0x2f")].on("execute",(()=>{e[Cc("0x60")][Cc("0x17")][Cc("0x16")]()})),u=o.createAnnotationView(this.editor[Cc("0x42")],d),u.bind(Cc("0x3")).to(d,"isDirty"),u[Cc("0x6")](Cc("0xc")).to(d),u[Cc("0x6")]("type").to(d,Cc("0x1a"),(t=>Cc("0x4")+t)),this[Cc("0x12")].set(t.id,u));const g=s[Cc("0x2c")](t[Cc("0x35")],d),m=new ic(e,t,d,g),f=t[Cc("0x47")]()[Cc("0x41")]((t=>t[Cc("0x65")]));d[Cc("0x2a")]=e.plugins[Cc("0x39")]("TrackChangesEditing")[Cc("0x43")][Cc("0x5a")](f),this[Cc("0xe")][Cc("0x4e")](t,m),this[Cc("0x4c")][Cc("0x4e")](d,m);const h=o[Cc("0x64")]({view:u,target:()=>{const n=[],o=t[Cc("0x47")]().filter((t=>t[Cc("0x65")]));for(const t of o)n[Cc("0x63")](...t[Cc("0x4a")]());return(0,r.getAllMarkersDomElementsSorted)(e[Cc("0x60")],n)},type:()=>Cc("0x4")+m[Cc("0x17")].type});s._bindAnnotationToEditors(d,h),o[Cc("0x1f")](h),i[Cc("0x46")](h)}[Cc("0x3e")](t){const e=this[Cc("0x2e")][Cc("0x5d")][Cc("0x39")](Cc("0x3a")),n=this[Cc("0x2e")][Cc("0x5d")].get(Cc("0x38")),o=this._suggestionToController[Cc("0x39")](t),s=o[Cc("0x17")],r=n[Cc("0x61")](s);e[Cc("0x5e")](s),r&&n.remove(r),this[Cc("0xe")][Cc("0x10")](t),this._viewToController[Cc("0x10")](s),o[Cc("0x8")]()}[Cc("0x18")](t){if(!t[Cc("0x65")]||!this[Cc("0xe")][Cc("0x2d")](t))return;const e=this[Cc("0x2e")][Cc("0x5d")][Cc("0x39")]("TrackChangesEditing"),n=this[Cc("0xe")][Cc("0x39")](t),o=t[Cc("0x47")]();n[Cc("0x17")][Cc("0x2a")]=e[Cc("0x43")][Cc("0x5a")](o)}[Cc("0x8")](){for(const t of this[Cc("0xe")][Cc("0x40")]())this._destroyController(t);for(const t of this._annotationViews.values())t[Cc("0x5c")][Cc("0x8")]();super[Cc("0x8")]()}}var kc,Ac,vc=["plugins","pluginName","getSuggestions","Comments","editor","adapter","addSuggestionData","get","addSuggestion"];kc=vc,Ac=274,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 requires(){return[Wa,yc,Rc("0x8")]}static get[Rc("0x6")](){return"TrackChanges"}set[Rc("0x1")](t){this.editor[Rc("0x5")][Rc("0x3")](Wa)[Rc("0x1")]=t}get[Rc("0x1")](){return this[Rc("0x0")][Rc("0x5")][Rc("0x3")](Wa)[Rc("0x1")]}[Rc("0x4")](t){return this.editor[Rc("0x5")][Rc("0x3")](Wa)[Rc("0x2")](t)}[Rc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0x0")][Rc("0x5")][Rc("0x3")](Wa)[Rc("0x7")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[Rc("0x0")][Rc("0x5")][Rc("0x3")](Wa).getSuggestion(t)}}const Ic=["editor","data","_adapter","getSuggestions","createElement","editorCreator","getRootsAttributes","get","name","getFullData","CommentsRepository","getRootNames","createDocumentFragment","map","TrackChangesEditing","plugins","create","getDataWithAcceptedSuggestions","document","requires","TrackChangesDataGetter","init","track-changes-data-invalid-editor-creator","div","reduce","trackChangesData","result","trackChangesData.editorCreator","useAnonymousUser","define","acceptAllSuggestions","execute","model","addUser","discardAllSuggestions","rootsAttributes","destroy","config","TrackChangesData","pluginName"];var Lc,Nc;Lc=Ic,Nc=402,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=["Pagination"];class Oc extends t.Plugin{static get[Mc("0x11")](){return[Wa]}static get[Mc("0x25")](){return Mc("0x24")}[Mc("0x13")](){const t=this[Mc("0x26")];if(t[Mc("0x23")][Mc("0x1b")](Mc("0x19"),(e=>{const n=t.model.document[Mc("0x9")]().reduce(((t,e)=>(t[e]="",t)),{});return t.constructor[Mc("0xe")](n,e)})),"function"!=typeof t[Mc("0x23")][Mc("0x5")](Mc("0x17"))[Mc("0x3")])throw new e.CKEditorError(Mc("0x14"))}[Mc("0xf")](t){return Dc(this[Mc("0x26")],!0,t)}getDataWithDiscardedSuggestions(t){return Dc(this[Mc("0x26")],!1,t)}}class Fc extends t.Plugin{static get[Mc("0x25")](){return Mc("0x12")}constructor(t){super(t),this[Mc("0x18")]="end"}init(){this[Mc("0x26")][Mc("0xd")][Mc("0x5")](Mc("0x8"))[Mc("0x0")]={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("0x26")][Mc("0xd")][Mc("0x5")](Mc("0xc"))[Mc("0x0")]=null}}function Pc(t){return void 0!==t[Mc("0x4")]}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o.plugins.push(Wa,Fc),o[Mc("0x21")]=Pc(t)?t[Mc("0x4")]():void 0;const s=document[Mc("0xa")](),i=t.config[Mc("0x5")](Mc("0x17"))[Mc("0x3")],x=await i(o,(()=>function(t){const e=document[Mc("0x2")](Mc("0x15"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Mc("0x1e")][Mc("0x10")].getRootNames()[Mc("0x16")](((e,n)=>(e[n]=t[Mc("0x27")][Mc("0x5")]({rootName:n}),e)),{}),o=t[Mc("0xd")][Mc("0x5")]("Users").users[Mc("0xb")]((t=>({id:t.id,name:t[Mc("0x6")]}))),s=t[Mc("0xd")].get(Mc("0xc"))[Mc("0x1")]({skipNotAttached:!0,toJSON:!0}),r=e[Mc("0xd")].get("Users"),i=e.plugins.get(Mc("0xc"));for(const t of o)r.getUser(t.id)||r[Mc("0x1f")](t);r.me||r[Mc("0x1a")]();for(const t of s)i.addSuggestionData(t);e[Mc("0x27")].set(n)}(t,x),x[Mc("0x1d")](Mc(e?"0x1c":"0x20"));const a=Pc(x)?x[Mc("0x7")](n):x[Mc("0x27")].get(n);return await x[Mc("0x22")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["TrackChangesCommand","has","_disableUnsupportedCommands","_enabledCommands","isEnabled","refresh","editor","_isEnabledBasedOnSelection","commands","forceDisabled","execute","value","affectsData","clearForceDisabled"];var c,l;c=a,l=314,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0xb")]=e,this[u("0x5")]=!1,this[u("0xd")](),this[u("0x1")]=!1}[u("0xd")](){this[u("0xc")]=!0}[u("0x4")](){this.value=!this[u("0x5")],this.value?this[u("0xa")]():this._enableCommands()}[u("0xa")](){for(const t of this[u("0x0")][u("0x2")][u("0x2")]())t.affectsData&&!this[u("0xb")][u("0x9")](t)&&t[u("0x3")](u("0x8"))}_enableCommands(){for(const t of this.editor[u("0x2")][u("0x2")]())t[u("0x6")]&&!this[u("0xb")].has(t)&&t[u("0x7")](u("0x8"))}}const g=["_suggestions","editor","_isEnabledBasedOnSelection","plugins","model","refresh","execute","isEnabled","TrackChangesEditing","get","acceptSuggestion","track-changes-accept-suggestion-not-found"];var f,m;f=g,m=155,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x1")]=e,this[h("0x6")](),this[h("0x3")]=!1}[h("0x6")](){this[h("0x8")]=!0}[h("0x7")](t){const n=this[h("0x1")].get(t);if(!n)throw new e.CKEditorError(h("0x0"),this);const o=n.getRanges();this[h("0x2")][h("0x5")].canEditAt(o)&&this.editor[h("0x4")][h("0xa")](h("0x9"))[h("0xb")](n)}}const b=["track-changes-discard-suggestion-not-found","isEnabled","editor","get","plugins","TrackChangesEditing","refresh","discardSuggestion","getRanges","execute","_suggestions","canEditAt"];var E,_;E=b,_=361,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x9")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[T("0x5")](){this[T("0x0")]=!0}[T("0x8")](t){const n=this[T("0x9")].get(t);if(!n)throw new e.CKEditorError(T("0xb"),this);const o=n[T("0x7")]();this[T("0x1")].model[T("0xa")](o)&&this[T("0x1")][T("0x3")][T("0x2")](T("0x4"))[T("0x6")](n)}}const C=["isObject","end","isIntersecting","createPositionAfter","deletion","map","change","createPositionAt","isTouching","type"," [color ","length","schema","getRanges","replace","isInContent","isArray","content","createRange","isMultiRange","splice","createPositionBefore","join","color"];var A,k;A=C,k=415,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t.sort(((t,e)=>"deletion"==t[I("0x2")]&&I("0x15")!=e[I("0x2")]?-1:I("0x15")!=t.type&&"deletion"==e[I("0x2")]?1:0))}function v(t,e){let n,o=0;const i=[],r=e[I("0x5")];for(;o<t[I("0x4")];){const s=t[o],x=t[o+1];n||(n=e[I("0xe")](s)),R(e,s,x)||(i.push(e[I("0xb")](n,r[I("0x11")](s)?e[I("0x14")](s):e[I("0x0")](s,I("0x12")))),n=null),o++}return i}function R(t,e,n){if(!n)return!1;const o=t[I("0x14")](e),i=t.createPositionBefore(n);return o[I("0x1")](i)}function N(t,e,n){for(;n[I("0x4")];){const o=n[I("0xd")](0,100);t[I("0x17")]((()=>{for(const t of o)t[I("0x8")]&&e.execute(t.id)}))}}const L=["editor","canEditAt","from","some","isEnabled","_isEnabledBasedOnSelection","execute","getRanges","model","_suggestions","values","_command"];var M,w;M=L,w=495,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x8")]=e,this[O("0x6")]=n,this.refresh(),this[O("0x2")]=!1}refresh(){const t=Array.from(this[O("0x6")][O("0x7")]())[O("0x0")]((t=>t.isInContent));this.isEnabled=this[O("0x8")][O("0x1")]&&t}[O("0x3")](){const t=S(Array[O("0xb")](this[O("0x6")].values()));for(const e of t){const t=e[O("0x4")]();if(!this.editor[O("0x5")][O("0xa")](t))return}N(this[O("0x9")].model,this._command,t)}}const D=["canEditAt","selection","values","from","document","model","refresh","editor","_suggestions","_command","isEnabled","_selectedSuggestions","size","_isEnabledBasedOnSelection","getRanges"];var B,P;B=D,P=462,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this[U("0xb")]=n,this[U("0xe")]=new Set,this[U("0x9")](),this[U("0x1")]=!1}[U("0x9")](){const t=this[U("0xa")][U("0x8")][U("0x7")][U("0x4")],e=Array[U("0x6")](this._suggestions[U("0x5")]());this[U("0xe")]=function(t,e){const n=Array.from(t[I("0x6")]()),o=new Set;for(const i of e)if(i[I("0x8")])for(const e of n)for(const n of i[I("0x6")]())(e[I("0x13")](n)||t.isCollapsed&&!i[I("0xc")]&&i.next&&n[I("0x12")][I("0x1")](e.start))&&o.add(i);return o}(t,e),this[U("0xd")]=this[U("0xc")][U("0xd")]&&!!this[U("0xe")][U("0x0")]}execute(){const t=S(Array[U("0x6")](this._selectedSuggestions));for(const e of t){const t=e[U("0x2")]();if(!this[U("0xa")][U("0x8")][U("0x3")](t))return}N(this[U("0xa")][U("0x8")],this[U("0xc")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Q=function(){this.__data__=new Z,this.size=0};const Y=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const J=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const vt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?St:yt).test(Tt(t))};const Rt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=Rt(t,e);return vt(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Yt(t){var e=this.__data__=new Z(t);this.size=e.size}Yt.prototype.clear=Q,Yt.prototype.delete=Y,Yt.prototype.get=J,Yt.prototype.has=tt,Yt.prototype.set=Qt;const Jt=Yt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const ve=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var Re=ve&&ve.isTypedArray;const Ne=Re?Ae(Re):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Ye=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Je=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Je(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const vn=Sn;var Rn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Rn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==vn(t)};var Wn=ve&&ve.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==vn(t)};var Xn=ve&&ve.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Qn="[object Function]",Yn="[object Object]",Jn={};Jn[Zn]=Jn["[object Array]"]=Jn["[object ArrayBuffer]"]=Jn["[object DataView]"]=Jn["[object Boolean]"]=Jn["[object Date]"]=Jn["[object Float32Array]"]=Jn["[object Float64Array]"]=Jn["[object Int8Array]"]=Jn["[object Int16Array]"]=Jn["[object Int32Array]"]=Jn["[object Map]"]=Jn["[object Number]"]=Jn[Yn]=Jn["[object RegExp]"]=Jn["[object Set]"]=Jn["[object String]"]=Jn["[object Symbol]"]=Jn["[object Uint8Array]"]=Jn["[object Uint8ClampedArray]"]=Jn["[object Uint16Array]"]=Jn["[object Uint32Array]"]=!0,Jn["[object Error]"]=Jn[Qn]=Jn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Ye(e,x)}else{var d=vn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Yn||d==Zn||g&&!r){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Jn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Jt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,io=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Io=function(t,e){return t.has(e)};const So=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=it?it.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=vo;case"[object Set]":var a=1&o;if(x||(x=Ro),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:vn(t),c=x?Do:vn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Jt),s||Ne(t)?So(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Jt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Jt),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_saved","onAttributesChange","markers","nodeBefore","reduce","addMarkerName","_onDiscard","author","nodeAfter","start","change","addRange","getRange","_model","add","get","isIntersecting","getFirstMarker","previous","substr","creator","commentThread","type","decorate","attributes","getRanges","hasComments","onDiscard","set","clear","_markerNames","data","_onAttributesChange","head","_onAccept","toJSON","push","getAllAdjacentSuggestions","end","getFirstRange","split","addMarker","next","_isDataLoaded","getMarkers","map","setAttribute","@external","delete","length","getItems","removeMarkers","removeAttribute","isIntersectingWithRange","getMarkerNames","subType","accept","createdAt","from","onAccept","getMultiRangeId","filter"];var $o,Zo;$o=Xo,Zo=500,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Qo=function(t,e){return Xo[t-=0]};class Yo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x27")]=!1,this.id=e.id,this[Qo("0x12")]=e[Qo("0x12")],this[Qo("0x33")]=e[Qo("0x33")]||null,this[Qo("0x3")]=e[Qo("0x3")],this[Qo("0x10")]=e[Qo("0x10")]||e[Qo("0x3")],this.isExternal=Boolean(e[Qo("0x14")]&&e[Qo("0x14")][Qo("0x2b")]),this[Qo("0x1b")]=null,this._model=t,this[Qo("0x1e")]=e[Qo("0x37")],this[Qo("0x2")]=e[Qo("0x17")],this._onAttributesChange=e[Qo("0x3b")],this._markerNames=new Set,this[Qo("0x35")]=null,this[Qo("0x18")]("authoredAt",null),this[Qo("0x18")](Qo("0x14"),e[Qo("0x14")]||{}),this[Qo("0x18")](Qo("0xe"),null),this[Qo("0x18")]("next",null),this[Qo("0x18")]("commentThread",null),this[Qo("0x18")](Qo("0x3a"),!1),this[Qo("0x13")](Qo("0x34")),this[Qo("0x13")]("discard")}get[Qo("0x1d")](){let t=this;for(;t.previous;)t=t[Qo("0xe")];return t}get[Qo("0x16")](){return!!this[Qo("0x11")]&&this[Qo("0x11")][Qo("0x2d")]>0}get isMultiRange(){return 0!=this[Qo("0x1a")].size&&6==Array.from(this[Qo("0x1a")])[0][Qo("0x24")](":")[Qo("0x2d")]}get isInContent(){return null!==this[Qo("0xd")]()}[Qo("0x1")](t){this[Qo("0x1a")][Qo("0xa")](t)}[Qo("0x32")](){return Array[Qo("0x36")](this._markerNames)}getMarkers(){return this[Qo("0x32")]()[Qo("0x29")]((t=>this._model[Qo("0x3c")][Qo("0xb")](t)))[Qo("0x39")]((t=>t))}[Qo("0xd")](){return this[Qo("0x28")]()[0]||null}[Qo("0x2f")](){this[Qo("0x9")][Qo("0x6")]((t=>{for(const e of this[Qo("0x28")]())t.removeMarker(e)})),this[Qo("0x1a")][Qo("0x19")]()}removeMarker(t){this[Qo("0x9")][Qo("0x6")]((e=>{e.removeMarker(t)})),this[Qo("0x1a")][Qo("0x2c")](t)}[Qo("0x7")](t){const e="suggestion:"+this[Qo("0x12")]+":"+this[Qo("0x33")]+":"+this.id+":"+this[Qo("0x10")].id+":"+Yo[Qo("0x38")]();this[Qo("0x1")](e),this[Qo("0x9")][Qo("0x6")]((n=>{n[Qo("0x25")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x31")](t){for(const e of this[Qo("0x15")]())if(e[Qo("0xc")](t))return!0;return!1}[Qo("0x15")](){return this[Qo("0x28")]()[Qo("0x29")]((t=>t[Qo("0x8")]()))}[Qo("0x2e")](){return this[Qo("0x15")]()[Qo("0x0")](((t,e)=>[...t,...e[Qo("0x2e")]()]),[])}[Qo("0x23")](){var t;return(null===(t=this[Qo("0xd")]())||void 0===t?void 0:t.getRange())||null}getContainedElement(){const t=this[Qo("0x15")]();if(1!=t[Qo("0x2d")])return null;const e=t[0],n=e[Qo("0x5")][Qo("0x4")],o=e[Qo("0x22")][Qo("0x3d")];return n instanceof s.Element?n!=o?null:n:null}[Qo("0x34")](){this._onAccept(this[Qo("0x15")](),this[Qo("0x1b")],this[Qo("0x14")]),this[Qo("0x2f")]()}discard(){this[Qo("0x2")](this[Qo("0x15")](),this[Qo("0x1b")],this[Qo("0x14")]),this[Qo("0x2f")]()}[Qo("0x21")](){const t=[];let e=this[Qo("0x1d")];for(;e;)t[Qo("0x20")](e),e=e[Qo("0x26")];return t}[Qo("0x2a")](t,e){const n=eo(this[Qo("0x14")]);_o(n,t,e),Go(n,this[Qo("0x14")])||(this[Qo("0x14")]=n,this[Qo("0x1c")](n))}[Qo("0x30")](t){const e=eo(this[Qo("0x14")]);qo(e,t),Go(e,this[Qo("0x14")])||(this[Qo("0x14")]=e,this[Qo("0x1c")](this[Qo("0x14")]))}[Qo("0x1f")](){return{id:this.id,type:this[Qo("0x33")]?this[Qo("0x12")]+":"+this.subType:this.type,authorId:this[Qo("0x10")].id,createdAt:this.createdAt,hasComments:this[Qo("0x16")],data:this.data,attributes:this.attributes}}static[Qo("0x38")](){return(0,e.uid)()[Qo("0xf")](1,5)}}function Jo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Replace image URL*":return o("*Replace image URL*");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set format:* %0":return o("*Set format:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["length","_customCallbacks","end","*Change to:* %0","skip","add","key","_itemLabels","data","start","_handleInsertRemoveSuggestionDescription","Object","addFormat","_itemLabelsCallbacks","format","function","quantity","elementEnd","Container","removeFormat","_handleCustomCallbackDescription","EmptyContainer","_handleAttributeSuggestionDescription","_locale","getDescriptions","*Merge:* %0","push","*Split:* %0","_attributeLabels","getWalker","text","name","removeObject","item","previousSibling","map","isEqual","insertion","normal","isEmpty","getItemLabel","element","*Insert:* %0","pop","isInContent","set","replace","match","nodeAfter","attribute","subType","isObject","indexOf","registerDescriptionCallback","join","_handleRenameSuggestionDescription","get","remove","removeEmptyContainer","*Set format:* %0","_addDescriptionItems","_schema","has","$1 $2","deletion","$textProxy","*Remove:* %0","type","$text","ELEMENT_SPACE","getFirstRange"];var ei,ni;ei=ti,ni=410,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this[oi("0x11")]=[],this[oi("0x17")]=new Map,this[oi("0x1d")]=[],this[oi("0x2c")]=new Map,this[oi("0x6")]=t,this[oi("0x27")]=e}[oi("0x28")](t){const e=[],n=new Set,o=new Set;for(let i=0;i<t.length;i++){const r=t[i];if(!r[oi("0x3c")])continue;const s=this[oi("0x24")](r);if(s){if(null!=r[oi("0x42")]){if(n.has(r[oi("0x42")]))continue;n[oi("0x15")](r[oi("0x42")])}e.push(s)}else if(oi("0x41")!=r.type)oi("0x35")!=r[oi("0xc")]&&"deletion"!=r[oi("0xc")]||this[oi("0x1a")](e,r,t[i+1]);else{const t=r[oi("0x18")][oi("0x16")];if(o[oi("0x7")](t))continue;o[oi("0x15")](r[oi("0x18")][oi("0x16")]),t==mc?this._handleRenameSuggestionDescription(e,r):this[oi("0x26")](e,r)}}return this._resolveDescriptionItems(e)}[oi("0x45")](t){this._customCallbacks.push(t)}registerElementLabel(t,n,o=e.priorities[oi("0x36")]){oi("0x1f")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[oi("0x17")][oi("0x3d")](t,n)}registerAttributeLabel(t,e){this._attributeLabels[oi("0x3d")](t,e)}[oi("0x38")](t,e=1){let n;for(const e of this[oi("0x1d")])if(e.matchingCallback(t)){n=e.label;break}return n||(n=this._itemLabels[oi("0x1")](t[oi("0x2f")])),n?n(e):1!==e?e+" "+t[oi("0x2f")]+"s":""+t[oi("0x2f")]}[oi("0x5")](t,e){const n=e[oi("0xf")]()[oi("0x2d")](),o=oi("0x35")==e.type?oi("0x15"):oi("0x2");for(const e of n){const i=e[oi("0x31")],r=t[t[oi("0x10")]-1];if(i.is(oi("0xa")))r&&r[oi("0xc")][oi("0x44")](oi("0x22"))>-1&&t.pop(),r&&oi("0x2e")==r[oi("0xc")]?r[o]+=i.data:t[oi("0x2a")]({type:"text",add:oi("0x15")==o?i[oi("0x18")]:"",remove:oi("0x2")==o?i[oi("0x18")]:""});else if(this[oi("0x6")][oi("0x43")](i)){const s=i;if(r&&r[oi("0xc")][oi("0x44")](oi("0x22"))>-1&&t[oi("0x3b")](),oi("0x21")==e[oi("0xc")])continue;r&&r[oi("0xc")]==o+oi("0x1b")&&r[oi("0x39")][oi("0x2f")]==s.name?r[oi("0x20")]++:t.push({type:o+oi("0x1b"),element:s,quantity:1}),n[oi("0x14")]((t=>!(oi("0x21")==t.type&&t[oi("0x31")]==i)))}else if(this[oi("0x6")].checkChild(i,oi("0xd"))||i.is(oi("0x39"),"softBreak")){const n=i;if(oi("0x15")==o&&"elementStart"==e.type||"remove"==o&&"elementEnd"==e[oi("0xc")])continue;if(r&&-1==r[oi("0xc")][oi("0x44")]("Container")){oi("0x2e")==r[oi("0xc")]&&(r[o]+="\n");continue}let s;if(s=oi("0x15")==o?n.nextSibling&&!this[oi("0x6")][oi("0x43")](n.nextSibling)?n.nextSibling:null:n.previousSibling&&!this[oi("0x6")][oi("0x43")](n.previousSibling)?n[oi("0x32")]:null,n.isEmpty||s&&s[oi("0x37")]){const e=s&&s.isEmpty?s:n;r&&r[oi("0xc")]==o+oi("0x25")&&r.element.name==e[oi("0x2f")]?r[oi("0x20")]++:t[oi("0x2a")]({type:o+oi("0x25"),element:e,quantity:1})}else t[oi("0x2a")]({type:o+oi("0x22"),element:n})}}}_resolveDescriptionItems(t){const e=this[oi("0x27")],n=[],o=[],i=[];for(const r of t)switch(r[oi("0xc")]){case oi("0x2e"):if(r.add=r[oi("0x15")][oi("0x3e")](/(\S)\u000A+(\S)/g,oi("0x8"))[oi("0x3e")](/\u000A/g,""),r[oi("0x2")]=r[oi("0x2")][oi("0x3e")](/(\S)\u000A+(\S)/g,oi("0x8")).replace(/\u000A/g,""),""!=r[oi("0x15")]&&""!=r[oi("0x2")]){n[oi("0x2a")]({type:oi("0x3e"),content:Jo(e,"REPLACE_TEXT",['"'+r[oi("0x2")]+'"','"'+r.add+'"'])});continue}if(null!=r[oi("0x15")][oi("0x3f")](/^ +$/)){n[oi("0x2a")]({type:oi("0x35"),content:Jo(e,oi("0x3a"),Jo(e,oi("0xe"),r.add[oi("0x10")]))});continue}if(null!=r[oi("0x2")][oi("0x3f")](/^ +$/)){n[oi("0x2a")]({type:oi("0x9"),content:Jo(e,oi("0xb"),Jo(e,oi("0xe"),r[oi("0x2")][oi("0x10")]))});continue}if(""!=r.add){n[oi("0x2a")]({type:"insertion",content:Jo(e,"*Insert:* %0",'"'+r.add+'"')});continue}n[oi("0x2a")]({type:"deletion",content:Jo(e,oi("0xb"),'"'+r[oi("0x2")]+'"')});continue;case"addEmptyContainer":case"addObject":n[oi("0x2a")]({type:"insertion",content:Jo(e,oi("0x3a"),this[oi("0x38")](r[oi("0x39")],r[oi("0x20")]))});continue;case oi("0x3"):case oi("0x30"):n[oi("0x2a")]({type:oi("0x9"),content:Jo(e,oi("0xb"),this[oi("0x38")](r.element,r[oi("0x20")]))});continue;case"addContainer":n[oi("0x2a")]({type:"insertion",content:Jo(e,oi("0x2b"),this[oi("0x38")](r[oi("0x39")],r[oi("0x20")]))});continue;case"removeContainer":n[oi("0x2a")]({type:"deletion",content:Jo(e,oi("0x29"),this[oi("0x38")](r.element,r[oi("0x20")]))});continue;case"addFormat":o.push(r[oi("0x16")]);continue;case oi("0x23"):i[oi("0x2a")](r.key);continue;default:n[oi("0x2a")](r)}if(o[oi("0x10")]){const t=o[oi("0x33")]((t=>this[oi("0x2c")][oi("0x7")](t)?this[oi("0x2c")][oi("0x1")](t):t))[oi("0x46")](", ");n[oi("0x2a")]({type:oi("0x1e"),content:Jo(this[oi("0x27")],oi("0x4"),t)})}if(i[oi("0x10")]){const t=i[oi("0x33")]((t=>this[oi("0x2c")][oi("0x7")](t)?this[oi("0x2c")][oi("0x1")](t):t)).join(", ");n[oi("0x2a")]({type:"format",content:Jo(this[oi("0x27")],"*Remove format:* %0",t)})}return n}[oi("0x24")](t){for(const e of this[oi("0x11")]){const n=e(t);if(n&&oi("0xc")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[oi("0x18")],o=void 0===n.newValue?oi("0x23"):oi("0x1c");t[oi("0x2a")]({type:o,key:n[oi("0x16")]})}[oi("0x0")](t,e){t[oi("0x2a")]({type:oi("0x1e"),content:Jo(this[oi("0x27")],oi("0x13"),this[oi("0x38")](e[oi("0xf")]()[oi("0x19")][oi("0x40")],1))})}[oi("0x1a")](t,e,n){if(this._addDescriptionItems(t,e),n&&n[oi("0xf")]()&&!e[oi("0xf")]()[oi("0x12")][oi("0x34")](n[oi("0xf")]().start)){const n=t[t[oi("0x10")]-1],o=oi("0x35")==e[oi("0xc")]?oi("0x15"):"remove";n&&"text"==n[oi("0xc")]&&(n[o]+="\n")}}}const ri=["enableCommand","showAIAssistant","editor","commands","get","TrackChangesEditing"];var si,xi;si=ri,xi=172,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{afterInit(){const t=this[ai("0x4")],e=t.plugins.get(ai("0x1"));t[ai("0x5")][ai("0x0")](ai("0x3"))&&e[ai("0x2")]("showAIAssistant")}}const li=["TrackChangesEditing","locale","right","formatBlock","center","plugins","format","_registerLegacyDescription","afterInit","*Format:* %0","FORMAT_ALIGN_TO_RIGHT","FORMAT_ALIGN_TO_LEFT","FORMAT_JUSTIFY_TEXT","registerDescriptionCallback","commandName","_enableDefaultAttributesIntegration","editor","FORMAT_ALIGNMENT","alignment","_descriptionFactory","FORMAT_ALIGN_TO_CENTER","get","has","type","AlignmentEditing"];var ui,di;ui=li,di=441,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{[gi("0x11")](){const t=this.editor,e=t[gi("0xa")];if(!t[gi("0xe")][gi("0x6")](gi("0x8")))return;const n=t[gi("0xe")][gi("0x5")](gi("0x9"));n[gi("0x18")](gi("0x2"),[],[gi("0x2")]),n[gi("0x3")].registerAttributeLabel(gi("0x2"),Jo(e,gi("0x1"))),this[gi("0x10")]()}[gi("0x10")](){const t=this[gi("0x0")],e=t[gi("0xa")];t.plugins.get("TrackChangesEditing")[gi("0x3")][gi("0x16")]((t=>{if(gi("0xc")!=t[gi("0x7")])return;const{data:n}=t;if(n&&"alignment"==n[gi("0x17")]){const t=n.commandParams[0].value;return{type:gi("0xf"),content:Jo(e,gi("0x12"),function(t){switch(t){case"left":return Jo(e,gi("0x14"));case gi("0xb"):return Jo(e,gi("0x13"));case gi("0xd"):return Jo(e,gi("0x4"));case"justify":return Jo(e,gi("0x15"))}}(t))}}}))}}const mi=["strikethrough","*Format:* %0","underline","registerDescriptionCallback","registerAttributeLabel","has","toUpperCase","BoldEditing","forceValue","SuperscriptEditing","FORMAT_CODE","_registerLegacyDescription","subscript","*Remove format:* %0","formatInline","_descriptionFactory","code","FORMAT_ITALIC","FORMAT_","commandParams","FORMAT_SUBSCRIPT","bold","plugins","SubscriptEditing","ItalicEditing","StrikethroughEditing","commandName","get","italic","FORMAT_UNDERLINE","format","TrackChangesEditing","editor","locale","type","UnderlineEditing","slice","toLowerCase"];var hi,pi;hi=mi,pi=485,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=[bi("0x10"),bi("0x21"),bi("0x6"),"CodeEditing",bi("0x22"),bi("0x20"),bi("0x12")];class _i extends t.Plugin{afterInit(){const t=this[bi("0x3")],e=t.plugins.get(bi("0x2")),n=t[bi("0x4")];for(const o of Ei){if(!t[bi("0x1f")][bi("0xe")](o))continue;const i=o[bi("0x7")](0,-7)[bi("0x8")](),r=bi("0x1b")+i[bi("0xf")]();e._enableDefaultAttributesIntegration(i,[i]),e[bi("0x18")][bi("0xd")](i,Jo(n,r))}this[bi("0x14")]()}[bi("0x14")](){const t=this[bi("0x3")],e=t[bi("0x4")],n=t[bi("0x1f")][bi("0x24")](bi("0x2"));function o(t,o){n[bi("0x18")][bi("0xc")]((n=>{if(bi("0x17")!=n[bi("0x5")])return;const{data:i}=n;return i&&i[bi("0x23")]===t?i[bi("0x1c")][0][bi("0x11")]?{type:bi("0x1"),content:Jo(e,bi("0xa"),o)}:{type:bi("0x1"),content:Jo(e,bi("0x16"),o)}:void 0}))}o(bi("0x1e"),Jo(e,"FORMAT_BOLD")),o(bi("0x25"),Jo(e,bi("0x1a"))),o(bi("0xb"),Jo(e,bi("0x0"))),o(bi("0x19"),Jo(e,bi("0x13"))),o(bi("0x9"),Jo(e,"FORMAT_STRIKETHROUGH")),o(bi("0x15"),Jo(e,bi("0x1d"))),o("superscript",Jo(e,"FORMAT_SUPERSCRIPT"))}}const Ti=["model","name","getSelectedBlocks","blockQuote","checkChild","from","BlockQuoteEditing","filter","commandParams","format","ELEMENT_BLOCK_QUOTE","forceValue","plugins","has","enableCommand","value","markBlockFormat","editor","*Set format:* %0","parent","commands","locale","registerDescriptionCallback","TrackChangesEditing","get","_descriptionFactory"];var yi,Ci;yi=Ti,Ci=160,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{afterInit(){const t=this[Ai("0xd")],e=t[Ai("0x11")];if(!t[Ai("0x8")][Ai("0x9")](Ai("0x2")))return;const n=t.plugins.get(Ai("0x13")),o=this[Ai("0xd")][Ai("0x10")][Ai("0x14")]("blockQuote");n[Ai("0xa")](Ai("0x19"),((e,i={})=>{const r=this.editor[Ai("0x16")].document.selection,s=i&&void 0!==i[Ai("0x7")]?i[Ai("0x7")]:!o[Ai("0xb")];let x=[];if(s){const e=Array.from(r[Ai("0x18")]())[Ai("0x3")]((t=>Ii(t)||function(t,e){const n=e[Ai("0x0")](t[Ai("0xf")],Ai("0x19")),o=e[Ai("0x0")](["$root","blockQuote"],t);return n&&o}(t,this[Ai("0xd")][Ai("0x16")].schema)));x=v(e,t[Ai("0x16")])}else{const e=Array[Ai("0x1")](r.getSelectedBlocks())[Ai("0x3")]((t=>Ii(t)));x=v(e,t[Ai("0x16")])}t[Ai("0x16")].change((()=>{for(const t of x)n[Ai("0xc")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n[Ai("0x15")][Ai("0x12")]((t=>{const{data:n}=t;if(n&&Ai("0x19")==n.commandName){const t=Jo(e,Ai("0x6"));return n[Ai("0x4")][0][Ai("0x7")]?{type:Ai("0x5"),content:Jo(e,Ai("0xe"),t)}:{type:Ai("0x5"),content:Jo(e,"*Remove format:* %0",t)}}}))}}function Ii(t){return Ai("0x19")==t.parent[Ai("0x17")]}const Si=["ckbox","plugins","get","TrackChangesEditing","editor","afterInit","enableCommand"];var vi,Ri;vi=Si,Ri=299,function(t){for(;--t;)vi.push(vi.shift())}(++Ri);const Ni=function(t,e){return Si[t-=0]};class Li extends t.Plugin{[Ni("0x0")](){const t=this[Ni("0x6")];t.commands[Ni("0x4")](Ni("0x2"))&&t[Ni("0x3")][Ni("0x4")](Ni("0x5"))[Ni("0x1")]("ckbox")}}const Mi=["rootElement","type","change","label","from","registerDescriptionCallback","afterInit","language","forceValue","get","formatBlock","filter","commandName","document","isLimit","plugins","model","TrackChangesEditing","outdentCodeBlock","format","codeBlock","parent","enableCommand","*Set format:* %0","toLowerCase","config","ELEMENT_CODE_BLOCK","editor","commandParams","indentCodeBlock","commands","getSelectedBlocks","CodeBlock","*Remove format:* %0","markBlockFormat","checkChild","locale"];var wi,Oi;wi=Mi,Oi=204,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{[Fi("0x18")](){const t=this[Fi("0x8")];if(!t[Fi("0x21")].has(Fi("0xd")))return;const e=t[Fi("0x21")][Fi("0x1b")](Fi("0x23")),n=t[Fi("0x11")],o=t[Fi("0x6")].get("codeBlock").languages,i=t[Fi("0xb")][Fi("0x1b")](Fi("0x1"));e.enableCommand(Fi("0xa")),e[Fi("0x3")](Fi("0x24")),e[Fi("0x3")](Fi("0x1"),((n,r={})=>{const s=t[Fi("0x22")],x=t[Fi("0x22")][Fi("0x1f")].selection,a=r&&void 0!==r[Fi("0x1a")]?r.forceValue:!i.value;let c;r.language||(r[Fi("0x19")]=o[0].language),c=a?Array[Fi("0x16")](x[Fi("0xc")]())[Fi("0x1d")]((t=>{return Bi(t)||(e=t,n=s.schema,!e.is(Fi("0x12"))&&!n[Fi("0x20")](e)&&n[Fi("0x10")](e[Fi("0x2")],"codeBlock"));var e,n})):Array[Fi("0x16")](x[Fi("0xc")]())[Fi("0x1d")]((t=>Bi(t)));const l=v(c,s);s[Fi("0x14")]((()=>{for(const t of l)e[Fi("0xf")](t,{commandName:Fi("0x1"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory.registerElementLabel(Fi("0x1"),(t=>Jo(n,"ELEMENT_CODE_BLOCK",t))),e._descriptionFactory[Fi("0x17")]((t=>{if(Fi("0x1c")!=t[Fi("0x13")])return;const e=n.t,{data:i}=t;if(!i||Fi("0x1")!=i[Fi("0x1e")])return;const r=i[Fi("0x9")][0].language,s=e(o.find((t=>t[Fi("0x19")]===r))[Fi("0x15")])[Fi("0x5")]();return i.commandParams[0].forceValue?{type:Fi("0x0"),content:Jo(n,Fi("0x4"),Jo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Fi("0x0"),content:Jo(n,Fi("0xe"),Jo(n,Fi("0x7"),1))}}))}}function Bi(t){return Fi("0x1")==t.name}const Pi=["plugins","enableCommand","addCommentThread","has","CommentsEditing","TrackChangesEditing","editor"];var Ui,ji;Ui=Pi,ji=289,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Vi extends t.Plugin{afterInit(){const t=this[Gi("0x4")];t[Gi("0x5")][Gi("0x1")](Gi("0x2"))&&t.plugins.get(Gi("0x3"))[Gi("0x6")](Gi("0x0"))}}var Hi=n(181);const zi=["getWalker","writer","item","isAtEnd","ck-suggestion-marker-","addClass","start","consumable","model","ck-suggestion-marker--active","hasAttribute","isBlock","addHighlight","mapper","name","plugins","getCustomProperty","getAttribute","elementEnd","nextSibling","listItem","element","createUIElement","type","span","toViewPosition","get","markerName","isLimit","bindElementToMarker","schema","previousPosition","markerRange","test","includes","push"];var Wi,Ki;Wi=zi,Ki=329,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function Xi(t,e,n){const o=[];for(const i of e.getItems())i[qi("0x5")](t)&&o[qi("0x1e")](n.createRangeOn(i));return o}function $i(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0xa")][qi("0x15")]("TrackChangesEditing");return(i,r,s)=>{if(!s[qi("0x2")][qi("0x1c")](r[qi("0x1b")],i[qi("0x9")]))return;const x=r[qi("0x1b")][qi("0x1f")](),a=r.markerRange[qi("0x1")],c=t[qi("0x3")][qi("0x19")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qi("0x21")];d=d||c.isContent(e);const n=s[qi("0x8")].toViewElement(e);if(n&&n[qi("0xb")](qi("0x7")))return;qi("0xd")==t[qi("0x12")]&&c[qi("0x6")](e)&&!c[qi("0x17")](e)&&(e[qi("0xe")]||a[qi("0x22")]?l&&l.parent==e||(l=e,f(t[qi("0x1a")]),g=!0):u=u||t[qi("0x1a")])}function f(t){const i=s[qi("0x20")][qi("0x11")](qi("0x13"),{class:qi("0x23")+e}),x=s[qi("0x8")][qi("0x14")](t);n&&o.activeMarkers[qi("0x1d")](r[qi("0x16")])&&s.writer[qi("0x0")](qi("0x4"),i),s[qi("0x20")].insert(x,i),s.mapper[qi("0x18")](i,r[qi("0x16")])}d||g||!u||f(u)}}const Zi=["uiElement","data","getFirstRange","modifySelection","addMarker:suggestion:deletion","batch","end","enqueueChange","bind","mapper","start","createSelection","high","requires","fromRange","remove","markerNameToElements","markerName","editing","merge","delete","init","unit","unlock","rootName","deleteForward","TrackChangesEditing","options","lock","$graveyard","enableCommand","editor","document","downcastDispatcher","createRange","showSuggestionHighlights","get","plugins","buffer","model","root","removeMarker:suggestion:deletion","forward"];var Qi,Yi;Qi=Zi,Yi=204,function(t){for(;--t;)Qi.push(Qi.shift())}(++Yi);const Ji=function(t,e){return Zi[t-=0]};class tr extends t.Plugin{static get[Ji("0x18")](){return[Hi.Delete]}[Ji("0x20")](){const t=this[Ji("0x2a")],e=t[Ji("0x5")][Ji("0x4")](Ji("0x25"));e[Ji("0x29")](Ji("0x1f"));const n=t.commands[Ji("0x4")](Ji("0x24"));e[Ji("0x29")](Ji("0x24"),((e,o={})=>{const i=t[Ji("0x7")][Ji("0x16")](t.model[Ji("0x0")].selection);i.isCollapsed&&t.model[Ji("0xe")](i,{direction:Ji("0xa"),unit:o[Ji("0x21")]});const r=i[Ji("0xd")](),x=s.LiveRange[Ji("0x19")](r);let a;e(o),a=Ji("0x28")==x[Ji("0x8")][Ji("0x23")]?t.model[Ji("0x2")](r.start):t[Ji("0x7")][Ji("0x2")](x[Ji("0x15")],x[Ji("0x11")]),x.detach(),t[Ji("0x7")][Ji("0x12")](n[Ji("0x6")][Ji("0x10")],(t=>{n[Ji("0x6")][Ji("0x27")](),t.setSelection(t[Ji("0x2")](a[Ji("0x11")])),n[Ji("0x6")][Ji("0x22")]()}))})),t[Ji("0x1d")].downcastDispatcher.on(Ji("0xf"),$i(t,Ji("0x1e")),{priority:"high"}),t[Ji("0xc")][Ji("0x1")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[Ji("0x26")][Ji("0x3")]&&$i(t,Ji("0x1e"),{showActiveMarker:!1})[Ji("0x13")](this)(e,n,o)}),{priority:"high"}),t.editing[Ji("0x1")].on(Ji("0x9"),((t,e,n)=>{const o=n[Ji("0x14")][Ji("0x1b")](e[Ji("0x1c")]);if(o)for(const t of o)t.is(Ji("0xb"))&&(n[Ji("0x14")].unbindElementFromMarkerName(t,e.markerName),n.writer[Ji("0x1a")](t))}),{priority:Ji("0x17")})}}const er=["deletion","*Change to:* %0","list.multiBlock","change","paragraph","getSelectedBlocks","length","selection","schema","isObject","forceValue","outdentList","before","execute","ELEMENT_BULLETED_LIST","registerDescriptionCallback","*Format:* remove from %0","add","listIndent","commands","expandListBlocksToCompleteList","ELEMENT_","slice","enableCommand","nodeAfter","_descriptionFactory","listItemId","createPositionAt","getRanges","bulletedList","parent","has","setSelection","splitListItemAfter","config","findIndex","format","value","getFirstRange","fromRange","DocumentListEditing","_suggestionFactory","getAttribute","detach","createRange","editor","get","mergeListItemBackward","nextSibling","ELEMENT_NUMBERED_LIST","DocumentListUtils","listType","splitListItemBefore","_LIST","formatBlock","indentList","registerElementLabel","from","commandName","previousSibling","multipleBlocks","*Indent:* %0","toUpperCase","document","after","hasAttribute","next","*Format:* insert into %0","ELEMENT_LIST_ITEM","start","plugins","type","commandParams","end","mergeListItemForward","model","markBlockFormat","documentList","numberedList","containsItem","push"];var nr,or;nr=er,or=117,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{afterInit(){const t=this[ir("0x9")];if(!t.plugins[ir("0x4c")](ir("0x4")))return;const e=t.locale,n=t.plugins[ir("0xa")]("TrackChangesEditing"),o=t[ir("0x22")][ir("0xa")](ir("0xe"));function i(e){return()=>{const i=t[ir("0x40")].get(e);if(i.value&&!t[ir("0x4f")].get(ir("0x2f")))return void t.execute(ir("0x31"),{});let r=Array[ir("0x15")](t.model[ir("0x1b")][ir("0x34")][ir("0x32")]());if(a(e)){r=o[ir("0x41")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[ir("0x2c")](e);r=t}t[ir("0x27")][ir("0x30")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!i.value}],formatGroupId:ir("0xf")},[],ir("0x29"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[ir("0x50")]((t=>!t[ir("0x1d")](ir("0x47"))));return n>-1&&(e=e[ir("0x43")](0,n)),e}(t[ir("0x27")][ir("0x1b")].selection[ir("0x32")]()),i=o[o[ir("0x33")]-1],r=t.model[ir("0x35")][ir("0x36")](i)?ir("0x1c"):"end",s=t[ir("0x27")][ir("0x8")](t[ir("0x27")][ir("0x48")](o[0],"before"),t[ir("0x27")][ir("0x48")](i,r));t[ir("0x27")][ir("0x30")]((()=>{n[ir("0x28")](s,{commandName:e,commandParams:[],formatGroupId:ir("0xf")},function(t){const e=new Set;for(const n of t){let t=n[ir("0xc")];for(;t&&t.getAttribute("listIndent")>n[ir("0x6")](ir("0x3f"));)e[ir("0x3e")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[ir("0x27")].document.selection[ir("0x32")]()[ir("0x1e")]().value,i=t[ir("0x27")][ir("0x48")](o,ir("0x39")),r=t[ir("0x27")][ir("0x48")](o,0),s=t[ir("0x27")][ir("0x8")](i,r);t[ir("0x27")].change((()=>{n[ir("0x28")](s,{commandName:e,commandParams:[],formatGroupId:ir("0xf")})}))}}function a(e){const n=t[ir("0x40")][ir("0xa")](ir("0x4a"))[ir("0x1")],o=t[ir("0x40")][ir("0xa")](ir("0x2a"))[ir("0x1")];return ir("0x2a")===e?n:o}n[ir("0x44")](ir("0x2a"),i(ir("0x2a"))),n[ir("0x44")]("bulletedList",i(ir("0x4a"))),n[ir("0x44")](ir("0x13"),r("indentList")),n[ir("0x44")](ir("0x38"),r("outdentList")),n[ir("0x44")](ir("0x4e"),x("splitListItemAfter")),n[ir("0x44")](ir("0x10"),x(ir("0x10"))),n[ir("0x46")][ir("0x14")]((function(e){const n=!t[ir("0x27")][ir("0x35")][ir("0x36")](e),o=e[ir("0x17")],i=e[ir("0xc")],r=e[ir("0x6")]("listItemId"),s=!o||o[ir("0x6")](ir("0x47"))!==r,x=!i||i[ir("0x6")](ir("0x47"))!==r;return n&&Boolean(r)&&s&&x}),(t=>Jo(e,ir("0x20"),t))),n._descriptionFactory[ir("0x3c")]((function(n){if("formatBlock"!=n[ir("0x23")]&&"formatInline"!=n.type)return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0x16")]){case ir("0x4a"):s=o[ir("0x24")][0][ir("0x37")],x=a(o[ir("0x16")]),i=s?"*Format:* insert into %0":ir("0x3d"),!x&&t.config.get(ir("0x2f"))||(i=ir("0x2e")),r={type:ir("0x0"),content:Jo(e,i,Jo(e,ir("0x3b")))};break;case ir("0x2a"):s=o[ir("0x24")][0].forceValue,x=a(o.commandName),i=ir(s?"0x1f":"0x3d"),!x&&t[ir("0x4f")][ir("0xa")](ir("0x2f"))||(i="*Change to:* %0"),r={type:"format",content:Jo(e,i,Jo(e,ir("0xd")))};break;case"indentList":i=ir("0x19"),r={type:ir("0x0"),content:Jo(e,i,Jo(e,"ELEMENT_LIST_ITEM"))};break;case ir("0x38"):i=function(t){const e=t.getFirstRange();let n=e.start[ir("0x45")];for(;n&&e[ir("0x2b")](n);){if(n.getAttribute(ir("0x3f"))>0)return!1;n=n.nextSibling}return!0}(n)?Jo(e,ir("0x3d"),Jo(e,function(t){const e=t[ir("0x2")]()[ir("0x21")][ir("0x45")];return ir("0x42")+e[ir("0x6")]("listType")[ir("0x1a")]()+ir("0x11")}(n))):Jo(e,"*Outdent:* %0",Jo(e,ir("0x20"))),r={type:ir("0x0"),content:i};break;case ir("0xb"):case ir("0x26"):!1===o[ir("0x18")]&&(i="*Merge:* %0",r={type:ir("0x2d"),content:Jo(e,i,Jo(e,"ELEMENT_LIST_ITEM"))})}return r})),n[ir("0x5")].registerCustomCallback(ir("0x12"),ir("0x29"),"accept",(function(e,n){const o=[];for(let n of e)n[ir("0x21")][ir("0x45")]===n[ir("0x25")][ir("0x4b")]&&(n=t.model.createRange(t.model.createPositionAt(n.start[ir("0x45")],0))),o[ir("0x2c")](n);t.model[ir("0x30")]((e=>{const i=t[ir("0x27")][ir("0x1b")][ir("0x34")],r=Array[ir("0x15")](i[ir("0x49")]()).map((t=>s.LiveRange[ir("0x3")](t)));e[ir("0x4d")](o),t[ir("0x40")][ir("0xa")](n[ir("0x16")]).refresh(),n[ir("0x24")][ir("0x2c")]({forceDefaultExecution:!0}),t[ir("0x3a")](n[ir("0x16")],...n[ir("0x24")]),e.setSelection(r);for(const t of r)t[ir("0x7")]()}))}))}}const sr=["locale","document","change","handleListStartCommand","from","registerDescriptionCallback","DocumentListPropertiesEditing","replace","reversed","listStyle","has","enableCommand","selection","startIndex","ELEMENT_","listReversed","type","filter","commandParams","plugins","formatBlock","*Format:* set order to regular","_LIST_","numbered","list.properties","handleListReversedCommand","_getTranslationKeyForListStyle","model","afterInit","getSelectedBlocks","listType","TrackChangesEditing","_getSuggestionBlocks","isListItemBlock","expandListBlocksToCompleteList","DocumentListPropertiesUtils","handleDescriptions","*Change to:* %0","formatInline","_getSuggestionBlocksForListStyle","*Format:* set start index to %0","isFirstBlockOfListItem","config","get","commandName","bind","getListTypeFromListStyleType","markMultiRangeBlockFormat","DocumentListUtils","format","getAttribute","toUpperCase","*Format:* set order to reversed","push","listStart","editor"];var xr,ar;xr=sr,ar=484,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x30")](){if(!this.editor[cr("0x27")][cr("0x1e")](cr("0x1a")))return;const t=this.editor[cr("0x6")][cr("0x7")](cr("0x2c")),e=this[cr("0x13")][cr("0x27")][cr("0x7")](cr("0x33"));t.styles&&e[cr("0x1f")]("listStyle",this.handleListStyleCommand[cr("0x9")](this)),t[cr("0x1c")]&&e[cr("0x1f")](cr("0x23"),this[cr("0x2d")].bind(this)),t.startIndex&&e.enableCommand(cr("0x12"),this[cr("0x17")][cr("0x9")](this)),e._descriptionFactory[cr("0x19")](this.handleDescriptions[cr("0x9")](this))}handleListStyleCommand(t,e={}){const n=this[cr("0x13")].plugins[cr("0x7")](cr("0x33")),o=this[cr("0x3")]();this[cr("0x13")][cr("0x2f")].change((()=>{n[cr("0xb")](o,{commandName:"listStyle",commandParams:[{type:e[cr("0x24")]}],formatGroupId:cr("0x1d")})}))}[cr("0x2d")](t,e={}){const n=this.editor[cr("0x27")][cr("0x7")](cr("0x33")),o=this[cr("0x13")][cr("0x27")][cr("0x7")](cr("0xc")),i=this._getSuggestionBlocks((t=>o[cr("0x35")](t)&&cr("0x2b")===t[cr("0xe")](cr("0x32"))));null!==i&&this[cr("0x13")][cr("0x2f")][cr("0x16")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:"listReversed",commandParams:[{reversed:e[cr("0x1c")]}],formatGroupId:cr("0x23")})}))}[cr("0x17")](t,e={}){const n=this[cr("0x13")].plugins[cr("0x7")](cr("0x33")),o=this.editor[cr("0x27")][cr("0x7")](cr("0xc")),i=this[cr("0x34")]((t=>o[cr("0x35")](t)&&cr("0x2b")===t.getAttribute(cr("0x32"))));null!==i&&this[cr("0x13")][cr("0x2f")][cr("0x16")]((()=>{n[cr("0xb")](i,{commandName:cr("0x12"),commandParams:[{startIndex:e[cr("0x21")]}],formatGroupId:cr("0x12")})}))}[cr("0x0")](t){if(cr("0x28")!=t[cr("0x24")]&&cr("0x2")!=t[cr("0x24")])return;const e=this[cr("0x13")][cr("0x14")],{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x8")]){case cr("0x1d"):o=cr("0x1"),i={type:cr("0xd"),content:Jo(e,o,Jo(e,this._getTranslationKeyForListStyle(n.commandParams[0][cr("0x24")])))};break;case cr("0x23"):o=n[cr("0x26")][0][cr("0x1c")]?cr("0x10"):cr("0x29"),i={type:"format",content:Jo(e,o)};break;case cr("0x12"):o=cr("0x4"),i={type:"format",content:Jo(e,o,n[cr("0x26")][0][cr("0x21")])}}return i}[cr("0x3")](){const t=this[cr("0x13")][cr("0x27")][cr("0x7")]("DocumentListUtils");let e=Array[cr("0x18")](this[cr("0x13")][cr("0x2f")][cr("0x15")][cr("0x20")][cr("0x31")]());return e[cr("0x11")](...t[cr("0x36")](e)),e=[...new Set(e)],e}[cr("0x34")](t){const e=this[cr("0x13")][cr("0x27")][cr("0x7")](cr("0xc"));let n=Array.from(this[cr("0x13")][cr("0x2f")][cr("0x15")].selection[cr("0x31")]())[cr("0x25")](t);if(!n.length)return null;n=e[cr("0x36")](n);const o=[];for(const t of n)e[cr("0x5")](t)&&o[cr("0x11")](t);return o}[cr("0x2e")](t){return cr("0x22")+this.editor[cr("0x27")][cr("0x7")](cr("0x37"))[cr("0xa")](t).toUpperCase()+cr("0x2a")+t[cr("0xf")]()[cr("0x1b")](/-/g,"_")}}var ur=n(331);const dr=["nextSibling","requires","hasClass","data","editing","get","getFirstRange","mapper","writer","change","editor","enterBlock","parent","enter","getFirstPosition","bind","createRange","options","setSelection","plugins","high","removeMarker:suggestion:insertion","afterExecute","init","createPositionAt","markerNameToElements","enableCommand","selection","addMarker:suggestion:insertion","markInsertion","model","remove","split","markerName","TrackChangesEditing","downcastDispatcher","fire"];var gr,fr;gr=dr,fr=200,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get[mr("0x17")](){return[ur.Enter]}[mr("0x8")](){const t=this[mr("0x20")],e=t[mr("0x4")].get(mr("0x13")),n=t.commands[mr("0x1b")](mr("0x23"));e[mr("0xb")]("enter",(()=>{t[mr("0xf")][mr("0x1f")]((o=>{const i=t[mr("0xf")].document[mr("0xc")],r=i[mr("0x24")](),x=s.LiveRange.fromRange(i[mr("0x1c")]());if(n[mr("0x21")](o)){const n=t.model[mr("0x9")](r[mr("0x22")][mr("0x16")],0),i=o[mr("0x1")](r,n);e[mr("0xe")](i)}else o[mr("0x3")](o[mr("0x1")](x.end));x.detach(),n[mr("0x15")](mr("0x7"),{writer:o})}))})),t[mr("0x1a")][mr("0x14")].on(mr("0xd"),$i(t,mr("0x11")),{priority:mr("0x5")}),t[mr("0x1a")].downcastDispatcher.on(mr("0x6"),((t,e,n)=>{const o=n.mapper[mr("0xa")](e[mr("0x12")]);if(o)for(const t of o)t[mr("0x18")]("ck-suggestion-marker-split")&&(n[mr("0x1d")].unbindElementFromMarkerName(t,e[mr("0x12")]),n[mr("0x1e")][mr("0x10")](t))}),{priority:mr("0x5")}),t[mr("0x19")][mr("0x14")].on(mr("0xd"),((e,n,o)=>{o[mr("0x2")].showSuggestionHighlights&&$i(t,mr("0x11"),{showActiveMarker:!1})[mr("0x0")](this)(e,n,o)}),{priority:mr("0x5")})}}const pr=["TrackChangesEditing","bind","getMarkersGroup","findByTextCallback","filter","findPrevious","item","markers","afterInit","replace","createRange","has","model","suggestion:deletion","enableCommand","createPositionAt","plugins","getRange","start","getIntersection","replaceAll","handleFindCommand","string","find","get","editor","findNext","FindAndReplaceEditing","FindAndReplaceUtils"];var br,Er;br=pr,Er=348,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{[_r("0x8")](){if(!this[_r("0x19")][_r("0x10")][_r("0xb")](_r("0x1b")))return;const t=this[_r("0x19")].plugins[_r("0x18")](_r("0x0"));t.enableCommand(_r("0x17"),this[_r("0x15")][_r("0x1")](this)),t.enableCommand(_r("0x1a")),t[_r("0xe")](_r("0x5")),t[_r("0xe")](_r("0x9")),t[_r("0xe")](_r("0x14"))}[_r("0x15")](t,e,n={}){const o=this[_r("0x19")].plugins[_r("0x18")](_r("0x1c"));if(void 0!==n)return t((t=>(_r("0x16")==typeof e?o[_r("0x3")](e,n):e)(t)[_r("0x4")]((e=>!1===this._isInDeletionRange(e,t[_r("0x6")])))),n)}_isInDeletionRange(t,e){const n=this.editor[_r("0xc")][_r("0xa")](this[_r("0x19")][_r("0xc")][_r("0xf")](e,t[_r("0x12")]),this[_r("0x19")][_r("0xc")].createPositionAt(e,t.end));for(const t of this[_r("0x19")][_r("0xc")][_r("0x7")][_r("0x2")](_r("0xd")))if(null!==n[_r("0x13")](t[_r("0x11")]()))return!0;return!1}}const yr=["commandParams","type","fontBackgroundColor","fontSize","afterInit","*Set font background color:* %0","format","*Reset font background color*","fontSize.options","FORMAT_FONT_COLOR","registerDescriptionCallback","_registerLegacyDescription","trim","fontColor.colors","formatInline","locale","commandName","*Set font size:* %0","FORMAT_FONT_SIZE","FORMAT_FONT_FAMILY","FORMAT_FONT_BACKGROUND","_descriptionFactory","normalizeSizeOptions","toLowerCase","FontColorEditing","has","model","editor","label","plugins","FontBackgroundColorEditing","TrackChangesEditing","*Set font color:* %0","FontFamilyEditing","FontSize","get","title","*Reset font size*","fontFamily","fontColor","value","find","*Reset font family*","config","_enableDefaultAttributesIntegration","registerAttributeLabel"];var Cr,Ar;Cr=yr,Ar=250,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:"FontSizeEditing",commandName:kr("0x1d")},{pluginName:kr("0xd"),commandName:"fontFamily"},{pluginName:kr("0x4"),commandName:kr("0x13")},{pluginName:kr("0xa"),commandName:kr("0x1c")}];class Sr extends t.Plugin{[kr("0x1e")](){const t=this[kr("0x7")][kr("0x29")],e=this[kr("0x7")][kr("0x9")][kr("0xf")](kr("0xb"));for(const{pluginName:t,commandName:n}of Ir)this[kr("0x7")].plugins[kr("0x5")](t)&&e[kr("0x18")](n,[n]);t.t,e[kr("0x1")][kr("0x19")](kr("0x1d"),Jo(t,kr("0x2c"))),e[kr("0x1")].registerAttributeLabel("fontFamily",Jo(t,kr("0x2d"))),e[kr("0x1")][kr("0x19")](kr("0x13"),Jo(t,kr("0x23"))),e._descriptionFactory[kr("0x19")](kr("0x1c"),Jo(t,kr("0x0"))),this[kr("0x25")]()}[kr("0x25")](){const t=this[kr("0x7")],e=t.locale;t.plugins[kr("0xf")](kr("0xb"))[kr("0x1")][kr("0x24")]((t=>{const n=e.t;if(kr("0x28")!=t[kr("0x1b")])return;const{data:o}=t;if(null!=o){if("fontSize"==o.commandName){const t=o[kr("0x1a")][0][kr("0x14")];if(t){const o=n(this.editor.plugins[kr("0xf")](kr("0xe"))[kr("0x2")](this[kr("0x7")].config[kr("0xf")](kr("0x22")))[kr("0x15")]((e=>e[kr("0x6")]==t))[kr("0x10")]).toLowerCase();return{type:kr("0x20"),content:Jo(e,kr("0x2b"),o)}}return{type:kr("0x20"),content:Jo(e,kr("0x11"))}}if(kr("0x12")==o[kr("0x2a")]){const t=o[kr("0x1a")][0][kr("0x14")];return t?{type:kr("0x20"),content:Jo(e,"*Set font family:* %0",t)}:{type:"format",content:Jo(e,kr("0x16"))}}if(kr("0x13")==o[kr("0x2a")]){const t=o.commandParams[0][kr("0x14")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0x7")][kr("0x17")][kr("0xf")](kr("0x27"))).find((e=>e[kr("0x6")]==t));let r=t,s="";return o&&(r=o.label,s=n(r)[kr("0x3")]()),{type:kr("0x20"),content:Jo(e,kr("0xc"),s)[kr("0x26")](),color:{value:t,title:s||r}}}return{type:kr("0x20"),content:Jo(e,"*Reset font color*")}}if(kr("0x1c")==o[kr("0x2a")]){const t=o[kr("0x1a")][0][kr("0x14")];if(t){const o=(0,i.normalizeColorOptions)(this.editor[kr("0x17")][kr("0xf")]("fontBackgroundColor.colors")).find((e=>e[kr("0x6")]==t));let r=t,s="";return o&&(r=o[kr("0x8")],s=n(r)[kr("0x3")]()),{type:kr("0x20"),content:Jo(e,kr("0x1f"),s)[kr("0x26")](),color:{value:t,title:s||r}}}return{type:kr("0x20"),content:Jo(e,kr("0x21"))}}}}))}}const vr=["registerDescriptionCallback","join","model","length","_enableDefaultAttributesIntegration","fontColor.colors","format","enableCommand","fontBackgroundColor","type","title","pasteFormat","afterInit","locale","TrackChangesEditing","toLowerCase","config","copyFormat","get","label","normalizeSizeOptions","_registerLegacyDescription","entries","find","formatBlock","boolean","toUpperCase","charAt","*Remove all formatting*","push","commands","FontSize","plugins","editor","commandParams","fontColor","formatInline"];var Rr,Nr;Rr=vr,Nr=180,function(t){for(;--t;)Rr.push(Rr.shift())}(++Nr);const Lr=function(t,e){return vr[t-=0]};class Mr extends t.Plugin{[Lr("0x11")](){const t=this[Lr("0x1")],e=t[Lr("0x0")][Lr("0x17")](Lr("0x13")),n=t.commands.get(Lr("0x16")),o=t[Lr("0x23")][Lr("0x17")](Lr("0x10"));n&&o&&(e[Lr("0x9")](Lr("0x10")),e[Lr("0xc")](Lr("0x16")),this[Lr("0x1a")]())}[Lr("0x1a")](){const t=this[Lr("0x1")],e=t[Lr("0x12")];t.plugins[Lr("0x17")](Lr("0x13"))._descriptionFactory[Lr("0x5")]((n=>{if(Lr("0x1d")!=n[Lr("0xe")]&&Lr("0x4")!=n.type)return;const{data:o}=n;if(o&&Lr("0x10")===o.commandName){const n=[],i=o[Lr("0x2")][0];for(const[e,o]of Object[Lr("0x1b")](i))n[Lr("0x22")](wr(t,e,o));return n[Lr("0x8")]?{type:Lr("0xb"),content:Jo(e,"*Set format to:* %0",n[Lr("0x6")](", "))}:{type:"format",content:Jo(e,Lr("0x21"))}}}))}}function wr(t,e,n){const o=t[Lr("0x12")].t,r=e.split(/(?=[A-Z])/)[Lr("0x6")](" "),s=o(r[Lr("0x20")](0)[Lr("0x1f")]()+r.slice(1))[Lr("0x14")]();if(Lr("0x1e")==typeof n)return s;if(Lr("0x3")===e||Lr("0xd")===e){const e=(0,i.normalizeColorOptions)(t[Lr("0x15")][Lr("0x17")](Lr("0xa")))[Lr("0x1c")]((t=>t[Lr("0x7")]==n));return s+" ("+(e?o(e[Lr("0x18")])[Lr("0x14")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Lr("0x0")][Lr("0x17")](Lr("0x24"))[Lr("0x19")](t[Lr("0x15")].get("fontSize.options"))[Lr("0x1c")]((t=>t[Lr("0x7")]==n));return s+" ("+(e?o(e[Lr("0xf")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Or=["model","editor","format","has","commandParams","find","*Change to:* %0","ELEMENT_HEADING","heading.options","_enableDefaultAttributesIntegration","name","type","plugins","value","title","_getHeadingLevel","_registerLegacyDescription","registerDescriptionCallback","afterInit","heading","config","TrackChangesEditing","paragraph","formatBlock","registerElementLabel","commandName","HeadingEditing","ELEMENT_HEADING_CUSTOM","_headingOptions","match","_descriptionFactory"];var Fr,Dr;Fr=Or,Dr=389,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{[Br("0x1")](){const t=this[Br("0xf")];if(!t[Br("0x1a")][Br("0x11")](Br("0x9")))return;this[Br("0xb")]=t[Br("0x3")].get(Br("0x16"));const e=t.locale,n=t[Br("0x1a")].get(Br("0x4"));n[Br("0x17")](Br("0x2"));for(const t of this[Br("0xb")])Br("0x5")!=t[Br("0xe")]&&n[Br("0xd")][Br("0x7")](t[Br("0xe")],(n=>{const o=this._getHeadingLevel(t[Br("0xe")]);return null!==o?(s=n,x=o,Jo(e,Br("0x15"),[s,x])):(i=n,r=t[Br("0x1c")],Jo(e,"ELEMENT_HEADING_CUSTOM",[i,r]));var i,r,s,x}));this[Br("0x1e")]()}[Br("0x1e")](){const t=this[Br("0xf")],e=t.locale;t[Br("0x1a")].get("TrackChangesEditing")[Br("0xd")][Br("0x0")]((t=>{if(Br("0x6")!=t[Br("0x19")])return;const{data:n}=t;if(n&&"heading"==n[Br("0x8")]){const t=n[Br("0x12")][0][Br("0x1b")],s=this[Br("0x1d")](t);if(null!==s)return{type:Br("0x10"),content:Jo(e,"*Change to:* %0",(1,r=s,Jo(e,Br("0x15"),[1,r])))};const x=this._headingOptions.find((e=>e[Br("0xe")]===t)).title;return{type:Br("0x10"),content:Jo(e,Br("0x14"),(o=1,i=x,Jo(e,Br("0xa"),[o,i])))}}var o,i,r}))}[Br("0x1d")](t){var e,n;const o=t[Br("0xc")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this[Br("0xb")])||void 0===e?void 0:e[Br("0x13")]((e=>e.model==t));if(i&&i.view){const t=i.view,e=(null!==(n=t[Br("0x18")])&&void 0!==n?n:t)[Br("0xc")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["FORMAT_HIGHLIGHT","find","get","highlight.options","locale","color","config","title","_descriptionFactory","format","commandName","HighlightEditing","_registerLegacyDescription","model","type","TrackChangesEditing","*Set highlight:* %0","editor","*Remove highlight*","registerDescriptionCallback","plugins","formatInline","toLowerCase","highlight"];var jr,Gr;jr=Ur,Gr=241,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{afterInit(){const t=this[Vr("0x10")];if(!t[Vr("0x13")].has(Vr("0xa")))return;const e=t[Vr("0x13")].get("TrackChangesEditing"),n=t[Vr("0x3")];e._enableDefaultAttributesIntegration(Vr("0x16"),[Vr("0x16")]),e[Vr("0x7")].registerAttributeLabel(Vr("0x16"),Jo(n,Vr("0x17"))),this._registerLegacyDescription()}[Vr("0xb")](){const t=this[Vr("0x10")],e=t[Vr("0x3")];t[Vr("0x13")][Vr("0x1")](Vr("0xe"))[Vr("0x7")][Vr("0x12")]((n=>{if(Vr("0x14")!=n[Vr("0xd")])return;const{data:o}=n;if(o&&Vr("0x16")==o[Vr("0x9")]){const n=e.t,i=o.commandParams[0].value;if(i){const o=t[Vr("0x5")].get(Vr("0x2"))[Vr("0x0")]((t=>t[Vr("0xc")]==i)),r=n(o[Vr("0x6")])[Vr("0x15")]();return{type:"format",content:Jo(e,Vr("0xf"),r),color:{value:o[Vr("0x4")],title:o[Vr("0x6")]}}}return{type:Vr("0x8"),content:Jo(e,Vr("0x11"),Jo(e,Vr("0x17")))}}}))}}const zr=["dataDowncast","high","ck-horizontal-line","createPositionAt","ELEMENT_HORIZONTAL_LINE","editor","afterInit","addClass","insert","HorizontalLineEditing","locale","horizontalLine","enableCommand","showSuggestionHighlights","for","createEmptyElement","registerElementLabel","elementToStructure","get","conversion","div"];var Wr,Kr;Wr=zr,Kr=134,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{[qr("0x13")](){const t=this[qr("0x12")];if(!t.plugins.has(qr("0x1")))return;t.plugins[qr("0xa")]("TrackChangesEditing")[qr("0x4")]("horizontalLine");const e=t.plugins.get("TrackChangesEditing"),n=t[qr("0x2")];e._descriptionFactory[qr("0x8")](qr("0x3"),(t=>Jo(n,qr("0x11"),t))),t[qr("0xb")][qr("0x6")](qr("0xd"))[qr("0x9")]({model:qr("0x3"),view:(t,{writer:e,options:n})=>{if(!n[qr("0x5")])return null;const o=e.createContainerElement(qr("0xc")),i=e[qr("0x7")]("hr");return e[qr("0x14")](qr("0xf"),o),e[qr("0x0")](e[qr("0x10")](o,0),i),o},converterPriority:qr("0xe")})}}const $r=["has","format","afterInit","start","attribute","_registerLegacyDescription","rawHtml","TrackChangesEditing","registerDescriptionCallback","formatBlock","ELEMENT_HTML_EMBED","commandName","get","getFirstRange","_enableDefaultAttributesIntegration","_descriptionFactory","registerElementLabel","value","htmlEmbed","editor","plugins","locale"];var Zr,Qr;Zr=$r,Qr=381,function(t){for(;--t;)Zr.push(Zr.shift())}(++Qr);const Yr=function(t,e){return $r[t-=0]};class Jr extends t.Plugin{[Yr("0x11")](){const t=this[Yr("0xc")];if(!t[Yr("0xd")][Yr("0xf")]("HtmlEmbed"))return;const e=t[Yr("0xd")].get(Yr("0x0")),n=t[Yr("0xe")];e[Yr("0x8")][Yr("0x9")]("rawHtml",(t=>Jo(n,Yr("0x3"),t))),e[Yr("0x7")](Yr("0xb"),[],[Yr("0xa")]),e[Yr("0x8")][Yr("0x1")]((t=>{if(Yr("0x13")!=t.type)return;const{data:e}=t;if(e&&Yr("0xa")==e.key&&t[Yr("0x6")]()[Yr("0x12")].nodeAfter.is("element",Yr("0x15"))){const t=Jo(n,Yr("0x3"));return{type:"format",content:Jo(n,"*Change %0 content*",t)}}})),this[Yr("0x14")]()}[Yr("0x14")](){const t=this[Yr("0xc")],e=t[Yr("0xe")];t.plugins[Yr("0x5")]("TrackChangesEditing")[Yr("0x8")][Yr("0x1")]((t=>{if(Yr("0x2")!=t.type)return;const{data:n}=t;if(n&&"htmlEmbed"==n[Yr("0x4")]){const t=Jo(e,Yr("0x3"));return{type:Yr("0x10"),content:Jo(e,"*Change %0 content*",t)}}}))}}const ts=["discard","enableCommand","markDeletion","*Set image text alternative:* %0","ImageBlockEditing","alt","isCollapsed","registerCustomCallback","convertInlineImageToBlock","deletion","ImageCaptionEditing","ImageResize","formatInline","getSuggestionCallback","type","registerDescriptionCallback","getNearestSelectionRange","key","formatBlock","ImageInlineEditing","imageTextAlternative","ELEMENT_CAPTION","forceDefaultExecution","getCaptionFromImageModelElement","*Set image width:* %0","element","findIndex","createRange","attribute","ELEMENT_IMAGE","forward","insertImage","FORMAT_IMAGE_SIZE","afterInit","detach","document","insertion","imageStylePreApply","_descriptionFactory","getContainedElement","resizeImage","end","newValue","commandParams","backward","isOwn","resizedWidth","imageCaption","imageBlock","locale","*Remove image text alternative*","chain","filter","accept","selection","imageTypeInline","convertBlockImageToInline","markBlockFormat","getClosestSelectedImageElement","ImageCaptionUtils","TrackChangesEditing","width","registerAttributeLabel","join","imageInline","getFirstRange","_suggestionFactory","isEqual","model","fromPosition","uploadImage","registerElementLabel","ImageEditing","schema","plugins","isBefore","Block image to inline image","previous","isBlockImage","length","ELEMENT_INLINE_IMAGE","markInsertion","caption","get","format","imageTypeBlock","subType","start","createRangeOn","commandName","nodeAfter","isIntersecting","editor","_registerLegacyDescription","has","*Reset image width*"];var es,ns;es=ts,ns=321,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x0")](){const t=this[os("0x3b")];if(!t[os("0x29")][os("0x3d")](os("0x27")))return;const e=t[os("0x29")][os("0x32")](os("0x1b")),n=t[os("0x29")].get("ImageUtils"),o=t[os("0x10")];e[os("0x40")](os("0x5e")),e._descriptionFactory.registerElementLabel(os("0xf"),(t=>Jo(o,os("0x5c"),t))),e._descriptionFactory[os("0x26")](os("0x1f"),(t=>Jo(o,os("0x2f"),t))),e[os("0x5")].registerElementLabel(os("0x31"),(()=>Jo(o,os("0x54")))),t[os("0x29")][os("0x3d")]("ImageUploadEditing")&&e.enableCommand(os("0x25")),t[os("0x29")][os("0x3d")](os("0x43"))&&t[os("0x29")][os("0x3d")](os("0x52"))&&(e[os("0x40")]("imageTypeInline",((o,i)=>{const r=n[os("0x19")](t[os("0x23")].document[os("0x15")]);t[os("0x23")].change((()=>{e[os("0x18")](r,{commandName:os("0x16"),commandParams:[i]},[],os("0x17"))}))})),e[os("0x40")](os("0x34"),((o,i)=>{t.model.change((r=>{let x=n[os("0x19")](t[os("0x23")][os("0x2")][os("0x15")]),a=r[os("0x37")](x);const c=s.LivePosition[os("0x24")](a[os("0x36")],"toPrevious"),l=s.LivePosition[os("0x24")](a[os("0x8")],"toNext");e[os("0x55")]((()=>o(i))),x=n[os("0x19")](t.model[os("0x2")][os("0x15")]),a=r[os("0x37")](x);const u=r[os("0x5a")](c,l);c[os("0x1")](),l[os("0x1")](),e[os("0x18")](x,{commandName:os("0x16"),commandParams:[i]},[],os("0x47")),u[os("0x36")][os("0x2a")](a[os("0x36")])&&e[os("0x30")](r[os("0x5a")](u[os("0x36")],a[os("0x36")]),os("0x47")),a[os("0x8")][os("0x2a")](u[os("0x8")])&&e[os("0x30")](r[os("0x5a")](a.end,u.end),os("0x47"))}))})),e._suggestionFactory[os("0x46")](os("0x51"),os("0x47"),"join",(()=>!1)),e[os("0x21")][os("0x46")](os("0x51"),"convertInlineImageToBlock",os("0x14"),(()=>!1)),e[os("0x21")][os("0x46")](os("0x51"),os("0x47"),os("0x3f"),e._suggestionFactory[os("0x4c")](os("0x51"),"",os("0x14"))),e[os("0x21")].registerCustomCallback("insertion",os("0x47"),os("0x1e"),(()=>!1)),e._suggestionFactory[os("0x46")](os("0x3"),os("0x47"),os("0x3f"),(([n])=>{const o=e._suggestionFactory.getSuggestionCallback("insertion","",os("0x3f"));let i=n[os("0x36")],r=n[os("0x8")];const s=t.model[os("0x28")][os("0x4f")](i,os("0xb")),x=t[os("0x23")][os("0x28")][os("0x4f")](r,os("0x5d"));s.isCollapsed&&(i=s[os("0x36")]),x[os("0x45")]&&(r=x[os("0x8")]),o([t[os("0x23")][os("0x5a")](i,r)])})),e._suggestionFactory.registerCustomCallback(os("0x51"),os("0x47"),"chain",x),e[os("0x21")].registerCustomCallback("insertion",os("0x47"),os("0x12"),x)),t[os("0x29")].has(os("0x49"))&&(e[os("0x40")]("toggleImageCaption",((o,i)=>{const r=t[os("0x29")][os("0x32")](os("0x1a"));let s=n[os("0x19")](t.model.document[os("0x15")]),x=r.getCaptionFromImageModelElement(s);t[os("0x23")].change((()=>{if(x)return void e[os("0x41")](t[os("0x23")][os("0x37")](x));const a=n[os("0x2d")](s);o(i),s=n.getClosestSelectedImageElement(t[os("0x23")][os("0x2")].selection),x=r[os("0x56")](s),e[os("0x30")](t[os("0x23")][os("0x37")](x),a?null:"imageCaption")}))})),e[os("0x21")].registerCustomCallback("insertion",os("0xe"),os("0x12"),x));const i=[{type:"formatBlock",subType:os("0x4")},{type:os("0x3"),subType:os("0xe")},{type:"formatBlock",subType:os("0x47")},{type:os("0x3"),subType:"convertInlineImageToBlock"}];function r(t,o){const r=i[os("0x59")]((({type:e,subType:n})=>t[os("0x4d")]==e&&t[os("0x35")]==n)),s=i[os("0x59")]((({type:t,subType:e})=>o[os("0x4d")]==t&&o[os("0x35")]==e));if(r<0||s<0)return!1;const x=t[os("0x20")](),a=o[os("0x20")]();if((0==r||1==r)&&2==s&&x[os("0x3a")](a))return!0;if(2==r&&3==s){const t=e._findSuggestions(x,os("0x3"))[os("0x13")]((({suggestion:t,meta:e})=>e[os("0xc")]&&os("0x47")==t[os("0x35")]));if(t[os("0x2e")]>1&&a[os("0x8")].isEqual(x[os("0x36")]))return!0;if(1==t.length&&(x.start[os("0x22")](a.end)||x[os("0x8")].isEqual(a[os("0x36")])))return!0}if(3==r&&3==s&&x[os("0x36")][os("0x2a")](a[os("0x36")])){const t=x[os("0x8")][os("0x39")],e=a[os("0x36")].nodeBefore;return n[os("0x2d")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x29")][os("0x3d")](os("0x4a"))&&(e._enableDefaultAttributesIntegration("resizeImage",[],[os("0xd")]),e[os("0x5")][os("0x1d")](os("0xd"),Jo(o,os("0x5f")))),t[os("0x29")][os("0x3d")]("ImageTextAlternativeEditing")&&e._enableDefaultAttributesIntegration("imageTextAlternative",[],[os("0x44")]),e[os("0x5")][os("0x4e")]((t=>{if(i.find((({type:e,subType:n})=>t.type==e&&t[os("0x35")]==n)))return t[os("0x2c")]?{}:void 0})),e[os("0x5")].registerDescriptionCallback((t=>{if("insertion"==t[os("0x4d")]||os("0x48")==t[os("0x4d")]){const e=t[os("0x6")]();if(e&&e.is(os("0x58"),"caption"))return{type:os("0x3")==t[os("0x4d")]?"addObject":"removeObject",element:e,quantity:1}}})),e[os("0x5")][os("0x4e")]((t=>os("0x51")==t[os("0x4d")]&&"convertInlineImageToBlock"==t[os("0x35")]?{type:os("0x33"),content:"Inline image to block image"}:os("0x51")==t[os("0x4d")]&&os("0x17")==t[os("0x35")]?{type:os("0x33"),content:os("0x2b")}:void 0)),e[os("0x5")][os("0x4e")]((t=>{if(os("0x5b")!=t.type)return;const{data:e}=t;if(!e||os("0x44")!=e[os("0x50")])return;const n=e.newValue;return n?{type:os("0x33"),content:Jo(o,os("0x42"),'"'+n+'"')}:{type:os("0x33"),content:Jo(o,os("0x11"))}})),this[os("0x3c")]()}_registerLegacyDescription(){const t=this[os("0x3b")],e=t.locale;t[os("0x29")][os("0x32")](os("0x1b"))[os("0x5")][os("0x4e")]((t=>{if(os("0x51")!=t[os("0x4d")]&&os("0x4b")!=t[os("0x4d")])return;const{data:n}=t;if(n){if(os("0x53")==n[os("0x38")]){const t=n[os("0xa")][0][os("0x9")];return t?{type:"format",content:Jo(e,os("0x42"),'"'+t+'"')}:{type:os("0x33"),content:Jo(e,os("0x11"))}}if(os("0x7")==n[os("0x38")]){const t=n[os("0xa")][0][os("0x1c")];return t?{type:os("0x33"),content:Jo(e,os("0x57"),t)}:{type:"format",content:Jo(e,os("0x3e"))}}}}))}}const rs=["get","locale","registerCustomCallback","TrackChangesEditing","format","editor","getSuggestionCallback","accept","_handleLegacySuggestions","plugins","key","registerDescriptionCallback","_registerLegacyDescription","_descriptionFactory","type","_enableDefaultAttributesIntegration","_suggestionFactory","src","ImageEditing","formatBlock","discard","replaceImageSource","formatInline","*Replace image URL*"];var ss,xs;ss=rs,xs=148,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){if(!this.editor[as("0x5")].has(as("0xe")))return;const t=this[as("0x1")][as("0x15")],e=this[as("0x1")].plugins[as("0x14")](as("0x17"));e[as("0xb")](as("0x11"),[],["src"]),e[as("0x9")][as("0x7")]((e=>{if("attribute"!=e[as("0xa")])return;const{data:n}=e;return n&&as("0xd")==n[as("0x6")]?n.newValue&&n.oldValue?{type:"format",content:Jo(t,as("0x13"))}:{type:as("0x0"),content:""}:void 0})),this._handleLegacySuggestions()}[as("0x4")](){const t=this[as("0x1")][as("0x5")][as("0x14")](as("0x17"));t._suggestionFactory[as("0x16")](as("0xf"),"replaceImageSource",as("0x3"),t[as("0xc")].getSuggestionCallback(as("0xf"),null,as("0x10"))),t[as("0xc")][as("0x16")](as("0xf"),as("0x11"),as("0x10"),t[as("0xc")][as("0x2")](as("0xf"),null,as("0x3"))),this[as("0x8")]()}[as("0x8")](){const t=this[as("0x1")],e=t[as("0x15")];t.plugins.get(as("0x17"))[as("0x9")][as("0x7")]((t=>{if("formatBlock"!=t[as("0xa")]&&as("0x12")!=t[as("0xa")])return;const{data:n}=t;return n&&as("0x11")===n.commandName?{type:"format",content:Jo(e,as("0x13"))}:void 0}))}}const ls=["Users","imageStylePreApply","isBlockImage","plugins","enableCommand","normalizedStyles","markBlockFormat","name","title","commands","imageTypeInline","ImageStyleEditing","isBefore","nodeBefore","end","imageCaption","*Format:* %0","selection","get","change","FORMAT_SIDE_IMAGE","getSuggestion","insertion","start","_suggestionFactory","markInlineFormat","next","value","newRange","createRangeOn","imageStyle","hasSuggestion","toLowerCase","discard","forEach","discardSuggestion","setImageNaturalSizeAttributes","locale","getChangedMarkers","filter","getSuggestionCallback","editor","convertInlineImageToBlock","commandName","type","join","getFirstRange","document","nodeAfter","commandReversedParams","refresh","subType","accept","from","findIndex","_splitMarkerName","afterInit","TrackChangesEditing","commandParams","getClosestSelectedImageElement","isEqual","registerDescriptionCallback","registerCustomCallback","shouldConvertImageType","suggestion","imageStylePostApply","model","chain","_registerLegacyDescription","formatBlock","isIntersecting","getSuggestions","differ","formatInline","length"];var us,ds;us=ls,ds=289,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x43")](){const t=this[gs("0x34")];if(!t.plugins.has(gs("0x16")))return;const n=t.plugins.get(gs("0x44")),o=t[gs("0xe")][gs("0x1d")]("ImageUtils"),i={};n[gs("0xf")](gs("0x29"),((i,r)=>{const s=t[gs("0xe")][gs("0x1d")](gs("0xb")).me,x=t[gs("0x14")][gs("0x1d")]("imageStyle");let a=o[gs("0x46")](t[gs("0x2")].document[gs("0x1c")]),c=t[gs("0x2")][gs("0x28")](a),l=x[gs("0x26")];if(l==r[gs("0x26")])return;const u={commandName:gs("0x29"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[gs("0x1e")]((()=>{if(n[gs("0x7")]()[gs("0x32")]((t=>t.isInContent&&s==t.author&&(gs("0x5")==t[gs("0x37")]||gs("0x9")==t[gs("0x37")])&&(gs("0xc")==t[gs("0x3e")]||gs("0x1")==t[gs("0x3e")])&&t[gs("0x39")]()[gs("0x47")](c)))[gs("0x2d")]((t=>n[gs("0x2e")](t.head))),a=o[gs("0x46")](t[gs("0x2")][gs("0x3a")][gs("0x1c")]),c=t[gs("0x2")][gs("0x28")](a),x[gs("0x3d")](),t.commands[gs("0x1d")](gs("0x15")).refresh(),t[gs("0x14")][gs("0x1d")]("imageTypeBlock").refresh(),l=x[gs("0x26")],l!=r[gs("0x26")])return o.isInlineImage(a)&&x[gs("0x4a")](r[gs("0x26")],a)?(i({...r,setImageSizes:!1}),a=o[gs("0x46")](t[gs("0x2")][gs("0x3a")][gs("0x1c")]),void n[gs("0x11")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[gs("0xd")](a)?n[gs("0x11")](a,u,[],"imageStylePostApply"):n[gs("0x24")](c,u,gs("0x1")))}))}));for(const e of t[gs("0xe")].get(gs("0x16"))[gs("0x10")])i[e[gs("0x12")]]=e[gs("0x13")][gs("0x2b")]();n[gs("0x23")][gs("0x49")](gs("0x5"),"imageStylePreApply",gs("0x38"),(()=>!1)),n._suggestionFactory[gs("0x49")](gs("0x5"),gs("0x1"),gs("0x38"),(()=>!1)),n[gs("0x23")][gs("0x49")](gs("0x9"),gs("0x1"),gs("0x38"),(()=>!1)),n[gs("0x23")][gs("0x49")](gs("0x5"),gs("0xc"),gs("0x3f"),(([t])=>{o[gs("0x2f")](t.getContainedElement())})),n[gs("0x23")][gs("0x49")](gs("0x5"),gs("0xc"),gs("0x2c"),((t,e)=>{n[gs("0x23")][gs("0x33")](gs("0x5"),"",gs("0x3f"))(t,{commandName:e[gs("0x36")],commandParams:e[gs("0x3c")]})})),n[gs("0x23")][gs("0x49")](gs("0x5"),gs("0xc"),gs("0x3"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:gs("0x5"),subType:"imageStylePreApply"},{type:gs("0x21"),subType:gs("0x1a")},{type:gs("0x5"),subType:"convertInlineImageToBlock"},{type:gs("0x21"),subType:gs("0x35")}];function s(t,e){const i=r[gs("0x41")]((({type:e,subType:n})=>t[gs("0x37")]==e&&t.subType==n)),s=r.findIndex((({type:t,subType:n})=>e[gs("0x37")]==t&&e[gs("0x3e")]==n));if(i<0||s<0)return!1;const x=t[gs("0x39")](),a=e.getFirstRange();if((0==i||1==i)&&2==s&&x[gs("0x6")](a))return!0;if(2==i&&3==s){const t=n._findSuggestions(x,gs("0x21"))[gs("0x32")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[gs("0x3e")]));if(t.length>1&&a[gs("0x19")][gs("0x47")](x[gs("0x22")]))return!0;if(1==t[gs("0xa")]&&(x[gs("0x22")][gs("0x47")](a[gs("0x19")])||x[gs("0x19")][gs("0x47")](a.start)))return!0}if(3==i&&3==s&&x[gs("0x22")][gs("0x17")](a[gs("0x22")])){const t=x[gs("0x19")][gs("0x3b")],e=a.start[gs("0x18")];return o[gs("0xd")](t)&&t===e}return!1}t.model[gs("0x3a")].registerPostFixer((()=>{let e=!1;const i=Array[gs("0x40")](t[gs("0x2")].document[gs("0x8")][gs("0x31")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x42")](t);if(gs("0x0")==i&&n[gs("0x2a")](a)){if(gs("0x5")==s&&(gs("0xc")==x||"imageStylePostApply"==x)){const t=n[gs("0x20")](a);if(r[gs("0x27")]){const i=t[gs("0x39")]().getContainedElement();if(o[gs("0xd")](i))continue;n[gs("0x2e")](t),e=!0}}if(gs("0x21")==s&&gs("0x1a")==x&&!r[gs("0x27")]){const t=n[gs("0x20")](a);t[gs("0x25")]&&t[gs("0x25")].isInContent&&(n[gs("0x2e")](t[gs("0x25")]),e=!0)}}}return e})),this[gs("0x4")](i)}_registerLegacyDescription(t){const e=this.editor,n=e[gs("0x30")];e[gs("0xe")][gs("0x1d")](gs("0x44"))._descriptionFactory[gs("0x48")]((e=>{if("formatBlock"!=e[gs("0x37")]&&gs("0x9")!=e[gs("0x37")])return;const{data:o}=e;if(!o||gs("0x29")!=o[gs("0x36")])return;const i=o[gs("0x45")][0][gs("0x26")];return r="side"===i?Jo(n,gs("0x1f")):t[i]||i,{type:"format",content:Jo(n,gs("0x1b"),r)};var r}))}}const ms=["afterInit","_handleImportedData","enableCommand","TrackChangesEditing","execute","high","collaboration_features","commands","listenTo","bind","dataInsert","get","value","_trackChangesExecuted","track_changes","Users","forEach","_trackChangesValueDuringImport","editor","importWord","plugins","trackChanges"];var hs,ps;hs=ms,ps=211,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}[bs("0x9")](){const t=this.editor,e=t[bs("0x10")].get("importWord"),n=t[bs("0x10")][bs("0x14")](bs("0x8"));e&&(e.on(bs("0xd"),((t,[,e])=>{this[bs("0x4")]=n[bs("0x15")],e[bs("0xf")][bs("0x1")]=!this._trackChangesValueDuringImport}),{priority:bs("0xe")}),this.listenTo(e,bs("0x13"),this[bs("0xa")][bs("0x12")](this)),this[bs("0x11")](e,bs("0x13"),(()=>{this[bs("0x0")]&&(n.execute(),this[bs("0x0")]=!1)}),{priority:"lowest"}),t[bs("0x7")][bs("0x14")](bs("0xc"))[bs("0xb")](bs("0x6")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[bs("0x5")][bs("0x10")][bs("0x14")]("trackChanges"),i=o[bs("0x15")];this[bs("0x4")]!==i&&(o[bs("0xd")](),this[bs("0x0")]=!0),n&&n[bs("0x3")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[bs("0x5")][bs("0x7")].get(bs("0x2")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[bs("0x5")][bs("0x7")][bs("0x14")]("TrackChangesEditing")._setSuggestionData(i)}))}}const _s=["enableCommand","has","formatBlock","*Indent:* %0","type","*Outdent:* %0","indentBlock","outdent","plugins","outdentBlock","getItems","editor","getItemLabel","FORMAT_INDENT","IndentBlock","IndentEditing","_enableDefaultAttributesIntegration","blockIndent","_registerLegacyDescription","registerAttributeLabel","commandName","get","_descriptionFactory","afterInit","format","TrackChangesEditing","indent","locale"];var Ts,ys;Ts=_s,ys=280,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x17")](){const t=this[Cs("0xb")],e=t[Cs("0x8")].get(Cs("0x19"));if(t[Cs("0x8")][Cs("0x1")](Cs("0xf"))&&(e.enableCommand(Cs("0x1a")),e[Cs("0x0")](Cs("0x7"))),t.plugins.has(Cs("0xe")))for(const t of[Cs("0x6"),Cs("0x9")])e[Cs("0x10")](t);const n=t[Cs("0x1b")];e._registerBlockAttribute(Cs("0x11")),e._descriptionFactory[Cs("0x13")](Cs("0x11"),Jo(n,Cs("0xd"))),this[Cs("0x12")]()}_registerLegacyDescription(){const t=this[Cs("0xb")],e=t[Cs("0x1b")],n=t[Cs("0x8")][Cs("0x15")](Cs("0x19"));n[Cs("0x16")].registerDescriptionCallback((t=>{if(Cs("0x2")!=t[Cs("0x4")])return;const{data:o}=t;if(!o)return;if("indentBlock"!=o.commandName&&Cs("0x9")!=o[Cs("0x14")])return;const i=t[Cs("0xa")]()[0],r=n._descriptionFactory[Cs("0xc")](i);return Cs("0x6")==o[Cs("0x14")]?{type:Cs("0x18"),content:Jo(e,Cs("0x3"),r)}:Cs("0x9")==o[Cs("0x14")]?{type:"format",content:Jo(e,Cs("0x5"),r)}:void 0}))}}var ks,Is,Ss=["plugins","TrackChangesEditing","requires","editor","input"];ks=Ss,Is=208,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var vs=function(t,e){return Ss[t-=0]};class Rs extends t.Plugin{static get[vs("0x4")](){return[Hi.Input]}init(){this[vs("0x0")][vs("0x2")].get(vs("0x3")).enableCommand(vs("0x1"))}}const Ns=["unlink","label","locale","_descriptionFactory","map","LinkEditing","link","registerDescriptionCallback","_registerLegacyDescription","commandParams","_enableDefaultAttributesIntegration","*Set link:* %0","editor","get","format","type","has","commandName","linkHref","toLowerCase","afterInit","TrackChangesEditing","formatInline","manualDecorators","*Remove link*"];var Ls,Ms;Ls=Ns,Ms=437,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x8")](){const t=this[ws("0x0")];if(!t.plugins[ws("0x4")](ws("0x12")))return;const e=t.plugins.get(ws("0x9")),n=t.commands[ws("0x1")](ws("0x13"));e[ws("0x17")](ws("0x13"),[ws("0x6"),...n.manualDecorators[ws("0x11")]((t=>t.id))]),e[ws("0x17")](ws("0xd"));for(const t of n[ws("0xb")])e[ws("0x10")].registerAttributeLabel(t.id,"link ("+t[ws("0xe")][ws("0x7")]()+")");e[ws("0x10")].registerDescriptionCallback((e=>{if("attribute"!=e[ws("0x3")])return;const{data:n}=e;if(!n||"linkHref"!=n.key)return;const o=n.newValue,i=t[ws("0xf")];return{type:ws("0x2"),content:o?Jo(i,"*Set link:* %0",'"'+o+'"'):Jo(i,"*Remove link*")}})),this[ws("0x15")]()}[ws("0x15")](){const t=this[ws("0x0")],e=t.locale;t.plugins[ws("0x1")](ws("0x9"))[ws("0x10")][ws("0x14")]((t=>{if(ws("0xa")!=t.type)return;const{data:n}=t;if(n){if(ws("0x13")==n.commandName){const t=n[ws("0x16")][0];return{type:ws("0x2"),content:Jo(e,ws("0x18"),'"'+t+'"')}}return ws("0xd")==n[ws("0x5")]?{type:ws("0x2"),content:Jo(e,ws("0xc"))}:void 0}}))}}const Fs=["ELEMENT_LIST_ITEM","selection","element","slice","commands","blockName","end","*Indent:* %0","locale","length","value","ELEMENT_TODO_LIST","commandName","listIndent","editor","model","format","*Check item*","isObject","paragraph","createRange","commandParams","filter","document","name","_selectedElements","List","ListEditing","afterInit","getAttribute","execute","TodoListEditing","previousSibling","checkTodoList","schema","has","*Outdent:* %0","parent","type","todoList","_descriptionFactory","registerElementLabel","from","plugins","markBlockFormat","*Uncheck item*","forceValue","indentList","ELEMENT_NUMBERED_LIST","numberedList","checkChild","add","change","nextSibling","listItem","enableCommand","getSelectedBlocks","outdentList","findIndex","formatInline","bulleted","bulletedList"];var Ds,Bs;Ds=Fs,Bs=202,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0xc")](){const t=this[Ps("0x3c")],e=t[Ps("0x36")];if(!t.plugins[Ps("0x13")](Ps("0xb")))return;const n=t[Ps("0x1b")].get("TrackChangesEditing"),o=t[Ps("0x1b")].has(Ps("0xf"));function i(e){return()=>{const o=t[Ps("0x3d")].document[Ps("0x2f")],i=t[Ps("0x32")].get(e);if(i.value)return void t[Ps("0xe")](Ps("0x3"),{});const r=e.slice(0,-4),s=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Ps("0x22")](e[Ps("0x15")],Ps("0x26"))&&!o[Ps("0x2")](e);var e,o}));o=o.filter((t=>!t.is(Ps("0x30"),"listItem")||t[Ps("0xd")]("listType")!=e));const i=new Set;for(const t of o)t.is(Ps("0x30"),"listItem")?i.add(js(t)):i[Ps("0x23")](t);return Array[Ps("0x1a")](i)}(o[Ps("0x28")](),r,t[Ps("0x3d")][Ps("0x12")]);t[Ps("0x3d")].change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!i[Ps("0x38")]}],formatGroupId:Ps("0x33")},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[Ps("0x2a")]((t=>Ps("0x26")!=t[Ps("0x8")]));return n>-1&&(e=e[Ps("0x31")](0,n)),e}(t.model[Ps("0x7")][Ps("0x2f")][Ps("0x28")]()),i=t.model[Ps("0x4")](t.model.createPositionAt(o[0],"before"),t[Ps("0x3d")].createPositionAt(o[o[Ps("0x37")]-1],Ps("0x34")));t[Ps("0x3d")].change((()=>{n[Ps("0x1c")](i,{commandName:e,commandParams:[],formatGroupId:Ps("0x3b")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ps("0xd")](Ps("0x3b"))>n[Ps("0xd")](Ps("0x3b"));)e[Ps("0x23")](t),t=t.nextSibling}return Array[Ps("0x1a")](e)}(o))}))}}n.enableCommand(Ps("0x21"),i(Ps("0x21"))),n[Ps("0x27")]("bulletedList",i(Ps("0x2d"))),o&&n.enableCommand(Ps("0x17"),i(Ps("0x17"))),n.enableCommand(Ps("0x1f"),r(Ps("0x1f"))),n.enableCommand(Ps("0x29"),r(Ps("0x29"))),o&&n[Ps("0x27")](Ps("0x11"),(()=>{const e=t[Ps("0x32")].get(Ps("0x11")),o=Array[Ps("0x1a")](e[Ps("0x9")]);o[Ps("0x6")]((t=>t[Ps("0xd")]("todoListChecked")!=e[Ps("0x38")])),t[Ps("0x3d")][Ps("0x24")]((()=>{for(const t of o)n[Ps("0x1c")](t,{commandName:Ps("0x11"),commandParams:[{forceValue:!e[Ps("0x38")]}]})}))})),n[Ps("0x18")][Ps("0x19")](Ps("0x26"),(t=>Jo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[Ps("0x16")]&&Ps("0x2b")!=t.type)return;const{data:n}=t;if(n){if(Ps("0x21")==n[Ps("0x3a")]||Ps("0x2d")==n[Ps("0x3a")]||"todoList"==n.commandName)switch(n.commandName.replace(Ps("0xa"),"")){case Ps("0x2c"):return o(Jo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Jo(e,Ps("0x20")));case"todo":return o(Jo(e,Ps("0x39")))}if(Ps("0x1f")==n[Ps("0x3a")])return{type:Ps("0x0"),content:Jo(e,Ps("0x35"),Jo(e,Ps("0x2e")))};if(Ps("0x29")==n[Ps("0x3a")])return{type:Ps("0x0"),content:Jo(e,Ps("0x14"),Jo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[Ps("0x3a")])return n[Ps("0x5")][0][Ps("0x1e")]?{type:Ps("0x0"),content:Jo(e,Ps("0x1"))}:{type:Ps("0x0"),content:Jo(e,Ps("0x1d"))}}function o(t){return{type:Ps("0x0"),content:Jo(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t[Ps("0xd")]("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x10")].is(Ps("0x30"),"listItem");){const o=t[Ps("0x10")][Ps("0xd")]("listIndent");if(o==e)n=t.previousSibling;else if(o<e)break;t=t.previousSibling}return n}function Gs(t){const e=[];if(t.is(Ps("0x30"),Ps("0x26"))&&t[Ps("0xd")]("listIndent")>0){let n=t[Ps("0x25")];for(;n&&Ps("0x26")==n[Ps("0x8")]&&n[Ps("0xd")](Ps("0x3b"))==t[Ps("0xd")](Ps("0x3b"));)e.push(n),n=n[Ps("0x25")]}return e}const Vs=["flat","backward","ListUtils","startIndex","getFirstPosition","document","*Format:* set start index to %0","_getSuggestionBlocksForListStyle","forward","getSelectedBlocks","listType","filter","parent","commandParams","getAttribute","createRange","length","styles","handleListReversedCommand","locale","formatInline","getLastPosition","unshift","push","listStart","plugins","reversed","toUpperCase","ELEMENT_","getListTypeFromListStyleType","markMultiRangeBlockFormat","before","numbered","*Format:* set order to reversed","_descriptionFactory","_LIST_","afterInit","type","handleListStartCommand","map","element","handleListStyleCommand","format","enableCommand","replace","list.properties","*Change to:* %0","model","registerDescriptionCallback","from","formatBlock","listItem","listStyle","bind","selection","commandName","editor","_getTranslationKeyForListStyle","change","TrackChangesEditing","get","handleDescriptions","listReversed","getSiblingNodes","_getSuggestionBlocks","has","createPositionAt"];var Hs,zs;Hs=Vs,zs=380,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x3a")](){if(!this[Ws("0xb")][Ws("0x2f")][Ws("0x14")]("ListPropertiesEditing"))return;const t=this[Ws("0xb")].config[Ws("0xf")](Ws("0x0")),e=this[Ws("0xb")][Ws("0x2f")][Ws("0xf")]("TrackChangesEditing");t[Ws("0x27")]&&e[Ws("0x41")]("listStyle",this[Ws("0x3f")][Ws("0x8")](this)),t[Ws("0x30")]&&e[Ws("0x41")](Ws("0x11"),this[Ws("0x28")].bind(this)),t.startIndex&&e[Ws("0x41")](Ws("0x2e"),this[Ws("0x3c")][Ws("0x8")](this)),e[Ws("0x38")][Ws("0x3")](this[Ws("0x10")][Ws("0x8")](this))}handleListStyleCommand(t,e={}){const n=this[Ws("0xb")][Ws("0x2f")][Ws("0xf")](Ws("0xe")),o=this[Ws("0x1d")]();this.editor[Ws("0x2")][Ws("0xd")]((()=>{n[Ws("0x34")](o,{commandName:Ws("0x7"),commandParams:[{type:e.type}],formatGroupId:Ws("0x7")})}))}handleListReversedCommand(t,e={}){const n=this[Ws("0xb")][Ws("0x2f")][Ws("0xf")]("TrackChangesEditing"),o=this[Ws("0x13")]((t=>t.is(Ws("0x3e"),Ws("0x6"))&&Ws("0x36")===t[Ws("0x24")]("listType")));if(o.length<1)return;const i=o[Ws("0x3d")]((t=>this[Ws("0xb")].model[Ws("0x25")](this.editor.model[Ws("0x15")](t,"before"),this[Ws("0xb")].model[Ws("0x15")](t,0))));this[Ws("0xb")][Ws("0x2")][Ws("0xd")]((()=>{n[Ws("0x34")](i,{commandName:Ws("0x11"),commandParams:[{reversed:e.reversed}],formatGroupId:Ws("0x11")})}))}[Ws("0x3c")](t,e={}){const n=this.editor[Ws("0x2f")][Ws("0xf")]("TrackChangesEditing"),o=this[Ws("0x13")]((t=>t.is(Ws("0x3e"),Ws("0x6"))&&"numbered"===t[Ws("0x24")](Ws("0x20"))));if(o[Ws("0x26")]<1)return;const i=o[Ws("0x3d")]((t=>this[Ws("0xb")].model[Ws("0x25")](this[Ws("0xb")][Ws("0x2")][Ws("0x15")](t,Ws("0x35")),this[Ws("0xb")][Ws("0x2")][Ws("0x15")](t,0))));this.editor[Ws("0x2")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:Ws("0x2e"),commandParams:[{startIndex:e[Ws("0x19")]}],formatGroupId:Ws("0x2e")})}))}[Ws("0x10")](t){if(Ws("0x5")!=t[Ws("0x3b")]&&Ws("0x2a")!=t[Ws("0x3b")])return;const e=this.editor[Ws("0x29")],{data:n}=t;if(!n)return;let o,i;switch(n[Ws("0xa")]){case"listStyle":o=Ws("0x1"),i={type:Ws("0x40"),content:Jo(e,o,Jo(e,this[Ws("0xc")](n[Ws("0x23")][0][Ws("0x3b")])))};break;case"listReversed":o=n.commandParams[0][Ws("0x30")]?Ws("0x37"):"*Format:* set order to regular",i={type:"format",content:Jo(e,o)};break;case"listStart":o=Ws("0x1c"),i={type:Ws("0x40"),content:Jo(e,o,n[Ws("0x23")][0][Ws("0x19")])}}return i}[Ws("0x1d")](){var t,e,n,o;const i=this[Ws("0xb")][Ws("0x2f")].get(Ws("0x18"));let r=Array[Ws("0x4")](this[Ws("0xb")][Ws("0x2")].document.selection.getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0x3e"),Ws("0x6")))&&r[Ws("0x2c")](...i[Ws("0x12")](this[Ws("0xb")].model[Ws("0x1b")][Ws("0x9")][Ws("0x1a")](),Ws("0x17"))),(null===(e=r[r[Ws("0x26")]-1])||void 0===e?void 0:e.is(Ws("0x3e"),"listItem"))&&r[Ws("0x2d")](...i[Ws("0x12")](this[Ws("0xb")][Ws("0x2")].document[Ws("0x9")][Ws("0x2b")](),Ws("0x1e"))),r=[...new Set(r)],(null===(o=null===(n=this.editor[Ws("0x2")].document[Ws("0x9")].getFirstPosition())||void 0===n?void 0:n[Ws("0x22")])||void 0===o?void 0:o.is(Ws("0x3e"),"listItem"))&&(r=r[Ws("0x21")]((t=>t.is(Ws("0x3e"),Ws("0x6"))))),r}_getSuggestionBlocks(t){const e=this.editor[Ws("0x2f")][Ws("0xf")](Ws("0x18"));let n=Array[Ws("0x4")](this.editor[Ws("0x2")][Ws("0x1b")].selection[Ws("0x1f")]()).filter(t)[Ws("0x3d")]((t=>{const n=this[Ws("0xb")].model[Ws("0x15")](t,0);return[...e.getSiblingNodes(n,Ws("0x17")),...e[Ws("0x12")](n,Ws("0x1e"))]}))[Ws("0x16")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Ws("0x32")+this[Ws("0xb")][Ws("0x2f")][Ws("0xf")]("ListUtils")[Ws("0x33")](t)[Ws("0x31")]()+Ws("0x39")+t[Ws("0x31")]()[Ws("0x42")](/-/g,"_")}}const qs=["editor","createEmptyElement","mediaEmbed","_descriptionFactory","TrackChangesEditing","dataDowncast","locale","media","enableCommand","registerElementLabel","get","div","ELEMENT_MEDIA","data","high","attribute:url:media","downcastDispatcher","stop","has","afterInit","showSuggestionHighlights","elementToElement","plugins","conversion"];var Xs,$s;Xs=qs,$s=245,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Qs extends t.Plugin{[Zs("0xe")](){const t=this[Zs("0x13")];if(!t.plugins[Zs("0xd")]("MediaEmbedEditing"))return;const e=t[Zs("0x11")][Zs("0x5")](Zs("0x17")),n=t[Zs("0x1")];e[Zs("0x3")](Zs("0x15")),e[Zs("0x16")][Zs("0x4")](Zs("0x2"),(t=>Jo(n,Zs("0x7"),t))),t[Zs("0x12")].for(Zs("0x0"))[Zs("0x10")]({model:Zs("0x2"),view:(t,{writer:e,options:n})=>{if(n[Zs("0xf")])return e[Zs("0x14")](Zs("0x6"))},converterPriority:Zs("0x9")}),t[Zs("0x8")][Zs("0xb")].on(Zs("0xa"),((t,e,n)=>{n.options.showSuggestionHighlights&&t[Zs("0xc")]()}),{priority:Zs("0x9")})}}const Ys=["TrackChangesEditing","MentionEditing","plugins","enableCommand","has","afterInit","mention"];var Js,tx;Js=Ys,tx=244,function(t){for(;--t;)Js.push(Js.shift())}(++tx);const ex=function(t,e){return Ys[t-=0]};class nx extends t.Plugin{[ex("0x6")](){const t=this.editor;t[ex("0x3")][ex("0x5")](ex("0x2"))&&t[ex("0x3")].get(ex("0x1"))[ex("0x4")](ex("0x0"))}}const ox=["PageBreakEditing","registerElementLabel","has","enableCommand","plugins","afterInit","TrackChangesEditing","ELEMENT_PAGE_BREAK","get","editor","locale"];var ix,rx;ix=ox,rx=314,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0xa")](){const t=this[sx("0x3")];if(!t[sx("0x9")][sx("0x7")](sx("0x5")))return;t[sx("0x9")].get(sx("0x0"))[sx("0x8")]("pageBreak");const e=t[sx("0x9")][sx("0x2")]("TrackChangesEditing"),n=t[sx("0x4")];e._descriptionFactory[sx("0x6")]("pageBreak",(t=>Jo(n,sx("0x1"),t)))}}const ax=["highest","markerName","editor","plugins","_enableDefaultAttributesIntegration","registerElementLabel","paragraph","ELEMENT_PARAGRAPH","isLimit","addMarker:suggestion:insertion","toViewPosition","mapper","data","insertion","bindElementToMarker","_registerLegacyDescription","registerDescriptionCallback","name","createUIElement","showSuggestionHighlights","isBlock","markerRange","ck-suggestion-marker-split","schema","span","insertParagraph","start","editing","nodeAfter","has","commandName","options","activeMarkers","format","getItemLabel","checkChild","includes","_descriptionFactory","writer","$text","consumable","Paragraph","get","type","downcastDispatcher","locale","ck-suggestion-marker--active","TrackChangesEditing","formatBlock","isTouching","enableCommand","*Change to:* %0","afterInit","model"];var cx,lx;cx=ax,lx=442,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x2a")](){const t=this[ux("0x2e")];if(!t[ux("0x2f")][ux("0x13")](ux("0x1f")))return;const e=t[ux("0x23")],n=t[ux("0x2f")].get("TrackChangesEditing");n[ux("0x1b")][ux("0x31")](ux("0x32"),(t=>Jo(e,ux("0x33"),t))),n[ux("0x30")](ux("0x32")),n[ux("0x28")](ux("0xf")),t[ux("0x11")][ux("0x22")].on(ux("0x35"),gx(t),{priority:ux("0x2c")}),t[ux("0x2")].downcastDispatcher.on(ux("0x35"),((e,n,o)=>{o[ux("0x15")][ux("0x9")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x2c")});const o=n[ux("0x1b")];o[ux("0x6")]((n=>{if(ux("0x3")!==n[ux("0x21")])return;const{start:i,end:r}=n.getFirstRange();if(!i.isTouching(r)||!i[ux("0x12")])return;const s=t[ux("0x2b")].schema,x=i[ux("0x12")];return s[ux("0xa")](x)&&!s[ux("0x34")](x)&&s[ux("0x19")](x,"$text")?{type:"insertion",content:Jo(e,"*Insert:* %0",o[ux("0x18")](x,1))}:void 0})),this._registerLegacyDescription()}[ux("0x5")](){const t=this[ux("0x2e")],e=t.locale;t.plugins[ux("0x20")](ux("0x25"))[ux("0x1b")].registerDescriptionCallback((t=>{if(ux("0x26")!=t[ux("0x21")])return;const{data:n}=t;return n&&ux("0x32")==n[ux("0x14")]?{type:ux("0x17"),content:Jo(e,ux("0x29"),Jo(e,ux("0x33")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[ux("0x2f")][ux("0x20")]("TrackChangesEditing"),s=o[ux("0xb")][ux("0x10")],x=o[ux("0xb")].end,a=t[ux("0x2b")][ux("0xd")];if(!s[ux("0x27")](x)||!s[ux("0x12")])return;const c=s[ux("0x12")];if(a[ux("0xa")](c)&&!a[ux("0x34")](c)&&a.checkChild(c,ux("0x1d"))){if(!i[ux("0x1e")].consume(o[ux("0xb")],n[ux("0x7")]))return;const t=i.writer[ux("0x8")](ux("0xe"),{class:ux("0xc")}),s=i[ux("0x1")][ux("0x0")](x);e&&r[ux("0x16")][ux("0x1a")](o[ux("0x2d")])&&i[ux("0x1c")].addClass(ux("0x24"),t),i.writer.insert(s,t),i.mapper[ux("0x4")](t,o[ux("0x2d")])}}}const fx=["has","locale","plugins","_descriptionFactory","commandName","format","_registerLegacyDescription","*Remove all formatting*","TrackChangesEditing","_enableDefaultAttributesIntegration","formatInline","editor","removeFormat","type"];var mx,hx;mx=fx,hx=405,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{afterInit(){const t=this[px("0xc")];t[px("0x3")][px("0x1")]("RemoveFormatEditing")&&(t[px("0x3")].get(px("0x9"))[px("0xa")]("removeFormat"),this[px("0x7")]())}[px("0x7")](){const t=this[px("0xc")];t[px("0x3")].get("TrackChangesEditing")[px("0x4")].registerDescriptionCallback((e=>{if("formatBlock"!=e[px("0x0")]&&px("0xb")!=e[px("0x0")])return;const{data:n}=e;return n&&px("0xd")==n[px("0x5")]?{type:px("0x6"),content:Jo(t[px("0x2")],px("0x8"))}:void 0}))}}const Ex=["discardAllSuggestions","enableCommand","plugins","TrackChangesEditing","discardSuggestion","trackChanges","goToPreviousRestrictedEditingException","goToNextRestrictedEditingException","has","discardSelectedSuggestions","RestrictedEditingModeEditing","get","editor"];var _x,Tx;_x=Ex,Tx=475,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{afterInit(){const t=this[yx("0x5")];if(!t[yx("0x8")][yx("0x1")]("RestrictedEditingModeEditing"))return;const e=t[yx("0x8")][yx("0x4")](yx("0x9"));e.enableCommand(yx("0xc")),e[yx("0x7")](yx("0x0"));const n=t.plugins[yx("0x4")](yx("0x3"));n.enableCommand(yx("0xb")),n.enableCommand("acceptSuggestion"),n[yx("0x7")](yx("0xa")),n[yx("0x7")]("acceptAllSuggestions"),n[yx("0x7")](yx("0x6")),n.enableCommand("acceptSelectedSuggestions"),n[yx("0x7")](yx("0x2"))}}const Ax=["createUIElement","data","locale","requires","get","high","editing","split","test","consumable","getItems","bindElementToMarker","createPositionBefore","includes","insert","name","deletion","plugins","softBreak","activeMarkers","span","writer","_descriptionFactory","downcastDispatcher","model","addMarker:suggestion:deletion","toViewPosition","showSuggestionHighlights","ELEMENT_LINE_BREAK","addMarker:suggestion","element","markerName","markerRange","addMarker:suggestion:insertion","TrackChangesEditing"];var kx,Ix;kx=Ax,Ix=289,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class vx extends t.Plugin{static get[Sx("0x1d")](){return[ur.ShiftEnter]}init(){const t=this.editor,e=t[Sx("0x8")][Sx("0x1e")](Sx("0x19"));e.enableCommand("shiftEnter"),t[Sx("0x20")][Sx("0xe")].on(Sx("0x18"),Rx(t),{priority:Sx("0x1f")}),t[Sx("0x20")][Sx("0xe")].on(Sx("0x10"),Rx(t),{priority:"high"}),t[Sx("0x1b")][Sx("0xe")].on(Sx("0x14"),((e,n,o)=>{o.options[Sx("0x12")]&&Rx(t,{showActiveMarker:!1})(e,n,o)})),e[Sx("0xd")].registerElementLabel(Sx("0x9"),(e=>Jo(t[Sx("0x1c")],Sx("0x13"),e)))}}function Rx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[Sx("0x1e")]("TrackChangesEditing");if(!i[Sx("0x0")][Sx("0x22")](o[Sx("0x17")],n[Sx("0x6")]))return;const s=t[Sx("0xf")];for(const t of o[Sx("0x17")][Sx("0x1")]()){if(!t.is(Sx("0x15"),Sx("0x9")))continue;const n=Sx("0x7")==o[Sx("0x16")][Sx("0x21")](":")[1]?"merge":Sx("0x21"),x=i[Sx("0xc")][Sx("0x1a")](Sx("0xb"),{class:"ck-suggestion-marker-"+n}),a=i.mapper[Sx("0x11")](s[Sx("0x3")](t));e&&r[Sx("0xa")][Sx("0x4")](o[Sx("0x16")])&&i[Sx("0xc")].addClass("ck-suggestion-marker--active",x),i[Sx("0xc")][Sx("0x5")](a,x),i.mapper[Sx("0x2")](x,o[Sx("0x16")])}}}const Nx=["change","isCollapsed","format","getRanges","FORMAT_RESTRICTED_ENABLED","afterInit","has","formatBlock","StandardEditingModeEditing","_descriptionFactory","registerDescriptionCallback","markInlineFormat","model","document","type","locale","forceValue","get","value","selection","commands","formatInline","enableCommand","FORMAT_RESTRICTED_DISABLED","editor","TrackChangesEditing"];var Lx,Mx;Lx=Nx,Mx=444,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x3")](){const t=this[wx("0x16")],e=t[wx("0xa")],n=t[wx("0xd")];if(!t.plugins[wx("0x4")](wx("0x6")))return;const o=t.plugins[wx("0xf")](wx("0x17")),i="restrictedEditingException",r=t[wx("0x12")][wx("0xf")](i);o[wx("0x14")](i,((t,n={})=>{const s=e[wx("0xb")][wx("0x11")];if(s[wx("0x19")])return void t(n);const x=void 0!==n[wx("0xe")]?n[wx("0xe")]:!r[wx("0x10")];e[wx("0x18")]((()=>{const t=Array.from(s[wx("0x1")]());for(const n of t){const t=x?[n]:Xi(i,n,e);for(const e of t)o[wx("0x9")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[wx("0x7")][wx("0x8")]((t=>{if(wx("0x5")!=t[wx("0xc")]&&wx("0x13")!=t.type)return;const{data:e}=t;return e&&e.commandName==i?e.commandParams[0].forceValue?{type:"format",content:Jo(n,wx("0x2"))}:{type:wx("0x0"),content:Jo(n,wx("0x15"))}:void 0}))}}const Fx=["registerDescriptionCallback","style","StyleUtils","_registerInlineAttribute","formatInline","*Set format:* %0","inline","definitions","commandName","TrackChangesEditing","config","add","plugins","getGhsAttributeNameForElement","editor","ghsAttributes","FORMAT_STYLE","normalizeConfig","styleName","format","toLowerCase","commandParams","registerAttributeLabel","element","block","_enableDefaultAttributesIntegration","_registerBlockAttribute","locale","type","_descriptionFactory","get","*Remove format:* %0","DataSchema","_registerLegacyDescription"];var Dx,Bx;Dx=Fx,Bx=227,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this[Px("0x19")];if(!t[Px("0x17")].has("Style")||!t[Px("0x17")].has(Px("0x9")))return;const e=t[Px("0x17")][Px("0x7")](Px("0x14")),n=t.locale,o=t[Px("0x15")][Px("0x7")](Px("0xc")),i=t[Px("0x17")][Px("0x7")]("GeneralHtmlSupport"),r=t.plugins[Px("0x7")](Px("0xd"))[Px("0x1c")](t[Px("0x17")][Px("0x7")](Px("0x9")),o[Px("0x12")]);e[Px("0x2")](Px("0xc"));const s=new Set;for(const t of r[Px("0x1")]){const e=i.getGhsAttributeNameForElement(t[Px("0x0")]);s[Px("0x16")](e)}const x=new Set;for(const t of r[Px("0x11")]){const e=i[Px("0x18")](t.element);x[Px("0x16")](e);for(const e of t[Px("0x1a")])x[Px("0x16")](e)}for(const t of s)e[Px("0x3")](t),e._descriptionFactory.registerAttributeLabel(t,Jo(n,Px("0x1b")));for(const t of x)e[Px("0xe")](t),e[Px("0x6")][Px("0x21")](t,Jo(n,Px("0x1b")));this[Px("0xa")]()}[Px("0xa")](){const t=this[Px("0x19")],e=t[Px("0x4")];t.plugins.get(Px("0x14"))[Px("0x6")][Px("0xb")]((t=>{if("formatBlock"!=t[Px("0x5")]&&Px("0xf")!=t.type)return;const{data:n}=t;return n&&Px("0xc")===n[Px("0x13")]?n.commandParams[0].forceValue?{type:"format",content:Jo(e,Px("0x10"),n.commandParams[0].styleName[Px("0x1f")]())}:{type:Px("0x1e"),content:Jo(e,Px("0x8"),n[Px("0x20")][0][Px("0x1d")][Px("0x1f")]())}:void 0}))}}const jx=["registerElementLabel","_acceptFormatSuggestionCallbackFactory","item","getFirstRange","createPositionAt","findAncestor","registerDescriptionCallback","cell","$graveyard","isTouching","nodeBefore","_getCoordsForCells","getCellLocation","markMultiRangeInsertion","tableCell","getRowIndexes","removeTableRow","showSuggestionHighlights","_getSuggestionCoords","removeTableColumn","_suggestionFactory","data","every","enableCommand","detach","options","last","tableRow","getSuggestion","batch","createTableWalker","getChanges","model","length","includes","toLowerCase","subType","document","mapper","name","startsWith","change","getAttribute","isInContent","map","locale","refresh","selection","start","createRangeIn","table","ELEMENT_TABLE_WITH_TEXT","addClass","insertion","MAX_SAFE_INTEGER","forceValue","insertTableRowBelow","plugins","span","_tableSuggestions","createRangeOn","min","highest","getChildren","execute","setSelection","classes","colspan","isEqual","getChangedMarkers","ELEMENT_TABLE","filter","rowspan","addMarker:suggestion","$textProxy","TrackChangesEditing","toViewElement","first","getContainedElement","discard","ELEMENT_TABLE_ROW_WITH_TEXT","join","insertTableRowAbove","deletion","nodeAfter","addRange","getRanges","commands","accept","ELEMENT_TABLE_COLUMN_WITH_TEXT","suggestion","hasAttribute","*Insert:* %0","position","editor","markMultiRangeDeletion","getSelectionAffectedTableCells","from","root","enqueueChange","insertTableColumnRight","ELEMENT_TABLE_COLUMN","selectTableColumn","substr","registerCustomCallback","_setupColumnsRowsFixing","get","*Remove:* %0","order","max","_descriptionFactory","some","TableUtils","MIN_SAFE_INTEGER","isIntersectingWithRange","push","tablePaste","writer","insert","has","oldRange","tableColumn","rootName","minColumn","fromRange","ELEMENT_TABLE_ROW","end","getColumnIndexes","element","getItems","type"];var Gx,Vx;Gx=jx,Vx=115,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Hx("0x2b"),Hx("0x6")],this[Hx("0x4b")]=new Set}afterInit(){const t=this[Hx("0x6e")],e=t[Hx("0x30")][Hx("0x35")][Hx("0x3f")];if(!t[Hx("0x49")][Hx("0x4")]("TableEditing"))return;const n=t[Hx("0x3d")],o=t.plugins[Hx("0x7a")](Hx("0x5b")),i=t[Hx("0x49")][Hx("0x7a")]("TableUtils");o[Hx("0x7e")][Hx("0x10")]("table",(t=>Jo(n,Hx("0x56"),t))),this._setupColumnsRowsFixing(),o[Hx("0x27")]("insertTable"),o[Hx("0x27")]("selectTableRow"),o[Hx("0x27")](Hx("0x76"));for(const n of[Hx("0x62"),Hx("0x48")]){const r=t[Hx("0x67")][Hx("0x7a")](n);o.enableCommand(n,(n=>{t[Hx("0x30")][Hx("0x39")]((t=>{n();const s="above"===r[Hx("0x7c")],x=i[Hx("0x70")](e),a=i[Hx("0x1f")](x),c=s?a.first-1:a[Hx("0x2a")]+1,l=x[0][Hx("0x15")]("table"),u=i.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Hx("0x71")](u)[Hx("0x3c")]((e=>t[Hx("0x4c")](e[Hx("0x17")])));o[Hx("0x1d")](d,Hx("0x2b"))}))}))}for(const n of["insertTableColumnLeft",Hx("0x74")]){const r=t.commands[Hx("0x7a")](n);o[Hx("0x27")](n,(n=>{t[Hx("0x30")][Hx("0x39")]((t=>{n();const s="left"===r[Hx("0x7c")],x=i[Hx("0x70")](e),a=i[Hx("0xc")](x),c=s?a[Hx("0x5d")]-1:a[Hx("0x2a")]+1,l=x[0].findAncestor(Hx("0x42")),u=i[Hx("0x2e")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x71")](u).map((e=>t[Hx("0x4c")](e[Hx("0x17")])));o.markMultiRangeInsertion(d,Hx("0x6"))}))}))}for(const n of[Hx("0x20"),Hx("0x23")]){const r=n[Hx("0x77")](11),s=r.toLowerCase(),x=s[Hx("0x77")](0,3)+Hx("0x4a"),a="table"+r,c=Hx("0x4d")+r,l=Hx("0x7d")+r;o.enableCommand(n,(()=>{t[Hx("0x30")][Hx("0x39")]((t=>{const r=i.getSelectionAffectedTableCells(e),u=r[0][Hx("0x15")]("table");let d;if(Hx("0x20")==n){const t=i[Hx("0x1f")](r);d={startRow:t.first,endRow:t[Hx("0x2a")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(r);d={startColumn:t[Hx("0x5d")],endColumn:t[Hx("0x2a")],includeAllSlots:!0}}const g=i[Hx("0x2e")](u,d),f=Array[Hx("0x71")](g)[Hx("0x3c")]((({cell:t})=>t)),m=Wx(f[Hx("0x57")]((t=>t.hasAttribute(x)))),h=Wx(f[Hx("0x57")]((t=>!t[Hx("0x6b")](x)))).map((e=>t[Hx("0x4c")](e))),p=o[Hx("0x6f")](h,a);if(p&&(Hx("0x2b")==p[Hx("0x34")]||"tableColumn"==p[Hx("0x34")])){const e=this._getSuggestionCoords(p);for(const n of m){const o=t[Hx("0x4c")](n),r=i[Hx("0x1c")](n),a=n[Hx("0x3a")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[Hx("0x66")]())[Hx("0x3c")]((t=>s.LiveRange[Hx("0x9")](t)));t.model.change((e=>{const i=e[Hx("0x2d")];n=n[Hx("0x57")]((t=>"$graveyard"!=t[Hx("0x72")][Hx("0x7")])),e[Hx("0x51")](n),t[Hx("0x67")][Hx("0x7a")](Hx("0x20"))[Hx("0x3e")](),t[Hx("0x50")](Hx("0x20"),{forceDefaultExecution:!0}),t.model[Hx("0x73")]((()=>{t[Hx("0x30")][Hx("0x73")](i,(t=>{const e=o.filter((t=>Hx("0x18")!=t[Hx("0x72")][Hx("0x7")]));e[Hx("0x31")]>0&&t[Hx("0x51")](e);for(const t of o)t[Hx("0x28")]()}))}))}))}function a(n){t[Hx("0x30")][Hx("0x39")]((o=>{const i=Array[Hx("0x71")](e[Hx("0x66")]())[Hx("0x3c")]((t=>s.LiveRange[Hx("0x9")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Hx("0x0")](e);for(const e of r)Hx("0x18")!=e.root[Hx("0x7")]&&(o.setSelection(o[Hx("0x14")](e,0)),t.commands.get(Hx("0x23")).refresh(),t.execute(Hx("0x23"),{forceDefaultExecution:!0}));const x=i.filter((t=>Hx("0x18")!=t[Hx("0x72")].rootName));x[Hx("0x31")]>0&&o[Hx("0x51")](x);for(const t of i)t[Hx("0x28")]()}))}function c(t,e){return e[Hx("0x26")]((e=>t[Hx("0x7f")]((t=>t[Hx("0xb")].isEqual(e.start)||e[Hx("0xb")][Hx("0x54")](t.start)))))}function l(t,e){return t[Hx("0x7f")]((t=>e[Hx("0x7f")]((e=>t[Hx("0xb")][Hx("0x19")](e[Hx("0x40")])))))}t.data.downcastDispatcher.on(Hx("0x59"),((t,e,n)=>{if(!n[Hx("0x29")][Hx("0x21")])return;const o=e[Hx("0x12")];if(!o)return;const i=n[Hx("0x36")][Hx("0x5c")](o);function r(t){return Array.isArray(t)?t:[t]}i&&Hx("0x1e")===o[Hx("0x37")]&&(0,x.setHighlightHandling)(i,n[Hx("0x2")],((t,e,n)=>n[Hx("0x44")](r(e[Hx("0x52")]),t)),((t,e,n)=>n.removeClass(r(e[Hx("0x52")]),t)))}),{priority:Hx("0x4e")}),o[Hx("0x7e")][Hx("0x16")]((t=>{if("insertion"!=t[Hx("0xf")]&&"deletion"!=t[Hx("0xf")])return;const e=t[Hx("0x5e")]();if(null!=e&&e.is(Hx("0xd"),Hx("0x42"))){if(Hx("0x45")==t[Hx("0xf")]){const e=t.getItems()[Hx("0x57")]((t=>t.is(Hx("0x5a")))).map((t=>t.data));if(e.length)return{type:"insertion",content:Jo(n,Hx("0x6c"),Jo(n,Hx("0x43"),'"'+e[Hx("0x61")](" ")+'"'))}}if(Hx("0x63")==t.type){const e=t[Hx("0xe")]()[Hx("0x57")]((t=>t.is(Hx("0x5a"))))[Hx("0x3c")]((t=>t[Hx("0x25")]));if(e.length)return{type:Hx("0x63"),content:Jo(n,Hx("0x7b"),Jo(n,Hx("0x43"),'"'+e[Hx("0x61")](" ")+'"'))}}}})),o[Hx("0x7e")].registerDescriptionCallback((t=>{if(Hx("0x2b")==t[Hx("0x34")]){const e=t[Hx("0xe")]().filter((t=>t.is("$textProxy"))).map((t=>t[Hx("0x25")])),o=this[Hx("0x22")](t),i=o.maxRow-o.minRow+1;if(Hx("0x45")==t[Hx("0xf")])return e[Hx("0x31")]?{type:Hx("0x45"),content:Jo(n,Hx("0x6c"),Jo(n,Hx("0x60"),[i,'"'+e[Hx("0x61")](" ")+'"']))}:{type:Hx("0x45"),content:Jo(n,Hx("0x6c"),Jo(n,Hx("0xa"),i))};if(Hx("0x63")==t[Hx("0xf")])return e[Hx("0x31")]?{type:Hx("0x63"),content:Jo(n,"*Remove:* %0",Jo(n,Hx("0x60"),[i,'"'+e.join(" ")+'"']))}:{type:Hx("0x63"),content:Jo(n,Hx("0x7b"),Jo(n,Hx("0xa"),i))}}if(Hx("0x6")==t[Hx("0x34")]){const e=t[Hx("0xe")]()[Hx("0x57")]((t=>t.is(Hx("0x5a"))))[Hx("0x3c")]((t=>t.data)),o=this._getSuggestionCoords(t),i=o.maxColumn-o[Hx("0x8")]+1;if("insertion"==t[Hx("0xf")])return e[Hx("0x31")]?{type:Hx("0x45"),content:Jo(n,"*Insert:* %0",Jo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Hx("0x61")](" ")+'"']))}:{type:Hx("0x45"),content:Jo(n,"*Insert:* %0",Jo(n,Hx("0x75"),i))};if("deletion"==t.type)return e[Hx("0x31")]?{type:Hx("0x63"),content:Jo(n,Hx("0x7b"),Jo(n,Hx("0x69"),[i,'"'+e[Hx("0x61")](" ")+'"']))}:{type:Hx("0x63"),content:Jo(n,Hx("0x7b"),Jo(n,Hx("0x75"),i))}}})),o[Hx("0x24")][Hx("0x78")](Hx("0x45"),Hx("0x2b"),"discard",r),o[Hx("0x24")][Hx("0x78")]("deletion","tableRow","accept",r),o[Hx("0x24")][Hx("0x78")](Hx("0x45"),Hx("0x6"),Hx("0x5f"),a),o[Hx("0x24")].registerCustomCallback("deletion",Hx("0x6"),Hx("0x68"),a),o[Hx("0x24")][Hx("0x78")](Hx("0x45"),Hx("0x6"),Hx("0x61"),c),o[Hx("0x24")][Hx("0x78")](Hx("0x63"),Hx("0x6"),Hx("0x61"),c),o[Hx("0x24")][Hx("0x78")](Hx("0x45"),"tableRow",Hx("0x61"),l),o[Hx("0x24")][Hx("0x78")](Hx("0x63"),Hx("0x2b"),Hx("0x61"),l)}[Hx("0x11")](){const t=this.editor,e=t.model.document[Hx("0x3f")];return(n,o)=>{t[Hx("0x30")][Hx("0x39")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Hx("0x1a")];x&&x[0]&&!1===x[0][Hx("0x47")]&&(a=n[0].start.nodeAfter);const c=i[Hx("0x41")](a);if(Hx("0x18")==c[Hx("0x72")][Hx("0x7")])return;const l=Array[Hx("0x71")](e[Hx("0x66")]())[Hx("0x3c")]((t=>s.LiveRange[Hx("0x9")](t)));i[Hx("0x51")](c),t[Hx("0x67")][Hx("0x7a")](r)[Hx("0x3e")](),x[Hx("0x0")]({forceDefaultExecution:!0}),t[Hx("0x50")](r,...x);const u=l.filter((t=>Hx("0x18")!=t[Hx("0x72")][Hx("0x7")]));u[Hx("0x31")]>0&&i[Hx("0x51")](u);for(const t of l)t.detach()}))}}_getCoordsForCells(t){const e=this[Hx("0x6e")][Hx("0x49")][Hx("0x7a")](Hx("0x80"));let n=Number[Hx("0x46")],o=Number[Hx("0x81")],i=Number[Hx("0x46")],r=Number[Hx("0x81")];for(const s of t){if(Hx("0x18")==s[Hx("0x72")][Hx("0x7")])continue;const{row:t,column:x}=e[Hx("0x1c")](s),a=s.hasAttribute(Hx("0x58"))?s[Hx("0x3a")](Hx("0x58"))-1:0,c=s[Hx("0x6b")]("colspan")?s[Hx("0x3a")](Hx("0x53"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Hx("0x79")](){const t=this.editor,e=t.plugins[Hx("0x7a")](Hx("0x5b")),n=t[Hx("0x49")][Hx("0x7a")]("TableUtils");t.model[Hx("0x35")].on("change:data",(()=>{const n=Array[Hx("0x71")](t[Hx("0x30")][Hx("0x35")].differ[Hx("0x55")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e._splitMarkerName(t);if(Hx("0x6a")!=n)continue;if(null!=o[Hx("0x5")])continue;const s=e[Hx("0x2c")](i);this._tablePostFixingSubtypes[Hx("0x32")](r)&&this[Hx("0x4b")].add(s)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const i=e.createRangeOn(t),r=t[Hx("0x15")]("table"),s=n[Hx("0x1c")](t);for(const e of this[Hx("0x4b")]){const n=e.subType,x=n[Hx("0x38")](Hx("0x1")),a=n[Hx("0x77")](x?10:5),c=a[Hx("0x33")](),l=c[Hx("0x77")](0,3)+Hx("0x4a"),u=Hx("0x4d")+a,d=Hx("0x7d")+a;if(!e[Hx("0x3b")])continue;if(r!=e[Hx("0x13")]()[Hx("0x40")][Hx("0x15")](Hx("0x42")))continue;if(e[Hx("0x82")](i))continue;const g=t[Hx("0x6b")](l)?t.getAttribute(l)-1:0,f=this[Hx("0x22")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x65")](i),o=!0)}return o};t[Hx("0x30")].document.registerPostFixer((e=>{let n=!1;for(const i of t[Hx("0x30")][Hx("0x35")].differ[Hx("0x2f")]())if(Hx("0x3")==i[Hx("0xf")])if(Hx("0x2b")==i[Hx("0x37")])for(const t of i[Hx("0x6d")][Hx("0x64")][Hx("0x4f")]())n=n||o(t,e);else"tableCell"==i[Hx("0x37")]&&(n=n||o(i[Hx("0x6d")][Hx("0x64")],e));return n}))}_getSuggestionCoords(t){return this[Hx("0x1b")](t.getRanges()[Hx("0x3c")]((t=>t[Hx("0x40")][Hx("0x64")])))}}function Wx(t){return Array[Hx("0x71")](new Set(t).values())}const Kx=["findAncestor","format","map","createRangeOn","value","commands","isInContent","splitTableCellHorizontally","requires","_suggestionFactory","formatInline","mergeTableCells","accept","markMultiRangeBlockFormat","subType","_isForcedDefaultExecutionBlock","plugins","low","filter","getRanges","registerDescriptionCallback","direction","_tablePostFixingSubtypes","createTableWalker","mergeTableCellUp","refresh","_areMergableCells","$graveyard","detach","root","_areSelectedCellsMergable","element","cell","*Merge cells*","stop","_descriptionFactory","selection","TrackChangesEditing","afterInit","_acceptFormatSuggestionCallbackFactory","insertion","length","get","getFirstPosition","type","deletion","horizontally","execute","isEnabled","trackChanges","find","document","mergeTableCellRight","registerCustomCallback","locale","formatBlock","model","change","enableCommand","size","getSelectionAffectedTableCells","TableEditing","editor","author","has","add","mergeTableCellDown","containsRange","TableUtils","splitTableCellVertically","from","getAncestors","commandName","getSuggestions","mergeTableCellLeft","tableCell","*Split cell:* horizontally"];var qx,Xx;qx=Kx,Xx=306,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0xa")](){return[zx]}[$x("0x28")](){const t=this[$x("0x40")],e=t[$x("0x3a")].document[$x("0x26")],n=t[$x("0x38")];if(!t.plugins.has($x("0x3f")))return;const o=t.plugins[$x("0x2c")]($x("0x27")),i=t.plugins[$x("0x2c")]($x("0x46")),r=t[$x("0x12")].get(zx);r[$x("0x18")].push($x("0xd")),o[$x("0x3c")]($x("0xd"),(()=>{const e=i[$x("0x3e")](t.model[$x("0x35")][$x("0x26")]);t[$x("0x3a")].change((()=>{o[$x("0xf")](e,{commandName:"mergeTableCells",commandParams:[]},[],$x("0xd"))}))})),t[$x("0x7")].get($x("0xd")).on("execute",((e,n)=>{t.commands[$x("0x2c")]($x("0x33"))[$x("0x6")]&&(n[$x("0x2b")]>0&&n[n.length-1]&&n[n[$x("0x2b")]-1].forceDefaultExecution||o[$x("0x11")]||this[$x("0x20")]()||e[$x("0x24")]())}),{priority:"highest"});for(const e of[$x("0x1a"),$x("0x36"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t.commands[$x("0x2c")](e);o[$x("0x3c")](e,(()=>{const e=t[$x("0x3a")].document.selection[$x("0x2d")]()[$x("0x49")]()[$x("0x34")]((t=>t.is($x("0x21"),$x("0x0")))),i=n[$x("0x6")];t.model.change((()=>{o[$x("0xf")]([e,i],{commandName:$x("0xd"),commandParams:[]},[],$x("0xd"))}))}))}for(const e of["splitTableCellVertically",$x("0x9")]){const n=t[$x("0x7")][$x("0x2c")](e);o[$x("0x3c")](e,(()=>{const r=i[$x("0x3e")](t[$x("0x3a")].document[$x("0x26")])[0],s=r[$x("0x2")]("table"),{column:x,row:a}=i.getCellLocation(r);let c=[];if($x("0x30")==n[$x("0x17")]){const t=i[$x("0x19")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x48")](t)[$x("0x4")]((t=>t[$x("0x22")]))}else{const t=i[$x("0x19")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x48")](t)[$x("0x4")]((t=>t[$x("0x22")]))}t[$x("0x3a")][$x("0x3b")]((t=>{o.markBlockFormat(t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x25")][$x("0x16")]((t=>{if("formatBlock"!=t[$x("0x2e")]&&$x("0xc")!=t[$x("0x2e")])return;const{data:e}=t;return e&&$x("0xd")==e[$x("0x4a")]?{type:"format",content:Jo(n,$x("0x23"))}:void 0})),o[$x("0x25")][$x("0x16")]((t=>{if("formatBlock"!=t.type&&$x("0xc")!=t[$x("0x2e")])return;const{data:e}=t;return e?$x("0x47")==e[$x("0x4a")]?{type:"format",content:Jo(n,"*Split cell:* vertically")}:$x("0x9")==e[$x("0x4a")]?{type:$x("0x3"),content:Jo(n,$x("0x1"))}:void 0:void 0}));const x=r[$x("0x29")]();for(const t of["mergeTableCellUp","mergeTableCellRight","mergeTableCellDown",$x("0x4c")])o[$x("0xb")][$x("0x37")]("formatBlock",t,"accept",x);for(const t of[$x("0x47"),"splitTableCellHorizontally"])o[$x("0xb")][$x("0x37")]($x("0x39"),t,$x("0xe"),x);o[$x("0xb")][$x("0x37")]($x("0x39"),$x("0xd"),$x("0xe"),(n=>{t[$x("0x3a")][$x("0x3b")]((o=>{const i=Array[$x("0x48")](e[$x("0x15")]())[$x("0x4")]((t=>s.LiveRange.fromRange(t)));o.setSelection(n),t[$x("0x7")][$x("0x2c")]("mergeTableCells")[$x("0x1b")](),t[$x("0x31")]("mergeTableCells",{forceDefaultExecution:!0});const r=i[$x("0x14")]((t=>$x("0x1d")!=t[$x("0x1f")].rootName));r[$x("0x2b")]>0&&o.setSelection(r);for(const t of i)t[$x("0x1e")]()}))}));for(const e of[$x("0x1a"),$x("0x44"),"mergeTableCellLeft",$x("0x36")]){const n=t[$x("0x7")].get(e);n.on("set:isEnabled",((e,o,i)=>{if(i){const o=t.model[$x("0x35")][$x("0x26")][$x("0x2d")]()[$x("0x49")]()[$x("0x34")]((t=>t.is($x("0x21"),$x("0x0"))));this._areMergableCells(n.value,o)||(e.return=!1,e.stop())}}),{priority:$x("0x13")})}}[$x("0x20")](){const t=this.editor.commands.get($x("0xd")),e=this.editor[$x("0x12")][$x("0x2c")]($x("0x46"));if(!t[$x("0x32")])return!1;const n=e[$x("0x3e")](this[$x("0x40")][$x("0x3a")][$x("0x35")][$x("0x26")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x1c")](t,e))return!1;return!0}[$x("0x1c")](t,e){const n=this[$x("0x40")][$x("0x12")][$x("0x2c")]($x("0x27")),o=this.editor[$x("0x3a")].createRangeOn(t),i=this[$x("0x40")].model[$x("0x5")](e),r=new Set,s=new Set;for(const t of n[$x("0x4b")]())if(($x("0x2a")==t[$x("0x2e")]||$x("0x2f")==t[$x("0x2e")]||$x("0xd")==t[$x("0x10")])&&t[$x("0x8")])for(const e of t[$x("0x15")]())e[$x("0x45")](o,!0)&&r[$x("0x43")](t[$x("0x2e")]+":"+t[$x("0x41")].id),e[$x("0x45")](i,!0)&&s.add(t[$x("0x2e")]+":"+t.author.id);if(r[$x("0x3d")]!=s[$x("0x3d")])return!1;for(const t of r)if(!s[$x("0x42")](t))return!1;return!0}}const Qx=["data","ck-suggestion-marker--active","highest","nodeBefore","format","writer","_handleLegacySuggestions","mapper","FORMAT_HEADER_ROW","includes","headingRows","addClass","TrackChangesEditing","showSuggestionHighlights","setAttribute","toViewElement","headingColumns","setTableColumnHeader","forceValue","addMarker:suggestion","consumable","commandParams","markerNameToElements","editing","item","accept","unbindElementFromMarkerName","*Format:* %0","removeAttribute","data-suggestion","_descriptionFactory","options","registerDescriptionCallback","markerName","registerCustomCallback","downcastDispatcher","FORMAT_HEADER_COLUMN","getSuggestion","locale","editor","parent","getCellLocation","plugins","start","consume","_enableDefaultAttributesIntegration","activeMarkers","_suggestionFactory","get","registerAttributeLabel","TableUtils","stop","setTableRowHeader","ck-suggestion-marker-","removeClass","bindElementToMarker","_registerLegacyDescription","removeMarker:suggestion","cell","type","commandName","_acceptFormatSuggestionCallbackFactory","formatBlock"];var Yx,Jx;Yx=Qx,Jx=159,function(t){for(;--t;)Yx.push(Yx.shift())}(++Jx);const ta=function(t,e){return Qx[t-=0]};class ea extends t.Plugin{static get requires(){return[zx]}afterInit(){const t=this[ta("0x6")];if(!t[ta("0x9")].has("TableEditing"))return;const e=t[ta("0x5")],n=t[ta("0x9")].get(ta("0x2a"));n[ta("0xc")](ta("0x13"),[],["headingRows"]),n[ta("0xc")](ta("0x2f"),[],[ta("0x2e")]),n[ta("0x3c")][ta("0x10")](ta("0x28"),Jo(e,ta("0x26"))),n._descriptionFactory[ta("0x10")](ta("0x2e"),Jo(e,ta("0x3"))),this[ta("0x24")]()}[ta("0x24")](){const t=this[ta("0x6")][ta("0x9")][ta("0xf")](ta("0x2a")),e=this[ta("0x6")][ta("0x9")].get(ta("0x11")),n=this[ta("0x6")][ta("0x9")][ta("0xf")](zx)[ta("0x1c")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t._splitMarkerName(r[ta("0x0")]),c=t[ta("0x4")](a),l=c[ta("0x1e")];if(ta("0x1d")!=c[ta("0x1a")]||!l||"setTableColumnHeader"!=l.commandName)return;if(r[ta("0x36")])return void i[ta("0x12")]();if(!s[ta("0x32")][ta("0xb")](r.markerRange,i.name))return;const u=r.markerRange[ta("0xa")].nodeAfter,d=r.markerRange.end[ta("0x21")],g=u[ta("0x7")][ta("0x7")],{column:f}=e.getCellLocation(u),{column:m}=e[ta("0x8")](d);for(let i=f;i<=m;i++){const c=e.createTableWalker(g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0x19")],c=s[ta("0x25")][ta("0x2d")](i);s[ta("0x23")][ta("0x29")](ta("0x14")+x,c),o&&s.writer[ta("0x2c")]("data-suggestion",a,c),s[ta("0x25")][ta("0x16")](c,r.markerName),n&&(t[ta("0xd")][ta("0x27")](r.markerName)?s[ta("0x23")][ta("0x29")](ta("0x1f"),c):s[ta("0x23")][ta("0x15")](ta("0x1f"),c))}}}}t[ta("0xe")][ta("0x1")](ta("0x1d"),"setTableRowHeader",ta("0x37"),n),t[ta("0xe")][ta("0x1")](ta("0x1d"),ta("0x2f"),ta("0x37"),n),this[ta("0x6")][ta("0x35")][ta("0x2")].on(ta("0x31"),o(),{priority:ta("0x20")}),this[ta("0x6")][ta("0x1e")][ta("0x2")].on("addMarker:suggestion",((t,e,n)=>{n[ta("0x3d")][ta("0x2b")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x20")}),this[ta("0x6")][ta("0x35")][ta("0x2")].on(ta("0x18"),((e,n,o)=>{const{type:i,id:r}=t._splitMarkerName(n[ta("0x0")]),s=t[ta("0x4")](r),x=s[ta("0x1e")];if(ta("0x1d")!=s[ta("0x1a")]||!x||ta("0x2f")!=x[ta("0x1b")])return;const a=o.mapper[ta("0x34")](n[ta("0x0")]);if(a)for(const t of a)o[ta("0x23")][ta("0x15")](ta("0x14")+i,t),o.writer[ta("0x15")](ta("0x1f"),t),o[ta("0x23")][ta("0x3a")](ta("0x3b"),t),o[ta("0x25")][ta("0x38")](t,n[ta("0x0")])}),{priority:ta("0x20")}),this[ta("0x17")]()}_registerLegacyDescription(){const t=this[ta("0x6")],e=t[ta("0x5")];function n(t){return{type:ta("0x22"),content:Jo(e,ta("0x39"),t)}}t[ta("0x9")][ta("0xf")](ta("0x2a"))[ta("0x3c")][ta("0x3e")]((t=>{if(ta("0x1d")!=t[ta("0x1a")])return;const{data:o}=t;if(o){if(ta("0x13")==o.commandName){const t=o[ta("0x33")][0][ta("0x30")];return n(Jo(e,t?"FORMAT_HEADER_ROW":"FORMAT_REGULAR_ROW"))}if(ta("0x2f")==o[ta("0x1b")]){const t=o[ta("0x33")][0][ta("0x30")];return n(Jo(e,t?ta("0x3"):"FORMAT_REGULAR_COLUMN"))}}}))}}const na=["position","tablePaste","TableUtils","_tablePostFixingSubtypes","tableCellHorizontalAlignment","entries","every","move","accept","table","add","editor","_suggestionFactory","insertion","differ","_isForcedDefaultExecutionBlock","removeRows","endColumn","documentSelection","commands","tableCellSuggestion","getRange","reduce","registerDescriptionCallback","hasSuggestion","getItems","row","insertColumns","formatBlock","batch","markerAttributes","plugins","getShiftedBy","registerPostFixer","getChangedMarkers","ck-suggestion-marker--active","insertionRanges","insertContent","Users","TrackChangesEditing","end","wrap","forceDefaultExecution","clipboardOutput","paragraph","document","removeMarker","model","getChildren","deletion","getSuggestions","getMarkers","startsWith","suggestion-td","stop","getRowIndexes","getColumnIndexes","isInContent","tablePasteCell","from","editingDowncast","tableCellBackgroundColor","_descriptionFactory","createRangeOn","length","findAncestor","columnInsertionRanges","set","removeMarkers","setAttribute","subType","activeMarkers","tablePasteRow","cells","_getCoordsForCells","columnInsertionIndexes","locale","getSelectionAffectedTableCells","oldRange","options","$graveyard","map","join","registerCustomCallback","filter","column","suggestion","get","createRange","tablePasteColumn","markMultiRangeBlockFormat","push","next","containsRange","newRange","includes","author","start","insert","for","afterInit","getAllAdjacentSuggestions","rowInsertionRanges","setAttributes","conversion","*Replace table cells*","trackChanges","previousSibling","createTableWalker","view","deletionRanges","change","suggestionLoaded","type","tableCellBorderStyle","rowInsertionIndexes","has","element","markers","getChild","_splitMarkerName","tablePasteChainId","getSuggestion","some","discard","first","schema","ck-suggestion-marker-insertion","createRangeIn","tableCell","insertRows","unwrap","tableCellBorderWidth","isEqual","editing","_replaceTableSlotCell","value","find","name","listenTo","attributes","fill","suggestion:formatBlock:tablePasteCell","content","markerToHighlight","tableCellPadding","return","columns","getContainedElement","updateMarker","getRanges","last","high","elementToElement","selection","getRows","nextSibling","keys","createElement","TableClipboard","isEmpty","remove","redo","markMultiRangeInsertion","fromEntries"];var oa,ia;oa=na,ia=218,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0x4f"),"tableCellBorderColor",ra("0x3d"),ra("0x74"),"tableCellVerticalAlignment",ra("0x8"),ra("0x5c")],xa=Object[ra("0x6f")](sa[ra("0x1c")]((t=>[t,null])));class aa extends t.Plugin{static get requires(){return[zx]}[ra("0x2f")](){const t=this.editor;if(!t[ra("0x8f")].has(ra("0x6a")))return;const n=t[ra("0x8f")].get(ra("0x97")),o=t.plugins.get(ra("0x72")),i=t[ra("0x8f")].get(zx),r=t.plugins[ra("0x22")](ra("0x6a"));i[ra("0x73")][ra("0x26")](ra("0x13"),ra("0x24")),t[ra("0x9f")][ra("0x49")].register(ra("0x84"),{allowIn:ra("0x4c"),allowContentOf:"tableCell",isLimit:!0}),t[ra("0x33")][ra("0x64")]({model:ra("0x84"),view:ra("0x0")});let s=null;t.model.on(ra("0x95"),((i,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ra("0x9a")]||n[ra("0x7f")]||this[ra("0x7b")][ra("0x83")].get(ra("0x35"))[ra("0x53")]&&function(t,e,n,o,i){if(e&&!e.is(ra("0x82")))return!1;const r=i.getTableIfOnlyTableInContent(t,n);if(!r||!la(r,void 0,o))return!1;const s=o[ra("0x18")](n.document[ra("0x65")]);if(!s.length)return!1;const x=s[0][ra("0xc")]("table"),a=o[ra("0x2")](s),c=o[ra("0x3")](s),l={startRow:a[ra("0x48")],endRow:a[ra("0x62")],startColumn:c[ra("0x48")],endColumn:c[ra("0x62")]};return 1==s.length&&(l.endRow+=o[ra("0x66")](r)-1,l[ra("0x81")]+=o.getColumns(r)-1),la(x,l,o)}(a,c,t.model,o,r)&&(i.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x9f")].change((()=>{t[ra("0x9f")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ra("0xb")]&&n[ra("0x6e")](i,"tablePasteRow",{tablePasteChainId:o}),r[ra("0xb")]&&n.markMultiRangeInsertion(r,ra("0x24"),{tablePasteChainId:o}),a[ra("0xb")]&&n.markMultiRangeInsertion(a,ra("0x71"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0xb")]&&n.markMultiRangeDeletion(c,ra("0x71"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0x25")](l[ra("0x1c")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x5"),{tablePasteChainId:o});if(u){const e=u[ra("0xa3")](),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[ra("0x9f")][ra("0xa")](o),s=e[ra("0x54")]((t=>t[ra("0x85")]()[ra("0x50")](r)));s&&n[ra("0x26")]([s[ra("0x55")],i])}n[ra("0xb")]&&u[ra("0x10")]("markerAttributes",Object[ra("0x6f")](n))}s=null})))}),{priority:e.priorities[ra("0x63")]+10}),t.plugins[ra("0x22")](ra("0x6a")).on(ra("0x52"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t[ra("0x1")]();const r=n.cell,x=o,a=ca(r),c=ca(x);t[ra("0x5d")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x6c")](r.getChild(0));for(const t of Array[ra("0x6")](x[ra("0xa0")]()))i[ra("0x2d")](t,r,"end");const t=s[ra("0x3e")].includes(n[ra("0x8a")]),e=s[ra("0x16")][ra("0x2a")](n[ra("0x20")]);t||e||(l=i[ra("0x4b")](r))}else c&&!a&&(u=i.createRangeIn(r));else{const t=i[ra("0x69")](ra("0x84")),e=i[ra("0x69")]("tableCellSuggestion");i[ra("0x99")](i[ra("0x4b")](r),e),i.insert(t,r,0);for(const e of Array[ra("0x6")](x[ra("0xa0")]()))i[ra("0x2d")](e,t,ra("0x98"));l=i[ra("0xa")](t),u=i[ra("0xa")](e)}const d=Array[ra("0x6")](x.getAttributes())[ra("0x1f")]((([t])=>sa.includes(t)));s[ra("0x14")][ra("0x26")]({element:r,attributes:d[ra("0xb")]?Object[ra("0x6f")](d):null}),l&&s[ra("0x94")].push(l),u&&s[ra("0x39")][ra("0x26")](u)}),{priority:ra("0x63")}),o.on(ra("0x8b"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x5e")]||1;s[ra("0x16")]=new Array(a).fill(x)[ra("0x1c")](((t,e)=>t+e));for(const{cell:e}of o[ra("0x37")](i,{startColumn:x,endColumn:x+a-1}))s[ra("0xd")].push(t[ra("0x9f")].createRangeOn(e))}),{priority:"low"}),o.on(ra("0x4d"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r.rows||1;s[ra("0x3e")]=new Array(a)[ra("0x58")](x)[ra("0x1c")](((t,e)=>t+e));for(const{cell:e}of o[ra("0x37")](i,{startRow:x,endRow:x+a-1}))s[ra("0x31")][ra("0x26")](t[ra("0x9f")][ra("0xa")](e))}),{priority:"low"}),n[ra("0x9")][ra("0x87")]((e=>{if(e[ra("0x11")]&&e[ra("0x11")].startsWith(ra("0x71")))return e.previous?{}:{type:ra("0x7d"),content:Jo(t[ra("0x17")],ra("0x34"))}}));const x=()=>!1;for(const t of[ra("0x71"),ra("0x24"),ra("0x13"),ra("0x5")])n._suggestionFactory[ra("0x1e")]("insertion",t,"join",x),n._suggestionFactory[ra("0x1e")]("deletion",t,ra("0x1d"),x),n[ra("0x7c")].registerCustomCallback("formatBlock",t,ra("0x1d"),x);n[ra("0x7c")][ra("0x1e")](ra("0x8c"),"tablePasteCell",ra("0x47"),x),n[ra("0x7c")][ra("0x1e")](ra("0x8c"),"tablePasteCell",ra("0x78"),((e,n,o)=>{const i=e.map((t=>t[ra("0x5f")]()))[ra("0x1f")]((t=>t)),r=new Map(i[ra("0x1c")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x14")])e&&r[ra("0xe")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[ra("0x75")](o.markerAttributes)){const o=t[ra("0x9f")][ra("0x41")][ra("0x22")](e),i=o?o[ra("0x85")]()[ra("0x5f")]():null;i&&r[ra("0xe")](i,n)}t.model[ra("0x3a")]((t=>{for(const[e,n]of r)t[ra("0x32")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ra("0x7c")][ra("0x1e")](e,ra("0x71"),o,((i,r,s)=>{t.model[ra("0x3a")]((t=>{const x=[];for(const t of i){const e=t[ra("0x2c")].nodeAfter;e.is("element",ra("0x84"))&&x[ra("0x26")](e)}n._suggestionFactory.getSuggestionCallback(e,null,o)(i,r,s);for(const e of x)ra("0x1b")!=e.root.rootName&&t[ra("0x4e")](e)}))}))};a("insertion",ra("0x78")),a(ra("0x7d"),"discard"),a(ra("0xa1"),ra("0x78")),a(ra("0xa1"),ra("0x47")),n._suggestionFactory.registerCustomCallback("insertion",ra("0x13"),ra("0x47"),(t=>{const e=t[ra("0x1c")]((t=>t[ra("0x5f")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:s}=i._getCoordsForCells(e);o[ra("0x80")](n,{at:r,rows:s-r+1})})),n[ra("0x7c")][ra("0x1e")]("insertion",ra("0x24"),ra("0x47"),(t=>{const e=t[ra("0x1c")]((t=>t[ra("0x5f")]())),n=e[0][ra("0xc")](ra("0x79")),{minColumn:r,maxColumn:s}=i[ra("0x15")](e);o.removeColumns(n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x11")]||!e[ra("0x11")].startsWith(ra("0x71")))return;const o=e[ra("0x57")][ra("0x44")],i=n[ra("0xa2")]().filter((t=>t[ra("0x4")]&&t.attributes&&t[ra("0x57")][ra("0x44")]==o));i[ra("0xb")]&&e[ra("0x30")]()[ra("0xb")]!=i[ra("0xb")]&&i[ra("0x86")](((t,e)=>(t[ra("0x27")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0x43")](t.markerName),i=["ck-suggestion-marker",ra("0x4a")],r=n[ra("0x12")][ra("0x2a")](t.markerName);return r&&i[ra("0x26")](ra("0x93")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(ra("0x3b"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:ra("0x63")}),t.model[ra("0x9d")][ra("0x91")]((()=>{let e=!1;const o=Array[ra("0x6")](t[ra("0x9f")][ra("0x9d")][ra("0x7e")].getChangedMarkers());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n[ra("0x43")](i);if(ra("0x21")!=o||ra("0xa1")!=s||r[ra("0x19")])continue;if(!n[ra("0x88")](x))continue;const a=n[ra("0x45")](x)[ra("0x61")](),c=t[ra("0x8f")].get(ra("0x96")).me;for(const t of n[ra("0xa2")]())if(t.isInContent&&t[ra("0x2b")]==c&&ra("0x8c")==t[ra("0x3c")]&&ra("0x5")==t[ra("0x11")]&&t[ra("0x61")]()[ra("0x76")]((t=>a[ra("0x46")]((e=>e[ra("0x28")](t,!0))))))for(const n of t[ra("0x30")]())n.isInContent&&(n[ra("0x47")](),e=!0)}return e})),t.model.document[ra("0x91")]((e=>{const o=t[ra("0x83")][ra("0x22")](ra("0x6d"));if(!o||!o._createdBatches[ra("0x3f")](e[ra("0x8d")]))return!1;let i=!1;const r=t[ra("0x8f")][ra("0x22")]("Users").me,s=t[ra("0x9f")][ra("0x9d")][ra("0x7e")].getChanges(),x=Array[ra("0x6")](t.model[ra("0x9d")][ra("0x7e")][ra("0x92")]()).filter((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0x43")](t);return"suggestion"==o&&ra("0x71")==i&&s==r.id&&!e.oldRange}));for(const t of s){if("insert"!=t[ra("0x3c")]||"tableCellSuggestion"!=t.name||1!=t[ra("0xb")])continue;const n=e[ra("0x23")](t.position,t[ra("0x70")][ra("0x90")](1));if(!x[ra("0x54")]((({data:t})=>t[ra("0x29")].isEqual(n))))for(const{name:t,data:o}of x)if(n[ra("0x28")](o.newRange)){e[ra("0x60")](t,{range:n}),i=!0;break}}return i})),t[ra("0x9f")][ra("0x9d")][ra("0x91")]((e=>{let o=!1;const i=t[ra("0x8f")][ra("0x22")](ra("0x96")).me,r=n.getSuggestions()[ra("0x1f")]((t=>t.isInContent&&t[ra("0x2b")]==i)),s=new Set,x=new Set;for(const t of r)if(ra("0x71")==t[ra("0x11")])for(const e of t[ra("0xa3")]()){const n=e.getRange().getContainedElement();if(n)if(n.is(ra("0x40"),ra("0x84"))&&ca(n)){t[ra("0x9e")](e[ra("0x55")]),s[ra("0x7a")](n),o=!0;const i=n[ra("0x67")],r=n[ra("0x36")],a=i&&i.is(ra("0x40"),ra("0x84")),c=r&&r.is(ra("0x40"),ra("0x84"));a&&!s[ra("0x3f")](i)&&x.add(i),c&&!s[ra("0x3f")](r)&&x.add(r)}else n.is(ra("0x40"),ra("0x9c"))&&n.isEmpty&&(t.removeMarker(e[ra("0x55")]),o=!0)}else if(ra("0x5")==t[ra("0x11")]){if(!t[ra("0x57")]||!t[ra("0x57")][ra("0x44")])continue;const e=t[ra("0x57")][ra("0x8e")];if(e&&Object[ra("0x68")](e)[ra("0xb")])continue;const n=t.attributes[ra("0x44")];let i=!0,s=!0;for(const e of r)if(e[ra("0x11")]&&e[ra("0x11")][ra("0xa4")](ra("0x71"))){if(!e.attributes[ra("0x44")]){s=!1;break}if(e.id!=t.id&&e[ra("0x57")][ra("0x44")]==n){i=!1;break}}s&&i&&(t[ra("0xf")](),o=!0)}for(const t of s)e[ra("0x6c")](t);for(const t of x)e.unwrap(t);return o})),t[ra("0x33")][ra("0x2e")](ra("0x7"))[ra("0x5b")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ra("0x63")}),t[ra("0x33")][ra("0x2e")]("dataDowncast")[ra("0x5b")]({model:ra("0x59"),view:(t,e)=>e[ra("0x1a")].showSuggestionHighlights?l(t,!1):null,converterPriority:ra("0x63")});const u=t[ra("0x51")][ra("0x38")];this[ra("0x56")](u[ra("0x9d")],ra("0x9b"),((t,e)=>{const n=[];for(const t of u[ra("0x4b")](e[ra("0x5a")])[ra("0x89")]())t.is(ra("0x40"),ra("0x0"))&&n[ra("0x26")](t);u.change((t=>{for(const e of n)t[ra("0x77")](t[ra("0x4b")](e),t.createPositionBefore(e)),t[ra("0x6c")](e)}))}))}}function ca(t){if(t[ra("0x6b")])return!0;const e=t[ra("0x42")](0);return e.is("element",ra("0x9c"))&&e.isEmpty}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x37")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["model","TableColumnResizeEditing","commandParams","formatGroupId","registerCustomCallback","bind","plugins","tableWidth","has","getTableColumnsWidths","getAttribute","accept","_descriptionFactory","*Format:* resize table","data","discard","selection","handleSuggestionDescription","type","getSuggestionCallback","getContainedElement","getSelectedElement","getSuggestions","resizeTableWidth","table","format","handleResizeTableWidthCommand","formatBlock","resizeTable","enableCommand","editor","getColumnGroupElement","Users","registerDescriptionCallback","afterInit","_suggestionFactory","get","change","TrackChangesEditing","columnWidths"];var da,ga;da=ua,ga=263,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0xb")](){if(!this[fa("0x7")][fa("0x17")][fa("0x19")](fa("0x12")))return;const t=this[fa("0x7")].plugins.get(fa("0xf"));t[fa("0x6")]("resizeTableWidth",this[fa("0x3")][fa("0x16")](this)),t[fa("0xc")][fa("0x15")](fa("0x4"),fa("0x5"),"accept",t[fa("0xc")][fa("0x24")]("formatBlock",null,"discard")),t[fa("0xc")].registerCustomCallback(fa("0x4"),fa("0x5"),fa("0x20"),t._suggestionFactory[fa("0x24")]("formatBlock",null,fa("0x1c"))),t[fa("0x1d")][fa("0xa")](this[fa("0x22")][fa("0x16")](this))}[fa("0x3")](t,e){const n=this[fa("0x7")][fa("0x17")][fa("0xd")](fa("0xf")),o=this[fa("0x7")][fa("0x17")][fa("0xd")](fa("0x12")),i=e[fa("0x1")]||this[fa("0x7")][fa("0x11")].document[fa("0x21")][fa("0x26")]();this[fa("0x7")][fa("0x11")][fa("0xe")]((()=>{const r=o[fa("0x8")](i);let s=r?o[fa("0x1a")](r):null,x=i[fa("0x1b")]("tableWidth")||null;const a=e.tableWidth||x,c=e[fa("0x10")]||s,l=this[fa("0x7")][fa("0x17")][fa("0xd")](fa("0x9")).me;for(const t of n[fa("0x27")]()){const e=t[fa("0x25")]();if("resizeTable"===t.subType&&e===i){t.author!==l&&t[fa("0x20")]();const e=t[fa("0x1f")][fa("0x13")];x=e[0][fa("0x18")],s=e[0][fa("0x10")];break}}t({table:i,tableWidth:a,columnWidths:c}),n.markBlockFormat(i,{commandName:fa("0x0"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x5")},[],fa("0x5"))}))}[fa("0x22")](t){if(fa("0x4")!=t[fa("0x23")]&&"formatInline"!=t.type)return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x14")]){const t=fa("0x1e");return{type:fa("0x2"),content:Jo(this[fa("0x7")].locale,t)}}}}const ha=["editor","Template","plugins","TrackChangesEditing","afterInit","has","insertTemplate"];var pa,ba;pa=ha,ba=489,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x5")](){const t=this[Ea("0x1")];t[Ea("0x3")][Ea("0x6")](Ea("0x2"))&&t[Ea("0x3")].get(Ea("0x4")).enableCommand(Ea("0x0"))}}const Ta=["locale","_descriptionFactory","editor","ELEMENT_TABLE_OF_CONTENTS","tableOfContents","TrackChangesEditing","afterInit","enableCommand","plugins","commands","registerElementLabel","get","insertTableOfContents"];var ya,Ca;ya=Ta,Ca=477,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0xa")](){const t=this[Aa("0x6")];if(!t[Aa("0x0")][Aa("0x2")](Aa("0x3")))return;t[Aa("0xc")][Aa("0x2")](Aa("0x9"))[Aa("0xb")](Aa("0x3"));const e=t[Aa("0xc")][Aa("0x2")](Aa("0x9")),n=t[Aa("0x4")];e[Aa("0x5")][Aa("0x1")](Aa("0x8"),(t=>Jo(n,Aa("0x7"),t)))}}const Ia=["locale","afterInit","plugins","editor","schema","get","isTouching","getChangedMarkers","document","element","title-content","end","from","updateMarker","getNearestSelectionRange","start","model","ELEMENT_TITLE","isCollapsed","removeMarker","nodeBefore"];var Sa,va;Sa=Ia,va=363,function(t){for(;--t;)Sa.push(Sa.shift())}(++va);const Ra=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[Ra("0x10")](){const t=this[Ra("0x12")];if(!t[Ra("0x11")].has("Title"))return;const e=t[Ra("0x11")][Ra("0x14")]("TrackChangesEditing");e._descriptionFactory.registerElementLabel(Ra("0x4"),(()=>Jo(t[Ra("0xf")],Ra("0xb")))),t[Ra("0xa")].document.registerPostFixer((n=>{let o=!1;const i=Array[Ra("0x6")](t[Ra("0xa")][Ra("0x2")].differ[Ra("0x1")]());for(const{name:r,data:s}of i){const{group:i}=e._splitMarkerName(r);if("suggestion"!==i||!s.newRange)continue;const x=s.newRange,a=x[Ra("0x5")][Ra("0xe")];if(!a||!a.is(Ra("0x3"),Ra("0x4")))continue;if(!x[Ra("0x9")][Ra("0x0")](x[Ra("0x5")]))continue;const c=t[Ra("0xa")][Ra("0x13")][Ra("0x8")](x[Ra("0x5")],"forward");if(c&&c[Ra("0xc")]){const t=n.createRange(x.start,c[Ra("0x9")]);t.isEqual(x)||(n[Ra("0x7")](r,{range:t}),o=!0)}o||(n[Ra("0xd")](r),o=!0)}return o}))}}const La=["TrackChangesEditing","enableCommand","UndoEditing","plugins","afterInit","undo","editor"];var Ma,wa;Ma=La,wa=149,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x2")](){const t=this[Oa("0x4")],e=t[Oa("0x1")].get(Oa("0x5"));t[Oa("0x1")].has(Oa("0x0"))&&(e[Oa("0x6")](Oa("0x3")),e[Oa("0x6")]("redo"))}}const Da=["enableCommand","afterInit","get","toggleTableCaption","has","requires","editor","TrackChangesEditing"];var Ba,Pa;Ba=Da,Pa=144,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x5")](){return[zx]}[Ua("0x1")](){const t=this[Ua("0x6")];t.plugins[Ua("0x4")]("TableCaptionEditing")&&t.plugins[Ua("0x2")](Ua("0x7"))[Ua("0x0")](Ua("0x3"))}}const Ga=["getFirstPosition","registerDescriptionCallback","change","get","tableBorderStyle","commandParams","getSuggestionCallback","tableBorderWidth","*Format:* change table properties","_handlePropertyChange","findAncestor","handleSuggestionDescription","tableCellVerticalAlignment","_getSuggestion","getAttribute","start","tableCellBorderStyle","getSelectionAffectedTableCells","format","tableCellWidth","plugins","tableCellBorderColor","discard","nodeAfter","tableHeight","tableBorderColor","tableCellBorderWidth","setAttribute","markBlockFormat","subType","enqueueChange","TablePropertiesEditing","table","model","document","getSuggestions","data","editor","formatBlock","_suggestionFactory","tableBackgroundColor","getContainedElement","registerCustomCallback","accept","TrackChangesEditing","tableCellBackgroundColor","tableAlignment","selection","tableCellHeight","handleDiscardAction","tableCellProperties","TrackChangesTableProperties","*Format:* change table cell properties","tableWidth","tableProperties","pluginName","_descriptionFactory","tableCellPadding"];var Va,Ha;Va=Ga,Ha=279,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x7")]=[za("0x24"),za("0xf"),za("0x12"),za("0x39"),za("0x6"),za("0x23"),za("0x33")],this[za("0x3")]=[za("0x20"),za("0x1b"),za("0x25"),za("0xa"),za("0x1e"),za("0x1"),za("0x38"),"tableCellHorizontalAlignment",za("0x17")]}static get[za("0x8")](){return za("0x4")}afterInit(){const t=this[za("0x30")].plugins.get(za("0x37"));if(this[za("0x30")][za("0x1f")].has(za("0x2a"))){for(const e of this[za("0x7")])t.enableCommand(e,((t,n)=>{const o=this.editor[za("0x2c")][za("0x2d")][za("0x0")][za("0xb")]()[za("0x15")](za("0x2b"));this[za("0x14")](e,[o],this.tableProperties,za("0x7"),t,n)}));t[za("0x32")][za("0x35")](za("0x31"),za("0x7"),za("0x36"),t[za("0x32")][za("0x11")]("formatBlock",null,za("0x21"))),t[za("0x32")][za("0x35")](za("0x31"),za("0x7"),za("0x21"),((t,e)=>this.handleDiscardAction(this[za("0x7")],t,e))),t[za("0x32")][za("0x35")](za("0x31"),"tableProperties","join",(()=>!1))}if(this[za("0x30")].plugins.has("TableCellPropertiesEditing")){for(const e of this[za("0x3")])t.enableCommand(e,((t,n)=>{const o=this.editor[za("0x1f")][za("0xe")]("TableUtils")[za("0x1c")](this[za("0x30")][za("0x2c")].document[za("0x0")]);this[za("0x14")](e,o,this[za("0x3")],"tableCellProperties",t,n)}));t._suggestionFactory[za("0x35")](za("0x31"),za("0x3"),za("0x36"),t[za("0x32")].getSuggestionCallback(za("0x31"),null,za("0x21"))),t[za("0x32")][za("0x35")](za("0x31"),za("0x3"),za("0x21"),((t,e)=>this.handleDiscardAction(this.tableCellProperties,t,e))),t[za("0x32")][za("0x35")]("formatBlock",za("0x3"),"join",(()=>!1))}t[za("0x9")][za("0xc")]((t=>this[za("0x16")](t)))}[za("0x14")](t,e,n,o,i,r){const s=this[za("0x30")][za("0x1f")][za("0xe")](za("0x37"));this[za("0x30")][za("0x2c")][za("0x29")](r.batch,(()=>{for(const t of e)if(this[za("0x18")](t,o))i(r);else{const e={};for(const o of n){const n=t[za("0x19")](o);void 0!==n&&(e[o]=n)}i(r),s[za("0x27")](t,{commandParams:[e]},[],o)}}))}[za("0x2")](t,e,n){const o=e[0][za("0x1a")][za("0x22")],i=n[za("0x10")][0];this.editor[za("0x2c")][za("0xd")]((e=>{for(const n of t)void 0!==i[n]?e[za("0x26")](n,i[n],o):e.removeAttribute(n,o)}))}[za("0x16")](t){if(t[za("0x2f")])switch(t[za("0x28")]){case za("0x7"):return{type:za("0x1d"),content:Jo(this.editor.locale,za("0x13"))};case"tableCellProperties":return{type:za("0x1d"),content:Jo(this[za("0x30")].locale,za("0x5"))}}}[za("0x18")](t,e){const n=this[za("0x30")][za("0x1f")][za("0xe")](za("0x37"));for(const o of n[za("0x2e")]({skipNotAttached:!0})){const n=o[za("0x34")]();if(o[za("0x28")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Qa=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ya=function(t){return Qa(t)?void 0:t};var Ja=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Ja&&t&&t[Ja])};const ec=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var ic=Math.max;const rc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ic(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,Ya));for(var i=e.length;i--;)Ko(n,e[i]);return n})),uc=["track-changes-command-not-found","batch","_updateSuggestionData","setAttribute","_findSuggestions","markAttributeChange","getCustomProperty","_recordAttributeChanges","getUser","createRange","getFirstRange","previous","rootName","model","formatBlock:","getAncestors","markInlineFormat","originalSuggestionId","item","removeAttribute","_saved","consumable","options","getSuggestions","markerName","@external","removeMarker","values","discardSelectedSuggestions","isNextTo","_recordAttributeSuggestionsFromVersion","commandName","addSuggestionData","getSuggestion","warn","markMultiRangeBlockFormat","track-changes-adapter-missing-getsuggestion","isInsideObject","getShiftedBy","deletion:","detach","fromRange","_inlineAttributeKeys","containsItem","suggestion:attribute:","formatBlock:accept","_enabledCommands","isBefore","suggestionUnloaded","nodeBefore","backward","never","_getMarkerAnnouncementText","deletion:chain","addAttribute","differ","track-changes-enable-command-twice","high","deletion:join","_setSuggestionData","before","addHighlight","selection","acceptSuggestion","activeMarkers","external:","formatBlock","isEqual","suggestionChanged","containerElement","isIntersecting","_suggestionState","ENTER","commands","update:suggestion","trackChanges","_isForcedDefaultExecutionBlock","CommentsRepository","_onDiscard","change:_saved","ready","resolve","getOperations","filter","hasCommentThread","setTo","suggestionLoaded","announce","unshift","comments","fetchCommentThread","toUpperCase","define","isAtStart","discardSuggestion","track-changes-suggestion-not-found","PENDING_ACTION_SUGGESTION","push","isAfter","remove","rethrowUnexpectedError","_getAuthorFromId","_removeSuggestion","collaboration.channelId","some","registerCustomCallback","trackChanges.mergeNestedSuggestions","track-changes-suggestion-data-mismatch","change:data","_createSuggestion","elementEnd","startsWith","size","isObject","consume","createElement","map","reconvertMarker","addCommentThread","root","removed","_breakSuggestionMarker","splitPosition","enqueueChange","attributes","accept","_handleNewSuggestionMarker","_commentsRepository","containsRangeInObject","author","removeMarker:suggestion:formatBlock","_suggestionFactory","value","formatInline","removeMarkers","_registerInlineAttribute","commentThread","editingDowncast","then","addRange","dataReady","authorName","addMarker:suggestion:attribute","forEach","name","removeClass","getNearestSelectionRange","rename","_suggestions","_splitMarkerName","data","_addThreadToSuggestion","config","default","widget","_refreshAttributeSuggestionsChain","delete","history","acceptSelectedSuggestions","ck-suggestion-marker","start","_registerDefaultCallbacks","rejected","after","_getAttributeKeyFromSubType","notReady","getWalker","createPositionAt","writer","isMultiRange","FORMATTING","isLocal","buildSuggestion","get","isUndo","_registerBlockAttribute","trackChangesCommand","_blockAttributeKeys","updateMarker","element","_checkSuggestionCorrectness","formatInline:chain","createSelection","createRangeOn","isOwn","containsPosition","key","listenTo","elementStart","suggestion","addMarkerName","plugins","_model","moveTargetPosition","$graveyard","requires","assign","formatBlock:discard","stop","_reduceSuggestionAttributeRange","getMultiRangeId","has","creator","mapper","position","_addSuggestionMarker","includes","PendingActions","nodeAfter","_getExternalAuthor","isLimit","version","dataDowncast","getCommentThread","hasSuggestion","chain","isCollapsed","fire","$textProxy","isIntersectingWithRange","targetPosition","discardAllSuggestions","highest","upcast","deletion:accept","markDeletion","hasComments","getRange","markBlockFormat","discard","deletion:discard","execute","_defaultCallbacks","clone","_adapter","always","attribute","addUser","enableReadOnlyMode","meta","_processAttributeSuggestions","adapter","concat","open","keys","attributeKey","unbind","format","add","conversion","getChanges","_reduceExistingSuggestions","length","set","TrackChangesEditing","attribute:discard","substring","formatInline:","documentSelection","addMarker:suggestion:formatBlock","oldRange","getChangedMarkers","_refreshSuggestionsChain","updateSuggestion","_editor","enableCommand","isRemovable","isExternal","markInsertion","getAttribute","suggestion:","move","multipleBlocks","document","fromCharCode","setSelection","schema","toViewElement","markerToData","change:activeMarkers","dataToMarker","_cutOutSuggestionMarker","insertion:discard","getIntersection","attributeNewValue","addMarker","_joinSuggestions","split","type","multi","createRangeIn","addSuggestion","insert","addClass","$marker","applyOperation","insertion:join","locale","forceDefaultExecution","_trackFormatChanges","createPositionBefore","pluginName","lowest","newValue","markMultiRangeDeletion","skipNestingCheck","attribute:join","deletion","parent","oldValue","ck-suggestion-marker-formatInline","acceptAllSuggestions","ck-suggestion-marker--active","$text","every","removeComment","sort","_customCallbacks","low","_isDataLoaded","getDifference","elementToElement","init","attributeOldValue","insertion","addComment","markerNameToElements","return","pop","isInContent","_getSuggestionData","isAtEnd","end","_initAriaMarkerChangeAnnouncements","createdAt","$elementName","marker-count","attribute:accept","ariaLiveAnnouncer","markerToHighlight","groupId","Users","_joinWithAdjacentSuggestions","isTouching","formatInline:accept","ck-suggestion-marker-formatBlock","getFirstMarker","getSuggestionCallback","howMany","isBlock","for","subType","formatInline:join","getRanges","_isBlockAttribute","containsRange","getAllAdjacentSuggestions","editor","toJSON","formatGroupId","showSuggestionHighlights","registerPostFixer","_rangeIsInLocalUserInsertion","getLastMatchingPosition","find","change","next","catch","_setSuggestionRange","changeAttribute","normal","join","_mergeNestedSuggestions","addMarker:suggestion","formatBlock:chain","_enableDefaultAttributesIntegration","markMultiRangeInsertion","splice","newName","from","authoredAt","clear","newRange","range","_processAttributeChanges","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters."];var dc,gc;dc=uc,gc=151,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0xb8");class hc extends t.Plugin{static get[fc("0x2c")](){return[fc("0x138"),r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Vi,tr,rr,lr,hr,Tr,Sr,Mr,Pr,Hr,Xr,Jr,is,fs,cs,Es,As,Rs,Os,Us,Ks,Qs,nx,xx,dx,bx,Cx,vx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0x96")](){return fc("0x67")}constructor(t){function e(t){return t[fc("0x15f")]((t=>String[fc("0x7b")](t)))[fc("0xdc")]("")}super(t),this[fc("0x109")]=null,this[fc("0x66")](fc("0x12b"),[]),this.on(fc("0x80"),((e,n,o,i)=>{this[fc("0x29")][fc("0xd6")]((()=>{for(const e of[...i,...o])this[fc("0x29")].markers.has(e)&&t.editing[fc("0x160")](e)}))})),this._descriptionFactory=new ii(this[fc("0xce")][fc("0xf8")][fc("0x7d")],this[fc("0xce")][fc("0x92")]),this[fc("0x53")]=null,this[fc("0x16e")]=new pc(this[fc("0xce")]),this[fc("0x17f")]=new Map,this[fc("0x16a")]=t[fc("0x28")][fc("0x16")]("CommentsRepository"),this[fc("0x119")]=new Set,this[fc("0x29")]=this[fc("0xce")][fc("0xf8")],this._suggestionState=new WeakMap,this[fc("0x137")]=!1,this._blockAttributeKeys=new Set([fc("0xb8")]),this[fc("0x115")]=new Set,t[fc("0x1")].define("trackChanges.trackFormatChanges",fc("0x2")),this[fc("0x94")]=t.config[fc("0x16")]("trackChanges.trackFormatChanges"),t[fc("0x1")][fc("0x147")](fc("0x155"),!0),this[fc("0xdd")]=t.config.get(fc("0x155")),this.trackChangesCommand=new d(t,this[fc("0x119")]),this._initAriaMarkerChangeAnnouncements(),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,51,48])}[fc("0xab")](){const t=this[fc("0xce")],n=(t,e)=>{if("attribute"!=t)return"ck-suggestion-marker-"+t;const n=e[fc("0x88")]("|")[0];return this[fc("0xcb")](n)?fc("0xc2"):fc("0x9f")};t[fc("0x62")][fc("0xc7")](fc("0x174")).markerToHighlight({model:fc("0x26"),view:t=>{const{id:e,type:o,subType:i}=this[fc("0x180")](t[fc("0x103")]),r=[fc("0x8"),n(o,i)];let s=3e3;return this.activeMarkers[fc("0x37")](t.markerName)&&(r[fc("0x14c")](fc("0xa1")),s=3010),fc("0x9c")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x62")][fc("0xc7")](fc("0x3d"))[fc("0x61")]((e=>{e.on(fc("0xde"),((e,n,o)=>{if(!o[fc("0x101")].showSuggestionHighlights)return;const i=n[fc("0xfd")];if(!i)return;const r=o[fc("0x34")].toViewElement(i);t.model[fc("0x7d")].isObject(i)&&r&&!r[fc("0xf1")](fc("0x3"))&&r.is(fc("0x130"))&&(0,x.toWidget)(r,o[fc("0x11")])}),{priority:fc("0x124")})})),t.conversion[fc("0xc7")](fc("0x3d"))[fc("0xbc")]({model:"suggestion",view:(t,e)=>{if(!e[fc("0x101")][fc("0xd1")])return null;const{type:o,subType:i}=this[fc("0x180")](t[fc("0x103")]);return{classes:["ck-suggestion-marker",n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i[fc("0xfd")])return;const{id:s}=this._splitMarkerName(i[fc("0x103")]);if(n){const t=this[fc("0x17f")][fc("0x16")](s),e=this._getAttributeKeyFromSubType(t);if(!this[fc("0xcb")](e))return}if(i[fc("0xfd")].is(fc("0x129")))return void r.consumable[fc("0x15d")](i[fc("0xfd")],o.name);const x=r[fc("0x34")][fc("0x7e")](i[fc("0xfd")]);if(i[fc("0xfd")].is(fc("0x1c"))&&t[fc("0xf8")][fc("0x7d")][fc("0xc6")](i[fc("0xfd")])&&!x.getCustomProperty(fc("0x128"))){r.writer[fc("0x8e")]([fc("0x8"),fc("0xc2")],x),r[fc("0x11")][fc("0xee")]("data-suggestion",s,x),r[fc("0x34")].bindElementToMarker(x,i[fc("0x103")]),e&&(this[fc("0x12b")][fc("0x37")](i[fc("0x103")])?r[fc("0x11")].addClass(fc("0xa1"),x):r[fc("0x11")][fc("0x17c")](fc("0xa1"),x));for(const e of t[fc("0xf8")][fc("0x8b")](i[fc("0xfd")]).getItems())r[fc("0x100")][fc("0x15d")](e,o[fc("0x17b")]);r.consumable[fc("0x15d")](i[fc("0xfd")],o[fc("0x17b")])}};t[fc("0x62")][fc("0xc7")](fc("0x3d"))[fc("0x61")]((t=>{t.on(fc("0x6c"),((t,e,n)=>{n[fc("0x101")][fc("0xd1")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x47")})})),t[fc("0x62")][fc("0xc7")](fc("0x3d")).add((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[fc("0x101")][fc("0xd1")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x47")})})),t[fc("0x62")][fc("0xc7")](fc("0x3d"))[fc("0x7f")]({model:fc("0x26"),view:(t,e)=>e[fc("0x101")][fc("0xd1")]?null:{group:fc("0x26"),name:t.substr(11)}}),t.conversion.for(fc("0x48"))[fc("0xaa")]({view:{name:fc("0x26"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x77")+t[fc("0x76")]("suggestion-type")+":"+t.getAttribute("id");return t[fc("0x76")]("marker-count")&&(n+=":"+t[fc("0x76")](fc("0xb9"))),e[fc("0x15e")](fc("0x8f"),{"data-name":n})}}),t.conversion.for(fc("0x48"))[fc("0x81")]({view:fc("0x26")}),t.conversion[fc("0xc7")]("editingDowncast").add((t=>{t.on(fc("0x6c"),o(),{priority:fc("0x124")})})),t[fc("0x62")][fc("0xc7")]("editingDowncast")[fc("0x61")]((t=>{t.on(fc("0x179"),o({isAttributeSuggestion:!0}),{priority:fc("0x124")})})),t[fc("0x62")].for(fc("0x174"))[fc("0x61")]((t=>{t.on(fc("0x16d"),((t,e,n)=>{const o=n[fc("0x34")][fc("0xaf")](e.markerName);if(o)for(const t of o)t.getCustomProperty(fc("0x128"))||(n.writer[fc("0x17c")]([fc("0x8"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[fc("0x11")][fc("0xfe")]("data-suggestion",t),n.mapper.unbindElementFromMarkerName(t,e[fc("0x103")]))}),{priority:fc("0x124")})})),t.conversion[fc("0xc7")](fc("0x174"))[fc("0x61")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const o=n[fc("0x34")][fc("0xaf")](e.markerName);if(!o)return;const{id:i}=this[fc("0x180")](e[fc("0x103")]),r=this[fc("0x17f")].get(i),s=this[fc("0xd")](r);if(this[fc("0xcb")](s))for(const t of o)t[fc("0xf1")]("addHighlight")||(n.writer[fc("0x17c")]([fc("0x8"),fc("0xc2"),fc("0xa1")],t),n[fc("0x11")][fc("0xfe")]("data-suggestion",t),n[fc("0x34")].unbindElementFromMarkerName(t,e[fc("0x103")]))}),{priority:"high"})})),t[fc("0xf8")].document.registerPostFixer((e=>{let n=!1;const o=Array[fc("0xe4")](t[fc("0xf8")].document[fc("0x122")].getChangedMarkers()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x180")](x);if(fc("0x26")!==o)continue;const d=this[fc("0x17f")].get(u);if(null!=a.newRange){fc("0x170")==c&&(n=n||_c(a[fc("0xe7")],x,e,t[fc("0xf8")].schema));const o=fc("0x55")==c&&this[fc("0xcb")](l.split("|")[0]);if(a[fc("0xe7")][fc("0x41")]||fc("0x2b")==a[fc("0xe7")][fc("0x162")][fc("0xf7")]||fc("0x12d")==c&&!yc(a[fc("0xe7")])||o&&!yc(a[fc("0xe7")])||"deletion"==c&&(Ec(s=a.newRange)||(r=s)[fc("0x9")].parent==r[fc("0xb5")][fc("0x11c")]&&r[fc("0x9")].isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d[fc("0xb2")])continue;i[fc("0x61")](d)}}}var r,s;return i[fc("0x15b")]>0&&(n=!!this[fc("0xbf")](i)||n),n})),t[fc("0xf8")].document[fc("0xd2")]((e=>{let n=!1;for(const o of t[fc("0xf8")][fc("0x7a")][fc("0x122")].getChanges())if(fc("0x8d")==o.type)for(const o of this[fc("0x17f")][fc("0x106")]()){if(o[fc("0x12")]||!o[fc("0xb2")])continue;const i=fc("0x12d")==o[fc("0x89")],r=this[fc("0xd")](o),s=r&&this[fc("0xcb")](r);if(!i&&!s)continue;const x=o[fc("0xf5")]();if(x[fc("0x9")].parent!=x[fc("0xb5")].parent&&!x[fc("0xb5")][fc("0xb4")]){const i=t.model[fc("0x10")](x[fc("0x9")][fc("0x39")],"end"),r=t[fc("0xf8")][fc("0xf4")](x[fc("0x9")],i);e.updateMarker(o[fc("0xc3")](),{range:r}),n=!0}}return n})),t[fc("0xf8")][fc("0x7a")].registerPostFixer((t=>this[fc("0xe9")](t))),t.model[fc("0x7a")][fc("0xd2")]((t=>!t[fc("0xec")][fc("0x14")]&&this[fc("0x59")](t))),t.model.markers.on(fc("0x135"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[fc("0x17b")]),n=this._suggestions[fc("0x16")](t);n&&n.addMarkerName(e[fc("0x17b")])}})),t[fc("0xf8")][fc("0x7a")].on(fc("0x157"),(()=>{const e=Array.from(t[fc("0xf8")][fc("0x7a")].differ[fc("0x6e")]()).filter((t=>fc("0x26")===this._splitMarkerName(t[fc("0x17b")]).group));if(0===e.length)return;e[fc("0xa5")](((t,e)=>{const n=t[fc("0x181")].oldRange,o=e[fc("0x181")][fc("0x6d")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x9")][fc("0x11a")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[fc("0x180")](t);if(null===i[fc("0x6d")]){const e=this[fc("0x169")](t);o[fc("0x61")](e)}else{const t=this[fc("0x17f")][fc("0x16")](e);null!==i[fc("0xe7")]||t[fc("0xb2")]?(n[fc("0x61")](t.head),o[fc("0x61")](t)):this._removeSuggestion(t)}}o[fc("0x15b")]>0&&this[fc("0x6f")](o);for(const t of n)this[fc("0x42")](fc("0x12f"),t)})),t[fc("0xf8")].on(fc("0x90"),((e,n)=>{const o=n[0];if(!this[fc("0x17f")][fc("0x15b")])return;if(!o.isDocumentOperation)return;if(o[fc("0xec")][fc("0x17")]||!o[fc("0xec")][fc("0x14")])return;let i,r;switch(o[fc("0x89")]){case fc("0x8d"):i=t[fc("0xf8")][fc("0x10")](o.position),r=i.getShiftedBy(o[fc("0xc5")]);break;case fc("0x88"):i=t.model[fc("0x10")](o[fc("0x165")]),r=t[fc("0xf8")][fc("0x10")](o[fc("0x2a")]);break;case fc("0x78"):i=t[fc("0xf8")][fc("0x10")](o[fc("0x45")]),r=i[fc("0x111")](o.howMany);break;default:return}const s=t.model[fc("0xf4")](i,r);t[fc("0xf8")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t.isMultiRange)continue;if("formatInline"==t[fc("0x89")])continue;const n=this[fc("0xd")](t);if(n&&this._isBlockAttribute(n)&&fc("0x88")!=o[fc("0x89")])continue;const x=t[fc("0x181")]&&t[fc("0x181")][fc("0x79")];(fc("0x12d")!=t[fc("0x89")]||fc("0x88")==o[fc("0x89")]&&!x)&&(e[fc("0x16b")]||fc("0xad")==t.type&&e[fc("0x21")]||t[fc("0xf5")]()[fc("0xcc")](s)&&this[fc("0x164")](t,i,r))}}))}),{priority:fc("0x97")}),t[fc("0xf8")].on("deleteContent",((e,n)=>{const o=n[0],i=n[1];if(i&&i.forceDefaultExecution)return;if(this[fc("0x137")])return;if(!this.trackChangesCommand[fc("0x16f")])return;if(o.isCollapsed)return;const r=t.model[fc("0x7d")],{start:s,end:x}=o[fc("0xf5")](),a=s.nodeAfter&&r[fc("0x3b")](s[fc("0x39")])?null:r[fc("0x17d")](s,"forward"),c=x.nodeBefore&&r[fc("0x3b")](x.nodeBefore)?null:r[fc("0x17d")](x,fc("0x11d")),l=t.model.createRange(a?a[fc("0x9")]:s,c?c.end:x);t[fc("0xf8")][fc("0xd6")]((e=>{this[fc("0x4a")](l);const n=t[fc("0xf8")][fc("0x7d")].getNearestSelectionRange(l[fc("0x9")]);o.is(fc("0x6b"))?e[fc("0x7c")](n):o[fc("0x140")](n)})),e[fc("0x2f")]()}),{priority:e.priorities[fc("0xdb")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[fc("0x65")]-1];o&&o[fc("0x93")]||this[fc("0x137")]||this.trackChangesCommand[fc("0x16f")]&&(t[fc("0xf8")][fc("0xd6")]((()=>{let o=t[fc("0xf8")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0xb0")]=o[fc("0x52")]();const i=o[fc("0xb5")].nodeBefore,r=t.model[fc("0x7d")];i&&r.isBlock(i)&&!r[fc("0x15c")](i)&&(o=t[fc("0xf8")][fc("0xf4")](o[fc("0x9")],t[fc("0xf8")].createPositionAt(i,"end"))),this[fc("0x75")](o)})),e.stop())}),{priority:fc("0x124")}),this[fc("0xce")][fc("0x134")][fc("0x61")](fc("0x136"),this[fc("0x19")]),this[fc("0x72")](fc("0x136"));const i=new p(t,this[fc("0x17f")]);t[fc("0x134")][fc("0x61")]("acceptSuggestion",i),this.enableCommand(fc("0x12a"));const r=new y(t,this[fc("0x17f")]);t.commands[fc("0x61")](fc("0x149"),r),this[fc("0x72")](fc("0x149")),t.commands[fc("0x61")](fc("0xa0"),new F(t,i,this[fc("0x17f")])),this[fc("0x72")](fc("0xa0")),t[fc("0x134")][fc("0x61")](fc("0x46"),new F(t,r,this[fc("0x17f")])),this[fc("0x72")](fc("0x46")),t[fc("0x134")].add(fc("0x7"),new j(t,i,this[fc("0x17f")])),this[fc("0x72")]("acceptSelectedSuggestions"),t[fc("0x134")][fc("0x61")](fc("0x107"),new j(t,r,this[fc("0x17f")])),this[fc("0x72")](fc("0x107"));const s=t[fc("0x28")][fc("0x16")](fc("0x138"));this[fc("0x24")](s,fc("0xae"),((t,{threadId:e})=>{const n=this[fc("0x17f")][fc("0x16")](e);n&&n[fc("0x173")]&&1===n[fc("0x173")][fc("0x65")]&&this[fc("0xed")](e,{hasComments:!0})}),{priority:fc("0xa7")}),this[fc("0x24")](s,fc("0xa4"),((t,{threadId:e})=>{const n=this[fc("0x17f")][fc("0x16")](e);n&&n[fc("0x173")]&&!n.commentThread.length&&this[fc("0xed")](e,{hasComments:!1})}),{priority:fc("0xa7")})}set[fc("0x5a")](t){if(this[fc("0x53")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[fc("0x53")]=t}get adapter(){return this[fc("0x53")]}[fc("0x102")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x17f")][fc("0x106")]())t&&!e[fc("0xb2")]||n.push(e);return e?n[fc("0x15f")]((t=>t[fc("0xcf")]())):n}[fc("0x10c")](t){const n=this[fc("0x17f")][fc("0x16")](t);if(!n)throw new e.CKEditorError(fc("0x14a"),this);return n}[fc("0x3f")](t){return this[fc("0x17f")][fc("0x32")](t)}[fc("0x10b")](t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t[fc("0x89")][fc("0x88")](":"),s=this[fc("0x17f")].get(n)||this[fc("0x158")](i,r,n,e,o);if(this[fc("0x0")](s),this[fc("0x1d")](s,i,r||null,e),s[fc("0xb7")]=t.createdAt,s._isDataLoaded=!0,o&&o[fc("0x104")]){const t=o[fc("0x104")],e=this[fc("0x3a")](t[fc("0x178")]);s[fc("0xe5")]=t[fc("0xb7")],s[fc("0x16c")]=e,s[fc("0x74")]=!0}else s[fc("0xe5")]=t[fc("0xb7")];switch(t[fc("0x181")]&&(s[fc("0x181")]=t[fc("0x181")]),t[fc("0x167")]&&(s[fc("0x167")]=t[fc("0x167")]),this[fc("0x53")]&&this[fc("0x53")][fc("0x8c")]||(s[fc("0xff")]=!0),this._suggestionState.get(s)){case fc("0xe"):this[fc("0x132")][fc("0x66")](s,"dataReady");break;case"markerReady":s[fc("0xb2")]?(this[fc("0x6f")](new Set([s])),this[fc("0xbf")](new Set([s])),this[fc("0x132")][fc("0x66")](s,fc("0x13b")),this[fc("0x42")](fc("0x141"),s)):this[fc("0x132")][fc("0x66")](s,fc("0x163"))}return s}[fc("0x12a")](t){this[fc("0x93")]((()=>{this[fc("0xce")].model[fc("0xd6")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[fc("0x168")]()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this[fc("0xce")].model[fc("0xd6")]((()=>{for(const e of t[fc("0xcd")]())e[fc("0x4e")]()}))}))}enableCommand(t,n){const o=this[fc("0xce")][fc("0x134")][fc("0x16")](t);if(!o)throw new e.CKEditorError(fc("0xeb"),this,{commandName:t});if(this._enabledCommands.has(o))throw new e.CKEditorError(fc("0x123"),this,{commandName:t});this._enabledCommands[fc("0x61")](o),n&&o.on(fc("0x50"),((t,e)=>{this.trackChangesCommand[fc("0x16f")]&&(this[fc("0x137")]||(e.length>0&&e[e[fc("0x65")]-1]&&e[e[fc("0x65")]-1][fc("0x93")]?e[fc("0xb1")]():(t[fc("0xb0")]=n(((...t)=>o[fc("0x50")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x2f")]())))}),{priority:"high"})}[fc("0x93")](t){let n,o;const i=this[fc("0x137")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return i||(this[fc("0x137")]=!1),o&&e.CKEditorError[fc("0x14f")](o,this),n}[fc("0x75")](t,n=null,o={}){if(t.isCollapsed)return null;const i=this[fc("0xce")][fc("0x28")].get(fc("0xbe")).me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,fc("0xad")))if(i[fc("0x21")]){if(!i.isNextTo){if(i[fc("0x16b")]){if(!this[fc("0xdd")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0x164")](e,t[fc("0x9")],t[fc("0xb5")]);break}if(n==e[fc("0xc8")]&&Ic(e,o)){const n=e[fc("0xf5")]();return n[fc("0x9")][fc("0x12e")](t.end)?this[fc("0xd9")](e,this[fc("0x29")][fc("0xf4")](t[fc("0x9")],n[fc("0xb5")])):this[fc("0xd9")](e,this[fc("0x29")].createRange(n[fc("0x9")],t[fc("0xb5")])),e}}const r=(0,e.uid)(),s=i.id,x=n?"insertion:"+n:fc("0xad"),a=this[fc("0x126")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,r,s,t),a}[fc("0xe1")](t,n=fc("0x8a"),o={}){const i=this[fc("0xce")][fc("0x28")].get(fc("0xbe")).me,r=this[fc("0x16e")][fc("0xc4")](fc("0xad"),n,fc("0xdc"));for(const e of this[fc("0x102")]())if(e[fc("0x16c")].id==i.id&&fc("0xad")==e[fc("0x89")]&&e[fc("0xc8")]==n&&Ic(e,o)&&(r(e.getRanges(),t)||r(t,e[fc("0xca")]()))){for(const n of t)e[fc("0x176")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0xef")](t,fc("0xad"))){if(!n[fc("0x21")])continue;if(!this[fc("0xdd")]&&n[fc("0x16b")])continue;if(!Ic(e,o))continue;let i=!0;for(const n of e[fc("0xca")]())for(const e of t)if(!n[fc("0xcc")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a="insertion:"+n,c=this[fc("0x126")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x36")](a,s,x,e,Yo[fc("0x31")]());return c}[fc("0xfb")](t,n,o=null,i={}){if(o=o||Tc(n),t[fc("0x41")])return null;if(fc("0x11e")===this._trackFormatChanges){const e=this[fc("0x16e")][fc("0xc4")](fc("0x170"),o,"accept");return this.forceDefaultExecution((()=>e([t],n,i))),null}const r=this[fc("0xce")][fc("0x28")][fc("0x16")]("Users").me,s=[];if(fc("0x54")!==this[fc("0x94")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0xad")))n[fc("0x21")]&&!n.isInsideObject&&s[fc("0x14c")](...e[fc("0xca")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x65")];){const o=n[e][fc("0xa9")](t);n[fc("0xe2")](e,1,...o),e+=o[fc("0x65")]}}return n}(t,s);x[fc("0x65")]&&this._model.change((()=>{for(const t of x){const e=this._suggestionFactory[fc("0xc4")](fc("0x170"),o,fc("0x168"));this.forceDefaultExecution((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[fc("0x9")],a=t.end;for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x170"))){if(!n[fc("0x21")])continue;if(e[fc("0xc8")]!=o)continue;if(!Ic(e,i))continue;const r=e.getFirstRange();if(r[fc("0xcc")](t,!0))return null;x=x.isBefore(r[fc("0x9")])?x:r.start,a=a[fc("0x14d")](r[fc("0xb5")])?a:r[fc("0xb5")],s?r[fc("0x9")][fc("0x11a")](s.getFirstRange().start)?(s[fc("0x171")](),s=e):e.removeMarkers():s=e}const c=this[fc("0x29")].createRange(x,a);if(s)this[fc("0xd9")](s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0x126")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[fc("0x36")](fc("0x6a")+o,t,s,c)}}return null}[fc("0x4d")](t,n,o=[],i=null,r={}){n[fc("0xd0")]||(n[fc("0xd0")]=n[fc("0x10a")]),n[fc("0x79")]=t.is(fc("0xe8")),i=i||Tc(n);const s=o[fc("0x15f")]((t=>Cc(t,this[fc("0x29")]))),x=t.is(fc("0xe8"))?t:Cc(t,this[fc("0x29")]);if("never"===this[fc("0x94")]){const t=this._suggestionFactory[fc("0xc4")](fc("0x12d"),i,fc("0x168"));return this[fc("0x93")]((()=>t([x],n,r))),null}s[fc("0x14c")](x);let a=!0;for(const t of s)if(!this[fc("0xd3")](t)){a=!1;break}if(a&&fc("0x54")!==this[fc("0x94")]){const t=this[fc("0x16e")][fc("0xc4")](fc("0x12d"),i,fc("0x168"));return this[fc("0x93")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[fc("0xb5")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e[fc("0x21")])continue;if(e[fc("0x108")]||e[fc("0x16b")]||e[fc("0x110")])continue;if(t[fc("0x181")][fc("0xd0")]!=n[fc("0xd0")])continue;if(!Ic(t,r))continue;const o=t.getFirstRange();if(t.subType==i){if(o[fc("0xcc")](x,!0))return null;l=l[fc("0x11a")](o[fc("0x9")])?l:o[fc("0x9")],u=u[fc("0x14d")](o[fc("0xb5")])?u:o[fc("0xb5")],c?o[fc("0x9")][fc("0x11a")](c[fc("0xf5")]().start)?(c[fc("0x171")](),c=t):t[fc("0x171")]():c=t}else{const e=x.getIntersection(o);this[fc("0x82")](t,e)}}const d=this[fc("0xce")][fc("0x28")].get(fc("0xbe")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0xd9")](c,this._model.createRange(l,u)),c;{const t=this[fc("0x126")]({id:g,type:"formatBlock:"+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[fc("0x36")](fc("0xf9")+i,g,f,this[fc("0x29")][fc("0xf4")](l,u)),t}}[fc("0x10e")](t,n,o=[],i=null,r={}){n[fc("0xd0")]||(n[fc("0xd0")]=n[fc("0x10a")]);const s=t[0];n.multipleBlocks=s.is(fc("0xe8")),i=i||Tc(n);const x=o[fc("0x15f")]((t=>Cc(t,this._model))),a=s.is(fc("0xe8"))?t:t[fc("0x15f")]((t=>Cc(t,this._model)));if(fc("0x11e")===this[fc("0x94")]){const t=this[fc("0x16e")][fc("0xc4")](fc("0x12d"),i,"accept");return this[fc("0x93")]((()=>t(a,n,r))),null}x[fc("0x14c")](...a);let c=!0;for(const t of x)if(!this[fc("0xd3")](t)){c=!1;break}if(c&&fc("0x54")!==this[fc("0x94")]){const t=this[fc("0x16e")][fc("0xc4")](fc("0x12d"),i,fc("0x168"));return this[fc("0x93")]((()=>t(a,n,r))),null}const l=this[fc("0xce")][fc("0x28")][fc("0x16")](fc("0xbe")).me;for(const t of this[fc("0x102")]()){if(t[fc("0x16c")].id!=l.id)continue;if("formatBlock"!=t[fc("0x89")]||t[fc("0x181")][fc("0xd0")]!=n[fc("0xd0")])continue;if(!Ic(t,r))continue;const e=t.subType==i;for(let n=0;n<a.length;n++){const o=a[n];for(const i of t.getMarkers()){const r=i[fc("0x4c")]();if(o[fc("0x12e")](r)){e?(a.splice(n,1),n--):t.removeMarker(i[fc("0x17b")]);break}}}}if(0==a.length)return null;const u=this[fc("0x16e")][fc("0xc4")](fc("0x12d"),i,fc("0xdc"));for(const t of this[fc("0x102")]())if(t[fc("0x16c")].id==l.id&&fc("0x12d")==t[fc("0x89")]&&t.data.formatGroupId==n[fc("0xd0")]&&t[fc("0xc8")]==i&&Ic(t,r)&&(u(t[fc("0xca")](),a)||u(a,t[fc("0xca")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0xf9")+i,m=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[fc("0x36")](f,d,g,t,Yo[fc("0x31")]());return m}[fc("0x4a")](t,n=null,o={}){if(t.isCollapsed)return null;const i=this.editor[fc("0x28")][fc("0x16")]("Users").me,r=new s.LiveRange(t[fc("0x9")],t[fc("0xb5")]);for(const{suggestion:t,meta:e}of this[fc("0xef")](r,fc("0xad")))if(e.isOwn&&!e[fc("0x108")])if(t[fc("0x12")]){const e=t.getRanges()[fc("0x13e")]((t=>fc("0x2b")!=t[fc("0x162")][fc("0xf7")]));if(e[fc("0xa3")]((t=>r[fc("0xcc")](t,!0)))&&t[fc("0x4e")](),e[fc("0x153")]((t=>t[fc("0xcc")](r,!0)))){const t=this._suggestionFactory[fc("0xc4")](fc("0x9c"),n,fc("0x168"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[fc("0x84")](t[fc("0xf5")]());null!==e&&t[fc("0x139")]([e],null,o)}if(r[fc("0x113")](),r[fc("0x41")]||fc("0x2b")==r[fc("0x162")][fc("0xf7")])return null;let x=null,a=r[fc("0x9")],c=r[fc("0xb5")];const l=this[fc("0xef")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[fc("0x29")][fc("0xf4")](a,c);if(e[fc("0x21")]&&(this[fc("0xdd")]||!e.containsRangeInObject&&!e.isInsideObject))if(t[fc("0x12")]){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0xca")]()){if(o[fc("0xcc")](n,!0))return t;n[fc("0xcc")](o)||(e=!1)}e&&t[fc("0x4e")]()}else{const e=t[fc("0xf5")]();if(e[fc("0xcc")](n,!0))return t;if(!Ic(t,o)){n[fc("0xcc")](e)?t.removeMarkers():e[fc("0x22")](a)?a=e[fc("0xb5")]:e.containsPosition(c)&&(c=e[fc("0x9")]);continue}a=a[fc("0x11a")](e.start)?a:e[fc("0x9")],c=c[fc("0x14d")](e[fc("0xb5")])?c:e[fc("0xb5")],o=Object.assign({},t[fc("0x167")]),x?e[fc("0x9")][fc("0x11a")](x[fc("0xf5")]()[fc("0x9")])?(x[fc("0x171")](),x=t):t[fc("0x171")]():x=t}}if(x)return this._setSuggestionRange(x,this._model[fc("0xf4")](a,c)),x;{const t=(0,e.uid)(),r=this._model[fc("0xf4")](a,c),s=i.id,x=n?fc("0x112")+n:"deletion",l=this[fc("0x126")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,t,s,r),l}}[fc("0x99")](t,n=fc("0x8a"),o={}){const i=this.editor.plugins[fc("0x16")](fc("0xbe")).me,r=t[fc("0x15f")]((t=>new s.LiveRange(t[fc("0x9")],t[fc("0xb5")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,fc("0xad")))e[fc("0x21")]&&!e[fc("0x108")]&&x.add(t);for(const e of x)if(e[fc("0x12")]){const i=e.getRanges();if((!e[fc("0x167")]||!e.attributes[fc("0x9a")])&&i[fc("0xa3")]((t=>r.some((e=>e[fc("0xcc")](t,!0)))))&&e[fc("0x4e")](),r.every((t=>i[fc("0x153")]((e=>e[fc("0xcc")](t,!0)))))){const e=this[fc("0x16e")][fc("0xc4")](fc("0x9c"),n,fc("0x168"));return this[fc("0x93")]((()=>e(t,null,o))),null}}else{const t=e[fc("0xf5")]();if(r[fc("0x153")]((e=>e.containsRange(t,!0)))&&e.discard(),r[fc("0xa3")]((e=>t.containsRange(e,!0)))){const t=this[fc("0x16e")][fc("0xc4")](fc("0x9c"),n,fc("0x168"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[fc("0x16e")][fc("0xc4")](fc("0x9c"),n,"join");let c=null;for(const t of this[fc("0x102")]())if(t[fc("0x16c")].id==i.id&&t[fc("0xb2")]&&fc("0x9c")==t.type&&t[fc("0xc8")]==n&&Ic(t,o)&&(a(t.getRanges(),r)||a(r,t[fc("0xca")]())))if(c){if(t[fc("0x173")]&&t.commentThread[fc("0x65")])continue;for(const e of t[fc("0xca")]())c[fc("0x44")](e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[fc("0x176")](e)}if(c)return c;x[fc("0xe6")]();for(const{suggestion:t,meta:e}of this._findSuggestions(r,fc("0x9c")))e.isOwn&&(this[fc("0xdd")]||!e[fc("0x16b")]&&!e[fc("0x110")])&&Ic(t,o)&&x[fc("0x61")](t);for(const t of x){const e=t[fc("0xca")]();if((!o||!o[fc("0x9a")])&&r[fc("0xa3")]((t=>e[fc("0x153")]((e=>e.containsRange(t,!0))))))return t;(!t[fc("0x167")]||!t[fc("0x167")][fc("0x9a")])&&e[fc("0xa3")]((t=>r[fc("0x153")]((e=>e[fc("0xcc")](t,!0)))))&&t[fc("0x4e")]()}const l=(0,e.uid)(),u=i.id,d=fc("0x112")+n,g=this[fc("0x126")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[fc("0x113")](),t[fc("0x41")]||"$graveyard"==t[fc("0x162")].rootName||this._addSuggestionMarker(d,l,u,t,Yo[fc("0x31")]());return g}[fc("0xf0")](t,n,o,i,r){if(t[fc("0x41")])return[];if("never"===this._trackFormatChanges)return[];const s=this[fc("0xce")][fc("0x28")][fc("0x16")](fc("0xbe")).me.id,x=Array[fc("0xe4")](this[fc("0x17f")].values())[fc("0x13e")]((e=>fc("0x55")==e[fc("0x89")]&&e[fc("0x181")][fc("0x23")]==n&&e[fc("0x44")](t)));if(fc("0x2")===this[fc("0x94")]){const e=this[fc("0xef")](t,"insertion")[fc("0x13e")]((({meta:t})=>t[fc("0x21")]&&!t[fc("0x110")]&&!t[fc("0x108")])).map((({suggestion:t})=>t));x[fc("0x143")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x55")==t[fc("0x89")]?t[fc("0x181")][fc("0x9e")]:void 0,n=t[fc("0xf5")](),r=Array[fc("0xe4")](a[fc("0x5d")]())[fc("0xd5")]((t=>t.isIntersecting(n)));r&&(a[fc("0x5")](r),r[fc("0xa9")](n)[fc("0x17a")]((t=>{a[fc("0x66")](t,o)})),"insertion"!=t.type&&e!=i&&a[fc("0x66")](r[fc("0x84")](n),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n[fc("0x65")]>37&&console[fc("0x10d")](fc("0xea"),{key:n});const l=("attribute:"+n+"|"+Tc({newValue:i}))[fc("0x69")](0,60),u=this[fc("0x126")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c.push(u),this[fc("0x36")](l,x,s,t)}return c}[fc("0x18")](t){this._blockAttributeKeys[fc("0x61")](t)}[fc("0x172")](t){this[fc("0x115")][fc("0x61")](t)}[fc("0xe0")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this._recordAttributeChanges((()=>{t(...e)}))}));for(const t of e)this[fc("0x172")](t);for(const t of n)this._registerBlockAttribute(t)}[fc("0xd9")](t,e){const n=t.getFirstMarker();this[fc("0x29")].change((t=>{t[fc("0x1b")](n,{range:e})}))}[fc("0x0")](t){const e=t.id,n=this[fc("0xce")].config.get(fc("0x152"));this[fc("0x16a")][fc("0x13f")](e)||this[fc("0x16a")][fc("0x161")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x16a")][fc("0x3e")](e);o[fc("0x5f")](fc("0x73")),o[fc("0x73")]=!1,t[fc("0x173")]=o}_checkSuggestionCorrectness(t,n,o,i){if(t[fc("0x89")]!=n||t[fc("0xc8")]!=o||t[fc("0x33")].id!=i)throw this[fc("0xce")][fc("0x57")](fc("0x156")),new e.CKEditorError(fc("0x156"),this)}[fc("0x82")](t,n){const o=t[fc("0xf5")]();if(n[fc("0x12e")](o))t[fc("0x171")]();else if(o.containsRange(n)){const i=this[fc("0x29")].createPositionAt(n[fc("0x9")].nodeBefore,fc("0xb5"));this[fc("0xd9")](t,this[fc("0x29")].createRange(o.start,i));const r=(0,e.uid)(),s=t[fc("0x33")].id,x=t[fc("0x89")]+":"+t[fc("0xc8")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:s,data:t[fc("0x181")],attributes:t[fc("0x167")]});const a=this._model.createPositionAt(n[fc("0xb5")][fc("0x9d")],fc("0xc")),c=this[fc("0x29")][fc("0xf4")](a,o[fc("0xb5")]);this[fc("0x36")](x,r,s,c)}else if(o[fc("0x22")](n[fc("0x9")])){const e=this[fc("0x29")][fc("0x10")](n[fc("0x9")][fc("0x11c")],fc("0xb5"));this[fc("0xd9")](t,this[fc("0x29")][fc("0xf4")](o[fc("0x9")],e))}else{const e=this._model[fc("0x10")](n[fc("0xb5")][fc("0x9d")],"after");this[fc("0xd9")](t,this._model.createRange(e,o[fc("0xb5")]))}}[fc("0xd3")](t){for(const{suggestion:e,meta:n}of this[fc("0xef")](t,fc("0xad"))){if(!n[fc("0x21")])continue;const o=e[fc("0xca")]();for(const e of o)if(!t[fc("0xa9")](e)[fc("0x65")])return!0}return!1}_getAuthorFromId(t){const n=this[fc("0xce")][fc("0x28")][fc("0x16")](fc("0xbe"))[fc("0xf3")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[fc("0x3a")](t){const e=this[fc("0xce")][fc("0x28")][fc("0x16")](fc("0xbe")),n=(0,r.hashObject)(fc("0x12c")+t);return e.getUser(n)||e[fc("0x56")]({id:n,name:t})}_createSuggestion(t,e,n,o,i){const r=this[fc("0x150")](o),s=this._suggestionFactory[fc("0x15")](t,e,n,r,i,(t=>this[fc("0xed")](n,{attributes:t})));return this[fc("0x24")](s,fc("0x168"),(()=>{this[fc("0xed")](n,{state:"accepted"})}),{priority:fc("0x124")}),this[fc("0x24")](s,fc("0x4e"),(()=>{this[fc("0xed")](n,{state:fc("0xb")})}),{priority:fc("0x124")}),this[fc("0x17f")][fc("0x66")](n,s),this[fc("0x132")][fc("0x66")](s,fc("0xe")),s}[fc("0x180")](t){const e=t[fc("0x88")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0x65")]<5?e[3]:e[4],markerCount:6==e[fc("0x65")]?e[5]:null}}[fc("0x164")](t,n,o){const i=t[fc("0xf5")](),r=i[fc("0x9")],s=i.end;this[fc("0xd9")](t,this[fc("0x29")][fc("0xf4")](r,n));const x=(0,e.uid)(),a=t[fc("0x33")].id,c=t.type+(t[fc("0xc8")]?":"+t[fc("0xc8")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x167")],data:t[fc("0x181")]});const l=this[fc("0xd")](t);(fc("0x12d")==t.type||l&&this[fc("0xcb")](l))&&(o=this[fc("0x29")][fc("0x95")](o[fc("0x9d")])),this[fc("0x36")](c,x,a,this._model[fc("0xf4")](o,s))}[fc("0xef")](t,e=null){const n=[],o=this[fc("0xce")][fc("0x28")].get(fc("0xbe")).me;Array.isArray(t)||(t=[t]);for(const i of this.getSuggestions()){if(!i.isInContent)continue;if(e&&i[fc("0x89")]!=e)continue;let r=!1;for(const e of i[fc("0xca")]()){for(const s of t){const t=s.start[fc("0x12e")](e[fc("0xb5")])||s[fc("0xb5")][fc("0x12e")](e[fc("0x9")]);if(t||s[fc("0x84")](e)){const x=s[fc("0xcc")](e)&&bc(this[fc("0x29")][fc("0x7d")],e[fc("0x9")],s),a=e[fc("0xcc")](s)&&bc(this[fc("0x29")][fc("0x7d")],s[fc("0x9")],e);n[fc("0x14c")]({suggestion:i,meta:{isOwn:o==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[fc("0x36")](t,e,n,o,i){this[fc("0x29")][fc("0xd6")]((r=>{let s="suggestion:"+t+":"+e+":"+n;i&&(s=s+":"+i),r[fc("0x86")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x151")](t){const e=t[fc("0xf6")],n=t[fc("0xd7")];t[fc("0xf6")]=null,t[fc("0xd7")]=null,null!=e&&(e.next=n),null!=n&&(n.previous=e),fc("0x13b")==this[fc("0x132")].get(t)&&(this[fc("0x132")][fc("0x66")](t,fc("0x163")),this[fc("0x42")](fc("0x11b"),t,e,n))}[fc("0x126")](t){const n=t.id,o=this[fc("0x10b")](t);if(this[fc("0x53")]&&this._adapter[fc("0x8c")]){const i=this[fc("0xce")][fc("0x28")][fc("0x16")](fc("0x38")),r=o[fc("0x4b")],s=o[fc("0xc8")]?o[fc("0x89")]+":"+o[fc("0xc8")]:o[fc("0x89")],x=this[fc("0xce")][fc("0x92")],a=i[fc("0x61")](Jo(x,fc("0x14b"))),c={id:n,type:s,hasComments:r,data:t.data||null,originalSuggestionId:t[fc("0xfc")]||null,attributes:o[fc("0x167")]};this[fc("0x53")][fc("0x8c")](c)[fc("0x175")]((t=>{o[fc("0xff")]=!0,i[fc("0x14e")](a),t&&t[fc("0xb7")]&&(this[fc("0x17f")].get(n).createdAt=t[fc("0xb7")])}))[fc("0xd8")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor[fc("0xf8")][fc("0x166")]({isUndoable:!1},(()=>{o[fc("0x4e")]()})),o.stopListening(),this[fc("0x17f")][fc("0x5")](o.id),this._suggestionState[fc("0x5")](o),t}))}return o}[fc("0xcb")](t){return this[fc("0x1a")].has(t)}_getAttributeKeyFromSubType(t){return fc("0x55")==t[fc("0x89")]&&t[fc("0xc8")].split("|")[0]}_updateSuggestionData(t,e){const n=this[fc("0xce")].plugins[fc("0x16")](fc("0x38")),o=this[fc("0x10c")](t);if(this[fc("0x53")]&&this._adapter[fc("0x70")])if(o[fc("0xff")]){const o=n[fc("0x61")](Jo(this.editor[fc("0x92")],fc("0x14b")));this[fc("0x53")][fc("0x70")](t,e)[fc("0x175")]((()=>{n[fc("0x14e")](o)}))}else o.on(fc("0x13a"),(()=>{this[fc("0xed")](t,e)}))}_getSuggestionData(t){if(!this._adapter||!this[fc("0x53")][fc("0x10c")])throw new e.CKEditorError(fc("0x10f"),this);return this[fc("0x53")].getSuggestion(t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:i}=this[fc("0x180")](t),r=this[fc("0x17f")][fc("0x16")](e)||this[fc("0x158")](n,o,e,i,{});switch(this[fc("0x1d")](r,n,o,i),this[fc("0x132")][fc("0x16")](r)){case"notReady":this[fc("0xb3")](e)[fc("0x175")]((t=>{let n=Promise[fc("0x13c")]();t[fc("0x4b")]&&(n=this[fc("0x16a")][fc("0x145")]({channelId:this[fc("0xce")].config.get(fc("0x152")),threadId:e})),n[fc("0x175")]((()=>{this[fc("0x10b")](t)[fc("0xff")]=!0}))})),this[fc("0x132")][fc("0x66")](r,"markerReady");break;case"removed":this._updateSuggestionData(e,{state:fc("0x5c")});case fc("0x177"):this._suggestionState[fc("0x66")](r,"ready"),this.fire(fc("0x141"),r);break;case fc("0x13b"):this[fc("0x42")](fc("0x12f"),r)}return r[fc("0x27")](t),r}_refreshSuggestionsChain(t){const e=Array[fc("0xe4")](t),n=e.filter((t=>fc("0x55")==t[fc("0x89")]));this._refreshAttributeSuggestionsChain(n);const o=e[fc("0x13e")]((t=>!t[fc("0x12")]&&fc("0x55")!=t.type)),i=this.getSuggestions({skipNotAttached:!0})[fc("0x13e")]((t=>!t[fc("0x12")]&&fc("0x55")!=t.type)),r=i[fc("0x13e")]((e=>!t.has(e))),s=new Map(i[fc("0x15f")]((t=>[t,this[fc("0x16e")][fc("0xc4")](t[fc("0x89")],t[fc("0xc8")],fc("0x40"))]))),x=new Map(i[fc("0x15f")]((t=>[t,t[fc("0xf5")]()]))),a=new Set,c=new Set;for(let t=0;t<o.length;t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x65")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o.length;t++){const e=o[t];!c[fc("0x32")](e)&&e[fc("0xf6")]&&(l[fc("0x61")](e.previous),e[fc("0xf6")][fc("0xd7")]===e&&(e[fc("0xf6")][fc("0xd7")]=null),e[fc("0xf6")]=null),!a.has(e)&&e[fc("0xd7")]&&(l.add(e[fc("0xd7")]),e[fc("0xd7")].previous===e&&(e.next[fc("0xf6")]=null),e[fc("0xd7")]=null)}function u(t,e,n){for(let o=n;o<e.length;o++){const n=d(t,e[o]);n&&(n[0][fc("0xd7")]=n[1],n[1].previous=n[0],a.add(n[0]),c[fc("0x61")](n[1]))}}function d(t,e){if(t[fc("0x16c")].id!==e[fc("0x16c")].id)return null;const n=s[fc("0x16")](t)(t,e,x.get(t),x[fc("0x16")](e));return n&&s[fc("0x16")](e)(t,e,x[fc("0x16")](t),x[fc("0x16")](e))?n[1][fc("0x173")]&&n[1][fc("0x173")][fc("0x65")]?null:n:null}l[fc("0x15b")]&&this[fc("0x6f")](l)}[fc("0x4")](t){if(0==t[fc("0x65")])return;const e=this[fc("0x102")]({skipNotAttached:!0})[fc("0x13e")]((t=>fc("0x55")==t[fc("0x89")]&&t._isDataLoaded)),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t[fc("0x167")]);o[fc("0x32")](e)||(o[fc("0x66")](e,n.length),n.push([]));const i=o[fc("0x16")](e);n[i].push(t)}!function(){n[fc("0xa5")](((t,e)=>{const n=t[0].createdAt,o=e[0].createdAt;return n==o?t[0][fc("0x167")].groupId<e[0][fc("0x167")].groupId?-1:1:n<o?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t][fc("0x65")])continue;const e=[];for(let o=t+1;o<n.length;o++)0!=n[o][fc("0x65")]&&i(n[t],n[o])&&e[fc("0x14c")](o);for(const o of e)n[t]=n[t][fc("0x5b")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0xd7")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x65")];e++)t[e].previous=t[e-1]||null;function i(t,e){if(t[0].author!==e[0][fc("0x16c")])return!1;if(n=t[0],o=e[0],(n[fc("0x4b")]||o[fc("0x4b")])&&(n[fc("0x4b")]&&o.hasComments||!(n.hasComments&&o.createdAt<n.commentThread[fc("0x144")].get(0).createdAt||o.hasComments&&n[fc("0xb7")]<o[fc("0x173")][fc("0x144")][fc("0x16")](0)[fc("0xb7")])))return!1;var n,o;const i=lc(t[0][fc("0x167")],fc("0xbd")),r=lc(e[0][fc("0x167")],fc("0xbd"));return!!Go(i,r)&&(!!t[fc("0xa3")]((t=>e[fc("0x153")]((e=>t[fc("0xf5")]().isEqual(e.getFirstRange())))))&&e[fc("0xa3")]((e=>t[fc("0x153")]((t=>e.getFirstRange().isEqual(t.getFirstRange()))))))}}[fc("0xbf")](t){const e=Array[fc("0xe4")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n.filter((e=>!t[fc("0x32")](e))),i=new Map(e.map((t=>[t,this._suggestionFactory[fc("0xc4")](t[fc("0x89")],t[fc("0xc8")],"join")]))),r=new Map(n.map((t=>[t,t[fc("0xca")]()])));for(let t=0;t<e[fc("0x65")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x65")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x65")];s++){const o=n[s];if(o[fc("0x89")]!==e.type||o.author.id!==e[fc("0x16c")].id||o.subType!==e[fc("0xc8")])continue;if(!kc(e,o))continue;if(fc("0x55")==e[fc("0x89")]&&e[fc("0x181")][fc("0x9e")]!=o[fc("0x181")][fc("0x9e")])continue;if(fc("0x55")==e.type&&t[fc("0xcb")](e[fc("0x181")][fc("0x23")]))continue;const x=i[fc("0x16")](e),a=r.get(e),c=r[fc("0x16")](o),l=e.commentThread&&e[fc("0x173")].length,u=o[fc("0x173")]&&o[fc("0x173")][fc("0x65")];if(!l&&x(c,a))return t[fc("0x87")](o,e),r.delete(e),!0;if(!u&&x(a,c))return t[fc("0x87")](e,o),r.delete(o),!0}return!1}}[fc("0x87")](t,e){if(t[fc("0x12")])for(const n of e[fc("0xca")]())t[fc("0x176")](n);else{const n=e.getFirstRange().end;this._setSuggestionRange(t,this[fc("0x29")][fc("0xf4")](t.getFirstRange()[fc("0x9")],n))}e.removeMarkers()}[fc("0x11f")](t,e){const n=t[fc("0x15a")](fc("0x60"))||t.startsWith(fc("0x55"))?fc("0x13"):t[fc("0x146")]();return Jo(this.editor[fc("0x92")],e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}[fc("0xb6")](){const t=this[fc("0xce")];(0,r.surroundingMarkersDetector)(this[fc("0x29")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x180")](t.name);if("suggestion"===e){o.push(this[fc("0x11f")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t[fc("0x17b")]);if("suggestion"===e){o[fc("0x14c")](this._getMarkerAnnouncementText(n,fc("0x133")));break}}o[fc("0x65")]&&t.ui[fc("0xbb")][fc("0x142")](fc("0x136"),o[fc("0xdc")](" "))}))}[fc("0xe9")](t){if(null!==this[fc("0x109")])return!1;const e=this[fc("0xce")],n=e[fc("0xf8")][fc("0x7a")].differ[fc("0x63")]();if(0==n[fc("0x65")])return!1;const o=[],i=n[fc("0x13e")]((t=>fc("0x55")==t[fc("0x89")])),r=n[fc("0x13e")]((t=>fc("0x8d")==t[fc("0x89")]&&"$text"!=t[fc("0x17b")])),s=n[fc("0x13e")]((t=>"remove"==t[fc("0x89")]&&fc("0xa2")!=t[fc("0x17b")]));for(const t of i)o[fc("0x14c")]({key:t[fc("0x5e")],newValue:t[fc("0x85")],oldValue:t[fc("0xac")],range:(x=t[fc("0xe8")],null==x[fc("0xb5")][fc("0x11c")]&&x.end[fc("0x9d")]==x[fc("0x9")][fc("0x39")]?Cc(x.start[fc("0x39")],e[fc("0xf8")]):x)});var x;for(const t of r){const n=s[fc("0xd5")]((e=>e.position.isEqual(t[fc("0x35")])));n&&o[fc("0x14c")]({key:fc("0xb8"),newValue:t[fc("0x17b")],oldValue:n[fc("0x17b")],range:e.model[fc("0x20")](t.position[fc("0x39")])})}return 0!=o.length&&this[fc("0x64")](t,o)}[fc("0x59")](t){let e=!1;const n=this[fc("0xce")][fc("0xf8")][fc("0x7a")][fc("0x122")][fc("0x6e")]().filter((t=>t[fc("0x181")][fc("0xe7")]&&t[fc("0x17b")].startsWith(fc("0x117"))));for(const o of n){const{subType:n,id:i}=this[fc("0x180")](o[fc("0x17b")]),r=n[fc("0x88")]("|")[0];for(const n of this[fc("0x102")]({skipNotAttached:!0}))n.id!=i&&fc("0x55")==n[fc("0x89")]&&n[fc("0x181")]&&n.data[fc("0x23")]==r&&n[fc("0xf5")]()[fc("0x131")](o.data[fc("0xe7")])&&(this[fc("0x30")](n,o[fc("0x181")][fc("0xe7")],t),e=!0)}return e}[fc("0xf2")](t){if(null!==this[fc("0x109")])return void t();const n=this[fc("0xce")];this[fc("0x109")]=n[fc("0xf8")][fc("0x7a")][fc("0x3c")],t();const o=new Map;for(const t of n[fc("0xf8")][fc("0x7a")][fc("0x6")][fc("0x13d")](this[fc("0x109")]))if([fc("0x17e"),fc("0x121"),fc("0xfe"),fc("0xda")][fc("0x37")](t[fc("0x89")])){const e=t[fc("0xec")],n=o[fc("0x16")](e)||[];n[fc("0x14c")](t),o[fc("0x66")](e,n)}this[fc("0x109")]=null;for(const[t,i]of o){const o=(0,e.uid)();n[fc("0xf8")].enqueueChange(t,(t=>{const e=[];for(const t of i){let i,r,s,x;if(fc("0x17e")==t[fc("0x89")]){const e=t;i=Cc(e[fc("0x35")][fc("0x39")],n[fc("0xf8")]),r=fc("0xb8"),s=e[fc("0xe3")],x=e.oldName}else{const e=t,o=this[fc("0xcb")](e.key),a=this[fc("0x115")][fc("0x32")](e[fc("0x23")]);if(!o&&!a)continue;i=o?Cc(e[fc("0xe8")].start[fc("0x39")],n[fc("0xf8")]):e.range,r=e[fc("0x23")],s=fc("0xfe")==t[fc("0x89")]?void 0:e[fc("0x98")],x=e.oldValue}this[fc("0xf0")](i,r,x,s,{groupId:o}),e[fc("0x14c")]({range:i,key:r,newValue:s,oldValue:x})}this[fc("0x64")](t,e)}))}}[fc("0x64")](t,e){if(0==e[fc("0x65")])return!1;let n=!1;for(const o of e){const e=this[fc("0xef")](o[fc("0xe8")],fc("0x55"))[fc("0x13e")]((t=>!t[fc("0x58")][fc("0x108")]))[fc("0x15f")]((t=>t[fc("0x26")])),i=(0,r.hashObject)({newValue:o[fc("0x98")]});e.filter((t=>{const[e,n]=t[fc("0xc8")].split("|");return e==o[fc("0x23")]&&n!=i}))[fc("0x17a")]((e=>{this[fc("0x30")](e,o.range,t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t[fc("0xf5")]().getDifference(e);0!==o.length?1!==o[fc("0x65")]?this[fc("0x164")](t,e[fc("0x9")],e[fc("0xb5")]):this[fc("0xd9")](t,o[0]):n[fc("0x105")](t[fc("0xc3")]())}}class pc{constructor(t){this[fc("0x71")]=t,this._model=t.model,this[fc("0xa6")]=new Map,this[fc("0x51")]=new Map,this._registerDefaultCallbacks()}[fc("0x15")](t,e,n,o,i,r){return new Yo(this[fc("0x29")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,"accept")(...n),onDiscard:(...n)=>this[fc("0xc4")](t,e,fc("0x4e"))(...n)})}[fc("0x154")](t,e,n,o){const i=t+":"+e+":"+n;this[fc("0xa6")][fc("0x66")](i,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[fc("0x16")](o)||this._defaultCallbacks[fc("0x16")](t+":"+n)}[fc("0xa")](){const t=()=>!1,e=t=>{t[fc("0xa5")](((t,e)=>t[fc("0x9")][fc("0x11a")](e[fc("0x9")])?1:-1)),this._model[fc("0xd6")]((e=>{for(const n of t){let t;t=n[fc("0xb5")][fc("0xb4")]&&n.end[fc("0x9d")]==n[fc("0x9")][fc("0x39")]?e[fc("0x1f")](n[fc("0x9")][fc("0x39")],"on"):e.createSelection(n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model.change((n=>{const{commandName:o,commandParams:i=[]}=e,r=t[fc("0x15f")]((t=>(Ec(t)&&(t=this._model[fc("0xf4")](t[fc("0xb5")])),t)))[fc("0x13e")]((t=>"$graveyard"!==t[fc("0x162")][fc("0xf7")]));if(r.length<1)return;const x=Array[fc("0xe4")](this._model[fc("0x7a")][fc("0x129")][fc("0xca")]()).map((t=>s.LiveRange[fc("0x114")](t)));n[fc("0x7c")](r);for(const t of this[fc("0x71")][fc("0x134")].commands())t.refresh();i.push({forceDefaultExecution:!0}),this[fc("0x71")][fc("0x50")](o,...i);const a=x.filter((t=>fc("0x2b")!=t.root.rootName));a[fc("0x65")]>0&&n[fc("0x7c")](a);for(const t of x)t[fc("0x113")]()}))},o=(t,e)=>1==t[fc("0x65")]&&1==e[fc("0x65")]&&t[0][fc("0xb5")][fc("0x12e")](e[0][fc("0x9")]),i=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x29")])?[t,e]:Ac(e,t,o,n,this[fc("0x29")])?[e,t]:null;this[fc("0x51")][fc("0x66")]("insertion:accept",t),this._defaultCallbacks[fc("0x66")](fc("0x83"),e),this[fc("0x51")].set(fc("0x91"),o),this[fc("0x51")][fc("0x66")]("insertion:chain",i),this[fc("0x51")][fc("0x66")](fc("0x49"),e),this[fc("0x51")][fc("0x66")](fc("0x4f"),t),this[fc("0x51")][fc("0x66")](fc("0x125"),o),this[fc("0x51")][fc("0x66")](fc("0x120"),i),this[fc("0x51")][fc("0x66")](fc("0xc1"),n),this[fc("0x51")][fc("0x66")]("formatInline:discard",t),this[fc("0x51")][fc("0x66")](fc("0xc9"),o),this[fc("0x51")][fc("0x66")](fc("0x1e"),t),this[fc("0x51")][fc("0x66")](fc("0x118"),n),this[fc("0x51")][fc("0x66")](fc("0x2e"),t),this[fc("0x51")][fc("0x66")]("formatBlock:join",o),this[fc("0x51")][fc("0x66")](fc("0xdf"),t),this[fc("0x51")][fc("0x66")](fc("0xba"),t),this[fc("0x51")][fc("0x66")](fc("0x68"),((t,e)=>{if(!e)return;const n=this[fc("0x71")][fc("0x28")][fc("0x16")](hc);this[fc("0x29")][fc("0xd6")]((o=>{if(fc("0xb8")==e[fc("0x23")])for(const n of t){const t=n[fc("0x9")][fc("0x39")],i=e[fc("0x9e")];o[fc("0x17e")](t,i)}else if(n[fc("0xcb")](e.key))for(const n of t)void 0!==e[fc("0x9e")]?o[fc("0xee")](e[fc("0x23")],e[fc("0x9e")],n[fc("0x9")].nodeAfter):o[fc("0xfe")](e.key,n[fc("0x9")].nodeAfter);else for(const n of t)e[fc("0x9e")]?o[fc("0xee")](e[fc("0x23")],e[fc("0x9e")],n):o.removeAttribute(e[fc("0x23")],n)}))})),this[fc("0x51")].set(fc("0x9b"),o)}}function bc(t,e,n){for(const o of e.parent[fc("0xfa")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0x162")]==o)return!1;if(!n[fc("0x116")](o))return!1;if(t.isObject(o)||t[fc("0x3b")](o))return!0}return!1}function Ec(t){return t[fc("0xb5")].parent==t[fc("0x9")][fc("0x39")]&&t[fc("0xb5")][fc("0x148")]}function _c(t,e,n,o){const i=t=>!t[fc("0xfd")].is(fc("0x43"))&&!o[fc("0x15c")](t[fc("0xfd")]),r=t[fc("0x9")].getLastMatchingPosition(i),s=t[fc("0xb5")][fc("0xd4")](i,{direction:fc("0x11d")});return!(t[fc("0x9")][fc("0x12e")](r)&&t[fc("0xb5")][fc("0x12e")](s)||(r[fc("0x11a")](s)?n.updateMarker(e,{range:n[fc("0xf4")](r,s)}):n[fc("0x105")](e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t[fc("0x9")][fc("0x39")];return e&&e.is(fc("0x1c"))}function Cc(t,e){const n=e.schema.isObject(t)||e[fc("0x7d")].isSelectable(t);return e[fc("0xf4")](e[fc("0x10")](t,fc("0x127")),n?e.createPositionAfter(t):e[fc("0x10")](t,fc("0xb5")))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n.end.isEqual(o[fc("0x9")]))return!0;if(t.type!=e[fc("0x89")])return!1;if(!n[fc("0xb5")][fc("0xc0")](o.start))return!1;const r=i[fc("0xf4")](n[fc("0xb5")],o[fc("0x9")])[fc("0xf")]();for(const t of r)if([fc("0x25"),fc("0x159")][fc("0x37")](t[fc("0x89")])&&i[fc("0x7d")][fc("0x3b")](t[fc("0xfd")]))return!1;return!0}function kc(t,e){return!(!t._isDataLoaded||!e[fc("0xa8")])&&Go(t[fc("0x167")],e[fc("0x167")])}function Ic(t,e){const n=Sc(t.attributes),o=Sc(e);if(!t[fc("0xa8")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object[fc("0x2d")]({},t);return delete e[fc("0x9a")],delete e.tablePasteChainId,e}const vc=["change:isDirty","_editor","execute","_removePendingAction","_setPendingAction","acceptSuggestion","bind","model","canEditAt","PendingActions","isEnabled","stopListening","canDiscard","listenTo","isDirty","view","commentThreadController","get","remove","destroy","discardSuggestion","add","plugins","commands","canAccept","_discardCommand","unbind","_acceptCommand","_pendingAction"];var Rc,Nc;Rc=vc,Nc=418,function(t){for(;--t;)Rc.push(Rc.shift())}(++Nc);const Lc=function(t,e){return vc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Lc("0x18")]=e,this.view=n,this.commentThreadController=o,this[Lc("0x12")]=t,this[Lc("0xf")]=t[Lc("0xb")].get(Lc("0x16")),this._discardCommand=t[Lc("0xb")][Lc("0x5")](Lc("0x8")),this.view[Lc("0x17")](Lc("0x1b")).to(this._acceptCommand,this[Lc("0xd")],((t,e)=>t||e)),this[Lc("0x3")][Lc("0x17")](Lc("0xc")).to(this[Lc("0xf")],"isEnabled",(t=>t&&this[Lc("0x12")][Lc("0x18")][Lc("0x19")](e.getRanges()))),this[Lc("0x3")][Lc("0x17")]("canDiscard").to(this._discardCommand,Lc("0x1b"),(t=>t&&this._editor.model[Lc("0x19")](e.getRanges()))),this[Lc("0x10")]=null,n[Lc("0x2")]&&this[Lc("0x15")](),this.listenTo(n,Lc("0x16"),(()=>this.acceptSuggestion())),this[Lc("0x1")](n,Lc("0x8"),(()=>this.discardSuggestion())),this.listenTo(n,Lc("0x11"),(()=>{n[Lc("0x2")]?this._setPendingAction():this[Lc("0x14")]()}))}acceptSuggestion(){this[Lc("0xf")][Lc("0x13")](this[Lc("0x18")].id)}[Lc("0x8")](){this[Lc("0xd")].execute(this[Lc("0x18")].id)}[Lc("0x7")](){this[Lc("0x3")][Lc("0xe")]("isEnabled"),this.view.unbind(Lc("0xc")),this[Lc("0x3")][Lc("0xe")](Lc("0x0")),this[Lc("0x1c")](),this[Lc("0x4")].destroy(),this[Lc("0x10")]&&this._removePendingAction()}[Lc("0x15")](){const t=Jo(this[Lc("0x12")].locale,"PENDING_ACTION_SUGGESTION");this._pendingAction=this[Lc("0x12")].plugins.get(Lc("0x1a"))[Lc("0x9")](t)}[Lc("0x14")](){null!==this._pendingAction&&this[Lc("0x12")][Lc("0xa")].get("PendingActions")[Lc("0x6")](this[Lc("0x10")]),this[Lc("0x10")]=null}}const wc=["commentThread","destroy","fire","hasDirtyComment","addComment","_config","isDirty","_localUser","commentInputView","removeComment","authoredAt","locale","isEnabled","commentThreadInputView","length","editor","delegate","_model","commentsListView","set","CommentView","editorConfig","cancel","isReadOnly","value","isActive","bind","descriptionParts","element","setData","focus","_createCommentThreadInputView","canAccept","disabledSubmit"];var Oc,Fc;Oc=wc,Fc=166,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends i.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[Dc("0x11")]=null,this[Dc("0x17")]("isActive",!1),this.set(Dc("0xe"),e[Dc("0xe")]),this[Dc("0x1e")]("authoredAt").to(e),this[Dc("0x17")](Dc("0x1f"),[]),this[Dc("0x17")](Dc("0xa"),!1),this[Dc("0x17")](Dc("0x10"),!1),this[Dc("0x17")](Dc("0x2"),!1),this.set("canDiscard",!1),this[Dc("0x15")]=e,this[Dc("0xb")]=n,this[Dc("0x9")]=o,o.disableComments?this[Dc("0x17")](Dc("0x12"),1):this._createCommentViews()}[Dc("0x0")](){this[Dc("0x20")][Dc("0x0")]()}[Dc("0x5")](){this[Dc("0x16")]&&this[Dc("0x16")][Dc("0x5")](),this[Dc("0x11")]&&this[Dc("0x11")][Dc("0x5")](),super[Dc("0x5")]()}_createCommentViews(){const{CommentsListView:t}=this[Dc("0x9")];this.commentsListView=new t(this.locale,this._model.commentThread,Object.assign({CommentView:this._config[Dc("0x18")]},this[Dc("0x9")])),this[Dc("0x16")][Dc("0x14")](Dc("0xd")).to(this),this.commentsListView[Dc("0x14")]("updateComment").to(this),this[Dc("0x16")].bind(Dc("0x1d")).to(this),this[Dc("0x17")]("length",this[Dc("0x16")][Dc("0x12")]+1),this[Dc("0x1e")](Dc("0x12")).to(this.commentsListView,"length",(t=>t+1)),this.commentThreadInputView=this[Dc("0x1")](),this.on(Dc("0xd"),(()=>this[Dc("0x0")]())),this.bind(Dc("0xa")).to(this[Dc("0x16")],Dc("0x7"),this[Dc("0x11")].commentInputView,Dc("0x1c"),((t,e)=>t||!!e))}[Dc("0x1")](){const{CommentThreadInputView:t}=this[Dc("0x9")],e=new t(this[Dc("0xf")],this._localUser,this[Dc("0x9")][Dc("0x19")]),n=e[Dc("0xc")];return e.bind("showInput").to(this,"isActive",this[Dc("0x15")][Dc("0x4")],Dc("0x1b"),n,Dc("0x1c"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Dc("0x6")](Dc("0x8"),e),n[Dc("0x13")][Dc("0x21")]("")})),n.on(Dc("0x1a"),(()=>this[Dc("0x0")]())),n[Dc("0x1e")](Dc("0x3")).to(this[Dc("0x15")].commentThread,Dc("0x1b")),e}}const Pc=["editorDestroyed","innerHTML","div","querySelector","set","ck-annotation__info","_model","isExternal","render","_config","span","ck-suggestion-wrapper","descriptionParts","attributes","</p>","map","check","ck-annotation__actions","split","delegate","ck-suggestion__info","acceptSuggestion","element",'"></span>',"EXTERNAL_SUGGESTION","ck-annotation__main","getTemplate","</span>","canAccept","type","ck-annotation__content-wrapper","EXTERNAL_IMPORT_WORD_AVATAR","author","ck-annotation__info-time","disableComments","push","setTemplate","creator","commentsListView","ck-suggestion__actions","acceptButton","ck-suggestion--accept","title","commentThreadInputView","isEnabled","ck-suggestion-wrapper--active",'" title="',"children","discardSuggestion","bind","_descriptionElement","ck-annotation__user","fire","ck-suggestion--discard",'<span class="ck-suggestion-type">',"content","name","join","getUserViewNotificationText","cancel","editorReady","discardButton","source","EXTERNAL_AVATAR","ck-suggestion","@external","ck-suggestion__info-name",'<span class="ck-suggestion-color" style="background-color: ',"ck-comment__info-time","Accept suggestion","commentThread","userView","_createButton","authoredAt","locale","importWord","value","extendTemplate","ck-annotation__info-name","description","ck-suggestion__user","color",".ck-annotation__content-wrapper","createElement","isActive"];var Uc,jc;Uc=Pc,jc=240,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,o,i){super(e,n,o,i),this.set(Gc("0x2c"),""),this[Gc("0x40")]("type").to(this,Gc("0x1b"),(t=>t&&t[0]?t[0][Gc("0x2c")]:"")),this[Gc("0x40")](Gc("0x9")).to(this,Gc("0x1b"),this,Gc("0xe"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Hc(e[Gc("0x46")],e[Gc("0xb")])+Gc("0x1d");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Gc("0x37")]=this[Gc("0x2")](Jo(e,Gc("0x54")),t.icons[Gc("0x1f")],Gc("0x38"),Gc("0x24"),"sw"),this[Gc("0x37")][Gc("0x40")](Gc("0x3b")).to(this,Gc("0x2b")),this[Gc("0x4c")]=this._createButton(Jo(e,"Discard suggestion"),t.icons[Gc("0x4a")],Gc("0x44"),Gc("0x3f"),"sw"),this[Gc("0x4c")][Gc("0x40")](Gc("0x3b")).to(this,"canDiscard"),this[Gc("0x1")]=new r.UserView(e,this[Gc("0x15")].author,this.getUserViewNotificationText()),this.userView[Gc("0x7")]({attributes:{class:[Gc("0xa"),Gc("0x42")]}}),this[Gc("0x33")](this[Gc("0x29")]())}[Gc("0x29")](){const t=this.bindTemplate,e=[{tag:Gc("0x11"),attributes:{class:[Gc("0x23"),Gc("0x14")]},children:[{tag:Gc("0x19"),children:[{text:this[Gc("0x1")][Gc("0x47")]}],attributes:{class:[Gc("0x51"),Gc("0x8")]}},{tag:"time",attributes:{datetime:t.to(Gc("0x3")),class:[Gc("0x53"),Gc("0x30")]},children:[{text:t.to(Gc("0x3"),(t=>this[Gc("0x18")].formatDateTime(t)))}]}]},{tag:Gc("0x11"),attributes:{class:[Gc("0x36"),Gc("0x20")]},children:[this[Gc("0x37")],this[Gc("0x4c")]]},{tag:Gc("0x11"),attributes:{class:[Gc("0x2d")]}}];this[Gc("0x15")][Gc("0x16")]&&e[Gc("0x32")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:[Gc("0x1a"),t.if(Gc("0xe"),Gc("0x3c")),t.to(Gc("0x2c"),(t=>"ck-suggestion-"+t)),this[Gc("0x18")][Gc("0x31")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[Gc("0x15")].id,"data-thread-id":this[Gc("0x15")][Gc("0x0")].id,"data-author-id":this._model[Gc("0x2f")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[Gc("0x4f"),"ck-annotation"]},children:[this[Gc("0x1")],{tag:Gc("0x11"),attributes:{class:["ck-suggestion__main",Gc("0x28")]},children:e}]}]};return this[Gc("0x35")]&&this[Gc("0x3a")]&&(n[Gc("0x3e")].push(this[Gc("0x35")],this[Gc("0x3a")]),this[Gc("0x35")][Gc("0x22")](Gc("0x4b")).to(this),this.commentsListView[Gc("0x22")]("editorDestroyed").to(this),this.commentThreadInputView[Gc("0x22")]("editorReady").to(this),this[Gc("0x3a")][Gc("0x22")](Gc("0xf")).to(this)),n}[Gc("0x17")](){super.render(),this[Gc("0x41")]=this[Gc("0x25")][Gc("0x12")](Gc("0xc")),this[Gc("0x41")].innerHTML=this[Gc("0x9")],this.on("change:description",((t,e,n)=>{this[Gc("0x41")][Gc("0x10")]=n}))}[Gc("0x2")](t,e,n,o,r){const s=new i.ButtonView(this[Gc("0x4")]);return s[Gc("0x13")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Gc("0x7")]({attributes:{class:n}}),s.on("execute",(()=>{this[Gc("0x43")](o,this[Gc("0x15")].id)})),s}getExternalSuggestionNote(){return Gc("0x5")===this[Gc("0x15")][Gc("0x1c")][Gc("0x50")][Gc("0x4d")]?Jo(this[Gc("0x4")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Jo(this[Gc("0x4")],Gc("0x27"))}[Gc("0x49")](){return this[Gc("0x15")][Gc("0x16")]?Gc("0x5")===this._model.attributes[Gc("0x50")][Gc("0x4d")]?Jo(this[Gc("0x4")],Gc("0x2e"),this[Gc("0x15")][Gc("0x34")][Gc("0x47")]):Jo(this[Gc("0x4")],Gc("0x4e"),this[Gc("0x15")].creator.name):null}}function Hc(t,e){let n="";return n+=t[Gc("0x21")]("*")[Gc("0x1e")](((t,e)=>e%2!=0?Gc("0x45")+zc(t)+Gc("0x2a"):zc(t)))[Gc("0x48")](""),e&&(n+=Gc("0x52")+e[Gc("0x6")]+Gc("0x3d")+e[Gc("0x39")]+Gc("0x26")),n}function zc(t){const e=document[Gc("0xd")](Gc("0x19"));return e.innerText=t,e[Gc("0x10")]}const Wc=["createAnnotation","push","execute","locale","separator","define","SuggestionThreadView","type","acceptSelectedSuggestions","componentFactory","TrackChangesEditing","Annotations","acceptAllSuggestions","acceptButton","EditorAnnotations","Discard all suggestions","getSuggestion","set","CommentsRepository","some","refreshSelectedViews","buttonView","_disableComments","addSourceCollector","isDirty","bind","editing","_initializeController","change:previous","head","discardSelectedSuggestions","_descriptionFactory","_viewToController","Accept all selected suggestions","commands","add","button","editor","plugins","reduce","values","isMultiRange","focus","_handleControllerBuffer","createAnnotationView","trackChanges.SuggestionThreadView","source","keys","TrackChangesUI","CommentsUI","previous","length","_bindAnnotationToEditors","suggestionUnloaded","trackChanges","suggestionLoaded","get","commandName","_updateController","map","getRanges","_suggestionToController","model","remove","config","isInContent","clear","destroy","_createUIButton","size","lowest","view","value","_unbindEditors","getAllAdjacentSuggestions","Accept all suggestions","has","switchbutton","hasSuggestion","change:activeAnnotations","suggestion-","createCommentThreadController","arrowView","discardAllSuggestions","delete","activeAnnotations","_refreshActiveMarkers","filter","comments.maxCommentCharsWhenCollapsed","requires","getMarkers","isEnabled","comments.maxThreadTotalWeight","suggestionChanged","_annotationViews","comments.editorConfig","unbind","trackChanges.disableComments","mainView","commentThread","_destroyController","_handleSuggestionControllerDelayed","listenTo","init","from","actionView","innerView","toMany","descriptionParts","discardButton","getDescriptions","getMarkerNames"];var Kc,qc;Kc=Wc,qc=191,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return Wc[t-=0]};class $c extends t.Plugin{static get[Xc("0xa")](){return[hc,r.Users,Xc("0x33"),Xc("0x2c"),"EditorAnnotations"]}static get pluginName(){return Xc("0x51")}constructor(t){super(t),this._suggestionToController=new Map,this._viewToController=new Map,this[Xc("0xf")]=new Map,this[Xc("0x4c")]=new Map;const e=this[Xc("0x46")][Xc("0x61")];e[Xc("0x26")](Xc("0x4e"),Vc),e[Xc("0x26")](Xc("0x12"),!1),this[Xc("0x37")]=e[Xc("0x59")](Xc("0x12"))}[Xc("0x16")](t,e){0===this[Xc("0x4c")][Xc("0x66")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x4c")]){const n=this[Xc("0x5e")].has(t);n||e?n&&e&&this[Xc("0x15")](t):this[Xc("0x3c")](t)}this[Xc("0x46")][Xc("0x47")].get("EditorAnnotations")[Xc("0x35")](),this[Xc("0x7")](),this._handleControllerBuffer[Xc("0x63")]()}),10),this[Xc("0x4c")][Xc("0x32")](t,e)}[Xc("0x18")](){const t=this[Xc("0x46")],e=t[Xc("0x47")][Xc("0x59")](Xc("0x2b")),n=t[Xc("0x47")][Xc("0x59")](Xc("0x2c")),o=t[Xc("0x47")].get(Xc("0x2f")),i=t[Xc("0x47")].get("CommentsRepository");t.ui[Xc("0x2a")][Xc("0x44")]("trackChanges",(t=>this[Xc("0x65")](t))),o[Xc("0x38")]((()=>{const t=[];for(const[e,n]of Array[Xc("0x19")](this[Xc("0x5e")])){const o=e[Xc("0x6b")](),i=[];for(const t of o){if(!t[Xc("0x62")])continue;if(t[Xc("0x4a")]){i[Xc("0x22")](...t[Xc("0x5d")]());continue}const e=t.getFirstRange();if(i[Xc("0x54")]>0){const t=i[0].getJoined(e);if(t){i[0]=t;continue}}i[Xc("0x22")](e)}t.push([n[Xc("0x68")],i])}return t})),this[Xc("0x17")](e,Xc("0x58"),((t,e)=>{this[Xc("0x17")](e,Xc("0x3d"),((t,n,o,i)=>{e.isInContent&&(null==o?(this._updateController(i[Xc("0x3e")]),this[Xc("0x16")](e,!1)):(this._updateController(o[Xc("0x3e")]),null==i&&this[Xc("0x16")](e,!0)))})),null!==e[Xc("0x53")]?this._updateController(e[Xc("0x3e")]):this[Xc("0x16")](e,!1)})),this[Xc("0x17")](e,Xc("0x56"),((t,e,n)=>{this.stopListening(e,Xc("0x3d")),this[Xc("0x4c")].delete(e),this[Xc("0x5e")][Xc("0x6d")](e)&&this[Xc("0x15")](e),n&&this[Xc("0x5b")](n[Xc("0x3e")])})),this[Xc("0x17")](e,Xc("0xe"),((t,e)=>{this._updateController(e)})),this.listenTo(n,Xc("0x0"),(()=>{this[Xc("0x7")]()})),this[Xc("0x17")](i,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Xc("0x6f")](n))return;const i=e[Xc("0x31")](n);this[Xc("0x5e")][Xc("0x59")](i).view.focus()}),{priority:Xc("0x67")})}[Xc("0x7")](){const t=this[Xc("0x46")][Xc("0x47")][Xc("0x59")](Xc("0x2c")),e=this[Xc("0x46")].plugins[Xc("0x59")](Xc("0x2b")),n=Array.from(t[Xc("0x6")],(t=>t[Xc("0x1b")])).filter((t=>this[Xc("0x41")][Xc("0x6d")](t))),o=[];for(const t of n){const e=this[Xc("0x41")][Xc("0x59")](t)[Xc("0x5f")][Xc("0x6b")]();o[Xc("0x22")](...e[Xc("0x48")](((t,e)=>[...t,...e[Xc("0x20")]()]),[]))}e.activeMarkers=o}[Xc("0x65")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this[Xc("0x46")][Xc("0x43")][Xc("0x59")](Xc("0x57")),r=Jo(t,"Track changes");n.buttonView.set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x36")][Xc("0x3a")]("isOn").to(o,Xc("0x69")),n[Xc("0x36")].on("execute",(()=>{o[Xc("0x23")](),this[Xc("0x46")][Xc("0x3b")][Xc("0x68")].focus()}));const s=new e.Collection,x=[{type:Xc("0x6e"),model:{withText:!0,label:r,commandName:Xc("0x57")}},{type:Xc("0x25")},{type:Xc("0x45"),model:{withText:!0,label:Jo(t,Xc("0x6c")),commandName:Xc("0x2d")}},{type:"button",model:{withText:!0,label:Jo(t,Xc("0x42")),commandName:Xc("0x29")}},{type:Xc("0x45"),model:{withText:!0,label:Jo(t,Xc("0x30")),commandName:Xc("0x4")}},{type:Xc("0x45"),model:{withText:!0,label:Jo(t,"Discard all selected suggestions"),commandName:Xc("0x3f")}}];for(const t of x){let e={type:Xc("0x25")};if(t[Xc("0x5f")]){const n=new i.Model(t[Xc("0x5f")]),o=this[Xc("0x46")][Xc("0x43")].get(n[Xc("0x5a")]);n.bind("isOn","isEnabled").to(o,"value",Xc("0xc")),e={type:t[Xc("0x28")],model:n}}s.add(e)}(0,i.addListToDropdown)(n,s);const a=x.filter((t=>null!=t[Xc("0x5f")]))[Xc("0x5c")]((t=>this.editor[Xc("0x43")][Xc("0x59")](t[Xc("0x5f")][Xc("0x5a")]))),c=n[Xc("0x36")];return c[Xc("0x1a")][Xc("0x11")](Xc("0xc")),c[Xc("0x3")][Xc("0x11")](Xc("0xc")),c[Xc("0x1a")][Xc("0x3a")](Xc("0xc")).to(o,"isEnabled"),c.arrowView[Xc("0x3a")](Xc("0xc"))[Xc("0x1c")](a,Xc("0xc"),((...t)=>t[Xc("0x34")]((t=>t)))),n.on("execute",(t=>{this[Xc("0x46")][Xc("0x23")](t[Xc("0x4f")][Xc("0x5a")]),this[Xc("0x46")].editing.view[Xc("0x4b")]()})),n}_initializeController(t){const e=this[Xc("0x46")],n=e.config,o=e[Xc("0x47")].get("Annotations"),i=e[Xc("0x47")][Xc("0x59")](Xc("0x33")),s=e.plugins[Xc("0x59")](Xc("0x2f")),x=e[Xc("0x47")][Xc("0x59")](r.Users).me,a=n[Xc("0x59")](Xc("0x57"))[Xc("0x27")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x47")].get(Xc("0x52"));let u,d;this[Xc("0xf")][Xc("0x6d")](t.id)?(d=this[Xc("0xf")][Xc("0x59")](t.id),u=d[Xc("0x13")]):(u=new a(e[Xc("0x24")],t,x,{disableComments:this[Xc("0x37")],editorConfig:n[Xc("0x59")](Xc("0x10")),maxCommentsWhenCollapsed:n[Xc("0x59")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Xc("0x59")](Xc("0xd")),maxCommentCharsWhenCollapsed:n[Xc("0x59")](Xc("0x9")),formatDateTime:(0,r.getDateTimeFormatter)(n[Xc("0x59")](Xc("0x24"))),CommentView:n[Xc("0x59")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x2e")].on(Xc("0x23"),(()=>{e[Xc("0x3b")][Xc("0x68")][Xc("0x4b")]()})),u[Xc("0x1e")].on(Xc("0x23"),(()=>{e[Xc("0x3b")][Xc("0x68")].focus()})),d=o[Xc("0x4d")](this[Xc("0x46")][Xc("0x24")],u),d.bind(Xc("0x39")).to(u,"isDirty"),d[Xc("0x3a")](Xc("0x54")).to(u),d[Xc("0x3a")](Xc("0x28")).to(u,Xc("0x28"),(t=>"suggestion-"+t)),this._annotationViews[Xc("0x32")](t.id,d));const g=i[Xc("0x2")](t[Xc("0x14")],u),f=new Mc(e,t,u,g),m=t.getAllAdjacentSuggestions().filter((t=>t[Xc("0x62")]));u[Xc("0x1d")]=e.plugins.get(Xc("0x2b"))[Xc("0x40")].getDescriptions(m),this[Xc("0x5e")][Xc("0x32")](t,f),this._viewToController[Xc("0x32")](u,f);const h=o[Xc("0x21")]({view:d,target:()=>{const n=[],o=t[Xc("0x6b")]()[Xc("0x8")]((t=>t[Xc("0x62")]));for(const t of o)n[Xc("0x22")](...t[Xc("0xb")]());return(0,r.getAllMarkersDomElementsSorted)(e[Xc("0x3b")],n)},type:()=>Xc("0x1")+f.view[Xc("0x28")]});i[Xc("0x55")](u,h),o[Xc("0x44")](h),s.registerAnnotation(h)}_destroyController(t){const e=this[Xc("0x46")][Xc("0x47")][Xc("0x59")]("CommentsRepository"),n=this[Xc("0x46")][Xc("0x47")][Xc("0x59")](Xc("0x2c")),o=this[Xc("0x5e")].get(t),i=o[Xc("0x68")],r=n.getByInnerView(i);e[Xc("0x6a")](i),r&&n[Xc("0x60")](r),this[Xc("0x5e")][Xc("0x5")](t),this._viewToController[Xc("0x5")](i),o[Xc("0x64")]()}[Xc("0x5b")](t){if(!t[Xc("0x62")]||!this._suggestionToController.has(t))return;const e=this[Xc("0x46")][Xc("0x47")][Xc("0x59")](Xc("0x2b")),n=this[Xc("0x5e")][Xc("0x59")](t),o=t[Xc("0x6b")]();n[Xc("0x68")][Xc("0x1d")]=e[Xc("0x40")][Xc("0x1f")](o)}destroy(){for(const t of this[Xc("0x5e")][Xc("0x50")]())this[Xc("0x15")](t);for(const t of this._annotationViews[Xc("0x49")]())t[Xc("0x13")].destroy();super[Xc("0x64")]()}}var Zc,Qc,Yc=["getSuggestion","addSuggestionData","getSuggestions","editor","Comments","addSuggestion","get","adapter","plugins","TrackChanges"];Zc=Yc,Qc=218,function(t){for(;--t;)Zc.push(Zc.shift())}(++Qc);var Jc=function(t,e){return Yc[t-=0]};class tl extends t.Plugin{static get requires(){return[hc,$c,Jc("0x6")]}static get pluginName(){return Jc("0x1")}set[Jc("0x9")](t){this[Jc("0x5")].plugins[Jc("0x8")](hc).adapter=t}get[Jc("0x9")](){return this.editor[Jc("0x0")][Jc("0x8")](hc).adapter}[Jc("0x7")](t){return this[Jc("0x5")][Jc("0x0")][Jc("0x8")](hc)[Jc("0x3")](t)}[Jc("0x4")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Jc("0x5")].plugins[Jc("0x8")](hc)[Jc("0x4")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[Jc("0x5")][Jc("0x0")][Jc("0x8")](hc)[Jc("0x2")](t)}}const el=["editor","appendChild","execute","push","getUser","rootsAttributes","getSuggestions","get","editorCreator","name","result","createElement","trackChangesData.editorCreator","map","discardAllSuggestions","TrackChangesEditing","document","init","config","model","create","getFullData","trackChangesData","define","plugins","Users","getRootNames","acceptAllSuggestions","users","addUser","pluginName","track-changes-data-invalid-editor-creator","useAnonymousUser","getRootsAttributes","TrackChangesDataGetter","getDataWithAcceptedSuggestions","_adapter","data","function","CommentsRepository"];var nl,ol;nl=el,ol=303,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const il=function(t,e){return el[t-=0]},rl=["Pagination"];class sl extends t.Plugin{static get requires(){return[hc]}static get pluginName(){return"TrackChangesData"}[il("0x22")](){const t=this[il("0x11")];if(t.config[il("0x0")](il("0x1d"),(e=>{const n=t.model[il("0x21")].getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t.constructor[il("0x25")](n,e)})),il("0xf")!=typeof t[il("0x23")][il("0x18")](il("0x27"))[il("0x19")])throw new e.CKEditorError(il("0x8"))}[il("0xc")](t){return cl(this[il("0x11")],!0,t)}getDataWithDiscardedSuggestions(t){return cl(this[il("0x11")],!1,t)}}class xl extends t.Plugin{static get[il("0x7")](){return il("0xb")}constructor(t){super(t),this[il("0x1b")]="end"}[il("0x22")](){this.editor[il("0x1")].get(il("0x10"))[il("0xd")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[il("0x11")][il("0x1")][il("0x18")](il("0x20"))[il("0xd")]=null}}function al(t){return void 0!==t[il("0xa")]}async function cl(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,rl);o[il("0x1")][il("0x14")](hc,xl),o[il("0x16")]=al(t)?t[il("0xa")]():void 0;const i=document.createDocumentFragment(),s=t[il("0x23")][il("0x18")](il("0x27"))[il("0x19")],x=await s(o,(()=>function(t){const e=document[il("0x1c")]("div");return t[il("0x12")](e),e}(i)));!function(t,e){const n=t[il("0x24")][il("0x21")][il("0x3")]().reduce(((e,n)=>(e[n]=t[il("0xe")][il("0x18")]({rootName:n}),e)),{}),o=t.plugins.get(il("0x2"))[il("0x5")][il("0x1e")]((t=>({id:t.id,name:t[il("0x1a")]}))),i=t[il("0x1")][il("0x18")](il("0x20"))[il("0x17")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[il("0x18")]("Users"),s=e[il("0x1")][il("0x18")](il("0x20"));for(const t of o)r[il("0x15")](t.id)||r[il("0x6")](t);r.me||r[il("0x9")]();for(const t of i)s.addSuggestionData(t);e[il("0xe")].set(n)}(t,x),x[il("0x13")](il(e?"0x4":"0x1f"));const a=al(x)?x[il("0x26")](n):x.data[il("0x18")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|