@ckeditor/ckeditor5-track-changes 43.2.0-alpha.1 → 43.2.0-alpha.3

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 _0x48c5b5,PendingActions as _0x37f635,icons as _0x5a67df}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4f63a0,ObservableMixin as _0x59481e,uid as _0x5790ee,insertToPriorityArray as _0x4cd18a,priorities as _0x3ff64e,logWarning as _0xc584fe,getEnvKeystrokeText as _0x31f961,FocusTracker as _0x4d488c,KeystrokeHandler as _0x452cad,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5ee7db,View as _0x45a339,ViewCollection as _0x269b0e,FocusCycler as _0x5a7f21,ViewModel as _0x3fd37c,createDropdown as Qt,SplitButtonView as _0x3cc44d,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x2c5493}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x47d1f4,hashObject as _0x59a68d,surroundingMarkersDetector as _0x44dd52,FOCUS_ANNOTATION_KEYSTROKE as _0x20d347,AriaDescriptionView as _0x1249b0,setupThreadKeyboardNavigation as _0x1ed323,trimHtml as _0x2a1180,UserView as _0x1d85c2,LateFocusButtonView as _0x4ca81e,getDateTimeFormatter as _0x5412e2,getAllMarkersDomElementsSorted as _0x5b0cdd,sanitizeEditorConfig as _0x38a4f7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3a3755,LiveRange as _0x3bc28a,LivePosition as _0x46360e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4ed66a,toWidget as _0xb539ea}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x8033cf,set as _0x120868,isEqual as _0x47c0f7,unset as _0x38c83a,omit as Tt}from'lodash-es';import{Delete as _0x2067fa,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x435002,ShiftEnter as _0x7d8e06}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x4ffecc,_0x202e8e){super(_0x4ffecc),this['_enabledCommands']=_0x202e8e,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 _0x38afb5 of this['editor']['commands']['commands']())_0x38afb5['affectsData']&&!this['_enabledCommands']['has'](_0x38afb5)&&_0x38afb5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3d8471 of this['editor']['commands']['commands']())_0x3d8471['affectsData']&&!this['_enabledCommands']['has'](_0x3d8471)&&_0x3d8471['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x504fce,_0xe1dfdc){super(_0x504fce),this['_suggestions']=_0xe1dfdc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x508227){const _0x77e843=this['_suggestions']['get'](_0x508227);if(!_0x77e843)throw new _0x4f63a0('track-changes-accept-suggestion-not-found',this);const _0x53f300=_0x77e843['getRanges']();this['editor']['model']['canEditAt'](_0x53f300)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x77e843);}}class R extends ts{['_suggestions'];constructor(_0x3f993c,_0x2671aa){super(_0x3f993c),this['_suggestions']=_0x2671aa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x14baca){const _0x2293b9=this['_suggestions']['get'](_0x14baca);if(!_0x2293b9)throw new _0x4f63a0('track-changes-discard-suggestion-not-found',this);const _0x5b995b=_0x2293b9['getRanges']();this['editor']['model']['canEditAt'](_0x5b995b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2293b9);}}function ls(_0x28c654,_0x20b59d){let _0x399a1b='';return _0x399a1b+=_0x28c654['split']('*')['map']((_0x1e32ad,_0x39ebfd)=>_0x39ebfd%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1e32ad)+'</span>':nn(_0x1e32ad))['join'](''),_0x20b59d&&(_0x399a1b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x20b59d['value']+'\x22\x20title=\x22'+_0x20b59d['title']+'\x22></span>'),_0x399a1b;}function nn(_0x5b8c56){const _0x5dd698=document['createElement']('span');return _0x5dd698['innerText']=_0x5b8c56,_0x5dd698['innerHTML'];}function ss(_0x4fb943){return _0x4fb943['sort']((_0x2f9d5c,_0x3dc882)=>'deletion'==_0x2f9d5c['type']&&'deletion'!=_0x3dc882['type']?-0x1:'deletion'!=_0x2f9d5c['type']&&'deletion'==_0x3dc882['type']?0x1:0x0);}function to(_0x5986fe,_0x18e0c9){let _0x46b21c,_0x2f8c0b=0x0;const _0x4edd52=[],_0x31fc59=_0x18e0c9['schema'];for(;_0x2f8c0b<_0x5986fe['length'];){const _0x108066=_0x5986fe[_0x2f8c0b],_0x3083d1=_0x5986fe[_0x2f8c0b+0x1];_0x46b21c||(_0x46b21c=_0x18e0c9['createPositionBefore'](_0x108066)),on(_0x18e0c9,_0x108066,_0x3083d1)||(_0x4edd52['push'](_0x18e0c9['createRange'](_0x46b21c,_0x31fc59['isObject'](_0x108066)?_0x18e0c9['createPositionAfter'](_0x108066):_0x18e0c9['createPositionAt'](_0x108066,'end'))),_0x46b21c=null),_0x2f8c0b++;}return _0x4edd52;}function on(_0x4889c4,_0x1790a7,_0x18b95c){if(!_0x18b95c)return!0x1;const _0x5f1bf3=_0x4889c4['createPositionAfter'](_0x1790a7),_0x3b9002=_0x4889c4['createPositionBefore'](_0x18b95c);return _0x5f1bf3['isTouching'](_0x3b9002);}function rs(_0x142f39,_0x23e2fa,_0x54c51b){for(;_0x54c51b['length'];){const _0x2bc487=_0x54c51b['splice'](0x0,0x64);_0x142f39['change'](()=>{for(const _0x39dfb2 of _0x2bc487)_0x39dfb2['isInContent']&&_0x23e2fa['execute'](_0x39dfb2['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1273c3,_0x15b1c4,_0x37e0a0){super(_0x1273c3),this['_command']=_0x15b1c4,this['_suggestions']=_0x37e0a0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x11bef9=Array['from'](this['_suggestions']['values']())['some'](_0x5c1a2c=>_0x5c1a2c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x11bef9;}['execute'](){const _0x1d0932=ss(Array['from'](this['_suggestions']['values']()));for(const _0x427e36 of _0x1d0932){const _0x152bfa=_0x427e36['getRanges']();if(!this['editor']['model']['canEditAt'](_0x152bfa))return;}rs(this['editor']['model'],this['_command'],_0x1d0932);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x32d167,_0x57b275,_0x46c972){super(_0x32d167),this['_command']=_0x57b275,this['_suggestions']=_0x46c972,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4479e2=this['editor']['model']['document']['selection'],_0x427215=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x49c2ae,_0x1a0e24){const _0x1cffa0=Array['from'](_0x49c2ae['getRanges']()),_0x51c1cb=new Set();for(const _0x158df4 of _0x1a0e24)if(_0x158df4['isInContent']){for(const _0x514804 of _0x1cffa0)for(const _0x1d30a3 of _0x158df4['getRanges']())(_0x514804['isIntersecting'](_0x1d30a3)||_0x49c2ae['isCollapsed']&&!_0x158df4['isMultiRange']&&_0x158df4['next']&&_0x1d30a3['end']['isTouching'](_0x514804['start']))&&_0x51c1cb['add'](_0x158df4);}return _0x51c1cb;}(_0x4479e2,_0x427215),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x368d55=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5f4f15 of _0x368d55){const _0x1cc6d0=_0x5f4f15['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1cc6d0))return;}rs(this['editor']['model'],this['_command'],_0x368d55);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x59481e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x58356d,_0x17e61c){super(),this['id']=_0x17e61c['id'],this['type']=_0x17e61c['type'],this['subType']=_0x17e61c['subType']||null,this['author']=_0x17e61c['author'],this['creator']=_0x17e61c['creator']||_0x17e61c['author'],this['isExternal']=Boolean(_0x17e61c['attributes']&&_0x17e61c['attributes']['@external']),this['data']=null,this['_model']=_0x58356d,this['_onAccept']=_0x17e61c['onAccept'],this['_onDiscard']=_0x17e61c['onDiscard'],this['_onAttributesChange']=_0x17e61c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x17e61c['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 _0x35bac3=this;for(;_0x35bac3['previous'];)_0x35bac3=_0x35bac3['previous'];return _0x35bac3;}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'](_0x3031e0){this['_markerNames']['add'](_0x3031e0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x26b091=>this['_model']['markers']['get'](_0x26b091))['filter'](_0x153304=>_0x153304);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2e1e2d=>{for(const _0x2618ec of this['getMarkers']())_0x2e1e2d['removeMarker'](_0x2618ec);}),this['_markerNames']['clear']();}['removeMarker'](_0x4d93df){this['_model']['change'](_0x1d620d=>{_0x1d620d['removeMarker'](_0x4d93df);}),this['_markerNames']['delete'](_0x4d93df);}['addRange'](_0x493a1f){const _0x58a412='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x58a412),this['_model']['change'](_0xa9993c=>{_0xa9993c['addMarker'](_0x58a412,{'range':_0x493a1f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x20f763){for(const _0xcd5289 of this['getRanges']())if(_0xcd5289['isIntersecting'](_0x20f763))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3bb91b=>_0x3bb91b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x7c5a86,_0xbf036c)=>[..._0x7c5a86,..._0xbf036c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6a3973=this['getRanges']();if(0x1!=_0x6a3973['length'])return null;const _0x184b10=_0x6a3973[0x0],_0x1e565a=_0x184b10['start']['nodeAfter'],_0x4883e9=_0x184b10['end']['nodeBefore'];return _0x1e565a instanceof _0x3a3755?_0x1e565a!=_0x4883e9?null:_0x1e565a: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 _0x33bdee=[];let _0x23ccad=this['head'];for(;_0x23ccad;)_0x33bdee['push'](_0x23ccad),_0x23ccad=_0x23ccad['next'];return _0x33bdee;}['setAttribute'](_0x55623a,_0x4caa63){const _0x30ced6=_0x8033cf(this['attributes']);_0x120868(_0x30ced6,_0x55623a,_0x4caa63),_0x47c0f7(_0x30ced6,this['attributes'])||(this['attributes']=_0x30ced6,this['_onAttributesChange'](_0x30ced6));}['removeAttribute'](_0xc4a300){const _0x58369d=_0x8033cf(this['attributes']);_0x38c83a(_0x58369d,_0xc4a300),_0x47c0f7(_0x58369d,this['attributes'])||(this['attributes']=_0x58369d,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 _0x5790ee()['substr'](0x1,0x5);}}function o(_0x57a8be,_0x368923,_0x584658){const t=_0x57a8be['t'];switch(_0x368923){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',_0x584658);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x584658);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x584658);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x584658);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x584658);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',_0x584658);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x584658);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',_0x584658);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x584658);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x584658);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x584658);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x584658);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x584658);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x584658);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x584658);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x584658);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x584658);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x584658);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x584658);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x584658);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x584658);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x584658);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x584658);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'},_0x584658);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x584658);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x584658);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x584658);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x584658);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x584658);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'},_0x584658);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x584658);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x584658);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x584658);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x584658);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'},_0x584658);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x584658);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'},_0x584658);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'},_0x584658);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x584658);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'},_0x584658);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x584658);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'},_0x584658);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x584658);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x584658);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'},_0x584658);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'},_0x584658);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'},_0x584658);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x584658);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'},_0x584658);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'},_0x584658);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'},_0x584658);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x368923;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2fbbfa,_0x5b3541){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2fbbfa,this['_locale']=_0x5b3541;}['getDescriptions'](_0x131e10){const _0x2c4afc=[],_0x39c4e6=new Set(),_0x485276=new Set();for(let _0x2d9853=0x0;_0x2d9853<_0x131e10['length'];_0x2d9853++){const _0x1722ea=_0x131e10[_0x2d9853];if(!_0x1722ea['isInContent'])continue;const _0x2b4da7=this['_handleCustomCallbackDescription'](_0x1722ea);if(_0x2b4da7){if(null!=_0x1722ea['subType']){if(_0x39c4e6['has'](_0x1722ea['subType']))continue;_0x39c4e6['add'](_0x1722ea['subType']);}_0x2c4afc['push'](_0x2b4da7);}else{if('attribute'!=_0x1722ea['type'])'insertion'!=_0x1722ea['type']&&'deletion'!=_0x1722ea['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2c4afc,_0x1722ea,_0x131e10[_0x2d9853+0x1]);else{const _0x4510aa=_0x1722ea['data']['key'];if(_0x485276['has'](_0x4510aa))continue;_0x485276['add'](_0x1722ea['data']['key']),_0x4510aa==m?this['_handleRenameSuggestionDescription'](_0x2c4afc,_0x1722ea):this['_handleAttributeSuggestionDescription'](_0x2c4afc,_0x1722ea);}}}return this['_resolveDescriptionItems'](_0x2c4afc);}['registerDescriptionCallback'](_0x8d1781){this['_customCallbacks']['push'](_0x8d1781);}['registerElementLabel'](_0x3e970b,_0x31e1ea,_0x1c1ff8=_0x3ff64e['normal']){'function'==typeof _0x3e970b?_0x4cd18a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3e970b,'label':_0x31e1ea,'priority':_0x1c1ff8}):this['_itemLabels']['set'](_0x3e970b,_0x31e1ea);}['registerAttributeLabel'](_0x4ceac4,_0x3ae31e){this['_attributeLabels']['set'](_0x4ceac4,_0x3ae31e);}['getItemLabel'](_0x375b25,_0x8d87be=0x1){let _0x436e30;for(const _0x466d47 of this['_itemLabelsCallbacks'])if(_0x466d47['matchingCallback'](_0x375b25)){_0x436e30=_0x466d47['label'];break;}return _0x436e30||(_0x436e30=this['_itemLabels']['get'](_0x375b25['name'])),_0x436e30?_0x436e30(_0x8d87be):0x1!==_0x8d87be?_0x8d87be+'\x20'+_0x375b25['name']+'s':''+_0x375b25['name'];}['_addDescriptionItems'](_0x319983,_0x55dffb){const _0x35b3e7=_0x55dffb['getFirstRange']()['getWalker'](),_0x28c2fd='insertion'==_0x55dffb['type']?'add':'remove';for(const _0x29ea62 of _0x35b3e7){const _0x1a8f5f=_0x29ea62['item'],_0x2472ec=_0x319983[_0x319983['length']-0x1];if(_0x1a8f5f['is']('$textProxy'))_0x2472ec&&_0x2472ec['type']['indexOf']('Container')>-0x1&&_0x319983['pop'](),_0x2472ec&&'text'==_0x2472ec['type']?_0x2472ec[_0x28c2fd]+=_0x1a8f5f['data']:_0x319983['push']({'type':'text','add':'add'==_0x28c2fd?_0x1a8f5f['data']:'','remove':'remove'==_0x28c2fd?_0x1a8f5f['data']:''});else{if(this['_schema']['isObject'](_0x1a8f5f)){const _0x28639f=_0x1a8f5f;if(_0x2472ec&&_0x2472ec['type']['indexOf']('Container')>-0x1&&_0x319983['pop'](),'elementEnd'==_0x29ea62['type'])continue;_0x2472ec&&_0x2472ec['type']==_0x28c2fd+'Object'&&_0x2472ec['element']['name']==_0x28639f['name']?_0x2472ec['quantity']++:_0x319983['push']({'type':_0x28c2fd+'Object','element':_0x28639f,'quantity':0x1}),_0x35b3e7['skip'](_0x46eb17=>!('elementEnd'==_0x46eb17['type']&&_0x46eb17['item']==_0x1a8f5f));}else{if(this['_schema']['checkChild'](_0x1a8f5f,'$text')||_0x1a8f5f['is']('element','softBreak')){const _0x3fa371=_0x1a8f5f;if('add'==_0x28c2fd&&'elementStart'==_0x29ea62['type']||'remove'==_0x28c2fd&&'elementEnd'==_0x29ea62['type'])continue;if(_0x2472ec&&-0x1==_0x2472ec['type']['indexOf']('Container')){'text'==_0x2472ec['type']&&(_0x2472ec[_0x28c2fd]+='\x0a');continue;}let _0x59bf94;if(_0x59bf94='add'==_0x28c2fd?_0x3fa371['nextSibling']&&!this['_schema']['isObject'](_0x3fa371['nextSibling'])?_0x3fa371['nextSibling']:null:_0x3fa371['previousSibling']&&!this['_schema']['isObject'](_0x3fa371['previousSibling'])?_0x3fa371['previousSibling']:null,_0x3fa371['isEmpty']||_0x59bf94&&_0x59bf94['isEmpty']){const _0x3fee98=_0x59bf94&&_0x59bf94['isEmpty']?_0x59bf94:_0x3fa371;_0x2472ec&&_0x2472ec['type']==_0x28c2fd+'EmptyContainer'&&_0x2472ec['element']['name']==_0x3fee98['name']?_0x2472ec['quantity']++:_0x319983['push']({'type':_0x28c2fd+'EmptyContainer','element':_0x3fee98,'quantity':0x1});}else _0x319983['push']({'type':_0x28c2fd+'Container','element':_0x3fa371});}}}}}['_resolveDescriptionItems'](_0x1743f6){const _0x417e2a=this['_locale'],_0x50e68d=[],_0xcc067e=[],_0x16d380=[];for(const _0x4701ff of _0x1743f6)switch(_0x4701ff['type']){case'text':if(_0x4701ff['add']=_0x4701ff['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4701ff['remove']=_0x4701ff['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4701ff['add']&&''!=_0x4701ff['remove']){_0x50e68d['push']({'type':'replace','content':o(_0x417e2a,'REPLACE_TEXT',['\x22'+_0x4701ff['remove']+'\x22','\x22'+_0x4701ff['add']+'\x22'])});continue;}if(null!=_0x4701ff['add']['match'](/^ +$/)){_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Insert:*\x20%0',o(_0x417e2a,'ELEMENT_SPACE',_0x4701ff['add']['length']))});continue;}if(null!=_0x4701ff['remove']['match'](/^ +$/)){_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Remove:*\x20%0',o(_0x417e2a,'ELEMENT_SPACE',_0x4701ff['remove']['length']))});continue;}if(''!=_0x4701ff['add']){_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Insert:*\x20%0','\x22'+_0x4701ff['add']+'\x22')});continue;}_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Remove:*\x20%0','\x22'+_0x4701ff['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Insert:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Remove:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'addContainer':_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Split:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'removeContainer':_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Merge:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'addFormat':_0xcc067e['push'](_0x4701ff['key']);continue;case'removeFormat':_0x16d380['push'](_0x4701ff['key']);continue;default:_0x50e68d['push'](_0x4701ff);}if(_0xcc067e['length']){const _0x7d2998=_0xcc067e['map'](_0x1a4d5a=>this['_attributeLabels']['has'](_0x1a4d5a)?this['_attributeLabels']['get'](_0x1a4d5a):_0x1a4d5a)['join'](',\x20');_0x50e68d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x7d2998)});}if(_0x16d380['length']){const _0x1c4521=_0x16d380['map'](_0x4cb7cf=>this['_attributeLabels']['has'](_0x4cb7cf)?this['_attributeLabels']['get'](_0x4cb7cf):_0x4cb7cf)['join'](',\x20');_0x50e68d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1c4521)});}return _0x50e68d;}['_handleCustomCallbackDescription'](_0x3811db){for(const _0x5057a3 of this['_customCallbacks']){const _0x219ac0=_0x5057a3(_0x3811db);if(_0x219ac0&&'type'in _0x219ac0)return _0x219ac0;}}['_handleAttributeSuggestionDescription'](_0x49cc32,_0x33aae5){const _0x4ea360=_0x33aae5['data'],_0xc7e884=void 0x0===_0x4ea360['newValue']?'removeFormat':'addFormat';_0x49cc32['push']({'type':_0xc7e884,'key':_0x4ea360['key']});}['_handleRenameSuggestionDescription'](_0x10d343,_0x3d2978){_0x10d343['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3d2978['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4c6985,_0x56b025,_0x23105f){if(this['_addDescriptionItems'](_0x4c6985,_0x56b025),_0x23105f&&_0x23105f['getFirstRange']()&&!_0x56b025['getFirstRange']()['end']['isEqual'](_0x23105f['getFirstRange']()['start'])){const _0x4ea8e5=_0x4c6985[_0x4c6985['length']-0x1],_0x13b562='insertion'==_0x56b025['type']?'add':'remove';_0x4ea8e5&&'text'==_0x4ea8e5['type']&&(_0x4ea8e5[_0x13b562]+='\x0a');}}}class V extends _0x48c5b5{['afterInit'](){const _0xa84f0d=this['editor'],_0x40bbf0=_0xa84f0d['plugins']['get']('TrackChangesEditing');_0xa84f0d['commands']['get']('showAIAssistant')&&_0x40bbf0['enableCommand']('showAIAssistant');}}class U extends _0x48c5b5{['afterInit'](){const _0x114b16=this['editor'],_0x25a18b=_0x114b16['locale'];if(!_0x114b16['plugins']['has']('AlignmentEditing'))return;const _0x3cd9a7=_0x114b16['plugins']['get']('TrackChangesEditing');_0x3cd9a7['enableDefaultAttributesIntegration']('alignment'),_0x3cd9a7['registerBlockAttribute']('alignment'),_0x3cd9a7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x25a18b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c2495=this['editor'],_0x202d2f=_0x3c2495['locale'];_0x3c2495['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34f141=>{if('formatBlock'!=_0x34f141['type'])return;const {data:_0x5017cb}=_0x34f141;if(_0x5017cb&&'alignment'==_0x5017cb['commandName']){const _0x5c99bf=_0x5017cb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x202d2f,'*Format:*\x20%0',function(_0x314b09){switch(_0x314b09){case'left':return o(_0x202d2f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x202d2f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x202d2f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x202d2f,'FORMAT_JUSTIFY_TEXT');}}(_0x5c99bf))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x48c5b5{['afterInit'](){const _0x11ecf5=this['editor'],_0xb6ec9c=_0x11ecf5['plugins']['get']('TrackChangesEditing'),_0x22b761=_0x11ecf5['locale'];for(const _0x3c31d5 of ti){if(!_0x11ecf5['plugins']['has'](_0x3c31d5))continue;const _0x395c49=_0x3c31d5['slice'](0x0,-0x7)['toLowerCase'](),_0x193163='FORMAT_'+_0x395c49['toUpperCase']();_0xb6ec9c['enableDefaultAttributesIntegration'](_0x395c49),_0xb6ec9c['registerInlineAttribute'](_0x395c49),_0xb6ec9c['descriptionFactory']['registerAttributeLabel'](_0x395c49,o(_0x22b761,_0x193163));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8ff1aa=this['editor'],_0x213e78=_0x8ff1aa['locale'],_0x6aa84=_0x8ff1aa['plugins']['get']('TrackChangesEditing');function _0x315c68(_0x396c8f,_0x1d83c5){_0x6aa84['descriptionFactory']['registerDescriptionCallback'](_0xdfbedb=>{if('formatInline'!=_0xdfbedb['type'])return;const {data:_0x27562b}=_0xdfbedb;return _0x27562b&&_0x27562b['commandName']===_0x396c8f?_0x27562b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x213e78,'*Format:*\x20%0',_0x1d83c5)}:{'type':'format','content':o(_0x213e78,'*Remove\x20format:*\x20%0',_0x1d83c5)}:void 0x0;});}_0x315c68('bold',o(_0x213e78,'FORMAT_BOLD')),_0x315c68('italic',o(_0x213e78,'FORMAT_ITALIC')),_0x315c68('underline',o(_0x213e78,'FORMAT_UNDERLINE')),_0x315c68('code',o(_0x213e78,'FORMAT_CODE')),_0x315c68('strikethrough',o(_0x213e78,'FORMAT_STRIKETHROUGH')),_0x315c68('subscript',o(_0x213e78,'FORMAT_SUBSCRIPT')),_0x315c68('superscript',o(_0x213e78,'FORMAT_SUPERSCRIPT'));}}class F extends _0x48c5b5{['afterInit'](){const _0x38cb4e=this['editor'],_0x4f61e4=_0x38cb4e['locale'];if(!_0x38cb4e['plugins']['has']('BlockQuoteEditing'))return;const _0x3d4df8=_0x38cb4e['plugins']['get']('TrackChangesEditing'),_0x5de0f8=this['editor']['commands']['get']('blockQuote');_0x3d4df8['enableCommand']('blockQuote',(_0x3534ad,_0x2e1c21={})=>{const _0x2d19f7=this['editor']['model']['document']['selection'],_0x2d9481=_0x2e1c21&&void 0x0!==_0x2e1c21['forceValue']?_0x2e1c21['forceValue']:!_0x5de0f8['value'];let _0x26cd71=[];if(_0x2d9481){const _0x1e2637=Array['from'](_0x2d19f7['getSelectedBlocks']())['filter'](_0x1d0d8b=>oo(_0x1d0d8b)||function(_0x46ec0b,_0x19cf79){const _0x48ff70=_0x19cf79['checkChild'](_0x46ec0b['parent'],'blockQuote'),_0x18579e=_0x19cf79['checkChild'](['$root','blockQuote'],_0x46ec0b);return _0x48ff70&&_0x18579e;}(_0x1d0d8b,this['editor']['model']['schema']));_0x26cd71=to(_0x1e2637,_0x38cb4e['model']);}else{const _0x293300=Array['from'](_0x2d19f7['getSelectedBlocks']())['filter'](_0x7075ee=>oo(_0x7075ee));_0x26cd71=to(_0x293300,_0x38cb4e['model']);}_0x38cb4e['model']['change'](()=>{for(const _0x466066 of _0x26cd71)_0x3d4df8['markBlockFormat'](_0x466066,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d9481}]});});}),_0x3d4df8['descriptionFactory']['registerDescriptionCallback'](_0x1205d2=>{const {data:_0x57daa9}=_0x1205d2;if(_0x57daa9&&'blockQuote'==_0x57daa9['commandName']){const _0x526489=o(_0x4f61e4,'ELEMENT_BLOCK_QUOTE');return _0x57daa9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f61e4,'*Set\x20format:*\x20%0',_0x526489)}:{'type':'format','content':o(_0x4f61e4,'*Remove\x20format:*\x20%0',_0x526489)};}});}}function oo(_0x127d14){return'blockQuote'==_0x127d14['parent']['name'];}class L extends _0x48c5b5{['afterInit'](){const _0x5c8a50=this['editor'];_0x5c8a50['plugins']['has']('CaseChange')&&(_0x5c8a50['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c8a50['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c8a50['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x48c5b5{['afterInit'](){const _0x2d3911=this['editor'];_0x2d3911['commands']['get']('ckbox')&&_0x2d3911['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x48c5b5{['afterInit'](){const _0x2e8489=this['editor'];if(!_0x2e8489['plugins']['has']('CodeBlock'))return;const _0x56b41b=_0x2e8489['plugins']['get']('TrackChangesEditing'),_0x394885=_0x2e8489['locale'],_0x50ec9e=_0x2e8489['config']['get']('codeBlock')['languages'],_0x2e0f53=_0x2e8489['commands']['get']('codeBlock');_0x56b41b['enableCommand']('indentCodeBlock'),_0x56b41b['enableCommand']('outdentCodeBlock'),_0x56b41b['enableCommand']('codeBlock',(_0x2d60f8,_0x525a8c={})=>{const _0x36367a=_0x2e8489['model'],_0x2315e6=_0x2e8489['model']['document']['selection'],_0x2076d6=_0x525a8c&&void 0x0!==_0x525a8c['forceValue']?_0x525a8c['forceValue']:!_0x2e0f53['value'];let _0x241ba9;_0x525a8c['language']||(_0x525a8c['language']=_0x50ec9e[0x0]['language']),_0x241ba9=_0x2076d6?Array['from'](_0x2315e6['getSelectedBlocks']())['filter'](_0x281357=>eo(_0x281357)||function(_0x204867,_0x577963){if(_0x204867['is']('rootElement')||_0x577963['isLimit'](_0x204867))return!0x1;return _0x577963['checkChild'](_0x204867['parent'],'codeBlock');}(_0x281357,_0x36367a['schema'])):Array['from'](_0x2315e6['getSelectedBlocks']())['filter'](_0x2dfe73=>eo(_0x2dfe73));const _0x18531b=to(_0x241ba9,_0x36367a);_0x36367a['change'](()=>{for(const _0x37479b of _0x18531b)_0x56b41b['markBlockFormat'](_0x37479b,{'commandName':'codeBlock','commandParams':[{..._0x525a8c,'forceValue':_0x2076d6}],'formatGroupId':'blockName'});});}),(_0x56b41b['descriptionFactory']['registerElementLabel']('codeBlock',_0x240dc4=>o(_0x394885,'ELEMENT_CODE_BLOCK',_0x240dc4)),_0x56b41b['descriptionFactory']['registerDescriptionCallback'](_0x84f2d7=>{if('formatBlock'!=_0x84f2d7['type'])return;const _0x4ef27b=_0x394885['t'],{data:_0x38d8a7}=_0x84f2d7;if(!_0x38d8a7||'codeBlock'!=_0x38d8a7['commandName'])return;const _0x2642e9=_0x38d8a7['commandParams'][0x0]['language'],_0x5a2c0e=_0x4ef27b(_0x50ec9e['find'](_0x35d122=>_0x35d122['language']===_0x2642e9)['label'])['toLowerCase']();return _0x38d8a7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x394885,'*Set\x20format:*\x20%0',o(_0x394885,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5a2c0e+')')}:{'type':'format','content':o(_0x394885,'*Remove\x20format:*\x20%0',o(_0x394885,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2b1db1){return'codeBlock'==_0x2b1db1['name'];}class q extends _0x48c5b5{['afterInit'](){const _0x55eb67=this['editor'];if(!_0x55eb67['plugins']['has']('CommentsEditing'))return;_0x55eb67['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x9666aa,_0x43c7cb,_0x530631){const _0x9007cd=[];for(const _0x30f8f0 of _0x43c7cb['getItems']())_0x30f8f0['hasAttribute'](_0x9666aa)&&_0x9007cd['push'](_0x530631['createRangeOn'](_0x30f8f0));return _0x9007cd;}function _e(_0x40de8f,_0x329018,{showActiveMarker:_0x32ee0a=!0x0}={}){const _0xf95286=_0x40de8f['plugins']['get']('TrackChangesEditing');return(_0x5f4c69,_0x32b0e9,_0x1e363e)=>{if(!_0x1e363e['consumable']['test'](_0x32b0e9['markerRange'],_0x5f4c69['name']))return;const _0x15c9f5=_0x32b0e9['markerRange']['getWalker'](),_0x2cf8ab=_0x32b0e9['markerRange']['start'],_0x243478=_0x40de8f['model']['schema'];let _0xdb62e3=null,_0x515103=null,_0x374450=!0x1,_0x18aaac=!0x1;for(const _0x7c2b29 of _0x15c9f5){const _0x1c8443=_0x7c2b29['item'];_0x374450=_0x374450||_0x243478['isContent'](_0x1c8443);const _0x4948c7=_0x1e363e['mapper']['toViewElement'](_0x1c8443);if(_0x4948c7&&_0x4948c7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x7c2b29['type']&&(_0x243478['isBlock'](_0x1c8443)&&!_0x243478['isLimit'](_0x1c8443)&&(_0x1c8443['nextSibling']||_0x2cf8ab['isAtEnd']?_0xdb62e3&&_0xdb62e3['parent']==_0x1c8443||(_0xdb62e3=_0x1c8443,_0x589e4d(_0x7c2b29['previousPosition']),_0x18aaac=!0x0):_0x515103=_0x515103||_0x7c2b29['previousPosition']));}function _0x589e4d(_0x14e78a){const {authorId:_0xad21d3}=_0xf95286['_splitMarkerName'](_0x32b0e9['markerName']),_0x3ccad2=_0x1e363e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x329018,'data-author-id':_0xad21d3}),_0x52110b=_0x1e363e['mapper']['toViewPosition'](_0x14e78a);_0x32ee0a&&_0xf95286['activeMarkers']['includes'](_0x32b0e9['markerName'])&&_0x1e363e['writer']['addClass']('ck-suggestion-marker--active',_0x3ccad2),_0x1e363e['writer']['insert'](_0x52110b,_0x3ccad2),_0x1e363e['mapper']['bindElementToMarker'](_0x3ccad2,_0x32b0e9['markerName']);}_0x374450||_0x18aaac||!_0x515103||_0x589e4d(_0x515103);};}class z extends _0x48c5b5{static get['requires'](){return[_0x2067fa];}['init'](){const _0x3b4552=this['editor'],_0x2084ae=_0x3b4552['plugins']['get']('TrackChangesEditing');_0x2084ae['enableCommand']('delete');const _0x7f5cb6=_0x3b4552['commands']['get']('deleteForward');_0x2084ae['enableCommand']('deleteForward',(_0x26f448,_0x4fb2ee={})=>{const _0x4ace1c=_0x3b4552['model']['createSelection'](_0x3b4552['model']['document']['selection']);_0x4ace1c['isCollapsed']&&_0x3b4552['model']['modifySelection'](_0x4ace1c,{'direction':'forward','unit':_0x4fb2ee['unit']});const _0x2bf077=_0x4ace1c['getFirstRange'](),_0x3b1304=_0x3bc28a['fromRange'](_0x2bf077);let _0x2761ab;_0x26f448(_0x4fb2ee),_0x2761ab='$graveyard'==_0x3b1304['root']['rootName']?_0x3b4552['model']['createRange'](_0x2bf077['start']):_0x3b4552['model']['createRange'](_0x3b1304['start'],_0x3b1304['end']),_0x3b1304['detach'](),_0x3b4552['model']['enqueueChange'](_0x7f5cb6['buffer']['batch'],_0x5dc039=>{_0x7f5cb6['buffer']['lock'](),_0x5dc039['setSelection'](_0x5dc039['createRange'](_0x2761ab['end'])),_0x7f5cb6['buffer']['unlock']();});}),_0x3b4552['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3b4552,'merge'),{'priority':'high'}),_0x3b4552['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x339f67,_0x458810,_0x39462d)=>{_0x39462d['options']['showSuggestionHighlights']&&_e(_0x3b4552,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x339f67,_0x458810,_0x39462d);},{'priority':'high'}),_0x3b4552['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2f6a4b,_0x2d9722,_0x5691f7)=>{const _0xfce261=_0x5691f7['mapper']['markerNameToElements'](_0x2d9722['markerName']);if(_0xfce261){for(const _0x2fd20d of _0xfce261)_0x2fd20d['is']('uiElement')&&(_0x5691f7['mapper']['unbindElementFromMarkerName'](_0x2fd20d,_0x2d9722['markerName']),_0x5691f7['writer']['remove'](_0x2fd20d));}},{'priority':'high'});}}class K extends _0x48c5b5{['afterInit'](){const _0xce02a0=this['editor'];if(!_0xce02a0['plugins']['has']('ListEditing'))return;const _0x57291d=_0xce02a0['locale'],_0xf79c55=_0xce02a0['plugins']['get']('TrackChangesEditing'),_0x298e60=_0xce02a0['plugins']['has']('TodoListEditing'),_0x18847f=!!_0xce02a0['config']['get']('list.multiBlock');function _0x311f37(_0xfe92e5){return{'type':'format','content':''+o(_0x57291d,'*Set\x20format:*\x20%0',_0xfe92e5)};}function _0x2f8fb7(_0x3efc4a){return{'type':'format','content':''+o(_0x57291d,'*Remove\x20format:*\x20%0',_0x3efc4a)};}_0xf79c55['enableDefaultAttributesIntegration']('numberedList'),_0xf79c55['enableDefaultAttributesIntegration']('bulletedList'),_0xf79c55['enableDefaultAttributesIntegration']('customNumberedList'),_0xf79c55['enableDefaultAttributesIntegration']('customBulletedList'),_0xf79c55['enableDefaultAttributesIntegration']('indentList'),_0xf79c55['enableDefaultAttributesIntegration']('outdentList'),_0xf79c55['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xf79c55['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xf79c55['registerBlockAttribute']('listItemId'),_0xf79c55['registerBlockAttribute']('listType'),_0xf79c55['registerBlockAttribute']('listIndent'),_0x18847f&&(_0xf79c55['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xf79c55['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x298e60&&(_0xf79c55['enableDefaultAttributesIntegration']('todoList'),_0xf79c55['enableDefaultAttributesIntegration']('checkTodoList'),_0xf79c55['registerBlockAttribute']('todoListChecked'),_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x4f35e5=>{const {data:_0x3e95d2}=_0x4f35e5;if(_0x3e95d2&&'todoListChecked'==_0x3e95d2['key'])return{'type':'format','content':_0x3e95d2['newValue']?o(_0x57291d,'*Check\x20item*'):o(_0x57291d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xe4b434=>{if(_0xe4b434['batch']['isUndo'])return!0x1;let _0x1f16b9=!0x1;const _0x14c01c=_0xf79c55['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x264d34=>'todoListChecked'===_0xf79c55['_getAttributeKey'](_0x264d34));for(const _0x5255ba of _0x14c01c){'todo'!=_0x5255ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xf79c55['_findSuggestions'](_0x5255ba['getFirstRange'](),'attribute')['find'](_0xcd9514=>'listType'===_0xf79c55['_getAttributeKey'](_0xcd9514['suggestion']))||(_0xe4b434['removeMarker'](_0x5255ba['getFirstMarker']()),_0x1f16b9=!0x0));}return _0x1f16b9;})),_0xf79c55['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x57291d,'FORMAT_INDENT'));const _0x30e9bb={'type':'format','content':''};_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x3cd9d5=>{const {data:_0x4451c0}=_0x3cd9d5;if(!_0x4451c0||'listType'!=_0x4451c0['key'])return;let _0x145da6=_0x3cd9d5['head'];for(;_0x145da6;){if(_0x145da6['data']&&(('listStyle'==_0x145da6['data']['key']||'listMarkerStyle'==_0x145da6['data']['key'])&&(_0x145da6['data']['newValue']&&'default'!=_0x145da6['data']['newValue']||'default'!=_0x145da6['data']['oldValue']&&!_0x4451c0['newValue'])||!_0x18847f&&_0x145da6['data']['key']==m))return _0x30e9bb;_0x145da6=_0x145da6['next'];}if(null==_0x4451c0['newValue'])switch(_0x4451c0['oldValue']){case'bulleted':return _0x2f8fb7(o(_0x57291d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f8fb7(o(_0x57291d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f8fb7(o(_0x57291d,'ELEMENT_TODO_LIST'));}switch(_0x4451c0['newValue']){case'bulleted':return _0x311f37(o(_0x57291d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x311f37(o(_0x57291d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x311f37(o(_0x57291d,'ELEMENT_TODO_LIST'));}}),_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x27e415=>{const {data:_0x21156b}=_0x27e415;if(_0x21156b&&'listIndent'==_0x21156b['key'])return null==_0x21156b['newValue']||null==_0x21156b['oldValue']&&0x0==_0x21156b['newValue']?_0x30e9bb:void 0x0;}),_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x55f677=>{if('attribute'!=_0x55f677['type'])return;const {data:_0x3e80b5}=_0x55f677;if(!_0x3e80b5||'listItemId'!=_0x3e80b5['key'])return;const _0x547f76=Ee(_0x55f677);return'newValue'==_0x547f76?{'type':'format','content':o(_0x57291d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x547f76?{'type':'format','content':o(_0x57291d,'*Split:*\x20list\x20item')}:_0x30e9bb;}),_0xce02a0['model']['document']['registerPostFixer'](_0x46a242=>this['listItemIdFixer'](_0x46a242)),_0xce02a0['model']['document']['registerPostFixer'](_0x2cd98b=>this['noTrackChangesFixer'](_0x2cd98b)),_0xce02a0['model']['document']['on']('change:data',(_0x5ca29c,_0x39b92c)=>{if(_0x39b92c['isUndo']||!_0x39b92c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6cb6ae){if(_0x6cb6ae['batch']['isUndo']||!_0x6cb6ae['batch']['isLocal'])return!0x1;let _0x1108ac=!0x1;const _0x399299=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16236a=>_0x16236a['data']&&'listItemId'==_0x16236a['data']['key'])['filter'](_0x3d3304=>_0x3d3304['data']['newValue']&&_0x3d3304['data']['oldValue']);for(const _0x4637af of _0x399299)Ee(_0x4637af)||(_0x6cb6ae['removeMarker'](_0x4637af['getFirstMarker']()),_0x1108ac=!0x0);return _0x1108ac;}['noTrackChangesFixer'](_0x3fa832){if(_0x3fa832['batch']['isUndo']||!_0x3fa832['batch']['isLocal'])return!0x1;const _0x21f97c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x21f97c['trackChangesCommand']['value'])return!0x1;let _0xd545f7=!0x1;const _0x120f65=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x165b72=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x21e5be=>'attribute'==_0x21e5be['type'])['filter'](_0x3b6d37=>_0x120f65['includes'](_0x3b6d37['attributeKey']));if(0x0==_0x165b72['length'])return _0xd545f7;for(const _0x337b54 of _0x165b72){const _0x1d0529=_0x21f97c['_findSuggestions'](_0x337b54['range'],'attribute')['filter'](_0xcdfcb9=>!_0xcdfcb9['meta']['isNextTo'])['map'](_0x1f3542=>_0x1f3542['suggestion'])['filter'](_0xea0569=>{const _0x171a7b=_0x21f97c['_getAttributeKey'](_0xea0569);return _0x120f65['includes'](_0x171a7b);});if(_0x1d0529['length']){for(const _0x3e60cc of _0x1d0529)_0x3fa832['removeMarker'](_0x3e60cc['getFirstMarker']());_0xd545f7=!0x0;}}return _0xd545f7;}['assureChains'](){const _0x5af9f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38d2dd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x7296dd;const _0x36e858=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4bc351=>{if(_0x4bc351['data']['oldRange']||!_0x4bc351['data']['newRange'])return null;if(!_0x4bc351['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xa1f184}=_0x5af9f4['_splitMarkerName'](_0x4bc351['name']);if(!_0x5af9f4['hasSuggestion'](_0xa1f184))return null;const _0x2e1658=_0x5af9f4['getSuggestion'](_0xa1f184);return _0x38d2dd['includes'](_0x2e1658['data']['key']);})['map'](_0x3efc48=>{const {id:_0x2043c6}=_0x5af9f4['_splitMarkerName'](_0x3efc48['name']),_0x16214e=_0x5af9f4['getSuggestion'](_0x2043c6);return _0x7296dd=_0x16214e['attributes']['groupId'],_0x16214e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x36e858['size'])return;const _0x1c382d=_0x5af9f4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cb70d=>'attribute'==_0x2cb70d['type']&&_0x2cb70d['data']&&_0x38d2dd['includes'](_0x2cb70d['data']['key'])&&_0x2cb70d['attributes']['groupId']!=_0x7296dd)['map'](_0x25f1c7=>({'listItem':_0x25f1c7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x25f1c7['attributes']['groupId']})),_0x4201ee=new Set();for(const {groupId:_0x87fc6c,listItem:_0x9f84de}of _0x1c382d)_0x36e858['has'](_0x9f84de)&&_0x4201ee['add'](_0x87fc6c);for(const _0x273b2c of _0x5af9f4['getSuggestions']())_0x4201ee['has'](_0x273b2c['attributes']['groupId'])&&_0x273b2c['setAttribute']('groupId',_0x7296dd);}['_supportLegacySuggestions'](){const _0x4e1886=this['editor'],_0x45639e=_0x4e1886['locale'],_0x169117=_0x4e1886['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x169117['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xdf5006,_0x118121){const _0x40d54c=[];for(let _0x375039 of _0xdf5006)_0x375039['start']['nodeAfter']===_0x375039['end']['parent']&&(_0x375039=_0x4e1886['model']['createRange'](_0x4e1886['model']['createPositionAt'](_0x375039['start']['nodeAfter'],0x0))),_0x40d54c['push'](_0x375039);_0x4e1886['model']['change'](_0x3f45f1=>{const _0x207d3b=_0x4e1886['model']['document']['selection'],_0x6ff649=Array['from'](_0x207d3b['getRanges']())['map'](_0x56a330=>_0x3bc28a['fromRange'](_0x56a330));_0x3f45f1['setSelection'](_0x40d54c),_0x4e1886['commands']['get'](_0x118121['commandName'])['refresh'](),_0x118121['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e1886['execute'](_0x118121['commandName'],..._0x118121['commandParams']),_0x3f45f1['setSelection'](_0x6ff649);for(const _0x5ecf74 of _0x6ff649)_0x5ecf74['detach']();});}),_0x169117['descriptionFactory']['registerElementLabel'](function(_0x422a6a){const _0xade428=!_0x4e1886['model']['schema']['isObject'](_0x422a6a),_0x4c3742=_0x422a6a['previousSibling'],_0x4b3441=_0x422a6a['nextSibling'],_0x19787f=_0x422a6a['getAttribute']('listItemId'),_0x21425e=!_0x4c3742||_0x4c3742['getAttribute']('listItemId')!==_0x19787f,_0x20047c=!_0x4b3441||_0x4b3441['getAttribute']('listItemId')!==_0x19787f;return _0xade428&&Boolean(_0x19787f)&&_0x21425e&&_0x20047c;},_0x1fd690=>o(_0x45639e,'ELEMENT_LIST_ITEM',_0x1fd690));}['_registerLegacyDescription'](){const _0x50c230=this['editor'],_0x15994d=_0x50c230['locale'];function _0x4e5078(_0x5b3b97){const _0x4928db=_0x50c230['commands']['get']('bulletedList')['value'],_0x20fc70=_0x50c230['commands']['get']('numberedList')['value'];return'numberedList'===_0x5b3b97?_0x4928db:_0x20fc70;}_0x50c230['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2526bb){if('formatBlock'!=_0x2526bb['type'])return;const {data:_0x57207f}=_0x2526bb;if(!_0x57207f)return;let _0x22f9df,_0x25b456,_0x3f451f,_0x54d299;switch(_0x57207f['commandName']){case'bulletedList':_0x3f451f=_0x57207f['commandParams'][0x0]['forceValue'],_0x54d299=_0x4e5078(_0x57207f['commandName']),_0x22f9df=_0x3f451f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x54d299&&_0x50c230['config']['get']('list.multiBlock')||(_0x22f9df='*Change\x20to:*\x20%0'),_0x25b456={'type':'format','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3f451f=_0x57207f['commandParams'][0x0]['forceValue'],_0x54d299=_0x4e5078(_0x57207f['commandName']),_0x22f9df=_0x3f451f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x54d299&&_0x50c230['config']['get']('list.multiBlock')||(_0x22f9df='*Change\x20to:*\x20%0'),_0x25b456={'type':'format','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x22f9df='*Indent:*\x20%0',_0x25b456={'type':'format','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x22f9df=function(_0x4f0c30){const _0x5d9123=_0x4f0c30['getFirstRange']();let _0x413aac=_0x5d9123['start']['nodeAfter'];for(;_0x413aac&&_0x5d9123['containsItem'](_0x413aac);){if(_0x413aac['getAttribute']('listIndent')>0x0)return!0x1;_0x413aac=_0x413aac['nextSibling'];}return!0x0;}(_0x2526bb)?o(_0x15994d,'*Format:*\x20remove\x20from\x20%0',o(_0x15994d,function(_0x28f6ad){return'ELEMENT_'+_0x28f6ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2526bb))):o(_0x15994d,'*Outdent:*\x20%0',o(_0x15994d,'ELEMENT_LIST_ITEM')),_0x25b456={'type':'format','content':_0x22f9df};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x57207f['multipleBlocks']&&(_0x22f9df='*Merge:*\x20%0',_0x25b456={'type':'deletion','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_LIST_ITEM'))});}return _0x25b456;});}}function Ee(_0x3df855){let _0x1d55a1=_0x3df855['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1d55a1;){const _0x4aa565=_0x1d55a1['getAttribute']('listItemId');if(!_0x4aa565)return!0x1;if(_0x4aa565==_0x3df855['data']['newValue'])return'newValue';if(_0x4aa565==_0x3df855['data']['oldValue'])return'oldValue';_0x1d55a1=_0x1d55a1['previousSibling'];}return!0x1;}class pe extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x285be4=this['editor']['config']['get']('list.properties'),_0x14f73b=this['editor']['plugins']['get']('TrackChangesEditing');_0x285be4['styles']&&(_0x14f73b['enableDefaultAttributesIntegration']('listStyle'),_0x14f73b['registerBlockAttribute']('listStyle')),_0x285be4['reversed']&&(_0x14f73b['enableDefaultAttributesIntegration']('listReversed'),_0x14f73b['registerBlockAttribute']('listReversed')),_0x285be4['startIndex']&&(_0x14f73b['enableDefaultAttributesIntegration']('listStart'),_0x14f73b['registerBlockAttribute']('listStart'));const _0x1bdbdc={'type':'format','content':''};_0x14f73b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ca84d=this['editor']['locale'];_0x14f73b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2ca84d,'FORMAT_LIST_REVERSED')),_0x14f73b['descriptionFactory']['registerDescriptionCallback'](_0x247ea5=>{const {data:_0x1f7006}=_0x247ea5;if(_0x1f7006&&'listReversed'==_0x1f7006['key'])return null==_0x1f7006['newValue']||0x0==_0x1f7006['newValue']&&null==_0x1f7006['oldValue']?_0x1bdbdc:void 0x0;}),_0x14f73b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2ca84d,'FORMAT_LIST_START')),_0x14f73b['descriptionFactory']['registerDescriptionCallback'](_0x3073ca=>{const {data:_0x2f2073}=_0x3073ca;if(_0x2f2073&&'listStart'==_0x2f2073['key'])return null==_0x2f2073['newValue']||0x1==_0x2f2073['newValue']&&null==_0x2f2073['oldValue']?_0x1bdbdc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5684dd=>{if(_0x5684dd['batch']['isUndo'])return!0x1;let _0x409f5a=!0x1;const _0x141f14=_0x14f73b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f6ef5=>{const _0x572ce5=_0x14f73b['_getAttributeKey'](_0x1f6ef5);return'listStart'==_0x572ce5||'listReversed'==_0x572ce5;});for(const _0x16178a of _0x141f14){const _0x4896ef=_0x16178a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4896ef||'customNumbered'==_0x4896ef)continue;_0x14f73b['_findSuggestions'](_0x16178a['getFirstRange'](),'attribute')['find'](_0x56e070=>'listType'==_0x14f73b['_getAttributeKey'](_0x56e070['suggestion']))||(_0x5684dd['removeMarker'](_0x16178a['getFirstMarker']()),_0x409f5a=!0x0);}return _0x409f5a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42caac){const _0x1efe55=this['editor']['locale'],{data:_0x48c45b}=_0x42caac,_0x3c7a43={'type':'format','content':''};if(!_0x48c45b||'listStyle'!=_0x48c45b['key'])return;if(!_0x48c45b['oldValue'])return'default'==_0x48c45b['newValue']?_0x3c7a43:{'type':'format','content':''+o(_0x1efe55,'*Set\x20format:*\x20%0',o(_0x1efe55,this['_getTranslationKeyForListStyle'](_0x48c45b['newValue'])))};if(!_0x48c45b['newValue']){if('default'==_0x48c45b['oldValue'])return _0x3c7a43;let _0x3ae646=_0x42caac['head'];for(;_0x3ae646;){if(_0x3ae646['data']&&'listType'==_0x3ae646['data']['key']&&_0x3ae646['data']['newValue'])return _0x3c7a43;_0x3ae646=_0x3ae646['next'];}return{'type':'format','content':''+o(_0x1efe55,'*Remove\x20format:*\x20%0',o(_0x1efe55,this['_getTranslationKeyForListStyle'](_0x48c45b['oldValue'])))};}if('default'!=_0x48c45b['newValue'])return{'type':'format','content':''+o(_0x1efe55,'*Set\x20format:*\x20%0',o(_0x1efe55,this['_getTranslationKeyForListStyle'](_0x48c45b['newValue'])))};let _0x10586d=_0x42caac['head'];for(;_0x10586d;){if(_0x10586d['data']&&'listType'==_0x10586d['data']['key']&&_0x10586d['data']['newValue']&&_0x10586d['data']['oldValue'])return _0x3c7a43;_0x10586d=_0x10586d['next'];}return{'type':'format','content':o(_0x1efe55,'*Set\x20format:*\x20%0',o(_0x1efe55,'ELEMENT_'+_0x42caac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1acd49=this['editor'],_0x46ef15=_0x1acd49['locale'];_0x1acd49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x270e79=>{if('formatBlock'!=_0x270e79['type'])return;const {data:_0x2dbc77}=_0x270e79;if(!_0x2dbc77)return;let _0x545ec0,_0xe5c850;switch(_0x2dbc77['commandName']){case'listStyle':_0x545ec0='*Change\x20to:*\x20%0',_0xe5c850={'type':'format','content':o(_0x46ef15,_0x545ec0,o(_0x46ef15,this['_getTranslationKeyForListStyle'](_0x2dbc77['commandParams'][0x0]['type'])))};break;case'listReversed':_0x545ec0=_0x2dbc77['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe5c850={'type':'format','content':o(_0x46ef15,_0x545ec0)};break;case'listStart':_0x545ec0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe5c850={'type':'format','content':o(_0x46ef15,_0x545ec0,_0x2dbc77['commandParams'][0x0]['startIndex'])};}return _0xe5c850;});}['_getTranslationKeyForListStyle'](_0x2ab3fa){return'ELEMENT_'+function(_0x2c7b10){if(ye['includes'](_0x2c7b10))return'bulleted';if(Se['includes'](_0x2c7b10))return'numbered';return null;}(_0x2ab3fa)['toUpperCase']()+'_LIST_'+_0x2ab3fa['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x48c5b5{static get['requires'](){return[_0x435002];}['init'](){const _0x338954=this['editor'],_0x583789=_0x338954['plugins']['get']('TrackChangesEditing'),_0x448301=_0x338954['commands']['get']('enter');_0x583789['enableCommand']('enter',()=>{_0x338954['model']['change'](_0x496980=>{const _0x4c3756=_0x338954['model']['document']['selection'],_0x340807=_0x4c3756['getFirstPosition'](),_0x1aaa91=_0x3bc28a['fromRange'](_0x4c3756['getFirstRange']());if(_0x448301['enterBlock'](_0x496980)){const _0x147184=_0x338954['model']['createPositionAt'](_0x340807['parent']['nextSibling'],0x0),_0x62c814=_0x496980['createRange'](_0x340807,_0x147184);_0x583789['markInsertion'](_0x62c814);}else _0x496980['setSelection'](_0x496980['createRange'](_0x1aaa91['end']));_0x1aaa91['detach'](),_0x448301['fire']('afterExecute',{'writer':_0x496980});});}),_0x338954['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x338954,'split'),{'priority':'high'}),_0x338954['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1ecc3b,_0x571ae3,_0x500bbb)=>{const _0x6b8982=_0x500bbb['mapper']['markerNameToElements'](_0x571ae3['markerName']);if(_0x6b8982){for(const _0x48721b of _0x6b8982)_0x48721b['hasClass']('ck-suggestion-marker-split')&&(_0x500bbb['mapper']['unbindElementFromMarkerName'](_0x48721b,_0x571ae3['markerName']),_0x500bbb['writer']['remove'](_0x48721b));}},{'priority':'high'}),_0x338954['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d0f26,_0x266fef,_0x59a1d3)=>{_0x59a1d3['options']['showSuggestionHighlights']&&_e(_0x338954,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3d0f26,_0x266fef,_0x59a1d3);},{'priority':'high'});}}class X extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3dd192=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd192['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3dd192['enableCommand']('findNext'),_0x3dd192['enableCommand']('findPrevious'),_0x3dd192['enableCommand']('replace'),_0x3dd192['enableCommand']('replaceAll');}['handleFindCommand'](_0x1711b6,_0x2d7526,_0xae3397={}){const _0x5bf261=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1711b6(_0x40aa5e=>{let _0x35c79c=('string'==typeof _0x2d7526?_0x5bf261['findByTextCallback'](_0x2d7526,_0xae3397):_0x2d7526)(_0x40aa5e);Array['isArray'](_0x35c79c)&&(_0x35c79c={'results':_0x35c79c,'searchText':'string'==typeof _0x2d7526?_0x2d7526:''});const _0x12c929=_0x35c79c['results']['filter'](_0x1e472d=>!0x1===this['_isInDeletionRange'](_0x1e472d,_0x40aa5e['item']));return{..._0x35c79c,'results':_0x12c929};},_0xae3397);}['_isInDeletionRange'](_0x4eba6b,_0x597548){const _0x169ec6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x597548,_0x4eba6b['start']),this['editor']['model']['createPositionAt'](_0x597548,_0x4eba6b['end']));for(const _0x11896e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x169ec6['getIntersection'](_0x11896e['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 _0x48c5b5{['afterInit'](){const _0x6f3fde=this['editor']['locale'],_0x4bef0b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x58e93b,commandName:_0x4a51ca}of ro)this['editor']['plugins']['has'](_0x58e93b)&&(_0x4bef0b['enableDefaultAttributesIntegration'](_0x4a51ca),_0x4bef0b['registerInlineAttribute'](_0x4a51ca));_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x6f3fde,'FORMAT_FONT_SIZE')),_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x6f3fde,'FORMAT_FONT_FAMILY')),_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x6f3fde,'FORMAT_FONT_COLOR')),_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x6f3fde,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c834f=this['editor'],_0x10549d=_0x4c834f['locale'];_0x4c834f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x522c7c=>{const _0x1c39f9=_0x10549d['t'];if('formatInline'!=_0x522c7c['type'])return;const {data:_0x21ebb5}=_0x522c7c;if(null!=_0x21ebb5){if('fontSize'==_0x21ebb5['commandName']){const _0x84d75f=_0x21ebb5['commandParams'][0x0]['value'];if(_0x84d75f){const _0x5680d3=_0x1c39f9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x480fa3=>_0x480fa3['model']==_0x84d75f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x10549d,'*Set\x20font\x20size:*\x20%0',_0x5680d3)};}return{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x21ebb5['commandName']){const _0x5e50b6=_0x21ebb5['commandParams'][0x0]['value'];return _0x5e50b6?{'type':'format','content':o(_0x10549d,'*Set\x20font\x20family:*\x20%0',_0x5e50b6)}:{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x21ebb5['commandName']){const _0x1ed37f=_0x21ebb5['commandParams'][0x0]['value'];if(_0x1ed37f){const _0x46700f=_0x5ee7db(this['editor']['config']['get']('fontColor.colors'))['find'](_0x207005=>_0x207005['model']==_0x1ed37f);let _0x1cf793=_0x1ed37f,_0x10f90e='';return _0x46700f&&(_0x1cf793=_0x46700f['label'],_0x10f90e=_0x1c39f9(_0x1cf793)['toLowerCase']()),{'type':'format','content':o(_0x10549d,'*Set\x20font\x20color:*\x20%0',_0x10f90e)['trim'](),'color':{'value':_0x1ed37f,'title':_0x10f90e||_0x1cf793}};}return{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x21ebb5['commandName']){const _0xfd5c82=_0x21ebb5['commandParams'][0x0]['value'];if(_0xfd5c82){const _0xf5dc44=_0x5ee7db(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x39aa5b=>_0x39aa5b['model']==_0xfd5c82);let _0x1c0bdd=_0xfd5c82,_0x1f877a='';return _0xf5dc44&&(_0x1c0bdd=_0xf5dc44['label'],_0x1f877a=_0x1c39f9(_0x1c0bdd)['toLowerCase']()),{'type':'format','content':o(_0x10549d,'*Set\x20font\x20background\x20color:*\x20%0',_0x1f877a)['trim'](),'color':{'value':_0xfd5c82,'title':_0x1f877a||_0x1c0bdd}};}return{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x48c5b5{['afterInit'](){const _0x1a02db=this['editor'],_0x3ee989=_0x1a02db['plugins']['get']('TrackChangesEditing'),_0x46fd6b=_0x1a02db['commands']['get']('copyFormat'),_0x32f43b=_0x1a02db['commands']['get']('pasteFormat');_0x46fd6b&&_0x32f43b&&(_0x3ee989['enableDefaultAttributesIntegration']('pasteFormat'),_0x3ee989['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x14018a=this['editor'],_0x16bf42=_0x14018a['locale'];_0x14018a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25c586=>{if('formatBlock'!=_0x25c586['type']&&'formatInline'!=_0x25c586['type'])return;const {data:_0x16700d}=_0x25c586;if(_0x16700d&&'pasteFormat'===_0x16700d['commandName']){const _0x5bc5f5=[],_0x30963c=_0x16700d['commandParams'][0x0];for(const [_0xc33b0e,_0x1f6ce0]of Object['entries'](_0x30963c))_0x5bc5f5['push'](so(_0x14018a,_0xc33b0e,_0x1f6ce0));return _0x5bc5f5['length']?{'type':'format','content':o(_0x16bf42,'*Set\x20format\x20to:*\x20%0',_0x5bc5f5['join'](',\x20'))}:{'type':'format','content':o(_0x16bf42,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5e7f0f,_0x210d52,_0x134c95){const _0x355761=_0x5e7f0f['locale']['t'],_0x525921=_0x210d52['split'](/(?=[A-Z])/)['join']('\x20'),_0xb51a9c=_0x355761(_0x525921['charAt'](0x0)['toUpperCase']()+_0x525921['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x134c95)return _0xb51a9c;if('fontColor'===_0x210d52||'fontBackgroundColor'===_0x210d52){const _0xa16b35=_0x5ee7db(_0x5e7f0f['config']['get']('fontColor.colors'))['find'](_0x15563=>_0x15563['model']==_0x134c95);return _0xb51a9c+'\x20('+(_0xa16b35?_0x355761(_0xa16b35['label'])['toLowerCase']():_0x134c95)+')';}if('fontSize'===_0x210d52&&isNaN(parseFloat(_0x134c95))){const _0x2f2895=_0x5e7f0f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e7f0f['config']['get']('fontSize.options'))['find'](_0x3a1f45=>_0x3a1f45['model']==_0x134c95);return _0xb51a9c+'\x20('+(_0x2f2895?_0x355761(_0x2f2895['title'])['toLowerCase']():_0x134c95)+')';}return _0xb51a9c+'\x20('+_0x134c95+')';}class tt extends _0x48c5b5{['_headingOptions'];['afterInit'](){const _0x46b61d=this['editor'];if(!_0x46b61d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x46b61d['config']['get']('heading.options');const _0x1b0347=_0x46b61d['locale'],_0x52dcff=_0x46b61d['plugins']['get']('TrackChangesEditing');_0x52dcff['enableDefaultAttributesIntegration']('heading');for(const _0x1cc4e0 of this['_headingOptions'])'paragraph'!=_0x1cc4e0['model']&&_0x52dcff['descriptionFactory']['registerElementLabel'](_0x1cc4e0['model'],_0x1f1410=>{const _0x50e8c9=this['_getHeadingLevel'](_0x1cc4e0['model']);return null!==_0x50e8c9?_0x30879e(_0x1f1410,_0x50e8c9):_0x505478(_0x1f1410,_0x1cc4e0['title']);});function _0x30879e(_0x1dbd14,_0x38ccbf){return o(_0x1b0347,'ELEMENT_HEADING',[_0x1dbd14,_0x38ccbf]);}function _0x505478(_0x42d558,_0x1a3109){return o(_0x1b0347,'ELEMENT_HEADING_CUSTOM',[_0x42d558,_0x1a3109]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41ffa7=this['editor'],_0x30f6aa=_0x41ffa7['locale'];function _0x248e8b(_0x2600fb,_0x3f4236){return o(_0x30f6aa,'ELEMENT_HEADING_CUSTOM',[_0x2600fb,_0x3f4236]);}_0x41ffa7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34104f=>{if('formatBlock'!=_0x34104f['type'])return;const {data:_0x558b6b}=_0x34104f;if(_0x558b6b&&'heading'==_0x558b6b['commandName']){const _0x3fc3f9=_0x558b6b['commandParams'][0x0]['value'],_0x35c5ee=this['_getHeadingLevel'](_0x3fc3f9);if(null!==_0x35c5ee)return{'type':'format','content':o(_0x30f6aa,'*Change\x20to:*\x20%0',(_0x51d55f=0x1,_0x266f0c=_0x35c5ee,o(_0x30f6aa,'ELEMENT_HEADING',[_0x51d55f,_0x266f0c])))};const _0x457c66=this['_headingOptions']['find'](_0x27042d=>_0x27042d['model']===_0x3fc3f9)['title'];return{'type':'format','content':o(_0x30f6aa,'*Change\x20to:*\x20%0',_0x248e8b(0x1,_0x457c66))};}var _0x51d55f,_0x266f0c;});}['_getHeadingLevel'](_0x5d3393){const _0x2a3692=_0x5d3393['match'](/^heading(\d+)/);if(_0x2a3692)return _0x2a3692[0x1];const _0x5ee3ec=this['_headingOptions']?.['find'](_0xe2ee5c=>_0xe2ee5c['model']==_0x5d3393);if(_0x5ee3ec&&_0x5ee3ec['view']){const _0x3c782f=_0x5ee3ec['view'],_0x6c78b=(_0x3c782f['name']??_0x3c782f)['match'](/^h(\d+)/);if(_0x6c78b)return _0x6c78b[0x1];}return null;}}class et extends _0x48c5b5{['afterInit'](){const _0x9b67be=this['editor'];if(!_0x9b67be['plugins']['has']('HighlightEditing'))return;const _0xb577e0=_0x9b67be['plugins']['get']('TrackChangesEditing'),_0x483976=_0x9b67be['locale'];_0xb577e0['enableDefaultAttributesIntegration']('highlight'),_0xb577e0['registerInlineAttribute']('highlight'),_0xb577e0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x483976,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e3305=this['editor'],_0x332fc9=_0x4e3305['locale'];_0x4e3305['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3730c1=>{if('formatInline'!=_0x3730c1['type'])return;const {data:_0x3503e1}=_0x3730c1;if(_0x3503e1&&'highlight'==_0x3503e1['commandName']){const _0x2f532a=_0x332fc9['t'],_0x4aad0e=_0x3503e1['commandParams'][0x0]['value'];if(_0x4aad0e){const _0x82802f=_0x4e3305['config']['get']('highlight.options')['find'](_0x19136f=>_0x19136f['model']==_0x4aad0e),_0x148e54=_0x2f532a(_0x82802f['title'])['toLowerCase']();return{'type':'format','content':o(_0x332fc9,'*Set\x20highlight:*\x20%0',_0x148e54),'color':{'value':_0x82802f['color'],'title':_0x82802f['title']}};}return{'type':'format','content':o(_0x332fc9,'*Remove\x20highlight*',o(_0x332fc9,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x48c5b5{['afterInit'](){const _0x4b4901=this['editor'];if(!_0x4b4901['plugins']['has']('HorizontalLineEditing'))return;_0x4b4901['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2b7562=_0x4b4901['plugins']['get']('TrackChangesEditing'),_0x162bd5=_0x4b4901['locale'];_0x2b7562['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1c2cfe=>o(_0x162bd5,'ELEMENT_HORIZONTAL_LINE',_0x1c2cfe)),_0x4b4901['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2b6ab3,{writer:_0x284bdd,options:_0x442888})=>{if(!_0x442888['showSuggestionHighlights'])return null;const _0x2215b4=_0x284bdd['createContainerElement']('div'),_0x50604a=_0x284bdd['createEmptyElement']('hr');return _0x284bdd['addClass']('ck-horizontal-line',_0x2215b4),_0x284bdd['insert'](_0x284bdd['createPositionAt'](_0x2215b4,0x0),_0x50604a),_0x2215b4;},'converterPriority':'high'});}}class st extends _0x48c5b5{['afterInit'](){const _0xc566fc=this['editor'];if(!_0xc566fc['plugins']['has']('HtmlEmbed'))return;const _0x1fcadb=_0xc566fc['plugins']['get']('TrackChangesEditing'),_0x45d208=_0xc566fc['locale'];_0x1fcadb['descriptionFactory']['registerElementLabel']('rawHtml',_0x497928=>o(_0x45d208,'ELEMENT_HTML_EMBED',_0x497928)),_0x1fcadb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1fcadb['registerBlockAttribute']('value'),_0x1fcadb['descriptionFactory']['registerDescriptionCallback'](_0x2c6f5d=>{if('attribute'!=_0x2c6f5d['type'])return;const {data:_0x15831c}=_0x2c6f5d;if(_0x15831c&&'value'==_0x15831c['key']&&_0x2c6f5d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56f339=o(_0x45d208,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45d208,'*Change\x20%0\x20content*',_0x56f339)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x203b5e=this['editor'],_0x219515=_0x203b5e['locale'];_0x203b5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42cf4e=>{if('formatBlock'!=_0x42cf4e['type'])return;const {data:_0xfb408f}=_0x42cf4e;if(_0xfb408f&&'htmlEmbed'==_0xfb408f['commandName']){const _0x384d6b=o(_0x219515,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x219515,'*Change\x20%0\x20content*',_0x384d6b)};}});}}class nt extends _0x48c5b5{['afterInit'](){const _0x209402=this['editor'];if(!_0x209402['plugins']['has']('ImageEditing'))return;const _0x12ba09=_0x209402['plugins']['get']('TrackChangesEditing'),_0xafc7ac=_0x209402['plugins']['get']('ImageUtils'),_0x42075e=_0x209402['locale'];_0x12ba09['enableCommand']('insertImage'),_0x12ba09['descriptionFactory']['registerElementLabel']('imageBlock',_0x44984e=>o(_0x42075e,'ELEMENT_IMAGE',_0x44984e)),_0x12ba09['descriptionFactory']['registerElementLabel']('imageInline',_0x410685=>o(_0x42075e,'ELEMENT_INLINE_IMAGE',_0x410685)),_0x12ba09['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x42075e,'ELEMENT_CAPTION')),_0x209402['plugins']['has']('ImageUploadEditing')&&_0x12ba09['enableCommand']('uploadImage'),_0x209402['plugins']['has']('ImageBlockEditing')&&_0x209402['plugins']['has']('ImageInlineEditing')&&(_0x12ba09['enableCommand']('imageTypeInline',(_0x546e0c,_0x40c087)=>{const _0x486568=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']);_0x209402['model']['change'](()=>{_0x12ba09['markBlockFormat'](_0x486568,{'commandName':'imageTypeInline','commandParams':[_0x40c087]},[],'convertBlockImageToInline');});}),_0x12ba09['enableCommand']('imageTypeBlock',(_0x535885,_0x530d54)=>{_0x209402['model']['change'](_0x426c02=>{let _0x9dc489=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x2b5f2d=_0x426c02['createRangeOn'](_0x9dc489);const _0x464c24=_0x46360e['fromPosition'](_0x2b5f2d['start'],'toPrevious'),_0xef7b58=_0x46360e['fromPosition'](_0x2b5f2d['end'],'toNext');_0x12ba09['forceDefaultExecution'](()=>_0x535885(_0x530d54)),_0x9dc489=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x2b5f2d=_0x426c02['createRangeOn'](_0x9dc489);const _0x10a26d=_0x426c02['createRange'](_0x464c24,_0xef7b58);_0x464c24['detach'](),_0xef7b58['detach'](),_0x12ba09['markBlockFormat'](_0x9dc489,{'commandName':'imageTypeInline','commandParams':[_0x530d54]},[],'convertInlineImageToBlock'),_0x10a26d['start']['isBefore'](_0x2b5f2d['start'])&&_0x12ba09['markInsertion'](_0x426c02['createRange'](_0x10a26d['start'],_0x2b5f2d['start']),'convertInlineImageToBlock'),_0x2b5f2d['end']['isBefore'](_0x10a26d['end'])&&_0x12ba09['markInsertion'](_0x426c02['createRange'](_0x2b5f2d['end'],_0x10a26d['end']),'convertInlineImageToBlock');});}),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x12ba09['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c19e2])=>{const _0x421775=_0x12ba09['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5dca4f=_0x3c19e2['start'],_0x21140f=_0x3c19e2['end'];const _0x372d68=_0x209402['model']['schema']['getNearestSelectionRange'](_0x5dca4f,'backward'),_0x3d990e=_0x209402['model']['schema']['getNearestSelectionRange'](_0x21140f,'forward');_0x372d68['isCollapsed']&&(_0x5dca4f=_0x372d68['start']),_0x3d990e['isCollapsed']&&(_0x21140f=_0x3d990e['end']),_0x421775([_0x209402['model']['createRange'](_0x5dca4f,_0x21140f)]);}),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xe70e96),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xe70e96)),_0x209402['plugins']['has']('ImageCaptionEditing')&&(_0x12ba09['enableCommand']('toggleImageCaption',(_0x27848c,_0x390071)=>{const _0x4aba1b=_0x209402['plugins']['get']('ImageCaptionUtils');let _0x24c526=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x4aa147=_0x4aba1b['getCaptionFromImageModelElement'](_0x24c526);_0x209402['model']['change'](()=>{if(_0x4aa147)return void _0x12ba09['markDeletion'](_0x209402['model']['createRangeOn'](_0x4aa147));const _0x50b502=_0xafc7ac['isBlockImage'](_0x24c526);_0x27848c(_0x390071),_0x24c526=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x4aa147=_0x4aba1b['getCaptionFromImageModelElement'](_0x24c526),_0x12ba09['markInsertion'](_0x209402['model']['createRangeOn'](_0x4aa147),_0x50b502?null:'imageCaption');});}),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xe70e96));const _0x14b626=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7375a3(_0x4ac498,_0x3b354b){const _0x28ca0c=_0x14b626['findIndex'](({type:_0x5c7049,subType:_0xb8ff35})=>_0x4ac498['type']==_0x5c7049&&_0x4ac498['subType']==_0xb8ff35),_0x3d9f85=_0x14b626['findIndex'](({type:_0x2aaa57,subType:_0x122305})=>_0x3b354b['type']==_0x2aaa57&&_0x3b354b['subType']==_0x122305);if(_0x28ca0c<0x0||_0x3d9f85<0x0)return!0x1;const _0x122fe3=_0x4ac498['getFirstRange'](),_0x204771=_0x3b354b['getFirstRange']();if((0x0==_0x28ca0c||0x1==_0x28ca0c)&&0x2==_0x3d9f85&&_0x122fe3['isIntersecting'](_0x204771))return!0x0;if(0x2==_0x28ca0c&&0x3==_0x3d9f85){const _0x21f6ee=_0x12ba09['_findSuggestions'](_0x122fe3,'insertion')['filter'](({suggestion:_0x5b26e1,meta:_0x27b8f8})=>_0x27b8f8['isOwn']&&'convertInlineImageToBlock'==_0x5b26e1['subType']);if(_0x21f6ee['length']>0x1&&_0x204771['end']['isEqual'](_0x122fe3['start']))return!0x0;if(0x1==_0x21f6ee['length']&&(_0x122fe3['start']['isEqual'](_0x204771['end'])||_0x122fe3['end']['isEqual'](_0x204771['start'])))return!0x0;}if(0x3==_0x28ca0c&&0x3==_0x3d9f85&&_0x122fe3['start']['isBefore'](_0x204771['start'])){const _0x494735=_0x122fe3['end']['nodeAfter'],_0x16f88f=_0x204771['start']['nodeBefore'];return _0xafc7ac['isBlockImage'](_0x494735)&&_0x494735===_0x16f88f;}return!0x1;}function _0xe70e96(_0x2f1ff8,_0x4fa3f8){return _0x7375a3(_0x2f1ff8,_0x4fa3f8)?[_0x2f1ff8,_0x4fa3f8]:_0x7375a3(_0x4fa3f8,_0x2f1ff8)?[_0x4fa3f8,_0x2f1ff8]:null;}_0x209402['plugins']['has']('ImageResize')&&(_0x12ba09['enableDefaultAttributesIntegration']('resizeImage'),_0x12ba09['registerBlockAttribute']('resizedWidth'),_0x12ba09['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x42075e,'FORMAT_IMAGE_SIZE'))),_0x209402['plugins']['has']('ImageTextAlternativeEditing')&&(_0x12ba09['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x12ba09['registerBlockAttribute']('alt')),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x5b5c12=>{if(!!_0x14b626['find'](({type:_0x3f02f8,subType:_0x548e87})=>_0x5b5c12['type']==_0x3f02f8&&_0x5b5c12['subType']==_0x548e87))return _0x5b5c12['previous']?{}:void 0x0;}),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x105d00=>{if('insertion'==_0x105d00['type']||'deletion'==_0x105d00['type']){const _0x1b395d=_0x105d00['getContainedElement']();if(_0x1b395d&&_0x1b395d['is']('element','caption'))return{'type':'insertion'==_0x105d00['type']?'addObject':'removeObject','element':_0x1b395d,'quantity':0x1};}}),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x499ce7=>'formatBlock'==_0x499ce7['type']&&'convertInlineImageToBlock'==_0x499ce7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x499ce7['type']&&'convertBlockImageToInline'==_0x499ce7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x137beb=>{if('attribute'!=_0x137beb['type'])return;const {data:_0x5ea6c2}=_0x137beb;if(!_0x5ea6c2||'alt'!=_0x5ea6c2['key'])return;const _0x33a723=_0x5ea6c2['newValue'];return _0x33a723?{'type':'format','content':o(_0x42075e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33a723+'\x22')}:{'type':'format','content':o(_0x42075e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c5918=this['editor'],_0x401ebd=_0x1c5918['locale'];_0x1c5918['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e22a1=>{if('formatBlock'!=_0x3e22a1['type']&&'formatInline'!=_0x3e22a1['type'])return;const {data:_0x9b701}=_0x3e22a1;if(_0x9b701){if('imageTextAlternative'==_0x9b701['commandName']){const _0x563a93=_0x9b701['commandParams'][0x0]['newValue'];return _0x563a93?{'type':'format','content':o(_0x401ebd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x563a93+'\x22')}:{'type':'format','content':o(_0x401ebd,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x9b701['commandName']){const _0x3cf36a=_0x9b701['commandParams'][0x0]['width'];return _0x3cf36a?{'type':'format','content':o(_0x401ebd,'*Set\x20image\x20width:*\x20%0',_0x3cf36a)}:{'type':'format','content':o(_0x401ebd,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x30aac0=this['editor']['locale'],_0x3eb2df=this['editor']['plugins']['get']('TrackChangesEditing');_0x3eb2df['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3eb2df['registerBlockAttribute']('src'),_0x3eb2df['descriptionFactory']['registerDescriptionCallback'](_0x5af5ef=>{if('attribute'!=_0x5af5ef['type'])return;const {data:_0x5b3cb8}=_0x5af5ef;return _0x5b3cb8&&'src'==_0x5b3cb8['key']?_0x5b3cb8['newValue']&&_0x5b3cb8['oldValue']?{'type':'format','content':o(_0x30aac0,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x26ce4c=this['editor']['plugins']['get']('TrackChangesEditing');_0x26ce4c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x26ce4c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x26ce4c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x26ce4c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e5458=this['editor'],_0x59bc3c=_0x2e5458['locale'];_0x2e5458['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9c94=>{if('formatBlock'!=_0x5a9c94['type']&&'formatInline'!=_0x5a9c94['type'])return;const {data:_0x2ef5f0}=_0x5a9c94;if(!_0x2ef5f0||'replaceImageSource'!=_0x2ef5f0['commandName'])return;return{'type':'format','content':o(_0x59bc3c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x48c5b5{['afterInit'](){const _0x1825e4=this['editor'];if(!_0x1825e4['plugins']['has']('ImageStyleEditing'))return;const _0xb64974=_0x1825e4['plugins']['get']('TrackChangesEditing'),_0x379888=_0x1825e4['plugins']['get']('ImageUtils'),_0x5a28a5={};_0xb64974['enableCommand']('imageStyle',(_0x20b62d,_0x380715)=>{const _0x44cf46=_0x1825e4['plugins']['get']('Users')['me'],_0xf3ebc7=_0x1825e4['commands']['get']('imageStyle');let _0x1d4b07=_0x379888['getClosestSelectedImageElement'](_0x1825e4['model']['document']['selection']),_0x562df4=_0x1825e4['model']['createRangeOn'](_0x1d4b07),_0x9bd763=_0xf3ebc7['value'];if(_0x9bd763==_0x380715['value'])return;const _0x33c00d={'commandName':'imageStyle','commandParams':[_0x380715],'formatGroupId':_0x5790ee()};_0x1825e4['model']['change'](()=>{if(_0xb64974['getSuggestions']()['filter'](_0x365302=>_0x365302['isInContent']&&_0x44cf46==_0x365302['author']&&('formatBlock'==_0x365302['type']||'formatInline'==_0x365302['type'])&&('imageStylePreApply'==_0x365302['subType']||'imageStylePostApply'==_0x365302['subType'])&&_0x365302['getFirstRange']()['isEqual'](_0x562df4))['forEach'](_0x27a61a=>_0xb64974['discardSuggestion'](_0x27a61a['head'])),_0x1d4b07=_0x379888['getClosestSelectedImageElement'](_0x1825e4['model']['document']['selection']),_0x562df4=_0x1825e4['model']['createRangeOn'](_0x1d4b07),_0xf3ebc7['refresh'](),_0x1825e4['commands']['get']('imageTypeInline')['refresh'](),_0x1825e4['commands']['get']('imageTypeBlock')['refresh'](),_0x9bd763=_0xf3ebc7['value'],_0x9bd763!=_0x380715['value'])return _0x379888['isInlineImage'](_0x1d4b07)&&_0xf3ebc7['shouldConvertImageType'](_0x380715['value'],_0x1d4b07)?(_0x20b62d({..._0x380715,'setImageSizes':!0x1}),_0x1d4b07=_0x379888['getClosestSelectedImageElement'](_0x1825e4['model']['document']['selection']),void _0xb64974['markBlockFormat'](_0x1d4b07,{..._0x33c00d,'commandReversedParams':[{'value':_0x9bd763||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x379888['isBlockImage'](_0x1d4b07)?_0xb64974['markBlockFormat'](_0x1d4b07,_0x33c00d,[],'imageStylePostApply'):_0xb64974['markInlineFormat'](_0x562df4,_0x33c00d,'imageStylePostApply'));});});for(const _0xf2d107 of _0x1825e4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5a28a5[_0xf2d107['name']]=_0xf2d107['title']['toLowerCase']();_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c5c4e])=>{_0x379888['setImageNaturalSizeAttributes'](_0x5c5c4e['getContainedElement']());}),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1a1f5c,_0x15b0ff)=>{_0xb64974['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1a1f5c,{'commandName':_0x15b0ff['commandName'],'commandParams':_0x15b0ff['commandReversedParams']});}),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x52f081,_0x24fc38){if(_0x107c97(_0x52f081,_0x24fc38))return[_0x52f081,_0x24fc38];if(_0x107c97(_0x24fc38,_0x52f081))return[_0x24fc38,_0x52f081];return null;});const _0x27ae9e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x107c97(_0x1ab8d1,_0x3f1de3){const _0x556bbf=_0x27ae9e['findIndex'](({type:_0x2e6efb,subType:_0x224429})=>_0x1ab8d1['type']==_0x2e6efb&&_0x1ab8d1['subType']==_0x224429),_0x59ffe4=_0x27ae9e['findIndex'](({type:_0xf90113,subType:_0xc26bf1})=>_0x3f1de3['type']==_0xf90113&&_0x3f1de3['subType']==_0xc26bf1);if(_0x556bbf<0x0||_0x59ffe4<0x0)return!0x1;const _0x4fc2db=_0x1ab8d1['getFirstRange'](),_0x547293=_0x3f1de3['getFirstRange']();if((0x0==_0x556bbf||0x1==_0x556bbf)&&0x2==_0x59ffe4&&_0x4fc2db['isIntersecting'](_0x547293))return!0x0;if(0x2==_0x556bbf&&0x3==_0x59ffe4){const _0x13fd5c=_0xb64974['_findSuggestions'](_0x4fc2db,'insertion')['filter'](({suggestion:_0x3e9474,meta:_0x35ebf9})=>_0x35ebf9['isOwn']&&'convertInlineImageToBlock'==_0x3e9474['subType']);if(_0x13fd5c['length']>0x1&&_0x547293['end']['isEqual'](_0x4fc2db['start']))return!0x0;if(0x1==_0x13fd5c['length']&&(_0x4fc2db['start']['isEqual'](_0x547293['end'])||_0x4fc2db['end']['isEqual'](_0x547293['start'])))return!0x0;}if(0x3==_0x556bbf&&0x3==_0x59ffe4&&_0x4fc2db['start']['isBefore'](_0x547293['start'])){const _0x5a60cc=_0x4fc2db['end']['nodeAfter'],_0x1e2ba5=_0x547293['start']['nodeBefore'];return _0x379888['isBlockImage'](_0x5a60cc)&&_0x5a60cc===_0x1e2ba5;}return!0x1;}_0x1825e4['model']['document']['registerPostFixer'](()=>{let _0x567f5d=!0x1;const _0x3e0131=Array['from'](_0x1825e4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x597601,data:_0x57242a}of _0x3e0131){const {group:_0x5ed5c9,type:_0x2bf92f,subType:_0x42bf51,id:_0x24989c}=_0xb64974['_splitMarkerName'](_0x597601);if('suggestion'==_0x5ed5c9&&_0xb64974['hasSuggestion'](_0x24989c)){if('formatBlock'==_0x2bf92f&&('imageStylePreApply'==_0x42bf51||'imageStylePostApply'==_0x42bf51)){const _0x40c14f=_0xb64974['getSuggestion'](_0x24989c);if(_0x57242a['newRange']){const _0x42ac9e=_0x40c14f['getFirstRange']()['getContainedElement']();if(_0x379888['isBlockImage'](_0x42ac9e))continue;_0xb64974['discardSuggestion'](_0x40c14f),_0x567f5d=!0x0;}}if('insertion'==_0x2bf92f&&'imageCaption'==_0x42bf51&&!_0x57242a['newRange']){const _0x41f3c7=_0xb64974['getSuggestion'](_0x24989c);_0x41f3c7['next']&&_0x41f3c7['next']['isInContent']&&(_0xb64974['discardSuggestion'](_0x41f3c7['next']),_0x567f5d=!0x0);}}}return _0x567f5d;}),this['_registerLegacyDescription'](_0x5a28a5);}['_registerLegacyDescription'](_0x17adb7){const _0x541484=this['editor'],_0x375a84=_0x541484['locale'];_0x541484['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9c55f8=>{if('formatBlock'!=_0x9c55f8['type']&&'formatInline'!=_0x9c55f8['type'])return;const {data:_0x347ec9}=_0x9c55f8;if(!_0x347ec9||'imageStyle'!=_0x347ec9['commandName'])return;const _0x3e76dd=_0x347ec9['commandParams'][0x0]['value'];return _0x1ad072('side'===_0x3e76dd?o(_0x375a84,'FORMAT_SIDE_IMAGE'):_0x17adb7[_0x3e76dd]||_0x3e76dd);function _0x1ad072(_0x3e6544){return{'type':'format','content':o(_0x375a84,'*Format:*\x20%0',_0x3e6544)};}});}}class at extends _0x48c5b5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x15012b){super(_0x15012b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x14fd3e=this['editor'],_0x1ef048=_0x14fd3e['commands']['get']('importWord'),_0x521120=_0x14fd3e['commands']['get']('trackChanges');_0x1ef048&&(_0x1ef048['on']('execute',(_0x12086c,[,_0x22cde7])=>{this['_trackChangesValueDuringImport']=_0x521120['value'],_0x22cde7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ef048,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ef048,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x521120['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x14fd3e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x51c0f7,_0x44ae24){const {suggestions:_0x10731c}=_0x44ae24,_0x146026=this['editor']['commands']['get']('trackChanges'),_0x1b04bc=_0x146026['value'];this['_trackChangesValueDuringImport']!==_0x1b04bc&&(_0x146026['execute'](),this['_trackChangesExecuted']=!0x0),_0x10731c&&_0x10731c['forEach'](({id:_0x3b1c82,type:_0x42c988,author:_0x3f334e,created_at:_0x13b1db})=>{const _0x63b573={'id':_0x3b1c82,'type':_0x42c988,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3f334e,'createdAt':_0x13b1db?new Date(_0x13b1db):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x63b573);});}}class ct extends _0x48c5b5{['afterInit'](){const _0x3dc954=this['editor'],_0xfe3b0f=_0x3dc954['plugins']['get']('TrackChangesEditing');if(_0x3dc954['plugins']['has']('IndentEditing')&&(_0xfe3b0f['enableCommand']('indent'),_0xfe3b0f['enableCommand']('outdent')),_0x3dc954['plugins']['has']('IndentBlock')){for(const _0x70e399 of['indentBlock','outdentBlock'])_0xfe3b0f['enableDefaultAttributesIntegration'](_0x70e399);}const _0x164610=_0x3dc954['locale'];_0xfe3b0f['registerBlockAttribute']('blockIndent'),_0xfe3b0f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x164610,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238622=this['editor'],_0x48a313=_0x238622['locale'],_0x1b5446=_0x238622['plugins']['get']('TrackChangesEditing');_0x1b5446['descriptionFactory']['registerDescriptionCallback'](_0x3556eb=>{if('formatBlock'!=_0x3556eb['type'])return;const {data:_0x5142e7}=_0x3556eb;if(!_0x5142e7)return;if('indentBlock'!=_0x5142e7['commandName']&&'outdentBlock'!=_0x5142e7['commandName'])return;const _0x422a8b=_0x3556eb['getItems']()[0x0],_0x549375=_0x1b5446['descriptionFactory']['getItemLabel'](_0x422a8b);return'indentBlock'==_0x5142e7['commandName']?{'type':'format','content':o(_0x48a313,'*Indent:*\x20%0',_0x549375)}:'outdentBlock'==_0x5142e7['commandName']?{'type':'format','content':o(_0x48a313,'*Outdent:*\x20%0',_0x549375)}:void 0x0;});}}class ut extends _0x48c5b5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x48c5b5{['afterInit'](){const _0x1ae590=this['editor'];if(!_0x1ae590['plugins']['has']('LinkEditing'))return;const _0x12a5e9=_0x1ae590['plugins']['get']('TrackChangesEditing'),_0x2053bd=_0x1ae590['commands']['get']('link');_0x12a5e9['enableDefaultAttributesIntegration']('link'),_0x12a5e9['enableDefaultAttributesIntegration']('unlink'),_0x12a5e9['registerInlineAttribute']('linkHref');for(const _0x3caca5 of _0x2053bd['manualDecorators'])_0x12a5e9['registerInlineAttribute'](_0x3caca5['id']),_0x12a5e9['descriptionFactory']['registerAttributeLabel'](_0x3caca5['id'],'link\x20('+_0x3caca5['label']['toLowerCase']()+')');_0x12a5e9['descriptionFactory']['registerDescriptionCallback'](_0x2cb9eb=>{if('attribute'!=_0x2cb9eb['type'])return;const {data:_0x1dfa2f}=_0x2cb9eb;if(!_0x1dfa2f||'linkHref'!=_0x1dfa2f['key'])return;const _0x672856=_0x1dfa2f['newValue'],_0x585cbb=_0x1ae590['locale'];return{'type':'format','content':null==_0x672856?o(_0x585cbb,'*Remove\x20link*'):o(_0x585cbb,'*Set\x20link:*\x20%0','\x22'+_0x672856+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e94d2=this['editor'],_0x2a06b5=_0x2e94d2['locale'];_0x2e94d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x250034=>{if('formatInline'!=_0x250034['type'])return;const {data:_0x30448b}=_0x250034;if(_0x30448b){if('link'==_0x30448b['commandName']){const _0x3266a6=_0x30448b['commandParams'][0x0];return{'type':'format','content':o(_0x2a06b5,'*Set\x20link:*\x20%0','\x22'+_0x3266a6+'\x22')};}return'unlink'==_0x30448b['commandName']?{'type':'format','content':o(_0x2a06b5,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x48c5b5{['afterInit'](){const _0x2705aa=this['editor'],_0x563d54=_0x2705aa['locale'];if(!_0x2705aa['plugins']['has']('LegacyListEditing'))return;const _0x54bd3f=_0x2705aa['plugins']['get']('TrackChangesEditing'),_0x2b5dc1=_0x2705aa['plugins']['has']('LegacyTodoListEditing');function _0x44fe55(_0x3d51a5){return()=>{const _0x5ec894=_0x2705aa['model']['document']['selection'],_0x461b50=_0x2705aa['commands']['get'](_0x3d51a5);if(_0x461b50['value'])return void _0x2705aa['execute']('paragraph',{});const _0x44e39b=_0x3d51a5['slice'](0x0,-0x4),_0x11d062=function(_0x44e3f7,_0x33513b,_0x49bd49){let _0x563a19=Array['from'](_0x44e3f7)['filter'](_0x242380=>function(_0x2ab2d2,_0x2decf8){return _0x2decf8['checkChild'](_0x2ab2d2['parent'],'listItem')&&!_0x2decf8['isObject'](_0x2ab2d2);}(_0x242380,_0x49bd49));_0x563a19=_0x563a19['filter'](_0x3fdd1d=>!_0x3fdd1d['is']('element','listItem')||_0x3fdd1d['getAttribute']('listType')!=_0x33513b);const _0x145b7b=new Set();for(const _0x3f2af2 of _0x563a19)_0x3f2af2['is']('element','listItem')?_0x145b7b['add'](fe(_0x3f2af2)):_0x145b7b['add'](_0x3f2af2);return Array['from'](_0x145b7b);}(_0x5ec894['getSelectedBlocks'](),_0x44e39b,_0x2705aa['model']['schema']);_0x2705aa['model']['change'](()=>{for(const _0x1c8e70 of _0x11d062)_0x54bd3f['markBlockFormat'](_0x1c8e70,{'commandName':_0x3d51a5,'commandParams':[{'forceValue':!_0x461b50['value']}],'formatGroupId':'blockName'},ue(_0x1c8e70));});};}function _0x3e3eaf(_0x14477a){return()=>{const _0x1d53c8=function(_0x1854a7){let _0x3812a8=Array['from'](_0x1854a7);const _0x777924=_0x3812a8['findIndex'](_0x335a99=>'listItem'!=_0x335a99['name']);return _0x777924>-0x1&&(_0x3812a8=_0x3812a8['slice'](0x0,_0x777924)),_0x3812a8;}(_0x2705aa['model']['document']['selection']['getSelectedBlocks']()),_0x3f861c=_0x2705aa['model']['createRange'](_0x2705aa['model']['createPositionAt'](_0x1d53c8[0x0],'before'),_0x2705aa['model']['createPositionAt'](_0x1d53c8[_0x1d53c8['length']-0x1],'end'));_0x2705aa['model']['change'](()=>{_0x54bd3f['markBlockFormat'](_0x3f861c,{'commandName':_0x14477a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5b68b3){const _0x2fe769=new Set();for(const _0x4913f8 of _0x5b68b3){let _0x2643b9=_0x4913f8['nextSibling'];for(;_0x2643b9&&_0x2643b9['getAttribute']('listIndent')>_0x4913f8['getAttribute']('listIndent');)_0x2fe769['add'](_0x2643b9),_0x2643b9=_0x2643b9['nextSibling'];}return Array['from'](_0x2fe769);}(_0x1d53c8));});};}_0x54bd3f['enableCommand']('numberedList',_0x44fe55('numberedList')),_0x54bd3f['enableCommand']('bulletedList',_0x44fe55('bulletedList')),_0x2b5dc1&&_0x54bd3f['enableCommand']('todoList',_0x44fe55('todoList')),_0x54bd3f['enableCommand']('indentList',_0x3e3eaf('indentList')),_0x54bd3f['enableCommand']('outdentList',_0x3e3eaf('outdentList')),_0x2b5dc1&&_0x54bd3f['enableCommand']('checkTodoList',()=>{const _0x43e99b=_0x2705aa['commands']['get']('checkTodoList'),_0x490767=Array['from'](_0x43e99b['_selectedElements']);_0x490767['filter'](_0x4c19ab=>_0x4c19ab['getAttribute']('todoListChecked')!=_0x43e99b['value']),_0x2705aa['model']['change'](()=>{for(const _0x535898 of _0x490767)_0x54bd3f['markBlockFormat'](_0x535898,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x43e99b['value']}]});});}),_0x54bd3f['descriptionFactory']['registerElementLabel']('listItem',_0x183733=>o(_0x563d54,'ELEMENT_LIST_ITEM',_0x183733)),_0x54bd3f['descriptionFactory']['registerDescriptionCallback'](_0x243e90=>{if('formatBlock'!=_0x243e90['type']&&'formatInline'!=_0x243e90['type'])return;const {data:_0x52abdf}=_0x243e90;if(_0x52abdf){if('numberedList'==_0x52abdf['commandName']||'bulletedList'==_0x52abdf['commandName']||'todoList'==_0x52abdf['commandName'])switch(_0x52abdf['commandName']['replace']('List','')){case'bulleted':return _0xdeeb2(o(_0x563d54,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xdeeb2(o(_0x563d54,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xdeeb2(o(_0x563d54,'ELEMENT_TODO_LIST'));}if('indentList'==_0x52abdf['commandName'])return{'type':'format','content':o(_0x563d54,'*Indent:*\x20%0',o(_0x563d54,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x52abdf['commandName'])return{'type':'format','content':o(_0x563d54,'*Outdent:*\x20%0',o(_0x563d54,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x52abdf['commandName'])return _0x52abdf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x563d54,'*Check\x20item*')}:{'type':'format','content':o(_0x563d54,'*Uncheck\x20item*')};}function _0xdeeb2(_0x2bdece){return{'type':'format','content':o(_0x563d54,'*Change\x20to:*\x20%0',_0x2bdece)};}});}}function fe(_0x29110d){const _0x521bcc=_0x29110d['getAttribute']('listIndent');if(0x0==_0x521bcc)return _0x29110d;let _0x54af99=_0x29110d;for(;_0x29110d['previousSibling']&&_0x29110d['previousSibling']['is']('element','listItem');){const _0x33c1c6=_0x29110d['previousSibling']['getAttribute']('listIndent');if(_0x33c1c6==_0x521bcc)_0x54af99=_0x29110d['previousSibling'];else{if(_0x33c1c6<_0x521bcc)break;}_0x29110d=_0x29110d['previousSibling'];}return _0x54af99;}function ue(_0xb492d0){const _0x1c5cb4=[];if(_0xb492d0['is']('element','listItem')&&_0xb492d0['getAttribute']('listIndent')>0x0){let _0x30e2de=_0xb492d0['nextSibling'];for(;_0x30e2de&&'listItem'==_0x30e2de['name']&&_0x30e2de['getAttribute']('listIndent')==_0xb492d0['getAttribute']('listIndent');)_0x1c5cb4['push'](_0x30e2de),_0x30e2de=_0x30e2de['nextSibling'];}return _0x1c5cb4;}class W extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x461215=this['editor']['config']['get']('list.properties'),_0x47e209=this['editor']['plugins']['get']('TrackChangesEditing');_0x461215['styles']&&_0x47e209['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x461215['reversed']&&_0x47e209['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x461215['startIndex']&&_0x47e209['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x47e209['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x25a2a3,_0x32bf19={}){const _0x54e682=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f0096=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54e682['markMultiRangeBlockFormat'](_0x4f0096,{'commandName':'listStyle','commandParams':[{'type':_0x32bf19['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x355c7b,_0x31c6f1={}){const _0x29e9d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21819d=this['_getSuggestionBlocks'](_0x3943b0=>_0x3943b0['is']('element','listItem')&&'numbered'===_0x3943b0['getAttribute']('listType'));if(_0x21819d['length']<0x1)return;const _0x44ef28=_0x21819d['map'](_0x5c7f51=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c7f51,'before'),this['editor']['model']['createPositionAt'](_0x5c7f51,0x0)));this['editor']['model']['change'](()=>{_0x29e9d5['markMultiRangeBlockFormat'](_0x44ef28,{'commandName':'listReversed','commandParams':[{'reversed':_0x31c6f1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x352a98,_0x8ab579={}){const _0x457664=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc3add0=this['_getSuggestionBlocks'](_0xdcd079=>_0xdcd079['is']('element','listItem')&&'numbered'===_0xdcd079['getAttribute']('listType'));if(_0xc3add0['length']<0x1)return;const _0x25d225=_0xc3add0['map'](_0x1e049b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e049b,'before'),this['editor']['model']['createPositionAt'](_0x1e049b,0x0)));this['editor']['model']['change'](()=>{_0x457664['markMultiRangeBlockFormat'](_0x25d225,{'commandName':'listStart','commandParams':[{'startIndex':_0x8ab579['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4d9caf){if('formatBlock'!=_0x4d9caf['type']&&'formatInline'!=_0x4d9caf['type'])return;const _0x2fefaf=this['editor']['locale'],{data:_0x106dae}=_0x4d9caf;if(!_0x106dae)return;let _0x3c7031,_0x30bfdb;switch(_0x106dae['commandName']){case'listStyle':_0x3c7031='*Change\x20to:*\x20%0',_0x30bfdb={'type':'format','content':o(_0x2fefaf,_0x3c7031,o(_0x2fefaf,this['_getTranslationKeyForListStyle'](_0x106dae['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c7031=_0x106dae['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30bfdb={'type':'format','content':o(_0x2fefaf,_0x3c7031)};break;case'listStart':_0x3c7031='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30bfdb={'type':'format','content':o(_0x2fefaf,_0x3c7031,_0x106dae['commandParams'][0x0]['startIndex'])};}return _0x30bfdb;}['_getSuggestionBlocksForListStyle'](){const _0x459b3a=this['editor']['plugins']['get']('LegacyListUtils');let _0x1854b1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1854b1[0x0]?.['is']('element','listItem')&&_0x1854b1['unshift'](..._0x459b3a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1854b1[_0x1854b1['length']-0x1]?.['is']('element','listItem')&&_0x1854b1['push'](..._0x459b3a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1854b1=[...new Set(_0x1854b1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1854b1=_0x1854b1['filter'](_0x3f3c38=>_0x3f3c38['is']('element','listItem'))),_0x1854b1;}['_getSuggestionBlocks'](_0x20e847){const _0x17af24=this['editor']['plugins']['get']('LegacyListUtils');let _0x32f2d5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x20e847)['map'](_0x2e7803=>{const _0x1b0c05=this['editor']['model']['createPositionAt'](_0x2e7803,0x0);return[..._0x17af24['getSiblingNodes'](_0x1b0c05,'backward'),..._0x17af24['getSiblingNodes'](_0x1b0c05,'forward')];})['flat']();return _0x32f2d5=[...new Set(_0x32f2d5)],_0x32f2d5;}['_getTranslationKeyForListStyle'](_0x6d1de4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x6d1de4)||'default')['toUpperCase']()+'_LIST_'+_0x6d1de4['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x48c5b5{['afterInit'](){const _0x441e18=this['editor'];if(!_0x441e18['plugins']['has']('MediaEmbedEditing'))return;const _0x2cb483=_0x441e18['plugins']['get']('TrackChangesEditing'),_0x446d65=_0x441e18['locale'];_0x2cb483['enableCommand']('mediaEmbed'),_0x2cb483['descriptionFactory']['registerElementLabel']('media',_0x5ecb34=>o(_0x446d65,'ELEMENT_MEDIA',_0x5ecb34)),_0x441e18['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5df96d,{writer:_0x4cf853,options:_0xd1097d})=>{if(_0xd1097d['showSuggestionHighlights'])return _0x4cf853['createEmptyElement']('div');},'converterPriority':'high'}),_0x441e18['data']['downcastDispatcher']['on']('attribute:url:media',(_0x337ac6,_0x1e4a0c,_0x10ac49)=>{_0x10ac49['options']['showSuggestionHighlights']&&_0x337ac6['stop']();},{'priority':'high'});}}class mt extends _0x48c5b5{['afterInit'](){const _0x3e038f=this['editor'];_0x3e038f['plugins']['has']('MentionEditing')&&_0x3e038f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x48c5b5{['afterInit'](){const _0xd06dff=this['editor'];if(!_0xd06dff['plugins']['has']('MergeFieldsEditing'))return;_0xd06dff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0xd06dff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x5e7286=_0xd06dff['plugins']['get']('TrackChangesEditing'),_0x234c89=_0xd06dff['locale'];_0x5e7286['descriptionFactory']['registerElementLabel']('mergeField',_0x1c05dc=>o(_0x234c89,'ELEMENT_MERGE_FIELD',_0x1c05dc)),_0x5e7286['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15b16a=>o(_0x234c89,'ELEMENT_MERGE_FIELD',_0x15b16a)),_0x5e7286['descriptionFactory']['registerDescriptionCallback'](_0x290036=>{if('insertion'!=_0x290036['type']&&'deletion'!=_0x290036['type'])return;const _0x290663=_0x290036['getContainedElement']();if(null==_0x290663)return;if(!_0x290663['is']('element','mergeField')&&!_0x290663['is']('element','mergeFieldBlock'))return;const _0x4bcb17=_0xd06dff['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x290663['getAttribute']('id'));return'insertion'==_0x290036['type']?{'type':'insertion','content':o(_0x234c89,'*Insert:*\x20%0','\x22'+_0x4bcb17+'\x22\x20'+o(_0x234c89,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x234c89,'*Remove:*\x20%0','\x22'+_0x4bcb17+'\x22\x20'+o(_0x234c89,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x48c5b5{['afterInit'](){const _0x25ec19=this['editor'],_0x3cac63=_0x25ec19['plugins']['get']('TrackChangesEditing');_0x25ec19['plugins']['has']('MultiLevelList')&&(_0x3cac63['enableDefaultAttributesIntegration']('multiLevelList'),_0x3cac63['registerBlockAttribute']('listMarkerStyle'),_0x3cac63['descriptionFactory']['registerDescriptionCallback'](_0x387d5f=>this['handleDescriptions'](_0x387d5f)));}['handleDescriptions'](_0x430f09){const _0x325aec=this['editor']['locale'],{data:_0x234478}=_0x430f09,_0x1c92b6={'type':'format','content':''};if(_0x234478&&'listMarkerStyle'==_0x234478['key']){if(!_0x234478['oldValue'])return{'type':'format','content':o(_0x325aec,'*Set\x20format:*\x20%0',o(_0x325aec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x234478['newValue']+')'};if(!_0x234478['newValue']){let _0x44667d=_0x430f09['head'];for(;_0x44667d;){if(_0x44667d['data']&&'listType'==_0x44667d['data']['key']&&_0x44667d['data']['newValue'])return _0x1c92b6;_0x44667d=_0x44667d['next'];}return{'type':'format','content':o(_0x325aec,'*Remove\x20format:*\x20%0',o(_0x325aec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x234478['oldValue']+')'};}}}}class kt extends _0x48c5b5{['afterInit'](){const _0x724abb=this['editor'];if(!_0x724abb['plugins']['has']('PageBreakEditing'))return;_0x724abb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1793a0=_0x724abb['plugins']['get']('TrackChangesEditing'),_0x4465fc=_0x724abb['locale'];_0x1793a0['descriptionFactory']['registerElementLabel']('pageBreak',_0x449dae=>o(_0x4465fc,'ELEMENT_PAGE_BREAK',_0x449dae));}}class bt extends _0x48c5b5{['afterInit'](){const _0x4faa16=this['editor'];if(!_0x4faa16['plugins']['has']('Paragraph'))return;const _0x26c33d=_0x4faa16['locale'],_0x4243b7=_0x4faa16['plugins']['get']('TrackChangesEditing');_0x4243b7['descriptionFactory']['registerElementLabel']('paragraph',_0x5d9365=>o(_0x26c33d,'ELEMENT_PARAGRAPH',_0x5d9365)),_0x4243b7['enableDefaultAttributesIntegration']('paragraph'),_0x4243b7['enableCommand']('insertParagraph'),_0x4faa16['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4faa16),{'priority':'highest'}),_0x4faa16['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x362455,_0x5040e1,_0x3af2ac)=>{_0x3af2ac['options']['showSuggestionHighlights']&&nr(_0x4faa16,{'showActiveMarker':!0x1})(_0x362455,_0x5040e1,_0x3af2ac);},{'priority':'highest'});const _0x356bed=_0x4243b7['descriptionFactory'];_0x356bed['registerDescriptionCallback'](_0x2f1151=>{if('insertion'!==_0x2f1151['type'])return;const {start:_0x1e0986,end:_0x423f7e}=_0x2f1151['getFirstRange']();if(!_0x1e0986['isTouching'](_0x423f7e)||!_0x1e0986['nodeAfter'])return;const _0x1ac431=_0x4faa16['model']['schema'],_0x32df8b=_0x1e0986['nodeAfter'];return _0x1ac431['isBlock'](_0x32df8b)&&!_0x1ac431['isLimit'](_0x32df8b)&&_0x1ac431['checkChild'](_0x32df8b,'$text')?{'type':'insertion','content':o(_0x26c33d,'*Insert:*\x20%0',_0x356bed['getItemLabel'](_0x32df8b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5ef3=this['editor'],_0x11af95=_0x1b5ef3['locale'];_0x1b5ef3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b322b=>{if('formatBlock'!=_0x3b322b['type'])return;const {data:_0x1d4da1}=_0x3b322b;return _0x1d4da1&&'paragraph'==_0x1d4da1['commandName']?{'type':'format','content':o(_0x11af95,'*Change\x20to:*\x20%0',o(_0x11af95,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4a6379,{showActiveMarker:_0x34589f=!0x0}={}){return(_0x148f01,_0x1046bd,_0x2c2099)=>{const _0x15f6d2=_0x4a6379['plugins']['get']('TrackChangesEditing'),_0xb0aa0e=_0x1046bd['markerRange']['start'],_0x14a0c5=_0x1046bd['markerRange']['end'],_0x4853d4=_0x4a6379['model']['schema'];if(!_0xb0aa0e['isTouching'](_0x14a0c5)||!_0xb0aa0e['nodeAfter'])return;const _0x85011b=_0xb0aa0e['nodeAfter'];if(_0x4853d4['isBlock'](_0x85011b)&&!_0x4853d4['isLimit'](_0x85011b)&&_0x4853d4['checkChild'](_0x85011b,'$text')){if(!_0x2c2099['consumable']['consume'](_0x1046bd['markerRange'],_0x148f01['name']))return;const {authorId:_0x321b6f}=_0x15f6d2['_splitMarkerName'](_0x1046bd['markerName']),_0x50120a=_0x2c2099['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x321b6f}),_0xe813d4=_0x2c2099['mapper']['toViewPosition'](_0x14a0c5);_0x34589f&&_0x15f6d2['activeMarkers']['includes'](_0x1046bd['markerName'])&&_0x2c2099['writer']['addClass']('ck-suggestion-marker--active',_0x50120a),_0x2c2099['writer']['insert'](_0xe813d4,_0x50120a),_0x2c2099['mapper']['bindElementToMarker'](_0x50120a,_0x1046bd['markerName']);}};}class wt extends _0x48c5b5{['afterInit'](){const _0x3ff477=this['editor'];if(!_0x3ff477['plugins']['has']('RemoveFormatEditing'))return;_0x3ff477['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e4e3f=this['editor'];_0x3e4e3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fdd2f=>{if('formatBlock'!=_0x1fdd2f['type']&&'formatInline'!=_0x1fdd2f['type'])return;const {data:_0x59f106}=_0x1fdd2f;return _0x59f106&&'removeFormat'==_0x59f106['commandName']?{'type':'format','content':o(_0x3e4e3f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x48c5b5{['afterInit'](){const _0x5bd55e=this['editor'];if(!_0x5bd55e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x24d0f8=_0x5bd55e['plugins']['get']('TrackChangesEditing');_0x24d0f8['enableCommand']('goToPreviousRestrictedEditingException'),_0x24d0f8['enableCommand']('goToNextRestrictedEditingException');const _0x39ea96=_0x5bd55e['plugins']['get']('RestrictedEditingModeEditing');_0x39ea96['enableCommand']('trackChanges'),_0x39ea96['enableCommand']('acceptSuggestion'),_0x39ea96['enableCommand']('discardSuggestion'),_0x39ea96['enableCommand']('acceptAllSuggestions'),_0x39ea96['enableCommand']('discardAllSuggestions'),_0x39ea96['enableCommand']('acceptSelectedSuggestions'),_0x39ea96['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x48c5b5{static get['requires'](){return[_0x7d8e06];}['init'](){const _0x4b40c2=this['editor'],_0x1101e6=_0x4b40c2['plugins']['get']('TrackChangesEditing');_0x1101e6['enableCommand']('shiftEnter'),_0x4b40c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4b40c2),{'priority':'high'}),_0x4b40c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4b40c2),{'priority':'high'}),_0x4b40c2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c4a0c,_0x26df93,_0x3109e1)=>{_0x3109e1['options']['showSuggestionHighlights']&&ge(_0x4b40c2,{'showActiveMarker':!0x1})(_0x3c4a0c,_0x26df93,_0x3109e1);}),_0x1101e6['descriptionFactory']['registerElementLabel']('softBreak',_0x1ee677=>o(_0x4b40c2['locale'],'ELEMENT_LINE_BREAK',_0x1ee677));}}function ge(_0x5398a6,{showActiveMarker:_0x15b423=!0x0}={}){return(_0x9b6a6,_0x2a8934,_0x4c0025)=>{const _0x434d0b=_0x5398a6['plugins']['get']('TrackChangesEditing');if(!_0x4c0025['consumable']['test'](_0x2a8934['markerRange'],_0x9b6a6['name']))return;const _0x2c8589=_0x5398a6['model'];for(const _0x50c827 of _0x2a8934['markerRange']['getItems']()){if(!_0x50c827['is']('element','softBreak'))continue;const _0xd4f8ce='deletion'==_0x2a8934['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1fcc79}=_0x434d0b['_splitMarkerName'](_0x2a8934['markerName']),_0xb4f876=_0x4c0025['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd4f8ce,'data-author-id':_0x1fcc79}),_0x1927a0=_0x4c0025['mapper']['toViewPosition'](_0x2c8589['createPositionBefore'](_0x50c827));_0x15b423&&_0x434d0b['activeMarkers']['includes'](_0x2a8934['markerName'])&&_0x4c0025['writer']['addClass']('ck-suggestion-marker--active',_0xb4f876),_0x4c0025['writer']['insert'](_0x1927a0,_0xb4f876),_0x4c0025['mapper']['bindElementToMarker'](_0xb4f876,_0x2a8934['markerName']);}};}class St extends _0x48c5b5{['afterInit'](){const _0x3f7007=this['editor'],_0x5f403a=_0x3f7007['model'],_0x4cd0b9=_0x3f7007['locale'];if(!_0x3f7007['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c8f75=_0x3f7007['plugins']['get']('TrackChangesEditing'),_0xcfca33='restrictedEditingException',_0x3c1316=_0x3f7007['commands']['get'](_0xcfca33);_0x5c8f75['enableCommand'](_0xcfca33,(_0x5a425c,_0x126a95={})=>{const _0x15be91=_0x5f403a['document']['selection'];if(_0x15be91['isCollapsed'])return void _0x5a425c(_0x126a95);const _0x5a63e7=void 0x0!==_0x126a95['forceValue']?_0x126a95['forceValue']:!_0x3c1316['value'];_0x5f403a['change'](()=>{const _0x13b9dc=Array['from'](_0x15be91['getRanges']());for(const _0x3dd548 of _0x13b9dc){const _0x41cf87=_0x5a63e7?[_0x3dd548]:io(_0xcfca33,_0x3dd548,_0x5f403a);for(const _0x52ac97 of _0x41cf87)_0x5c8f75['markInlineFormat'](_0x52ac97,{'commandName':_0xcfca33,'commandParams':[{'forceValue':_0x5a63e7}]});}});}),_0x5c8f75['descriptionFactory']['registerDescriptionCallback'](_0x46ee43=>{if('formatBlock'!=_0x46ee43['type']&&'formatInline'!=_0x46ee43['type'])return;const {data:_0x24d09e}=_0x46ee43;return _0x24d09e&&_0x24d09e['commandName']==_0xcfca33?_0x24d09e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cd0b9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4cd0b9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x48c5b5{['afterInit'](){const _0x58d62f=this['editor'];if(!_0x58d62f['plugins']['has']('Style')||!_0x58d62f['plugins']['has']('DataSchema'))return;const _0x1de721=_0x58d62f['plugins']['get']('TrackChangesEditing'),_0x5d3f04=_0x58d62f['locale'],_0x2686e1=_0x58d62f['config']['get']('style')||{},_0x3105df=_0x58d62f['plugins']['get']('GeneralHtmlSupport'),_0x33689c=_0x58d62f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x58d62f['plugins']['get']('DataSchema'),_0x2686e1['definitions']);_0x1de721['enableDefaultAttributesIntegration']('style');const _0x46c0e9=new Set();for(const _0x5bd5bd of _0x33689c['block']){const _0xf6daf2=_0x3105df['getGhsAttributeNameForElement'](_0x5bd5bd['element']);_0x46c0e9['add'](_0xf6daf2);}const _0x5eb84b=new Set();for(const _0x424499 of _0x33689c['inline']){const _0x3b7655=_0x3105df['getGhsAttributeNameForElement'](_0x424499['element']);_0x5eb84b['add'](_0x3b7655);for(const _0x4d3e43 of _0x424499['ghsAttributes'])_0x5eb84b['add'](_0x4d3e43);}for(const _0x52dfb4 of _0x46c0e9)_0x1de721['registerBlockAttribute'](_0x52dfb4),_0x1de721['descriptionFactory']['registerAttributeLabel'](_0x52dfb4,o(_0x5d3f04,'FORMAT_STYLE'));for(const _0xe5b4c of _0x5eb84b)_0x1de721['registerInlineAttribute'](_0xe5b4c),_0x1de721['descriptionFactory']['registerAttributeLabel'](_0xe5b4c,o(_0x5d3f04,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56cd3c=this['editor'],_0x4653f3=_0x56cd3c['locale'];_0x56cd3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281780=>{if('formatBlock'!=_0x281780['type']&&'formatInline'!=_0x281780['type'])return;const {data:_0x2c9ebd}=_0x281780;return _0x2c9ebd&&'style'===_0x2c9ebd['commandName']?_0x2c9ebd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4653f3,'*Set\x20format:*\x20%0',_0x2c9ebd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4653f3,'*Remove\x20format:*\x20%0',_0x2c9ebd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x48c5b5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x14ddc5){super(_0x14ddc5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x45917a=this['editor'],_0x38d832=_0x45917a['model']['document']['selection'];if(!_0x45917a['plugins']['has']('TableEditing'))return;const _0x1b1d0e=_0x45917a['locale'],_0x1f3a21=_0x45917a['plugins']['get']('TrackChangesEditing'),_0x35fb15=_0x45917a['plugins']['get']('TableUtils');_0x1f3a21['descriptionFactory']['registerElementLabel']('table',_0xdd13db=>o(_0x1b1d0e,'ELEMENT_TABLE',_0xdd13db)),this['_setupColumnsRowsFixing'](),_0x1f3a21['enableCommand']('insertTable'),_0x1f3a21['enableCommand']('selectTableRow'),_0x1f3a21['enableCommand']('selectTableColumn');for(const _0x478f09 of['insertTableRowAbove','insertTableRowBelow']){const _0x300def=_0x45917a['commands']['get'](_0x478f09);_0x1f3a21['enableCommand'](_0x478f09,_0x4e7b97=>{_0x45917a['model']['change'](_0x26b8da=>{_0x4e7b97();const _0x13761f='above'===_0x300def['order'],_0x29bcfd=_0x35fb15['getSelectionAffectedTableCells'](_0x38d832),_0x17be03=_0x35fb15['getRowIndexes'](_0x29bcfd),_0x2f7c74=_0x13761f?_0x17be03['first']-0x1:_0x17be03['last']+0x1,_0x1fb664=_0x29bcfd[0x0]['findAncestor']('table'),_0x1888ca=_0x35fb15['createTableWalker'](_0x1fb664,{'startRow':_0x2f7c74,'endRow':_0x2f7c74}),_0xac9877=Array['from'](_0x1888ca)['map'](_0x4d655c=>_0x26b8da['createRangeOn'](_0x4d655c['cell']));_0x1f3a21['markMultiRangeInsertion'](_0xac9877,'tableRow');});});}for(const _0x29e53a of['insertTableColumnLeft','insertTableColumnRight']){const _0x426d3e=_0x45917a['commands']['get'](_0x29e53a);_0x1f3a21['enableCommand'](_0x29e53a,_0x42dab5=>{_0x45917a['model']['change'](_0x2375ac=>{_0x42dab5();const _0x32d2dd='left'===_0x426d3e['order'],_0x1a92d0=_0x35fb15['getSelectionAffectedTableCells'](_0x38d832),_0x573141=_0x35fb15['getColumnIndexes'](_0x1a92d0),_0x31d633=_0x32d2dd?_0x573141['first']-0x1:_0x573141['last']+0x1,_0x113318=_0x1a92d0[0x0]['findAncestor']('table'),_0x13c2e5=_0x35fb15['createTableWalker'](_0x113318,{'startRow':0x0,'column':_0x31d633,'includeAllSlots':!0x1}),_0x5838be=Array['from'](_0x13c2e5)['map'](_0x569961=>_0x2375ac['createRangeOn'](_0x569961['cell']));_0x1f3a21['markMultiRangeInsertion'](_0x5838be,'tableColumn');});});}for(const _0xd1a36e of['removeTableRow','removeTableColumn']){const _0x12f08d=_0xd1a36e['substr'](0xb),_0x5e20a3=_0x12f08d['toLowerCase'](),_0x2027b0=_0x5e20a3['substr'](0x0,0x3)+'span',_0x1dc546='table'+_0x12f08d,_0x2d8f2f='min'+_0x12f08d,_0x2ee91a='max'+_0x12f08d;_0x1f3a21['enableCommand'](_0xd1a36e,()=>{_0x45917a['model']['change'](_0x577405=>{const _0x154158=_0x35fb15['getSelectionAffectedTableCells'](_0x38d832),_0x1e4b35=_0x154158[0x0]['findAncestor']('table');let _0x2948b7;if('removeTableRow'==_0xd1a36e){const _0x11ae07=_0x35fb15['getRowIndexes'](_0x154158);_0x2948b7={'startRow':_0x11ae07['first'],'endRow':_0x11ae07['last'],'includeAllSlots':!0x0};}else{const _0x553582=_0x35fb15['getColumnIndexes'](_0x154158);_0x2948b7={'startColumn':_0x553582['first'],'endColumn':_0x553582['last'],'includeAllSlots':!0x0};}const _0x29c477=_0x35fb15['createTableWalker'](_0x1e4b35,_0x2948b7),_0x5de71a=Array['from'](_0x29c477)['map'](({cell:_0x1c51cc})=>_0x1c51cc),_0x564061=be(_0x5de71a['filter'](_0x213478=>_0x213478['hasAttribute'](_0x2027b0))),_0xacc814=be(_0x5de71a['filter'](_0x219b8f=>!_0x219b8f['hasAttribute'](_0x2027b0)))['map'](_0x4916e7=>_0x577405['createRangeOn'](_0x4916e7)),_0x564825=_0x1f3a21['markMultiRangeDeletion'](_0xacc814,_0x1dc546);if(_0x564825&&('tableRow'==_0x564825['subType']||'tableColumn'==_0x564825['subType'])){const _0x24738c=this['_getSuggestionCoords'](_0x564825);for(const _0x4b2720 of _0x564061){const _0x486427=_0x577405['createRangeOn'](_0x4b2720),_0x2153ca=_0x35fb15['getCellLocation'](_0x4b2720),_0x2ef14a=_0x4b2720['getAttribute'](_0x2027b0)-0x1,_0xaaab49=_0x24738c[_0x2d8f2f],_0x5524b6=_0x24738c[_0x2ee91a];_0xaaab49<=_0x2153ca[_0x5e20a3]&&_0x2153ca[_0x5e20a3]+_0x2ef14a<=_0x5524b6&&_0x564825['addRange'](_0x486427);}}});});}function _0x56dbc6(_0x4dfde6){const _0x3b7fac=Array['from'](_0x38d832['getRanges']())['map'](_0x49b109=>_0x3bc28a['fromRange'](_0x49b109));_0x45917a['model']['change'](_0x4cc871=>{const _0x59d47e=_0x4cc871['batch'];_0x4dfde6=_0x4dfde6['filter'](_0x105efa=>'$graveyard'!=_0x105efa['root']['rootName']),_0x4cc871['setSelection'](_0x4dfde6),_0x45917a['commands']['get']('removeTableRow')['refresh'](),_0x45917a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x45917a['model']['enqueueChange'](()=>{_0x45917a['model']['enqueueChange'](_0x59d47e,_0x415380=>{const _0x2a10d8=_0x3b7fac['filter'](_0x31aad0=>'$graveyard'!=_0x31aad0['root']['rootName']);_0x2a10d8['length']>0x0&&_0x415380['setSelection'](_0x2a10d8);for(const _0x32e7f7 of _0x3b7fac)_0x32e7f7['detach']();});});});}function _0x2538f7(_0x3862dd){_0x45917a['model']['change'](_0x10ee17=>{const _0x573fba=Array['from'](_0x38d832['getRanges']())['map'](_0x477ff1=>_0x3bc28a['fromRange'](_0x477ff1)),_0x42899f=[];for(const _0x2debe5 of _0x3862dd)for(const _0x138f6b of _0x2debe5['getItems']({'shallow':!0x0}))_0x42899f['push'](_0x138f6b);for(const _0x534e1c of _0x42899f)'$graveyard'!=_0x534e1c['root']['rootName']&&(_0x10ee17['setSelection'](_0x10ee17['createPositionAt'](_0x534e1c,0x0)),_0x45917a['commands']['get']('removeTableColumn')['refresh'](),_0x45917a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4ea123=_0x573fba['filter'](_0x3ac712=>'$graveyard'!=_0x3ac712['root']['rootName']);_0x4ea123['length']>0x0&&_0x10ee17['setSelection'](_0x4ea123);for(const _0x16175c of _0x573fba)_0x16175c['detach']();});}function _0x591ccf(_0x417a28,_0x1beaa2){return _0x1beaa2['every'](_0x30ae3f=>_0x417a28['some'](_0x31a593=>_0x31a593['end']['isEqual'](_0x30ae3f['start'])||_0x30ae3f['end']['isEqual'](_0x31a593['start'])));}function _0x5780d7(_0x3aa85c,_0x1ca354){return!_0x3aa85c['some'](_0x3240ea=>_0x1ca354['some'](_0x1aec19=>_0x3240ea['isIntersecting'](_0x1aec19)))&&_0x3aa85c['some'](_0x1e6dbe=>_0x1ca354['some'](_0x596d6d=>_0x1e6dbe['end']['isTouching'](_0x596d6d['start'])));}_0x45917a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x493dc9,_0x18fd74,_0x4e6925)=>{if(!_0x4e6925['options']['showSuggestionHighlights'])return;const _0x170d13=_0x18fd74['item'];if(!_0x170d13)return;const _0x37c055=_0x4e6925['mapper']['toViewElement'](_0x170d13);function _0x30465d(_0x414607){return Array['isArray'](_0x414607)?_0x414607:[_0x414607];}_0x37c055&&'tableCell'===_0x170d13['name']&&_0x4ed66a(_0x37c055,_0x4e6925['writer'],(_0x44c29f,_0x50f40,_0x2bc36f)=>_0x2bc36f['addClass'](_0x30465d(_0x50f40['classes']),_0x44c29f),(_0x1179b4,_0x476891,_0x4238a8)=>_0x4238a8['removeClass'](_0x30465d(_0x476891['classes']),_0x1179b4));},{'priority':'highest'}),_0x1f3a21['descriptionFactory']['registerDescriptionCallback'](_0x4036a3=>{if('insertion'!=_0x4036a3['type']&&'deletion'!=_0x4036a3['type'])return;const _0x86c255=_0x4036a3['getContainedElement']();if(null!=_0x86c255&&_0x86c255['is']('element','table')){if('insertion'==_0x4036a3['type']){const _0x26d272=_0x4036a3['getItems']()['filter'](_0x375124=>_0x375124['is']('$textProxy'))['map'](_0x3e3632=>_0x3e3632['data']);if(_0x26d272['length'])return{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x26d272['join']('\x20')+'\x22'))};}if('deletion'==_0x4036a3['type']){const _0x532a55=_0x4036a3['getItems']()['filter'](_0x313ac1=>_0x313ac1['is']('$textProxy'))['map'](_0xa54483=>_0xa54483['data']);if(_0x532a55['length'])return{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x532a55['join']('\x20')+'\x22'))};}}}),_0x1f3a21['descriptionFactory']['registerDescriptionCallback'](_0x3f40ce=>{if('tableRow'==_0x3f40ce['subType']){const _0x44cfea=_0x3f40ce['getItems']()['filter'](_0x2b1691=>_0x2b1691['is']('$textProxy'))['map'](_0x22267d=>_0x22267d['data']),_0x545c8d=this['_getSuggestionCoords'](_0x3f40ce),_0x169558=_0x545c8d['maxRow']-_0x545c8d['minRow']+0x1;if('insertion'==_0x3f40ce['type'])return _0x44cfea['length']?{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x169558,'\x22'+_0x44cfea['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW',_0x169558))};if('deletion'==_0x3f40ce['type'])return _0x44cfea['length']?{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x169558,'\x22'+_0x44cfea['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW',_0x169558))};}if('tableColumn'==_0x3f40ce['subType']){const _0x4497ef=_0x3f40ce['getItems']()['filter'](_0x3f8d2c=>_0x3f8d2c['is']('$textProxy'))['map'](_0x542415=>_0x542415['data']),_0x4bcaad=this['_getSuggestionCoords'](_0x3f40ce),_0x58d66c=_0x4bcaad['maxColumn']-_0x4bcaad['minColumn']+0x1;if('insertion'==_0x3f40ce['type'])return _0x4497ef['length']?{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58d66c,'\x22'+_0x4497ef['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN',_0x58d66c))};if('deletion'==_0x3f40ce['type'])return _0x4497ef['length']?{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58d66c,'\x22'+_0x4497ef['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN',_0x58d66c))};}}),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x56dbc6),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x56dbc6),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2538f7),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2538f7),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x591ccf),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x591ccf),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5780d7),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5780d7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x14366f=this['editor'],_0x18f71b=_0x14366f['model']['document']['selection'];return(_0x2f521c,_0xb6d877)=>{_0x14366f['model']['change'](_0x521394=>{const {commandName:_0x309e2d,commandParams:_0x34eb19}=_0xb6d877;let _0x32758d=_0x2f521c[0x0]['end']['nodeBefore'];_0x34eb19&&_0x34eb19[0x0]&&!0x1===_0x34eb19[0x0]['forceValue']&&(_0x32758d=_0x2f521c[0x0]['start']['nodeAfter']);const _0x4c4d6e=_0x521394['createRangeIn'](_0x32758d);if('$graveyard'==_0x4c4d6e['root']['rootName'])return;const _0x2672ec=Array['from'](_0x18f71b['getRanges']())['map'](_0x3e1dbe=>_0x3bc28a['fromRange'](_0x3e1dbe));_0x521394['setSelection'](_0x4c4d6e),_0x14366f['commands']['get'](_0x309e2d)['refresh'](),_0x34eb19['push']({'forceDefaultExecution':!0x0}),_0x14366f['execute'](_0x309e2d,..._0x34eb19);const _0x505347=_0x2672ec['filter'](_0x12c22f=>'$graveyard'!=_0x12c22f['root']['rootName']);_0x505347['length']>0x0&&_0x521394['setSelection'](_0x505347);for(const _0x19317f of _0x2672ec)_0x19317f['detach']();});};}['_getCoordsForCells'](_0x386d60){const _0x41b0b3=this['editor']['plugins']['get']('TableUtils');let _0x56cc6c=Number['MAX_SAFE_INTEGER'],_0x94dc72=Number['MIN_SAFE_INTEGER'],_0x56d7cb=Number['MAX_SAFE_INTEGER'],_0x35b467=Number['MIN_SAFE_INTEGER'];for(const _0x80a0c6 of _0x386d60){if('$graveyard'==_0x80a0c6['root']['rootName'])continue;const {row:_0x312a35,column:_0x2f81f9}=_0x41b0b3['getCellLocation'](_0x80a0c6),_0x50d779=_0x80a0c6['hasAttribute']('rowspan')?_0x80a0c6['getAttribute']('rowspan')-0x1:0x0,_0x385dd2=_0x80a0c6['hasAttribute']('colspan')?_0x80a0c6['getAttribute']('colspan')-0x1:0x0;_0x56cc6c=_0x312a35<_0x56cc6c?_0x312a35:_0x56cc6c,_0x94dc72=_0x312a35+_0x50d779>_0x94dc72?_0x312a35+_0x50d779:_0x94dc72,_0x56d7cb=_0x2f81f9<_0x56d7cb?_0x2f81f9:_0x56d7cb,_0x35b467=_0x2f81f9+_0x385dd2>_0x35b467?_0x2f81f9+_0x385dd2:_0x35b467;}return{'minRow':_0x56cc6c,'maxRow':_0x94dc72,'minColumn':_0x56d7cb,'maxColumn':_0x35b467};}['_setupColumnsRowsFixing'](){const _0x312ab3=this['editor'],_0x20947a=_0x312ab3['plugins']['get']('TrackChangesEditing'),_0xad62a1=_0x312ab3['plugins']['get']('TableUtils');_0x312ab3['model']['document']['on']('change:data',()=>{const _0x3617d6=Array['from'](_0x312ab3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b1910,data:_0x2f2e42}of _0x3617d6){const {group:_0x2a190a,id:_0x1a4c88,subType:_0x333b16}=_0x20947a['_splitMarkerName'](_0x5b1910);if('suggestion'!=_0x2a190a)continue;if(null!=_0x2f2e42['oldRange'])continue;const _0xf5da31=_0x20947a['getSuggestion'](_0x1a4c88);this['_tablePostFixingSubtypes']['includes'](_0x333b16)&&this['_tableSuggestions']['add'](_0xf5da31);}},{'priority':'low'});const _0x42b1ff=(_0xe3e0b9,_0x4096d3)=>{let _0x114609=!0x1;const _0x566462=_0x4096d3['createRangeOn'](_0xe3e0b9),_0x22a481=_0xe3e0b9['findAncestor']('table'),_0x5a0057=_0xad62a1['getCellLocation'](_0xe3e0b9);for(const _0x29b9e1 of this['_tableSuggestions']){const _0x9469ab=_0x29b9e1['subType'],_0x439e2c=_0x9469ab['startsWith']('tablePaste'),_0x7cd42=_0x9469ab['substr'](_0x439e2c?0xa:0x5),_0x4271f6=_0x7cd42['toLowerCase'](),_0x23dba3=_0x4271f6['substr'](0x0,0x3)+'span',_0x19e2fd='min'+_0x7cd42,_0x52a0fb='max'+_0x7cd42;if(!_0x29b9e1['isInContent'])continue;if(_0x22a481!=_0x29b9e1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x29b9e1['isIntersectingWithRange'](_0x566462))continue;const _0x148b73=_0xe3e0b9['hasAttribute'](_0x23dba3)?_0xe3e0b9['getAttribute'](_0x23dba3)-0x1:0x0,_0x506c2c=this['_getSuggestionCoords'](_0x29b9e1),_0x1f8303=_0x506c2c[_0x19e2fd],_0x9d0e91=_0x506c2c[_0x52a0fb];_0x1f8303<=_0x5a0057[_0x4271f6]&&_0x5a0057[_0x4271f6]+_0x148b73<=_0x9d0e91&&(_0x29b9e1['addRange'](_0x566462),_0x114609=!0x0);}return _0x114609;};_0x312ab3['model']['document']['registerPostFixer'](_0x200f32=>{let _0x27cf63=!0x1;for(const _0x31a7a3 of _0x312ab3['model']['document']['differ']['getChanges']())if('insert'==_0x31a7a3['type']){if('tableRow'==_0x31a7a3['name']){for(const _0x45cfad of _0x31a7a3['position']['nodeAfter']['getChildren']())_0x27cf63=_0x27cf63||_0x42b1ff(_0x45cfad,_0x200f32);}else'tableCell'==_0x31a7a3['name']&&(_0x27cf63=_0x27cf63||_0x42b1ff(_0x31a7a3['position']['nodeAfter'],_0x200f32));}return _0x27cf63;});}['_getSuggestionCoords'](_0x12e506){return this['_getCoordsForCells'](_0x12e506['getRanges']()['map'](_0x4ab8cb=>_0x4ab8cb['start']['nodeAfter']));}}function be(_0x15c851){return Array['from'](new Set(_0x15c851)['values']());}class vt extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x42d94f=this['editor'],_0x34be34=_0x42d94f['model']['document']['selection'],_0x4f5afa=_0x42d94f['locale'];if(!_0x42d94f['plugins']['has']('TableEditing'))return;const _0x16652f=_0x42d94f['plugins']['get']('TrackChangesEditing'),_0x584ce1=_0x42d94f['plugins']['get']('TableUtils'),_0x2deddf=_0x42d94f['plugins']['get'](It);_0x2deddf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x16652f['enableCommand']('mergeTableCells',()=>{const _0x57376c=_0x584ce1['getSelectionAffectedTableCells'](_0x42d94f['model']['document']['selection']);_0x42d94f['model']['change'](()=>{_0x16652f['markMultiRangeBlockFormat'](_0x57376c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x42d94f['commands']['get']('mergeTableCells')['on']('execute',(_0x52c52b,_0x58684)=>{_0x42d94f['commands']['get']('trackChanges')['value']&&(_0x58684['length']>0x0&&_0x58684[_0x58684['length']-0x1]&&_0x58684[_0x58684['length']-0x1]['forceDefaultExecution']||_0x16652f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x52c52b['stop']());},{'priority':'highest'});for(const _0x5b6b5d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3587d2=_0x42d94f['commands']['get'](_0x5b6b5d);_0x16652f['enableCommand'](_0x5b6b5d,()=>{const _0x4e7ef5=_0x42d94f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13d8ab=>_0x13d8ab['is']('element','tableCell')),_0x117e05=_0x3587d2['value'];_0x42d94f['model']['change'](()=>{_0x16652f['markMultiRangeBlockFormat']([_0x4e7ef5,_0x117e05],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x9fc505 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x28878b=_0x42d94f['commands']['get'](_0x9fc505);_0x16652f['enableCommand'](_0x9fc505,()=>{const _0xec74ea=_0x584ce1['getSelectionAffectedTableCells'](_0x42d94f['model']['document']['selection'])[0x0],_0xb9a8c8=_0xec74ea['findAncestor']('table'),{column:_0x57a140,row:_0x1f6ec6}=_0x584ce1['getCellLocation'](_0xec74ea);let _0x596ffb=[];if('horizontally'==_0x28878b['direction']){const _0x53bc38=_0x584ce1['createTableWalker'](_0xb9a8c8,{'startRow':_0x1f6ec6,'endRow':_0x1f6ec6,'includeAllSlots':!0x0});_0x596ffb=Array['from'](_0x53bc38)['map'](_0x2d9ac6=>_0x2d9ac6['cell']);}else{const _0x2910ea=_0x584ce1['createTableWalker'](_0xb9a8c8,{'column':_0x57a140,'includeAllSlots':!0x0});_0x596ffb=Array['from'](_0x2910ea)['map'](_0x2e8858=>_0x2e8858['cell']);}_0x42d94f['model']['change'](_0x536303=>{_0x16652f['markBlockFormat'](_0x536303['createRangeOn'](_0xec74ea),{'commandName':_0x9fc505,'commandParams':[]},_0x596ffb,_0x9fc505);});});}_0x16652f['descriptionFactory']['registerDescriptionCallback'](_0x3c1030=>{if('formatBlock'!=_0x3c1030['type']&&'formatInline'!=_0x3c1030['type'])return;const {data:_0x3b8476}=_0x3c1030;return _0x3b8476&&'mergeTableCells'==_0x3b8476['commandName']?{'type':'format','content':o(_0x4f5afa,'*Merge\x20cells*')}:void 0x0;}),_0x16652f['descriptionFactory']['registerDescriptionCallback'](_0x31a8f7=>{if('formatBlock'!=_0x31a8f7['type']&&'formatInline'!=_0x31a8f7['type'])return;const {data:_0x2571b7}=_0x31a8f7;return _0x2571b7?'splitTableCellVertically'==_0x2571b7['commandName']?{'type':'format','content':o(_0x4f5afa,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2571b7['commandName']?{'type':'format','content':o(_0x4f5afa,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x504006=_0x2deddf['_acceptFormatSuggestionCallbackFactory']();for(const _0x5e60e7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x16652f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e60e7,'accept',_0x504006);for(const _0x3595de of['splitTableCellVertically','splitTableCellHorizontally'])_0x16652f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3595de,'accept',_0x504006);_0x16652f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xff0d12=>{_0x42d94f['model']['change'](_0x586287=>{const _0x189a5a=Array['from'](_0x34be34['getRanges']())['map'](_0x54b62d=>_0x3bc28a['fromRange'](_0x54b62d));_0x586287['setSelection'](_0xff0d12),_0x42d94f['commands']['get']('mergeTableCells')['refresh'](),_0x42d94f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3e5dcf=_0x189a5a['filter'](_0x1e0578=>'$graveyard'!=_0x1e0578['root']['rootName']);_0x3e5dcf['length']>0x0&&_0x586287['setSelection'](_0x3e5dcf);for(const _0x5be302 of _0x189a5a)_0x5be302['detach']();});});for(const _0x5a2850 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5d882c=_0x42d94f['commands']['get'](_0x5a2850);_0x5d882c['on']('set:isEnabled',(_0x43c9b8,_0x4955bc,_0x2c5f95)=>{if(_0x2c5f95){const _0x156e93=_0x42d94f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x11b312=>_0x11b312['is']('element','tableCell'));this['_areMergableCells'](_0x5d882c['value'],_0x156e93)||(_0x43c9b8['return']=!0x1,_0x43c9b8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x422b25=this['editor']['commands']['get']('mergeTableCells'),_0x5ca83e=this['editor']['plugins']['get']('TableUtils');if(!_0x422b25['isEnabled'])return!0x1;const _0x430b48=_0x5ca83e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x21844e of _0x430b48)for(const _0x5783cf of _0x430b48)if(_0x21844e!=_0x5783cf&&!this['_areMergableCells'](_0x21844e,_0x5783cf))return!0x1;return!0x0;}['_areMergableCells'](_0x101d98,_0x4bc7b2){const _0x1dfb7b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3686ce=this['editor']['model']['createRangeOn'](_0x101d98),_0xc0a89a=this['editor']['model']['createRangeOn'](_0x4bc7b2),_0x125caf=new Set(),_0x3fbe46=new Set();for(const _0x2a1a46 of _0x1dfb7b['getSuggestions']())if(('insertion'==_0x2a1a46['type']||'deletion'==_0x2a1a46['type']||'mergeTableCells'==_0x2a1a46['subType'])&&_0x2a1a46['isInContent']){for(const _0x5469d7 of _0x2a1a46['getRanges']())_0x5469d7['containsRange'](_0x3686ce,!0x0)&&_0x125caf['add'](_0x2a1a46['type']+':'+_0x2a1a46['author']['id']),_0x5469d7['containsRange'](_0xc0a89a,!0x0)&&_0x3fbe46['add'](_0x2a1a46['type']+':'+_0x2a1a46['author']['id']);}if(_0x125caf['size']!=_0x3fbe46['size'])return!0x1;for(const _0x371027 of _0x125caf)if(!_0x3fbe46['has'](_0x371027))return!0x1;return!0x0;}}class Ct extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x194f8c=this['editor'];if(!_0x194f8c['plugins']['has']('TableEditing'))return;const _0x5ed19b=_0x194f8c['locale'],_0x137a39=_0x194f8c['plugins']['get']('TrackChangesEditing');_0x137a39['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x137a39['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x137a39['registerBlockAttribute']('headingRows'),_0x137a39['registerBlockAttribute']('headingColumns'),_0x137a39['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5ed19b,'FORMAT_HEADER_ROW')),_0x137a39['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5ed19b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x27a947=this['editor']['plugins']['get']('TrackChangesEditing'),_0x476398=this['editor']['plugins']['get']('TableUtils'),_0x236ddd=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x451b9d({showActiveMarker:_0x46e84c=!0x0,setDataAttribute:_0x2a15af=!0x0}={}){return(_0x416665,_0x1129a8,_0x12f293)=>{const {type:_0x3f90bd,id:_0x497eee}=_0x27a947['_splitMarkerName'](_0x1129a8['markerName']),_0x474396=_0x27a947['getSuggestion'](_0x497eee),_0x594977=_0x474396['data'];if('formatBlock'!=_0x474396['type']||!_0x594977||'setTableColumnHeader'!=_0x594977['commandName'])return;if(_0x1129a8['item'])return void _0x416665['stop']();if(!_0x12f293['consumable']['consume'](_0x1129a8['markerRange'],_0x416665['name']))return;const _0x45e06b=_0x1129a8['markerRange']['start']['nodeAfter'],_0xf0464b=_0x1129a8['markerRange']['end']['nodeBefore'],_0x3b9d8e=_0x45e06b['parent']['parent'],{column:_0x104f1b}=_0x476398['getCellLocation'](_0x45e06b),{column:_0x86f2a6}=_0x476398['getCellLocation'](_0xf0464b);for(let _0x3ff5fe=_0x104f1b;_0x3ff5fe<=_0x86f2a6;_0x3ff5fe++){const _0x2f6988=_0x476398['createTableWalker'](_0x3b9d8e,{'column':_0x3ff5fe,'includeAllSlots':!0x1});for(const _0x433485 of _0x2f6988){const _0x1e613d=_0x433485['cell'],_0x1abfc4=_0x12f293['mapper']['toViewElement'](_0x1e613d);_0x12f293['writer']['addClass']('ck-suggestion-marker-'+_0x3f90bd,_0x1abfc4),_0x2a15af&&_0x12f293['writer']['setAttribute']('data-suggestion',_0x497eee,_0x1abfc4),_0x12f293['mapper']['bindElementToMarker'](_0x1abfc4,_0x1129a8['markerName']),_0x46e84c&&(_0x27a947['activeMarkers']['includes'](_0x1129a8['markerName'])?_0x12f293['writer']['addClass']('ck-suggestion-marker--active',_0x1abfc4):_0x12f293['writer']['removeClass']('ck-suggestion-marker--active',_0x1abfc4));}}};}_0x27a947['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x236ddd),_0x27a947['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x236ddd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x451b9d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1ce7c2,_0x214a3b,_0x5da2b0)=>{_0x5da2b0['options']['showSuggestionHighlights']&&_0x451b9d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1ce7c2,_0x214a3b,_0x5da2b0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3592c1,_0x1d7e56,_0x3b8426)=>{const {type:_0x2bc34e,id:_0x460757}=_0x27a947['_splitMarkerName'](_0x1d7e56['markerName']),_0x9f0bf5=_0x27a947['getSuggestion'](_0x460757),_0x434707=_0x9f0bf5['data'];if('formatBlock'!=_0x9f0bf5['type']||!_0x434707||'setTableColumnHeader'!=_0x434707['commandName'])return;const _0x33929a=_0x3b8426['mapper']['markerNameToElements'](_0x1d7e56['markerName']);if(_0x33929a){for(const _0x1b9e10 of _0x33929a)_0x3b8426['writer']['removeClass']('ck-suggestion-marker-'+_0x2bc34e,_0x1b9e10),_0x3b8426['writer']['removeClass']('ck-suggestion-marker--active',_0x1b9e10),_0x3b8426['writer']['removeAttribute']('data-suggestion',_0x1b9e10),_0x3b8426['mapper']['unbindElementFromMarkerName'](_0x1b9e10,_0x1d7e56['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2269f8=this['editor'],_0x175328=_0x2269f8['locale'];function _0x4e8272(_0x24be00){return{'type':'format','content':o(_0x175328,'*Format:*\x20%0',_0x24be00)};}_0x2269f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a4069=>{if('formatBlock'!=_0x5a4069['type'])return;const {data:_0x1a5db8}=_0x5a4069;if(_0x1a5db8){if('setTableRowHeader'==_0x1a5db8['commandName']){const _0x59f84=_0x1a5db8['commandParams'][0x0]['forceValue'];return _0x4e8272(o(_0x175328,_0x59f84?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1a5db8['commandName']){const _0x3a283a=_0x1a5db8['commandParams'][0x0]['forceValue'];return _0x4e8272(o(_0x175328,_0x3a283a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x28b441=>[_0x28b441,null]));class _t extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x4bc24e=this['editor'];if(!_0x4bc24e['plugins']['has']('TableClipboard'))return;const _0x7c24dd=_0x4bc24e['plugins']['get']('TrackChangesEditing'),_0x3dafb5=_0x4bc24e['plugins']['get']('TableUtils'),_0x4dbd4e=_0x4bc24e['plugins']['get'](It),_0x76dc5c=_0x4bc24e['plugins']['get']('TableClipboard');_0x4dbd4e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4bc24e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4bc24e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2827c7=null;_0x4bc24e['model']['on']('insertContent',(_0x5bdf37,_0xedaaa5)=>{const [_0x11ebaa,_0x52a4b9]=_0xedaaa5,_0x288b7d=_0xedaaa5[_0xedaaa5['length']-0x1];_0x288b7d&&_0x288b7d['forceDefaultExecution']||_0x7c24dd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xa39e75,_0x2a17dc,_0x33c1c1,_0xf12567,_0x1c2135){if(_0x2a17dc&&!_0x2a17dc['is']('documentSelection'))return!0x1;const _0x53fa53=_0x1c2135['getTableIfOnlyTableInContent'](_0xa39e75,_0x33c1c1);if(!_0x53fa53||!Re(_0x53fa53,void 0x0,_0xf12567))return!0x1;const _0x243068=_0xf12567['getSelectionAffectedTableCells'](_0x33c1c1['document']['selection']);if(!_0x243068['length'])return!0x1;const _0x63315=_0x243068[0x0]['findAncestor']('table'),_0x3da1dc=_0xf12567['getRowIndexes'](_0x243068),_0x1f2eed=_0xf12567['getColumnIndexes'](_0x243068),_0x2fe1cc={'startRow':_0x3da1dc['first'],'endRow':_0x3da1dc['last'],'startColumn':_0x1f2eed['first'],'endColumn':_0x1f2eed['last']};return 0x1==_0x243068['length']&&(_0x2fe1cc['endRow']+=_0xf12567['getRows'](_0x53fa53)-0x1,_0x2fe1cc['endColumn']+=_0xf12567['getColumns'](_0x53fa53)-0x1),Re(_0x63315,_0x2fe1cc,_0xf12567);}(_0x11ebaa,_0x52a4b9,_0x4bc24e['model'],_0x3dafb5,_0x76dc5c)&&(_0x5bdf37['stop'](),_0x2827c7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4bc24e['model']['change'](()=>{_0x4bc24e['model']['insertContent'](_0xedaaa5[0x0],_0xedaaa5[0x1],_0xedaaa5[0x2],{'forceDefaultExecution':!0x0});const _0x5663ad=_0x5790ee(),{rowInsertionRanges:_0x2669df,columnInsertionRanges:_0x1c7ba3,insertionRanges:_0x2321f5,deletionRanges:_0x222067,cells:_0x2e9415}=_0x2827c7;_0x2669df['length']&&_0x7c24dd['markMultiRangeInsertion'](_0x2669df,'tablePasteRow',{'tablePasteChainId':_0x5663ad}),_0x1c7ba3['length']&&_0x7c24dd['markMultiRangeInsertion'](_0x1c7ba3,'tablePasteColumn',{'tablePasteChainId':_0x5663ad}),_0x2321f5['length']&&(_0x7c24dd['markMultiRangeInsertion'](_0x2321f5,'tablePaste',{'tablePasteChainId':_0x5663ad,'skipNestingCheck':!0x0}),_0x2321f5['forEach'](_0x3dcda2=>_0x3dcda2['detach']?.())),_0x222067['length']&&(_0x7c24dd['markMultiRangeDeletion'](_0x222067,'tablePaste',{'tablePasteChainId':_0x5663ad,'skipNestingCheck':!0x0}),_0x222067['forEach'](_0x136fe7=>_0x136fe7['detach']?.()));const _0x4bf971=_0x7c24dd['markMultiRangeBlockFormat'](_0x2e9415['map'](({element:_0xc07f29})=>_0xc07f29),{'formatGroupId':_0x5790ee()},[],'tablePasteCell',{'tablePasteChainId':_0x5663ad});if(_0x4bf971){const _0x4c510f=_0x4bf971['getMarkers'](),_0x469026=[];for(const {element:_0x2ba93c,attributes:_0x517655}of _0x2e9415){if(!_0x517655)continue;const _0x351068=_0x4bc24e['model']['createRangeOn'](_0x2ba93c),_0x1af9b1=_0x4c510f['find'](_0x294609=>_0x294609['getRange']()['isEqual'](_0x351068));_0x1af9b1&&_0x469026['push']([_0x1af9b1['name'],_0x517655]);}_0x469026['length']&&_0x4bf971['setAttribute']('markerAttributes',Object['fromEntries'](_0x469026));}_0x2827c7=null;}));},{'priority':_0x3ff64e['high']+0xa}),_0x4bc24e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xa97bf,_0x5d7414)=>{const [_0x4ea10c,_0x2aad33,,_0x573312]=_0x5d7414;if(!_0x2827c7)return;_0xa97bf['stop']();const _0x35cbc7=_0x4ea10c['cell'],_0x4472d7=_0x2aad33,_0xcb3d95=ke(_0x35cbc7),_0x46a5e9=ke(_0x4472d7);_0xa97bf['return']=_0x35cbc7;let _0x10c4b2=null,_0x238952=null;if(_0x46a5e9||_0xcb3d95){if(_0xcb3d95&&!_0x46a5e9){_0x573312['remove'](_0x35cbc7['getChild'](0x0));for(const _0x7b000a of Array['from'](_0x4472d7['getChildren']()))_0x573312['insert'](_0x7b000a,_0x35cbc7,'end');const _0x518f2b=_0x2827c7['rowInsertionIndexes']['includes'](_0x4ea10c['row']),_0x304d41=_0x2827c7['columnInsertionIndexes']['includes'](_0x4ea10c['column']);_0x518f2b||_0x304d41||(_0x10c4b2=_0x3bc28a['fromRange'](_0x573312['createRangeIn'](_0x35cbc7)));}else _0x46a5e9&&!_0xcb3d95&&(_0x238952=_0x573312['createRangeIn'](_0x35cbc7));}else{const _0x898933=_0x573312['createElement']('tableCellSuggestion'),_0x1f77fc=_0x573312['createElement']('tableCellSuggestion');_0x573312['wrap'](_0x573312['createRangeIn'](_0x35cbc7),_0x1f77fc),_0x573312['insert'](_0x898933,_0x35cbc7,0x0);for(const _0x5582e0 of Array['from'](_0x4472d7['getChildren']()))_0x573312['insert'](_0x5582e0,_0x898933,'end');_0x10c4b2=_0x3bc28a['fromRange'](_0x573312['createRangeOn'](_0x898933)),_0x238952=_0x3bc28a['fromRange'](_0x573312['createRangeOn'](_0x1f77fc));}const _0x417274=Array['from'](_0x4472d7['getAttributes']())['filter'](([_0x43fb50])=>Pe['includes'](_0x43fb50));_0x2827c7['cells']['push']({'element':_0x35cbc7,'attributes':_0x417274['length']?Object['fromEntries'](_0x417274):null}),_0x10c4b2&&_0x2827c7['insertionRanges']['push'](_0x10c4b2),_0x238952&&_0x2827c7['deletionRanges']['push'](_0x238952);},{'priority':'high'}),_0x3dafb5['on']('insertColumns',(_0x50d90d,_0x50d8eb)=>{const [_0x5d6800,_0x4556d1={}]=_0x50d8eb;if(!_0x2827c7)return;const _0x304f9e=_0x4556d1['at']||0x0,_0x51b3fa=_0x4556d1['columns']||0x1;_0x2827c7['columnInsertionIndexes']=new Array(_0x51b3fa)['fill'](_0x304f9e)['map']((_0x4d80f4,_0x911b9d)=>_0x4d80f4+_0x911b9d);for(const {cell:_0xa0ae12}of _0x3dafb5['createTableWalker'](_0x5d6800,{'startColumn':_0x304f9e,'endColumn':_0x304f9e+_0x51b3fa-0x1}))_0x2827c7['columnInsertionRanges']['push'](_0x4bc24e['model']['createRangeOn'](_0xa0ae12));},{'priority':'low'}),_0x3dafb5['on']('insertRows',(_0xd37815,_0x53225c)=>{const [_0x5f4910,_0x47dd68={}]=_0x53225c;if(!_0x2827c7)return;const _0x2148dd=_0x47dd68['at']||0x0,_0x2912fa=_0x47dd68['rows']||0x1;_0x2827c7['rowInsertionIndexes']=new Array(_0x2912fa)['fill'](_0x2148dd)['map']((_0x552894,_0x3b438b)=>_0x552894+_0x3b438b);for(const {cell:_0x9ea16b}of _0x3dafb5['createTableWalker'](_0x5f4910,{'startRow':_0x2148dd,'endRow':_0x2148dd+_0x2912fa-0x1}))_0x2827c7['rowInsertionRanges']['push'](_0x4bc24e['model']['createRangeOn'](_0x9ea16b));},{'priority':'low'}),_0x7c24dd['descriptionFactory']['registerDescriptionCallback'](_0x2a2132=>{if(_0x2a2132['subType']&&_0x2a2132['subType']['startsWith']('tablePaste'))return _0x2a2132['previous']?{}:{'type':'insertion','content':o(_0x4bc24e['locale'],'*Replace\x20table\x20cells*')};});const _0x5a761f=()=>!0x1;for(const _0xd1a4f2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7c24dd['_suggestionFactory']['registerCustomCallback']('insertion',_0xd1a4f2,'join',_0x5a761f),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('deletion',_0xd1a4f2,'join',_0x5a761f),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd1a4f2,'join',_0x5a761f);_0x7c24dd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5a761f),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x37dd4e,_0x476bac,_0x1cb1fa)=>{const _0x5bb305=_0x37dd4e['map'](_0x429316=>_0x429316['getContainedElement']())['filter'](_0x515776=>_0x515776),_0xa194d0=new Map(_0x5bb305['map'](_0x2ccc77=>[_0x2ccc77,null]));if(_0x2827c7){for(const {element:_0x4702f4,attributes:_0x246d6a}of _0x2827c7['cells'])_0x246d6a&&_0xa194d0['set'](_0x4702f4,_0x246d6a);}else{if(_0x1cb1fa&&_0x1cb1fa['markerAttributes'])for(const [_0x5ebb6e,_0x56c3d7]of Object['entries'](_0x1cb1fa['markerAttributes'])){const _0x33899d=_0x4bc24e['model']['markers']['get'](_0x5ebb6e),_0x321d69=_0x33899d?_0x33899d['getRange']()['getContainedElement']():null;_0x321d69&&_0xa194d0['set'](_0x321d69,_0x56c3d7);}}_0x4bc24e['model']['change'](_0x41c790=>{for(const [_0x44dcd8,_0x52e921]of _0xa194d0)_0x41c790['setAttributes']({...we,..._0x52e921},_0x44dcd8);});});const _0x7984d7=(_0x3e3511,_0x2a8689)=>{_0x7c24dd['_suggestionFactory']['registerCustomCallback'](_0x3e3511,'tablePaste',_0x2a8689,(_0x388932,_0x1a913c,_0x1f649b)=>{_0x4bc24e['model']['change'](_0x479c42=>{const _0x411bf3=[];for(const _0x4ad8ca of _0x388932){const _0x42b56a=_0x4ad8ca['start']['nodeAfter'];_0x42b56a['is']('element','tableCellSuggestion')&&_0x411bf3['push'](_0x42b56a);}_0x7c24dd['_suggestionFactory']['getSuggestionCallback'](_0x3e3511,null,_0x2a8689)(_0x388932,_0x1a913c,_0x1f649b);for(const _0x2bb9f2 of _0x411bf3)'$graveyard'!=_0x2bb9f2['root']['rootName']&&_0x479c42['unwrap'](_0x2bb9f2);});});};_0x7984d7('insertion','accept'),_0x7984d7('insertion','discard'),_0x7984d7('deletion','accept'),_0x7984d7('deletion','discard'),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ef5e0=>{const _0x41abaa=_0x1ef5e0['map'](_0x5500d1=>_0x5500d1['getContainedElement']()),_0x407f78=_0x41abaa[0x0]['findAncestor']('table'),{minRow:_0x78dd8c,maxRow:_0x44c2f3}=_0x4dbd4e['_getCoordsForCells'](_0x41abaa);_0x3dafb5['removeRows'](_0x407f78,{'at':_0x78dd8c,'rows':_0x44c2f3-_0x78dd8c+0x1});}),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2f088d=>{const _0x1f0b11=_0x2f088d['map'](_0x1742a3=>_0x1742a3['getContainedElement']()),_0x302d8f=_0x1f0b11[0x0]['findAncestor']('table'),{minColumn:_0x417f6f,maxColumn:_0xc8372b}=_0x4dbd4e['_getCoordsForCells'](_0x1f0b11);_0x3dafb5['removeColumns'](_0x302d8f,{'at':_0x417f6f,'columns':_0xc8372b-_0x417f6f+0x1});});const _0x181f61=(_0x31a976,_0xe1ea3a)=>{if(!_0xe1ea3a['subType']||!_0xe1ea3a['subType']['startsWith']('tablePaste'))return;const _0x49a77b=_0xe1ea3a['attributes']['tablePasteChainId'],_0x31ee87=_0x7c24dd['getSuggestions']()['filter'](_0x493113=>_0x493113['isInContent']&&_0x493113['attributes']&&_0x493113['attributes']['tablePasteChainId']==_0x49a77b);_0x31ee87['length']&&_0xe1ea3a['getAllAdjacentSuggestions']()['length']!=_0x31ee87['length']&&_0x31ee87['reduce']((_0x445913,_0x31216f)=>(_0x445913['next']=_0x31216f,_0x31216f['previous']=_0x445913,_0x31216f));};function _0x54640a(_0x1da889,_0x577d9f=!0x0){const {id:_0x3b1e16,authorId:_0x4b35a8}=_0x7c24dd['_splitMarkerName'](_0x1da889['markerName']),_0x40e842=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1dc435=_0x7c24dd['activeMarkers']['includes'](_0x1da889['markerName']);return _0x1dc435&&_0x40e842['push']('ck-suggestion-marker--active'),{'classes':_0x40e842,'attributes':{'data-suggestion':_0x3b1e16,'data-author-id':_0x4b35a8},'priority':_0x1dc435&&_0x577d9f?0xbc2:0xbb8};}_0x7c24dd['on']('suggestionLoaded',_0x181f61,{'priority':'high'}),_0x7c24dd['on']('suggestionUnloaded',_0x181f61,{'priority':'high'}),_0x4bc24e['model']['document']['registerPostFixer'](()=>{let _0x31e6be=!0x1;const _0x1bcc8f=Array['from'](_0x4bc24e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x246e95,data:_0x23c1a1}of _0x1bcc8f){const {group:_0x544991,type:_0xb00fdc,id:_0x57ffca}=_0x7c24dd['_splitMarkerName'](_0x246e95);if('suggestion'!=_0x544991||'deletion'!=_0xb00fdc||_0x23c1a1['oldRange'])continue;if(!_0x7c24dd['hasSuggestion'](_0x57ffca))continue;const _0x27305b=_0x7c24dd['getSuggestion'](_0x57ffca)['getRanges'](),_0x2cce0e=_0x4bc24e['plugins']['get']('Users')['me'];for(const _0x2ad4b2 of _0x7c24dd['getSuggestions']()){if(!_0x2ad4b2['isInContent']||_0x2ad4b2['author']!=_0x2cce0e)continue;if('formatBlock'!=_0x2ad4b2['type']||'tablePasteCell'!=_0x2ad4b2['subType'])continue;if(_0x2ad4b2['getRanges']()['every'](_0x44efe7=>_0x27305b['some'](_0x1dfb10=>_0x1dfb10['containsRange'](_0x44efe7,!0x0)))){for(const _0x2c2c9b of _0x2ad4b2['getAllAdjacentSuggestions']())_0x2c2c9b['isInContent']&&(_0x2c2c9b['discard'](),_0x31e6be=!0x0);}}}return _0x31e6be;}),_0x4bc24e['model']['document']['registerPostFixer'](_0xea12f0=>{const _0x371434=_0x4bc24e['commands']['get']('redo');if(!_0x371434||!_0x371434['_createdBatches']['has'](_0xea12f0['batch']))return!0x1;let _0x15616a=!0x1;const _0x15327a=_0x4bc24e['plugins']['get']('Users')['me'],_0x15ad41=_0x4bc24e['model']['document']['differ']['getChanges'](),_0x328d96=Array['from'](_0x4bc24e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x475dfb,data:_0x5507c8})=>{const {group:_0x93f67d,subType:_0x143c51,authorId:_0x32e0b5}=_0x7c24dd['_splitMarkerName'](_0x475dfb);return'suggestion'==_0x93f67d&&'tablePaste'==_0x143c51&&_0x32e0b5==_0x15327a['id']&&!_0x5507c8['oldRange'];});for(const _0x2c2a25 of _0x15ad41){if('insert'!=_0x2c2a25['type']||'tableCellSuggestion'!=_0x2c2a25['name']||0x1!=_0x2c2a25['length'])continue;const _0x3bc476=_0xea12f0['createRange'](_0x2c2a25['position'],_0x2c2a25['position']['getShiftedBy'](0x1));if(!_0x328d96['find'](({data:_0x2ba416})=>_0x2ba416['newRange']['isEqual'](_0x3bc476))){for(const {name:_0x35f43a,data:_0x3f7a7e}of _0x328d96)if(_0x3bc476['containsRange'](_0x3f7a7e['newRange'])){_0xea12f0['updateMarker'](_0x35f43a,{'range':_0x3bc476}),_0x15616a=!0x0;break;}}}return _0x15616a;}),_0x4bc24e['model']['document']['registerPostFixer'](_0x4c7eea=>{let _0x4904bd=!0x1;const _0x189ef9=_0x4bc24e['plugins']['get']('Users')['me'],_0x5d18c3=_0x7c24dd['getSuggestions']()['filter'](_0x426a77=>_0x426a77['isInContent']&&_0x426a77['author']==_0x189ef9),_0x38f94f=new Set(),_0x47aa6b=new Set();for(const _0x23f22e of _0x5d18c3)if('tablePaste'==_0x23f22e['subType'])for(const _0x13393c of _0x23f22e['getMarkers']()){const _0x25879f=_0x13393c['getRange']()['getContainedElement']();if(_0x25879f){if(_0x25879f['is']('element','tableCellSuggestion')&&ke(_0x25879f)){_0x23f22e['removeMarker'](_0x13393c['name']),_0x38f94f['add'](_0x25879f),_0x4904bd=!0x0;const _0x2a9b37=_0x25879f['nextSibling'],_0x1a2828=_0x25879f['previousSibling'],_0x1044d0=_0x2a9b37&&_0x2a9b37['is']('element','tableCellSuggestion'),_0x3b887f=_0x1a2828&&_0x1a2828['is']('element','tableCellSuggestion');_0x1044d0&&!_0x38f94f['has'](_0x2a9b37)&&_0x47aa6b['add'](_0x2a9b37),_0x3b887f&&!_0x38f94f['has'](_0x1a2828)&&_0x47aa6b['add'](_0x1a2828);}else _0x25879f['is']('element','paragraph')&&_0x25879f['isEmpty']&&(_0x23f22e['removeMarker'](_0x13393c['name']),_0x4904bd=!0x0);}}else{if('tablePasteCell'==_0x23f22e['subType']){if(!_0x23f22e['attributes']||!_0x23f22e['attributes']['tablePasteChainId'])continue;const _0x5e2946=_0x23f22e['attributes']['markerAttributes'];if(_0x5e2946&&Object['keys'](_0x5e2946)['length'])continue;const _0x1f7aee=_0x23f22e['attributes']['tablePasteChainId'];let _0x111404=!0x0,_0x58391d=!0x0;for(const _0x50c319 of _0x5d18c3)if(_0x50c319['subType']&&_0x50c319['subType']['startsWith']('tablePaste')){if(!_0x50c319['attributes']['tablePasteChainId']){_0x58391d=!0x1;break;}if(_0x50c319['id']!=_0x23f22e['id']&&_0x50c319['attributes']['tablePasteChainId']==_0x1f7aee){_0x111404=!0x1;break;}}_0x58391d&&_0x111404&&(_0x23f22e['removeMarkers'](),_0x4904bd=!0x0);}}for(const _0x5f80b1 of _0x38f94f)_0x4c7eea['remove'](_0x5f80b1);for(const _0xd1c899 of _0x47aa6b)_0x4c7eea['unwrap'](_0xd1c899);return _0x4904bd;}),_0x4bc24e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1cae4e=>_0x54640a(_0x1cae4e),'converterPriority':'high'}),_0x4bc24e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4b0f4e,_0x4b6435)=>_0x4b6435['options']['showSuggestionHighlights']?_0x54640a(_0x4b0f4e,!0x1):null,'converterPriority':'high'});const _0x5b7ed5=_0x4bc24e['editing']['view'];this['listenTo'](_0x5b7ed5['document'],'clipboardOutput',(_0x465383,_0x1be5ac)=>{const _0x4128ef=[];for(const _0x3a029e of _0x5b7ed5['createRangeIn'](_0x1be5ac['content'])['getItems']())_0x3a029e['is']('element','suggestion-td')&&_0x4128ef['push'](_0x3a029e);_0x5b7ed5['change'](_0x5bf5b9=>{for(const _0x5d9d46 of _0x4128ef)_0x5bf5b9['move'](_0x5bf5b9['createRangeIn'](_0x5d9d46),_0x5bf5b9['createPositionBefore'](_0x5d9d46)),_0x5bf5b9['remove'](_0x5d9d46);});});}}function ke(_0x21781){if(_0x21781['isEmpty'])return!0x0;const _0x4f487d=_0x21781['getChild'](0x0);return _0x4f487d['is']('element','paragraph')&&_0x4f487d['isEmpty'];}function Re(_0xe3e6b7,_0x13f41d={},_0x5b4324){for(const {isAnchor:_0x4893ca,cellHeight:_0x1ca8a0,cellWidth:_0xc208ee}of _0x5b4324['createTableWalker'](_0xe3e6b7,{'includeAllSlots':!0x0,..._0x13f41d}))if(!_0x4893ca||0x1!=_0x1ca8a0||0x1!=_0xc208ee)return!0x1;return!0x0;}class Nt extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x42ea6e=this['editor']['plugins']['get']('TrackChangesEditing');_0x42ea6e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x42ea6e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x42ea6e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42ea6e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x42ea6e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x42ea6e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x12ae0e,_0x4bc84c){const _0x3d232b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ba8be=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4ea60a=_0x4bc84c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xec4135=_0x2ba8be['getColumnGroupElement'](_0x4ea60a);let _0x25f845=_0xec4135?_0x2ba8be['getTableColumnsWidths'](_0xec4135):null,_0x5be1aa=_0x4ea60a['getAttribute']('tableWidth')||null;const _0x6795f4=_0x4bc84c['tableWidth']||_0x5be1aa,_0xb34b56=_0x4bc84c['columnWidths']||_0x25f845,_0x4d65ad=this['editor']['plugins']['get']('Users')['me'];for(const _0x314977 of _0x3d232b['getSuggestions']()){const _0x164e40=_0x314977['getContainedElement']();if('resizeTable'===_0x314977['subType']&&_0x164e40===_0x4ea60a){_0x314977['author']!==_0x4d65ad&&_0x314977['discard']();const _0x4d5035=_0x314977['data']['commandParams'];_0x5be1aa=_0x4d5035[0x0]['tableWidth'],_0x25f845=_0x4d5035[0x0]['columnWidths'];break;}}_0x12ae0e({'table':_0x4ea60a,'tableWidth':_0x6795f4,'columnWidths':_0xb34b56}),_0x3d232b['markBlockFormat'](_0x4ea60a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5be1aa,'columnWidths':_0x25f845}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x50b11b){if('formatBlock'!=_0x50b11b['type']&&'formatInline'!=_0x50b11b['type'])return;const {data:_0x5055b6}=_0x50b11b;if(_0x5055b6&&'resizeTable'===_0x5055b6['formatGroupId']){const _0x4a24c7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4a24c7)};}}}class Dt extends _0x48c5b5{['afterInit'](){const _0xd4ae79=this['editor'];_0xd4ae79['plugins']['has']('Template')&&_0xd4ae79['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x48c5b5{['afterInit'](){const _0x4108bb=this['editor'];if(!_0x4108bb['commands']['get']('insertTableOfContents'))return;_0x4108bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x250ba6=_0x4108bb['plugins']['get']('TrackChangesEditing'),_0x2e64b6=_0x4108bb['locale'];_0x250ba6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12cd1b=>o(_0x2e64b6,'ELEMENT_TABLE_OF_CONTENTS',_0x12cd1b));}}class $t extends _0x48c5b5{['afterInit'](){const _0x12e7b0=this['editor'];if(!_0x12e7b0['plugins']['has']('Title'))return;const _0x2d82a9=_0x12e7b0['plugins']['get']('TrackChangesEditing');_0x2d82a9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x12e7b0['locale'],'ELEMENT_TITLE')),_0x12e7b0['model']['document']['registerPostFixer'](_0x5db56d=>{let _0x1ebc9f=!0x1;const _0x5e7e4a=Array['from'](_0x12e7b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25c719,data:_0xb8a4a0}of _0x5e7e4a){const {group:_0x2210c0}=_0x2d82a9['_splitMarkerName'](_0x25c719);if('suggestion'!==_0x2210c0||!_0xb8a4a0['newRange'])continue;const _0x209bbe=_0xb8a4a0['newRange'],_0x1ba8ef=_0x209bbe['end']['nodeBefore'];if(!_0x1ba8ef||!_0x1ba8ef['is']('element','title-content'))continue;if(!_0x209bbe['start']['isTouching'](_0x209bbe['end']))continue;const _0x2af5ae=_0x12e7b0['model']['schema']['getNearestSelectionRange'](_0x209bbe['end'],'forward');if(_0x2af5ae&&_0x2af5ae['isCollapsed']){const _0x1d7dd0=_0x5db56d['createRange'](_0x209bbe['start'],_0x2af5ae['start']);_0x1d7dd0['isEqual'](_0x209bbe)||(_0x5db56d['updateMarker'](_0x25c719,{'range':_0x1d7dd0}),_0x1ebc9f=!0x0);}_0x1ebc9f||(_0x5db56d['removeMarker'](_0x25c719),_0x1ebc9f=!0x0);}return _0x1ebc9f;});}}class Bt extends _0x48c5b5{['afterInit'](){const _0x47e11f=this['editor'],_0x227ad7=_0x47e11f['plugins']['get']('TrackChangesEditing');_0x47e11f['plugins']['has']('UndoEditing')&&(_0x227ad7['enableCommand']('undo'),_0x227ad7['enableCommand']('redo'));}}class xt extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x4f452a=this['editor'];if(!_0x4f452a['plugins']['has']('TableCaptionEditing'))return;_0x4f452a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x48c5b5{['tableProperties'];['tableCellProperties'];constructor(_0x521f6c){super(_0x521f6c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x42de83=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x462ab0 of this['tableProperties'])_0x42de83['enableCommand'](_0x462ab0,(_0xf929aa,_0x13b865)=>{const _0x1ca87d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x462ab0,[_0x1ca87d],this['tableProperties'],'tableProperties',_0xf929aa,_0x13b865);});_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x42de83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x199e9a,_0x58673f)=>this['handleDiscardAction'](this['tableProperties'],_0x199e9a,_0x58673f)),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x59cc0d of this['tableCellProperties'])_0x42de83['enableCommand'](_0x59cc0d,(_0x5f3bc6,_0x286989)=>{const _0x64ab72=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x59cc0d,_0x64ab72,this['tableCellProperties'],'tableCellProperties',_0x5f3bc6,_0x286989);});_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x42de83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x458c9f,_0x2218a7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x458c9f,_0x2218a7)),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x42de83['descriptionFactory']['registerDescriptionCallback'](_0x5435a2=>this['handleSuggestionDescription'](_0x5435a2));}['_handlePropertyChange'](_0x229f23,_0x218fd9,_0x5be324,_0x582d64,_0x4e8be5,_0x318ac3){const _0x2a0f30=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x318ac3['batch'],()=>{for(const _0x7b129d of _0x218fd9){if(this['_getSuggestion'](_0x7b129d,_0x582d64))_0x4e8be5(_0x318ac3);else{const _0x55acce={};for(const _0x3b0dad of _0x5be324){const _0x1d6410=_0x7b129d['getAttribute'](_0x3b0dad);void 0x0!==_0x1d6410&&(_0x55acce[_0x3b0dad]=_0x1d6410);}_0x4e8be5(_0x318ac3),_0x2a0f30['markBlockFormat'](_0x7b129d,{'commandParams':[_0x55acce]},[],_0x582d64);}}});}['handleDiscardAction'](_0x5bdc71,_0x697441,_0x4328e3){const _0x43dd36=_0x697441[0x0]['start']['nodeAfter'],_0x1f883f=_0x4328e3['commandParams'][0x0];this['editor']['model']['change'](_0x53fd6b=>{for(const _0x155b58 of _0x5bdc71)void 0x0!==_0x1f883f[_0x155b58]?_0x53fd6b['setAttribute'](_0x155b58,_0x1f883f[_0x155b58],_0x43dd36):_0x53fd6b['removeAttribute'](_0x155b58,_0x43dd36);});}['handleSuggestionDescription'](_0xf91d9e){if(_0xf91d9e['data'])switch(_0xf91d9e['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'](_0x5d961f,_0x2c62fe){const _0x4b231b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x88ca8e of _0x4b231b['getSuggestions']({'skipNotAttached':!0x0})){const _0x53856c=_0x88ca8e['getContainedElement']();if(_0x88ca8e['subType']===_0x2c62fe&&_0x53856c===_0x5d961f)return _0x88ca8e;}return null;}}const m='$elementName';class p extends _0x48c5b5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x47d1f4,_0x37f635,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x107579){function _0x24b96f(_0x274a06){return _0x274a06['map'](_0x3e378f=>String['fromCharCode'](_0x3e378f))['join']('');}super(_0x107579),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5ac9b9,_0x3bbb25,_0x482dc1,_0x3acb5b)=>{this['_model']['change'](()=>{for(const _0x3e85f2 of[..._0x3acb5b,..._0x482dc1])this['_model']['markers']['has'](_0x3e85f2)&&_0x107579['editing']['reconvertMarker'](_0x3e85f2);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x107579['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(),_0x107579['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x107579['config']['get']('trackChanges.trackFormatChanges'),_0x107579['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x107579['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x107579,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x24b96f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x24b96f([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x32]);}['init'](){const _0x4da539=this['editor'],_0x251858=(_0x3dd8d5,_0x53fc27)=>{if('attribute'!=_0x3dd8d5)return'ck-suggestion-marker-'+_0x3dd8d5;const _0x19f54b=_0x53fc27['split']('|')[0x0];return this['_isBlockAttribute'](_0x19f54b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4da539['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4e91ab=>{const {id:_0x561ce7,authorId:_0x34fb7c,type:_0x19c79f,subType:_0x24d3a2}=this['_splitMarkerName'](_0x4e91ab['markerName']),_0x4c9dfb=['ck-suggestion-marker',_0x251858(_0x19c79f,_0x24d3a2)];let _0x5497ec=0xbb8;return this['activeMarkers']['includes'](_0x4e91ab['markerName'])&&(_0x4c9dfb['push']('ck-suggestion-marker--active'),_0x5497ec=0xbc2),'deletion'==_0x19c79f&&(_0x5497ec+=0x5),{'classes':_0x4c9dfb,'attributes':{'data-suggestion':_0x561ce7,'data-author-id':_0x34fb7c},'priority':_0x5497ec};}}),_0x4da539['conversion']['for']('dataDowncast')['add'](_0x297ff4=>{_0x297ff4['on']('addMarker:suggestion',(_0x2e9c1b,_0x1fcc33,_0x2a6f3f)=>{if(!_0x2a6f3f['options']['showSuggestionHighlights'])return;const _0x18b450=_0x1fcc33['item'];if(!_0x18b450)return;const _0x558206=_0x2a6f3f['mapper']['toViewElement'](_0x18b450);_0x4da539['model']['schema']['isObject'](_0x18b450)&&_0x558206&&!_0x558206['getCustomProperty']('widget')&&_0x558206['is']('containerElement')&&_0xb539ea(_0x558206,_0x2a6f3f['writer']);},{'priority':'high'});}),_0x4da539['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x30b8f2,_0x42bf5b)=>{if(!_0x42bf5b['options']['showSuggestionHighlights'])return null;const {type:_0x35b9e0,subType:_0x34cd9f}=this['_splitMarkerName'](_0x30b8f2['markerName']);return{'classes':['ck-suggestion-marker',_0x251858(_0x35b9e0,_0x34cd9f)],'priority':0xbb8};}});const _0x4c8431=({showActiveMarkers:_0x5adee2=!0x0,isAttributeSuggestion:_0x5df11b=!0x1}={})=>(_0x4a4812,_0x355f63,_0x471e75)=>{if(!_0x355f63['item'])return;const {id:_0xef9b4c,authorId:_0x311169}=this['_splitMarkerName'](_0x355f63['markerName']);if(_0x5df11b){const _0x101f37=this['_suggestions']['get'](_0xef9b4c),_0xae2781=this['_getAttributeKey'](_0x101f37);if(!this['_isBlockAttribute'](_0xae2781))return;}if(_0x355f63['item']['is']('selection'))return void _0x471e75['consumable']['consume'](_0x355f63['item'],_0x4a4812['name']);const _0x310529=_0x471e75['mapper']['toViewElement'](_0x355f63['item']);if(_0x355f63['item']['is']('element')&&_0x4da539['model']['schema']['isBlock'](_0x355f63['item'])&&!_0x310529['getCustomProperty']('addHighlight')){_0x471e75['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x310529),_0x471e75['writer']['setAttribute']('data-suggestion',_0xef9b4c,_0x310529),_0x471e75['writer']['setAttribute']('data-author-id',_0x311169,_0x310529),_0x471e75['mapper']['bindElementToMarker'](_0x310529,_0x355f63['markerName']),_0x5adee2&&(this['activeMarkers']['includes'](_0x355f63['markerName'])?_0x471e75['writer']['addClass']('ck-suggestion-marker--active',_0x310529):_0x471e75['writer']['removeClass']('ck-suggestion-marker--active',_0x310529));for(const _0x9b2425 of _0x4da539['model']['createRangeIn'](_0x355f63['item'])['getItems']())_0x471e75['consumable']['consume'](_0x9b2425,_0x4a4812['name']);_0x471e75['consumable']['consume'](_0x355f63['item'],_0x4a4812['name']);}};_0x4da539['conversion']['for']('dataDowncast')['add'](_0x5e0187=>{_0x5e0187['on']('addMarker:suggestion:formatBlock',(_0x366ca2,_0xbfa9c6,_0x20139b)=>{_0x20139b['options']['showSuggestionHighlights']&&_0x4c8431({'showActiveMarkers':!0x1})(_0x366ca2,_0xbfa9c6,_0x20139b);},{'priority':'highest'});}),_0x4da539['conversion']['for']('dataDowncast')['add'](_0x53f170=>{_0x53f170['on']('addMarker:suggestion:attribute',(_0x46a5c3,_0x1d2d40,_0x1a3a26)=>{_0x1a3a26['options']['showSuggestionHighlights']&&_0x4c8431({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x46a5c3,_0x1d2d40,_0x1a3a26);},{'priority':'highest'});}),_0x4da539['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5b71cf,_0x482b41)=>_0x482b41['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5b71cf['substr'](0xb)}}),_0x4da539['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39483d,{writer:_0x4f735f})=>{let _0x1d296a='suggestion:'+_0x39483d['getAttribute']('suggestion-type')+':'+_0x39483d['getAttribute']('id');return _0x39483d['getAttribute']('marker-count')&&(_0x1d296a+=':'+_0x39483d['getAttribute']('marker-count')),_0x4f735f['createElement']('$marker',{'data-name':_0x1d296a});}}),_0x4da539['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0x184998=>{_0x184998['on']('addMarker:suggestion:formatBlock',_0x4c8431(),{'priority':'high'});}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0x2a6b88=>{_0x2a6b88['on']('addMarker:suggestion:attribute',_0x4c8431({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0xfc4381=>{_0xfc4381['on']('removeMarker:suggestion:formatBlock',(_0x4b9f32,_0x33ab25,_0x1e0062)=>{const _0x46ab09=_0x1e0062['mapper']['markerNameToElements'](_0x33ab25['markerName']);if(_0x46ab09){for(const _0x26fe09 of _0x46ab09)_0x26fe09['getCustomProperty']('addHighlight')||(_0x1e0062['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x26fe09),_0x1e0062['writer']['removeAttribute']('data-suggestion',_0x26fe09),_0x1e0062['writer']['removeAttribute']('data-author-id',_0x26fe09),_0x1e0062['mapper']['unbindElementFromMarkerName'](_0x26fe09,_0x33ab25['markerName']));}},{'priority':'high'});}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0x176fcd=>{_0x176fcd['on']('removeMarker:suggestion:attribute',(_0x3c378d,_0x13bd8c,_0x44f4d8)=>{const _0x5cd739=_0x44f4d8['mapper']['markerNameToElements'](_0x13bd8c['markerName']);if(!_0x5cd739)return;const {id:_0x32780f}=this['_splitMarkerName'](_0x13bd8c['markerName']),_0x16c15d=this['_suggestions']['get'](_0x32780f),_0x37808e=this['_getAttributeKey'](_0x16c15d);if(this['_isBlockAttribute'](_0x37808e)){for(const _0x5d9826 of _0x5cd739)_0x5d9826['getCustomProperty']('addHighlight')||(_0x44f4d8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5d9826),_0x44f4d8['writer']['removeAttribute']('data-suggestion',_0x5d9826),_0x44f4d8['writer']['removeAttribute']('data-author-id',_0x5d9826),_0x44f4d8['mapper']['unbindElementFromMarkerName'](_0x5d9826,_0x13bd8c['markerName']));}},{'priority':'high'});}),_0x4da539['model']['document']['registerPostFixer'](_0x345e64=>{let _0x27d0d7=!0x1;const _0x4bd40d=Array['from'](_0x4da539['model']['document']['differ']['getChangedMarkers']()),_0x154094=new Set();for(const {name:_0x4b2739,data:_0x71d1c4}of _0x4bd40d){const {group:_0x1eb163,type:_0x19a0bf,subType:_0x195368,id:_0xce311d}=this['_splitMarkerName'](_0x4b2739);if('suggestion'!==_0x1eb163)continue;const _0x1bf395=this['_suggestions']['get'](_0xce311d);if(null!=_0x71d1c4['newRange']){'formatInline'==_0x19a0bf&&(_0x27d0d7=_0x27d0d7||Ut(_0x71d1c4['newRange'],_0x4b2739,_0x345e64,_0x4da539['model']['schema']));const _0x41b450='attribute'==_0x19a0bf&&this['_isBlockAttribute'](_0x195368['split']('|')[0x0]);if(_0x71d1c4['newRange']['isCollapsed']||'$graveyard'==_0x71d1c4['newRange']['root']['rootName']||'formatBlock'==_0x19a0bf&&!Ft(_0x71d1c4['newRange'])||_0x41b450&&!Ft(_0x71d1c4['newRange'])||'deletion'==_0x19a0bf&&!(!Vt(_0x4ccee7=_0x71d1c4['newRange'])&&!function(_0x9e69ce){return _0x9e69ce['start']['parent']==_0x9e69ce['end']['nodeBefore']&&_0x9e69ce['start']['isAtEnd'];}(_0x4ccee7)))_0x345e64['removeMarker'](_0x4b2739),_0x27d0d7=!0x0;else{if(!_0x1bf395||!_0x1bf395['isInContent'])continue;if(_0x71d1c4['newRange']&&_0x71d1c4['oldRange']&&_0x71d1c4['newRange']['isEqual'](_0x71d1c4['oldRange']))continue;_0x154094['add'](_0x1bf395);}}}var _0x4ccee7;return _0x154094['size']>0x0&&(_0x27d0d7=!!this['_joinWithAdjacentSuggestions'](_0x154094)||_0x27d0d7),_0x27d0d7;}),_0x4da539['model']['document']['registerPostFixer'](_0x17a038=>{let _0x198716=!0x1;for(const _0x19fab9 of _0x4da539['model']['document']['differ']['getChanges']())if('insert'==_0x19fab9['type'])for(const _0x2178b3 of this['_suggestions']['values']()){if(_0x2178b3['isMultiRange']||!_0x2178b3['isInContent'])continue;const _0x3446b1='formatBlock'==_0x2178b3['type'],_0x44cfab=this['_getAttributeKey'](_0x2178b3),_0x134b8a=_0x44cfab&&this['_isBlockAttribute'](_0x44cfab);if(!_0x3446b1&&!_0x134b8a)continue;const _0x31bf2a=_0x2178b3['getFirstRange']();if(_0x31bf2a['start']['parent']!=_0x31bf2a['end']['parent']&&!_0x31bf2a['end']['isAtEnd']){const _0x257515=_0x4da539['model']['createPositionAt'](_0x31bf2a['start']['nodeAfter'],'end'),_0x2e5c98=_0x4da539['model']['createRange'](_0x31bf2a['start'],_0x257515);_0x17a038['updateMarker'](_0x2178b3['getFirstMarker'](),{'range':_0x2e5c98}),_0x198716=!0x0;}}return _0x198716;}),_0x4da539['model']['document']['registerPostFixer'](_0x19f3a3=>this['_processAttributeChanges'](_0x19f3a3)),_0x4da539['model']['document']['registerPostFixer'](_0x5a68c9=>!_0x5a68c9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5a68c9)),_0x4da539['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4da539['model']['document']['on']('change:data',(_0x2cd65a,_0x4ed995)=>{if(!_0x4ed995['isLocal']||_0x4ed995['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x474dac=_0x4da539['model']['document']['differ']['getChanges']();if(0x0==_0x474dac['length'])return;const _0x18550b=[],_0x34315f=_0x474dac['filter'](_0x519179=>'attribute'==_0x519179['type']),_0x127ffb=_0x474dac['filter'](_0x384303=>'insert'==_0x384303['type']&&'$text'!=_0x384303['name']);for(const _0x215620 of _0x34315f)this['_isRegisteredAttribute'](_0x215620['attributeKey'])&&_0x18550b['push']({'key':_0x215620['attributeKey'],'newValue':_0x215620['attributeNewValue'],'oldValue':_0x215620['attributeOldValue'],'range':Pt(_0x215620['range'],_0x4da539['model'])});for(const _0x4eec56 of _0x127ffb){if('rename'!=_0x4eec56['action']&&'refresh'!=_0x4eec56['action'])continue;const _0x1ac58c=Lt(_0x4eec56['position']['nodeAfter'],_0x4da539['model']),_0x1c6bd7=_0x4eec56['before'];'rename'==_0x4eec56['action']&&_0x18550b['push']({'key':m,'newValue':_0x4eec56['name'],'oldValue':_0x1c6bd7['name'],'range':_0x1ac58c});for(const [_0x4d4e4e,_0x11a9b3]of _0x1c6bd7['attributes']){if(!this['_isRegisteredAttribute'](_0x4d4e4e))continue;const _0x48c3b8=_0x4eec56['attributes']['get'](_0x4d4e4e);_0x11a9b3!==_0x48c3b8&&_0x18550b['push']({'key':_0x4d4e4e,'newValue':_0x48c3b8,'oldValue':_0x11a9b3,'range':_0x1ac58c});}for(const [_0x343945,_0x4572bd]of _0x4eec56['attributes'])this['_isRegisteredAttribute'](_0x343945)&&(_0x1c6bd7['attributes']['has'](_0x343945)||_0x18550b['push']({'key':_0x343945,'newValue':_0x4572bd,'oldValue':null,'range':_0x1ac58c}));}0x0!=_0x18550b['length']&&_0x4da539['model']['enqueueChange'](_0x4ed995,_0x10752d=>{const _0x3de68a=_0x5790ee();for(const {range:_0x1f620f,key:_0x2d3278,oldValue:_0x489061,newValue:_0x4e99ae}of _0x18550b)this['markAttributeChange'](_0x1f620f,_0x2d3278,_0x489061,_0x4e99ae,{'groupId':_0x3de68a});this['_reduceExistingSuggestions'](_0x10752d,_0x18550b);});},{'priority':'lowest'}),_0x4da539['model']['markers']['on']('update:suggestion',(_0x20d90a,_0x2af74a,_0x28cb50)=>{if(null==_0x28cb50){const {id:_0xaac6cc}=this['_splitMarkerName'](_0x2af74a['name']),_0x51f22c=this['_suggestions']['get'](_0xaac6cc);_0x51f22c&&_0x51f22c['addMarkerName'](_0x2af74a['name']);}}),_0x4da539['model']['document']['on']('change:data',()=>{const _0x321313=Array['from'](_0x4da539['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2101a5=>'suggestion'===this['_splitMarkerName'](_0x2101a5['name'])['group']);if(0x0===_0x321313['length'])return;_0x321313['sort']((_0x409e2e,_0x33d601)=>{const _0x155e2b=_0x409e2e['data']['oldRange'],_0x2cfa4d=_0x33d601['data']['oldRange'];return null===_0x155e2b&&null===_0x2cfa4d?0x0:null===_0x155e2b&&null!==_0x2cfa4d?-0x1:null!==_0x155e2b&&null===_0x2cfa4d?0x1:_0x155e2b['start']['isBefore'](_0x2cfa4d['start'])?-0x1:0x1;});const _0x991d99=new Set(),_0x3d1994=new Set();for(const {name:_0x4e7ddb,data:_0x1c0203}of _0x321313){const {id:_0x262b41}=this['_splitMarkerName'](_0x4e7ddb);if(null===_0x1c0203['oldRange']){const _0x46e382=this['_handleNewSuggestionMarker'](_0x4e7ddb);_0x3d1994['add'](_0x46e382);}else{const _0x513a1b=this['_suggestions']['get'](_0x262b41);null!==_0x1c0203['newRange']||_0x513a1b['isInContent']?(_0x991d99['add'](_0x513a1b['head']),_0x3d1994['add'](_0x513a1b)):this['_removeSuggestion'](_0x513a1b);}}_0x3d1994['size']>0x0&&this['_refreshSuggestionsChain'](_0x3d1994);for(const _0x472f8e of _0x991d99)this['fire']('suggestionChanged',_0x472f8e);}),_0x4da539['model']['on']('applyOperation',(_0x20ac5a,_0x330cd2)=>{const _0xfbccaf=_0x330cd2[0x0];if(!this['_suggestions']['size'])return;if(!_0xfbccaf['isDocumentOperation'])return;if(_0xfbccaf['batch']['isUndo']||!_0xfbccaf['batch']['isLocal'])return;let _0x38fca1,_0x36c486;switch(_0xfbccaf['type']){case'insert':_0x38fca1=_0x4da539['model']['createPositionAt'](_0xfbccaf['position']),_0x36c486=_0x38fca1['getShiftedBy'](_0xfbccaf['howMany']);break;case'split':_0x38fca1=_0x4da539['model']['createPositionAt'](_0xfbccaf['splitPosition']),_0x36c486=_0x4da539['model']['createPositionAt'](_0xfbccaf['moveTargetPosition']);break;case'move':_0x38fca1=_0x4da539['model']['createPositionAt'](_0xfbccaf['targetPosition']),_0x36c486=_0x38fca1['getShiftedBy'](_0xfbccaf['howMany']);break;default:return;}const _0x34940d=_0x4da539['model']['createRange'](_0x38fca1,_0x36c486);_0x4da539['model']['change'](()=>{for(const {suggestion:_0x172bcb,meta:_0x187a4b}of this['_findSuggestions'](_0x34940d)){if(_0x172bcb['isMultiRange'])continue;if('formatInline'==_0x172bcb['type'])continue;const _0x3f1299=this['_getAttributeKey'](_0x172bcb);if(_0x3f1299&&this['_isBlockAttribute'](_0x3f1299)&&'split'!=_0xfbccaf['type'])continue;const _0x233b71=_0x172bcb['data']&&_0x172bcb['data']['multipleBlocks'];('formatBlock'!=_0x172bcb['type']||'split'==_0xfbccaf['type']&&!_0x233b71)&&(_0x187a4b['containsRangeInObject']||'insertion'==_0x172bcb['type']&&_0x187a4b['isOwn']||_0x172bcb['getFirstRange']()['containsRange'](_0x34940d)&&this['_breakSuggestionMarker'](_0x172bcb,_0x38fca1,_0x36c486));}});},{'priority':'lowest'}),_0x4da539['model']['on']('deleteContent',(_0x4c0bb2,_0x50068f)=>{const _0x353285=_0x50068f[0x0],_0x3726a3=_0x50068f[0x1];if(_0x3726a3&&_0x3726a3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x353285['isCollapsed'])return;const _0x788934=_0x4da539['model']['schema'],{start:_0x535887,end:_0x20188d}=_0x353285['getFirstRange'](),_0x37cde5=_0x535887['nodeAfter']&&_0x788934['isLimit'](_0x535887['nodeAfter'])?null:_0x788934['getNearestSelectionRange'](_0x535887,'forward'),_0x4ed606=_0x20188d['nodeBefore']&&_0x788934['isLimit'](_0x20188d['nodeBefore'])?null:_0x788934['getNearestSelectionRange'](_0x20188d,'backward'),_0x1eb936=_0x4da539['model']['createRange'](_0x37cde5?_0x37cde5['start']:_0x535887,_0x4ed606?_0x4ed606['end']:_0x20188d);_0x4da539['model']['change'](_0x35e8f6=>{this['markDeletion'](_0x1eb936);const _0x111251=_0x4da539['model']['schema']['getNearestSelectionRange'](_0x1eb936['start']);_0x353285['is']('documentSelection')?_0x35e8f6['setSelection'](_0x111251):_0x353285['setTo'](_0x111251);}),_0x4c0bb2['stop']();},{'priority':_0x3ff64e['normal']+0xa}),_0x4da539['model']['on']('insertContent',(_0x2bfa57,_0x3ddbc7)=>{const _0x24eda8=_0x3ddbc7[_0x3ddbc7['length']-0x1];_0x24eda8&&_0x24eda8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4da539['model']['change'](()=>{let _0x540c87=_0x4da539['model']['insertContent'](_0x3ddbc7[0x0],_0x3ddbc7[0x1],_0x3ddbc7[0x2],{'forceDefaultExecution':!0x0});if(!_0x540c87)return;_0x2bfa57['return']=_0x540c87['clone']();const _0x58a97c=_0x540c87['end']['nodeBefore'],_0x553ced=_0x4da539['model']['schema'];_0x58a97c&&_0x553ced['isBlock'](_0x58a97c)&&!_0x553ced['isObject'](_0x58a97c)&&(_0x540c87=_0x4da539['model']['createRange'](_0x540c87['start'],_0x4da539['model']['createPositionAt'](_0x58a97c,'end'))),this['markInsertion'](_0x540c87);}),_0x2bfa57['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1e848b=new x(_0x4da539,this['_suggestions']);_0x4da539['commands']['add']('acceptSuggestion',_0x1e848b),this['enableCommand']('acceptSuggestion');const _0x56d640=new R(_0x4da539,this['_suggestions']);_0x4da539['commands']['add']('discardSuggestion',_0x56d640),this['enableCommand']('discardSuggestion'),_0x4da539['commands']['add']('acceptAllSuggestions',new E(_0x4da539,_0x1e848b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4da539['commands']['add']('discardAllSuggestions',new E(_0x4da539,_0x56d640,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4da539['commands']['add']('acceptSelectedSuggestions',new O(_0x4da539,_0x1e848b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4da539['commands']['add']('discardSelectedSuggestions',new O(_0x4da539,_0x56d640,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4a1125=_0x4da539['plugins']['get']('CommentsRepository');this['listenTo'](_0x4a1125,'addComment',(_0x502c83,{threadId:_0x4b7fe0})=>{const _0x154160=this['_suggestions']['get'](_0x4b7fe0);_0x154160&&_0x154160['commentThread']&&0x1===_0x154160['commentThread']['length']&&this['_updateSuggestionData'](_0x4b7fe0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4a1125,'removeComment',(_0x551bf1,{threadId:_0x261c4d})=>{const _0x10ee13=this['_suggestions']['get'](_0x261c4d);_0x10ee13&&_0x10ee13['commentThread']&&!_0x10ee13['commentThread']['length']&&this['_updateSuggestionData'](_0x261c4d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x48822d){if(this['_adapter'])throw new _0x4f63a0('track-changes-adapter-already-set',this);this['_adapter']=_0x48822d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2e2ab1=!0x1,toJSON:_0x2a1ab8=!0x1}={}){const _0x5cb705=[];for(const _0x445562 of this['_suggestions']['values']())_0x2e2ab1&&!_0x445562['isInContent']||_0x5cb705['push'](_0x445562);return _0x2a1ab8?_0x5cb705['map'](_0x5f01bd=>_0x5f01bd['toJSON']()):_0x5cb705;}['getSuggestion'](_0xe62655){const _0x2b329d=this['_suggestions']['get'](_0xe62655);if(!_0x2b329d)throw new _0x4f63a0('track-changes-suggestion-not-found',this);return _0x2b329d;}['hasSuggestion'](_0x124eea){return this['_suggestions']['has'](_0x124eea);}['addSuggestionData'](_0x1a6b49){const {authorId:_0x468abe,id:_0x4966a0,attributes:_0x518f2c}=_0x1a6b49,[_0x1fcbab,_0xba0008]=_0x1a6b49['type']['split'](':'),_0x55b0ab=this['_suggestions']['get'](_0x4966a0)||this['_createSuggestion'](_0x1fcbab,_0xba0008,_0x4966a0,_0x468abe,_0x518f2c);if(this['_addThreadToSuggestion'](_0x55b0ab),this['_checkSuggestionCorrectness'](_0x55b0ab,_0x1fcbab,_0xba0008||null,_0x468abe),_0x55b0ab['createdAt']=_0x1a6b49['createdAt'],_0x55b0ab['_isDataLoaded']=!0x0,_0x518f2c&&_0x518f2c['@external']){const _0x58c4f1=_0x518f2c['@external'],_0x2b77ff=this['_getExternalAuthor'](_0x58c4f1['authorName']);_0x55b0ab['authoredAt']=_0x58c4f1['createdAt'],_0x55b0ab['author']=_0x2b77ff,_0x55b0ab['isExternal']=!0x0;}else _0x55b0ab['authoredAt']=_0x1a6b49['createdAt'];switch(_0x1a6b49['data']&&(_0x55b0ab['data']=_0x1a6b49['data']),_0x1a6b49['attributes']&&(_0x55b0ab['attributes']=_0x1a6b49['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x55b0ab['_saved']=!0x0),this['_suggestionState']['get'](_0x55b0ab)){case'notReady':this['_suggestionState']['set'](_0x55b0ab,'dataReady');break;case'markerReady':_0x55b0ab['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x55b0ab])),this['_refreshSuggestionsChain'](new Set([_0x55b0ab])),this['_suggestionState']['set'](_0x55b0ab,'ready'),this['fire']('suggestionLoaded',_0x55b0ab)):this['_suggestionState']['set'](_0x55b0ab,'removed');}return _0x55b0ab;}['acceptSuggestion'](_0x1971b1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3df35f of _0x1971b1['getAllAdjacentSuggestions']())_0x3df35f['accept']();});});}['discardSuggestion'](_0x963bc4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f43f0 of _0x963bc4['getAllAdjacentSuggestions']())_0x2f43f0['discard']();});});}['enableCommand'](_0x197474,_0x2551d5){const _0x42fefc=this['editor']['commands']['get'](_0x197474);if(!_0x42fefc)throw new _0x4f63a0('track-changes-command-not-found',this,{'commandName':_0x197474});if(this['_enabledCommands']['has'](_0x42fefc))throw new _0x4f63a0('track-changes-enable-command-twice',this,{'commandName':_0x197474});this['_enabledCommands']['add'](_0x42fefc),_0x2551d5&&_0x42fefc['on']('execute',(_0x88d51f,_0x9b576a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x9b576a['length']>0x0&&_0x9b576a[_0x9b576a['length']-0x1]&&_0x9b576a[_0x9b576a['length']-0x1]['forceDefaultExecution']?_0x9b576a['pop']():(_0x88d51f['return']=_0x2551d5((..._0x581312)=>_0x42fefc['execute'](..._0x581312,{'forceDefaultExecution':!0x0}),..._0x9b576a),_0x88d51f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x506791){let _0x4df7e5,_0x5564e6;const _0x58398a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4df7e5=_0x506791();}catch(_0x5e0dfc){_0x5564e6=_0x5e0dfc;}return _0x58398a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5564e6&&_0x4f63a0['rethrowUnexpectedError'](_0x5564e6,this),_0x4df7e5;}['markInsertion'](_0x258bb5,_0x41b069=null,_0x1ec193={}){if(_0x258bb5['isCollapsed'])return null;const _0x3836ab=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4a91be,meta:_0x26353c}of this['_findSuggestions'](_0x258bb5,'insertion'))if(_0x26353c['isOwn']){if(!_0x26353c['isNextTo']){if(_0x26353c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4a91be,_0x1ec193))continue;return _0x4a91be;}if(qt(_0x4a91be,_0x1ec193))return _0x4a91be;this['_breakSuggestionMarker'](_0x4a91be,_0x258bb5['start'],_0x258bb5['end']);break;}if(_0x41b069==_0x4a91be['subType']&&qt(_0x4a91be,_0x1ec193)){const _0x5ddda8=_0x4a91be['getFirstRange']();return _0x5ddda8['start']['isEqual'](_0x258bb5['end'])?this['_setSuggestionRange'](_0x4a91be,this['_model']['createRange'](_0x258bb5['start'],_0x5ddda8['end'])):this['_setSuggestionRange'](_0x4a91be,this['_model']['createRange'](_0x5ddda8['start'],_0x258bb5['end'])),_0x4a91be;}}const _0x2d1ca0=_0x5790ee(),_0x180b69=_0x3836ab['id'],_0x3a144c=_0x41b069?'insertion:'+_0x41b069:'insertion',_0x1335c5=this['_setSuggestionData']({'id':_0x2d1ca0,'type':_0x3a144c,'createdAt':new Date(),'authorId':_0x180b69,'attributes':_0x1ec193});return this['_addSuggestionMarker'](_0x3a144c,_0x2d1ca0,_0x180b69,_0x258bb5),_0x1335c5;}['markMultiRangeInsertion'](_0x17a5f1,_0x339bea='multi',_0x26ca96={}){const _0x443a24=this['editor']['plugins']['get']('Users')['me'],_0x3b199c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x339bea,'join');for(const _0x573f0b of this['getSuggestions']())if(_0x573f0b['author']['id']==_0x443a24['id']&&'insertion'==_0x573f0b['type']&&_0x573f0b['subType']==_0x339bea&&qt(_0x573f0b,_0x26ca96)&&(_0x3b199c(_0x573f0b['getRanges'](),_0x17a5f1)||_0x3b199c(_0x17a5f1,_0x573f0b['getRanges']()))){for(const _0x126987 of _0x17a5f1)_0x573f0b['addRange'](_0x126987);return _0x573f0b;}for(const {suggestion:_0x227f3b,meta:_0x1bfdfd}of this['_findSuggestions'](_0x17a5f1,'insertion')){if(!_0x1bfdfd['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1bfdfd['containsRangeInObject'])continue;if(!qt(_0x227f3b,_0x26ca96))continue;let _0x148ad9=!0x0;for(const _0x56e2ee of _0x227f3b['getRanges']())for(const _0x2859a8 of _0x17a5f1)if(!_0x56e2ee['containsRange'](_0x2859a8)){_0x148ad9=!0x1;break;}if(_0x148ad9)return _0x227f3b;}const _0xef53b6=_0x5790ee(),_0x22e8f5=_0x443a24['id'],_0x5bfe50='insertion:'+_0x339bea,_0x2ccf97=this['_setSuggestionData']({'id':_0xef53b6,'type':_0x5bfe50,'createdAt':new Date(),'authorId':_0x22e8f5,'attributes':_0x26ca96});for(const _0x2878fa of _0x17a5f1)this['_addSuggestionMarker'](_0x5bfe50,_0xef53b6,_0x22e8f5,_0x2878fa,u['getMultiRangeId']());return _0x2ccf97;}['markInlineFormat'](_0x144e07,_0x4a6c12,_0x33af4d=null,_0x363721={}){if(_0x33af4d=_0x33af4d||Gt(_0x4a6c12),_0x144e07['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2d1c37=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x33af4d,'accept');return this['forceDefaultExecution'](()=>_0x2d1c37([_0x144e07],_0x4a6c12,_0x363721)),null;}const _0x4ea496=this['editor']['plugins']['get']('Users')['me'],_0x25b118=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x42b24f,meta:_0x4d47fd}of this['_findSuggestions'](_0x144e07,'insertion'))_0x4d47fd['isOwn']&&!_0x4d47fd['isInsideObject']&&_0x25b118['push'](..._0x42b24f['getRanges']());}const _0x303b73=function(_0x67ea8b,_0x560b77){const _0x6a3e4c=[];for(const _0x21ce3d of _0x560b77){const _0x3ad6af=_0x67ea8b['getIntersection'](_0x21ce3d);_0x3ad6af&&_0x6a3e4c['push'](_0x3ad6af);}return _0x6a3e4c;}(_0x144e07,_0x25b118),_0x58f2e2=function(_0x50979b,_0xaa80f3){const _0x565eaf=[_0x50979b];for(const _0x2b8f19 of _0xaa80f3){let _0x1e68ad=0x0;for(;_0x1e68ad<_0x565eaf['length'];){const _0x2e0307=_0x565eaf[_0x1e68ad]['getDifference'](_0x2b8f19);_0x565eaf['splice'](_0x1e68ad,0x1,..._0x2e0307),_0x1e68ad+=_0x2e0307['length'];}}return _0x565eaf;}(_0x144e07,_0x25b118);_0x303b73['length']&&this['_model']['change'](()=>{for(const _0x239547 of _0x303b73){const _0x12b620=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x33af4d,'accept');this['forceDefaultExecution'](()=>_0x12b620([_0x239547],_0x4a6c12,_0x363721));}});for(const _0x2c2f87 of _0x58f2e2){let _0xacbecf=null,_0x1032f5=_0x2c2f87['start'],_0x41ff31=_0x2c2f87['end'];for(const {suggestion:_0x518b91,meta:_0x5624b7}of this['_findSuggestions'](_0x2c2f87,'formatInline')){if(!_0x5624b7['isOwn'])continue;if(_0x518b91['subType']!=_0x33af4d)continue;if(!qt(_0x518b91,_0x363721))continue;const _0x72db1=_0x518b91['getFirstRange']();if(_0x72db1['containsRange'](_0x2c2f87,!0x0))return null;_0x1032f5=_0x1032f5['isBefore'](_0x72db1['start'])?_0x1032f5:_0x72db1['start'],_0x41ff31=_0x41ff31['isAfter'](_0x72db1['end'])?_0x41ff31:_0x72db1['end'],_0xacbecf?_0x72db1['start']['isBefore'](_0xacbecf['getFirstRange']()['start'])?(_0xacbecf['removeMarkers'](),_0xacbecf=_0x518b91):_0x518b91['removeMarkers']():_0xacbecf=_0x518b91;}const _0x382b05=this['_model']['createRange'](_0x1032f5,_0x41ff31);if(_0xacbecf)this['_setSuggestionRange'](_0xacbecf,_0x382b05);else{const _0x29b085=_0x5790ee(),_0x2f9931=_0x4ea496['id'];this['_setSuggestionData']({'id':_0x29b085,'type':'formatInline:'+_0x33af4d,'data':_0x4a6c12,'createdAt':new Date(),'authorId':_0x2f9931,'attributes':_0x363721}),this['_addSuggestionMarker']('formatInline:'+_0x33af4d,_0x29b085,_0x2f9931,_0x382b05);}}return null;}['markBlockFormat'](_0x544e39,_0x9b8404,_0x5eac30=[],_0x2ad793=null,_0x2cd2ed={}){_0x9b8404['formatGroupId']||(_0x9b8404['formatGroupId']=_0x9b8404['commandName']),_0x9b8404['multipleBlocks']=_0x544e39['is']('range'),_0x2ad793=_0x2ad793||Gt(_0x9b8404);const _0x4ebe39=_0x5eac30['map'](_0x13c096=>Lt(_0x13c096,this['_model'])),_0x5154df=_0x544e39['is']('range')?_0x544e39:Lt(_0x544e39,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1ba6c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ad793,'accept');return this['forceDefaultExecution'](()=>_0x1ba6c1([_0x5154df],_0x9b8404,_0x2cd2ed)),null;}_0x4ebe39['push'](_0x5154df);let _0x47c71d=!0x0;for(const _0x3eea1e of _0x4ebe39)if(!this['_rangeIsInLocalUserInsertion'](_0x3eea1e)){_0x47c71d=!0x1;break;}if(_0x47c71d&&'always'!==this['_trackFormatChanges']){const _0x23d045=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ad793,'accept');return this['forceDefaultExecution'](()=>_0x23d045([_0x5154df],_0x9b8404,_0x2cd2ed)),null;}let _0x52736d=null,_0x11bb6b=_0x5154df['start'],_0x120d12=_0x5154df['end'];for(const {suggestion:_0x5a8397,meta:_0x435435}of this['_findSuggestions'](_0x5154df,'formatBlock')){if(!_0x435435['isOwn'])continue;if(_0x435435['isNextTo']||_0x435435['containsRangeInObject']||_0x435435['isInsideObject'])continue;if(_0x5a8397['data']['formatGroupId']!=_0x9b8404['formatGroupId'])continue;if(!qt(_0x5a8397,_0x2cd2ed))continue;const _0x2a90e8=_0x5a8397['getFirstRange']();if(_0x5a8397['subType']==_0x2ad793){if(_0x2a90e8['containsRange'](_0x5154df,!0x0))return null;_0x11bb6b=_0x11bb6b['isBefore'](_0x2a90e8['start'])?_0x11bb6b:_0x2a90e8['start'],_0x120d12=_0x120d12['isAfter'](_0x2a90e8['end'])?_0x120d12:_0x2a90e8['end'],_0x52736d?_0x2a90e8['start']['isBefore'](_0x52736d['getFirstRange']()['start'])?(_0x52736d['removeMarkers'](),_0x52736d=_0x5a8397):_0x5a8397['removeMarkers']():_0x52736d=_0x5a8397;}else{const _0x360d3=_0x5154df['getIntersection'](_0x2a90e8);this['_cutOutSuggestionMarker'](_0x5a8397,_0x360d3);}}const _0x303707=this['editor']['plugins']['get']('Users')['me'],_0x4e3c21=_0x5790ee(),_0xd1a388=_0x303707['id'];if(_0x52736d)return this['_setSuggestionRange'](_0x52736d,this['_model']['createRange'](_0x11bb6b,_0x120d12)),_0x52736d;{const _0x378363=this['_setSuggestionData']({'id':_0x4e3c21,'type':'formatBlock:'+_0x2ad793,'data':_0x9b8404,'createdAt':new Date(),'authorId':_0xd1a388,'attributes':_0x2cd2ed});return this['_addSuggestionMarker']('formatBlock:'+_0x2ad793,_0x4e3c21,_0xd1a388,this['_model']['createRange'](_0x11bb6b,_0x120d12)),_0x378363;}}['markMultiRangeBlockFormat'](_0x1132da,_0x470dea,_0x493e8d=[],_0x496288=null,_0x141ee2={}){_0x470dea['formatGroupId']||(_0x470dea['formatGroupId']=_0x470dea['commandName']);const _0x3cbeff=_0x1132da[0x0];_0x470dea['multipleBlocks']=_0x3cbeff['is']('range'),_0x496288=_0x496288||Gt(_0x470dea);const _0x5116b3=_0x493e8d['map'](_0x2c7557=>Lt(_0x2c7557,this['_model'])),_0x36b1c0=_0x3cbeff['is']('range')?_0x1132da:_0x1132da['map'](_0x968691=>Lt(_0x968691,this['_model']));if('never'===this['_trackFormatChanges']){const _0x433211=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x496288,'accept');return this['forceDefaultExecution'](()=>_0x433211(_0x36b1c0,_0x470dea,_0x141ee2)),null;}_0x5116b3['push'](..._0x36b1c0);let _0x20b51e=!0x0;for(const _0x57e1fe of _0x5116b3)if(!this['_rangeIsInLocalUserInsertion'](_0x57e1fe)){_0x20b51e=!0x1;break;}if(_0x20b51e&&'always'!==this['_trackFormatChanges']){const _0x35662d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x496288,'accept');return this['forceDefaultExecution'](()=>_0x35662d(_0x36b1c0,_0x470dea,_0x141ee2)),null;}const _0x294362=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a601e of this['getSuggestions']()){if(_0x2a601e['author']['id']!=_0x294362['id'])continue;if('formatBlock'!=_0x2a601e['type']||_0x2a601e['data']['formatGroupId']!=_0x470dea['formatGroupId'])continue;if(!qt(_0x2a601e,_0x141ee2))continue;const _0xc09fdb=_0x2a601e['subType']==_0x496288;for(let _0x219109=0x0;_0x219109<_0x36b1c0['length'];_0x219109++){const _0x10dc7d=_0x36b1c0[_0x219109];for(const _0x4331a4 of _0x2a601e['getMarkers']()){const _0x2f24e9=_0x4331a4['getRange']();if(_0x10dc7d['isEqual'](_0x2f24e9)){_0xc09fdb?(_0x36b1c0['splice'](_0x219109,0x1),_0x219109--):_0x2a601e['removeMarker'](_0x4331a4['name']);break;}}}}if(0x0==_0x36b1c0['length'])return null;const _0xc1c70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x496288,'join');for(const _0x3430e4 of this['getSuggestions']())if(_0x3430e4['author']['id']==_0x294362['id']&&'formatBlock'==_0x3430e4['type']&&_0x3430e4['data']['formatGroupId']==_0x470dea['formatGroupId']&&_0x3430e4['subType']==_0x496288&&qt(_0x3430e4,_0x141ee2)&&(_0xc1c70(_0x3430e4['getRanges'](),_0x36b1c0)||_0xc1c70(_0x36b1c0,_0x3430e4['getRanges']()))){for(const _0x23c7dd of _0x36b1c0)_0x3430e4['addRange'](_0x23c7dd);return _0x3430e4;}const _0x4882a0=_0x5790ee(),_0x56a497=_0x294362['id'],_0x2c208c='formatBlock:'+_0x496288,_0x1f577a=this['_setSuggestionData']({'id':_0x4882a0,'type':_0x2c208c,'data':_0x470dea,'createdAt':new Date(),'authorId':_0x56a497,'attributes':_0x141ee2});for(const _0x2a8c9a of _0x36b1c0)this['_addSuggestionMarker'](_0x2c208c,_0x4882a0,_0x56a497,_0x2a8c9a,u['getMultiRangeId']());return _0x1f577a;}['markDeletion'](_0x2c87d6,_0x582d9a=null,_0x393eb6={}){if(_0x2c87d6['isCollapsed'])return null;const _0x5f6a6d=this['editor']['plugins']['get']('Users')['me'],_0x405746=new _0x3bc28a(_0x2c87d6['start'],_0x2c87d6['end']);for(const {suggestion:_0x27adf7,meta:_0x425957}of this['_findSuggestions'](_0x405746,'insertion'))if(_0x425957['isOwn']&&!_0x425957['isNextTo']){if(_0x27adf7['isMultiRange']){const _0x254e36=_0x27adf7['getRanges']()['filter'](_0x30a152=>'$graveyard'!=_0x30a152['root']['rootName']);_0x254e36['every'](_0xe378e6=>_0x405746['containsRange'](_0xe378e6,!0x0))&&_0x27adf7['discard']();if(_0x254e36['some'](_0x1c7521=>_0x1c7521['containsRange'](_0x405746,!0x0))){const _0x34462d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x582d9a,'accept');return this['forceDefaultExecution'](()=>_0x34462d([_0x405746],null,_0x393eb6)),null;}}else{const _0x52b0e5=_0x405746['getIntersection'](_0x27adf7['getFirstRange']());null!==_0x52b0e5&&_0x27adf7['_onDiscard']([_0x52b0e5],null,_0x393eb6);}}if(_0x405746['detach'](),_0x405746['isCollapsed']||'$graveyard'==_0x405746['root']['rootName'])return null;let _0x4f5935=null,_0x2727f8=_0x405746['start'],_0x800db7=_0x405746['end'];const _0x43c503=this['_findSuggestions'](_0x405746,'deletion');for(const {suggestion:_0x553e97,meta:_0x1f8dfe}of _0x43c503){const _0x17393e=this['_model']['createRange'](_0x2727f8,_0x800db7);if(_0x1f8dfe['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f8dfe['containsRangeInObject']&&!_0x1f8dfe['isInsideObject'])){if(_0x553e97['isMultiRange']){if(!qt(_0x553e97,_0x393eb6))continue;let _0x3ff690=!0x0;for(const _0x30b7b4 of _0x553e97['getRanges']()){if(_0x30b7b4['containsRange'](_0x17393e,!0x0))return _0x553e97;_0x17393e['containsRange'](_0x30b7b4)||(_0x3ff690=!0x1);}_0x3ff690&&_0x553e97['discard']();}else{const _0x366932=_0x553e97['getFirstRange']();if(_0x366932['containsRange'](_0x17393e,!0x0))return _0x553e97;if(!qt(_0x553e97,_0x393eb6)){_0x17393e['containsRange'](_0x366932)?_0x553e97['removeMarkers']():_0x366932['containsPosition'](_0x2727f8)?_0x2727f8=_0x366932['end']:_0x366932['containsPosition'](_0x800db7)&&(_0x800db7=_0x366932['start']);continue;}_0x2727f8=_0x2727f8['isBefore'](_0x366932['start'])?_0x2727f8:_0x366932['start'],_0x800db7=_0x800db7['isAfter'](_0x366932['end'])?_0x800db7:_0x366932['end'],_0x393eb6=Object['assign']({},_0x553e97['attributes']),_0x4f5935?_0x366932['start']['isBefore'](_0x4f5935['getFirstRange']()['start'])?(_0x4f5935['removeMarkers'](),_0x4f5935=_0x553e97):_0x553e97['removeMarkers']():_0x4f5935=_0x553e97;}}}if(_0x4f5935)return this['_setSuggestionRange'](_0x4f5935,this['_model']['createRange'](_0x2727f8,_0x800db7)),_0x4f5935;{const _0x277a0a=_0x5790ee(),_0x40d9bc=this['_model']['createRange'](_0x2727f8,_0x800db7),_0x8fafb=_0x5f6a6d['id'],_0x780fc0=_0x582d9a?'deletion:'+_0x582d9a:'deletion',_0x560892=this['_setSuggestionData']({'id':_0x277a0a,'type':_0x780fc0,'createdAt':new Date(),'authorId':_0x8fafb,'attributes':_0x393eb6});return this['_addSuggestionMarker'](_0x780fc0,_0x277a0a,_0x8fafb,_0x40d9bc),_0x560892;}}['markMultiRangeDeletion'](_0x18c13c,_0x138d03='multi',_0x1f8add={}){const _0x5337da=this['editor']['plugins']['get']('Users')['me'],_0x3ca5fd=_0x18c13c['map'](_0x2a6304=>new _0x3bc28a(_0x2a6304['start'],_0x2a6304['end'])),_0x199412=new Set();for(const {suggestion:_0x36cb07,meta:_0x348224}of this['_findSuggestions'](_0x3ca5fd,'insertion'))_0x348224['isOwn']&&!_0x348224['isNextTo']&&_0x199412['add'](_0x36cb07);for(const _0x313368 of _0x199412)if(_0x313368['isMultiRange']){const _0x4191d8=_0x313368['getRanges']();(!_0x313368['attributes']||!_0x313368['attributes']['skipNestingCheck'])&&(_0x4191d8['every'](_0x441276=>_0x3ca5fd['some'](_0x5f4c1c=>_0x5f4c1c['containsRange'](_0x441276,!0x0)))&&_0x313368['discard']());if(_0x3ca5fd['every'](_0x2aef54=>_0x4191d8['some'](_0x8c51f4=>_0x8c51f4['containsRange'](_0x2aef54,!0x0)))){const _0x4b9dc6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138d03,'accept');return this['forceDefaultExecution'](()=>_0x4b9dc6(_0x18c13c,null,_0x1f8add)),null;}}else{const _0x344bcc=_0x313368['getFirstRange']();_0x3ca5fd['some'](_0x2b155e=>_0x2b155e['containsRange'](_0x344bcc,!0x0))&&_0x313368['discard']();if(_0x3ca5fd['every'](_0x2bf54a=>_0x344bcc['containsRange'](_0x2bf54a,!0x0))){const _0x4a5840=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138d03,'accept');return this['forceDefaultExecution'](()=>_0x4a5840(_0x3ca5fd,null,_0x1f8add)),null;}}const _0x2c3c79=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138d03,'join');let _0xbf9256=null;for(const _0x382a85 of this['getSuggestions']())if(_0x382a85['author']['id']==_0x5337da['id']&&_0x382a85['isInContent']&&'deletion'==_0x382a85['type']&&_0x382a85['subType']==_0x138d03&&qt(_0x382a85,_0x1f8add)&&(_0x2c3c79(_0x382a85['getRanges'](),_0x3ca5fd)||_0x2c3c79(_0x3ca5fd,_0x382a85['getRanges']()))){if(_0xbf9256){if(_0x382a85['commentThread']&&_0x382a85['commentThread']['length'])continue;for(const _0x13a70c of _0x382a85['getRanges']())_0xbf9256['isIntersectingWithRange'](_0x13a70c)||_0xbf9256['addRange'](_0x13a70c);_0x382a85['removeMarkers']();}else{_0xbf9256=_0x382a85;for(const _0x49bdc4 of _0x3ca5fd)_0x382a85['isIntersectingWithRange'](_0x49bdc4)||_0x382a85['addRange'](_0x49bdc4);}}if(_0xbf9256)return _0xbf9256;_0x199412['clear']();for(const {suggestion:_0x3798d6,meta:_0x206968}of this['_findSuggestions'](_0x3ca5fd,'deletion'))_0x206968['isOwn']&&(this['_mergeNestedSuggestions']||!_0x206968['containsRangeInObject']&&!_0x206968['isInsideObject'])&&qt(_0x3798d6,_0x1f8add)&&_0x199412['add'](_0x3798d6);for(const _0x3b999d of _0x199412){const _0x5c5064=_0x3b999d['getRanges']();if(!_0x1f8add||!_0x1f8add['skipNestingCheck']){if(_0x3ca5fd['every'](_0x967597=>_0x5c5064['some'](_0x456aa0=>_0x456aa0['containsRange'](_0x967597,!0x0))))return _0x3b999d;}(!_0x3b999d['attributes']||!_0x3b999d['attributes']['skipNestingCheck'])&&(_0x5c5064['every'](_0x237196=>_0x3ca5fd['some'](_0x13b11e=>_0x13b11e['containsRange'](_0x237196,!0x0)))&&_0x3b999d['discard']());}const _0x36d59a=_0x5790ee(),_0x41d7ab=_0x5337da['id'],_0x1e3f26='deletion:'+_0x138d03,_0x5b130c=this['_setSuggestionData']({'id':_0x36d59a,'type':_0x1e3f26,'createdAt':new Date(),'authorId':_0x41d7ab,'attributes':_0x1f8add});for(const _0x455d44 of _0x3ca5fd)_0x455d44['detach'](),_0x455d44['isCollapsed']||'$graveyard'==_0x455d44['root']['rootName']||this['_addSuggestionMarker'](_0x1e3f26,_0x36d59a,_0x41d7ab,_0x455d44,u['getMultiRangeId']());return _0x5b130c;}['markAttributeChange'](_0x4402c9,_0x49dc37,_0x4d5d1b,_0x3be275,_0x12f108){if(_0x4402c9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa5778d=this['editor']['plugins']['get']('Users')['me']['id'],_0x286dab=Array['from'](this['_suggestions']['values']())['filter'](_0x3d6529=>'attribute'==_0x3d6529['type']&&_0x3d6529['data']['key']==_0x49dc37&&_0x3d6529['isIntersectingWithRange'](_0x4402c9));if('default'===this['_trackFormatChanges']){const _0x51358c=this['_findSuggestions'](_0x4402c9,'insertion')['filter'](({meta:_0xf22815})=>_0xf22815['isOwn']&&!_0xf22815['isInsideObject']&&!_0xf22815['isNextTo'])['map'](({suggestion:_0x3cc616})=>_0x3cc616);_0x286dab['unshift'](..._0x51358c);}const _0x3fe408=new Map([[_0x4402c9,_0x4d5d1b]]);for(const _0x6e4281 of _0x286dab){const _0x59ab4e='attribute'==_0x6e4281['type']?_0x6e4281['data']['oldValue']:void 0x0,_0x52d5d3=_0x6e4281['getFirstRange'](),_0x56a3a3=Array['from'](_0x3fe408['keys']())['find'](_0x17129e=>_0x17129e['isIntersecting'](_0x52d5d3));if(!_0x56a3a3)continue;const _0x52e805=_0x56a3a3['getDifference'](_0x52d5d3);this['_isBlockAttribute'](_0x49dc37)&&'insertion'==_0x6e4281['type']&&0x0!=_0x52e805['length']||(_0x3fe408['delete'](_0x56a3a3),_0x52e805['forEach'](_0x242cd2=>{_0x3fe408['set'](_0x242cd2,_0x4d5d1b);}),'insertion'!=_0x6e4281['type']&&_0x59ab4e!=_0x3be275&&_0x3fe408['set'](_0x56a3a3['getIntersection'](_0x52d5d3),_0x59ab4e));}const _0x41c904=[];for(const [_0x3fe050,_0x588ff9]of _0x3fe408){const _0x2fbcd9=_0x5790ee(),_0x1cecf4={'key':_0x49dc37,'oldValue':_0x588ff9,'newValue':_0x3be275};_0x49dc37['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':_0x49dc37});const _0x2228a5=('attribute:'+(_0x49dc37+'|'+Gt({'newValue':_0x3be275})))['substring'](0x0,0x3c),_0x47e85c=this['_setSuggestionData']({'id':_0x2fbcd9,'type':_0x2228a5,'data':_0x1cecf4,'createdAt':new Date(),'authorId':_0xa5778d,'attributes':_0x12f108});_0x41c904['push'](_0x47e85c),this['_addSuggestionMarker'](_0x2228a5,_0x2fbcd9,_0xa5778d,_0x3fe050);}return _0x41c904;}['enableDefaultAttributesIntegration'](_0x195e36){this['enableCommand'](_0x195e36,(_0x43d06e,..._0x537aaa)=>{this['_recordAttributeChanges'](()=>{_0x43d06e(..._0x537aaa);});});}['registerBlockAttribute'](_0x17ce94){this['_blockAttributeKeys']['add'](_0x17ce94);}['registerInlineAttribute'](_0x61d66b){this['_inlineAttributeKeys']['add'](_0x61d66b);}['_getAttributeKey'](_0x4814c1){return'attribute'==_0x4814c1['type']?_0x4814c1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4dfc36,_0x4f9070){const _0x2a4718=_0x4dfc36['getFirstMarker']();this['_model']['change'](_0x2ecaed=>{_0x2ecaed['updateMarker'](_0x2a4718,{'range':_0x4f9070});});}['_addThreadToSuggestion'](_0x55a67f){const _0x526292=_0x55a67f['id'],_0x476e4c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x526292)||this['_commentsRepository']['addCommentThread']({'channelId':_0x476e4c,'threadId':_0x526292,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4eb819=this['_commentsRepository']['getCommentThread'](_0x526292);_0x4eb819['unbind']('isRemovable'),_0x4eb819['isRemovable']=!0x1,_0x55a67f['commentThread']=_0x4eb819;}['_checkSuggestionCorrectness'](_0x752583,_0x41b7a0,_0x514f75,_0x2e60f3){if(_0x752583['type']!=_0x41b7a0||_0x752583['subType']!=_0x514f75||_0x752583['creator']['id']!=_0x2e60f3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4f63a0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x59d51e,_0x1fb7e1){const _0x5d0078=_0x59d51e['getFirstRange']();if(_0x1fb7e1['isEqual'](_0x5d0078))_0x59d51e['removeMarkers']();else{if(_0x5d0078['containsRange'](_0x1fb7e1)){const _0xad8395=this['_model']['createPositionAt'](_0x1fb7e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59d51e,this['_model']['createRange'](_0x5d0078['start'],_0xad8395));const _0x5110f0=_0x5790ee(),_0x362d8d=_0x59d51e['creator']['id'],_0x44a9b7=_0x59d51e['type']+':'+_0x59d51e['subType'];this['_setSuggestionData']({'id':_0x5110f0,'type':_0x44a9b7,'createdAt':new Date(),'authorId':_0x362d8d,'data':_0x59d51e['data'],'attributes':_0x59d51e['attributes']});const _0xbb7403=this['_model']['createPositionAt'](_0x1fb7e1['end']['parent'],'after'),_0x4d13ce=this['_model']['createRange'](_0xbb7403,_0x5d0078['end']);this['_addSuggestionMarker'](_0x44a9b7,_0x5110f0,_0x362d8d,_0x4d13ce);}else{if(_0x5d0078['containsPosition'](_0x1fb7e1['start'])){const _0x3ee406=this['_model']['createPositionAt'](_0x1fb7e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59d51e,this['_model']['createRange'](_0x5d0078['start'],_0x3ee406));}else{const _0x1498ff=this['_model']['createPositionAt'](_0x1fb7e1['end']['parent'],'after');this['_setSuggestionRange'](_0x59d51e,this['_model']['createRange'](_0x1498ff,_0x5d0078['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x36a777){for(const {suggestion:_0x34f296,meta:_0x27137f}of this['_findSuggestions'](_0x36a777,'insertion')){if(!_0x27137f['isOwn'])continue;const _0x25ecb3=_0x34f296['getRanges']();for(const _0x238789 of _0x25ecb3)if(!_0x36a777['getDifference'](_0x238789)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2253b1){const _0x7363c3=this['editor']['plugins']['get']('Users')['getUser'](_0x2253b1);if(!_0x7363c3)throw new _0x4f63a0('track-changes-user-not-found',this);return _0x7363c3;}['_getExternalAuthor'](_0x29af5e){const _0x2e68eb=this['editor']['plugins']['get']('Users'),_0x40db2d=_0x59a68d('external:'+_0x29af5e),_0x4ff360=_0x2e68eb['getUser'](_0x40db2d);return _0x4ff360||_0x2e68eb['addUser']({'id':_0x40db2d,'name':_0x29af5e});}['_createSuggestion'](_0x1b4309,_0x47ce84,_0x2fe84f,_0x370bd0,_0x4338f0){const _0x492ac7=this['_getAuthorFromId'](_0x370bd0),_0xfb8124=this['_suggestionFactory']['buildSuggestion'](_0x1b4309,_0x47ce84,_0x2fe84f,_0x492ac7,_0x4338f0,_0x34fbf9=>{this['_updateSuggestionData'](_0x2fe84f,{'attributes':_0x34fbf9});const _0x11adc3=this['getSuggestion'](_0x2fe84f);this['_joinWithAdjacentSuggestions'](new Set([_0x11adc3])),this['_refreshSuggestionsChain'](new Set([_0x11adc3]));});return this['listenTo'](_0xfb8124,'accept',()=>{this['_updateSuggestionData'](_0x2fe84f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xfb8124,'discard',()=>{this['_updateSuggestionData'](_0x2fe84f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2fe84f,_0xfb8124),this['_suggestionState']['set'](_0xfb8124,'notReady'),_0xfb8124;}['_splitMarkerName'](_0x410ebc){const _0x488b07=_0x410ebc['split'](':');return{'group':_0x488b07[0x0],'type':_0x488b07[0x1],'subType':_0x488b07['length']>=0x5?_0x488b07[0x2]:null,'id':_0x488b07['length']<0x5?_0x488b07[0x2]:_0x488b07[0x3],'authorId':_0x488b07['length']<0x5?_0x488b07[0x3]:_0x488b07[0x4],'markerCount':0x6==_0x488b07['length']?_0x488b07[0x5]:null};}['_breakSuggestionMarker'](_0x243cce,_0x19e2c5,_0x5082e8){const _0x3d6a80=_0x243cce['getFirstRange'](),_0x2c5c19=_0x3d6a80['start'],_0x4fdade=_0x3d6a80['end'];this['_setSuggestionRange'](_0x243cce,this['_model']['createRange'](_0x2c5c19,_0x19e2c5));const _0x5887be=_0x5790ee(),_0x52dd48=_0x243cce['creator']['id'],_0x197349=_0x243cce['type']+(_0x243cce['subType']?':'+_0x243cce['subType']:'');this['_setSuggestionData']({'id':_0x5887be,'type':_0x197349,'createdAt':new Date(),'authorId':_0x52dd48,'originalSuggestionId':_0x243cce['id'],'attributes':_0x243cce['attributes'],'data':_0x243cce['data']});const _0x117456=this['_getAttributeKey'](_0x243cce);('formatBlock'==_0x243cce['type']||_0x117456&&this['_isBlockAttribute'](_0x117456))&&(_0x5082e8=this['_model']['createPositionBefore'](_0x5082e8['parent'])),this['_addSuggestionMarker'](_0x197349,_0x5887be,_0x52dd48,this['_model']['createRange'](_0x5082e8,_0x4fdade));}['_findSuggestions'](_0x5e4fc0,_0x441193=null){const _0x27a2c9=[],_0x5b51f6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5e4fc0)||(_0x5e4fc0=[_0x5e4fc0]);for(const _0x54754f of this['getSuggestions']()){if(!_0x54754f['isInContent'])continue;if(_0x441193&&_0x54754f['type']!=_0x441193)continue;let _0x77efe8=!0x1;for(const _0x37bbff of _0x54754f['getRanges']()){for(const _0x21d310 of _0x5e4fc0){const _0x56e6b9=_0x21d310['start']['isEqual'](_0x37bbff['end'])||_0x21d310['end']['isEqual'](_0x37bbff['start']);if(_0x56e6b9||_0x21d310['getIntersection'](_0x37bbff)){const _0x2113e0=_0x21d310['containsRange'](_0x37bbff)&&Ot(this['_model']['schema'],_0x37bbff['start'],_0x21d310),_0x43bee7=_0x37bbff['containsRange'](_0x21d310)&&Ot(this['_model']['schema'],_0x21d310['start'],_0x37bbff);_0x27a2c9['push']({'suggestion':_0x54754f,'meta':{'isOwn':_0x5b51f6==_0x54754f['author'],'isNextTo':_0x56e6b9,'isInsideObject':_0x2113e0,'containsRangeInObject':_0x43bee7}}),_0x77efe8=!0x0;break;}}if(_0x77efe8)break;}}return _0x27a2c9;}['_addSuggestionMarker'](_0x429bcc,_0x5cba86,_0x55afae,_0x3751f1,_0x3aeea7){this['_model']['change'](_0x44bcca=>{let _0x465006='suggestion:'+_0x429bcc+':'+_0x5cba86+':'+_0x55afae;_0x3aeea7&&(_0x465006=_0x465006+':'+_0x3aeea7),_0x44bcca['addMarker'](_0x465006,{'range':_0x3751f1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3abae6){const _0x3e89a3=_0x3abae6['previous'],_0x357b48=_0x3abae6['next'];_0x3abae6['previous']=null,_0x3abae6['next']=null,null!=_0x3e89a3&&_0x3e89a3['next']==_0x3abae6&&(_0x3e89a3['next']=_0x357b48),null!=_0x357b48&&_0x357b48['previous']==_0x3abae6&&(_0x357b48['previous']=_0x3e89a3),'ready'==this['_suggestionState']['get'](_0x3abae6)&&(this['_suggestionState']['set'](_0x3abae6,'removed'),this['fire']('suggestionUnloaded',_0x3abae6,_0x3e89a3,_0x357b48));}['_setSuggestionData'](_0x94f316){const _0x2b68f3=_0x94f316['id'],_0x1925aa=this['addSuggestionData'](_0x94f316);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5aeb2f=this['editor']['plugins']['get']('PendingActions'),_0x54a40e=_0x1925aa['hasComments'],_0x4c3639=_0x1925aa['subType']?_0x1925aa['type']+':'+_0x1925aa['subType']:_0x1925aa['type'],_0x251b85=this['editor']['locale'],_0x393013=_0x5aeb2f['add'](o(_0x251b85,'PENDING_ACTION_SUGGESTION')),_0xabd830={'id':_0x2b68f3,'type':_0x4c3639,'hasComments':_0x54a40e,'data':_0x94f316['data']||null,'originalSuggestionId':_0x94f316['originalSuggestionId']||null,'attributes':_0x1925aa['attributes']};this['_adapter']['addSuggestion'](_0xabd830)['then'](_0x54040d=>{_0x1925aa['_saved']=!0x0,_0x5aeb2f['remove'](_0x393013),_0x54040d&&_0x54040d['createdAt']&&(this['_suggestions']['get'](_0x2b68f3)['createdAt']=_0x54040d['createdAt']);})['catch'](_0x295c92=>{throw _0xc584fe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1925aa['discard']();}),_0x1925aa['stopListening'](),this['_suggestions']['delete'](_0x1925aa['id']),this['_suggestionState']['delete'](_0x1925aa),_0x295c92;});}return _0x1925aa;}['_isBlockAttribute'](_0x3acca3){return this['_blockAttributeKeys']['has'](_0x3acca3);}['_updateSuggestionData'](_0x15205d,_0x1c7ae2){const _0x43e791=this['editor']['plugins']['get']('PendingActions'),_0x557936=this['getSuggestion'](_0x15205d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x557936['_saved']){const _0x3a2bf3=_0x43e791['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15205d,_0x1c7ae2)['then'](()=>{_0x43e791['remove'](_0x3a2bf3);});}else _0x557936['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15205d,_0x1c7ae2);});}}['_getSuggestionData'](_0x2a348f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4f63a0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2a348f);}['_handleNewSuggestionMarker'](_0x56df2c){const {id:_0x1cdd3d,type:_0xcb5b49,subType:_0x4f4a8e,authorId:_0x101f75}=this['_splitMarkerName'](_0x56df2c),_0x2c4dd8=this['_suggestions']['get'](_0x1cdd3d)||this['_createSuggestion'](_0xcb5b49,_0x4f4a8e,_0x1cdd3d,_0x101f75,{});switch(this['_checkSuggestionCorrectness'](_0x2c4dd8,_0xcb5b49,_0x4f4a8e,_0x101f75),this['_suggestionState']['get'](_0x2c4dd8)){case'notReady':this['_getSuggestionData'](_0x1cdd3d)['then'](_0x1326b1=>{let _0xed3d41=Promise['resolve']();_0x1326b1['hasComments']&&(_0xed3d41=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1cdd3d})),_0xed3d41['then'](()=>{this['addSuggestionData'](_0x1326b1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c4dd8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1cdd3d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c4dd8,'ready'),this['fire']('suggestionLoaded',_0x2c4dd8);break;case'ready':this['fire']('suggestionChanged',_0x2c4dd8);}return _0x2c4dd8['addMarkerName'](_0x56df2c),_0x2c4dd8;}['_refreshSuggestionsChain'](_0xad3f46){const _0x5d0c34=Array['from'](_0xad3f46),_0x2ea0a0=_0x5d0c34['filter'](_0x5a8312=>'attribute'==_0x5a8312['type']);this['_refreshAttributeSuggestionsChain'](_0x2ea0a0);const _0x3466fb=_0x5d0c34['filter'](_0x408e7a=>!_0x408e7a['isMultiRange']&&'attribute'!=_0x408e7a['type']),_0x1500e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f9d52=>!_0x4f9d52['isMultiRange']&&'attribute'!=_0x4f9d52['type']),_0x5de32f=_0x1500e4['filter'](_0xc19198=>!_0xad3f46['has'](_0xc19198)),_0x2be7ae=new Map(_0x1500e4['map'](_0x44ce81=>[_0x44ce81,this['_suggestionFactory']['getSuggestionCallback'](_0x44ce81['type'],_0x44ce81['subType'],'chain')])),_0x27af06=new Map(_0x1500e4['map'](_0x1f904c=>[_0x1f904c,_0x1f904c['getFirstRange']()])),_0xa110b6=new Set(),_0x11cef1=new Set();for(let _0x372640=0x0;_0x372640<_0x3466fb['length'];_0x372640++)_0x4cdbe2(_0x3466fb[_0x372640],_0x3466fb,_0x372640+0x1);for(let _0x174b64=0x0;_0x174b64<_0x3466fb['length'];_0x174b64++)_0x4cdbe2(_0x3466fb[_0x174b64],_0x5de32f,0x0);const _0x3eff47=new Set();for(let _0x1dfff9=0x0;_0x1dfff9<_0x3466fb['length'];_0x1dfff9++){const _0x2a961d=_0x3466fb[_0x1dfff9];!_0x11cef1['has'](_0x2a961d)&&_0x2a961d['previous']&&(_0x3eff47['add'](_0x2a961d['previous']),_0x2a961d['previous']['next']===_0x2a961d&&(_0x2a961d['previous']['next']=null),_0x2a961d['previous']=null),!_0xa110b6['has'](_0x2a961d)&&_0x2a961d['next']&&(_0x3eff47['add'](_0x2a961d['next']),_0x2a961d['next']['previous']===_0x2a961d&&(_0x2a961d['next']['previous']=null),_0x2a961d['next']=null);}function _0x4cdbe2(_0x5b75b8,_0xd0afc1,_0x10afd0){for(let _0x16d90a=_0x10afd0;_0x16d90a<_0xd0afc1['length'];_0x16d90a++){const _0x53a951=_0x665266(_0x5b75b8,_0xd0afc1[_0x16d90a]);_0x53a951&&(_0x53a951[0x0]['next']=_0x53a951[0x1],_0x53a951[0x1]['previous']=_0x53a951[0x0],_0xa110b6['add'](_0x53a951[0x0]),_0x11cef1['add'](_0x53a951[0x1]));}}function _0x665266(_0x5e3806,_0x418ee6){if(_0x5e3806['author']['id']!==_0x418ee6['author']['id'])return null;const _0x3c5051=_0x2be7ae['get'](_0x5e3806)(_0x5e3806,_0x418ee6,_0x27af06['get'](_0x5e3806),_0x27af06['get'](_0x418ee6));if(!_0x3c5051)return null;return _0x2be7ae['get'](_0x418ee6)(_0x5e3806,_0x418ee6,_0x27af06['get'](_0x5e3806),_0x27af06['get'](_0x418ee6))?_0x3c5051[0x1]['commentThread']&&_0x3c5051[0x1]['commentThread']['length']?null:_0x3c5051:null;}_0x3eff47['size']&&this['_refreshSuggestionsChain'](_0x3eff47);}['_refreshAttributeSuggestionsChain'](_0xaee3c5){if(0x0==_0xaee3c5['length'])return;const _0x1bef7a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48f6a0=>'attribute'==_0x48f6a0['type']&&_0x48f6a0['_isDataLoaded']),_0x1e5018=[],_0x4bdf03=new Map();for(const _0x14398d of _0x1bef7a){const _0x19cbe6=_0x59a68d(_0x14398d['attributes']);_0x4bdf03['has'](_0x19cbe6)||(_0x4bdf03['set'](_0x19cbe6,_0x1e5018['length']),_0x1e5018['push']([]));const _0x4f1a24=_0x4bdf03['get'](_0x19cbe6);_0x1e5018[_0x4f1a24]['push'](_0x14398d);}!(function(){_0x1e5018['sort']((_0x574b65,_0x266ea0)=>{const _0x15ddf2=_0x574b65[0x0]['createdAt'],_0x1812c1=_0x266ea0[0x0]['createdAt'];return _0x15ddf2==_0x1812c1?_0x574b65[0x0]['attributes']['groupId']<_0x266ea0[0x0]['attributes']['groupId']?-0x1:0x1:_0x15ddf2<_0x1812c1?-0x1:0x1;});for(const _0x34b174 of _0x1e5018)_0x34b174['sort']((_0x21c8f3,_0x3d61ea)=>_0x21c8f3['id']<_0x3d61ea['id']?-0x1:0x1);}());for(let _0x290dac=0x0;_0x290dac<_0x1e5018['length'];_0x290dac++){if(0x0==_0x1e5018[_0x290dac]['length'])continue;const _0x565e20=[];for(let _0x227d18=_0x290dac+0x1;_0x227d18<_0x1e5018['length'];_0x227d18++)0x0!=_0x1e5018[_0x227d18]['length']&&_0x4d9471(_0x1e5018[_0x290dac],_0x1e5018[_0x227d18])&&_0x565e20['push'](_0x227d18);for(const _0x503620 of _0x565e20)_0x1e5018[_0x290dac]=_0x1e5018[_0x290dac]['concat'](_0x1e5018[_0x503620]),_0x1e5018[_0x503620]=[];}for(const _0x2094a1 of _0x1e5018)for(let _0x46d212=0x0;_0x46d212<_0x2094a1['length'];_0x46d212++){const _0x124f28=_0x2094a1[_0x46d212+0x1]||null;_0x2094a1[_0x46d212]['next']!==_0x124f28&&(_0x2094a1[_0x46d212]['next']=_0x124f28);}for(const _0x28d53e of _0x1e5018)for(let _0x48ff6f=0x0;_0x48ff6f<_0x28d53e['length'];_0x48ff6f++){const _0x262f07=_0x28d53e[_0x48ff6f-0x1]||null;_0x28d53e[_0x48ff6f]['previous']!==_0x262f07&&(_0x28d53e[_0x48ff6f]['previous']=_0x262f07);}function _0x4d9471(_0x1daffc,_0x3ddb4b){if(_0x1daffc[0x0]['attributes']['groupId']!==_0x3ddb4b[0x0]['attributes']['groupId']&&_0x1daffc[0x0]['author']!==_0x3ddb4b[0x0]['author'])return!0x1;if(!function(_0x524f56,_0x4590d0){if(!_0x524f56['hasComments']&&!_0x4590d0['hasComments'])return!0x0;if(_0x524f56['hasComments']&&_0x4590d0['hasComments'])return!0x1;if(_0x524f56['hasComments']&&_0x4590d0['createdAt']<_0x524f56['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4590d0['hasComments']&&_0x524f56['createdAt']<_0x4590d0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1daffc[0x0],_0x3ddb4b[0x0]))return!0x1;const _0x5f0d7e=Tt(_0x1daffc[0x0]['attributes'],'groupId'),_0x42f344=Tt(_0x3ddb4b[0x0]['attributes'],'groupId');if(!_0x47c0f7(_0x5f0d7e,_0x42f344))return!0x1;return!!_0x1daffc['every'](_0x2fdc16=>_0x3ddb4b['some'](_0x17ceb5=>_0x2fdc16['getFirstRange']()['isEqual'](_0x17ceb5['getFirstRange']())))&&_0x3ddb4b['every'](_0x27d477=>_0x1daffc['some'](_0x3e8c92=>_0x27d477['getFirstRange']()['isEqual'](_0x3e8c92['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4808d7){const _0x1b2903=Array['from'](_0x4808d7),_0x18cf2a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x527229=_0x18cf2a['filter'](_0x28bc7e=>!_0x4808d7['has'](_0x28bc7e)),_0x4ff385=new Map(_0x1b2903['map'](_0xe10495=>[_0xe10495,this['_suggestionFactory']['getSuggestionCallback'](_0xe10495['type'],_0xe10495['subType'],'join')])),_0x636f10=new Map(_0x18cf2a['map'](_0x3e6587=>[_0x3e6587,_0x3e6587['getRanges']()]));for(let _0x1f6a67=0x0;_0x1f6a67<_0x1b2903['length'];_0x1f6a67++){if(_0x190e2a(this,_0x1b2903[_0x1f6a67],_0x1b2903,_0x1f6a67+0x1))return!0x0;}for(let _0x13dec8=0x0;_0x13dec8<_0x1b2903['length'];_0x13dec8++){if(_0x190e2a(this,_0x1b2903[_0x13dec8],_0x527229,0x0))return!0x0;}return!0x1;function _0x190e2a(_0x4e3fce,_0x3bf9f1,_0x409d05,_0x12911c){for(let _0x41bfae=_0x12911c;_0x41bfae<_0x409d05['length'];_0x41bfae++){const _0x258c95=_0x409d05[_0x41bfae];if(_0x258c95['type']!==_0x3bf9f1['type']||_0x258c95['author']['id']!==_0x3bf9f1['author']['id']||_0x258c95['subType']!==_0x3bf9f1['subType'])continue;if(!Jt(_0x3bf9f1,_0x258c95))continue;if('attribute'==_0x3bf9f1['type']&&_0x3bf9f1['data']['oldValue']!=_0x258c95['data']['oldValue'])continue;if('attribute'==_0x3bf9f1['type']&&_0x4e3fce['_isBlockAttribute'](_0x3bf9f1['data']['key']))continue;if('formatBlock'==_0x3bf9f1['type']){const _0x1320c8=_0x4e3fce['editor']['model'],_0x5c52a1=_0x3bf9f1['getContainedElement']();if(_0x5c52a1&&(_0x1320c8['schema']['isObject'](_0x5c52a1)||_0x1320c8['schema']['isLimit'](_0x5c52a1)))continue;}const _0x32e2a3=_0x4ff385['get'](_0x3bf9f1),_0x2069d3=_0x636f10['get'](_0x3bf9f1),_0x3f29d4=_0x636f10['get'](_0x258c95),_0xc62717=_0x3bf9f1['commentThread']&&_0x3bf9f1['commentThread']['length'],_0x11d437=_0x258c95['commentThread']&&_0x258c95['commentThread']['length'];if(!_0xc62717&&_0x32e2a3(_0x3f29d4,_0x2069d3))return _0x4e3fce['_joinSuggestions'](_0x258c95,_0x3bf9f1),_0x636f10['delete'](_0x3bf9f1),!0x0;if(!_0x11d437&&_0x32e2a3(_0x2069d3,_0x3f29d4))return _0x4e3fce['_joinSuggestions'](_0x3bf9f1,_0x258c95),_0x636f10['delete'](_0x258c95),!0x0;}return!0x1;}}['_joinSuggestions'](_0x11c500,_0x538114){if(_0x11c500['isMultiRange']){for(const _0x18e5f3 of _0x538114['getRanges']())_0x11c500['addRange'](_0x18e5f3);}else{const _0x37711a=_0x538114['getFirstRange']()['end'];this['_setSuggestionRange'](_0x11c500,this['_model']['createRange'](_0x11c500['getFirstRange']()['start'],_0x37711a));}_0x538114['removeMarkers']();}['_getMarkerAnnouncementText'](_0x292689,_0x280979,_0x502a3b){const _0x233619=_0x292689['startsWith']('format')||_0x292689['startsWith']('attribute')?'FORMATTING':_0x292689['toUpperCase']();return o(this['editor']['locale'],_0x280979+'_'+_0x233619+'_SUGGESTION_ANNOUNCEMENT',_0x502a3b);}['_initAriaMarkerChangeAnnouncements'](){const _0x2f6f07=this['editor'];if(!_0x2f6f07['ui'])return;const {ariaLiveAnnouncer:_0x1bfdda}=_0x2f6f07['ui'];_0x44dd52(this['_model'],({left:_0x32aba9,entered:_0x397f4b})=>{for(const _0x9e10f8 of _0x32aba9){const {group:_0x59183a,type:_0x435716}=this['_splitMarkerName'](_0x9e10f8['name']);if('suggestion'===_0x59183a){_0x1bfdda['announce'](this['_getMarkerAnnouncementText'](_0x435716,'LEAVE'));break;}}for(const _0x3da00e of _0x397f4b){const {group:_0x37c585,type:_0x4bb6ed}=this['_splitMarkerName'](_0x3da00e['name']);if('suggestion'===_0x37c585){_0x1bfdda['announce'](this['_getMarkerAnnouncementText'](_0x4bb6ed,'ENTER',_0x31f961(_0x20d347)));break;}}});}['_processAttributeChanges'](_0x464521){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3329bf=this['editor'],_0x5278b5=_0x3329bf['model']['document']['differ']['getChanges']();if(0x0==_0x5278b5['length'])return!0x1;const _0x2b80c2=[],_0x452e7f=_0x5278b5['filter'](_0x249556=>'attribute'==_0x249556['type']),_0x36c463=_0x5278b5['filter'](_0x3d2336=>'insert'==_0x3d2336['type']&&'$text'!=_0x3d2336['name']),_0x567aab=_0x5278b5['filter'](_0x528e1f=>'remove'==_0x528e1f['type']&&'$text'!=_0x528e1f['name']);for(const _0x2685ea of _0x452e7f)_0x2b80c2['push']({'key':_0x2685ea['attributeKey'],'newValue':_0x2685ea['attributeNewValue'],'oldValue':_0x2685ea['attributeOldValue'],'range':Pt(_0x2685ea['range'],_0x3329bf['model'])});for(const _0x33c76d of _0x36c463){const _0x565ca9=_0x567aab['find'](_0x34bbcc=>_0x34bbcc['position']['isEqual'](_0x33c76d['position']));_0x565ca9&&_0x2b80c2['push']({'key':m,'newValue':_0x33c76d['name'],'oldValue':_0x565ca9['name'],'range':_0x3329bf['model']['createRangeOn'](_0x33c76d['position']['nodeAfter'])});}return 0x0!=_0x2b80c2['length']&&this['_reduceExistingSuggestions'](_0x464521,_0x2b80c2);}['_processAttributeSuggestions'](_0x1eb017){let _0x4f014e=!0x1;const _0x3dd601=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a5da5=>_0x2a5da5['data']['newRange']&&_0x2a5da5['name']['startsWith']('suggestion:attribute:'));for(const _0x157f00 of _0x3dd601){const {subType:_0x3a6717,id:_0x11231a}=this['_splitMarkerName'](_0x157f00['name']),_0x4690bd=_0x3a6717['split']('|')[0x0];for(const _0x7b2513 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x7b2513['id']!=_0x11231a&&'attribute'==_0x7b2513['type']&&_0x7b2513['data']&&_0x7b2513['data']['key']==_0x4690bd&&_0x7b2513['getFirstRange']()['isIntersecting'](_0x157f00['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x7b2513,_0x157f00['data']['newRange'],_0x1eb017),_0x4f014e=!0x0);}return _0x4f014e;}['_recordAttributeChanges'](_0x1ba7cf){this['_recordAttributeSuggestions']=!0x0,_0x1ba7cf();}['_isRegisteredAttribute'](_0x254443){const _0x3c8fc4=this['_isBlockAttribute'](_0x254443),_0x5c7e55=this['_inlineAttributeKeys']['has'](_0x254443);return _0x3c8fc4||_0x5c7e55;}['_reduceExistingSuggestions'](_0x19f883,_0x5acf30){if(0x0==_0x5acf30['length'])return!0x1;let _0x381586=!0x1;for(const _0x387221 of _0x5acf30){const _0xdd9c99=this['_findSuggestions'](_0x387221['range'],'attribute')['filter'](_0x1d557c=>!_0x1d557c['meta']['isNextTo'])['map'](_0x37513a=>_0x37513a['suggestion']),_0x556e33=_0x59a68d({'newValue':_0x387221['newValue']});_0xdd9c99['filter'](_0x435312=>{const [_0x5a7d45,_0x2874b5]=_0x435312['subType']['split']('|');return _0x5a7d45==_0x387221['key']&&_0x2874b5!=_0x556e33;})['forEach'](_0x5a9b66=>{this['_reduceSuggestionAttributeRange'](_0x5a9b66,_0x387221['range'],_0x19f883),_0x381586=!0x0;});}return _0x381586;}['_reduceSuggestionAttributeRange'](_0x38fddd,_0x27b801,_0x230a0a){const _0xfeb305=_0x38fddd['getFirstRange']()['getDifference'](_0x27b801);0x0!==_0xfeb305['length']?0x1!==_0xfeb305['length']?this['_breakSuggestionMarker'](_0x38fddd,_0x27b801['start'],_0x27b801['end']):this['_setSuggestionRange'](_0x38fddd,_0xfeb305[0x0]):_0x230a0a['removeMarker'](_0x38fddd['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x27fabd){this['_editor']=_0x27fabd,this['_model']=_0x27fabd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xd5f2b,_0x5e471b,_0x23f18e,_0x5eeecc,_0x2aded2,_0x20987c){return new u(this['_model'],{'type':_0xd5f2b,'subType':_0x5e471b,'id':_0x23f18e,'author':_0x5eeecc,'creator':_0x5eeecc,'attributes':_0x2aded2,'onAttributesChange':_0x20987c,'onAccept':(..._0x220363)=>this['getSuggestionCallback'](_0xd5f2b,_0x5e471b,'accept')(..._0x220363),'onDiscard':(..._0x2803f5)=>this['getSuggestionCallback'](_0xd5f2b,_0x5e471b,'discard')(..._0x2803f5)});}['registerCustomCallback'](_0x144215,_0x926183,_0x86fb46,_0x583db4){const _0x14e1b9=_0x144215+':'+_0x926183+':'+_0x86fb46;this['_customCallbacks']['set'](_0x14e1b9,_0x583db4);}['getSuggestionCallback'](_0x157f07,_0x31b2b8,_0x53d1a2){const _0x1b9956=_0x157f07+':'+_0x31b2b8+':'+_0x53d1a2;return this['_customCallbacks']['get'](_0x1b9956)||this['_defaultCallbacks']['get'](_0x157f07+':'+_0x53d1a2);}['_registerDefaultCallbacks'](){const _0x3bdcbc=()=>!0x1,_0x20b900=_0xf0ca2f=>{_0xf0ca2f['sort']((_0x4d937f,_0x1a14cd)=>_0x4d937f['start']['isBefore'](_0x1a14cd['start'])?0x1:-0x1),this['_model']['change'](_0x45f696=>{for(const _0x26d5be of _0xf0ca2f){let _0x4104d5;_0x4104d5=_0x26d5be['end']['isAtEnd']&&_0x26d5be['end']['parent']==_0x26d5be['start']['nodeAfter']?_0x45f696['createSelection'](_0x26d5be['start']['nodeAfter'],'on'):_0x45f696['createSelection'](_0x26d5be),this['_model']['deleteContent'](_0x4104d5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4c0a34=(_0x2ae318,_0x3c3da5)=>{_0x3c3da5&&this['_model']['change'](_0x23e02d=>{const {commandName:_0x31970b,commandParams:_0x3f150c=[]}=_0x3c3da5,_0x45de48=_0x2ae318['map'](_0xc12610=>(Vt(_0xc12610)&&(_0xc12610=this['_model']['createRange'](_0xc12610['end'])),_0xc12610))['filter'](_0x5b2662=>'$graveyard'!==_0x5b2662['root']['rootName']);if(_0x45de48['length']<0x1)return;const _0x118101=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3461ac=>_0x3bc28a['fromRange'](_0x3461ac));_0x23e02d['setSelection'](_0x45de48);for(const _0x13a2de of this['_editor']['commands']['commands']())_0x13a2de['refresh']();_0x3f150c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31970b,..._0x3f150c);const _0x137ab6=_0x118101['filter'](_0x4fc83b=>'$graveyard'!=_0x4fc83b['root']['rootName']);_0x137ab6['length']>0x0&&_0x23e02d['setSelection'](_0x137ab6);for(const _0x2071b8 of _0x118101)_0x2071b8['detach']();});},_0x1311ca=(_0x1a32e8,_0x295d35)=>0x1==_0x1a32e8['length']&&0x1==_0x295d35['length']&&_0x1a32e8[0x0]['end']['isEqual'](_0x295d35[0x0]['start']),_0x1734d2=(_0x47f78a,_0x3b97c0,_0xf79686,_0xcf3bab)=>Ht(_0x47f78a,_0x3b97c0,_0xf79686,_0xcf3bab,this['_model'])?[_0x47f78a,_0x3b97c0]:Ht(_0x3b97c0,_0x47f78a,_0xcf3bab,_0xf79686,this['_model'])?[_0x3b97c0,_0x47f78a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3bdcbc),this['_defaultCallbacks']['set']('insertion:discard',_0x20b900),this['_defaultCallbacks']['set']('insertion:join',_0x1311ca),this['_defaultCallbacks']['set']('insertion:chain',_0x1734d2),this['_defaultCallbacks']['set']('deletion:accept',_0x20b900),this['_defaultCallbacks']['set']('deletion:discard',_0x3bdcbc),this['_defaultCallbacks']['set']('deletion:join',_0x1311ca),this['_defaultCallbacks']['set']('deletion:chain',_0x1734d2),this['_defaultCallbacks']['set']('formatInline:accept',_0x4c0a34),this['_defaultCallbacks']['set']('formatInline:discard',_0x3bdcbc),this['_defaultCallbacks']['set']('formatInline:join',_0x1311ca),this['_defaultCallbacks']['set']('formatInline:chain',_0x3bdcbc),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4c0a34),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3bdcbc),this['_defaultCallbacks']['set']('formatBlock:join',_0x1311ca),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3bdcbc),this['_defaultCallbacks']['set']('attribute:accept',_0x3bdcbc),this['_defaultCallbacks']['set']('attribute:discard',(_0x52b5c2,_0x1855ba)=>{if(!_0x1855ba)return;const _0x332f36=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x7a5abb=>{if(_0x1855ba['key']==m)for(const _0x538e68 of _0x52b5c2){const _0x28e694=_0x538e68['start']['nodeAfter'],_0x515d2d=_0x1855ba['oldValue'];_0x7a5abb['rename'](_0x28e694,_0x515d2d);}else{if(_0x332f36['_isBlockAttribute'](_0x1855ba['key'])){for(const _0x4d3217 of _0x52b5c2)void 0x0!==_0x1855ba['oldValue']?_0x7a5abb['setAttribute'](_0x1855ba['key'],_0x1855ba['oldValue'],_0x4d3217['start']['nodeAfter']):_0x7a5abb['removeAttribute'](_0x1855ba['key'],_0x4d3217['start']['nodeAfter']);}else{for(const _0x345fef of _0x52b5c2)_0x1855ba['oldValue']?_0x7a5abb['setAttribute'](_0x1855ba['key'],_0x1855ba['oldValue'],_0x345fef):_0x7a5abb['removeAttribute'](_0x1855ba['key'],_0x345fef);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1311ca);}}function Ot(_0x258d10,_0x3d4237,_0x5120f5){for(const _0x59da9e of _0x3d4237['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59da9e['root']==_0x59da9e)return!0x1;if(!_0x5120f5['containsItem'](_0x59da9e))return!0x1;if(_0x258d10['isObject'](_0x59da9e)||_0x258d10['isLimit'](_0x59da9e))return!0x0;}return!0x1;}function Vt(_0x341252){return _0x341252['end']['parent']==_0x341252['start']['nodeAfter']&&_0x341252['end']['isAtStart'];}function Ut(_0x2f187b,_0x2bfb0e,_0x16cd00,_0x58db2a){const _0x41766d=_0x303559=>!_0x303559['item']['is']('$textProxy')&&!_0x58db2a['isObject'](_0x303559['item']),_0x2a35a3=_0x2f187b['start']['getLastMatchingPosition'](_0x41766d),_0x1b4976=_0x2f187b['end']['getLastMatchingPosition'](_0x41766d,{'direction':'backward'});return(!_0x2f187b['start']['isEqual'](_0x2a35a3)||!_0x2f187b['end']['isEqual'](_0x1b4976))&&(_0x2a35a3['isBefore'](_0x1b4976)?_0x16cd00['updateMarker'](_0x2bfb0e,{'range':_0x16cd00['createRange'](_0x2a35a3,_0x1b4976)}):_0x16cd00['removeMarker'](_0x2bfb0e),!0x0);}function Gt(_0x1f3224){return _0x59a68d(_0x1f3224);}function Ft(_0x210147){const _0x83fa21=_0x210147['start']['nodeAfter'];return _0x83fa21&&_0x83fa21['is']('element');}function Pt(_0x222522,_0x493274){return null==_0x222522['end']['nodeBefore']&&_0x222522['end']['parent']==_0x222522['start']['nodeAfter']?Lt(_0x222522['start']['nodeAfter'],_0x493274):_0x222522;}function Lt(_0x44af46,_0x12991a){const _0x34a4db=_0x12991a['schema']['isObject'](_0x44af46)||_0x12991a['schema']['isSelectable'](_0x44af46);return _0x12991a['createRange'](_0x12991a['createPositionAt'](_0x44af46,'before'),_0x34a4db?_0x12991a['createPositionAfter'](_0x44af46):_0x12991a['createPositionAt'](_0x44af46,'end'));}function Ht(_0x2a2a75,_0x4740da,_0x215b05,_0x50a5d2,_0x54bb55){if(_0x2a2a75['next'])return!0x1;if(!Jt(_0x2a2a75,_0x4740da))return!0x1;if(_0x215b05['end']['isEqual'](_0x50a5d2['start']))return!0x0;if(_0x2a2a75['type']!=_0x4740da['type'])return!0x1;if(!_0x215b05['end']['isTouching'](_0x50a5d2['start']))return!0x1;const _0x5db05c=_0x54bb55['createRange'](_0x215b05['end'],_0x50a5d2['start'])['getWalker']();for(const _0x16395d of _0x5db05c)if(['elementStart','elementEnd']['includes'](_0x16395d['type'])&&_0x54bb55['schema']['isLimit'](_0x16395d['item']))return!0x1;return!0x0;}function Jt(_0x536677,_0x5d177c){if(!_0x536677['_isDataLoaded']||!_0x5d177c['_isDataLoaded'])return!0x1;const _0x35b741=new Set(Object['keys'](_0x536677['attributes'])),_0x50bfaa=new Set(Object['keys'](_0x5d177c['attributes']));if(_0x35b741['delete']('groupId'),_0x50bfaa['delete']('groupId'),0x0==_0x35b741['size']&&0x0==_0x50bfaa['size'])return!0x0;if(_0x35b741['size']!=_0x50bfaa['size'])return!0x1;const _0x1d54ee={..._0x536677['attributes']},_0x2fcc75={..._0x5d177c['attributes']};return delete _0x1d54ee['groupId'],delete _0x2fcc75['groupId'],JSON['stringify'](_0x1d54ee)==JSON['stringify'](_0x2fcc75);}function qt(_0x4259f0,_0x54a463){const _0x3c7247=zt(_0x4259f0['attributes']),_0x54ce0e=zt(_0x54a463);if(!_0x4259f0['_isDataLoaded'])return!0x1;for(const _0x5e6f6d of Object['keys'](_0x54ce0e))if(!_0x47c0f7(_0x3c7247[_0x5e6f6d],_0x54ce0e[_0x5e6f6d]))return!0x1;return!0x0;}function zt(_0x2b609a){const _0xb9bec9=Object['assign']({},_0x2b609a);return delete _0xb9bec9['skipNestingCheck'],delete _0xb9bec9['tablePasteChainId'],_0xb9bec9;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x59481e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5e613b,_0x3f251f,_0x572bf8,_0x3e1d12){super(),this['model']=_0x3f251f,this['view']=_0x572bf8,this['commentThreadController']=_0x3e1d12,this['_editor']=_0x5e613b,this['_acceptCommand']=_0x5e613b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5e613b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x6fcc05,_0x1f336d)=>_0x6fcc05||_0x1f336d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1efb28=>_0x1efb28&&this['_editor']['model']['canEditAt'](_0x3f251f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x521c28=>_0x521c28&&this['_editor']['model']['canEditAt'](_0x3f251f['getRanges']())),this['_pendingAction']=null,_0x572bf8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x572bf8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x572bf8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x572bf8,'change:isDirty',()=>{_0x572bf8['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 _0x1a3ccb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1a3ccb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x45a339{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f0692,_0x1345fd,_0x3dafb6,_0x34a90d){super(_0x1f0692),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1249b0(_0x1f0692,o(_0x1f0692,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1345fd['authoredAt']),this['bind']('authoredAt')['to'](_0x1345fd),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',_0x1345fd,'authoredAt',this,'descriptionParts',(_0x2c9169,_0x56a89d,_0x5ed44a)=>{const _0x464ed1=_0x5ed44a['map'](_0x45dd0d=>ls(_0x45dd0d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2c9169-0x1,_0x1345fd['author']['name'],_0x56a89d?_0x34a90d['formatDateTime'](_0x56a89d):'',new DOMParser()['parseFromString'](_0x464ed1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x269b0e(),this['focusTracker']=new _0x4d488c(),this['keystrokes']=new _0x452cad(),this['focusCycler']=new _0x5a7f21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x176ff3=>_0x176ff3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1345fd,this['_localUser']=_0x3dafb6,this['_config']=_0x34a90d,_0x34a90d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1ed323(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2215e8}=this['_config'];this['commentsListView']=new _0x2215e8(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',_0x2a3068=>_0x2a3068+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xba49ab,_0x57f81f)=>_0xba49ab||!!_0x57f81f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2a1d19}=this['_config'],_0x27db13=new _0x2a1d19(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x14c72f=_0x27db13['commentInputView'];return _0x27db13['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x14c72f,'value',(_0x3feffa,_0x29011a,_0x1bdb64)=>!!_0x1bdb64||_0x3feffa&&!_0x29011a),_0x14c72f['on']('submit',(_0x17e97d,_0x18c9ff)=>{this['fire']('addComment',_0x18c9ff),_0x14c72f['editor']['setData']('');}),_0x14c72f['on']('cancel',()=>this['focus']()),_0x14c72f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x27db13;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x403201,_0x597f67,_0x68e4f4,_0x290e3c){super(_0x403201,_0x597f67,_0x68e4f4,_0x290e3c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x256db7=>_0x256db7&&_0x256db7[0x0]?_0x256db7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3374c9,_0x18ac21)=>{let _0x4f7bdc='';for(const _0x80d26e of _0x3374c9)_0x4f7bdc+='<p>'+ls(_0x80d26e['content'],_0x80d26e['color'])+'</p>';return _0x18ac21?_0x4f7bdc:_0x2a1180(_0x4f7bdc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x290e3c['SuggestionView'](_0x403201,_0x597f67,{'formatDateTime':_0x290e3c['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 _0x19386e=this['bindTemplate'],_0x32c816=[this['suggestionView']];return this['commentsListView']&&_0x32c816['push'](this['commentsListView']),this['commentThreadInputView']&&_0x32c816['push'](this['commentThreadInputView']),_0x32c816['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x19386e['if']('isActive','ck-suggestion-wrapper--active'),_0x19386e['to']('type',_0x548436=>'ck-suggestion-'+_0x548436),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':_0x19386e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x32c816};}['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 _0x45a339{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3da503,_0x12ea2f,_0x21b6fa){super(_0x3da503),this['_model']=_0x12ea2f,this['_config']=_0x21b6fa,this['set']('description',''),this['bind']('authoredAt')['to'](_0x12ea2f),this['acceptButton']=this['_createButton'](o(_0x3da503,'Accept\x20suggestion'),_0x5a67df['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3da503,'Discard\x20suggestion'),_0x5a67df['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1d85c2(_0x3da503,_0x12ea2f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x269b0e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d488c(),this['keystrokes']=new _0x452cad(),this['focusCycler']=new _0x5a7f21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5d984d=>_0x5d984d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x48eaf5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x48eaf5['innerHTML']=this['description'],this['on']('change:description',(_0x2dadc6,_0x20cf69,_0x208206)=>{_0x48eaf5['innerHTML']=_0x208206;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x13c80b=this['bindTemplate'],_0x2707f8=[{'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':_0x13c80b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x13c80b['to']('authoredAt',_0x973013=>this['_config']['formatDateTime'](_0x973013))}]}]},{'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']&&_0x2707f8['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':_0x2707f8}]};}['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'](_0x5b73bf,_0x1d6658,_0x4c18dd,_0x36351e,_0x6896b7){const _0x484b85=new _0x4ca81e(this['locale']);return _0x484b85['set']({'label':_0x5b73bf,'icon':_0x1d6658,'tooltip':!0x0,'tooltipPosition':_0x6896b7}),_0x484b85['extendTemplate']({'attributes':{'class':_0x4c18dd}}),_0x484b85['on']('execute',()=>{this['fire'](_0x36351e,this['_model']['id']);}),_0x484b85;}['_setupKeyboardNavigation'](){const _0x5dc985=this['element'];this['keystrokes']['listenTo'](_0x5dc985);for(const _0x48dff5 of this['focusables'])this['focusTracker']['add'](_0x48dff5['element']),this['keystrokes']['listenTo'](_0x48dff5['element']);this['keystrokes']['set']('enter',(_0x356d1b,_0x3733b4)=>{_0x5dc985===_0x356d1b['target']&&(this['focusCycler']['focusFirst'](),_0x3733b4());}),this['keystrokes']['set']('esc',(_0x589633,_0x5e8ba5)=>{_0x5dc985!==_0x589633['target']&&(this['focus'](),_0x5e8ba5());});}}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 _0x48c5b5{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x47d1f4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x3aaa66){super(_0x3aaa66),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x18f1a4=this['editor']['config'];_0x18f1a4['define']('trackChanges.SuggestionThreadView',re),_0x18f1a4['define']('trackChanges.SuggestionView',ce),_0x18f1a4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x18f1a4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x46db5a,_0x34c13f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39cbf5,_0xe4afca]of this['_handleControllerBuffer']){const _0x43c8d0=this['_suggestionToController']['has'](_0x39cbf5);_0x43c8d0||_0xe4afca?_0x43c8d0&&_0xe4afca&&this['_destroyController'](_0x39cbf5):this['_initializeController'](_0x39cbf5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x46db5a,_0x34c13f);}['init'](){const _0x36f713=this['editor'],_0x560ab9=_0x36f713['plugins']['get']('TrackChangesEditing'),_0xe4adc7=_0x36f713['plugins']['get']('Annotations'),_0x1fa8ff=_0x36f713['plugins']['get']('EditorAnnotations'),_0x4f628b=_0x36f713['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1fa8ff['addSourceCollector'](()=>{const _0xbcbadb=[];for(const [_0x178c89,_0x285558]of Array['from'](this['_suggestionToController'])){const _0xae365a=_0x178c89['getAllAdjacentSuggestions'](),_0x168c18=[];for(const _0x1f07cd of _0xae365a){if(!_0x1f07cd['isInContent'])continue;if(_0x1f07cd['isMultiRange']){_0x168c18['push'](..._0x1f07cd['getRanges']());continue;}const _0x16cb61=_0x1f07cd['getFirstRange']();if(_0x168c18['length']>0x0){const _0x5b8200=_0x168c18[0x0]['getJoined'](_0x16cb61);if(_0x5b8200){_0x168c18[0x0]=_0x5b8200;continue;}}_0x168c18['push'](_0x16cb61);}_0xbcbadb['push']([_0x285558['view'],_0x168c18]);}return _0xbcbadb;}),this['listenTo'](_0x560ab9,'suggestionLoaded',(_0x42a60e,_0x745dcf)=>{this['listenTo'](_0x745dcf,'change:previous',(_0x1f006d,_0x16ceef,_0x30acf9,_0x37fe36)=>{_0x745dcf['isInContent']&&(null==_0x30acf9?(this['_updateController'](_0x37fe36['head']),this['_handleSuggestionControllerDelayed'](_0x745dcf,!0x1)):(this['_updateController'](_0x30acf9['head']),null==_0x37fe36&&this['_handleSuggestionControllerDelayed'](_0x745dcf,!0x0)));}),null!==_0x745dcf['previous']?this['_updateController'](_0x745dcf['head']):this['_handleSuggestionControllerDelayed'](_0x745dcf,!0x1);}),this['listenTo'](_0x560ab9,'suggestionUnloaded',(_0x4e2199,_0x4b24d7,_0x3477b1)=>{this['stopListening'](_0x4b24d7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4b24d7),this['_suggestionToController']['has'](_0x4b24d7)&&this['_destroyController'](_0x4b24d7),_0x3477b1&&this['_updateController'](_0x3477b1['head']);}),this['listenTo'](_0x560ab9,'suggestionChanged',(_0x3a69fa,_0x16f7a5)=>{this['_updateController'](_0x16f7a5);}),this['listenTo'](_0xe4adc7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4f628b,'addComment',(_0x1d1bf3,{threadId:_0x4963b2,isFromAdapter:_0x490ee1})=>{if(_0x490ee1||!_0x560ab9['hasSuggestion'](_0x4963b2))return;const _0x2dd179=_0x560ab9['getSuggestion'](_0x4963b2);this['_suggestionToController']['get'](_0x2dd179)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4821a9=this['editor']['plugins']['get']('Annotations'),_0x146821=this['editor']['plugins']['get']('TrackChangesEditing'),_0x226dba=Array['from'](_0x4821a9['activeAnnotations'],_0x5d34a3=>_0x5d34a3['innerView'])['filter'](_0x12ba1c=>this['_viewToController']['has'](_0x12ba1c)),_0x159fd2=[];for(const _0x1dea01 of _0x226dba){const _0x47f187=this['_viewToController']['get'](_0x1dea01)['model']['getAllAdjacentSuggestions']();_0x159fd2['push'](..._0x47f187['reduce']((_0x3ea1e6,_0x2c4a0f)=>[..._0x3ea1e6,..._0x2c4a0f['getMarkerNames']()],[]));}_0x146821['activeMarkers']=_0x159fd2;}['_addUIComponentsToFactory'](){const _0x3b576b=this['editor'],_0x1707af=_0x3b576b['locale'],_0xbbadcd=o(_0x1707af,'Track\x20changes'),_0x3c2b6a=new Wt([{'type':'switchbutton','model':new _0x3fd37c({'withText':!0x0,'isToggleable':!0x0,'label':_0xbbadcd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x299862 of _0x3c2b6a)if(me(_0x299862)){const _0x3c7749=_0x3b576b['commands']['get'](_0x299862['model']['commandName']);_0x299862['model']['bind']('isOn','isEnabled')['to'](_0x3c7749,'value','isEnabled');}_0x3b576b['ui']['componentFactory']['add']('trackChanges',_0x51bcc1=>this['_createToolbarButton'](_0x51bcc1,_0x3c2b6a,_0xbbadcd)),_0x3b576b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x18e4c6=>this['_createMenuBarMenu'](_0x18e4c6,_0x3c2b6a,_0xbbadcd));}['_createToolbarButton'](_0x3e1e68,_0x491c8f,_0x59b1f7){const _0xfced0f=Qt(_0x3e1e68,_0x3cc44d),_0x4a5953=this['editor']['commands']['get']('trackChanges');_0xfced0f['buttonView']['set']({'tooltip':_0x59b1f7,'label':_0x59b1f7,'icon':he}),_0xfced0f['buttonView']['bind']('isOn')['to'](_0x4a5953,'value'),_0xfced0f['buttonView']['on']('execute',()=>{_0x4a5953['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xfced0f,_0x491c8f,{'role':'menu'});const _0x1cb9a4=[];for(const _0x507413 of _0x491c8f)me(_0x507413)&&_0x1cb9a4['push'](this['editor']['commands']['get'](_0x507413['model']['commandName']));const _0x1e3f30=_0xfced0f['buttonView'];return _0x1e3f30['actionView']['unbind']('isEnabled'),_0x1e3f30['arrowView']['unbind']('isEnabled'),_0x1e3f30['actionView']['bind']('isEnabled')['to'](_0x4a5953,'isEnabled'),_0x1e3f30['arrowView']['bind']('isEnabled')['toMany'](_0x1cb9a4,'isEnabled',(..._0x38edca)=>_0x38edca['some'](_0x56ca89=>_0x56ca89)),_0xfced0f['on']('execute',_0x4539ea=>{this['editor']['execute'](_0x4539ea['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xfced0f;}['_createMenuBarMenu'](_0xcc612e,_0x368792,_0x102314){const _0x43efa5=new Yt(_0xcc612e),_0x3e1ae9=this['editor']['commands']['get']('trackChanges');_0x43efa5['buttonView']['set']({'label':_0x102314,'icon':he});const _0x51436a=new Zt(_0xcc612e);for(const _0x2f09e0 of _0x368792){if('separator'==_0x2f09e0['type']){_0x51436a['items']['add'](new Xt(_0xcc612e));continue;}const _0x3b923b=new te(_0xcc612e,_0x43efa5),_0x26df15=new _0x2c5493(_0xcc612e),_0x4bd520=_0x2f09e0['model'];_0x26df15['bind'](...Object['keys'](_0x4bd520))['to'](_0x4bd520),_0x26df15['delegate']('execute')['to'](_0x43efa5),_0x26df15['on']('execute',()=>{this['editor']['execute'](_0x4bd520['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b923b['children']['add'](_0x26df15),_0x51436a['items']['add'](_0x3b923b);}return _0x43efa5['bind']('isEnabled')['to'](_0x3e1ae9,'isEnabled'),_0x43efa5['panelView']['children']['add'](_0x51436a),_0x43efa5;}['_initializeController'](_0x1e4961){const _0x43d559=this['editor'],_0xb4ee0=_0x43d559['config'],_0x359fc0=_0x43d559['plugins']['get']('Annotations'),_0x12d582=_0x43d559['plugins']['get']('CommentsRepository'),_0x41bf56=_0x43d559['plugins']['get']('EditorAnnotations'),_0x5ee613=_0x43d559['plugins']['get'](_0x47d1f4)['me'],_0x4aed60=_0xb4ee0['get']('trackChanges')['SuggestionThreadView'],_0x3e28af=_0xb4ee0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4d9e41,CommentThreadInputView:_0x439e3c}=_0x43d559['plugins']['get']('CommentsUI');let _0x3d92fd,_0x19c770,_0x54c715;this['_annotationViews']['has'](_0x1e4961['id'])?(_0x19c770=this['_annotationViews']['get'](_0x1e4961['id']),_0x3d92fd=_0x19c770['mainView']):(_0x3d92fd=new _0x4aed60(_0x43d559['locale'],_0x1e4961,_0x5ee613,{'disableComments':this['_disableComments'],'editorConfig':_0xb4ee0['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xb4ee0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xb4ee0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xb4ee0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5412e2(_0xb4ee0['get']('locale')),'CommentView':_0xb4ee0['get']('comments')['CommentView'],'CommentsListView':_0x4d9e41,'CommentThreadInputView':_0x439e3c,'SuggestionView':_0x3e28af}),_0x3d92fd['suggestionView']['acceptButton']['on']('execute',()=>{_0x43d559['editing']['view']['focus']();}),_0x3d92fd['suggestionView']['discardButton']['on']('execute',()=>{_0x43d559['editing']['view']['focus']();}),_0x19c770=_0x359fc0['createAnnotationView'](this['editor']['locale'],_0x3d92fd),_0x19c770['bind']('isDirty')['to'](_0x3d92fd,'isDirty'),_0x19c770['bind']('length')['to'](_0x3d92fd),_0x19c770['bind']('type')['to'](_0x3d92fd,'type',_0x18cbdf=>'suggestion-'+_0x18cbdf),_0x3d92fd['on']('escape',()=>{_0x54c715['fire']('escape');}),this['_annotationViews']['set'](_0x1e4961['id'],_0x19c770));const _0x29de68=_0x12d582['createCommentThreadController'](_0x1e4961['commentThread'],_0x3d92fd),_0xa16cac=new ae(_0x43d559,_0x1e4961,_0x3d92fd,_0x29de68),_0x24a741=_0x1e4961['getAllAdjacentSuggestions']()['filter'](_0x4344ac=>_0x4344ac['isInContent']);_0x3d92fd['descriptionParts']=_0x43d559['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24a741),this['_suggestionToController']['set'](_0x1e4961,_0xa16cac),this['_viewToController']['set'](_0x3d92fd,_0xa16cac),_0x54c715=_0x359fc0['createAnnotation']({'view':_0x19c770,'target':()=>{const _0x3d9d1a=[],_0x253a00=_0x1e4961['getAllAdjacentSuggestions']()['filter'](_0x1fd4e4=>_0x1fd4e4['isInContent']);for(const _0x38bf17 of _0x253a00)_0x3d9d1a['push'](..._0x38bf17['getMarkers']());return _0x5b0cdd(_0x43d559['editing'],_0x3d9d1a);},'type':()=>'suggestion-'+_0xa16cac['view']['type']}),_0x12d582['_bindAnnotationToEditors'](_0x3d92fd,_0x54c715),_0x359fc0['add'](_0x54c715),_0x41bf56['registerAnnotation'](_0x54c715);}['_destroyController'](_0x2b4071){const _0x12bd47=this['editor']['plugins']['get']('CommentsRepository'),_0x3a0eba=this['editor']['plugins']['get']('Annotations'),_0x532ff7=this['_suggestionToController']['get'](_0x2b4071),_0x529de7=_0x532ff7['view'],_0x41aa49=_0x3a0eba['getByInnerView'](_0x529de7);_0x12bd47['_unbindEditors'](_0x529de7),_0x41aa49&&_0x3a0eba['remove'](_0x41aa49),this['_suggestionToController']['delete'](_0x2b4071),this['_viewToController']['delete'](_0x529de7),_0x532ff7['destroy']();}['_updateController'](_0x27b3c6){if(!_0x27b3c6['isInContent']||!this['_suggestionToController']['has'](_0x27b3c6))return;const _0xec0707=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49f6ce=this['_suggestionToController']['get'](_0x27b3c6),_0x3f5c6c=_0x27b3c6['getAllAdjacentSuggestions']();_0x49f6ce['view']['descriptionParts']=_0xec0707['descriptionFactory']['getDescriptions'](_0x3f5c6c);}['destroy'](){for(const _0xb58a17 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb58a17);for(const _0x3685ea of this['_annotationViews']['values']())_0x3685ea['mainView']['destroy']();super['destroy']();}}function me(_0x52b1d2){return'model'in _0x52b1d2;}class k extends _0x48c5b5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x37ddfd){this['editor']['plugins']['get'](p)['adapter']=_0x37ddfd;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d992c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d992c);}['getSuggestions']({skipNotAttached:_0x1a482d=!0x1,toJSON:_0x4b1bea=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1a482d,'toJSON':_0x4b1bea});}['getSuggestion'](_0x340a77){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x340a77);}}const T=['Pagination'];class P extends _0x48c5b5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4a2885=this['editor'];if(_0x4a2885['config']['define']('trackChangesData.editorCreator',_0x5df44c=>{const _0x17063a=_0x4a2885['model']['document']['getRootNames']()['reduce']((_0x58b383,_0xeeb5e)=>(_0x58b383[_0xeeb5e]='',_0x58b383),{});return _0x4a2885['constructor']['create'](_0x17063a,_0x5df44c);}),'function'!=typeof _0x4a2885['config']['get']('trackChangesData')['editorCreator'])throw new _0x4f63a0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x351c15){return N(this['editor'],!0x0,_0x351c15);}['getDataWithDiscardedSuggestions'](_0x476d98){return N(this['editor'],!0x1,_0x476d98);}}class D extends _0x48c5b5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x149053){super(_0x149053),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(_0x3b7fdc){return void 0x0!==_0x3b7fdc['getRootsAttributes'];}async function N(_0x32c1fc,_0x5e64a4,_0x34f4dc){const _0x3d58de=_0x38a4f7(_0x32c1fc,T);_0x3d58de['plugins']['push'](p,D),_0x3d58de['rootsAttributes']=v(_0x32c1fc)?_0x32c1fc['getRootsAttributes']():void 0x0;const _0x237b77=document['createDocumentFragment'](),_0x578439=_0x32c1fc['config']['get']('trackChangesData')['editorCreator'],_0x3267b6=await _0x578439(_0x3d58de,()=>function(_0x4617d7){const _0x1a6270=document['createElement']('div');return _0x4617d7['appendChild'](_0x1a6270),_0x1a6270;}(_0x237b77));!function(_0x1e1be4,_0xb6da3a){const _0x3ce2d7=_0x1e1be4['model']['document']['getRootNames']()['reduce']((_0x360828,_0x54d1cd)=>(_0x360828[_0x54d1cd]=_0x1e1be4['data']['get']({'rootName':_0x54d1cd}),_0x360828),{}),_0x3e078e=_0x1e1be4['plugins']['get']('Users')['users']['map'](_0x1409db=>({'id':_0x1409db['id'],'name':_0x1409db['name']})),_0x5069a7=_0x1e1be4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54db23=_0x1e1be4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x332a97=_0xb6da3a['plugins']['get']('Users'),_0x5548f5=_0xb6da3a['plugins']['get']('TrackChangesEditing'),_0x2d2f33=_0xb6da3a['plugins']['get']('CommentsRepository');for(const _0x17d338 of _0x2d2f33['getCommentThreads']())_0x17d338['remove']();for(const _0x50b49a of _0x3e078e)_0x332a97['getUser'](_0x50b49a['id'])||_0x332a97['addUser'](_0x50b49a);_0x332a97['me']||_0x332a97['useAnonymousUser']();for(const _0x2c0b61 of _0x54db23)_0x2d2f33['addCommentThread'](_0x2c0b61);for(const _0x535c90 of _0x5069a7)_0x5548f5['addSuggestionData'](_0x535c90);_0xb6da3a['data']['set'](_0x3ce2d7);}(_0x32c1fc,_0x3267b6),_0x3267b6['execute'](_0x5e64a4?'acceptAllSuggestions':'discardAllSuggestions');const _0x123db4=v(_0x3267b6)?_0x3267b6['getFullData'](_0x34f4dc):_0x3267b6['data']['get'](_0x34f4dc);return await _0x3267b6['destroy'](),_0x123db4;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x4ba4b5,PendingActions as _0x2e42cd,icons as _0x26ee55}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1a35b0,ObservableMixin as _0x10bfdb,uid as _0x4cf4cc,insertToPriorityArray as _0x45ffc7,priorities as _0x2219d1,logWarning as _0x124f83,getEnvKeystrokeText as _0x4bd46a,FocusTracker as _0x222156,KeystrokeHandler as _0x2e0953,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x273313,View as _0x1c2486,ViewCollection as _0xf17cd7,FocusCycler as _0x2d9018,ViewModel as _0x4ab10e,createDropdown as Qt,SplitButtonView as _0x5b5fce,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x433705}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x106ae5,hashObject as _0x4704f5,surroundingMarkersDetector as _0x280cba,FOCUS_ANNOTATION_KEYSTROKE as _0x61a5af,AriaDescriptionView as _0x593cee,setupThreadKeyboardNavigation as _0xe55352,trimHtml as _0xe1f01c,UserView as _0x5d3b1c,LateFocusButtonView as _0x14e887,getDateTimeFormatter as _0x37339d,getAllMarkersDomElementsSorted as _0x58c05a,sanitizeEditorConfig as _0x3f774b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x49e6c5,LiveRange as _0x1a312e,LivePosition as _0x4317c1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x530c8b,toWidget as _0x2c0c3d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x38eea0,set as _0x43969f,isEqual as _0x11e4b7,unset as _0x467e43,omit as Tt}from'lodash-es';import{Delete as _0x4bb97e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2cfbc4,ShiftEnter as _0x4ecb7f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x517ee6,_0x3bf32a){super(_0x517ee6),this['_enabledCommands']=_0x3bf32a,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 _0x491a0c of this['editor']['commands']['commands']())_0x491a0c['affectsData']&&!this['_enabledCommands']['has'](_0x491a0c)&&_0x491a0c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x33a00c of this['editor']['commands']['commands']())_0x33a00c['affectsData']&&!this['_enabledCommands']['has'](_0x33a00c)&&_0x33a00c['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x2096aa,_0xb1fbf9){super(_0x2096aa),this['_suggestions']=_0xb1fbf9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4961fe){const _0xc6318d=this['_suggestions']['get'](_0x4961fe);if(!_0xc6318d)throw new _0x1a35b0('track-changes-accept-suggestion-not-found',this);const _0x435a80=_0xc6318d['getRanges']();this['editor']['model']['canEditAt'](_0x435a80)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xc6318d);}}class R extends ts{['_suggestions'];constructor(_0x218181,_0x3fb995){super(_0x218181),this['_suggestions']=_0x3fb995,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x553757){const _0x1e4f3a=this['_suggestions']['get'](_0x553757);if(!_0x1e4f3a)throw new _0x1a35b0('track-changes-discard-suggestion-not-found',this);const _0x3c1d78=_0x1e4f3a['getRanges']();this['editor']['model']['canEditAt'](_0x3c1d78)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1e4f3a);}}function ls(_0x6ec706,_0x318c53){let _0x4fc1da='';return _0x4fc1da+=_0x6ec706['split']('*')['map']((_0x4c1e87,_0x6ed73a)=>_0x6ed73a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4c1e87)+'</span>':nn(_0x4c1e87))['join'](''),_0x318c53&&(_0x4fc1da+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x318c53['value']+'\x22\x20title=\x22'+_0x318c53['title']+'\x22></span>'),_0x4fc1da;}function nn(_0x124d05){const _0x11daa7=document['createElement']('span');return _0x11daa7['innerText']=_0x124d05,_0x11daa7['innerHTML'];}function ss(_0x4f29ec){return _0x4f29ec['sort']((_0x2d163f,_0xd1927d)=>'deletion'==_0x2d163f['type']&&'deletion'!=_0xd1927d['type']?-0x1:'deletion'!=_0x2d163f['type']&&'deletion'==_0xd1927d['type']?0x1:0x0);}function to(_0x4bc1df,_0x248712){let _0x3aeeb6,_0x21f181=0x0;const _0x17dddb=[],_0x3086f7=_0x248712['schema'];for(;_0x21f181<_0x4bc1df['length'];){const _0xcc9b43=_0x4bc1df[_0x21f181],_0x407598=_0x4bc1df[_0x21f181+0x1];_0x3aeeb6||(_0x3aeeb6=_0x248712['createPositionBefore'](_0xcc9b43)),on(_0x248712,_0xcc9b43,_0x407598)||(_0x17dddb['push'](_0x248712['createRange'](_0x3aeeb6,_0x3086f7['isObject'](_0xcc9b43)?_0x248712['createPositionAfter'](_0xcc9b43):_0x248712['createPositionAt'](_0xcc9b43,'end'))),_0x3aeeb6=null),_0x21f181++;}return _0x17dddb;}function on(_0x21809a,_0x59095c,_0x568ae9){if(!_0x568ae9)return!0x1;const _0x5085cc=_0x21809a['createPositionAfter'](_0x59095c),_0x5727d2=_0x21809a['createPositionBefore'](_0x568ae9);return _0x5085cc['isTouching'](_0x5727d2);}function rs(_0x4aff76,_0x283890,_0x38c858){for(;_0x38c858['length'];){const _0x4c2da2=_0x38c858['splice'](0x0,0x64);_0x4aff76['change'](()=>{for(const _0x9ef91f of _0x4c2da2)_0x9ef91f['isInContent']&&_0x283890['execute'](_0x9ef91f['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1cba6e,_0x2b41af,_0x58da39){super(_0x1cba6e),this['_command']=_0x2b41af,this['_suggestions']=_0x58da39,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1bd658=Array['from'](this['_suggestions']['values']())['some'](_0x1c9624=>_0x1c9624['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1bd658;}['execute'](){const _0x113610=ss(Array['from'](this['_suggestions']['values']()));for(const _0x337539 of _0x113610){const _0x55bcd4=_0x337539['getRanges']();if(!this['editor']['model']['canEditAt'](_0x55bcd4))return;}rs(this['editor']['model'],this['_command'],_0x113610);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x6f4577,_0x50ca91,_0x49f4b3){super(_0x6f4577),this['_command']=_0x50ca91,this['_suggestions']=_0x49f4b3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2aac41=this['editor']['model']['document']['selection'],_0x2ef696=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x49b2e9,_0x2c2d22){const _0x562565=Array['from'](_0x49b2e9['getRanges']()),_0x5304b0=new Set();for(const _0x1af2f9 of _0x2c2d22)if(_0x1af2f9['isInContent']){for(const _0x214668 of _0x562565)for(const _0x244ba1 of _0x1af2f9['getRanges']())(_0x214668['isIntersecting'](_0x244ba1)||_0x49b2e9['isCollapsed']&&!_0x1af2f9['isMultiRange']&&_0x1af2f9['next']&&_0x244ba1['end']['isTouching'](_0x214668['start']))&&_0x5304b0['add'](_0x1af2f9);}return _0x5304b0;}(_0x2aac41,_0x2ef696),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x28fd09=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2d4929 of _0x28fd09){const _0x5a9167=_0x2d4929['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a9167))return;}rs(this['editor']['model'],this['_command'],_0x28fd09);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x10bfdb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x181954,_0x385c4f){super(),this['id']=_0x385c4f['id'],this['type']=_0x385c4f['type'],this['subType']=_0x385c4f['subType']||null,this['author']=_0x385c4f['author'],this['creator']=_0x385c4f['creator']||_0x385c4f['author'],this['isExternal']=Boolean(_0x385c4f['attributes']&&_0x385c4f['attributes']['@external']),this['data']=null,this['_model']=_0x181954,this['_onAccept']=_0x385c4f['onAccept'],this['_onDiscard']=_0x385c4f['onDiscard'],this['_onAttributesChange']=_0x385c4f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x385c4f['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 _0x311b21=this;for(;_0x311b21['previous'];)_0x311b21=_0x311b21['previous'];return _0x311b21;}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'](_0x38f4d9){this['_markerNames']['add'](_0x38f4d9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x51cef0=>this['_model']['markers']['get'](_0x51cef0))['filter'](_0xd96e3e=>_0xd96e3e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1309fe=>{for(const _0x174d9b of this['getMarkers']())_0x1309fe['removeMarker'](_0x174d9b);}),this['_markerNames']['clear']();}['removeMarker'](_0x2f30bc){this['_model']['change'](_0x2b1424=>{_0x2b1424['removeMarker'](_0x2f30bc);}),this['_markerNames']['delete'](_0x2f30bc);}['addRange'](_0x3f6f42){const _0x5e729f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5e729f),this['_model']['change'](_0x2897fa=>{_0x2897fa['addMarker'](_0x5e729f,{'range':_0x3f6f42,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x401df8){for(const _0x58dff2 of this['getRanges']())if(_0x58dff2['isIntersecting'](_0x401df8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x123576=>_0x123576['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x508be5,_0x42993c)=>[..._0x508be5,..._0x42993c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x27ecf8=this['getRanges']();if(0x1!=_0x27ecf8['length'])return null;const _0x103ec4=_0x27ecf8[0x0],_0xe03844=_0x103ec4['start']['nodeAfter'],_0x8c0377=_0x103ec4['end']['nodeBefore'];return _0xe03844 instanceof _0x49e6c5?_0xe03844!=_0x8c0377?null:_0xe03844: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 _0x4a3880=[];let _0x5d1d49=this['head'];for(;_0x5d1d49;)_0x4a3880['push'](_0x5d1d49),_0x5d1d49=_0x5d1d49['next'];return _0x4a3880;}['setAttribute'](_0x3672a3,_0x39d441){const _0x22543f=_0x38eea0(this['attributes']);_0x43969f(_0x22543f,_0x3672a3,_0x39d441),_0x11e4b7(_0x22543f,this['attributes'])||(this['attributes']=_0x22543f,this['_onAttributesChange'](_0x22543f));}['removeAttribute'](_0x22ce1e){const _0xbb3f6f=_0x38eea0(this['attributes']);_0x467e43(_0xbb3f6f,_0x22ce1e),_0x11e4b7(_0xbb3f6f,this['attributes'])||(this['attributes']=_0xbb3f6f,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 _0x4cf4cc()['substr'](0x1,0x5);}}function o(_0x32c8f9,_0x2548a1,_0x44483e){const t=_0x32c8f9['t'];switch(_0x2548a1){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',_0x44483e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44483e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44483e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44483e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44483e);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',_0x44483e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44483e);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',_0x44483e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44483e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44483e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44483e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44483e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44483e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44483e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44483e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44483e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44483e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44483e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44483e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44483e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44483e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44483e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44483e);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'},_0x44483e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44483e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44483e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44483e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44483e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44483e);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'},_0x44483e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44483e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44483e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44483e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44483e);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'},_0x44483e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44483e);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'},_0x44483e);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'},_0x44483e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44483e);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'},_0x44483e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44483e);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'},_0x44483e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44483e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44483e);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'},_0x44483e);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'},_0x44483e);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'},_0x44483e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44483e);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'},_0x44483e);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'},_0x44483e);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'},_0x44483e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2548a1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x400c0d,_0xacceb7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x400c0d,this['_locale']=_0xacceb7;}['getDescriptions'](_0x254211){const _0x3ce6f7=[],_0x57edf6=new Set(),_0x213eb3=new Set();for(let _0x5e5585=0x0;_0x5e5585<_0x254211['length'];_0x5e5585++){const _0x579295=_0x254211[_0x5e5585];if(!_0x579295['isInContent'])continue;const _0x3b1f39=this['_handleCustomCallbackDescription'](_0x579295);if(_0x3b1f39){if(null!=_0x579295['subType']){if(_0x57edf6['has'](_0x579295['subType']))continue;_0x57edf6['add'](_0x579295['subType']);}_0x3ce6f7['push'](_0x3b1f39);}else{if('attribute'!=_0x579295['type'])'insertion'!=_0x579295['type']&&'deletion'!=_0x579295['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3ce6f7,_0x579295,_0x254211[_0x5e5585+0x1]);else{const _0x3bcd81=_0x579295['data']['key'];if(_0x213eb3['has'](_0x3bcd81))continue;_0x213eb3['add'](_0x579295['data']['key']),_0x3bcd81==m?this['_handleRenameSuggestionDescription'](_0x3ce6f7,_0x579295):this['_handleAttributeSuggestionDescription'](_0x3ce6f7,_0x579295);}}}return this['_resolveDescriptionItems'](_0x3ce6f7);}['registerDescriptionCallback'](_0x418626){this['_customCallbacks']['push'](_0x418626);}['registerElementLabel'](_0x1de7ac,_0x2d0ea1,_0x3852be=_0x2219d1['normal']){'function'==typeof _0x1de7ac?_0x45ffc7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1de7ac,'label':_0x2d0ea1,'priority':_0x3852be}):this['_itemLabels']['set'](_0x1de7ac,_0x2d0ea1);}['registerAttributeLabel'](_0x11f80b,_0x5e2f45){this['_attributeLabels']['set'](_0x11f80b,_0x5e2f45);}['getItemLabel'](_0x25ee4f,_0x309a85=0x1){let _0xe5a6a2;for(const _0x4e914f of this['_itemLabelsCallbacks'])if(_0x4e914f['matchingCallback'](_0x25ee4f)){_0xe5a6a2=_0x4e914f['label'];break;}return _0xe5a6a2||(_0xe5a6a2=this['_itemLabels']['get'](_0x25ee4f['name'])),_0xe5a6a2?_0xe5a6a2(_0x309a85):0x1!==_0x309a85?_0x309a85+'\x20'+_0x25ee4f['name']+'s':''+_0x25ee4f['name'];}['_addDescriptionItems'](_0x54ce2c,_0xfa48c4){const _0x2d2b27=_0xfa48c4['getFirstRange']()['getWalker'](),_0xfdb781='insertion'==_0xfa48c4['type']?'add':'remove';for(const _0x253383 of _0x2d2b27){const _0x156156=_0x253383['item'],_0x4730c1=_0x54ce2c[_0x54ce2c['length']-0x1];if(_0x156156['is']('$textProxy'))_0x4730c1&&_0x4730c1['type']['indexOf']('Container')>-0x1&&_0x54ce2c['pop'](),_0x4730c1&&'text'==_0x4730c1['type']?_0x4730c1[_0xfdb781]+=_0x156156['data']:_0x54ce2c['push']({'type':'text','add':'add'==_0xfdb781?_0x156156['data']:'','remove':'remove'==_0xfdb781?_0x156156['data']:''});else{if(this['_schema']['isObject'](_0x156156)){const _0x589282=_0x156156;if(_0x4730c1&&_0x4730c1['type']['indexOf']('Container')>-0x1&&_0x54ce2c['pop'](),'elementEnd'==_0x253383['type'])continue;_0x4730c1&&_0x4730c1['type']==_0xfdb781+'Object'&&_0x4730c1['element']['name']==_0x589282['name']?_0x4730c1['quantity']++:_0x54ce2c['push']({'type':_0xfdb781+'Object','element':_0x589282,'quantity':0x1}),_0x2d2b27['skip'](_0xdcdbd0=>!('elementEnd'==_0xdcdbd0['type']&&_0xdcdbd0['item']==_0x156156));}else{if(this['_schema']['checkChild'](_0x156156,'$text')||_0x156156['is']('element','softBreak')){const _0x5e1dbf=_0x156156;if('add'==_0xfdb781&&'elementStart'==_0x253383['type']||'remove'==_0xfdb781&&'elementEnd'==_0x253383['type'])continue;if(_0x4730c1&&-0x1==_0x4730c1['type']['indexOf']('Container')){'text'==_0x4730c1['type']&&(_0x4730c1[_0xfdb781]+='\x0a');continue;}let _0x886b5c;if(_0x886b5c='add'==_0xfdb781?_0x5e1dbf['nextSibling']&&!this['_schema']['isObject'](_0x5e1dbf['nextSibling'])?_0x5e1dbf['nextSibling']:null:_0x5e1dbf['previousSibling']&&!this['_schema']['isObject'](_0x5e1dbf['previousSibling'])?_0x5e1dbf['previousSibling']:null,_0x5e1dbf['isEmpty']||_0x886b5c&&_0x886b5c['isEmpty']){const _0x3eaa41=_0x886b5c&&_0x886b5c['isEmpty']?_0x886b5c:_0x5e1dbf;_0x4730c1&&_0x4730c1['type']==_0xfdb781+'EmptyContainer'&&_0x4730c1['element']['name']==_0x3eaa41['name']?_0x4730c1['quantity']++:_0x54ce2c['push']({'type':_0xfdb781+'EmptyContainer','element':_0x3eaa41,'quantity':0x1});}else _0x54ce2c['push']({'type':_0xfdb781+'Container','element':_0x5e1dbf});}}}}}['_resolveDescriptionItems'](_0x19edf2){const _0x2cd287=this['_locale'],_0x552c04=[],_0x2b5d4b=[],_0x1d5e3a=[];for(const _0x5e2821 of _0x19edf2)switch(_0x5e2821['type']){case'text':if(_0x5e2821['add']=_0x5e2821['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5e2821['remove']=_0x5e2821['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5e2821['add']&&''!=_0x5e2821['remove']){_0x552c04['push']({'type':'replace','content':o(_0x2cd287,'REPLACE_TEXT',['\x22'+_0x5e2821['remove']+'\x22','\x22'+_0x5e2821['add']+'\x22'])});continue;}if(null!=_0x5e2821['add']['match'](/^ +$/)){_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Insert:*\x20%0',o(_0x2cd287,'ELEMENT_SPACE',_0x5e2821['add']['length']))});continue;}if(null!=_0x5e2821['remove']['match'](/^ +$/)){_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Remove:*\x20%0',o(_0x2cd287,'ELEMENT_SPACE',_0x5e2821['remove']['length']))});continue;}if(''!=_0x5e2821['add']){_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Insert:*\x20%0','\x22'+_0x5e2821['add']+'\x22')});continue;}_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Remove:*\x20%0','\x22'+_0x5e2821['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Insert:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Remove:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'addContainer':_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Split:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'removeContainer':_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Merge:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'addFormat':_0x2b5d4b['push'](_0x5e2821['key']);continue;case'removeFormat':_0x1d5e3a['push'](_0x5e2821['key']);continue;default:_0x552c04['push'](_0x5e2821);}if(_0x2b5d4b['length']){const _0x5732ac=_0x2b5d4b['map'](_0x5e0bd4=>this['_attributeLabels']['has'](_0x5e0bd4)?this['_attributeLabels']['get'](_0x5e0bd4):_0x5e0bd4)['join'](',\x20');_0x552c04['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5732ac)});}if(_0x1d5e3a['length']){const _0x3f6ed7=_0x1d5e3a['map'](_0x492cec=>this['_attributeLabels']['has'](_0x492cec)?this['_attributeLabels']['get'](_0x492cec):_0x492cec)['join'](',\x20');_0x552c04['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3f6ed7)});}return _0x552c04;}['_handleCustomCallbackDescription'](_0x534e63){for(const _0x42e00d of this['_customCallbacks']){const _0x149627=_0x42e00d(_0x534e63);if(_0x149627&&'type'in _0x149627)return _0x149627;}}['_handleAttributeSuggestionDescription'](_0x2d2f4b,_0x35bf0b){const _0x5f50d0=_0x35bf0b['data'],_0x2852a8=void 0x0===_0x5f50d0['newValue']?'removeFormat':'addFormat';_0x2d2f4b['push']({'type':_0x2852a8,'key':_0x5f50d0['key']});}['_handleRenameSuggestionDescription'](_0x4dc55b,_0x541007){_0x4dc55b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x541007['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3c3e0d,_0x51ac9b,_0xba3cc6){if(this['_addDescriptionItems'](_0x3c3e0d,_0x51ac9b),_0xba3cc6&&_0xba3cc6['getFirstRange']()&&!_0x51ac9b['getFirstRange']()['end']['isEqual'](_0xba3cc6['getFirstRange']()['start'])){const _0x53e7c2=_0x3c3e0d[_0x3c3e0d['length']-0x1],_0x2dc599='insertion'==_0x51ac9b['type']?'add':'remove';_0x53e7c2&&'text'==_0x53e7c2['type']&&(_0x53e7c2[_0x2dc599]+='\x0a');}}}class V extends _0x4ba4b5{['afterInit'](){const _0x51c1a2=this['editor'],_0x1bb2fc=_0x51c1a2['plugins']['get']('TrackChangesEditing');_0x51c1a2['commands']['get']('showAIAssistant')&&_0x1bb2fc['enableCommand']('showAIAssistant');}}class U extends _0x4ba4b5{['afterInit'](){const _0x592f6d=this['editor'],_0x3be68a=_0x592f6d['locale'];if(!_0x592f6d['plugins']['has']('AlignmentEditing'))return;const _0x171e25=_0x592f6d['plugins']['get']('TrackChangesEditing');_0x171e25['enableDefaultAttributesIntegration']('alignment'),_0x171e25['registerBlockAttribute']('alignment'),_0x171e25['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3be68a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8338=this['editor'],_0x1249f4=_0x1f8338['locale'];_0x1f8338['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dfa8d=>{if('formatBlock'!=_0x4dfa8d['type'])return;const {data:_0x392e44}=_0x4dfa8d;if(_0x392e44&&'alignment'==_0x392e44['commandName']){const _0x298e59=_0x392e44['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1249f4,'*Format:*\x20%0',function(_0x1fbef1){switch(_0x1fbef1){case'left':return o(_0x1249f4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1249f4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1249f4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1249f4,'FORMAT_JUSTIFY_TEXT');}}(_0x298e59))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4ba4b5{['afterInit'](){const _0x5d0f68=this['editor'],_0x269500=_0x5d0f68['plugins']['get']('TrackChangesEditing'),_0x234f99=_0x5d0f68['locale'];for(const _0x52c6b0 of ti){if(!_0x5d0f68['plugins']['has'](_0x52c6b0))continue;const _0xa5f234=_0x52c6b0['slice'](0x0,-0x7)['toLowerCase'](),_0x3d1d4a='FORMAT_'+_0xa5f234['toUpperCase']();_0x269500['enableDefaultAttributesIntegration'](_0xa5f234),_0x269500['registerInlineAttribute'](_0xa5f234),_0x269500['descriptionFactory']['registerAttributeLabel'](_0xa5f234,o(_0x234f99,_0x3d1d4a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d7686=this['editor'],_0xc7fc4c=_0x2d7686['locale'],_0x2bd578=_0x2d7686['plugins']['get']('TrackChangesEditing');function _0x353725(_0x12e61f,_0x20d2a8){_0x2bd578['descriptionFactory']['registerDescriptionCallback'](_0x5ec747=>{if('formatInline'!=_0x5ec747['type'])return;const {data:_0x103407}=_0x5ec747;return _0x103407&&_0x103407['commandName']===_0x12e61f?_0x103407['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc7fc4c,'*Format:*\x20%0',_0x20d2a8)}:{'type':'format','content':o(_0xc7fc4c,'*Remove\x20format:*\x20%0',_0x20d2a8)}:void 0x0;});}_0x353725('bold',o(_0xc7fc4c,'FORMAT_BOLD')),_0x353725('italic',o(_0xc7fc4c,'FORMAT_ITALIC')),_0x353725('underline',o(_0xc7fc4c,'FORMAT_UNDERLINE')),_0x353725('code',o(_0xc7fc4c,'FORMAT_CODE')),_0x353725('strikethrough',o(_0xc7fc4c,'FORMAT_STRIKETHROUGH')),_0x353725('subscript',o(_0xc7fc4c,'FORMAT_SUBSCRIPT')),_0x353725('superscript',o(_0xc7fc4c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4ba4b5{['afterInit'](){const _0x112042=this['editor'],_0xa0e274=_0x112042['locale'];if(!_0x112042['plugins']['has']('BlockQuoteEditing'))return;const _0x5d099b=_0x112042['plugins']['get']('TrackChangesEditing'),_0x52ef35=this['editor']['commands']['get']('blockQuote');_0x5d099b['enableCommand']('blockQuote',(_0x2ac8f7,_0x239e32={})=>{const _0xc90c78=this['editor']['model']['document']['selection'],_0x502d96=_0x239e32&&void 0x0!==_0x239e32['forceValue']?_0x239e32['forceValue']:!_0x52ef35['value'];let _0x159ced=[];if(_0x502d96){const _0x260966=Array['from'](_0xc90c78['getSelectedBlocks']())['filter'](_0x7a8e38=>oo(_0x7a8e38)||function(_0x5d2a74,_0x43f79f){const _0x4a818b=_0x43f79f['checkChild'](_0x5d2a74['parent'],'blockQuote'),_0x2f09f1=_0x43f79f['checkChild'](['$root','blockQuote'],_0x5d2a74);return _0x4a818b&&_0x2f09f1;}(_0x7a8e38,this['editor']['model']['schema']));_0x159ced=to(_0x260966,_0x112042['model']);}else{const _0x10880c=Array['from'](_0xc90c78['getSelectedBlocks']())['filter'](_0x314d59=>oo(_0x314d59));_0x159ced=to(_0x10880c,_0x112042['model']);}_0x112042['model']['change'](()=>{for(const _0x3fb06a of _0x159ced)_0x5d099b['markBlockFormat'](_0x3fb06a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x502d96}]});});}),_0x5d099b['descriptionFactory']['registerDescriptionCallback'](_0x18534a=>{const {data:_0x491933}=_0x18534a;if(_0x491933&&'blockQuote'==_0x491933['commandName']){const _0x4fe5e6=o(_0xa0e274,'ELEMENT_BLOCK_QUOTE');return _0x491933['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa0e274,'*Set\x20format:*\x20%0',_0x4fe5e6)}:{'type':'format','content':o(_0xa0e274,'*Remove\x20format:*\x20%0',_0x4fe5e6)};}});}}function oo(_0x36a681){return'blockQuote'==_0x36a681['parent']['name'];}class L extends _0x4ba4b5{['afterInit'](){const _0xe8669=this['editor'];_0xe8669['plugins']['has']('CaseChange')&&(_0xe8669['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xe8669['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xe8669['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4ba4b5{['afterInit'](){const _0x643701=this['editor'];_0x643701['commands']['get']('ckbox')&&_0x643701['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x4ba4b5{['afterInit'](){const _0x4f9482=this['editor'];if(!_0x4f9482['plugins']['has']('CodeBlock'))return;const _0x452540=_0x4f9482['plugins']['get']('TrackChangesEditing'),_0x53014e=_0x4f9482['locale'],_0x589e39=_0x4f9482['config']['get']('codeBlock')['languages'],_0x5e2874=_0x4f9482['commands']['get']('codeBlock');_0x452540['enableCommand']('indentCodeBlock'),_0x452540['enableCommand']('outdentCodeBlock'),_0x452540['enableCommand']('codeBlock',(_0x74496a,_0x14e6c4={})=>{const _0xfb1e7b=_0x4f9482['model'],_0x3d8fe3=_0x4f9482['model']['document']['selection'],_0x120def=_0x14e6c4&&void 0x0!==_0x14e6c4['forceValue']?_0x14e6c4['forceValue']:!_0x5e2874['value'];let _0x2b15e7;_0x14e6c4['language']||(_0x14e6c4['language']=_0x589e39[0x0]['language']),_0x2b15e7=_0x120def?Array['from'](_0x3d8fe3['getSelectedBlocks']())['filter'](_0x1697a4=>eo(_0x1697a4)||function(_0x2a4696,_0x38ab7e){if(_0x2a4696['is']('rootElement')||_0x38ab7e['isLimit'](_0x2a4696))return!0x1;return _0x38ab7e['checkChild'](_0x2a4696['parent'],'codeBlock');}(_0x1697a4,_0xfb1e7b['schema'])):Array['from'](_0x3d8fe3['getSelectedBlocks']())['filter'](_0x45f00d=>eo(_0x45f00d));const _0xfb6cf4=to(_0x2b15e7,_0xfb1e7b);_0xfb1e7b['change'](()=>{for(const _0xe2dec2 of _0xfb6cf4)_0x452540['markBlockFormat'](_0xe2dec2,{'commandName':'codeBlock','commandParams':[{..._0x14e6c4,'forceValue':_0x120def}],'formatGroupId':'blockName'});});}),(_0x452540['descriptionFactory']['registerElementLabel']('codeBlock',_0x54fadf=>o(_0x53014e,'ELEMENT_CODE_BLOCK',_0x54fadf)),_0x452540['descriptionFactory']['registerDescriptionCallback'](_0x4a5837=>{if('formatBlock'!=_0x4a5837['type'])return;const _0x3572fc=_0x53014e['t'],{data:_0x34f1fd}=_0x4a5837;if(!_0x34f1fd||'codeBlock'!=_0x34f1fd['commandName'])return;const _0x1520be=_0x34f1fd['commandParams'][0x0]['language'],_0x2a088d=_0x3572fc(_0x589e39['find'](_0x18222e=>_0x18222e['language']===_0x1520be)['label'])['toLowerCase']();return _0x34f1fd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53014e,'*Set\x20format:*\x20%0',o(_0x53014e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2a088d+')')}:{'type':'format','content':o(_0x53014e,'*Remove\x20format:*\x20%0',o(_0x53014e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x42ecd4){return'codeBlock'==_0x42ecd4['name'];}class q extends _0x4ba4b5{['afterInit'](){const _0x4bab85=this['editor'];if(!_0x4bab85['plugins']['has']('CommentsEditing'))return;_0x4bab85['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x513c55,_0x40b937,_0xc5d347){const _0x5a7e46=[];for(const _0x5a7832 of _0x40b937['getItems']())_0x5a7832['hasAttribute'](_0x513c55)&&_0x5a7e46['push'](_0xc5d347['createRangeOn'](_0x5a7832));return _0x5a7e46;}function _e(_0x38d08f,_0x27fc9d,{showActiveMarker:_0xabfecf=!0x0}={}){const _0x96b8c3=_0x38d08f['plugins']['get']('TrackChangesEditing');return(_0x59a53f,_0x3d038d,_0x31bcfa)=>{if(!_0x31bcfa['consumable']['test'](_0x3d038d['markerRange'],_0x59a53f['name']))return;const _0x2fa740=_0x3d038d['markerRange']['getWalker'](),_0x143328=_0x3d038d['markerRange']['start'],_0x1e8f94=_0x38d08f['model']['schema'];let _0x29357d=null,_0x51acfb=null,_0x4d7b19=!0x1,_0x95f27=!0x1;for(const _0x1331fc of _0x2fa740){const _0x544caf=_0x1331fc['item'];_0x4d7b19=_0x4d7b19||_0x1e8f94['isContent'](_0x544caf);const _0x39592d=_0x31bcfa['mapper']['toViewElement'](_0x544caf);if(_0x39592d&&_0x39592d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1331fc['type']&&(_0x1e8f94['isBlock'](_0x544caf)&&!_0x1e8f94['isLimit'](_0x544caf)&&(_0x544caf['nextSibling']||_0x143328['isAtEnd']?_0x29357d&&_0x29357d['parent']==_0x544caf||(_0x29357d=_0x544caf,_0x60a8b7(_0x1331fc['previousPosition']),_0x95f27=!0x0):_0x51acfb=_0x51acfb||_0x1331fc['previousPosition']));}function _0x60a8b7(_0x3cad45){const {authorId:_0x247277}=_0x96b8c3['_splitMarkerName'](_0x3d038d['markerName']),_0x1a0e84=_0x31bcfa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x27fc9d,'data-author-id':_0x247277}),_0x1010d3=_0x31bcfa['mapper']['toViewPosition'](_0x3cad45);_0xabfecf&&_0x96b8c3['activeMarkers']['includes'](_0x3d038d['markerName'])&&_0x31bcfa['writer']['addClass']('ck-suggestion-marker--active',_0x1a0e84),_0x31bcfa['writer']['insert'](_0x1010d3,_0x1a0e84),_0x31bcfa['mapper']['bindElementToMarker'](_0x1a0e84,_0x3d038d['markerName']);}_0x4d7b19||_0x95f27||!_0x51acfb||_0x60a8b7(_0x51acfb);};}class z extends _0x4ba4b5{static get['requires'](){return[_0x4bb97e];}['init'](){const _0x206c2=this['editor'],_0x15c249=_0x206c2['plugins']['get']('TrackChangesEditing');_0x15c249['enableCommand']('delete');const _0x4e669c=_0x206c2['commands']['get']('deleteForward');_0x15c249['enableCommand']('deleteForward',(_0x2f0c49,_0x3fee00={})=>{const _0x278b5f=_0x206c2['model']['createSelection'](_0x206c2['model']['document']['selection']);_0x278b5f['isCollapsed']&&_0x206c2['model']['modifySelection'](_0x278b5f,{'direction':'forward','unit':_0x3fee00['unit']});const _0x388e2e=_0x278b5f['getFirstRange'](),_0x7dc25e=_0x1a312e['fromRange'](_0x388e2e);let _0x1e808e;_0x2f0c49(_0x3fee00),_0x1e808e='$graveyard'==_0x7dc25e['root']['rootName']?_0x206c2['model']['createRange'](_0x388e2e['start']):_0x206c2['model']['createRange'](_0x7dc25e['start'],_0x7dc25e['end']),_0x7dc25e['detach'](),_0x206c2['model']['enqueueChange'](_0x4e669c['buffer']['batch'],_0x36fc01=>{_0x4e669c['buffer']['lock'](),_0x36fc01['setSelection'](_0x36fc01['createRange'](_0x1e808e['end'])),_0x4e669c['buffer']['unlock']();});}),_0x206c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x206c2,'merge'),{'priority':'high'}),_0x206c2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x37fe73,_0x1bc603,_0x3531c2)=>{_0x3531c2['options']['showSuggestionHighlights']&&_e(_0x206c2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x37fe73,_0x1bc603,_0x3531c2);},{'priority':'high'}),_0x206c2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x245cc2,_0x2d7236,_0xfec1c7)=>{const _0x16669e=_0xfec1c7['mapper']['markerNameToElements'](_0x2d7236['markerName']);if(_0x16669e){for(const _0xb2b5e0 of _0x16669e)_0xb2b5e0['is']('uiElement')&&(_0xfec1c7['mapper']['unbindElementFromMarkerName'](_0xb2b5e0,_0x2d7236['markerName']),_0xfec1c7['writer']['remove'](_0xb2b5e0));}},{'priority':'high'});}}class K extends _0x4ba4b5{['afterInit'](){const _0x57325a=this['editor'];if(!_0x57325a['plugins']['has']('ListEditing'))return;const _0x1622d6=_0x57325a['locale'],_0x1718c6=_0x57325a['plugins']['get']('TrackChangesEditing'),_0x14c69f=_0x57325a['plugins']['has']('TodoListEditing'),_0x2f2718=!!_0x57325a['config']['get']('list.multiBlock');function _0x8f97da(_0x2cb342){return{'type':'format','content':''+o(_0x1622d6,'*Set\x20format:*\x20%0',_0x2cb342)};}function _0x5d09b2(_0x3b0af0){return{'type':'format','content':''+o(_0x1622d6,'*Remove\x20format:*\x20%0',_0x3b0af0)};}_0x1718c6['enableDefaultAttributesIntegration']('numberedList'),_0x1718c6['enableDefaultAttributesIntegration']('bulletedList'),_0x1718c6['enableDefaultAttributesIntegration']('customNumberedList'),_0x1718c6['enableDefaultAttributesIntegration']('customBulletedList'),_0x1718c6['enableDefaultAttributesIntegration']('indentList'),_0x1718c6['enableDefaultAttributesIntegration']('outdentList'),_0x1718c6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1718c6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1718c6['registerBlockAttribute']('listItemId'),_0x1718c6['registerBlockAttribute']('listType'),_0x1718c6['registerBlockAttribute']('listIndent'),_0x2f2718&&(_0x1718c6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1718c6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x14c69f&&(_0x1718c6['enableDefaultAttributesIntegration']('todoList'),_0x1718c6['enableDefaultAttributesIntegration']('checkTodoList'),_0x1718c6['registerBlockAttribute']('todoListChecked'),_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0x54da96=>{const {data:_0x48ceed}=_0x54da96;if(_0x48ceed&&'todoListChecked'==_0x48ceed['key'])return{'type':'format','content':_0x48ceed['newValue']?o(_0x1622d6,'*Check\x20item*'):o(_0x1622d6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x307cb4=>{if(_0x307cb4['batch']['isUndo'])return!0x1;let _0x58d492=!0x1;const _0x473c5f=_0x1718c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23924f=>'todoListChecked'===_0x1718c6['_getAttributeKey'](_0x23924f));for(const _0x16d2c8 of _0x473c5f){'todo'!=_0x16d2c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1718c6['_findSuggestions'](_0x16d2c8['getFirstRange'](),'attribute')['find'](_0x2dff43=>'listType'===_0x1718c6['_getAttributeKey'](_0x2dff43['suggestion']))||(_0x307cb4['removeMarker'](_0x16d2c8['getFirstMarker']()),_0x58d492=!0x0));}return _0x58d492;})),_0x1718c6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1622d6,'FORMAT_INDENT'));const _0xfb8c63={'type':'format','content':''};_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0x3a6a08=>{const {data:_0x1f37fb}=_0x3a6a08;if(!_0x1f37fb||'listType'!=_0x1f37fb['key'])return;let _0x53fa27=_0x3a6a08['head'];for(;_0x53fa27;){if(_0x53fa27['data']&&(('listStyle'==_0x53fa27['data']['key']||'listMarkerStyle'==_0x53fa27['data']['key'])&&(_0x53fa27['data']['newValue']&&'default'!=_0x53fa27['data']['newValue']||'default'!=_0x53fa27['data']['oldValue']&&!_0x1f37fb['newValue'])||!_0x2f2718&&_0x53fa27['data']['key']==m))return _0xfb8c63;_0x53fa27=_0x53fa27['next'];}if(null==_0x1f37fb['newValue'])switch(_0x1f37fb['oldValue']){case'bulleted':return _0x5d09b2(o(_0x1622d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d09b2(o(_0x1622d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d09b2(o(_0x1622d6,'ELEMENT_TODO_LIST'));}switch(_0x1f37fb['newValue']){case'bulleted':return _0x8f97da(o(_0x1622d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8f97da(o(_0x1622d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8f97da(o(_0x1622d6,'ELEMENT_TODO_LIST'));}}),_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0xd4e45f=>{const {data:_0x55aa1f}=_0xd4e45f;if(_0x55aa1f&&'listIndent'==_0x55aa1f['key'])return null==_0x55aa1f['newValue']||null==_0x55aa1f['oldValue']&&0x0==_0x55aa1f['newValue']?_0xfb8c63:void 0x0;}),_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0xe3b61a=>{if('attribute'!=_0xe3b61a['type'])return;const {data:_0x5a399e}=_0xe3b61a;if(!_0x5a399e||'listItemId'!=_0x5a399e['key'])return;const _0x48fe15=Ee(_0xe3b61a);return'newValue'==_0x48fe15?{'type':'format','content':o(_0x1622d6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48fe15?{'type':'format','content':o(_0x1622d6,'*Split:*\x20list\x20item')}:_0xfb8c63;}),_0x57325a['model']['document']['registerPostFixer'](_0x230669=>this['listItemIdFixer'](_0x230669)),_0x57325a['model']['document']['registerPostFixer'](_0x4311bd=>this['noTrackChangesFixer'](_0x4311bd)),_0x57325a['model']['document']['on']('change:data',(_0x1e583a,_0x150eb4)=>{if(_0x150eb4['isUndo']||!_0x150eb4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4afaa1){if(_0x4afaa1['batch']['isUndo']||!_0x4afaa1['batch']['isLocal'])return!0x1;let _0x1b643f=!0x1;const _0x2c86b8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3919d7=>_0x3919d7['data']&&'listItemId'==_0x3919d7['data']['key'])['filter'](_0x2ad595=>_0x2ad595['data']['newValue']&&_0x2ad595['data']['oldValue']);for(const _0xa89659 of _0x2c86b8)Ee(_0xa89659)||(_0x4afaa1['removeMarker'](_0xa89659['getFirstMarker']()),_0x1b643f=!0x0);return _0x1b643f;}['noTrackChangesFixer'](_0x1e87d4){if(_0x1e87d4['batch']['isUndo']||!_0x1e87d4['batch']['isLocal'])return!0x1;const _0x30ef53=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30ef53['trackChangesCommand']['value'])return!0x1;let _0x49e954=!0x1;const _0x245b41=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x19b3c7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x482d3d=>'attribute'==_0x482d3d['type'])['filter'](_0x362ea6=>_0x245b41['includes'](_0x362ea6['attributeKey']));if(0x0==_0x19b3c7['length'])return _0x49e954;for(const _0x3723f1 of _0x19b3c7){const _0x37b890=_0x30ef53['_findSuggestions'](_0x3723f1['range'],'attribute')['filter'](_0x56b6a2=>!_0x56b6a2['meta']['isNextTo'])['map'](_0x39b39b=>_0x39b39b['suggestion'])['filter'](_0x322150=>{const _0x487448=_0x30ef53['_getAttributeKey'](_0x322150);return _0x245b41['includes'](_0x487448);});if(_0x37b890['length']){for(const _0x5930b5 of _0x37b890)_0x1e87d4['removeMarker'](_0x5930b5['getFirstMarker']());_0x49e954=!0x0;}}return _0x49e954;}['assureChains'](){const _0x999c44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3793bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e4042;const _0x41ea3e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x46c883=>{if(_0x46c883['data']['oldRange']||!_0x46c883['data']['newRange'])return null;if(!_0x46c883['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x20cb96}=_0x999c44['_splitMarkerName'](_0x46c883['name']);if(!_0x999c44['hasSuggestion'](_0x20cb96))return null;const _0x9dd282=_0x999c44['getSuggestion'](_0x20cb96);return _0x3793bc['includes'](_0x9dd282['data']['key']);})['map'](_0x5a5738=>{const {id:_0x25f6db}=_0x999c44['_splitMarkerName'](_0x5a5738['name']),_0x584ae1=_0x999c44['getSuggestion'](_0x25f6db);return _0x4e4042=_0x584ae1['attributes']['groupId'],_0x584ae1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x41ea3e['size'])return;const _0x112955=_0x999c44['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b8a13=>'attribute'==_0x5b8a13['type']&&_0x5b8a13['data']&&_0x3793bc['includes'](_0x5b8a13['data']['key'])&&_0x5b8a13['attributes']['groupId']!=_0x4e4042)['map'](_0x522e33=>({'listItem':_0x522e33['getFirstRange']()['start']['nodeAfter'],'groupId':_0x522e33['attributes']['groupId']})),_0x58995f=new Set();for(const {groupId:_0x3b8626,listItem:_0x4c4078}of _0x112955)_0x41ea3e['has'](_0x4c4078)&&_0x58995f['add'](_0x3b8626);for(const _0x5d7cf1 of _0x999c44['getSuggestions']())_0x58995f['has'](_0x5d7cf1['attributes']['groupId'])&&_0x5d7cf1['setAttribute']('groupId',_0x4e4042);}['_supportLegacySuggestions'](){const _0x3d6b69=this['editor'],_0x3a4a62=_0x3d6b69['locale'],_0x5eb202=_0x3d6b69['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5eb202['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x16ccca,_0x52c645){const _0x37ab70=[];for(let _0x3a02ae of _0x16ccca)_0x3a02ae['start']['nodeAfter']===_0x3a02ae['end']['parent']&&(_0x3a02ae=_0x3d6b69['model']['createRange'](_0x3d6b69['model']['createPositionAt'](_0x3a02ae['start']['nodeAfter'],0x0))),_0x37ab70['push'](_0x3a02ae);_0x3d6b69['model']['change'](_0xbb560a=>{const _0x407648=_0x3d6b69['model']['document']['selection'],_0x4e0cc4=Array['from'](_0x407648['getRanges']())['map'](_0x49eeff=>_0x1a312e['fromRange'](_0x49eeff));_0xbb560a['setSelection'](_0x37ab70),_0x3d6b69['commands']['get'](_0x52c645['commandName'])['refresh'](),_0x52c645['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d6b69['execute'](_0x52c645['commandName'],..._0x52c645['commandParams']),_0xbb560a['setSelection'](_0x4e0cc4);for(const _0x43291f of _0x4e0cc4)_0x43291f['detach']();});}),_0x5eb202['descriptionFactory']['registerElementLabel'](function(_0xefc367){const _0x3b99a9=!_0x3d6b69['model']['schema']['isObject'](_0xefc367),_0x2320da=_0xefc367['previousSibling'],_0x5afe74=_0xefc367['nextSibling'],_0x12be78=_0xefc367['getAttribute']('listItemId'),_0x1ae5bf=!_0x2320da||_0x2320da['getAttribute']('listItemId')!==_0x12be78,_0x1375d6=!_0x5afe74||_0x5afe74['getAttribute']('listItemId')!==_0x12be78;return _0x3b99a9&&Boolean(_0x12be78)&&_0x1ae5bf&&_0x1375d6;},_0x554468=>o(_0x3a4a62,'ELEMENT_LIST_ITEM',_0x554468));}['_registerLegacyDescription'](){const _0x381fe3=this['editor'],_0x55f910=_0x381fe3['locale'];function _0x5091f4(_0x5ccd06){const _0x25d8ac=_0x381fe3['commands']['get']('bulletedList')['value'],_0x5da4cd=_0x381fe3['commands']['get']('numberedList')['value'];return'numberedList'===_0x5ccd06?_0x25d8ac:_0x5da4cd;}_0x381fe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5dbb8e){if('formatBlock'!=_0x5dbb8e['type'])return;const {data:_0x2ab903}=_0x5dbb8e;if(!_0x2ab903)return;let _0x4a799d,_0x1f69e5,_0x550ad5,_0x51a27a;switch(_0x2ab903['commandName']){case'bulletedList':_0x550ad5=_0x2ab903['commandParams'][0x0]['forceValue'],_0x51a27a=_0x5091f4(_0x2ab903['commandName']),_0x4a799d=_0x550ad5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x51a27a&&_0x381fe3['config']['get']('list.multiBlock')||(_0x4a799d='*Change\x20to:*\x20%0'),_0x1f69e5={'type':'format','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x550ad5=_0x2ab903['commandParams'][0x0]['forceValue'],_0x51a27a=_0x5091f4(_0x2ab903['commandName']),_0x4a799d=_0x550ad5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x51a27a&&_0x381fe3['config']['get']('list.multiBlock')||(_0x4a799d='*Change\x20to:*\x20%0'),_0x1f69e5={'type':'format','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4a799d='*Indent:*\x20%0',_0x1f69e5={'type':'format','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4a799d=function(_0x303ed9){const _0x5be2e1=_0x303ed9['getFirstRange']();let _0x2f6960=_0x5be2e1['start']['nodeAfter'];for(;_0x2f6960&&_0x5be2e1['containsItem'](_0x2f6960);){if(_0x2f6960['getAttribute']('listIndent')>0x0)return!0x1;_0x2f6960=_0x2f6960['nextSibling'];}return!0x0;}(_0x5dbb8e)?o(_0x55f910,'*Format:*\x20remove\x20from\x20%0',o(_0x55f910,function(_0x46fb87){return'ELEMENT_'+_0x46fb87['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5dbb8e))):o(_0x55f910,'*Outdent:*\x20%0',o(_0x55f910,'ELEMENT_LIST_ITEM')),_0x1f69e5={'type':'format','content':_0x4a799d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ab903['multipleBlocks']&&(_0x4a799d='*Merge:*\x20%0',_0x1f69e5={'type':'deletion','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_LIST_ITEM'))});}return _0x1f69e5;});}}function Ee(_0x278aff){let _0x4629dc=_0x278aff['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4629dc;){const _0x50b1b1=_0x4629dc['getAttribute']('listItemId');if(!_0x50b1b1)return!0x1;if(_0x50b1b1==_0x278aff['data']['newValue'])return'newValue';if(_0x50b1b1==_0x278aff['data']['oldValue'])return'oldValue';_0x4629dc=_0x4629dc['previousSibling'];}return!0x1;}class pe extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2c7eaa=this['editor']['config']['get']('list.properties'),_0x1ec832=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c7eaa['styles']&&(_0x1ec832['enableDefaultAttributesIntegration']('listStyle'),_0x1ec832['registerBlockAttribute']('listStyle')),_0x2c7eaa['reversed']&&(_0x1ec832['enableDefaultAttributesIntegration']('listReversed'),_0x1ec832['registerBlockAttribute']('listReversed')),_0x2c7eaa['startIndex']&&(_0x1ec832['enableDefaultAttributesIntegration']('listStart'),_0x1ec832['registerBlockAttribute']('listStart'));const _0x46c422={'type':'format','content':''};_0x1ec832['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ab159=this['editor']['locale'];_0x1ec832['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ab159,'FORMAT_LIST_REVERSED')),_0x1ec832['descriptionFactory']['registerDescriptionCallback'](_0x33ae4f=>{const {data:_0xab71f}=_0x33ae4f;if(_0xab71f&&'listReversed'==_0xab71f['key'])return null==_0xab71f['newValue']||0x0==_0xab71f['newValue']&&null==_0xab71f['oldValue']?_0x46c422:void 0x0;}),_0x1ec832['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ab159,'FORMAT_LIST_START')),_0x1ec832['descriptionFactory']['registerDescriptionCallback'](_0x5ada65=>{const {data:_0x5c84d6}=_0x5ada65;if(_0x5c84d6&&'listStart'==_0x5c84d6['key'])return null==_0x5c84d6['newValue']||0x1==_0x5c84d6['newValue']&&null==_0x5c84d6['oldValue']?_0x46c422:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5984a6=>{if(_0x5984a6['batch']['isUndo'])return!0x1;let _0x11f065=!0x1;const _0x467ac4=_0x1ec832['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c9cbf=>{const _0x4cda9a=_0x1ec832['_getAttributeKey'](_0x2c9cbf);return'listStart'==_0x4cda9a||'listReversed'==_0x4cda9a;});for(const _0x58f0ee of _0x467ac4){const _0x2da4bb=_0x58f0ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2da4bb||'customNumbered'==_0x2da4bb)continue;_0x1ec832['_findSuggestions'](_0x58f0ee['getFirstRange'](),'attribute')['find'](_0x20b103=>'listType'==_0x1ec832['_getAttributeKey'](_0x20b103['suggestion']))||(_0x5984a6['removeMarker'](_0x58f0ee['getFirstMarker']()),_0x11f065=!0x0);}return _0x11f065;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x665efd){const _0x5d3b7c=this['editor']['locale'],{data:_0x4d9ac9}=_0x665efd,_0x5684f3={'type':'format','content':''};if(!_0x4d9ac9||'listStyle'!=_0x4d9ac9['key'])return;if(!_0x4d9ac9['oldValue'])return'default'==_0x4d9ac9['newValue']?_0x5684f3:{'type':'format','content':''+o(_0x5d3b7c,'*Set\x20format:*\x20%0',o(_0x5d3b7c,this['_getTranslationKeyForListStyle'](_0x4d9ac9['newValue'])))};if(!_0x4d9ac9['newValue']){if('default'==_0x4d9ac9['oldValue'])return _0x5684f3;let _0x4573e8=_0x665efd['head'];for(;_0x4573e8;){if(_0x4573e8['data']&&'listType'==_0x4573e8['data']['key']&&_0x4573e8['data']['newValue'])return _0x5684f3;_0x4573e8=_0x4573e8['next'];}return{'type':'format','content':''+o(_0x5d3b7c,'*Remove\x20format:*\x20%0',o(_0x5d3b7c,this['_getTranslationKeyForListStyle'](_0x4d9ac9['oldValue'])))};}if('default'!=_0x4d9ac9['newValue'])return{'type':'format','content':''+o(_0x5d3b7c,'*Set\x20format:*\x20%0',o(_0x5d3b7c,this['_getTranslationKeyForListStyle'](_0x4d9ac9['newValue'])))};let _0x33570e=_0x665efd['head'];for(;_0x33570e;){if(_0x33570e['data']&&'listType'==_0x33570e['data']['key']&&_0x33570e['data']['newValue']&&_0x33570e['data']['oldValue'])return _0x5684f3;_0x33570e=_0x33570e['next'];}return{'type':'format','content':o(_0x5d3b7c,'*Set\x20format:*\x20%0',o(_0x5d3b7c,'ELEMENT_'+_0x665efd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x43be63=this['editor'],_0x42ad6a=_0x43be63['locale'];_0x43be63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39c231=>{if('formatBlock'!=_0x39c231['type'])return;const {data:_0x5b0792}=_0x39c231;if(!_0x5b0792)return;let _0x250cca,_0x4326a1;switch(_0x5b0792['commandName']){case'listStyle':_0x250cca='*Change\x20to:*\x20%0',_0x4326a1={'type':'format','content':o(_0x42ad6a,_0x250cca,o(_0x42ad6a,this['_getTranslationKeyForListStyle'](_0x5b0792['commandParams'][0x0]['type'])))};break;case'listReversed':_0x250cca=_0x5b0792['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4326a1={'type':'format','content':o(_0x42ad6a,_0x250cca)};break;case'listStart':_0x250cca='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4326a1={'type':'format','content':o(_0x42ad6a,_0x250cca,_0x5b0792['commandParams'][0x0]['startIndex'])};}return _0x4326a1;});}['_getTranslationKeyForListStyle'](_0x5469df){return'ELEMENT_'+function(_0x3c9b0f){if(ye['includes'](_0x3c9b0f))return'bulleted';if(Se['includes'](_0x3c9b0f))return'numbered';return null;}(_0x5469df)['toUpperCase']()+'_LIST_'+_0x5469df['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4ba4b5{static get['requires'](){return[_0x2cfbc4];}['init'](){const _0x220caf=this['editor'],_0x2f109f=_0x220caf['plugins']['get']('TrackChangesEditing'),_0x8d0fa3=_0x220caf['commands']['get']('enter');_0x2f109f['enableCommand']('enter',()=>{_0x220caf['model']['change'](_0x23bf49=>{const _0x25cfac=_0x220caf['model']['document']['selection'],_0x5714da=_0x25cfac['getFirstPosition'](),_0x4cf4d3=_0x1a312e['fromRange'](_0x25cfac['getFirstRange']());if(_0x8d0fa3['enterBlock'](_0x23bf49)){const _0x480bee=_0x220caf['model']['createPositionAt'](_0x5714da['parent']['nextSibling'],0x0),_0x47836d=_0x23bf49['createRange'](_0x5714da,_0x480bee);_0x2f109f['markInsertion'](_0x47836d);}else _0x23bf49['setSelection'](_0x23bf49['createRange'](_0x4cf4d3['end']));_0x4cf4d3['detach'](),_0x8d0fa3['fire']('afterExecute',{'writer':_0x23bf49});});}),_0x220caf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x220caf,'split'),{'priority':'high'}),_0x220caf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x18ba4a,_0x52a216,_0x22fe00)=>{const _0x3c93cd=_0x22fe00['mapper']['markerNameToElements'](_0x52a216['markerName']);if(_0x3c93cd){for(const _0x1af6fc of _0x3c93cd)_0x1af6fc['hasClass']('ck-suggestion-marker-split')&&(_0x22fe00['mapper']['unbindElementFromMarkerName'](_0x1af6fc,_0x52a216['markerName']),_0x22fe00['writer']['remove'](_0x1af6fc));}},{'priority':'high'}),_0x220caf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41305b,_0x2c5fa3,_0x1710c5)=>{_0x1710c5['options']['showSuggestionHighlights']&&_e(_0x220caf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x41305b,_0x2c5fa3,_0x1710c5);},{'priority':'high'});}}class X extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x23ecf2=this['editor']['plugins']['get']('TrackChangesEditing');_0x23ecf2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x23ecf2['enableCommand']('findNext'),_0x23ecf2['enableCommand']('findPrevious'),_0x23ecf2['enableCommand']('replace'),_0x23ecf2['enableCommand']('replaceAll');}['handleFindCommand'](_0x1514c6,_0xe560,_0x4b18af={}){const _0x184410=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1514c6(_0x172b56=>{let _0x314917=('string'==typeof _0xe560?_0x184410['findByTextCallback'](_0xe560,_0x4b18af):_0xe560)(_0x172b56);Array['isArray'](_0x314917)&&(_0x314917={'results':_0x314917,'searchText':'string'==typeof _0xe560?_0xe560:''});const _0x4e2c67=_0x314917['results']['filter'](_0x1d6fdf=>!0x1===this['_isInDeletionRange'](_0x1d6fdf,_0x172b56['item']));return{..._0x314917,'results':_0x4e2c67};},_0x4b18af);}['_isInDeletionRange'](_0xba26ba,_0x237fe0){const _0x48afee=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x237fe0,_0xba26ba['start']),this['editor']['model']['createPositionAt'](_0x237fe0,_0xba26ba['end']));for(const _0x1dde90 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48afee['getIntersection'](_0x1dde90['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 _0x4ba4b5{['afterInit'](){const _0x2532ca=this['editor']['locale'],_0x16253d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x334d28,commandName:_0x4e6bd5}of ro)this['editor']['plugins']['has'](_0x334d28)&&(_0x16253d['enableDefaultAttributesIntegration'](_0x4e6bd5),_0x16253d['registerInlineAttribute'](_0x4e6bd5));_0x16253d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2532ca,'FORMAT_FONT_SIZE')),_0x16253d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2532ca,'FORMAT_FONT_FAMILY')),_0x16253d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2532ca,'FORMAT_FONT_COLOR')),_0x16253d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2532ca,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d198d=this['editor'],_0x96e03c=_0x2d198d['locale'];_0x2d198d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4982b1=>{const _0x115e50=_0x96e03c['t'];if('formatInline'!=_0x4982b1['type'])return;const {data:_0xa49122}=_0x4982b1;if(null!=_0xa49122){if('fontSize'==_0xa49122['commandName']){const _0x39164a=_0xa49122['commandParams'][0x0]['value'];if(_0x39164a){const _0x5c4134=_0x115e50(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4edec6=>_0x4edec6['model']==_0x39164a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20size:*\x20%0',_0x5c4134)};}return{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xa49122['commandName']){const _0x44effb=_0xa49122['commandParams'][0x0]['value'];return _0x44effb?{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20family:*\x20%0',_0x44effb)}:{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20family*')};}if('fontColor'==_0xa49122['commandName']){const _0x5121f4=_0xa49122['commandParams'][0x0]['value'];if(_0x5121f4){const _0x18c9b3=_0x273313(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5928a5=>_0x5928a5['model']==_0x5121f4);let _0x8d0e72=_0x5121f4,_0x479d6f='';return _0x18c9b3&&(_0x8d0e72=_0x18c9b3['label'],_0x479d6f=_0x115e50(_0x8d0e72)['toLowerCase']()),{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20color:*\x20%0',_0x479d6f)['trim'](),'color':{'value':_0x5121f4,'title':_0x479d6f||_0x8d0e72}};}return{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xa49122['commandName']){const _0x4eb937=_0xa49122['commandParams'][0x0]['value'];if(_0x4eb937){const _0x40c40e=_0x273313(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1b8fd3=>_0x1b8fd3['model']==_0x4eb937);let _0x49c34a=_0x4eb937,_0x4aaa94='';return _0x40c40e&&(_0x49c34a=_0x40c40e['label'],_0x4aaa94=_0x115e50(_0x49c34a)['toLowerCase']()),{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20background\x20color:*\x20%0',_0x4aaa94)['trim'](),'color':{'value':_0x4eb937,'title':_0x4aaa94||_0x49c34a}};}return{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x4ba4b5{['afterInit'](){const _0x1c0f68=this['editor'],_0x523079=_0x1c0f68['plugins']['get']('TrackChangesEditing'),_0x441e9f=_0x1c0f68['commands']['get']('copyFormat'),_0x3ee4e7=_0x1c0f68['commands']['get']('pasteFormat');_0x441e9f&&_0x3ee4e7&&(_0x523079['enableDefaultAttributesIntegration']('pasteFormat'),_0x523079['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20cc8e=this['editor'],_0x3c16ca=_0x20cc8e['locale'];_0x20cc8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x321fb3=>{if('formatBlock'!=_0x321fb3['type']&&'formatInline'!=_0x321fb3['type'])return;const {data:_0x2f9707}=_0x321fb3;if(_0x2f9707&&'pasteFormat'===_0x2f9707['commandName']){const _0x94c36d=[],_0xca8541=_0x2f9707['commandParams'][0x0];for(const [_0x1d4f50,_0x33d90b]of Object['entries'](_0xca8541))_0x94c36d['push'](so(_0x20cc8e,_0x1d4f50,_0x33d90b));return _0x94c36d['length']?{'type':'format','content':o(_0x3c16ca,'*Set\x20format\x20to:*\x20%0',_0x94c36d['join'](',\x20'))}:{'type':'format','content':o(_0x3c16ca,'*Remove\x20all\x20formatting*')};}});}}function so(_0x378c6c,_0x4f9e98,_0x5bb3e8){const _0x27e6b9=_0x378c6c['locale']['t'],_0x2f73ce=_0x4f9e98['split'](/(?=[A-Z])/)['join']('\x20'),_0x2c7ba1=_0x27e6b9(_0x2f73ce['charAt'](0x0)['toUpperCase']()+_0x2f73ce['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5bb3e8)return _0x2c7ba1;if('fontColor'===_0x4f9e98||'fontBackgroundColor'===_0x4f9e98){const _0x153f0f=_0x273313(_0x378c6c['config']['get']('fontColor.colors'))['find'](_0xe7eb72=>_0xe7eb72['model']==_0x5bb3e8);return _0x2c7ba1+'\x20('+(_0x153f0f?_0x27e6b9(_0x153f0f['label'])['toLowerCase']():_0x5bb3e8)+')';}if('fontSize'===_0x4f9e98&&isNaN(parseFloat(_0x5bb3e8))){const _0x45bf83=_0x378c6c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x378c6c['config']['get']('fontSize.options'))['find'](_0xc090c0=>_0xc090c0['model']==_0x5bb3e8);return _0x2c7ba1+'\x20('+(_0x45bf83?_0x27e6b9(_0x45bf83['title'])['toLowerCase']():_0x5bb3e8)+')';}return _0x2c7ba1+'\x20('+_0x5bb3e8+')';}class tt extends _0x4ba4b5{['_headingOptions'];['afterInit'](){const _0x1f1c52=this['editor'];if(!_0x1f1c52['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1f1c52['config']['get']('heading.options');const _0x2bb13d=_0x1f1c52['locale'],_0x3a22ce=_0x1f1c52['plugins']['get']('TrackChangesEditing');_0x3a22ce['enableDefaultAttributesIntegration']('heading');for(const _0x28d604 of this['_headingOptions'])'paragraph'!=_0x28d604['model']&&_0x3a22ce['descriptionFactory']['registerElementLabel'](_0x28d604['model'],_0x3f793b=>{const _0x5103ba=this['_getHeadingLevel'](_0x28d604['model']);return null!==_0x5103ba?_0x2f88af(_0x3f793b,_0x5103ba):_0x362439(_0x3f793b,_0x28d604['title']);});function _0x2f88af(_0x471bca,_0x313f16){return o(_0x2bb13d,'ELEMENT_HEADING',[_0x471bca,_0x313f16]);}function _0x362439(_0x285d52,_0x3d5a3b){return o(_0x2bb13d,'ELEMENT_HEADING_CUSTOM',[_0x285d52,_0x3d5a3b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48ce21=this['editor'],_0x1f088e=_0x48ce21['locale'];function _0x1b6a1f(_0xcdbe59,_0x1b3881){return o(_0x1f088e,'ELEMENT_HEADING_CUSTOM',[_0xcdbe59,_0x1b3881]);}_0x48ce21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16a488=>{if('formatBlock'!=_0x16a488['type'])return;const {data:_0x3c581c}=_0x16a488;if(_0x3c581c&&'heading'==_0x3c581c['commandName']){const _0x5bfec7=_0x3c581c['commandParams'][0x0]['value'],_0xeae455=this['_getHeadingLevel'](_0x5bfec7);if(null!==_0xeae455)return{'type':'format','content':o(_0x1f088e,'*Change\x20to:*\x20%0',(_0x522494=0x1,_0x13cc34=_0xeae455,o(_0x1f088e,'ELEMENT_HEADING',[_0x522494,_0x13cc34])))};const _0x5b996f=this['_headingOptions']['find'](_0x45cb76=>_0x45cb76['model']===_0x5bfec7)['title'];return{'type':'format','content':o(_0x1f088e,'*Change\x20to:*\x20%0',_0x1b6a1f(0x1,_0x5b996f))};}var _0x522494,_0x13cc34;});}['_getHeadingLevel'](_0x556ddf){const _0x1e2738=_0x556ddf['match'](/^heading(\d+)/);if(_0x1e2738)return _0x1e2738[0x1];const _0xdd70ea=this['_headingOptions']?.['find'](_0x503da4=>_0x503da4['model']==_0x556ddf);if(_0xdd70ea&&_0xdd70ea['view']){const _0x52f155=_0xdd70ea['view'],_0xff38a3=(_0x52f155['name']??_0x52f155)['match'](/^h(\d+)/);if(_0xff38a3)return _0xff38a3[0x1];}return null;}}class et extends _0x4ba4b5{['afterInit'](){const _0x91b8d8=this['editor'];if(!_0x91b8d8['plugins']['has']('HighlightEditing'))return;const _0x53f19b=_0x91b8d8['plugins']['get']('TrackChangesEditing'),_0x42c55a=_0x91b8d8['locale'];_0x53f19b['enableDefaultAttributesIntegration']('highlight'),_0x53f19b['registerInlineAttribute']('highlight'),_0x53f19b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x42c55a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa7cc7=this['editor'],_0x447a55=_0xa7cc7['locale'];_0xa7cc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e5f8f=>{if('formatInline'!=_0x3e5f8f['type'])return;const {data:_0x407c34}=_0x3e5f8f;if(_0x407c34&&'highlight'==_0x407c34['commandName']){const _0x4e4fdd=_0x447a55['t'],_0xf020fe=_0x407c34['commandParams'][0x0]['value'];if(_0xf020fe){const _0x2aec30=_0xa7cc7['config']['get']('highlight.options')['find'](_0x4bc4ff=>_0x4bc4ff['model']==_0xf020fe),_0x1813eb=_0x4e4fdd(_0x2aec30['title'])['toLowerCase']();return{'type':'format','content':o(_0x447a55,'*Set\x20highlight:*\x20%0',_0x1813eb),'color':{'value':_0x2aec30['color'],'title':_0x2aec30['title']}};}return{'type':'format','content':o(_0x447a55,'*Remove\x20highlight*',o(_0x447a55,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4ba4b5{['afterInit'](){const _0x5025fb=this['editor'];if(!_0x5025fb['plugins']['has']('HorizontalLineEditing'))return;_0x5025fb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xaed6ce=_0x5025fb['plugins']['get']('TrackChangesEditing'),_0x5e1c86=_0x5025fb['locale'];_0xaed6ce['descriptionFactory']['registerElementLabel']('horizontalLine',_0x183013=>o(_0x5e1c86,'ELEMENT_HORIZONTAL_LINE',_0x183013)),_0x5025fb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x25aaeb,{writer:_0x753117,options:_0x42fa88})=>{if(!_0x42fa88['showSuggestionHighlights'])return null;const _0x282374=_0x753117['createContainerElement']('div'),_0x30b9b0=_0x753117['createEmptyElement']('hr');return _0x753117['addClass']('ck-horizontal-line',_0x282374),_0x753117['insert'](_0x753117['createPositionAt'](_0x282374,0x0),_0x30b9b0),_0x282374;},'converterPriority':'high'});}}class st extends _0x4ba4b5{['afterInit'](){const _0x6da693=this['editor'];if(!_0x6da693['plugins']['has']('HtmlEmbed'))return;const _0x5e12fc=_0x6da693['plugins']['get']('TrackChangesEditing'),_0x2cd71f=_0x6da693['locale'];_0x5e12fc['descriptionFactory']['registerElementLabel']('rawHtml',_0x4e1643=>o(_0x2cd71f,'ELEMENT_HTML_EMBED',_0x4e1643)),_0x5e12fc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e12fc['registerBlockAttribute']('value'),_0x5e12fc['descriptionFactory']['registerDescriptionCallback'](_0x401a03=>{if('attribute'!=_0x401a03['type'])return;const {data:_0x2a6d8c}=_0x401a03;if(_0x2a6d8c&&'value'==_0x2a6d8c['key']&&_0x401a03['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x231a90=o(_0x2cd71f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2cd71f,'*Change\x20%0\x20content*',_0x231a90)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e2c63=this['editor'],_0xc1f3f2=_0x5e2c63['locale'];_0x5e2c63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ca167=>{if('formatBlock'!=_0x1ca167['type'])return;const {data:_0x49a013}=_0x1ca167;if(_0x49a013&&'htmlEmbed'==_0x49a013['commandName']){const _0x3f6112=o(_0xc1f3f2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xc1f3f2,'*Change\x20%0\x20content*',_0x3f6112)};}});}}class nt extends _0x4ba4b5{['afterInit'](){const _0x3b3551=this['editor'];if(!_0x3b3551['plugins']['has']('ImageEditing'))return;const _0x3278eb=_0x3b3551['plugins']['get']('TrackChangesEditing'),_0x1833a9=_0x3b3551['plugins']['get']('ImageUtils'),_0x422ef0=_0x3b3551['locale'];_0x3278eb['enableCommand']('insertImage'),_0x3278eb['descriptionFactory']['registerElementLabel']('imageBlock',_0x546976=>o(_0x422ef0,'ELEMENT_IMAGE',_0x546976)),_0x3278eb['descriptionFactory']['registerElementLabel']('imageInline',_0x1c26ef=>o(_0x422ef0,'ELEMENT_INLINE_IMAGE',_0x1c26ef)),_0x3278eb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x422ef0,'ELEMENT_CAPTION')),_0x3b3551['plugins']['has']('ImageUploadEditing')&&_0x3278eb['enableCommand']('uploadImage'),_0x3b3551['plugins']['has']('ImageBlockEditing')&&_0x3b3551['plugins']['has']('ImageInlineEditing')&&(_0x3278eb['enableCommand']('imageTypeInline',(_0x13163a,_0x26e14e)=>{const _0x88af0b=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']);_0x3b3551['model']['change'](()=>{_0x3278eb['markBlockFormat'](_0x88af0b,{'commandName':'imageTypeInline','commandParams':[_0x26e14e]},[],'convertBlockImageToInline');});}),_0x3278eb['enableCommand']('imageTypeBlock',(_0x2bef18,_0x378922)=>{_0x3b3551['model']['change'](_0x540399=>{let _0x1dfb78=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x165e06=_0x540399['createRangeOn'](_0x1dfb78);const _0x129252=_0x4317c1['fromPosition'](_0x165e06['start'],'toPrevious'),_0x2fc133=_0x4317c1['fromPosition'](_0x165e06['end'],'toNext');_0x3278eb['forceDefaultExecution'](()=>_0x2bef18(_0x378922)),_0x1dfb78=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x165e06=_0x540399['createRangeOn'](_0x1dfb78);const _0x53e14d=_0x540399['createRange'](_0x129252,_0x2fc133);_0x129252['detach'](),_0x2fc133['detach'](),_0x3278eb['markBlockFormat'](_0x1dfb78,{'commandName':'imageTypeInline','commandParams':[_0x378922]},[],'convertInlineImageToBlock'),_0x53e14d['start']['isBefore'](_0x165e06['start'])&&_0x3278eb['markInsertion'](_0x540399['createRange'](_0x53e14d['start'],_0x165e06['start']),'convertInlineImageToBlock'),_0x165e06['end']['isBefore'](_0x53e14d['end'])&&_0x3278eb['markInsertion'](_0x540399['createRange'](_0x165e06['end'],_0x53e14d['end']),'convertInlineImageToBlock');});}),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3278eb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x988c6c])=>{const _0x4823b4=_0x3278eb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5ac480=_0x988c6c['start'],_0x410ff0=_0x988c6c['end'];const _0x381a6b=_0x3b3551['model']['schema']['getNearestSelectionRange'](_0x5ac480,'backward'),_0x207f3d=_0x3b3551['model']['schema']['getNearestSelectionRange'](_0x410ff0,'forward');_0x381a6b['isCollapsed']&&(_0x5ac480=_0x381a6b['start']),_0x207f3d['isCollapsed']&&(_0x410ff0=_0x207f3d['end']),_0x4823b4([_0x3b3551['model']['createRange'](_0x5ac480,_0x410ff0)]);}),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x52761f),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x52761f)),_0x3b3551['plugins']['has']('ImageCaptionEditing')&&(_0x3278eb['enableCommand']('toggleImageCaption',(_0x49a038,_0x28eac8)=>{const _0x47a5a8=_0x3b3551['plugins']['get']('ImageCaptionUtils');let _0x308732=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x12a5f3=_0x47a5a8['getCaptionFromImageModelElement'](_0x308732);_0x3b3551['model']['change'](()=>{if(_0x12a5f3)return void _0x3278eb['markDeletion'](_0x3b3551['model']['createRangeOn'](_0x12a5f3));const _0x2d10b6=_0x1833a9['isBlockImage'](_0x308732);_0x49a038(_0x28eac8),_0x308732=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x12a5f3=_0x47a5a8['getCaptionFromImageModelElement'](_0x308732),_0x3278eb['markInsertion'](_0x3b3551['model']['createRangeOn'](_0x12a5f3),_0x2d10b6?null:'imageCaption');});}),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x52761f));const _0x772663=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5841cf(_0x1fea37,_0x115ca1){const _0x27ef62=_0x772663['findIndex'](({type:_0x2cb3f4,subType:_0x12f7db})=>_0x1fea37['type']==_0x2cb3f4&&_0x1fea37['subType']==_0x12f7db),_0x200824=_0x772663['findIndex'](({type:_0x1336a1,subType:_0x4124d3})=>_0x115ca1['type']==_0x1336a1&&_0x115ca1['subType']==_0x4124d3);if(_0x27ef62<0x0||_0x200824<0x0)return!0x1;const _0x4161fc=_0x1fea37['getFirstRange'](),_0x2ea655=_0x115ca1['getFirstRange']();if((0x0==_0x27ef62||0x1==_0x27ef62)&&0x2==_0x200824&&_0x4161fc['isIntersecting'](_0x2ea655))return!0x0;if(0x2==_0x27ef62&&0x3==_0x200824){const _0x32a62f=_0x3278eb['_findSuggestions'](_0x4161fc,'insertion')['filter'](({suggestion:_0x87750b,meta:_0x1da892})=>_0x1da892['isOwn']&&'convertInlineImageToBlock'==_0x87750b['subType']);if(_0x32a62f['length']>0x1&&_0x2ea655['end']['isEqual'](_0x4161fc['start']))return!0x0;if(0x1==_0x32a62f['length']&&(_0x4161fc['start']['isEqual'](_0x2ea655['end'])||_0x4161fc['end']['isEqual'](_0x2ea655['start'])))return!0x0;}if(0x3==_0x27ef62&&0x3==_0x200824&&_0x4161fc['start']['isBefore'](_0x2ea655['start'])){const _0x588a16=_0x4161fc['end']['nodeAfter'],_0x11fa04=_0x2ea655['start']['nodeBefore'];return _0x1833a9['isBlockImage'](_0x588a16)&&_0x588a16===_0x11fa04;}return!0x1;}function _0x52761f(_0x4a01e2,_0x3d538d){return _0x5841cf(_0x4a01e2,_0x3d538d)?[_0x4a01e2,_0x3d538d]:_0x5841cf(_0x3d538d,_0x4a01e2)?[_0x3d538d,_0x4a01e2]:null;}_0x3b3551['plugins']['has']('ImageResize')&&(_0x3278eb['enableDefaultAttributesIntegration']('resizeImage'),_0x3278eb['registerBlockAttribute']('resizedWidth'),_0x3278eb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x422ef0,'FORMAT_IMAGE_SIZE'))),_0x3b3551['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3278eb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3278eb['registerBlockAttribute']('alt')),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0xbd9ad2=>{if(!!_0x772663['find'](({type:_0x4c80e8,subType:_0x4e9268})=>_0xbd9ad2['type']==_0x4c80e8&&_0xbd9ad2['subType']==_0x4e9268))return _0xbd9ad2['previous']?{}:void 0x0;}),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0x48a031=>{if('insertion'==_0x48a031['type']||'deletion'==_0x48a031['type']){const _0x1e19a2=_0x48a031['getContainedElement']();if(_0x1e19a2&&_0x1e19a2['is']('element','caption'))return{'type':'insertion'==_0x48a031['type']?'addObject':'removeObject','element':_0x1e19a2,'quantity':0x1};}}),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0x139d8c=>'formatBlock'==_0x139d8c['type']&&'convertInlineImageToBlock'==_0x139d8c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x139d8c['type']&&'convertBlockImageToInline'==_0x139d8c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0x1ff182=>{if('attribute'!=_0x1ff182['type'])return;const {data:_0x3104af}=_0x1ff182;if(!_0x3104af||'alt'!=_0x3104af['key'])return;const _0x219cd9=_0x3104af['newValue'];return _0x219cd9?{'type':'format','content':o(_0x422ef0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x219cd9+'\x22')}:{'type':'format','content':o(_0x422ef0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39022d=this['editor'],_0x34df26=_0x39022d['locale'];_0x39022d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a8597=>{if('formatBlock'!=_0x1a8597['type']&&'formatInline'!=_0x1a8597['type'])return;const {data:_0x20d98c}=_0x1a8597;if(_0x20d98c){if('imageTextAlternative'==_0x20d98c['commandName']){const _0x12c0ee=_0x20d98c['commandParams'][0x0]['newValue'];return _0x12c0ee?{'type':'format','content':o(_0x34df26,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12c0ee+'\x22')}:{'type':'format','content':o(_0x34df26,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20d98c['commandName']){const _0x3fbb67=_0x20d98c['commandParams'][0x0]['width'];return _0x3fbb67?{'type':'format','content':o(_0x34df26,'*Set\x20image\x20width:*\x20%0',_0x3fbb67)}:{'type':'format','content':o(_0x34df26,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4001f9=this['editor']['locale'],_0x32d9d1=this['editor']['plugins']['get']('TrackChangesEditing');_0x32d9d1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x32d9d1['registerBlockAttribute']('src'),_0x32d9d1['descriptionFactory']['registerDescriptionCallback'](_0xeaadc3=>{if('attribute'!=_0xeaadc3['type'])return;const {data:_0x529397}=_0xeaadc3;return _0x529397&&'src'==_0x529397['key']?_0x529397['newValue']&&_0x529397['oldValue']?{'type':'format','content':o(_0x4001f9,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x22c142=this['editor']['plugins']['get']('TrackChangesEditing');_0x22c142['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x22c142['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22c142['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x22c142['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x141f23=this['editor'],_0x58db8f=_0x141f23['locale'];_0x141f23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f856f=>{if('formatBlock'!=_0x1f856f['type']&&'formatInline'!=_0x1f856f['type'])return;const {data:_0x10eed7}=_0x1f856f;if(!_0x10eed7||'replaceImageSource'!=_0x10eed7['commandName'])return;return{'type':'format','content':o(_0x58db8f,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x4ba4b5{['afterInit'](){const _0x332819=this['editor'];if(!_0x332819['plugins']['has']('ImageStyleEditing'))return;const _0x554268=_0x332819['plugins']['get']('TrackChangesEditing'),_0xd1fd5d=_0x332819['plugins']['get']('ImageUtils'),_0xf492f3={};_0x554268['enableCommand']('imageStyle',(_0x4b8c73,_0x323e68)=>{const _0x55a727=_0x332819['plugins']['get']('Users')['me'],_0x23bbf3=_0x332819['commands']['get']('imageStyle');let _0x22c3a8=_0xd1fd5d['getClosestSelectedImageElement'](_0x332819['model']['document']['selection']),_0x48adfa=_0x332819['model']['createRangeOn'](_0x22c3a8),_0x24b089=_0x23bbf3['value'];if(_0x24b089==_0x323e68['value'])return;const _0x2f447e={'commandName':'imageStyle','commandParams':[_0x323e68],'formatGroupId':_0x4cf4cc()};_0x332819['model']['change'](()=>{if(_0x554268['getSuggestions']()['filter'](_0x529217=>_0x529217['isInContent']&&_0x55a727==_0x529217['author']&&('formatBlock'==_0x529217['type']||'formatInline'==_0x529217['type'])&&('imageStylePreApply'==_0x529217['subType']||'imageStylePostApply'==_0x529217['subType'])&&_0x529217['getFirstRange']()['isEqual'](_0x48adfa))['forEach'](_0x40e11a=>_0x554268['discardSuggestion'](_0x40e11a['head'])),_0x22c3a8=_0xd1fd5d['getClosestSelectedImageElement'](_0x332819['model']['document']['selection']),_0x48adfa=_0x332819['model']['createRangeOn'](_0x22c3a8),_0x23bbf3['refresh'](),_0x332819['commands']['get']('imageTypeInline')['refresh'](),_0x332819['commands']['get']('imageTypeBlock')['refresh'](),_0x24b089=_0x23bbf3['value'],_0x24b089!=_0x323e68['value'])return _0xd1fd5d['isInlineImage'](_0x22c3a8)&&_0x23bbf3['shouldConvertImageType'](_0x323e68['value'],_0x22c3a8)?(_0x4b8c73({..._0x323e68,'setImageSizes':!0x1}),_0x22c3a8=_0xd1fd5d['getClosestSelectedImageElement'](_0x332819['model']['document']['selection']),void _0x554268['markBlockFormat'](_0x22c3a8,{..._0x2f447e,'commandReversedParams':[{'value':_0x24b089||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xd1fd5d['isBlockImage'](_0x22c3a8)?_0x554268['markBlockFormat'](_0x22c3a8,_0x2f447e,[],'imageStylePostApply'):_0x554268['markInlineFormat'](_0x48adfa,_0x2f447e,'imageStylePostApply'));});});for(const _0x4e0438 of _0x332819['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xf492f3[_0x4e0438['name']]=_0x4e0438['title']['toLowerCase']();_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x554268['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2aea6f])=>{_0xd1fd5d['setImageNaturalSizeAttributes'](_0x2aea6f['getContainedElement']());}),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1a1776,_0x5b5e63)=>{_0x554268['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1a1776,{'commandName':_0x5b5e63['commandName'],'commandParams':_0x5b5e63['commandReversedParams']});}),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2e388e,_0x3ed9df){if(_0x4ec6d7(_0x2e388e,_0x3ed9df))return[_0x2e388e,_0x3ed9df];if(_0x4ec6d7(_0x3ed9df,_0x2e388e))return[_0x3ed9df,_0x2e388e];return null;});const _0x27c29b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ec6d7(_0x2ce4fc,_0xd1690d){const _0x594faa=_0x27c29b['findIndex'](({type:_0x3eb1e2,subType:_0x1a209a})=>_0x2ce4fc['type']==_0x3eb1e2&&_0x2ce4fc['subType']==_0x1a209a),_0x17f31e=_0x27c29b['findIndex'](({type:_0x434d27,subType:_0x3e3960})=>_0xd1690d['type']==_0x434d27&&_0xd1690d['subType']==_0x3e3960);if(_0x594faa<0x0||_0x17f31e<0x0)return!0x1;const _0x57a7af=_0x2ce4fc['getFirstRange'](),_0x3dacb1=_0xd1690d['getFirstRange']();if((0x0==_0x594faa||0x1==_0x594faa)&&0x2==_0x17f31e&&_0x57a7af['isIntersecting'](_0x3dacb1))return!0x0;if(0x2==_0x594faa&&0x3==_0x17f31e){const _0xe3e489=_0x554268['_findSuggestions'](_0x57a7af,'insertion')['filter'](({suggestion:_0x113686,meta:_0x34d274})=>_0x34d274['isOwn']&&'convertInlineImageToBlock'==_0x113686['subType']);if(_0xe3e489['length']>0x1&&_0x3dacb1['end']['isEqual'](_0x57a7af['start']))return!0x0;if(0x1==_0xe3e489['length']&&(_0x57a7af['start']['isEqual'](_0x3dacb1['end'])||_0x57a7af['end']['isEqual'](_0x3dacb1['start'])))return!0x0;}if(0x3==_0x594faa&&0x3==_0x17f31e&&_0x57a7af['start']['isBefore'](_0x3dacb1['start'])){const _0x540646=_0x57a7af['end']['nodeAfter'],_0x5cd90d=_0x3dacb1['start']['nodeBefore'];return _0xd1fd5d['isBlockImage'](_0x540646)&&_0x540646===_0x5cd90d;}return!0x1;}_0x332819['model']['document']['registerPostFixer'](()=>{let _0x5ef3e2=!0x1;const _0x49d30f=Array['from'](_0x332819['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2795f0,data:_0x1a227b}of _0x49d30f){const {group:_0x2023c1,type:_0x4bf6ae,subType:_0x53ee58,id:_0x5c7791}=_0x554268['_splitMarkerName'](_0x2795f0);if('suggestion'==_0x2023c1&&_0x554268['hasSuggestion'](_0x5c7791)){if('formatBlock'==_0x4bf6ae&&('imageStylePreApply'==_0x53ee58||'imageStylePostApply'==_0x53ee58)){const _0x4e5c47=_0x554268['getSuggestion'](_0x5c7791);if(_0x1a227b['newRange']){const _0x5c8601=_0x4e5c47['getFirstRange']()['getContainedElement']();if(_0xd1fd5d['isBlockImage'](_0x5c8601))continue;_0x554268['discardSuggestion'](_0x4e5c47),_0x5ef3e2=!0x0;}}if('insertion'==_0x4bf6ae&&'imageCaption'==_0x53ee58&&!_0x1a227b['newRange']){const _0x269e4c=_0x554268['getSuggestion'](_0x5c7791);_0x269e4c['next']&&_0x269e4c['next']['isInContent']&&(_0x554268['discardSuggestion'](_0x269e4c['next']),_0x5ef3e2=!0x0);}}}return _0x5ef3e2;}),this['_registerLegacyDescription'](_0xf492f3);}['_registerLegacyDescription'](_0x5effa8){const _0xc96ecb=this['editor'],_0x5c6494=_0xc96ecb['locale'];_0xc96ecb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21a7f7=>{if('formatBlock'!=_0x21a7f7['type']&&'formatInline'!=_0x21a7f7['type'])return;const {data:_0x6f81af}=_0x21a7f7;if(!_0x6f81af||'imageStyle'!=_0x6f81af['commandName'])return;const _0x1bb01f=_0x6f81af['commandParams'][0x0]['value'];return _0x21df68('side'===_0x1bb01f?o(_0x5c6494,'FORMAT_SIDE_IMAGE'):_0x5effa8[_0x1bb01f]||_0x1bb01f);function _0x21df68(_0x503e1c){return{'type':'format','content':o(_0x5c6494,'*Format:*\x20%0',_0x503e1c)};}});}}class at extends _0x4ba4b5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3163ec){super(_0x3163ec),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5d4439=this['editor'],_0x13fef4=_0x5d4439['commands']['get']('importWord'),_0x3ec716=_0x5d4439['commands']['get']('trackChanges');_0x13fef4&&(_0x13fef4['on']('execute',(_0x1222a4,[,_0x10d4e0])=>{this['_trackChangesValueDuringImport']=_0x3ec716['value'],_0x10d4e0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x13fef4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x13fef4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3ec716['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5d4439['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f406b,_0x1c96ce){const {suggestions:_0x52db0a}=_0x1c96ce,_0x26ce18=this['editor']['commands']['get']('trackChanges'),_0x260cae=_0x26ce18['value'];this['_trackChangesValueDuringImport']!==_0x260cae&&(_0x26ce18['execute'](),this['_trackChangesExecuted']=!0x0),_0x52db0a&&_0x52db0a['forEach'](({id:_0x795a76,type:_0x269a2c,author:_0xe7e09c,created_at:_0x14f705})=>{const _0x3bd03c={'id':_0x795a76,'type':_0x269a2c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xe7e09c,'createdAt':_0x14f705?new Date(_0x14f705):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3bd03c);});}}class ct extends _0x4ba4b5{['afterInit'](){const _0x5048ca=this['editor'],_0x5ec92d=_0x5048ca['plugins']['get']('TrackChangesEditing');if(_0x5048ca['plugins']['has']('IndentEditing')&&(_0x5ec92d['enableCommand']('indent'),_0x5ec92d['enableCommand']('outdent')),_0x5048ca['plugins']['has']('IndentBlock')){for(const _0x1cbdc1 of['indentBlock','outdentBlock'])_0x5ec92d['enableDefaultAttributesIntegration'](_0x1cbdc1);}const _0x5726cb=_0x5048ca['locale'];_0x5ec92d['registerBlockAttribute']('blockIndent'),_0x5ec92d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5726cb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17918a=this['editor'],_0x1f7375=_0x17918a['locale'],_0x435476=_0x17918a['plugins']['get']('TrackChangesEditing');_0x435476['descriptionFactory']['registerDescriptionCallback'](_0x1aab51=>{if('formatBlock'!=_0x1aab51['type'])return;const {data:_0x5e3e18}=_0x1aab51;if(!_0x5e3e18)return;if('indentBlock'!=_0x5e3e18['commandName']&&'outdentBlock'!=_0x5e3e18['commandName'])return;const _0x17294c=_0x1aab51['getItems']()[0x0],_0x2f6bc6=_0x435476['descriptionFactory']['getItemLabel'](_0x17294c);return'indentBlock'==_0x5e3e18['commandName']?{'type':'format','content':o(_0x1f7375,'*Indent:*\x20%0',_0x2f6bc6)}:'outdentBlock'==_0x5e3e18['commandName']?{'type':'format','content':o(_0x1f7375,'*Outdent:*\x20%0',_0x2f6bc6)}:void 0x0;});}}class ut extends _0x4ba4b5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4ba4b5{['afterInit'](){const _0x3d4565=this['editor'];if(!_0x3d4565['plugins']['has']('LinkEditing'))return;const _0x4a037f=_0x3d4565['plugins']['get']('TrackChangesEditing'),_0x399806=_0x3d4565['commands']['get']('link');_0x4a037f['enableDefaultAttributesIntegration']('link'),_0x4a037f['enableDefaultAttributesIntegration']('unlink'),_0x4a037f['registerInlineAttribute']('linkHref');for(const _0x3d3dc6 of _0x399806['manualDecorators'])_0x4a037f['registerInlineAttribute'](_0x3d3dc6['id']),_0x4a037f['descriptionFactory']['registerAttributeLabel'](_0x3d3dc6['id'],'link\x20('+_0x3d3dc6['label']['toLowerCase']()+')');_0x4a037f['descriptionFactory']['registerDescriptionCallback'](_0x1d5f42=>{if('attribute'!=_0x1d5f42['type'])return;const {data:_0x1c8919}=_0x1d5f42;if(!_0x1c8919||'linkHref'!=_0x1c8919['key'])return;const _0x4bd30b=_0x1c8919['newValue'],_0x5af4cd=_0x3d4565['locale'];return{'type':'format','content':null==_0x4bd30b?o(_0x5af4cd,'*Remove\x20link*'):o(_0x5af4cd,'*Set\x20link:*\x20%0','\x22'+_0x4bd30b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x359edf=this['editor'],_0x37a50d=_0x359edf['locale'];_0x359edf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19734a=>{if('formatInline'!=_0x19734a['type'])return;const {data:_0x5262a4}=_0x19734a;if(_0x5262a4){if('link'==_0x5262a4['commandName']){const _0x499a1e=_0x5262a4['commandParams'][0x0];return{'type':'format','content':o(_0x37a50d,'*Set\x20link:*\x20%0','\x22'+_0x499a1e+'\x22')};}return'unlink'==_0x5262a4['commandName']?{'type':'format','content':o(_0x37a50d,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4ba4b5{['afterInit'](){const _0x38e112=this['editor'],_0x214b41=_0x38e112['locale'];if(!_0x38e112['plugins']['has']('LegacyListEditing'))return;const _0x41ce72=_0x38e112['plugins']['get']('TrackChangesEditing'),_0x2accaf=_0x38e112['plugins']['has']('LegacyTodoListEditing');function _0x2ca386(_0x52df14){return()=>{const _0x10cf7f=_0x38e112['model']['document']['selection'],_0x2af5a6=_0x38e112['commands']['get'](_0x52df14);if(_0x2af5a6['value'])return void _0x38e112['execute']('paragraph',{});const _0xf752ce=_0x52df14['slice'](0x0,-0x4),_0x228f2a=function(_0x4e85e0,_0x3bfddd,_0x11e773){let _0xe4bb3e=Array['from'](_0x4e85e0)['filter'](_0x209b76=>function(_0x462cc3,_0x2a1e3a){return _0x2a1e3a['checkChild'](_0x462cc3['parent'],'listItem')&&!_0x2a1e3a['isObject'](_0x462cc3);}(_0x209b76,_0x11e773));_0xe4bb3e=_0xe4bb3e['filter'](_0x20b573=>!_0x20b573['is']('element','listItem')||_0x20b573['getAttribute']('listType')!=_0x3bfddd);const _0x868885=new Set();for(const _0x5d8569 of _0xe4bb3e)_0x5d8569['is']('element','listItem')?_0x868885['add'](fe(_0x5d8569)):_0x868885['add'](_0x5d8569);return Array['from'](_0x868885);}(_0x10cf7f['getSelectedBlocks'](),_0xf752ce,_0x38e112['model']['schema']);_0x38e112['model']['change'](()=>{for(const _0x35a540 of _0x228f2a)_0x41ce72['markBlockFormat'](_0x35a540,{'commandName':_0x52df14,'commandParams':[{'forceValue':!_0x2af5a6['value']}],'formatGroupId':'blockName'},ue(_0x35a540));});};}function _0x497fb8(_0x3c488f){return()=>{const _0x51d6e5=function(_0x160958){let _0x317a8a=Array['from'](_0x160958);const _0x22a511=_0x317a8a['findIndex'](_0x4ec7a0=>'listItem'!=_0x4ec7a0['name']);return _0x22a511>-0x1&&(_0x317a8a=_0x317a8a['slice'](0x0,_0x22a511)),_0x317a8a;}(_0x38e112['model']['document']['selection']['getSelectedBlocks']()),_0x912210=_0x38e112['model']['createRange'](_0x38e112['model']['createPositionAt'](_0x51d6e5[0x0],'before'),_0x38e112['model']['createPositionAt'](_0x51d6e5[_0x51d6e5['length']-0x1],'end'));_0x38e112['model']['change'](()=>{_0x41ce72['markBlockFormat'](_0x912210,{'commandName':_0x3c488f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b5fc5){const _0x135da6=new Set();for(const _0x1cb4d0 of _0x2b5fc5){let _0x4cb693=_0x1cb4d0['nextSibling'];for(;_0x4cb693&&_0x4cb693['getAttribute']('listIndent')>_0x1cb4d0['getAttribute']('listIndent');)_0x135da6['add'](_0x4cb693),_0x4cb693=_0x4cb693['nextSibling'];}return Array['from'](_0x135da6);}(_0x51d6e5));});};}_0x41ce72['enableCommand']('numberedList',_0x2ca386('numberedList')),_0x41ce72['enableCommand']('bulletedList',_0x2ca386('bulletedList')),_0x2accaf&&_0x41ce72['enableCommand']('todoList',_0x2ca386('todoList')),_0x41ce72['enableCommand']('indentList',_0x497fb8('indentList')),_0x41ce72['enableCommand']('outdentList',_0x497fb8('outdentList')),_0x2accaf&&_0x41ce72['enableCommand']('checkTodoList',()=>{const _0x363d66=_0x38e112['commands']['get']('checkTodoList'),_0x1642b7=Array['from'](_0x363d66['_selectedElements']);_0x1642b7['filter'](_0x550bf5=>_0x550bf5['getAttribute']('todoListChecked')!=_0x363d66['value']),_0x38e112['model']['change'](()=>{for(const _0x48db0b of _0x1642b7)_0x41ce72['markBlockFormat'](_0x48db0b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x363d66['value']}]});});}),_0x41ce72['descriptionFactory']['registerElementLabel']('listItem',_0x4c86db=>o(_0x214b41,'ELEMENT_LIST_ITEM',_0x4c86db)),_0x41ce72['descriptionFactory']['registerDescriptionCallback'](_0x3f4ee1=>{if('formatBlock'!=_0x3f4ee1['type']&&'formatInline'!=_0x3f4ee1['type'])return;const {data:_0x3b32cc}=_0x3f4ee1;if(_0x3b32cc){if('numberedList'==_0x3b32cc['commandName']||'bulletedList'==_0x3b32cc['commandName']||'todoList'==_0x3b32cc['commandName'])switch(_0x3b32cc['commandName']['replace']('List','')){case'bulleted':return _0x5f6a32(o(_0x214b41,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f6a32(o(_0x214b41,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f6a32(o(_0x214b41,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3b32cc['commandName'])return{'type':'format','content':o(_0x214b41,'*Indent:*\x20%0',o(_0x214b41,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3b32cc['commandName'])return{'type':'format','content':o(_0x214b41,'*Outdent:*\x20%0',o(_0x214b41,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3b32cc['commandName'])return _0x3b32cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x214b41,'*Check\x20item*')}:{'type':'format','content':o(_0x214b41,'*Uncheck\x20item*')};}function _0x5f6a32(_0x2f2691){return{'type':'format','content':o(_0x214b41,'*Change\x20to:*\x20%0',_0x2f2691)};}});}}function fe(_0x142be2){const _0x36f175=_0x142be2['getAttribute']('listIndent');if(0x0==_0x36f175)return _0x142be2;let _0x446e60=_0x142be2;for(;_0x142be2['previousSibling']&&_0x142be2['previousSibling']['is']('element','listItem');){const _0x2310f3=_0x142be2['previousSibling']['getAttribute']('listIndent');if(_0x2310f3==_0x36f175)_0x446e60=_0x142be2['previousSibling'];else{if(_0x2310f3<_0x36f175)break;}_0x142be2=_0x142be2['previousSibling'];}return _0x446e60;}function ue(_0xefdaf4){const _0x348555=[];if(_0xefdaf4['is']('element','listItem')&&_0xefdaf4['getAttribute']('listIndent')>0x0){let _0x171bcc=_0xefdaf4['nextSibling'];for(;_0x171bcc&&'listItem'==_0x171bcc['name']&&_0x171bcc['getAttribute']('listIndent')==_0xefdaf4['getAttribute']('listIndent');)_0x348555['push'](_0x171bcc),_0x171bcc=_0x171bcc['nextSibling'];}return _0x348555;}class W extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1310f9=this['editor']['config']['get']('list.properties'),_0x13e189=this['editor']['plugins']['get']('TrackChangesEditing');_0x1310f9['styles']&&_0x13e189['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1310f9['reversed']&&_0x13e189['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1310f9['startIndex']&&_0x13e189['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x13e189['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5d1015,_0x2f7812={}){const _0x3b7391=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a9377=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3b7391['markMultiRangeBlockFormat'](_0x5a9377,{'commandName':'listStyle','commandParams':[{'type':_0x2f7812['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4242c7,_0x3840d7={}){const _0x323239=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4aef38=this['_getSuggestionBlocks'](_0x2e34c9=>_0x2e34c9['is']('element','listItem')&&'numbered'===_0x2e34c9['getAttribute']('listType'));if(_0x4aef38['length']<0x1)return;const _0x256749=_0x4aef38['map'](_0x5264de=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5264de,'before'),this['editor']['model']['createPositionAt'](_0x5264de,0x0)));this['editor']['model']['change'](()=>{_0x323239['markMultiRangeBlockFormat'](_0x256749,{'commandName':'listReversed','commandParams':[{'reversed':_0x3840d7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4da9da,_0x2f81a7={}){const _0x4ec3cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6182a1=this['_getSuggestionBlocks'](_0x30ce29=>_0x30ce29['is']('element','listItem')&&'numbered'===_0x30ce29['getAttribute']('listType'));if(_0x6182a1['length']<0x1)return;const _0x13bde8=_0x6182a1['map'](_0x65e672=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x65e672,'before'),this['editor']['model']['createPositionAt'](_0x65e672,0x0)));this['editor']['model']['change'](()=>{_0x4ec3cd['markMultiRangeBlockFormat'](_0x13bde8,{'commandName':'listStart','commandParams':[{'startIndex':_0x2f81a7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d038e){if('formatBlock'!=_0x3d038e['type']&&'formatInline'!=_0x3d038e['type'])return;const _0x1bcc7e=this['editor']['locale'],{data:_0x42766}=_0x3d038e;if(!_0x42766)return;let _0x530314,_0x86ad56;switch(_0x42766['commandName']){case'listStyle':_0x530314='*Change\x20to:*\x20%0',_0x86ad56={'type':'format','content':o(_0x1bcc7e,_0x530314,o(_0x1bcc7e,this['_getTranslationKeyForListStyle'](_0x42766['commandParams'][0x0]['type'])))};break;case'listReversed':_0x530314=_0x42766['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x86ad56={'type':'format','content':o(_0x1bcc7e,_0x530314)};break;case'listStart':_0x530314='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x86ad56={'type':'format','content':o(_0x1bcc7e,_0x530314,_0x42766['commandParams'][0x0]['startIndex'])};}return _0x86ad56;}['_getSuggestionBlocksForListStyle'](){const _0x12ad02=this['editor']['plugins']['get']('LegacyListUtils');let _0x313576=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x313576[0x0]?.['is']('element','listItem')&&_0x313576['unshift'](..._0x12ad02['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x313576[_0x313576['length']-0x1]?.['is']('element','listItem')&&_0x313576['push'](..._0x12ad02['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x313576=[...new Set(_0x313576)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x313576=_0x313576['filter'](_0x596793=>_0x596793['is']('element','listItem'))),_0x313576;}['_getSuggestionBlocks'](_0x5ca684){const _0x5cce73=this['editor']['plugins']['get']('LegacyListUtils');let _0xdec1f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5ca684)['map'](_0xbf3ce7=>{const _0x4d8af7=this['editor']['model']['createPositionAt'](_0xbf3ce7,0x0);return[..._0x5cce73['getSiblingNodes'](_0x4d8af7,'backward'),..._0x5cce73['getSiblingNodes'](_0x4d8af7,'forward')];})['flat']();return _0xdec1f=[...new Set(_0xdec1f)],_0xdec1f;}['_getTranslationKeyForListStyle'](_0x543192){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x543192)||'default')['toUpperCase']()+'_LIST_'+_0x543192['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x4ba4b5{['afterInit'](){const _0x550dc=this['editor'];if(!_0x550dc['plugins']['has']('MediaEmbedEditing'))return;const _0x1181b0=_0x550dc['plugins']['get']('TrackChangesEditing'),_0x3c7181=_0x550dc['locale'];_0x1181b0['enableCommand']('mediaEmbed'),_0x1181b0['descriptionFactory']['registerElementLabel']('media',_0x25bbdf=>o(_0x3c7181,'ELEMENT_MEDIA',_0x25bbdf)),_0x550dc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x45a621,{writer:_0x2570f5,options:_0x4941ff})=>{if(_0x4941ff['showSuggestionHighlights'])return _0x2570f5['createEmptyElement']('div');},'converterPriority':'high'}),_0x550dc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e687f,_0xaa0aa9,_0x4b71f1)=>{_0x4b71f1['options']['showSuggestionHighlights']&&_0x5e687f['stop']();},{'priority':'high'});}}class mt extends _0x4ba4b5{['afterInit'](){const _0x572da7=this['editor'];_0x572da7['plugins']['has']('MentionEditing')&&_0x572da7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4ba4b5{['afterInit'](){const _0x24d716=this['editor'];if(!_0x24d716['plugins']['has']('MergeFieldsEditing'))return;_0x24d716['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x24d716['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x3288f5=_0x24d716['plugins']['get']('TrackChangesEditing'),_0x467bec=_0x24d716['locale'];_0x3288f5['descriptionFactory']['registerElementLabel']('mergeField',_0x35f8ab=>o(_0x467bec,'ELEMENT_MERGE_FIELD',_0x35f8ab)),_0x3288f5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5a59fc=>o(_0x467bec,'ELEMENT_MERGE_FIELD',_0x5a59fc)),_0x3288f5['descriptionFactory']['registerDescriptionCallback'](_0xbabbe0=>{if('insertion'!=_0xbabbe0['type']&&'deletion'!=_0xbabbe0['type'])return;const _0x46d552=_0xbabbe0['getContainedElement']();if(null==_0x46d552)return;if(!_0x46d552['is']('element','mergeField')&&!_0x46d552['is']('element','mergeFieldBlock'))return;const _0x2085d4=_0x24d716['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x46d552['getAttribute']('id'));return'insertion'==_0xbabbe0['type']?{'type':'insertion','content':o(_0x467bec,'*Insert:*\x20%0','\x22'+_0x2085d4+'\x22\x20'+o(_0x467bec,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x467bec,'*Remove:*\x20%0','\x22'+_0x2085d4+'\x22\x20'+o(_0x467bec,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x4ba4b5{['afterInit'](){const _0x2d39db=this['editor'],_0x4069b1=_0x2d39db['plugins']['get']('TrackChangesEditing');_0x2d39db['plugins']['has']('MultiLevelList')&&(_0x4069b1['enableDefaultAttributesIntegration']('multiLevelList'),_0x4069b1['registerBlockAttribute']('listMarkerStyle'),_0x4069b1['descriptionFactory']['registerDescriptionCallback'](_0x3f066c=>this['handleDescriptions'](_0x3f066c)));}['handleDescriptions'](_0x1fc887){const _0xa233b1=this['editor']['locale'],{data:_0x4c744d}=_0x1fc887,_0x2cae6d={'type':'format','content':''};if(_0x4c744d&&'listMarkerStyle'==_0x4c744d['key']){if(!_0x4c744d['oldValue'])return{'type':'format','content':o(_0xa233b1,'*Set\x20format:*\x20%0',o(_0xa233b1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c744d['newValue']+')'};if(!_0x4c744d['newValue']){let _0xa1c43e=_0x1fc887['head'];for(;_0xa1c43e;){if(_0xa1c43e['data']&&'listType'==_0xa1c43e['data']['key']&&_0xa1c43e['data']['newValue'])return _0x2cae6d;_0xa1c43e=_0xa1c43e['next'];}return{'type':'format','content':o(_0xa233b1,'*Remove\x20format:*\x20%0',o(_0xa233b1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c744d['oldValue']+')'};}}}}class kt extends _0x4ba4b5{['afterInit'](){const _0x1bc04e=this['editor'];if(!_0x1bc04e['plugins']['has']('PageBreakEditing'))return;_0x1bc04e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23839c=_0x1bc04e['plugins']['get']('TrackChangesEditing'),_0x435e02=_0x1bc04e['locale'];_0x23839c['descriptionFactory']['registerElementLabel']('pageBreak',_0x547ed3=>o(_0x435e02,'ELEMENT_PAGE_BREAK',_0x547ed3));}}class bt extends _0x4ba4b5{['afterInit'](){const _0x26f9d7=this['editor'];if(!_0x26f9d7['plugins']['has']('Paragraph'))return;const _0x3fc470=_0x26f9d7['locale'],_0x51bbe5=_0x26f9d7['plugins']['get']('TrackChangesEditing');_0x51bbe5['descriptionFactory']['registerElementLabel']('paragraph',_0x3b7131=>o(_0x3fc470,'ELEMENT_PARAGRAPH',_0x3b7131)),_0x51bbe5['enableDefaultAttributesIntegration']('paragraph'),_0x51bbe5['enableCommand']('insertParagraph'),_0x26f9d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x26f9d7),{'priority':'highest'}),_0x26f9d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xce50d5,_0x169e14,_0x4a1a2f)=>{_0x4a1a2f['options']['showSuggestionHighlights']&&nr(_0x26f9d7,{'showActiveMarker':!0x1})(_0xce50d5,_0x169e14,_0x4a1a2f);},{'priority':'highest'});const _0xf2556e=_0x51bbe5['descriptionFactory'];_0xf2556e['registerDescriptionCallback'](_0x132eef=>{if('insertion'!==_0x132eef['type'])return;const {start:_0xae4aa3,end:_0x1ba298}=_0x132eef['getFirstRange']();if(!_0xae4aa3['isTouching'](_0x1ba298)||!_0xae4aa3['nodeAfter'])return;const _0xe2bf9=_0x26f9d7['model']['schema'],_0x7c6fa6=_0xae4aa3['nodeAfter'];return _0xe2bf9['isBlock'](_0x7c6fa6)&&!_0xe2bf9['isLimit'](_0x7c6fa6)&&_0xe2bf9['checkChild'](_0x7c6fa6,'$text')?{'type':'insertion','content':o(_0x3fc470,'*Insert:*\x20%0',_0xf2556e['getItemLabel'](_0x7c6fa6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd5a0=this['editor'],_0x5219a6=_0x5bd5a0['locale'];_0x5bd5a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a865=>{if('formatBlock'!=_0x40a865['type'])return;const {data:_0x1cd602}=_0x40a865;return _0x1cd602&&'paragraph'==_0x1cd602['commandName']?{'type':'format','content':o(_0x5219a6,'*Change\x20to:*\x20%0',o(_0x5219a6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x7a55b4,{showActiveMarker:_0x514d46=!0x0}={}){return(_0x361b7a,_0x39451e,_0xc5a64)=>{const _0x557497=_0x7a55b4['plugins']['get']('TrackChangesEditing'),_0x3ecb63=_0x39451e['markerRange']['start'],_0x9fcde1=_0x39451e['markerRange']['end'],_0x43c06f=_0x7a55b4['model']['schema'];if(!_0x3ecb63['isTouching'](_0x9fcde1)||!_0x3ecb63['nodeAfter'])return;const _0x1ec8a6=_0x3ecb63['nodeAfter'];if(_0x43c06f['isBlock'](_0x1ec8a6)&&!_0x43c06f['isLimit'](_0x1ec8a6)&&_0x43c06f['checkChild'](_0x1ec8a6,'$text')){if(!_0xc5a64['consumable']['consume'](_0x39451e['markerRange'],_0x361b7a['name']))return;const {authorId:_0x1d0803}=_0x557497['_splitMarkerName'](_0x39451e['markerName']),_0x129da9=_0xc5a64['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1d0803}),_0x36f2e2=_0xc5a64['mapper']['toViewPosition'](_0x9fcde1);_0x514d46&&_0x557497['activeMarkers']['includes'](_0x39451e['markerName'])&&_0xc5a64['writer']['addClass']('ck-suggestion-marker--active',_0x129da9),_0xc5a64['writer']['insert'](_0x36f2e2,_0x129da9),_0xc5a64['mapper']['bindElementToMarker'](_0x129da9,_0x39451e['markerName']);}};}class wt extends _0x4ba4b5{['afterInit'](){const _0x34f8e0=this['editor'];if(!_0x34f8e0['plugins']['has']('RemoveFormatEditing'))return;_0x34f8e0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1db9d5=this['editor'];_0x1db9d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46eed8=>{if('formatBlock'!=_0x46eed8['type']&&'formatInline'!=_0x46eed8['type'])return;const {data:_0xc61141}=_0x46eed8;return _0xc61141&&'removeFormat'==_0xc61141['commandName']?{'type':'format','content':o(_0x1db9d5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4ba4b5{['afterInit'](){const _0x55f130=this['editor'];if(!_0x55f130['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2959bf=_0x55f130['plugins']['get']('TrackChangesEditing');_0x2959bf['enableCommand']('goToPreviousRestrictedEditingException'),_0x2959bf['enableCommand']('goToNextRestrictedEditingException');const _0x244db4=_0x55f130['plugins']['get']('RestrictedEditingModeEditing');_0x244db4['enableCommand']('trackChanges'),_0x244db4['enableCommand']('acceptSuggestion'),_0x244db4['enableCommand']('discardSuggestion'),_0x244db4['enableCommand']('acceptAllSuggestions'),_0x244db4['enableCommand']('discardAllSuggestions'),_0x244db4['enableCommand']('acceptSelectedSuggestions'),_0x244db4['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4ba4b5{static get['requires'](){return[_0x4ecb7f];}['init'](){const _0x65d653=this['editor'],_0x28a43b=_0x65d653['plugins']['get']('TrackChangesEditing');_0x28a43b['enableCommand']('shiftEnter'),_0x65d653['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x65d653),{'priority':'high'}),_0x65d653['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x65d653),{'priority':'high'}),_0x65d653['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38a78c,_0x30f22e,_0x4f7dc0)=>{_0x4f7dc0['options']['showSuggestionHighlights']&&ge(_0x65d653,{'showActiveMarker':!0x1})(_0x38a78c,_0x30f22e,_0x4f7dc0);}),_0x28a43b['descriptionFactory']['registerElementLabel']('softBreak',_0x31c212=>o(_0x65d653['locale'],'ELEMENT_LINE_BREAK',_0x31c212));}}function ge(_0x57faf9,{showActiveMarker:_0x5927db=!0x0}={}){return(_0x2b6511,_0x52f9ee,_0x3ca079)=>{const _0x19e1a8=_0x57faf9['plugins']['get']('TrackChangesEditing');if(!_0x3ca079['consumable']['test'](_0x52f9ee['markerRange'],_0x2b6511['name']))return;const _0x200ebe=_0x57faf9['model'];for(const _0x533415 of _0x52f9ee['markerRange']['getItems']()){if(!_0x533415['is']('element','softBreak'))continue;const _0x31bb8d='deletion'==_0x52f9ee['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x998a8e}=_0x19e1a8['_splitMarkerName'](_0x52f9ee['markerName']),_0x19872b=_0x3ca079['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31bb8d,'data-author-id':_0x998a8e}),_0x33a703=_0x3ca079['mapper']['toViewPosition'](_0x200ebe['createPositionBefore'](_0x533415));_0x5927db&&_0x19e1a8['activeMarkers']['includes'](_0x52f9ee['markerName'])&&_0x3ca079['writer']['addClass']('ck-suggestion-marker--active',_0x19872b),_0x3ca079['writer']['insert'](_0x33a703,_0x19872b),_0x3ca079['mapper']['bindElementToMarker'](_0x19872b,_0x52f9ee['markerName']);}};}class St extends _0x4ba4b5{['afterInit'](){const _0x40c698=this['editor'],_0x39476b=_0x40c698['model'],_0x518a05=_0x40c698['locale'];if(!_0x40c698['plugins']['has']('StandardEditingModeEditing'))return;const _0x5054f4=_0x40c698['plugins']['get']('TrackChangesEditing'),_0x5c82cb='restrictedEditingException',_0x46234e=_0x40c698['commands']['get'](_0x5c82cb);_0x5054f4['enableCommand'](_0x5c82cb,(_0x5655a5,_0x36801f={})=>{const _0x1c095f=_0x39476b['document']['selection'];if(_0x1c095f['isCollapsed'])return void _0x5655a5(_0x36801f);const _0x525ca4=void 0x0!==_0x36801f['forceValue']?_0x36801f['forceValue']:!_0x46234e['value'];_0x39476b['change'](()=>{const _0x460258=Array['from'](_0x1c095f['getRanges']());for(const _0x4ee61d of _0x460258){const _0x2ee21f=_0x525ca4?[_0x4ee61d]:io(_0x5c82cb,_0x4ee61d,_0x39476b);for(const _0x62a396 of _0x2ee21f)_0x5054f4['markInlineFormat'](_0x62a396,{'commandName':_0x5c82cb,'commandParams':[{'forceValue':_0x525ca4}]});}});}),_0x5054f4['descriptionFactory']['registerDescriptionCallback'](_0x2475de=>{if('formatBlock'!=_0x2475de['type']&&'formatInline'!=_0x2475de['type'])return;const {data:_0x28516c}=_0x2475de;return _0x28516c&&_0x28516c['commandName']==_0x5c82cb?_0x28516c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x518a05,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x518a05,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x4ba4b5{['afterInit'](){const _0xd4a639=this['editor'];if(!_0xd4a639['plugins']['has']('Style')||!_0xd4a639['plugins']['has']('DataSchema'))return;const _0x53fe28=_0xd4a639['plugins']['get']('TrackChangesEditing'),_0x1846ff=_0xd4a639['locale'],_0x1a07a7=_0xd4a639['config']['get']('style')||{},_0x3177d4=_0xd4a639['plugins']['get']('GeneralHtmlSupport'),_0x198fa5=_0xd4a639['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd4a639['plugins']['get']('DataSchema'),_0x1a07a7['definitions']);_0x53fe28['enableDefaultAttributesIntegration']('style');const _0x49b170=new Set();for(const _0x5aa246 of _0x198fa5['block']){const _0x41eb37=_0x3177d4['getGhsAttributeNameForElement'](_0x5aa246['element']);_0x49b170['add'](_0x41eb37);}const _0xfe59be=new Set();for(const _0x75aca9 of _0x198fa5['inline']){const _0x405656=_0x3177d4['getGhsAttributeNameForElement'](_0x75aca9['element']);_0xfe59be['add'](_0x405656);for(const _0x14f27c of _0x75aca9['ghsAttributes'])_0xfe59be['add'](_0x14f27c);}for(const _0x1c0f8c of _0x49b170)_0x53fe28['registerBlockAttribute'](_0x1c0f8c),_0x53fe28['descriptionFactory']['registerAttributeLabel'](_0x1c0f8c,o(_0x1846ff,'FORMAT_STYLE'));for(const _0x4a4442 of _0xfe59be)_0x53fe28['registerInlineAttribute'](_0x4a4442),_0x53fe28['descriptionFactory']['registerAttributeLabel'](_0x4a4442,o(_0x1846ff,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ef1e7=this['editor'],_0x4a553a=_0x2ef1e7['locale'];_0x2ef1e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a5788=>{if('formatBlock'!=_0x3a5788['type']&&'formatInline'!=_0x3a5788['type'])return;const {data:_0x4ab6a8}=_0x3a5788;return _0x4ab6a8&&'style'===_0x4ab6a8['commandName']?_0x4ab6a8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a553a,'*Set\x20format:*\x20%0',_0x4ab6a8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4a553a,'*Remove\x20format:*\x20%0',_0x4ab6a8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x4ba4b5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x37057c){super(_0x37057c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x57255f=this['editor'],_0x406c1e=_0x57255f['model']['document']['selection'];if(!_0x57255f['plugins']['has']('TableEditing'))return;const _0x5660f7=_0x57255f['locale'],_0x39f226=_0x57255f['plugins']['get']('TrackChangesEditing'),_0x50b30c=_0x57255f['plugins']['get']('TableUtils');_0x39f226['descriptionFactory']['registerElementLabel']('table',_0x56755b=>o(_0x5660f7,'ELEMENT_TABLE',_0x56755b)),this['_setupColumnsRowsFixing'](),_0x39f226['enableCommand']('insertTable'),_0x39f226['enableCommand']('selectTableRow'),_0x39f226['enableCommand']('selectTableColumn');for(const _0x442d7a of['insertTableRowAbove','insertTableRowBelow']){const _0x33ea0c=_0x57255f['commands']['get'](_0x442d7a);_0x39f226['enableCommand'](_0x442d7a,_0x3ae229=>{_0x57255f['model']['change'](_0x33cb06=>{_0x3ae229();const _0x4e0cc9='above'===_0x33ea0c['order'],_0x53907e=_0x50b30c['getSelectionAffectedTableCells'](_0x406c1e),_0x3d3469=_0x50b30c['getRowIndexes'](_0x53907e),_0x3295a7=_0x4e0cc9?_0x3d3469['first']-0x1:_0x3d3469['last']+0x1,_0x655bff=_0x53907e[0x0]['findAncestor']('table'),_0x782920=_0x50b30c['createTableWalker'](_0x655bff,{'startRow':_0x3295a7,'endRow':_0x3295a7}),_0x1017b8=Array['from'](_0x782920)['map'](_0x217e7a=>_0x33cb06['createRangeOn'](_0x217e7a['cell']));_0x39f226['markMultiRangeInsertion'](_0x1017b8,'tableRow');});});}for(const _0x3eef3a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d9bdf=_0x57255f['commands']['get'](_0x3eef3a);_0x39f226['enableCommand'](_0x3eef3a,_0x32a1f9=>{_0x57255f['model']['change'](_0x48783f=>{_0x32a1f9();const _0x2073df='left'===_0x4d9bdf['order'],_0x262d61=_0x50b30c['getSelectionAffectedTableCells'](_0x406c1e),_0x5c171e=_0x50b30c['getColumnIndexes'](_0x262d61),_0x8953b2=_0x2073df?_0x5c171e['first']-0x1:_0x5c171e['last']+0x1,_0xf67503=_0x262d61[0x0]['findAncestor']('table'),_0x8a2813=_0x50b30c['createTableWalker'](_0xf67503,{'startRow':0x0,'column':_0x8953b2,'includeAllSlots':!0x1}),_0x17d874=Array['from'](_0x8a2813)['map'](_0x331ff4=>_0x48783f['createRangeOn'](_0x331ff4['cell']));_0x39f226['markMultiRangeInsertion'](_0x17d874,'tableColumn');});});}for(const _0x3f5465 of['removeTableRow','removeTableColumn']){const _0x4a777b=_0x3f5465['substr'](0xb),_0x18f799=_0x4a777b['toLowerCase'](),_0x558e8d=_0x18f799['substr'](0x0,0x3)+'span',_0x24c8f8='table'+_0x4a777b,_0x1da936='min'+_0x4a777b,_0x334449='max'+_0x4a777b;_0x39f226['enableCommand'](_0x3f5465,()=>{_0x57255f['model']['change'](_0x408155=>{const _0x50ef3a=_0x50b30c['getSelectionAffectedTableCells'](_0x406c1e),_0x3cae17=_0x50ef3a[0x0]['findAncestor']('table');let _0x54749b;if('removeTableRow'==_0x3f5465){const _0x311abe=_0x50b30c['getRowIndexes'](_0x50ef3a);_0x54749b={'startRow':_0x311abe['first'],'endRow':_0x311abe['last'],'includeAllSlots':!0x0};}else{const _0xe9a935=_0x50b30c['getColumnIndexes'](_0x50ef3a);_0x54749b={'startColumn':_0xe9a935['first'],'endColumn':_0xe9a935['last'],'includeAllSlots':!0x0};}const _0x146b12=_0x50b30c['createTableWalker'](_0x3cae17,_0x54749b),_0x2dab77=Array['from'](_0x146b12)['map'](({cell:_0xdd26e0})=>_0xdd26e0),_0x2e7a2f=be(_0x2dab77['filter'](_0x34db34=>_0x34db34['hasAttribute'](_0x558e8d))),_0x4834b9=be(_0x2dab77['filter'](_0x475da4=>!_0x475da4['hasAttribute'](_0x558e8d)))['map'](_0x321458=>_0x408155['createRangeOn'](_0x321458)),_0x5d6ccb=_0x39f226['markMultiRangeDeletion'](_0x4834b9,_0x24c8f8);if(_0x5d6ccb&&('tableRow'==_0x5d6ccb['subType']||'tableColumn'==_0x5d6ccb['subType'])){const _0x34e10d=this['_getSuggestionCoords'](_0x5d6ccb);for(const _0x39a377 of _0x2e7a2f){const _0x47e7e6=_0x408155['createRangeOn'](_0x39a377),_0x12d6f1=_0x50b30c['getCellLocation'](_0x39a377),_0x562448=_0x39a377['getAttribute'](_0x558e8d)-0x1,_0x1bb009=_0x34e10d[_0x1da936],_0x2c9bf8=_0x34e10d[_0x334449];_0x1bb009<=_0x12d6f1[_0x18f799]&&_0x12d6f1[_0x18f799]+_0x562448<=_0x2c9bf8&&_0x5d6ccb['addRange'](_0x47e7e6);}}});});}function _0x4cbad6(_0x2b0e74){const _0x4ac19d=Array['from'](_0x406c1e['getRanges']())['map'](_0x34175c=>_0x1a312e['fromRange'](_0x34175c));_0x57255f['model']['change'](_0x1a86ef=>{const _0x3b1538=_0x1a86ef['batch'];_0x2b0e74=_0x2b0e74['filter'](_0x4f6485=>'$graveyard'!=_0x4f6485['root']['rootName']),_0x1a86ef['setSelection'](_0x2b0e74),_0x57255f['commands']['get']('removeTableRow')['refresh'](),_0x57255f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57255f['model']['enqueueChange'](()=>{_0x57255f['model']['enqueueChange'](_0x3b1538,_0x50fe20=>{const _0x2021f1=_0x4ac19d['filter'](_0x28339a=>'$graveyard'!=_0x28339a['root']['rootName']);_0x2021f1['length']>0x0&&_0x50fe20['setSelection'](_0x2021f1);for(const _0xaa56cf of _0x4ac19d)_0xaa56cf['detach']();});});});}function _0x25caac(_0x587f8){_0x57255f['model']['change'](_0x2e289e=>{const _0x33776d=Array['from'](_0x406c1e['getRanges']())['map'](_0x41b603=>_0x1a312e['fromRange'](_0x41b603)),_0x5250ea=[];for(const _0x475288 of _0x587f8)for(const _0x262634 of _0x475288['getItems']({'shallow':!0x0}))_0x5250ea['push'](_0x262634);for(const _0x298157 of _0x5250ea)'$graveyard'!=_0x298157['root']['rootName']&&(_0x2e289e['setSelection'](_0x2e289e['createPositionAt'](_0x298157,0x0)),_0x57255f['commands']['get']('removeTableColumn')['refresh'](),_0x57255f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4021d9=_0x33776d['filter'](_0x488806=>'$graveyard'!=_0x488806['root']['rootName']);_0x4021d9['length']>0x0&&_0x2e289e['setSelection'](_0x4021d9);for(const _0x386108 of _0x33776d)_0x386108['detach']();});}function _0xff26d5(_0x1c1fa4,_0x3f74a9){return _0x3f74a9['every'](_0x5a8561=>_0x1c1fa4['some'](_0x5e7a6a=>_0x5e7a6a['end']['isEqual'](_0x5a8561['start'])||_0x5a8561['end']['isEqual'](_0x5e7a6a['start'])));}function _0x3d6c04(_0x425212,_0x3649c8){return!_0x425212['some'](_0x1837a6=>_0x3649c8['some'](_0x42a9f7=>_0x1837a6['isIntersecting'](_0x42a9f7)))&&_0x425212['some'](_0x3b75b2=>_0x3649c8['some'](_0x1d3add=>_0x3b75b2['end']['isTouching'](_0x1d3add['start'])));}_0x57255f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51201c,_0x3d65fa,_0x1c90a3)=>{if(!_0x1c90a3['options']['showSuggestionHighlights'])return;const _0xdca07d=_0x3d65fa['item'];if(!_0xdca07d)return;const _0x550519=_0x1c90a3['mapper']['toViewElement'](_0xdca07d);function _0x4dd66c(_0x5c020f){return Array['isArray'](_0x5c020f)?_0x5c020f:[_0x5c020f];}_0x550519&&'tableCell'===_0xdca07d['name']&&_0x530c8b(_0x550519,_0x1c90a3['writer'],(_0x29c2b4,_0x54a78a,_0x147900)=>_0x147900['addClass'](_0x4dd66c(_0x54a78a['classes']),_0x29c2b4),(_0x2ef1b2,_0x5adebf,_0x161a6e)=>_0x161a6e['removeClass'](_0x4dd66c(_0x5adebf['classes']),_0x2ef1b2));},{'priority':'highest'}),_0x39f226['descriptionFactory']['registerDescriptionCallback'](_0x5f5db1=>{if('insertion'!=_0x5f5db1['type']&&'deletion'!=_0x5f5db1['type'])return;const _0x30b103=_0x5f5db1['getContainedElement']();if(null!=_0x30b103&&_0x30b103['is']('element','table')){if('insertion'==_0x5f5db1['type']){const _0x3af9df=_0x5f5db1['getItems']()['filter'](_0x4a2620=>_0x4a2620['is']('$textProxy'))['map'](_0x423600=>_0x423600['data']);if(_0x3af9df['length'])return{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3af9df['join']('\x20')+'\x22'))};}if('deletion'==_0x5f5db1['type']){const _0x490479=_0x5f5db1['getItems']()['filter'](_0x137cbe=>_0x137cbe['is']('$textProxy'))['map'](_0x4b144c=>_0x4b144c['data']);if(_0x490479['length'])return{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x490479['join']('\x20')+'\x22'))};}}}),_0x39f226['descriptionFactory']['registerDescriptionCallback'](_0x41646e=>{if('tableRow'==_0x41646e['subType']){const _0x10cde9=_0x41646e['getItems']()['filter'](_0x5a8c6c=>_0x5a8c6c['is']('$textProxy'))['map'](_0x2d6f06=>_0x2d6f06['data']),_0x37b1b3=this['_getSuggestionCoords'](_0x41646e),_0x4fde29=_0x37b1b3['maxRow']-_0x37b1b3['minRow']+0x1;if('insertion'==_0x41646e['type'])return _0x10cde9['length']?{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fde29,'\x22'+_0x10cde9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW',_0x4fde29))};if('deletion'==_0x41646e['type'])return _0x10cde9['length']?{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fde29,'\x22'+_0x10cde9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW',_0x4fde29))};}if('tableColumn'==_0x41646e['subType']){const _0x2ae4a5=_0x41646e['getItems']()['filter'](_0x238334=>_0x238334['is']('$textProxy'))['map'](_0x3368d8=>_0x3368d8['data']),_0x42dc15=this['_getSuggestionCoords'](_0x41646e),_0x4c2274=_0x42dc15['maxColumn']-_0x42dc15['minColumn']+0x1;if('insertion'==_0x41646e['type'])return _0x2ae4a5['length']?{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4c2274,'\x22'+_0x2ae4a5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN',_0x4c2274))};if('deletion'==_0x41646e['type'])return _0x2ae4a5['length']?{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4c2274,'\x22'+_0x2ae4a5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN',_0x4c2274))};}}),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4cbad6),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4cbad6),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25caac),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25caac),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xff26d5),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xff26d5),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3d6c04),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3d6c04);}['_acceptFormatSuggestionCallbackFactory'](){const _0xbe36e=this['editor'],_0x35342b=_0xbe36e['model']['document']['selection'];return(_0x2a8065,_0x133145)=>{_0xbe36e['model']['change'](_0x1c9f1d=>{const {commandName:_0x41becc,commandParams:_0x4d92b4}=_0x133145;let _0x457362=_0x2a8065[0x0]['end']['nodeBefore'];_0x4d92b4&&_0x4d92b4[0x0]&&!0x1===_0x4d92b4[0x0]['forceValue']&&(_0x457362=_0x2a8065[0x0]['start']['nodeAfter']);const _0xa1f043=_0x1c9f1d['createRangeIn'](_0x457362);if('$graveyard'==_0xa1f043['root']['rootName'])return;const _0x372a85=Array['from'](_0x35342b['getRanges']())['map'](_0x5813a6=>_0x1a312e['fromRange'](_0x5813a6));_0x1c9f1d['setSelection'](_0xa1f043),_0xbe36e['commands']['get'](_0x41becc)['refresh'](),_0x4d92b4['push']({'forceDefaultExecution':!0x0}),_0xbe36e['execute'](_0x41becc,..._0x4d92b4);const _0x15bd6e=_0x372a85['filter'](_0x161035=>'$graveyard'!=_0x161035['root']['rootName']);_0x15bd6e['length']>0x0&&_0x1c9f1d['setSelection'](_0x15bd6e);for(const _0x1225f8 of _0x372a85)_0x1225f8['detach']();});};}['_getCoordsForCells'](_0x2f4480){const _0x3b789a=this['editor']['plugins']['get']('TableUtils');let _0x555cad=Number['MAX_SAFE_INTEGER'],_0x54c158=Number['MIN_SAFE_INTEGER'],_0x133c53=Number['MAX_SAFE_INTEGER'],_0x4aec7d=Number['MIN_SAFE_INTEGER'];for(const _0x3dd864 of _0x2f4480){if('$graveyard'==_0x3dd864['root']['rootName'])continue;const {row:_0x48c3a8,column:_0x4801a6}=_0x3b789a['getCellLocation'](_0x3dd864),_0x1e3201=_0x3dd864['hasAttribute']('rowspan')?_0x3dd864['getAttribute']('rowspan')-0x1:0x0,_0x4168b3=_0x3dd864['hasAttribute']('colspan')?_0x3dd864['getAttribute']('colspan')-0x1:0x0;_0x555cad=_0x48c3a8<_0x555cad?_0x48c3a8:_0x555cad,_0x54c158=_0x48c3a8+_0x1e3201>_0x54c158?_0x48c3a8+_0x1e3201:_0x54c158,_0x133c53=_0x4801a6<_0x133c53?_0x4801a6:_0x133c53,_0x4aec7d=_0x4801a6+_0x4168b3>_0x4aec7d?_0x4801a6+_0x4168b3:_0x4aec7d;}return{'minRow':_0x555cad,'maxRow':_0x54c158,'minColumn':_0x133c53,'maxColumn':_0x4aec7d};}['_setupColumnsRowsFixing'](){const _0x10da4a=this['editor'],_0x2b48a8=_0x10da4a['plugins']['get']('TrackChangesEditing'),_0x54dd23=_0x10da4a['plugins']['get']('TableUtils');_0x10da4a['model']['document']['on']('change:data',()=>{const _0xc0ca28=Array['from'](_0x10da4a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a125a,data:_0xe7e0c6}of _0xc0ca28){const {group:_0xfec86,id:_0x1cca4e,subType:_0x508d40}=_0x2b48a8['_splitMarkerName'](_0x5a125a);if('suggestion'!=_0xfec86)continue;if(null!=_0xe7e0c6['oldRange'])continue;const _0x40cc42=_0x2b48a8['getSuggestion'](_0x1cca4e);this['_tablePostFixingSubtypes']['includes'](_0x508d40)&&this['_tableSuggestions']['add'](_0x40cc42);}},{'priority':'low'});const _0x31f960=(_0x4246cf,_0xdaf639)=>{let _0x3eff76=!0x1;const _0x4ed2c3=_0xdaf639['createRangeOn'](_0x4246cf),_0x1bacf1=_0x4246cf['findAncestor']('table'),_0x5cd84e=_0x54dd23['getCellLocation'](_0x4246cf);for(const _0x5a01a9 of this['_tableSuggestions']){const _0x4b3537=_0x5a01a9['subType'],_0x5ca8b4=_0x4b3537['startsWith']('tablePaste'),_0xb7f129=_0x4b3537['substr'](_0x5ca8b4?0xa:0x5),_0xb06c84=_0xb7f129['toLowerCase'](),_0x5cbce4=_0xb06c84['substr'](0x0,0x3)+'span',_0x35fec8='min'+_0xb7f129,_0x1f9d53='max'+_0xb7f129;if(!_0x5a01a9['isInContent'])continue;if(_0x1bacf1!=_0x5a01a9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5a01a9['isIntersectingWithRange'](_0x4ed2c3))continue;const _0x72ac2f=_0x4246cf['hasAttribute'](_0x5cbce4)?_0x4246cf['getAttribute'](_0x5cbce4)-0x1:0x0,_0x162545=this['_getSuggestionCoords'](_0x5a01a9),_0xa6cf92=_0x162545[_0x35fec8],_0x53da96=_0x162545[_0x1f9d53];_0xa6cf92<=_0x5cd84e[_0xb06c84]&&_0x5cd84e[_0xb06c84]+_0x72ac2f<=_0x53da96&&(_0x5a01a9['addRange'](_0x4ed2c3),_0x3eff76=!0x0);}return _0x3eff76;};_0x10da4a['model']['document']['registerPostFixer'](_0x225e1d=>{let _0x254df7=!0x1;for(const _0x1de660 of _0x10da4a['model']['document']['differ']['getChanges']())if('insert'==_0x1de660['type']){if('tableRow'==_0x1de660['name']){for(const _0x4284a1 of _0x1de660['position']['nodeAfter']['getChildren']())_0x254df7=_0x254df7||_0x31f960(_0x4284a1,_0x225e1d);}else'tableCell'==_0x1de660['name']&&(_0x254df7=_0x254df7||_0x31f960(_0x1de660['position']['nodeAfter'],_0x225e1d));}return _0x254df7;});}['_getSuggestionCoords'](_0x4bf690){return this['_getCoordsForCells'](_0x4bf690['getRanges']()['map'](_0x3d1d50=>_0x3d1d50['start']['nodeAfter']));}}function be(_0x2bc990){return Array['from'](new Set(_0x2bc990)['values']());}class vt extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x32bac0=this['editor'],_0x3827a9=_0x32bac0['model']['document']['selection'],_0x111720=_0x32bac0['locale'];if(!_0x32bac0['plugins']['has']('TableEditing'))return;const _0x4afd23=_0x32bac0['plugins']['get']('TrackChangesEditing'),_0x243178=_0x32bac0['plugins']['get']('TableUtils'),_0x1f90ea=_0x32bac0['plugins']['get'](It);_0x1f90ea['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4afd23['enableCommand']('mergeTableCells',()=>{const _0x4740a8=_0x243178['getSelectionAffectedTableCells'](_0x32bac0['model']['document']['selection']);_0x32bac0['model']['change'](()=>{_0x4afd23['markMultiRangeBlockFormat'](_0x4740a8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x32bac0['commands']['get']('mergeTableCells')['on']('execute',(_0x31107a,_0x3061d4)=>{_0x32bac0['commands']['get']('trackChanges')['value']&&(_0x3061d4['length']>0x0&&_0x3061d4[_0x3061d4['length']-0x1]&&_0x3061d4[_0x3061d4['length']-0x1]['forceDefaultExecution']||_0x4afd23['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x31107a['stop']());},{'priority':'highest'});for(const _0x300ff9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xb71297=_0x32bac0['commands']['get'](_0x300ff9);_0x4afd23['enableCommand'](_0x300ff9,()=>{const _0x56134a=_0x32bac0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x22c5e3=>_0x22c5e3['is']('element','tableCell')),_0x15bdc5=_0xb71297['value'];_0x32bac0['model']['change'](()=>{_0x4afd23['markMultiRangeBlockFormat']([_0x56134a,_0x15bdc5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x168a0b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x8a0c51=_0x32bac0['commands']['get'](_0x168a0b);_0x4afd23['enableCommand'](_0x168a0b,()=>{const _0x4405a2=_0x243178['getSelectionAffectedTableCells'](_0x32bac0['model']['document']['selection'])[0x0],_0x129c97=_0x4405a2['findAncestor']('table'),{column:_0x1d2840,row:_0x575788}=_0x243178['getCellLocation'](_0x4405a2);let _0x2fc27=[];if('horizontally'==_0x8a0c51['direction']){const _0x7529ec=_0x243178['createTableWalker'](_0x129c97,{'startRow':_0x575788,'endRow':_0x575788,'includeAllSlots':!0x0});_0x2fc27=Array['from'](_0x7529ec)['map'](_0x817391=>_0x817391['cell']);}else{const _0x17a9c3=_0x243178['createTableWalker'](_0x129c97,{'column':_0x1d2840,'includeAllSlots':!0x0});_0x2fc27=Array['from'](_0x17a9c3)['map'](_0x34bbec=>_0x34bbec['cell']);}_0x32bac0['model']['change'](_0x47191e=>{_0x4afd23['markBlockFormat'](_0x47191e['createRangeOn'](_0x4405a2),{'commandName':_0x168a0b,'commandParams':[]},_0x2fc27,_0x168a0b);});});}_0x4afd23['descriptionFactory']['registerDescriptionCallback'](_0xd035eb=>{if('formatBlock'!=_0xd035eb['type']&&'formatInline'!=_0xd035eb['type'])return;const {data:_0x1ec0dc}=_0xd035eb;return _0x1ec0dc&&'mergeTableCells'==_0x1ec0dc['commandName']?{'type':'format','content':o(_0x111720,'*Merge\x20cells*')}:void 0x0;}),_0x4afd23['descriptionFactory']['registerDescriptionCallback'](_0x4db1d1=>{if('formatBlock'!=_0x4db1d1['type']&&'formatInline'!=_0x4db1d1['type'])return;const {data:_0x384cb7}=_0x4db1d1;return _0x384cb7?'splitTableCellVertically'==_0x384cb7['commandName']?{'type':'format','content':o(_0x111720,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x384cb7['commandName']?{'type':'format','content':o(_0x111720,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x290fd8=_0x1f90ea['_acceptFormatSuggestionCallbackFactory']();for(const _0x2d02ab of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4afd23['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d02ab,'accept',_0x290fd8);for(const _0x67df3c of['splitTableCellVertically','splitTableCellHorizontally'])_0x4afd23['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x67df3c,'accept',_0x290fd8);_0x4afd23['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xff2fd1=>{_0x32bac0['model']['change'](_0x314449=>{const _0x122d97=Array['from'](_0x3827a9['getRanges']())['map'](_0xc6b6ec=>_0x1a312e['fromRange'](_0xc6b6ec));_0x314449['setSelection'](_0xff2fd1),_0x32bac0['commands']['get']('mergeTableCells')['refresh'](),_0x32bac0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2c5498=_0x122d97['filter'](_0x451805=>'$graveyard'!=_0x451805['root']['rootName']);_0x2c5498['length']>0x0&&_0x314449['setSelection'](_0x2c5498);for(const _0x169eab of _0x122d97)_0x169eab['detach']();});});for(const _0x1ad70b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2222e6=_0x32bac0['commands']['get'](_0x1ad70b);_0x2222e6['on']('set:isEnabled',(_0x5cd07e,_0xac71c4,_0x3ab118)=>{if(_0x3ab118){const _0x1d1943=_0x32bac0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x234161=>_0x234161['is']('element','tableCell'));this['_areMergableCells'](_0x2222e6['value'],_0x1d1943)||(_0x5cd07e['return']=!0x1,_0x5cd07e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x6420bf=this['editor']['commands']['get']('mergeTableCells'),_0x21fbff=this['editor']['plugins']['get']('TableUtils');if(!_0x6420bf['isEnabled'])return!0x1;const _0x25492a=_0x21fbff['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x471d59 of _0x25492a)for(const _0x5cea80 of _0x25492a)if(_0x471d59!=_0x5cea80&&!this['_areMergableCells'](_0x471d59,_0x5cea80))return!0x1;return!0x0;}['_areMergableCells'](_0x42d77e,_0x213ccf){const _0x46d434=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27b765=this['editor']['model']['createRangeOn'](_0x42d77e),_0x5d888c=this['editor']['model']['createRangeOn'](_0x213ccf),_0x52ec3b=new Set(),_0x1f2d3c=new Set();for(const _0x2feaf2 of _0x46d434['getSuggestions']())if(('insertion'==_0x2feaf2['type']||'deletion'==_0x2feaf2['type']||'mergeTableCells'==_0x2feaf2['subType'])&&_0x2feaf2['isInContent']){for(const _0x2eb362 of _0x2feaf2['getRanges']())_0x2eb362['containsRange'](_0x27b765,!0x0)&&_0x52ec3b['add'](_0x2feaf2['type']+':'+_0x2feaf2['author']['id']),_0x2eb362['containsRange'](_0x5d888c,!0x0)&&_0x1f2d3c['add'](_0x2feaf2['type']+':'+_0x2feaf2['author']['id']);}if(_0x52ec3b['size']!=_0x1f2d3c['size'])return!0x1;for(const _0x35f958 of _0x52ec3b)if(!_0x1f2d3c['has'](_0x35f958))return!0x1;return!0x0;}}class Ct extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x42e268=this['editor'];if(!_0x42e268['plugins']['has']('TableEditing'))return;const _0x1b12ff=_0x42e268['locale'],_0x18a39e=_0x42e268['plugins']['get']('TrackChangesEditing');_0x18a39e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x18a39e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x18a39e['registerBlockAttribute']('headingRows'),_0x18a39e['registerBlockAttribute']('headingColumns'),_0x18a39e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1b12ff,'FORMAT_HEADER_ROW')),_0x18a39e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1b12ff,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59449c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x207e10=this['editor']['plugins']['get']('TableUtils'),_0x444f6c=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x5a99ff({showActiveMarker:_0x4037b5=!0x0,setDataAttribute:_0x4d407d=!0x0}={}){return(_0x352f26,_0x4e3144,_0x4f2a1d)=>{const {type:_0x32a6d0,id:_0x424666}=_0x59449c['_splitMarkerName'](_0x4e3144['markerName']),_0x48e1cc=_0x59449c['getSuggestion'](_0x424666),_0x56b423=_0x48e1cc['data'];if('formatBlock'!=_0x48e1cc['type']||!_0x56b423||'setTableColumnHeader'!=_0x56b423['commandName'])return;if(_0x4e3144['item'])return void _0x352f26['stop']();if(!_0x4f2a1d['consumable']['consume'](_0x4e3144['markerRange'],_0x352f26['name']))return;const _0x1d76ea=_0x4e3144['markerRange']['start']['nodeAfter'],_0x387ce4=_0x4e3144['markerRange']['end']['nodeBefore'],_0x15c1c7=_0x1d76ea['parent']['parent'],{column:_0xa78dd1}=_0x207e10['getCellLocation'](_0x1d76ea),{column:_0x1af853}=_0x207e10['getCellLocation'](_0x387ce4);for(let _0x1bf346=_0xa78dd1;_0x1bf346<=_0x1af853;_0x1bf346++){const _0x5a763c=_0x207e10['createTableWalker'](_0x15c1c7,{'column':_0x1bf346,'includeAllSlots':!0x1});for(const _0x5ec8e6 of _0x5a763c){const _0x129f97=_0x5ec8e6['cell'],_0x4b9d7e=_0x4f2a1d['mapper']['toViewElement'](_0x129f97);_0x4f2a1d['writer']['addClass']('ck-suggestion-marker-'+_0x32a6d0,_0x4b9d7e),_0x4d407d&&_0x4f2a1d['writer']['setAttribute']('data-suggestion',_0x424666,_0x4b9d7e),_0x4f2a1d['mapper']['bindElementToMarker'](_0x4b9d7e,_0x4e3144['markerName']),_0x4037b5&&(_0x59449c['activeMarkers']['includes'](_0x4e3144['markerName'])?_0x4f2a1d['writer']['addClass']('ck-suggestion-marker--active',_0x4b9d7e):_0x4f2a1d['writer']['removeClass']('ck-suggestion-marker--active',_0x4b9d7e));}}};}_0x59449c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x444f6c),_0x59449c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x444f6c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5a99ff(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a7afb,_0x30ec00,_0x3042e4)=>{_0x3042e4['options']['showSuggestionHighlights']&&_0x5a99ff({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a7afb,_0x30ec00,_0x3042e4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46000f,_0x1bf62e,_0xe4d9dd)=>{const {type:_0x5efc9d,id:_0x501a3a}=_0x59449c['_splitMarkerName'](_0x1bf62e['markerName']),_0x3074fa=_0x59449c['getSuggestion'](_0x501a3a),_0x314905=_0x3074fa['data'];if('formatBlock'!=_0x3074fa['type']||!_0x314905||'setTableColumnHeader'!=_0x314905['commandName'])return;const _0x41843f=_0xe4d9dd['mapper']['markerNameToElements'](_0x1bf62e['markerName']);if(_0x41843f){for(const _0xd74e6e of _0x41843f)_0xe4d9dd['writer']['removeClass']('ck-suggestion-marker-'+_0x5efc9d,_0xd74e6e),_0xe4d9dd['writer']['removeClass']('ck-suggestion-marker--active',_0xd74e6e),_0xe4d9dd['writer']['removeAttribute']('data-suggestion',_0xd74e6e),_0xe4d9dd['mapper']['unbindElementFromMarkerName'](_0xd74e6e,_0x1bf62e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xed58ee=this['editor'],_0x278add=_0xed58ee['locale'];function _0x1ffc89(_0x26baad){return{'type':'format','content':o(_0x278add,'*Format:*\x20%0',_0x26baad)};}_0xed58ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f552=>{if('formatBlock'!=_0x20f552['type'])return;const {data:_0x5d302f}=_0x20f552;if(_0x5d302f){if('setTableRowHeader'==_0x5d302f['commandName']){const _0x2bfde8=_0x5d302f['commandParams'][0x0]['forceValue'];return _0x1ffc89(o(_0x278add,_0x2bfde8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5d302f['commandName']){const _0x1a79b2=_0x5d302f['commandParams'][0x0]['forceValue'];return _0x1ffc89(o(_0x278add,_0x1a79b2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x53cd0c=>[_0x53cd0c,null]));class _t extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x208132=this['editor'];if(!_0x208132['plugins']['has']('TableClipboard'))return;const _0x65db92=_0x208132['plugins']['get']('TrackChangesEditing'),_0x2174cd=_0x208132['plugins']['get']('TableUtils'),_0x2c5761=_0x208132['plugins']['get'](It),_0xd75745=_0x208132['plugins']['get']('TableClipboard');_0x2c5761['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x208132['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x208132['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x25b36e=null;_0x208132['model']['on']('insertContent',(_0x42b39d,_0x2c5418)=>{const [_0x448670,_0x29f7f6]=_0x2c5418,_0x5d6779=_0x2c5418[_0x2c5418['length']-0x1];_0x5d6779&&_0x5d6779['forceDefaultExecution']||_0x65db92['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4a1482,_0x137d75,_0x1f500f,_0x8d9326,_0x1fa43c){if(_0x137d75&&!_0x137d75['is']('documentSelection'))return!0x1;const _0x445777=_0x1fa43c['getTableIfOnlyTableInContent'](_0x4a1482,_0x1f500f);if(!_0x445777||!Re(_0x445777,void 0x0,_0x8d9326))return!0x1;const _0x2abaf7=_0x8d9326['getSelectionAffectedTableCells'](_0x1f500f['document']['selection']);if(!_0x2abaf7['length'])return!0x1;const _0x34bb0f=_0x2abaf7[0x0]['findAncestor']('table'),_0x212a1a=_0x8d9326['getRowIndexes'](_0x2abaf7),_0x12545b=_0x8d9326['getColumnIndexes'](_0x2abaf7),_0x59fb4f={'startRow':_0x212a1a['first'],'endRow':_0x212a1a['last'],'startColumn':_0x12545b['first'],'endColumn':_0x12545b['last']};return 0x1==_0x2abaf7['length']&&(_0x59fb4f['endRow']+=_0x8d9326['getRows'](_0x445777)-0x1,_0x59fb4f['endColumn']+=_0x8d9326['getColumns'](_0x445777)-0x1),Re(_0x34bb0f,_0x59fb4f,_0x8d9326);}(_0x448670,_0x29f7f6,_0x208132['model'],_0x2174cd,_0xd75745)&&(_0x42b39d['stop'](),_0x25b36e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x208132['model']['change'](()=>{_0x208132['model']['insertContent'](_0x2c5418[0x0],_0x2c5418[0x1],_0x2c5418[0x2],{'forceDefaultExecution':!0x0});const _0x29fe8e=_0x4cf4cc(),{rowInsertionRanges:_0x3533c7,columnInsertionRanges:_0x4b38ef,insertionRanges:_0x5f04a9,deletionRanges:_0x209b25,cells:_0x26fa32}=_0x25b36e;_0x3533c7['length']&&_0x65db92['markMultiRangeInsertion'](_0x3533c7,'tablePasteRow',{'tablePasteChainId':_0x29fe8e}),_0x4b38ef['length']&&_0x65db92['markMultiRangeInsertion'](_0x4b38ef,'tablePasteColumn',{'tablePasteChainId':_0x29fe8e}),_0x5f04a9['length']&&(_0x65db92['markMultiRangeInsertion'](_0x5f04a9,'tablePaste',{'tablePasteChainId':_0x29fe8e,'skipNestingCheck':!0x0}),_0x5f04a9['forEach'](_0x1d6269=>_0x1d6269['detach']?.())),_0x209b25['length']&&(_0x65db92['markMultiRangeDeletion'](_0x209b25,'tablePaste',{'tablePasteChainId':_0x29fe8e,'skipNestingCheck':!0x0}),_0x209b25['forEach'](_0x3716dd=>_0x3716dd['detach']?.()));const _0x188273=_0x65db92['markMultiRangeBlockFormat'](_0x26fa32['map'](({element:_0x48b184})=>_0x48b184),{'formatGroupId':_0x4cf4cc()},[],'tablePasteCell',{'tablePasteChainId':_0x29fe8e});if(_0x188273){const _0x49bc62=_0x188273['getMarkers'](),_0x26012d=[];for(const {element:_0x37c6eb,attributes:_0x3e77b7}of _0x26fa32){if(!_0x3e77b7)continue;const _0x4d7dd5=_0x208132['model']['createRangeOn'](_0x37c6eb),_0x1e51bb=_0x49bc62['find'](_0x23a4cd=>_0x23a4cd['getRange']()['isEqual'](_0x4d7dd5));_0x1e51bb&&_0x26012d['push']([_0x1e51bb['name'],_0x3e77b7]);}_0x26012d['length']&&_0x188273['setAttribute']('markerAttributes',Object['fromEntries'](_0x26012d));}_0x25b36e=null;}));},{'priority':_0x2219d1['high']+0xa}),_0x208132['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x13af4d,_0x4ed1bd)=>{const [_0x467aec,_0x38186e,,_0x4db7f8]=_0x4ed1bd;if(!_0x25b36e)return;_0x13af4d['stop']();const _0x129ad6=_0x467aec['cell'],_0x3e6b9f=_0x38186e,_0x5a0a3e=ke(_0x129ad6),_0x2b86af=ke(_0x3e6b9f);_0x13af4d['return']=_0x129ad6;let _0x308a4f=null,_0x5003de=null;if(_0x2b86af||_0x5a0a3e){if(_0x5a0a3e&&!_0x2b86af){_0x4db7f8['remove'](_0x129ad6['getChild'](0x0));for(const _0x14b560 of Array['from'](_0x3e6b9f['getChildren']()))_0x4db7f8['insert'](_0x14b560,_0x129ad6,'end');const _0x279915=_0x25b36e['rowInsertionIndexes']['includes'](_0x467aec['row']),_0x1edc89=_0x25b36e['columnInsertionIndexes']['includes'](_0x467aec['column']);_0x279915||_0x1edc89||(_0x308a4f=_0x1a312e['fromRange'](_0x4db7f8['createRangeIn'](_0x129ad6)));}else _0x2b86af&&!_0x5a0a3e&&(_0x5003de=_0x4db7f8['createRangeIn'](_0x129ad6));}else{const _0x387088=_0x4db7f8['createElement']('tableCellSuggestion'),_0x816150=_0x4db7f8['createElement']('tableCellSuggestion');_0x4db7f8['wrap'](_0x4db7f8['createRangeIn'](_0x129ad6),_0x816150),_0x4db7f8['insert'](_0x387088,_0x129ad6,0x0);for(const _0x189fb3 of Array['from'](_0x3e6b9f['getChildren']()))_0x4db7f8['insert'](_0x189fb3,_0x387088,'end');_0x308a4f=_0x1a312e['fromRange'](_0x4db7f8['createRangeOn'](_0x387088)),_0x5003de=_0x1a312e['fromRange'](_0x4db7f8['createRangeOn'](_0x816150));}const _0x21a6b1=Array['from'](_0x3e6b9f['getAttributes']())['filter'](([_0x5c9f06])=>Pe['includes'](_0x5c9f06));_0x25b36e['cells']['push']({'element':_0x129ad6,'attributes':_0x21a6b1['length']?Object['fromEntries'](_0x21a6b1):null}),_0x308a4f&&_0x25b36e['insertionRanges']['push'](_0x308a4f),_0x5003de&&_0x25b36e['deletionRanges']['push'](_0x5003de);},{'priority':'high'}),_0x2174cd['on']('insertColumns',(_0x2f805e,_0xc6ccd9)=>{const [_0x4f046a,_0x4320bc={}]=_0xc6ccd9;if(!_0x25b36e)return;const _0x4e3bb8=_0x4320bc['at']||0x0,_0x2fc683=_0x4320bc['columns']||0x1;_0x25b36e['columnInsertionIndexes']=new Array(_0x2fc683)['fill'](_0x4e3bb8)['map']((_0x3b87df,_0x4ae35c)=>_0x3b87df+_0x4ae35c);for(const {cell:_0x2e2303}of _0x2174cd['createTableWalker'](_0x4f046a,{'startColumn':_0x4e3bb8,'endColumn':_0x4e3bb8+_0x2fc683-0x1}))_0x25b36e['columnInsertionRanges']['push'](_0x208132['model']['createRangeOn'](_0x2e2303));},{'priority':'low'}),_0x2174cd['on']('insertRows',(_0x4a608b,_0xe1314d)=>{const [_0x4971da,_0x5cd6dd={}]=_0xe1314d;if(!_0x25b36e)return;const _0x240e97=_0x5cd6dd['at']||0x0,_0x9c7874=_0x5cd6dd['rows']||0x1;_0x25b36e['rowInsertionIndexes']=new Array(_0x9c7874)['fill'](_0x240e97)['map']((_0x5a8dd5,_0x118761)=>_0x5a8dd5+_0x118761);for(const {cell:_0x29ac8c}of _0x2174cd['createTableWalker'](_0x4971da,{'startRow':_0x240e97,'endRow':_0x240e97+_0x9c7874-0x1}))_0x25b36e['rowInsertionRanges']['push'](_0x208132['model']['createRangeOn'](_0x29ac8c));},{'priority':'low'}),_0x65db92['descriptionFactory']['registerDescriptionCallback'](_0x2d3164=>{if(_0x2d3164['subType']&&_0x2d3164['subType']['startsWith']('tablePaste'))return _0x2d3164['previous']?{}:{'type':'insertion','content':o(_0x208132['locale'],'*Replace\x20table\x20cells*')};});const _0x4ab357=()=>!0x1;for(const _0x1469d9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x65db92['_suggestionFactory']['registerCustomCallback']('insertion',_0x1469d9,'join',_0x4ab357),_0x65db92['_suggestionFactory']['registerCustomCallback']('deletion',_0x1469d9,'join',_0x4ab357),_0x65db92['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1469d9,'join',_0x4ab357);_0x65db92['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4ab357),_0x65db92['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5d0a7a,_0x976afb,_0x160e11)=>{const _0x368597=_0x5d0a7a['map'](_0x49ad7b=>_0x49ad7b['getContainedElement']())['filter'](_0x539b3a=>_0x539b3a),_0x304ea5=new Map(_0x368597['map'](_0xbb8b57=>[_0xbb8b57,null]));if(_0x25b36e){for(const {element:_0x8eb6cd,attributes:_0x292ad4}of _0x25b36e['cells'])_0x292ad4&&_0x304ea5['set'](_0x8eb6cd,_0x292ad4);}else{if(_0x160e11&&_0x160e11['markerAttributes'])for(const [_0x336268,_0x465521]of Object['entries'](_0x160e11['markerAttributes'])){const _0x1549d6=_0x208132['model']['markers']['get'](_0x336268),_0x50722d=_0x1549d6?_0x1549d6['getRange']()['getContainedElement']():null;_0x50722d&&_0x304ea5['set'](_0x50722d,_0x465521);}}_0x208132['model']['change'](_0x1f529d=>{for(const [_0x2af0e9,_0x30ae81]of _0x304ea5)_0x1f529d['setAttributes']({...we,..._0x30ae81},_0x2af0e9);});});const _0x40f628=(_0xbd1f62,_0x3a0412)=>{_0x65db92['_suggestionFactory']['registerCustomCallback'](_0xbd1f62,'tablePaste',_0x3a0412,(_0x349515,_0x147a3d,_0x3c9137)=>{_0x208132['model']['change'](_0x23dc35=>{const _0x3fa984=[];for(const _0x5d1892 of _0x349515){const _0x78be02=_0x5d1892['start']['nodeAfter'];_0x78be02['is']('element','tableCellSuggestion')&&_0x3fa984['push'](_0x78be02);}_0x65db92['_suggestionFactory']['getSuggestionCallback'](_0xbd1f62,null,_0x3a0412)(_0x349515,_0x147a3d,_0x3c9137);for(const _0x2cf9ff of _0x3fa984)'$graveyard'!=_0x2cf9ff['root']['rootName']&&_0x23dc35['unwrap'](_0x2cf9ff);});});};_0x40f628('insertion','accept'),_0x40f628('insertion','discard'),_0x40f628('deletion','accept'),_0x40f628('deletion','discard'),_0x65db92['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x22a337=>{const _0x9f9fd2=_0x22a337['map'](_0xa664db=>_0xa664db['getContainedElement']()),_0x1a6c06=_0x9f9fd2[0x0]['findAncestor']('table'),{minRow:_0x1fab86,maxRow:_0x29e7ba}=_0x2c5761['_getCoordsForCells'](_0x9f9fd2);_0x2174cd['removeRows'](_0x1a6c06,{'at':_0x1fab86,'rows':_0x29e7ba-_0x1fab86+0x1});}),_0x65db92['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x52a124=>{const _0x718cc8=_0x52a124['map'](_0x10c680=>_0x10c680['getContainedElement']()),_0x40d671=_0x718cc8[0x0]['findAncestor']('table'),{minColumn:_0x5849dd,maxColumn:_0x3cbf2d}=_0x2c5761['_getCoordsForCells'](_0x718cc8);_0x2174cd['removeColumns'](_0x40d671,{'at':_0x5849dd,'columns':_0x3cbf2d-_0x5849dd+0x1});});const _0x11d25f=(_0x4adb97,_0x31a003)=>{if(!_0x31a003['subType']||!_0x31a003['subType']['startsWith']('tablePaste'))return;const _0x4bd757=_0x31a003['attributes']['tablePasteChainId'],_0x682f1f=_0x65db92['getSuggestions']()['filter'](_0x48f9eb=>_0x48f9eb['isInContent']&&_0x48f9eb['attributes']&&_0x48f9eb['attributes']['tablePasteChainId']==_0x4bd757);_0x682f1f['length']&&_0x31a003['getAllAdjacentSuggestions']()['length']!=_0x682f1f['length']&&_0x682f1f['reduce']((_0x1ebf94,_0x54a506)=>(_0x1ebf94['next']=_0x54a506,_0x54a506['previous']=_0x1ebf94,_0x54a506));};function _0x4b578b(_0x4e4421,_0x555134=!0x0){const {id:_0x226456,authorId:_0x239cb8}=_0x65db92['_splitMarkerName'](_0x4e4421['markerName']),_0x299fbc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x550f3a=_0x65db92['activeMarkers']['includes'](_0x4e4421['markerName']);return _0x550f3a&&_0x299fbc['push']('ck-suggestion-marker--active'),{'classes':_0x299fbc,'attributes':{'data-suggestion':_0x226456,'data-author-id':_0x239cb8},'priority':_0x550f3a&&_0x555134?0xbc2:0xbb8};}_0x65db92['on']('suggestionLoaded',_0x11d25f,{'priority':'high'}),_0x65db92['on']('suggestionUnloaded',_0x11d25f,{'priority':'high'}),_0x208132['model']['document']['registerPostFixer'](()=>{let _0xb6b026=!0x1;const _0x4d90f9=Array['from'](_0x208132['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe6e92e,data:_0x1e2f7f}of _0x4d90f9){const {group:_0x551562,type:_0x347a90,id:_0x43a074}=_0x65db92['_splitMarkerName'](_0xe6e92e);if('suggestion'!=_0x551562||'deletion'!=_0x347a90||_0x1e2f7f['oldRange'])continue;if(!_0x65db92['hasSuggestion'](_0x43a074))continue;const _0x5058ce=_0x65db92['getSuggestion'](_0x43a074)['getRanges'](),_0x3b37bd=_0x208132['plugins']['get']('Users')['me'];for(const _0x3eeb29 of _0x65db92['getSuggestions']()){if(!_0x3eeb29['isInContent']||_0x3eeb29['author']!=_0x3b37bd)continue;if('formatBlock'!=_0x3eeb29['type']||'tablePasteCell'!=_0x3eeb29['subType'])continue;if(_0x3eeb29['getRanges']()['every'](_0x509a18=>_0x5058ce['some'](_0x201630=>_0x201630['containsRange'](_0x509a18,!0x0)))){for(const _0x5e8f73 of _0x3eeb29['getAllAdjacentSuggestions']())_0x5e8f73['isInContent']&&(_0x5e8f73['discard'](),_0xb6b026=!0x0);}}}return _0xb6b026;}),_0x208132['model']['document']['registerPostFixer'](_0x4553e5=>{const _0x48ace6=_0x208132['commands']['get']('redo');if(!_0x48ace6||!_0x48ace6['_createdBatches']['has'](_0x4553e5['batch']))return!0x1;let _0x517fe0=!0x1;const _0x11fd88=_0x208132['plugins']['get']('Users')['me'],_0x2580de=_0x208132['model']['document']['differ']['getChanges'](),_0x588da1=Array['from'](_0x208132['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x239589,data:_0x447596})=>{const {group:_0x33783c,subType:_0x5ac2f8,authorId:_0xfb2498}=_0x65db92['_splitMarkerName'](_0x239589);return'suggestion'==_0x33783c&&'tablePaste'==_0x5ac2f8&&_0xfb2498==_0x11fd88['id']&&!_0x447596['oldRange'];});for(const _0x410b40 of _0x2580de){if('insert'!=_0x410b40['type']||'tableCellSuggestion'!=_0x410b40['name']||0x1!=_0x410b40['length'])continue;const _0x5c6b76=_0x4553e5['createRange'](_0x410b40['position'],_0x410b40['position']['getShiftedBy'](0x1));if(!_0x588da1['find'](({data:_0x5eff02})=>_0x5eff02['newRange']['isEqual'](_0x5c6b76))){for(const {name:_0x4e656e,data:_0x40e455}of _0x588da1)if(_0x5c6b76['containsRange'](_0x40e455['newRange'])){_0x4553e5['updateMarker'](_0x4e656e,{'range':_0x5c6b76}),_0x517fe0=!0x0;break;}}}return _0x517fe0;}),_0x208132['model']['document']['registerPostFixer'](_0x485f88=>{let _0x4b6e6a=!0x1;const _0xfc4968=_0x208132['plugins']['get']('Users')['me'],_0x3606c1=_0x65db92['getSuggestions']()['filter'](_0x28f625=>_0x28f625['isInContent']&&_0x28f625['author']==_0xfc4968),_0x428b57=new Set(),_0x139783=new Set();for(const _0x42e628 of _0x3606c1)if('tablePaste'==_0x42e628['subType'])for(const _0xd5a8be of _0x42e628['getMarkers']()){const _0xf75b2d=_0xd5a8be['getRange']()['getContainedElement']();if(_0xf75b2d){if(_0xf75b2d['is']('element','tableCellSuggestion')&&ke(_0xf75b2d)){_0x42e628['removeMarker'](_0xd5a8be['name']),_0x428b57['add'](_0xf75b2d),_0x4b6e6a=!0x0;const _0x28b20b=_0xf75b2d['nextSibling'],_0x4aa809=_0xf75b2d['previousSibling'],_0x29b69e=_0x28b20b&&_0x28b20b['is']('element','tableCellSuggestion'),_0x4f72e8=_0x4aa809&&_0x4aa809['is']('element','tableCellSuggestion');_0x29b69e&&!_0x428b57['has'](_0x28b20b)&&_0x139783['add'](_0x28b20b),_0x4f72e8&&!_0x428b57['has'](_0x4aa809)&&_0x139783['add'](_0x4aa809);}else _0xf75b2d['is']('element','paragraph')&&_0xf75b2d['isEmpty']&&(_0x42e628['removeMarker'](_0xd5a8be['name']),_0x4b6e6a=!0x0);}}else{if('tablePasteCell'==_0x42e628['subType']){if(!_0x42e628['attributes']||!_0x42e628['attributes']['tablePasteChainId'])continue;const _0x9b5050=_0x42e628['attributes']['markerAttributes'];if(_0x9b5050&&Object['keys'](_0x9b5050)['length'])continue;const _0x526753=_0x42e628['attributes']['tablePasteChainId'];let _0x14d573=!0x0,_0x38298e=!0x0;for(const _0x397583 of _0x3606c1)if(_0x397583['subType']&&_0x397583['subType']['startsWith']('tablePaste')){if(!_0x397583['attributes']['tablePasteChainId']){_0x38298e=!0x1;break;}if(_0x397583['id']!=_0x42e628['id']&&_0x397583['attributes']['tablePasteChainId']==_0x526753){_0x14d573=!0x1;break;}}_0x38298e&&_0x14d573&&(_0x42e628['removeMarkers'](),_0x4b6e6a=!0x0);}}for(const _0x33c911 of _0x428b57)_0x485f88['remove'](_0x33c911);for(const _0x48cb66 of _0x139783)_0x485f88['unwrap'](_0x48cb66);return _0x4b6e6a;}),_0x208132['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xb67ef5=>_0x4b578b(_0xb67ef5),'converterPriority':'high'}),_0x208132['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x23981c,_0x57f5c0)=>_0x57f5c0['options']['showSuggestionHighlights']?_0x4b578b(_0x23981c,!0x1):null,'converterPriority':'high'});const _0x1663d8=_0x208132['editing']['view'];this['listenTo'](_0x1663d8['document'],'clipboardOutput',(_0x90a410,_0x57de88)=>{const _0x468069=[];for(const _0x2c7350 of _0x1663d8['createRangeIn'](_0x57de88['content'])['getItems']())_0x2c7350['is']('element','suggestion-td')&&_0x468069['push'](_0x2c7350);_0x1663d8['change'](_0x5747c9=>{for(const _0x2b0ecd of _0x468069)_0x5747c9['move'](_0x5747c9['createRangeIn'](_0x2b0ecd),_0x5747c9['createPositionBefore'](_0x2b0ecd)),_0x5747c9['remove'](_0x2b0ecd);});});}}function ke(_0x5d4271){if(_0x5d4271['isEmpty'])return!0x0;const _0x5c1d17=_0x5d4271['getChild'](0x0);return _0x5c1d17['is']('element','paragraph')&&_0x5c1d17['isEmpty'];}function Re(_0x520536,_0x40bbca={},_0x413577){for(const {isAnchor:_0x5d6ff2,cellHeight:_0x5ceeee,cellWidth:_0x47ec5e}of _0x413577['createTableWalker'](_0x520536,{'includeAllSlots':!0x0,..._0x40bbca}))if(!_0x5d6ff2||0x1!=_0x5ceeee||0x1!=_0x47ec5e)return!0x1;return!0x0;}class Nt extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x265934=this['editor']['plugins']['get']('TrackChangesEditing');_0x265934['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x265934['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x265934['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x265934['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x265934['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x265934['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5df525,_0xdfa013){const _0x529cc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16af63=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ae222=_0xdfa013['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5873b6=_0x16af63['getColumnGroupElement'](_0x1ae222);let _0x1bc1ae=_0x5873b6?_0x16af63['getTableColumnsWidths'](_0x5873b6):null,_0xcadaa6=_0x1ae222['getAttribute']('tableWidth')||null;const _0x29e3b6=_0xdfa013['tableWidth']||_0xcadaa6,_0x4f7008=_0xdfa013['columnWidths']||_0x1bc1ae,_0x1ab24c=this['editor']['plugins']['get']('Users')['me'];for(const _0x249fe5 of _0x529cc4['getSuggestions']()){const _0x29d02c=_0x249fe5['getContainedElement']();if('resizeTable'===_0x249fe5['subType']&&_0x29d02c===_0x1ae222){_0x249fe5['author']!==_0x1ab24c&&_0x249fe5['discard']();const _0x5401f8=_0x249fe5['data']['commandParams'];_0xcadaa6=_0x5401f8[0x0]['tableWidth'],_0x1bc1ae=_0x5401f8[0x0]['columnWidths'];break;}}_0x5df525({'table':_0x1ae222,'tableWidth':_0x29e3b6,'columnWidths':_0x4f7008}),_0x529cc4['markBlockFormat'](_0x1ae222,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xcadaa6,'columnWidths':_0x1bc1ae}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x50e56f){if('formatBlock'!=_0x50e56f['type']&&'formatInline'!=_0x50e56f['type'])return;const {data:_0x4c4cd}=_0x50e56f;if(_0x4c4cd&&'resizeTable'===_0x4c4cd['formatGroupId']){const _0x147a96='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x147a96)};}}}class Dt extends _0x4ba4b5{['afterInit'](){const _0x3b51f7=this['editor'];_0x3b51f7['plugins']['has']('Template')&&_0x3b51f7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4ba4b5{['afterInit'](){const _0x5056e1=this['editor'];if(!_0x5056e1['commands']['get']('insertTableOfContents'))return;_0x5056e1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x69d326=_0x5056e1['plugins']['get']('TrackChangesEditing'),_0x381a94=_0x5056e1['locale'];_0x69d326['descriptionFactory']['registerElementLabel']('tableOfContents',_0x57bf7a=>o(_0x381a94,'ELEMENT_TABLE_OF_CONTENTS',_0x57bf7a));}}class $t extends _0x4ba4b5{['afterInit'](){const _0x45b87b=this['editor'];if(!_0x45b87b['plugins']['has']('Title'))return;const _0x8d96ab=_0x45b87b['plugins']['get']('TrackChangesEditing');_0x8d96ab['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x45b87b['locale'],'ELEMENT_TITLE')),_0x45b87b['model']['document']['registerPostFixer'](_0x120308=>{let _0x196bc7=!0x1;const _0x7090f6=Array['from'](_0x45b87b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ffe7f,data:_0x3a1f6e}of _0x7090f6){const {group:_0x2ba302}=_0x8d96ab['_splitMarkerName'](_0x1ffe7f);if('suggestion'!==_0x2ba302||!_0x3a1f6e['newRange'])continue;const _0x1d9167=_0x3a1f6e['newRange'],_0x4fe468=_0x1d9167['end']['nodeBefore'];if(!_0x4fe468||!_0x4fe468['is']('element','title-content'))continue;if(!_0x1d9167['start']['isTouching'](_0x1d9167['end']))continue;const _0x21745c=_0x45b87b['model']['schema']['getNearestSelectionRange'](_0x1d9167['end'],'forward');if(_0x21745c&&_0x21745c['isCollapsed']){const _0x190312=_0x120308['createRange'](_0x1d9167['start'],_0x21745c['start']);_0x190312['isEqual'](_0x1d9167)||(_0x120308['updateMarker'](_0x1ffe7f,{'range':_0x190312}),_0x196bc7=!0x0);}_0x196bc7||(_0x120308['removeMarker'](_0x1ffe7f),_0x196bc7=!0x0);}return _0x196bc7;});}}class Bt extends _0x4ba4b5{['afterInit'](){const _0x253460=this['editor'],_0x55dcae=_0x253460['plugins']['get']('TrackChangesEditing');_0x253460['plugins']['has']('UndoEditing')&&(_0x55dcae['enableCommand']('undo'),_0x55dcae['enableCommand']('redo'));}}class xt extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x572be6=this['editor'];if(!_0x572be6['plugins']['has']('TableCaptionEditing'))return;_0x572be6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x4ba4b5{['tableProperties'];['tableCellProperties'];constructor(_0x1de0e0){super(_0x1de0e0),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x592bad=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x43d7f7 of this['tableProperties'])_0x592bad['enableCommand'](_0x43d7f7,(_0x565c86,_0x10be10)=>{const _0x23222c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x43d7f7,[_0x23222c],this['tableProperties'],'tableProperties',_0x565c86,_0x10be10);});_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x592bad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x352b9a,_0xd652ce)=>this['handleDiscardAction'](this['tableProperties'],_0x352b9a,_0xd652ce)),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2e442a of this['tableCellProperties'])_0x592bad['enableCommand'](_0x2e442a,(_0x1b4311,_0x14976c)=>{const _0x39d963=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2e442a,_0x39d963,this['tableCellProperties'],'tableCellProperties',_0x1b4311,_0x14976c);});_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x592bad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x90b44a,_0x36d49c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x90b44a,_0x36d49c)),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x592bad['descriptionFactory']['registerDescriptionCallback'](_0x114f58=>this['handleSuggestionDescription'](_0x114f58));}['_handlePropertyChange'](_0x119ebd,_0x54deb5,_0x3a405b,_0x1c8b5c,_0x6c7539,_0x48a6f4){const _0x504852=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x48a6f4['batch'],()=>{for(const _0x3ad9ea of _0x54deb5){if(this['_getSuggestion'](_0x3ad9ea,_0x1c8b5c))_0x6c7539(_0x48a6f4);else{const _0x537085={};for(const _0x26c9db of _0x3a405b){const _0xdaffcf=_0x3ad9ea['getAttribute'](_0x26c9db);void 0x0!==_0xdaffcf&&(_0x537085[_0x26c9db]=_0xdaffcf);}_0x6c7539(_0x48a6f4),_0x504852['markBlockFormat'](_0x3ad9ea,{'commandParams':[_0x537085]},[],_0x1c8b5c);}}});}['handleDiscardAction'](_0x36a3f6,_0x2bc3df,_0x15dc46){const _0x413a7c=_0x2bc3df[0x0]['start']['nodeAfter'],_0x40d7ee=_0x15dc46['commandParams'][0x0];this['editor']['model']['change'](_0x309d63=>{for(const _0x55ab08 of _0x36a3f6)void 0x0!==_0x40d7ee[_0x55ab08]?_0x309d63['setAttribute'](_0x55ab08,_0x40d7ee[_0x55ab08],_0x413a7c):_0x309d63['removeAttribute'](_0x55ab08,_0x413a7c);});}['handleSuggestionDescription'](_0x4e2f4c){if(_0x4e2f4c['data'])switch(_0x4e2f4c['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'](_0x941636,_0x59aede){const _0x9904d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xb8b0f of _0x9904d['getSuggestions']({'skipNotAttached':!0x0})){const _0xfc8518=_0xb8b0f['getContainedElement']();if(_0xb8b0f['subType']===_0x59aede&&_0xfc8518===_0x941636)return _0xb8b0f;}return null;}}const m='$elementName';class p extends _0x4ba4b5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x106ae5,_0x2e42cd,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x4db54c){function _0x210ec3(_0x3bad2e){return _0x3bad2e['map'](_0x2a924b=>String['fromCharCode'](_0x2a924b))['join']('');}super(_0x4db54c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1fe91a,_0x301d83,_0x5dc067,_0x1478ec)=>{this['_model']['change'](()=>{for(const _0xc895cd of[..._0x1478ec,..._0x5dc067])this['_model']['markers']['has'](_0xc895cd)&&_0x4db54c['editing']['reconvertMarker'](_0xc895cd);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4db54c['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(),_0x4db54c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4db54c['config']['get']('trackChanges.trackFormatChanges'),_0x4db54c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4db54c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4db54c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x210ec3([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x210ec3([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x36]);}['init'](){const _0x4e849a=this['editor'],_0x5f16d2=(_0x667aad,_0x9f9cbb)=>{if('attribute'!=_0x667aad)return'ck-suggestion-marker-'+_0x667aad;const _0x54b0d9=_0x9f9cbb['split']('|')[0x0];return this['_isBlockAttribute'](_0x54b0d9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e849a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ef494=>{const {id:_0x524ba0,authorId:_0x5ac038,type:_0x4cc8cb,subType:_0x35e80b}=this['_splitMarkerName'](_0x3ef494['markerName']),_0x410186=['ck-suggestion-marker',_0x5f16d2(_0x4cc8cb,_0x35e80b)];let _0x5136c6=0xbb8;return this['activeMarkers']['includes'](_0x3ef494['markerName'])&&(_0x410186['push']('ck-suggestion-marker--active'),_0x5136c6=0xbc2),'deletion'==_0x4cc8cb&&(_0x5136c6+=0x5),{'classes':_0x410186,'attributes':{'data-suggestion':_0x524ba0,'data-author-id':_0x5ac038},'priority':_0x5136c6};}}),_0x4e849a['conversion']['for']('dataDowncast')['add'](_0x350026=>{_0x350026['on']('addMarker:suggestion',(_0x3ee738,_0x56561f,_0x3d8a67)=>{if(!_0x3d8a67['options']['showSuggestionHighlights'])return;const _0x23f19d=_0x56561f['item'];if(!_0x23f19d)return;const _0x29fef7=_0x3d8a67['mapper']['toViewElement'](_0x23f19d);_0x4e849a['model']['schema']['isObject'](_0x23f19d)&&_0x29fef7&&!_0x29fef7['getCustomProperty']('widget')&&_0x29fef7['is']('containerElement')&&_0x2c0c3d(_0x29fef7,_0x3d8a67['writer']);},{'priority':'high'});}),_0x4e849a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1ea477,_0x3778fd)=>{if(!_0x3778fd['options']['showSuggestionHighlights'])return null;const {type:_0x4bf089,subType:_0x4949df}=this['_splitMarkerName'](_0x1ea477['markerName']);return{'classes':['ck-suggestion-marker',_0x5f16d2(_0x4bf089,_0x4949df)],'priority':0xbb8};}});const _0x560b6d=({showActiveMarkers:_0xaffcd1=!0x0,isAttributeSuggestion:_0x7a2945=!0x1}={})=>(_0x4dad52,_0x4247b2,_0x385236)=>{if(!_0x4247b2['item'])return;const {id:_0x14e886,authorId:_0x4c14e2}=this['_splitMarkerName'](_0x4247b2['markerName']);if(_0x7a2945){const _0x5a0ea8=this['_suggestions']['get'](_0x14e886),_0x423a8a=this['_getAttributeKey'](_0x5a0ea8);if(!this['_isBlockAttribute'](_0x423a8a))return;}if(_0x4247b2['item']['is']('selection'))return void _0x385236['consumable']['consume'](_0x4247b2['item'],_0x4dad52['name']);const _0x2962d4=_0x385236['mapper']['toViewElement'](_0x4247b2['item']);if(_0x4247b2['item']['is']('element')&&_0x4e849a['model']['schema']['isBlock'](_0x4247b2['item'])&&!_0x2962d4['getCustomProperty']('addHighlight')){_0x385236['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2962d4),_0x385236['writer']['setAttribute']('data-suggestion',_0x14e886,_0x2962d4),_0x385236['writer']['setAttribute']('data-author-id',_0x4c14e2,_0x2962d4),_0x385236['mapper']['bindElementToMarker'](_0x2962d4,_0x4247b2['markerName']),_0xaffcd1&&(this['activeMarkers']['includes'](_0x4247b2['markerName'])?_0x385236['writer']['addClass']('ck-suggestion-marker--active',_0x2962d4):_0x385236['writer']['removeClass']('ck-suggestion-marker--active',_0x2962d4));for(const _0x4839fc of _0x4e849a['model']['createRangeIn'](_0x4247b2['item'])['getItems']())_0x385236['consumable']['consume'](_0x4839fc,_0x4dad52['name']);_0x385236['consumable']['consume'](_0x4247b2['item'],_0x4dad52['name']);}};_0x4e849a['conversion']['for']('dataDowncast')['add'](_0x1de560=>{_0x1de560['on']('addMarker:suggestion:formatBlock',(_0x3abba1,_0x273c03,_0x52347d)=>{_0x52347d['options']['showSuggestionHighlights']&&_0x560b6d({'showActiveMarkers':!0x1})(_0x3abba1,_0x273c03,_0x52347d);},{'priority':'highest'});}),_0x4e849a['conversion']['for']('dataDowncast')['add'](_0x2b90f4=>{_0x2b90f4['on']('addMarker:suggestion:attribute',(_0x2f6922,_0x4500d1,_0x4304a2)=>{_0x4304a2['options']['showSuggestionHighlights']&&_0x560b6d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2f6922,_0x4500d1,_0x4304a2);},{'priority':'highest'});}),_0x4e849a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x9ebdfd,_0x496220)=>_0x496220['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x9ebdfd['substr'](0xb)}}),_0x4e849a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5526c9,{writer:_0x508b90})=>{let _0x1374e4='suggestion:'+_0x5526c9['getAttribute']('suggestion-type')+':'+_0x5526c9['getAttribute']('id');return _0x5526c9['getAttribute']('marker-count')&&(_0x1374e4+=':'+_0x5526c9['getAttribute']('marker-count')),_0x508b90['createElement']('$marker',{'data-name':_0x1374e4});}}),_0x4e849a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x456a8f=>{_0x456a8f['on']('addMarker:suggestion:formatBlock',_0x560b6d(),{'priority':'high'});}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x41bbab=>{_0x41bbab['on']('addMarker:suggestion:attribute',_0x560b6d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x16f18d=>{_0x16f18d['on']('removeMarker:suggestion:formatBlock',(_0x2ae808,_0x22a7fd,_0x2817fc)=>{const _0x27b7ce=_0x2817fc['mapper']['markerNameToElements'](_0x22a7fd['markerName']);if(_0x27b7ce){for(const _0x2c0063 of _0x27b7ce)_0x2c0063['getCustomProperty']('addHighlight')||(_0x2817fc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c0063),_0x2817fc['writer']['removeAttribute']('data-suggestion',_0x2c0063),_0x2817fc['writer']['removeAttribute']('data-author-id',_0x2c0063),_0x2817fc['mapper']['unbindElementFromMarkerName'](_0x2c0063,_0x22a7fd['markerName']));}},{'priority':'high'});}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x5dc642=>{_0x5dc642['on']('removeMarker:suggestion:attribute',(_0xac89f6,_0x53aaa6,_0x5af39b)=>{const _0x49debc=_0x5af39b['mapper']['markerNameToElements'](_0x53aaa6['markerName']);if(!_0x49debc)return;const {id:_0x4e8720}=this['_splitMarkerName'](_0x53aaa6['markerName']),_0x4d0929=this['_suggestions']['get'](_0x4e8720),_0x2fc784=this['_getAttributeKey'](_0x4d0929);if(this['_isBlockAttribute'](_0x2fc784)){for(const _0x4d585c of _0x49debc)_0x4d585c['getCustomProperty']('addHighlight')||(_0x5af39b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d585c),_0x5af39b['writer']['removeAttribute']('data-suggestion',_0x4d585c),_0x5af39b['writer']['removeAttribute']('data-author-id',_0x4d585c),_0x5af39b['mapper']['unbindElementFromMarkerName'](_0x4d585c,_0x53aaa6['markerName']));}},{'priority':'high'});}),_0x4e849a['model']['document']['registerPostFixer'](_0x407658=>{let _0x46558f=!0x1;const _0x1ef5d7=Array['from'](_0x4e849a['model']['document']['differ']['getChangedMarkers']()),_0x3843c0=new Set();for(const {name:_0x33711d,data:_0x49324b}of _0x1ef5d7){const {group:_0xd47b8e,type:_0x340eb8,subType:_0x3a8160,id:_0x2ce2fa}=this['_splitMarkerName'](_0x33711d);if('suggestion'!==_0xd47b8e)continue;const _0x476f8f=this['_suggestions']['get'](_0x2ce2fa);if(null!=_0x49324b['newRange']){'formatInline'==_0x340eb8&&(_0x46558f=_0x46558f||Ut(_0x49324b['newRange'],_0x33711d,_0x407658,_0x4e849a['model']['schema']));const _0x103a5c='attribute'==_0x340eb8&&this['_isBlockAttribute'](_0x3a8160['split']('|')[0x0]);if(_0x49324b['newRange']['isCollapsed']||'$graveyard'==_0x49324b['newRange']['root']['rootName']||'formatBlock'==_0x340eb8&&!Ft(_0x49324b['newRange'])||_0x103a5c&&!Ft(_0x49324b['newRange'])||'deletion'==_0x340eb8&&!(!Vt(_0x1af6af=_0x49324b['newRange'])&&!function(_0x3babce){return _0x3babce['start']['parent']==_0x3babce['end']['nodeBefore']&&_0x3babce['start']['isAtEnd'];}(_0x1af6af)))_0x407658['removeMarker'](_0x33711d),_0x46558f=!0x0;else{if(!_0x476f8f||!_0x476f8f['isInContent'])continue;if(_0x49324b['newRange']&&_0x49324b['oldRange']&&_0x49324b['newRange']['isEqual'](_0x49324b['oldRange']))continue;_0x3843c0['add'](_0x476f8f);}}}var _0x1af6af;return _0x3843c0['size']>0x0&&(_0x46558f=!!this['_joinWithAdjacentSuggestions'](_0x3843c0)||_0x46558f),_0x46558f;}),_0x4e849a['model']['document']['registerPostFixer'](_0x46ee4f=>{let _0x54065f=!0x1;for(const _0x2ea32e of _0x4e849a['model']['document']['differ']['getChanges']())if('insert'==_0x2ea32e['type'])for(const _0x258bc8 of this['_suggestions']['values']()){if(_0x258bc8['isMultiRange']||!_0x258bc8['isInContent'])continue;const _0x2d4cb6='formatBlock'==_0x258bc8['type'],_0xad600f=this['_getAttributeKey'](_0x258bc8),_0x17dfe5=_0xad600f&&this['_isBlockAttribute'](_0xad600f);if(!_0x2d4cb6&&!_0x17dfe5)continue;const _0x1ce872=_0x258bc8['getFirstRange']();if(_0x1ce872['start']['parent']!=_0x1ce872['end']['parent']&&!_0x1ce872['end']['isAtEnd']){const _0x1a8165=_0x4e849a['model']['createPositionAt'](_0x1ce872['start']['nodeAfter'],'end'),_0x14722a=_0x4e849a['model']['createRange'](_0x1ce872['start'],_0x1a8165);_0x46ee4f['updateMarker'](_0x258bc8['getFirstMarker'](),{'range':_0x14722a}),_0x54065f=!0x0;}}return _0x54065f;}),_0x4e849a['model']['document']['registerPostFixer'](_0x5f1657=>this['_processAttributeChanges'](_0x5f1657)),_0x4e849a['model']['document']['registerPostFixer'](_0x28d1c0=>!_0x28d1c0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x28d1c0)),_0x4e849a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e849a['model']['document']['on']('change:data',(_0xfb6685,_0x35ef50)=>{if(!_0x35ef50['isLocal']||_0x35ef50['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1a0df5=_0x4e849a['model']['document']['differ']['getChanges']();if(0x0==_0x1a0df5['length'])return;const _0x2b7dfd=[],_0x1051b4=_0x1a0df5['filter'](_0xa6cdd9=>'attribute'==_0xa6cdd9['type']),_0xf2a844=_0x1a0df5['filter'](_0x192208=>'insert'==_0x192208['type']&&'$text'!=_0x192208['name']);for(const _0x3161fb of _0x1051b4)this['_isRegisteredAttribute'](_0x3161fb['attributeKey'])&&_0x2b7dfd['push']({'key':_0x3161fb['attributeKey'],'newValue':_0x3161fb['attributeNewValue'],'oldValue':_0x3161fb['attributeOldValue'],'range':Pt(_0x3161fb['range'],_0x4e849a['model'])});for(const _0x96a21b of _0xf2a844){if('rename'!=_0x96a21b['action']&&'refresh'!=_0x96a21b['action'])continue;const _0x529d1a=Lt(_0x96a21b['position']['nodeAfter'],_0x4e849a['model']),_0x11c053=_0x96a21b['before'];'rename'==_0x96a21b['action']&&_0x2b7dfd['push']({'key':m,'newValue':_0x96a21b['name'],'oldValue':_0x11c053['name'],'range':_0x529d1a});for(const [_0x4dfa4d,_0x4fdeca]of _0x11c053['attributes']){if(!this['_isRegisteredAttribute'](_0x4dfa4d))continue;const _0x63770f=_0x96a21b['attributes']['get'](_0x4dfa4d);_0x4fdeca!==_0x63770f&&_0x2b7dfd['push']({'key':_0x4dfa4d,'newValue':_0x63770f,'oldValue':_0x4fdeca,'range':_0x529d1a});}for(const [_0x28e904,_0x4884af]of _0x96a21b['attributes'])this['_isRegisteredAttribute'](_0x28e904)&&(_0x11c053['attributes']['has'](_0x28e904)||_0x2b7dfd['push']({'key':_0x28e904,'newValue':_0x4884af,'oldValue':null,'range':_0x529d1a}));}0x0!=_0x2b7dfd['length']&&_0x4e849a['model']['enqueueChange'](_0x35ef50,_0x58a331=>{const _0x4215fd=_0x4cf4cc();for(const {range:_0x346a52,key:_0x49c335,oldValue:_0x49823c,newValue:_0x1ee07c}of _0x2b7dfd)this['markAttributeChange'](_0x346a52,_0x49c335,_0x49823c,_0x1ee07c,{'groupId':_0x4215fd});this['_reduceExistingSuggestions'](_0x58a331,_0x2b7dfd);});},{'priority':'lowest'}),_0x4e849a['model']['markers']['on']('update:suggestion',(_0x338c2d,_0x3039cc,_0x8ce5c8)=>{if(null==_0x8ce5c8){const {id:_0x3c3f17}=this['_splitMarkerName'](_0x3039cc['name']),_0x3a724e=this['_suggestions']['get'](_0x3c3f17);_0x3a724e&&_0x3a724e['addMarkerName'](_0x3039cc['name']);}}),_0x4e849a['model']['document']['on']('change:data',()=>{const _0x3603d1=Array['from'](_0x4e849a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5ea174=>'suggestion'===this['_splitMarkerName'](_0x5ea174['name'])['group']);if(0x0===_0x3603d1['length'])return;_0x3603d1['sort']((_0x5f5cdc,_0x100a72)=>{const _0x2925be=_0x5f5cdc['data']['oldRange'],_0x36290b=_0x100a72['data']['oldRange'];return null===_0x2925be&&null===_0x36290b?0x0:null===_0x2925be&&null!==_0x36290b?-0x1:null!==_0x2925be&&null===_0x36290b?0x1:_0x2925be['start']['isBefore'](_0x36290b['start'])?-0x1:0x1;});const _0x74450b=new Set(),_0x421a84=new Set();for(const {name:_0x506324,data:_0x2badab}of _0x3603d1){const {id:_0x218cb5}=this['_splitMarkerName'](_0x506324);if(null===_0x2badab['oldRange']){const _0x56ff9c=this['_handleNewSuggestionMarker'](_0x506324);_0x421a84['add'](_0x56ff9c);}else{const _0x429897=this['_suggestions']['get'](_0x218cb5);null!==_0x2badab['newRange']||_0x429897['isInContent']?(_0x74450b['add'](_0x429897['head']),_0x421a84['add'](_0x429897)):this['_removeSuggestion'](_0x429897);}}_0x421a84['size']>0x0&&this['_refreshSuggestionsChain'](_0x421a84);for(const _0x5e89ad of _0x74450b)this['fire']('suggestionChanged',_0x5e89ad);}),_0x4e849a['model']['on']('applyOperation',(_0x1bcbd5,_0x10edf0)=>{const _0x4463ed=_0x10edf0[0x0];if(!this['_suggestions']['size'])return;if(!_0x4463ed['isDocumentOperation'])return;if(_0x4463ed['batch']['isUndo']||!_0x4463ed['batch']['isLocal'])return;let _0x4accad,_0x1f6160;switch(_0x4463ed['type']){case'insert':_0x4accad=_0x4e849a['model']['createPositionAt'](_0x4463ed['position']),_0x1f6160=_0x4accad['getShiftedBy'](_0x4463ed['howMany']);break;case'split':_0x4accad=_0x4e849a['model']['createPositionAt'](_0x4463ed['splitPosition']),_0x1f6160=_0x4e849a['model']['createPositionAt'](_0x4463ed['moveTargetPosition']);break;case'move':_0x4accad=_0x4e849a['model']['createPositionAt'](_0x4463ed['targetPosition']),_0x1f6160=_0x4accad['getShiftedBy'](_0x4463ed['howMany']);break;default:return;}const _0x8398dc=_0x4e849a['model']['createRange'](_0x4accad,_0x1f6160);_0x4e849a['model']['change'](()=>{for(const {suggestion:_0x557faa,meta:_0x5c3b99}of this['_findSuggestions'](_0x8398dc)){if(_0x557faa['isMultiRange'])continue;if('formatInline'==_0x557faa['type'])continue;const _0x9f0863=this['_getAttributeKey'](_0x557faa);if(_0x9f0863&&this['_isBlockAttribute'](_0x9f0863)&&'split'!=_0x4463ed['type'])continue;const _0x7a136c=_0x557faa['data']&&_0x557faa['data']['multipleBlocks'];('formatBlock'!=_0x557faa['type']||'split'==_0x4463ed['type']&&!_0x7a136c)&&(_0x5c3b99['containsRangeInObject']||'insertion'==_0x557faa['type']&&_0x5c3b99['isOwn']||_0x557faa['getFirstRange']()['containsRange'](_0x8398dc)&&this['_breakSuggestionMarker'](_0x557faa,_0x4accad,_0x1f6160));}});},{'priority':'lowest'}),_0x4e849a['model']['on']('deleteContent',(_0x325a74,_0x362f44)=>{const _0xc0f05c=_0x362f44[0x0],_0x3ea16f=_0x362f44[0x1];if(_0x3ea16f&&_0x3ea16f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xc0f05c['isCollapsed'])return;const _0x4b5e7a=_0x4e849a['model']['schema'],{start:_0x58ee53,end:_0x159a5e}=_0xc0f05c['getFirstRange'](),_0x2c59a1=_0x58ee53['nodeAfter']&&_0x4b5e7a['isLimit'](_0x58ee53['nodeAfter'])?null:_0x4b5e7a['getNearestSelectionRange'](_0x58ee53,'forward'),_0x43b919=_0x159a5e['nodeBefore']&&_0x4b5e7a['isLimit'](_0x159a5e['nodeBefore'])?null:_0x4b5e7a['getNearestSelectionRange'](_0x159a5e,'backward'),_0x45ea84=_0x4e849a['model']['createRange'](_0x2c59a1?_0x2c59a1['start']:_0x58ee53,_0x43b919?_0x43b919['end']:_0x159a5e);_0x4e849a['model']['change'](_0x59e54c=>{this['markDeletion'](_0x45ea84);const _0x2d9968=_0x4e849a['model']['schema']['getNearestSelectionRange'](_0x45ea84['start']);_0xc0f05c['is']('documentSelection')?_0x59e54c['setSelection'](_0x2d9968):_0xc0f05c['setTo'](_0x2d9968);}),_0x325a74['stop']();},{'priority':_0x2219d1['normal']+0xa}),_0x4e849a['model']['on']('insertContent',(_0x18c26f,_0xb4bd73)=>{const _0x50ac3e=_0xb4bd73[_0xb4bd73['length']-0x1];_0x50ac3e&&_0x50ac3e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e849a['model']['change'](()=>{let _0x2ab19e=_0x4e849a['model']['insertContent'](_0xb4bd73[0x0],_0xb4bd73[0x1],_0xb4bd73[0x2],{'forceDefaultExecution':!0x0});if(!_0x2ab19e)return;_0x18c26f['return']=_0x2ab19e['clone']();const _0x358165=_0x2ab19e['end']['nodeBefore'],_0x53886c=_0x4e849a['model']['schema'];_0x358165&&_0x53886c['isBlock'](_0x358165)&&!_0x53886c['isObject'](_0x358165)&&(_0x2ab19e=_0x4e849a['model']['createRange'](_0x2ab19e['start'],_0x4e849a['model']['createPositionAt'](_0x358165,'end'))),this['markInsertion'](_0x2ab19e);}),_0x18c26f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x40ed9a=new x(_0x4e849a,this['_suggestions']);_0x4e849a['commands']['add']('acceptSuggestion',_0x40ed9a),this['enableCommand']('acceptSuggestion');const _0xbe795b=new R(_0x4e849a,this['_suggestions']);_0x4e849a['commands']['add']('discardSuggestion',_0xbe795b),this['enableCommand']('discardSuggestion'),_0x4e849a['commands']['add']('acceptAllSuggestions',new E(_0x4e849a,_0x40ed9a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e849a['commands']['add']('discardAllSuggestions',new E(_0x4e849a,_0xbe795b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e849a['commands']['add']('acceptSelectedSuggestions',new O(_0x4e849a,_0x40ed9a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e849a['commands']['add']('discardSelectedSuggestions',new O(_0x4e849a,_0xbe795b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x47c1c2=_0x4e849a['plugins']['get']('CommentsRepository');this['listenTo'](_0x47c1c2,'addComment',(_0x267077,{threadId:_0x3406a9})=>{const _0x5df124=this['_suggestions']['get'](_0x3406a9);_0x5df124&&_0x5df124['commentThread']&&0x1===_0x5df124['commentThread']['length']&&this['_updateSuggestionData'](_0x3406a9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x47c1c2,'removeComment',(_0x260fc1,{threadId:_0x3719f7})=>{const _0x562f89=this['_suggestions']['get'](_0x3719f7);_0x562f89&&_0x562f89['commentThread']&&!_0x562f89['commentThread']['length']&&this['_updateSuggestionData'](_0x3719f7,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x31be2d){if(this['_adapter'])throw new _0x1a35b0('track-changes-adapter-already-set',this);this['_adapter']=_0x31be2d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x23357=!0x1,toJSON:_0x1cd6d4=!0x1}={}){const _0x36f9fb=[];for(const _0x2a0598 of this['_suggestions']['values']())_0x23357&&!_0x2a0598['isInContent']||_0x36f9fb['push'](_0x2a0598);return _0x1cd6d4?_0x36f9fb['map'](_0x18e3e9=>_0x18e3e9['toJSON']()):_0x36f9fb;}['getSuggestion'](_0x13db28){const _0x44d018=this['_suggestions']['get'](_0x13db28);if(!_0x44d018)throw new _0x1a35b0('track-changes-suggestion-not-found',this);return _0x44d018;}['hasSuggestion'](_0x2c1334){return this['_suggestions']['has'](_0x2c1334);}['addSuggestionData'](_0x1e5d28){const {authorId:_0x161b83,id:_0x2ad7d1,attributes:_0x39bcf2}=_0x1e5d28,[_0x2db450,_0x1e14fc]=_0x1e5d28['type']['split'](':'),_0x23b80b=this['_suggestions']['get'](_0x2ad7d1)||this['_createSuggestion'](_0x2db450,_0x1e14fc,_0x2ad7d1,_0x161b83,_0x39bcf2);if(this['_addThreadToSuggestion'](_0x23b80b),this['_checkSuggestionCorrectness'](_0x23b80b,_0x2db450,_0x1e14fc||null,_0x161b83),_0x23b80b['createdAt']=_0x1e5d28['createdAt'],_0x23b80b['_isDataLoaded']=!0x0,_0x39bcf2&&_0x39bcf2['@external']){const _0x1164d0=_0x39bcf2['@external'],_0x48502d=this['_getExternalAuthor'](_0x1164d0['authorName']);_0x23b80b['authoredAt']=_0x1164d0['createdAt'],_0x23b80b['author']=_0x48502d,_0x23b80b['isExternal']=!0x0;}else _0x23b80b['authoredAt']=_0x1e5d28['createdAt'];switch(_0x1e5d28['data']&&(_0x23b80b['data']=_0x1e5d28['data']),_0x1e5d28['attributes']&&(_0x23b80b['attributes']=_0x1e5d28['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x23b80b['_saved']=!0x0),this['_suggestionState']['get'](_0x23b80b)){case'notReady':this['_suggestionState']['set'](_0x23b80b,'dataReady');break;case'markerReady':_0x23b80b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x23b80b])),this['_refreshSuggestionsChain'](new Set([_0x23b80b])),this['_suggestionState']['set'](_0x23b80b,'ready'),this['fire']('suggestionLoaded',_0x23b80b)):this['_suggestionState']['set'](_0x23b80b,'removed');}return _0x23b80b;}['acceptSuggestion'](_0x5a9204){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14dae8 of _0x5a9204['getAllAdjacentSuggestions']())_0x14dae8['accept']();});});}['discardSuggestion'](_0x574375){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x587d4d of _0x574375['getAllAdjacentSuggestions']())_0x587d4d['discard']();});});}['enableCommand'](_0x525779,_0x281836){const _0x80de3=this['editor']['commands']['get'](_0x525779);if(!_0x80de3)throw new _0x1a35b0('track-changes-command-not-found',this,{'commandName':_0x525779});if(this['_enabledCommands']['has'](_0x80de3))throw new _0x1a35b0('track-changes-enable-command-twice',this,{'commandName':_0x525779});this['_enabledCommands']['add'](_0x80de3),_0x281836&&_0x80de3['on']('execute',(_0x335274,_0x3d2288)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3d2288['length']>0x0&&_0x3d2288[_0x3d2288['length']-0x1]&&_0x3d2288[_0x3d2288['length']-0x1]['forceDefaultExecution']?_0x3d2288['pop']():(_0x335274['return']=_0x281836((..._0x422dc4)=>_0x80de3['execute'](..._0x422dc4,{'forceDefaultExecution':!0x0}),..._0x3d2288),_0x335274['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xb5bd6b){let _0x2d6016,_0x4edb49;const _0x1ace38=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2d6016=_0xb5bd6b();}catch(_0xe8fc22){_0x4edb49=_0xe8fc22;}return _0x1ace38||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4edb49&&_0x1a35b0['rethrowUnexpectedError'](_0x4edb49,this),_0x2d6016;}['markInsertion'](_0x378ebc,_0x292a76=null,_0x2e3566={}){if(_0x378ebc['isCollapsed'])return null;const _0x340371=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x141a18,meta:_0x1ea768}of this['_findSuggestions'](_0x378ebc,'insertion'))if(_0x1ea768['isOwn']){if(!_0x1ea768['isNextTo']){if(_0x1ea768['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x141a18,_0x2e3566))continue;return _0x141a18;}if(qt(_0x141a18,_0x2e3566))return _0x141a18;this['_breakSuggestionMarker'](_0x141a18,_0x378ebc['start'],_0x378ebc['end']);break;}if(_0x292a76==_0x141a18['subType']&&qt(_0x141a18,_0x2e3566)){const _0x44e119=_0x141a18['getFirstRange']();return _0x44e119['start']['isEqual'](_0x378ebc['end'])?this['_setSuggestionRange'](_0x141a18,this['_model']['createRange'](_0x378ebc['start'],_0x44e119['end'])):this['_setSuggestionRange'](_0x141a18,this['_model']['createRange'](_0x44e119['start'],_0x378ebc['end'])),_0x141a18;}}const _0x306f3c=_0x4cf4cc(),_0x17353c=_0x340371['id'],_0x568002=_0x292a76?'insertion:'+_0x292a76:'insertion',_0x4b1046=this['_setSuggestionData']({'id':_0x306f3c,'type':_0x568002,'createdAt':new Date(),'authorId':_0x17353c,'attributes':_0x2e3566});return this['_addSuggestionMarker'](_0x568002,_0x306f3c,_0x17353c,_0x378ebc),_0x4b1046;}['markMultiRangeInsertion'](_0x55a908,_0x338f46='multi',_0x5a408f={}){const _0x180894=this['editor']['plugins']['get']('Users')['me'],_0x397e8c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x338f46,'join');for(const _0x24e8c4 of this['getSuggestions']())if(_0x24e8c4['author']['id']==_0x180894['id']&&'insertion'==_0x24e8c4['type']&&_0x24e8c4['subType']==_0x338f46&&qt(_0x24e8c4,_0x5a408f)&&(_0x397e8c(_0x24e8c4['getRanges'](),_0x55a908)||_0x397e8c(_0x55a908,_0x24e8c4['getRanges']()))){for(const _0x36b0c4 of _0x55a908)_0x24e8c4['addRange'](_0x36b0c4);return _0x24e8c4;}for(const {suggestion:_0x28df4d,meta:_0x36f902}of this['_findSuggestions'](_0x55a908,'insertion')){if(!_0x36f902['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x36f902['containsRangeInObject'])continue;if(!qt(_0x28df4d,_0x5a408f))continue;let _0x348600=!0x0;for(const _0x203116 of _0x28df4d['getRanges']())for(const _0x52ace5 of _0x55a908)if(!_0x203116['containsRange'](_0x52ace5)){_0x348600=!0x1;break;}if(_0x348600)return _0x28df4d;}const _0x1aa8e3=_0x4cf4cc(),_0x46e38d=_0x180894['id'],_0x379661='insertion:'+_0x338f46,_0x46111f=this['_setSuggestionData']({'id':_0x1aa8e3,'type':_0x379661,'createdAt':new Date(),'authorId':_0x46e38d,'attributes':_0x5a408f});for(const _0x9334b0 of _0x55a908)this['_addSuggestionMarker'](_0x379661,_0x1aa8e3,_0x46e38d,_0x9334b0,u['getMultiRangeId']());return _0x46111f;}['markInlineFormat'](_0x1bb288,_0x2c19a2,_0x5571b2=null,_0x10ace9={}){if(_0x5571b2=_0x5571b2||Gt(_0x2c19a2),_0x1bb288['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4befe3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5571b2,'accept');return this['forceDefaultExecution'](()=>_0x4befe3([_0x1bb288],_0x2c19a2,_0x10ace9)),null;}const _0x4adf37=this['editor']['plugins']['get']('Users')['me'],_0x439e03=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x581434,meta:_0x222391}of this['_findSuggestions'](_0x1bb288,'insertion'))_0x222391['isOwn']&&!_0x222391['isInsideObject']&&_0x439e03['push'](..._0x581434['getRanges']());}const _0x551f07=function(_0x3a5b6e,_0x472090){const _0x396843=[];for(const _0x42c0eb of _0x472090){const _0x994154=_0x3a5b6e['getIntersection'](_0x42c0eb);_0x994154&&_0x396843['push'](_0x994154);}return _0x396843;}(_0x1bb288,_0x439e03),_0x2931c9=function(_0x4d094e,_0x3ff3a1){const _0xe60464=[_0x4d094e];for(const _0x56bb76 of _0x3ff3a1){let _0x51c60b=0x0;for(;_0x51c60b<_0xe60464['length'];){const _0x38d749=_0xe60464[_0x51c60b]['getDifference'](_0x56bb76);_0xe60464['splice'](_0x51c60b,0x1,..._0x38d749),_0x51c60b+=_0x38d749['length'];}}return _0xe60464;}(_0x1bb288,_0x439e03);_0x551f07['length']&&this['_model']['change'](()=>{for(const _0x505180 of _0x551f07){const _0x4bb73a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5571b2,'accept');this['forceDefaultExecution'](()=>_0x4bb73a([_0x505180],_0x2c19a2,_0x10ace9));}});for(const _0x15cd28 of _0x2931c9){let _0x3f84aa=null,_0x53abc9=_0x15cd28['start'],_0x572107=_0x15cd28['end'];for(const {suggestion:_0x5bd769,meta:_0x1ceac4}of this['_findSuggestions'](_0x15cd28,'formatInline')){if(!_0x1ceac4['isOwn'])continue;if(_0x5bd769['subType']!=_0x5571b2)continue;if(!qt(_0x5bd769,_0x10ace9))continue;const _0x217ba2=_0x5bd769['getFirstRange']();if(_0x217ba2['containsRange'](_0x15cd28,!0x0))return null;_0x53abc9=_0x53abc9['isBefore'](_0x217ba2['start'])?_0x53abc9:_0x217ba2['start'],_0x572107=_0x572107['isAfter'](_0x217ba2['end'])?_0x572107:_0x217ba2['end'],_0x3f84aa?_0x217ba2['start']['isBefore'](_0x3f84aa['getFirstRange']()['start'])?(_0x3f84aa['removeMarkers'](),_0x3f84aa=_0x5bd769):_0x5bd769['removeMarkers']():_0x3f84aa=_0x5bd769;}const _0x59ca73=this['_model']['createRange'](_0x53abc9,_0x572107);if(_0x3f84aa)this['_setSuggestionRange'](_0x3f84aa,_0x59ca73);else{const _0xd2084b=_0x4cf4cc(),_0x440240=_0x4adf37['id'];this['_setSuggestionData']({'id':_0xd2084b,'type':'formatInline:'+_0x5571b2,'data':_0x2c19a2,'createdAt':new Date(),'authorId':_0x440240,'attributes':_0x10ace9}),this['_addSuggestionMarker']('formatInline:'+_0x5571b2,_0xd2084b,_0x440240,_0x59ca73);}}return null;}['markBlockFormat'](_0x3cf355,_0xd7c589,_0x1d9350=[],_0x40437a=null,_0x28a14f={}){_0xd7c589['formatGroupId']||(_0xd7c589['formatGroupId']=_0xd7c589['commandName']),_0xd7c589['multipleBlocks']=_0x3cf355['is']('range'),_0x40437a=_0x40437a||Gt(_0xd7c589);const _0x155277=_0x1d9350['map'](_0xc8cbf0=>Lt(_0xc8cbf0,this['_model'])),_0x279bbf=_0x3cf355['is']('range')?_0x3cf355:Lt(_0x3cf355,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2c90ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40437a,'accept');return this['forceDefaultExecution'](()=>_0x2c90ac([_0x279bbf],_0xd7c589,_0x28a14f)),null;}_0x155277['push'](_0x279bbf);let _0x548923=!0x0;for(const _0x38da19 of _0x155277)if(!this['_rangeIsInLocalUserInsertion'](_0x38da19)){_0x548923=!0x1;break;}if(_0x548923&&'always'!==this['_trackFormatChanges']){const _0x4c1ddb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40437a,'accept');return this['forceDefaultExecution'](()=>_0x4c1ddb([_0x279bbf],_0xd7c589,_0x28a14f)),null;}let _0x32f687=null,_0x477b33=_0x279bbf['start'],_0x36e719=_0x279bbf['end'];for(const {suggestion:_0x654d06,meta:_0x563c4b}of this['_findSuggestions'](_0x279bbf,'formatBlock')){if(!_0x563c4b['isOwn'])continue;if(_0x563c4b['isNextTo']||_0x563c4b['containsRangeInObject']||_0x563c4b['isInsideObject'])continue;if(_0x654d06['data']['formatGroupId']!=_0xd7c589['formatGroupId'])continue;if(!qt(_0x654d06,_0x28a14f))continue;const _0x57271a=_0x654d06['getFirstRange']();if(_0x654d06['subType']==_0x40437a){if(_0x57271a['containsRange'](_0x279bbf,!0x0))return null;_0x477b33=_0x477b33['isBefore'](_0x57271a['start'])?_0x477b33:_0x57271a['start'],_0x36e719=_0x36e719['isAfter'](_0x57271a['end'])?_0x36e719:_0x57271a['end'],_0x32f687?_0x57271a['start']['isBefore'](_0x32f687['getFirstRange']()['start'])?(_0x32f687['removeMarkers'](),_0x32f687=_0x654d06):_0x654d06['removeMarkers']():_0x32f687=_0x654d06;}else{const _0x4d0419=_0x279bbf['getIntersection'](_0x57271a);this['_cutOutSuggestionMarker'](_0x654d06,_0x4d0419);}}const _0x2c340d=this['editor']['plugins']['get']('Users')['me'],_0x37af2e=_0x4cf4cc(),_0x4c64d0=_0x2c340d['id'];if(_0x32f687)return this['_setSuggestionRange'](_0x32f687,this['_model']['createRange'](_0x477b33,_0x36e719)),_0x32f687;{const _0x1fff9e=this['_setSuggestionData']({'id':_0x37af2e,'type':'formatBlock:'+_0x40437a,'data':_0xd7c589,'createdAt':new Date(),'authorId':_0x4c64d0,'attributes':_0x28a14f});return this['_addSuggestionMarker']('formatBlock:'+_0x40437a,_0x37af2e,_0x4c64d0,this['_model']['createRange'](_0x477b33,_0x36e719)),_0x1fff9e;}}['markMultiRangeBlockFormat'](_0x3bc529,_0x1356ba,_0x1da445=[],_0x1faf48=null,_0x1b02da={}){_0x1356ba['formatGroupId']||(_0x1356ba['formatGroupId']=_0x1356ba['commandName']);const _0x31fd59=_0x3bc529[0x0];_0x1356ba['multipleBlocks']=_0x31fd59['is']('range'),_0x1faf48=_0x1faf48||Gt(_0x1356ba);const _0x3d77dd=_0x1da445['map'](_0x2d95be=>Lt(_0x2d95be,this['_model'])),_0x507aa2=_0x31fd59['is']('range')?_0x3bc529:_0x3bc529['map'](_0x10c925=>Lt(_0x10c925,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1d5b02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1faf48,'accept');return this['forceDefaultExecution'](()=>_0x1d5b02(_0x507aa2,_0x1356ba,_0x1b02da)),null;}_0x3d77dd['push'](..._0x507aa2);let _0x61ddb0=!0x0;for(const _0x4fe82c of _0x3d77dd)if(!this['_rangeIsInLocalUserInsertion'](_0x4fe82c)){_0x61ddb0=!0x1;break;}if(_0x61ddb0&&'always'!==this['_trackFormatChanges']){const _0x3107e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1faf48,'accept');return this['forceDefaultExecution'](()=>_0x3107e9(_0x507aa2,_0x1356ba,_0x1b02da)),null;}const _0x42faf1=this['editor']['plugins']['get']('Users')['me'];for(const _0x122611 of this['getSuggestions']()){if(_0x122611['author']['id']!=_0x42faf1['id'])continue;if('formatBlock'!=_0x122611['type']||_0x122611['data']['formatGroupId']!=_0x1356ba['formatGroupId'])continue;if(!qt(_0x122611,_0x1b02da))continue;const _0x11a421=_0x122611['subType']==_0x1faf48;for(let _0x4c08f2=0x0;_0x4c08f2<_0x507aa2['length'];_0x4c08f2++){const _0x316d2b=_0x507aa2[_0x4c08f2];for(const _0xb3c08d of _0x122611['getMarkers']()){const _0x4d661b=_0xb3c08d['getRange']();if(_0x316d2b['isEqual'](_0x4d661b)){_0x11a421?(_0x507aa2['splice'](_0x4c08f2,0x1),_0x4c08f2--):_0x122611['removeMarker'](_0xb3c08d['name']);break;}}}}if(0x0==_0x507aa2['length'])return null;const _0x4bccf5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1faf48,'join');for(const _0x1018cc of this['getSuggestions']())if(_0x1018cc['author']['id']==_0x42faf1['id']&&'formatBlock'==_0x1018cc['type']&&_0x1018cc['data']['formatGroupId']==_0x1356ba['formatGroupId']&&_0x1018cc['subType']==_0x1faf48&&qt(_0x1018cc,_0x1b02da)&&(_0x4bccf5(_0x1018cc['getRanges'](),_0x507aa2)||_0x4bccf5(_0x507aa2,_0x1018cc['getRanges']()))){for(const _0x207c39 of _0x507aa2)_0x1018cc['addRange'](_0x207c39);return _0x1018cc;}const _0xaf8338=_0x4cf4cc(),_0xc994d6=_0x42faf1['id'],_0x598169='formatBlock:'+_0x1faf48,_0x3a42be=this['_setSuggestionData']({'id':_0xaf8338,'type':_0x598169,'data':_0x1356ba,'createdAt':new Date(),'authorId':_0xc994d6,'attributes':_0x1b02da});for(const _0x2dfe48 of _0x507aa2)this['_addSuggestionMarker'](_0x598169,_0xaf8338,_0xc994d6,_0x2dfe48,u['getMultiRangeId']());return _0x3a42be;}['markDeletion'](_0x31deca,_0x2dcfbf=null,_0x23437e={}){if(_0x31deca['isCollapsed'])return null;const _0x340824=this['editor']['plugins']['get']('Users')['me'],_0x2e5745=new _0x1a312e(_0x31deca['start'],_0x31deca['end']);for(const {suggestion:_0x5db4cf,meta:_0x1fbd2b}of this['_findSuggestions'](_0x2e5745,'insertion'))if(_0x1fbd2b['isOwn']&&!_0x1fbd2b['isNextTo']){if(_0x5db4cf['isMultiRange']){const _0x5819bd=_0x5db4cf['getRanges']()['filter'](_0x40a18b=>'$graveyard'!=_0x40a18b['root']['rootName']);_0x5819bd['every'](_0x470131=>_0x2e5745['containsRange'](_0x470131,!0x0))&&_0x5db4cf['discard']();if(_0x5819bd['some'](_0x3c6b4b=>_0x3c6b4b['containsRange'](_0x2e5745,!0x0))){const _0x508233=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2dcfbf,'accept');return this['forceDefaultExecution'](()=>_0x508233([_0x2e5745],null,_0x23437e)),null;}}else{const _0x41eeb6=_0x2e5745['getIntersection'](_0x5db4cf['getFirstRange']());null!==_0x41eeb6&&_0x5db4cf['_onDiscard']([_0x41eeb6],null,_0x23437e);}}if(_0x2e5745['detach'](),_0x2e5745['isCollapsed']||'$graveyard'==_0x2e5745['root']['rootName'])return null;let _0x16f828=null,_0x52e68a=_0x2e5745['start'],_0x1633e0=_0x2e5745['end'];const _0x543884=this['_findSuggestions'](_0x2e5745,'deletion');for(const {suggestion:_0x4a0687,meta:_0x575987}of _0x543884){const _0x39c0b1=this['_model']['createRange'](_0x52e68a,_0x1633e0);if(_0x575987['isOwn']&&(this['_mergeNestedSuggestions']||!_0x575987['containsRangeInObject']&&!_0x575987['isInsideObject'])){if(_0x4a0687['isMultiRange']){if(!qt(_0x4a0687,_0x23437e))continue;let _0xab8e81=!0x0;for(const _0x3601e6 of _0x4a0687['getRanges']()){if(_0x3601e6['containsRange'](_0x39c0b1,!0x0))return _0x4a0687;_0x39c0b1['containsRange'](_0x3601e6)||(_0xab8e81=!0x1);}_0xab8e81&&_0x4a0687['discard']();}else{const _0x463e68=_0x4a0687['getFirstRange']();if(_0x463e68['containsRange'](_0x39c0b1,!0x0))return _0x4a0687;if(!qt(_0x4a0687,_0x23437e)){_0x39c0b1['containsRange'](_0x463e68)?_0x4a0687['removeMarkers']():_0x463e68['containsPosition'](_0x52e68a)?_0x52e68a=_0x463e68['end']:_0x463e68['containsPosition'](_0x1633e0)&&(_0x1633e0=_0x463e68['start']);continue;}_0x52e68a=_0x52e68a['isBefore'](_0x463e68['start'])?_0x52e68a:_0x463e68['start'],_0x1633e0=_0x1633e0['isAfter'](_0x463e68['end'])?_0x1633e0:_0x463e68['end'],_0x23437e=Object['assign']({},_0x4a0687['attributes']),_0x16f828?_0x463e68['start']['isBefore'](_0x16f828['getFirstRange']()['start'])?(_0x16f828['removeMarkers'](),_0x16f828=_0x4a0687):_0x4a0687['removeMarkers']():_0x16f828=_0x4a0687;}}}if(_0x16f828)return this['_setSuggestionRange'](_0x16f828,this['_model']['createRange'](_0x52e68a,_0x1633e0)),_0x16f828;{const _0x4f82ba=_0x4cf4cc(),_0x20812a=this['_model']['createRange'](_0x52e68a,_0x1633e0),_0x53fdaa=_0x340824['id'],_0x13757b=_0x2dcfbf?'deletion:'+_0x2dcfbf:'deletion',_0x14e77f=this['_setSuggestionData']({'id':_0x4f82ba,'type':_0x13757b,'createdAt':new Date(),'authorId':_0x53fdaa,'attributes':_0x23437e});return this['_addSuggestionMarker'](_0x13757b,_0x4f82ba,_0x53fdaa,_0x20812a),_0x14e77f;}}['markMultiRangeDeletion'](_0x81750b,_0x538b2a='multi',_0xf3bd51={}){const _0x1e5152=this['editor']['plugins']['get']('Users')['me'],_0x30af89=_0x81750b['map'](_0x499431=>new _0x1a312e(_0x499431['start'],_0x499431['end'])),_0x5f0319=new Set();for(const {suggestion:_0x3cb003,meta:_0x3f1f04}of this['_findSuggestions'](_0x30af89,'insertion'))_0x3f1f04['isOwn']&&!_0x3f1f04['isNextTo']&&_0x5f0319['add'](_0x3cb003);for(const _0x360e91 of _0x5f0319)if(_0x360e91['isMultiRange']){const _0x479c2f=_0x360e91['getRanges']();(!_0x360e91['attributes']||!_0x360e91['attributes']['skipNestingCheck'])&&(_0x479c2f['every'](_0x40ba7c=>_0x30af89['some'](_0x371ca2=>_0x371ca2['containsRange'](_0x40ba7c,!0x0)))&&_0x360e91['discard']());if(_0x30af89['every'](_0x592a1a=>_0x479c2f['some'](_0x44ffbf=>_0x44ffbf['containsRange'](_0x592a1a,!0x0)))){const _0x1e6d16=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538b2a,'accept');return this['forceDefaultExecution'](()=>_0x1e6d16(_0x81750b,null,_0xf3bd51)),null;}}else{const _0x5b61d7=_0x360e91['getFirstRange']();_0x30af89['some'](_0x287f0f=>_0x287f0f['containsRange'](_0x5b61d7,!0x0))&&_0x360e91['discard']();if(_0x30af89['every'](_0x398b52=>_0x5b61d7['containsRange'](_0x398b52,!0x0))){const _0x231752=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538b2a,'accept');return this['forceDefaultExecution'](()=>_0x231752(_0x30af89,null,_0xf3bd51)),null;}}const _0x2e979f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538b2a,'join');let _0x4cd003=null;for(const _0x2ce796 of this['getSuggestions']())if(_0x2ce796['author']['id']==_0x1e5152['id']&&_0x2ce796['isInContent']&&'deletion'==_0x2ce796['type']&&_0x2ce796['subType']==_0x538b2a&&qt(_0x2ce796,_0xf3bd51)&&(_0x2e979f(_0x2ce796['getRanges'](),_0x30af89)||_0x2e979f(_0x30af89,_0x2ce796['getRanges']()))){if(_0x4cd003){if(_0x2ce796['commentThread']&&_0x2ce796['commentThread']['length'])continue;for(const _0x4aa77d of _0x2ce796['getRanges']())_0x4cd003['isIntersectingWithRange'](_0x4aa77d)||_0x4cd003['addRange'](_0x4aa77d);_0x2ce796['removeMarkers']();}else{_0x4cd003=_0x2ce796;for(const _0x59a02e of _0x30af89)_0x2ce796['isIntersectingWithRange'](_0x59a02e)||_0x2ce796['addRange'](_0x59a02e);}}if(_0x4cd003)return _0x4cd003;_0x5f0319['clear']();for(const {suggestion:_0x2e8484,meta:_0x20dce0}of this['_findSuggestions'](_0x30af89,'deletion'))_0x20dce0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20dce0['containsRangeInObject']&&!_0x20dce0['isInsideObject'])&&qt(_0x2e8484,_0xf3bd51)&&_0x5f0319['add'](_0x2e8484);for(const _0xa16ef of _0x5f0319){const _0x480a07=_0xa16ef['getRanges']();if(!_0xf3bd51||!_0xf3bd51['skipNestingCheck']){if(_0x30af89['every'](_0x189ca4=>_0x480a07['some'](_0xbd3f4e=>_0xbd3f4e['containsRange'](_0x189ca4,!0x0))))return _0xa16ef;}(!_0xa16ef['attributes']||!_0xa16ef['attributes']['skipNestingCheck'])&&(_0x480a07['every'](_0x2c3348=>_0x30af89['some'](_0x3f1088=>_0x3f1088['containsRange'](_0x2c3348,!0x0)))&&_0xa16ef['discard']());}const _0x3d3f9f=_0x4cf4cc(),_0x56be85=_0x1e5152['id'],_0x1b705a='deletion:'+_0x538b2a,_0x26d348=this['_setSuggestionData']({'id':_0x3d3f9f,'type':_0x1b705a,'createdAt':new Date(),'authorId':_0x56be85,'attributes':_0xf3bd51});for(const _0x10acdf of _0x30af89)_0x10acdf['detach'](),_0x10acdf['isCollapsed']||'$graveyard'==_0x10acdf['root']['rootName']||this['_addSuggestionMarker'](_0x1b705a,_0x3d3f9f,_0x56be85,_0x10acdf,u['getMultiRangeId']());return _0x26d348;}['markAttributeChange'](_0x52cf72,_0x3f562,_0x3b4857,_0x5855ec,_0x1613b7){if(_0x52cf72['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x55c200=this['editor']['plugins']['get']('Users')['me']['id'],_0x9dc7fd=Array['from'](this['_suggestions']['values']())['filter'](_0xd9c3de=>'attribute'==_0xd9c3de['type']&&_0xd9c3de['data']['key']==_0x3f562&&_0xd9c3de['isIntersectingWithRange'](_0x52cf72));if('default'===this['_trackFormatChanges']){const _0x51702a=this['_findSuggestions'](_0x52cf72,'insertion')['filter'](({meta:_0x3af1d3})=>_0x3af1d3['isOwn']&&!_0x3af1d3['isInsideObject']&&!_0x3af1d3['isNextTo'])['map'](({suggestion:_0x48fe74})=>_0x48fe74);_0x9dc7fd['unshift'](..._0x51702a);}const _0x36c8e0=new Map([[_0x52cf72,_0x3b4857]]);for(const _0x7c49cb of _0x9dc7fd){const _0x4e87f3='attribute'==_0x7c49cb['type']?_0x7c49cb['data']['oldValue']:void 0x0,_0x4dec94=_0x7c49cb['getFirstRange'](),_0x13561b=Array['from'](_0x36c8e0['keys']())['find'](_0x524ed3=>_0x524ed3['isIntersecting'](_0x4dec94));if(!_0x13561b)continue;const _0x56fb4f=_0x13561b['getDifference'](_0x4dec94);this['_isBlockAttribute'](_0x3f562)&&'insertion'==_0x7c49cb['type']&&0x0!=_0x56fb4f['length']||(_0x36c8e0['delete'](_0x13561b),_0x56fb4f['forEach'](_0x52790e=>{_0x36c8e0['set'](_0x52790e,_0x3b4857);}),'insertion'!=_0x7c49cb['type']&&_0x4e87f3!=_0x5855ec&&_0x36c8e0['set'](_0x13561b['getIntersection'](_0x4dec94),_0x4e87f3));}const _0x49b2d7=[];for(const [_0x2baa8b,_0x2a2e48]of _0x36c8e0){const _0x36a2ec=_0x4cf4cc(),_0x2d808e={'key':_0x3f562,'oldValue':_0x2a2e48,'newValue':_0x5855ec};_0x3f562['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':_0x3f562});const _0x53cb16=('attribute:'+(_0x3f562+'|'+Gt({'newValue':_0x5855ec})))['substring'](0x0,0x3c),_0x2c4e12=this['_setSuggestionData']({'id':_0x36a2ec,'type':_0x53cb16,'data':_0x2d808e,'createdAt':new Date(),'authorId':_0x55c200,'attributes':_0x1613b7});_0x49b2d7['push'](_0x2c4e12),this['_addSuggestionMarker'](_0x53cb16,_0x36a2ec,_0x55c200,_0x2baa8b);}return _0x49b2d7;}['enableDefaultAttributesIntegration'](_0x10fdba){this['enableCommand'](_0x10fdba,(_0x2ea746,..._0x2361ed)=>{this['_recordAttributeChanges'](()=>{_0x2ea746(..._0x2361ed);});});}['registerBlockAttribute'](_0x4a0256){this['_blockAttributeKeys']['add'](_0x4a0256);}['registerInlineAttribute'](_0x4f0c87){this['_inlineAttributeKeys']['add'](_0x4f0c87);}['_getAttributeKey'](_0x84d564){return'attribute'==_0x84d564['type']?_0x84d564['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x178797,_0x265298){const _0x5a9376=_0x178797['getFirstMarker']();this['_model']['change'](_0x2015a6=>{_0x2015a6['updateMarker'](_0x5a9376,{'range':_0x265298});});}['_addThreadToSuggestion'](_0x24b648){const _0x23822d=_0x24b648['id'],_0x140566=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x23822d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x140566,'threadId':_0x23822d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x54854b=this['_commentsRepository']['getCommentThread'](_0x23822d);_0x54854b['unbind']('isRemovable'),_0x54854b['isRemovable']=!0x1,_0x24b648['commentThread']=_0x54854b;}['_checkSuggestionCorrectness'](_0x51b727,_0x58e17c,_0x3ae47c,_0x3c6a5f){if(_0x51b727['type']!=_0x58e17c||_0x51b727['subType']!=_0x3ae47c||_0x51b727['creator']['id']!=_0x3c6a5f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a35b0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1046f5,_0x45db43){const _0x456a8c=_0x1046f5['getFirstRange']();if(_0x45db43['isEqual'](_0x456a8c))_0x1046f5['removeMarkers']();else{if(_0x456a8c['containsRange'](_0x45db43)){const _0x32edb8=this['_model']['createPositionAt'](_0x45db43['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1046f5,this['_model']['createRange'](_0x456a8c['start'],_0x32edb8));const _0x194626=_0x4cf4cc(),_0x45e2fe=_0x1046f5['creator']['id'],_0x121227=_0x1046f5['type']+':'+_0x1046f5['subType'];this['_setSuggestionData']({'id':_0x194626,'type':_0x121227,'createdAt':new Date(),'authorId':_0x45e2fe,'data':_0x1046f5['data'],'attributes':_0x1046f5['attributes']});const _0x2ffef4=this['_model']['createPositionAt'](_0x45db43['end']['parent'],'after'),_0x357583=this['_model']['createRange'](_0x2ffef4,_0x456a8c['end']);this['_addSuggestionMarker'](_0x121227,_0x194626,_0x45e2fe,_0x357583);}else{if(_0x456a8c['containsPosition'](_0x45db43['start'])){const _0x457274=this['_model']['createPositionAt'](_0x45db43['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1046f5,this['_model']['createRange'](_0x456a8c['start'],_0x457274));}else{const _0xad5a6c=this['_model']['createPositionAt'](_0x45db43['end']['parent'],'after');this['_setSuggestionRange'](_0x1046f5,this['_model']['createRange'](_0xad5a6c,_0x456a8c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2161f7){for(const {suggestion:_0x39fbda,meta:_0x5b8267}of this['_findSuggestions'](_0x2161f7,'insertion')){if(!_0x5b8267['isOwn'])continue;const _0x4be64c=_0x39fbda['getRanges']();for(const _0x14e904 of _0x4be64c)if(!_0x2161f7['getDifference'](_0x14e904)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3b2c85){const _0x3faa05=this['editor']['plugins']['get']('Users')['getUser'](_0x3b2c85);if(!_0x3faa05)throw new _0x1a35b0('track-changes-user-not-found',this);return _0x3faa05;}['_getExternalAuthor'](_0xe87c46){const _0x4aa609=this['editor']['plugins']['get']('Users'),_0x48b2c5=_0x4704f5('external:'+_0xe87c46),_0x57dd8c=_0x4aa609['getUser'](_0x48b2c5);return _0x57dd8c||_0x4aa609['addUser']({'id':_0x48b2c5,'name':_0xe87c46});}['_createSuggestion'](_0xa1ac3,_0x2f7b67,_0x22152e,_0x1aeac0,_0x37f1b5){const _0x37b53a=this['_getAuthorFromId'](_0x1aeac0),_0x3b8e1f=this['_suggestionFactory']['buildSuggestion'](_0xa1ac3,_0x2f7b67,_0x22152e,_0x37b53a,_0x37f1b5,_0x436c7c=>{this['_updateSuggestionData'](_0x22152e,{'attributes':_0x436c7c});const _0x5b8c76=this['getSuggestion'](_0x22152e);this['_joinWithAdjacentSuggestions'](new Set([_0x5b8c76])),this['_refreshSuggestionsChain'](new Set([_0x5b8c76]));});return this['listenTo'](_0x3b8e1f,'accept',()=>{this['_updateSuggestionData'](_0x22152e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3b8e1f,'discard',()=>{this['_updateSuggestionData'](_0x22152e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x22152e,_0x3b8e1f),this['_suggestionState']['set'](_0x3b8e1f,'notReady'),_0x3b8e1f;}['_splitMarkerName'](_0x3a80db){const _0x33efec=_0x3a80db['split'](':');return{'group':_0x33efec[0x0],'type':_0x33efec[0x1],'subType':_0x33efec['length']>=0x5?_0x33efec[0x2]:null,'id':_0x33efec['length']<0x5?_0x33efec[0x2]:_0x33efec[0x3],'authorId':_0x33efec['length']<0x5?_0x33efec[0x3]:_0x33efec[0x4],'markerCount':0x6==_0x33efec['length']?_0x33efec[0x5]:null};}['_breakSuggestionMarker'](_0x30c692,_0x7acd88,_0x57c2e6){const _0x223fdd=_0x30c692['getFirstRange'](),_0x24cde5=_0x223fdd['start'],_0x1fd26b=_0x223fdd['end'];this['_setSuggestionRange'](_0x30c692,this['_model']['createRange'](_0x24cde5,_0x7acd88));const _0xfb6e49=_0x4cf4cc(),_0xbe64bc=_0x30c692['creator']['id'],_0x38b1d7=_0x30c692['type']+(_0x30c692['subType']?':'+_0x30c692['subType']:'');this['_setSuggestionData']({'id':_0xfb6e49,'type':_0x38b1d7,'createdAt':new Date(),'authorId':_0xbe64bc,'originalSuggestionId':_0x30c692['id'],'attributes':_0x30c692['attributes'],'data':_0x30c692['data']});const _0x3160ab=this['_getAttributeKey'](_0x30c692);('formatBlock'==_0x30c692['type']||_0x3160ab&&this['_isBlockAttribute'](_0x3160ab))&&(_0x57c2e6=this['_model']['createPositionBefore'](_0x57c2e6['parent'])),this['_addSuggestionMarker'](_0x38b1d7,_0xfb6e49,_0xbe64bc,this['_model']['createRange'](_0x57c2e6,_0x1fd26b));}['_findSuggestions'](_0x3eb474,_0x1003d3=null){const _0x44412c=[],_0xb3687e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3eb474)||(_0x3eb474=[_0x3eb474]);for(const _0x1b5bda of this['getSuggestions']()){if(!_0x1b5bda['isInContent'])continue;if(_0x1003d3&&_0x1b5bda['type']!=_0x1003d3)continue;let _0x2c88ce=!0x1;for(const _0x1c668b of _0x1b5bda['getRanges']()){for(const _0x11c3a2 of _0x3eb474){const _0x3a2282=_0x11c3a2['start']['isEqual'](_0x1c668b['end'])||_0x11c3a2['end']['isEqual'](_0x1c668b['start']);if(_0x3a2282||_0x11c3a2['getIntersection'](_0x1c668b)){const _0x3f3c06=_0x11c3a2['containsRange'](_0x1c668b)&&Ot(this['_model']['schema'],_0x1c668b['start'],_0x11c3a2),_0x22825d=_0x1c668b['containsRange'](_0x11c3a2)&&Ot(this['_model']['schema'],_0x11c3a2['start'],_0x1c668b);_0x44412c['push']({'suggestion':_0x1b5bda,'meta':{'isOwn':_0xb3687e==_0x1b5bda['author'],'isNextTo':_0x3a2282,'isInsideObject':_0x3f3c06,'containsRangeInObject':_0x22825d}}),_0x2c88ce=!0x0;break;}}if(_0x2c88ce)break;}}return _0x44412c;}['_addSuggestionMarker'](_0x5f5318,_0x59877e,_0x11648e,_0x25b355,_0x4d5d30){this['_model']['change'](_0x319f35=>{let _0x5d0f17='suggestion:'+_0x5f5318+':'+_0x59877e+':'+_0x11648e;_0x4d5d30&&(_0x5d0f17=_0x5d0f17+':'+_0x4d5d30),_0x319f35['addMarker'](_0x5d0f17,{'range':_0x25b355,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4a9ea3){const _0x556f90=_0x4a9ea3['previous'],_0x23c732=_0x4a9ea3['next'];_0x4a9ea3['previous']=null,_0x4a9ea3['next']=null,null!=_0x556f90&&_0x556f90['next']==_0x4a9ea3&&(_0x556f90['next']=_0x23c732),null!=_0x23c732&&_0x23c732['previous']==_0x4a9ea3&&(_0x23c732['previous']=_0x556f90),'ready'==this['_suggestionState']['get'](_0x4a9ea3)&&(this['_suggestionState']['set'](_0x4a9ea3,'removed'),this['fire']('suggestionUnloaded',_0x4a9ea3,_0x556f90,_0x23c732));}['_setSuggestionData'](_0x1caceb){const _0x437b47=_0x1caceb['id'],_0x3d01ab=this['addSuggestionData'](_0x1caceb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x184a95=this['editor']['plugins']['get']('PendingActions'),_0x330b2b=_0x3d01ab['hasComments'],_0x1646c9=_0x3d01ab['subType']?_0x3d01ab['type']+':'+_0x3d01ab['subType']:_0x3d01ab['type'],_0x2b88e7=this['editor']['locale'],_0x5adaac=_0x184a95['add'](o(_0x2b88e7,'PENDING_ACTION_SUGGESTION')),_0x3b57ad={'id':_0x437b47,'type':_0x1646c9,'hasComments':_0x330b2b,'data':_0x1caceb['data']||null,'originalSuggestionId':_0x1caceb['originalSuggestionId']||null,'attributes':_0x3d01ab['attributes']};this['_adapter']['addSuggestion'](_0x3b57ad)['then'](_0x1619e3=>{_0x3d01ab['_saved']=!0x0,_0x184a95['remove'](_0x5adaac),_0x1619e3&&_0x1619e3['createdAt']&&(this['_suggestions']['get'](_0x437b47)['createdAt']=_0x1619e3['createdAt']);})['catch'](_0x381c51=>{throw _0x124f83('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3d01ab['discard']();}),_0x3d01ab['stopListening'](),this['_suggestions']['delete'](_0x3d01ab['id']),this['_suggestionState']['delete'](_0x3d01ab),_0x381c51;});}return _0x3d01ab;}['_isBlockAttribute'](_0x49d502){return this['_blockAttributeKeys']['has'](_0x49d502);}['_updateSuggestionData'](_0x34fa3f,_0x1df7e3){const _0x5bd80e=this['editor']['plugins']['get']('PendingActions'),_0xbc8d75=this['getSuggestion'](_0x34fa3f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xbc8d75['_saved']){const _0x2ca870=_0x5bd80e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x34fa3f,_0x1df7e3)['then'](()=>{_0x5bd80e['remove'](_0x2ca870);});}else _0xbc8d75['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x34fa3f,_0x1df7e3);});}}['_getSuggestionData'](_0xfb7e52){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a35b0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xfb7e52);}['_handleNewSuggestionMarker'](_0x209cf1){const {id:_0x3e861c,type:_0x183c3d,subType:_0x29f7ba,authorId:_0x188aaf}=this['_splitMarkerName'](_0x209cf1),_0x4ccbfd=this['_suggestions']['get'](_0x3e861c)||this['_createSuggestion'](_0x183c3d,_0x29f7ba,_0x3e861c,_0x188aaf,{});switch(this['_checkSuggestionCorrectness'](_0x4ccbfd,_0x183c3d,_0x29f7ba,_0x188aaf),this['_suggestionState']['get'](_0x4ccbfd)){case'notReady':this['_getSuggestionData'](_0x3e861c)['then'](_0x592323=>{let _0x59d945=Promise['resolve']();_0x592323['hasComments']&&(_0x59d945=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e861c})),_0x59d945['then'](()=>{this['addSuggestionData'](_0x592323)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4ccbfd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e861c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4ccbfd,'ready'),this['fire']('suggestionLoaded',_0x4ccbfd);break;case'ready':this['fire']('suggestionChanged',_0x4ccbfd);}return _0x4ccbfd['addMarkerName'](_0x209cf1),_0x4ccbfd;}['_refreshSuggestionsChain'](_0x233a53){const _0x11264b=Array['from'](_0x233a53),_0xd96c03=_0x11264b['filter'](_0x1e788c=>'attribute'==_0x1e788c['type']);this['_refreshAttributeSuggestionsChain'](_0xd96c03);const _0x3b6e61=_0x11264b['filter'](_0x5314d8=>!_0x5314d8['isMultiRange']&&'attribute'!=_0x5314d8['type']),_0x372251=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16e4e9=>!_0x16e4e9['isMultiRange']&&'attribute'!=_0x16e4e9['type']),_0xa3828c=_0x372251['filter'](_0x287b78=>!_0x233a53['has'](_0x287b78)),_0x2121f0=new Map(_0x372251['map'](_0x1b4abc=>[_0x1b4abc,this['_suggestionFactory']['getSuggestionCallback'](_0x1b4abc['type'],_0x1b4abc['subType'],'chain')])),_0x51e6d5=new Map(_0x372251['map'](_0x51fbb0=>[_0x51fbb0,_0x51fbb0['getFirstRange']()])),_0x45032f=new Set(),_0x41167c=new Set();for(let _0x317683=0x0;_0x317683<_0x3b6e61['length'];_0x317683++)_0x4d0628(_0x3b6e61[_0x317683],_0x3b6e61,_0x317683+0x1);for(let _0x82dbcc=0x0;_0x82dbcc<_0x3b6e61['length'];_0x82dbcc++)_0x4d0628(_0x3b6e61[_0x82dbcc],_0xa3828c,0x0);const _0x5aa762=new Set();for(let _0x11e555=0x0;_0x11e555<_0x3b6e61['length'];_0x11e555++){const _0x55c85d=_0x3b6e61[_0x11e555];!_0x41167c['has'](_0x55c85d)&&_0x55c85d['previous']&&(_0x5aa762['add'](_0x55c85d['previous']),_0x55c85d['previous']['next']===_0x55c85d&&(_0x55c85d['previous']['next']=null),_0x55c85d['previous']=null),!_0x45032f['has'](_0x55c85d)&&_0x55c85d['next']&&(_0x5aa762['add'](_0x55c85d['next']),_0x55c85d['next']['previous']===_0x55c85d&&(_0x55c85d['next']['previous']=null),_0x55c85d['next']=null);}function _0x4d0628(_0x38c720,_0x3d1da2,_0x29fac9){for(let _0x12e4e7=_0x29fac9;_0x12e4e7<_0x3d1da2['length'];_0x12e4e7++){const _0xc78f6b=_0x28b180(_0x38c720,_0x3d1da2[_0x12e4e7]);_0xc78f6b&&(_0xc78f6b[0x0]['next']=_0xc78f6b[0x1],_0xc78f6b[0x1]['previous']=_0xc78f6b[0x0],_0x45032f['add'](_0xc78f6b[0x0]),_0x41167c['add'](_0xc78f6b[0x1]));}}function _0x28b180(_0x567916,_0x5d85bd){if(_0x567916['author']['id']!==_0x5d85bd['author']['id'])return null;const _0x4fd6dd=_0x2121f0['get'](_0x567916)(_0x567916,_0x5d85bd,_0x51e6d5['get'](_0x567916),_0x51e6d5['get'](_0x5d85bd));if(!_0x4fd6dd)return null;return _0x2121f0['get'](_0x5d85bd)(_0x567916,_0x5d85bd,_0x51e6d5['get'](_0x567916),_0x51e6d5['get'](_0x5d85bd))?_0x4fd6dd[0x1]['commentThread']&&_0x4fd6dd[0x1]['commentThread']['length']?null:_0x4fd6dd:null;}_0x5aa762['size']&&this['_refreshSuggestionsChain'](_0x5aa762);}['_refreshAttributeSuggestionsChain'](_0x10f136){if(0x0==_0x10f136['length'])return;const _0x52274b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d130f=>'attribute'==_0x3d130f['type']&&_0x3d130f['_isDataLoaded']),_0x3e2078=[],_0x4dca04=new Map();for(const _0xbf4173 of _0x52274b){const _0xcd69df=_0x4704f5(_0xbf4173['attributes']);_0x4dca04['has'](_0xcd69df)||(_0x4dca04['set'](_0xcd69df,_0x3e2078['length']),_0x3e2078['push']([]));const _0x1585b1=_0x4dca04['get'](_0xcd69df);_0x3e2078[_0x1585b1]['push'](_0xbf4173);}!(function(){_0x3e2078['sort']((_0x112c82,_0x2a1fc1)=>{const _0x58a9ef=_0x112c82[0x0]['createdAt'],_0x13db9d=_0x2a1fc1[0x0]['createdAt'];return _0x58a9ef==_0x13db9d?_0x112c82[0x0]['attributes']['groupId']<_0x2a1fc1[0x0]['attributes']['groupId']?-0x1:0x1:_0x58a9ef<_0x13db9d?-0x1:0x1;});for(const _0x20b48b of _0x3e2078)_0x20b48b['sort']((_0x5589c6,_0x564608)=>_0x5589c6['id']<_0x564608['id']?-0x1:0x1);}());for(let _0x321531=0x0;_0x321531<_0x3e2078['length'];_0x321531++){if(0x0==_0x3e2078[_0x321531]['length'])continue;const _0x48003=[];for(let _0x2ffe8e=_0x321531+0x1;_0x2ffe8e<_0x3e2078['length'];_0x2ffe8e++)0x0!=_0x3e2078[_0x2ffe8e]['length']&&_0x5005d4(_0x3e2078[_0x321531],_0x3e2078[_0x2ffe8e])&&_0x48003['push'](_0x2ffe8e);for(const _0x57b80e of _0x48003)_0x3e2078[_0x321531]=_0x3e2078[_0x321531]['concat'](_0x3e2078[_0x57b80e]),_0x3e2078[_0x57b80e]=[];}for(const _0x1d37a5 of _0x3e2078)for(let _0x3cfdd0=0x0;_0x3cfdd0<_0x1d37a5['length'];_0x3cfdd0++){const _0x13c398=_0x1d37a5[_0x3cfdd0+0x1]||null;_0x1d37a5[_0x3cfdd0]['next']!==_0x13c398&&(_0x1d37a5[_0x3cfdd0]['next']=_0x13c398);}for(const _0x2dcc3a of _0x3e2078)for(let _0x27d921=0x0;_0x27d921<_0x2dcc3a['length'];_0x27d921++){const _0x42b1bb=_0x2dcc3a[_0x27d921-0x1]||null;_0x2dcc3a[_0x27d921]['previous']!==_0x42b1bb&&(_0x2dcc3a[_0x27d921]['previous']=_0x42b1bb);}function _0x5005d4(_0x1c0c95,_0x1bfc7a){if(_0x1c0c95[0x0]['attributes']['groupId']!==_0x1bfc7a[0x0]['attributes']['groupId']&&_0x1c0c95[0x0]['author']!==_0x1bfc7a[0x0]['author'])return!0x1;if(!function(_0x872e86,_0x4683e3){if(!_0x872e86['hasComments']&&!_0x4683e3['hasComments'])return!0x0;if(_0x872e86['hasComments']&&_0x4683e3['hasComments'])return!0x1;if(_0x872e86['hasComments']&&_0x4683e3['createdAt']<_0x872e86['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4683e3['hasComments']&&_0x872e86['createdAt']<_0x4683e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1c0c95[0x0],_0x1bfc7a[0x0]))return!0x1;const _0x4f7947=Tt(_0x1c0c95[0x0]['attributes'],'groupId'),_0x2d59ac=Tt(_0x1bfc7a[0x0]['attributes'],'groupId');if(!_0x11e4b7(_0x4f7947,_0x2d59ac))return!0x1;return!!_0x1c0c95['every'](_0xedadef=>_0x1bfc7a['some'](_0x1c7626=>_0xedadef['getFirstRange']()['isEqual'](_0x1c7626['getFirstRange']())))&&_0x1bfc7a['every'](_0x166799=>_0x1c0c95['some'](_0x34aceb=>_0x166799['getFirstRange']()['isEqual'](_0x34aceb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x35cb78){const _0x4959be=Array['from'](_0x35cb78),_0x2555c1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4ff66b=_0x2555c1['filter'](_0x12299f=>!_0x35cb78['has'](_0x12299f)),_0x5cdcea=new Map(_0x4959be['map'](_0x1bb6fb=>[_0x1bb6fb,this['_suggestionFactory']['getSuggestionCallback'](_0x1bb6fb['type'],_0x1bb6fb['subType'],'join')])),_0x19d5ac=new Map(_0x2555c1['map'](_0x3a42dc=>[_0x3a42dc,_0x3a42dc['getRanges']()]));for(let _0x3b671f=0x0;_0x3b671f<_0x4959be['length'];_0x3b671f++){if(_0x799fff(this,_0x4959be[_0x3b671f],_0x4959be,_0x3b671f+0x1))return!0x0;}for(let _0x50fe7f=0x0;_0x50fe7f<_0x4959be['length'];_0x50fe7f++){if(_0x799fff(this,_0x4959be[_0x50fe7f],_0x4ff66b,0x0))return!0x0;}return!0x1;function _0x799fff(_0x21dbd4,_0x3c65dc,_0x129ea7,_0x3d1f4d){for(let _0x1ce517=_0x3d1f4d;_0x1ce517<_0x129ea7['length'];_0x1ce517++){const _0x2ce82d=_0x129ea7[_0x1ce517];if(_0x2ce82d['type']!==_0x3c65dc['type']||_0x2ce82d['author']['id']!==_0x3c65dc['author']['id']||_0x2ce82d['subType']!==_0x3c65dc['subType'])continue;if(!Jt(_0x3c65dc,_0x2ce82d))continue;if('attribute'==_0x3c65dc['type']&&_0x3c65dc['data']['oldValue']!=_0x2ce82d['data']['oldValue'])continue;if('attribute'==_0x3c65dc['type']&&_0x21dbd4['_isBlockAttribute'](_0x3c65dc['data']['key']))continue;if('formatBlock'==_0x3c65dc['type']){const _0xd68222=_0x21dbd4['editor']['model'],_0x329091=_0x3c65dc['getContainedElement']();if(_0x329091&&(_0xd68222['schema']['isObject'](_0x329091)||_0xd68222['schema']['isLimit'](_0x329091)))continue;}const _0x39ac17=_0x5cdcea['get'](_0x3c65dc),_0x5ace56=_0x19d5ac['get'](_0x3c65dc),_0xd0f974=_0x19d5ac['get'](_0x2ce82d),_0x3be039=_0x3c65dc['commentThread']&&_0x3c65dc['commentThread']['length'],_0x5d9cdc=_0x2ce82d['commentThread']&&_0x2ce82d['commentThread']['length'];if(!_0x3be039&&_0x39ac17(_0xd0f974,_0x5ace56))return _0x21dbd4['_joinSuggestions'](_0x2ce82d,_0x3c65dc),_0x19d5ac['delete'](_0x3c65dc),!0x0;if(!_0x5d9cdc&&_0x39ac17(_0x5ace56,_0xd0f974))return _0x21dbd4['_joinSuggestions'](_0x3c65dc,_0x2ce82d),_0x19d5ac['delete'](_0x2ce82d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x58ea5a,_0x1e2993){if(_0x58ea5a['isMultiRange']){for(const _0x3011eb of _0x1e2993['getRanges']())_0x58ea5a['addRange'](_0x3011eb);}else{const _0x13e0bd=_0x1e2993['getFirstRange']()['end'];this['_setSuggestionRange'](_0x58ea5a,this['_model']['createRange'](_0x58ea5a['getFirstRange']()['start'],_0x13e0bd));}_0x1e2993['removeMarkers']();}['_getMarkerAnnouncementText'](_0xfc2cd3,_0x4ce339,_0x48b409){const _0x30b10b=_0xfc2cd3['startsWith']('format')||_0xfc2cd3['startsWith']('attribute')?'FORMATTING':_0xfc2cd3['toUpperCase']();return o(this['editor']['locale'],_0x4ce339+'_'+_0x30b10b+'_SUGGESTION_ANNOUNCEMENT',_0x48b409);}['_initAriaMarkerChangeAnnouncements'](){const _0x3103cd=this['editor'];if(!_0x3103cd['ui'])return;const {ariaLiveAnnouncer:_0x2ac653}=_0x3103cd['ui'];_0x280cba(this['_model'],({left:_0x1a39ce,entered:_0x4f4d61})=>{for(const _0x290f7e of _0x1a39ce){const {group:_0x395afa,type:_0x262cdd}=this['_splitMarkerName'](_0x290f7e['name']);if('suggestion'===_0x395afa){_0x2ac653['announce'](this['_getMarkerAnnouncementText'](_0x262cdd,'LEAVE'));break;}}for(const _0x3f0a6c of _0x4f4d61){const {group:_0x141b27,type:_0x7aca91}=this['_splitMarkerName'](_0x3f0a6c['name']);if('suggestion'===_0x141b27){_0x2ac653['announce'](this['_getMarkerAnnouncementText'](_0x7aca91,'ENTER',_0x4bd46a(_0x61a5af)));break;}}});}['_processAttributeChanges'](_0x35f13a){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf0e12=this['editor'],_0xa9e8b5=_0xf0e12['model']['document']['differ']['getChanges']();if(0x0==_0xa9e8b5['length'])return!0x1;const _0x58f8c8=[],_0x4ceed7=_0xa9e8b5['filter'](_0x62976=>'attribute'==_0x62976['type']),_0x518b82=_0xa9e8b5['filter'](_0x58ce54=>'insert'==_0x58ce54['type']&&'$text'!=_0x58ce54['name']),_0x1e17fb=_0xa9e8b5['filter'](_0x12d7ef=>'remove'==_0x12d7ef['type']&&'$text'!=_0x12d7ef['name']);for(const _0xa00af0 of _0x4ceed7)_0x58f8c8['push']({'key':_0xa00af0['attributeKey'],'newValue':_0xa00af0['attributeNewValue'],'oldValue':_0xa00af0['attributeOldValue'],'range':Pt(_0xa00af0['range'],_0xf0e12['model'])});for(const _0x2c604a of _0x518b82){const _0xa1ec14=_0x1e17fb['find'](_0x165c61=>_0x165c61['position']['isEqual'](_0x2c604a['position']));_0xa1ec14&&_0x58f8c8['push']({'key':m,'newValue':_0x2c604a['name'],'oldValue':_0xa1ec14['name'],'range':_0xf0e12['model']['createRangeOn'](_0x2c604a['position']['nodeAfter'])});}return 0x0!=_0x58f8c8['length']&&this['_reduceExistingSuggestions'](_0x35f13a,_0x58f8c8);}['_processAttributeSuggestions'](_0x133fba){let _0x44e987=!0x1;const _0x5adcae=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4bf957=>_0x4bf957['data']['newRange']&&_0x4bf957['name']['startsWith']('suggestion:attribute:'));for(const _0xb9d86f of _0x5adcae){const {subType:_0x3b1b3d,id:_0x39c7c8}=this['_splitMarkerName'](_0xb9d86f['name']),_0x3e627f=_0x3b1b3d['split']('|')[0x0];for(const _0x4e468d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4e468d['id']!=_0x39c7c8&&'attribute'==_0x4e468d['type']&&_0x4e468d['data']&&_0x4e468d['data']['key']==_0x3e627f&&_0x4e468d['getFirstRange']()['isIntersecting'](_0xb9d86f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4e468d,_0xb9d86f['data']['newRange'],_0x133fba),_0x44e987=!0x0);}return _0x44e987;}['_recordAttributeChanges'](_0x5ecb37){this['_recordAttributeSuggestions']=!0x0,_0x5ecb37();}['_isRegisteredAttribute'](_0x3a817d){const _0x48616e=this['_isBlockAttribute'](_0x3a817d),_0x52e401=this['_inlineAttributeKeys']['has'](_0x3a817d);return _0x48616e||_0x52e401;}['_reduceExistingSuggestions'](_0x5a169f,_0x3200af){if(0x0==_0x3200af['length'])return!0x1;let _0x72967f=!0x1;for(const _0xac35d3 of _0x3200af){const _0x202acc=this['_findSuggestions'](_0xac35d3['range'],'attribute')['filter'](_0x3b47a8=>!_0x3b47a8['meta']['isNextTo'])['map'](_0x27294c=>_0x27294c['suggestion']),_0x5bf69c=_0x4704f5({'newValue':_0xac35d3['newValue']});_0x202acc['filter'](_0x12db58=>{const [_0x1f1b2a,_0x4d653e]=_0x12db58['subType']['split']('|');return _0x1f1b2a==_0xac35d3['key']&&_0x4d653e!=_0x5bf69c;})['forEach'](_0x122cf3=>{this['_reduceSuggestionAttributeRange'](_0x122cf3,_0xac35d3['range'],_0x5a169f),_0x72967f=!0x0;});}return _0x72967f;}['_reduceSuggestionAttributeRange'](_0x2bb3ae,_0x25d75b,_0x53ab96){const _0x6e254=_0x2bb3ae['getFirstRange']()['getDifference'](_0x25d75b);0x0!==_0x6e254['length']?0x1!==_0x6e254['length']?this['_breakSuggestionMarker'](_0x2bb3ae,_0x25d75b['start'],_0x25d75b['end']):this['_setSuggestionRange'](_0x2bb3ae,_0x6e254[0x0]):_0x53ab96['removeMarker'](_0x2bb3ae['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x464590){this['_editor']=_0x464590,this['_model']=_0x464590['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x173128,_0x5161b8,_0x3bd43e,_0x1d378a,_0x141cb1,_0x43c6a5){return new u(this['_model'],{'type':_0x173128,'subType':_0x5161b8,'id':_0x3bd43e,'author':_0x1d378a,'creator':_0x1d378a,'attributes':_0x141cb1,'onAttributesChange':_0x43c6a5,'onAccept':(..._0x906500)=>this['getSuggestionCallback'](_0x173128,_0x5161b8,'accept')(..._0x906500),'onDiscard':(..._0x2508d5)=>this['getSuggestionCallback'](_0x173128,_0x5161b8,'discard')(..._0x2508d5)});}['registerCustomCallback'](_0x15d66a,_0x5d9845,_0x283d03,_0x2f054b){const _0x1f5bb7=_0x15d66a+':'+_0x5d9845+':'+_0x283d03;this['_customCallbacks']['set'](_0x1f5bb7,_0x2f054b);}['getSuggestionCallback'](_0x1097fb,_0xb61c53,_0x204427){const _0x4d50c8=_0x1097fb+':'+_0xb61c53+':'+_0x204427;return this['_customCallbacks']['get'](_0x4d50c8)||this['_defaultCallbacks']['get'](_0x1097fb+':'+_0x204427);}['_registerDefaultCallbacks'](){const _0x105912=()=>!0x1,_0x589c9d=_0x3fccb2=>{_0x3fccb2['sort']((_0x59513d,_0x1f64ea)=>_0x59513d['start']['isBefore'](_0x1f64ea['start'])?0x1:-0x1),this['_model']['change'](_0x3cd0fa=>{for(const _0x10e44f of _0x3fccb2){let _0x972a03;_0x972a03=_0x10e44f['end']['isAtEnd']&&_0x10e44f['end']['parent']==_0x10e44f['start']['nodeAfter']?_0x3cd0fa['createSelection'](_0x10e44f['start']['nodeAfter'],'on'):_0x3cd0fa['createSelection'](_0x10e44f),this['_model']['deleteContent'](_0x972a03,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x41e466=(_0x3ed1fe,_0x458a72)=>{_0x458a72&&this['_model']['change'](_0x3e8bd8=>{const {commandName:_0x1a40dc,commandParams:_0xd6cb0=[]}=_0x458a72,_0x144efb=_0x3ed1fe['map'](_0x3966fb=>(Vt(_0x3966fb)&&(_0x3966fb=this['_model']['createRange'](_0x3966fb['end'])),_0x3966fb))['filter'](_0x563a03=>'$graveyard'!==_0x563a03['root']['rootName']);if(_0x144efb['length']<0x1)return;const _0x593b66=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5f5836=>_0x1a312e['fromRange'](_0x5f5836));_0x3e8bd8['setSelection'](_0x144efb);for(const _0x49a95e of this['_editor']['commands']['commands']())_0x49a95e['refresh']();_0xd6cb0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a40dc,..._0xd6cb0);const _0x188b05=_0x593b66['filter'](_0x1c0e08=>'$graveyard'!=_0x1c0e08['root']['rootName']);_0x188b05['length']>0x0&&_0x3e8bd8['setSelection'](_0x188b05);for(const _0xe749ab of _0x593b66)_0xe749ab['detach']();});},_0x4590af=(_0x111725,_0x4d05ee)=>0x1==_0x111725['length']&&0x1==_0x4d05ee['length']&&_0x111725[0x0]['end']['isEqual'](_0x4d05ee[0x0]['start']),_0x5380fb=(_0xdd12b3,_0x1abf88,_0x21cc4d,_0x4d8b4e)=>Ht(_0xdd12b3,_0x1abf88,_0x21cc4d,_0x4d8b4e,this['_model'])?[_0xdd12b3,_0x1abf88]:Ht(_0x1abf88,_0xdd12b3,_0x4d8b4e,_0x21cc4d,this['_model'])?[_0x1abf88,_0xdd12b3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x105912),this['_defaultCallbacks']['set']('insertion:discard',_0x589c9d),this['_defaultCallbacks']['set']('insertion:join',_0x4590af),this['_defaultCallbacks']['set']('insertion:chain',_0x5380fb),this['_defaultCallbacks']['set']('deletion:accept',_0x589c9d),this['_defaultCallbacks']['set']('deletion:discard',_0x105912),this['_defaultCallbacks']['set']('deletion:join',_0x4590af),this['_defaultCallbacks']['set']('deletion:chain',_0x5380fb),this['_defaultCallbacks']['set']('formatInline:accept',_0x41e466),this['_defaultCallbacks']['set']('formatInline:discard',_0x105912),this['_defaultCallbacks']['set']('formatInline:join',_0x4590af),this['_defaultCallbacks']['set']('formatInline:chain',_0x105912),this['_defaultCallbacks']['set']('formatBlock:accept',_0x41e466),this['_defaultCallbacks']['set']('formatBlock:discard',_0x105912),this['_defaultCallbacks']['set']('formatBlock:join',_0x4590af),this['_defaultCallbacks']['set']('formatBlock:chain',_0x105912),this['_defaultCallbacks']['set']('attribute:accept',_0x105912),this['_defaultCallbacks']['set']('attribute:discard',(_0x49cd4c,_0x1e03ee)=>{if(!_0x1e03ee)return;const _0x51fcaa=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3adbb5=>{if(_0x1e03ee['key']==m)for(const _0x40a000 of _0x49cd4c){const _0xddaf83=_0x40a000['start']['nodeAfter'],_0x4d6408=_0x1e03ee['oldValue'];_0x3adbb5['rename'](_0xddaf83,_0x4d6408);}else{if(_0x51fcaa['_isBlockAttribute'](_0x1e03ee['key'])){for(const _0x52e4bc of _0x49cd4c)void 0x0!==_0x1e03ee['oldValue']?_0x3adbb5['setAttribute'](_0x1e03ee['key'],_0x1e03ee['oldValue'],_0x52e4bc['start']['nodeAfter']):_0x3adbb5['removeAttribute'](_0x1e03ee['key'],_0x52e4bc['start']['nodeAfter']);}else{for(const _0x44a98e of _0x49cd4c)_0x1e03ee['oldValue']?_0x3adbb5['setAttribute'](_0x1e03ee['key'],_0x1e03ee['oldValue'],_0x44a98e):_0x3adbb5['removeAttribute'](_0x1e03ee['key'],_0x44a98e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4590af);}}function Ot(_0x195081,_0x5bac2c,_0x503c33){for(const _0x1686c2 of _0x5bac2c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1686c2['root']==_0x1686c2)return!0x1;if(!_0x503c33['containsItem'](_0x1686c2))return!0x1;if(_0x195081['isObject'](_0x1686c2)||_0x195081['isLimit'](_0x1686c2))return!0x0;}return!0x1;}function Vt(_0x16fe11){return _0x16fe11['end']['parent']==_0x16fe11['start']['nodeAfter']&&_0x16fe11['end']['isAtStart'];}function Ut(_0x128240,_0x22972c,_0x18eedc,_0x1c801c){const _0xe8b932=_0x46e57b=>!_0x46e57b['item']['is']('$textProxy')&&!_0x1c801c['isObject'](_0x46e57b['item']),_0x4cf9f8=_0x128240['start']['getLastMatchingPosition'](_0xe8b932),_0x58b3b1=_0x128240['end']['getLastMatchingPosition'](_0xe8b932,{'direction':'backward'});return(!_0x128240['start']['isEqual'](_0x4cf9f8)||!_0x128240['end']['isEqual'](_0x58b3b1))&&(_0x4cf9f8['isBefore'](_0x58b3b1)?_0x18eedc['updateMarker'](_0x22972c,{'range':_0x18eedc['createRange'](_0x4cf9f8,_0x58b3b1)}):_0x18eedc['removeMarker'](_0x22972c),!0x0);}function Gt(_0xc6479e){return _0x4704f5(_0xc6479e);}function Ft(_0x2c24fc){const _0x46f8d6=_0x2c24fc['start']['nodeAfter'];return _0x46f8d6&&_0x46f8d6['is']('element');}function Pt(_0x17d4cc,_0x4fad2c){return null==_0x17d4cc['end']['nodeBefore']&&_0x17d4cc['end']['parent']==_0x17d4cc['start']['nodeAfter']?Lt(_0x17d4cc['start']['nodeAfter'],_0x4fad2c):_0x17d4cc;}function Lt(_0x1cf4fe,_0xb7e119){const _0x39351c=_0xb7e119['schema']['isObject'](_0x1cf4fe)||_0xb7e119['schema']['isSelectable'](_0x1cf4fe);return _0xb7e119['createRange'](_0xb7e119['createPositionAt'](_0x1cf4fe,'before'),_0x39351c?_0xb7e119['createPositionAfter'](_0x1cf4fe):_0xb7e119['createPositionAt'](_0x1cf4fe,'end'));}function Ht(_0x42800d,_0x305199,_0x279856,_0x3c15cc,_0x156666){if(_0x42800d['next'])return!0x1;if(!Jt(_0x42800d,_0x305199))return!0x1;if(_0x279856['end']['isEqual'](_0x3c15cc['start']))return!0x0;if(_0x42800d['type']!=_0x305199['type'])return!0x1;if(!_0x279856['end']['isTouching'](_0x3c15cc['start']))return!0x1;const _0x5aa871=_0x156666['createRange'](_0x279856['end'],_0x3c15cc['start'])['getWalker']();for(const _0x4c43ad of _0x5aa871)if(['elementStart','elementEnd']['includes'](_0x4c43ad['type'])&&_0x156666['schema']['isLimit'](_0x4c43ad['item']))return!0x1;return!0x0;}function Jt(_0x74fcc5,_0x3f160a){if(!_0x74fcc5['_isDataLoaded']||!_0x3f160a['_isDataLoaded'])return!0x1;const _0x29117e=new Set(Object['keys'](_0x74fcc5['attributes'])),_0x583f97=new Set(Object['keys'](_0x3f160a['attributes']));if(_0x29117e['delete']('groupId'),_0x583f97['delete']('groupId'),0x0==_0x29117e['size']&&0x0==_0x583f97['size'])return!0x0;if(_0x29117e['size']!=_0x583f97['size'])return!0x1;const _0x31d93f={..._0x74fcc5['attributes']},_0x319b2c={..._0x3f160a['attributes']};return delete _0x31d93f['groupId'],delete _0x319b2c['groupId'],JSON['stringify'](_0x31d93f)==JSON['stringify'](_0x319b2c);}function qt(_0x285638,_0x56e449){const _0x21d2bc=zt(_0x285638['attributes']),_0x5a3b0c=zt(_0x56e449);if(!_0x285638['_isDataLoaded'])return!0x1;for(const _0x300fb7 of Object['keys'](_0x5a3b0c))if(!_0x11e4b7(_0x21d2bc[_0x300fb7],_0x5a3b0c[_0x300fb7]))return!0x1;return!0x0;}function zt(_0x24581b){const _0x5dc8ce=Object['assign']({},_0x24581b);return delete _0x5dc8ce['skipNestingCheck'],delete _0x5dc8ce['tablePasteChainId'],_0x5dc8ce;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x10bfdb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40d651,_0x30c0ed,_0x185f70,_0x2d1176){super(),this['model']=_0x30c0ed,this['view']=_0x185f70,this['commentThreadController']=_0x2d1176,this['_editor']=_0x40d651,this['_acceptCommand']=_0x40d651['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40d651['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x25a833,_0x13584f)=>_0x25a833||_0x13584f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c0da3=>_0x2c0da3&&this['_editor']['model']['canEditAt'](_0x30c0ed['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e58ad=>_0x4e58ad&&this['_editor']['model']['canEditAt'](_0x30c0ed['getRanges']())),this['_pendingAction']=null,_0x185f70['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x185f70,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x185f70,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x185f70,'change:isDirty',()=>{_0x185f70['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 _0x27af86=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27af86);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1c2486{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5921bf,_0x3d1ebe,_0x531b0f,_0xb822a){super(_0x5921bf),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x593cee(_0x5921bf,o(_0x5921bf,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3d1ebe['authoredAt']),this['bind']('authoredAt')['to'](_0x3d1ebe),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',_0x3d1ebe,'authoredAt',this,'descriptionParts',(_0x499397,_0x2c38d9,_0x52cf30)=>{const _0x2d6184=_0x52cf30['map'](_0x123cf7=>ls(_0x123cf7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x499397-0x1,_0x3d1ebe['author']['name'],_0x2c38d9?_0xb822a['formatDateTime'](_0x2c38d9):'',new DOMParser()['parseFromString'](_0x2d6184,'text/html')['body']['textContent']]);}),this['focusables']=new _0xf17cd7(),this['focusTracker']=new _0x222156(),this['keystrokes']=new _0x2e0953(),this['focusCycler']=new _0x2d9018({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x6fb78e=>_0x6fb78e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3d1ebe,this['_localUser']=_0x531b0f,this['_config']=_0xb822a,_0xb822a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xe55352(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x42e792}=this['_config'];this['commentsListView']=new _0x42e792(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',_0x500d14=>_0x500d14+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4158a6,_0x4ee70c)=>_0x4158a6||!!_0x4ee70c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x18c16a}=this['_config'],_0x4a3566=new _0x18c16a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3cdb54=_0x4a3566['commentInputView'];return _0x4a3566['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3cdb54,'value',(_0x4aae83,_0x197d03,_0x4e1edf)=>!!_0x4e1edf||_0x4aae83&&!_0x197d03),_0x3cdb54['on']('submit',(_0x3fcafe,_0xa1cda9)=>{this['fire']('addComment',_0xa1cda9),_0x3cdb54['editor']['setData']('');}),_0x3cdb54['on']('cancel',()=>this['focus']()),_0x3cdb54['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4a3566;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x50f01c,_0x3a07f5,_0x185456,_0x33cdce){super(_0x50f01c,_0x3a07f5,_0x185456,_0x33cdce),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26227a=>_0x26227a&&_0x26227a[0x0]?_0x26227a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x18dd6a,_0x2eed25)=>{let _0xb91531='';for(const _0x12151a of _0x18dd6a)_0xb91531+='<p>'+ls(_0x12151a['content'],_0x12151a['color'])+'</p>';return _0x2eed25?_0xb91531:_0xe1f01c(_0xb91531,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x33cdce['SuggestionView'](_0x50f01c,_0x3a07f5,{'formatDateTime':_0x33cdce['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 _0x417439=this['bindTemplate'],_0x4bede8=[this['suggestionView']];return this['commentsListView']&&_0x4bede8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4bede8['push'](this['commentThreadInputView']),_0x4bede8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x417439['if']('isActive','ck-suggestion-wrapper--active'),_0x417439['to']('type',_0xbfc766=>'ck-suggestion-'+_0xbfc766),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':_0x417439['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4bede8};}['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 _0x1c2486{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1f98ae,_0x17cd0e,_0x220698){super(_0x1f98ae),this['_model']=_0x17cd0e,this['_config']=_0x220698,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17cd0e),this['acceptButton']=this['_createButton'](o(_0x1f98ae,'Accept\x20suggestion'),_0x26ee55['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1f98ae,'Discard\x20suggestion'),_0x26ee55['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5d3b1c(_0x1f98ae,_0x17cd0e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xf17cd7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x222156(),this['keystrokes']=new _0x2e0953(),this['focusCycler']=new _0x2d9018({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x200a14=>_0x200a14['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1ca668=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1ca668['innerHTML']=this['description'],this['on']('change:description',(_0x20ea5e,_0x4fe4a5,_0x5d4795)=>{_0x1ca668['innerHTML']=_0x5d4795;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4e4ac8=this['bindTemplate'],_0xf3e65=[{'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':_0x4e4ac8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4e4ac8['to']('authoredAt',_0xb818e4=>this['_config']['formatDateTime'](_0xb818e4))}]}]},{'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']&&_0xf3e65['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':_0xf3e65}]};}['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'](_0x31e366,_0x413da4,_0x1fc763,_0x5b5e21,_0x11687b){const _0xa23cd3=new _0x14e887(this['locale']);return _0xa23cd3['set']({'label':_0x31e366,'icon':_0x413da4,'tooltip':!0x0,'tooltipPosition':_0x11687b}),_0xa23cd3['extendTemplate']({'attributes':{'class':_0x1fc763}}),_0xa23cd3['on']('execute',()=>{this['fire'](_0x5b5e21,this['_model']['id']);}),_0xa23cd3;}['_setupKeyboardNavigation'](){const _0x47719b=this['element'];this['keystrokes']['listenTo'](_0x47719b);for(const _0x1013d1 of this['focusables'])this['focusTracker']['add'](_0x1013d1['element']),this['keystrokes']['listenTo'](_0x1013d1['element']);this['keystrokes']['set']('enter',(_0x3d8804,_0x388084)=>{_0x47719b===_0x3d8804['target']&&(this['focusCycler']['focusFirst'](),_0x388084());}),this['keystrokes']['set']('esc',(_0x7092e1,_0x1124c7)=>{_0x47719b!==_0x7092e1['target']&&(this['focus'](),_0x1124c7());});}}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 _0x4ba4b5{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x106ae5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x12cc34){super(_0x12cc34),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d6aef=this['editor']['config'];_0x4d6aef['define']('trackChanges.SuggestionThreadView',re),_0x4d6aef['define']('trackChanges.SuggestionView',ce),_0x4d6aef['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d6aef['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x170511,_0x4d9841){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x14c0b6,_0x157e17]of this['_handleControllerBuffer']){const _0x16ceaa=this['_suggestionToController']['has'](_0x14c0b6);_0x16ceaa||_0x157e17?_0x16ceaa&&_0x157e17&&this['_destroyController'](_0x14c0b6):this['_initializeController'](_0x14c0b6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x170511,_0x4d9841);}['init'](){const _0x13282c=this['editor'],_0x1b2633=_0x13282c['plugins']['get']('TrackChangesEditing'),_0xa4ebe2=_0x13282c['plugins']['get']('Annotations'),_0x59933d=_0x13282c['plugins']['get']('EditorAnnotations'),_0x408ec5=_0x13282c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x59933d['addSourceCollector'](()=>{const _0xa4b22d=[];for(const [_0x17b7bc,_0x5eb8da]of Array['from'](this['_suggestionToController'])){const _0x534816=_0x17b7bc['getAllAdjacentSuggestions'](),_0x5b6bb4=[];for(const _0x229925 of _0x534816){if(!_0x229925['isInContent'])continue;if(_0x229925['isMultiRange']){_0x5b6bb4['push'](..._0x229925['getRanges']());continue;}const _0x19048a=_0x229925['getFirstRange']();if(_0x5b6bb4['length']>0x0){const _0x369b82=_0x5b6bb4[0x0]['getJoined'](_0x19048a);if(_0x369b82){_0x5b6bb4[0x0]=_0x369b82;continue;}}_0x5b6bb4['push'](_0x19048a);}_0xa4b22d['push']([_0x5eb8da['view'],_0x5b6bb4]);}return _0xa4b22d;}),this['listenTo'](_0x1b2633,'suggestionLoaded',(_0x362d91,_0x5df40f)=>{this['listenTo'](_0x5df40f,'change:previous',(_0x5d1449,_0x16ca0e,_0x462127,_0x3e3628)=>{_0x5df40f['isInContent']&&(null==_0x462127?(this['_updateController'](_0x3e3628['head']),this['_handleSuggestionControllerDelayed'](_0x5df40f,!0x1)):(this['_updateController'](_0x462127['head']),null==_0x3e3628&&this['_handleSuggestionControllerDelayed'](_0x5df40f,!0x0)));}),null!==_0x5df40f['previous']?this['_updateController'](_0x5df40f['head']):this['_handleSuggestionControllerDelayed'](_0x5df40f,!0x1);}),this['listenTo'](_0x1b2633,'suggestionUnloaded',(_0x4b2f0f,_0x11dc8b,_0x5abd54)=>{this['stopListening'](_0x11dc8b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x11dc8b),this['_suggestionToController']['has'](_0x11dc8b)&&this['_destroyController'](_0x11dc8b),_0x5abd54&&this['_updateController'](_0x5abd54['head']);}),this['listenTo'](_0x1b2633,'suggestionChanged',(_0x2b084f,_0x15de1b)=>{this['_updateController'](_0x15de1b);}),this['listenTo'](_0xa4ebe2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x408ec5,'addComment',(_0x4d1a54,{threadId:_0x2ffb5e,isFromAdapter:_0x3cfccd})=>{if(_0x3cfccd||!_0x1b2633['hasSuggestion'](_0x2ffb5e))return;const _0x471e7b=_0x1b2633['getSuggestion'](_0x2ffb5e);this['_suggestionToController']['get'](_0x471e7b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xcacd84=this['editor']['plugins']['get']('Annotations'),_0x2d050b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0777=Array['from'](_0xcacd84['activeAnnotations'],_0x2d596e=>_0x2d596e['innerView'])['filter'](_0x9bf7a8=>this['_viewToController']['has'](_0x9bf7a8)),_0x4cd2c5=[];for(const _0x3edd63 of _0x5f0777){const _0x1ad109=this['_viewToController']['get'](_0x3edd63)['model']['getAllAdjacentSuggestions']();_0x4cd2c5['push'](..._0x1ad109['reduce']((_0x8c92b4,_0x289b56)=>[..._0x8c92b4,..._0x289b56['getMarkerNames']()],[]));}_0x2d050b['activeMarkers']=_0x4cd2c5;}['_addUIComponentsToFactory'](){const _0x407216=this['editor'],_0x5f4497=_0x407216['locale'],_0xcff164=o(_0x5f4497,'Track\x20changes'),_0x25aa3b=new Wt([{'type':'switchbutton','model':new _0x4ab10e({'withText':!0x0,'isToggleable':!0x0,'label':_0xcff164,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5ab4ca of _0x25aa3b)if(me(_0x5ab4ca)){const _0x27e93f=_0x407216['commands']['get'](_0x5ab4ca['model']['commandName']);_0x5ab4ca['model']['bind']('isOn','isEnabled')['to'](_0x27e93f,'value','isEnabled');}_0x407216['ui']['componentFactory']['add']('trackChanges',_0x2e96c9=>this['_createToolbarButton'](_0x2e96c9,_0x25aa3b,_0xcff164)),_0x407216['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3895cd=>this['_createMenuBarMenu'](_0x3895cd,_0x25aa3b,_0xcff164));}['_createToolbarButton'](_0xd83e5f,_0x3078b6,_0x5ebaab){const _0x589f19=Qt(_0xd83e5f,_0x5b5fce),_0x51caa5=this['editor']['commands']['get']('trackChanges');_0x589f19['buttonView']['set']({'tooltip':_0x5ebaab,'label':_0x5ebaab,'icon':he}),_0x589f19['buttonView']['bind']('isOn')['to'](_0x51caa5,'value'),_0x589f19['buttonView']['on']('execute',()=>{_0x51caa5['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x589f19,_0x3078b6,{'role':'menu'});const _0x3a22b8=[];for(const _0x5cef5c of _0x3078b6)me(_0x5cef5c)&&_0x3a22b8['push'](this['editor']['commands']['get'](_0x5cef5c['model']['commandName']));const _0x1be107=_0x589f19['buttonView'];return _0x1be107['actionView']['unbind']('isEnabled'),_0x1be107['arrowView']['unbind']('isEnabled'),_0x1be107['actionView']['bind']('isEnabled')['to'](_0x51caa5,'isEnabled'),_0x1be107['arrowView']['bind']('isEnabled')['toMany'](_0x3a22b8,'isEnabled',(..._0x3cc725)=>_0x3cc725['some'](_0x9a46b9=>_0x9a46b9)),_0x589f19['on']('execute',_0x158a89=>{this['editor']['execute'](_0x158a89['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x589f19;}['_createMenuBarMenu'](_0x3c9fe0,_0x1a62e0,_0x1a92fe){const _0x2861a1=new Yt(_0x3c9fe0),_0xfcb181=this['editor']['commands']['get']('trackChanges');_0x2861a1['buttonView']['set']({'label':_0x1a92fe,'icon':he});const _0x3a2328=new Zt(_0x3c9fe0);for(const _0x24a4c7 of _0x1a62e0){if('separator'==_0x24a4c7['type']){_0x3a2328['items']['add'](new Xt(_0x3c9fe0));continue;}const _0x3b590b=new te(_0x3c9fe0,_0x2861a1),_0x7564bd=new _0x433705(_0x3c9fe0),_0x5bf17e=_0x24a4c7['model'];_0x7564bd['bind'](...Object['keys'](_0x5bf17e))['to'](_0x5bf17e),_0x7564bd['delegate']('execute')['to'](_0x2861a1),_0x7564bd['on']('execute',()=>{this['editor']['execute'](_0x5bf17e['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b590b['children']['add'](_0x7564bd),_0x3a2328['items']['add'](_0x3b590b);}return _0x2861a1['bind']('isEnabled')['to'](_0xfcb181,'isEnabled'),_0x2861a1['panelView']['children']['add'](_0x3a2328),_0x2861a1;}['_initializeController'](_0x233340){const _0x4edc11=this['editor'],_0x36fb8d=_0x4edc11['config'],_0x3a622c=_0x4edc11['plugins']['get']('Annotations'),_0x592fd5=_0x4edc11['plugins']['get']('CommentsRepository'),_0x2de795=_0x4edc11['plugins']['get']('EditorAnnotations'),_0x3ca55e=_0x4edc11['plugins']['get'](_0x106ae5)['me'],_0x18d97e=_0x36fb8d['get']('trackChanges')['SuggestionThreadView'],_0x1a000d=_0x36fb8d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x101f43,CommentThreadInputView:_0x48736e}=_0x4edc11['plugins']['get']('CommentsUI');let _0x451ed8,_0x2535fe,_0x1d365a;this['_annotationViews']['has'](_0x233340['id'])?(_0x2535fe=this['_annotationViews']['get'](_0x233340['id']),_0x451ed8=_0x2535fe['mainView']):(_0x451ed8=new _0x18d97e(_0x4edc11['locale'],_0x233340,_0x3ca55e,{'disableComments':this['_disableComments'],'editorConfig':_0x36fb8d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x36fb8d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x36fb8d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x36fb8d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x37339d(_0x36fb8d['get']('locale')),'CommentView':_0x36fb8d['get']('comments')['CommentView'],'CommentsListView':_0x101f43,'CommentThreadInputView':_0x48736e,'SuggestionView':_0x1a000d}),_0x451ed8['suggestionView']['acceptButton']['on']('execute',()=>{_0x4edc11['editing']['view']['focus']();}),_0x451ed8['suggestionView']['discardButton']['on']('execute',()=>{_0x4edc11['editing']['view']['focus']();}),_0x2535fe=_0x3a622c['createAnnotationView'](this['editor']['locale'],_0x451ed8),_0x2535fe['bind']('isDirty')['to'](_0x451ed8,'isDirty'),_0x2535fe['bind']('length')['to'](_0x451ed8),_0x2535fe['bind']('type')['to'](_0x451ed8,'type',_0x1ccc06=>'suggestion-'+_0x1ccc06),_0x451ed8['on']('escape',()=>{_0x1d365a['fire']('escape');}),this['_annotationViews']['set'](_0x233340['id'],_0x2535fe));const _0x41e508=_0x592fd5['createCommentThreadController'](_0x233340['commentThread'],_0x451ed8),_0x44475c=new ae(_0x4edc11,_0x233340,_0x451ed8,_0x41e508),_0x24139d=_0x233340['getAllAdjacentSuggestions']()['filter'](_0x3dcf00=>_0x3dcf00['isInContent']);_0x451ed8['descriptionParts']=_0x4edc11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24139d),this['_suggestionToController']['set'](_0x233340,_0x44475c),this['_viewToController']['set'](_0x451ed8,_0x44475c),_0x1d365a=_0x3a622c['createAnnotation']({'view':_0x2535fe,'target':()=>{const _0x53acd1=[],_0x3ca66c=_0x233340['getAllAdjacentSuggestions']()['filter'](_0x2e66cf=>_0x2e66cf['isInContent']);for(const _0x26e60a of _0x3ca66c)_0x53acd1['push'](..._0x26e60a['getMarkers']());return _0x58c05a(_0x4edc11['editing'],_0x53acd1);},'type':()=>'suggestion-'+_0x44475c['view']['type']}),_0x592fd5['_bindAnnotationToEditors'](_0x451ed8,_0x1d365a),_0x3a622c['add'](_0x1d365a),_0x2de795['registerAnnotation'](_0x1d365a);}['_destroyController'](_0x4f0e62){const _0x3edbf8=this['editor']['plugins']['get']('CommentsRepository'),_0x20a8ed=this['editor']['plugins']['get']('Annotations'),_0x4d7e27=this['_suggestionToController']['get'](_0x4f0e62),_0x1e910a=_0x4d7e27['view'],_0x154f10=_0x20a8ed['getByInnerView'](_0x1e910a);_0x3edbf8['_unbindEditors'](_0x1e910a),_0x154f10&&_0x20a8ed['remove'](_0x154f10),this['_suggestionToController']['delete'](_0x4f0e62),this['_viewToController']['delete'](_0x1e910a),_0x4d7e27['destroy']();}['_updateController'](_0x5da493){if(!_0x5da493['isInContent']||!this['_suggestionToController']['has'](_0x5da493))return;const _0x45ce55=this['editor']['plugins']['get']('TrackChangesEditing'),_0x242226=this['_suggestionToController']['get'](_0x5da493),_0x44564f=_0x5da493['getAllAdjacentSuggestions']();_0x242226['view']['descriptionParts']=_0x45ce55['descriptionFactory']['getDescriptions'](_0x44564f);}['destroy'](){for(const _0x3561d2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3561d2);for(const _0x459c4b of this['_annotationViews']['values']())_0x459c4b['mainView']['destroy']();super['destroy']();}}function me(_0x5687d4){return'model'in _0x5687d4;}class k extends _0x4ba4b5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4c5cce){this['editor']['plugins']['get'](p)['adapter']=_0x4c5cce;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x23d1b7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x23d1b7);}['getSuggestions']({skipNotAttached:_0x10321c=!0x1,toJSON:_0x55697b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x10321c,'toJSON':_0x55697b});}['getSuggestion'](_0x145e92){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x145e92);}}const T=['Pagination'];class P extends _0x4ba4b5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5cd516=this['editor'];if(_0x5cd516['config']['define']('trackChangesData.editorCreator',_0x387e81=>{const _0x555149=_0x5cd516['model']['document']['getRootNames']()['reduce']((_0x3423c8,_0x26f533)=>(_0x3423c8[_0x26f533]='',_0x3423c8),{});return _0x5cd516['constructor']['create'](_0x555149,_0x387e81);}),'function'!=typeof _0x5cd516['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a35b0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7da6a){return N(this['editor'],!0x0,_0x7da6a);}['getDataWithDiscardedSuggestions'](_0x336f2f){return N(this['editor'],!0x1,_0x336f2f);}}class D extends _0x4ba4b5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x182d28){super(_0x182d28),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(_0x3092ac){return void 0x0!==_0x3092ac['getRootsAttributes'];}async function N(_0x189835,_0xaf3794,_0xef4c57){const _0x28f031=_0x3f774b(_0x189835,T);_0x28f031['plugins']['push'](p,D),_0x28f031['rootsAttributes']=v(_0x189835)?_0x189835['getRootsAttributes']():void 0x0;const _0x544796=document['createDocumentFragment'](),_0x123d13=_0x189835['config']['get']('trackChangesData')['editorCreator'],_0x4dbb09=await _0x123d13(_0x28f031,()=>function(_0xa2750d){const _0x51eb51=document['createElement']('div');return _0xa2750d['appendChild'](_0x51eb51),_0x51eb51;}(_0x544796));!function(_0x214aa4,_0x3f56ec){const _0x357cd9=_0x214aa4['model']['document']['getRootNames']()['reduce']((_0x1ff69d,_0x156b43)=>(_0x1ff69d[_0x156b43]=_0x214aa4['data']['get']({'rootName':_0x156b43}),_0x1ff69d),{}),_0xdc4b7c=_0x214aa4['plugins']['get']('Users')['users']['map'](_0x2de24b=>({'id':_0x2de24b['id'],'name':_0x2de24b['name']})),_0xe72daf=_0x214aa4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ecb5d=_0x214aa4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c8acc=_0x3f56ec['plugins']['get']('Users'),_0x3cc747=_0x3f56ec['plugins']['get']('TrackChangesEditing'),_0x35cfb8=_0x3f56ec['plugins']['get']('CommentsRepository');for(const _0x560fd2 of _0x35cfb8['getCommentThreads']())_0x560fd2['remove']();for(const _0x3dbfbc of _0xdc4b7c)_0x5c8acc['getUser'](_0x3dbfbc['id'])||_0x5c8acc['addUser'](_0x3dbfbc);_0x5c8acc['me']||_0x5c8acc['useAnonymousUser']();for(const _0x1d9e98 of _0x2ecb5d)_0x35cfb8['addCommentThread'](_0x1d9e98);for(const _0x2156fc of _0xe72daf)_0x3cc747['addSuggestionData'](_0x2156fc);_0x3f56ec['data']['set'](_0x357cd9);}(_0x189835,_0x4dbb09),_0x4dbb09['execute'](_0xaf3794?'acceptAllSuggestions':'discardAllSuggestions');const _0x2406d7=v(_0x4dbb09)?_0x4dbb09['getFullData'](_0xef4c57):_0x4dbb09['data']['get'](_0xef4c57);return await _0x4dbb09['destroy'](),_0x2406d7;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};