@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240916.1 → 0.0.0-nightly-20240917.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +10 -10
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/mergefields.js +1 -1
  136. package/src/integrations/multilevellist.js +1 -1
  137. package/src/integrations/pagebreak.js +1 -1
  138. package/src/integrations/paragraph.js +1 -1
  139. package/src/integrations/removeformat.js +1 -1
  140. package/src/integrations/restrictededitingmode.js +1 -1
  141. package/src/integrations/shiftentercommand.js +1 -1
  142. package/src/integrations/standardeditingmode.js +1 -1
  143. package/src/integrations/style.js +1 -1
  144. package/src/integrations/table.js +1 -1
  145. package/src/integrations/tablecaption.js +1 -1
  146. package/src/integrations/tableclipboard.js +1 -1
  147. package/src/integrations/tablecolumnresize.js +1 -1
  148. package/src/integrations/tableheadings.js +1 -1
  149. package/src/integrations/tablemergesplit.js +1 -1
  150. package/src/integrations/tableofcontents.js +1 -1
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.js +1 -1
  153. package/src/integrations/title.js +1 -1
  154. package/src/integrations/undo.js +1 -1
  155. package/src/integrations/utils.js +1 -1
  156. package/src/suggestion.js +2 -2
  157. package/src/suggestiondescriptionfactory.js +1 -1
  158. package/src/trackchanges.js +1 -1
  159. package/src/trackchangesdata.js +1 -1
  160. package/src/trackchangesediting.js +1 -1
  161. package/src/trackchangesui.js +1 -1
  162. package/src/ui/suggestioncontroller.js +2 -2
  163. package/src/ui/view/basesuggestionthreadview.js +1 -1
  164. package/src/ui/view/suggestionthreadview.js +1 -1
  165. package/src/ui/view/suggestionview.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x3648ee,PendingActions as _0x4dd1f0,icons as _0x541da0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x150d92,ObservableMixin as _0x14a655,uid as _0x4fe6fa,insertToPriorityArray as _0x161c6d,priorities as _0x5d1244,logWarning as _0x225e4a,getEnvKeystrokeText as _0x229e4e,FocusTracker as _0x5c2726,KeystrokeHandler as _0x2bb510,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5e1142,View as _0x4c0280,ViewCollection as _0x78c6e5,FocusCycler as _0x441236,ViewModel as _0x4ee1ed,createDropdown as Qt,SplitButtonView as _0x207a53,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x4bf70d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x251663,hashObject as _0x38e828,surroundingMarkersDetector as _0x19ed74,FOCUS_ANNOTATION_KEYSTROKE as _0x10edf5,AriaDescriptionView as _0x377da4,setupThreadKeyboardNavigation as _0x2a509d,trimHtml as _0x2ba2b0,UserView as _0x9ecabe,LateFocusButtonView as _0xeb44d1,getDateTimeFormatter as _0x4c18e5,getAllMarkersDomElementsSorted as _0xd782a6,sanitizeEditorConfig as _0x1f1c64}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x37ec6e,LiveRange as _0x18bd53,LivePosition as _0x344674}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x34293b,toWidget as _0x438de3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1b5d7a,set as _0x33deb6,isEqual as _0x5578e3,unset as _0x28d513,omit as Tt}from'lodash-es';import{Delete as _0x19f0ea,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x504c28,ShiftEnter as _0x21f6fd}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x2e49a5,_0x5c803a){super(_0x2e49a5),this['_enabledCommands']=_0x5c803a,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x31dc0e of this['editor']['commands']['commands']())_0x31dc0e['affectsData']&&!this['_enabledCommands']['has'](_0x31dc0e)&&_0x31dc0e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x22568a of this['editor']['commands']['commands']())_0x22568a['affectsData']&&!this['_enabledCommands']['has'](_0x22568a)&&_0x22568a['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x35de36,_0x49c9d8){super(_0x35de36),this['_suggestions']=_0x49c9d8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x433549){const _0x1b3911=this['_suggestions']['get'](_0x433549);if(!_0x1b3911)throw new _0x150d92('track-changes-accept-suggestion-not-found',this);const _0x12b3a6=_0x1b3911['getRanges']();this['editor']['model']['canEditAt'](_0x12b3a6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b3911);}}class R extends ts{['_suggestions'];constructor(_0x8945e6,_0x2a54de){super(_0x8945e6),this['_suggestions']=_0x2a54de,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x400baa){const _0x548213=this['_suggestions']['get'](_0x400baa);if(!_0x548213)throw new _0x150d92('track-changes-discard-suggestion-not-found',this);const _0x135bdd=_0x548213['getRanges']();this['editor']['model']['canEditAt'](_0x135bdd)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x548213);}}function ls(_0x37e687,_0x50273f){let _0x302db6='';return _0x302db6+=_0x37e687['split']('*')['map']((_0x5e3d55,_0x53c5f5)=>_0x53c5f5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5e3d55)+'</span>':nn(_0x5e3d55))['join'](''),_0x50273f&&(_0x302db6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x50273f['value']+'\x22\x20title=\x22'+_0x50273f['title']+'\x22></span>'),_0x302db6;}function nn(_0xdd9499){const _0x494767=document['createElement']('span');return _0x494767['innerText']=_0xdd9499,_0x494767['innerHTML'];}function ss(_0x2f8745){return _0x2f8745['sort']((_0x44d5e2,_0x3ec9a4)=>'deletion'==_0x44d5e2['type']&&'deletion'!=_0x3ec9a4['type']?-0x1:'deletion'!=_0x44d5e2['type']&&'deletion'==_0x3ec9a4['type']?0x1:0x0);}function to(_0x4c4ea5,_0x12cfd2){let _0x397d05,_0x3d6cf5=0x0;const _0x5eeff1=[],_0x6a698e=_0x12cfd2['schema'];for(;_0x3d6cf5<_0x4c4ea5['length'];){const _0x2761ef=_0x4c4ea5[_0x3d6cf5],_0x259f74=_0x4c4ea5[_0x3d6cf5+0x1];_0x397d05||(_0x397d05=_0x12cfd2['createPositionBefore'](_0x2761ef)),on(_0x12cfd2,_0x2761ef,_0x259f74)||(_0x5eeff1['push'](_0x12cfd2['createRange'](_0x397d05,_0x6a698e['isObject'](_0x2761ef)?_0x12cfd2['createPositionAfter'](_0x2761ef):_0x12cfd2['createPositionAt'](_0x2761ef,'end'))),_0x397d05=null),_0x3d6cf5++;}return _0x5eeff1;}function on(_0x3a614a,_0x43aebd,_0x5bb31f){if(!_0x5bb31f)return!0x1;const _0xf9c2da=_0x3a614a['createPositionAfter'](_0x43aebd),_0x736d3b=_0x3a614a['createPositionBefore'](_0x5bb31f);return _0xf9c2da['isTouching'](_0x736d3b);}function rs(_0x444571,_0x299b5a,_0x3c9104){for(;_0x3c9104['length'];){const _0x4a3561=_0x3c9104['splice'](0x0,0x64);_0x444571['change'](()=>{for(const _0x456a8d of _0x4a3561)_0x456a8d['isInContent']&&_0x299b5a['execute'](_0x456a8d['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0xd50b8e,_0x2c122e,_0x10ba59){super(_0xd50b8e),this['_command']=_0x2c122e,this['_suggestions']=_0x10ba59,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x75a8e=Array['from'](this['_suggestions']['values']())['some'](_0x187913=>_0x187913['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x75a8e;}['execute'](){const _0x40f2e8=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1ef298 of _0x40f2e8){const _0x32c14d=_0x1ef298['getRanges']();if(!this['editor']['model']['canEditAt'](_0x32c14d))return;}rs(this['editor']['model'],this['_command'],_0x40f2e8);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x159adb,_0x3d03f0,_0x3e2ac6){super(_0x159adb),this['_command']=_0x3d03f0,this['_suggestions']=_0x3e2ac6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x20a1a2=this['editor']['model']['document']['selection'],_0x64d528=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5915d1,_0x2081bc){const _0x1cc661=Array['from'](_0x5915d1['getRanges']()),_0x34134e=new Set();for(const _0x645519 of _0x2081bc)if(_0x645519['isInContent']){for(const _0xab4da6 of _0x1cc661)for(const _0x4cb858 of _0x645519['getRanges']())(_0xab4da6['isIntersecting'](_0x4cb858)||_0x5915d1['isCollapsed']&&!_0x645519['isMultiRange']&&_0x645519['next']&&_0x4cb858['end']['isTouching'](_0xab4da6['start']))&&_0x34134e['add'](_0x645519);}return _0x34134e;}(_0x20a1a2,_0x64d528),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4828a7=ss(Array['from'](this['_selectedSuggestions']));for(const _0x387973 of _0x4828a7){const _0x373b88=_0x387973['getRanges']();if(!this['editor']['model']['canEditAt'](_0x373b88))return;}rs(this['editor']['model'],this['_command'],_0x4828a7);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x14a655(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1351d7,_0x496ec8){super(),this['id']=_0x496ec8['id'],this['type']=_0x496ec8['type'],this['subType']=_0x496ec8['subType']||null,this['author']=_0x496ec8['author'],this['creator']=_0x496ec8['creator']||_0x496ec8['author'],this['isExternal']=Boolean(_0x496ec8['attributes']&&_0x496ec8['attributes']['@external']),this['data']=null,this['_model']=_0x1351d7,this['_onAccept']=_0x496ec8['onAccept'],this['_onDiscard']=_0x496ec8['onDiscard'],this['_onAttributesChange']=_0x496ec8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x496ec8['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x3e2242=this;for(;_0x3e2242['previous'];)_0x3e2242=_0x3e2242['previous'];return _0x3e2242;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1767ac){this['_markerNames']['add'](_0x1767ac);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5c3f41=>this['_model']['markers']['get'](_0x5c3f41))['filter'](_0x1c309e=>_0x1c309e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3e0382=>{for(const _0x280d56 of this['getMarkers']())_0x3e0382['removeMarker'](_0x280d56);}),this['_markerNames']['clear']();}['removeMarker'](_0x1fa592){this['_model']['change'](_0xb5dae4=>{_0xb5dae4['removeMarker'](_0x1fa592);}),this['_markerNames']['delete'](_0x1fa592);}['addRange'](_0x5d3227){const _0xecf765='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xecf765),this['_model']['change'](_0x234365=>{_0x234365['addMarker'](_0xecf765,{'range':_0x5d3227,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x473600){for(const _0x5de6c3 of this['getRanges']())if(_0x5de6c3['isIntersecting'](_0x473600))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xb32a6f=>_0xb32a6f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x58f81b,_0x4b53a0)=>[..._0x58f81b,..._0x4b53a0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3df10b=this['getRanges']();if(0x1!=_0x3df10b['length'])return null;const _0x4bca8c=_0x3df10b[0x0],_0x7e2bfe=_0x4bca8c['start']['nodeAfter'],_0x29a064=_0x4bca8c['end']['nodeBefore'];return _0x7e2bfe instanceof _0x37ec6e?_0x7e2bfe!=_0x29a064?null:_0x7e2bfe:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x49f831=[];let _0x500bfe=this['head'];for(;_0x500bfe;)_0x49f831['push'](_0x500bfe),_0x500bfe=_0x500bfe['next'];return _0x49f831;}['setAttribute'](_0x42a648,_0x28b6f7){const _0x5d267e=_0x1b5d7a(this['attributes']);_0x33deb6(_0x5d267e,_0x42a648,_0x28b6f7),_0x5578e3(_0x5d267e,this['attributes'])||(this['attributes']=_0x5d267e,this['_onAttributesChange'](_0x5d267e));}['removeAttribute'](_0x200d5d){const _0x3275bc=_0x1b5d7a(this['attributes']);_0x28d513(_0x3275bc,_0x200d5d),_0x5578e3(_0x3275bc,this['attributes'])||(this['attributes']=_0x3275bc,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x4fe6fa()['substr'](0x1,0x5);}}function o(_0x202724,_0x1d1e30,_0x37f1d7){const t=_0x202724['t'];switch(_0x1d1e30){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x37f1d7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x37f1d7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x37f1d7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x37f1d7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x37f1d7);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x37f1d7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x37f1d7);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x37f1d7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x37f1d7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x37f1d7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x37f1d7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x37f1d7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x37f1d7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x37f1d7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x37f1d7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x37f1d7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x37f1d7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x37f1d7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x37f1d7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x37f1d7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x37f1d7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x37f1d7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x37f1d7);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x37f1d7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x37f1d7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x37f1d7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x37f1d7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x37f1d7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x37f1d7);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x37f1d7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x37f1d7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x37f1d7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x37f1d7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x37f1d7);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x37f1d7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x37f1d7);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x37f1d7);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x37f1d7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x37f1d7);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x37f1d7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x37f1d7);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x37f1d7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x37f1d7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x37f1d7);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x37f1d7);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x37f1d7);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x37f1d7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x37f1d7);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x37f1d7);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x37f1d7);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x37f1d7);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1d1e30;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x144944,_0x511511){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x144944,this['_locale']=_0x511511;}['getDescriptions'](_0x5ca6d0){const _0x367dae=[],_0x3692b0=new Set(),_0x2196a8=new Set();for(let _0x1bdafd=0x0;_0x1bdafd<_0x5ca6d0['length'];_0x1bdafd++){const _0x451e9c=_0x5ca6d0[_0x1bdafd];if(!_0x451e9c['isInContent'])continue;const _0x293bf0=this['_handleCustomCallbackDescription'](_0x451e9c);if(_0x293bf0){if(null!=_0x451e9c['subType']){if(_0x3692b0['has'](_0x451e9c['subType']))continue;_0x3692b0['add'](_0x451e9c['subType']);}_0x367dae['push'](_0x293bf0);}else{if('attribute'!=_0x451e9c['type'])'insertion'!=_0x451e9c['type']&&'deletion'!=_0x451e9c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x367dae,_0x451e9c,_0x5ca6d0[_0x1bdafd+0x1]);else{const _0x458766=_0x451e9c['data']['key'];if(_0x2196a8['has'](_0x458766))continue;_0x2196a8['add'](_0x451e9c['data']['key']),_0x458766==m?this['_handleRenameSuggestionDescription'](_0x367dae,_0x451e9c):this['_handleAttributeSuggestionDescription'](_0x367dae,_0x451e9c);}}}return this['_resolveDescriptionItems'](_0x367dae);}['registerDescriptionCallback'](_0xdbade1){this['_customCallbacks']['push'](_0xdbade1);}['registerElementLabel'](_0x1ea126,_0x1a5934,_0x4384a0=_0x5d1244['normal']){'function'==typeof _0x1ea126?_0x161c6d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1ea126,'label':_0x1a5934,'priority':_0x4384a0}):this['_itemLabels']['set'](_0x1ea126,_0x1a5934);}['registerAttributeLabel'](_0x372f74,_0x563b31){this['_attributeLabels']['set'](_0x372f74,_0x563b31);}['getItemLabel'](_0x49299c,_0x33dd13=0x1){let _0x1c71df;for(const _0x24578b of this['_itemLabelsCallbacks'])if(_0x24578b['matchingCallback'](_0x49299c)){_0x1c71df=_0x24578b['label'];break;}return _0x1c71df||(_0x1c71df=this['_itemLabels']['get'](_0x49299c['name'])),_0x1c71df?_0x1c71df(_0x33dd13):0x1!==_0x33dd13?_0x33dd13+'\x20'+_0x49299c['name']+'s':''+_0x49299c['name'];}['_addDescriptionItems'](_0x2372ab,_0x4df5b4){const _0x52f4da=_0x4df5b4['getFirstRange']()['getWalker'](),_0x3b2817='insertion'==_0x4df5b4['type']?'add':'remove';for(const _0x8b17c9 of _0x52f4da){const _0x244aef=_0x8b17c9['item'],_0x3f0d2c=_0x2372ab[_0x2372ab['length']-0x1];if(_0x244aef['is']('$textProxy'))_0x3f0d2c&&_0x3f0d2c['type']['indexOf']('Container')>-0x1&&_0x2372ab['pop'](),_0x3f0d2c&&'text'==_0x3f0d2c['type']?_0x3f0d2c[_0x3b2817]+=_0x244aef['data']:_0x2372ab['push']({'type':'text','add':'add'==_0x3b2817?_0x244aef['data']:'','remove':'remove'==_0x3b2817?_0x244aef['data']:''});else{if(this['_schema']['isObject'](_0x244aef)){const _0x37801d=_0x244aef;if(_0x3f0d2c&&_0x3f0d2c['type']['indexOf']('Container')>-0x1&&_0x2372ab['pop'](),'elementEnd'==_0x8b17c9['type'])continue;_0x3f0d2c&&_0x3f0d2c['type']==_0x3b2817+'Object'&&_0x3f0d2c['element']['name']==_0x37801d['name']?_0x3f0d2c['quantity']++:_0x2372ab['push']({'type':_0x3b2817+'Object','element':_0x37801d,'quantity':0x1}),_0x52f4da['skip'](_0xe4b0d9=>!('elementEnd'==_0xe4b0d9['type']&&_0xe4b0d9['item']==_0x244aef));}else{if(this['_schema']['checkChild'](_0x244aef,'$text')||_0x244aef['is']('element','softBreak')){const _0x1470a6=_0x244aef;if('add'==_0x3b2817&&'elementStart'==_0x8b17c9['type']||'remove'==_0x3b2817&&'elementEnd'==_0x8b17c9['type'])continue;if(_0x3f0d2c&&-0x1==_0x3f0d2c['type']['indexOf']('Container')){'text'==_0x3f0d2c['type']&&(_0x3f0d2c[_0x3b2817]+='\x0a');continue;}let _0x4dae0f;if(_0x4dae0f='add'==_0x3b2817?_0x1470a6['nextSibling']&&!this['_schema']['isObject'](_0x1470a6['nextSibling'])?_0x1470a6['nextSibling']:null:_0x1470a6['previousSibling']&&!this['_schema']['isObject'](_0x1470a6['previousSibling'])?_0x1470a6['previousSibling']:null,_0x1470a6['isEmpty']||_0x4dae0f&&_0x4dae0f['isEmpty']){const _0x31a65e=_0x4dae0f&&_0x4dae0f['isEmpty']?_0x4dae0f:_0x1470a6;_0x3f0d2c&&_0x3f0d2c['type']==_0x3b2817+'EmptyContainer'&&_0x3f0d2c['element']['name']==_0x31a65e['name']?_0x3f0d2c['quantity']++:_0x2372ab['push']({'type':_0x3b2817+'EmptyContainer','element':_0x31a65e,'quantity':0x1});}else _0x2372ab['push']({'type':_0x3b2817+'Container','element':_0x1470a6});}}}}}['_resolveDescriptionItems'](_0x5c84af){const _0x5a8792=this['_locale'],_0x12fa06=[],_0x2184a9=[],_0x474da9=[];for(const _0x2cc60e of _0x5c84af)switch(_0x2cc60e['type']){case'text':if(_0x2cc60e['add']=_0x2cc60e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2cc60e['remove']=_0x2cc60e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2cc60e['add']&&''!=_0x2cc60e['remove']){_0x12fa06['push']({'type':'replace','content':o(_0x5a8792,'REPLACE_TEXT',['\x22'+_0x2cc60e['remove']+'\x22','\x22'+_0x2cc60e['add']+'\x22'])});continue;}if(null!=_0x2cc60e['add']['match'](/^ +$/)){_0x12fa06['push']({'type':'insertion','content':o(_0x5a8792,'*Insert:*\x20%0',o(_0x5a8792,'ELEMENT_SPACE',_0x2cc60e['add']['length']))});continue;}if(null!=_0x2cc60e['remove']['match'](/^ +$/)){_0x12fa06['push']({'type':'deletion','content':o(_0x5a8792,'*Remove:*\x20%0',o(_0x5a8792,'ELEMENT_SPACE',_0x2cc60e['remove']['length']))});continue;}if(''!=_0x2cc60e['add']){_0x12fa06['push']({'type':'insertion','content':o(_0x5a8792,'*Insert:*\x20%0','\x22'+_0x2cc60e['add']+'\x22')});continue;}_0x12fa06['push']({'type':'deletion','content':o(_0x5a8792,'*Remove:*\x20%0','\x22'+_0x2cc60e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x12fa06['push']({'type':'insertion','content':o(_0x5a8792,'*Insert:*\x20%0',this['getItemLabel'](_0x2cc60e['element'],_0x2cc60e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x12fa06['push']({'type':'deletion','content':o(_0x5a8792,'*Remove:*\x20%0',this['getItemLabel'](_0x2cc60e['element'],_0x2cc60e['quantity']))});continue;case'addContainer':_0x12fa06['push']({'type':'insertion','content':o(_0x5a8792,'*Split:*\x20%0',this['getItemLabel'](_0x2cc60e['element'],_0x2cc60e['quantity']))});continue;case'removeContainer':_0x12fa06['push']({'type':'deletion','content':o(_0x5a8792,'*Merge:*\x20%0',this['getItemLabel'](_0x2cc60e['element'],_0x2cc60e['quantity']))});continue;case'addFormat':_0x2184a9['push'](_0x2cc60e['key']);continue;case'removeFormat':_0x474da9['push'](_0x2cc60e['key']);continue;default:_0x12fa06['push'](_0x2cc60e);}if(_0x2184a9['length']){const _0x4921d3=_0x2184a9['map'](_0x2b8b35=>this['_attributeLabels']['has'](_0x2b8b35)?this['_attributeLabels']['get'](_0x2b8b35):_0x2b8b35)['join'](',\x20');_0x12fa06['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4921d3)});}if(_0x474da9['length']){const _0x547e45=_0x474da9['map'](_0x275f10=>this['_attributeLabels']['has'](_0x275f10)?this['_attributeLabels']['get'](_0x275f10):_0x275f10)['join'](',\x20');_0x12fa06['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x547e45)});}return _0x12fa06;}['_handleCustomCallbackDescription'](_0x54a809){for(const _0x24cfbf of this['_customCallbacks']){const _0x5dacdc=_0x24cfbf(_0x54a809);if(_0x5dacdc&&'type'in _0x5dacdc)return _0x5dacdc;}}['_handleAttributeSuggestionDescription'](_0x5283b7,_0x3db541){const _0x53c594=_0x3db541['data'],_0x18b1b9=void 0x0===_0x53c594['newValue']?'removeFormat':'addFormat';_0x5283b7['push']({'type':_0x18b1b9,'key':_0x53c594['key']});}['_handleRenameSuggestionDescription'](_0x25fcf0,_0x4b8cc8){_0x25fcf0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b8cc8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2b67fb,_0x1d3ea7,_0x53e412){if(this['_addDescriptionItems'](_0x2b67fb,_0x1d3ea7),_0x53e412&&_0x53e412['getFirstRange']()&&!_0x1d3ea7['getFirstRange']()['end']['isEqual'](_0x53e412['getFirstRange']()['start'])){const _0x9d0b0c=_0x2b67fb[_0x2b67fb['length']-0x1],_0xfe6f94='insertion'==_0x1d3ea7['type']?'add':'remove';_0x9d0b0c&&'text'==_0x9d0b0c['type']&&(_0x9d0b0c[_0xfe6f94]+='\x0a');}}}class V extends _0x3648ee{['afterInit'](){const _0x32ea97=this['editor'],_0x506b00=_0x32ea97['plugins']['get']('TrackChangesEditing');_0x32ea97['commands']['get']('showAIAssistant')&&_0x506b00['enableCommand']('showAIAssistant');}}class U extends _0x3648ee{['afterInit'](){const _0x4f2244=this['editor'],_0x2353eb=_0x4f2244['locale'];if(!_0x4f2244['plugins']['has']('AlignmentEditing'))return;const _0x38b7d5=_0x4f2244['plugins']['get']('TrackChangesEditing');_0x38b7d5['enableDefaultAttributesIntegration']('alignment'),_0x38b7d5['registerBlockAttribute']('alignment'),_0x38b7d5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2353eb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15fb44=this['editor'],_0x4e5aef=_0x15fb44['locale'];_0x15fb44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ebf60=>{if('formatBlock'!=_0x4ebf60['type'])return;const {data:_0x4e9da4}=_0x4ebf60;if(_0x4e9da4&&'alignment'==_0x4e9da4['commandName']){const _0x2b2d5f=_0x4e9da4['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e5aef,'*Format:*\x20%0',function(_0x46ea1d){switch(_0x46ea1d){case'left':return o(_0x4e5aef,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e5aef,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e5aef,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e5aef,'FORMAT_JUSTIFY_TEXT');}}(_0x2b2d5f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3648ee{['afterInit'](){const _0x3ab008=this['editor'],_0x10050e=_0x3ab008['plugins']['get']('TrackChangesEditing'),_0x231166=_0x3ab008['locale'];for(const _0x5dd87f of ti){if(!_0x3ab008['plugins']['has'](_0x5dd87f))continue;const _0x46e695=_0x5dd87f['slice'](0x0,-0x7)['toLowerCase'](),_0x22a1c3='FORMAT_'+_0x46e695['toUpperCase']();_0x10050e['enableDefaultAttributesIntegration'](_0x46e695),_0x10050e['registerInlineAttribute'](_0x46e695),_0x10050e['descriptionFactory']['registerAttributeLabel'](_0x46e695,o(_0x231166,_0x22a1c3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x528285=this['editor'],_0x493e6a=_0x528285['locale'],_0x198c1b=_0x528285['plugins']['get']('TrackChangesEditing');function _0x47b9c6(_0x118fb6,_0x87333e){_0x198c1b['descriptionFactory']['registerDescriptionCallback'](_0x249c62=>{if('formatInline'!=_0x249c62['type'])return;const {data:_0x4206c5}=_0x249c62;return _0x4206c5&&_0x4206c5['commandName']===_0x118fb6?_0x4206c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x493e6a,'*Format:*\x20%0',_0x87333e)}:{'type':'format','content':o(_0x493e6a,'*Remove\x20format:*\x20%0',_0x87333e)}:void 0x0;});}_0x47b9c6('bold',o(_0x493e6a,'FORMAT_BOLD')),_0x47b9c6('italic',o(_0x493e6a,'FORMAT_ITALIC')),_0x47b9c6('underline',o(_0x493e6a,'FORMAT_UNDERLINE')),_0x47b9c6('code',o(_0x493e6a,'FORMAT_CODE')),_0x47b9c6('strikethrough',o(_0x493e6a,'FORMAT_STRIKETHROUGH')),_0x47b9c6('subscript',o(_0x493e6a,'FORMAT_SUBSCRIPT')),_0x47b9c6('superscript',o(_0x493e6a,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3648ee{['afterInit'](){const _0x5c4fa6=this['editor'],_0x38586d=_0x5c4fa6['locale'];if(!_0x5c4fa6['plugins']['has']('BlockQuoteEditing'))return;const _0x5e8657=_0x5c4fa6['plugins']['get']('TrackChangesEditing'),_0x49bd5f=this['editor']['commands']['get']('blockQuote');_0x5e8657['enableCommand']('blockQuote',(_0x4141f9,_0x43577a={})=>{const _0x173952=this['editor']['model']['document']['selection'],_0x3bcf6f=_0x43577a&&void 0x0!==_0x43577a['forceValue']?_0x43577a['forceValue']:!_0x49bd5f['value'];let _0x21633f=[];if(_0x3bcf6f){const _0x4629ec=Array['from'](_0x173952['getSelectedBlocks']())['filter'](_0x3e8b46=>oo(_0x3e8b46)||function(_0x33bad9,_0x10b7a0){const _0xe594f6=_0x10b7a0['checkChild'](_0x33bad9['parent'],'blockQuote'),_0x4f465d=_0x10b7a0['checkChild'](['$root','blockQuote'],_0x33bad9);return _0xe594f6&&_0x4f465d;}(_0x3e8b46,this['editor']['model']['schema']));_0x21633f=to(_0x4629ec,_0x5c4fa6['model']);}else{const _0x45e3c2=Array['from'](_0x173952['getSelectedBlocks']())['filter'](_0x173d6d=>oo(_0x173d6d));_0x21633f=to(_0x45e3c2,_0x5c4fa6['model']);}_0x5c4fa6['model']['change'](()=>{for(const _0x452fb7 of _0x21633f)_0x5e8657['markBlockFormat'](_0x452fb7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3bcf6f}]});});}),_0x5e8657['descriptionFactory']['registerDescriptionCallback'](_0x485c43=>{const {data:_0x37558a}=_0x485c43;if(_0x37558a&&'blockQuote'==_0x37558a['commandName']){const _0x2df891=o(_0x38586d,'ELEMENT_BLOCK_QUOTE');return _0x37558a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38586d,'*Set\x20format:*\x20%0',_0x2df891)}:{'type':'format','content':o(_0x38586d,'*Remove\x20format:*\x20%0',_0x2df891)};}});}}function oo(_0x5bda23){return'blockQuote'==_0x5bda23['parent']['name'];}class L extends _0x3648ee{['afterInit'](){const _0x51a76c=this['editor'];_0x51a76c['plugins']['has']('CaseChange')&&(_0x51a76c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51a76c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51a76c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3648ee{['afterInit'](){const _0x411a4d=this['editor'];_0x411a4d['commands']['get']('ckbox')&&_0x411a4d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3648ee{['afterInit'](){const _0x3f3456=this['editor'];if(!_0x3f3456['plugins']['has']('CodeBlock'))return;const _0x54603f=_0x3f3456['plugins']['get']('TrackChangesEditing'),_0x1eb138=_0x3f3456['locale'],_0x25b19c=_0x3f3456['config']['get']('codeBlock')['languages'],_0x569430=_0x3f3456['commands']['get']('codeBlock');_0x54603f['enableCommand']('indentCodeBlock'),_0x54603f['enableCommand']('outdentCodeBlock'),_0x54603f['enableCommand']('codeBlock',(_0x20c179,_0x241e0c={})=>{const _0x13dbe0=_0x3f3456['model'],_0xb142ec=_0x3f3456['model']['document']['selection'],_0x5dda22=_0x241e0c&&void 0x0!==_0x241e0c['forceValue']?_0x241e0c['forceValue']:!_0x569430['value'];let _0x556ca5;_0x241e0c['language']||(_0x241e0c['language']=_0x25b19c[0x0]['language']),_0x556ca5=_0x5dda22?Array['from'](_0xb142ec['getSelectedBlocks']())['filter'](_0xc2de45=>eo(_0xc2de45)||function(_0x24b8d5,_0x58d7a3){if(_0x24b8d5['is']('rootElement')||_0x58d7a3['isLimit'](_0x24b8d5))return!0x1;return _0x58d7a3['checkChild'](_0x24b8d5['parent'],'codeBlock');}(_0xc2de45,_0x13dbe0['schema'])):Array['from'](_0xb142ec['getSelectedBlocks']())['filter'](_0x17247a=>eo(_0x17247a));const _0x41b885=to(_0x556ca5,_0x13dbe0);_0x13dbe0['change'](()=>{for(const _0x55ed43 of _0x41b885)_0x54603f['markBlockFormat'](_0x55ed43,{'commandName':'codeBlock','commandParams':[{..._0x241e0c,'forceValue':_0x5dda22}],'formatGroupId':'blockName'});});}),(_0x54603f['descriptionFactory']['registerElementLabel']('codeBlock',_0x52eeed=>o(_0x1eb138,'ELEMENT_CODE_BLOCK',_0x52eeed)),_0x54603f['descriptionFactory']['registerDescriptionCallback'](_0x4e379a=>{if('formatBlock'!=_0x4e379a['type'])return;const _0x29ece2=_0x1eb138['t'],{data:_0x2c2c79}=_0x4e379a;if(!_0x2c2c79||'codeBlock'!=_0x2c2c79['commandName'])return;const _0x3f2fcb=_0x2c2c79['commandParams'][0x0]['language'],_0x41b5c0=_0x29ece2(_0x25b19c['find'](_0x195b05=>_0x195b05['language']===_0x3f2fcb)['label'])['toLowerCase']();return _0x2c2c79['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1eb138,'*Set\x20format:*\x20%0',o(_0x1eb138,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x41b5c0+')')}:{'type':'format','content':o(_0x1eb138,'*Remove\x20format:*\x20%0',o(_0x1eb138,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x48bbc7){return'codeBlock'==_0x48bbc7['name'];}class q extends _0x3648ee{['afterInit'](){const _0x150e2f=this['editor'];if(!_0x150e2f['plugins']['has']('CommentsEditing'))return;_0x150e2f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x32a348,_0x105819,_0x5d3c48){const _0x953f7d=[];for(const _0x4757ca of _0x105819['getItems']())_0x4757ca['hasAttribute'](_0x32a348)&&_0x953f7d['push'](_0x5d3c48['createRangeOn'](_0x4757ca));return _0x953f7d;}function _e(_0x11b7b8,_0x17abcb,{showActiveMarker:_0x2d5c39=!0x0}={}){const _0x16dcbe=_0x11b7b8['plugins']['get']('TrackChangesEditing');return(_0x18c311,_0x55a700,_0x542e30)=>{if(!_0x542e30['consumable']['test'](_0x55a700['markerRange'],_0x18c311['name']))return;const _0x5949d3=_0x55a700['markerRange']['getWalker'](),_0x2b7b41=_0x55a700['markerRange']['start'],_0x56fd8d=_0x11b7b8['model']['schema'];let _0x25894e=null,_0x440c72=null,_0x17270a=!0x1,_0x15b7f7=!0x1;for(const _0x40f916 of _0x5949d3){const _0x42c4c5=_0x40f916['item'];_0x17270a=_0x17270a||_0x56fd8d['isContent'](_0x42c4c5);const _0x2f7122=_0x542e30['mapper']['toViewElement'](_0x42c4c5);if(_0x2f7122&&_0x2f7122['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40f916['type']&&(_0x56fd8d['isBlock'](_0x42c4c5)&&!_0x56fd8d['isLimit'](_0x42c4c5)&&(_0x42c4c5['nextSibling']||_0x2b7b41['isAtEnd']?_0x25894e&&_0x25894e['parent']==_0x42c4c5||(_0x25894e=_0x42c4c5,_0x750568(_0x40f916['previousPosition']),_0x15b7f7=!0x0):_0x440c72=_0x440c72||_0x40f916['previousPosition']));}function _0x750568(_0x3aad81){const {authorId:_0x31281f}=_0x16dcbe['_splitMarkerName'](_0x55a700['markerName']),_0x41de54=_0x542e30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x17abcb,'data-author-id':_0x31281f}),_0x10b5a1=_0x542e30['mapper']['toViewPosition'](_0x3aad81);_0x2d5c39&&_0x16dcbe['activeMarkers']['includes'](_0x55a700['markerName'])&&_0x542e30['writer']['addClass']('ck-suggestion-marker--active',_0x41de54),_0x542e30['writer']['insert'](_0x10b5a1,_0x41de54),_0x542e30['mapper']['bindElementToMarker'](_0x41de54,_0x55a700['markerName']);}_0x17270a||_0x15b7f7||!_0x440c72||_0x750568(_0x440c72);};}class z extends _0x3648ee{static get['requires'](){return[_0x19f0ea];}['init'](){const _0x3843cd=this['editor'],_0x1d25fb=_0x3843cd['plugins']['get']('TrackChangesEditing');_0x1d25fb['enableCommand']('delete');const _0xa91d98=_0x3843cd['commands']['get']('deleteForward');_0x1d25fb['enableCommand']('deleteForward',(_0x27f021,_0x4dde83={})=>{const _0x4f76c4=_0x3843cd['model']['createSelection'](_0x3843cd['model']['document']['selection']);_0x4f76c4['isCollapsed']&&_0x3843cd['model']['modifySelection'](_0x4f76c4,{'direction':'forward','unit':_0x4dde83['unit']});const _0xbad34b=_0x4f76c4['getFirstRange'](),_0x419815=_0x18bd53['fromRange'](_0xbad34b);let _0x36abb8;_0x27f021(_0x4dde83),_0x36abb8='$graveyard'==_0x419815['root']['rootName']?_0x3843cd['model']['createRange'](_0xbad34b['start']):_0x3843cd['model']['createRange'](_0x419815['start'],_0x419815['end']),_0x419815['detach'](),_0x3843cd['model']['enqueueChange'](_0xa91d98['buffer']['batch'],_0x5e9f8c=>{_0xa91d98['buffer']['lock'](),_0x5e9f8c['setSelection'](_0x5e9f8c['createRange'](_0x36abb8['end'])),_0xa91d98['buffer']['unlock']();});}),_0x3843cd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3843cd,'merge'),{'priority':'high'}),_0x3843cd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x42f1e3,_0x24a354,_0x37b519)=>{_0x37b519['options']['showSuggestionHighlights']&&_e(_0x3843cd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x42f1e3,_0x24a354,_0x37b519);},{'priority':'high'}),_0x3843cd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5b3e02,_0x3827b7,_0x51563e)=>{const _0xfca607=_0x51563e['mapper']['markerNameToElements'](_0x3827b7['markerName']);if(_0xfca607){for(const _0x375bb3 of _0xfca607)_0x375bb3['is']('uiElement')&&(_0x51563e['mapper']['unbindElementFromMarkerName'](_0x375bb3,_0x3827b7['markerName']),_0x51563e['writer']['remove'](_0x375bb3));}},{'priority':'high'});}}class K extends _0x3648ee{['afterInit'](){const _0x2d27f7=this['editor'];if(!_0x2d27f7['plugins']['has']('ListEditing'))return;const _0x2e70b6=_0x2d27f7['locale'],_0x18701f=_0x2d27f7['plugins']['get']('TrackChangesEditing'),_0x4bdb08=_0x2d27f7['plugins']['has']('TodoListEditing'),_0x3ba7d5=!!_0x2d27f7['config']['get']('list.multiBlock');function _0x4bef44(_0x1648c0){return{'type':'format','content':''+o(_0x2e70b6,'*Set\x20format:*\x20%0',_0x1648c0)};}function _0x382716(_0x38409f){return{'type':'format','content':''+o(_0x2e70b6,'*Remove\x20format:*\x20%0',_0x38409f)};}_0x18701f['enableDefaultAttributesIntegration']('numberedList'),_0x18701f['enableDefaultAttributesIntegration']('bulletedList'),_0x18701f['enableDefaultAttributesIntegration']('customNumberedList'),_0x18701f['enableDefaultAttributesIntegration']('customBulletedList'),_0x18701f['enableDefaultAttributesIntegration']('indentList'),_0x18701f['enableDefaultAttributesIntegration']('outdentList'),_0x18701f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x18701f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x18701f['registerBlockAttribute']('listItemId'),_0x18701f['registerBlockAttribute']('listType'),_0x18701f['registerBlockAttribute']('listIndent'),_0x3ba7d5&&(_0x18701f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x18701f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4bdb08&&(_0x18701f['enableDefaultAttributesIntegration']('todoList'),_0x18701f['enableDefaultAttributesIntegration']('checkTodoList'),_0x18701f['registerBlockAttribute']('todoListChecked'),_0x18701f['descriptionFactory']['registerDescriptionCallback'](_0x60bcd7=>{const {data:_0x494824}=_0x60bcd7;if(_0x494824&&'todoListChecked'==_0x494824['key'])return{'type':'format','content':_0x494824['newValue']?o(_0x2e70b6,'*Check\x20item*'):o(_0x2e70b6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x439a7d=>{if(_0x439a7d['batch']['isUndo'])return!0x1;let _0x13527e=!0x1;const _0x326c93=_0x18701f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44d189=>'todoListChecked'===_0x18701f['_getAttributeKey'](_0x44d189));for(const _0x2ba5b7 of _0x326c93){'todo'!=_0x2ba5b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x18701f['_findSuggestions'](_0x2ba5b7['getFirstRange'](),'attribute')['find'](_0x212d1b=>'listType'===_0x18701f['_getAttributeKey'](_0x212d1b['suggestion']))||(_0x439a7d['removeMarker'](_0x2ba5b7['getFirstMarker']()),_0x13527e=!0x0));}return _0x13527e;})),_0x18701f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2e70b6,'FORMAT_INDENT'));const _0x487c7e={'type':'format','content':''};_0x18701f['descriptionFactory']['registerDescriptionCallback'](_0x33b44c=>{const {data:_0x1ef244}=_0x33b44c;if(!_0x1ef244||'listType'!=_0x1ef244['key'])return;let _0x14739d=_0x33b44c['head'];for(;_0x14739d;){if(_0x14739d['data']&&(('listStyle'==_0x14739d['data']['key']||'listMarkerStyle'==_0x14739d['data']['key'])&&(_0x14739d['data']['newValue']&&'default'!=_0x14739d['data']['newValue']||'default'!=_0x14739d['data']['oldValue']&&!_0x1ef244['newValue'])||!_0x3ba7d5&&_0x14739d['data']['key']==m))return _0x487c7e;_0x14739d=_0x14739d['next'];}if(null==_0x1ef244['newValue'])switch(_0x1ef244['oldValue']){case'bulleted':return _0x382716(o(_0x2e70b6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x382716(o(_0x2e70b6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x382716(o(_0x2e70b6,'ELEMENT_TODO_LIST'));}switch(_0x1ef244['newValue']){case'bulleted':return _0x4bef44(o(_0x2e70b6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4bef44(o(_0x2e70b6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4bef44(o(_0x2e70b6,'ELEMENT_TODO_LIST'));}}),_0x18701f['descriptionFactory']['registerDescriptionCallback'](_0x332b82=>{const {data:_0x5a2926}=_0x332b82;if(_0x5a2926&&'listIndent'==_0x5a2926['key'])return null==_0x5a2926['newValue']||null==_0x5a2926['oldValue']&&0x0==_0x5a2926['newValue']?_0x487c7e:void 0x0;}),_0x18701f['descriptionFactory']['registerDescriptionCallback'](_0x2aa68e=>{if('attribute'!=_0x2aa68e['type'])return;const {data:_0x4c8217}=_0x2aa68e;if(!_0x4c8217||'listItemId'!=_0x4c8217['key'])return;const _0x605eec=Ee(_0x2aa68e);return'newValue'==_0x605eec?{'type':'format','content':o(_0x2e70b6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x605eec?{'type':'format','content':o(_0x2e70b6,'*Split:*\x20list\x20item')}:_0x487c7e;}),_0x2d27f7['model']['document']['registerPostFixer'](_0x25172c=>this['listItemIdFixer'](_0x25172c)),_0x2d27f7['model']['document']['registerPostFixer'](_0x139336=>this['noTrackChangesFixer'](_0x139336)),_0x2d27f7['model']['document']['on']('change:data',(_0x450daa,_0x39ef7f)=>{if(_0x39ef7f['isUndo']||!_0x39ef7f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5b8173){if(_0x5b8173['batch']['isUndo']||!_0x5b8173['batch']['isLocal'])return!0x1;let _0x25d127=!0x1;const _0x42584d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a176c=>_0x2a176c['data']&&'listItemId'==_0x2a176c['data']['key'])['filter'](_0x5a2182=>_0x5a2182['data']['newValue']&&_0x5a2182['data']['oldValue']);for(const _0x5e0534 of _0x42584d)Ee(_0x5e0534)||(_0x5b8173['removeMarker'](_0x5e0534['getFirstMarker']()),_0x25d127=!0x0);return _0x25d127;}['noTrackChangesFixer'](_0x360d93){if(_0x360d93['batch']['isUndo']||!_0x360d93['batch']['isLocal'])return!0x1;const _0x3d7441=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3d7441['trackChangesCommand']['value'])return!0x1;let _0x2e564f=!0x1;const _0x19c0e9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x64d693=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2c2c35=>'attribute'==_0x2c2c35['type'])['filter'](_0x5a7787=>_0x19c0e9['includes'](_0x5a7787['attributeKey']));if(0x0==_0x64d693['length'])return _0x2e564f;for(const _0x56f83b of _0x64d693){const _0xc61deb=_0x3d7441['_findSuggestions'](_0x56f83b['range'],'attribute')['filter'](_0x31fb97=>!_0x31fb97['meta']['isNextTo'])['map'](_0x4c4d22=>_0x4c4d22['suggestion'])['filter'](_0x583c8b=>{const _0x583a42=_0x3d7441['_getAttributeKey'](_0x583c8b);return _0x19c0e9['includes'](_0x583a42);});if(_0xc61deb['length']){for(const _0x43267e of _0xc61deb)_0x360d93['removeMarker'](_0x43267e['getFirstMarker']());_0x2e564f=!0x0;}}return _0x2e564f;}['assureChains'](){const _0x25a3ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e7050=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2c2c90;const _0x40102b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x74404=>{if(_0x74404['data']['oldRange']||!_0x74404['data']['newRange'])return null;if(!_0x74404['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x9a5508}=_0x25a3ff['_splitMarkerName'](_0x74404['name']);if(!_0x25a3ff['hasSuggestion'](_0x9a5508))return null;const _0x4e8222=_0x25a3ff['getSuggestion'](_0x9a5508);return _0x3e7050['includes'](_0x4e8222['data']['key']);})['map'](_0xbca230=>{const {id:_0x2d8333}=_0x25a3ff['_splitMarkerName'](_0xbca230['name']),_0x157764=_0x25a3ff['getSuggestion'](_0x2d8333);return _0x2c2c90=_0x157764['attributes']['groupId'],_0x157764['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x40102b['size'])return;const _0x40fb9b=_0x25a3ff['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c2c03=>'attribute'==_0x5c2c03['type']&&_0x5c2c03['data']&&_0x3e7050['includes'](_0x5c2c03['data']['key'])&&_0x5c2c03['attributes']['groupId']!=_0x2c2c90)['map'](_0xe33936=>({'listItem':_0xe33936['getFirstRange']()['start']['nodeAfter'],'groupId':_0xe33936['attributes']['groupId']})),_0x302cd2=new Set();for(const {groupId:_0x3ab816,listItem:_0x57039d}of _0x40fb9b)_0x40102b['has'](_0x57039d)&&_0x302cd2['add'](_0x3ab816);for(const _0x3801b5 of _0x25a3ff['getSuggestions']())_0x302cd2['has'](_0x3801b5['attributes']['groupId'])&&_0x3801b5['setAttribute']('groupId',_0x2c2c90);}['_supportLegacySuggestions'](){const _0x1df4a0=this['editor'],_0x4ec4e7=_0x1df4a0['locale'],_0x3f920c=_0x1df4a0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3f920c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xa0b57f,_0x4992e6){const _0x393f3c=[];for(let _0x15618c of _0xa0b57f)_0x15618c['start']['nodeAfter']===_0x15618c['end']['parent']&&(_0x15618c=_0x1df4a0['model']['createRange'](_0x1df4a0['model']['createPositionAt'](_0x15618c['start']['nodeAfter'],0x0))),_0x393f3c['push'](_0x15618c);_0x1df4a0['model']['change'](_0x4444a6=>{const _0x222cc8=_0x1df4a0['model']['document']['selection'],_0x40e9d6=Array['from'](_0x222cc8['getRanges']())['map'](_0x4fc676=>_0x18bd53['fromRange'](_0x4fc676));_0x4444a6['setSelection'](_0x393f3c),_0x1df4a0['commands']['get'](_0x4992e6['commandName'])['refresh'](),_0x4992e6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1df4a0['execute'](_0x4992e6['commandName'],..._0x4992e6['commandParams']),_0x4444a6['setSelection'](_0x40e9d6);for(const _0x227ae7 of _0x40e9d6)_0x227ae7['detach']();});}),_0x3f920c['descriptionFactory']['registerElementLabel'](function(_0x4a48c8){const _0x4feea3=!_0x1df4a0['model']['schema']['isObject'](_0x4a48c8),_0x5b98f1=_0x4a48c8['previousSibling'],_0x5819c1=_0x4a48c8['nextSibling'],_0x4f0860=_0x4a48c8['getAttribute']('listItemId'),_0x3f947b=!_0x5b98f1||_0x5b98f1['getAttribute']('listItemId')!==_0x4f0860,_0x36f19b=!_0x5819c1||_0x5819c1['getAttribute']('listItemId')!==_0x4f0860;return _0x4feea3&&Boolean(_0x4f0860)&&_0x3f947b&&_0x36f19b;},_0x56f8e5=>o(_0x4ec4e7,'ELEMENT_LIST_ITEM',_0x56f8e5));}['_registerLegacyDescription'](){const _0x32c903=this['editor'],_0x2d9a72=_0x32c903['locale'];function _0x369b60(_0x56f6aa){const _0x506b1a=_0x32c903['commands']['get']('bulletedList')['value'],_0x4e04c5=_0x32c903['commands']['get']('numberedList')['value'];return'numberedList'===_0x56f6aa?_0x506b1a:_0x4e04c5;}_0x32c903['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x357172){if('formatBlock'!=_0x357172['type'])return;const {data:_0x46b08e}=_0x357172;if(!_0x46b08e)return;let _0x48f980,_0x37e6e5,_0x5d03b6,_0x4961a7;switch(_0x46b08e['commandName']){case'bulletedList':_0x5d03b6=_0x46b08e['commandParams'][0x0]['forceValue'],_0x4961a7=_0x369b60(_0x46b08e['commandName']),_0x48f980=_0x5d03b6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4961a7&&_0x32c903['config']['get']('list.multiBlock')||(_0x48f980='*Change\x20to:*\x20%0'),_0x37e6e5={'type':'format','content':o(_0x2d9a72,_0x48f980,o(_0x2d9a72,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d03b6=_0x46b08e['commandParams'][0x0]['forceValue'],_0x4961a7=_0x369b60(_0x46b08e['commandName']),_0x48f980=_0x5d03b6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4961a7&&_0x32c903['config']['get']('list.multiBlock')||(_0x48f980='*Change\x20to:*\x20%0'),_0x37e6e5={'type':'format','content':o(_0x2d9a72,_0x48f980,o(_0x2d9a72,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x48f980='*Indent:*\x20%0',_0x37e6e5={'type':'format','content':o(_0x2d9a72,_0x48f980,o(_0x2d9a72,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x48f980=function(_0x38f103){const _0x2b0116=_0x38f103['getFirstRange']();let _0x55ec09=_0x2b0116['start']['nodeAfter'];for(;_0x55ec09&&_0x2b0116['containsItem'](_0x55ec09);){if(_0x55ec09['getAttribute']('listIndent')>0x0)return!0x1;_0x55ec09=_0x55ec09['nextSibling'];}return!0x0;}(_0x357172)?o(_0x2d9a72,'*Format:*\x20remove\x20from\x20%0',o(_0x2d9a72,function(_0x53222e){return'ELEMENT_'+_0x53222e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x357172))):o(_0x2d9a72,'*Outdent:*\x20%0',o(_0x2d9a72,'ELEMENT_LIST_ITEM')),_0x37e6e5={'type':'format','content':_0x48f980};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x46b08e['multipleBlocks']&&(_0x48f980='*Merge:*\x20%0',_0x37e6e5={'type':'deletion','content':o(_0x2d9a72,_0x48f980,o(_0x2d9a72,'ELEMENT_LIST_ITEM'))});}return _0x37e6e5;});}}function Ee(_0x3f474c){let _0x54f7d1=_0x3f474c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x54f7d1;){const _0x171fcf=_0x54f7d1['getAttribute']('listItemId');if(!_0x171fcf)return!0x1;if(_0x171fcf==_0x3f474c['data']['newValue'])return'newValue';if(_0x171fcf==_0x3f474c['data']['oldValue'])return'oldValue';_0x54f7d1=_0x54f7d1['previousSibling'];}return!0x1;}class pe extends _0x3648ee{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xac2bf1=this['editor']['config']['get']('list.properties'),_0x487540=this['editor']['plugins']['get']('TrackChangesEditing');_0xac2bf1['styles']&&(_0x487540['enableDefaultAttributesIntegration']('listStyle'),_0x487540['registerBlockAttribute']('listStyle')),_0xac2bf1['reversed']&&(_0x487540['enableDefaultAttributesIntegration']('listReversed'),_0x487540['registerBlockAttribute']('listReversed')),_0xac2bf1['startIndex']&&(_0x487540['enableDefaultAttributesIntegration']('listStart'),_0x487540['registerBlockAttribute']('listStart'));const _0x449267={'type':'format','content':''};_0x487540['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x38e183=this['editor']['locale'];_0x487540['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x38e183,'FORMAT_LIST_REVERSED')),_0x487540['descriptionFactory']['registerDescriptionCallback'](_0xfc8f8f=>{const {data:_0x35bfb4}=_0xfc8f8f;if(_0x35bfb4&&'listReversed'==_0x35bfb4['key'])return null==_0x35bfb4['newValue']||0x0==_0x35bfb4['newValue']&&null==_0x35bfb4['oldValue']?_0x449267:void 0x0;}),_0x487540['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x38e183,'FORMAT_LIST_START')),_0x487540['descriptionFactory']['registerDescriptionCallback'](_0x4a8b60=>{const {data:_0x3e3db0}=_0x4a8b60;if(_0x3e3db0&&'listStart'==_0x3e3db0['key'])return null==_0x3e3db0['newValue']||0x1==_0x3e3db0['newValue']&&null==_0x3e3db0['oldValue']?_0x449267:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x44f905=>{if(_0x44f905['batch']['isUndo'])return!0x1;let _0x7e5e42=!0x1;const _0x1f0bd3=_0x487540['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56b792=>{const _0x397542=_0x487540['_getAttributeKey'](_0x56b792);return'listStart'==_0x397542||'listReversed'==_0x397542;});for(const _0x2985e2 of _0x1f0bd3){const _0x5f528a=_0x2985e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5f528a||'customNumbered'==_0x5f528a)continue;_0x487540['_findSuggestions'](_0x2985e2['getFirstRange'](),'attribute')['find'](_0x7f2df2=>'listType'==_0x487540['_getAttributeKey'](_0x7f2df2['suggestion']))||(_0x44f905['removeMarker'](_0x2985e2['getFirstMarker']()),_0x7e5e42=!0x0);}return _0x7e5e42;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x6b5060){const _0x10ae97=this['editor']['locale'],{data:_0x58bce6}=_0x6b5060,_0x233fb5={'type':'format','content':''};if(!_0x58bce6||'listStyle'!=_0x58bce6['key'])return;if(!_0x58bce6['oldValue'])return'default'==_0x58bce6['newValue']?_0x233fb5:{'type':'format','content':''+o(_0x10ae97,'*Set\x20format:*\x20%0',o(_0x10ae97,this['_getTranslationKeyForListStyle'](_0x58bce6['newValue'])))};if(!_0x58bce6['newValue']){if('default'==_0x58bce6['oldValue'])return _0x233fb5;let _0x309b29=_0x6b5060['head'];for(;_0x309b29;){if(_0x309b29['data']&&'listType'==_0x309b29['data']['key']&&_0x309b29['data']['newValue'])return _0x233fb5;_0x309b29=_0x309b29['next'];}return{'type':'format','content':''+o(_0x10ae97,'*Remove\x20format:*\x20%0',o(_0x10ae97,this['_getTranslationKeyForListStyle'](_0x58bce6['oldValue'])))};}if('default'!=_0x58bce6['newValue'])return{'type':'format','content':''+o(_0x10ae97,'*Set\x20format:*\x20%0',o(_0x10ae97,this['_getTranslationKeyForListStyle'](_0x58bce6['newValue'])))};let _0x3a7a2e=_0x6b5060['head'];for(;_0x3a7a2e;){if(_0x3a7a2e['data']&&'listType'==_0x3a7a2e['data']['key']&&_0x3a7a2e['data']['newValue']&&_0x3a7a2e['data']['oldValue'])return _0x233fb5;_0x3a7a2e=_0x3a7a2e['next'];}return{'type':'format','content':o(_0x10ae97,'*Set\x20format:*\x20%0',o(_0x10ae97,'ELEMENT_'+_0x6b5060['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xe7004e=this['editor'],_0xf1e98b=_0xe7004e['locale'];_0xe7004e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x440d7c=>{if('formatBlock'!=_0x440d7c['type'])return;const {data:_0x2d829b}=_0x440d7c;if(!_0x2d829b)return;let _0x1b0177,_0x10da77;switch(_0x2d829b['commandName']){case'listStyle':_0x1b0177='*Change\x20to:*\x20%0',_0x10da77={'type':'format','content':o(_0xf1e98b,_0x1b0177,o(_0xf1e98b,this['_getTranslationKeyForListStyle'](_0x2d829b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b0177=_0x2d829b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10da77={'type':'format','content':o(_0xf1e98b,_0x1b0177)};break;case'listStart':_0x1b0177='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10da77={'type':'format','content':o(_0xf1e98b,_0x1b0177,_0x2d829b['commandParams'][0x0]['startIndex'])};}return _0x10da77;});}['_getTranslationKeyForListStyle'](_0x9495ce){return'ELEMENT_'+function(_0x203de3){if(ye['includes'](_0x203de3))return'bulleted';if(Se['includes'](_0x203de3))return'numbered';return null;}(_0x9495ce)['toUpperCase']()+'_LIST_'+_0x9495ce['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3648ee{static get['requires'](){return[_0x504c28];}['init'](){const _0x45db21=this['editor'],_0x3c6104=_0x45db21['plugins']['get']('TrackChangesEditing'),_0x2c8a03=_0x45db21['commands']['get']('enter');_0x3c6104['enableCommand']('enter',()=>{_0x45db21['model']['change'](_0x117f17=>{const _0x17a981=_0x45db21['model']['document']['selection'],_0x5495eb=_0x17a981['getFirstPosition'](),_0x32f82a=_0x18bd53['fromRange'](_0x17a981['getFirstRange']());if(_0x2c8a03['enterBlock'](_0x117f17)){const _0x36dbea=_0x45db21['model']['createPositionAt'](_0x5495eb['parent']['nextSibling'],0x0),_0x4122f6=_0x117f17['createRange'](_0x5495eb,_0x36dbea);_0x3c6104['markInsertion'](_0x4122f6);}else _0x117f17['setSelection'](_0x117f17['createRange'](_0x32f82a['end']));_0x32f82a['detach'](),_0x2c8a03['fire']('afterExecute',{'writer':_0x117f17});});}),_0x45db21['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x45db21,'split'),{'priority':'high'}),_0x45db21['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x14dfe7,_0x3796bf,_0x3c8ccf)=>{const _0xde1f18=_0x3c8ccf['mapper']['markerNameToElements'](_0x3796bf['markerName']);if(_0xde1f18){for(const _0x45c6ae of _0xde1f18)_0x45c6ae['hasClass']('ck-suggestion-marker-split')&&(_0x3c8ccf['mapper']['unbindElementFromMarkerName'](_0x45c6ae,_0x3796bf['markerName']),_0x3c8ccf['writer']['remove'](_0x45c6ae));}},{'priority':'high'}),_0x45db21['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1899dc,_0x343047,_0x1e70e3)=>{_0x1e70e3['options']['showSuggestionHighlights']&&_e(_0x45db21,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1899dc,_0x343047,_0x1e70e3);},{'priority':'high'});}}class X extends _0x3648ee{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1ad5bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ad5bb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1ad5bb['enableCommand']('findNext'),_0x1ad5bb['enableCommand']('findPrevious'),_0x1ad5bb['enableCommand']('replace'),_0x1ad5bb['enableCommand']('replaceAll');}['handleFindCommand'](_0x59c3c0,_0x33ea39,_0x5c6ed5={}){const _0x5c3ef1=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x59c3c0(_0x1c09ff=>{let _0x98f08e=('string'==typeof _0x33ea39?_0x5c3ef1['findByTextCallback'](_0x33ea39,_0x5c6ed5):_0x33ea39)(_0x1c09ff);Array['isArray'](_0x98f08e)&&(_0x98f08e={'results':_0x98f08e,'searchText':'string'==typeof _0x33ea39?_0x33ea39:''});const _0xbf88c2=_0x98f08e['results']['filter'](_0x3c8b3b=>!0x1===this['_isInDeletionRange'](_0x3c8b3b,_0x1c09ff['item']));return{..._0x98f08e,'results':_0xbf88c2};},_0x5c6ed5);}['_isInDeletionRange'](_0x1daba9,_0x20fd8a){const _0x2b7f28=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x20fd8a,_0x1daba9['start']),this['editor']['model']['createPositionAt'](_0x20fd8a,_0x1daba9['end']));for(const _0x5c11ae of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2b7f28['getIntersection'](_0x5c11ae['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x3648ee{['afterInit'](){const _0x546b46=this['editor']['locale'],_0x3105f2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x8e8672,commandName:_0x4a52f6}of ro)this['editor']['plugins']['has'](_0x8e8672)&&(_0x3105f2['enableDefaultAttributesIntegration'](_0x4a52f6),_0x3105f2['registerInlineAttribute'](_0x4a52f6));_0x3105f2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x546b46,'FORMAT_FONT_SIZE')),_0x3105f2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x546b46,'FORMAT_FONT_FAMILY')),_0x3105f2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x546b46,'FORMAT_FONT_COLOR')),_0x3105f2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x546b46,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x583711=this['editor'],_0x10b2ff=_0x583711['locale'];_0x583711['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1991a1=>{const _0x490515=_0x10b2ff['t'];if('formatInline'!=_0x1991a1['type'])return;const {data:_0x319fb0}=_0x1991a1;if(null!=_0x319fb0){if('fontSize'==_0x319fb0['commandName']){const _0x562773=_0x319fb0['commandParams'][0x0]['value'];if(_0x562773){const _0x202971=_0x490515(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x56fcaf=>_0x56fcaf['model']==_0x562773)['title'])['toLowerCase']();return{'type':'format','content':o(_0x10b2ff,'*Set\x20font\x20size:*\x20%0',_0x202971)};}return{'type':'format','content':o(_0x10b2ff,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x319fb0['commandName']){const _0x44241c=_0x319fb0['commandParams'][0x0]['value'];return _0x44241c?{'type':'format','content':o(_0x10b2ff,'*Set\x20font\x20family:*\x20%0',_0x44241c)}:{'type':'format','content':o(_0x10b2ff,'*Reset\x20font\x20family*')};}if('fontColor'==_0x319fb0['commandName']){const _0x161625=_0x319fb0['commandParams'][0x0]['value'];if(_0x161625){const _0x4dc0d0=_0x5e1142(this['editor']['config']['get']('fontColor.colors'))['find'](_0x23757a=>_0x23757a['model']==_0x161625);let _0x16808b=_0x161625,_0x88faf0='';return _0x4dc0d0&&(_0x16808b=_0x4dc0d0['label'],_0x88faf0=_0x490515(_0x16808b)['toLowerCase']()),{'type':'format','content':o(_0x10b2ff,'*Set\x20font\x20color:*\x20%0',_0x88faf0)['trim'](),'color':{'value':_0x161625,'title':_0x88faf0||_0x16808b}};}return{'type':'format','content':o(_0x10b2ff,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x319fb0['commandName']){const _0x1e355f=_0x319fb0['commandParams'][0x0]['value'];if(_0x1e355f){const _0x3641e3=_0x5e1142(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3d12be=>_0x3d12be['model']==_0x1e355f);let _0x13a479=_0x1e355f,_0x4ed637='';return _0x3641e3&&(_0x13a479=_0x3641e3['label'],_0x4ed637=_0x490515(_0x13a479)['toLowerCase']()),{'type':'format','content':o(_0x10b2ff,'*Set\x20font\x20background\x20color:*\x20%0',_0x4ed637)['trim'](),'color':{'value':_0x1e355f,'title':_0x4ed637||_0x13a479}};}return{'type':'format','content':o(_0x10b2ff,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3648ee{['afterInit'](){const _0x30da0e=this['editor'],_0x256bdf=_0x30da0e['plugins']['get']('TrackChangesEditing'),_0x46b1e2=_0x30da0e['commands']['get']('copyFormat'),_0x2b624f=_0x30da0e['commands']['get']('pasteFormat');_0x46b1e2&&_0x2b624f&&(_0x256bdf['enableDefaultAttributesIntegration']('pasteFormat'),_0x256bdf['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x50491b=this['editor'],_0x4085c4=_0x50491b['locale'];_0x50491b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dc8ff=>{if('formatBlock'!=_0x2dc8ff['type']&&'formatInline'!=_0x2dc8ff['type'])return;const {data:_0x3702dd}=_0x2dc8ff;if(_0x3702dd&&'pasteFormat'===_0x3702dd['commandName']){const _0x42319a=[],_0x52468a=_0x3702dd['commandParams'][0x0];for(const [_0x1a5799,_0x5f51f2]of Object['entries'](_0x52468a))_0x42319a['push'](so(_0x50491b,_0x1a5799,_0x5f51f2));return _0x42319a['length']?{'type':'format','content':o(_0x4085c4,'*Set\x20format\x20to:*\x20%0',_0x42319a['join'](',\x20'))}:{'type':'format','content':o(_0x4085c4,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3837b3,_0x177e50,_0x20450d){const _0x1800fc=_0x3837b3['locale']['t'],_0x21ac6c=_0x177e50['split'](/(?=[A-Z])/)['join']('\x20'),_0x30187a=_0x1800fc(_0x21ac6c['charAt'](0x0)['toUpperCase']()+_0x21ac6c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x20450d)return _0x30187a;if('fontColor'===_0x177e50||'fontBackgroundColor'===_0x177e50){const _0x58f729=_0x5e1142(_0x3837b3['config']['get']('fontColor.colors'))['find'](_0x12261d=>_0x12261d['model']==_0x20450d);return _0x30187a+'\x20('+(_0x58f729?_0x1800fc(_0x58f729['label'])['toLowerCase']():_0x20450d)+')';}if('fontSize'===_0x177e50&&isNaN(parseFloat(_0x20450d))){const _0x39083f=_0x3837b3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3837b3['config']['get']('fontSize.options'))['find'](_0x7f5148=>_0x7f5148['model']==_0x20450d);return _0x30187a+'\x20('+(_0x39083f?_0x1800fc(_0x39083f['title'])['toLowerCase']():_0x20450d)+')';}return _0x30187a+'\x20('+_0x20450d+')';}class tt extends _0x3648ee{['_headingOptions'];['afterInit'](){const _0x68cb8a=this['editor'];if(!_0x68cb8a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x68cb8a['config']['get']('heading.options');const _0x3e2eb3=_0x68cb8a['locale'],_0x5f1c17=_0x68cb8a['plugins']['get']('TrackChangesEditing');_0x5f1c17['enableDefaultAttributesIntegration']('heading');for(const _0x561d67 of this['_headingOptions'])'paragraph'!=_0x561d67['model']&&_0x5f1c17['descriptionFactory']['registerElementLabel'](_0x561d67['model'],_0x367e2b=>{const _0x2dcf30=this['_getHeadingLevel'](_0x561d67['model']);return null!==_0x2dcf30?_0x4c05f9(_0x367e2b,_0x2dcf30):_0x3188ae(_0x367e2b,_0x561d67['title']);});function _0x4c05f9(_0x4ae3c0,_0x1478e5){return o(_0x3e2eb3,'ELEMENT_HEADING',[_0x4ae3c0,_0x1478e5]);}function _0x3188ae(_0x2e8711,_0x3b1eb7){return o(_0x3e2eb3,'ELEMENT_HEADING_CUSTOM',[_0x2e8711,_0x3b1eb7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36fee1=this['editor'],_0x41bad5=_0x36fee1['locale'];function _0x161c09(_0x3707ce,_0xdd6320){return o(_0x41bad5,'ELEMENT_HEADING_CUSTOM',[_0x3707ce,_0xdd6320]);}_0x36fee1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58a132=>{if('formatBlock'!=_0x58a132['type'])return;const {data:_0x42bbe3}=_0x58a132;if(_0x42bbe3&&'heading'==_0x42bbe3['commandName']){const _0x253a55=_0x42bbe3['commandParams'][0x0]['value'],_0x22d569=this['_getHeadingLevel'](_0x253a55);if(null!==_0x22d569)return{'type':'format','content':o(_0x41bad5,'*Change\x20to:*\x20%0',(_0x4f20db=0x1,_0x279177=_0x22d569,o(_0x41bad5,'ELEMENT_HEADING',[_0x4f20db,_0x279177])))};const _0x410629=this['_headingOptions']['find'](_0x2ea79d=>_0x2ea79d['model']===_0x253a55)['title'];return{'type':'format','content':o(_0x41bad5,'*Change\x20to:*\x20%0',_0x161c09(0x1,_0x410629))};}var _0x4f20db,_0x279177;});}['_getHeadingLevel'](_0x5f2997){const _0x55de39=_0x5f2997['match'](/^heading(\d+)/);if(_0x55de39)return _0x55de39[0x1];const _0x5d7b52=this['_headingOptions']?.['find'](_0x349508=>_0x349508['model']==_0x5f2997);if(_0x5d7b52&&_0x5d7b52['view']){const _0x3f0c9c=_0x5d7b52['view'],_0x4a4173=(_0x3f0c9c['name']??_0x3f0c9c)['match'](/^h(\d+)/);if(_0x4a4173)return _0x4a4173[0x1];}return null;}}class et extends _0x3648ee{['afterInit'](){const _0x34d04a=this['editor'];if(!_0x34d04a['plugins']['has']('HighlightEditing'))return;const _0x243ea1=_0x34d04a['plugins']['get']('TrackChangesEditing'),_0x7ab909=_0x34d04a['locale'];_0x243ea1['enableDefaultAttributesIntegration']('highlight'),_0x243ea1['registerInlineAttribute']('highlight'),_0x243ea1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x7ab909,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11f2b7=this['editor'],_0x4ea249=_0x11f2b7['locale'];_0x11f2b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aa3f5=>{if('formatInline'!=_0x2aa3f5['type'])return;const {data:_0x4f2cd4}=_0x2aa3f5;if(_0x4f2cd4&&'highlight'==_0x4f2cd4['commandName']){const _0x333bc5=_0x4ea249['t'],_0x551bb2=_0x4f2cd4['commandParams'][0x0]['value'];if(_0x551bb2){const _0x4a4e73=_0x11f2b7['config']['get']('highlight.options')['find'](_0x911c5=>_0x911c5['model']==_0x551bb2),_0x419aeb=_0x333bc5(_0x4a4e73['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ea249,'*Set\x20highlight:*\x20%0',_0x419aeb),'color':{'value':_0x4a4e73['color'],'title':_0x4a4e73['title']}};}return{'type':'format','content':o(_0x4ea249,'*Remove\x20highlight*',o(_0x4ea249,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3648ee{['afterInit'](){const _0x4ca985=this['editor'];if(!_0x4ca985['plugins']['has']('HorizontalLineEditing'))return;_0x4ca985['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x782a75=_0x4ca985['plugins']['get']('TrackChangesEditing'),_0x5ac8c8=_0x4ca985['locale'];_0x782a75['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3aad0a=>o(_0x5ac8c8,'ELEMENT_HORIZONTAL_LINE',_0x3aad0a)),_0x4ca985['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x303f4c,{writer:_0x4f8512,options:_0xe6a0ac})=>{if(!_0xe6a0ac['showSuggestionHighlights'])return null;const _0x40425c=_0x4f8512['createContainerElement']('div'),_0x72c55a=_0x4f8512['createEmptyElement']('hr');return _0x4f8512['addClass']('ck-horizontal-line',_0x40425c),_0x4f8512['insert'](_0x4f8512['createPositionAt'](_0x40425c,0x0),_0x72c55a),_0x40425c;},'converterPriority':'high'});}}class st extends _0x3648ee{['afterInit'](){const _0x2aad80=this['editor'];if(!_0x2aad80['plugins']['has']('HtmlEmbed'))return;const _0x1d4ff6=_0x2aad80['plugins']['get']('TrackChangesEditing'),_0x1198e2=_0x2aad80['locale'];_0x1d4ff6['descriptionFactory']['registerElementLabel']('rawHtml',_0x2e586a=>o(_0x1198e2,'ELEMENT_HTML_EMBED',_0x2e586a)),_0x1d4ff6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1d4ff6['registerBlockAttribute']('value'),_0x1d4ff6['descriptionFactory']['registerDescriptionCallback'](_0x4b233d=>{if('attribute'!=_0x4b233d['type'])return;const {data:_0x52bbeb}=_0x4b233d;if(_0x52bbeb&&'value'==_0x52bbeb['key']&&_0x4b233d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1832a7=o(_0x1198e2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1198e2,'*Change\x20%0\x20content*',_0x1832a7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bca30=this['editor'],_0x14c23a=_0x1bca30['locale'];_0x1bca30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d0340=>{if('formatBlock'!=_0x4d0340['type'])return;const {data:_0x4c801f}=_0x4d0340;if(_0x4c801f&&'htmlEmbed'==_0x4c801f['commandName']){const _0x48ac82=o(_0x14c23a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x14c23a,'*Change\x20%0\x20content*',_0x48ac82)};}});}}class nt extends _0x3648ee{['afterInit'](){const _0x15141a=this['editor'];if(!_0x15141a['plugins']['has']('ImageEditing'))return;const _0x220fb8=_0x15141a['plugins']['get']('TrackChangesEditing'),_0x1fc977=_0x15141a['plugins']['get']('ImageUtils'),_0x3d7fa1=_0x15141a['locale'];_0x220fb8['enableCommand']('insertImage'),_0x220fb8['descriptionFactory']['registerElementLabel']('imageBlock',_0x19ab88=>o(_0x3d7fa1,'ELEMENT_IMAGE',_0x19ab88)),_0x220fb8['descriptionFactory']['registerElementLabel']('imageInline',_0xafe9dc=>o(_0x3d7fa1,'ELEMENT_INLINE_IMAGE',_0xafe9dc)),_0x220fb8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3d7fa1,'ELEMENT_CAPTION')),_0x15141a['plugins']['has']('ImageUploadEditing')&&_0x220fb8['enableCommand']('uploadImage'),_0x15141a['plugins']['has']('ImageBlockEditing')&&_0x15141a['plugins']['has']('ImageInlineEditing')&&(_0x220fb8['enableCommand']('imageTypeInline',(_0x1d9b9c,_0x84ec1)=>{const _0x160e2d=_0x1fc977['getClosestSelectedImageElement'](_0x15141a['model']['document']['selection']);_0x15141a['model']['change'](()=>{_0x220fb8['markBlockFormat'](_0x160e2d,{'commandName':'imageTypeInline','commandParams':[_0x84ec1]},[],'convertBlockImageToInline');});}),_0x220fb8['enableCommand']('imageTypeBlock',(_0x1c0f75,_0x4d266d)=>{_0x15141a['model']['change'](_0xe760d8=>{let _0x4217d0=_0x1fc977['getClosestSelectedImageElement'](_0x15141a['model']['document']['selection']),_0x338385=_0xe760d8['createRangeOn'](_0x4217d0);const _0x4326b9=_0x344674['fromPosition'](_0x338385['start'],'toPrevious'),_0x1ab97f=_0x344674['fromPosition'](_0x338385['end'],'toNext');_0x220fb8['forceDefaultExecution'](()=>_0x1c0f75(_0x4d266d)),_0x4217d0=_0x1fc977['getClosestSelectedImageElement'](_0x15141a['model']['document']['selection']),_0x338385=_0xe760d8['createRangeOn'](_0x4217d0);const _0x2d1431=_0xe760d8['createRange'](_0x4326b9,_0x1ab97f);_0x4326b9['detach'](),_0x1ab97f['detach'](),_0x220fb8['markBlockFormat'](_0x4217d0,{'commandName':'imageTypeInline','commandParams':[_0x4d266d]},[],'convertInlineImageToBlock'),_0x2d1431['start']['isBefore'](_0x338385['start'])&&_0x220fb8['markInsertion'](_0xe760d8['createRange'](_0x2d1431['start'],_0x338385['start']),'convertInlineImageToBlock'),_0x338385['end']['isBefore'](_0x2d1431['end'])&&_0x220fb8['markInsertion'](_0xe760d8['createRange'](_0x338385['end'],_0x2d1431['end']),'convertInlineImageToBlock');});}),_0x220fb8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x220fb8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x220fb8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x220fb8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x220fb8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x220fb8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d0abe])=>{const _0x46be5b=_0x220fb8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1af91c=_0x1d0abe['start'],_0x2daf1c=_0x1d0abe['end'];const _0x305c9b=_0x15141a['model']['schema']['getNearestSelectionRange'](_0x1af91c,'backward'),_0x4ca2cc=_0x15141a['model']['schema']['getNearestSelectionRange'](_0x2daf1c,'forward');_0x305c9b['isCollapsed']&&(_0x1af91c=_0x305c9b['start']),_0x4ca2cc['isCollapsed']&&(_0x2daf1c=_0x4ca2cc['end']),_0x46be5b([_0x15141a['model']['createRange'](_0x1af91c,_0x2daf1c)]);}),_0x220fb8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4f7882),_0x220fb8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4f7882)),_0x15141a['plugins']['has']('ImageCaptionEditing')&&(_0x220fb8['enableCommand']('toggleImageCaption',(_0x53986f,_0x520e33)=>{const _0x563b86=_0x15141a['plugins']['get']('ImageCaptionUtils');let _0x1e0cd1=_0x1fc977['getClosestSelectedImageElement'](_0x15141a['model']['document']['selection']),_0x1f8911=_0x563b86['getCaptionFromImageModelElement'](_0x1e0cd1);_0x15141a['model']['change'](()=>{if(_0x1f8911)return void _0x220fb8['markDeletion'](_0x15141a['model']['createRangeOn'](_0x1f8911));const _0x2053b7=_0x1fc977['isBlockImage'](_0x1e0cd1);_0x53986f(_0x520e33),_0x1e0cd1=_0x1fc977['getClosestSelectedImageElement'](_0x15141a['model']['document']['selection']),_0x1f8911=_0x563b86['getCaptionFromImageModelElement'](_0x1e0cd1),_0x220fb8['markInsertion'](_0x15141a['model']['createRangeOn'](_0x1f8911),_0x2053b7?null:'imageCaption');});}),_0x220fb8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4f7882));const _0x3c741d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5acf85(_0x56e988,_0x5ab940){const _0x3a2d56=_0x3c741d['findIndex'](({type:_0x5324e3,subType:_0x2a5dda})=>_0x56e988['type']==_0x5324e3&&_0x56e988['subType']==_0x2a5dda),_0x591f60=_0x3c741d['findIndex'](({type:_0x1355de,subType:_0x40e36e})=>_0x5ab940['type']==_0x1355de&&_0x5ab940['subType']==_0x40e36e);if(_0x3a2d56<0x0||_0x591f60<0x0)return!0x1;const _0x540f7e=_0x56e988['getFirstRange'](),_0x47ec84=_0x5ab940['getFirstRange']();if((0x0==_0x3a2d56||0x1==_0x3a2d56)&&0x2==_0x591f60&&_0x540f7e['isIntersecting'](_0x47ec84))return!0x0;if(0x2==_0x3a2d56&&0x3==_0x591f60){const _0x4dabd2=_0x220fb8['_findSuggestions'](_0x540f7e,'insertion')['filter'](({suggestion:_0x10f1fe,meta:_0x137a03})=>_0x137a03['isOwn']&&'convertInlineImageToBlock'==_0x10f1fe['subType']);if(_0x4dabd2['length']>0x1&&_0x47ec84['end']['isEqual'](_0x540f7e['start']))return!0x0;if(0x1==_0x4dabd2['length']&&(_0x540f7e['start']['isEqual'](_0x47ec84['end'])||_0x540f7e['end']['isEqual'](_0x47ec84['start'])))return!0x0;}if(0x3==_0x3a2d56&&0x3==_0x591f60&&_0x540f7e['start']['isBefore'](_0x47ec84['start'])){const _0x373bd4=_0x540f7e['end']['nodeAfter'],_0x594875=_0x47ec84['start']['nodeBefore'];return _0x1fc977['isBlockImage'](_0x373bd4)&&_0x373bd4===_0x594875;}return!0x1;}function _0x4f7882(_0x1b55bc,_0x193c0d){return _0x5acf85(_0x1b55bc,_0x193c0d)?[_0x1b55bc,_0x193c0d]:_0x5acf85(_0x193c0d,_0x1b55bc)?[_0x193c0d,_0x1b55bc]:null;}_0x15141a['plugins']['has']('ImageResize')&&(_0x220fb8['enableDefaultAttributesIntegration']('resizeImage'),_0x220fb8['registerBlockAttribute']('resizedWidth'),_0x220fb8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3d7fa1,'FORMAT_IMAGE_SIZE'))),_0x15141a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x220fb8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x220fb8['registerBlockAttribute']('alt')),_0x220fb8['descriptionFactory']['registerDescriptionCallback'](_0x197d56=>{if(!!_0x3c741d['find'](({type:_0x1dde6d,subType:_0x534427})=>_0x197d56['type']==_0x1dde6d&&_0x197d56['subType']==_0x534427))return _0x197d56['previous']?{}:void 0x0;}),_0x220fb8['descriptionFactory']['registerDescriptionCallback'](_0x125590=>{if('insertion'==_0x125590['type']||'deletion'==_0x125590['type']){const _0x5ec88c=_0x125590['getContainedElement']();if(_0x5ec88c&&_0x5ec88c['is']('element','caption'))return{'type':'insertion'==_0x125590['type']?'addObject':'removeObject','element':_0x5ec88c,'quantity':0x1};}}),_0x220fb8['descriptionFactory']['registerDescriptionCallback'](_0x3dea75=>'formatBlock'==_0x3dea75['type']&&'convertInlineImageToBlock'==_0x3dea75['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3dea75['type']&&'convertBlockImageToInline'==_0x3dea75['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x220fb8['descriptionFactory']['registerDescriptionCallback'](_0x3e9b2f=>{if('attribute'!=_0x3e9b2f['type'])return;const {data:_0x50b424}=_0x3e9b2f;if(!_0x50b424||'alt'!=_0x50b424['key'])return;const _0x2861f8=_0x50b424['newValue'];return _0x2861f8?{'type':'format','content':o(_0x3d7fa1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2861f8+'\x22')}:{'type':'format','content':o(_0x3d7fa1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9d98=this['editor'],_0x407db9=_0x4d9d98['locale'];_0x4d9d98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25fa6e=>{if('formatBlock'!=_0x25fa6e['type']&&'formatInline'!=_0x25fa6e['type'])return;const {data:_0x194d2c}=_0x25fa6e;if(_0x194d2c){if('imageTextAlternative'==_0x194d2c['commandName']){const _0xd6c65d=_0x194d2c['commandParams'][0x0]['newValue'];return _0xd6c65d?{'type':'format','content':o(_0x407db9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd6c65d+'\x22')}:{'type':'format','content':o(_0x407db9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x194d2c['commandName']){const _0x1ee841=_0x194d2c['commandParams'][0x0]['width'];return _0x1ee841?{'type':'format','content':o(_0x407db9,'*Set\x20image\x20width:*\x20%0',_0x1ee841)}:{'type':'format','content':o(_0x407db9,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3648ee{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x433426=this['editor']['locale'],_0x27caa6=this['editor']['plugins']['get']('TrackChangesEditing');_0x27caa6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x27caa6['registerBlockAttribute']('src'),_0x27caa6['descriptionFactory']['registerDescriptionCallback'](_0x4be204=>{if('attribute'!=_0x4be204['type'])return;const {data:_0x596117}=_0x4be204;return _0x596117&&'src'==_0x596117['key']?_0x596117['newValue']&&_0x596117['oldValue']?{'type':'format','content':o(_0x433426,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x24d3b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x24d3b1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x24d3b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24d3b1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x24d3b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x296124=this['editor'],_0x1086e1=_0x296124['locale'];_0x296124['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x501193=>{if('formatBlock'!=_0x501193['type']&&'formatInline'!=_0x501193['type'])return;const {data:_0x51688f}=_0x501193;if(!_0x51688f||'replaceImageSource'!=_0x51688f['commandName'])return;return{'type':'format','content':o(_0x1086e1,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3648ee{['afterInit'](){const _0x46da95=this['editor'];if(!_0x46da95['plugins']['has']('ImageStyleEditing'))return;const _0x4cb46f=_0x46da95['plugins']['get']('TrackChangesEditing'),_0x19a54c=_0x46da95['plugins']['get']('ImageUtils'),_0x58b48e={};_0x4cb46f['enableCommand']('imageStyle',(_0x1fbd7a,_0x2ee62b)=>{const _0x2476b5=_0x46da95['plugins']['get']('Users')['me'],_0x51587f=_0x46da95['commands']['get']('imageStyle');let _0x5ef79e=_0x19a54c['getClosestSelectedImageElement'](_0x46da95['model']['document']['selection']),_0x1e40a6=_0x46da95['model']['createRangeOn'](_0x5ef79e),_0x2e340b=_0x51587f['value'];if(_0x2e340b==_0x2ee62b['value'])return;const _0x242241={'commandName':'imageStyle','commandParams':[_0x2ee62b],'formatGroupId':_0x4fe6fa()};_0x46da95['model']['change'](()=>{if(_0x4cb46f['getSuggestions']()['filter'](_0x52ef91=>_0x52ef91['isInContent']&&_0x2476b5==_0x52ef91['author']&&('formatBlock'==_0x52ef91['type']||'formatInline'==_0x52ef91['type'])&&('imageStylePreApply'==_0x52ef91['subType']||'imageStylePostApply'==_0x52ef91['subType'])&&_0x52ef91['getFirstRange']()['isEqual'](_0x1e40a6))['forEach'](_0x2651b9=>_0x4cb46f['discardSuggestion'](_0x2651b9['head'])),_0x5ef79e=_0x19a54c['getClosestSelectedImageElement'](_0x46da95['model']['document']['selection']),_0x1e40a6=_0x46da95['model']['createRangeOn'](_0x5ef79e),_0x51587f['refresh'](),_0x46da95['commands']['get']('imageTypeInline')['refresh'](),_0x46da95['commands']['get']('imageTypeBlock')['refresh'](),_0x2e340b=_0x51587f['value'],_0x2e340b!=_0x2ee62b['value'])return _0x19a54c['isInlineImage'](_0x5ef79e)&&_0x51587f['shouldConvertImageType'](_0x2ee62b['value'],_0x5ef79e)?(_0x1fbd7a({..._0x2ee62b,'setImageSizes':!0x1}),_0x5ef79e=_0x19a54c['getClosestSelectedImageElement'](_0x46da95['model']['document']['selection']),void _0x4cb46f['markBlockFormat'](_0x5ef79e,{..._0x242241,'commandReversedParams':[{'value':_0x2e340b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x19a54c['isBlockImage'](_0x5ef79e)?_0x4cb46f['markBlockFormat'](_0x5ef79e,_0x242241,[],'imageStylePostApply'):_0x4cb46f['markInlineFormat'](_0x1e40a6,_0x242241,'imageStylePostApply'));});});for(const _0x4166b7 of _0x46da95['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x58b48e[_0x4166b7['name']]=_0x4166b7['title']['toLowerCase']();_0x4cb46f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4cb46f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4cb46f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4cb46f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2c52ff])=>{_0x19a54c['setImageNaturalSizeAttributes'](_0x2c52ff['getContainedElement']());}),_0x4cb46f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x169f55,_0x4c25c8)=>{_0x4cb46f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x169f55,{'commandName':_0x4c25c8['commandName'],'commandParams':_0x4c25c8['commandReversedParams']});}),_0x4cb46f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1ea4a7,_0x3b60ca){if(_0x4c971b(_0x1ea4a7,_0x3b60ca))return[_0x1ea4a7,_0x3b60ca];if(_0x4c971b(_0x3b60ca,_0x1ea4a7))return[_0x3b60ca,_0x1ea4a7];return null;});const _0x3100a2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c971b(_0x7342d7,_0x532de6){const _0x12374e=_0x3100a2['findIndex'](({type:_0x3db5ca,subType:_0x3c456f})=>_0x7342d7['type']==_0x3db5ca&&_0x7342d7['subType']==_0x3c456f),_0x455125=_0x3100a2['findIndex'](({type:_0x1f00d4,subType:_0x4c9763})=>_0x532de6['type']==_0x1f00d4&&_0x532de6['subType']==_0x4c9763);if(_0x12374e<0x0||_0x455125<0x0)return!0x1;const _0x30c686=_0x7342d7['getFirstRange'](),_0x191d6c=_0x532de6['getFirstRange']();if((0x0==_0x12374e||0x1==_0x12374e)&&0x2==_0x455125&&_0x30c686['isIntersecting'](_0x191d6c))return!0x0;if(0x2==_0x12374e&&0x3==_0x455125){const _0x505ff5=_0x4cb46f['_findSuggestions'](_0x30c686,'insertion')['filter'](({suggestion:_0x3ca0b9,meta:_0x25d208})=>_0x25d208['isOwn']&&'convertInlineImageToBlock'==_0x3ca0b9['subType']);if(_0x505ff5['length']>0x1&&_0x191d6c['end']['isEqual'](_0x30c686['start']))return!0x0;if(0x1==_0x505ff5['length']&&(_0x30c686['start']['isEqual'](_0x191d6c['end'])||_0x30c686['end']['isEqual'](_0x191d6c['start'])))return!0x0;}if(0x3==_0x12374e&&0x3==_0x455125&&_0x30c686['start']['isBefore'](_0x191d6c['start'])){const _0x4ea178=_0x30c686['end']['nodeAfter'],_0x317f81=_0x191d6c['start']['nodeBefore'];return _0x19a54c['isBlockImage'](_0x4ea178)&&_0x4ea178===_0x317f81;}return!0x1;}_0x46da95['model']['document']['registerPostFixer'](()=>{let _0x1a977c=!0x1;const _0x53f067=Array['from'](_0x46da95['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10aadd,data:_0x6248e8}of _0x53f067){const {group:_0x55c33d,type:_0x2e879f,subType:_0xf0dbe,id:_0x110df5}=_0x4cb46f['_splitMarkerName'](_0x10aadd);if('suggestion'==_0x55c33d&&_0x4cb46f['hasSuggestion'](_0x110df5)){if('formatBlock'==_0x2e879f&&('imageStylePreApply'==_0xf0dbe||'imageStylePostApply'==_0xf0dbe)){const _0x22bbe7=_0x4cb46f['getSuggestion'](_0x110df5);if(_0x6248e8['newRange']){const _0x40eb75=_0x22bbe7['getFirstRange']()['getContainedElement']();if(_0x19a54c['isBlockImage'](_0x40eb75))continue;_0x4cb46f['discardSuggestion'](_0x22bbe7),_0x1a977c=!0x0;}}if('insertion'==_0x2e879f&&'imageCaption'==_0xf0dbe&&!_0x6248e8['newRange']){const _0xdf0898=_0x4cb46f['getSuggestion'](_0x110df5);_0xdf0898['next']&&_0xdf0898['next']['isInContent']&&(_0x4cb46f['discardSuggestion'](_0xdf0898['next']),_0x1a977c=!0x0);}}}return _0x1a977c;}),this['_registerLegacyDescription'](_0x58b48e);}['_registerLegacyDescription'](_0x51a611){const _0x19681c=this['editor'],_0x297872=_0x19681c['locale'];_0x19681c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357fd6=>{if('formatBlock'!=_0x357fd6['type']&&'formatInline'!=_0x357fd6['type'])return;const {data:_0x50d574}=_0x357fd6;if(!_0x50d574||'imageStyle'!=_0x50d574['commandName'])return;const _0x75781d=_0x50d574['commandParams'][0x0]['value'];return _0x410132('side'===_0x75781d?o(_0x297872,'FORMAT_SIDE_IMAGE'):_0x51a611[_0x75781d]||_0x75781d);function _0x410132(_0x5c2491){return{'type':'format','content':o(_0x297872,'*Format:*\x20%0',_0x5c2491)};}});}}class at extends _0x3648ee{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x44bbd1){super(_0x44bbd1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x51d1f3=this['editor'],_0xcd28d7=_0x51d1f3['commands']['get']('importWord'),_0x3456a2=_0x51d1f3['commands']['get']('trackChanges');_0xcd28d7&&(_0xcd28d7['on']('execute',(_0x1002f2,[,_0x3f13f5])=>{this['_trackChangesValueDuringImport']=_0x3456a2['value'],_0x3f13f5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xcd28d7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xcd28d7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3456a2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x51d1f3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e67fd,_0x618bd1){const {suggestions:_0x5d26ee}=_0x618bd1,_0x42b4fe=this['editor']['commands']['get']('trackChanges'),_0x25cd62=_0x42b4fe['value'];this['_trackChangesValueDuringImport']!==_0x25cd62&&(_0x42b4fe['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d26ee&&_0x5d26ee['forEach'](({id:_0xd1e8ae,type:_0x4d0beb,author:_0x531186,created_at:_0x50b117})=>{const _0x3e2c40={'id':_0xd1e8ae,'type':_0x4d0beb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x531186,'createdAt':_0x50b117?new Date(_0x50b117):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e2c40);});}}class ct extends _0x3648ee{['afterInit'](){const _0x25d820=this['editor'],_0xb3fc51=_0x25d820['plugins']['get']('TrackChangesEditing');if(_0x25d820['plugins']['has']('IndentEditing')&&(_0xb3fc51['enableCommand']('indent'),_0xb3fc51['enableCommand']('outdent')),_0x25d820['plugins']['has']('IndentBlock')){for(const _0x398de5 of['indentBlock','outdentBlock'])_0xb3fc51['enableDefaultAttributesIntegration'](_0x398de5);}const _0x2b1167=_0x25d820['locale'];_0xb3fc51['registerBlockAttribute']('blockIndent'),_0xb3fc51['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2b1167,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x390a81=this['editor'],_0x34505f=_0x390a81['locale'],_0x56091e=_0x390a81['plugins']['get']('TrackChangesEditing');_0x56091e['descriptionFactory']['registerDescriptionCallback'](_0x83d711=>{if('formatBlock'!=_0x83d711['type'])return;const {data:_0x30c771}=_0x83d711;if(!_0x30c771)return;if('indentBlock'!=_0x30c771['commandName']&&'outdentBlock'!=_0x30c771['commandName'])return;const _0x4104bb=_0x83d711['getItems']()[0x0],_0x1132bb=_0x56091e['descriptionFactory']['getItemLabel'](_0x4104bb);return'indentBlock'==_0x30c771['commandName']?{'type':'format','content':o(_0x34505f,'*Indent:*\x20%0',_0x1132bb)}:'outdentBlock'==_0x30c771['commandName']?{'type':'format','content':o(_0x34505f,'*Outdent:*\x20%0',_0x1132bb)}:void 0x0;});}}class ut extends _0x3648ee{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3648ee{['afterInit'](){const _0x1a6d8b=this['editor'];if(!_0x1a6d8b['plugins']['has']('LinkEditing'))return;const _0x3eda28=_0x1a6d8b['plugins']['get']('TrackChangesEditing'),_0x1d5e44=_0x1a6d8b['commands']['get']('link');_0x3eda28['enableDefaultAttributesIntegration']('link'),_0x3eda28['enableDefaultAttributesIntegration']('unlink'),_0x3eda28['registerInlineAttribute']('linkHref');for(const _0x2d0461 of _0x1d5e44['manualDecorators'])_0x3eda28['registerInlineAttribute'](_0x2d0461['id']),_0x3eda28['descriptionFactory']['registerAttributeLabel'](_0x2d0461['id'],'link\x20('+_0x2d0461['label']['toLowerCase']()+')');_0x3eda28['descriptionFactory']['registerDescriptionCallback'](_0x4d7266=>{if('attribute'!=_0x4d7266['type'])return;const {data:_0x52af7f}=_0x4d7266;if(!_0x52af7f||'linkHref'!=_0x52af7f['key'])return;const _0x331f26=_0x52af7f['newValue'],_0x527b43=_0x1a6d8b['locale'];return{'type':'format','content':null==_0x331f26?o(_0x527b43,'*Remove\x20link*'):o(_0x527b43,'*Set\x20link:*\x20%0','\x22'+_0x331f26+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d004b=this['editor'],_0x135497=_0x2d004b['locale'];_0x2d004b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dfb88=>{if('formatInline'!=_0x2dfb88['type'])return;const {data:_0xd2444f}=_0x2dfb88;if(_0xd2444f){if('link'==_0xd2444f['commandName']){const _0x591afe=_0xd2444f['commandParams'][0x0];return{'type':'format','content':o(_0x135497,'*Set\x20link:*\x20%0','\x22'+_0x591afe+'\x22')};}return'unlink'==_0xd2444f['commandName']?{'type':'format','content':o(_0x135497,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3648ee{['afterInit'](){const _0x85c27a=this['editor'],_0x220a0f=_0x85c27a['locale'];if(!_0x85c27a['plugins']['has']('LegacyListEditing'))return;const _0x33dceb=_0x85c27a['plugins']['get']('TrackChangesEditing'),_0x3c4079=_0x85c27a['plugins']['has']('LegacyTodoListEditing');function _0x59f636(_0x49af89){return()=>{const _0x7873e9=_0x85c27a['model']['document']['selection'],_0x5e9053=_0x85c27a['commands']['get'](_0x49af89);if(_0x5e9053['value'])return void _0x85c27a['execute']('paragraph',{});const _0x3368cc=_0x49af89['slice'](0x0,-0x4),_0x4c58d7=function(_0x18d1ee,_0x1db63a,_0x32a94c){let _0xd266cf=Array['from'](_0x18d1ee)['filter'](_0x1919a3=>function(_0xc2aa6e,_0xaa266c){return _0xaa266c['checkChild'](_0xc2aa6e['parent'],'listItem')&&!_0xaa266c['isObject'](_0xc2aa6e);}(_0x1919a3,_0x32a94c));_0xd266cf=_0xd266cf['filter'](_0xd0c7fc=>!_0xd0c7fc['is']('element','listItem')||_0xd0c7fc['getAttribute']('listType')!=_0x1db63a);const _0x3d64a3=new Set();for(const _0x55a085 of _0xd266cf)_0x55a085['is']('element','listItem')?_0x3d64a3['add'](fe(_0x55a085)):_0x3d64a3['add'](_0x55a085);return Array['from'](_0x3d64a3);}(_0x7873e9['getSelectedBlocks'](),_0x3368cc,_0x85c27a['model']['schema']);_0x85c27a['model']['change'](()=>{for(const _0x3a63ec of _0x4c58d7)_0x33dceb['markBlockFormat'](_0x3a63ec,{'commandName':_0x49af89,'commandParams':[{'forceValue':!_0x5e9053['value']}],'formatGroupId':'blockName'},ue(_0x3a63ec));});};}function _0x256d11(_0x10d262){return()=>{const _0x1c9018=function(_0x517304){let _0x57dc2e=Array['from'](_0x517304);const _0x4d3255=_0x57dc2e['findIndex'](_0xffb43b=>'listItem'!=_0xffb43b['name']);return _0x4d3255>-0x1&&(_0x57dc2e=_0x57dc2e['slice'](0x0,_0x4d3255)),_0x57dc2e;}(_0x85c27a['model']['document']['selection']['getSelectedBlocks']()),_0x4c9fe9=_0x85c27a['model']['createRange'](_0x85c27a['model']['createPositionAt'](_0x1c9018[0x0],'before'),_0x85c27a['model']['createPositionAt'](_0x1c9018[_0x1c9018['length']-0x1],'end'));_0x85c27a['model']['change'](()=>{_0x33dceb['markBlockFormat'](_0x4c9fe9,{'commandName':_0x10d262,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3862db){const _0x34eb37=new Set();for(const _0x197863 of _0x3862db){let _0x14591b=_0x197863['nextSibling'];for(;_0x14591b&&_0x14591b['getAttribute']('listIndent')>_0x197863['getAttribute']('listIndent');)_0x34eb37['add'](_0x14591b),_0x14591b=_0x14591b['nextSibling'];}return Array['from'](_0x34eb37);}(_0x1c9018));});};}_0x33dceb['enableCommand']('numberedList',_0x59f636('numberedList')),_0x33dceb['enableCommand']('bulletedList',_0x59f636('bulletedList')),_0x3c4079&&_0x33dceb['enableCommand']('todoList',_0x59f636('todoList')),_0x33dceb['enableCommand']('indentList',_0x256d11('indentList')),_0x33dceb['enableCommand']('outdentList',_0x256d11('outdentList')),_0x3c4079&&_0x33dceb['enableCommand']('checkTodoList',()=>{const _0x268660=_0x85c27a['commands']['get']('checkTodoList'),_0x1f4447=Array['from'](_0x268660['_selectedElements']);_0x1f4447['filter'](_0x1bce8c=>_0x1bce8c['getAttribute']('todoListChecked')!=_0x268660['value']),_0x85c27a['model']['change'](()=>{for(const _0x683cad of _0x1f4447)_0x33dceb['markBlockFormat'](_0x683cad,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x268660['value']}]});});}),_0x33dceb['descriptionFactory']['registerElementLabel']('listItem',_0xd99c59=>o(_0x220a0f,'ELEMENT_LIST_ITEM',_0xd99c59)),_0x33dceb['descriptionFactory']['registerDescriptionCallback'](_0xffd636=>{if('formatBlock'!=_0xffd636['type']&&'formatInline'!=_0xffd636['type'])return;const {data:_0x9d6729}=_0xffd636;if(_0x9d6729){if('numberedList'==_0x9d6729['commandName']||'bulletedList'==_0x9d6729['commandName']||'todoList'==_0x9d6729['commandName'])switch(_0x9d6729['commandName']['replace']('List','')){case'bulleted':return _0x488f3d(o(_0x220a0f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x488f3d(o(_0x220a0f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x488f3d(o(_0x220a0f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x9d6729['commandName'])return{'type':'format','content':o(_0x220a0f,'*Indent:*\x20%0',o(_0x220a0f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x9d6729['commandName'])return{'type':'format','content':o(_0x220a0f,'*Outdent:*\x20%0',o(_0x220a0f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x9d6729['commandName'])return _0x9d6729['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x220a0f,'*Check\x20item*')}:{'type':'format','content':o(_0x220a0f,'*Uncheck\x20item*')};}function _0x488f3d(_0x43f29a){return{'type':'format','content':o(_0x220a0f,'*Change\x20to:*\x20%0',_0x43f29a)};}});}}function fe(_0x3d4495){const _0x3da8ac=_0x3d4495['getAttribute']('listIndent');if(0x0==_0x3da8ac)return _0x3d4495;let _0x1d5426=_0x3d4495;for(;_0x3d4495['previousSibling']&&_0x3d4495['previousSibling']['is']('element','listItem');){const _0x54b41d=_0x3d4495['previousSibling']['getAttribute']('listIndent');if(_0x54b41d==_0x3da8ac)_0x1d5426=_0x3d4495['previousSibling'];else{if(_0x54b41d<_0x3da8ac)break;}_0x3d4495=_0x3d4495['previousSibling'];}return _0x1d5426;}function ue(_0x2be368){const _0x5f12fc=[];if(_0x2be368['is']('element','listItem')&&_0x2be368['getAttribute']('listIndent')>0x0){let _0x4f43e2=_0x2be368['nextSibling'];for(;_0x4f43e2&&'listItem'==_0x4f43e2['name']&&_0x4f43e2['getAttribute']('listIndent')==_0x2be368['getAttribute']('listIndent');)_0x5f12fc['push'](_0x4f43e2),_0x4f43e2=_0x4f43e2['nextSibling'];}return _0x5f12fc;}class W extends _0x3648ee{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4b52a2=this['editor']['config']['get']('list.properties'),_0x4af1bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b52a2['styles']&&_0x4af1bc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4b52a2['reversed']&&_0x4af1bc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4b52a2['startIndex']&&_0x4af1bc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4af1bc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1f537c,_0x640a54={}){const _0x4b8ae7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4afc24=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4b8ae7['markMultiRangeBlockFormat'](_0x4afc24,{'commandName':'listStyle','commandParams':[{'type':_0x640a54['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x57282d,_0x385db3={}){const _0x25c5b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40a686=this['_getSuggestionBlocks'](_0x13f762=>_0x13f762['is']('element','listItem')&&'numbered'===_0x13f762['getAttribute']('listType'));if(_0x40a686['length']<0x1)return;const _0x22998c=_0x40a686['map'](_0x168ff9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x168ff9,'before'),this['editor']['model']['createPositionAt'](_0x168ff9,0x0)));this['editor']['model']['change'](()=>{_0x25c5b6['markMultiRangeBlockFormat'](_0x22998c,{'commandName':'listReversed','commandParams':[{'reversed':_0x385db3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x13f13d,_0x50dccb={}){const _0x5aa494=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52e2fb=this['_getSuggestionBlocks'](_0x25b457=>_0x25b457['is']('element','listItem')&&'numbered'===_0x25b457['getAttribute']('listType'));if(_0x52e2fb['length']<0x1)return;const _0xac3f=_0x52e2fb['map'](_0x47e5eb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47e5eb,'before'),this['editor']['model']['createPositionAt'](_0x47e5eb,0x0)));this['editor']['model']['change'](()=>{_0x5aa494['markMultiRangeBlockFormat'](_0xac3f,{'commandName':'listStart','commandParams':[{'startIndex':_0x50dccb['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3279d0){if('formatBlock'!=_0x3279d0['type']&&'formatInline'!=_0x3279d0['type'])return;const _0x1b22ea=this['editor']['locale'],{data:_0x1cb8be}=_0x3279d0;if(!_0x1cb8be)return;let _0x132069,_0x4fb70;switch(_0x1cb8be['commandName']){case'listStyle':_0x132069='*Change\x20to:*\x20%0',_0x4fb70={'type':'format','content':o(_0x1b22ea,_0x132069,o(_0x1b22ea,this['_getTranslationKeyForListStyle'](_0x1cb8be['commandParams'][0x0]['type'])))};break;case'listReversed':_0x132069=_0x1cb8be['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4fb70={'type':'format','content':o(_0x1b22ea,_0x132069)};break;case'listStart':_0x132069='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4fb70={'type':'format','content':o(_0x1b22ea,_0x132069,_0x1cb8be['commandParams'][0x0]['startIndex'])};}return _0x4fb70;}['_getSuggestionBlocksForListStyle'](){const _0x5c66e9=this['editor']['plugins']['get']('LegacyListUtils');let _0x20e191=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x20e191[0x0]?.['is']('element','listItem')&&_0x20e191['unshift'](..._0x5c66e9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x20e191[_0x20e191['length']-0x1]?.['is']('element','listItem')&&_0x20e191['push'](..._0x5c66e9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x20e191=[...new Set(_0x20e191)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x20e191=_0x20e191['filter'](_0x3e6c0f=>_0x3e6c0f['is']('element','listItem'))),_0x20e191;}['_getSuggestionBlocks'](_0x4b7ace){const _0x151e2b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c5c1b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4b7ace)['map'](_0x4bb0a9=>{const _0x92cdf3=this['editor']['model']['createPositionAt'](_0x4bb0a9,0x0);return[..._0x151e2b['getSiblingNodes'](_0x92cdf3,'backward'),..._0x151e2b['getSiblingNodes'](_0x92cdf3,'forward')];})['flat']();return _0x4c5c1b=[...new Set(_0x4c5c1b)],_0x4c5c1b;}['_getTranslationKeyForListStyle'](_0x464f26){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x464f26)||'default')['toUpperCase']()+'_LIST_'+_0x464f26['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3648ee{['afterInit'](){const _0x5a219c=this['editor'];if(!_0x5a219c['plugins']['has']('MediaEmbedEditing'))return;const _0x22d96a=_0x5a219c['plugins']['get']('TrackChangesEditing'),_0x3c87e6=_0x5a219c['locale'];_0x22d96a['enableCommand']('mediaEmbed'),_0x22d96a['descriptionFactory']['registerElementLabel']('media',_0x54037f=>o(_0x3c87e6,'ELEMENT_MEDIA',_0x54037f)),_0x5a219c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x16a448,{writer:_0x55faf7,options:_0x3449ac})=>{if(_0x3449ac['showSuggestionHighlights'])return _0x55faf7['createEmptyElement']('div');},'converterPriority':'high'}),_0x5a219c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x432ce2,_0x4750d9,_0x137af7)=>{_0x137af7['options']['showSuggestionHighlights']&&_0x432ce2['stop']();},{'priority':'high'});}}class mt extends _0x3648ee{['afterInit'](){const _0x17b3ba=this['editor'];_0x17b3ba['plugins']['has']('MentionEditing')&&_0x17b3ba['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3648ee{['afterInit'](){const _0x679a47=this['editor'];if(!_0x679a47['plugins']['has']('MergeFieldsEditing'))return;_0x679a47['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x679a47['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1d35e7=_0x679a47['plugins']['get']('TrackChangesEditing'),_0x3dc37e=_0x679a47['locale'];_0x1d35e7['descriptionFactory']['registerElementLabel']('mergeField',_0x3795a3=>o(_0x3dc37e,'ELEMENT_MERGE_FIELD',_0x3795a3)),_0x1d35e7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x41aee9=>o(_0x3dc37e,'ELEMENT_MERGE_FIELD',_0x41aee9)),_0x1d35e7['descriptionFactory']['registerDescriptionCallback'](_0x102737=>{if('insertion'!=_0x102737['type']&&'deletion'!=_0x102737['type'])return;const _0x135062=_0x102737['getContainedElement']();if(null==_0x135062)return;if(!_0x135062['is']('element','mergeField')&&!_0x135062['is']('element','mergeFieldBlock'))return;const _0x5a20e8=_0x679a47['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x135062['getAttribute']('id'));return'insertion'==_0x102737['type']?{'type':'insertion','content':o(_0x3dc37e,'*Insert:*\x20%0','\x22'+_0x5a20e8+'\x22\x20'+o(_0x3dc37e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3dc37e,'*Remove:*\x20%0','\x22'+_0x5a20e8+'\x22\x20'+o(_0x3dc37e,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3648ee{['afterInit'](){const _0x5a8e7f=this['editor'],_0x54654b=_0x5a8e7f['plugins']['get']('TrackChangesEditing');_0x5a8e7f['plugins']['has']('MultiLevelList')&&(_0x54654b['enableDefaultAttributesIntegration']('multiLevelList'),_0x54654b['registerBlockAttribute']('listMarkerStyle'),_0x54654b['descriptionFactory']['registerDescriptionCallback'](_0x5ab8fa=>this['handleDescriptions'](_0x5ab8fa)));}['handleDescriptions'](_0x21f3e2){const _0x2df458=this['editor']['locale'],{data:_0x4daea}=_0x21f3e2,_0x35bac1={'type':'format','content':''};if(_0x4daea&&'listMarkerStyle'==_0x4daea['key']){if(!_0x4daea['oldValue'])return{'type':'format','content':o(_0x2df458,'*Set\x20format:*\x20%0',o(_0x2df458,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4daea['newValue']+')'};if(!_0x4daea['newValue']){let _0x27a3b1=_0x21f3e2['head'];for(;_0x27a3b1;){if(_0x27a3b1['data']&&'listType'==_0x27a3b1['data']['key']&&_0x27a3b1['data']['newValue'])return _0x35bac1;_0x27a3b1=_0x27a3b1['next'];}return{'type':'format','content':o(_0x2df458,'*Remove\x20format:*\x20%0',o(_0x2df458,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4daea['oldValue']+')'};}}}}class kt extends _0x3648ee{['afterInit'](){const _0x4248cf=this['editor'];if(!_0x4248cf['plugins']['has']('PageBreakEditing'))return;_0x4248cf['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1304cd=_0x4248cf['plugins']['get']('TrackChangesEditing'),_0x481f82=_0x4248cf['locale'];_0x1304cd['descriptionFactory']['registerElementLabel']('pageBreak',_0x16089d=>o(_0x481f82,'ELEMENT_PAGE_BREAK',_0x16089d));}}class bt extends _0x3648ee{['afterInit'](){const _0x410d99=this['editor'];if(!_0x410d99['plugins']['has']('Paragraph'))return;const _0x1dfc7b=_0x410d99['locale'],_0xf601b4=_0x410d99['plugins']['get']('TrackChangesEditing');_0xf601b4['descriptionFactory']['registerElementLabel']('paragraph',_0xeea4eb=>o(_0x1dfc7b,'ELEMENT_PARAGRAPH',_0xeea4eb)),_0xf601b4['enableDefaultAttributesIntegration']('paragraph'),_0xf601b4['enableCommand']('insertParagraph'),_0x410d99['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x410d99),{'priority':'highest'}),_0x410d99['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x170438,_0x32ea9f,_0x58349f)=>{_0x58349f['options']['showSuggestionHighlights']&&nr(_0x410d99,{'showActiveMarker':!0x1})(_0x170438,_0x32ea9f,_0x58349f);},{'priority':'highest'});const _0x1f1be8=_0xf601b4['descriptionFactory'];_0x1f1be8['registerDescriptionCallback'](_0x442327=>{if('insertion'!==_0x442327['type'])return;const {start:_0x3133dc,end:_0xd2df30}=_0x442327['getFirstRange']();if(!_0x3133dc['isTouching'](_0xd2df30)||!_0x3133dc['nodeAfter'])return;const _0x30ace3=_0x410d99['model']['schema'],_0x4a579d=_0x3133dc['nodeAfter'];return _0x30ace3['isBlock'](_0x4a579d)&&!_0x30ace3['isLimit'](_0x4a579d)&&_0x30ace3['checkChild'](_0x4a579d,'$text')?{'type':'insertion','content':o(_0x1dfc7b,'*Insert:*\x20%0',_0x1f1be8['getItemLabel'](_0x4a579d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445615=this['editor'],_0x434372=_0x445615['locale'];_0x445615['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a29d3=>{if('formatBlock'!=_0x1a29d3['type'])return;const {data:_0x3432a4}=_0x1a29d3;return _0x3432a4&&'paragraph'==_0x3432a4['commandName']?{'type':'format','content':o(_0x434372,'*Change\x20to:*\x20%0',o(_0x434372,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x472853,{showActiveMarker:_0x4ef9f6=!0x0}={}){return(_0x476218,_0x3eb9a5,_0x2f88e5)=>{const _0x4b185c=_0x472853['plugins']['get']('TrackChangesEditing'),_0x32d6b0=_0x3eb9a5['markerRange']['start'],_0x51209e=_0x3eb9a5['markerRange']['end'],_0x8bc5f1=_0x472853['model']['schema'];if(!_0x32d6b0['isTouching'](_0x51209e)||!_0x32d6b0['nodeAfter'])return;const _0x1dc477=_0x32d6b0['nodeAfter'];if(_0x8bc5f1['isBlock'](_0x1dc477)&&!_0x8bc5f1['isLimit'](_0x1dc477)&&_0x8bc5f1['checkChild'](_0x1dc477,'$text')){if(!_0x2f88e5['consumable']['consume'](_0x3eb9a5['markerRange'],_0x476218['name']))return;const {authorId:_0x35d281}=_0x4b185c['_splitMarkerName'](_0x3eb9a5['markerName']),_0x49e3fa=_0x2f88e5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x35d281}),_0x2578d8=_0x2f88e5['mapper']['toViewPosition'](_0x51209e);_0x4ef9f6&&_0x4b185c['activeMarkers']['includes'](_0x3eb9a5['markerName'])&&_0x2f88e5['writer']['addClass']('ck-suggestion-marker--active',_0x49e3fa),_0x2f88e5['writer']['insert'](_0x2578d8,_0x49e3fa),_0x2f88e5['mapper']['bindElementToMarker'](_0x49e3fa,_0x3eb9a5['markerName']);}};}class wt extends _0x3648ee{['afterInit'](){const _0x1d6210=this['editor'];if(!_0x1d6210['plugins']['has']('RemoveFormatEditing'))return;_0x1d6210['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x419a21=this['editor'];_0x419a21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf46e3f=>{if('formatBlock'!=_0xf46e3f['type']&&'formatInline'!=_0xf46e3f['type'])return;const {data:_0xebff35}=_0xf46e3f;return _0xebff35&&'removeFormat'==_0xebff35['commandName']?{'type':'format','content':o(_0x419a21['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3648ee{['afterInit'](){const _0x1e3d5c=this['editor'];if(!_0x1e3d5c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x15250d=_0x1e3d5c['plugins']['get']('TrackChangesEditing');_0x15250d['enableCommand']('goToPreviousRestrictedEditingException'),_0x15250d['enableCommand']('goToNextRestrictedEditingException');const _0x181ead=_0x1e3d5c['plugins']['get']('RestrictedEditingModeEditing');_0x181ead['enableCommand']('trackChanges'),_0x181ead['enableCommand']('acceptSuggestion'),_0x181ead['enableCommand']('discardSuggestion'),_0x181ead['enableCommand']('acceptAllSuggestions'),_0x181ead['enableCommand']('discardAllSuggestions'),_0x181ead['enableCommand']('acceptSelectedSuggestions'),_0x181ead['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3648ee{static get['requires'](){return[_0x21f6fd];}['init'](){const _0x44bd8d=this['editor'],_0x23ae27=_0x44bd8d['plugins']['get']('TrackChangesEditing');_0x23ae27['enableCommand']('shiftEnter'),_0x44bd8d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x44bd8d),{'priority':'high'}),_0x44bd8d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x44bd8d),{'priority':'high'}),_0x44bd8d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37d700,_0x37cb0b,_0x3d63dd)=>{_0x3d63dd['options']['showSuggestionHighlights']&&ge(_0x44bd8d,{'showActiveMarker':!0x1})(_0x37d700,_0x37cb0b,_0x3d63dd);}),_0x23ae27['descriptionFactory']['registerElementLabel']('softBreak',_0x5d2327=>o(_0x44bd8d['locale'],'ELEMENT_LINE_BREAK',_0x5d2327));}}function ge(_0x567db1,{showActiveMarker:_0x56721d=!0x0}={}){return(_0x58d577,_0x4af518,_0x35f1c3)=>{const _0x26bc12=_0x567db1['plugins']['get']('TrackChangesEditing');if(!_0x35f1c3['consumable']['test'](_0x4af518['markerRange'],_0x58d577['name']))return;const _0xbd0771=_0x567db1['model'];for(const _0x12dfcb of _0x4af518['markerRange']['getItems']()){if(!_0x12dfcb['is']('element','softBreak'))continue;const _0x416893='deletion'==_0x4af518['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x49d897}=_0x26bc12['_splitMarkerName'](_0x4af518['markerName']),_0x12f439=_0x35f1c3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x416893,'data-author-id':_0x49d897}),_0x11111f=_0x35f1c3['mapper']['toViewPosition'](_0xbd0771['createPositionBefore'](_0x12dfcb));_0x56721d&&_0x26bc12['activeMarkers']['includes'](_0x4af518['markerName'])&&_0x35f1c3['writer']['addClass']('ck-suggestion-marker--active',_0x12f439),_0x35f1c3['writer']['insert'](_0x11111f,_0x12f439),_0x35f1c3['mapper']['bindElementToMarker'](_0x12f439,_0x4af518['markerName']);}};}class St extends _0x3648ee{['afterInit'](){const _0x260c97=this['editor'],_0x33711b=_0x260c97['model'],_0x117191=_0x260c97['locale'];if(!_0x260c97['plugins']['has']('StandardEditingModeEditing'))return;const _0x48731f=_0x260c97['plugins']['get']('TrackChangesEditing'),_0x347388='restrictedEditingException',_0xfab7f4=_0x260c97['commands']['get'](_0x347388);_0x48731f['enableCommand'](_0x347388,(_0x31336e,_0x3172e6={})=>{const _0x4c9a8b=_0x33711b['document']['selection'];if(_0x4c9a8b['isCollapsed'])return void _0x31336e(_0x3172e6);const _0x8c9d76=void 0x0!==_0x3172e6['forceValue']?_0x3172e6['forceValue']:!_0xfab7f4['value'];_0x33711b['change'](()=>{const _0x31eb29=Array['from'](_0x4c9a8b['getRanges']());for(const _0x3fd16e of _0x31eb29){const _0x430c18=_0x8c9d76?[_0x3fd16e]:io(_0x347388,_0x3fd16e,_0x33711b);for(const _0x10dce2 of _0x430c18)_0x48731f['markInlineFormat'](_0x10dce2,{'commandName':_0x347388,'commandParams':[{'forceValue':_0x8c9d76}]});}});}),_0x48731f['descriptionFactory']['registerDescriptionCallback'](_0x397c91=>{if('formatBlock'!=_0x397c91['type']&&'formatInline'!=_0x397c91['type'])return;const {data:_0x59a359}=_0x397c91;return _0x59a359&&_0x59a359['commandName']==_0x347388?_0x59a359['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x117191,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x117191,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3648ee{['afterInit'](){const _0x47d2ab=this['editor'];if(!_0x47d2ab['plugins']['has']('Style')||!_0x47d2ab['plugins']['has']('DataSchema'))return;const _0x1c8cc0=_0x47d2ab['plugins']['get']('TrackChangesEditing'),_0x485409=_0x47d2ab['locale'],_0x3868aa=_0x47d2ab['config']['get']('style')||{},_0x7aebca=_0x47d2ab['plugins']['get']('GeneralHtmlSupport'),_0x4fdf91=_0x47d2ab['plugins']['get']('StyleUtils')['normalizeConfig'](_0x47d2ab['plugins']['get']('DataSchema'),_0x3868aa['definitions']);_0x1c8cc0['enableDefaultAttributesIntegration']('style');const _0x5bf9d6=new Set();for(const _0x31b596 of _0x4fdf91['block']){const _0xeec769=_0x7aebca['getGhsAttributeNameForElement'](_0x31b596['element']);_0x5bf9d6['add'](_0xeec769);}const _0xd50ce7=new Set();for(const _0x13e268 of _0x4fdf91['inline']){const _0x271156=_0x7aebca['getGhsAttributeNameForElement'](_0x13e268['element']);_0xd50ce7['add'](_0x271156);for(const _0x36129b of _0x13e268['ghsAttributes'])_0xd50ce7['add'](_0x36129b);}for(const _0x28fdf5 of _0x5bf9d6)_0x1c8cc0['registerBlockAttribute'](_0x28fdf5),_0x1c8cc0['descriptionFactory']['registerAttributeLabel'](_0x28fdf5,o(_0x485409,'FORMAT_STYLE'));for(const _0x58eb4b of _0xd50ce7)_0x1c8cc0['registerInlineAttribute'](_0x58eb4b),_0x1c8cc0['descriptionFactory']['registerAttributeLabel'](_0x58eb4b,o(_0x485409,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d182b=this['editor'],_0x3c781a=_0x5d182b['locale'];_0x5d182b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e69c6=>{if('formatBlock'!=_0x4e69c6['type']&&'formatInline'!=_0x4e69c6['type'])return;const {data:_0x2b2a2f}=_0x4e69c6;return _0x2b2a2f&&'style'===_0x2b2a2f['commandName']?_0x2b2a2f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c781a,'*Set\x20format:*\x20%0',_0x2b2a2f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3c781a,'*Remove\x20format:*\x20%0',_0x2b2a2f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3648ee{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x490781){super(_0x490781),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x9b5f64=this['editor'],_0x5e0097=_0x9b5f64['model']['document']['selection'];if(!_0x9b5f64['plugins']['has']('TableEditing'))return;const _0x492864=_0x9b5f64['locale'],_0x2b6069=_0x9b5f64['plugins']['get']('TrackChangesEditing'),_0x5c2917=_0x9b5f64['plugins']['get']('TableUtils');_0x2b6069['descriptionFactory']['registerElementLabel']('table',_0x2a3f44=>o(_0x492864,'ELEMENT_TABLE',_0x2a3f44)),this['_setupColumnsRowsFixing'](),_0x2b6069['enableCommand']('insertTable'),_0x2b6069['enableCommand']('selectTableRow'),_0x2b6069['enableCommand']('selectTableColumn');for(const _0x552d9a of['insertTableRowAbove','insertTableRowBelow']){const _0xcdfb01=_0x9b5f64['commands']['get'](_0x552d9a);_0x2b6069['enableCommand'](_0x552d9a,_0x1bbb6a=>{_0x9b5f64['model']['change'](_0x40e40b=>{_0x1bbb6a();const _0x28ca1b='above'===_0xcdfb01['order'],_0x494f9b=_0x5c2917['getSelectionAffectedTableCells'](_0x5e0097),_0x257b57=_0x5c2917['getRowIndexes'](_0x494f9b),_0x5ebeb8=_0x28ca1b?_0x257b57['first']-0x1:_0x257b57['last']+0x1,_0x4984b7=_0x494f9b[0x0]['findAncestor']('table'),_0x5417b9=_0x5c2917['createTableWalker'](_0x4984b7,{'startRow':_0x5ebeb8,'endRow':_0x5ebeb8}),_0x2b7421=Array['from'](_0x5417b9)['map'](_0x4365ed=>_0x40e40b['createRangeOn'](_0x4365ed['cell']));_0x2b6069['markMultiRangeInsertion'](_0x2b7421,'tableRow');});});}for(const _0xc3df6e of['insertTableColumnLeft','insertTableColumnRight']){const _0x308a54=_0x9b5f64['commands']['get'](_0xc3df6e);_0x2b6069['enableCommand'](_0xc3df6e,_0x1a046e=>{_0x9b5f64['model']['change'](_0x344ec6=>{_0x1a046e();const _0x4983e0='left'===_0x308a54['order'],_0x32cd13=_0x5c2917['getSelectionAffectedTableCells'](_0x5e0097),_0x34421f=_0x5c2917['getColumnIndexes'](_0x32cd13),_0x573f38=_0x4983e0?_0x34421f['first']-0x1:_0x34421f['last']+0x1,_0x91e500=_0x32cd13[0x0]['findAncestor']('table'),_0x8fa10c=_0x5c2917['createTableWalker'](_0x91e500,{'startRow':0x0,'column':_0x573f38,'includeAllSlots':!0x1}),_0x23013e=Array['from'](_0x8fa10c)['map'](_0x3e8dd9=>_0x344ec6['createRangeOn'](_0x3e8dd9['cell']));_0x2b6069['markMultiRangeInsertion'](_0x23013e,'tableColumn');});});}for(const _0x23a078 of['removeTableRow','removeTableColumn']){const _0x4f20a3=_0x23a078['substr'](0xb),_0x4233de=_0x4f20a3['toLowerCase'](),_0x154c64=_0x4233de['substr'](0x0,0x3)+'span',_0x28eb5c='table'+_0x4f20a3,_0x2ed8ee='min'+_0x4f20a3,_0x439b8f='max'+_0x4f20a3;_0x2b6069['enableCommand'](_0x23a078,()=>{_0x9b5f64['model']['change'](_0x386dda=>{const _0x58112e=_0x5c2917['getSelectionAffectedTableCells'](_0x5e0097),_0xb962a2=_0x58112e[0x0]['findAncestor']('table');let _0x42de18;if('removeTableRow'==_0x23a078){const _0x3d5a0f=_0x5c2917['getRowIndexes'](_0x58112e);_0x42de18={'startRow':_0x3d5a0f['first'],'endRow':_0x3d5a0f['last'],'includeAllSlots':!0x0};}else{const _0x1309b4=_0x5c2917['getColumnIndexes'](_0x58112e);_0x42de18={'startColumn':_0x1309b4['first'],'endColumn':_0x1309b4['last'],'includeAllSlots':!0x0};}const _0xa3af0e=_0x5c2917['createTableWalker'](_0xb962a2,_0x42de18),_0x14b1cc=Array['from'](_0xa3af0e)['map'](({cell:_0x3aad99})=>_0x3aad99),_0x568945=be(_0x14b1cc['filter'](_0x31b43f=>_0x31b43f['hasAttribute'](_0x154c64))),_0x1bbbaa=be(_0x14b1cc['filter'](_0x75c204=>!_0x75c204['hasAttribute'](_0x154c64)))['map'](_0x23dae3=>_0x386dda['createRangeOn'](_0x23dae3)),_0x5d8331=_0x2b6069['markMultiRangeDeletion'](_0x1bbbaa,_0x28eb5c);if(_0x5d8331&&('tableRow'==_0x5d8331['subType']||'tableColumn'==_0x5d8331['subType'])){const _0x1468ce=this['_getSuggestionCoords'](_0x5d8331);for(const _0x34a442 of _0x568945){const _0x5a5707=_0x386dda['createRangeOn'](_0x34a442),_0x1a96b3=_0x5c2917['getCellLocation'](_0x34a442),_0x4e72ee=_0x34a442['getAttribute'](_0x154c64)-0x1,_0x4f1622=_0x1468ce[_0x2ed8ee],_0x1f1070=_0x1468ce[_0x439b8f];_0x4f1622<=_0x1a96b3[_0x4233de]&&_0x1a96b3[_0x4233de]+_0x4e72ee<=_0x1f1070&&_0x5d8331['addRange'](_0x5a5707);}}});});}function _0x1130f3(_0x2369e6){const _0x64186=Array['from'](_0x5e0097['getRanges']())['map'](_0xaec151=>_0x18bd53['fromRange'](_0xaec151));_0x9b5f64['model']['change'](_0x38fad8=>{const _0x58a7ac=_0x38fad8['batch'];_0x2369e6=_0x2369e6['filter'](_0x3dc7b5=>'$graveyard'!=_0x3dc7b5['root']['rootName']),_0x38fad8['setSelection'](_0x2369e6),_0x9b5f64['commands']['get']('removeTableRow')['refresh'](),_0x9b5f64['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x9b5f64['model']['enqueueChange'](()=>{_0x9b5f64['model']['enqueueChange'](_0x58a7ac,_0x7bfb49=>{const _0x47360a=_0x64186['filter'](_0x20b8ae=>'$graveyard'!=_0x20b8ae['root']['rootName']);_0x47360a['length']>0x0&&_0x7bfb49['setSelection'](_0x47360a);for(const _0x1ea8ca of _0x64186)_0x1ea8ca['detach']();});});});}function _0x1feaf5(_0x50669d){_0x9b5f64['model']['change'](_0x2fde4e=>{const _0x2d5492=Array['from'](_0x5e0097['getRanges']())['map'](_0x1fe023=>_0x18bd53['fromRange'](_0x1fe023)),_0x500006=[];for(const _0x1bf454 of _0x50669d)for(const _0x26873e of _0x1bf454['getItems']({'shallow':!0x0}))_0x500006['push'](_0x26873e);for(const _0xd39dac of _0x500006)'$graveyard'!=_0xd39dac['root']['rootName']&&(_0x2fde4e['setSelection'](_0x2fde4e['createPositionAt'](_0xd39dac,0x0)),_0x9b5f64['commands']['get']('removeTableColumn')['refresh'](),_0x9b5f64['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5a27b5=_0x2d5492['filter'](_0x20bbb7=>'$graveyard'!=_0x20bbb7['root']['rootName']);_0x5a27b5['length']>0x0&&_0x2fde4e['setSelection'](_0x5a27b5);for(const _0x103c2a of _0x2d5492)_0x103c2a['detach']();});}function _0x8750bf(_0x51ebc5,_0x4d6d5e){return _0x4d6d5e['every'](_0x1d41d3=>_0x51ebc5['some'](_0x4de60b=>_0x4de60b['end']['isEqual'](_0x1d41d3['start'])||_0x1d41d3['end']['isEqual'](_0x4de60b['start'])));}function _0xcfb73(_0x23f6e1,_0xc617ec){return!_0x23f6e1['some'](_0x30e5fb=>_0xc617ec['some'](_0x3f82dc=>_0x30e5fb['isIntersecting'](_0x3f82dc)))&&_0x23f6e1['some'](_0x357429=>_0xc617ec['some'](_0x15743f=>_0x357429['end']['isTouching'](_0x15743f['start'])));}_0x9b5f64['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xbaa3c7,_0x2d727e,_0x406117)=>{if(!_0x406117['options']['showSuggestionHighlights'])return;const _0x1e5c04=_0x2d727e['item'];if(!_0x1e5c04)return;const _0x323e8b=_0x406117['mapper']['toViewElement'](_0x1e5c04);function _0x41cb45(_0x4aa00c){return Array['isArray'](_0x4aa00c)?_0x4aa00c:[_0x4aa00c];}_0x323e8b&&'tableCell'===_0x1e5c04['name']&&_0x34293b(_0x323e8b,_0x406117['writer'],(_0x4d1c36,_0x3a74e2,_0x367b30)=>_0x367b30['addClass'](_0x41cb45(_0x3a74e2['classes']),_0x4d1c36),(_0x27896d,_0x192ee2,_0x1849db)=>_0x1849db['removeClass'](_0x41cb45(_0x192ee2['classes']),_0x27896d));},{'priority':'highest'}),_0x2b6069['descriptionFactory']['registerDescriptionCallback'](_0x4d6a64=>{if('insertion'!=_0x4d6a64['type']&&'deletion'!=_0x4d6a64['type'])return;const _0x348239=_0x4d6a64['getContainedElement']();if(null!=_0x348239&&_0x348239['is']('element','table')){if('insertion'==_0x4d6a64['type']){const _0xe8e7c3=_0x4d6a64['getItems']()['filter'](_0x56c8bb=>_0x56c8bb['is']('$textProxy'))['map'](_0xc665df=>_0xc665df['data']);if(_0xe8e7c3['length'])return{'type':'insertion','content':o(_0x492864,'*Insert:*\x20%0',o(_0x492864,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe8e7c3['join']('\x20')+'\x22'))};}if('deletion'==_0x4d6a64['type']){const _0x3b2d18=_0x4d6a64['getItems']()['filter'](_0x1a3100=>_0x1a3100['is']('$textProxy'))['map'](_0x4dbd97=>_0x4dbd97['data']);if(_0x3b2d18['length'])return{'type':'deletion','content':o(_0x492864,'*Remove:*\x20%0',o(_0x492864,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b2d18['join']('\x20')+'\x22'))};}}}),_0x2b6069['descriptionFactory']['registerDescriptionCallback'](_0x194548=>{if('tableRow'==_0x194548['subType']){const _0x468ce8=_0x194548['getItems']()['filter'](_0x560769=>_0x560769['is']('$textProxy'))['map'](_0x19e10a=>_0x19e10a['data']),_0x3b8d77=this['_getSuggestionCoords'](_0x194548),_0x3efa4e=_0x3b8d77['maxRow']-_0x3b8d77['minRow']+0x1;if('insertion'==_0x194548['type'])return _0x468ce8['length']?{'type':'insertion','content':o(_0x492864,'*Insert:*\x20%0',o(_0x492864,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3efa4e,'\x22'+_0x468ce8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x492864,'*Insert:*\x20%0',o(_0x492864,'ELEMENT_TABLE_ROW',_0x3efa4e))};if('deletion'==_0x194548['type'])return _0x468ce8['length']?{'type':'deletion','content':o(_0x492864,'*Remove:*\x20%0',o(_0x492864,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3efa4e,'\x22'+_0x468ce8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x492864,'*Remove:*\x20%0',o(_0x492864,'ELEMENT_TABLE_ROW',_0x3efa4e))};}if('tableColumn'==_0x194548['subType']){const _0x130116=_0x194548['getItems']()['filter'](_0xd5d842=>_0xd5d842['is']('$textProxy'))['map'](_0x4c1e1f=>_0x4c1e1f['data']),_0x53c9f1=this['_getSuggestionCoords'](_0x194548),_0x3a76ba=_0x53c9f1['maxColumn']-_0x53c9f1['minColumn']+0x1;if('insertion'==_0x194548['type'])return _0x130116['length']?{'type':'insertion','content':o(_0x492864,'*Insert:*\x20%0',o(_0x492864,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a76ba,'\x22'+_0x130116['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x492864,'*Insert:*\x20%0',o(_0x492864,'ELEMENT_TABLE_COLUMN',_0x3a76ba))};if('deletion'==_0x194548['type'])return _0x130116['length']?{'type':'deletion','content':o(_0x492864,'*Remove:*\x20%0',o(_0x492864,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a76ba,'\x22'+_0x130116['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x492864,'*Remove:*\x20%0',o(_0x492864,'ELEMENT_TABLE_COLUMN',_0x3a76ba))};}}),_0x2b6069['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1130f3),_0x2b6069['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1130f3),_0x2b6069['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1feaf5),_0x2b6069['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1feaf5),_0x2b6069['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x8750bf),_0x2b6069['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x8750bf),_0x2b6069['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xcfb73),_0x2b6069['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xcfb73);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4029ae=this['editor'],_0x3d4501=_0x4029ae['model']['document']['selection'];return(_0x1149fd,_0x565e4d)=>{_0x4029ae['model']['change'](_0x5a1724=>{const {commandName:_0x12d58c,commandParams:_0x362d34}=_0x565e4d;let _0x257b1b=_0x1149fd[0x0]['end']['nodeBefore'];_0x362d34&&_0x362d34[0x0]&&!0x1===_0x362d34[0x0]['forceValue']&&(_0x257b1b=_0x1149fd[0x0]['start']['nodeAfter']);const _0x8b1c9d=_0x5a1724['createRangeIn'](_0x257b1b);if('$graveyard'==_0x8b1c9d['root']['rootName'])return;const _0x57499f=Array['from'](_0x3d4501['getRanges']())['map'](_0x58aa02=>_0x18bd53['fromRange'](_0x58aa02));_0x5a1724['setSelection'](_0x8b1c9d),_0x4029ae['commands']['get'](_0x12d58c)['refresh'](),_0x362d34['push']({'forceDefaultExecution':!0x0}),_0x4029ae['execute'](_0x12d58c,..._0x362d34);const _0x4cd61f=_0x57499f['filter'](_0x38af7c=>'$graveyard'!=_0x38af7c['root']['rootName']);_0x4cd61f['length']>0x0&&_0x5a1724['setSelection'](_0x4cd61f);for(const _0x34278c of _0x57499f)_0x34278c['detach']();});};}['_getCoordsForCells'](_0x29ab77){const _0x2682be=this['editor']['plugins']['get']('TableUtils');let _0x31c723=Number['MAX_SAFE_INTEGER'],_0x1aadb1=Number['MIN_SAFE_INTEGER'],_0x20a89d=Number['MAX_SAFE_INTEGER'],_0x16cf80=Number['MIN_SAFE_INTEGER'];for(const _0x453992 of _0x29ab77){if('$graveyard'==_0x453992['root']['rootName'])continue;const {row:_0x1ae930,column:_0xd5dacc}=_0x2682be['getCellLocation'](_0x453992),_0x44986c=_0x453992['hasAttribute']('rowspan')?_0x453992['getAttribute']('rowspan')-0x1:0x0,_0x22735c=_0x453992['hasAttribute']('colspan')?_0x453992['getAttribute']('colspan')-0x1:0x0;_0x31c723=_0x1ae930<_0x31c723?_0x1ae930:_0x31c723,_0x1aadb1=_0x1ae930+_0x44986c>_0x1aadb1?_0x1ae930+_0x44986c:_0x1aadb1,_0x20a89d=_0xd5dacc<_0x20a89d?_0xd5dacc:_0x20a89d,_0x16cf80=_0xd5dacc+_0x22735c>_0x16cf80?_0xd5dacc+_0x22735c:_0x16cf80;}return{'minRow':_0x31c723,'maxRow':_0x1aadb1,'minColumn':_0x20a89d,'maxColumn':_0x16cf80};}['_setupColumnsRowsFixing'](){const _0x1209f2=this['editor'],_0x1068f0=_0x1209f2['plugins']['get']('TrackChangesEditing'),_0xcecb01=_0x1209f2['plugins']['get']('TableUtils');_0x1209f2['model']['document']['on']('change:data',()=>{const _0x3f2477=Array['from'](_0x1209f2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55fdd1,data:_0x301973}of _0x3f2477){const {group:_0x500a73,id:_0xca612a,subType:_0x2fc17c}=_0x1068f0['_splitMarkerName'](_0x55fdd1);if('suggestion'!=_0x500a73)continue;if(null!=_0x301973['oldRange'])continue;const _0x37a969=_0x1068f0['getSuggestion'](_0xca612a);this['_tablePostFixingSubtypes']['includes'](_0x2fc17c)&&this['_tableSuggestions']['add'](_0x37a969);}},{'priority':'low'});const _0x992c38=(_0x5ca437,_0x30622e)=>{let _0xca3c62=!0x1;const _0x52ab17=_0x30622e['createRangeOn'](_0x5ca437),_0x1a9c82=_0x5ca437['findAncestor']('table'),_0x36e3b8=_0xcecb01['getCellLocation'](_0x5ca437);for(const _0x43908d of this['_tableSuggestions']){const _0x3ad480=_0x43908d['subType'],_0x85f249=_0x3ad480['startsWith']('tablePaste'),_0x2c45bf=_0x3ad480['substr'](_0x85f249?0xa:0x5),_0x252277=_0x2c45bf['toLowerCase'](),_0x10d2b8=_0x252277['substr'](0x0,0x3)+'span',_0xced4be='min'+_0x2c45bf,_0x3310e9='max'+_0x2c45bf;if(!_0x43908d['isInContent'])continue;if(_0x1a9c82!=_0x43908d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x43908d['isIntersectingWithRange'](_0x52ab17))continue;const _0x1ed961=_0x5ca437['hasAttribute'](_0x10d2b8)?_0x5ca437['getAttribute'](_0x10d2b8)-0x1:0x0,_0x1c4418=this['_getSuggestionCoords'](_0x43908d),_0x59bdb0=_0x1c4418[_0xced4be],_0x4d6c34=_0x1c4418[_0x3310e9];_0x59bdb0<=_0x36e3b8[_0x252277]&&_0x36e3b8[_0x252277]+_0x1ed961<=_0x4d6c34&&(_0x43908d['addRange'](_0x52ab17),_0xca3c62=!0x0);}return _0xca3c62;};_0x1209f2['model']['document']['registerPostFixer'](_0x5e294e=>{let _0x59fcba=!0x1;for(const _0x7af981 of _0x1209f2['model']['document']['differ']['getChanges']())if('insert'==_0x7af981['type']){if('tableRow'==_0x7af981['name']){for(const _0x5abf32 of _0x7af981['position']['nodeAfter']['getChildren']())_0x59fcba=_0x59fcba||_0x992c38(_0x5abf32,_0x5e294e);}else'tableCell'==_0x7af981['name']&&(_0x59fcba=_0x59fcba||_0x992c38(_0x7af981['position']['nodeAfter'],_0x5e294e));}return _0x59fcba;});}['_getSuggestionCoords'](_0x48c519){return this['_getCoordsForCells'](_0x48c519['getRanges']()['map'](_0x24bc76=>_0x24bc76['start']['nodeAfter']));}}function be(_0x332d59){return Array['from'](new Set(_0x332d59)['values']());}class vt extends _0x3648ee{static get['requires'](){return[It];}['afterInit'](){const _0x41e975=this['editor'],_0x288407=_0x41e975['model']['document']['selection'],_0x2d93e4=_0x41e975['locale'];if(!_0x41e975['plugins']['has']('TableEditing'))return;const _0x193055=_0x41e975['plugins']['get']('TrackChangesEditing'),_0x28e8cd=_0x41e975['plugins']['get']('TableUtils'),_0x527c3a=_0x41e975['plugins']['get'](It);_0x527c3a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x193055['enableCommand']('mergeTableCells',()=>{const _0x116a10=_0x28e8cd['getSelectionAffectedTableCells'](_0x41e975['model']['document']['selection']);_0x41e975['model']['change'](()=>{_0x193055['markMultiRangeBlockFormat'](_0x116a10,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x41e975['commands']['get']('mergeTableCells')['on']('execute',(_0x4b8934,_0x1b1d3b)=>{_0x41e975['commands']['get']('trackChanges')['value']&&(_0x1b1d3b['length']>0x0&&_0x1b1d3b[_0x1b1d3b['length']-0x1]&&_0x1b1d3b[_0x1b1d3b['length']-0x1]['forceDefaultExecution']||_0x193055['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4b8934['stop']());},{'priority':'highest'});for(const _0x59a97b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b5f01=_0x41e975['commands']['get'](_0x59a97b);_0x193055['enableCommand'](_0x59a97b,()=>{const _0x871397=_0x41e975['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1fa7b2=>_0x1fa7b2['is']('element','tableCell')),_0x582407=_0x2b5f01['value'];_0x41e975['model']['change'](()=>{_0x193055['markMultiRangeBlockFormat']([_0x871397,_0x582407],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5adc53 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4ab326=_0x41e975['commands']['get'](_0x5adc53);_0x193055['enableCommand'](_0x5adc53,()=>{const _0x5636d0=_0x28e8cd['getSelectionAffectedTableCells'](_0x41e975['model']['document']['selection'])[0x0],_0x4e3611=_0x5636d0['findAncestor']('table'),{column:_0x4aede4,row:_0x33dcb4}=_0x28e8cd['getCellLocation'](_0x5636d0);let _0x249af6=[];if('horizontally'==_0x4ab326['direction']){const _0x2a68d4=_0x28e8cd['createTableWalker'](_0x4e3611,{'startRow':_0x33dcb4,'endRow':_0x33dcb4,'includeAllSlots':!0x0});_0x249af6=Array['from'](_0x2a68d4)['map'](_0x38398=>_0x38398['cell']);}else{const _0x244c5f=_0x28e8cd['createTableWalker'](_0x4e3611,{'column':_0x4aede4,'includeAllSlots':!0x0});_0x249af6=Array['from'](_0x244c5f)['map'](_0x3fcb27=>_0x3fcb27['cell']);}_0x41e975['model']['change'](_0x3820bb=>{_0x193055['markBlockFormat'](_0x3820bb['createRangeOn'](_0x5636d0),{'commandName':_0x5adc53,'commandParams':[]},_0x249af6,_0x5adc53);});});}_0x193055['descriptionFactory']['registerDescriptionCallback'](_0x20a1d6=>{if('formatBlock'!=_0x20a1d6['type']&&'formatInline'!=_0x20a1d6['type'])return;const {data:_0x217b0b}=_0x20a1d6;return _0x217b0b&&'mergeTableCells'==_0x217b0b['commandName']?{'type':'format','content':o(_0x2d93e4,'*Merge\x20cells*')}:void 0x0;}),_0x193055['descriptionFactory']['registerDescriptionCallback'](_0x2a1d9a=>{if('formatBlock'!=_0x2a1d9a['type']&&'formatInline'!=_0x2a1d9a['type'])return;const {data:_0x41c894}=_0x2a1d9a;return _0x41c894?'splitTableCellVertically'==_0x41c894['commandName']?{'type':'format','content':o(_0x2d93e4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x41c894['commandName']?{'type':'format','content':o(_0x2d93e4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5e13ee=_0x527c3a['_acceptFormatSuggestionCallbackFactory']();for(const _0x69885a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x193055['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x69885a,'accept',_0x5e13ee);for(const _0x4b4949 of['splitTableCellVertically','splitTableCellHorizontally'])_0x193055['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b4949,'accept',_0x5e13ee);_0x193055['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x394260=>{_0x41e975['model']['change'](_0x397c0b=>{const _0x2a2886=Array['from'](_0x288407['getRanges']())['map'](_0x3963bc=>_0x18bd53['fromRange'](_0x3963bc));_0x397c0b['setSelection'](_0x394260),_0x41e975['commands']['get']('mergeTableCells')['refresh'](),_0x41e975['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2f8d6e=_0x2a2886['filter'](_0x237740=>'$graveyard'!=_0x237740['root']['rootName']);_0x2f8d6e['length']>0x0&&_0x397c0b['setSelection'](_0x2f8d6e);for(const _0x2b4c77 of _0x2a2886)_0x2b4c77['detach']();});});for(const _0x3762e4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x21ea4b=_0x41e975['commands']['get'](_0x3762e4);_0x21ea4b['on']('set:isEnabled',(_0x35db83,_0x269191,_0x4efb0b)=>{if(_0x4efb0b){const _0x292b8a=_0x41e975['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ee1a8=>_0x3ee1a8['is']('element','tableCell'));this['_areMergableCells'](_0x21ea4b['value'],_0x292b8a)||(_0x35db83['return']=!0x1,_0x35db83['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4296d6=this['editor']['commands']['get']('mergeTableCells'),_0x2c4be2=this['editor']['plugins']['get']('TableUtils');if(!_0x4296d6['isEnabled'])return!0x1;const _0x1d82ee=_0x2c4be2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2c8e51 of _0x1d82ee)for(const _0x32ad24 of _0x1d82ee)if(_0x2c8e51!=_0x32ad24&&!this['_areMergableCells'](_0x2c8e51,_0x32ad24))return!0x1;return!0x0;}['_areMergableCells'](_0x4eb874,_0x9df2f6){const _0x46b259=this['editor']['plugins']['get']('TrackChangesEditing'),_0x164a4f=this['editor']['model']['createRangeOn'](_0x4eb874),_0x1fbd96=this['editor']['model']['createRangeOn'](_0x9df2f6),_0x504f58=new Set(),_0x53ce72=new Set();for(const _0x2148c2 of _0x46b259['getSuggestions']())if(('insertion'==_0x2148c2['type']||'deletion'==_0x2148c2['type']||'mergeTableCells'==_0x2148c2['subType'])&&_0x2148c2['isInContent']){for(const _0xf16576 of _0x2148c2['getRanges']())_0xf16576['containsRange'](_0x164a4f,!0x0)&&_0x504f58['add'](_0x2148c2['type']+':'+_0x2148c2['author']['id']),_0xf16576['containsRange'](_0x1fbd96,!0x0)&&_0x53ce72['add'](_0x2148c2['type']+':'+_0x2148c2['author']['id']);}if(_0x504f58['size']!=_0x53ce72['size'])return!0x1;for(const _0x50505d of _0x504f58)if(!_0x53ce72['has'](_0x50505d))return!0x1;return!0x0;}}class Ct extends _0x3648ee{static get['requires'](){return[It];}['afterInit'](){const _0x3b47a3=this['editor'];if(!_0x3b47a3['plugins']['has']('TableEditing'))return;const _0x5d8ce0=_0x3b47a3['locale'],_0x95ed6e=_0x3b47a3['plugins']['get']('TrackChangesEditing');_0x95ed6e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x95ed6e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x95ed6e['registerBlockAttribute']('headingRows'),_0x95ed6e['registerBlockAttribute']('headingColumns'),_0x95ed6e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5d8ce0,'FORMAT_HEADER_ROW')),_0x95ed6e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5d8ce0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x10ba58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48ddf8=this['editor']['plugins']['get']('TableUtils'),_0x30fed9=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2f89a0({showActiveMarker:_0x51e9f1=!0x0,setDataAttribute:_0x2fbc34=!0x0}={}){return(_0x3a2ea1,_0x47370c,_0x96028b)=>{const {type:_0x5e835b,id:_0x4db518}=_0x10ba58['_splitMarkerName'](_0x47370c['markerName']),_0x320786=_0x10ba58['getSuggestion'](_0x4db518),_0x4d8ccb=_0x320786['data'];if('formatBlock'!=_0x320786['type']||!_0x4d8ccb||'setTableColumnHeader'!=_0x4d8ccb['commandName'])return;if(_0x47370c['item'])return void _0x3a2ea1['stop']();if(!_0x96028b['consumable']['consume'](_0x47370c['markerRange'],_0x3a2ea1['name']))return;const _0x4a016e=_0x47370c['markerRange']['start']['nodeAfter'],_0x414aca=_0x47370c['markerRange']['end']['nodeBefore'],_0x151112=_0x4a016e['parent']['parent'],{column:_0x5aa313}=_0x48ddf8['getCellLocation'](_0x4a016e),{column:_0x10e146}=_0x48ddf8['getCellLocation'](_0x414aca);for(let _0x1a559b=_0x5aa313;_0x1a559b<=_0x10e146;_0x1a559b++){const _0x256cd6=_0x48ddf8['createTableWalker'](_0x151112,{'column':_0x1a559b,'includeAllSlots':!0x1});for(const _0x9326c3 of _0x256cd6){const _0x35adaa=_0x9326c3['cell'],_0x404acb=_0x96028b['mapper']['toViewElement'](_0x35adaa);_0x96028b['writer']['addClass']('ck-suggestion-marker-'+_0x5e835b,_0x404acb),_0x2fbc34&&_0x96028b['writer']['setAttribute']('data-suggestion',_0x4db518,_0x404acb),_0x96028b['mapper']['bindElementToMarker'](_0x404acb,_0x47370c['markerName']),_0x51e9f1&&(_0x10ba58['activeMarkers']['includes'](_0x47370c['markerName'])?_0x96028b['writer']['addClass']('ck-suggestion-marker--active',_0x404acb):_0x96028b['writer']['removeClass']('ck-suggestion-marker--active',_0x404acb));}}};}_0x10ba58['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30fed9),_0x10ba58['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30fed9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2f89a0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x337ab8,_0xc43e04,_0x2d8a0a)=>{_0x2d8a0a['options']['showSuggestionHighlights']&&_0x2f89a0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x337ab8,_0xc43e04,_0x2d8a0a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1f267a,_0x38da5e,_0x2ddbea)=>{const {type:_0x58cf47,id:_0x5411b3}=_0x10ba58['_splitMarkerName'](_0x38da5e['markerName']),_0xbe6fae=_0x10ba58['getSuggestion'](_0x5411b3),_0x13c672=_0xbe6fae['data'];if('formatBlock'!=_0xbe6fae['type']||!_0x13c672||'setTableColumnHeader'!=_0x13c672['commandName'])return;const _0x18da46=_0x2ddbea['mapper']['markerNameToElements'](_0x38da5e['markerName']);if(_0x18da46){for(const _0x3a816f of _0x18da46)_0x2ddbea['writer']['removeClass']('ck-suggestion-marker-'+_0x58cf47,_0x3a816f),_0x2ddbea['writer']['removeClass']('ck-suggestion-marker--active',_0x3a816f),_0x2ddbea['writer']['removeAttribute']('data-suggestion',_0x3a816f),_0x2ddbea['mapper']['unbindElementFromMarkerName'](_0x3a816f,_0x38da5e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x256a4f=this['editor'],_0x10576e=_0x256a4f['locale'];function _0x3784d5(_0x27788b){return{'type':'format','content':o(_0x10576e,'*Format:*\x20%0',_0x27788b)};}_0x256a4f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54a206=>{if('formatBlock'!=_0x54a206['type'])return;const {data:_0x2166ae}=_0x54a206;if(_0x2166ae){if('setTableRowHeader'==_0x2166ae['commandName']){const _0x47d952=_0x2166ae['commandParams'][0x0]['forceValue'];return _0x3784d5(o(_0x10576e,_0x47d952?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2166ae['commandName']){const _0x134533=_0x2166ae['commandParams'][0x0]['forceValue'];return _0x3784d5(o(_0x10576e,_0x134533?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x57ff8a=>[_0x57ff8a,null]));class _t extends _0x3648ee{static get['requires'](){return[It];}['afterInit'](){const _0x16d708=this['editor'];if(!_0x16d708['plugins']['has']('TableClipboard'))return;const _0xcae641=_0x16d708['plugins']['get']('TrackChangesEditing'),_0x52afa2=_0x16d708['plugins']['get']('TableUtils'),_0x3af8cf=_0x16d708['plugins']['get'](It),_0x4c4eb8=_0x16d708['plugins']['get']('TableClipboard');_0x3af8cf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x16d708['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x16d708['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1124bf=null;_0x16d708['model']['on']('insertContent',(_0x44b044,_0x434749)=>{const [_0x457ab6,_0x2df603]=_0x434749,_0x1e0d6e=_0x434749[_0x434749['length']-0x1];_0x1e0d6e&&_0x1e0d6e['forceDefaultExecution']||_0xcae641['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4dab9c,_0x3c0f6a,_0x2b497f,_0x5571c9,_0x2d8a05){if(_0x3c0f6a&&!_0x3c0f6a['is']('documentSelection'))return!0x1;const _0x45ad34=_0x2d8a05['getTableIfOnlyTableInContent'](_0x4dab9c,_0x2b497f);if(!_0x45ad34||!Re(_0x45ad34,void 0x0,_0x5571c9))return!0x1;const _0x25d989=_0x5571c9['getSelectionAffectedTableCells'](_0x2b497f['document']['selection']);if(!_0x25d989['length'])return!0x1;const _0x9ab9f3=_0x25d989[0x0]['findAncestor']('table'),_0xd7fd84=_0x5571c9['getRowIndexes'](_0x25d989),_0x5821b0=_0x5571c9['getColumnIndexes'](_0x25d989),_0x21618f={'startRow':_0xd7fd84['first'],'endRow':_0xd7fd84['last'],'startColumn':_0x5821b0['first'],'endColumn':_0x5821b0['last']};return 0x1==_0x25d989['length']&&(_0x21618f['endRow']+=_0x5571c9['getRows'](_0x45ad34)-0x1,_0x21618f['endColumn']+=_0x5571c9['getColumns'](_0x45ad34)-0x1),Re(_0x9ab9f3,_0x21618f,_0x5571c9);}(_0x457ab6,_0x2df603,_0x16d708['model'],_0x52afa2,_0x4c4eb8)&&(_0x44b044['stop'](),_0x1124bf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x16d708['model']['change'](()=>{_0x16d708['model']['insertContent'](_0x434749[0x0],_0x434749[0x1],_0x434749[0x2],{'forceDefaultExecution':!0x0});const _0x353e50=_0x4fe6fa(),{rowInsertionRanges:_0x3118fd,columnInsertionRanges:_0x44ef37,insertionRanges:_0x4cc01a,deletionRanges:_0x366f26,cells:_0x200d88}=_0x1124bf;_0x3118fd['length']&&_0xcae641['markMultiRangeInsertion'](_0x3118fd,'tablePasteRow',{'tablePasteChainId':_0x353e50}),_0x44ef37['length']&&_0xcae641['markMultiRangeInsertion'](_0x44ef37,'tablePasteColumn',{'tablePasteChainId':_0x353e50}),_0x4cc01a['length']&&(_0xcae641['markMultiRangeInsertion'](_0x4cc01a,'tablePaste',{'tablePasteChainId':_0x353e50,'skipNestingCheck':!0x0}),_0x4cc01a['forEach'](_0xa05f07=>_0xa05f07['detach']?.())),_0x366f26['length']&&(_0xcae641['markMultiRangeDeletion'](_0x366f26,'tablePaste',{'tablePasteChainId':_0x353e50,'skipNestingCheck':!0x0}),_0x366f26['forEach'](_0x7f8fa0=>_0x7f8fa0['detach']?.()));const _0x35b972=_0xcae641['markMultiRangeBlockFormat'](_0x200d88['map'](({element:_0x24d9da})=>_0x24d9da),{'formatGroupId':_0x4fe6fa()},[],'tablePasteCell',{'tablePasteChainId':_0x353e50});if(_0x35b972){const _0x60fe1b=_0x35b972['getMarkers'](),_0x1dc92c=[];for(const {element:_0x166b6b,attributes:_0x332cf3}of _0x200d88){if(!_0x332cf3)continue;const _0x31ff70=_0x16d708['model']['createRangeOn'](_0x166b6b),_0x37da22=_0x60fe1b['find'](_0x4adb1b=>_0x4adb1b['getRange']()['isEqual'](_0x31ff70));_0x37da22&&_0x1dc92c['push']([_0x37da22['name'],_0x332cf3]);}_0x1dc92c['length']&&_0x35b972['setAttribute']('markerAttributes',Object['fromEntries'](_0x1dc92c));}_0x1124bf=null;}));},{'priority':_0x5d1244['high']+0xa}),_0x16d708['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x337830,_0x3bdd5f)=>{const [_0x2a0ddb,_0x2fad92,,_0x4f35fc]=_0x3bdd5f;if(!_0x1124bf)return;_0x337830['stop']();const _0x1154e4=_0x2a0ddb['cell'],_0x126711=_0x2fad92,_0x1c602c=ke(_0x1154e4),_0x483ca4=ke(_0x126711);_0x337830['return']=_0x1154e4;let _0x56d0cc=null,_0x47163e=null;if(_0x483ca4||_0x1c602c){if(_0x1c602c&&!_0x483ca4){_0x4f35fc['remove'](_0x1154e4['getChild'](0x0));for(const _0x33c0f2 of Array['from'](_0x126711['getChildren']()))_0x4f35fc['insert'](_0x33c0f2,_0x1154e4,'end');const _0x59513e=_0x1124bf['rowInsertionIndexes']['includes'](_0x2a0ddb['row']),_0x24fae4=_0x1124bf['columnInsertionIndexes']['includes'](_0x2a0ddb['column']);_0x59513e||_0x24fae4||(_0x56d0cc=_0x18bd53['fromRange'](_0x4f35fc['createRangeIn'](_0x1154e4)));}else _0x483ca4&&!_0x1c602c&&(_0x47163e=_0x4f35fc['createRangeIn'](_0x1154e4));}else{const _0x1fb562=_0x4f35fc['createElement']('tableCellSuggestion'),_0x21582c=_0x4f35fc['createElement']('tableCellSuggestion');_0x4f35fc['wrap'](_0x4f35fc['createRangeIn'](_0x1154e4),_0x21582c),_0x4f35fc['insert'](_0x1fb562,_0x1154e4,0x0);for(const _0x409579 of Array['from'](_0x126711['getChildren']()))_0x4f35fc['insert'](_0x409579,_0x1fb562,'end');_0x56d0cc=_0x18bd53['fromRange'](_0x4f35fc['createRangeOn'](_0x1fb562)),_0x47163e=_0x18bd53['fromRange'](_0x4f35fc['createRangeOn'](_0x21582c));}const _0x4e54dc=Array['from'](_0x126711['getAttributes']())['filter'](([_0x49f50a])=>Pe['includes'](_0x49f50a));_0x1124bf['cells']['push']({'element':_0x1154e4,'attributes':_0x4e54dc['length']?Object['fromEntries'](_0x4e54dc):null}),_0x56d0cc&&_0x1124bf['insertionRanges']['push'](_0x56d0cc),_0x47163e&&_0x1124bf['deletionRanges']['push'](_0x47163e);},{'priority':'high'}),_0x52afa2['on']('insertColumns',(_0x4fb6dd,_0x46a07d)=>{const [_0x46c347,_0x3beba4={}]=_0x46a07d;if(!_0x1124bf)return;const _0x4520a2=_0x3beba4['at']||0x0,_0x356cb6=_0x3beba4['columns']||0x1;_0x1124bf['columnInsertionIndexes']=new Array(_0x356cb6)['fill'](_0x4520a2)['map']((_0x15af1e,_0x267a45)=>_0x15af1e+_0x267a45);for(const {cell:_0x5b0ba7}of _0x52afa2['createTableWalker'](_0x46c347,{'startColumn':_0x4520a2,'endColumn':_0x4520a2+_0x356cb6-0x1}))_0x1124bf['columnInsertionRanges']['push'](_0x16d708['model']['createRangeOn'](_0x5b0ba7));},{'priority':'low'}),_0x52afa2['on']('insertRows',(_0x3b7e51,_0xcab0ed)=>{const [_0x36fef3,_0x47476f={}]=_0xcab0ed;if(!_0x1124bf)return;const _0x111a65=_0x47476f['at']||0x0,_0x2834a9=_0x47476f['rows']||0x1;_0x1124bf['rowInsertionIndexes']=new Array(_0x2834a9)['fill'](_0x111a65)['map']((_0x129cfe,_0x3e2017)=>_0x129cfe+_0x3e2017);for(const {cell:_0x2c7960}of _0x52afa2['createTableWalker'](_0x36fef3,{'startRow':_0x111a65,'endRow':_0x111a65+_0x2834a9-0x1}))_0x1124bf['rowInsertionRanges']['push'](_0x16d708['model']['createRangeOn'](_0x2c7960));},{'priority':'low'}),_0xcae641['descriptionFactory']['registerDescriptionCallback'](_0x4d0cc6=>{if(_0x4d0cc6['subType']&&_0x4d0cc6['subType']['startsWith']('tablePaste'))return _0x4d0cc6['previous']?{}:{'type':'insertion','content':o(_0x16d708['locale'],'*Replace\x20table\x20cells*')};});const _0x221d1a=()=>!0x1;for(const _0x132363 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xcae641['_suggestionFactory']['registerCustomCallback']('insertion',_0x132363,'join',_0x221d1a),_0xcae641['_suggestionFactory']['registerCustomCallback']('deletion',_0x132363,'join',_0x221d1a),_0xcae641['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x132363,'join',_0x221d1a);_0xcae641['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x221d1a),_0xcae641['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x36fd57,_0x5b8b23,_0x383d93)=>{const _0x59821b=_0x36fd57['map'](_0x103662=>_0x103662['getContainedElement']())['filter'](_0x34913b=>_0x34913b),_0x5eb39e=new Map(_0x59821b['map'](_0x45d6bc=>[_0x45d6bc,null]));if(_0x1124bf){for(const {element:_0x4179ea,attributes:_0x3eabb5}of _0x1124bf['cells'])_0x3eabb5&&_0x5eb39e['set'](_0x4179ea,_0x3eabb5);}else{if(_0x383d93&&_0x383d93['markerAttributes'])for(const [_0xa8c707,_0x132e8c]of Object['entries'](_0x383d93['markerAttributes'])){const _0x5a4bbf=_0x16d708['model']['markers']['get'](_0xa8c707),_0xa7757e=_0x5a4bbf?_0x5a4bbf['getRange']()['getContainedElement']():null;_0xa7757e&&_0x5eb39e['set'](_0xa7757e,_0x132e8c);}}_0x16d708['model']['change'](_0x2980c1=>{for(const [_0x32f58c,_0x4e4d7f]of _0x5eb39e)_0x2980c1['setAttributes']({...we,..._0x4e4d7f},_0x32f58c);});});const _0xee03f6=(_0x5ed8f8,_0x257311)=>{_0xcae641['_suggestionFactory']['registerCustomCallback'](_0x5ed8f8,'tablePaste',_0x257311,(_0x42c8e4,_0x47f72e,_0xaa97f6)=>{_0x16d708['model']['change'](_0x101575=>{const _0xc02530=[];for(const _0x8d685c of _0x42c8e4){const _0x128c80=_0x8d685c['start']['nodeAfter'];_0x128c80['is']('element','tableCellSuggestion')&&_0xc02530['push'](_0x128c80);}_0xcae641['_suggestionFactory']['getSuggestionCallback'](_0x5ed8f8,null,_0x257311)(_0x42c8e4,_0x47f72e,_0xaa97f6);for(const _0x3b17e7 of _0xc02530)'$graveyard'!=_0x3b17e7['root']['rootName']&&_0x101575['unwrap'](_0x3b17e7);});});};_0xee03f6('insertion','accept'),_0xee03f6('insertion','discard'),_0xee03f6('deletion','accept'),_0xee03f6('deletion','discard'),_0xcae641['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5f551e=>{const _0x2cca69=_0x5f551e['map'](_0x2d1710=>_0x2d1710['getContainedElement']()),_0x45303c=_0x2cca69[0x0]['findAncestor']('table'),{minRow:_0x2702d9,maxRow:_0x2bdd85}=_0x3af8cf['_getCoordsForCells'](_0x2cca69);_0x52afa2['removeRows'](_0x45303c,{'at':_0x2702d9,'rows':_0x2bdd85-_0x2702d9+0x1});}),_0xcae641['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xeaeef7=>{const _0x1ae3a3=_0xeaeef7['map'](_0x80fd6b=>_0x80fd6b['getContainedElement']()),_0x1f9d83=_0x1ae3a3[0x0]['findAncestor']('table'),{minColumn:_0x41ff76,maxColumn:_0x933b5e}=_0x3af8cf['_getCoordsForCells'](_0x1ae3a3);_0x52afa2['removeColumns'](_0x1f9d83,{'at':_0x41ff76,'columns':_0x933b5e-_0x41ff76+0x1});});const _0xd0b43=(_0x44fcf9,_0x4d6f08)=>{if(!_0x4d6f08['subType']||!_0x4d6f08['subType']['startsWith']('tablePaste'))return;const _0x2c181d=_0x4d6f08['attributes']['tablePasteChainId'],_0x534dba=_0xcae641['getSuggestions']()['filter'](_0x57beb4=>_0x57beb4['isInContent']&&_0x57beb4['attributes']&&_0x57beb4['attributes']['tablePasteChainId']==_0x2c181d);_0x534dba['length']&&_0x4d6f08['getAllAdjacentSuggestions']()['length']!=_0x534dba['length']&&_0x534dba['reduce']((_0x353836,_0x1d9bb6)=>(_0x353836['next']=_0x1d9bb6,_0x1d9bb6['previous']=_0x353836,_0x1d9bb6));};function _0x249a5a(_0x5654b5,_0x4a4edb=!0x0){const {id:_0x45bb6d,authorId:_0x5ecdec}=_0xcae641['_splitMarkerName'](_0x5654b5['markerName']),_0x2b2e9b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x44e7e0=_0xcae641['activeMarkers']['includes'](_0x5654b5['markerName']);return _0x44e7e0&&_0x2b2e9b['push']('ck-suggestion-marker--active'),{'classes':_0x2b2e9b,'attributes':{'data-suggestion':_0x45bb6d,'data-author-id':_0x5ecdec},'priority':_0x44e7e0&&_0x4a4edb?0xbc2:0xbb8};}_0xcae641['on']('suggestionLoaded',_0xd0b43,{'priority':'high'}),_0xcae641['on']('suggestionUnloaded',_0xd0b43,{'priority':'high'}),_0x16d708['model']['document']['registerPostFixer'](()=>{let _0x58f4fb=!0x1;const _0x30f1bc=Array['from'](_0x16d708['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43d867,data:_0x4c91a3}of _0x30f1bc){const {group:_0x541ed4,type:_0x13cb33,id:_0x598e36}=_0xcae641['_splitMarkerName'](_0x43d867);if('suggestion'!=_0x541ed4||'deletion'!=_0x13cb33||_0x4c91a3['oldRange'])continue;if(!_0xcae641['hasSuggestion'](_0x598e36))continue;const _0x2d6c71=_0xcae641['getSuggestion'](_0x598e36)['getRanges'](),_0x3629c5=_0x16d708['plugins']['get']('Users')['me'];for(const _0x35119a of _0xcae641['getSuggestions']()){if(!_0x35119a['isInContent']||_0x35119a['author']!=_0x3629c5)continue;if('formatBlock'!=_0x35119a['type']||'tablePasteCell'!=_0x35119a['subType'])continue;if(_0x35119a['getRanges']()['every'](_0x260a27=>_0x2d6c71['some'](_0x1adb44=>_0x1adb44['containsRange'](_0x260a27,!0x0)))){for(const _0x3e0f4d of _0x35119a['getAllAdjacentSuggestions']())_0x3e0f4d['isInContent']&&(_0x3e0f4d['discard'](),_0x58f4fb=!0x0);}}}return _0x58f4fb;}),_0x16d708['model']['document']['registerPostFixer'](_0x1dd698=>{const _0xa8e5f6=_0x16d708['commands']['get']('redo');if(!_0xa8e5f6||!_0xa8e5f6['_createdBatches']['has'](_0x1dd698['batch']))return!0x1;let _0x2653bf=!0x1;const _0x1560e3=_0x16d708['plugins']['get']('Users')['me'],_0x3de8e2=_0x16d708['model']['document']['differ']['getChanges'](),_0x37d7e0=Array['from'](_0x16d708['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1436cd,data:_0x68692e})=>{const {group:_0x5dbfdc,subType:_0x17fba9,authorId:_0x1b0a41}=_0xcae641['_splitMarkerName'](_0x1436cd);return'suggestion'==_0x5dbfdc&&'tablePaste'==_0x17fba9&&_0x1b0a41==_0x1560e3['id']&&!_0x68692e['oldRange'];});for(const _0x523be8 of _0x3de8e2){if('insert'!=_0x523be8['type']||'tableCellSuggestion'!=_0x523be8['name']||0x1!=_0x523be8['length'])continue;const _0x5f5b7a=_0x1dd698['createRange'](_0x523be8['position'],_0x523be8['position']['getShiftedBy'](0x1));if(!_0x37d7e0['find'](({data:_0x4e80b6})=>_0x4e80b6['newRange']['isEqual'](_0x5f5b7a))){for(const {name:_0x8f7118,data:_0x3a2fbe}of _0x37d7e0)if(_0x5f5b7a['containsRange'](_0x3a2fbe['newRange'])){_0x1dd698['updateMarker'](_0x8f7118,{'range':_0x5f5b7a}),_0x2653bf=!0x0;break;}}}return _0x2653bf;}),_0x16d708['model']['document']['registerPostFixer'](_0x1fedae=>{let _0x1dadc8=!0x1;const _0x484002=_0x16d708['plugins']['get']('Users')['me'],_0x178658=_0xcae641['getSuggestions']()['filter'](_0xc3227e=>_0xc3227e['isInContent']&&_0xc3227e['author']==_0x484002),_0x4763bd=new Set(),_0x55a9d5=new Set();for(const _0x943efd of _0x178658)if('tablePaste'==_0x943efd['subType'])for(const _0x1de4a5 of _0x943efd['getMarkers']()){const _0x4a61ba=_0x1de4a5['getRange']()['getContainedElement']();if(_0x4a61ba){if(_0x4a61ba['is']('element','tableCellSuggestion')&&ke(_0x4a61ba)){_0x943efd['removeMarker'](_0x1de4a5['name']),_0x4763bd['add'](_0x4a61ba),_0x1dadc8=!0x0;const _0x52079b=_0x4a61ba['nextSibling'],_0x4b1ab9=_0x4a61ba['previousSibling'],_0x1e9bea=_0x52079b&&_0x52079b['is']('element','tableCellSuggestion'),_0x50ce83=_0x4b1ab9&&_0x4b1ab9['is']('element','tableCellSuggestion');_0x1e9bea&&!_0x4763bd['has'](_0x52079b)&&_0x55a9d5['add'](_0x52079b),_0x50ce83&&!_0x4763bd['has'](_0x4b1ab9)&&_0x55a9d5['add'](_0x4b1ab9);}else _0x4a61ba['is']('element','paragraph')&&_0x4a61ba['isEmpty']&&(_0x943efd['removeMarker'](_0x1de4a5['name']),_0x1dadc8=!0x0);}}else{if('tablePasteCell'==_0x943efd['subType']){if(!_0x943efd['attributes']||!_0x943efd['attributes']['tablePasteChainId'])continue;const _0x2a9c88=_0x943efd['attributes']['markerAttributes'];if(_0x2a9c88&&Object['keys'](_0x2a9c88)['length'])continue;const _0x48834c=_0x943efd['attributes']['tablePasteChainId'];let _0x799833=!0x0,_0x2274ee=!0x0;for(const _0x2fb8b2 of _0x178658)if(_0x2fb8b2['subType']&&_0x2fb8b2['subType']['startsWith']('tablePaste')){if(!_0x2fb8b2['attributes']['tablePasteChainId']){_0x2274ee=!0x1;break;}if(_0x2fb8b2['id']!=_0x943efd['id']&&_0x2fb8b2['attributes']['tablePasteChainId']==_0x48834c){_0x799833=!0x1;break;}}_0x2274ee&&_0x799833&&(_0x943efd['removeMarkers'](),_0x1dadc8=!0x0);}}for(const _0x347fb5 of _0x4763bd)_0x1fedae['remove'](_0x347fb5);for(const _0x156503 of _0x55a9d5)_0x1fedae['unwrap'](_0x156503);return _0x1dadc8;}),_0x16d708['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1d79d8,_0x2ee121)=>_0x249a5a(_0x1d79d8),'converterPriority':'high'}),_0x16d708['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x252ccf,_0x3db3b5)=>_0x3db3b5['options']['showSuggestionHighlights']?_0x249a5a(_0x252ccf,!0x1):null,'converterPriority':'high'});const _0x355822=_0x16d708['editing']['view'];this['listenTo'](_0x355822['document'],'clipboardOutput',(_0x724a9d,_0x55cf93)=>{const _0x407881=[];for(const _0x327d6e of _0x355822['createRangeIn'](_0x55cf93['content'])['getItems']())_0x327d6e['is']('element','suggestion-td')&&_0x407881['push'](_0x327d6e);_0x355822['change'](_0x133d2d=>{for(const _0x3bfb9d of _0x407881)_0x133d2d['move'](_0x133d2d['createRangeIn'](_0x3bfb9d),_0x133d2d['createPositionBefore'](_0x3bfb9d)),_0x133d2d['remove'](_0x3bfb9d);});});}}function ke(_0x12761c){if(_0x12761c['isEmpty'])return!0x0;const _0x1318a8=_0x12761c['getChild'](0x0);return _0x1318a8['is']('element','paragraph')&&_0x1318a8['isEmpty'];}function Re(_0x16dbb6,_0x403001={},_0x15db7d){for(const {isAnchor:_0x3a454e,cellHeight:_0x4867a3,cellWidth:_0xe598b}of _0x15db7d['createTableWalker'](_0x16dbb6,{'includeAllSlots':!0x0,..._0x403001}))if(!_0x3a454e||0x1!=_0x4867a3||0x1!=_0xe598b)return!0x1;return!0x0;}class Nt extends _0x3648ee{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1a2506=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a2506['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1a2506['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1a2506['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a2506['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1a2506['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1a2506['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x34eaa1,_0x3eb811){const _0x31320a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x133840=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1f03e5=_0x3eb811['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x36d9a1=_0x133840['getColumnGroupElement'](_0x1f03e5);let _0x406e39=_0x36d9a1?_0x133840['getTableColumnsWidths'](_0x36d9a1):null,_0x3becb7=_0x1f03e5['getAttribute']('tableWidth')||null;const _0x4bce58=_0x3eb811['tableWidth']||_0x3becb7,_0x404c43=_0x3eb811['columnWidths']||_0x406e39,_0x24ccda=this['editor']['plugins']['get']('Users')['me'];for(const _0x275a13 of _0x31320a['getSuggestions']()){const _0x1bbaf9=_0x275a13['getContainedElement']();if('resizeTable'===_0x275a13['subType']&&_0x1bbaf9===_0x1f03e5){_0x275a13['author']!==_0x24ccda&&_0x275a13['discard']();const _0xaed533=_0x275a13['data']['commandParams'];_0x3becb7=_0xaed533[0x0]['tableWidth'],_0x406e39=_0xaed533[0x0]['columnWidths'];break;}}_0x34eaa1({'table':_0x1f03e5,'tableWidth':_0x4bce58,'columnWidths':_0x404c43}),_0x31320a['markBlockFormat'](_0x1f03e5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3becb7,'columnWidths':_0x406e39}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x689e98){if('formatBlock'!=_0x689e98['type']&&'formatInline'!=_0x689e98['type'])return;const {data:_0x19bcd6}=_0x689e98;if(_0x19bcd6&&'resizeTable'===_0x19bcd6['formatGroupId']){const _0x9ca893='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x9ca893)};}}}class Dt extends _0x3648ee{['afterInit'](){const _0x5b3ab6=this['editor'];_0x5b3ab6['plugins']['has']('Template')&&_0x5b3ab6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3648ee{['afterInit'](){const _0x241524=this['editor'];if(!_0x241524['commands']['get']('insertTableOfContents'))return;_0x241524['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x586019=_0x241524['plugins']['get']('TrackChangesEditing'),_0x191c86=_0x241524['locale'];_0x586019['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2b5fa5=>o(_0x191c86,'ELEMENT_TABLE_OF_CONTENTS',_0x2b5fa5));}}class $t extends _0x3648ee{['afterInit'](){const _0x5188d0=this['editor'];if(!_0x5188d0['plugins']['has']('Title'))return;const _0x1ded0c=_0x5188d0['plugins']['get']('TrackChangesEditing');_0x1ded0c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5188d0['locale'],'ELEMENT_TITLE')),_0x5188d0['model']['document']['registerPostFixer'](_0x4b8d74=>{let _0xe39360=!0x1;const _0x1d7597=Array['from'](_0x5188d0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34cf53,data:_0x51af81}of _0x1d7597){const {group:_0x2d106a}=_0x1ded0c['_splitMarkerName'](_0x34cf53);if('suggestion'!==_0x2d106a||!_0x51af81['newRange'])continue;const _0x309f74=_0x51af81['newRange'],_0x24594a=_0x309f74['end']['nodeBefore'];if(!_0x24594a||!_0x24594a['is']('element','title-content'))continue;if(!_0x309f74['start']['isTouching'](_0x309f74['end']))continue;const _0x2b770d=_0x5188d0['model']['schema']['getNearestSelectionRange'](_0x309f74['end'],'forward');if(_0x2b770d&&_0x2b770d['isCollapsed']){const _0x130faf=_0x4b8d74['createRange'](_0x309f74['start'],_0x2b770d['start']);_0x130faf['isEqual'](_0x309f74)||(_0x4b8d74['updateMarker'](_0x34cf53,{'range':_0x130faf}),_0xe39360=!0x0);}_0xe39360||(_0x4b8d74['removeMarker'](_0x34cf53),_0xe39360=!0x0);}return _0xe39360;});}}class Bt extends _0x3648ee{['afterInit'](){const _0x5598a3=this['editor'],_0x4a2409=_0x5598a3['plugins']['get']('TrackChangesEditing');_0x5598a3['plugins']['has']('UndoEditing')&&(_0x4a2409['enableCommand']('undo'),_0x4a2409['enableCommand']('redo'));}}class xt extends _0x3648ee{static get['requires'](){return[It];}['afterInit'](){const _0x319c0b=this['editor'];if(!_0x319c0b['plugins']['has']('TableCaptionEditing'))return;_0x319c0b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3648ee{['tableProperties'];['tableCellProperties'];constructor(_0x2312ec){super(_0x2312ec),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x5c82e2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x39bf3b of this['tableProperties'])_0x5c82e2['enableCommand'](_0x39bf3b,(_0xc08511,_0x14602b)=>{const _0x4684a5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x39bf3b,[_0x4684a5],this['tableProperties'],'tableProperties',_0xc08511,_0x14602b);});_0x5c82e2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5c82e2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c82e2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x437636,_0x1c016a)=>this['handleDiscardAction'](this['tableProperties'],_0x437636,_0x1c016a)),_0x5c82e2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x42104f of this['tableCellProperties'])_0x5c82e2['enableCommand'](_0x42104f,(_0xb54524,_0x4cf280)=>{const _0x15b440=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x42104f,_0x15b440,this['tableCellProperties'],'tableCellProperties',_0xb54524,_0x4cf280);});_0x5c82e2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5c82e2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c82e2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x43d01f,_0x427ad6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x43d01f,_0x427ad6)),_0x5c82e2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5c82e2['descriptionFactory']['registerDescriptionCallback'](_0x238e73=>this['handleSuggestionDescription'](_0x238e73));}['_handlePropertyChange'](_0x1fab6c,_0x44c411,_0x414f78,_0x32116e,_0x5e7481,_0x22d828){const _0x2decea=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x22d828['batch'],()=>{for(const _0x39d513 of _0x44c411){if(this['_getSuggestion'](_0x39d513,_0x32116e))_0x5e7481(_0x22d828);else{const _0x4a8472={};for(const _0x36cd00 of _0x414f78){const _0x5842f3=_0x39d513['getAttribute'](_0x36cd00);void 0x0!==_0x5842f3&&(_0x4a8472[_0x36cd00]=_0x5842f3);}_0x5e7481(_0x22d828),_0x2decea['markBlockFormat'](_0x39d513,{'commandParams':[_0x4a8472]},[],_0x32116e);}}});}['handleDiscardAction'](_0x1b0624,_0x1638b7,_0x16c09b){const _0x2c88a3=_0x1638b7[0x0]['start']['nodeAfter'],_0x29c5e0=_0x16c09b['commandParams'][0x0];this['editor']['model']['change'](_0x519a63=>{for(const _0x3ae554 of _0x1b0624)void 0x0!==_0x29c5e0[_0x3ae554]?_0x519a63['setAttribute'](_0x3ae554,_0x29c5e0[_0x3ae554],_0x2c88a3):_0x519a63['removeAttribute'](_0x3ae554,_0x2c88a3);});}['handleSuggestionDescription'](_0x1ac15c){if(_0x1ac15c['data'])switch(_0x1ac15c['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2aad69,_0x114c2c){const _0x36404c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b3082 of _0x36404c['getSuggestions']({'skipNotAttached':!0x0})){const _0x29c665=_0x5b3082['getContainedElement']();if(_0x5b3082['subType']===_0x114c2c&&_0x29c665===_0x2aad69)return _0x5b3082;}return null;}}const m='$elementName';class p extends _0x3648ee{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x251663,_0x4dd1f0,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0xbeeecc){function _0x318f86(_0x40597e){return _0x40597e['map'](_0x4f180a=>String['fromCharCode'](_0x4f180a))['join']('');}super(_0xbeeecc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5310b1,_0x29dcbe,_0x1c97c4,_0x3cfebb)=>{this['_model']['change'](()=>{for(const _0x213781 of[..._0x3cfebb,..._0x1c97c4])this['_model']['markers']['has'](_0x213781)&&_0xbeeecc['editing']['reconvertMarker'](_0x213781);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xbeeecc['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0xbeeecc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xbeeecc['config']['get']('trackChanges.trackFormatChanges'),_0xbeeecc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xbeeecc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xbeeecc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x318f86([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x318f86([0x34,0x30,0x34,0x38,0x31,0x38,0x33,0x32]);}['init'](){const _0x4acfc7=this['editor'],_0x521d5f=(_0x54eb38,_0x543745)=>{if('attribute'!=_0x54eb38)return'ck-suggestion-marker-'+_0x54eb38;const _0x43209b=_0x543745['split']('|')[0x0];return this['_isBlockAttribute'](_0x43209b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4acfc7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1ff45a=>{const {id:_0x47cf0b,authorId:_0x4381bb,type:_0x3c5b91,subType:_0x4d03e8}=this['_splitMarkerName'](_0x1ff45a['markerName']),_0x5d808a=['ck-suggestion-marker',_0x521d5f(_0x3c5b91,_0x4d03e8)];let _0x504924=0xbb8;return this['activeMarkers']['includes'](_0x1ff45a['markerName'])&&(_0x5d808a['push']('ck-suggestion-marker--active'),_0x504924=0xbc2),'deletion'==_0x3c5b91&&(_0x504924+=0x5),{'classes':_0x5d808a,'attributes':{'data-suggestion':_0x47cf0b,'data-author-id':_0x4381bb},'priority':_0x504924};}}),_0x4acfc7['conversion']['for']('dataDowncast')['add'](_0x22a1f5=>{_0x22a1f5['on']('addMarker:suggestion',(_0x258847,_0x251a54,_0x4878c3)=>{if(!_0x4878c3['options']['showSuggestionHighlights'])return;const _0x457c90=_0x251a54['item'];if(!_0x457c90)return;const _0x4fbf81=_0x4878c3['mapper']['toViewElement'](_0x457c90);_0x4acfc7['model']['schema']['isObject'](_0x457c90)&&_0x4fbf81&&!_0x4fbf81['getCustomProperty']('widget')&&_0x4fbf81['is']('containerElement')&&_0x438de3(_0x4fbf81,_0x4878c3['writer']);},{'priority':'high'});}),_0x4acfc7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4f8ef4,_0x4bd49d)=>{if(!_0x4bd49d['options']['showSuggestionHighlights'])return null;const {type:_0x31ab82,subType:_0xf8f575}=this['_splitMarkerName'](_0x4f8ef4['markerName']);return{'classes':['ck-suggestion-marker',_0x521d5f(_0x31ab82,_0xf8f575)],'priority':0xbb8};}});const _0x17ee3d=({showActiveMarkers:_0x248370=!0x0,isAttributeSuggestion:_0x3a79ad=!0x1}={})=>(_0x295b64,_0x282287,_0xd87b40)=>{if(!_0x282287['item'])return;const {id:_0x9199ef,authorId:_0x46f595}=this['_splitMarkerName'](_0x282287['markerName']);if(_0x3a79ad){const _0x4e83c0=this['_suggestions']['get'](_0x9199ef),_0x29c483=this['_getAttributeKey'](_0x4e83c0);if(!this['_isBlockAttribute'](_0x29c483))return;}if(_0x282287['item']['is']('selection'))return void _0xd87b40['consumable']['consume'](_0x282287['item'],_0x295b64['name']);const _0x1a7a0d=_0xd87b40['mapper']['toViewElement'](_0x282287['item']);if(_0x282287['item']['is']('element')&&_0x4acfc7['model']['schema']['isBlock'](_0x282287['item'])&&!_0x1a7a0d['getCustomProperty']('addHighlight')){_0xd87b40['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1a7a0d),_0xd87b40['writer']['setAttribute']('data-suggestion',_0x9199ef,_0x1a7a0d),_0xd87b40['writer']['setAttribute']('data-author-id',_0x46f595,_0x1a7a0d),_0xd87b40['mapper']['bindElementToMarker'](_0x1a7a0d,_0x282287['markerName']),_0x248370&&(this['activeMarkers']['includes'](_0x282287['markerName'])?_0xd87b40['writer']['addClass']('ck-suggestion-marker--active',_0x1a7a0d):_0xd87b40['writer']['removeClass']('ck-suggestion-marker--active',_0x1a7a0d));for(const _0x5ac1c7 of _0x4acfc7['model']['createRangeIn'](_0x282287['item'])['getItems']())_0xd87b40['consumable']['consume'](_0x5ac1c7,_0x295b64['name']);_0xd87b40['consumable']['consume'](_0x282287['item'],_0x295b64['name']);}};_0x4acfc7['conversion']['for']('dataDowncast')['add'](_0x531821=>{_0x531821['on']('addMarker:suggestion:formatBlock',(_0x1e1bc0,_0x304b92,_0x507943)=>{_0x507943['options']['showSuggestionHighlights']&&_0x17ee3d({'showActiveMarkers':!0x1})(_0x1e1bc0,_0x304b92,_0x507943);},{'priority':'highest'});}),_0x4acfc7['conversion']['for']('dataDowncast')['add'](_0x492e1f=>{_0x492e1f['on']('addMarker:suggestion:attribute',(_0x20b804,_0x5a44fe,_0x53863e)=>{_0x53863e['options']['showSuggestionHighlights']&&_0x17ee3d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x20b804,_0x5a44fe,_0x53863e);},{'priority':'highest'});}),_0x4acfc7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1249d6,_0x4de329)=>_0x4de329['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1249d6['substr'](0xb)}}),_0x4acfc7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x33ee9f,{writer:_0x28d4bd})=>{let _0x420e36='suggestion:'+_0x33ee9f['getAttribute']('suggestion-type')+':'+_0x33ee9f['getAttribute']('id');return _0x33ee9f['getAttribute']('marker-count')&&(_0x420e36+=':'+_0x33ee9f['getAttribute']('marker-count')),_0x28d4bd['createElement']('$marker',{'data-name':_0x420e36});}}),_0x4acfc7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4acfc7['conversion']['for']('editingDowncast')['add'](_0x19fd0a=>{_0x19fd0a['on']('addMarker:suggestion:formatBlock',_0x17ee3d(),{'priority':'high'});}),_0x4acfc7['conversion']['for']('editingDowncast')['add'](_0x3db3fc=>{_0x3db3fc['on']('addMarker:suggestion:attribute',_0x17ee3d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4acfc7['conversion']['for']('editingDowncast')['add'](_0x1b7be0=>{_0x1b7be0['on']('removeMarker:suggestion:formatBlock',(_0x21595f,_0x434c82,_0x4a1fe2)=>{const _0x183b7f=_0x4a1fe2['mapper']['markerNameToElements'](_0x434c82['markerName']);if(_0x183b7f){for(const _0x219e2c of _0x183b7f)_0x219e2c['getCustomProperty']('addHighlight')||(_0x4a1fe2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x219e2c),_0x4a1fe2['writer']['removeAttribute']('data-suggestion',_0x219e2c),_0x4a1fe2['writer']['removeAttribute']('data-author-id',_0x219e2c),_0x4a1fe2['mapper']['unbindElementFromMarkerName'](_0x219e2c,_0x434c82['markerName']));}},{'priority':'high'});}),_0x4acfc7['conversion']['for']('editingDowncast')['add'](_0x46c4bf=>{_0x46c4bf['on']('removeMarker:suggestion:attribute',(_0x533d7e,_0x285c8c,_0x217c88)=>{const _0x2acdd1=_0x217c88['mapper']['markerNameToElements'](_0x285c8c['markerName']);if(!_0x2acdd1)return;const {id:_0x19d6ca}=this['_splitMarkerName'](_0x285c8c['markerName']),_0x4d306a=this['_suggestions']['get'](_0x19d6ca),_0x46dea6=this['_getAttributeKey'](_0x4d306a);if(this['_isBlockAttribute'](_0x46dea6)){for(const _0x36fd5b of _0x2acdd1)_0x36fd5b['getCustomProperty']('addHighlight')||(_0x217c88['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x36fd5b),_0x217c88['writer']['removeAttribute']('data-suggestion',_0x36fd5b),_0x217c88['writer']['removeAttribute']('data-author-id',_0x36fd5b),_0x217c88['mapper']['unbindElementFromMarkerName'](_0x36fd5b,_0x285c8c['markerName']));}},{'priority':'high'});}),_0x4acfc7['model']['document']['registerPostFixer'](_0x40b88e=>{let _0x3f6c53=!0x1;const _0x15251a=Array['from'](_0x4acfc7['model']['document']['differ']['getChangedMarkers']()),_0x308e89=new Set();for(const {name:_0x40cd55,data:_0x43016c}of _0x15251a){const {group:_0x527ed3,type:_0x566678,subType:_0x572911,id:_0x5f2269}=this['_splitMarkerName'](_0x40cd55);if('suggestion'!==_0x527ed3)continue;const _0x3cfce1=this['_suggestions']['get'](_0x5f2269);if(null!=_0x43016c['newRange']){'formatInline'==_0x566678&&(_0x3f6c53=_0x3f6c53||Ut(_0x43016c['newRange'],_0x40cd55,_0x40b88e,_0x4acfc7['model']['schema']));const _0x47ee1b='attribute'==_0x566678&&this['_isBlockAttribute'](_0x572911['split']('|')[0x0]);if(_0x43016c['newRange']['isCollapsed']||'$graveyard'==_0x43016c['newRange']['root']['rootName']||'formatBlock'==_0x566678&&!Ft(_0x43016c['newRange'])||_0x47ee1b&&!Ft(_0x43016c['newRange'])||'deletion'==_0x566678&&!(!Vt(_0x5a5046=_0x43016c['newRange'])&&!function(_0x6cfd81){return _0x6cfd81['start']['parent']==_0x6cfd81['end']['nodeBefore']&&_0x6cfd81['start']['isAtEnd'];}(_0x5a5046)))_0x40b88e['removeMarker'](_0x40cd55),_0x3f6c53=!0x0;else{if(!_0x3cfce1||!_0x3cfce1['isInContent'])continue;if(_0x43016c['newRange']&&_0x43016c['oldRange']&&_0x43016c['newRange']['isEqual'](_0x43016c['oldRange']))continue;_0x308e89['add'](_0x3cfce1);}}}var _0x5a5046;return _0x308e89['size']>0x0&&(_0x3f6c53=!!this['_joinWithAdjacentSuggestions'](_0x308e89)||_0x3f6c53),_0x3f6c53;}),_0x4acfc7['model']['document']['registerPostFixer'](_0x8ffcac=>{let _0xe12502=!0x1;for(const _0x52c417 of _0x4acfc7['model']['document']['differ']['getChanges']())if('insert'==_0x52c417['type'])for(const _0x52ec70 of this['_suggestions']['values']()){if(_0x52ec70['isMultiRange']||!_0x52ec70['isInContent'])continue;const _0x205917='formatBlock'==_0x52ec70['type'],_0x4f8987=this['_getAttributeKey'](_0x52ec70),_0x5b017f=_0x4f8987&&this['_isBlockAttribute'](_0x4f8987);if(!_0x205917&&!_0x5b017f)continue;const _0x42e641=_0x52ec70['getFirstRange']();if(_0x42e641['start']['parent']!=_0x42e641['end']['parent']&&!_0x42e641['end']['isAtEnd']){const _0x36d1e8=_0x4acfc7['model']['createPositionAt'](_0x42e641['start']['nodeAfter'],'end'),_0x53d692=_0x4acfc7['model']['createRange'](_0x42e641['start'],_0x36d1e8);_0x8ffcac['updateMarker'](_0x52ec70['getFirstMarker'](),{'range':_0x53d692}),_0xe12502=!0x0;}}return _0xe12502;}),_0x4acfc7['model']['document']['registerPostFixer'](_0x16656c=>this['_processAttributeChanges'](_0x16656c)),_0x4acfc7['model']['document']['registerPostFixer'](_0x1f37d0=>!_0x1f37d0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1f37d0)),_0x4acfc7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4acfc7['model']['document']['on']('change:data',(_0x56827d,_0x20575e)=>{if(!_0x20575e['isLocal']||_0x20575e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f65f7=_0x4acfc7['model']['document']['differ']['getChanges']();if(0x0==_0x3f65f7['length'])return;const _0x5d550f=[],_0x51eaad=_0x3f65f7['filter'](_0x7d5a27=>'attribute'==_0x7d5a27['type']),_0x21d1c1=_0x3f65f7['filter'](_0x934010=>'insert'==_0x934010['type']&&'$text'!=_0x934010['name']);for(const _0x1c539b of _0x51eaad)this['_isRegisteredAttribute'](_0x1c539b['attributeKey'])&&_0x5d550f['push']({'key':_0x1c539b['attributeKey'],'newValue':_0x1c539b['attributeNewValue'],'oldValue':_0x1c539b['attributeOldValue'],'range':Pt(_0x1c539b['range'],_0x4acfc7['model'])});for(const _0x83819a of _0x21d1c1){if('rename'!=_0x83819a['action']&&'refresh'!=_0x83819a['action'])continue;const _0x550f27=Lt(_0x83819a['position']['nodeAfter'],_0x4acfc7['model']),_0x515566=_0x83819a['before'];'rename'==_0x83819a['action']&&_0x5d550f['push']({'key':m,'newValue':_0x83819a['name'],'oldValue':_0x515566['name'],'range':_0x550f27});for(const [_0x13fdc1,_0x56eb9b]of _0x515566['attributes']){if(!this['_isRegisteredAttribute'](_0x13fdc1))continue;const _0x1240c0=_0x83819a['attributes']['get'](_0x13fdc1);_0x56eb9b!==_0x1240c0&&_0x5d550f['push']({'key':_0x13fdc1,'newValue':_0x1240c0,'oldValue':_0x56eb9b,'range':_0x550f27});}for(const [_0x4a3104,_0x3c597b]of _0x83819a['attributes'])this['_isRegisteredAttribute'](_0x4a3104)&&(_0x515566['attributes']['has'](_0x4a3104)||_0x5d550f['push']({'key':_0x4a3104,'newValue':_0x3c597b,'oldValue':null,'range':_0x550f27}));}0x0!=_0x5d550f['length']&&_0x4acfc7['model']['enqueueChange'](_0x20575e,_0x3b79da=>{const _0x3565c1=_0x4fe6fa();for(const {range:_0x1ec588,key:_0x27f57f,oldValue:_0x3f70e1,newValue:_0xb5ff3e}of _0x5d550f)this['markAttributeChange'](_0x1ec588,_0x27f57f,_0x3f70e1,_0xb5ff3e,{'groupId':_0x3565c1});this['_reduceExistingSuggestions'](_0x3b79da,_0x5d550f);});},{'priority':'lowest'}),_0x4acfc7['model']['markers']['on']('update:suggestion',(_0x4d8464,_0x3208cd,_0x424745)=>{if(null==_0x424745){const {id:_0x19df08}=this['_splitMarkerName'](_0x3208cd['name']),_0x519d7e=this['_suggestions']['get'](_0x19df08);_0x519d7e&&_0x519d7e['addMarkerName'](_0x3208cd['name']);}}),_0x4acfc7['model']['document']['on']('change:data',()=>{const _0x3e0705=Array['from'](_0x4acfc7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3b4fc5=>'suggestion'===this['_splitMarkerName'](_0x3b4fc5['name'])['group']);if(0x0===_0x3e0705['length'])return;_0x3e0705['sort']((_0x407df9,_0x33dfe9)=>{const _0x1b5019=_0x407df9['data']['oldRange'],_0x3f9ed4=_0x33dfe9['data']['oldRange'];return null===_0x1b5019&&null===_0x3f9ed4?0x0:null===_0x1b5019&&null!==_0x3f9ed4?-0x1:null!==_0x1b5019&&null===_0x3f9ed4?0x1:_0x1b5019['start']['isBefore'](_0x3f9ed4['start'])?-0x1:0x1;});const _0x35988f=new Set(),_0x5adbea=new Set();for(const {name:_0x223580,data:_0x522aef}of _0x3e0705){const {id:_0x1971f6}=this['_splitMarkerName'](_0x223580);if(null===_0x522aef['oldRange']){const _0x3e71bc=this['_handleNewSuggestionMarker'](_0x223580);_0x5adbea['add'](_0x3e71bc);}else{const _0x255cc8=this['_suggestions']['get'](_0x1971f6);null!==_0x522aef['newRange']||_0x255cc8['isInContent']?(_0x35988f['add'](_0x255cc8['head']),_0x5adbea['add'](_0x255cc8)):this['_removeSuggestion'](_0x255cc8);}}_0x5adbea['size']>0x0&&this['_refreshSuggestionsChain'](_0x5adbea);for(const _0x4126e2 of _0x35988f)this['fire']('suggestionChanged',_0x4126e2);}),_0x4acfc7['model']['on']('applyOperation',(_0x305048,_0xf737b9)=>{const _0x273e18=_0xf737b9[0x0];if(!this['_suggestions']['size'])return;if(!_0x273e18['isDocumentOperation'])return;if(_0x273e18['batch']['isUndo']||!_0x273e18['batch']['isLocal'])return;let _0x676dac,_0x11b372;switch(_0x273e18['type']){case'insert':_0x676dac=_0x4acfc7['model']['createPositionAt'](_0x273e18['position']),_0x11b372=_0x676dac['getShiftedBy'](_0x273e18['howMany']);break;case'split':_0x676dac=_0x4acfc7['model']['createPositionAt'](_0x273e18['splitPosition']),_0x11b372=_0x4acfc7['model']['createPositionAt'](_0x273e18['moveTargetPosition']);break;case'move':_0x676dac=_0x4acfc7['model']['createPositionAt'](_0x273e18['targetPosition']),_0x11b372=_0x676dac['getShiftedBy'](_0x273e18['howMany']);break;default:return;}const _0x3d0e1c=_0x4acfc7['model']['createRange'](_0x676dac,_0x11b372);_0x4acfc7['model']['change'](()=>{for(const {suggestion:_0x206e3c,meta:_0x48be04}of this['_findSuggestions'](_0x3d0e1c)){if(_0x206e3c['isMultiRange'])continue;if('formatInline'==_0x206e3c['type'])continue;const _0x1dd837=this['_getAttributeKey'](_0x206e3c);if(_0x1dd837&&this['_isBlockAttribute'](_0x1dd837)&&'split'!=_0x273e18['type'])continue;const _0xfe4949=_0x206e3c['data']&&_0x206e3c['data']['multipleBlocks'];('formatBlock'!=_0x206e3c['type']||'split'==_0x273e18['type']&&!_0xfe4949)&&(_0x48be04['containsRangeInObject']||'insertion'==_0x206e3c['type']&&_0x48be04['isOwn']||_0x206e3c['getFirstRange']()['containsRange'](_0x3d0e1c)&&this['_breakSuggestionMarker'](_0x206e3c,_0x676dac,_0x11b372));}});},{'priority':'lowest'}),_0x4acfc7['model']['on']('deleteContent',(_0x11b4b4,_0xd0c5ad)=>{const _0x518d43=_0xd0c5ad[0x0],_0x108c73=_0xd0c5ad[0x1];if(_0x108c73&&_0x108c73['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x518d43['isCollapsed'])return;const _0x26ae71=_0x4acfc7['model']['schema'],{start:_0x3775ff,end:_0x443638}=_0x518d43['getFirstRange'](),_0x155303=_0x3775ff['nodeAfter']&&_0x26ae71['isLimit'](_0x3775ff['nodeAfter'])?null:_0x26ae71['getNearestSelectionRange'](_0x3775ff,'forward'),_0x313530=_0x443638['nodeBefore']&&_0x26ae71['isLimit'](_0x443638['nodeBefore'])?null:_0x26ae71['getNearestSelectionRange'](_0x443638,'backward'),_0x2e29e0=_0x4acfc7['model']['createRange'](_0x155303?_0x155303['start']:_0x3775ff,_0x313530?_0x313530['end']:_0x443638);_0x4acfc7['model']['change'](_0x58aa10=>{this['markDeletion'](_0x2e29e0);const _0x52acaf=_0x4acfc7['model']['schema']['getNearestSelectionRange'](_0x2e29e0['start']);_0x518d43['is']('documentSelection')?_0x58aa10['setSelection'](_0x52acaf):_0x518d43['setTo'](_0x52acaf);}),_0x11b4b4['stop']();},{'priority':_0x5d1244['normal']+0xa}),_0x4acfc7['model']['on']('insertContent',(_0x403197,_0x5e6259)=>{const _0x4513f7=_0x5e6259[_0x5e6259['length']-0x1];_0x4513f7&&_0x4513f7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4acfc7['model']['change'](()=>{let _0x31d139=_0x4acfc7['model']['insertContent'](_0x5e6259[0x0],_0x5e6259[0x1],_0x5e6259[0x2],{'forceDefaultExecution':!0x0});if(!_0x31d139)return;_0x403197['return']=_0x31d139['clone']();const _0x4996a3=_0x31d139['end']['nodeBefore'],_0xfa8ce2=_0x4acfc7['model']['schema'];_0x4996a3&&_0xfa8ce2['isBlock'](_0x4996a3)&&!_0xfa8ce2['isObject'](_0x4996a3)&&(_0x31d139=_0x4acfc7['model']['createRange'](_0x31d139['start'],_0x4acfc7['model']['createPositionAt'](_0x4996a3,'end'))),this['markInsertion'](_0x31d139);}),_0x403197['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3ecf48=new x(_0x4acfc7,this['_suggestions']);_0x4acfc7['commands']['add']('acceptSuggestion',_0x3ecf48),this['enableCommand']('acceptSuggestion');const _0x92c13f=new R(_0x4acfc7,this['_suggestions']);_0x4acfc7['commands']['add']('discardSuggestion',_0x92c13f),this['enableCommand']('discardSuggestion'),_0x4acfc7['commands']['add']('acceptAllSuggestions',new E(_0x4acfc7,_0x3ecf48,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4acfc7['commands']['add']('discardAllSuggestions',new E(_0x4acfc7,_0x92c13f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4acfc7['commands']['add']('acceptSelectedSuggestions',new O(_0x4acfc7,_0x3ecf48,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4acfc7['commands']['add']('discardSelectedSuggestions',new O(_0x4acfc7,_0x92c13f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5b85e4=_0x4acfc7['plugins']['get']('CommentsRepository');this['listenTo'](_0x5b85e4,'addComment',(_0x4c1755,{threadId:_0x5cd854})=>{const _0x1915d1=this['_suggestions']['get'](_0x5cd854);_0x1915d1&&_0x1915d1['commentThread']&&0x1===_0x1915d1['commentThread']['length']&&this['_updateSuggestionData'](_0x5cd854,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5b85e4,'removeComment',(_0xffeee5,{threadId:_0x16029c})=>{const _0x6ac7e8=this['_suggestions']['get'](_0x16029c);_0x6ac7e8&&_0x6ac7e8['commentThread']&&!_0x6ac7e8['commentThread']['length']&&this['_updateSuggestionData'](_0x16029c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xdde873){if(this['_adapter'])throw new _0x150d92('track-changes-adapter-already-set',this);this['_adapter']=_0xdde873;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e6a68=!0x1,toJSON:_0x5f57de=!0x1}={}){const _0x3bdfc4=[];for(const _0xad09e5 of this['_suggestions']['values']())_0x5e6a68&&!_0xad09e5['isInContent']||_0x3bdfc4['push'](_0xad09e5);return _0x5f57de?_0x3bdfc4['map'](_0xccb0c5=>_0xccb0c5['toJSON']()):_0x3bdfc4;}['getSuggestion'](_0x5e4b10){const _0x5a03db=this['_suggestions']['get'](_0x5e4b10);if(!_0x5a03db)throw new _0x150d92('track-changes-suggestion-not-found',this);return _0x5a03db;}['hasSuggestion'](_0x5e8f1e){return this['_suggestions']['has'](_0x5e8f1e);}['addSuggestionData'](_0x12ba6e){const {authorId:_0x347baa,id:_0x5057b7,attributes:_0x44e2ed}=_0x12ba6e,[_0xd90266,_0xb10d77]=_0x12ba6e['type']['split'](':'),_0x245065=this['_suggestions']['get'](_0x5057b7)||this['_createSuggestion'](_0xd90266,_0xb10d77,_0x5057b7,_0x347baa,_0x44e2ed);if(this['_addThreadToSuggestion'](_0x245065),this['_checkSuggestionCorrectness'](_0x245065,_0xd90266,_0xb10d77||null,_0x347baa),_0x245065['createdAt']=_0x12ba6e['createdAt'],_0x245065['_isDataLoaded']=!0x0,_0x44e2ed&&_0x44e2ed['@external']){const _0x33acd9=_0x44e2ed['@external'],_0x3690b4=this['_getExternalAuthor'](_0x33acd9['authorName']);_0x245065['authoredAt']=_0x33acd9['createdAt'],_0x245065['author']=_0x3690b4,_0x245065['isExternal']=!0x0;}else _0x245065['authoredAt']=_0x12ba6e['createdAt'];switch(_0x12ba6e['data']&&(_0x245065['data']=_0x12ba6e['data']),_0x12ba6e['attributes']&&(_0x245065['attributes']=_0x12ba6e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x245065['_saved']=!0x0),this['_suggestionState']['get'](_0x245065)){case'notReady':this['_suggestionState']['set'](_0x245065,'dataReady');break;case'markerReady':_0x245065['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x245065])),this['_refreshSuggestionsChain'](new Set([_0x245065])),this['_suggestionState']['set'](_0x245065,'ready'),this['fire']('suggestionLoaded',_0x245065)):this['_suggestionState']['set'](_0x245065,'removed');}return _0x245065;}['acceptSuggestion'](_0x327135){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14261f of _0x327135['getAllAdjacentSuggestions']())_0x14261f['accept']();});});}['discardSuggestion'](_0x54b89a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xaeeee0 of _0x54b89a['getAllAdjacentSuggestions']())_0xaeeee0['discard']();});});}['enableCommand'](_0x522661,_0x42926c){const _0x9630f3=this['editor']['commands']['get'](_0x522661);if(!_0x9630f3)throw new _0x150d92('track-changes-command-not-found',this,{'commandName':_0x522661});if(this['_enabledCommands']['has'](_0x9630f3))throw new _0x150d92('track-changes-enable-command-twice',this,{'commandName':_0x522661});this['_enabledCommands']['add'](_0x9630f3),_0x42926c&&_0x9630f3['on']('execute',(_0x46fa4c,_0x1f491a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1f491a['length']>0x0&&_0x1f491a[_0x1f491a['length']-0x1]&&_0x1f491a[_0x1f491a['length']-0x1]['forceDefaultExecution']?_0x1f491a['pop']():(_0x46fa4c['return']=_0x42926c((..._0x1ea131)=>_0x9630f3['execute'](..._0x1ea131,{'forceDefaultExecution':!0x0}),..._0x1f491a),_0x46fa4c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2ffb72){let _0x73c818,_0x4c6256;const _0x248165=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x73c818=_0x2ffb72();}catch(_0x510f39){_0x4c6256=_0x510f39;}return _0x248165||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4c6256&&_0x150d92['rethrowUnexpectedError'](_0x4c6256,this),_0x73c818;}['markInsertion'](_0x54dd66,_0x43d3c1=null,_0x4aacd7={}){if(_0x54dd66['isCollapsed'])return null;const _0xfebc04=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x77d353,meta:_0x3143fb}of this['_findSuggestions'](_0x54dd66,'insertion'))if(_0x3143fb['isOwn']){if(!_0x3143fb['isNextTo']){if(_0x3143fb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x77d353,_0x4aacd7))continue;return _0x77d353;}if(qt(_0x77d353,_0x4aacd7))return _0x77d353;this['_breakSuggestionMarker'](_0x77d353,_0x54dd66['start'],_0x54dd66['end']);break;}if(_0x43d3c1==_0x77d353['subType']&&qt(_0x77d353,_0x4aacd7)){const _0x538506=_0x77d353['getFirstRange']();return _0x538506['start']['isEqual'](_0x54dd66['end'])?this['_setSuggestionRange'](_0x77d353,this['_model']['createRange'](_0x54dd66['start'],_0x538506['end'])):this['_setSuggestionRange'](_0x77d353,this['_model']['createRange'](_0x538506['start'],_0x54dd66['end'])),_0x77d353;}}const _0x50f94d=_0x4fe6fa(),_0x2f5e6d=_0xfebc04['id'],_0x127d3f=_0x43d3c1?'insertion:'+_0x43d3c1:'insertion',_0x17817f=this['_setSuggestionData']({'id':_0x50f94d,'type':_0x127d3f,'createdAt':new Date(),'authorId':_0x2f5e6d,'attributes':_0x4aacd7});return this['_addSuggestionMarker'](_0x127d3f,_0x50f94d,_0x2f5e6d,_0x54dd66),_0x17817f;}['markMultiRangeInsertion'](_0x5c9645,_0x227452='multi',_0x561bee={}){const _0x1b5e7d=this['editor']['plugins']['get']('Users')['me'],_0x2987de=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x227452,'join');for(const _0x3949df of this['getSuggestions']())if(_0x3949df['author']['id']==_0x1b5e7d['id']&&'insertion'==_0x3949df['type']&&_0x3949df['subType']==_0x227452&&qt(_0x3949df,_0x561bee)&&(_0x2987de(_0x3949df['getRanges'](),_0x5c9645)||_0x2987de(_0x5c9645,_0x3949df['getRanges']()))){for(const _0x31cfba of _0x5c9645)_0x3949df['addRange'](_0x31cfba);return _0x3949df;}for(const {suggestion:_0x23429f,meta:_0x5b5899}of this['_findSuggestions'](_0x5c9645,'insertion')){if(!_0x5b5899['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b5899['containsRangeInObject'])continue;if(!qt(_0x23429f,_0x561bee))continue;let _0x579f87=!0x0;for(const _0x18cce2 of _0x23429f['getRanges']())for(const _0x192ac3 of _0x5c9645)if(!_0x18cce2['containsRange'](_0x192ac3)){_0x579f87=!0x1;break;}if(_0x579f87)return _0x23429f;}const _0x24c63f=_0x4fe6fa(),_0x39f20e=_0x1b5e7d['id'],_0x328f6f='insertion:'+_0x227452,_0x1b4e07=this['_setSuggestionData']({'id':_0x24c63f,'type':_0x328f6f,'createdAt':new Date(),'authorId':_0x39f20e,'attributes':_0x561bee});for(const _0x46c58a of _0x5c9645)this['_addSuggestionMarker'](_0x328f6f,_0x24c63f,_0x39f20e,_0x46c58a,u['getMultiRangeId']());return _0x1b4e07;}['markInlineFormat'](_0x1c2f0f,_0xeccc74,_0x579fea=null,_0x9c6c14={}){if(_0x579fea=_0x579fea||Gt(_0xeccc74),_0x1c2f0f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x27e0f8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x579fea,'accept');return this['forceDefaultExecution'](()=>_0x27e0f8([_0x1c2f0f],_0xeccc74,_0x9c6c14)),null;}const _0x431c23=this['editor']['plugins']['get']('Users')['me'],_0x100528=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b8aeb,meta:_0x4cb607}of this['_findSuggestions'](_0x1c2f0f,'insertion'))_0x4cb607['isOwn']&&!_0x4cb607['isInsideObject']&&_0x100528['push'](..._0x3b8aeb['getRanges']());}const _0x364041=function(_0x445508,_0x4c4a96){const _0x4b9d38=[];for(const _0x41bf76 of _0x4c4a96){const _0x53ab54=_0x445508['getIntersection'](_0x41bf76);_0x53ab54&&_0x4b9d38['push'](_0x53ab54);}return _0x4b9d38;}(_0x1c2f0f,_0x100528),_0x3d8aed=function(_0x38007f,_0x2f4c3d){const _0x260103=[_0x38007f];for(const _0x153c73 of _0x2f4c3d){let _0x3b9fa6=0x0;for(;_0x3b9fa6<_0x260103['length'];){const _0x1938b4=_0x260103[_0x3b9fa6]['getDifference'](_0x153c73);_0x260103['splice'](_0x3b9fa6,0x1,..._0x1938b4),_0x3b9fa6+=_0x1938b4['length'];}}return _0x260103;}(_0x1c2f0f,_0x100528);_0x364041['length']&&this['_model']['change'](()=>{for(const _0xccd2ec of _0x364041){const _0x1f078a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x579fea,'accept');this['forceDefaultExecution'](()=>_0x1f078a([_0xccd2ec],_0xeccc74,_0x9c6c14));}});for(const _0x3bc186 of _0x3d8aed){let _0x16af6e=null,_0x44efcc=_0x3bc186['start'],_0x5b405c=_0x3bc186['end'];for(const {suggestion:_0x5818e0,meta:_0xe0a003}of this['_findSuggestions'](_0x3bc186,'formatInline')){if(!_0xe0a003['isOwn'])continue;if(_0x5818e0['subType']!=_0x579fea)continue;if(!qt(_0x5818e0,_0x9c6c14))continue;const _0x23707a=_0x5818e0['getFirstRange']();if(_0x23707a['containsRange'](_0x3bc186,!0x0))return null;_0x44efcc=_0x44efcc['isBefore'](_0x23707a['start'])?_0x44efcc:_0x23707a['start'],_0x5b405c=_0x5b405c['isAfter'](_0x23707a['end'])?_0x5b405c:_0x23707a['end'],_0x16af6e?_0x23707a['start']['isBefore'](_0x16af6e['getFirstRange']()['start'])?(_0x16af6e['removeMarkers'](),_0x16af6e=_0x5818e0):_0x5818e0['removeMarkers']():_0x16af6e=_0x5818e0;}const _0x45b975=this['_model']['createRange'](_0x44efcc,_0x5b405c);if(_0x16af6e)this['_setSuggestionRange'](_0x16af6e,_0x45b975);else{const _0x2e00dc=_0x4fe6fa(),_0x597ff9=_0x431c23['id'];this['_setSuggestionData']({'id':_0x2e00dc,'type':'formatInline:'+_0x579fea,'data':_0xeccc74,'createdAt':new Date(),'authorId':_0x597ff9,'attributes':_0x9c6c14}),this['_addSuggestionMarker']('formatInline:'+_0x579fea,_0x2e00dc,_0x597ff9,_0x45b975);}}return null;}['markBlockFormat'](_0x45ed43,_0x5d942c,_0x41a1ed=[],_0x19c403=null,_0x39241b={}){_0x5d942c['formatGroupId']||(_0x5d942c['formatGroupId']=_0x5d942c['commandName']),_0x5d942c['multipleBlocks']=_0x45ed43['is']('range'),_0x19c403=_0x19c403||Gt(_0x5d942c);const _0x239f45=_0x41a1ed['map'](_0x2b965d=>Lt(_0x2b965d,this['_model'])),_0x41c44b=_0x45ed43['is']('range')?_0x45ed43:Lt(_0x45ed43,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1df8e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19c403,'accept');return this['forceDefaultExecution'](()=>_0x1df8e7([_0x41c44b],_0x5d942c,_0x39241b)),null;}_0x239f45['push'](_0x41c44b);let _0x2cb148=!0x0;for(const _0x123f72 of _0x239f45)if(!this['_rangeIsInLocalUserInsertion'](_0x123f72)){_0x2cb148=!0x1;break;}if(_0x2cb148&&'always'!==this['_trackFormatChanges']){const _0x277c39=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19c403,'accept');return this['forceDefaultExecution'](()=>_0x277c39([_0x41c44b],_0x5d942c,_0x39241b)),null;}let _0x2b08a7=null,_0x193968=_0x41c44b['start'],_0x107134=_0x41c44b['end'];for(const {suggestion:_0x450848,meta:_0x5aa40f}of this['_findSuggestions'](_0x41c44b,'formatBlock')){if(!_0x5aa40f['isOwn'])continue;if(_0x5aa40f['isNextTo']||_0x5aa40f['containsRangeInObject']||_0x5aa40f['isInsideObject'])continue;if(_0x450848['data']['formatGroupId']!=_0x5d942c['formatGroupId'])continue;if(!qt(_0x450848,_0x39241b))continue;const _0x1448df=_0x450848['getFirstRange']();if(_0x450848['subType']==_0x19c403){if(_0x1448df['containsRange'](_0x41c44b,!0x0))return null;_0x193968=_0x193968['isBefore'](_0x1448df['start'])?_0x193968:_0x1448df['start'],_0x107134=_0x107134['isAfter'](_0x1448df['end'])?_0x107134:_0x1448df['end'],_0x2b08a7?_0x1448df['start']['isBefore'](_0x2b08a7['getFirstRange']()['start'])?(_0x2b08a7['removeMarkers'](),_0x2b08a7=_0x450848):_0x450848['removeMarkers']():_0x2b08a7=_0x450848;}else{const _0x5474b1=_0x41c44b['getIntersection'](_0x1448df);this['_cutOutSuggestionMarker'](_0x450848,_0x5474b1);}}const _0x5787cb=this['editor']['plugins']['get']('Users')['me'],_0x3ab443=_0x4fe6fa(),_0xe3209f=_0x5787cb['id'];if(_0x2b08a7)return this['_setSuggestionRange'](_0x2b08a7,this['_model']['createRange'](_0x193968,_0x107134)),_0x2b08a7;{const _0x10765a=this['_setSuggestionData']({'id':_0x3ab443,'type':'formatBlock:'+_0x19c403,'data':_0x5d942c,'createdAt':new Date(),'authorId':_0xe3209f,'attributes':_0x39241b});return this['_addSuggestionMarker']('formatBlock:'+_0x19c403,_0x3ab443,_0xe3209f,this['_model']['createRange'](_0x193968,_0x107134)),_0x10765a;}}['markMultiRangeBlockFormat'](_0x2b3d4d,_0x186ad4,_0x29dbe4=[],_0x11b425=null,_0x6119e4={}){_0x186ad4['formatGroupId']||(_0x186ad4['formatGroupId']=_0x186ad4['commandName']);const _0x2884a9=_0x2b3d4d[0x0];_0x186ad4['multipleBlocks']=_0x2884a9['is']('range'),_0x11b425=_0x11b425||Gt(_0x186ad4);const _0x4f960f=_0x29dbe4['map'](_0xced453=>Lt(_0xced453,this['_model'])),_0x39a0a5=_0x2884a9['is']('range')?_0x2b3d4d:_0x2b3d4d['map'](_0x2dc82d=>Lt(_0x2dc82d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1fb4ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11b425,'accept');return this['forceDefaultExecution'](()=>_0x1fb4ac(_0x39a0a5,_0x186ad4,_0x6119e4)),null;}_0x4f960f['push'](..._0x39a0a5);let _0x241583=!0x0;for(const _0x4b5e05 of _0x4f960f)if(!this['_rangeIsInLocalUserInsertion'](_0x4b5e05)){_0x241583=!0x1;break;}if(_0x241583&&'always'!==this['_trackFormatChanges']){const _0xb04244=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11b425,'accept');return this['forceDefaultExecution'](()=>_0xb04244(_0x39a0a5,_0x186ad4,_0x6119e4)),null;}const _0x514513=this['editor']['plugins']['get']('Users')['me'];for(const _0x505f6d of this['getSuggestions']()){if(_0x505f6d['author']['id']!=_0x514513['id'])continue;if('formatBlock'!=_0x505f6d['type']||_0x505f6d['data']['formatGroupId']!=_0x186ad4['formatGroupId'])continue;if(!qt(_0x505f6d,_0x6119e4))continue;const _0x43173c=_0x505f6d['subType']==_0x11b425;for(let _0x269c20=0x0;_0x269c20<_0x39a0a5['length'];_0x269c20++){const _0x49941f=_0x39a0a5[_0x269c20];for(const _0x173b24 of _0x505f6d['getMarkers']()){const _0x47ee35=_0x173b24['getRange']();if(_0x49941f['isEqual'](_0x47ee35)){_0x43173c?(_0x39a0a5['splice'](_0x269c20,0x1),_0x269c20--):_0x505f6d['removeMarker'](_0x173b24['name']);break;}}}}if(0x0==_0x39a0a5['length'])return null;const _0x2b64f6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11b425,'join');for(const _0x42bb0f of this['getSuggestions']())if(_0x42bb0f['author']['id']==_0x514513['id']&&'formatBlock'==_0x42bb0f['type']&&_0x42bb0f['data']['formatGroupId']==_0x186ad4['formatGroupId']&&_0x42bb0f['subType']==_0x11b425&&qt(_0x42bb0f,_0x6119e4)&&(_0x2b64f6(_0x42bb0f['getRanges'](),_0x39a0a5)||_0x2b64f6(_0x39a0a5,_0x42bb0f['getRanges']()))){for(const _0x4e9d2e of _0x39a0a5)_0x42bb0f['addRange'](_0x4e9d2e);return _0x42bb0f;}const _0x393c03=_0x4fe6fa(),_0x3b5d3a=_0x514513['id'],_0x6634ae='formatBlock:'+_0x11b425,_0x31bd8f=this['_setSuggestionData']({'id':_0x393c03,'type':_0x6634ae,'data':_0x186ad4,'createdAt':new Date(),'authorId':_0x3b5d3a,'attributes':_0x6119e4});for(const _0x1fde39 of _0x39a0a5)this['_addSuggestionMarker'](_0x6634ae,_0x393c03,_0x3b5d3a,_0x1fde39,u['getMultiRangeId']());return _0x31bd8f;}['markDeletion'](_0x10b3d0,_0x45bf24=null,_0x41f3f5={}){if(_0x10b3d0['isCollapsed'])return null;const _0x58090c=this['editor']['plugins']['get']('Users')['me'],_0x2a88b9=new _0x18bd53(_0x10b3d0['start'],_0x10b3d0['end']);for(const {suggestion:_0x4d9864,meta:_0xdc8b95}of this['_findSuggestions'](_0x2a88b9,'insertion'))if(_0xdc8b95['isOwn']&&!_0xdc8b95['isNextTo']){if(_0x4d9864['isMultiRange']){const _0x56a4b7=_0x4d9864['getRanges']()['filter'](_0x10c75f=>'$graveyard'!=_0x10c75f['root']['rootName']);_0x56a4b7['every'](_0x1968bb=>_0x2a88b9['containsRange'](_0x1968bb,!0x0))&&_0x4d9864['discard']();if(_0x56a4b7['some'](_0xdfb586=>_0xdfb586['containsRange'](_0x2a88b9,!0x0))){const _0x1e63f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45bf24,'accept');return this['forceDefaultExecution'](()=>_0x1e63f9([_0x2a88b9],null,_0x41f3f5)),null;}}else{const _0x311f7f=_0x2a88b9['getIntersection'](_0x4d9864['getFirstRange']());null!==_0x311f7f&&_0x4d9864['_onDiscard']([_0x311f7f],null,_0x41f3f5);}}if(_0x2a88b9['detach'](),_0x2a88b9['isCollapsed']||'$graveyard'==_0x2a88b9['root']['rootName'])return null;let _0x3d9918=null,_0x15a5f9=_0x2a88b9['start'],_0x522694=_0x2a88b9['end'];const _0x59821a=this['_findSuggestions'](_0x2a88b9,'deletion');for(const {suggestion:_0xd1cab4,meta:_0x54cb53}of _0x59821a){const _0x363146=this['_model']['createRange'](_0x15a5f9,_0x522694);if(_0x54cb53['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54cb53['containsRangeInObject']&&!_0x54cb53['isInsideObject'])){if(_0xd1cab4['isMultiRange']){if(!qt(_0xd1cab4,_0x41f3f5))continue;let _0x57347e=!0x0;for(const _0x3554df of _0xd1cab4['getRanges']()){if(_0x3554df['containsRange'](_0x363146,!0x0))return _0xd1cab4;_0x363146['containsRange'](_0x3554df)||(_0x57347e=!0x1);}_0x57347e&&_0xd1cab4['discard']();}else{const _0x1ff6cf=_0xd1cab4['getFirstRange']();if(_0x1ff6cf['containsRange'](_0x363146,!0x0))return _0xd1cab4;if(!qt(_0xd1cab4,_0x41f3f5)){_0x363146['containsRange'](_0x1ff6cf)?_0xd1cab4['removeMarkers']():_0x1ff6cf['containsPosition'](_0x15a5f9)?_0x15a5f9=_0x1ff6cf['end']:_0x1ff6cf['containsPosition'](_0x522694)&&(_0x522694=_0x1ff6cf['start']);continue;}_0x15a5f9=_0x15a5f9['isBefore'](_0x1ff6cf['start'])?_0x15a5f9:_0x1ff6cf['start'],_0x522694=_0x522694['isAfter'](_0x1ff6cf['end'])?_0x522694:_0x1ff6cf['end'],_0x41f3f5=Object['assign']({},_0xd1cab4['attributes']),_0x3d9918?_0x1ff6cf['start']['isBefore'](_0x3d9918['getFirstRange']()['start'])?(_0x3d9918['removeMarkers'](),_0x3d9918=_0xd1cab4):_0xd1cab4['removeMarkers']():_0x3d9918=_0xd1cab4;}}}if(_0x3d9918)return this['_setSuggestionRange'](_0x3d9918,this['_model']['createRange'](_0x15a5f9,_0x522694)),_0x3d9918;{const _0x1e171c=_0x4fe6fa(),_0x4c1841=this['_model']['createRange'](_0x15a5f9,_0x522694),_0x1f7778=_0x58090c['id'],_0x5382f0=_0x45bf24?'deletion:'+_0x45bf24:'deletion',_0x4858c7=this['_setSuggestionData']({'id':_0x1e171c,'type':_0x5382f0,'createdAt':new Date(),'authorId':_0x1f7778,'attributes':_0x41f3f5});return this['_addSuggestionMarker'](_0x5382f0,_0x1e171c,_0x1f7778,_0x4c1841),_0x4858c7;}}['markMultiRangeDeletion'](_0x4fa3c1,_0x5d7f34='multi',_0x80cfa1={}){const _0x701317=this['editor']['plugins']['get']('Users')['me'],_0x26e3d3=_0x4fa3c1['map'](_0x35e210=>new _0x18bd53(_0x35e210['start'],_0x35e210['end'])),_0x49d182=new Set();for(const {suggestion:_0x3f1c16,meta:_0x31b18f}of this['_findSuggestions'](_0x26e3d3,'insertion'))_0x31b18f['isOwn']&&!_0x31b18f['isNextTo']&&_0x49d182['add'](_0x3f1c16);for(const _0x1a345f of _0x49d182)if(_0x1a345f['isMultiRange']){const _0x4bc369=_0x1a345f['getRanges']();(!_0x1a345f['attributes']||!_0x1a345f['attributes']['skipNestingCheck'])&&(_0x4bc369['every'](_0x591ab9=>_0x26e3d3['some'](_0x314a38=>_0x314a38['containsRange'](_0x591ab9,!0x0)))&&_0x1a345f['discard']());if(_0x26e3d3['every'](_0x4827af=>_0x4bc369['some'](_0x801ffb=>_0x801ffb['containsRange'](_0x4827af,!0x0)))){const _0x219959=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d7f34,'accept');return this['forceDefaultExecution'](()=>_0x219959(_0x4fa3c1,null,_0x80cfa1)),null;}}else{const _0x1d30c8=_0x1a345f['getFirstRange']();_0x26e3d3['some'](_0x5de398=>_0x5de398['containsRange'](_0x1d30c8,!0x0))&&_0x1a345f['discard']();if(_0x26e3d3['every'](_0x106b6a=>_0x1d30c8['containsRange'](_0x106b6a,!0x0))){const _0x38c814=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d7f34,'accept');return this['forceDefaultExecution'](()=>_0x38c814(_0x26e3d3,null,_0x80cfa1)),null;}}const _0x28bde5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d7f34,'join');let _0x2d788f=null;for(const _0x1c1b29 of this['getSuggestions']())if(_0x1c1b29['author']['id']==_0x701317['id']&&_0x1c1b29['isInContent']&&'deletion'==_0x1c1b29['type']&&_0x1c1b29['subType']==_0x5d7f34&&qt(_0x1c1b29,_0x80cfa1)&&(_0x28bde5(_0x1c1b29['getRanges'](),_0x26e3d3)||_0x28bde5(_0x26e3d3,_0x1c1b29['getRanges']()))){if(_0x2d788f){if(_0x1c1b29['commentThread']&&_0x1c1b29['commentThread']['length'])continue;for(const _0x4f096e of _0x1c1b29['getRanges']())_0x2d788f['isIntersectingWithRange'](_0x4f096e)||_0x2d788f['addRange'](_0x4f096e);_0x1c1b29['removeMarkers']();}else{_0x2d788f=_0x1c1b29;for(const _0x3b7765 of _0x26e3d3)_0x1c1b29['isIntersectingWithRange'](_0x3b7765)||_0x1c1b29['addRange'](_0x3b7765);}}if(_0x2d788f)return _0x2d788f;_0x49d182['clear']();for(const {suggestion:_0xa3203,meta:_0x1d5dc2}of this['_findSuggestions'](_0x26e3d3,'deletion'))_0x1d5dc2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d5dc2['containsRangeInObject']&&!_0x1d5dc2['isInsideObject'])&&qt(_0xa3203,_0x80cfa1)&&_0x49d182['add'](_0xa3203);for(const _0x1d7248 of _0x49d182){const _0xd0278c=_0x1d7248['getRanges']();if(!_0x80cfa1||!_0x80cfa1['skipNestingCheck']){if(_0x26e3d3['every'](_0x33b43e=>_0xd0278c['some'](_0x5ef3b2=>_0x5ef3b2['containsRange'](_0x33b43e,!0x0))))return _0x1d7248;}(!_0x1d7248['attributes']||!_0x1d7248['attributes']['skipNestingCheck'])&&(_0xd0278c['every'](_0x92e486=>_0x26e3d3['some'](_0x3b829f=>_0x3b829f['containsRange'](_0x92e486,!0x0)))&&_0x1d7248['discard']());}const _0x1656ed=_0x4fe6fa(),_0x3074df=_0x701317['id'],_0x1dd904='deletion:'+_0x5d7f34,_0x43283c=this['_setSuggestionData']({'id':_0x1656ed,'type':_0x1dd904,'createdAt':new Date(),'authorId':_0x3074df,'attributes':_0x80cfa1});for(const _0x1e3569 of _0x26e3d3)_0x1e3569['detach'](),_0x1e3569['isCollapsed']||'$graveyard'==_0x1e3569['root']['rootName']||this['_addSuggestionMarker'](_0x1dd904,_0x1656ed,_0x3074df,_0x1e3569,u['getMultiRangeId']());return _0x43283c;}['markAttributeChange'](_0x19c1ea,_0x18063e,_0x60703a,_0x4ee672,_0x3c00f3){if(_0x19c1ea['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4616b5=this['editor']['plugins']['get']('Users')['me']['id'],_0x25b7ae=Array['from'](this['_suggestions']['values']())['filter'](_0x2e8411=>'attribute'==_0x2e8411['type']&&_0x2e8411['data']['key']==_0x18063e&&_0x2e8411['isIntersectingWithRange'](_0x19c1ea));if('default'===this['_trackFormatChanges']){const _0x3f8bba=this['_findSuggestions'](_0x19c1ea,'insertion')['filter'](({meta:_0x5b82dc})=>_0x5b82dc['isOwn']&&!_0x5b82dc['isInsideObject']&&!_0x5b82dc['isNextTo'])['map'](({suggestion:_0x8e4bfb})=>_0x8e4bfb);_0x25b7ae['unshift'](..._0x3f8bba);}const _0x4506ad=new Map([[_0x19c1ea,_0x60703a]]);for(const _0x3472a3 of _0x25b7ae){const _0x590797='attribute'==_0x3472a3['type']?_0x3472a3['data']['oldValue']:void 0x0,_0xdf5b10=_0x3472a3['getFirstRange'](),_0x2de0ed=Array['from'](_0x4506ad['keys']())['find'](_0x392e4d=>_0x392e4d['isIntersecting'](_0xdf5b10));if(!_0x2de0ed)continue;const _0x32db26=_0x2de0ed['getDifference'](_0xdf5b10);this['_isBlockAttribute'](_0x18063e)&&'insertion'==_0x3472a3['type']&&0x0!=_0x32db26['length']||(_0x4506ad['delete'](_0x2de0ed),_0x32db26['forEach'](_0x2c38a3=>{_0x4506ad['set'](_0x2c38a3,_0x60703a);}),'insertion'!=_0x3472a3['type']&&_0x590797!=_0x4ee672&&_0x4506ad['set'](_0x2de0ed['getIntersection'](_0xdf5b10),_0x590797));}const _0x479746=[];for(const [_0x2fc0c7,_0xb6826f]of _0x4506ad){const _0x4d9af3=_0x4fe6fa(),_0x1059b9={'key':_0x18063e,'oldValue':_0xb6826f,'newValue':_0x4ee672};_0x18063e['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x18063e});const _0x108635=('attribute:'+(_0x18063e+'|'+Gt({'newValue':_0x4ee672})))['substring'](0x0,0x3c),_0x475b13=this['_setSuggestionData']({'id':_0x4d9af3,'type':_0x108635,'data':_0x1059b9,'createdAt':new Date(),'authorId':_0x4616b5,'attributes':_0x3c00f3});_0x479746['push'](_0x475b13),this['_addSuggestionMarker'](_0x108635,_0x4d9af3,_0x4616b5,_0x2fc0c7);}return _0x479746;}['enableDefaultAttributesIntegration'](_0x49b39f){this['enableCommand'](_0x49b39f,(_0x2ffc91,..._0x2bd230)=>{this['_recordAttributeChanges'](()=>{_0x2ffc91(..._0x2bd230);});});}['registerBlockAttribute'](_0x1cb1bb){this['_blockAttributeKeys']['add'](_0x1cb1bb);}['registerInlineAttribute'](_0x2c1742){this['_inlineAttributeKeys']['add'](_0x2c1742);}['_getAttributeKey'](_0x515a84){return'attribute'==_0x515a84['type']?_0x515a84['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1088bd,_0x2b5e70){const _0x160770=_0x1088bd['getFirstMarker']();this['_model']['change'](_0x5106b4=>{_0x5106b4['updateMarker'](_0x160770,{'range':_0x2b5e70});});}['_addThreadToSuggestion'](_0x563afb){const _0x3138db=_0x563afb['id'],_0x4edc00=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3138db)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4edc00,'threadId':_0x3138db,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x6f6019=this['_commentsRepository']['getCommentThread'](_0x3138db);_0x6f6019['unbind']('isRemovable'),_0x6f6019['isRemovable']=!0x1,_0x563afb['commentThread']=_0x6f6019;}['_checkSuggestionCorrectness'](_0x5adff2,_0x331858,_0x50e3c0,_0x342104){if(_0x5adff2['type']!=_0x331858||_0x5adff2['subType']!=_0x50e3c0||_0x5adff2['creator']['id']!=_0x342104)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x150d92('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4c89ba,_0x33b811){const _0x3dc320=_0x4c89ba['getFirstRange']();if(_0x33b811['isEqual'](_0x3dc320))_0x4c89ba['removeMarkers']();else{if(_0x3dc320['containsRange'](_0x33b811)){const _0x48894f=this['_model']['createPositionAt'](_0x33b811['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4c89ba,this['_model']['createRange'](_0x3dc320['start'],_0x48894f));const _0xe40643=_0x4fe6fa(),_0x4eb7fb=_0x4c89ba['creator']['id'],_0x155db1=_0x4c89ba['type']+':'+_0x4c89ba['subType'];this['_setSuggestionData']({'id':_0xe40643,'type':_0x155db1,'createdAt':new Date(),'authorId':_0x4eb7fb,'data':_0x4c89ba['data'],'attributes':_0x4c89ba['attributes']});const _0x3e0fd8=this['_model']['createPositionAt'](_0x33b811['end']['parent'],'after'),_0x4cd3a7=this['_model']['createRange'](_0x3e0fd8,_0x3dc320['end']);this['_addSuggestionMarker'](_0x155db1,_0xe40643,_0x4eb7fb,_0x4cd3a7);}else{if(_0x3dc320['containsPosition'](_0x33b811['start'])){const _0x599f2d=this['_model']['createPositionAt'](_0x33b811['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4c89ba,this['_model']['createRange'](_0x3dc320['start'],_0x599f2d));}else{const _0x15938a=this['_model']['createPositionAt'](_0x33b811['end']['parent'],'after');this['_setSuggestionRange'](_0x4c89ba,this['_model']['createRange'](_0x15938a,_0x3dc320['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x376817){for(const {suggestion:_0x53533e,meta:_0x44487b}of this['_findSuggestions'](_0x376817,'insertion')){if(!_0x44487b['isOwn'])continue;const _0x24da43=_0x53533e['getRanges']();for(const _0x570683 of _0x24da43)if(!_0x376817['getDifference'](_0x570683)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x29654b){const _0x4a015f=this['editor']['plugins']['get']('Users')['getUser'](_0x29654b);if(!_0x4a015f)throw new _0x150d92('track-changes-user-not-found',this);return _0x4a015f;}['_getExternalAuthor'](_0x2a289c){const _0x42d4b5=this['editor']['plugins']['get']('Users'),_0x2b7305=_0x38e828('external:'+_0x2a289c),_0x219c84=_0x42d4b5['getUser'](_0x2b7305);return _0x219c84||_0x42d4b5['addUser']({'id':_0x2b7305,'name':_0x2a289c});}['_createSuggestion'](_0x3cecd9,_0x330799,_0x5bdc32,_0x23fce6,_0x1f5209){const _0x18d672=this['_getAuthorFromId'](_0x23fce6),_0x1a1e9c=this['_suggestionFactory']['buildSuggestion'](_0x3cecd9,_0x330799,_0x5bdc32,_0x18d672,_0x1f5209,_0x47b9c9=>{this['_updateSuggestionData'](_0x5bdc32,{'attributes':_0x47b9c9});const _0xda41c2=this['getSuggestion'](_0x5bdc32);this['_joinWithAdjacentSuggestions'](new Set([_0xda41c2])),this['_refreshSuggestionsChain'](new Set([_0xda41c2]));});return this['listenTo'](_0x1a1e9c,'accept',()=>{this['_updateSuggestionData'](_0x5bdc32,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1a1e9c,'discard',()=>{this['_updateSuggestionData'](_0x5bdc32,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5bdc32,_0x1a1e9c),this['_suggestionState']['set'](_0x1a1e9c,'notReady'),_0x1a1e9c;}['_splitMarkerName'](_0x128e5c){const _0x553b72=_0x128e5c['split'](':');return{'group':_0x553b72[0x0],'type':_0x553b72[0x1],'subType':_0x553b72['length']>=0x5?_0x553b72[0x2]:null,'id':_0x553b72['length']<0x5?_0x553b72[0x2]:_0x553b72[0x3],'authorId':_0x553b72['length']<0x5?_0x553b72[0x3]:_0x553b72[0x4],'markerCount':0x6==_0x553b72['length']?_0x553b72[0x5]:null};}['_breakSuggestionMarker'](_0x729ca7,_0x1bc127,_0x5210e3){const _0x320445=_0x729ca7['getFirstRange'](),_0x4c3527=_0x320445['start'],_0x7a1a1c=_0x320445['end'];this['_setSuggestionRange'](_0x729ca7,this['_model']['createRange'](_0x4c3527,_0x1bc127));const _0x1b8829=_0x4fe6fa(),_0x20ed8c=_0x729ca7['creator']['id'],_0x13067a=_0x729ca7['type']+(_0x729ca7['subType']?':'+_0x729ca7['subType']:'');this['_setSuggestionData']({'id':_0x1b8829,'type':_0x13067a,'createdAt':new Date(),'authorId':_0x20ed8c,'originalSuggestionId':_0x729ca7['id'],'attributes':_0x729ca7['attributes'],'data':_0x729ca7['data']});const _0x511e79=this['_getAttributeKey'](_0x729ca7);('formatBlock'==_0x729ca7['type']||_0x511e79&&this['_isBlockAttribute'](_0x511e79))&&(_0x5210e3=this['_model']['createPositionBefore'](_0x5210e3['parent'])),this['_addSuggestionMarker'](_0x13067a,_0x1b8829,_0x20ed8c,this['_model']['createRange'](_0x5210e3,_0x7a1a1c));}['_findSuggestions'](_0x210013,_0x3efacb=null){const _0x1ce282=[],_0x51b2aa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x210013)||(_0x210013=[_0x210013]);for(const _0x43d7d5 of this['getSuggestions']()){if(!_0x43d7d5['isInContent'])continue;if(_0x3efacb&&_0x43d7d5['type']!=_0x3efacb)continue;let _0x36be1d=!0x1;for(const _0x2ec8f2 of _0x43d7d5['getRanges']()){for(const _0x1f4b82 of _0x210013){const _0x5c7d91=_0x1f4b82['start']['isEqual'](_0x2ec8f2['end'])||_0x1f4b82['end']['isEqual'](_0x2ec8f2['start']);if(_0x5c7d91||_0x1f4b82['getIntersection'](_0x2ec8f2)){const _0x3afd09=_0x1f4b82['containsRange'](_0x2ec8f2)&&Ot(this['_model']['schema'],_0x2ec8f2['start'],_0x1f4b82),_0x4eab66=_0x2ec8f2['containsRange'](_0x1f4b82)&&Ot(this['_model']['schema'],_0x1f4b82['start'],_0x2ec8f2);_0x1ce282['push']({'suggestion':_0x43d7d5,'meta':{'isOwn':_0x51b2aa==_0x43d7d5['author'],'isNextTo':_0x5c7d91,'isInsideObject':_0x3afd09,'containsRangeInObject':_0x4eab66}}),_0x36be1d=!0x0;break;}}if(_0x36be1d)break;}}return _0x1ce282;}['_addSuggestionMarker'](_0x24800f,_0x28dfa4,_0x1a39d1,_0x59653c,_0x55d133){this['_model']['change'](_0x17d1fd=>{let _0x3e0b46='suggestion:'+_0x24800f+':'+_0x28dfa4+':'+_0x1a39d1;_0x55d133&&(_0x3e0b46=_0x3e0b46+':'+_0x55d133),_0x17d1fd['addMarker'](_0x3e0b46,{'range':_0x59653c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x128ebc){const _0xc852f4=_0x128ebc['previous'],_0x113a6c=_0x128ebc['next'];_0x128ebc['previous']=null,_0x128ebc['next']=null,null!=_0xc852f4&&_0xc852f4['next']==_0x128ebc&&(_0xc852f4['next']=_0x113a6c),null!=_0x113a6c&&_0x113a6c['previous']==_0x128ebc&&(_0x113a6c['previous']=_0xc852f4),'ready'==this['_suggestionState']['get'](_0x128ebc)&&(this['_suggestionState']['set'](_0x128ebc,'removed'),this['fire']('suggestionUnloaded',_0x128ebc,_0xc852f4,_0x113a6c));}['_setSuggestionData'](_0x1fe203){const _0x28d8f3=_0x1fe203['id'],_0x18b4ce=this['addSuggestionData'](_0x1fe203);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x29b1c1=this['editor']['plugins']['get']('PendingActions'),_0x1a42a8=_0x18b4ce['hasComments'],_0x55b1cc=_0x18b4ce['subType']?_0x18b4ce['type']+':'+_0x18b4ce['subType']:_0x18b4ce['type'],_0x2458fb=this['editor']['locale'],_0x4a0e43=_0x29b1c1['add'](o(_0x2458fb,'PENDING_ACTION_SUGGESTION')),_0x2bb277={'id':_0x28d8f3,'type':_0x55b1cc,'hasComments':_0x1a42a8,'data':_0x1fe203['data']||null,'originalSuggestionId':_0x1fe203['originalSuggestionId']||null,'attributes':_0x18b4ce['attributes']};this['_adapter']['addSuggestion'](_0x2bb277)['then'](_0x2850bb=>{_0x18b4ce['_saved']=!0x0,_0x29b1c1['remove'](_0x4a0e43),_0x2850bb&&_0x2850bb['createdAt']&&(this['_suggestions']['get'](_0x28d8f3)['createdAt']=_0x2850bb['createdAt']);})['catch'](_0x5d8eb6=>{throw _0x225e4a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x18b4ce['discard']();}),_0x18b4ce['stopListening'](),this['_suggestions']['delete'](_0x18b4ce['id']),this['_suggestionState']['delete'](_0x18b4ce),_0x5d8eb6;});}return _0x18b4ce;}['_isBlockAttribute'](_0x599ceb){return this['_blockAttributeKeys']['has'](_0x599ceb);}['_updateSuggestionData'](_0x5bdcc7,_0x4d690b){const _0x234255=this['editor']['plugins']['get']('PendingActions'),_0x529541=this['getSuggestion'](_0x5bdcc7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x529541['_saved']){const _0x533996=_0x234255['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5bdcc7,_0x4d690b)['then'](()=>{_0x234255['remove'](_0x533996);});}else _0x529541['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5bdcc7,_0x4d690b);});}}['_getSuggestionData'](_0x1d5bd6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x150d92('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1d5bd6);}['_handleNewSuggestionMarker'](_0x36c951){const {id:_0x314c6d,type:_0x51dab9,subType:_0x19f1bf,authorId:_0x3ba91b}=this['_splitMarkerName'](_0x36c951),_0x4e4729=this['_suggestions']['get'](_0x314c6d)||this['_createSuggestion'](_0x51dab9,_0x19f1bf,_0x314c6d,_0x3ba91b,{});switch(this['_checkSuggestionCorrectness'](_0x4e4729,_0x51dab9,_0x19f1bf,_0x3ba91b),this['_suggestionState']['get'](_0x4e4729)){case'notReady':this['_getSuggestionData'](_0x314c6d)['then'](_0x413527=>{let _0x56805d=Promise['resolve']();_0x413527['hasComments']&&(_0x56805d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x314c6d})),_0x56805d['then'](()=>{this['addSuggestionData'](_0x413527)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4e4729,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x314c6d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4e4729,'ready'),this['fire']('suggestionLoaded',_0x4e4729);break;case'ready':this['fire']('suggestionChanged',_0x4e4729);}return _0x4e4729['addMarkerName'](_0x36c951),_0x4e4729;}['_refreshSuggestionsChain'](_0x3a7369){const _0x48cab6=Array['from'](_0x3a7369),_0x230bc9=_0x48cab6['filter'](_0x1f5236=>'attribute'==_0x1f5236['type']);this['_refreshAttributeSuggestionsChain'](_0x230bc9);const _0x2c93dd=_0x48cab6['filter'](_0x112687=>!_0x112687['isMultiRange']&&'attribute'!=_0x112687['type']),_0x594c64=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bece5=>!_0x1bece5['isMultiRange']&&'attribute'!=_0x1bece5['type']),_0x1a95c3=_0x594c64['filter'](_0x150d01=>!_0x3a7369['has'](_0x150d01)),_0x4941e3=new Map(_0x594c64['map'](_0x30912d=>[_0x30912d,this['_suggestionFactory']['getSuggestionCallback'](_0x30912d['type'],_0x30912d['subType'],'chain')])),_0x5a2e95=new Map(_0x594c64['map'](_0x26b103=>[_0x26b103,_0x26b103['getFirstRange']()])),_0x3600b1=new Set(),_0x4ddf2a=new Set();for(let _0x48724b=0x0;_0x48724b<_0x2c93dd['length'];_0x48724b++)_0x3e61b7(_0x2c93dd[_0x48724b],_0x2c93dd,_0x48724b+0x1);for(let _0x943e86=0x0;_0x943e86<_0x2c93dd['length'];_0x943e86++)_0x3e61b7(_0x2c93dd[_0x943e86],_0x1a95c3,0x0);const _0x571efd=new Set();for(let _0x421b4e=0x0;_0x421b4e<_0x2c93dd['length'];_0x421b4e++){const _0x5871b3=_0x2c93dd[_0x421b4e];!_0x4ddf2a['has'](_0x5871b3)&&_0x5871b3['previous']&&(_0x571efd['add'](_0x5871b3['previous']),_0x5871b3['previous']['next']===_0x5871b3&&(_0x5871b3['previous']['next']=null),_0x5871b3['previous']=null),!_0x3600b1['has'](_0x5871b3)&&_0x5871b3['next']&&(_0x571efd['add'](_0x5871b3['next']),_0x5871b3['next']['previous']===_0x5871b3&&(_0x5871b3['next']['previous']=null),_0x5871b3['next']=null);}function _0x3e61b7(_0x343af5,_0x5d41bb,_0x5093ac){for(let _0x1ae9d0=_0x5093ac;_0x1ae9d0<_0x5d41bb['length'];_0x1ae9d0++){const _0x50aa8e=_0x5721ab(_0x343af5,_0x5d41bb[_0x1ae9d0]);_0x50aa8e&&(_0x50aa8e[0x0]['next']=_0x50aa8e[0x1],_0x50aa8e[0x1]['previous']=_0x50aa8e[0x0],_0x3600b1['add'](_0x50aa8e[0x0]),_0x4ddf2a['add'](_0x50aa8e[0x1]));}}function _0x5721ab(_0x960eec,_0x4f7679){if(_0x960eec['author']['id']!==_0x4f7679['author']['id'])return null;const _0x30ba2f=_0x4941e3['get'](_0x960eec)(_0x960eec,_0x4f7679,_0x5a2e95['get'](_0x960eec),_0x5a2e95['get'](_0x4f7679));if(!_0x30ba2f)return null;return _0x4941e3['get'](_0x4f7679)(_0x960eec,_0x4f7679,_0x5a2e95['get'](_0x960eec),_0x5a2e95['get'](_0x4f7679))?_0x30ba2f[0x1]['commentThread']&&_0x30ba2f[0x1]['commentThread']['length']?null:_0x30ba2f:null;}_0x571efd['size']&&this['_refreshSuggestionsChain'](_0x571efd);}['_refreshAttributeSuggestionsChain'](_0x29af5e){if(0x0==_0x29af5e['length'])return;const _0x1600dd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5327ec=>'attribute'==_0x5327ec['type']&&_0x5327ec['_isDataLoaded']),_0x277229=[],_0x1dc5f6=new Map();for(const _0x574291 of _0x1600dd){const _0x5ebe4d=_0x38e828(_0x574291['attributes']);_0x1dc5f6['has'](_0x5ebe4d)||(_0x1dc5f6['set'](_0x5ebe4d,_0x277229['length']),_0x277229['push']([]));const _0x54ac73=_0x1dc5f6['get'](_0x5ebe4d);_0x277229[_0x54ac73]['push'](_0x574291);}!(function(){_0x277229['sort']((_0x4db616,_0x2ef7df)=>{const _0x17d3ef=_0x4db616[0x0]['createdAt'],_0x141326=_0x2ef7df[0x0]['createdAt'];return _0x17d3ef==_0x141326?_0x4db616[0x0]['attributes']['groupId']<_0x2ef7df[0x0]['attributes']['groupId']?-0x1:0x1:_0x17d3ef<_0x141326?-0x1:0x1;});for(const _0x481dff of _0x277229)_0x481dff['sort']((_0x52850e,_0x1998ad)=>_0x52850e['id']<_0x1998ad['id']?-0x1:0x1);}());for(let _0x4090d2=0x0;_0x4090d2<_0x277229['length'];_0x4090d2++){if(0x0==_0x277229[_0x4090d2]['length'])continue;const _0x616a9f=[];for(let _0x349512=_0x4090d2+0x1;_0x349512<_0x277229['length'];_0x349512++)0x0!=_0x277229[_0x349512]['length']&&_0x19ed66(_0x277229[_0x4090d2],_0x277229[_0x349512])&&_0x616a9f['push'](_0x349512);for(const _0x71bf91 of _0x616a9f)_0x277229[_0x4090d2]=_0x277229[_0x4090d2]['concat'](_0x277229[_0x71bf91]),_0x277229[_0x71bf91]=[];}for(const _0x64b586 of _0x277229)for(let _0x59525e=0x0;_0x59525e<_0x64b586['length'];_0x59525e++){const _0x479b88=_0x64b586[_0x59525e+0x1]||null;_0x64b586[_0x59525e]['next']!==_0x479b88&&(_0x64b586[_0x59525e]['next']=_0x479b88);}for(const _0x5c4385 of _0x277229)for(let _0x2ed4d0=0x0;_0x2ed4d0<_0x5c4385['length'];_0x2ed4d0++){const _0x4b7492=_0x5c4385[_0x2ed4d0-0x1]||null;_0x5c4385[_0x2ed4d0]['previous']!==_0x4b7492&&(_0x5c4385[_0x2ed4d0]['previous']=_0x4b7492);}function _0x19ed66(_0x1c2963,_0x2e1b3e){if(_0x1c2963[0x0]['attributes']['groupId']!==_0x2e1b3e[0x0]['attributes']['groupId']&&_0x1c2963[0x0]['author']!==_0x2e1b3e[0x0]['author'])return!0x1;if(!function(_0x1aad61,_0x4b8d69){if(!_0x1aad61['hasComments']&&!_0x4b8d69['hasComments'])return!0x0;if(_0x1aad61['hasComments']&&_0x4b8d69['hasComments'])return!0x1;if(_0x1aad61['hasComments']&&_0x4b8d69['createdAt']<_0x1aad61['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4b8d69['hasComments']&&_0x1aad61['createdAt']<_0x4b8d69['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1c2963[0x0],_0x2e1b3e[0x0]))return!0x1;const _0x224f70=Tt(_0x1c2963[0x0]['attributes'],'groupId'),_0x31487a=Tt(_0x2e1b3e[0x0]['attributes'],'groupId');if(!_0x5578e3(_0x224f70,_0x31487a))return!0x1;return!!_0x1c2963['every'](_0x4890e6=>_0x2e1b3e['some'](_0x5f2f99=>_0x4890e6['getFirstRange']()['isEqual'](_0x5f2f99['getFirstRange']())))&&_0x2e1b3e['every'](_0xc02851=>_0x1c2963['some'](_0xeb88de=>_0xc02851['getFirstRange']()['isEqual'](_0xeb88de['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x266a18){const _0x57c106=Array['from'](_0x266a18),_0x251784=this['getSuggestions']({'skipNotAttached':!0x0}),_0x9b76c9=_0x251784['filter'](_0x251dca=>!_0x266a18['has'](_0x251dca)),_0x19d3f1=new Map(_0x57c106['map'](_0x4f0d54=>[_0x4f0d54,this['_suggestionFactory']['getSuggestionCallback'](_0x4f0d54['type'],_0x4f0d54['subType'],'join')])),_0x5e6746=new Map(_0x251784['map'](_0x387b22=>[_0x387b22,_0x387b22['getRanges']()]));for(let _0x2f05c3=0x0;_0x2f05c3<_0x57c106['length'];_0x2f05c3++){if(_0x413167(this,_0x57c106[_0x2f05c3],_0x57c106,_0x2f05c3+0x1))return!0x0;}for(let _0x3f0a98=0x0;_0x3f0a98<_0x57c106['length'];_0x3f0a98++){if(_0x413167(this,_0x57c106[_0x3f0a98],_0x9b76c9,0x0))return!0x0;}return!0x1;function _0x413167(_0x57e535,_0x57c2d8,_0x1e77aa,_0x277506){for(let _0x46d44e=_0x277506;_0x46d44e<_0x1e77aa['length'];_0x46d44e++){const _0x4c67a1=_0x1e77aa[_0x46d44e];if(_0x4c67a1['type']!==_0x57c2d8['type']||_0x4c67a1['author']['id']!==_0x57c2d8['author']['id']||_0x4c67a1['subType']!==_0x57c2d8['subType'])continue;if(!Jt(_0x57c2d8,_0x4c67a1))continue;if('attribute'==_0x57c2d8['type']&&_0x57c2d8['data']['oldValue']!=_0x4c67a1['data']['oldValue'])continue;if('attribute'==_0x57c2d8['type']&&_0x57e535['_isBlockAttribute'](_0x57c2d8['data']['key']))continue;if('formatBlock'==_0x57c2d8['type']){const _0x14b025=_0x57e535['editor']['model'],_0xdb46f8=_0x57c2d8['getContainedElement']();if(_0xdb46f8&&(_0x14b025['schema']['isObject'](_0xdb46f8)||_0x14b025['schema']['isLimit'](_0xdb46f8)))continue;}const _0x4b6158=_0x19d3f1['get'](_0x57c2d8),_0x5070b9=_0x5e6746['get'](_0x57c2d8),_0x13f5e5=_0x5e6746['get'](_0x4c67a1),_0x27d6df=_0x57c2d8['commentThread']&&_0x57c2d8['commentThread']['length'],_0x3f74fc=_0x4c67a1['commentThread']&&_0x4c67a1['commentThread']['length'];if(!_0x27d6df&&_0x4b6158(_0x13f5e5,_0x5070b9))return _0x57e535['_joinSuggestions'](_0x4c67a1,_0x57c2d8),_0x5e6746['delete'](_0x57c2d8),!0x0;if(!_0x3f74fc&&_0x4b6158(_0x5070b9,_0x13f5e5))return _0x57e535['_joinSuggestions'](_0x57c2d8,_0x4c67a1),_0x5e6746['delete'](_0x4c67a1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2009e9,_0x1991c1){if(_0x2009e9['isMultiRange']){for(const _0x59b883 of _0x1991c1['getRanges']())_0x2009e9['addRange'](_0x59b883);}else{const _0x19ff53=_0x1991c1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2009e9,this['_model']['createRange'](_0x2009e9['getFirstRange']()['start'],_0x19ff53));}_0x1991c1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x27bc1f,_0x1af307,_0x599a17){const _0xa99f39=_0x27bc1f['startsWith']('format')||_0x27bc1f['startsWith']('attribute')?'FORMATTING':_0x27bc1f['toUpperCase']();return o(this['editor']['locale'],_0x1af307+'_'+_0xa99f39+'_SUGGESTION_ANNOUNCEMENT',_0x599a17);}['_initAriaMarkerChangeAnnouncements'](){const _0x1126ea=this['editor'];if(!_0x1126ea['ui'])return;const {ariaLiveAnnouncer:_0x201ec5}=_0x1126ea['ui'];_0x19ed74(this['_model'],({left:_0x1f16e4,entered:_0x1ad57e})=>{for(const _0x40aab5 of _0x1f16e4){const {group:_0x1708ae,type:_0x1dcf1c}=this['_splitMarkerName'](_0x40aab5['name']);if('suggestion'===_0x1708ae){_0x201ec5['announce'](this['_getMarkerAnnouncementText'](_0x1dcf1c,'LEAVE'));break;}}for(const _0x34e2d3 of _0x1ad57e){const {group:_0x490242,type:_0x31d0b3}=this['_splitMarkerName'](_0x34e2d3['name']);if('suggestion'===_0x490242){_0x201ec5['announce'](this['_getMarkerAnnouncementText'](_0x31d0b3,'ENTER',_0x229e4e(_0x10edf5)));break;}}});}['_processAttributeChanges'](_0x5d236c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3fb3ca=this['editor'],_0x89f976=_0x3fb3ca['model']['document']['differ']['getChanges']();if(0x0==_0x89f976['length'])return!0x1;const _0x3def85=[],_0xc0b2e=_0x89f976['filter'](_0x3e54fa=>'attribute'==_0x3e54fa['type']),_0x5f2e45=_0x89f976['filter'](_0x476a22=>'insert'==_0x476a22['type']&&'$text'!=_0x476a22['name']),_0x594b27=_0x89f976['filter'](_0xb238d6=>'remove'==_0xb238d6['type']&&'$text'!=_0xb238d6['name']);for(const _0x347e1e of _0xc0b2e)_0x3def85['push']({'key':_0x347e1e['attributeKey'],'newValue':_0x347e1e['attributeNewValue'],'oldValue':_0x347e1e['attributeOldValue'],'range':Pt(_0x347e1e['range'],_0x3fb3ca['model'])});for(const _0x5910e6 of _0x5f2e45){const _0x1f866b=_0x594b27['find'](_0x51a951=>_0x51a951['position']['isEqual'](_0x5910e6['position']));_0x1f866b&&_0x3def85['push']({'key':m,'newValue':_0x5910e6['name'],'oldValue':_0x1f866b['name'],'range':_0x3fb3ca['model']['createRangeOn'](_0x5910e6['position']['nodeAfter'])});}return 0x0!=_0x3def85['length']&&this['_reduceExistingSuggestions'](_0x5d236c,_0x3def85);}['_processAttributeSuggestions'](_0x1d9a69){let _0x5788ea=!0x1;const _0x793dab=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a570b=>_0x3a570b['data']['newRange']&&_0x3a570b['name']['startsWith']('suggestion:attribute:'));for(const _0x1a847f of _0x793dab){const {subType:_0xf54a68,id:_0x424f49}=this['_splitMarkerName'](_0x1a847f['name']),_0x3d39f9=_0xf54a68['split']('|')[0x0];for(const _0x269c1a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x269c1a['id']!=_0x424f49&&'attribute'==_0x269c1a['type']&&_0x269c1a['data']&&_0x269c1a['data']['key']==_0x3d39f9&&_0x269c1a['getFirstRange']()['isIntersecting'](_0x1a847f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x269c1a,_0x1a847f['data']['newRange'],_0x1d9a69),_0x5788ea=!0x0);}return _0x5788ea;}['_recordAttributeChanges'](_0x594899){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x594899();}['_isRegisteredAttribute'](_0x522adc){const _0x52a9d0=this['_isBlockAttribute'](_0x522adc),_0x4270c8=this['_inlineAttributeKeys']['has'](_0x522adc);return _0x52a9d0||_0x4270c8;}['_reduceExistingSuggestions'](_0x1684aa,_0xdf3e42){if(0x0==_0xdf3e42['length'])return!0x1;let _0x3d3b8f=!0x1;for(const _0x3ee00d of _0xdf3e42){const _0xd65046=this['_findSuggestions'](_0x3ee00d['range'],'attribute')['filter'](_0xdf4e14=>!_0xdf4e14['meta']['isNextTo'])['map'](_0x5494ac=>_0x5494ac['suggestion']),_0x4d6ea4=_0x38e828({'newValue':_0x3ee00d['newValue']});_0xd65046['filter'](_0x52abf5=>{const [_0x24a764,_0x2e9c79]=_0x52abf5['subType']['split']('|');return _0x24a764==_0x3ee00d['key']&&_0x2e9c79!=_0x4d6ea4;})['forEach'](_0x472661=>{this['_reduceSuggestionAttributeRange'](_0x472661,_0x3ee00d['range'],_0x1684aa),_0x3d3b8f=!0x0;});}return _0x3d3b8f;}['_reduceSuggestionAttributeRange'](_0x18e19a,_0x94c8ba,_0x5c87d6){const _0x3c9008=_0x18e19a['getFirstRange']()['getDifference'](_0x94c8ba);0x0!==_0x3c9008['length']?0x1!==_0x3c9008['length']?this['_breakSuggestionMarker'](_0x18e19a,_0x94c8ba['start'],_0x94c8ba['end']):this['_setSuggestionRange'](_0x18e19a,_0x3c9008[0x0]):_0x5c87d6['removeMarker'](_0x18e19a['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x10911b){this['_editor']=_0x10911b,this['_model']=_0x10911b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x300840,_0x2d8d90,_0x4ff754,_0x4bd120,_0x44545c,_0x2d7ca6){return new u(this['_model'],{'type':_0x300840,'subType':_0x2d8d90,'id':_0x4ff754,'author':_0x4bd120,'creator':_0x4bd120,'attributes':_0x44545c,'onAttributesChange':_0x2d7ca6,'onAccept':(..._0x5c81a8)=>this['getSuggestionCallback'](_0x300840,_0x2d8d90,'accept')(..._0x5c81a8),'onDiscard':(..._0x10290f)=>this['getSuggestionCallback'](_0x300840,_0x2d8d90,'discard')(..._0x10290f)});}['registerCustomCallback'](_0x3a52ca,_0x39e67c,_0xc79677,_0x2c0123){const _0xb4898f=_0x3a52ca+':'+_0x39e67c+':'+_0xc79677;this['_customCallbacks']['set'](_0xb4898f,_0x2c0123);}['getSuggestionCallback'](_0x391af2,_0x29a76c,_0x32d1cb){const _0x3f8110=_0x391af2+':'+_0x29a76c+':'+_0x32d1cb;return this['_customCallbacks']['get'](_0x3f8110)||this['_defaultCallbacks']['get'](_0x391af2+':'+_0x32d1cb);}['_registerDefaultCallbacks'](){const _0x3e3c3b=()=>!0x1,_0x34cad4=_0x407669=>{_0x407669['sort']((_0x10884a,_0x445e04)=>_0x10884a['start']['isBefore'](_0x445e04['start'])?0x1:-0x1),this['_model']['change'](_0x508f01=>{for(const _0x30229f of _0x407669){let _0x407775;_0x407775=_0x30229f['end']['isAtEnd']&&_0x30229f['end']['parent']==_0x30229f['start']['nodeAfter']?_0x508f01['createSelection'](_0x30229f['start']['nodeAfter'],'on'):_0x508f01['createSelection'](_0x30229f),this['_model']['deleteContent'](_0x407775,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x874569=(_0xa7af86,_0xf1564)=>{_0xf1564&&this['_model']['change'](_0x330a0e=>{const {commandName:_0x23fedd,commandParams:_0x24e7e2=[]}=_0xf1564,_0x3428d4=_0xa7af86['map'](_0x35d445=>(Vt(_0x35d445)&&(_0x35d445=this['_model']['createRange'](_0x35d445['end'])),_0x35d445))['filter'](_0x3781a3=>'$graveyard'!==_0x3781a3['root']['rootName']);if(_0x3428d4['length']<0x1)return;const _0x4ddf9c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5a3a78=>_0x18bd53['fromRange'](_0x5a3a78));_0x330a0e['setSelection'](_0x3428d4);for(const _0x4ce26a of this['_editor']['commands']['commands']())_0x4ce26a['refresh']();_0x24e7e2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x23fedd,..._0x24e7e2);const _0x4f1149=_0x4ddf9c['filter'](_0x1f41b6=>'$graveyard'!=_0x1f41b6['root']['rootName']);_0x4f1149['length']>0x0&&_0x330a0e['setSelection'](_0x4f1149);for(const _0x193ffb of _0x4ddf9c)_0x193ffb['detach']();});},_0x43d1e8=(_0x4d5fa3,_0x51e49c)=>0x1==_0x4d5fa3['length']&&0x1==_0x51e49c['length']&&_0x4d5fa3[0x0]['end']['isEqual'](_0x51e49c[0x0]['start']),_0x675a55=(_0x4620d3,_0x5185f4,_0x2a384f,_0x41cd8b)=>Ht(_0x4620d3,_0x5185f4,_0x2a384f,_0x41cd8b,this['_model'])?[_0x4620d3,_0x5185f4]:Ht(_0x5185f4,_0x4620d3,_0x41cd8b,_0x2a384f,this['_model'])?[_0x5185f4,_0x4620d3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3e3c3b),this['_defaultCallbacks']['set']('insertion:discard',_0x34cad4),this['_defaultCallbacks']['set']('insertion:join',_0x43d1e8),this['_defaultCallbacks']['set']('insertion:chain',_0x675a55),this['_defaultCallbacks']['set']('deletion:accept',_0x34cad4),this['_defaultCallbacks']['set']('deletion:discard',_0x3e3c3b),this['_defaultCallbacks']['set']('deletion:join',_0x43d1e8),this['_defaultCallbacks']['set']('deletion:chain',_0x675a55),this['_defaultCallbacks']['set']('formatInline:accept',_0x874569),this['_defaultCallbacks']['set']('formatInline:discard',_0x3e3c3b),this['_defaultCallbacks']['set']('formatInline:join',_0x43d1e8),this['_defaultCallbacks']['set']('formatInline:chain',_0x3e3c3b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x874569),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3e3c3b),this['_defaultCallbacks']['set']('formatBlock:join',_0x43d1e8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3e3c3b),this['_defaultCallbacks']['set']('attribute:accept',_0x3e3c3b),this['_defaultCallbacks']['set']('attribute:discard',(_0x895214,_0x13f6d9)=>{if(!_0x13f6d9)return;const _0x1ff7b2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x568d89=>{if(_0x13f6d9['key']==m)for(const _0x24d158 of _0x895214){const _0x1715f5=_0x24d158['start']['nodeAfter'],_0x3ab108=_0x13f6d9['oldValue'];_0x568d89['rename'](_0x1715f5,_0x3ab108);}else{if(_0x1ff7b2['_isBlockAttribute'](_0x13f6d9['key'])){for(const _0x379507 of _0x895214)void 0x0!==_0x13f6d9['oldValue']?_0x568d89['setAttribute'](_0x13f6d9['key'],_0x13f6d9['oldValue'],_0x379507['start']['nodeAfter']):_0x568d89['removeAttribute'](_0x13f6d9['key'],_0x379507['start']['nodeAfter']);}else{for(const _0x3b17f0 of _0x895214)_0x13f6d9['oldValue']?_0x568d89['setAttribute'](_0x13f6d9['key'],_0x13f6d9['oldValue'],_0x3b17f0):_0x568d89['removeAttribute'](_0x13f6d9['key'],_0x3b17f0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x43d1e8);}}function Ot(_0x10e96c,_0x3a8225,_0x5db4b8){for(const _0x21cb62 of _0x3a8225['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x21cb62['root']==_0x21cb62)return!0x1;if(!_0x5db4b8['containsItem'](_0x21cb62))return!0x1;if(_0x10e96c['isObject'](_0x21cb62)||_0x10e96c['isLimit'](_0x21cb62))return!0x0;}return!0x1;}function Vt(_0x5a9509){return _0x5a9509['end']['parent']==_0x5a9509['start']['nodeAfter']&&_0x5a9509['end']['isAtStart'];}function Ut(_0x367769,_0x2d8f23,_0x3056e8,_0x3b8cde){const _0x416aa0=_0x3473dc=>!_0x3473dc['item']['is']('$textProxy')&&!_0x3b8cde['isObject'](_0x3473dc['item']),_0x3f6c9f=_0x367769['start']['getLastMatchingPosition'](_0x416aa0),_0x18c1f5=_0x367769['end']['getLastMatchingPosition'](_0x416aa0,{'direction':'backward'});return(!_0x367769['start']['isEqual'](_0x3f6c9f)||!_0x367769['end']['isEqual'](_0x18c1f5))&&(_0x3f6c9f['isBefore'](_0x18c1f5)?_0x3056e8['updateMarker'](_0x2d8f23,{'range':_0x3056e8['createRange'](_0x3f6c9f,_0x18c1f5)}):_0x3056e8['removeMarker'](_0x2d8f23),!0x0);}function Gt(_0x1a4180){return _0x38e828(_0x1a4180);}function Ft(_0x3d6bba){const _0x2a2f4f=_0x3d6bba['start']['nodeAfter'];return _0x2a2f4f&&_0x2a2f4f['is']('element');}function Pt(_0x63f642,_0x57d0bc){return null==_0x63f642['end']['nodeBefore']&&_0x63f642['end']['parent']==_0x63f642['start']['nodeAfter']?Lt(_0x63f642['start']['nodeAfter'],_0x57d0bc):_0x63f642;}function Lt(_0x343c83,_0x4b7fea){const _0x1f08eb=_0x4b7fea['schema']['isObject'](_0x343c83)||_0x4b7fea['schema']['isSelectable'](_0x343c83);return _0x4b7fea['createRange'](_0x4b7fea['createPositionAt'](_0x343c83,'before'),_0x1f08eb?_0x4b7fea['createPositionAfter'](_0x343c83):_0x4b7fea['createPositionAt'](_0x343c83,'end'));}function Ht(_0x42fdde,_0x5f1f35,_0xaca5cb,_0x4485bb,_0x53aee0){if(_0x42fdde['next'])return!0x1;if(!Jt(_0x42fdde,_0x5f1f35))return!0x1;if(_0xaca5cb['end']['isEqual'](_0x4485bb['start']))return!0x0;if(_0x42fdde['type']!=_0x5f1f35['type'])return!0x1;if(!_0xaca5cb['end']['isTouching'](_0x4485bb['start']))return!0x1;const _0x47a323=_0x53aee0['createRange'](_0xaca5cb['end'],_0x4485bb['start'])['getWalker']();for(const _0x4972fe of _0x47a323)if(['elementStart','elementEnd']['includes'](_0x4972fe['type'])&&_0x53aee0['schema']['isLimit'](_0x4972fe['item']))return!0x1;return!0x0;}function Jt(_0x59d41e,_0x3eb3be){if(!_0x59d41e['_isDataLoaded']||!_0x3eb3be['_isDataLoaded'])return!0x1;const _0x54dd1d=new Set(Object['keys'](_0x59d41e['attributes'])),_0x2fd17f=new Set(Object['keys'](_0x3eb3be['attributes']));if(_0x54dd1d['delete']('groupId'),_0x2fd17f['delete']('groupId'),0x0==_0x54dd1d['size']&&0x0==_0x2fd17f['size'])return!0x0;if(_0x54dd1d['size']!=_0x2fd17f['size'])return!0x1;const _0x4aed60={..._0x59d41e['attributes']},_0x53cf51={..._0x3eb3be['attributes']};return delete _0x4aed60['groupId'],delete _0x53cf51['groupId'],JSON['stringify'](_0x4aed60)==JSON['stringify'](_0x53cf51);}function qt(_0x37f746,_0x49ed72){const _0x40d219=zt(_0x37f746['attributes']),_0xd927b7=zt(_0x49ed72);if(!_0x37f746['_isDataLoaded'])return!0x1;for(const _0x354c66 of Object['keys'](_0xd927b7))if(!_0x5578e3(_0x40d219[_0x354c66],_0xd927b7[_0x354c66]))return!0x1;return!0x0;}function zt(_0x211636){const _0xbc2f19=Object['assign']({},_0x211636);return delete _0xbc2f19['skipNestingCheck'],delete _0xbc2f19['tablePasteChainId'],_0xbc2f19;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x14a655(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x7dac9,_0x17855b,_0x14ecbe,_0x3f652c){super(),this['model']=_0x17855b,this['view']=_0x14ecbe,this['commentThreadController']=_0x3f652c,this['_editor']=_0x7dac9,this['_acceptCommand']=_0x7dac9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x7dac9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2c94cc,_0x439e10)=>_0x2c94cc||_0x439e10),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x48d833=>_0x48d833&&this['_editor']['model']['canEditAt'](_0x17855b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2bf161=>_0x2bf161&&this['_editor']['model']['canEditAt'](_0x17855b['getRanges']())),this['_pendingAction']=null,_0x14ecbe['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x14ecbe,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x14ecbe,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x14ecbe,'change:isDirty',()=>{_0x14ecbe['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x5218eb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5218eb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4c0280{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xace56f,_0xec6761,_0x7ffb59,_0x4a3cd6){super(_0xace56f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x377da4(_0xace56f,o(_0xace56f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xec6761['authoredAt']),this['bind']('authoredAt')['to'](_0xec6761),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0xec6761,'authoredAt',this,'descriptionParts',(_0x256894,_0x9788e2,_0x3fc07f)=>{const _0x694083=_0x3fc07f['map'](_0x4cdbec=>ls(_0x4cdbec['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x256894-0x1,_0xec6761['author']['name'],_0x9788e2?_0x4a3cd6['formatDateTime'](_0x9788e2):'',new DOMParser()['parseFromString'](_0x694083,'text/html')['body']['textContent']]);}),this['focusables']=new _0x78c6e5(),this['focusTracker']=new _0x5c2726(),this['keystrokes']=new _0x2bb510(),this['focusCycler']=new _0x441236({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4dcf44=>_0x4dcf44['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xec6761,this['_localUser']=_0x7ffb59,this['_config']=_0x4a3cd6,_0x4a3cd6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2a509d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x270b37}=this['_config'];this['commentsListView']=new _0x270b37(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x79b304=>_0x79b304+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3791e3,_0x159451)=>_0x3791e3||!!_0x159451);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x30d10a}=this['_config'],_0x417616=new _0x30d10a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d3534=_0x417616['commentInputView'];return _0x417616['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5d3534,'value',(_0x62b0e6,_0x484cf9,_0x198cd8)=>!!_0x198cd8||_0x62b0e6&&!_0x484cf9),_0x5d3534['on']('submit',(_0x5e40ee,_0x4b3910)=>{this['fire']('addComment',_0x4b3910),_0x5d3534['editor']['setData']('');}),_0x5d3534['on']('cancel',()=>this['focus']()),_0x5d3534['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x417616;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4997fe,_0x7e77a5,_0x5b7c9a,_0x1e7896){super(_0x4997fe,_0x7e77a5,_0x5b7c9a,_0x1e7896),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x51cd5e=>_0x51cd5e&&_0x51cd5e[0x0]?_0x51cd5e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x555c33,_0x51136)=>{let _0x47a1dc='';for(const _0x15418e of _0x555c33)_0x47a1dc+='<p>'+ls(_0x15418e['content'],_0x15418e['color'])+'</p>';return _0x51136?_0x47a1dc:_0x2ba2b0(_0x47a1dc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1e7896['SuggestionView'](_0x4997fe,_0x7e77a5,{'formatDateTime':_0x1e7896['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x56c486=this['bindTemplate'],_0x4fabb8=[this['suggestionView']];return this['commentsListView']&&_0x4fabb8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4fabb8['push'](this['commentThreadInputView']),_0x4fabb8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x56c486['if']('isActive','ck-suggestion-wrapper--active'),_0x56c486['to']('type',_0x9e71df=>'ck-suggestion-'+_0x9e71df),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x56c486['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4fabb8};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x4c0280{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3d75f3,_0x4bf552,_0xb7eaa5){super(_0x3d75f3),this['_model']=_0x4bf552,this['_config']=_0xb7eaa5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4bf552),this['acceptButton']=this['_createButton'](o(_0x3d75f3,'Accept\x20suggestion'),_0x541da0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3d75f3,'Discard\x20suggestion'),_0x541da0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x9ecabe(_0x3d75f3,_0x4bf552['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x78c6e5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5c2726(),this['keystrokes']=new _0x2bb510(),this['focusCycler']=new _0x441236({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x885199=>_0x885199['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x454fb1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x454fb1['innerHTML']=this['description'],this['on']('change:description',(_0x3db11c,_0x93c425,_0x41e22d)=>{_0x454fb1['innerHTML']=_0x41e22d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xed0da0=this['bindTemplate'],_0x59dc71=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0xed0da0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xed0da0['to']('authoredAt',_0x21f4ca=>this['_config']['formatDateTime'](_0x21f4ca))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x59dc71['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x59dc71}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x24666b,_0x3ec502,_0x384896,_0x25264a,_0x2b2d37){const _0x180087=new _0xeb44d1(this['locale']);return _0x180087['set']({'label':_0x24666b,'icon':_0x3ec502,'tooltip':!0x0,'tooltipPosition':_0x2b2d37}),_0x180087['extendTemplate']({'attributes':{'class':_0x384896}}),_0x180087['on']('execute',()=>{this['fire'](_0x25264a,this['_model']['id']);}),_0x180087;}['_setupKeyboardNavigation'](){const _0x47d519=this['element'];this['keystrokes']['listenTo'](_0x47d519);for(const _0xb2d332 of this['focusables'])this['focusTracker']['add'](_0xb2d332['element']),this['keystrokes']['listenTo'](_0xb2d332['element']);this['keystrokes']['set']('enter',(_0x344046,_0x12fd99)=>{_0x47d519===_0x344046['target']&&(this['focusCycler']['focusFirst'](),_0x12fd99());}),this['keystrokes']['set']('esc',(_0x3b6844,_0xae9b36)=>{_0x47d519!==_0x3b6844['target']&&(this['focus'](),_0xae9b36());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x3648ee{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x251663,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x12961f){super(_0x12961f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x22ed55=this['editor']['config'];_0x22ed55['define']('trackChanges.SuggestionThreadView',re),_0x22ed55['define']('trackChanges.SuggestionView',ce),_0x22ed55['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x22ed55['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f5fed,_0x2cadf5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4d34d3,_0x3d83a1]of this['_handleControllerBuffer']){const _0x328c21=this['_suggestionToController']['has'](_0x4d34d3);_0x328c21||_0x3d83a1?_0x328c21&&_0x3d83a1&&this['_destroyController'](_0x4d34d3):this['_initializeController'](_0x4d34d3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f5fed,_0x2cadf5);}['init'](){const _0x423a75=this['editor'],_0x207c37=_0x423a75['plugins']['get']('TrackChangesEditing'),_0x14332d=_0x423a75['plugins']['get']('Annotations'),_0x5b6f86=_0x423a75['plugins']['get']('EditorAnnotations'),_0x23b387=_0x423a75['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5b6f86['addSourceCollector'](()=>{const _0xbc8bff=[];for(const [_0x167399,_0x110f52]of Array['from'](this['_suggestionToController'])){const _0x597a04=_0x167399['getAllAdjacentSuggestions'](),_0xb54979=[];for(const _0xab1809 of _0x597a04){if(!_0xab1809['isInContent'])continue;if(_0xab1809['isMultiRange']){_0xb54979['push'](..._0xab1809['getRanges']());continue;}const _0x15ab46=_0xab1809['getFirstRange']();if(_0xb54979['length']>0x0){const _0x575f52=_0xb54979[0x0]['getJoined'](_0x15ab46);if(_0x575f52){_0xb54979[0x0]=_0x575f52;continue;}}_0xb54979['push'](_0x15ab46);}_0xbc8bff['push']([_0x110f52['view'],_0xb54979]);}return _0xbc8bff;}),this['listenTo'](_0x207c37,'suggestionLoaded',(_0x14ef90,_0xea1eb)=>{this['listenTo'](_0xea1eb,'change:previous',(_0x24ea23,_0x21f2e3,_0x4f178e,_0x53d79f)=>{_0xea1eb['isInContent']&&(null==_0x4f178e?(this['_updateController'](_0x53d79f['head']),this['_handleSuggestionControllerDelayed'](_0xea1eb,!0x1)):(this['_updateController'](_0x4f178e['head']),null==_0x53d79f&&this['_handleSuggestionControllerDelayed'](_0xea1eb,!0x0)));}),null!==_0xea1eb['previous']?this['_updateController'](_0xea1eb['head']):this['_handleSuggestionControllerDelayed'](_0xea1eb,!0x1);}),this['listenTo'](_0x207c37,'suggestionUnloaded',(_0x549e71,_0xfec99f,_0x3f656c)=>{this['stopListening'](_0xfec99f,'change:previous'),this['_handleControllerBuffer']['delete'](_0xfec99f),this['_suggestionToController']['has'](_0xfec99f)&&this['_destroyController'](_0xfec99f),_0x3f656c&&this['_updateController'](_0x3f656c['head']);}),this['listenTo'](_0x207c37,'suggestionChanged',(_0x235149,_0x174439)=>{this['_updateController'](_0x174439);}),this['listenTo'](_0x14332d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x23b387,'addComment',(_0x65aa74,{threadId:_0x2b91b1,isFromAdapter:_0xbb3b3c})=>{if(_0xbb3b3c||!_0x207c37['hasSuggestion'](_0x2b91b1))return;const _0x46a018=_0x207c37['getSuggestion'](_0x2b91b1);this['_suggestionToController']['get'](_0x46a018)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x561509=this['editor']['plugins']['get']('Annotations'),_0x4ce77a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2462fb=Array['from'](_0x561509['activeAnnotations'],_0x48995f=>_0x48995f['innerView'])['filter'](_0x2d7b23=>this['_viewToController']['has'](_0x2d7b23)),_0x10d9a0=[];for(const _0x274aaf of _0x2462fb){const _0x2b6352=this['_viewToController']['get'](_0x274aaf)['model']['getAllAdjacentSuggestions']();_0x10d9a0['push'](..._0x2b6352['reduce']((_0x1c7473,_0x2e0bea)=>[..._0x1c7473,..._0x2e0bea['getMarkerNames']()],[]));}_0x4ce77a['activeMarkers']=_0x10d9a0;}['_addUIComponentsToFactory'](){const _0x211762=this['editor'],_0x50b169=_0x211762['locale'],_0x1a60ae=o(_0x50b169,'Track\x20changes'),_0x204a7f=new Wt([{'type':'switchbutton','model':new _0x4ee1ed({'withText':!0x0,'isToggleable':!0x0,'label':_0x1a60ae,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4ee1ed({'withText':!0x0,'label':o(_0x50b169,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ee1ed({'withText':!0x0,'label':o(_0x50b169,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ee1ed({'withText':!0x0,'label':o(_0x50b169,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ee1ed({'withText':!0x0,'label':o(_0x50b169,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1ac03d of _0x204a7f)if(me(_0x1ac03d)){const _0x43075a=_0x211762['commands']['get'](_0x1ac03d['model']['commandName']);_0x1ac03d['model']['bind']('isOn','isEnabled')['to'](_0x43075a,'value','isEnabled');}_0x211762['ui']['componentFactory']['add']('trackChanges',_0x491ed7=>this['_createToolbarButton'](_0x491ed7,_0x204a7f,_0x1a60ae)),_0x211762['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e0837=>this['_createMenuBarMenu'](_0x1e0837,_0x204a7f,_0x1a60ae));}['_createToolbarButton'](_0x1f59f9,_0x52b0ca,_0x5222e4){const _0x7803c=Qt(_0x1f59f9,_0x207a53),_0x55bc39=this['editor']['commands']['get']('trackChanges');_0x7803c['buttonView']['set']({'tooltip':_0x5222e4,'label':_0x5222e4,'icon':he}),_0x7803c['buttonView']['bind']('isOn')['to'](_0x55bc39,'value'),_0x7803c['buttonView']['on']('execute',()=>{_0x55bc39['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x7803c,_0x52b0ca,{'role':'menu'});const _0xecb9e8=[];for(const _0x5b72ec of _0x52b0ca)me(_0x5b72ec)&&_0xecb9e8['push'](this['editor']['commands']['get'](_0x5b72ec['model']['commandName']));const _0x91b30e=_0x7803c['buttonView'];return _0x91b30e['actionView']['unbind']('isEnabled'),_0x91b30e['arrowView']['unbind']('isEnabled'),_0x91b30e['actionView']['bind']('isEnabled')['to'](_0x55bc39,'isEnabled'),_0x91b30e['arrowView']['bind']('isEnabled')['toMany'](_0xecb9e8,'isEnabled',(..._0x3bed8e)=>_0x3bed8e['some'](_0x32c602=>_0x32c602)),_0x7803c['on']('execute',_0x46a0c9=>{this['editor']['execute'](_0x46a0c9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x7803c;}['_createMenuBarMenu'](_0x49e3f3,_0x1d6a22,_0x30e2ae){const _0x59f9d3=new Yt(_0x49e3f3),_0x4e6906=this['editor']['commands']['get']('trackChanges');_0x59f9d3['buttonView']['set']({'label':_0x30e2ae,'icon':he});const _0xbb7a01=new Zt(_0x49e3f3);for(const _0x1da046 of _0x1d6a22){if('separator'==_0x1da046['type']){_0xbb7a01['items']['add'](new Xt(_0x49e3f3));continue;}const _0x46515a=new te(_0x49e3f3,_0x59f9d3),_0x14355b=new _0x4bf70d(_0x49e3f3),_0x3c3a49=_0x1da046['model'];_0x14355b['bind'](...Object['keys'](_0x3c3a49))['to'](_0x3c3a49),_0x14355b['delegate']('execute')['to'](_0x59f9d3),_0x14355b['on']('execute',()=>{this['editor']['execute'](_0x3c3a49['commandName']),this['editor']['editing']['view']['focus']();}),_0x46515a['children']['add'](_0x14355b),_0xbb7a01['items']['add'](_0x46515a);}return _0x59f9d3['bind']('isEnabled')['to'](_0x4e6906,'isEnabled'),_0x59f9d3['panelView']['children']['add'](_0xbb7a01),_0x59f9d3;}['_initializeController'](_0x150ddd){const _0x5cef69=this['editor'],_0xd8edf6=_0x5cef69['config'],_0x52411e=_0x5cef69['plugins']['get']('Annotations'),_0x12220b=_0x5cef69['plugins']['get']('CommentsRepository'),_0x43e68d=_0x5cef69['plugins']['get']('EditorAnnotations'),_0x10fd6=_0x5cef69['plugins']['get'](_0x251663)['me'],_0x2b9190=_0xd8edf6['get']('trackChanges')['SuggestionThreadView'],_0x20e772=_0xd8edf6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x251400,CommentThreadInputView:_0xd38233}=_0x5cef69['plugins']['get']('CommentsUI');let _0x22fa6f,_0xbd6336,_0x5224ce;this['_annotationViews']['has'](_0x150ddd['id'])?(_0xbd6336=this['_annotationViews']['get'](_0x150ddd['id']),_0x22fa6f=_0xbd6336['mainView']):(_0x22fa6f=new _0x2b9190(_0x5cef69['locale'],_0x150ddd,_0x10fd6,{'disableComments':this['_disableComments'],'editorConfig':_0xd8edf6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xd8edf6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd8edf6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd8edf6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c18e5(_0xd8edf6['get']('locale')),'CommentView':_0xd8edf6['get']('comments')['CommentView'],'CommentsListView':_0x251400,'CommentThreadInputView':_0xd38233,'SuggestionView':_0x20e772}),_0x22fa6f['suggestionView']['acceptButton']['on']('execute',()=>{_0x5cef69['editing']['view']['focus']();}),_0x22fa6f['suggestionView']['discardButton']['on']('execute',()=>{_0x5cef69['editing']['view']['focus']();}),_0xbd6336=_0x52411e['createAnnotationView'](this['editor']['locale'],_0x22fa6f),_0xbd6336['bind']('isDirty')['to'](_0x22fa6f,'isDirty'),_0xbd6336['bind']('length')['to'](_0x22fa6f),_0xbd6336['bind']('type')['to'](_0x22fa6f,'type',_0x17f000=>'suggestion-'+_0x17f000),_0x22fa6f['on']('escape',()=>{_0x5224ce['fire']('escape');}),this['_annotationViews']['set'](_0x150ddd['id'],_0xbd6336));const _0x573730=_0x12220b['createCommentThreadController'](_0x150ddd['commentThread'],_0x22fa6f),_0x9649b3=new ae(_0x5cef69,_0x150ddd,_0x22fa6f,_0x573730),_0x48ae67=_0x150ddd['getAllAdjacentSuggestions']()['filter'](_0x54e404=>_0x54e404['isInContent']);_0x22fa6f['descriptionParts']=_0x5cef69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x48ae67),this['_suggestionToController']['set'](_0x150ddd,_0x9649b3),this['_viewToController']['set'](_0x22fa6f,_0x9649b3),_0x5224ce=_0x52411e['createAnnotation']({'view':_0xbd6336,'target':()=>{const _0x33383a=[],_0x4ca164=_0x150ddd['getAllAdjacentSuggestions']()['filter'](_0x144a35=>_0x144a35['isInContent']);for(const _0x2dd07f of _0x4ca164)_0x33383a['push'](..._0x2dd07f['getMarkers']());return _0xd782a6(_0x5cef69['editing'],_0x33383a);},'type':()=>'suggestion-'+_0x9649b3['view']['type']}),_0x12220b['_bindAnnotationToEditors'](_0x22fa6f,_0x5224ce),_0x52411e['add'](_0x5224ce),_0x43e68d['registerAnnotation'](_0x5224ce);}['_destroyController'](_0x18f419){const _0xf701ca=this['editor']['plugins']['get']('CommentsRepository'),_0x1ec0ab=this['editor']['plugins']['get']('Annotations'),_0x5f4912=this['_suggestionToController']['get'](_0x18f419),_0x5b73e3=_0x5f4912['view'],_0x52ca9a=_0x1ec0ab['getByInnerView'](_0x5b73e3);_0xf701ca['_unbindEditors'](_0x5b73e3),_0x52ca9a&&_0x1ec0ab['remove'](_0x52ca9a),this['_suggestionToController']['delete'](_0x18f419),this['_viewToController']['delete'](_0x5b73e3),_0x5f4912['destroy']();}['_updateController'](_0x27bbfb){if(!_0x27bbfb['isInContent']||!this['_suggestionToController']['has'](_0x27bbfb))return;const _0x4e3f89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c49fc=this['_suggestionToController']['get'](_0x27bbfb),_0x4e3088=_0x27bbfb['getAllAdjacentSuggestions']();_0x1c49fc['view']['descriptionParts']=_0x4e3f89['descriptionFactory']['getDescriptions'](_0x4e3088);}['destroy'](){for(const _0x223cf2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x223cf2);for(const _0x1b49e3 of this['_annotationViews']['values']())_0x1b49e3['mainView']['destroy']();super['destroy']();}}function me(_0x2ae134){return'model'in _0x2ae134;}class k extends _0x3648ee{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4af29f){this['editor']['plugins']['get'](p)['adapter']=_0x4af29f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3a2b8c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3a2b8c);}['getSuggestions']({skipNotAttached:_0x3908bc=!0x1,toJSON:_0x47bfdf=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3908bc,'toJSON':_0x47bfdf});}['getSuggestion'](_0x4eaa97){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4eaa97);}}const T=['Pagination'];class P extends _0x3648ee{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3cc471=this['editor'];if(_0x3cc471['config']['define']('trackChangesData.editorCreator',_0x29d7d9=>{const _0x2df114=_0x3cc471['model']['document']['getRootNames']()['reduce']((_0x4ac08f,_0x100237)=>(_0x4ac08f[_0x100237]='',_0x4ac08f),{});return _0x3cc471['constructor']['create'](_0x2df114,_0x29d7d9);}),'function'!=typeof _0x3cc471['config']['get']('trackChangesData')['editorCreator'])throw new _0x150d92('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x25e3fd){return N(this['editor'],!0x0,_0x25e3fd);}['getDataWithDiscardedSuggestions'](_0x565587){return N(this['editor'],!0x1,_0x565587);}}class D extends _0x3648ee{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x227f15){super(_0x227f15),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x1f96ce){return void 0x0!==_0x1f96ce['getRootsAttributes'];}async function N(_0x56589d,_0x464558,_0x5f0d14){const _0x1111a6=_0x1f1c64(_0x56589d,T);_0x1111a6['plugins']['push'](p,D),_0x1111a6['rootsAttributes']=v(_0x56589d)?_0x56589d['getRootsAttributes']():void 0x0;const _0x5bc78a=document['createDocumentFragment'](),_0x4a1538=_0x56589d['config']['get']('trackChangesData')['editorCreator'],_0x4de398=await _0x4a1538(_0x1111a6,()=>function(_0x14eb90){const _0x388407=document['createElement']('div');return _0x14eb90['appendChild'](_0x388407),_0x388407;}(_0x5bc78a));!function(_0x328044,_0x477ccf){const _0x32d4ba=_0x328044['model']['document']['getRootNames']()['reduce']((_0x27a86d,_0x40345e)=>(_0x27a86d[_0x40345e]=_0x328044['data']['get']({'rootName':_0x40345e}),_0x27a86d),{}),_0x2141c7=_0x328044['plugins']['get']('Users')['users']['map'](_0x18d2fe=>({'id':_0x18d2fe['id'],'name':_0x18d2fe['name']})),_0xaf88c9=_0x328044['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x443dd1=_0x328044['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e3433=_0x477ccf['plugins']['get']('Users'),_0x3577d2=_0x477ccf['plugins']['get']('TrackChangesEditing'),_0x4e8a21=_0x477ccf['plugins']['get']('CommentsRepository');for(const _0x3613ea of _0x4e8a21['getCommentThreads']())_0x3613ea['remove']();for(const _0x1575ae of _0x2141c7)_0x4e3433['getUser'](_0x1575ae['id'])||_0x4e3433['addUser'](_0x1575ae);_0x4e3433['me']||_0x4e3433['useAnonymousUser']();for(const _0x593d98 of _0x443dd1)_0x4e8a21['addCommentThread'](_0x593d98);for(const _0x290779 of _0xaf88c9)_0x3577d2['addSuggestionData'](_0x290779);_0x477ccf['data']['set'](_0x32d4ba);}(_0x56589d,_0x4de398),_0x4de398['execute'](_0x464558?'acceptAllSuggestions':'discardAllSuggestions');const _0x4f504d=v(_0x4de398)?_0x4de398['getFullData'](_0x5f0d14):_0x4de398['data']['get'](_0x5f0d14);return await _0x4de398['destroy'](),_0x4f504d;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x4e814d,PendingActions as _0x455cad,icons as _0x3c447f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3cf7af,ObservableMixin as _0x4bc0c9,uid as _0x5712c5,insertToPriorityArray as _0x53c644,priorities as _0x9cc792,logWarning as _0x4c5c40,getEnvKeystrokeText as _0x327b72,FocusTracker as _0x39a9b6,KeystrokeHandler as _0x4e83fc,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1bb0a2,View as _0x1af9e8,ViewCollection as _0x443e45,FocusCycler as _0x197cea,ViewModel as _0xec2b22,createDropdown as Qt,SplitButtonView as _0x176f59,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x122fb6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5b3a8b,hashObject as _0x2b781c,surroundingMarkersDetector as _0x13d92a,FOCUS_ANNOTATION_KEYSTROKE as _0x4fffa1,AriaDescriptionView as _0x3bbd8a,setupThreadKeyboardNavigation as _0x13fd9d,trimHtml as _0x4cb242,UserView as _0x5456d4,LateFocusButtonView as _0x2a478e,getDateTimeFormatter as _0x821357,getAllMarkersDomElementsSorted as _0x30411f,sanitizeEditorConfig as _0x14e9b5}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4966f8,LiveRange as _0x256351,LivePosition as _0x480190}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x564ca1,toWidget as _0x51b763}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3bfdf7,set as _0x47462d,isEqual as _0x144ebc,unset as _0x3c4ec5,omit as Tt}from'lodash-es';import{Delete as _0x3d30c3,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x13e5b7,ShiftEnter as _0x2d4eda}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x5bcd31,_0x8ba7e5){super(_0x5bcd31),this['_enabledCommands']=_0x8ba7e5,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x3b3a07 of this['editor']['commands']['commands']())_0x3b3a07['affectsData']&&!this['_enabledCommands']['has'](_0x3b3a07)&&_0x3b3a07['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x16fd76 of this['editor']['commands']['commands']())_0x16fd76['affectsData']&&!this['_enabledCommands']['has'](_0x16fd76)&&_0x16fd76['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x4a852c,_0x2f1baa){super(_0x4a852c),this['_suggestions']=_0x2f1baa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3cf725){const _0x1b669c=this['_suggestions']['get'](_0x3cf725);if(!_0x1b669c)throw new _0x3cf7af('track-changes-accept-suggestion-not-found',this);const _0x1d179e=_0x1b669c['getRanges']();this['editor']['model']['canEditAt'](_0x1d179e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b669c);}}class R extends ts{['_suggestions'];constructor(_0x2bd316,_0x36bd86){super(_0x2bd316),this['_suggestions']=_0x36bd86,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2450cb){const _0x59d0ca=this['_suggestions']['get'](_0x2450cb);if(!_0x59d0ca)throw new _0x3cf7af('track-changes-discard-suggestion-not-found',this);const _0x1e1ea0=_0x59d0ca['getRanges']();this['editor']['model']['canEditAt'](_0x1e1ea0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x59d0ca);}}function ls(_0x2ace4f,_0x2422a9){let _0x1f6dd2='';return _0x1f6dd2+=_0x2ace4f['split']('*')['map']((_0x333046,_0x5c9e04)=>_0x5c9e04%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x333046)+'</span>':nn(_0x333046))['join'](''),_0x2422a9&&(_0x1f6dd2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2422a9['value']+'\x22\x20title=\x22'+_0x2422a9['title']+'\x22></span>'),_0x1f6dd2;}function nn(_0x30814b){const _0x296b17=document['createElement']('span');return _0x296b17['innerText']=_0x30814b,_0x296b17['innerHTML'];}function ss(_0x3d0487){return _0x3d0487['sort']((_0x1d1b17,_0x3ce892)=>'deletion'==_0x1d1b17['type']&&'deletion'!=_0x3ce892['type']?-0x1:'deletion'!=_0x1d1b17['type']&&'deletion'==_0x3ce892['type']?0x1:0x0);}function to(_0x2e2459,_0xc7eefd){let _0x5042e6,_0x5a1bc3=0x0;const _0x3255b2=[],_0x5252d1=_0xc7eefd['schema'];for(;_0x5a1bc3<_0x2e2459['length'];){const _0x564dad=_0x2e2459[_0x5a1bc3],_0x35a8d6=_0x2e2459[_0x5a1bc3+0x1];_0x5042e6||(_0x5042e6=_0xc7eefd['createPositionBefore'](_0x564dad)),on(_0xc7eefd,_0x564dad,_0x35a8d6)||(_0x3255b2['push'](_0xc7eefd['createRange'](_0x5042e6,_0x5252d1['isObject'](_0x564dad)?_0xc7eefd['createPositionAfter'](_0x564dad):_0xc7eefd['createPositionAt'](_0x564dad,'end'))),_0x5042e6=null),_0x5a1bc3++;}return _0x3255b2;}function on(_0x41546d,_0x454bd6,_0x18a32f){if(!_0x18a32f)return!0x1;const _0x34e4be=_0x41546d['createPositionAfter'](_0x454bd6),_0x3ad871=_0x41546d['createPositionBefore'](_0x18a32f);return _0x34e4be['isTouching'](_0x3ad871);}function rs(_0x415c1a,_0x4c2378,_0x592db9){for(;_0x592db9['length'];){const _0x369add=_0x592db9['splice'](0x0,0x64);_0x415c1a['change'](()=>{for(const _0xe7744e of _0x369add)_0xe7744e['isInContent']&&_0x4c2378['execute'](_0xe7744e['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x503fcc,_0x1fe8d7,_0x328b1b){super(_0x503fcc),this['_command']=_0x1fe8d7,this['_suggestions']=_0x328b1b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x176898=Array['from'](this['_suggestions']['values']())['some'](_0x2cab06=>_0x2cab06['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x176898;}['execute'](){const _0x5b960=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3ad89c of _0x5b960){const _0x3527ed=_0x3ad89c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3527ed))return;}rs(this['editor']['model'],this['_command'],_0x5b960);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x10fd90,_0x4aa56a,_0x2ad2d4){super(_0x10fd90),this['_command']=_0x4aa56a,this['_suggestions']=_0x2ad2d4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x32c346=this['editor']['model']['document']['selection'],_0x1e91b4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x55cc78,_0x4e52fe){const _0x1f7f0d=Array['from'](_0x55cc78['getRanges']()),_0x184033=new Set();for(const _0x1a505c of _0x4e52fe)if(_0x1a505c['isInContent']){for(const _0xaaee3a of _0x1f7f0d)for(const _0x2dbe91 of _0x1a505c['getRanges']())(_0xaaee3a['isIntersecting'](_0x2dbe91)||_0x55cc78['isCollapsed']&&!_0x1a505c['isMultiRange']&&_0x1a505c['next']&&_0x2dbe91['end']['isTouching'](_0xaaee3a['start']))&&_0x184033['add'](_0x1a505c);}return _0x184033;}(_0x32c346,_0x1e91b4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x274d2d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2e6d27 of _0x274d2d){const _0x407f76=_0x2e6d27['getRanges']();if(!this['editor']['model']['canEditAt'](_0x407f76))return;}rs(this['editor']['model'],this['_command'],_0x274d2d);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x4bc0c9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x162e55,_0x3dc79f){super(),this['id']=_0x3dc79f['id'],this['type']=_0x3dc79f['type'],this['subType']=_0x3dc79f['subType']||null,this['author']=_0x3dc79f['author'],this['creator']=_0x3dc79f['creator']||_0x3dc79f['author'],this['isExternal']=Boolean(_0x3dc79f['attributes']&&_0x3dc79f['attributes']['@external']),this['data']=null,this['_model']=_0x162e55,this['_onAccept']=_0x3dc79f['onAccept'],this['_onDiscard']=_0x3dc79f['onDiscard'],this['_onAttributesChange']=_0x3dc79f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3dc79f['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x499846=this;for(;_0x499846['previous'];)_0x499846=_0x499846['previous'];return _0x499846;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x4a87d3){this['_markerNames']['add'](_0x4a87d3);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4c790d=>this['_model']['markers']['get'](_0x4c790d))['filter'](_0x5beb7b=>_0x5beb7b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5d0def=>{for(const _0x51c1cf of this['getMarkers']())_0x5d0def['removeMarker'](_0x51c1cf);}),this['_markerNames']['clear']();}['removeMarker'](_0x19311e){this['_model']['change'](_0x28d927=>{_0x28d927['removeMarker'](_0x19311e);}),this['_markerNames']['delete'](_0x19311e);}['addRange'](_0x5d5e02){const _0x120566='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x120566),this['_model']['change'](_0x5ac295=>{_0x5ac295['addMarker'](_0x120566,{'range':_0x5d5e02,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1acf0e){for(const _0x3ac378 of this['getRanges']())if(_0x3ac378['isIntersecting'](_0x1acf0e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xbf38e=>_0xbf38e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x434e32,_0x4cfbfe)=>[..._0x434e32,..._0x4cfbfe['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x420aff=this['getRanges']();if(0x1!=_0x420aff['length'])return null;const _0x278e2a=_0x420aff[0x0],_0x45128f=_0x278e2a['start']['nodeAfter'],_0x25fe61=_0x278e2a['end']['nodeBefore'];return _0x45128f instanceof _0x4966f8?_0x45128f!=_0x25fe61?null:_0x45128f:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x37a90f=[];let _0x2d7843=this['head'];for(;_0x2d7843;)_0x37a90f['push'](_0x2d7843),_0x2d7843=_0x2d7843['next'];return _0x37a90f;}['setAttribute'](_0xfd9ab,_0x2c8bb5){const _0x488d13=_0x3bfdf7(this['attributes']);_0x47462d(_0x488d13,_0xfd9ab,_0x2c8bb5),_0x144ebc(_0x488d13,this['attributes'])||(this['attributes']=_0x488d13,this['_onAttributesChange'](_0x488d13));}['removeAttribute'](_0x362057){const _0x3e3e8a=_0x3bfdf7(this['attributes']);_0x3c4ec5(_0x3e3e8a,_0x362057),_0x144ebc(_0x3e3e8a,this['attributes'])||(this['attributes']=_0x3e3e8a,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x5712c5()['substr'](0x1,0x5);}}function o(_0x5bad1d,_0x2a53df,_0x383d6a){const t=_0x5bad1d['t'];switch(_0x2a53df){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x383d6a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x383d6a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x383d6a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x383d6a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x383d6a);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x383d6a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x383d6a);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x383d6a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x383d6a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x383d6a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x383d6a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x383d6a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x383d6a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x383d6a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x383d6a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x383d6a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x383d6a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x383d6a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x383d6a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x383d6a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x383d6a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x383d6a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x383d6a);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x383d6a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x383d6a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x383d6a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x383d6a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x383d6a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x383d6a);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x383d6a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x383d6a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x383d6a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x383d6a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x383d6a);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x383d6a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x383d6a);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x383d6a);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x383d6a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x383d6a);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x383d6a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x383d6a);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x383d6a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x383d6a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x383d6a);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x383d6a);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x383d6a);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x383d6a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x383d6a);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x383d6a);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x383d6a);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x383d6a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2a53df;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5201ef,_0x31c904){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5201ef,this['_locale']=_0x31c904;}['getDescriptions'](_0x241675){const _0x168839=[],_0x6599e=new Set(),_0x364744=new Set();for(let _0x171486=0x0;_0x171486<_0x241675['length'];_0x171486++){const _0x589e0d=_0x241675[_0x171486];if(!_0x589e0d['isInContent'])continue;const _0x1e13a8=this['_handleCustomCallbackDescription'](_0x589e0d);if(_0x1e13a8){if(null!=_0x589e0d['subType']){if(_0x6599e['has'](_0x589e0d['subType']))continue;_0x6599e['add'](_0x589e0d['subType']);}_0x168839['push'](_0x1e13a8);}else{if('attribute'!=_0x589e0d['type'])'insertion'!=_0x589e0d['type']&&'deletion'!=_0x589e0d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x168839,_0x589e0d,_0x241675[_0x171486+0x1]);else{const _0x2a7344=_0x589e0d['data']['key'];if(_0x364744['has'](_0x2a7344))continue;_0x364744['add'](_0x589e0d['data']['key']),_0x2a7344==m?this['_handleRenameSuggestionDescription'](_0x168839,_0x589e0d):this['_handleAttributeSuggestionDescription'](_0x168839,_0x589e0d);}}}return this['_resolveDescriptionItems'](_0x168839);}['registerDescriptionCallback'](_0x22b390){this['_customCallbacks']['push'](_0x22b390);}['registerElementLabel'](_0x4dc7d0,_0x4bd8fe,_0x1b046e=_0x9cc792['normal']){'function'==typeof _0x4dc7d0?_0x53c644(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4dc7d0,'label':_0x4bd8fe,'priority':_0x1b046e}):this['_itemLabels']['set'](_0x4dc7d0,_0x4bd8fe);}['registerAttributeLabel'](_0x535d15,_0x596d95){this['_attributeLabels']['set'](_0x535d15,_0x596d95);}['getItemLabel'](_0x3f3f85,_0x1262d7=0x1){let _0x424a57;for(const _0x11a64b of this['_itemLabelsCallbacks'])if(_0x11a64b['matchingCallback'](_0x3f3f85)){_0x424a57=_0x11a64b['label'];break;}return _0x424a57||(_0x424a57=this['_itemLabels']['get'](_0x3f3f85['name'])),_0x424a57?_0x424a57(_0x1262d7):0x1!==_0x1262d7?_0x1262d7+'\x20'+_0x3f3f85['name']+'s':''+_0x3f3f85['name'];}['_addDescriptionItems'](_0x34d15a,_0x2199c9){const _0x1a4876=_0x2199c9['getFirstRange']()['getWalker'](),_0x2d654e='insertion'==_0x2199c9['type']?'add':'remove';for(const _0x46c684 of _0x1a4876){const _0x9ef6f4=_0x46c684['item'],_0x8a9cb7=_0x34d15a[_0x34d15a['length']-0x1];if(_0x9ef6f4['is']('$textProxy'))_0x8a9cb7&&_0x8a9cb7['type']['indexOf']('Container')>-0x1&&_0x34d15a['pop'](),_0x8a9cb7&&'text'==_0x8a9cb7['type']?_0x8a9cb7[_0x2d654e]+=_0x9ef6f4['data']:_0x34d15a['push']({'type':'text','add':'add'==_0x2d654e?_0x9ef6f4['data']:'','remove':'remove'==_0x2d654e?_0x9ef6f4['data']:''});else{if(this['_schema']['isObject'](_0x9ef6f4)){const _0x4ca90a=_0x9ef6f4;if(_0x8a9cb7&&_0x8a9cb7['type']['indexOf']('Container')>-0x1&&_0x34d15a['pop'](),'elementEnd'==_0x46c684['type'])continue;_0x8a9cb7&&_0x8a9cb7['type']==_0x2d654e+'Object'&&_0x8a9cb7['element']['name']==_0x4ca90a['name']?_0x8a9cb7['quantity']++:_0x34d15a['push']({'type':_0x2d654e+'Object','element':_0x4ca90a,'quantity':0x1}),_0x1a4876['skip'](_0xd87f3=>!('elementEnd'==_0xd87f3['type']&&_0xd87f3['item']==_0x9ef6f4));}else{if(this['_schema']['checkChild'](_0x9ef6f4,'$text')||_0x9ef6f4['is']('element','softBreak')){const _0x2891b5=_0x9ef6f4;if('add'==_0x2d654e&&'elementStart'==_0x46c684['type']||'remove'==_0x2d654e&&'elementEnd'==_0x46c684['type'])continue;if(_0x8a9cb7&&-0x1==_0x8a9cb7['type']['indexOf']('Container')){'text'==_0x8a9cb7['type']&&(_0x8a9cb7[_0x2d654e]+='\x0a');continue;}let _0x2bb669;if(_0x2bb669='add'==_0x2d654e?_0x2891b5['nextSibling']&&!this['_schema']['isObject'](_0x2891b5['nextSibling'])?_0x2891b5['nextSibling']:null:_0x2891b5['previousSibling']&&!this['_schema']['isObject'](_0x2891b5['previousSibling'])?_0x2891b5['previousSibling']:null,_0x2891b5['isEmpty']||_0x2bb669&&_0x2bb669['isEmpty']){const _0x109fc1=_0x2bb669&&_0x2bb669['isEmpty']?_0x2bb669:_0x2891b5;_0x8a9cb7&&_0x8a9cb7['type']==_0x2d654e+'EmptyContainer'&&_0x8a9cb7['element']['name']==_0x109fc1['name']?_0x8a9cb7['quantity']++:_0x34d15a['push']({'type':_0x2d654e+'EmptyContainer','element':_0x109fc1,'quantity':0x1});}else _0x34d15a['push']({'type':_0x2d654e+'Container','element':_0x2891b5});}}}}}['_resolveDescriptionItems'](_0x9e626a){const _0x4a3240=this['_locale'],_0x5c6033=[],_0x554f1e=[],_0x33192c=[];for(const _0x4abd8c of _0x9e626a)switch(_0x4abd8c['type']){case'text':if(_0x4abd8c['add']=_0x4abd8c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4abd8c['remove']=_0x4abd8c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4abd8c['add']&&''!=_0x4abd8c['remove']){_0x5c6033['push']({'type':'replace','content':o(_0x4a3240,'REPLACE_TEXT',['\x22'+_0x4abd8c['remove']+'\x22','\x22'+_0x4abd8c['add']+'\x22'])});continue;}if(null!=_0x4abd8c['add']['match'](/^ +$/)){_0x5c6033['push']({'type':'insertion','content':o(_0x4a3240,'*Insert:*\x20%0',o(_0x4a3240,'ELEMENT_SPACE',_0x4abd8c['add']['length']))});continue;}if(null!=_0x4abd8c['remove']['match'](/^ +$/)){_0x5c6033['push']({'type':'deletion','content':o(_0x4a3240,'*Remove:*\x20%0',o(_0x4a3240,'ELEMENT_SPACE',_0x4abd8c['remove']['length']))});continue;}if(''!=_0x4abd8c['add']){_0x5c6033['push']({'type':'insertion','content':o(_0x4a3240,'*Insert:*\x20%0','\x22'+_0x4abd8c['add']+'\x22')});continue;}_0x5c6033['push']({'type':'deletion','content':o(_0x4a3240,'*Remove:*\x20%0','\x22'+_0x4abd8c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5c6033['push']({'type':'insertion','content':o(_0x4a3240,'*Insert:*\x20%0',this['getItemLabel'](_0x4abd8c['element'],_0x4abd8c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5c6033['push']({'type':'deletion','content':o(_0x4a3240,'*Remove:*\x20%0',this['getItemLabel'](_0x4abd8c['element'],_0x4abd8c['quantity']))});continue;case'addContainer':_0x5c6033['push']({'type':'insertion','content':o(_0x4a3240,'*Split:*\x20%0',this['getItemLabel'](_0x4abd8c['element'],_0x4abd8c['quantity']))});continue;case'removeContainer':_0x5c6033['push']({'type':'deletion','content':o(_0x4a3240,'*Merge:*\x20%0',this['getItemLabel'](_0x4abd8c['element'],_0x4abd8c['quantity']))});continue;case'addFormat':_0x554f1e['push'](_0x4abd8c['key']);continue;case'removeFormat':_0x33192c['push'](_0x4abd8c['key']);continue;default:_0x5c6033['push'](_0x4abd8c);}if(_0x554f1e['length']){const _0x357b5e=_0x554f1e['map'](_0x5ccc5f=>this['_attributeLabels']['has'](_0x5ccc5f)?this['_attributeLabels']['get'](_0x5ccc5f):_0x5ccc5f)['join'](',\x20');_0x5c6033['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x357b5e)});}if(_0x33192c['length']){const _0x47a874=_0x33192c['map'](_0x3e4e5b=>this['_attributeLabels']['has'](_0x3e4e5b)?this['_attributeLabels']['get'](_0x3e4e5b):_0x3e4e5b)['join'](',\x20');_0x5c6033['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x47a874)});}return _0x5c6033;}['_handleCustomCallbackDescription'](_0x2b8658){for(const _0x26afba of this['_customCallbacks']){const _0x1f0b63=_0x26afba(_0x2b8658);if(_0x1f0b63&&'type'in _0x1f0b63)return _0x1f0b63;}}['_handleAttributeSuggestionDescription'](_0x4d3fa1,_0x1e7176){const _0x2193c4=_0x1e7176['data'],_0x5b90e7=void 0x0===_0x2193c4['newValue']?'removeFormat':'addFormat';_0x4d3fa1['push']({'type':_0x5b90e7,'key':_0x2193c4['key']});}['_handleRenameSuggestionDescription'](_0x4f05b3,_0xa9e42f){_0x4f05b3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xa9e42f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5cd907,_0x285740,_0xab97f3){if(this['_addDescriptionItems'](_0x5cd907,_0x285740),_0xab97f3&&_0xab97f3['getFirstRange']()&&!_0x285740['getFirstRange']()['end']['isEqual'](_0xab97f3['getFirstRange']()['start'])){const _0xaf7fda=_0x5cd907[_0x5cd907['length']-0x1],_0x196509='insertion'==_0x285740['type']?'add':'remove';_0xaf7fda&&'text'==_0xaf7fda['type']&&(_0xaf7fda[_0x196509]+='\x0a');}}}class V extends _0x4e814d{['afterInit'](){const _0x48a7ac=this['editor'],_0x3faec0=_0x48a7ac['plugins']['get']('TrackChangesEditing');_0x48a7ac['commands']['get']('showAIAssistant')&&_0x3faec0['enableCommand']('showAIAssistant');}}class U extends _0x4e814d{['afterInit'](){const _0xb54bcb=this['editor'],_0x3bc32f=_0xb54bcb['locale'];if(!_0xb54bcb['plugins']['has']('AlignmentEditing'))return;const _0x2a8917=_0xb54bcb['plugins']['get']('TrackChangesEditing');_0x2a8917['enableDefaultAttributesIntegration']('alignment'),_0x2a8917['registerBlockAttribute']('alignment'),_0x2a8917['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3bc32f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36806f=this['editor'],_0x22d5dc=_0x36806f['locale'];_0x36806f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d3c41=>{if('formatBlock'!=_0x5d3c41['type'])return;const {data:_0x3a1e5c}=_0x5d3c41;if(_0x3a1e5c&&'alignment'==_0x3a1e5c['commandName']){const _0x371ae5=_0x3a1e5c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x22d5dc,'*Format:*\x20%0',function(_0x5d587e){switch(_0x5d587e){case'left':return o(_0x22d5dc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x22d5dc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x22d5dc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x22d5dc,'FORMAT_JUSTIFY_TEXT');}}(_0x371ae5))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4e814d{['afterInit'](){const _0x3d2c40=this['editor'],_0x369e93=_0x3d2c40['plugins']['get']('TrackChangesEditing'),_0x56d675=_0x3d2c40['locale'];for(const _0x2adfcc of ti){if(!_0x3d2c40['plugins']['has'](_0x2adfcc))continue;const _0x323349=_0x2adfcc['slice'](0x0,-0x7)['toLowerCase'](),_0x34a8b8='FORMAT_'+_0x323349['toUpperCase']();_0x369e93['enableDefaultAttributesIntegration'](_0x323349),_0x369e93['registerInlineAttribute'](_0x323349),_0x369e93['descriptionFactory']['registerAttributeLabel'](_0x323349,o(_0x56d675,_0x34a8b8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3cbc2=this['editor'],_0x432be6=_0xd3cbc2['locale'],_0x40cfbd=_0xd3cbc2['plugins']['get']('TrackChangesEditing');function _0x1eb307(_0x2665a0,_0x193743){_0x40cfbd['descriptionFactory']['registerDescriptionCallback'](_0x5a7122=>{if('formatInline'!=_0x5a7122['type'])return;const {data:_0x3cbd21}=_0x5a7122;return _0x3cbd21&&_0x3cbd21['commandName']===_0x2665a0?_0x3cbd21['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x432be6,'*Format:*\x20%0',_0x193743)}:{'type':'format','content':o(_0x432be6,'*Remove\x20format:*\x20%0',_0x193743)}:void 0x0;});}_0x1eb307('bold',o(_0x432be6,'FORMAT_BOLD')),_0x1eb307('italic',o(_0x432be6,'FORMAT_ITALIC')),_0x1eb307('underline',o(_0x432be6,'FORMAT_UNDERLINE')),_0x1eb307('code',o(_0x432be6,'FORMAT_CODE')),_0x1eb307('strikethrough',o(_0x432be6,'FORMAT_STRIKETHROUGH')),_0x1eb307('subscript',o(_0x432be6,'FORMAT_SUBSCRIPT')),_0x1eb307('superscript',o(_0x432be6,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4e814d{['afterInit'](){const _0x1ab79c=this['editor'],_0x4b8045=_0x1ab79c['locale'];if(!_0x1ab79c['plugins']['has']('BlockQuoteEditing'))return;const _0x1422ec=_0x1ab79c['plugins']['get']('TrackChangesEditing'),_0x3e77a5=this['editor']['commands']['get']('blockQuote');_0x1422ec['enableCommand']('blockQuote',(_0x5d272b,_0x73374f={})=>{const _0x4a2be7=this['editor']['model']['document']['selection'],_0x1c2565=_0x73374f&&void 0x0!==_0x73374f['forceValue']?_0x73374f['forceValue']:!_0x3e77a5['value'];let _0x1c9ac4=[];if(_0x1c2565){const _0x3c868c=Array['from'](_0x4a2be7['getSelectedBlocks']())['filter'](_0x10b91a=>oo(_0x10b91a)||function(_0x6b2ae5,_0x27737d){const _0x12cee0=_0x27737d['checkChild'](_0x6b2ae5['parent'],'blockQuote'),_0x41ac41=_0x27737d['checkChild'](['$root','blockQuote'],_0x6b2ae5);return _0x12cee0&&_0x41ac41;}(_0x10b91a,this['editor']['model']['schema']));_0x1c9ac4=to(_0x3c868c,_0x1ab79c['model']);}else{const _0x88db6e=Array['from'](_0x4a2be7['getSelectedBlocks']())['filter'](_0xc50a52=>oo(_0xc50a52));_0x1c9ac4=to(_0x88db6e,_0x1ab79c['model']);}_0x1ab79c['model']['change'](()=>{for(const _0x14b6c3 of _0x1c9ac4)_0x1422ec['markBlockFormat'](_0x14b6c3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1c2565}]});});}),_0x1422ec['descriptionFactory']['registerDescriptionCallback'](_0x52ede7=>{const {data:_0x2b73d9}=_0x52ede7;if(_0x2b73d9&&'blockQuote'==_0x2b73d9['commandName']){const _0x5bbbd6=o(_0x4b8045,'ELEMENT_BLOCK_QUOTE');return _0x2b73d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b8045,'*Set\x20format:*\x20%0',_0x5bbbd6)}:{'type':'format','content':o(_0x4b8045,'*Remove\x20format:*\x20%0',_0x5bbbd6)};}});}}function oo(_0x2dda68){return'blockQuote'==_0x2dda68['parent']['name'];}class L extends _0x4e814d{['afterInit'](){const _0x489c3a=this['editor'];_0x489c3a['plugins']['has']('CaseChange')&&(_0x489c3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x489c3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x489c3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4e814d{['afterInit'](){const _0x4886c1=this['editor'];_0x4886c1['commands']['get']('ckbox')&&_0x4886c1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x4e814d{['afterInit'](){const _0x133ecd=this['editor'];if(!_0x133ecd['plugins']['has']('CodeBlock'))return;const _0x111c26=_0x133ecd['plugins']['get']('TrackChangesEditing'),_0x1082cd=_0x133ecd['locale'],_0x5ec962=_0x133ecd['config']['get']('codeBlock')['languages'],_0x231c75=_0x133ecd['commands']['get']('codeBlock');_0x111c26['enableCommand']('indentCodeBlock'),_0x111c26['enableCommand']('outdentCodeBlock'),_0x111c26['enableCommand']('codeBlock',(_0x2e3762,_0x4f5e47={})=>{const _0x33b3d5=_0x133ecd['model'],_0x19f17e=_0x133ecd['model']['document']['selection'],_0x4fbf64=_0x4f5e47&&void 0x0!==_0x4f5e47['forceValue']?_0x4f5e47['forceValue']:!_0x231c75['value'];let _0x4119d3;_0x4f5e47['language']||(_0x4f5e47['language']=_0x5ec962[0x0]['language']),_0x4119d3=_0x4fbf64?Array['from'](_0x19f17e['getSelectedBlocks']())['filter'](_0xa5fae1=>eo(_0xa5fae1)||function(_0x3b04be,_0x47d30e){if(_0x3b04be['is']('rootElement')||_0x47d30e['isLimit'](_0x3b04be))return!0x1;return _0x47d30e['checkChild'](_0x3b04be['parent'],'codeBlock');}(_0xa5fae1,_0x33b3d5['schema'])):Array['from'](_0x19f17e['getSelectedBlocks']())['filter'](_0xce0b02=>eo(_0xce0b02));const _0x4bb9dd=to(_0x4119d3,_0x33b3d5);_0x33b3d5['change'](()=>{for(const _0x4cfa6c of _0x4bb9dd)_0x111c26['markBlockFormat'](_0x4cfa6c,{'commandName':'codeBlock','commandParams':[{..._0x4f5e47,'forceValue':_0x4fbf64}],'formatGroupId':'blockName'});});}),(_0x111c26['descriptionFactory']['registerElementLabel']('codeBlock',_0x3ee000=>o(_0x1082cd,'ELEMENT_CODE_BLOCK',_0x3ee000)),_0x111c26['descriptionFactory']['registerDescriptionCallback'](_0x434a67=>{if('formatBlock'!=_0x434a67['type'])return;const _0x190d29=_0x1082cd['t'],{data:_0x6b1b2f}=_0x434a67;if(!_0x6b1b2f||'codeBlock'!=_0x6b1b2f['commandName'])return;const _0x5ea7f1=_0x6b1b2f['commandParams'][0x0]['language'],_0x627924=_0x190d29(_0x5ec962['find'](_0x2a4dcb=>_0x2a4dcb['language']===_0x5ea7f1)['label'])['toLowerCase']();return _0x6b1b2f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1082cd,'*Set\x20format:*\x20%0',o(_0x1082cd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x627924+')')}:{'type':'format','content':o(_0x1082cd,'*Remove\x20format:*\x20%0',o(_0x1082cd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x14a6fb){return'codeBlock'==_0x14a6fb['name'];}class q extends _0x4e814d{['afterInit'](){const _0xcc8e35=this['editor'];if(!_0xcc8e35['plugins']['has']('CommentsEditing'))return;_0xcc8e35['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1a4cf9,_0x46ce6a,_0x553ba6){const _0xa6bbf6=[];for(const _0x4e4bfc of _0x46ce6a['getItems']())_0x4e4bfc['hasAttribute'](_0x1a4cf9)&&_0xa6bbf6['push'](_0x553ba6['createRangeOn'](_0x4e4bfc));return _0xa6bbf6;}function _e(_0x9bf37d,_0x36e10e,{showActiveMarker:_0x5413d8=!0x0}={}){const _0x4bac47=_0x9bf37d['plugins']['get']('TrackChangesEditing');return(_0x43e82f,_0x215930,_0x564dc4)=>{if(!_0x564dc4['consumable']['test'](_0x215930['markerRange'],_0x43e82f['name']))return;const _0x418fc7=_0x215930['markerRange']['getWalker'](),_0x2bd12b=_0x215930['markerRange']['start'],_0x1a7c36=_0x9bf37d['model']['schema'];let _0x520565=null,_0x32bcb1=null,_0x5c6385=!0x1,_0x3f5467=!0x1;for(const _0xb88b04 of _0x418fc7){const _0x2ee12d=_0xb88b04['item'];_0x5c6385=_0x5c6385||_0x1a7c36['isContent'](_0x2ee12d);const _0x350360=_0x564dc4['mapper']['toViewElement'](_0x2ee12d);if(_0x350360&&_0x350360['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xb88b04['type']&&(_0x1a7c36['isBlock'](_0x2ee12d)&&!_0x1a7c36['isLimit'](_0x2ee12d)&&(_0x2ee12d['nextSibling']||_0x2bd12b['isAtEnd']?_0x520565&&_0x520565['parent']==_0x2ee12d||(_0x520565=_0x2ee12d,_0x44c542(_0xb88b04['previousPosition']),_0x3f5467=!0x0):_0x32bcb1=_0x32bcb1||_0xb88b04['previousPosition']));}function _0x44c542(_0x65edb6){const {authorId:_0x2d945d}=_0x4bac47['_splitMarkerName'](_0x215930['markerName']),_0x55466b=_0x564dc4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36e10e,'data-author-id':_0x2d945d}),_0xb788e6=_0x564dc4['mapper']['toViewPosition'](_0x65edb6);_0x5413d8&&_0x4bac47['activeMarkers']['includes'](_0x215930['markerName'])&&_0x564dc4['writer']['addClass']('ck-suggestion-marker--active',_0x55466b),_0x564dc4['writer']['insert'](_0xb788e6,_0x55466b),_0x564dc4['mapper']['bindElementToMarker'](_0x55466b,_0x215930['markerName']);}_0x5c6385||_0x3f5467||!_0x32bcb1||_0x44c542(_0x32bcb1);};}class z extends _0x4e814d{static get['requires'](){return[_0x3d30c3];}['init'](){const _0x589232=this['editor'],_0x1bdd94=_0x589232['plugins']['get']('TrackChangesEditing');_0x1bdd94['enableCommand']('delete');const _0x25e686=_0x589232['commands']['get']('deleteForward');_0x1bdd94['enableCommand']('deleteForward',(_0x4f2627,_0x2c84e9={})=>{const _0x30f0de=_0x589232['model']['createSelection'](_0x589232['model']['document']['selection']);_0x30f0de['isCollapsed']&&_0x589232['model']['modifySelection'](_0x30f0de,{'direction':'forward','unit':_0x2c84e9['unit']});const _0x436ba5=_0x30f0de['getFirstRange'](),_0x1c5fc5=_0x256351['fromRange'](_0x436ba5);let _0x73a1f6;_0x4f2627(_0x2c84e9),_0x73a1f6='$graveyard'==_0x1c5fc5['root']['rootName']?_0x589232['model']['createRange'](_0x436ba5['start']):_0x589232['model']['createRange'](_0x1c5fc5['start'],_0x1c5fc5['end']),_0x1c5fc5['detach'](),_0x589232['model']['enqueueChange'](_0x25e686['buffer']['batch'],_0x57a353=>{_0x25e686['buffer']['lock'](),_0x57a353['setSelection'](_0x57a353['createRange'](_0x73a1f6['end'])),_0x25e686['buffer']['unlock']();});}),_0x589232['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x589232,'merge'),{'priority':'high'}),_0x589232['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5dd74e,_0x38b711,_0xabe1b6)=>{_0xabe1b6['options']['showSuggestionHighlights']&&_e(_0x589232,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5dd74e,_0x38b711,_0xabe1b6);},{'priority':'high'}),_0x589232['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x34a4c5,_0x3b56e3,_0x29f8c8)=>{const _0x50bd81=_0x29f8c8['mapper']['markerNameToElements'](_0x3b56e3['markerName']);if(_0x50bd81){for(const _0x21fa8f of _0x50bd81)_0x21fa8f['is']('uiElement')&&(_0x29f8c8['mapper']['unbindElementFromMarkerName'](_0x21fa8f,_0x3b56e3['markerName']),_0x29f8c8['writer']['remove'](_0x21fa8f));}},{'priority':'high'});}}class K extends _0x4e814d{['afterInit'](){const _0x2c14a7=this['editor'];if(!_0x2c14a7['plugins']['has']('ListEditing'))return;const _0x463e47=_0x2c14a7['locale'],_0x1f0294=_0x2c14a7['plugins']['get']('TrackChangesEditing'),_0x6fc3ac=_0x2c14a7['plugins']['has']('TodoListEditing'),_0x944a07=!!_0x2c14a7['config']['get']('list.multiBlock');function _0x242223(_0x1753f5){return{'type':'format','content':''+o(_0x463e47,'*Set\x20format:*\x20%0',_0x1753f5)};}function _0x3a2af0(_0x22286b){return{'type':'format','content':''+o(_0x463e47,'*Remove\x20format:*\x20%0',_0x22286b)};}_0x1f0294['enableDefaultAttributesIntegration']('numberedList'),_0x1f0294['enableDefaultAttributesIntegration']('bulletedList'),_0x1f0294['enableDefaultAttributesIntegration']('customNumberedList'),_0x1f0294['enableDefaultAttributesIntegration']('customBulletedList'),_0x1f0294['enableDefaultAttributesIntegration']('indentList'),_0x1f0294['enableDefaultAttributesIntegration']('outdentList'),_0x1f0294['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1f0294['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1f0294['registerBlockAttribute']('listItemId'),_0x1f0294['registerBlockAttribute']('listType'),_0x1f0294['registerBlockAttribute']('listIndent'),_0x944a07&&(_0x1f0294['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1f0294['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x6fc3ac&&(_0x1f0294['enableDefaultAttributesIntegration']('todoList'),_0x1f0294['enableDefaultAttributesIntegration']('checkTodoList'),_0x1f0294['registerBlockAttribute']('todoListChecked'),_0x1f0294['descriptionFactory']['registerDescriptionCallback'](_0x4f2b21=>{const {data:_0x1420ea}=_0x4f2b21;if(_0x1420ea&&'todoListChecked'==_0x1420ea['key'])return{'type':'format','content':_0x1420ea['newValue']?o(_0x463e47,'*Check\x20item*'):o(_0x463e47,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x47a074=>{if(_0x47a074['batch']['isUndo'])return!0x1;let _0x33e264=!0x1;const _0x1af9b1=_0x1f0294['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a9517=>'todoListChecked'===_0x1f0294['_getAttributeKey'](_0x1a9517));for(const _0x3e7da4 of _0x1af9b1){'todo'!=_0x3e7da4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1f0294['_findSuggestions'](_0x3e7da4['getFirstRange'](),'attribute')['find'](_0x37f490=>'listType'===_0x1f0294['_getAttributeKey'](_0x37f490['suggestion']))||(_0x47a074['removeMarker'](_0x3e7da4['getFirstMarker']()),_0x33e264=!0x0));}return _0x33e264;})),_0x1f0294['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x463e47,'FORMAT_INDENT'));const _0x4b8e3f={'type':'format','content':''};_0x1f0294['descriptionFactory']['registerDescriptionCallback'](_0x29fb0a=>{const {data:_0x58d143}=_0x29fb0a;if(!_0x58d143||'listType'!=_0x58d143['key'])return;let _0x2c71c9=_0x29fb0a['head'];for(;_0x2c71c9;){if(_0x2c71c9['data']&&(('listStyle'==_0x2c71c9['data']['key']||'listMarkerStyle'==_0x2c71c9['data']['key'])&&(_0x2c71c9['data']['newValue']&&'default'!=_0x2c71c9['data']['newValue']||'default'!=_0x2c71c9['data']['oldValue']&&!_0x58d143['newValue'])||!_0x944a07&&_0x2c71c9['data']['key']==m))return _0x4b8e3f;_0x2c71c9=_0x2c71c9['next'];}if(null==_0x58d143['newValue'])switch(_0x58d143['oldValue']){case'bulleted':return _0x3a2af0(o(_0x463e47,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a2af0(o(_0x463e47,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a2af0(o(_0x463e47,'ELEMENT_TODO_LIST'));}switch(_0x58d143['newValue']){case'bulleted':return _0x242223(o(_0x463e47,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x242223(o(_0x463e47,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x242223(o(_0x463e47,'ELEMENT_TODO_LIST'));}}),_0x1f0294['descriptionFactory']['registerDescriptionCallback'](_0x56e5f8=>{const {data:_0x2d4281}=_0x56e5f8;if(_0x2d4281&&'listIndent'==_0x2d4281['key'])return null==_0x2d4281['newValue']||null==_0x2d4281['oldValue']&&0x0==_0x2d4281['newValue']?_0x4b8e3f:void 0x0;}),_0x1f0294['descriptionFactory']['registerDescriptionCallback'](_0x3ee9d1=>{if('attribute'!=_0x3ee9d1['type'])return;const {data:_0x2ca003}=_0x3ee9d1;if(!_0x2ca003||'listItemId'!=_0x2ca003['key'])return;const _0x39c019=Ee(_0x3ee9d1);return'newValue'==_0x39c019?{'type':'format','content':o(_0x463e47,'*Merge:*\x20list\x20item')}:'oldValue'==_0x39c019?{'type':'format','content':o(_0x463e47,'*Split:*\x20list\x20item')}:_0x4b8e3f;}),_0x2c14a7['model']['document']['registerPostFixer'](_0x224f03=>this['listItemIdFixer'](_0x224f03)),_0x2c14a7['model']['document']['registerPostFixer'](_0x1fb7c6=>this['noTrackChangesFixer'](_0x1fb7c6)),_0x2c14a7['model']['document']['on']('change:data',(_0x55362b,_0x32cca2)=>{if(_0x32cca2['isUndo']||!_0x32cca2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xa9ae08){if(_0xa9ae08['batch']['isUndo']||!_0xa9ae08['batch']['isLocal'])return!0x1;let _0x18f5e1=!0x1;const _0x2a90e6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bb5ae=>_0x4bb5ae['data']&&'listItemId'==_0x4bb5ae['data']['key'])['filter'](_0x149d1e=>_0x149d1e['data']['newValue']&&_0x149d1e['data']['oldValue']);for(const _0x4389f8 of _0x2a90e6)Ee(_0x4389f8)||(_0xa9ae08['removeMarker'](_0x4389f8['getFirstMarker']()),_0x18f5e1=!0x0);return _0x18f5e1;}['noTrackChangesFixer'](_0x2b3b36){if(_0x2b3b36['batch']['isUndo']||!_0x2b3b36['batch']['isLocal'])return!0x1;const _0x28a560=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x28a560['trackChangesCommand']['value'])return!0x1;let _0x349743=!0x1;const _0x8e3157=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x36fdcc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48f5e2=>'attribute'==_0x48f5e2['type'])['filter'](_0x567b82=>_0x8e3157['includes'](_0x567b82['attributeKey']));if(0x0==_0x36fdcc['length'])return _0x349743;for(const _0x40e21e of _0x36fdcc){const _0x41eda1=_0x28a560['_findSuggestions'](_0x40e21e['range'],'attribute')['filter'](_0x2d2362=>!_0x2d2362['meta']['isNextTo'])['map'](_0xda493f=>_0xda493f['suggestion'])['filter'](_0x55bf1c=>{const _0xb8f9dc=_0x28a560['_getAttributeKey'](_0x55bf1c);return _0x8e3157['includes'](_0xb8f9dc);});if(_0x41eda1['length']){for(const _0x3fbd44 of _0x41eda1)_0x2b3b36['removeMarker'](_0x3fbd44['getFirstMarker']());_0x349743=!0x0;}}return _0x349743;}['assureChains'](){const _0x13a7a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14a486=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x108cbd;const _0xb3e627=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ba607=>{if(_0x2ba607['data']['oldRange']||!_0x2ba607['data']['newRange'])return null;if(!_0x2ba607['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4862eb}=_0x13a7a7['_splitMarkerName'](_0x2ba607['name']);if(!_0x13a7a7['hasSuggestion'](_0x4862eb))return null;const _0xcf120d=_0x13a7a7['getSuggestion'](_0x4862eb);return _0x14a486['includes'](_0xcf120d['data']['key']);})['map'](_0x1bf757=>{const {id:_0x5ce5c8}=_0x13a7a7['_splitMarkerName'](_0x1bf757['name']),_0x3396ca=_0x13a7a7['getSuggestion'](_0x5ce5c8);return _0x108cbd=_0x3396ca['attributes']['groupId'],_0x3396ca['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xb3e627['size'])return;const _0x1053c9=_0x13a7a7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19375d=>'attribute'==_0x19375d['type']&&_0x19375d['data']&&_0x14a486['includes'](_0x19375d['data']['key'])&&_0x19375d['attributes']['groupId']!=_0x108cbd)['map'](_0x2a0078=>({'listItem':_0x2a0078['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2a0078['attributes']['groupId']})),_0x2ec5fb=new Set();for(const {groupId:_0x48abd7,listItem:_0x2a89a8}of _0x1053c9)_0xb3e627['has'](_0x2a89a8)&&_0x2ec5fb['add'](_0x48abd7);for(const _0x1a8f66 of _0x13a7a7['getSuggestions']())_0x2ec5fb['has'](_0x1a8f66['attributes']['groupId'])&&_0x1a8f66['setAttribute']('groupId',_0x108cbd);}['_supportLegacySuggestions'](){const _0x2ee17a=this['editor'],_0x14294b=_0x2ee17a['locale'],_0x19e637=_0x2ee17a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x19e637['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5a0250,_0x12acb7){const _0x1b0313=[];for(let _0x43c4de of _0x5a0250)_0x43c4de['start']['nodeAfter']===_0x43c4de['end']['parent']&&(_0x43c4de=_0x2ee17a['model']['createRange'](_0x2ee17a['model']['createPositionAt'](_0x43c4de['start']['nodeAfter'],0x0))),_0x1b0313['push'](_0x43c4de);_0x2ee17a['model']['change'](_0x14ce15=>{const _0x377fdd=_0x2ee17a['model']['document']['selection'],_0xfa1fb7=Array['from'](_0x377fdd['getRanges']())['map'](_0x20d56b=>_0x256351['fromRange'](_0x20d56b));_0x14ce15['setSelection'](_0x1b0313),_0x2ee17a['commands']['get'](_0x12acb7['commandName'])['refresh'](),_0x12acb7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2ee17a['execute'](_0x12acb7['commandName'],..._0x12acb7['commandParams']),_0x14ce15['setSelection'](_0xfa1fb7);for(const _0xcfb3dd of _0xfa1fb7)_0xcfb3dd['detach']();});}),_0x19e637['descriptionFactory']['registerElementLabel'](function(_0x403b4b){const _0x4a8d44=!_0x2ee17a['model']['schema']['isObject'](_0x403b4b),_0x3ec47c=_0x403b4b['previousSibling'],_0x219202=_0x403b4b['nextSibling'],_0x4f5bb2=_0x403b4b['getAttribute']('listItemId'),_0x144911=!_0x3ec47c||_0x3ec47c['getAttribute']('listItemId')!==_0x4f5bb2,_0x190d5b=!_0x219202||_0x219202['getAttribute']('listItemId')!==_0x4f5bb2;return _0x4a8d44&&Boolean(_0x4f5bb2)&&_0x144911&&_0x190d5b;},_0x30c05e=>o(_0x14294b,'ELEMENT_LIST_ITEM',_0x30c05e));}['_registerLegacyDescription'](){const _0x139d97=this['editor'],_0x432c3e=_0x139d97['locale'];function _0x327c8d(_0x1ba622){const _0x4a9e30=_0x139d97['commands']['get']('bulletedList')['value'],_0x2758c9=_0x139d97['commands']['get']('numberedList')['value'];return'numberedList'===_0x1ba622?_0x4a9e30:_0x2758c9;}_0x139d97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5f5c0c){if('formatBlock'!=_0x5f5c0c['type'])return;const {data:_0x2b18ce}=_0x5f5c0c;if(!_0x2b18ce)return;let _0x31d0ee,_0x1a1f1d,_0x5a2c13,_0x4f93d2;switch(_0x2b18ce['commandName']){case'bulletedList':_0x5a2c13=_0x2b18ce['commandParams'][0x0]['forceValue'],_0x4f93d2=_0x327c8d(_0x2b18ce['commandName']),_0x31d0ee=_0x5a2c13?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4f93d2&&_0x139d97['config']['get']('list.multiBlock')||(_0x31d0ee='*Change\x20to:*\x20%0'),_0x1a1f1d={'type':'format','content':o(_0x432c3e,_0x31d0ee,o(_0x432c3e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a2c13=_0x2b18ce['commandParams'][0x0]['forceValue'],_0x4f93d2=_0x327c8d(_0x2b18ce['commandName']),_0x31d0ee=_0x5a2c13?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4f93d2&&_0x139d97['config']['get']('list.multiBlock')||(_0x31d0ee='*Change\x20to:*\x20%0'),_0x1a1f1d={'type':'format','content':o(_0x432c3e,_0x31d0ee,o(_0x432c3e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x31d0ee='*Indent:*\x20%0',_0x1a1f1d={'type':'format','content':o(_0x432c3e,_0x31d0ee,o(_0x432c3e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x31d0ee=function(_0x186776){const _0x1e1dc6=_0x186776['getFirstRange']();let _0x3d3097=_0x1e1dc6['start']['nodeAfter'];for(;_0x3d3097&&_0x1e1dc6['containsItem'](_0x3d3097);){if(_0x3d3097['getAttribute']('listIndent')>0x0)return!0x1;_0x3d3097=_0x3d3097['nextSibling'];}return!0x0;}(_0x5f5c0c)?o(_0x432c3e,'*Format:*\x20remove\x20from\x20%0',o(_0x432c3e,function(_0x3de25b){return'ELEMENT_'+_0x3de25b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5f5c0c))):o(_0x432c3e,'*Outdent:*\x20%0',o(_0x432c3e,'ELEMENT_LIST_ITEM')),_0x1a1f1d={'type':'format','content':_0x31d0ee};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2b18ce['multipleBlocks']&&(_0x31d0ee='*Merge:*\x20%0',_0x1a1f1d={'type':'deletion','content':o(_0x432c3e,_0x31d0ee,o(_0x432c3e,'ELEMENT_LIST_ITEM'))});}return _0x1a1f1d;});}}function Ee(_0x11975e){let _0x515d17=_0x11975e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x515d17;){const _0x54255e=_0x515d17['getAttribute']('listItemId');if(!_0x54255e)return!0x1;if(_0x54255e==_0x11975e['data']['newValue'])return'newValue';if(_0x54255e==_0x11975e['data']['oldValue'])return'oldValue';_0x515d17=_0x515d17['previousSibling'];}return!0x1;}class pe extends _0x4e814d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x43a795=this['editor']['config']['get']('list.properties'),_0x3035b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x43a795['styles']&&(_0x3035b2['enableDefaultAttributesIntegration']('listStyle'),_0x3035b2['registerBlockAttribute']('listStyle')),_0x43a795['reversed']&&(_0x3035b2['enableDefaultAttributesIntegration']('listReversed'),_0x3035b2['registerBlockAttribute']('listReversed')),_0x43a795['startIndex']&&(_0x3035b2['enableDefaultAttributesIntegration']('listStart'),_0x3035b2['registerBlockAttribute']('listStart'));const _0x53781a={'type':'format','content':''};_0x3035b2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3a86ca=this['editor']['locale'];_0x3035b2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3a86ca,'FORMAT_LIST_REVERSED')),_0x3035b2['descriptionFactory']['registerDescriptionCallback'](_0x22f7e9=>{const {data:_0xcb2489}=_0x22f7e9;if(_0xcb2489&&'listReversed'==_0xcb2489['key'])return null==_0xcb2489['newValue']||0x0==_0xcb2489['newValue']&&null==_0xcb2489['oldValue']?_0x53781a:void 0x0;}),_0x3035b2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3a86ca,'FORMAT_LIST_START')),_0x3035b2['descriptionFactory']['registerDescriptionCallback'](_0x10ba49=>{const {data:_0x3c5bdf}=_0x10ba49;if(_0x3c5bdf&&'listStart'==_0x3c5bdf['key'])return null==_0x3c5bdf['newValue']||0x1==_0x3c5bdf['newValue']&&null==_0x3c5bdf['oldValue']?_0x53781a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x22c666=>{if(_0x22c666['batch']['isUndo'])return!0x1;let _0x388ef5=!0x1;const _0x26e108=_0x3035b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf883e5=>{const _0x656354=_0x3035b2['_getAttributeKey'](_0xf883e5);return'listStart'==_0x656354||'listReversed'==_0x656354;});for(const _0x420da8 of _0x26e108){const _0x2754c5=_0x420da8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2754c5||'customNumbered'==_0x2754c5)continue;_0x3035b2['_findSuggestions'](_0x420da8['getFirstRange'](),'attribute')['find'](_0x2b152c=>'listType'==_0x3035b2['_getAttributeKey'](_0x2b152c['suggestion']))||(_0x22c666['removeMarker'](_0x420da8['getFirstMarker']()),_0x388ef5=!0x0);}return _0x388ef5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x477b97){const _0x5a1132=this['editor']['locale'],{data:_0x36284a}=_0x477b97,_0x43b168={'type':'format','content':''};if(!_0x36284a||'listStyle'!=_0x36284a['key'])return;if(!_0x36284a['oldValue'])return'default'==_0x36284a['newValue']?_0x43b168:{'type':'format','content':''+o(_0x5a1132,'*Set\x20format:*\x20%0',o(_0x5a1132,this['_getTranslationKeyForListStyle'](_0x36284a['newValue'])))};if(!_0x36284a['newValue']){if('default'==_0x36284a['oldValue'])return _0x43b168;let _0x2e67a6=_0x477b97['head'];for(;_0x2e67a6;){if(_0x2e67a6['data']&&'listType'==_0x2e67a6['data']['key']&&_0x2e67a6['data']['newValue'])return _0x43b168;_0x2e67a6=_0x2e67a6['next'];}return{'type':'format','content':''+o(_0x5a1132,'*Remove\x20format:*\x20%0',o(_0x5a1132,this['_getTranslationKeyForListStyle'](_0x36284a['oldValue'])))};}if('default'!=_0x36284a['newValue'])return{'type':'format','content':''+o(_0x5a1132,'*Set\x20format:*\x20%0',o(_0x5a1132,this['_getTranslationKeyForListStyle'](_0x36284a['newValue'])))};let _0x43521f=_0x477b97['head'];for(;_0x43521f;){if(_0x43521f['data']&&'listType'==_0x43521f['data']['key']&&_0x43521f['data']['newValue']&&_0x43521f['data']['oldValue'])return _0x43b168;_0x43521f=_0x43521f['next'];}return{'type':'format','content':o(_0x5a1132,'*Set\x20format:*\x20%0',o(_0x5a1132,'ELEMENT_'+_0x477b97['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x192522=this['editor'],_0x1fe659=_0x192522['locale'];_0x192522['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2382cd=>{if('formatBlock'!=_0x2382cd['type'])return;const {data:_0x5db835}=_0x2382cd;if(!_0x5db835)return;let _0x29213c,_0x3acb33;switch(_0x5db835['commandName']){case'listStyle':_0x29213c='*Change\x20to:*\x20%0',_0x3acb33={'type':'format','content':o(_0x1fe659,_0x29213c,o(_0x1fe659,this['_getTranslationKeyForListStyle'](_0x5db835['commandParams'][0x0]['type'])))};break;case'listReversed':_0x29213c=_0x5db835['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3acb33={'type':'format','content':o(_0x1fe659,_0x29213c)};break;case'listStart':_0x29213c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3acb33={'type':'format','content':o(_0x1fe659,_0x29213c,_0x5db835['commandParams'][0x0]['startIndex'])};}return _0x3acb33;});}['_getTranslationKeyForListStyle'](_0x4eff73){return'ELEMENT_'+function(_0x434b99){if(ye['includes'](_0x434b99))return'bulleted';if(Se['includes'](_0x434b99))return'numbered';return null;}(_0x4eff73)['toUpperCase']()+'_LIST_'+_0x4eff73['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4e814d{static get['requires'](){return[_0x13e5b7];}['init'](){const _0x383464=this['editor'],_0x8c1875=_0x383464['plugins']['get']('TrackChangesEditing'),_0x3f56ed=_0x383464['commands']['get']('enter');_0x8c1875['enableCommand']('enter',()=>{_0x383464['model']['change'](_0x35a6b8=>{const _0x4a9d0c=_0x383464['model']['document']['selection'],_0x5f2662=_0x4a9d0c['getFirstPosition'](),_0x1a0350=_0x256351['fromRange'](_0x4a9d0c['getFirstRange']());if(_0x3f56ed['enterBlock'](_0x35a6b8)){const _0x12c459=_0x383464['model']['createPositionAt'](_0x5f2662['parent']['nextSibling'],0x0),_0x48230f=_0x35a6b8['createRange'](_0x5f2662,_0x12c459);_0x8c1875['markInsertion'](_0x48230f);}else _0x35a6b8['setSelection'](_0x35a6b8['createRange'](_0x1a0350['end']));_0x1a0350['detach'](),_0x3f56ed['fire']('afterExecute',{'writer':_0x35a6b8});});}),_0x383464['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x383464,'split'),{'priority':'high'}),_0x383464['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x13fc9a,_0x3d1cc7,_0x5970ca)=>{const _0x138a2d=_0x5970ca['mapper']['markerNameToElements'](_0x3d1cc7['markerName']);if(_0x138a2d){for(const _0x5ae339 of _0x138a2d)_0x5ae339['hasClass']('ck-suggestion-marker-split')&&(_0x5970ca['mapper']['unbindElementFromMarkerName'](_0x5ae339,_0x3d1cc7['markerName']),_0x5970ca['writer']['remove'](_0x5ae339));}},{'priority':'high'}),_0x383464['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41c521,_0xbbb9b9,_0x9f6c9c)=>{_0x9f6c9c['options']['showSuggestionHighlights']&&_e(_0x383464,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x41c521,_0xbbb9b9,_0x9f6c9c);},{'priority':'high'});}}class X extends _0x4e814d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5f10fc=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f10fc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5f10fc['enableCommand']('findNext'),_0x5f10fc['enableCommand']('findPrevious'),_0x5f10fc['enableCommand']('replace'),_0x5f10fc['enableCommand']('replaceAll');}['handleFindCommand'](_0x7e845a,_0x186eba,_0x4dd22e={}){const _0x59df66=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x7e845a(_0x41b654=>{let _0x31a408=('string'==typeof _0x186eba?_0x59df66['findByTextCallback'](_0x186eba,_0x4dd22e):_0x186eba)(_0x41b654);Array['isArray'](_0x31a408)&&(_0x31a408={'results':_0x31a408,'searchText':'string'==typeof _0x186eba?_0x186eba:''});const _0x5a70a8=_0x31a408['results']['filter'](_0x41aa12=>!0x1===this['_isInDeletionRange'](_0x41aa12,_0x41b654['item']));return{..._0x31a408,'results':_0x5a70a8};},_0x4dd22e);}['_isInDeletionRange'](_0x236cbf,_0x11ab19){const _0x4f82f6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11ab19,_0x236cbf['start']),this['editor']['model']['createPositionAt'](_0x11ab19,_0x236cbf['end']));for(const _0x5a91fe of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4f82f6['getIntersection'](_0x5a91fe['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x4e814d{['afterInit'](){const _0x322a51=this['editor']['locale'],_0x2436db=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x339e29,commandName:_0x58f379}of ro)this['editor']['plugins']['has'](_0x339e29)&&(_0x2436db['enableDefaultAttributesIntegration'](_0x58f379),_0x2436db['registerInlineAttribute'](_0x58f379));_0x2436db['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x322a51,'FORMAT_FONT_SIZE')),_0x2436db['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x322a51,'FORMAT_FONT_FAMILY')),_0x2436db['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x322a51,'FORMAT_FONT_COLOR')),_0x2436db['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x322a51,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4635fd=this['editor'],_0x90857c=_0x4635fd['locale'];_0x4635fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e8f0f=>{const _0x1dba22=_0x90857c['t'];if('formatInline'!=_0x2e8f0f['type'])return;const {data:_0x1255a7}=_0x2e8f0f;if(null!=_0x1255a7){if('fontSize'==_0x1255a7['commandName']){const _0x5c84c8=_0x1255a7['commandParams'][0x0]['value'];if(_0x5c84c8){const _0x29b916=_0x1dba22(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12f4cd=>_0x12f4cd['model']==_0x5c84c8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x90857c,'*Set\x20font\x20size:*\x20%0',_0x29b916)};}return{'type':'format','content':o(_0x90857c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1255a7['commandName']){const _0x260f09=_0x1255a7['commandParams'][0x0]['value'];return _0x260f09?{'type':'format','content':o(_0x90857c,'*Set\x20font\x20family:*\x20%0',_0x260f09)}:{'type':'format','content':o(_0x90857c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1255a7['commandName']){const _0x1c4508=_0x1255a7['commandParams'][0x0]['value'];if(_0x1c4508){const _0x14130c=_0x1bb0a2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a27ab=>_0x4a27ab['model']==_0x1c4508);let _0x1baacd=_0x1c4508,_0x10f2fa='';return _0x14130c&&(_0x1baacd=_0x14130c['label'],_0x10f2fa=_0x1dba22(_0x1baacd)['toLowerCase']()),{'type':'format','content':o(_0x90857c,'*Set\x20font\x20color:*\x20%0',_0x10f2fa)['trim'](),'color':{'value':_0x1c4508,'title':_0x10f2fa||_0x1baacd}};}return{'type':'format','content':o(_0x90857c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1255a7['commandName']){const _0x25c9b1=_0x1255a7['commandParams'][0x0]['value'];if(_0x25c9b1){const _0x33d1f8=_0x1bb0a2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5ea3e5=>_0x5ea3e5['model']==_0x25c9b1);let _0x13605a=_0x25c9b1,_0x203685='';return _0x33d1f8&&(_0x13605a=_0x33d1f8['label'],_0x203685=_0x1dba22(_0x13605a)['toLowerCase']()),{'type':'format','content':o(_0x90857c,'*Set\x20font\x20background\x20color:*\x20%0',_0x203685)['trim'](),'color':{'value':_0x25c9b1,'title':_0x203685||_0x13605a}};}return{'type':'format','content':o(_0x90857c,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x4e814d{['afterInit'](){const _0x4d24d1=this['editor'],_0x3579b1=_0x4d24d1['plugins']['get']('TrackChangesEditing'),_0x1a2117=_0x4d24d1['commands']['get']('copyFormat'),_0x258323=_0x4d24d1['commands']['get']('pasteFormat');_0x1a2117&&_0x258323&&(_0x3579b1['enableDefaultAttributesIntegration']('pasteFormat'),_0x3579b1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2f0eba=this['editor'],_0x263ad3=_0x2f0eba['locale'];_0x2f0eba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd3e9=>{if('formatBlock'!=_0x1dd3e9['type']&&'formatInline'!=_0x1dd3e9['type'])return;const {data:_0xc2cd51}=_0x1dd3e9;if(_0xc2cd51&&'pasteFormat'===_0xc2cd51['commandName']){const _0x547a72=[],_0x43a980=_0xc2cd51['commandParams'][0x0];for(const [_0x153f55,_0x314fb3]of Object['entries'](_0x43a980))_0x547a72['push'](so(_0x2f0eba,_0x153f55,_0x314fb3));return _0x547a72['length']?{'type':'format','content':o(_0x263ad3,'*Set\x20format\x20to:*\x20%0',_0x547a72['join'](',\x20'))}:{'type':'format','content':o(_0x263ad3,'*Remove\x20all\x20formatting*')};}});}}function so(_0xc06053,_0x1d5fb9,_0x102ab5){const _0x3a791e=_0xc06053['locale']['t'],_0x231221=_0x1d5fb9['split'](/(?=[A-Z])/)['join']('\x20'),_0x3a294f=_0x3a791e(_0x231221['charAt'](0x0)['toUpperCase']()+_0x231221['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x102ab5)return _0x3a294f;if('fontColor'===_0x1d5fb9||'fontBackgroundColor'===_0x1d5fb9){const _0x276d7c=_0x1bb0a2(_0xc06053['config']['get']('fontColor.colors'))['find'](_0x1a1073=>_0x1a1073['model']==_0x102ab5);return _0x3a294f+'\x20('+(_0x276d7c?_0x3a791e(_0x276d7c['label'])['toLowerCase']():_0x102ab5)+')';}if('fontSize'===_0x1d5fb9&&isNaN(parseFloat(_0x102ab5))){const _0x233247=_0xc06053['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xc06053['config']['get']('fontSize.options'))['find'](_0x4c0959=>_0x4c0959['model']==_0x102ab5);return _0x3a294f+'\x20('+(_0x233247?_0x3a791e(_0x233247['title'])['toLowerCase']():_0x102ab5)+')';}return _0x3a294f+'\x20('+_0x102ab5+')';}class tt extends _0x4e814d{['_headingOptions'];['afterInit'](){const _0x36e39d=this['editor'];if(!_0x36e39d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x36e39d['config']['get']('heading.options');const _0xd5d371=_0x36e39d['locale'],_0x1f402d=_0x36e39d['plugins']['get']('TrackChangesEditing');_0x1f402d['enableDefaultAttributesIntegration']('heading');for(const _0x1ae9d5 of this['_headingOptions'])'paragraph'!=_0x1ae9d5['model']&&_0x1f402d['descriptionFactory']['registerElementLabel'](_0x1ae9d5['model'],_0x13d3e3=>{const _0x191b12=this['_getHeadingLevel'](_0x1ae9d5['model']);return null!==_0x191b12?_0x112429(_0x13d3e3,_0x191b12):_0x23f80c(_0x13d3e3,_0x1ae9d5['title']);});function _0x112429(_0x120ce8,_0x32abdc){return o(_0xd5d371,'ELEMENT_HEADING',[_0x120ce8,_0x32abdc]);}function _0x23f80c(_0x5a63fd,_0x48b00d){return o(_0xd5d371,'ELEMENT_HEADING_CUSTOM',[_0x5a63fd,_0x48b00d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x322436=this['editor'],_0x56602e=_0x322436['locale'];function _0x344f15(_0x3c0b16,_0x28b39e){return o(_0x56602e,'ELEMENT_HEADING_CUSTOM',[_0x3c0b16,_0x28b39e]);}_0x322436['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b5164=>{if('formatBlock'!=_0x2b5164['type'])return;const {data:_0x1ca913}=_0x2b5164;if(_0x1ca913&&'heading'==_0x1ca913['commandName']){const _0x124574=_0x1ca913['commandParams'][0x0]['value'],_0x4ecc53=this['_getHeadingLevel'](_0x124574);if(null!==_0x4ecc53)return{'type':'format','content':o(_0x56602e,'*Change\x20to:*\x20%0',(_0x556381=0x1,_0xe5554c=_0x4ecc53,o(_0x56602e,'ELEMENT_HEADING',[_0x556381,_0xe5554c])))};const _0x5563e3=this['_headingOptions']['find'](_0xc38b26=>_0xc38b26['model']===_0x124574)['title'];return{'type':'format','content':o(_0x56602e,'*Change\x20to:*\x20%0',_0x344f15(0x1,_0x5563e3))};}var _0x556381,_0xe5554c;});}['_getHeadingLevel'](_0x279eff){const _0x4c1446=_0x279eff['match'](/^heading(\d+)/);if(_0x4c1446)return _0x4c1446[0x1];const _0x45de82=this['_headingOptions']?.['find'](_0x17d967=>_0x17d967['model']==_0x279eff);if(_0x45de82&&_0x45de82['view']){const _0x453939=_0x45de82['view'],_0x566e75=(_0x453939['name']??_0x453939)['match'](/^h(\d+)/);if(_0x566e75)return _0x566e75[0x1];}return null;}}class et extends _0x4e814d{['afterInit'](){const _0x1592e5=this['editor'];if(!_0x1592e5['plugins']['has']('HighlightEditing'))return;const _0x363bc0=_0x1592e5['plugins']['get']('TrackChangesEditing'),_0x1e2b63=_0x1592e5['locale'];_0x363bc0['enableDefaultAttributesIntegration']('highlight'),_0x363bc0['registerInlineAttribute']('highlight'),_0x363bc0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1e2b63,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a8ac2=this['editor'],_0x907452=_0x1a8ac2['locale'];_0x1a8ac2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56a3bf=>{if('formatInline'!=_0x56a3bf['type'])return;const {data:_0x573b1d}=_0x56a3bf;if(_0x573b1d&&'highlight'==_0x573b1d['commandName']){const _0x48072d=_0x907452['t'],_0x4bace1=_0x573b1d['commandParams'][0x0]['value'];if(_0x4bace1){const _0x57e86e=_0x1a8ac2['config']['get']('highlight.options')['find'](_0x5654dc=>_0x5654dc['model']==_0x4bace1),_0x4e5881=_0x48072d(_0x57e86e['title'])['toLowerCase']();return{'type':'format','content':o(_0x907452,'*Set\x20highlight:*\x20%0',_0x4e5881),'color':{'value':_0x57e86e['color'],'title':_0x57e86e['title']}};}return{'type':'format','content':o(_0x907452,'*Remove\x20highlight*',o(_0x907452,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4e814d{['afterInit'](){const _0x2c13e3=this['editor'];if(!_0x2c13e3['plugins']['has']('HorizontalLineEditing'))return;_0x2c13e3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x494276=_0x2c13e3['plugins']['get']('TrackChangesEditing'),_0x53163c=_0x2c13e3['locale'];_0x494276['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2c6054=>o(_0x53163c,'ELEMENT_HORIZONTAL_LINE',_0x2c6054)),_0x2c13e3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x472744,{writer:_0x38e729,options:_0x36d219})=>{if(!_0x36d219['showSuggestionHighlights'])return null;const _0x4c6b29=_0x38e729['createContainerElement']('div'),_0x2ce0b0=_0x38e729['createEmptyElement']('hr');return _0x38e729['addClass']('ck-horizontal-line',_0x4c6b29),_0x38e729['insert'](_0x38e729['createPositionAt'](_0x4c6b29,0x0),_0x2ce0b0),_0x4c6b29;},'converterPriority':'high'});}}class st extends _0x4e814d{['afterInit'](){const _0x82cdaf=this['editor'];if(!_0x82cdaf['plugins']['has']('HtmlEmbed'))return;const _0x24a82a=_0x82cdaf['plugins']['get']('TrackChangesEditing'),_0x53c63c=_0x82cdaf['locale'];_0x24a82a['descriptionFactory']['registerElementLabel']('rawHtml',_0x51d76=>o(_0x53c63c,'ELEMENT_HTML_EMBED',_0x51d76)),_0x24a82a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x24a82a['registerBlockAttribute']('value'),_0x24a82a['descriptionFactory']['registerDescriptionCallback'](_0x1d9874=>{if('attribute'!=_0x1d9874['type'])return;const {data:_0x442ead}=_0x1d9874;if(_0x442ead&&'value'==_0x442ead['key']&&_0x1d9874['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x59ff3a=o(_0x53c63c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53c63c,'*Change\x20%0\x20content*',_0x59ff3a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5101c7=this['editor'],_0x5bd35c=_0x5101c7['locale'];_0x5101c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a7b0=>{if('formatBlock'!=_0x47a7b0['type'])return;const {data:_0x269028}=_0x47a7b0;if(_0x269028&&'htmlEmbed'==_0x269028['commandName']){const _0x3fad9e=o(_0x5bd35c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5bd35c,'*Change\x20%0\x20content*',_0x3fad9e)};}});}}class nt extends _0x4e814d{['afterInit'](){const _0x1bf549=this['editor'];if(!_0x1bf549['plugins']['has']('ImageEditing'))return;const _0x11ccf6=_0x1bf549['plugins']['get']('TrackChangesEditing'),_0x250732=_0x1bf549['plugins']['get']('ImageUtils'),_0x4ed53e=_0x1bf549['locale'];_0x11ccf6['enableCommand']('insertImage'),_0x11ccf6['descriptionFactory']['registerElementLabel']('imageBlock',_0x405fee=>o(_0x4ed53e,'ELEMENT_IMAGE',_0x405fee)),_0x11ccf6['descriptionFactory']['registerElementLabel']('imageInline',_0x272029=>o(_0x4ed53e,'ELEMENT_INLINE_IMAGE',_0x272029)),_0x11ccf6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ed53e,'ELEMENT_CAPTION')),_0x1bf549['plugins']['has']('ImageUploadEditing')&&_0x11ccf6['enableCommand']('uploadImage'),_0x1bf549['plugins']['has']('ImageBlockEditing')&&_0x1bf549['plugins']['has']('ImageInlineEditing')&&(_0x11ccf6['enableCommand']('imageTypeInline',(_0x3ae1b9,_0x3983f3)=>{const _0x4b0473=_0x250732['getClosestSelectedImageElement'](_0x1bf549['model']['document']['selection']);_0x1bf549['model']['change'](()=>{_0x11ccf6['markBlockFormat'](_0x4b0473,{'commandName':'imageTypeInline','commandParams':[_0x3983f3]},[],'convertBlockImageToInline');});}),_0x11ccf6['enableCommand']('imageTypeBlock',(_0x55ae6d,_0x4e368f)=>{_0x1bf549['model']['change'](_0x22e37b=>{let _0x3d4af2=_0x250732['getClosestSelectedImageElement'](_0x1bf549['model']['document']['selection']),_0x8e2522=_0x22e37b['createRangeOn'](_0x3d4af2);const _0x1d48aa=_0x480190['fromPosition'](_0x8e2522['start'],'toPrevious'),_0x48a106=_0x480190['fromPosition'](_0x8e2522['end'],'toNext');_0x11ccf6['forceDefaultExecution'](()=>_0x55ae6d(_0x4e368f)),_0x3d4af2=_0x250732['getClosestSelectedImageElement'](_0x1bf549['model']['document']['selection']),_0x8e2522=_0x22e37b['createRangeOn'](_0x3d4af2);const _0x15ffcf=_0x22e37b['createRange'](_0x1d48aa,_0x48a106);_0x1d48aa['detach'](),_0x48a106['detach'](),_0x11ccf6['markBlockFormat'](_0x3d4af2,{'commandName':'imageTypeInline','commandParams':[_0x4e368f]},[],'convertInlineImageToBlock'),_0x15ffcf['start']['isBefore'](_0x8e2522['start'])&&_0x11ccf6['markInsertion'](_0x22e37b['createRange'](_0x15ffcf['start'],_0x8e2522['start']),'convertInlineImageToBlock'),_0x8e2522['end']['isBefore'](_0x15ffcf['end'])&&_0x11ccf6['markInsertion'](_0x22e37b['createRange'](_0x8e2522['end'],_0x15ffcf['end']),'convertInlineImageToBlock');});}),_0x11ccf6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11ccf6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11ccf6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11ccf6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11ccf6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11ccf6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x11bb7e])=>{const _0x501281=_0x11ccf6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x33b878=_0x11bb7e['start'],_0x51e7a9=_0x11bb7e['end'];const _0x2ebfff=_0x1bf549['model']['schema']['getNearestSelectionRange'](_0x33b878,'backward'),_0x4464f1=_0x1bf549['model']['schema']['getNearestSelectionRange'](_0x51e7a9,'forward');_0x2ebfff['isCollapsed']&&(_0x33b878=_0x2ebfff['start']),_0x4464f1['isCollapsed']&&(_0x51e7a9=_0x4464f1['end']),_0x501281([_0x1bf549['model']['createRange'](_0x33b878,_0x51e7a9)]);}),_0x11ccf6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x48475d),_0x11ccf6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x48475d)),_0x1bf549['plugins']['has']('ImageCaptionEditing')&&(_0x11ccf6['enableCommand']('toggleImageCaption',(_0x58092e,_0x2bcfd2)=>{const _0xefddc4=_0x1bf549['plugins']['get']('ImageCaptionUtils');let _0x58a48a=_0x250732['getClosestSelectedImageElement'](_0x1bf549['model']['document']['selection']),_0x12c3ff=_0xefddc4['getCaptionFromImageModelElement'](_0x58a48a);_0x1bf549['model']['change'](()=>{if(_0x12c3ff)return void _0x11ccf6['markDeletion'](_0x1bf549['model']['createRangeOn'](_0x12c3ff));const _0x58928e=_0x250732['isBlockImage'](_0x58a48a);_0x58092e(_0x2bcfd2),_0x58a48a=_0x250732['getClosestSelectedImageElement'](_0x1bf549['model']['document']['selection']),_0x12c3ff=_0xefddc4['getCaptionFromImageModelElement'](_0x58a48a),_0x11ccf6['markInsertion'](_0x1bf549['model']['createRangeOn'](_0x12c3ff),_0x58928e?null:'imageCaption');});}),_0x11ccf6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x48475d));const _0x23b245=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x156d16(_0x250716,_0x332c08){const _0x5ea80c=_0x23b245['findIndex'](({type:_0x3fc4d3,subType:_0x35d87a})=>_0x250716['type']==_0x3fc4d3&&_0x250716['subType']==_0x35d87a),_0x5060ff=_0x23b245['findIndex'](({type:_0x2dfed0,subType:_0x3e5528})=>_0x332c08['type']==_0x2dfed0&&_0x332c08['subType']==_0x3e5528);if(_0x5ea80c<0x0||_0x5060ff<0x0)return!0x1;const _0x2c9243=_0x250716['getFirstRange'](),_0x36f94e=_0x332c08['getFirstRange']();if((0x0==_0x5ea80c||0x1==_0x5ea80c)&&0x2==_0x5060ff&&_0x2c9243['isIntersecting'](_0x36f94e))return!0x0;if(0x2==_0x5ea80c&&0x3==_0x5060ff){const _0x431c3b=_0x11ccf6['_findSuggestions'](_0x2c9243,'insertion')['filter'](({suggestion:_0xbb44c2,meta:_0x4adcaa})=>_0x4adcaa['isOwn']&&'convertInlineImageToBlock'==_0xbb44c2['subType']);if(_0x431c3b['length']>0x1&&_0x36f94e['end']['isEqual'](_0x2c9243['start']))return!0x0;if(0x1==_0x431c3b['length']&&(_0x2c9243['start']['isEqual'](_0x36f94e['end'])||_0x2c9243['end']['isEqual'](_0x36f94e['start'])))return!0x0;}if(0x3==_0x5ea80c&&0x3==_0x5060ff&&_0x2c9243['start']['isBefore'](_0x36f94e['start'])){const _0x4eed5e=_0x2c9243['end']['nodeAfter'],_0x4d9fe5=_0x36f94e['start']['nodeBefore'];return _0x250732['isBlockImage'](_0x4eed5e)&&_0x4eed5e===_0x4d9fe5;}return!0x1;}function _0x48475d(_0x168038,_0x46dc81){return _0x156d16(_0x168038,_0x46dc81)?[_0x168038,_0x46dc81]:_0x156d16(_0x46dc81,_0x168038)?[_0x46dc81,_0x168038]:null;}_0x1bf549['plugins']['has']('ImageResize')&&(_0x11ccf6['enableDefaultAttributesIntegration']('resizeImage'),_0x11ccf6['registerBlockAttribute']('resizedWidth'),_0x11ccf6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ed53e,'FORMAT_IMAGE_SIZE'))),_0x1bf549['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11ccf6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11ccf6['registerBlockAttribute']('alt')),_0x11ccf6['descriptionFactory']['registerDescriptionCallback'](_0x253e6c=>{if(!!_0x23b245['find'](({type:_0x3b8df0,subType:_0x39d230})=>_0x253e6c['type']==_0x3b8df0&&_0x253e6c['subType']==_0x39d230))return _0x253e6c['previous']?{}:void 0x0;}),_0x11ccf6['descriptionFactory']['registerDescriptionCallback'](_0x58b872=>{if('insertion'==_0x58b872['type']||'deletion'==_0x58b872['type']){const _0x4c4c40=_0x58b872['getContainedElement']();if(_0x4c4c40&&_0x4c4c40['is']('element','caption'))return{'type':'insertion'==_0x58b872['type']?'addObject':'removeObject','element':_0x4c4c40,'quantity':0x1};}}),_0x11ccf6['descriptionFactory']['registerDescriptionCallback'](_0x5f5be1=>'formatBlock'==_0x5f5be1['type']&&'convertInlineImageToBlock'==_0x5f5be1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5f5be1['type']&&'convertBlockImageToInline'==_0x5f5be1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11ccf6['descriptionFactory']['registerDescriptionCallback'](_0x1200e6=>{if('attribute'!=_0x1200e6['type'])return;const {data:_0xe55c52}=_0x1200e6;if(!_0xe55c52||'alt'!=_0xe55c52['key'])return;const _0x41c8a5=_0xe55c52['newValue'];return _0x41c8a5?{'type':'format','content':o(_0x4ed53e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x41c8a5+'\x22')}:{'type':'format','content':o(_0x4ed53e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e6c25=this['editor'],_0x59e055=_0x5e6c25['locale'];_0x5e6c25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4635d3=>{if('formatBlock'!=_0x4635d3['type']&&'formatInline'!=_0x4635d3['type'])return;const {data:_0x26dfb8}=_0x4635d3;if(_0x26dfb8){if('imageTextAlternative'==_0x26dfb8['commandName']){const _0x258023=_0x26dfb8['commandParams'][0x0]['newValue'];return _0x258023?{'type':'format','content':o(_0x59e055,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x258023+'\x22')}:{'type':'format','content':o(_0x59e055,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x26dfb8['commandName']){const _0x250f27=_0x26dfb8['commandParams'][0x0]['width'];return _0x250f27?{'type':'format','content':o(_0x59e055,'*Set\x20image\x20width:*\x20%0',_0x250f27)}:{'type':'format','content':o(_0x59e055,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x4e814d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x49d5a0=this['editor']['locale'],_0x398419=this['editor']['plugins']['get']('TrackChangesEditing');_0x398419['enableDefaultAttributesIntegration']('replaceImageSource'),_0x398419['registerBlockAttribute']('src'),_0x398419['descriptionFactory']['registerDescriptionCallback'](_0x9bfbda=>{if('attribute'!=_0x9bfbda['type'])return;const {data:_0x13cf18}=_0x9bfbda;return _0x13cf18&&'src'==_0x13cf18['key']?_0x13cf18['newValue']&&_0x13cf18['oldValue']?{'type':'format','content':o(_0x49d5a0,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2049fc=this['editor']['plugins']['get']('TrackChangesEditing');_0x2049fc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2049fc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2049fc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2049fc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b5ee1=this['editor'],_0x58268b=_0x3b5ee1['locale'];_0x3b5ee1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bf427=>{if('formatBlock'!=_0x4bf427['type']&&'formatInline'!=_0x4bf427['type'])return;const {data:_0x2299b1}=_0x4bf427;if(!_0x2299b1||'replaceImageSource'!=_0x2299b1['commandName'])return;return{'type':'format','content':o(_0x58268b,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x4e814d{['afterInit'](){const _0x10f7d7=this['editor'];if(!_0x10f7d7['plugins']['has']('ImageStyleEditing'))return;const _0x22d346=_0x10f7d7['plugins']['get']('TrackChangesEditing'),_0x1f84b5=_0x10f7d7['plugins']['get']('ImageUtils'),_0x29a234={};_0x22d346['enableCommand']('imageStyle',(_0x1e74cc,_0x421eaf)=>{const _0x4f433f=_0x10f7d7['plugins']['get']('Users')['me'],_0x4a76e9=_0x10f7d7['commands']['get']('imageStyle');let _0x421a1b=_0x1f84b5['getClosestSelectedImageElement'](_0x10f7d7['model']['document']['selection']),_0x1fe6e2=_0x10f7d7['model']['createRangeOn'](_0x421a1b),_0x5dbc7a=_0x4a76e9['value'];if(_0x5dbc7a==_0x421eaf['value'])return;const _0x3dd15c={'commandName':'imageStyle','commandParams':[_0x421eaf],'formatGroupId':_0x5712c5()};_0x10f7d7['model']['change'](()=>{if(_0x22d346['getSuggestions']()['filter'](_0x288176=>_0x288176['isInContent']&&_0x4f433f==_0x288176['author']&&('formatBlock'==_0x288176['type']||'formatInline'==_0x288176['type'])&&('imageStylePreApply'==_0x288176['subType']||'imageStylePostApply'==_0x288176['subType'])&&_0x288176['getFirstRange']()['isEqual'](_0x1fe6e2))['forEach'](_0x339acb=>_0x22d346['discardSuggestion'](_0x339acb['head'])),_0x421a1b=_0x1f84b5['getClosestSelectedImageElement'](_0x10f7d7['model']['document']['selection']),_0x1fe6e2=_0x10f7d7['model']['createRangeOn'](_0x421a1b),_0x4a76e9['refresh'](),_0x10f7d7['commands']['get']('imageTypeInline')['refresh'](),_0x10f7d7['commands']['get']('imageTypeBlock')['refresh'](),_0x5dbc7a=_0x4a76e9['value'],_0x5dbc7a!=_0x421eaf['value'])return _0x1f84b5['isInlineImage'](_0x421a1b)&&_0x4a76e9['shouldConvertImageType'](_0x421eaf['value'],_0x421a1b)?(_0x1e74cc({..._0x421eaf,'setImageSizes':!0x1}),_0x421a1b=_0x1f84b5['getClosestSelectedImageElement'](_0x10f7d7['model']['document']['selection']),void _0x22d346['markBlockFormat'](_0x421a1b,{..._0x3dd15c,'commandReversedParams':[{'value':_0x5dbc7a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1f84b5['isBlockImage'](_0x421a1b)?_0x22d346['markBlockFormat'](_0x421a1b,_0x3dd15c,[],'imageStylePostApply'):_0x22d346['markInlineFormat'](_0x1fe6e2,_0x3dd15c,'imageStylePostApply'));});});for(const _0x1c7530 of _0x10f7d7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x29a234[_0x1c7530['name']]=_0x1c7530['title']['toLowerCase']();_0x22d346['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x22d346['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x22d346['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x22d346['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1ad2e9])=>{_0x1f84b5['setImageNaturalSizeAttributes'](_0x1ad2e9['getContainedElement']());}),_0x22d346['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5f4bbc,_0x3ed3cc)=>{_0x22d346['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5f4bbc,{'commandName':_0x3ed3cc['commandName'],'commandParams':_0x3ed3cc['commandReversedParams']});}),_0x22d346['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x533610,_0x13a3af){if(_0x4fcd9c(_0x533610,_0x13a3af))return[_0x533610,_0x13a3af];if(_0x4fcd9c(_0x13a3af,_0x533610))return[_0x13a3af,_0x533610];return null;});const _0x29f650=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4fcd9c(_0x4cbacc,_0x738719){const _0x4de434=_0x29f650['findIndex'](({type:_0x370a75,subType:_0x33a251})=>_0x4cbacc['type']==_0x370a75&&_0x4cbacc['subType']==_0x33a251),_0x5c08ea=_0x29f650['findIndex'](({type:_0xa68311,subType:_0x930ea8})=>_0x738719['type']==_0xa68311&&_0x738719['subType']==_0x930ea8);if(_0x4de434<0x0||_0x5c08ea<0x0)return!0x1;const _0x52372f=_0x4cbacc['getFirstRange'](),_0xe72a68=_0x738719['getFirstRange']();if((0x0==_0x4de434||0x1==_0x4de434)&&0x2==_0x5c08ea&&_0x52372f['isIntersecting'](_0xe72a68))return!0x0;if(0x2==_0x4de434&&0x3==_0x5c08ea){const _0x299d88=_0x22d346['_findSuggestions'](_0x52372f,'insertion')['filter'](({suggestion:_0x3d1c72,meta:_0x55e065})=>_0x55e065['isOwn']&&'convertInlineImageToBlock'==_0x3d1c72['subType']);if(_0x299d88['length']>0x1&&_0xe72a68['end']['isEqual'](_0x52372f['start']))return!0x0;if(0x1==_0x299d88['length']&&(_0x52372f['start']['isEqual'](_0xe72a68['end'])||_0x52372f['end']['isEqual'](_0xe72a68['start'])))return!0x0;}if(0x3==_0x4de434&&0x3==_0x5c08ea&&_0x52372f['start']['isBefore'](_0xe72a68['start'])){const _0x596a11=_0x52372f['end']['nodeAfter'],_0x144c23=_0xe72a68['start']['nodeBefore'];return _0x1f84b5['isBlockImage'](_0x596a11)&&_0x596a11===_0x144c23;}return!0x1;}_0x10f7d7['model']['document']['registerPostFixer'](()=>{let _0x55618c=!0x1;const _0xbb698e=Array['from'](_0x10f7d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ad169,data:_0x1bd3a7}of _0xbb698e){const {group:_0xb5a40f,type:_0x39a71d,subType:_0x29d896,id:_0x183369}=_0x22d346['_splitMarkerName'](_0x5ad169);if('suggestion'==_0xb5a40f&&_0x22d346['hasSuggestion'](_0x183369)){if('formatBlock'==_0x39a71d&&('imageStylePreApply'==_0x29d896||'imageStylePostApply'==_0x29d896)){const _0x1360fb=_0x22d346['getSuggestion'](_0x183369);if(_0x1bd3a7['newRange']){const _0x4c30f5=_0x1360fb['getFirstRange']()['getContainedElement']();if(_0x1f84b5['isBlockImage'](_0x4c30f5))continue;_0x22d346['discardSuggestion'](_0x1360fb),_0x55618c=!0x0;}}if('insertion'==_0x39a71d&&'imageCaption'==_0x29d896&&!_0x1bd3a7['newRange']){const _0x440096=_0x22d346['getSuggestion'](_0x183369);_0x440096['next']&&_0x440096['next']['isInContent']&&(_0x22d346['discardSuggestion'](_0x440096['next']),_0x55618c=!0x0);}}}return _0x55618c;}),this['_registerLegacyDescription'](_0x29a234);}['_registerLegacyDescription'](_0xda07c8){const _0x4a6147=this['editor'],_0x53bbb9=_0x4a6147['locale'];_0x4a6147['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x259f79=>{if('formatBlock'!=_0x259f79['type']&&'formatInline'!=_0x259f79['type'])return;const {data:_0x3a1377}=_0x259f79;if(!_0x3a1377||'imageStyle'!=_0x3a1377['commandName'])return;const _0x1f0aa8=_0x3a1377['commandParams'][0x0]['value'];return _0x1eeda1('side'===_0x1f0aa8?o(_0x53bbb9,'FORMAT_SIDE_IMAGE'):_0xda07c8[_0x1f0aa8]||_0x1f0aa8);function _0x1eeda1(_0x3ddcfa){return{'type':'format','content':o(_0x53bbb9,'*Format:*\x20%0',_0x3ddcfa)};}});}}class at extends _0x4e814d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xfea122){super(_0xfea122),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f0c49=this['editor'],_0x5bedd4=_0x1f0c49['commands']['get']('importWord'),_0x32329f=_0x1f0c49['commands']['get']('trackChanges');_0x5bedd4&&(_0x5bedd4['on']('execute',(_0x34d3a9,[,_0x12d6b1])=>{this['_trackChangesValueDuringImport']=_0x32329f['value'],_0x12d6b1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5bedd4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5bedd4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x32329f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f0c49['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x227df9,_0x3e7100){const {suggestions:_0x3a38c2}=_0x3e7100,_0x251a6f=this['editor']['commands']['get']('trackChanges'),_0x4de4a9=_0x251a6f['value'];this['_trackChangesValueDuringImport']!==_0x4de4a9&&(_0x251a6f['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a38c2&&_0x3a38c2['forEach'](({id:_0x37361a,type:_0x939afc,author:_0x3b3366,created_at:_0x1e5a66})=>{const _0x5a0538={'id':_0x37361a,'type':_0x939afc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3b3366,'createdAt':_0x1e5a66?new Date(_0x1e5a66):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5a0538);});}}class ct extends _0x4e814d{['afterInit'](){const _0x262451=this['editor'],_0x208d88=_0x262451['plugins']['get']('TrackChangesEditing');if(_0x262451['plugins']['has']('IndentEditing')&&(_0x208d88['enableCommand']('indent'),_0x208d88['enableCommand']('outdent')),_0x262451['plugins']['has']('IndentBlock')){for(const _0x19c15d of['indentBlock','outdentBlock'])_0x208d88['enableDefaultAttributesIntegration'](_0x19c15d);}const _0x5d2d08=_0x262451['locale'];_0x208d88['registerBlockAttribute']('blockIndent'),_0x208d88['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5d2d08,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xccc33c=this['editor'],_0x1a91f6=_0xccc33c['locale'],_0x41270f=_0xccc33c['plugins']['get']('TrackChangesEditing');_0x41270f['descriptionFactory']['registerDescriptionCallback'](_0x2dcb82=>{if('formatBlock'!=_0x2dcb82['type'])return;const {data:_0x11c7c6}=_0x2dcb82;if(!_0x11c7c6)return;if('indentBlock'!=_0x11c7c6['commandName']&&'outdentBlock'!=_0x11c7c6['commandName'])return;const _0x3f125c=_0x2dcb82['getItems']()[0x0],_0x9902ae=_0x41270f['descriptionFactory']['getItemLabel'](_0x3f125c);return'indentBlock'==_0x11c7c6['commandName']?{'type':'format','content':o(_0x1a91f6,'*Indent:*\x20%0',_0x9902ae)}:'outdentBlock'==_0x11c7c6['commandName']?{'type':'format','content':o(_0x1a91f6,'*Outdent:*\x20%0',_0x9902ae)}:void 0x0;});}}class ut extends _0x4e814d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4e814d{['afterInit'](){const _0x617ca0=this['editor'];if(!_0x617ca0['plugins']['has']('LinkEditing'))return;const _0x238fda=_0x617ca0['plugins']['get']('TrackChangesEditing'),_0x18b2c1=_0x617ca0['commands']['get']('link');_0x238fda['enableDefaultAttributesIntegration']('link'),_0x238fda['enableDefaultAttributesIntegration']('unlink'),_0x238fda['registerInlineAttribute']('linkHref');for(const _0x56116a of _0x18b2c1['manualDecorators'])_0x238fda['registerInlineAttribute'](_0x56116a['id']),_0x238fda['descriptionFactory']['registerAttributeLabel'](_0x56116a['id'],'link\x20('+_0x56116a['label']['toLowerCase']()+')');_0x238fda['descriptionFactory']['registerDescriptionCallback'](_0x43b419=>{if('attribute'!=_0x43b419['type'])return;const {data:_0xe12ae}=_0x43b419;if(!_0xe12ae||'linkHref'!=_0xe12ae['key'])return;const _0x21fe44=_0xe12ae['newValue'],_0x2618ad=_0x617ca0['locale'];return{'type':'format','content':null==_0x21fe44?o(_0x2618ad,'*Remove\x20link*'):o(_0x2618ad,'*Set\x20link:*\x20%0','\x22'+_0x21fe44+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1867c7=this['editor'],_0x21e4e2=_0x1867c7['locale'];_0x1867c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20859a=>{if('formatInline'!=_0x20859a['type'])return;const {data:_0xbf9507}=_0x20859a;if(_0xbf9507){if('link'==_0xbf9507['commandName']){const _0xaf327b=_0xbf9507['commandParams'][0x0];return{'type':'format','content':o(_0x21e4e2,'*Set\x20link:*\x20%0','\x22'+_0xaf327b+'\x22')};}return'unlink'==_0xbf9507['commandName']?{'type':'format','content':o(_0x21e4e2,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4e814d{['afterInit'](){const _0x403153=this['editor'],_0x1fd841=_0x403153['locale'];if(!_0x403153['plugins']['has']('LegacyListEditing'))return;const _0x1cb2ee=_0x403153['plugins']['get']('TrackChangesEditing'),_0x4e1805=_0x403153['plugins']['has']('LegacyTodoListEditing');function _0x1f0469(_0x383f9f){return()=>{const _0x14b2ba=_0x403153['model']['document']['selection'],_0x38cda7=_0x403153['commands']['get'](_0x383f9f);if(_0x38cda7['value'])return void _0x403153['execute']('paragraph',{});const _0x2dccef=_0x383f9f['slice'](0x0,-0x4),_0x23ef7f=function(_0x34b9cd,_0x55257d,_0x2d24fd){let _0x2499db=Array['from'](_0x34b9cd)['filter'](_0x4fd9bb=>function(_0x3f0204,_0x7cfda9){return _0x7cfda9['checkChild'](_0x3f0204['parent'],'listItem')&&!_0x7cfda9['isObject'](_0x3f0204);}(_0x4fd9bb,_0x2d24fd));_0x2499db=_0x2499db['filter'](_0x5ae0b5=>!_0x5ae0b5['is']('element','listItem')||_0x5ae0b5['getAttribute']('listType')!=_0x55257d);const _0x4145b5=new Set();for(const _0x983fa2 of _0x2499db)_0x983fa2['is']('element','listItem')?_0x4145b5['add'](fe(_0x983fa2)):_0x4145b5['add'](_0x983fa2);return Array['from'](_0x4145b5);}(_0x14b2ba['getSelectedBlocks'](),_0x2dccef,_0x403153['model']['schema']);_0x403153['model']['change'](()=>{for(const _0x3c91ab of _0x23ef7f)_0x1cb2ee['markBlockFormat'](_0x3c91ab,{'commandName':_0x383f9f,'commandParams':[{'forceValue':!_0x38cda7['value']}],'formatGroupId':'blockName'},ue(_0x3c91ab));});};}function _0x510a7f(_0x4787ba){return()=>{const _0x1a25dc=function(_0x56824e){let _0x553a03=Array['from'](_0x56824e);const _0xaa8380=_0x553a03['findIndex'](_0x3b2f8f=>'listItem'!=_0x3b2f8f['name']);return _0xaa8380>-0x1&&(_0x553a03=_0x553a03['slice'](0x0,_0xaa8380)),_0x553a03;}(_0x403153['model']['document']['selection']['getSelectedBlocks']()),_0x5bae47=_0x403153['model']['createRange'](_0x403153['model']['createPositionAt'](_0x1a25dc[0x0],'before'),_0x403153['model']['createPositionAt'](_0x1a25dc[_0x1a25dc['length']-0x1],'end'));_0x403153['model']['change'](()=>{_0x1cb2ee['markBlockFormat'](_0x5bae47,{'commandName':_0x4787ba,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd5a0d){const _0x45797f=new Set();for(const _0x2321ec of _0xd5a0d){let _0xb592f6=_0x2321ec['nextSibling'];for(;_0xb592f6&&_0xb592f6['getAttribute']('listIndent')>_0x2321ec['getAttribute']('listIndent');)_0x45797f['add'](_0xb592f6),_0xb592f6=_0xb592f6['nextSibling'];}return Array['from'](_0x45797f);}(_0x1a25dc));});};}_0x1cb2ee['enableCommand']('numberedList',_0x1f0469('numberedList')),_0x1cb2ee['enableCommand']('bulletedList',_0x1f0469('bulletedList')),_0x4e1805&&_0x1cb2ee['enableCommand']('todoList',_0x1f0469('todoList')),_0x1cb2ee['enableCommand']('indentList',_0x510a7f('indentList')),_0x1cb2ee['enableCommand']('outdentList',_0x510a7f('outdentList')),_0x4e1805&&_0x1cb2ee['enableCommand']('checkTodoList',()=>{const _0x51ee25=_0x403153['commands']['get']('checkTodoList'),_0x3f0b2c=Array['from'](_0x51ee25['_selectedElements']);_0x3f0b2c['filter'](_0x33c593=>_0x33c593['getAttribute']('todoListChecked')!=_0x51ee25['value']),_0x403153['model']['change'](()=>{for(const _0x2f4730 of _0x3f0b2c)_0x1cb2ee['markBlockFormat'](_0x2f4730,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x51ee25['value']}]});});}),_0x1cb2ee['descriptionFactory']['registerElementLabel']('listItem',_0x467915=>o(_0x1fd841,'ELEMENT_LIST_ITEM',_0x467915)),_0x1cb2ee['descriptionFactory']['registerDescriptionCallback'](_0x279967=>{if('formatBlock'!=_0x279967['type']&&'formatInline'!=_0x279967['type'])return;const {data:_0x423d42}=_0x279967;if(_0x423d42){if('numberedList'==_0x423d42['commandName']||'bulletedList'==_0x423d42['commandName']||'todoList'==_0x423d42['commandName'])switch(_0x423d42['commandName']['replace']('List','')){case'bulleted':return _0x5e76ca(o(_0x1fd841,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5e76ca(o(_0x1fd841,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5e76ca(o(_0x1fd841,'ELEMENT_TODO_LIST'));}if('indentList'==_0x423d42['commandName'])return{'type':'format','content':o(_0x1fd841,'*Indent:*\x20%0',o(_0x1fd841,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x423d42['commandName'])return{'type':'format','content':o(_0x1fd841,'*Outdent:*\x20%0',o(_0x1fd841,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x423d42['commandName'])return _0x423d42['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fd841,'*Check\x20item*')}:{'type':'format','content':o(_0x1fd841,'*Uncheck\x20item*')};}function _0x5e76ca(_0x3a5e90){return{'type':'format','content':o(_0x1fd841,'*Change\x20to:*\x20%0',_0x3a5e90)};}});}}function fe(_0x1ee173){const _0x5e9f6d=_0x1ee173['getAttribute']('listIndent');if(0x0==_0x5e9f6d)return _0x1ee173;let _0x26556f=_0x1ee173;for(;_0x1ee173['previousSibling']&&_0x1ee173['previousSibling']['is']('element','listItem');){const _0x223fb6=_0x1ee173['previousSibling']['getAttribute']('listIndent');if(_0x223fb6==_0x5e9f6d)_0x26556f=_0x1ee173['previousSibling'];else{if(_0x223fb6<_0x5e9f6d)break;}_0x1ee173=_0x1ee173['previousSibling'];}return _0x26556f;}function ue(_0x6c1581){const _0x205cbe=[];if(_0x6c1581['is']('element','listItem')&&_0x6c1581['getAttribute']('listIndent')>0x0){let _0x25698b=_0x6c1581['nextSibling'];for(;_0x25698b&&'listItem'==_0x25698b['name']&&_0x25698b['getAttribute']('listIndent')==_0x6c1581['getAttribute']('listIndent');)_0x205cbe['push'](_0x25698b),_0x25698b=_0x25698b['nextSibling'];}return _0x205cbe;}class W extends _0x4e814d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xc0adfd=this['editor']['config']['get']('list.properties'),_0xb6d8f6=this['editor']['plugins']['get']('TrackChangesEditing');_0xc0adfd['styles']&&_0xb6d8f6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xc0adfd['reversed']&&_0xb6d8f6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xc0adfd['startIndex']&&_0xb6d8f6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xb6d8f6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xc600bc,_0x149235={}){const _0x465e1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cf3d6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x465e1c['markMultiRangeBlockFormat'](_0x1cf3d6,{'commandName':'listStyle','commandParams':[{'type':_0x149235['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x59d808,_0x51b6d3={}){const _0x5dba98=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf50966=this['_getSuggestionBlocks'](_0x27fdfe=>_0x27fdfe['is']('element','listItem')&&'numbered'===_0x27fdfe['getAttribute']('listType'));if(_0xf50966['length']<0x1)return;const _0x4b3bb3=_0xf50966['map'](_0x4cc1be=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4cc1be,'before'),this['editor']['model']['createPositionAt'](_0x4cc1be,0x0)));this['editor']['model']['change'](()=>{_0x5dba98['markMultiRangeBlockFormat'](_0x4b3bb3,{'commandName':'listReversed','commandParams':[{'reversed':_0x51b6d3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1cd86c,_0x2747cb={}){const _0x287fe2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d7b16=this['_getSuggestionBlocks'](_0x43ef6d=>_0x43ef6d['is']('element','listItem')&&'numbered'===_0x43ef6d['getAttribute']('listType'));if(_0x5d7b16['length']<0x1)return;const _0x561f15=_0x5d7b16['map'](_0xc5f139=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc5f139,'before'),this['editor']['model']['createPositionAt'](_0xc5f139,0x0)));this['editor']['model']['change'](()=>{_0x287fe2['markMultiRangeBlockFormat'](_0x561f15,{'commandName':'listStart','commandParams':[{'startIndex':_0x2747cb['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf1d0d5){if('formatBlock'!=_0xf1d0d5['type']&&'formatInline'!=_0xf1d0d5['type'])return;const _0x4601fa=this['editor']['locale'],{data:_0x2bb083}=_0xf1d0d5;if(!_0x2bb083)return;let _0x21c810,_0x194491;switch(_0x2bb083['commandName']){case'listStyle':_0x21c810='*Change\x20to:*\x20%0',_0x194491={'type':'format','content':o(_0x4601fa,_0x21c810,o(_0x4601fa,this['_getTranslationKeyForListStyle'](_0x2bb083['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21c810=_0x2bb083['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x194491={'type':'format','content':o(_0x4601fa,_0x21c810)};break;case'listStart':_0x21c810='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x194491={'type':'format','content':o(_0x4601fa,_0x21c810,_0x2bb083['commandParams'][0x0]['startIndex'])};}return _0x194491;}['_getSuggestionBlocksForListStyle'](){const _0x57699e=this['editor']['plugins']['get']('LegacyListUtils');let _0x96e2ce=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x96e2ce[0x0]?.['is']('element','listItem')&&_0x96e2ce['unshift'](..._0x57699e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x96e2ce[_0x96e2ce['length']-0x1]?.['is']('element','listItem')&&_0x96e2ce['push'](..._0x57699e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x96e2ce=[...new Set(_0x96e2ce)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x96e2ce=_0x96e2ce['filter'](_0x4e5635=>_0x4e5635['is']('element','listItem'))),_0x96e2ce;}['_getSuggestionBlocks'](_0x10614c){const _0x3fa06f=this['editor']['plugins']['get']('LegacyListUtils');let _0x40f489=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x10614c)['map'](_0x1c7857=>{const _0x4665bf=this['editor']['model']['createPositionAt'](_0x1c7857,0x0);return[..._0x3fa06f['getSiblingNodes'](_0x4665bf,'backward'),..._0x3fa06f['getSiblingNodes'](_0x4665bf,'forward')];})['flat']();return _0x40f489=[...new Set(_0x40f489)],_0x40f489;}['_getTranslationKeyForListStyle'](_0x3fb7dd){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3fb7dd)||'default')['toUpperCase']()+'_LIST_'+_0x3fb7dd['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x4e814d{['afterInit'](){const _0x3a2a92=this['editor'];if(!_0x3a2a92['plugins']['has']('MediaEmbedEditing'))return;const _0x2a3194=_0x3a2a92['plugins']['get']('TrackChangesEditing'),_0x1b96fe=_0x3a2a92['locale'];_0x2a3194['enableCommand']('mediaEmbed'),_0x2a3194['descriptionFactory']['registerElementLabel']('media',_0x1824c2=>o(_0x1b96fe,'ELEMENT_MEDIA',_0x1824c2)),_0x3a2a92['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4cbabf,{writer:_0x83e54e,options:_0x35bb80})=>{if(_0x35bb80['showSuggestionHighlights'])return _0x83e54e['createEmptyElement']('div');},'converterPriority':'high'}),_0x3a2a92['data']['downcastDispatcher']['on']('attribute:url:media',(_0x36336f,_0x4eba6d,_0xcb71d7)=>{_0xcb71d7['options']['showSuggestionHighlights']&&_0x36336f['stop']();},{'priority':'high'});}}class mt extends _0x4e814d{['afterInit'](){const _0x2c0fdd=this['editor'];_0x2c0fdd['plugins']['has']('MentionEditing')&&_0x2c0fdd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4e814d{['afterInit'](){const _0x2ac1a4=this['editor'];if(!_0x2ac1a4['plugins']['has']('MergeFieldsEditing'))return;_0x2ac1a4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x2ac1a4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x4d5b6d=_0x2ac1a4['plugins']['get']('TrackChangesEditing'),_0xca395c=_0x2ac1a4['locale'];_0x4d5b6d['descriptionFactory']['registerElementLabel']('mergeField',_0x57a304=>o(_0xca395c,'ELEMENT_MERGE_FIELD',_0x57a304)),_0x4d5b6d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5448e5=>o(_0xca395c,'ELEMENT_MERGE_FIELD',_0x5448e5)),_0x4d5b6d['descriptionFactory']['registerDescriptionCallback'](_0x3797aa=>{if('insertion'!=_0x3797aa['type']&&'deletion'!=_0x3797aa['type'])return;const _0x100ba7=_0x3797aa['getContainedElement']();if(null==_0x100ba7)return;if(!_0x100ba7['is']('element','mergeField')&&!_0x100ba7['is']('element','mergeFieldBlock'))return;const _0xb4db1=_0x2ac1a4['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x100ba7['getAttribute']('id'));return'insertion'==_0x3797aa['type']?{'type':'insertion','content':o(_0xca395c,'*Insert:*\x20%0','\x22'+_0xb4db1+'\x22\x20'+o(_0xca395c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xca395c,'*Remove:*\x20%0','\x22'+_0xb4db1+'\x22\x20'+o(_0xca395c,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x4e814d{['afterInit'](){const _0x1fd4c8=this['editor'],_0x318778=_0x1fd4c8['plugins']['get']('TrackChangesEditing');_0x1fd4c8['plugins']['has']('MultiLevelList')&&(_0x318778['enableDefaultAttributesIntegration']('multiLevelList'),_0x318778['registerBlockAttribute']('listMarkerStyle'),_0x318778['descriptionFactory']['registerDescriptionCallback'](_0x305650=>this['handleDescriptions'](_0x305650)));}['handleDescriptions'](_0x2f9eba){const _0x4b16a8=this['editor']['locale'],{data:_0x3edff6}=_0x2f9eba,_0x481c57={'type':'format','content':''};if(_0x3edff6&&'listMarkerStyle'==_0x3edff6['key']){if(!_0x3edff6['oldValue'])return{'type':'format','content':o(_0x4b16a8,'*Set\x20format:*\x20%0',o(_0x4b16a8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3edff6['newValue']+')'};if(!_0x3edff6['newValue']){let _0x4ccfc9=_0x2f9eba['head'];for(;_0x4ccfc9;){if(_0x4ccfc9['data']&&'listType'==_0x4ccfc9['data']['key']&&_0x4ccfc9['data']['newValue'])return _0x481c57;_0x4ccfc9=_0x4ccfc9['next'];}return{'type':'format','content':o(_0x4b16a8,'*Remove\x20format:*\x20%0',o(_0x4b16a8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3edff6['oldValue']+')'};}}}}class kt extends _0x4e814d{['afterInit'](){const _0x37ffc9=this['editor'];if(!_0x37ffc9['plugins']['has']('PageBreakEditing'))return;_0x37ffc9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4d799f=_0x37ffc9['plugins']['get']('TrackChangesEditing'),_0x1ba03a=_0x37ffc9['locale'];_0x4d799f['descriptionFactory']['registerElementLabel']('pageBreak',_0x5862cb=>o(_0x1ba03a,'ELEMENT_PAGE_BREAK',_0x5862cb));}}class bt extends _0x4e814d{['afterInit'](){const _0x2877a7=this['editor'];if(!_0x2877a7['plugins']['has']('Paragraph'))return;const _0x30b1dc=_0x2877a7['locale'],_0x23250f=_0x2877a7['plugins']['get']('TrackChangesEditing');_0x23250f['descriptionFactory']['registerElementLabel']('paragraph',_0x24a3bf=>o(_0x30b1dc,'ELEMENT_PARAGRAPH',_0x24a3bf)),_0x23250f['enableDefaultAttributesIntegration']('paragraph'),_0x23250f['enableCommand']('insertParagraph'),_0x2877a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2877a7),{'priority':'highest'}),_0x2877a7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22e46c,_0x17aa8f,_0x3296ed)=>{_0x3296ed['options']['showSuggestionHighlights']&&nr(_0x2877a7,{'showActiveMarker':!0x1})(_0x22e46c,_0x17aa8f,_0x3296ed);},{'priority':'highest'});const _0x4ff2ed=_0x23250f['descriptionFactory'];_0x4ff2ed['registerDescriptionCallback'](_0x2f7d06=>{if('insertion'!==_0x2f7d06['type'])return;const {start:_0x453d21,end:_0x429921}=_0x2f7d06['getFirstRange']();if(!_0x453d21['isTouching'](_0x429921)||!_0x453d21['nodeAfter'])return;const _0xd3546e=_0x2877a7['model']['schema'],_0x37a5e4=_0x453d21['nodeAfter'];return _0xd3546e['isBlock'](_0x37a5e4)&&!_0xd3546e['isLimit'](_0x37a5e4)&&_0xd3546e['checkChild'](_0x37a5e4,'$text')?{'type':'insertion','content':o(_0x30b1dc,'*Insert:*\x20%0',_0x4ff2ed['getItemLabel'](_0x37a5e4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38c8ad=this['editor'],_0x454f8b=_0x38c8ad['locale'];_0x38c8ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc949ed=>{if('formatBlock'!=_0xc949ed['type'])return;const {data:_0x2b086e}=_0xc949ed;return _0x2b086e&&'paragraph'==_0x2b086e['commandName']?{'type':'format','content':o(_0x454f8b,'*Change\x20to:*\x20%0',o(_0x454f8b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5e3e0c,{showActiveMarker:_0x360847=!0x0}={}){return(_0x2b29ba,_0xf84b7b,_0x42172a)=>{const _0x5e7860=_0x5e3e0c['plugins']['get']('TrackChangesEditing'),_0x439deb=_0xf84b7b['markerRange']['start'],_0x5cb85f=_0xf84b7b['markerRange']['end'],_0x376c63=_0x5e3e0c['model']['schema'];if(!_0x439deb['isTouching'](_0x5cb85f)||!_0x439deb['nodeAfter'])return;const _0x2c39c4=_0x439deb['nodeAfter'];if(_0x376c63['isBlock'](_0x2c39c4)&&!_0x376c63['isLimit'](_0x2c39c4)&&_0x376c63['checkChild'](_0x2c39c4,'$text')){if(!_0x42172a['consumable']['consume'](_0xf84b7b['markerRange'],_0x2b29ba['name']))return;const {authorId:_0x2ec877}=_0x5e7860['_splitMarkerName'](_0xf84b7b['markerName']),_0x4c539a=_0x42172a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2ec877}),_0x438f88=_0x42172a['mapper']['toViewPosition'](_0x5cb85f);_0x360847&&_0x5e7860['activeMarkers']['includes'](_0xf84b7b['markerName'])&&_0x42172a['writer']['addClass']('ck-suggestion-marker--active',_0x4c539a),_0x42172a['writer']['insert'](_0x438f88,_0x4c539a),_0x42172a['mapper']['bindElementToMarker'](_0x4c539a,_0xf84b7b['markerName']);}};}class wt extends _0x4e814d{['afterInit'](){const _0x2a056f=this['editor'];if(!_0x2a056f['plugins']['has']('RemoveFormatEditing'))return;_0x2a056f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32d19d=this['editor'];_0x32d19d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e84df=>{if('formatBlock'!=_0x5e84df['type']&&'formatInline'!=_0x5e84df['type'])return;const {data:_0x555a80}=_0x5e84df;return _0x555a80&&'removeFormat'==_0x555a80['commandName']?{'type':'format','content':o(_0x32d19d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4e814d{['afterInit'](){const _0x375795=this['editor'];if(!_0x375795['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xc8cee3=_0x375795['plugins']['get']('TrackChangesEditing');_0xc8cee3['enableCommand']('goToPreviousRestrictedEditingException'),_0xc8cee3['enableCommand']('goToNextRestrictedEditingException');const _0x25ccb8=_0x375795['plugins']['get']('RestrictedEditingModeEditing');_0x25ccb8['enableCommand']('trackChanges'),_0x25ccb8['enableCommand']('acceptSuggestion'),_0x25ccb8['enableCommand']('discardSuggestion'),_0x25ccb8['enableCommand']('acceptAllSuggestions'),_0x25ccb8['enableCommand']('discardAllSuggestions'),_0x25ccb8['enableCommand']('acceptSelectedSuggestions'),_0x25ccb8['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4e814d{static get['requires'](){return[_0x2d4eda];}['init'](){const _0x3fd22f=this['editor'],_0x6c82cf=_0x3fd22f['plugins']['get']('TrackChangesEditing');_0x6c82cf['enableCommand']('shiftEnter'),_0x3fd22f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x3fd22f),{'priority':'high'}),_0x3fd22f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x3fd22f),{'priority':'high'}),_0x3fd22f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c75ca,_0x331417,_0x2df6d3)=>{_0x2df6d3['options']['showSuggestionHighlights']&&ge(_0x3fd22f,{'showActiveMarker':!0x1})(_0x1c75ca,_0x331417,_0x2df6d3);}),_0x6c82cf['descriptionFactory']['registerElementLabel']('softBreak',_0x2bde81=>o(_0x3fd22f['locale'],'ELEMENT_LINE_BREAK',_0x2bde81));}}function ge(_0x1830de,{showActiveMarker:_0x3cd9ca=!0x0}={}){return(_0x136dab,_0x159724,_0x2c7578)=>{const _0xf89ac9=_0x1830de['plugins']['get']('TrackChangesEditing');if(!_0x2c7578['consumable']['test'](_0x159724['markerRange'],_0x136dab['name']))return;const _0x18c15d=_0x1830de['model'];for(const _0x57b386 of _0x159724['markerRange']['getItems']()){if(!_0x57b386['is']('element','softBreak'))continue;const _0x11165a='deletion'==_0x159724['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1a2298}=_0xf89ac9['_splitMarkerName'](_0x159724['markerName']),_0x211a84=_0x2c7578['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11165a,'data-author-id':_0x1a2298}),_0x1b2145=_0x2c7578['mapper']['toViewPosition'](_0x18c15d['createPositionBefore'](_0x57b386));_0x3cd9ca&&_0xf89ac9['activeMarkers']['includes'](_0x159724['markerName'])&&_0x2c7578['writer']['addClass']('ck-suggestion-marker--active',_0x211a84),_0x2c7578['writer']['insert'](_0x1b2145,_0x211a84),_0x2c7578['mapper']['bindElementToMarker'](_0x211a84,_0x159724['markerName']);}};}class St extends _0x4e814d{['afterInit'](){const _0x4b4b2d=this['editor'],_0x890ed7=_0x4b4b2d['model'],_0x5765cf=_0x4b4b2d['locale'];if(!_0x4b4b2d['plugins']['has']('StandardEditingModeEditing'))return;const _0x34f027=_0x4b4b2d['plugins']['get']('TrackChangesEditing'),_0x49f71a='restrictedEditingException',_0x1bc78c=_0x4b4b2d['commands']['get'](_0x49f71a);_0x34f027['enableCommand'](_0x49f71a,(_0x655c35,_0xf7df4a={})=>{const _0x5c5b56=_0x890ed7['document']['selection'];if(_0x5c5b56['isCollapsed'])return void _0x655c35(_0xf7df4a);const _0x5df351=void 0x0!==_0xf7df4a['forceValue']?_0xf7df4a['forceValue']:!_0x1bc78c['value'];_0x890ed7['change'](()=>{const _0x1c0310=Array['from'](_0x5c5b56['getRanges']());for(const _0x249827 of _0x1c0310){const _0x499524=_0x5df351?[_0x249827]:io(_0x49f71a,_0x249827,_0x890ed7);for(const _0x589db2 of _0x499524)_0x34f027['markInlineFormat'](_0x589db2,{'commandName':_0x49f71a,'commandParams':[{'forceValue':_0x5df351}]});}});}),_0x34f027['descriptionFactory']['registerDescriptionCallback'](_0x19f4b0=>{if('formatBlock'!=_0x19f4b0['type']&&'formatInline'!=_0x19f4b0['type'])return;const {data:_0x43fb5d}=_0x19f4b0;return _0x43fb5d&&_0x43fb5d['commandName']==_0x49f71a?_0x43fb5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5765cf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5765cf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x4e814d{['afterInit'](){const _0x23bb81=this['editor'];if(!_0x23bb81['plugins']['has']('Style')||!_0x23bb81['plugins']['has']('DataSchema'))return;const _0x354661=_0x23bb81['plugins']['get']('TrackChangesEditing'),_0x932851=_0x23bb81['locale'],_0x4c5564=_0x23bb81['config']['get']('style')||{},_0x2ae13e=_0x23bb81['plugins']['get']('GeneralHtmlSupport'),_0x515e63=_0x23bb81['plugins']['get']('StyleUtils')['normalizeConfig'](_0x23bb81['plugins']['get']('DataSchema'),_0x4c5564['definitions']);_0x354661['enableDefaultAttributesIntegration']('style');const _0x43be62=new Set();for(const _0x87a9f5 of _0x515e63['block']){const _0x84981f=_0x2ae13e['getGhsAttributeNameForElement'](_0x87a9f5['element']);_0x43be62['add'](_0x84981f);}const _0x651349=new Set();for(const _0x4e7b8f of _0x515e63['inline']){const _0x2d0096=_0x2ae13e['getGhsAttributeNameForElement'](_0x4e7b8f['element']);_0x651349['add'](_0x2d0096);for(const _0x367f1a of _0x4e7b8f['ghsAttributes'])_0x651349['add'](_0x367f1a);}for(const _0x1712d9 of _0x43be62)_0x354661['registerBlockAttribute'](_0x1712d9),_0x354661['descriptionFactory']['registerAttributeLabel'](_0x1712d9,o(_0x932851,'FORMAT_STYLE'));for(const _0x10f3dd of _0x651349)_0x354661['registerInlineAttribute'](_0x10f3dd),_0x354661['descriptionFactory']['registerAttributeLabel'](_0x10f3dd,o(_0x932851,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c7606=this['editor'],_0x53ae31=_0x1c7606['locale'];_0x1c7606['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bf536=>{if('formatBlock'!=_0x1bf536['type']&&'formatInline'!=_0x1bf536['type'])return;const {data:_0x2722b0}=_0x1bf536;return _0x2722b0&&'style'===_0x2722b0['commandName']?_0x2722b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53ae31,'*Set\x20format:*\x20%0',_0x2722b0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x53ae31,'*Remove\x20format:*\x20%0',_0x2722b0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x4e814d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x240c85){super(_0x240c85),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2b115a=this['editor'],_0x4cbcbe=_0x2b115a['model']['document']['selection'];if(!_0x2b115a['plugins']['has']('TableEditing'))return;const _0x67b96f=_0x2b115a['locale'],_0x3313be=_0x2b115a['plugins']['get']('TrackChangesEditing'),_0x2f196e=_0x2b115a['plugins']['get']('TableUtils');_0x3313be['descriptionFactory']['registerElementLabel']('table',_0x493bc7=>o(_0x67b96f,'ELEMENT_TABLE',_0x493bc7)),this['_setupColumnsRowsFixing'](),_0x3313be['enableCommand']('insertTable'),_0x3313be['enableCommand']('selectTableRow'),_0x3313be['enableCommand']('selectTableColumn');for(const _0x495edc of['insertTableRowAbove','insertTableRowBelow']){const _0x52f31f=_0x2b115a['commands']['get'](_0x495edc);_0x3313be['enableCommand'](_0x495edc,_0x59a951=>{_0x2b115a['model']['change'](_0x3b0149=>{_0x59a951();const _0x579364='above'===_0x52f31f['order'],_0xcaff9e=_0x2f196e['getSelectionAffectedTableCells'](_0x4cbcbe),_0x2f3111=_0x2f196e['getRowIndexes'](_0xcaff9e),_0x2abb3a=_0x579364?_0x2f3111['first']-0x1:_0x2f3111['last']+0x1,_0x33858f=_0xcaff9e[0x0]['findAncestor']('table'),_0x57393b=_0x2f196e['createTableWalker'](_0x33858f,{'startRow':_0x2abb3a,'endRow':_0x2abb3a}),_0x2aff74=Array['from'](_0x57393b)['map'](_0x40fcb4=>_0x3b0149['createRangeOn'](_0x40fcb4['cell']));_0x3313be['markMultiRangeInsertion'](_0x2aff74,'tableRow');});});}for(const _0x781e94 of['insertTableColumnLeft','insertTableColumnRight']){const _0x129ebc=_0x2b115a['commands']['get'](_0x781e94);_0x3313be['enableCommand'](_0x781e94,_0x5bf560=>{_0x2b115a['model']['change'](_0x2d3d0a=>{_0x5bf560();const _0x4e7bfd='left'===_0x129ebc['order'],_0x5841fc=_0x2f196e['getSelectionAffectedTableCells'](_0x4cbcbe),_0x5cdfd0=_0x2f196e['getColumnIndexes'](_0x5841fc),_0x1df654=_0x4e7bfd?_0x5cdfd0['first']-0x1:_0x5cdfd0['last']+0x1,_0x4a061e=_0x5841fc[0x0]['findAncestor']('table'),_0x2ae092=_0x2f196e['createTableWalker'](_0x4a061e,{'startRow':0x0,'column':_0x1df654,'includeAllSlots':!0x1}),_0x31f895=Array['from'](_0x2ae092)['map'](_0x5a7db1=>_0x2d3d0a['createRangeOn'](_0x5a7db1['cell']));_0x3313be['markMultiRangeInsertion'](_0x31f895,'tableColumn');});});}for(const _0x17362b of['removeTableRow','removeTableColumn']){const _0x581315=_0x17362b['substr'](0xb),_0x3dbff0=_0x581315['toLowerCase'](),_0x84ce28=_0x3dbff0['substr'](0x0,0x3)+'span',_0xd9017b='table'+_0x581315,_0x2a0655='min'+_0x581315,_0x57f511='max'+_0x581315;_0x3313be['enableCommand'](_0x17362b,()=>{_0x2b115a['model']['change'](_0x1b5cf9=>{const _0x4a2a3c=_0x2f196e['getSelectionAffectedTableCells'](_0x4cbcbe),_0x18b695=_0x4a2a3c[0x0]['findAncestor']('table');let _0x238513;if('removeTableRow'==_0x17362b){const _0x2b36c0=_0x2f196e['getRowIndexes'](_0x4a2a3c);_0x238513={'startRow':_0x2b36c0['first'],'endRow':_0x2b36c0['last'],'includeAllSlots':!0x0};}else{const _0x544a4f=_0x2f196e['getColumnIndexes'](_0x4a2a3c);_0x238513={'startColumn':_0x544a4f['first'],'endColumn':_0x544a4f['last'],'includeAllSlots':!0x0};}const _0x323c91=_0x2f196e['createTableWalker'](_0x18b695,_0x238513),_0x5dd71e=Array['from'](_0x323c91)['map'](({cell:_0x46fb9e})=>_0x46fb9e),_0x55a578=be(_0x5dd71e['filter'](_0x9d238e=>_0x9d238e['hasAttribute'](_0x84ce28))),_0x3871f0=be(_0x5dd71e['filter'](_0x10dc0c=>!_0x10dc0c['hasAttribute'](_0x84ce28)))['map'](_0x255e87=>_0x1b5cf9['createRangeOn'](_0x255e87)),_0x2330f9=_0x3313be['markMultiRangeDeletion'](_0x3871f0,_0xd9017b);if(_0x2330f9&&('tableRow'==_0x2330f9['subType']||'tableColumn'==_0x2330f9['subType'])){const _0x37a012=this['_getSuggestionCoords'](_0x2330f9);for(const _0x2ec056 of _0x55a578){const _0x31a65d=_0x1b5cf9['createRangeOn'](_0x2ec056),_0x544f0f=_0x2f196e['getCellLocation'](_0x2ec056),_0x17c2f0=_0x2ec056['getAttribute'](_0x84ce28)-0x1,_0x47bbfa=_0x37a012[_0x2a0655],_0x58647f=_0x37a012[_0x57f511];_0x47bbfa<=_0x544f0f[_0x3dbff0]&&_0x544f0f[_0x3dbff0]+_0x17c2f0<=_0x58647f&&_0x2330f9['addRange'](_0x31a65d);}}});});}function _0x584f28(_0x84d189){const _0x41459f=Array['from'](_0x4cbcbe['getRanges']())['map'](_0x24dab2=>_0x256351['fromRange'](_0x24dab2));_0x2b115a['model']['change'](_0xd3b7b8=>{const _0x51a1b4=_0xd3b7b8['batch'];_0x84d189=_0x84d189['filter'](_0x26b545=>'$graveyard'!=_0x26b545['root']['rootName']),_0xd3b7b8['setSelection'](_0x84d189),_0x2b115a['commands']['get']('removeTableRow')['refresh'](),_0x2b115a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2b115a['model']['enqueueChange'](()=>{_0x2b115a['model']['enqueueChange'](_0x51a1b4,_0x232639=>{const _0xcc1ee1=_0x41459f['filter'](_0x20a261=>'$graveyard'!=_0x20a261['root']['rootName']);_0xcc1ee1['length']>0x0&&_0x232639['setSelection'](_0xcc1ee1);for(const _0x4b9abb of _0x41459f)_0x4b9abb['detach']();});});});}function _0xe60df2(_0x3a2972){_0x2b115a['model']['change'](_0x449c6d=>{const _0x2513d2=Array['from'](_0x4cbcbe['getRanges']())['map'](_0x4fd76f=>_0x256351['fromRange'](_0x4fd76f)),_0x47965e=[];for(const _0x344d50 of _0x3a2972)for(const _0x390942 of _0x344d50['getItems']({'shallow':!0x0}))_0x47965e['push'](_0x390942);for(const _0x3cc826 of _0x47965e)'$graveyard'!=_0x3cc826['root']['rootName']&&(_0x449c6d['setSelection'](_0x449c6d['createPositionAt'](_0x3cc826,0x0)),_0x2b115a['commands']['get']('removeTableColumn')['refresh'](),_0x2b115a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x322b2b=_0x2513d2['filter'](_0x46c5b7=>'$graveyard'!=_0x46c5b7['root']['rootName']);_0x322b2b['length']>0x0&&_0x449c6d['setSelection'](_0x322b2b);for(const _0x584842 of _0x2513d2)_0x584842['detach']();});}function _0x45a22b(_0x75fba2,_0x4d0b7c){return _0x4d0b7c['every'](_0x8d7102=>_0x75fba2['some'](_0x5df24c=>_0x5df24c['end']['isEqual'](_0x8d7102['start'])||_0x8d7102['end']['isEqual'](_0x5df24c['start'])));}function _0x132afa(_0x5cd814,_0x4fb0c6){return!_0x5cd814['some'](_0x1e6dff=>_0x4fb0c6['some'](_0x552666=>_0x1e6dff['isIntersecting'](_0x552666)))&&_0x5cd814['some'](_0x4e51e0=>_0x4fb0c6['some'](_0x3a0914=>_0x4e51e0['end']['isTouching'](_0x3a0914['start'])));}_0x2b115a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c493d,_0x786a9,_0x292858)=>{if(!_0x292858['options']['showSuggestionHighlights'])return;const _0x36f2fa=_0x786a9['item'];if(!_0x36f2fa)return;const _0x1b1186=_0x292858['mapper']['toViewElement'](_0x36f2fa);function _0x1a8521(_0x24b6c7){return Array['isArray'](_0x24b6c7)?_0x24b6c7:[_0x24b6c7];}_0x1b1186&&'tableCell'===_0x36f2fa['name']&&_0x564ca1(_0x1b1186,_0x292858['writer'],(_0x49fdac,_0x295773,_0x457569)=>_0x457569['addClass'](_0x1a8521(_0x295773['classes']),_0x49fdac),(_0x40d3b9,_0x966138,_0x2018d9)=>_0x2018d9['removeClass'](_0x1a8521(_0x966138['classes']),_0x40d3b9));},{'priority':'highest'}),_0x3313be['descriptionFactory']['registerDescriptionCallback'](_0x25d300=>{if('insertion'!=_0x25d300['type']&&'deletion'!=_0x25d300['type'])return;const _0x1a3b3a=_0x25d300['getContainedElement']();if(null!=_0x1a3b3a&&_0x1a3b3a['is']('element','table')){if('insertion'==_0x25d300['type']){const _0x5bd5ee=_0x25d300['getItems']()['filter'](_0x503492=>_0x503492['is']('$textProxy'))['map'](_0x4f4706=>_0x4f4706['data']);if(_0x5bd5ee['length'])return{'type':'insertion','content':o(_0x67b96f,'*Insert:*\x20%0',o(_0x67b96f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5bd5ee['join']('\x20')+'\x22'))};}if('deletion'==_0x25d300['type']){const _0x241aea=_0x25d300['getItems']()['filter'](_0x1fb325=>_0x1fb325['is']('$textProxy'))['map'](_0x480c49=>_0x480c49['data']);if(_0x241aea['length'])return{'type':'deletion','content':o(_0x67b96f,'*Remove:*\x20%0',o(_0x67b96f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x241aea['join']('\x20')+'\x22'))};}}}),_0x3313be['descriptionFactory']['registerDescriptionCallback'](_0x22a19e=>{if('tableRow'==_0x22a19e['subType']){const _0x27fdc8=_0x22a19e['getItems']()['filter'](_0x35c9ce=>_0x35c9ce['is']('$textProxy'))['map'](_0x4803e4=>_0x4803e4['data']),_0x551e87=this['_getSuggestionCoords'](_0x22a19e),_0x390581=_0x551e87['maxRow']-_0x551e87['minRow']+0x1;if('insertion'==_0x22a19e['type'])return _0x27fdc8['length']?{'type':'insertion','content':o(_0x67b96f,'*Insert:*\x20%0',o(_0x67b96f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x390581,'\x22'+_0x27fdc8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x67b96f,'*Insert:*\x20%0',o(_0x67b96f,'ELEMENT_TABLE_ROW',_0x390581))};if('deletion'==_0x22a19e['type'])return _0x27fdc8['length']?{'type':'deletion','content':o(_0x67b96f,'*Remove:*\x20%0',o(_0x67b96f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x390581,'\x22'+_0x27fdc8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x67b96f,'*Remove:*\x20%0',o(_0x67b96f,'ELEMENT_TABLE_ROW',_0x390581))};}if('tableColumn'==_0x22a19e['subType']){const _0xc12b99=_0x22a19e['getItems']()['filter'](_0x1ea4e4=>_0x1ea4e4['is']('$textProxy'))['map'](_0x936e4e=>_0x936e4e['data']),_0x16dc89=this['_getSuggestionCoords'](_0x22a19e),_0x4b56c6=_0x16dc89['maxColumn']-_0x16dc89['minColumn']+0x1;if('insertion'==_0x22a19e['type'])return _0xc12b99['length']?{'type':'insertion','content':o(_0x67b96f,'*Insert:*\x20%0',o(_0x67b96f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b56c6,'\x22'+_0xc12b99['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x67b96f,'*Insert:*\x20%0',o(_0x67b96f,'ELEMENT_TABLE_COLUMN',_0x4b56c6))};if('deletion'==_0x22a19e['type'])return _0xc12b99['length']?{'type':'deletion','content':o(_0x67b96f,'*Remove:*\x20%0',o(_0x67b96f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b56c6,'\x22'+_0xc12b99['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x67b96f,'*Remove:*\x20%0',o(_0x67b96f,'ELEMENT_TABLE_COLUMN',_0x4b56c6))};}}),_0x3313be['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x584f28),_0x3313be['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x584f28),_0x3313be['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xe60df2),_0x3313be['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xe60df2),_0x3313be['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x45a22b),_0x3313be['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x45a22b),_0x3313be['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x132afa),_0x3313be['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x132afa);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4c0d8f=this['editor'],_0x417555=_0x4c0d8f['model']['document']['selection'];return(_0x5a0c6d,_0x446315)=>{_0x4c0d8f['model']['change'](_0x58bf53=>{const {commandName:_0x2751c1,commandParams:_0x49e1ce}=_0x446315;let _0x53ddb5=_0x5a0c6d[0x0]['end']['nodeBefore'];_0x49e1ce&&_0x49e1ce[0x0]&&!0x1===_0x49e1ce[0x0]['forceValue']&&(_0x53ddb5=_0x5a0c6d[0x0]['start']['nodeAfter']);const _0x4bccd8=_0x58bf53['createRangeIn'](_0x53ddb5);if('$graveyard'==_0x4bccd8['root']['rootName'])return;const _0x249cf9=Array['from'](_0x417555['getRanges']())['map'](_0x5ec0d9=>_0x256351['fromRange'](_0x5ec0d9));_0x58bf53['setSelection'](_0x4bccd8),_0x4c0d8f['commands']['get'](_0x2751c1)['refresh'](),_0x49e1ce['push']({'forceDefaultExecution':!0x0}),_0x4c0d8f['execute'](_0x2751c1,..._0x49e1ce);const _0x1bcd59=_0x249cf9['filter'](_0x5e620d=>'$graveyard'!=_0x5e620d['root']['rootName']);_0x1bcd59['length']>0x0&&_0x58bf53['setSelection'](_0x1bcd59);for(const _0x598f22 of _0x249cf9)_0x598f22['detach']();});};}['_getCoordsForCells'](_0x58bd12){const _0x168fe7=this['editor']['plugins']['get']('TableUtils');let _0x11b951=Number['MAX_SAFE_INTEGER'],_0x5e6ee4=Number['MIN_SAFE_INTEGER'],_0x4d7ca9=Number['MAX_SAFE_INTEGER'],_0x93d44d=Number['MIN_SAFE_INTEGER'];for(const _0x5b4ef6 of _0x58bd12){if('$graveyard'==_0x5b4ef6['root']['rootName'])continue;const {row:_0x218647,column:_0x145ae5}=_0x168fe7['getCellLocation'](_0x5b4ef6),_0x4e7409=_0x5b4ef6['hasAttribute']('rowspan')?_0x5b4ef6['getAttribute']('rowspan')-0x1:0x0,_0x27121d=_0x5b4ef6['hasAttribute']('colspan')?_0x5b4ef6['getAttribute']('colspan')-0x1:0x0;_0x11b951=_0x218647<_0x11b951?_0x218647:_0x11b951,_0x5e6ee4=_0x218647+_0x4e7409>_0x5e6ee4?_0x218647+_0x4e7409:_0x5e6ee4,_0x4d7ca9=_0x145ae5<_0x4d7ca9?_0x145ae5:_0x4d7ca9,_0x93d44d=_0x145ae5+_0x27121d>_0x93d44d?_0x145ae5+_0x27121d:_0x93d44d;}return{'minRow':_0x11b951,'maxRow':_0x5e6ee4,'minColumn':_0x4d7ca9,'maxColumn':_0x93d44d};}['_setupColumnsRowsFixing'](){const _0x4596aa=this['editor'],_0x2ed5f3=_0x4596aa['plugins']['get']('TrackChangesEditing'),_0x52ce10=_0x4596aa['plugins']['get']('TableUtils');_0x4596aa['model']['document']['on']('change:data',()=>{const _0x3c58d1=Array['from'](_0x4596aa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x63adf,data:_0x1e5ad4}of _0x3c58d1){const {group:_0x31f2c9,id:_0x581bfe,subType:_0x490371}=_0x2ed5f3['_splitMarkerName'](_0x63adf);if('suggestion'!=_0x31f2c9)continue;if(null!=_0x1e5ad4['oldRange'])continue;const _0x380d5c=_0x2ed5f3['getSuggestion'](_0x581bfe);this['_tablePostFixingSubtypes']['includes'](_0x490371)&&this['_tableSuggestions']['add'](_0x380d5c);}},{'priority':'low'});const _0x19a02e=(_0x4da619,_0x2a9b58)=>{let _0x4c128a=!0x1;const _0x594b88=_0x2a9b58['createRangeOn'](_0x4da619),_0x493cad=_0x4da619['findAncestor']('table'),_0x55afd7=_0x52ce10['getCellLocation'](_0x4da619);for(const _0x1893f3 of this['_tableSuggestions']){const _0x2dc6e4=_0x1893f3['subType'],_0x46c39b=_0x2dc6e4['startsWith']('tablePaste'),_0x24fe75=_0x2dc6e4['substr'](_0x46c39b?0xa:0x5),_0x3b293e=_0x24fe75['toLowerCase'](),_0x106518=_0x3b293e['substr'](0x0,0x3)+'span',_0x370cfc='min'+_0x24fe75,_0x22290f='max'+_0x24fe75;if(!_0x1893f3['isInContent'])continue;if(_0x493cad!=_0x1893f3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1893f3['isIntersectingWithRange'](_0x594b88))continue;const _0x57a744=_0x4da619['hasAttribute'](_0x106518)?_0x4da619['getAttribute'](_0x106518)-0x1:0x0,_0x520b9c=this['_getSuggestionCoords'](_0x1893f3),_0x4639e2=_0x520b9c[_0x370cfc],_0x25af87=_0x520b9c[_0x22290f];_0x4639e2<=_0x55afd7[_0x3b293e]&&_0x55afd7[_0x3b293e]+_0x57a744<=_0x25af87&&(_0x1893f3['addRange'](_0x594b88),_0x4c128a=!0x0);}return _0x4c128a;};_0x4596aa['model']['document']['registerPostFixer'](_0x4bb2df=>{let _0x370efa=!0x1;for(const _0x533d67 of _0x4596aa['model']['document']['differ']['getChanges']())if('insert'==_0x533d67['type']){if('tableRow'==_0x533d67['name']){for(const _0x262e60 of _0x533d67['position']['nodeAfter']['getChildren']())_0x370efa=_0x370efa||_0x19a02e(_0x262e60,_0x4bb2df);}else'tableCell'==_0x533d67['name']&&(_0x370efa=_0x370efa||_0x19a02e(_0x533d67['position']['nodeAfter'],_0x4bb2df));}return _0x370efa;});}['_getSuggestionCoords'](_0x3db672){return this['_getCoordsForCells'](_0x3db672['getRanges']()['map'](_0x57bc40=>_0x57bc40['start']['nodeAfter']));}}function be(_0x2f9185){return Array['from'](new Set(_0x2f9185)['values']());}class vt extends _0x4e814d{static get['requires'](){return[It];}['afterInit'](){const _0x131eed=this['editor'],_0x2a6991=_0x131eed['model']['document']['selection'],_0xe40078=_0x131eed['locale'];if(!_0x131eed['plugins']['has']('TableEditing'))return;const _0x3f38c=_0x131eed['plugins']['get']('TrackChangesEditing'),_0x18113a=_0x131eed['plugins']['get']('TableUtils'),_0x53b279=_0x131eed['plugins']['get'](It);_0x53b279['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3f38c['enableCommand']('mergeTableCells',()=>{const _0x34db48=_0x18113a['getSelectionAffectedTableCells'](_0x131eed['model']['document']['selection']);_0x131eed['model']['change'](()=>{_0x3f38c['markMultiRangeBlockFormat'](_0x34db48,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x131eed['commands']['get']('mergeTableCells')['on']('execute',(_0x421989,_0x18b97b)=>{_0x131eed['commands']['get']('trackChanges')['value']&&(_0x18b97b['length']>0x0&&_0x18b97b[_0x18b97b['length']-0x1]&&_0x18b97b[_0x18b97b['length']-0x1]['forceDefaultExecution']||_0x3f38c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x421989['stop']());},{'priority':'highest'});for(const _0x82905d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xb56883=_0x131eed['commands']['get'](_0x82905d);_0x3f38c['enableCommand'](_0x82905d,()=>{const _0xd42b6d=_0x131eed['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfff37f=>_0xfff37f['is']('element','tableCell')),_0x32c227=_0xb56883['value'];_0x131eed['model']['change'](()=>{_0x3f38c['markMultiRangeBlockFormat']([_0xd42b6d,_0x32c227],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x262f39 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2d56f8=_0x131eed['commands']['get'](_0x262f39);_0x3f38c['enableCommand'](_0x262f39,()=>{const _0x559fd1=_0x18113a['getSelectionAffectedTableCells'](_0x131eed['model']['document']['selection'])[0x0],_0x20c9e8=_0x559fd1['findAncestor']('table'),{column:_0x1de9c9,row:_0x5062db}=_0x18113a['getCellLocation'](_0x559fd1);let _0x50732d=[];if('horizontally'==_0x2d56f8['direction']){const _0x554cfa=_0x18113a['createTableWalker'](_0x20c9e8,{'startRow':_0x5062db,'endRow':_0x5062db,'includeAllSlots':!0x0});_0x50732d=Array['from'](_0x554cfa)['map'](_0x202847=>_0x202847['cell']);}else{const _0x36f376=_0x18113a['createTableWalker'](_0x20c9e8,{'column':_0x1de9c9,'includeAllSlots':!0x0});_0x50732d=Array['from'](_0x36f376)['map'](_0x2fe7e6=>_0x2fe7e6['cell']);}_0x131eed['model']['change'](_0x5993d4=>{_0x3f38c['markBlockFormat'](_0x5993d4['createRangeOn'](_0x559fd1),{'commandName':_0x262f39,'commandParams':[]},_0x50732d,_0x262f39);});});}_0x3f38c['descriptionFactory']['registerDescriptionCallback'](_0xb1371d=>{if('formatBlock'!=_0xb1371d['type']&&'formatInline'!=_0xb1371d['type'])return;const {data:_0x22cecf}=_0xb1371d;return _0x22cecf&&'mergeTableCells'==_0x22cecf['commandName']?{'type':'format','content':o(_0xe40078,'*Merge\x20cells*')}:void 0x0;}),_0x3f38c['descriptionFactory']['registerDescriptionCallback'](_0x2b36a9=>{if('formatBlock'!=_0x2b36a9['type']&&'formatInline'!=_0x2b36a9['type'])return;const {data:_0x388172}=_0x2b36a9;return _0x388172?'splitTableCellVertically'==_0x388172['commandName']?{'type':'format','content':o(_0xe40078,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x388172['commandName']?{'type':'format','content':o(_0xe40078,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x29bdd1=_0x53b279['_acceptFormatSuggestionCallbackFactory']();for(const _0x3bd331 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3f38c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3bd331,'accept',_0x29bdd1);for(const _0x5cd536 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3f38c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5cd536,'accept',_0x29bdd1);_0x3f38c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3edf16=>{_0x131eed['model']['change'](_0xb92e57=>{const _0x3cafb8=Array['from'](_0x2a6991['getRanges']())['map'](_0x3ffcaf=>_0x256351['fromRange'](_0x3ffcaf));_0xb92e57['setSelection'](_0x3edf16),_0x131eed['commands']['get']('mergeTableCells')['refresh'](),_0x131eed['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x258806=_0x3cafb8['filter'](_0x495531=>'$graveyard'!=_0x495531['root']['rootName']);_0x258806['length']>0x0&&_0xb92e57['setSelection'](_0x258806);for(const _0x28d810 of _0x3cafb8)_0x28d810['detach']();});});for(const _0x44598f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x877bc5=_0x131eed['commands']['get'](_0x44598f);_0x877bc5['on']('set:isEnabled',(_0x6983a6,_0x4e43d6,_0xd16a5b)=>{if(_0xd16a5b){const _0x54e02c=_0x131eed['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x576191=>_0x576191['is']('element','tableCell'));this['_areMergableCells'](_0x877bc5['value'],_0x54e02c)||(_0x6983a6['return']=!0x1,_0x6983a6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x243a23=this['editor']['commands']['get']('mergeTableCells'),_0x4b7267=this['editor']['plugins']['get']('TableUtils');if(!_0x243a23['isEnabled'])return!0x1;const _0x478319=_0x4b7267['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33ad7e of _0x478319)for(const _0x377727 of _0x478319)if(_0x33ad7e!=_0x377727&&!this['_areMergableCells'](_0x33ad7e,_0x377727))return!0x1;return!0x0;}['_areMergableCells'](_0x93978a,_0x20d628){const _0xaa945d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x186aa3=this['editor']['model']['createRangeOn'](_0x93978a),_0x2e16d3=this['editor']['model']['createRangeOn'](_0x20d628),_0x497f1f=new Set(),_0x3fa503=new Set();for(const _0x6159c6 of _0xaa945d['getSuggestions']())if(('insertion'==_0x6159c6['type']||'deletion'==_0x6159c6['type']||'mergeTableCells'==_0x6159c6['subType'])&&_0x6159c6['isInContent']){for(const _0x355b19 of _0x6159c6['getRanges']())_0x355b19['containsRange'](_0x186aa3,!0x0)&&_0x497f1f['add'](_0x6159c6['type']+':'+_0x6159c6['author']['id']),_0x355b19['containsRange'](_0x2e16d3,!0x0)&&_0x3fa503['add'](_0x6159c6['type']+':'+_0x6159c6['author']['id']);}if(_0x497f1f['size']!=_0x3fa503['size'])return!0x1;for(const _0x231575 of _0x497f1f)if(!_0x3fa503['has'](_0x231575))return!0x1;return!0x0;}}class Ct extends _0x4e814d{static get['requires'](){return[It];}['afterInit'](){const _0xe58ccc=this['editor'];if(!_0xe58ccc['plugins']['has']('TableEditing'))return;const _0x24c1ac=_0xe58ccc['locale'],_0x5632de=_0xe58ccc['plugins']['get']('TrackChangesEditing');_0x5632de['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5632de['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5632de['registerBlockAttribute']('headingRows'),_0x5632de['registerBlockAttribute']('headingColumns'),_0x5632de['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x24c1ac,'FORMAT_HEADER_ROW')),_0x5632de['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x24c1ac,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b9199=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d368e=this['editor']['plugins']['get']('TableUtils'),_0x5ef666=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2ee677({showActiveMarker:_0x10c9be=!0x0,setDataAttribute:_0x335d64=!0x0}={}){return(_0x47c974,_0x1818fe,_0x53bd6a)=>{const {type:_0x4ecb4d,id:_0x475841}=_0x5b9199['_splitMarkerName'](_0x1818fe['markerName']),_0x467f42=_0x5b9199['getSuggestion'](_0x475841),_0x5915c3=_0x467f42['data'];if('formatBlock'!=_0x467f42['type']||!_0x5915c3||'setTableColumnHeader'!=_0x5915c3['commandName'])return;if(_0x1818fe['item'])return void _0x47c974['stop']();if(!_0x53bd6a['consumable']['consume'](_0x1818fe['markerRange'],_0x47c974['name']))return;const _0x35386a=_0x1818fe['markerRange']['start']['nodeAfter'],_0x256e55=_0x1818fe['markerRange']['end']['nodeBefore'],_0x5bc5ce=_0x35386a['parent']['parent'],{column:_0x37b829}=_0x5d368e['getCellLocation'](_0x35386a),{column:_0x5c573a}=_0x5d368e['getCellLocation'](_0x256e55);for(let _0x8bf175=_0x37b829;_0x8bf175<=_0x5c573a;_0x8bf175++){const _0x476012=_0x5d368e['createTableWalker'](_0x5bc5ce,{'column':_0x8bf175,'includeAllSlots':!0x1});for(const _0x97b044 of _0x476012){const _0x4a44b2=_0x97b044['cell'],_0x5a58db=_0x53bd6a['mapper']['toViewElement'](_0x4a44b2);_0x53bd6a['writer']['addClass']('ck-suggestion-marker-'+_0x4ecb4d,_0x5a58db),_0x335d64&&_0x53bd6a['writer']['setAttribute']('data-suggestion',_0x475841,_0x5a58db),_0x53bd6a['mapper']['bindElementToMarker'](_0x5a58db,_0x1818fe['markerName']),_0x10c9be&&(_0x5b9199['activeMarkers']['includes'](_0x1818fe['markerName'])?_0x53bd6a['writer']['addClass']('ck-suggestion-marker--active',_0x5a58db):_0x53bd6a['writer']['removeClass']('ck-suggestion-marker--active',_0x5a58db));}}};}_0x5b9199['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5ef666),_0x5b9199['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5ef666),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ee677(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45dafd,_0x1f5e37,_0x1a068e)=>{_0x1a068e['options']['showSuggestionHighlights']&&_0x2ee677({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x45dafd,_0x1f5e37,_0x1a068e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2ca84a,_0x331972,_0x3c5a50)=>{const {type:_0x470eb5,id:_0xe69d55}=_0x5b9199['_splitMarkerName'](_0x331972['markerName']),_0x1f9a25=_0x5b9199['getSuggestion'](_0xe69d55),_0x512141=_0x1f9a25['data'];if('formatBlock'!=_0x1f9a25['type']||!_0x512141||'setTableColumnHeader'!=_0x512141['commandName'])return;const _0x44a99b=_0x3c5a50['mapper']['markerNameToElements'](_0x331972['markerName']);if(_0x44a99b){for(const _0x49802e of _0x44a99b)_0x3c5a50['writer']['removeClass']('ck-suggestion-marker-'+_0x470eb5,_0x49802e),_0x3c5a50['writer']['removeClass']('ck-suggestion-marker--active',_0x49802e),_0x3c5a50['writer']['removeAttribute']('data-suggestion',_0x49802e),_0x3c5a50['mapper']['unbindElementFromMarkerName'](_0x49802e,_0x331972['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa8831e=this['editor'],_0xf1694=_0xa8831e['locale'];function _0x3e6c20(_0x2e435f){return{'type':'format','content':o(_0xf1694,'*Format:*\x20%0',_0x2e435f)};}_0xa8831e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53bb1b=>{if('formatBlock'!=_0x53bb1b['type'])return;const {data:_0x4c91d0}=_0x53bb1b;if(_0x4c91d0){if('setTableRowHeader'==_0x4c91d0['commandName']){const _0x4d6f79=_0x4c91d0['commandParams'][0x0]['forceValue'];return _0x3e6c20(o(_0xf1694,_0x4d6f79?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4c91d0['commandName']){const _0xe34417=_0x4c91d0['commandParams'][0x0]['forceValue'];return _0x3e6c20(o(_0xf1694,_0xe34417?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x352df1=>[_0x352df1,null]));class _t extends _0x4e814d{static get['requires'](){return[It];}['afterInit'](){const _0x449045=this['editor'];if(!_0x449045['plugins']['has']('TableClipboard'))return;const _0x127d3c=_0x449045['plugins']['get']('TrackChangesEditing'),_0x20bdef=_0x449045['plugins']['get']('TableUtils'),_0x16aa4f=_0x449045['plugins']['get'](It),_0x1d7a70=_0x449045['plugins']['get']('TableClipboard');_0x16aa4f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x449045['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x449045['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x189a5e=null;_0x449045['model']['on']('insertContent',(_0x9ef560,_0x22b344)=>{const [_0x21fa97,_0x22f07b]=_0x22b344,_0x14b157=_0x22b344[_0x22b344['length']-0x1];_0x14b157&&_0x14b157['forceDefaultExecution']||_0x127d3c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x355e79,_0x550711,_0x17edb4,_0x411f50,_0x177d38){if(_0x550711&&!_0x550711['is']('documentSelection'))return!0x1;const _0x4a670b=_0x177d38['getTableIfOnlyTableInContent'](_0x355e79,_0x17edb4);if(!_0x4a670b||!Re(_0x4a670b,void 0x0,_0x411f50))return!0x1;const _0x25eb03=_0x411f50['getSelectionAffectedTableCells'](_0x17edb4['document']['selection']);if(!_0x25eb03['length'])return!0x1;const _0x12de11=_0x25eb03[0x0]['findAncestor']('table'),_0x5bdc87=_0x411f50['getRowIndexes'](_0x25eb03),_0x67d046=_0x411f50['getColumnIndexes'](_0x25eb03),_0xf64e4f={'startRow':_0x5bdc87['first'],'endRow':_0x5bdc87['last'],'startColumn':_0x67d046['first'],'endColumn':_0x67d046['last']};return 0x1==_0x25eb03['length']&&(_0xf64e4f['endRow']+=_0x411f50['getRows'](_0x4a670b)-0x1,_0xf64e4f['endColumn']+=_0x411f50['getColumns'](_0x4a670b)-0x1),Re(_0x12de11,_0xf64e4f,_0x411f50);}(_0x21fa97,_0x22f07b,_0x449045['model'],_0x20bdef,_0x1d7a70)&&(_0x9ef560['stop'](),_0x189a5e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x449045['model']['change'](()=>{_0x449045['model']['insertContent'](_0x22b344[0x0],_0x22b344[0x1],_0x22b344[0x2],{'forceDefaultExecution':!0x0});const _0x58c11a=_0x5712c5(),{rowInsertionRanges:_0x319c15,columnInsertionRanges:_0x5d5d37,insertionRanges:_0xe81c2,deletionRanges:_0xe1f2f6,cells:_0x4f8d73}=_0x189a5e;_0x319c15['length']&&_0x127d3c['markMultiRangeInsertion'](_0x319c15,'tablePasteRow',{'tablePasteChainId':_0x58c11a}),_0x5d5d37['length']&&_0x127d3c['markMultiRangeInsertion'](_0x5d5d37,'tablePasteColumn',{'tablePasteChainId':_0x58c11a}),_0xe81c2['length']&&(_0x127d3c['markMultiRangeInsertion'](_0xe81c2,'tablePaste',{'tablePasteChainId':_0x58c11a,'skipNestingCheck':!0x0}),_0xe81c2['forEach'](_0xf7d1db=>_0xf7d1db['detach']?.())),_0xe1f2f6['length']&&(_0x127d3c['markMultiRangeDeletion'](_0xe1f2f6,'tablePaste',{'tablePasteChainId':_0x58c11a,'skipNestingCheck':!0x0}),_0xe1f2f6['forEach'](_0x5b70b2=>_0x5b70b2['detach']?.()));const _0x124847=_0x127d3c['markMultiRangeBlockFormat'](_0x4f8d73['map'](({element:_0x8b1e7a})=>_0x8b1e7a),{'formatGroupId':_0x5712c5()},[],'tablePasteCell',{'tablePasteChainId':_0x58c11a});if(_0x124847){const _0x117441=_0x124847['getMarkers'](),_0x2f2175=[];for(const {element:_0x310b3,attributes:_0x115fa4}of _0x4f8d73){if(!_0x115fa4)continue;const _0xeb8466=_0x449045['model']['createRangeOn'](_0x310b3),_0x532528=_0x117441['find'](_0x29deb0=>_0x29deb0['getRange']()['isEqual'](_0xeb8466));_0x532528&&_0x2f2175['push']([_0x532528['name'],_0x115fa4]);}_0x2f2175['length']&&_0x124847['setAttribute']('markerAttributes',Object['fromEntries'](_0x2f2175));}_0x189a5e=null;}));},{'priority':_0x9cc792['high']+0xa}),_0x449045['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x11f747,_0x3d0d0e)=>{const [_0x4f0202,_0x2c892c,,_0x40fc5c]=_0x3d0d0e;if(!_0x189a5e)return;_0x11f747['stop']();const _0x3474a5=_0x4f0202['cell'],_0x514d55=_0x2c892c,_0x3be640=ke(_0x3474a5),_0x1d8400=ke(_0x514d55);_0x11f747['return']=_0x3474a5;let _0x3afecd=null,_0x56cf2e=null;if(_0x1d8400||_0x3be640){if(_0x3be640&&!_0x1d8400){_0x40fc5c['remove'](_0x3474a5['getChild'](0x0));for(const _0x3d72df of Array['from'](_0x514d55['getChildren']()))_0x40fc5c['insert'](_0x3d72df,_0x3474a5,'end');const _0x13761d=_0x189a5e['rowInsertionIndexes']['includes'](_0x4f0202['row']),_0x2fd12a=_0x189a5e['columnInsertionIndexes']['includes'](_0x4f0202['column']);_0x13761d||_0x2fd12a||(_0x3afecd=_0x256351['fromRange'](_0x40fc5c['createRangeIn'](_0x3474a5)));}else _0x1d8400&&!_0x3be640&&(_0x56cf2e=_0x40fc5c['createRangeIn'](_0x3474a5));}else{const _0x326b1f=_0x40fc5c['createElement']('tableCellSuggestion'),_0x2a9674=_0x40fc5c['createElement']('tableCellSuggestion');_0x40fc5c['wrap'](_0x40fc5c['createRangeIn'](_0x3474a5),_0x2a9674),_0x40fc5c['insert'](_0x326b1f,_0x3474a5,0x0);for(const _0x20a845 of Array['from'](_0x514d55['getChildren']()))_0x40fc5c['insert'](_0x20a845,_0x326b1f,'end');_0x3afecd=_0x256351['fromRange'](_0x40fc5c['createRangeOn'](_0x326b1f)),_0x56cf2e=_0x256351['fromRange'](_0x40fc5c['createRangeOn'](_0x2a9674));}const _0x120e2b=Array['from'](_0x514d55['getAttributes']())['filter'](([_0x3fc48b])=>Pe['includes'](_0x3fc48b));_0x189a5e['cells']['push']({'element':_0x3474a5,'attributes':_0x120e2b['length']?Object['fromEntries'](_0x120e2b):null}),_0x3afecd&&_0x189a5e['insertionRanges']['push'](_0x3afecd),_0x56cf2e&&_0x189a5e['deletionRanges']['push'](_0x56cf2e);},{'priority':'high'}),_0x20bdef['on']('insertColumns',(_0xcdf7bc,_0x12817a)=>{const [_0x3faeee,_0x2e033d={}]=_0x12817a;if(!_0x189a5e)return;const _0x200992=_0x2e033d['at']||0x0,_0x277a40=_0x2e033d['columns']||0x1;_0x189a5e['columnInsertionIndexes']=new Array(_0x277a40)['fill'](_0x200992)['map']((_0x5ba46c,_0x1ad730)=>_0x5ba46c+_0x1ad730);for(const {cell:_0x45f6db}of _0x20bdef['createTableWalker'](_0x3faeee,{'startColumn':_0x200992,'endColumn':_0x200992+_0x277a40-0x1}))_0x189a5e['columnInsertionRanges']['push'](_0x449045['model']['createRangeOn'](_0x45f6db));},{'priority':'low'}),_0x20bdef['on']('insertRows',(_0x174351,_0x30138d)=>{const [_0x27b1a4,_0x161c66={}]=_0x30138d;if(!_0x189a5e)return;const _0x5b8ccc=_0x161c66['at']||0x0,_0x528d49=_0x161c66['rows']||0x1;_0x189a5e['rowInsertionIndexes']=new Array(_0x528d49)['fill'](_0x5b8ccc)['map']((_0x2c785d,_0x2e34c5)=>_0x2c785d+_0x2e34c5);for(const {cell:_0x337460}of _0x20bdef['createTableWalker'](_0x27b1a4,{'startRow':_0x5b8ccc,'endRow':_0x5b8ccc+_0x528d49-0x1}))_0x189a5e['rowInsertionRanges']['push'](_0x449045['model']['createRangeOn'](_0x337460));},{'priority':'low'}),_0x127d3c['descriptionFactory']['registerDescriptionCallback'](_0x309278=>{if(_0x309278['subType']&&_0x309278['subType']['startsWith']('tablePaste'))return _0x309278['previous']?{}:{'type':'insertion','content':o(_0x449045['locale'],'*Replace\x20table\x20cells*')};});const _0xe8eb4a=()=>!0x1;for(const _0x535c77 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x127d3c['_suggestionFactory']['registerCustomCallback']('insertion',_0x535c77,'join',_0xe8eb4a),_0x127d3c['_suggestionFactory']['registerCustomCallback']('deletion',_0x535c77,'join',_0xe8eb4a),_0x127d3c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x535c77,'join',_0xe8eb4a);_0x127d3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xe8eb4a),_0x127d3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5afafd,_0x1785ad,_0x574d33)=>{const _0x2a7586=_0x5afafd['map'](_0x305022=>_0x305022['getContainedElement']())['filter'](_0x3317ba=>_0x3317ba),_0x347e24=new Map(_0x2a7586['map'](_0x530028=>[_0x530028,null]));if(_0x189a5e){for(const {element:_0x4b82e1,attributes:_0x5cc5b0}of _0x189a5e['cells'])_0x5cc5b0&&_0x347e24['set'](_0x4b82e1,_0x5cc5b0);}else{if(_0x574d33&&_0x574d33['markerAttributes'])for(const [_0x26ad09,_0x1fdb3e]of Object['entries'](_0x574d33['markerAttributes'])){const _0x25e60c=_0x449045['model']['markers']['get'](_0x26ad09),_0x1ad5c7=_0x25e60c?_0x25e60c['getRange']()['getContainedElement']():null;_0x1ad5c7&&_0x347e24['set'](_0x1ad5c7,_0x1fdb3e);}}_0x449045['model']['change'](_0x5c5846=>{for(const [_0x9ded68,_0x3d0903]of _0x347e24)_0x5c5846['setAttributes']({...we,..._0x3d0903},_0x9ded68);});});const _0x15d46d=(_0x4166e0,_0x5818b8)=>{_0x127d3c['_suggestionFactory']['registerCustomCallback'](_0x4166e0,'tablePaste',_0x5818b8,(_0x1eec3b,_0x2de739,_0x3d04a2)=>{_0x449045['model']['change'](_0x3765e1=>{const _0x5e0a06=[];for(const _0x4a3404 of _0x1eec3b){const _0x4f7684=_0x4a3404['start']['nodeAfter'];_0x4f7684['is']('element','tableCellSuggestion')&&_0x5e0a06['push'](_0x4f7684);}_0x127d3c['_suggestionFactory']['getSuggestionCallback'](_0x4166e0,null,_0x5818b8)(_0x1eec3b,_0x2de739,_0x3d04a2);for(const _0x47a433 of _0x5e0a06)'$graveyard'!=_0x47a433['root']['rootName']&&_0x3765e1['unwrap'](_0x47a433);});});};_0x15d46d('insertion','accept'),_0x15d46d('insertion','discard'),_0x15d46d('deletion','accept'),_0x15d46d('deletion','discard'),_0x127d3c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1fdce0=>{const _0x3a9b4=_0x1fdce0['map'](_0x461c35=>_0x461c35['getContainedElement']()),_0x5558d9=_0x3a9b4[0x0]['findAncestor']('table'),{minRow:_0x5002e3,maxRow:_0x2a6eb7}=_0x16aa4f['_getCoordsForCells'](_0x3a9b4);_0x20bdef['removeRows'](_0x5558d9,{'at':_0x5002e3,'rows':_0x2a6eb7-_0x5002e3+0x1});}),_0x127d3c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x53461b=>{const _0x5cbc6f=_0x53461b['map'](_0x270262=>_0x270262['getContainedElement']()),_0x42594e=_0x5cbc6f[0x0]['findAncestor']('table'),{minColumn:_0x288343,maxColumn:_0x239087}=_0x16aa4f['_getCoordsForCells'](_0x5cbc6f);_0x20bdef['removeColumns'](_0x42594e,{'at':_0x288343,'columns':_0x239087-_0x288343+0x1});});const _0xdf6dc3=(_0x1fc25b,_0x16f652)=>{if(!_0x16f652['subType']||!_0x16f652['subType']['startsWith']('tablePaste'))return;const _0x239090=_0x16f652['attributes']['tablePasteChainId'],_0x301ebd=_0x127d3c['getSuggestions']()['filter'](_0x43ef60=>_0x43ef60['isInContent']&&_0x43ef60['attributes']&&_0x43ef60['attributes']['tablePasteChainId']==_0x239090);_0x301ebd['length']&&_0x16f652['getAllAdjacentSuggestions']()['length']!=_0x301ebd['length']&&_0x301ebd['reduce']((_0x3d113f,_0x265754)=>(_0x3d113f['next']=_0x265754,_0x265754['previous']=_0x3d113f,_0x265754));};function _0x3c9474(_0x53fad2,_0x118315=!0x0){const {id:_0x2997dd,authorId:_0x1718d9}=_0x127d3c['_splitMarkerName'](_0x53fad2['markerName']),_0x414a0a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2d449e=_0x127d3c['activeMarkers']['includes'](_0x53fad2['markerName']);return _0x2d449e&&_0x414a0a['push']('ck-suggestion-marker--active'),{'classes':_0x414a0a,'attributes':{'data-suggestion':_0x2997dd,'data-author-id':_0x1718d9},'priority':_0x2d449e&&_0x118315?0xbc2:0xbb8};}_0x127d3c['on']('suggestionLoaded',_0xdf6dc3,{'priority':'high'}),_0x127d3c['on']('suggestionUnloaded',_0xdf6dc3,{'priority':'high'}),_0x449045['model']['document']['registerPostFixer'](()=>{let _0x695609=!0x1;const _0x29aa67=Array['from'](_0x449045['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x284082,data:_0xebf3ab}of _0x29aa67){const {group:_0x18ecb5,type:_0x3917ab,id:_0x395ce2}=_0x127d3c['_splitMarkerName'](_0x284082);if('suggestion'!=_0x18ecb5||'deletion'!=_0x3917ab||_0xebf3ab['oldRange'])continue;if(!_0x127d3c['hasSuggestion'](_0x395ce2))continue;const _0x58764a=_0x127d3c['getSuggestion'](_0x395ce2)['getRanges'](),_0x57da91=_0x449045['plugins']['get']('Users')['me'];for(const _0x268841 of _0x127d3c['getSuggestions']()){if(!_0x268841['isInContent']||_0x268841['author']!=_0x57da91)continue;if('formatBlock'!=_0x268841['type']||'tablePasteCell'!=_0x268841['subType'])continue;if(_0x268841['getRanges']()['every'](_0x2e2677=>_0x58764a['some'](_0x98842=>_0x98842['containsRange'](_0x2e2677,!0x0)))){for(const _0x5b3f67 of _0x268841['getAllAdjacentSuggestions']())_0x5b3f67['isInContent']&&(_0x5b3f67['discard'](),_0x695609=!0x0);}}}return _0x695609;}),_0x449045['model']['document']['registerPostFixer'](_0x3d52f1=>{const _0x785e6f=_0x449045['commands']['get']('redo');if(!_0x785e6f||!_0x785e6f['_createdBatches']['has'](_0x3d52f1['batch']))return!0x1;let _0x52d47d=!0x1;const _0x5db4d7=_0x449045['plugins']['get']('Users')['me'],_0x170dfc=_0x449045['model']['document']['differ']['getChanges'](),_0x17c212=Array['from'](_0x449045['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x548a66,data:_0x2bc9ff})=>{const {group:_0x4ed8e2,subType:_0x130f2b,authorId:_0x1a0853}=_0x127d3c['_splitMarkerName'](_0x548a66);return'suggestion'==_0x4ed8e2&&'tablePaste'==_0x130f2b&&_0x1a0853==_0x5db4d7['id']&&!_0x2bc9ff['oldRange'];});for(const _0x5cf81c of _0x170dfc){if('insert'!=_0x5cf81c['type']||'tableCellSuggestion'!=_0x5cf81c['name']||0x1!=_0x5cf81c['length'])continue;const _0x36c154=_0x3d52f1['createRange'](_0x5cf81c['position'],_0x5cf81c['position']['getShiftedBy'](0x1));if(!_0x17c212['find'](({data:_0x278711})=>_0x278711['newRange']['isEqual'](_0x36c154))){for(const {name:_0x386130,data:_0x195459}of _0x17c212)if(_0x36c154['containsRange'](_0x195459['newRange'])){_0x3d52f1['updateMarker'](_0x386130,{'range':_0x36c154}),_0x52d47d=!0x0;break;}}}return _0x52d47d;}),_0x449045['model']['document']['registerPostFixer'](_0x578a8e=>{let _0x3b1284=!0x1;const _0x2d2f3c=_0x449045['plugins']['get']('Users')['me'],_0x1388aa=_0x127d3c['getSuggestions']()['filter'](_0x464e92=>_0x464e92['isInContent']&&_0x464e92['author']==_0x2d2f3c),_0x1c6fdd=new Set(),_0x19a908=new Set();for(const _0x2730a2 of _0x1388aa)if('tablePaste'==_0x2730a2['subType'])for(const _0x260114 of _0x2730a2['getMarkers']()){const _0x1f486b=_0x260114['getRange']()['getContainedElement']();if(_0x1f486b){if(_0x1f486b['is']('element','tableCellSuggestion')&&ke(_0x1f486b)){_0x2730a2['removeMarker'](_0x260114['name']),_0x1c6fdd['add'](_0x1f486b),_0x3b1284=!0x0;const _0x584fc3=_0x1f486b['nextSibling'],_0x218c66=_0x1f486b['previousSibling'],_0x4be0c3=_0x584fc3&&_0x584fc3['is']('element','tableCellSuggestion'),_0x425d1e=_0x218c66&&_0x218c66['is']('element','tableCellSuggestion');_0x4be0c3&&!_0x1c6fdd['has'](_0x584fc3)&&_0x19a908['add'](_0x584fc3),_0x425d1e&&!_0x1c6fdd['has'](_0x218c66)&&_0x19a908['add'](_0x218c66);}else _0x1f486b['is']('element','paragraph')&&_0x1f486b['isEmpty']&&(_0x2730a2['removeMarker'](_0x260114['name']),_0x3b1284=!0x0);}}else{if('tablePasteCell'==_0x2730a2['subType']){if(!_0x2730a2['attributes']||!_0x2730a2['attributes']['tablePasteChainId'])continue;const _0x2f4b28=_0x2730a2['attributes']['markerAttributes'];if(_0x2f4b28&&Object['keys'](_0x2f4b28)['length'])continue;const _0x30ce71=_0x2730a2['attributes']['tablePasteChainId'];let _0x574282=!0x0,_0x1d975d=!0x0;for(const _0x511b6f of _0x1388aa)if(_0x511b6f['subType']&&_0x511b6f['subType']['startsWith']('tablePaste')){if(!_0x511b6f['attributes']['tablePasteChainId']){_0x1d975d=!0x1;break;}if(_0x511b6f['id']!=_0x2730a2['id']&&_0x511b6f['attributes']['tablePasteChainId']==_0x30ce71){_0x574282=!0x1;break;}}_0x1d975d&&_0x574282&&(_0x2730a2['removeMarkers'](),_0x3b1284=!0x0);}}for(const _0x14c21b of _0x1c6fdd)_0x578a8e['remove'](_0x14c21b);for(const _0x3ee3a9 of _0x19a908)_0x578a8e['unwrap'](_0x3ee3a9);return _0x3b1284;}),_0x449045['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x42e343=>_0x3c9474(_0x42e343),'converterPriority':'high'}),_0x449045['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b4ace,_0x36df9c)=>_0x36df9c['options']['showSuggestionHighlights']?_0x3c9474(_0x3b4ace,!0x1):null,'converterPriority':'high'});const _0x241cbc=_0x449045['editing']['view'];this['listenTo'](_0x241cbc['document'],'clipboardOutput',(_0x4ecea0,_0xa786f)=>{const _0x426de6=[];for(const _0x5090c3 of _0x241cbc['createRangeIn'](_0xa786f['content'])['getItems']())_0x5090c3['is']('element','suggestion-td')&&_0x426de6['push'](_0x5090c3);_0x241cbc['change'](_0x531000=>{for(const _0x156fa3 of _0x426de6)_0x531000['move'](_0x531000['createRangeIn'](_0x156fa3),_0x531000['createPositionBefore'](_0x156fa3)),_0x531000['remove'](_0x156fa3);});});}}function ke(_0x48d430){if(_0x48d430['isEmpty'])return!0x0;const _0x1c6202=_0x48d430['getChild'](0x0);return _0x1c6202['is']('element','paragraph')&&_0x1c6202['isEmpty'];}function Re(_0x2de8bd,_0x92b985={},_0x35ebfe){for(const {isAnchor:_0x305734,cellHeight:_0x35b3c5,cellWidth:_0xe85228}of _0x35ebfe['createTableWalker'](_0x2de8bd,{'includeAllSlots':!0x0,..._0x92b985}))if(!_0x305734||0x1!=_0x35b3c5||0x1!=_0xe85228)return!0x1;return!0x0;}class Nt extends _0x4e814d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4ccbdd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ccbdd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4ccbdd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4ccbdd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ccbdd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4ccbdd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4ccbdd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1d1240,_0x216c05){const _0x5772ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f53d2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2fe50b=_0x216c05['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x11167a=_0x3f53d2['getColumnGroupElement'](_0x2fe50b);let _0x2159e8=_0x11167a?_0x3f53d2['getTableColumnsWidths'](_0x11167a):null,_0x413a80=_0x2fe50b['getAttribute']('tableWidth')||null;const _0x38692b=_0x216c05['tableWidth']||_0x413a80,_0x20be0b=_0x216c05['columnWidths']||_0x2159e8,_0x2cc819=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c8bab of _0x5772ac['getSuggestions']()){const _0x2d1515=_0x3c8bab['getContainedElement']();if('resizeTable'===_0x3c8bab['subType']&&_0x2d1515===_0x2fe50b){_0x3c8bab['author']!==_0x2cc819&&_0x3c8bab['discard']();const _0x5260dc=_0x3c8bab['data']['commandParams'];_0x413a80=_0x5260dc[0x0]['tableWidth'],_0x2159e8=_0x5260dc[0x0]['columnWidths'];break;}}_0x1d1240({'table':_0x2fe50b,'tableWidth':_0x38692b,'columnWidths':_0x20be0b}),_0x5772ac['markBlockFormat'](_0x2fe50b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x413a80,'columnWidths':_0x2159e8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x13727d){if('formatBlock'!=_0x13727d['type']&&'formatInline'!=_0x13727d['type'])return;const {data:_0x1b0a30}=_0x13727d;if(_0x1b0a30&&'resizeTable'===_0x1b0a30['formatGroupId']){const _0x3f59a3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3f59a3)};}}}class Dt extends _0x4e814d{['afterInit'](){const _0x5d5936=this['editor'];_0x5d5936['plugins']['has']('Template')&&_0x5d5936['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4e814d{['afterInit'](){const _0x975f7f=this['editor'];if(!_0x975f7f['commands']['get']('insertTableOfContents'))return;_0x975f7f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2f536f=_0x975f7f['plugins']['get']('TrackChangesEditing'),_0x1402ab=_0x975f7f['locale'];_0x2f536f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1e21d2=>o(_0x1402ab,'ELEMENT_TABLE_OF_CONTENTS',_0x1e21d2));}}class $t extends _0x4e814d{['afterInit'](){const _0x1d7056=this['editor'];if(!_0x1d7056['plugins']['has']('Title'))return;const _0x54e053=_0x1d7056['plugins']['get']('TrackChangesEditing');_0x54e053['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1d7056['locale'],'ELEMENT_TITLE')),_0x1d7056['model']['document']['registerPostFixer'](_0x383db0=>{let _0x4bb1f6=!0x1;const _0x52b7fa=Array['from'](_0x1d7056['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e0d0f,data:_0x1c48b9}of _0x52b7fa){const {group:_0x382abc}=_0x54e053['_splitMarkerName'](_0x5e0d0f);if('suggestion'!==_0x382abc||!_0x1c48b9['newRange'])continue;const _0x19b32d=_0x1c48b9['newRange'],_0x318247=_0x19b32d['end']['nodeBefore'];if(!_0x318247||!_0x318247['is']('element','title-content'))continue;if(!_0x19b32d['start']['isTouching'](_0x19b32d['end']))continue;const _0x396212=_0x1d7056['model']['schema']['getNearestSelectionRange'](_0x19b32d['end'],'forward');if(_0x396212&&_0x396212['isCollapsed']){const _0x231432=_0x383db0['createRange'](_0x19b32d['start'],_0x396212['start']);_0x231432['isEqual'](_0x19b32d)||(_0x383db0['updateMarker'](_0x5e0d0f,{'range':_0x231432}),_0x4bb1f6=!0x0);}_0x4bb1f6||(_0x383db0['removeMarker'](_0x5e0d0f),_0x4bb1f6=!0x0);}return _0x4bb1f6;});}}class Bt extends _0x4e814d{['afterInit'](){const _0x42057e=this['editor'],_0x20fa0f=_0x42057e['plugins']['get']('TrackChangesEditing');_0x42057e['plugins']['has']('UndoEditing')&&(_0x20fa0f['enableCommand']('undo'),_0x20fa0f['enableCommand']('redo'));}}class xt extends _0x4e814d{static get['requires'](){return[It];}['afterInit'](){const _0x3e21cd=this['editor'];if(!_0x3e21cd['plugins']['has']('TableCaptionEditing'))return;_0x3e21cd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x4e814d{['tableProperties'];['tableCellProperties'];constructor(_0x31dad0){super(_0x31dad0),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x49a9a4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6c4004 of this['tableProperties'])_0x49a9a4['enableCommand'](_0x6c4004,(_0x20ad8b,_0x2e286b)=>{const _0x3c2c9e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6c4004,[_0x3c2c9e],this['tableProperties'],'tableProperties',_0x20ad8b,_0x2e286b);});_0x49a9a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x49a9a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49a9a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x301b97,_0x4bdcd6)=>this['handleDiscardAction'](this['tableProperties'],_0x301b97,_0x4bdcd6)),_0x49a9a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x21c891 of this['tableCellProperties'])_0x49a9a4['enableCommand'](_0x21c891,(_0x1211f1,_0x2de019)=>{const _0x2c7f73=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x21c891,_0x2c7f73,this['tableCellProperties'],'tableCellProperties',_0x1211f1,_0x2de019);});_0x49a9a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x49a9a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49a9a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f047a,_0x1d76a7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f047a,_0x1d76a7)),_0x49a9a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x49a9a4['descriptionFactory']['registerDescriptionCallback'](_0x175a18=>this['handleSuggestionDescription'](_0x175a18));}['_handlePropertyChange'](_0x561dc5,_0x1ede4e,_0x4845b7,_0x46d495,_0x4bf425,_0x36a5cd){const _0x38cdda=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x36a5cd['batch'],()=>{for(const _0x2708bf of _0x1ede4e){if(this['_getSuggestion'](_0x2708bf,_0x46d495))_0x4bf425(_0x36a5cd);else{const _0x2bcf29={};for(const _0x4bd9c8 of _0x4845b7){const _0x587168=_0x2708bf['getAttribute'](_0x4bd9c8);void 0x0!==_0x587168&&(_0x2bcf29[_0x4bd9c8]=_0x587168);}_0x4bf425(_0x36a5cd),_0x38cdda['markBlockFormat'](_0x2708bf,{'commandParams':[_0x2bcf29]},[],_0x46d495);}}});}['handleDiscardAction'](_0x42151f,_0x36c09f,_0x424ef2){const _0x2da7d1=_0x36c09f[0x0]['start']['nodeAfter'],_0x4ea825=_0x424ef2['commandParams'][0x0];this['editor']['model']['change'](_0x33200a=>{for(const _0x1a76a0 of _0x42151f)void 0x0!==_0x4ea825[_0x1a76a0]?_0x33200a['setAttribute'](_0x1a76a0,_0x4ea825[_0x1a76a0],_0x2da7d1):_0x33200a['removeAttribute'](_0x1a76a0,_0x2da7d1);});}['handleSuggestionDescription'](_0x86b0f9){if(_0x86b0f9['data'])switch(_0x86b0f9['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x482ae6,_0x1d4be5){const _0x37f741=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x36e2c8 of _0x37f741['getSuggestions']({'skipNotAttached':!0x0})){const _0x18daf2=_0x36e2c8['getContainedElement']();if(_0x36e2c8['subType']===_0x1d4be5&&_0x18daf2===_0x482ae6)return _0x36e2c8;}return null;}}const m='$elementName';class p extends _0x4e814d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5b3a8b,_0x455cad,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0xd83c4f){function _0x567e8d(_0x2759e5){return _0x2759e5['map'](_0x22317b=>String['fromCharCode'](_0x22317b))['join']('');}super(_0xd83c4f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x52efb5,_0x3759fa,_0x55deee,_0x548e1f)=>{this['_model']['change'](()=>{for(const _0x395e97 of[..._0x548e1f,..._0x55deee])this['_model']['markers']['has'](_0x395e97)&&_0xd83c4f['editing']['reconvertMarker'](_0x395e97);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xd83c4f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0xd83c4f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xd83c4f['config']['get']('trackChanges.trackFormatChanges'),_0xd83c4f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xd83c4f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xd83c4f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x567e8d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x567e8d([0x34,0x30,0x34,0x38,0x31,0x38,0x33,0x34]);}['init'](){const _0x2487a2=this['editor'],_0x3b52d4=(_0x293dfd,_0x4304ac)=>{if('attribute'!=_0x293dfd)return'ck-suggestion-marker-'+_0x293dfd;const _0x13a892=_0x4304ac['split']('|')[0x0];return this['_isBlockAttribute'](_0x13a892)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2487a2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x407e0b=>{const {id:_0x359415,authorId:_0x171fd9,type:_0x5c327b,subType:_0x5d2f7a}=this['_splitMarkerName'](_0x407e0b['markerName']),_0x34e82f=['ck-suggestion-marker',_0x3b52d4(_0x5c327b,_0x5d2f7a)];let _0x16f8fc=0xbb8;return this['activeMarkers']['includes'](_0x407e0b['markerName'])&&(_0x34e82f['push']('ck-suggestion-marker--active'),_0x16f8fc=0xbc2),'deletion'==_0x5c327b&&(_0x16f8fc+=0x5),{'classes':_0x34e82f,'attributes':{'data-suggestion':_0x359415,'data-author-id':_0x171fd9},'priority':_0x16f8fc};}}),_0x2487a2['conversion']['for']('dataDowncast')['add'](_0xdf76bb=>{_0xdf76bb['on']('addMarker:suggestion',(_0xe97700,_0x1a6e13,_0x3cd942)=>{if(!_0x3cd942['options']['showSuggestionHighlights'])return;const _0x3fb2a8=_0x1a6e13['item'];if(!_0x3fb2a8)return;const _0x41b5eb=_0x3cd942['mapper']['toViewElement'](_0x3fb2a8);_0x2487a2['model']['schema']['isObject'](_0x3fb2a8)&&_0x41b5eb&&!_0x41b5eb['getCustomProperty']('widget')&&_0x41b5eb['is']('containerElement')&&_0x51b763(_0x41b5eb,_0x3cd942['writer']);},{'priority':'high'});}),_0x2487a2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4826d8,_0x1e70d1)=>{if(!_0x1e70d1['options']['showSuggestionHighlights'])return null;const {type:_0x204ead,subType:_0x55cff3}=this['_splitMarkerName'](_0x4826d8['markerName']);return{'classes':['ck-suggestion-marker',_0x3b52d4(_0x204ead,_0x55cff3)],'priority':0xbb8};}});const _0x27d363=({showActiveMarkers:_0x213441=!0x0,isAttributeSuggestion:_0x44a81e=!0x1}={})=>(_0x44d147,_0xbde848,_0x50f09f)=>{if(!_0xbde848['item'])return;const {id:_0x2a6759,authorId:_0xfe3300}=this['_splitMarkerName'](_0xbde848['markerName']);if(_0x44a81e){const _0x4c8862=this['_suggestions']['get'](_0x2a6759),_0x339856=this['_getAttributeKey'](_0x4c8862);if(!this['_isBlockAttribute'](_0x339856))return;}if(_0xbde848['item']['is']('selection'))return void _0x50f09f['consumable']['consume'](_0xbde848['item'],_0x44d147['name']);const _0x3e2273=_0x50f09f['mapper']['toViewElement'](_0xbde848['item']);if(_0xbde848['item']['is']('element')&&_0x2487a2['model']['schema']['isBlock'](_0xbde848['item'])&&!_0x3e2273['getCustomProperty']('addHighlight')){_0x50f09f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3e2273),_0x50f09f['writer']['setAttribute']('data-suggestion',_0x2a6759,_0x3e2273),_0x50f09f['writer']['setAttribute']('data-author-id',_0xfe3300,_0x3e2273),_0x50f09f['mapper']['bindElementToMarker'](_0x3e2273,_0xbde848['markerName']),_0x213441&&(this['activeMarkers']['includes'](_0xbde848['markerName'])?_0x50f09f['writer']['addClass']('ck-suggestion-marker--active',_0x3e2273):_0x50f09f['writer']['removeClass']('ck-suggestion-marker--active',_0x3e2273));for(const _0x3c0bad of _0x2487a2['model']['createRangeIn'](_0xbde848['item'])['getItems']())_0x50f09f['consumable']['consume'](_0x3c0bad,_0x44d147['name']);_0x50f09f['consumable']['consume'](_0xbde848['item'],_0x44d147['name']);}};_0x2487a2['conversion']['for']('dataDowncast')['add'](_0x2277ad=>{_0x2277ad['on']('addMarker:suggestion:formatBlock',(_0x5cb859,_0x10aa72,_0x31cd1b)=>{_0x31cd1b['options']['showSuggestionHighlights']&&_0x27d363({'showActiveMarkers':!0x1})(_0x5cb859,_0x10aa72,_0x31cd1b);},{'priority':'highest'});}),_0x2487a2['conversion']['for']('dataDowncast')['add'](_0x2f19f4=>{_0x2f19f4['on']('addMarker:suggestion:attribute',(_0x2d0dcf,_0x38a8b3,_0x37bed4)=>{_0x37bed4['options']['showSuggestionHighlights']&&_0x27d363({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2d0dcf,_0x38a8b3,_0x37bed4);},{'priority':'highest'});}),_0x2487a2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x462248,_0x3c1e7d)=>_0x3c1e7d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x462248['substr'](0xb)}}),_0x2487a2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x572f44,{writer:_0x16abc2})=>{let _0x477321='suggestion:'+_0x572f44['getAttribute']('suggestion-type')+':'+_0x572f44['getAttribute']('id');return _0x572f44['getAttribute']('marker-count')&&(_0x477321+=':'+_0x572f44['getAttribute']('marker-count')),_0x16abc2['createElement']('$marker',{'data-name':_0x477321});}}),_0x2487a2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2487a2['conversion']['for']('editingDowncast')['add'](_0xd6a477=>{_0xd6a477['on']('addMarker:suggestion:formatBlock',_0x27d363(),{'priority':'high'});}),_0x2487a2['conversion']['for']('editingDowncast')['add'](_0x3c6c32=>{_0x3c6c32['on']('addMarker:suggestion:attribute',_0x27d363({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2487a2['conversion']['for']('editingDowncast')['add'](_0x224dcd=>{_0x224dcd['on']('removeMarker:suggestion:formatBlock',(_0x499d27,_0x4ec84d,_0x4c4e20)=>{const _0x4e49f9=_0x4c4e20['mapper']['markerNameToElements'](_0x4ec84d['markerName']);if(_0x4e49f9){for(const _0x4e98a5 of _0x4e49f9)_0x4e98a5['getCustomProperty']('addHighlight')||(_0x4c4e20['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4e98a5),_0x4c4e20['writer']['removeAttribute']('data-suggestion',_0x4e98a5),_0x4c4e20['writer']['removeAttribute']('data-author-id',_0x4e98a5),_0x4c4e20['mapper']['unbindElementFromMarkerName'](_0x4e98a5,_0x4ec84d['markerName']));}},{'priority':'high'});}),_0x2487a2['conversion']['for']('editingDowncast')['add'](_0x5dde61=>{_0x5dde61['on']('removeMarker:suggestion:attribute',(_0x3f0b8b,_0x4a2c36,_0x41ca70)=>{const _0x6ca599=_0x41ca70['mapper']['markerNameToElements'](_0x4a2c36['markerName']);if(!_0x6ca599)return;const {id:_0x1cc297}=this['_splitMarkerName'](_0x4a2c36['markerName']),_0xbfd375=this['_suggestions']['get'](_0x1cc297),_0x2db43a=this['_getAttributeKey'](_0xbfd375);if(this['_isBlockAttribute'](_0x2db43a)){for(const _0x15c28c of _0x6ca599)_0x15c28c['getCustomProperty']('addHighlight')||(_0x41ca70['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x15c28c),_0x41ca70['writer']['removeAttribute']('data-suggestion',_0x15c28c),_0x41ca70['writer']['removeAttribute']('data-author-id',_0x15c28c),_0x41ca70['mapper']['unbindElementFromMarkerName'](_0x15c28c,_0x4a2c36['markerName']));}},{'priority':'high'});}),_0x2487a2['model']['document']['registerPostFixer'](_0x3c552c=>{let _0x51853f=!0x1;const _0x49c796=Array['from'](_0x2487a2['model']['document']['differ']['getChangedMarkers']()),_0x503ee1=new Set();for(const {name:_0x3500a7,data:_0x3a9962}of _0x49c796){const {group:_0x4a1251,type:_0x80d3fe,subType:_0x5168d5,id:_0x241d41}=this['_splitMarkerName'](_0x3500a7);if('suggestion'!==_0x4a1251)continue;const _0x2632f7=this['_suggestions']['get'](_0x241d41);if(null!=_0x3a9962['newRange']){'formatInline'==_0x80d3fe&&(_0x51853f=_0x51853f||Ut(_0x3a9962['newRange'],_0x3500a7,_0x3c552c,_0x2487a2['model']['schema']));const _0x4b2bde='attribute'==_0x80d3fe&&this['_isBlockAttribute'](_0x5168d5['split']('|')[0x0]);if(_0x3a9962['newRange']['isCollapsed']||'$graveyard'==_0x3a9962['newRange']['root']['rootName']||'formatBlock'==_0x80d3fe&&!Ft(_0x3a9962['newRange'])||_0x4b2bde&&!Ft(_0x3a9962['newRange'])||'deletion'==_0x80d3fe&&!(!Vt(_0x441a69=_0x3a9962['newRange'])&&!function(_0x16b161){return _0x16b161['start']['parent']==_0x16b161['end']['nodeBefore']&&_0x16b161['start']['isAtEnd'];}(_0x441a69)))_0x3c552c['removeMarker'](_0x3500a7),_0x51853f=!0x0;else{if(!_0x2632f7||!_0x2632f7['isInContent'])continue;if(_0x3a9962['newRange']&&_0x3a9962['oldRange']&&_0x3a9962['newRange']['isEqual'](_0x3a9962['oldRange']))continue;_0x503ee1['add'](_0x2632f7);}}}var _0x441a69;return _0x503ee1['size']>0x0&&(_0x51853f=!!this['_joinWithAdjacentSuggestions'](_0x503ee1)||_0x51853f),_0x51853f;}),_0x2487a2['model']['document']['registerPostFixer'](_0x2b9bb2=>{let _0x513996=!0x1;for(const _0x15ed16 of _0x2487a2['model']['document']['differ']['getChanges']())if('insert'==_0x15ed16['type'])for(const _0x564703 of this['_suggestions']['values']()){if(_0x564703['isMultiRange']||!_0x564703['isInContent'])continue;const _0x3ce51f='formatBlock'==_0x564703['type'],_0x300938=this['_getAttributeKey'](_0x564703),_0x17c32b=_0x300938&&this['_isBlockAttribute'](_0x300938);if(!_0x3ce51f&&!_0x17c32b)continue;const _0x41432b=_0x564703['getFirstRange']();if(_0x41432b['start']['parent']!=_0x41432b['end']['parent']&&!_0x41432b['end']['isAtEnd']){const _0x36cbe6=_0x2487a2['model']['createPositionAt'](_0x41432b['start']['nodeAfter'],'end'),_0x1513cc=_0x2487a2['model']['createRange'](_0x41432b['start'],_0x36cbe6);_0x2b9bb2['updateMarker'](_0x564703['getFirstMarker'](),{'range':_0x1513cc}),_0x513996=!0x0;}}return _0x513996;}),_0x2487a2['model']['document']['registerPostFixer'](_0x31c057=>this['_processAttributeChanges'](_0x31c057)),_0x2487a2['model']['document']['registerPostFixer'](_0x57024b=>!_0x57024b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x57024b)),_0x2487a2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2487a2['model']['document']['on']('change:data',(_0x9f15e1,_0x31a716)=>{if(!_0x31a716['isLocal']||_0x31a716['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x449d6b=_0x2487a2['model']['document']['differ']['getChanges']();if(0x0==_0x449d6b['length'])return;const _0x56448e=[],_0x56a0f7=_0x449d6b['filter'](_0x2f425e=>'attribute'==_0x2f425e['type']),_0x4790eb=_0x449d6b['filter'](_0x331643=>'insert'==_0x331643['type']&&'$text'!=_0x331643['name']);for(const _0x1c9fcd of _0x56a0f7)this['_isRegisteredAttribute'](_0x1c9fcd['attributeKey'])&&_0x56448e['push']({'key':_0x1c9fcd['attributeKey'],'newValue':_0x1c9fcd['attributeNewValue'],'oldValue':_0x1c9fcd['attributeOldValue'],'range':Pt(_0x1c9fcd['range'],_0x2487a2['model'])});for(const _0x4d1f7a of _0x4790eb){if('rename'!=_0x4d1f7a['action']&&'refresh'!=_0x4d1f7a['action'])continue;const _0xe9f83d=Lt(_0x4d1f7a['position']['nodeAfter'],_0x2487a2['model']),_0x5bafc9=_0x4d1f7a['before'];'rename'==_0x4d1f7a['action']&&_0x56448e['push']({'key':m,'newValue':_0x4d1f7a['name'],'oldValue':_0x5bafc9['name'],'range':_0xe9f83d});for(const [_0x1a2682,_0x18dc43]of _0x5bafc9['attributes']){if(!this['_isRegisteredAttribute'](_0x1a2682))continue;const _0x6a5dbf=_0x4d1f7a['attributes']['get'](_0x1a2682);_0x18dc43!==_0x6a5dbf&&_0x56448e['push']({'key':_0x1a2682,'newValue':_0x6a5dbf,'oldValue':_0x18dc43,'range':_0xe9f83d});}for(const [_0x5a7f53,_0x55ebf8]of _0x4d1f7a['attributes'])this['_isRegisteredAttribute'](_0x5a7f53)&&(_0x5bafc9['attributes']['has'](_0x5a7f53)||_0x56448e['push']({'key':_0x5a7f53,'newValue':_0x55ebf8,'oldValue':null,'range':_0xe9f83d}));}0x0!=_0x56448e['length']&&_0x2487a2['model']['enqueueChange'](_0x31a716,_0x4f8ab6=>{const _0x22071d=_0x5712c5();for(const {range:_0x4b3cd6,key:_0x95c42c,oldValue:_0x7df617,newValue:_0x573186}of _0x56448e)this['markAttributeChange'](_0x4b3cd6,_0x95c42c,_0x7df617,_0x573186,{'groupId':_0x22071d});this['_reduceExistingSuggestions'](_0x4f8ab6,_0x56448e);});},{'priority':'lowest'}),_0x2487a2['model']['markers']['on']('update:suggestion',(_0x48f634,_0x51c150,_0x59d680)=>{if(null==_0x59d680){const {id:_0x4a783b}=this['_splitMarkerName'](_0x51c150['name']),_0x3d0377=this['_suggestions']['get'](_0x4a783b);_0x3d0377&&_0x3d0377['addMarkerName'](_0x51c150['name']);}}),_0x2487a2['model']['document']['on']('change:data',()=>{const _0x55716f=Array['from'](_0x2487a2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x57e969=>'suggestion'===this['_splitMarkerName'](_0x57e969['name'])['group']);if(0x0===_0x55716f['length'])return;_0x55716f['sort']((_0x11bfd1,_0x703ae6)=>{const _0xb0b479=_0x11bfd1['data']['oldRange'],_0xb33894=_0x703ae6['data']['oldRange'];return null===_0xb0b479&&null===_0xb33894?0x0:null===_0xb0b479&&null!==_0xb33894?-0x1:null!==_0xb0b479&&null===_0xb33894?0x1:_0xb0b479['start']['isBefore'](_0xb33894['start'])?-0x1:0x1;});const _0x13e7d3=new Set(),_0x2df409=new Set();for(const {name:_0x3381db,data:_0x433e15}of _0x55716f){const {id:_0x18219c}=this['_splitMarkerName'](_0x3381db);if(null===_0x433e15['oldRange']){const _0xde851d=this['_handleNewSuggestionMarker'](_0x3381db);_0x2df409['add'](_0xde851d);}else{const _0x581e6d=this['_suggestions']['get'](_0x18219c);null!==_0x433e15['newRange']||_0x581e6d['isInContent']?(_0x13e7d3['add'](_0x581e6d['head']),_0x2df409['add'](_0x581e6d)):this['_removeSuggestion'](_0x581e6d);}}_0x2df409['size']>0x0&&this['_refreshSuggestionsChain'](_0x2df409);for(const _0x331d86 of _0x13e7d3)this['fire']('suggestionChanged',_0x331d86);}),_0x2487a2['model']['on']('applyOperation',(_0x3475d1,_0x47496c)=>{const _0x542cb0=_0x47496c[0x0];if(!this['_suggestions']['size'])return;if(!_0x542cb0['isDocumentOperation'])return;if(_0x542cb0['batch']['isUndo']||!_0x542cb0['batch']['isLocal'])return;let _0x3d1ff5,_0x403101;switch(_0x542cb0['type']){case'insert':_0x3d1ff5=_0x2487a2['model']['createPositionAt'](_0x542cb0['position']),_0x403101=_0x3d1ff5['getShiftedBy'](_0x542cb0['howMany']);break;case'split':_0x3d1ff5=_0x2487a2['model']['createPositionAt'](_0x542cb0['splitPosition']),_0x403101=_0x2487a2['model']['createPositionAt'](_0x542cb0['moveTargetPosition']);break;case'move':_0x3d1ff5=_0x2487a2['model']['createPositionAt'](_0x542cb0['targetPosition']),_0x403101=_0x3d1ff5['getShiftedBy'](_0x542cb0['howMany']);break;default:return;}const _0x58d35c=_0x2487a2['model']['createRange'](_0x3d1ff5,_0x403101);_0x2487a2['model']['change'](()=>{for(const {suggestion:_0x513eb9,meta:_0x4b726c}of this['_findSuggestions'](_0x58d35c)){if(_0x513eb9['isMultiRange'])continue;if('formatInline'==_0x513eb9['type'])continue;const _0x2d2406=this['_getAttributeKey'](_0x513eb9);if(_0x2d2406&&this['_isBlockAttribute'](_0x2d2406)&&'split'!=_0x542cb0['type'])continue;const _0x1190ab=_0x513eb9['data']&&_0x513eb9['data']['multipleBlocks'];('formatBlock'!=_0x513eb9['type']||'split'==_0x542cb0['type']&&!_0x1190ab)&&(_0x4b726c['containsRangeInObject']||'insertion'==_0x513eb9['type']&&_0x4b726c['isOwn']||_0x513eb9['getFirstRange']()['containsRange'](_0x58d35c)&&this['_breakSuggestionMarker'](_0x513eb9,_0x3d1ff5,_0x403101));}});},{'priority':'lowest'}),_0x2487a2['model']['on']('deleteContent',(_0x258f06,_0x1df6c1)=>{const _0x3d1fed=_0x1df6c1[0x0],_0x30c725=_0x1df6c1[0x1];if(_0x30c725&&_0x30c725['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3d1fed['isCollapsed'])return;const _0x3e85a0=_0x2487a2['model']['schema'],{start:_0x537af6,end:_0x59cfca}=_0x3d1fed['getFirstRange'](),_0x246c7d=_0x537af6['nodeAfter']&&_0x3e85a0['isLimit'](_0x537af6['nodeAfter'])?null:_0x3e85a0['getNearestSelectionRange'](_0x537af6,'forward'),_0x42b6f3=_0x59cfca['nodeBefore']&&_0x3e85a0['isLimit'](_0x59cfca['nodeBefore'])?null:_0x3e85a0['getNearestSelectionRange'](_0x59cfca,'backward'),_0x16c6f3=_0x2487a2['model']['createRange'](_0x246c7d?_0x246c7d['start']:_0x537af6,_0x42b6f3?_0x42b6f3['end']:_0x59cfca);_0x2487a2['model']['change'](_0xe9c6b8=>{this['markDeletion'](_0x16c6f3);const _0x47d566=_0x2487a2['model']['schema']['getNearestSelectionRange'](_0x16c6f3['start']);_0x3d1fed['is']('documentSelection')?_0xe9c6b8['setSelection'](_0x47d566):_0x3d1fed['setTo'](_0x47d566);}),_0x258f06['stop']();},{'priority':_0x9cc792['normal']+0xa}),_0x2487a2['model']['on']('insertContent',(_0x321ccd,_0x5ded87)=>{const _0x1e4cb3=_0x5ded87[_0x5ded87['length']-0x1];_0x1e4cb3&&_0x1e4cb3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2487a2['model']['change'](()=>{let _0x2972aa=_0x2487a2['model']['insertContent'](_0x5ded87[0x0],_0x5ded87[0x1],_0x5ded87[0x2],{'forceDefaultExecution':!0x0});if(!_0x2972aa)return;_0x321ccd['return']=_0x2972aa['clone']();const _0x5e726c=_0x2972aa['end']['nodeBefore'],_0x2f67fe=_0x2487a2['model']['schema'];_0x5e726c&&_0x2f67fe['isBlock'](_0x5e726c)&&!_0x2f67fe['isObject'](_0x5e726c)&&(_0x2972aa=_0x2487a2['model']['createRange'](_0x2972aa['start'],_0x2487a2['model']['createPositionAt'](_0x5e726c,'end'))),this['markInsertion'](_0x2972aa);}),_0x321ccd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x507d0f=new x(_0x2487a2,this['_suggestions']);_0x2487a2['commands']['add']('acceptSuggestion',_0x507d0f),this['enableCommand']('acceptSuggestion');const _0x548218=new R(_0x2487a2,this['_suggestions']);_0x2487a2['commands']['add']('discardSuggestion',_0x548218),this['enableCommand']('discardSuggestion'),_0x2487a2['commands']['add']('acceptAllSuggestions',new E(_0x2487a2,_0x507d0f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2487a2['commands']['add']('discardAllSuggestions',new E(_0x2487a2,_0x548218,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2487a2['commands']['add']('acceptSelectedSuggestions',new O(_0x2487a2,_0x507d0f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2487a2['commands']['add']('discardSelectedSuggestions',new O(_0x2487a2,_0x548218,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x54bfc1=_0x2487a2['plugins']['get']('CommentsRepository');this['listenTo'](_0x54bfc1,'addComment',(_0x47080b,{threadId:_0x4af28e})=>{const _0x1d8656=this['_suggestions']['get'](_0x4af28e);_0x1d8656&&_0x1d8656['commentThread']&&0x1===_0x1d8656['commentThread']['length']&&this['_updateSuggestionData'](_0x4af28e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x54bfc1,'removeComment',(_0x580c05,{threadId:_0x587edb})=>{const _0x4f0fe7=this['_suggestions']['get'](_0x587edb);_0x4f0fe7&&_0x4f0fe7['commentThread']&&!_0x4f0fe7['commentThread']['length']&&this['_updateSuggestionData'](_0x587edb,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3095aa){if(this['_adapter'])throw new _0x3cf7af('track-changes-adapter-already-set',this);this['_adapter']=_0x3095aa;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1fc1a1=!0x1,toJSON:_0x238988=!0x1}={}){const _0x53ef2d=[];for(const _0x21dc72 of this['_suggestions']['values']())_0x1fc1a1&&!_0x21dc72['isInContent']||_0x53ef2d['push'](_0x21dc72);return _0x238988?_0x53ef2d['map'](_0x5ca66b=>_0x5ca66b['toJSON']()):_0x53ef2d;}['getSuggestion'](_0x20d92a){const _0x27a3a2=this['_suggestions']['get'](_0x20d92a);if(!_0x27a3a2)throw new _0x3cf7af('track-changes-suggestion-not-found',this);return _0x27a3a2;}['hasSuggestion'](_0x12cf18){return this['_suggestions']['has'](_0x12cf18);}['addSuggestionData'](_0x31ee4b){const {authorId:_0x4e6f9b,id:_0x1dcf65,attributes:_0x51a945}=_0x31ee4b,[_0x20c09b,_0x1f8386]=_0x31ee4b['type']['split'](':'),_0x41eef5=this['_suggestions']['get'](_0x1dcf65)||this['_createSuggestion'](_0x20c09b,_0x1f8386,_0x1dcf65,_0x4e6f9b,_0x51a945);if(this['_addThreadToSuggestion'](_0x41eef5),this['_checkSuggestionCorrectness'](_0x41eef5,_0x20c09b,_0x1f8386||null,_0x4e6f9b),_0x41eef5['createdAt']=_0x31ee4b['createdAt'],_0x41eef5['_isDataLoaded']=!0x0,_0x51a945&&_0x51a945['@external']){const _0x296e9f=_0x51a945['@external'],_0x421307=this['_getExternalAuthor'](_0x296e9f['authorName']);_0x41eef5['authoredAt']=_0x296e9f['createdAt'],_0x41eef5['author']=_0x421307,_0x41eef5['isExternal']=!0x0;}else _0x41eef5['authoredAt']=_0x31ee4b['createdAt'];switch(_0x31ee4b['data']&&(_0x41eef5['data']=_0x31ee4b['data']),_0x31ee4b['attributes']&&(_0x41eef5['attributes']=_0x31ee4b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x41eef5['_saved']=!0x0),this['_suggestionState']['get'](_0x41eef5)){case'notReady':this['_suggestionState']['set'](_0x41eef5,'dataReady');break;case'markerReady':_0x41eef5['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x41eef5])),this['_refreshSuggestionsChain'](new Set([_0x41eef5])),this['_suggestionState']['set'](_0x41eef5,'ready'),this['fire']('suggestionLoaded',_0x41eef5)):this['_suggestionState']['set'](_0x41eef5,'removed');}return _0x41eef5;}['acceptSuggestion'](_0x2c9fdf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5596e9 of _0x2c9fdf['getAllAdjacentSuggestions']())_0x5596e9['accept']();});});}['discardSuggestion'](_0x1d5117){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x9e8c8f of _0x1d5117['getAllAdjacentSuggestions']())_0x9e8c8f['discard']();});});}['enableCommand'](_0x1b42ef,_0x379a69){const _0x403950=this['editor']['commands']['get'](_0x1b42ef);if(!_0x403950)throw new _0x3cf7af('track-changes-command-not-found',this,{'commandName':_0x1b42ef});if(this['_enabledCommands']['has'](_0x403950))throw new _0x3cf7af('track-changes-enable-command-twice',this,{'commandName':_0x1b42ef});this['_enabledCommands']['add'](_0x403950),_0x379a69&&_0x403950['on']('execute',(_0x5d409b,_0x56fee0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x56fee0['length']>0x0&&_0x56fee0[_0x56fee0['length']-0x1]&&_0x56fee0[_0x56fee0['length']-0x1]['forceDefaultExecution']?_0x56fee0['pop']():(_0x5d409b['return']=_0x379a69((..._0x2e6bd6)=>_0x403950['execute'](..._0x2e6bd6,{'forceDefaultExecution':!0x0}),..._0x56fee0),_0x5d409b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xfa96b3){let _0x588ec2,_0x39a8b2;const _0x5ab120=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x588ec2=_0xfa96b3();}catch(_0x48100a){_0x39a8b2=_0x48100a;}return _0x5ab120||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x39a8b2&&_0x3cf7af['rethrowUnexpectedError'](_0x39a8b2,this),_0x588ec2;}['markInsertion'](_0x230a91,_0x52006e=null,_0x41afa2={}){if(_0x230a91['isCollapsed'])return null;const _0x3e37a6=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1bd4df,meta:_0x35fc08}of this['_findSuggestions'](_0x230a91,'insertion'))if(_0x35fc08['isOwn']){if(!_0x35fc08['isNextTo']){if(_0x35fc08['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1bd4df,_0x41afa2))continue;return _0x1bd4df;}if(qt(_0x1bd4df,_0x41afa2))return _0x1bd4df;this['_breakSuggestionMarker'](_0x1bd4df,_0x230a91['start'],_0x230a91['end']);break;}if(_0x52006e==_0x1bd4df['subType']&&qt(_0x1bd4df,_0x41afa2)){const _0x2f07eb=_0x1bd4df['getFirstRange']();return _0x2f07eb['start']['isEqual'](_0x230a91['end'])?this['_setSuggestionRange'](_0x1bd4df,this['_model']['createRange'](_0x230a91['start'],_0x2f07eb['end'])):this['_setSuggestionRange'](_0x1bd4df,this['_model']['createRange'](_0x2f07eb['start'],_0x230a91['end'])),_0x1bd4df;}}const _0x34cfe9=_0x5712c5(),_0x114993=_0x3e37a6['id'],_0x34798b=_0x52006e?'insertion:'+_0x52006e:'insertion',_0x3824e6=this['_setSuggestionData']({'id':_0x34cfe9,'type':_0x34798b,'createdAt':new Date(),'authorId':_0x114993,'attributes':_0x41afa2});return this['_addSuggestionMarker'](_0x34798b,_0x34cfe9,_0x114993,_0x230a91),_0x3824e6;}['markMultiRangeInsertion'](_0xd01ef5,_0x594ece='multi',_0x20a11f={}){const _0x4fbf6b=this['editor']['plugins']['get']('Users')['me'],_0x13aaf7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x594ece,'join');for(const _0x4cdab2 of this['getSuggestions']())if(_0x4cdab2['author']['id']==_0x4fbf6b['id']&&'insertion'==_0x4cdab2['type']&&_0x4cdab2['subType']==_0x594ece&&qt(_0x4cdab2,_0x20a11f)&&(_0x13aaf7(_0x4cdab2['getRanges'](),_0xd01ef5)||_0x13aaf7(_0xd01ef5,_0x4cdab2['getRanges']()))){for(const _0x483600 of _0xd01ef5)_0x4cdab2['addRange'](_0x483600);return _0x4cdab2;}for(const {suggestion:_0x22d794,meta:_0x52a24b}of this['_findSuggestions'](_0xd01ef5,'insertion')){if(!_0x52a24b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52a24b['containsRangeInObject'])continue;if(!qt(_0x22d794,_0x20a11f))continue;let _0x5d2cb2=!0x0;for(const _0xcccebe of _0x22d794['getRanges']())for(const _0x387caa of _0xd01ef5)if(!_0xcccebe['containsRange'](_0x387caa)){_0x5d2cb2=!0x1;break;}if(_0x5d2cb2)return _0x22d794;}const _0x3719c5=_0x5712c5(),_0x3b7222=_0x4fbf6b['id'],_0x49b78a='insertion:'+_0x594ece,_0x165da9=this['_setSuggestionData']({'id':_0x3719c5,'type':_0x49b78a,'createdAt':new Date(),'authorId':_0x3b7222,'attributes':_0x20a11f});for(const _0x3d3de9 of _0xd01ef5)this['_addSuggestionMarker'](_0x49b78a,_0x3719c5,_0x3b7222,_0x3d3de9,u['getMultiRangeId']());return _0x165da9;}['markInlineFormat'](_0x515b93,_0x25bc1c,_0x41c643=null,_0x1f1a12={}){if(_0x41c643=_0x41c643||Gt(_0x25bc1c),_0x515b93['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x31ab9f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x41c643,'accept');return this['forceDefaultExecution'](()=>_0x31ab9f([_0x515b93],_0x25bc1c,_0x1f1a12)),null;}const _0x4793b9=this['editor']['plugins']['get']('Users')['me'],_0x1b4004=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x157168,meta:_0x971db5}of this['_findSuggestions'](_0x515b93,'insertion'))_0x971db5['isOwn']&&!_0x971db5['isInsideObject']&&_0x1b4004['push'](..._0x157168['getRanges']());}const _0x451db8=function(_0x57fb66,_0x42900b){const _0x9fd760=[];for(const _0x24cf05 of _0x42900b){const _0x301967=_0x57fb66['getIntersection'](_0x24cf05);_0x301967&&_0x9fd760['push'](_0x301967);}return _0x9fd760;}(_0x515b93,_0x1b4004),_0x3d128d=function(_0x3d7bee,_0x43d1de){const _0x34ed62=[_0x3d7bee];for(const _0x1c67f9 of _0x43d1de){let _0x36aded=0x0;for(;_0x36aded<_0x34ed62['length'];){const _0x4cc018=_0x34ed62[_0x36aded]['getDifference'](_0x1c67f9);_0x34ed62['splice'](_0x36aded,0x1,..._0x4cc018),_0x36aded+=_0x4cc018['length'];}}return _0x34ed62;}(_0x515b93,_0x1b4004);_0x451db8['length']&&this['_model']['change'](()=>{for(const _0x4437d1 of _0x451db8){const _0x15a70b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x41c643,'accept');this['forceDefaultExecution'](()=>_0x15a70b([_0x4437d1],_0x25bc1c,_0x1f1a12));}});for(const _0x3830aa of _0x3d128d){let _0x50a667=null,_0x284c98=_0x3830aa['start'],_0x1c15f7=_0x3830aa['end'];for(const {suggestion:_0xa19161,meta:_0x142c79}of this['_findSuggestions'](_0x3830aa,'formatInline')){if(!_0x142c79['isOwn'])continue;if(_0xa19161['subType']!=_0x41c643)continue;if(!qt(_0xa19161,_0x1f1a12))continue;const _0x282474=_0xa19161['getFirstRange']();if(_0x282474['containsRange'](_0x3830aa,!0x0))return null;_0x284c98=_0x284c98['isBefore'](_0x282474['start'])?_0x284c98:_0x282474['start'],_0x1c15f7=_0x1c15f7['isAfter'](_0x282474['end'])?_0x1c15f7:_0x282474['end'],_0x50a667?_0x282474['start']['isBefore'](_0x50a667['getFirstRange']()['start'])?(_0x50a667['removeMarkers'](),_0x50a667=_0xa19161):_0xa19161['removeMarkers']():_0x50a667=_0xa19161;}const _0x17381d=this['_model']['createRange'](_0x284c98,_0x1c15f7);if(_0x50a667)this['_setSuggestionRange'](_0x50a667,_0x17381d);else{const _0xbaaf2d=_0x5712c5(),_0x29cbdc=_0x4793b9['id'];this['_setSuggestionData']({'id':_0xbaaf2d,'type':'formatInline:'+_0x41c643,'data':_0x25bc1c,'createdAt':new Date(),'authorId':_0x29cbdc,'attributes':_0x1f1a12}),this['_addSuggestionMarker']('formatInline:'+_0x41c643,_0xbaaf2d,_0x29cbdc,_0x17381d);}}return null;}['markBlockFormat'](_0x28c578,_0x426fbe,_0x25507c=[],_0x1f9e4d=null,_0x18ddba={}){_0x426fbe['formatGroupId']||(_0x426fbe['formatGroupId']=_0x426fbe['commandName']),_0x426fbe['multipleBlocks']=_0x28c578['is']('range'),_0x1f9e4d=_0x1f9e4d||Gt(_0x426fbe);const _0x26dd82=_0x25507c['map'](_0x129879=>Lt(_0x129879,this['_model'])),_0x3797f4=_0x28c578['is']('range')?_0x28c578:Lt(_0x28c578,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2fe03e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f9e4d,'accept');return this['forceDefaultExecution'](()=>_0x2fe03e([_0x3797f4],_0x426fbe,_0x18ddba)),null;}_0x26dd82['push'](_0x3797f4);let _0x1b9db8=!0x0;for(const _0x52476e of _0x26dd82)if(!this['_rangeIsInLocalUserInsertion'](_0x52476e)){_0x1b9db8=!0x1;break;}if(_0x1b9db8&&'always'!==this['_trackFormatChanges']){const _0x50782c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f9e4d,'accept');return this['forceDefaultExecution'](()=>_0x50782c([_0x3797f4],_0x426fbe,_0x18ddba)),null;}let _0x33b190=null,_0x220786=_0x3797f4['start'],_0x40fd71=_0x3797f4['end'];for(const {suggestion:_0x5b3c81,meta:_0x581229}of this['_findSuggestions'](_0x3797f4,'formatBlock')){if(!_0x581229['isOwn'])continue;if(_0x581229['isNextTo']||_0x581229['containsRangeInObject']||_0x581229['isInsideObject'])continue;if(_0x5b3c81['data']['formatGroupId']!=_0x426fbe['formatGroupId'])continue;if(!qt(_0x5b3c81,_0x18ddba))continue;const _0x5560c5=_0x5b3c81['getFirstRange']();if(_0x5b3c81['subType']==_0x1f9e4d){if(_0x5560c5['containsRange'](_0x3797f4,!0x0))return null;_0x220786=_0x220786['isBefore'](_0x5560c5['start'])?_0x220786:_0x5560c5['start'],_0x40fd71=_0x40fd71['isAfter'](_0x5560c5['end'])?_0x40fd71:_0x5560c5['end'],_0x33b190?_0x5560c5['start']['isBefore'](_0x33b190['getFirstRange']()['start'])?(_0x33b190['removeMarkers'](),_0x33b190=_0x5b3c81):_0x5b3c81['removeMarkers']():_0x33b190=_0x5b3c81;}else{const _0x2d1c74=_0x3797f4['getIntersection'](_0x5560c5);this['_cutOutSuggestionMarker'](_0x5b3c81,_0x2d1c74);}}const _0x13990b=this['editor']['plugins']['get']('Users')['me'],_0x166623=_0x5712c5(),_0x3db8ee=_0x13990b['id'];if(_0x33b190)return this['_setSuggestionRange'](_0x33b190,this['_model']['createRange'](_0x220786,_0x40fd71)),_0x33b190;{const _0x212d1b=this['_setSuggestionData']({'id':_0x166623,'type':'formatBlock:'+_0x1f9e4d,'data':_0x426fbe,'createdAt':new Date(),'authorId':_0x3db8ee,'attributes':_0x18ddba});return this['_addSuggestionMarker']('formatBlock:'+_0x1f9e4d,_0x166623,_0x3db8ee,this['_model']['createRange'](_0x220786,_0x40fd71)),_0x212d1b;}}['markMultiRangeBlockFormat'](_0x565e1a,_0x3f4d05,_0x152668=[],_0x2d6d06=null,_0x2ff14a={}){_0x3f4d05['formatGroupId']||(_0x3f4d05['formatGroupId']=_0x3f4d05['commandName']);const _0x512085=_0x565e1a[0x0];_0x3f4d05['multipleBlocks']=_0x512085['is']('range'),_0x2d6d06=_0x2d6d06||Gt(_0x3f4d05);const _0x23d887=_0x152668['map'](_0x1ef93c=>Lt(_0x1ef93c,this['_model'])),_0x51e4b8=_0x512085['is']('range')?_0x565e1a:_0x565e1a['map'](_0x11df8a=>Lt(_0x11df8a,this['_model']));if('never'===this['_trackFormatChanges']){const _0xcef7bc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d6d06,'accept');return this['forceDefaultExecution'](()=>_0xcef7bc(_0x51e4b8,_0x3f4d05,_0x2ff14a)),null;}_0x23d887['push'](..._0x51e4b8);let _0x5b92bc=!0x0;for(const _0xd71014 of _0x23d887)if(!this['_rangeIsInLocalUserInsertion'](_0xd71014)){_0x5b92bc=!0x1;break;}if(_0x5b92bc&&'always'!==this['_trackFormatChanges']){const _0x28b13b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d6d06,'accept');return this['forceDefaultExecution'](()=>_0x28b13b(_0x51e4b8,_0x3f4d05,_0x2ff14a)),null;}const _0x3330ec=this['editor']['plugins']['get']('Users')['me'];for(const _0x2e4297 of this['getSuggestions']()){if(_0x2e4297['author']['id']!=_0x3330ec['id'])continue;if('formatBlock'!=_0x2e4297['type']||_0x2e4297['data']['formatGroupId']!=_0x3f4d05['formatGroupId'])continue;if(!qt(_0x2e4297,_0x2ff14a))continue;const _0x10ade8=_0x2e4297['subType']==_0x2d6d06;for(let _0x357cb2=0x0;_0x357cb2<_0x51e4b8['length'];_0x357cb2++){const _0xd412ff=_0x51e4b8[_0x357cb2];for(const _0x4d04c1 of _0x2e4297['getMarkers']()){const _0x3e97c=_0x4d04c1['getRange']();if(_0xd412ff['isEqual'](_0x3e97c)){_0x10ade8?(_0x51e4b8['splice'](_0x357cb2,0x1),_0x357cb2--):_0x2e4297['removeMarker'](_0x4d04c1['name']);break;}}}}if(0x0==_0x51e4b8['length'])return null;const _0x20cb56=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d6d06,'join');for(const _0x27db81 of this['getSuggestions']())if(_0x27db81['author']['id']==_0x3330ec['id']&&'formatBlock'==_0x27db81['type']&&_0x27db81['data']['formatGroupId']==_0x3f4d05['formatGroupId']&&_0x27db81['subType']==_0x2d6d06&&qt(_0x27db81,_0x2ff14a)&&(_0x20cb56(_0x27db81['getRanges'](),_0x51e4b8)||_0x20cb56(_0x51e4b8,_0x27db81['getRanges']()))){for(const _0x34e6aa of _0x51e4b8)_0x27db81['addRange'](_0x34e6aa);return _0x27db81;}const _0x3ae186=_0x5712c5(),_0x249947=_0x3330ec['id'],_0x562a08='formatBlock:'+_0x2d6d06,_0x49a0b8=this['_setSuggestionData']({'id':_0x3ae186,'type':_0x562a08,'data':_0x3f4d05,'createdAt':new Date(),'authorId':_0x249947,'attributes':_0x2ff14a});for(const _0x1b2044 of _0x51e4b8)this['_addSuggestionMarker'](_0x562a08,_0x3ae186,_0x249947,_0x1b2044,u['getMultiRangeId']());return _0x49a0b8;}['markDeletion'](_0x134836,_0x4ae89c=null,_0x11328b={}){if(_0x134836['isCollapsed'])return null;const _0x311467=this['editor']['plugins']['get']('Users')['me'],_0xfb6dfc=new _0x256351(_0x134836['start'],_0x134836['end']);for(const {suggestion:_0x2f9abf,meta:_0x605700}of this['_findSuggestions'](_0xfb6dfc,'insertion'))if(_0x605700['isOwn']&&!_0x605700['isNextTo']){if(_0x2f9abf['isMultiRange']){const _0x44316f=_0x2f9abf['getRanges']()['filter'](_0x3db62d=>'$graveyard'!=_0x3db62d['root']['rootName']);_0x44316f['every'](_0x473cd8=>_0xfb6dfc['containsRange'](_0x473cd8,!0x0))&&_0x2f9abf['discard']();if(_0x44316f['some'](_0x5bf21f=>_0x5bf21f['containsRange'](_0xfb6dfc,!0x0))){const _0x421bf6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ae89c,'accept');return this['forceDefaultExecution'](()=>_0x421bf6([_0xfb6dfc],null,_0x11328b)),null;}}else{const _0x43a9b6=_0xfb6dfc['getIntersection'](_0x2f9abf['getFirstRange']());null!==_0x43a9b6&&_0x2f9abf['_onDiscard']([_0x43a9b6],null,_0x11328b);}}if(_0xfb6dfc['detach'](),_0xfb6dfc['isCollapsed']||'$graveyard'==_0xfb6dfc['root']['rootName'])return null;let _0x1b25e4=null,_0x47fe46=_0xfb6dfc['start'],_0x14994c=_0xfb6dfc['end'];const _0x53ee17=this['_findSuggestions'](_0xfb6dfc,'deletion');for(const {suggestion:_0x1a23ec,meta:_0x22b9ba}of _0x53ee17){const _0x3bb632=this['_model']['createRange'](_0x47fe46,_0x14994c);if(_0x22b9ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x22b9ba['containsRangeInObject']&&!_0x22b9ba['isInsideObject'])){if(_0x1a23ec['isMultiRange']){if(!qt(_0x1a23ec,_0x11328b))continue;let _0x3f9f5e=!0x0;for(const _0x3b8f73 of _0x1a23ec['getRanges']()){if(_0x3b8f73['containsRange'](_0x3bb632,!0x0))return _0x1a23ec;_0x3bb632['containsRange'](_0x3b8f73)||(_0x3f9f5e=!0x1);}_0x3f9f5e&&_0x1a23ec['discard']();}else{const _0x43202a=_0x1a23ec['getFirstRange']();if(_0x43202a['containsRange'](_0x3bb632,!0x0))return _0x1a23ec;if(!qt(_0x1a23ec,_0x11328b)){_0x3bb632['containsRange'](_0x43202a)?_0x1a23ec['removeMarkers']():_0x43202a['containsPosition'](_0x47fe46)?_0x47fe46=_0x43202a['end']:_0x43202a['containsPosition'](_0x14994c)&&(_0x14994c=_0x43202a['start']);continue;}_0x47fe46=_0x47fe46['isBefore'](_0x43202a['start'])?_0x47fe46:_0x43202a['start'],_0x14994c=_0x14994c['isAfter'](_0x43202a['end'])?_0x14994c:_0x43202a['end'],_0x11328b=Object['assign']({},_0x1a23ec['attributes']),_0x1b25e4?_0x43202a['start']['isBefore'](_0x1b25e4['getFirstRange']()['start'])?(_0x1b25e4['removeMarkers'](),_0x1b25e4=_0x1a23ec):_0x1a23ec['removeMarkers']():_0x1b25e4=_0x1a23ec;}}}if(_0x1b25e4)return this['_setSuggestionRange'](_0x1b25e4,this['_model']['createRange'](_0x47fe46,_0x14994c)),_0x1b25e4;{const _0x41fa07=_0x5712c5(),_0x1d0c93=this['_model']['createRange'](_0x47fe46,_0x14994c),_0x766718=_0x311467['id'],_0x1c91c=_0x4ae89c?'deletion:'+_0x4ae89c:'deletion',_0x5a30b3=this['_setSuggestionData']({'id':_0x41fa07,'type':_0x1c91c,'createdAt':new Date(),'authorId':_0x766718,'attributes':_0x11328b});return this['_addSuggestionMarker'](_0x1c91c,_0x41fa07,_0x766718,_0x1d0c93),_0x5a30b3;}}['markMultiRangeDeletion'](_0x11dcac,_0x2a60b7='multi',_0x2a999b={}){const _0x42a858=this['editor']['plugins']['get']('Users')['me'],_0x317f86=_0x11dcac['map'](_0x39c89f=>new _0x256351(_0x39c89f['start'],_0x39c89f['end'])),_0x27013d=new Set();for(const {suggestion:_0x33ca9d,meta:_0x47e9da}of this['_findSuggestions'](_0x317f86,'insertion'))_0x47e9da['isOwn']&&!_0x47e9da['isNextTo']&&_0x27013d['add'](_0x33ca9d);for(const _0x34bd6a of _0x27013d)if(_0x34bd6a['isMultiRange']){const _0x51d3f2=_0x34bd6a['getRanges']();(!_0x34bd6a['attributes']||!_0x34bd6a['attributes']['skipNestingCheck'])&&(_0x51d3f2['every'](_0x13f131=>_0x317f86['some'](_0x970c6d=>_0x970c6d['containsRange'](_0x13f131,!0x0)))&&_0x34bd6a['discard']());if(_0x317f86['every'](_0x20eb5b=>_0x51d3f2['some'](_0x2d5ff4=>_0x2d5ff4['containsRange'](_0x20eb5b,!0x0)))){const _0x499eb5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a60b7,'accept');return this['forceDefaultExecution'](()=>_0x499eb5(_0x11dcac,null,_0x2a999b)),null;}}else{const _0x1d9cc1=_0x34bd6a['getFirstRange']();_0x317f86['some'](_0x55daa3=>_0x55daa3['containsRange'](_0x1d9cc1,!0x0))&&_0x34bd6a['discard']();if(_0x317f86['every'](_0x1709d4=>_0x1d9cc1['containsRange'](_0x1709d4,!0x0))){const _0x436dd9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a60b7,'accept');return this['forceDefaultExecution'](()=>_0x436dd9(_0x317f86,null,_0x2a999b)),null;}}const _0x420020=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a60b7,'join');let _0x63f652=null;for(const _0xbbd0ea of this['getSuggestions']())if(_0xbbd0ea['author']['id']==_0x42a858['id']&&_0xbbd0ea['isInContent']&&'deletion'==_0xbbd0ea['type']&&_0xbbd0ea['subType']==_0x2a60b7&&qt(_0xbbd0ea,_0x2a999b)&&(_0x420020(_0xbbd0ea['getRanges'](),_0x317f86)||_0x420020(_0x317f86,_0xbbd0ea['getRanges']()))){if(_0x63f652){if(_0xbbd0ea['commentThread']&&_0xbbd0ea['commentThread']['length'])continue;for(const _0x4f6896 of _0xbbd0ea['getRanges']())_0x63f652['isIntersectingWithRange'](_0x4f6896)||_0x63f652['addRange'](_0x4f6896);_0xbbd0ea['removeMarkers']();}else{_0x63f652=_0xbbd0ea;for(const _0x4475ca of _0x317f86)_0xbbd0ea['isIntersectingWithRange'](_0x4475ca)||_0xbbd0ea['addRange'](_0x4475ca);}}if(_0x63f652)return _0x63f652;_0x27013d['clear']();for(const {suggestion:_0x176250,meta:_0x33468a}of this['_findSuggestions'](_0x317f86,'deletion'))_0x33468a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x33468a['containsRangeInObject']&&!_0x33468a['isInsideObject'])&&qt(_0x176250,_0x2a999b)&&_0x27013d['add'](_0x176250);for(const _0x3ef4d0 of _0x27013d){const _0x29fba7=_0x3ef4d0['getRanges']();if(!_0x2a999b||!_0x2a999b['skipNestingCheck']){if(_0x317f86['every'](_0x537ec1=>_0x29fba7['some'](_0xceb8d1=>_0xceb8d1['containsRange'](_0x537ec1,!0x0))))return _0x3ef4d0;}(!_0x3ef4d0['attributes']||!_0x3ef4d0['attributes']['skipNestingCheck'])&&(_0x29fba7['every'](_0xd13b8a=>_0x317f86['some'](_0x11ef34=>_0x11ef34['containsRange'](_0xd13b8a,!0x0)))&&_0x3ef4d0['discard']());}const _0x1528c2=_0x5712c5(),_0x57d2a5=_0x42a858['id'],_0x58eeee='deletion:'+_0x2a60b7,_0xdaaeb1=this['_setSuggestionData']({'id':_0x1528c2,'type':_0x58eeee,'createdAt':new Date(),'authorId':_0x57d2a5,'attributes':_0x2a999b});for(const _0x35f7d6 of _0x317f86)_0x35f7d6['detach'](),_0x35f7d6['isCollapsed']||'$graveyard'==_0x35f7d6['root']['rootName']||this['_addSuggestionMarker'](_0x58eeee,_0x1528c2,_0x57d2a5,_0x35f7d6,u['getMultiRangeId']());return _0xdaaeb1;}['markAttributeChange'](_0x243f19,_0x12d2bf,_0x392ad0,_0x153df9,_0x542e8d){if(_0x243f19['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3acc18=this['editor']['plugins']['get']('Users')['me']['id'],_0x494c66=Array['from'](this['_suggestions']['values']())['filter'](_0x82ea5f=>'attribute'==_0x82ea5f['type']&&_0x82ea5f['data']['key']==_0x12d2bf&&_0x82ea5f['isIntersectingWithRange'](_0x243f19));if('default'===this['_trackFormatChanges']){const _0x32eb32=this['_findSuggestions'](_0x243f19,'insertion')['filter'](({meta:_0x226159})=>_0x226159['isOwn']&&!_0x226159['isInsideObject']&&!_0x226159['isNextTo'])['map'](({suggestion:_0x27e782})=>_0x27e782);_0x494c66['unshift'](..._0x32eb32);}const _0x5b7b73=new Map([[_0x243f19,_0x392ad0]]);for(const _0x112f5c of _0x494c66){const _0x20adbc='attribute'==_0x112f5c['type']?_0x112f5c['data']['oldValue']:void 0x0,_0x31ffc6=_0x112f5c['getFirstRange'](),_0x4faa2d=Array['from'](_0x5b7b73['keys']())['find'](_0x1b4526=>_0x1b4526['isIntersecting'](_0x31ffc6));if(!_0x4faa2d)continue;const _0x3a2072=_0x4faa2d['getDifference'](_0x31ffc6);this['_isBlockAttribute'](_0x12d2bf)&&'insertion'==_0x112f5c['type']&&0x0!=_0x3a2072['length']||(_0x5b7b73['delete'](_0x4faa2d),_0x3a2072['forEach'](_0x28dfbe=>{_0x5b7b73['set'](_0x28dfbe,_0x392ad0);}),'insertion'!=_0x112f5c['type']&&_0x20adbc!=_0x153df9&&_0x5b7b73['set'](_0x4faa2d['getIntersection'](_0x31ffc6),_0x20adbc));}const _0xb235f3=[];for(const [_0x5d39d8,_0x26768b]of _0x5b7b73){const _0x3881b7=_0x5712c5(),_0x41f1b5={'key':_0x12d2bf,'oldValue':_0x26768b,'newValue':_0x153df9};_0x12d2bf['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x12d2bf});const _0xdb6e3e=('attribute:'+(_0x12d2bf+'|'+Gt({'newValue':_0x153df9})))['substring'](0x0,0x3c),_0x3149bf=this['_setSuggestionData']({'id':_0x3881b7,'type':_0xdb6e3e,'data':_0x41f1b5,'createdAt':new Date(),'authorId':_0x3acc18,'attributes':_0x542e8d});_0xb235f3['push'](_0x3149bf),this['_addSuggestionMarker'](_0xdb6e3e,_0x3881b7,_0x3acc18,_0x5d39d8);}return _0xb235f3;}['enableDefaultAttributesIntegration'](_0x5e8db7){this['enableCommand'](_0x5e8db7,(_0x3ae6fe,..._0x38f89f)=>{this['_recordAttributeChanges'](()=>{_0x3ae6fe(..._0x38f89f);});});}['registerBlockAttribute'](_0x6e1c93){this['_blockAttributeKeys']['add'](_0x6e1c93);}['registerInlineAttribute'](_0x2ba0ef){this['_inlineAttributeKeys']['add'](_0x2ba0ef);}['_getAttributeKey'](_0x4e515d){return'attribute'==_0x4e515d['type']?_0x4e515d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x21118f,_0x339162){const _0x665c6f=_0x21118f['getFirstMarker']();this['_model']['change'](_0x1ea530=>{_0x1ea530['updateMarker'](_0x665c6f,{'range':_0x339162});});}['_addThreadToSuggestion'](_0x23962c){const _0x3f134f=_0x23962c['id'],_0x43cb9a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3f134f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x43cb9a,'threadId':_0x3f134f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5975f5=this['_commentsRepository']['getCommentThread'](_0x3f134f);_0x5975f5['unbind']('isRemovable'),_0x5975f5['isRemovable']=!0x1,_0x23962c['commentThread']=_0x5975f5;}['_checkSuggestionCorrectness'](_0x4249b3,_0x501351,_0x109047,_0x2c98ff){if(_0x4249b3['type']!=_0x501351||_0x4249b3['subType']!=_0x109047||_0x4249b3['creator']['id']!=_0x2c98ff)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3cf7af('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2697b3,_0xc5945c){const _0x272eb7=_0x2697b3['getFirstRange']();if(_0xc5945c['isEqual'](_0x272eb7))_0x2697b3['removeMarkers']();else{if(_0x272eb7['containsRange'](_0xc5945c)){const _0xa50292=this['_model']['createPositionAt'](_0xc5945c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2697b3,this['_model']['createRange'](_0x272eb7['start'],_0xa50292));const _0x10499c=_0x5712c5(),_0x18ac9e=_0x2697b3['creator']['id'],_0xb3b412=_0x2697b3['type']+':'+_0x2697b3['subType'];this['_setSuggestionData']({'id':_0x10499c,'type':_0xb3b412,'createdAt':new Date(),'authorId':_0x18ac9e,'data':_0x2697b3['data'],'attributes':_0x2697b3['attributes']});const _0x32c19f=this['_model']['createPositionAt'](_0xc5945c['end']['parent'],'after'),_0x54c813=this['_model']['createRange'](_0x32c19f,_0x272eb7['end']);this['_addSuggestionMarker'](_0xb3b412,_0x10499c,_0x18ac9e,_0x54c813);}else{if(_0x272eb7['containsPosition'](_0xc5945c['start'])){const _0x4d6bc0=this['_model']['createPositionAt'](_0xc5945c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2697b3,this['_model']['createRange'](_0x272eb7['start'],_0x4d6bc0));}else{const _0xdfc6a1=this['_model']['createPositionAt'](_0xc5945c['end']['parent'],'after');this['_setSuggestionRange'](_0x2697b3,this['_model']['createRange'](_0xdfc6a1,_0x272eb7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x44823a){for(const {suggestion:_0x1da993,meta:_0x1a8e27}of this['_findSuggestions'](_0x44823a,'insertion')){if(!_0x1a8e27['isOwn'])continue;const _0x2599fe=_0x1da993['getRanges']();for(const _0x44fd0f of _0x2599fe)if(!_0x44823a['getDifference'](_0x44fd0f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4d110a){const _0x3576fd=this['editor']['plugins']['get']('Users')['getUser'](_0x4d110a);if(!_0x3576fd)throw new _0x3cf7af('track-changes-user-not-found',this);return _0x3576fd;}['_getExternalAuthor'](_0x325397){const _0x552cb5=this['editor']['plugins']['get']('Users'),_0x30e4c2=_0x2b781c('external:'+_0x325397),_0x1322d5=_0x552cb5['getUser'](_0x30e4c2);return _0x1322d5||_0x552cb5['addUser']({'id':_0x30e4c2,'name':_0x325397});}['_createSuggestion'](_0x2f365c,_0x4b4542,_0x1b9fa7,_0x579b8a,_0x41595c){const _0x5457e8=this['_getAuthorFromId'](_0x579b8a),_0x5432bd=this['_suggestionFactory']['buildSuggestion'](_0x2f365c,_0x4b4542,_0x1b9fa7,_0x5457e8,_0x41595c,_0x330138=>{this['_updateSuggestionData'](_0x1b9fa7,{'attributes':_0x330138});const _0xfc0b5=this['getSuggestion'](_0x1b9fa7);this['_joinWithAdjacentSuggestions'](new Set([_0xfc0b5])),this['_refreshSuggestionsChain'](new Set([_0xfc0b5]));});return this['listenTo'](_0x5432bd,'accept',()=>{this['_updateSuggestionData'](_0x1b9fa7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5432bd,'discard',()=>{this['_updateSuggestionData'](_0x1b9fa7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1b9fa7,_0x5432bd),this['_suggestionState']['set'](_0x5432bd,'notReady'),_0x5432bd;}['_splitMarkerName'](_0x2d2174){const _0x5006b3=_0x2d2174['split'](':');return{'group':_0x5006b3[0x0],'type':_0x5006b3[0x1],'subType':_0x5006b3['length']>=0x5?_0x5006b3[0x2]:null,'id':_0x5006b3['length']<0x5?_0x5006b3[0x2]:_0x5006b3[0x3],'authorId':_0x5006b3['length']<0x5?_0x5006b3[0x3]:_0x5006b3[0x4],'markerCount':0x6==_0x5006b3['length']?_0x5006b3[0x5]:null};}['_breakSuggestionMarker'](_0x2aca3f,_0x334d16,_0x5eb6e5){const _0x54e4d1=_0x2aca3f['getFirstRange'](),_0x5d3781=_0x54e4d1['start'],_0xb6e8ec=_0x54e4d1['end'];this['_setSuggestionRange'](_0x2aca3f,this['_model']['createRange'](_0x5d3781,_0x334d16));const _0x14285f=_0x5712c5(),_0xad71d0=_0x2aca3f['creator']['id'],_0x523028=_0x2aca3f['type']+(_0x2aca3f['subType']?':'+_0x2aca3f['subType']:'');this['_setSuggestionData']({'id':_0x14285f,'type':_0x523028,'createdAt':new Date(),'authorId':_0xad71d0,'originalSuggestionId':_0x2aca3f['id'],'attributes':_0x2aca3f['attributes'],'data':_0x2aca3f['data']});const _0x2d0009=this['_getAttributeKey'](_0x2aca3f);('formatBlock'==_0x2aca3f['type']||_0x2d0009&&this['_isBlockAttribute'](_0x2d0009))&&(_0x5eb6e5=this['_model']['createPositionBefore'](_0x5eb6e5['parent'])),this['_addSuggestionMarker'](_0x523028,_0x14285f,_0xad71d0,this['_model']['createRange'](_0x5eb6e5,_0xb6e8ec));}['_findSuggestions'](_0x158f19,_0x1e1c57=null){const _0x5cae1f=[],_0x6c2ac7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x158f19)||(_0x158f19=[_0x158f19]);for(const _0x190e58 of this['getSuggestions']()){if(!_0x190e58['isInContent'])continue;if(_0x1e1c57&&_0x190e58['type']!=_0x1e1c57)continue;let _0x2b4f5d=!0x1;for(const _0x2a9df6 of _0x190e58['getRanges']()){for(const _0x44b1b5 of _0x158f19){const _0x269988=_0x44b1b5['start']['isEqual'](_0x2a9df6['end'])||_0x44b1b5['end']['isEqual'](_0x2a9df6['start']);if(_0x269988||_0x44b1b5['getIntersection'](_0x2a9df6)){const _0x30c588=_0x44b1b5['containsRange'](_0x2a9df6)&&Ot(this['_model']['schema'],_0x2a9df6['start'],_0x44b1b5),_0x25dc2a=_0x2a9df6['containsRange'](_0x44b1b5)&&Ot(this['_model']['schema'],_0x44b1b5['start'],_0x2a9df6);_0x5cae1f['push']({'suggestion':_0x190e58,'meta':{'isOwn':_0x6c2ac7==_0x190e58['author'],'isNextTo':_0x269988,'isInsideObject':_0x30c588,'containsRangeInObject':_0x25dc2a}}),_0x2b4f5d=!0x0;break;}}if(_0x2b4f5d)break;}}return _0x5cae1f;}['_addSuggestionMarker'](_0x4ec109,_0x240171,_0x5b18ad,_0x3ee1f7,_0x4a3645){this['_model']['change'](_0x3b2067=>{let _0xd82f1d='suggestion:'+_0x4ec109+':'+_0x240171+':'+_0x5b18ad;_0x4a3645&&(_0xd82f1d=_0xd82f1d+':'+_0x4a3645),_0x3b2067['addMarker'](_0xd82f1d,{'range':_0x3ee1f7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x6fc76a){const _0x2b56e8=_0x6fc76a['previous'],_0x59abb7=_0x6fc76a['next'];_0x6fc76a['previous']=null,_0x6fc76a['next']=null,null!=_0x2b56e8&&_0x2b56e8['next']==_0x6fc76a&&(_0x2b56e8['next']=_0x59abb7),null!=_0x59abb7&&_0x59abb7['previous']==_0x6fc76a&&(_0x59abb7['previous']=_0x2b56e8),'ready'==this['_suggestionState']['get'](_0x6fc76a)&&(this['_suggestionState']['set'](_0x6fc76a,'removed'),this['fire']('suggestionUnloaded',_0x6fc76a,_0x2b56e8,_0x59abb7));}['_setSuggestionData'](_0x151655){const _0x1eb1a0=_0x151655['id'],_0x3f405f=this['addSuggestionData'](_0x151655);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x268e6c=this['editor']['plugins']['get']('PendingActions'),_0x2a2503=_0x3f405f['hasComments'],_0x404d64=_0x3f405f['subType']?_0x3f405f['type']+':'+_0x3f405f['subType']:_0x3f405f['type'],_0x5f20b9=this['editor']['locale'],_0x378e9f=_0x268e6c['add'](o(_0x5f20b9,'PENDING_ACTION_SUGGESTION')),_0x508e51={'id':_0x1eb1a0,'type':_0x404d64,'hasComments':_0x2a2503,'data':_0x151655['data']||null,'originalSuggestionId':_0x151655['originalSuggestionId']||null,'attributes':_0x3f405f['attributes']};this['_adapter']['addSuggestion'](_0x508e51)['then'](_0x5ac7fb=>{_0x3f405f['_saved']=!0x0,_0x268e6c['remove'](_0x378e9f),_0x5ac7fb&&_0x5ac7fb['createdAt']&&(this['_suggestions']['get'](_0x1eb1a0)['createdAt']=_0x5ac7fb['createdAt']);})['catch'](_0x2d37a1=>{throw _0x4c5c40('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3f405f['discard']();}),_0x3f405f['stopListening'](),this['_suggestions']['delete'](_0x3f405f['id']),this['_suggestionState']['delete'](_0x3f405f),_0x2d37a1;});}return _0x3f405f;}['_isBlockAttribute'](_0x2465a0){return this['_blockAttributeKeys']['has'](_0x2465a0);}['_updateSuggestionData'](_0x2fd946,_0x45c395){const _0x39b123=this['editor']['plugins']['get']('PendingActions'),_0x54aef7=this['getSuggestion'](_0x2fd946);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x54aef7['_saved']){const _0x4621dc=_0x39b123['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2fd946,_0x45c395)['then'](()=>{_0x39b123['remove'](_0x4621dc);});}else _0x54aef7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2fd946,_0x45c395);});}}['_getSuggestionData'](_0x38af62){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3cf7af('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x38af62);}['_handleNewSuggestionMarker'](_0x1c3257){const {id:_0x2f6106,type:_0x51c609,subType:_0x5dd9f8,authorId:_0x9526a4}=this['_splitMarkerName'](_0x1c3257),_0xc76530=this['_suggestions']['get'](_0x2f6106)||this['_createSuggestion'](_0x51c609,_0x5dd9f8,_0x2f6106,_0x9526a4,{});switch(this['_checkSuggestionCorrectness'](_0xc76530,_0x51c609,_0x5dd9f8,_0x9526a4),this['_suggestionState']['get'](_0xc76530)){case'notReady':this['_getSuggestionData'](_0x2f6106)['then'](_0x5501c4=>{let _0x243c7e=Promise['resolve']();_0x5501c4['hasComments']&&(_0x243c7e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2f6106})),_0x243c7e['then'](()=>{this['addSuggestionData'](_0x5501c4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xc76530,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2f6106,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xc76530,'ready'),this['fire']('suggestionLoaded',_0xc76530);break;case'ready':this['fire']('suggestionChanged',_0xc76530);}return _0xc76530['addMarkerName'](_0x1c3257),_0xc76530;}['_refreshSuggestionsChain'](_0xd5e04b){const _0x3228e4=Array['from'](_0xd5e04b),_0x10da43=_0x3228e4['filter'](_0x45134e=>'attribute'==_0x45134e['type']);this['_refreshAttributeSuggestionsChain'](_0x10da43);const _0xf248ba=_0x3228e4['filter'](_0x304926=>!_0x304926['isMultiRange']&&'attribute'!=_0x304926['type']),_0x28cad9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13b172=>!_0x13b172['isMultiRange']&&'attribute'!=_0x13b172['type']),_0x58a461=_0x28cad9['filter'](_0x5b8520=>!_0xd5e04b['has'](_0x5b8520)),_0x596e2a=new Map(_0x28cad9['map'](_0x363267=>[_0x363267,this['_suggestionFactory']['getSuggestionCallback'](_0x363267['type'],_0x363267['subType'],'chain')])),_0x512350=new Map(_0x28cad9['map'](_0x50f9a1=>[_0x50f9a1,_0x50f9a1['getFirstRange']()])),_0x37df6e=new Set(),_0x3fa068=new Set();for(let _0x5a3214=0x0;_0x5a3214<_0xf248ba['length'];_0x5a3214++)_0x29651e(_0xf248ba[_0x5a3214],_0xf248ba,_0x5a3214+0x1);for(let _0x234d0a=0x0;_0x234d0a<_0xf248ba['length'];_0x234d0a++)_0x29651e(_0xf248ba[_0x234d0a],_0x58a461,0x0);const _0x5796c6=new Set();for(let _0x1302f6=0x0;_0x1302f6<_0xf248ba['length'];_0x1302f6++){const _0x44c313=_0xf248ba[_0x1302f6];!_0x3fa068['has'](_0x44c313)&&_0x44c313['previous']&&(_0x5796c6['add'](_0x44c313['previous']),_0x44c313['previous']['next']===_0x44c313&&(_0x44c313['previous']['next']=null),_0x44c313['previous']=null),!_0x37df6e['has'](_0x44c313)&&_0x44c313['next']&&(_0x5796c6['add'](_0x44c313['next']),_0x44c313['next']['previous']===_0x44c313&&(_0x44c313['next']['previous']=null),_0x44c313['next']=null);}function _0x29651e(_0x225ed5,_0x1fc4e3,_0x3bfedc){for(let _0x49cef9=_0x3bfedc;_0x49cef9<_0x1fc4e3['length'];_0x49cef9++){const _0x50e45c=_0x14394d(_0x225ed5,_0x1fc4e3[_0x49cef9]);_0x50e45c&&(_0x50e45c[0x0]['next']=_0x50e45c[0x1],_0x50e45c[0x1]['previous']=_0x50e45c[0x0],_0x37df6e['add'](_0x50e45c[0x0]),_0x3fa068['add'](_0x50e45c[0x1]));}}function _0x14394d(_0x23f420,_0x3a1921){if(_0x23f420['author']['id']!==_0x3a1921['author']['id'])return null;const _0x3f1218=_0x596e2a['get'](_0x23f420)(_0x23f420,_0x3a1921,_0x512350['get'](_0x23f420),_0x512350['get'](_0x3a1921));if(!_0x3f1218)return null;return _0x596e2a['get'](_0x3a1921)(_0x23f420,_0x3a1921,_0x512350['get'](_0x23f420),_0x512350['get'](_0x3a1921))?_0x3f1218[0x1]['commentThread']&&_0x3f1218[0x1]['commentThread']['length']?null:_0x3f1218:null;}_0x5796c6['size']&&this['_refreshSuggestionsChain'](_0x5796c6);}['_refreshAttributeSuggestionsChain'](_0xfff727){if(0x0==_0xfff727['length'])return;const _0x191d6f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x60e43d=>'attribute'==_0x60e43d['type']&&_0x60e43d['_isDataLoaded']),_0xe2dfa4=[],_0x51314a=new Map();for(const _0x2d5f0d of _0x191d6f){const _0x47e660=_0x2b781c(_0x2d5f0d['attributes']);_0x51314a['has'](_0x47e660)||(_0x51314a['set'](_0x47e660,_0xe2dfa4['length']),_0xe2dfa4['push']([]));const _0x1b4e06=_0x51314a['get'](_0x47e660);_0xe2dfa4[_0x1b4e06]['push'](_0x2d5f0d);}!(function(){_0xe2dfa4['sort']((_0x472a35,_0x4d4b2d)=>{const _0x2f83f7=_0x472a35[0x0]['createdAt'],_0x7c9cac=_0x4d4b2d[0x0]['createdAt'];return _0x2f83f7==_0x7c9cac?_0x472a35[0x0]['attributes']['groupId']<_0x4d4b2d[0x0]['attributes']['groupId']?-0x1:0x1:_0x2f83f7<_0x7c9cac?-0x1:0x1;});for(const _0x98f2c of _0xe2dfa4)_0x98f2c['sort']((_0x43e348,_0x74652c)=>_0x43e348['id']<_0x74652c['id']?-0x1:0x1);}());for(let _0x274931=0x0;_0x274931<_0xe2dfa4['length'];_0x274931++){if(0x0==_0xe2dfa4[_0x274931]['length'])continue;const _0x9cc33e=[];for(let _0x5099c2=_0x274931+0x1;_0x5099c2<_0xe2dfa4['length'];_0x5099c2++)0x0!=_0xe2dfa4[_0x5099c2]['length']&&_0x46c6cf(_0xe2dfa4[_0x274931],_0xe2dfa4[_0x5099c2])&&_0x9cc33e['push'](_0x5099c2);for(const _0x560621 of _0x9cc33e)_0xe2dfa4[_0x274931]=_0xe2dfa4[_0x274931]['concat'](_0xe2dfa4[_0x560621]),_0xe2dfa4[_0x560621]=[];}for(const _0x420d03 of _0xe2dfa4)for(let _0x1b50e2=0x0;_0x1b50e2<_0x420d03['length'];_0x1b50e2++){const _0x2cbc90=_0x420d03[_0x1b50e2+0x1]||null;_0x420d03[_0x1b50e2]['next']!==_0x2cbc90&&(_0x420d03[_0x1b50e2]['next']=_0x2cbc90);}for(const _0x5c100a of _0xe2dfa4)for(let _0x58fe7f=0x0;_0x58fe7f<_0x5c100a['length'];_0x58fe7f++){const _0x4062f3=_0x5c100a[_0x58fe7f-0x1]||null;_0x5c100a[_0x58fe7f]['previous']!==_0x4062f3&&(_0x5c100a[_0x58fe7f]['previous']=_0x4062f3);}function _0x46c6cf(_0x165b02,_0x1c111c){if(_0x165b02[0x0]['attributes']['groupId']!==_0x1c111c[0x0]['attributes']['groupId']&&_0x165b02[0x0]['author']!==_0x1c111c[0x0]['author'])return!0x1;if(!function(_0x2c7500,_0x1c1d8f){if(!_0x2c7500['hasComments']&&!_0x1c1d8f['hasComments'])return!0x0;if(_0x2c7500['hasComments']&&_0x1c1d8f['hasComments'])return!0x1;if(_0x2c7500['hasComments']&&_0x1c1d8f['createdAt']<_0x2c7500['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1c1d8f['hasComments']&&_0x2c7500['createdAt']<_0x1c1d8f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x165b02[0x0],_0x1c111c[0x0]))return!0x1;const _0x31cb6a=Tt(_0x165b02[0x0]['attributes'],'groupId'),_0x5ebe01=Tt(_0x1c111c[0x0]['attributes'],'groupId');if(!_0x144ebc(_0x31cb6a,_0x5ebe01))return!0x1;return!!_0x165b02['every'](_0x201e06=>_0x1c111c['some'](_0x25c162=>_0x201e06['getFirstRange']()['isEqual'](_0x25c162['getFirstRange']())))&&_0x1c111c['every'](_0xd95757=>_0x165b02['some'](_0x467b4f=>_0xd95757['getFirstRange']()['isEqual'](_0x467b4f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4c9447){const _0x48e98e=Array['from'](_0x4c9447),_0x2e1c8f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1977ec=_0x2e1c8f['filter'](_0xca078=>!_0x4c9447['has'](_0xca078)),_0x147f4b=new Map(_0x48e98e['map'](_0x10c145=>[_0x10c145,this['_suggestionFactory']['getSuggestionCallback'](_0x10c145['type'],_0x10c145['subType'],'join')])),_0x405e0c=new Map(_0x2e1c8f['map'](_0x2ea74d=>[_0x2ea74d,_0x2ea74d['getRanges']()]));for(let _0x555bf9=0x0;_0x555bf9<_0x48e98e['length'];_0x555bf9++){if(_0x220db7(this,_0x48e98e[_0x555bf9],_0x48e98e,_0x555bf9+0x1))return!0x0;}for(let _0x1fb5c9=0x0;_0x1fb5c9<_0x48e98e['length'];_0x1fb5c9++){if(_0x220db7(this,_0x48e98e[_0x1fb5c9],_0x1977ec,0x0))return!0x0;}return!0x1;function _0x220db7(_0x4ccb7c,_0x9f29dc,_0x52f7c3,_0x2216a0){for(let _0x17da2f=_0x2216a0;_0x17da2f<_0x52f7c3['length'];_0x17da2f++){const _0x26daab=_0x52f7c3[_0x17da2f];if(_0x26daab['type']!==_0x9f29dc['type']||_0x26daab['author']['id']!==_0x9f29dc['author']['id']||_0x26daab['subType']!==_0x9f29dc['subType'])continue;if(!Jt(_0x9f29dc,_0x26daab))continue;if('attribute'==_0x9f29dc['type']&&_0x9f29dc['data']['oldValue']!=_0x26daab['data']['oldValue'])continue;if('attribute'==_0x9f29dc['type']&&_0x4ccb7c['_isBlockAttribute'](_0x9f29dc['data']['key']))continue;if('formatBlock'==_0x9f29dc['type']){const _0x1eb013=_0x4ccb7c['editor']['model'],_0xda87d9=_0x9f29dc['getContainedElement']();if(_0xda87d9&&(_0x1eb013['schema']['isObject'](_0xda87d9)||_0x1eb013['schema']['isLimit'](_0xda87d9)))continue;}const _0x5ba656=_0x147f4b['get'](_0x9f29dc),_0x4c1342=_0x405e0c['get'](_0x9f29dc),_0x2d3320=_0x405e0c['get'](_0x26daab),_0x12398d=_0x9f29dc['commentThread']&&_0x9f29dc['commentThread']['length'],_0x2a200e=_0x26daab['commentThread']&&_0x26daab['commentThread']['length'];if(!_0x12398d&&_0x5ba656(_0x2d3320,_0x4c1342))return _0x4ccb7c['_joinSuggestions'](_0x26daab,_0x9f29dc),_0x405e0c['delete'](_0x9f29dc),!0x0;if(!_0x2a200e&&_0x5ba656(_0x4c1342,_0x2d3320))return _0x4ccb7c['_joinSuggestions'](_0x9f29dc,_0x26daab),_0x405e0c['delete'](_0x26daab),!0x0;}return!0x1;}}['_joinSuggestions'](_0x28cb03,_0x59d1bb){if(_0x28cb03['isMultiRange']){for(const _0x359a86 of _0x59d1bb['getRanges']())_0x28cb03['addRange'](_0x359a86);}else{const _0x3ec362=_0x59d1bb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x28cb03,this['_model']['createRange'](_0x28cb03['getFirstRange']()['start'],_0x3ec362));}_0x59d1bb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2daa6d,_0x56ee70,_0x1ff449){const _0x189bbf=_0x2daa6d['startsWith']('format')||_0x2daa6d['startsWith']('attribute')?'FORMATTING':_0x2daa6d['toUpperCase']();return o(this['editor']['locale'],_0x56ee70+'_'+_0x189bbf+'_SUGGESTION_ANNOUNCEMENT',_0x1ff449);}['_initAriaMarkerChangeAnnouncements'](){const _0x493e46=this['editor'];if(!_0x493e46['ui'])return;const {ariaLiveAnnouncer:_0xe767bf}=_0x493e46['ui'];_0x13d92a(this['_model'],({left:_0x85ada1,entered:_0x377324})=>{for(const _0x20a84d of _0x85ada1){const {group:_0x1282cb,type:_0x6f3d9e}=this['_splitMarkerName'](_0x20a84d['name']);if('suggestion'===_0x1282cb){_0xe767bf['announce'](this['_getMarkerAnnouncementText'](_0x6f3d9e,'LEAVE'));break;}}for(const _0x46eb6b of _0x377324){const {group:_0x5b67b2,type:_0x8edeb5}=this['_splitMarkerName'](_0x46eb6b['name']);if('suggestion'===_0x5b67b2){_0xe767bf['announce'](this['_getMarkerAnnouncementText'](_0x8edeb5,'ENTER',_0x327b72(_0x4fffa1)));break;}}});}['_processAttributeChanges'](_0x56a617){if(this['_recordAttributeSuggestions'])return!0x1;const _0x48653a=this['editor'],_0x576120=_0x48653a['model']['document']['differ']['getChanges']();if(0x0==_0x576120['length'])return!0x1;const _0x5564e0=[],_0x2e639d=_0x576120['filter'](_0x56b6f1=>'attribute'==_0x56b6f1['type']),_0x47c93d=_0x576120['filter'](_0x24660c=>'insert'==_0x24660c['type']&&'$text'!=_0x24660c['name']),_0x35a557=_0x576120['filter'](_0x17d292=>'remove'==_0x17d292['type']&&'$text'!=_0x17d292['name']);for(const _0x2183e1 of _0x2e639d)_0x5564e0['push']({'key':_0x2183e1['attributeKey'],'newValue':_0x2183e1['attributeNewValue'],'oldValue':_0x2183e1['attributeOldValue'],'range':Pt(_0x2183e1['range'],_0x48653a['model'])});for(const _0x573c2c of _0x47c93d){const _0x38f494=_0x35a557['find'](_0xd39e1c=>_0xd39e1c['position']['isEqual'](_0x573c2c['position']));_0x38f494&&_0x5564e0['push']({'key':m,'newValue':_0x573c2c['name'],'oldValue':_0x38f494['name'],'range':_0x48653a['model']['createRangeOn'](_0x573c2c['position']['nodeAfter'])});}return 0x0!=_0x5564e0['length']&&this['_reduceExistingSuggestions'](_0x56a617,_0x5564e0);}['_processAttributeSuggestions'](_0x2b7f13){let _0x28ff8b=!0x1;const _0x28f39f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4508b4=>_0x4508b4['data']['newRange']&&_0x4508b4['name']['startsWith']('suggestion:attribute:'));for(const _0x41249f of _0x28f39f){const {subType:_0x4ed171,id:_0x304f73}=this['_splitMarkerName'](_0x41249f['name']),_0x1e98ce=_0x4ed171['split']('|')[0x0];for(const _0x89e1fe of this['getSuggestions']({'skipNotAttached':!0x0}))_0x89e1fe['id']!=_0x304f73&&'attribute'==_0x89e1fe['type']&&_0x89e1fe['data']&&_0x89e1fe['data']['key']==_0x1e98ce&&_0x89e1fe['getFirstRange']()['isIntersecting'](_0x41249f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x89e1fe,_0x41249f['data']['newRange'],_0x2b7f13),_0x28ff8b=!0x0);}return _0x28ff8b;}['_recordAttributeChanges'](_0x4cef88){this['_recordAttributeSuggestions']=!0x0,_0x4cef88();}['_isRegisteredAttribute'](_0x17ca0e){const _0x71ea0d=this['_isBlockAttribute'](_0x17ca0e),_0x278644=this['_inlineAttributeKeys']['has'](_0x17ca0e);return _0x71ea0d||_0x278644;}['_reduceExistingSuggestions'](_0x3d290a,_0x4a81b5){if(0x0==_0x4a81b5['length'])return!0x1;let _0x345094=!0x1;for(const _0x5acd8a of _0x4a81b5){const _0x48b188=this['_findSuggestions'](_0x5acd8a['range'],'attribute')['filter'](_0x4cae30=>!_0x4cae30['meta']['isNextTo'])['map'](_0x1070d9=>_0x1070d9['suggestion']),_0xb4632d=_0x2b781c({'newValue':_0x5acd8a['newValue']});_0x48b188['filter'](_0x3e10b8=>{const [_0x103a5a,_0x12a8a2]=_0x3e10b8['subType']['split']('|');return _0x103a5a==_0x5acd8a['key']&&_0x12a8a2!=_0xb4632d;})['forEach'](_0x508174=>{this['_reduceSuggestionAttributeRange'](_0x508174,_0x5acd8a['range'],_0x3d290a),_0x345094=!0x0;});}return _0x345094;}['_reduceSuggestionAttributeRange'](_0x3700e7,_0x5bcf65,_0x16b524){const _0x3165fb=_0x3700e7['getFirstRange']()['getDifference'](_0x5bcf65);0x0!==_0x3165fb['length']?0x1!==_0x3165fb['length']?this['_breakSuggestionMarker'](_0x3700e7,_0x5bcf65['start'],_0x5bcf65['end']):this['_setSuggestionRange'](_0x3700e7,_0x3165fb[0x0]):_0x16b524['removeMarker'](_0x3700e7['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x20344e){this['_editor']=_0x20344e,this['_model']=_0x20344e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x36a611,_0x452f8c,_0x52bb62,_0x5a9f78,_0x17a2cb,_0x58e8a2){return new u(this['_model'],{'type':_0x36a611,'subType':_0x452f8c,'id':_0x52bb62,'author':_0x5a9f78,'creator':_0x5a9f78,'attributes':_0x17a2cb,'onAttributesChange':_0x58e8a2,'onAccept':(..._0x4d8b71)=>this['getSuggestionCallback'](_0x36a611,_0x452f8c,'accept')(..._0x4d8b71),'onDiscard':(..._0x547cef)=>this['getSuggestionCallback'](_0x36a611,_0x452f8c,'discard')(..._0x547cef)});}['registerCustomCallback'](_0x341abc,_0x54c8b4,_0x557394,_0x1cf5fb){const _0xb6964b=_0x341abc+':'+_0x54c8b4+':'+_0x557394;this['_customCallbacks']['set'](_0xb6964b,_0x1cf5fb);}['getSuggestionCallback'](_0xed887f,_0x10748e,_0x14859c){const _0x13d4f3=_0xed887f+':'+_0x10748e+':'+_0x14859c;return this['_customCallbacks']['get'](_0x13d4f3)||this['_defaultCallbacks']['get'](_0xed887f+':'+_0x14859c);}['_registerDefaultCallbacks'](){const _0x38fbea=()=>!0x1,_0x573ee8=_0x59cffe=>{_0x59cffe['sort']((_0x147ad4,_0x3845bc)=>_0x147ad4['start']['isBefore'](_0x3845bc['start'])?0x1:-0x1),this['_model']['change'](_0xc3f91=>{for(const _0x52f4c2 of _0x59cffe){let _0x2a0652;_0x2a0652=_0x52f4c2['end']['isAtEnd']&&_0x52f4c2['end']['parent']==_0x52f4c2['start']['nodeAfter']?_0xc3f91['createSelection'](_0x52f4c2['start']['nodeAfter'],'on'):_0xc3f91['createSelection'](_0x52f4c2),this['_model']['deleteContent'](_0x2a0652,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4941eb=(_0x1dfc9d,_0x39353f)=>{_0x39353f&&this['_model']['change'](_0x526c9d=>{const {commandName:_0x3af5bc,commandParams:_0x35df4c=[]}=_0x39353f,_0x54f0b2=_0x1dfc9d['map'](_0x22b2b2=>(Vt(_0x22b2b2)&&(_0x22b2b2=this['_model']['createRange'](_0x22b2b2['end'])),_0x22b2b2))['filter'](_0x55b328=>'$graveyard'!==_0x55b328['root']['rootName']);if(_0x54f0b2['length']<0x1)return;const _0x28974a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3a0317=>_0x256351['fromRange'](_0x3a0317));_0x526c9d['setSelection'](_0x54f0b2);for(const _0x2af2a5 of this['_editor']['commands']['commands']())_0x2af2a5['refresh']();_0x35df4c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3af5bc,..._0x35df4c);const _0x14051e=_0x28974a['filter'](_0x488b0c=>'$graveyard'!=_0x488b0c['root']['rootName']);_0x14051e['length']>0x0&&_0x526c9d['setSelection'](_0x14051e);for(const _0x1e8554 of _0x28974a)_0x1e8554['detach']();});},_0x1fd232=(_0x585404,_0x521068)=>0x1==_0x585404['length']&&0x1==_0x521068['length']&&_0x585404[0x0]['end']['isEqual'](_0x521068[0x0]['start']),_0x1055f8=(_0x36ce13,_0x180aa3,_0x43f72d,_0x417c69)=>Ht(_0x36ce13,_0x180aa3,_0x43f72d,_0x417c69,this['_model'])?[_0x36ce13,_0x180aa3]:Ht(_0x180aa3,_0x36ce13,_0x417c69,_0x43f72d,this['_model'])?[_0x180aa3,_0x36ce13]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x38fbea),this['_defaultCallbacks']['set']('insertion:discard',_0x573ee8),this['_defaultCallbacks']['set']('insertion:join',_0x1fd232),this['_defaultCallbacks']['set']('insertion:chain',_0x1055f8),this['_defaultCallbacks']['set']('deletion:accept',_0x573ee8),this['_defaultCallbacks']['set']('deletion:discard',_0x38fbea),this['_defaultCallbacks']['set']('deletion:join',_0x1fd232),this['_defaultCallbacks']['set']('deletion:chain',_0x1055f8),this['_defaultCallbacks']['set']('formatInline:accept',_0x4941eb),this['_defaultCallbacks']['set']('formatInline:discard',_0x38fbea),this['_defaultCallbacks']['set']('formatInline:join',_0x1fd232),this['_defaultCallbacks']['set']('formatInline:chain',_0x38fbea),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4941eb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x38fbea),this['_defaultCallbacks']['set']('formatBlock:join',_0x1fd232),this['_defaultCallbacks']['set']('formatBlock:chain',_0x38fbea),this['_defaultCallbacks']['set']('attribute:accept',_0x38fbea),this['_defaultCallbacks']['set']('attribute:discard',(_0x1dbc41,_0x301140)=>{if(!_0x301140)return;const _0x32d84b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1d5544=>{if(_0x301140['key']==m)for(const _0x3ab671 of _0x1dbc41){const _0x3fd2a2=_0x3ab671['start']['nodeAfter'],_0x4182c4=_0x301140['oldValue'];_0x1d5544['rename'](_0x3fd2a2,_0x4182c4);}else{if(_0x32d84b['_isBlockAttribute'](_0x301140['key'])){for(const _0x552144 of _0x1dbc41)void 0x0!==_0x301140['oldValue']?_0x1d5544['setAttribute'](_0x301140['key'],_0x301140['oldValue'],_0x552144['start']['nodeAfter']):_0x1d5544['removeAttribute'](_0x301140['key'],_0x552144['start']['nodeAfter']);}else{for(const _0x51fe97 of _0x1dbc41)_0x301140['oldValue']?_0x1d5544['setAttribute'](_0x301140['key'],_0x301140['oldValue'],_0x51fe97):_0x1d5544['removeAttribute'](_0x301140['key'],_0x51fe97);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1fd232);}}function Ot(_0x179130,_0xbcccef,_0x1432d4){for(const _0x6cf91 of _0xbcccef['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x6cf91['root']==_0x6cf91)return!0x1;if(!_0x1432d4['containsItem'](_0x6cf91))return!0x1;if(_0x179130['isObject'](_0x6cf91)||_0x179130['isLimit'](_0x6cf91))return!0x0;}return!0x1;}function Vt(_0x504c4e){return _0x504c4e['end']['parent']==_0x504c4e['start']['nodeAfter']&&_0x504c4e['end']['isAtStart'];}function Ut(_0xbdb8c8,_0x1468b4,_0x52bb39,_0x1ad454){const _0x39b6a1=_0x3e7ef6=>!_0x3e7ef6['item']['is']('$textProxy')&&!_0x1ad454['isObject'](_0x3e7ef6['item']),_0x1f955a=_0xbdb8c8['start']['getLastMatchingPosition'](_0x39b6a1),_0x1209c9=_0xbdb8c8['end']['getLastMatchingPosition'](_0x39b6a1,{'direction':'backward'});return(!_0xbdb8c8['start']['isEqual'](_0x1f955a)||!_0xbdb8c8['end']['isEqual'](_0x1209c9))&&(_0x1f955a['isBefore'](_0x1209c9)?_0x52bb39['updateMarker'](_0x1468b4,{'range':_0x52bb39['createRange'](_0x1f955a,_0x1209c9)}):_0x52bb39['removeMarker'](_0x1468b4),!0x0);}function Gt(_0x3e794f){return _0x2b781c(_0x3e794f);}function Ft(_0x2a2e6d){const _0x1e77e6=_0x2a2e6d['start']['nodeAfter'];return _0x1e77e6&&_0x1e77e6['is']('element');}function Pt(_0x87c04,_0xc2d82c){return null==_0x87c04['end']['nodeBefore']&&_0x87c04['end']['parent']==_0x87c04['start']['nodeAfter']?Lt(_0x87c04['start']['nodeAfter'],_0xc2d82c):_0x87c04;}function Lt(_0x16c95,_0x2b2641){const _0x4deadd=_0x2b2641['schema']['isObject'](_0x16c95)||_0x2b2641['schema']['isSelectable'](_0x16c95);return _0x2b2641['createRange'](_0x2b2641['createPositionAt'](_0x16c95,'before'),_0x4deadd?_0x2b2641['createPositionAfter'](_0x16c95):_0x2b2641['createPositionAt'](_0x16c95,'end'));}function Ht(_0x4c4d17,_0x4907b2,_0x4485f7,_0x18c3b4,_0x11de61){if(_0x4c4d17['next'])return!0x1;if(!Jt(_0x4c4d17,_0x4907b2))return!0x1;if(_0x4485f7['end']['isEqual'](_0x18c3b4['start']))return!0x0;if(_0x4c4d17['type']!=_0x4907b2['type'])return!0x1;if(!_0x4485f7['end']['isTouching'](_0x18c3b4['start']))return!0x1;const _0x38cdc8=_0x11de61['createRange'](_0x4485f7['end'],_0x18c3b4['start'])['getWalker']();for(const _0x3dc1a0 of _0x38cdc8)if(['elementStart','elementEnd']['includes'](_0x3dc1a0['type'])&&_0x11de61['schema']['isLimit'](_0x3dc1a0['item']))return!0x1;return!0x0;}function Jt(_0x395b59,_0xaaf892){if(!_0x395b59['_isDataLoaded']||!_0xaaf892['_isDataLoaded'])return!0x1;const _0x54fdd8=new Set(Object['keys'](_0x395b59['attributes'])),_0xa4b2=new Set(Object['keys'](_0xaaf892['attributes']));if(_0x54fdd8['delete']('groupId'),_0xa4b2['delete']('groupId'),0x0==_0x54fdd8['size']&&0x0==_0xa4b2['size'])return!0x0;if(_0x54fdd8['size']!=_0xa4b2['size'])return!0x1;const _0x115fae={..._0x395b59['attributes']},_0x3f00c0={..._0xaaf892['attributes']};return delete _0x115fae['groupId'],delete _0x3f00c0['groupId'],JSON['stringify'](_0x115fae)==JSON['stringify'](_0x3f00c0);}function qt(_0x17f912,_0x4153bb){const _0x278631=zt(_0x17f912['attributes']),_0x55b971=zt(_0x4153bb);if(!_0x17f912['_isDataLoaded'])return!0x1;for(const _0xfdad42 of Object['keys'](_0x55b971))if(!_0x144ebc(_0x278631[_0xfdad42],_0x55b971[_0xfdad42]))return!0x1;return!0x0;}function zt(_0x266b7c){const _0xf8a073=Object['assign']({},_0x266b7c);return delete _0xf8a073['skipNestingCheck'],delete _0xf8a073['tablePasteChainId'],_0xf8a073;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x4bc0c9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x38ee52,_0x314999,_0x462f80,_0x2f8564){super(),this['model']=_0x314999,this['view']=_0x462f80,this['commentThreadController']=_0x2f8564,this['_editor']=_0x38ee52,this['_acceptCommand']=_0x38ee52['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x38ee52['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x30f916,_0x511bdf)=>_0x30f916||_0x511bdf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x6ac901=>_0x6ac901&&this['_editor']['model']['canEditAt'](_0x314999['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x68cc78=>_0x68cc78&&this['_editor']['model']['canEditAt'](_0x314999['getRanges']())),this['_pendingAction']=null,_0x462f80['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x462f80,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x462f80,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x462f80,'change:isDirty',()=>{_0x462f80['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x491bb9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x491bb9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1af9e8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x402949,_0xe952db,_0xb50f51,_0x1cf816){super(_0x402949),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3bbd8a(_0x402949,o(_0x402949,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xe952db['authoredAt']),this['bind']('authoredAt')['to'](_0xe952db),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0xe952db,'authoredAt',this,'descriptionParts',(_0x31d66f,_0x41dbd3,_0x528460)=>{const _0x5efc00=_0x528460['map'](_0x355863=>ls(_0x355863['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x31d66f-0x1,_0xe952db['author']['name'],_0x41dbd3?_0x1cf816['formatDateTime'](_0x41dbd3):'',new DOMParser()['parseFromString'](_0x5efc00,'text/html')['body']['textContent']]);}),this['focusables']=new _0x443e45(),this['focusTracker']=new _0x39a9b6(),this['keystrokes']=new _0x4e83fc(),this['focusCycler']=new _0x197cea({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x496c49=>_0x496c49['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xe952db,this['_localUser']=_0xb50f51,this['_config']=_0x1cf816,_0x1cf816['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x13fd9d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1c4049}=this['_config'];this['commentsListView']=new _0x1c4049(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x4b603a=>_0x4b603a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x38b99d,_0x53f98c)=>_0x38b99d||!!_0x53f98c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x90c43d}=this['_config'],_0x2e4290=new _0x90c43d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x373ba8=_0x2e4290['commentInputView'];return _0x2e4290['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x373ba8,'value',(_0x4d1a04,_0x8a2ed0,_0x1415b2)=>!!_0x1415b2||_0x4d1a04&&!_0x8a2ed0),_0x373ba8['on']('submit',(_0x5cfa7b,_0x96339f)=>{this['fire']('addComment',_0x96339f),_0x373ba8['editor']['setData']('');}),_0x373ba8['on']('cancel',()=>this['focus']()),_0x373ba8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2e4290;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3dd167,_0x56c895,_0x25e8a0,_0xf8f4e8){super(_0x3dd167,_0x56c895,_0x25e8a0,_0xf8f4e8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x53fbc9=>_0x53fbc9&&_0x53fbc9[0x0]?_0x53fbc9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x336b38,_0x5b8111)=>{let _0x51dd70='';for(const _0x3bd9e7 of _0x336b38)_0x51dd70+='<p>'+ls(_0x3bd9e7['content'],_0x3bd9e7['color'])+'</p>';return _0x5b8111?_0x51dd70:_0x4cb242(_0x51dd70,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xf8f4e8['SuggestionView'](_0x3dd167,_0x56c895,{'formatDateTime':_0xf8f4e8['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4bc5f1=this['bindTemplate'],_0xdb54bb=[this['suggestionView']];return this['commentsListView']&&_0xdb54bb['push'](this['commentsListView']),this['commentThreadInputView']&&_0xdb54bb['push'](this['commentThreadInputView']),_0xdb54bb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4bc5f1['if']('isActive','ck-suggestion-wrapper--active'),_0x4bc5f1['to']('type',_0x1e2032=>'ck-suggestion-'+_0x1e2032),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4bc5f1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xdb54bb};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x1af9e8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x31bc87,_0xe94f8c,_0x13fda2){super(_0x31bc87),this['_model']=_0xe94f8c,this['_config']=_0x13fda2,this['set']('description',''),this['bind']('authoredAt')['to'](_0xe94f8c),this['acceptButton']=this['_createButton'](o(_0x31bc87,'Accept\x20suggestion'),_0x3c447f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x31bc87,'Discard\x20suggestion'),_0x3c447f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5456d4(_0x31bc87,_0xe94f8c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x443e45([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x39a9b6(),this['keystrokes']=new _0x4e83fc(),this['focusCycler']=new _0x197cea({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x24ce35=>_0x24ce35['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x10659e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x10659e['innerHTML']=this['description'],this['on']('change:description',(_0x30f644,_0x203805,_0x463c4b)=>{_0x10659e['innerHTML']=_0x463c4b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x39b634=this['bindTemplate'],_0x1e369e=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x39b634['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x39b634['to']('authoredAt',_0x182e76=>this['_config']['formatDateTime'](_0x182e76))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1e369e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x1e369e}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x278550,_0x3a98aa,_0x2d87e3,_0x1c6cf7,_0x131d98){const _0x89906c=new _0x2a478e(this['locale']);return _0x89906c['set']({'label':_0x278550,'icon':_0x3a98aa,'tooltip':!0x0,'tooltipPosition':_0x131d98}),_0x89906c['extendTemplate']({'attributes':{'class':_0x2d87e3}}),_0x89906c['on']('execute',()=>{this['fire'](_0x1c6cf7,this['_model']['id']);}),_0x89906c;}['_setupKeyboardNavigation'](){const _0x3b18ab=this['element'];this['keystrokes']['listenTo'](_0x3b18ab);for(const _0xda2c12 of this['focusables'])this['focusTracker']['add'](_0xda2c12['element']),this['keystrokes']['listenTo'](_0xda2c12['element']);this['keystrokes']['set']('enter',(_0x161d94,_0x2d600f)=>{_0x3b18ab===_0x161d94['target']&&(this['focusCycler']['focusFirst'](),_0x2d600f());}),this['keystrokes']['set']('esc',(_0x129fd0,_0x454816)=>{_0x3b18ab!==_0x129fd0['target']&&(this['focus'](),_0x454816());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x4e814d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5b3a8b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x44e49a){super(_0x44e49a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2b47df=this['editor']['config'];_0x2b47df['define']('trackChanges.SuggestionThreadView',re),_0x2b47df['define']('trackChanges.SuggestionView',ce),_0x2b47df['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2b47df['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x328ae6,_0x2f7f37){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x121df2,_0xdd19f1]of this['_handleControllerBuffer']){const _0x959d60=this['_suggestionToController']['has'](_0x121df2);_0x959d60||_0xdd19f1?_0x959d60&&_0xdd19f1&&this['_destroyController'](_0x121df2):this['_initializeController'](_0x121df2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x328ae6,_0x2f7f37);}['init'](){const _0x445b5e=this['editor'],_0x40954c=_0x445b5e['plugins']['get']('TrackChangesEditing'),_0x2b3763=_0x445b5e['plugins']['get']('Annotations'),_0x9b3d77=_0x445b5e['plugins']['get']('EditorAnnotations'),_0x45a9cf=_0x445b5e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x9b3d77['addSourceCollector'](()=>{const _0x111942=[];for(const [_0x434a7c,_0x4e3d2a]of Array['from'](this['_suggestionToController'])){const _0x2776ea=_0x434a7c['getAllAdjacentSuggestions'](),_0x41e75b=[];for(const _0x2b63bf of _0x2776ea){if(!_0x2b63bf['isInContent'])continue;if(_0x2b63bf['isMultiRange']){_0x41e75b['push'](..._0x2b63bf['getRanges']());continue;}const _0x17f7f7=_0x2b63bf['getFirstRange']();if(_0x41e75b['length']>0x0){const _0x2c763b=_0x41e75b[0x0]['getJoined'](_0x17f7f7);if(_0x2c763b){_0x41e75b[0x0]=_0x2c763b;continue;}}_0x41e75b['push'](_0x17f7f7);}_0x111942['push']([_0x4e3d2a['view'],_0x41e75b]);}return _0x111942;}),this['listenTo'](_0x40954c,'suggestionLoaded',(_0x46e96e,_0x52cdf3)=>{this['listenTo'](_0x52cdf3,'change:previous',(_0x344fc6,_0x1d41ec,_0x4719c8,_0x3c750e)=>{_0x52cdf3['isInContent']&&(null==_0x4719c8?(this['_updateController'](_0x3c750e['head']),this['_handleSuggestionControllerDelayed'](_0x52cdf3,!0x1)):(this['_updateController'](_0x4719c8['head']),null==_0x3c750e&&this['_handleSuggestionControllerDelayed'](_0x52cdf3,!0x0)));}),null!==_0x52cdf3['previous']?this['_updateController'](_0x52cdf3['head']):this['_handleSuggestionControllerDelayed'](_0x52cdf3,!0x1);}),this['listenTo'](_0x40954c,'suggestionUnloaded',(_0x1a4732,_0x42e88c,_0x815fb1)=>{this['stopListening'](_0x42e88c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x42e88c),this['_suggestionToController']['has'](_0x42e88c)&&this['_destroyController'](_0x42e88c),_0x815fb1&&this['_updateController'](_0x815fb1['head']);}),this['listenTo'](_0x40954c,'suggestionChanged',(_0x5a9fa8,_0x3162bb)=>{this['_updateController'](_0x3162bb);}),this['listenTo'](_0x2b3763,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x45a9cf,'addComment',(_0x511232,{threadId:_0x2d7c1c,isFromAdapter:_0x555900})=>{if(_0x555900||!_0x40954c['hasSuggestion'](_0x2d7c1c))return;const _0x4c92df=_0x40954c['getSuggestion'](_0x2d7c1c);this['_suggestionToController']['get'](_0x4c92df)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x152911=this['editor']['plugins']['get']('Annotations'),_0x1519c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fb25f=Array['from'](_0x152911['activeAnnotations'],_0x5e7ce2=>_0x5e7ce2['innerView'])['filter'](_0x17d1c0=>this['_viewToController']['has'](_0x17d1c0)),_0x492fc2=[];for(const _0x5cc37a of _0x3fb25f){const _0x2ee094=this['_viewToController']['get'](_0x5cc37a)['model']['getAllAdjacentSuggestions']();_0x492fc2['push'](..._0x2ee094['reduce']((_0x40464b,_0x154a25)=>[..._0x40464b,..._0x154a25['getMarkerNames']()],[]));}_0x1519c4['activeMarkers']=_0x492fc2;}['_addUIComponentsToFactory'](){const _0x4c031b=this['editor'],_0x17d86a=_0x4c031b['locale'],_0x99f28a=o(_0x17d86a,'Track\x20changes'),_0x2c4cea=new Wt([{'type':'switchbutton','model':new _0xec2b22({'withText':!0x0,'isToggleable':!0x0,'label':_0x99f28a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xec2b22({'withText':!0x0,'label':o(_0x17d86a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xec2b22({'withText':!0x0,'label':o(_0x17d86a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xec2b22({'withText':!0x0,'label':o(_0x17d86a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xec2b22({'withText':!0x0,'label':o(_0x17d86a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x391dc4 of _0x2c4cea)if(me(_0x391dc4)){const _0x34b893=_0x4c031b['commands']['get'](_0x391dc4['model']['commandName']);_0x391dc4['model']['bind']('isOn','isEnabled')['to'](_0x34b893,'value','isEnabled');}_0x4c031b['ui']['componentFactory']['add']('trackChanges',_0x33e77d=>this['_createToolbarButton'](_0x33e77d,_0x2c4cea,_0x99f28a)),_0x4c031b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x37478b=>this['_createMenuBarMenu'](_0x37478b,_0x2c4cea,_0x99f28a));}['_createToolbarButton'](_0x1b816c,_0x574cbe,_0x1ebbb8){const _0x544026=Qt(_0x1b816c,_0x176f59),_0x6a37b7=this['editor']['commands']['get']('trackChanges');_0x544026['buttonView']['set']({'tooltip':_0x1ebbb8,'label':_0x1ebbb8,'icon':he}),_0x544026['buttonView']['bind']('isOn')['to'](_0x6a37b7,'value'),_0x544026['buttonView']['on']('execute',()=>{_0x6a37b7['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x544026,_0x574cbe,{'role':'menu'});const _0x3d708a=[];for(const _0x52422c of _0x574cbe)me(_0x52422c)&&_0x3d708a['push'](this['editor']['commands']['get'](_0x52422c['model']['commandName']));const _0x2c75fb=_0x544026['buttonView'];return _0x2c75fb['actionView']['unbind']('isEnabled'),_0x2c75fb['arrowView']['unbind']('isEnabled'),_0x2c75fb['actionView']['bind']('isEnabled')['to'](_0x6a37b7,'isEnabled'),_0x2c75fb['arrowView']['bind']('isEnabled')['toMany'](_0x3d708a,'isEnabled',(..._0x302c3f)=>_0x302c3f['some'](_0x418b2c=>_0x418b2c)),_0x544026['on']('execute',_0x125699=>{this['editor']['execute'](_0x125699['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x544026;}['_createMenuBarMenu'](_0x350ab2,_0x5c8eec,_0x44ec9a){const _0x43ede8=new Yt(_0x350ab2),_0x338b8b=this['editor']['commands']['get']('trackChanges');_0x43ede8['buttonView']['set']({'label':_0x44ec9a,'icon':he});const _0x3aa166=new Zt(_0x350ab2);for(const _0x4037f2 of _0x5c8eec){if('separator'==_0x4037f2['type']){_0x3aa166['items']['add'](new Xt(_0x350ab2));continue;}const _0x54315d=new te(_0x350ab2,_0x43ede8),_0x36be6a=new _0x122fb6(_0x350ab2),_0x579c5a=_0x4037f2['model'];_0x36be6a['bind'](...Object['keys'](_0x579c5a))['to'](_0x579c5a),_0x36be6a['delegate']('execute')['to'](_0x43ede8),_0x36be6a['on']('execute',()=>{this['editor']['execute'](_0x579c5a['commandName']),this['editor']['editing']['view']['focus']();}),_0x54315d['children']['add'](_0x36be6a),_0x3aa166['items']['add'](_0x54315d);}return _0x43ede8['bind']('isEnabled')['to'](_0x338b8b,'isEnabled'),_0x43ede8['panelView']['children']['add'](_0x3aa166),_0x43ede8;}['_initializeController'](_0x1821df){const _0x3b14da=this['editor'],_0x3a1388=_0x3b14da['config'],_0x2cf299=_0x3b14da['plugins']['get']('Annotations'),_0x2ba67f=_0x3b14da['plugins']['get']('CommentsRepository'),_0x139c99=_0x3b14da['plugins']['get']('EditorAnnotations'),_0x3d2f94=_0x3b14da['plugins']['get'](_0x5b3a8b)['me'],_0x4592c4=_0x3a1388['get']('trackChanges')['SuggestionThreadView'],_0x53e57c=_0x3a1388['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x453845,CommentThreadInputView:_0x456160}=_0x3b14da['plugins']['get']('CommentsUI');let _0x1c76cb,_0x2392f7,_0x5af358;this['_annotationViews']['has'](_0x1821df['id'])?(_0x2392f7=this['_annotationViews']['get'](_0x1821df['id']),_0x1c76cb=_0x2392f7['mainView']):(_0x1c76cb=new _0x4592c4(_0x3b14da['locale'],_0x1821df,_0x3d2f94,{'disableComments':this['_disableComments'],'editorConfig':_0x3a1388['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3a1388['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3a1388['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3a1388['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x821357(_0x3a1388['get']('locale')),'CommentView':_0x3a1388['get']('comments')['CommentView'],'CommentsListView':_0x453845,'CommentThreadInputView':_0x456160,'SuggestionView':_0x53e57c}),_0x1c76cb['suggestionView']['acceptButton']['on']('execute',()=>{_0x3b14da['editing']['view']['focus']();}),_0x1c76cb['suggestionView']['discardButton']['on']('execute',()=>{_0x3b14da['editing']['view']['focus']();}),_0x2392f7=_0x2cf299['createAnnotationView'](this['editor']['locale'],_0x1c76cb),_0x2392f7['bind']('isDirty')['to'](_0x1c76cb,'isDirty'),_0x2392f7['bind']('length')['to'](_0x1c76cb),_0x2392f7['bind']('type')['to'](_0x1c76cb,'type',_0x29b5d4=>'suggestion-'+_0x29b5d4),_0x1c76cb['on']('escape',()=>{_0x5af358['fire']('escape');}),this['_annotationViews']['set'](_0x1821df['id'],_0x2392f7));const _0x2fd42b=_0x2ba67f['createCommentThreadController'](_0x1821df['commentThread'],_0x1c76cb),_0x5914da=new ae(_0x3b14da,_0x1821df,_0x1c76cb,_0x2fd42b),_0x4a1f9f=_0x1821df['getAllAdjacentSuggestions']()['filter'](_0x4801ff=>_0x4801ff['isInContent']);_0x1c76cb['descriptionParts']=_0x3b14da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4a1f9f),this['_suggestionToController']['set'](_0x1821df,_0x5914da),this['_viewToController']['set'](_0x1c76cb,_0x5914da),_0x5af358=_0x2cf299['createAnnotation']({'view':_0x2392f7,'target':()=>{const _0x4cfcf6=[],_0x49ac30=_0x1821df['getAllAdjacentSuggestions']()['filter'](_0x2b577a=>_0x2b577a['isInContent']);for(const _0x250f9a of _0x49ac30)_0x4cfcf6['push'](..._0x250f9a['getMarkers']());return _0x30411f(_0x3b14da['editing'],_0x4cfcf6);},'type':()=>'suggestion-'+_0x5914da['view']['type']}),_0x2ba67f['_bindAnnotationToEditors'](_0x1c76cb,_0x5af358),_0x2cf299['add'](_0x5af358),_0x139c99['registerAnnotation'](_0x5af358);}['_destroyController'](_0x27bf4c){const _0x4a7af2=this['editor']['plugins']['get']('CommentsRepository'),_0x5e0297=this['editor']['plugins']['get']('Annotations'),_0x46c811=this['_suggestionToController']['get'](_0x27bf4c),_0x48aade=_0x46c811['view'],_0x31c41c=_0x5e0297['getByInnerView'](_0x48aade);_0x4a7af2['_unbindEditors'](_0x48aade),_0x31c41c&&_0x5e0297['remove'](_0x31c41c),this['_suggestionToController']['delete'](_0x27bf4c),this['_viewToController']['delete'](_0x48aade),_0x46c811['destroy']();}['_updateController'](_0x6ba4dd){if(!_0x6ba4dd['isInContent']||!this['_suggestionToController']['has'](_0x6ba4dd))return;const _0x22c40b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a480c=this['_suggestionToController']['get'](_0x6ba4dd),_0x50606d=_0x6ba4dd['getAllAdjacentSuggestions']();_0x4a480c['view']['descriptionParts']=_0x22c40b['descriptionFactory']['getDescriptions'](_0x50606d);}['destroy'](){for(const _0x90cf35 of this['_suggestionToController']['keys']())this['_destroyController'](_0x90cf35);for(const _0x558cce of this['_annotationViews']['values']())_0x558cce['mainView']['destroy']();super['destroy']();}}function me(_0x598ce1){return'model'in _0x598ce1;}class k extends _0x4e814d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x558676){this['editor']['plugins']['get'](p)['adapter']=_0x558676;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x41813b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x41813b);}['getSuggestions']({skipNotAttached:_0x1f6064=!0x1,toJSON:_0x3ce834=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1f6064,'toJSON':_0x3ce834});}['getSuggestion'](_0x1ca8a2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1ca8a2);}}const T=['Pagination'];class P extends _0x4e814d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x567739=this['editor'];if(_0x567739['config']['define']('trackChangesData.editorCreator',_0xec9a82=>{const _0x64350a=_0x567739['model']['document']['getRootNames']()['reduce']((_0x2461f0,_0xd3ab3c)=>(_0x2461f0[_0xd3ab3c]='',_0x2461f0),{});return _0x567739['constructor']['create'](_0x64350a,_0xec9a82);}),'function'!=typeof _0x567739['config']['get']('trackChangesData')['editorCreator'])throw new _0x3cf7af('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b0319){return N(this['editor'],!0x0,_0x5b0319);}['getDataWithDiscardedSuggestions'](_0xf96f01){return N(this['editor'],!0x1,_0xf96f01);}}class D extends _0x4e814d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x633219){super(_0x633219),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x1d749f){return void 0x0!==_0x1d749f['getRootsAttributes'];}async function N(_0x42fa6a,_0x5d39b4,_0x3349d8){const _0x43f2f2=_0x14e9b5(_0x42fa6a,T);_0x43f2f2['plugins']['push'](p,D),_0x43f2f2['rootsAttributes']=v(_0x42fa6a)?_0x42fa6a['getRootsAttributes']():void 0x0;const _0x35bab7=document['createDocumentFragment'](),_0x5807aa=_0x42fa6a['config']['get']('trackChangesData')['editorCreator'],_0x1a5ee0=await _0x5807aa(_0x43f2f2,()=>function(_0x4f2335){const _0x581c36=document['createElement']('div');return _0x4f2335['appendChild'](_0x581c36),_0x581c36;}(_0x35bab7));!function(_0x2ad235,_0x31c9d5){const _0x314f6d=_0x2ad235['model']['document']['getRootNames']()['reduce']((_0x55bad8,_0x3c1861)=>(_0x55bad8[_0x3c1861]=_0x2ad235['data']['get']({'rootName':_0x3c1861}),_0x55bad8),{}),_0x574c39=_0x2ad235['plugins']['get']('Users')['users']['map'](_0x21f57c=>({'id':_0x21f57c['id'],'name':_0x21f57c['name']})),_0x431d46=_0x2ad235['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47a28d=_0x2ad235['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43737c=_0x31c9d5['plugins']['get']('Users'),_0x474d3d=_0x31c9d5['plugins']['get']('TrackChangesEditing'),_0x14e602=_0x31c9d5['plugins']['get']('CommentsRepository');for(const _0x45df82 of _0x14e602['getCommentThreads']())_0x45df82['remove']();for(const _0xf10361 of _0x574c39)_0x43737c['getUser'](_0xf10361['id'])||_0x43737c['addUser'](_0xf10361);_0x43737c['me']||_0x43737c['useAnonymousUser']();for(const _0x97793d of _0x47a28d)_0x14e602['addCommentThread'](_0x97793d);for(const _0x2bfdfe of _0x431d46)_0x474d3d['addSuggestionData'](_0x2bfdfe);_0x31c9d5['data']['set'](_0x314f6d);}(_0x42fa6a,_0x1a5ee0),_0x1a5ee0['execute'](_0x5d39b4?'acceptAllSuggestions':'discardAllSuggestions');const _0x4c897d=v(_0x1a5ee0)?_0x1a5ee0['getFullData'](_0x3349d8):_0x1a5ee0['data']['get'](_0x3349d8);return await _0x1a5ee0['destroy'](),_0x4c897d;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};