@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241017.0 → 0.0.0-nightly-20241018.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 _0xbd4bc4,PendingActions as _0x57122b,icons as _0x40c46c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x50a6b3,ObservableMixin as _0x32a2fb,uid as _0x44c9df,insertToPriorityArray as _0x11ff89,priorities as _0x399907,logWarning as _0x24bf61,getEnvKeystrokeText as _0x2b7abb,FocusTracker as _0x34e3bb,KeystrokeHandler as _0x83a12f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x49fbac,View as _0x533ec6,ViewCollection as _0x3c4029,FocusCycler as _0x263ff5,ViewModel as _0x4725ce,createDropdown as Qt,SplitButtonView as _0x591713,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x40b566}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x890f8f,hashObject as _0x11f16b,surroundingMarkersDetector as _0x458010,FOCUS_ANNOTATION_KEYSTROKE as _0x1dd87,AriaDescriptionView as _0x2fdbdb,setupThreadKeyboardNavigation as _0x5d1c33,trimHtml as _0x84f398,UserView as _0x4c20db,LateFocusButtonView as _0x154232,getDateTimeFormatter as _0x79ac35,getAllMarkersDomElementsSorted as _0x567fd8,sanitizeEditorConfig as _0x58f336}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4d7fae,LiveRange as _0x4d6067,LivePosition as _0x145a1c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1ebd5c,toWidget as _0x506ded}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3e838d,set as _0x2f5010,isEqual as _0x4a7dae,unset as _0x11ef72,omit as Rt}from'lodash-es';import{Delete as _0xfdf3e8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x8e49f7,ShiftEnter as _0x4fc3e9}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x83804c,_0x454576){super(_0x83804c),this['_enabledCommands']=_0x454576,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 _0x16e516 of this['editor']['commands']['commands']())_0x16e516['affectsData']&&!this['_enabledCommands']['has'](_0x16e516)&&_0x16e516['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4930c6 of this['editor']['commands']['commands']())_0x4930c6['affectsData']&&!this['_enabledCommands']['has'](_0x4930c6)&&_0x4930c6['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x495b7d,_0x3c440b){super(_0x495b7d),this['_suggestions']=_0x3c440b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5bfe97){const _0x57aedc=this['_suggestions']['get'](_0x5bfe97);if(!_0x57aedc)throw new _0x50a6b3('track-changes-accept-suggestion-not-found',this);const _0x3356ac=_0x57aedc['getRanges']();this['editor']['model']['canEditAt'](_0x3356ac)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x57aedc);}}class O extends ts{['_suggestions'];constructor(_0x379464,_0x5e5cb3){super(_0x379464),this['_suggestions']=_0x5e5cb3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x531681){const _0x13a334=this['_suggestions']['get'](_0x531681);if(!_0x13a334)throw new _0x50a6b3('track-changes-discard-suggestion-not-found',this);const _0x415bb9=_0x13a334['getRanges']();this['editor']['model']['canEditAt'](_0x415bb9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x13a334);}}function ls(_0x306879,_0x278fc0){let _0x4104b9='';return _0x4104b9+=_0x306879['split']('*')['map']((_0x4a350c,_0x2b51d6)=>_0x2b51d6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4a350c)+'</span>':nn(_0x4a350c))['join'](''),_0x278fc0&&(_0x4104b9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x278fc0['value']+'\x22\x20title=\x22'+_0x278fc0['title']+'\x22></span>'),_0x4104b9;}function nn(_0x96d7d){const _0x5b007a=document['createElement']('span');return _0x5b007a['innerText']=_0x96d7d,_0x5b007a['innerHTML'];}function ss(_0x4798dd){return _0x4798dd['sort']((_0x2f4c9f,_0x3fb592)=>'deletion'==_0x2f4c9f['type']&&'deletion'!=_0x3fb592['type']?-0x1:'deletion'!=_0x2f4c9f['type']&&'deletion'==_0x3fb592['type']?0x1:0x0);}function to(_0x2cde92,_0xb64342){let _0x5ef64b,_0x217252=0x0;const _0x46848d=[],_0x4f896a=_0xb64342['schema'];for(;_0x217252<_0x2cde92['length'];){const _0x310c42=_0x2cde92[_0x217252],_0x25f3b3=_0x2cde92[_0x217252+0x1];_0x5ef64b||(_0x5ef64b=_0xb64342['createPositionBefore'](_0x310c42)),on(_0xb64342,_0x310c42,_0x25f3b3)||(_0x46848d['push'](_0xb64342['createRange'](_0x5ef64b,_0x4f896a['isObject'](_0x310c42)?_0xb64342['createPositionAfter'](_0x310c42):_0xb64342['createPositionAt'](_0x310c42,'end'))),_0x5ef64b=null),_0x217252++;}return _0x46848d;}function on(_0x4e20d1,_0x4d1b71,_0x18a5fb){if(!_0x18a5fb)return!0x1;const _0x3e2a20=_0x4e20d1['createPositionAfter'](_0x4d1b71),_0xa77060=_0x4e20d1['createPositionBefore'](_0x18a5fb);return _0x3e2a20['isTouching'](_0xa77060);}function rs(_0x7c502b,_0x381049,_0x2863b3){for(;_0x2863b3['length'];){const _0x54dceb=_0x2863b3['splice'](0x0,0x64);_0x7c502b['change'](()=>{for(const _0x187527 of _0x54dceb)_0x187527['isInContent']&&_0x381049['execute'](_0x187527['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x15b116,_0x2837b4,_0x557887){super(_0x15b116),this['_command']=_0x2837b4,this['_suggestions']=_0x557887,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x56bdc2=Array['from'](this['_suggestions']['values']())['some'](_0x173e9b=>_0x173e9b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x56bdc2;}['execute'](){const _0x4670c8=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3bfa2e of _0x4670c8){const _0x2c29ed=_0x3bfa2e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2c29ed))return;}rs(this['editor']['model'],this['_command'],_0x4670c8);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x63bf6d,_0x334fd5,_0x47838d){super(_0x63bf6d),this['_command']=_0x334fd5,this['_suggestions']=_0x47838d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x445164=this['editor']['model']['document']['selection'],_0x1e7e9c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xe49203,_0x5ab007){const _0x347e6d=Array['from'](_0xe49203['getRanges']()),_0x271c16=new Set();for(const _0x6aa151 of _0x5ab007)if(_0x6aa151['isInContent']){for(const _0x46359e of _0x347e6d)for(const _0x43df83 of _0x6aa151['getRanges']())(_0x46359e['isIntersecting'](_0x43df83)||_0xe49203['isCollapsed']&&!_0x6aa151['isMultiRange']&&_0x6aa151['next']&&_0x43df83['end']['isTouching'](_0x46359e['start']))&&_0x271c16['add'](_0x6aa151);}return _0x271c16;}(_0x445164,_0x1e7e9c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x30105b=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2c6bda of _0x30105b){const _0x5e6898=_0x2c6bda['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e6898))return;}rs(this['editor']['model'],this['_command'],_0x30105b);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x32a2fb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xf011f1,_0x5e26f1){super(),this['id']=_0x5e26f1['id'],this['type']=_0x5e26f1['type'],this['subType']=_0x5e26f1['subType']||null,this['author']=_0x5e26f1['author'],this['creator']=_0x5e26f1['creator']||_0x5e26f1['author'],this['isExternal']=Boolean(_0x5e26f1['attributes']&&_0x5e26f1['attributes']['@external']),this['data']=null,this['_model']=_0xf011f1,this['_onAccept']=_0x5e26f1['onAccept'],this['_onDiscard']=_0x5e26f1['onDiscard'],this['_onAttributesChange']=_0x5e26f1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5e26f1['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 _0x5069a7=this;for(;_0x5069a7['previous'];)_0x5069a7=_0x5069a7['previous'];return _0x5069a7;}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'](_0x970a9b){this['_markerNames']['add'](_0x970a9b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4cef03=>this['_model']['markers']['get'](_0x4cef03))['filter'](_0x401e48=>_0x401e48);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x409c30=>{for(const _0x49cbb3 of this['getMarkers']())_0x409c30['removeMarker'](_0x49cbb3);}),this['_markerNames']['clear']();}['removeMarker'](_0x6026a3){this['_model']['change'](_0x7eb35c=>{_0x7eb35c['removeMarker'](_0x6026a3);}),this['_markerNames']['delete'](_0x6026a3);}['addRange'](_0xeeed7e){const _0x2e8614='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2e8614),this['_model']['change'](_0x10af74=>{_0x10af74['addMarker'](_0x2e8614,{'range':_0xeeed7e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x162acd){for(const _0x401acb of this['getRanges']())if(_0x401acb['isIntersecting'](_0x162acd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3da7d3=>_0x3da7d3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4e3d9a,_0x49e7ff)=>[..._0x4e3d9a,..._0x49e7ff['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x528800=this['getRanges']();if(0x1!=_0x528800['length'])return null;const _0x281cc4=_0x528800[0x0],_0x3d13b6=_0x281cc4['start']['nodeAfter'],_0x3a548c=_0x281cc4['end']['nodeBefore'];return _0x3d13b6 instanceof _0x4d7fae?_0x3d13b6!=_0x3a548c?null:_0x3d13b6: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 _0x3b1c90=[];let _0x1b91e6=this['head'];for(;_0x1b91e6;)_0x3b1c90['push'](_0x1b91e6),_0x1b91e6=_0x1b91e6['next'];return _0x3b1c90;}['setAttribute'](_0x1391be,_0x54bc8c){const _0x29205f=_0x3e838d(this['attributes']);_0x2f5010(_0x29205f,_0x1391be,_0x54bc8c),_0x4a7dae(_0x29205f,this['attributes'])||(this['attributes']=_0x29205f,this['_onAttributesChange'](_0x29205f));}['removeAttribute'](_0x3bef53){const _0xe5625d=_0x3e838d(this['attributes']);_0x11ef72(_0xe5625d,_0x3bef53),_0x4a7dae(_0xe5625d,this['attributes'])||(this['attributes']=_0xe5625d,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 _0x44c9df()['substr'](0x1,0x5);}}function o(_0x310233,_0x547506,_0x2daf63){const t=_0x310233['t'];switch(_0x547506){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',_0x2daf63);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2daf63);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2daf63);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2daf63);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2daf63);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',_0x2daf63);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2daf63);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',_0x2daf63);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2daf63);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2daf63);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2daf63);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2daf63);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2daf63);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2daf63);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2daf63);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2daf63);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2daf63);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2daf63);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2daf63);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2daf63);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2daf63);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2daf63);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2daf63);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'},_0x2daf63);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2daf63);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2daf63);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2daf63);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2daf63);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2daf63);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'},_0x2daf63);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2daf63);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2daf63);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2daf63);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2daf63);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'},_0x2daf63);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2daf63);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'},_0x2daf63);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'},_0x2daf63);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2daf63);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'},_0x2daf63);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2daf63);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'},_0x2daf63);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2daf63);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2daf63);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'},_0x2daf63);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'},_0x2daf63);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'},_0x2daf63);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2daf63);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'},_0x2daf63);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'},_0x2daf63);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'},_0x2daf63);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x547506;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2591c0,_0x315823){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2591c0,this['_locale']=_0x315823;}['getDescriptions'](_0x1fcbaa){const _0x3073b6=[],_0x32c096=new Set(),_0x562cf9=new Set();for(let _0xc90a0e=0x0;_0xc90a0e<_0x1fcbaa['length'];_0xc90a0e++){const _0x132138=_0x1fcbaa[_0xc90a0e];if(!_0x132138['isInContent'])continue;const _0x489b76=this['_handleCustomCallbackDescription'](_0x132138);if(_0x489b76){if(null!=_0x132138['subType']){if(_0x32c096['has'](_0x132138['subType']))continue;_0x32c096['add'](_0x132138['subType']);}_0x3073b6['push'](_0x489b76);}else{if('attribute'!=_0x132138['type'])'insertion'!=_0x132138['type']&&'deletion'!=_0x132138['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3073b6,_0x132138,_0x1fcbaa[_0xc90a0e+0x1]);else{const _0x5b688b=_0x132138['data']['key'];if(_0x562cf9['has'](_0x5b688b))continue;_0x562cf9['add'](_0x132138['data']['key']),_0x5b688b==m?this['_handleRenameSuggestionDescription'](_0x3073b6,_0x132138):this['_handleAttributeSuggestionDescription'](_0x3073b6,_0x132138);}}}return this['_resolveDescriptionItems'](_0x3073b6);}['registerDescriptionCallback'](_0x5a7b4e){this['_customCallbacks']['push'](_0x5a7b4e);}['registerElementLabel'](_0x4e323e,_0x55a758,_0x1a422f=_0x399907['normal']){'function'==typeof _0x4e323e?_0x11ff89(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4e323e,'label':_0x55a758,'priority':_0x1a422f}):this['_itemLabels']['set'](_0x4e323e,_0x55a758);}['registerAttributeLabel'](_0x58d9eb,_0x52faac){this['_attributeLabels']['set'](_0x58d9eb,_0x52faac);}['getItemLabel'](_0x534abd,_0x502e35=0x1){let _0x8fcff7;for(const _0x44df02 of this['_itemLabelsCallbacks'])if(_0x44df02['matchingCallback'](_0x534abd)){_0x8fcff7=_0x44df02['label'];break;}return _0x8fcff7||(_0x8fcff7=this['_itemLabels']['get'](_0x534abd['name'])),_0x8fcff7?_0x8fcff7(_0x502e35):0x1!==_0x502e35?_0x502e35+'\x20'+_0x534abd['name']+'s':''+_0x534abd['name'];}['_addDescriptionItems'](_0x265c62,_0x2c2bed){const _0x27580e=_0x2c2bed['getFirstRange']()['getWalker'](),_0x2e662b='insertion'==_0x2c2bed['type']?'add':'remove';for(const _0x38073e of _0x27580e){const _0x4dc256=_0x38073e['item'],_0x4f1ad5=_0x265c62[_0x265c62['length']-0x1];if(_0x4dc256['is']('$textProxy'))_0x4f1ad5&&_0x4f1ad5['type']['indexOf']('Container')>-0x1&&_0x265c62['pop'](),_0x4f1ad5&&'text'==_0x4f1ad5['type']?_0x4f1ad5[_0x2e662b]+=_0x4dc256['data']:_0x265c62['push']({'type':'text','add':'add'==_0x2e662b?_0x4dc256['data']:'','remove':'remove'==_0x2e662b?_0x4dc256['data']:''});else{if(this['_schema']['isObject'](_0x4dc256)){const _0x1bce4d=_0x4dc256;if(_0x4f1ad5&&_0x4f1ad5['type']['indexOf']('Container')>-0x1&&_0x265c62['pop'](),'elementEnd'==_0x38073e['type'])continue;_0x4f1ad5&&_0x4f1ad5['type']==_0x2e662b+'Object'&&_0x4f1ad5['element']['name']==_0x1bce4d['name']?_0x4f1ad5['quantity']++:_0x265c62['push']({'type':_0x2e662b+'Object','element':_0x1bce4d,'quantity':0x1}),_0x27580e['skip'](_0x472383=>!('elementEnd'==_0x472383['type']&&_0x472383['item']==_0x4dc256));}else{if(this['_schema']['checkChild'](_0x4dc256,'$text')||_0x4dc256['is']('element','softBreak')){const _0x22f90a=_0x4dc256;if('add'==_0x2e662b&&'elementStart'==_0x38073e['type']||'remove'==_0x2e662b&&'elementEnd'==_0x38073e['type'])continue;if(_0x4f1ad5&&-0x1==_0x4f1ad5['type']['indexOf']('Container')){'text'==_0x4f1ad5['type']&&(_0x4f1ad5[_0x2e662b]+='\x0a');continue;}let _0xde7cef;if(_0xde7cef='add'==_0x2e662b?_0x22f90a['nextSibling']&&!this['_schema']['isObject'](_0x22f90a['nextSibling'])?_0x22f90a['nextSibling']:null:_0x22f90a['previousSibling']&&!this['_schema']['isObject'](_0x22f90a['previousSibling'])?_0x22f90a['previousSibling']:null,_0x22f90a['isEmpty']||_0xde7cef&&_0xde7cef['isEmpty']){const _0x31c73f=_0xde7cef&&_0xde7cef['isEmpty']?_0xde7cef:_0x22f90a;_0x4f1ad5&&_0x4f1ad5['type']==_0x2e662b+'EmptyContainer'&&_0x4f1ad5['element']['name']==_0x31c73f['name']?_0x4f1ad5['quantity']++:_0x265c62['push']({'type':_0x2e662b+'EmptyContainer','element':_0x31c73f,'quantity':0x1});}else _0x265c62['push']({'type':_0x2e662b+'Container','element':_0x22f90a});}}}}}['_resolveDescriptionItems'](_0x3aee7a){const _0x1e4d91=this['_locale'],_0x1d41b2=[],_0x375e5f=[],_0x300289=[];for(const _0x4f335d of _0x3aee7a)switch(_0x4f335d['type']){case'text':if(_0x4f335d['add']=_0x4f335d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f335d['remove']=_0x4f335d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f335d['add']&&''!=_0x4f335d['remove']){_0x1d41b2['push']({'type':'replace','content':o(_0x1e4d91,'REPLACE_TEXT',['\x22'+_0x4f335d['remove']+'\x22','\x22'+_0x4f335d['add']+'\x22'])});continue;}if(null!=_0x4f335d['add']['match'](/^ +$/)){_0x1d41b2['push']({'type':'insertion','content':o(_0x1e4d91,'*Insert:*\x20%0',o(_0x1e4d91,'ELEMENT_SPACE',_0x4f335d['add']['length']))});continue;}if(null!=_0x4f335d['remove']['match'](/^ +$/)){_0x1d41b2['push']({'type':'deletion','content':o(_0x1e4d91,'*Remove:*\x20%0',o(_0x1e4d91,'ELEMENT_SPACE',_0x4f335d['remove']['length']))});continue;}if(''!=_0x4f335d['add']){_0x1d41b2['push']({'type':'insertion','content':o(_0x1e4d91,'*Insert:*\x20%0','\x22'+_0x4f335d['add']+'\x22')});continue;}_0x1d41b2['push']({'type':'deletion','content':o(_0x1e4d91,'*Remove:*\x20%0','\x22'+_0x4f335d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1d41b2['push']({'type':'insertion','content':o(_0x1e4d91,'*Insert:*\x20%0',this['getItemLabel'](_0x4f335d['element'],_0x4f335d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1d41b2['push']({'type':'deletion','content':o(_0x1e4d91,'*Remove:*\x20%0',this['getItemLabel'](_0x4f335d['element'],_0x4f335d['quantity']))});continue;case'addContainer':_0x1d41b2['push']({'type':'insertion','content':o(_0x1e4d91,'*Split:*\x20%0',this['getItemLabel'](_0x4f335d['element'],_0x4f335d['quantity']))});continue;case'removeContainer':_0x1d41b2['push']({'type':'deletion','content':o(_0x1e4d91,'*Merge:*\x20%0',this['getItemLabel'](_0x4f335d['element'],_0x4f335d['quantity']))});continue;case'addFormat':_0x375e5f['push'](_0x4f335d['key']);continue;case'removeFormat':_0x300289['push'](_0x4f335d['key']);continue;default:_0x1d41b2['push'](_0x4f335d);}if(_0x375e5f['length']){const _0x28531d=_0x375e5f['map'](_0x46f1cc=>this['_attributeLabels']['has'](_0x46f1cc)?this['_attributeLabels']['get'](_0x46f1cc):_0x46f1cc)['join'](',\x20');_0x1d41b2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x28531d)});}if(_0x300289['length']){const _0x4ac844=_0x300289['map'](_0x4ccf6a=>this['_attributeLabels']['has'](_0x4ccf6a)?this['_attributeLabels']['get'](_0x4ccf6a):_0x4ccf6a)['join'](',\x20');_0x1d41b2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4ac844)});}return _0x1d41b2;}['_handleCustomCallbackDescription'](_0x246d58){for(const _0x5af0d2 of this['_customCallbacks']){const _0x4c0885=_0x5af0d2(_0x246d58);if(_0x4c0885&&'type'in _0x4c0885)return _0x4c0885;}}['_handleAttributeSuggestionDescription'](_0x311fb3,_0x57bafe){const _0x469baf=_0x57bafe['data'],_0x39acaf=void 0x0===_0x469baf['newValue']?'removeFormat':'addFormat';_0x311fb3['push']({'type':_0x39acaf,'key':_0x469baf['key']});}['_handleRenameSuggestionDescription'](_0x433ca2,_0x550895){_0x433ca2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x550895['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x267f63,_0x5449dc,_0x7473fc){if(this['_addDescriptionItems'](_0x267f63,_0x5449dc),_0x7473fc&&_0x7473fc['getFirstRange']()&&!_0x5449dc['getFirstRange']()['end']['isEqual'](_0x7473fc['getFirstRange']()['start'])){const _0x3ea686=_0x267f63[_0x267f63['length']-0x1],_0x5a3aac='insertion'==_0x5449dc['type']?'add':'remove';_0x3ea686&&'text'==_0x3ea686['type']&&(_0x3ea686[_0x5a3aac]+='\x0a');}}}class V extends _0xbd4bc4{['afterInit'](){const _0x1b3834=this['editor'],_0xba9e39=_0x1b3834['plugins']['get']('TrackChangesEditing');_0x1b3834['commands']['get']('showAIAssistant')&&_0xba9e39['enableCommand']('showAIAssistant');}}class U extends _0xbd4bc4{['afterInit'](){const _0x451482=this['editor'],_0x9beacb=_0x451482['locale'];if(!_0x451482['plugins']['has']('AlignmentEditing'))return;const _0x32c4c1=_0x451482['plugins']['get']('TrackChangesEditing');_0x32c4c1['enableDefaultAttributesIntegration']('alignment'),_0x32c4c1['registerBlockAttribute']('alignment'),_0x32c4c1['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x9beacb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40208a=this['editor'],_0x1a87f5=_0x40208a['locale'];_0x40208a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x444a4a=>{if('formatBlock'!=_0x444a4a['type'])return;const {data:_0x3a2478}=_0x444a4a;if(_0x3a2478&&'alignment'==_0x3a2478['commandName']){const _0x1505d2=_0x3a2478['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1a87f5,'*Format:*\x20%0',function(_0x200744){switch(_0x200744){case'left':return o(_0x1a87f5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1a87f5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1a87f5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1a87f5,'FORMAT_JUSTIFY_TEXT');}}(_0x1505d2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xbd4bc4{['afterInit'](){const _0x1e221d=this['editor'],_0x4d637d=_0x1e221d['plugins']['get']('TrackChangesEditing'),_0x31458f=_0x1e221d['locale'];for(const _0x5454ac of ti){if(!_0x1e221d['plugins']['has'](_0x5454ac))continue;const _0x27bb08=_0x5454ac['slice'](0x0,-0x7)['toLowerCase'](),_0x705a3f='FORMAT_'+_0x27bb08['toUpperCase']();_0x4d637d['enableDefaultAttributesIntegration'](_0x27bb08),_0x4d637d['registerInlineAttribute'](_0x27bb08),_0x4d637d['descriptionFactory']['registerAttributeLabel'](_0x27bb08,o(_0x31458f,_0x705a3f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe89b94=this['editor'],_0x413048=_0xe89b94['locale'],_0x296931=_0xe89b94['plugins']['get']('TrackChangesEditing');function _0x5ed156(_0x43702c,_0x11bc0f){_0x296931['descriptionFactory']['registerDescriptionCallback'](_0x412162=>{if('formatInline'!=_0x412162['type'])return;const {data:_0x3bc42d}=_0x412162;return _0x3bc42d&&_0x3bc42d['commandName']===_0x43702c?_0x3bc42d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x413048,'*Format:*\x20%0',_0x11bc0f)}:{'type':'format','content':o(_0x413048,'*Remove\x20format:*\x20%0',_0x11bc0f)}:void 0x0;});}_0x5ed156('bold',o(_0x413048,'FORMAT_BOLD')),_0x5ed156('italic',o(_0x413048,'FORMAT_ITALIC')),_0x5ed156('underline',o(_0x413048,'FORMAT_UNDERLINE')),_0x5ed156('code',o(_0x413048,'FORMAT_CODE')),_0x5ed156('strikethrough',o(_0x413048,'FORMAT_STRIKETHROUGH')),_0x5ed156('subscript',o(_0x413048,'FORMAT_SUBSCRIPT')),_0x5ed156('superscript',o(_0x413048,'FORMAT_SUPERSCRIPT'));}}class F extends _0xbd4bc4{['afterInit'](){const _0x54a697=this['editor'],_0x538112=_0x54a697['locale'];if(!_0x54a697['plugins']['has']('BlockQuoteEditing'))return;const _0x48da08=_0x54a697['plugins']['get']('TrackChangesEditing'),_0xf36f60=this['editor']['commands']['get']('blockQuote');_0x48da08['enableCommand']('blockQuote',(_0x6b28b2,_0x157ced={})=>{const _0x137fd3=this['editor']['model']['document']['selection'],_0x13ad64=_0x157ced&&void 0x0!==_0x157ced['forceValue']?_0x157ced['forceValue']:!_0xf36f60['value'];let _0x5c8f62=[];if(_0x13ad64){const _0x300f23=Array['from'](_0x137fd3['getSelectedBlocks']())['filter'](_0x4d8e50=>oo(_0x4d8e50)||function(_0x26f871,_0xe17a76){const _0x4a8213=_0xe17a76['checkChild'](_0x26f871['parent'],'blockQuote'),_0x324469=_0xe17a76['checkChild'](['$root','blockQuote'],_0x26f871);return _0x4a8213&&_0x324469;}(_0x4d8e50,this['editor']['model']['schema']));_0x5c8f62=to(_0x300f23,_0x54a697['model']);}else{const _0x41c21a=Array['from'](_0x137fd3['getSelectedBlocks']())['filter'](_0x271949=>oo(_0x271949));_0x5c8f62=to(_0x41c21a,_0x54a697['model']);}_0x54a697['model']['change'](()=>{for(const _0x4aca49 of _0x5c8f62)_0x48da08['markBlockFormat'](_0x4aca49,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x13ad64}]});});}),_0x48da08['descriptionFactory']['registerDescriptionCallback'](_0x170ae7=>{const {data:_0x2844b3}=_0x170ae7;if(_0x2844b3&&'blockQuote'==_0x2844b3['commandName']){const _0x3e68c8=o(_0x538112,'ELEMENT_BLOCK_QUOTE');return _0x2844b3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x538112,'*Set\x20format:*\x20%0',_0x3e68c8)}:{'type':'format','content':o(_0x538112,'*Remove\x20format:*\x20%0',_0x3e68c8)};}});}}function oo(_0x2bf21a){return'blockQuote'==_0x2bf21a['parent']['name'];}class L extends _0xbd4bc4{['afterInit'](){const _0xdf33dd=this['editor'];_0xdf33dd['plugins']['has']('CaseChange')&&(_0xdf33dd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xdf33dd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xdf33dd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xbd4bc4{['afterInit'](){const _0x5f418d=this['editor'];_0x5f418d['commands']['get']('ckbox')&&_0x5f418d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0xbd4bc4{['afterInit'](){const _0x3fb082=this['editor'];if(!_0x3fb082['plugins']['has']('CodeBlock'))return;const _0x1792fe=_0x3fb082['plugins']['get']('TrackChangesEditing'),_0x542573=_0x3fb082['locale'],_0xfc18d7=_0x3fb082['config']['get']('codeBlock')['languages'],_0x368a0a=_0x3fb082['commands']['get']('codeBlock');_0x1792fe['enableCommand']('indentCodeBlock'),_0x1792fe['enableCommand']('outdentCodeBlock'),_0x1792fe['enableCommand']('codeBlock',(_0x50f75b,_0x2c127a={})=>{const _0x52b8e6=_0x3fb082['model'],_0x613ac7=_0x3fb082['model']['document']['selection'],_0x4ed766=_0x2c127a&&void 0x0!==_0x2c127a['forceValue']?_0x2c127a['forceValue']:!_0x368a0a['value'];let _0x68fe50;_0x2c127a['language']||(_0x2c127a['language']=_0xfc18d7[0x0]['language']),_0x68fe50=_0x4ed766?Array['from'](_0x613ac7['getSelectedBlocks']())['filter'](_0x245721=>eo(_0x245721)||function(_0x2f4e10,_0x3aecf3){if(_0x2f4e10['is']('rootElement')||_0x3aecf3['isLimit'](_0x2f4e10))return!0x1;return _0x3aecf3['checkChild'](_0x2f4e10['parent'],'codeBlock');}(_0x245721,_0x52b8e6['schema'])):Array['from'](_0x613ac7['getSelectedBlocks']())['filter'](_0x1209da=>eo(_0x1209da));const _0x455f68=to(_0x68fe50,_0x52b8e6);_0x52b8e6['change'](()=>{for(const _0x50d417 of _0x455f68)_0x1792fe['markBlockFormat'](_0x50d417,{'commandName':'codeBlock','commandParams':[{..._0x2c127a,'forceValue':_0x4ed766}],'formatGroupId':'blockName'});});}),(_0x1792fe['descriptionFactory']['registerElementLabel']('codeBlock',_0x18a810=>o(_0x542573,'ELEMENT_CODE_BLOCK',_0x18a810)),_0x1792fe['descriptionFactory']['registerDescriptionCallback'](_0x5362bf=>{if('formatBlock'!=_0x5362bf['type'])return;const _0x41b73f=_0x542573['t'],{data:_0x39aacb}=_0x5362bf;if(!_0x39aacb||'codeBlock'!=_0x39aacb['commandName'])return;const _0xa58033=_0x39aacb['commandParams'][0x0]['language'],_0x2c0c22=_0x41b73f(_0xfc18d7['find'](_0x53a832=>_0x53a832['language']===_0xa58033)['label'])['toLowerCase']();return _0x39aacb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x542573,'*Set\x20format:*\x20%0',o(_0x542573,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2c0c22+')')}:{'type':'format','content':o(_0x542573,'*Remove\x20format:*\x20%0',o(_0x542573,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x559066){return'codeBlock'==_0x559066['name'];}class q extends _0xbd4bc4{['afterInit'](){const _0x5efc04=this['editor'];if(!_0x5efc04['plugins']['has']('CommentsEditing'))return;_0x5efc04['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2b3a88,_0xfbb20,_0x9a2126){const _0x4cee48=[];for(const _0x13a841 of _0xfbb20['getItems']())_0x13a841['hasAttribute'](_0x2b3a88)&&_0x4cee48['push'](_0x9a2126['createRangeOn'](_0x13a841));return _0x4cee48;}function _e(_0x5b30de,_0x45f815,{showActiveMarker:_0x3331c2=!0x0}={}){const _0x2fa0da=_0x5b30de['plugins']['get']('TrackChangesEditing');return(_0x15853f,_0x1ce13f,_0x4e3aea)=>{if(!_0x4e3aea['consumable']['test'](_0x1ce13f['markerRange'],_0x15853f['name']))return;const _0x137fc4=_0x1ce13f['markerRange']['getWalker'](),_0x1f39fd=_0x1ce13f['markerRange']['start'],_0x4aea0f=_0x5b30de['model']['schema'];let _0x5969e8=null,_0x3f391d=null,_0x3c1591=!0x1,_0x431c9c=!0x1;for(const _0x337ead of _0x137fc4){const _0x376038=_0x337ead['item'];_0x3c1591=_0x3c1591||_0x4aea0f['isContent'](_0x376038);const _0x33e8b9=_0x4e3aea['mapper']['toViewElement'](_0x376038);if(_0x33e8b9&&_0x33e8b9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x337ead['type']&&(_0x4aea0f['isBlock'](_0x376038)&&!_0x4aea0f['isLimit'](_0x376038)&&(_0x376038['nextSibling']||_0x1f39fd['isAtEnd']?_0x5969e8&&_0x5969e8['parent']==_0x376038||(_0x5969e8=_0x376038,_0x7c41b0(_0x337ead['previousPosition']),_0x431c9c=!0x0):_0x3f391d=_0x3f391d||_0x337ead['previousPosition']));}function _0x7c41b0(_0xa5ea11){const {authorId:_0x59bc68}=_0x2fa0da['_splitMarkerName'](_0x1ce13f['markerName']),_0x5367c8=_0x4e3aea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45f815,'data-author-id':_0x59bc68}),_0x3dd3a8=_0x4e3aea['mapper']['toViewPosition'](_0xa5ea11);_0x3331c2&&_0x2fa0da['activeMarkers']['includes'](_0x1ce13f['markerName'])&&_0x4e3aea['writer']['addClass']('ck-suggestion-marker--active',_0x5367c8),_0x4e3aea['writer']['insert'](_0x3dd3a8,_0x5367c8),_0x4e3aea['mapper']['bindElementToMarker'](_0x5367c8,_0x1ce13f['markerName']);}_0x3c1591||_0x431c9c||!_0x3f391d||_0x7c41b0(_0x3f391d);};}class z extends _0xbd4bc4{static get['requires'](){return[_0xfdf3e8];}['init'](){const _0x49c758=this['editor'],_0x596950=_0x49c758['plugins']['get']('TrackChangesEditing');_0x596950['enableCommand']('delete');const _0xef6a7=_0x49c758['commands']['get']('deleteForward');_0x596950['enableCommand']('deleteForward',(_0x4c499b,_0x254aa8={})=>{const _0x32a2ba=_0x49c758['model']['createSelection'](_0x49c758['model']['document']['selection']);_0x32a2ba['isCollapsed']&&_0x49c758['model']['modifySelection'](_0x32a2ba,{'direction':'forward','unit':_0x254aa8['unit']});const _0x1c691f=_0x32a2ba['getFirstRange'](),_0x34a93e=_0x4d6067['fromRange'](_0x1c691f);let _0x4b6a40;_0x4c499b(_0x254aa8),_0x4b6a40='$graveyard'==_0x34a93e['root']['rootName']?_0x49c758['model']['createRange'](_0x1c691f['start']):_0x49c758['model']['createRange'](_0x34a93e['start'],_0x34a93e['end']),_0x34a93e['detach'](),_0x49c758['model']['enqueueChange'](_0xef6a7['buffer']['batch'],_0x516746=>{_0xef6a7['buffer']['lock'](),_0x516746['setSelection'](_0x516746['createRange'](_0x4b6a40['end'])),_0xef6a7['buffer']['unlock']();});}),_0x49c758['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x49c758,'merge'),{'priority':'high'}),_0x49c758['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3d8098,_0x5611b1,_0x18eea2)=>{_0x18eea2['options']['showSuggestionHighlights']&&_e(_0x49c758,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3d8098,_0x5611b1,_0x18eea2);},{'priority':'high'}),_0x49c758['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4730fd,_0x889fe6,_0x14dbf0)=>{const _0x7ef889=_0x14dbf0['mapper']['markerNameToElements'](_0x889fe6['markerName']);if(_0x7ef889){for(const _0x3dcd9d of _0x7ef889)_0x3dcd9d['is']('uiElement')&&(_0x14dbf0['mapper']['unbindElementFromMarkerName'](_0x3dcd9d,_0x889fe6['markerName']),_0x14dbf0['writer']['remove'](_0x3dcd9d));}},{'priority':'high'});}}class K extends _0xbd4bc4{['afterInit'](){const _0x46e937=this['editor'];if(!_0x46e937['plugins']['has']('ListEditing'))return;const _0x4224a5=_0x46e937['locale'],_0x1e1ca9=_0x46e937['plugins']['get']('TrackChangesEditing'),_0x30b65f=_0x46e937['plugins']['has']('TodoListEditing'),_0x5675eb=!!_0x46e937['config']['get']('list.multiBlock');function _0x51d6bc(_0x535b4e){return{'type':'format','content':''+o(_0x4224a5,'*Set\x20format:*\x20%0',_0x535b4e)};}function _0xfdaef8(_0x3be5da){return{'type':'format','content':''+o(_0x4224a5,'*Remove\x20format:*\x20%0',_0x3be5da)};}_0x1e1ca9['enableDefaultAttributesIntegration']('numberedList'),_0x1e1ca9['enableDefaultAttributesIntegration']('bulletedList'),_0x1e1ca9['enableDefaultAttributesIntegration']('customNumberedList'),_0x1e1ca9['enableDefaultAttributesIntegration']('customBulletedList'),_0x1e1ca9['enableDefaultAttributesIntegration']('indentList'),_0x1e1ca9['enableDefaultAttributesIntegration']('outdentList'),_0x1e1ca9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1e1ca9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1e1ca9['registerBlockAttribute']('listItemId'),_0x1e1ca9['registerBlockAttribute']('listType'),_0x1e1ca9['registerBlockAttribute']('listIndent'),_0x5675eb&&(_0x1e1ca9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1e1ca9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x30b65f&&(_0x1e1ca9['enableDefaultAttributesIntegration']('todoList'),_0x1e1ca9['enableDefaultAttributesIntegration']('checkTodoList'),_0x1e1ca9['registerBlockAttribute']('todoListChecked'),_0x1e1ca9['descriptionFactory']['registerDescriptionCallback'](_0x9236a5=>{const {data:_0x58fd18}=_0x9236a5;if(_0x58fd18&&'todoListChecked'==_0x58fd18['key'])return{'type':'format','content':_0x58fd18['newValue']?o(_0x4224a5,'*Check\x20item*'):o(_0x4224a5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1330b1=>{if(_0x1330b1['batch']['isUndo'])return!0x1;let _0x14417d=!0x1;const _0x377eb4=_0x1e1ca9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7cdfe6=>'todoListChecked'===_0x1e1ca9['_getAttributeKey'](_0x7cdfe6));for(const _0x397abb of _0x377eb4){'todo'!=_0x397abb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1e1ca9['_findSuggestions'](_0x397abb['getFirstRange'](),'attribute')['find'](_0x17adec=>'listType'===_0x1e1ca9['_getAttributeKey'](_0x17adec['suggestion']))||(_0x1330b1['removeMarker'](_0x397abb['getFirstMarker']()),_0x14417d=!0x0));}return _0x14417d;})),_0x1e1ca9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4224a5,'FORMAT_INDENT'));const _0x520e7b={'type':'format','content':''};_0x1e1ca9['descriptionFactory']['registerDescriptionCallback'](_0x10d3d2=>{const {data:_0x193459}=_0x10d3d2;if(!_0x193459||'listType'!=_0x193459['key'])return;let _0x535e71=_0x10d3d2['head'];for(;_0x535e71;){if(_0x535e71['data']&&(('listStyle'==_0x535e71['data']['key']||'listMarkerStyle'==_0x535e71['data']['key'])&&(_0x535e71['data']['newValue']&&'default'!=_0x535e71['data']['newValue']||'default'!=_0x535e71['data']['oldValue']&&!_0x193459['newValue'])||!_0x5675eb&&_0x535e71['data']['key']==m))return _0x520e7b;_0x535e71=_0x535e71['next'];}if(null==_0x193459['newValue'])switch(_0x193459['oldValue']){case'bulleted':return _0xfdaef8(o(_0x4224a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfdaef8(o(_0x4224a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfdaef8(o(_0x4224a5,'ELEMENT_TODO_LIST'));}switch(_0x193459['newValue']){case'bulleted':return _0x51d6bc(o(_0x4224a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51d6bc(o(_0x4224a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51d6bc(o(_0x4224a5,'ELEMENT_TODO_LIST'));}}),_0x1e1ca9['descriptionFactory']['registerDescriptionCallback'](_0x531ddd=>{const {data:_0x3d4fbd}=_0x531ddd;if(_0x3d4fbd&&'listIndent'==_0x3d4fbd['key'])return null==_0x3d4fbd['newValue']||null==_0x3d4fbd['oldValue']&&0x0==_0x3d4fbd['newValue']?_0x520e7b:void 0x0;}),_0x1e1ca9['descriptionFactory']['registerDescriptionCallback'](_0x1516b8=>{if('attribute'!=_0x1516b8['type'])return;const {data:_0x383545}=_0x1516b8;if(!_0x383545||'listItemId'!=_0x383545['key'])return;const _0x5b6bf9=Ee(_0x1516b8);return'newValue'==_0x5b6bf9?{'type':'format','content':o(_0x4224a5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5b6bf9?{'type':'format','content':o(_0x4224a5,'*Split:*\x20list\x20item')}:_0x520e7b;}),_0x46e937['model']['document']['registerPostFixer'](_0x12cf92=>this['listItemIdFixer'](_0x12cf92)),_0x46e937['model']['document']['registerPostFixer'](_0x28fe09=>this['noTrackChangesFixer'](_0x28fe09)),_0x46e937['model']['document']['on']('change:data',(_0x4e03de,_0x2e8d0e)=>{if(_0x2e8d0e['isUndo']||!_0x2e8d0e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x7aa231){if(_0x7aa231['batch']['isUndo']||!_0x7aa231['batch']['isLocal'])return!0x1;let _0x21e2be=!0x1;const _0x1fe1fa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47c31a=>_0x47c31a['data']&&'listItemId'==_0x47c31a['data']['key'])['filter'](_0x114a53=>_0x114a53['data']['newValue']&&_0x114a53['data']['oldValue']);for(const _0x24fe33 of _0x1fe1fa)Ee(_0x24fe33)||(_0x7aa231['removeMarker'](_0x24fe33['getFirstMarker']()),_0x21e2be=!0x0);return _0x21e2be;}['noTrackChangesFixer'](_0xf48629){if(_0xf48629['batch']['isUndo']||!_0xf48629['batch']['isLocal'])return!0x1;const _0x34ef6a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x34ef6a['trackChangesCommand']['value'])return!0x1;let _0x4c1a2d=!0x1;const _0x5bd2f8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x33dc00=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2fc49a=>'attribute'==_0x2fc49a['type'])['filter'](_0x12c858=>_0x5bd2f8['includes'](_0x12c858['attributeKey']));if(0x0==_0x33dc00['length'])return _0x4c1a2d;for(const _0x35e460 of _0x33dc00){const _0x366654=_0x34ef6a['_findSuggestions'](_0x35e460['range'],'attribute')['filter'](_0x5073e1=>!_0x5073e1['meta']['isNextTo'])['map'](_0x11ee1e=>_0x11ee1e['suggestion'])['filter'](_0x2bfeb8=>{const _0x2f8ffb=_0x34ef6a['_getAttributeKey'](_0x2bfeb8);return _0x5bd2f8['includes'](_0x2f8ffb);});if(_0x366654['length']){for(const _0x46ef3f of _0x366654)_0xf48629['removeMarker'](_0x46ef3f['getFirstMarker']());_0x4c1a2d=!0x0;}}return _0x4c1a2d;}['assureChains'](){const _0x24dc05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x134a6d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x446ce7;const _0x412666=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a5302=>{if(_0x3a5302['data']['oldRange']||!_0x3a5302['data']['newRange'])return null;if(!_0x3a5302['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x22048b}=_0x24dc05['_splitMarkerName'](_0x3a5302['name']);if(!_0x24dc05['hasSuggestion'](_0x22048b))return null;const _0x691d6b=_0x24dc05['getSuggestion'](_0x22048b);return _0x134a6d['includes'](_0x691d6b['data']['key']);})['map'](_0x94e2af=>{const {id:_0x2e7813}=_0x24dc05['_splitMarkerName'](_0x94e2af['name']),_0x34eba7=_0x24dc05['getSuggestion'](_0x2e7813);return _0x446ce7=_0x34eba7['attributes']['groupId'],_0x34eba7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x412666['size'])return;const _0x15e0e6=_0x24dc05['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46909f=>'attribute'==_0x46909f['type']&&_0x46909f['data']&&_0x134a6d['includes'](_0x46909f['data']['key'])&&_0x46909f['attributes']['groupId']!=_0x446ce7)['map'](_0x12fbb3=>({'listItem':_0x12fbb3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x12fbb3['attributes']['groupId']})),_0x14fee9=new Set();for(const {groupId:_0x175177,listItem:_0x4f61c0}of _0x15e0e6)_0x412666['has'](_0x4f61c0)&&_0x14fee9['add'](_0x175177);for(const _0x8228df of _0x24dc05['getSuggestions']())_0x14fee9['has'](_0x8228df['attributes']['groupId'])&&_0x8228df['setAttribute']('groupId',_0x446ce7);}['_supportLegacySuggestions'](){const _0x24656f=this['editor'],_0x4adad6=_0x24656f['locale'],_0x1409ad=_0x24656f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1409ad['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x38c4e5,_0x49e95f){const _0x4df79a=[];for(let _0xc141c3 of _0x38c4e5)_0xc141c3['start']['nodeAfter']===_0xc141c3['end']['parent']&&(_0xc141c3=_0x24656f['model']['createRange'](_0x24656f['model']['createPositionAt'](_0xc141c3['start']['nodeAfter'],0x0))),_0x4df79a['push'](_0xc141c3);_0x24656f['model']['change'](_0x101855=>{const _0x2e64f1=_0x24656f['model']['document']['selection'],_0x228d44=Array['from'](_0x2e64f1['getRanges']())['map'](_0x46f0c7=>_0x4d6067['fromRange'](_0x46f0c7));_0x101855['setSelection'](_0x4df79a),_0x24656f['commands']['get'](_0x49e95f['commandName'])['refresh'](),_0x49e95f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x24656f['execute'](_0x49e95f['commandName'],..._0x49e95f['commandParams']),_0x101855['setSelection'](_0x228d44);for(const _0x2526d7 of _0x228d44)_0x2526d7['detach']();});}),_0x1409ad['descriptionFactory']['registerElementLabel'](function(_0x5979cd){const _0x4c78cb=!_0x24656f['model']['schema']['isObject'](_0x5979cd),_0x4632f0=_0x5979cd['previousSibling'],_0x45c354=_0x5979cd['nextSibling'],_0x40da80=_0x5979cd['getAttribute']('listItemId'),_0x261d39=!_0x4632f0||_0x4632f0['getAttribute']('listItemId')!==_0x40da80,_0x2727e5=!_0x45c354||_0x45c354['getAttribute']('listItemId')!==_0x40da80;return _0x4c78cb&&Boolean(_0x40da80)&&_0x261d39&&_0x2727e5;},_0xbc4118=>o(_0x4adad6,'ELEMENT_LIST_ITEM',_0xbc4118));}['_registerLegacyDescription'](){const _0x31ee8d=this['editor'],_0x377c46=_0x31ee8d['locale'];function _0x22002e(_0x2bc269){const _0x32a134=_0x31ee8d['commands']['get']('bulletedList')['value'],_0x51cb3d=_0x31ee8d['commands']['get']('numberedList')['value'];return'numberedList'===_0x2bc269?_0x32a134:_0x51cb3d;}_0x31ee8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4f30c9){if('formatBlock'!=_0x4f30c9['type'])return;const {data:_0x3cfd74}=_0x4f30c9;if(!_0x3cfd74)return;let _0x48d6bd,_0xb4a022,_0x277d30,_0xdb7b5c;switch(_0x3cfd74['commandName']){case'bulletedList':_0x277d30=_0x3cfd74['commandParams'][0x0]['forceValue'],_0xdb7b5c=_0x22002e(_0x3cfd74['commandName']),_0x48d6bd=_0x277d30?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xdb7b5c&&_0x31ee8d['config']['get']('list.multiBlock')||(_0x48d6bd='*Change\x20to:*\x20%0'),_0xb4a022={'type':'format','content':o(_0x377c46,_0x48d6bd,o(_0x377c46,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x277d30=_0x3cfd74['commandParams'][0x0]['forceValue'],_0xdb7b5c=_0x22002e(_0x3cfd74['commandName']),_0x48d6bd=_0x277d30?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xdb7b5c&&_0x31ee8d['config']['get']('list.multiBlock')||(_0x48d6bd='*Change\x20to:*\x20%0'),_0xb4a022={'type':'format','content':o(_0x377c46,_0x48d6bd,o(_0x377c46,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x48d6bd='*Indent:*\x20%0',_0xb4a022={'type':'format','content':o(_0x377c46,_0x48d6bd,o(_0x377c46,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x48d6bd=function(_0x1e7c6d){const _0x41b5d9=_0x1e7c6d['getFirstRange']();let _0x332629=_0x41b5d9['start']['nodeAfter'];for(;_0x332629&&_0x41b5d9['containsItem'](_0x332629);){if(_0x332629['getAttribute']('listIndent')>0x0)return!0x1;_0x332629=_0x332629['nextSibling'];}return!0x0;}(_0x4f30c9)?o(_0x377c46,'*Format:*\x20remove\x20from\x20%0',o(_0x377c46,function(_0x2390dc){return'ELEMENT_'+_0x2390dc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4f30c9))):o(_0x377c46,'*Outdent:*\x20%0',o(_0x377c46,'ELEMENT_LIST_ITEM')),_0xb4a022={'type':'format','content':_0x48d6bd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3cfd74['multipleBlocks']&&(_0x48d6bd='*Merge:*\x20%0',_0xb4a022={'type':'deletion','content':o(_0x377c46,_0x48d6bd,o(_0x377c46,'ELEMENT_LIST_ITEM'))});}return _0xb4a022;});}}function Ee(_0x4e1be7){let _0x50bdb2=_0x4e1be7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x50bdb2;){const _0x23d888=_0x50bdb2['getAttribute']('listItemId');if(!_0x23d888)return!0x1;if(_0x23d888==_0x4e1be7['data']['newValue'])return'newValue';if(_0x23d888==_0x4e1be7['data']['oldValue'])return'oldValue';_0x50bdb2=_0x50bdb2['previousSibling'];}return!0x1;}class pe extends _0xbd4bc4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x17a1d4=this['editor']['config']['get']('list.properties'),_0x3e3904=this['editor']['plugins']['get']('TrackChangesEditing');_0x17a1d4['styles']&&(_0x3e3904['enableDefaultAttributesIntegration']('listStyle'),_0x3e3904['registerBlockAttribute']('listStyle')),_0x17a1d4['reversed']&&(_0x3e3904['enableDefaultAttributesIntegration']('listReversed'),_0x3e3904['registerBlockAttribute']('listReversed')),_0x17a1d4['startIndex']&&(_0x3e3904['enableDefaultAttributesIntegration']('listStart'),_0x3e3904['registerBlockAttribute']('listStart'));const _0x3c1ed7={'type':'format','content':''};_0x3e3904['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x511d86=this['editor']['locale'];_0x3e3904['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x511d86,'FORMAT_LIST_REVERSED')),_0x3e3904['descriptionFactory']['registerDescriptionCallback'](_0x47826b=>{const {data:_0x39050c}=_0x47826b;if(_0x39050c&&'listReversed'==_0x39050c['key'])return null==_0x39050c['newValue']||0x0==_0x39050c['newValue']&&null==_0x39050c['oldValue']?_0x3c1ed7:void 0x0;}),_0x3e3904['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x511d86,'FORMAT_LIST_START')),_0x3e3904['descriptionFactory']['registerDescriptionCallback'](_0x1b3f88=>{const {data:_0x51beea}=_0x1b3f88;if(_0x51beea&&'listStart'==_0x51beea['key'])return null==_0x51beea['newValue']||0x1==_0x51beea['newValue']&&null==_0x51beea['oldValue']?_0x3c1ed7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b0733=>{if(_0x1b0733['batch']['isUndo'])return!0x1;let _0x958a02=!0x1;const _0x15c576=_0x3e3904['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1452a2=>{const _0x1a046f=_0x3e3904['_getAttributeKey'](_0x1452a2);return'listStart'==_0x1a046f||'listReversed'==_0x1a046f;});for(const _0x134bdf of _0x15c576){const _0x14e0f3=_0x134bdf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x14e0f3||'customNumbered'==_0x14e0f3)continue;_0x3e3904['_findSuggestions'](_0x134bdf['getFirstRange'](),'attribute')['find'](_0x2f4be9=>'listType'==_0x3e3904['_getAttributeKey'](_0x2f4be9['suggestion']))||(_0x1b0733['removeMarker'](_0x134bdf['getFirstMarker']()),_0x958a02=!0x0);}return _0x958a02;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1a17e7){const _0x5b70d0=this['editor']['locale'],{data:_0x1f1b4c}=_0x1a17e7,_0x26f25a={'type':'format','content':''};if(!_0x1f1b4c||'listStyle'!=_0x1f1b4c['key'])return;if(!_0x1f1b4c['oldValue'])return'default'==_0x1f1b4c['newValue']?_0x26f25a:{'type':'format','content':''+o(_0x5b70d0,'*Set\x20format:*\x20%0',o(_0x5b70d0,this['_getTranslationKeyForListStyle'](_0x1f1b4c['newValue'])))};if(!_0x1f1b4c['newValue']){if('default'==_0x1f1b4c['oldValue'])return _0x26f25a;let _0x40dbaa=_0x1a17e7['head'];for(;_0x40dbaa;){if(_0x40dbaa['data']&&'listType'==_0x40dbaa['data']['key']&&_0x40dbaa['data']['newValue'])return _0x26f25a;_0x40dbaa=_0x40dbaa['next'];}return{'type':'format','content':''+o(_0x5b70d0,'*Remove\x20format:*\x20%0',o(_0x5b70d0,this['_getTranslationKeyForListStyle'](_0x1f1b4c['oldValue'])))};}if('default'!=_0x1f1b4c['newValue'])return{'type':'format','content':''+o(_0x5b70d0,'*Set\x20format:*\x20%0',o(_0x5b70d0,this['_getTranslationKeyForListStyle'](_0x1f1b4c['newValue'])))};let _0xdd921f=_0x1a17e7['head'];for(;_0xdd921f;){if(_0xdd921f['data']&&'listType'==_0xdd921f['data']['key']&&_0xdd921f['data']['newValue']&&_0xdd921f['data']['oldValue'])return _0x26f25a;_0xdd921f=_0xdd921f['next'];}return{'type':'format','content':o(_0x5b70d0,'*Set\x20format:*\x20%0',o(_0x5b70d0,'ELEMENT_'+_0x1a17e7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2d4a51=this['editor'],_0x3c0156=_0x2d4a51['locale'];_0x2d4a51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b8340=>{if('formatBlock'!=_0x5b8340['type'])return;const {data:_0x5e7db0}=_0x5b8340;if(!_0x5e7db0)return;let _0x579be3,_0x18e04f;switch(_0x5e7db0['commandName']){case'listStyle':_0x579be3='*Change\x20to:*\x20%0',_0x18e04f={'type':'format','content':o(_0x3c0156,_0x579be3,o(_0x3c0156,this['_getTranslationKeyForListStyle'](_0x5e7db0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x579be3=_0x5e7db0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18e04f={'type':'format','content':o(_0x3c0156,_0x579be3)};break;case'listStart':_0x579be3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18e04f={'type':'format','content':o(_0x3c0156,_0x579be3,_0x5e7db0['commandParams'][0x0]['startIndex'])};}return _0x18e04f;});}['_getTranslationKeyForListStyle'](_0x2082df){return'ELEMENT_'+function(_0x3a659a){if(ye['includes'](_0x3a659a))return'bulleted';if(Se['includes'](_0x3a659a))return'numbered';return null;}(_0x2082df)['toUpperCase']()+'_LIST_'+_0x2082df['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0xbd4bc4{static get['requires'](){return[_0x8e49f7];}['init'](){const _0x178136=this['editor'],_0x587ff7=_0x178136['plugins']['get']('TrackChangesEditing'),_0x48384c=_0x178136['commands']['get']('enter');_0x587ff7['enableCommand']('enter',()=>{_0x178136['model']['change'](_0x38391c=>{const _0x28bb8b=_0x178136['model']['document']['selection'],_0x530298=_0x28bb8b['getFirstPosition'](),_0x569dac=_0x4d6067['fromRange'](_0x28bb8b['getFirstRange']());if(_0x48384c['enterBlock'](_0x38391c)){const _0x2439cd=_0x178136['model']['createPositionAt'](_0x530298['parent']['nextSibling'],0x0),_0xe57918=_0x38391c['createRange'](_0x530298,_0x2439cd);_0x587ff7['markInsertion'](_0xe57918);}else _0x38391c['setSelection'](_0x38391c['createRange'](_0x569dac['end']));_0x569dac['detach'](),_0x48384c['fire']('afterExecute',{'writer':_0x38391c});});}),_0x178136['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x178136,'split'),{'priority':'high'}),_0x178136['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2cc932,_0x1da6bc,_0xb4a55b)=>{const _0x29b33b=_0xb4a55b['mapper']['markerNameToElements'](_0x1da6bc['markerName']);if(_0x29b33b){for(const _0x3a2b0a of _0x29b33b)_0x3a2b0a['hasClass']('ck-suggestion-marker-split')&&(_0xb4a55b['mapper']['unbindElementFromMarkerName'](_0x3a2b0a,_0x1da6bc['markerName']),_0xb4a55b['writer']['remove'](_0x3a2b0a));}},{'priority':'high'}),_0x178136['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34994f,_0x1e02a4,_0x54ef55)=>{_0x54ef55['options']['showSuggestionHighlights']&&_e(_0x178136,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x34994f,_0x1e02a4,_0x54ef55);},{'priority':'high'});}}class X extends _0xbd4bc4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x59d1c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x59d1c4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x59d1c4['enableCommand']('findNext'),_0x59d1c4['enableCommand']('findPrevious'),_0x59d1c4['enableCommand']('replace'),_0x59d1c4['enableCommand']('replaceAll');}['handleFindCommand'](_0x59f122,_0x3179fe,_0xd61dcd={}){const _0x12f80b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x59f122(_0x453ea5=>{let _0xf8716f=('string'==typeof _0x3179fe?_0x12f80b['findByTextCallback'](_0x3179fe,_0xd61dcd):_0x3179fe)(_0x453ea5);Array['isArray'](_0xf8716f)&&(_0xf8716f={'results':_0xf8716f,'searchText':'string'==typeof _0x3179fe?_0x3179fe:''});const _0x398340=_0xf8716f['results']['filter'](_0x1ec5ae=>!0x1===this['_isInDeletionRange'](_0x1ec5ae,_0x453ea5['item']));return{..._0xf8716f,'results':_0x398340};},_0xd61dcd);}['_isInDeletionRange'](_0x38fae8,_0x3ea288){const _0x2ff9cb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ea288,_0x38fae8['start']),this['editor']['model']['createPositionAt'](_0x3ea288,_0x38fae8['end']));for(const _0x188522 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2ff9cb['getIntersection'](_0x188522['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 _0xbd4bc4{['afterInit'](){const _0x2ee677=this['editor']['locale'],_0x1aeb8a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4b4b61,commandName:_0x40e792}of ro)this['editor']['plugins']['has'](_0x4b4b61)&&(_0x1aeb8a['enableDefaultAttributesIntegration'](_0x40e792),_0x1aeb8a['registerInlineAttribute'](_0x40e792));_0x1aeb8a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2ee677,'FORMAT_FONT_SIZE')),_0x1aeb8a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2ee677,'FORMAT_FONT_FAMILY')),_0x1aeb8a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2ee677,'FORMAT_FONT_COLOR')),_0x1aeb8a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2ee677,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c226=this['editor'],_0x1ded34=_0x51c226['locale'];_0x51c226['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bdd8e=>{const _0x5272db=_0x1ded34['t'];if('formatInline'!=_0x2bdd8e['type'])return;const {data:_0xedf365}=_0x2bdd8e;if(null!=_0xedf365){if('fontSize'==_0xedf365['commandName']){const _0x39eb73=_0xedf365['commandParams'][0x0]['value'];if(_0x39eb73){const _0x574346=_0x5272db(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x403433=>_0x403433['model']==_0x39eb73)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ded34,'*Set\x20font\x20size:*\x20%0',_0x574346)};}return{'type':'format','content':o(_0x1ded34,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xedf365['commandName']){const _0xea39e0=_0xedf365['commandParams'][0x0]['value'];return _0xea39e0?{'type':'format','content':o(_0x1ded34,'*Set\x20font\x20family:*\x20%0',_0xea39e0)}:{'type':'format','content':o(_0x1ded34,'*Reset\x20font\x20family*')};}if('fontColor'==_0xedf365['commandName']){const _0xd3ce69=_0xedf365['commandParams'][0x0]['value'];if(_0xd3ce69){const _0x54eab5=_0x49fbac(this['editor']['config']['get']('fontColor.colors'))['find'](_0x48fadb=>_0x48fadb['model']==_0xd3ce69);let _0x80b36=_0xd3ce69,_0x77a177='';return _0x54eab5&&(_0x80b36=_0x54eab5['label'],_0x77a177=_0x5272db(_0x80b36)['toLowerCase']()),{'type':'format','content':o(_0x1ded34,'*Set\x20font\x20color:*\x20%0',_0x77a177)['trim'](),'color':{'value':_0xd3ce69,'title':_0x77a177||_0x80b36}};}return{'type':'format','content':o(_0x1ded34,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xedf365['commandName']){const _0x163bea=_0xedf365['commandParams'][0x0]['value'];if(_0x163bea){const _0x3c085f=_0x49fbac(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5a647a=>_0x5a647a['model']==_0x163bea);let _0xbcc9e9=_0x163bea,_0xa3b699='';return _0x3c085f&&(_0xbcc9e9=_0x3c085f['label'],_0xa3b699=_0x5272db(_0xbcc9e9)['toLowerCase']()),{'type':'format','content':o(_0x1ded34,'*Set\x20font\x20background\x20color:*\x20%0',_0xa3b699)['trim'](),'color':{'value':_0x163bea,'title':_0xa3b699||_0xbcc9e9}};}return{'type':'format','content':o(_0x1ded34,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0xbd4bc4{['afterInit'](){const _0x48d33f=this['editor'],_0x45a4f9=_0x48d33f['plugins']['get']('TrackChangesEditing'),_0x59c9da=_0x48d33f['commands']['get']('copyFormat'),_0x3f3172=_0x48d33f['commands']['get']('pasteFormat');_0x59c9da&&_0x3f3172&&(_0x45a4f9['enableDefaultAttributesIntegration']('pasteFormat'),_0x45a4f9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x49ef8e=this['editor'],_0x18b693=_0x49ef8e['locale'];_0x49ef8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281dc8=>{if('formatBlock'!=_0x281dc8['type']&&'formatInline'!=_0x281dc8['type'])return;const {data:_0x344efe}=_0x281dc8;if(_0x344efe&&'pasteFormat'===_0x344efe['commandName']){const _0x19ba03=[],_0x3d02a2=_0x344efe['commandParams'][0x0];for(const [_0x2d0acc,_0x36e731]of Object['entries'](_0x3d02a2))_0x19ba03['push'](so(_0x49ef8e,_0x2d0acc,_0x36e731));return _0x19ba03['length']?{'type':'format','content':o(_0x18b693,'*Set\x20format\x20to:*\x20%0',_0x19ba03['join'](',\x20'))}:{'type':'format','content':o(_0x18b693,'*Remove\x20all\x20formatting*')};}});}}function so(_0x18b4ad,_0x45add2,_0x9053e8){const _0xc1aae9=_0x18b4ad['locale']['t'],_0x16e943=_0x45add2['split'](/(?=[A-Z])/)['join']('\x20'),_0x1d0364=_0xc1aae9(_0x16e943['charAt'](0x0)['toUpperCase']()+_0x16e943['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x9053e8)return _0x1d0364;if('fontColor'===_0x45add2||'fontBackgroundColor'===_0x45add2){const _0x38dae3=_0x49fbac(_0x18b4ad['config']['get']('fontColor.colors'))['find'](_0x1f0b4b=>_0x1f0b4b['model']==_0x9053e8);return _0x1d0364+'\x20('+(_0x38dae3?_0xc1aae9(_0x38dae3['label'])['toLowerCase']():_0x9053e8)+')';}if('fontSize'===_0x45add2&&isNaN(parseFloat(_0x9053e8))){const _0x4942df=_0x18b4ad['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x18b4ad['config']['get']('fontSize.options'))['find'](_0x5b004b=>_0x5b004b['model']==_0x9053e8);return _0x1d0364+'\x20('+(_0x4942df?_0xc1aae9(_0x4942df['title'])['toLowerCase']():_0x9053e8)+')';}return _0x1d0364+'\x20('+_0x9053e8+')';}class tt extends _0xbd4bc4{['_headingOptions'];['afterInit'](){const _0x3f5cc8=this['editor'];if(!_0x3f5cc8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f5cc8['config']['get']('heading.options');const _0x2ebb6f=_0x3f5cc8['locale'],_0x389754=_0x3f5cc8['plugins']['get']('TrackChangesEditing');_0x389754['enableDefaultAttributesIntegration']('heading');for(const _0x6bf052 of this['_headingOptions'])'paragraph'!=_0x6bf052['model']&&_0x389754['descriptionFactory']['registerElementLabel'](_0x6bf052['model'],_0x32337d=>{const _0x22593d=this['_getHeadingLevel'](_0x6bf052['model']);return null!==_0x22593d?_0x546869(_0x32337d,_0x22593d):_0x451d75(_0x32337d,_0x6bf052['title']);});function _0x546869(_0x284c00,_0x3e271c){return o(_0x2ebb6f,'ELEMENT_HEADING',[_0x284c00,_0x3e271c]);}function _0x451d75(_0x571983,_0x3e317c){return o(_0x2ebb6f,'ELEMENT_HEADING_CUSTOM',[_0x571983,_0x3e317c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58250e=this['editor'],_0x1a99fa=_0x58250e['locale'];function _0x26fb06(_0x18910f,_0xbfb3ab){return o(_0x1a99fa,'ELEMENT_HEADING_CUSTOM',[_0x18910f,_0xbfb3ab]);}_0x58250e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3efe46=>{if('formatBlock'!=_0x3efe46['type'])return;const {data:_0x58b053}=_0x3efe46;if(_0x58b053&&'heading'==_0x58b053['commandName']){const _0x389814=_0x58b053['commandParams'][0x0]['value'],_0x229250=this['_getHeadingLevel'](_0x389814);if(null!==_0x229250)return{'type':'format','content':o(_0x1a99fa,'*Change\x20to:*\x20%0',(_0x2d60f3=0x1,_0x1a67c3=_0x229250,o(_0x1a99fa,'ELEMENT_HEADING',[_0x2d60f3,_0x1a67c3])))};const _0x386fe7=this['_headingOptions']['find'](_0xf048a7=>_0xf048a7['model']===_0x389814)['title'];return{'type':'format','content':o(_0x1a99fa,'*Change\x20to:*\x20%0',_0x26fb06(0x1,_0x386fe7))};}var _0x2d60f3,_0x1a67c3;});}['_getHeadingLevel'](_0x3290de){const _0xb1c260=_0x3290de['match'](/^heading(\d+)/);if(_0xb1c260)return _0xb1c260[0x1];const _0x5790ce=this['_headingOptions']?.['find'](_0x48846e=>_0x48846e['model']==_0x3290de);if(_0x5790ce&&_0x5790ce['view']){const _0x29cc1c=_0x5790ce['view'],_0x56042f=(_0x29cc1c['name']??_0x29cc1c)['match'](/^h(\d+)/);if(_0x56042f)return _0x56042f[0x1];}return null;}}class et extends _0xbd4bc4{['afterInit'](){const _0x3c845e=this['editor'];if(!_0x3c845e['plugins']['has']('HighlightEditing'))return;const _0x20326f=_0x3c845e['plugins']['get']('TrackChangesEditing'),_0x56df51=_0x3c845e['locale'];_0x20326f['enableDefaultAttributesIntegration']('highlight'),_0x20326f['registerInlineAttribute']('highlight'),_0x20326f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x56df51,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a6b9d=this['editor'],_0x31faf2=_0x4a6b9d['locale'];_0x4a6b9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e5670=>{if('formatInline'!=_0x1e5670['type'])return;const {data:_0x404f2e}=_0x1e5670;if(_0x404f2e&&'highlight'==_0x404f2e['commandName']){const _0x33aee3=_0x31faf2['t'],_0x4e4336=_0x404f2e['commandParams'][0x0]['value'];if(_0x4e4336){const _0x24b84c=_0x4a6b9d['config']['get']('highlight.options')['find'](_0x4bc40b=>_0x4bc40b['model']==_0x4e4336),_0x53085c=_0x33aee3(_0x24b84c['title'])['toLowerCase']();return{'type':'format','content':o(_0x31faf2,'*Set\x20highlight:*\x20%0',_0x53085c),'color':{'value':_0x24b84c['color'],'title':_0x24b84c['title']}};}return{'type':'format','content':o(_0x31faf2,'*Remove\x20highlight*',o(_0x31faf2,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xbd4bc4{['afterInit'](){const _0x46249d=this['editor'];if(!_0x46249d['plugins']['has']('HorizontalLineEditing'))return;_0x46249d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3bf0ec=_0x46249d['plugins']['get']('TrackChangesEditing'),_0x4df438=_0x46249d['locale'];_0x3bf0ec['descriptionFactory']['registerElementLabel']('horizontalLine',_0x377ed1=>o(_0x4df438,'ELEMENT_HORIZONTAL_LINE',_0x377ed1)),_0x46249d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x713d23,{writer:_0x4d40e7,options:_0x4ce3ce})=>{if(!_0x4ce3ce['showSuggestionHighlights'])return null;const _0x41a462=_0x4d40e7['createContainerElement']('div'),_0xd50b57=_0x4d40e7['createEmptyElement']('hr');return _0x4d40e7['addClass']('ck-horizontal-line',_0x41a462),_0x4d40e7['insert'](_0x4d40e7['createPositionAt'](_0x41a462,0x0),_0xd50b57),_0x41a462;},'converterPriority':'high'});}}class st extends _0xbd4bc4{['afterInit'](){const _0xa2d4f3=this['editor'];if(!_0xa2d4f3['plugins']['has']('HtmlEmbed'))return;const _0x277a1c=_0xa2d4f3['plugins']['get']('TrackChangesEditing'),_0x27b63d=_0xa2d4f3['locale'];_0x277a1c['descriptionFactory']['registerElementLabel']('rawHtml',_0x24a194=>o(_0x27b63d,'ELEMENT_HTML_EMBED',_0x24a194)),_0x277a1c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x277a1c['registerBlockAttribute']('value'),_0x277a1c['descriptionFactory']['registerDescriptionCallback'](_0x45def9=>{if('attribute'!=_0x45def9['type'])return;const {data:_0x66fca3}=_0x45def9;if(_0x66fca3&&'value'==_0x66fca3['key']&&_0x45def9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4fffa5=o(_0x27b63d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x27b63d,'*Change\x20%0\x20content*',_0x4fffa5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a4199=this['editor'],_0xe304a2=_0x1a4199['locale'];_0x1a4199['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x675abe=>{if('formatBlock'!=_0x675abe['type'])return;const {data:_0xea720}=_0x675abe;if(_0xea720&&'htmlEmbed'==_0xea720['commandName']){const _0x3ed965=o(_0xe304a2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe304a2,'*Change\x20%0\x20content*',_0x3ed965)};}});}}class nt extends _0xbd4bc4{['afterInit'](){const _0x5566ff=this['editor'];if(!_0x5566ff['plugins']['has']('ImageEditing'))return;const _0x599c4b=_0x5566ff['plugins']['get']('TrackChangesEditing'),_0x9f49b7=_0x5566ff['plugins']['get']('ImageUtils'),_0x41daa4=_0x5566ff['locale'];_0x599c4b['enableCommand']('insertImage'),_0x599c4b['descriptionFactory']['registerElementLabel']('imageBlock',_0x1b40a6=>o(_0x41daa4,'ELEMENT_IMAGE',_0x1b40a6)),_0x599c4b['descriptionFactory']['registerElementLabel']('imageInline',_0x4267ec=>o(_0x41daa4,'ELEMENT_INLINE_IMAGE',_0x4267ec)),_0x599c4b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x41daa4,'ELEMENT_CAPTION')),_0x5566ff['plugins']['has']('ImageUploadEditing')&&_0x599c4b['enableCommand']('uploadImage'),_0x5566ff['plugins']['has']('ImageBlockEditing')&&_0x5566ff['plugins']['has']('ImageInlineEditing')&&(_0x599c4b['enableCommand']('imageTypeInline',(_0x208c9e,_0x508fc3)=>{const _0xf39f6b=_0x9f49b7['getClosestSelectedImageElement'](_0x5566ff['model']['document']['selection']);_0x5566ff['model']['change'](()=>{_0x599c4b['markBlockFormat'](_0xf39f6b,{'commandName':'imageTypeInline','commandParams':[_0x508fc3]},[],'convertBlockImageToInline');});}),_0x599c4b['enableCommand']('imageTypeBlock',(_0x372a14,_0x2a94a6)=>{_0x5566ff['model']['change'](_0x538caa=>{let _0x46122f=_0x9f49b7['getClosestSelectedImageElement'](_0x5566ff['model']['document']['selection']),_0x2dbfef=_0x538caa['createRangeOn'](_0x46122f);const _0xe9f91b=_0x145a1c['fromPosition'](_0x2dbfef['start'],'toPrevious'),_0x970a6e=_0x145a1c['fromPosition'](_0x2dbfef['end'],'toNext');_0x599c4b['forceDefaultExecution'](()=>_0x372a14(_0x2a94a6)),_0x46122f=_0x9f49b7['getClosestSelectedImageElement'](_0x5566ff['model']['document']['selection']),_0x2dbfef=_0x538caa['createRangeOn'](_0x46122f);const _0x1309d8=_0x538caa['createRange'](_0xe9f91b,_0x970a6e);_0xe9f91b['detach'](),_0x970a6e['detach'](),_0x599c4b['markBlockFormat'](_0x46122f,{'commandName':'imageTypeInline','commandParams':[_0x2a94a6]},[],'convertInlineImageToBlock'),_0x1309d8['start']['isBefore'](_0x2dbfef['start'])&&_0x599c4b['markInsertion'](_0x538caa['createRange'](_0x1309d8['start'],_0x2dbfef['start']),'convertInlineImageToBlock'),_0x2dbfef['end']['isBefore'](_0x1309d8['end'])&&_0x599c4b['markInsertion'](_0x538caa['createRange'](_0x2dbfef['end'],_0x1309d8['end']),'convertInlineImageToBlock');});}),_0x599c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x599c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x599c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x599c4b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x599c4b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x599c4b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x27d508])=>{const _0x72b00=_0x599c4b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x426273=_0x27d508['start'],_0x58c247=_0x27d508['end'];const _0x1b2a7a=_0x5566ff['model']['schema']['getNearestSelectionRange'](_0x426273,'backward'),_0x2ee565=_0x5566ff['model']['schema']['getNearestSelectionRange'](_0x58c247,'forward');_0x1b2a7a['isCollapsed']&&(_0x426273=_0x1b2a7a['start']),_0x2ee565['isCollapsed']&&(_0x58c247=_0x2ee565['end']),_0x72b00([_0x5566ff['model']['createRange'](_0x426273,_0x58c247)]);}),_0x599c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5bb067),_0x599c4b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5bb067)),_0x5566ff['plugins']['has']('ImageCaptionEditing')&&(_0x599c4b['enableCommand']('toggleImageCaption',(_0x3f0710,_0x543e2c)=>{const _0x424324=_0x5566ff['plugins']['get']('ImageCaptionUtils');let _0x155cb5=_0x9f49b7['getClosestSelectedImageElement'](_0x5566ff['model']['document']['selection']),_0x18837b=_0x424324['getCaptionFromImageModelElement'](_0x155cb5);_0x5566ff['model']['change'](()=>{if(_0x18837b)return void _0x599c4b['markDeletion'](_0x5566ff['model']['createRangeOn'](_0x18837b));const _0x3a9472=_0x9f49b7['isBlockImage'](_0x155cb5);_0x3f0710(_0x543e2c),_0x155cb5=_0x9f49b7['getClosestSelectedImageElement'](_0x5566ff['model']['document']['selection']),_0x18837b=_0x424324['getCaptionFromImageModelElement'](_0x155cb5),_0x599c4b['markInsertion'](_0x5566ff['model']['createRangeOn'](_0x18837b),_0x3a9472?null:'imageCaption');});}),_0x599c4b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5bb067));const _0x9c7c43=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b7404(_0x33be5a,_0x3f41b3){const _0x205776=_0x9c7c43['findIndex'](({type:_0x4aa08c,subType:_0x42d82f})=>_0x33be5a['type']==_0x4aa08c&&_0x33be5a['subType']==_0x42d82f),_0x10b2c8=_0x9c7c43['findIndex'](({type:_0x411f07,subType:_0x5347de})=>_0x3f41b3['type']==_0x411f07&&_0x3f41b3['subType']==_0x5347de);if(_0x205776<0x0||_0x10b2c8<0x0)return!0x1;const _0x1085d0=_0x33be5a['getFirstRange'](),_0x257e32=_0x3f41b3['getFirstRange']();if((0x0==_0x205776||0x1==_0x205776)&&0x2==_0x10b2c8&&_0x1085d0['isIntersecting'](_0x257e32))return!0x0;if(0x2==_0x205776&&0x3==_0x10b2c8){const _0x3535e7=_0x599c4b['_findSuggestions'](_0x1085d0,'insertion')['filter'](({suggestion:_0x25abe2,meta:_0x2103ae})=>_0x2103ae['isOwn']&&'convertInlineImageToBlock'==_0x25abe2['subType']);if(_0x3535e7['length']>0x1&&_0x257e32['end']['isEqual'](_0x1085d0['start']))return!0x0;if(0x1==_0x3535e7['length']&&(_0x1085d0['start']['isEqual'](_0x257e32['end'])||_0x1085d0['end']['isEqual'](_0x257e32['start'])))return!0x0;}if(0x3==_0x205776&&0x3==_0x10b2c8&&_0x1085d0['start']['isBefore'](_0x257e32['start'])){const _0x58d730=_0x1085d0['end']['nodeAfter'],_0x50755f=_0x257e32['start']['nodeBefore'];return _0x9f49b7['isBlockImage'](_0x58d730)&&_0x58d730===_0x50755f;}return!0x1;}function _0x5bb067(_0x41ca9b,_0x3c41e3){return _0x4b7404(_0x41ca9b,_0x3c41e3)?[_0x41ca9b,_0x3c41e3]:_0x4b7404(_0x3c41e3,_0x41ca9b)?[_0x3c41e3,_0x41ca9b]:null;}_0x5566ff['plugins']['has']('ImageResize')&&(_0x599c4b['enableDefaultAttributesIntegration']('resizeImage'),_0x599c4b['registerBlockAttribute']('resizedWidth'),_0x599c4b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x41daa4,'FORMAT_IMAGE_SIZE'))),_0x5566ff['plugins']['has']('ImageTextAlternativeEditing')&&(_0x599c4b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x599c4b['registerBlockAttribute']('alt')),_0x599c4b['descriptionFactory']['registerDescriptionCallback'](_0x5d4c7b=>{if(!!_0x9c7c43['find'](({type:_0x2ac301,subType:_0x56a92b})=>_0x5d4c7b['type']==_0x2ac301&&_0x5d4c7b['subType']==_0x56a92b))return _0x5d4c7b['previous']?{}:void 0x0;}),_0x599c4b['descriptionFactory']['registerDescriptionCallback'](_0x2a7570=>{if('insertion'==_0x2a7570['type']||'deletion'==_0x2a7570['type']){const _0xaeeb27=_0x2a7570['getContainedElement']();if(_0xaeeb27&&_0xaeeb27['is']('element','caption'))return{'type':'insertion'==_0x2a7570['type']?'addObject':'removeObject','element':_0xaeeb27,'quantity':0x1};}}),_0x599c4b['descriptionFactory']['registerDescriptionCallback'](_0x4cac47=>'formatBlock'==_0x4cac47['type']&&'convertInlineImageToBlock'==_0x4cac47['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4cac47['type']&&'convertBlockImageToInline'==_0x4cac47['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x599c4b['descriptionFactory']['registerDescriptionCallback'](_0x42da76=>{if('attribute'!=_0x42da76['type'])return;const {data:_0x445c22}=_0x42da76;if(!_0x445c22||'alt'!=_0x445c22['key'])return;const _0x478451=_0x445c22['newValue'];return _0x478451?{'type':'format','content':o(_0x41daa4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x478451+'\x22')}:{'type':'format','content':o(_0x41daa4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49ea11=this['editor'],_0x50c8db=_0x49ea11['locale'];_0x49ea11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c5644=>{if('formatBlock'!=_0x3c5644['type']&&'formatInline'!=_0x3c5644['type'])return;const {data:_0x51159a}=_0x3c5644;if(_0x51159a){if('imageTextAlternative'==_0x51159a['commandName']){const _0x513471=_0x51159a['commandParams'][0x0]['newValue'];return _0x513471?{'type':'format','content':o(_0x50c8db,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x513471+'\x22')}:{'type':'format','content':o(_0x50c8db,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x51159a['commandName']){const _0x4ef0da=_0x51159a['commandParams'][0x0]['width'];return _0x4ef0da?{'type':'format','content':o(_0x50c8db,'*Set\x20image\x20width:*\x20%0',_0x4ef0da)}:{'type':'format','content':o(_0x50c8db,'*Reset\x20image\x20width*')};}}});}}class ot extends _0xbd4bc4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x29ef3b=this['editor']['locale'],_0xe950a8=this['editor']['plugins']['get']('TrackChangesEditing');_0xe950a8['enableDefaultAttributesIntegration']('replaceImageSource'),_0xe950a8['registerBlockAttribute']('src'),_0xe950a8['descriptionFactory']['registerDescriptionCallback'](_0x22489a=>{if('attribute'!=_0x22489a['type'])return;const {data:_0x437480}=_0x22489a;return _0x437480&&'src'==_0x437480['key']?_0x437480['newValue']&&_0x437480['oldValue']?{'type':'format','content':o(_0x29ef3b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x532a96=this['editor']['plugins']['get']('TrackChangesEditing');_0x532a96['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x532a96['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532a96['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x532a96['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd17dc=this['editor'],_0x44978e=_0xd17dc['locale'];_0xd17dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12844a=>{if('formatBlock'!=_0x12844a['type']&&'formatInline'!=_0x12844a['type'])return;const {data:_0x321331}=_0x12844a;if(!_0x321331||'replaceImageSource'!=_0x321331['commandName'])return;return{'type':'format','content':o(_0x44978e,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0xbd4bc4{['afterInit'](){const _0x43d636=this['editor'];if(!_0x43d636['plugins']['has']('ImageStyleEditing'))return;const _0x2bc043=_0x43d636['plugins']['get']('TrackChangesEditing'),_0x2d225a=_0x43d636['plugins']['get']('ImageUtils'),_0x53db1e={};_0x2bc043['enableCommand']('imageStyle',(_0x34bdef,_0x1c9c39)=>{const _0x2ad454=_0x43d636['plugins']['get']('Users')['me'],_0xb774d6=_0x43d636['commands']['get']('imageStyle');let _0x2abde7=_0x2d225a['getClosestSelectedImageElement'](_0x43d636['model']['document']['selection']),_0x3063fb=_0x43d636['model']['createRangeOn'](_0x2abde7),_0x341213=_0xb774d6['value'];if(_0x341213==_0x1c9c39['value'])return;const _0x3a246e={'commandName':'imageStyle','commandParams':[_0x1c9c39],'formatGroupId':_0x44c9df()};_0x43d636['model']['change'](()=>{if(_0x2bc043['getSuggestions']()['filter'](_0x4c4976=>_0x4c4976['isInContent']&&_0x2ad454==_0x4c4976['author']&&('formatBlock'==_0x4c4976['type']||'formatInline'==_0x4c4976['type'])&&('imageStylePreApply'==_0x4c4976['subType']||'imageStylePostApply'==_0x4c4976['subType'])&&_0x4c4976['getFirstRange']()['isEqual'](_0x3063fb))['forEach'](_0x3a0cdc=>_0x2bc043['discardSuggestion'](_0x3a0cdc['head'])),_0x2abde7=_0x2d225a['getClosestSelectedImageElement'](_0x43d636['model']['document']['selection']),_0x3063fb=_0x43d636['model']['createRangeOn'](_0x2abde7),_0xb774d6['refresh'](),_0x43d636['commands']['get']('imageTypeInline')['refresh'](),_0x43d636['commands']['get']('imageTypeBlock')['refresh'](),_0x341213=_0xb774d6['value'],_0x341213!=_0x1c9c39['value'])return _0x2d225a['isInlineImage'](_0x2abde7)&&_0xb774d6['shouldConvertImageType'](_0x1c9c39['value'],_0x2abde7)?(_0x34bdef({..._0x1c9c39,'setImageSizes':!0x1}),_0x2abde7=_0x2d225a['getClosestSelectedImageElement'](_0x43d636['model']['document']['selection']),void _0x2bc043['markBlockFormat'](_0x2abde7,{..._0x3a246e,'commandReversedParams':[{'value':_0x341213||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2d225a['isBlockImage'](_0x2abde7)?_0x2bc043['markBlockFormat'](_0x2abde7,_0x3a246e,[],'imageStylePostApply'):_0x2bc043['markInlineFormat'](_0x3063fb,_0x3a246e,'imageStylePostApply'));});});for(const _0x1e40e7 of _0x43d636['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x53db1e[_0x1e40e7['name']]=_0x1e40e7['title']['toLowerCase']();_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xd6a5e1])=>{_0x2d225a['setImageNaturalSizeAttributes'](_0xd6a5e1['getContainedElement']());}),_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d83b4,_0x5c8ac0)=>{_0x2bc043['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d83b4,{'commandName':_0x5c8ac0['commandName'],'commandParams':_0x5c8ac0['commandReversedParams']});}),_0x2bc043['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3193d5,_0x223b22){if(_0x46a9d5(_0x3193d5,_0x223b22))return[_0x3193d5,_0x223b22];if(_0x46a9d5(_0x223b22,_0x3193d5))return[_0x223b22,_0x3193d5];return null;});const _0x9f8ff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46a9d5(_0x17fa49,_0x65daab){const _0x48c863=_0x9f8ff['findIndex'](({type:_0xd061fa,subType:_0x29e32c})=>_0x17fa49['type']==_0xd061fa&&_0x17fa49['subType']==_0x29e32c),_0x56ba91=_0x9f8ff['findIndex'](({type:_0x5ca6c0,subType:_0x53a82c})=>_0x65daab['type']==_0x5ca6c0&&_0x65daab['subType']==_0x53a82c);if(_0x48c863<0x0||_0x56ba91<0x0)return!0x1;const _0xea5c16=_0x17fa49['getFirstRange'](),_0x5a59aa=_0x65daab['getFirstRange']();if((0x0==_0x48c863||0x1==_0x48c863)&&0x2==_0x56ba91&&_0xea5c16['isIntersecting'](_0x5a59aa))return!0x0;if(0x2==_0x48c863&&0x3==_0x56ba91){const _0x5bdc90=_0x2bc043['_findSuggestions'](_0xea5c16,'insertion')['filter'](({suggestion:_0x123f49,meta:_0x2e7d7a})=>_0x2e7d7a['isOwn']&&'convertInlineImageToBlock'==_0x123f49['subType']);if(_0x5bdc90['length']>0x1&&_0x5a59aa['end']['isEqual'](_0xea5c16['start']))return!0x0;if(0x1==_0x5bdc90['length']&&(_0xea5c16['start']['isEqual'](_0x5a59aa['end'])||_0xea5c16['end']['isEqual'](_0x5a59aa['start'])))return!0x0;}if(0x3==_0x48c863&&0x3==_0x56ba91&&_0xea5c16['start']['isBefore'](_0x5a59aa['start'])){const _0x21365=_0xea5c16['end']['nodeAfter'],_0x3bdec0=_0x5a59aa['start']['nodeBefore'];return _0x2d225a['isBlockImage'](_0x21365)&&_0x21365===_0x3bdec0;}return!0x1;}_0x43d636['model']['document']['registerPostFixer'](()=>{let _0x2fbe29=!0x1;const _0x3d0850=Array['from'](_0x43d636['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x524ca9,data:_0x3a7894}of _0x3d0850){const {group:_0xd4d60a,type:_0x26c5d6,subType:_0x11214c,id:_0x476d03}=_0x2bc043['_splitMarkerName'](_0x524ca9);if('suggestion'==_0xd4d60a&&_0x2bc043['hasSuggestion'](_0x476d03)){if('formatBlock'==_0x26c5d6&&('imageStylePreApply'==_0x11214c||'imageStylePostApply'==_0x11214c)){const _0x15ca36=_0x2bc043['getSuggestion'](_0x476d03);if(_0x3a7894['newRange']){const _0x1fc58e=_0x15ca36['getFirstRange']()['getContainedElement']();if(_0x2d225a['isBlockImage'](_0x1fc58e))continue;_0x2bc043['discardSuggestion'](_0x15ca36),_0x2fbe29=!0x0;}}if('insertion'==_0x26c5d6&&'imageCaption'==_0x11214c&&!_0x3a7894['newRange']){const _0xb47a3e=_0x2bc043['getSuggestion'](_0x476d03);_0xb47a3e['next']&&_0xb47a3e['next']['isInContent']&&(_0x2bc043['discardSuggestion'](_0xb47a3e['next']),_0x2fbe29=!0x0);}}}return _0x2fbe29;}),this['_registerLegacyDescription'](_0x53db1e);}['_registerLegacyDescription'](_0x9b3e90){const _0x293482=this['editor'],_0x49ae52=_0x293482['locale'];_0x293482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28eb75=>{if('formatBlock'!=_0x28eb75['type']&&'formatInline'!=_0x28eb75['type'])return;const {data:_0x2053f8}=_0x28eb75;if(!_0x2053f8||'imageStyle'!=_0x2053f8['commandName'])return;const _0x7ff416=_0x2053f8['commandParams'][0x0]['value'];return _0x34a713('side'===_0x7ff416?o(_0x49ae52,'FORMAT_SIDE_IMAGE'):_0x9b3e90[_0x7ff416]||_0x7ff416);function _0x34a713(_0x23096e){return{'type':'format','content':o(_0x49ae52,'*Format:*\x20%0',_0x23096e)};}});}}class at extends _0xbd4bc4{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xed9327){super(_0xed9327),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5036fa=this['editor'],_0x4586ed=_0x5036fa['commands']['get']('importWord'),_0x49a4c9=_0x5036fa['commands']['get']('trackChanges');_0x4586ed&&(_0x4586ed['on']('execute',(_0x440bf7,[,_0x2f5bbc])=>{this['_trackChangesValueDuringImport']=_0x49a4c9['value'],_0x2f5bbc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4586ed,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4586ed,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x49a4c9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5036fa['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x19fdaa,_0x402cd4){const {suggestions:_0x3ad309}=_0x402cd4,_0x274884=this['editor']['commands']['get']('trackChanges'),_0x483b9a=_0x274884['value'];this['_trackChangesValueDuringImport']!==_0x483b9a&&(_0x274884['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ad309&&_0x3ad309['forEach'](({id:_0x301f7c,type:_0x5c3827,author:_0x38966d,created_at:_0x2cf41c})=>{const _0x22f7dd={'id':_0x301f7c,'type':_0x5c3827,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38966d,'createdAt':_0x2cf41c?new Date(_0x2cf41c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x22f7dd);});}}class ct extends _0xbd4bc4{['afterInit'](){const _0x5654fe=this['editor'],_0x458dd7=_0x5654fe['plugins']['get']('TrackChangesEditing');if(_0x5654fe['plugins']['has']('IndentEditing')&&(_0x458dd7['enableCommand']('indent'),_0x458dd7['enableCommand']('outdent')),_0x5654fe['plugins']['has']('IndentBlock')){for(const _0x123ccd of['indentBlock','outdentBlock'])_0x458dd7['enableDefaultAttributesIntegration'](_0x123ccd);}const _0x233d4c=_0x5654fe['locale'];_0x458dd7['registerBlockAttribute']('blockIndent'),_0x458dd7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x233d4c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3961ae=this['editor'],_0x2d50ff=_0x3961ae['locale'],_0xfc4727=_0x3961ae['plugins']['get']('TrackChangesEditing');_0xfc4727['descriptionFactory']['registerDescriptionCallback'](_0x1441d9=>{if('formatBlock'!=_0x1441d9['type'])return;const {data:_0x348541}=_0x1441d9;if(!_0x348541)return;if('indentBlock'!=_0x348541['commandName']&&'outdentBlock'!=_0x348541['commandName'])return;const _0x44a6b5=_0x1441d9['getItems']()[0x0],_0x55806e=_0xfc4727['descriptionFactory']['getItemLabel'](_0x44a6b5);return'indentBlock'==_0x348541['commandName']?{'type':'format','content':o(_0x2d50ff,'*Indent:*\x20%0',_0x55806e)}:'outdentBlock'==_0x348541['commandName']?{'type':'format','content':o(_0x2d50ff,'*Outdent:*\x20%0',_0x55806e)}:void 0x0;});}}class ut extends _0xbd4bc4{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0xbd4bc4{['afterInit'](){const _0x33e3e5=this['editor'];if(!_0x33e3e5['plugins']['has']('LinkEditing'))return;const _0x35de48=_0x33e3e5['plugins']['get']('TrackChangesEditing'),_0x593e4e=_0x33e3e5['commands']['get']('link');_0x35de48['enableDefaultAttributesIntegration']('link'),_0x35de48['enableDefaultAttributesIntegration']('unlink'),_0x35de48['registerInlineAttribute']('linkHref');for(const _0x5ecb14 of _0x593e4e['manualDecorators'])_0x35de48['registerInlineAttribute'](_0x5ecb14['id']),_0x35de48['descriptionFactory']['registerAttributeLabel'](_0x5ecb14['id'],'link\x20('+_0x5ecb14['label']['toLowerCase']()+')');_0x35de48['descriptionFactory']['registerDescriptionCallback'](_0xd4a9df=>{if('attribute'!=_0xd4a9df['type'])return;const {data:_0x7b53bc}=_0xd4a9df;if(!_0x7b53bc||'linkHref'!=_0x7b53bc['key'])return;const _0xe3a621=_0x7b53bc['newValue'],_0x264891=_0x33e3e5['locale'];return{'type':'format','content':null==_0xe3a621?o(_0x264891,'*Remove\x20link*'):o(_0x264891,'*Set\x20link:*\x20%0','\x22'+_0xe3a621+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fcefa=this['editor'],_0x3955a7=_0x1fcefa['locale'];_0x1fcefa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12c6ed=>{if('formatInline'!=_0x12c6ed['type'])return;const {data:_0x260998}=_0x12c6ed;if(_0x260998){if('link'==_0x260998['commandName']){const _0x4050f6=_0x260998['commandParams'][0x0];return{'type':'format','content':o(_0x3955a7,'*Set\x20link:*\x20%0','\x22'+_0x4050f6+'\x22')};}return'unlink'==_0x260998['commandName']?{'type':'format','content':o(_0x3955a7,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xbd4bc4{['afterInit'](){const _0x19fee0=this['editor'],_0x41fc5d=_0x19fee0['locale'];if(!_0x19fee0['plugins']['has']('LegacyListEditing'))return;const _0x3fe742=_0x19fee0['plugins']['get']('TrackChangesEditing'),_0x3b83a0=_0x19fee0['plugins']['has']('LegacyTodoListEditing');function _0x1da9ec(_0xb5f3d2){return()=>{const _0x5965ff=_0x19fee0['model']['document']['selection'],_0x18f90f=_0x19fee0['commands']['get'](_0xb5f3d2);if(_0x18f90f['value'])return void _0x19fee0['execute']('paragraph',{});const _0x29618f=_0xb5f3d2['slice'](0x0,-0x4),_0x4a17d4=function(_0x20fad0,_0x230202,_0x18a1f8){let _0x55800f=Array['from'](_0x20fad0)['filter'](_0x49d156=>function(_0x5bb857,_0x1f913d){return _0x1f913d['checkChild'](_0x5bb857['parent'],'listItem')&&!_0x1f913d['isObject'](_0x5bb857);}(_0x49d156,_0x18a1f8));_0x55800f=_0x55800f['filter'](_0x448a9b=>!_0x448a9b['is']('element','listItem')||_0x448a9b['getAttribute']('listType')!=_0x230202);const _0x5f18e5=new Set();for(const _0x1d2610 of _0x55800f)_0x1d2610['is']('element','listItem')?_0x5f18e5['add'](fe(_0x1d2610)):_0x5f18e5['add'](_0x1d2610);return Array['from'](_0x5f18e5);}(_0x5965ff['getSelectedBlocks'](),_0x29618f,_0x19fee0['model']['schema']);_0x19fee0['model']['change'](()=>{for(const _0x4b778e of _0x4a17d4)_0x3fe742['markBlockFormat'](_0x4b778e,{'commandName':_0xb5f3d2,'commandParams':[{'forceValue':!_0x18f90f['value']}],'formatGroupId':'blockName'},ue(_0x4b778e));});};}function _0x5c92af(_0x1ccf26){return()=>{const _0x386ebe=function(_0x1075cb){let _0x19e038=Array['from'](_0x1075cb);const _0x43cc35=_0x19e038['findIndex'](_0x4f9726=>'listItem'!=_0x4f9726['name']);return _0x43cc35>-0x1&&(_0x19e038=_0x19e038['slice'](0x0,_0x43cc35)),_0x19e038;}(_0x19fee0['model']['document']['selection']['getSelectedBlocks']()),_0x17c762=_0x19fee0['model']['createRange'](_0x19fee0['model']['createPositionAt'](_0x386ebe[0x0],'before'),_0x19fee0['model']['createPositionAt'](_0x386ebe[_0x386ebe['length']-0x1],'end'));_0x19fee0['model']['change'](()=>{_0x3fe742['markBlockFormat'](_0x17c762,{'commandName':_0x1ccf26,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ca4a6){const _0x1d5580=new Set();for(const _0x344ef0 of _0x1ca4a6){let _0x515042=_0x344ef0['nextSibling'];for(;_0x515042&&_0x515042['getAttribute']('listIndent')>_0x344ef0['getAttribute']('listIndent');)_0x1d5580['add'](_0x515042),_0x515042=_0x515042['nextSibling'];}return Array['from'](_0x1d5580);}(_0x386ebe));});};}_0x3fe742['enableCommand']('numberedList',_0x1da9ec('numberedList')),_0x3fe742['enableCommand']('bulletedList',_0x1da9ec('bulletedList')),_0x3b83a0&&_0x3fe742['enableCommand']('todoList',_0x1da9ec('todoList')),_0x3fe742['enableCommand']('indentList',_0x5c92af('indentList')),_0x3fe742['enableCommand']('outdentList',_0x5c92af('outdentList')),_0x3b83a0&&_0x3fe742['enableCommand']('checkTodoList',()=>{const _0x3a57f6=_0x19fee0['commands']['get']('checkTodoList'),_0x497a46=Array['from'](_0x3a57f6['_selectedElements']);_0x497a46['filter'](_0x4f0b52=>_0x4f0b52['getAttribute']('todoListChecked')!=_0x3a57f6['value']),_0x19fee0['model']['change'](()=>{for(const _0x37097a of _0x497a46)_0x3fe742['markBlockFormat'](_0x37097a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3a57f6['value']}]});});}),_0x3fe742['descriptionFactory']['registerElementLabel']('listItem',_0xfc68ad=>o(_0x41fc5d,'ELEMENT_LIST_ITEM',_0xfc68ad)),_0x3fe742['descriptionFactory']['registerDescriptionCallback'](_0x528567=>{if('formatBlock'!=_0x528567['type']&&'formatInline'!=_0x528567['type'])return;const {data:_0x40a6ae}=_0x528567;if(_0x40a6ae){if('numberedList'==_0x40a6ae['commandName']||'bulletedList'==_0x40a6ae['commandName']||'todoList'==_0x40a6ae['commandName'])switch(_0x40a6ae['commandName']['replace']('List','')){case'bulleted':return _0x587b01(o(_0x41fc5d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x587b01(o(_0x41fc5d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x587b01(o(_0x41fc5d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x40a6ae['commandName'])return{'type':'format','content':o(_0x41fc5d,'*Indent:*\x20%0',o(_0x41fc5d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x40a6ae['commandName'])return{'type':'format','content':o(_0x41fc5d,'*Outdent:*\x20%0',o(_0x41fc5d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x40a6ae['commandName'])return _0x40a6ae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41fc5d,'*Check\x20item*')}:{'type':'format','content':o(_0x41fc5d,'*Uncheck\x20item*')};}function _0x587b01(_0x108e72){return{'type':'format','content':o(_0x41fc5d,'*Change\x20to:*\x20%0',_0x108e72)};}});}}function fe(_0x27e0f5){const _0x2e6d98=_0x27e0f5['getAttribute']('listIndent');if(0x0==_0x2e6d98)return _0x27e0f5;let _0x3c37a8=_0x27e0f5;for(;_0x27e0f5['previousSibling']&&_0x27e0f5['previousSibling']['is']('element','listItem');){const _0x5ce853=_0x27e0f5['previousSibling']['getAttribute']('listIndent');if(_0x5ce853==_0x2e6d98)_0x3c37a8=_0x27e0f5['previousSibling'];else{if(_0x5ce853<_0x2e6d98)break;}_0x27e0f5=_0x27e0f5['previousSibling'];}return _0x3c37a8;}function ue(_0x307f66){const _0x1bc338=[];if(_0x307f66['is']('element','listItem')&&_0x307f66['getAttribute']('listIndent')>0x0){let _0x265b10=_0x307f66['nextSibling'];for(;_0x265b10&&'listItem'==_0x265b10['name']&&_0x265b10['getAttribute']('listIndent')==_0x307f66['getAttribute']('listIndent');)_0x1bc338['push'](_0x265b10),_0x265b10=_0x265b10['nextSibling'];}return _0x1bc338;}class W extends _0xbd4bc4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5a99f7=this['editor']['config']['get']('list.properties'),_0x2e2e58=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a99f7['styles']&&_0x2e2e58['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5a99f7['reversed']&&_0x2e2e58['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5a99f7['startIndex']&&_0x2e2e58['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2e2e58['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5ad190,_0x45a2c9={}){const _0x1278fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41266c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1278fd['markMultiRangeBlockFormat'](_0x41266c,{'commandName':'listStyle','commandParams':[{'type':_0x45a2c9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3ca052,_0x33aabb={}){const _0x515edb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa11862=this['_getSuggestionBlocks'](_0x1b65a7=>_0x1b65a7['is']('element','listItem')&&'numbered'===_0x1b65a7['getAttribute']('listType'));if(_0xa11862['length']<0x1)return;const _0x178fa2=_0xa11862['map'](_0x1f66f6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f66f6,'before'),this['editor']['model']['createPositionAt'](_0x1f66f6,0x0)));this['editor']['model']['change'](()=>{_0x515edb['markMultiRangeBlockFormat'](_0x178fa2,{'commandName':'listReversed','commandParams':[{'reversed':_0x33aabb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x75ea48,_0x1a7215={}){const _0x238fcb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fbe67=this['_getSuggestionBlocks'](_0x4f6fac=>_0x4f6fac['is']('element','listItem')&&'numbered'===_0x4f6fac['getAttribute']('listType'));if(_0x1fbe67['length']<0x1)return;const _0x2755cb=_0x1fbe67['map'](_0x4fd591=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4fd591,'before'),this['editor']['model']['createPositionAt'](_0x4fd591,0x0)));this['editor']['model']['change'](()=>{_0x238fcb['markMultiRangeBlockFormat'](_0x2755cb,{'commandName':'listStart','commandParams':[{'startIndex':_0x1a7215['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3008b5){if('formatBlock'!=_0x3008b5['type']&&'formatInline'!=_0x3008b5['type'])return;const _0x57ec1a=this['editor']['locale'],{data:_0xb93302}=_0x3008b5;if(!_0xb93302)return;let _0x24e6eb,_0x2b9c31;switch(_0xb93302['commandName']){case'listStyle':_0x24e6eb='*Change\x20to:*\x20%0',_0x2b9c31={'type':'format','content':o(_0x57ec1a,_0x24e6eb,o(_0x57ec1a,this['_getTranslationKeyForListStyle'](_0xb93302['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24e6eb=_0xb93302['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b9c31={'type':'format','content':o(_0x57ec1a,_0x24e6eb)};break;case'listStart':_0x24e6eb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b9c31={'type':'format','content':o(_0x57ec1a,_0x24e6eb,_0xb93302['commandParams'][0x0]['startIndex'])};}return _0x2b9c31;}['_getSuggestionBlocksForListStyle'](){const _0x20de00=this['editor']['plugins']['get']('LegacyListUtils');let _0x103b0c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x103b0c[0x0]?.['is']('element','listItem')&&_0x103b0c['unshift'](..._0x20de00['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x103b0c[_0x103b0c['length']-0x1]?.['is']('element','listItem')&&_0x103b0c['push'](..._0x20de00['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x103b0c=[...new Set(_0x103b0c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x103b0c=_0x103b0c['filter'](_0x482e33=>_0x482e33['is']('element','listItem'))),_0x103b0c;}['_getSuggestionBlocks'](_0x1be9ff){const _0x59be9b=this['editor']['plugins']['get']('LegacyListUtils');let _0x1710aa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1be9ff)['map'](_0x22e1e3=>{const _0x4c4610=this['editor']['model']['createPositionAt'](_0x22e1e3,0x0);return[..._0x59be9b['getSiblingNodes'](_0x4c4610,'backward'),..._0x59be9b['getSiblingNodes'](_0x4c4610,'forward')];})['flat']();return _0x1710aa=[...new Set(_0x1710aa)],_0x1710aa;}['_getTranslationKeyForListStyle'](_0x4bcd9f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4bcd9f)||'default')['toUpperCase']()+'_LIST_'+_0x4bcd9f['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0xbd4bc4{['afterInit'](){const _0x2402b8=this['editor'];if(!_0x2402b8['plugins']['has']('MediaEmbedEditing'))return;const _0x1af22e=_0x2402b8['plugins']['get']('TrackChangesEditing'),_0x1f631d=_0x2402b8['locale'];_0x1af22e['enableCommand']('mediaEmbed'),_0x1af22e['descriptionFactory']['registerElementLabel']('media',_0x212f32=>o(_0x1f631d,'ELEMENT_MEDIA',_0x212f32)),_0x2402b8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x13865a,{writer:_0x102fb3,options:_0xa78d40})=>{if(_0xa78d40['showSuggestionHighlights'])return _0x102fb3['createEmptyElement']('div');},'converterPriority':'high'}),_0x2402b8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5ce164,_0x4641a4,_0x1356c4)=>{_0x1356c4['options']['showSuggestionHighlights']&&_0x5ce164['stop']();},{'priority':'high'});}}class mt extends _0xbd4bc4{['afterInit'](){const _0x1f1064=this['editor'];_0x1f1064['plugins']['has']('MentionEditing')&&_0x1f1064['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xbd4bc4{['afterInit'](){const _0x462751=this['editor'];if(!_0x462751['plugins']['has']('MergeFieldsEditing'))return;_0x462751['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x462751['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x37d50f=_0x462751['plugins']['get']('TrackChangesEditing'),_0x12f533=_0x462751['locale'];_0x37d50f['descriptionFactory']['registerElementLabel']('mergeField',_0x482310=>o(_0x12f533,'ELEMENT_MERGE_FIELD',_0x482310)),_0x37d50f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1b7675=>o(_0x12f533,'ELEMENT_MERGE_FIELD',_0x1b7675)),_0x37d50f['descriptionFactory']['registerDescriptionCallback'](_0x25eefa=>{if('insertion'!=_0x25eefa['type']&&'deletion'!=_0x25eefa['type'])return;const _0x5a0a8b=_0x25eefa['getContainedElement']();if(null==_0x5a0a8b)return;if(!_0x5a0a8b['is']('element','mergeField')&&!_0x5a0a8b['is']('element','mergeFieldBlock'))return;const _0x309440=_0x462751['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5a0a8b['getAttribute']('id'));return'insertion'==_0x25eefa['type']?{'type':'insertion','content':o(_0x12f533,'*Insert:*\x20%0','\x22'+_0x309440+'\x22\x20'+o(_0x12f533,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x12f533,'*Remove:*\x20%0','\x22'+_0x309440+'\x22\x20'+o(_0x12f533,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0xbd4bc4{['afterInit'](){const _0x433c32=this['editor'],_0x1b1e51=_0x433c32['plugins']['get']('TrackChangesEditing');_0x433c32['plugins']['has']('MultiLevelList')&&(_0x1b1e51['enableDefaultAttributesIntegration']('multiLevelList'),_0x1b1e51['registerBlockAttribute']('listMarkerStyle'),_0x1b1e51['descriptionFactory']['registerDescriptionCallback'](_0x3605be=>this['handleDescriptions'](_0x3605be)));}['handleDescriptions'](_0x14770f){const _0x3f9734=this['editor']['locale'],{data:_0x273b9a}=_0x14770f,_0x35ff76={'type':'format','content':''};if(_0x273b9a&&'listMarkerStyle'==_0x273b9a['key']){if(!_0x273b9a['oldValue'])return{'type':'format','content':o(_0x3f9734,'*Set\x20format:*\x20%0',o(_0x3f9734,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x273b9a['newValue']+')'};if(!_0x273b9a['newValue']){let _0x575318=_0x14770f['head'];for(;_0x575318;){if(_0x575318['data']&&'listType'==_0x575318['data']['key']&&_0x575318['data']['newValue'])return _0x35ff76;_0x575318=_0x575318['next'];}return{'type':'format','content':o(_0x3f9734,'*Remove\x20format:*\x20%0',o(_0x3f9734,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x273b9a['oldValue']+')'};}}}}class kt extends _0xbd4bc4{['afterInit'](){const _0x58c08f=this['editor'];if(!_0x58c08f['plugins']['has']('PageBreakEditing'))return;_0x58c08f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1980f8=_0x58c08f['plugins']['get']('TrackChangesEditing'),_0x13145d=_0x58c08f['locale'];_0x1980f8['descriptionFactory']['registerElementLabel']('pageBreak',_0x3c1f5a=>o(_0x13145d,'ELEMENT_PAGE_BREAK',_0x3c1f5a));}}class bt extends _0xbd4bc4{['afterInit'](){const _0x2e9bed=this['editor'];if(!_0x2e9bed['plugins']['has']('Paragraph'))return;const _0x5b764f=_0x2e9bed['locale'],_0x131ba8=_0x2e9bed['plugins']['get']('TrackChangesEditing');_0x131ba8['descriptionFactory']['registerElementLabel']('paragraph',_0x497313=>o(_0x5b764f,'ELEMENT_PARAGRAPH',_0x497313)),_0x131ba8['enableDefaultAttributesIntegration']('paragraph'),_0x131ba8['enableCommand']('insertParagraph'),_0x2e9bed['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2e9bed),{'priority':'highest'}),_0x2e9bed['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e7482,_0x27cfb4,_0x309f62)=>{_0x309f62['options']['showSuggestionHighlights']&&nr(_0x2e9bed,{'showActiveMarker':!0x1})(_0x2e7482,_0x27cfb4,_0x309f62);},{'priority':'highest'});const _0x49bb25=_0x131ba8['descriptionFactory'];_0x49bb25['registerDescriptionCallback'](_0x2dd293=>{if('insertion'!==_0x2dd293['type'])return;const {start:_0x4d4197,end:_0x2df73a}=_0x2dd293['getFirstRange']();if(!_0x4d4197['isTouching'](_0x2df73a)||!_0x4d4197['nodeAfter'])return;const _0xca65d7=_0x2e9bed['model']['schema'],_0x4d71d3=_0x4d4197['nodeAfter'];return _0xca65d7['isBlock'](_0x4d71d3)&&!_0xca65d7['isLimit'](_0x4d71d3)&&_0xca65d7['checkChild'](_0x4d71d3,'$text')?{'type':'insertion','content':o(_0x5b764f,'*Insert:*\x20%0',_0x49bb25['getItemLabel'](_0x4d71d3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a4160=this['editor'],_0x4cfa0e=_0x3a4160['locale'];_0x3a4160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4718b2=>{if('formatBlock'!=_0x4718b2['type'])return;const {data:_0xda4dd6}=_0x4718b2;return _0xda4dd6&&'paragraph'==_0xda4dd6['commandName']?{'type':'format','content':o(_0x4cfa0e,'*Change\x20to:*\x20%0',o(_0x4cfa0e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x38e13a,{showActiveMarker:_0x91bd64=!0x0}={}){return(_0xa10834,_0x306900,_0x2e0443)=>{const _0x237c48=_0x38e13a['plugins']['get']('TrackChangesEditing'),_0x211e6e=_0x306900['markerRange']['start'],_0x1e48db=_0x306900['markerRange']['end'],_0xa6d2a4=_0x38e13a['model']['schema'];if(!_0x211e6e['isTouching'](_0x1e48db)||!_0x211e6e['nodeAfter'])return;const _0x2589c6=_0x211e6e['nodeAfter'];if(_0xa6d2a4['isBlock'](_0x2589c6)&&!_0xa6d2a4['isLimit'](_0x2589c6)&&_0xa6d2a4['checkChild'](_0x2589c6,'$text')){if(!_0x2e0443['consumable']['consume'](_0x306900['markerRange'],_0xa10834['name']))return;const {authorId:_0x501d1f}=_0x237c48['_splitMarkerName'](_0x306900['markerName']),_0x20bb9a=_0x2e0443['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x501d1f}),_0x4682ad=_0x2e0443['mapper']['toViewPosition'](_0x1e48db);_0x91bd64&&_0x237c48['activeMarkers']['includes'](_0x306900['markerName'])&&_0x2e0443['writer']['addClass']('ck-suggestion-marker--active',_0x20bb9a),_0x2e0443['writer']['insert'](_0x4682ad,_0x20bb9a),_0x2e0443['mapper']['bindElementToMarker'](_0x20bb9a,_0x306900['markerName']);}};}class wt extends _0xbd4bc4{['afterInit'](){const _0x425075=this['editor'];if(!_0x425075['plugins']['has']('RemoveFormatEditing'))return;_0x425075['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e62cb=this['editor'];_0x3e62cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9a62fd=>{if('formatBlock'!=_0x9a62fd['type']&&'formatInline'!=_0x9a62fd['type'])return;const {data:_0x2e11b4}=_0x9a62fd;return _0x2e11b4&&'removeFormat'==_0x2e11b4['commandName']?{'type':'format','content':o(_0x3e62cb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xbd4bc4{['afterInit'](){const _0x208db7=this['editor'];if(!_0x208db7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x39c34d=_0x208db7['plugins']['get']('TrackChangesEditing');_0x39c34d['enableCommand']('goToPreviousRestrictedEditingException'),_0x39c34d['enableCommand']('goToNextRestrictedEditingException');const _0x460493=_0x208db7['plugins']['get']('RestrictedEditingModeEditing');_0x460493['enableCommand']('trackChanges'),_0x460493['enableCommand']('acceptSuggestion'),_0x460493['enableCommand']('discardSuggestion'),_0x460493['enableCommand']('acceptAllSuggestions'),_0x460493['enableCommand']('discardAllSuggestions'),_0x460493['enableCommand']('acceptSelectedSuggestions'),_0x460493['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xbd4bc4{static get['requires'](){return[_0x4fc3e9];}['init'](){const _0x4e3a7c=this['editor'],_0x5f588e=_0x4e3a7c['plugins']['get']('TrackChangesEditing');_0x5f588e['enableCommand']('shiftEnter'),_0x4e3a7c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4e3a7c),{'priority':'high'}),_0x4e3a7c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4e3a7c),{'priority':'high'}),_0x4e3a7c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d075b,_0x5bf798,_0x15083a)=>{_0x15083a['options']['showSuggestionHighlights']&&ge(_0x4e3a7c,{'showActiveMarker':!0x1})(_0x3d075b,_0x5bf798,_0x15083a);}),_0x5f588e['descriptionFactory']['registerElementLabel']('softBreak',_0x41974a=>o(_0x4e3a7c['locale'],'ELEMENT_LINE_BREAK',_0x41974a));}}function ge(_0x2551b0,{showActiveMarker:_0x4693d9=!0x0}={}){return(_0x10e879,_0x5cbae7,_0x253e6e)=>{const _0xc35326=_0x2551b0['plugins']['get']('TrackChangesEditing');if(!_0x253e6e['consumable']['test'](_0x5cbae7['markerRange'],_0x10e879['name']))return;const _0x18d51f=_0x2551b0['model'];for(const _0x27f947 of _0x5cbae7['markerRange']['getItems']()){if(!_0x27f947['is']('element','softBreak'))continue;const _0x2e901d='deletion'==_0x5cbae7['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4b0210}=_0xc35326['_splitMarkerName'](_0x5cbae7['markerName']),_0x53570a=_0x253e6e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e901d,'data-author-id':_0x4b0210}),_0x4a83e0=_0x253e6e['mapper']['toViewPosition'](_0x18d51f['createPositionBefore'](_0x27f947));_0x4693d9&&_0xc35326['activeMarkers']['includes'](_0x5cbae7['markerName'])&&_0x253e6e['writer']['addClass']('ck-suggestion-marker--active',_0x53570a),_0x253e6e['writer']['insert'](_0x4a83e0,_0x53570a),_0x253e6e['mapper']['bindElementToMarker'](_0x53570a,_0x5cbae7['markerName']);}};}class St extends _0xbd4bc4{['afterInit'](){const _0x4c4c8e=this['editor'],_0x47e65b=_0x4c4c8e['model'],_0x25d7c4=_0x4c4c8e['locale'];if(!_0x4c4c8e['plugins']['has']('StandardEditingModeEditing'))return;const _0x31b68f=_0x4c4c8e['plugins']['get']('TrackChangesEditing'),_0x2a8225='restrictedEditingException',_0x50819d=_0x4c4c8e['commands']['get'](_0x2a8225);_0x31b68f['enableCommand'](_0x2a8225,(_0x369aba,_0xc11984={})=>{const _0x20bb02=_0x47e65b['document']['selection'];if(_0x20bb02['isCollapsed'])return void _0x369aba(_0xc11984);const _0x2ccb66=void 0x0!==_0xc11984['forceValue']?_0xc11984['forceValue']:!_0x50819d['value'];_0x47e65b['change'](()=>{const _0x5e7e57=Array['from'](_0x20bb02['getRanges']());for(const _0x277364 of _0x5e7e57){const _0x5c5605=_0x2ccb66?[_0x277364]:io(_0x2a8225,_0x277364,_0x47e65b);for(const _0x559702 of _0x5c5605)_0x31b68f['markInlineFormat'](_0x559702,{'commandName':_0x2a8225,'commandParams':[{'forceValue':_0x2ccb66}]});}});}),_0x31b68f['descriptionFactory']['registerDescriptionCallback'](_0x33186a=>{if('formatBlock'!=_0x33186a['type']&&'formatInline'!=_0x33186a['type'])return;const {data:_0x28773d}=_0x33186a;return _0x28773d&&_0x28773d['commandName']==_0x2a8225?_0x28773d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25d7c4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x25d7c4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0xbd4bc4{['afterInit'](){const _0x2a30c2=this['editor'];if(!_0x2a30c2['plugins']['has']('Style')||!_0x2a30c2['plugins']['has']('DataSchema'))return;const _0x384141=_0x2a30c2['plugins']['get']('TrackChangesEditing'),_0x37a1e2=_0x2a30c2['locale'],_0x2e732c=_0x2a30c2['config']['get']('style')||{},_0x4a996c=_0x2a30c2['plugins']['get']('GeneralHtmlSupport'),_0x2dd3b2=_0x2a30c2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2a30c2['plugins']['get']('DataSchema'),_0x2e732c['definitions']);_0x384141['enableDefaultAttributesIntegration']('style');const _0x1aca3a=new Set();for(const _0x35be40 of _0x2dd3b2['block']){const _0x5c4131=_0x4a996c['getGhsAttributeNameForElement'](_0x35be40['element']);_0x1aca3a['add'](_0x5c4131);}const _0x40b7b5=new Set();for(const _0x5b235a of _0x2dd3b2['inline']){const _0x42f48b=_0x4a996c['getGhsAttributeNameForElement'](_0x5b235a['element']);_0x40b7b5['add'](_0x42f48b);for(const _0x4ae00d of _0x5b235a['ghsAttributes'])_0x40b7b5['add'](_0x4ae00d);}for(const _0x20410c of _0x1aca3a)_0x384141['registerBlockAttribute'](_0x20410c),_0x384141['descriptionFactory']['registerAttributeLabel'](_0x20410c,o(_0x37a1e2,'FORMAT_STYLE'));for(const _0x44f602 of _0x40b7b5)_0x384141['registerInlineAttribute'](_0x44f602),_0x384141['descriptionFactory']['registerAttributeLabel'](_0x44f602,o(_0x37a1e2,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30865f=this['editor'],_0x16a762=_0x30865f['locale'];_0x30865f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45f6e8=>{if('formatBlock'!=_0x45f6e8['type']&&'formatInline'!=_0x45f6e8['type'])return;const {data:_0x30e125}=_0x45f6e8;return _0x30e125&&'style'===_0x30e125['commandName']?_0x30e125['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16a762,'*Set\x20format:*\x20%0',_0x30e125['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x16a762,'*Remove\x20format:*\x20%0',_0x30e125['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0xbd4bc4{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x215ca8){super(_0x215ca8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xbe175e=this['editor'],_0x4c7a00=_0xbe175e['model']['document']['selection'];if(!_0xbe175e['plugins']['has']('TableEditing'))return;const _0x244402=_0xbe175e['locale'],_0x31f88d=_0xbe175e['plugins']['get']('TrackChangesEditing'),_0x118edc=_0xbe175e['plugins']['get']('TableUtils');_0x31f88d['descriptionFactory']['registerElementLabel']('table',_0xb6ba95=>o(_0x244402,'ELEMENT_TABLE',_0xb6ba95)),this['_setupColumnsRowsFixing'](),_0x31f88d['enableCommand']('insertTable'),_0x31f88d['enableCommand']('selectTableRow'),_0x31f88d['enableCommand']('selectTableColumn');for(const _0x2c613d of['insertTableRowAbove','insertTableRowBelow']){const _0x386490=_0xbe175e['commands']['get'](_0x2c613d);_0x31f88d['enableCommand'](_0x2c613d,_0x5b7137=>{_0xbe175e['model']['change'](_0x25cbe5=>{_0x5b7137();const _0x1dcbf0='above'===_0x386490['order'],_0x2c77fd=_0x118edc['getSelectionAffectedTableCells'](_0x4c7a00),_0x5d7a8a=_0x118edc['getRowIndexes'](_0x2c77fd),_0x5df9af=_0x1dcbf0?_0x5d7a8a['first']-0x1:_0x5d7a8a['last']+0x1,_0x1d2ed2=_0x2c77fd[0x0]['findAncestor']('table'),_0x2046cd=_0x118edc['createTableWalker'](_0x1d2ed2,{'startRow':_0x5df9af,'endRow':_0x5df9af}),_0x4dd27c=Array['from'](_0x2046cd)['map'](_0x40c73d=>_0x25cbe5['createRangeOn'](_0x40c73d['cell']));_0x31f88d['markMultiRangeInsertion'](_0x4dd27c,'tableRow');});});}for(const _0x47db0b of['insertTableColumnLeft','insertTableColumnRight']){const _0x10e5ff=_0xbe175e['commands']['get'](_0x47db0b);_0x31f88d['enableCommand'](_0x47db0b,_0x585c22=>{_0xbe175e['model']['change'](_0x107345=>{_0x585c22();const _0x29f667='left'===_0x10e5ff['order'],_0x219d4e=_0x118edc['getSelectionAffectedTableCells'](_0x4c7a00),_0x1b9907=_0x118edc['getColumnIndexes'](_0x219d4e),_0x34df0d=_0x29f667?_0x1b9907['first']-0x1:_0x1b9907['last']+0x1,_0x472db3=_0x219d4e[0x0]['findAncestor']('table'),_0xdb324a=_0x118edc['createTableWalker'](_0x472db3,{'startRow':0x0,'column':_0x34df0d,'includeAllSlots':!0x1}),_0x84909c=Array['from'](_0xdb324a)['map'](_0x57c251=>_0x107345['createRangeOn'](_0x57c251['cell']));_0x31f88d['markMultiRangeInsertion'](_0x84909c,'tableColumn');});});}for(const _0x478df1 of['removeTableRow','removeTableColumn']){const _0x24b199=_0x478df1['substr'](0xb),_0x1e4199=_0x24b199['toLowerCase'](),_0x4838c4=_0x1e4199['substr'](0x0,0x3)+'span',_0x582460='table'+_0x24b199,_0x381bad='min'+_0x24b199,_0x1d244e='max'+_0x24b199;_0x31f88d['enableCommand'](_0x478df1,()=>{_0xbe175e['model']['change'](_0x2ac452=>{const _0x35e677=_0x118edc['getSelectionAffectedTableCells'](_0x4c7a00),_0x45c00a=_0x35e677[0x0]['findAncestor']('table');let _0x168711;if('removeTableRow'==_0x478df1){const _0x35148c=_0x118edc['getRowIndexes'](_0x35e677);_0x168711={'startRow':_0x35148c['first'],'endRow':_0x35148c['last'],'includeAllSlots':!0x0};}else{const _0x6ab42c=_0x118edc['getColumnIndexes'](_0x35e677);_0x168711={'startColumn':_0x6ab42c['first'],'endColumn':_0x6ab42c['last'],'includeAllSlots':!0x0};}const _0xb76a20=_0x118edc['createTableWalker'](_0x45c00a,_0x168711),_0x4e4b6a=Array['from'](_0xb76a20)['map'](({cell:_0x4865ad})=>_0x4865ad),_0x16f0be=be(_0x4e4b6a['filter'](_0x5baac8=>_0x5baac8['hasAttribute'](_0x4838c4))),_0x1f60d5=be(_0x4e4b6a['filter'](_0x478aaf=>!_0x478aaf['hasAttribute'](_0x4838c4)))['map'](_0x25d635=>_0x2ac452['createRangeOn'](_0x25d635)),_0x4d4ba5=_0x31f88d['markMultiRangeDeletion'](_0x1f60d5,_0x582460);if(_0x4d4ba5&&('tableRow'==_0x4d4ba5['subType']||'tableColumn'==_0x4d4ba5['subType'])){const _0x1a1517=this['_getSuggestionCoords'](_0x4d4ba5);for(const _0x507005 of _0x16f0be){const _0x216850=_0x2ac452['createRangeOn'](_0x507005),_0x519d1c=_0x118edc['getCellLocation'](_0x507005),_0x1ef678=_0x507005['getAttribute'](_0x4838c4)-0x1,_0x5b626f=_0x1a1517[_0x381bad],_0x56d061=_0x1a1517[_0x1d244e];_0x5b626f<=_0x519d1c[_0x1e4199]&&_0x519d1c[_0x1e4199]+_0x1ef678<=_0x56d061&&_0x4d4ba5['addRange'](_0x216850);}}});});}function _0x4d53eb(_0x17ae27){const _0xfa68fc=Array['from'](_0x4c7a00['getRanges']())['map'](_0x2eba26=>_0x4d6067['fromRange'](_0x2eba26));_0xbe175e['model']['change'](_0x3d0531=>{const _0x4f445f=_0x3d0531['batch'];_0x17ae27=_0x17ae27['filter'](_0x576d57=>'$graveyard'!=_0x576d57['root']['rootName']),_0x3d0531['setSelection'](_0x17ae27),_0xbe175e['commands']['get']('removeTableRow')['refresh'](),_0xbe175e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xbe175e['model']['enqueueChange'](()=>{_0xbe175e['model']['enqueueChange'](_0x4f445f,_0x473464=>{const _0x3e307a=_0xfa68fc['filter'](_0x1e0106=>'$graveyard'!=_0x1e0106['root']['rootName']);_0x3e307a['length']>0x0&&_0x473464['setSelection'](_0x3e307a);for(const _0x528f6c of _0xfa68fc)_0x528f6c['detach']();});});});}function _0x106b34(_0x45126e){_0xbe175e['model']['change'](_0x362a72=>{const _0x1923be=Array['from'](_0x4c7a00['getRanges']())['map'](_0x1e94ef=>_0x4d6067['fromRange'](_0x1e94ef)),_0x9fb39c=[];for(const _0x56f2db of _0x45126e)for(const _0x3244f6 of _0x56f2db['getItems']({'shallow':!0x0}))_0x9fb39c['push'](_0x3244f6);for(const _0x38c71c of _0x9fb39c)'$graveyard'!=_0x38c71c['root']['rootName']&&(_0x362a72['setSelection'](_0x362a72['createPositionAt'](_0x38c71c,0x0)),_0xbe175e['commands']['get']('removeTableColumn')['refresh'](),_0xbe175e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x46ef22=_0x1923be['filter'](_0x53bd4c=>'$graveyard'!=_0x53bd4c['root']['rootName']);_0x46ef22['length']>0x0&&_0x362a72['setSelection'](_0x46ef22);for(const _0x4cb4c3 of _0x1923be)_0x4cb4c3['detach']();});}function _0x188878(_0x23e2ab,_0x4758c9){return _0x4758c9['every'](_0x1fc7e7=>_0x23e2ab['some'](_0x3f6727=>_0x3f6727['end']['isEqual'](_0x1fc7e7['start'])||_0x1fc7e7['end']['isEqual'](_0x3f6727['start'])));}function _0x332ec1(_0x212e70,_0x37b5f8){return!_0x212e70['some'](_0xa3c8f3=>_0x37b5f8['some'](_0x87f314=>_0xa3c8f3['isIntersecting'](_0x87f314)))&&_0x212e70['some'](_0xa5721=>_0x37b5f8['some'](_0x2138ee=>_0xa5721['end']['isTouching'](_0x2138ee['start'])));}_0xbe175e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xbca6b8,_0x22920b,_0x47a384)=>{if(!_0x47a384['options']['showSuggestionHighlights'])return;const _0x4e8c23=_0x22920b['item'];if(!_0x4e8c23)return;const _0x5b8bc4=_0x47a384['mapper']['toViewElement'](_0x4e8c23);function _0x3ccdab(_0x572d68){return Array['isArray'](_0x572d68)?_0x572d68:[_0x572d68];}_0x5b8bc4&&'tableCell'===_0x4e8c23['name']&&_0x1ebd5c(_0x5b8bc4,_0x47a384['writer'],(_0x398864,_0x2eefad,_0x13702a)=>_0x13702a['addClass'](_0x3ccdab(_0x2eefad['classes']),_0x398864),(_0x5b1fdd,_0x2a5885,_0x3c4cad)=>_0x3c4cad['removeClass'](_0x3ccdab(_0x2a5885['classes']),_0x5b1fdd));},{'priority':'highest'}),_0x31f88d['descriptionFactory']['registerDescriptionCallback'](_0x57c245=>{if('insertion'!=_0x57c245['type']&&'deletion'!=_0x57c245['type'])return;const _0x8a2740=_0x57c245['getContainedElement']();if(null!=_0x8a2740&&_0x8a2740['is']('element','table')){if('insertion'==_0x57c245['type']){const _0x12f191=_0x57c245['getItems']()['filter'](_0x365d98=>_0x365d98['is']('$textProxy'))['map'](_0xc41199=>_0xc41199['data']);if(_0x12f191['length'])return{'type':'insertion','content':o(_0x244402,'*Insert:*\x20%0',o(_0x244402,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12f191['join']('\x20')+'\x22'))};}if('deletion'==_0x57c245['type']){const _0x375aa4=_0x57c245['getItems']()['filter'](_0x2d5bd2=>_0x2d5bd2['is']('$textProxy'))['map'](_0xaed032=>_0xaed032['data']);if(_0x375aa4['length'])return{'type':'deletion','content':o(_0x244402,'*Remove:*\x20%0',o(_0x244402,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x375aa4['join']('\x20')+'\x22'))};}}}),_0x31f88d['descriptionFactory']['registerDescriptionCallback'](_0x4fee17=>{if('tableRow'==_0x4fee17['subType']){const _0x226458=_0x4fee17['getItems']()['filter'](_0xb14e8c=>_0xb14e8c['is']('$textProxy'))['map'](_0x5355a1=>_0x5355a1['data']),_0x4adfbf=this['_getSuggestionCoords'](_0x4fee17),_0x86a9ad=_0x4adfbf['maxRow']-_0x4adfbf['minRow']+0x1;if('insertion'==_0x4fee17['type'])return _0x226458['length']?{'type':'insertion','content':o(_0x244402,'*Insert:*\x20%0',o(_0x244402,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x86a9ad,'\x22'+_0x226458['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x244402,'*Insert:*\x20%0',o(_0x244402,'ELEMENT_TABLE_ROW',_0x86a9ad))};if('deletion'==_0x4fee17['type'])return _0x226458['length']?{'type':'deletion','content':o(_0x244402,'*Remove:*\x20%0',o(_0x244402,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x86a9ad,'\x22'+_0x226458['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x244402,'*Remove:*\x20%0',o(_0x244402,'ELEMENT_TABLE_ROW',_0x86a9ad))};}if('tableColumn'==_0x4fee17['subType']){const _0x22c32f=_0x4fee17['getItems']()['filter'](_0x5c6b54=>_0x5c6b54['is']('$textProxy'))['map'](_0x5684e9=>_0x5684e9['data']),_0x579208=this['_getSuggestionCoords'](_0x4fee17),_0x5b5f82=_0x579208['maxColumn']-_0x579208['minColumn']+0x1;if('insertion'==_0x4fee17['type'])return _0x22c32f['length']?{'type':'insertion','content':o(_0x244402,'*Insert:*\x20%0',o(_0x244402,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5b5f82,'\x22'+_0x22c32f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x244402,'*Insert:*\x20%0',o(_0x244402,'ELEMENT_TABLE_COLUMN',_0x5b5f82))};if('deletion'==_0x4fee17['type'])return _0x22c32f['length']?{'type':'deletion','content':o(_0x244402,'*Remove:*\x20%0',o(_0x244402,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5b5f82,'\x22'+_0x22c32f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x244402,'*Remove:*\x20%0',o(_0x244402,'ELEMENT_TABLE_COLUMN',_0x5b5f82))};}}),_0x31f88d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d53eb),_0x31f88d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d53eb),_0x31f88d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x106b34),_0x31f88d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x106b34),_0x31f88d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x188878),_0x31f88d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x188878),_0x31f88d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x332ec1),_0x31f88d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x332ec1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x510a11=this['editor'],_0x17f338=_0x510a11['model']['document']['selection'];return(_0x4e411e,_0x4d253b)=>{_0x510a11['model']['change'](_0x3b80a0=>{const {commandName:_0x1f41c8,commandParams:_0x326c5d}=_0x4d253b;let _0x39444a=_0x4e411e[0x0]['end']['nodeBefore'];_0x326c5d&&_0x326c5d[0x0]&&!0x1===_0x326c5d[0x0]['forceValue']&&(_0x39444a=_0x4e411e[0x0]['start']['nodeAfter']);const _0x5d8078=_0x3b80a0['createRangeIn'](_0x39444a);if('$graveyard'==_0x5d8078['root']['rootName'])return;const _0x3fc011=Array['from'](_0x17f338['getRanges']())['map'](_0x32d39f=>_0x4d6067['fromRange'](_0x32d39f));_0x3b80a0['setSelection'](_0x5d8078),_0x510a11['commands']['get'](_0x1f41c8)['refresh'](),_0x326c5d['push']({'forceDefaultExecution':!0x0}),_0x510a11['execute'](_0x1f41c8,..._0x326c5d);const _0x98414=_0x3fc011['filter'](_0x4694b9=>'$graveyard'!=_0x4694b9['root']['rootName']);_0x98414['length']>0x0&&_0x3b80a0['setSelection'](_0x98414);for(const _0x1a2283 of _0x3fc011)_0x1a2283['detach']();});};}['_getCoordsForCells'](_0x1192ff){const _0x82a274=this['editor']['plugins']['get']('TableUtils');let _0x46dfd5=Number['MAX_SAFE_INTEGER'],_0xb6f72c=Number['MIN_SAFE_INTEGER'],_0x4c8bbf=Number['MAX_SAFE_INTEGER'],_0x1c0364=Number['MIN_SAFE_INTEGER'];for(const _0x1cbfd6 of _0x1192ff){if('$graveyard'==_0x1cbfd6['root']['rootName'])continue;const {row:_0x1efd6f,column:_0x1e3c2f}=_0x82a274['getCellLocation'](_0x1cbfd6),_0x526b34=_0x1cbfd6['hasAttribute']('rowspan')?_0x1cbfd6['getAttribute']('rowspan')-0x1:0x0,_0x4c2857=_0x1cbfd6['hasAttribute']('colspan')?_0x1cbfd6['getAttribute']('colspan')-0x1:0x0;_0x46dfd5=_0x1efd6f<_0x46dfd5?_0x1efd6f:_0x46dfd5,_0xb6f72c=_0x1efd6f+_0x526b34>_0xb6f72c?_0x1efd6f+_0x526b34:_0xb6f72c,_0x4c8bbf=_0x1e3c2f<_0x4c8bbf?_0x1e3c2f:_0x4c8bbf,_0x1c0364=_0x1e3c2f+_0x4c2857>_0x1c0364?_0x1e3c2f+_0x4c2857:_0x1c0364;}return{'minRow':_0x46dfd5,'maxRow':_0xb6f72c,'minColumn':_0x4c8bbf,'maxColumn':_0x1c0364};}['_setupColumnsRowsFixing'](){const _0x4e34cc=this['editor'],_0x29694d=_0x4e34cc['plugins']['get']('TrackChangesEditing'),_0x5f434c=_0x4e34cc['plugins']['get']('TableUtils');_0x4e34cc['model']['document']['on']('change:data',()=>{const _0x13a6e0=Array['from'](_0x4e34cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c79fb,data:_0x180b06}of _0x13a6e0){const {group:_0x5597e5,id:_0x38e68e,subType:_0x3aea46}=_0x29694d['_splitMarkerName'](_0x5c79fb);if('suggestion'!=_0x5597e5)continue;if(null!=_0x180b06['oldRange'])continue;const _0x4d4a2e=_0x29694d['getSuggestion'](_0x38e68e);this['_tablePostFixingSubtypes']['includes'](_0x3aea46)&&this['_tableSuggestions']['add'](_0x4d4a2e);}},{'priority':'low'});const _0x288b72=(_0x4130a1,_0x174832)=>{let _0x2c7b8a=!0x1;const _0x170c3e=_0x174832['createRangeOn'](_0x4130a1),_0x35a229=_0x4130a1['findAncestor']('table'),_0x281bdf=_0x5f434c['getCellLocation'](_0x4130a1);for(const _0x1f93c8 of this['_tableSuggestions']){const _0x516fd3=_0x1f93c8['subType'],_0x242185=_0x516fd3['startsWith']('tablePaste'),_0xcea901=_0x516fd3['substr'](_0x242185?0xa:0x5),_0x55ddc8=_0xcea901['toLowerCase'](),_0x55dfc7=_0x55ddc8['substr'](0x0,0x3)+'span',_0xcb4ad8='min'+_0xcea901,_0xedabe6='max'+_0xcea901;if(!_0x1f93c8['isInContent'])continue;if(_0x35a229!=_0x1f93c8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1f93c8['isIntersectingWithRange'](_0x170c3e))continue;const _0xf21185=_0x4130a1['hasAttribute'](_0x55dfc7)?_0x4130a1['getAttribute'](_0x55dfc7)-0x1:0x0,_0x4a2bfc=this['_getSuggestionCoords'](_0x1f93c8),_0xae1a9d=_0x4a2bfc[_0xcb4ad8],_0x5b83fa=_0x4a2bfc[_0xedabe6];_0xae1a9d<=_0x281bdf[_0x55ddc8]&&_0x281bdf[_0x55ddc8]+_0xf21185<=_0x5b83fa&&(_0x1f93c8['addRange'](_0x170c3e),_0x2c7b8a=!0x0);}return _0x2c7b8a;};_0x4e34cc['model']['document']['registerPostFixer'](_0x147379=>{let _0x30aa6b=!0x1;for(const _0x401d0f of _0x4e34cc['model']['document']['differ']['getChanges']())if('insert'==_0x401d0f['type']){if('tableRow'==_0x401d0f['name']){for(const _0x1536a3 of _0x401d0f['position']['nodeAfter']['getChildren']())_0x30aa6b=_0x30aa6b||_0x288b72(_0x1536a3,_0x147379);}else'tableCell'==_0x401d0f['name']&&(_0x30aa6b=_0x30aa6b||_0x288b72(_0x401d0f['position']['nodeAfter'],_0x147379));}return _0x30aa6b;});}['_getSuggestionCoords'](_0x176cf6){return this['_getCoordsForCells'](_0x176cf6['getRanges']()['map'](_0x3980d2=>_0x3980d2['start']['nodeAfter']));}}function be(_0x4d7f00){return Array['from'](new Set(_0x4d7f00)['values']());}class vt extends _0xbd4bc4{static get['requires'](){return[It];}['afterInit'](){const _0x3310ce=this['editor'],_0x1af7de=_0x3310ce['model']['document']['selection'],_0x431b41=_0x3310ce['locale'];if(!_0x3310ce['plugins']['has']('TableEditing'))return;const _0x192539=_0x3310ce['plugins']['get']('TrackChangesEditing'),_0x181f6d=_0x3310ce['plugins']['get']('TableUtils'),_0x352f09=_0x3310ce['plugins']['get'](It);_0x352f09['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x192539['enableCommand']('mergeTableCells',()=>{const _0x4daeff=_0x181f6d['getSelectionAffectedTableCells'](_0x3310ce['model']['document']['selection']);_0x3310ce['model']['change'](()=>{_0x192539['markMultiRangeBlockFormat'](_0x4daeff,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3310ce['commands']['get']('mergeTableCells')['on']('execute',(_0x7b6baf,_0x1ae1a7)=>{_0x3310ce['commands']['get']('trackChanges')['value']&&(_0x1ae1a7['length']>0x0&&_0x1ae1a7[_0x1ae1a7['length']-0x1]&&_0x1ae1a7[_0x1ae1a7['length']-0x1]['forceDefaultExecution']||_0x192539['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x7b6baf['stop']());},{'priority':'highest'});for(const _0xff61e3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xaecab=_0x3310ce['commands']['get'](_0xff61e3);_0x192539['enableCommand'](_0xff61e3,()=>{const _0x296af0=_0x3310ce['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd1c3a2=>_0xd1c3a2['is']('element','tableCell')),_0x38e29a=_0xaecab['value'];_0x3310ce['model']['change'](()=>{_0x192539['markMultiRangeBlockFormat']([_0x296af0,_0x38e29a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x300ec8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2f852e=_0x3310ce['commands']['get'](_0x300ec8);_0x192539['enableCommand'](_0x300ec8,()=>{const _0x124f6b=_0x181f6d['getSelectionAffectedTableCells'](_0x3310ce['model']['document']['selection'])[0x0],_0x208b81=_0x124f6b['findAncestor']('table'),{column:_0x264ea4,row:_0x5db335}=_0x181f6d['getCellLocation'](_0x124f6b);let _0x3ca911=[];if('horizontally'==_0x2f852e['direction']){const _0x4756cf=_0x181f6d['createTableWalker'](_0x208b81,{'startRow':_0x5db335,'endRow':_0x5db335,'includeAllSlots':!0x0});_0x3ca911=Array['from'](_0x4756cf)['map'](_0x224095=>_0x224095['cell']);}else{const _0x40d335=_0x181f6d['createTableWalker'](_0x208b81,{'column':_0x264ea4,'includeAllSlots':!0x0});_0x3ca911=Array['from'](_0x40d335)['map'](_0x4b420e=>_0x4b420e['cell']);}_0x3310ce['model']['change'](_0x12e10f=>{_0x192539['markBlockFormat'](_0x12e10f['createRangeOn'](_0x124f6b),{'commandName':_0x300ec8,'commandParams':[]},_0x3ca911,_0x300ec8);});});}_0x192539['descriptionFactory']['registerDescriptionCallback'](_0x1c112e=>{if('formatBlock'!=_0x1c112e['type']&&'formatInline'!=_0x1c112e['type'])return;const {data:_0x4a71c0}=_0x1c112e;return _0x4a71c0&&'mergeTableCells'==_0x4a71c0['commandName']?{'type':'format','content':o(_0x431b41,'*Merge\x20cells*')}:void 0x0;}),_0x192539['descriptionFactory']['registerDescriptionCallback'](_0x252e1a=>{if('formatBlock'!=_0x252e1a['type']&&'formatInline'!=_0x252e1a['type'])return;const {data:_0x3a2f23}=_0x252e1a;return _0x3a2f23?'splitTableCellVertically'==_0x3a2f23['commandName']?{'type':'format','content':o(_0x431b41,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3a2f23['commandName']?{'type':'format','content':o(_0x431b41,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4408dc=_0x352f09['_acceptFormatSuggestionCallbackFactory']();for(const _0x318a78 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x192539['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x318a78,'accept',_0x4408dc);for(const _0xa21968 of['splitTableCellVertically','splitTableCellHorizontally'])_0x192539['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa21968,'accept',_0x4408dc);_0x192539['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3ae7cb=>{_0x3310ce['model']['change'](_0x261b1a=>{const _0x35e882=Array['from'](_0x1af7de['getRanges']())['map'](_0x3a2969=>_0x4d6067['fromRange'](_0x3a2969));_0x261b1a['setSelection'](_0x3ae7cb),_0x3310ce['commands']['get']('mergeTableCells')['refresh'](),_0x3310ce['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1ac220=_0x35e882['filter'](_0x458bc2=>'$graveyard'!=_0x458bc2['root']['rootName']);_0x1ac220['length']>0x0&&_0x261b1a['setSelection'](_0x1ac220);for(const _0x34c16c of _0x35e882)_0x34c16c['detach']();});});for(const _0x1328c1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5632dc=_0x3310ce['commands']['get'](_0x1328c1);_0x5632dc['on']('set:isEnabled',(_0x353045,_0x2751e4,_0x59e568)=>{if(_0x59e568){const _0x1f3c07=_0x3310ce['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x420332=>_0x420332['is']('element','tableCell'));this['_areMergableCells'](_0x5632dc['value'],_0x1f3c07)||(_0x353045['return']=!0x1,_0x353045['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x696187=this['editor']['commands']['get']('mergeTableCells'),_0x28d350=this['editor']['plugins']['get']('TableUtils');if(!_0x696187['isEnabled'])return!0x1;const _0x4cb9e6=_0x28d350['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x494eb of _0x4cb9e6)for(const _0x2e60eb of _0x4cb9e6)if(_0x494eb!=_0x2e60eb&&!this['_areMergableCells'](_0x494eb,_0x2e60eb))return!0x1;return!0x0;}['_areMergableCells'](_0x37df36,_0x36c12d){const _0x1c1079=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e0d66=this['editor']['model']['createRangeOn'](_0x37df36),_0x12e17d=this['editor']['model']['createRangeOn'](_0x36c12d),_0x12b6cb=new Set(),_0x3046bd=new Set();for(const _0x54d90a of _0x1c1079['getSuggestions']())if(('insertion'==_0x54d90a['type']||'deletion'==_0x54d90a['type']||'mergeTableCells'==_0x54d90a['subType'])&&_0x54d90a['isInContent']){for(const _0x11f0df of _0x54d90a['getRanges']())_0x11f0df['containsRange'](_0x4e0d66,!0x0)&&_0x12b6cb['add'](_0x54d90a['type']+':'+_0x54d90a['author']['id']),_0x11f0df['containsRange'](_0x12e17d,!0x0)&&_0x3046bd['add'](_0x54d90a['type']+':'+_0x54d90a['author']['id']);}if(_0x12b6cb['size']!=_0x3046bd['size'])return!0x1;for(const _0x1c3d9f of _0x12b6cb)if(!_0x3046bd['has'](_0x1c3d9f))return!0x1;return!0x0;}}class Ct extends _0xbd4bc4{static get['requires'](){return[It];}['afterInit'](){const _0x2dbc9f=this['editor'];if(!_0x2dbc9f['plugins']['has']('TableEditing'))return;const _0x4aae6a=_0x2dbc9f['locale'],_0x506afb=_0x2dbc9f['plugins']['get']('TrackChangesEditing');_0x506afb['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x506afb['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x506afb['registerBlockAttribute']('headingRows'),_0x506afb['registerBlockAttribute']('headingColumns'),_0x506afb['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4aae6a,'FORMAT_HEADER_ROW')),_0x506afb['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4aae6a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b1fb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30eb64=this['editor']['plugins']['get']('TableUtils'),_0x4acd62=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2ad2f7({showActiveMarker:_0x227cb1=!0x0,setDataAttribute:_0x4bd69a=!0x0}={}){return(_0x562745,_0x4d8211,_0x5878d8)=>{const {type:_0xcb5c5b,id:_0x56bdd6}=_0x2b1fb9['_splitMarkerName'](_0x4d8211['markerName']),_0x54b8cd=_0x2b1fb9['getSuggestion'](_0x56bdd6),_0x58ae76=_0x54b8cd['data'];if('formatBlock'!=_0x54b8cd['type']||!_0x58ae76||'setTableColumnHeader'!=_0x58ae76['commandName'])return;if(_0x4d8211['item'])return void _0x562745['stop']();if(!_0x5878d8['consumable']['consume'](_0x4d8211['markerRange'],_0x562745['name']))return;const _0x3c3deb=_0x4d8211['markerRange']['start']['nodeAfter'],_0x36f1ca=_0x4d8211['markerRange']['end']['nodeBefore'],_0x4addba=_0x3c3deb['parent']['parent'],{column:_0x4ae5e5}=_0x30eb64['getCellLocation'](_0x3c3deb),{column:_0x10939d}=_0x30eb64['getCellLocation'](_0x36f1ca);for(let _0x2ac6f7=_0x4ae5e5;_0x2ac6f7<=_0x10939d;_0x2ac6f7++){const _0x24152c=_0x30eb64['createTableWalker'](_0x4addba,{'column':_0x2ac6f7,'includeAllSlots':!0x1});for(const _0x14dc65 of _0x24152c){const _0x20f8a5=_0x14dc65['cell'],_0x3d7e5e=_0x5878d8['mapper']['toViewElement'](_0x20f8a5);_0x5878d8['writer']['addClass']('ck-suggestion-marker-'+_0xcb5c5b,_0x3d7e5e),_0x4bd69a&&_0x5878d8['writer']['setAttribute']('data-suggestion',_0x56bdd6,_0x3d7e5e),_0x5878d8['mapper']['bindElementToMarker'](_0x3d7e5e,_0x4d8211['markerName']),_0x227cb1&&(_0x2b1fb9['activeMarkers']['includes'](_0x4d8211['markerName'])?_0x5878d8['writer']['addClass']('ck-suggestion-marker--active',_0x3d7e5e):_0x5878d8['writer']['removeClass']('ck-suggestion-marker--active',_0x3d7e5e));}}};}_0x2b1fb9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4acd62),_0x2b1fb9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4acd62),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ad2f7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5f1dea,_0x2d7f24,_0x4abc89)=>{_0x4abc89['options']['showSuggestionHighlights']&&_0x2ad2f7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5f1dea,_0x2d7f24,_0x4abc89);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5569f5,_0x441114,_0x3862e4)=>{const {type:_0x52abb7,id:_0x22482e}=_0x2b1fb9['_splitMarkerName'](_0x441114['markerName']),_0x115bef=_0x2b1fb9['getSuggestion'](_0x22482e),_0x4bef53=_0x115bef['data'];if('formatBlock'!=_0x115bef['type']||!_0x4bef53||'setTableColumnHeader'!=_0x4bef53['commandName'])return;const _0x463b13=_0x3862e4['mapper']['markerNameToElements'](_0x441114['markerName']);if(_0x463b13){for(const _0x387ba0 of _0x463b13)_0x3862e4['writer']['removeClass']('ck-suggestion-marker-'+_0x52abb7,_0x387ba0),_0x3862e4['writer']['removeClass']('ck-suggestion-marker--active',_0x387ba0),_0x3862e4['writer']['removeAttribute']('data-suggestion',_0x387ba0),_0x3862e4['mapper']['unbindElementFromMarkerName'](_0x387ba0,_0x441114['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x501e4a=this['editor'],_0x7805dc=_0x501e4a['locale'];function _0x57cdfe(_0x708daa){return{'type':'format','content':o(_0x7805dc,'*Format:*\x20%0',_0x708daa)};}_0x501e4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12040e=>{if('formatBlock'!=_0x12040e['type'])return;const {data:_0x5f3717}=_0x12040e;if(_0x5f3717){if('setTableRowHeader'==_0x5f3717['commandName']){const _0xe8c36a=_0x5f3717['commandParams'][0x0]['forceValue'];return _0x57cdfe(o(_0x7805dc,_0xe8c36a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5f3717['commandName']){const _0x78e67d=_0x5f3717['commandParams'][0x0]['forceValue'];return _0x57cdfe(o(_0x7805dc,_0x78e67d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x21d137=>[_0x21d137,null]));class _t extends _0xbd4bc4{static get['requires'](){return[It];}['afterInit'](){const _0x1709d7=this['editor'];if(!_0x1709d7['plugins']['has']('TableClipboard'))return;const _0x3da021=_0x1709d7['plugins']['get']('TrackChangesEditing'),_0x5577a1=_0x1709d7['plugins']['get']('TableUtils'),_0x86365d=_0x1709d7['plugins']['get'](It),_0x4760c7=_0x1709d7['plugins']['get']('TableClipboard');_0x86365d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1709d7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1709d7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5124a7=null;_0x1709d7['model']['on']('insertContent',(_0xf88e06,_0x28db64)=>{const [_0x423404,_0xe4c871]=_0x28db64,_0x55287c=_0x28db64[_0x28db64['length']-0x1];_0x55287c&&_0x55287c['forceDefaultExecution']||_0x3da021['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xfbc5d5,_0x3a1c1e,_0x141787,_0x4c5053,_0xe85f5a){if(_0x3a1c1e&&!_0x3a1c1e['is']('documentSelection'))return!0x1;const _0x581abd=_0xe85f5a['getTableIfOnlyTableInContent'](_0xfbc5d5,_0x141787);if(!_0x581abd||!Re(_0x581abd,void 0x0,_0x4c5053))return!0x1;const _0x204fed=_0x4c5053['getSelectionAffectedTableCells'](_0x141787['document']['selection']);if(!_0x204fed['length'])return!0x1;const _0x29e54f=_0x204fed[0x0]['findAncestor']('table'),_0x373394=_0x4c5053['getRowIndexes'](_0x204fed),_0x399bd3=_0x4c5053['getColumnIndexes'](_0x204fed),_0x1f812a={'startRow':_0x373394['first'],'endRow':_0x373394['last'],'startColumn':_0x399bd3['first'],'endColumn':_0x399bd3['last']};return 0x1==_0x204fed['length']&&(_0x1f812a['endRow']+=_0x4c5053['getRows'](_0x581abd)-0x1,_0x1f812a['endColumn']+=_0x4c5053['getColumns'](_0x581abd)-0x1),Re(_0x29e54f,_0x1f812a,_0x4c5053);}(_0x423404,_0xe4c871,_0x1709d7['model'],_0x5577a1,_0x4760c7)&&(_0xf88e06['stop'](),_0x5124a7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1709d7['model']['change'](()=>{_0x1709d7['model']['insertContent'](_0x28db64[0x0],_0x28db64[0x1],_0x28db64[0x2],{'forceDefaultExecution':!0x0});const _0x50c7b4=_0x44c9df(),{rowInsertionRanges:_0x1f4c56,columnInsertionRanges:_0x29b31c,insertionRanges:_0x376e40,deletionRanges:_0x590f66,cells:_0x5c0a1c}=_0x5124a7;_0x1f4c56['length']&&_0x3da021['markMultiRangeInsertion'](_0x1f4c56,'tablePasteRow',{'tablePasteChainId':_0x50c7b4}),_0x29b31c['length']&&_0x3da021['markMultiRangeInsertion'](_0x29b31c,'tablePasteColumn',{'tablePasteChainId':_0x50c7b4}),_0x376e40['length']&&(_0x3da021['markMultiRangeInsertion'](_0x376e40,'tablePaste',{'tablePasteChainId':_0x50c7b4,'skipNestingCheck':!0x0}),_0x376e40['forEach'](_0x430a7a=>_0x430a7a['detach']?.())),_0x590f66['length']&&(_0x3da021['markMultiRangeDeletion'](_0x590f66,'tablePaste',{'tablePasteChainId':_0x50c7b4,'skipNestingCheck':!0x0}),_0x590f66['forEach'](_0x512ec4=>_0x512ec4['detach']?.()));const _0x4aee82=_0x3da021['markMultiRangeBlockFormat'](_0x5c0a1c['map'](({element:_0x46d043})=>_0x46d043),{'formatGroupId':_0x44c9df()},[],'tablePasteCell',{'tablePasteChainId':_0x50c7b4});if(_0x4aee82){const _0x580964=_0x4aee82['getMarkers'](),_0x2dfe8b=[];for(const {element:_0x1f3115,attributes:_0x1786d8}of _0x5c0a1c){if(!_0x1786d8)continue;const _0x48b151=_0x1709d7['model']['createRangeOn'](_0x1f3115),_0x54c201=_0x580964['find'](_0x3d0914=>_0x3d0914['getRange']()['isEqual'](_0x48b151));_0x54c201&&_0x2dfe8b['push']([_0x54c201['name'],_0x1786d8]);}_0x2dfe8b['length']&&_0x4aee82['setAttribute']('markerAttributes',Object['fromEntries'](_0x2dfe8b));}_0x5124a7=null;}));},{'priority':_0x399907['high']+0xa}),_0x1709d7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xf4db03,_0x1c8137)=>{const [_0x58e190,_0x5de0cf,,_0x35ac9c]=_0x1c8137;if(!_0x5124a7)return;_0xf4db03['stop']();const _0x54ed3c=_0x58e190['cell'],_0x3df7d9=_0x5de0cf,_0x6bd3e2=ke(_0x54ed3c),_0x40baeb=ke(_0x3df7d9);_0xf4db03['return']=_0x54ed3c;let _0x2e1fab=null,_0x26b26b=null;if(_0x40baeb||_0x6bd3e2){if(_0x6bd3e2&&!_0x40baeb){_0x35ac9c['remove'](_0x54ed3c['getChild'](0x0));for(const _0x385e84 of Array['from'](_0x3df7d9['getChildren']()))_0x35ac9c['insert'](_0x385e84,_0x54ed3c,'end');const _0x52b97e=_0x5124a7['rowInsertionIndexes']['includes'](_0x58e190['row']),_0x38db9e=_0x5124a7['columnInsertionIndexes']['includes'](_0x58e190['column']);_0x52b97e||_0x38db9e||(_0x2e1fab=_0x4d6067['fromRange'](_0x35ac9c['createRangeIn'](_0x54ed3c)));}else _0x40baeb&&!_0x6bd3e2&&(_0x26b26b=_0x35ac9c['createRangeIn'](_0x54ed3c));}else{const _0x11f99b=_0x35ac9c['createElement']('tableCellSuggestion'),_0x31d0f0=_0x35ac9c['createElement']('tableCellSuggestion');_0x35ac9c['wrap'](_0x35ac9c['createRangeIn'](_0x54ed3c),_0x31d0f0),_0x35ac9c['insert'](_0x11f99b,_0x54ed3c,0x0);for(const _0x311eb0 of Array['from'](_0x3df7d9['getChildren']()))_0x35ac9c['insert'](_0x311eb0,_0x11f99b,'end');_0x2e1fab=_0x4d6067['fromRange'](_0x35ac9c['createRangeOn'](_0x11f99b)),_0x26b26b=_0x4d6067['fromRange'](_0x35ac9c['createRangeOn'](_0x31d0f0));}const _0x5cabb6=Array['from'](_0x3df7d9['getAttributes']())['filter'](([_0x3fc1f0])=>Pe['includes'](_0x3fc1f0));_0x5124a7['cells']['push']({'element':_0x54ed3c,'attributes':_0x5cabb6['length']?Object['fromEntries'](_0x5cabb6):null}),_0x2e1fab&&_0x5124a7['insertionRanges']['push'](_0x2e1fab),_0x26b26b&&_0x5124a7['deletionRanges']['push'](_0x26b26b);},{'priority':'high'}),_0x5577a1['on']('insertColumns',(_0x5d790c,_0x3fb9f8)=>{const [_0x2f8e70,_0x485fb5={}]=_0x3fb9f8;if(!_0x5124a7)return;const _0x3557e6=_0x485fb5['at']||0x0,_0x4fdcc1=_0x485fb5['columns']||0x1;_0x5124a7['columnInsertionIndexes']=new Array(_0x4fdcc1)['fill'](_0x3557e6)['map']((_0x17a3c1,_0x4f5418)=>_0x17a3c1+_0x4f5418);for(const {cell:_0x556fc9}of _0x5577a1['createTableWalker'](_0x2f8e70,{'startColumn':_0x3557e6,'endColumn':_0x3557e6+_0x4fdcc1-0x1}))_0x5124a7['columnInsertionRanges']['push'](_0x1709d7['model']['createRangeOn'](_0x556fc9));},{'priority':'low'}),_0x5577a1['on']('insertRows',(_0x308ffd,_0x53e6db)=>{const [_0x4aee58,_0x147109={}]=_0x53e6db;if(!_0x5124a7)return;const _0x54d0a5=_0x147109['at']||0x0,_0x589c85=_0x147109['rows']||0x1;_0x5124a7['rowInsertionIndexes']=new Array(_0x589c85)['fill'](_0x54d0a5)['map']((_0x4b0217,_0x248172)=>_0x4b0217+_0x248172);for(const {cell:_0x879121}of _0x5577a1['createTableWalker'](_0x4aee58,{'startRow':_0x54d0a5,'endRow':_0x54d0a5+_0x589c85-0x1}))_0x5124a7['rowInsertionRanges']['push'](_0x1709d7['model']['createRangeOn'](_0x879121));},{'priority':'low'}),_0x3da021['descriptionFactory']['registerDescriptionCallback'](_0x5df6dc=>{if(_0x5df6dc['subType']&&_0x5df6dc['subType']['startsWith']('tablePaste'))return _0x5df6dc['previous']?{}:{'type':'insertion','content':o(_0x1709d7['locale'],'*Replace\x20table\x20cells*')};});const _0x517cef=()=>!0x1;for(const _0x906cea of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3da021['_suggestionFactory']['registerCustomCallback']('insertion',_0x906cea,'join',_0x517cef),_0x3da021['_suggestionFactory']['registerCustomCallback']('deletion',_0x906cea,'join',_0x517cef),_0x3da021['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x906cea,'join',_0x517cef);_0x3da021['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x517cef),_0x3da021['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4192c0,_0x532981,_0x3ea3cc)=>{const _0x5b211c=_0x4192c0['map'](_0x15693a=>_0x15693a['getContainedElement']())['filter'](_0x849025=>_0x849025),_0x40f0fc=new Map(_0x5b211c['map'](_0x5646eb=>[_0x5646eb,null]));if(_0x5124a7){for(const {element:_0x1704d9,attributes:_0x13bd62}of _0x5124a7['cells'])_0x13bd62&&_0x40f0fc['set'](_0x1704d9,_0x13bd62);}else{if(_0x3ea3cc&&_0x3ea3cc['markerAttributes'])for(const [_0x37a135,_0x1ae6ab]of Object['entries'](_0x3ea3cc['markerAttributes'])){const _0x25cb56=_0x1709d7['model']['markers']['get'](_0x37a135),_0x27a626=_0x25cb56?_0x25cb56['getRange']()['getContainedElement']():null;_0x27a626&&_0x40f0fc['set'](_0x27a626,_0x1ae6ab);}}_0x1709d7['model']['change'](_0x52ba54=>{for(const [_0x156cb9,_0x1b7a18]of _0x40f0fc)_0x52ba54['setAttributes']({...we,..._0x1b7a18},_0x156cb9);});});const _0x5b7df0=(_0x34dd0c,_0x5587d6)=>{_0x3da021['_suggestionFactory']['registerCustomCallback'](_0x34dd0c,'tablePaste',_0x5587d6,(_0x5175be,_0x39e2bf,_0x30ea21)=>{_0x1709d7['model']['change'](_0x5c45ca=>{const _0x15470f=[];for(const _0x410cca of _0x5175be){const _0x9d6751=_0x410cca['start']['nodeAfter'];_0x9d6751['is']('element','tableCellSuggestion')&&_0x15470f['push'](_0x9d6751);}_0x3da021['_suggestionFactory']['getSuggestionCallback'](_0x34dd0c,null,_0x5587d6)(_0x5175be,_0x39e2bf,_0x30ea21);for(const _0x3f21a9 of _0x15470f)'$graveyard'!=_0x3f21a9['root']['rootName']&&_0x5c45ca['unwrap'](_0x3f21a9);});});};_0x5b7df0('insertion','accept'),_0x5b7df0('insertion','discard'),_0x5b7df0('deletion','accept'),_0x5b7df0('deletion','discard'),_0x3da021['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xb42b19=>{const _0x554fe6=_0xb42b19['map'](_0x8cbf5c=>_0x8cbf5c['getContainedElement']()),_0x2b9f3f=_0x554fe6[0x0]['findAncestor']('table'),{minRow:_0x2dac14,maxRow:_0x3584da}=_0x86365d['_getCoordsForCells'](_0x554fe6);_0x5577a1['removeRows'](_0x2b9f3f,{'at':_0x2dac14,'rows':_0x3584da-_0x2dac14+0x1});}),_0x3da021['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x561fc4=>{const _0xe42d80=_0x561fc4['map'](_0x5eec90=>_0x5eec90['getContainedElement']()),_0x2012eb=_0xe42d80[0x0]['findAncestor']('table'),{minColumn:_0x27e852,maxColumn:_0x330d9e}=_0x86365d['_getCoordsForCells'](_0xe42d80);_0x5577a1['removeColumns'](_0x2012eb,{'at':_0x27e852,'columns':_0x330d9e-_0x27e852+0x1});});const _0x3928db=(_0x4d0ba0,_0x2f1ca8)=>{if(!_0x2f1ca8['subType']||!_0x2f1ca8['subType']['startsWith']('tablePaste'))return;const _0x1c1d8a=_0x2f1ca8['attributes']['tablePasteChainId'],_0x249a2c=_0x3da021['getSuggestions']()['filter'](_0x447440=>_0x447440['isInContent']&&_0x447440['attributes']&&_0x447440['attributes']['tablePasteChainId']==_0x1c1d8a);_0x249a2c['length']&&_0x2f1ca8['getAllAdjacentSuggestions']()['length']!=_0x249a2c['length']&&_0x249a2c['reduce']((_0x399ac3,_0x3d44c9)=>(_0x399ac3['next']=_0x3d44c9,_0x3d44c9['previous']=_0x399ac3,_0x3d44c9));};function _0x154f76(_0x562de1,_0x33f759=!0x0){const {id:_0x3ce860,authorId:_0x53d49e}=_0x3da021['_splitMarkerName'](_0x562de1['markerName']),_0x5176c3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4dd06b=_0x3da021['activeMarkers']['includes'](_0x562de1['markerName']);return _0x4dd06b&&_0x5176c3['push']('ck-suggestion-marker--active'),{'classes':_0x5176c3,'attributes':{'data-suggestion':_0x3ce860,'data-author-id':_0x53d49e},'priority':_0x4dd06b&&_0x33f759?0xbc2:0xbb8};}_0x3da021['on']('suggestionLoaded',_0x3928db,{'priority':'high'}),_0x3da021['on']('suggestionUnloaded',_0x3928db,{'priority':'high'}),_0x1709d7['model']['document']['registerPostFixer'](()=>{let _0x4e6767=!0x1;const _0x577746=Array['from'](_0x1709d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2743a4,data:_0x393d49}of _0x577746){const {group:_0x497386,type:_0x3ad456,id:_0x4dfe0c}=_0x3da021['_splitMarkerName'](_0x2743a4);if('suggestion'!=_0x497386||'deletion'!=_0x3ad456||_0x393d49['oldRange'])continue;if(!_0x3da021['hasSuggestion'](_0x4dfe0c))continue;const _0x1e7a8b=_0x3da021['getSuggestion'](_0x4dfe0c)['getRanges'](),_0x4ef7e3=_0x1709d7['plugins']['get']('Users')['me'];for(const _0x56cd4d of _0x3da021['getSuggestions']()){if(!_0x56cd4d['isInContent']||_0x56cd4d['author']!=_0x4ef7e3)continue;if('formatBlock'!=_0x56cd4d['type']||'tablePasteCell'!=_0x56cd4d['subType'])continue;if(_0x56cd4d['getRanges']()['every'](_0x3cff95=>_0x1e7a8b['some'](_0xf017cd=>_0xf017cd['containsRange'](_0x3cff95,!0x0)))){for(const _0xd2bd of _0x56cd4d['getAllAdjacentSuggestions']())_0xd2bd['isInContent']&&(_0xd2bd['discard'](),_0x4e6767=!0x0);}}}return _0x4e6767;}),_0x1709d7['model']['document']['registerPostFixer'](_0x3ee3ba=>{const _0x126144=_0x1709d7['commands']['get']('redo');if(!_0x126144||!_0x126144['_createdBatches']['has'](_0x3ee3ba['batch']))return!0x1;let _0x55d54a=!0x1;const _0x2d5f5f=_0x1709d7['plugins']['get']('Users')['me'],_0x2aba22=_0x1709d7['model']['document']['differ']['getChanges'](),_0x3b8ec7=Array['from'](_0x1709d7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5cf407,data:_0x50b334})=>{const {group:_0x4aab92,subType:_0xe495a8,authorId:_0xb80b82}=_0x3da021['_splitMarkerName'](_0x5cf407);return'suggestion'==_0x4aab92&&'tablePaste'==_0xe495a8&&_0xb80b82==_0x2d5f5f['id']&&!_0x50b334['oldRange'];});for(const _0x254c6f of _0x2aba22){if('insert'!=_0x254c6f['type']||'tableCellSuggestion'!=_0x254c6f['name']||0x1!=_0x254c6f['length'])continue;const _0x454db2=_0x3ee3ba['createRange'](_0x254c6f['position'],_0x254c6f['position']['getShiftedBy'](0x1));if(!_0x3b8ec7['find'](({data:_0x3f2495})=>_0x3f2495['newRange']['isEqual'](_0x454db2))){for(const {name:_0x518579,data:_0x5694a0}of _0x3b8ec7)if(_0x454db2['containsRange'](_0x5694a0['newRange'])){_0x3ee3ba['updateMarker'](_0x518579,{'range':_0x454db2}),_0x55d54a=!0x0;break;}}}return _0x55d54a;}),_0x1709d7['model']['document']['registerPostFixer'](_0x327e0b=>{let _0x300ba7=!0x1;const _0x57d43b=_0x1709d7['plugins']['get']('Users')['me'],_0x3fa589=_0x3da021['getSuggestions']()['filter'](_0xa28364=>_0xa28364['isInContent']&&_0xa28364['author']==_0x57d43b),_0x57604e=new Set(),_0x295def=new Set();for(const _0xa4d81a of _0x3fa589)if('tablePaste'==_0xa4d81a['subType'])for(const _0x2b64b5 of _0xa4d81a['getMarkers']()){const _0x2ee183=_0x2b64b5['getRange']()['getContainedElement']();if(_0x2ee183){if(_0x2ee183['is']('element','tableCellSuggestion')&&ke(_0x2ee183)){_0xa4d81a['removeMarker'](_0x2b64b5['name']),_0x57604e['add'](_0x2ee183),_0x300ba7=!0x0;const _0x1a09f3=_0x2ee183['nextSibling'],_0x251b85=_0x2ee183['previousSibling'],_0x2956bc=_0x1a09f3&&_0x1a09f3['is']('element','tableCellSuggestion'),_0xefef0a=_0x251b85&&_0x251b85['is']('element','tableCellSuggestion');_0x2956bc&&!_0x57604e['has'](_0x1a09f3)&&_0x295def['add'](_0x1a09f3),_0xefef0a&&!_0x57604e['has'](_0x251b85)&&_0x295def['add'](_0x251b85);}else _0x2ee183['is']('element','paragraph')&&_0x2ee183['isEmpty']&&(_0xa4d81a['removeMarker'](_0x2b64b5['name']),_0x300ba7=!0x0);}}else{if('tablePasteCell'==_0xa4d81a['subType']){if(!_0xa4d81a['attributes']||!_0xa4d81a['attributes']['tablePasteChainId'])continue;const _0x413973=_0xa4d81a['attributes']['markerAttributes'];if(_0x413973&&Object['keys'](_0x413973)['length'])continue;const _0x2982bc=_0xa4d81a['attributes']['tablePasteChainId'];let _0xc1efc=!0x0,_0x342ac4=!0x0;for(const _0x1e3bf2 of _0x3fa589)if(_0x1e3bf2['subType']&&_0x1e3bf2['subType']['startsWith']('tablePaste')){if(!_0x1e3bf2['attributes']['tablePasteChainId']){_0x342ac4=!0x1;break;}if(_0x1e3bf2['id']!=_0xa4d81a['id']&&_0x1e3bf2['attributes']['tablePasteChainId']==_0x2982bc){_0xc1efc=!0x1;break;}}_0x342ac4&&_0xc1efc&&(_0xa4d81a['removeMarkers'](),_0x300ba7=!0x0);}}for(const _0x5e3fef of _0x57604e)_0x327e0b['remove'](_0x5e3fef);for(const _0x225adc of _0x295def)_0x327e0b['unwrap'](_0x225adc);return _0x300ba7;}),_0x1709d7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x7340a7=>_0x154f76(_0x7340a7),'converterPriority':'high'}),_0x1709d7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x40dfb8,_0x26e0f1)=>_0x26e0f1['options']['showSuggestionHighlights']?_0x154f76(_0x40dfb8,!0x1):null,'converterPriority':'high'});const _0x1c492a=_0x1709d7['editing']['view'];this['listenTo'](_0x1c492a['document'],'clipboardOutput',(_0x43ed68,_0x3ba0cb)=>{const _0x5d58b1=[];for(const _0x11c599 of _0x1c492a['createRangeIn'](_0x3ba0cb['content'])['getItems']())_0x11c599['is']('element','suggestion-td')&&_0x5d58b1['push'](_0x11c599);_0x1c492a['change'](_0x3da7aa=>{for(const _0x13ec9a of _0x5d58b1)_0x3da7aa['move'](_0x3da7aa['createRangeIn'](_0x13ec9a),_0x3da7aa['createPositionBefore'](_0x13ec9a)),_0x3da7aa['remove'](_0x13ec9a);});});}}function ke(_0x5df67a){if(_0x5df67a['isEmpty'])return!0x0;const _0x1cf084=_0x5df67a['getChild'](0x0);return _0x1cf084['is']('element','paragraph')&&_0x1cf084['isEmpty'];}function Re(_0x3714cf,_0x187afb={},_0x412ed8){for(const {isAnchor:_0x12b7ef,cellHeight:_0x20c411,cellWidth:_0x4aa810}of _0x412ed8['createTableWalker'](_0x3714cf,{'includeAllSlots':!0x0,..._0x187afb}))if(!_0x12b7ef||0x1!=_0x20c411||0x1!=_0x4aa810)return!0x1;return!0x0;}class Nt extends _0xbd4bc4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x926528=this['editor']['plugins']['get']('TrackChangesEditing');_0x926528['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x926528['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x926528['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x926528['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x926528['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x926528['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xb6ea3,_0xa016ff){const _0x5165b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51184f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x36fb26=_0xa016ff['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x24afa5=_0x51184f['getColumnGroupElement'](_0x36fb26);let _0x5ad884=_0x24afa5?_0x51184f['getTableColumnsWidths'](_0x24afa5):null,_0x124616=_0x36fb26['getAttribute']('tableWidth')||null;const _0x2baaa5=_0xa016ff['tableWidth']||_0x124616,_0x518d41=_0xa016ff['columnWidths']||_0x5ad884,_0x2ebcdb=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ac5b2 of _0x5165b1['getSuggestions']()){const _0x2c50e8=_0x4ac5b2['getContainedElement']();if('resizeTable'===_0x4ac5b2['subType']&&_0x2c50e8===_0x36fb26){_0x4ac5b2['author']!==_0x2ebcdb&&_0x4ac5b2['discard']();const _0x163da2=_0x4ac5b2['data']['commandParams'];_0x124616=_0x163da2[0x0]['tableWidth'],_0x5ad884=_0x163da2[0x0]['columnWidths'];break;}}_0xb6ea3({'table':_0x36fb26,'tableWidth':_0x2baaa5,'columnWidths':_0x518d41}),_0x5165b1['markBlockFormat'](_0x36fb26,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x124616,'columnWidths':_0x5ad884}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x47ccc7){if('formatBlock'!=_0x47ccc7['type']&&'formatInline'!=_0x47ccc7['type'])return;const {data:_0x342f9d}=_0x47ccc7;if(_0x342f9d&&'resizeTable'===_0x342f9d['formatGroupId']){const _0x21460a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x21460a)};}}}class Dt extends _0xbd4bc4{['afterInit'](){const _0x499851=this['editor'];_0x499851['plugins']['has']('Template')&&_0x499851['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xbd4bc4{['afterInit'](){const _0x1fcda5=this['editor'];if(!_0x1fcda5['commands']['get']('insertTableOfContents'))return;_0x1fcda5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x522a20=_0x1fcda5['plugins']['get']('TrackChangesEditing'),_0x1c2d21=_0x1fcda5['locale'];_0x522a20['descriptionFactory']['registerElementLabel']('tableOfContents',_0x20b3cb=>o(_0x1c2d21,'ELEMENT_TABLE_OF_CONTENTS',_0x20b3cb));}}class $t extends _0xbd4bc4{['afterInit'](){const _0xc74c5f=this['editor'];if(!_0xc74c5f['plugins']['has']('Title'))return;const _0xa121bf=_0xc74c5f['plugins']['get']('TrackChangesEditing');_0xa121bf['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xc74c5f['locale'],'ELEMENT_TITLE')),_0xc74c5f['model']['document']['registerPostFixer'](_0x154d94=>{let _0x3bf76a=!0x1;const _0x457bad=Array['from'](_0xc74c5f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x228170,data:_0x1493bc}of _0x457bad){const {group:_0x125196}=_0xa121bf['_splitMarkerName'](_0x228170);if('suggestion'!==_0x125196||!_0x1493bc['newRange'])continue;const _0x14c201=_0x1493bc['newRange'],_0x18d140=_0x14c201['end']['nodeBefore'];if(!_0x18d140||!_0x18d140['is']('element','title-content'))continue;if(!_0x14c201['start']['isTouching'](_0x14c201['end']))continue;const _0x3db5ef=_0xc74c5f['model']['schema']['getNearestSelectionRange'](_0x14c201['end'],'forward');if(_0x3db5ef&&_0x3db5ef['isCollapsed']){const _0x301085=_0x154d94['createRange'](_0x14c201['start'],_0x3db5ef['start']);_0x301085['isEqual'](_0x14c201)||(_0x154d94['updateMarker'](_0x228170,{'range':_0x301085}),_0x3bf76a=!0x0);}_0x3bf76a||(_0x154d94['removeMarker'](_0x228170),_0x3bf76a=!0x0);}return _0x3bf76a;});}}class Bt extends _0xbd4bc4{['afterInit'](){const _0x249270=this['editor'],_0x13532c=_0x249270['plugins']['get']('TrackChangesEditing');_0x249270['plugins']['has']('UndoEditing')&&(_0x13532c['enableCommand']('undo'),_0x13532c['enableCommand']('redo'));}}class xt extends _0xbd4bc4{static get['requires'](){return[It];}['afterInit'](){const _0x37251b=this['editor'];if(!_0x37251b['plugins']['has']('TableCaptionEditing'))return;_0x37251b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0xbd4bc4{['tableProperties'];['tableCellProperties'];constructor(_0x2100b3){super(_0x2100b3),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2ae829=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xff6ff8 of this['tableProperties'])_0x2ae829['enableCommand'](_0xff6ff8,(_0x3aa653,_0x56ee48)=>{const _0x2d323b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xff6ff8,[_0x2d323b],this['tableProperties'],'tableProperties',_0x3aa653,_0x56ee48);});_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2ae829['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x288b17,_0x4babee)=>this['handleDiscardAction'](this['tableProperties'],_0x288b17,_0x4babee)),_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12566b of this['tableCellProperties'])_0x2ae829['enableCommand'](_0x12566b,(_0x53cf87,_0x3003a4)=>{const _0x534e9d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12566b,_0x534e9d,this['tableCellProperties'],'tableCellProperties',_0x53cf87,_0x3003a4);});_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2ae829['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x45e207,_0x3f6164)=>this['handleDiscardAction'](this['tableCellProperties'],_0x45e207,_0x3f6164)),_0x2ae829['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2ae829['descriptionFactory']['registerDescriptionCallback'](_0x404045=>this['handleSuggestionDescription'](_0x404045));}['_handlePropertyChange'](_0x32a0e5,_0x1ef3ac,_0x4e6741,_0x3b6f36,_0x15929b,_0x31c891){const _0x4f2bdd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x31c891['batch'],()=>{for(const _0x415f40 of _0x1ef3ac){if(this['_getSuggestion'](_0x415f40,_0x3b6f36))_0x15929b(_0x31c891);else{const _0x146c3b={};for(const _0x4f9f27 of _0x4e6741){const _0x5c90fb=_0x415f40['getAttribute'](_0x4f9f27);void 0x0!==_0x5c90fb&&(_0x146c3b[_0x4f9f27]=_0x5c90fb);}_0x15929b(_0x31c891),_0x4f2bdd['markBlockFormat'](_0x415f40,{'commandParams':[_0x146c3b]},[],_0x3b6f36);}}});}['handleDiscardAction'](_0x209500,_0xe6c1af,_0x29ccdc){const _0xcac13c=_0xe6c1af[0x0]['start']['nodeAfter'],_0x334906=_0x29ccdc['commandParams'][0x0];this['editor']['model']['change'](_0x2de65e=>{for(const _0x5243d7 of _0x209500)void 0x0!==_0x334906[_0x5243d7]?_0x2de65e['setAttribute'](_0x5243d7,_0x334906[_0x5243d7],_0xcac13c):_0x2de65e['removeAttribute'](_0x5243d7,_0xcac13c);});}['handleSuggestionDescription'](_0x27ac9f){if(_0x27ac9f['data'])switch(_0x27ac9f['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'](_0x4c92ae,_0x1a7027){const _0x186bce=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xae6564 of _0x186bce['getSuggestions']({'skipNotAttached':!0x0})){const _0x58d1da=_0xae6564['getContainedElement']();if(_0xae6564['subType']===_0x1a7027&&_0x58d1da===_0x4c92ae)return _0xae6564;}return null;}}const m='$elementName';class p extends _0xbd4bc4{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x890f8f,_0x57122b,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,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4447e7){function _0x5656d7(_0xb83f02){return _0xb83f02['map'](_0x493a24=>String['fromCharCode'](_0x493a24))['join']('');}super(_0x4447e7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x296dd3,_0x219ae5,_0x4ec2fb,_0xab98f3)=>{this['_model']['change'](()=>{for(const _0x3971a0 of[..._0xab98f3,..._0x4ec2fb])this['_model']['markers']['has'](_0x3971a0)&&_0x4447e7['editing']['reconvertMarker'](_0x3971a0);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4447e7['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(),_0x4447e7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4447e7['config']['get']('trackChanges.trackFormatChanges'),_0x4447e7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4447e7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4447e7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5656d7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5656d7([0x34,0x30,0x34,0x38,0x32,0x30,0x33,0x34]);}['init'](){const _0x568cfd=this['editor'],_0x4dac76=(_0x3082a1,_0x41c84b)=>{if('attribute'!=_0x3082a1)return'ck-suggestion-marker-'+_0x3082a1;const _0x51daef=_0x41c84b['split']('|')[0x0];return this['_isBlockAttribute'](_0x51daef)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x568cfd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2c044f=>{const {id:_0x3148e7,authorId:_0x2cb3d3,type:_0x37137d,subType:_0x508996}=this['_splitMarkerName'](_0x2c044f['markerName']),_0x5aa8de=['ck-suggestion-marker',_0x4dac76(_0x37137d,_0x508996)];let _0x33492a=0xbb8;return this['activeMarkers']['includes'](_0x2c044f['markerName'])&&(_0x5aa8de['push']('ck-suggestion-marker--active'),_0x33492a=0xbc2),'deletion'==_0x37137d&&(_0x33492a+=0x5),{'classes':_0x5aa8de,'attributes':{'data-suggestion':_0x3148e7,'data-author-id':_0x2cb3d3},'priority':_0x33492a};}}),_0x568cfd['conversion']['for']('dataDowncast')['add'](_0x40d471=>{_0x40d471['on']('addMarker:suggestion',(_0x3feda9,_0x1e419b,_0x3562d7)=>{if(!_0x3562d7['options']['showSuggestionHighlights'])return;const _0x56fc66=_0x1e419b['item'];if(!_0x56fc66)return;const _0x57331d=_0x3562d7['mapper']['toViewElement'](_0x56fc66);_0x568cfd['model']['schema']['isObject'](_0x56fc66)&&_0x57331d&&!_0x57331d['getCustomProperty']('widget')&&_0x57331d['is']('containerElement')&&_0x506ded(_0x57331d,_0x3562d7['writer']);},{'priority':'high'});}),_0x568cfd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x33a2a8,_0x53ce25)=>{if(!_0x53ce25['options']['showSuggestionHighlights'])return null;const {type:_0x57dd22,subType:_0x4a07d9}=this['_splitMarkerName'](_0x33a2a8['markerName']);return{'classes':['ck-suggestion-marker',_0x4dac76(_0x57dd22,_0x4a07d9)],'priority':0xbb8};}});const _0x5f055b=({showActiveMarkers:_0x52a513=!0x0,isAttributeSuggestion:_0x406400=!0x1}={})=>(_0x2adb44,_0x1416a4,_0x2314b7)=>{if(!_0x1416a4['item'])return;const {id:_0x3b1544,authorId:_0x364fa6}=this['_splitMarkerName'](_0x1416a4['markerName']);if(_0x406400){const _0x50a61a=this['_suggestions']['get'](_0x3b1544),_0x375225=this['_getAttributeKey'](_0x50a61a);if(!this['_isBlockAttribute'](_0x375225))return;}if(_0x1416a4['item']['is']('selection'))return void _0x2314b7['consumable']['consume'](_0x1416a4['item'],_0x2adb44['name']);const _0x1693f7=_0x2314b7['mapper']['toViewElement'](_0x1416a4['item']);if(_0x1416a4['item']['is']('element')&&_0x568cfd['model']['schema']['isBlock'](_0x1416a4['item'])&&!_0x1693f7['getCustomProperty']('addHighlight')){_0x2314b7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1693f7),_0x2314b7['writer']['setAttribute']('data-suggestion',_0x3b1544,_0x1693f7),_0x2314b7['writer']['setAttribute']('data-author-id',_0x364fa6,_0x1693f7),_0x2314b7['mapper']['bindElementToMarker'](_0x1693f7,_0x1416a4['markerName']),_0x52a513&&(this['activeMarkers']['includes'](_0x1416a4['markerName'])?_0x2314b7['writer']['addClass']('ck-suggestion-marker--active',_0x1693f7):_0x2314b7['writer']['removeClass']('ck-suggestion-marker--active',_0x1693f7));for(const _0x45ad9e of _0x568cfd['model']['createRangeIn'](_0x1416a4['item'])['getItems']())_0x2314b7['consumable']['consume'](_0x45ad9e,_0x2adb44['name']);_0x2314b7['consumable']['consume'](_0x1416a4['item'],_0x2adb44['name']);}};_0x568cfd['conversion']['for']('dataDowncast')['add'](_0x1fa2ae=>{_0x1fa2ae['on']('addMarker:suggestion:formatBlock',(_0x1c038a,_0x209d7a,_0x386a3d)=>{_0x386a3d['options']['showSuggestionHighlights']&&_0x5f055b({'showActiveMarkers':!0x1})(_0x1c038a,_0x209d7a,_0x386a3d);},{'priority':'highest'});}),_0x568cfd['conversion']['for']('dataDowncast')['add'](_0x357f2c=>{_0x357f2c['on']('addMarker:suggestion:attribute',(_0x12bbd3,_0x35c9a3,_0x1f0c3f)=>{_0x1f0c3f['options']['showSuggestionHighlights']&&_0x5f055b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x12bbd3,_0x35c9a3,_0x1f0c3f);},{'priority':'highest'});}),_0x568cfd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2fc072,_0x514d06)=>_0x514d06['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2fc072['substr'](0xb)}}),_0x568cfd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a3049,{writer:_0x36cf9d})=>{let _0x3d5752='suggestion:'+_0x4a3049['getAttribute']('suggestion-type')+':'+_0x4a3049['getAttribute']('id');return _0x4a3049['getAttribute']('marker-count')&&(_0x3d5752+=':'+_0x4a3049['getAttribute']('marker-count')),_0x36cf9d['createElement']('$marker',{'data-name':_0x3d5752});}}),_0x568cfd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x568cfd['conversion']['for']('editingDowncast')['add'](_0x5d1aa9=>{_0x5d1aa9['on']('addMarker:suggestion:formatBlock',_0x5f055b(),{'priority':'high'});}),_0x568cfd['conversion']['for']('editingDowncast')['add'](_0x3f7c60=>{_0x3f7c60['on']('addMarker:suggestion:attribute',_0x5f055b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x568cfd['conversion']['for']('editingDowncast')['add'](_0x536bc9=>{_0x536bc9['on']('removeMarker:suggestion:formatBlock',(_0x5479cd,_0x5b801c,_0x230208)=>{const _0x29ee19=_0x230208['mapper']['markerNameToElements'](_0x5b801c['markerName']);if(_0x29ee19){for(const _0x4fc37 of _0x29ee19)_0x4fc37['getCustomProperty']('addHighlight')||(_0x230208['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4fc37),_0x230208['writer']['removeAttribute']('data-suggestion',_0x4fc37),_0x230208['writer']['removeAttribute']('data-author-id',_0x4fc37),_0x230208['mapper']['unbindElementFromMarkerName'](_0x4fc37,_0x5b801c['markerName']));}},{'priority':'high'});}),_0x568cfd['conversion']['for']('editingDowncast')['add'](_0x1b35cb=>{_0x1b35cb['on']('removeMarker:suggestion:attribute',(_0x4d18bb,_0x2649bb,_0x494d80)=>{const _0x358a15=_0x494d80['mapper']['markerNameToElements'](_0x2649bb['markerName']);if(!_0x358a15)return;const {id:_0x20c944}=this['_splitMarkerName'](_0x2649bb['markerName']),_0x4c7a93=this['_suggestions']['get'](_0x20c944),_0x21fd54=this['_getAttributeKey'](_0x4c7a93);if(this['_isBlockAttribute'](_0x21fd54)){for(const _0x2da9a6 of _0x358a15)_0x2da9a6['getCustomProperty']('addHighlight')||(_0x494d80['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2da9a6),_0x494d80['writer']['removeAttribute']('data-suggestion',_0x2da9a6),_0x494d80['writer']['removeAttribute']('data-author-id',_0x2da9a6),_0x494d80['mapper']['unbindElementFromMarkerName'](_0x2da9a6,_0x2649bb['markerName']));}},{'priority':'high'});}),_0x568cfd['model']['document']['registerPostFixer'](_0x1b7bd2=>{let _0x4e2b6d=!0x1;const _0x9ed2de=Array['from'](_0x568cfd['model']['document']['differ']['getChangedMarkers']()),_0x3efea4=new Set();for(const {name:_0xe7e884,data:_0x5e9c83}of _0x9ed2de){const {group:_0x5b6ec9,type:_0x36e924,subType:_0x45d583,id:_0x4c2fbb}=this['_splitMarkerName'](_0xe7e884);if('suggestion'!==_0x5b6ec9)continue;const _0x14cb84=this['_suggestions']['get'](_0x4c2fbb);if(null!=_0x5e9c83['newRange']){'formatInline'==_0x36e924&&(_0x4e2b6d=_0x4e2b6d||Ut(_0x5e9c83['newRange'],_0xe7e884,_0x1b7bd2,_0x568cfd['model']['schema']));const _0x35a73f='attribute'==_0x36e924&&this['_isBlockAttribute'](_0x45d583['split']('|')[0x0]);if(_0x5e9c83['newRange']['isCollapsed']||'$graveyard'==_0x5e9c83['newRange']['root']['rootName']||'formatBlock'==_0x36e924&&!Gt(_0x5e9c83['newRange'])||_0x35a73f&&!Gt(_0x5e9c83['newRange'])||'deletion'==_0x36e924&&!(!Vt(_0x917d4b=_0x5e9c83['newRange'])&&!function(_0x30915f){return _0x30915f['start']['parent']==_0x30915f['end']['nodeBefore']&&_0x30915f['start']['isAtEnd'];}(_0x917d4b)))_0x1b7bd2['removeMarker'](_0xe7e884),_0x4e2b6d=!0x0;else{if(!_0x14cb84||!_0x14cb84['isInContent'])continue;if(_0x5e9c83['newRange']&&_0x5e9c83['oldRange']&&_0x5e9c83['newRange']['isEqual'](_0x5e9c83['oldRange']))continue;_0x3efea4['add'](_0x14cb84);}}}var _0x917d4b;return _0x3efea4['size']>0x0&&(_0x4e2b6d=!!this['_joinWithAdjacentSuggestions'](_0x3efea4)||_0x4e2b6d),_0x4e2b6d;}),_0x568cfd['model']['document']['registerPostFixer'](_0x42e0c2=>{let _0x350771=!0x1;for(const _0x4bcd18 of _0x568cfd['model']['document']['differ']['getChanges']())if('insert'==_0x4bcd18['type'])for(const _0xa35976 of this['_suggestions']['values']()){if(_0xa35976['isMultiRange']||!_0xa35976['isInContent'])continue;const _0x3d39b8='formatBlock'==_0xa35976['type'],_0x3f80f0=this['_getAttributeKey'](_0xa35976),_0x189c78=_0x3f80f0&&this['_isBlockAttribute'](_0x3f80f0);if(!_0x3d39b8&&!_0x189c78)continue;const _0x3e9bff=_0xa35976['getFirstRange']();if(_0x3e9bff['start']['parent']!=_0x3e9bff['end']['parent']&&!_0x3e9bff['end']['isAtEnd']){const _0x466a3a=_0x568cfd['model']['createPositionAt'](_0x3e9bff['start']['nodeAfter'],'end'),_0x17ad61=_0x568cfd['model']['createRange'](_0x3e9bff['start'],_0x466a3a);_0x42e0c2['updateMarker'](_0xa35976['getFirstMarker'](),{'range':_0x17ad61}),_0x350771=!0x0;}}return _0x350771;}),_0x568cfd['model']['document']['registerPostFixer'](_0x5bf909=>this['_processAttributeChanges'](_0x5bf909)),_0x568cfd['model']['document']['registerPostFixer'](_0x2adaaa=>!_0x2adaaa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2adaaa)),_0x568cfd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x568cfd['model']['document']['on']('change:data',(_0x5a244c,_0x3da8a4)=>{if(!_0x3da8a4['isLocal']||_0x3da8a4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b13b1=_0x568cfd['model']['document']['differ']['getChanges']();if(0x0==_0x4b13b1['length'])return;const _0x57724c=[],_0x372ec6=_0x4b13b1['filter'](_0x3b91de=>'attribute'==_0x3b91de['type']),_0x54396b=_0x4b13b1['filter'](_0x191241=>'insert'==_0x191241['type']&&'$text'!=_0x191241['name']);for(const _0x2e1454 of _0x372ec6)this['_isRegisteredAttribute'](_0x2e1454['attributeKey'])&&_0x57724c['push']({'key':_0x2e1454['attributeKey'],'newValue':_0x2e1454['attributeNewValue'],'oldValue':_0x2e1454['attributeOldValue'],'range':Ft(_0x2e1454['range'],_0x568cfd['model'])});for(const _0x21f121 of _0x54396b){if('rename'!=_0x21f121['action']&&'refresh'!=_0x21f121['action'])continue;const _0x13265e=Lt(_0x21f121['position']['nodeAfter'],_0x568cfd['model']),_0x3453bb=_0x21f121['before'];'rename'==_0x21f121['action']&&_0x57724c['push']({'key':m,'newValue':_0x21f121['name'],'oldValue':_0x3453bb['name'],'range':_0x13265e});for(const [_0x31e31a,_0x11754b]of _0x3453bb['attributes']){if(!this['_isRegisteredAttribute'](_0x31e31a))continue;const _0x582658=_0x21f121['attributes']['get'](_0x31e31a);_0x11754b!==_0x582658&&_0x57724c['push']({'key':_0x31e31a,'newValue':_0x582658,'oldValue':_0x11754b,'range':_0x13265e});}for(const [_0x130155,_0x5b46e3]of _0x21f121['attributes'])this['_isRegisteredAttribute'](_0x130155)&&(_0x3453bb['attributes']['has'](_0x130155)||_0x57724c['push']({'key':_0x130155,'newValue':_0x5b46e3,'oldValue':null,'range':_0x13265e}));}0x0!=_0x57724c['length']&&_0x568cfd['model']['enqueueChange'](_0x3da8a4,_0x4f3ccb=>{const _0x1048cd=_0x44c9df();for(const {range:_0xd47ce,key:_0x1511ab,oldValue:_0x68fb90,newValue:_0x242890}of _0x57724c)this['markAttributeChange'](_0xd47ce,_0x1511ab,_0x68fb90,_0x242890,{'groupId':_0x1048cd});this['_reduceExistingSuggestions'](_0x4f3ccb,_0x57724c);});},{'priority':'lowest'}),_0x568cfd['model']['markers']['on']('update:suggestion',(_0x463b62,_0x36de71,_0x358185)=>{if(null==_0x358185){const {id:_0x55b9c7}=this['_splitMarkerName'](_0x36de71['name']),_0x15ccf7=this['_suggestions']['get'](_0x55b9c7);_0x15ccf7&&_0x15ccf7['addMarkerName'](_0x36de71['name']);}}),_0x568cfd['model']['document']['on']('change:data',()=>{const _0x632a0d=Array['from'](_0x568cfd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c5797=>'suggestion'===this['_splitMarkerName'](_0x1c5797['name'])['group']);if(0x0===_0x632a0d['length'])return;_0x632a0d['sort']((_0x3fa02c,_0x45ec4a)=>{const _0x74bba9=_0x3fa02c['data']['oldRange'],_0x5c3bab=_0x45ec4a['data']['oldRange'];return null===_0x74bba9&&null===_0x5c3bab?0x0:null===_0x74bba9&&null!==_0x5c3bab?-0x1:null!==_0x74bba9&&null===_0x5c3bab?0x1:_0x74bba9['start']['isBefore'](_0x5c3bab['start'])?-0x1:0x1;});const _0x1998ae=new Set(),_0x56cf5b=new Set();for(const {name:_0xb7c92c,data:_0x463175}of _0x632a0d){const {id:_0x52a0b4}=this['_splitMarkerName'](_0xb7c92c);if(null===_0x463175['oldRange']){const _0x73897e=this['_handleNewSuggestionMarker'](_0xb7c92c);_0x56cf5b['add'](_0x73897e);}else{const _0x4928e8=this['_suggestions']['get'](_0x52a0b4);null!==_0x463175['newRange']||_0x4928e8['isInContent']?(_0x1998ae['add'](_0x4928e8['head']),_0x56cf5b['add'](_0x4928e8)):this['_removeSuggestion'](_0x4928e8);}}_0x56cf5b['size']>0x0&&this['_refreshSuggestionsChain'](_0x56cf5b);for(const _0xcccaa9 of _0x1998ae)this['fire']('suggestionChanged',_0xcccaa9);}),_0x568cfd['model']['on']('applyOperation',(_0x3cbe00,_0x294aa6)=>{const _0x2b18cb=_0x294aa6[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b18cb['isDocumentOperation'])return;if(_0x2b18cb['batch']['isUndo']||!_0x2b18cb['batch']['isLocal'])return;let _0x538935,_0x18fb97;switch(_0x2b18cb['type']){case'insert':_0x538935=_0x568cfd['model']['createPositionAt'](_0x2b18cb['position']),_0x18fb97=_0x538935['getShiftedBy'](_0x2b18cb['howMany']);break;case'split':_0x538935=_0x568cfd['model']['createPositionAt'](_0x2b18cb['splitPosition']),_0x18fb97=_0x568cfd['model']['createPositionAt'](_0x2b18cb['moveTargetPosition']);break;case'move':_0x538935=_0x568cfd['model']['createPositionAt'](_0x2b18cb['targetPosition']),_0x18fb97=_0x538935['getShiftedBy'](_0x2b18cb['howMany']);break;default:return;}const _0x5d7383=_0x568cfd['model']['createRange'](_0x538935,_0x18fb97);_0x568cfd['model']['change'](()=>{for(const {suggestion:_0x491fe5,meta:_0x297560}of this['_findSuggestions'](_0x5d7383)){if(_0x491fe5['isMultiRange'])continue;if('formatInline'==_0x491fe5['type'])continue;const _0xf9f64c=this['_getAttributeKey'](_0x491fe5);if(_0xf9f64c&&this['_isBlockAttribute'](_0xf9f64c)&&'split'!=_0x2b18cb['type'])continue;const _0x4c2598=_0x491fe5['data']&&_0x491fe5['data']['multipleBlocks'];('formatBlock'!=_0x491fe5['type']||'split'==_0x2b18cb['type']&&!_0x4c2598)&&(_0x297560['containsRangeInObject']||'insertion'==_0x491fe5['type']&&_0x297560['isOwn']||_0x491fe5['getFirstRange']()['containsRange'](_0x5d7383)&&this['_breakSuggestionMarker'](_0x491fe5,_0x538935,_0x18fb97));}});},{'priority':'lowest'}),_0x568cfd['model']['on']('deleteContent',(_0x2e2227,_0x1c12ab)=>{const _0xaeee33=_0x1c12ab[0x0],_0x6e901=_0x1c12ab[0x1];if(_0x6e901&&_0x6e901['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xaeee33['isCollapsed'])return;const _0x398bf1=_0x568cfd['model']['schema'],{start:_0xd0a0e7,end:_0xcced2}=_0xaeee33['getFirstRange'](),_0x441ba7=_0xd0a0e7['nodeAfter']&&_0x398bf1['isLimit'](_0xd0a0e7['nodeAfter'])?null:_0x398bf1['getNearestSelectionRange'](_0xd0a0e7,'forward'),_0xee0044=_0xcced2['nodeBefore']&&_0x398bf1['isLimit'](_0xcced2['nodeBefore'])?null:_0x398bf1['getNearestSelectionRange'](_0xcced2,'backward'),_0x1e90cb=_0x568cfd['model']['createRange'](_0x441ba7?_0x441ba7['start']:_0xd0a0e7,_0xee0044?_0xee0044['end']:_0xcced2);_0x568cfd['model']['change'](_0x310c2b=>{this['markDeletion'](_0x1e90cb);const _0x38f62f=_0x568cfd['model']['schema']['getNearestSelectionRange'](_0x1e90cb['start']);_0xaeee33['is']('documentSelection')?_0x310c2b['setSelection'](_0x38f62f):_0xaeee33['setTo'](_0x38f62f);}),_0x2e2227['stop']();},{'priority':_0x399907['normal']+0xa}),_0x568cfd['model']['on']('insertContent',(_0x49df89,_0x20d18d)=>{const _0x567d54=_0x20d18d[_0x20d18d['length']-0x1];_0x567d54&&_0x567d54['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x568cfd['model']['change'](()=>{let _0x33c5d4=_0x568cfd['model']['insertContent'](_0x20d18d[0x0],_0x20d18d[0x1],_0x20d18d[0x2],{'forceDefaultExecution':!0x0});if(!_0x33c5d4)return;_0x49df89['return']=_0x33c5d4['clone']();const _0x58bbda=_0x33c5d4['end']['nodeBefore'],_0x587c16=_0x568cfd['model']['schema'];_0x58bbda&&_0x587c16['isBlock'](_0x58bbda)&&!_0x587c16['isObject'](_0x58bbda)&&(_0x33c5d4=_0x568cfd['model']['createRange'](_0x33c5d4['start'],_0x568cfd['model']['createPositionAt'](_0x58bbda,'end'))),this['markInsertion'](_0x33c5d4);}),_0x49df89['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x528c0b=new x(_0x568cfd,this['_suggestions']);_0x568cfd['commands']['add']('acceptSuggestion',_0x528c0b),this['enableCommand']('acceptSuggestion');const _0x4cf0a4=new O(_0x568cfd,this['_suggestions']);_0x568cfd['commands']['add']('discardSuggestion',_0x4cf0a4),this['enableCommand']('discardSuggestion'),_0x568cfd['commands']['add']('acceptAllSuggestions',new R(_0x568cfd,_0x528c0b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x568cfd['commands']['add']('discardAllSuggestions',new R(_0x568cfd,_0x4cf0a4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x568cfd['commands']['add']('acceptSelectedSuggestions',new E(_0x568cfd,_0x528c0b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x568cfd['commands']['add']('discardSelectedSuggestions',new E(_0x568cfd,_0x4cf0a4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xbbd043=_0x568cfd['plugins']['get']('CommentsRepository');this['listenTo'](_0xbbd043,'addComment',(_0x194b3c,{threadId:_0x27ff15})=>{const _0x1623c0=this['_suggestions']['get'](_0x27ff15);_0x1623c0&&_0x1623c0['commentThread']&&0x1===_0x1623c0['commentThread']['length']&&this['_updateSuggestionData'](_0x27ff15,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xbbd043,'removeComment',(_0x46fc97,{threadId:_0xafb207})=>{const _0x3f4619=this['_suggestions']['get'](_0xafb207);_0x3f4619&&_0x3f4619['commentThread']&&!_0x3f4619['commentThread']['length']&&this['_updateSuggestionData'](_0xafb207,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4f4be3){if(this['_adapter'])throw new _0x50a6b3('track-changes-adapter-already-set',this);this['_adapter']=_0x4f4be3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x47bec5=!0x1,toJSON:_0x3bdf17=!0x1}={}){const _0x34dff6=[];for(const _0x2c3e06 of this['_suggestions']['values']())_0x47bec5&&!_0x2c3e06['isInContent']||_0x34dff6['push'](_0x2c3e06);return _0x3bdf17?_0x34dff6['map'](_0x42020c=>_0x42020c['toJSON']()):_0x34dff6;}['getSuggestion'](_0x34aab3){const _0x3fc222=this['_suggestions']['get'](_0x34aab3);if(!_0x3fc222)throw new _0x50a6b3('track-changes-suggestion-not-found',this);return _0x3fc222;}['hasSuggestion'](_0x3e2856){return this['_suggestions']['has'](_0x3e2856);}['addSuggestionData'](_0x3c306b){const {authorId:_0x9fb1a1,id:_0x2d8482,attributes:_0x3df999}=_0x3c306b,[_0x173d90,_0x2b3904]=_0x3c306b['type']['split'](':'),_0x440f0e=this['_suggestions']['get'](_0x2d8482)||this['_createSuggestion'](_0x173d90,_0x2b3904,_0x2d8482,_0x9fb1a1,_0x3df999);if(this['_addThreadToSuggestion'](_0x440f0e),this['_checkSuggestionCorrectness'](_0x440f0e,_0x173d90,_0x2b3904||null,_0x9fb1a1),_0x440f0e['createdAt']=_0x3c306b['createdAt'],_0x440f0e['_isDataLoaded']=!0x0,_0x3df999&&_0x3df999['@external']){const _0x204647=_0x3df999['@external'],_0x1801ad=this['_getExternalAuthor'](_0x204647['authorName']);_0x440f0e['authoredAt']=_0x204647['createdAt'],_0x440f0e['author']=_0x1801ad,_0x440f0e['isExternal']=!0x0;}else _0x440f0e['authoredAt']=_0x3c306b['createdAt'];switch(_0x3c306b['data']&&(_0x440f0e['data']=_0x3c306b['data']),_0x3c306b['attributes']&&(_0x440f0e['attributes']=_0x3c306b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x440f0e['_saved']=!0x0),this['_suggestionState']['get'](_0x440f0e)){case'notReady':this['_suggestionState']['set'](_0x440f0e,'dataReady');break;case'markerReady':_0x440f0e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x440f0e])),this['_refreshSuggestionsChain'](new Set([_0x440f0e])),this['_suggestionState']['set'](_0x440f0e,'ready'),this['fire']('suggestionLoaded',_0x440f0e)):this['_suggestionState']['set'](_0x440f0e,'removed');}return _0x440f0e;}['acceptSuggestion'](_0x521176){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35b662 of _0x521176['getAllAdjacentSuggestions']())_0x35b662['accept']();});});}['discardSuggestion'](_0x11b5a8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2b49b3 of _0x11b5a8['getAllAdjacentSuggestions']())_0x2b49b3['discard']();});});}['enableCommand'](_0x566942,_0x5e8acc){const _0xabb623=this['editor']['commands']['get'](_0x566942);if(!_0xabb623)throw new _0x50a6b3('track-changes-command-not-found',this,{'commandName':_0x566942});if(this['_enabledCommands']['has'](_0xabb623))throw new _0x50a6b3('track-changes-enable-command-twice',this,{'commandName':_0x566942});this['_enabledCommands']['add'](_0xabb623),_0x5e8acc&&_0xabb623['on']('execute',(_0x37a5c0,_0x5e79ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e79ef['length']>0x0&&_0x5e79ef[_0x5e79ef['length']-0x1]&&_0x5e79ef[_0x5e79ef['length']-0x1]['forceDefaultExecution']?_0x5e79ef['pop']():(_0x37a5c0['return']=_0x5e8acc((..._0x22d7ba)=>_0xabb623['execute'](..._0x22d7ba,{'forceDefaultExecution':!0x0}),..._0x5e79ef),_0x37a5c0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xb14370){let _0x103c66,_0x11b760;const _0xfd4189=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x103c66=_0xb14370();}catch(_0x9217d6){_0x11b760=_0x9217d6;}return _0xfd4189||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x11b760&&_0x50a6b3['rethrowUnexpectedError'](_0x11b760,this),_0x103c66;}['markInsertion'](_0x3d8de7,_0xc70946=null,_0x481839={}){if(_0x3d8de7['isCollapsed'])return null;const _0x43684e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x190b4b,meta:_0x5a8d78}of this['_findSuggestions'](_0x3d8de7,'insertion'))if(_0x5a8d78['isOwn']){if(!_0x5a8d78['isNextTo']){if(_0x5a8d78['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x190b4b,_0x481839))continue;return _0x190b4b;}if(qt(_0x190b4b,_0x481839))return _0x190b4b;this['_breakSuggestionMarker'](_0x190b4b,_0x3d8de7['start'],_0x3d8de7['end']);break;}if(_0xc70946==_0x190b4b['subType']&&qt(_0x190b4b,_0x481839)){const _0x1a635e=_0x190b4b['getFirstRange']();return _0x1a635e['start']['isEqual'](_0x3d8de7['end'])?this['_setSuggestionRange'](_0x190b4b,this['_model']['createRange'](_0x3d8de7['start'],_0x1a635e['end'])):this['_setSuggestionRange'](_0x190b4b,this['_model']['createRange'](_0x1a635e['start'],_0x3d8de7['end'])),_0x190b4b;}}const _0x18eccc=_0x44c9df(),_0x30f08b=_0x43684e['id'],_0x29fc76=_0xc70946?'insertion:'+_0xc70946:'insertion',_0x552a27=this['_setSuggestionData']({'id':_0x18eccc,'type':_0x29fc76,'createdAt':new Date(),'authorId':_0x30f08b,'attributes':_0x481839});return this['_addSuggestionMarker'](_0x29fc76,_0x18eccc,_0x30f08b,_0x3d8de7),_0x552a27;}['markMultiRangeInsertion'](_0x3416d4,_0x2ceec7='multi',_0x2e3f64={}){const _0x5d979a=this['editor']['plugins']['get']('Users')['me'],_0x479c51=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2ceec7,'join');for(const _0x1b3563 of this['getSuggestions']())if(_0x1b3563['author']['id']==_0x5d979a['id']&&'insertion'==_0x1b3563['type']&&_0x1b3563['subType']==_0x2ceec7&&qt(_0x1b3563,_0x2e3f64)&&(_0x479c51(_0x1b3563['getRanges'](),_0x3416d4)||_0x479c51(_0x3416d4,_0x1b3563['getRanges']()))){for(const _0x3a97e3 of _0x3416d4)_0x1b3563['addRange'](_0x3a97e3);return _0x1b3563;}for(const {suggestion:_0x4ef3b8,meta:_0x5ebad1}of this['_findSuggestions'](_0x3416d4,'insertion')){if(!_0x5ebad1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5ebad1['containsRangeInObject'])continue;if(!qt(_0x4ef3b8,_0x2e3f64))continue;let _0x1063be=!0x0;for(const _0x25ab01 of _0x4ef3b8['getRanges']())for(const _0x15e95f of _0x3416d4)if(!_0x25ab01['containsRange'](_0x15e95f)){_0x1063be=!0x1;break;}if(_0x1063be)return _0x4ef3b8;}const _0x432f21=_0x44c9df(),_0x3a6a56=_0x5d979a['id'],_0x4ce78f='insertion:'+_0x2ceec7,_0x6f30ac=this['_setSuggestionData']({'id':_0x432f21,'type':_0x4ce78f,'createdAt':new Date(),'authorId':_0x3a6a56,'attributes':_0x2e3f64});for(const _0x46a63d of _0x3416d4)this['_addSuggestionMarker'](_0x4ce78f,_0x432f21,_0x3a6a56,_0x46a63d,u['getMultiRangeId']());return _0x6f30ac;}['markInlineFormat'](_0x3bafaf,_0x10e972,_0x1e1bca=null,_0x451bfe={}){if(_0x1e1bca=_0x1e1bca||Pt(_0x10e972),_0x3bafaf['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1c33fc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1e1bca,'accept');return this['forceDefaultExecution'](()=>_0x1c33fc([_0x3bafaf],_0x10e972,_0x451bfe)),null;}const _0x37d5fd=this['editor']['plugins']['get']('Users')['me'],_0x2cd5f1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x508289,meta:_0x1dcd72}of this['_findSuggestions'](_0x3bafaf,'insertion'))_0x1dcd72['isOwn']&&!_0x1dcd72['isInsideObject']&&_0x2cd5f1['push'](..._0x508289['getRanges']());}const _0x262ebd=function(_0x2fbb7d,_0x4a1274){const _0x5b162f=[];for(const _0x198ed2 of _0x4a1274){const _0x264f78=_0x2fbb7d['getIntersection'](_0x198ed2);_0x264f78&&_0x5b162f['push'](_0x264f78);}return _0x5b162f;}(_0x3bafaf,_0x2cd5f1),_0x37f53e=function(_0xe9c0f,_0x16a3e2){const _0x458d67=[_0xe9c0f];for(const _0x2cf7dd of _0x16a3e2){let _0x1311c5=0x0;for(;_0x1311c5<_0x458d67['length'];){const _0x3a9808=_0x458d67[_0x1311c5]['getDifference'](_0x2cf7dd);_0x458d67['splice'](_0x1311c5,0x1,..._0x3a9808),_0x1311c5+=_0x3a9808['length'];}}return _0x458d67;}(_0x3bafaf,_0x2cd5f1);_0x262ebd['length']&&this['_model']['change'](()=>{for(const _0x1999df of _0x262ebd){const _0x5b7e52=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1e1bca,'accept');this['forceDefaultExecution'](()=>_0x5b7e52([_0x1999df],_0x10e972,_0x451bfe));}});for(const _0x5049d2 of _0x37f53e){let _0x16c7c6=null,_0x1b4863=_0x5049d2['start'],_0x584fbd=_0x5049d2['end'];for(const {suggestion:_0x19b2f7,meta:_0x39aff0}of this['_findSuggestions'](_0x5049d2,'formatInline')){if(!_0x39aff0['isOwn'])continue;if(_0x19b2f7['subType']!=_0x1e1bca)continue;if(!qt(_0x19b2f7,_0x451bfe))continue;const _0x1f5547=_0x19b2f7['getFirstRange']();if(_0x1f5547['containsRange'](_0x5049d2,!0x0))return null;_0x1b4863=_0x1b4863['isBefore'](_0x1f5547['start'])?_0x1b4863:_0x1f5547['start'],_0x584fbd=_0x584fbd['isAfter'](_0x1f5547['end'])?_0x584fbd:_0x1f5547['end'],_0x16c7c6?_0x1f5547['start']['isBefore'](_0x16c7c6['getFirstRange']()['start'])?(_0x16c7c6['removeMarkers'](),_0x16c7c6=_0x19b2f7):_0x19b2f7['removeMarkers']():_0x16c7c6=_0x19b2f7;}const _0x7e9188=this['_model']['createRange'](_0x1b4863,_0x584fbd);if(_0x16c7c6)this['_setSuggestionRange'](_0x16c7c6,_0x7e9188);else{const _0x50afa4=_0x44c9df(),_0x4a6588=_0x37d5fd['id'];this['_setSuggestionData']({'id':_0x50afa4,'type':'formatInline:'+_0x1e1bca,'data':_0x10e972,'createdAt':new Date(),'authorId':_0x4a6588,'attributes':_0x451bfe}),this['_addSuggestionMarker']('formatInline:'+_0x1e1bca,_0x50afa4,_0x4a6588,_0x7e9188);}}return null;}['markBlockFormat'](_0x2c2047,_0x6538eb,_0xd24b7c=[],_0xb5babd=null,_0xadf073={}){_0x6538eb['formatGroupId']||(_0x6538eb['formatGroupId']=_0x6538eb['commandName']),_0x6538eb['multipleBlocks']=_0x2c2047['is']('range'),_0xb5babd=_0xb5babd||Pt(_0x6538eb);const _0x3f5d71=_0xd24b7c['map'](_0x147122=>Lt(_0x147122,this['_model'])),_0x263064=_0x2c2047['is']('range')?_0x2c2047:Lt(_0x2c2047,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d10c5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb5babd,'accept');return this['forceDefaultExecution'](()=>_0x3d10c5([_0x263064],_0x6538eb,_0xadf073)),null;}_0x3f5d71['push'](_0x263064);let _0x1caf11=!0x0;for(const _0x21422f of _0x3f5d71)if(!this['_rangeIsInLocalUserInsertion'](_0x21422f)){_0x1caf11=!0x1;break;}if(_0x1caf11&&'always'!==this['_trackFormatChanges']){const _0x8de2b0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb5babd,'accept');return this['forceDefaultExecution'](()=>_0x8de2b0([_0x263064],_0x6538eb,_0xadf073)),null;}let _0xbaf2c9=null,_0x435a52=_0x263064['start'],_0x19ef67=_0x263064['end'];for(const {suggestion:_0xfbb984,meta:_0x269582}of this['_findSuggestions'](_0x263064,'formatBlock')){if(!_0x269582['isOwn'])continue;if(_0x269582['isNextTo']||_0x269582['containsRangeInObject']||_0x269582['isInsideObject'])continue;if(_0xfbb984['data']['formatGroupId']!=_0x6538eb['formatGroupId'])continue;if(!qt(_0xfbb984,_0xadf073))continue;const _0x337cfa=_0xfbb984['getFirstRange']();if(_0xfbb984['subType']==_0xb5babd){if(_0x337cfa['containsRange'](_0x263064,!0x0))return null;_0x435a52=_0x435a52['isBefore'](_0x337cfa['start'])?_0x435a52:_0x337cfa['start'],_0x19ef67=_0x19ef67['isAfter'](_0x337cfa['end'])?_0x19ef67:_0x337cfa['end'],_0xbaf2c9?_0x337cfa['start']['isBefore'](_0xbaf2c9['getFirstRange']()['start'])?(_0xbaf2c9['removeMarkers'](),_0xbaf2c9=_0xfbb984):_0xfbb984['removeMarkers']():_0xbaf2c9=_0xfbb984;}else{const _0x2dbf0e=_0x263064['getIntersection'](_0x337cfa);this['_cutOutSuggestionMarker'](_0xfbb984,_0x2dbf0e);}}const _0x277e1e=this['editor']['plugins']['get']('Users')['me'],_0x56ac05=_0x44c9df(),_0x57361a=_0x277e1e['id'];if(_0xbaf2c9)return this['_setSuggestionRange'](_0xbaf2c9,this['_model']['createRange'](_0x435a52,_0x19ef67)),_0xbaf2c9;{const _0x5742b9=this['_setSuggestionData']({'id':_0x56ac05,'type':'formatBlock:'+_0xb5babd,'data':_0x6538eb,'createdAt':new Date(),'authorId':_0x57361a,'attributes':_0xadf073});return this['_addSuggestionMarker']('formatBlock:'+_0xb5babd,_0x56ac05,_0x57361a,this['_model']['createRange'](_0x435a52,_0x19ef67)),_0x5742b9;}}['markMultiRangeBlockFormat'](_0x5e1015,_0x2ec86f,_0x51b82f=[],_0x20b2e7=null,_0x4d5e08={}){_0x2ec86f['formatGroupId']||(_0x2ec86f['formatGroupId']=_0x2ec86f['commandName']);const _0x4ae004=_0x5e1015[0x0];_0x2ec86f['multipleBlocks']=_0x4ae004['is']('range'),_0x20b2e7=_0x20b2e7||Pt(_0x2ec86f);const _0x244aa1=_0x51b82f['map'](_0x4c4f94=>Lt(_0x4c4f94,this['_model'])),_0x4ff17c=_0x4ae004['is']('range')?_0x5e1015:_0x5e1015['map'](_0x44da76=>Lt(_0x44da76,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1053c6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20b2e7,'accept');return this['forceDefaultExecution'](()=>_0x1053c6(_0x4ff17c,_0x2ec86f,_0x4d5e08)),null;}_0x244aa1['push'](..._0x4ff17c);let _0x56db00=!0x0;for(const _0x450455 of _0x244aa1)if(!this['_rangeIsInLocalUserInsertion'](_0x450455)){_0x56db00=!0x1;break;}if(_0x56db00&&'always'!==this['_trackFormatChanges']){const _0x12ecee=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20b2e7,'accept');return this['forceDefaultExecution'](()=>_0x12ecee(_0x4ff17c,_0x2ec86f,_0x4d5e08)),null;}const _0x359fa5=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c5ed5 of this['getSuggestions']()){if(_0x5c5ed5['author']['id']!=_0x359fa5['id'])continue;if('formatBlock'!=_0x5c5ed5['type']||_0x5c5ed5['data']['formatGroupId']!=_0x2ec86f['formatGroupId'])continue;if(!qt(_0x5c5ed5,_0x4d5e08))continue;const _0x23d090=_0x5c5ed5['subType']==_0x20b2e7;for(let _0x421f6=0x0;_0x421f6<_0x4ff17c['length'];_0x421f6++){const _0x588071=_0x4ff17c[_0x421f6];for(const _0x1f323f of _0x5c5ed5['getMarkers']()){const _0x1c7e49=_0x1f323f['getRange']();if(_0x588071['isEqual'](_0x1c7e49)){_0x23d090?(_0x4ff17c['splice'](_0x421f6,0x1),_0x421f6--):_0x5c5ed5['removeMarker'](_0x1f323f['name']);break;}}}}if(0x0==_0x4ff17c['length'])return null;const _0x3ffb2e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20b2e7,'join');for(const _0x15cb97 of this['getSuggestions']())if(_0x15cb97['author']['id']==_0x359fa5['id']&&'formatBlock'==_0x15cb97['type']&&_0x15cb97['data']['formatGroupId']==_0x2ec86f['formatGroupId']&&_0x15cb97['subType']==_0x20b2e7&&qt(_0x15cb97,_0x4d5e08)&&(_0x3ffb2e(_0x15cb97['getRanges'](),_0x4ff17c)||_0x3ffb2e(_0x4ff17c,_0x15cb97['getRanges']()))){for(const _0x2f4297 of _0x4ff17c)_0x15cb97['addRange'](_0x2f4297);return _0x15cb97;}const _0x7aa34e=_0x44c9df(),_0xb6ab4=_0x359fa5['id'],_0x575ff='formatBlock:'+_0x20b2e7,_0x412d96=this['_setSuggestionData']({'id':_0x7aa34e,'type':_0x575ff,'data':_0x2ec86f,'createdAt':new Date(),'authorId':_0xb6ab4,'attributes':_0x4d5e08});for(const _0x3fa110 of _0x4ff17c)this['_addSuggestionMarker'](_0x575ff,_0x7aa34e,_0xb6ab4,_0x3fa110,u['getMultiRangeId']());return _0x412d96;}['markDeletion'](_0x1a73a6,_0x2d34b8=null,_0x8eb34c={}){if(_0x1a73a6['isCollapsed'])return null;const _0x303ab1=this['editor']['plugins']['get']('Users')['me'],_0x30b634=new _0x4d6067(_0x1a73a6['start'],_0x1a73a6['end']);for(const {suggestion:_0x691418,meta:_0xd7d4bc}of this['_findSuggestions'](_0x30b634,'insertion'))if(_0xd7d4bc['isOwn']&&!_0xd7d4bc['isNextTo']){if(_0x691418['isMultiRange']){const _0x3150e0=_0x691418['getRanges']()['filter'](_0x5175e7=>'$graveyard'!=_0x5175e7['root']['rootName']);_0x3150e0['every'](_0x2fb5c9=>_0x30b634['containsRange'](_0x2fb5c9,!0x0))&&_0x691418['discard']();if(_0x3150e0['some'](_0x4deb14=>_0x4deb14['containsRange'](_0x30b634,!0x0))){const _0xddfa2f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d34b8,'accept');return this['forceDefaultExecution'](()=>_0xddfa2f([_0x30b634],null,_0x8eb34c)),null;}}else{const _0x1b8b6c=_0x30b634['getIntersection'](_0x691418['getFirstRange']());null!==_0x1b8b6c&&_0x691418['_onDiscard']([_0x1b8b6c],null,_0x8eb34c);}}if(_0x30b634['detach'](),_0x30b634['isCollapsed']||'$graveyard'==_0x30b634['root']['rootName'])return null;let _0x52857b=null,_0x1ce921=_0x30b634['start'],_0xa3a036=_0x30b634['end'];const _0x4cdd2b=this['_findSuggestions'](_0x30b634,'deletion');for(const {suggestion:_0x3b80e0,meta:_0x273cec}of _0x4cdd2b){const _0x243234=this['_model']['createRange'](_0x1ce921,_0xa3a036);if(_0x273cec['isOwn']&&(this['_mergeNestedSuggestions']||!_0x273cec['containsRangeInObject']&&!_0x273cec['isInsideObject'])){if(_0x3b80e0['isMultiRange']){if(!qt(_0x3b80e0,_0x8eb34c))continue;let _0x69c9f8=!0x0;for(const _0x4e1abd of _0x3b80e0['getRanges']()){if(_0x4e1abd['containsRange'](_0x243234,!0x0))return _0x3b80e0;_0x243234['containsRange'](_0x4e1abd)||(_0x69c9f8=!0x1);}_0x69c9f8&&_0x3b80e0['discard']();}else{const _0x4d5e0c=_0x3b80e0['getFirstRange']();if(_0x4d5e0c['containsRange'](_0x243234,!0x0))return _0x3b80e0;if(!qt(_0x3b80e0,_0x8eb34c)){_0x243234['containsRange'](_0x4d5e0c)?_0x3b80e0['removeMarkers']():_0x4d5e0c['containsPosition'](_0x1ce921)?_0x1ce921=_0x4d5e0c['end']:_0x4d5e0c['containsPosition'](_0xa3a036)&&(_0xa3a036=_0x4d5e0c['start']);continue;}_0x1ce921=_0x1ce921['isBefore'](_0x4d5e0c['start'])?_0x1ce921:_0x4d5e0c['start'],_0xa3a036=_0xa3a036['isAfter'](_0x4d5e0c['end'])?_0xa3a036:_0x4d5e0c['end'],_0x8eb34c=Object['assign']({},_0x3b80e0['attributes']),_0x52857b?_0x4d5e0c['start']['isBefore'](_0x52857b['getFirstRange']()['start'])?(_0x52857b['removeMarkers'](),_0x52857b=_0x3b80e0):_0x3b80e0['removeMarkers']():_0x52857b=_0x3b80e0;}}}if(_0x52857b)return this['_setSuggestionRange'](_0x52857b,this['_model']['createRange'](_0x1ce921,_0xa3a036)),_0x52857b;{const _0x3360c0=_0x44c9df(),_0x10c0f8=this['_model']['createRange'](_0x1ce921,_0xa3a036),_0x5de130=_0x303ab1['id'],_0x2b7d56=_0x2d34b8?'deletion:'+_0x2d34b8:'deletion',_0x1d7bca=this['_setSuggestionData']({'id':_0x3360c0,'type':_0x2b7d56,'createdAt':new Date(),'authorId':_0x5de130,'attributes':_0x8eb34c});return this['_addSuggestionMarker'](_0x2b7d56,_0x3360c0,_0x5de130,_0x10c0f8),_0x1d7bca;}}['markMultiRangeDeletion'](_0xe609c2,_0x31b8f1='multi',_0x3c4616={}){const _0x2caa18=this['editor']['plugins']['get']('Users')['me'],_0x4b3cdd=_0xe609c2['map'](_0xc711ac=>new _0x4d6067(_0xc711ac['start'],_0xc711ac['end'])),_0x4726ef=new Set();for(const {suggestion:_0x273d40,meta:_0x449f8d}of this['_findSuggestions'](_0x4b3cdd,'insertion'))_0x449f8d['isOwn']&&!_0x449f8d['isNextTo']&&_0x4726ef['add'](_0x273d40);for(const _0x101898 of _0x4726ef)if(_0x101898['isMultiRange']){const _0x5e2dfb=_0x101898['getRanges']();(!_0x101898['attributes']||!_0x101898['attributes']['skipNestingCheck'])&&(_0x5e2dfb['every'](_0x451a09=>_0x4b3cdd['some'](_0x5e3a2f=>_0x5e3a2f['containsRange'](_0x451a09,!0x0)))&&_0x101898['discard']());if(_0x4b3cdd['every'](_0x461365=>_0x5e2dfb['some'](_0x45c867=>_0x45c867['containsRange'](_0x461365,!0x0)))){const _0x5efa6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31b8f1,'accept');return this['forceDefaultExecution'](()=>_0x5efa6b(_0xe609c2,null,_0x3c4616)),null;}}else{const _0x29788c=_0x101898['getFirstRange']();_0x4b3cdd['some'](_0x5ae5be=>_0x5ae5be['containsRange'](_0x29788c,!0x0))&&_0x101898['discard']();if(_0x4b3cdd['every'](_0x468d6d=>_0x29788c['containsRange'](_0x468d6d,!0x0))){const _0x4c4ee8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31b8f1,'accept');return this['forceDefaultExecution'](()=>_0x4c4ee8(_0x4b3cdd,null,_0x3c4616)),null;}}const _0x381ff6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31b8f1,'join');let _0x43df55=null;for(const _0x24d5e8 of this['getSuggestions']())if(_0x24d5e8['author']['id']==_0x2caa18['id']&&_0x24d5e8['isInContent']&&'deletion'==_0x24d5e8['type']&&_0x24d5e8['subType']==_0x31b8f1&&qt(_0x24d5e8,_0x3c4616)&&(_0x381ff6(_0x24d5e8['getRanges'](),_0x4b3cdd)||_0x381ff6(_0x4b3cdd,_0x24d5e8['getRanges']()))){if(_0x43df55){if(_0x24d5e8['commentThread']&&_0x24d5e8['commentThread']['length'])continue;for(const _0x3c5e62 of _0x24d5e8['getRanges']())_0x43df55['isIntersectingWithRange'](_0x3c5e62)||_0x43df55['addRange'](_0x3c5e62);_0x24d5e8['removeMarkers']();}else{_0x43df55=_0x24d5e8;for(const _0x361749 of _0x4b3cdd)_0x24d5e8['isIntersectingWithRange'](_0x361749)||_0x24d5e8['addRange'](_0x361749);}}if(_0x43df55)return _0x43df55;_0x4726ef['clear']();for(const {suggestion:_0x5193f9,meta:_0xd99ff0}of this['_findSuggestions'](_0x4b3cdd,'deletion'))_0xd99ff0['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd99ff0['containsRangeInObject']&&!_0xd99ff0['isInsideObject'])&&qt(_0x5193f9,_0x3c4616)&&_0x4726ef['add'](_0x5193f9);for(const _0x460e8b of _0x4726ef){const _0xc7ee2e=_0x460e8b['getRanges']();if(!_0x3c4616||!_0x3c4616['skipNestingCheck']){if(_0x4b3cdd['every'](_0x3bfde5=>_0xc7ee2e['some'](_0x5c38f8=>_0x5c38f8['containsRange'](_0x3bfde5,!0x0))))return _0x460e8b;}(!_0x460e8b['attributes']||!_0x460e8b['attributes']['skipNestingCheck'])&&(_0xc7ee2e['every'](_0x35ae21=>_0x4b3cdd['some'](_0x5cb48f=>_0x5cb48f['containsRange'](_0x35ae21,!0x0)))&&_0x460e8b['discard']());}const _0x1e4c15=_0x44c9df(),_0x40a613=_0x2caa18['id'],_0x359eab='deletion:'+_0x31b8f1,_0x5a13df=this['_setSuggestionData']({'id':_0x1e4c15,'type':_0x359eab,'createdAt':new Date(),'authorId':_0x40a613,'attributes':_0x3c4616});for(const _0x1eed10 of _0x4b3cdd)_0x1eed10['detach'](),_0x1eed10['isCollapsed']||'$graveyard'==_0x1eed10['root']['rootName']||this['_addSuggestionMarker'](_0x359eab,_0x1e4c15,_0x40a613,_0x1eed10,u['getMultiRangeId']());return _0x5a13df;}['markAttributeChange'](_0x2b5990,_0x3bfe11,_0xa937c4,_0x3ecd64,_0x26cf3c){if(_0x2b5990['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x509a03=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d951c=Array['from'](this['_suggestions']['values']())['filter'](_0x68e2a8=>'attribute'==_0x68e2a8['type']&&_0x68e2a8['data']['key']==_0x3bfe11&&_0x68e2a8['isIntersectingWithRange'](_0x2b5990));if('default'===this['_trackFormatChanges']){const _0x36693b=this['_findSuggestions'](_0x2b5990,'insertion')['filter'](({meta:_0x4f80cd})=>_0x4f80cd['isOwn']&&!_0x4f80cd['isInsideObject']&&!_0x4f80cd['isNextTo'])['map'](({suggestion:_0x44ea65})=>_0x44ea65);_0x2d951c['unshift'](..._0x36693b);}const _0x30c778=new Map([[_0x2b5990,_0xa937c4]]);for(const _0xca259 of _0x2d951c){const _0xfe8dd9='attribute'==_0xca259['type']?_0xca259['data']['oldValue']:void 0x0,_0x9c1e54=_0xca259['getFirstRange'](),_0x2dfaaf=Array['from'](_0x30c778['keys']())['find'](_0x408e85=>_0x408e85['isIntersecting'](_0x9c1e54));if(!_0x2dfaaf)continue;const _0x4a72a8=_0x2dfaaf['getDifference'](_0x9c1e54);this['_isBlockAttribute'](_0x3bfe11)&&'insertion'==_0xca259['type']&&0x0!=_0x4a72a8['length']||(_0x30c778['delete'](_0x2dfaaf),_0x4a72a8['forEach'](_0x217f3a=>{_0x30c778['set'](_0x217f3a,_0xa937c4);}),'insertion'!=_0xca259['type']&&_0xfe8dd9!=_0x3ecd64&&_0x30c778['set'](_0x2dfaaf['getIntersection'](_0x9c1e54),_0xfe8dd9));}const _0x3c787a=[];for(const [_0x13b63c,_0x257a7f]of _0x30c778){const _0x34d5a7=_0x44c9df(),_0x5b101b={'key':_0x3bfe11,'oldValue':_0x257a7f,'newValue':_0x3ecd64};_0x3bfe11['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':_0x3bfe11});const _0x26ea4a=('attribute:'+(_0x3bfe11+'|'+Pt({'newValue':_0x3ecd64})))['substring'](0x0,0x3c),_0x14b2ac=this['_setSuggestionData']({'id':_0x34d5a7,'type':_0x26ea4a,'data':_0x5b101b,'createdAt':new Date(),'authorId':_0x509a03,'attributes':_0x26cf3c});_0x3c787a['push'](_0x14b2ac),this['_addSuggestionMarker'](_0x26ea4a,_0x34d5a7,_0x509a03,_0x13b63c);}return _0x3c787a;}['enableDefaultAttributesIntegration'](_0x2338ce){this['enableCommand'](_0x2338ce,(_0x512e18,..._0x21158f)=>{this['_recordAttributeChanges'](()=>{_0x512e18(..._0x21158f);});});}['registerBlockAttribute'](_0x22a2f4){this['_blockAttributeKeys']['add'](_0x22a2f4);}['registerInlineAttribute'](_0xb59e0b){this['_inlineAttributeKeys']['add'](_0xb59e0b);}['_getAttributeKey'](_0x3c4649){return'attribute'==_0x3c4649['type']?_0x3c4649['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1a9572,_0xd1f17c){const _0x11995a=_0x1a9572['getFirstMarker']();this['_model']['change'](_0x1297b2=>{_0x1297b2['updateMarker'](_0x11995a,{'range':_0xd1f17c});});}['_addThreadToSuggestion'](_0x2f0cda){const _0x228354=_0x2f0cda['id'],_0x286117=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x228354)||this['_commentsRepository']['addCommentThread']({'channelId':_0x286117,'threadId':_0x228354,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x32bb44=this['_commentsRepository']['getCommentThread'](_0x228354);_0x32bb44['unbind']('isRemovable'),_0x32bb44['isRemovable']=!0x1,_0x2f0cda['commentThread']=_0x32bb44;}['_checkSuggestionCorrectness'](_0x5edebb,_0x55b160,_0x9c0a3e,_0x3d7953){if(_0x5edebb['type']!=_0x55b160||_0x5edebb['subType']!=_0x9c0a3e||_0x5edebb['creator']['id']!=_0x3d7953)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x50a6b3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x477f6e,_0x234ab9){const _0x2fe6ab=_0x477f6e['getFirstRange']();if(_0x234ab9['isEqual'](_0x2fe6ab))_0x477f6e['removeMarkers']();else{if(_0x2fe6ab['containsRange'](_0x234ab9)){const _0x5464cb=this['_model']['createPositionAt'](_0x234ab9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x477f6e,this['_model']['createRange'](_0x2fe6ab['start'],_0x5464cb));const _0x46ba37=_0x44c9df(),_0x157430=_0x477f6e['creator']['id'],_0x2c73d4=_0x477f6e['type']+':'+_0x477f6e['subType'];this['_setSuggestionData']({'id':_0x46ba37,'type':_0x2c73d4,'createdAt':new Date(),'authorId':_0x157430,'data':_0x477f6e['data'],'attributes':_0x477f6e['attributes']});const _0x4cffc9=this['_model']['createPositionAt'](_0x234ab9['end']['parent'],'after'),_0x12d171=this['_model']['createRange'](_0x4cffc9,_0x2fe6ab['end']);this['_addSuggestionMarker'](_0x2c73d4,_0x46ba37,_0x157430,_0x12d171);}else{if(_0x2fe6ab['containsPosition'](_0x234ab9['start'])){const _0x5c1dfa=this['_model']['createPositionAt'](_0x234ab9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x477f6e,this['_model']['createRange'](_0x2fe6ab['start'],_0x5c1dfa));}else{const _0x49ede6=this['_model']['createPositionAt'](_0x234ab9['end']['parent'],'after');this['_setSuggestionRange'](_0x477f6e,this['_model']['createRange'](_0x49ede6,_0x2fe6ab['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe885a2){for(const {suggestion:_0x5790f6,meta:_0x522807}of this['_findSuggestions'](_0xe885a2,'insertion')){if(!_0x522807['isOwn'])continue;const _0x57a432=_0x5790f6['getRanges']();for(const _0x54270c of _0x57a432)if(!_0xe885a2['getDifference'](_0x54270c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x42628a){const _0x3899d7=this['editor']['plugins']['get']('Users')['getUser'](_0x42628a);if(!_0x3899d7)throw new _0x50a6b3('track-changes-user-not-found',this);return _0x3899d7;}['_getExternalAuthor'](_0x8b647c){const _0x375c76=this['editor']['plugins']['get']('Users'),_0x2b36dc=_0x11f16b('external:'+_0x8b647c),_0x3c5da7=_0x375c76['getUser'](_0x2b36dc);return _0x3c5da7||_0x375c76['addUser']({'id':_0x2b36dc,'name':_0x8b647c});}['_createSuggestion'](_0x32fb49,_0x49a68a,_0x53abb9,_0xdc32ea,_0x493fa8){const _0x2708f2=this['_getAuthorFromId'](_0xdc32ea),_0x3797ea=this['_suggestionFactory']['buildSuggestion'](_0x32fb49,_0x49a68a,_0x53abb9,_0x2708f2,_0x493fa8,_0x11e7fb=>{this['_updateSuggestionData'](_0x53abb9,{'attributes':_0x11e7fb});const _0x3e155a=this['getSuggestion'](_0x53abb9);this['_joinWithAdjacentSuggestions'](new Set([_0x3e155a])),this['_refreshSuggestionsChain'](new Set([_0x3e155a]));});return this['listenTo'](_0x3797ea,'accept',()=>{this['_updateSuggestionData'](_0x53abb9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3797ea,'discard',()=>{this['_updateSuggestionData'](_0x53abb9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x53abb9,_0x3797ea),this['_suggestionState']['set'](_0x3797ea,'notReady'),_0x3797ea;}['_splitMarkerName'](_0x47bf80){const _0x47c6a2=_0x47bf80['split'](':');return{'group':_0x47c6a2[0x0],'type':_0x47c6a2[0x1],'subType':_0x47c6a2['length']>=0x5?_0x47c6a2[0x2]:null,'id':_0x47c6a2['length']<0x5?_0x47c6a2[0x2]:_0x47c6a2[0x3],'authorId':_0x47c6a2['length']<0x5?_0x47c6a2[0x3]:_0x47c6a2[0x4],'markerCount':0x6==_0x47c6a2['length']?_0x47c6a2[0x5]:null};}['_breakSuggestionMarker'](_0x16c55a,_0x86d5b6,_0x59c82c){const _0x104c4c=_0x16c55a['getFirstRange'](),_0x24c587=_0x104c4c['start'],_0x176bfe=_0x104c4c['end'];this['_setSuggestionRange'](_0x16c55a,this['_model']['createRange'](_0x24c587,_0x86d5b6));const _0x297b95=_0x44c9df(),_0x4501ca=_0x16c55a['creator']['id'],_0x3bec28=_0x16c55a['type']+(_0x16c55a['subType']?':'+_0x16c55a['subType']:'');this['_setSuggestionData']({'id':_0x297b95,'type':_0x3bec28,'createdAt':new Date(),'authorId':_0x4501ca,'originalSuggestionId':_0x16c55a['id'],'attributes':_0x16c55a['attributes'],'data':_0x16c55a['data']});const _0x33fda0=this['_getAttributeKey'](_0x16c55a);('formatBlock'==_0x16c55a['type']||_0x33fda0&&this['_isBlockAttribute'](_0x33fda0))&&(_0x59c82c=this['_model']['createPositionBefore'](_0x59c82c['parent'])),this['_addSuggestionMarker'](_0x3bec28,_0x297b95,_0x4501ca,this['_model']['createRange'](_0x59c82c,_0x176bfe));}['_findSuggestions'](_0x3f3342,_0x5b54b6=null){const _0x309b7e=[],_0x3412c0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3f3342)||(_0x3f3342=[_0x3f3342]);for(const _0x31a7cd of this['getSuggestions']()){if(!_0x31a7cd['isInContent'])continue;if(_0x5b54b6&&_0x31a7cd['type']!=_0x5b54b6)continue;let _0x14fccf=!0x1;for(const _0x3849a1 of _0x31a7cd['getRanges']()){for(const _0x179c56 of _0x3f3342){const _0x2cff17=_0x179c56['start']['isEqual'](_0x3849a1['end'])||_0x179c56['end']['isEqual'](_0x3849a1['start']);if(_0x2cff17||_0x179c56['getIntersection'](_0x3849a1)){const _0x183028=_0x179c56['containsRange'](_0x3849a1)&&Et(this['_model']['schema'],_0x3849a1['start'],_0x179c56),_0x21961a=_0x3849a1['containsRange'](_0x179c56)&&Et(this['_model']['schema'],_0x179c56['start'],_0x3849a1);_0x309b7e['push']({'suggestion':_0x31a7cd,'meta':{'isOwn':_0x3412c0==_0x31a7cd['author'],'isNextTo':_0x2cff17,'isInsideObject':_0x183028,'containsRangeInObject':_0x21961a}}),_0x14fccf=!0x0;break;}}if(_0x14fccf)break;}}return _0x309b7e;}['_addSuggestionMarker'](_0x21c942,_0x245bd9,_0x35ee05,_0x3856b3,_0x355621){this['_model']['change'](_0x14847b=>{let _0x2f7e76='suggestion:'+_0x21c942+':'+_0x245bd9+':'+_0x35ee05;_0x355621&&(_0x2f7e76=_0x2f7e76+':'+_0x355621),_0x14847b['addMarker'](_0x2f7e76,{'range':_0x3856b3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2a10b9){const _0x58e0b4=_0x2a10b9['previous'],_0x24a49f=_0x2a10b9['next'];_0x2a10b9['previous']=null,_0x2a10b9['next']=null,null!=_0x58e0b4&&_0x58e0b4['next']==_0x2a10b9&&(_0x58e0b4['next']=_0x24a49f),null!=_0x24a49f&&_0x24a49f['previous']==_0x2a10b9&&(_0x24a49f['previous']=_0x58e0b4),'ready'==this['_suggestionState']['get'](_0x2a10b9)&&(this['_suggestionState']['set'](_0x2a10b9,'removed'),this['fire']('suggestionUnloaded',_0x2a10b9,_0x58e0b4,_0x24a49f));}['_setSuggestionData'](_0x533949){const _0x528db5=_0x533949['id'],_0x530020=this['addSuggestionData'](_0x533949);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xf91bf3=this['editor']['plugins']['get']('PendingActions'),_0xdbfbc6=_0x530020['hasComments'],_0x218cac=_0x530020['subType']?_0x530020['type']+':'+_0x530020['subType']:_0x530020['type'],_0x4f83c0=this['editor']['locale'],_0x3307a9=_0xf91bf3['add'](o(_0x4f83c0,'PENDING_ACTION_SUGGESTION')),_0x393a73={'id':_0x528db5,'type':_0x218cac,'hasComments':_0xdbfbc6,'data':_0x533949['data']||null,'originalSuggestionId':_0x533949['originalSuggestionId']||null,'attributes':_0x530020['attributes']};this['_adapter']['addSuggestion'](_0x393a73)['then'](_0x21be2c=>{_0x530020['_saved']=!0x0,_0xf91bf3['remove'](_0x3307a9),_0x21be2c&&_0x21be2c['createdAt']&&(this['_suggestions']['get'](_0x528db5)['createdAt']=_0x21be2c['createdAt']);})['catch'](_0x2d8d01=>{throw _0x24bf61('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x530020['discard']();}),_0x530020['stopListening'](),this['_suggestions']['delete'](_0x530020['id']),this['_suggestionState']['delete'](_0x530020),_0x2d8d01;});}return _0x530020;}['_isBlockAttribute'](_0x1994e0){return this['_blockAttributeKeys']['has'](_0x1994e0);}['_updateSuggestionData'](_0x49922e,_0xef2fb5){const _0x4ea9eb=this['editor']['plugins']['get']('PendingActions'),_0x4761b3=this['getSuggestion'](_0x49922e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4761b3['_saved']){const _0x326597=_0x4ea9eb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x49922e,_0xef2fb5)['then'](()=>{_0x4ea9eb['remove'](_0x326597);});}else _0x4761b3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x49922e,_0xef2fb5);});}}['_getSuggestionData'](_0x84a1f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x50a6b3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x84a1f);}['_handleNewSuggestionMarker'](_0x5b8ef4){const {id:_0x205e26,type:_0x5469a7,subType:_0x19767f,authorId:_0x24d1d7}=this['_splitMarkerName'](_0x5b8ef4),_0x42bb90=this['_suggestions']['get'](_0x205e26)||this['_createSuggestion'](_0x5469a7,_0x19767f,_0x205e26,_0x24d1d7,{});switch(this['_checkSuggestionCorrectness'](_0x42bb90,_0x5469a7,_0x19767f,_0x24d1d7),this['_suggestionState']['get'](_0x42bb90)){case'notReady':this['_getSuggestionData'](_0x205e26)['then'](_0x314f14=>{let _0x3c4c51=Promise['resolve']();_0x314f14['hasComments']&&(_0x3c4c51=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x205e26})),_0x3c4c51['then'](()=>{this['addSuggestionData'](_0x314f14)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x42bb90,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x205e26,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x42bb90,'ready'),this['fire']('suggestionLoaded',_0x42bb90);break;case'ready':this['fire']('suggestionChanged',_0x42bb90);}return _0x42bb90['addMarkerName'](_0x5b8ef4),_0x42bb90;}['_refreshSuggestionsChain'](_0x12980f){const _0x486902=Array['from'](_0x12980f),_0x6a86dd=_0x486902['filter'](_0xe6e2af=>'attribute'==_0xe6e2af['type']);this['_refreshAttributeSuggestionsChain'](_0x6a86dd);const _0x2e3c75=_0x486902['filter'](_0x130466=>!_0x130466['isMultiRange']&&'attribute'!=_0x130466['type']),_0x5430b6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51bfbf=>!_0x51bfbf['isMultiRange']&&'attribute'!=_0x51bfbf['type']),_0x4e0a0d=_0x5430b6['filter'](_0x32053a=>!_0x12980f['has'](_0x32053a)),_0x3aaf9b=new Map(_0x5430b6['map'](_0x1498c8=>[_0x1498c8,this['_suggestionFactory']['getSuggestionCallback'](_0x1498c8['type'],_0x1498c8['subType'],'chain')])),_0x1d0df6=new Map(_0x5430b6['map'](_0x35b7e0=>[_0x35b7e0,_0x35b7e0['getFirstRange']()])),_0x534bc9=new Set(),_0x5902b5=new Set();for(let _0x441931=0x0;_0x441931<_0x2e3c75['length'];_0x441931++)_0x277bca(_0x2e3c75[_0x441931],_0x2e3c75,_0x441931+0x1);for(let _0x1e27ca=0x0;_0x1e27ca<_0x2e3c75['length'];_0x1e27ca++)_0x277bca(_0x2e3c75[_0x1e27ca],_0x4e0a0d,0x0);const _0x231788=new Set();for(let _0x45fb1a=0x0;_0x45fb1a<_0x2e3c75['length'];_0x45fb1a++){const _0x1dee54=_0x2e3c75[_0x45fb1a];!_0x5902b5['has'](_0x1dee54)&&_0x1dee54['previous']&&(_0x231788['add'](_0x1dee54['previous']),_0x1dee54['previous']['next']===_0x1dee54&&(_0x1dee54['previous']['next']=null),_0x1dee54['previous']=null),!_0x534bc9['has'](_0x1dee54)&&_0x1dee54['next']&&(_0x231788['add'](_0x1dee54['next']),_0x1dee54['next']['previous']===_0x1dee54&&(_0x1dee54['next']['previous']=null),_0x1dee54['next']=null);}function _0x277bca(_0x4c2ab8,_0xf5b270,_0xa012da){for(let _0x556b9f=_0xa012da;_0x556b9f<_0xf5b270['length'];_0x556b9f++){const _0x9419aa=_0x2e20c7(_0x4c2ab8,_0xf5b270[_0x556b9f]);_0x9419aa&&(_0x9419aa[0x0]['next']=_0x9419aa[0x1],_0x9419aa[0x1]['previous']=_0x9419aa[0x0],_0x534bc9['add'](_0x9419aa[0x0]),_0x5902b5['add'](_0x9419aa[0x1]));}}function _0x2e20c7(_0x411728,_0x4ed064){if(_0x411728['author']['id']!==_0x4ed064['author']['id'])return null;const _0x39342a=_0x3aaf9b['get'](_0x411728)(_0x411728,_0x4ed064,_0x1d0df6['get'](_0x411728),_0x1d0df6['get'](_0x4ed064));if(!_0x39342a)return null;return _0x3aaf9b['get'](_0x4ed064)(_0x411728,_0x4ed064,_0x1d0df6['get'](_0x411728),_0x1d0df6['get'](_0x4ed064))?_0x39342a[0x1]['commentThread']&&_0x39342a[0x1]['commentThread']['length']?null:_0x39342a:null;}_0x231788['size']&&this['_refreshSuggestionsChain'](_0x231788);}['_refreshAttributeSuggestionsChain'](_0x458379){if(0x0==_0x458379['length'])return;const _0x5b5ccc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f5201=>'attribute'==_0x4f5201['type']&&_0x4f5201['_isDataLoaded']),_0x47cb00=[],_0x2e9727=new Map();for(const _0x4265bf of _0x5b5ccc){const _0x2e50c6=_0x11f16b(_0x4265bf['attributes']);_0x2e9727['has'](_0x2e50c6)||(_0x2e9727['set'](_0x2e50c6,_0x47cb00['length']),_0x47cb00['push']([]));const _0x1798e8=_0x2e9727['get'](_0x2e50c6);_0x47cb00[_0x1798e8]['push'](_0x4265bf);}!(function(){_0x47cb00['sort']((_0x3766ed,_0x1aa93e)=>{const _0x3721d6=_0x3766ed[0x0]['createdAt'],_0x41b98a=_0x1aa93e[0x0]['createdAt'];return _0x3721d6==_0x41b98a?_0x3766ed[0x0]['attributes']['groupId']<_0x1aa93e[0x0]['attributes']['groupId']?-0x1:0x1:_0x3721d6<_0x41b98a?-0x1:0x1;});for(const _0x9c3bf9 of _0x47cb00)_0x9c3bf9['sort']((_0x181013,_0x1c71aa)=>_0x181013['id']<_0x1c71aa['id']?-0x1:0x1);}());for(let _0x16b1c0=0x0;_0x16b1c0<_0x47cb00['length'];_0x16b1c0++){if(0x0==_0x47cb00[_0x16b1c0]['length'])continue;const _0x3797dc=[];for(let _0x27a240=_0x16b1c0+0x1;_0x27a240<_0x47cb00['length'];_0x27a240++)0x0!=_0x47cb00[_0x27a240]['length']&&_0x2c44bd(_0x47cb00[_0x16b1c0],_0x47cb00[_0x27a240])&&_0x3797dc['push'](_0x27a240);for(const _0x2fa410 of _0x3797dc)_0x47cb00[_0x16b1c0]=_0x47cb00[_0x16b1c0]['concat'](_0x47cb00[_0x2fa410]),_0x47cb00[_0x2fa410]=[];}for(const _0x5f3db0 of _0x47cb00)for(let _0x1b6a2b=0x0;_0x1b6a2b<_0x5f3db0['length'];_0x1b6a2b++){const _0xb5590b=_0x5f3db0[_0x1b6a2b+0x1]||null;_0x5f3db0[_0x1b6a2b]['next']!==_0xb5590b&&(_0x5f3db0[_0x1b6a2b]['next']=_0xb5590b);}for(const _0x3477ea of _0x47cb00)for(let _0x54505a=0x0;_0x54505a<_0x3477ea['length'];_0x54505a++){const _0x231540=_0x3477ea[_0x54505a-0x1]||null;_0x3477ea[_0x54505a]['previous']!==_0x231540&&(_0x3477ea[_0x54505a]['previous']=_0x231540);}function _0x2c44bd(_0x2dbdd8,_0x445007){if(_0x2dbdd8[0x0]['attributes']['groupId']!==_0x445007[0x0]['attributes']['groupId']&&_0x2dbdd8[0x0]['author']!==_0x445007[0x0]['author'])return!0x1;if(!function(_0x44a510,_0x31cd5b){if(!_0x44a510['hasComments']&&!_0x31cd5b['hasComments'])return!0x0;if(_0x44a510['hasComments']&&_0x31cd5b['hasComments'])return!0x1;if(_0x44a510['hasComments']&&_0x31cd5b['createdAt']<_0x44a510['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x31cd5b['hasComments']&&_0x44a510['createdAt']<_0x31cd5b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2dbdd8[0x0],_0x445007[0x0]))return!0x1;const _0x4c2b25=Rt(_0x2dbdd8[0x0]['attributes'],'groupId'),_0x4cd381=Rt(_0x445007[0x0]['attributes'],'groupId');if(!_0x4a7dae(_0x4c2b25,_0x4cd381))return!0x1;return!!_0x2dbdd8['every'](_0xb0db0f=>_0x445007['some'](_0x2d9d95=>_0xb0db0f['getFirstRange']()['isEqual'](_0x2d9d95['getFirstRange']())))&&_0x445007['every'](_0x561499=>_0x2dbdd8['some'](_0x5f0efc=>_0x561499['getFirstRange']()['isEqual'](_0x5f0efc['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d424b){const _0x48e850=Array['from'](_0x4d424b),_0x4eb48e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x79ea95=_0x4eb48e['filter'](_0x332101=>!_0x4d424b['has'](_0x332101)),_0x46063c=new Map(_0x48e850['map'](_0x251d04=>[_0x251d04,this['_suggestionFactory']['getSuggestionCallback'](_0x251d04['type'],_0x251d04['subType'],'join')])),_0x43614c=new Map(_0x4eb48e['map'](_0x503959=>[_0x503959,_0x503959['getRanges']()]));for(let _0x969f9d=0x0;_0x969f9d<_0x48e850['length'];_0x969f9d++){if(_0xe7529f(this,_0x48e850[_0x969f9d],_0x48e850,_0x969f9d+0x1))return!0x0;}for(let _0x4614ca=0x0;_0x4614ca<_0x48e850['length'];_0x4614ca++){if(_0xe7529f(this,_0x48e850[_0x4614ca],_0x79ea95,0x0))return!0x0;}return!0x1;function _0xe7529f(_0x85cf97,_0x533181,_0x4c1c6f,_0x3e414e){for(let _0xac54b8=_0x3e414e;_0xac54b8<_0x4c1c6f['length'];_0xac54b8++){const _0x2dc9b8=_0x4c1c6f[_0xac54b8];if(_0x2dc9b8['type']!==_0x533181['type']||_0x2dc9b8['author']['id']!==_0x533181['author']['id']||_0x2dc9b8['subType']!==_0x533181['subType'])continue;if(!Jt(_0x533181,_0x2dc9b8))continue;if('attribute'==_0x533181['type']&&_0x533181['data']['oldValue']!=_0x2dc9b8['data']['oldValue'])continue;if('attribute'==_0x533181['type']&&_0x85cf97['_isBlockAttribute'](_0x533181['data']['key']))continue;if('formatBlock'==_0x533181['type']){const _0xd0022b=_0x85cf97['editor']['model'],_0x33f33c=_0x533181['getContainedElement']();if(_0x33f33c&&(_0xd0022b['schema']['isObject'](_0x33f33c)||_0xd0022b['schema']['isLimit'](_0x33f33c)))continue;}const _0x26d86d=_0x46063c['get'](_0x533181),_0x24303e=_0x43614c['get'](_0x533181),_0x3cdbd3=_0x43614c['get'](_0x2dc9b8),_0x869fbb=_0x533181['commentThread']&&_0x533181['commentThread']['length'],_0x357afa=_0x2dc9b8['commentThread']&&_0x2dc9b8['commentThread']['length'];if(!_0x869fbb&&_0x26d86d(_0x3cdbd3,_0x24303e))return _0x85cf97['_joinSuggestions'](_0x2dc9b8,_0x533181),_0x43614c['delete'](_0x533181),!0x0;if(!_0x357afa&&_0x26d86d(_0x24303e,_0x3cdbd3))return _0x85cf97['_joinSuggestions'](_0x533181,_0x2dc9b8),_0x43614c['delete'](_0x2dc9b8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x28966d,_0x2f83b7){if(_0x28966d['isMultiRange']){for(const _0x5df778 of _0x2f83b7['getRanges']())_0x28966d['addRange'](_0x5df778);}else{const _0x5efeed=_0x2f83b7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x28966d,this['_model']['createRange'](_0x28966d['getFirstRange']()['start'],_0x5efeed));}_0x2f83b7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x59c730,_0x31ce1f,_0x293804){const _0x22cf0a=_0x59c730['startsWith']('format')||_0x59c730['startsWith']('attribute')?'FORMATTING':_0x59c730['toUpperCase']();return o(this['editor']['locale'],_0x31ce1f+'_'+_0x22cf0a+'_SUGGESTION_ANNOUNCEMENT',_0x293804);}['_initAriaMarkerChangeAnnouncements'](){const _0x3e40e5=this['editor'];if(!_0x3e40e5['ui'])return;const {ariaLiveAnnouncer:_0x3f9f69}=_0x3e40e5['ui'];_0x458010(this['_model'],({left:_0x3886c1,entered:_0x11eace})=>{for(const _0x5875ac of _0x3886c1){const {group:_0x27350d,type:_0x1eaa40}=this['_splitMarkerName'](_0x5875ac['name']);if('suggestion'===_0x27350d){_0x3f9f69['announce'](this['_getMarkerAnnouncementText'](_0x1eaa40,'LEAVE'));break;}}for(const _0x4900c6 of _0x11eace){const {group:_0x420314,type:_0xe25ee2}=this['_splitMarkerName'](_0x4900c6['name']);if('suggestion'===_0x420314){_0x3f9f69['announce'](this['_getMarkerAnnouncementText'](_0xe25ee2,'ENTER',_0x2b7abb(_0x1dd87)));break;}}});}['_processAttributeChanges'](_0x537d2c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2b2272=this['editor'],_0x6a0b0b=_0x2b2272['model']['document']['differ']['getChanges']();if(0x0==_0x6a0b0b['length'])return!0x1;const _0x1aaf9c=[],_0x2e7ed2=_0x6a0b0b['filter'](_0x280706=>'attribute'==_0x280706['type']),_0x13843e=_0x6a0b0b['filter'](_0x1b5f2c=>'insert'==_0x1b5f2c['type']&&'$text'!=_0x1b5f2c['name']),_0xfe7fc4=_0x6a0b0b['filter'](_0xe7edeb=>'remove'==_0xe7edeb['type']&&'$text'!=_0xe7edeb['name']);for(const _0x341eb2 of _0x2e7ed2)_0x1aaf9c['push']({'key':_0x341eb2['attributeKey'],'newValue':_0x341eb2['attributeNewValue'],'oldValue':_0x341eb2['attributeOldValue'],'range':Ft(_0x341eb2['range'],_0x2b2272['model'])});for(const _0x5db46c of _0x13843e){const _0x1869ff=_0xfe7fc4['find'](_0x40d88e=>_0x40d88e['position']['isEqual'](_0x5db46c['position']));_0x1869ff&&_0x1aaf9c['push']({'key':m,'newValue':_0x5db46c['name'],'oldValue':_0x1869ff['name'],'range':_0x2b2272['model']['createRangeOn'](_0x5db46c['position']['nodeAfter'])});}return 0x0!=_0x1aaf9c['length']&&this['_reduceExistingSuggestions'](_0x537d2c,_0x1aaf9c);}['_processAttributeSuggestions'](_0x2b7b4c){let _0x8ad197=!0x1;const _0x115c77=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3af7ec=>_0x3af7ec['data']['newRange']&&_0x3af7ec['name']['startsWith']('suggestion:attribute:'));for(const _0x1ca6c6 of _0x115c77){const {subType:_0x1c55a0,id:_0x35e6f7}=this['_splitMarkerName'](_0x1ca6c6['name']),_0x2643fd=_0x1c55a0['split']('|')[0x0];for(const _0x53125e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x53125e['id']!=_0x35e6f7&&'attribute'==_0x53125e['type']&&_0x53125e['data']&&_0x53125e['data']['key']==_0x2643fd&&_0x53125e['getFirstRange']()['isIntersecting'](_0x1ca6c6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x53125e,_0x1ca6c6['data']['newRange'],_0x2b7b4c),_0x8ad197=!0x0);}return _0x8ad197;}['_recordAttributeChanges'](_0x1391d7){this['_recordAttributeSuggestions']=!0x0,_0x1391d7();}['_isRegisteredAttribute'](_0x15b144){const _0x468b07=this['_isBlockAttribute'](_0x15b144),_0x580d23=this['_inlineAttributeKeys']['has'](_0x15b144);return _0x468b07||_0x580d23;}['_reduceExistingSuggestions'](_0x5d62bc,_0x1181b3){if(0x0==_0x1181b3['length'])return!0x1;let _0x37a0a6=!0x1;for(const _0x5c1919 of _0x1181b3){const _0x28c069=this['_findSuggestions'](_0x5c1919['range'],'attribute')['filter'](_0x5ce7e1=>!_0x5ce7e1['meta']['isNextTo'])['map'](_0x5cf962=>_0x5cf962['suggestion']),_0x526f9b=_0x11f16b({'newValue':_0x5c1919['newValue']});_0x28c069['filter'](_0x3d8bf4=>{const [_0x34bbdd,_0x4cad65]=_0x3d8bf4['subType']['split']('|');return _0x34bbdd==_0x5c1919['key']&&_0x4cad65!=_0x526f9b;})['forEach'](_0x22cd89=>{this['_reduceSuggestionAttributeRange'](_0x22cd89,_0x5c1919['range'],_0x5d62bc),_0x37a0a6=!0x0;});}return _0x37a0a6;}['_reduceSuggestionAttributeRange'](_0x19af8a,_0x3b1d21,_0x4e3b46){const _0x522166=_0x19af8a['getFirstRange']()['getDifference'](_0x3b1d21);0x0!==_0x522166['length']?0x1!==_0x522166['length']?this['_breakSuggestionMarker'](_0x19af8a,_0x3b1d21['start'],_0x3b1d21['end']):this['_setSuggestionRange'](_0x19af8a,_0x522166[0x0]):_0x4e3b46['removeMarker'](_0x19af8a['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x46324b){this['_editor']=_0x46324b,this['_model']=_0x46324b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4ab166,_0x3354e2,_0x57a550,_0x5b6bf3,_0x41d085,_0x25ee1a){return new u(this['_model'],{'type':_0x4ab166,'subType':_0x3354e2,'id':_0x57a550,'author':_0x5b6bf3,'creator':_0x5b6bf3,'attributes':_0x41d085,'onAttributesChange':_0x25ee1a,'onAccept':(..._0x57fedd)=>this['getSuggestionCallback'](_0x4ab166,_0x3354e2,'accept')(..._0x57fedd),'onDiscard':(..._0x5441ec)=>this['getSuggestionCallback'](_0x4ab166,_0x3354e2,'discard')(..._0x5441ec)});}['registerCustomCallback'](_0xa1144e,_0x329134,_0x579fd3,_0x296fdb){const _0x2c02ed=_0xa1144e+':'+_0x329134+':'+_0x579fd3;this['_customCallbacks']['set'](_0x2c02ed,_0x296fdb);}['getSuggestionCallback'](_0x31ffa9,_0x2facf0,_0x5b989f){const _0x5b67dd=_0x31ffa9+':'+_0x2facf0+':'+_0x5b989f;return this['_customCallbacks']['get'](_0x5b67dd)||this['_defaultCallbacks']['get'](_0x31ffa9+':'+_0x5b989f);}['_registerDefaultCallbacks'](){const _0x3e9521=()=>!0x1,_0x15127c=_0x443ddc=>{_0x443ddc['sort']((_0x1b7a0c,_0x24541e)=>_0x1b7a0c['start']['isBefore'](_0x24541e['start'])?0x1:-0x1),this['_model']['change'](_0x8f5762=>{for(const _0x1963b4 of _0x443ddc){let _0x673ddd;_0x673ddd=_0x1963b4['end']['isAtEnd']&&_0x1963b4['end']['parent']==_0x1963b4['start']['nodeAfter']?_0x8f5762['createSelection'](_0x1963b4['start']['nodeAfter'],'on'):_0x8f5762['createSelection'](_0x1963b4),this['_model']['deleteContent'](_0x673ddd,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x15c97c=(_0x125a1e,_0x4da40d)=>{_0x4da40d&&this['_model']['change'](_0x23275c=>{const {commandName:_0x3c7208,commandParams:_0x237e5a=[]}=_0x4da40d,_0x3cf9ae=_0x125a1e['map'](_0x3ca813=>(Vt(_0x3ca813)&&(_0x3ca813=this['_model']['createRange'](_0x3ca813['end'])),_0x3ca813))['filter'](_0x49e1b2=>'$graveyard'!==_0x49e1b2['root']['rootName']);if(_0x3cf9ae['length']<0x1)return;const _0x2ec6dc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x185c30=>_0x4d6067['fromRange'](_0x185c30));_0x23275c['setSelection'](_0x3cf9ae);for(const _0x2b41b8 of this['_editor']['commands']['commands']())_0x2b41b8['refresh']();_0x237e5a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3c7208,..._0x237e5a);const _0x14b282=_0x2ec6dc['filter'](_0x4d826f=>'$graveyard'!=_0x4d826f['root']['rootName']);_0x14b282['length']>0x0&&_0x23275c['setSelection'](_0x14b282);for(const _0x4a7c59 of _0x2ec6dc)_0x4a7c59['detach']();});},_0x44efa3=(_0xe94494,_0x358525)=>0x1==_0xe94494['length']&&0x1==_0x358525['length']&&_0xe94494[0x0]['end']['isEqual'](_0x358525[0x0]['start']),_0x120853=(_0xce2873,_0xde89d7,_0x36cf9c,_0x51509b)=>Ht(_0xce2873,_0xde89d7,_0x36cf9c,_0x51509b,this['_model'])?[_0xce2873,_0xde89d7]:Ht(_0xde89d7,_0xce2873,_0x51509b,_0x36cf9c,this['_model'])?[_0xde89d7,_0xce2873]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3e9521),this['_defaultCallbacks']['set']('insertion:discard',_0x15127c),this['_defaultCallbacks']['set']('insertion:join',_0x44efa3),this['_defaultCallbacks']['set']('insertion:chain',_0x120853),this['_defaultCallbacks']['set']('deletion:accept',_0x15127c),this['_defaultCallbacks']['set']('deletion:discard',_0x3e9521),this['_defaultCallbacks']['set']('deletion:join',_0x44efa3),this['_defaultCallbacks']['set']('deletion:chain',_0x120853),this['_defaultCallbacks']['set']('formatInline:accept',_0x15c97c),this['_defaultCallbacks']['set']('formatInline:discard',_0x3e9521),this['_defaultCallbacks']['set']('formatInline:join',_0x44efa3),this['_defaultCallbacks']['set']('formatInline:chain',_0x3e9521),this['_defaultCallbacks']['set']('formatBlock:accept',_0x15c97c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3e9521),this['_defaultCallbacks']['set']('formatBlock:join',_0x44efa3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3e9521),this['_defaultCallbacks']['set']('attribute:accept',_0x3e9521),this['_defaultCallbacks']['set']('attribute:discard',(_0xacef9d,_0x573d61)=>{if(!_0x573d61)return;const _0x59beee=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x490a18=>{if(_0x573d61['key']==m)for(const _0x3337be of _0xacef9d){const _0x511e7e=_0x3337be['start']['nodeAfter'],_0x392254=_0x573d61['oldValue'];_0x490a18['rename'](_0x511e7e,_0x392254);}else{if(_0x59beee['_isBlockAttribute'](_0x573d61['key'])){for(const _0x2b7b9d of _0xacef9d)void 0x0!==_0x573d61['oldValue']?_0x490a18['setAttribute'](_0x573d61['key'],_0x573d61['oldValue'],_0x2b7b9d['start']['nodeAfter']):_0x490a18['removeAttribute'](_0x573d61['key'],_0x2b7b9d['start']['nodeAfter']);}else{for(const _0x27d222 of _0xacef9d)_0x573d61['oldValue']?_0x490a18['setAttribute'](_0x573d61['key'],_0x573d61['oldValue'],_0x27d222):_0x490a18['removeAttribute'](_0x573d61['key'],_0x27d222);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x44efa3);}}function Et(_0x47ed22,_0x259e67,_0x57b67b){for(const _0x59804f of _0x259e67['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59804f['root']==_0x59804f)return!0x1;if(!_0x57b67b['containsItem'](_0x59804f))return!0x1;if(_0x47ed22['isObject'](_0x59804f)||_0x47ed22['isLimit'](_0x59804f))return!0x0;}return!0x1;}function Vt(_0x4406e6){return _0x4406e6['end']['parent']==_0x4406e6['start']['nodeAfter']&&_0x4406e6['end']['isAtStart'];}function Ut(_0x65410d,_0xf8c739,_0x36b11f,_0x24d001){const _0x1445bc=_0x59ea17=>!_0x59ea17['item']['is']('$textProxy')&&!_0x24d001['isObject'](_0x59ea17['item']),_0x176181=_0x65410d['start']['getLastMatchingPosition'](_0x1445bc),_0x4da07a=_0x65410d['end']['getLastMatchingPosition'](_0x1445bc,{'direction':'backward'});return(!_0x65410d['start']['isEqual'](_0x176181)||!_0x65410d['end']['isEqual'](_0x4da07a))&&(_0x176181['isBefore'](_0x4da07a)?_0x36b11f['updateMarker'](_0xf8c739,{'range':_0x36b11f['createRange'](_0x176181,_0x4da07a)}):_0x36b11f['removeMarker'](_0xf8c739),!0x0);}function Pt(_0x438025){return _0x11f16b(_0x438025);}function Gt(_0x5ce23a){const _0x49e8b9=_0x5ce23a['start']['nodeAfter'];return _0x49e8b9&&_0x49e8b9['is']('element');}function Ft(_0x21f543,_0xd6cf00){return null==_0x21f543['end']['nodeBefore']&&_0x21f543['end']['parent']==_0x21f543['start']['nodeAfter']?Lt(_0x21f543['start']['nodeAfter'],_0xd6cf00):_0x21f543;}function Lt(_0x5b0bbb,_0x1f268a){const _0x2dcf79=_0x1f268a['schema']['isObject'](_0x5b0bbb)||_0x1f268a['schema']['isSelectable'](_0x5b0bbb);return _0x1f268a['createRange'](_0x1f268a['createPositionAt'](_0x5b0bbb,'before'),_0x2dcf79?_0x1f268a['createPositionAfter'](_0x5b0bbb):_0x1f268a['createPositionAt'](_0x5b0bbb,'end'));}function Ht(_0x1f443e,_0x17ed8e,_0xa51b6c,_0x1d0ab6,_0x42303b){if(_0x1f443e['next'])return!0x1;if(!Jt(_0x1f443e,_0x17ed8e))return!0x1;if(_0xa51b6c['end']['isEqual'](_0x1d0ab6['start']))return!0x0;if(_0x1f443e['type']!=_0x17ed8e['type'])return!0x1;if(!_0xa51b6c['end']['isTouching'](_0x1d0ab6['start']))return!0x1;const _0x4366b1=_0x42303b['createRange'](_0xa51b6c['end'],_0x1d0ab6['start'])['getWalker']();for(const _0x12511f of _0x4366b1)if(['elementStart','elementEnd']['includes'](_0x12511f['type'])&&_0x42303b['schema']['isLimit'](_0x12511f['item']))return!0x1;return!0x0;}function Jt(_0x505717,_0x4b57a7){if(!_0x505717['_isDataLoaded']||!_0x4b57a7['_isDataLoaded'])return!0x1;const _0x4d0d28=new Set(Object['keys'](_0x505717['attributes'])),_0x1a579e=new Set(Object['keys'](_0x4b57a7['attributes']));if(_0x4d0d28['delete']('groupId'),_0x1a579e['delete']('groupId'),0x0==_0x4d0d28['size']&&0x0==_0x1a579e['size'])return!0x0;if(_0x4d0d28['size']!=_0x1a579e['size'])return!0x1;const _0x40a9b7={..._0x505717['attributes']},_0x4e6930={..._0x4b57a7['attributes']};return delete _0x40a9b7['groupId'],delete _0x4e6930['groupId'],JSON['stringify'](_0x40a9b7)==JSON['stringify'](_0x4e6930);}function qt(_0x4260ec,_0x451295){const _0x296a4f=zt(_0x4260ec['attributes']),_0x10f625=zt(_0x451295);if(!_0x4260ec['_isDataLoaded'])return!0x1;for(const _0x3f087a of Object['keys'](_0x10f625))if(!_0x4a7dae(_0x296a4f[_0x3f087a],_0x10f625[_0x3f087a]))return!0x1;return!0x0;}function zt(_0x462693){const _0x3b79e3=Object['assign']({},_0x462693);return delete _0x3b79e3['skipNestingCheck'],delete _0x3b79e3['tablePasteChainId'],_0x3b79e3;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x32a2fb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x154ea9,_0x2da807,_0xc6254d,_0x4c9a56){super(),this['model']=_0x2da807,this['view']=_0xc6254d,this['commentThreadController']=_0x4c9a56,this['_editor']=_0x154ea9,this['_acceptCommand']=_0x154ea9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x154ea9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1872f6,_0x447f57)=>_0x1872f6||_0x447f57),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1d8636=>_0x1d8636&&this['_editor']['model']['canEditAt'](_0x2da807['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x353eda=>_0x353eda&&this['_editor']['model']['canEditAt'](_0x2da807['getRanges']())),this['_pendingAction']=null,_0xc6254d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xc6254d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xc6254d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xc6254d,'change:isDirty',()=>{_0xc6254d['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 _0x216e23=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x216e23);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x533ec6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x40bed0,_0x120c45,_0x23236b,_0x39a05e){super(_0x40bed0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2fdbdb(_0x40bed0,o(_0x40bed0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x120c45['authoredAt']),this['bind']('authoredAt')['to'](_0x120c45),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',_0x120c45,'authoredAt',this,'descriptionParts',(_0x1c0e5b,_0x189719,_0x50eae6)=>{const _0x8bdca9=_0x50eae6['map'](_0x5661f8=>ls(_0x5661f8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1c0e5b-0x1,_0x120c45['author']['name'],_0x189719?_0x39a05e['formatDateTime'](_0x189719):'',new DOMParser()['parseFromString'](_0x8bdca9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3c4029(),this['focusTracker']=new _0x34e3bb(),this['keystrokes']=new _0x83a12f(),this['focusCycler']=new _0x263ff5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c2b98=>_0x3c2b98['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x120c45,this['_localUser']=_0x23236b,this['_config']=_0x39a05e,_0x39a05e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5d1c33(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xefdb19}=this['_config'];this['commentsListView']=new _0xefdb19(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',_0x355cc3=>_0x355cc3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x304d20,_0x3098b5)=>_0x304d20||!!_0x3098b5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xc5d6db}=this['_config'],_0x2b0c14=new _0xc5d6db(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x314303=_0x2b0c14['commentInputView'];return _0x2b0c14['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x314303,'value',(_0x35eeb0,_0x84cbf1,_0x5e041c)=>!!_0x5e041c||_0x35eeb0&&!_0x84cbf1),_0x314303['on']('submit',(_0x5714d9,_0x46542d)=>{this['fire']('addComment',_0x46542d),_0x314303['editor']['setData']('');}),_0x314303['on']('cancel',()=>this['focus']()),_0x314303['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2b0c14;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x98c5be,_0x48b193,_0x8bf33a,_0x4f7312){super(_0x98c5be,_0x48b193,_0x8bf33a,_0x4f7312),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x160dda=>_0x160dda&&_0x160dda[0x0]?_0x160dda[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x10e390,_0x19c73c)=>{let _0x46e892='';for(const _0x409f81 of _0x10e390)_0x46e892+='<p>'+ls(_0x409f81['content'],_0x409f81['color'])+'</p>';return _0x19c73c?_0x46e892:_0x84f398(_0x46e892,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4f7312['SuggestionView'](_0x98c5be,_0x48b193,{'formatDateTime':_0x4f7312['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 _0x4534c8=this['bindTemplate'],_0x1d9a09=[this['suggestionView']];return this['commentsListView']&&_0x1d9a09['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1d9a09['push'](this['commentThreadInputView']),_0x1d9a09['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4534c8['if']('isActive','ck-suggestion-wrapper--active'),_0x4534c8['to']('type',_0x27d84b=>'ck-suggestion-'+_0x27d84b),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':_0x4534c8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1d9a09};}['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 _0x533ec6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4bcab6,_0x663f7f,_0x241239){super(_0x4bcab6),this['_model']=_0x663f7f,this['_config']=_0x241239,this['set']('description',''),this['bind']('authoredAt')['to'](_0x663f7f),this['acceptButton']=this['_createButton'](o(_0x4bcab6,'Accept\x20suggestion'),_0x40c46c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4bcab6,'Discard\x20suggestion'),_0x40c46c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4c20db(_0x4bcab6,_0x663f7f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3c4029([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x34e3bb(),this['keystrokes']=new _0x83a12f(),this['focusCycler']=new _0x263ff5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2619ba=>_0x2619ba['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4c5377=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4c5377['innerHTML']=this['description'],this['on']('change:description',(_0x482128,_0x1b4dac,_0x420d30)=>{_0x4c5377['innerHTML']=_0x420d30;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x20dbcb=this['bindTemplate'],_0x269965=[{'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':_0x20dbcb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x20dbcb['to']('authoredAt',_0x6aad8c=>this['_config']['formatDateTime'](_0x6aad8c))}]}]},{'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']&&_0x269965['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':_0x269965}]};}['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'](_0x354950,_0x226437,_0x57a237,_0x2fdd72,_0x59b8b1){const _0x27d0ed=new _0x154232(this['locale']);return _0x27d0ed['set']({'label':_0x354950,'icon':_0x226437,'tooltip':!0x0,'tooltipPosition':_0x59b8b1}),_0x27d0ed['extendTemplate']({'attributes':{'class':_0x57a237}}),_0x27d0ed['on']('execute',()=>{this['fire'](_0x2fdd72,this['_model']['id']);}),_0x27d0ed;}['_setupKeyboardNavigation'](){const _0x3f0321=this['element'];this['keystrokes']['listenTo'](_0x3f0321);for(const _0x292fca of this['focusables'])this['focusTracker']['add'](_0x292fca['element']),this['keystrokes']['listenTo'](_0x292fca['element']);this['keystrokes']['set']('enter',(_0x4db251,_0x39bb82)=>{_0x3f0321===_0x4db251['target']&&(this['focusCycler']['focusFirst'](),_0x39bb82());}),this['keystrokes']['set']('esc',(_0x3c415a,_0xa5fb5c)=>{_0x3f0321!==_0x3c415a['target']&&(this['focus'](),_0xa5fb5c());});}}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 _0xbd4bc4{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x890f8f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x446472){super(_0x446472),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40ba84=this['editor']['config'];_0x40ba84['define']('trackChanges.SuggestionThreadView',re),_0x40ba84['define']('trackChanges.SuggestionView',ce),_0x40ba84['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40ba84['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x41b54a,_0x3bf2f2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x907d73,_0x18fd5c]of this['_handleControllerBuffer']){const _0x403371=this['_suggestionToController']['has'](_0x907d73);_0x403371||_0x18fd5c?_0x403371&&_0x18fd5c&&this['_destroyController'](_0x907d73):this['_initializeController'](_0x907d73);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x41b54a,_0x3bf2f2);}['init'](){const _0x4971ea=this['editor'],_0x534af6=_0x4971ea['plugins']['get']('TrackChangesEditing'),_0x51ebb1=_0x4971ea['plugins']['get']('Annotations'),_0x289910=_0x4971ea['plugins']['get']('EditorAnnotations'),_0x136fd9=_0x4971ea['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x289910['addSourceCollector'](()=>{const _0x1995ee=[];for(const [_0x44a2fd,_0x2c7bdb]of Array['from'](this['_suggestionToController'])){const _0x127073=_0x44a2fd['getAllAdjacentSuggestions'](),_0x4e621e=[];for(const _0x42c223 of _0x127073){if(!_0x42c223['isInContent'])continue;if(_0x42c223['isMultiRange']){_0x4e621e['push'](..._0x42c223['getRanges']());continue;}const _0x3585a4=_0x42c223['getFirstRange']();if(_0x4e621e['length']>0x0){const _0x3bbd17=_0x4e621e[0x0]['getJoined'](_0x3585a4);if(_0x3bbd17){_0x4e621e[0x0]=_0x3bbd17;continue;}}_0x4e621e['push'](_0x3585a4);}_0x1995ee['push']([_0x2c7bdb['view'],_0x4e621e]);}return _0x1995ee;}),this['listenTo'](_0x534af6,'suggestionLoaded',(_0x59a564,_0x44f97c)=>{this['listenTo'](_0x44f97c,'change:previous',(_0x47f76c,_0x5023b5,_0x353484,_0x5c94ee)=>{_0x44f97c['isInContent']&&(null==_0x353484?(this['_updateController'](_0x5c94ee['head']),this['_handleSuggestionControllerDelayed'](_0x44f97c,!0x1)):(this['_updateController'](_0x353484['head']),null==_0x5c94ee&&this['_handleSuggestionControllerDelayed'](_0x44f97c,!0x0)));}),null!==_0x44f97c['previous']?this['_updateController'](_0x44f97c['head']):this['_handleSuggestionControllerDelayed'](_0x44f97c,!0x1);}),this['listenTo'](_0x534af6,'suggestionUnloaded',(_0x1bc840,_0x294b60,_0x2116ff)=>{this['stopListening'](_0x294b60,'change:previous'),this['_handleControllerBuffer']['delete'](_0x294b60),this['_suggestionToController']['has'](_0x294b60)&&this['_destroyController'](_0x294b60),_0x2116ff&&this['_updateController'](_0x2116ff['head']);}),this['listenTo'](_0x534af6,'suggestionChanged',(_0x395531,_0x3da6d9)=>{this['_updateController'](_0x3da6d9);}),this['listenTo'](_0x51ebb1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x136fd9,'addComment',(_0x20a1c9,{threadId:_0x155fd1,isFromAdapter:_0x349956})=>{if(_0x349956||!_0x534af6['hasSuggestion'](_0x155fd1))return;const _0x829fa9=_0x534af6['getSuggestion'](_0x155fd1);this['_suggestionToController']['get'](_0x829fa9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x24d177=this['editor']['plugins']['get']('Annotations'),_0x232e44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106cd0=Array['from'](_0x24d177['activeAnnotations'],_0x48e7e2=>_0x48e7e2['innerView'])['filter'](_0x4b85f7=>this['_viewToController']['has'](_0x4b85f7)),_0x1d6127=[];for(const _0x358f9b of _0x106cd0){const _0x3f2a72=this['_viewToController']['get'](_0x358f9b)['model']['getAllAdjacentSuggestions']();_0x1d6127['push'](..._0x3f2a72['reduce']((_0x17fbd2,_0x295fb3)=>[..._0x17fbd2,..._0x295fb3['getMarkerNames']()],[]));}_0x232e44['activeMarkers']=_0x1d6127;}['_addUIComponentsToFactory'](){const _0x589160=this['editor'],_0x138214=_0x589160['locale'],_0x5449ce=o(_0x138214,'Track\x20changes'),_0x511dd2=new Wt([{'type':'switchbutton','model':new _0x4725ce({'withText':!0x0,'isToggleable':!0x0,'label':_0x5449ce,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4725ce({'withText':!0x0,'label':o(_0x138214,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4725ce({'withText':!0x0,'label':o(_0x138214,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4725ce({'withText':!0x0,'label':o(_0x138214,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4725ce({'withText':!0x0,'label':o(_0x138214,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3681c6 of _0x511dd2)if(me(_0x3681c6)){const _0x2243a1=_0x589160['commands']['get'](_0x3681c6['model']['commandName']);_0x3681c6['model']['bind']('isOn','isEnabled')['to'](_0x2243a1,'value','isEnabled');}_0x589160['ui']['componentFactory']['add']('trackChanges',_0x527f2c=>this['_createToolbarButton'](_0x527f2c,_0x511dd2,_0x5449ce)),_0x589160['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3decfc=>this['_createMenuBarMenu'](_0x3decfc,_0x511dd2,_0x5449ce));}['_createToolbarButton'](_0x197e93,_0x12120f,_0x32b702){const _0x1c3fb9=Qt(_0x197e93,_0x591713),_0x36bcc2=this['editor']['commands']['get']('trackChanges');_0x1c3fb9['buttonView']['set']({'tooltip':_0x32b702,'label':_0x32b702,'icon':he}),_0x1c3fb9['buttonView']['bind']('isOn')['to'](_0x36bcc2,'value'),_0x1c3fb9['buttonView']['on']('execute',()=>{_0x36bcc2['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1c3fb9,_0x12120f,{'role':'menu'});const _0x4554d6=[];for(const _0x1f1621 of _0x12120f)me(_0x1f1621)&&_0x4554d6['push'](this['editor']['commands']['get'](_0x1f1621['model']['commandName']));const _0x496c7e=_0x1c3fb9['buttonView'];return _0x496c7e['actionView']['unbind']('isEnabled'),_0x496c7e['arrowView']['unbind']('isEnabled'),_0x496c7e['actionView']['bind']('isEnabled')['to'](_0x36bcc2,'isEnabled'),_0x496c7e['arrowView']['bind']('isEnabled')['toMany'](_0x4554d6,'isEnabled',(..._0xb74119)=>_0xb74119['some'](_0x114b15=>_0x114b15)),_0x1c3fb9['on']('execute',_0x14d644=>{this['editor']['execute'](_0x14d644['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1c3fb9;}['_createMenuBarMenu'](_0x1a6365,_0x1e17b2,_0x32ddf0){const _0x39e69f=new Yt(_0x1a6365),_0x1310d2=this['editor']['commands']['get']('trackChanges');_0x39e69f['buttonView']['set']({'label':_0x32ddf0,'icon':he});const _0x1f4ac7=new Zt(_0x1a6365);for(const _0x4160cc of _0x1e17b2){if('separator'==_0x4160cc['type']){_0x1f4ac7['items']['add'](new Xt(_0x1a6365));continue;}const _0x14df7e=new te(_0x1a6365,_0x39e69f),_0x48d3b5=new _0x40b566(_0x1a6365),_0x334584=_0x4160cc['model'];_0x48d3b5['bind'](...Object['keys'](_0x334584))['to'](_0x334584),_0x48d3b5['delegate']('execute')['to'](_0x39e69f),_0x48d3b5['on']('execute',()=>{this['editor']['execute'](_0x334584['commandName']),this['editor']['editing']['view']['focus']();}),_0x14df7e['children']['add'](_0x48d3b5),_0x1f4ac7['items']['add'](_0x14df7e);}return _0x39e69f['bind']('isEnabled')['to'](_0x1310d2,'isEnabled'),_0x39e69f['panelView']['children']['add'](_0x1f4ac7),_0x39e69f;}['_initializeController'](_0x48eb18){const _0x27cdf9=this['editor'],_0x444267=_0x27cdf9['config'],_0x3aedb4=_0x27cdf9['plugins']['get']('Annotations'),_0x245909=_0x27cdf9['plugins']['get']('CommentsRepository'),_0x1f0ed6=_0x27cdf9['plugins']['get']('EditorAnnotations'),_0x4348fd=_0x27cdf9['plugins']['get'](_0x890f8f)['me'],_0x48f0b3=_0x444267['get']('trackChanges')['SuggestionThreadView'],_0x2997bd=_0x444267['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x519b58,CommentThreadInputView:_0x44cff0}=_0x27cdf9['plugins']['get']('CommentsUI');let _0x4a85f7,_0x464fd9,_0x30297d;this['_annotationViews']['has'](_0x48eb18['id'])?(_0x464fd9=this['_annotationViews']['get'](_0x48eb18['id']),_0x4a85f7=_0x464fd9['mainView']):(_0x4a85f7=new _0x48f0b3(_0x27cdf9['locale'],_0x48eb18,_0x4348fd,{'disableComments':this['_disableComments'],'editorConfig':_0x444267['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x444267['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x444267['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x444267['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x79ac35(_0x444267['get']('locale')),'CommentView':_0x444267['get']('comments')['CommentView'],'CommentsListView':_0x519b58,'CommentThreadInputView':_0x44cff0,'SuggestionView':_0x2997bd}),_0x4a85f7['suggestionView']['acceptButton']['on']('execute',()=>{_0x27cdf9['editing']['view']['focus']();}),_0x4a85f7['suggestionView']['discardButton']['on']('execute',()=>{_0x27cdf9['editing']['view']['focus']();}),_0x464fd9=_0x3aedb4['createAnnotationView'](this['editor']['locale'],_0x4a85f7),_0x464fd9['bind']('isDirty')['to'](_0x4a85f7,'isDirty'),_0x464fd9['bind']('length')['to'](_0x4a85f7),_0x464fd9['bind']('type')['to'](_0x4a85f7,'type',_0x589bd4=>'suggestion-'+_0x589bd4),_0x4a85f7['on']('escape',()=>{_0x30297d['fire']('escape');}),this['_annotationViews']['set'](_0x48eb18['id'],_0x464fd9));const _0x569c7d=_0x245909['createCommentThreadController'](_0x48eb18['commentThread'],_0x4a85f7),_0x4ff5c8=new ae(_0x27cdf9,_0x48eb18,_0x4a85f7,_0x569c7d),_0x4d44cf=_0x48eb18['getAllAdjacentSuggestions']()['filter'](_0x42afc1=>_0x42afc1['isInContent']);_0x4a85f7['descriptionParts']=_0x27cdf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4d44cf),this['_suggestionToController']['set'](_0x48eb18,_0x4ff5c8),this['_viewToController']['set'](_0x4a85f7,_0x4ff5c8),_0x30297d=_0x3aedb4['createAnnotation']({'view':_0x464fd9,'target':()=>{const _0x33f353=[],_0x38447e=_0x48eb18['getAllAdjacentSuggestions']()['filter'](_0x5526cd=>_0x5526cd['isInContent']);for(const _0x16ec7d of _0x38447e)_0x33f353['push'](..._0x16ec7d['getMarkers']());return _0x567fd8(_0x27cdf9['editing'],_0x33f353);},'type':()=>'suggestion-'+_0x4ff5c8['view']['type']}),_0x245909['_bindAnnotationToEditors'](_0x4a85f7,_0x30297d),_0x3aedb4['add'](_0x30297d),_0x1f0ed6['registerAnnotation'](_0x30297d);}['_destroyController'](_0x1d49c6){const _0x417ab5=this['editor']['plugins']['get']('CommentsRepository'),_0x1ab98c=this['editor']['plugins']['get']('Annotations'),_0x281b00=this['_suggestionToController']['get'](_0x1d49c6),_0xf99efb=_0x281b00['view'],_0x1888a7=_0x1ab98c['getByInnerView'](_0xf99efb);_0x417ab5['_unbindEditors'](_0xf99efb),_0x1888a7&&_0x1ab98c['remove'](_0x1888a7),this['_suggestionToController']['delete'](_0x1d49c6),this['_viewToController']['delete'](_0xf99efb),_0x281b00['destroy']();}['_updateController'](_0x2cbf83){if(!_0x2cbf83['isInContent']||!this['_suggestionToController']['has'](_0x2cbf83))return;const _0x3ed42f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a2f33=this['_suggestionToController']['get'](_0x2cbf83),_0x1e5a7a=_0x2cbf83['getAllAdjacentSuggestions']();_0x5a2f33['view']['descriptionParts']=_0x3ed42f['descriptionFactory']['getDescriptions'](_0x1e5a7a);}['destroy'](){for(const _0x3f6bb0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3f6bb0);for(const _0x3c2037 of this['_annotationViews']['values']())_0x3c2037['mainView']['destroy']();super['destroy']();}}function me(_0xbf8770){return'model'in _0xbf8770;}class k extends _0xbd4bc4{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x471a76){this['editor']['plugins']['get'](p)['adapter']=_0x471a76;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d3fdc){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d3fdc);}['getSuggestions']({skipNotAttached:_0xa474d5=!0x1,toJSON:_0x353e2b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xa474d5,'toJSON':_0x353e2b});}['getSuggestion'](_0x267cfa){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x267cfa);}}const w=['Pagination'];class T extends _0xbd4bc4{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x162106=this['editor'];if(_0x162106['config']['define']('trackChangesData.editorCreator',_0x5be0a3=>{const _0x115323=_0x162106['model']['document']['getRootNames']()['reduce']((_0x3bf902,_0x86944c)=>(_0x3bf902[_0x86944c]='',_0x3bf902),{});return _0x162106['constructor']['create'](_0x115323,_0x5be0a3);}),'function'!=typeof _0x162106['config']['get']('trackChangesData')['editorCreator'])throw new _0x50a6b3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5599b9){return N(this['editor'],!0x0,_0x5599b9);}['getDataWithDiscardedSuggestions'](_0x4ac5b0){return N(this['editor'],!0x1,_0x4ac5b0);}}class D extends _0xbd4bc4{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x477bad){super(_0x477bad),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(_0x24c5d9){return void 0x0!==_0x24c5d9['getRootsAttributes'];}async function N(_0x2a77b3,_0x115829,_0x2b6d2e){const _0x232559=_0x58f336(_0x2a77b3,w);_0x232559['plugins']['push'](p,D),_0x232559['rootsAttributes']=v(_0x2a77b3)?_0x2a77b3['getRootsAttributes']():void 0x0;const _0x184d35=document['createDocumentFragment'](),_0x2802dd=_0x2a77b3['config']['get']('trackChangesData')['editorCreator'],_0x422caf=await _0x2802dd(_0x232559,()=>function(_0x583509){const _0x365bef=document['createElement']('div');return _0x583509['appendChild'](_0x365bef),_0x365bef;}(_0x184d35));!function(_0x19398f,_0x15998c){const _0x58947c=_0x19398f['model']['document']['getRootNames']()['reduce']((_0x37eace,_0x182c94)=>(_0x37eace[_0x182c94]=_0x19398f['data']['get']({'rootName':_0x182c94}),_0x37eace),{}),_0x522b15=_0x19398f['plugins']['get']('Users')['users']['map'](_0x27de3c=>({'id':_0x27de3c['id'],'name':_0x27de3c['name']})),_0x5c3845=_0x19398f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x991f3e=_0x19398f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf29443=_0x15998c['plugins']['get']('Users'),_0x17dc49=_0x15998c['plugins']['get']('TrackChangesEditing'),_0x3dc1eb=_0x15998c['plugins']['get']('CommentsRepository');for(const _0x33bc74 of _0x3dc1eb['getCommentThreads']())_0x33bc74['remove']();for(const _0x1e1031 of _0x522b15)_0xf29443['getUser'](_0x1e1031['id'])||_0xf29443['addUser'](_0x1e1031);_0xf29443['me']||_0xf29443['useAnonymousUser']();for(const _0xf56747 of _0x991f3e)_0x3dc1eb['addCommentThread'](_0xf56747);for(const _0xa1da1c of _0x5c3845)_0x17dc49['addSuggestionData'](_0xa1da1c);_0x15998c['data']['set'](_0x58947c);}(_0x2a77b3,_0x422caf),_0x422caf['execute'](_0x115829?'acceptAllSuggestions':'discardAllSuggestions');const _0x34216a=v(_0x422caf)?_0x422caf['getFullData'](_0x2b6d2e):_0x422caf['data']['get'](_0x2b6d2e);return await _0x422caf['destroy'](),_0x34216a;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x488752,PendingActions as _0x5bce31,icons as _0x1c3b1a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2a8e99,ObservableMixin as _0xe943fa,uid as _0x3309d5,insertToPriorityArray as _0x41ccb9,priorities as _0x30ed80,logWarning as _0x3bdc4b,getEnvKeystrokeText as _0x292fdd,FocusTracker as _0x5836c7,KeystrokeHandler as _0xaf721f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xf31189,View as _0x4bb188,ViewCollection as _0x5b5e4d,FocusCycler as _0x486be6,ViewModel as _0x2feba1,createDropdown as Qt,SplitButtonView as _0x390abd,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5c7349}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x574e89,hashObject as _0x3c9b9d,surroundingMarkersDetector as _0x8d8bfa,FOCUS_ANNOTATION_KEYSTROKE as _0x524270,AriaDescriptionView as _0x4167f2,setupThreadKeyboardNavigation as _0x767110,trimHtml as _0x4acbd0,UserView as _0x39c45e,LateFocusButtonView as _0xaadc98,getDateTimeFormatter as _0x252609,getAllMarkersDomElementsSorted as _0x364a65,sanitizeEditorConfig as _0x573cfe}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2cb6f1,LiveRange as _0xd05373,LivePosition as _0x4e5e66}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4deab7,toWidget as _0x1f49eb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4d329f,set as _0x27de68,isEqual as _0x127c5c,unset as _0x4e18af,omit as Rt}from'lodash-es';import{Delete as _0x4e3c76,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x13b7f2,ShiftEnter as _0x2d82c0}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x206b96,_0x383ab9){super(_0x206b96),this['_enabledCommands']=_0x383ab9,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 _0x4ab009 of this['editor']['commands']['commands']())_0x4ab009['affectsData']&&!this['_enabledCommands']['has'](_0x4ab009)&&_0x4ab009['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xb08a6c of this['editor']['commands']['commands']())_0xb08a6c['affectsData']&&!this['_enabledCommands']['has'](_0xb08a6c)&&_0xb08a6c['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x6c553b,_0x42ce28){super(_0x6c553b),this['_suggestions']=_0x42ce28,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x437701){const _0x2717bb=this['_suggestions']['get'](_0x437701);if(!_0x2717bb)throw new _0x2a8e99('track-changes-accept-suggestion-not-found',this);const _0x2fc9e2=_0x2717bb['getRanges']();this['editor']['model']['canEditAt'](_0x2fc9e2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2717bb);}}class O extends ts{['_suggestions'];constructor(_0x55a12a,_0x55f0b8){super(_0x55a12a),this['_suggestions']=_0x55f0b8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x30b574){const _0x3d7350=this['_suggestions']['get'](_0x30b574);if(!_0x3d7350)throw new _0x2a8e99('track-changes-discard-suggestion-not-found',this);const _0x3d7365=_0x3d7350['getRanges']();this['editor']['model']['canEditAt'](_0x3d7365)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3d7350);}}function ls(_0xc0205e,_0x842056){let _0x1f5a1d='';return _0x1f5a1d+=_0xc0205e['split']('*')['map']((_0x7fc709,_0x12eb54)=>_0x12eb54%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x7fc709)+'</span>':nn(_0x7fc709))['join'](''),_0x842056&&(_0x1f5a1d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x842056['value']+'\x22\x20title=\x22'+_0x842056['title']+'\x22></span>'),_0x1f5a1d;}function nn(_0x477220){const _0x506cbb=document['createElement']('span');return _0x506cbb['innerText']=_0x477220,_0x506cbb['innerHTML'];}function ss(_0x4e38ba){return _0x4e38ba['sort']((_0xbf1175,_0x4d260c)=>'deletion'==_0xbf1175['type']&&'deletion'!=_0x4d260c['type']?-0x1:'deletion'!=_0xbf1175['type']&&'deletion'==_0x4d260c['type']?0x1:0x0);}function to(_0x4df360,_0x4a4494){let _0x22d40d,_0x4e1ce=0x0;const _0x4370ec=[],_0xad29ee=_0x4a4494['schema'];for(;_0x4e1ce<_0x4df360['length'];){const _0x1ade30=_0x4df360[_0x4e1ce],_0x341f35=_0x4df360[_0x4e1ce+0x1];_0x22d40d||(_0x22d40d=_0x4a4494['createPositionBefore'](_0x1ade30)),on(_0x4a4494,_0x1ade30,_0x341f35)||(_0x4370ec['push'](_0x4a4494['createRange'](_0x22d40d,_0xad29ee['isObject'](_0x1ade30)?_0x4a4494['createPositionAfter'](_0x1ade30):_0x4a4494['createPositionAt'](_0x1ade30,'end'))),_0x22d40d=null),_0x4e1ce++;}return _0x4370ec;}function on(_0x22edb8,_0x5e4415,_0x2aad35){if(!_0x2aad35)return!0x1;const _0x286d3e=_0x22edb8['createPositionAfter'](_0x5e4415),_0x4e15b4=_0x22edb8['createPositionBefore'](_0x2aad35);return _0x286d3e['isTouching'](_0x4e15b4);}function rs(_0x27b553,_0x4dbae0,_0x749513){for(;_0x749513['length'];){const _0x5bf6a2=_0x749513['splice'](0x0,0x64);_0x27b553['change'](()=>{for(const _0x4cceab of _0x5bf6a2)_0x4cceab['isInContent']&&_0x4dbae0['execute'](_0x4cceab['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x3a184c,_0x1cd2d6,_0x50e1e2){super(_0x3a184c),this['_command']=_0x1cd2d6,this['_suggestions']=_0x50e1e2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4216a3=Array['from'](this['_suggestions']['values']())['some'](_0x2240e0=>_0x2240e0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4216a3;}['execute'](){const _0x504960=ss(Array['from'](this['_suggestions']['values']()));for(const _0x53772a of _0x504960){const _0x285793=_0x53772a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x285793))return;}rs(this['editor']['model'],this['_command'],_0x504960);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2ed105,_0x56aa38,_0xaf8aeb){super(_0x2ed105),this['_command']=_0x56aa38,this['_suggestions']=_0xaf8aeb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3df8ec=this['editor']['model']['document']['selection'],_0x17357c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4e848b,_0x571c72){const _0x353964=Array['from'](_0x4e848b['getRanges']()),_0x461757=new Set();for(const _0x5eec9e of _0x571c72)if(_0x5eec9e['isInContent']){for(const _0x312cb4 of _0x353964)for(const _0x4a1914 of _0x5eec9e['getRanges']())(_0x312cb4['isIntersecting'](_0x4a1914)||_0x4e848b['isCollapsed']&&!_0x5eec9e['isMultiRange']&&_0x5eec9e['next']&&_0x4a1914['end']['isTouching'](_0x312cb4['start']))&&_0x461757['add'](_0x5eec9e);}return _0x461757;}(_0x3df8ec,_0x17357c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x298e4c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1253aa of _0x298e4c){const _0x2cc8f6=_0x1253aa['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2cc8f6))return;}rs(this['editor']['model'],this['_command'],_0x298e4c);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xe943fa(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x35253f,_0x497917){super(),this['id']=_0x497917['id'],this['type']=_0x497917['type'],this['subType']=_0x497917['subType']||null,this['author']=_0x497917['author'],this['creator']=_0x497917['creator']||_0x497917['author'],this['isExternal']=Boolean(_0x497917['attributes']&&_0x497917['attributes']['@external']),this['data']=null,this['_model']=_0x35253f,this['_onAccept']=_0x497917['onAccept'],this['_onDiscard']=_0x497917['onDiscard'],this['_onAttributesChange']=_0x497917['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x497917['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 _0x41a1a8=this;for(;_0x41a1a8['previous'];)_0x41a1a8=_0x41a1a8['previous'];return _0x41a1a8;}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'](_0xf3fc1){this['_markerNames']['add'](_0xf3fc1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x9afb87=>this['_model']['markers']['get'](_0x9afb87))['filter'](_0x1e9bf0=>_0x1e9bf0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1d7460=>{for(const _0x3c97c9 of this['getMarkers']())_0x1d7460['removeMarker'](_0x3c97c9);}),this['_markerNames']['clear']();}['removeMarker'](_0xdd5f13){this['_model']['change'](_0x99e810=>{_0x99e810['removeMarker'](_0xdd5f13);}),this['_markerNames']['delete'](_0xdd5f13);}['addRange'](_0x17a1ec){const _0x4910d4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4910d4),this['_model']['change'](_0x5c4d6f=>{_0x5c4d6f['addMarker'](_0x4910d4,{'range':_0x17a1ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x43c471){for(const _0x2cbbb9 of this['getRanges']())if(_0x2cbbb9['isIntersecting'](_0x43c471))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5cb81d=>_0x5cb81d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1fcbed,_0x5880db)=>[..._0x1fcbed,..._0x5880db['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x24914a=this['getRanges']();if(0x1!=_0x24914a['length'])return null;const _0x1dd929=_0x24914a[0x0],_0x3eb652=_0x1dd929['start']['nodeAfter'],_0x3ade0f=_0x1dd929['end']['nodeBefore'];return _0x3eb652 instanceof _0x2cb6f1?_0x3eb652!=_0x3ade0f?null:_0x3eb652: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 _0x44f803=[];let _0x1757b9=this['head'];for(;_0x1757b9;)_0x44f803['push'](_0x1757b9),_0x1757b9=_0x1757b9['next'];return _0x44f803;}['setAttribute'](_0x51f93c,_0x347dfd){const _0xf7c528=_0x4d329f(this['attributes']);_0x27de68(_0xf7c528,_0x51f93c,_0x347dfd),_0x127c5c(_0xf7c528,this['attributes'])||(this['attributes']=_0xf7c528,this['_onAttributesChange'](_0xf7c528));}['removeAttribute'](_0x4e54e0){const _0x7949e4=_0x4d329f(this['attributes']);_0x4e18af(_0x7949e4,_0x4e54e0),_0x127c5c(_0x7949e4,this['attributes'])||(this['attributes']=_0x7949e4,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 _0x3309d5()['substr'](0x1,0x5);}}function o(_0x3036da,_0xa8753e,_0x9329d1){const t=_0x3036da['t'];switch(_0xa8753e){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',_0x9329d1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x9329d1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x9329d1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x9329d1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x9329d1);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',_0x9329d1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x9329d1);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',_0x9329d1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x9329d1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x9329d1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x9329d1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x9329d1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x9329d1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x9329d1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x9329d1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x9329d1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x9329d1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x9329d1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x9329d1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x9329d1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x9329d1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x9329d1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x9329d1);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'},_0x9329d1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x9329d1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x9329d1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x9329d1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x9329d1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x9329d1);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'},_0x9329d1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x9329d1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x9329d1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x9329d1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x9329d1);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'},_0x9329d1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x9329d1);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'},_0x9329d1);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'},_0x9329d1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x9329d1);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'},_0x9329d1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x9329d1);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'},_0x9329d1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x9329d1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x9329d1);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'},_0x9329d1);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'},_0x9329d1);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'},_0x9329d1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x9329d1);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'},_0x9329d1);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'},_0x9329d1);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'},_0x9329d1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xa8753e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3f5bda,_0x1ab4d5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3f5bda,this['_locale']=_0x1ab4d5;}['getDescriptions'](_0x149465){const _0x3c4ea7=[],_0x3fcaa5=new Set(),_0x5e0de2=new Set();for(let _0x22c563=0x0;_0x22c563<_0x149465['length'];_0x22c563++){const _0x417e11=_0x149465[_0x22c563];if(!_0x417e11['isInContent'])continue;const _0x45fb53=this['_handleCustomCallbackDescription'](_0x417e11);if(_0x45fb53){if(null!=_0x417e11['subType']){if(_0x3fcaa5['has'](_0x417e11['subType']))continue;_0x3fcaa5['add'](_0x417e11['subType']);}_0x3c4ea7['push'](_0x45fb53);}else{if('attribute'!=_0x417e11['type'])'insertion'!=_0x417e11['type']&&'deletion'!=_0x417e11['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3c4ea7,_0x417e11,_0x149465[_0x22c563+0x1]);else{const _0x15d4c4=_0x417e11['data']['key'];if(_0x5e0de2['has'](_0x15d4c4))continue;_0x5e0de2['add'](_0x417e11['data']['key']),_0x15d4c4==m?this['_handleRenameSuggestionDescription'](_0x3c4ea7,_0x417e11):this['_handleAttributeSuggestionDescription'](_0x3c4ea7,_0x417e11);}}}return this['_resolveDescriptionItems'](_0x3c4ea7);}['registerDescriptionCallback'](_0x99bbb){this['_customCallbacks']['push'](_0x99bbb);}['registerElementLabel'](_0x26c3d9,_0x1a43d2,_0x1e6dbe=_0x30ed80['normal']){'function'==typeof _0x26c3d9?_0x41ccb9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x26c3d9,'label':_0x1a43d2,'priority':_0x1e6dbe}):this['_itemLabels']['set'](_0x26c3d9,_0x1a43d2);}['registerAttributeLabel'](_0x46443f,_0x46667f){this['_attributeLabels']['set'](_0x46443f,_0x46667f);}['getItemLabel'](_0x507a72,_0x32f67a=0x1){let _0xdff72f;for(const _0xfb9dc4 of this['_itemLabelsCallbacks'])if(_0xfb9dc4['matchingCallback'](_0x507a72)){_0xdff72f=_0xfb9dc4['label'];break;}return _0xdff72f||(_0xdff72f=this['_itemLabels']['get'](_0x507a72['name'])),_0xdff72f?_0xdff72f(_0x32f67a):0x1!==_0x32f67a?_0x32f67a+'\x20'+_0x507a72['name']+'s':''+_0x507a72['name'];}['_addDescriptionItems'](_0x4cdd9f,_0x4e0fd0){const _0x389b56=_0x4e0fd0['getFirstRange']()['getWalker'](),_0x1fdd8f='insertion'==_0x4e0fd0['type']?'add':'remove';for(const _0x59d27e of _0x389b56){const _0x5f5203=_0x59d27e['item'],_0x53875b=_0x4cdd9f[_0x4cdd9f['length']-0x1];if(_0x5f5203['is']('$textProxy'))_0x53875b&&_0x53875b['type']['indexOf']('Container')>-0x1&&_0x4cdd9f['pop'](),_0x53875b&&'text'==_0x53875b['type']?_0x53875b[_0x1fdd8f]+=_0x5f5203['data']:_0x4cdd9f['push']({'type':'text','add':'add'==_0x1fdd8f?_0x5f5203['data']:'','remove':'remove'==_0x1fdd8f?_0x5f5203['data']:''});else{if(this['_schema']['isObject'](_0x5f5203)){const _0x5cc1e6=_0x5f5203;if(_0x53875b&&_0x53875b['type']['indexOf']('Container')>-0x1&&_0x4cdd9f['pop'](),'elementEnd'==_0x59d27e['type'])continue;_0x53875b&&_0x53875b['type']==_0x1fdd8f+'Object'&&_0x53875b['element']['name']==_0x5cc1e6['name']?_0x53875b['quantity']++:_0x4cdd9f['push']({'type':_0x1fdd8f+'Object','element':_0x5cc1e6,'quantity':0x1}),_0x389b56['skip'](_0x21f553=>!('elementEnd'==_0x21f553['type']&&_0x21f553['item']==_0x5f5203));}else{if(this['_schema']['checkChild'](_0x5f5203,'$text')||_0x5f5203['is']('element','softBreak')){const _0x44d868=_0x5f5203;if('add'==_0x1fdd8f&&'elementStart'==_0x59d27e['type']||'remove'==_0x1fdd8f&&'elementEnd'==_0x59d27e['type'])continue;if(_0x53875b&&-0x1==_0x53875b['type']['indexOf']('Container')){'text'==_0x53875b['type']&&(_0x53875b[_0x1fdd8f]+='\x0a');continue;}let _0x28ae30;if(_0x28ae30='add'==_0x1fdd8f?_0x44d868['nextSibling']&&!this['_schema']['isObject'](_0x44d868['nextSibling'])?_0x44d868['nextSibling']:null:_0x44d868['previousSibling']&&!this['_schema']['isObject'](_0x44d868['previousSibling'])?_0x44d868['previousSibling']:null,_0x44d868['isEmpty']||_0x28ae30&&_0x28ae30['isEmpty']){const _0x5c6711=_0x28ae30&&_0x28ae30['isEmpty']?_0x28ae30:_0x44d868;_0x53875b&&_0x53875b['type']==_0x1fdd8f+'EmptyContainer'&&_0x53875b['element']['name']==_0x5c6711['name']?_0x53875b['quantity']++:_0x4cdd9f['push']({'type':_0x1fdd8f+'EmptyContainer','element':_0x5c6711,'quantity':0x1});}else _0x4cdd9f['push']({'type':_0x1fdd8f+'Container','element':_0x44d868});}}}}}['_resolveDescriptionItems'](_0x46cda9){const _0x1222f3=this['_locale'],_0x1ab34a=[],_0xbbed99=[],_0x5c5207=[];for(const _0x215291 of _0x46cda9)switch(_0x215291['type']){case'text':if(_0x215291['add']=_0x215291['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x215291['remove']=_0x215291['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x215291['add']&&''!=_0x215291['remove']){_0x1ab34a['push']({'type':'replace','content':o(_0x1222f3,'REPLACE_TEXT',['\x22'+_0x215291['remove']+'\x22','\x22'+_0x215291['add']+'\x22'])});continue;}if(null!=_0x215291['add']['match'](/^ +$/)){_0x1ab34a['push']({'type':'insertion','content':o(_0x1222f3,'*Insert:*\x20%0',o(_0x1222f3,'ELEMENT_SPACE',_0x215291['add']['length']))});continue;}if(null!=_0x215291['remove']['match'](/^ +$/)){_0x1ab34a['push']({'type':'deletion','content':o(_0x1222f3,'*Remove:*\x20%0',o(_0x1222f3,'ELEMENT_SPACE',_0x215291['remove']['length']))});continue;}if(''!=_0x215291['add']){_0x1ab34a['push']({'type':'insertion','content':o(_0x1222f3,'*Insert:*\x20%0','\x22'+_0x215291['add']+'\x22')});continue;}_0x1ab34a['push']({'type':'deletion','content':o(_0x1222f3,'*Remove:*\x20%0','\x22'+_0x215291['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1ab34a['push']({'type':'insertion','content':o(_0x1222f3,'*Insert:*\x20%0',this['getItemLabel'](_0x215291['element'],_0x215291['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1ab34a['push']({'type':'deletion','content':o(_0x1222f3,'*Remove:*\x20%0',this['getItemLabel'](_0x215291['element'],_0x215291['quantity']))});continue;case'addContainer':_0x1ab34a['push']({'type':'insertion','content':o(_0x1222f3,'*Split:*\x20%0',this['getItemLabel'](_0x215291['element'],_0x215291['quantity']))});continue;case'removeContainer':_0x1ab34a['push']({'type':'deletion','content':o(_0x1222f3,'*Merge:*\x20%0',this['getItemLabel'](_0x215291['element'],_0x215291['quantity']))});continue;case'addFormat':_0xbbed99['push'](_0x215291['key']);continue;case'removeFormat':_0x5c5207['push'](_0x215291['key']);continue;default:_0x1ab34a['push'](_0x215291);}if(_0xbbed99['length']){const _0x3c6c32=_0xbbed99['map'](_0x3f87e0=>this['_attributeLabels']['has'](_0x3f87e0)?this['_attributeLabels']['get'](_0x3f87e0):_0x3f87e0)['join'](',\x20');_0x1ab34a['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3c6c32)});}if(_0x5c5207['length']){const _0x33ef72=_0x5c5207['map'](_0x1ddd34=>this['_attributeLabels']['has'](_0x1ddd34)?this['_attributeLabels']['get'](_0x1ddd34):_0x1ddd34)['join'](',\x20');_0x1ab34a['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x33ef72)});}return _0x1ab34a;}['_handleCustomCallbackDescription'](_0x530257){for(const _0x370f21 of this['_customCallbacks']){const _0xe9724a=_0x370f21(_0x530257);if(_0xe9724a&&'type'in _0xe9724a)return _0xe9724a;}}['_handleAttributeSuggestionDescription'](_0x92596c,_0x4afdc4){const _0x22fb93=_0x4afdc4['data'],_0x50ba13=void 0x0===_0x22fb93['newValue']?'removeFormat':'addFormat';_0x92596c['push']({'type':_0x50ba13,'key':_0x22fb93['key']});}['_handleRenameSuggestionDescription'](_0x16e275,_0xe3e122){_0x16e275['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xe3e122['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x41fb5d,_0x4fa0ae,_0xd04e10){if(this['_addDescriptionItems'](_0x41fb5d,_0x4fa0ae),_0xd04e10&&_0xd04e10['getFirstRange']()&&!_0x4fa0ae['getFirstRange']()['end']['isEqual'](_0xd04e10['getFirstRange']()['start'])){const _0x527241=_0x41fb5d[_0x41fb5d['length']-0x1],_0x845cf5='insertion'==_0x4fa0ae['type']?'add':'remove';_0x527241&&'text'==_0x527241['type']&&(_0x527241[_0x845cf5]+='\x0a');}}}class V extends _0x488752{['afterInit'](){const _0x979722=this['editor'],_0xf4a559=_0x979722['plugins']['get']('TrackChangesEditing');_0x979722['commands']['get']('showAIAssistant')&&_0xf4a559['enableCommand']('showAIAssistant');}}class U extends _0x488752{['afterInit'](){const _0x62be19=this['editor'],_0x579d2f=_0x62be19['locale'];if(!_0x62be19['plugins']['has']('AlignmentEditing'))return;const _0x536c67=_0x62be19['plugins']['get']('TrackChangesEditing');_0x536c67['enableDefaultAttributesIntegration']('alignment'),_0x536c67['registerBlockAttribute']('alignment'),_0x536c67['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x579d2f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d2221=this['editor'],_0x4b34ee=_0x5d2221['locale'];_0x5d2221['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f3d0=>{if('formatBlock'!=_0x44f3d0['type'])return;const {data:_0x4b8b26}=_0x44f3d0;if(_0x4b8b26&&'alignment'==_0x4b8b26['commandName']){const _0x4244a6=_0x4b8b26['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4b34ee,'*Format:*\x20%0',function(_0x7d24b){switch(_0x7d24b){case'left':return o(_0x4b34ee,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4b34ee,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4b34ee,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4b34ee,'FORMAT_JUSTIFY_TEXT');}}(_0x4244a6))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x488752{['afterInit'](){const _0xc9eb9c=this['editor'],_0x4623d5=_0xc9eb9c['plugins']['get']('TrackChangesEditing'),_0x610b41=_0xc9eb9c['locale'];for(const _0x1ac7fc of ti){if(!_0xc9eb9c['plugins']['has'](_0x1ac7fc))continue;const _0x4a28d1=_0x1ac7fc['slice'](0x0,-0x7)['toLowerCase'](),_0x551ddd='FORMAT_'+_0x4a28d1['toUpperCase']();_0x4623d5['enableDefaultAttributesIntegration'](_0x4a28d1),_0x4623d5['registerInlineAttribute'](_0x4a28d1),_0x4623d5['descriptionFactory']['registerAttributeLabel'](_0x4a28d1,o(_0x610b41,_0x551ddd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5632b3=this['editor'],_0x576fdc=_0x5632b3['locale'],_0x168305=_0x5632b3['plugins']['get']('TrackChangesEditing');function _0x1cff37(_0x534ded,_0x457f26){_0x168305['descriptionFactory']['registerDescriptionCallback'](_0x211272=>{if('formatInline'!=_0x211272['type'])return;const {data:_0x417522}=_0x211272;return _0x417522&&_0x417522['commandName']===_0x534ded?_0x417522['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x576fdc,'*Format:*\x20%0',_0x457f26)}:{'type':'format','content':o(_0x576fdc,'*Remove\x20format:*\x20%0',_0x457f26)}:void 0x0;});}_0x1cff37('bold',o(_0x576fdc,'FORMAT_BOLD')),_0x1cff37('italic',o(_0x576fdc,'FORMAT_ITALIC')),_0x1cff37('underline',o(_0x576fdc,'FORMAT_UNDERLINE')),_0x1cff37('code',o(_0x576fdc,'FORMAT_CODE')),_0x1cff37('strikethrough',o(_0x576fdc,'FORMAT_STRIKETHROUGH')),_0x1cff37('subscript',o(_0x576fdc,'FORMAT_SUBSCRIPT')),_0x1cff37('superscript',o(_0x576fdc,'FORMAT_SUPERSCRIPT'));}}class F extends _0x488752{['afterInit'](){const _0x41bab=this['editor'],_0x4dc6d4=_0x41bab['locale'];if(!_0x41bab['plugins']['has']('BlockQuoteEditing'))return;const _0x375310=_0x41bab['plugins']['get']('TrackChangesEditing'),_0x523fbb=this['editor']['commands']['get']('blockQuote');_0x375310['enableCommand']('blockQuote',(_0x37d1f1,_0x1e30d8={})=>{const _0x5de4c2=this['editor']['model']['document']['selection'],_0x1ffa76=_0x1e30d8&&void 0x0!==_0x1e30d8['forceValue']?_0x1e30d8['forceValue']:!_0x523fbb['value'];let _0x24b264=[];if(_0x1ffa76){const _0x38d0b5=Array['from'](_0x5de4c2['getSelectedBlocks']())['filter'](_0x3f2f6a=>oo(_0x3f2f6a)||function(_0x4d6aba,_0x2c2909){const _0x2d1c75=_0x2c2909['checkChild'](_0x4d6aba['parent'],'blockQuote'),_0x43b744=_0x2c2909['checkChild'](['$root','blockQuote'],_0x4d6aba);return _0x2d1c75&&_0x43b744;}(_0x3f2f6a,this['editor']['model']['schema']));_0x24b264=to(_0x38d0b5,_0x41bab['model']);}else{const _0x2ebad4=Array['from'](_0x5de4c2['getSelectedBlocks']())['filter'](_0x358049=>oo(_0x358049));_0x24b264=to(_0x2ebad4,_0x41bab['model']);}_0x41bab['model']['change'](()=>{for(const _0x40e061 of _0x24b264)_0x375310['markBlockFormat'](_0x40e061,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1ffa76}]});});}),_0x375310['descriptionFactory']['registerDescriptionCallback'](_0x272eeb=>{const {data:_0x52a384}=_0x272eeb;if(_0x52a384&&'blockQuote'==_0x52a384['commandName']){const _0x17e73b=o(_0x4dc6d4,'ELEMENT_BLOCK_QUOTE');return _0x52a384['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dc6d4,'*Set\x20format:*\x20%0',_0x17e73b)}:{'type':'format','content':o(_0x4dc6d4,'*Remove\x20format:*\x20%0',_0x17e73b)};}});}}function oo(_0x1ae14e){return'blockQuote'==_0x1ae14e['parent']['name'];}class L extends _0x488752{['afterInit'](){const _0x500132=this['editor'];_0x500132['plugins']['has']('CaseChange')&&(_0x500132['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x500132['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x500132['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x488752{['afterInit'](){const _0x3414bd=this['editor'];_0x3414bd['commands']['get']('ckbox')&&_0x3414bd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x488752{['afterInit'](){const _0x3aaace=this['editor'];if(!_0x3aaace['plugins']['has']('CodeBlock'))return;const _0x529a4f=_0x3aaace['plugins']['get']('TrackChangesEditing'),_0x4c2a7f=_0x3aaace['locale'],_0xfca715=_0x3aaace['config']['get']('codeBlock')['languages'],_0x37df70=_0x3aaace['commands']['get']('codeBlock');_0x529a4f['enableCommand']('indentCodeBlock'),_0x529a4f['enableCommand']('outdentCodeBlock'),_0x529a4f['enableCommand']('codeBlock',(_0x5de0bd,_0x2efb2a={})=>{const _0x3a55ca=_0x3aaace['model'],_0x50b4b2=_0x3aaace['model']['document']['selection'],_0x332a05=_0x2efb2a&&void 0x0!==_0x2efb2a['forceValue']?_0x2efb2a['forceValue']:!_0x37df70['value'];let _0x212c5b;_0x2efb2a['language']||(_0x2efb2a['language']=_0xfca715[0x0]['language']),_0x212c5b=_0x332a05?Array['from'](_0x50b4b2['getSelectedBlocks']())['filter'](_0x5dd207=>eo(_0x5dd207)||function(_0x5acc48,_0x2d2c19){if(_0x5acc48['is']('rootElement')||_0x2d2c19['isLimit'](_0x5acc48))return!0x1;return _0x2d2c19['checkChild'](_0x5acc48['parent'],'codeBlock');}(_0x5dd207,_0x3a55ca['schema'])):Array['from'](_0x50b4b2['getSelectedBlocks']())['filter'](_0x4c7c0c=>eo(_0x4c7c0c));const _0x4662bb=to(_0x212c5b,_0x3a55ca);_0x3a55ca['change'](()=>{for(const _0x51865d of _0x4662bb)_0x529a4f['markBlockFormat'](_0x51865d,{'commandName':'codeBlock','commandParams':[{..._0x2efb2a,'forceValue':_0x332a05}],'formatGroupId':'blockName'});});}),(_0x529a4f['descriptionFactory']['registerElementLabel']('codeBlock',_0x3e771e=>o(_0x4c2a7f,'ELEMENT_CODE_BLOCK',_0x3e771e)),_0x529a4f['descriptionFactory']['registerDescriptionCallback'](_0x1aa7b7=>{if('formatBlock'!=_0x1aa7b7['type'])return;const _0xfba237=_0x4c2a7f['t'],{data:_0x347333}=_0x1aa7b7;if(!_0x347333||'codeBlock'!=_0x347333['commandName'])return;const _0x27c92a=_0x347333['commandParams'][0x0]['language'],_0x4375db=_0xfba237(_0xfca715['find'](_0xa45f79=>_0xa45f79['language']===_0x27c92a)['label'])['toLowerCase']();return _0x347333['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c2a7f,'*Set\x20format:*\x20%0',o(_0x4c2a7f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4375db+')')}:{'type':'format','content':o(_0x4c2a7f,'*Remove\x20format:*\x20%0',o(_0x4c2a7f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1c664a){return'codeBlock'==_0x1c664a['name'];}class q extends _0x488752{['afterInit'](){const _0x2e2ba1=this['editor'];if(!_0x2e2ba1['plugins']['has']('CommentsEditing'))return;_0x2e2ba1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x39235c,_0x245cf5,_0x5e0d81){const _0x793d53=[];for(const _0x172219 of _0x245cf5['getItems']())_0x172219['hasAttribute'](_0x39235c)&&_0x793d53['push'](_0x5e0d81['createRangeOn'](_0x172219));return _0x793d53;}function _e(_0x2ba13b,_0x4a6e16,{showActiveMarker:_0x52895d=!0x0}={}){const _0x125fd6=_0x2ba13b['plugins']['get']('TrackChangesEditing');return(_0x109dcd,_0x386d79,_0x441c3a)=>{if(!_0x441c3a['consumable']['test'](_0x386d79['markerRange'],_0x109dcd['name']))return;const _0x1e651d=_0x386d79['markerRange']['getWalker'](),_0xf69dec=_0x386d79['markerRange']['start'],_0x71835f=_0x2ba13b['model']['schema'];let _0x1d07fa=null,_0x34303e=null,_0x3a25ca=!0x1,_0x4f224a=!0x1;for(const _0x4c2604 of _0x1e651d){const _0x34ac24=_0x4c2604['item'];_0x3a25ca=_0x3a25ca||_0x71835f['isContent'](_0x34ac24);const _0x16ea6e=_0x441c3a['mapper']['toViewElement'](_0x34ac24);if(_0x16ea6e&&_0x16ea6e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4c2604['type']&&(_0x71835f['isBlock'](_0x34ac24)&&!_0x71835f['isLimit'](_0x34ac24)&&(_0x34ac24['nextSibling']||_0xf69dec['isAtEnd']?_0x1d07fa&&_0x1d07fa['parent']==_0x34ac24||(_0x1d07fa=_0x34ac24,_0x3b55fe(_0x4c2604['previousPosition']),_0x4f224a=!0x0):_0x34303e=_0x34303e||_0x4c2604['previousPosition']));}function _0x3b55fe(_0x1f82a3){const {authorId:_0x5dab54}=_0x125fd6['_splitMarkerName'](_0x386d79['markerName']),_0xabb4c3=_0x441c3a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a6e16,'data-author-id':_0x5dab54}),_0x150f7b=_0x441c3a['mapper']['toViewPosition'](_0x1f82a3);_0x52895d&&_0x125fd6['activeMarkers']['includes'](_0x386d79['markerName'])&&_0x441c3a['writer']['addClass']('ck-suggestion-marker--active',_0xabb4c3),_0x441c3a['writer']['insert'](_0x150f7b,_0xabb4c3),_0x441c3a['mapper']['bindElementToMarker'](_0xabb4c3,_0x386d79['markerName']);}_0x3a25ca||_0x4f224a||!_0x34303e||_0x3b55fe(_0x34303e);};}class z extends _0x488752{static get['requires'](){return[_0x4e3c76];}['init'](){const _0x4acd01=this['editor'],_0x3ffb2b=_0x4acd01['plugins']['get']('TrackChangesEditing');_0x3ffb2b['enableCommand']('delete');const _0x662570=_0x4acd01['commands']['get']('deleteForward');_0x3ffb2b['enableCommand']('deleteForward',(_0x2d00e3,_0x56c9ed={})=>{const _0x34c480=_0x4acd01['model']['createSelection'](_0x4acd01['model']['document']['selection']);_0x34c480['isCollapsed']&&_0x4acd01['model']['modifySelection'](_0x34c480,{'direction':'forward','unit':_0x56c9ed['unit']});const _0x26370b=_0x34c480['getFirstRange'](),_0x1b948a=_0xd05373['fromRange'](_0x26370b);let _0x435327;_0x2d00e3(_0x56c9ed),_0x435327='$graveyard'==_0x1b948a['root']['rootName']?_0x4acd01['model']['createRange'](_0x26370b['start']):_0x4acd01['model']['createRange'](_0x1b948a['start'],_0x1b948a['end']),_0x1b948a['detach'](),_0x4acd01['model']['enqueueChange'](_0x662570['buffer']['batch'],_0x358c17=>{_0x662570['buffer']['lock'](),_0x358c17['setSelection'](_0x358c17['createRange'](_0x435327['end'])),_0x662570['buffer']['unlock']();});}),_0x4acd01['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4acd01,'merge'),{'priority':'high'}),_0x4acd01['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x283689,_0x4ddd15,_0x939360)=>{_0x939360['options']['showSuggestionHighlights']&&_e(_0x4acd01,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x283689,_0x4ddd15,_0x939360);},{'priority':'high'}),_0x4acd01['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x363a06,_0x1e4414,_0x39d970)=>{const _0x5b028f=_0x39d970['mapper']['markerNameToElements'](_0x1e4414['markerName']);if(_0x5b028f){for(const _0x463f87 of _0x5b028f)_0x463f87['is']('uiElement')&&(_0x39d970['mapper']['unbindElementFromMarkerName'](_0x463f87,_0x1e4414['markerName']),_0x39d970['writer']['remove'](_0x463f87));}},{'priority':'high'});}}class K extends _0x488752{['afterInit'](){const _0x641aff=this['editor'];if(!_0x641aff['plugins']['has']('ListEditing'))return;const _0x3b4459=_0x641aff['locale'],_0x408e05=_0x641aff['plugins']['get']('TrackChangesEditing'),_0x14fe3a=_0x641aff['plugins']['has']('TodoListEditing'),_0x47f67f=!!_0x641aff['config']['get']('list.multiBlock');function _0x4196bc(_0x59a64c){return{'type':'format','content':''+o(_0x3b4459,'*Set\x20format:*\x20%0',_0x59a64c)};}function _0xe5d54b(_0x44f8d4){return{'type':'format','content':''+o(_0x3b4459,'*Remove\x20format:*\x20%0',_0x44f8d4)};}_0x408e05['enableDefaultAttributesIntegration']('numberedList'),_0x408e05['enableDefaultAttributesIntegration']('bulletedList'),_0x408e05['enableDefaultAttributesIntegration']('customNumberedList'),_0x408e05['enableDefaultAttributesIntegration']('customBulletedList'),_0x408e05['enableDefaultAttributesIntegration']('indentList'),_0x408e05['enableDefaultAttributesIntegration']('outdentList'),_0x408e05['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x408e05['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x408e05['registerBlockAttribute']('listItemId'),_0x408e05['registerBlockAttribute']('listType'),_0x408e05['registerBlockAttribute']('listIndent'),_0x47f67f&&(_0x408e05['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x408e05['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x14fe3a&&(_0x408e05['enableDefaultAttributesIntegration']('todoList'),_0x408e05['enableDefaultAttributesIntegration']('checkTodoList'),_0x408e05['registerBlockAttribute']('todoListChecked'),_0x408e05['descriptionFactory']['registerDescriptionCallback'](_0xf27f1b=>{const {data:_0x5ef7ae}=_0xf27f1b;if(_0x5ef7ae&&'todoListChecked'==_0x5ef7ae['key'])return{'type':'format','content':_0x5ef7ae['newValue']?o(_0x3b4459,'*Check\x20item*'):o(_0x3b4459,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x139a3c=>{if(_0x139a3c['batch']['isUndo'])return!0x1;let _0x200a1d=!0x1;const _0x3f7c13=_0x408e05['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2becaa=>'todoListChecked'===_0x408e05['_getAttributeKey'](_0x2becaa));for(const _0x418a62 of _0x3f7c13){'todo'!=_0x418a62['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x408e05['_findSuggestions'](_0x418a62['getFirstRange'](),'attribute')['find'](_0xa7444e=>'listType'===_0x408e05['_getAttributeKey'](_0xa7444e['suggestion']))||(_0x139a3c['removeMarker'](_0x418a62['getFirstMarker']()),_0x200a1d=!0x0));}return _0x200a1d;})),_0x408e05['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3b4459,'FORMAT_INDENT'));const _0x1984da={'type':'format','content':''};_0x408e05['descriptionFactory']['registerDescriptionCallback'](_0x165ee0=>{const {data:_0x3a49ed}=_0x165ee0;if(!_0x3a49ed||'listType'!=_0x3a49ed['key'])return;let _0x5ec600=_0x165ee0['head'];for(;_0x5ec600;){if(_0x5ec600['data']&&(('listStyle'==_0x5ec600['data']['key']||'listMarkerStyle'==_0x5ec600['data']['key'])&&(_0x5ec600['data']['newValue']&&'default'!=_0x5ec600['data']['newValue']||'default'!=_0x5ec600['data']['oldValue']&&!_0x3a49ed['newValue'])||!_0x47f67f&&_0x5ec600['data']['key']==m))return _0x1984da;_0x5ec600=_0x5ec600['next'];}if(null==_0x3a49ed['newValue'])switch(_0x3a49ed['oldValue']){case'bulleted':return _0xe5d54b(o(_0x3b4459,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe5d54b(o(_0x3b4459,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe5d54b(o(_0x3b4459,'ELEMENT_TODO_LIST'));}switch(_0x3a49ed['newValue']){case'bulleted':return _0x4196bc(o(_0x3b4459,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4196bc(o(_0x3b4459,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4196bc(o(_0x3b4459,'ELEMENT_TODO_LIST'));}}),_0x408e05['descriptionFactory']['registerDescriptionCallback'](_0x2133dd=>{const {data:_0x3b373c}=_0x2133dd;if(_0x3b373c&&'listIndent'==_0x3b373c['key'])return null==_0x3b373c['newValue']||null==_0x3b373c['oldValue']&&0x0==_0x3b373c['newValue']?_0x1984da:void 0x0;}),_0x408e05['descriptionFactory']['registerDescriptionCallback'](_0x227090=>{if('attribute'!=_0x227090['type'])return;const {data:_0x1dbfcd}=_0x227090;if(!_0x1dbfcd||'listItemId'!=_0x1dbfcd['key'])return;const _0x1d3c19=Ee(_0x227090);return'newValue'==_0x1d3c19?{'type':'format','content':o(_0x3b4459,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1d3c19?{'type':'format','content':o(_0x3b4459,'*Split:*\x20list\x20item')}:_0x1984da;}),_0x641aff['model']['document']['registerPostFixer'](_0x4b331d=>this['listItemIdFixer'](_0x4b331d)),_0x641aff['model']['document']['registerPostFixer'](_0x472bd3=>this['noTrackChangesFixer'](_0x472bd3)),_0x641aff['model']['document']['on']('change:data',(_0x993d68,_0x369f1b)=>{if(_0x369f1b['isUndo']||!_0x369f1b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x268438){if(_0x268438['batch']['isUndo']||!_0x268438['batch']['isLocal'])return!0x1;let _0xedb82c=!0x1;const _0x26a75f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5af2aa=>_0x5af2aa['data']&&'listItemId'==_0x5af2aa['data']['key'])['filter'](_0x39e988=>_0x39e988['data']['newValue']&&_0x39e988['data']['oldValue']);for(const _0x2cb149 of _0x26a75f)Ee(_0x2cb149)||(_0x268438['removeMarker'](_0x2cb149['getFirstMarker']()),_0xedb82c=!0x0);return _0xedb82c;}['noTrackChangesFixer'](_0x340c8c){if(_0x340c8c['batch']['isUndo']||!_0x340c8c['batch']['isLocal'])return!0x1;const _0x42eb62=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x42eb62['trackChangesCommand']['value'])return!0x1;let _0x5bf2ec=!0x1;const _0x3e0e4f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c2f40=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53ee74=>'attribute'==_0x53ee74['type'])['filter'](_0x377c20=>_0x3e0e4f['includes'](_0x377c20['attributeKey']));if(0x0==_0x4c2f40['length'])return _0x5bf2ec;for(const _0x32acc4 of _0x4c2f40){const _0x4e3250=_0x42eb62['_findSuggestions'](_0x32acc4['range'],'attribute')['filter'](_0x2e8c18=>!_0x2e8c18['meta']['isNextTo'])['map'](_0x177621=>_0x177621['suggestion'])['filter'](_0x3f991d=>{const _0x1bf579=_0x42eb62['_getAttributeKey'](_0x3f991d);return _0x3e0e4f['includes'](_0x1bf579);});if(_0x4e3250['length']){for(const _0xf03e2f of _0x4e3250)_0x340c8c['removeMarker'](_0xf03e2f['getFirstMarker']());_0x5bf2ec=!0x0;}}return _0x5bf2ec;}['assureChains'](){const _0x4a143e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc8a623=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2a43ed;const _0x15a3b2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b4e7a=>{if(_0x1b4e7a['data']['oldRange']||!_0x1b4e7a['data']['newRange'])return null;if(!_0x1b4e7a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xa759c2}=_0x4a143e['_splitMarkerName'](_0x1b4e7a['name']);if(!_0x4a143e['hasSuggestion'](_0xa759c2))return null;const _0x477803=_0x4a143e['getSuggestion'](_0xa759c2);return _0xc8a623['includes'](_0x477803['data']['key']);})['map'](_0x513516=>{const {id:_0x56beb0}=_0x4a143e['_splitMarkerName'](_0x513516['name']),_0x5ec007=_0x4a143e['getSuggestion'](_0x56beb0);return _0x2a43ed=_0x5ec007['attributes']['groupId'],_0x5ec007['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x15a3b2['size'])return;const _0x46fdfc=_0x4a143e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x431205=>'attribute'==_0x431205['type']&&_0x431205['data']&&_0xc8a623['includes'](_0x431205['data']['key'])&&_0x431205['attributes']['groupId']!=_0x2a43ed)['map'](_0x4d3adf=>({'listItem':_0x4d3adf['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4d3adf['attributes']['groupId']})),_0x437a66=new Set();for(const {groupId:_0x360e1f,listItem:_0x1f208e}of _0x46fdfc)_0x15a3b2['has'](_0x1f208e)&&_0x437a66['add'](_0x360e1f);for(const _0x799054 of _0x4a143e['getSuggestions']())_0x437a66['has'](_0x799054['attributes']['groupId'])&&_0x799054['setAttribute']('groupId',_0x2a43ed);}['_supportLegacySuggestions'](){const _0x17f7dd=this['editor'],_0x4ca6b2=_0x17f7dd['locale'],_0x50ad7c=_0x17f7dd['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x50ad7c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x169ce9,_0x3de8ff){const _0x342774=[];for(let _0x49f6ba of _0x169ce9)_0x49f6ba['start']['nodeAfter']===_0x49f6ba['end']['parent']&&(_0x49f6ba=_0x17f7dd['model']['createRange'](_0x17f7dd['model']['createPositionAt'](_0x49f6ba['start']['nodeAfter'],0x0))),_0x342774['push'](_0x49f6ba);_0x17f7dd['model']['change'](_0x36cb85=>{const _0x95860e=_0x17f7dd['model']['document']['selection'],_0x52fc41=Array['from'](_0x95860e['getRanges']())['map'](_0x53d58f=>_0xd05373['fromRange'](_0x53d58f));_0x36cb85['setSelection'](_0x342774),_0x17f7dd['commands']['get'](_0x3de8ff['commandName'])['refresh'](),_0x3de8ff['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x17f7dd['execute'](_0x3de8ff['commandName'],..._0x3de8ff['commandParams']),_0x36cb85['setSelection'](_0x52fc41);for(const _0x83de3d of _0x52fc41)_0x83de3d['detach']();});}),_0x50ad7c['descriptionFactory']['registerElementLabel'](function(_0x429985){const _0x43796f=!_0x17f7dd['model']['schema']['isObject'](_0x429985),_0x34d9f2=_0x429985['previousSibling'],_0x38b8bd=_0x429985['nextSibling'],_0x471a98=_0x429985['getAttribute']('listItemId'),_0x11a0b5=!_0x34d9f2||_0x34d9f2['getAttribute']('listItemId')!==_0x471a98,_0x1f4e50=!_0x38b8bd||_0x38b8bd['getAttribute']('listItemId')!==_0x471a98;return _0x43796f&&Boolean(_0x471a98)&&_0x11a0b5&&_0x1f4e50;},_0x495b43=>o(_0x4ca6b2,'ELEMENT_LIST_ITEM',_0x495b43));}['_registerLegacyDescription'](){const _0x42ba51=this['editor'],_0x11b172=_0x42ba51['locale'];function _0x188052(_0x2f9b55){const _0x8e919a=_0x42ba51['commands']['get']('bulletedList')['value'],_0x2c32cb=_0x42ba51['commands']['get']('numberedList')['value'];return'numberedList'===_0x2f9b55?_0x8e919a:_0x2c32cb;}_0x42ba51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d868c){if('formatBlock'!=_0x5d868c['type'])return;const {data:_0x24f305}=_0x5d868c;if(!_0x24f305)return;let _0x528695,_0x2d552a,_0x3de844,_0xb14644;switch(_0x24f305['commandName']){case'bulletedList':_0x3de844=_0x24f305['commandParams'][0x0]['forceValue'],_0xb14644=_0x188052(_0x24f305['commandName']),_0x528695=_0x3de844?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb14644&&_0x42ba51['config']['get']('list.multiBlock')||(_0x528695='*Change\x20to:*\x20%0'),_0x2d552a={'type':'format','content':o(_0x11b172,_0x528695,o(_0x11b172,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3de844=_0x24f305['commandParams'][0x0]['forceValue'],_0xb14644=_0x188052(_0x24f305['commandName']),_0x528695=_0x3de844?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb14644&&_0x42ba51['config']['get']('list.multiBlock')||(_0x528695='*Change\x20to:*\x20%0'),_0x2d552a={'type':'format','content':o(_0x11b172,_0x528695,o(_0x11b172,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x528695='*Indent:*\x20%0',_0x2d552a={'type':'format','content':o(_0x11b172,_0x528695,o(_0x11b172,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x528695=function(_0x14c383){const _0x3cbf36=_0x14c383['getFirstRange']();let _0x1a5b38=_0x3cbf36['start']['nodeAfter'];for(;_0x1a5b38&&_0x3cbf36['containsItem'](_0x1a5b38);){if(_0x1a5b38['getAttribute']('listIndent')>0x0)return!0x1;_0x1a5b38=_0x1a5b38['nextSibling'];}return!0x0;}(_0x5d868c)?o(_0x11b172,'*Format:*\x20remove\x20from\x20%0',o(_0x11b172,function(_0x4359d9){return'ELEMENT_'+_0x4359d9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d868c))):o(_0x11b172,'*Outdent:*\x20%0',o(_0x11b172,'ELEMENT_LIST_ITEM')),_0x2d552a={'type':'format','content':_0x528695};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x24f305['multipleBlocks']&&(_0x528695='*Merge:*\x20%0',_0x2d552a={'type':'deletion','content':o(_0x11b172,_0x528695,o(_0x11b172,'ELEMENT_LIST_ITEM'))});}return _0x2d552a;});}}function Ee(_0x2b6df0){let _0x1bf50e=_0x2b6df0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1bf50e;){const _0x2dc7a1=_0x1bf50e['getAttribute']('listItemId');if(!_0x2dc7a1)return!0x1;if(_0x2dc7a1==_0x2b6df0['data']['newValue'])return'newValue';if(_0x2dc7a1==_0x2b6df0['data']['oldValue'])return'oldValue';_0x1bf50e=_0x1bf50e['previousSibling'];}return!0x1;}class pe extends _0x488752{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x46069a=this['editor']['config']['get']('list.properties'),_0x1bfb91=this['editor']['plugins']['get']('TrackChangesEditing');_0x46069a['styles']&&(_0x1bfb91['enableDefaultAttributesIntegration']('listStyle'),_0x1bfb91['registerBlockAttribute']('listStyle')),_0x46069a['reversed']&&(_0x1bfb91['enableDefaultAttributesIntegration']('listReversed'),_0x1bfb91['registerBlockAttribute']('listReversed')),_0x46069a['startIndex']&&(_0x1bfb91['enableDefaultAttributesIntegration']('listStart'),_0x1bfb91['registerBlockAttribute']('listStart'));const _0x1148f2={'type':'format','content':''};_0x1bfb91['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5b4024=this['editor']['locale'];_0x1bfb91['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5b4024,'FORMAT_LIST_REVERSED')),_0x1bfb91['descriptionFactory']['registerDescriptionCallback'](_0x2ac7b4=>{const {data:_0x4257e1}=_0x2ac7b4;if(_0x4257e1&&'listReversed'==_0x4257e1['key'])return null==_0x4257e1['newValue']||0x0==_0x4257e1['newValue']&&null==_0x4257e1['oldValue']?_0x1148f2:void 0x0;}),_0x1bfb91['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5b4024,'FORMAT_LIST_START')),_0x1bfb91['descriptionFactory']['registerDescriptionCallback'](_0x2aa7ba=>{const {data:_0xd8a435}=_0x2aa7ba;if(_0xd8a435&&'listStart'==_0xd8a435['key'])return null==_0xd8a435['newValue']||0x1==_0xd8a435['newValue']&&null==_0xd8a435['oldValue']?_0x1148f2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xec8c4a=>{if(_0xec8c4a['batch']['isUndo'])return!0x1;let _0x345006=!0x1;const _0x493d75=_0x1bfb91['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4295e7=>{const _0x4d0071=_0x1bfb91['_getAttributeKey'](_0x4295e7);return'listStart'==_0x4d0071||'listReversed'==_0x4d0071;});for(const _0x487af7 of _0x493d75){const _0x1b1c48=_0x487af7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1b1c48||'customNumbered'==_0x1b1c48)continue;_0x1bfb91['_findSuggestions'](_0x487af7['getFirstRange'](),'attribute')['find'](_0xf1647b=>'listType'==_0x1bfb91['_getAttributeKey'](_0xf1647b['suggestion']))||(_0xec8c4a['removeMarker'](_0x487af7['getFirstMarker']()),_0x345006=!0x0);}return _0x345006;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x59770d){const _0x55ab34=this['editor']['locale'],{data:_0x4fe509}=_0x59770d,_0x2be3f1={'type':'format','content':''};if(!_0x4fe509||'listStyle'!=_0x4fe509['key'])return;if(!_0x4fe509['oldValue'])return'default'==_0x4fe509['newValue']?_0x2be3f1:{'type':'format','content':''+o(_0x55ab34,'*Set\x20format:*\x20%0',o(_0x55ab34,this['_getTranslationKeyForListStyle'](_0x4fe509['newValue'])))};if(!_0x4fe509['newValue']){if('default'==_0x4fe509['oldValue'])return _0x2be3f1;let _0x512b0b=_0x59770d['head'];for(;_0x512b0b;){if(_0x512b0b['data']&&'listType'==_0x512b0b['data']['key']&&_0x512b0b['data']['newValue'])return _0x2be3f1;_0x512b0b=_0x512b0b['next'];}return{'type':'format','content':''+o(_0x55ab34,'*Remove\x20format:*\x20%0',o(_0x55ab34,this['_getTranslationKeyForListStyle'](_0x4fe509['oldValue'])))};}if('default'!=_0x4fe509['newValue'])return{'type':'format','content':''+o(_0x55ab34,'*Set\x20format:*\x20%0',o(_0x55ab34,this['_getTranslationKeyForListStyle'](_0x4fe509['newValue'])))};let _0x174aca=_0x59770d['head'];for(;_0x174aca;){if(_0x174aca['data']&&'listType'==_0x174aca['data']['key']&&_0x174aca['data']['newValue']&&_0x174aca['data']['oldValue'])return _0x2be3f1;_0x174aca=_0x174aca['next'];}return{'type':'format','content':o(_0x55ab34,'*Set\x20format:*\x20%0',o(_0x55ab34,'ELEMENT_'+_0x59770d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4586f6=this['editor'],_0x213291=_0x4586f6['locale'];_0x4586f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f7139=>{if('formatBlock'!=_0x2f7139['type'])return;const {data:_0x3ee4ea}=_0x2f7139;if(!_0x3ee4ea)return;let _0x413def,_0x336b26;switch(_0x3ee4ea['commandName']){case'listStyle':_0x413def='*Change\x20to:*\x20%0',_0x336b26={'type':'format','content':o(_0x213291,_0x413def,o(_0x213291,this['_getTranslationKeyForListStyle'](_0x3ee4ea['commandParams'][0x0]['type'])))};break;case'listReversed':_0x413def=_0x3ee4ea['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x336b26={'type':'format','content':o(_0x213291,_0x413def)};break;case'listStart':_0x413def='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x336b26={'type':'format','content':o(_0x213291,_0x413def,_0x3ee4ea['commandParams'][0x0]['startIndex'])};}return _0x336b26;});}['_getTranslationKeyForListStyle'](_0x27a805){return'ELEMENT_'+function(_0x324f07){if(ye['includes'](_0x324f07))return'bulleted';if(Se['includes'](_0x324f07))return'numbered';return null;}(_0x27a805)['toUpperCase']()+'_LIST_'+_0x27a805['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x488752{static get['requires'](){return[_0x13b7f2];}['init'](){const _0xdfda34=this['editor'],_0x187f8b=_0xdfda34['plugins']['get']('TrackChangesEditing'),_0x86af59=_0xdfda34['commands']['get']('enter');_0x187f8b['enableCommand']('enter',()=>{_0xdfda34['model']['change'](_0x2e14eb=>{const _0x1698ed=_0xdfda34['model']['document']['selection'],_0x3e0bd0=_0x1698ed['getFirstPosition'](),_0x44e922=_0xd05373['fromRange'](_0x1698ed['getFirstRange']());if(_0x86af59['enterBlock'](_0x2e14eb)){const _0x589230=_0xdfda34['model']['createPositionAt'](_0x3e0bd0['parent']['nextSibling'],0x0),_0x131611=_0x2e14eb['createRange'](_0x3e0bd0,_0x589230);_0x187f8b['markInsertion'](_0x131611);}else _0x2e14eb['setSelection'](_0x2e14eb['createRange'](_0x44e922['end']));_0x44e922['detach'](),_0x86af59['fire']('afterExecute',{'writer':_0x2e14eb});});}),_0xdfda34['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xdfda34,'split'),{'priority':'high'}),_0xdfda34['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x186817,_0x5dfb9a,_0x4567f2)=>{const _0x3f22a4=_0x4567f2['mapper']['markerNameToElements'](_0x5dfb9a['markerName']);if(_0x3f22a4){for(const _0x45852e of _0x3f22a4)_0x45852e['hasClass']('ck-suggestion-marker-split')&&(_0x4567f2['mapper']['unbindElementFromMarkerName'](_0x45852e,_0x5dfb9a['markerName']),_0x4567f2['writer']['remove'](_0x45852e));}},{'priority':'high'}),_0xdfda34['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf658c1,_0x14e725,_0x489215)=>{_0x489215['options']['showSuggestionHighlights']&&_e(_0xdfda34,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xf658c1,_0x14e725,_0x489215);},{'priority':'high'});}}class X extends _0x488752{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x568417=this['editor']['plugins']['get']('TrackChangesEditing');_0x568417['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x568417['enableCommand']('findNext'),_0x568417['enableCommand']('findPrevious'),_0x568417['enableCommand']('replace'),_0x568417['enableCommand']('replaceAll');}['handleFindCommand'](_0x42033a,_0x14de17,_0x5433cb={}){const _0x383230=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x42033a(_0x32497e=>{let _0x2eb4d8=('string'==typeof _0x14de17?_0x383230['findByTextCallback'](_0x14de17,_0x5433cb):_0x14de17)(_0x32497e);Array['isArray'](_0x2eb4d8)&&(_0x2eb4d8={'results':_0x2eb4d8,'searchText':'string'==typeof _0x14de17?_0x14de17:''});const _0x5f2cca=_0x2eb4d8['results']['filter'](_0x4debb0=>!0x1===this['_isInDeletionRange'](_0x4debb0,_0x32497e['item']));return{..._0x2eb4d8,'results':_0x5f2cca};},_0x5433cb);}['_isInDeletionRange'](_0x425ad8,_0x205860){const _0x371c37=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x205860,_0x425ad8['start']),this['editor']['model']['createPositionAt'](_0x205860,_0x425ad8['end']));for(const _0x524093 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x371c37['getIntersection'](_0x524093['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 _0x488752{['afterInit'](){const _0x3092ad=this['editor']['locale'],_0x19e783=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x9a665c,commandName:_0x580ac0}of ro)this['editor']['plugins']['has'](_0x9a665c)&&(_0x19e783['enableDefaultAttributesIntegration'](_0x580ac0),_0x19e783['registerInlineAttribute'](_0x580ac0));_0x19e783['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3092ad,'FORMAT_FONT_SIZE')),_0x19e783['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3092ad,'FORMAT_FONT_FAMILY')),_0x19e783['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3092ad,'FORMAT_FONT_COLOR')),_0x19e783['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3092ad,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x440418=this['editor'],_0x4784c0=_0x440418['locale'];_0x440418['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b8f98=>{const _0x51dc2a=_0x4784c0['t'];if('formatInline'!=_0x2b8f98['type'])return;const {data:_0x4e84cc}=_0x2b8f98;if(null!=_0x4e84cc){if('fontSize'==_0x4e84cc['commandName']){const _0x853254=_0x4e84cc['commandParams'][0x0]['value'];if(_0x853254){const _0x3d897f=_0x51dc2a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x48e957=>_0x48e957['model']==_0x853254)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4784c0,'*Set\x20font\x20size:*\x20%0',_0x3d897f)};}return{'type':'format','content':o(_0x4784c0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4e84cc['commandName']){const _0x40abf7=_0x4e84cc['commandParams'][0x0]['value'];return _0x40abf7?{'type':'format','content':o(_0x4784c0,'*Set\x20font\x20family:*\x20%0',_0x40abf7)}:{'type':'format','content':o(_0x4784c0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4e84cc['commandName']){const _0x320fee=_0x4e84cc['commandParams'][0x0]['value'];if(_0x320fee){const _0x491453=_0xf31189(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1519b5=>_0x1519b5['model']==_0x320fee);let _0x258a54=_0x320fee,_0x2dc6f6='';return _0x491453&&(_0x258a54=_0x491453['label'],_0x2dc6f6=_0x51dc2a(_0x258a54)['toLowerCase']()),{'type':'format','content':o(_0x4784c0,'*Set\x20font\x20color:*\x20%0',_0x2dc6f6)['trim'](),'color':{'value':_0x320fee,'title':_0x2dc6f6||_0x258a54}};}return{'type':'format','content':o(_0x4784c0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4e84cc['commandName']){const _0x49244b=_0x4e84cc['commandParams'][0x0]['value'];if(_0x49244b){const _0x2b01ac=_0xf31189(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47c285=>_0x47c285['model']==_0x49244b);let _0x3438e4=_0x49244b,_0x31f44e='';return _0x2b01ac&&(_0x3438e4=_0x2b01ac['label'],_0x31f44e=_0x51dc2a(_0x3438e4)['toLowerCase']()),{'type':'format','content':o(_0x4784c0,'*Set\x20font\x20background\x20color:*\x20%0',_0x31f44e)['trim'](),'color':{'value':_0x49244b,'title':_0x31f44e||_0x3438e4}};}return{'type':'format','content':o(_0x4784c0,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x488752{['afterInit'](){const _0x312e16=this['editor'],_0x1b5c6d=_0x312e16['plugins']['get']('TrackChangesEditing'),_0xfcd17a=_0x312e16['commands']['get']('copyFormat'),_0x29b715=_0x312e16['commands']['get']('pasteFormat');_0xfcd17a&&_0x29b715&&(_0x1b5c6d['enableDefaultAttributesIntegration']('pasteFormat'),_0x1b5c6d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x531e21=this['editor'],_0x29b87e=_0x531e21['locale'];_0x531e21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c256e=>{if('formatBlock'!=_0x3c256e['type']&&'formatInline'!=_0x3c256e['type'])return;const {data:_0x3cdccb}=_0x3c256e;if(_0x3cdccb&&'pasteFormat'===_0x3cdccb['commandName']){const _0x58ff65=[],_0x12e0fe=_0x3cdccb['commandParams'][0x0];for(const [_0x2cd17f,_0xb32a04]of Object['entries'](_0x12e0fe))_0x58ff65['push'](so(_0x531e21,_0x2cd17f,_0xb32a04));return _0x58ff65['length']?{'type':'format','content':o(_0x29b87e,'*Set\x20format\x20to:*\x20%0',_0x58ff65['join'](',\x20'))}:{'type':'format','content':o(_0x29b87e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1db20c,_0x1b5683,_0x59808e){const _0x4c1657=_0x1db20c['locale']['t'],_0x12b6e2=_0x1b5683['split'](/(?=[A-Z])/)['join']('\x20'),_0x1267fa=_0x4c1657(_0x12b6e2['charAt'](0x0)['toUpperCase']()+_0x12b6e2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x59808e)return _0x1267fa;if('fontColor'===_0x1b5683||'fontBackgroundColor'===_0x1b5683){const _0x4b697e=_0xf31189(_0x1db20c['config']['get']('fontColor.colors'))['find'](_0x5875a8=>_0x5875a8['model']==_0x59808e);return _0x1267fa+'\x20('+(_0x4b697e?_0x4c1657(_0x4b697e['label'])['toLowerCase']():_0x59808e)+')';}if('fontSize'===_0x1b5683&&isNaN(parseFloat(_0x59808e))){const _0x8f8cd9=_0x1db20c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1db20c['config']['get']('fontSize.options'))['find'](_0x11925f=>_0x11925f['model']==_0x59808e);return _0x1267fa+'\x20('+(_0x8f8cd9?_0x4c1657(_0x8f8cd9['title'])['toLowerCase']():_0x59808e)+')';}return _0x1267fa+'\x20('+_0x59808e+')';}class tt extends _0x488752{['_headingOptions'];['afterInit'](){const _0x1d2575=this['editor'];if(!_0x1d2575['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1d2575['config']['get']('heading.options');const _0x4c8ba3=_0x1d2575['locale'],_0x40b2c4=_0x1d2575['plugins']['get']('TrackChangesEditing');_0x40b2c4['enableDefaultAttributesIntegration']('heading');for(const _0x1d8379 of this['_headingOptions'])'paragraph'!=_0x1d8379['model']&&_0x40b2c4['descriptionFactory']['registerElementLabel'](_0x1d8379['model'],_0x509946=>{const _0x3370e4=this['_getHeadingLevel'](_0x1d8379['model']);return null!==_0x3370e4?_0x5e920e(_0x509946,_0x3370e4):_0x70f5e7(_0x509946,_0x1d8379['title']);});function _0x5e920e(_0x149616,_0x2f4b6a){return o(_0x4c8ba3,'ELEMENT_HEADING',[_0x149616,_0x2f4b6a]);}function _0x70f5e7(_0x1ab8de,_0x4eb77a){return o(_0x4c8ba3,'ELEMENT_HEADING_CUSTOM',[_0x1ab8de,_0x4eb77a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23e40e=this['editor'],_0x1d3469=_0x23e40e['locale'];function _0x3c82e0(_0x416703,_0x5770df){return o(_0x1d3469,'ELEMENT_HEADING_CUSTOM',[_0x416703,_0x5770df]);}_0x23e40e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x464233=>{if('formatBlock'!=_0x464233['type'])return;const {data:_0x45be79}=_0x464233;if(_0x45be79&&'heading'==_0x45be79['commandName']){const _0x4cf6c3=_0x45be79['commandParams'][0x0]['value'],_0x1ae7b9=this['_getHeadingLevel'](_0x4cf6c3);if(null!==_0x1ae7b9)return{'type':'format','content':o(_0x1d3469,'*Change\x20to:*\x20%0',(_0x56781c=0x1,_0x234bab=_0x1ae7b9,o(_0x1d3469,'ELEMENT_HEADING',[_0x56781c,_0x234bab])))};const _0x3af992=this['_headingOptions']['find'](_0x1acc8c=>_0x1acc8c['model']===_0x4cf6c3)['title'];return{'type':'format','content':o(_0x1d3469,'*Change\x20to:*\x20%0',_0x3c82e0(0x1,_0x3af992))};}var _0x56781c,_0x234bab;});}['_getHeadingLevel'](_0x32018b){const _0x110179=_0x32018b['match'](/^heading(\d+)/);if(_0x110179)return _0x110179[0x1];const _0x5a910e=this['_headingOptions']?.['find'](_0x2d2c11=>_0x2d2c11['model']==_0x32018b);if(_0x5a910e&&_0x5a910e['view']){const _0xd2133b=_0x5a910e['view'],_0x28f885=(_0xd2133b['name']??_0xd2133b)['match'](/^h(\d+)/);if(_0x28f885)return _0x28f885[0x1];}return null;}}class et extends _0x488752{['afterInit'](){const _0x363b00=this['editor'];if(!_0x363b00['plugins']['has']('HighlightEditing'))return;const _0x28d29d=_0x363b00['plugins']['get']('TrackChangesEditing'),_0x1b2955=_0x363b00['locale'];_0x28d29d['enableDefaultAttributesIntegration']('highlight'),_0x28d29d['registerInlineAttribute']('highlight'),_0x28d29d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b2955,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e8d35=this['editor'],_0x13dc2d=_0x4e8d35['locale'];_0x4e8d35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40de3d=>{if('formatInline'!=_0x40de3d['type'])return;const {data:_0x5f0005}=_0x40de3d;if(_0x5f0005&&'highlight'==_0x5f0005['commandName']){const _0xdd8052=_0x13dc2d['t'],_0x4b1e21=_0x5f0005['commandParams'][0x0]['value'];if(_0x4b1e21){const _0x248cee=_0x4e8d35['config']['get']('highlight.options')['find'](_0x459696=>_0x459696['model']==_0x4b1e21),_0x1a4c2e=_0xdd8052(_0x248cee['title'])['toLowerCase']();return{'type':'format','content':o(_0x13dc2d,'*Set\x20highlight:*\x20%0',_0x1a4c2e),'color':{'value':_0x248cee['color'],'title':_0x248cee['title']}};}return{'type':'format','content':o(_0x13dc2d,'*Remove\x20highlight*',o(_0x13dc2d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x488752{['afterInit'](){const _0x4db820=this['editor'];if(!_0x4db820['plugins']['has']('HorizontalLineEditing'))return;_0x4db820['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x34438a=_0x4db820['plugins']['get']('TrackChangesEditing'),_0x851aaf=_0x4db820['locale'];_0x34438a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2ff8d4=>o(_0x851aaf,'ELEMENT_HORIZONTAL_LINE',_0x2ff8d4)),_0x4db820['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x741954,{writer:_0x29ea2f,options:_0x50ac01})=>{if(!_0x50ac01['showSuggestionHighlights'])return null;const _0x32d105=_0x29ea2f['createContainerElement']('div'),_0x450ee8=_0x29ea2f['createEmptyElement']('hr');return _0x29ea2f['addClass']('ck-horizontal-line',_0x32d105),_0x29ea2f['insert'](_0x29ea2f['createPositionAt'](_0x32d105,0x0),_0x450ee8),_0x32d105;},'converterPriority':'high'});}}class st extends _0x488752{['afterInit'](){const _0x5b269d=this['editor'];if(!_0x5b269d['plugins']['has']('HtmlEmbed'))return;const _0x168d42=_0x5b269d['plugins']['get']('TrackChangesEditing'),_0x1de50c=_0x5b269d['locale'];_0x168d42['descriptionFactory']['registerElementLabel']('rawHtml',_0x41496c=>o(_0x1de50c,'ELEMENT_HTML_EMBED',_0x41496c)),_0x168d42['enableDefaultAttributesIntegration']('htmlEmbed'),_0x168d42['registerBlockAttribute']('value'),_0x168d42['descriptionFactory']['registerDescriptionCallback'](_0x3277d9=>{if('attribute'!=_0x3277d9['type'])return;const {data:_0x266608}=_0x3277d9;if(_0x266608&&'value'==_0x266608['key']&&_0x3277d9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56db6d=o(_0x1de50c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1de50c,'*Change\x20%0\x20content*',_0x56db6d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x549160=this['editor'],_0x19e8e8=_0x549160['locale'];_0x549160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1055cd=>{if('formatBlock'!=_0x1055cd['type'])return;const {data:_0x357eff}=_0x1055cd;if(_0x357eff&&'htmlEmbed'==_0x357eff['commandName']){const _0x43b402=o(_0x19e8e8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x19e8e8,'*Change\x20%0\x20content*',_0x43b402)};}});}}class nt extends _0x488752{['afterInit'](){const _0x321b0b=this['editor'];if(!_0x321b0b['plugins']['has']('ImageEditing'))return;const _0x464075=_0x321b0b['plugins']['get']('TrackChangesEditing'),_0x2d7394=_0x321b0b['plugins']['get']('ImageUtils'),_0x3d8a6c=_0x321b0b['locale'];_0x464075['enableCommand']('insertImage'),_0x464075['descriptionFactory']['registerElementLabel']('imageBlock',_0x4589e4=>o(_0x3d8a6c,'ELEMENT_IMAGE',_0x4589e4)),_0x464075['descriptionFactory']['registerElementLabel']('imageInline',_0x486515=>o(_0x3d8a6c,'ELEMENT_INLINE_IMAGE',_0x486515)),_0x464075['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3d8a6c,'ELEMENT_CAPTION')),_0x321b0b['plugins']['has']('ImageUploadEditing')&&_0x464075['enableCommand']('uploadImage'),_0x321b0b['plugins']['has']('ImageBlockEditing')&&_0x321b0b['plugins']['has']('ImageInlineEditing')&&(_0x464075['enableCommand']('imageTypeInline',(_0x22da6f,_0x43031c)=>{const _0xed45fc=_0x2d7394['getClosestSelectedImageElement'](_0x321b0b['model']['document']['selection']);_0x321b0b['model']['change'](()=>{_0x464075['markBlockFormat'](_0xed45fc,{'commandName':'imageTypeInline','commandParams':[_0x43031c]},[],'convertBlockImageToInline');});}),_0x464075['enableCommand']('imageTypeBlock',(_0x2c77b6,_0x299b68)=>{_0x321b0b['model']['change'](_0x4c00bf=>{let _0x23cb56=_0x2d7394['getClosestSelectedImageElement'](_0x321b0b['model']['document']['selection']),_0x333e42=_0x4c00bf['createRangeOn'](_0x23cb56);const _0x474862=_0x4e5e66['fromPosition'](_0x333e42['start'],'toPrevious'),_0x9f33b5=_0x4e5e66['fromPosition'](_0x333e42['end'],'toNext');_0x464075['forceDefaultExecution'](()=>_0x2c77b6(_0x299b68)),_0x23cb56=_0x2d7394['getClosestSelectedImageElement'](_0x321b0b['model']['document']['selection']),_0x333e42=_0x4c00bf['createRangeOn'](_0x23cb56);const _0x51c7bd=_0x4c00bf['createRange'](_0x474862,_0x9f33b5);_0x474862['detach'](),_0x9f33b5['detach'](),_0x464075['markBlockFormat'](_0x23cb56,{'commandName':'imageTypeInline','commandParams':[_0x299b68]},[],'convertInlineImageToBlock'),_0x51c7bd['start']['isBefore'](_0x333e42['start'])&&_0x464075['markInsertion'](_0x4c00bf['createRange'](_0x51c7bd['start'],_0x333e42['start']),'convertInlineImageToBlock'),_0x333e42['end']['isBefore'](_0x51c7bd['end'])&&_0x464075['markInsertion'](_0x4c00bf['createRange'](_0x333e42['end'],_0x51c7bd['end']),'convertInlineImageToBlock');});}),_0x464075['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x464075['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x464075['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x464075['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x464075['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x464075['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x49f58a])=>{const _0x52a829=_0x464075['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x10feef=_0x49f58a['start'],_0x6945aa=_0x49f58a['end'];const _0x2cb06d=_0x321b0b['model']['schema']['getNearestSelectionRange'](_0x10feef,'backward'),_0x58a17d=_0x321b0b['model']['schema']['getNearestSelectionRange'](_0x6945aa,'forward');_0x2cb06d['isCollapsed']&&(_0x10feef=_0x2cb06d['start']),_0x58a17d['isCollapsed']&&(_0x6945aa=_0x58a17d['end']),_0x52a829([_0x321b0b['model']['createRange'](_0x10feef,_0x6945aa)]);}),_0x464075['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x124af6),_0x464075['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x124af6)),_0x321b0b['plugins']['has']('ImageCaptionEditing')&&(_0x464075['enableCommand']('toggleImageCaption',(_0x493abc,_0x66e03)=>{const _0x5a79a5=_0x321b0b['plugins']['get']('ImageCaptionUtils');let _0x49c687=_0x2d7394['getClosestSelectedImageElement'](_0x321b0b['model']['document']['selection']),_0x59d2ed=_0x5a79a5['getCaptionFromImageModelElement'](_0x49c687);_0x321b0b['model']['change'](()=>{if(_0x59d2ed)return void _0x464075['markDeletion'](_0x321b0b['model']['createRangeOn'](_0x59d2ed));const _0x48c0ca=_0x2d7394['isBlockImage'](_0x49c687);_0x493abc(_0x66e03),_0x49c687=_0x2d7394['getClosestSelectedImageElement'](_0x321b0b['model']['document']['selection']),_0x59d2ed=_0x5a79a5['getCaptionFromImageModelElement'](_0x49c687),_0x464075['markInsertion'](_0x321b0b['model']['createRangeOn'](_0x59d2ed),_0x48c0ca?null:'imageCaption');});}),_0x464075['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x124af6));const _0x2680e8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e5f78(_0x4ccf7b,_0x1248cc){const _0x21d6a1=_0x2680e8['findIndex'](({type:_0x3c732c,subType:_0x5c8a44})=>_0x4ccf7b['type']==_0x3c732c&&_0x4ccf7b['subType']==_0x5c8a44),_0x9c0ded=_0x2680e8['findIndex'](({type:_0x3271a5,subType:_0x2405ae})=>_0x1248cc['type']==_0x3271a5&&_0x1248cc['subType']==_0x2405ae);if(_0x21d6a1<0x0||_0x9c0ded<0x0)return!0x1;const _0x3052da=_0x4ccf7b['getFirstRange'](),_0x36cb9a=_0x1248cc['getFirstRange']();if((0x0==_0x21d6a1||0x1==_0x21d6a1)&&0x2==_0x9c0ded&&_0x3052da['isIntersecting'](_0x36cb9a))return!0x0;if(0x2==_0x21d6a1&&0x3==_0x9c0ded){const _0x1febca=_0x464075['_findSuggestions'](_0x3052da,'insertion')['filter'](({suggestion:_0x3afdac,meta:_0x5cb6ff})=>_0x5cb6ff['isOwn']&&'convertInlineImageToBlock'==_0x3afdac['subType']);if(_0x1febca['length']>0x1&&_0x36cb9a['end']['isEqual'](_0x3052da['start']))return!0x0;if(0x1==_0x1febca['length']&&(_0x3052da['start']['isEqual'](_0x36cb9a['end'])||_0x3052da['end']['isEqual'](_0x36cb9a['start'])))return!0x0;}if(0x3==_0x21d6a1&&0x3==_0x9c0ded&&_0x3052da['start']['isBefore'](_0x36cb9a['start'])){const _0x5df8db=_0x3052da['end']['nodeAfter'],_0x5f3cac=_0x36cb9a['start']['nodeBefore'];return _0x2d7394['isBlockImage'](_0x5df8db)&&_0x5df8db===_0x5f3cac;}return!0x1;}function _0x124af6(_0x48b5ad,_0x25d549){return _0x3e5f78(_0x48b5ad,_0x25d549)?[_0x48b5ad,_0x25d549]:_0x3e5f78(_0x25d549,_0x48b5ad)?[_0x25d549,_0x48b5ad]:null;}_0x321b0b['plugins']['has']('ImageResize')&&(_0x464075['enableDefaultAttributesIntegration']('resizeImage'),_0x464075['registerBlockAttribute']('resizedWidth'),_0x464075['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3d8a6c,'FORMAT_IMAGE_SIZE'))),_0x321b0b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x464075['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x464075['registerBlockAttribute']('alt')),_0x464075['descriptionFactory']['registerDescriptionCallback'](_0x3e5bf8=>{if(!!_0x2680e8['find'](({type:_0x22627e,subType:_0x3892f1})=>_0x3e5bf8['type']==_0x22627e&&_0x3e5bf8['subType']==_0x3892f1))return _0x3e5bf8['previous']?{}:void 0x0;}),_0x464075['descriptionFactory']['registerDescriptionCallback'](_0x2f3a37=>{if('insertion'==_0x2f3a37['type']||'deletion'==_0x2f3a37['type']){const _0x32cb65=_0x2f3a37['getContainedElement']();if(_0x32cb65&&_0x32cb65['is']('element','caption'))return{'type':'insertion'==_0x2f3a37['type']?'addObject':'removeObject','element':_0x32cb65,'quantity':0x1};}}),_0x464075['descriptionFactory']['registerDescriptionCallback'](_0xe49e7c=>'formatBlock'==_0xe49e7c['type']&&'convertInlineImageToBlock'==_0xe49e7c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xe49e7c['type']&&'convertBlockImageToInline'==_0xe49e7c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x464075['descriptionFactory']['registerDescriptionCallback'](_0x4366cf=>{if('attribute'!=_0x4366cf['type'])return;const {data:_0x1e895c}=_0x4366cf;if(!_0x1e895c||'alt'!=_0x1e895c['key'])return;const _0x41da0b=_0x1e895c['newValue'];return _0x41da0b?{'type':'format','content':o(_0x3d8a6c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x41da0b+'\x22')}:{'type':'format','content':o(_0x3d8a6c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53b770=this['editor'],_0x53e06a=_0x53b770['locale'];_0x53b770['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48c20f=>{if('formatBlock'!=_0x48c20f['type']&&'formatInline'!=_0x48c20f['type'])return;const {data:_0x58fa4b}=_0x48c20f;if(_0x58fa4b){if('imageTextAlternative'==_0x58fa4b['commandName']){const _0x4082b9=_0x58fa4b['commandParams'][0x0]['newValue'];return _0x4082b9?{'type':'format','content':o(_0x53e06a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4082b9+'\x22')}:{'type':'format','content':o(_0x53e06a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x58fa4b['commandName']){const _0x5b14e7=_0x58fa4b['commandParams'][0x0]['width'];return _0x5b14e7?{'type':'format','content':o(_0x53e06a,'*Set\x20image\x20width:*\x20%0',_0x5b14e7)}:{'type':'format','content':o(_0x53e06a,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x488752{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x470619=this['editor']['locale'],_0x29222a=this['editor']['plugins']['get']('TrackChangesEditing');_0x29222a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x29222a['registerBlockAttribute']('src'),_0x29222a['descriptionFactory']['registerDescriptionCallback'](_0x3030ae=>{if('attribute'!=_0x3030ae['type'])return;const {data:_0x301576}=_0x3030ae;return _0x301576&&'src'==_0x301576['key']?_0x301576['newValue']&&_0x301576['oldValue']?{'type':'format','content':o(_0x470619,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fb2b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fb2b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4fb2b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fb2b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4fb2b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20ef5c=this['editor'],_0x377d8a=_0x20ef5c['locale'];_0x20ef5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7e2e2e=>{if('formatBlock'!=_0x7e2e2e['type']&&'formatInline'!=_0x7e2e2e['type'])return;const {data:_0x52bf1a}=_0x7e2e2e;if(!_0x52bf1a||'replaceImageSource'!=_0x52bf1a['commandName'])return;return{'type':'format','content':o(_0x377d8a,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x488752{['afterInit'](){const _0xfd786b=this['editor'];if(!_0xfd786b['plugins']['has']('ImageStyleEditing'))return;const _0xfb9a9e=_0xfd786b['plugins']['get']('TrackChangesEditing'),_0x1df01b=_0xfd786b['plugins']['get']('ImageUtils'),_0x110781={};_0xfb9a9e['enableCommand']('imageStyle',(_0x7a1075,_0x5ba553)=>{const _0x5b3c1c=_0xfd786b['plugins']['get']('Users')['me'],_0x436ff4=_0xfd786b['commands']['get']('imageStyle');let _0x305d33=_0x1df01b['getClosestSelectedImageElement'](_0xfd786b['model']['document']['selection']),_0x31acb5=_0xfd786b['model']['createRangeOn'](_0x305d33),_0x4a92f2=_0x436ff4['value'];if(_0x4a92f2==_0x5ba553['value'])return;const _0xb6b008={'commandName':'imageStyle','commandParams':[_0x5ba553],'formatGroupId':_0x3309d5()};_0xfd786b['model']['change'](()=>{if(_0xfb9a9e['getSuggestions']()['filter'](_0xf52951=>_0xf52951['isInContent']&&_0x5b3c1c==_0xf52951['author']&&('formatBlock'==_0xf52951['type']||'formatInline'==_0xf52951['type'])&&('imageStylePreApply'==_0xf52951['subType']||'imageStylePostApply'==_0xf52951['subType'])&&_0xf52951['getFirstRange']()['isEqual'](_0x31acb5))['forEach'](_0x20d133=>_0xfb9a9e['discardSuggestion'](_0x20d133['head'])),_0x305d33=_0x1df01b['getClosestSelectedImageElement'](_0xfd786b['model']['document']['selection']),_0x31acb5=_0xfd786b['model']['createRangeOn'](_0x305d33),_0x436ff4['refresh'](),_0xfd786b['commands']['get']('imageTypeInline')['refresh'](),_0xfd786b['commands']['get']('imageTypeBlock')['refresh'](),_0x4a92f2=_0x436ff4['value'],_0x4a92f2!=_0x5ba553['value'])return _0x1df01b['isInlineImage'](_0x305d33)&&_0x436ff4['shouldConvertImageType'](_0x5ba553['value'],_0x305d33)?(_0x7a1075({..._0x5ba553,'setImageSizes':!0x1}),_0x305d33=_0x1df01b['getClosestSelectedImageElement'](_0xfd786b['model']['document']['selection']),void _0xfb9a9e['markBlockFormat'](_0x305d33,{..._0xb6b008,'commandReversedParams':[{'value':_0x4a92f2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1df01b['isBlockImage'](_0x305d33)?_0xfb9a9e['markBlockFormat'](_0x305d33,_0xb6b008,[],'imageStylePostApply'):_0xfb9a9e['markInlineFormat'](_0x31acb5,_0xb6b008,'imageStylePostApply'));});});for(const _0x289ca0 of _0xfd786b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x110781[_0x289ca0['name']]=_0x289ca0['title']['toLowerCase']();_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5a3666])=>{_0x1df01b['setImageNaturalSizeAttributes'](_0x5a3666['getContainedElement']());}),_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x111e6d,_0x2a04e0)=>{_0xfb9a9e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x111e6d,{'commandName':_0x2a04e0['commandName'],'commandParams':_0x2a04e0['commandReversedParams']});}),_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x377f2f,_0x2ad0bf){if(_0x53ca5e(_0x377f2f,_0x2ad0bf))return[_0x377f2f,_0x2ad0bf];if(_0x53ca5e(_0x2ad0bf,_0x377f2f))return[_0x2ad0bf,_0x377f2f];return null;});const _0x426743=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53ca5e(_0x4228e,_0x11b1e9){const _0x5c669b=_0x426743['findIndex'](({type:_0x4f9396,subType:_0x4c2b36})=>_0x4228e['type']==_0x4f9396&&_0x4228e['subType']==_0x4c2b36),_0x3a18f1=_0x426743['findIndex'](({type:_0x3bb203,subType:_0x344237})=>_0x11b1e9['type']==_0x3bb203&&_0x11b1e9['subType']==_0x344237);if(_0x5c669b<0x0||_0x3a18f1<0x0)return!0x1;const _0x1bde31=_0x4228e['getFirstRange'](),_0x4fc16d=_0x11b1e9['getFirstRange']();if((0x0==_0x5c669b||0x1==_0x5c669b)&&0x2==_0x3a18f1&&_0x1bde31['isIntersecting'](_0x4fc16d))return!0x0;if(0x2==_0x5c669b&&0x3==_0x3a18f1){const _0x43caf5=_0xfb9a9e['_findSuggestions'](_0x1bde31,'insertion')['filter'](({suggestion:_0xdc71ef,meta:_0x505206})=>_0x505206['isOwn']&&'convertInlineImageToBlock'==_0xdc71ef['subType']);if(_0x43caf5['length']>0x1&&_0x4fc16d['end']['isEqual'](_0x1bde31['start']))return!0x0;if(0x1==_0x43caf5['length']&&(_0x1bde31['start']['isEqual'](_0x4fc16d['end'])||_0x1bde31['end']['isEqual'](_0x4fc16d['start'])))return!0x0;}if(0x3==_0x5c669b&&0x3==_0x3a18f1&&_0x1bde31['start']['isBefore'](_0x4fc16d['start'])){const _0x40a914=_0x1bde31['end']['nodeAfter'],_0x4b6616=_0x4fc16d['start']['nodeBefore'];return _0x1df01b['isBlockImage'](_0x40a914)&&_0x40a914===_0x4b6616;}return!0x1;}_0xfd786b['model']['document']['registerPostFixer'](()=>{let _0x413bb5=!0x1;const _0x2cde23=Array['from'](_0xfd786b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x218ade,data:_0x434805}of _0x2cde23){const {group:_0x12eda2,type:_0x2f077a,subType:_0x57e9ad,id:_0xe25e51}=_0xfb9a9e['_splitMarkerName'](_0x218ade);if('suggestion'==_0x12eda2&&_0xfb9a9e['hasSuggestion'](_0xe25e51)){if('formatBlock'==_0x2f077a&&('imageStylePreApply'==_0x57e9ad||'imageStylePostApply'==_0x57e9ad)){const _0xfede2f=_0xfb9a9e['getSuggestion'](_0xe25e51);if(_0x434805['newRange']){const _0xee6939=_0xfede2f['getFirstRange']()['getContainedElement']();if(_0x1df01b['isBlockImage'](_0xee6939))continue;_0xfb9a9e['discardSuggestion'](_0xfede2f),_0x413bb5=!0x0;}}if('insertion'==_0x2f077a&&'imageCaption'==_0x57e9ad&&!_0x434805['newRange']){const _0x4d22d8=_0xfb9a9e['getSuggestion'](_0xe25e51);_0x4d22d8['next']&&_0x4d22d8['next']['isInContent']&&(_0xfb9a9e['discardSuggestion'](_0x4d22d8['next']),_0x413bb5=!0x0);}}}return _0x413bb5;}),this['_registerLegacyDescription'](_0x110781);}['_registerLegacyDescription'](_0x42ab5e){const _0x39dea6=this['editor'],_0x2a6b6b=_0x39dea6['locale'];_0x39dea6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ec1c=>{if('formatBlock'!=_0x27ec1c['type']&&'formatInline'!=_0x27ec1c['type'])return;const {data:_0x549927}=_0x27ec1c;if(!_0x549927||'imageStyle'!=_0x549927['commandName'])return;const _0x5cacca=_0x549927['commandParams'][0x0]['value'];return _0x2adff5('side'===_0x5cacca?o(_0x2a6b6b,'FORMAT_SIDE_IMAGE'):_0x42ab5e[_0x5cacca]||_0x5cacca);function _0x2adff5(_0x41ba01){return{'type':'format','content':o(_0x2a6b6b,'*Format:*\x20%0',_0x41ba01)};}});}}class at extends _0x488752{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1c9f7a){super(_0x1c9f7a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1c5d37=this['editor'],_0x3b58a3=_0x1c5d37['commands']['get']('importWord'),_0x31f7c2=_0x1c5d37['commands']['get']('trackChanges');_0x3b58a3&&(_0x3b58a3['on']('execute',(_0x5017eb,[,_0x5ea7ab])=>{this['_trackChangesValueDuringImport']=_0x31f7c2['value'],_0x5ea7ab['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3b58a3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3b58a3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x31f7c2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1c5d37['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5bd0fb,_0xd485fb){const {suggestions:_0x42eeb7}=_0xd485fb,_0x13a058=this['editor']['commands']['get']('trackChanges'),_0x2bc7b7=_0x13a058['value'];this['_trackChangesValueDuringImport']!==_0x2bc7b7&&(_0x13a058['execute'](),this['_trackChangesExecuted']=!0x0),_0x42eeb7&&_0x42eeb7['forEach'](({id:_0x1cfda4,type:_0x1b66a3,author:_0x3f50da,created_at:_0x566b5c})=>{const _0x1f8864={'id':_0x1cfda4,'type':_0x1b66a3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3f50da,'createdAt':_0x566b5c?new Date(_0x566b5c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1f8864);});}}class ct extends _0x488752{['afterInit'](){const _0x3bd7cd=this['editor'],_0x3f9c77=_0x3bd7cd['plugins']['get']('TrackChangesEditing');if(_0x3bd7cd['plugins']['has']('IndentEditing')&&(_0x3f9c77['enableCommand']('indent'),_0x3f9c77['enableCommand']('outdent')),_0x3bd7cd['plugins']['has']('IndentBlock')){for(const _0x3bc6eb of['indentBlock','outdentBlock'])_0x3f9c77['enableDefaultAttributesIntegration'](_0x3bc6eb);}const _0x37e507=_0x3bd7cd['locale'];_0x3f9c77['registerBlockAttribute']('blockIndent'),_0x3f9c77['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x37e507,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x599d93=this['editor'],_0x415170=_0x599d93['locale'],_0x21490b=_0x599d93['plugins']['get']('TrackChangesEditing');_0x21490b['descriptionFactory']['registerDescriptionCallback'](_0x4c9f3a=>{if('formatBlock'!=_0x4c9f3a['type'])return;const {data:_0x4abddc}=_0x4c9f3a;if(!_0x4abddc)return;if('indentBlock'!=_0x4abddc['commandName']&&'outdentBlock'!=_0x4abddc['commandName'])return;const _0x21e8cf=_0x4c9f3a['getItems']()[0x0],_0x2c4c90=_0x21490b['descriptionFactory']['getItemLabel'](_0x21e8cf);return'indentBlock'==_0x4abddc['commandName']?{'type':'format','content':o(_0x415170,'*Indent:*\x20%0',_0x2c4c90)}:'outdentBlock'==_0x4abddc['commandName']?{'type':'format','content':o(_0x415170,'*Outdent:*\x20%0',_0x2c4c90)}:void 0x0;});}}class ut extends _0x488752{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x488752{['afterInit'](){const _0x350da8=this['editor'];if(!_0x350da8['plugins']['has']('LinkEditing'))return;const _0x550aef=_0x350da8['plugins']['get']('TrackChangesEditing'),_0x2e70f8=_0x350da8['commands']['get']('link');_0x550aef['enableDefaultAttributesIntegration']('link'),_0x550aef['enableDefaultAttributesIntegration']('unlink'),_0x550aef['registerInlineAttribute']('linkHref');for(const _0x47dfad of _0x2e70f8['manualDecorators'])_0x550aef['registerInlineAttribute'](_0x47dfad['id']),_0x550aef['descriptionFactory']['registerAttributeLabel'](_0x47dfad['id'],'link\x20('+_0x47dfad['label']['toLowerCase']()+')');_0x550aef['descriptionFactory']['registerDescriptionCallback'](_0x2ac286=>{if('attribute'!=_0x2ac286['type'])return;const {data:_0x420129}=_0x2ac286;if(!_0x420129||'linkHref'!=_0x420129['key'])return;const _0x545a0d=_0x420129['newValue'],_0x393b11=_0x350da8['locale'];return{'type':'format','content':null==_0x545a0d?o(_0x393b11,'*Remove\x20link*'):o(_0x393b11,'*Set\x20link:*\x20%0','\x22'+_0x545a0d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44b105=this['editor'],_0x56e271=_0x44b105['locale'];_0x44b105['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50661d=>{if('formatInline'!=_0x50661d['type'])return;const {data:_0x28faa5}=_0x50661d;if(_0x28faa5){if('link'==_0x28faa5['commandName']){const _0xc3f0bf=_0x28faa5['commandParams'][0x0];return{'type':'format','content':o(_0x56e271,'*Set\x20link:*\x20%0','\x22'+_0xc3f0bf+'\x22')};}return'unlink'==_0x28faa5['commandName']?{'type':'format','content':o(_0x56e271,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x488752{['afterInit'](){const _0x23846a=this['editor'],_0x4cac01=_0x23846a['locale'];if(!_0x23846a['plugins']['has']('LegacyListEditing'))return;const _0x1cb343=_0x23846a['plugins']['get']('TrackChangesEditing'),_0x56daae=_0x23846a['plugins']['has']('LegacyTodoListEditing');function _0x9f5860(_0x3f3e7b){return()=>{const _0x323114=_0x23846a['model']['document']['selection'],_0x372add=_0x23846a['commands']['get'](_0x3f3e7b);if(_0x372add['value'])return void _0x23846a['execute']('paragraph',{});const _0xadd6b1=_0x3f3e7b['slice'](0x0,-0x4),_0x3a8f98=function(_0x24b904,_0x435237,_0xe983ac){let _0x3d5096=Array['from'](_0x24b904)['filter'](_0x6d8b48=>function(_0x5ecf55,_0xe00282){return _0xe00282['checkChild'](_0x5ecf55['parent'],'listItem')&&!_0xe00282['isObject'](_0x5ecf55);}(_0x6d8b48,_0xe983ac));_0x3d5096=_0x3d5096['filter'](_0x4826a2=>!_0x4826a2['is']('element','listItem')||_0x4826a2['getAttribute']('listType')!=_0x435237);const _0x16aa77=new Set();for(const _0x178640 of _0x3d5096)_0x178640['is']('element','listItem')?_0x16aa77['add'](fe(_0x178640)):_0x16aa77['add'](_0x178640);return Array['from'](_0x16aa77);}(_0x323114['getSelectedBlocks'](),_0xadd6b1,_0x23846a['model']['schema']);_0x23846a['model']['change'](()=>{for(const _0x5db5f3 of _0x3a8f98)_0x1cb343['markBlockFormat'](_0x5db5f3,{'commandName':_0x3f3e7b,'commandParams':[{'forceValue':!_0x372add['value']}],'formatGroupId':'blockName'},ue(_0x5db5f3));});};}function _0x3b2309(_0x599e96){return()=>{const _0x5654d3=function(_0x44a6af){let _0x57d336=Array['from'](_0x44a6af);const _0x1b21f3=_0x57d336['findIndex'](_0x5eaded=>'listItem'!=_0x5eaded['name']);return _0x1b21f3>-0x1&&(_0x57d336=_0x57d336['slice'](0x0,_0x1b21f3)),_0x57d336;}(_0x23846a['model']['document']['selection']['getSelectedBlocks']()),_0x2c5838=_0x23846a['model']['createRange'](_0x23846a['model']['createPositionAt'](_0x5654d3[0x0],'before'),_0x23846a['model']['createPositionAt'](_0x5654d3[_0x5654d3['length']-0x1],'end'));_0x23846a['model']['change'](()=>{_0x1cb343['markBlockFormat'](_0x2c5838,{'commandName':_0x599e96,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28dd52){const _0x1a362e=new Set();for(const _0x541b8c of _0x28dd52){let _0x32630f=_0x541b8c['nextSibling'];for(;_0x32630f&&_0x32630f['getAttribute']('listIndent')>_0x541b8c['getAttribute']('listIndent');)_0x1a362e['add'](_0x32630f),_0x32630f=_0x32630f['nextSibling'];}return Array['from'](_0x1a362e);}(_0x5654d3));});};}_0x1cb343['enableCommand']('numberedList',_0x9f5860('numberedList')),_0x1cb343['enableCommand']('bulletedList',_0x9f5860('bulletedList')),_0x56daae&&_0x1cb343['enableCommand']('todoList',_0x9f5860('todoList')),_0x1cb343['enableCommand']('indentList',_0x3b2309('indentList')),_0x1cb343['enableCommand']('outdentList',_0x3b2309('outdentList')),_0x56daae&&_0x1cb343['enableCommand']('checkTodoList',()=>{const _0xb3d9f1=_0x23846a['commands']['get']('checkTodoList'),_0x27cf97=Array['from'](_0xb3d9f1['_selectedElements']);_0x27cf97['filter'](_0x492e3d=>_0x492e3d['getAttribute']('todoListChecked')!=_0xb3d9f1['value']),_0x23846a['model']['change'](()=>{for(const _0x35b6f0 of _0x27cf97)_0x1cb343['markBlockFormat'](_0x35b6f0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xb3d9f1['value']}]});});}),_0x1cb343['descriptionFactory']['registerElementLabel']('listItem',_0x5c641d=>o(_0x4cac01,'ELEMENT_LIST_ITEM',_0x5c641d)),_0x1cb343['descriptionFactory']['registerDescriptionCallback'](_0x2d610f=>{if('formatBlock'!=_0x2d610f['type']&&'formatInline'!=_0x2d610f['type'])return;const {data:_0xa06090}=_0x2d610f;if(_0xa06090){if('numberedList'==_0xa06090['commandName']||'bulletedList'==_0xa06090['commandName']||'todoList'==_0xa06090['commandName'])switch(_0xa06090['commandName']['replace']('List','')){case'bulleted':return _0x2ad101(o(_0x4cac01,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ad101(o(_0x4cac01,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ad101(o(_0x4cac01,'ELEMENT_TODO_LIST'));}if('indentList'==_0xa06090['commandName'])return{'type':'format','content':o(_0x4cac01,'*Indent:*\x20%0',o(_0x4cac01,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xa06090['commandName'])return{'type':'format','content':o(_0x4cac01,'*Outdent:*\x20%0',o(_0x4cac01,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xa06090['commandName'])return _0xa06090['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cac01,'*Check\x20item*')}:{'type':'format','content':o(_0x4cac01,'*Uncheck\x20item*')};}function _0x2ad101(_0x5ca166){return{'type':'format','content':o(_0x4cac01,'*Change\x20to:*\x20%0',_0x5ca166)};}});}}function fe(_0x2ebd94){const _0x1bde8e=_0x2ebd94['getAttribute']('listIndent');if(0x0==_0x1bde8e)return _0x2ebd94;let _0x173ac6=_0x2ebd94;for(;_0x2ebd94['previousSibling']&&_0x2ebd94['previousSibling']['is']('element','listItem');){const _0x380245=_0x2ebd94['previousSibling']['getAttribute']('listIndent');if(_0x380245==_0x1bde8e)_0x173ac6=_0x2ebd94['previousSibling'];else{if(_0x380245<_0x1bde8e)break;}_0x2ebd94=_0x2ebd94['previousSibling'];}return _0x173ac6;}function ue(_0x1148ff){const _0x1a5b19=[];if(_0x1148ff['is']('element','listItem')&&_0x1148ff['getAttribute']('listIndent')>0x0){let _0x2ff123=_0x1148ff['nextSibling'];for(;_0x2ff123&&'listItem'==_0x2ff123['name']&&_0x2ff123['getAttribute']('listIndent')==_0x1148ff['getAttribute']('listIndent');)_0x1a5b19['push'](_0x2ff123),_0x2ff123=_0x2ff123['nextSibling'];}return _0x1a5b19;}class W extends _0x488752{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x29393b=this['editor']['config']['get']('list.properties'),_0x130104=this['editor']['plugins']['get']('TrackChangesEditing');_0x29393b['styles']&&_0x130104['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x29393b['reversed']&&_0x130104['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x29393b['startIndex']&&_0x130104['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x130104['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x111852,_0x16c565={}){const _0x112a7e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fcbd9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x112a7e['markMultiRangeBlockFormat'](_0x2fcbd9,{'commandName':'listStyle','commandParams':[{'type':_0x16c565['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb00be1,_0x49a40b={}){const _0x1f09eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27fd9b=this['_getSuggestionBlocks'](_0x3ae6bd=>_0x3ae6bd['is']('element','listItem')&&'numbered'===_0x3ae6bd['getAttribute']('listType'));if(_0x27fd9b['length']<0x1)return;const _0x3f21b5=_0x27fd9b['map'](_0x3aa261=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3aa261,'before'),this['editor']['model']['createPositionAt'](_0x3aa261,0x0)));this['editor']['model']['change'](()=>{_0x1f09eb['markMultiRangeBlockFormat'](_0x3f21b5,{'commandName':'listReversed','commandParams':[{'reversed':_0x49a40b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x242bc1,_0x48c460={}){const _0x52aa0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169ab8=this['_getSuggestionBlocks'](_0x871051=>_0x871051['is']('element','listItem')&&'numbered'===_0x871051['getAttribute']('listType'));if(_0x169ab8['length']<0x1)return;const _0x112add=_0x169ab8['map'](_0x35e687=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x35e687,'before'),this['editor']['model']['createPositionAt'](_0x35e687,0x0)));this['editor']['model']['change'](()=>{_0x52aa0b['markMultiRangeBlockFormat'](_0x112add,{'commandName':'listStart','commandParams':[{'startIndex':_0x48c460['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2a392a){if('formatBlock'!=_0x2a392a['type']&&'formatInline'!=_0x2a392a['type'])return;const _0x4c0fa7=this['editor']['locale'],{data:_0x35f237}=_0x2a392a;if(!_0x35f237)return;let _0x3f9824,_0x453ba9;switch(_0x35f237['commandName']){case'listStyle':_0x3f9824='*Change\x20to:*\x20%0',_0x453ba9={'type':'format','content':o(_0x4c0fa7,_0x3f9824,o(_0x4c0fa7,this['_getTranslationKeyForListStyle'](_0x35f237['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3f9824=_0x35f237['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x453ba9={'type':'format','content':o(_0x4c0fa7,_0x3f9824)};break;case'listStart':_0x3f9824='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x453ba9={'type':'format','content':o(_0x4c0fa7,_0x3f9824,_0x35f237['commandParams'][0x0]['startIndex'])};}return _0x453ba9;}['_getSuggestionBlocksForListStyle'](){const _0x58d19d=this['editor']['plugins']['get']('LegacyListUtils');let _0x459eb9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x459eb9[0x0]?.['is']('element','listItem')&&_0x459eb9['unshift'](..._0x58d19d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x459eb9[_0x459eb9['length']-0x1]?.['is']('element','listItem')&&_0x459eb9['push'](..._0x58d19d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x459eb9=[...new Set(_0x459eb9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x459eb9=_0x459eb9['filter'](_0x385721=>_0x385721['is']('element','listItem'))),_0x459eb9;}['_getSuggestionBlocks'](_0x3df68a){const _0x78962b=this['editor']['plugins']['get']('LegacyListUtils');let _0x12db4c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3df68a)['map'](_0x8d6876=>{const _0x1fa64a=this['editor']['model']['createPositionAt'](_0x8d6876,0x0);return[..._0x78962b['getSiblingNodes'](_0x1fa64a,'backward'),..._0x78962b['getSiblingNodes'](_0x1fa64a,'forward')];})['flat']();return _0x12db4c=[...new Set(_0x12db4c)],_0x12db4c;}['_getTranslationKeyForListStyle'](_0x18e9c2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x18e9c2)||'default')['toUpperCase']()+'_LIST_'+_0x18e9c2['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x488752{['afterInit'](){const _0x1894b1=this['editor'];if(!_0x1894b1['plugins']['has']('MediaEmbedEditing'))return;const _0x13be17=_0x1894b1['plugins']['get']('TrackChangesEditing'),_0x2e453d=_0x1894b1['locale'];_0x13be17['enableCommand']('mediaEmbed'),_0x13be17['descriptionFactory']['registerElementLabel']('media',_0x3e376f=>o(_0x2e453d,'ELEMENT_MEDIA',_0x3e376f)),_0x1894b1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x315afc,{writer:_0x230ca9,options:_0x339c20})=>{if(_0x339c20['showSuggestionHighlights'])return _0x230ca9['createEmptyElement']('div');},'converterPriority':'high'}),_0x1894b1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5b4d7d,_0x279121,_0x14164f)=>{_0x14164f['options']['showSuggestionHighlights']&&_0x5b4d7d['stop']();},{'priority':'high'});}}class mt extends _0x488752{['afterInit'](){const _0x48b47a=this['editor'];_0x48b47a['plugins']['has']('MentionEditing')&&_0x48b47a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x488752{['afterInit'](){const _0x322b38=this['editor'];if(!_0x322b38['plugins']['has']('MergeFieldsEditing'))return;_0x322b38['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x322b38['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x49038f=_0x322b38['plugins']['get']('TrackChangesEditing'),_0x490e13=_0x322b38['locale'];_0x49038f['descriptionFactory']['registerElementLabel']('mergeField',_0x6b606f=>o(_0x490e13,'ELEMENT_MERGE_FIELD',_0x6b606f)),_0x49038f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x21ce8d=>o(_0x490e13,'ELEMENT_MERGE_FIELD',_0x21ce8d)),_0x49038f['descriptionFactory']['registerDescriptionCallback'](_0x39f4a5=>{if('insertion'!=_0x39f4a5['type']&&'deletion'!=_0x39f4a5['type'])return;const _0xda1eba=_0x39f4a5['getContainedElement']();if(null==_0xda1eba)return;if(!_0xda1eba['is']('element','mergeField')&&!_0xda1eba['is']('element','mergeFieldBlock'))return;const _0x22277c=_0x322b38['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xda1eba['getAttribute']('id'));return'insertion'==_0x39f4a5['type']?{'type':'insertion','content':o(_0x490e13,'*Insert:*\x20%0','\x22'+_0x22277c+'\x22\x20'+o(_0x490e13,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x490e13,'*Remove:*\x20%0','\x22'+_0x22277c+'\x22\x20'+o(_0x490e13,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x488752{['afterInit'](){const _0x9aa14=this['editor'],_0x266997=_0x9aa14['plugins']['get']('TrackChangesEditing');_0x9aa14['plugins']['has']('MultiLevelList')&&(_0x266997['enableDefaultAttributesIntegration']('multiLevelList'),_0x266997['registerBlockAttribute']('listMarkerStyle'),_0x266997['descriptionFactory']['registerDescriptionCallback'](_0x30cc69=>this['handleDescriptions'](_0x30cc69)));}['handleDescriptions'](_0x43827b){const _0x1f5b4c=this['editor']['locale'],{data:_0x256769}=_0x43827b,_0x3fe816={'type':'format','content':''};if(_0x256769&&'listMarkerStyle'==_0x256769['key']){if(!_0x256769['oldValue'])return{'type':'format','content':o(_0x1f5b4c,'*Set\x20format:*\x20%0',o(_0x1f5b4c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x256769['newValue']+')'};if(!_0x256769['newValue']){let _0xe9b781=_0x43827b['head'];for(;_0xe9b781;){if(_0xe9b781['data']&&'listType'==_0xe9b781['data']['key']&&_0xe9b781['data']['newValue'])return _0x3fe816;_0xe9b781=_0xe9b781['next'];}return{'type':'format','content':o(_0x1f5b4c,'*Remove\x20format:*\x20%0',o(_0x1f5b4c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x256769['oldValue']+')'};}}}}class kt extends _0x488752{['afterInit'](){const _0x2ce0d0=this['editor'];if(!_0x2ce0d0['plugins']['has']('PageBreakEditing'))return;_0x2ce0d0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x124845=_0x2ce0d0['plugins']['get']('TrackChangesEditing'),_0x58152b=_0x2ce0d0['locale'];_0x124845['descriptionFactory']['registerElementLabel']('pageBreak',_0x551e2c=>o(_0x58152b,'ELEMENT_PAGE_BREAK',_0x551e2c));}}class bt extends _0x488752{['afterInit'](){const _0xc67771=this['editor'];if(!_0xc67771['plugins']['has']('Paragraph'))return;const _0x149446=_0xc67771['locale'],_0x165add=_0xc67771['plugins']['get']('TrackChangesEditing');_0x165add['descriptionFactory']['registerElementLabel']('paragraph',_0x412291=>o(_0x149446,'ELEMENT_PARAGRAPH',_0x412291)),_0x165add['enableDefaultAttributesIntegration']('paragraph'),_0x165add['enableCommand']('insertParagraph'),_0xc67771['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xc67771),{'priority':'highest'}),_0xc67771['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x443a53,_0x5cdcfa,_0x504426)=>{_0x504426['options']['showSuggestionHighlights']&&nr(_0xc67771,{'showActiveMarker':!0x1})(_0x443a53,_0x5cdcfa,_0x504426);},{'priority':'highest'});const _0x48dcb2=_0x165add['descriptionFactory'];_0x48dcb2['registerDescriptionCallback'](_0x58d11b=>{if('insertion'!==_0x58d11b['type'])return;const {start:_0x2d4f51,end:_0x40686a}=_0x58d11b['getFirstRange']();if(!_0x2d4f51['isTouching'](_0x40686a)||!_0x2d4f51['nodeAfter'])return;const _0x13128a=_0xc67771['model']['schema'],_0x52bd48=_0x2d4f51['nodeAfter'];return _0x13128a['isBlock'](_0x52bd48)&&!_0x13128a['isLimit'](_0x52bd48)&&_0x13128a['checkChild'](_0x52bd48,'$text')?{'type':'insertion','content':o(_0x149446,'*Insert:*\x20%0',_0x48dcb2['getItemLabel'](_0x52bd48,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31a246=this['editor'],_0x1750d6=_0x31a246['locale'];_0x31a246['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b2c06=>{if('formatBlock'!=_0x5b2c06['type'])return;const {data:_0x234578}=_0x5b2c06;return _0x234578&&'paragraph'==_0x234578['commandName']?{'type':'format','content':o(_0x1750d6,'*Change\x20to:*\x20%0',o(_0x1750d6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x28ff72,{showActiveMarker:_0x16c121=!0x0}={}){return(_0x145143,_0x1f4d4e,_0x5e3559)=>{const _0x3bbb2c=_0x28ff72['plugins']['get']('TrackChangesEditing'),_0x2905f7=_0x1f4d4e['markerRange']['start'],_0x27d454=_0x1f4d4e['markerRange']['end'],_0x490e2f=_0x28ff72['model']['schema'];if(!_0x2905f7['isTouching'](_0x27d454)||!_0x2905f7['nodeAfter'])return;const _0x3b89e6=_0x2905f7['nodeAfter'];if(_0x490e2f['isBlock'](_0x3b89e6)&&!_0x490e2f['isLimit'](_0x3b89e6)&&_0x490e2f['checkChild'](_0x3b89e6,'$text')){if(!_0x5e3559['consumable']['consume'](_0x1f4d4e['markerRange'],_0x145143['name']))return;const {authorId:_0x425d73}=_0x3bbb2c['_splitMarkerName'](_0x1f4d4e['markerName']),_0x5ac92a=_0x5e3559['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x425d73}),_0x33ba73=_0x5e3559['mapper']['toViewPosition'](_0x27d454);_0x16c121&&_0x3bbb2c['activeMarkers']['includes'](_0x1f4d4e['markerName'])&&_0x5e3559['writer']['addClass']('ck-suggestion-marker--active',_0x5ac92a),_0x5e3559['writer']['insert'](_0x33ba73,_0x5ac92a),_0x5e3559['mapper']['bindElementToMarker'](_0x5ac92a,_0x1f4d4e['markerName']);}};}class wt extends _0x488752{['afterInit'](){const _0x521897=this['editor'];if(!_0x521897['plugins']['has']('RemoveFormatEditing'))return;_0x521897['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32c52c=this['editor'];_0x32c52c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d86a7=>{if('formatBlock'!=_0x1d86a7['type']&&'formatInline'!=_0x1d86a7['type'])return;const {data:_0x2c6cc5}=_0x1d86a7;return _0x2c6cc5&&'removeFormat'==_0x2c6cc5['commandName']?{'type':'format','content':o(_0x32c52c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x488752{['afterInit'](){const _0x9fb0ab=this['editor'];if(!_0x9fb0ab['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x34a27d=_0x9fb0ab['plugins']['get']('TrackChangesEditing');_0x34a27d['enableCommand']('goToPreviousRestrictedEditingException'),_0x34a27d['enableCommand']('goToNextRestrictedEditingException');const _0x5a24a7=_0x9fb0ab['plugins']['get']('RestrictedEditingModeEditing');_0x5a24a7['enableCommand']('trackChanges'),_0x5a24a7['enableCommand']('acceptSuggestion'),_0x5a24a7['enableCommand']('discardSuggestion'),_0x5a24a7['enableCommand']('acceptAllSuggestions'),_0x5a24a7['enableCommand']('discardAllSuggestions'),_0x5a24a7['enableCommand']('acceptSelectedSuggestions'),_0x5a24a7['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x488752{static get['requires'](){return[_0x2d82c0];}['init'](){const _0x466c4f=this['editor'],_0x519f9c=_0x466c4f['plugins']['get']('TrackChangesEditing');_0x519f9c['enableCommand']('shiftEnter'),_0x466c4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x466c4f),{'priority':'high'}),_0x466c4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x466c4f),{'priority':'high'}),_0x466c4f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x126374,_0x4a850d,_0x56f280)=>{_0x56f280['options']['showSuggestionHighlights']&&ge(_0x466c4f,{'showActiveMarker':!0x1})(_0x126374,_0x4a850d,_0x56f280);}),_0x519f9c['descriptionFactory']['registerElementLabel']('softBreak',_0x104ddd=>o(_0x466c4f['locale'],'ELEMENT_LINE_BREAK',_0x104ddd));}}function ge(_0x8cee4f,{showActiveMarker:_0x4107eb=!0x0}={}){return(_0x3a598e,_0xcaa4b4,_0x193472)=>{const _0x1fcb1c=_0x8cee4f['plugins']['get']('TrackChangesEditing');if(!_0x193472['consumable']['test'](_0xcaa4b4['markerRange'],_0x3a598e['name']))return;const _0x4c28ef=_0x8cee4f['model'];for(const _0x2c10d9 of _0xcaa4b4['markerRange']['getItems']()){if(!_0x2c10d9['is']('element','softBreak'))continue;const _0x2b73c9='deletion'==_0xcaa4b4['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3833b4}=_0x1fcb1c['_splitMarkerName'](_0xcaa4b4['markerName']),_0x32a4d9=_0x193472['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b73c9,'data-author-id':_0x3833b4}),_0xe3b5d5=_0x193472['mapper']['toViewPosition'](_0x4c28ef['createPositionBefore'](_0x2c10d9));_0x4107eb&&_0x1fcb1c['activeMarkers']['includes'](_0xcaa4b4['markerName'])&&_0x193472['writer']['addClass']('ck-suggestion-marker--active',_0x32a4d9),_0x193472['writer']['insert'](_0xe3b5d5,_0x32a4d9),_0x193472['mapper']['bindElementToMarker'](_0x32a4d9,_0xcaa4b4['markerName']);}};}class St extends _0x488752{['afterInit'](){const _0x18072e=this['editor'],_0x4345cb=_0x18072e['model'],_0x2a4905=_0x18072e['locale'];if(!_0x18072e['plugins']['has']('StandardEditingModeEditing'))return;const _0x33f791=_0x18072e['plugins']['get']('TrackChangesEditing'),_0x262a9e='restrictedEditingException',_0x21d074=_0x18072e['commands']['get'](_0x262a9e);_0x33f791['enableCommand'](_0x262a9e,(_0x5c56d3,_0x39a882={})=>{const _0x270193=_0x4345cb['document']['selection'];if(_0x270193['isCollapsed'])return void _0x5c56d3(_0x39a882);const _0x1e5256=void 0x0!==_0x39a882['forceValue']?_0x39a882['forceValue']:!_0x21d074['value'];_0x4345cb['change'](()=>{const _0xf01ff8=Array['from'](_0x270193['getRanges']());for(const _0x2cfc1d of _0xf01ff8){const _0x1cd0f9=_0x1e5256?[_0x2cfc1d]:io(_0x262a9e,_0x2cfc1d,_0x4345cb);for(const _0x596657 of _0x1cd0f9)_0x33f791['markInlineFormat'](_0x596657,{'commandName':_0x262a9e,'commandParams':[{'forceValue':_0x1e5256}]});}});}),_0x33f791['descriptionFactory']['registerDescriptionCallback'](_0x3012eb=>{if('formatBlock'!=_0x3012eb['type']&&'formatInline'!=_0x3012eb['type'])return;const {data:_0x19d20f}=_0x3012eb;return _0x19d20f&&_0x19d20f['commandName']==_0x262a9e?_0x19d20f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a4905,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2a4905,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x488752{['afterInit'](){const _0x584fb0=this['editor'];if(!_0x584fb0['plugins']['has']('Style')||!_0x584fb0['plugins']['has']('DataSchema'))return;const _0x5da79b=_0x584fb0['plugins']['get']('TrackChangesEditing'),_0x533df6=_0x584fb0['locale'],_0x6e75d6=_0x584fb0['config']['get']('style')||{},_0x47f5d4=_0x584fb0['plugins']['get']('GeneralHtmlSupport'),_0x2a0e26=_0x584fb0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x584fb0['plugins']['get']('DataSchema'),_0x6e75d6['definitions']);_0x5da79b['enableDefaultAttributesIntegration']('style');const _0x1afc60=new Set();for(const _0x4cf0a7 of _0x2a0e26['block']){const _0x10e648=_0x47f5d4['getGhsAttributeNameForElement'](_0x4cf0a7['element']);_0x1afc60['add'](_0x10e648);}const _0x47f560=new Set();for(const _0x38e6ca of _0x2a0e26['inline']){const _0x3be0bd=_0x47f5d4['getGhsAttributeNameForElement'](_0x38e6ca['element']);_0x47f560['add'](_0x3be0bd);for(const _0x13cff6 of _0x38e6ca['ghsAttributes'])_0x47f560['add'](_0x13cff6);}for(const _0x305b59 of _0x1afc60)_0x5da79b['registerBlockAttribute'](_0x305b59),_0x5da79b['descriptionFactory']['registerAttributeLabel'](_0x305b59,o(_0x533df6,'FORMAT_STYLE'));for(const _0x371ba5 of _0x47f560)_0x5da79b['registerInlineAttribute'](_0x371ba5),_0x5da79b['descriptionFactory']['registerAttributeLabel'](_0x371ba5,o(_0x533df6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e9ad0=this['editor'],_0x2f98bb=_0x3e9ad0['locale'];_0x3e9ad0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x575a9f=>{if('formatBlock'!=_0x575a9f['type']&&'formatInline'!=_0x575a9f['type'])return;const {data:_0x20209b}=_0x575a9f;return _0x20209b&&'style'===_0x20209b['commandName']?_0x20209b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f98bb,'*Set\x20format:*\x20%0',_0x20209b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2f98bb,'*Remove\x20format:*\x20%0',_0x20209b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x488752{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x273405){super(_0x273405),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x347dfb=this['editor'],_0xf8ed09=_0x347dfb['model']['document']['selection'];if(!_0x347dfb['plugins']['has']('TableEditing'))return;const _0x39698d=_0x347dfb['locale'],_0x1b2b3a=_0x347dfb['plugins']['get']('TrackChangesEditing'),_0x3b9c26=_0x347dfb['plugins']['get']('TableUtils');_0x1b2b3a['descriptionFactory']['registerElementLabel']('table',_0x1a0708=>o(_0x39698d,'ELEMENT_TABLE',_0x1a0708)),this['_setupColumnsRowsFixing'](),_0x1b2b3a['enableCommand']('insertTable'),_0x1b2b3a['enableCommand']('selectTableRow'),_0x1b2b3a['enableCommand']('selectTableColumn');for(const _0x1c857b of['insertTableRowAbove','insertTableRowBelow']){const _0x279076=_0x347dfb['commands']['get'](_0x1c857b);_0x1b2b3a['enableCommand'](_0x1c857b,_0x5d786d=>{_0x347dfb['model']['change'](_0xd17b57=>{_0x5d786d();const _0x4d843f='above'===_0x279076['order'],_0x12ae45=_0x3b9c26['getSelectionAffectedTableCells'](_0xf8ed09),_0x5c1799=_0x3b9c26['getRowIndexes'](_0x12ae45),_0x212bde=_0x4d843f?_0x5c1799['first']-0x1:_0x5c1799['last']+0x1,_0x448a8f=_0x12ae45[0x0]['findAncestor']('table'),_0xd5b64=_0x3b9c26['createTableWalker'](_0x448a8f,{'startRow':_0x212bde,'endRow':_0x212bde}),_0x2c29ba=Array['from'](_0xd5b64)['map'](_0x54432b=>_0xd17b57['createRangeOn'](_0x54432b['cell']));_0x1b2b3a['markMultiRangeInsertion'](_0x2c29ba,'tableRow');});});}for(const _0x3168ee of['insertTableColumnLeft','insertTableColumnRight']){const _0x475c3d=_0x347dfb['commands']['get'](_0x3168ee);_0x1b2b3a['enableCommand'](_0x3168ee,_0x5214c8=>{_0x347dfb['model']['change'](_0x5d3feb=>{_0x5214c8();const _0x756122='left'===_0x475c3d['order'],_0x2614d0=_0x3b9c26['getSelectionAffectedTableCells'](_0xf8ed09),_0x1d385b=_0x3b9c26['getColumnIndexes'](_0x2614d0),_0xd853a=_0x756122?_0x1d385b['first']-0x1:_0x1d385b['last']+0x1,_0x2962ce=_0x2614d0[0x0]['findAncestor']('table'),_0x848f33=_0x3b9c26['createTableWalker'](_0x2962ce,{'startRow':0x0,'column':_0xd853a,'includeAllSlots':!0x1}),_0x3af453=Array['from'](_0x848f33)['map'](_0x1a43f5=>_0x5d3feb['createRangeOn'](_0x1a43f5['cell']));_0x1b2b3a['markMultiRangeInsertion'](_0x3af453,'tableColumn');});});}for(const _0x286dfa of['removeTableRow','removeTableColumn']){const _0x5301c2=_0x286dfa['substr'](0xb),_0xe5baf=_0x5301c2['toLowerCase'](),_0xf4d19a=_0xe5baf['substr'](0x0,0x3)+'span',_0x36dad8='table'+_0x5301c2,_0x521bb3='min'+_0x5301c2,_0x534cfa='max'+_0x5301c2;_0x1b2b3a['enableCommand'](_0x286dfa,()=>{_0x347dfb['model']['change'](_0x183eaf=>{const _0x265450=_0x3b9c26['getSelectionAffectedTableCells'](_0xf8ed09),_0x79e872=_0x265450[0x0]['findAncestor']('table');let _0x153ae5;if('removeTableRow'==_0x286dfa){const _0x4c785c=_0x3b9c26['getRowIndexes'](_0x265450);_0x153ae5={'startRow':_0x4c785c['first'],'endRow':_0x4c785c['last'],'includeAllSlots':!0x0};}else{const _0x369df7=_0x3b9c26['getColumnIndexes'](_0x265450);_0x153ae5={'startColumn':_0x369df7['first'],'endColumn':_0x369df7['last'],'includeAllSlots':!0x0};}const _0x3ed554=_0x3b9c26['createTableWalker'](_0x79e872,_0x153ae5),_0x1682fb=Array['from'](_0x3ed554)['map'](({cell:_0x481c8f})=>_0x481c8f),_0x574f39=be(_0x1682fb['filter'](_0x4fea0a=>_0x4fea0a['hasAttribute'](_0xf4d19a))),_0x535ef6=be(_0x1682fb['filter'](_0x1e67d7=>!_0x1e67d7['hasAttribute'](_0xf4d19a)))['map'](_0x111da9=>_0x183eaf['createRangeOn'](_0x111da9)),_0x158c31=_0x1b2b3a['markMultiRangeDeletion'](_0x535ef6,_0x36dad8);if(_0x158c31&&('tableRow'==_0x158c31['subType']||'tableColumn'==_0x158c31['subType'])){const _0x2d94c7=this['_getSuggestionCoords'](_0x158c31);for(const _0x5c8459 of _0x574f39){const _0xb0c6f0=_0x183eaf['createRangeOn'](_0x5c8459),_0x37a042=_0x3b9c26['getCellLocation'](_0x5c8459),_0x50b6ea=_0x5c8459['getAttribute'](_0xf4d19a)-0x1,_0x498eb9=_0x2d94c7[_0x521bb3],_0x1435bf=_0x2d94c7[_0x534cfa];_0x498eb9<=_0x37a042[_0xe5baf]&&_0x37a042[_0xe5baf]+_0x50b6ea<=_0x1435bf&&_0x158c31['addRange'](_0xb0c6f0);}}});});}function _0x2807b4(_0x56fe69){const _0x411cb5=Array['from'](_0xf8ed09['getRanges']())['map'](_0xb2e7ad=>_0xd05373['fromRange'](_0xb2e7ad));_0x347dfb['model']['change'](_0x30dc13=>{const _0x5650c3=_0x30dc13['batch'];_0x56fe69=_0x56fe69['filter'](_0x3fe540=>'$graveyard'!=_0x3fe540['root']['rootName']),_0x30dc13['setSelection'](_0x56fe69),_0x347dfb['commands']['get']('removeTableRow')['refresh'](),_0x347dfb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x347dfb['model']['enqueueChange'](()=>{_0x347dfb['model']['enqueueChange'](_0x5650c3,_0x28d67e=>{const _0x17fc63=_0x411cb5['filter'](_0x171ee6=>'$graveyard'!=_0x171ee6['root']['rootName']);_0x17fc63['length']>0x0&&_0x28d67e['setSelection'](_0x17fc63);for(const _0x2427a2 of _0x411cb5)_0x2427a2['detach']();});});});}function _0x41be52(_0x46ad34){_0x347dfb['model']['change'](_0x5210d2=>{const _0x2b499a=Array['from'](_0xf8ed09['getRanges']())['map'](_0x288ffe=>_0xd05373['fromRange'](_0x288ffe)),_0xb0ac21=[];for(const _0x5670e7 of _0x46ad34)for(const _0x594896 of _0x5670e7['getItems']({'shallow':!0x0}))_0xb0ac21['push'](_0x594896);for(const _0x66e004 of _0xb0ac21)'$graveyard'!=_0x66e004['root']['rootName']&&(_0x5210d2['setSelection'](_0x5210d2['createPositionAt'](_0x66e004,0x0)),_0x347dfb['commands']['get']('removeTableColumn')['refresh'](),_0x347dfb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x50596c=_0x2b499a['filter'](_0x386d33=>'$graveyard'!=_0x386d33['root']['rootName']);_0x50596c['length']>0x0&&_0x5210d2['setSelection'](_0x50596c);for(const _0x18223f of _0x2b499a)_0x18223f['detach']();});}function _0x5806ca(_0x1e4fcb,_0x2167f7){return _0x2167f7['every'](_0x4b84bf=>_0x1e4fcb['some'](_0x3c2504=>_0x3c2504['end']['isEqual'](_0x4b84bf['start'])||_0x4b84bf['end']['isEqual'](_0x3c2504['start'])));}function _0x3071c2(_0x23615d,_0x1f4f5a){return!_0x23615d['some'](_0xa3e896=>_0x1f4f5a['some'](_0x53ee40=>_0xa3e896['isIntersecting'](_0x53ee40)))&&_0x23615d['some'](_0x5e5fe8=>_0x1f4f5a['some'](_0x168921=>_0x5e5fe8['end']['isTouching'](_0x168921['start'])));}_0x347dfb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x315da8,_0x1b8c3f,_0x256d8e)=>{if(!_0x256d8e['options']['showSuggestionHighlights'])return;const _0x32bcb4=_0x1b8c3f['item'];if(!_0x32bcb4)return;const _0x5481de=_0x256d8e['mapper']['toViewElement'](_0x32bcb4);function _0x124afb(_0x85d2b7){return Array['isArray'](_0x85d2b7)?_0x85d2b7:[_0x85d2b7];}_0x5481de&&'tableCell'===_0x32bcb4['name']&&_0x4deab7(_0x5481de,_0x256d8e['writer'],(_0x106970,_0xdc2451,_0xeeaccf)=>_0xeeaccf['addClass'](_0x124afb(_0xdc2451['classes']),_0x106970),(_0x17c7d7,_0x54dbf8,_0x15c425)=>_0x15c425['removeClass'](_0x124afb(_0x54dbf8['classes']),_0x17c7d7));},{'priority':'highest'}),_0x1b2b3a['descriptionFactory']['registerDescriptionCallback'](_0x3481e8=>{if('insertion'!=_0x3481e8['type']&&'deletion'!=_0x3481e8['type'])return;const _0x81648=_0x3481e8['getContainedElement']();if(null!=_0x81648&&_0x81648['is']('element','table')){if('insertion'==_0x3481e8['type']){const _0x4a4218=_0x3481e8['getItems']()['filter'](_0x36c664=>_0x36c664['is']('$textProxy'))['map'](_0xc7f927=>_0xc7f927['data']);if(_0x4a4218['length'])return{'type':'insertion','content':o(_0x39698d,'*Insert:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a4218['join']('\x20')+'\x22'))};}if('deletion'==_0x3481e8['type']){const _0x3ae4bc=_0x3481e8['getItems']()['filter'](_0x52f09d=>_0x52f09d['is']('$textProxy'))['map'](_0x5d01d9=>_0x5d01d9['data']);if(_0x3ae4bc['length'])return{'type':'deletion','content':o(_0x39698d,'*Remove:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ae4bc['join']('\x20')+'\x22'))};}}}),_0x1b2b3a['descriptionFactory']['registerDescriptionCallback'](_0x1f1844=>{if('tableRow'==_0x1f1844['subType']){const _0x501c5b=_0x1f1844['getItems']()['filter'](_0x2c3d74=>_0x2c3d74['is']('$textProxy'))['map'](_0x4ddaad=>_0x4ddaad['data']),_0x50c382=this['_getSuggestionCoords'](_0x1f1844),_0x172e25=_0x50c382['maxRow']-_0x50c382['minRow']+0x1;if('insertion'==_0x1f1844['type'])return _0x501c5b['length']?{'type':'insertion','content':o(_0x39698d,'*Insert:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x172e25,'\x22'+_0x501c5b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39698d,'*Insert:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_ROW',_0x172e25))};if('deletion'==_0x1f1844['type'])return _0x501c5b['length']?{'type':'deletion','content':o(_0x39698d,'*Remove:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x172e25,'\x22'+_0x501c5b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39698d,'*Remove:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_ROW',_0x172e25))};}if('tableColumn'==_0x1f1844['subType']){const _0x3c0968=_0x1f1844['getItems']()['filter'](_0x2e6b93=>_0x2e6b93['is']('$textProxy'))['map'](_0x5800d6=>_0x5800d6['data']),_0x10fb32=this['_getSuggestionCoords'](_0x1f1844),_0x3bf403=_0x10fb32['maxColumn']-_0x10fb32['minColumn']+0x1;if('insertion'==_0x1f1844['type'])return _0x3c0968['length']?{'type':'insertion','content':o(_0x39698d,'*Insert:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3bf403,'\x22'+_0x3c0968['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39698d,'*Insert:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_COLUMN',_0x3bf403))};if('deletion'==_0x1f1844['type'])return _0x3c0968['length']?{'type':'deletion','content':o(_0x39698d,'*Remove:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3bf403,'\x22'+_0x3c0968['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39698d,'*Remove:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_COLUMN',_0x3bf403))};}}),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2807b4),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2807b4),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x41be52),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x41be52),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5806ca),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5806ca),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3071c2),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3071c2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x181191=this['editor'],_0x1913de=_0x181191['model']['document']['selection'];return(_0xd9c894,_0x11655c)=>{_0x181191['model']['change'](_0x940e06=>{const {commandName:_0xaa70de,commandParams:_0x3304c4}=_0x11655c;let _0x1f897d=_0xd9c894[0x0]['end']['nodeBefore'];_0x3304c4&&_0x3304c4[0x0]&&!0x1===_0x3304c4[0x0]['forceValue']&&(_0x1f897d=_0xd9c894[0x0]['start']['nodeAfter']);const _0x30fb99=_0x940e06['createRangeIn'](_0x1f897d);if('$graveyard'==_0x30fb99['root']['rootName'])return;const _0x5a3fe1=Array['from'](_0x1913de['getRanges']())['map'](_0x11e6cf=>_0xd05373['fromRange'](_0x11e6cf));_0x940e06['setSelection'](_0x30fb99),_0x181191['commands']['get'](_0xaa70de)['refresh'](),_0x3304c4['push']({'forceDefaultExecution':!0x0}),_0x181191['execute'](_0xaa70de,..._0x3304c4);const _0x5085ad=_0x5a3fe1['filter'](_0x3a6d59=>'$graveyard'!=_0x3a6d59['root']['rootName']);_0x5085ad['length']>0x0&&_0x940e06['setSelection'](_0x5085ad);for(const _0x2432aa of _0x5a3fe1)_0x2432aa['detach']();});};}['_getCoordsForCells'](_0x1349a4){const _0x19b9ed=this['editor']['plugins']['get']('TableUtils');let _0x781204=Number['MAX_SAFE_INTEGER'],_0x488bee=Number['MIN_SAFE_INTEGER'],_0x43e00e=Number['MAX_SAFE_INTEGER'],_0x5d29b4=Number['MIN_SAFE_INTEGER'];for(const _0x1a82b6 of _0x1349a4){if('$graveyard'==_0x1a82b6['root']['rootName'])continue;const {row:_0x46ada9,column:_0x2f6112}=_0x19b9ed['getCellLocation'](_0x1a82b6),_0x29a1a5=_0x1a82b6['hasAttribute']('rowspan')?_0x1a82b6['getAttribute']('rowspan')-0x1:0x0,_0x278e84=_0x1a82b6['hasAttribute']('colspan')?_0x1a82b6['getAttribute']('colspan')-0x1:0x0;_0x781204=_0x46ada9<_0x781204?_0x46ada9:_0x781204,_0x488bee=_0x46ada9+_0x29a1a5>_0x488bee?_0x46ada9+_0x29a1a5:_0x488bee,_0x43e00e=_0x2f6112<_0x43e00e?_0x2f6112:_0x43e00e,_0x5d29b4=_0x2f6112+_0x278e84>_0x5d29b4?_0x2f6112+_0x278e84:_0x5d29b4;}return{'minRow':_0x781204,'maxRow':_0x488bee,'minColumn':_0x43e00e,'maxColumn':_0x5d29b4};}['_setupColumnsRowsFixing'](){const _0x5d3dea=this['editor'],_0x4606b3=_0x5d3dea['plugins']['get']('TrackChangesEditing'),_0x2bfa48=_0x5d3dea['plugins']['get']('TableUtils');_0x5d3dea['model']['document']['on']('change:data',()=>{const _0x12b72a=Array['from'](_0x5d3dea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7598df,data:_0x18147e}of _0x12b72a){const {group:_0x201d66,id:_0x2f08b7,subType:_0x16d56a}=_0x4606b3['_splitMarkerName'](_0x7598df);if('suggestion'!=_0x201d66)continue;if(null!=_0x18147e['oldRange'])continue;const _0x52a018=_0x4606b3['getSuggestion'](_0x2f08b7);this['_tablePostFixingSubtypes']['includes'](_0x16d56a)&&this['_tableSuggestions']['add'](_0x52a018);}},{'priority':'low'});const _0x955d0a=(_0x57d2b1,_0xced505)=>{let _0x1a04fc=!0x1;const _0x1bcfaf=_0xced505['createRangeOn'](_0x57d2b1),_0x456243=_0x57d2b1['findAncestor']('table'),_0x4c494a=_0x2bfa48['getCellLocation'](_0x57d2b1);for(const _0x31fedf of this['_tableSuggestions']){const _0x25ff6b=_0x31fedf['subType'],_0x14a07b=_0x25ff6b['startsWith']('tablePaste'),_0x47ae80=_0x25ff6b['substr'](_0x14a07b?0xa:0x5),_0x5069eb=_0x47ae80['toLowerCase'](),_0x4defe3=_0x5069eb['substr'](0x0,0x3)+'span',_0x19ba86='min'+_0x47ae80,_0x333be1='max'+_0x47ae80;if(!_0x31fedf['isInContent'])continue;if(_0x456243!=_0x31fedf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x31fedf['isIntersectingWithRange'](_0x1bcfaf))continue;const _0x5077c1=_0x57d2b1['hasAttribute'](_0x4defe3)?_0x57d2b1['getAttribute'](_0x4defe3)-0x1:0x0,_0x3c605f=this['_getSuggestionCoords'](_0x31fedf),_0x3ccd0e=_0x3c605f[_0x19ba86],_0x423b2b=_0x3c605f[_0x333be1];_0x3ccd0e<=_0x4c494a[_0x5069eb]&&_0x4c494a[_0x5069eb]+_0x5077c1<=_0x423b2b&&(_0x31fedf['addRange'](_0x1bcfaf),_0x1a04fc=!0x0);}return _0x1a04fc;};_0x5d3dea['model']['document']['registerPostFixer'](_0x5a42e8=>{let _0x4548fa=!0x1;for(const _0x15f1ef of _0x5d3dea['model']['document']['differ']['getChanges']())if('insert'==_0x15f1ef['type']){if('tableRow'==_0x15f1ef['name']){for(const _0x1c4aed of _0x15f1ef['position']['nodeAfter']['getChildren']())_0x4548fa=_0x4548fa||_0x955d0a(_0x1c4aed,_0x5a42e8);}else'tableCell'==_0x15f1ef['name']&&(_0x4548fa=_0x4548fa||_0x955d0a(_0x15f1ef['position']['nodeAfter'],_0x5a42e8));}return _0x4548fa;});}['_getSuggestionCoords'](_0x405fb6){return this['_getCoordsForCells'](_0x405fb6['getRanges']()['map'](_0x51c0c0=>_0x51c0c0['start']['nodeAfter']));}}function be(_0x494c95){return Array['from'](new Set(_0x494c95)['values']());}class vt extends _0x488752{static get['requires'](){return[It];}['afterInit'](){const _0x16eaab=this['editor'],_0x8d001f=_0x16eaab['model']['document']['selection'],_0x505f81=_0x16eaab['locale'];if(!_0x16eaab['plugins']['has']('TableEditing'))return;const _0x9d61c6=_0x16eaab['plugins']['get']('TrackChangesEditing'),_0x16e239=_0x16eaab['plugins']['get']('TableUtils'),_0x3a3a53=_0x16eaab['plugins']['get'](It);_0x3a3a53['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x9d61c6['enableCommand']('mergeTableCells',()=>{const _0x5b021d=_0x16e239['getSelectionAffectedTableCells'](_0x16eaab['model']['document']['selection']);_0x16eaab['model']['change'](()=>{_0x9d61c6['markMultiRangeBlockFormat'](_0x5b021d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x16eaab['commands']['get']('mergeTableCells')['on']('execute',(_0x2b086c,_0x78a110)=>{_0x16eaab['commands']['get']('trackChanges')['value']&&(_0x78a110['length']>0x0&&_0x78a110[_0x78a110['length']-0x1]&&_0x78a110[_0x78a110['length']-0x1]['forceDefaultExecution']||_0x9d61c6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2b086c['stop']());},{'priority':'highest'});for(const _0x56087b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x301b8b=_0x16eaab['commands']['get'](_0x56087b);_0x9d61c6['enableCommand'](_0x56087b,()=>{const _0x164df5=_0x16eaab['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1d6b09=>_0x1d6b09['is']('element','tableCell')),_0x7d75d6=_0x301b8b['value'];_0x16eaab['model']['change'](()=>{_0x9d61c6['markMultiRangeBlockFormat']([_0x164df5,_0x7d75d6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x222fdb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1065fe=_0x16eaab['commands']['get'](_0x222fdb);_0x9d61c6['enableCommand'](_0x222fdb,()=>{const _0x494845=_0x16e239['getSelectionAffectedTableCells'](_0x16eaab['model']['document']['selection'])[0x0],_0x55f67b=_0x494845['findAncestor']('table'),{column:_0xd97e66,row:_0x461869}=_0x16e239['getCellLocation'](_0x494845);let _0x266ea7=[];if('horizontally'==_0x1065fe['direction']){const _0x343a8f=_0x16e239['createTableWalker'](_0x55f67b,{'startRow':_0x461869,'endRow':_0x461869,'includeAllSlots':!0x0});_0x266ea7=Array['from'](_0x343a8f)['map'](_0x2f8152=>_0x2f8152['cell']);}else{const _0x404c47=_0x16e239['createTableWalker'](_0x55f67b,{'column':_0xd97e66,'includeAllSlots':!0x0});_0x266ea7=Array['from'](_0x404c47)['map'](_0x3490e4=>_0x3490e4['cell']);}_0x16eaab['model']['change'](_0x939fb8=>{_0x9d61c6['markBlockFormat'](_0x939fb8['createRangeOn'](_0x494845),{'commandName':_0x222fdb,'commandParams':[]},_0x266ea7,_0x222fdb);});});}_0x9d61c6['descriptionFactory']['registerDescriptionCallback'](_0x1d8b04=>{if('formatBlock'!=_0x1d8b04['type']&&'formatInline'!=_0x1d8b04['type'])return;const {data:_0x48c2f5}=_0x1d8b04;return _0x48c2f5&&'mergeTableCells'==_0x48c2f5['commandName']?{'type':'format','content':o(_0x505f81,'*Merge\x20cells*')}:void 0x0;}),_0x9d61c6['descriptionFactory']['registerDescriptionCallback'](_0x178011=>{if('formatBlock'!=_0x178011['type']&&'formatInline'!=_0x178011['type'])return;const {data:_0x1b31ea}=_0x178011;return _0x1b31ea?'splitTableCellVertically'==_0x1b31ea['commandName']?{'type':'format','content':o(_0x505f81,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1b31ea['commandName']?{'type':'format','content':o(_0x505f81,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x27abba=_0x3a3a53['_acceptFormatSuggestionCallbackFactory']();for(const _0xa84c76 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x9d61c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa84c76,'accept',_0x27abba);for(const _0x3f2a05 of['splitTableCellVertically','splitTableCellHorizontally'])_0x9d61c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f2a05,'accept',_0x27abba);_0x9d61c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1fa889=>{_0x16eaab['model']['change'](_0x1e263a=>{const _0x79a4b3=Array['from'](_0x8d001f['getRanges']())['map'](_0x9745c7=>_0xd05373['fromRange'](_0x9745c7));_0x1e263a['setSelection'](_0x1fa889),_0x16eaab['commands']['get']('mergeTableCells')['refresh'](),_0x16eaab['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xa157e8=_0x79a4b3['filter'](_0x52e011=>'$graveyard'!=_0x52e011['root']['rootName']);_0xa157e8['length']>0x0&&_0x1e263a['setSelection'](_0xa157e8);for(const _0x2cca8a of _0x79a4b3)_0x2cca8a['detach']();});});for(const _0x3e06e0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x334019=_0x16eaab['commands']['get'](_0x3e06e0);_0x334019['on']('set:isEnabled',(_0x53b4a2,_0x602f1d,_0x89cd39)=>{if(_0x89cd39){const _0x28b222=_0x16eaab['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x231d8c=>_0x231d8c['is']('element','tableCell'));this['_areMergableCells'](_0x334019['value'],_0x28b222)||(_0x53b4a2['return']=!0x1,_0x53b4a2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1ec3a5=this['editor']['commands']['get']('mergeTableCells'),_0x3754e1=this['editor']['plugins']['get']('TableUtils');if(!_0x1ec3a5['isEnabled'])return!0x1;const _0x372f6e=_0x3754e1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x44ec74 of _0x372f6e)for(const _0x456845 of _0x372f6e)if(_0x44ec74!=_0x456845&&!this['_areMergableCells'](_0x44ec74,_0x456845))return!0x1;return!0x0;}['_areMergableCells'](_0x36d9b1,_0x123135){const _0x27d7dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30d00d=this['editor']['model']['createRangeOn'](_0x36d9b1),_0x43d020=this['editor']['model']['createRangeOn'](_0x123135),_0x19e4b2=new Set(),_0x2b1db5=new Set();for(const _0x24d4e6 of _0x27d7dd['getSuggestions']())if(('insertion'==_0x24d4e6['type']||'deletion'==_0x24d4e6['type']||'mergeTableCells'==_0x24d4e6['subType'])&&_0x24d4e6['isInContent']){for(const _0x4d5264 of _0x24d4e6['getRanges']())_0x4d5264['containsRange'](_0x30d00d,!0x0)&&_0x19e4b2['add'](_0x24d4e6['type']+':'+_0x24d4e6['author']['id']),_0x4d5264['containsRange'](_0x43d020,!0x0)&&_0x2b1db5['add'](_0x24d4e6['type']+':'+_0x24d4e6['author']['id']);}if(_0x19e4b2['size']!=_0x2b1db5['size'])return!0x1;for(const _0x5e5666 of _0x19e4b2)if(!_0x2b1db5['has'](_0x5e5666))return!0x1;return!0x0;}}class Ct extends _0x488752{static get['requires'](){return[It];}['afterInit'](){const _0x6f6d27=this['editor'];if(!_0x6f6d27['plugins']['has']('TableEditing'))return;const _0x27be73=_0x6f6d27['locale'],_0x5e34e1=_0x6f6d27['plugins']['get']('TrackChangesEditing');_0x5e34e1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e34e1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e34e1['registerBlockAttribute']('headingRows'),_0x5e34e1['registerBlockAttribute']('headingColumns'),_0x5e34e1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x27be73,'FORMAT_HEADER_ROW')),_0x5e34e1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x27be73,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3202d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22a597=this['editor']['plugins']['get']('TableUtils'),_0x4c428d=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x9e4017({showActiveMarker:_0xedf45c=!0x0,setDataAttribute:_0x5bec08=!0x0}={}){return(_0x27f65b,_0x246b1f,_0xc06137)=>{const {type:_0x18e066,id:_0x3d64fe}=_0x3202d8['_splitMarkerName'](_0x246b1f['markerName']),_0x4fb242=_0x3202d8['getSuggestion'](_0x3d64fe),_0x4e27e8=_0x4fb242['data'];if('formatBlock'!=_0x4fb242['type']||!_0x4e27e8||'setTableColumnHeader'!=_0x4e27e8['commandName'])return;if(_0x246b1f['item'])return void _0x27f65b['stop']();if(!_0xc06137['consumable']['consume'](_0x246b1f['markerRange'],_0x27f65b['name']))return;const _0xb1ff8e=_0x246b1f['markerRange']['start']['nodeAfter'],_0x6c49d5=_0x246b1f['markerRange']['end']['nodeBefore'],_0x551815=_0xb1ff8e['parent']['parent'],{column:_0x50ae0d}=_0x22a597['getCellLocation'](_0xb1ff8e),{column:_0x649148}=_0x22a597['getCellLocation'](_0x6c49d5);for(let _0x241b6b=_0x50ae0d;_0x241b6b<=_0x649148;_0x241b6b++){const _0x9fc69=_0x22a597['createTableWalker'](_0x551815,{'column':_0x241b6b,'includeAllSlots':!0x1});for(const _0xd9892e of _0x9fc69){const _0x162280=_0xd9892e['cell'],_0x663154=_0xc06137['mapper']['toViewElement'](_0x162280);_0xc06137['writer']['addClass']('ck-suggestion-marker-'+_0x18e066,_0x663154),_0x5bec08&&_0xc06137['writer']['setAttribute']('data-suggestion',_0x3d64fe,_0x663154),_0xc06137['mapper']['bindElementToMarker'](_0x663154,_0x246b1f['markerName']),_0xedf45c&&(_0x3202d8['activeMarkers']['includes'](_0x246b1f['markerName'])?_0xc06137['writer']['addClass']('ck-suggestion-marker--active',_0x663154):_0xc06137['writer']['removeClass']('ck-suggestion-marker--active',_0x663154));}}};}_0x3202d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c428d),_0x3202d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c428d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x9e4017(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d6b2b,_0x2564b8,_0xdf717b)=>{_0xdf717b['options']['showSuggestionHighlights']&&_0x9e4017({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3d6b2b,_0x2564b8,_0xdf717b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x21829f,_0x1c749b,_0x5a2f0b)=>{const {type:_0x461aee,id:_0xb7d1b3}=_0x3202d8['_splitMarkerName'](_0x1c749b['markerName']),_0x4d8d57=_0x3202d8['getSuggestion'](_0xb7d1b3),_0xe4c2d2=_0x4d8d57['data'];if('formatBlock'!=_0x4d8d57['type']||!_0xe4c2d2||'setTableColumnHeader'!=_0xe4c2d2['commandName'])return;const _0x486fe7=_0x5a2f0b['mapper']['markerNameToElements'](_0x1c749b['markerName']);if(_0x486fe7){for(const _0x136b8c of _0x486fe7)_0x5a2f0b['writer']['removeClass']('ck-suggestion-marker-'+_0x461aee,_0x136b8c),_0x5a2f0b['writer']['removeClass']('ck-suggestion-marker--active',_0x136b8c),_0x5a2f0b['writer']['removeAttribute']('data-suggestion',_0x136b8c),_0x5a2f0b['mapper']['unbindElementFromMarkerName'](_0x136b8c,_0x1c749b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15c973=this['editor'],_0x447b8e=_0x15c973['locale'];function _0x5d6ae5(_0x3f0a26){return{'type':'format','content':o(_0x447b8e,'*Format:*\x20%0',_0x3f0a26)};}_0x15c973['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36938a=>{if('formatBlock'!=_0x36938a['type'])return;const {data:_0x1a2bd7}=_0x36938a;if(_0x1a2bd7){if('setTableRowHeader'==_0x1a2bd7['commandName']){const _0x597c55=_0x1a2bd7['commandParams'][0x0]['forceValue'];return _0x5d6ae5(o(_0x447b8e,_0x597c55?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1a2bd7['commandName']){const _0x108a2c=_0x1a2bd7['commandParams'][0x0]['forceValue'];return _0x5d6ae5(o(_0x447b8e,_0x108a2c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x123759=>[_0x123759,null]));class _t extends _0x488752{static get['requires'](){return[It];}['afterInit'](){const _0x53d17e=this['editor'];if(!_0x53d17e['plugins']['has']('TableClipboard'))return;const _0x1f8ccc=_0x53d17e['plugins']['get']('TrackChangesEditing'),_0x39b7c7=_0x53d17e['plugins']['get']('TableUtils'),_0x2a41d3=_0x53d17e['plugins']['get'](It),_0x22dc53=_0x53d17e['plugins']['get']('TableClipboard');_0x2a41d3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x53d17e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x53d17e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5420c6=null;_0x53d17e['model']['on']('insertContent',(_0x5eafed,_0x4608d8)=>{const [_0x72826e,_0x3ea4e6]=_0x4608d8,_0x418ae4=_0x4608d8[_0x4608d8['length']-0x1];_0x418ae4&&_0x418ae4['forceDefaultExecution']||_0x1f8ccc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5daebb,_0x4e4b9a,_0x2c5a96,_0x47103a,_0xcc4888){if(_0x4e4b9a&&!_0x4e4b9a['is']('documentSelection'))return!0x1;const _0x13f423=_0xcc4888['getTableIfOnlyTableInContent'](_0x5daebb,_0x2c5a96);if(!_0x13f423||!Re(_0x13f423,void 0x0,_0x47103a))return!0x1;const _0x365d24=_0x47103a['getSelectionAffectedTableCells'](_0x2c5a96['document']['selection']);if(!_0x365d24['length'])return!0x1;const _0x4446c8=_0x365d24[0x0]['findAncestor']('table'),_0x53db09=_0x47103a['getRowIndexes'](_0x365d24),_0x2fb3d6=_0x47103a['getColumnIndexes'](_0x365d24),_0x564588={'startRow':_0x53db09['first'],'endRow':_0x53db09['last'],'startColumn':_0x2fb3d6['first'],'endColumn':_0x2fb3d6['last']};return 0x1==_0x365d24['length']&&(_0x564588['endRow']+=_0x47103a['getRows'](_0x13f423)-0x1,_0x564588['endColumn']+=_0x47103a['getColumns'](_0x13f423)-0x1),Re(_0x4446c8,_0x564588,_0x47103a);}(_0x72826e,_0x3ea4e6,_0x53d17e['model'],_0x39b7c7,_0x22dc53)&&(_0x5eafed['stop'](),_0x5420c6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x53d17e['model']['change'](()=>{_0x53d17e['model']['insertContent'](_0x4608d8[0x0],_0x4608d8[0x1],_0x4608d8[0x2],{'forceDefaultExecution':!0x0});const _0x3fcbc2=_0x3309d5(),{rowInsertionRanges:_0x58eb1f,columnInsertionRanges:_0x554210,insertionRanges:_0x1b6587,deletionRanges:_0x231f48,cells:_0x5dfe6c}=_0x5420c6;_0x58eb1f['length']&&_0x1f8ccc['markMultiRangeInsertion'](_0x58eb1f,'tablePasteRow',{'tablePasteChainId':_0x3fcbc2}),_0x554210['length']&&_0x1f8ccc['markMultiRangeInsertion'](_0x554210,'tablePasteColumn',{'tablePasteChainId':_0x3fcbc2}),_0x1b6587['length']&&(_0x1f8ccc['markMultiRangeInsertion'](_0x1b6587,'tablePaste',{'tablePasteChainId':_0x3fcbc2,'skipNestingCheck':!0x0}),_0x1b6587['forEach'](_0x1bf0b0=>_0x1bf0b0['detach']?.())),_0x231f48['length']&&(_0x1f8ccc['markMultiRangeDeletion'](_0x231f48,'tablePaste',{'tablePasteChainId':_0x3fcbc2,'skipNestingCheck':!0x0}),_0x231f48['forEach'](_0x4a6fac=>_0x4a6fac['detach']?.()));const _0xdefa3e=_0x1f8ccc['markMultiRangeBlockFormat'](_0x5dfe6c['map'](({element:_0x1320fb})=>_0x1320fb),{'formatGroupId':_0x3309d5()},[],'tablePasteCell',{'tablePasteChainId':_0x3fcbc2});if(_0xdefa3e){const _0x228e49=_0xdefa3e['getMarkers'](),_0x27b138=[];for(const {element:_0x3fe2c2,attributes:_0x52e0ea}of _0x5dfe6c){if(!_0x52e0ea)continue;const _0x3297ae=_0x53d17e['model']['createRangeOn'](_0x3fe2c2),_0x2ea6d7=_0x228e49['find'](_0x608ba=>_0x608ba['getRange']()['isEqual'](_0x3297ae));_0x2ea6d7&&_0x27b138['push']([_0x2ea6d7['name'],_0x52e0ea]);}_0x27b138['length']&&_0xdefa3e['setAttribute']('markerAttributes',Object['fromEntries'](_0x27b138));}_0x5420c6=null;}));},{'priority':_0x30ed80['high']+0xa}),_0x53d17e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2af2f1,_0x4b4bef)=>{const [_0x291471,_0x3021e2,,_0x1d4142]=_0x4b4bef;if(!_0x5420c6)return;_0x2af2f1['stop']();const _0x31fea3=_0x291471['cell'],_0x562a3b=_0x3021e2,_0x101c90=ke(_0x31fea3),_0x1927dd=ke(_0x562a3b);_0x2af2f1['return']=_0x31fea3;let _0x2fa9bf=null,_0x2247c2=null;if(_0x1927dd||_0x101c90){if(_0x101c90&&!_0x1927dd){_0x1d4142['remove'](_0x31fea3['getChild'](0x0));for(const _0x53d96b of Array['from'](_0x562a3b['getChildren']()))_0x1d4142['insert'](_0x53d96b,_0x31fea3,'end');const _0x146db0=_0x5420c6['rowInsertionIndexes']['includes'](_0x291471['row']),_0x40a8f6=_0x5420c6['columnInsertionIndexes']['includes'](_0x291471['column']);_0x146db0||_0x40a8f6||(_0x2fa9bf=_0xd05373['fromRange'](_0x1d4142['createRangeIn'](_0x31fea3)));}else _0x1927dd&&!_0x101c90&&(_0x2247c2=_0x1d4142['createRangeIn'](_0x31fea3));}else{const _0x579252=_0x1d4142['createElement']('tableCellSuggestion'),_0x2815aa=_0x1d4142['createElement']('tableCellSuggestion');_0x1d4142['wrap'](_0x1d4142['createRangeIn'](_0x31fea3),_0x2815aa),_0x1d4142['insert'](_0x579252,_0x31fea3,0x0);for(const _0x4d97c4 of Array['from'](_0x562a3b['getChildren']()))_0x1d4142['insert'](_0x4d97c4,_0x579252,'end');_0x2fa9bf=_0xd05373['fromRange'](_0x1d4142['createRangeOn'](_0x579252)),_0x2247c2=_0xd05373['fromRange'](_0x1d4142['createRangeOn'](_0x2815aa));}const _0x251b68=Array['from'](_0x562a3b['getAttributes']())['filter'](([_0x11e76d])=>Pe['includes'](_0x11e76d));_0x5420c6['cells']['push']({'element':_0x31fea3,'attributes':_0x251b68['length']?Object['fromEntries'](_0x251b68):null}),_0x2fa9bf&&_0x5420c6['insertionRanges']['push'](_0x2fa9bf),_0x2247c2&&_0x5420c6['deletionRanges']['push'](_0x2247c2);},{'priority':'high'}),_0x39b7c7['on']('insertColumns',(_0x57e17f,_0x41aafd)=>{const [_0x5b017e,_0x4060f5={}]=_0x41aafd;if(!_0x5420c6)return;const _0x8075df=_0x4060f5['at']||0x0,_0x3ca57b=_0x4060f5['columns']||0x1;_0x5420c6['columnInsertionIndexes']=new Array(_0x3ca57b)['fill'](_0x8075df)['map']((_0x119517,_0x4fb65d)=>_0x119517+_0x4fb65d);for(const {cell:_0x3ae37f}of _0x39b7c7['createTableWalker'](_0x5b017e,{'startColumn':_0x8075df,'endColumn':_0x8075df+_0x3ca57b-0x1}))_0x5420c6['columnInsertionRanges']['push'](_0x53d17e['model']['createRangeOn'](_0x3ae37f));},{'priority':'low'}),_0x39b7c7['on']('insertRows',(_0x9d4125,_0x23342d)=>{const [_0x2fde60,_0xac4c81={}]=_0x23342d;if(!_0x5420c6)return;const _0x226c81=_0xac4c81['at']||0x0,_0x9364d1=_0xac4c81['rows']||0x1;_0x5420c6['rowInsertionIndexes']=new Array(_0x9364d1)['fill'](_0x226c81)['map']((_0x5c21e7,_0x52fbdb)=>_0x5c21e7+_0x52fbdb);for(const {cell:_0x5565d5}of _0x39b7c7['createTableWalker'](_0x2fde60,{'startRow':_0x226c81,'endRow':_0x226c81+_0x9364d1-0x1}))_0x5420c6['rowInsertionRanges']['push'](_0x53d17e['model']['createRangeOn'](_0x5565d5));},{'priority':'low'}),_0x1f8ccc['descriptionFactory']['registerDescriptionCallback'](_0x420731=>{if(_0x420731['subType']&&_0x420731['subType']['startsWith']('tablePaste'))return _0x420731['previous']?{}:{'type':'insertion','content':o(_0x53d17e['locale'],'*Replace\x20table\x20cells*')};});const _0x217384=()=>!0x1;for(const _0x5ac6b3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ac6b3,'join',_0x217384),_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ac6b3,'join',_0x217384),_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ac6b3,'join',_0x217384);_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x217384),_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xaf9a35,_0x3c236e,_0xb6b38a)=>{const _0x226f9f=_0xaf9a35['map'](_0x312c71=>_0x312c71['getContainedElement']())['filter'](_0x4c1036=>_0x4c1036),_0x469600=new Map(_0x226f9f['map'](_0x81b300=>[_0x81b300,null]));if(_0x5420c6){for(const {element:_0x12762c,attributes:_0x59fa3c}of _0x5420c6['cells'])_0x59fa3c&&_0x469600['set'](_0x12762c,_0x59fa3c);}else{if(_0xb6b38a&&_0xb6b38a['markerAttributes'])for(const [_0x50d3e7,_0x4ad135]of Object['entries'](_0xb6b38a['markerAttributes'])){const _0x12426a=_0x53d17e['model']['markers']['get'](_0x50d3e7),_0x59900e=_0x12426a?_0x12426a['getRange']()['getContainedElement']():null;_0x59900e&&_0x469600['set'](_0x59900e,_0x4ad135);}}_0x53d17e['model']['change'](_0xd6fe88=>{for(const [_0x8d5765,_0x3d4ca9]of _0x469600)_0xd6fe88['setAttributes']({...we,..._0x3d4ca9},_0x8d5765);});});const _0x4455ea=(_0x3d22b1,_0x464176)=>{_0x1f8ccc['_suggestionFactory']['registerCustomCallback'](_0x3d22b1,'tablePaste',_0x464176,(_0xd31c8,_0x210497,_0x1fb7c0)=>{_0x53d17e['model']['change'](_0x1348b1=>{const _0x4847be=[];for(const _0x22ac85 of _0xd31c8){const _0x5080b3=_0x22ac85['start']['nodeAfter'];_0x5080b3['is']('element','tableCellSuggestion')&&_0x4847be['push'](_0x5080b3);}_0x1f8ccc['_suggestionFactory']['getSuggestionCallback'](_0x3d22b1,null,_0x464176)(_0xd31c8,_0x210497,_0x1fb7c0);for(const _0x4035d4 of _0x4847be)'$graveyard'!=_0x4035d4['root']['rootName']&&_0x1348b1['unwrap'](_0x4035d4);});});};_0x4455ea('insertion','accept'),_0x4455ea('insertion','discard'),_0x4455ea('deletion','accept'),_0x4455ea('deletion','discard'),_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xdfe033=>{const _0x1415a0=_0xdfe033['map'](_0x2354dc=>_0x2354dc['getContainedElement']()),_0x534970=_0x1415a0[0x0]['findAncestor']('table'),{minRow:_0x1dc1b3,maxRow:_0x1c2c12}=_0x2a41d3['_getCoordsForCells'](_0x1415a0);_0x39b7c7['removeRows'](_0x534970,{'at':_0x1dc1b3,'rows':_0x1c2c12-_0x1dc1b3+0x1});}),_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x41b602=>{const _0x2ac6b7=_0x41b602['map'](_0xcb889c=>_0xcb889c['getContainedElement']()),_0x28ae6e=_0x2ac6b7[0x0]['findAncestor']('table'),{minColumn:_0x6b8568,maxColumn:_0x499656}=_0x2a41d3['_getCoordsForCells'](_0x2ac6b7);_0x39b7c7['removeColumns'](_0x28ae6e,{'at':_0x6b8568,'columns':_0x499656-_0x6b8568+0x1});});const _0x5dabed=(_0x27f66f,_0x5415e7)=>{if(!_0x5415e7['subType']||!_0x5415e7['subType']['startsWith']('tablePaste'))return;const _0x4ffe10=_0x5415e7['attributes']['tablePasteChainId'],_0x120185=_0x1f8ccc['getSuggestions']()['filter'](_0xec9486=>_0xec9486['isInContent']&&_0xec9486['attributes']&&_0xec9486['attributes']['tablePasteChainId']==_0x4ffe10);_0x120185['length']&&_0x5415e7['getAllAdjacentSuggestions']()['length']!=_0x120185['length']&&_0x120185['reduce']((_0x520b1d,_0x11b0a8)=>(_0x520b1d['next']=_0x11b0a8,_0x11b0a8['previous']=_0x520b1d,_0x11b0a8));};function _0x543442(_0x3007fb,_0x3c647d=!0x0){const {id:_0x228adb,authorId:_0xa7985c}=_0x1f8ccc['_splitMarkerName'](_0x3007fb['markerName']),_0x11ac87=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x472cdf=_0x1f8ccc['activeMarkers']['includes'](_0x3007fb['markerName']);return _0x472cdf&&_0x11ac87['push']('ck-suggestion-marker--active'),{'classes':_0x11ac87,'attributes':{'data-suggestion':_0x228adb,'data-author-id':_0xa7985c},'priority':_0x472cdf&&_0x3c647d?0xbc2:0xbb8};}_0x1f8ccc['on']('suggestionLoaded',_0x5dabed,{'priority':'high'}),_0x1f8ccc['on']('suggestionUnloaded',_0x5dabed,{'priority':'high'}),_0x53d17e['model']['document']['registerPostFixer'](()=>{let _0x5a643a=!0x1;const _0x3e7eb8=Array['from'](_0x53d17e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a2cbe,data:_0x604015}of _0x3e7eb8){const {group:_0xe46ed2,type:_0x495283,id:_0x57c3b8}=_0x1f8ccc['_splitMarkerName'](_0x5a2cbe);if('suggestion'!=_0xe46ed2||'deletion'!=_0x495283||_0x604015['oldRange'])continue;if(!_0x1f8ccc['hasSuggestion'](_0x57c3b8))continue;const _0x337a78=_0x1f8ccc['getSuggestion'](_0x57c3b8)['getRanges'](),_0x4b6506=_0x53d17e['plugins']['get']('Users')['me'];for(const _0x563e68 of _0x1f8ccc['getSuggestions']()){if(!_0x563e68['isInContent']||_0x563e68['author']!=_0x4b6506)continue;if('formatBlock'!=_0x563e68['type']||'tablePasteCell'!=_0x563e68['subType'])continue;if(_0x563e68['getRanges']()['every'](_0xe6c2d7=>_0x337a78['some'](_0x512453=>_0x512453['containsRange'](_0xe6c2d7,!0x0)))){for(const _0x1d8256 of _0x563e68['getAllAdjacentSuggestions']())_0x1d8256['isInContent']&&(_0x1d8256['discard'](),_0x5a643a=!0x0);}}}return _0x5a643a;}),_0x53d17e['model']['document']['registerPostFixer'](_0x3c0a30=>{const _0x3e8362=_0x53d17e['commands']['get']('redo');if(!_0x3e8362||!_0x3e8362['_createdBatches']['has'](_0x3c0a30['batch']))return!0x1;let _0x4a33f3=!0x1;const _0x23815=_0x53d17e['plugins']['get']('Users')['me'],_0x292d2f=_0x53d17e['model']['document']['differ']['getChanges'](),_0x54e322=Array['from'](_0x53d17e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x413d35,data:_0x1cbb0b})=>{const {group:_0x22f66f,subType:_0x3f7cb5,authorId:_0x284424}=_0x1f8ccc['_splitMarkerName'](_0x413d35);return'suggestion'==_0x22f66f&&'tablePaste'==_0x3f7cb5&&_0x284424==_0x23815['id']&&!_0x1cbb0b['oldRange'];});for(const _0x558db6 of _0x292d2f){if('insert'!=_0x558db6['type']||'tableCellSuggestion'!=_0x558db6['name']||0x1!=_0x558db6['length'])continue;const _0x4575e6=_0x3c0a30['createRange'](_0x558db6['position'],_0x558db6['position']['getShiftedBy'](0x1));if(!_0x54e322['find'](({data:_0x449719})=>_0x449719['newRange']['isEqual'](_0x4575e6))){for(const {name:_0x452464,data:_0x3781cd}of _0x54e322)if(_0x4575e6['containsRange'](_0x3781cd['newRange'])){_0x3c0a30['updateMarker'](_0x452464,{'range':_0x4575e6}),_0x4a33f3=!0x0;break;}}}return _0x4a33f3;}),_0x53d17e['model']['document']['registerPostFixer'](_0x55be19=>{let _0x408f4a=!0x1;const _0x19c803=_0x53d17e['plugins']['get']('Users')['me'],_0x3ebbde=_0x1f8ccc['getSuggestions']()['filter'](_0x1c18de=>_0x1c18de['isInContent']&&_0x1c18de['author']==_0x19c803),_0x2f3a7f=new Set(),_0x5009c6=new Set();for(const _0x5ef7c5 of _0x3ebbde)if('tablePaste'==_0x5ef7c5['subType'])for(const _0x303149 of _0x5ef7c5['getMarkers']()){const _0x2123b9=_0x303149['getRange']()['getContainedElement']();if(_0x2123b9){if(_0x2123b9['is']('element','tableCellSuggestion')&&ke(_0x2123b9)){_0x5ef7c5['removeMarker'](_0x303149['name']),_0x2f3a7f['add'](_0x2123b9),_0x408f4a=!0x0;const _0x4921aa=_0x2123b9['nextSibling'],_0x41da0a=_0x2123b9['previousSibling'],_0xcb4a8a=_0x4921aa&&_0x4921aa['is']('element','tableCellSuggestion'),_0x3932bc=_0x41da0a&&_0x41da0a['is']('element','tableCellSuggestion');_0xcb4a8a&&!_0x2f3a7f['has'](_0x4921aa)&&_0x5009c6['add'](_0x4921aa),_0x3932bc&&!_0x2f3a7f['has'](_0x41da0a)&&_0x5009c6['add'](_0x41da0a);}else _0x2123b9['is']('element','paragraph')&&_0x2123b9['isEmpty']&&(_0x5ef7c5['removeMarker'](_0x303149['name']),_0x408f4a=!0x0);}}else{if('tablePasteCell'==_0x5ef7c5['subType']){if(!_0x5ef7c5['attributes']||!_0x5ef7c5['attributes']['tablePasteChainId'])continue;const _0x1a0ffc=_0x5ef7c5['attributes']['markerAttributes'];if(_0x1a0ffc&&Object['keys'](_0x1a0ffc)['length'])continue;const _0x2a66dd=_0x5ef7c5['attributes']['tablePasteChainId'];let _0x597d5d=!0x0,_0x34bc7f=!0x0;for(const _0x4ed20c of _0x3ebbde)if(_0x4ed20c['subType']&&_0x4ed20c['subType']['startsWith']('tablePaste')){if(!_0x4ed20c['attributes']['tablePasteChainId']){_0x34bc7f=!0x1;break;}if(_0x4ed20c['id']!=_0x5ef7c5['id']&&_0x4ed20c['attributes']['tablePasteChainId']==_0x2a66dd){_0x597d5d=!0x1;break;}}_0x34bc7f&&_0x597d5d&&(_0x5ef7c5['removeMarkers'](),_0x408f4a=!0x0);}}for(const _0x506203 of _0x2f3a7f)_0x55be19['remove'](_0x506203);for(const _0x2646b5 of _0x5009c6)_0x55be19['unwrap'](_0x2646b5);return _0x408f4a;}),_0x53d17e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x34c77e=>_0x543442(_0x34c77e),'converterPriority':'high'}),_0x53d17e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x100592,_0x2174ad)=>_0x2174ad['options']['showSuggestionHighlights']?_0x543442(_0x100592,!0x1):null,'converterPriority':'high'});const _0x5e914b=_0x53d17e['editing']['view'];this['listenTo'](_0x5e914b['document'],'clipboardOutput',(_0x47d864,_0x198f6d)=>{const _0x38f82b=[];for(const _0xad33b0 of _0x5e914b['createRangeIn'](_0x198f6d['content'])['getItems']())_0xad33b0['is']('element','suggestion-td')&&_0x38f82b['push'](_0xad33b0);_0x5e914b['change'](_0x1ce95c=>{for(const _0x24e8a0 of _0x38f82b)_0x1ce95c['move'](_0x1ce95c['createRangeIn'](_0x24e8a0),_0x1ce95c['createPositionBefore'](_0x24e8a0)),_0x1ce95c['remove'](_0x24e8a0);});});}}function ke(_0x4e62e1){if(_0x4e62e1['isEmpty'])return!0x0;const _0xfb466e=_0x4e62e1['getChild'](0x0);return _0xfb466e['is']('element','paragraph')&&_0xfb466e['isEmpty'];}function Re(_0x40f8e7,_0x25e2e7={},_0x511533){for(const {isAnchor:_0x1b0109,cellHeight:_0x4a8bb5,cellWidth:_0x3fc8ee}of _0x511533['createTableWalker'](_0x40f8e7,{'includeAllSlots':!0x0,..._0x25e2e7}))if(!_0x1b0109||0x1!=_0x4a8bb5||0x1!=_0x3fc8ee)return!0x1;return!0x0;}class Nt extends _0x488752{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xaca325=this['editor']['plugins']['get']('TrackChangesEditing');_0xaca325['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xaca325['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xaca325['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xaca325['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xaca325['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xaca325['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1ec3e5,_0x398f6a){const _0x582077=this['editor']['plugins']['get']('TrackChangesEditing'),_0x524396=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1a698b=_0x398f6a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x89e0=_0x524396['getColumnGroupElement'](_0x1a698b);let _0x2aeb97=_0x89e0?_0x524396['getTableColumnsWidths'](_0x89e0):null,_0x10371c=_0x1a698b['getAttribute']('tableWidth')||null;const _0x2ec086=_0x398f6a['tableWidth']||_0x10371c,_0x384fba=_0x398f6a['columnWidths']||_0x2aeb97,_0x444b2d=this['editor']['plugins']['get']('Users')['me'];for(const _0x35bcdd of _0x582077['getSuggestions']()){const _0x2ad04b=_0x35bcdd['getContainedElement']();if('resizeTable'===_0x35bcdd['subType']&&_0x2ad04b===_0x1a698b){_0x35bcdd['author']!==_0x444b2d&&_0x35bcdd['discard']();const _0x7a3ff=_0x35bcdd['data']['commandParams'];_0x10371c=_0x7a3ff[0x0]['tableWidth'],_0x2aeb97=_0x7a3ff[0x0]['columnWidths'];break;}}_0x1ec3e5({'table':_0x1a698b,'tableWidth':_0x2ec086,'columnWidths':_0x384fba}),_0x582077['markBlockFormat'](_0x1a698b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x10371c,'columnWidths':_0x2aeb97}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x31e5df){if('formatBlock'!=_0x31e5df['type']&&'formatInline'!=_0x31e5df['type'])return;const {data:_0xa6b92f}=_0x31e5df;if(_0xa6b92f&&'resizeTable'===_0xa6b92f['formatGroupId']){const _0x3b09f6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3b09f6)};}}}class Dt extends _0x488752{['afterInit'](){const _0x4dca39=this['editor'];_0x4dca39['plugins']['has']('Template')&&_0x4dca39['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x488752{['afterInit'](){const _0x138a5f=this['editor'];if(!_0x138a5f['commands']['get']('insertTableOfContents'))return;_0x138a5f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1735a2=_0x138a5f['plugins']['get']('TrackChangesEditing'),_0x3f33e7=_0x138a5f['locale'];_0x1735a2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x144a6a=>o(_0x3f33e7,'ELEMENT_TABLE_OF_CONTENTS',_0x144a6a));}}class $t extends _0x488752{['afterInit'](){const _0x2514f1=this['editor'];if(!_0x2514f1['plugins']['has']('Title'))return;const _0x2314f3=_0x2514f1['plugins']['get']('TrackChangesEditing');_0x2314f3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2514f1['locale'],'ELEMENT_TITLE')),_0x2514f1['model']['document']['registerPostFixer'](_0x134b79=>{let _0x47bd5f=!0x1;const _0x4bae64=Array['from'](_0x2514f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x84d6e7,data:_0x3da16d}of _0x4bae64){const {group:_0x1c856a}=_0x2314f3['_splitMarkerName'](_0x84d6e7);if('suggestion'!==_0x1c856a||!_0x3da16d['newRange'])continue;const _0x1e743f=_0x3da16d['newRange'],_0x29e016=_0x1e743f['end']['nodeBefore'];if(!_0x29e016||!_0x29e016['is']('element','title-content'))continue;if(!_0x1e743f['start']['isTouching'](_0x1e743f['end']))continue;const _0x584efc=_0x2514f1['model']['schema']['getNearestSelectionRange'](_0x1e743f['end'],'forward');if(_0x584efc&&_0x584efc['isCollapsed']){const _0x27d496=_0x134b79['createRange'](_0x1e743f['start'],_0x584efc['start']);_0x27d496['isEqual'](_0x1e743f)||(_0x134b79['updateMarker'](_0x84d6e7,{'range':_0x27d496}),_0x47bd5f=!0x0);}_0x47bd5f||(_0x134b79['removeMarker'](_0x84d6e7),_0x47bd5f=!0x0);}return _0x47bd5f;});}}class Bt extends _0x488752{['afterInit'](){const _0x2218c1=this['editor'],_0x52f79f=_0x2218c1['plugins']['get']('TrackChangesEditing');_0x2218c1['plugins']['has']('UndoEditing')&&(_0x52f79f['enableCommand']('undo'),_0x52f79f['enableCommand']('redo'));}}class xt extends _0x488752{static get['requires'](){return[It];}['afterInit'](){const _0x5b94da=this['editor'];if(!_0x5b94da['plugins']['has']('TableCaptionEditing'))return;_0x5b94da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x488752{['tableProperties'];['tableCellProperties'];constructor(_0x256c4b){super(_0x256c4b),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5e69fb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x503423 of this['tableProperties'])_0x5e69fb['enableCommand'](_0x503423,(_0x28439a,_0x1f8557)=>{const _0x179669=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x503423,[_0x179669],this['tableProperties'],'tableProperties',_0x28439a,_0x1f8557);});_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e69fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xff9f99,_0x43fc32)=>this['handleDiscardAction'](this['tableProperties'],_0xff9f99,_0x43fc32)),_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x494592 of this['tableCellProperties'])_0x5e69fb['enableCommand'](_0x494592,(_0x68887,_0x355a2b)=>{const _0x53462b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x494592,_0x53462b,this['tableCellProperties'],'tableCellProperties',_0x68887,_0x355a2b);});_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e69fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xfad2d7,_0x3e1aa5)=>this['handleDiscardAction'](this['tableCellProperties'],_0xfad2d7,_0x3e1aa5)),_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e69fb['descriptionFactory']['registerDescriptionCallback'](_0x51417a=>this['handleSuggestionDescription'](_0x51417a));}['_handlePropertyChange'](_0x2ffda4,_0x154dca,_0x3fbee4,_0xad1f18,_0x2857ce,_0x29244d){const _0x22f261=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x29244d['batch'],()=>{for(const _0x1bd95b of _0x154dca){if(this['_getSuggestion'](_0x1bd95b,_0xad1f18))_0x2857ce(_0x29244d);else{const _0x3fd412={};for(const _0x3fbef5 of _0x3fbee4){const _0xf2b291=_0x1bd95b['getAttribute'](_0x3fbef5);void 0x0!==_0xf2b291&&(_0x3fd412[_0x3fbef5]=_0xf2b291);}_0x2857ce(_0x29244d),_0x22f261['markBlockFormat'](_0x1bd95b,{'commandParams':[_0x3fd412]},[],_0xad1f18);}}});}['handleDiscardAction'](_0x3b8402,_0x2a67a8,_0x27ccd2){const _0x5cf44a=_0x2a67a8[0x0]['start']['nodeAfter'],_0x469fa7=_0x27ccd2['commandParams'][0x0];this['editor']['model']['change'](_0x5a3cbd=>{for(const _0x4298fb of _0x3b8402)void 0x0!==_0x469fa7[_0x4298fb]?_0x5a3cbd['setAttribute'](_0x4298fb,_0x469fa7[_0x4298fb],_0x5cf44a):_0x5a3cbd['removeAttribute'](_0x4298fb,_0x5cf44a);});}['handleSuggestionDescription'](_0x161987){if(_0x161987['data'])switch(_0x161987['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'](_0x3ffb47,_0x5145de){const _0x274d88=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x38328c of _0x274d88['getSuggestions']({'skipNotAttached':!0x0})){const _0x305eea=_0x38328c['getContainedElement']();if(_0x38328c['subType']===_0x5145de&&_0x305eea===_0x3ffb47)return _0x38328c;}return null;}}const m='$elementName';class p extends _0x488752{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x574e89,_0x5bce31,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,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cf39d){function _0x3f40ea(_0x43e673){return _0x43e673['map'](_0x27ed2f=>String['fromCharCode'](_0x27ed2f))['join']('');}super(_0x2cf39d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3d888f,_0x43cddb,_0x3b06b6,_0x11b656)=>{this['_model']['change'](()=>{for(const _0x59c852 of[..._0x11b656,..._0x3b06b6])this['_model']['markers']['has'](_0x59c852)&&_0x2cf39d['editing']['reconvertMarker'](_0x59c852);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2cf39d['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(),_0x2cf39d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2cf39d['config']['get']('trackChanges.trackFormatChanges'),_0x2cf39d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2cf39d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2cf39d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3f40ea([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3f40ea([0x34,0x30,0x34,0x38,0x32,0x30,0x33,0x36]);}['init'](){const _0x48f1be=this['editor'],_0x5ae03b=(_0x57e312,_0x3d416e)=>{if('attribute'!=_0x57e312)return'ck-suggestion-marker-'+_0x57e312;const _0x3ba7a4=_0x3d416e['split']('|')[0x0];return this['_isBlockAttribute'](_0x3ba7a4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x48f1be['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x9a5cb5=>{const {id:_0x381621,authorId:_0x584e7d,type:_0x3bdb3a,subType:_0x356ead}=this['_splitMarkerName'](_0x9a5cb5['markerName']),_0x595fff=['ck-suggestion-marker',_0x5ae03b(_0x3bdb3a,_0x356ead)];let _0x5a2d4e=0xbb8;return this['activeMarkers']['includes'](_0x9a5cb5['markerName'])&&(_0x595fff['push']('ck-suggestion-marker--active'),_0x5a2d4e=0xbc2),'deletion'==_0x3bdb3a&&(_0x5a2d4e+=0x5),{'classes':_0x595fff,'attributes':{'data-suggestion':_0x381621,'data-author-id':_0x584e7d},'priority':_0x5a2d4e};}}),_0x48f1be['conversion']['for']('dataDowncast')['add'](_0x15a05d=>{_0x15a05d['on']('addMarker:suggestion',(_0x59ef5a,_0x30eb99,_0x1ffe38)=>{if(!_0x1ffe38['options']['showSuggestionHighlights'])return;const _0x52f2c9=_0x30eb99['item'];if(!_0x52f2c9)return;const _0x3509ae=_0x1ffe38['mapper']['toViewElement'](_0x52f2c9);_0x48f1be['model']['schema']['isObject'](_0x52f2c9)&&_0x3509ae&&!_0x3509ae['getCustomProperty']('widget')&&_0x3509ae['is']('containerElement')&&_0x1f49eb(_0x3509ae,_0x1ffe38['writer']);},{'priority':'high'});}),_0x48f1be['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x554096,_0x3ab33a)=>{if(!_0x3ab33a['options']['showSuggestionHighlights'])return null;const {type:_0x5711ad,subType:_0x2faf72}=this['_splitMarkerName'](_0x554096['markerName']);return{'classes':['ck-suggestion-marker',_0x5ae03b(_0x5711ad,_0x2faf72)],'priority':0xbb8};}});const _0x2d2231=({showActiveMarkers:_0x245000=!0x0,isAttributeSuggestion:_0xeca812=!0x1}={})=>(_0x169476,_0x4711a7,_0x8266ec)=>{if(!_0x4711a7['item'])return;const {id:_0x318dbf,authorId:_0x29618e}=this['_splitMarkerName'](_0x4711a7['markerName']);if(_0xeca812){const _0x14ac8f=this['_suggestions']['get'](_0x318dbf),_0x3ab2e4=this['_getAttributeKey'](_0x14ac8f);if(!this['_isBlockAttribute'](_0x3ab2e4))return;}if(_0x4711a7['item']['is']('selection'))return void _0x8266ec['consumable']['consume'](_0x4711a7['item'],_0x169476['name']);const _0x3692d8=_0x8266ec['mapper']['toViewElement'](_0x4711a7['item']);if(_0x4711a7['item']['is']('element')&&_0x48f1be['model']['schema']['isBlock'](_0x4711a7['item'])&&!_0x3692d8['getCustomProperty']('addHighlight')){_0x8266ec['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3692d8),_0x8266ec['writer']['setAttribute']('data-suggestion',_0x318dbf,_0x3692d8),_0x8266ec['writer']['setAttribute']('data-author-id',_0x29618e,_0x3692d8),_0x8266ec['mapper']['bindElementToMarker'](_0x3692d8,_0x4711a7['markerName']),_0x245000&&(this['activeMarkers']['includes'](_0x4711a7['markerName'])?_0x8266ec['writer']['addClass']('ck-suggestion-marker--active',_0x3692d8):_0x8266ec['writer']['removeClass']('ck-suggestion-marker--active',_0x3692d8));for(const _0x59d8f7 of _0x48f1be['model']['createRangeIn'](_0x4711a7['item'])['getItems']())_0x8266ec['consumable']['consume'](_0x59d8f7,_0x169476['name']);_0x8266ec['consumable']['consume'](_0x4711a7['item'],_0x169476['name']);}};_0x48f1be['conversion']['for']('dataDowncast')['add'](_0x22d8bd=>{_0x22d8bd['on']('addMarker:suggestion:formatBlock',(_0x380bf8,_0x1b4231,_0x542eb1)=>{_0x542eb1['options']['showSuggestionHighlights']&&_0x2d2231({'showActiveMarkers':!0x1})(_0x380bf8,_0x1b4231,_0x542eb1);},{'priority':'highest'});}),_0x48f1be['conversion']['for']('dataDowncast')['add'](_0x1e023c=>{_0x1e023c['on']('addMarker:suggestion:attribute',(_0x11b66e,_0x33bd97,_0x2a0865)=>{_0x2a0865['options']['showSuggestionHighlights']&&_0x2d2231({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x11b66e,_0x33bd97,_0x2a0865);},{'priority':'highest'});}),_0x48f1be['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x28407e,_0x206d7b)=>_0x206d7b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x28407e['substr'](0xb)}}),_0x48f1be['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xfbf107,{writer:_0x587558})=>{let _0x28be07='suggestion:'+_0xfbf107['getAttribute']('suggestion-type')+':'+_0xfbf107['getAttribute']('id');return _0xfbf107['getAttribute']('marker-count')&&(_0x28be07+=':'+_0xfbf107['getAttribute']('marker-count')),_0x587558['createElement']('$marker',{'data-name':_0x28be07});}}),_0x48f1be['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x48f1be['conversion']['for']('editingDowncast')['add'](_0x4edd28=>{_0x4edd28['on']('addMarker:suggestion:formatBlock',_0x2d2231(),{'priority':'high'});}),_0x48f1be['conversion']['for']('editingDowncast')['add'](_0x319698=>{_0x319698['on']('addMarker:suggestion:attribute',_0x2d2231({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x48f1be['conversion']['for']('editingDowncast')['add'](_0x3dad3e=>{_0x3dad3e['on']('removeMarker:suggestion:formatBlock',(_0x9fcaa7,_0x3dabe8,_0x2d07ff)=>{const _0x306460=_0x2d07ff['mapper']['markerNameToElements'](_0x3dabe8['markerName']);if(_0x306460){for(const _0x31187b of _0x306460)_0x31187b['getCustomProperty']('addHighlight')||(_0x2d07ff['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x31187b),_0x2d07ff['writer']['removeAttribute']('data-suggestion',_0x31187b),_0x2d07ff['writer']['removeAttribute']('data-author-id',_0x31187b),_0x2d07ff['mapper']['unbindElementFromMarkerName'](_0x31187b,_0x3dabe8['markerName']));}},{'priority':'high'});}),_0x48f1be['conversion']['for']('editingDowncast')['add'](_0x38eac4=>{_0x38eac4['on']('removeMarker:suggestion:attribute',(_0xbb9125,_0x2a351e,_0x3e725f)=>{const _0x18908e=_0x3e725f['mapper']['markerNameToElements'](_0x2a351e['markerName']);if(!_0x18908e)return;const {id:_0x3ca67e}=this['_splitMarkerName'](_0x2a351e['markerName']),_0x280386=this['_suggestions']['get'](_0x3ca67e),_0x35ff8c=this['_getAttributeKey'](_0x280386);if(this['_isBlockAttribute'](_0x35ff8c)){for(const _0x1a6c8c of _0x18908e)_0x1a6c8c['getCustomProperty']('addHighlight')||(_0x3e725f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a6c8c),_0x3e725f['writer']['removeAttribute']('data-suggestion',_0x1a6c8c),_0x3e725f['writer']['removeAttribute']('data-author-id',_0x1a6c8c),_0x3e725f['mapper']['unbindElementFromMarkerName'](_0x1a6c8c,_0x2a351e['markerName']));}},{'priority':'high'});}),_0x48f1be['model']['document']['registerPostFixer'](_0x322064=>{let _0x37e170=!0x1;const _0x18cbf5=Array['from'](_0x48f1be['model']['document']['differ']['getChangedMarkers']()),_0x3574ae=new Set();for(const {name:_0x12dbf2,data:_0x591a70}of _0x18cbf5){const {group:_0x4e3e97,type:_0x171116,subType:_0x5b5211,id:_0x33ceb4}=this['_splitMarkerName'](_0x12dbf2);if('suggestion'!==_0x4e3e97)continue;const _0x19b8f0=this['_suggestions']['get'](_0x33ceb4);if(null!=_0x591a70['newRange']){'formatInline'==_0x171116&&(_0x37e170=_0x37e170||Ut(_0x591a70['newRange'],_0x12dbf2,_0x322064,_0x48f1be['model']['schema']));const _0x3573e1='attribute'==_0x171116&&this['_isBlockAttribute'](_0x5b5211['split']('|')[0x0]);if(_0x591a70['newRange']['isCollapsed']||'$graveyard'==_0x591a70['newRange']['root']['rootName']||'formatBlock'==_0x171116&&!Gt(_0x591a70['newRange'])||_0x3573e1&&!Gt(_0x591a70['newRange'])||'deletion'==_0x171116&&!(!Vt(_0x3ea2c5=_0x591a70['newRange'])&&!function(_0x3a53ad){return _0x3a53ad['start']['parent']==_0x3a53ad['end']['nodeBefore']&&_0x3a53ad['start']['isAtEnd'];}(_0x3ea2c5)))_0x322064['removeMarker'](_0x12dbf2),_0x37e170=!0x0;else{if(!_0x19b8f0||!_0x19b8f0['isInContent'])continue;if(_0x591a70['newRange']&&_0x591a70['oldRange']&&_0x591a70['newRange']['isEqual'](_0x591a70['oldRange']))continue;_0x3574ae['add'](_0x19b8f0);}}}var _0x3ea2c5;return _0x3574ae['size']>0x0&&(_0x37e170=!!this['_joinWithAdjacentSuggestions'](_0x3574ae)||_0x37e170),_0x37e170;}),_0x48f1be['model']['document']['registerPostFixer'](_0x3f4d91=>{let _0x35393b=!0x1;for(const _0x1765c3 of _0x48f1be['model']['document']['differ']['getChanges']())if('insert'==_0x1765c3['type'])for(const _0x32b559 of this['_suggestions']['values']()){if(_0x32b559['isMultiRange']||!_0x32b559['isInContent'])continue;const _0x7f122a='formatBlock'==_0x32b559['type'],_0x974bf=this['_getAttributeKey'](_0x32b559),_0x2d4cbf=_0x974bf&&this['_isBlockAttribute'](_0x974bf);if(!_0x7f122a&&!_0x2d4cbf)continue;const _0x3ca6f0=_0x32b559['getFirstRange']();if(_0x3ca6f0['start']['parent']!=_0x3ca6f0['end']['parent']&&!_0x3ca6f0['end']['isAtEnd']){const _0x26e410=_0x48f1be['model']['createPositionAt'](_0x3ca6f0['start']['nodeAfter'],'end'),_0x239a8e=_0x48f1be['model']['createRange'](_0x3ca6f0['start'],_0x26e410);_0x3f4d91['updateMarker'](_0x32b559['getFirstMarker'](),{'range':_0x239a8e}),_0x35393b=!0x0;}}return _0x35393b;}),_0x48f1be['model']['document']['registerPostFixer'](_0x185272=>this['_processAttributeChanges'](_0x185272)),_0x48f1be['model']['document']['registerPostFixer'](_0x25d01d=>!_0x25d01d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x25d01d)),_0x48f1be['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x48f1be['model']['document']['on']('change:data',(_0x500592,_0x5ccae0)=>{if(!_0x5ccae0['isLocal']||_0x5ccae0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5c3fa6=_0x48f1be['model']['document']['differ']['getChanges']();if(0x0==_0x5c3fa6['length'])return;const _0x162224=[],_0x5878b8=_0x5c3fa6['filter'](_0x59555a=>'attribute'==_0x59555a['type']),_0x3a0c3d=_0x5c3fa6['filter'](_0x25ca41=>'insert'==_0x25ca41['type']&&'$text'!=_0x25ca41['name']);for(const _0xbbb0d5 of _0x5878b8)this['_isRegisteredAttribute'](_0xbbb0d5['attributeKey'])&&_0x162224['push']({'key':_0xbbb0d5['attributeKey'],'newValue':_0xbbb0d5['attributeNewValue'],'oldValue':_0xbbb0d5['attributeOldValue'],'range':Ft(_0xbbb0d5['range'],_0x48f1be['model'])});for(const _0x5dc64a of _0x3a0c3d){if('rename'!=_0x5dc64a['action']&&'refresh'!=_0x5dc64a['action'])continue;const _0x2e1b16=Lt(_0x5dc64a['position']['nodeAfter'],_0x48f1be['model']),_0x1eface=_0x5dc64a['before'];'rename'==_0x5dc64a['action']&&_0x162224['push']({'key':m,'newValue':_0x5dc64a['name'],'oldValue':_0x1eface['name'],'range':_0x2e1b16});for(const [_0x2a521d,_0x41897c]of _0x1eface['attributes']){if(!this['_isRegisteredAttribute'](_0x2a521d))continue;const _0x5809e6=_0x5dc64a['attributes']['get'](_0x2a521d);_0x41897c!==_0x5809e6&&_0x162224['push']({'key':_0x2a521d,'newValue':_0x5809e6,'oldValue':_0x41897c,'range':_0x2e1b16});}for(const [_0x141c7e,_0x38cb73]of _0x5dc64a['attributes'])this['_isRegisteredAttribute'](_0x141c7e)&&(_0x1eface['attributes']['has'](_0x141c7e)||_0x162224['push']({'key':_0x141c7e,'newValue':_0x38cb73,'oldValue':null,'range':_0x2e1b16}));}0x0!=_0x162224['length']&&_0x48f1be['model']['enqueueChange'](_0x5ccae0,_0x4967ea=>{const _0xd49dd8=_0x3309d5();for(const {range:_0x3444c5,key:_0x5ac8c4,oldValue:_0xfb3d4a,newValue:_0x29c835}of _0x162224)this['markAttributeChange'](_0x3444c5,_0x5ac8c4,_0xfb3d4a,_0x29c835,{'groupId':_0xd49dd8});this['_reduceExistingSuggestions'](_0x4967ea,_0x162224);});},{'priority':'lowest'}),_0x48f1be['model']['markers']['on']('update:suggestion',(_0x2e3adf,_0x1c16ca,_0x518ff0)=>{if(null==_0x518ff0){const {id:_0x1b62b3}=this['_splitMarkerName'](_0x1c16ca['name']),_0x3494f5=this['_suggestions']['get'](_0x1b62b3);_0x3494f5&&_0x3494f5['addMarkerName'](_0x1c16ca['name']);}}),_0x48f1be['model']['document']['on']('change:data',()=>{const _0x166efe=Array['from'](_0x48f1be['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fde9c=>'suggestion'===this['_splitMarkerName'](_0x1fde9c['name'])['group']);if(0x0===_0x166efe['length'])return;_0x166efe['sort']((_0x503da1,_0x141ada)=>{const _0x184931=_0x503da1['data']['oldRange'],_0x12e58d=_0x141ada['data']['oldRange'];return null===_0x184931&&null===_0x12e58d?0x0:null===_0x184931&&null!==_0x12e58d?-0x1:null!==_0x184931&&null===_0x12e58d?0x1:_0x184931['start']['isBefore'](_0x12e58d['start'])?-0x1:0x1;});const _0x1d0bbc=new Set(),_0xbc137f=new Set();for(const {name:_0x47c917,data:_0x1d894c}of _0x166efe){const {id:_0x4aa2c7}=this['_splitMarkerName'](_0x47c917);if(null===_0x1d894c['oldRange']){const _0x53b384=this['_handleNewSuggestionMarker'](_0x47c917);_0xbc137f['add'](_0x53b384);}else{const _0x9f21e=this['_suggestions']['get'](_0x4aa2c7);null!==_0x1d894c['newRange']||_0x9f21e['isInContent']?(_0x1d0bbc['add'](_0x9f21e['head']),_0xbc137f['add'](_0x9f21e)):this['_removeSuggestion'](_0x9f21e);}}_0xbc137f['size']>0x0&&this['_refreshSuggestionsChain'](_0xbc137f);for(const _0x3f7b46 of _0x1d0bbc)this['fire']('suggestionChanged',_0x3f7b46);}),_0x48f1be['model']['on']('applyOperation',(_0x1864c5,_0x1097dc)=>{const _0x3b6990=_0x1097dc[0x0];if(!this['_suggestions']['size'])return;if(!_0x3b6990['isDocumentOperation'])return;if(_0x3b6990['batch']['isUndo']||!_0x3b6990['batch']['isLocal'])return;let _0x2c68d9,_0x379c0b;switch(_0x3b6990['type']){case'insert':_0x2c68d9=_0x48f1be['model']['createPositionAt'](_0x3b6990['position']),_0x379c0b=_0x2c68d9['getShiftedBy'](_0x3b6990['howMany']);break;case'split':_0x2c68d9=_0x48f1be['model']['createPositionAt'](_0x3b6990['splitPosition']),_0x379c0b=_0x48f1be['model']['createPositionAt'](_0x3b6990['moveTargetPosition']);break;case'move':_0x2c68d9=_0x48f1be['model']['createPositionAt'](_0x3b6990['targetPosition']),_0x379c0b=_0x2c68d9['getShiftedBy'](_0x3b6990['howMany']);break;default:return;}const _0x2ed8d3=_0x48f1be['model']['createRange'](_0x2c68d9,_0x379c0b);_0x48f1be['model']['change'](()=>{for(const {suggestion:_0x408221,meta:_0x19537c}of this['_findSuggestions'](_0x2ed8d3)){if(_0x408221['isMultiRange'])continue;if('formatInline'==_0x408221['type'])continue;const _0x47c457=this['_getAttributeKey'](_0x408221);if(_0x47c457&&this['_isBlockAttribute'](_0x47c457)&&'split'!=_0x3b6990['type'])continue;const _0x517087=_0x408221['data']&&_0x408221['data']['multipleBlocks'];('formatBlock'!=_0x408221['type']||'split'==_0x3b6990['type']&&!_0x517087)&&(_0x19537c['containsRangeInObject']||'insertion'==_0x408221['type']&&_0x19537c['isOwn']||_0x408221['getFirstRange']()['containsRange'](_0x2ed8d3)&&this['_breakSuggestionMarker'](_0x408221,_0x2c68d9,_0x379c0b));}});},{'priority':'lowest'}),_0x48f1be['model']['on']('deleteContent',(_0x31816e,_0x1e4d20)=>{const _0x2771ed=_0x1e4d20[0x0],_0xe840df=_0x1e4d20[0x1];if(_0xe840df&&_0xe840df['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2771ed['isCollapsed'])return;const _0x2d3b32=_0x48f1be['model']['schema'],{start:_0x1d9409,end:_0x275f53}=_0x2771ed['getFirstRange'](),_0x4533e4=_0x1d9409['nodeAfter']&&_0x2d3b32['isLimit'](_0x1d9409['nodeAfter'])?null:_0x2d3b32['getNearestSelectionRange'](_0x1d9409,'forward'),_0x53b8dc=_0x275f53['nodeBefore']&&_0x2d3b32['isLimit'](_0x275f53['nodeBefore'])?null:_0x2d3b32['getNearestSelectionRange'](_0x275f53,'backward'),_0x33a16f=_0x48f1be['model']['createRange'](_0x4533e4?_0x4533e4['start']:_0x1d9409,_0x53b8dc?_0x53b8dc['end']:_0x275f53);_0x48f1be['model']['change'](_0x146093=>{this['markDeletion'](_0x33a16f);const _0x243eea=_0x48f1be['model']['schema']['getNearestSelectionRange'](_0x33a16f['start']);_0x2771ed['is']('documentSelection')?_0x146093['setSelection'](_0x243eea):_0x2771ed['setTo'](_0x243eea);}),_0x31816e['stop']();},{'priority':_0x30ed80['normal']+0xa}),_0x48f1be['model']['on']('insertContent',(_0x57d3ff,_0x2422eb)=>{const _0x4f509e=_0x2422eb[_0x2422eb['length']-0x1];_0x4f509e&&_0x4f509e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x48f1be['model']['change'](()=>{let _0x4de27a=_0x48f1be['model']['insertContent'](_0x2422eb[0x0],_0x2422eb[0x1],_0x2422eb[0x2],{'forceDefaultExecution':!0x0});if(!_0x4de27a)return;_0x57d3ff['return']=_0x4de27a['clone']();const _0x1c093d=_0x4de27a['end']['nodeBefore'],_0x4ce84c=_0x48f1be['model']['schema'];_0x1c093d&&_0x4ce84c['isBlock'](_0x1c093d)&&!_0x4ce84c['isObject'](_0x1c093d)&&(_0x4de27a=_0x48f1be['model']['createRange'](_0x4de27a['start'],_0x48f1be['model']['createPositionAt'](_0x1c093d,'end'))),this['markInsertion'](_0x4de27a);}),_0x57d3ff['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x121d85=new x(_0x48f1be,this['_suggestions']);_0x48f1be['commands']['add']('acceptSuggestion',_0x121d85),this['enableCommand']('acceptSuggestion');const _0x27bf19=new O(_0x48f1be,this['_suggestions']);_0x48f1be['commands']['add']('discardSuggestion',_0x27bf19),this['enableCommand']('discardSuggestion'),_0x48f1be['commands']['add']('acceptAllSuggestions',new R(_0x48f1be,_0x121d85,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x48f1be['commands']['add']('discardAllSuggestions',new R(_0x48f1be,_0x27bf19,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x48f1be['commands']['add']('acceptSelectedSuggestions',new E(_0x48f1be,_0x121d85,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x48f1be['commands']['add']('discardSelectedSuggestions',new E(_0x48f1be,_0x27bf19,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x116e1a=_0x48f1be['plugins']['get']('CommentsRepository');this['listenTo'](_0x116e1a,'addComment',(_0x37a7c9,{threadId:_0x4a0b5f})=>{const _0x4dd637=this['_suggestions']['get'](_0x4a0b5f);_0x4dd637&&_0x4dd637['commentThread']&&0x1===_0x4dd637['commentThread']['length']&&this['_updateSuggestionData'](_0x4a0b5f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x116e1a,'removeComment',(_0x3c510d,{threadId:_0x2407d0})=>{const _0x3efc25=this['_suggestions']['get'](_0x2407d0);_0x3efc25&&_0x3efc25['commentThread']&&!_0x3efc25['commentThread']['length']&&this['_updateSuggestionData'](_0x2407d0,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x31b855){if(this['_adapter'])throw new _0x2a8e99('track-changes-adapter-already-set',this);this['_adapter']=_0x31b855;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1dd69f=!0x1,toJSON:_0x37526a=!0x1}={}){const _0x26ec91=[];for(const _0x36fa96 of this['_suggestions']['values']())_0x1dd69f&&!_0x36fa96['isInContent']||_0x26ec91['push'](_0x36fa96);return _0x37526a?_0x26ec91['map'](_0x3213a2=>_0x3213a2['toJSON']()):_0x26ec91;}['getSuggestion'](_0x2746ee){const _0x3425ca=this['_suggestions']['get'](_0x2746ee);if(!_0x3425ca)throw new _0x2a8e99('track-changes-suggestion-not-found',this);return _0x3425ca;}['hasSuggestion'](_0x483d4b){return this['_suggestions']['has'](_0x483d4b);}['addSuggestionData'](_0x2a3248){const {authorId:_0x3d099a,id:_0x4077bc,attributes:_0x25ab5c}=_0x2a3248,[_0x14ed11,_0x5e8914]=_0x2a3248['type']['split'](':'),_0x1f25fd=this['_suggestions']['get'](_0x4077bc)||this['_createSuggestion'](_0x14ed11,_0x5e8914,_0x4077bc,_0x3d099a,_0x25ab5c);if(this['_addThreadToSuggestion'](_0x1f25fd),this['_checkSuggestionCorrectness'](_0x1f25fd,_0x14ed11,_0x5e8914||null,_0x3d099a),_0x1f25fd['createdAt']=_0x2a3248['createdAt'],_0x1f25fd['_isDataLoaded']=!0x0,_0x25ab5c&&_0x25ab5c['@external']){const _0x1f204d=_0x25ab5c['@external'],_0x7c1b8a=this['_getExternalAuthor'](_0x1f204d['authorName']);_0x1f25fd['authoredAt']=_0x1f204d['createdAt'],_0x1f25fd['author']=_0x7c1b8a,_0x1f25fd['isExternal']=!0x0;}else _0x1f25fd['authoredAt']=_0x2a3248['createdAt'];switch(_0x2a3248['data']&&(_0x1f25fd['data']=_0x2a3248['data']),_0x2a3248['attributes']&&(_0x1f25fd['attributes']=_0x2a3248['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1f25fd['_saved']=!0x0),this['_suggestionState']['get'](_0x1f25fd)){case'notReady':this['_suggestionState']['set'](_0x1f25fd,'dataReady');break;case'markerReady':_0x1f25fd['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1f25fd])),this['_refreshSuggestionsChain'](new Set([_0x1f25fd])),this['_suggestionState']['set'](_0x1f25fd,'ready'),this['fire']('suggestionLoaded',_0x1f25fd)):this['_suggestionState']['set'](_0x1f25fd,'removed');}return _0x1f25fd;}['acceptSuggestion'](_0xe0bdb9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xbe1921 of _0xe0bdb9['getAllAdjacentSuggestions']())_0xbe1921['accept']();});});}['discardSuggestion'](_0x3f113c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x86afcd of _0x3f113c['getAllAdjacentSuggestions']())_0x86afcd['discard']();});});}['enableCommand'](_0x57986f,_0x58e5ee){const _0x1bd7e7=this['editor']['commands']['get'](_0x57986f);if(!_0x1bd7e7)throw new _0x2a8e99('track-changes-command-not-found',this,{'commandName':_0x57986f});if(this['_enabledCommands']['has'](_0x1bd7e7))throw new _0x2a8e99('track-changes-enable-command-twice',this,{'commandName':_0x57986f});this['_enabledCommands']['add'](_0x1bd7e7),_0x58e5ee&&_0x1bd7e7['on']('execute',(_0x2af206,_0xe4c06b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xe4c06b['length']>0x0&&_0xe4c06b[_0xe4c06b['length']-0x1]&&_0xe4c06b[_0xe4c06b['length']-0x1]['forceDefaultExecution']?_0xe4c06b['pop']():(_0x2af206['return']=_0x58e5ee((..._0x161ed8)=>_0x1bd7e7['execute'](..._0x161ed8,{'forceDefaultExecution':!0x0}),..._0xe4c06b),_0x2af206['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3d48bf){let _0x44b86d,_0x44783a;const _0x98b151=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x44b86d=_0x3d48bf();}catch(_0x5e48a1){_0x44783a=_0x5e48a1;}return _0x98b151||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x44783a&&_0x2a8e99['rethrowUnexpectedError'](_0x44783a,this),_0x44b86d;}['markInsertion'](_0x195684,_0x3515a0=null,_0x1be2c6={}){if(_0x195684['isCollapsed'])return null;const _0x405c26=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1db820,meta:_0x5955a5}of this['_findSuggestions'](_0x195684,'insertion'))if(_0x5955a5['isOwn']){if(!_0x5955a5['isNextTo']){if(_0x5955a5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1db820,_0x1be2c6))continue;return _0x1db820;}if(qt(_0x1db820,_0x1be2c6))return _0x1db820;this['_breakSuggestionMarker'](_0x1db820,_0x195684['start'],_0x195684['end']);break;}if(_0x3515a0==_0x1db820['subType']&&qt(_0x1db820,_0x1be2c6)){const _0x42a55b=_0x1db820['getFirstRange']();return _0x42a55b['start']['isEqual'](_0x195684['end'])?this['_setSuggestionRange'](_0x1db820,this['_model']['createRange'](_0x195684['start'],_0x42a55b['end'])):this['_setSuggestionRange'](_0x1db820,this['_model']['createRange'](_0x42a55b['start'],_0x195684['end'])),_0x1db820;}}const _0x45aa01=_0x3309d5(),_0x2ce770=_0x405c26['id'],_0x7976d1=_0x3515a0?'insertion:'+_0x3515a0:'insertion',_0x506f48=this['_setSuggestionData']({'id':_0x45aa01,'type':_0x7976d1,'createdAt':new Date(),'authorId':_0x2ce770,'attributes':_0x1be2c6});return this['_addSuggestionMarker'](_0x7976d1,_0x45aa01,_0x2ce770,_0x195684),_0x506f48;}['markMultiRangeInsertion'](_0x141a9f,_0x178b0c='multi',_0x8323d5={}){const _0x5e88f3=this['editor']['plugins']['get']('Users')['me'],_0xdbf9ce=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x178b0c,'join');for(const _0x2be331 of this['getSuggestions']())if(_0x2be331['author']['id']==_0x5e88f3['id']&&'insertion'==_0x2be331['type']&&_0x2be331['subType']==_0x178b0c&&qt(_0x2be331,_0x8323d5)&&(_0xdbf9ce(_0x2be331['getRanges'](),_0x141a9f)||_0xdbf9ce(_0x141a9f,_0x2be331['getRanges']()))){for(const _0x1d333f of _0x141a9f)_0x2be331['addRange'](_0x1d333f);return _0x2be331;}for(const {suggestion:_0x51eea1,meta:_0x180585}of this['_findSuggestions'](_0x141a9f,'insertion')){if(!_0x180585['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x180585['containsRangeInObject'])continue;if(!qt(_0x51eea1,_0x8323d5))continue;let _0x52c401=!0x0;for(const _0x37f560 of _0x51eea1['getRanges']())for(const _0x1ac0fa of _0x141a9f)if(!_0x37f560['containsRange'](_0x1ac0fa)){_0x52c401=!0x1;break;}if(_0x52c401)return _0x51eea1;}const _0x13223a=_0x3309d5(),_0x3e0d78=_0x5e88f3['id'],_0x548b5b='insertion:'+_0x178b0c,_0x52a6ad=this['_setSuggestionData']({'id':_0x13223a,'type':_0x548b5b,'createdAt':new Date(),'authorId':_0x3e0d78,'attributes':_0x8323d5});for(const _0x2be91a of _0x141a9f)this['_addSuggestionMarker'](_0x548b5b,_0x13223a,_0x3e0d78,_0x2be91a,u['getMultiRangeId']());return _0x52a6ad;}['markInlineFormat'](_0x13c374,_0x150979,_0x42164f=null,_0x5aeced={}){if(_0x42164f=_0x42164f||Pt(_0x150979),_0x13c374['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xea7f43=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x42164f,'accept');return this['forceDefaultExecution'](()=>_0xea7f43([_0x13c374],_0x150979,_0x5aeced)),null;}const _0x2a0465=this['editor']['plugins']['get']('Users')['me'],_0x2231cd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x148945,meta:_0x5958b9}of this['_findSuggestions'](_0x13c374,'insertion'))_0x5958b9['isOwn']&&!_0x5958b9['isInsideObject']&&_0x2231cd['push'](..._0x148945['getRanges']());}const _0x21e6d7=function(_0x2d372e,_0x7b2e6e){const _0x45d81f=[];for(const _0x2a44e3 of _0x7b2e6e){const _0x3adf84=_0x2d372e['getIntersection'](_0x2a44e3);_0x3adf84&&_0x45d81f['push'](_0x3adf84);}return _0x45d81f;}(_0x13c374,_0x2231cd),_0x4892fb=function(_0x42acb4,_0x1c00fe){const _0x1abcb5=[_0x42acb4];for(const _0x42fc5b of _0x1c00fe){let _0x541540=0x0;for(;_0x541540<_0x1abcb5['length'];){const _0x4bfa99=_0x1abcb5[_0x541540]['getDifference'](_0x42fc5b);_0x1abcb5['splice'](_0x541540,0x1,..._0x4bfa99),_0x541540+=_0x4bfa99['length'];}}return _0x1abcb5;}(_0x13c374,_0x2231cd);_0x21e6d7['length']&&this['_model']['change'](()=>{for(const _0x1a5f55 of _0x21e6d7){const _0x527108=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x42164f,'accept');this['forceDefaultExecution'](()=>_0x527108([_0x1a5f55],_0x150979,_0x5aeced));}});for(const _0x7aa222 of _0x4892fb){let _0x437600=null,_0x3086fd=_0x7aa222['start'],_0x235418=_0x7aa222['end'];for(const {suggestion:_0x25b39e,meta:_0x56b5b7}of this['_findSuggestions'](_0x7aa222,'formatInline')){if(!_0x56b5b7['isOwn'])continue;if(_0x25b39e['subType']!=_0x42164f)continue;if(!qt(_0x25b39e,_0x5aeced))continue;const _0x3b8a8f=_0x25b39e['getFirstRange']();if(_0x3b8a8f['containsRange'](_0x7aa222,!0x0))return null;_0x3086fd=_0x3086fd['isBefore'](_0x3b8a8f['start'])?_0x3086fd:_0x3b8a8f['start'],_0x235418=_0x235418['isAfter'](_0x3b8a8f['end'])?_0x235418:_0x3b8a8f['end'],_0x437600?_0x3b8a8f['start']['isBefore'](_0x437600['getFirstRange']()['start'])?(_0x437600['removeMarkers'](),_0x437600=_0x25b39e):_0x25b39e['removeMarkers']():_0x437600=_0x25b39e;}const _0x335c4e=this['_model']['createRange'](_0x3086fd,_0x235418);if(_0x437600)this['_setSuggestionRange'](_0x437600,_0x335c4e);else{const _0x5f2505=_0x3309d5(),_0x119019=_0x2a0465['id'];this['_setSuggestionData']({'id':_0x5f2505,'type':'formatInline:'+_0x42164f,'data':_0x150979,'createdAt':new Date(),'authorId':_0x119019,'attributes':_0x5aeced}),this['_addSuggestionMarker']('formatInline:'+_0x42164f,_0x5f2505,_0x119019,_0x335c4e);}}return null;}['markBlockFormat'](_0x3d0e38,_0x473132,_0x1133a8=[],_0xe899c5=null,_0x2a9c6d={}){_0x473132['formatGroupId']||(_0x473132['formatGroupId']=_0x473132['commandName']),_0x473132['multipleBlocks']=_0x3d0e38['is']('range'),_0xe899c5=_0xe899c5||Pt(_0x473132);const _0x3859c2=_0x1133a8['map'](_0x337591=>Lt(_0x337591,this['_model'])),_0x99d4e3=_0x3d0e38['is']('range')?_0x3d0e38:Lt(_0x3d0e38,this['_model']);if('never'===this['_trackFormatChanges']){const _0x411ad5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe899c5,'accept');return this['forceDefaultExecution'](()=>_0x411ad5([_0x99d4e3],_0x473132,_0x2a9c6d)),null;}_0x3859c2['push'](_0x99d4e3);let _0x18659a=!0x0;for(const _0x23d68d of _0x3859c2)if(!this['_rangeIsInLocalUserInsertion'](_0x23d68d)){_0x18659a=!0x1;break;}if(_0x18659a&&'always'!==this['_trackFormatChanges']){const _0x4142f9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe899c5,'accept');return this['forceDefaultExecution'](()=>_0x4142f9([_0x99d4e3],_0x473132,_0x2a9c6d)),null;}let _0x1974ac=null,_0x7ca928=_0x99d4e3['start'],_0x1801bb=_0x99d4e3['end'];for(const {suggestion:_0x406a78,meta:_0x2ef5f5}of this['_findSuggestions'](_0x99d4e3,'formatBlock')){if(!_0x2ef5f5['isOwn'])continue;if(_0x2ef5f5['isNextTo']||_0x2ef5f5['containsRangeInObject']||_0x2ef5f5['isInsideObject'])continue;if(_0x406a78['data']['formatGroupId']!=_0x473132['formatGroupId'])continue;if(!qt(_0x406a78,_0x2a9c6d))continue;const _0x202819=_0x406a78['getFirstRange']();if(_0x406a78['subType']==_0xe899c5){if(_0x202819['containsRange'](_0x99d4e3,!0x0))return null;_0x7ca928=_0x7ca928['isBefore'](_0x202819['start'])?_0x7ca928:_0x202819['start'],_0x1801bb=_0x1801bb['isAfter'](_0x202819['end'])?_0x1801bb:_0x202819['end'],_0x1974ac?_0x202819['start']['isBefore'](_0x1974ac['getFirstRange']()['start'])?(_0x1974ac['removeMarkers'](),_0x1974ac=_0x406a78):_0x406a78['removeMarkers']():_0x1974ac=_0x406a78;}else{const _0x50be61=_0x99d4e3['getIntersection'](_0x202819);this['_cutOutSuggestionMarker'](_0x406a78,_0x50be61);}}const _0x39c07a=this['editor']['plugins']['get']('Users')['me'],_0x20c91d=_0x3309d5(),_0x21714f=_0x39c07a['id'];if(_0x1974ac)return this['_setSuggestionRange'](_0x1974ac,this['_model']['createRange'](_0x7ca928,_0x1801bb)),_0x1974ac;{const _0xbea6f9=this['_setSuggestionData']({'id':_0x20c91d,'type':'formatBlock:'+_0xe899c5,'data':_0x473132,'createdAt':new Date(),'authorId':_0x21714f,'attributes':_0x2a9c6d});return this['_addSuggestionMarker']('formatBlock:'+_0xe899c5,_0x20c91d,_0x21714f,this['_model']['createRange'](_0x7ca928,_0x1801bb)),_0xbea6f9;}}['markMultiRangeBlockFormat'](_0x294875,_0x21dde1,_0x3c8b82=[],_0x182531=null,_0x5bb32c={}){_0x21dde1['formatGroupId']||(_0x21dde1['formatGroupId']=_0x21dde1['commandName']);const _0x591693=_0x294875[0x0];_0x21dde1['multipleBlocks']=_0x591693['is']('range'),_0x182531=_0x182531||Pt(_0x21dde1);const _0x568840=_0x3c8b82['map'](_0x306b4a=>Lt(_0x306b4a,this['_model'])),_0x285649=_0x591693['is']('range')?_0x294875:_0x294875['map'](_0x482d77=>Lt(_0x482d77,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5dca89=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x182531,'accept');return this['forceDefaultExecution'](()=>_0x5dca89(_0x285649,_0x21dde1,_0x5bb32c)),null;}_0x568840['push'](..._0x285649);let _0xd36a14=!0x0;for(const _0x4e08ed of _0x568840)if(!this['_rangeIsInLocalUserInsertion'](_0x4e08ed)){_0xd36a14=!0x1;break;}if(_0xd36a14&&'always'!==this['_trackFormatChanges']){const _0x4c9d83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x182531,'accept');return this['forceDefaultExecution'](()=>_0x4c9d83(_0x285649,_0x21dde1,_0x5bb32c)),null;}const _0x4d11ac=this['editor']['plugins']['get']('Users')['me'];for(const _0x5049d7 of this['getSuggestions']()){if(_0x5049d7['author']['id']!=_0x4d11ac['id'])continue;if('formatBlock'!=_0x5049d7['type']||_0x5049d7['data']['formatGroupId']!=_0x21dde1['formatGroupId'])continue;if(!qt(_0x5049d7,_0x5bb32c))continue;const _0xb73600=_0x5049d7['subType']==_0x182531;for(let _0x2b58b5=0x0;_0x2b58b5<_0x285649['length'];_0x2b58b5++){const _0x58f21e=_0x285649[_0x2b58b5];for(const _0x3a3025 of _0x5049d7['getMarkers']()){const _0x5f20de=_0x3a3025['getRange']();if(_0x58f21e['isEqual'](_0x5f20de)){_0xb73600?(_0x285649['splice'](_0x2b58b5,0x1),_0x2b58b5--):_0x5049d7['removeMarker'](_0x3a3025['name']);break;}}}}if(0x0==_0x285649['length'])return null;const _0x127608=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x182531,'join');for(const _0x21ec5a of this['getSuggestions']())if(_0x21ec5a['author']['id']==_0x4d11ac['id']&&'formatBlock'==_0x21ec5a['type']&&_0x21ec5a['data']['formatGroupId']==_0x21dde1['formatGroupId']&&_0x21ec5a['subType']==_0x182531&&qt(_0x21ec5a,_0x5bb32c)&&(_0x127608(_0x21ec5a['getRanges'](),_0x285649)||_0x127608(_0x285649,_0x21ec5a['getRanges']()))){for(const _0x1e0f35 of _0x285649)_0x21ec5a['addRange'](_0x1e0f35);return _0x21ec5a;}const _0x4ca4b=_0x3309d5(),_0x2d7ba7=_0x4d11ac['id'],_0x534bd9='formatBlock:'+_0x182531,_0x1c6c94=this['_setSuggestionData']({'id':_0x4ca4b,'type':_0x534bd9,'data':_0x21dde1,'createdAt':new Date(),'authorId':_0x2d7ba7,'attributes':_0x5bb32c});for(const _0x555f59 of _0x285649)this['_addSuggestionMarker'](_0x534bd9,_0x4ca4b,_0x2d7ba7,_0x555f59,u['getMultiRangeId']());return _0x1c6c94;}['markDeletion'](_0xc2ba19,_0x4d768d=null,_0x412ee4={}){if(_0xc2ba19['isCollapsed'])return null;const _0x1e72e6=this['editor']['plugins']['get']('Users')['me'],_0x13938c=new _0xd05373(_0xc2ba19['start'],_0xc2ba19['end']);for(const {suggestion:_0x2747e,meta:_0x3284a7}of this['_findSuggestions'](_0x13938c,'insertion'))if(_0x3284a7['isOwn']&&!_0x3284a7['isNextTo']){if(_0x2747e['isMultiRange']){const _0x1585c5=_0x2747e['getRanges']()['filter'](_0x4c5e81=>'$graveyard'!=_0x4c5e81['root']['rootName']);_0x1585c5['every'](_0x476bc4=>_0x13938c['containsRange'](_0x476bc4,!0x0))&&_0x2747e['discard']();if(_0x1585c5['some'](_0x20dc5e=>_0x20dc5e['containsRange'](_0x13938c,!0x0))){const _0x817567=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d768d,'accept');return this['forceDefaultExecution'](()=>_0x817567([_0x13938c],null,_0x412ee4)),null;}}else{const _0x4c7986=_0x13938c['getIntersection'](_0x2747e['getFirstRange']());null!==_0x4c7986&&_0x2747e['_onDiscard']([_0x4c7986],null,_0x412ee4);}}if(_0x13938c['detach'](),_0x13938c['isCollapsed']||'$graveyard'==_0x13938c['root']['rootName'])return null;let _0x2dd77b=null,_0x2f86df=_0x13938c['start'],_0x1d80c8=_0x13938c['end'];const _0x24ac4d=this['_findSuggestions'](_0x13938c,'deletion');for(const {suggestion:_0x132594,meta:_0x3f2d09}of _0x24ac4d){const _0x153fdc=this['_model']['createRange'](_0x2f86df,_0x1d80c8);if(_0x3f2d09['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f2d09['containsRangeInObject']&&!_0x3f2d09['isInsideObject'])){if(_0x132594['isMultiRange']){if(!qt(_0x132594,_0x412ee4))continue;let _0x408662=!0x0;for(const _0x18b5d7 of _0x132594['getRanges']()){if(_0x18b5d7['containsRange'](_0x153fdc,!0x0))return _0x132594;_0x153fdc['containsRange'](_0x18b5d7)||(_0x408662=!0x1);}_0x408662&&_0x132594['discard']();}else{const _0x5e4199=_0x132594['getFirstRange']();if(_0x5e4199['containsRange'](_0x153fdc,!0x0))return _0x132594;if(!qt(_0x132594,_0x412ee4)){_0x153fdc['containsRange'](_0x5e4199)?_0x132594['removeMarkers']():_0x5e4199['containsPosition'](_0x2f86df)?_0x2f86df=_0x5e4199['end']:_0x5e4199['containsPosition'](_0x1d80c8)&&(_0x1d80c8=_0x5e4199['start']);continue;}_0x2f86df=_0x2f86df['isBefore'](_0x5e4199['start'])?_0x2f86df:_0x5e4199['start'],_0x1d80c8=_0x1d80c8['isAfter'](_0x5e4199['end'])?_0x1d80c8:_0x5e4199['end'],_0x412ee4=Object['assign']({},_0x132594['attributes']),_0x2dd77b?_0x5e4199['start']['isBefore'](_0x2dd77b['getFirstRange']()['start'])?(_0x2dd77b['removeMarkers'](),_0x2dd77b=_0x132594):_0x132594['removeMarkers']():_0x2dd77b=_0x132594;}}}if(_0x2dd77b)return this['_setSuggestionRange'](_0x2dd77b,this['_model']['createRange'](_0x2f86df,_0x1d80c8)),_0x2dd77b;{const _0x1180cd=_0x3309d5(),_0x2ba16e=this['_model']['createRange'](_0x2f86df,_0x1d80c8),_0x41b818=_0x1e72e6['id'],_0x390852=_0x4d768d?'deletion:'+_0x4d768d:'deletion',_0x1f4f6b=this['_setSuggestionData']({'id':_0x1180cd,'type':_0x390852,'createdAt':new Date(),'authorId':_0x41b818,'attributes':_0x412ee4});return this['_addSuggestionMarker'](_0x390852,_0x1180cd,_0x41b818,_0x2ba16e),_0x1f4f6b;}}['markMultiRangeDeletion'](_0x4c870b,_0x4bb0d1='multi',_0x7030f={}){const _0x510f42=this['editor']['plugins']['get']('Users')['me'],_0x154280=_0x4c870b['map'](_0x176e1b=>new _0xd05373(_0x176e1b['start'],_0x176e1b['end'])),_0x2fc556=new Set();for(const {suggestion:_0x1f6d17,meta:_0x4879c7}of this['_findSuggestions'](_0x154280,'insertion'))_0x4879c7['isOwn']&&!_0x4879c7['isNextTo']&&_0x2fc556['add'](_0x1f6d17);for(const _0x15df5f of _0x2fc556)if(_0x15df5f['isMultiRange']){const _0x377752=_0x15df5f['getRanges']();(!_0x15df5f['attributes']||!_0x15df5f['attributes']['skipNestingCheck'])&&(_0x377752['every'](_0x12a7b2=>_0x154280['some'](_0x98d2a0=>_0x98d2a0['containsRange'](_0x12a7b2,!0x0)))&&_0x15df5f['discard']());if(_0x154280['every'](_0x2fc075=>_0x377752['some'](_0x280792=>_0x280792['containsRange'](_0x2fc075,!0x0)))){const _0x55ab82=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb0d1,'accept');return this['forceDefaultExecution'](()=>_0x55ab82(_0x4c870b,null,_0x7030f)),null;}}else{const _0x1f8f4e=_0x15df5f['getFirstRange']();_0x154280['some'](_0x593557=>_0x593557['containsRange'](_0x1f8f4e,!0x0))&&_0x15df5f['discard']();if(_0x154280['every'](_0x37d2cc=>_0x1f8f4e['containsRange'](_0x37d2cc,!0x0))){const _0xb10f20=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb0d1,'accept');return this['forceDefaultExecution'](()=>_0xb10f20(_0x154280,null,_0x7030f)),null;}}const _0x1fbd99=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb0d1,'join');let _0xe38742=null;for(const _0x35e1b2 of this['getSuggestions']())if(_0x35e1b2['author']['id']==_0x510f42['id']&&_0x35e1b2['isInContent']&&'deletion'==_0x35e1b2['type']&&_0x35e1b2['subType']==_0x4bb0d1&&qt(_0x35e1b2,_0x7030f)&&(_0x1fbd99(_0x35e1b2['getRanges'](),_0x154280)||_0x1fbd99(_0x154280,_0x35e1b2['getRanges']()))){if(_0xe38742){if(_0x35e1b2['commentThread']&&_0x35e1b2['commentThread']['length'])continue;for(const _0x247d9b of _0x35e1b2['getRanges']())_0xe38742['isIntersectingWithRange'](_0x247d9b)||_0xe38742['addRange'](_0x247d9b);_0x35e1b2['removeMarkers']();}else{_0xe38742=_0x35e1b2;for(const _0x139140 of _0x154280)_0x35e1b2['isIntersectingWithRange'](_0x139140)||_0x35e1b2['addRange'](_0x139140);}}if(_0xe38742)return _0xe38742;_0x2fc556['clear']();for(const {suggestion:_0x18cc72,meta:_0x2c4926}of this['_findSuggestions'](_0x154280,'deletion'))_0x2c4926['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c4926['containsRangeInObject']&&!_0x2c4926['isInsideObject'])&&qt(_0x18cc72,_0x7030f)&&_0x2fc556['add'](_0x18cc72);for(const _0x46932d of _0x2fc556){const _0x285907=_0x46932d['getRanges']();if(!_0x7030f||!_0x7030f['skipNestingCheck']){if(_0x154280['every'](_0x2d77e8=>_0x285907['some'](_0x5e20aa=>_0x5e20aa['containsRange'](_0x2d77e8,!0x0))))return _0x46932d;}(!_0x46932d['attributes']||!_0x46932d['attributes']['skipNestingCheck'])&&(_0x285907['every'](_0x44dcae=>_0x154280['some'](_0xf74710=>_0xf74710['containsRange'](_0x44dcae,!0x0)))&&_0x46932d['discard']());}const _0x38f54e=_0x3309d5(),_0x4c8db9=_0x510f42['id'],_0x4e97dd='deletion:'+_0x4bb0d1,_0x567006=this['_setSuggestionData']({'id':_0x38f54e,'type':_0x4e97dd,'createdAt':new Date(),'authorId':_0x4c8db9,'attributes':_0x7030f});for(const _0x4eea21 of _0x154280)_0x4eea21['detach'](),_0x4eea21['isCollapsed']||'$graveyard'==_0x4eea21['root']['rootName']||this['_addSuggestionMarker'](_0x4e97dd,_0x38f54e,_0x4c8db9,_0x4eea21,u['getMultiRangeId']());return _0x567006;}['markAttributeChange'](_0x168e4f,_0x47df9a,_0x258cad,_0x37f9db,_0x383979){if(_0x168e4f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3dff8a=this['editor']['plugins']['get']('Users')['me']['id'],_0x24b19f=Array['from'](this['_suggestions']['values']())['filter'](_0x1e0c41=>'attribute'==_0x1e0c41['type']&&_0x1e0c41['data']['key']==_0x47df9a&&_0x1e0c41['isIntersectingWithRange'](_0x168e4f));if('default'===this['_trackFormatChanges']){const _0x1e806a=this['_findSuggestions'](_0x168e4f,'insertion')['filter'](({meta:_0x1adb9b})=>_0x1adb9b['isOwn']&&!_0x1adb9b['isInsideObject']&&!_0x1adb9b['isNextTo'])['map'](({suggestion:_0x4911b9})=>_0x4911b9);_0x24b19f['unshift'](..._0x1e806a);}const _0x108f64=new Map([[_0x168e4f,_0x258cad]]);for(const _0x408115 of _0x24b19f){const _0x875f2b='attribute'==_0x408115['type']?_0x408115['data']['oldValue']:void 0x0,_0x4a4ba0=_0x408115['getFirstRange'](),_0xb1e9f7=Array['from'](_0x108f64['keys']())['find'](_0xf23961=>_0xf23961['isIntersecting'](_0x4a4ba0));if(!_0xb1e9f7)continue;const _0x2c71ec=_0xb1e9f7['getDifference'](_0x4a4ba0);this['_isBlockAttribute'](_0x47df9a)&&'insertion'==_0x408115['type']&&0x0!=_0x2c71ec['length']||(_0x108f64['delete'](_0xb1e9f7),_0x2c71ec['forEach'](_0x4644b8=>{_0x108f64['set'](_0x4644b8,_0x258cad);}),'insertion'!=_0x408115['type']&&_0x875f2b!=_0x37f9db&&_0x108f64['set'](_0xb1e9f7['getIntersection'](_0x4a4ba0),_0x875f2b));}const _0x39f186=[];for(const [_0x17cd1e,_0x4013ac]of _0x108f64){const _0x2a9978=_0x3309d5(),_0x1a7970={'key':_0x47df9a,'oldValue':_0x4013ac,'newValue':_0x37f9db};_0x47df9a['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':_0x47df9a});const _0x22f7d5=('attribute:'+(_0x47df9a+'|'+Pt({'newValue':_0x37f9db})))['substring'](0x0,0x3c),_0x3ddfa1=this['_setSuggestionData']({'id':_0x2a9978,'type':_0x22f7d5,'data':_0x1a7970,'createdAt':new Date(),'authorId':_0x3dff8a,'attributes':_0x383979});_0x39f186['push'](_0x3ddfa1),this['_addSuggestionMarker'](_0x22f7d5,_0x2a9978,_0x3dff8a,_0x17cd1e);}return _0x39f186;}['enableDefaultAttributesIntegration'](_0x5606dc){this['enableCommand'](_0x5606dc,(_0x19e458,..._0x399114)=>{this['_recordAttributeChanges'](()=>{_0x19e458(..._0x399114);});});}['registerBlockAttribute'](_0x39ed7f){this['_blockAttributeKeys']['add'](_0x39ed7f);}['registerInlineAttribute'](_0x26e47a){this['_inlineAttributeKeys']['add'](_0x26e47a);}['_getAttributeKey'](_0x3e07bd){return'attribute'==_0x3e07bd['type']?_0x3e07bd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4f0e5c,_0xd0f4d8){const _0x474e72=_0x4f0e5c['getFirstMarker']();this['_model']['change'](_0x466c5c=>{_0x466c5c['updateMarker'](_0x474e72,{'range':_0xd0f4d8});});}['_addThreadToSuggestion'](_0x18640c){const _0x1e35bb=_0x18640c['id'],_0x1e03d5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1e35bb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1e03d5,'threadId':_0x1e35bb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x41cec2=this['_commentsRepository']['getCommentThread'](_0x1e35bb);_0x41cec2['unbind']('isRemovable'),_0x41cec2['isRemovable']=!0x1,_0x18640c['commentThread']=_0x41cec2;}['_checkSuggestionCorrectness'](_0x19c363,_0xa71720,_0x49294c,_0x5cd98b){if(_0x19c363['type']!=_0xa71720||_0x19c363['subType']!=_0x49294c||_0x19c363['creator']['id']!=_0x5cd98b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2a8e99('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x184669,_0x2b6fd2){const _0x5d7c57=_0x184669['getFirstRange']();if(_0x2b6fd2['isEqual'](_0x5d7c57))_0x184669['removeMarkers']();else{if(_0x5d7c57['containsRange'](_0x2b6fd2)){const _0x432c90=this['_model']['createPositionAt'](_0x2b6fd2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x184669,this['_model']['createRange'](_0x5d7c57['start'],_0x432c90));const _0x9e71ed=_0x3309d5(),_0x1c521e=_0x184669['creator']['id'],_0xc3cbe5=_0x184669['type']+':'+_0x184669['subType'];this['_setSuggestionData']({'id':_0x9e71ed,'type':_0xc3cbe5,'createdAt':new Date(),'authorId':_0x1c521e,'data':_0x184669['data'],'attributes':_0x184669['attributes']});const _0x39806d=this['_model']['createPositionAt'](_0x2b6fd2['end']['parent'],'after'),_0x35576e=this['_model']['createRange'](_0x39806d,_0x5d7c57['end']);this['_addSuggestionMarker'](_0xc3cbe5,_0x9e71ed,_0x1c521e,_0x35576e);}else{if(_0x5d7c57['containsPosition'](_0x2b6fd2['start'])){const _0x4d8510=this['_model']['createPositionAt'](_0x2b6fd2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x184669,this['_model']['createRange'](_0x5d7c57['start'],_0x4d8510));}else{const _0x19cdaf=this['_model']['createPositionAt'](_0x2b6fd2['end']['parent'],'after');this['_setSuggestionRange'](_0x184669,this['_model']['createRange'](_0x19cdaf,_0x5d7c57['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x46c341){for(const {suggestion:_0x1490d2,meta:_0x50f1d1}of this['_findSuggestions'](_0x46c341,'insertion')){if(!_0x50f1d1['isOwn'])continue;const _0x189c0f=_0x1490d2['getRanges']();for(const _0x184c73 of _0x189c0f)if(!_0x46c341['getDifference'](_0x184c73)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x472ffd){const _0x4ac560=this['editor']['plugins']['get']('Users')['getUser'](_0x472ffd);if(!_0x4ac560)throw new _0x2a8e99('track-changes-user-not-found',this);return _0x4ac560;}['_getExternalAuthor'](_0x2584c3){const _0x4371a9=this['editor']['plugins']['get']('Users'),_0xed0ebf=_0x3c9b9d('external:'+_0x2584c3),_0x21be8d=_0x4371a9['getUser'](_0xed0ebf);return _0x21be8d||_0x4371a9['addUser']({'id':_0xed0ebf,'name':_0x2584c3});}['_createSuggestion'](_0x1ca473,_0x99b1b6,_0x1ab5c3,_0x5f5aec,_0x18d7ad){const _0x325ea0=this['_getAuthorFromId'](_0x5f5aec),_0x25778d=this['_suggestionFactory']['buildSuggestion'](_0x1ca473,_0x99b1b6,_0x1ab5c3,_0x325ea0,_0x18d7ad,_0x5b6d1d=>{this['_updateSuggestionData'](_0x1ab5c3,{'attributes':_0x5b6d1d});const _0x41eb06=this['getSuggestion'](_0x1ab5c3);this['_joinWithAdjacentSuggestions'](new Set([_0x41eb06])),this['_refreshSuggestionsChain'](new Set([_0x41eb06]));});return this['listenTo'](_0x25778d,'accept',()=>{this['_updateSuggestionData'](_0x1ab5c3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x25778d,'discard',()=>{this['_updateSuggestionData'](_0x1ab5c3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1ab5c3,_0x25778d),this['_suggestionState']['set'](_0x25778d,'notReady'),_0x25778d;}['_splitMarkerName'](_0x26b2fe){const _0x398727=_0x26b2fe['split'](':');return{'group':_0x398727[0x0],'type':_0x398727[0x1],'subType':_0x398727['length']>=0x5?_0x398727[0x2]:null,'id':_0x398727['length']<0x5?_0x398727[0x2]:_0x398727[0x3],'authorId':_0x398727['length']<0x5?_0x398727[0x3]:_0x398727[0x4],'markerCount':0x6==_0x398727['length']?_0x398727[0x5]:null};}['_breakSuggestionMarker'](_0x40a484,_0x3764f5,_0x433f8){const _0x41f679=_0x40a484['getFirstRange'](),_0x121206=_0x41f679['start'],_0x41e7e4=_0x41f679['end'];this['_setSuggestionRange'](_0x40a484,this['_model']['createRange'](_0x121206,_0x3764f5));const _0x518022=_0x3309d5(),_0x586037=_0x40a484['creator']['id'],_0x16816d=_0x40a484['type']+(_0x40a484['subType']?':'+_0x40a484['subType']:'');this['_setSuggestionData']({'id':_0x518022,'type':_0x16816d,'createdAt':new Date(),'authorId':_0x586037,'originalSuggestionId':_0x40a484['id'],'attributes':_0x40a484['attributes'],'data':_0x40a484['data']});const _0x39a665=this['_getAttributeKey'](_0x40a484);('formatBlock'==_0x40a484['type']||_0x39a665&&this['_isBlockAttribute'](_0x39a665))&&(_0x433f8=this['_model']['createPositionBefore'](_0x433f8['parent'])),this['_addSuggestionMarker'](_0x16816d,_0x518022,_0x586037,this['_model']['createRange'](_0x433f8,_0x41e7e4));}['_findSuggestions'](_0x4b275d,_0x186c34=null){const _0x1873be=[],_0x554e15=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4b275d)||(_0x4b275d=[_0x4b275d]);for(const _0x509e07 of this['getSuggestions']()){if(!_0x509e07['isInContent'])continue;if(_0x186c34&&_0x509e07['type']!=_0x186c34)continue;let _0x357270=!0x1;for(const _0x4fdb1e of _0x509e07['getRanges']()){for(const _0xc27008 of _0x4b275d){const _0x3f6c1e=_0xc27008['start']['isEqual'](_0x4fdb1e['end'])||_0xc27008['end']['isEqual'](_0x4fdb1e['start']);if(_0x3f6c1e||_0xc27008['getIntersection'](_0x4fdb1e)){const _0x1f339a=_0xc27008['containsRange'](_0x4fdb1e)&&Et(this['_model']['schema'],_0x4fdb1e['start'],_0xc27008),_0x199aa9=_0x4fdb1e['containsRange'](_0xc27008)&&Et(this['_model']['schema'],_0xc27008['start'],_0x4fdb1e);_0x1873be['push']({'suggestion':_0x509e07,'meta':{'isOwn':_0x554e15==_0x509e07['author'],'isNextTo':_0x3f6c1e,'isInsideObject':_0x1f339a,'containsRangeInObject':_0x199aa9}}),_0x357270=!0x0;break;}}if(_0x357270)break;}}return _0x1873be;}['_addSuggestionMarker'](_0x23acde,_0x1afc9d,_0x15047a,_0x4cedb0,_0x424d67){this['_model']['change'](_0x277545=>{let _0x4fc3f1='suggestion:'+_0x23acde+':'+_0x1afc9d+':'+_0x15047a;_0x424d67&&(_0x4fc3f1=_0x4fc3f1+':'+_0x424d67),_0x277545['addMarker'](_0x4fc3f1,{'range':_0x4cedb0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x50cf8b){const _0x40fd58=_0x50cf8b['previous'],_0x4c553e=_0x50cf8b['next'];_0x50cf8b['previous']=null,_0x50cf8b['next']=null,null!=_0x40fd58&&_0x40fd58['next']==_0x50cf8b&&(_0x40fd58['next']=_0x4c553e),null!=_0x4c553e&&_0x4c553e['previous']==_0x50cf8b&&(_0x4c553e['previous']=_0x40fd58),'ready'==this['_suggestionState']['get'](_0x50cf8b)&&(this['_suggestionState']['set'](_0x50cf8b,'removed'),this['fire']('suggestionUnloaded',_0x50cf8b,_0x40fd58,_0x4c553e));}['_setSuggestionData'](_0x3b06f6){const _0x4ad44c=_0x3b06f6['id'],_0x2d83ad=this['addSuggestionData'](_0x3b06f6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x48dd6b=this['editor']['plugins']['get']('PendingActions'),_0x4a7b32=_0x2d83ad['hasComments'],_0x4ca68d=_0x2d83ad['subType']?_0x2d83ad['type']+':'+_0x2d83ad['subType']:_0x2d83ad['type'],_0xeaae7e=this['editor']['locale'],_0x2ac843=_0x48dd6b['add'](o(_0xeaae7e,'PENDING_ACTION_SUGGESTION')),_0xec9ce4={'id':_0x4ad44c,'type':_0x4ca68d,'hasComments':_0x4a7b32,'data':_0x3b06f6['data']||null,'originalSuggestionId':_0x3b06f6['originalSuggestionId']||null,'attributes':_0x2d83ad['attributes']};this['_adapter']['addSuggestion'](_0xec9ce4)['then'](_0x44c481=>{_0x2d83ad['_saved']=!0x0,_0x48dd6b['remove'](_0x2ac843),_0x44c481&&_0x44c481['createdAt']&&(this['_suggestions']['get'](_0x4ad44c)['createdAt']=_0x44c481['createdAt']);})['catch'](_0x5bd735=>{throw _0x3bdc4b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d83ad['discard']();}),_0x2d83ad['stopListening'](),this['_suggestions']['delete'](_0x2d83ad['id']),this['_suggestionState']['delete'](_0x2d83ad),_0x5bd735;});}return _0x2d83ad;}['_isBlockAttribute'](_0x5b9f53){return this['_blockAttributeKeys']['has'](_0x5b9f53);}['_updateSuggestionData'](_0x5a0487,_0x11ee0e){const _0x34299d=this['editor']['plugins']['get']('PendingActions'),_0x25cce5=this['getSuggestion'](_0x5a0487);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x25cce5['_saved']){const _0x417cb7=_0x34299d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5a0487,_0x11ee0e)['then'](()=>{_0x34299d['remove'](_0x417cb7);});}else _0x25cce5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5a0487,_0x11ee0e);});}}['_getSuggestionData'](_0x9a123b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2a8e99('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x9a123b);}['_handleNewSuggestionMarker'](_0x23daa7){const {id:_0x1b6197,type:_0x135674,subType:_0x1e2454,authorId:_0x49629a}=this['_splitMarkerName'](_0x23daa7),_0x583121=this['_suggestions']['get'](_0x1b6197)||this['_createSuggestion'](_0x135674,_0x1e2454,_0x1b6197,_0x49629a,{});switch(this['_checkSuggestionCorrectness'](_0x583121,_0x135674,_0x1e2454,_0x49629a),this['_suggestionState']['get'](_0x583121)){case'notReady':this['_getSuggestionData'](_0x1b6197)['then'](_0x3e5bef=>{let _0x22e941=Promise['resolve']();_0x3e5bef['hasComments']&&(_0x22e941=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1b6197})),_0x22e941['then'](()=>{this['addSuggestionData'](_0x3e5bef)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x583121,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1b6197,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x583121,'ready'),this['fire']('suggestionLoaded',_0x583121);break;case'ready':this['fire']('suggestionChanged',_0x583121);}return _0x583121['addMarkerName'](_0x23daa7),_0x583121;}['_refreshSuggestionsChain'](_0x3aa34c){const _0x337dd1=Array['from'](_0x3aa34c),_0x56c3de=_0x337dd1['filter'](_0x17fd42=>'attribute'==_0x17fd42['type']);this['_refreshAttributeSuggestionsChain'](_0x56c3de);const _0x1a0c95=_0x337dd1['filter'](_0x155f2d=>!_0x155f2d['isMultiRange']&&'attribute'!=_0x155f2d['type']),_0x3fe0db=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x454a65=>!_0x454a65['isMultiRange']&&'attribute'!=_0x454a65['type']),_0x31a69b=_0x3fe0db['filter'](_0x1415b0=>!_0x3aa34c['has'](_0x1415b0)),_0x6cb9a2=new Map(_0x3fe0db['map'](_0x32fc72=>[_0x32fc72,this['_suggestionFactory']['getSuggestionCallback'](_0x32fc72['type'],_0x32fc72['subType'],'chain')])),_0x2c7d24=new Map(_0x3fe0db['map'](_0x3a861b=>[_0x3a861b,_0x3a861b['getFirstRange']()])),_0x43f2c4=new Set(),_0x2014fa=new Set();for(let _0x156bb3=0x0;_0x156bb3<_0x1a0c95['length'];_0x156bb3++)_0x18c3e4(_0x1a0c95[_0x156bb3],_0x1a0c95,_0x156bb3+0x1);for(let _0x26a050=0x0;_0x26a050<_0x1a0c95['length'];_0x26a050++)_0x18c3e4(_0x1a0c95[_0x26a050],_0x31a69b,0x0);const _0x1169b9=new Set();for(let _0x37eb19=0x0;_0x37eb19<_0x1a0c95['length'];_0x37eb19++){const _0x4d3d12=_0x1a0c95[_0x37eb19];!_0x2014fa['has'](_0x4d3d12)&&_0x4d3d12['previous']&&(_0x1169b9['add'](_0x4d3d12['previous']),_0x4d3d12['previous']['next']===_0x4d3d12&&(_0x4d3d12['previous']['next']=null),_0x4d3d12['previous']=null),!_0x43f2c4['has'](_0x4d3d12)&&_0x4d3d12['next']&&(_0x1169b9['add'](_0x4d3d12['next']),_0x4d3d12['next']['previous']===_0x4d3d12&&(_0x4d3d12['next']['previous']=null),_0x4d3d12['next']=null);}function _0x18c3e4(_0x23a0d1,_0x5c5693,_0x1f90ef){for(let _0x166917=_0x1f90ef;_0x166917<_0x5c5693['length'];_0x166917++){const _0x1dec21=_0x1a8ebf(_0x23a0d1,_0x5c5693[_0x166917]);_0x1dec21&&(_0x1dec21[0x0]['next']=_0x1dec21[0x1],_0x1dec21[0x1]['previous']=_0x1dec21[0x0],_0x43f2c4['add'](_0x1dec21[0x0]),_0x2014fa['add'](_0x1dec21[0x1]));}}function _0x1a8ebf(_0x15b9da,_0x1717bb){if(_0x15b9da['author']['id']!==_0x1717bb['author']['id'])return null;const _0x29998d=_0x6cb9a2['get'](_0x15b9da)(_0x15b9da,_0x1717bb,_0x2c7d24['get'](_0x15b9da),_0x2c7d24['get'](_0x1717bb));if(!_0x29998d)return null;return _0x6cb9a2['get'](_0x1717bb)(_0x15b9da,_0x1717bb,_0x2c7d24['get'](_0x15b9da),_0x2c7d24['get'](_0x1717bb))?_0x29998d[0x1]['commentThread']&&_0x29998d[0x1]['commentThread']['length']?null:_0x29998d:null;}_0x1169b9['size']&&this['_refreshSuggestionsChain'](_0x1169b9);}['_refreshAttributeSuggestionsChain'](_0x10c594){if(0x0==_0x10c594['length'])return;const _0x540cea=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x277401=>'attribute'==_0x277401['type']&&_0x277401['_isDataLoaded']),_0xce67a1=[],_0x6007a7=new Map();for(const _0x28667d of _0x540cea){const _0x347a30=_0x3c9b9d(_0x28667d['attributes']);_0x6007a7['has'](_0x347a30)||(_0x6007a7['set'](_0x347a30,_0xce67a1['length']),_0xce67a1['push']([]));const _0x8bc8a9=_0x6007a7['get'](_0x347a30);_0xce67a1[_0x8bc8a9]['push'](_0x28667d);}!(function(){_0xce67a1['sort']((_0x1a009b,_0x4247ff)=>{const _0x49963e=_0x1a009b[0x0]['createdAt'],_0x364c5a=_0x4247ff[0x0]['createdAt'];return _0x49963e==_0x364c5a?_0x1a009b[0x0]['attributes']['groupId']<_0x4247ff[0x0]['attributes']['groupId']?-0x1:0x1:_0x49963e<_0x364c5a?-0x1:0x1;});for(const _0xd481e0 of _0xce67a1)_0xd481e0['sort']((_0x2c2830,_0x3923fe)=>_0x2c2830['id']<_0x3923fe['id']?-0x1:0x1);}());for(let _0x27e0e2=0x0;_0x27e0e2<_0xce67a1['length'];_0x27e0e2++){if(0x0==_0xce67a1[_0x27e0e2]['length'])continue;const _0x2930dc=[];for(let _0x1a9a8a=_0x27e0e2+0x1;_0x1a9a8a<_0xce67a1['length'];_0x1a9a8a++)0x0!=_0xce67a1[_0x1a9a8a]['length']&&_0x34bf09(_0xce67a1[_0x27e0e2],_0xce67a1[_0x1a9a8a])&&_0x2930dc['push'](_0x1a9a8a);for(const _0x2d27da of _0x2930dc)_0xce67a1[_0x27e0e2]=_0xce67a1[_0x27e0e2]['concat'](_0xce67a1[_0x2d27da]),_0xce67a1[_0x2d27da]=[];}for(const _0x1b9020 of _0xce67a1)for(let _0x3f80de=0x0;_0x3f80de<_0x1b9020['length'];_0x3f80de++){const _0xed03de=_0x1b9020[_0x3f80de+0x1]||null;_0x1b9020[_0x3f80de]['next']!==_0xed03de&&(_0x1b9020[_0x3f80de]['next']=_0xed03de);}for(const _0x407780 of _0xce67a1)for(let _0x2462f2=0x0;_0x2462f2<_0x407780['length'];_0x2462f2++){const _0xf19fa7=_0x407780[_0x2462f2-0x1]||null;_0x407780[_0x2462f2]['previous']!==_0xf19fa7&&(_0x407780[_0x2462f2]['previous']=_0xf19fa7);}function _0x34bf09(_0x27502f,_0x39ff97){if(_0x27502f[0x0]['attributes']['groupId']!==_0x39ff97[0x0]['attributes']['groupId']&&_0x27502f[0x0]['author']!==_0x39ff97[0x0]['author'])return!0x1;if(!function(_0x52d721,_0x4cf8dd){if(!_0x52d721['hasComments']&&!_0x4cf8dd['hasComments'])return!0x0;if(_0x52d721['hasComments']&&_0x4cf8dd['hasComments'])return!0x1;if(_0x52d721['hasComments']&&_0x4cf8dd['createdAt']<_0x52d721['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4cf8dd['hasComments']&&_0x52d721['createdAt']<_0x4cf8dd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x27502f[0x0],_0x39ff97[0x0]))return!0x1;const _0x25e86c=Rt(_0x27502f[0x0]['attributes'],'groupId'),_0x48abf9=Rt(_0x39ff97[0x0]['attributes'],'groupId');if(!_0x127c5c(_0x25e86c,_0x48abf9))return!0x1;return!!_0x27502f['every'](_0x1c0a97=>_0x39ff97['some'](_0xaa7883=>_0x1c0a97['getFirstRange']()['isEqual'](_0xaa7883['getFirstRange']())))&&_0x39ff97['every'](_0x5c260a=>_0x27502f['some'](_0x5c6bde=>_0x5c260a['getFirstRange']()['isEqual'](_0x5c6bde['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x390454){const _0x3c29ff=Array['from'](_0x390454),_0x167d82=this['getSuggestions']({'skipNotAttached':!0x0}),_0x18d070=_0x167d82['filter'](_0x37b40c=>!_0x390454['has'](_0x37b40c)),_0x1e546a=new Map(_0x3c29ff['map'](_0x203ba3=>[_0x203ba3,this['_suggestionFactory']['getSuggestionCallback'](_0x203ba3['type'],_0x203ba3['subType'],'join')])),_0x4be651=new Map(_0x167d82['map'](_0x566523=>[_0x566523,_0x566523['getRanges']()]));for(let _0x53c14d=0x0;_0x53c14d<_0x3c29ff['length'];_0x53c14d++){if(_0x1032ae(this,_0x3c29ff[_0x53c14d],_0x3c29ff,_0x53c14d+0x1))return!0x0;}for(let _0x19fc22=0x0;_0x19fc22<_0x3c29ff['length'];_0x19fc22++){if(_0x1032ae(this,_0x3c29ff[_0x19fc22],_0x18d070,0x0))return!0x0;}return!0x1;function _0x1032ae(_0x19abac,_0x30a94e,_0x10fe21,_0x9f3460){for(let _0x91e67f=_0x9f3460;_0x91e67f<_0x10fe21['length'];_0x91e67f++){const _0x380e4a=_0x10fe21[_0x91e67f];if(_0x380e4a['type']!==_0x30a94e['type']||_0x380e4a['author']['id']!==_0x30a94e['author']['id']||_0x380e4a['subType']!==_0x30a94e['subType'])continue;if(!Jt(_0x30a94e,_0x380e4a))continue;if('attribute'==_0x30a94e['type']&&_0x30a94e['data']['oldValue']!=_0x380e4a['data']['oldValue'])continue;if('attribute'==_0x30a94e['type']&&_0x19abac['_isBlockAttribute'](_0x30a94e['data']['key']))continue;if('formatBlock'==_0x30a94e['type']){const _0x570a5d=_0x19abac['editor']['model'],_0xe14eba=_0x30a94e['getContainedElement']();if(_0xe14eba&&(_0x570a5d['schema']['isObject'](_0xe14eba)||_0x570a5d['schema']['isLimit'](_0xe14eba)))continue;}const _0x29a11e=_0x1e546a['get'](_0x30a94e),_0x433b71=_0x4be651['get'](_0x30a94e),_0x45c378=_0x4be651['get'](_0x380e4a),_0x51cb56=_0x30a94e['commentThread']&&_0x30a94e['commentThread']['length'],_0xc03e52=_0x380e4a['commentThread']&&_0x380e4a['commentThread']['length'];if(!_0x51cb56&&_0x29a11e(_0x45c378,_0x433b71))return _0x19abac['_joinSuggestions'](_0x380e4a,_0x30a94e),_0x4be651['delete'](_0x30a94e),!0x0;if(!_0xc03e52&&_0x29a11e(_0x433b71,_0x45c378))return _0x19abac['_joinSuggestions'](_0x30a94e,_0x380e4a),_0x4be651['delete'](_0x380e4a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3f29f7,_0x1a8654){if(_0x3f29f7['isMultiRange']){for(const _0x8daac7 of _0x1a8654['getRanges']())_0x3f29f7['addRange'](_0x8daac7);}else{const _0x194a32=_0x1a8654['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3f29f7,this['_model']['createRange'](_0x3f29f7['getFirstRange']()['start'],_0x194a32));}_0x1a8654['removeMarkers']();}['_getMarkerAnnouncementText'](_0xdfcaab,_0x5c742a,_0x49fbee){const _0x4b5c8f=_0xdfcaab['startsWith']('format')||_0xdfcaab['startsWith']('attribute')?'FORMATTING':_0xdfcaab['toUpperCase']();return o(this['editor']['locale'],_0x5c742a+'_'+_0x4b5c8f+'_SUGGESTION_ANNOUNCEMENT',_0x49fbee);}['_initAriaMarkerChangeAnnouncements'](){const _0x4d330b=this['editor'];if(!_0x4d330b['ui'])return;const {ariaLiveAnnouncer:_0x345873}=_0x4d330b['ui'];_0x8d8bfa(this['_model'],({left:_0x31a546,entered:_0x45a890})=>{for(const _0x336704 of _0x31a546){const {group:_0x12a38b,type:_0x2edeb8}=this['_splitMarkerName'](_0x336704['name']);if('suggestion'===_0x12a38b){_0x345873['announce'](this['_getMarkerAnnouncementText'](_0x2edeb8,'LEAVE'));break;}}for(const _0x42c6ef of _0x45a890){const {group:_0x3c9276,type:_0x143c10}=this['_splitMarkerName'](_0x42c6ef['name']);if('suggestion'===_0x3c9276){_0x345873['announce'](this['_getMarkerAnnouncementText'](_0x143c10,'ENTER',_0x292fdd(_0x524270)));break;}}});}['_processAttributeChanges'](_0x11f3ef){if(this['_recordAttributeSuggestions'])return!0x1;const _0x25ba73=this['editor'],_0x363dc1=_0x25ba73['model']['document']['differ']['getChanges']();if(0x0==_0x363dc1['length'])return!0x1;const _0x3a97ab=[],_0x6fbe40=_0x363dc1['filter'](_0x3f1073=>'attribute'==_0x3f1073['type']),_0x1e0fe2=_0x363dc1['filter'](_0x294ebd=>'insert'==_0x294ebd['type']&&'$text'!=_0x294ebd['name']),_0x2560c0=_0x363dc1['filter'](_0x43747c=>'remove'==_0x43747c['type']&&'$text'!=_0x43747c['name']);for(const _0x54f287 of _0x6fbe40)_0x3a97ab['push']({'key':_0x54f287['attributeKey'],'newValue':_0x54f287['attributeNewValue'],'oldValue':_0x54f287['attributeOldValue'],'range':Ft(_0x54f287['range'],_0x25ba73['model'])});for(const _0x3664cb of _0x1e0fe2){const _0x2e73fa=_0x2560c0['find'](_0x47b4d4=>_0x47b4d4['position']['isEqual'](_0x3664cb['position']));_0x2e73fa&&_0x3a97ab['push']({'key':m,'newValue':_0x3664cb['name'],'oldValue':_0x2e73fa['name'],'range':_0x25ba73['model']['createRangeOn'](_0x3664cb['position']['nodeAfter'])});}return 0x0!=_0x3a97ab['length']&&this['_reduceExistingSuggestions'](_0x11f3ef,_0x3a97ab);}['_processAttributeSuggestions'](_0x5ceaf5){let _0x4e3e7c=!0x1;const _0x501afe=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xb67143=>_0xb67143['data']['newRange']&&_0xb67143['name']['startsWith']('suggestion:attribute:'));for(const _0x1a935e of _0x501afe){const {subType:_0x2d2429,id:_0x28d190}=this['_splitMarkerName'](_0x1a935e['name']),_0x5dbedd=_0x2d2429['split']('|')[0x0];for(const _0x261162 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x261162['id']!=_0x28d190&&'attribute'==_0x261162['type']&&_0x261162['data']&&_0x261162['data']['key']==_0x5dbedd&&_0x261162['getFirstRange']()['isIntersecting'](_0x1a935e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x261162,_0x1a935e['data']['newRange'],_0x5ceaf5),_0x4e3e7c=!0x0);}return _0x4e3e7c;}['_recordAttributeChanges'](_0x496d78){this['_recordAttributeSuggestions']=!0x0,_0x496d78();}['_isRegisteredAttribute'](_0x377042){const _0x3ad8b3=this['_isBlockAttribute'](_0x377042),_0x3cd309=this['_inlineAttributeKeys']['has'](_0x377042);return _0x3ad8b3||_0x3cd309;}['_reduceExistingSuggestions'](_0x3a2fac,_0x34b516){if(0x0==_0x34b516['length'])return!0x1;let _0x244850=!0x1;for(const _0x28058a of _0x34b516){const _0xb354=this['_findSuggestions'](_0x28058a['range'],'attribute')['filter'](_0x4bcd92=>!_0x4bcd92['meta']['isNextTo'])['map'](_0x12690f=>_0x12690f['suggestion']),_0x3f8fb5=_0x3c9b9d({'newValue':_0x28058a['newValue']});_0xb354['filter'](_0x586b30=>{const [_0x11e1b0,_0x41568d]=_0x586b30['subType']['split']('|');return _0x11e1b0==_0x28058a['key']&&_0x41568d!=_0x3f8fb5;})['forEach'](_0x1899a4=>{this['_reduceSuggestionAttributeRange'](_0x1899a4,_0x28058a['range'],_0x3a2fac),_0x244850=!0x0;});}return _0x244850;}['_reduceSuggestionAttributeRange'](_0x277f08,_0xccc2c0,_0x3397cc){const _0x55ca84=_0x277f08['getFirstRange']()['getDifference'](_0xccc2c0);0x0!==_0x55ca84['length']?0x1!==_0x55ca84['length']?this['_breakSuggestionMarker'](_0x277f08,_0xccc2c0['start'],_0xccc2c0['end']):this['_setSuggestionRange'](_0x277f08,_0x55ca84[0x0]):_0x3397cc['removeMarker'](_0x277f08['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1666d3){this['_editor']=_0x1666d3,this['_model']=_0x1666d3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4b7184,_0x114762,_0x5322f9,_0x45064b,_0x1b92df,_0x19f599){return new u(this['_model'],{'type':_0x4b7184,'subType':_0x114762,'id':_0x5322f9,'author':_0x45064b,'creator':_0x45064b,'attributes':_0x1b92df,'onAttributesChange':_0x19f599,'onAccept':(..._0x2fa444)=>this['getSuggestionCallback'](_0x4b7184,_0x114762,'accept')(..._0x2fa444),'onDiscard':(..._0x30c8d3)=>this['getSuggestionCallback'](_0x4b7184,_0x114762,'discard')(..._0x30c8d3)});}['registerCustomCallback'](_0x1ac927,_0x2e64ac,_0x4e9c79,_0x1c3cb2){const _0x5df252=_0x1ac927+':'+_0x2e64ac+':'+_0x4e9c79;this['_customCallbacks']['set'](_0x5df252,_0x1c3cb2);}['getSuggestionCallback'](_0xe5e308,_0x1514c2,_0x2df94e){const _0x2822fb=_0xe5e308+':'+_0x1514c2+':'+_0x2df94e;return this['_customCallbacks']['get'](_0x2822fb)||this['_defaultCallbacks']['get'](_0xe5e308+':'+_0x2df94e);}['_registerDefaultCallbacks'](){const _0x2afd3f=()=>!0x1,_0x280d0e=_0x3a595a=>{_0x3a595a['sort']((_0x13d376,_0x2e316f)=>_0x13d376['start']['isBefore'](_0x2e316f['start'])?0x1:-0x1),this['_model']['change'](_0x15cc88=>{for(const _0x386386 of _0x3a595a){let _0x563230;_0x563230=_0x386386['end']['isAtEnd']&&_0x386386['end']['parent']==_0x386386['start']['nodeAfter']?_0x15cc88['createSelection'](_0x386386['start']['nodeAfter'],'on'):_0x15cc88['createSelection'](_0x386386),this['_model']['deleteContent'](_0x563230,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xbf3692=(_0x184b4d,_0x3787ff)=>{_0x3787ff&&this['_model']['change'](_0x5f4ad6=>{const {commandName:_0x4feedc,commandParams:_0x4b1aea=[]}=_0x3787ff,_0x282dfb=_0x184b4d['map'](_0x542b8d=>(Vt(_0x542b8d)&&(_0x542b8d=this['_model']['createRange'](_0x542b8d['end'])),_0x542b8d))['filter'](_0x1d5f4b=>'$graveyard'!==_0x1d5f4b['root']['rootName']);if(_0x282dfb['length']<0x1)return;const _0x145430=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b139f=>_0xd05373['fromRange'](_0x2b139f));_0x5f4ad6['setSelection'](_0x282dfb);for(const _0x101bbb of this['_editor']['commands']['commands']())_0x101bbb['refresh']();_0x4b1aea['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4feedc,..._0x4b1aea);const _0x1d47f0=_0x145430['filter'](_0x6f8360=>'$graveyard'!=_0x6f8360['root']['rootName']);_0x1d47f0['length']>0x0&&_0x5f4ad6['setSelection'](_0x1d47f0);for(const _0x55dd29 of _0x145430)_0x55dd29['detach']();});},_0x536428=(_0x20b65d,_0x5595af)=>0x1==_0x20b65d['length']&&0x1==_0x5595af['length']&&_0x20b65d[0x0]['end']['isEqual'](_0x5595af[0x0]['start']),_0x4b76d8=(_0x574954,_0x1134b,_0x14263d,_0x887870)=>Ht(_0x574954,_0x1134b,_0x14263d,_0x887870,this['_model'])?[_0x574954,_0x1134b]:Ht(_0x1134b,_0x574954,_0x887870,_0x14263d,this['_model'])?[_0x1134b,_0x574954]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2afd3f),this['_defaultCallbacks']['set']('insertion:discard',_0x280d0e),this['_defaultCallbacks']['set']('insertion:join',_0x536428),this['_defaultCallbacks']['set']('insertion:chain',_0x4b76d8),this['_defaultCallbacks']['set']('deletion:accept',_0x280d0e),this['_defaultCallbacks']['set']('deletion:discard',_0x2afd3f),this['_defaultCallbacks']['set']('deletion:join',_0x536428),this['_defaultCallbacks']['set']('deletion:chain',_0x4b76d8),this['_defaultCallbacks']['set']('formatInline:accept',_0xbf3692),this['_defaultCallbacks']['set']('formatInline:discard',_0x2afd3f),this['_defaultCallbacks']['set']('formatInline:join',_0x536428),this['_defaultCallbacks']['set']('formatInline:chain',_0x2afd3f),this['_defaultCallbacks']['set']('formatBlock:accept',_0xbf3692),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2afd3f),this['_defaultCallbacks']['set']('formatBlock:join',_0x536428),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2afd3f),this['_defaultCallbacks']['set']('attribute:accept',_0x2afd3f),this['_defaultCallbacks']['set']('attribute:discard',(_0x23d097,_0x5ec958)=>{if(!_0x5ec958)return;const _0x1edf8b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x45c9ec=>{if(_0x5ec958['key']==m)for(const _0x180568 of _0x23d097){const _0x397218=_0x180568['start']['nodeAfter'],_0x62a905=_0x5ec958['oldValue'];_0x45c9ec['rename'](_0x397218,_0x62a905);}else{if(_0x1edf8b['_isBlockAttribute'](_0x5ec958['key'])){for(const _0x2fc132 of _0x23d097)void 0x0!==_0x5ec958['oldValue']?_0x45c9ec['setAttribute'](_0x5ec958['key'],_0x5ec958['oldValue'],_0x2fc132['start']['nodeAfter']):_0x45c9ec['removeAttribute'](_0x5ec958['key'],_0x2fc132['start']['nodeAfter']);}else{for(const _0x4003a4 of _0x23d097)_0x5ec958['oldValue']?_0x45c9ec['setAttribute'](_0x5ec958['key'],_0x5ec958['oldValue'],_0x4003a4):_0x45c9ec['removeAttribute'](_0x5ec958['key'],_0x4003a4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x536428);}}function Et(_0x19376d,_0x5303c4,_0xf6956b){for(const _0x5d88d1 of _0x5303c4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5d88d1['root']==_0x5d88d1)return!0x1;if(!_0xf6956b['containsItem'](_0x5d88d1))return!0x1;if(_0x19376d['isObject'](_0x5d88d1)||_0x19376d['isLimit'](_0x5d88d1))return!0x0;}return!0x1;}function Vt(_0x15c0a5){return _0x15c0a5['end']['parent']==_0x15c0a5['start']['nodeAfter']&&_0x15c0a5['end']['isAtStart'];}function Ut(_0x3dff9f,_0x1a7a51,_0x3cee52,_0x285b91){const _0x5042a8=_0x318b24=>!_0x318b24['item']['is']('$textProxy')&&!_0x285b91['isObject'](_0x318b24['item']),_0xa0076f=_0x3dff9f['start']['getLastMatchingPosition'](_0x5042a8),_0x351480=_0x3dff9f['end']['getLastMatchingPosition'](_0x5042a8,{'direction':'backward'});return(!_0x3dff9f['start']['isEqual'](_0xa0076f)||!_0x3dff9f['end']['isEqual'](_0x351480))&&(_0xa0076f['isBefore'](_0x351480)?_0x3cee52['updateMarker'](_0x1a7a51,{'range':_0x3cee52['createRange'](_0xa0076f,_0x351480)}):_0x3cee52['removeMarker'](_0x1a7a51),!0x0);}function Pt(_0x3c3ed3){return _0x3c9b9d(_0x3c3ed3);}function Gt(_0x5e3dfd){const _0xa5211a=_0x5e3dfd['start']['nodeAfter'];return _0xa5211a&&_0xa5211a['is']('element');}function Ft(_0x146771,_0x3da855){return null==_0x146771['end']['nodeBefore']&&_0x146771['end']['parent']==_0x146771['start']['nodeAfter']?Lt(_0x146771['start']['nodeAfter'],_0x3da855):_0x146771;}function Lt(_0x3a84eb,_0x2e376d){const _0x213956=_0x2e376d['schema']['isObject'](_0x3a84eb)||_0x2e376d['schema']['isSelectable'](_0x3a84eb);return _0x2e376d['createRange'](_0x2e376d['createPositionAt'](_0x3a84eb,'before'),_0x213956?_0x2e376d['createPositionAfter'](_0x3a84eb):_0x2e376d['createPositionAt'](_0x3a84eb,'end'));}function Ht(_0x104437,_0x4a5575,_0xe7a3bf,_0x160fe7,_0x2b2c13){if(_0x104437['next'])return!0x1;if(!Jt(_0x104437,_0x4a5575))return!0x1;if(_0xe7a3bf['end']['isEqual'](_0x160fe7['start']))return!0x0;if(_0x104437['type']!=_0x4a5575['type'])return!0x1;if(!_0xe7a3bf['end']['isTouching'](_0x160fe7['start']))return!0x1;const _0x58af24=_0x2b2c13['createRange'](_0xe7a3bf['end'],_0x160fe7['start'])['getWalker']();for(const _0x7c5c3d of _0x58af24)if(['elementStart','elementEnd']['includes'](_0x7c5c3d['type'])&&_0x2b2c13['schema']['isLimit'](_0x7c5c3d['item']))return!0x1;return!0x0;}function Jt(_0x3a602a,_0x154366){if(!_0x3a602a['_isDataLoaded']||!_0x154366['_isDataLoaded'])return!0x1;const _0xf88963=new Set(Object['keys'](_0x3a602a['attributes'])),_0x41e013=new Set(Object['keys'](_0x154366['attributes']));if(_0xf88963['delete']('groupId'),_0x41e013['delete']('groupId'),0x0==_0xf88963['size']&&0x0==_0x41e013['size'])return!0x0;if(_0xf88963['size']!=_0x41e013['size'])return!0x1;const _0x5749f3={..._0x3a602a['attributes']},_0x25091b={..._0x154366['attributes']};return delete _0x5749f3['groupId'],delete _0x25091b['groupId'],JSON['stringify'](_0x5749f3)==JSON['stringify'](_0x25091b);}function qt(_0x540d39,_0x1a326c){const _0x428237=zt(_0x540d39['attributes']),_0x505425=zt(_0x1a326c);if(!_0x540d39['_isDataLoaded'])return!0x1;for(const _0x84e651 of Object['keys'](_0x505425))if(!_0x127c5c(_0x428237[_0x84e651],_0x505425[_0x84e651]))return!0x1;return!0x0;}function zt(_0x31c5b7){const _0x73a429=Object['assign']({},_0x31c5b7);return delete _0x73a429['skipNestingCheck'],delete _0x73a429['tablePasteChainId'],_0x73a429;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0xe943fa(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4d29fa,_0xeae4d3,_0x5b5fba,_0x1eaf75){super(),this['model']=_0xeae4d3,this['view']=_0x5b5fba,this['commentThreadController']=_0x1eaf75,this['_editor']=_0x4d29fa,this['_acceptCommand']=_0x4d29fa['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d29fa['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4b23f3,_0xc5190)=>_0x4b23f3||_0xc5190),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4ed82f=>_0x4ed82f&&this['_editor']['model']['canEditAt'](_0xeae4d3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5a6ba9=>_0x5a6ba9&&this['_editor']['model']['canEditAt'](_0xeae4d3['getRanges']())),this['_pendingAction']=null,_0x5b5fba['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5b5fba,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5b5fba,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5b5fba,'change:isDirty',()=>{_0x5b5fba['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 _0x3ecadf=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3ecadf);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4bb188{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1aec62,_0x8b028b,_0x591b9e,_0x3820a8){super(_0x1aec62),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4167f2(_0x1aec62,o(_0x1aec62,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x8b028b['authoredAt']),this['bind']('authoredAt')['to'](_0x8b028b),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',_0x8b028b,'authoredAt',this,'descriptionParts',(_0x1b03bb,_0x302806,_0x178383)=>{const _0x33a5ef=_0x178383['map'](_0x52964f=>ls(_0x52964f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1b03bb-0x1,_0x8b028b['author']['name'],_0x302806?_0x3820a8['formatDateTime'](_0x302806):'',new DOMParser()['parseFromString'](_0x33a5ef,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5b5e4d(),this['focusTracker']=new _0x5836c7(),this['keystrokes']=new _0xaf721f(),this['focusCycler']=new _0x486be6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x25e27e=>_0x25e27e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x8b028b,this['_localUser']=_0x591b9e,this['_config']=_0x3820a8,_0x3820a8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x767110(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x43790e}=this['_config'];this['commentsListView']=new _0x43790e(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',_0x21300d=>_0x21300d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xd97b6c,_0x56ac6d)=>_0xd97b6c||!!_0x56ac6d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x189332}=this['_config'],_0x462ef9=new _0x189332(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x13fd5b=_0x462ef9['commentInputView'];return _0x462ef9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x13fd5b,'value',(_0x3bb2d9,_0x408548,_0x3b6011)=>!!_0x3b6011||_0x3bb2d9&&!_0x408548),_0x13fd5b['on']('submit',(_0x5c2476,_0x23f239)=>{this['fire']('addComment',_0x23f239),_0x13fd5b['editor']['setData']('');}),_0x13fd5b['on']('cancel',()=>this['focus']()),_0x13fd5b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x462ef9;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1c64b8,_0x1e78a0,_0x166c10,_0x580b35){super(_0x1c64b8,_0x1e78a0,_0x166c10,_0x580b35),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12abe6=>_0x12abe6&&_0x12abe6[0x0]?_0x12abe6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5912e1,_0x52380c)=>{let _0x9dea67='';for(const _0x20f2e6 of _0x5912e1)_0x9dea67+='<p>'+ls(_0x20f2e6['content'],_0x20f2e6['color'])+'</p>';return _0x52380c?_0x9dea67:_0x4acbd0(_0x9dea67,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x580b35['SuggestionView'](_0x1c64b8,_0x1e78a0,{'formatDateTime':_0x580b35['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 _0x286ded=this['bindTemplate'],_0x6e8b42=[this['suggestionView']];return this['commentsListView']&&_0x6e8b42['push'](this['commentsListView']),this['commentThreadInputView']&&_0x6e8b42['push'](this['commentThreadInputView']),_0x6e8b42['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x286ded['if']('isActive','ck-suggestion-wrapper--active'),_0x286ded['to']('type',_0x2daec6=>'ck-suggestion-'+_0x2daec6),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':_0x286ded['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x6e8b42};}['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 _0x4bb188{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x14be70,_0x2f1619,_0x47396b){super(_0x14be70),this['_model']=_0x2f1619,this['_config']=_0x47396b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2f1619),this['acceptButton']=this['_createButton'](o(_0x14be70,'Accept\x20suggestion'),_0x1c3b1a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x14be70,'Discard\x20suggestion'),_0x1c3b1a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x39c45e(_0x14be70,_0x2f1619['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5b5e4d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5836c7(),this['keystrokes']=new _0xaf721f(),this['focusCycler']=new _0x486be6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x19532d=>_0x19532d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x30a801=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x30a801['innerHTML']=this['description'],this['on']('change:description',(_0x5877de,_0x18c22b,_0x9a4536)=>{_0x30a801['innerHTML']=_0x9a4536;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2243da=this['bindTemplate'],_0x388506=[{'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':_0x2243da['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2243da['to']('authoredAt',_0xb923ee=>this['_config']['formatDateTime'](_0xb923ee))}]}]},{'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']&&_0x388506['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':_0x388506}]};}['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'](_0x54c38e,_0x5888c2,_0x2dfa72,_0x38147e,_0x20d359){const _0x29e800=new _0xaadc98(this['locale']);return _0x29e800['set']({'label':_0x54c38e,'icon':_0x5888c2,'tooltip':!0x0,'tooltipPosition':_0x20d359}),_0x29e800['extendTemplate']({'attributes':{'class':_0x2dfa72}}),_0x29e800['on']('execute',()=>{this['fire'](_0x38147e,this['_model']['id']);}),_0x29e800;}['_setupKeyboardNavigation'](){const _0x532927=this['element'];this['keystrokes']['listenTo'](_0x532927);for(const _0x725de0 of this['focusables'])this['focusTracker']['add'](_0x725de0['element']),this['keystrokes']['listenTo'](_0x725de0['element']);this['keystrokes']['set']('enter',(_0x38104a,_0x54c31d)=>{_0x532927===_0x38104a['target']&&(this['focusCycler']['focusFirst'](),_0x54c31d());}),this['keystrokes']['set']('esc',(_0x39fee2,_0x2b309c)=>{_0x532927!==_0x39fee2['target']&&(this['focus'](),_0x2b309c());});}}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 _0x488752{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x574e89,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3419bb){super(_0x3419bb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x53d3fd=this['editor']['config'];_0x53d3fd['define']('trackChanges.SuggestionThreadView',re),_0x53d3fd['define']('trackChanges.SuggestionView',ce),_0x53d3fd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x53d3fd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x36d893,_0x5ab3d5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x52a570,_0x167075]of this['_handleControllerBuffer']){const _0x5e810a=this['_suggestionToController']['has'](_0x52a570);_0x5e810a||_0x167075?_0x5e810a&&_0x167075&&this['_destroyController'](_0x52a570):this['_initializeController'](_0x52a570);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x36d893,_0x5ab3d5);}['init'](){const _0x9f20a2=this['editor'],_0x258467=_0x9f20a2['plugins']['get']('TrackChangesEditing'),_0xc16efa=_0x9f20a2['plugins']['get']('Annotations'),_0xac9e83=_0x9f20a2['plugins']['get']('EditorAnnotations'),_0x5064ce=_0x9f20a2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xac9e83['addSourceCollector'](()=>{const _0x57f680=[];for(const [_0xaf00da,_0x100568]of Array['from'](this['_suggestionToController'])){const _0x3e8b64=_0xaf00da['getAllAdjacentSuggestions'](),_0x4aaae0=[];for(const _0x41ab88 of _0x3e8b64){if(!_0x41ab88['isInContent'])continue;if(_0x41ab88['isMultiRange']){_0x4aaae0['push'](..._0x41ab88['getRanges']());continue;}const _0x1e9257=_0x41ab88['getFirstRange']();if(_0x4aaae0['length']>0x0){const _0x2f9af4=_0x4aaae0[0x0]['getJoined'](_0x1e9257);if(_0x2f9af4){_0x4aaae0[0x0]=_0x2f9af4;continue;}}_0x4aaae0['push'](_0x1e9257);}_0x57f680['push']([_0x100568['view'],_0x4aaae0]);}return _0x57f680;}),this['listenTo'](_0x258467,'suggestionLoaded',(_0x101de8,_0x378a99)=>{this['listenTo'](_0x378a99,'change:previous',(_0x428acd,_0xc8f8ab,_0x222442,_0x5a7746)=>{_0x378a99['isInContent']&&(null==_0x222442?(this['_updateController'](_0x5a7746['head']),this['_handleSuggestionControllerDelayed'](_0x378a99,!0x1)):(this['_updateController'](_0x222442['head']),null==_0x5a7746&&this['_handleSuggestionControllerDelayed'](_0x378a99,!0x0)));}),null!==_0x378a99['previous']?this['_updateController'](_0x378a99['head']):this['_handleSuggestionControllerDelayed'](_0x378a99,!0x1);}),this['listenTo'](_0x258467,'suggestionUnloaded',(_0x56a4e2,_0xe9af56,_0xbbb52c)=>{this['stopListening'](_0xe9af56,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe9af56),this['_suggestionToController']['has'](_0xe9af56)&&this['_destroyController'](_0xe9af56),_0xbbb52c&&this['_updateController'](_0xbbb52c['head']);}),this['listenTo'](_0x258467,'suggestionChanged',(_0x1cc13c,_0x307abf)=>{this['_updateController'](_0x307abf);}),this['listenTo'](_0xc16efa,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5064ce,'addComment',(_0x59ff04,{threadId:_0x1e7cd0,isFromAdapter:_0x1947a3})=>{if(_0x1947a3||!_0x258467['hasSuggestion'](_0x1e7cd0))return;const _0x4ed08d=_0x258467['getSuggestion'](_0x1e7cd0);this['_suggestionToController']['get'](_0x4ed08d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xc9f4aa=this['editor']['plugins']['get']('Annotations'),_0x55984f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220300=Array['from'](_0xc9f4aa['activeAnnotations'],_0xdc047d=>_0xdc047d['innerView'])['filter'](_0x36c446=>this['_viewToController']['has'](_0x36c446)),_0x39d554=[];for(const _0x1f123a of _0x220300){const _0x43a1f9=this['_viewToController']['get'](_0x1f123a)['model']['getAllAdjacentSuggestions']();_0x39d554['push'](..._0x43a1f9['reduce']((_0x54d699,_0x5c6021)=>[..._0x54d699,..._0x5c6021['getMarkerNames']()],[]));}_0x55984f['activeMarkers']=_0x39d554;}['_addUIComponentsToFactory'](){const _0xbd26a4=this['editor'],_0x1092f2=_0xbd26a4['locale'],_0x336eeb=o(_0x1092f2,'Track\x20changes'),_0x5a0848=new Wt([{'type':'switchbutton','model':new _0x2feba1({'withText':!0x0,'isToggleable':!0x0,'label':_0x336eeb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2feba1({'withText':!0x0,'label':o(_0x1092f2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2feba1({'withText':!0x0,'label':o(_0x1092f2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2feba1({'withText':!0x0,'label':o(_0x1092f2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2feba1({'withText':!0x0,'label':o(_0x1092f2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x11a533 of _0x5a0848)if(me(_0x11a533)){const _0x2228a0=_0xbd26a4['commands']['get'](_0x11a533['model']['commandName']);_0x11a533['model']['bind']('isOn','isEnabled')['to'](_0x2228a0,'value','isEnabled');}_0xbd26a4['ui']['componentFactory']['add']('trackChanges',_0x22e712=>this['_createToolbarButton'](_0x22e712,_0x5a0848,_0x336eeb)),_0xbd26a4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4eca2f=>this['_createMenuBarMenu'](_0x4eca2f,_0x5a0848,_0x336eeb));}['_createToolbarButton'](_0x338921,_0x2ce364,_0x313f58){const _0x368e8e=Qt(_0x338921,_0x390abd),_0x52331c=this['editor']['commands']['get']('trackChanges');_0x368e8e['buttonView']['set']({'tooltip':_0x313f58,'label':_0x313f58,'icon':he}),_0x368e8e['buttonView']['bind']('isOn')['to'](_0x52331c,'value'),_0x368e8e['buttonView']['on']('execute',()=>{_0x52331c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x368e8e,_0x2ce364,{'role':'menu'});const _0x50324c=[];for(const _0x3a2426 of _0x2ce364)me(_0x3a2426)&&_0x50324c['push'](this['editor']['commands']['get'](_0x3a2426['model']['commandName']));const _0x493e73=_0x368e8e['buttonView'];return _0x493e73['actionView']['unbind']('isEnabled'),_0x493e73['arrowView']['unbind']('isEnabled'),_0x493e73['actionView']['bind']('isEnabled')['to'](_0x52331c,'isEnabled'),_0x493e73['arrowView']['bind']('isEnabled')['toMany'](_0x50324c,'isEnabled',(..._0x5b4212)=>_0x5b4212['some'](_0x53a35a=>_0x53a35a)),_0x368e8e['on']('execute',_0x1fd29d=>{this['editor']['execute'](_0x1fd29d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x368e8e;}['_createMenuBarMenu'](_0x19662f,_0x4024ee,_0x1b2101){const _0x16abf5=new Yt(_0x19662f),_0x111e69=this['editor']['commands']['get']('trackChanges');_0x16abf5['buttonView']['set']({'label':_0x1b2101,'icon':he});const _0x5a7ffd=new Zt(_0x19662f);for(const _0x4e49aa of _0x4024ee){if('separator'==_0x4e49aa['type']){_0x5a7ffd['items']['add'](new Xt(_0x19662f));continue;}const _0x8d5b83=new te(_0x19662f,_0x16abf5),_0x5efbd5=new _0x5c7349(_0x19662f),_0x2f3d4a=_0x4e49aa['model'];_0x5efbd5['bind'](...Object['keys'](_0x2f3d4a))['to'](_0x2f3d4a),_0x5efbd5['delegate']('execute')['to'](_0x16abf5),_0x5efbd5['on']('execute',()=>{this['editor']['execute'](_0x2f3d4a['commandName']),this['editor']['editing']['view']['focus']();}),_0x8d5b83['children']['add'](_0x5efbd5),_0x5a7ffd['items']['add'](_0x8d5b83);}return _0x16abf5['bind']('isEnabled')['to'](_0x111e69,'isEnabled'),_0x16abf5['panelView']['children']['add'](_0x5a7ffd),_0x16abf5;}['_initializeController'](_0x468638){const _0x1987e2=this['editor'],_0x25e5d9=_0x1987e2['config'],_0x1a6f2d=_0x1987e2['plugins']['get']('Annotations'),_0x2ee44a=_0x1987e2['plugins']['get']('CommentsRepository'),_0x34e66a=_0x1987e2['plugins']['get']('EditorAnnotations'),_0x2c35d9=_0x1987e2['plugins']['get'](_0x574e89)['me'],_0x33112a=_0x25e5d9['get']('trackChanges')['SuggestionThreadView'],_0x4d5fd6=_0x25e5d9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x123d32,CommentThreadInputView:_0x35e79a}=_0x1987e2['plugins']['get']('CommentsUI');let _0x22cbb5,_0x105bf4,_0x70043b;this['_annotationViews']['has'](_0x468638['id'])?(_0x105bf4=this['_annotationViews']['get'](_0x468638['id']),_0x22cbb5=_0x105bf4['mainView']):(_0x22cbb5=new _0x33112a(_0x1987e2['locale'],_0x468638,_0x2c35d9,{'disableComments':this['_disableComments'],'editorConfig':_0x25e5d9['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x25e5d9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x25e5d9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x25e5d9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x252609(_0x25e5d9['get']('locale')),'CommentView':_0x25e5d9['get']('comments')['CommentView'],'CommentsListView':_0x123d32,'CommentThreadInputView':_0x35e79a,'SuggestionView':_0x4d5fd6}),_0x22cbb5['suggestionView']['acceptButton']['on']('execute',()=>{_0x1987e2['editing']['view']['focus']();}),_0x22cbb5['suggestionView']['discardButton']['on']('execute',()=>{_0x1987e2['editing']['view']['focus']();}),_0x105bf4=_0x1a6f2d['createAnnotationView'](this['editor']['locale'],_0x22cbb5),_0x105bf4['bind']('isDirty')['to'](_0x22cbb5,'isDirty'),_0x105bf4['bind']('length')['to'](_0x22cbb5),_0x105bf4['bind']('type')['to'](_0x22cbb5,'type',_0x4ebe51=>'suggestion-'+_0x4ebe51),_0x22cbb5['on']('escape',()=>{_0x70043b['fire']('escape');}),this['_annotationViews']['set'](_0x468638['id'],_0x105bf4));const _0xe0c991=_0x2ee44a['createCommentThreadController'](_0x468638['commentThread'],_0x22cbb5),_0x246de9=new ae(_0x1987e2,_0x468638,_0x22cbb5,_0xe0c991),_0x4136c2=_0x468638['getAllAdjacentSuggestions']()['filter'](_0x5abc50=>_0x5abc50['isInContent']);_0x22cbb5['descriptionParts']=_0x1987e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4136c2),this['_suggestionToController']['set'](_0x468638,_0x246de9),this['_viewToController']['set'](_0x22cbb5,_0x246de9),_0x70043b=_0x1a6f2d['createAnnotation']({'view':_0x105bf4,'target':()=>{const _0x1ef6e2=[],_0xca3744=_0x468638['getAllAdjacentSuggestions']()['filter'](_0x3ae413=>_0x3ae413['isInContent']);for(const _0x56c672 of _0xca3744)_0x1ef6e2['push'](..._0x56c672['getMarkers']());return _0x364a65(_0x1987e2['editing'],_0x1ef6e2);},'type':()=>'suggestion-'+_0x246de9['view']['type']}),_0x2ee44a['_bindAnnotationToEditors'](_0x22cbb5,_0x70043b),_0x1a6f2d['add'](_0x70043b),_0x34e66a['registerAnnotation'](_0x70043b);}['_destroyController'](_0x4101ad){const _0x1ca0ff=this['editor']['plugins']['get']('CommentsRepository'),_0x1f5389=this['editor']['plugins']['get']('Annotations'),_0x20fa38=this['_suggestionToController']['get'](_0x4101ad),_0x5eb3a3=_0x20fa38['view'],_0x1b9881=_0x1f5389['getByInnerView'](_0x5eb3a3);_0x1ca0ff['_unbindEditors'](_0x5eb3a3),_0x1b9881&&_0x1f5389['remove'](_0x1b9881),this['_suggestionToController']['delete'](_0x4101ad),this['_viewToController']['delete'](_0x5eb3a3),_0x20fa38['destroy']();}['_updateController'](_0x3eba9f){if(!_0x3eba9f['isInContent']||!this['_suggestionToController']['has'](_0x3eba9f))return;const _0xd6fab0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c676e=this['_suggestionToController']['get'](_0x3eba9f),_0x4f6f2e=_0x3eba9f['getAllAdjacentSuggestions']();_0x4c676e['view']['descriptionParts']=_0xd6fab0['descriptionFactory']['getDescriptions'](_0x4f6f2e);}['destroy'](){for(const _0x270b89 of this['_suggestionToController']['keys']())this['_destroyController'](_0x270b89);for(const _0x5d2572 of this['_annotationViews']['values']())_0x5d2572['mainView']['destroy']();super['destroy']();}}function me(_0x3df255){return'model'in _0x3df255;}class k extends _0x488752{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x377abe){this['editor']['plugins']['get'](p)['adapter']=_0x377abe;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x858983){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x858983);}['getSuggestions']({skipNotAttached:_0x4e93c9=!0x1,toJSON:_0x2d3887=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4e93c9,'toJSON':_0x2d3887});}['getSuggestion'](_0x1f95b8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1f95b8);}}const w=['Pagination'];class T extends _0x488752{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c67d3=this['editor'];if(_0x3c67d3['config']['define']('trackChangesData.editorCreator',_0x24258a=>{const _0x558882=_0x3c67d3['model']['document']['getRootNames']()['reduce']((_0x7b89e2,_0x43bb46)=>(_0x7b89e2[_0x43bb46]='',_0x7b89e2),{});return _0x3c67d3['constructor']['create'](_0x558882,_0x24258a);}),'function'!=typeof _0x3c67d3['config']['get']('trackChangesData')['editorCreator'])throw new _0x2a8e99('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4e50c3){return N(this['editor'],!0x0,_0x4e50c3);}['getDataWithDiscardedSuggestions'](_0x525d93){return N(this['editor'],!0x1,_0x525d93);}}class D extends _0x488752{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x83c228){super(_0x83c228),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(_0xb4581c){return void 0x0!==_0xb4581c['getRootsAttributes'];}async function N(_0x1bd348,_0x5e7112,_0xa4d205){const _0x3e9b29=_0x573cfe(_0x1bd348,w);_0x3e9b29['plugins']['push'](p,D),_0x3e9b29['rootsAttributes']=v(_0x1bd348)?_0x1bd348['getRootsAttributes']():void 0x0;const _0x393c21=document['createDocumentFragment'](),_0x3b2248=_0x1bd348['config']['get']('trackChangesData')['editorCreator'],_0x23c9f1=await _0x3b2248(_0x3e9b29,()=>function(_0x54fc57){const _0x42f479=document['createElement']('div');return _0x54fc57['appendChild'](_0x42f479),_0x42f479;}(_0x393c21));!function(_0x4a681c,_0x2e6b9e){const _0x5f7d0c=_0x4a681c['model']['document']['getRootNames']()['reduce']((_0x410abd,_0x44b564)=>(_0x410abd[_0x44b564]=_0x4a681c['data']['get']({'rootName':_0x44b564}),_0x410abd),{}),_0x462ce8=_0x4a681c['plugins']['get']('Users')['users']['map'](_0x1a1802=>({'id':_0x1a1802['id'],'name':_0x1a1802['name']})),_0x449ed1=_0x4a681c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x50c1f0=_0x4a681c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x591706=_0x2e6b9e['plugins']['get']('Users'),_0x3a60b3=_0x2e6b9e['plugins']['get']('TrackChangesEditing'),_0x57cd2a=_0x2e6b9e['plugins']['get']('CommentsRepository');for(const _0x467cab of _0x57cd2a['getCommentThreads']())_0x467cab['remove']();for(const _0x290384 of _0x462ce8)_0x591706['getUser'](_0x290384['id'])||_0x591706['addUser'](_0x290384);_0x591706['me']||_0x591706['useAnonymousUser']();for(const _0x4a4e80 of _0x50c1f0)_0x57cd2a['addCommentThread'](_0x4a4e80);for(const _0x5e1b71 of _0x449ed1)_0x3a60b3['addSuggestionData'](_0x5e1b71);_0x2e6b9e['data']['set'](_0x5f7d0c);}(_0x1bd348,_0x23c9f1),_0x23c9f1['execute'](_0x5e7112?'acceptAllSuggestions':'discardAllSuggestions');const _0x240d9=v(_0x23c9f1)?_0x23c9f1['getFullData'](_0xa4d205):_0x23c9f1['data']['get'](_0xa4d205);return await _0x23c9f1['destroy'](),_0x240d9;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};