@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240909.0 → 0.0.0-nightly-20240910.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 _0x4fe0d7,PendingActions as _0x2b0ef4,icons as _0x33afa3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x25e072,ObservableMixin as _0xbe230,uid as _0x13e654,insertToPriorityArray as _0x17f9c5,priorities as _0x5b85e5,logWarning as _0x2ca0b9,getEnvKeystrokeText as _0x4694d5,FocusTracker as _0x46e5fe,KeystrokeHandler as _0x4dafe4,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x6369f3,View as _0x1dc03d,ViewCollection as _0x5f40be,FocusCycler as _0x43001f,ViewModel as _0x487cc0,createDropdown as Qt,SplitButtonView as _0x61c38d,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x1979e5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5a7861,hashObject as _0x3071b6,surroundingMarkersDetector as _0xa9aaf3,FOCUS_ANNOTATION_KEYSTROKE as _0x2adf40,AriaDescriptionView as _0x5b52f3,setupThreadKeyboardNavigation as _0x570b54,trimHtml as _0x4b5435,UserView as _0x2ee096,LateFocusButtonView as _0x26fe1a,getDateTimeFormatter as _0x2b76c3,getAllMarkersDomElementsSorted as _0x5b505b,sanitizeEditorConfig as _0x2787d6}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x588c09,LiveRange as _0x12550f,LivePosition as _0x4f5588}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4802ab,toWidget as _0x275f5a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x372f1e,set as _0x4811e5,isEqual as _0x3b8fd5,unset as _0xb28d5,omit as Tt}from'lodash-es';import{Delete as _0x1e078e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x45c157,ShiftEnter as _0x485f45}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x34085d,_0x351f37){super(_0x34085d),this['_enabledCommands']=_0x351f37,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 _0x5433ab of this['editor']['commands']['commands']())_0x5433ab['affectsData']&&!this['_enabledCommands']['has'](_0x5433ab)&&_0x5433ab['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x17c481 of this['editor']['commands']['commands']())_0x17c481['affectsData']&&!this['_enabledCommands']['has'](_0x17c481)&&_0x17c481['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x5b9c40,_0x234f7e){super(_0x5b9c40),this['_suggestions']=_0x234f7e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24eb2b){const _0x1748db=this['_suggestions']['get'](_0x24eb2b);if(!_0x1748db)throw new _0x25e072('track-changes-accept-suggestion-not-found',this);const _0x8ba43b=_0x1748db['getRanges']();this['editor']['model']['canEditAt'](_0x8ba43b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1748db);}}class R extends ts{['_suggestions'];constructor(_0x5a50c5,_0x5fa1ec){super(_0x5a50c5),this['_suggestions']=_0x5fa1ec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x18a8bc){const _0x3d5df2=this['_suggestions']['get'](_0x18a8bc);if(!_0x3d5df2)throw new _0x25e072('track-changes-discard-suggestion-not-found',this);const _0x30f752=_0x3d5df2['getRanges']();this['editor']['model']['canEditAt'](_0x30f752)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3d5df2);}}function ls(_0x553cf3,_0x354a46){let _0x19c41a='';return _0x19c41a+=_0x553cf3['split']('*')['map']((_0x5dbf24,_0x41810d)=>_0x41810d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5dbf24)+'</span>':nn(_0x5dbf24))['join'](''),_0x354a46&&(_0x19c41a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x354a46['value']+'\x22\x20title=\x22'+_0x354a46['title']+'\x22></span>'),_0x19c41a;}function nn(_0xf5e5d4){const _0x24999=document['createElement']('span');return _0x24999['innerText']=_0xf5e5d4,_0x24999['innerHTML'];}function ss(_0x182b30){return _0x182b30['sort']((_0x2f4b09,_0xc419d4)=>'deletion'==_0x2f4b09['type']&&'deletion'!=_0xc419d4['type']?-0x1:'deletion'!=_0x2f4b09['type']&&'deletion'==_0xc419d4['type']?0x1:0x0);}function to(_0x1fccf0,_0x1c7a5d){let _0x571ca2,_0x2efefd=0x0;const _0x4d0dd6=[],_0x3fd9a4=_0x1c7a5d['schema'];for(;_0x2efefd<_0x1fccf0['length'];){const _0x36693c=_0x1fccf0[_0x2efefd],_0x2b0edc=_0x1fccf0[_0x2efefd+0x1];_0x571ca2||(_0x571ca2=_0x1c7a5d['createPositionBefore'](_0x36693c)),on(_0x1c7a5d,_0x36693c,_0x2b0edc)||(_0x4d0dd6['push'](_0x1c7a5d['createRange'](_0x571ca2,_0x3fd9a4['isObject'](_0x36693c)?_0x1c7a5d['createPositionAfter'](_0x36693c):_0x1c7a5d['createPositionAt'](_0x36693c,'end'))),_0x571ca2=null),_0x2efefd++;}return _0x4d0dd6;}function on(_0xd7b382,_0x3ed61a,_0x14a489){if(!_0x14a489)return!0x1;const _0x989eb3=_0xd7b382['createPositionAfter'](_0x3ed61a),_0x2881fe=_0xd7b382['createPositionBefore'](_0x14a489);return _0x989eb3['isTouching'](_0x2881fe);}function rs(_0x10025b,_0x56e0e2,_0x55cfb4){for(;_0x55cfb4['length'];){const _0xab6a88=_0x55cfb4['splice'](0x0,0x64);_0x10025b['change'](()=>{for(const _0x512b18 of _0xab6a88)_0x512b18['isInContent']&&_0x56e0e2['execute'](_0x512b18['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0xfc08c6,_0x5a36fe,_0x381c67){super(_0xfc08c6),this['_command']=_0x5a36fe,this['_suggestions']=_0x381c67,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b4751=Array['from'](this['_suggestions']['values']())['some'](_0x58eb3c=>_0x58eb3c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3b4751;}['execute'](){const _0x1d6592=ss(Array['from'](this['_suggestions']['values']()));for(const _0x21bd12 of _0x1d6592){const _0x208c31=_0x21bd12['getRanges']();if(!this['editor']['model']['canEditAt'](_0x208c31))return;}rs(this['editor']['model'],this['_command'],_0x1d6592);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x14f045,_0x4e9b69,_0x3a94ec){super(_0x14f045),this['_command']=_0x4e9b69,this['_suggestions']=_0x3a94ec,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x17547f=this['editor']['model']['document']['selection'],_0x4c9841=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5c2c4e,_0xf19716){const _0x5905d6=Array['from'](_0x5c2c4e['getRanges']()),_0x1f3c5c=new Set();for(const _0x1735d2 of _0xf19716)if(_0x1735d2['isInContent']){for(const _0x395227 of _0x5905d6)for(const _0x163449 of _0x1735d2['getRanges']())(_0x395227['isIntersecting'](_0x163449)||_0x5c2c4e['isCollapsed']&&!_0x1735d2['isMultiRange']&&_0x1735d2['next']&&_0x163449['end']['isTouching'](_0x395227['start']))&&_0x1f3c5c['add'](_0x1735d2);}return _0x1f3c5c;}(_0x17547f,_0x4c9841),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1eebeb=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3cad63 of _0x1eebeb){const _0x873634=_0x3cad63['getRanges']();if(!this['editor']['model']['canEditAt'](_0x873634))return;}rs(this['editor']['model'],this['_command'],_0x1eebeb);}}class u extends/* #__PURE__ -- @preserve */
24
- _0xbe230(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f0a50,_0x312918){super(),this['id']=_0x312918['id'],this['type']=_0x312918['type'],this['subType']=_0x312918['subType']||null,this['author']=_0x312918['author'],this['creator']=_0x312918['creator']||_0x312918['author'],this['isExternal']=Boolean(_0x312918['attributes']&&_0x312918['attributes']['@external']),this['data']=null,this['_model']=_0x2f0a50,this['_onAccept']=_0x312918['onAccept'],this['_onDiscard']=_0x312918['onDiscard'],this['_onAttributesChange']=_0x312918['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x312918['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 _0x502905=this;for(;_0x502905['previous'];)_0x502905=_0x502905['previous'];return _0x502905;}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'](_0x4818ac){this['_markerNames']['add'](_0x4818ac);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x23b5a3=>this['_model']['markers']['get'](_0x23b5a3))['filter'](_0x3031a0=>_0x3031a0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c1798=>{for(const _0x123b29 of this['getMarkers']())_0x3c1798['removeMarker'](_0x123b29);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c96d6){this['_model']['change'](_0x614419=>{_0x614419['removeMarker'](_0x1c96d6);}),this['_markerNames']['delete'](_0x1c96d6);}['addRange'](_0x3e0346){const _0x560495='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x560495),this['_model']['change'](_0x252629=>{_0x252629['addMarker'](_0x560495,{'range':_0x3e0346,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3f33c9){for(const _0x259837 of this['getRanges']())if(_0x259837['isIntersecting'](_0x3f33c9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x30c03b=>_0x30c03b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xa490df,_0x1dde9f)=>[..._0xa490df,..._0x1dde9f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x480928=this['getRanges']();if(0x1!=_0x480928['length'])return null;const _0x4ebfdd=_0x480928[0x0],_0x17eae3=_0x4ebfdd['start']['nodeAfter'],_0x21d725=_0x4ebfdd['end']['nodeBefore'];return _0x17eae3 instanceof _0x588c09?_0x17eae3!=_0x21d725?null:_0x17eae3: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 _0x55054e=[];let _0x6034bb=this['head'];for(;_0x6034bb;)_0x55054e['push'](_0x6034bb),_0x6034bb=_0x6034bb['next'];return _0x55054e;}['setAttribute'](_0x56f027,_0x5393eb){const _0x7d0644=_0x372f1e(this['attributes']);_0x4811e5(_0x7d0644,_0x56f027,_0x5393eb),_0x3b8fd5(_0x7d0644,this['attributes'])||(this['attributes']=_0x7d0644,this['_onAttributesChange'](_0x7d0644));}['removeAttribute'](_0x561759){const _0x4aa7d4=_0x372f1e(this['attributes']);_0xb28d5(_0x4aa7d4,_0x561759),_0x3b8fd5(_0x4aa7d4,this['attributes'])||(this['attributes']=_0x4aa7d4,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 _0x13e654()['substr'](0x1,0x5);}}function o(_0x47da72,_0x272218,_0x467a97){const t=_0x47da72['t'];switch(_0x272218){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',_0x467a97);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x467a97);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x467a97);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x467a97);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x467a97);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',_0x467a97);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x467a97);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',_0x467a97);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x467a97);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x467a97);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x467a97);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x467a97);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x467a97);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x467a97);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x467a97);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x467a97);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x467a97);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x467a97);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x467a97);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x467a97);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x467a97);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x467a97);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x467a97);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'},_0x467a97);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x467a97);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x467a97);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x467a97);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x467a97);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x467a97);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'},_0x467a97);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x467a97);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x467a97);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x467a97);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x467a97);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'},_0x467a97);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x467a97);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'},_0x467a97);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'},_0x467a97);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x467a97);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'},_0x467a97);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x467a97);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'},_0x467a97);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x467a97);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x467a97);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'},_0x467a97);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'},_0x467a97);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'},_0x467a97);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x467a97);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'},_0x467a97);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'},_0x467a97);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'},_0x467a97);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x272218;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x52365b,_0x52f3be){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x52365b,this['_locale']=_0x52f3be;}['getDescriptions'](_0x5caa1d){const _0x56210e=[],_0xcf6f94=new Set(),_0x3f5c03=new Set();for(let _0x1e2c86=0x0;_0x1e2c86<_0x5caa1d['length'];_0x1e2c86++){const _0x4d1291=_0x5caa1d[_0x1e2c86];if(!_0x4d1291['isInContent'])continue;const _0x54af0f=this['_handleCustomCallbackDescription'](_0x4d1291);if(_0x54af0f){if(null!=_0x4d1291['subType']){if(_0xcf6f94['has'](_0x4d1291['subType']))continue;_0xcf6f94['add'](_0x4d1291['subType']);}_0x56210e['push'](_0x54af0f);}else{if('attribute'!=_0x4d1291['type'])'insertion'!=_0x4d1291['type']&&'deletion'!=_0x4d1291['type']||this['_handleInsertRemoveSuggestionDescription'](_0x56210e,_0x4d1291,_0x5caa1d[_0x1e2c86+0x1]);else{const _0x1d95e4=_0x4d1291['data']['key'];if(_0x3f5c03['has'](_0x1d95e4))continue;_0x3f5c03['add'](_0x4d1291['data']['key']),_0x1d95e4==m?this['_handleRenameSuggestionDescription'](_0x56210e,_0x4d1291):this['_handleAttributeSuggestionDescription'](_0x56210e,_0x4d1291);}}}return this['_resolveDescriptionItems'](_0x56210e);}['registerDescriptionCallback'](_0x9a3000){this['_customCallbacks']['push'](_0x9a3000);}['registerElementLabel'](_0x59bc4b,_0x131539,_0x202c11=_0x5b85e5['normal']){'function'==typeof _0x59bc4b?_0x17f9c5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59bc4b,'label':_0x131539,'priority':_0x202c11}):this['_itemLabels']['set'](_0x59bc4b,_0x131539);}['registerAttributeLabel'](_0x5cbe25,_0xb8af55){this['_attributeLabels']['set'](_0x5cbe25,_0xb8af55);}['getItemLabel'](_0x930185,_0x1f00ed=0x1){let _0x47f8d0;for(const _0x3f6343 of this['_itemLabelsCallbacks'])if(_0x3f6343['matchingCallback'](_0x930185)){_0x47f8d0=_0x3f6343['label'];break;}return _0x47f8d0||(_0x47f8d0=this['_itemLabels']['get'](_0x930185['name'])),_0x47f8d0?_0x47f8d0(_0x1f00ed):0x1!==_0x1f00ed?_0x1f00ed+'\x20'+_0x930185['name']+'s':''+_0x930185['name'];}['_addDescriptionItems'](_0x1035b3,_0x358559){const _0x392016=_0x358559['getFirstRange']()['getWalker'](),_0x5b1473='insertion'==_0x358559['type']?'add':'remove';for(const _0x2fbd7b of _0x392016){const _0x127592=_0x2fbd7b['item'],_0x24d004=_0x1035b3[_0x1035b3['length']-0x1];if(_0x127592['is']('$textProxy'))_0x24d004&&_0x24d004['type']['indexOf']('Container')>-0x1&&_0x1035b3['pop'](),_0x24d004&&'text'==_0x24d004['type']?_0x24d004[_0x5b1473]+=_0x127592['data']:_0x1035b3['push']({'type':'text','add':'add'==_0x5b1473?_0x127592['data']:'','remove':'remove'==_0x5b1473?_0x127592['data']:''});else{if(this['_schema']['isObject'](_0x127592)){const _0x208308=_0x127592;if(_0x24d004&&_0x24d004['type']['indexOf']('Container')>-0x1&&_0x1035b3['pop'](),'elementEnd'==_0x2fbd7b['type'])continue;_0x24d004&&_0x24d004['type']==_0x5b1473+'Object'&&_0x24d004['element']['name']==_0x208308['name']?_0x24d004['quantity']++:_0x1035b3['push']({'type':_0x5b1473+'Object','element':_0x208308,'quantity':0x1}),_0x392016['skip'](_0x340ecf=>!('elementEnd'==_0x340ecf['type']&&_0x340ecf['item']==_0x127592));}else{if(this['_schema']['checkChild'](_0x127592,'$text')||_0x127592['is']('element','softBreak')){const _0x6dbebd=_0x127592;if('add'==_0x5b1473&&'elementStart'==_0x2fbd7b['type']||'remove'==_0x5b1473&&'elementEnd'==_0x2fbd7b['type'])continue;if(_0x24d004&&-0x1==_0x24d004['type']['indexOf']('Container')){'text'==_0x24d004['type']&&(_0x24d004[_0x5b1473]+='\x0a');continue;}let _0x13eaad;if(_0x13eaad='add'==_0x5b1473?_0x6dbebd['nextSibling']&&!this['_schema']['isObject'](_0x6dbebd['nextSibling'])?_0x6dbebd['nextSibling']:null:_0x6dbebd['previousSibling']&&!this['_schema']['isObject'](_0x6dbebd['previousSibling'])?_0x6dbebd['previousSibling']:null,_0x6dbebd['isEmpty']||_0x13eaad&&_0x13eaad['isEmpty']){const _0x3e0eab=_0x13eaad&&_0x13eaad['isEmpty']?_0x13eaad:_0x6dbebd;_0x24d004&&_0x24d004['type']==_0x5b1473+'EmptyContainer'&&_0x24d004['element']['name']==_0x3e0eab['name']?_0x24d004['quantity']++:_0x1035b3['push']({'type':_0x5b1473+'EmptyContainer','element':_0x3e0eab,'quantity':0x1});}else _0x1035b3['push']({'type':_0x5b1473+'Container','element':_0x6dbebd});}}}}}['_resolveDescriptionItems'](_0x374800){const _0x32ab6c=this['_locale'],_0x1f490b=[],_0x78eaa6=[],_0x16189d=[];for(const _0xa469c5 of _0x374800)switch(_0xa469c5['type']){case'text':if(_0xa469c5['add']=_0xa469c5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xa469c5['remove']=_0xa469c5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xa469c5['add']&&''!=_0xa469c5['remove']){_0x1f490b['push']({'type':'replace','content':o(_0x32ab6c,'REPLACE_TEXT',['\x22'+_0xa469c5['remove']+'\x22','\x22'+_0xa469c5['add']+'\x22'])});continue;}if(null!=_0xa469c5['add']['match'](/^ +$/)){_0x1f490b['push']({'type':'insertion','content':o(_0x32ab6c,'*Insert:*\x20%0',o(_0x32ab6c,'ELEMENT_SPACE',_0xa469c5['add']['length']))});continue;}if(null!=_0xa469c5['remove']['match'](/^ +$/)){_0x1f490b['push']({'type':'deletion','content':o(_0x32ab6c,'*Remove:*\x20%0',o(_0x32ab6c,'ELEMENT_SPACE',_0xa469c5['remove']['length']))});continue;}if(''!=_0xa469c5['add']){_0x1f490b['push']({'type':'insertion','content':o(_0x32ab6c,'*Insert:*\x20%0','\x22'+_0xa469c5['add']+'\x22')});continue;}_0x1f490b['push']({'type':'deletion','content':o(_0x32ab6c,'*Remove:*\x20%0','\x22'+_0xa469c5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1f490b['push']({'type':'insertion','content':o(_0x32ab6c,'*Insert:*\x20%0',this['getItemLabel'](_0xa469c5['element'],_0xa469c5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1f490b['push']({'type':'deletion','content':o(_0x32ab6c,'*Remove:*\x20%0',this['getItemLabel'](_0xa469c5['element'],_0xa469c5['quantity']))});continue;case'addContainer':_0x1f490b['push']({'type':'insertion','content':o(_0x32ab6c,'*Split:*\x20%0',this['getItemLabel'](_0xa469c5['element'],_0xa469c5['quantity']))});continue;case'removeContainer':_0x1f490b['push']({'type':'deletion','content':o(_0x32ab6c,'*Merge:*\x20%0',this['getItemLabel'](_0xa469c5['element'],_0xa469c5['quantity']))});continue;case'addFormat':_0x78eaa6['push'](_0xa469c5['key']);continue;case'removeFormat':_0x16189d['push'](_0xa469c5['key']);continue;default:_0x1f490b['push'](_0xa469c5);}if(_0x78eaa6['length']){const _0x3ff70a=_0x78eaa6['map'](_0x5ae706=>this['_attributeLabels']['has'](_0x5ae706)?this['_attributeLabels']['get'](_0x5ae706):_0x5ae706)['join'](',\x20');_0x1f490b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3ff70a)});}if(_0x16189d['length']){const _0x17a543=_0x16189d['map'](_0x17c1bf=>this['_attributeLabels']['has'](_0x17c1bf)?this['_attributeLabels']['get'](_0x17c1bf):_0x17c1bf)['join'](',\x20');_0x1f490b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x17a543)});}return _0x1f490b;}['_handleCustomCallbackDescription'](_0x3f22f8){for(const _0x281950 of this['_customCallbacks']){const _0x5da127=_0x281950(_0x3f22f8);if(_0x5da127&&'type'in _0x5da127)return _0x5da127;}}['_handleAttributeSuggestionDescription'](_0x4083d,_0x225d5e){const _0x241b18=_0x225d5e['data'],_0x74b27a=void 0x0===_0x241b18['newValue']?'removeFormat':'addFormat';_0x4083d['push']({'type':_0x74b27a,'key':_0x241b18['key']});}['_handleRenameSuggestionDescription'](_0x27f898,_0x14810e){_0x27f898['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x14810e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x21f099,_0x966283,_0x2c5e52){if(this['_addDescriptionItems'](_0x21f099,_0x966283),_0x2c5e52&&_0x2c5e52['getFirstRange']()&&!_0x966283['getFirstRange']()['end']['isEqual'](_0x2c5e52['getFirstRange']()['start'])){const _0x5a86a4=_0x21f099[_0x21f099['length']-0x1],_0x471b59='insertion'==_0x966283['type']?'add':'remove';_0x5a86a4&&'text'==_0x5a86a4['type']&&(_0x5a86a4[_0x471b59]+='\x0a');}}}class V extends _0x4fe0d7{['afterInit'](){const _0x1e4be5=this['editor'],_0x179032=_0x1e4be5['plugins']['get']('TrackChangesEditing');_0x1e4be5['commands']['get']('showAIAssistant')&&_0x179032['enableCommand']('showAIAssistant');}}class U extends _0x4fe0d7{['afterInit'](){const _0xd8b7d4=this['editor'],_0x12e28d=_0xd8b7d4['locale'];if(!_0xd8b7d4['plugins']['has']('AlignmentEditing'))return;const _0x7e3d84=_0xd8b7d4['plugins']['get']('TrackChangesEditing');_0x7e3d84['enableDefaultAttributesIntegration']('alignment'),_0x7e3d84['registerBlockAttribute']('alignment'),_0x7e3d84['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x12e28d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x104e32=this['editor'],_0x5c1958=_0x104e32['locale'];_0x104e32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214d21=>{if('formatBlock'!=_0x214d21['type'])return;const {data:_0x334396}=_0x214d21;if(_0x334396&&'alignment'==_0x334396['commandName']){const _0x27f346=_0x334396['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5c1958,'*Format:*\x20%0',function(_0x238ec2){switch(_0x238ec2){case'left':return o(_0x5c1958,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5c1958,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5c1958,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5c1958,'FORMAT_JUSTIFY_TEXT');}}(_0x27f346))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4fe0d7{['afterInit'](){const _0x3b7fa1=this['editor'],_0x26de2a=_0x3b7fa1['plugins']['get']('TrackChangesEditing'),_0x1641f7=_0x3b7fa1['locale'];for(const _0x47980b of ti){if(!_0x3b7fa1['plugins']['has'](_0x47980b))continue;const _0x1156f=_0x47980b['slice'](0x0,-0x7)['toLowerCase'](),_0x14f023='FORMAT_'+_0x1156f['toUpperCase']();_0x26de2a['enableDefaultAttributesIntegration'](_0x1156f),_0x26de2a['registerInlineAttribute'](_0x1156f),_0x26de2a['descriptionFactory']['registerAttributeLabel'](_0x1156f,o(_0x1641f7,_0x14f023));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be34a=this['editor'],_0x43e570=_0x1be34a['locale'],_0x3353a3=_0x1be34a['plugins']['get']('TrackChangesEditing');function _0x476965(_0x1d46f2,_0x16744d){_0x3353a3['descriptionFactory']['registerDescriptionCallback'](_0x3e8cd5=>{if('formatInline'!=_0x3e8cd5['type'])return;const {data:_0x5db420}=_0x3e8cd5;return _0x5db420&&_0x5db420['commandName']===_0x1d46f2?_0x5db420['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43e570,'*Format:*\x20%0',_0x16744d)}:{'type':'format','content':o(_0x43e570,'*Remove\x20format:*\x20%0',_0x16744d)}:void 0x0;});}_0x476965('bold',o(_0x43e570,'FORMAT_BOLD')),_0x476965('italic',o(_0x43e570,'FORMAT_ITALIC')),_0x476965('underline',o(_0x43e570,'FORMAT_UNDERLINE')),_0x476965('code',o(_0x43e570,'FORMAT_CODE')),_0x476965('strikethrough',o(_0x43e570,'FORMAT_STRIKETHROUGH')),_0x476965('subscript',o(_0x43e570,'FORMAT_SUBSCRIPT')),_0x476965('superscript',o(_0x43e570,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4fe0d7{['afterInit'](){const _0x27f355=this['editor'],_0x14bc03=_0x27f355['locale'];if(!_0x27f355['plugins']['has']('BlockQuoteEditing'))return;const _0x1ae78b=_0x27f355['plugins']['get']('TrackChangesEditing'),_0x365ed2=this['editor']['commands']['get']('blockQuote');_0x1ae78b['enableCommand']('blockQuote',(_0x49f1d7,_0x4d25d5={})=>{const _0x345a47=this['editor']['model']['document']['selection'],_0x56478b=_0x4d25d5&&void 0x0!==_0x4d25d5['forceValue']?_0x4d25d5['forceValue']:!_0x365ed2['value'];let _0x1eb5e8=[];if(_0x56478b){const _0x22d987=Array['from'](_0x345a47['getSelectedBlocks']())['filter'](_0x18e1c0=>oo(_0x18e1c0)||function(_0x301b03,_0x450781){const _0x2686bc=_0x450781['checkChild'](_0x301b03['parent'],'blockQuote'),_0x158943=_0x450781['checkChild'](['$root','blockQuote'],_0x301b03);return _0x2686bc&&_0x158943;}(_0x18e1c0,this['editor']['model']['schema']));_0x1eb5e8=to(_0x22d987,_0x27f355['model']);}else{const _0x386cd3=Array['from'](_0x345a47['getSelectedBlocks']())['filter'](_0x22c10b=>oo(_0x22c10b));_0x1eb5e8=to(_0x386cd3,_0x27f355['model']);}_0x27f355['model']['change'](()=>{for(const _0x2e47fb of _0x1eb5e8)_0x1ae78b['markBlockFormat'](_0x2e47fb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x56478b}]});});}),_0x1ae78b['descriptionFactory']['registerDescriptionCallback'](_0x4fa854=>{const {data:_0x29c333}=_0x4fa854;if(_0x29c333&&'blockQuote'==_0x29c333['commandName']){const _0x31a1cd=o(_0x14bc03,'ELEMENT_BLOCK_QUOTE');return _0x29c333['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14bc03,'*Set\x20format:*\x20%0',_0x31a1cd)}:{'type':'format','content':o(_0x14bc03,'*Remove\x20format:*\x20%0',_0x31a1cd)};}});}}function oo(_0xb61689){return'blockQuote'==_0xb61689['parent']['name'];}class L extends _0x4fe0d7{['afterInit'](){const _0x4419c6=this['editor'];_0x4419c6['plugins']['has']('CaseChange')&&(_0x4419c6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4419c6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4419c6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4fe0d7{['afterInit'](){const _0x5bb6e1=this['editor'];_0x5bb6e1['commands']['get']('ckbox')&&_0x5bb6e1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x4fe0d7{['afterInit'](){const _0x2fe4c4=this['editor'];if(!_0x2fe4c4['plugins']['has']('CodeBlock'))return;const _0x2ed2a8=_0x2fe4c4['plugins']['get']('TrackChangesEditing'),_0x59448e=_0x2fe4c4['locale'],_0x2c7dfb=_0x2fe4c4['config']['get']('codeBlock')['languages'],_0xcd29e0=_0x2fe4c4['commands']['get']('codeBlock');_0x2ed2a8['enableCommand']('indentCodeBlock'),_0x2ed2a8['enableCommand']('outdentCodeBlock'),_0x2ed2a8['enableCommand']('codeBlock',(_0xc5cea1,_0x5d36be={})=>{const _0x14d65b=_0x2fe4c4['model'],_0x190803=_0x2fe4c4['model']['document']['selection'],_0x21aba2=_0x5d36be&&void 0x0!==_0x5d36be['forceValue']?_0x5d36be['forceValue']:!_0xcd29e0['value'];let _0x2a5ec6;_0x5d36be['language']||(_0x5d36be['language']=_0x2c7dfb[0x0]['language']),_0x2a5ec6=_0x21aba2?Array['from'](_0x190803['getSelectedBlocks']())['filter'](_0x1783c5=>eo(_0x1783c5)||function(_0x3cde6c,_0x2730a4){if(_0x3cde6c['is']('rootElement')||_0x2730a4['isLimit'](_0x3cde6c))return!0x1;return _0x2730a4['checkChild'](_0x3cde6c['parent'],'codeBlock');}(_0x1783c5,_0x14d65b['schema'])):Array['from'](_0x190803['getSelectedBlocks']())['filter'](_0xf821e6=>eo(_0xf821e6));const _0x1a4fe2=to(_0x2a5ec6,_0x14d65b);_0x14d65b['change'](()=>{for(const _0x317d79 of _0x1a4fe2)_0x2ed2a8['markBlockFormat'](_0x317d79,{'commandName':'codeBlock','commandParams':[{..._0x5d36be,'forceValue':_0x21aba2}],'formatGroupId':'blockName'});});}),(_0x2ed2a8['descriptionFactory']['registerElementLabel']('codeBlock',_0x104a80=>o(_0x59448e,'ELEMENT_CODE_BLOCK',_0x104a80)),_0x2ed2a8['descriptionFactory']['registerDescriptionCallback'](_0x514d1d=>{if('formatBlock'!=_0x514d1d['type'])return;const _0x1c84dc=_0x59448e['t'],{data:_0x40588d}=_0x514d1d;if(!_0x40588d||'codeBlock'!=_0x40588d['commandName'])return;const _0xb3de2f=_0x40588d['commandParams'][0x0]['language'],_0x49af1d=_0x1c84dc(_0x2c7dfb['find'](_0xbe1eaa=>_0xbe1eaa['language']===_0xb3de2f)['label'])['toLowerCase']();return _0x40588d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59448e,'*Set\x20format:*\x20%0',o(_0x59448e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x49af1d+')')}:{'type':'format','content':o(_0x59448e,'*Remove\x20format:*\x20%0',o(_0x59448e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x29e186){return'codeBlock'==_0x29e186['name'];}class q extends _0x4fe0d7{['afterInit'](){const _0x229713=this['editor'];if(!_0x229713['plugins']['has']('CommentsEditing'))return;_0x229713['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x36e66e,_0x3e55ab,_0x2f19bf){const _0x224aba=[];for(const _0x5c7709 of _0x3e55ab['getItems']())_0x5c7709['hasAttribute'](_0x36e66e)&&_0x224aba['push'](_0x2f19bf['createRangeOn'](_0x5c7709));return _0x224aba;}function _e(_0x20d325,_0x32aa47,{showActiveMarker:_0x10e8e4=!0x0}={}){const _0x12d40d=_0x20d325['plugins']['get']('TrackChangesEditing');return(_0x183ced,_0x4d9b47,_0x18777b)=>{if(!_0x18777b['consumable']['test'](_0x4d9b47['markerRange'],_0x183ced['name']))return;const _0x458baa=_0x4d9b47['markerRange']['getWalker'](),_0x99a481=_0x4d9b47['markerRange']['start'],_0x13a6e1=_0x20d325['model']['schema'];let _0x4ba1dd=null,_0x589037=null,_0x2139c2=!0x1,_0x3a89e5=!0x1;for(const _0x5f0995 of _0x458baa){const _0x213c6a=_0x5f0995['item'];_0x2139c2=_0x2139c2||_0x13a6e1['isContent'](_0x213c6a);const _0x17428a=_0x18777b['mapper']['toViewElement'](_0x213c6a);if(_0x17428a&&_0x17428a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5f0995['type']&&(_0x13a6e1['isBlock'](_0x213c6a)&&!_0x13a6e1['isLimit'](_0x213c6a)&&(_0x213c6a['nextSibling']||_0x99a481['isAtEnd']?_0x4ba1dd&&_0x4ba1dd['parent']==_0x213c6a||(_0x4ba1dd=_0x213c6a,_0x2b5139(_0x5f0995['previousPosition']),_0x3a89e5=!0x0):_0x589037=_0x589037||_0x5f0995['previousPosition']));}function _0x2b5139(_0x129a6f){const {authorId:_0x1803ae}=_0x12d40d['_splitMarkerName'](_0x4d9b47['markerName']),_0x3a02b2=_0x18777b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32aa47,'data-author-id':_0x1803ae}),_0x4ba94b=_0x18777b['mapper']['toViewPosition'](_0x129a6f);_0x10e8e4&&_0x12d40d['activeMarkers']['includes'](_0x4d9b47['markerName'])&&_0x18777b['writer']['addClass']('ck-suggestion-marker--active',_0x3a02b2),_0x18777b['writer']['insert'](_0x4ba94b,_0x3a02b2),_0x18777b['mapper']['bindElementToMarker'](_0x3a02b2,_0x4d9b47['markerName']);}_0x2139c2||_0x3a89e5||!_0x589037||_0x2b5139(_0x589037);};}class z extends _0x4fe0d7{static get['requires'](){return[_0x1e078e];}['init'](){const _0x26c04c=this['editor'],_0x587097=_0x26c04c['plugins']['get']('TrackChangesEditing');_0x587097['enableCommand']('delete');const _0x291e0a=_0x26c04c['commands']['get']('deleteForward');_0x587097['enableCommand']('deleteForward',(_0x6ac6e3,_0x2ad27e={})=>{const _0x380eb8=_0x26c04c['model']['createSelection'](_0x26c04c['model']['document']['selection']);_0x380eb8['isCollapsed']&&_0x26c04c['model']['modifySelection'](_0x380eb8,{'direction':'forward','unit':_0x2ad27e['unit']});const _0x62fe79=_0x380eb8['getFirstRange'](),_0x2b4476=_0x12550f['fromRange'](_0x62fe79);let _0x4b2fad;_0x6ac6e3(_0x2ad27e),_0x4b2fad='$graveyard'==_0x2b4476['root']['rootName']?_0x26c04c['model']['createRange'](_0x62fe79['start']):_0x26c04c['model']['createRange'](_0x2b4476['start'],_0x2b4476['end']),_0x2b4476['detach'](),_0x26c04c['model']['enqueueChange'](_0x291e0a['buffer']['batch'],_0x3fbe6a=>{_0x291e0a['buffer']['lock'](),_0x3fbe6a['setSelection'](_0x3fbe6a['createRange'](_0x4b2fad['end'])),_0x291e0a['buffer']['unlock']();});}),_0x26c04c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x26c04c,'merge'),{'priority':'high'}),_0x26c04c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4b1c42,_0x137261,_0x1e1b4a)=>{_0x1e1b4a['options']['showSuggestionHighlights']&&_e(_0x26c04c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4b1c42,_0x137261,_0x1e1b4a);},{'priority':'high'}),_0x26c04c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x36366d,_0x21fe01,_0x4bae4c)=>{const _0xdf51a0=_0x4bae4c['mapper']['markerNameToElements'](_0x21fe01['markerName']);if(_0xdf51a0){for(const _0x4d1f2b of _0xdf51a0)_0x4d1f2b['is']('uiElement')&&(_0x4bae4c['mapper']['unbindElementFromMarkerName'](_0x4d1f2b,_0x21fe01['markerName']),_0x4bae4c['writer']['remove'](_0x4d1f2b));}},{'priority':'high'});}}class K extends _0x4fe0d7{['afterInit'](){const _0x5d5eea=this['editor'];if(!_0x5d5eea['plugins']['has']('ListEditing'))return;const _0x54cbd8=_0x5d5eea['locale'],_0x41ee9e=_0x5d5eea['plugins']['get']('TrackChangesEditing'),_0x4fbda0=_0x5d5eea['plugins']['has']('TodoListEditing'),_0x30f26a=!!_0x5d5eea['config']['get']('list.multiBlock');function _0x193fc2(_0xb0e52){return{'type':'format','content':''+o(_0x54cbd8,'*Set\x20format:*\x20%0',_0xb0e52)};}function _0x45d4e4(_0x31afab){return{'type':'format','content':''+o(_0x54cbd8,'*Remove\x20format:*\x20%0',_0x31afab)};}_0x41ee9e['enableDefaultAttributesIntegration']('numberedList'),_0x41ee9e['enableDefaultAttributesIntegration']('bulletedList'),_0x41ee9e['enableDefaultAttributesIntegration']('customNumberedList'),_0x41ee9e['enableDefaultAttributesIntegration']('customBulletedList'),_0x41ee9e['enableDefaultAttributesIntegration']('indentList'),_0x41ee9e['enableDefaultAttributesIntegration']('outdentList'),_0x41ee9e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x41ee9e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x41ee9e['registerBlockAttribute']('listItemId'),_0x41ee9e['registerBlockAttribute']('listType'),_0x41ee9e['registerBlockAttribute']('listIndent'),_0x30f26a&&(_0x41ee9e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x41ee9e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4fbda0&&(_0x41ee9e['enableDefaultAttributesIntegration']('todoList'),_0x41ee9e['enableDefaultAttributesIntegration']('checkTodoList'),_0x41ee9e['registerBlockAttribute']('todoListChecked'),_0x41ee9e['descriptionFactory']['registerDescriptionCallback'](_0x6c659c=>{const {data:_0x54e4ab}=_0x6c659c;if(_0x54e4ab&&'todoListChecked'==_0x54e4ab['key'])return{'type':'format','content':_0x54e4ab['newValue']?o(_0x54cbd8,'*Check\x20item*'):o(_0x54cbd8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4aee4e=>{if(_0x4aee4e['batch']['isUndo'])return!0x1;let _0x49710d=!0x1;const _0x245b47=_0x41ee9e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2186f2=>'todoListChecked'===_0x41ee9e['_getAttributeKey'](_0x2186f2));for(const _0x2bc883 of _0x245b47){'todo'!=_0x2bc883['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x41ee9e['_findSuggestions'](_0x2bc883['getFirstRange'](),'attribute')['find'](_0x424810=>'listType'===_0x41ee9e['_getAttributeKey'](_0x424810['suggestion']))||(_0x4aee4e['removeMarker'](_0x2bc883['getFirstMarker']()),_0x49710d=!0x0));}return _0x49710d;})),_0x41ee9e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x54cbd8,'FORMAT_INDENT'));const _0x29398c={'type':'format','content':''};_0x41ee9e['descriptionFactory']['registerDescriptionCallback'](_0x451c00=>{const {data:_0x2dd5a8}=_0x451c00;if(!_0x2dd5a8||'listType'!=_0x2dd5a8['key'])return;let _0x78c36d=_0x451c00['head'];for(;_0x78c36d;){if(_0x78c36d['data']&&(('listStyle'==_0x78c36d['data']['key']||'listMarkerStyle'==_0x78c36d['data']['key'])&&(_0x78c36d['data']['newValue']&&'default'!=_0x78c36d['data']['newValue']||'default'!=_0x78c36d['data']['oldValue']&&!_0x2dd5a8['newValue'])||!_0x30f26a&&_0x78c36d['data']['key']==m))return _0x29398c;_0x78c36d=_0x78c36d['next'];}if(null==_0x2dd5a8['newValue'])switch(_0x2dd5a8['oldValue']){case'bulleted':return _0x45d4e4(o(_0x54cbd8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45d4e4(o(_0x54cbd8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45d4e4(o(_0x54cbd8,'ELEMENT_TODO_LIST'));}switch(_0x2dd5a8['newValue']){case'bulleted':return _0x193fc2(o(_0x54cbd8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x193fc2(o(_0x54cbd8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x193fc2(o(_0x54cbd8,'ELEMENT_TODO_LIST'));}}),_0x41ee9e['descriptionFactory']['registerDescriptionCallback'](_0x177c33=>{const {data:_0x373663}=_0x177c33;if(_0x373663&&'listIndent'==_0x373663['key'])return null==_0x373663['newValue']||null==_0x373663['oldValue']&&0x0==_0x373663['newValue']?_0x29398c:void 0x0;}),_0x41ee9e['descriptionFactory']['registerDescriptionCallback'](_0x3080df=>{if('attribute'!=_0x3080df['type'])return;const {data:_0x2b03c7}=_0x3080df;if(!_0x2b03c7||'listItemId'!=_0x2b03c7['key'])return;const _0x1bab4b=Ee(_0x3080df);return'newValue'==_0x1bab4b?{'type':'format','content':o(_0x54cbd8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1bab4b?{'type':'format','content':o(_0x54cbd8,'*Split:*\x20list\x20item')}:_0x29398c;}),_0x5d5eea['model']['document']['registerPostFixer'](_0x6ad0d7=>this['listItemIdFixer'](_0x6ad0d7)),_0x5d5eea['model']['document']['registerPostFixer'](_0x4911a1=>this['noTrackChangesFixer'](_0x4911a1)),_0x5d5eea['model']['document']['on']('change:data',(_0x502839,_0x4c5a68)=>{if(_0x4c5a68['isUndo']||!_0x4c5a68['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3f65e3){if(_0x3f65e3['batch']['isUndo']||!_0x3f65e3['batch']['isLocal'])return!0x1;let _0x40c39e=!0x1;const _0x355a00=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x433c2d=>_0x433c2d['data']&&'listItemId'==_0x433c2d['data']['key'])['filter'](_0x587456=>_0x587456['data']['newValue']&&_0x587456['data']['oldValue']);for(const _0x346f91 of _0x355a00)Ee(_0x346f91)||(_0x3f65e3['removeMarker'](_0x346f91['getFirstMarker']()),_0x40c39e=!0x0);return _0x40c39e;}['noTrackChangesFixer'](_0x2b4933){if(_0x2b4933['batch']['isUndo']||!_0x2b4933['batch']['isLocal'])return!0x1;const _0x277076=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x277076['trackChangesCommand']['value'])return!0x1;let _0x382a3a=!0x1;const _0x5eb310=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xaab487=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xc5562a=>'attribute'==_0xc5562a['type'])['filter'](_0x37d6e8=>_0x5eb310['includes'](_0x37d6e8['attributeKey']));if(0x0==_0xaab487['length'])return _0x382a3a;for(const _0x34a361 of _0xaab487){const _0x1d3614=_0x277076['_findSuggestions'](_0x34a361['range'],'attribute')['filter'](_0x20323c=>!_0x20323c['meta']['isNextTo'])['map'](_0x324410=>_0x324410['suggestion'])['filter'](_0x52162d=>{const _0x2cad51=_0x277076['_getAttributeKey'](_0x52162d);return _0x5eb310['includes'](_0x2cad51);});if(_0x1d3614['length']){for(const _0x2c00ea of _0x1d3614)_0x2b4933['removeMarker'](_0x2c00ea['getFirstMarker']());_0x382a3a=!0x0;}}return _0x382a3a;}['assureChains'](){const _0x1d16ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8b719d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x53def5;const _0x529ebe=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ac274=>{if(_0x5ac274['data']['oldRange']||!_0x5ac274['data']['newRange'])return null;if(!_0x5ac274['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xa7a5cc}=_0x1d16ff['_splitMarkerName'](_0x5ac274['name']);if(!_0x1d16ff['hasSuggestion'](_0xa7a5cc))return null;const _0x23da69=_0x1d16ff['getSuggestion'](_0xa7a5cc);return _0x8b719d['includes'](_0x23da69['data']['key']);})['map'](_0x52fa16=>{const {id:_0x22745b}=_0x1d16ff['_splitMarkerName'](_0x52fa16['name']),_0x31f88d=_0x1d16ff['getSuggestion'](_0x22745b);return _0x53def5=_0x31f88d['attributes']['groupId'],_0x31f88d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x529ebe['size'])return;const _0x3387f9=_0x1d16ff['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6a29f1=>'attribute'==_0x6a29f1['type']&&_0x6a29f1['data']&&_0x8b719d['includes'](_0x6a29f1['data']['key'])&&_0x6a29f1['attributes']['groupId']!=_0x53def5)['map'](_0x182dee=>({'listItem':_0x182dee['getFirstRange']()['start']['nodeAfter'],'groupId':_0x182dee['attributes']['groupId']})),_0x59c700=new Set();for(const {groupId:_0x1b24c5,listItem:_0x2e8d64}of _0x3387f9)_0x529ebe['has'](_0x2e8d64)&&_0x59c700['add'](_0x1b24c5);for(const _0x132a00 of _0x1d16ff['getSuggestions']())_0x59c700['has'](_0x132a00['attributes']['groupId'])&&_0x132a00['setAttribute']('groupId',_0x53def5);}['_supportLegacySuggestions'](){const _0x5e99cb=this['editor'],_0xac213d=_0x5e99cb['locale'],_0xebb268=_0x5e99cb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xebb268['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x344bcf,_0x3044be){const _0x3772bd=[];for(let _0xac46ab of _0x344bcf)_0xac46ab['start']['nodeAfter']===_0xac46ab['end']['parent']&&(_0xac46ab=_0x5e99cb['model']['createRange'](_0x5e99cb['model']['createPositionAt'](_0xac46ab['start']['nodeAfter'],0x0))),_0x3772bd['push'](_0xac46ab);_0x5e99cb['model']['change'](_0x204b39=>{const _0x33d195=_0x5e99cb['model']['document']['selection'],_0xd9acc9=Array['from'](_0x33d195['getRanges']())['map'](_0x2a6bbf=>_0x12550f['fromRange'](_0x2a6bbf));_0x204b39['setSelection'](_0x3772bd),_0x5e99cb['commands']['get'](_0x3044be['commandName'])['refresh'](),_0x3044be['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5e99cb['execute'](_0x3044be['commandName'],..._0x3044be['commandParams']),_0x204b39['setSelection'](_0xd9acc9);for(const _0x4f2e5b of _0xd9acc9)_0x4f2e5b['detach']();});}),_0xebb268['descriptionFactory']['registerElementLabel'](function(_0x17c04b){const _0x2fd453=!_0x5e99cb['model']['schema']['isObject'](_0x17c04b),_0x2734c6=_0x17c04b['previousSibling'],_0x3b9760=_0x17c04b['nextSibling'],_0x27566b=_0x17c04b['getAttribute']('listItemId'),_0x15c97a=!_0x2734c6||_0x2734c6['getAttribute']('listItemId')!==_0x27566b,_0x161015=!_0x3b9760||_0x3b9760['getAttribute']('listItemId')!==_0x27566b;return _0x2fd453&&Boolean(_0x27566b)&&_0x15c97a&&_0x161015;},_0x15ffd2=>o(_0xac213d,'ELEMENT_LIST_ITEM',_0x15ffd2));}['_registerLegacyDescription'](){const _0x46e965=this['editor'],_0x1ca3d1=_0x46e965['locale'];function _0x3550a7(_0x28ca16){const _0x7d4ec=_0x46e965['commands']['get']('bulletedList')['value'],_0x204977=_0x46e965['commands']['get']('numberedList')['value'];return'numberedList'===_0x28ca16?_0x7d4ec:_0x204977;}_0x46e965['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf98101){if('formatBlock'!=_0xf98101['type'])return;const {data:_0x437347}=_0xf98101;if(!_0x437347)return;let _0x1a21bc,_0x161691,_0x1c3ea4,_0x9fdbf4;switch(_0x437347['commandName']){case'bulletedList':_0x1c3ea4=_0x437347['commandParams'][0x0]['forceValue'],_0x9fdbf4=_0x3550a7(_0x437347['commandName']),_0x1a21bc=_0x1c3ea4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x9fdbf4&&_0x46e965['config']['get']('list.multiBlock')||(_0x1a21bc='*Change\x20to:*\x20%0'),_0x161691={'type':'format','content':o(_0x1ca3d1,_0x1a21bc,o(_0x1ca3d1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1c3ea4=_0x437347['commandParams'][0x0]['forceValue'],_0x9fdbf4=_0x3550a7(_0x437347['commandName']),_0x1a21bc=_0x1c3ea4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x9fdbf4&&_0x46e965['config']['get']('list.multiBlock')||(_0x1a21bc='*Change\x20to:*\x20%0'),_0x161691={'type':'format','content':o(_0x1ca3d1,_0x1a21bc,o(_0x1ca3d1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1a21bc='*Indent:*\x20%0',_0x161691={'type':'format','content':o(_0x1ca3d1,_0x1a21bc,o(_0x1ca3d1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1a21bc=function(_0x594d52){const _0x52401c=_0x594d52['getFirstRange']();let _0x3ac9e9=_0x52401c['start']['nodeAfter'];for(;_0x3ac9e9&&_0x52401c['containsItem'](_0x3ac9e9);){if(_0x3ac9e9['getAttribute']('listIndent')>0x0)return!0x1;_0x3ac9e9=_0x3ac9e9['nextSibling'];}return!0x0;}(_0xf98101)?o(_0x1ca3d1,'*Format:*\x20remove\x20from\x20%0',o(_0x1ca3d1,function(_0xc5926e){return'ELEMENT_'+_0xc5926e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf98101))):o(_0x1ca3d1,'*Outdent:*\x20%0',o(_0x1ca3d1,'ELEMENT_LIST_ITEM')),_0x161691={'type':'format','content':_0x1a21bc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x437347['multipleBlocks']&&(_0x1a21bc='*Merge:*\x20%0',_0x161691={'type':'deletion','content':o(_0x1ca3d1,_0x1a21bc,o(_0x1ca3d1,'ELEMENT_LIST_ITEM'))});}return _0x161691;});}}function Ee(_0x4da961){let _0x58fd40=_0x4da961['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x58fd40;){const _0x896abc=_0x58fd40['getAttribute']('listItemId');if(!_0x896abc)return!0x1;if(_0x896abc==_0x4da961['data']['newValue'])return'newValue';if(_0x896abc==_0x4da961['data']['oldValue'])return'oldValue';_0x58fd40=_0x58fd40['previousSibling'];}return!0x1;}class pe extends _0x4fe0d7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a6c2c=this['editor']['config']['get']('list.properties'),_0x548beb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a6c2c['styles']&&(_0x548beb['enableDefaultAttributesIntegration']('listStyle'),_0x548beb['registerBlockAttribute']('listStyle')),_0x2a6c2c['reversed']&&(_0x548beb['enableDefaultAttributesIntegration']('listReversed'),_0x548beb['registerBlockAttribute']('listReversed')),_0x2a6c2c['startIndex']&&(_0x548beb['enableDefaultAttributesIntegration']('listStart'),_0x548beb['registerBlockAttribute']('listStart'));const _0x4f2e49={'type':'format','content':''};_0x548beb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1b46c4=this['editor']['locale'];_0x548beb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1b46c4,'FORMAT_LIST_REVERSED')),_0x548beb['descriptionFactory']['registerDescriptionCallback'](_0x1826f1=>{const {data:_0x1b1615}=_0x1826f1;if(_0x1b1615&&'listReversed'==_0x1b1615['key'])return null==_0x1b1615['newValue']||0x0==_0x1b1615['newValue']&&null==_0x1b1615['oldValue']?_0x4f2e49:void 0x0;}),_0x548beb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1b46c4,'FORMAT_LIST_START')),_0x548beb['descriptionFactory']['registerDescriptionCallback'](_0x2d9730=>{const {data:_0x19204a}=_0x2d9730;if(_0x19204a&&'listStart'==_0x19204a['key'])return null==_0x19204a['newValue']||0x1==_0x19204a['newValue']&&null==_0x19204a['oldValue']?_0x4f2e49:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xedb411=>{if(_0xedb411['batch']['isUndo'])return!0x1;let _0x586ac7=!0x1;const _0x53c665=_0x548beb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28e0cc=>{const _0x3561a0=_0x548beb['_getAttributeKey'](_0x28e0cc);return'listStart'==_0x3561a0||'listReversed'==_0x3561a0;});for(const _0x29b8c4 of _0x53c665){const _0xca268b=_0x29b8c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xca268b||'customNumbered'==_0xca268b)continue;_0x548beb['_findSuggestions'](_0x29b8c4['getFirstRange'](),'attribute')['find'](_0x5b6f95=>'listType'==_0x548beb['_getAttributeKey'](_0x5b6f95['suggestion']))||(_0xedb411['removeMarker'](_0x29b8c4['getFirstMarker']()),_0x586ac7=!0x0);}return _0x586ac7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x399d28){const _0x1f40b9=this['editor']['locale'],{data:_0x42a1ee}=_0x399d28,_0x94ba70={'type':'format','content':''};if(!_0x42a1ee||'listStyle'!=_0x42a1ee['key'])return;if(!_0x42a1ee['oldValue'])return'default'==_0x42a1ee['newValue']?_0x94ba70:{'type':'format','content':''+o(_0x1f40b9,'*Set\x20format:*\x20%0',o(_0x1f40b9,this['_getTranslationKeyForListStyle'](_0x42a1ee['newValue'])))};if(!_0x42a1ee['newValue']){if('default'==_0x42a1ee['oldValue'])return _0x94ba70;let _0x298506=_0x399d28['head'];for(;_0x298506;){if(_0x298506['data']&&'listType'==_0x298506['data']['key']&&_0x298506['data']['newValue'])return _0x94ba70;_0x298506=_0x298506['next'];}return{'type':'format','content':''+o(_0x1f40b9,'*Remove\x20format:*\x20%0',o(_0x1f40b9,this['_getTranslationKeyForListStyle'](_0x42a1ee['oldValue'])))};}if('default'!=_0x42a1ee['newValue'])return{'type':'format','content':''+o(_0x1f40b9,'*Set\x20format:*\x20%0',o(_0x1f40b9,this['_getTranslationKeyForListStyle'](_0x42a1ee['newValue'])))};let _0x1d82b2=_0x399d28['head'];for(;_0x1d82b2;){if(_0x1d82b2['data']&&'listType'==_0x1d82b2['data']['key']&&_0x1d82b2['data']['newValue']&&_0x1d82b2['data']['oldValue'])return _0x94ba70;_0x1d82b2=_0x1d82b2['next'];}return{'type':'format','content':o(_0x1f40b9,'*Set\x20format:*\x20%0',o(_0x1f40b9,'ELEMENT_'+_0x399d28['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1e781d=this['editor'],_0x58a012=_0x1e781d['locale'];_0x1e781d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x242312=>{if('formatBlock'!=_0x242312['type'])return;const {data:_0x7835eb}=_0x242312;if(!_0x7835eb)return;let _0x569eca,_0x2300b4;switch(_0x7835eb['commandName']){case'listStyle':_0x569eca='*Change\x20to:*\x20%0',_0x2300b4={'type':'format','content':o(_0x58a012,_0x569eca,o(_0x58a012,this['_getTranslationKeyForListStyle'](_0x7835eb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x569eca=_0x7835eb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2300b4={'type':'format','content':o(_0x58a012,_0x569eca)};break;case'listStart':_0x569eca='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2300b4={'type':'format','content':o(_0x58a012,_0x569eca,_0x7835eb['commandParams'][0x0]['startIndex'])};}return _0x2300b4;});}['_getTranslationKeyForListStyle'](_0x359cfb){return'ELEMENT_'+function(_0x2ea783){if(ye['includes'](_0x2ea783))return'bulleted';if(Se['includes'](_0x2ea783))return'numbered';return null;}(_0x359cfb)['toUpperCase']()+'_LIST_'+_0x359cfb['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4fe0d7{static get['requires'](){return[_0x45c157];}['init'](){const _0x236616=this['editor'],_0x2b6ed5=_0x236616['plugins']['get']('TrackChangesEditing'),_0x55a854=_0x236616['commands']['get']('enter');_0x2b6ed5['enableCommand']('enter',()=>{_0x236616['model']['change'](_0x233ae7=>{const _0x27bb39=_0x236616['model']['document']['selection'],_0x58422c=_0x27bb39['getFirstPosition'](),_0x38f485=_0x12550f['fromRange'](_0x27bb39['getFirstRange']());if(_0x55a854['enterBlock'](_0x233ae7)){const _0x4a0b91=_0x236616['model']['createPositionAt'](_0x58422c['parent']['nextSibling'],0x0),_0x43befe=_0x233ae7['createRange'](_0x58422c,_0x4a0b91);_0x2b6ed5['markInsertion'](_0x43befe);}else _0x233ae7['setSelection'](_0x233ae7['createRange'](_0x38f485['end']));_0x38f485['detach'](),_0x55a854['fire']('afterExecute',{'writer':_0x233ae7});});}),_0x236616['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x236616,'split'),{'priority':'high'}),_0x236616['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2f49d2,_0x31c815,_0x504c37)=>{const _0x3a260e=_0x504c37['mapper']['markerNameToElements'](_0x31c815['markerName']);if(_0x3a260e){for(const _0x3b5a6e of _0x3a260e)_0x3b5a6e['hasClass']('ck-suggestion-marker-split')&&(_0x504c37['mapper']['unbindElementFromMarkerName'](_0x3b5a6e,_0x31c815['markerName']),_0x504c37['writer']['remove'](_0x3b5a6e));}},{'priority':'high'}),_0x236616['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d40a4,_0x46cbfc,_0x49c0d4)=>{_0x49c0d4['options']['showSuggestionHighlights']&&_e(_0x236616,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5d40a4,_0x46cbfc,_0x49c0d4);},{'priority':'high'});}}class X extends _0x4fe0d7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x50f95a=this['editor']['plugins']['get']('TrackChangesEditing');_0x50f95a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x50f95a['enableCommand']('findNext'),_0x50f95a['enableCommand']('findPrevious'),_0x50f95a['enableCommand']('replace'),_0x50f95a['enableCommand']('replaceAll');}['handleFindCommand'](_0x5978de,_0x3ad155,_0x2a7809={}){const _0x1505db=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5978de(_0x101420=>{let _0x1d191d=('string'==typeof _0x3ad155?_0x1505db['findByTextCallback'](_0x3ad155,_0x2a7809):_0x3ad155)(_0x101420);Array['isArray'](_0x1d191d)&&(_0x1d191d={'results':_0x1d191d,'searchText':'string'==typeof _0x3ad155?_0x3ad155:''});const _0x1ef89c=_0x1d191d['results']['filter'](_0xbbbfdb=>!0x1===this['_isInDeletionRange'](_0xbbbfdb,_0x101420['item']));return{..._0x1d191d,'results':_0x1ef89c};},_0x2a7809);}['_isInDeletionRange'](_0x15c440,_0x58b3cc){const _0x1b21de=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58b3cc,_0x15c440['start']),this['editor']['model']['createPositionAt'](_0x58b3cc,_0x15c440['end']));for(const _0x333486 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1b21de['getIntersection'](_0x333486['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 _0x4fe0d7{['afterInit'](){const _0x11b61c=this['editor']['locale'],_0xff42b1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4e8f8d,commandName:_0x381f1a}of ro)this['editor']['plugins']['has'](_0x4e8f8d)&&(_0xff42b1['enableDefaultAttributesIntegration'](_0x381f1a),_0xff42b1['registerInlineAttribute'](_0x381f1a));_0xff42b1['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11b61c,'FORMAT_FONT_SIZE')),_0xff42b1['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11b61c,'FORMAT_FONT_FAMILY')),_0xff42b1['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11b61c,'FORMAT_FONT_COLOR')),_0xff42b1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11b61c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x446cf8=this['editor'],_0xb03961=_0x446cf8['locale'];_0x446cf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x793036=>{const _0x2ce747=_0xb03961['t'];if('formatInline'!=_0x793036['type'])return;const {data:_0x16b6c9}=_0x793036;if(null!=_0x16b6c9){if('fontSize'==_0x16b6c9['commandName']){const _0x318657=_0x16b6c9['commandParams'][0x0]['value'];if(_0x318657){const _0x1796c5=_0x2ce747(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c951d=>_0x4c951d['model']==_0x318657)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb03961,'*Set\x20font\x20size:*\x20%0',_0x1796c5)};}return{'type':'format','content':o(_0xb03961,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x16b6c9['commandName']){const _0x42e390=_0x16b6c9['commandParams'][0x0]['value'];return _0x42e390?{'type':'format','content':o(_0xb03961,'*Set\x20font\x20family:*\x20%0',_0x42e390)}:{'type':'format','content':o(_0xb03961,'*Reset\x20font\x20family*')};}if('fontColor'==_0x16b6c9['commandName']){const _0x5cfb98=_0x16b6c9['commandParams'][0x0]['value'];if(_0x5cfb98){const _0x4405f2=_0x6369f3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x24dd54=>_0x24dd54['model']==_0x5cfb98);let _0x40a1bf=_0x5cfb98,_0x45320b='';return _0x4405f2&&(_0x40a1bf=_0x4405f2['label'],_0x45320b=_0x2ce747(_0x40a1bf)['toLowerCase']()),{'type':'format','content':o(_0xb03961,'*Set\x20font\x20color:*\x20%0',_0x45320b)['trim'](),'color':{'value':_0x5cfb98,'title':_0x45320b||_0x40a1bf}};}return{'type':'format','content':o(_0xb03961,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x16b6c9['commandName']){const _0x47b827=_0x16b6c9['commandParams'][0x0]['value'];if(_0x47b827){const _0x5dee87=_0x6369f3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x410fe5=>_0x410fe5['model']==_0x47b827);let _0x243667=_0x47b827,_0x1f6792='';return _0x5dee87&&(_0x243667=_0x5dee87['label'],_0x1f6792=_0x2ce747(_0x243667)['toLowerCase']()),{'type':'format','content':o(_0xb03961,'*Set\x20font\x20background\x20color:*\x20%0',_0x1f6792)['trim'](),'color':{'value':_0x47b827,'title':_0x1f6792||_0x243667}};}return{'type':'format','content':o(_0xb03961,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x4fe0d7{['afterInit'](){const _0x2209a8=this['editor'],_0x175146=_0x2209a8['plugins']['get']('TrackChangesEditing'),_0x8737=_0x2209a8['commands']['get']('copyFormat'),_0x2212b8=_0x2209a8['commands']['get']('pasteFormat');_0x8737&&_0x2212b8&&(_0x175146['enableDefaultAttributesIntegration']('pasteFormat'),_0x175146['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x52cf31=this['editor'],_0x1d5b02=_0x52cf31['locale'];_0x52cf31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d6150=>{if('formatBlock'!=_0x4d6150['type']&&'formatInline'!=_0x4d6150['type'])return;const {data:_0x41af12}=_0x4d6150;if(_0x41af12&&'pasteFormat'===_0x41af12['commandName']){const _0x2e921e=[],_0x4258e8=_0x41af12['commandParams'][0x0];for(const [_0x2100cf,_0x5a2e14]of Object['entries'](_0x4258e8))_0x2e921e['push'](so(_0x52cf31,_0x2100cf,_0x5a2e14));return _0x2e921e['length']?{'type':'format','content':o(_0x1d5b02,'*Set\x20format\x20to:*\x20%0',_0x2e921e['join'](',\x20'))}:{'type':'format','content':o(_0x1d5b02,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4242ea,_0x25151f,_0x48adae){const _0x5b9a58=_0x4242ea['locale']['t'],_0x16b6b5=_0x25151f['split'](/(?=[A-Z])/)['join']('\x20'),_0x9ed8b7=_0x5b9a58(_0x16b6b5['charAt'](0x0)['toUpperCase']()+_0x16b6b5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x48adae)return _0x9ed8b7;if('fontColor'===_0x25151f||'fontBackgroundColor'===_0x25151f){const _0x227fc9=_0x6369f3(_0x4242ea['config']['get']('fontColor.colors'))['find'](_0x309c12=>_0x309c12['model']==_0x48adae);return _0x9ed8b7+'\x20('+(_0x227fc9?_0x5b9a58(_0x227fc9['label'])['toLowerCase']():_0x48adae)+')';}if('fontSize'===_0x25151f&&isNaN(parseFloat(_0x48adae))){const _0x36aa50=_0x4242ea['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4242ea['config']['get']('fontSize.options'))['find'](_0xfa8c9=>_0xfa8c9['model']==_0x48adae);return _0x9ed8b7+'\x20('+(_0x36aa50?_0x5b9a58(_0x36aa50['title'])['toLowerCase']():_0x48adae)+')';}return _0x9ed8b7+'\x20('+_0x48adae+')';}class tt extends _0x4fe0d7{['_headingOptions'];['afterInit'](){const _0x52b2fb=this['editor'];if(!_0x52b2fb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x52b2fb['config']['get']('heading.options');const _0x3eaa05=_0x52b2fb['locale'],_0x5d2563=_0x52b2fb['plugins']['get']('TrackChangesEditing');_0x5d2563['enableDefaultAttributesIntegration']('heading');for(const _0x331f92 of this['_headingOptions'])'paragraph'!=_0x331f92['model']&&_0x5d2563['descriptionFactory']['registerElementLabel'](_0x331f92['model'],_0x39f918=>{const _0x34a69d=this['_getHeadingLevel'](_0x331f92['model']);return null!==_0x34a69d?_0x4e5e10(_0x39f918,_0x34a69d):_0x3c7456(_0x39f918,_0x331f92['title']);});function _0x4e5e10(_0x3fe9c5,_0x2ec2d6){return o(_0x3eaa05,'ELEMENT_HEADING',[_0x3fe9c5,_0x2ec2d6]);}function _0x3c7456(_0x52e370,_0x3b8655){return o(_0x3eaa05,'ELEMENT_HEADING_CUSTOM',[_0x52e370,_0x3b8655]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e22b5=this['editor'],_0x199a6e=_0x5e22b5['locale'];function _0x359821(_0x3b0c38,_0x1def0e){return o(_0x199a6e,'ELEMENT_HEADING_CUSTOM',[_0x3b0c38,_0x1def0e]);}_0x5e22b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2225ff=>{if('formatBlock'!=_0x2225ff['type'])return;const {data:_0x5b6734}=_0x2225ff;if(_0x5b6734&&'heading'==_0x5b6734['commandName']){const _0x55e687=_0x5b6734['commandParams'][0x0]['value'],_0x577607=this['_getHeadingLevel'](_0x55e687);if(null!==_0x577607)return{'type':'format','content':o(_0x199a6e,'*Change\x20to:*\x20%0',(_0x2fe2ce=0x1,_0x14b3aa=_0x577607,o(_0x199a6e,'ELEMENT_HEADING',[_0x2fe2ce,_0x14b3aa])))};const _0x517428=this['_headingOptions']['find'](_0x41d733=>_0x41d733['model']===_0x55e687)['title'];return{'type':'format','content':o(_0x199a6e,'*Change\x20to:*\x20%0',_0x359821(0x1,_0x517428))};}var _0x2fe2ce,_0x14b3aa;});}['_getHeadingLevel'](_0x5969e3){const _0x345008=_0x5969e3['match'](/^heading(\d+)/);if(_0x345008)return _0x345008[0x1];const _0x112d69=this['_headingOptions']?.['find'](_0x268619=>_0x268619['model']==_0x5969e3);if(_0x112d69&&_0x112d69['view']){const _0x2aa60d=_0x112d69['view'],_0x705805=(_0x2aa60d['name']??_0x2aa60d)['match'](/^h(\d+)/);if(_0x705805)return _0x705805[0x1];}return null;}}class et extends _0x4fe0d7{['afterInit'](){const _0x4d8789=this['editor'];if(!_0x4d8789['plugins']['has']('HighlightEditing'))return;const _0x122422=_0x4d8789['plugins']['get']('TrackChangesEditing'),_0x1b74ab=_0x4d8789['locale'];_0x122422['enableDefaultAttributesIntegration']('highlight'),_0x122422['registerInlineAttribute']('highlight'),_0x122422['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b74ab,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b9f0b=this['editor'],_0x2faf3e=_0x5b9f0b['locale'];_0x5b9f0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2fbe=>{if('formatInline'!=_0x3d2fbe['type'])return;const {data:_0x2d9aaa}=_0x3d2fbe;if(_0x2d9aaa&&'highlight'==_0x2d9aaa['commandName']){const _0x4cd812=_0x2faf3e['t'],_0x3f3d62=_0x2d9aaa['commandParams'][0x0]['value'];if(_0x3f3d62){const _0x3ca0a5=_0x5b9f0b['config']['get']('highlight.options')['find'](_0x5e45f0=>_0x5e45f0['model']==_0x3f3d62),_0x368294=_0x4cd812(_0x3ca0a5['title'])['toLowerCase']();return{'type':'format','content':o(_0x2faf3e,'*Set\x20highlight:*\x20%0',_0x368294),'color':{'value':_0x3ca0a5['color'],'title':_0x3ca0a5['title']}};}return{'type':'format','content':o(_0x2faf3e,'*Remove\x20highlight*',o(_0x2faf3e,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4fe0d7{['afterInit'](){const _0x290f9a=this['editor'];if(!_0x290f9a['plugins']['has']('HorizontalLineEditing'))return;_0x290f9a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x58c9d1=_0x290f9a['plugins']['get']('TrackChangesEditing'),_0x2417e2=_0x290f9a['locale'];_0x58c9d1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33a430=>o(_0x2417e2,'ELEMENT_HORIZONTAL_LINE',_0x33a430)),_0x290f9a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5e0227,{writer:_0x41ec93,options:_0x2c02cc})=>{if(!_0x2c02cc['showSuggestionHighlights'])return null;const _0x2c50ca=_0x41ec93['createContainerElement']('div'),_0x3d9735=_0x41ec93['createEmptyElement']('hr');return _0x41ec93['addClass']('ck-horizontal-line',_0x2c50ca),_0x41ec93['insert'](_0x41ec93['createPositionAt'](_0x2c50ca,0x0),_0x3d9735),_0x2c50ca;},'converterPriority':'high'});}}class st extends _0x4fe0d7{['afterInit'](){const _0x3af339=this['editor'];if(!_0x3af339['plugins']['has']('HtmlEmbed'))return;const _0x564456=_0x3af339['plugins']['get']('TrackChangesEditing'),_0x4567fd=_0x3af339['locale'];_0x564456['descriptionFactory']['registerElementLabel']('rawHtml',_0x3e4256=>o(_0x4567fd,'ELEMENT_HTML_EMBED',_0x3e4256)),_0x564456['enableDefaultAttributesIntegration']('htmlEmbed'),_0x564456['registerBlockAttribute']('value'),_0x564456['descriptionFactory']['registerDescriptionCallback'](_0x5f3fc2=>{if('attribute'!=_0x5f3fc2['type'])return;const {data:_0x13c3fc}=_0x5f3fc2;if(_0x13c3fc&&'value'==_0x13c3fc['key']&&_0x5f3fc2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x57a180=o(_0x4567fd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4567fd,'*Change\x20%0\x20content*',_0x57a180)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x379400=this['editor'],_0x3d406a=_0x379400['locale'];_0x379400['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c8cf1=>{if('formatBlock'!=_0x3c8cf1['type'])return;const {data:_0x5af314}=_0x3c8cf1;if(_0x5af314&&'htmlEmbed'==_0x5af314['commandName']){const _0x2747db=o(_0x3d406a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3d406a,'*Change\x20%0\x20content*',_0x2747db)};}});}}class nt extends _0x4fe0d7{['afterInit'](){const _0x378f26=this['editor'];if(!_0x378f26['plugins']['has']('ImageEditing'))return;const _0x308252=_0x378f26['plugins']['get']('TrackChangesEditing'),_0x307e27=_0x378f26['plugins']['get']('ImageUtils'),_0x59e2a3=_0x378f26['locale'];_0x308252['enableCommand']('insertImage'),_0x308252['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e5ce2=>o(_0x59e2a3,'ELEMENT_IMAGE',_0x5e5ce2)),_0x308252['descriptionFactory']['registerElementLabel']('imageInline',_0x45fd54=>o(_0x59e2a3,'ELEMENT_INLINE_IMAGE',_0x45fd54)),_0x308252['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x59e2a3,'ELEMENT_CAPTION')),_0x378f26['plugins']['has']('ImageUploadEditing')&&_0x308252['enableCommand']('uploadImage'),_0x378f26['plugins']['has']('ImageBlockEditing')&&_0x378f26['plugins']['has']('ImageInlineEditing')&&(_0x308252['enableCommand']('imageTypeInline',(_0x51827f,_0x597b19)=>{const _0x1a6e01=_0x307e27['getClosestSelectedImageElement'](_0x378f26['model']['document']['selection']);_0x378f26['model']['change'](()=>{_0x308252['markBlockFormat'](_0x1a6e01,{'commandName':'imageTypeInline','commandParams':[_0x597b19]},[],'convertBlockImageToInline');});}),_0x308252['enableCommand']('imageTypeBlock',(_0x127a0b,_0x3a9074)=>{_0x378f26['model']['change'](_0x228ddb=>{let _0x43d5a3=_0x307e27['getClosestSelectedImageElement'](_0x378f26['model']['document']['selection']),_0x4495b8=_0x228ddb['createRangeOn'](_0x43d5a3);const _0x239645=_0x4f5588['fromPosition'](_0x4495b8['start'],'toPrevious'),_0x183578=_0x4f5588['fromPosition'](_0x4495b8['end'],'toNext');_0x308252['forceDefaultExecution'](()=>_0x127a0b(_0x3a9074)),_0x43d5a3=_0x307e27['getClosestSelectedImageElement'](_0x378f26['model']['document']['selection']),_0x4495b8=_0x228ddb['createRangeOn'](_0x43d5a3);const _0x445152=_0x228ddb['createRange'](_0x239645,_0x183578);_0x239645['detach'](),_0x183578['detach'](),_0x308252['markBlockFormat'](_0x43d5a3,{'commandName':'imageTypeInline','commandParams':[_0x3a9074]},[],'convertInlineImageToBlock'),_0x445152['start']['isBefore'](_0x4495b8['start'])&&_0x308252['markInsertion'](_0x228ddb['createRange'](_0x445152['start'],_0x4495b8['start']),'convertInlineImageToBlock'),_0x4495b8['end']['isBefore'](_0x445152['end'])&&_0x308252['markInsertion'](_0x228ddb['createRange'](_0x4495b8['end'],_0x445152['end']),'convertInlineImageToBlock');});}),_0x308252['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x308252['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x308252['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x308252['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x308252['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x308252['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c15c0])=>{const _0x48f87f=_0x308252['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x13577b=_0x3c15c0['start'],_0x177e3d=_0x3c15c0['end'];const _0x1a46e1=_0x378f26['model']['schema']['getNearestSelectionRange'](_0x13577b,'backward'),_0x4827b9=_0x378f26['model']['schema']['getNearestSelectionRange'](_0x177e3d,'forward');_0x1a46e1['isCollapsed']&&(_0x13577b=_0x1a46e1['start']),_0x4827b9['isCollapsed']&&(_0x177e3d=_0x4827b9['end']),_0x48f87f([_0x378f26['model']['createRange'](_0x13577b,_0x177e3d)]);}),_0x308252['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x45b385),_0x308252['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x45b385)),_0x378f26['plugins']['has']('ImageCaptionEditing')&&(_0x308252['enableCommand']('toggleImageCaption',(_0x5d55f9,_0x1578f7)=>{const _0x1c579e=_0x378f26['plugins']['get']('ImageCaptionUtils');let _0x8b06e6=_0x307e27['getClosestSelectedImageElement'](_0x378f26['model']['document']['selection']),_0x1fea9a=_0x1c579e['getCaptionFromImageModelElement'](_0x8b06e6);_0x378f26['model']['change'](()=>{if(_0x1fea9a)return void _0x308252['markDeletion'](_0x378f26['model']['createRangeOn'](_0x1fea9a));const _0x22d704=_0x307e27['isBlockImage'](_0x8b06e6);_0x5d55f9(_0x1578f7),_0x8b06e6=_0x307e27['getClosestSelectedImageElement'](_0x378f26['model']['document']['selection']),_0x1fea9a=_0x1c579e['getCaptionFromImageModelElement'](_0x8b06e6),_0x308252['markInsertion'](_0x378f26['model']['createRangeOn'](_0x1fea9a),_0x22d704?null:'imageCaption');});}),_0x308252['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x45b385));const _0x5ca3c5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4005c6(_0x5e14a9,_0xba848e){const _0x532f8e=_0x5ca3c5['findIndex'](({type:_0x22b41d,subType:_0xc7eb9b})=>_0x5e14a9['type']==_0x22b41d&&_0x5e14a9['subType']==_0xc7eb9b),_0x232c0e=_0x5ca3c5['findIndex'](({type:_0x5ab13f,subType:_0x1463fb})=>_0xba848e['type']==_0x5ab13f&&_0xba848e['subType']==_0x1463fb);if(_0x532f8e<0x0||_0x232c0e<0x0)return!0x1;const _0x1cf286=_0x5e14a9['getFirstRange'](),_0x1d09fc=_0xba848e['getFirstRange']();if((0x0==_0x532f8e||0x1==_0x532f8e)&&0x2==_0x232c0e&&_0x1cf286['isIntersecting'](_0x1d09fc))return!0x0;if(0x2==_0x532f8e&&0x3==_0x232c0e){const _0x7e608c=_0x308252['_findSuggestions'](_0x1cf286,'insertion')['filter'](({suggestion:_0x29f0ef,meta:_0xdb2dfd})=>_0xdb2dfd['isOwn']&&'convertInlineImageToBlock'==_0x29f0ef['subType']);if(_0x7e608c['length']>0x1&&_0x1d09fc['end']['isEqual'](_0x1cf286['start']))return!0x0;if(0x1==_0x7e608c['length']&&(_0x1cf286['start']['isEqual'](_0x1d09fc['end'])||_0x1cf286['end']['isEqual'](_0x1d09fc['start'])))return!0x0;}if(0x3==_0x532f8e&&0x3==_0x232c0e&&_0x1cf286['start']['isBefore'](_0x1d09fc['start'])){const _0x4e2de0=_0x1cf286['end']['nodeAfter'],_0x4d8ba1=_0x1d09fc['start']['nodeBefore'];return _0x307e27['isBlockImage'](_0x4e2de0)&&_0x4e2de0===_0x4d8ba1;}return!0x1;}function _0x45b385(_0x572384,_0x437528){return _0x4005c6(_0x572384,_0x437528)?[_0x572384,_0x437528]:_0x4005c6(_0x437528,_0x572384)?[_0x437528,_0x572384]:null;}_0x378f26['plugins']['has']('ImageResize')&&(_0x308252['enableDefaultAttributesIntegration']('resizeImage'),_0x308252['registerBlockAttribute']('resizedWidth'),_0x308252['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x59e2a3,'FORMAT_IMAGE_SIZE'))),_0x378f26['plugins']['has']('ImageTextAlternativeEditing')&&(_0x308252['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x308252['registerBlockAttribute']('alt')),_0x308252['descriptionFactory']['registerDescriptionCallback'](_0xbfa55d=>{if(!!_0x5ca3c5['find'](({type:_0x542aac,subType:_0x3af670})=>_0xbfa55d['type']==_0x542aac&&_0xbfa55d['subType']==_0x3af670))return _0xbfa55d['previous']?{}:void 0x0;}),_0x308252['descriptionFactory']['registerDescriptionCallback'](_0x99c38b=>{if('insertion'==_0x99c38b['type']||'deletion'==_0x99c38b['type']){const _0x2ded08=_0x99c38b['getContainedElement']();if(_0x2ded08&&_0x2ded08['is']('element','caption'))return{'type':'insertion'==_0x99c38b['type']?'addObject':'removeObject','element':_0x2ded08,'quantity':0x1};}}),_0x308252['descriptionFactory']['registerDescriptionCallback'](_0x4fdef4=>'formatBlock'==_0x4fdef4['type']&&'convertInlineImageToBlock'==_0x4fdef4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4fdef4['type']&&'convertBlockImageToInline'==_0x4fdef4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x308252['descriptionFactory']['registerDescriptionCallback'](_0x37f3a9=>{if('attribute'!=_0x37f3a9['type'])return;const {data:_0x2e7403}=_0x37f3a9;if(!_0x2e7403||'alt'!=_0x2e7403['key'])return;const _0x5f1224=_0x2e7403['newValue'];return _0x5f1224?{'type':'format','content':o(_0x59e2a3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5f1224+'\x22')}:{'type':'format','content':o(_0x59e2a3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x518797=this['editor'],_0x3a28a4=_0x518797['locale'];_0x518797['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x189498=>{if('formatBlock'!=_0x189498['type']&&'formatInline'!=_0x189498['type'])return;const {data:_0x37a794}=_0x189498;if(_0x37a794){if('imageTextAlternative'==_0x37a794['commandName']){const _0x49d714=_0x37a794['commandParams'][0x0]['newValue'];return _0x49d714?{'type':'format','content':o(_0x3a28a4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49d714+'\x22')}:{'type':'format','content':o(_0x3a28a4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x37a794['commandName']){const _0xb73d2c=_0x37a794['commandParams'][0x0]['width'];return _0xb73d2c?{'type':'format','content':o(_0x3a28a4,'*Set\x20image\x20width:*\x20%0',_0xb73d2c)}:{'type':'format','content':o(_0x3a28a4,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x4fe0d7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x203228=this['editor']['locale'],_0x12272a=this['editor']['plugins']['get']('TrackChangesEditing');_0x12272a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x12272a['registerBlockAttribute']('src'),_0x12272a['descriptionFactory']['registerDescriptionCallback'](_0x113e7a=>{if('attribute'!=_0x113e7a['type'])return;const {data:_0x1b22d3}=_0x113e7a;return _0x1b22d3&&'src'==_0x1b22d3['key']?_0x1b22d3['newValue']&&_0x1b22d3['oldValue']?{'type':'format','content':o(_0x203228,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59f010=this['editor']['plugins']['get']('TrackChangesEditing');_0x59f010['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x59f010['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59f010['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x59f010['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bea64=this['editor'],_0x4bd005=_0x1bea64['locale'];_0x1bea64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353162=>{if('formatBlock'!=_0x353162['type']&&'formatInline'!=_0x353162['type'])return;const {data:_0x2d59bf}=_0x353162;if(!_0x2d59bf||'replaceImageSource'!=_0x2d59bf['commandName'])return;return{'type':'format','content':o(_0x4bd005,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x4fe0d7{['afterInit'](){const _0x223cb2=this['editor'];if(!_0x223cb2['plugins']['has']('ImageStyleEditing'))return;const _0x2908d5=_0x223cb2['plugins']['get']('TrackChangesEditing'),_0x1cf8e4=_0x223cb2['plugins']['get']('ImageUtils'),_0x1f68bf={};_0x2908d5['enableCommand']('imageStyle',(_0x49d17d,_0x207d09)=>{const _0x1d08b7=_0x223cb2['plugins']['get']('Users')['me'],_0x468b9a=_0x223cb2['commands']['get']('imageStyle');let _0x50d3fd=_0x1cf8e4['getClosestSelectedImageElement'](_0x223cb2['model']['document']['selection']),_0x87a6bf=_0x223cb2['model']['createRangeOn'](_0x50d3fd),_0x230bdb=_0x468b9a['value'];if(_0x230bdb==_0x207d09['value'])return;const _0x3b5411={'commandName':'imageStyle','commandParams':[_0x207d09],'formatGroupId':_0x13e654()};_0x223cb2['model']['change'](()=>{if(_0x2908d5['getSuggestions']()['filter'](_0x259829=>_0x259829['isInContent']&&_0x1d08b7==_0x259829['author']&&('formatBlock'==_0x259829['type']||'formatInline'==_0x259829['type'])&&('imageStylePreApply'==_0x259829['subType']||'imageStylePostApply'==_0x259829['subType'])&&_0x259829['getFirstRange']()['isEqual'](_0x87a6bf))['forEach'](_0x41992e=>_0x2908d5['discardSuggestion'](_0x41992e['head'])),_0x50d3fd=_0x1cf8e4['getClosestSelectedImageElement'](_0x223cb2['model']['document']['selection']),_0x87a6bf=_0x223cb2['model']['createRangeOn'](_0x50d3fd),_0x468b9a['refresh'](),_0x223cb2['commands']['get']('imageTypeInline')['refresh'](),_0x223cb2['commands']['get']('imageTypeBlock')['refresh'](),_0x230bdb=_0x468b9a['value'],_0x230bdb!=_0x207d09['value'])return _0x1cf8e4['isInlineImage'](_0x50d3fd)&&_0x468b9a['shouldConvertImageType'](_0x207d09['value'],_0x50d3fd)?(_0x49d17d({..._0x207d09,'setImageSizes':!0x1}),_0x50d3fd=_0x1cf8e4['getClosestSelectedImageElement'](_0x223cb2['model']['document']['selection']),void _0x2908d5['markBlockFormat'](_0x50d3fd,{..._0x3b5411,'commandReversedParams':[{'value':_0x230bdb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1cf8e4['isBlockImage'](_0x50d3fd)?_0x2908d5['markBlockFormat'](_0x50d3fd,_0x3b5411,[],'imageStylePostApply'):_0x2908d5['markInlineFormat'](_0x87a6bf,_0x3b5411,'imageStylePostApply'));});});for(const _0x532c51 of _0x223cb2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f68bf[_0x532c51['name']]=_0x532c51['title']['toLowerCase']();_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5e2462])=>{_0x1cf8e4['setImageNaturalSizeAttributes'](_0x5e2462['getContainedElement']());}),_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x15b0b3,_0x2a752e)=>{_0x2908d5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x15b0b3,{'commandName':_0x2a752e['commandName'],'commandParams':_0x2a752e['commandReversedParams']});}),_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4dafcf,_0xfdefd5){if(_0x11e587(_0x4dafcf,_0xfdefd5))return[_0x4dafcf,_0xfdefd5];if(_0x11e587(_0xfdefd5,_0x4dafcf))return[_0xfdefd5,_0x4dafcf];return null;});const _0x29f1cb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x11e587(_0x5566bd,_0x3d1801){const _0x2bd6ca=_0x29f1cb['findIndex'](({type:_0x1f80b3,subType:_0x51a6b9})=>_0x5566bd['type']==_0x1f80b3&&_0x5566bd['subType']==_0x51a6b9),_0x35d502=_0x29f1cb['findIndex'](({type:_0x2e71fd,subType:_0x480948})=>_0x3d1801['type']==_0x2e71fd&&_0x3d1801['subType']==_0x480948);if(_0x2bd6ca<0x0||_0x35d502<0x0)return!0x1;const _0xc641fa=_0x5566bd['getFirstRange'](),_0x3e3a7f=_0x3d1801['getFirstRange']();if((0x0==_0x2bd6ca||0x1==_0x2bd6ca)&&0x2==_0x35d502&&_0xc641fa['isIntersecting'](_0x3e3a7f))return!0x0;if(0x2==_0x2bd6ca&&0x3==_0x35d502){const _0x735d0d=_0x2908d5['_findSuggestions'](_0xc641fa,'insertion')['filter'](({suggestion:_0x5bc20b,meta:_0x2ee255})=>_0x2ee255['isOwn']&&'convertInlineImageToBlock'==_0x5bc20b['subType']);if(_0x735d0d['length']>0x1&&_0x3e3a7f['end']['isEqual'](_0xc641fa['start']))return!0x0;if(0x1==_0x735d0d['length']&&(_0xc641fa['start']['isEqual'](_0x3e3a7f['end'])||_0xc641fa['end']['isEqual'](_0x3e3a7f['start'])))return!0x0;}if(0x3==_0x2bd6ca&&0x3==_0x35d502&&_0xc641fa['start']['isBefore'](_0x3e3a7f['start'])){const _0x1832d8=_0xc641fa['end']['nodeAfter'],_0xe9fc8b=_0x3e3a7f['start']['nodeBefore'];return _0x1cf8e4['isBlockImage'](_0x1832d8)&&_0x1832d8===_0xe9fc8b;}return!0x1;}_0x223cb2['model']['document']['registerPostFixer'](()=>{let _0xc690b1=!0x1;const _0x4a3701=Array['from'](_0x223cb2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e93b3,data:_0x419efa}of _0x4a3701){const {group:_0x305078,type:_0x49530b,subType:_0x3ae6f0,id:_0xe6af27}=_0x2908d5['_splitMarkerName'](_0x2e93b3);if('suggestion'==_0x305078&&_0x2908d5['hasSuggestion'](_0xe6af27)){if('formatBlock'==_0x49530b&&('imageStylePreApply'==_0x3ae6f0||'imageStylePostApply'==_0x3ae6f0)){const _0x5a7ebf=_0x2908d5['getSuggestion'](_0xe6af27);if(_0x419efa['newRange']){const _0x14ce00=_0x5a7ebf['getFirstRange']()['getContainedElement']();if(_0x1cf8e4['isBlockImage'](_0x14ce00))continue;_0x2908d5['discardSuggestion'](_0x5a7ebf),_0xc690b1=!0x0;}}if('insertion'==_0x49530b&&'imageCaption'==_0x3ae6f0&&!_0x419efa['newRange']){const _0x2fc4aa=_0x2908d5['getSuggestion'](_0xe6af27);_0x2fc4aa['next']&&_0x2fc4aa['next']['isInContent']&&(_0x2908d5['discardSuggestion'](_0x2fc4aa['next']),_0xc690b1=!0x0);}}}return _0xc690b1;}),this['_registerLegacyDescription'](_0x1f68bf);}['_registerLegacyDescription'](_0x3c7375){const _0xbd4c7c=this['editor'],_0x45f045=_0xbd4c7c['locale'];_0xbd4c7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8e1e=>{if('formatBlock'!=_0x4f8e1e['type']&&'formatInline'!=_0x4f8e1e['type'])return;const {data:_0x1d55f3}=_0x4f8e1e;if(!_0x1d55f3||'imageStyle'!=_0x1d55f3['commandName'])return;const _0x3eb171=_0x1d55f3['commandParams'][0x0]['value'];return _0x1156d6('side'===_0x3eb171?o(_0x45f045,'FORMAT_SIDE_IMAGE'):_0x3c7375[_0x3eb171]||_0x3eb171);function _0x1156d6(_0x10a9f8){return{'type':'format','content':o(_0x45f045,'*Format:*\x20%0',_0x10a9f8)};}});}}class at extends _0x4fe0d7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4e53db){super(_0x4e53db),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x54099f=this['editor'],_0x269347=_0x54099f['commands']['get']('importWord'),_0x423108=_0x54099f['commands']['get']('trackChanges');_0x269347&&(_0x269347['on']('execute',(_0x16d567,[,_0x57f206])=>{this['_trackChangesValueDuringImport']=_0x423108['value'],_0x57f206['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x269347,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x269347,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x423108['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x54099f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5d3c04,_0x2e7ea2){const {suggestions:_0x1cbf8a}=_0x2e7ea2,_0x182dd6=this['editor']['commands']['get']('trackChanges'),_0x4357cc=_0x182dd6['value'];this['_trackChangesValueDuringImport']!==_0x4357cc&&(_0x182dd6['execute'](),this['_trackChangesExecuted']=!0x0),_0x1cbf8a&&_0x1cbf8a['forEach'](({id:_0x4504be,type:_0xbefb2d,author:_0x38658c,created_at:_0xe96eab})=>{const _0x22852e={'id':_0x4504be,'type':_0xbefb2d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38658c,'createdAt':_0xe96eab?new Date(_0xe96eab):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x22852e);});}}class ct extends _0x4fe0d7{['afterInit'](){const _0x3ac670=this['editor'],_0x56302e=_0x3ac670['plugins']['get']('TrackChangesEditing');if(_0x3ac670['plugins']['has']('IndentEditing')&&(_0x56302e['enableCommand']('indent'),_0x56302e['enableCommand']('outdent')),_0x3ac670['plugins']['has']('IndentBlock')){for(const _0x3ba871 of['indentBlock','outdentBlock'])_0x56302e['enableDefaultAttributesIntegration'](_0x3ba871);}const _0x2a2695=_0x3ac670['locale'];_0x56302e['registerBlockAttribute']('blockIndent'),_0x56302e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2a2695,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c8556=this['editor'],_0x4d4299=_0x1c8556['locale'],_0x107531=_0x1c8556['plugins']['get']('TrackChangesEditing');_0x107531['descriptionFactory']['registerDescriptionCallback'](_0x2dc47a=>{if('formatBlock'!=_0x2dc47a['type'])return;const {data:_0x5aefc8}=_0x2dc47a;if(!_0x5aefc8)return;if('indentBlock'!=_0x5aefc8['commandName']&&'outdentBlock'!=_0x5aefc8['commandName'])return;const _0x4c9181=_0x2dc47a['getItems']()[0x0],_0x553e39=_0x107531['descriptionFactory']['getItemLabel'](_0x4c9181);return'indentBlock'==_0x5aefc8['commandName']?{'type':'format','content':o(_0x4d4299,'*Indent:*\x20%0',_0x553e39)}:'outdentBlock'==_0x5aefc8['commandName']?{'type':'format','content':o(_0x4d4299,'*Outdent:*\x20%0',_0x553e39)}:void 0x0;});}}class ut extends _0x4fe0d7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4fe0d7{['afterInit'](){const _0x509301=this['editor'];if(!_0x509301['plugins']['has']('LinkEditing'))return;const _0x78d6d6=_0x509301['plugins']['get']('TrackChangesEditing'),_0x363eaf=_0x509301['commands']['get']('link');_0x78d6d6['enableDefaultAttributesIntegration']('link'),_0x78d6d6['enableDefaultAttributesIntegration']('unlink'),_0x78d6d6['registerInlineAttribute']('linkHref');for(const _0xc231fb of _0x363eaf['manualDecorators'])_0x78d6d6['registerInlineAttribute'](_0xc231fb['id']),_0x78d6d6['descriptionFactory']['registerAttributeLabel'](_0xc231fb['id'],'link\x20('+_0xc231fb['label']['toLowerCase']()+')');_0x78d6d6['descriptionFactory']['registerDescriptionCallback'](_0x2e61d8=>{if('attribute'!=_0x2e61d8['type'])return;const {data:_0x16b7fd}=_0x2e61d8;if(!_0x16b7fd||'linkHref'!=_0x16b7fd['key'])return;const _0x522653=_0x16b7fd['newValue'],_0x14e488=_0x509301['locale'];return{'type':'format','content':null==_0x522653?o(_0x14e488,'*Remove\x20link*'):o(_0x14e488,'*Set\x20link:*\x20%0','\x22'+_0x522653+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x91b6e5=this['editor'],_0x2c72f6=_0x91b6e5['locale'];_0x91b6e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd438=>{if('formatInline'!=_0x1dd438['type'])return;const {data:_0x59dd52}=_0x1dd438;if(_0x59dd52){if('link'==_0x59dd52['commandName']){const _0x54d70e=_0x59dd52['commandParams'][0x0];return{'type':'format','content':o(_0x2c72f6,'*Set\x20link:*\x20%0','\x22'+_0x54d70e+'\x22')};}return'unlink'==_0x59dd52['commandName']?{'type':'format','content':o(_0x2c72f6,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4fe0d7{['afterInit'](){const _0x4c7cd7=this['editor'],_0x3800e0=_0x4c7cd7['locale'];if(!_0x4c7cd7['plugins']['has']('LegacyListEditing'))return;const _0x3f32af=_0x4c7cd7['plugins']['get']('TrackChangesEditing'),_0x8ff8b=_0x4c7cd7['plugins']['has']('LegacyTodoListEditing');function _0x29787b(_0x12103a){return()=>{const _0xfd138f=_0x4c7cd7['model']['document']['selection'],_0x1a24b4=_0x4c7cd7['commands']['get'](_0x12103a);if(_0x1a24b4['value'])return void _0x4c7cd7['execute']('paragraph',{});const _0x27f88b=_0x12103a['slice'](0x0,-0x4),_0x444d06=function(_0x383013,_0x2a0cb4,_0x107a4d){let _0x4136b4=Array['from'](_0x383013)['filter'](_0x46a833=>function(_0x1e1b05,_0x229f21){return _0x229f21['checkChild'](_0x1e1b05['parent'],'listItem')&&!_0x229f21['isObject'](_0x1e1b05);}(_0x46a833,_0x107a4d));_0x4136b4=_0x4136b4['filter'](_0x2ebdeb=>!_0x2ebdeb['is']('element','listItem')||_0x2ebdeb['getAttribute']('listType')!=_0x2a0cb4);const _0x338413=new Set();for(const _0x644109 of _0x4136b4)_0x644109['is']('element','listItem')?_0x338413['add'](fe(_0x644109)):_0x338413['add'](_0x644109);return Array['from'](_0x338413);}(_0xfd138f['getSelectedBlocks'](),_0x27f88b,_0x4c7cd7['model']['schema']);_0x4c7cd7['model']['change'](()=>{for(const _0x396997 of _0x444d06)_0x3f32af['markBlockFormat'](_0x396997,{'commandName':_0x12103a,'commandParams':[{'forceValue':!_0x1a24b4['value']}],'formatGroupId':'blockName'},ue(_0x396997));});};}function _0x44927b(_0x29bc9e){return()=>{const _0x1adb0c=function(_0x2571b9){let _0x180c3a=Array['from'](_0x2571b9);const _0x1f24eb=_0x180c3a['findIndex'](_0x3ef03b=>'listItem'!=_0x3ef03b['name']);return _0x1f24eb>-0x1&&(_0x180c3a=_0x180c3a['slice'](0x0,_0x1f24eb)),_0x180c3a;}(_0x4c7cd7['model']['document']['selection']['getSelectedBlocks']()),_0x3c32d9=_0x4c7cd7['model']['createRange'](_0x4c7cd7['model']['createPositionAt'](_0x1adb0c[0x0],'before'),_0x4c7cd7['model']['createPositionAt'](_0x1adb0c[_0x1adb0c['length']-0x1],'end'));_0x4c7cd7['model']['change'](()=>{_0x3f32af['markBlockFormat'](_0x3c32d9,{'commandName':_0x29bc9e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28c0f9){const _0x192a40=new Set();for(const _0x542e1a of _0x28c0f9){let _0x2a2801=_0x542e1a['nextSibling'];for(;_0x2a2801&&_0x2a2801['getAttribute']('listIndent')>_0x542e1a['getAttribute']('listIndent');)_0x192a40['add'](_0x2a2801),_0x2a2801=_0x2a2801['nextSibling'];}return Array['from'](_0x192a40);}(_0x1adb0c));});};}_0x3f32af['enableCommand']('numberedList',_0x29787b('numberedList')),_0x3f32af['enableCommand']('bulletedList',_0x29787b('bulletedList')),_0x8ff8b&&_0x3f32af['enableCommand']('todoList',_0x29787b('todoList')),_0x3f32af['enableCommand']('indentList',_0x44927b('indentList')),_0x3f32af['enableCommand']('outdentList',_0x44927b('outdentList')),_0x8ff8b&&_0x3f32af['enableCommand']('checkTodoList',()=>{const _0x319cb9=_0x4c7cd7['commands']['get']('checkTodoList'),_0x40dc12=Array['from'](_0x319cb9['_selectedElements']);_0x40dc12['filter'](_0x394b87=>_0x394b87['getAttribute']('todoListChecked')!=_0x319cb9['value']),_0x4c7cd7['model']['change'](()=>{for(const _0x7df032 of _0x40dc12)_0x3f32af['markBlockFormat'](_0x7df032,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x319cb9['value']}]});});}),_0x3f32af['descriptionFactory']['registerElementLabel']('listItem',_0x555687=>o(_0x3800e0,'ELEMENT_LIST_ITEM',_0x555687)),_0x3f32af['descriptionFactory']['registerDescriptionCallback'](_0x4915a9=>{if('formatBlock'!=_0x4915a9['type']&&'formatInline'!=_0x4915a9['type'])return;const {data:_0x2ce10f}=_0x4915a9;if(_0x2ce10f){if('numberedList'==_0x2ce10f['commandName']||'bulletedList'==_0x2ce10f['commandName']||'todoList'==_0x2ce10f['commandName'])switch(_0x2ce10f['commandName']['replace']('List','')){case'bulleted':return _0x1cf7de(o(_0x3800e0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cf7de(o(_0x3800e0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cf7de(o(_0x3800e0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2ce10f['commandName'])return{'type':'format','content':o(_0x3800e0,'*Indent:*\x20%0',o(_0x3800e0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2ce10f['commandName'])return{'type':'format','content':o(_0x3800e0,'*Outdent:*\x20%0',o(_0x3800e0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2ce10f['commandName'])return _0x2ce10f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3800e0,'*Check\x20item*')}:{'type':'format','content':o(_0x3800e0,'*Uncheck\x20item*')};}function _0x1cf7de(_0x456869){return{'type':'format','content':o(_0x3800e0,'*Change\x20to:*\x20%0',_0x456869)};}});}}function fe(_0x29b47b){const _0x38174c=_0x29b47b['getAttribute']('listIndent');if(0x0==_0x38174c)return _0x29b47b;let _0x5def4c=_0x29b47b;for(;_0x29b47b['previousSibling']&&_0x29b47b['previousSibling']['is']('element','listItem');){const _0xbd8650=_0x29b47b['previousSibling']['getAttribute']('listIndent');if(_0xbd8650==_0x38174c)_0x5def4c=_0x29b47b['previousSibling'];else{if(_0xbd8650<_0x38174c)break;}_0x29b47b=_0x29b47b['previousSibling'];}return _0x5def4c;}function ue(_0xcc1320){const _0x3f5b40=[];if(_0xcc1320['is']('element','listItem')&&_0xcc1320['getAttribute']('listIndent')>0x0){let _0x406568=_0xcc1320['nextSibling'];for(;_0x406568&&'listItem'==_0x406568['name']&&_0x406568['getAttribute']('listIndent')==_0xcc1320['getAttribute']('listIndent');)_0x3f5b40['push'](_0x406568),_0x406568=_0x406568['nextSibling'];}return _0x3f5b40;}class W extends _0x4fe0d7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1d7d1d=this['editor']['config']['get']('list.properties'),_0x54abeb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d7d1d['styles']&&_0x54abeb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1d7d1d['reversed']&&_0x54abeb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1d7d1d['startIndex']&&_0x54abeb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x54abeb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5a6e49,_0x4564c6={}){const _0x1d2d89=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc47d76=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1d2d89['markMultiRangeBlockFormat'](_0xc47d76,{'commandName':'listStyle','commandParams':[{'type':_0x4564c6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3a8faa,_0xffb12b={}){const _0x368ae3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43e88a=this['_getSuggestionBlocks'](_0x1922b0=>_0x1922b0['is']('element','listItem')&&'numbered'===_0x1922b0['getAttribute']('listType'));if(_0x43e88a['length']<0x1)return;const _0x4923a9=_0x43e88a['map'](_0xc673dc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc673dc,'before'),this['editor']['model']['createPositionAt'](_0xc673dc,0x0)));this['editor']['model']['change'](()=>{_0x368ae3['markMultiRangeBlockFormat'](_0x4923a9,{'commandName':'listReversed','commandParams':[{'reversed':_0xffb12b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x337fb1,_0x4d9fce={}){const _0x1cc7bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc63d3e=this['_getSuggestionBlocks'](_0x4c1d70=>_0x4c1d70['is']('element','listItem')&&'numbered'===_0x4c1d70['getAttribute']('listType'));if(_0xc63d3e['length']<0x1)return;const _0x8b5d8c=_0xc63d3e['map'](_0x2e3ff8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e3ff8,'before'),this['editor']['model']['createPositionAt'](_0x2e3ff8,0x0)));this['editor']['model']['change'](()=>{_0x1cc7bc['markMultiRangeBlockFormat'](_0x8b5d8c,{'commandName':'listStart','commandParams':[{'startIndex':_0x4d9fce['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x9824b0){if('formatBlock'!=_0x9824b0['type']&&'formatInline'!=_0x9824b0['type'])return;const _0x640f47=this['editor']['locale'],{data:_0x46483a}=_0x9824b0;if(!_0x46483a)return;let _0x2ee97e,_0x30e33b;switch(_0x46483a['commandName']){case'listStyle':_0x2ee97e='*Change\x20to:*\x20%0',_0x30e33b={'type':'format','content':o(_0x640f47,_0x2ee97e,o(_0x640f47,this['_getTranslationKeyForListStyle'](_0x46483a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2ee97e=_0x46483a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30e33b={'type':'format','content':o(_0x640f47,_0x2ee97e)};break;case'listStart':_0x2ee97e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30e33b={'type':'format','content':o(_0x640f47,_0x2ee97e,_0x46483a['commandParams'][0x0]['startIndex'])};}return _0x30e33b;}['_getSuggestionBlocksForListStyle'](){const _0x2fc902=this['editor']['plugins']['get']('LegacyListUtils');let _0x308351=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x308351[0x0]?.['is']('element','listItem')&&_0x308351['unshift'](..._0x2fc902['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x308351[_0x308351['length']-0x1]?.['is']('element','listItem')&&_0x308351['push'](..._0x2fc902['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x308351=[...new Set(_0x308351)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x308351=_0x308351['filter'](_0x3d0cd8=>_0x3d0cd8['is']('element','listItem'))),_0x308351;}['_getSuggestionBlocks'](_0x5b4cc4){const _0x453a48=this['editor']['plugins']['get']('LegacyListUtils');let _0x149c87=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5b4cc4)['map'](_0x1d3e9d=>{const _0x1b0f80=this['editor']['model']['createPositionAt'](_0x1d3e9d,0x0);return[..._0x453a48['getSiblingNodes'](_0x1b0f80,'backward'),..._0x453a48['getSiblingNodes'](_0x1b0f80,'forward')];})['flat']();return _0x149c87=[...new Set(_0x149c87)],_0x149c87;}['_getTranslationKeyForListStyle'](_0x5884f2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5884f2)||'default')['toUpperCase']()+'_LIST_'+_0x5884f2['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x4fe0d7{['afterInit'](){const _0x59e89d=this['editor'];if(!_0x59e89d['plugins']['has']('MediaEmbedEditing'))return;const _0xaa3c2d=_0x59e89d['plugins']['get']('TrackChangesEditing'),_0x5494a5=_0x59e89d['locale'];_0xaa3c2d['enableCommand']('mediaEmbed'),_0xaa3c2d['descriptionFactory']['registerElementLabel']('media',_0x3f24a0=>o(_0x5494a5,'ELEMENT_MEDIA',_0x3f24a0)),_0x59e89d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x646d18,{writer:_0x581f7c,options:_0x1c3773})=>{if(_0x1c3773['showSuggestionHighlights'])return _0x581f7c['createEmptyElement']('div');},'converterPriority':'high'}),_0x59e89d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x25c853,_0xaddc05,_0x4b74a0)=>{_0x4b74a0['options']['showSuggestionHighlights']&&_0x25c853['stop']();},{'priority':'high'});}}class mt extends _0x4fe0d7{['afterInit'](){const _0x4a7dd2=this['editor'];_0x4a7dd2['plugins']['has']('MentionEditing')&&_0x4a7dd2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4fe0d7{['afterInit'](){const _0x10e034=this['editor'];if(!_0x10e034['plugins']['has']('MergeFieldsEditing'))return;_0x10e034['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x10e034['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x5e263f=_0x10e034['plugins']['get']('TrackChangesEditing'),_0x3d6a73=_0x10e034['locale'];_0x5e263f['descriptionFactory']['registerElementLabel']('mergeField',_0x38b074=>o(_0x3d6a73,'ELEMENT_MERGE_FIELD',_0x38b074)),_0x5e263f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3be0bd=>o(_0x3d6a73,'ELEMENT_MERGE_FIELD',_0x3be0bd)),_0x5e263f['descriptionFactory']['registerDescriptionCallback'](_0x5cd56c=>{if('insertion'!=_0x5cd56c['type']&&'deletion'!=_0x5cd56c['type'])return;const _0x536c63=_0x5cd56c['getContainedElement']();if(null==_0x536c63)return;if(!_0x536c63['is']('element','mergeField')&&!_0x536c63['is']('element','mergeFieldBlock'))return;const _0x1f68c4=_0x10e034['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x536c63['getAttribute']('id'));return'insertion'==_0x5cd56c['type']?{'type':'insertion','content':o(_0x3d6a73,'*Insert:*\x20%0','\x22'+_0x1f68c4+'\x22\x20'+o(_0x3d6a73,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3d6a73,'*Remove:*\x20%0','\x22'+_0x1f68c4+'\x22\x20'+o(_0x3d6a73,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x4fe0d7{['afterInit'](){const _0x411ef4=this['editor'],_0xf78f0d=_0x411ef4['plugins']['get']('TrackChangesEditing');_0x411ef4['plugins']['has']('MultiLevelList')&&(_0xf78f0d['enableDefaultAttributesIntegration']('multiLevelList'),_0xf78f0d['registerBlockAttribute']('listMarkerStyle'),_0xf78f0d['descriptionFactory']['registerDescriptionCallback'](_0xfef3fa=>this['handleDescriptions'](_0xfef3fa)));}['handleDescriptions'](_0x57b120){const _0x471d25=this['editor']['locale'],{data:_0x141d33}=_0x57b120,_0x1f1d97={'type':'format','content':''};if(_0x141d33&&'listMarkerStyle'==_0x141d33['key']){if(!_0x141d33['oldValue'])return{'type':'format','content':o(_0x471d25,'*Set\x20format:*\x20%0',o(_0x471d25,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x141d33['newValue']+')'};if(!_0x141d33['newValue']){let _0x351fb7=_0x57b120['head'];for(;_0x351fb7;){if(_0x351fb7['data']&&'listType'==_0x351fb7['data']['key']&&_0x351fb7['data']['newValue'])return _0x1f1d97;_0x351fb7=_0x351fb7['next'];}return{'type':'format','content':o(_0x471d25,'*Remove\x20format:*\x20%0',o(_0x471d25,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x141d33['oldValue']+')'};}}}}class kt extends _0x4fe0d7{['afterInit'](){const _0x1903c1=this['editor'];if(!_0x1903c1['plugins']['has']('PageBreakEditing'))return;_0x1903c1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x57d3bf=_0x1903c1['plugins']['get']('TrackChangesEditing'),_0x55a84d=_0x1903c1['locale'];_0x57d3bf['descriptionFactory']['registerElementLabel']('pageBreak',_0x17d58a=>o(_0x55a84d,'ELEMENT_PAGE_BREAK',_0x17d58a));}}class bt extends _0x4fe0d7{['afterInit'](){const _0x59be10=this['editor'];if(!_0x59be10['plugins']['has']('Paragraph'))return;const _0x4661d6=_0x59be10['locale'],_0x1d19f6=_0x59be10['plugins']['get']('TrackChangesEditing');_0x1d19f6['descriptionFactory']['registerElementLabel']('paragraph',_0x32ae4d=>o(_0x4661d6,'ELEMENT_PARAGRAPH',_0x32ae4d)),_0x1d19f6['enableDefaultAttributesIntegration']('paragraph'),_0x1d19f6['enableCommand']('insertParagraph'),_0x59be10['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x59be10),{'priority':'highest'}),_0x59be10['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e55a8,_0x40896e,_0x1e2cb7)=>{_0x1e2cb7['options']['showSuggestionHighlights']&&nr(_0x59be10,{'showActiveMarker':!0x1})(_0x3e55a8,_0x40896e,_0x1e2cb7);},{'priority':'highest'});const _0x14d453=_0x1d19f6['descriptionFactory'];_0x14d453['registerDescriptionCallback'](_0x20333c=>{if('insertion'!==_0x20333c['type'])return;const {start:_0xb0c7df,end:_0x59441b}=_0x20333c['getFirstRange']();if(!_0xb0c7df['isTouching'](_0x59441b)||!_0xb0c7df['nodeAfter'])return;const _0x21ad10=_0x59be10['model']['schema'],_0x5e72fc=_0xb0c7df['nodeAfter'];return _0x21ad10['isBlock'](_0x5e72fc)&&!_0x21ad10['isLimit'](_0x5e72fc)&&_0x21ad10['checkChild'](_0x5e72fc,'$text')?{'type':'insertion','content':o(_0x4661d6,'*Insert:*\x20%0',_0x14d453['getItemLabel'](_0x5e72fc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x113111=this['editor'],_0x15097c=_0x113111['locale'];_0x113111['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2675eb=>{if('formatBlock'!=_0x2675eb['type'])return;const {data:_0x34a42e}=_0x2675eb;return _0x34a42e&&'paragraph'==_0x34a42e['commandName']?{'type':'format','content':o(_0x15097c,'*Change\x20to:*\x20%0',o(_0x15097c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x269a69,{showActiveMarker:_0x392130=!0x0}={}){return(_0x3a2804,_0x5193e7,_0x4bf407)=>{const _0x10ee37=_0x269a69['plugins']['get']('TrackChangesEditing'),_0x5be1a0=_0x5193e7['markerRange']['start'],_0x3e9708=_0x5193e7['markerRange']['end'],_0x2e8c39=_0x269a69['model']['schema'];if(!_0x5be1a0['isTouching'](_0x3e9708)||!_0x5be1a0['nodeAfter'])return;const _0x3ecfb=_0x5be1a0['nodeAfter'];if(_0x2e8c39['isBlock'](_0x3ecfb)&&!_0x2e8c39['isLimit'](_0x3ecfb)&&_0x2e8c39['checkChild'](_0x3ecfb,'$text')){if(!_0x4bf407['consumable']['consume'](_0x5193e7['markerRange'],_0x3a2804['name']))return;const {authorId:_0x57850b}=_0x10ee37['_splitMarkerName'](_0x5193e7['markerName']),_0x2a34e1=_0x4bf407['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x57850b}),_0x85eee3=_0x4bf407['mapper']['toViewPosition'](_0x3e9708);_0x392130&&_0x10ee37['activeMarkers']['includes'](_0x5193e7['markerName'])&&_0x4bf407['writer']['addClass']('ck-suggestion-marker--active',_0x2a34e1),_0x4bf407['writer']['insert'](_0x85eee3,_0x2a34e1),_0x4bf407['mapper']['bindElementToMarker'](_0x2a34e1,_0x5193e7['markerName']);}};}class wt extends _0x4fe0d7{['afterInit'](){const _0x39595f=this['editor'];if(!_0x39595f['plugins']['has']('RemoveFormatEditing'))return;_0x39595f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x570990=this['editor'];_0x570990['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x542365=>{if('formatBlock'!=_0x542365['type']&&'formatInline'!=_0x542365['type'])return;const {data:_0x39122c}=_0x542365;return _0x39122c&&'removeFormat'==_0x39122c['commandName']?{'type':'format','content':o(_0x570990['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4fe0d7{['afterInit'](){const _0x3bd97b=this['editor'];if(!_0x3bd97b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xe3b1a0=_0x3bd97b['plugins']['get']('TrackChangesEditing');_0xe3b1a0['enableCommand']('goToPreviousRestrictedEditingException'),_0xe3b1a0['enableCommand']('goToNextRestrictedEditingException');const _0xba445d=_0x3bd97b['plugins']['get']('RestrictedEditingModeEditing');_0xba445d['enableCommand']('trackChanges'),_0xba445d['enableCommand']('acceptSuggestion'),_0xba445d['enableCommand']('discardSuggestion'),_0xba445d['enableCommand']('acceptAllSuggestions'),_0xba445d['enableCommand']('discardAllSuggestions'),_0xba445d['enableCommand']('acceptSelectedSuggestions'),_0xba445d['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4fe0d7{static get['requires'](){return[_0x485f45];}['init'](){const _0x5b4c11=this['editor'],_0x12b277=_0x5b4c11['plugins']['get']('TrackChangesEditing');_0x12b277['enableCommand']('shiftEnter'),_0x5b4c11['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5b4c11),{'priority':'high'}),_0x5b4c11['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5b4c11),{'priority':'high'}),_0x5b4c11['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2cae64,_0x28d8fd,_0x443c35)=>{_0x443c35['options']['showSuggestionHighlights']&&ge(_0x5b4c11,{'showActiveMarker':!0x1})(_0x2cae64,_0x28d8fd,_0x443c35);}),_0x12b277['descriptionFactory']['registerElementLabel']('softBreak',_0x52ff16=>o(_0x5b4c11['locale'],'ELEMENT_LINE_BREAK',_0x52ff16));}}function ge(_0xaa12b4,{showActiveMarker:_0x486b8b=!0x0}={}){return(_0x1b4a3e,_0x57e383,_0x4ef88c)=>{const _0x164100=_0xaa12b4['plugins']['get']('TrackChangesEditing');if(!_0x4ef88c['consumable']['test'](_0x57e383['markerRange'],_0x1b4a3e['name']))return;const _0x38ebfa=_0xaa12b4['model'];for(const _0x5d89b1 of _0x57e383['markerRange']['getItems']()){if(!_0x5d89b1['is']('element','softBreak'))continue;const _0x12fc91='deletion'==_0x57e383['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4b5dab}=_0x164100['_splitMarkerName'](_0x57e383['markerName']),_0x21beb9=_0x4ef88c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12fc91,'data-author-id':_0x4b5dab}),_0x42e4a3=_0x4ef88c['mapper']['toViewPosition'](_0x38ebfa['createPositionBefore'](_0x5d89b1));_0x486b8b&&_0x164100['activeMarkers']['includes'](_0x57e383['markerName'])&&_0x4ef88c['writer']['addClass']('ck-suggestion-marker--active',_0x21beb9),_0x4ef88c['writer']['insert'](_0x42e4a3,_0x21beb9),_0x4ef88c['mapper']['bindElementToMarker'](_0x21beb9,_0x57e383['markerName']);}};}class St extends _0x4fe0d7{['afterInit'](){const _0x4e5903=this['editor'],_0x35d6da=_0x4e5903['model'],_0x12b272=_0x4e5903['locale'];if(!_0x4e5903['plugins']['has']('StandardEditingModeEditing'))return;const _0x1ef2e1=_0x4e5903['plugins']['get']('TrackChangesEditing'),_0x10a932='restrictedEditingException',_0x25b607=_0x4e5903['commands']['get'](_0x10a932);_0x1ef2e1['enableCommand'](_0x10a932,(_0x1be7f1,_0xa942da={})=>{const _0x4c09fc=_0x35d6da['document']['selection'];if(_0x4c09fc['isCollapsed'])return void _0x1be7f1(_0xa942da);const _0x155d44=void 0x0!==_0xa942da['forceValue']?_0xa942da['forceValue']:!_0x25b607['value'];_0x35d6da['change'](()=>{const _0x486962=Array['from'](_0x4c09fc['getRanges']());for(const _0x439929 of _0x486962){const _0x3eacc2=_0x155d44?[_0x439929]:io(_0x10a932,_0x439929,_0x35d6da);for(const _0xc3de7a of _0x3eacc2)_0x1ef2e1['markInlineFormat'](_0xc3de7a,{'commandName':_0x10a932,'commandParams':[{'forceValue':_0x155d44}]});}});}),_0x1ef2e1['descriptionFactory']['registerDescriptionCallback'](_0x2b8ee4=>{if('formatBlock'!=_0x2b8ee4['type']&&'formatInline'!=_0x2b8ee4['type'])return;const {data:_0xb0667c}=_0x2b8ee4;return _0xb0667c&&_0xb0667c['commandName']==_0x10a932?_0xb0667c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12b272,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x12b272,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x4fe0d7{['afterInit'](){const _0x5d0e32=this['editor'];if(!_0x5d0e32['plugins']['has']('Style')||!_0x5d0e32['plugins']['has']('DataSchema'))return;const _0x4699a1=_0x5d0e32['plugins']['get']('TrackChangesEditing'),_0x6d0c63=_0x5d0e32['locale'],_0x4f9413=_0x5d0e32['config']['get']('style')||{},_0x2e852e=_0x5d0e32['plugins']['get']('GeneralHtmlSupport'),_0x49ab33=_0x5d0e32['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5d0e32['plugins']['get']('DataSchema'),_0x4f9413['definitions']);_0x4699a1['enableDefaultAttributesIntegration']('style');const _0x1f7bf9=new Set();for(const _0x2ab366 of _0x49ab33['block']){const _0x30375d=_0x2e852e['getGhsAttributeNameForElement'](_0x2ab366['element']);_0x1f7bf9['add'](_0x30375d);}const _0x51e591=new Set();for(const _0x32fc6c of _0x49ab33['inline']){const _0x2ab44d=_0x2e852e['getGhsAttributeNameForElement'](_0x32fc6c['element']);_0x51e591['add'](_0x2ab44d);for(const _0x19d4c7 of _0x32fc6c['ghsAttributes'])_0x51e591['add'](_0x19d4c7);}for(const _0x2d2d16 of _0x1f7bf9)_0x4699a1['registerBlockAttribute'](_0x2d2d16),_0x4699a1['descriptionFactory']['registerAttributeLabel'](_0x2d2d16,o(_0x6d0c63,'FORMAT_STYLE'));for(const _0x29fc2c of _0x51e591)_0x4699a1['registerInlineAttribute'](_0x29fc2c),_0x4699a1['descriptionFactory']['registerAttributeLabel'](_0x29fc2c,o(_0x6d0c63,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x221b1c=this['editor'],_0x17aa1a=_0x221b1c['locale'];_0x221b1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x435102=>{if('formatBlock'!=_0x435102['type']&&'formatInline'!=_0x435102['type'])return;const {data:_0x10ff7b}=_0x435102;return _0x10ff7b&&'style'===_0x10ff7b['commandName']?_0x10ff7b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17aa1a,'*Set\x20format:*\x20%0',_0x10ff7b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x17aa1a,'*Remove\x20format:*\x20%0',_0x10ff7b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x4fe0d7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x307d0a){super(_0x307d0a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x363ef7=this['editor'],_0x3b8dcd=_0x363ef7['model']['document']['selection'];if(!_0x363ef7['plugins']['has']('TableEditing'))return;const _0x3d836e=_0x363ef7['locale'],_0x2d7007=_0x363ef7['plugins']['get']('TrackChangesEditing'),_0x204c55=_0x363ef7['plugins']['get']('TableUtils');_0x2d7007['descriptionFactory']['registerElementLabel']('table',_0xb92962=>o(_0x3d836e,'ELEMENT_TABLE',_0xb92962)),this['_setupColumnsRowsFixing'](),_0x2d7007['enableCommand']('insertTable'),_0x2d7007['enableCommand']('selectTableRow'),_0x2d7007['enableCommand']('selectTableColumn');for(const _0x409fcf of['insertTableRowAbove','insertTableRowBelow']){const _0x453b9a=_0x363ef7['commands']['get'](_0x409fcf);_0x2d7007['enableCommand'](_0x409fcf,_0x39f5d2=>{_0x363ef7['model']['change'](_0x294aa6=>{_0x39f5d2();const _0xe7899d='above'===_0x453b9a['order'],_0x58c559=_0x204c55['getSelectionAffectedTableCells'](_0x3b8dcd),_0x3ac5fa=_0x204c55['getRowIndexes'](_0x58c559),_0x32d48c=_0xe7899d?_0x3ac5fa['first']-0x1:_0x3ac5fa['last']+0x1,_0x42879f=_0x58c559[0x0]['findAncestor']('table'),_0x266bb0=_0x204c55['createTableWalker'](_0x42879f,{'startRow':_0x32d48c,'endRow':_0x32d48c}),_0x4c433a=Array['from'](_0x266bb0)['map'](_0x448ac5=>_0x294aa6['createRangeOn'](_0x448ac5['cell']));_0x2d7007['markMultiRangeInsertion'](_0x4c433a,'tableRow');});});}for(const _0x520b4e of['insertTableColumnLeft','insertTableColumnRight']){const _0x3b0f6f=_0x363ef7['commands']['get'](_0x520b4e);_0x2d7007['enableCommand'](_0x520b4e,_0x41c9ee=>{_0x363ef7['model']['change'](_0x376a24=>{_0x41c9ee();const _0x36cf2b='left'===_0x3b0f6f['order'],_0x448cd7=_0x204c55['getSelectionAffectedTableCells'](_0x3b8dcd),_0x215a2f=_0x204c55['getColumnIndexes'](_0x448cd7),_0x1a0223=_0x36cf2b?_0x215a2f['first']-0x1:_0x215a2f['last']+0x1,_0x3b7e81=_0x448cd7[0x0]['findAncestor']('table'),_0x2e1d73=_0x204c55['createTableWalker'](_0x3b7e81,{'startRow':0x0,'column':_0x1a0223,'includeAllSlots':!0x1}),_0x44d04e=Array['from'](_0x2e1d73)['map'](_0xeca02=>_0x376a24['createRangeOn'](_0xeca02['cell']));_0x2d7007['markMultiRangeInsertion'](_0x44d04e,'tableColumn');});});}for(const _0x3501cf of['removeTableRow','removeTableColumn']){const _0x4f8c23=_0x3501cf['substr'](0xb),_0x6c5f1b=_0x4f8c23['toLowerCase'](),_0x1f9e07=_0x6c5f1b['substr'](0x0,0x3)+'span',_0xcaf757='table'+_0x4f8c23,_0x86e3cf='min'+_0x4f8c23,_0x1f38a6='max'+_0x4f8c23;_0x2d7007['enableCommand'](_0x3501cf,()=>{_0x363ef7['model']['change'](_0x408b41=>{const _0x12beae=_0x204c55['getSelectionAffectedTableCells'](_0x3b8dcd),_0x344580=_0x12beae[0x0]['findAncestor']('table');let _0x9cf40b;if('removeTableRow'==_0x3501cf){const _0x2bf684=_0x204c55['getRowIndexes'](_0x12beae);_0x9cf40b={'startRow':_0x2bf684['first'],'endRow':_0x2bf684['last'],'includeAllSlots':!0x0};}else{const _0x2298b2=_0x204c55['getColumnIndexes'](_0x12beae);_0x9cf40b={'startColumn':_0x2298b2['first'],'endColumn':_0x2298b2['last'],'includeAllSlots':!0x0};}const _0x184afa=_0x204c55['createTableWalker'](_0x344580,_0x9cf40b),_0x3d1d52=Array['from'](_0x184afa)['map'](({cell:_0x2ca6fb})=>_0x2ca6fb),_0x54e4b9=be(_0x3d1d52['filter'](_0x470802=>_0x470802['hasAttribute'](_0x1f9e07))),_0x55ee6a=be(_0x3d1d52['filter'](_0x4ac235=>!_0x4ac235['hasAttribute'](_0x1f9e07)))['map'](_0x555d9d=>_0x408b41['createRangeOn'](_0x555d9d)),_0x42b31f=_0x2d7007['markMultiRangeDeletion'](_0x55ee6a,_0xcaf757);if(_0x42b31f&&('tableRow'==_0x42b31f['subType']||'tableColumn'==_0x42b31f['subType'])){const _0x1baf8a=this['_getSuggestionCoords'](_0x42b31f);for(const _0x7cedc8 of _0x54e4b9){const _0x5a0695=_0x408b41['createRangeOn'](_0x7cedc8),_0x25f0a4=_0x204c55['getCellLocation'](_0x7cedc8),_0x3ea59b=_0x7cedc8['getAttribute'](_0x1f9e07)-0x1,_0x31d2a7=_0x1baf8a[_0x86e3cf],_0x43d53b=_0x1baf8a[_0x1f38a6];_0x31d2a7<=_0x25f0a4[_0x6c5f1b]&&_0x25f0a4[_0x6c5f1b]+_0x3ea59b<=_0x43d53b&&_0x42b31f['addRange'](_0x5a0695);}}});});}function _0x325423(_0x4a0ea6){const _0x1a7efe=Array['from'](_0x3b8dcd['getRanges']())['map'](_0x69eea8=>_0x12550f['fromRange'](_0x69eea8));_0x363ef7['model']['change'](_0x5b4bbe=>{const _0x30d364=_0x5b4bbe['batch'];_0x4a0ea6=_0x4a0ea6['filter'](_0x4d15a7=>'$graveyard'!=_0x4d15a7['root']['rootName']),_0x5b4bbe['setSelection'](_0x4a0ea6),_0x363ef7['commands']['get']('removeTableRow')['refresh'](),_0x363ef7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x363ef7['model']['enqueueChange'](()=>{_0x363ef7['model']['enqueueChange'](_0x30d364,_0x166a81=>{const _0x185d3b=_0x1a7efe['filter'](_0x4a2bb5=>'$graveyard'!=_0x4a2bb5['root']['rootName']);_0x185d3b['length']>0x0&&_0x166a81['setSelection'](_0x185d3b);for(const _0xe8af5b of _0x1a7efe)_0xe8af5b['detach']();});});});}function _0x2f9917(_0x5e5ead){_0x363ef7['model']['change'](_0x3b18fb=>{const _0x1954de=Array['from'](_0x3b8dcd['getRanges']())['map'](_0x314d9f=>_0x12550f['fromRange'](_0x314d9f)),_0x3ecf63=[];for(const _0xf3982d of _0x5e5ead)for(const _0x5b3d76 of _0xf3982d['getItems']({'shallow':!0x0}))_0x3ecf63['push'](_0x5b3d76);for(const _0x23eb41 of _0x3ecf63)'$graveyard'!=_0x23eb41['root']['rootName']&&(_0x3b18fb['setSelection'](_0x3b18fb['createPositionAt'](_0x23eb41,0x0)),_0x363ef7['commands']['get']('removeTableColumn')['refresh'](),_0x363ef7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x372f57=_0x1954de['filter'](_0x43f11d=>'$graveyard'!=_0x43f11d['root']['rootName']);_0x372f57['length']>0x0&&_0x3b18fb['setSelection'](_0x372f57);for(const _0x5c414c of _0x1954de)_0x5c414c['detach']();});}function _0x3a5506(_0x420526,_0x297ff2){return _0x297ff2['every'](_0x44ec47=>_0x420526['some'](_0x56f18d=>_0x56f18d['end']['isEqual'](_0x44ec47['start'])||_0x44ec47['end']['isEqual'](_0x56f18d['start'])));}function _0x3743ac(_0x264916,_0x540b1d){return!_0x264916['some'](_0x176f7d=>_0x540b1d['some'](_0x27bca5=>_0x176f7d['isIntersecting'](_0x27bca5)))&&_0x264916['some'](_0x2023fd=>_0x540b1d['some'](_0x349a1e=>_0x2023fd['end']['isTouching'](_0x349a1e['start'])));}_0x363ef7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38afe8,_0x47f629,_0x24ef6d)=>{if(!_0x24ef6d['options']['showSuggestionHighlights'])return;const _0x29dc12=_0x47f629['item'];if(!_0x29dc12)return;const _0x1e7663=_0x24ef6d['mapper']['toViewElement'](_0x29dc12);function _0x1a4f20(_0x1693d5){return Array['isArray'](_0x1693d5)?_0x1693d5:[_0x1693d5];}_0x1e7663&&'tableCell'===_0x29dc12['name']&&_0x4802ab(_0x1e7663,_0x24ef6d['writer'],(_0x532a22,_0x303079,_0x3467c4)=>_0x3467c4['addClass'](_0x1a4f20(_0x303079['classes']),_0x532a22),(_0x570d03,_0x159547,_0x55a66c)=>_0x55a66c['removeClass'](_0x1a4f20(_0x159547['classes']),_0x570d03));},{'priority':'highest'}),_0x2d7007['descriptionFactory']['registerDescriptionCallback'](_0x38ad7e=>{if('insertion'!=_0x38ad7e['type']&&'deletion'!=_0x38ad7e['type'])return;const _0x311c56=_0x38ad7e['getContainedElement']();if(null!=_0x311c56&&_0x311c56['is']('element','table')){if('insertion'==_0x38ad7e['type']){const _0x365cae=_0x38ad7e['getItems']()['filter'](_0x456b3e=>_0x456b3e['is']('$textProxy'))['map'](_0x386081=>_0x386081['data']);if(_0x365cae['length'])return{'type':'insertion','content':o(_0x3d836e,'*Insert:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x365cae['join']('\x20')+'\x22'))};}if('deletion'==_0x38ad7e['type']){const _0x1596ab=_0x38ad7e['getItems']()['filter'](_0x5cabe5=>_0x5cabe5['is']('$textProxy'))['map'](_0x87c444=>_0x87c444['data']);if(_0x1596ab['length'])return{'type':'deletion','content':o(_0x3d836e,'*Remove:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1596ab['join']('\x20')+'\x22'))};}}}),_0x2d7007['descriptionFactory']['registerDescriptionCallback'](_0x22afd9=>{if('tableRow'==_0x22afd9['subType']){const _0x4ab641=_0x22afd9['getItems']()['filter'](_0x294d59=>_0x294d59['is']('$textProxy'))['map'](_0x3ce420=>_0x3ce420['data']),_0x287baf=this['_getSuggestionCoords'](_0x22afd9),_0x245b7e=_0x287baf['maxRow']-_0x287baf['minRow']+0x1;if('insertion'==_0x22afd9['type'])return _0x4ab641['length']?{'type':'insertion','content':o(_0x3d836e,'*Insert:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x245b7e,'\x22'+_0x4ab641['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d836e,'*Insert:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_ROW',_0x245b7e))};if('deletion'==_0x22afd9['type'])return _0x4ab641['length']?{'type':'deletion','content':o(_0x3d836e,'*Remove:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x245b7e,'\x22'+_0x4ab641['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d836e,'*Remove:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_ROW',_0x245b7e))};}if('tableColumn'==_0x22afd9['subType']){const _0xd15c6e=_0x22afd9['getItems']()['filter'](_0x11efd7=>_0x11efd7['is']('$textProxy'))['map'](_0x181235=>_0x181235['data']),_0x41ecdd=this['_getSuggestionCoords'](_0x22afd9),_0x5c11ca=_0x41ecdd['maxColumn']-_0x41ecdd['minColumn']+0x1;if('insertion'==_0x22afd9['type'])return _0xd15c6e['length']?{'type':'insertion','content':o(_0x3d836e,'*Insert:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c11ca,'\x22'+_0xd15c6e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d836e,'*Insert:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_COLUMN',_0x5c11ca))};if('deletion'==_0x22afd9['type'])return _0xd15c6e['length']?{'type':'deletion','content':o(_0x3d836e,'*Remove:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c11ca,'\x22'+_0xd15c6e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d836e,'*Remove:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_COLUMN',_0x5c11ca))};}}),_0x2d7007['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x325423),_0x2d7007['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x325423),_0x2d7007['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2f9917),_0x2d7007['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2f9917),_0x2d7007['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3a5506),_0x2d7007['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3a5506),_0x2d7007['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3743ac),_0x2d7007['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3743ac);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3a71f1=this['editor'],_0x31fd40=_0x3a71f1['model']['document']['selection'];return(_0xda2192,_0x5efe4a)=>{_0x3a71f1['model']['change'](_0x29160b=>{const {commandName:_0x4ce5fa,commandParams:_0x3d0634}=_0x5efe4a;let _0x64c343=_0xda2192[0x0]['end']['nodeBefore'];_0x3d0634&&_0x3d0634[0x0]&&!0x1===_0x3d0634[0x0]['forceValue']&&(_0x64c343=_0xda2192[0x0]['start']['nodeAfter']);const _0x3b07ff=_0x29160b['createRangeIn'](_0x64c343);if('$graveyard'==_0x3b07ff['root']['rootName'])return;const _0x1e4e7f=Array['from'](_0x31fd40['getRanges']())['map'](_0x233a73=>_0x12550f['fromRange'](_0x233a73));_0x29160b['setSelection'](_0x3b07ff),_0x3a71f1['commands']['get'](_0x4ce5fa)['refresh'](),_0x3d0634['push']({'forceDefaultExecution':!0x0}),_0x3a71f1['execute'](_0x4ce5fa,..._0x3d0634);const _0x359bf2=_0x1e4e7f['filter'](_0x47458c=>'$graveyard'!=_0x47458c['root']['rootName']);_0x359bf2['length']>0x0&&_0x29160b['setSelection'](_0x359bf2);for(const _0x8ceecc of _0x1e4e7f)_0x8ceecc['detach']();});};}['_getCoordsForCells'](_0x2d8577){const _0x593d1f=this['editor']['plugins']['get']('TableUtils');let _0x30163f=Number['MAX_SAFE_INTEGER'],_0x26e779=Number['MIN_SAFE_INTEGER'],_0x2b9bb7=Number['MAX_SAFE_INTEGER'],_0x1edc26=Number['MIN_SAFE_INTEGER'];for(const _0x377322 of _0x2d8577){if('$graveyard'==_0x377322['root']['rootName'])continue;const {row:_0x736d43,column:_0x25bf15}=_0x593d1f['getCellLocation'](_0x377322),_0xf4b83a=_0x377322['hasAttribute']('rowspan')?_0x377322['getAttribute']('rowspan')-0x1:0x0,_0x1a3aca=_0x377322['hasAttribute']('colspan')?_0x377322['getAttribute']('colspan')-0x1:0x0;_0x30163f=_0x736d43<_0x30163f?_0x736d43:_0x30163f,_0x26e779=_0x736d43+_0xf4b83a>_0x26e779?_0x736d43+_0xf4b83a:_0x26e779,_0x2b9bb7=_0x25bf15<_0x2b9bb7?_0x25bf15:_0x2b9bb7,_0x1edc26=_0x25bf15+_0x1a3aca>_0x1edc26?_0x25bf15+_0x1a3aca:_0x1edc26;}return{'minRow':_0x30163f,'maxRow':_0x26e779,'minColumn':_0x2b9bb7,'maxColumn':_0x1edc26};}['_setupColumnsRowsFixing'](){const _0x4f9302=this['editor'],_0xa88584=_0x4f9302['plugins']['get']('TrackChangesEditing'),_0xb86aba=_0x4f9302['plugins']['get']('TableUtils');_0x4f9302['model']['document']['on']('change:data',()=>{const _0x43e1f6=Array['from'](_0x4f9302['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x520039,data:_0x3bc233}of _0x43e1f6){const {group:_0x3021a0,id:_0x1c096f,subType:_0x1bef9a}=_0xa88584['_splitMarkerName'](_0x520039);if('suggestion'!=_0x3021a0)continue;if(null!=_0x3bc233['oldRange'])continue;const _0x268036=_0xa88584['getSuggestion'](_0x1c096f);this['_tablePostFixingSubtypes']['includes'](_0x1bef9a)&&this['_tableSuggestions']['add'](_0x268036);}},{'priority':'low'});const _0xf07f54=(_0x3ca15c,_0x223c78)=>{let _0x211d1e=!0x1;const _0x258404=_0x223c78['createRangeOn'](_0x3ca15c),_0x4babf0=_0x3ca15c['findAncestor']('table'),_0x115ad8=_0xb86aba['getCellLocation'](_0x3ca15c);for(const _0xca3f40 of this['_tableSuggestions']){const _0x5e0915=_0xca3f40['subType'],_0x1b1cc5=_0x5e0915['startsWith']('tablePaste'),_0x1b66af=_0x5e0915['substr'](_0x1b1cc5?0xa:0x5),_0x4303ff=_0x1b66af['toLowerCase'](),_0x5d9b4d=_0x4303ff['substr'](0x0,0x3)+'span',_0x57cfd6='min'+_0x1b66af,_0x502a00='max'+_0x1b66af;if(!_0xca3f40['isInContent'])continue;if(_0x4babf0!=_0xca3f40['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xca3f40['isIntersectingWithRange'](_0x258404))continue;const _0x3a0544=_0x3ca15c['hasAttribute'](_0x5d9b4d)?_0x3ca15c['getAttribute'](_0x5d9b4d)-0x1:0x0,_0x5bc43b=this['_getSuggestionCoords'](_0xca3f40),_0x29f210=_0x5bc43b[_0x57cfd6],_0x41f67d=_0x5bc43b[_0x502a00];_0x29f210<=_0x115ad8[_0x4303ff]&&_0x115ad8[_0x4303ff]+_0x3a0544<=_0x41f67d&&(_0xca3f40['addRange'](_0x258404),_0x211d1e=!0x0);}return _0x211d1e;};_0x4f9302['model']['document']['registerPostFixer'](_0x31cad9=>{let _0x4db57f=!0x1;for(const _0x1d5122 of _0x4f9302['model']['document']['differ']['getChanges']())if('insert'==_0x1d5122['type']){if('tableRow'==_0x1d5122['name']){for(const _0x7a4e80 of _0x1d5122['position']['nodeAfter']['getChildren']())_0x4db57f=_0x4db57f||_0xf07f54(_0x7a4e80,_0x31cad9);}else'tableCell'==_0x1d5122['name']&&(_0x4db57f=_0x4db57f||_0xf07f54(_0x1d5122['position']['nodeAfter'],_0x31cad9));}return _0x4db57f;});}['_getSuggestionCoords'](_0x5ef03c){return this['_getCoordsForCells'](_0x5ef03c['getRanges']()['map'](_0x55de45=>_0x55de45['start']['nodeAfter']));}}function be(_0x33cdf2){return Array['from'](new Set(_0x33cdf2)['values']());}class vt extends _0x4fe0d7{static get['requires'](){return[It];}['afterInit'](){const _0x8d6f89=this['editor'],_0x3661cc=_0x8d6f89['model']['document']['selection'],_0x1ea206=_0x8d6f89['locale'];if(!_0x8d6f89['plugins']['has']('TableEditing'))return;const _0x886538=_0x8d6f89['plugins']['get']('TrackChangesEditing'),_0x483ec0=_0x8d6f89['plugins']['get']('TableUtils'),_0x2c96f1=_0x8d6f89['plugins']['get'](It);_0x2c96f1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x886538['enableCommand']('mergeTableCells',()=>{const _0x5c0bbc=_0x483ec0['getSelectionAffectedTableCells'](_0x8d6f89['model']['document']['selection']);_0x8d6f89['model']['change'](()=>{_0x886538['markMultiRangeBlockFormat'](_0x5c0bbc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x8d6f89['commands']['get']('mergeTableCells')['on']('execute',(_0x11d083,_0x1689ee)=>{_0x8d6f89['commands']['get']('trackChanges')['value']&&(_0x1689ee['length']>0x0&&_0x1689ee[_0x1689ee['length']-0x1]&&_0x1689ee[_0x1689ee['length']-0x1]['forceDefaultExecution']||_0x886538['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x11d083['stop']());},{'priority':'highest'});for(const _0x1493fd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2dacfb=_0x8d6f89['commands']['get'](_0x1493fd);_0x886538['enableCommand'](_0x1493fd,()=>{const _0x297d98=_0x8d6f89['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x23376c=>_0x23376c['is']('element','tableCell')),_0x273e2b=_0x2dacfb['value'];_0x8d6f89['model']['change'](()=>{_0x886538['markMultiRangeBlockFormat']([_0x297d98,_0x273e2b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4566f4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x13a5e7=_0x8d6f89['commands']['get'](_0x4566f4);_0x886538['enableCommand'](_0x4566f4,()=>{const _0x6c04cd=_0x483ec0['getSelectionAffectedTableCells'](_0x8d6f89['model']['document']['selection'])[0x0],_0x4ef055=_0x6c04cd['findAncestor']('table'),{column:_0x486618,row:_0x406e75}=_0x483ec0['getCellLocation'](_0x6c04cd);let _0x273223=[];if('horizontally'==_0x13a5e7['direction']){const _0xd02168=_0x483ec0['createTableWalker'](_0x4ef055,{'startRow':_0x406e75,'endRow':_0x406e75,'includeAllSlots':!0x0});_0x273223=Array['from'](_0xd02168)['map'](_0xb041f=>_0xb041f['cell']);}else{const _0x2088e9=_0x483ec0['createTableWalker'](_0x4ef055,{'column':_0x486618,'includeAllSlots':!0x0});_0x273223=Array['from'](_0x2088e9)['map'](_0x1a3711=>_0x1a3711['cell']);}_0x8d6f89['model']['change'](_0x1829a0=>{_0x886538['markBlockFormat'](_0x1829a0['createRangeOn'](_0x6c04cd),{'commandName':_0x4566f4,'commandParams':[]},_0x273223,_0x4566f4);});});}_0x886538['descriptionFactory']['registerDescriptionCallback'](_0x478ae1=>{if('formatBlock'!=_0x478ae1['type']&&'formatInline'!=_0x478ae1['type'])return;const {data:_0x533690}=_0x478ae1;return _0x533690&&'mergeTableCells'==_0x533690['commandName']?{'type':'format','content':o(_0x1ea206,'*Merge\x20cells*')}:void 0x0;}),_0x886538['descriptionFactory']['registerDescriptionCallback'](_0x4adbd9=>{if('formatBlock'!=_0x4adbd9['type']&&'formatInline'!=_0x4adbd9['type'])return;const {data:_0x135493}=_0x4adbd9;return _0x135493?'splitTableCellVertically'==_0x135493['commandName']?{'type':'format','content':o(_0x1ea206,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x135493['commandName']?{'type':'format','content':o(_0x1ea206,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1915f7=_0x2c96f1['_acceptFormatSuggestionCallbackFactory']();for(const _0x2e691b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x886538['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e691b,'accept',_0x1915f7);for(const _0x1035e2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x886538['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1035e2,'accept',_0x1915f7);_0x886538['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1bd764=>{_0x8d6f89['model']['change'](_0x4893cb=>{const _0x3b9869=Array['from'](_0x3661cc['getRanges']())['map'](_0x2ba622=>_0x12550f['fromRange'](_0x2ba622));_0x4893cb['setSelection'](_0x1bd764),_0x8d6f89['commands']['get']('mergeTableCells')['refresh'](),_0x8d6f89['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x14993c=_0x3b9869['filter'](_0x4a3c5e=>'$graveyard'!=_0x4a3c5e['root']['rootName']);_0x14993c['length']>0x0&&_0x4893cb['setSelection'](_0x14993c);for(const _0x3296cf of _0x3b9869)_0x3296cf['detach']();});});for(const _0x43c69c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5682f8=_0x8d6f89['commands']['get'](_0x43c69c);_0x5682f8['on']('set:isEnabled',(_0x56d472,_0x248b49,_0x35897e)=>{if(_0x35897e){const _0x282be7=_0x8d6f89['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x264734=>_0x264734['is']('element','tableCell'));this['_areMergableCells'](_0x5682f8['value'],_0x282be7)||(_0x56d472['return']=!0x1,_0x56d472['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x429477=this['editor']['commands']['get']('mergeTableCells'),_0x2cda09=this['editor']['plugins']['get']('TableUtils');if(!_0x429477['isEnabled'])return!0x1;const _0x5f440c=_0x2cda09['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4928dc of _0x5f440c)for(const _0x598509 of _0x5f440c)if(_0x4928dc!=_0x598509&&!this['_areMergableCells'](_0x4928dc,_0x598509))return!0x1;return!0x0;}['_areMergableCells'](_0x1e9671,_0x366d47){const _0x349b46=this['editor']['plugins']['get']('TrackChangesEditing'),_0x565a02=this['editor']['model']['createRangeOn'](_0x1e9671),_0x474b80=this['editor']['model']['createRangeOn'](_0x366d47),_0x208ec2=new Set(),_0x1a7cde=new Set();for(const _0x3cdde5 of _0x349b46['getSuggestions']())if(('insertion'==_0x3cdde5['type']||'deletion'==_0x3cdde5['type']||'mergeTableCells'==_0x3cdde5['subType'])&&_0x3cdde5['isInContent']){for(const _0x299050 of _0x3cdde5['getRanges']())_0x299050['containsRange'](_0x565a02,!0x0)&&_0x208ec2['add'](_0x3cdde5['type']+':'+_0x3cdde5['author']['id']),_0x299050['containsRange'](_0x474b80,!0x0)&&_0x1a7cde['add'](_0x3cdde5['type']+':'+_0x3cdde5['author']['id']);}if(_0x208ec2['size']!=_0x1a7cde['size'])return!0x1;for(const _0x215ab4 of _0x208ec2)if(!_0x1a7cde['has'](_0x215ab4))return!0x1;return!0x0;}}class Ct extends _0x4fe0d7{static get['requires'](){return[It];}['afterInit'](){const _0x4656a4=this['editor'];if(!_0x4656a4['plugins']['has']('TableEditing'))return;const _0xa082ae=_0x4656a4['locale'],_0x1a364c=_0x4656a4['plugins']['get']('TrackChangesEditing');_0x1a364c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1a364c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1a364c['registerBlockAttribute']('headingRows'),_0x1a364c['registerBlockAttribute']('headingColumns'),_0x1a364c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xa082ae,'FORMAT_HEADER_ROW')),_0x1a364c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xa082ae,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f22d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ebd8=this['editor']['plugins']['get']('TableUtils'),_0x1242d9=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x26ee64({showActiveMarker:_0x470033=!0x0,setDataAttribute:_0x372568=!0x0}={}){return(_0x2176fe,_0xdee600,_0x33ec44)=>{const {type:_0xb4a447,id:_0xb8309b}=_0x2f22d5['_splitMarkerName'](_0xdee600['markerName']),_0x4c9b90=_0x2f22d5['getSuggestion'](_0xb8309b),_0x48a9ef=_0x4c9b90['data'];if('formatBlock'!=_0x4c9b90['type']||!_0x48a9ef||'setTableColumnHeader'!=_0x48a9ef['commandName'])return;if(_0xdee600['item'])return void _0x2176fe['stop']();if(!_0x33ec44['consumable']['consume'](_0xdee600['markerRange'],_0x2176fe['name']))return;const _0x283940=_0xdee600['markerRange']['start']['nodeAfter'],_0x3fc9bd=_0xdee600['markerRange']['end']['nodeBefore'],_0x4d0c5=_0x283940['parent']['parent'],{column:_0x153697}=_0x20ebd8['getCellLocation'](_0x283940),{column:_0x545d25}=_0x20ebd8['getCellLocation'](_0x3fc9bd);for(let _0x2cf3ec=_0x153697;_0x2cf3ec<=_0x545d25;_0x2cf3ec++){const _0x1fa9d0=_0x20ebd8['createTableWalker'](_0x4d0c5,{'column':_0x2cf3ec,'includeAllSlots':!0x1});for(const _0x37e54f of _0x1fa9d0){const _0x113252=_0x37e54f['cell'],_0x3b08d6=_0x33ec44['mapper']['toViewElement'](_0x113252);_0x33ec44['writer']['addClass']('ck-suggestion-marker-'+_0xb4a447,_0x3b08d6),_0x372568&&_0x33ec44['writer']['setAttribute']('data-suggestion',_0xb8309b,_0x3b08d6),_0x33ec44['mapper']['bindElementToMarker'](_0x3b08d6,_0xdee600['markerName']),_0x470033&&(_0x2f22d5['activeMarkers']['includes'](_0xdee600['markerName'])?_0x33ec44['writer']['addClass']('ck-suggestion-marker--active',_0x3b08d6):_0x33ec44['writer']['removeClass']('ck-suggestion-marker--active',_0x3b08d6));}}};}_0x2f22d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1242d9),_0x2f22d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1242d9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x26ee64(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x302781,_0x576170,_0x1da182)=>{_0x1da182['options']['showSuggestionHighlights']&&_0x26ee64({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x302781,_0x576170,_0x1da182);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3d849b,_0x2b0263,_0x3527e8)=>{const {type:_0x5b9adf,id:_0x11fb18}=_0x2f22d5['_splitMarkerName'](_0x2b0263['markerName']),_0x1c752b=_0x2f22d5['getSuggestion'](_0x11fb18),_0x46055d=_0x1c752b['data'];if('formatBlock'!=_0x1c752b['type']||!_0x46055d||'setTableColumnHeader'!=_0x46055d['commandName'])return;const _0x1f3ecb=_0x3527e8['mapper']['markerNameToElements'](_0x2b0263['markerName']);if(_0x1f3ecb){for(const _0xdb5816 of _0x1f3ecb)_0x3527e8['writer']['removeClass']('ck-suggestion-marker-'+_0x5b9adf,_0xdb5816),_0x3527e8['writer']['removeClass']('ck-suggestion-marker--active',_0xdb5816),_0x3527e8['writer']['removeAttribute']('data-suggestion',_0xdb5816),_0x3527e8['mapper']['unbindElementFromMarkerName'](_0xdb5816,_0x2b0263['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d99ca=this['editor'],_0x266930=_0x4d99ca['locale'];function _0x40ef99(_0x35bee5){return{'type':'format','content':o(_0x266930,'*Format:*\x20%0',_0x35bee5)};}_0x4d99ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313d22=>{if('formatBlock'!=_0x313d22['type'])return;const {data:_0x53f7d3}=_0x313d22;if(_0x53f7d3){if('setTableRowHeader'==_0x53f7d3['commandName']){const _0x3dfa43=_0x53f7d3['commandParams'][0x0]['forceValue'];return _0x40ef99(o(_0x266930,_0x3dfa43?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x53f7d3['commandName']){const _0x353f89=_0x53f7d3['commandParams'][0x0]['forceValue'];return _0x40ef99(o(_0x266930,_0x353f89?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0xfa4551=>[_0xfa4551,null]));class _t extends _0x4fe0d7{static get['requires'](){return[It];}['afterInit'](){const _0xbab90d=this['editor'];if(!_0xbab90d['plugins']['has']('TableClipboard'))return;const _0x57a072=_0xbab90d['plugins']['get']('TrackChangesEditing'),_0x5ee8d1=_0xbab90d['plugins']['get']('TableUtils'),_0x595a8c=_0xbab90d['plugins']['get'](It),_0x439335=_0xbab90d['plugins']['get']('TableClipboard');_0x595a8c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xbab90d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xbab90d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x364994=null;_0xbab90d['model']['on']('insertContent',(_0x2fddbe,_0x12b4c0)=>{const [_0x4118bd,_0x365f18]=_0x12b4c0,_0x52dc2c=_0x12b4c0[_0x12b4c0['length']-0x1];_0x52dc2c&&_0x52dc2c['forceDefaultExecution']||_0x57a072['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x534ea1,_0x884ec0,_0x136b2a,_0x17930b,_0x23d78c){if(_0x884ec0&&!_0x884ec0['is']('documentSelection'))return!0x1;const _0x2e04ac=_0x23d78c['getTableIfOnlyTableInContent'](_0x534ea1,_0x136b2a);if(!_0x2e04ac||!Re(_0x2e04ac,void 0x0,_0x17930b))return!0x1;const _0x3d5260=_0x17930b['getSelectionAffectedTableCells'](_0x136b2a['document']['selection']);if(!_0x3d5260['length'])return!0x1;const _0x54cc6a=_0x3d5260[0x0]['findAncestor']('table'),_0x2314a5=_0x17930b['getRowIndexes'](_0x3d5260),_0xea9fcb=_0x17930b['getColumnIndexes'](_0x3d5260),_0xe8025f={'startRow':_0x2314a5['first'],'endRow':_0x2314a5['last'],'startColumn':_0xea9fcb['first'],'endColumn':_0xea9fcb['last']};return 0x1==_0x3d5260['length']&&(_0xe8025f['endRow']+=_0x17930b['getRows'](_0x2e04ac)-0x1,_0xe8025f['endColumn']+=_0x17930b['getColumns'](_0x2e04ac)-0x1),Re(_0x54cc6a,_0xe8025f,_0x17930b);}(_0x4118bd,_0x365f18,_0xbab90d['model'],_0x5ee8d1,_0x439335)&&(_0x2fddbe['stop'](),_0x364994={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xbab90d['model']['change'](()=>{_0xbab90d['model']['insertContent'](_0x12b4c0[0x0],_0x12b4c0[0x1],_0x12b4c0[0x2],{'forceDefaultExecution':!0x0});const _0xb967ce=_0x13e654(),{rowInsertionRanges:_0x4d5a73,columnInsertionRanges:_0x44a64e,insertionRanges:_0x1dbead,deletionRanges:_0x33b6dc,cells:_0x32e077}=_0x364994;_0x4d5a73['length']&&_0x57a072['markMultiRangeInsertion'](_0x4d5a73,'tablePasteRow',{'tablePasteChainId':_0xb967ce}),_0x44a64e['length']&&_0x57a072['markMultiRangeInsertion'](_0x44a64e,'tablePasteColumn',{'tablePasteChainId':_0xb967ce}),_0x1dbead['length']&&(_0x57a072['markMultiRangeInsertion'](_0x1dbead,'tablePaste',{'tablePasteChainId':_0xb967ce,'skipNestingCheck':!0x0}),_0x1dbead['forEach'](_0xf4a260=>_0xf4a260['detach']?.())),_0x33b6dc['length']&&(_0x57a072['markMultiRangeDeletion'](_0x33b6dc,'tablePaste',{'tablePasteChainId':_0xb967ce,'skipNestingCheck':!0x0}),_0x33b6dc['forEach'](_0x26ae65=>_0x26ae65['detach']?.()));const _0x5d724c=_0x57a072['markMultiRangeBlockFormat'](_0x32e077['map'](({element:_0x2d0cd3})=>_0x2d0cd3),{'formatGroupId':_0x13e654()},[],'tablePasteCell',{'tablePasteChainId':_0xb967ce});if(_0x5d724c){const _0x39d56a=_0x5d724c['getMarkers'](),_0x47c585=[];for(const {element:_0x5c125b,attributes:_0x3a94e3}of _0x32e077){if(!_0x3a94e3)continue;const _0x105b72=_0xbab90d['model']['createRangeOn'](_0x5c125b),_0x469e75=_0x39d56a['find'](_0x1024bd=>_0x1024bd['getRange']()['isEqual'](_0x105b72));_0x469e75&&_0x47c585['push']([_0x469e75['name'],_0x3a94e3]);}_0x47c585['length']&&_0x5d724c['setAttribute']('markerAttributes',Object['fromEntries'](_0x47c585));}_0x364994=null;}));},{'priority':_0x5b85e5['high']+0xa}),_0xbab90d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x21b881,_0x4e243b)=>{const [_0x40577a,_0x3d90d7,,_0x5d3758]=_0x4e243b;if(!_0x364994)return;_0x21b881['stop']();const _0x58143d=_0x40577a['cell'],_0x5312de=_0x3d90d7,_0x49f592=ke(_0x58143d),_0x197f71=ke(_0x5312de);_0x21b881['return']=_0x58143d;let _0x1924f6=null,_0x2ec6f4=null;if(_0x197f71||_0x49f592){if(_0x49f592&&!_0x197f71){_0x5d3758['remove'](_0x58143d['getChild'](0x0));for(const _0x57ccca of Array['from'](_0x5312de['getChildren']()))_0x5d3758['insert'](_0x57ccca,_0x58143d,'end');const _0x1a27a3=_0x364994['rowInsertionIndexes']['includes'](_0x40577a['row']),_0x325a64=_0x364994['columnInsertionIndexes']['includes'](_0x40577a['column']);_0x1a27a3||_0x325a64||(_0x1924f6=_0x12550f['fromRange'](_0x5d3758['createRangeIn'](_0x58143d)));}else _0x197f71&&!_0x49f592&&(_0x2ec6f4=_0x5d3758['createRangeIn'](_0x58143d));}else{const _0x459ad3=_0x5d3758['createElement']('tableCellSuggestion'),_0x1ec273=_0x5d3758['createElement']('tableCellSuggestion');_0x5d3758['wrap'](_0x5d3758['createRangeIn'](_0x58143d),_0x1ec273),_0x5d3758['insert'](_0x459ad3,_0x58143d,0x0);for(const _0x360da2 of Array['from'](_0x5312de['getChildren']()))_0x5d3758['insert'](_0x360da2,_0x459ad3,'end');_0x1924f6=_0x12550f['fromRange'](_0x5d3758['createRangeOn'](_0x459ad3)),_0x2ec6f4=_0x12550f['fromRange'](_0x5d3758['createRangeOn'](_0x1ec273));}const _0x54366a=Array['from'](_0x5312de['getAttributes']())['filter'](([_0x6bdbeb])=>Pe['includes'](_0x6bdbeb));_0x364994['cells']['push']({'element':_0x58143d,'attributes':_0x54366a['length']?Object['fromEntries'](_0x54366a):null}),_0x1924f6&&_0x364994['insertionRanges']['push'](_0x1924f6),_0x2ec6f4&&_0x364994['deletionRanges']['push'](_0x2ec6f4);},{'priority':'high'}),_0x5ee8d1['on']('insertColumns',(_0x27f520,_0x549314)=>{const [_0x47e37b,_0x2b428c={}]=_0x549314;if(!_0x364994)return;const _0x5f2d9b=_0x2b428c['at']||0x0,_0x1c8f2e=_0x2b428c['columns']||0x1;_0x364994['columnInsertionIndexes']=new Array(_0x1c8f2e)['fill'](_0x5f2d9b)['map']((_0x486e43,_0x4069f6)=>_0x486e43+_0x4069f6);for(const {cell:_0x5ee1cb}of _0x5ee8d1['createTableWalker'](_0x47e37b,{'startColumn':_0x5f2d9b,'endColumn':_0x5f2d9b+_0x1c8f2e-0x1}))_0x364994['columnInsertionRanges']['push'](_0xbab90d['model']['createRangeOn'](_0x5ee1cb));},{'priority':'low'}),_0x5ee8d1['on']('insertRows',(_0x4f287c,_0x4abb97)=>{const [_0x482e73,_0x1b0ea4={}]=_0x4abb97;if(!_0x364994)return;const _0x35c4e5=_0x1b0ea4['at']||0x0,_0x51f0f8=_0x1b0ea4['rows']||0x1;_0x364994['rowInsertionIndexes']=new Array(_0x51f0f8)['fill'](_0x35c4e5)['map']((_0x172d1f,_0x103775)=>_0x172d1f+_0x103775);for(const {cell:_0x40ef47}of _0x5ee8d1['createTableWalker'](_0x482e73,{'startRow':_0x35c4e5,'endRow':_0x35c4e5+_0x51f0f8-0x1}))_0x364994['rowInsertionRanges']['push'](_0xbab90d['model']['createRangeOn'](_0x40ef47));},{'priority':'low'}),_0x57a072['descriptionFactory']['registerDescriptionCallback'](_0x5a5273=>{if(_0x5a5273['subType']&&_0x5a5273['subType']['startsWith']('tablePaste'))return _0x5a5273['previous']?{}:{'type':'insertion','content':o(_0xbab90d['locale'],'*Replace\x20table\x20cells*')};});const _0x2a6a9f=()=>!0x1;for(const _0x566b6c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x57a072['_suggestionFactory']['registerCustomCallback']('insertion',_0x566b6c,'join',_0x2a6a9f),_0x57a072['_suggestionFactory']['registerCustomCallback']('deletion',_0x566b6c,'join',_0x2a6a9f),_0x57a072['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x566b6c,'join',_0x2a6a9f);_0x57a072['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2a6a9f),_0x57a072['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x583241,_0x447fe9,_0x52f375)=>{const _0x38c460=_0x583241['map'](_0xf936e2=>_0xf936e2['getContainedElement']())['filter'](_0x36797f=>_0x36797f),_0x69c8c6=new Map(_0x38c460['map'](_0xf7f540=>[_0xf7f540,null]));if(_0x364994){for(const {element:_0xa19189,attributes:_0x32b68c}of _0x364994['cells'])_0x32b68c&&_0x69c8c6['set'](_0xa19189,_0x32b68c);}else{if(_0x52f375&&_0x52f375['markerAttributes'])for(const [_0x19797e,_0x1e645b]of Object['entries'](_0x52f375['markerAttributes'])){const _0x5b460d=_0xbab90d['model']['markers']['get'](_0x19797e),_0xec0e70=_0x5b460d?_0x5b460d['getRange']()['getContainedElement']():null;_0xec0e70&&_0x69c8c6['set'](_0xec0e70,_0x1e645b);}}_0xbab90d['model']['change'](_0x141cc2=>{for(const [_0x197891,_0x174491]of _0x69c8c6)_0x141cc2['setAttributes']({...we,..._0x174491},_0x197891);});});const _0x53a8b2=(_0x357d73,_0x541f2a)=>{_0x57a072['_suggestionFactory']['registerCustomCallback'](_0x357d73,'tablePaste',_0x541f2a,(_0x1d3eab,_0x2bd195,_0x5759f6)=>{_0xbab90d['model']['change'](_0x104475=>{const _0x2ce6ff=[];for(const _0x504996 of _0x1d3eab){const _0x362a82=_0x504996['start']['nodeAfter'];_0x362a82['is']('element','tableCellSuggestion')&&_0x2ce6ff['push'](_0x362a82);}_0x57a072['_suggestionFactory']['getSuggestionCallback'](_0x357d73,null,_0x541f2a)(_0x1d3eab,_0x2bd195,_0x5759f6);for(const _0x3e599a of _0x2ce6ff)'$graveyard'!=_0x3e599a['root']['rootName']&&_0x104475['unwrap'](_0x3e599a);});});};_0x53a8b2('insertion','accept'),_0x53a8b2('insertion','discard'),_0x53a8b2('deletion','accept'),_0x53a8b2('deletion','discard'),_0x57a072['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x181c5b=>{const _0x5d206b=_0x181c5b['map'](_0x4d4318=>_0x4d4318['getContainedElement']()),_0x5e1ad7=_0x5d206b[0x0]['findAncestor']('table'),{minRow:_0x41e304,maxRow:_0x3ba295}=_0x595a8c['_getCoordsForCells'](_0x5d206b);_0x5ee8d1['removeRows'](_0x5e1ad7,{'at':_0x41e304,'rows':_0x3ba295-_0x41e304+0x1});}),_0x57a072['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x563889=>{const _0x19a93a=_0x563889['map'](_0x2704e7=>_0x2704e7['getContainedElement']()),_0x1a6aa7=_0x19a93a[0x0]['findAncestor']('table'),{minColumn:_0x4d5005,maxColumn:_0x3556b4}=_0x595a8c['_getCoordsForCells'](_0x19a93a);_0x5ee8d1['removeColumns'](_0x1a6aa7,{'at':_0x4d5005,'columns':_0x3556b4-_0x4d5005+0x1});});const _0x315c55=(_0x44b636,_0x102afe)=>{if(!_0x102afe['subType']||!_0x102afe['subType']['startsWith']('tablePaste'))return;const _0x57bfd2=_0x102afe['attributes']['tablePasteChainId'],_0xdf098c=_0x57a072['getSuggestions']()['filter'](_0x4d9fc3=>_0x4d9fc3['isInContent']&&_0x4d9fc3['attributes']&&_0x4d9fc3['attributes']['tablePasteChainId']==_0x57bfd2);_0xdf098c['length']&&_0x102afe['getAllAdjacentSuggestions']()['length']!=_0xdf098c['length']&&_0xdf098c['reduce']((_0x437b40,_0x57f640)=>(_0x437b40['next']=_0x57f640,_0x57f640['previous']=_0x437b40,_0x57f640));};function _0x37b858(_0x4e79eb,_0x440916=!0x0){const {id:_0x276efe,authorId:_0x56de38}=_0x57a072['_splitMarkerName'](_0x4e79eb['markerName']),_0x1831c1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x55259e=_0x57a072['activeMarkers']['includes'](_0x4e79eb['markerName']);return _0x55259e&&_0x1831c1['push']('ck-suggestion-marker--active'),{'classes':_0x1831c1,'attributes':{'data-suggestion':_0x276efe,'data-author-id':_0x56de38},'priority':_0x55259e&&_0x440916?0xbc2:0xbb8};}_0x57a072['on']('suggestionLoaded',_0x315c55,{'priority':'high'}),_0x57a072['on']('suggestionUnloaded',_0x315c55,{'priority':'high'}),_0xbab90d['model']['document']['registerPostFixer'](()=>{let _0x42e8a4=!0x1;const _0x55b5f8=Array['from'](_0xbab90d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x481d1c,data:_0x284c28}of _0x55b5f8){const {group:_0x32b419,type:_0x52a68a,id:_0x46b4f1}=_0x57a072['_splitMarkerName'](_0x481d1c);if('suggestion'!=_0x32b419||'deletion'!=_0x52a68a||_0x284c28['oldRange'])continue;if(!_0x57a072['hasSuggestion'](_0x46b4f1))continue;const _0x32cd17=_0x57a072['getSuggestion'](_0x46b4f1)['getRanges'](),_0x3a36cc=_0xbab90d['plugins']['get']('Users')['me'];for(const _0x58a4f3 of _0x57a072['getSuggestions']()){if(!_0x58a4f3['isInContent']||_0x58a4f3['author']!=_0x3a36cc)continue;if('formatBlock'!=_0x58a4f3['type']||'tablePasteCell'!=_0x58a4f3['subType'])continue;if(_0x58a4f3['getRanges']()['every'](_0x3a53cb=>_0x32cd17['some'](_0xdc8e02=>_0xdc8e02['containsRange'](_0x3a53cb,!0x0)))){for(const _0x4e354e of _0x58a4f3['getAllAdjacentSuggestions']())_0x4e354e['isInContent']&&(_0x4e354e['discard'](),_0x42e8a4=!0x0);}}}return _0x42e8a4;}),_0xbab90d['model']['document']['registerPostFixer'](_0x17b8d8=>{const _0x4ad67d=_0xbab90d['commands']['get']('redo');if(!_0x4ad67d||!_0x4ad67d['_createdBatches']['has'](_0x17b8d8['batch']))return!0x1;let _0x1a0399=!0x1;const _0x4bb385=_0xbab90d['plugins']['get']('Users')['me'],_0x4b8e2e=_0xbab90d['model']['document']['differ']['getChanges'](),_0x465dc8=Array['from'](_0xbab90d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x50a7f3,data:_0x5af1fc})=>{const {group:_0x23aff8,subType:_0xe9a08e,authorId:_0x235d6d}=_0x57a072['_splitMarkerName'](_0x50a7f3);return'suggestion'==_0x23aff8&&'tablePaste'==_0xe9a08e&&_0x235d6d==_0x4bb385['id']&&!_0x5af1fc['oldRange'];});for(const _0x248647 of _0x4b8e2e){if('insert'!=_0x248647['type']||'tableCellSuggestion'!=_0x248647['name']||0x1!=_0x248647['length'])continue;const _0x2c0ca0=_0x17b8d8['createRange'](_0x248647['position'],_0x248647['position']['getShiftedBy'](0x1));if(!_0x465dc8['find'](({data:_0x35e844})=>_0x35e844['newRange']['isEqual'](_0x2c0ca0))){for(const {name:_0x33f899,data:_0x5d6853}of _0x465dc8)if(_0x2c0ca0['containsRange'](_0x5d6853['newRange'])){_0x17b8d8['updateMarker'](_0x33f899,{'range':_0x2c0ca0}),_0x1a0399=!0x0;break;}}}return _0x1a0399;}),_0xbab90d['model']['document']['registerPostFixer'](_0x20d0f1=>{let _0x3cf6c6=!0x1;const _0x2c3eaf=_0xbab90d['plugins']['get']('Users')['me'],_0x238707=_0x57a072['getSuggestions']()['filter'](_0x4fe077=>_0x4fe077['isInContent']&&_0x4fe077['author']==_0x2c3eaf),_0x26a26d=new Set(),_0x388fa5=new Set();for(const _0x48cdad of _0x238707)if('tablePaste'==_0x48cdad['subType'])for(const _0x1e6c2c of _0x48cdad['getMarkers']()){const _0x2498db=_0x1e6c2c['getRange']()['getContainedElement']();if(_0x2498db){if(_0x2498db['is']('element','tableCellSuggestion')&&ke(_0x2498db)){_0x48cdad['removeMarker'](_0x1e6c2c['name']),_0x26a26d['add'](_0x2498db),_0x3cf6c6=!0x0;const _0x5b6d83=_0x2498db['nextSibling'],_0xd0c8dc=_0x2498db['previousSibling'],_0x3eae90=_0x5b6d83&&_0x5b6d83['is']('element','tableCellSuggestion'),_0x3d7cf=_0xd0c8dc&&_0xd0c8dc['is']('element','tableCellSuggestion');_0x3eae90&&!_0x26a26d['has'](_0x5b6d83)&&_0x388fa5['add'](_0x5b6d83),_0x3d7cf&&!_0x26a26d['has'](_0xd0c8dc)&&_0x388fa5['add'](_0xd0c8dc);}else _0x2498db['is']('element','paragraph')&&_0x2498db['isEmpty']&&(_0x48cdad['removeMarker'](_0x1e6c2c['name']),_0x3cf6c6=!0x0);}}else{if('tablePasteCell'==_0x48cdad['subType']){if(!_0x48cdad['attributes']||!_0x48cdad['attributes']['tablePasteChainId'])continue;const _0x42b5e4=_0x48cdad['attributes']['markerAttributes'];if(_0x42b5e4&&Object['keys'](_0x42b5e4)['length'])continue;const _0x5ab3b0=_0x48cdad['attributes']['tablePasteChainId'];let _0xe83fbe=!0x0,_0x25b00=!0x0;for(const _0x224547 of _0x238707)if(_0x224547['subType']&&_0x224547['subType']['startsWith']('tablePaste')){if(!_0x224547['attributes']['tablePasteChainId']){_0x25b00=!0x1;break;}if(_0x224547['id']!=_0x48cdad['id']&&_0x224547['attributes']['tablePasteChainId']==_0x5ab3b0){_0xe83fbe=!0x1;break;}}_0x25b00&&_0xe83fbe&&(_0x48cdad['removeMarkers'](),_0x3cf6c6=!0x0);}}for(const _0x59084f of _0x26a26d)_0x20d0f1['remove'](_0x59084f);for(const _0x1e499f of _0x388fa5)_0x20d0f1['unwrap'](_0x1e499f);return _0x3cf6c6;}),_0xbab90d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x495288,_0xa243f2)=>_0x37b858(_0x495288),'converterPriority':'high'}),_0xbab90d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3a1ae9,_0x5bb176)=>_0x5bb176['options']['showSuggestionHighlights']?_0x37b858(_0x3a1ae9,!0x1):null,'converterPriority':'high'});const _0x5a1fa3=_0xbab90d['editing']['view'];this['listenTo'](_0x5a1fa3['document'],'clipboardOutput',(_0x29452e,_0x2b3771)=>{const _0x57a63b=[];for(const _0x525a65 of _0x5a1fa3['createRangeIn'](_0x2b3771['content'])['getItems']())_0x525a65['is']('element','suggestion-td')&&_0x57a63b['push'](_0x525a65);_0x5a1fa3['change'](_0x15f3b0=>{for(const _0x199e19 of _0x57a63b)_0x15f3b0['move'](_0x15f3b0['createRangeIn'](_0x199e19),_0x15f3b0['createPositionBefore'](_0x199e19)),_0x15f3b0['remove'](_0x199e19);});});}}function ke(_0x35c66b){if(_0x35c66b['isEmpty'])return!0x0;const _0xa01934=_0x35c66b['getChild'](0x0);return _0xa01934['is']('element','paragraph')&&_0xa01934['isEmpty'];}function Re(_0x5906b8,_0x51a415={},_0xf53339){for(const {isAnchor:_0x1e7a5e,cellHeight:_0x19d04e,cellWidth:_0x22ffb0}of _0xf53339['createTableWalker'](_0x5906b8,{'includeAllSlots':!0x0,..._0x51a415}))if(!_0x1e7a5e||0x1!=_0x19d04e||0x1!=_0x22ffb0)return!0x1;return!0x0;}class Nt extends _0x4fe0d7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x57cd86=this['editor']['plugins']['get']('TrackChangesEditing');_0x57cd86['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x57cd86['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x57cd86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x57cd86['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x57cd86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x57cd86['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x21f8f1,_0x526f8a){const _0x110e3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9b0de0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4c9f5a=_0x526f8a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1c3457=_0x9b0de0['getColumnGroupElement'](_0x4c9f5a);let _0x4317bd=_0x1c3457?_0x9b0de0['getTableColumnsWidths'](_0x1c3457):null,_0x135396=_0x4c9f5a['getAttribute']('tableWidth')||null;const _0x2ff6fc=_0x526f8a['tableWidth']||_0x135396,_0x132f8c=_0x526f8a['columnWidths']||_0x4317bd,_0x4eea27=this['editor']['plugins']['get']('Users')['me'];for(const _0x1a3dc8 of _0x110e3b['getSuggestions']()){const _0x119a48=_0x1a3dc8['getContainedElement']();if('resizeTable'===_0x1a3dc8['subType']&&_0x119a48===_0x4c9f5a){_0x1a3dc8['author']!==_0x4eea27&&_0x1a3dc8['discard']();const _0x5a0d37=_0x1a3dc8['data']['commandParams'];_0x135396=_0x5a0d37[0x0]['tableWidth'],_0x4317bd=_0x5a0d37[0x0]['columnWidths'];break;}}_0x21f8f1({'table':_0x4c9f5a,'tableWidth':_0x2ff6fc,'columnWidths':_0x132f8c}),_0x110e3b['markBlockFormat'](_0x4c9f5a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x135396,'columnWidths':_0x4317bd}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4ecf56){if('formatBlock'!=_0x4ecf56['type']&&'formatInline'!=_0x4ecf56['type'])return;const {data:_0x319090}=_0x4ecf56;if(_0x319090&&'resizeTable'===_0x319090['formatGroupId']){const _0x450145='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x450145)};}}}class Dt extends _0x4fe0d7{['afterInit'](){const _0x2687a7=this['editor'];_0x2687a7['plugins']['has']('Template')&&_0x2687a7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4fe0d7{['afterInit'](){const _0x5843b4=this['editor'];if(!_0x5843b4['commands']['get']('insertTableOfContents'))return;_0x5843b4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3067a9=_0x5843b4['plugins']['get']('TrackChangesEditing'),_0x4d7650=_0x5843b4['locale'];_0x3067a9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4ee0bd=>o(_0x4d7650,'ELEMENT_TABLE_OF_CONTENTS',_0x4ee0bd));}}class $t extends _0x4fe0d7{['afterInit'](){const _0xe8835d=this['editor'];if(!_0xe8835d['plugins']['has']('Title'))return;const _0x32dff8=_0xe8835d['plugins']['get']('TrackChangesEditing');_0x32dff8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xe8835d['locale'],'ELEMENT_TITLE')),_0xe8835d['model']['document']['registerPostFixer'](_0x2667d8=>{let _0x189b65=!0x1;const _0x2addd7=Array['from'](_0xe8835d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e67ec,data:_0x15743c}of _0x2addd7){const {group:_0x2521bf}=_0x32dff8['_splitMarkerName'](_0x5e67ec);if('suggestion'!==_0x2521bf||!_0x15743c['newRange'])continue;const _0x13be3d=_0x15743c['newRange'],_0x16d7aa=_0x13be3d['end']['nodeBefore'];if(!_0x16d7aa||!_0x16d7aa['is']('element','title-content'))continue;if(!_0x13be3d['start']['isTouching'](_0x13be3d['end']))continue;const _0x312f92=_0xe8835d['model']['schema']['getNearestSelectionRange'](_0x13be3d['end'],'forward');if(_0x312f92&&_0x312f92['isCollapsed']){const _0x39a06d=_0x2667d8['createRange'](_0x13be3d['start'],_0x312f92['start']);_0x39a06d['isEqual'](_0x13be3d)||(_0x2667d8['updateMarker'](_0x5e67ec,{'range':_0x39a06d}),_0x189b65=!0x0);}_0x189b65||(_0x2667d8['removeMarker'](_0x5e67ec),_0x189b65=!0x0);}return _0x189b65;});}}class Bt extends _0x4fe0d7{['afterInit'](){const _0x39798f=this['editor'],_0x293295=_0x39798f['plugins']['get']('TrackChangesEditing');_0x39798f['plugins']['has']('UndoEditing')&&(_0x293295['enableCommand']('undo'),_0x293295['enableCommand']('redo'));}}class xt extends _0x4fe0d7{static get['requires'](){return[It];}['afterInit'](){const _0x271f41=this['editor'];if(!_0x271f41['plugins']['has']('TableCaptionEditing'))return;_0x271f41['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x4fe0d7{['tableProperties'];['tableCellProperties'];constructor(_0x1f785a){super(_0x1f785a),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 _0x403467=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x32a411 of this['tableProperties'])_0x403467['enableCommand'](_0x32a411,(_0x343277,_0x468829)=>{const _0x5b9b18=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x32a411,[_0x5b9b18],this['tableProperties'],'tableProperties',_0x343277,_0x468829);});_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x403467['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x521162,_0x53936a)=>this['handleDiscardAction'](this['tableProperties'],_0x521162,_0x53936a)),_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x194c03 of this['tableCellProperties'])_0x403467['enableCommand'](_0x194c03,(_0x13c5f2,_0x5ac2fe)=>{const _0x406b2a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x194c03,_0x406b2a,this['tableCellProperties'],'tableCellProperties',_0x13c5f2,_0x5ac2fe);});_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x403467['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x40061d,_0x278e59)=>this['handleDiscardAction'](this['tableCellProperties'],_0x40061d,_0x278e59)),_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x403467['descriptionFactory']['registerDescriptionCallback'](_0x2c9d5a=>this['handleSuggestionDescription'](_0x2c9d5a));}['_handlePropertyChange'](_0x3bb707,_0x55e1bf,_0x1096dd,_0x24e372,_0x33f7a3,_0x540838){const _0x52fc56=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x540838['batch'],()=>{for(const _0xd27610 of _0x55e1bf){if(this['_getSuggestion'](_0xd27610,_0x24e372))_0x33f7a3(_0x540838);else{const _0x1f6fc8={};for(const _0x1bd408 of _0x1096dd){const _0x4a728f=_0xd27610['getAttribute'](_0x1bd408);void 0x0!==_0x4a728f&&(_0x1f6fc8[_0x1bd408]=_0x4a728f);}_0x33f7a3(_0x540838),_0x52fc56['markBlockFormat'](_0xd27610,{'commandParams':[_0x1f6fc8]},[],_0x24e372);}}});}['handleDiscardAction'](_0x3896d1,_0x4c18a5,_0x46b564){const _0xf75cc0=_0x4c18a5[0x0]['start']['nodeAfter'],_0x4a3058=_0x46b564['commandParams'][0x0];this['editor']['model']['change'](_0x8b342a=>{for(const _0x2aae36 of _0x3896d1)void 0x0!==_0x4a3058[_0x2aae36]?_0x8b342a['setAttribute'](_0x2aae36,_0x4a3058[_0x2aae36],_0xf75cc0):_0x8b342a['removeAttribute'](_0x2aae36,_0xf75cc0);});}['handleSuggestionDescription'](_0x5eb808){if(_0x5eb808['data'])switch(_0x5eb808['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'](_0x97f547,_0x30b7af){const _0x2328de=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x513de4 of _0x2328de['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d76c1=_0x513de4['getContainedElement']();if(_0x513de4['subType']===_0x30b7af&&_0x1d76c1===_0x97f547)return _0x513de4;}return null;}}const m='$elementName';class p extends _0x4fe0d7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5a7861,_0x2b0ef4,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(_0x36ca39){function _0x1f4417(_0x3e755d){return _0x3e755d['map'](_0x55f02e=>String['fromCharCode'](_0x55f02e))['join']('');}super(_0x36ca39),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5d0983,_0x5be616,_0x6f16f3,_0x2e637f)=>{this['_model']['change'](()=>{for(const _0x30b22a of[..._0x2e637f,..._0x6f16f3])this['_model']['markers']['has'](_0x30b22a)&&_0x36ca39['editing']['reconvertMarker'](_0x30b22a);});}),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']=_0x36ca39['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(),_0x36ca39['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x36ca39['config']['get']('trackChanges.trackFormatChanges'),_0x36ca39['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x36ca39['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x36ca39,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1f4417([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1f4417([0x34,0x30,0x34,0x38,0x31,0x38,0x31,0x38]);}['init'](){const _0x10f91b=this['editor'],_0xaed982=(_0x5b7324,_0x5087e2)=>{if('attribute'!=_0x5b7324)return'ck-suggestion-marker-'+_0x5b7324;const _0x247ee8=_0x5087e2['split']('|')[0x0];return this['_isBlockAttribute'](_0x247ee8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x10f91b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x801fae=>{const {id:_0x71b569,authorId:_0x141ede,type:_0x4e3337,subType:_0x331774}=this['_splitMarkerName'](_0x801fae['markerName']),_0xb3ac=['ck-suggestion-marker',_0xaed982(_0x4e3337,_0x331774)];let _0xdba5d6=0xbb8;return this['activeMarkers']['includes'](_0x801fae['markerName'])&&(_0xb3ac['push']('ck-suggestion-marker--active'),_0xdba5d6=0xbc2),'deletion'==_0x4e3337&&(_0xdba5d6+=0x5),{'classes':_0xb3ac,'attributes':{'data-suggestion':_0x71b569,'data-author-id':_0x141ede},'priority':_0xdba5d6};}}),_0x10f91b['conversion']['for']('dataDowncast')['add'](_0x13ef73=>{_0x13ef73['on']('addMarker:suggestion',(_0x1c35f0,_0x5ea862,_0x204457)=>{if(!_0x204457['options']['showSuggestionHighlights'])return;const _0xf121e8=_0x5ea862['item'];if(!_0xf121e8)return;const _0xf0d1c=_0x204457['mapper']['toViewElement'](_0xf121e8);_0x10f91b['model']['schema']['isObject'](_0xf121e8)&&_0xf0d1c&&!_0xf0d1c['getCustomProperty']('widget')&&_0xf0d1c['is']('containerElement')&&_0x275f5a(_0xf0d1c,_0x204457['writer']);},{'priority':'high'});}),_0x10f91b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2ceaf4,_0x2a0c24)=>{if(!_0x2a0c24['options']['showSuggestionHighlights'])return null;const {type:_0x122679,subType:_0x169f72}=this['_splitMarkerName'](_0x2ceaf4['markerName']);return{'classes':['ck-suggestion-marker',_0xaed982(_0x122679,_0x169f72)],'priority':0xbb8};}});const _0x580196=({showActiveMarkers:_0x1ec728=!0x0,isAttributeSuggestion:_0x3a5b97=!0x1}={})=>(_0x51d213,_0x3d752d,_0x2808c4)=>{if(!_0x3d752d['item'])return;const {id:_0x531275,authorId:_0x3a73d8}=this['_splitMarkerName'](_0x3d752d['markerName']);if(_0x3a5b97){const _0x36c36f=this['_suggestions']['get'](_0x531275),_0x5df50c=this['_getAttributeKey'](_0x36c36f);if(!this['_isBlockAttribute'](_0x5df50c))return;}if(_0x3d752d['item']['is']('selection'))return void _0x2808c4['consumable']['consume'](_0x3d752d['item'],_0x51d213['name']);const _0x26b9ef=_0x2808c4['mapper']['toViewElement'](_0x3d752d['item']);if(_0x3d752d['item']['is']('element')&&_0x10f91b['model']['schema']['isBlock'](_0x3d752d['item'])&&!_0x26b9ef['getCustomProperty']('addHighlight')){_0x2808c4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x26b9ef),_0x2808c4['writer']['setAttribute']('data-suggestion',_0x531275,_0x26b9ef),_0x2808c4['writer']['setAttribute']('data-author-id',_0x3a73d8,_0x26b9ef),_0x2808c4['mapper']['bindElementToMarker'](_0x26b9ef,_0x3d752d['markerName']),_0x1ec728&&(this['activeMarkers']['includes'](_0x3d752d['markerName'])?_0x2808c4['writer']['addClass']('ck-suggestion-marker--active',_0x26b9ef):_0x2808c4['writer']['removeClass']('ck-suggestion-marker--active',_0x26b9ef));for(const _0x2aa83f of _0x10f91b['model']['createRangeIn'](_0x3d752d['item'])['getItems']())_0x2808c4['consumable']['consume'](_0x2aa83f,_0x51d213['name']);_0x2808c4['consumable']['consume'](_0x3d752d['item'],_0x51d213['name']);}};_0x10f91b['conversion']['for']('dataDowncast')['add'](_0x176ce5=>{_0x176ce5['on']('addMarker:suggestion:formatBlock',(_0x38190b,_0x400cb5,_0x1d125a)=>{_0x1d125a['options']['showSuggestionHighlights']&&_0x580196({'showActiveMarkers':!0x1})(_0x38190b,_0x400cb5,_0x1d125a);},{'priority':'highest'});}),_0x10f91b['conversion']['for']('dataDowncast')['add'](_0x9a187a=>{_0x9a187a['on']('addMarker:suggestion:attribute',(_0x208fe3,_0x330e19,_0x32f141)=>{_0x32f141['options']['showSuggestionHighlights']&&_0x580196({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x208fe3,_0x330e19,_0x32f141);},{'priority':'highest'});}),_0x10f91b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x74a451,_0x4e85ea)=>_0x4e85ea['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x74a451['substr'](0xb)}}),_0x10f91b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2c2431,{writer:_0x2d47d9})=>{let _0x13c9ca='suggestion:'+_0x2c2431['getAttribute']('suggestion-type')+':'+_0x2c2431['getAttribute']('id');return _0x2c2431['getAttribute']('marker-count')&&(_0x13c9ca+=':'+_0x2c2431['getAttribute']('marker-count')),_0x2d47d9['createElement']('$marker',{'data-name':_0x13c9ca});}}),_0x10f91b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x10f91b['conversion']['for']('editingDowncast')['add'](_0x3ebb8f=>{_0x3ebb8f['on']('addMarker:suggestion:formatBlock',_0x580196(),{'priority':'high'});}),_0x10f91b['conversion']['for']('editingDowncast')['add'](_0xcf49ec=>{_0xcf49ec['on']('addMarker:suggestion:attribute',_0x580196({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x10f91b['conversion']['for']('editingDowncast')['add'](_0x594617=>{_0x594617['on']('removeMarker:suggestion:formatBlock',(_0x24a470,_0x190aa2,_0xa21ce0)=>{const _0x235b56=_0xa21ce0['mapper']['markerNameToElements'](_0x190aa2['markerName']);if(_0x235b56){for(const _0x16fa36 of _0x235b56)_0x16fa36['getCustomProperty']('addHighlight')||(_0xa21ce0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x16fa36),_0xa21ce0['writer']['removeAttribute']('data-suggestion',_0x16fa36),_0xa21ce0['writer']['removeAttribute']('data-author-id',_0x16fa36),_0xa21ce0['mapper']['unbindElementFromMarkerName'](_0x16fa36,_0x190aa2['markerName']));}},{'priority':'high'});}),_0x10f91b['conversion']['for']('editingDowncast')['add'](_0x276ac3=>{_0x276ac3['on']('removeMarker:suggestion:attribute',(_0x591a64,_0x3d0feb,_0x50cd65)=>{const _0x4f4e67=_0x50cd65['mapper']['markerNameToElements'](_0x3d0feb['markerName']);if(!_0x4f4e67)return;const {id:_0x177022}=this['_splitMarkerName'](_0x3d0feb['markerName']),_0x212580=this['_suggestions']['get'](_0x177022),_0x34e4e9=this['_getAttributeKey'](_0x212580);if(this['_isBlockAttribute'](_0x34e4e9)){for(const _0x20cdfe of _0x4f4e67)_0x20cdfe['getCustomProperty']('addHighlight')||(_0x50cd65['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x20cdfe),_0x50cd65['writer']['removeAttribute']('data-suggestion',_0x20cdfe),_0x50cd65['writer']['removeAttribute']('data-author-id',_0x20cdfe),_0x50cd65['mapper']['unbindElementFromMarkerName'](_0x20cdfe,_0x3d0feb['markerName']));}},{'priority':'high'});}),_0x10f91b['model']['document']['registerPostFixer'](_0x449c99=>{let _0x5e0a6e=!0x1;const _0x5d404f=Array['from'](_0x10f91b['model']['document']['differ']['getChangedMarkers']()),_0x3b29ee=new Set();for(const {name:_0x403b3a,data:_0x562536}of _0x5d404f){const {group:_0x1306b4,type:_0x4b2be5,subType:_0x3b0c69,id:_0x31360f}=this['_splitMarkerName'](_0x403b3a);if('suggestion'!==_0x1306b4)continue;const _0x350bb6=this['_suggestions']['get'](_0x31360f);if(null!=_0x562536['newRange']){'formatInline'==_0x4b2be5&&(_0x5e0a6e=_0x5e0a6e||Ut(_0x562536['newRange'],_0x403b3a,_0x449c99,_0x10f91b['model']['schema']));const _0x17a92b='attribute'==_0x4b2be5&&this['_isBlockAttribute'](_0x3b0c69['split']('|')[0x0]);if(_0x562536['newRange']['isCollapsed']||'$graveyard'==_0x562536['newRange']['root']['rootName']||'formatBlock'==_0x4b2be5&&!Ft(_0x562536['newRange'])||_0x17a92b&&!Ft(_0x562536['newRange'])||'deletion'==_0x4b2be5&&!(!Vt(_0x38ea76=_0x562536['newRange'])&&!function(_0x205060){return _0x205060['start']['parent']==_0x205060['end']['nodeBefore']&&_0x205060['start']['isAtEnd'];}(_0x38ea76)))_0x449c99['removeMarker'](_0x403b3a),_0x5e0a6e=!0x0;else{if(!_0x350bb6||!_0x350bb6['isInContent'])continue;if(_0x562536['newRange']&&_0x562536['oldRange']&&_0x562536['newRange']['isEqual'](_0x562536['oldRange']))continue;_0x3b29ee['add'](_0x350bb6);}}}var _0x38ea76;return _0x3b29ee['size']>0x0&&(_0x5e0a6e=!!this['_joinWithAdjacentSuggestions'](_0x3b29ee)||_0x5e0a6e),_0x5e0a6e;}),_0x10f91b['model']['document']['registerPostFixer'](_0x441925=>{let _0xa9831d=!0x1;for(const _0x555b59 of _0x10f91b['model']['document']['differ']['getChanges']())if('insert'==_0x555b59['type'])for(const _0xb80260 of this['_suggestions']['values']()){if(_0xb80260['isMultiRange']||!_0xb80260['isInContent'])continue;const _0x138a4e='formatBlock'==_0xb80260['type'],_0x1f1083=this['_getAttributeKey'](_0xb80260),_0x31038d=_0x1f1083&&this['_isBlockAttribute'](_0x1f1083);if(!_0x138a4e&&!_0x31038d)continue;const _0x419c1d=_0xb80260['getFirstRange']();if(_0x419c1d['start']['parent']!=_0x419c1d['end']['parent']&&!_0x419c1d['end']['isAtEnd']){const _0x9174e=_0x10f91b['model']['createPositionAt'](_0x419c1d['start']['nodeAfter'],'end'),_0x133010=_0x10f91b['model']['createRange'](_0x419c1d['start'],_0x9174e);_0x441925['updateMarker'](_0xb80260['getFirstMarker'](),{'range':_0x133010}),_0xa9831d=!0x0;}}return _0xa9831d;}),_0x10f91b['model']['document']['registerPostFixer'](_0x4cd9ed=>this['_processAttributeChanges'](_0x4cd9ed)),_0x10f91b['model']['document']['registerPostFixer'](_0x2a265b=>!_0x2a265b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a265b)),_0x10f91b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x10f91b['model']['document']['on']('change:data',(_0x5ae158,_0x5c88c5)=>{if(!_0x5c88c5['isLocal']||_0x5c88c5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1734a9=_0x10f91b['model']['document']['differ']['getChanges']();if(0x0==_0x1734a9['length'])return;const _0x3121b7=[],_0x3052d3=_0x1734a9['filter'](_0x4bcf7c=>'attribute'==_0x4bcf7c['type']),_0xb9ab1e=_0x1734a9['filter'](_0x1c2db8=>'insert'==_0x1c2db8['type']&&'$text'!=_0x1c2db8['name']);for(const _0x1aea9f of _0x3052d3)this['_isRegisteredAttribute'](_0x1aea9f['attributeKey'])&&_0x3121b7['push']({'key':_0x1aea9f['attributeKey'],'newValue':_0x1aea9f['attributeNewValue'],'oldValue':_0x1aea9f['attributeOldValue'],'range':Pt(_0x1aea9f['range'],_0x10f91b['model'])});for(const _0x5577c0 of _0xb9ab1e){if('rename'!=_0x5577c0['action']&&'refresh'!=_0x5577c0['action'])continue;const _0x570056=Lt(_0x5577c0['position']['nodeAfter'],_0x10f91b['model']),_0x35245e=_0x5577c0['before'];'rename'==_0x5577c0['action']&&_0x3121b7['push']({'key':m,'newValue':_0x5577c0['name'],'oldValue':_0x35245e['name'],'range':_0x570056});for(const [_0x2bd017,_0x1866de]of _0x35245e['attributes']){if(!this['_isRegisteredAttribute'](_0x2bd017))continue;const _0x3bd78c=_0x5577c0['attributes']['get'](_0x2bd017);_0x1866de!==_0x3bd78c&&_0x3121b7['push']({'key':_0x2bd017,'newValue':_0x3bd78c,'oldValue':_0x1866de,'range':_0x570056});}for(const [_0xcc4bbd,_0xa12ba1]of _0x5577c0['attributes'])this['_isRegisteredAttribute'](_0xcc4bbd)&&(_0x35245e['attributes']['has'](_0xcc4bbd)||_0x3121b7['push']({'key':_0xcc4bbd,'newValue':_0xa12ba1,'oldValue':null,'range':_0x570056}));}0x0!=_0x3121b7['length']&&_0x10f91b['model']['enqueueChange'](_0x5c88c5,_0x474aa5=>{const _0x5d1819=_0x13e654();for(const {range:_0x15ed77,key:_0x53bef2,oldValue:_0x30ae9d,newValue:_0x280d2c}of _0x3121b7)this['markAttributeChange'](_0x15ed77,_0x53bef2,_0x30ae9d,_0x280d2c,{'groupId':_0x5d1819});this['_reduceExistingSuggestions'](_0x474aa5,_0x3121b7);});},{'priority':'lowest'}),_0x10f91b['model']['markers']['on']('update:suggestion',(_0xa3e62d,_0x2fdf07,_0x503504)=>{if(null==_0x503504){const {id:_0x2f1c97}=this['_splitMarkerName'](_0x2fdf07['name']),_0x168c07=this['_suggestions']['get'](_0x2f1c97);_0x168c07&&_0x168c07['addMarkerName'](_0x2fdf07['name']);}}),_0x10f91b['model']['document']['on']('change:data',()=>{const _0xd71596=Array['from'](_0x10f91b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3840f1=>'suggestion'===this['_splitMarkerName'](_0x3840f1['name'])['group']);if(0x0===_0xd71596['length'])return;_0xd71596['sort']((_0xb0d381,_0x5bd218)=>{const _0x598ac4=_0xb0d381['data']['oldRange'],_0x282e00=_0x5bd218['data']['oldRange'];return null===_0x598ac4&&null===_0x282e00?0x0:null===_0x598ac4&&null!==_0x282e00?-0x1:null!==_0x598ac4&&null===_0x282e00?0x1:_0x598ac4['start']['isBefore'](_0x282e00['start'])?-0x1:0x1;});const _0x3b974b=new Set(),_0x2459cd=new Set();for(const {name:_0x5b9741,data:_0x188b68}of _0xd71596){const {id:_0x566713}=this['_splitMarkerName'](_0x5b9741);if(null===_0x188b68['oldRange']){const _0x15997a=this['_handleNewSuggestionMarker'](_0x5b9741);_0x2459cd['add'](_0x15997a);}else{const _0x9ca7c4=this['_suggestions']['get'](_0x566713);null!==_0x188b68['newRange']||_0x9ca7c4['isInContent']?(_0x3b974b['add'](_0x9ca7c4['head']),_0x2459cd['add'](_0x9ca7c4)):this['_removeSuggestion'](_0x9ca7c4);}}_0x2459cd['size']>0x0&&this['_refreshSuggestionsChain'](_0x2459cd);for(const _0x1781ac of _0x3b974b)this['fire']('suggestionChanged',_0x1781ac);}),_0x10f91b['model']['on']('applyOperation',(_0x273895,_0x947164)=>{const _0x42bef3=_0x947164[0x0];if(!this['_suggestions']['size'])return;if(!_0x42bef3['isDocumentOperation'])return;if(_0x42bef3['batch']['isUndo']||!_0x42bef3['batch']['isLocal'])return;let _0x2dbe50,_0x155340;switch(_0x42bef3['type']){case'insert':_0x2dbe50=_0x10f91b['model']['createPositionAt'](_0x42bef3['position']),_0x155340=_0x2dbe50['getShiftedBy'](_0x42bef3['howMany']);break;case'split':_0x2dbe50=_0x10f91b['model']['createPositionAt'](_0x42bef3['splitPosition']),_0x155340=_0x10f91b['model']['createPositionAt'](_0x42bef3['moveTargetPosition']);break;case'move':_0x2dbe50=_0x10f91b['model']['createPositionAt'](_0x42bef3['targetPosition']),_0x155340=_0x2dbe50['getShiftedBy'](_0x42bef3['howMany']);break;default:return;}const _0x51c83e=_0x10f91b['model']['createRange'](_0x2dbe50,_0x155340);_0x10f91b['model']['change'](()=>{for(const {suggestion:_0x1ef84c,meta:_0x3d058f}of this['_findSuggestions'](_0x51c83e)){if(_0x1ef84c['isMultiRange'])continue;if('formatInline'==_0x1ef84c['type'])continue;const _0x185fe7=this['_getAttributeKey'](_0x1ef84c);if(_0x185fe7&&this['_isBlockAttribute'](_0x185fe7)&&'split'!=_0x42bef3['type'])continue;const _0x97a27b=_0x1ef84c['data']&&_0x1ef84c['data']['multipleBlocks'];('formatBlock'!=_0x1ef84c['type']||'split'==_0x42bef3['type']&&!_0x97a27b)&&(_0x3d058f['containsRangeInObject']||'insertion'==_0x1ef84c['type']&&_0x3d058f['isOwn']||_0x1ef84c['getFirstRange']()['containsRange'](_0x51c83e)&&this['_breakSuggestionMarker'](_0x1ef84c,_0x2dbe50,_0x155340));}});},{'priority':'lowest'}),_0x10f91b['model']['on']('deleteContent',(_0x5c9675,_0x314e6b)=>{const _0x4e2323=_0x314e6b[0x0],_0x4c5813=_0x314e6b[0x1];if(_0x4c5813&&_0x4c5813['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4e2323['isCollapsed'])return;const _0x4a555b=_0x10f91b['model']['schema'],{start:_0x3dd6f6,end:_0x34c653}=_0x4e2323['getFirstRange'](),_0x11ebd1=_0x3dd6f6['nodeAfter']&&_0x4a555b['isLimit'](_0x3dd6f6['nodeAfter'])?null:_0x4a555b['getNearestSelectionRange'](_0x3dd6f6,'forward'),_0x4498e3=_0x34c653['nodeBefore']&&_0x4a555b['isLimit'](_0x34c653['nodeBefore'])?null:_0x4a555b['getNearestSelectionRange'](_0x34c653,'backward'),_0x5bdc39=_0x10f91b['model']['createRange'](_0x11ebd1?_0x11ebd1['start']:_0x3dd6f6,_0x4498e3?_0x4498e3['end']:_0x34c653);_0x10f91b['model']['change'](_0x19d2e0=>{this['markDeletion'](_0x5bdc39);const _0x2164e8=_0x10f91b['model']['schema']['getNearestSelectionRange'](_0x5bdc39['start']);_0x4e2323['is']('documentSelection')?_0x19d2e0['setSelection'](_0x2164e8):_0x4e2323['setTo'](_0x2164e8);}),_0x5c9675['stop']();},{'priority':_0x5b85e5['normal']+0xa}),_0x10f91b['model']['on']('insertContent',(_0x43af61,_0x3ca2f0)=>{const _0x440dbc=_0x3ca2f0[_0x3ca2f0['length']-0x1];_0x440dbc&&_0x440dbc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x10f91b['model']['change'](()=>{let _0x209e9a=_0x10f91b['model']['insertContent'](_0x3ca2f0[0x0],_0x3ca2f0[0x1],_0x3ca2f0[0x2],{'forceDefaultExecution':!0x0});if(!_0x209e9a)return;_0x43af61['return']=_0x209e9a['clone']();const _0x4168ee=_0x209e9a['end']['nodeBefore'],_0x4bc40b=_0x10f91b['model']['schema'];_0x4168ee&&_0x4bc40b['isBlock'](_0x4168ee)&&!_0x4bc40b['isObject'](_0x4168ee)&&(_0x209e9a=_0x10f91b['model']['createRange'](_0x209e9a['start'],_0x10f91b['model']['createPositionAt'](_0x4168ee,'end'))),this['markInsertion'](_0x209e9a);}),_0x43af61['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c5f58=new x(_0x10f91b,this['_suggestions']);_0x10f91b['commands']['add']('acceptSuggestion',_0x5c5f58),this['enableCommand']('acceptSuggestion');const _0x2dee00=new R(_0x10f91b,this['_suggestions']);_0x10f91b['commands']['add']('discardSuggestion',_0x2dee00),this['enableCommand']('discardSuggestion'),_0x10f91b['commands']['add']('acceptAllSuggestions',new E(_0x10f91b,_0x5c5f58,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x10f91b['commands']['add']('discardAllSuggestions',new E(_0x10f91b,_0x2dee00,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x10f91b['commands']['add']('acceptSelectedSuggestions',new O(_0x10f91b,_0x5c5f58,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x10f91b['commands']['add']('discardSelectedSuggestions',new O(_0x10f91b,_0x2dee00,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b193f=_0x10f91b['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b193f,'addComment',(_0x5831b1,{threadId:_0x14c028})=>{const _0x4aa8c1=this['_suggestions']['get'](_0x14c028);_0x4aa8c1&&_0x4aa8c1['commentThread']&&0x1===_0x4aa8c1['commentThread']['length']&&this['_updateSuggestionData'](_0x14c028,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b193f,'removeComment',(_0x41c922,{threadId:_0x232dc0})=>{const _0x46796c=this['_suggestions']['get'](_0x232dc0);_0x46796c&&_0x46796c['commentThread']&&!_0x46796c['commentThread']['length']&&this['_updateSuggestionData'](_0x232dc0,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x184fc5){if(this['_adapter'])throw new _0x25e072('track-changes-adapter-already-set',this);this['_adapter']=_0x184fc5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x138694=!0x1,toJSON:_0xd97272=!0x1}={}){const _0x5d25df=[];for(const _0x1eaf52 of this['_suggestions']['values']())_0x138694&&!_0x1eaf52['isInContent']||_0x5d25df['push'](_0x1eaf52);return _0xd97272?_0x5d25df['map'](_0x3375c5=>_0x3375c5['toJSON']()):_0x5d25df;}['getSuggestion'](_0x33e556){const _0x185937=this['_suggestions']['get'](_0x33e556);if(!_0x185937)throw new _0x25e072('track-changes-suggestion-not-found',this);return _0x185937;}['hasSuggestion'](_0x546baf){return this['_suggestions']['has'](_0x546baf);}['addSuggestionData'](_0x17f89b){const {authorId:_0x16b98f,id:_0x5be94b,attributes:_0x116599}=_0x17f89b,[_0xfb97be,_0x1d8056]=_0x17f89b['type']['split'](':'),_0x195501=this['_suggestions']['get'](_0x5be94b)||this['_createSuggestion'](_0xfb97be,_0x1d8056,_0x5be94b,_0x16b98f,_0x116599);if(this['_addThreadToSuggestion'](_0x195501),this['_checkSuggestionCorrectness'](_0x195501,_0xfb97be,_0x1d8056||null,_0x16b98f),_0x195501['createdAt']=_0x17f89b['createdAt'],_0x195501['_isDataLoaded']=!0x0,_0x116599&&_0x116599['@external']){const _0x5a2f02=_0x116599['@external'],_0x559be1=this['_getExternalAuthor'](_0x5a2f02['authorName']);_0x195501['authoredAt']=_0x5a2f02['createdAt'],_0x195501['author']=_0x559be1,_0x195501['isExternal']=!0x0;}else _0x195501['authoredAt']=_0x17f89b['createdAt'];switch(_0x17f89b['data']&&(_0x195501['data']=_0x17f89b['data']),_0x17f89b['attributes']&&(_0x195501['attributes']=_0x17f89b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x195501['_saved']=!0x0),this['_suggestionState']['get'](_0x195501)){case'notReady':this['_suggestionState']['set'](_0x195501,'dataReady');break;case'markerReady':_0x195501['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x195501])),this['_refreshSuggestionsChain'](new Set([_0x195501])),this['_suggestionState']['set'](_0x195501,'ready'),this['fire']('suggestionLoaded',_0x195501)):this['_suggestionState']['set'](_0x195501,'removed');}return _0x195501;}['acceptSuggestion'](_0x569340){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a92ba of _0x569340['getAllAdjacentSuggestions']())_0x4a92ba['accept']();});});}['discardSuggestion'](_0x1dafbd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1a2ec5 of _0x1dafbd['getAllAdjacentSuggestions']())_0x1a2ec5['discard']();});});}['enableCommand'](_0x40c861,_0xc1b8c4){const _0x44161e=this['editor']['commands']['get'](_0x40c861);if(!_0x44161e)throw new _0x25e072('track-changes-command-not-found',this,{'commandName':_0x40c861});if(this['_enabledCommands']['has'](_0x44161e))throw new _0x25e072('track-changes-enable-command-twice',this,{'commandName':_0x40c861});this['_enabledCommands']['add'](_0x44161e),_0xc1b8c4&&_0x44161e['on']('execute',(_0x58d528,_0x5b3684)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b3684['length']>0x0&&_0x5b3684[_0x5b3684['length']-0x1]&&_0x5b3684[_0x5b3684['length']-0x1]['forceDefaultExecution']?_0x5b3684['pop']():(_0x58d528['return']=_0xc1b8c4((..._0x157677)=>_0x44161e['execute'](..._0x157677,{'forceDefaultExecution':!0x0}),..._0x5b3684),_0x58d528['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x39160d){let _0x41c885,_0x1b29d3;const _0x527e85=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x41c885=_0x39160d();}catch(_0x36ab31){_0x1b29d3=_0x36ab31;}return _0x527e85||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b29d3&&_0x25e072['rethrowUnexpectedError'](_0x1b29d3,this),_0x41c885;}['markInsertion'](_0x8335d2,_0x1516f3=null,_0x1cffac={}){if(_0x8335d2['isCollapsed'])return null;const _0x58a59b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ad584,meta:_0x273f48}of this['_findSuggestions'](_0x8335d2,'insertion'))if(_0x273f48['isOwn']){if(!_0x273f48['isNextTo']){if(_0x273f48['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5ad584,_0x1cffac))continue;return _0x5ad584;}if(qt(_0x5ad584,_0x1cffac))return _0x5ad584;this['_breakSuggestionMarker'](_0x5ad584,_0x8335d2['start'],_0x8335d2['end']);break;}if(_0x1516f3==_0x5ad584['subType']&&qt(_0x5ad584,_0x1cffac)){const _0x1eeaac=_0x5ad584['getFirstRange']();return _0x1eeaac['start']['isEqual'](_0x8335d2['end'])?this['_setSuggestionRange'](_0x5ad584,this['_model']['createRange'](_0x8335d2['start'],_0x1eeaac['end'])):this['_setSuggestionRange'](_0x5ad584,this['_model']['createRange'](_0x1eeaac['start'],_0x8335d2['end'])),_0x5ad584;}}const _0x4619d5=_0x13e654(),_0x95fdd7=_0x58a59b['id'],_0x40759a=_0x1516f3?'insertion:'+_0x1516f3:'insertion',_0x2ec8c8=this['_setSuggestionData']({'id':_0x4619d5,'type':_0x40759a,'createdAt':new Date(),'authorId':_0x95fdd7,'attributes':_0x1cffac});return this['_addSuggestionMarker'](_0x40759a,_0x4619d5,_0x95fdd7,_0x8335d2),_0x2ec8c8;}['markMultiRangeInsertion'](_0x200a75,_0x2d4f76='multi',_0x74ad97={}){const _0x1a7340=this['editor']['plugins']['get']('Users')['me'],_0x40d621=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d4f76,'join');for(const _0x10cc57 of this['getSuggestions']())if(_0x10cc57['author']['id']==_0x1a7340['id']&&'insertion'==_0x10cc57['type']&&_0x10cc57['subType']==_0x2d4f76&&qt(_0x10cc57,_0x74ad97)&&(_0x40d621(_0x10cc57['getRanges'](),_0x200a75)||_0x40d621(_0x200a75,_0x10cc57['getRanges']()))){for(const _0xc923a5 of _0x200a75)_0x10cc57['addRange'](_0xc923a5);return _0x10cc57;}for(const {suggestion:_0x2e89da,meta:_0x4ac103}of this['_findSuggestions'](_0x200a75,'insertion')){if(!_0x4ac103['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4ac103['containsRangeInObject'])continue;if(!qt(_0x2e89da,_0x74ad97))continue;let _0x500342=!0x0;for(const _0x557814 of _0x2e89da['getRanges']())for(const _0x37ff7b of _0x200a75)if(!_0x557814['containsRange'](_0x37ff7b)){_0x500342=!0x1;break;}if(_0x500342)return _0x2e89da;}const _0x529e0c=_0x13e654(),_0x40d46e=_0x1a7340['id'],_0x1e7951='insertion:'+_0x2d4f76,_0x56a121=this['_setSuggestionData']({'id':_0x529e0c,'type':_0x1e7951,'createdAt':new Date(),'authorId':_0x40d46e,'attributes':_0x74ad97});for(const _0x259a17 of _0x200a75)this['_addSuggestionMarker'](_0x1e7951,_0x529e0c,_0x40d46e,_0x259a17,u['getMultiRangeId']());return _0x56a121;}['markInlineFormat'](_0x14f73c,_0x11bd1a,_0x366f23=null,_0x424377={}){if(_0x366f23=_0x366f23||Gt(_0x11bd1a),_0x14f73c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x79aeb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x366f23,'accept');return this['forceDefaultExecution'](()=>_0x79aeb([_0x14f73c],_0x11bd1a,_0x424377)),null;}const _0x6cf24b=this['editor']['plugins']['get']('Users')['me'],_0x29595a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4baac9,meta:_0x85030e}of this['_findSuggestions'](_0x14f73c,'insertion'))_0x85030e['isOwn']&&!_0x85030e['isInsideObject']&&_0x29595a['push'](..._0x4baac9['getRanges']());}const _0x4da38e=function(_0x4d0da6,_0x55b403){const _0xd59b7e=[];for(const _0x15f29a of _0x55b403){const _0x5ba6fb=_0x4d0da6['getIntersection'](_0x15f29a);_0x5ba6fb&&_0xd59b7e['push'](_0x5ba6fb);}return _0xd59b7e;}(_0x14f73c,_0x29595a),_0x40526c=function(_0x174d3b,_0x52d6e8){const _0x3b707f=[_0x174d3b];for(const _0xac3738 of _0x52d6e8){let _0x266209=0x0;for(;_0x266209<_0x3b707f['length'];){const _0x1073e1=_0x3b707f[_0x266209]['getDifference'](_0xac3738);_0x3b707f['splice'](_0x266209,0x1,..._0x1073e1),_0x266209+=_0x1073e1['length'];}}return _0x3b707f;}(_0x14f73c,_0x29595a);_0x4da38e['length']&&this['_model']['change'](()=>{for(const _0x1dbe28 of _0x4da38e){const _0x57dfd3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x366f23,'accept');this['forceDefaultExecution'](()=>_0x57dfd3([_0x1dbe28],_0x11bd1a,_0x424377));}});for(const _0x46685c of _0x40526c){let _0x1639fa=null,_0x5a1ddf=_0x46685c['start'],_0x2413cb=_0x46685c['end'];for(const {suggestion:_0x3a1ce7,meta:_0x189861}of this['_findSuggestions'](_0x46685c,'formatInline')){if(!_0x189861['isOwn'])continue;if(_0x3a1ce7['subType']!=_0x366f23)continue;if(!qt(_0x3a1ce7,_0x424377))continue;const _0x10e1bf=_0x3a1ce7['getFirstRange']();if(_0x10e1bf['containsRange'](_0x46685c,!0x0))return null;_0x5a1ddf=_0x5a1ddf['isBefore'](_0x10e1bf['start'])?_0x5a1ddf:_0x10e1bf['start'],_0x2413cb=_0x2413cb['isAfter'](_0x10e1bf['end'])?_0x2413cb:_0x10e1bf['end'],_0x1639fa?_0x10e1bf['start']['isBefore'](_0x1639fa['getFirstRange']()['start'])?(_0x1639fa['removeMarkers'](),_0x1639fa=_0x3a1ce7):_0x3a1ce7['removeMarkers']():_0x1639fa=_0x3a1ce7;}const _0x319202=this['_model']['createRange'](_0x5a1ddf,_0x2413cb);if(_0x1639fa)this['_setSuggestionRange'](_0x1639fa,_0x319202);else{const _0x515319=_0x13e654(),_0x5fb6ee=_0x6cf24b['id'];this['_setSuggestionData']({'id':_0x515319,'type':'formatInline:'+_0x366f23,'data':_0x11bd1a,'createdAt':new Date(),'authorId':_0x5fb6ee,'attributes':_0x424377}),this['_addSuggestionMarker']('formatInline:'+_0x366f23,_0x515319,_0x5fb6ee,_0x319202);}}return null;}['markBlockFormat'](_0x49bc7d,_0x21c99b,_0x514451=[],_0x7b19d0=null,_0x471d14={}){_0x21c99b['formatGroupId']||(_0x21c99b['formatGroupId']=_0x21c99b['commandName']),_0x21c99b['multipleBlocks']=_0x49bc7d['is']('range'),_0x7b19d0=_0x7b19d0||Gt(_0x21c99b);const _0x5deba5=_0x514451['map'](_0x285fb1=>Lt(_0x285fb1,this['_model'])),_0x4a6ef=_0x49bc7d['is']('range')?_0x49bc7d:Lt(_0x49bc7d,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5c6c8b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7b19d0,'accept');return this['forceDefaultExecution'](()=>_0x5c6c8b([_0x4a6ef],_0x21c99b,_0x471d14)),null;}_0x5deba5['push'](_0x4a6ef);let _0x4ebf0b=!0x0;for(const _0x7cd8b of _0x5deba5)if(!this['_rangeIsInLocalUserInsertion'](_0x7cd8b)){_0x4ebf0b=!0x1;break;}if(_0x4ebf0b&&'always'!==this['_trackFormatChanges']){const _0x386af4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7b19d0,'accept');return this['forceDefaultExecution'](()=>_0x386af4([_0x4a6ef],_0x21c99b,_0x471d14)),null;}let _0x519a5c=null,_0x33f1c5=_0x4a6ef['start'],_0x3d2ac6=_0x4a6ef['end'];for(const {suggestion:_0x53179c,meta:_0x11361e}of this['_findSuggestions'](_0x4a6ef,'formatBlock')){if(!_0x11361e['isOwn'])continue;if(_0x11361e['isNextTo']||_0x11361e['containsRangeInObject']||_0x11361e['isInsideObject'])continue;if(_0x53179c['data']['formatGroupId']!=_0x21c99b['formatGroupId'])continue;if(!qt(_0x53179c,_0x471d14))continue;const _0x4255fa=_0x53179c['getFirstRange']();if(_0x53179c['subType']==_0x7b19d0){if(_0x4255fa['containsRange'](_0x4a6ef,!0x0))return null;_0x33f1c5=_0x33f1c5['isBefore'](_0x4255fa['start'])?_0x33f1c5:_0x4255fa['start'],_0x3d2ac6=_0x3d2ac6['isAfter'](_0x4255fa['end'])?_0x3d2ac6:_0x4255fa['end'],_0x519a5c?_0x4255fa['start']['isBefore'](_0x519a5c['getFirstRange']()['start'])?(_0x519a5c['removeMarkers'](),_0x519a5c=_0x53179c):_0x53179c['removeMarkers']():_0x519a5c=_0x53179c;}else{const _0x143d8f=_0x4a6ef['getIntersection'](_0x4255fa);this['_cutOutSuggestionMarker'](_0x53179c,_0x143d8f);}}const _0x1a87de=this['editor']['plugins']['get']('Users')['me'],_0x21d0a0=_0x13e654(),_0x2ff75f=_0x1a87de['id'];if(_0x519a5c)return this['_setSuggestionRange'](_0x519a5c,this['_model']['createRange'](_0x33f1c5,_0x3d2ac6)),_0x519a5c;{const _0x109aed=this['_setSuggestionData']({'id':_0x21d0a0,'type':'formatBlock:'+_0x7b19d0,'data':_0x21c99b,'createdAt':new Date(),'authorId':_0x2ff75f,'attributes':_0x471d14});return this['_addSuggestionMarker']('formatBlock:'+_0x7b19d0,_0x21d0a0,_0x2ff75f,this['_model']['createRange'](_0x33f1c5,_0x3d2ac6)),_0x109aed;}}['markMultiRangeBlockFormat'](_0x2b8f6a,_0x4045c4,_0x1f1ad0=[],_0x530aeb=null,_0x1ee002={}){_0x4045c4['formatGroupId']||(_0x4045c4['formatGroupId']=_0x4045c4['commandName']);const _0x395689=_0x2b8f6a[0x0];_0x4045c4['multipleBlocks']=_0x395689['is']('range'),_0x530aeb=_0x530aeb||Gt(_0x4045c4);const _0x45a39b=_0x1f1ad0['map'](_0x1d218e=>Lt(_0x1d218e,this['_model'])),_0x4a00f9=_0x395689['is']('range')?_0x2b8f6a:_0x2b8f6a['map'](_0x2692d4=>Lt(_0x2692d4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x403f66=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x530aeb,'accept');return this['forceDefaultExecution'](()=>_0x403f66(_0x4a00f9,_0x4045c4,_0x1ee002)),null;}_0x45a39b['push'](..._0x4a00f9);let _0x58d395=!0x0;for(const _0x91dcca of _0x45a39b)if(!this['_rangeIsInLocalUserInsertion'](_0x91dcca)){_0x58d395=!0x1;break;}if(_0x58d395&&'always'!==this['_trackFormatChanges']){const _0x38d8ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x530aeb,'accept');return this['forceDefaultExecution'](()=>_0x38d8ec(_0x4a00f9,_0x4045c4,_0x1ee002)),null;}const _0x448cc3=this['editor']['plugins']['get']('Users')['me'];for(const _0x1ef173 of this['getSuggestions']()){if(_0x1ef173['author']['id']!=_0x448cc3['id'])continue;if('formatBlock'!=_0x1ef173['type']||_0x1ef173['data']['formatGroupId']!=_0x4045c4['formatGroupId'])continue;if(!qt(_0x1ef173,_0x1ee002))continue;const _0xc588dc=_0x1ef173['subType']==_0x530aeb;for(let _0x5f0911=0x0;_0x5f0911<_0x4a00f9['length'];_0x5f0911++){const _0x39729d=_0x4a00f9[_0x5f0911];for(const _0x491a90 of _0x1ef173['getMarkers']()){const _0x163fd8=_0x491a90['getRange']();if(_0x39729d['isEqual'](_0x163fd8)){_0xc588dc?(_0x4a00f9['splice'](_0x5f0911,0x1),_0x5f0911--):_0x1ef173['removeMarker'](_0x491a90['name']);break;}}}}if(0x0==_0x4a00f9['length'])return null;const _0x46a169=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x530aeb,'join');for(const _0x53b0b5 of this['getSuggestions']())if(_0x53b0b5['author']['id']==_0x448cc3['id']&&'formatBlock'==_0x53b0b5['type']&&_0x53b0b5['data']['formatGroupId']==_0x4045c4['formatGroupId']&&_0x53b0b5['subType']==_0x530aeb&&qt(_0x53b0b5,_0x1ee002)&&(_0x46a169(_0x53b0b5['getRanges'](),_0x4a00f9)||_0x46a169(_0x4a00f9,_0x53b0b5['getRanges']()))){for(const _0x47942c of _0x4a00f9)_0x53b0b5['addRange'](_0x47942c);return _0x53b0b5;}const _0x494d43=_0x13e654(),_0x22db31=_0x448cc3['id'],_0x311d63='formatBlock:'+_0x530aeb,_0x5cb9a9=this['_setSuggestionData']({'id':_0x494d43,'type':_0x311d63,'data':_0x4045c4,'createdAt':new Date(),'authorId':_0x22db31,'attributes':_0x1ee002});for(const _0x55f64c of _0x4a00f9)this['_addSuggestionMarker'](_0x311d63,_0x494d43,_0x22db31,_0x55f64c,u['getMultiRangeId']());return _0x5cb9a9;}['markDeletion'](_0x34e36a,_0x12f1b2=null,_0x10ae5a={}){if(_0x34e36a['isCollapsed'])return null;const _0x594478=this['editor']['plugins']['get']('Users')['me'],_0x4673bc=new _0x12550f(_0x34e36a['start'],_0x34e36a['end']);for(const {suggestion:_0x27b0f4,meta:_0x443aaa}of this['_findSuggestions'](_0x4673bc,'insertion'))if(_0x443aaa['isOwn']&&!_0x443aaa['isNextTo']){if(_0x27b0f4['isMultiRange']){const _0x2eaaf7=_0x27b0f4['getRanges']()['filter'](_0x2465c7=>'$graveyard'!=_0x2465c7['root']['rootName']);_0x2eaaf7['every'](_0x5e0fdb=>_0x4673bc['containsRange'](_0x5e0fdb,!0x0))&&_0x27b0f4['discard']();if(_0x2eaaf7['some'](_0x4465b6=>_0x4465b6['containsRange'](_0x4673bc,!0x0))){const _0x3bbae1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12f1b2,'accept');return this['forceDefaultExecution'](()=>_0x3bbae1([_0x4673bc],null,_0x10ae5a)),null;}}else{const _0x1bb52d=_0x4673bc['getIntersection'](_0x27b0f4['getFirstRange']());null!==_0x1bb52d&&_0x27b0f4['_onDiscard']([_0x1bb52d],null,_0x10ae5a);}}if(_0x4673bc['detach'](),_0x4673bc['isCollapsed']||'$graveyard'==_0x4673bc['root']['rootName'])return null;let _0x3a08c3=null,_0x5808d8=_0x4673bc['start'],_0x681d31=_0x4673bc['end'];const _0x1adbf9=this['_findSuggestions'](_0x4673bc,'deletion');for(const {suggestion:_0x2d8eb7,meta:_0x5ca63c}of _0x1adbf9){const _0x43a5f6=this['_model']['createRange'](_0x5808d8,_0x681d31);if(_0x5ca63c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ca63c['containsRangeInObject']&&!_0x5ca63c['isInsideObject'])){if(_0x2d8eb7['isMultiRange']){if(!qt(_0x2d8eb7,_0x10ae5a))continue;let _0x29cdde=!0x0;for(const _0x54ecbf of _0x2d8eb7['getRanges']()){if(_0x54ecbf['containsRange'](_0x43a5f6,!0x0))return _0x2d8eb7;_0x43a5f6['containsRange'](_0x54ecbf)||(_0x29cdde=!0x1);}_0x29cdde&&_0x2d8eb7['discard']();}else{const _0x4ba18c=_0x2d8eb7['getFirstRange']();if(_0x4ba18c['containsRange'](_0x43a5f6,!0x0))return _0x2d8eb7;if(!qt(_0x2d8eb7,_0x10ae5a)){_0x43a5f6['containsRange'](_0x4ba18c)?_0x2d8eb7['removeMarkers']():_0x4ba18c['containsPosition'](_0x5808d8)?_0x5808d8=_0x4ba18c['end']:_0x4ba18c['containsPosition'](_0x681d31)&&(_0x681d31=_0x4ba18c['start']);continue;}_0x5808d8=_0x5808d8['isBefore'](_0x4ba18c['start'])?_0x5808d8:_0x4ba18c['start'],_0x681d31=_0x681d31['isAfter'](_0x4ba18c['end'])?_0x681d31:_0x4ba18c['end'],_0x10ae5a=Object['assign']({},_0x2d8eb7['attributes']),_0x3a08c3?_0x4ba18c['start']['isBefore'](_0x3a08c3['getFirstRange']()['start'])?(_0x3a08c3['removeMarkers'](),_0x3a08c3=_0x2d8eb7):_0x2d8eb7['removeMarkers']():_0x3a08c3=_0x2d8eb7;}}}if(_0x3a08c3)return this['_setSuggestionRange'](_0x3a08c3,this['_model']['createRange'](_0x5808d8,_0x681d31)),_0x3a08c3;{const _0x1a199d=_0x13e654(),_0x89a9e0=this['_model']['createRange'](_0x5808d8,_0x681d31),_0x4de7fd=_0x594478['id'],_0x41574b=_0x12f1b2?'deletion:'+_0x12f1b2:'deletion',_0x560247=this['_setSuggestionData']({'id':_0x1a199d,'type':_0x41574b,'createdAt':new Date(),'authorId':_0x4de7fd,'attributes':_0x10ae5a});return this['_addSuggestionMarker'](_0x41574b,_0x1a199d,_0x4de7fd,_0x89a9e0),_0x560247;}}['markMultiRangeDeletion'](_0x2e9b8c,_0x45c22b='multi',_0x1d0762={}){const _0x5bb3b8=this['editor']['plugins']['get']('Users')['me'],_0x2250f0=_0x2e9b8c['map'](_0x48c563=>new _0x12550f(_0x48c563['start'],_0x48c563['end'])),_0x153914=new Set();for(const {suggestion:_0x1f7780,meta:_0x3ae259}of this['_findSuggestions'](_0x2250f0,'insertion'))_0x3ae259['isOwn']&&!_0x3ae259['isNextTo']&&_0x153914['add'](_0x1f7780);for(const _0x113c0e of _0x153914)if(_0x113c0e['isMultiRange']){const _0x22c158=_0x113c0e['getRanges']();(!_0x113c0e['attributes']||!_0x113c0e['attributes']['skipNestingCheck'])&&(_0x22c158['every'](_0x18287d=>_0x2250f0['some'](_0xbeadca=>_0xbeadca['containsRange'](_0x18287d,!0x0)))&&_0x113c0e['discard']());if(_0x2250f0['every'](_0x2c2e33=>_0x22c158['some'](_0x1f3f19=>_0x1f3f19['containsRange'](_0x2c2e33,!0x0)))){const _0x445020=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45c22b,'accept');return this['forceDefaultExecution'](()=>_0x445020(_0x2e9b8c,null,_0x1d0762)),null;}}else{const _0x88b4e8=_0x113c0e['getFirstRange']();_0x2250f0['some'](_0x1ccb07=>_0x1ccb07['containsRange'](_0x88b4e8,!0x0))&&_0x113c0e['discard']();if(_0x2250f0['every'](_0x3a9577=>_0x88b4e8['containsRange'](_0x3a9577,!0x0))){const _0x1e9b67=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45c22b,'accept');return this['forceDefaultExecution'](()=>_0x1e9b67(_0x2250f0,null,_0x1d0762)),null;}}const _0x987ee2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45c22b,'join');let _0x528034=null;for(const _0x221022 of this['getSuggestions']())if(_0x221022['author']['id']==_0x5bb3b8['id']&&_0x221022['isInContent']&&'deletion'==_0x221022['type']&&_0x221022['subType']==_0x45c22b&&qt(_0x221022,_0x1d0762)&&(_0x987ee2(_0x221022['getRanges'](),_0x2250f0)||_0x987ee2(_0x2250f0,_0x221022['getRanges']()))){if(_0x528034){if(_0x221022['commentThread']&&_0x221022['commentThread']['length'])continue;for(const _0x195e67 of _0x221022['getRanges']())_0x528034['isIntersectingWithRange'](_0x195e67)||_0x528034['addRange'](_0x195e67);_0x221022['removeMarkers']();}else{_0x528034=_0x221022;for(const _0xacbbff of _0x2250f0)_0x221022['isIntersectingWithRange'](_0xacbbff)||_0x221022['addRange'](_0xacbbff);}}if(_0x528034)return _0x528034;_0x153914['clear']();for(const {suggestion:_0x186f30,meta:_0x1daf98}of this['_findSuggestions'](_0x2250f0,'deletion'))_0x1daf98['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1daf98['containsRangeInObject']&&!_0x1daf98['isInsideObject'])&&qt(_0x186f30,_0x1d0762)&&_0x153914['add'](_0x186f30);for(const _0x4dea35 of _0x153914){const _0x4f9e15=_0x4dea35['getRanges']();if(!_0x1d0762||!_0x1d0762['skipNestingCheck']){if(_0x2250f0['every'](_0x5c6c5c=>_0x4f9e15['some'](_0x5b4ac6=>_0x5b4ac6['containsRange'](_0x5c6c5c,!0x0))))return _0x4dea35;}(!_0x4dea35['attributes']||!_0x4dea35['attributes']['skipNestingCheck'])&&(_0x4f9e15['every'](_0x22bcaa=>_0x2250f0['some'](_0x84e0fd=>_0x84e0fd['containsRange'](_0x22bcaa,!0x0)))&&_0x4dea35['discard']());}const _0x2c97c7=_0x13e654(),_0x11c0b6=_0x5bb3b8['id'],_0x47e0ec='deletion:'+_0x45c22b,_0x275a11=this['_setSuggestionData']({'id':_0x2c97c7,'type':_0x47e0ec,'createdAt':new Date(),'authorId':_0x11c0b6,'attributes':_0x1d0762});for(const _0x32c7e1 of _0x2250f0)_0x32c7e1['detach'](),_0x32c7e1['isCollapsed']||'$graveyard'==_0x32c7e1['root']['rootName']||this['_addSuggestionMarker'](_0x47e0ec,_0x2c97c7,_0x11c0b6,_0x32c7e1,u['getMultiRangeId']());return _0x275a11;}['markAttributeChange'](_0x33139f,_0x545f4e,_0x3d4582,_0x3acb20,_0x8cba6){if(_0x33139f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5898b6=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c2bb0=Array['from'](this['_suggestions']['values']())['filter'](_0xdc75d9=>'attribute'==_0xdc75d9['type']&&_0xdc75d9['data']['key']==_0x545f4e&&_0xdc75d9['isIntersectingWithRange'](_0x33139f));if('default'===this['_trackFormatChanges']){const _0x2cdd0e=this['_findSuggestions'](_0x33139f,'insertion')['filter'](({meta:_0x240efc})=>_0x240efc['isOwn']&&!_0x240efc['isInsideObject']&&!_0x240efc['isNextTo'])['map'](({suggestion:_0x1aab53})=>_0x1aab53);_0x5c2bb0['unshift'](..._0x2cdd0e);}const _0x33f114=new Map([[_0x33139f,_0x3d4582]]);for(const _0x1e6be9 of _0x5c2bb0){const _0x1d838f='attribute'==_0x1e6be9['type']?_0x1e6be9['data']['oldValue']:void 0x0,_0x4b7383=_0x1e6be9['getFirstRange'](),_0x1e6ef3=Array['from'](_0x33f114['keys']())['find'](_0x480f3f=>_0x480f3f['isIntersecting'](_0x4b7383));if(!_0x1e6ef3)continue;const _0x3548c6=_0x1e6ef3['getDifference'](_0x4b7383);this['_isBlockAttribute'](_0x545f4e)&&'insertion'==_0x1e6be9['type']&&0x0!=_0x3548c6['length']||(_0x33f114['delete'](_0x1e6ef3),_0x3548c6['forEach'](_0x283123=>{_0x33f114['set'](_0x283123,_0x3d4582);}),'insertion'!=_0x1e6be9['type']&&_0x1d838f!=_0x3acb20&&_0x33f114['set'](_0x1e6ef3['getIntersection'](_0x4b7383),_0x1d838f));}const _0x206e3f=[];for(const [_0x5043b7,_0x159963]of _0x33f114){const _0x52ccbe=_0x13e654(),_0x5edfb7={'key':_0x545f4e,'oldValue':_0x159963,'newValue':_0x3acb20};_0x545f4e['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':_0x545f4e});const _0x3f910e=('attribute:'+(_0x545f4e+'|'+Gt({'newValue':_0x3acb20})))['substring'](0x0,0x3c),_0x2c1102=this['_setSuggestionData']({'id':_0x52ccbe,'type':_0x3f910e,'data':_0x5edfb7,'createdAt':new Date(),'authorId':_0x5898b6,'attributes':_0x8cba6});_0x206e3f['push'](_0x2c1102),this['_addSuggestionMarker'](_0x3f910e,_0x52ccbe,_0x5898b6,_0x5043b7);}return _0x206e3f;}['enableDefaultAttributesIntegration'](_0x331a38){this['enableCommand'](_0x331a38,(_0x11bb61,..._0x5a1afd)=>{this['_recordAttributeChanges'](()=>{_0x11bb61(..._0x5a1afd);});});}['registerBlockAttribute'](_0x45be45){this['_blockAttributeKeys']['add'](_0x45be45);}['registerInlineAttribute'](_0x566d1d){this['_inlineAttributeKeys']['add'](_0x566d1d);}['_getAttributeKey'](_0x2fe008){return'attribute'==_0x2fe008['type']?_0x2fe008['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3fa4e6,_0x55069c){const _0x10269f=_0x3fa4e6['getFirstMarker']();this['_model']['change'](_0x298a57=>{_0x298a57['updateMarker'](_0x10269f,{'range':_0x55069c});});}['_addThreadToSuggestion'](_0x7c7863){const _0x2a56d2=_0x7c7863['id'],_0x401df8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a56d2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x401df8,'threadId':_0x2a56d2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x21a59c=this['_commentsRepository']['getCommentThread'](_0x2a56d2);_0x21a59c['unbind']('isRemovable'),_0x21a59c['isRemovable']=!0x1,_0x7c7863['commentThread']=_0x21a59c;}['_checkSuggestionCorrectness'](_0x3da560,_0x34b433,_0x348233,_0x41b9ca){if(_0x3da560['type']!=_0x34b433||_0x3da560['subType']!=_0x348233||_0x3da560['creator']['id']!=_0x41b9ca)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x25e072('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xc435d1,_0xe76e65){const _0x5f478e=_0xc435d1['getFirstRange']();if(_0xe76e65['isEqual'](_0x5f478e))_0xc435d1['removeMarkers']();else{if(_0x5f478e['containsRange'](_0xe76e65)){const _0x3a7348=this['_model']['createPositionAt'](_0xe76e65['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xc435d1,this['_model']['createRange'](_0x5f478e['start'],_0x3a7348));const _0x19942d=_0x13e654(),_0xf6da57=_0xc435d1['creator']['id'],_0x2fb1e1=_0xc435d1['type']+':'+_0xc435d1['subType'];this['_setSuggestionData']({'id':_0x19942d,'type':_0x2fb1e1,'createdAt':new Date(),'authorId':_0xf6da57,'data':_0xc435d1['data'],'attributes':_0xc435d1['attributes']});const _0x1c5aff=this['_model']['createPositionAt'](_0xe76e65['end']['parent'],'after'),_0x24a087=this['_model']['createRange'](_0x1c5aff,_0x5f478e['end']);this['_addSuggestionMarker'](_0x2fb1e1,_0x19942d,_0xf6da57,_0x24a087);}else{if(_0x5f478e['containsPosition'](_0xe76e65['start'])){const _0x1bacd9=this['_model']['createPositionAt'](_0xe76e65['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xc435d1,this['_model']['createRange'](_0x5f478e['start'],_0x1bacd9));}else{const _0x3ec6f6=this['_model']['createPositionAt'](_0xe76e65['end']['parent'],'after');this['_setSuggestionRange'](_0xc435d1,this['_model']['createRange'](_0x3ec6f6,_0x5f478e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x531892){for(const {suggestion:_0x6a5bf2,meta:_0x3747e0}of this['_findSuggestions'](_0x531892,'insertion')){if(!_0x3747e0['isOwn'])continue;const _0x1f176d=_0x6a5bf2['getRanges']();for(const _0x4b063d of _0x1f176d)if(!_0x531892['getDifference'](_0x4b063d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5ee83b){const _0x5a9f59=this['editor']['plugins']['get']('Users')['getUser'](_0x5ee83b);if(!_0x5a9f59)throw new _0x25e072('track-changes-user-not-found',this);return _0x5a9f59;}['_getExternalAuthor'](_0x5ba6c5){const _0x54bb39=this['editor']['plugins']['get']('Users'),_0x4b7774=_0x3071b6('external:'+_0x5ba6c5),_0x54c861=_0x54bb39['getUser'](_0x4b7774);return _0x54c861||_0x54bb39['addUser']({'id':_0x4b7774,'name':_0x5ba6c5});}['_createSuggestion'](_0x441b1b,_0x4bca77,_0x3692d8,_0x2444eb,_0x4a1016){const _0x12d00d=this['_getAuthorFromId'](_0x2444eb),_0x561cdb=this['_suggestionFactory']['buildSuggestion'](_0x441b1b,_0x4bca77,_0x3692d8,_0x12d00d,_0x4a1016,_0x3b89a3=>{this['_updateSuggestionData'](_0x3692d8,{'attributes':_0x3b89a3});const _0x3bf1f6=this['getSuggestion'](_0x3692d8);this['_joinWithAdjacentSuggestions'](new Set([_0x3bf1f6])),this['_refreshSuggestionsChain'](new Set([_0x3bf1f6]));});return this['listenTo'](_0x561cdb,'accept',()=>{this['_updateSuggestionData'](_0x3692d8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x561cdb,'discard',()=>{this['_updateSuggestionData'](_0x3692d8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3692d8,_0x561cdb),this['_suggestionState']['set'](_0x561cdb,'notReady'),_0x561cdb;}['_splitMarkerName'](_0x5aca23){const _0x456215=_0x5aca23['split'](':');return{'group':_0x456215[0x0],'type':_0x456215[0x1],'subType':_0x456215['length']>=0x5?_0x456215[0x2]:null,'id':_0x456215['length']<0x5?_0x456215[0x2]:_0x456215[0x3],'authorId':_0x456215['length']<0x5?_0x456215[0x3]:_0x456215[0x4],'markerCount':0x6==_0x456215['length']?_0x456215[0x5]:null};}['_breakSuggestionMarker'](_0xc3b3df,_0x22f7e0,_0x51a1ea){const _0x58faca=_0xc3b3df['getFirstRange'](),_0x40f511=_0x58faca['start'],_0x542a97=_0x58faca['end'];this['_setSuggestionRange'](_0xc3b3df,this['_model']['createRange'](_0x40f511,_0x22f7e0));const _0x3bb597=_0x13e654(),_0x4c00d5=_0xc3b3df['creator']['id'],_0x5c3efb=_0xc3b3df['type']+(_0xc3b3df['subType']?':'+_0xc3b3df['subType']:'');this['_setSuggestionData']({'id':_0x3bb597,'type':_0x5c3efb,'createdAt':new Date(),'authorId':_0x4c00d5,'originalSuggestionId':_0xc3b3df['id'],'attributes':_0xc3b3df['attributes'],'data':_0xc3b3df['data']});const _0xff9230=this['_getAttributeKey'](_0xc3b3df);('formatBlock'==_0xc3b3df['type']||_0xff9230&&this['_isBlockAttribute'](_0xff9230))&&(_0x51a1ea=this['_model']['createPositionBefore'](_0x51a1ea['parent'])),this['_addSuggestionMarker'](_0x5c3efb,_0x3bb597,_0x4c00d5,this['_model']['createRange'](_0x51a1ea,_0x542a97));}['_findSuggestions'](_0x12600e,_0x24851d=null){const _0x55d44f=[],_0x318063=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x12600e)||(_0x12600e=[_0x12600e]);for(const _0x447e0d of this['getSuggestions']()){if(!_0x447e0d['isInContent'])continue;if(_0x24851d&&_0x447e0d['type']!=_0x24851d)continue;let _0x3f9549=!0x1;for(const _0x2a6741 of _0x447e0d['getRanges']()){for(const _0x531420 of _0x12600e){const _0x328245=_0x531420['start']['isEqual'](_0x2a6741['end'])||_0x531420['end']['isEqual'](_0x2a6741['start']);if(_0x328245||_0x531420['getIntersection'](_0x2a6741)){const _0x476d6d=_0x531420['containsRange'](_0x2a6741)&&Ot(this['_model']['schema'],_0x2a6741['start'],_0x531420),_0x16c1a5=_0x2a6741['containsRange'](_0x531420)&&Ot(this['_model']['schema'],_0x531420['start'],_0x2a6741);_0x55d44f['push']({'suggestion':_0x447e0d,'meta':{'isOwn':_0x318063==_0x447e0d['author'],'isNextTo':_0x328245,'isInsideObject':_0x476d6d,'containsRangeInObject':_0x16c1a5}}),_0x3f9549=!0x0;break;}}if(_0x3f9549)break;}}return _0x55d44f;}['_addSuggestionMarker'](_0x4e2de8,_0x47f5d5,_0x541756,_0x44dfd0,_0x562007){this['_model']['change'](_0x483996=>{let _0x5df1a1='suggestion:'+_0x4e2de8+':'+_0x47f5d5+':'+_0x541756;_0x562007&&(_0x5df1a1=_0x5df1a1+':'+_0x562007),_0x483996['addMarker'](_0x5df1a1,{'range':_0x44dfd0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x346b69){const _0x1115c0=_0x346b69['previous'],_0x450100=_0x346b69['next'];_0x346b69['previous']=null,_0x346b69['next']=null,null!=_0x1115c0&&_0x1115c0['next']==_0x346b69&&(_0x1115c0['next']=_0x450100),null!=_0x450100&&_0x450100['previous']==_0x346b69&&(_0x450100['previous']=_0x1115c0),'ready'==this['_suggestionState']['get'](_0x346b69)&&(this['_suggestionState']['set'](_0x346b69,'removed'),this['fire']('suggestionUnloaded',_0x346b69,_0x1115c0,_0x450100));}['_setSuggestionData'](_0x453c64){const _0x5d40b2=_0x453c64['id'],_0x991f72=this['addSuggestionData'](_0x453c64);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3719d8=this['editor']['plugins']['get']('PendingActions'),_0x2dd818=_0x991f72['hasComments'],_0x50b926=_0x991f72['subType']?_0x991f72['type']+':'+_0x991f72['subType']:_0x991f72['type'],_0x367358=this['editor']['locale'],_0x543297=_0x3719d8['add'](o(_0x367358,'PENDING_ACTION_SUGGESTION')),_0x9abb89={'id':_0x5d40b2,'type':_0x50b926,'hasComments':_0x2dd818,'data':_0x453c64['data']||null,'originalSuggestionId':_0x453c64['originalSuggestionId']||null,'attributes':_0x991f72['attributes']};this['_adapter']['addSuggestion'](_0x9abb89)['then'](_0x58bbc2=>{_0x991f72['_saved']=!0x0,_0x3719d8['remove'](_0x543297),_0x58bbc2&&_0x58bbc2['createdAt']&&(this['_suggestions']['get'](_0x5d40b2)['createdAt']=_0x58bbc2['createdAt']);})['catch'](_0x1d3ae5=>{throw _0x2ca0b9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x991f72['discard']();}),_0x991f72['stopListening'](),this['_suggestions']['delete'](_0x991f72['id']),this['_suggestionState']['delete'](_0x991f72),_0x1d3ae5;});}return _0x991f72;}['_isBlockAttribute'](_0x4d14a1){return this['_blockAttributeKeys']['has'](_0x4d14a1);}['_updateSuggestionData'](_0x3ab37a,_0x49d2e3){const _0x415437=this['editor']['plugins']['get']('PendingActions'),_0x1d8f0f=this['getSuggestion'](_0x3ab37a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d8f0f['_saved']){const _0x2e4581=_0x415437['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3ab37a,_0x49d2e3)['then'](()=>{_0x415437['remove'](_0x2e4581);});}else _0x1d8f0f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3ab37a,_0x49d2e3);});}}['_getSuggestionData'](_0x4f7d8a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x25e072('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f7d8a);}['_handleNewSuggestionMarker'](_0x51b4fa){const {id:_0x4206a8,type:_0x4f5aed,subType:_0x532d55,authorId:_0x210d00}=this['_splitMarkerName'](_0x51b4fa),_0x574769=this['_suggestions']['get'](_0x4206a8)||this['_createSuggestion'](_0x4f5aed,_0x532d55,_0x4206a8,_0x210d00,{});switch(this['_checkSuggestionCorrectness'](_0x574769,_0x4f5aed,_0x532d55,_0x210d00),this['_suggestionState']['get'](_0x574769)){case'notReady':this['_getSuggestionData'](_0x4206a8)['then'](_0x38dcd3=>{let _0x417d7f=Promise['resolve']();_0x38dcd3['hasComments']&&(_0x417d7f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4206a8})),_0x417d7f['then'](()=>{this['addSuggestionData'](_0x38dcd3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x574769,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4206a8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x574769,'ready'),this['fire']('suggestionLoaded',_0x574769);break;case'ready':this['fire']('suggestionChanged',_0x574769);}return _0x574769['addMarkerName'](_0x51b4fa),_0x574769;}['_refreshSuggestionsChain'](_0x5294bc){const _0x4aba5f=Array['from'](_0x5294bc),_0x2bd310=_0x4aba5f['filter'](_0x9fa9ed=>'attribute'==_0x9fa9ed['type']);this['_refreshAttributeSuggestionsChain'](_0x2bd310);const _0x1408d8=_0x4aba5f['filter'](_0x287449=>!_0x287449['isMultiRange']&&'attribute'!=_0x287449['type']),_0x2d3b18=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31d0c4=>!_0x31d0c4['isMultiRange']&&'attribute'!=_0x31d0c4['type']),_0x47c7f2=_0x2d3b18['filter'](_0x428f38=>!_0x5294bc['has'](_0x428f38)),_0x2e307b=new Map(_0x2d3b18['map'](_0x1aceeb=>[_0x1aceeb,this['_suggestionFactory']['getSuggestionCallback'](_0x1aceeb['type'],_0x1aceeb['subType'],'chain')])),_0x22df7a=new Map(_0x2d3b18['map'](_0x450e09=>[_0x450e09,_0x450e09['getFirstRange']()])),_0x150b26=new Set(),_0x5e431d=new Set();for(let _0x2b9257=0x0;_0x2b9257<_0x1408d8['length'];_0x2b9257++)_0x23e1ac(_0x1408d8[_0x2b9257],_0x1408d8,_0x2b9257+0x1);for(let _0xd2e0cb=0x0;_0xd2e0cb<_0x1408d8['length'];_0xd2e0cb++)_0x23e1ac(_0x1408d8[_0xd2e0cb],_0x47c7f2,0x0);const _0x20adcd=new Set();for(let _0xf42c6c=0x0;_0xf42c6c<_0x1408d8['length'];_0xf42c6c++){const _0x1d06ad=_0x1408d8[_0xf42c6c];!_0x5e431d['has'](_0x1d06ad)&&_0x1d06ad['previous']&&(_0x20adcd['add'](_0x1d06ad['previous']),_0x1d06ad['previous']['next']===_0x1d06ad&&(_0x1d06ad['previous']['next']=null),_0x1d06ad['previous']=null),!_0x150b26['has'](_0x1d06ad)&&_0x1d06ad['next']&&(_0x20adcd['add'](_0x1d06ad['next']),_0x1d06ad['next']['previous']===_0x1d06ad&&(_0x1d06ad['next']['previous']=null),_0x1d06ad['next']=null);}function _0x23e1ac(_0x5090f0,_0x2ecfa9,_0x11563a){for(let _0x27b2b6=_0x11563a;_0x27b2b6<_0x2ecfa9['length'];_0x27b2b6++){const _0x5499ff=_0x6d84c8(_0x5090f0,_0x2ecfa9[_0x27b2b6]);_0x5499ff&&(_0x5499ff[0x0]['next']=_0x5499ff[0x1],_0x5499ff[0x1]['previous']=_0x5499ff[0x0],_0x150b26['add'](_0x5499ff[0x0]),_0x5e431d['add'](_0x5499ff[0x1]));}}function _0x6d84c8(_0x4701eb,_0x27814f){if(_0x4701eb['author']['id']!==_0x27814f['author']['id'])return null;const _0x596f5e=_0x2e307b['get'](_0x4701eb)(_0x4701eb,_0x27814f,_0x22df7a['get'](_0x4701eb),_0x22df7a['get'](_0x27814f));if(!_0x596f5e)return null;return _0x2e307b['get'](_0x27814f)(_0x4701eb,_0x27814f,_0x22df7a['get'](_0x4701eb),_0x22df7a['get'](_0x27814f))?_0x596f5e[0x1]['commentThread']&&_0x596f5e[0x1]['commentThread']['length']?null:_0x596f5e:null;}_0x20adcd['size']&&this['_refreshSuggestionsChain'](_0x20adcd);}['_refreshAttributeSuggestionsChain'](_0x53daf5){if(0x0==_0x53daf5['length'])return;const _0x27e184=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2df6d4=>'attribute'==_0x2df6d4['type']&&_0x2df6d4['_isDataLoaded']),_0x21f706=[],_0xc815f3=new Map();for(const _0x1628d6 of _0x27e184){const _0x19181e=_0x3071b6(_0x1628d6['attributes']);_0xc815f3['has'](_0x19181e)||(_0xc815f3['set'](_0x19181e,_0x21f706['length']),_0x21f706['push']([]));const _0x21c5df=_0xc815f3['get'](_0x19181e);_0x21f706[_0x21c5df]['push'](_0x1628d6);}!(function(){_0x21f706['sort']((_0x4aadb6,_0x45cf6b)=>{const _0x40aff0=_0x4aadb6[0x0]['createdAt'],_0x576280=_0x45cf6b[0x0]['createdAt'];return _0x40aff0==_0x576280?_0x4aadb6[0x0]['attributes']['groupId']<_0x45cf6b[0x0]['attributes']['groupId']?-0x1:0x1:_0x40aff0<_0x576280?-0x1:0x1;});for(const _0x5cfc31 of _0x21f706)_0x5cfc31['sort']((_0x1c9e2a,_0x1a313b)=>_0x1c9e2a['id']<_0x1a313b['id']?-0x1:0x1);}());for(let _0x11f215=0x0;_0x11f215<_0x21f706['length'];_0x11f215++){if(0x0==_0x21f706[_0x11f215]['length'])continue;const _0x198a44=[];for(let _0xe6540d=_0x11f215+0x1;_0xe6540d<_0x21f706['length'];_0xe6540d++)0x0!=_0x21f706[_0xe6540d]['length']&&_0x2276a5(_0x21f706[_0x11f215],_0x21f706[_0xe6540d])&&_0x198a44['push'](_0xe6540d);for(const _0x56f823 of _0x198a44)_0x21f706[_0x11f215]=_0x21f706[_0x11f215]['concat'](_0x21f706[_0x56f823]),_0x21f706[_0x56f823]=[];}for(const _0x255625 of _0x21f706)for(let _0x59ae58=0x0;_0x59ae58<_0x255625['length'];_0x59ae58++){const _0x3e259d=_0x255625[_0x59ae58+0x1]||null;_0x255625[_0x59ae58]['next']!==_0x3e259d&&(_0x255625[_0x59ae58]['next']=_0x3e259d);}for(const _0x582bf5 of _0x21f706)for(let _0x2033bf=0x0;_0x2033bf<_0x582bf5['length'];_0x2033bf++){const _0x5bf060=_0x582bf5[_0x2033bf-0x1]||null;_0x582bf5[_0x2033bf]['previous']!==_0x5bf060&&(_0x582bf5[_0x2033bf]['previous']=_0x5bf060);}function _0x2276a5(_0x1cb3a8,_0x49a816){if(_0x1cb3a8[0x0]['attributes']['groupId']!==_0x49a816[0x0]['attributes']['groupId']&&_0x1cb3a8[0x0]['author']!==_0x49a816[0x0]['author'])return!0x1;if(!function(_0x1ba3b5,_0x4e69b2){if(!_0x1ba3b5['hasComments']&&!_0x4e69b2['hasComments'])return!0x0;if(_0x1ba3b5['hasComments']&&_0x4e69b2['hasComments'])return!0x1;if(_0x1ba3b5['hasComments']&&_0x4e69b2['createdAt']<_0x1ba3b5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4e69b2['hasComments']&&_0x1ba3b5['createdAt']<_0x4e69b2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1cb3a8[0x0],_0x49a816[0x0]))return!0x1;const _0xc8a796=Tt(_0x1cb3a8[0x0]['attributes'],'groupId'),_0x5b8ca3=Tt(_0x49a816[0x0]['attributes'],'groupId');if(!_0x3b8fd5(_0xc8a796,_0x5b8ca3))return!0x1;return!!_0x1cb3a8['every'](_0x3805d0=>_0x49a816['some'](_0x11b390=>_0x3805d0['getFirstRange']()['isEqual'](_0x11b390['getFirstRange']())))&&_0x49a816['every'](_0x40535b=>_0x1cb3a8['some'](_0x4287fd=>_0x40535b['getFirstRange']()['isEqual'](_0x4287fd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3feacd){const _0x3155f9=Array['from'](_0x3feacd),_0x344cce=this['getSuggestions']({'skipNotAttached':!0x0}),_0x47d21f=_0x344cce['filter'](_0x554a13=>!_0x3feacd['has'](_0x554a13)),_0x4d4b6a=new Map(_0x3155f9['map'](_0x5358fd=>[_0x5358fd,this['_suggestionFactory']['getSuggestionCallback'](_0x5358fd['type'],_0x5358fd['subType'],'join')])),_0x1d81b3=new Map(_0x344cce['map'](_0x590f88=>[_0x590f88,_0x590f88['getRanges']()]));for(let _0x3b7058=0x0;_0x3b7058<_0x3155f9['length'];_0x3b7058++){if(_0x5016e6(this,_0x3155f9[_0x3b7058],_0x3155f9,_0x3b7058+0x1))return!0x0;}for(let _0xd26f12=0x0;_0xd26f12<_0x3155f9['length'];_0xd26f12++){if(_0x5016e6(this,_0x3155f9[_0xd26f12],_0x47d21f,0x0))return!0x0;}return!0x1;function _0x5016e6(_0x19ead6,_0x2727fa,_0x278e9e,_0x5bd853){for(let _0x93d0b4=_0x5bd853;_0x93d0b4<_0x278e9e['length'];_0x93d0b4++){const _0x5f0d20=_0x278e9e[_0x93d0b4];if(_0x5f0d20['type']!==_0x2727fa['type']||_0x5f0d20['author']['id']!==_0x2727fa['author']['id']||_0x5f0d20['subType']!==_0x2727fa['subType'])continue;if(!Jt(_0x2727fa,_0x5f0d20))continue;if('attribute'==_0x2727fa['type']&&_0x2727fa['data']['oldValue']!=_0x5f0d20['data']['oldValue'])continue;if('attribute'==_0x2727fa['type']&&_0x19ead6['_isBlockAttribute'](_0x2727fa['data']['key']))continue;if('formatBlock'==_0x2727fa['type']){const _0x4c8710=_0x19ead6['editor']['model'],_0x2e9d8e=_0x2727fa['getContainedElement']();if(_0x2e9d8e&&(_0x4c8710['schema']['isObject'](_0x2e9d8e)||_0x4c8710['schema']['isLimit'](_0x2e9d8e)))continue;}const _0x214442=_0x4d4b6a['get'](_0x2727fa),_0x3f4fe9=_0x1d81b3['get'](_0x2727fa),_0x40ae3e=_0x1d81b3['get'](_0x5f0d20),_0x430793=_0x2727fa['commentThread']&&_0x2727fa['commentThread']['length'],_0xda0cdb=_0x5f0d20['commentThread']&&_0x5f0d20['commentThread']['length'];if(!_0x430793&&_0x214442(_0x40ae3e,_0x3f4fe9))return _0x19ead6['_joinSuggestions'](_0x5f0d20,_0x2727fa),_0x1d81b3['delete'](_0x2727fa),!0x0;if(!_0xda0cdb&&_0x214442(_0x3f4fe9,_0x40ae3e))return _0x19ead6['_joinSuggestions'](_0x2727fa,_0x5f0d20),_0x1d81b3['delete'](_0x5f0d20),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4b4a09,_0xeab609){if(_0x4b4a09['isMultiRange']){for(const _0x331136 of _0xeab609['getRanges']())_0x4b4a09['addRange'](_0x331136);}else{const _0x1e59d4=_0xeab609['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4b4a09,this['_model']['createRange'](_0x4b4a09['getFirstRange']()['start'],_0x1e59d4));}_0xeab609['removeMarkers']();}['_getMarkerAnnouncementText'](_0x11cd13,_0x3d6272,_0x39c8d4){const _0x25bdb7=_0x11cd13['startsWith']('format')||_0x11cd13['startsWith']('attribute')?'FORMATTING':_0x11cd13['toUpperCase']();return o(this['editor']['locale'],_0x3d6272+'_'+_0x25bdb7+'_SUGGESTION_ANNOUNCEMENT',_0x39c8d4);}['_initAriaMarkerChangeAnnouncements'](){const _0x30c54b=this['editor'];if(!_0x30c54b['ui'])return;const {ariaLiveAnnouncer:_0x1816f8}=_0x30c54b['ui'];_0xa9aaf3(this['_model'],({left:_0x36fcaf,entered:_0xe1d35c})=>{for(const _0x351fde of _0x36fcaf){const {group:_0x5d95e2,type:_0x5142a7}=this['_splitMarkerName'](_0x351fde['name']);if('suggestion'===_0x5d95e2){_0x1816f8['announce'](this['_getMarkerAnnouncementText'](_0x5142a7,'LEAVE'));break;}}for(const _0x1c0038 of _0xe1d35c){const {group:_0x5ae4a4,type:_0x82083}=this['_splitMarkerName'](_0x1c0038['name']);if('suggestion'===_0x5ae4a4){_0x1816f8['announce'](this['_getMarkerAnnouncementText'](_0x82083,'ENTER',_0x4694d5(_0x2adf40)));break;}}});}['_processAttributeChanges'](_0xfb3a85){if(this['_recordAttributeSuggestions'])return!0x1;const _0x592012=this['editor'],_0x2f794b=_0x592012['model']['document']['differ']['getChanges']();if(0x0==_0x2f794b['length'])return!0x1;const _0x221686=[],_0x4c8d1c=_0x2f794b['filter'](_0x592bd8=>'attribute'==_0x592bd8['type']),_0x37a0a6=_0x2f794b['filter'](_0x4590d8=>'insert'==_0x4590d8['type']&&'$text'!=_0x4590d8['name']),_0x4a9c72=_0x2f794b['filter'](_0x191ddc=>'remove'==_0x191ddc['type']&&'$text'!=_0x191ddc['name']);for(const _0x5dfac5 of _0x4c8d1c)_0x221686['push']({'key':_0x5dfac5['attributeKey'],'newValue':_0x5dfac5['attributeNewValue'],'oldValue':_0x5dfac5['attributeOldValue'],'range':Pt(_0x5dfac5['range'],_0x592012['model'])});for(const _0x1d926a of _0x37a0a6){const _0x34b38b=_0x4a9c72['find'](_0x2893ef=>_0x2893ef['position']['isEqual'](_0x1d926a['position']));_0x34b38b&&_0x221686['push']({'key':m,'newValue':_0x1d926a['name'],'oldValue':_0x34b38b['name'],'range':_0x592012['model']['createRangeOn'](_0x1d926a['position']['nodeAfter'])});}return 0x0!=_0x221686['length']&&this['_reduceExistingSuggestions'](_0xfb3a85,_0x221686);}['_processAttributeSuggestions'](_0x29aba1){let _0x4b152a=!0x1;const _0x15b4cf=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49e130=>_0x49e130['data']['newRange']&&_0x49e130['name']['startsWith']('suggestion:attribute:'));for(const _0x263fb4 of _0x15b4cf){const {subType:_0x1acb41,id:_0x2b9501}=this['_splitMarkerName'](_0x263fb4['name']),_0x2246a4=_0x1acb41['split']('|')[0x0];for(const _0x658a57 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x658a57['id']!=_0x2b9501&&'attribute'==_0x658a57['type']&&_0x658a57['data']&&_0x658a57['data']['key']==_0x2246a4&&_0x658a57['getFirstRange']()['isIntersecting'](_0x263fb4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x658a57,_0x263fb4['data']['newRange'],_0x29aba1),_0x4b152a=!0x0);}return _0x4b152a;}['_recordAttributeChanges'](_0x2f7e94){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2f7e94();}['_isRegisteredAttribute'](_0x18a263){const _0x5f5aac=this['_isBlockAttribute'](_0x18a263),_0x57d0c5=this['_inlineAttributeKeys']['has'](_0x18a263);return _0x5f5aac||_0x57d0c5;}['_reduceExistingSuggestions'](_0x368e7f,_0x3fe6e0){if(0x0==_0x3fe6e0['length'])return!0x1;let _0x17d62a=!0x1;for(const _0x59a1a2 of _0x3fe6e0){const _0x13d39d=this['_findSuggestions'](_0x59a1a2['range'],'attribute')['filter'](_0x1f8297=>!_0x1f8297['meta']['isNextTo'])['map'](_0x564579=>_0x564579['suggestion']),_0x407fd1=_0x3071b6({'newValue':_0x59a1a2['newValue']});_0x13d39d['filter'](_0x1edea7=>{const [_0x570b66,_0x458f3d]=_0x1edea7['subType']['split']('|');return _0x570b66==_0x59a1a2['key']&&_0x458f3d!=_0x407fd1;})['forEach'](_0x5b461d=>{this['_reduceSuggestionAttributeRange'](_0x5b461d,_0x59a1a2['range'],_0x368e7f),_0x17d62a=!0x0;});}return _0x17d62a;}['_reduceSuggestionAttributeRange'](_0xc13d77,_0x1e1d46,_0x256942){const _0x41c20c=_0xc13d77['getFirstRange']()['getDifference'](_0x1e1d46);0x0!==_0x41c20c['length']?0x1!==_0x41c20c['length']?this['_breakSuggestionMarker'](_0xc13d77,_0x1e1d46['start'],_0x1e1d46['end']):this['_setSuggestionRange'](_0xc13d77,_0x41c20c[0x0]):_0x256942['removeMarker'](_0xc13d77['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5f38b5){this['_editor']=_0x5f38b5,this['_model']=_0x5f38b5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4e22fa,_0x161cb6,_0x17bcdf,_0x2d8251,_0x532b65,_0x44a1a6){return new u(this['_model'],{'type':_0x4e22fa,'subType':_0x161cb6,'id':_0x17bcdf,'author':_0x2d8251,'creator':_0x2d8251,'attributes':_0x532b65,'onAttributesChange':_0x44a1a6,'onAccept':(..._0x56b158)=>this['getSuggestionCallback'](_0x4e22fa,_0x161cb6,'accept')(..._0x56b158),'onDiscard':(..._0x16b11c)=>this['getSuggestionCallback'](_0x4e22fa,_0x161cb6,'discard')(..._0x16b11c)});}['registerCustomCallback'](_0x1485e6,_0x4cf856,_0x44b79f,_0xa0c865){const _0x2e1fa6=_0x1485e6+':'+_0x4cf856+':'+_0x44b79f;this['_customCallbacks']['set'](_0x2e1fa6,_0xa0c865);}['getSuggestionCallback'](_0x49a369,_0x471e37,_0x2fc859){const _0x3459c5=_0x49a369+':'+_0x471e37+':'+_0x2fc859;return this['_customCallbacks']['get'](_0x3459c5)||this['_defaultCallbacks']['get'](_0x49a369+':'+_0x2fc859);}['_registerDefaultCallbacks'](){const _0x52c1f8=()=>!0x1,_0x38d3b5=_0x36d8a9=>{_0x36d8a9['sort']((_0x407363,_0x3b14b1)=>_0x407363['start']['isBefore'](_0x3b14b1['start'])?0x1:-0x1),this['_model']['change'](_0xb89436=>{for(const _0x5af583 of _0x36d8a9){let _0x96cec1;_0x96cec1=_0x5af583['end']['isAtEnd']&&_0x5af583['end']['parent']==_0x5af583['start']['nodeAfter']?_0xb89436['createSelection'](_0x5af583['start']['nodeAfter'],'on'):_0xb89436['createSelection'](_0x5af583),this['_model']['deleteContent'](_0x96cec1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1eface=(_0x73e95a,_0xd5b1a0)=>{_0xd5b1a0&&this['_model']['change'](_0x19bfba=>{const {commandName:_0xe45dc4,commandParams:_0x266311=[]}=_0xd5b1a0,_0x332722=_0x73e95a['map'](_0x1bbfd2=>(Vt(_0x1bbfd2)&&(_0x1bbfd2=this['_model']['createRange'](_0x1bbfd2['end'])),_0x1bbfd2))['filter'](_0x37d66c=>'$graveyard'!==_0x37d66c['root']['rootName']);if(_0x332722['length']<0x1)return;const _0x55bc56=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3451e0=>_0x12550f['fromRange'](_0x3451e0));_0x19bfba['setSelection'](_0x332722);for(const _0x522f78 of this['_editor']['commands']['commands']())_0x522f78['refresh']();_0x266311['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xe45dc4,..._0x266311);const _0x22c1d5=_0x55bc56['filter'](_0x2f70d7=>'$graveyard'!=_0x2f70d7['root']['rootName']);_0x22c1d5['length']>0x0&&_0x19bfba['setSelection'](_0x22c1d5);for(const _0x28a179 of _0x55bc56)_0x28a179['detach']();});},_0x7b964=(_0xe12772,_0x268bf2)=>0x1==_0xe12772['length']&&0x1==_0x268bf2['length']&&_0xe12772[0x0]['end']['isEqual'](_0x268bf2[0x0]['start']),_0x32b7f1=(_0x3146ea,_0x12cd0f,_0x359d81,_0x263395)=>Ht(_0x3146ea,_0x12cd0f,_0x359d81,_0x263395,this['_model'])?[_0x3146ea,_0x12cd0f]:Ht(_0x12cd0f,_0x3146ea,_0x263395,_0x359d81,this['_model'])?[_0x12cd0f,_0x3146ea]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52c1f8),this['_defaultCallbacks']['set']('insertion:discard',_0x38d3b5),this['_defaultCallbacks']['set']('insertion:join',_0x7b964),this['_defaultCallbacks']['set']('insertion:chain',_0x32b7f1),this['_defaultCallbacks']['set']('deletion:accept',_0x38d3b5),this['_defaultCallbacks']['set']('deletion:discard',_0x52c1f8),this['_defaultCallbacks']['set']('deletion:join',_0x7b964),this['_defaultCallbacks']['set']('deletion:chain',_0x32b7f1),this['_defaultCallbacks']['set']('formatInline:accept',_0x1eface),this['_defaultCallbacks']['set']('formatInline:discard',_0x52c1f8),this['_defaultCallbacks']['set']('formatInline:join',_0x7b964),this['_defaultCallbacks']['set']('formatInline:chain',_0x52c1f8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1eface),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52c1f8),this['_defaultCallbacks']['set']('formatBlock:join',_0x7b964),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52c1f8),this['_defaultCallbacks']['set']('attribute:accept',_0x52c1f8),this['_defaultCallbacks']['set']('attribute:discard',(_0x2a2b8b,_0x55bea8)=>{if(!_0x55bea8)return;const _0x5ccd3f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2a2421=>{if(_0x55bea8['key']==m)for(const _0x219272 of _0x2a2b8b){const _0x36cb7e=_0x219272['start']['nodeAfter'],_0x3bdc08=_0x55bea8['oldValue'];_0x2a2421['rename'](_0x36cb7e,_0x3bdc08);}else{if(_0x5ccd3f['_isBlockAttribute'](_0x55bea8['key'])){for(const _0x3694d0 of _0x2a2b8b)void 0x0!==_0x55bea8['oldValue']?_0x2a2421['setAttribute'](_0x55bea8['key'],_0x55bea8['oldValue'],_0x3694d0['start']['nodeAfter']):_0x2a2421['removeAttribute'](_0x55bea8['key'],_0x3694d0['start']['nodeAfter']);}else{for(const _0x49f954 of _0x2a2b8b)_0x55bea8['oldValue']?_0x2a2421['setAttribute'](_0x55bea8['key'],_0x55bea8['oldValue'],_0x49f954):_0x2a2421['removeAttribute'](_0x55bea8['key'],_0x49f954);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7b964);}}function Ot(_0x418451,_0x573e21,_0x54974f){for(const _0x3909bc of _0x573e21['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3909bc['root']==_0x3909bc)return!0x1;if(!_0x54974f['containsItem'](_0x3909bc))return!0x1;if(_0x418451['isObject'](_0x3909bc)||_0x418451['isLimit'](_0x3909bc))return!0x0;}return!0x1;}function Vt(_0x464931){return _0x464931['end']['parent']==_0x464931['start']['nodeAfter']&&_0x464931['end']['isAtStart'];}function Ut(_0x405a7e,_0x5ea03a,_0x190d85,_0x44a3af){const _0x4dda7c=_0x11d3ff=>!_0x11d3ff['item']['is']('$textProxy')&&!_0x44a3af['isObject'](_0x11d3ff['item']),_0x9653d9=_0x405a7e['start']['getLastMatchingPosition'](_0x4dda7c),_0x4786de=_0x405a7e['end']['getLastMatchingPosition'](_0x4dda7c,{'direction':'backward'});return(!_0x405a7e['start']['isEqual'](_0x9653d9)||!_0x405a7e['end']['isEqual'](_0x4786de))&&(_0x9653d9['isBefore'](_0x4786de)?_0x190d85['updateMarker'](_0x5ea03a,{'range':_0x190d85['createRange'](_0x9653d9,_0x4786de)}):_0x190d85['removeMarker'](_0x5ea03a),!0x0);}function Gt(_0x546473){return _0x3071b6(_0x546473);}function Ft(_0x3617a2){const _0x1b90c2=_0x3617a2['start']['nodeAfter'];return _0x1b90c2&&_0x1b90c2['is']('element');}function Pt(_0x1e3d13,_0x4ac942){return null==_0x1e3d13['end']['nodeBefore']&&_0x1e3d13['end']['parent']==_0x1e3d13['start']['nodeAfter']?Lt(_0x1e3d13['start']['nodeAfter'],_0x4ac942):_0x1e3d13;}function Lt(_0x5e7716,_0x457529){const _0x4c813a=_0x457529['schema']['isObject'](_0x5e7716)||_0x457529['schema']['isSelectable'](_0x5e7716);return _0x457529['createRange'](_0x457529['createPositionAt'](_0x5e7716,'before'),_0x4c813a?_0x457529['createPositionAfter'](_0x5e7716):_0x457529['createPositionAt'](_0x5e7716,'end'));}function Ht(_0x117100,_0x37d044,_0x55a7e3,_0x37af99,_0x455b99){if(_0x117100['next'])return!0x1;if(!Jt(_0x117100,_0x37d044))return!0x1;if(_0x55a7e3['end']['isEqual'](_0x37af99['start']))return!0x0;if(_0x117100['type']!=_0x37d044['type'])return!0x1;if(!_0x55a7e3['end']['isTouching'](_0x37af99['start']))return!0x1;const _0x11b82c=_0x455b99['createRange'](_0x55a7e3['end'],_0x37af99['start'])['getWalker']();for(const _0x298d1b of _0x11b82c)if(['elementStart','elementEnd']['includes'](_0x298d1b['type'])&&_0x455b99['schema']['isLimit'](_0x298d1b['item']))return!0x1;return!0x0;}function Jt(_0x578f32,_0x2b7062){if(!_0x578f32['_isDataLoaded']||!_0x2b7062['_isDataLoaded'])return!0x1;const _0xaf6916=new Set(Object['keys'](_0x578f32['attributes'])),_0x136746=new Set(Object['keys'](_0x2b7062['attributes']));if(_0xaf6916['delete']('groupId'),_0x136746['delete']('groupId'),0x0==_0xaf6916['size']&&0x0==_0x136746['size'])return!0x0;if(_0xaf6916['size']!=_0x136746['size'])return!0x1;const _0x1b5356={..._0x578f32['attributes']},_0x4168b7={..._0x2b7062['attributes']};return delete _0x1b5356['groupId'],delete _0x4168b7['groupId'],JSON['stringify'](_0x1b5356)==JSON['stringify'](_0x4168b7);}function qt(_0x103953,_0x202150){const _0x653272=zt(_0x103953['attributes']),_0x47f7d4=zt(_0x202150);if(!_0x103953['_isDataLoaded'])return!0x1;for(const _0x3e2375 of Object['keys'](_0x47f7d4))if(!_0x3b8fd5(_0x653272[_0x3e2375],_0x47f7d4[_0x3e2375]))return!0x1;return!0x0;}function zt(_0x4db5aa){const _0x485c0a=Object['assign']({},_0x4db5aa);return delete _0x485c0a['skipNestingCheck'],delete _0x485c0a['tablePasteChainId'],_0x485c0a;}class ae extends/* #__PURE__ -- @preserve */
25
- _0xbe230(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x56f088,_0x307063,_0x50fa8f,_0x39894c){super(),this['model']=_0x307063,this['view']=_0x50fa8f,this['commentThreadController']=_0x39894c,this['_editor']=_0x56f088,this['_acceptCommand']=_0x56f088['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x56f088['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3c491f,_0x19759a)=>_0x3c491f||_0x19759a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x28704f=>_0x28704f&&this['_editor']['model']['canEditAt'](_0x307063['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x48db32=>_0x48db32&&this['_editor']['model']['canEditAt'](_0x307063['getRanges']())),this['_pendingAction']=null,_0x50fa8f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x50fa8f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x50fa8f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x50fa8f,'change:isDirty',()=>{_0x50fa8f['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 _0x506e7b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x506e7b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1dc03d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x583350,_0x25d018,_0x27ffb3,_0x212345){super(_0x583350),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b52f3(_0x583350,o(_0x583350,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x25d018['authoredAt']),this['bind']('authoredAt')['to'](_0x25d018),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',_0x25d018,'authoredAt',this,'descriptionParts',(_0x4efca8,_0x237b03,_0x5f31c8)=>{const _0x1ef94b=_0x5f31c8['map'](_0x1799cd=>ls(_0x1799cd['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4efca8-0x1,_0x25d018['author']['name'],_0x237b03?_0x212345['formatDateTime'](_0x237b03):'',new DOMParser()['parseFromString'](_0x1ef94b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5f40be(),this['focusTracker']=new _0x46e5fe(),this['keystrokes']=new _0x4dafe4(),this['focusCycler']=new _0x43001f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1e0c4a=>_0x1e0c4a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x25d018,this['_localUser']=_0x27ffb3,this['_config']=_0x212345,_0x212345['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x570b54(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a4835}=this['_config'];this['commentsListView']=new _0x2a4835(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',_0x5377b4=>_0x5377b4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f779a,_0x426155)=>_0x3f779a||!!_0x426155);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x59fd32}=this['_config'],_0x277f4c=new _0x59fd32(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6d76c2=_0x277f4c['commentInputView'];return _0x277f4c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6d76c2,'value',(_0x799486,_0x1a5bf6,_0x8ff3b9)=>!!_0x8ff3b9||_0x799486&&!_0x1a5bf6),_0x6d76c2['on']('submit',(_0x2c2010,_0x58f835)=>{this['fire']('addComment',_0x58f835),_0x6d76c2['editor']['setData']('');}),_0x6d76c2['on']('cancel',()=>this['focus']()),_0x6d76c2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x277f4c;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x40aa3d,_0x52dc23,_0x3b3df0,_0x3ee317){super(_0x40aa3d,_0x52dc23,_0x3b3df0,_0x3ee317),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4367de=>_0x4367de&&_0x4367de[0x0]?_0x4367de[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x300407,_0x13f979)=>{let _0x5a0f1a='';for(const _0x52a96d of _0x300407)_0x5a0f1a+='<p>'+ls(_0x52a96d['content'],_0x52a96d['color'])+'</p>';return _0x13f979?_0x5a0f1a:_0x4b5435(_0x5a0f1a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3ee317['SuggestionView'](_0x40aa3d,_0x52dc23,{'formatDateTime':_0x3ee317['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 _0x1be771=this['bindTemplate'],_0x5761b1=[this['suggestionView']];return this['commentsListView']&&_0x5761b1['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5761b1['push'](this['commentThreadInputView']),_0x5761b1['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1be771['if']('isActive','ck-suggestion-wrapper--active'),_0x1be771['to']('type',_0x8de3a2=>'ck-suggestion-'+_0x8de3a2),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':_0x1be771['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5761b1};}['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 _0x1dc03d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4ef6cf,_0x4107a4,_0x2e2105){super(_0x4ef6cf),this['_model']=_0x4107a4,this['_config']=_0x2e2105,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4107a4),this['acceptButton']=this['_createButton'](o(_0x4ef6cf,'Accept\x20suggestion'),_0x33afa3['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4ef6cf,'Discard\x20suggestion'),_0x33afa3['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2ee096(_0x4ef6cf,_0x4107a4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5f40be([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x46e5fe(),this['keystrokes']=new _0x4dafe4(),this['focusCycler']=new _0x43001f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f7669=>_0x1f7669['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x318545=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x318545['innerHTML']=this['description'],this['on']('change:description',(_0x57c876,_0x1ac60b,_0x29b747)=>{_0x318545['innerHTML']=_0x29b747;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x43cc5d=this['bindTemplate'],_0x1e8580=[{'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':_0x43cc5d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x43cc5d['to']('authoredAt',_0x293b68=>this['_config']['formatDateTime'](_0x293b68))}]}]},{'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']&&_0x1e8580['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':_0x1e8580}]};}['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'](_0x96d054,_0x48daf1,_0x463ee6,_0x3d16e8,_0x4a5bf0){const _0x18fe31=new _0x26fe1a(this['locale']);return _0x18fe31['set']({'label':_0x96d054,'icon':_0x48daf1,'tooltip':!0x0,'tooltipPosition':_0x4a5bf0}),_0x18fe31['extendTemplate']({'attributes':{'class':_0x463ee6}}),_0x18fe31['on']('execute',()=>{this['fire'](_0x3d16e8,this['_model']['id']);}),_0x18fe31;}['_setupKeyboardNavigation'](){const _0x2fc142=this['element'];this['keystrokes']['listenTo'](_0x2fc142);for(const _0x20f0d8 of this['focusables'])this['focusTracker']['add'](_0x20f0d8['element']),this['keystrokes']['listenTo'](_0x20f0d8['element']);this['keystrokes']['set']('enter',(_0x3ff7e4,_0x4e0cb7)=>{_0x2fc142===_0x3ff7e4['target']&&(this['focusCycler']['focusFirst'](),_0x4e0cb7());}),this['keystrokes']['set']('esc',(_0x3b5c8f,_0xd65c0c)=>{_0x2fc142!==_0x3b5c8f['target']&&(this['focus'](),_0xd65c0c());});}}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 _0x4fe0d7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5a7861,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x39645a){super(_0x39645a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x22956c=this['editor']['config'];_0x22956c['define']('trackChanges.SuggestionThreadView',re),_0x22956c['define']('trackChanges.SuggestionView',ce),_0x22956c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x22956c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x24b6d1,_0x5486a9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x303932,_0x23bdc6]of this['_handleControllerBuffer']){const _0x489caa=this['_suggestionToController']['has'](_0x303932);_0x489caa||_0x23bdc6?_0x489caa&&_0x23bdc6&&this['_destroyController'](_0x303932):this['_initializeController'](_0x303932);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x24b6d1,_0x5486a9);}['init'](){const _0xe17746=this['editor'],_0xc2dc62=_0xe17746['plugins']['get']('TrackChangesEditing'),_0x52334a=_0xe17746['plugins']['get']('Annotations'),_0x5bf951=_0xe17746['plugins']['get']('EditorAnnotations'),_0x161e66=_0xe17746['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5bf951['addSourceCollector'](()=>{const _0xd7bbae=[];for(const [_0x36a54e,_0x478d76]of Array['from'](this['_suggestionToController'])){const _0xcf67da=_0x36a54e['getAllAdjacentSuggestions'](),_0x5ec2e4=[];for(const _0x91a1d9 of _0xcf67da){if(!_0x91a1d9['isInContent'])continue;if(_0x91a1d9['isMultiRange']){_0x5ec2e4['push'](..._0x91a1d9['getRanges']());continue;}const _0x564aa3=_0x91a1d9['getFirstRange']();if(_0x5ec2e4['length']>0x0){const _0x1b9d87=_0x5ec2e4[0x0]['getJoined'](_0x564aa3);if(_0x1b9d87){_0x5ec2e4[0x0]=_0x1b9d87;continue;}}_0x5ec2e4['push'](_0x564aa3);}_0xd7bbae['push']([_0x478d76['view'],_0x5ec2e4]);}return _0xd7bbae;}),this['listenTo'](_0xc2dc62,'suggestionLoaded',(_0x3eb69e,_0xe86017)=>{this['listenTo'](_0xe86017,'change:previous',(_0x556bb3,_0x282aef,_0x3d4bae,_0x21e3a7)=>{_0xe86017['isInContent']&&(null==_0x3d4bae?(this['_updateController'](_0x21e3a7['head']),this['_handleSuggestionControllerDelayed'](_0xe86017,!0x1)):(this['_updateController'](_0x3d4bae['head']),null==_0x21e3a7&&this['_handleSuggestionControllerDelayed'](_0xe86017,!0x0)));}),null!==_0xe86017['previous']?this['_updateController'](_0xe86017['head']):this['_handleSuggestionControllerDelayed'](_0xe86017,!0x1);}),this['listenTo'](_0xc2dc62,'suggestionUnloaded',(_0x4721ff,_0x3df74a,_0xb26b0e)=>{this['stopListening'](_0x3df74a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3df74a),this['_suggestionToController']['has'](_0x3df74a)&&this['_destroyController'](_0x3df74a),_0xb26b0e&&this['_updateController'](_0xb26b0e['head']);}),this['listenTo'](_0xc2dc62,'suggestionChanged',(_0x2cc4a7,_0x5e9e48)=>{this['_updateController'](_0x5e9e48);}),this['listenTo'](_0x52334a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x161e66,'addComment',(_0x56a8c5,{threadId:_0x53ae28,isFromAdapter:_0x29b642})=>{if(_0x29b642||!_0xc2dc62['hasSuggestion'](_0x53ae28))return;const _0x515ca7=_0xc2dc62['getSuggestion'](_0x53ae28);this['_suggestionToController']['get'](_0x515ca7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1a90f7=this['editor']['plugins']['get']('Annotations'),_0x5f17b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a6dc8=Array['from'](_0x1a90f7['activeAnnotations'],_0x4bfeca=>_0x4bfeca['innerView'])['filter'](_0x26b77e=>this['_viewToController']['has'](_0x26b77e)),_0x43096a=[];for(const _0x199bea of _0x4a6dc8){const _0x3dbf5c=this['_viewToController']['get'](_0x199bea)['model']['getAllAdjacentSuggestions']();_0x43096a['push'](..._0x3dbf5c['reduce']((_0x4ec221,_0x5d773d)=>[..._0x4ec221,..._0x5d773d['getMarkerNames']()],[]));}_0x5f17b2['activeMarkers']=_0x43096a;}['_addUIComponentsToFactory'](){const _0x508865=this['editor'],_0x377ddd=_0x508865['locale'],_0x3a7bfd=o(_0x377ddd,'Track\x20changes'),_0x4e671e=new Wt([{'type':'switchbutton','model':new _0x487cc0({'withText':!0x0,'isToggleable':!0x0,'label':_0x3a7bfd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x487cc0({'withText':!0x0,'label':o(_0x377ddd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x487cc0({'withText':!0x0,'label':o(_0x377ddd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x487cc0({'withText':!0x0,'label':o(_0x377ddd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x487cc0({'withText':!0x0,'label':o(_0x377ddd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x53f365 of _0x4e671e)if(me(_0x53f365)){const _0x490f74=_0x508865['commands']['get'](_0x53f365['model']['commandName']);_0x53f365['model']['bind']('isOn','isEnabled')['to'](_0x490f74,'value','isEnabled');}_0x508865['ui']['componentFactory']['add']('trackChanges',_0x40da92=>this['_createToolbarButton'](_0x40da92,_0x4e671e,_0x3a7bfd)),_0x508865['ui']['componentFactory']['add']('menuBar:trackChanges',_0x437c97=>this['_createMenuBarMenu'](_0x437c97,_0x4e671e,_0x3a7bfd));}['_createToolbarButton'](_0x40e5ce,_0x562fa4,_0x4d7beb){const _0x42d7cd=Qt(_0x40e5ce,_0x61c38d),_0x432b6d=this['editor']['commands']['get']('trackChanges');_0x42d7cd['buttonView']['set']({'tooltip':_0x4d7beb,'label':_0x4d7beb,'icon':he}),_0x42d7cd['buttonView']['bind']('isOn')['to'](_0x432b6d,'value'),_0x42d7cd['buttonView']['on']('execute',()=>{_0x432b6d['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x42d7cd,_0x562fa4,{'role':'menu'});const _0x493333=[];for(const _0x5d4e57 of _0x562fa4)me(_0x5d4e57)&&_0x493333['push'](this['editor']['commands']['get'](_0x5d4e57['model']['commandName']));const _0x553f69=_0x42d7cd['buttonView'];return _0x553f69['actionView']['unbind']('isEnabled'),_0x553f69['arrowView']['unbind']('isEnabled'),_0x553f69['actionView']['bind']('isEnabled')['to'](_0x432b6d,'isEnabled'),_0x553f69['arrowView']['bind']('isEnabled')['toMany'](_0x493333,'isEnabled',(..._0x4b29bb)=>_0x4b29bb['some'](_0x249491=>_0x249491)),_0x42d7cd['on']('execute',_0x1e2151=>{this['editor']['execute'](_0x1e2151['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x42d7cd;}['_createMenuBarMenu'](_0x5f45ea,_0x35394b,_0x3a0a7e){const _0x300a85=new Yt(_0x5f45ea),_0x18c736=this['editor']['commands']['get']('trackChanges');_0x300a85['buttonView']['set']({'label':_0x3a0a7e,'icon':he});const _0x5dbd7e=new Zt(_0x5f45ea);for(const _0x2ecd7b of _0x35394b){if('separator'==_0x2ecd7b['type']){_0x5dbd7e['items']['add'](new Xt(_0x5f45ea));continue;}const _0x1a983c=new te(_0x5f45ea,_0x300a85),_0xf5a8c3=new _0x1979e5(_0x5f45ea),_0x57b6d6=_0x2ecd7b['model'];_0xf5a8c3['bind'](...Object['keys'](_0x57b6d6))['to'](_0x57b6d6),_0xf5a8c3['delegate']('execute')['to'](_0x300a85),_0xf5a8c3['on']('execute',()=>{this['editor']['execute'](_0x57b6d6['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a983c['children']['add'](_0xf5a8c3),_0x5dbd7e['items']['add'](_0x1a983c);}return _0x300a85['bind']('isEnabled')['to'](_0x18c736,'isEnabled'),_0x300a85['panelView']['children']['add'](_0x5dbd7e),_0x300a85;}['_initializeController'](_0x4dd8dc){const _0x5f7246=this['editor'],_0x42281f=_0x5f7246['config'],_0x44c993=_0x5f7246['plugins']['get']('Annotations'),_0x59e40d=_0x5f7246['plugins']['get']('CommentsRepository'),_0x353de8=_0x5f7246['plugins']['get']('EditorAnnotations'),_0xc22d54=_0x5f7246['plugins']['get'](_0x5a7861)['me'],_0x2ae705=_0x42281f['get']('trackChanges')['SuggestionThreadView'],_0x35ecb5=_0x42281f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x12fffc,CommentThreadInputView:_0x3d6143}=_0x5f7246['plugins']['get']('CommentsUI');let _0xa31319,_0x3b7e07,_0x1488e3;this['_annotationViews']['has'](_0x4dd8dc['id'])?(_0x3b7e07=this['_annotationViews']['get'](_0x4dd8dc['id']),_0xa31319=_0x3b7e07['mainView']):(_0xa31319=new _0x2ae705(_0x5f7246['locale'],_0x4dd8dc,_0xc22d54,{'disableComments':this['_disableComments'],'editorConfig':_0x42281f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x42281f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x42281f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x42281f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b76c3(_0x42281f['get']('locale')),'CommentView':_0x42281f['get']('comments')['CommentView'],'CommentsListView':_0x12fffc,'CommentThreadInputView':_0x3d6143,'SuggestionView':_0x35ecb5}),_0xa31319['suggestionView']['acceptButton']['on']('execute',()=>{_0x5f7246['editing']['view']['focus']();}),_0xa31319['suggestionView']['discardButton']['on']('execute',()=>{_0x5f7246['editing']['view']['focus']();}),_0x3b7e07=_0x44c993['createAnnotationView'](this['editor']['locale'],_0xa31319),_0x3b7e07['bind']('isDirty')['to'](_0xa31319,'isDirty'),_0x3b7e07['bind']('length')['to'](_0xa31319),_0x3b7e07['bind']('type')['to'](_0xa31319,'type',_0x12a657=>'suggestion-'+_0x12a657),_0xa31319['on']('escape',()=>{_0x1488e3['fire']('escape');}),this['_annotationViews']['set'](_0x4dd8dc['id'],_0x3b7e07));const _0x213ff4=_0x59e40d['createCommentThreadController'](_0x4dd8dc['commentThread'],_0xa31319),_0x35ce1c=new ae(_0x5f7246,_0x4dd8dc,_0xa31319,_0x213ff4),_0x842f70=_0x4dd8dc['getAllAdjacentSuggestions']()['filter'](_0x55e0a5=>_0x55e0a5['isInContent']);_0xa31319['descriptionParts']=_0x5f7246['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x842f70),this['_suggestionToController']['set'](_0x4dd8dc,_0x35ce1c),this['_viewToController']['set'](_0xa31319,_0x35ce1c),_0x1488e3=_0x44c993['createAnnotation']({'view':_0x3b7e07,'target':()=>{const _0x38c4e9=[],_0x31de79=_0x4dd8dc['getAllAdjacentSuggestions']()['filter'](_0x458473=>_0x458473['isInContent']);for(const _0x103fa8 of _0x31de79)_0x38c4e9['push'](..._0x103fa8['getMarkers']());return _0x5b505b(_0x5f7246['editing'],_0x38c4e9);},'type':()=>'suggestion-'+_0x35ce1c['view']['type']}),_0x59e40d['_bindAnnotationToEditors'](_0xa31319,_0x1488e3),_0x44c993['add'](_0x1488e3),_0x353de8['registerAnnotation'](_0x1488e3);}['_destroyController'](_0x479505){const _0x35a03a=this['editor']['plugins']['get']('CommentsRepository'),_0x47713d=this['editor']['plugins']['get']('Annotations'),_0x2e6a14=this['_suggestionToController']['get'](_0x479505),_0x4fee81=_0x2e6a14['view'],_0x2532cb=_0x47713d['getByInnerView'](_0x4fee81);_0x35a03a['_unbindEditors'](_0x4fee81),_0x2532cb&&_0x47713d['remove'](_0x2532cb),this['_suggestionToController']['delete'](_0x479505),this['_viewToController']['delete'](_0x4fee81),_0x2e6a14['destroy']();}['_updateController'](_0x289732){if(!_0x289732['isInContent']||!this['_suggestionToController']['has'](_0x289732))return;const _0x14cd90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f8bfe=this['_suggestionToController']['get'](_0x289732),_0x17da66=_0x289732['getAllAdjacentSuggestions']();_0x3f8bfe['view']['descriptionParts']=_0x14cd90['descriptionFactory']['getDescriptions'](_0x17da66);}['destroy'](){for(const _0x3a6f0f of this['_suggestionToController']['keys']())this['_destroyController'](_0x3a6f0f);for(const _0x289eb9 of this['_annotationViews']['values']())_0x289eb9['mainView']['destroy']();super['destroy']();}}function me(_0x218ccf){return'model'in _0x218ccf;}class k extends _0x4fe0d7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x237c57){this['editor']['plugins']['get'](p)['adapter']=_0x237c57;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x42dc47){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x42dc47);}['getSuggestions']({skipNotAttached:_0x3c4d2c=!0x1,toJSON:_0x3de9fe=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3c4d2c,'toJSON':_0x3de9fe});}['getSuggestion'](_0x200af2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x200af2);}}const T=['Pagination'];class P extends _0x4fe0d7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x236ce5=this['editor'];if(_0x236ce5['config']['define']('trackChangesData.editorCreator',_0x3a1284=>{const _0x340e7d=_0x236ce5['model']['document']['getRootNames']()['reduce']((_0x1a93c6,_0x2953b0)=>(_0x1a93c6[_0x2953b0]='',_0x1a93c6),{});return _0x236ce5['constructor']['create'](_0x340e7d,_0x3a1284);}),'function'!=typeof _0x236ce5['config']['get']('trackChangesData')['editorCreator'])throw new _0x25e072('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2940ef){return N(this['editor'],!0x0,_0x2940ef);}['getDataWithDiscardedSuggestions'](_0x3d5ccd){return N(this['editor'],!0x1,_0x3d5ccd);}}class D extends _0x4fe0d7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x176f97){super(_0x176f97),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(_0x2a7c85){return void 0x0!==_0x2a7c85['getRootsAttributes'];}async function N(_0xee626e,_0x5050ab,_0x495e26){const _0x32e4fb=_0x2787d6(_0xee626e,T);_0x32e4fb['plugins']['push'](p,D),_0x32e4fb['rootsAttributes']=v(_0xee626e)?_0xee626e['getRootsAttributes']():void 0x0;const _0x6f5f8f=document['createDocumentFragment'](),_0x46b8eb=_0xee626e['config']['get']('trackChangesData')['editorCreator'],_0x56939a=await _0x46b8eb(_0x32e4fb,()=>function(_0x2f287a){const _0x3b2385=document['createElement']('div');return _0x2f287a['appendChild'](_0x3b2385),_0x3b2385;}(_0x6f5f8f));!function(_0x4b077a,_0x21d716){const _0x1e8703=_0x4b077a['model']['document']['getRootNames']()['reduce']((_0x369f51,_0x1ca92a)=>(_0x369f51[_0x1ca92a]=_0x4b077a['data']['get']({'rootName':_0x1ca92a}),_0x369f51),{}),_0x2cbebe=_0x4b077a['plugins']['get']('Users')['users']['map'](_0x555c5b=>({'id':_0x555c5b['id'],'name':_0x555c5b['name']})),_0x150af5=_0x4b077a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d9552=_0x4b077a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39c00b=_0x21d716['plugins']['get']('Users'),_0x11c02d=_0x21d716['plugins']['get']('TrackChangesEditing'),_0x961d=_0x21d716['plugins']['get']('CommentsRepository');for(const _0x49d100 of _0x961d['getCommentThreads']())_0x49d100['remove']();for(const _0x536e1d of _0x2cbebe)_0x39c00b['getUser'](_0x536e1d['id'])||_0x39c00b['addUser'](_0x536e1d);_0x39c00b['me']||_0x39c00b['useAnonymousUser']();for(const _0x4eac7e of _0x4d9552)_0x961d['addCommentThread'](_0x4eac7e);for(const _0x28735f of _0x150af5)_0x11c02d['addSuggestionData'](_0x28735f);_0x21d716['data']['set'](_0x1e8703);}(_0xee626e,_0x56939a),_0x56939a['execute'](_0x5050ab?'acceptAllSuggestions':'discardAllSuggestions');const _0x1503e9=v(_0x56939a)?_0x56939a['getFullData'](_0x495e26):_0x56939a['data']['get'](_0x495e26);return await _0x56939a['destroy'](),_0x1503e9;}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 _0x35639c,PendingActions as _0xfaaf6f,icons as _0x42ce4b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xf45ff,ObservableMixin as _0x55adc9,uid as _0xd5eb17,insertToPriorityArray as _0x2e8480,priorities as _0x341dfe,logWarning as _0x22a84b,getEnvKeystrokeText as _0x5981d7,FocusTracker as _0x37aabc,KeystrokeHandler as _0x37aad2,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x41105b,View as _0x1087a3,ViewCollection as _0xf3a663,FocusCycler as _0x219431,ViewModel as _0x1fa453,createDropdown as Qt,SplitButtonView as _0x5d90f9,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x43dd0a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3dd7cd,hashObject as _0x1b9b7c,surroundingMarkersDetector as _0x4a1cb5,FOCUS_ANNOTATION_KEYSTROKE as _0x460e9c,AriaDescriptionView as _0x3bad00,setupThreadKeyboardNavigation as _0x4383e5,trimHtml as _0x186f3c,UserView as _0x56318a,LateFocusButtonView as _0x37b338,getDateTimeFormatter as _0x387885,getAllMarkersDomElementsSorted as _0x57e697,sanitizeEditorConfig as _0x422316}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x420838,LiveRange as _0x36a1b3,LivePosition as _0x36cce1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2e6717,toWidget as _0x4645ac}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xcf2e2c,set as _0x4d8e6e,isEqual as _0x1c28c7,unset as _0x24a218,omit as Tt}from'lodash-es';import{Delete as _0x371185,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x33c66c,ShiftEnter as _0x4be0aa}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0xa93c60,_0x4da7a6){super(_0xa93c60),this['_enabledCommands']=_0x4da7a6,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 _0x1d7bce of this['editor']['commands']['commands']())_0x1d7bce['affectsData']&&!this['_enabledCommands']['has'](_0x1d7bce)&&_0x1d7bce['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4ff835 of this['editor']['commands']['commands']())_0x4ff835['affectsData']&&!this['_enabledCommands']['has'](_0x4ff835)&&_0x4ff835['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x20f05e,_0x5ee392){super(_0x20f05e),this['_suggestions']=_0x5ee392,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4756df){const _0x3e4e02=this['_suggestions']['get'](_0x4756df);if(!_0x3e4e02)throw new _0xf45ff('track-changes-accept-suggestion-not-found',this);const _0x31d8b4=_0x3e4e02['getRanges']();this['editor']['model']['canEditAt'](_0x31d8b4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3e4e02);}}class R extends ts{['_suggestions'];constructor(_0x11cc2c,_0x3db8bf){super(_0x11cc2c),this['_suggestions']=_0x3db8bf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5dfce9){const _0x1f3d9d=this['_suggestions']['get'](_0x5dfce9);if(!_0x1f3d9d)throw new _0xf45ff('track-changes-discard-suggestion-not-found',this);const _0x58c6ef=_0x1f3d9d['getRanges']();this['editor']['model']['canEditAt'](_0x58c6ef)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1f3d9d);}}function ls(_0x66f2eb,_0x1366f1){let _0x51c58a='';return _0x51c58a+=_0x66f2eb['split']('*')['map']((_0x535713,_0x4df309)=>_0x4df309%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x535713)+'</span>':nn(_0x535713))['join'](''),_0x1366f1&&(_0x51c58a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1366f1['value']+'\x22\x20title=\x22'+_0x1366f1['title']+'\x22></span>'),_0x51c58a;}function nn(_0x56caf4){const _0xd00362=document['createElement']('span');return _0xd00362['innerText']=_0x56caf4,_0xd00362['innerHTML'];}function ss(_0x38537f){return _0x38537f['sort']((_0x5d6a1e,_0x50af6a)=>'deletion'==_0x5d6a1e['type']&&'deletion'!=_0x50af6a['type']?-0x1:'deletion'!=_0x5d6a1e['type']&&'deletion'==_0x50af6a['type']?0x1:0x0);}function to(_0x385c2e,_0x3f0f6d){let _0x10d307,_0x15d481=0x0;const _0x4534b3=[],_0x31800b=_0x3f0f6d['schema'];for(;_0x15d481<_0x385c2e['length'];){const _0x1f10d6=_0x385c2e[_0x15d481],_0x26872a=_0x385c2e[_0x15d481+0x1];_0x10d307||(_0x10d307=_0x3f0f6d['createPositionBefore'](_0x1f10d6)),on(_0x3f0f6d,_0x1f10d6,_0x26872a)||(_0x4534b3['push'](_0x3f0f6d['createRange'](_0x10d307,_0x31800b['isObject'](_0x1f10d6)?_0x3f0f6d['createPositionAfter'](_0x1f10d6):_0x3f0f6d['createPositionAt'](_0x1f10d6,'end'))),_0x10d307=null),_0x15d481++;}return _0x4534b3;}function on(_0x3eb501,_0x42bb05,_0x455c06){if(!_0x455c06)return!0x1;const _0x231bec=_0x3eb501['createPositionAfter'](_0x42bb05),_0x74729a=_0x3eb501['createPositionBefore'](_0x455c06);return _0x231bec['isTouching'](_0x74729a);}function rs(_0x5eaee7,_0x1e812d,_0x1e2835){for(;_0x1e2835['length'];){const _0x5c7759=_0x1e2835['splice'](0x0,0x64);_0x5eaee7['change'](()=>{for(const _0x113a8c of _0x5c7759)_0x113a8c['isInContent']&&_0x1e812d['execute'](_0x113a8c['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x2a7b0a,_0x4f7daa,_0x5e2f52){super(_0x2a7b0a),this['_command']=_0x4f7daa,this['_suggestions']=_0x5e2f52,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4a1244=Array['from'](this['_suggestions']['values']())['some'](_0x42b14a=>_0x42b14a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4a1244;}['execute'](){const _0x51baec=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3a021a of _0x51baec){const _0x2d0114=_0x3a021a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d0114))return;}rs(this['editor']['model'],this['_command'],_0x51baec);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3e99ba,_0xae1c65,_0x2b08b3){super(_0x3e99ba),this['_command']=_0xae1c65,this['_suggestions']=_0x2b08b3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x30f0f1=this['editor']['model']['document']['selection'],_0x2f236e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xa83f30,_0xb4d510){const _0x19a619=Array['from'](_0xa83f30['getRanges']()),_0x563760=new Set();for(const _0x35c8db of _0xb4d510)if(_0x35c8db['isInContent']){for(const _0x491659 of _0x19a619)for(const _0x4a2179 of _0x35c8db['getRanges']())(_0x491659['isIntersecting'](_0x4a2179)||_0xa83f30['isCollapsed']&&!_0x35c8db['isMultiRange']&&_0x35c8db['next']&&_0x4a2179['end']['isTouching'](_0x491659['start']))&&_0x563760['add'](_0x35c8db);}return _0x563760;}(_0x30f0f1,_0x2f236e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x180acd=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4ad5ea of _0x180acd){const _0x4d01bd=_0x4ad5ea['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4d01bd))return;}rs(this['editor']['model'],this['_command'],_0x180acd);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x55adc9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2c89af,_0x26698c){super(),this['id']=_0x26698c['id'],this['type']=_0x26698c['type'],this['subType']=_0x26698c['subType']||null,this['author']=_0x26698c['author'],this['creator']=_0x26698c['creator']||_0x26698c['author'],this['isExternal']=Boolean(_0x26698c['attributes']&&_0x26698c['attributes']['@external']),this['data']=null,this['_model']=_0x2c89af,this['_onAccept']=_0x26698c['onAccept'],this['_onDiscard']=_0x26698c['onDiscard'],this['_onAttributesChange']=_0x26698c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x26698c['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 _0x4ed3c8=this;for(;_0x4ed3c8['previous'];)_0x4ed3c8=_0x4ed3c8['previous'];return _0x4ed3c8;}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'](_0x26b81c){this['_markerNames']['add'](_0x26b81c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x32053d=>this['_model']['markers']['get'](_0x32053d))['filter'](_0xcc2833=>_0xcc2833);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1d661b=>{for(const _0x46ee25 of this['getMarkers']())_0x1d661b['removeMarker'](_0x46ee25);}),this['_markerNames']['clear']();}['removeMarker'](_0xba8324){this['_model']['change'](_0x48d84d=>{_0x48d84d['removeMarker'](_0xba8324);}),this['_markerNames']['delete'](_0xba8324);}['addRange'](_0x25bb83){const _0x307c93='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x307c93),this['_model']['change'](_0x2e23d5=>{_0x2e23d5['addMarker'](_0x307c93,{'range':_0x25bb83,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x301e76){for(const _0x16545b of this['getRanges']())if(_0x16545b['isIntersecting'](_0x301e76))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2af429=>_0x2af429['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x11ca78,_0x290301)=>[..._0x11ca78,..._0x290301['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x11922c=this['getRanges']();if(0x1!=_0x11922c['length'])return null;const _0x4ffa53=_0x11922c[0x0],_0x471f4e=_0x4ffa53['start']['nodeAfter'],_0x4b97db=_0x4ffa53['end']['nodeBefore'];return _0x471f4e instanceof _0x420838?_0x471f4e!=_0x4b97db?null:_0x471f4e: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 _0x2023e8=[];let _0xa91168=this['head'];for(;_0xa91168;)_0x2023e8['push'](_0xa91168),_0xa91168=_0xa91168['next'];return _0x2023e8;}['setAttribute'](_0x2fc051,_0x2e4fce){const _0x13c81e=_0xcf2e2c(this['attributes']);_0x4d8e6e(_0x13c81e,_0x2fc051,_0x2e4fce),_0x1c28c7(_0x13c81e,this['attributes'])||(this['attributes']=_0x13c81e,this['_onAttributesChange'](_0x13c81e));}['removeAttribute'](_0x338ac5){const _0xccbaec=_0xcf2e2c(this['attributes']);_0x24a218(_0xccbaec,_0x338ac5),_0x1c28c7(_0xccbaec,this['attributes'])||(this['attributes']=_0xccbaec,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 _0xd5eb17()['substr'](0x1,0x5);}}function o(_0x47d2cf,_0x5d59fd,_0x20a33e){const t=_0x47d2cf['t'];switch(_0x5d59fd){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',_0x20a33e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x20a33e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x20a33e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x20a33e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x20a33e);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',_0x20a33e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x20a33e);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',_0x20a33e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x20a33e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x20a33e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x20a33e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x20a33e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x20a33e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x20a33e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x20a33e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x20a33e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x20a33e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x20a33e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x20a33e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x20a33e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x20a33e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x20a33e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x20a33e);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'},_0x20a33e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x20a33e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x20a33e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x20a33e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x20a33e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x20a33e);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'},_0x20a33e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x20a33e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x20a33e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x20a33e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x20a33e);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'},_0x20a33e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x20a33e);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'},_0x20a33e);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'},_0x20a33e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x20a33e);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'},_0x20a33e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x20a33e);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'},_0x20a33e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x20a33e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x20a33e);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'},_0x20a33e);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'},_0x20a33e);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'},_0x20a33e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x20a33e);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'},_0x20a33e);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'},_0x20a33e);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'},_0x20a33e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5d59fd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x38dd2b,_0x3e1827){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x38dd2b,this['_locale']=_0x3e1827;}['getDescriptions'](_0x530f56){const _0x5d09cc=[],_0x18df11=new Set(),_0x2d1e07=new Set();for(let _0x195843=0x0;_0x195843<_0x530f56['length'];_0x195843++){const _0x3cdf52=_0x530f56[_0x195843];if(!_0x3cdf52['isInContent'])continue;const _0x5d1fd7=this['_handleCustomCallbackDescription'](_0x3cdf52);if(_0x5d1fd7){if(null!=_0x3cdf52['subType']){if(_0x18df11['has'](_0x3cdf52['subType']))continue;_0x18df11['add'](_0x3cdf52['subType']);}_0x5d09cc['push'](_0x5d1fd7);}else{if('attribute'!=_0x3cdf52['type'])'insertion'!=_0x3cdf52['type']&&'deletion'!=_0x3cdf52['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5d09cc,_0x3cdf52,_0x530f56[_0x195843+0x1]);else{const _0xe26bf6=_0x3cdf52['data']['key'];if(_0x2d1e07['has'](_0xe26bf6))continue;_0x2d1e07['add'](_0x3cdf52['data']['key']),_0xe26bf6==m?this['_handleRenameSuggestionDescription'](_0x5d09cc,_0x3cdf52):this['_handleAttributeSuggestionDescription'](_0x5d09cc,_0x3cdf52);}}}return this['_resolveDescriptionItems'](_0x5d09cc);}['registerDescriptionCallback'](_0x445a7b){this['_customCallbacks']['push'](_0x445a7b);}['registerElementLabel'](_0x43f0ed,_0x239425,_0x8fd1ad=_0x341dfe['normal']){'function'==typeof _0x43f0ed?_0x2e8480(this['_itemLabelsCallbacks'],{'matchingCallback':_0x43f0ed,'label':_0x239425,'priority':_0x8fd1ad}):this['_itemLabels']['set'](_0x43f0ed,_0x239425);}['registerAttributeLabel'](_0x1789f6,_0x493c90){this['_attributeLabels']['set'](_0x1789f6,_0x493c90);}['getItemLabel'](_0x2b6c26,_0xfbc127=0x1){let _0x133cf4;for(const _0x3c5df7 of this['_itemLabelsCallbacks'])if(_0x3c5df7['matchingCallback'](_0x2b6c26)){_0x133cf4=_0x3c5df7['label'];break;}return _0x133cf4||(_0x133cf4=this['_itemLabels']['get'](_0x2b6c26['name'])),_0x133cf4?_0x133cf4(_0xfbc127):0x1!==_0xfbc127?_0xfbc127+'\x20'+_0x2b6c26['name']+'s':''+_0x2b6c26['name'];}['_addDescriptionItems'](_0x34ae70,_0x51e3e7){const _0x365ab6=_0x51e3e7['getFirstRange']()['getWalker'](),_0x3861a6='insertion'==_0x51e3e7['type']?'add':'remove';for(const _0x45974f of _0x365ab6){const _0x3dac75=_0x45974f['item'],_0x3e1361=_0x34ae70[_0x34ae70['length']-0x1];if(_0x3dac75['is']('$textProxy'))_0x3e1361&&_0x3e1361['type']['indexOf']('Container')>-0x1&&_0x34ae70['pop'](),_0x3e1361&&'text'==_0x3e1361['type']?_0x3e1361[_0x3861a6]+=_0x3dac75['data']:_0x34ae70['push']({'type':'text','add':'add'==_0x3861a6?_0x3dac75['data']:'','remove':'remove'==_0x3861a6?_0x3dac75['data']:''});else{if(this['_schema']['isObject'](_0x3dac75)){const _0x3bd7b4=_0x3dac75;if(_0x3e1361&&_0x3e1361['type']['indexOf']('Container')>-0x1&&_0x34ae70['pop'](),'elementEnd'==_0x45974f['type'])continue;_0x3e1361&&_0x3e1361['type']==_0x3861a6+'Object'&&_0x3e1361['element']['name']==_0x3bd7b4['name']?_0x3e1361['quantity']++:_0x34ae70['push']({'type':_0x3861a6+'Object','element':_0x3bd7b4,'quantity':0x1}),_0x365ab6['skip'](_0x32543e=>!('elementEnd'==_0x32543e['type']&&_0x32543e['item']==_0x3dac75));}else{if(this['_schema']['checkChild'](_0x3dac75,'$text')||_0x3dac75['is']('element','softBreak')){const _0x3ed993=_0x3dac75;if('add'==_0x3861a6&&'elementStart'==_0x45974f['type']||'remove'==_0x3861a6&&'elementEnd'==_0x45974f['type'])continue;if(_0x3e1361&&-0x1==_0x3e1361['type']['indexOf']('Container')){'text'==_0x3e1361['type']&&(_0x3e1361[_0x3861a6]+='\x0a');continue;}let _0x32ec83;if(_0x32ec83='add'==_0x3861a6?_0x3ed993['nextSibling']&&!this['_schema']['isObject'](_0x3ed993['nextSibling'])?_0x3ed993['nextSibling']:null:_0x3ed993['previousSibling']&&!this['_schema']['isObject'](_0x3ed993['previousSibling'])?_0x3ed993['previousSibling']:null,_0x3ed993['isEmpty']||_0x32ec83&&_0x32ec83['isEmpty']){const _0x4a538f=_0x32ec83&&_0x32ec83['isEmpty']?_0x32ec83:_0x3ed993;_0x3e1361&&_0x3e1361['type']==_0x3861a6+'EmptyContainer'&&_0x3e1361['element']['name']==_0x4a538f['name']?_0x3e1361['quantity']++:_0x34ae70['push']({'type':_0x3861a6+'EmptyContainer','element':_0x4a538f,'quantity':0x1});}else _0x34ae70['push']({'type':_0x3861a6+'Container','element':_0x3ed993});}}}}}['_resolveDescriptionItems'](_0x565431){const _0x4959c4=this['_locale'],_0x3590b5=[],_0x4a1a28=[],_0x1ffa9e=[];for(const _0x2718dd of _0x565431)switch(_0x2718dd['type']){case'text':if(_0x2718dd['add']=_0x2718dd['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2718dd['remove']=_0x2718dd['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2718dd['add']&&''!=_0x2718dd['remove']){_0x3590b5['push']({'type':'replace','content':o(_0x4959c4,'REPLACE_TEXT',['\x22'+_0x2718dd['remove']+'\x22','\x22'+_0x2718dd['add']+'\x22'])});continue;}if(null!=_0x2718dd['add']['match'](/^ +$/)){_0x3590b5['push']({'type':'insertion','content':o(_0x4959c4,'*Insert:*\x20%0',o(_0x4959c4,'ELEMENT_SPACE',_0x2718dd['add']['length']))});continue;}if(null!=_0x2718dd['remove']['match'](/^ +$/)){_0x3590b5['push']({'type':'deletion','content':o(_0x4959c4,'*Remove:*\x20%0',o(_0x4959c4,'ELEMENT_SPACE',_0x2718dd['remove']['length']))});continue;}if(''!=_0x2718dd['add']){_0x3590b5['push']({'type':'insertion','content':o(_0x4959c4,'*Insert:*\x20%0','\x22'+_0x2718dd['add']+'\x22')});continue;}_0x3590b5['push']({'type':'deletion','content':o(_0x4959c4,'*Remove:*\x20%0','\x22'+_0x2718dd['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3590b5['push']({'type':'insertion','content':o(_0x4959c4,'*Insert:*\x20%0',this['getItemLabel'](_0x2718dd['element'],_0x2718dd['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3590b5['push']({'type':'deletion','content':o(_0x4959c4,'*Remove:*\x20%0',this['getItemLabel'](_0x2718dd['element'],_0x2718dd['quantity']))});continue;case'addContainer':_0x3590b5['push']({'type':'insertion','content':o(_0x4959c4,'*Split:*\x20%0',this['getItemLabel'](_0x2718dd['element'],_0x2718dd['quantity']))});continue;case'removeContainer':_0x3590b5['push']({'type':'deletion','content':o(_0x4959c4,'*Merge:*\x20%0',this['getItemLabel'](_0x2718dd['element'],_0x2718dd['quantity']))});continue;case'addFormat':_0x4a1a28['push'](_0x2718dd['key']);continue;case'removeFormat':_0x1ffa9e['push'](_0x2718dd['key']);continue;default:_0x3590b5['push'](_0x2718dd);}if(_0x4a1a28['length']){const _0x568a00=_0x4a1a28['map'](_0x2380cf=>this['_attributeLabels']['has'](_0x2380cf)?this['_attributeLabels']['get'](_0x2380cf):_0x2380cf)['join'](',\x20');_0x3590b5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x568a00)});}if(_0x1ffa9e['length']){const _0x5da231=_0x1ffa9e['map'](_0x924404=>this['_attributeLabels']['has'](_0x924404)?this['_attributeLabels']['get'](_0x924404):_0x924404)['join'](',\x20');_0x3590b5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5da231)});}return _0x3590b5;}['_handleCustomCallbackDescription'](_0x5b7ba7){for(const _0x1d772b of this['_customCallbacks']){const _0x1f8184=_0x1d772b(_0x5b7ba7);if(_0x1f8184&&'type'in _0x1f8184)return _0x1f8184;}}['_handleAttributeSuggestionDescription'](_0x1b2167,_0x35dcf9){const _0x33e0b6=_0x35dcf9['data'],_0x29007d=void 0x0===_0x33e0b6['newValue']?'removeFormat':'addFormat';_0x1b2167['push']({'type':_0x29007d,'key':_0x33e0b6['key']});}['_handleRenameSuggestionDescription'](_0x48efcf,_0x33df1b){_0x48efcf['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x33df1b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x517fcb,_0x39a172,_0x174c83){if(this['_addDescriptionItems'](_0x517fcb,_0x39a172),_0x174c83&&_0x174c83['getFirstRange']()&&!_0x39a172['getFirstRange']()['end']['isEqual'](_0x174c83['getFirstRange']()['start'])){const _0x27bf02=_0x517fcb[_0x517fcb['length']-0x1],_0x355c00='insertion'==_0x39a172['type']?'add':'remove';_0x27bf02&&'text'==_0x27bf02['type']&&(_0x27bf02[_0x355c00]+='\x0a');}}}class V extends _0x35639c{['afterInit'](){const _0x198313=this['editor'],_0x62588d=_0x198313['plugins']['get']('TrackChangesEditing');_0x198313['commands']['get']('showAIAssistant')&&_0x62588d['enableCommand']('showAIAssistant');}}class U extends _0x35639c{['afterInit'](){const _0x38cd27=this['editor'],_0xdd6d84=_0x38cd27['locale'];if(!_0x38cd27['plugins']['has']('AlignmentEditing'))return;const _0x33f624=_0x38cd27['plugins']['get']('TrackChangesEditing');_0x33f624['enableDefaultAttributesIntegration']('alignment'),_0x33f624['registerBlockAttribute']('alignment'),_0x33f624['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xdd6d84,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d952a=this['editor'],_0x2f3d15=_0x1d952a['locale'];_0x1d952a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0bcc=>{if('formatBlock'!=_0x5e0bcc['type'])return;const {data:_0x268355}=_0x5e0bcc;if(_0x268355&&'alignment'==_0x268355['commandName']){const _0x39f710=_0x268355['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2f3d15,'*Format:*\x20%0',function(_0x405065){switch(_0x405065){case'left':return o(_0x2f3d15,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2f3d15,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2f3d15,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2f3d15,'FORMAT_JUSTIFY_TEXT');}}(_0x39f710))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x35639c{['afterInit'](){const _0x588e06=this['editor'],_0x560d5d=_0x588e06['plugins']['get']('TrackChangesEditing'),_0x184af8=_0x588e06['locale'];for(const _0x2cd0e9 of ti){if(!_0x588e06['plugins']['has'](_0x2cd0e9))continue;const _0x28a1ce=_0x2cd0e9['slice'](0x0,-0x7)['toLowerCase'](),_0x228509='FORMAT_'+_0x28a1ce['toUpperCase']();_0x560d5d['enableDefaultAttributesIntegration'](_0x28a1ce),_0x560d5d['registerInlineAttribute'](_0x28a1ce),_0x560d5d['descriptionFactory']['registerAttributeLabel'](_0x28a1ce,o(_0x184af8,_0x228509));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3a358=this['editor'],_0x240804=_0xd3a358['locale'],_0x31fb9d=_0xd3a358['plugins']['get']('TrackChangesEditing');function _0x32214a(_0x55c0d4,_0x363713){_0x31fb9d['descriptionFactory']['registerDescriptionCallback'](_0x4fe1c5=>{if('formatInline'!=_0x4fe1c5['type'])return;const {data:_0x16c6ab}=_0x4fe1c5;return _0x16c6ab&&_0x16c6ab['commandName']===_0x55c0d4?_0x16c6ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x240804,'*Format:*\x20%0',_0x363713)}:{'type':'format','content':o(_0x240804,'*Remove\x20format:*\x20%0',_0x363713)}:void 0x0;});}_0x32214a('bold',o(_0x240804,'FORMAT_BOLD')),_0x32214a('italic',o(_0x240804,'FORMAT_ITALIC')),_0x32214a('underline',o(_0x240804,'FORMAT_UNDERLINE')),_0x32214a('code',o(_0x240804,'FORMAT_CODE')),_0x32214a('strikethrough',o(_0x240804,'FORMAT_STRIKETHROUGH')),_0x32214a('subscript',o(_0x240804,'FORMAT_SUBSCRIPT')),_0x32214a('superscript',o(_0x240804,'FORMAT_SUPERSCRIPT'));}}class F extends _0x35639c{['afterInit'](){const _0x302129=this['editor'],_0xd99357=_0x302129['locale'];if(!_0x302129['plugins']['has']('BlockQuoteEditing'))return;const _0x52302f=_0x302129['plugins']['get']('TrackChangesEditing'),_0x51c875=this['editor']['commands']['get']('blockQuote');_0x52302f['enableCommand']('blockQuote',(_0x445f46,_0x39c518={})=>{const _0x17d1e4=this['editor']['model']['document']['selection'],_0x1ad02e=_0x39c518&&void 0x0!==_0x39c518['forceValue']?_0x39c518['forceValue']:!_0x51c875['value'];let _0x34777a=[];if(_0x1ad02e){const _0x19726d=Array['from'](_0x17d1e4['getSelectedBlocks']())['filter'](_0x1f8bb6=>oo(_0x1f8bb6)||function(_0x5f1904,_0x3ec8b4){const _0x57383c=_0x3ec8b4['checkChild'](_0x5f1904['parent'],'blockQuote'),_0x1d2a24=_0x3ec8b4['checkChild'](['$root','blockQuote'],_0x5f1904);return _0x57383c&&_0x1d2a24;}(_0x1f8bb6,this['editor']['model']['schema']));_0x34777a=to(_0x19726d,_0x302129['model']);}else{const _0x458875=Array['from'](_0x17d1e4['getSelectedBlocks']())['filter'](_0x26c896=>oo(_0x26c896));_0x34777a=to(_0x458875,_0x302129['model']);}_0x302129['model']['change'](()=>{for(const _0x2adc72 of _0x34777a)_0x52302f['markBlockFormat'](_0x2adc72,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1ad02e}]});});}),_0x52302f['descriptionFactory']['registerDescriptionCallback'](_0x4d8577=>{const {data:_0x19a795}=_0x4d8577;if(_0x19a795&&'blockQuote'==_0x19a795['commandName']){const _0x382f0b=o(_0xd99357,'ELEMENT_BLOCK_QUOTE');return _0x19a795['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd99357,'*Set\x20format:*\x20%0',_0x382f0b)}:{'type':'format','content':o(_0xd99357,'*Remove\x20format:*\x20%0',_0x382f0b)};}});}}function oo(_0x2260e9){return'blockQuote'==_0x2260e9['parent']['name'];}class L extends _0x35639c{['afterInit'](){const _0x327399=this['editor'];_0x327399['plugins']['has']('CaseChange')&&(_0x327399['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x327399['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x327399['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x35639c{['afterInit'](){const _0x212f98=this['editor'];_0x212f98['commands']['get']('ckbox')&&_0x212f98['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x35639c{['afterInit'](){const _0x47ff4c=this['editor'];if(!_0x47ff4c['plugins']['has']('CodeBlock'))return;const _0x56add3=_0x47ff4c['plugins']['get']('TrackChangesEditing'),_0x4dd084=_0x47ff4c['locale'],_0x5ce138=_0x47ff4c['config']['get']('codeBlock')['languages'],_0x464162=_0x47ff4c['commands']['get']('codeBlock');_0x56add3['enableCommand']('indentCodeBlock'),_0x56add3['enableCommand']('outdentCodeBlock'),_0x56add3['enableCommand']('codeBlock',(_0x5af8f8,_0x1fd7e8={})=>{const _0x280d56=_0x47ff4c['model'],_0x4a6973=_0x47ff4c['model']['document']['selection'],_0x1a5beb=_0x1fd7e8&&void 0x0!==_0x1fd7e8['forceValue']?_0x1fd7e8['forceValue']:!_0x464162['value'];let _0x17d154;_0x1fd7e8['language']||(_0x1fd7e8['language']=_0x5ce138[0x0]['language']),_0x17d154=_0x1a5beb?Array['from'](_0x4a6973['getSelectedBlocks']())['filter'](_0x4256f1=>eo(_0x4256f1)||function(_0xbcac77,_0x21cd09){if(_0xbcac77['is']('rootElement')||_0x21cd09['isLimit'](_0xbcac77))return!0x1;return _0x21cd09['checkChild'](_0xbcac77['parent'],'codeBlock');}(_0x4256f1,_0x280d56['schema'])):Array['from'](_0x4a6973['getSelectedBlocks']())['filter'](_0x45bad3=>eo(_0x45bad3));const _0x1841de=to(_0x17d154,_0x280d56);_0x280d56['change'](()=>{for(const _0x139faa of _0x1841de)_0x56add3['markBlockFormat'](_0x139faa,{'commandName':'codeBlock','commandParams':[{..._0x1fd7e8,'forceValue':_0x1a5beb}],'formatGroupId':'blockName'});});}),(_0x56add3['descriptionFactory']['registerElementLabel']('codeBlock',_0x174d1e=>o(_0x4dd084,'ELEMENT_CODE_BLOCK',_0x174d1e)),_0x56add3['descriptionFactory']['registerDescriptionCallback'](_0x1a600b=>{if('formatBlock'!=_0x1a600b['type'])return;const _0x4bbf1f=_0x4dd084['t'],{data:_0x4d468b}=_0x1a600b;if(!_0x4d468b||'codeBlock'!=_0x4d468b['commandName'])return;const _0x2bd045=_0x4d468b['commandParams'][0x0]['language'],_0x3132c9=_0x4bbf1f(_0x5ce138['find'](_0x48ecfd=>_0x48ecfd['language']===_0x2bd045)['label'])['toLowerCase']();return _0x4d468b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dd084,'*Set\x20format:*\x20%0',o(_0x4dd084,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3132c9+')')}:{'type':'format','content':o(_0x4dd084,'*Remove\x20format:*\x20%0',o(_0x4dd084,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x47a472){return'codeBlock'==_0x47a472['name'];}class q extends _0x35639c{['afterInit'](){const _0x3e73c0=this['editor'];if(!_0x3e73c0['plugins']['has']('CommentsEditing'))return;_0x3e73c0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3a4474,_0x341b4e,_0x1a7e2b){const _0x3ac33f=[];for(const _0x3b981c of _0x341b4e['getItems']())_0x3b981c['hasAttribute'](_0x3a4474)&&_0x3ac33f['push'](_0x1a7e2b['createRangeOn'](_0x3b981c));return _0x3ac33f;}function _e(_0x3ccdcf,_0x1f324d,{showActiveMarker:_0x5a40d4=!0x0}={}){const _0x22b9d4=_0x3ccdcf['plugins']['get']('TrackChangesEditing');return(_0xd9ae92,_0x4137ad,_0x18d3c0)=>{if(!_0x18d3c0['consumable']['test'](_0x4137ad['markerRange'],_0xd9ae92['name']))return;const _0x258c2b=_0x4137ad['markerRange']['getWalker'](),_0x46020b=_0x4137ad['markerRange']['start'],_0x5ca4d3=_0x3ccdcf['model']['schema'];let _0x3bbab1=null,_0x22bac6=null,_0x674f5a=!0x1,_0x2ac41a=!0x1;for(const _0x5218a9 of _0x258c2b){const _0xaae9af=_0x5218a9['item'];_0x674f5a=_0x674f5a||_0x5ca4d3['isContent'](_0xaae9af);const _0x522216=_0x18d3c0['mapper']['toViewElement'](_0xaae9af);if(_0x522216&&_0x522216['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5218a9['type']&&(_0x5ca4d3['isBlock'](_0xaae9af)&&!_0x5ca4d3['isLimit'](_0xaae9af)&&(_0xaae9af['nextSibling']||_0x46020b['isAtEnd']?_0x3bbab1&&_0x3bbab1['parent']==_0xaae9af||(_0x3bbab1=_0xaae9af,_0x11872b(_0x5218a9['previousPosition']),_0x2ac41a=!0x0):_0x22bac6=_0x22bac6||_0x5218a9['previousPosition']));}function _0x11872b(_0x296273){const {authorId:_0x155096}=_0x22b9d4['_splitMarkerName'](_0x4137ad['markerName']),_0x58e41e=_0x18d3c0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f324d,'data-author-id':_0x155096}),_0x38f528=_0x18d3c0['mapper']['toViewPosition'](_0x296273);_0x5a40d4&&_0x22b9d4['activeMarkers']['includes'](_0x4137ad['markerName'])&&_0x18d3c0['writer']['addClass']('ck-suggestion-marker--active',_0x58e41e),_0x18d3c0['writer']['insert'](_0x38f528,_0x58e41e),_0x18d3c0['mapper']['bindElementToMarker'](_0x58e41e,_0x4137ad['markerName']);}_0x674f5a||_0x2ac41a||!_0x22bac6||_0x11872b(_0x22bac6);};}class z extends _0x35639c{static get['requires'](){return[_0x371185];}['init'](){const _0x4fbcfc=this['editor'],_0x827e16=_0x4fbcfc['plugins']['get']('TrackChangesEditing');_0x827e16['enableCommand']('delete');const _0x5880c8=_0x4fbcfc['commands']['get']('deleteForward');_0x827e16['enableCommand']('deleteForward',(_0xfb6563,_0xdba6df={})=>{const _0x35f648=_0x4fbcfc['model']['createSelection'](_0x4fbcfc['model']['document']['selection']);_0x35f648['isCollapsed']&&_0x4fbcfc['model']['modifySelection'](_0x35f648,{'direction':'forward','unit':_0xdba6df['unit']});const _0x21bd5d=_0x35f648['getFirstRange'](),_0x4fcc5c=_0x36a1b3['fromRange'](_0x21bd5d);let _0x4756d6;_0xfb6563(_0xdba6df),_0x4756d6='$graveyard'==_0x4fcc5c['root']['rootName']?_0x4fbcfc['model']['createRange'](_0x21bd5d['start']):_0x4fbcfc['model']['createRange'](_0x4fcc5c['start'],_0x4fcc5c['end']),_0x4fcc5c['detach'](),_0x4fbcfc['model']['enqueueChange'](_0x5880c8['buffer']['batch'],_0x117e8a=>{_0x5880c8['buffer']['lock'](),_0x117e8a['setSelection'](_0x117e8a['createRange'](_0x4756d6['end'])),_0x5880c8['buffer']['unlock']();});}),_0x4fbcfc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4fbcfc,'merge'),{'priority':'high'}),_0x4fbcfc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1fe69a,_0x150958,_0x50a675)=>{_0x50a675['options']['showSuggestionHighlights']&&_e(_0x4fbcfc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1fe69a,_0x150958,_0x50a675);},{'priority':'high'}),_0x4fbcfc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x134634,_0x2cca78,_0x292809)=>{const _0x42606d=_0x292809['mapper']['markerNameToElements'](_0x2cca78['markerName']);if(_0x42606d){for(const _0x49baff of _0x42606d)_0x49baff['is']('uiElement')&&(_0x292809['mapper']['unbindElementFromMarkerName'](_0x49baff,_0x2cca78['markerName']),_0x292809['writer']['remove'](_0x49baff));}},{'priority':'high'});}}class K extends _0x35639c{['afterInit'](){const _0x50aa42=this['editor'];if(!_0x50aa42['plugins']['has']('ListEditing'))return;const _0x2ce1cc=_0x50aa42['locale'],_0x4f05cc=_0x50aa42['plugins']['get']('TrackChangesEditing'),_0x1810f5=_0x50aa42['plugins']['has']('TodoListEditing'),_0xfdb2cb=!!_0x50aa42['config']['get']('list.multiBlock');function _0x54504b(_0x187bd4){return{'type':'format','content':''+o(_0x2ce1cc,'*Set\x20format:*\x20%0',_0x187bd4)};}function _0x6eb6(_0x1c789e){return{'type':'format','content':''+o(_0x2ce1cc,'*Remove\x20format:*\x20%0',_0x1c789e)};}_0x4f05cc['enableDefaultAttributesIntegration']('numberedList'),_0x4f05cc['enableDefaultAttributesIntegration']('bulletedList'),_0x4f05cc['enableDefaultAttributesIntegration']('customNumberedList'),_0x4f05cc['enableDefaultAttributesIntegration']('customBulletedList'),_0x4f05cc['enableDefaultAttributesIntegration']('indentList'),_0x4f05cc['enableDefaultAttributesIntegration']('outdentList'),_0x4f05cc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4f05cc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4f05cc['registerBlockAttribute']('listItemId'),_0x4f05cc['registerBlockAttribute']('listType'),_0x4f05cc['registerBlockAttribute']('listIndent'),_0xfdb2cb&&(_0x4f05cc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4f05cc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1810f5&&(_0x4f05cc['enableDefaultAttributesIntegration']('todoList'),_0x4f05cc['enableDefaultAttributesIntegration']('checkTodoList'),_0x4f05cc['registerBlockAttribute']('todoListChecked'),_0x4f05cc['descriptionFactory']['registerDescriptionCallback'](_0x171473=>{const {data:_0x19285d}=_0x171473;if(_0x19285d&&'todoListChecked'==_0x19285d['key'])return{'type':'format','content':_0x19285d['newValue']?o(_0x2ce1cc,'*Check\x20item*'):o(_0x2ce1cc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c88be=>{if(_0x3c88be['batch']['isUndo'])return!0x1;let _0x24f3d5=!0x1;const _0x40289a=_0x4f05cc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23ec6d=>'todoListChecked'===_0x4f05cc['_getAttributeKey'](_0x23ec6d));for(const _0x580ef2 of _0x40289a){'todo'!=_0x580ef2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4f05cc['_findSuggestions'](_0x580ef2['getFirstRange'](),'attribute')['find'](_0x170d31=>'listType'===_0x4f05cc['_getAttributeKey'](_0x170d31['suggestion']))||(_0x3c88be['removeMarker'](_0x580ef2['getFirstMarker']()),_0x24f3d5=!0x0));}return _0x24f3d5;})),_0x4f05cc['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2ce1cc,'FORMAT_INDENT'));const _0x41cfad={'type':'format','content':''};_0x4f05cc['descriptionFactory']['registerDescriptionCallback'](_0x469248=>{const {data:_0x327248}=_0x469248;if(!_0x327248||'listType'!=_0x327248['key'])return;let _0x199902=_0x469248['head'];for(;_0x199902;){if(_0x199902['data']&&(('listStyle'==_0x199902['data']['key']||'listMarkerStyle'==_0x199902['data']['key'])&&(_0x199902['data']['newValue']&&'default'!=_0x199902['data']['newValue']||'default'!=_0x199902['data']['oldValue']&&!_0x327248['newValue'])||!_0xfdb2cb&&_0x199902['data']['key']==m))return _0x41cfad;_0x199902=_0x199902['next'];}if(null==_0x327248['newValue'])switch(_0x327248['oldValue']){case'bulleted':return _0x6eb6(o(_0x2ce1cc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x6eb6(o(_0x2ce1cc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x6eb6(o(_0x2ce1cc,'ELEMENT_TODO_LIST'));}switch(_0x327248['newValue']){case'bulleted':return _0x54504b(o(_0x2ce1cc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54504b(o(_0x2ce1cc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54504b(o(_0x2ce1cc,'ELEMENT_TODO_LIST'));}}),_0x4f05cc['descriptionFactory']['registerDescriptionCallback'](_0x4d7599=>{const {data:_0x103ce8}=_0x4d7599;if(_0x103ce8&&'listIndent'==_0x103ce8['key'])return null==_0x103ce8['newValue']||null==_0x103ce8['oldValue']&&0x0==_0x103ce8['newValue']?_0x41cfad:void 0x0;}),_0x4f05cc['descriptionFactory']['registerDescriptionCallback'](_0x338d61=>{if('attribute'!=_0x338d61['type'])return;const {data:_0x4bb6cc}=_0x338d61;if(!_0x4bb6cc||'listItemId'!=_0x4bb6cc['key'])return;const _0x5a45af=Ee(_0x338d61);return'newValue'==_0x5a45af?{'type':'format','content':o(_0x2ce1cc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5a45af?{'type':'format','content':o(_0x2ce1cc,'*Split:*\x20list\x20item')}:_0x41cfad;}),_0x50aa42['model']['document']['registerPostFixer'](_0x337499=>this['listItemIdFixer'](_0x337499)),_0x50aa42['model']['document']['registerPostFixer'](_0x5db499=>this['noTrackChangesFixer'](_0x5db499)),_0x50aa42['model']['document']['on']('change:data',(_0x3529da,_0xa99240)=>{if(_0xa99240['isUndo']||!_0xa99240['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x24c524){if(_0x24c524['batch']['isUndo']||!_0x24c524['batch']['isLocal'])return!0x1;let _0x1f237f=!0x1;const _0x335470=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36bdca=>_0x36bdca['data']&&'listItemId'==_0x36bdca['data']['key'])['filter'](_0x596386=>_0x596386['data']['newValue']&&_0x596386['data']['oldValue']);for(const _0x2f3d5c of _0x335470)Ee(_0x2f3d5c)||(_0x24c524['removeMarker'](_0x2f3d5c['getFirstMarker']()),_0x1f237f=!0x0);return _0x1f237f;}['noTrackChangesFixer'](_0x59e102){if(_0x59e102['batch']['isUndo']||!_0x59e102['batch']['isLocal'])return!0x1;const _0x8e19e4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8e19e4['trackChangesCommand']['value'])return!0x1;let _0x23b175=!0x1;const _0x3c267e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x59fd3e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3abbe1=>'attribute'==_0x3abbe1['type'])['filter'](_0x1c129a=>_0x3c267e['includes'](_0x1c129a['attributeKey']));if(0x0==_0x59fd3e['length'])return _0x23b175;for(const _0x462cfb of _0x59fd3e){const _0x16b613=_0x8e19e4['_findSuggestions'](_0x462cfb['range'],'attribute')['filter'](_0x40daf2=>!_0x40daf2['meta']['isNextTo'])['map'](_0x1f2ec5=>_0x1f2ec5['suggestion'])['filter'](_0x515ac4=>{const _0x10ed38=_0x8e19e4['_getAttributeKey'](_0x515ac4);return _0x3c267e['includes'](_0x10ed38);});if(_0x16b613['length']){for(const _0x26834f of _0x16b613)_0x59e102['removeMarker'](_0x26834f['getFirstMarker']());_0x23b175=!0x0;}}return _0x23b175;}['assureChains'](){const _0x27f7c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x225fe5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2c7372;const _0x4a094b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4652c9=>{if(_0x4652c9['data']['oldRange']||!_0x4652c9['data']['newRange'])return null;if(!_0x4652c9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5af88c}=_0x27f7c3['_splitMarkerName'](_0x4652c9['name']);if(!_0x27f7c3['hasSuggestion'](_0x5af88c))return null;const _0x1b36eb=_0x27f7c3['getSuggestion'](_0x5af88c);return _0x225fe5['includes'](_0x1b36eb['data']['key']);})['map'](_0x5a96f4=>{const {id:_0x4d4b48}=_0x27f7c3['_splitMarkerName'](_0x5a96f4['name']),_0x59715c=_0x27f7c3['getSuggestion'](_0x4d4b48);return _0x2c7372=_0x59715c['attributes']['groupId'],_0x59715c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4a094b['size'])return;const _0x40caa1=_0x27f7c3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34d71f=>'attribute'==_0x34d71f['type']&&_0x34d71f['data']&&_0x225fe5['includes'](_0x34d71f['data']['key'])&&_0x34d71f['attributes']['groupId']!=_0x2c7372)['map'](_0x19cad5=>({'listItem':_0x19cad5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x19cad5['attributes']['groupId']})),_0x56634a=new Set();for(const {groupId:_0x3b5d60,listItem:_0x194908}of _0x40caa1)_0x4a094b['has'](_0x194908)&&_0x56634a['add'](_0x3b5d60);for(const _0xb5053 of _0x27f7c3['getSuggestions']())_0x56634a['has'](_0xb5053['attributes']['groupId'])&&_0xb5053['setAttribute']('groupId',_0x2c7372);}['_supportLegacySuggestions'](){const _0x28efeb=this['editor'],_0x1f5e42=_0x28efeb['locale'],_0x5ba219=_0x28efeb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5ba219['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5877d8,_0x4fcc30){const _0x4d7f3f=[];for(let _0x3ba17f of _0x5877d8)_0x3ba17f['start']['nodeAfter']===_0x3ba17f['end']['parent']&&(_0x3ba17f=_0x28efeb['model']['createRange'](_0x28efeb['model']['createPositionAt'](_0x3ba17f['start']['nodeAfter'],0x0))),_0x4d7f3f['push'](_0x3ba17f);_0x28efeb['model']['change'](_0x5af1ca=>{const _0x481e00=_0x28efeb['model']['document']['selection'],_0x3d6930=Array['from'](_0x481e00['getRanges']())['map'](_0xaa8fa7=>_0x36a1b3['fromRange'](_0xaa8fa7));_0x5af1ca['setSelection'](_0x4d7f3f),_0x28efeb['commands']['get'](_0x4fcc30['commandName'])['refresh'](),_0x4fcc30['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x28efeb['execute'](_0x4fcc30['commandName'],..._0x4fcc30['commandParams']),_0x5af1ca['setSelection'](_0x3d6930);for(const _0x346ba3 of _0x3d6930)_0x346ba3['detach']();});}),_0x5ba219['descriptionFactory']['registerElementLabel'](function(_0x1e3917){const _0x52f81a=!_0x28efeb['model']['schema']['isObject'](_0x1e3917),_0x1ceb06=_0x1e3917['previousSibling'],_0x4cde24=_0x1e3917['nextSibling'],_0x1411ff=_0x1e3917['getAttribute']('listItemId'),_0x20720f=!_0x1ceb06||_0x1ceb06['getAttribute']('listItemId')!==_0x1411ff,_0x588ab7=!_0x4cde24||_0x4cde24['getAttribute']('listItemId')!==_0x1411ff;return _0x52f81a&&Boolean(_0x1411ff)&&_0x20720f&&_0x588ab7;},_0x8cde44=>o(_0x1f5e42,'ELEMENT_LIST_ITEM',_0x8cde44));}['_registerLegacyDescription'](){const _0x522b43=this['editor'],_0x59cc89=_0x522b43['locale'];function _0x5392ff(_0x79dca2){const _0x253690=_0x522b43['commands']['get']('bulletedList')['value'],_0x36f361=_0x522b43['commands']['get']('numberedList')['value'];return'numberedList'===_0x79dca2?_0x253690:_0x36f361;}_0x522b43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x45889a){if('formatBlock'!=_0x45889a['type'])return;const {data:_0x7b23f6}=_0x45889a;if(!_0x7b23f6)return;let _0x4aca8b,_0x42bb10,_0x4b3bb5,_0x4c4f5f;switch(_0x7b23f6['commandName']){case'bulletedList':_0x4b3bb5=_0x7b23f6['commandParams'][0x0]['forceValue'],_0x4c4f5f=_0x5392ff(_0x7b23f6['commandName']),_0x4aca8b=_0x4b3bb5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4c4f5f&&_0x522b43['config']['get']('list.multiBlock')||(_0x4aca8b='*Change\x20to:*\x20%0'),_0x42bb10={'type':'format','content':o(_0x59cc89,_0x4aca8b,o(_0x59cc89,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4b3bb5=_0x7b23f6['commandParams'][0x0]['forceValue'],_0x4c4f5f=_0x5392ff(_0x7b23f6['commandName']),_0x4aca8b=_0x4b3bb5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4c4f5f&&_0x522b43['config']['get']('list.multiBlock')||(_0x4aca8b='*Change\x20to:*\x20%0'),_0x42bb10={'type':'format','content':o(_0x59cc89,_0x4aca8b,o(_0x59cc89,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4aca8b='*Indent:*\x20%0',_0x42bb10={'type':'format','content':o(_0x59cc89,_0x4aca8b,o(_0x59cc89,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4aca8b=function(_0x391ff6){const _0x1681ae=_0x391ff6['getFirstRange']();let _0x28d759=_0x1681ae['start']['nodeAfter'];for(;_0x28d759&&_0x1681ae['containsItem'](_0x28d759);){if(_0x28d759['getAttribute']('listIndent')>0x0)return!0x1;_0x28d759=_0x28d759['nextSibling'];}return!0x0;}(_0x45889a)?o(_0x59cc89,'*Format:*\x20remove\x20from\x20%0',o(_0x59cc89,function(_0x3d853d){return'ELEMENT_'+_0x3d853d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x45889a))):o(_0x59cc89,'*Outdent:*\x20%0',o(_0x59cc89,'ELEMENT_LIST_ITEM')),_0x42bb10={'type':'format','content':_0x4aca8b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7b23f6['multipleBlocks']&&(_0x4aca8b='*Merge:*\x20%0',_0x42bb10={'type':'deletion','content':o(_0x59cc89,_0x4aca8b,o(_0x59cc89,'ELEMENT_LIST_ITEM'))});}return _0x42bb10;});}}function Ee(_0x26b4d4){let _0x182bd6=_0x26b4d4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x182bd6;){const _0x41a27f=_0x182bd6['getAttribute']('listItemId');if(!_0x41a27f)return!0x1;if(_0x41a27f==_0x26b4d4['data']['newValue'])return'newValue';if(_0x41a27f==_0x26b4d4['data']['oldValue'])return'oldValue';_0x182bd6=_0x182bd6['previousSibling'];}return!0x1;}class pe extends _0x35639c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4085f4=this['editor']['config']['get']('list.properties'),_0x2c5d1d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4085f4['styles']&&(_0x2c5d1d['enableDefaultAttributesIntegration']('listStyle'),_0x2c5d1d['registerBlockAttribute']('listStyle')),_0x4085f4['reversed']&&(_0x2c5d1d['enableDefaultAttributesIntegration']('listReversed'),_0x2c5d1d['registerBlockAttribute']('listReversed')),_0x4085f4['startIndex']&&(_0x2c5d1d['enableDefaultAttributesIntegration']('listStart'),_0x2c5d1d['registerBlockAttribute']('listStart'));const _0x22c644={'type':'format','content':''};_0x2c5d1d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x189c6b=this['editor']['locale'];_0x2c5d1d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x189c6b,'FORMAT_LIST_REVERSED')),_0x2c5d1d['descriptionFactory']['registerDescriptionCallback'](_0x2178b7=>{const {data:_0x4c9903}=_0x2178b7;if(_0x4c9903&&'listReversed'==_0x4c9903['key'])return null==_0x4c9903['newValue']||0x0==_0x4c9903['newValue']&&null==_0x4c9903['oldValue']?_0x22c644:void 0x0;}),_0x2c5d1d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x189c6b,'FORMAT_LIST_START')),_0x2c5d1d['descriptionFactory']['registerDescriptionCallback'](_0x37e482=>{const {data:_0x8c9575}=_0x37e482;if(_0x8c9575&&'listStart'==_0x8c9575['key'])return null==_0x8c9575['newValue']||0x1==_0x8c9575['newValue']&&null==_0x8c9575['oldValue']?_0x22c644:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4c313f=>{if(_0x4c313f['batch']['isUndo'])return!0x1;let _0x42c896=!0x1;const _0x2b197b=_0x2c5d1d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19cd40=>{const _0x1ad19a=_0x2c5d1d['_getAttributeKey'](_0x19cd40);return'listStart'==_0x1ad19a||'listReversed'==_0x1ad19a;});for(const _0x3e1b73 of _0x2b197b){const _0x4b7544=_0x3e1b73['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4b7544||'customNumbered'==_0x4b7544)continue;_0x2c5d1d['_findSuggestions'](_0x3e1b73['getFirstRange'](),'attribute')['find'](_0x312d2c=>'listType'==_0x2c5d1d['_getAttributeKey'](_0x312d2c['suggestion']))||(_0x4c313f['removeMarker'](_0x3e1b73['getFirstMarker']()),_0x42c896=!0x0);}return _0x42c896;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1bf9dd){const _0x11c02e=this['editor']['locale'],{data:_0x2f3083}=_0x1bf9dd,_0x239650={'type':'format','content':''};if(!_0x2f3083||'listStyle'!=_0x2f3083['key'])return;if(!_0x2f3083['oldValue'])return'default'==_0x2f3083['newValue']?_0x239650:{'type':'format','content':''+o(_0x11c02e,'*Set\x20format:*\x20%0',o(_0x11c02e,this['_getTranslationKeyForListStyle'](_0x2f3083['newValue'])))};if(!_0x2f3083['newValue']){if('default'==_0x2f3083['oldValue'])return _0x239650;let _0x77f13a=_0x1bf9dd['head'];for(;_0x77f13a;){if(_0x77f13a['data']&&'listType'==_0x77f13a['data']['key']&&_0x77f13a['data']['newValue'])return _0x239650;_0x77f13a=_0x77f13a['next'];}return{'type':'format','content':''+o(_0x11c02e,'*Remove\x20format:*\x20%0',o(_0x11c02e,this['_getTranslationKeyForListStyle'](_0x2f3083['oldValue'])))};}if('default'!=_0x2f3083['newValue'])return{'type':'format','content':''+o(_0x11c02e,'*Set\x20format:*\x20%0',o(_0x11c02e,this['_getTranslationKeyForListStyle'](_0x2f3083['newValue'])))};let _0x5edddd=_0x1bf9dd['head'];for(;_0x5edddd;){if(_0x5edddd['data']&&'listType'==_0x5edddd['data']['key']&&_0x5edddd['data']['newValue']&&_0x5edddd['data']['oldValue'])return _0x239650;_0x5edddd=_0x5edddd['next'];}return{'type':'format','content':o(_0x11c02e,'*Set\x20format:*\x20%0',o(_0x11c02e,'ELEMENT_'+_0x1bf9dd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3a0c92=this['editor'],_0x416a08=_0x3a0c92['locale'];_0x3a0c92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55e240=>{if('formatBlock'!=_0x55e240['type'])return;const {data:_0x41f79f}=_0x55e240;if(!_0x41f79f)return;let _0x1cd978,_0x359d2a;switch(_0x41f79f['commandName']){case'listStyle':_0x1cd978='*Change\x20to:*\x20%0',_0x359d2a={'type':'format','content':o(_0x416a08,_0x1cd978,o(_0x416a08,this['_getTranslationKeyForListStyle'](_0x41f79f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1cd978=_0x41f79f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x359d2a={'type':'format','content':o(_0x416a08,_0x1cd978)};break;case'listStart':_0x1cd978='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x359d2a={'type':'format','content':o(_0x416a08,_0x1cd978,_0x41f79f['commandParams'][0x0]['startIndex'])};}return _0x359d2a;});}['_getTranslationKeyForListStyle'](_0x24f4c8){return'ELEMENT_'+function(_0x3eb044){if(ye['includes'](_0x3eb044))return'bulleted';if(Se['includes'](_0x3eb044))return'numbered';return null;}(_0x24f4c8)['toUpperCase']()+'_LIST_'+_0x24f4c8['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x35639c{static get['requires'](){return[_0x33c66c];}['init'](){const _0x320aab=this['editor'],_0x24866b=_0x320aab['plugins']['get']('TrackChangesEditing'),_0x733095=_0x320aab['commands']['get']('enter');_0x24866b['enableCommand']('enter',()=>{_0x320aab['model']['change'](_0x4a38dd=>{const _0x1ea483=_0x320aab['model']['document']['selection'],_0x510801=_0x1ea483['getFirstPosition'](),_0x34b0fd=_0x36a1b3['fromRange'](_0x1ea483['getFirstRange']());if(_0x733095['enterBlock'](_0x4a38dd)){const _0x1d5687=_0x320aab['model']['createPositionAt'](_0x510801['parent']['nextSibling'],0x0),_0x163f38=_0x4a38dd['createRange'](_0x510801,_0x1d5687);_0x24866b['markInsertion'](_0x163f38);}else _0x4a38dd['setSelection'](_0x4a38dd['createRange'](_0x34b0fd['end']));_0x34b0fd['detach'](),_0x733095['fire']('afterExecute',{'writer':_0x4a38dd});});}),_0x320aab['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x320aab,'split'),{'priority':'high'}),_0x320aab['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2a4358,_0xd190e2,_0x516553)=>{const _0x2dcebb=_0x516553['mapper']['markerNameToElements'](_0xd190e2['markerName']);if(_0x2dcebb){for(const _0x42c1d5 of _0x2dcebb)_0x42c1d5['hasClass']('ck-suggestion-marker-split')&&(_0x516553['mapper']['unbindElementFromMarkerName'](_0x42c1d5,_0xd190e2['markerName']),_0x516553['writer']['remove'](_0x42c1d5));}},{'priority':'high'}),_0x320aab['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3490c2,_0x4fae50,_0x54f4fe)=>{_0x54f4fe['options']['showSuggestionHighlights']&&_e(_0x320aab,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3490c2,_0x4fae50,_0x54f4fe);},{'priority':'high'});}}class X extends _0x35639c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x383751=this['editor']['plugins']['get']('TrackChangesEditing');_0x383751['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x383751['enableCommand']('findNext'),_0x383751['enableCommand']('findPrevious'),_0x383751['enableCommand']('replace'),_0x383751['enableCommand']('replaceAll');}['handleFindCommand'](_0x1b82c7,_0x3d9501,_0x4d8165={}){const _0x51e421=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1b82c7(_0x1a6de6=>{let _0x171a8e=('string'==typeof _0x3d9501?_0x51e421['findByTextCallback'](_0x3d9501,_0x4d8165):_0x3d9501)(_0x1a6de6);Array['isArray'](_0x171a8e)&&(_0x171a8e={'results':_0x171a8e,'searchText':'string'==typeof _0x3d9501?_0x3d9501:''});const _0x2e575f=_0x171a8e['results']['filter'](_0x394b34=>!0x1===this['_isInDeletionRange'](_0x394b34,_0x1a6de6['item']));return{..._0x171a8e,'results':_0x2e575f};},_0x4d8165);}['_isInDeletionRange'](_0x585095,_0xb2b1cc){const _0x3e44fc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb2b1cc,_0x585095['start']),this['editor']['model']['createPositionAt'](_0xb2b1cc,_0x585095['end']));for(const _0x10699a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3e44fc['getIntersection'](_0x10699a['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 _0x35639c{['afterInit'](){const _0x5925a9=this['editor']['locale'],_0x2a879c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x6cf750,commandName:_0x288a7c}of ro)this['editor']['plugins']['has'](_0x6cf750)&&(_0x2a879c['enableDefaultAttributesIntegration'](_0x288a7c),_0x2a879c['registerInlineAttribute'](_0x288a7c));_0x2a879c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5925a9,'FORMAT_FONT_SIZE')),_0x2a879c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5925a9,'FORMAT_FONT_FAMILY')),_0x2a879c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5925a9,'FORMAT_FONT_COLOR')),_0x2a879c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5925a9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35cfbd=this['editor'],_0x59232d=_0x35cfbd['locale'];_0x35cfbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x268053=>{const _0x3d151b=_0x59232d['t'];if('formatInline'!=_0x268053['type'])return;const {data:_0x5e8d58}=_0x268053;if(null!=_0x5e8d58){if('fontSize'==_0x5e8d58['commandName']){const _0x209065=_0x5e8d58['commandParams'][0x0]['value'];if(_0x209065){const _0x16c223=_0x3d151b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3dd751=>_0x3dd751['model']==_0x209065)['title'])['toLowerCase']();return{'type':'format','content':o(_0x59232d,'*Set\x20font\x20size:*\x20%0',_0x16c223)};}return{'type':'format','content':o(_0x59232d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5e8d58['commandName']){const _0x253e70=_0x5e8d58['commandParams'][0x0]['value'];return _0x253e70?{'type':'format','content':o(_0x59232d,'*Set\x20font\x20family:*\x20%0',_0x253e70)}:{'type':'format','content':o(_0x59232d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5e8d58['commandName']){const _0x3c2a75=_0x5e8d58['commandParams'][0x0]['value'];if(_0x3c2a75){const _0x907bcb=_0x41105b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x35e0f0=>_0x35e0f0['model']==_0x3c2a75);let _0x52b6fc=_0x3c2a75,_0xedf46e='';return _0x907bcb&&(_0x52b6fc=_0x907bcb['label'],_0xedf46e=_0x3d151b(_0x52b6fc)['toLowerCase']()),{'type':'format','content':o(_0x59232d,'*Set\x20font\x20color:*\x20%0',_0xedf46e)['trim'](),'color':{'value':_0x3c2a75,'title':_0xedf46e||_0x52b6fc}};}return{'type':'format','content':o(_0x59232d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5e8d58['commandName']){const _0x7d46b4=_0x5e8d58['commandParams'][0x0]['value'];if(_0x7d46b4){const _0x10c1e8=_0x41105b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xd86cc1=>_0xd86cc1['model']==_0x7d46b4);let _0x48096c=_0x7d46b4,_0x334e36='';return _0x10c1e8&&(_0x48096c=_0x10c1e8['label'],_0x334e36=_0x3d151b(_0x48096c)['toLowerCase']()),{'type':'format','content':o(_0x59232d,'*Set\x20font\x20background\x20color:*\x20%0',_0x334e36)['trim'](),'color':{'value':_0x7d46b4,'title':_0x334e36||_0x48096c}};}return{'type':'format','content':o(_0x59232d,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x35639c{['afterInit'](){const _0x46fe07=this['editor'],_0xda934b=_0x46fe07['plugins']['get']('TrackChangesEditing'),_0x3db6cb=_0x46fe07['commands']['get']('copyFormat'),_0x614380=_0x46fe07['commands']['get']('pasteFormat');_0x3db6cb&&_0x614380&&(_0xda934b['enableDefaultAttributesIntegration']('pasteFormat'),_0xda934b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5111b8=this['editor'],_0x3f369e=_0x5111b8['locale'];_0x5111b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x838ae3=>{if('formatBlock'!=_0x838ae3['type']&&'formatInline'!=_0x838ae3['type'])return;const {data:_0x3ac572}=_0x838ae3;if(_0x3ac572&&'pasteFormat'===_0x3ac572['commandName']){const _0x3c304b=[],_0x57e713=_0x3ac572['commandParams'][0x0];for(const [_0x24e34b,_0x1cf9b6]of Object['entries'](_0x57e713))_0x3c304b['push'](so(_0x5111b8,_0x24e34b,_0x1cf9b6));return _0x3c304b['length']?{'type':'format','content':o(_0x3f369e,'*Set\x20format\x20to:*\x20%0',_0x3c304b['join'](',\x20'))}:{'type':'format','content':o(_0x3f369e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x29c567,_0x3f4b5c,_0x2f88cf){const _0x5b03ae=_0x29c567['locale']['t'],_0x4d9c08=_0x3f4b5c['split'](/(?=[A-Z])/)['join']('\x20'),_0x57670e=_0x5b03ae(_0x4d9c08['charAt'](0x0)['toUpperCase']()+_0x4d9c08['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2f88cf)return _0x57670e;if('fontColor'===_0x3f4b5c||'fontBackgroundColor'===_0x3f4b5c){const _0x19deca=_0x41105b(_0x29c567['config']['get']('fontColor.colors'))['find'](_0x4a709a=>_0x4a709a['model']==_0x2f88cf);return _0x57670e+'\x20('+(_0x19deca?_0x5b03ae(_0x19deca['label'])['toLowerCase']():_0x2f88cf)+')';}if('fontSize'===_0x3f4b5c&&isNaN(parseFloat(_0x2f88cf))){const _0x296d85=_0x29c567['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x29c567['config']['get']('fontSize.options'))['find'](_0x9389b3=>_0x9389b3['model']==_0x2f88cf);return _0x57670e+'\x20('+(_0x296d85?_0x5b03ae(_0x296d85['title'])['toLowerCase']():_0x2f88cf)+')';}return _0x57670e+'\x20('+_0x2f88cf+')';}class tt extends _0x35639c{['_headingOptions'];['afterInit'](){const _0x1521ef=this['editor'];if(!_0x1521ef['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1521ef['config']['get']('heading.options');const _0xa9dbb9=_0x1521ef['locale'],_0x4ec67a=_0x1521ef['plugins']['get']('TrackChangesEditing');_0x4ec67a['enableDefaultAttributesIntegration']('heading');for(const _0x296476 of this['_headingOptions'])'paragraph'!=_0x296476['model']&&_0x4ec67a['descriptionFactory']['registerElementLabel'](_0x296476['model'],_0x5a5f1d=>{const _0x44cbd1=this['_getHeadingLevel'](_0x296476['model']);return null!==_0x44cbd1?_0x19db26(_0x5a5f1d,_0x44cbd1):_0x2989fb(_0x5a5f1d,_0x296476['title']);});function _0x19db26(_0x51aceb,_0x29fcf8){return o(_0xa9dbb9,'ELEMENT_HEADING',[_0x51aceb,_0x29fcf8]);}function _0x2989fb(_0x47d5fd,_0x2272fd){return o(_0xa9dbb9,'ELEMENT_HEADING_CUSTOM',[_0x47d5fd,_0x2272fd]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x65e7fb=this['editor'],_0x1b370b=_0x65e7fb['locale'];function _0x5602eb(_0x1acca0,_0x4cf310){return o(_0x1b370b,'ELEMENT_HEADING_CUSTOM',[_0x1acca0,_0x4cf310]);}_0x65e7fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9d72ba=>{if('formatBlock'!=_0x9d72ba['type'])return;const {data:_0x478b6f}=_0x9d72ba;if(_0x478b6f&&'heading'==_0x478b6f['commandName']){const _0x332b9e=_0x478b6f['commandParams'][0x0]['value'],_0x3f8aad=this['_getHeadingLevel'](_0x332b9e);if(null!==_0x3f8aad)return{'type':'format','content':o(_0x1b370b,'*Change\x20to:*\x20%0',(_0xfe0d1c=0x1,_0x31a083=_0x3f8aad,o(_0x1b370b,'ELEMENT_HEADING',[_0xfe0d1c,_0x31a083])))};const _0x40a1fd=this['_headingOptions']['find'](_0x413745=>_0x413745['model']===_0x332b9e)['title'];return{'type':'format','content':o(_0x1b370b,'*Change\x20to:*\x20%0',_0x5602eb(0x1,_0x40a1fd))};}var _0xfe0d1c,_0x31a083;});}['_getHeadingLevel'](_0x199d18){const _0x2402b4=_0x199d18['match'](/^heading(\d+)/);if(_0x2402b4)return _0x2402b4[0x1];const _0x29820b=this['_headingOptions']?.['find'](_0x51b198=>_0x51b198['model']==_0x199d18);if(_0x29820b&&_0x29820b['view']){const _0x4ecd48=_0x29820b['view'],_0x1e1705=(_0x4ecd48['name']??_0x4ecd48)['match'](/^h(\d+)/);if(_0x1e1705)return _0x1e1705[0x1];}return null;}}class et extends _0x35639c{['afterInit'](){const _0x5594b7=this['editor'];if(!_0x5594b7['plugins']['has']('HighlightEditing'))return;const _0x12dfa7=_0x5594b7['plugins']['get']('TrackChangesEditing'),_0x542977=_0x5594b7['locale'];_0x12dfa7['enableDefaultAttributesIntegration']('highlight'),_0x12dfa7['registerInlineAttribute']('highlight'),_0x12dfa7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x542977,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18bb79=this['editor'],_0x3ae7eb=_0x18bb79['locale'];_0x18bb79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b671=>{if('formatInline'!=_0x42b671['type'])return;const {data:_0x22256d}=_0x42b671;if(_0x22256d&&'highlight'==_0x22256d['commandName']){const _0x35c78c=_0x3ae7eb['t'],_0x18865e=_0x22256d['commandParams'][0x0]['value'];if(_0x18865e){const _0x27915b=_0x18bb79['config']['get']('highlight.options')['find'](_0x4efed8=>_0x4efed8['model']==_0x18865e),_0x46bc2e=_0x35c78c(_0x27915b['title'])['toLowerCase']();return{'type':'format','content':o(_0x3ae7eb,'*Set\x20highlight:*\x20%0',_0x46bc2e),'color':{'value':_0x27915b['color'],'title':_0x27915b['title']}};}return{'type':'format','content':o(_0x3ae7eb,'*Remove\x20highlight*',o(_0x3ae7eb,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x35639c{['afterInit'](){const _0x3e7bac=this['editor'];if(!_0x3e7bac['plugins']['has']('HorizontalLineEditing'))return;_0x3e7bac['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x56672f=_0x3e7bac['plugins']['get']('TrackChangesEditing'),_0x37063b=_0x3e7bac['locale'];_0x56672f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31fe8f=>o(_0x37063b,'ELEMENT_HORIZONTAL_LINE',_0x31fe8f)),_0x3e7bac['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x224a9e,{writer:_0x5a8d10,options:_0x173bd9})=>{if(!_0x173bd9['showSuggestionHighlights'])return null;const _0x469d5e=_0x5a8d10['createContainerElement']('div'),_0x23efa5=_0x5a8d10['createEmptyElement']('hr');return _0x5a8d10['addClass']('ck-horizontal-line',_0x469d5e),_0x5a8d10['insert'](_0x5a8d10['createPositionAt'](_0x469d5e,0x0),_0x23efa5),_0x469d5e;},'converterPriority':'high'});}}class st extends _0x35639c{['afterInit'](){const _0x3f8829=this['editor'];if(!_0x3f8829['plugins']['has']('HtmlEmbed'))return;const _0x49ff66=_0x3f8829['plugins']['get']('TrackChangesEditing'),_0x59b7b5=_0x3f8829['locale'];_0x49ff66['descriptionFactory']['registerElementLabel']('rawHtml',_0x32accd=>o(_0x59b7b5,'ELEMENT_HTML_EMBED',_0x32accd)),_0x49ff66['enableDefaultAttributesIntegration']('htmlEmbed'),_0x49ff66['registerBlockAttribute']('value'),_0x49ff66['descriptionFactory']['registerDescriptionCallback'](_0x297b6d=>{if('attribute'!=_0x297b6d['type'])return;const {data:_0x144bfd}=_0x297b6d;if(_0x144bfd&&'value'==_0x144bfd['key']&&_0x297b6d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x122654=o(_0x59b7b5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x59b7b5,'*Change\x20%0\x20content*',_0x122654)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18bf58=this['editor'],_0x4b4020=_0x18bf58['locale'];_0x18bf58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3de02e=>{if('formatBlock'!=_0x3de02e['type'])return;const {data:_0xeac250}=_0x3de02e;if(_0xeac250&&'htmlEmbed'==_0xeac250['commandName']){const _0x4b1f64=o(_0x4b4020,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4b4020,'*Change\x20%0\x20content*',_0x4b1f64)};}});}}class nt extends _0x35639c{['afterInit'](){const _0x593e9a=this['editor'];if(!_0x593e9a['plugins']['has']('ImageEditing'))return;const _0x45208d=_0x593e9a['plugins']['get']('TrackChangesEditing'),_0x5998d1=_0x593e9a['plugins']['get']('ImageUtils'),_0x2ae4b4=_0x593e9a['locale'];_0x45208d['enableCommand']('insertImage'),_0x45208d['descriptionFactory']['registerElementLabel']('imageBlock',_0x36b62a=>o(_0x2ae4b4,'ELEMENT_IMAGE',_0x36b62a)),_0x45208d['descriptionFactory']['registerElementLabel']('imageInline',_0x1f69f7=>o(_0x2ae4b4,'ELEMENT_INLINE_IMAGE',_0x1f69f7)),_0x45208d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2ae4b4,'ELEMENT_CAPTION')),_0x593e9a['plugins']['has']('ImageUploadEditing')&&_0x45208d['enableCommand']('uploadImage'),_0x593e9a['plugins']['has']('ImageBlockEditing')&&_0x593e9a['plugins']['has']('ImageInlineEditing')&&(_0x45208d['enableCommand']('imageTypeInline',(_0x350366,_0x3fe1e7)=>{const _0x158c01=_0x5998d1['getClosestSelectedImageElement'](_0x593e9a['model']['document']['selection']);_0x593e9a['model']['change'](()=>{_0x45208d['markBlockFormat'](_0x158c01,{'commandName':'imageTypeInline','commandParams':[_0x3fe1e7]},[],'convertBlockImageToInline');});}),_0x45208d['enableCommand']('imageTypeBlock',(_0x2fc195,_0x2f9055)=>{_0x593e9a['model']['change'](_0x301960=>{let _0x1b0f9=_0x5998d1['getClosestSelectedImageElement'](_0x593e9a['model']['document']['selection']),_0x37e108=_0x301960['createRangeOn'](_0x1b0f9);const _0x476855=_0x36cce1['fromPosition'](_0x37e108['start'],'toPrevious'),_0x3bea83=_0x36cce1['fromPosition'](_0x37e108['end'],'toNext');_0x45208d['forceDefaultExecution'](()=>_0x2fc195(_0x2f9055)),_0x1b0f9=_0x5998d1['getClosestSelectedImageElement'](_0x593e9a['model']['document']['selection']),_0x37e108=_0x301960['createRangeOn'](_0x1b0f9);const _0x4d45ee=_0x301960['createRange'](_0x476855,_0x3bea83);_0x476855['detach'](),_0x3bea83['detach'](),_0x45208d['markBlockFormat'](_0x1b0f9,{'commandName':'imageTypeInline','commandParams':[_0x2f9055]},[],'convertInlineImageToBlock'),_0x4d45ee['start']['isBefore'](_0x37e108['start'])&&_0x45208d['markInsertion'](_0x301960['createRange'](_0x4d45ee['start'],_0x37e108['start']),'convertInlineImageToBlock'),_0x37e108['end']['isBefore'](_0x4d45ee['end'])&&_0x45208d['markInsertion'](_0x301960['createRange'](_0x37e108['end'],_0x4d45ee['end']),'convertInlineImageToBlock');});}),_0x45208d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x45208d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x45208d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x45208d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x45208d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x45208d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x172d56])=>{const _0x3ba032=_0x45208d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4504ae=_0x172d56['start'],_0xeedaf=_0x172d56['end'];const _0x1af1f6=_0x593e9a['model']['schema']['getNearestSelectionRange'](_0x4504ae,'backward'),_0x3efa71=_0x593e9a['model']['schema']['getNearestSelectionRange'](_0xeedaf,'forward');_0x1af1f6['isCollapsed']&&(_0x4504ae=_0x1af1f6['start']),_0x3efa71['isCollapsed']&&(_0xeedaf=_0x3efa71['end']),_0x3ba032([_0x593e9a['model']['createRange'](_0x4504ae,_0xeedaf)]);}),_0x45208d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x29e9ba),_0x45208d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x29e9ba)),_0x593e9a['plugins']['has']('ImageCaptionEditing')&&(_0x45208d['enableCommand']('toggleImageCaption',(_0x736b3a,_0x471cbc)=>{const _0x27d1fb=_0x593e9a['plugins']['get']('ImageCaptionUtils');let _0x3ccedd=_0x5998d1['getClosestSelectedImageElement'](_0x593e9a['model']['document']['selection']),_0x211cf0=_0x27d1fb['getCaptionFromImageModelElement'](_0x3ccedd);_0x593e9a['model']['change'](()=>{if(_0x211cf0)return void _0x45208d['markDeletion'](_0x593e9a['model']['createRangeOn'](_0x211cf0));const _0x4124b1=_0x5998d1['isBlockImage'](_0x3ccedd);_0x736b3a(_0x471cbc),_0x3ccedd=_0x5998d1['getClosestSelectedImageElement'](_0x593e9a['model']['document']['selection']),_0x211cf0=_0x27d1fb['getCaptionFromImageModelElement'](_0x3ccedd),_0x45208d['markInsertion'](_0x593e9a['model']['createRangeOn'](_0x211cf0),_0x4124b1?null:'imageCaption');});}),_0x45208d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x29e9ba));const _0x48a7b5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x32bfbb(_0x2b4e8b,_0x569de9){const _0x5da8b7=_0x48a7b5['findIndex'](({type:_0x148a75,subType:_0x5d266c})=>_0x2b4e8b['type']==_0x148a75&&_0x2b4e8b['subType']==_0x5d266c),_0x55fdb4=_0x48a7b5['findIndex'](({type:_0x1a7562,subType:_0x5e2ea2})=>_0x569de9['type']==_0x1a7562&&_0x569de9['subType']==_0x5e2ea2);if(_0x5da8b7<0x0||_0x55fdb4<0x0)return!0x1;const _0x5e78cb=_0x2b4e8b['getFirstRange'](),_0x46a990=_0x569de9['getFirstRange']();if((0x0==_0x5da8b7||0x1==_0x5da8b7)&&0x2==_0x55fdb4&&_0x5e78cb['isIntersecting'](_0x46a990))return!0x0;if(0x2==_0x5da8b7&&0x3==_0x55fdb4){const _0x47202e=_0x45208d['_findSuggestions'](_0x5e78cb,'insertion')['filter'](({suggestion:_0x3cbf03,meta:_0x4fa84b})=>_0x4fa84b['isOwn']&&'convertInlineImageToBlock'==_0x3cbf03['subType']);if(_0x47202e['length']>0x1&&_0x46a990['end']['isEqual'](_0x5e78cb['start']))return!0x0;if(0x1==_0x47202e['length']&&(_0x5e78cb['start']['isEqual'](_0x46a990['end'])||_0x5e78cb['end']['isEqual'](_0x46a990['start'])))return!0x0;}if(0x3==_0x5da8b7&&0x3==_0x55fdb4&&_0x5e78cb['start']['isBefore'](_0x46a990['start'])){const _0x8a0cf3=_0x5e78cb['end']['nodeAfter'],_0x4ef4b3=_0x46a990['start']['nodeBefore'];return _0x5998d1['isBlockImage'](_0x8a0cf3)&&_0x8a0cf3===_0x4ef4b3;}return!0x1;}function _0x29e9ba(_0x517fd9,_0x38b8e6){return _0x32bfbb(_0x517fd9,_0x38b8e6)?[_0x517fd9,_0x38b8e6]:_0x32bfbb(_0x38b8e6,_0x517fd9)?[_0x38b8e6,_0x517fd9]:null;}_0x593e9a['plugins']['has']('ImageResize')&&(_0x45208d['enableDefaultAttributesIntegration']('resizeImage'),_0x45208d['registerBlockAttribute']('resizedWidth'),_0x45208d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2ae4b4,'FORMAT_IMAGE_SIZE'))),_0x593e9a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x45208d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x45208d['registerBlockAttribute']('alt')),_0x45208d['descriptionFactory']['registerDescriptionCallback'](_0x3715bd=>{if(!!_0x48a7b5['find'](({type:_0x1d9c68,subType:_0x493ee8})=>_0x3715bd['type']==_0x1d9c68&&_0x3715bd['subType']==_0x493ee8))return _0x3715bd['previous']?{}:void 0x0;}),_0x45208d['descriptionFactory']['registerDescriptionCallback'](_0x2dafdf=>{if('insertion'==_0x2dafdf['type']||'deletion'==_0x2dafdf['type']){const _0x304786=_0x2dafdf['getContainedElement']();if(_0x304786&&_0x304786['is']('element','caption'))return{'type':'insertion'==_0x2dafdf['type']?'addObject':'removeObject','element':_0x304786,'quantity':0x1};}}),_0x45208d['descriptionFactory']['registerDescriptionCallback'](_0x1898c1=>'formatBlock'==_0x1898c1['type']&&'convertInlineImageToBlock'==_0x1898c1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1898c1['type']&&'convertBlockImageToInline'==_0x1898c1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x45208d['descriptionFactory']['registerDescriptionCallback'](_0x2f90c5=>{if('attribute'!=_0x2f90c5['type'])return;const {data:_0x4ff16b}=_0x2f90c5;if(!_0x4ff16b||'alt'!=_0x4ff16b['key'])return;const _0x25f1ba=_0x4ff16b['newValue'];return _0x25f1ba?{'type':'format','content':o(_0x2ae4b4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x25f1ba+'\x22')}:{'type':'format','content':o(_0x2ae4b4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576c85=this['editor'],_0x460d99=_0x576c85['locale'];_0x576c85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x381f25=>{if('formatBlock'!=_0x381f25['type']&&'formatInline'!=_0x381f25['type'])return;const {data:_0x5445e4}=_0x381f25;if(_0x5445e4){if('imageTextAlternative'==_0x5445e4['commandName']){const _0x3199b7=_0x5445e4['commandParams'][0x0]['newValue'];return _0x3199b7?{'type':'format','content':o(_0x460d99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3199b7+'\x22')}:{'type':'format','content':o(_0x460d99,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5445e4['commandName']){const _0x1210ad=_0x5445e4['commandParams'][0x0]['width'];return _0x1210ad?{'type':'format','content':o(_0x460d99,'*Set\x20image\x20width:*\x20%0',_0x1210ad)}:{'type':'format','content':o(_0x460d99,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x35639c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x375ace=this['editor']['locale'],_0x56bc4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x56bc4d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x56bc4d['registerBlockAttribute']('src'),_0x56bc4d['descriptionFactory']['registerDescriptionCallback'](_0x10ab5c=>{if('attribute'!=_0x10ab5c['type'])return;const {data:_0x5628a4}=_0x10ab5c;return _0x5628a4&&'src'==_0x5628a4['key']?_0x5628a4['newValue']&&_0x5628a4['oldValue']?{'type':'format','content':o(_0x375ace,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x479a0e=this['editor']['plugins']['get']('TrackChangesEditing');_0x479a0e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x479a0e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x479a0e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x479a0e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa46f0=this['editor'],_0x66078a=_0xa46f0['locale'];_0xa46f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e9d36=>{if('formatBlock'!=_0x1e9d36['type']&&'formatInline'!=_0x1e9d36['type'])return;const {data:_0x384a2b}=_0x1e9d36;if(!_0x384a2b||'replaceImageSource'!=_0x384a2b['commandName'])return;return{'type':'format','content':o(_0x66078a,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x35639c{['afterInit'](){const _0x4d8303=this['editor'];if(!_0x4d8303['plugins']['has']('ImageStyleEditing'))return;const _0x4aca20=_0x4d8303['plugins']['get']('TrackChangesEditing'),_0x15e102=_0x4d8303['plugins']['get']('ImageUtils'),_0x4a3b60={};_0x4aca20['enableCommand']('imageStyle',(_0x58fed9,_0x336262)=>{const _0x50da04=_0x4d8303['plugins']['get']('Users')['me'],_0x3905bc=_0x4d8303['commands']['get']('imageStyle');let _0x448ede=_0x15e102['getClosestSelectedImageElement'](_0x4d8303['model']['document']['selection']),_0x52f75c=_0x4d8303['model']['createRangeOn'](_0x448ede),_0x114af1=_0x3905bc['value'];if(_0x114af1==_0x336262['value'])return;const _0x4abc7c={'commandName':'imageStyle','commandParams':[_0x336262],'formatGroupId':_0xd5eb17()};_0x4d8303['model']['change'](()=>{if(_0x4aca20['getSuggestions']()['filter'](_0x15fb4f=>_0x15fb4f['isInContent']&&_0x50da04==_0x15fb4f['author']&&('formatBlock'==_0x15fb4f['type']||'formatInline'==_0x15fb4f['type'])&&('imageStylePreApply'==_0x15fb4f['subType']||'imageStylePostApply'==_0x15fb4f['subType'])&&_0x15fb4f['getFirstRange']()['isEqual'](_0x52f75c))['forEach'](_0x5d2db6=>_0x4aca20['discardSuggestion'](_0x5d2db6['head'])),_0x448ede=_0x15e102['getClosestSelectedImageElement'](_0x4d8303['model']['document']['selection']),_0x52f75c=_0x4d8303['model']['createRangeOn'](_0x448ede),_0x3905bc['refresh'](),_0x4d8303['commands']['get']('imageTypeInline')['refresh'](),_0x4d8303['commands']['get']('imageTypeBlock')['refresh'](),_0x114af1=_0x3905bc['value'],_0x114af1!=_0x336262['value'])return _0x15e102['isInlineImage'](_0x448ede)&&_0x3905bc['shouldConvertImageType'](_0x336262['value'],_0x448ede)?(_0x58fed9({..._0x336262,'setImageSizes':!0x1}),_0x448ede=_0x15e102['getClosestSelectedImageElement'](_0x4d8303['model']['document']['selection']),void _0x4aca20['markBlockFormat'](_0x448ede,{..._0x4abc7c,'commandReversedParams':[{'value':_0x114af1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x15e102['isBlockImage'](_0x448ede)?_0x4aca20['markBlockFormat'](_0x448ede,_0x4abc7c,[],'imageStylePostApply'):_0x4aca20['markInlineFormat'](_0x52f75c,_0x4abc7c,'imageStylePostApply'));});});for(const _0x6fc827 of _0x4d8303['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4a3b60[_0x6fc827['name']]=_0x6fc827['title']['toLowerCase']();_0x4aca20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4aca20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4aca20['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4aca20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x464a80])=>{_0x15e102['setImageNaturalSizeAttributes'](_0x464a80['getContainedElement']());}),_0x4aca20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x597504,_0x2a61aa)=>{_0x4aca20['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x597504,{'commandName':_0x2a61aa['commandName'],'commandParams':_0x2a61aa['commandReversedParams']});}),_0x4aca20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x34fc53,_0x163ca4){if(_0x3fc7d8(_0x34fc53,_0x163ca4))return[_0x34fc53,_0x163ca4];if(_0x3fc7d8(_0x163ca4,_0x34fc53))return[_0x163ca4,_0x34fc53];return null;});const _0x1be895=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3fc7d8(_0x51e65c,_0x8204bd){const _0x40bb00=_0x1be895['findIndex'](({type:_0x39eb96,subType:_0x3c75db})=>_0x51e65c['type']==_0x39eb96&&_0x51e65c['subType']==_0x3c75db),_0x3133e7=_0x1be895['findIndex'](({type:_0x29274c,subType:_0x47c807})=>_0x8204bd['type']==_0x29274c&&_0x8204bd['subType']==_0x47c807);if(_0x40bb00<0x0||_0x3133e7<0x0)return!0x1;const _0x357530=_0x51e65c['getFirstRange'](),_0x50e723=_0x8204bd['getFirstRange']();if((0x0==_0x40bb00||0x1==_0x40bb00)&&0x2==_0x3133e7&&_0x357530['isIntersecting'](_0x50e723))return!0x0;if(0x2==_0x40bb00&&0x3==_0x3133e7){const _0x37e54f=_0x4aca20['_findSuggestions'](_0x357530,'insertion')['filter'](({suggestion:_0x78c6e7,meta:_0x5dcdf7})=>_0x5dcdf7['isOwn']&&'convertInlineImageToBlock'==_0x78c6e7['subType']);if(_0x37e54f['length']>0x1&&_0x50e723['end']['isEqual'](_0x357530['start']))return!0x0;if(0x1==_0x37e54f['length']&&(_0x357530['start']['isEqual'](_0x50e723['end'])||_0x357530['end']['isEqual'](_0x50e723['start'])))return!0x0;}if(0x3==_0x40bb00&&0x3==_0x3133e7&&_0x357530['start']['isBefore'](_0x50e723['start'])){const _0x2d4118=_0x357530['end']['nodeAfter'],_0x128ab2=_0x50e723['start']['nodeBefore'];return _0x15e102['isBlockImage'](_0x2d4118)&&_0x2d4118===_0x128ab2;}return!0x1;}_0x4d8303['model']['document']['registerPostFixer'](()=>{let _0x31ea7c=!0x1;const _0x2da3d7=Array['from'](_0x4d8303['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4af6ec,data:_0x3af0ef}of _0x2da3d7){const {group:_0x1a1f7e,type:_0x3c2b54,subType:_0x5ba316,id:_0x2ad220}=_0x4aca20['_splitMarkerName'](_0x4af6ec);if('suggestion'==_0x1a1f7e&&_0x4aca20['hasSuggestion'](_0x2ad220)){if('formatBlock'==_0x3c2b54&&('imageStylePreApply'==_0x5ba316||'imageStylePostApply'==_0x5ba316)){const _0x5ecf18=_0x4aca20['getSuggestion'](_0x2ad220);if(_0x3af0ef['newRange']){const _0x2f3524=_0x5ecf18['getFirstRange']()['getContainedElement']();if(_0x15e102['isBlockImage'](_0x2f3524))continue;_0x4aca20['discardSuggestion'](_0x5ecf18),_0x31ea7c=!0x0;}}if('insertion'==_0x3c2b54&&'imageCaption'==_0x5ba316&&!_0x3af0ef['newRange']){const _0x3c40c9=_0x4aca20['getSuggestion'](_0x2ad220);_0x3c40c9['next']&&_0x3c40c9['next']['isInContent']&&(_0x4aca20['discardSuggestion'](_0x3c40c9['next']),_0x31ea7c=!0x0);}}}return _0x31ea7c;}),this['_registerLegacyDescription'](_0x4a3b60);}['_registerLegacyDescription'](_0x4088c9){const _0x284d71=this['editor'],_0x314d94=_0x284d71['locale'];_0x284d71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31289a=>{if('formatBlock'!=_0x31289a['type']&&'formatInline'!=_0x31289a['type'])return;const {data:_0x130e8c}=_0x31289a;if(!_0x130e8c||'imageStyle'!=_0x130e8c['commandName'])return;const _0x483712=_0x130e8c['commandParams'][0x0]['value'];return _0x553261('side'===_0x483712?o(_0x314d94,'FORMAT_SIDE_IMAGE'):_0x4088c9[_0x483712]||_0x483712);function _0x553261(_0x2859aa){return{'type':'format','content':o(_0x314d94,'*Format:*\x20%0',_0x2859aa)};}});}}class at extends _0x35639c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3008d7){super(_0x3008d7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2bffb5=this['editor'],_0x3b2495=_0x2bffb5['commands']['get']('importWord'),_0x215393=_0x2bffb5['commands']['get']('trackChanges');_0x3b2495&&(_0x3b2495['on']('execute',(_0x1ec459,[,_0x498ea7])=>{this['_trackChangesValueDuringImport']=_0x215393['value'],_0x498ea7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3b2495,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3b2495,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x215393['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2bffb5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x185790,_0x3b5a97){const {suggestions:_0x37ca71}=_0x3b5a97,_0xfa8425=this['editor']['commands']['get']('trackChanges'),_0x2549f3=_0xfa8425['value'];this['_trackChangesValueDuringImport']!==_0x2549f3&&(_0xfa8425['execute'](),this['_trackChangesExecuted']=!0x0),_0x37ca71&&_0x37ca71['forEach'](({id:_0x588836,type:_0x150775,author:_0xf8b0be,created_at:_0x2ea318})=>{const _0x30fa26={'id':_0x588836,'type':_0x150775,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xf8b0be,'createdAt':_0x2ea318?new Date(_0x2ea318):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x30fa26);});}}class ct extends _0x35639c{['afterInit'](){const _0x104af8=this['editor'],_0x396556=_0x104af8['plugins']['get']('TrackChangesEditing');if(_0x104af8['plugins']['has']('IndentEditing')&&(_0x396556['enableCommand']('indent'),_0x396556['enableCommand']('outdent')),_0x104af8['plugins']['has']('IndentBlock')){for(const _0x434a9e of['indentBlock','outdentBlock'])_0x396556['enableDefaultAttributesIntegration'](_0x434a9e);}const _0x1141b4=_0x104af8['locale'];_0x396556['registerBlockAttribute']('blockIndent'),_0x396556['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1141b4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46b96c=this['editor'],_0xe501f7=_0x46b96c['locale'],_0x22f910=_0x46b96c['plugins']['get']('TrackChangesEditing');_0x22f910['descriptionFactory']['registerDescriptionCallback'](_0x426220=>{if('formatBlock'!=_0x426220['type'])return;const {data:_0x301c18}=_0x426220;if(!_0x301c18)return;if('indentBlock'!=_0x301c18['commandName']&&'outdentBlock'!=_0x301c18['commandName'])return;const _0x2761f4=_0x426220['getItems']()[0x0],_0xa4bbfc=_0x22f910['descriptionFactory']['getItemLabel'](_0x2761f4);return'indentBlock'==_0x301c18['commandName']?{'type':'format','content':o(_0xe501f7,'*Indent:*\x20%0',_0xa4bbfc)}:'outdentBlock'==_0x301c18['commandName']?{'type':'format','content':o(_0xe501f7,'*Outdent:*\x20%0',_0xa4bbfc)}:void 0x0;});}}class ut extends _0x35639c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x35639c{['afterInit'](){const _0x35a54a=this['editor'];if(!_0x35a54a['plugins']['has']('LinkEditing'))return;const _0x12f4ae=_0x35a54a['plugins']['get']('TrackChangesEditing'),_0x203e60=_0x35a54a['commands']['get']('link');_0x12f4ae['enableDefaultAttributesIntegration']('link'),_0x12f4ae['enableDefaultAttributesIntegration']('unlink'),_0x12f4ae['registerInlineAttribute']('linkHref');for(const _0x4bcf2c of _0x203e60['manualDecorators'])_0x12f4ae['registerInlineAttribute'](_0x4bcf2c['id']),_0x12f4ae['descriptionFactory']['registerAttributeLabel'](_0x4bcf2c['id'],'link\x20('+_0x4bcf2c['label']['toLowerCase']()+')');_0x12f4ae['descriptionFactory']['registerDescriptionCallback'](_0x2edb1e=>{if('attribute'!=_0x2edb1e['type'])return;const {data:_0x3fe58e}=_0x2edb1e;if(!_0x3fe58e||'linkHref'!=_0x3fe58e['key'])return;const _0x1cd4fe=_0x3fe58e['newValue'],_0x14d788=_0x35a54a['locale'];return{'type':'format','content':null==_0x1cd4fe?o(_0x14d788,'*Remove\x20link*'):o(_0x14d788,'*Set\x20link:*\x20%0','\x22'+_0x1cd4fe+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7d65a9=this['editor'],_0xc7741c=_0x7d65a9['locale'];_0x7d65a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x98bcf5=>{if('formatInline'!=_0x98bcf5['type'])return;const {data:_0x42fb82}=_0x98bcf5;if(_0x42fb82){if('link'==_0x42fb82['commandName']){const _0x1ceb92=_0x42fb82['commandParams'][0x0];return{'type':'format','content':o(_0xc7741c,'*Set\x20link:*\x20%0','\x22'+_0x1ceb92+'\x22')};}return'unlink'==_0x42fb82['commandName']?{'type':'format','content':o(_0xc7741c,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x35639c{['afterInit'](){const _0x249f9b=this['editor'],_0x31cb08=_0x249f9b['locale'];if(!_0x249f9b['plugins']['has']('LegacyListEditing'))return;const _0x26f979=_0x249f9b['plugins']['get']('TrackChangesEditing'),_0x45ddd2=_0x249f9b['plugins']['has']('LegacyTodoListEditing');function _0x1aa387(_0x5d25a7){return()=>{const _0xe70dbb=_0x249f9b['model']['document']['selection'],_0xafba80=_0x249f9b['commands']['get'](_0x5d25a7);if(_0xafba80['value'])return void _0x249f9b['execute']('paragraph',{});const _0x3bccdd=_0x5d25a7['slice'](0x0,-0x4),_0x1bfa73=function(_0xe332a4,_0x10eb0e,_0x3a2799){let _0x409cfe=Array['from'](_0xe332a4)['filter'](_0x3567a2=>function(_0x396fa0,_0x336ff8){return _0x336ff8['checkChild'](_0x396fa0['parent'],'listItem')&&!_0x336ff8['isObject'](_0x396fa0);}(_0x3567a2,_0x3a2799));_0x409cfe=_0x409cfe['filter'](_0xc62461=>!_0xc62461['is']('element','listItem')||_0xc62461['getAttribute']('listType')!=_0x10eb0e);const _0xbc79c0=new Set();for(const _0x5719ef of _0x409cfe)_0x5719ef['is']('element','listItem')?_0xbc79c0['add'](fe(_0x5719ef)):_0xbc79c0['add'](_0x5719ef);return Array['from'](_0xbc79c0);}(_0xe70dbb['getSelectedBlocks'](),_0x3bccdd,_0x249f9b['model']['schema']);_0x249f9b['model']['change'](()=>{for(const _0xa125ef of _0x1bfa73)_0x26f979['markBlockFormat'](_0xa125ef,{'commandName':_0x5d25a7,'commandParams':[{'forceValue':!_0xafba80['value']}],'formatGroupId':'blockName'},ue(_0xa125ef));});};}function _0x4b1cbf(_0x5c840d){return()=>{const _0x3cc7e3=function(_0x2c5e0d){let _0x2d293f=Array['from'](_0x2c5e0d);const _0x2b1e27=_0x2d293f['findIndex'](_0x4e4c4f=>'listItem'!=_0x4e4c4f['name']);return _0x2b1e27>-0x1&&(_0x2d293f=_0x2d293f['slice'](0x0,_0x2b1e27)),_0x2d293f;}(_0x249f9b['model']['document']['selection']['getSelectedBlocks']()),_0x5f13e7=_0x249f9b['model']['createRange'](_0x249f9b['model']['createPositionAt'](_0x3cc7e3[0x0],'before'),_0x249f9b['model']['createPositionAt'](_0x3cc7e3[_0x3cc7e3['length']-0x1],'end'));_0x249f9b['model']['change'](()=>{_0x26f979['markBlockFormat'](_0x5f13e7,{'commandName':_0x5c840d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3909f5){const _0x4ba629=new Set();for(const _0x4ccae3 of _0x3909f5){let _0x250a60=_0x4ccae3['nextSibling'];for(;_0x250a60&&_0x250a60['getAttribute']('listIndent')>_0x4ccae3['getAttribute']('listIndent');)_0x4ba629['add'](_0x250a60),_0x250a60=_0x250a60['nextSibling'];}return Array['from'](_0x4ba629);}(_0x3cc7e3));});};}_0x26f979['enableCommand']('numberedList',_0x1aa387('numberedList')),_0x26f979['enableCommand']('bulletedList',_0x1aa387('bulletedList')),_0x45ddd2&&_0x26f979['enableCommand']('todoList',_0x1aa387('todoList')),_0x26f979['enableCommand']('indentList',_0x4b1cbf('indentList')),_0x26f979['enableCommand']('outdentList',_0x4b1cbf('outdentList')),_0x45ddd2&&_0x26f979['enableCommand']('checkTodoList',()=>{const _0x192a1b=_0x249f9b['commands']['get']('checkTodoList'),_0xc0afe6=Array['from'](_0x192a1b['_selectedElements']);_0xc0afe6['filter'](_0x45d67e=>_0x45d67e['getAttribute']('todoListChecked')!=_0x192a1b['value']),_0x249f9b['model']['change'](()=>{for(const _0x29ce62 of _0xc0afe6)_0x26f979['markBlockFormat'](_0x29ce62,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x192a1b['value']}]});});}),_0x26f979['descriptionFactory']['registerElementLabel']('listItem',_0x1c4c04=>o(_0x31cb08,'ELEMENT_LIST_ITEM',_0x1c4c04)),_0x26f979['descriptionFactory']['registerDescriptionCallback'](_0x2b11f6=>{if('formatBlock'!=_0x2b11f6['type']&&'formatInline'!=_0x2b11f6['type'])return;const {data:_0x164956}=_0x2b11f6;if(_0x164956){if('numberedList'==_0x164956['commandName']||'bulletedList'==_0x164956['commandName']||'todoList'==_0x164956['commandName'])switch(_0x164956['commandName']['replace']('List','')){case'bulleted':return _0x1e17cb(o(_0x31cb08,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e17cb(o(_0x31cb08,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e17cb(o(_0x31cb08,'ELEMENT_TODO_LIST'));}if('indentList'==_0x164956['commandName'])return{'type':'format','content':o(_0x31cb08,'*Indent:*\x20%0',o(_0x31cb08,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x164956['commandName'])return{'type':'format','content':o(_0x31cb08,'*Outdent:*\x20%0',o(_0x31cb08,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x164956['commandName'])return _0x164956['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31cb08,'*Check\x20item*')}:{'type':'format','content':o(_0x31cb08,'*Uncheck\x20item*')};}function _0x1e17cb(_0xdda50f){return{'type':'format','content':o(_0x31cb08,'*Change\x20to:*\x20%0',_0xdda50f)};}});}}function fe(_0x1f5150){const _0x21ff50=_0x1f5150['getAttribute']('listIndent');if(0x0==_0x21ff50)return _0x1f5150;let _0x36b1d8=_0x1f5150;for(;_0x1f5150['previousSibling']&&_0x1f5150['previousSibling']['is']('element','listItem');){const _0x468be4=_0x1f5150['previousSibling']['getAttribute']('listIndent');if(_0x468be4==_0x21ff50)_0x36b1d8=_0x1f5150['previousSibling'];else{if(_0x468be4<_0x21ff50)break;}_0x1f5150=_0x1f5150['previousSibling'];}return _0x36b1d8;}function ue(_0x24e575){const _0x5e90c4=[];if(_0x24e575['is']('element','listItem')&&_0x24e575['getAttribute']('listIndent')>0x0){let _0x181023=_0x24e575['nextSibling'];for(;_0x181023&&'listItem'==_0x181023['name']&&_0x181023['getAttribute']('listIndent')==_0x24e575['getAttribute']('listIndent');)_0x5e90c4['push'](_0x181023),_0x181023=_0x181023['nextSibling'];}return _0x5e90c4;}class W extends _0x35639c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x18f879=this['editor']['config']['get']('list.properties'),_0x7e1011=this['editor']['plugins']['get']('TrackChangesEditing');_0x18f879['styles']&&_0x7e1011['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x18f879['reversed']&&_0x7e1011['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x18f879['startIndex']&&_0x7e1011['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x7e1011['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5d4ed2,_0x1220fb={}){const _0xc25518=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ba7f8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xc25518['markMultiRangeBlockFormat'](_0x2ba7f8,{'commandName':'listStyle','commandParams':[{'type':_0x1220fb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x374e04,_0x1b20b5={}){const _0x3cd0f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5aeb74=this['_getSuggestionBlocks'](_0x3a4e8e=>_0x3a4e8e['is']('element','listItem')&&'numbered'===_0x3a4e8e['getAttribute']('listType'));if(_0x5aeb74['length']<0x1)return;const _0xef9e9f=_0x5aeb74['map'](_0x105858=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x105858,'before'),this['editor']['model']['createPositionAt'](_0x105858,0x0)));this['editor']['model']['change'](()=>{_0x3cd0f1['markMultiRangeBlockFormat'](_0xef9e9f,{'commandName':'listReversed','commandParams':[{'reversed':_0x1b20b5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x32db78,_0x7095ad={}){const _0xb79a9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17e9e4=this['_getSuggestionBlocks'](_0x5b876e=>_0x5b876e['is']('element','listItem')&&'numbered'===_0x5b876e['getAttribute']('listType'));if(_0x17e9e4['length']<0x1)return;const _0x244924=_0x17e9e4['map'](_0x12cb3b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12cb3b,'before'),this['editor']['model']['createPositionAt'](_0x12cb3b,0x0)));this['editor']['model']['change'](()=>{_0xb79a9a['markMultiRangeBlockFormat'](_0x244924,{'commandName':'listStart','commandParams':[{'startIndex':_0x7095ad['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xa658b){if('formatBlock'!=_0xa658b['type']&&'formatInline'!=_0xa658b['type'])return;const _0x3093ac=this['editor']['locale'],{data:_0x405abf}=_0xa658b;if(!_0x405abf)return;let _0x4dff67,_0x591d02;switch(_0x405abf['commandName']){case'listStyle':_0x4dff67='*Change\x20to:*\x20%0',_0x591d02={'type':'format','content':o(_0x3093ac,_0x4dff67,o(_0x3093ac,this['_getTranslationKeyForListStyle'](_0x405abf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4dff67=_0x405abf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x591d02={'type':'format','content':o(_0x3093ac,_0x4dff67)};break;case'listStart':_0x4dff67='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x591d02={'type':'format','content':o(_0x3093ac,_0x4dff67,_0x405abf['commandParams'][0x0]['startIndex'])};}return _0x591d02;}['_getSuggestionBlocksForListStyle'](){const _0x25d6db=this['editor']['plugins']['get']('LegacyListUtils');let _0x2e54af=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2e54af[0x0]?.['is']('element','listItem')&&_0x2e54af['unshift'](..._0x25d6db['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2e54af[_0x2e54af['length']-0x1]?.['is']('element','listItem')&&_0x2e54af['push'](..._0x25d6db['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2e54af=[...new Set(_0x2e54af)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2e54af=_0x2e54af['filter'](_0x438a60=>_0x438a60['is']('element','listItem'))),_0x2e54af;}['_getSuggestionBlocks'](_0x5357a4){const _0x32c47b=this['editor']['plugins']['get']('LegacyListUtils');let _0x2fb4ed=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5357a4)['map'](_0x5dd533=>{const _0x4c3488=this['editor']['model']['createPositionAt'](_0x5dd533,0x0);return[..._0x32c47b['getSiblingNodes'](_0x4c3488,'backward'),..._0x32c47b['getSiblingNodes'](_0x4c3488,'forward')];})['flat']();return _0x2fb4ed=[...new Set(_0x2fb4ed)],_0x2fb4ed;}['_getTranslationKeyForListStyle'](_0x21ebc5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x21ebc5)||'default')['toUpperCase']()+'_LIST_'+_0x21ebc5['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x35639c{['afterInit'](){const _0x542799=this['editor'];if(!_0x542799['plugins']['has']('MediaEmbedEditing'))return;const _0x9133ee=_0x542799['plugins']['get']('TrackChangesEditing'),_0x57b0c8=_0x542799['locale'];_0x9133ee['enableCommand']('mediaEmbed'),_0x9133ee['descriptionFactory']['registerElementLabel']('media',_0x3ac7bc=>o(_0x57b0c8,'ELEMENT_MEDIA',_0x3ac7bc)),_0x542799['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x51eb0c,{writer:_0x2ec8a4,options:_0x194d25})=>{if(_0x194d25['showSuggestionHighlights'])return _0x2ec8a4['createEmptyElement']('div');},'converterPriority':'high'}),_0x542799['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4b72e5,_0x2e6d6a,_0x3979f3)=>{_0x3979f3['options']['showSuggestionHighlights']&&_0x4b72e5['stop']();},{'priority':'high'});}}class mt extends _0x35639c{['afterInit'](){const _0x195636=this['editor'];_0x195636['plugins']['has']('MentionEditing')&&_0x195636['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x35639c{['afterInit'](){const _0x331958=this['editor'];if(!_0x331958['plugins']['has']('MergeFieldsEditing'))return;_0x331958['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x331958['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x3f0630=_0x331958['plugins']['get']('TrackChangesEditing'),_0x2f4092=_0x331958['locale'];_0x3f0630['descriptionFactory']['registerElementLabel']('mergeField',_0xadb6e9=>o(_0x2f4092,'ELEMENT_MERGE_FIELD',_0xadb6e9)),_0x3f0630['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x54e85f=>o(_0x2f4092,'ELEMENT_MERGE_FIELD',_0x54e85f)),_0x3f0630['descriptionFactory']['registerDescriptionCallback'](_0xd91f58=>{if('insertion'!=_0xd91f58['type']&&'deletion'!=_0xd91f58['type'])return;const _0x1e478a=_0xd91f58['getContainedElement']();if(null==_0x1e478a)return;if(!_0x1e478a['is']('element','mergeField')&&!_0x1e478a['is']('element','mergeFieldBlock'))return;const _0x35baa8=_0x331958['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1e478a['getAttribute']('id'));return'insertion'==_0xd91f58['type']?{'type':'insertion','content':o(_0x2f4092,'*Insert:*\x20%0','\x22'+_0x35baa8+'\x22\x20'+o(_0x2f4092,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2f4092,'*Remove:*\x20%0','\x22'+_0x35baa8+'\x22\x20'+o(_0x2f4092,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x35639c{['afterInit'](){const _0x18b792=this['editor'],_0x1a5b18=_0x18b792['plugins']['get']('TrackChangesEditing');_0x18b792['plugins']['has']('MultiLevelList')&&(_0x1a5b18['enableDefaultAttributesIntegration']('multiLevelList'),_0x1a5b18['registerBlockAttribute']('listMarkerStyle'),_0x1a5b18['descriptionFactory']['registerDescriptionCallback'](_0x13c521=>this['handleDescriptions'](_0x13c521)));}['handleDescriptions'](_0x505f3a){const _0x49d57e=this['editor']['locale'],{data:_0x35ebfc}=_0x505f3a,_0x54ec5d={'type':'format','content':''};if(_0x35ebfc&&'listMarkerStyle'==_0x35ebfc['key']){if(!_0x35ebfc['oldValue'])return{'type':'format','content':o(_0x49d57e,'*Set\x20format:*\x20%0',o(_0x49d57e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35ebfc['newValue']+')'};if(!_0x35ebfc['newValue']){let _0x199147=_0x505f3a['head'];for(;_0x199147;){if(_0x199147['data']&&'listType'==_0x199147['data']['key']&&_0x199147['data']['newValue'])return _0x54ec5d;_0x199147=_0x199147['next'];}return{'type':'format','content':o(_0x49d57e,'*Remove\x20format:*\x20%0',o(_0x49d57e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35ebfc['oldValue']+')'};}}}}class kt extends _0x35639c{['afterInit'](){const _0x2e1f8e=this['editor'];if(!_0x2e1f8e['plugins']['has']('PageBreakEditing'))return;_0x2e1f8e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x532f7b=_0x2e1f8e['plugins']['get']('TrackChangesEditing'),_0x15162e=_0x2e1f8e['locale'];_0x532f7b['descriptionFactory']['registerElementLabel']('pageBreak',_0x350782=>o(_0x15162e,'ELEMENT_PAGE_BREAK',_0x350782));}}class bt extends _0x35639c{['afterInit'](){const _0x387d22=this['editor'];if(!_0x387d22['plugins']['has']('Paragraph'))return;const _0x3d59c9=_0x387d22['locale'],_0x5277c8=_0x387d22['plugins']['get']('TrackChangesEditing');_0x5277c8['descriptionFactory']['registerElementLabel']('paragraph',_0x6190d3=>o(_0x3d59c9,'ELEMENT_PARAGRAPH',_0x6190d3)),_0x5277c8['enableDefaultAttributesIntegration']('paragraph'),_0x5277c8['enableCommand']('insertParagraph'),_0x387d22['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x387d22),{'priority':'highest'}),_0x387d22['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43c684,_0x23bb31,_0x407b64)=>{_0x407b64['options']['showSuggestionHighlights']&&nr(_0x387d22,{'showActiveMarker':!0x1})(_0x43c684,_0x23bb31,_0x407b64);},{'priority':'highest'});const _0x1a43f7=_0x5277c8['descriptionFactory'];_0x1a43f7['registerDescriptionCallback'](_0x225589=>{if('insertion'!==_0x225589['type'])return;const {start:_0x13c57b,end:_0x141ca0}=_0x225589['getFirstRange']();if(!_0x13c57b['isTouching'](_0x141ca0)||!_0x13c57b['nodeAfter'])return;const _0x488f59=_0x387d22['model']['schema'],_0xe99a71=_0x13c57b['nodeAfter'];return _0x488f59['isBlock'](_0xe99a71)&&!_0x488f59['isLimit'](_0xe99a71)&&_0x488f59['checkChild'](_0xe99a71,'$text')?{'type':'insertion','content':o(_0x3d59c9,'*Insert:*\x20%0',_0x1a43f7['getItemLabel'](_0xe99a71,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3abb2f=this['editor'],_0x5a40d3=_0x3abb2f['locale'];_0x3abb2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a7ee3=>{if('formatBlock'!=_0x1a7ee3['type'])return;const {data:_0x445874}=_0x1a7ee3;return _0x445874&&'paragraph'==_0x445874['commandName']?{'type':'format','content':o(_0x5a40d3,'*Change\x20to:*\x20%0',o(_0x5a40d3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x41d008,{showActiveMarker:_0x472250=!0x0}={}){return(_0x19e542,_0x2e1b1e,_0x4074ae)=>{const _0x206b43=_0x41d008['plugins']['get']('TrackChangesEditing'),_0x12696f=_0x2e1b1e['markerRange']['start'],_0x4728db=_0x2e1b1e['markerRange']['end'],_0x34830e=_0x41d008['model']['schema'];if(!_0x12696f['isTouching'](_0x4728db)||!_0x12696f['nodeAfter'])return;const _0x19dcd8=_0x12696f['nodeAfter'];if(_0x34830e['isBlock'](_0x19dcd8)&&!_0x34830e['isLimit'](_0x19dcd8)&&_0x34830e['checkChild'](_0x19dcd8,'$text')){if(!_0x4074ae['consumable']['consume'](_0x2e1b1e['markerRange'],_0x19e542['name']))return;const {authorId:_0x2d234a}=_0x206b43['_splitMarkerName'](_0x2e1b1e['markerName']),_0x1b506a=_0x4074ae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2d234a}),_0x5bd5f6=_0x4074ae['mapper']['toViewPosition'](_0x4728db);_0x472250&&_0x206b43['activeMarkers']['includes'](_0x2e1b1e['markerName'])&&_0x4074ae['writer']['addClass']('ck-suggestion-marker--active',_0x1b506a),_0x4074ae['writer']['insert'](_0x5bd5f6,_0x1b506a),_0x4074ae['mapper']['bindElementToMarker'](_0x1b506a,_0x2e1b1e['markerName']);}};}class wt extends _0x35639c{['afterInit'](){const _0x1d760b=this['editor'];if(!_0x1d760b['plugins']['has']('RemoveFormatEditing'))return;_0x1d760b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38fb9b=this['editor'];_0x38fb9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32ce28=>{if('formatBlock'!=_0x32ce28['type']&&'formatInline'!=_0x32ce28['type'])return;const {data:_0x4235c8}=_0x32ce28;return _0x4235c8&&'removeFormat'==_0x4235c8['commandName']?{'type':'format','content':o(_0x38fb9b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x35639c{['afterInit'](){const _0x371149=this['editor'];if(!_0x371149['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x26a0ff=_0x371149['plugins']['get']('TrackChangesEditing');_0x26a0ff['enableCommand']('goToPreviousRestrictedEditingException'),_0x26a0ff['enableCommand']('goToNextRestrictedEditingException');const _0x371b2a=_0x371149['plugins']['get']('RestrictedEditingModeEditing');_0x371b2a['enableCommand']('trackChanges'),_0x371b2a['enableCommand']('acceptSuggestion'),_0x371b2a['enableCommand']('discardSuggestion'),_0x371b2a['enableCommand']('acceptAllSuggestions'),_0x371b2a['enableCommand']('discardAllSuggestions'),_0x371b2a['enableCommand']('acceptSelectedSuggestions'),_0x371b2a['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x35639c{static get['requires'](){return[_0x4be0aa];}['init'](){const _0x89a93=this['editor'],_0x4dc96e=_0x89a93['plugins']['get']('TrackChangesEditing');_0x4dc96e['enableCommand']('shiftEnter'),_0x89a93['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x89a93),{'priority':'high'}),_0x89a93['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x89a93),{'priority':'high'}),_0x89a93['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x48c465,_0x5e7384,_0x2317b7)=>{_0x2317b7['options']['showSuggestionHighlights']&&ge(_0x89a93,{'showActiveMarker':!0x1})(_0x48c465,_0x5e7384,_0x2317b7);}),_0x4dc96e['descriptionFactory']['registerElementLabel']('softBreak',_0x5703bc=>o(_0x89a93['locale'],'ELEMENT_LINE_BREAK',_0x5703bc));}}function ge(_0x413bdf,{showActiveMarker:_0x2d2b46=!0x0}={}){return(_0x331de8,_0x85cadf,_0x2ab649)=>{const _0x12df10=_0x413bdf['plugins']['get']('TrackChangesEditing');if(!_0x2ab649['consumable']['test'](_0x85cadf['markerRange'],_0x331de8['name']))return;const _0x1f0b42=_0x413bdf['model'];for(const _0x54cca3 of _0x85cadf['markerRange']['getItems']()){if(!_0x54cca3['is']('element','softBreak'))continue;const _0x2580bf='deletion'==_0x85cadf['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x28a223}=_0x12df10['_splitMarkerName'](_0x85cadf['markerName']),_0x1a8417=_0x2ab649['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2580bf,'data-author-id':_0x28a223}),_0xe038e1=_0x2ab649['mapper']['toViewPosition'](_0x1f0b42['createPositionBefore'](_0x54cca3));_0x2d2b46&&_0x12df10['activeMarkers']['includes'](_0x85cadf['markerName'])&&_0x2ab649['writer']['addClass']('ck-suggestion-marker--active',_0x1a8417),_0x2ab649['writer']['insert'](_0xe038e1,_0x1a8417),_0x2ab649['mapper']['bindElementToMarker'](_0x1a8417,_0x85cadf['markerName']);}};}class St extends _0x35639c{['afterInit'](){const _0x46fb25=this['editor'],_0x64c055=_0x46fb25['model'],_0x1a963c=_0x46fb25['locale'];if(!_0x46fb25['plugins']['has']('StandardEditingModeEditing'))return;const _0x13f37a=_0x46fb25['plugins']['get']('TrackChangesEditing'),_0x28bc0a='restrictedEditingException',_0x31d00b=_0x46fb25['commands']['get'](_0x28bc0a);_0x13f37a['enableCommand'](_0x28bc0a,(_0x470c7c,_0x313c55={})=>{const _0x43a43e=_0x64c055['document']['selection'];if(_0x43a43e['isCollapsed'])return void _0x470c7c(_0x313c55);const _0x1893b2=void 0x0!==_0x313c55['forceValue']?_0x313c55['forceValue']:!_0x31d00b['value'];_0x64c055['change'](()=>{const _0x125eca=Array['from'](_0x43a43e['getRanges']());for(const _0x1fec08 of _0x125eca){const _0x718213=_0x1893b2?[_0x1fec08]:io(_0x28bc0a,_0x1fec08,_0x64c055);for(const _0x2496ff of _0x718213)_0x13f37a['markInlineFormat'](_0x2496ff,{'commandName':_0x28bc0a,'commandParams':[{'forceValue':_0x1893b2}]});}});}),_0x13f37a['descriptionFactory']['registerDescriptionCallback'](_0x133b63=>{if('formatBlock'!=_0x133b63['type']&&'formatInline'!=_0x133b63['type'])return;const {data:_0x30be04}=_0x133b63;return _0x30be04&&_0x30be04['commandName']==_0x28bc0a?_0x30be04['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a963c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1a963c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x35639c{['afterInit'](){const _0x7afde4=this['editor'];if(!_0x7afde4['plugins']['has']('Style')||!_0x7afde4['plugins']['has']('DataSchema'))return;const _0x3a11ba=_0x7afde4['plugins']['get']('TrackChangesEditing'),_0x31c73b=_0x7afde4['locale'],_0x36d656=_0x7afde4['config']['get']('style')||{},_0x7c885a=_0x7afde4['plugins']['get']('GeneralHtmlSupport'),_0x59df92=_0x7afde4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x7afde4['plugins']['get']('DataSchema'),_0x36d656['definitions']);_0x3a11ba['enableDefaultAttributesIntegration']('style');const _0x342e20=new Set();for(const _0x5e03e1 of _0x59df92['block']){const _0x1b2e83=_0x7c885a['getGhsAttributeNameForElement'](_0x5e03e1['element']);_0x342e20['add'](_0x1b2e83);}const _0x3b4c91=new Set();for(const _0x519924 of _0x59df92['inline']){const _0x1f05f0=_0x7c885a['getGhsAttributeNameForElement'](_0x519924['element']);_0x3b4c91['add'](_0x1f05f0);for(const _0x5ecea4 of _0x519924['ghsAttributes'])_0x3b4c91['add'](_0x5ecea4);}for(const _0x3abeae of _0x342e20)_0x3a11ba['registerBlockAttribute'](_0x3abeae),_0x3a11ba['descriptionFactory']['registerAttributeLabel'](_0x3abeae,o(_0x31c73b,'FORMAT_STYLE'));for(const _0x559900 of _0x3b4c91)_0x3a11ba['registerInlineAttribute'](_0x559900),_0x3a11ba['descriptionFactory']['registerAttributeLabel'](_0x559900,o(_0x31c73b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x459842=this['editor'],_0x1ad852=_0x459842['locale'];_0x459842['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414443=>{if('formatBlock'!=_0x414443['type']&&'formatInline'!=_0x414443['type'])return;const {data:_0x3c348f}=_0x414443;return _0x3c348f&&'style'===_0x3c348f['commandName']?_0x3c348f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ad852,'*Set\x20format:*\x20%0',_0x3c348f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1ad852,'*Remove\x20format:*\x20%0',_0x3c348f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x35639c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x48d277){super(_0x48d277),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x42e080=this['editor'],_0x4257eb=_0x42e080['model']['document']['selection'];if(!_0x42e080['plugins']['has']('TableEditing'))return;const _0x437714=_0x42e080['locale'],_0x498871=_0x42e080['plugins']['get']('TrackChangesEditing'),_0x214760=_0x42e080['plugins']['get']('TableUtils');_0x498871['descriptionFactory']['registerElementLabel']('table',_0xe060d0=>o(_0x437714,'ELEMENT_TABLE',_0xe060d0)),this['_setupColumnsRowsFixing'](),_0x498871['enableCommand']('insertTable'),_0x498871['enableCommand']('selectTableRow'),_0x498871['enableCommand']('selectTableColumn');for(const _0x58dd3b of['insertTableRowAbove','insertTableRowBelow']){const _0x4883ce=_0x42e080['commands']['get'](_0x58dd3b);_0x498871['enableCommand'](_0x58dd3b,_0x5344d6=>{_0x42e080['model']['change'](_0x1a75a2=>{_0x5344d6();const _0x495954='above'===_0x4883ce['order'],_0xdb6eca=_0x214760['getSelectionAffectedTableCells'](_0x4257eb),_0x51ecb4=_0x214760['getRowIndexes'](_0xdb6eca),_0x4b9831=_0x495954?_0x51ecb4['first']-0x1:_0x51ecb4['last']+0x1,_0x1ac590=_0xdb6eca[0x0]['findAncestor']('table'),_0x1d9273=_0x214760['createTableWalker'](_0x1ac590,{'startRow':_0x4b9831,'endRow':_0x4b9831}),_0x20cf31=Array['from'](_0x1d9273)['map'](_0x49ff97=>_0x1a75a2['createRangeOn'](_0x49ff97['cell']));_0x498871['markMultiRangeInsertion'](_0x20cf31,'tableRow');});});}for(const _0x5677f0 of['insertTableColumnLeft','insertTableColumnRight']){const _0xbbf213=_0x42e080['commands']['get'](_0x5677f0);_0x498871['enableCommand'](_0x5677f0,_0xaea2d0=>{_0x42e080['model']['change'](_0x3a90cf=>{_0xaea2d0();const _0xe1a8a='left'===_0xbbf213['order'],_0x57974c=_0x214760['getSelectionAffectedTableCells'](_0x4257eb),_0x13bc20=_0x214760['getColumnIndexes'](_0x57974c),_0xd391f1=_0xe1a8a?_0x13bc20['first']-0x1:_0x13bc20['last']+0x1,_0x540a66=_0x57974c[0x0]['findAncestor']('table'),_0x3b9e24=_0x214760['createTableWalker'](_0x540a66,{'startRow':0x0,'column':_0xd391f1,'includeAllSlots':!0x1}),_0x598815=Array['from'](_0x3b9e24)['map'](_0x57561b=>_0x3a90cf['createRangeOn'](_0x57561b['cell']));_0x498871['markMultiRangeInsertion'](_0x598815,'tableColumn');});});}for(const _0x4871c7 of['removeTableRow','removeTableColumn']){const _0x5bcfb7=_0x4871c7['substr'](0xb),_0x442ee0=_0x5bcfb7['toLowerCase'](),_0x3ee4c5=_0x442ee0['substr'](0x0,0x3)+'span',_0x3735c4='table'+_0x5bcfb7,_0x41b86d='min'+_0x5bcfb7,_0x10f95c='max'+_0x5bcfb7;_0x498871['enableCommand'](_0x4871c7,()=>{_0x42e080['model']['change'](_0x161619=>{const _0x16d46b=_0x214760['getSelectionAffectedTableCells'](_0x4257eb),_0x474d76=_0x16d46b[0x0]['findAncestor']('table');let _0x33fd2a;if('removeTableRow'==_0x4871c7){const _0x4a8c5f=_0x214760['getRowIndexes'](_0x16d46b);_0x33fd2a={'startRow':_0x4a8c5f['first'],'endRow':_0x4a8c5f['last'],'includeAllSlots':!0x0};}else{const _0x20035d=_0x214760['getColumnIndexes'](_0x16d46b);_0x33fd2a={'startColumn':_0x20035d['first'],'endColumn':_0x20035d['last'],'includeAllSlots':!0x0};}const _0x372b2c=_0x214760['createTableWalker'](_0x474d76,_0x33fd2a),_0x4c6605=Array['from'](_0x372b2c)['map'](({cell:_0x47ed08})=>_0x47ed08),_0x39d15d=be(_0x4c6605['filter'](_0x58853f=>_0x58853f['hasAttribute'](_0x3ee4c5))),_0x59d3c4=be(_0x4c6605['filter'](_0x6410b8=>!_0x6410b8['hasAttribute'](_0x3ee4c5)))['map'](_0x2fc46c=>_0x161619['createRangeOn'](_0x2fc46c)),_0x4736f8=_0x498871['markMultiRangeDeletion'](_0x59d3c4,_0x3735c4);if(_0x4736f8&&('tableRow'==_0x4736f8['subType']||'tableColumn'==_0x4736f8['subType'])){const _0x5c4dfb=this['_getSuggestionCoords'](_0x4736f8);for(const _0x151baa of _0x39d15d){const _0xc3f1eb=_0x161619['createRangeOn'](_0x151baa),_0x2315cc=_0x214760['getCellLocation'](_0x151baa),_0x52a750=_0x151baa['getAttribute'](_0x3ee4c5)-0x1,_0x120956=_0x5c4dfb[_0x41b86d],_0xdc6314=_0x5c4dfb[_0x10f95c];_0x120956<=_0x2315cc[_0x442ee0]&&_0x2315cc[_0x442ee0]+_0x52a750<=_0xdc6314&&_0x4736f8['addRange'](_0xc3f1eb);}}});});}function _0x41b0e4(_0x434117){const _0x267f2c=Array['from'](_0x4257eb['getRanges']())['map'](_0x17388f=>_0x36a1b3['fromRange'](_0x17388f));_0x42e080['model']['change'](_0x2f8af7=>{const _0x280be7=_0x2f8af7['batch'];_0x434117=_0x434117['filter'](_0x1bbbb1=>'$graveyard'!=_0x1bbbb1['root']['rootName']),_0x2f8af7['setSelection'](_0x434117),_0x42e080['commands']['get']('removeTableRow')['refresh'](),_0x42e080['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x42e080['model']['enqueueChange'](()=>{_0x42e080['model']['enqueueChange'](_0x280be7,_0x509da4=>{const _0xae03af=_0x267f2c['filter'](_0x2e7f0c=>'$graveyard'!=_0x2e7f0c['root']['rootName']);_0xae03af['length']>0x0&&_0x509da4['setSelection'](_0xae03af);for(const _0x4f0745 of _0x267f2c)_0x4f0745['detach']();});});});}function _0x379a94(_0x586786){_0x42e080['model']['change'](_0x551526=>{const _0x29630e=Array['from'](_0x4257eb['getRanges']())['map'](_0x35cba4=>_0x36a1b3['fromRange'](_0x35cba4)),_0x1bc61a=[];for(const _0x3639de of _0x586786)for(const _0x1c843b of _0x3639de['getItems']({'shallow':!0x0}))_0x1bc61a['push'](_0x1c843b);for(const _0xd1e6e3 of _0x1bc61a)'$graveyard'!=_0xd1e6e3['root']['rootName']&&(_0x551526['setSelection'](_0x551526['createPositionAt'](_0xd1e6e3,0x0)),_0x42e080['commands']['get']('removeTableColumn')['refresh'](),_0x42e080['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x492ca0=_0x29630e['filter'](_0x246215=>'$graveyard'!=_0x246215['root']['rootName']);_0x492ca0['length']>0x0&&_0x551526['setSelection'](_0x492ca0);for(const _0x3e1242 of _0x29630e)_0x3e1242['detach']();});}function _0xa8ab3d(_0x57c9b6,_0x5deeef){return _0x5deeef['every'](_0x47e4c3=>_0x57c9b6['some'](_0x4afec2=>_0x4afec2['end']['isEqual'](_0x47e4c3['start'])||_0x47e4c3['end']['isEqual'](_0x4afec2['start'])));}function _0x536a9b(_0x56cbe4,_0x5c4310){return!_0x56cbe4['some'](_0x5d251d=>_0x5c4310['some'](_0x159041=>_0x5d251d['isIntersecting'](_0x159041)))&&_0x56cbe4['some'](_0x36e890=>_0x5c4310['some'](_0x17f936=>_0x36e890['end']['isTouching'](_0x17f936['start'])));}_0x42e080['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x329a02,_0xcceb5f,_0xdd77ad)=>{if(!_0xdd77ad['options']['showSuggestionHighlights'])return;const _0x214c15=_0xcceb5f['item'];if(!_0x214c15)return;const _0xe2a22d=_0xdd77ad['mapper']['toViewElement'](_0x214c15);function _0xb89e13(_0x55cf50){return Array['isArray'](_0x55cf50)?_0x55cf50:[_0x55cf50];}_0xe2a22d&&'tableCell'===_0x214c15['name']&&_0x2e6717(_0xe2a22d,_0xdd77ad['writer'],(_0x1a3f39,_0x39df65,_0xfab728)=>_0xfab728['addClass'](_0xb89e13(_0x39df65['classes']),_0x1a3f39),(_0xfefc07,_0x4380ff,_0x27931c)=>_0x27931c['removeClass'](_0xb89e13(_0x4380ff['classes']),_0xfefc07));},{'priority':'highest'}),_0x498871['descriptionFactory']['registerDescriptionCallback'](_0x34d6be=>{if('insertion'!=_0x34d6be['type']&&'deletion'!=_0x34d6be['type'])return;const _0x1f3751=_0x34d6be['getContainedElement']();if(null!=_0x1f3751&&_0x1f3751['is']('element','table')){if('insertion'==_0x34d6be['type']){const _0x3e1951=_0x34d6be['getItems']()['filter'](_0x3a7baf=>_0x3a7baf['is']('$textProxy'))['map'](_0x20e1dc=>_0x20e1dc['data']);if(_0x3e1951['length'])return{'type':'insertion','content':o(_0x437714,'*Insert:*\x20%0',o(_0x437714,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e1951['join']('\x20')+'\x22'))};}if('deletion'==_0x34d6be['type']){const _0xddefa3=_0x34d6be['getItems']()['filter'](_0x1345d4=>_0x1345d4['is']('$textProxy'))['map'](_0x3e01b5=>_0x3e01b5['data']);if(_0xddefa3['length'])return{'type':'deletion','content':o(_0x437714,'*Remove:*\x20%0',o(_0x437714,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xddefa3['join']('\x20')+'\x22'))};}}}),_0x498871['descriptionFactory']['registerDescriptionCallback'](_0xdfe643=>{if('tableRow'==_0xdfe643['subType']){const _0x226f98=_0xdfe643['getItems']()['filter'](_0xeb2411=>_0xeb2411['is']('$textProxy'))['map'](_0x33d767=>_0x33d767['data']),_0x16f0a7=this['_getSuggestionCoords'](_0xdfe643),_0x365b0b=_0x16f0a7['maxRow']-_0x16f0a7['minRow']+0x1;if('insertion'==_0xdfe643['type'])return _0x226f98['length']?{'type':'insertion','content':o(_0x437714,'*Insert:*\x20%0',o(_0x437714,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x365b0b,'\x22'+_0x226f98['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x437714,'*Insert:*\x20%0',o(_0x437714,'ELEMENT_TABLE_ROW',_0x365b0b))};if('deletion'==_0xdfe643['type'])return _0x226f98['length']?{'type':'deletion','content':o(_0x437714,'*Remove:*\x20%0',o(_0x437714,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x365b0b,'\x22'+_0x226f98['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x437714,'*Remove:*\x20%0',o(_0x437714,'ELEMENT_TABLE_ROW',_0x365b0b))};}if('tableColumn'==_0xdfe643['subType']){const _0x3fdc91=_0xdfe643['getItems']()['filter'](_0x42df6b=>_0x42df6b['is']('$textProxy'))['map'](_0x4e2432=>_0x4e2432['data']),_0x453d89=this['_getSuggestionCoords'](_0xdfe643),_0x1a9836=_0x453d89['maxColumn']-_0x453d89['minColumn']+0x1;if('insertion'==_0xdfe643['type'])return _0x3fdc91['length']?{'type':'insertion','content':o(_0x437714,'*Insert:*\x20%0',o(_0x437714,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a9836,'\x22'+_0x3fdc91['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x437714,'*Insert:*\x20%0',o(_0x437714,'ELEMENT_TABLE_COLUMN',_0x1a9836))};if('deletion'==_0xdfe643['type'])return _0x3fdc91['length']?{'type':'deletion','content':o(_0x437714,'*Remove:*\x20%0',o(_0x437714,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a9836,'\x22'+_0x3fdc91['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x437714,'*Remove:*\x20%0',o(_0x437714,'ELEMENT_TABLE_COLUMN',_0x1a9836))};}}),_0x498871['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x41b0e4),_0x498871['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x41b0e4),_0x498871['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x379a94),_0x498871['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x379a94),_0x498871['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xa8ab3d),_0x498871['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xa8ab3d),_0x498871['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x536a9b),_0x498871['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x536a9b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x18adb6=this['editor'],_0x502d3b=_0x18adb6['model']['document']['selection'];return(_0x1676de,_0x134b90)=>{_0x18adb6['model']['change'](_0x45df62=>{const {commandName:_0x13487c,commandParams:_0xec470a}=_0x134b90;let _0x4a234d=_0x1676de[0x0]['end']['nodeBefore'];_0xec470a&&_0xec470a[0x0]&&!0x1===_0xec470a[0x0]['forceValue']&&(_0x4a234d=_0x1676de[0x0]['start']['nodeAfter']);const _0x59615e=_0x45df62['createRangeIn'](_0x4a234d);if('$graveyard'==_0x59615e['root']['rootName'])return;const _0x36e927=Array['from'](_0x502d3b['getRanges']())['map'](_0x567d8b=>_0x36a1b3['fromRange'](_0x567d8b));_0x45df62['setSelection'](_0x59615e),_0x18adb6['commands']['get'](_0x13487c)['refresh'](),_0xec470a['push']({'forceDefaultExecution':!0x0}),_0x18adb6['execute'](_0x13487c,..._0xec470a);const _0x3942c4=_0x36e927['filter'](_0x5a8b5a=>'$graveyard'!=_0x5a8b5a['root']['rootName']);_0x3942c4['length']>0x0&&_0x45df62['setSelection'](_0x3942c4);for(const _0x34f0b7 of _0x36e927)_0x34f0b7['detach']();});};}['_getCoordsForCells'](_0x2fe79f){const _0x3b5a57=this['editor']['plugins']['get']('TableUtils');let _0x49fb29=Number['MAX_SAFE_INTEGER'],_0x54894e=Number['MIN_SAFE_INTEGER'],_0x4ed365=Number['MAX_SAFE_INTEGER'],_0x16a328=Number['MIN_SAFE_INTEGER'];for(const _0x51070 of _0x2fe79f){if('$graveyard'==_0x51070['root']['rootName'])continue;const {row:_0x30a049,column:_0x3eacfa}=_0x3b5a57['getCellLocation'](_0x51070),_0x258eb2=_0x51070['hasAttribute']('rowspan')?_0x51070['getAttribute']('rowspan')-0x1:0x0,_0x11bdd0=_0x51070['hasAttribute']('colspan')?_0x51070['getAttribute']('colspan')-0x1:0x0;_0x49fb29=_0x30a049<_0x49fb29?_0x30a049:_0x49fb29,_0x54894e=_0x30a049+_0x258eb2>_0x54894e?_0x30a049+_0x258eb2:_0x54894e,_0x4ed365=_0x3eacfa<_0x4ed365?_0x3eacfa:_0x4ed365,_0x16a328=_0x3eacfa+_0x11bdd0>_0x16a328?_0x3eacfa+_0x11bdd0:_0x16a328;}return{'minRow':_0x49fb29,'maxRow':_0x54894e,'minColumn':_0x4ed365,'maxColumn':_0x16a328};}['_setupColumnsRowsFixing'](){const _0xa1e0b0=this['editor'],_0x4d7bdb=_0xa1e0b0['plugins']['get']('TrackChangesEditing'),_0x36c598=_0xa1e0b0['plugins']['get']('TableUtils');_0xa1e0b0['model']['document']['on']('change:data',()=>{const _0x6670de=Array['from'](_0xa1e0b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10c5bf,data:_0xf3f0f8}of _0x6670de){const {group:_0x583bb9,id:_0x201b93,subType:_0x470d84}=_0x4d7bdb['_splitMarkerName'](_0x10c5bf);if('suggestion'!=_0x583bb9)continue;if(null!=_0xf3f0f8['oldRange'])continue;const _0x5a7844=_0x4d7bdb['getSuggestion'](_0x201b93);this['_tablePostFixingSubtypes']['includes'](_0x470d84)&&this['_tableSuggestions']['add'](_0x5a7844);}},{'priority':'low'});const _0xb6ae9d=(_0x30cad3,_0x422043)=>{let _0x1bf3c3=!0x1;const _0x1834b1=_0x422043['createRangeOn'](_0x30cad3),_0x56e6b8=_0x30cad3['findAncestor']('table'),_0x5dff99=_0x36c598['getCellLocation'](_0x30cad3);for(const _0x71896f of this['_tableSuggestions']){const _0x2dafcf=_0x71896f['subType'],_0x2c1913=_0x2dafcf['startsWith']('tablePaste'),_0x48eece=_0x2dafcf['substr'](_0x2c1913?0xa:0x5),_0x2644f0=_0x48eece['toLowerCase'](),_0x2a611c=_0x2644f0['substr'](0x0,0x3)+'span',_0x104d95='min'+_0x48eece,_0x2820d1='max'+_0x48eece;if(!_0x71896f['isInContent'])continue;if(_0x56e6b8!=_0x71896f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x71896f['isIntersectingWithRange'](_0x1834b1))continue;const _0x564ea9=_0x30cad3['hasAttribute'](_0x2a611c)?_0x30cad3['getAttribute'](_0x2a611c)-0x1:0x0,_0x888bbe=this['_getSuggestionCoords'](_0x71896f),_0x155ede=_0x888bbe[_0x104d95],_0x3b86c0=_0x888bbe[_0x2820d1];_0x155ede<=_0x5dff99[_0x2644f0]&&_0x5dff99[_0x2644f0]+_0x564ea9<=_0x3b86c0&&(_0x71896f['addRange'](_0x1834b1),_0x1bf3c3=!0x0);}return _0x1bf3c3;};_0xa1e0b0['model']['document']['registerPostFixer'](_0x5dab43=>{let _0x494909=!0x1;for(const _0x400095 of _0xa1e0b0['model']['document']['differ']['getChanges']())if('insert'==_0x400095['type']){if('tableRow'==_0x400095['name']){for(const _0x2a50d5 of _0x400095['position']['nodeAfter']['getChildren']())_0x494909=_0x494909||_0xb6ae9d(_0x2a50d5,_0x5dab43);}else'tableCell'==_0x400095['name']&&(_0x494909=_0x494909||_0xb6ae9d(_0x400095['position']['nodeAfter'],_0x5dab43));}return _0x494909;});}['_getSuggestionCoords'](_0x2d861d){return this['_getCoordsForCells'](_0x2d861d['getRanges']()['map'](_0x7e9fea=>_0x7e9fea['start']['nodeAfter']));}}function be(_0x5b67f9){return Array['from'](new Set(_0x5b67f9)['values']());}class vt extends _0x35639c{static get['requires'](){return[It];}['afterInit'](){const _0x38872e=this['editor'],_0x1ba0ad=_0x38872e['model']['document']['selection'],_0x2b441d=_0x38872e['locale'];if(!_0x38872e['plugins']['has']('TableEditing'))return;const _0x52d735=_0x38872e['plugins']['get']('TrackChangesEditing'),_0x1ba2b1=_0x38872e['plugins']['get']('TableUtils'),_0x3a5558=_0x38872e['plugins']['get'](It);_0x3a5558['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x52d735['enableCommand']('mergeTableCells',()=>{const _0x4e927c=_0x1ba2b1['getSelectionAffectedTableCells'](_0x38872e['model']['document']['selection']);_0x38872e['model']['change'](()=>{_0x52d735['markMultiRangeBlockFormat'](_0x4e927c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x38872e['commands']['get']('mergeTableCells')['on']('execute',(_0xd0d01a,_0x3866f6)=>{_0x38872e['commands']['get']('trackChanges')['value']&&(_0x3866f6['length']>0x0&&_0x3866f6[_0x3866f6['length']-0x1]&&_0x3866f6[_0x3866f6['length']-0x1]['forceDefaultExecution']||_0x52d735['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xd0d01a['stop']());},{'priority':'highest'});for(const _0x5f4b5d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x36cb89=_0x38872e['commands']['get'](_0x5f4b5d);_0x52d735['enableCommand'](_0x5f4b5d,()=>{const _0x5045d3=_0x38872e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1e39a2=>_0x1e39a2['is']('element','tableCell')),_0x5388a3=_0x36cb89['value'];_0x38872e['model']['change'](()=>{_0x52d735['markMultiRangeBlockFormat']([_0x5045d3,_0x5388a3],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xb564b of['splitTableCellVertically','splitTableCellHorizontally']){const _0xc1e8b5=_0x38872e['commands']['get'](_0xb564b);_0x52d735['enableCommand'](_0xb564b,()=>{const _0x2e0120=_0x1ba2b1['getSelectionAffectedTableCells'](_0x38872e['model']['document']['selection'])[0x0],_0x14aafd=_0x2e0120['findAncestor']('table'),{column:_0x527989,row:_0x20e810}=_0x1ba2b1['getCellLocation'](_0x2e0120);let _0x2e4493=[];if('horizontally'==_0xc1e8b5['direction']){const _0x531127=_0x1ba2b1['createTableWalker'](_0x14aafd,{'startRow':_0x20e810,'endRow':_0x20e810,'includeAllSlots':!0x0});_0x2e4493=Array['from'](_0x531127)['map'](_0x32312b=>_0x32312b['cell']);}else{const _0x1fc1cc=_0x1ba2b1['createTableWalker'](_0x14aafd,{'column':_0x527989,'includeAllSlots':!0x0});_0x2e4493=Array['from'](_0x1fc1cc)['map'](_0x4e0972=>_0x4e0972['cell']);}_0x38872e['model']['change'](_0xa6c77a=>{_0x52d735['markBlockFormat'](_0xa6c77a['createRangeOn'](_0x2e0120),{'commandName':_0xb564b,'commandParams':[]},_0x2e4493,_0xb564b);});});}_0x52d735['descriptionFactory']['registerDescriptionCallback'](_0x51265f=>{if('formatBlock'!=_0x51265f['type']&&'formatInline'!=_0x51265f['type'])return;const {data:_0x4813a3}=_0x51265f;return _0x4813a3&&'mergeTableCells'==_0x4813a3['commandName']?{'type':'format','content':o(_0x2b441d,'*Merge\x20cells*')}:void 0x0;}),_0x52d735['descriptionFactory']['registerDescriptionCallback'](_0x3c688b=>{if('formatBlock'!=_0x3c688b['type']&&'formatInline'!=_0x3c688b['type'])return;const {data:_0x19e0ca}=_0x3c688b;return _0x19e0ca?'splitTableCellVertically'==_0x19e0ca['commandName']?{'type':'format','content':o(_0x2b441d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x19e0ca['commandName']?{'type':'format','content':o(_0x2b441d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4d37f5=_0x3a5558['_acceptFormatSuggestionCallbackFactory']();for(const _0xc52731 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x52d735['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xc52731,'accept',_0x4d37f5);for(const _0x7567b9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x52d735['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7567b9,'accept',_0x4d37f5);_0x52d735['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x336336=>{_0x38872e['model']['change'](_0x37cbb4=>{const _0x1d5bc9=Array['from'](_0x1ba0ad['getRanges']())['map'](_0xb48acb=>_0x36a1b3['fromRange'](_0xb48acb));_0x37cbb4['setSelection'](_0x336336),_0x38872e['commands']['get']('mergeTableCells')['refresh'](),_0x38872e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x212daa=_0x1d5bc9['filter'](_0x2d2cc5=>'$graveyard'!=_0x2d2cc5['root']['rootName']);_0x212daa['length']>0x0&&_0x37cbb4['setSelection'](_0x212daa);for(const _0x4fcb32 of _0x1d5bc9)_0x4fcb32['detach']();});});for(const _0x196025 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x16d262=_0x38872e['commands']['get'](_0x196025);_0x16d262['on']('set:isEnabled',(_0x219c1e,_0x18857e,_0xd8226)=>{if(_0xd8226){const _0x21727f=_0x38872e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4fe197=>_0x4fe197['is']('element','tableCell'));this['_areMergableCells'](_0x16d262['value'],_0x21727f)||(_0x219c1e['return']=!0x1,_0x219c1e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x356582=this['editor']['commands']['get']('mergeTableCells'),_0x35d2f0=this['editor']['plugins']['get']('TableUtils');if(!_0x356582['isEnabled'])return!0x1;const _0x70ca7c=_0x35d2f0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xd23947 of _0x70ca7c)for(const _0x397be1 of _0x70ca7c)if(_0xd23947!=_0x397be1&&!this['_areMergableCells'](_0xd23947,_0x397be1))return!0x1;return!0x0;}['_areMergableCells'](_0x466bc6,_0x279a4f){const _0x179020=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106965=this['editor']['model']['createRangeOn'](_0x466bc6),_0x5efc91=this['editor']['model']['createRangeOn'](_0x279a4f),_0x31a0a8=new Set(),_0x14cd30=new Set();for(const _0x436eea of _0x179020['getSuggestions']())if(('insertion'==_0x436eea['type']||'deletion'==_0x436eea['type']||'mergeTableCells'==_0x436eea['subType'])&&_0x436eea['isInContent']){for(const _0x112df5 of _0x436eea['getRanges']())_0x112df5['containsRange'](_0x106965,!0x0)&&_0x31a0a8['add'](_0x436eea['type']+':'+_0x436eea['author']['id']),_0x112df5['containsRange'](_0x5efc91,!0x0)&&_0x14cd30['add'](_0x436eea['type']+':'+_0x436eea['author']['id']);}if(_0x31a0a8['size']!=_0x14cd30['size'])return!0x1;for(const _0x38bf26 of _0x31a0a8)if(!_0x14cd30['has'](_0x38bf26))return!0x1;return!0x0;}}class Ct extends _0x35639c{static get['requires'](){return[It];}['afterInit'](){const _0x4b0b6a=this['editor'];if(!_0x4b0b6a['plugins']['has']('TableEditing'))return;const _0x5443c7=_0x4b0b6a['locale'],_0x5efae4=_0x4b0b6a['plugins']['get']('TrackChangesEditing');_0x5efae4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5efae4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5efae4['registerBlockAttribute']('headingRows'),_0x5efae4['registerBlockAttribute']('headingColumns'),_0x5efae4['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5443c7,'FORMAT_HEADER_ROW')),_0x5efae4['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5443c7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x536d24=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ec39a=this['editor']['plugins']['get']('TableUtils'),_0x3e76ea=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x331176({showActiveMarker:_0x1b28cc=!0x0,setDataAttribute:_0x4d3a82=!0x0}={}){return(_0x43ddee,_0x15730d,_0x1ee554)=>{const {type:_0x139e18,id:_0x47a141}=_0x536d24['_splitMarkerName'](_0x15730d['markerName']),_0x3a8947=_0x536d24['getSuggestion'](_0x47a141),_0x47547c=_0x3a8947['data'];if('formatBlock'!=_0x3a8947['type']||!_0x47547c||'setTableColumnHeader'!=_0x47547c['commandName'])return;if(_0x15730d['item'])return void _0x43ddee['stop']();if(!_0x1ee554['consumable']['consume'](_0x15730d['markerRange'],_0x43ddee['name']))return;const _0x1f4c6e=_0x15730d['markerRange']['start']['nodeAfter'],_0x3fd34b=_0x15730d['markerRange']['end']['nodeBefore'],_0x1d2bc2=_0x1f4c6e['parent']['parent'],{column:_0x41668b}=_0x5ec39a['getCellLocation'](_0x1f4c6e),{column:_0x4fb726}=_0x5ec39a['getCellLocation'](_0x3fd34b);for(let _0x49391b=_0x41668b;_0x49391b<=_0x4fb726;_0x49391b++){const _0x58c07a=_0x5ec39a['createTableWalker'](_0x1d2bc2,{'column':_0x49391b,'includeAllSlots':!0x1});for(const _0x40662c of _0x58c07a){const _0xe5ff42=_0x40662c['cell'],_0x5cb633=_0x1ee554['mapper']['toViewElement'](_0xe5ff42);_0x1ee554['writer']['addClass']('ck-suggestion-marker-'+_0x139e18,_0x5cb633),_0x4d3a82&&_0x1ee554['writer']['setAttribute']('data-suggestion',_0x47a141,_0x5cb633),_0x1ee554['mapper']['bindElementToMarker'](_0x5cb633,_0x15730d['markerName']),_0x1b28cc&&(_0x536d24['activeMarkers']['includes'](_0x15730d['markerName'])?_0x1ee554['writer']['addClass']('ck-suggestion-marker--active',_0x5cb633):_0x1ee554['writer']['removeClass']('ck-suggestion-marker--active',_0x5cb633));}}};}_0x536d24['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3e76ea),_0x536d24['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3e76ea),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x331176(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x64728a,_0x182b96,_0x4863ef)=>{_0x4863ef['options']['showSuggestionHighlights']&&_0x331176({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x64728a,_0x182b96,_0x4863ef);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3d5e36,_0x12d0d2,_0x3f998e)=>{const {type:_0x1f1570,id:_0x1a68ad}=_0x536d24['_splitMarkerName'](_0x12d0d2['markerName']),_0x35878f=_0x536d24['getSuggestion'](_0x1a68ad),_0x286849=_0x35878f['data'];if('formatBlock'!=_0x35878f['type']||!_0x286849||'setTableColumnHeader'!=_0x286849['commandName'])return;const _0x31e60b=_0x3f998e['mapper']['markerNameToElements'](_0x12d0d2['markerName']);if(_0x31e60b){for(const _0x59a022 of _0x31e60b)_0x3f998e['writer']['removeClass']('ck-suggestion-marker-'+_0x1f1570,_0x59a022),_0x3f998e['writer']['removeClass']('ck-suggestion-marker--active',_0x59a022),_0x3f998e['writer']['removeAttribute']('data-suggestion',_0x59a022),_0x3f998e['mapper']['unbindElementFromMarkerName'](_0x59a022,_0x12d0d2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d4b99=this['editor'],_0x1bbc63=_0x5d4b99['locale'];function _0x320196(_0x33a82b){return{'type':'format','content':o(_0x1bbc63,'*Format:*\x20%0',_0x33a82b)};}_0x5d4b99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fa382=>{if('formatBlock'!=_0x3fa382['type'])return;const {data:_0x2186f1}=_0x3fa382;if(_0x2186f1){if('setTableRowHeader'==_0x2186f1['commandName']){const _0xfc4080=_0x2186f1['commandParams'][0x0]['forceValue'];return _0x320196(o(_0x1bbc63,_0xfc4080?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2186f1['commandName']){const _0x146d97=_0x2186f1['commandParams'][0x0]['forceValue'];return _0x320196(o(_0x1bbc63,_0x146d97?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x3bf5ce=>[_0x3bf5ce,null]));class _t extends _0x35639c{static get['requires'](){return[It];}['afterInit'](){const _0x11c7ea=this['editor'];if(!_0x11c7ea['plugins']['has']('TableClipboard'))return;const _0xd20e21=_0x11c7ea['plugins']['get']('TrackChangesEditing'),_0x206754=_0x11c7ea['plugins']['get']('TableUtils'),_0x22f1f4=_0x11c7ea['plugins']['get'](It),_0x5846af=_0x11c7ea['plugins']['get']('TableClipboard');_0x22f1f4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x11c7ea['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x11c7ea['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d0120=null;_0x11c7ea['model']['on']('insertContent',(_0x593b1b,_0xe0d8c2)=>{const [_0x292cfa,_0x17c72]=_0xe0d8c2,_0x4e49d6=_0xe0d8c2[_0xe0d8c2['length']-0x1];_0x4e49d6&&_0x4e49d6['forceDefaultExecution']||_0xd20e21['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x440ea6,_0x4c4e74,_0x29f982,_0x340c2a,_0x1f1fd7){if(_0x4c4e74&&!_0x4c4e74['is']('documentSelection'))return!0x1;const _0x5751d8=_0x1f1fd7['getTableIfOnlyTableInContent'](_0x440ea6,_0x29f982);if(!_0x5751d8||!Re(_0x5751d8,void 0x0,_0x340c2a))return!0x1;const _0x49a893=_0x340c2a['getSelectionAffectedTableCells'](_0x29f982['document']['selection']);if(!_0x49a893['length'])return!0x1;const _0x1f8ac3=_0x49a893[0x0]['findAncestor']('table'),_0x10d29e=_0x340c2a['getRowIndexes'](_0x49a893),_0x1c574b=_0x340c2a['getColumnIndexes'](_0x49a893),_0x1868c6={'startRow':_0x10d29e['first'],'endRow':_0x10d29e['last'],'startColumn':_0x1c574b['first'],'endColumn':_0x1c574b['last']};return 0x1==_0x49a893['length']&&(_0x1868c6['endRow']+=_0x340c2a['getRows'](_0x5751d8)-0x1,_0x1868c6['endColumn']+=_0x340c2a['getColumns'](_0x5751d8)-0x1),Re(_0x1f8ac3,_0x1868c6,_0x340c2a);}(_0x292cfa,_0x17c72,_0x11c7ea['model'],_0x206754,_0x5846af)&&(_0x593b1b['stop'](),_0x1d0120={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x11c7ea['model']['change'](()=>{_0x11c7ea['model']['insertContent'](_0xe0d8c2[0x0],_0xe0d8c2[0x1],_0xe0d8c2[0x2],{'forceDefaultExecution':!0x0});const _0x2ec1d6=_0xd5eb17(),{rowInsertionRanges:_0x438652,columnInsertionRanges:_0x28d722,insertionRanges:_0x4832d4,deletionRanges:_0x3381e8,cells:_0x31e111}=_0x1d0120;_0x438652['length']&&_0xd20e21['markMultiRangeInsertion'](_0x438652,'tablePasteRow',{'tablePasteChainId':_0x2ec1d6}),_0x28d722['length']&&_0xd20e21['markMultiRangeInsertion'](_0x28d722,'tablePasteColumn',{'tablePasteChainId':_0x2ec1d6}),_0x4832d4['length']&&(_0xd20e21['markMultiRangeInsertion'](_0x4832d4,'tablePaste',{'tablePasteChainId':_0x2ec1d6,'skipNestingCheck':!0x0}),_0x4832d4['forEach'](_0xb46076=>_0xb46076['detach']?.())),_0x3381e8['length']&&(_0xd20e21['markMultiRangeDeletion'](_0x3381e8,'tablePaste',{'tablePasteChainId':_0x2ec1d6,'skipNestingCheck':!0x0}),_0x3381e8['forEach'](_0xdb6a99=>_0xdb6a99['detach']?.()));const _0x5f5124=_0xd20e21['markMultiRangeBlockFormat'](_0x31e111['map'](({element:_0x1ddd87})=>_0x1ddd87),{'formatGroupId':_0xd5eb17()},[],'tablePasteCell',{'tablePasteChainId':_0x2ec1d6});if(_0x5f5124){const _0x16d51d=_0x5f5124['getMarkers'](),_0x465103=[];for(const {element:_0x1cac96,attributes:_0x258525}of _0x31e111){if(!_0x258525)continue;const _0x121a93=_0x11c7ea['model']['createRangeOn'](_0x1cac96),_0x37f7af=_0x16d51d['find'](_0x3c5eb6=>_0x3c5eb6['getRange']()['isEqual'](_0x121a93));_0x37f7af&&_0x465103['push']([_0x37f7af['name'],_0x258525]);}_0x465103['length']&&_0x5f5124['setAttribute']('markerAttributes',Object['fromEntries'](_0x465103));}_0x1d0120=null;}));},{'priority':_0x341dfe['high']+0xa}),_0x11c7ea['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1e0e1f,_0x29aa95)=>{const [_0x4ada9f,_0x1517bb,,_0x469ccd]=_0x29aa95;if(!_0x1d0120)return;_0x1e0e1f['stop']();const _0x148e51=_0x4ada9f['cell'],_0x3cb6a9=_0x1517bb,_0x7e21d3=ke(_0x148e51),_0x266290=ke(_0x3cb6a9);_0x1e0e1f['return']=_0x148e51;let _0x7e8522=null,_0x31f328=null;if(_0x266290||_0x7e21d3){if(_0x7e21d3&&!_0x266290){_0x469ccd['remove'](_0x148e51['getChild'](0x0));for(const _0x28023c of Array['from'](_0x3cb6a9['getChildren']()))_0x469ccd['insert'](_0x28023c,_0x148e51,'end');const _0x4af147=_0x1d0120['rowInsertionIndexes']['includes'](_0x4ada9f['row']),_0x35a2be=_0x1d0120['columnInsertionIndexes']['includes'](_0x4ada9f['column']);_0x4af147||_0x35a2be||(_0x7e8522=_0x36a1b3['fromRange'](_0x469ccd['createRangeIn'](_0x148e51)));}else _0x266290&&!_0x7e21d3&&(_0x31f328=_0x469ccd['createRangeIn'](_0x148e51));}else{const _0x10a26d=_0x469ccd['createElement']('tableCellSuggestion'),_0x40f669=_0x469ccd['createElement']('tableCellSuggestion');_0x469ccd['wrap'](_0x469ccd['createRangeIn'](_0x148e51),_0x40f669),_0x469ccd['insert'](_0x10a26d,_0x148e51,0x0);for(const _0x1b25c7 of Array['from'](_0x3cb6a9['getChildren']()))_0x469ccd['insert'](_0x1b25c7,_0x10a26d,'end');_0x7e8522=_0x36a1b3['fromRange'](_0x469ccd['createRangeOn'](_0x10a26d)),_0x31f328=_0x36a1b3['fromRange'](_0x469ccd['createRangeOn'](_0x40f669));}const _0x11a799=Array['from'](_0x3cb6a9['getAttributes']())['filter'](([_0x549187])=>Pe['includes'](_0x549187));_0x1d0120['cells']['push']({'element':_0x148e51,'attributes':_0x11a799['length']?Object['fromEntries'](_0x11a799):null}),_0x7e8522&&_0x1d0120['insertionRanges']['push'](_0x7e8522),_0x31f328&&_0x1d0120['deletionRanges']['push'](_0x31f328);},{'priority':'high'}),_0x206754['on']('insertColumns',(_0x6fa8c3,_0x5f534a)=>{const [_0x21e040,_0xd9cbf0={}]=_0x5f534a;if(!_0x1d0120)return;const _0x449ee7=_0xd9cbf0['at']||0x0,_0x5416d0=_0xd9cbf0['columns']||0x1;_0x1d0120['columnInsertionIndexes']=new Array(_0x5416d0)['fill'](_0x449ee7)['map']((_0x2f798c,_0x34042c)=>_0x2f798c+_0x34042c);for(const {cell:_0xf408c5}of _0x206754['createTableWalker'](_0x21e040,{'startColumn':_0x449ee7,'endColumn':_0x449ee7+_0x5416d0-0x1}))_0x1d0120['columnInsertionRanges']['push'](_0x11c7ea['model']['createRangeOn'](_0xf408c5));},{'priority':'low'}),_0x206754['on']('insertRows',(_0x284303,_0x427bf9)=>{const [_0x793f6d,_0x4a8684={}]=_0x427bf9;if(!_0x1d0120)return;const _0x5551b3=_0x4a8684['at']||0x0,_0x1cf755=_0x4a8684['rows']||0x1;_0x1d0120['rowInsertionIndexes']=new Array(_0x1cf755)['fill'](_0x5551b3)['map']((_0x5bfac1,_0x5e4a5b)=>_0x5bfac1+_0x5e4a5b);for(const {cell:_0x58c00e}of _0x206754['createTableWalker'](_0x793f6d,{'startRow':_0x5551b3,'endRow':_0x5551b3+_0x1cf755-0x1}))_0x1d0120['rowInsertionRanges']['push'](_0x11c7ea['model']['createRangeOn'](_0x58c00e));},{'priority':'low'}),_0xd20e21['descriptionFactory']['registerDescriptionCallback'](_0x5c6ab0=>{if(_0x5c6ab0['subType']&&_0x5c6ab0['subType']['startsWith']('tablePaste'))return _0x5c6ab0['previous']?{}:{'type':'insertion','content':o(_0x11c7ea['locale'],'*Replace\x20table\x20cells*')};});const _0x2139cb=()=>!0x1;for(const _0x55b7ba of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xd20e21['_suggestionFactory']['registerCustomCallback']('insertion',_0x55b7ba,'join',_0x2139cb),_0xd20e21['_suggestionFactory']['registerCustomCallback']('deletion',_0x55b7ba,'join',_0x2139cb),_0xd20e21['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x55b7ba,'join',_0x2139cb);_0xd20e21['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2139cb),_0xd20e21['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x37984a,_0x171735,_0x5b3cff)=>{const _0x59f9d2=_0x37984a['map'](_0x4db2e1=>_0x4db2e1['getContainedElement']())['filter'](_0x2fcc91=>_0x2fcc91),_0x39d889=new Map(_0x59f9d2['map'](_0x39b0be=>[_0x39b0be,null]));if(_0x1d0120){for(const {element:_0x1129c5,attributes:_0x2c6937}of _0x1d0120['cells'])_0x2c6937&&_0x39d889['set'](_0x1129c5,_0x2c6937);}else{if(_0x5b3cff&&_0x5b3cff['markerAttributes'])for(const [_0x50a026,_0xed6322]of Object['entries'](_0x5b3cff['markerAttributes'])){const _0x768672=_0x11c7ea['model']['markers']['get'](_0x50a026),_0xe56358=_0x768672?_0x768672['getRange']()['getContainedElement']():null;_0xe56358&&_0x39d889['set'](_0xe56358,_0xed6322);}}_0x11c7ea['model']['change'](_0x1fdf4a=>{for(const [_0x3e3da6,_0x192076]of _0x39d889)_0x1fdf4a['setAttributes']({...we,..._0x192076},_0x3e3da6);});});const _0x218248=(_0x355ace,_0x5ee6da)=>{_0xd20e21['_suggestionFactory']['registerCustomCallback'](_0x355ace,'tablePaste',_0x5ee6da,(_0x263116,_0xe85b41,_0x2da0cb)=>{_0x11c7ea['model']['change'](_0x2cff81=>{const _0x58a18b=[];for(const _0x53323e of _0x263116){const _0x416c1a=_0x53323e['start']['nodeAfter'];_0x416c1a['is']('element','tableCellSuggestion')&&_0x58a18b['push'](_0x416c1a);}_0xd20e21['_suggestionFactory']['getSuggestionCallback'](_0x355ace,null,_0x5ee6da)(_0x263116,_0xe85b41,_0x2da0cb);for(const _0xf32e62 of _0x58a18b)'$graveyard'!=_0xf32e62['root']['rootName']&&_0x2cff81['unwrap'](_0xf32e62);});});};_0x218248('insertion','accept'),_0x218248('insertion','discard'),_0x218248('deletion','accept'),_0x218248('deletion','discard'),_0xd20e21['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x272fc5=>{const _0x585825=_0x272fc5['map'](_0x4e3f89=>_0x4e3f89['getContainedElement']()),_0x4eb577=_0x585825[0x0]['findAncestor']('table'),{minRow:_0x30923a,maxRow:_0x17b29f}=_0x22f1f4['_getCoordsForCells'](_0x585825);_0x206754['removeRows'](_0x4eb577,{'at':_0x30923a,'rows':_0x17b29f-_0x30923a+0x1});}),_0xd20e21['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2eeca=>{const _0x5373e7=_0x2eeca['map'](_0x23de7b=>_0x23de7b['getContainedElement']()),_0x4783a4=_0x5373e7[0x0]['findAncestor']('table'),{minColumn:_0x43d128,maxColumn:_0xb5c0ca}=_0x22f1f4['_getCoordsForCells'](_0x5373e7);_0x206754['removeColumns'](_0x4783a4,{'at':_0x43d128,'columns':_0xb5c0ca-_0x43d128+0x1});});const _0x754dd9=(_0x22daba,_0x34151e)=>{if(!_0x34151e['subType']||!_0x34151e['subType']['startsWith']('tablePaste'))return;const _0x8607b8=_0x34151e['attributes']['tablePasteChainId'],_0x2d9f8e=_0xd20e21['getSuggestions']()['filter'](_0x1d64b1=>_0x1d64b1['isInContent']&&_0x1d64b1['attributes']&&_0x1d64b1['attributes']['tablePasteChainId']==_0x8607b8);_0x2d9f8e['length']&&_0x34151e['getAllAdjacentSuggestions']()['length']!=_0x2d9f8e['length']&&_0x2d9f8e['reduce']((_0x6bf954,_0x52fe19)=>(_0x6bf954['next']=_0x52fe19,_0x52fe19['previous']=_0x6bf954,_0x52fe19));};function _0x228106(_0x2a94b7,_0x379cee=!0x0){const {id:_0x33b429,authorId:_0x5bf7e8}=_0xd20e21['_splitMarkerName'](_0x2a94b7['markerName']),_0x2a6765=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2bad33=_0xd20e21['activeMarkers']['includes'](_0x2a94b7['markerName']);return _0x2bad33&&_0x2a6765['push']('ck-suggestion-marker--active'),{'classes':_0x2a6765,'attributes':{'data-suggestion':_0x33b429,'data-author-id':_0x5bf7e8},'priority':_0x2bad33&&_0x379cee?0xbc2:0xbb8};}_0xd20e21['on']('suggestionLoaded',_0x754dd9,{'priority':'high'}),_0xd20e21['on']('suggestionUnloaded',_0x754dd9,{'priority':'high'}),_0x11c7ea['model']['document']['registerPostFixer'](()=>{let _0x146b97=!0x1;const _0x536f96=Array['from'](_0x11c7ea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5038ed,data:_0x46e59d}of _0x536f96){const {group:_0x1a2987,type:_0x2b07bd,id:_0x4b7a83}=_0xd20e21['_splitMarkerName'](_0x5038ed);if('suggestion'!=_0x1a2987||'deletion'!=_0x2b07bd||_0x46e59d['oldRange'])continue;if(!_0xd20e21['hasSuggestion'](_0x4b7a83))continue;const _0x234c53=_0xd20e21['getSuggestion'](_0x4b7a83)['getRanges'](),_0x405f3f=_0x11c7ea['plugins']['get']('Users')['me'];for(const _0x1cb732 of _0xd20e21['getSuggestions']()){if(!_0x1cb732['isInContent']||_0x1cb732['author']!=_0x405f3f)continue;if('formatBlock'!=_0x1cb732['type']||'tablePasteCell'!=_0x1cb732['subType'])continue;if(_0x1cb732['getRanges']()['every'](_0x50e662=>_0x234c53['some'](_0x288ab6=>_0x288ab6['containsRange'](_0x50e662,!0x0)))){for(const _0x13e781 of _0x1cb732['getAllAdjacentSuggestions']())_0x13e781['isInContent']&&(_0x13e781['discard'](),_0x146b97=!0x0);}}}return _0x146b97;}),_0x11c7ea['model']['document']['registerPostFixer'](_0xeeda1b=>{const _0x7a2e89=_0x11c7ea['commands']['get']('redo');if(!_0x7a2e89||!_0x7a2e89['_createdBatches']['has'](_0xeeda1b['batch']))return!0x1;let _0x42ac87=!0x1;const _0x4335eb=_0x11c7ea['plugins']['get']('Users')['me'],_0x15046f=_0x11c7ea['model']['document']['differ']['getChanges'](),_0x7afdc6=Array['from'](_0x11c7ea['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xdabd9d,data:_0x2b46cb})=>{const {group:_0x3e613d,subType:_0x3be2dd,authorId:_0x3a4c12}=_0xd20e21['_splitMarkerName'](_0xdabd9d);return'suggestion'==_0x3e613d&&'tablePaste'==_0x3be2dd&&_0x3a4c12==_0x4335eb['id']&&!_0x2b46cb['oldRange'];});for(const _0x4ab479 of _0x15046f){if('insert'!=_0x4ab479['type']||'tableCellSuggestion'!=_0x4ab479['name']||0x1!=_0x4ab479['length'])continue;const _0x346767=_0xeeda1b['createRange'](_0x4ab479['position'],_0x4ab479['position']['getShiftedBy'](0x1));if(!_0x7afdc6['find'](({data:_0x1e53e4})=>_0x1e53e4['newRange']['isEqual'](_0x346767))){for(const {name:_0x597dcd,data:_0x2f88a5}of _0x7afdc6)if(_0x346767['containsRange'](_0x2f88a5['newRange'])){_0xeeda1b['updateMarker'](_0x597dcd,{'range':_0x346767}),_0x42ac87=!0x0;break;}}}return _0x42ac87;}),_0x11c7ea['model']['document']['registerPostFixer'](_0x32aed6=>{let _0x38c30a=!0x1;const _0x2b0d18=_0x11c7ea['plugins']['get']('Users')['me'],_0x28be9c=_0xd20e21['getSuggestions']()['filter'](_0x348aec=>_0x348aec['isInContent']&&_0x348aec['author']==_0x2b0d18),_0x41c0d8=new Set(),_0x240e58=new Set();for(const _0x2f7c0b of _0x28be9c)if('tablePaste'==_0x2f7c0b['subType'])for(const _0x38b2f0 of _0x2f7c0b['getMarkers']()){const _0x331009=_0x38b2f0['getRange']()['getContainedElement']();if(_0x331009){if(_0x331009['is']('element','tableCellSuggestion')&&ke(_0x331009)){_0x2f7c0b['removeMarker'](_0x38b2f0['name']),_0x41c0d8['add'](_0x331009),_0x38c30a=!0x0;const _0x1d8129=_0x331009['nextSibling'],_0x51811e=_0x331009['previousSibling'],_0x2cb212=_0x1d8129&&_0x1d8129['is']('element','tableCellSuggestion'),_0x3b0016=_0x51811e&&_0x51811e['is']('element','tableCellSuggestion');_0x2cb212&&!_0x41c0d8['has'](_0x1d8129)&&_0x240e58['add'](_0x1d8129),_0x3b0016&&!_0x41c0d8['has'](_0x51811e)&&_0x240e58['add'](_0x51811e);}else _0x331009['is']('element','paragraph')&&_0x331009['isEmpty']&&(_0x2f7c0b['removeMarker'](_0x38b2f0['name']),_0x38c30a=!0x0);}}else{if('tablePasteCell'==_0x2f7c0b['subType']){if(!_0x2f7c0b['attributes']||!_0x2f7c0b['attributes']['tablePasteChainId'])continue;const _0x319c43=_0x2f7c0b['attributes']['markerAttributes'];if(_0x319c43&&Object['keys'](_0x319c43)['length'])continue;const _0x207cf4=_0x2f7c0b['attributes']['tablePasteChainId'];let _0x348675=!0x0,_0xef80a2=!0x0;for(const _0x342c2e of _0x28be9c)if(_0x342c2e['subType']&&_0x342c2e['subType']['startsWith']('tablePaste')){if(!_0x342c2e['attributes']['tablePasteChainId']){_0xef80a2=!0x1;break;}if(_0x342c2e['id']!=_0x2f7c0b['id']&&_0x342c2e['attributes']['tablePasteChainId']==_0x207cf4){_0x348675=!0x1;break;}}_0xef80a2&&_0x348675&&(_0x2f7c0b['removeMarkers'](),_0x38c30a=!0x0);}}for(const _0x2c66c1 of _0x41c0d8)_0x32aed6['remove'](_0x2c66c1);for(const _0x3ee904 of _0x240e58)_0x32aed6['unwrap'](_0x3ee904);return _0x38c30a;}),_0x11c7ea['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4a541e,_0x430ade)=>_0x228106(_0x4a541e),'converterPriority':'high'}),_0x11c7ea['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x42e70f,_0x44ff7e)=>_0x44ff7e['options']['showSuggestionHighlights']?_0x228106(_0x42e70f,!0x1):null,'converterPriority':'high'});const _0x34b110=_0x11c7ea['editing']['view'];this['listenTo'](_0x34b110['document'],'clipboardOutput',(_0x507b0a,_0x1a8aca)=>{const _0x26a6aa=[];for(const _0x56a5c9 of _0x34b110['createRangeIn'](_0x1a8aca['content'])['getItems']())_0x56a5c9['is']('element','suggestion-td')&&_0x26a6aa['push'](_0x56a5c9);_0x34b110['change'](_0x2a1a12=>{for(const _0x518847 of _0x26a6aa)_0x2a1a12['move'](_0x2a1a12['createRangeIn'](_0x518847),_0x2a1a12['createPositionBefore'](_0x518847)),_0x2a1a12['remove'](_0x518847);});});}}function ke(_0x5c72c4){if(_0x5c72c4['isEmpty'])return!0x0;const _0x294b4f=_0x5c72c4['getChild'](0x0);return _0x294b4f['is']('element','paragraph')&&_0x294b4f['isEmpty'];}function Re(_0x56c81a,_0x261e60={},_0x1fdee8){for(const {isAnchor:_0xece3a,cellHeight:_0x2bdfdd,cellWidth:_0x45faba}of _0x1fdee8['createTableWalker'](_0x56c81a,{'includeAllSlots':!0x0,..._0x261e60}))if(!_0xece3a||0x1!=_0x2bdfdd||0x1!=_0x45faba)return!0x1;return!0x0;}class Nt extends _0x35639c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4be827=this['editor']['plugins']['get']('TrackChangesEditing');_0x4be827['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4be827['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4be827['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be827['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4be827['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4be827['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2a943d,_0x502c8e){const _0x61efcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11a23f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4618c1=_0x502c8e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3b1f8c=_0x11a23f['getColumnGroupElement'](_0x4618c1);let _0x38821b=_0x3b1f8c?_0x11a23f['getTableColumnsWidths'](_0x3b1f8c):null,_0x2899f7=_0x4618c1['getAttribute']('tableWidth')||null;const _0x553639=_0x502c8e['tableWidth']||_0x2899f7,_0x2e3410=_0x502c8e['columnWidths']||_0x38821b,_0x349f0e=this['editor']['plugins']['get']('Users')['me'];for(const _0x363324 of _0x61efcd['getSuggestions']()){const _0x3d839f=_0x363324['getContainedElement']();if('resizeTable'===_0x363324['subType']&&_0x3d839f===_0x4618c1){_0x363324['author']!==_0x349f0e&&_0x363324['discard']();const _0x485f28=_0x363324['data']['commandParams'];_0x2899f7=_0x485f28[0x0]['tableWidth'],_0x38821b=_0x485f28[0x0]['columnWidths'];break;}}_0x2a943d({'table':_0x4618c1,'tableWidth':_0x553639,'columnWidths':_0x2e3410}),_0x61efcd['markBlockFormat'](_0x4618c1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2899f7,'columnWidths':_0x38821b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x53fbe4){if('formatBlock'!=_0x53fbe4['type']&&'formatInline'!=_0x53fbe4['type'])return;const {data:_0x35ec28}=_0x53fbe4;if(_0x35ec28&&'resizeTable'===_0x35ec28['formatGroupId']){const _0x3fcd22='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3fcd22)};}}}class Dt extends _0x35639c{['afterInit'](){const _0x128505=this['editor'];_0x128505['plugins']['has']('Template')&&_0x128505['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x35639c{['afterInit'](){const _0x1e577e=this['editor'];if(!_0x1e577e['commands']['get']('insertTableOfContents'))return;_0x1e577e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5c500b=_0x1e577e['plugins']['get']('TrackChangesEditing'),_0x791260=_0x1e577e['locale'];_0x5c500b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x815693=>o(_0x791260,'ELEMENT_TABLE_OF_CONTENTS',_0x815693));}}class $t extends _0x35639c{['afterInit'](){const _0x22fd09=this['editor'];if(!_0x22fd09['plugins']['has']('Title'))return;const _0x4e1275=_0x22fd09['plugins']['get']('TrackChangesEditing');_0x4e1275['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x22fd09['locale'],'ELEMENT_TITLE')),_0x22fd09['model']['document']['registerPostFixer'](_0x1f4926=>{let _0x3c9f78=!0x1;const _0x4c1700=Array['from'](_0x22fd09['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x244083,data:_0x2f7afd}of _0x4c1700){const {group:_0x1432a9}=_0x4e1275['_splitMarkerName'](_0x244083);if('suggestion'!==_0x1432a9||!_0x2f7afd['newRange'])continue;const _0x36a1d3=_0x2f7afd['newRange'],_0x781504=_0x36a1d3['end']['nodeBefore'];if(!_0x781504||!_0x781504['is']('element','title-content'))continue;if(!_0x36a1d3['start']['isTouching'](_0x36a1d3['end']))continue;const _0x4efa4=_0x22fd09['model']['schema']['getNearestSelectionRange'](_0x36a1d3['end'],'forward');if(_0x4efa4&&_0x4efa4['isCollapsed']){const _0x346b85=_0x1f4926['createRange'](_0x36a1d3['start'],_0x4efa4['start']);_0x346b85['isEqual'](_0x36a1d3)||(_0x1f4926['updateMarker'](_0x244083,{'range':_0x346b85}),_0x3c9f78=!0x0);}_0x3c9f78||(_0x1f4926['removeMarker'](_0x244083),_0x3c9f78=!0x0);}return _0x3c9f78;});}}class Bt extends _0x35639c{['afterInit'](){const _0x215d66=this['editor'],_0x1c8f06=_0x215d66['plugins']['get']('TrackChangesEditing');_0x215d66['plugins']['has']('UndoEditing')&&(_0x1c8f06['enableCommand']('undo'),_0x1c8f06['enableCommand']('redo'));}}class xt extends _0x35639c{static get['requires'](){return[It];}['afterInit'](){const _0x5287bf=this['editor'];if(!_0x5287bf['plugins']['has']('TableCaptionEditing'))return;_0x5287bf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x35639c{['tableProperties'];['tableCellProperties'];constructor(_0xeb3276){super(_0xeb3276),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 _0x455f2d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x597e0c of this['tableProperties'])_0x455f2d['enableCommand'](_0x597e0c,(_0x5eebf9,_0x5610b0)=>{const _0x101f5c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x597e0c,[_0x101f5c],this['tableProperties'],'tableProperties',_0x5eebf9,_0x5610b0);});_0x455f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x455f2d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x455f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x38bbb4,_0x5d757b)=>this['handleDiscardAction'](this['tableProperties'],_0x38bbb4,_0x5d757b)),_0x455f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5217ac of this['tableCellProperties'])_0x455f2d['enableCommand'](_0x5217ac,(_0x55476a,_0x456b72)=>{const _0x5289f9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5217ac,_0x5289f9,this['tableCellProperties'],'tableCellProperties',_0x55476a,_0x456b72);});_0x455f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x455f2d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x455f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x367a7d,_0x1bd6f8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x367a7d,_0x1bd6f8)),_0x455f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x455f2d['descriptionFactory']['registerDescriptionCallback'](_0x44bf04=>this['handleSuggestionDescription'](_0x44bf04));}['_handlePropertyChange'](_0x1b776f,_0x440b22,_0x1308ae,_0x9ccd67,_0x44f359,_0x5104e4){const _0x2d6c40=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5104e4['batch'],()=>{for(const _0x57ba42 of _0x440b22){if(this['_getSuggestion'](_0x57ba42,_0x9ccd67))_0x44f359(_0x5104e4);else{const _0x2caf4f={};for(const _0x2c807b of _0x1308ae){const _0x36a6df=_0x57ba42['getAttribute'](_0x2c807b);void 0x0!==_0x36a6df&&(_0x2caf4f[_0x2c807b]=_0x36a6df);}_0x44f359(_0x5104e4),_0x2d6c40['markBlockFormat'](_0x57ba42,{'commandParams':[_0x2caf4f]},[],_0x9ccd67);}}});}['handleDiscardAction'](_0x3e5222,_0x177eba,_0x5aac98){const _0x32176a=_0x177eba[0x0]['start']['nodeAfter'],_0x16ae4c=_0x5aac98['commandParams'][0x0];this['editor']['model']['change'](_0x4ebdf0=>{for(const _0x3d56ab of _0x3e5222)void 0x0!==_0x16ae4c[_0x3d56ab]?_0x4ebdf0['setAttribute'](_0x3d56ab,_0x16ae4c[_0x3d56ab],_0x32176a):_0x4ebdf0['removeAttribute'](_0x3d56ab,_0x32176a);});}['handleSuggestionDescription'](_0xdff560){if(_0xdff560['data'])switch(_0xdff560['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'](_0x241cab,_0x4fa626){const _0x1c39a6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x34e0f3 of _0x1c39a6['getSuggestions']({'skipNotAttached':!0x0})){const _0x381cef=_0x34e0f3['getContainedElement']();if(_0x34e0f3['subType']===_0x4fa626&&_0x381cef===_0x241cab)return _0x34e0f3;}return null;}}const m='$elementName';class p extends _0x35639c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3dd7cd,_0xfaaf6f,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(_0x2fde14){function _0x45f028(_0x1b2513){return _0x1b2513['map'](_0x5800cf=>String['fromCharCode'](_0x5800cf))['join']('');}super(_0x2fde14),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xae14d5,_0x4333e1,_0xa0ddc5,_0x52d7e7)=>{this['_model']['change'](()=>{for(const _0x5c0d1e of[..._0x52d7e7,..._0xa0ddc5])this['_model']['markers']['has'](_0x5c0d1e)&&_0x2fde14['editing']['reconvertMarker'](_0x5c0d1e);});}),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']=_0x2fde14['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(),_0x2fde14['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2fde14['config']['get']('trackChanges.trackFormatChanges'),_0x2fde14['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2fde14['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2fde14,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x45f028([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x45f028([0x34,0x30,0x34,0x38,0x31,0x38,0x32,0x30]);}['init'](){const _0x1e10b1=this['editor'],_0x1f6334=(_0x48a135,_0x49c808)=>{if('attribute'!=_0x48a135)return'ck-suggestion-marker-'+_0x48a135;const _0xa1ef1d=_0x49c808['split']('|')[0x0];return this['_isBlockAttribute'](_0xa1ef1d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1e10b1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x36b1bf=>{const {id:_0x31a588,authorId:_0x37ba79,type:_0x4efc7a,subType:_0x61e216}=this['_splitMarkerName'](_0x36b1bf['markerName']),_0x142567=['ck-suggestion-marker',_0x1f6334(_0x4efc7a,_0x61e216)];let _0x2ca792=0xbb8;return this['activeMarkers']['includes'](_0x36b1bf['markerName'])&&(_0x142567['push']('ck-suggestion-marker--active'),_0x2ca792=0xbc2),'deletion'==_0x4efc7a&&(_0x2ca792+=0x5),{'classes':_0x142567,'attributes':{'data-suggestion':_0x31a588,'data-author-id':_0x37ba79},'priority':_0x2ca792};}}),_0x1e10b1['conversion']['for']('dataDowncast')['add'](_0x1a7a70=>{_0x1a7a70['on']('addMarker:suggestion',(_0x1cc01e,_0x91ebd6,_0x2e02ac)=>{if(!_0x2e02ac['options']['showSuggestionHighlights'])return;const _0x2bdcad=_0x91ebd6['item'];if(!_0x2bdcad)return;const _0x134238=_0x2e02ac['mapper']['toViewElement'](_0x2bdcad);_0x1e10b1['model']['schema']['isObject'](_0x2bdcad)&&_0x134238&&!_0x134238['getCustomProperty']('widget')&&_0x134238['is']('containerElement')&&_0x4645ac(_0x134238,_0x2e02ac['writer']);},{'priority':'high'});}),_0x1e10b1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5bc6a3,_0x5a6ad6)=>{if(!_0x5a6ad6['options']['showSuggestionHighlights'])return null;const {type:_0x3553df,subType:_0x4fe950}=this['_splitMarkerName'](_0x5bc6a3['markerName']);return{'classes':['ck-suggestion-marker',_0x1f6334(_0x3553df,_0x4fe950)],'priority':0xbb8};}});const _0x5b948c=({showActiveMarkers:_0x177650=!0x0,isAttributeSuggestion:_0x588a03=!0x1}={})=>(_0x59cea4,_0x7c3b65,_0x145180)=>{if(!_0x7c3b65['item'])return;const {id:_0x370aa8,authorId:_0x5475b4}=this['_splitMarkerName'](_0x7c3b65['markerName']);if(_0x588a03){const _0x1275ce=this['_suggestions']['get'](_0x370aa8),_0x133b4f=this['_getAttributeKey'](_0x1275ce);if(!this['_isBlockAttribute'](_0x133b4f))return;}if(_0x7c3b65['item']['is']('selection'))return void _0x145180['consumable']['consume'](_0x7c3b65['item'],_0x59cea4['name']);const _0x3af9b2=_0x145180['mapper']['toViewElement'](_0x7c3b65['item']);if(_0x7c3b65['item']['is']('element')&&_0x1e10b1['model']['schema']['isBlock'](_0x7c3b65['item'])&&!_0x3af9b2['getCustomProperty']('addHighlight')){_0x145180['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3af9b2),_0x145180['writer']['setAttribute']('data-suggestion',_0x370aa8,_0x3af9b2),_0x145180['writer']['setAttribute']('data-author-id',_0x5475b4,_0x3af9b2),_0x145180['mapper']['bindElementToMarker'](_0x3af9b2,_0x7c3b65['markerName']),_0x177650&&(this['activeMarkers']['includes'](_0x7c3b65['markerName'])?_0x145180['writer']['addClass']('ck-suggestion-marker--active',_0x3af9b2):_0x145180['writer']['removeClass']('ck-suggestion-marker--active',_0x3af9b2));for(const _0x49ffde of _0x1e10b1['model']['createRangeIn'](_0x7c3b65['item'])['getItems']())_0x145180['consumable']['consume'](_0x49ffde,_0x59cea4['name']);_0x145180['consumable']['consume'](_0x7c3b65['item'],_0x59cea4['name']);}};_0x1e10b1['conversion']['for']('dataDowncast')['add'](_0x46da49=>{_0x46da49['on']('addMarker:suggestion:formatBlock',(_0x879670,_0x55ec0e,_0x1d6db5)=>{_0x1d6db5['options']['showSuggestionHighlights']&&_0x5b948c({'showActiveMarkers':!0x1})(_0x879670,_0x55ec0e,_0x1d6db5);},{'priority':'highest'});}),_0x1e10b1['conversion']['for']('dataDowncast')['add'](_0x834124=>{_0x834124['on']('addMarker:suggestion:attribute',(_0xb8b716,_0x524406,_0x2f44d9)=>{_0x2f44d9['options']['showSuggestionHighlights']&&_0x5b948c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xb8b716,_0x524406,_0x2f44d9);},{'priority':'highest'});}),_0x1e10b1['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1667d1,_0x54529a)=>_0x54529a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1667d1['substr'](0xb)}}),_0x1e10b1['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xf7d92c,{writer:_0x1e1b4e})=>{let _0x82abd1='suggestion:'+_0xf7d92c['getAttribute']('suggestion-type')+':'+_0xf7d92c['getAttribute']('id');return _0xf7d92c['getAttribute']('marker-count')&&(_0x82abd1+=':'+_0xf7d92c['getAttribute']('marker-count')),_0x1e1b4e['createElement']('$marker',{'data-name':_0x82abd1});}}),_0x1e10b1['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1e10b1['conversion']['for']('editingDowncast')['add'](_0xc33ce3=>{_0xc33ce3['on']('addMarker:suggestion:formatBlock',_0x5b948c(),{'priority':'high'});}),_0x1e10b1['conversion']['for']('editingDowncast')['add'](_0x5d9508=>{_0x5d9508['on']('addMarker:suggestion:attribute',_0x5b948c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1e10b1['conversion']['for']('editingDowncast')['add'](_0x26ddbd=>{_0x26ddbd['on']('removeMarker:suggestion:formatBlock',(_0x4803b5,_0xb63917,_0x71909d)=>{const _0x4c11a7=_0x71909d['mapper']['markerNameToElements'](_0xb63917['markerName']);if(_0x4c11a7){for(const _0x3241bb of _0x4c11a7)_0x3241bb['getCustomProperty']('addHighlight')||(_0x71909d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3241bb),_0x71909d['writer']['removeAttribute']('data-suggestion',_0x3241bb),_0x71909d['writer']['removeAttribute']('data-author-id',_0x3241bb),_0x71909d['mapper']['unbindElementFromMarkerName'](_0x3241bb,_0xb63917['markerName']));}},{'priority':'high'});}),_0x1e10b1['conversion']['for']('editingDowncast')['add'](_0x202705=>{_0x202705['on']('removeMarker:suggestion:attribute',(_0x11a4d6,_0x996832,_0x1351fe)=>{const _0x584807=_0x1351fe['mapper']['markerNameToElements'](_0x996832['markerName']);if(!_0x584807)return;const {id:_0xdff0c5}=this['_splitMarkerName'](_0x996832['markerName']),_0x5f25a3=this['_suggestions']['get'](_0xdff0c5),_0x10f2d0=this['_getAttributeKey'](_0x5f25a3);if(this['_isBlockAttribute'](_0x10f2d0)){for(const _0x508b4f of _0x584807)_0x508b4f['getCustomProperty']('addHighlight')||(_0x1351fe['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x508b4f),_0x1351fe['writer']['removeAttribute']('data-suggestion',_0x508b4f),_0x1351fe['writer']['removeAttribute']('data-author-id',_0x508b4f),_0x1351fe['mapper']['unbindElementFromMarkerName'](_0x508b4f,_0x996832['markerName']));}},{'priority':'high'});}),_0x1e10b1['model']['document']['registerPostFixer'](_0x894a68=>{let _0x492ef7=!0x1;const _0x435a2f=Array['from'](_0x1e10b1['model']['document']['differ']['getChangedMarkers']()),_0x4d08ca=new Set();for(const {name:_0x304123,data:_0x2b1e89}of _0x435a2f){const {group:_0x20ccb7,type:_0x57ed1b,subType:_0x544a3c,id:_0x2223a8}=this['_splitMarkerName'](_0x304123);if('suggestion'!==_0x20ccb7)continue;const _0xf98cf6=this['_suggestions']['get'](_0x2223a8);if(null!=_0x2b1e89['newRange']){'formatInline'==_0x57ed1b&&(_0x492ef7=_0x492ef7||Ut(_0x2b1e89['newRange'],_0x304123,_0x894a68,_0x1e10b1['model']['schema']));const _0x1749a7='attribute'==_0x57ed1b&&this['_isBlockAttribute'](_0x544a3c['split']('|')[0x0]);if(_0x2b1e89['newRange']['isCollapsed']||'$graveyard'==_0x2b1e89['newRange']['root']['rootName']||'formatBlock'==_0x57ed1b&&!Ft(_0x2b1e89['newRange'])||_0x1749a7&&!Ft(_0x2b1e89['newRange'])||'deletion'==_0x57ed1b&&!(!Vt(_0x599e03=_0x2b1e89['newRange'])&&!function(_0x205280){return _0x205280['start']['parent']==_0x205280['end']['nodeBefore']&&_0x205280['start']['isAtEnd'];}(_0x599e03)))_0x894a68['removeMarker'](_0x304123),_0x492ef7=!0x0;else{if(!_0xf98cf6||!_0xf98cf6['isInContent'])continue;if(_0x2b1e89['newRange']&&_0x2b1e89['oldRange']&&_0x2b1e89['newRange']['isEqual'](_0x2b1e89['oldRange']))continue;_0x4d08ca['add'](_0xf98cf6);}}}var _0x599e03;return _0x4d08ca['size']>0x0&&(_0x492ef7=!!this['_joinWithAdjacentSuggestions'](_0x4d08ca)||_0x492ef7),_0x492ef7;}),_0x1e10b1['model']['document']['registerPostFixer'](_0x3d2727=>{let _0x4c8375=!0x1;for(const _0x2a8597 of _0x1e10b1['model']['document']['differ']['getChanges']())if('insert'==_0x2a8597['type'])for(const _0x42c350 of this['_suggestions']['values']()){if(_0x42c350['isMultiRange']||!_0x42c350['isInContent'])continue;const _0x2197e1='formatBlock'==_0x42c350['type'],_0x442e69=this['_getAttributeKey'](_0x42c350),_0x5b60be=_0x442e69&&this['_isBlockAttribute'](_0x442e69);if(!_0x2197e1&&!_0x5b60be)continue;const _0x5690ac=_0x42c350['getFirstRange']();if(_0x5690ac['start']['parent']!=_0x5690ac['end']['parent']&&!_0x5690ac['end']['isAtEnd']){const _0x28922d=_0x1e10b1['model']['createPositionAt'](_0x5690ac['start']['nodeAfter'],'end'),_0x53b3cc=_0x1e10b1['model']['createRange'](_0x5690ac['start'],_0x28922d);_0x3d2727['updateMarker'](_0x42c350['getFirstMarker'](),{'range':_0x53b3cc}),_0x4c8375=!0x0;}}return _0x4c8375;}),_0x1e10b1['model']['document']['registerPostFixer'](_0x56729c=>this['_processAttributeChanges'](_0x56729c)),_0x1e10b1['model']['document']['registerPostFixer'](_0x1233dd=>!_0x1233dd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1233dd)),_0x1e10b1['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1e10b1['model']['document']['on']('change:data',(_0x35529f,_0x34eb29)=>{if(!_0x34eb29['isLocal']||_0x34eb29['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x18f13f=_0x1e10b1['model']['document']['differ']['getChanges']();if(0x0==_0x18f13f['length'])return;const _0x2939e5=[],_0x529e8a=_0x18f13f['filter'](_0x84230a=>'attribute'==_0x84230a['type']),_0x5a951a=_0x18f13f['filter'](_0x22136e=>'insert'==_0x22136e['type']&&'$text'!=_0x22136e['name']);for(const _0x4f489b of _0x529e8a)this['_isRegisteredAttribute'](_0x4f489b['attributeKey'])&&_0x2939e5['push']({'key':_0x4f489b['attributeKey'],'newValue':_0x4f489b['attributeNewValue'],'oldValue':_0x4f489b['attributeOldValue'],'range':Pt(_0x4f489b['range'],_0x1e10b1['model'])});for(const _0x4fb153 of _0x5a951a){if('rename'!=_0x4fb153['action']&&'refresh'!=_0x4fb153['action'])continue;const _0x55c36e=Lt(_0x4fb153['position']['nodeAfter'],_0x1e10b1['model']),_0x38b0eb=_0x4fb153['before'];'rename'==_0x4fb153['action']&&_0x2939e5['push']({'key':m,'newValue':_0x4fb153['name'],'oldValue':_0x38b0eb['name'],'range':_0x55c36e});for(const [_0x303cdb,_0x38f6af]of _0x38b0eb['attributes']){if(!this['_isRegisteredAttribute'](_0x303cdb))continue;const _0x1effca=_0x4fb153['attributes']['get'](_0x303cdb);_0x38f6af!==_0x1effca&&_0x2939e5['push']({'key':_0x303cdb,'newValue':_0x1effca,'oldValue':_0x38f6af,'range':_0x55c36e});}for(const [_0x693873,_0x18940d]of _0x4fb153['attributes'])this['_isRegisteredAttribute'](_0x693873)&&(_0x38b0eb['attributes']['has'](_0x693873)||_0x2939e5['push']({'key':_0x693873,'newValue':_0x18940d,'oldValue':null,'range':_0x55c36e}));}0x0!=_0x2939e5['length']&&_0x1e10b1['model']['enqueueChange'](_0x34eb29,_0x55bb36=>{const _0x68f817=_0xd5eb17();for(const {range:_0x5d53da,key:_0x207acf,oldValue:_0x36e83d,newValue:_0x13693f}of _0x2939e5)this['markAttributeChange'](_0x5d53da,_0x207acf,_0x36e83d,_0x13693f,{'groupId':_0x68f817});this['_reduceExistingSuggestions'](_0x55bb36,_0x2939e5);});},{'priority':'lowest'}),_0x1e10b1['model']['markers']['on']('update:suggestion',(_0x5f443d,_0x31c3cb,_0x34357b)=>{if(null==_0x34357b){const {id:_0x2ec76f}=this['_splitMarkerName'](_0x31c3cb['name']),_0x3541d8=this['_suggestions']['get'](_0x2ec76f);_0x3541d8&&_0x3541d8['addMarkerName'](_0x31c3cb['name']);}}),_0x1e10b1['model']['document']['on']('change:data',()=>{const _0x56faeb=Array['from'](_0x1e10b1['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c29f0=>'suggestion'===this['_splitMarkerName'](_0x1c29f0['name'])['group']);if(0x0===_0x56faeb['length'])return;_0x56faeb['sort']((_0x4d782f,_0x29aea1)=>{const _0x54f763=_0x4d782f['data']['oldRange'],_0x442eab=_0x29aea1['data']['oldRange'];return null===_0x54f763&&null===_0x442eab?0x0:null===_0x54f763&&null!==_0x442eab?-0x1:null!==_0x54f763&&null===_0x442eab?0x1:_0x54f763['start']['isBefore'](_0x442eab['start'])?-0x1:0x1;});const _0x4299a4=new Set(),_0x2a4b3a=new Set();for(const {name:_0x208f1b,data:_0x33985d}of _0x56faeb){const {id:_0x1b89f7}=this['_splitMarkerName'](_0x208f1b);if(null===_0x33985d['oldRange']){const _0x304c24=this['_handleNewSuggestionMarker'](_0x208f1b);_0x2a4b3a['add'](_0x304c24);}else{const _0x50dff9=this['_suggestions']['get'](_0x1b89f7);null!==_0x33985d['newRange']||_0x50dff9['isInContent']?(_0x4299a4['add'](_0x50dff9['head']),_0x2a4b3a['add'](_0x50dff9)):this['_removeSuggestion'](_0x50dff9);}}_0x2a4b3a['size']>0x0&&this['_refreshSuggestionsChain'](_0x2a4b3a);for(const _0x4597e4 of _0x4299a4)this['fire']('suggestionChanged',_0x4597e4);}),_0x1e10b1['model']['on']('applyOperation',(_0x14d05c,_0x5af694)=>{const _0xaf9112=_0x5af694[0x0];if(!this['_suggestions']['size'])return;if(!_0xaf9112['isDocumentOperation'])return;if(_0xaf9112['batch']['isUndo']||!_0xaf9112['batch']['isLocal'])return;let _0x43da59,_0x10489d;switch(_0xaf9112['type']){case'insert':_0x43da59=_0x1e10b1['model']['createPositionAt'](_0xaf9112['position']),_0x10489d=_0x43da59['getShiftedBy'](_0xaf9112['howMany']);break;case'split':_0x43da59=_0x1e10b1['model']['createPositionAt'](_0xaf9112['splitPosition']),_0x10489d=_0x1e10b1['model']['createPositionAt'](_0xaf9112['moveTargetPosition']);break;case'move':_0x43da59=_0x1e10b1['model']['createPositionAt'](_0xaf9112['targetPosition']),_0x10489d=_0x43da59['getShiftedBy'](_0xaf9112['howMany']);break;default:return;}const _0x194f77=_0x1e10b1['model']['createRange'](_0x43da59,_0x10489d);_0x1e10b1['model']['change'](()=>{for(const {suggestion:_0x6e9718,meta:_0x4b5688}of this['_findSuggestions'](_0x194f77)){if(_0x6e9718['isMultiRange'])continue;if('formatInline'==_0x6e9718['type'])continue;const _0x30f1ba=this['_getAttributeKey'](_0x6e9718);if(_0x30f1ba&&this['_isBlockAttribute'](_0x30f1ba)&&'split'!=_0xaf9112['type'])continue;const _0x2e4d11=_0x6e9718['data']&&_0x6e9718['data']['multipleBlocks'];('formatBlock'!=_0x6e9718['type']||'split'==_0xaf9112['type']&&!_0x2e4d11)&&(_0x4b5688['containsRangeInObject']||'insertion'==_0x6e9718['type']&&_0x4b5688['isOwn']||_0x6e9718['getFirstRange']()['containsRange'](_0x194f77)&&this['_breakSuggestionMarker'](_0x6e9718,_0x43da59,_0x10489d));}});},{'priority':'lowest'}),_0x1e10b1['model']['on']('deleteContent',(_0x1f57b0,_0x38cfdb)=>{const _0xcf45ed=_0x38cfdb[0x0],_0x4ec81e=_0x38cfdb[0x1];if(_0x4ec81e&&_0x4ec81e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xcf45ed['isCollapsed'])return;const _0x3c9ea4=_0x1e10b1['model']['schema'],{start:_0x3f97b0,end:_0x291532}=_0xcf45ed['getFirstRange'](),_0x4d4d6c=_0x3f97b0['nodeAfter']&&_0x3c9ea4['isLimit'](_0x3f97b0['nodeAfter'])?null:_0x3c9ea4['getNearestSelectionRange'](_0x3f97b0,'forward'),_0x394281=_0x291532['nodeBefore']&&_0x3c9ea4['isLimit'](_0x291532['nodeBefore'])?null:_0x3c9ea4['getNearestSelectionRange'](_0x291532,'backward'),_0x228b2c=_0x1e10b1['model']['createRange'](_0x4d4d6c?_0x4d4d6c['start']:_0x3f97b0,_0x394281?_0x394281['end']:_0x291532);_0x1e10b1['model']['change'](_0x12b161=>{this['markDeletion'](_0x228b2c);const _0x3de8d2=_0x1e10b1['model']['schema']['getNearestSelectionRange'](_0x228b2c['start']);_0xcf45ed['is']('documentSelection')?_0x12b161['setSelection'](_0x3de8d2):_0xcf45ed['setTo'](_0x3de8d2);}),_0x1f57b0['stop']();},{'priority':_0x341dfe['normal']+0xa}),_0x1e10b1['model']['on']('insertContent',(_0x239cf2,_0x45f2b9)=>{const _0xf256ac=_0x45f2b9[_0x45f2b9['length']-0x1];_0xf256ac&&_0xf256ac['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1e10b1['model']['change'](()=>{let _0x290592=_0x1e10b1['model']['insertContent'](_0x45f2b9[0x0],_0x45f2b9[0x1],_0x45f2b9[0x2],{'forceDefaultExecution':!0x0});if(!_0x290592)return;_0x239cf2['return']=_0x290592['clone']();const _0x4806af=_0x290592['end']['nodeBefore'],_0x381d39=_0x1e10b1['model']['schema'];_0x4806af&&_0x381d39['isBlock'](_0x4806af)&&!_0x381d39['isObject'](_0x4806af)&&(_0x290592=_0x1e10b1['model']['createRange'](_0x290592['start'],_0x1e10b1['model']['createPositionAt'](_0x4806af,'end'))),this['markInsertion'](_0x290592);}),_0x239cf2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x515692=new x(_0x1e10b1,this['_suggestions']);_0x1e10b1['commands']['add']('acceptSuggestion',_0x515692),this['enableCommand']('acceptSuggestion');const _0x49397b=new R(_0x1e10b1,this['_suggestions']);_0x1e10b1['commands']['add']('discardSuggestion',_0x49397b),this['enableCommand']('discardSuggestion'),_0x1e10b1['commands']['add']('acceptAllSuggestions',new E(_0x1e10b1,_0x515692,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1e10b1['commands']['add']('discardAllSuggestions',new E(_0x1e10b1,_0x49397b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1e10b1['commands']['add']('acceptSelectedSuggestions',new O(_0x1e10b1,_0x515692,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1e10b1['commands']['add']('discardSelectedSuggestions',new O(_0x1e10b1,_0x49397b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xbb9ac=_0x1e10b1['plugins']['get']('CommentsRepository');this['listenTo'](_0xbb9ac,'addComment',(_0x418763,{threadId:_0x5412cb})=>{const _0x344b0b=this['_suggestions']['get'](_0x5412cb);_0x344b0b&&_0x344b0b['commentThread']&&0x1===_0x344b0b['commentThread']['length']&&this['_updateSuggestionData'](_0x5412cb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xbb9ac,'removeComment',(_0x2a2e74,{threadId:_0x2bdefd})=>{const _0x123f37=this['_suggestions']['get'](_0x2bdefd);_0x123f37&&_0x123f37['commentThread']&&!_0x123f37['commentThread']['length']&&this['_updateSuggestionData'](_0x2bdefd,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x23269f){if(this['_adapter'])throw new _0xf45ff('track-changes-adapter-already-set',this);this['_adapter']=_0x23269f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d1321=!0x1,toJSON:_0xa98a7f=!0x1}={}){const _0x11482b=[];for(const _0x1935a9 of this['_suggestions']['values']())_0x3d1321&&!_0x1935a9['isInContent']||_0x11482b['push'](_0x1935a9);return _0xa98a7f?_0x11482b['map'](_0x4a7d93=>_0x4a7d93['toJSON']()):_0x11482b;}['getSuggestion'](_0x22e56a){const _0x472ba7=this['_suggestions']['get'](_0x22e56a);if(!_0x472ba7)throw new _0xf45ff('track-changes-suggestion-not-found',this);return _0x472ba7;}['hasSuggestion'](_0x462a08){return this['_suggestions']['has'](_0x462a08);}['addSuggestionData'](_0x246e65){const {authorId:_0x5b39db,id:_0x1acb00,attributes:_0x5dfe16}=_0x246e65,[_0x32deb3,_0xd5bc64]=_0x246e65['type']['split'](':'),_0x41f9c7=this['_suggestions']['get'](_0x1acb00)||this['_createSuggestion'](_0x32deb3,_0xd5bc64,_0x1acb00,_0x5b39db,_0x5dfe16);if(this['_addThreadToSuggestion'](_0x41f9c7),this['_checkSuggestionCorrectness'](_0x41f9c7,_0x32deb3,_0xd5bc64||null,_0x5b39db),_0x41f9c7['createdAt']=_0x246e65['createdAt'],_0x41f9c7['_isDataLoaded']=!0x0,_0x5dfe16&&_0x5dfe16['@external']){const _0x18ba2b=_0x5dfe16['@external'],_0x4b03e8=this['_getExternalAuthor'](_0x18ba2b['authorName']);_0x41f9c7['authoredAt']=_0x18ba2b['createdAt'],_0x41f9c7['author']=_0x4b03e8,_0x41f9c7['isExternal']=!0x0;}else _0x41f9c7['authoredAt']=_0x246e65['createdAt'];switch(_0x246e65['data']&&(_0x41f9c7['data']=_0x246e65['data']),_0x246e65['attributes']&&(_0x41f9c7['attributes']=_0x246e65['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x41f9c7['_saved']=!0x0),this['_suggestionState']['get'](_0x41f9c7)){case'notReady':this['_suggestionState']['set'](_0x41f9c7,'dataReady');break;case'markerReady':_0x41f9c7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x41f9c7])),this['_refreshSuggestionsChain'](new Set([_0x41f9c7])),this['_suggestionState']['set'](_0x41f9c7,'ready'),this['fire']('suggestionLoaded',_0x41f9c7)):this['_suggestionState']['set'](_0x41f9c7,'removed');}return _0x41f9c7;}['acceptSuggestion'](_0x1defa0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x84b75b of _0x1defa0['getAllAdjacentSuggestions']())_0x84b75b['accept']();});});}['discardSuggestion'](_0x394ea0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x17219d of _0x394ea0['getAllAdjacentSuggestions']())_0x17219d['discard']();});});}['enableCommand'](_0x410905,_0x555f32){const _0x5eccbf=this['editor']['commands']['get'](_0x410905);if(!_0x5eccbf)throw new _0xf45ff('track-changes-command-not-found',this,{'commandName':_0x410905});if(this['_enabledCommands']['has'](_0x5eccbf))throw new _0xf45ff('track-changes-enable-command-twice',this,{'commandName':_0x410905});this['_enabledCommands']['add'](_0x5eccbf),_0x555f32&&_0x5eccbf['on']('execute',(_0xebcd8,_0x3b66be)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3b66be['length']>0x0&&_0x3b66be[_0x3b66be['length']-0x1]&&_0x3b66be[_0x3b66be['length']-0x1]['forceDefaultExecution']?_0x3b66be['pop']():(_0xebcd8['return']=_0x555f32((..._0x5b2061)=>_0x5eccbf['execute'](..._0x5b2061,{'forceDefaultExecution':!0x0}),..._0x3b66be),_0xebcd8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x26bd96){let _0x84edc3,_0x4e6db8;const _0x3bae87=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x84edc3=_0x26bd96();}catch(_0x32017c){_0x4e6db8=_0x32017c;}return _0x3bae87||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4e6db8&&_0xf45ff['rethrowUnexpectedError'](_0x4e6db8,this),_0x84edc3;}['markInsertion'](_0x2000f2,_0x469e9e=null,_0x3edb0b={}){if(_0x2000f2['isCollapsed'])return null;const _0xf9fe77=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4a7ba7,meta:_0x12a23e}of this['_findSuggestions'](_0x2000f2,'insertion'))if(_0x12a23e['isOwn']){if(!_0x12a23e['isNextTo']){if(_0x12a23e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4a7ba7,_0x3edb0b))continue;return _0x4a7ba7;}if(qt(_0x4a7ba7,_0x3edb0b))return _0x4a7ba7;this['_breakSuggestionMarker'](_0x4a7ba7,_0x2000f2['start'],_0x2000f2['end']);break;}if(_0x469e9e==_0x4a7ba7['subType']&&qt(_0x4a7ba7,_0x3edb0b)){const _0x40c374=_0x4a7ba7['getFirstRange']();return _0x40c374['start']['isEqual'](_0x2000f2['end'])?this['_setSuggestionRange'](_0x4a7ba7,this['_model']['createRange'](_0x2000f2['start'],_0x40c374['end'])):this['_setSuggestionRange'](_0x4a7ba7,this['_model']['createRange'](_0x40c374['start'],_0x2000f2['end'])),_0x4a7ba7;}}const _0x13c138=_0xd5eb17(),_0x4592aa=_0xf9fe77['id'],_0x3a8527=_0x469e9e?'insertion:'+_0x469e9e:'insertion',_0x1b8c04=this['_setSuggestionData']({'id':_0x13c138,'type':_0x3a8527,'createdAt':new Date(),'authorId':_0x4592aa,'attributes':_0x3edb0b});return this['_addSuggestionMarker'](_0x3a8527,_0x13c138,_0x4592aa,_0x2000f2),_0x1b8c04;}['markMultiRangeInsertion'](_0xb3dff4,_0x5b07ff='multi',_0x295597={}){const _0x2b59e4=this['editor']['plugins']['get']('Users')['me'],_0x5818a8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5b07ff,'join');for(const _0x31ef3e of this['getSuggestions']())if(_0x31ef3e['author']['id']==_0x2b59e4['id']&&'insertion'==_0x31ef3e['type']&&_0x31ef3e['subType']==_0x5b07ff&&qt(_0x31ef3e,_0x295597)&&(_0x5818a8(_0x31ef3e['getRanges'](),_0xb3dff4)||_0x5818a8(_0xb3dff4,_0x31ef3e['getRanges']()))){for(const _0x2f8091 of _0xb3dff4)_0x31ef3e['addRange'](_0x2f8091);return _0x31ef3e;}for(const {suggestion:_0x4a622b,meta:_0x1e6149}of this['_findSuggestions'](_0xb3dff4,'insertion')){if(!_0x1e6149['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1e6149['containsRangeInObject'])continue;if(!qt(_0x4a622b,_0x295597))continue;let _0x5b9e40=!0x0;for(const _0x2cb3a6 of _0x4a622b['getRanges']())for(const _0x2b2f95 of _0xb3dff4)if(!_0x2cb3a6['containsRange'](_0x2b2f95)){_0x5b9e40=!0x1;break;}if(_0x5b9e40)return _0x4a622b;}const _0x44fe30=_0xd5eb17(),_0x31f2fb=_0x2b59e4['id'],_0x19d28c='insertion:'+_0x5b07ff,_0x3dfbc6=this['_setSuggestionData']({'id':_0x44fe30,'type':_0x19d28c,'createdAt':new Date(),'authorId':_0x31f2fb,'attributes':_0x295597});for(const _0x5afca0 of _0xb3dff4)this['_addSuggestionMarker'](_0x19d28c,_0x44fe30,_0x31f2fb,_0x5afca0,u['getMultiRangeId']());return _0x3dfbc6;}['markInlineFormat'](_0x51e87b,_0x3ba7ff,_0x36591b=null,_0xb3217b={}){if(_0x36591b=_0x36591b||Gt(_0x3ba7ff),_0x51e87b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x49be07=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x36591b,'accept');return this['forceDefaultExecution'](()=>_0x49be07([_0x51e87b],_0x3ba7ff,_0xb3217b)),null;}const _0x42084b=this['editor']['plugins']['get']('Users')['me'],_0x18f772=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x52ce28,meta:_0x59c57c}of this['_findSuggestions'](_0x51e87b,'insertion'))_0x59c57c['isOwn']&&!_0x59c57c['isInsideObject']&&_0x18f772['push'](..._0x52ce28['getRanges']());}const _0x1f4b91=function(_0x13e653,_0x570bb2){const _0x5607a1=[];for(const _0x4e4a90 of _0x570bb2){const _0x597d9e=_0x13e653['getIntersection'](_0x4e4a90);_0x597d9e&&_0x5607a1['push'](_0x597d9e);}return _0x5607a1;}(_0x51e87b,_0x18f772),_0x301338=function(_0x32de6d,_0x28c9a7){const _0x4746d4=[_0x32de6d];for(const _0x711e67 of _0x28c9a7){let _0xa53567=0x0;for(;_0xa53567<_0x4746d4['length'];){const _0x57fde1=_0x4746d4[_0xa53567]['getDifference'](_0x711e67);_0x4746d4['splice'](_0xa53567,0x1,..._0x57fde1),_0xa53567+=_0x57fde1['length'];}}return _0x4746d4;}(_0x51e87b,_0x18f772);_0x1f4b91['length']&&this['_model']['change'](()=>{for(const _0x147d0e of _0x1f4b91){const _0x30f19c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x36591b,'accept');this['forceDefaultExecution'](()=>_0x30f19c([_0x147d0e],_0x3ba7ff,_0xb3217b));}});for(const _0x5f52cf of _0x301338){let _0x5a5630=null,_0x40703e=_0x5f52cf['start'],_0x9e306c=_0x5f52cf['end'];for(const {suggestion:_0x23e7b9,meta:_0x24b1b2}of this['_findSuggestions'](_0x5f52cf,'formatInline')){if(!_0x24b1b2['isOwn'])continue;if(_0x23e7b9['subType']!=_0x36591b)continue;if(!qt(_0x23e7b9,_0xb3217b))continue;const _0x2a7750=_0x23e7b9['getFirstRange']();if(_0x2a7750['containsRange'](_0x5f52cf,!0x0))return null;_0x40703e=_0x40703e['isBefore'](_0x2a7750['start'])?_0x40703e:_0x2a7750['start'],_0x9e306c=_0x9e306c['isAfter'](_0x2a7750['end'])?_0x9e306c:_0x2a7750['end'],_0x5a5630?_0x2a7750['start']['isBefore'](_0x5a5630['getFirstRange']()['start'])?(_0x5a5630['removeMarkers'](),_0x5a5630=_0x23e7b9):_0x23e7b9['removeMarkers']():_0x5a5630=_0x23e7b9;}const _0x2cd2ed=this['_model']['createRange'](_0x40703e,_0x9e306c);if(_0x5a5630)this['_setSuggestionRange'](_0x5a5630,_0x2cd2ed);else{const _0x1150e1=_0xd5eb17(),_0x5c40fc=_0x42084b['id'];this['_setSuggestionData']({'id':_0x1150e1,'type':'formatInline:'+_0x36591b,'data':_0x3ba7ff,'createdAt':new Date(),'authorId':_0x5c40fc,'attributes':_0xb3217b}),this['_addSuggestionMarker']('formatInline:'+_0x36591b,_0x1150e1,_0x5c40fc,_0x2cd2ed);}}return null;}['markBlockFormat'](_0x45d22c,_0x42f830,_0x141e2d=[],_0xce5d75=null,_0xbe503a={}){_0x42f830['formatGroupId']||(_0x42f830['formatGroupId']=_0x42f830['commandName']),_0x42f830['multipleBlocks']=_0x45d22c['is']('range'),_0xce5d75=_0xce5d75||Gt(_0x42f830);const _0x10ad5d=_0x141e2d['map'](_0x44244=>Lt(_0x44244,this['_model'])),_0x465403=_0x45d22c['is']('range')?_0x45d22c:Lt(_0x45d22c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4dce68=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xce5d75,'accept');return this['forceDefaultExecution'](()=>_0x4dce68([_0x465403],_0x42f830,_0xbe503a)),null;}_0x10ad5d['push'](_0x465403);let _0x7f997d=!0x0;for(const _0x5d5541 of _0x10ad5d)if(!this['_rangeIsInLocalUserInsertion'](_0x5d5541)){_0x7f997d=!0x1;break;}if(_0x7f997d&&'always'!==this['_trackFormatChanges']){const _0x3bcfde=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xce5d75,'accept');return this['forceDefaultExecution'](()=>_0x3bcfde([_0x465403],_0x42f830,_0xbe503a)),null;}let _0x5811e1=null,_0x833eec=_0x465403['start'],_0x1ba874=_0x465403['end'];for(const {suggestion:_0x4192fd,meta:_0x4716ca}of this['_findSuggestions'](_0x465403,'formatBlock')){if(!_0x4716ca['isOwn'])continue;if(_0x4716ca['isNextTo']||_0x4716ca['containsRangeInObject']||_0x4716ca['isInsideObject'])continue;if(_0x4192fd['data']['formatGroupId']!=_0x42f830['formatGroupId'])continue;if(!qt(_0x4192fd,_0xbe503a))continue;const _0x264650=_0x4192fd['getFirstRange']();if(_0x4192fd['subType']==_0xce5d75){if(_0x264650['containsRange'](_0x465403,!0x0))return null;_0x833eec=_0x833eec['isBefore'](_0x264650['start'])?_0x833eec:_0x264650['start'],_0x1ba874=_0x1ba874['isAfter'](_0x264650['end'])?_0x1ba874:_0x264650['end'],_0x5811e1?_0x264650['start']['isBefore'](_0x5811e1['getFirstRange']()['start'])?(_0x5811e1['removeMarkers'](),_0x5811e1=_0x4192fd):_0x4192fd['removeMarkers']():_0x5811e1=_0x4192fd;}else{const _0x1e718c=_0x465403['getIntersection'](_0x264650);this['_cutOutSuggestionMarker'](_0x4192fd,_0x1e718c);}}const _0x34a6af=this['editor']['plugins']['get']('Users')['me'],_0x2d745e=_0xd5eb17(),_0x4ebeb0=_0x34a6af['id'];if(_0x5811e1)return this['_setSuggestionRange'](_0x5811e1,this['_model']['createRange'](_0x833eec,_0x1ba874)),_0x5811e1;{const _0x5addae=this['_setSuggestionData']({'id':_0x2d745e,'type':'formatBlock:'+_0xce5d75,'data':_0x42f830,'createdAt':new Date(),'authorId':_0x4ebeb0,'attributes':_0xbe503a});return this['_addSuggestionMarker']('formatBlock:'+_0xce5d75,_0x2d745e,_0x4ebeb0,this['_model']['createRange'](_0x833eec,_0x1ba874)),_0x5addae;}}['markMultiRangeBlockFormat'](_0x2e811e,_0xe469e2,_0x26f941=[],_0x11ecaa=null,_0x150ff9={}){_0xe469e2['formatGroupId']||(_0xe469e2['formatGroupId']=_0xe469e2['commandName']);const _0x3dba54=_0x2e811e[0x0];_0xe469e2['multipleBlocks']=_0x3dba54['is']('range'),_0x11ecaa=_0x11ecaa||Gt(_0xe469e2);const _0x3e8ec3=_0x26f941['map'](_0x5eb737=>Lt(_0x5eb737,this['_model'])),_0x5d8c02=_0x3dba54['is']('range')?_0x2e811e:_0x2e811e['map'](_0x34890c=>Lt(_0x34890c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x10b13b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11ecaa,'accept');return this['forceDefaultExecution'](()=>_0x10b13b(_0x5d8c02,_0xe469e2,_0x150ff9)),null;}_0x3e8ec3['push'](..._0x5d8c02);let _0x2f7caf=!0x0;for(const _0x23b3d8 of _0x3e8ec3)if(!this['_rangeIsInLocalUserInsertion'](_0x23b3d8)){_0x2f7caf=!0x1;break;}if(_0x2f7caf&&'always'!==this['_trackFormatChanges']){const _0x3808b0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11ecaa,'accept');return this['forceDefaultExecution'](()=>_0x3808b0(_0x5d8c02,_0xe469e2,_0x150ff9)),null;}const _0x1313dc=this['editor']['plugins']['get']('Users')['me'];for(const _0x358f69 of this['getSuggestions']()){if(_0x358f69['author']['id']!=_0x1313dc['id'])continue;if('formatBlock'!=_0x358f69['type']||_0x358f69['data']['formatGroupId']!=_0xe469e2['formatGroupId'])continue;if(!qt(_0x358f69,_0x150ff9))continue;const _0x14c05d=_0x358f69['subType']==_0x11ecaa;for(let _0x7332af=0x0;_0x7332af<_0x5d8c02['length'];_0x7332af++){const _0x549044=_0x5d8c02[_0x7332af];for(const _0x22ba1a of _0x358f69['getMarkers']()){const _0x2504d6=_0x22ba1a['getRange']();if(_0x549044['isEqual'](_0x2504d6)){_0x14c05d?(_0x5d8c02['splice'](_0x7332af,0x1),_0x7332af--):_0x358f69['removeMarker'](_0x22ba1a['name']);break;}}}}if(0x0==_0x5d8c02['length'])return null;const _0x156c65=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11ecaa,'join');for(const _0x527237 of this['getSuggestions']())if(_0x527237['author']['id']==_0x1313dc['id']&&'formatBlock'==_0x527237['type']&&_0x527237['data']['formatGroupId']==_0xe469e2['formatGroupId']&&_0x527237['subType']==_0x11ecaa&&qt(_0x527237,_0x150ff9)&&(_0x156c65(_0x527237['getRanges'](),_0x5d8c02)||_0x156c65(_0x5d8c02,_0x527237['getRanges']()))){for(const _0x345619 of _0x5d8c02)_0x527237['addRange'](_0x345619);return _0x527237;}const _0x2e2fa4=_0xd5eb17(),_0x510710=_0x1313dc['id'],_0x11f679='formatBlock:'+_0x11ecaa,_0x2843a0=this['_setSuggestionData']({'id':_0x2e2fa4,'type':_0x11f679,'data':_0xe469e2,'createdAt':new Date(),'authorId':_0x510710,'attributes':_0x150ff9});for(const _0x36a1e2 of _0x5d8c02)this['_addSuggestionMarker'](_0x11f679,_0x2e2fa4,_0x510710,_0x36a1e2,u['getMultiRangeId']());return _0x2843a0;}['markDeletion'](_0x54b085,_0x5a494e=null,_0x47af98={}){if(_0x54b085['isCollapsed'])return null;const _0x1db7ea=this['editor']['plugins']['get']('Users')['me'],_0x94bfed=new _0x36a1b3(_0x54b085['start'],_0x54b085['end']);for(const {suggestion:_0x41c6a4,meta:_0x1dfbe3}of this['_findSuggestions'](_0x94bfed,'insertion'))if(_0x1dfbe3['isOwn']&&!_0x1dfbe3['isNextTo']){if(_0x41c6a4['isMultiRange']){const _0x1c9d18=_0x41c6a4['getRanges']()['filter'](_0x459301=>'$graveyard'!=_0x459301['root']['rootName']);_0x1c9d18['every'](_0x4efa70=>_0x94bfed['containsRange'](_0x4efa70,!0x0))&&_0x41c6a4['discard']();if(_0x1c9d18['some'](_0x2f64bc=>_0x2f64bc['containsRange'](_0x94bfed,!0x0))){const _0x55555d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a494e,'accept');return this['forceDefaultExecution'](()=>_0x55555d([_0x94bfed],null,_0x47af98)),null;}}else{const _0x1006d4=_0x94bfed['getIntersection'](_0x41c6a4['getFirstRange']());null!==_0x1006d4&&_0x41c6a4['_onDiscard']([_0x1006d4],null,_0x47af98);}}if(_0x94bfed['detach'](),_0x94bfed['isCollapsed']||'$graveyard'==_0x94bfed['root']['rootName'])return null;let _0xe775b3=null,_0x25838b=_0x94bfed['start'],_0x80f4ef=_0x94bfed['end'];const _0x1d82f1=this['_findSuggestions'](_0x94bfed,'deletion');for(const {suggestion:_0x2ee8b0,meta:_0x143ce5}of _0x1d82f1){const _0x16982f=this['_model']['createRange'](_0x25838b,_0x80f4ef);if(_0x143ce5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x143ce5['containsRangeInObject']&&!_0x143ce5['isInsideObject'])){if(_0x2ee8b0['isMultiRange']){if(!qt(_0x2ee8b0,_0x47af98))continue;let _0x13a899=!0x0;for(const _0x160c79 of _0x2ee8b0['getRanges']()){if(_0x160c79['containsRange'](_0x16982f,!0x0))return _0x2ee8b0;_0x16982f['containsRange'](_0x160c79)||(_0x13a899=!0x1);}_0x13a899&&_0x2ee8b0['discard']();}else{const _0x314054=_0x2ee8b0['getFirstRange']();if(_0x314054['containsRange'](_0x16982f,!0x0))return _0x2ee8b0;if(!qt(_0x2ee8b0,_0x47af98)){_0x16982f['containsRange'](_0x314054)?_0x2ee8b0['removeMarkers']():_0x314054['containsPosition'](_0x25838b)?_0x25838b=_0x314054['end']:_0x314054['containsPosition'](_0x80f4ef)&&(_0x80f4ef=_0x314054['start']);continue;}_0x25838b=_0x25838b['isBefore'](_0x314054['start'])?_0x25838b:_0x314054['start'],_0x80f4ef=_0x80f4ef['isAfter'](_0x314054['end'])?_0x80f4ef:_0x314054['end'],_0x47af98=Object['assign']({},_0x2ee8b0['attributes']),_0xe775b3?_0x314054['start']['isBefore'](_0xe775b3['getFirstRange']()['start'])?(_0xe775b3['removeMarkers'](),_0xe775b3=_0x2ee8b0):_0x2ee8b0['removeMarkers']():_0xe775b3=_0x2ee8b0;}}}if(_0xe775b3)return this['_setSuggestionRange'](_0xe775b3,this['_model']['createRange'](_0x25838b,_0x80f4ef)),_0xe775b3;{const _0xc2abc=_0xd5eb17(),_0x4dccee=this['_model']['createRange'](_0x25838b,_0x80f4ef),_0x3e1b94=_0x1db7ea['id'],_0x2b6478=_0x5a494e?'deletion:'+_0x5a494e:'deletion',_0x3b8b0e=this['_setSuggestionData']({'id':_0xc2abc,'type':_0x2b6478,'createdAt':new Date(),'authorId':_0x3e1b94,'attributes':_0x47af98});return this['_addSuggestionMarker'](_0x2b6478,_0xc2abc,_0x3e1b94,_0x4dccee),_0x3b8b0e;}}['markMultiRangeDeletion'](_0x58b186,_0x499e83='multi',_0x3e16e1={}){const _0x466ad1=this['editor']['plugins']['get']('Users')['me'],_0x17fce3=_0x58b186['map'](_0x3cdd4f=>new _0x36a1b3(_0x3cdd4f['start'],_0x3cdd4f['end'])),_0x2e17f6=new Set();for(const {suggestion:_0x1dffe6,meta:_0x4af696}of this['_findSuggestions'](_0x17fce3,'insertion'))_0x4af696['isOwn']&&!_0x4af696['isNextTo']&&_0x2e17f6['add'](_0x1dffe6);for(const _0x32c5ca of _0x2e17f6)if(_0x32c5ca['isMultiRange']){const _0x9bf0f4=_0x32c5ca['getRanges']();(!_0x32c5ca['attributes']||!_0x32c5ca['attributes']['skipNestingCheck'])&&(_0x9bf0f4['every'](_0x1ef02a=>_0x17fce3['some'](_0x81adca=>_0x81adca['containsRange'](_0x1ef02a,!0x0)))&&_0x32c5ca['discard']());if(_0x17fce3['every'](_0x206131=>_0x9bf0f4['some'](_0x3ec365=>_0x3ec365['containsRange'](_0x206131,!0x0)))){const _0x47c192=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x499e83,'accept');return this['forceDefaultExecution'](()=>_0x47c192(_0x58b186,null,_0x3e16e1)),null;}}else{const _0x40dd47=_0x32c5ca['getFirstRange']();_0x17fce3['some'](_0x321da2=>_0x321da2['containsRange'](_0x40dd47,!0x0))&&_0x32c5ca['discard']();if(_0x17fce3['every'](_0x5bfebf=>_0x40dd47['containsRange'](_0x5bfebf,!0x0))){const _0x14b271=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x499e83,'accept');return this['forceDefaultExecution'](()=>_0x14b271(_0x17fce3,null,_0x3e16e1)),null;}}const _0x2307b0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x499e83,'join');let _0x4e2f7c=null;for(const _0x1809d5 of this['getSuggestions']())if(_0x1809d5['author']['id']==_0x466ad1['id']&&_0x1809d5['isInContent']&&'deletion'==_0x1809d5['type']&&_0x1809d5['subType']==_0x499e83&&qt(_0x1809d5,_0x3e16e1)&&(_0x2307b0(_0x1809d5['getRanges'](),_0x17fce3)||_0x2307b0(_0x17fce3,_0x1809d5['getRanges']()))){if(_0x4e2f7c){if(_0x1809d5['commentThread']&&_0x1809d5['commentThread']['length'])continue;for(const _0x4b03a7 of _0x1809d5['getRanges']())_0x4e2f7c['isIntersectingWithRange'](_0x4b03a7)||_0x4e2f7c['addRange'](_0x4b03a7);_0x1809d5['removeMarkers']();}else{_0x4e2f7c=_0x1809d5;for(const _0x111d67 of _0x17fce3)_0x1809d5['isIntersectingWithRange'](_0x111d67)||_0x1809d5['addRange'](_0x111d67);}}if(_0x4e2f7c)return _0x4e2f7c;_0x2e17f6['clear']();for(const {suggestion:_0x354221,meta:_0x174f69}of this['_findSuggestions'](_0x17fce3,'deletion'))_0x174f69['isOwn']&&(this['_mergeNestedSuggestions']||!_0x174f69['containsRangeInObject']&&!_0x174f69['isInsideObject'])&&qt(_0x354221,_0x3e16e1)&&_0x2e17f6['add'](_0x354221);for(const _0x43306d of _0x2e17f6){const _0x5dbb50=_0x43306d['getRanges']();if(!_0x3e16e1||!_0x3e16e1['skipNestingCheck']){if(_0x17fce3['every'](_0x365c9e=>_0x5dbb50['some'](_0x13dbe8=>_0x13dbe8['containsRange'](_0x365c9e,!0x0))))return _0x43306d;}(!_0x43306d['attributes']||!_0x43306d['attributes']['skipNestingCheck'])&&(_0x5dbb50['every'](_0x2608ed=>_0x17fce3['some'](_0x2b3e12=>_0x2b3e12['containsRange'](_0x2608ed,!0x0)))&&_0x43306d['discard']());}const _0x1be22c=_0xd5eb17(),_0x5a629f=_0x466ad1['id'],_0x20a968='deletion:'+_0x499e83,_0x2dbd66=this['_setSuggestionData']({'id':_0x1be22c,'type':_0x20a968,'createdAt':new Date(),'authorId':_0x5a629f,'attributes':_0x3e16e1});for(const _0x30b849 of _0x17fce3)_0x30b849['detach'](),_0x30b849['isCollapsed']||'$graveyard'==_0x30b849['root']['rootName']||this['_addSuggestionMarker'](_0x20a968,_0x1be22c,_0x5a629f,_0x30b849,u['getMultiRangeId']());return _0x2dbd66;}['markAttributeChange'](_0x5e3d5b,_0xfb5c56,_0x13d9ee,_0x5caf35,_0x425925){if(_0x5e3d5b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x180c45=this['editor']['plugins']['get']('Users')['me']['id'],_0x34fdfb=Array['from'](this['_suggestions']['values']())['filter'](_0x388537=>'attribute'==_0x388537['type']&&_0x388537['data']['key']==_0xfb5c56&&_0x388537['isIntersectingWithRange'](_0x5e3d5b));if('default'===this['_trackFormatChanges']){const _0x5084a7=this['_findSuggestions'](_0x5e3d5b,'insertion')['filter'](({meta:_0x546c7d})=>_0x546c7d['isOwn']&&!_0x546c7d['isInsideObject']&&!_0x546c7d['isNextTo'])['map'](({suggestion:_0x163777})=>_0x163777);_0x34fdfb['unshift'](..._0x5084a7);}const _0x7d2a59=new Map([[_0x5e3d5b,_0x13d9ee]]);for(const _0x5b1fe7 of _0x34fdfb){const _0x6fccdc='attribute'==_0x5b1fe7['type']?_0x5b1fe7['data']['oldValue']:void 0x0,_0x3f250f=_0x5b1fe7['getFirstRange'](),_0x5d285a=Array['from'](_0x7d2a59['keys']())['find'](_0x530066=>_0x530066['isIntersecting'](_0x3f250f));if(!_0x5d285a)continue;const _0x137bc8=_0x5d285a['getDifference'](_0x3f250f);this['_isBlockAttribute'](_0xfb5c56)&&'insertion'==_0x5b1fe7['type']&&0x0!=_0x137bc8['length']||(_0x7d2a59['delete'](_0x5d285a),_0x137bc8['forEach'](_0x5969df=>{_0x7d2a59['set'](_0x5969df,_0x13d9ee);}),'insertion'!=_0x5b1fe7['type']&&_0x6fccdc!=_0x5caf35&&_0x7d2a59['set'](_0x5d285a['getIntersection'](_0x3f250f),_0x6fccdc));}const _0x2652f6=[];for(const [_0x288ace,_0x5e2387]of _0x7d2a59){const _0x28968a=_0xd5eb17(),_0x55a63f={'key':_0xfb5c56,'oldValue':_0x5e2387,'newValue':_0x5caf35};_0xfb5c56['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':_0xfb5c56});const _0x5be603=('attribute:'+(_0xfb5c56+'|'+Gt({'newValue':_0x5caf35})))['substring'](0x0,0x3c),_0x28b584=this['_setSuggestionData']({'id':_0x28968a,'type':_0x5be603,'data':_0x55a63f,'createdAt':new Date(),'authorId':_0x180c45,'attributes':_0x425925});_0x2652f6['push'](_0x28b584),this['_addSuggestionMarker'](_0x5be603,_0x28968a,_0x180c45,_0x288ace);}return _0x2652f6;}['enableDefaultAttributesIntegration'](_0x213f18){this['enableCommand'](_0x213f18,(_0x2bf828,..._0x2d9f2c)=>{this['_recordAttributeChanges'](()=>{_0x2bf828(..._0x2d9f2c);});});}['registerBlockAttribute'](_0x29ce7b){this['_blockAttributeKeys']['add'](_0x29ce7b);}['registerInlineAttribute'](_0x1cdbad){this['_inlineAttributeKeys']['add'](_0x1cdbad);}['_getAttributeKey'](_0x59c50a){return'attribute'==_0x59c50a['type']?_0x59c50a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1d7444,_0x54e21f){const _0x141472=_0x1d7444['getFirstMarker']();this['_model']['change'](_0xa85a49=>{_0xa85a49['updateMarker'](_0x141472,{'range':_0x54e21f});});}['_addThreadToSuggestion'](_0x275d19){const _0x12babf=_0x275d19['id'],_0x4b3723=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x12babf)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4b3723,'threadId':_0x12babf,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x19501b=this['_commentsRepository']['getCommentThread'](_0x12babf);_0x19501b['unbind']('isRemovable'),_0x19501b['isRemovable']=!0x1,_0x275d19['commentThread']=_0x19501b;}['_checkSuggestionCorrectness'](_0x4f664e,_0x5d0af6,_0x3292d5,_0x51e953){if(_0x4f664e['type']!=_0x5d0af6||_0x4f664e['subType']!=_0x3292d5||_0x4f664e['creator']['id']!=_0x51e953)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xf45ff('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x47d9e2,_0x2881cf){const _0x457e27=_0x47d9e2['getFirstRange']();if(_0x2881cf['isEqual'](_0x457e27))_0x47d9e2['removeMarkers']();else{if(_0x457e27['containsRange'](_0x2881cf)){const _0x1a4473=this['_model']['createPositionAt'](_0x2881cf['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47d9e2,this['_model']['createRange'](_0x457e27['start'],_0x1a4473));const _0x276e80=_0xd5eb17(),_0xed0cd9=_0x47d9e2['creator']['id'],_0xd201b6=_0x47d9e2['type']+':'+_0x47d9e2['subType'];this['_setSuggestionData']({'id':_0x276e80,'type':_0xd201b6,'createdAt':new Date(),'authorId':_0xed0cd9,'data':_0x47d9e2['data'],'attributes':_0x47d9e2['attributes']});const _0x18df36=this['_model']['createPositionAt'](_0x2881cf['end']['parent'],'after'),_0x18f6c0=this['_model']['createRange'](_0x18df36,_0x457e27['end']);this['_addSuggestionMarker'](_0xd201b6,_0x276e80,_0xed0cd9,_0x18f6c0);}else{if(_0x457e27['containsPosition'](_0x2881cf['start'])){const _0xebae36=this['_model']['createPositionAt'](_0x2881cf['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47d9e2,this['_model']['createRange'](_0x457e27['start'],_0xebae36));}else{const _0x57f7bf=this['_model']['createPositionAt'](_0x2881cf['end']['parent'],'after');this['_setSuggestionRange'](_0x47d9e2,this['_model']['createRange'](_0x57f7bf,_0x457e27['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4cdeef){for(const {suggestion:_0x4f16b0,meta:_0x26b09a}of this['_findSuggestions'](_0x4cdeef,'insertion')){if(!_0x26b09a['isOwn'])continue;const _0x747158=_0x4f16b0['getRanges']();for(const _0x229e12 of _0x747158)if(!_0x4cdeef['getDifference'](_0x229e12)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x6bc1ba){const _0x3ee14b=this['editor']['plugins']['get']('Users')['getUser'](_0x6bc1ba);if(!_0x3ee14b)throw new _0xf45ff('track-changes-user-not-found',this);return _0x3ee14b;}['_getExternalAuthor'](_0x5ddc82){const _0x298b4c=this['editor']['plugins']['get']('Users'),_0x524596=_0x1b9b7c('external:'+_0x5ddc82),_0x1bac23=_0x298b4c['getUser'](_0x524596);return _0x1bac23||_0x298b4c['addUser']({'id':_0x524596,'name':_0x5ddc82});}['_createSuggestion'](_0x3ea38a,_0x3f7b8b,_0x19536f,_0x14e8e8,_0x4ee800){const _0x5195f7=this['_getAuthorFromId'](_0x14e8e8),_0x4452de=this['_suggestionFactory']['buildSuggestion'](_0x3ea38a,_0x3f7b8b,_0x19536f,_0x5195f7,_0x4ee800,_0x1d9ffd=>{this['_updateSuggestionData'](_0x19536f,{'attributes':_0x1d9ffd});const _0x5aebb0=this['getSuggestion'](_0x19536f);this['_joinWithAdjacentSuggestions'](new Set([_0x5aebb0])),this['_refreshSuggestionsChain'](new Set([_0x5aebb0]));});return this['listenTo'](_0x4452de,'accept',()=>{this['_updateSuggestionData'](_0x19536f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4452de,'discard',()=>{this['_updateSuggestionData'](_0x19536f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x19536f,_0x4452de),this['_suggestionState']['set'](_0x4452de,'notReady'),_0x4452de;}['_splitMarkerName'](_0x437ef2){const _0xbcde10=_0x437ef2['split'](':');return{'group':_0xbcde10[0x0],'type':_0xbcde10[0x1],'subType':_0xbcde10['length']>=0x5?_0xbcde10[0x2]:null,'id':_0xbcde10['length']<0x5?_0xbcde10[0x2]:_0xbcde10[0x3],'authorId':_0xbcde10['length']<0x5?_0xbcde10[0x3]:_0xbcde10[0x4],'markerCount':0x6==_0xbcde10['length']?_0xbcde10[0x5]:null};}['_breakSuggestionMarker'](_0x3a1c01,_0x3a20f5,_0x3b51be){const _0x3dfd36=_0x3a1c01['getFirstRange'](),_0x10ca75=_0x3dfd36['start'],_0xca1958=_0x3dfd36['end'];this['_setSuggestionRange'](_0x3a1c01,this['_model']['createRange'](_0x10ca75,_0x3a20f5));const _0x56b4f3=_0xd5eb17(),_0x44d09d=_0x3a1c01['creator']['id'],_0x25ee17=_0x3a1c01['type']+(_0x3a1c01['subType']?':'+_0x3a1c01['subType']:'');this['_setSuggestionData']({'id':_0x56b4f3,'type':_0x25ee17,'createdAt':new Date(),'authorId':_0x44d09d,'originalSuggestionId':_0x3a1c01['id'],'attributes':_0x3a1c01['attributes'],'data':_0x3a1c01['data']});const _0x5c2496=this['_getAttributeKey'](_0x3a1c01);('formatBlock'==_0x3a1c01['type']||_0x5c2496&&this['_isBlockAttribute'](_0x5c2496))&&(_0x3b51be=this['_model']['createPositionBefore'](_0x3b51be['parent'])),this['_addSuggestionMarker'](_0x25ee17,_0x56b4f3,_0x44d09d,this['_model']['createRange'](_0x3b51be,_0xca1958));}['_findSuggestions'](_0x5a0d8e,_0x37d359=null){const _0x530a07=[],_0x499899=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a0d8e)||(_0x5a0d8e=[_0x5a0d8e]);for(const _0x25556b of this['getSuggestions']()){if(!_0x25556b['isInContent'])continue;if(_0x37d359&&_0x25556b['type']!=_0x37d359)continue;let _0x41989d=!0x1;for(const _0x19260 of _0x25556b['getRanges']()){for(const _0x18d48b of _0x5a0d8e){const _0x3c70ab=_0x18d48b['start']['isEqual'](_0x19260['end'])||_0x18d48b['end']['isEqual'](_0x19260['start']);if(_0x3c70ab||_0x18d48b['getIntersection'](_0x19260)){const _0xbaf619=_0x18d48b['containsRange'](_0x19260)&&Ot(this['_model']['schema'],_0x19260['start'],_0x18d48b),_0x281955=_0x19260['containsRange'](_0x18d48b)&&Ot(this['_model']['schema'],_0x18d48b['start'],_0x19260);_0x530a07['push']({'suggestion':_0x25556b,'meta':{'isOwn':_0x499899==_0x25556b['author'],'isNextTo':_0x3c70ab,'isInsideObject':_0xbaf619,'containsRangeInObject':_0x281955}}),_0x41989d=!0x0;break;}}if(_0x41989d)break;}}return _0x530a07;}['_addSuggestionMarker'](_0x4d3df7,_0x5b8416,_0x538130,_0x550664,_0x46d1fa){this['_model']['change'](_0x38941b=>{let _0x19e2ff='suggestion:'+_0x4d3df7+':'+_0x5b8416+':'+_0x538130;_0x46d1fa&&(_0x19e2ff=_0x19e2ff+':'+_0x46d1fa),_0x38941b['addMarker'](_0x19e2ff,{'range':_0x550664,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2aa409){const _0x438b23=_0x2aa409['previous'],_0x5470a5=_0x2aa409['next'];_0x2aa409['previous']=null,_0x2aa409['next']=null,null!=_0x438b23&&_0x438b23['next']==_0x2aa409&&(_0x438b23['next']=_0x5470a5),null!=_0x5470a5&&_0x5470a5['previous']==_0x2aa409&&(_0x5470a5['previous']=_0x438b23),'ready'==this['_suggestionState']['get'](_0x2aa409)&&(this['_suggestionState']['set'](_0x2aa409,'removed'),this['fire']('suggestionUnloaded',_0x2aa409,_0x438b23,_0x5470a5));}['_setSuggestionData'](_0x4c6ffd){const _0x56d6d9=_0x4c6ffd['id'],_0x1389e4=this['addSuggestionData'](_0x4c6ffd);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4254ca=this['editor']['plugins']['get']('PendingActions'),_0x4259f1=_0x1389e4['hasComments'],_0x8386cc=_0x1389e4['subType']?_0x1389e4['type']+':'+_0x1389e4['subType']:_0x1389e4['type'],_0x1c5082=this['editor']['locale'],_0x4c4938=_0x4254ca['add'](o(_0x1c5082,'PENDING_ACTION_SUGGESTION')),_0x437a7d={'id':_0x56d6d9,'type':_0x8386cc,'hasComments':_0x4259f1,'data':_0x4c6ffd['data']||null,'originalSuggestionId':_0x4c6ffd['originalSuggestionId']||null,'attributes':_0x1389e4['attributes']};this['_adapter']['addSuggestion'](_0x437a7d)['then'](_0x540e16=>{_0x1389e4['_saved']=!0x0,_0x4254ca['remove'](_0x4c4938),_0x540e16&&_0x540e16['createdAt']&&(this['_suggestions']['get'](_0x56d6d9)['createdAt']=_0x540e16['createdAt']);})['catch'](_0x54b3cb=>{throw _0x22a84b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1389e4['discard']();}),_0x1389e4['stopListening'](),this['_suggestions']['delete'](_0x1389e4['id']),this['_suggestionState']['delete'](_0x1389e4),_0x54b3cb;});}return _0x1389e4;}['_isBlockAttribute'](_0x449312){return this['_blockAttributeKeys']['has'](_0x449312);}['_updateSuggestionData'](_0x39a013,_0x25f027){const _0x40cbd3=this['editor']['plugins']['get']('PendingActions'),_0x12483b=this['getSuggestion'](_0x39a013);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x12483b['_saved']){const _0x1f466a=_0x40cbd3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x39a013,_0x25f027)['then'](()=>{_0x40cbd3['remove'](_0x1f466a);});}else _0x12483b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x39a013,_0x25f027);});}}['_getSuggestionData'](_0x28e1f6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xf45ff('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x28e1f6);}['_handleNewSuggestionMarker'](_0x2131a3){const {id:_0x42675d,type:_0x2f6a41,subType:_0x2d7ae3,authorId:_0x5626b7}=this['_splitMarkerName'](_0x2131a3),_0x40488b=this['_suggestions']['get'](_0x42675d)||this['_createSuggestion'](_0x2f6a41,_0x2d7ae3,_0x42675d,_0x5626b7,{});switch(this['_checkSuggestionCorrectness'](_0x40488b,_0x2f6a41,_0x2d7ae3,_0x5626b7),this['_suggestionState']['get'](_0x40488b)){case'notReady':this['_getSuggestionData'](_0x42675d)['then'](_0x58e5fe=>{let _0x202741=Promise['resolve']();_0x58e5fe['hasComments']&&(_0x202741=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x42675d})),_0x202741['then'](()=>{this['addSuggestionData'](_0x58e5fe)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40488b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x42675d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40488b,'ready'),this['fire']('suggestionLoaded',_0x40488b);break;case'ready':this['fire']('suggestionChanged',_0x40488b);}return _0x40488b['addMarkerName'](_0x2131a3),_0x40488b;}['_refreshSuggestionsChain'](_0x2b5015){const _0x23684e=Array['from'](_0x2b5015),_0xdeb621=_0x23684e['filter'](_0x2ac375=>'attribute'==_0x2ac375['type']);this['_refreshAttributeSuggestionsChain'](_0xdeb621);const _0x4a5578=_0x23684e['filter'](_0xb6fd80=>!_0xb6fd80['isMultiRange']&&'attribute'!=_0xb6fd80['type']),_0x5afe97=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22f50e=>!_0x22f50e['isMultiRange']&&'attribute'!=_0x22f50e['type']),_0x48f02d=_0x5afe97['filter'](_0x204438=>!_0x2b5015['has'](_0x204438)),_0x2b3dd2=new Map(_0x5afe97['map'](_0x44e73a=>[_0x44e73a,this['_suggestionFactory']['getSuggestionCallback'](_0x44e73a['type'],_0x44e73a['subType'],'chain')])),_0x504494=new Map(_0x5afe97['map'](_0x3c5991=>[_0x3c5991,_0x3c5991['getFirstRange']()])),_0x403403=new Set(),_0x8f4375=new Set();for(let _0x1cc8ce=0x0;_0x1cc8ce<_0x4a5578['length'];_0x1cc8ce++)_0x3e0ab4(_0x4a5578[_0x1cc8ce],_0x4a5578,_0x1cc8ce+0x1);for(let _0xa1968b=0x0;_0xa1968b<_0x4a5578['length'];_0xa1968b++)_0x3e0ab4(_0x4a5578[_0xa1968b],_0x48f02d,0x0);const _0x3871c7=new Set();for(let _0x5dc325=0x0;_0x5dc325<_0x4a5578['length'];_0x5dc325++){const _0x47a877=_0x4a5578[_0x5dc325];!_0x8f4375['has'](_0x47a877)&&_0x47a877['previous']&&(_0x3871c7['add'](_0x47a877['previous']),_0x47a877['previous']['next']===_0x47a877&&(_0x47a877['previous']['next']=null),_0x47a877['previous']=null),!_0x403403['has'](_0x47a877)&&_0x47a877['next']&&(_0x3871c7['add'](_0x47a877['next']),_0x47a877['next']['previous']===_0x47a877&&(_0x47a877['next']['previous']=null),_0x47a877['next']=null);}function _0x3e0ab4(_0x3e3138,_0x180907,_0x55f248){for(let _0x4911ca=_0x55f248;_0x4911ca<_0x180907['length'];_0x4911ca++){const _0x3a67cc=_0x4d121e(_0x3e3138,_0x180907[_0x4911ca]);_0x3a67cc&&(_0x3a67cc[0x0]['next']=_0x3a67cc[0x1],_0x3a67cc[0x1]['previous']=_0x3a67cc[0x0],_0x403403['add'](_0x3a67cc[0x0]),_0x8f4375['add'](_0x3a67cc[0x1]));}}function _0x4d121e(_0x2e92e9,_0x33fc8a){if(_0x2e92e9['author']['id']!==_0x33fc8a['author']['id'])return null;const _0xfcd34e=_0x2b3dd2['get'](_0x2e92e9)(_0x2e92e9,_0x33fc8a,_0x504494['get'](_0x2e92e9),_0x504494['get'](_0x33fc8a));if(!_0xfcd34e)return null;return _0x2b3dd2['get'](_0x33fc8a)(_0x2e92e9,_0x33fc8a,_0x504494['get'](_0x2e92e9),_0x504494['get'](_0x33fc8a))?_0xfcd34e[0x1]['commentThread']&&_0xfcd34e[0x1]['commentThread']['length']?null:_0xfcd34e:null;}_0x3871c7['size']&&this['_refreshSuggestionsChain'](_0x3871c7);}['_refreshAttributeSuggestionsChain'](_0x36728c){if(0x0==_0x36728c['length'])return;const _0x35197f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d45a3=>'attribute'==_0x4d45a3['type']&&_0x4d45a3['_isDataLoaded']),_0xde3fca=[],_0xa821a0=new Map();for(const _0x449365 of _0x35197f){const _0x3885a2=_0x1b9b7c(_0x449365['attributes']);_0xa821a0['has'](_0x3885a2)||(_0xa821a0['set'](_0x3885a2,_0xde3fca['length']),_0xde3fca['push']([]));const _0x1824ae=_0xa821a0['get'](_0x3885a2);_0xde3fca[_0x1824ae]['push'](_0x449365);}!(function(){_0xde3fca['sort']((_0x8f96b7,_0x432f34)=>{const _0x5ab36a=_0x8f96b7[0x0]['createdAt'],_0x24b97e=_0x432f34[0x0]['createdAt'];return _0x5ab36a==_0x24b97e?_0x8f96b7[0x0]['attributes']['groupId']<_0x432f34[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ab36a<_0x24b97e?-0x1:0x1;});for(const _0x3dd1d3 of _0xde3fca)_0x3dd1d3['sort']((_0xcfebfb,_0x2a58d3)=>_0xcfebfb['id']<_0x2a58d3['id']?-0x1:0x1);}());for(let _0x2be79c=0x0;_0x2be79c<_0xde3fca['length'];_0x2be79c++){if(0x0==_0xde3fca[_0x2be79c]['length'])continue;const _0x5369a2=[];for(let _0x23a41f=_0x2be79c+0x1;_0x23a41f<_0xde3fca['length'];_0x23a41f++)0x0!=_0xde3fca[_0x23a41f]['length']&&_0x3fbcc2(_0xde3fca[_0x2be79c],_0xde3fca[_0x23a41f])&&_0x5369a2['push'](_0x23a41f);for(const _0x38ce0c of _0x5369a2)_0xde3fca[_0x2be79c]=_0xde3fca[_0x2be79c]['concat'](_0xde3fca[_0x38ce0c]),_0xde3fca[_0x38ce0c]=[];}for(const _0x30b97c of _0xde3fca)for(let _0x386bf5=0x0;_0x386bf5<_0x30b97c['length'];_0x386bf5++){const _0x3b24ff=_0x30b97c[_0x386bf5+0x1]||null;_0x30b97c[_0x386bf5]['next']!==_0x3b24ff&&(_0x30b97c[_0x386bf5]['next']=_0x3b24ff);}for(const _0x499694 of _0xde3fca)for(let _0x1910b8=0x0;_0x1910b8<_0x499694['length'];_0x1910b8++){const _0x2f91b3=_0x499694[_0x1910b8-0x1]||null;_0x499694[_0x1910b8]['previous']!==_0x2f91b3&&(_0x499694[_0x1910b8]['previous']=_0x2f91b3);}function _0x3fbcc2(_0x881ea8,_0xe5aefa){if(_0x881ea8[0x0]['attributes']['groupId']!==_0xe5aefa[0x0]['attributes']['groupId']&&_0x881ea8[0x0]['author']!==_0xe5aefa[0x0]['author'])return!0x1;if(!function(_0xa3634c,_0x4c0a01){if(!_0xa3634c['hasComments']&&!_0x4c0a01['hasComments'])return!0x0;if(_0xa3634c['hasComments']&&_0x4c0a01['hasComments'])return!0x1;if(_0xa3634c['hasComments']&&_0x4c0a01['createdAt']<_0xa3634c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c0a01['hasComments']&&_0xa3634c['createdAt']<_0x4c0a01['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x881ea8[0x0],_0xe5aefa[0x0]))return!0x1;const _0x4240f7=Tt(_0x881ea8[0x0]['attributes'],'groupId'),_0x2ed447=Tt(_0xe5aefa[0x0]['attributes'],'groupId');if(!_0x1c28c7(_0x4240f7,_0x2ed447))return!0x1;return!!_0x881ea8['every'](_0xf041a7=>_0xe5aefa['some'](_0x4702c2=>_0xf041a7['getFirstRange']()['isEqual'](_0x4702c2['getFirstRange']())))&&_0xe5aefa['every'](_0x50d907=>_0x881ea8['some'](_0x1ea50a=>_0x50d907['getFirstRange']()['isEqual'](_0x1ea50a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2ae576){const _0x20756a=Array['from'](_0x2ae576),_0xc25075=this['getSuggestions']({'skipNotAttached':!0x0}),_0x584418=_0xc25075['filter'](_0x55e51c=>!_0x2ae576['has'](_0x55e51c)),_0x1a72f6=new Map(_0x20756a['map'](_0x147474=>[_0x147474,this['_suggestionFactory']['getSuggestionCallback'](_0x147474['type'],_0x147474['subType'],'join')])),_0xe99b36=new Map(_0xc25075['map'](_0x43b0fc=>[_0x43b0fc,_0x43b0fc['getRanges']()]));for(let _0x186efe=0x0;_0x186efe<_0x20756a['length'];_0x186efe++){if(_0x2e3dca(this,_0x20756a[_0x186efe],_0x20756a,_0x186efe+0x1))return!0x0;}for(let _0x398494=0x0;_0x398494<_0x20756a['length'];_0x398494++){if(_0x2e3dca(this,_0x20756a[_0x398494],_0x584418,0x0))return!0x0;}return!0x1;function _0x2e3dca(_0x2d965a,_0x5f58d5,_0x5e69eb,_0x1f2455){for(let _0x39985d=_0x1f2455;_0x39985d<_0x5e69eb['length'];_0x39985d++){const _0x4d0d8b=_0x5e69eb[_0x39985d];if(_0x4d0d8b['type']!==_0x5f58d5['type']||_0x4d0d8b['author']['id']!==_0x5f58d5['author']['id']||_0x4d0d8b['subType']!==_0x5f58d5['subType'])continue;if(!Jt(_0x5f58d5,_0x4d0d8b))continue;if('attribute'==_0x5f58d5['type']&&_0x5f58d5['data']['oldValue']!=_0x4d0d8b['data']['oldValue'])continue;if('attribute'==_0x5f58d5['type']&&_0x2d965a['_isBlockAttribute'](_0x5f58d5['data']['key']))continue;if('formatBlock'==_0x5f58d5['type']){const _0x33b19f=_0x2d965a['editor']['model'],_0xf47872=_0x5f58d5['getContainedElement']();if(_0xf47872&&(_0x33b19f['schema']['isObject'](_0xf47872)||_0x33b19f['schema']['isLimit'](_0xf47872)))continue;}const _0x3c8b45=_0x1a72f6['get'](_0x5f58d5),_0x4442e1=_0xe99b36['get'](_0x5f58d5),_0xc5a20=_0xe99b36['get'](_0x4d0d8b),_0x1ac09c=_0x5f58d5['commentThread']&&_0x5f58d5['commentThread']['length'],_0x3ab862=_0x4d0d8b['commentThread']&&_0x4d0d8b['commentThread']['length'];if(!_0x1ac09c&&_0x3c8b45(_0xc5a20,_0x4442e1))return _0x2d965a['_joinSuggestions'](_0x4d0d8b,_0x5f58d5),_0xe99b36['delete'](_0x5f58d5),!0x0;if(!_0x3ab862&&_0x3c8b45(_0x4442e1,_0xc5a20))return _0x2d965a['_joinSuggestions'](_0x5f58d5,_0x4d0d8b),_0xe99b36['delete'](_0x4d0d8b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x26c6c6,_0x444bf4){if(_0x26c6c6['isMultiRange']){for(const _0x1248ff of _0x444bf4['getRanges']())_0x26c6c6['addRange'](_0x1248ff);}else{const _0xae410b=_0x444bf4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x26c6c6,this['_model']['createRange'](_0x26c6c6['getFirstRange']()['start'],_0xae410b));}_0x444bf4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3eabbf,_0xc210db,_0x51ad4d){const _0xd37400=_0x3eabbf['startsWith']('format')||_0x3eabbf['startsWith']('attribute')?'FORMATTING':_0x3eabbf['toUpperCase']();return o(this['editor']['locale'],_0xc210db+'_'+_0xd37400+'_SUGGESTION_ANNOUNCEMENT',_0x51ad4d);}['_initAriaMarkerChangeAnnouncements'](){const _0x1f4930=this['editor'];if(!_0x1f4930['ui'])return;const {ariaLiveAnnouncer:_0x57b55b}=_0x1f4930['ui'];_0x4a1cb5(this['_model'],({left:_0x5d1b22,entered:_0x307f3f})=>{for(const _0x109121 of _0x5d1b22){const {group:_0x5cc566,type:_0x7bb0}=this['_splitMarkerName'](_0x109121['name']);if('suggestion'===_0x5cc566){_0x57b55b['announce'](this['_getMarkerAnnouncementText'](_0x7bb0,'LEAVE'));break;}}for(const _0x3ae42f of _0x307f3f){const {group:_0x55a103,type:_0x1fc732}=this['_splitMarkerName'](_0x3ae42f['name']);if('suggestion'===_0x55a103){_0x57b55b['announce'](this['_getMarkerAnnouncementText'](_0x1fc732,'ENTER',_0x5981d7(_0x460e9c)));break;}}});}['_processAttributeChanges'](_0x16f2a3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x30d227=this['editor'],_0x1e616d=_0x30d227['model']['document']['differ']['getChanges']();if(0x0==_0x1e616d['length'])return!0x1;const _0x10dc44=[],_0x4fcec9=_0x1e616d['filter'](_0x3f1a1f=>'attribute'==_0x3f1a1f['type']),_0x35568c=_0x1e616d['filter'](_0x331211=>'insert'==_0x331211['type']&&'$text'!=_0x331211['name']),_0x34c303=_0x1e616d['filter'](_0x4c0994=>'remove'==_0x4c0994['type']&&'$text'!=_0x4c0994['name']);for(const _0x159df4 of _0x4fcec9)_0x10dc44['push']({'key':_0x159df4['attributeKey'],'newValue':_0x159df4['attributeNewValue'],'oldValue':_0x159df4['attributeOldValue'],'range':Pt(_0x159df4['range'],_0x30d227['model'])});for(const _0x4cb7a0 of _0x35568c){const _0x449578=_0x34c303['find'](_0x5707e9=>_0x5707e9['position']['isEqual'](_0x4cb7a0['position']));_0x449578&&_0x10dc44['push']({'key':m,'newValue':_0x4cb7a0['name'],'oldValue':_0x449578['name'],'range':_0x30d227['model']['createRangeOn'](_0x4cb7a0['position']['nodeAfter'])});}return 0x0!=_0x10dc44['length']&&this['_reduceExistingSuggestions'](_0x16f2a3,_0x10dc44);}['_processAttributeSuggestions'](_0x44f435){let _0x425782=!0x1;const _0x35bd19=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26a1d8=>_0x26a1d8['data']['newRange']&&_0x26a1d8['name']['startsWith']('suggestion:attribute:'));for(const _0x1f387b of _0x35bd19){const {subType:_0x4481c5,id:_0x1690a4}=this['_splitMarkerName'](_0x1f387b['name']),_0x5cc8eb=_0x4481c5['split']('|')[0x0];for(const _0x44501f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x44501f['id']!=_0x1690a4&&'attribute'==_0x44501f['type']&&_0x44501f['data']&&_0x44501f['data']['key']==_0x5cc8eb&&_0x44501f['getFirstRange']()['isIntersecting'](_0x1f387b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x44501f,_0x1f387b['data']['newRange'],_0x44f435),_0x425782=!0x0);}return _0x425782;}['_recordAttributeChanges'](_0x265d89){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x265d89();}['_isRegisteredAttribute'](_0x22fefa){const _0x330359=this['_isBlockAttribute'](_0x22fefa),_0x5785cf=this['_inlineAttributeKeys']['has'](_0x22fefa);return _0x330359||_0x5785cf;}['_reduceExistingSuggestions'](_0x66da1c,_0xbf8e4a){if(0x0==_0xbf8e4a['length'])return!0x1;let _0xbe4a64=!0x1;for(const _0x1d2105 of _0xbf8e4a){const _0x14b98e=this['_findSuggestions'](_0x1d2105['range'],'attribute')['filter'](_0x25663e=>!_0x25663e['meta']['isNextTo'])['map'](_0x284826=>_0x284826['suggestion']),_0x1919bb=_0x1b9b7c({'newValue':_0x1d2105['newValue']});_0x14b98e['filter'](_0x13da9e=>{const [_0x467fca,_0x5e3d2d]=_0x13da9e['subType']['split']('|');return _0x467fca==_0x1d2105['key']&&_0x5e3d2d!=_0x1919bb;})['forEach'](_0x46e703=>{this['_reduceSuggestionAttributeRange'](_0x46e703,_0x1d2105['range'],_0x66da1c),_0xbe4a64=!0x0;});}return _0xbe4a64;}['_reduceSuggestionAttributeRange'](_0x2d51b4,_0x5a6b6b,_0x148a42){const _0xf0f96f=_0x2d51b4['getFirstRange']()['getDifference'](_0x5a6b6b);0x0!==_0xf0f96f['length']?0x1!==_0xf0f96f['length']?this['_breakSuggestionMarker'](_0x2d51b4,_0x5a6b6b['start'],_0x5a6b6b['end']):this['_setSuggestionRange'](_0x2d51b4,_0xf0f96f[0x0]):_0x148a42['removeMarker'](_0x2d51b4['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4cd231){this['_editor']=_0x4cd231,this['_model']=_0x4cd231['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x351cfd,_0x1ede76,_0x3cd5ea,_0x4c2d0b,_0x2f8812,_0x40059c){return new u(this['_model'],{'type':_0x351cfd,'subType':_0x1ede76,'id':_0x3cd5ea,'author':_0x4c2d0b,'creator':_0x4c2d0b,'attributes':_0x2f8812,'onAttributesChange':_0x40059c,'onAccept':(..._0x28dad0)=>this['getSuggestionCallback'](_0x351cfd,_0x1ede76,'accept')(..._0x28dad0),'onDiscard':(..._0x456d21)=>this['getSuggestionCallback'](_0x351cfd,_0x1ede76,'discard')(..._0x456d21)});}['registerCustomCallback'](_0x2726ea,_0x100123,_0x83a3b2,_0x147261){const _0x313336=_0x2726ea+':'+_0x100123+':'+_0x83a3b2;this['_customCallbacks']['set'](_0x313336,_0x147261);}['getSuggestionCallback'](_0x12008a,_0xe8ccc0,_0xb4d13d){const _0x866a58=_0x12008a+':'+_0xe8ccc0+':'+_0xb4d13d;return this['_customCallbacks']['get'](_0x866a58)||this['_defaultCallbacks']['get'](_0x12008a+':'+_0xb4d13d);}['_registerDefaultCallbacks'](){const _0x381c4f=()=>!0x1,_0x48f0c0=_0x58b050=>{_0x58b050['sort']((_0x45c14b,_0x164005)=>_0x45c14b['start']['isBefore'](_0x164005['start'])?0x1:-0x1),this['_model']['change'](_0x42faad=>{for(const _0x433eef of _0x58b050){let _0xb046dc;_0xb046dc=_0x433eef['end']['isAtEnd']&&_0x433eef['end']['parent']==_0x433eef['start']['nodeAfter']?_0x42faad['createSelection'](_0x433eef['start']['nodeAfter'],'on'):_0x42faad['createSelection'](_0x433eef),this['_model']['deleteContent'](_0xb046dc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5afcf6=(_0x2527be,_0x2a81d8)=>{_0x2a81d8&&this['_model']['change'](_0x36aeb3=>{const {commandName:_0x4f0f2c,commandParams:_0x232469=[]}=_0x2a81d8,_0x164c0b=_0x2527be['map'](_0x19498f=>(Vt(_0x19498f)&&(_0x19498f=this['_model']['createRange'](_0x19498f['end'])),_0x19498f))['filter'](_0x303299=>'$graveyard'!==_0x303299['root']['rootName']);if(_0x164c0b['length']<0x1)return;const _0x3e720e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5290a7=>_0x36a1b3['fromRange'](_0x5290a7));_0x36aeb3['setSelection'](_0x164c0b);for(const _0x2bcb41 of this['_editor']['commands']['commands']())_0x2bcb41['refresh']();_0x232469['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4f0f2c,..._0x232469);const _0x37a822=_0x3e720e['filter'](_0x441c96=>'$graveyard'!=_0x441c96['root']['rootName']);_0x37a822['length']>0x0&&_0x36aeb3['setSelection'](_0x37a822);for(const _0x43498c of _0x3e720e)_0x43498c['detach']();});},_0x21280f=(_0x3b6d56,_0x3e0e31)=>0x1==_0x3b6d56['length']&&0x1==_0x3e0e31['length']&&_0x3b6d56[0x0]['end']['isEqual'](_0x3e0e31[0x0]['start']),_0x37f58c=(_0x53be85,_0x2e2711,_0x2c86db,_0x36c1e4)=>Ht(_0x53be85,_0x2e2711,_0x2c86db,_0x36c1e4,this['_model'])?[_0x53be85,_0x2e2711]:Ht(_0x2e2711,_0x53be85,_0x36c1e4,_0x2c86db,this['_model'])?[_0x2e2711,_0x53be85]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x381c4f),this['_defaultCallbacks']['set']('insertion:discard',_0x48f0c0),this['_defaultCallbacks']['set']('insertion:join',_0x21280f),this['_defaultCallbacks']['set']('insertion:chain',_0x37f58c),this['_defaultCallbacks']['set']('deletion:accept',_0x48f0c0),this['_defaultCallbacks']['set']('deletion:discard',_0x381c4f),this['_defaultCallbacks']['set']('deletion:join',_0x21280f),this['_defaultCallbacks']['set']('deletion:chain',_0x37f58c),this['_defaultCallbacks']['set']('formatInline:accept',_0x5afcf6),this['_defaultCallbacks']['set']('formatInline:discard',_0x381c4f),this['_defaultCallbacks']['set']('formatInline:join',_0x21280f),this['_defaultCallbacks']['set']('formatInline:chain',_0x381c4f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5afcf6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x381c4f),this['_defaultCallbacks']['set']('formatBlock:join',_0x21280f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x381c4f),this['_defaultCallbacks']['set']('attribute:accept',_0x381c4f),this['_defaultCallbacks']['set']('attribute:discard',(_0x1c4cf2,_0x3c0cff)=>{if(!_0x3c0cff)return;const _0x984f14=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5858a3=>{if(_0x3c0cff['key']==m)for(const _0x38474b of _0x1c4cf2){const _0x7c4b8d=_0x38474b['start']['nodeAfter'],_0x55b1c0=_0x3c0cff['oldValue'];_0x5858a3['rename'](_0x7c4b8d,_0x55b1c0);}else{if(_0x984f14['_isBlockAttribute'](_0x3c0cff['key'])){for(const _0x1b9911 of _0x1c4cf2)void 0x0!==_0x3c0cff['oldValue']?_0x5858a3['setAttribute'](_0x3c0cff['key'],_0x3c0cff['oldValue'],_0x1b9911['start']['nodeAfter']):_0x5858a3['removeAttribute'](_0x3c0cff['key'],_0x1b9911['start']['nodeAfter']);}else{for(const _0x488e32 of _0x1c4cf2)_0x3c0cff['oldValue']?_0x5858a3['setAttribute'](_0x3c0cff['key'],_0x3c0cff['oldValue'],_0x488e32):_0x5858a3['removeAttribute'](_0x3c0cff['key'],_0x488e32);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x21280f);}}function Ot(_0x341a48,_0x4a7073,_0x1baa0b){for(const _0x14da95 of _0x4a7073['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14da95['root']==_0x14da95)return!0x1;if(!_0x1baa0b['containsItem'](_0x14da95))return!0x1;if(_0x341a48['isObject'](_0x14da95)||_0x341a48['isLimit'](_0x14da95))return!0x0;}return!0x1;}function Vt(_0xedacbd){return _0xedacbd['end']['parent']==_0xedacbd['start']['nodeAfter']&&_0xedacbd['end']['isAtStart'];}function Ut(_0x22ded1,_0x28d1bf,_0x38fcd6,_0x38864a){const _0x1036ff=_0x37975c=>!_0x37975c['item']['is']('$textProxy')&&!_0x38864a['isObject'](_0x37975c['item']),_0x2c4051=_0x22ded1['start']['getLastMatchingPosition'](_0x1036ff),_0x5de3cc=_0x22ded1['end']['getLastMatchingPosition'](_0x1036ff,{'direction':'backward'});return(!_0x22ded1['start']['isEqual'](_0x2c4051)||!_0x22ded1['end']['isEqual'](_0x5de3cc))&&(_0x2c4051['isBefore'](_0x5de3cc)?_0x38fcd6['updateMarker'](_0x28d1bf,{'range':_0x38fcd6['createRange'](_0x2c4051,_0x5de3cc)}):_0x38fcd6['removeMarker'](_0x28d1bf),!0x0);}function Gt(_0x123852){return _0x1b9b7c(_0x123852);}function Ft(_0x5bc9e0){const _0x312930=_0x5bc9e0['start']['nodeAfter'];return _0x312930&&_0x312930['is']('element');}function Pt(_0x146e1c,_0x76bceb){return null==_0x146e1c['end']['nodeBefore']&&_0x146e1c['end']['parent']==_0x146e1c['start']['nodeAfter']?Lt(_0x146e1c['start']['nodeAfter'],_0x76bceb):_0x146e1c;}function Lt(_0x459ce1,_0x3f9c09){const _0x30964b=_0x3f9c09['schema']['isObject'](_0x459ce1)||_0x3f9c09['schema']['isSelectable'](_0x459ce1);return _0x3f9c09['createRange'](_0x3f9c09['createPositionAt'](_0x459ce1,'before'),_0x30964b?_0x3f9c09['createPositionAfter'](_0x459ce1):_0x3f9c09['createPositionAt'](_0x459ce1,'end'));}function Ht(_0x3accf8,_0x148a68,_0x28b08f,_0x3f1a7a,_0x34b965){if(_0x3accf8['next'])return!0x1;if(!Jt(_0x3accf8,_0x148a68))return!0x1;if(_0x28b08f['end']['isEqual'](_0x3f1a7a['start']))return!0x0;if(_0x3accf8['type']!=_0x148a68['type'])return!0x1;if(!_0x28b08f['end']['isTouching'](_0x3f1a7a['start']))return!0x1;const _0x4d5e3f=_0x34b965['createRange'](_0x28b08f['end'],_0x3f1a7a['start'])['getWalker']();for(const _0x329d72 of _0x4d5e3f)if(['elementStart','elementEnd']['includes'](_0x329d72['type'])&&_0x34b965['schema']['isLimit'](_0x329d72['item']))return!0x1;return!0x0;}function Jt(_0x373f53,_0x196f16){if(!_0x373f53['_isDataLoaded']||!_0x196f16['_isDataLoaded'])return!0x1;const _0x44a054=new Set(Object['keys'](_0x373f53['attributes'])),_0x2bbaf1=new Set(Object['keys'](_0x196f16['attributes']));if(_0x44a054['delete']('groupId'),_0x2bbaf1['delete']('groupId'),0x0==_0x44a054['size']&&0x0==_0x2bbaf1['size'])return!0x0;if(_0x44a054['size']!=_0x2bbaf1['size'])return!0x1;const _0x259471={..._0x373f53['attributes']},_0x35b7ac={..._0x196f16['attributes']};return delete _0x259471['groupId'],delete _0x35b7ac['groupId'],JSON['stringify'](_0x259471)==JSON['stringify'](_0x35b7ac);}function qt(_0xa5388c,_0xeca8e1){const _0x1fc510=zt(_0xa5388c['attributes']),_0x259a1e=zt(_0xeca8e1);if(!_0xa5388c['_isDataLoaded'])return!0x1;for(const _0x1046e7 of Object['keys'](_0x259a1e))if(!_0x1c28c7(_0x1fc510[_0x1046e7],_0x259a1e[_0x1046e7]))return!0x1;return!0x0;}function zt(_0x17f4ce){const _0x1745ea=Object['assign']({},_0x17f4ce);return delete _0x1745ea['skipNestingCheck'],delete _0x1745ea['tablePasteChainId'],_0x1745ea;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x55adc9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x570e80,_0x568cfa,_0x2bbce6,_0x18977c){super(),this['model']=_0x568cfa,this['view']=_0x2bbce6,this['commentThreadController']=_0x18977c,this['_editor']=_0x570e80,this['_acceptCommand']=_0x570e80['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x570e80['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x194306,_0x3b75c6)=>_0x194306||_0x3b75c6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xe13363=>_0xe13363&&this['_editor']['model']['canEditAt'](_0x568cfa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4d0753=>_0x4d0753&&this['_editor']['model']['canEditAt'](_0x568cfa['getRanges']())),this['_pendingAction']=null,_0x2bbce6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2bbce6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2bbce6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2bbce6,'change:isDirty',()=>{_0x2bbce6['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 _0x5a3d4f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5a3d4f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1087a3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1cd7f7,_0x1d4d4c,_0x17bc87,_0x46595b){super(_0x1cd7f7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3bad00(_0x1cd7f7,o(_0x1cd7f7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1d4d4c['authoredAt']),this['bind']('authoredAt')['to'](_0x1d4d4c),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',_0x1d4d4c,'authoredAt',this,'descriptionParts',(_0x5d3d88,_0x37d85b,_0x404642)=>{const _0x31e575=_0x404642['map'](_0x9c833a=>ls(_0x9c833a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5d3d88-0x1,_0x1d4d4c['author']['name'],_0x37d85b?_0x46595b['formatDateTime'](_0x37d85b):'',new DOMParser()['parseFromString'](_0x31e575,'text/html')['body']['textContent']]);}),this['focusables']=new _0xf3a663(),this['focusTracker']=new _0x37aabc(),this['keystrokes']=new _0x37aad2(),this['focusCycler']=new _0x219431({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3b21bb=>_0x3b21bb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1d4d4c,this['_localUser']=_0x17bc87,this['_config']=_0x46595b,_0x46595b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4383e5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3d2f32}=this['_config'];this['commentsListView']=new _0x3d2f32(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',_0xac181e=>_0xac181e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4dee72,_0x1af01e)=>_0x4dee72||!!_0x1af01e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x150702}=this['_config'],_0x3558b5=new _0x150702(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x365f80=_0x3558b5['commentInputView'];return _0x3558b5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x365f80,'value',(_0x7452a5,_0x5514c5,_0xfad3ab)=>!!_0xfad3ab||_0x7452a5&&!_0x5514c5),_0x365f80['on']('submit',(_0x188d45,_0x545480)=>{this['fire']('addComment',_0x545480),_0x365f80['editor']['setData']('');}),_0x365f80['on']('cancel',()=>this['focus']()),_0x365f80['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3558b5;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x30253c,_0x375f40,_0x460dde,_0x4812a6){super(_0x30253c,_0x375f40,_0x460dde,_0x4812a6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5b0c92=>_0x5b0c92&&_0x5b0c92[0x0]?_0x5b0c92[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x376d55,_0x4f4d79)=>{let _0x205cab='';for(const _0x10bcb1 of _0x376d55)_0x205cab+='<p>'+ls(_0x10bcb1['content'],_0x10bcb1['color'])+'</p>';return _0x4f4d79?_0x205cab:_0x186f3c(_0x205cab,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4812a6['SuggestionView'](_0x30253c,_0x375f40,{'formatDateTime':_0x4812a6['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 _0x46070d=this['bindTemplate'],_0x241a1f=[this['suggestionView']];return this['commentsListView']&&_0x241a1f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x241a1f['push'](this['commentThreadInputView']),_0x241a1f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x46070d['if']('isActive','ck-suggestion-wrapper--active'),_0x46070d['to']('type',_0x44159f=>'ck-suggestion-'+_0x44159f),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':_0x46070d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x241a1f};}['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 _0x1087a3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x355eaa,_0x3067aa,_0x5aad9b){super(_0x355eaa),this['_model']=_0x3067aa,this['_config']=_0x5aad9b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3067aa),this['acceptButton']=this['_createButton'](o(_0x355eaa,'Accept\x20suggestion'),_0x42ce4b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x355eaa,'Discard\x20suggestion'),_0x42ce4b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x56318a(_0x355eaa,_0x3067aa['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xf3a663([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x37aabc(),this['keystrokes']=new _0x37aad2(),this['focusCycler']=new _0x219431({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x8f3a5d=>_0x8f3a5d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x25d32b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x25d32b['innerHTML']=this['description'],this['on']('change:description',(_0x3b6f3,_0x550352,_0x4806ea)=>{_0x25d32b['innerHTML']=_0x4806ea;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x128ef9=this['bindTemplate'],_0x7b4c6c=[{'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':_0x128ef9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x128ef9['to']('authoredAt',_0x1be9a3=>this['_config']['formatDateTime'](_0x1be9a3))}]}]},{'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']&&_0x7b4c6c['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':_0x7b4c6c}]};}['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'](_0x197a9c,_0x269e33,_0x53acd0,_0x5cef4f,_0xe0bb6){const _0x5e44af=new _0x37b338(this['locale']);return _0x5e44af['set']({'label':_0x197a9c,'icon':_0x269e33,'tooltip':!0x0,'tooltipPosition':_0xe0bb6}),_0x5e44af['extendTemplate']({'attributes':{'class':_0x53acd0}}),_0x5e44af['on']('execute',()=>{this['fire'](_0x5cef4f,this['_model']['id']);}),_0x5e44af;}['_setupKeyboardNavigation'](){const _0x541c08=this['element'];this['keystrokes']['listenTo'](_0x541c08);for(const _0x3b92e2 of this['focusables'])this['focusTracker']['add'](_0x3b92e2['element']),this['keystrokes']['listenTo'](_0x3b92e2['element']);this['keystrokes']['set']('enter',(_0x5e1161,_0x4bffeb)=>{_0x541c08===_0x5e1161['target']&&(this['focusCycler']['focusFirst'](),_0x4bffeb());}),this['keystrokes']['set']('esc',(_0x3639c9,_0x571ce2)=>{_0x541c08!==_0x3639c9['target']&&(this['focus'](),_0x571ce2());});}}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 _0x35639c{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3dd7cd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1d9e70){super(_0x1d9e70),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2752d7=this['editor']['config'];_0x2752d7['define']('trackChanges.SuggestionThreadView',re),_0x2752d7['define']('trackChanges.SuggestionView',ce),_0x2752d7['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2752d7['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x295e31,_0x1b07f0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x214876,_0x54b8bd]of this['_handleControllerBuffer']){const _0x3f66e3=this['_suggestionToController']['has'](_0x214876);_0x3f66e3||_0x54b8bd?_0x3f66e3&&_0x54b8bd&&this['_destroyController'](_0x214876):this['_initializeController'](_0x214876);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x295e31,_0x1b07f0);}['init'](){const _0x29176b=this['editor'],_0x310e6d=_0x29176b['plugins']['get']('TrackChangesEditing'),_0x38fea4=_0x29176b['plugins']['get']('Annotations'),_0x517a3c=_0x29176b['plugins']['get']('EditorAnnotations'),_0x1f0abe=_0x29176b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x517a3c['addSourceCollector'](()=>{const _0x13ed97=[];for(const [_0x496597,_0x3419f1]of Array['from'](this['_suggestionToController'])){const _0x40517c=_0x496597['getAllAdjacentSuggestions'](),_0x274de3=[];for(const _0x53b37b of _0x40517c){if(!_0x53b37b['isInContent'])continue;if(_0x53b37b['isMultiRange']){_0x274de3['push'](..._0x53b37b['getRanges']());continue;}const _0x2a5a80=_0x53b37b['getFirstRange']();if(_0x274de3['length']>0x0){const _0x3cec45=_0x274de3[0x0]['getJoined'](_0x2a5a80);if(_0x3cec45){_0x274de3[0x0]=_0x3cec45;continue;}}_0x274de3['push'](_0x2a5a80);}_0x13ed97['push']([_0x3419f1['view'],_0x274de3]);}return _0x13ed97;}),this['listenTo'](_0x310e6d,'suggestionLoaded',(_0x1c8593,_0xa6cc35)=>{this['listenTo'](_0xa6cc35,'change:previous',(_0x3991fb,_0x442d8d,_0x408eb1,_0x5ddc6d)=>{_0xa6cc35['isInContent']&&(null==_0x408eb1?(this['_updateController'](_0x5ddc6d['head']),this['_handleSuggestionControllerDelayed'](_0xa6cc35,!0x1)):(this['_updateController'](_0x408eb1['head']),null==_0x5ddc6d&&this['_handleSuggestionControllerDelayed'](_0xa6cc35,!0x0)));}),null!==_0xa6cc35['previous']?this['_updateController'](_0xa6cc35['head']):this['_handleSuggestionControllerDelayed'](_0xa6cc35,!0x1);}),this['listenTo'](_0x310e6d,'suggestionUnloaded',(_0x3e8214,_0x559904,_0x312f0b)=>{this['stopListening'](_0x559904,'change:previous'),this['_handleControllerBuffer']['delete'](_0x559904),this['_suggestionToController']['has'](_0x559904)&&this['_destroyController'](_0x559904),_0x312f0b&&this['_updateController'](_0x312f0b['head']);}),this['listenTo'](_0x310e6d,'suggestionChanged',(_0xdf2418,_0x3dfad5)=>{this['_updateController'](_0x3dfad5);}),this['listenTo'](_0x38fea4,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1f0abe,'addComment',(_0x5c1d8e,{threadId:_0x2e5af2,isFromAdapter:_0x314172})=>{if(_0x314172||!_0x310e6d['hasSuggestion'](_0x2e5af2))return;const _0x55b7bf=_0x310e6d['getSuggestion'](_0x2e5af2);this['_suggestionToController']['get'](_0x55b7bf)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x14c895=this['editor']['plugins']['get']('Annotations'),_0x23a7ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x225ae8=Array['from'](_0x14c895['activeAnnotations'],_0x3ceab2=>_0x3ceab2['innerView'])['filter'](_0x50efaa=>this['_viewToController']['has'](_0x50efaa)),_0x397081=[];for(const _0x394db4 of _0x225ae8){const _0x33b793=this['_viewToController']['get'](_0x394db4)['model']['getAllAdjacentSuggestions']();_0x397081['push'](..._0x33b793['reduce']((_0x56f9ef,_0x57d49c)=>[..._0x56f9ef,..._0x57d49c['getMarkerNames']()],[]));}_0x23a7ab['activeMarkers']=_0x397081;}['_addUIComponentsToFactory'](){const _0x4a2ef9=this['editor'],_0x2697b2=_0x4a2ef9['locale'],_0x28cb5d=o(_0x2697b2,'Track\x20changes'),_0x129362=new Wt([{'type':'switchbutton','model':new _0x1fa453({'withText':!0x0,'isToggleable':!0x0,'label':_0x28cb5d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1fa453({'withText':!0x0,'label':o(_0x2697b2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1fa453({'withText':!0x0,'label':o(_0x2697b2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1fa453({'withText':!0x0,'label':o(_0x2697b2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1fa453({'withText':!0x0,'label':o(_0x2697b2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xc9ae67 of _0x129362)if(me(_0xc9ae67)){const _0xb3a031=_0x4a2ef9['commands']['get'](_0xc9ae67['model']['commandName']);_0xc9ae67['model']['bind']('isOn','isEnabled')['to'](_0xb3a031,'value','isEnabled');}_0x4a2ef9['ui']['componentFactory']['add']('trackChanges',_0x48eaed=>this['_createToolbarButton'](_0x48eaed,_0x129362,_0x28cb5d)),_0x4a2ef9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x70f5e0=>this['_createMenuBarMenu'](_0x70f5e0,_0x129362,_0x28cb5d));}['_createToolbarButton'](_0x5dfc21,_0x4bb025,_0x11567d){const _0x58d071=Qt(_0x5dfc21,_0x5d90f9),_0x491efe=this['editor']['commands']['get']('trackChanges');_0x58d071['buttonView']['set']({'tooltip':_0x11567d,'label':_0x11567d,'icon':he}),_0x58d071['buttonView']['bind']('isOn')['to'](_0x491efe,'value'),_0x58d071['buttonView']['on']('execute',()=>{_0x491efe['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x58d071,_0x4bb025,{'role':'menu'});const _0x227144=[];for(const _0x5e2e9d of _0x4bb025)me(_0x5e2e9d)&&_0x227144['push'](this['editor']['commands']['get'](_0x5e2e9d['model']['commandName']));const _0x43dfda=_0x58d071['buttonView'];return _0x43dfda['actionView']['unbind']('isEnabled'),_0x43dfda['arrowView']['unbind']('isEnabled'),_0x43dfda['actionView']['bind']('isEnabled')['to'](_0x491efe,'isEnabled'),_0x43dfda['arrowView']['bind']('isEnabled')['toMany'](_0x227144,'isEnabled',(..._0x147b05)=>_0x147b05['some'](_0x15f959=>_0x15f959)),_0x58d071['on']('execute',_0x1796da=>{this['editor']['execute'](_0x1796da['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x58d071;}['_createMenuBarMenu'](_0x160051,_0x3c4061,_0x181209){const _0x4abb2a=new Yt(_0x160051),_0x5922b=this['editor']['commands']['get']('trackChanges');_0x4abb2a['buttonView']['set']({'label':_0x181209,'icon':he});const _0x48d874=new Zt(_0x160051);for(const _0x3b8b1c of _0x3c4061){if('separator'==_0x3b8b1c['type']){_0x48d874['items']['add'](new Xt(_0x160051));continue;}const _0x5d08d3=new te(_0x160051,_0x4abb2a),_0x30aa0a=new _0x43dd0a(_0x160051),_0x34002a=_0x3b8b1c['model'];_0x30aa0a['bind'](...Object['keys'](_0x34002a))['to'](_0x34002a),_0x30aa0a['delegate']('execute')['to'](_0x4abb2a),_0x30aa0a['on']('execute',()=>{this['editor']['execute'](_0x34002a['commandName']),this['editor']['editing']['view']['focus']();}),_0x5d08d3['children']['add'](_0x30aa0a),_0x48d874['items']['add'](_0x5d08d3);}return _0x4abb2a['bind']('isEnabled')['to'](_0x5922b,'isEnabled'),_0x4abb2a['panelView']['children']['add'](_0x48d874),_0x4abb2a;}['_initializeController'](_0x545fb7){const _0x266aba=this['editor'],_0x3dc46a=_0x266aba['config'],_0x4b38c2=_0x266aba['plugins']['get']('Annotations'),_0x343401=_0x266aba['plugins']['get']('CommentsRepository'),_0x5b767a=_0x266aba['plugins']['get']('EditorAnnotations'),_0x3f3e3b=_0x266aba['plugins']['get'](_0x3dd7cd)['me'],_0x444328=_0x3dc46a['get']('trackChanges')['SuggestionThreadView'],_0x4749ac=_0x3dc46a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x142796,CommentThreadInputView:_0x53a29e}=_0x266aba['plugins']['get']('CommentsUI');let _0x58ae17,_0x4ad7e6,_0x113158;this['_annotationViews']['has'](_0x545fb7['id'])?(_0x4ad7e6=this['_annotationViews']['get'](_0x545fb7['id']),_0x58ae17=_0x4ad7e6['mainView']):(_0x58ae17=new _0x444328(_0x266aba['locale'],_0x545fb7,_0x3f3e3b,{'disableComments':this['_disableComments'],'editorConfig':_0x3dc46a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3dc46a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3dc46a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3dc46a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x387885(_0x3dc46a['get']('locale')),'CommentView':_0x3dc46a['get']('comments')['CommentView'],'CommentsListView':_0x142796,'CommentThreadInputView':_0x53a29e,'SuggestionView':_0x4749ac}),_0x58ae17['suggestionView']['acceptButton']['on']('execute',()=>{_0x266aba['editing']['view']['focus']();}),_0x58ae17['suggestionView']['discardButton']['on']('execute',()=>{_0x266aba['editing']['view']['focus']();}),_0x4ad7e6=_0x4b38c2['createAnnotationView'](this['editor']['locale'],_0x58ae17),_0x4ad7e6['bind']('isDirty')['to'](_0x58ae17,'isDirty'),_0x4ad7e6['bind']('length')['to'](_0x58ae17),_0x4ad7e6['bind']('type')['to'](_0x58ae17,'type',_0x33bcd9=>'suggestion-'+_0x33bcd9),_0x58ae17['on']('escape',()=>{_0x113158['fire']('escape');}),this['_annotationViews']['set'](_0x545fb7['id'],_0x4ad7e6));const _0x1ca1c9=_0x343401['createCommentThreadController'](_0x545fb7['commentThread'],_0x58ae17),_0x13e2d8=new ae(_0x266aba,_0x545fb7,_0x58ae17,_0x1ca1c9),_0x21bd6b=_0x545fb7['getAllAdjacentSuggestions']()['filter'](_0x15a5fa=>_0x15a5fa['isInContent']);_0x58ae17['descriptionParts']=_0x266aba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x21bd6b),this['_suggestionToController']['set'](_0x545fb7,_0x13e2d8),this['_viewToController']['set'](_0x58ae17,_0x13e2d8),_0x113158=_0x4b38c2['createAnnotation']({'view':_0x4ad7e6,'target':()=>{const _0x1d18be=[],_0x399bf4=_0x545fb7['getAllAdjacentSuggestions']()['filter'](_0x49d300=>_0x49d300['isInContent']);for(const _0x3c20cf of _0x399bf4)_0x1d18be['push'](..._0x3c20cf['getMarkers']());return _0x57e697(_0x266aba['editing'],_0x1d18be);},'type':()=>'suggestion-'+_0x13e2d8['view']['type']}),_0x343401['_bindAnnotationToEditors'](_0x58ae17,_0x113158),_0x4b38c2['add'](_0x113158),_0x5b767a['registerAnnotation'](_0x113158);}['_destroyController'](_0x49492c){const _0xb6278b=this['editor']['plugins']['get']('CommentsRepository'),_0x1aa38d=this['editor']['plugins']['get']('Annotations'),_0x3d8964=this['_suggestionToController']['get'](_0x49492c),_0x18bb19=_0x3d8964['view'],_0xd1b5cb=_0x1aa38d['getByInnerView'](_0x18bb19);_0xb6278b['_unbindEditors'](_0x18bb19),_0xd1b5cb&&_0x1aa38d['remove'](_0xd1b5cb),this['_suggestionToController']['delete'](_0x49492c),this['_viewToController']['delete'](_0x18bb19),_0x3d8964['destroy']();}['_updateController'](_0x46a1e4){if(!_0x46a1e4['isInContent']||!this['_suggestionToController']['has'](_0x46a1e4))return;const _0x4b4c64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x65b0f7=this['_suggestionToController']['get'](_0x46a1e4),_0x1e86e9=_0x46a1e4['getAllAdjacentSuggestions']();_0x65b0f7['view']['descriptionParts']=_0x4b4c64['descriptionFactory']['getDescriptions'](_0x1e86e9);}['destroy'](){for(const _0x248468 of this['_suggestionToController']['keys']())this['_destroyController'](_0x248468);for(const _0x4d2117 of this['_annotationViews']['values']())_0x4d2117['mainView']['destroy']();super['destroy']();}}function me(_0x2d7f50){return'model'in _0x2d7f50;}class k extends _0x35639c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x396bc7){this['editor']['plugins']['get'](p)['adapter']=_0x396bc7;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2a0b29){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2a0b29);}['getSuggestions']({skipNotAttached:_0x21cb5e=!0x1,toJSON:_0x1b5ba8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x21cb5e,'toJSON':_0x1b5ba8});}['getSuggestion'](_0x3aed4c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3aed4c);}}const T=['Pagination'];class P extends _0x35639c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x491ea5=this['editor'];if(_0x491ea5['config']['define']('trackChangesData.editorCreator',_0x134a34=>{const _0x5eacf1=_0x491ea5['model']['document']['getRootNames']()['reduce']((_0x5dcd41,_0x350983)=>(_0x5dcd41[_0x350983]='',_0x5dcd41),{});return _0x491ea5['constructor']['create'](_0x5eacf1,_0x134a34);}),'function'!=typeof _0x491ea5['config']['get']('trackChangesData')['editorCreator'])throw new _0xf45ff('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4e7c35){return N(this['editor'],!0x0,_0x4e7c35);}['getDataWithDiscardedSuggestions'](_0x159ff9){return N(this['editor'],!0x1,_0x159ff9);}}class D extends _0x35639c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1e0542){super(_0x1e0542),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(_0x1cc68b){return void 0x0!==_0x1cc68b['getRootsAttributes'];}async function N(_0x44c620,_0x1057f7,_0x5814ce){const _0xd4e4ae=_0x422316(_0x44c620,T);_0xd4e4ae['plugins']['push'](p,D),_0xd4e4ae['rootsAttributes']=v(_0x44c620)?_0x44c620['getRootsAttributes']():void 0x0;const _0x4b9296=document['createDocumentFragment'](),_0x151354=_0x44c620['config']['get']('trackChangesData')['editorCreator'],_0x1ff1f9=await _0x151354(_0xd4e4ae,()=>function(_0x1a85e8){const _0x3409f1=document['createElement']('div');return _0x1a85e8['appendChild'](_0x3409f1),_0x3409f1;}(_0x4b9296));!function(_0x3f6aef,_0x323d54){const _0xe3c4fb=_0x3f6aef['model']['document']['getRootNames']()['reduce']((_0x553f00,_0x12f47b)=>(_0x553f00[_0x12f47b]=_0x3f6aef['data']['get']({'rootName':_0x12f47b}),_0x553f00),{}),_0x3c31ad=_0x3f6aef['plugins']['get']('Users')['users']['map'](_0x3b6e1a=>({'id':_0x3b6e1a['id'],'name':_0x3b6e1a['name']})),_0x954771=_0x3f6aef['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5700d6=_0x3f6aef['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3329ed=_0x323d54['plugins']['get']('Users'),_0x4ee157=_0x323d54['plugins']['get']('TrackChangesEditing'),_0x1245b6=_0x323d54['plugins']['get']('CommentsRepository');for(const _0x20003c of _0x1245b6['getCommentThreads']())_0x20003c['remove']();for(const _0xcefea0 of _0x3c31ad)_0x3329ed['getUser'](_0xcefea0['id'])||_0x3329ed['addUser'](_0xcefea0);_0x3329ed['me']||_0x3329ed['useAnonymousUser']();for(const _0x409af2 of _0x5700d6)_0x1245b6['addCommentThread'](_0x409af2);for(const _0xe08d92 of _0x954771)_0x4ee157['addSuggestionData'](_0xe08d92);_0x323d54['data']['set'](_0xe3c4fb);}(_0x44c620,_0x1ff1f9),_0x1ff1f9['execute'](_0x1057f7?'acceptAllSuggestions':'discardAllSuggestions');const _0x40b54d=v(_0x1ff1f9)?_0x1ff1f9['getFullData'](_0x5814ce):_0x1ff1f9['data']['get'](_0x5814ce);return await _0x1ff1f9['destroy'](),_0x40b54d;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};