@ckeditor/ckeditor5-track-changes 43.1.0-alpha.1 → 43.1.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 _0x3ba5c8,PendingActions as _0x39f967,icons as _0x4b2538}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x106dea,ObservableMixin as _0x528fd3,uid as _0x47b6bb,insertToPriorityArray as _0x1d2e93,priorities as _0x429c11,logWarning as _0x327173,getEnvKeystrokeText as _0x5d8ba5,FocusTracker as _0x1ae6a4,KeystrokeHandler as _0x18fbc7,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xa099eb,View as _0x253ee2,ViewCollection as _0x3caffd,FocusCycler as _0x543f5f,ViewModel as _0x322289,createDropdown as Qt,SplitButtonView as _0x241fa9,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x421e16}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4d4e1b,hashObject as _0x55a1d3,surroundingMarkersDetector as _0x331b80,FOCUS_ANNOTATION_KEYSTROKE as _0x268394,AriaDescriptionView as _0x5a32ca,setupThreadKeyboardNavigation as _0x317c10,trimHtml as _0x9de92e,UserView as _0x5d5a8a,LateFocusButtonView as _0x377764,getDateTimeFormatter as _0x4680c7,getAllMarkersDomElementsSorted as _0x5d8e69,sanitizeEditorConfig as _0x3e3901}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3f1a6c,LiveRange as _0xe77a90,LivePosition as _0x3afa91}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3f63d0,toWidget as _0x44546d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3eff28,set as _0x2efc7f,isEqual as _0x2ab27f,unset as _0x1a89e7,omit as Tt}from'lodash-es';import{Delete as _0x5e160b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4ae047,ShiftEnter as _0x2bc191}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x59a3c9,_0x537aa3){super(_0x59a3c9),this['_enabledCommands']=_0x537aa3,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 _0x47ac79 of this['editor']['commands']['commands']())_0x47ac79['affectsData']&&!this['_enabledCommands']['has'](_0x47ac79)&&_0x47ac79['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1b7324 of this['editor']['commands']['commands']())_0x1b7324['affectsData']&&!this['_enabledCommands']['has'](_0x1b7324)&&_0x1b7324['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x3dcf3d,_0x4b1350){super(_0x3dcf3d),this['_suggestions']=_0x4b1350,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2cbe58){const _0x15ae16=this['_suggestions']['get'](_0x2cbe58);if(!_0x15ae16)throw new _0x106dea('track-changes-accept-suggestion-not-found',this);const _0x4dd608=_0x15ae16['getRanges']();this['editor']['model']['canEditAt'](_0x4dd608)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x15ae16);}}class R extends ts{['_suggestions'];constructor(_0x545fa0,_0x417129){super(_0x545fa0),this['_suggestions']=_0x417129,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x45e8df){const _0x5efa98=this['_suggestions']['get'](_0x45e8df);if(!_0x5efa98)throw new _0x106dea('track-changes-discard-suggestion-not-found',this);const _0x1859be=_0x5efa98['getRanges']();this['editor']['model']['canEditAt'](_0x1859be)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5efa98);}}function ls(_0x48d898,_0x39d8cd){let _0xe5ffd9='';return _0xe5ffd9+=_0x48d898['split']('*')['map']((_0x311696,_0x2b799b)=>_0x2b799b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x311696)+'</span>':nn(_0x311696))['join'](''),_0x39d8cd&&(_0xe5ffd9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x39d8cd['value']+'\x22\x20title=\x22'+_0x39d8cd['title']+'\x22></span>'),_0xe5ffd9;}function nn(_0x2a8324){const _0x168dc4=document['createElement']('span');return _0x168dc4['innerText']=_0x2a8324,_0x168dc4['innerHTML'];}function ss(_0xc48f6){return _0xc48f6['sort']((_0x4b93fc,_0x5e52cc)=>'deletion'==_0x4b93fc['type']&&'deletion'!=_0x5e52cc['type']?-0x1:'deletion'!=_0x4b93fc['type']&&'deletion'==_0x5e52cc['type']?0x1:0x0);}function to(_0x22a682,_0x5d13fb){let _0x2deabf,_0x117f89=0x0;const _0x541061=[],_0x15ccd9=_0x5d13fb['schema'];for(;_0x117f89<_0x22a682['length'];){const _0x1a7c6b=_0x22a682[_0x117f89],_0x4a689a=_0x22a682[_0x117f89+0x1];_0x2deabf||(_0x2deabf=_0x5d13fb['createPositionBefore'](_0x1a7c6b)),on(_0x5d13fb,_0x1a7c6b,_0x4a689a)||(_0x541061['push'](_0x5d13fb['createRange'](_0x2deabf,_0x15ccd9['isObject'](_0x1a7c6b)?_0x5d13fb['createPositionAfter'](_0x1a7c6b):_0x5d13fb['createPositionAt'](_0x1a7c6b,'end'))),_0x2deabf=null),_0x117f89++;}return _0x541061;}function on(_0x1f83fe,_0x3ce198,_0x43bf17){if(!_0x43bf17)return!0x1;const _0x18bc5b=_0x1f83fe['createPositionAfter'](_0x3ce198),_0x4f3fec=_0x1f83fe['createPositionBefore'](_0x43bf17);return _0x18bc5b['isTouching'](_0x4f3fec);}function rs(_0x4d69b1,_0x1e1309,_0x196938){for(;_0x196938['length'];){const _0x20db3d=_0x196938['splice'](0x0,0x64);_0x4d69b1['change'](()=>{for(const _0x125a4d of _0x20db3d)_0x125a4d['isInContent']&&_0x1e1309['execute'](_0x125a4d['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x2e9ceb,_0x362e85,_0x42dc05){super(_0x2e9ceb),this['_command']=_0x362e85,this['_suggestions']=_0x42dc05,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d56a4=Array['from'](this['_suggestions']['values']())['some'](_0x1a9321=>_0x1a9321['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4d56a4;}['execute'](){const _0x2d2112=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1d9a29 of _0x2d2112){const _0x235ebd=_0x1d9a29['getRanges']();if(!this['editor']['model']['canEditAt'](_0x235ebd))return;}rs(this['editor']['model'],this['_command'],_0x2d2112);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1a9981,_0x8e38a0,_0x1dfec9){super(_0x1a9981),this['_command']=_0x8e38a0,this['_suggestions']=_0x1dfec9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x47d099=this['editor']['model']['document']['selection'],_0x4899b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x376295,_0x26c510){const _0x2225e9=Array['from'](_0x376295['getRanges']()),_0x135bd6=new Set();for(const _0x7000b of _0x26c510)if(_0x7000b['isInContent']){for(const _0x5e388a of _0x2225e9)for(const _0x1420b9 of _0x7000b['getRanges']())(_0x5e388a['isIntersecting'](_0x1420b9)||_0x376295['isCollapsed']&&!_0x7000b['isMultiRange']&&_0x7000b['next']&&_0x1420b9['end']['isTouching'](_0x5e388a['start']))&&_0x135bd6['add'](_0x7000b);}return _0x135bd6;}(_0x47d099,_0x4899b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xa4f1b4=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2b789d of _0xa4f1b4){const _0xa79213=_0x2b789d['getRanges']();if(!this['editor']['model']['canEditAt'](_0xa79213))return;}rs(this['editor']['model'],this['_command'],_0xa4f1b4);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x528fd3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4bf65b,_0x4d6316){super(),this['id']=_0x4d6316['id'],this['type']=_0x4d6316['type'],this['subType']=_0x4d6316['subType']||null,this['author']=_0x4d6316['author'],this['creator']=_0x4d6316['creator']||_0x4d6316['author'],this['isExternal']=Boolean(_0x4d6316['attributes']&&_0x4d6316['attributes']['@external']),this['data']=null,this['_model']=_0x4bf65b,this['_onAccept']=_0x4d6316['onAccept'],this['_onDiscard']=_0x4d6316['onDiscard'],this['_onAttributesChange']=_0x4d6316['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4d6316['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 _0x308471=this;for(;_0x308471['previous'];)_0x308471=_0x308471['previous'];return _0x308471;}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'](_0x4b6986){this['_markerNames']['add'](_0x4b6986);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x8f3fcf=>this['_model']['markers']['get'](_0x8f3fcf))['filter'](_0x3b0643=>_0x3b0643);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5d25b3=>{for(const _0x22a49e of this['getMarkers']())_0x5d25b3['removeMarker'](_0x22a49e);}),this['_markerNames']['clear']();}['removeMarker'](_0x4dee69){this['_model']['change'](_0x27cd6c=>{_0x27cd6c['removeMarker'](_0x4dee69);}),this['_markerNames']['delete'](_0x4dee69);}['addRange'](_0x2c79aa){const _0xa0d2a4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xa0d2a4),this['_model']['change'](_0x1bcd99=>{_0x1bcd99['addMarker'](_0xa0d2a4,{'range':_0x2c79aa,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x59858c){for(const _0x30a485 of this['getRanges']())if(_0x30a485['isIntersecting'](_0x59858c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x177d17=>_0x177d17['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xec4948,_0x1c781f)=>[..._0xec4948,..._0x1c781f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x30bac2=this['getRanges']();if(0x1!=_0x30bac2['length'])return null;const _0x624c9f=_0x30bac2[0x0],_0x226a05=_0x624c9f['start']['nodeAfter'],_0x109171=_0x624c9f['end']['nodeBefore'];return _0x226a05 instanceof _0x3f1a6c?_0x226a05!=_0x109171?null:_0x226a05: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 _0x2dc2a6=[];let _0x414294=this['head'];for(;_0x414294;)_0x2dc2a6['push'](_0x414294),_0x414294=_0x414294['next'];return _0x2dc2a6;}['setAttribute'](_0x2514fa,_0x122ad5){const _0x470d6a=_0x3eff28(this['attributes']);_0x2efc7f(_0x470d6a,_0x2514fa,_0x122ad5),_0x2ab27f(_0x470d6a,this['attributes'])||(this['attributes']=_0x470d6a,this['_onAttributesChange'](_0x470d6a));}['removeAttribute'](_0x2cbf00){const _0x1aaf58=_0x3eff28(this['attributes']);_0x1a89e7(_0x1aaf58,_0x2cbf00),_0x2ab27f(_0x1aaf58,this['attributes'])||(this['attributes']=_0x1aaf58,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 _0x47b6bb()['substr'](0x1,0x5);}}function o(_0x421b28,_0x50f460,_0x5ad098){const t=_0x421b28['t'];switch(_0x50f460){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',_0x5ad098);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5ad098);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5ad098);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5ad098);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5ad098);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',_0x5ad098);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5ad098);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',_0x5ad098);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5ad098);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5ad098);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5ad098);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5ad098);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5ad098);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5ad098);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5ad098);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5ad098);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5ad098);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5ad098);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5ad098);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5ad098);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5ad098);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5ad098);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5ad098);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'},_0x5ad098);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5ad098);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5ad098);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5ad098);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5ad098);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5ad098);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'},_0x5ad098);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5ad098);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5ad098);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5ad098);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5ad098);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'},_0x5ad098);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5ad098);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'},_0x5ad098);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'},_0x5ad098);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5ad098);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'},_0x5ad098);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5ad098);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'},_0x5ad098);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5ad098);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5ad098);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'},_0x5ad098);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'},_0x5ad098);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'},_0x5ad098);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5ad098);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'},_0x5ad098);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'},_0x5ad098);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'},_0x5ad098);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x50f460;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x129015,_0x57df23){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x129015,this['_locale']=_0x57df23;}['getDescriptions'](_0x24bef9){const _0x532ef3=[],_0x5c8c75=new Set(),_0x1fa5cf=new Set();for(let _0x5b6174=0x0;_0x5b6174<_0x24bef9['length'];_0x5b6174++){const _0x5cfdce=_0x24bef9[_0x5b6174];if(!_0x5cfdce['isInContent'])continue;const _0x1192bc=this['_handleCustomCallbackDescription'](_0x5cfdce);if(_0x1192bc){if(null!=_0x5cfdce['subType']){if(_0x5c8c75['has'](_0x5cfdce['subType']))continue;_0x5c8c75['add'](_0x5cfdce['subType']);}_0x532ef3['push'](_0x1192bc);}else{if('attribute'!=_0x5cfdce['type'])'insertion'!=_0x5cfdce['type']&&'deletion'!=_0x5cfdce['type']||this['_handleInsertRemoveSuggestionDescription'](_0x532ef3,_0x5cfdce,_0x24bef9[_0x5b6174+0x1]);else{const _0x2c3fad=_0x5cfdce['data']['key'];if(_0x1fa5cf['has'](_0x2c3fad))continue;_0x1fa5cf['add'](_0x5cfdce['data']['key']),_0x2c3fad==m?this['_handleRenameSuggestionDescription'](_0x532ef3,_0x5cfdce):this['_handleAttributeSuggestionDescription'](_0x532ef3,_0x5cfdce);}}}return this['_resolveDescriptionItems'](_0x532ef3);}['registerDescriptionCallback'](_0x3fe688){this['_customCallbacks']['push'](_0x3fe688);}['registerElementLabel'](_0x3fc6b8,_0x31275f,_0x373512=_0x429c11['normal']){'function'==typeof _0x3fc6b8?_0x1d2e93(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3fc6b8,'label':_0x31275f,'priority':_0x373512}):this['_itemLabels']['set'](_0x3fc6b8,_0x31275f);}['registerAttributeLabel'](_0x47d476,_0xc33ebb){this['_attributeLabels']['set'](_0x47d476,_0xc33ebb);}['getItemLabel'](_0x16fa15,_0x7c1890=0x1){let _0x170335;for(const _0x97623d of this['_itemLabelsCallbacks'])if(_0x97623d['matchingCallback'](_0x16fa15)){_0x170335=_0x97623d['label'];break;}return _0x170335||(_0x170335=this['_itemLabels']['get'](_0x16fa15['name'])),_0x170335?_0x170335(_0x7c1890):0x1!==_0x7c1890?_0x7c1890+'\x20'+_0x16fa15['name']+'s':''+_0x16fa15['name'];}['_addDescriptionItems'](_0x4ec7f7,_0x318d08){const _0x378312=_0x318d08['getFirstRange']()['getWalker'](),_0x96bccf='insertion'==_0x318d08['type']?'add':'remove';for(const _0x1b18ca of _0x378312){const _0x4ffc17=_0x1b18ca['item'],_0x49d1a4=_0x4ec7f7[_0x4ec7f7['length']-0x1];if(_0x4ffc17['is']('$textProxy'))_0x49d1a4&&_0x49d1a4['type']['indexOf']('Container')>-0x1&&_0x4ec7f7['pop'](),_0x49d1a4&&'text'==_0x49d1a4['type']?_0x49d1a4[_0x96bccf]+=_0x4ffc17['data']:_0x4ec7f7['push']({'type':'text','add':'add'==_0x96bccf?_0x4ffc17['data']:'','remove':'remove'==_0x96bccf?_0x4ffc17['data']:''});else{if(this['_schema']['isObject'](_0x4ffc17)){const _0x2fe7c1=_0x4ffc17;if(_0x49d1a4&&_0x49d1a4['type']['indexOf']('Container')>-0x1&&_0x4ec7f7['pop'](),'elementEnd'==_0x1b18ca['type'])continue;_0x49d1a4&&_0x49d1a4['type']==_0x96bccf+'Object'&&_0x49d1a4['element']['name']==_0x2fe7c1['name']?_0x49d1a4['quantity']++:_0x4ec7f7['push']({'type':_0x96bccf+'Object','element':_0x2fe7c1,'quantity':0x1}),_0x378312['skip'](_0x128cff=>!('elementEnd'==_0x128cff['type']&&_0x128cff['item']==_0x4ffc17));}else{if(this['_schema']['checkChild'](_0x4ffc17,'$text')||_0x4ffc17['is']('element','softBreak')){const _0x4725a7=_0x4ffc17;if('add'==_0x96bccf&&'elementStart'==_0x1b18ca['type']||'remove'==_0x96bccf&&'elementEnd'==_0x1b18ca['type'])continue;if(_0x49d1a4&&-0x1==_0x49d1a4['type']['indexOf']('Container')){'text'==_0x49d1a4['type']&&(_0x49d1a4[_0x96bccf]+='\x0a');continue;}let _0x2da3ab;if(_0x2da3ab='add'==_0x96bccf?_0x4725a7['nextSibling']&&!this['_schema']['isObject'](_0x4725a7['nextSibling'])?_0x4725a7['nextSibling']:null:_0x4725a7['previousSibling']&&!this['_schema']['isObject'](_0x4725a7['previousSibling'])?_0x4725a7['previousSibling']:null,_0x4725a7['isEmpty']||_0x2da3ab&&_0x2da3ab['isEmpty']){const _0x3b8ce3=_0x2da3ab&&_0x2da3ab['isEmpty']?_0x2da3ab:_0x4725a7;_0x49d1a4&&_0x49d1a4['type']==_0x96bccf+'EmptyContainer'&&_0x49d1a4['element']['name']==_0x3b8ce3['name']?_0x49d1a4['quantity']++:_0x4ec7f7['push']({'type':_0x96bccf+'EmptyContainer','element':_0x3b8ce3,'quantity':0x1});}else _0x4ec7f7['push']({'type':_0x96bccf+'Container','element':_0x4725a7});}}}}}['_resolveDescriptionItems'](_0x27ac6c){const _0x2d1bc5=this['_locale'],_0x18a4a4=[],_0x87645e=[],_0x54095b=[];for(const _0x4e422f of _0x27ac6c)switch(_0x4e422f['type']){case'text':if(_0x4e422f['add']=_0x4e422f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4e422f['remove']=_0x4e422f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4e422f['add']&&''!=_0x4e422f['remove']){_0x18a4a4['push']({'type':'replace','content':o(_0x2d1bc5,'REPLACE_TEXT',['\x22'+_0x4e422f['remove']+'\x22','\x22'+_0x4e422f['add']+'\x22'])});continue;}if(null!=_0x4e422f['add']['match'](/^ +$/)){_0x18a4a4['push']({'type':'insertion','content':o(_0x2d1bc5,'*Insert:*\x20%0',o(_0x2d1bc5,'ELEMENT_SPACE',_0x4e422f['add']['length']))});continue;}if(null!=_0x4e422f['remove']['match'](/^ +$/)){_0x18a4a4['push']({'type':'deletion','content':o(_0x2d1bc5,'*Remove:*\x20%0',o(_0x2d1bc5,'ELEMENT_SPACE',_0x4e422f['remove']['length']))});continue;}if(''!=_0x4e422f['add']){_0x18a4a4['push']({'type':'insertion','content':o(_0x2d1bc5,'*Insert:*\x20%0','\x22'+_0x4e422f['add']+'\x22')});continue;}_0x18a4a4['push']({'type':'deletion','content':o(_0x2d1bc5,'*Remove:*\x20%0','\x22'+_0x4e422f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x18a4a4['push']({'type':'insertion','content':o(_0x2d1bc5,'*Insert:*\x20%0',this['getItemLabel'](_0x4e422f['element'],_0x4e422f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x18a4a4['push']({'type':'deletion','content':o(_0x2d1bc5,'*Remove:*\x20%0',this['getItemLabel'](_0x4e422f['element'],_0x4e422f['quantity']))});continue;case'addContainer':_0x18a4a4['push']({'type':'insertion','content':o(_0x2d1bc5,'*Split:*\x20%0',this['getItemLabel'](_0x4e422f['element'],_0x4e422f['quantity']))});continue;case'removeContainer':_0x18a4a4['push']({'type':'deletion','content':o(_0x2d1bc5,'*Merge:*\x20%0',this['getItemLabel'](_0x4e422f['element'],_0x4e422f['quantity']))});continue;case'addFormat':_0x87645e['push'](_0x4e422f['key']);continue;case'removeFormat':_0x54095b['push'](_0x4e422f['key']);continue;default:_0x18a4a4['push'](_0x4e422f);}if(_0x87645e['length']){const _0x2bbec6=_0x87645e['map'](_0x263085=>this['_attributeLabels']['has'](_0x263085)?this['_attributeLabels']['get'](_0x263085):_0x263085)['join'](',\x20');_0x18a4a4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2bbec6)});}if(_0x54095b['length']){const _0x3d4b79=_0x54095b['map'](_0x5bff49=>this['_attributeLabels']['has'](_0x5bff49)?this['_attributeLabels']['get'](_0x5bff49):_0x5bff49)['join'](',\x20');_0x18a4a4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3d4b79)});}return _0x18a4a4;}['_handleCustomCallbackDescription'](_0x5af8be){for(const _0x57ab7a of this['_customCallbacks']){const _0x520ced=_0x57ab7a(_0x5af8be);if(_0x520ced&&'type'in _0x520ced)return _0x520ced;}}['_handleAttributeSuggestionDescription'](_0x4b3097,_0x3a3c33){const _0x4ae32b=_0x3a3c33['data'],_0x35eed9=void 0x0===_0x4ae32b['newValue']?'removeFormat':'addFormat';_0x4b3097['push']({'type':_0x35eed9,'key':_0x4ae32b['key']});}['_handleRenameSuggestionDescription'](_0x501a02,_0x41d358){_0x501a02['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x41d358['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4c2b54,_0x44a71d,_0x22fe68){if(this['_addDescriptionItems'](_0x4c2b54,_0x44a71d),_0x22fe68&&_0x22fe68['getFirstRange']()&&!_0x44a71d['getFirstRange']()['end']['isEqual'](_0x22fe68['getFirstRange']()['start'])){const _0x8030b=_0x4c2b54[_0x4c2b54['length']-0x1],_0x39de73='insertion'==_0x44a71d['type']?'add':'remove';_0x8030b&&'text'==_0x8030b['type']&&(_0x8030b[_0x39de73]+='\x0a');}}}class V extends _0x3ba5c8{['afterInit'](){const _0x18ff08=this['editor'],_0x1d077c=_0x18ff08['plugins']['get']('TrackChangesEditing');_0x18ff08['commands']['get']('showAIAssistant')&&_0x1d077c['enableCommand']('showAIAssistant');}}class U extends _0x3ba5c8{['afterInit'](){const _0x224521=this['editor'],_0x4a7808=_0x224521['locale'];if(!_0x224521['plugins']['has']('AlignmentEditing'))return;const _0xf4ce1a=_0x224521['plugins']['get']('TrackChangesEditing');_0xf4ce1a['enableDefaultAttributesIntegration']('alignment'),_0xf4ce1a['registerBlockAttribute']('alignment'),_0xf4ce1a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4a7808,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4deff1=this['editor'],_0x14f503=_0x4deff1['locale'];_0x4deff1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2391bf=>{if('formatBlock'!=_0x2391bf['type'])return;const {data:_0x2bb46d}=_0x2391bf;if(_0x2bb46d&&'alignment'==_0x2bb46d['commandName']){const _0x42dd6c=_0x2bb46d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x14f503,'*Format:*\x20%0',function(_0x1cdbe3){switch(_0x1cdbe3){case'left':return o(_0x14f503,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x14f503,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x14f503,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x14f503,'FORMAT_JUSTIFY_TEXT');}}(_0x42dd6c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3ba5c8{['afterInit'](){const _0x115f5a=this['editor'],_0x271591=_0x115f5a['plugins']['get']('TrackChangesEditing'),_0x5b91d4=_0x115f5a['locale'];for(const _0x461603 of ti){if(!_0x115f5a['plugins']['has'](_0x461603))continue;const _0x21097d=_0x461603['slice'](0x0,-0x7)['toLowerCase'](),_0x173844='FORMAT_'+_0x21097d['toUpperCase']();_0x271591['enableDefaultAttributesIntegration'](_0x21097d),_0x271591['registerInlineAttribute'](_0x21097d),_0x271591['descriptionFactory']['registerAttributeLabel'](_0x21097d,o(_0x5b91d4,_0x173844));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x380c1d=this['editor'],_0x70713f=_0x380c1d['locale'],_0x28ca67=_0x380c1d['plugins']['get']('TrackChangesEditing');function _0xfda594(_0x500a4c,_0xd4b9ca){_0x28ca67['descriptionFactory']['registerDescriptionCallback'](_0xf6b076=>{if('formatInline'!=_0xf6b076['type'])return;const {data:_0xf485e8}=_0xf6b076;return _0xf485e8&&_0xf485e8['commandName']===_0x500a4c?_0xf485e8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x70713f,'*Format:*\x20%0',_0xd4b9ca)}:{'type':'format','content':o(_0x70713f,'*Remove\x20format:*\x20%0',_0xd4b9ca)}:void 0x0;});}_0xfda594('bold',o(_0x70713f,'FORMAT_BOLD')),_0xfda594('italic',o(_0x70713f,'FORMAT_ITALIC')),_0xfda594('underline',o(_0x70713f,'FORMAT_UNDERLINE')),_0xfda594('code',o(_0x70713f,'FORMAT_CODE')),_0xfda594('strikethrough',o(_0x70713f,'FORMAT_STRIKETHROUGH')),_0xfda594('subscript',o(_0x70713f,'FORMAT_SUBSCRIPT')),_0xfda594('superscript',o(_0x70713f,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3ba5c8{['afterInit'](){const _0x508ad4=this['editor'],_0x128ec3=_0x508ad4['locale'];if(!_0x508ad4['plugins']['has']('BlockQuoteEditing'))return;const _0x16fba7=_0x508ad4['plugins']['get']('TrackChangesEditing'),_0x1bebdb=this['editor']['commands']['get']('blockQuote');_0x16fba7['enableCommand']('blockQuote',(_0x15e142,_0x15aee3={})=>{const _0x26f68a=this['editor']['model']['document']['selection'],_0x289adc=_0x15aee3&&void 0x0!==_0x15aee3['forceValue']?_0x15aee3['forceValue']:!_0x1bebdb['value'];let _0x39a469=[];if(_0x289adc){const _0x3e2eb7=Array['from'](_0x26f68a['getSelectedBlocks']())['filter'](_0x2ca989=>oo(_0x2ca989)||function(_0x2739a1,_0x3a09ee){const _0x450c7c=_0x3a09ee['checkChild'](_0x2739a1['parent'],'blockQuote'),_0x526cff=_0x3a09ee['checkChild'](['$root','blockQuote'],_0x2739a1);return _0x450c7c&&_0x526cff;}(_0x2ca989,this['editor']['model']['schema']));_0x39a469=to(_0x3e2eb7,_0x508ad4['model']);}else{const _0x266381=Array['from'](_0x26f68a['getSelectedBlocks']())['filter'](_0x2aa842=>oo(_0x2aa842));_0x39a469=to(_0x266381,_0x508ad4['model']);}_0x508ad4['model']['change'](()=>{for(const _0x506da9 of _0x39a469)_0x16fba7['markBlockFormat'](_0x506da9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x289adc}]});});}),_0x16fba7['descriptionFactory']['registerDescriptionCallback'](_0x15be77=>{const {data:_0x33c636}=_0x15be77;if(_0x33c636&&'blockQuote'==_0x33c636['commandName']){const _0x3ed15d=o(_0x128ec3,'ELEMENT_BLOCK_QUOTE');return _0x33c636['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x128ec3,'*Set\x20format:*\x20%0',_0x3ed15d)}:{'type':'format','content':o(_0x128ec3,'*Remove\x20format:*\x20%0',_0x3ed15d)};}});}}function oo(_0x2e74fe){return'blockQuote'==_0x2e74fe['parent']['name'];}class L extends _0x3ba5c8{['afterInit'](){const _0x262655=this['editor'];_0x262655['plugins']['has']('CaseChange')&&(_0x262655['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x262655['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x262655['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3ba5c8{['afterInit'](){const _0x14321f=this['editor'];_0x14321f['commands']['get']('ckbox')&&_0x14321f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3ba5c8{['afterInit'](){const _0xc2a875=this['editor'];if(!_0xc2a875['plugins']['has']('CodeBlock'))return;const _0x5936ad=_0xc2a875['plugins']['get']('TrackChangesEditing'),_0x46b326=_0xc2a875['locale'],_0x391023=_0xc2a875['config']['get']('codeBlock')['languages'],_0x20e5e8=_0xc2a875['commands']['get']('codeBlock');_0x5936ad['enableCommand']('indentCodeBlock'),_0x5936ad['enableCommand']('outdentCodeBlock'),_0x5936ad['enableCommand']('codeBlock',(_0x4685bd,_0xb9eff9={})=>{const _0x178282=_0xc2a875['model'],_0x422d37=_0xc2a875['model']['document']['selection'],_0x3b8921=_0xb9eff9&&void 0x0!==_0xb9eff9['forceValue']?_0xb9eff9['forceValue']:!_0x20e5e8['value'];let _0x548ed4;_0xb9eff9['language']||(_0xb9eff9['language']=_0x391023[0x0]['language']),_0x548ed4=_0x3b8921?Array['from'](_0x422d37['getSelectedBlocks']())['filter'](_0x5ba5a7=>eo(_0x5ba5a7)||function(_0x4bfdfe,_0x5cbe18){if(_0x4bfdfe['is']('rootElement')||_0x5cbe18['isLimit'](_0x4bfdfe))return!0x1;return _0x5cbe18['checkChild'](_0x4bfdfe['parent'],'codeBlock');}(_0x5ba5a7,_0x178282['schema'])):Array['from'](_0x422d37['getSelectedBlocks']())['filter'](_0x513eaf=>eo(_0x513eaf));const _0x478270=to(_0x548ed4,_0x178282);_0x178282['change'](()=>{for(const _0x4e7aa4 of _0x478270)_0x5936ad['markBlockFormat'](_0x4e7aa4,{'commandName':'codeBlock','commandParams':[{..._0xb9eff9,'forceValue':_0x3b8921}],'formatGroupId':'blockName'});});}),(_0x5936ad['descriptionFactory']['registerElementLabel']('codeBlock',_0x48bec8=>o(_0x46b326,'ELEMENT_CODE_BLOCK',_0x48bec8)),_0x5936ad['descriptionFactory']['registerDescriptionCallback'](_0x22a615=>{if('formatBlock'!=_0x22a615['type'])return;const _0x1753d2=_0x46b326['t'],{data:_0x4e9cd3}=_0x22a615;if(!_0x4e9cd3||'codeBlock'!=_0x4e9cd3['commandName'])return;const _0x220a0d=_0x4e9cd3['commandParams'][0x0]['language'],_0x4aae0c=_0x1753d2(_0x391023['find'](_0x25d539=>_0x25d539['language']===_0x220a0d)['label'])['toLowerCase']();return _0x4e9cd3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46b326,'*Set\x20format:*\x20%0',o(_0x46b326,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4aae0c+')')}:{'type':'format','content':o(_0x46b326,'*Remove\x20format:*\x20%0',o(_0x46b326,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x506f04){return'codeBlock'==_0x506f04['name'];}class q extends _0x3ba5c8{['afterInit'](){const _0x693c8a=this['editor'];if(!_0x693c8a['plugins']['has']('CommentsEditing'))return;_0x693c8a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5481c6,_0x4e25bb,_0x5a716e){const _0xf756ec=[];for(const _0x1d306b of _0x4e25bb['getItems']())_0x1d306b['hasAttribute'](_0x5481c6)&&_0xf756ec['push'](_0x5a716e['createRangeOn'](_0x1d306b));return _0xf756ec;}function _e(_0x5d7aba,_0x2ae063,{showActiveMarker:_0x3c4c6a=!0x0}={}){const _0x1117f0=_0x5d7aba['plugins']['get']('TrackChangesEditing');return(_0x531f8a,_0x4ed63f,_0x20ccc8)=>{if(!_0x20ccc8['consumable']['test'](_0x4ed63f['markerRange'],_0x531f8a['name']))return;const _0xa20bda=_0x4ed63f['markerRange']['getWalker'](),_0x5a8227=_0x4ed63f['markerRange']['start'],_0x2bbf25=_0x5d7aba['model']['schema'];let _0x155f22=null,_0x346b27=null,_0x556c2d=!0x1,_0x357bea=!0x1;for(const _0x367df9 of _0xa20bda){const _0x35fe14=_0x367df9['item'];_0x556c2d=_0x556c2d||_0x2bbf25['isContent'](_0x35fe14);const _0x8a66e2=_0x20ccc8['mapper']['toViewElement'](_0x35fe14);if(_0x8a66e2&&_0x8a66e2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x367df9['type']&&(_0x2bbf25['isBlock'](_0x35fe14)&&!_0x2bbf25['isLimit'](_0x35fe14)&&(_0x35fe14['nextSibling']||_0x5a8227['isAtEnd']?_0x155f22&&_0x155f22['parent']==_0x35fe14||(_0x155f22=_0x35fe14,_0x95f9a9(_0x367df9['previousPosition']),_0x357bea=!0x0):_0x346b27=_0x346b27||_0x367df9['previousPosition']));}function _0x95f9a9(_0x230a44){const {authorId:_0x13f881}=_0x1117f0['_splitMarkerName'](_0x4ed63f['markerName']),_0x3a8820=_0x20ccc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ae063,'data-author-id':_0x13f881}),_0x4af086=_0x20ccc8['mapper']['toViewPosition'](_0x230a44);_0x3c4c6a&&_0x1117f0['activeMarkers']['includes'](_0x4ed63f['markerName'])&&_0x20ccc8['writer']['addClass']('ck-suggestion-marker--active',_0x3a8820),_0x20ccc8['writer']['insert'](_0x4af086,_0x3a8820),_0x20ccc8['mapper']['bindElementToMarker'](_0x3a8820,_0x4ed63f['markerName']);}_0x556c2d||_0x357bea||!_0x346b27||_0x95f9a9(_0x346b27);};}class z extends _0x3ba5c8{static get['requires'](){return[_0x5e160b];}['init'](){const _0x535521=this['editor'],_0x288ad6=_0x535521['plugins']['get']('TrackChangesEditing');_0x288ad6['enableCommand']('delete');const _0x4eec14=_0x535521['commands']['get']('deleteForward');_0x288ad6['enableCommand']('deleteForward',(_0x17b891,_0x52dcc0={})=>{const _0x170a79=_0x535521['model']['createSelection'](_0x535521['model']['document']['selection']);_0x170a79['isCollapsed']&&_0x535521['model']['modifySelection'](_0x170a79,{'direction':'forward','unit':_0x52dcc0['unit']});const _0xa0d55e=_0x170a79['getFirstRange'](),_0x439f92=_0xe77a90['fromRange'](_0xa0d55e);let _0x3b03fd;_0x17b891(_0x52dcc0),_0x3b03fd='$graveyard'==_0x439f92['root']['rootName']?_0x535521['model']['createRange'](_0xa0d55e['start']):_0x535521['model']['createRange'](_0x439f92['start'],_0x439f92['end']),_0x439f92['detach'](),_0x535521['model']['enqueueChange'](_0x4eec14['buffer']['batch'],_0x3750ee=>{_0x4eec14['buffer']['lock'](),_0x3750ee['setSelection'](_0x3750ee['createRange'](_0x3b03fd['end'])),_0x4eec14['buffer']['unlock']();});}),_0x535521['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x535521,'merge'),{'priority':'high'}),_0x535521['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x313291,_0x1f7652,_0x1d947e)=>{_0x1d947e['options']['showSuggestionHighlights']&&_e(_0x535521,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x313291,_0x1f7652,_0x1d947e);},{'priority':'high'}),_0x535521['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2bc69d,_0x4da8a9,_0x2515e6)=>{const _0x16d6de=_0x2515e6['mapper']['markerNameToElements'](_0x4da8a9['markerName']);if(_0x16d6de){for(const _0x4f2cba of _0x16d6de)_0x4f2cba['is']('uiElement')&&(_0x2515e6['mapper']['unbindElementFromMarkerName'](_0x4f2cba,_0x4da8a9['markerName']),_0x2515e6['writer']['remove'](_0x4f2cba));}},{'priority':'high'});}}class K extends _0x3ba5c8{['afterInit'](){const _0x196d26=this['editor'];if(!_0x196d26['plugins']['has']('ListEditing'))return;const _0x19f39d=_0x196d26['locale'],_0xc06105=_0x196d26['plugins']['get']('TrackChangesEditing'),_0x4adcf8=_0x196d26['plugins']['has']('TodoListEditing'),_0x41a00c=!!_0x196d26['config']['get']('list.multiBlock');function _0x5864e4(_0x55437d){return{'type':'format','content':''+o(_0x19f39d,'*Set\x20format:*\x20%0',_0x55437d)};}function _0x4be15e(_0x3140e7){return{'type':'format','content':''+o(_0x19f39d,'*Remove\x20format:*\x20%0',_0x3140e7)};}_0xc06105['enableDefaultAttributesIntegration']('numberedList'),_0xc06105['enableDefaultAttributesIntegration']('bulletedList'),_0xc06105['enableDefaultAttributesIntegration']('customNumberedList'),_0xc06105['enableDefaultAttributesIntegration']('customBulletedList'),_0xc06105['enableDefaultAttributesIntegration']('indentList'),_0xc06105['enableDefaultAttributesIntegration']('outdentList'),_0xc06105['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xc06105['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xc06105['registerBlockAttribute']('listItemId'),_0xc06105['registerBlockAttribute']('listType'),_0xc06105['registerBlockAttribute']('listIndent'),_0x41a00c&&(_0xc06105['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xc06105['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4adcf8&&(_0xc06105['enableDefaultAttributesIntegration']('todoList'),_0xc06105['enableDefaultAttributesIntegration']('checkTodoList'),_0xc06105['registerBlockAttribute']('todoListChecked'),_0xc06105['descriptionFactory']['registerDescriptionCallback'](_0x4c5a78=>{const {data:_0x3aeec6}=_0x4c5a78;if(_0x3aeec6&&'todoListChecked'==_0x3aeec6['key'])return{'type':'format','content':_0x3aeec6['newValue']?o(_0x19f39d,'*Check\x20item*'):o(_0x19f39d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a2458=>{if(_0x4a2458['batch']['isUndo'])return!0x1;let _0xfc8f5b=!0x1;const _0x3a8e99=_0xc06105['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x394236=>'todoListChecked'===_0xc06105['_getAttributeKey'](_0x394236));for(const _0x2604bb of _0x3a8e99){'todo'!=_0x2604bb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xc06105['_findSuggestions'](_0x2604bb['getFirstRange'](),'attribute')['find'](_0x154695=>'listType'===_0xc06105['_getAttributeKey'](_0x154695['suggestion']))||(_0x4a2458['removeMarker'](_0x2604bb['getFirstMarker']()),_0xfc8f5b=!0x0));}return _0xfc8f5b;})),_0xc06105['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x19f39d,'FORMAT_INDENT'));const _0x3d12bd={'type':'format','content':''};_0xc06105['descriptionFactory']['registerDescriptionCallback'](_0x44721b=>{const {data:_0x40a954}=_0x44721b;if(!_0x40a954||'listType'!=_0x40a954['key'])return;let _0x570d4b=_0x44721b['head'];for(;_0x570d4b;){if(_0x570d4b['data']&&(('listStyle'==_0x570d4b['data']['key']||'listMarkerStyle'==_0x570d4b['data']['key'])&&(_0x570d4b['data']['newValue']&&'default'!=_0x570d4b['data']['newValue']||'default'!=_0x570d4b['data']['oldValue']&&!_0x40a954['newValue'])||!_0x41a00c&&_0x570d4b['data']['key']==m))return _0x3d12bd;_0x570d4b=_0x570d4b['next'];}if(null==_0x40a954['newValue'])switch(_0x40a954['oldValue']){case'bulleted':return _0x4be15e(o(_0x19f39d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4be15e(o(_0x19f39d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4be15e(o(_0x19f39d,'ELEMENT_TODO_LIST'));}switch(_0x40a954['newValue']){case'bulleted':return _0x5864e4(o(_0x19f39d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5864e4(o(_0x19f39d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5864e4(o(_0x19f39d,'ELEMENT_TODO_LIST'));}}),_0xc06105['descriptionFactory']['registerDescriptionCallback'](_0x10228f=>{const {data:_0x1fb062}=_0x10228f;if(_0x1fb062&&'listIndent'==_0x1fb062['key'])return null==_0x1fb062['newValue']||null==_0x1fb062['oldValue']&&0x0==_0x1fb062['newValue']?_0x3d12bd:void 0x0;}),_0xc06105['descriptionFactory']['registerDescriptionCallback'](_0x55bd29=>{if('attribute'!=_0x55bd29['type'])return;const {data:_0x1c3c5b}=_0x55bd29;if(!_0x1c3c5b||'listItemId'!=_0x1c3c5b['key'])return;const _0x23aba4=Ee(_0x55bd29);return'newValue'==_0x23aba4?{'type':'format','content':o(_0x19f39d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x23aba4?{'type':'format','content':o(_0x19f39d,'*Split:*\x20list\x20item')}:_0x3d12bd;}),_0x196d26['model']['document']['registerPostFixer'](_0x2592da=>this['listItemIdFixer'](_0x2592da)),_0x196d26['model']['document']['registerPostFixer'](_0x8bf0b2=>this['noTrackChangesFixer'](_0x8bf0b2)),_0x196d26['model']['document']['on']('change:data',(_0xb6f48b,_0x268bf5)=>{if(_0x268bf5['isUndo']||!_0x268bf5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4d2853){if(_0x4d2853['batch']['isUndo']||!_0x4d2853['batch']['isLocal'])return!0x1;let _0x490dac=!0x1;const _0x128048=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57963e=>_0x57963e['data']&&'listItemId'==_0x57963e['data']['key'])['filter'](_0x4834aa=>_0x4834aa['data']['newValue']&&_0x4834aa['data']['oldValue']);for(const _0x111940 of _0x128048)Ee(_0x111940)||(_0x4d2853['removeMarker'](_0x111940['getFirstMarker']()),_0x490dac=!0x0);return _0x490dac;}['noTrackChangesFixer'](_0x7021e6){if(_0x7021e6['batch']['isUndo']||!_0x7021e6['batch']['isLocal'])return!0x1;const _0x48353f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x48353f['trackChangesCommand']['value'])return!0x1;let _0x2d6f33=!0x1;const _0x180180=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1235b2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5e3fe0=>'attribute'==_0x5e3fe0['type'])['filter'](_0x2153f8=>_0x180180['includes'](_0x2153f8['attributeKey']));if(0x0==_0x1235b2['length'])return _0x2d6f33;for(const _0x978fef of _0x1235b2){const _0x29337a=_0x48353f['_findSuggestions'](_0x978fef['range'],'attribute')['filter'](_0x226c27=>!_0x226c27['meta']['isNextTo'])['map'](_0x8b4bf8=>_0x8b4bf8['suggestion'])['filter'](_0x127d01=>{const _0x285dc5=_0x48353f['_getAttributeKey'](_0x127d01);return _0x180180['includes'](_0x285dc5);});if(_0x29337a['length']){for(const _0x43508f of _0x29337a)_0x7021e6['removeMarker'](_0x43508f['getFirstMarker']());_0x2d6f33=!0x0;}}return _0x2d6f33;}['assureChains'](){const _0x422c8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35ee07=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3259e6;const _0x2472e0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x276302=>{if(_0x276302['data']['oldRange']||!_0x276302['data']['newRange'])return null;if(!_0x276302['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3942a3}=_0x422c8c['_splitMarkerName'](_0x276302['name']);if(!_0x422c8c['hasSuggestion'](_0x3942a3))return null;const _0x81defc=_0x422c8c['getSuggestion'](_0x3942a3);return _0x35ee07['includes'](_0x81defc['data']['key']);})['map'](_0x403a3a=>{const {id:_0x1b9758}=_0x422c8c['_splitMarkerName'](_0x403a3a['name']),_0x217fff=_0x422c8c['getSuggestion'](_0x1b9758);return _0x3259e6=_0x217fff['attributes']['groupId'],_0x217fff['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2472e0['size'])return;const _0x22ca18=_0x422c8c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41ab1e=>'attribute'==_0x41ab1e['type']&&_0x41ab1e['data']&&_0x35ee07['includes'](_0x41ab1e['data']['key'])&&_0x41ab1e['attributes']['groupId']!=_0x3259e6)['map'](_0x4b5e96=>({'listItem':_0x4b5e96['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4b5e96['attributes']['groupId']})),_0x6f6ce=new Set();for(const {groupId:_0x25b9b1,listItem:_0x187486}of _0x22ca18)_0x2472e0['has'](_0x187486)&&_0x6f6ce['add'](_0x25b9b1);for(const _0x3a50bb of _0x422c8c['getSuggestions']())_0x6f6ce['has'](_0x3a50bb['attributes']['groupId'])&&_0x3a50bb['setAttribute']('groupId',_0x3259e6);}['_supportLegacySuggestions'](){const _0x151ea5=this['editor'],_0x3fa1bd=_0x151ea5['locale'],_0x3ea13e=_0x151ea5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3ea13e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x12ec0f,_0x41264){const _0x818136=[];for(let _0x4858d2 of _0x12ec0f)_0x4858d2['start']['nodeAfter']===_0x4858d2['end']['parent']&&(_0x4858d2=_0x151ea5['model']['createRange'](_0x151ea5['model']['createPositionAt'](_0x4858d2['start']['nodeAfter'],0x0))),_0x818136['push'](_0x4858d2);_0x151ea5['model']['change'](_0x1a43ae=>{const _0x59e3d0=_0x151ea5['model']['document']['selection'],_0x3d3301=Array['from'](_0x59e3d0['getRanges']())['map'](_0x1937fe=>_0xe77a90['fromRange'](_0x1937fe));_0x1a43ae['setSelection'](_0x818136),_0x151ea5['commands']['get'](_0x41264['commandName'])['refresh'](),_0x41264['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x151ea5['execute'](_0x41264['commandName'],..._0x41264['commandParams']),_0x1a43ae['setSelection'](_0x3d3301);for(const _0x23660b of _0x3d3301)_0x23660b['detach']();});}),_0x3ea13e['descriptionFactory']['registerElementLabel'](function(_0x405b91){const _0x532df0=!_0x151ea5['model']['schema']['isObject'](_0x405b91),_0x31d6da=_0x405b91['previousSibling'],_0x4221bd=_0x405b91['nextSibling'],_0x55933e=_0x405b91['getAttribute']('listItemId'),_0x50b2d2=!_0x31d6da||_0x31d6da['getAttribute']('listItemId')!==_0x55933e,_0x57190e=!_0x4221bd||_0x4221bd['getAttribute']('listItemId')!==_0x55933e;return _0x532df0&&Boolean(_0x55933e)&&_0x50b2d2&&_0x57190e;},_0x5c4518=>o(_0x3fa1bd,'ELEMENT_LIST_ITEM',_0x5c4518));}['_registerLegacyDescription'](){const _0x5c59e2=this['editor'],_0x2e718a=_0x5c59e2['locale'];function _0x59e588(_0x5982e7){const _0x1a1c43=_0x5c59e2['commands']['get']('bulletedList')['value'],_0x41b75d=_0x5c59e2['commands']['get']('numberedList')['value'];return'numberedList'===_0x5982e7?_0x1a1c43:_0x41b75d;}_0x5c59e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x12582d){if('formatBlock'!=_0x12582d['type'])return;const {data:_0x1f9d24}=_0x12582d;if(!_0x1f9d24)return;let _0x374290,_0x4b498e,_0xb58fd6,_0x502da7;switch(_0x1f9d24['commandName']){case'bulletedList':_0xb58fd6=_0x1f9d24['commandParams'][0x0]['forceValue'],_0x502da7=_0x59e588(_0x1f9d24['commandName']),_0x374290=_0xb58fd6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x502da7&&_0x5c59e2['config']['get']('list.multiBlock')||(_0x374290='*Change\x20to:*\x20%0'),_0x4b498e={'type':'format','content':o(_0x2e718a,_0x374290,o(_0x2e718a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xb58fd6=_0x1f9d24['commandParams'][0x0]['forceValue'],_0x502da7=_0x59e588(_0x1f9d24['commandName']),_0x374290=_0xb58fd6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x502da7&&_0x5c59e2['config']['get']('list.multiBlock')||(_0x374290='*Change\x20to:*\x20%0'),_0x4b498e={'type':'format','content':o(_0x2e718a,_0x374290,o(_0x2e718a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x374290='*Indent:*\x20%0',_0x4b498e={'type':'format','content':o(_0x2e718a,_0x374290,o(_0x2e718a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x374290=function(_0x4925ce){const _0x13b120=_0x4925ce['getFirstRange']();let _0x5e4ec1=_0x13b120['start']['nodeAfter'];for(;_0x5e4ec1&&_0x13b120['containsItem'](_0x5e4ec1);){if(_0x5e4ec1['getAttribute']('listIndent')>0x0)return!0x1;_0x5e4ec1=_0x5e4ec1['nextSibling'];}return!0x0;}(_0x12582d)?o(_0x2e718a,'*Format:*\x20remove\x20from\x20%0',o(_0x2e718a,function(_0x2668f0){return'ELEMENT_'+_0x2668f0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x12582d))):o(_0x2e718a,'*Outdent:*\x20%0',o(_0x2e718a,'ELEMENT_LIST_ITEM')),_0x4b498e={'type':'format','content':_0x374290};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1f9d24['multipleBlocks']&&(_0x374290='*Merge:*\x20%0',_0x4b498e={'type':'deletion','content':o(_0x2e718a,_0x374290,o(_0x2e718a,'ELEMENT_LIST_ITEM'))});}return _0x4b498e;});}}function Ee(_0x225778){let _0x2d345e=_0x225778['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2d345e;){const _0x5841c6=_0x2d345e['getAttribute']('listItemId');if(!_0x5841c6)return!0x1;if(_0x5841c6==_0x225778['data']['newValue'])return'newValue';if(_0x5841c6==_0x225778['data']['oldValue'])return'oldValue';_0x2d345e=_0x2d345e['previousSibling'];}return!0x1;}class pe extends _0x3ba5c8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x51e094=this['editor']['config']['get']('list.properties'),_0x294db4=this['editor']['plugins']['get']('TrackChangesEditing');_0x51e094['styles']&&(_0x294db4['enableDefaultAttributesIntegration']('listStyle'),_0x294db4['registerBlockAttribute']('listStyle')),_0x51e094['reversed']&&(_0x294db4['enableDefaultAttributesIntegration']('listReversed'),_0x294db4['registerBlockAttribute']('listReversed')),_0x51e094['startIndex']&&(_0x294db4['enableDefaultAttributesIntegration']('listStart'),_0x294db4['registerBlockAttribute']('listStart'));const _0x25e980={'type':'format','content':''};_0x294db4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x390185=this['editor']['locale'];_0x294db4['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x390185,'FORMAT_LIST_REVERSED')),_0x294db4['descriptionFactory']['registerDescriptionCallback'](_0x37e390=>{const {data:_0x48e193}=_0x37e390;if(_0x48e193&&'listReversed'==_0x48e193['key'])return null==_0x48e193['newValue']||0x0==_0x48e193['newValue']&&null==_0x48e193['oldValue']?_0x25e980:void 0x0;}),_0x294db4['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x390185,'FORMAT_LIST_START')),_0x294db4['descriptionFactory']['registerDescriptionCallback'](_0x2b80fb=>{const {data:_0xb756cd}=_0x2b80fb;if(_0xb756cd&&'listStart'==_0xb756cd['key'])return null==_0xb756cd['newValue']||0x1==_0xb756cd['newValue']&&null==_0xb756cd['oldValue']?_0x25e980:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d443e=>{if(_0x5d443e['batch']['isUndo'])return!0x1;let _0x1904fe=!0x1;const _0x29affe=_0x294db4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55b157=>{const _0xe320cb=_0x294db4['_getAttributeKey'](_0x55b157);return'listStart'==_0xe320cb||'listReversed'==_0xe320cb;});for(const _0xb27ae6 of _0x29affe){const _0x3502dd=_0xb27ae6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3502dd||'customNumbered'==_0x3502dd)continue;_0x294db4['_findSuggestions'](_0xb27ae6['getFirstRange'](),'attribute')['find'](_0xac0dd3=>'listType'==_0x294db4['_getAttributeKey'](_0xac0dd3['suggestion']))||(_0x5d443e['removeMarker'](_0xb27ae6['getFirstMarker']()),_0x1904fe=!0x0);}return _0x1904fe;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58a02b){const _0x15ba29=this['editor']['locale'],{data:_0x5f336a}=_0x58a02b,_0x5ef0a2={'type':'format','content':''};if(!_0x5f336a||'listStyle'!=_0x5f336a['key'])return;if(!_0x5f336a['oldValue'])return'default'==_0x5f336a['newValue']?_0x5ef0a2:{'type':'format','content':''+o(_0x15ba29,'*Set\x20format:*\x20%0',o(_0x15ba29,this['_getTranslationKeyForListStyle'](_0x5f336a['newValue'])))};if(!_0x5f336a['newValue']){if('default'==_0x5f336a['oldValue'])return _0x5ef0a2;let _0xbeba84=_0x58a02b['head'];for(;_0xbeba84;){if(_0xbeba84['data']&&'listType'==_0xbeba84['data']['key']&&_0xbeba84['data']['newValue'])return _0x5ef0a2;_0xbeba84=_0xbeba84['next'];}return{'type':'format','content':''+o(_0x15ba29,'*Remove\x20format:*\x20%0',o(_0x15ba29,this['_getTranslationKeyForListStyle'](_0x5f336a['oldValue'])))};}if('default'!=_0x5f336a['newValue'])return{'type':'format','content':''+o(_0x15ba29,'*Set\x20format:*\x20%0',o(_0x15ba29,this['_getTranslationKeyForListStyle'](_0x5f336a['newValue'])))};let _0x3fb302=_0x58a02b['head'];for(;_0x3fb302;){if(_0x3fb302['data']&&'listType'==_0x3fb302['data']['key']&&_0x3fb302['data']['newValue']&&_0x3fb302['data']['oldValue'])return _0x5ef0a2;_0x3fb302=_0x3fb302['next'];}return{'type':'format','content':o(_0x15ba29,'*Set\x20format:*\x20%0',o(_0x15ba29,'ELEMENT_'+_0x58a02b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4c3e8b=this['editor'],_0x20ac00=_0x4c3e8b['locale'];_0x4c3e8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x586057=>{if('formatBlock'!=_0x586057['type'])return;const {data:_0x5beca5}=_0x586057;if(!_0x5beca5)return;let _0x1a04e0,_0x312fe8;switch(_0x5beca5['commandName']){case'listStyle':_0x1a04e0='*Change\x20to:*\x20%0',_0x312fe8={'type':'format','content':o(_0x20ac00,_0x1a04e0,o(_0x20ac00,this['_getTranslationKeyForListStyle'](_0x5beca5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1a04e0=_0x5beca5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x312fe8={'type':'format','content':o(_0x20ac00,_0x1a04e0)};break;case'listStart':_0x1a04e0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x312fe8={'type':'format','content':o(_0x20ac00,_0x1a04e0,_0x5beca5['commandParams'][0x0]['startIndex'])};}return _0x312fe8;});}['_getTranslationKeyForListStyle'](_0x5e5b14){return'ELEMENT_'+function(_0x18a811){if(ye['includes'](_0x18a811))return'bulleted';if(Se['includes'](_0x18a811))return'numbered';return null;}(_0x5e5b14)['toUpperCase']()+'_LIST_'+_0x5e5b14['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3ba5c8{static get['requires'](){return[_0x4ae047];}['init'](){const _0x179da0=this['editor'],_0x538034=_0x179da0['plugins']['get']('TrackChangesEditing'),_0x1a92e9=_0x179da0['commands']['get']('enter');_0x538034['enableCommand']('enter',()=>{_0x179da0['model']['change'](_0x263cd3=>{const _0x3b5c8f=_0x179da0['model']['document']['selection'],_0x5de3b7=_0x3b5c8f['getFirstPosition'](),_0x187317=_0xe77a90['fromRange'](_0x3b5c8f['getFirstRange']());if(_0x1a92e9['enterBlock'](_0x263cd3)){const _0xd79a13=_0x179da0['model']['createPositionAt'](_0x5de3b7['parent']['nextSibling'],0x0),_0x176cd6=_0x263cd3['createRange'](_0x5de3b7,_0xd79a13);_0x538034['markInsertion'](_0x176cd6);}else _0x263cd3['setSelection'](_0x263cd3['createRange'](_0x187317['end']));_0x187317['detach'](),_0x1a92e9['fire']('afterExecute',{'writer':_0x263cd3});});}),_0x179da0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x179da0,'split'),{'priority':'high'}),_0x179da0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1ae5ec,_0x2ecb0d,_0x57398f)=>{const _0x300fdf=_0x57398f['mapper']['markerNameToElements'](_0x2ecb0d['markerName']);if(_0x300fdf){for(const _0xa5d808 of _0x300fdf)_0xa5d808['hasClass']('ck-suggestion-marker-split')&&(_0x57398f['mapper']['unbindElementFromMarkerName'](_0xa5d808,_0x2ecb0d['markerName']),_0x57398f['writer']['remove'](_0xa5d808));}},{'priority':'high'}),_0x179da0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2ffd54,_0x58c4fd,_0x298949)=>{_0x298949['options']['showSuggestionHighlights']&&_e(_0x179da0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2ffd54,_0x58c4fd,_0x298949);},{'priority':'high'});}}class X extends _0x3ba5c8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x376f8d=this['editor']['plugins']['get']('TrackChangesEditing');_0x376f8d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x376f8d['enableCommand']('findNext'),_0x376f8d['enableCommand']('findPrevious'),_0x376f8d['enableCommand']('replace'),_0x376f8d['enableCommand']('replaceAll');}['handleFindCommand'](_0x498e96,_0x285685,_0x592f6d={}){const _0x5dffa4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x498e96(_0xe72073=>{let _0xe5d6c9=('string'==typeof _0x285685?_0x5dffa4['findByTextCallback'](_0x285685,_0x592f6d):_0x285685)(_0xe72073);Array['isArray'](_0xe5d6c9)&&(_0xe5d6c9={'results':_0xe5d6c9,'searchText':'string'==typeof _0x285685?_0x285685:''});const _0x1aaa41=_0xe5d6c9['results']['filter'](_0x1155dc=>!0x1===this['_isInDeletionRange'](_0x1155dc,_0xe72073['item']));return{..._0xe5d6c9,'results':_0x1aaa41};},_0x592f6d);}['_isInDeletionRange'](_0x189d9f,_0xde18a1){const _0x134fac=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xde18a1,_0x189d9f['start']),this['editor']['model']['createPositionAt'](_0xde18a1,_0x189d9f['end']));for(const _0xdd17d8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x134fac['getIntersection'](_0xdd17d8['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 _0x3ba5c8{['afterInit'](){const _0x511d16=this['editor']['locale'],_0x2bb51c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5d6864,commandName:_0x4898b9}of ro)this['editor']['plugins']['has'](_0x5d6864)&&(_0x2bb51c['enableDefaultAttributesIntegration'](_0x4898b9),_0x2bb51c['registerInlineAttribute'](_0x4898b9));_0x2bb51c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x511d16,'FORMAT_FONT_SIZE')),_0x2bb51c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x511d16,'FORMAT_FONT_FAMILY')),_0x2bb51c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x511d16,'FORMAT_FONT_COLOR')),_0x2bb51c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x511d16,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f5dd4=this['editor'],_0x5b0698=_0x3f5dd4['locale'];_0x3f5dd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa0cec=>{const _0x1f94c5=_0x5b0698['t'];if('formatInline'!=_0xa0cec['type'])return;const {data:_0x484d99}=_0xa0cec;if(null!=_0x484d99){if('fontSize'==_0x484d99['commandName']){const _0x4310e0=_0x484d99['commandParams'][0x0]['value'];if(_0x4310e0){const _0x1a2954=_0x1f94c5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x500f27=>_0x500f27['model']==_0x4310e0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b0698,'*Set\x20font\x20size:*\x20%0',_0x1a2954)};}return{'type':'format','content':o(_0x5b0698,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x484d99['commandName']){const _0x854234=_0x484d99['commandParams'][0x0]['value'];return _0x854234?{'type':'format','content':o(_0x5b0698,'*Set\x20font\x20family:*\x20%0',_0x854234)}:{'type':'format','content':o(_0x5b0698,'*Reset\x20font\x20family*')};}if('fontColor'==_0x484d99['commandName']){const _0x4d99fd=_0x484d99['commandParams'][0x0]['value'];if(_0x4d99fd){const _0x8a90cd=_0xa099eb(this['editor']['config']['get']('fontColor.colors'))['find'](_0x13752f=>_0x13752f['model']==_0x4d99fd);let _0x3c0288=_0x4d99fd,_0x220143='';return _0x8a90cd&&(_0x3c0288=_0x8a90cd['label'],_0x220143=_0x1f94c5(_0x3c0288)['toLowerCase']()),{'type':'format','content':o(_0x5b0698,'*Set\x20font\x20color:*\x20%0',_0x220143)['trim'](),'color':{'value':_0x4d99fd,'title':_0x220143||_0x3c0288}};}return{'type':'format','content':o(_0x5b0698,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x484d99['commandName']){const _0x24181e=_0x484d99['commandParams'][0x0]['value'];if(_0x24181e){const _0xcc358c=_0xa099eb(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x18f9f8=>_0x18f9f8['model']==_0x24181e);let _0x1b8b09=_0x24181e,_0x9f5bae='';return _0xcc358c&&(_0x1b8b09=_0xcc358c['label'],_0x9f5bae=_0x1f94c5(_0x1b8b09)['toLowerCase']()),{'type':'format','content':o(_0x5b0698,'*Set\x20font\x20background\x20color:*\x20%0',_0x9f5bae)['trim'](),'color':{'value':_0x24181e,'title':_0x9f5bae||_0x1b8b09}};}return{'type':'format','content':o(_0x5b0698,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3ba5c8{['afterInit'](){const _0x470100=this['editor'],_0x1840e3=_0x470100['plugins']['get']('TrackChangesEditing'),_0x1f2e2f=_0x470100['commands']['get']('copyFormat'),_0x5172e5=_0x470100['commands']['get']('pasteFormat');_0x1f2e2f&&_0x5172e5&&(_0x1840e3['enableDefaultAttributesIntegration']('pasteFormat'),_0x1840e3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x25c2a1=this['editor'],_0x1b5aca=_0x25c2a1['locale'];_0x25c2a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ab2d5=>{if('formatBlock'!=_0x1ab2d5['type']&&'formatInline'!=_0x1ab2d5['type'])return;const {data:_0x54ed76}=_0x1ab2d5;if(_0x54ed76&&'pasteFormat'===_0x54ed76['commandName']){const _0x42928b=[],_0x52bd05=_0x54ed76['commandParams'][0x0];for(const [_0xe00099,_0x429411]of Object['entries'](_0x52bd05))_0x42928b['push'](so(_0x25c2a1,_0xe00099,_0x429411));return _0x42928b['length']?{'type':'format','content':o(_0x1b5aca,'*Set\x20format\x20to:*\x20%0',_0x42928b['join'](',\x20'))}:{'type':'format','content':o(_0x1b5aca,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1b26fd,_0x3541de,_0x155c20){const _0x3df13f=_0x1b26fd['locale']['t'],_0x47780d=_0x3541de['split'](/(?=[A-Z])/)['join']('\x20'),_0x1de0cc=_0x3df13f(_0x47780d['charAt'](0x0)['toUpperCase']()+_0x47780d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x155c20)return _0x1de0cc;if('fontColor'===_0x3541de||'fontBackgroundColor'===_0x3541de){const _0x262516=_0xa099eb(_0x1b26fd['config']['get']('fontColor.colors'))['find'](_0x205893=>_0x205893['model']==_0x155c20);return _0x1de0cc+'\x20('+(_0x262516?_0x3df13f(_0x262516['label'])['toLowerCase']():_0x155c20)+')';}if('fontSize'===_0x3541de&&isNaN(parseFloat(_0x155c20))){const _0x56d191=_0x1b26fd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b26fd['config']['get']('fontSize.options'))['find'](_0x2e1abf=>_0x2e1abf['model']==_0x155c20);return _0x1de0cc+'\x20('+(_0x56d191?_0x3df13f(_0x56d191['title'])['toLowerCase']():_0x155c20)+')';}return _0x1de0cc+'\x20('+_0x155c20+')';}class tt extends _0x3ba5c8{['_headingOptions'];['afterInit'](){const _0x4ee27f=this['editor'];if(!_0x4ee27f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ee27f['config']['get']('heading.options');const _0xb33023=_0x4ee27f['locale'],_0x30dc8f=_0x4ee27f['plugins']['get']('TrackChangesEditing');_0x30dc8f['enableDefaultAttributesIntegration']('heading');for(const _0x5450ce of this['_headingOptions'])'paragraph'!=_0x5450ce['model']&&_0x30dc8f['descriptionFactory']['registerElementLabel'](_0x5450ce['model'],_0x105615=>{const _0x2004ae=this['_getHeadingLevel'](_0x5450ce['model']);return null!==_0x2004ae?_0xe81afa(_0x105615,_0x2004ae):_0x286ff3(_0x105615,_0x5450ce['title']);});function _0xe81afa(_0x2febc1,_0x188400){return o(_0xb33023,'ELEMENT_HEADING',[_0x2febc1,_0x188400]);}function _0x286ff3(_0x2c52f7,_0x4f950e){return o(_0xb33023,'ELEMENT_HEADING_CUSTOM',[_0x2c52f7,_0x4f950e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36cfbc=this['editor'],_0x4bb147=_0x36cfbc['locale'];function _0x50a8a4(_0x68c2e,_0x349b4a){return o(_0x4bb147,'ELEMENT_HEADING_CUSTOM',[_0x68c2e,_0x349b4a]);}_0x36cfbc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35e0ed=>{if('formatBlock'!=_0x35e0ed['type'])return;const {data:_0x17cc9c}=_0x35e0ed;if(_0x17cc9c&&'heading'==_0x17cc9c['commandName']){const _0x39c4fa=_0x17cc9c['commandParams'][0x0]['value'],_0x2f484c=this['_getHeadingLevel'](_0x39c4fa);if(null!==_0x2f484c)return{'type':'format','content':o(_0x4bb147,'*Change\x20to:*\x20%0',(_0x3a6363=0x1,_0x1c2901=_0x2f484c,o(_0x4bb147,'ELEMENT_HEADING',[_0x3a6363,_0x1c2901])))};const _0x2feeaf=this['_headingOptions']['find'](_0xc7fdeb=>_0xc7fdeb['model']===_0x39c4fa)['title'];return{'type':'format','content':o(_0x4bb147,'*Change\x20to:*\x20%0',_0x50a8a4(0x1,_0x2feeaf))};}var _0x3a6363,_0x1c2901;});}['_getHeadingLevel'](_0x48287d){const _0x44f0cd=_0x48287d['match'](/^heading(\d+)/);if(_0x44f0cd)return _0x44f0cd[0x1];const _0x583ae6=this['_headingOptions']?.['find'](_0x290d56=>_0x290d56['model']==_0x48287d);if(_0x583ae6&&_0x583ae6['view']){const _0x48b972=_0x583ae6['view'],_0x439839=(_0x48b972['name']??_0x48b972)['match'](/^h(\d+)/);if(_0x439839)return _0x439839[0x1];}return null;}}class et extends _0x3ba5c8{['afterInit'](){const _0x31d57b=this['editor'];if(!_0x31d57b['plugins']['has']('HighlightEditing'))return;const _0x537b85=_0x31d57b['plugins']['get']('TrackChangesEditing'),_0xa9ca0d=_0x31d57b['locale'];_0x537b85['enableDefaultAttributesIntegration']('highlight'),_0x537b85['registerInlineAttribute']('highlight'),_0x537b85['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xa9ca0d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1abb47=this['editor'],_0x1f273a=_0x1abb47['locale'];_0x1abb47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x106d87=>{if('formatInline'!=_0x106d87['type'])return;const {data:_0x486eb1}=_0x106d87;if(_0x486eb1&&'highlight'==_0x486eb1['commandName']){const _0x302392=_0x1f273a['t'],_0x4e8c22=_0x486eb1['commandParams'][0x0]['value'];if(_0x4e8c22){const _0x5a9ae6=_0x1abb47['config']['get']('highlight.options')['find'](_0x297720=>_0x297720['model']==_0x4e8c22),_0x1b0ef7=_0x302392(_0x5a9ae6['title'])['toLowerCase']();return{'type':'format','content':o(_0x1f273a,'*Set\x20highlight:*\x20%0',_0x1b0ef7),'color':{'value':_0x5a9ae6['color'],'title':_0x5a9ae6['title']}};}return{'type':'format','content':o(_0x1f273a,'*Remove\x20highlight*',o(_0x1f273a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3ba5c8{['afterInit'](){const _0x4db14e=this['editor'];if(!_0x4db14e['plugins']['has']('HorizontalLineEditing'))return;_0x4db14e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d0939=_0x4db14e['plugins']['get']('TrackChangesEditing'),_0x2e42d3=_0x4db14e['locale'];_0x4d0939['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2f3635=>o(_0x2e42d3,'ELEMENT_HORIZONTAL_LINE',_0x2f3635)),_0x4db14e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xba12a8,{writer:_0x8cddc1,options:_0x4b14b0})=>{if(!_0x4b14b0['showSuggestionHighlights'])return null;const _0x1ff428=_0x8cddc1['createContainerElement']('div'),_0x45d3a1=_0x8cddc1['createEmptyElement']('hr');return _0x8cddc1['addClass']('ck-horizontal-line',_0x1ff428),_0x8cddc1['insert'](_0x8cddc1['createPositionAt'](_0x1ff428,0x0),_0x45d3a1),_0x1ff428;},'converterPriority':'high'});}}class st extends _0x3ba5c8{['afterInit'](){const _0x3d4384=this['editor'];if(!_0x3d4384['plugins']['has']('HtmlEmbed'))return;const _0x420368=_0x3d4384['plugins']['get']('TrackChangesEditing'),_0x25bd6a=_0x3d4384['locale'];_0x420368['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d32fa=>o(_0x25bd6a,'ELEMENT_HTML_EMBED',_0x5d32fa)),_0x420368['enableDefaultAttributesIntegration']('htmlEmbed'),_0x420368['registerBlockAttribute']('value'),_0x420368['descriptionFactory']['registerDescriptionCallback'](_0x1af684=>{if('attribute'!=_0x1af684['type'])return;const {data:_0x45be50}=_0x1af684;if(_0x45be50&&'value'==_0x45be50['key']&&_0x1af684['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2bd11f=o(_0x25bd6a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25bd6a,'*Change\x20%0\x20content*',_0x2bd11f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6daf0f=this['editor'],_0x45236e=_0x6daf0f['locale'];_0x6daf0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f2e88=>{if('formatBlock'!=_0x4f2e88['type'])return;const {data:_0x2fe7f9}=_0x4f2e88;if(_0x2fe7f9&&'htmlEmbed'==_0x2fe7f9['commandName']){const _0x26d019=o(_0x45236e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45236e,'*Change\x20%0\x20content*',_0x26d019)};}});}}class nt extends _0x3ba5c8{['afterInit'](){const _0x5c541d=this['editor'];if(!_0x5c541d['plugins']['has']('ImageEditing'))return;const _0x4d9502=_0x5c541d['plugins']['get']('TrackChangesEditing'),_0x56d782=_0x5c541d['plugins']['get']('ImageUtils'),_0x3df07d=_0x5c541d['locale'];_0x4d9502['enableCommand']('insertImage'),_0x4d9502['descriptionFactory']['registerElementLabel']('imageBlock',_0x3c8dd4=>o(_0x3df07d,'ELEMENT_IMAGE',_0x3c8dd4)),_0x4d9502['descriptionFactory']['registerElementLabel']('imageInline',_0x1420e6=>o(_0x3df07d,'ELEMENT_INLINE_IMAGE',_0x1420e6)),_0x4d9502['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3df07d,'ELEMENT_CAPTION')),_0x5c541d['plugins']['has']('ImageUploadEditing')&&_0x4d9502['enableCommand']('uploadImage'),_0x5c541d['plugins']['has']('ImageBlockEditing')&&_0x5c541d['plugins']['has']('ImageInlineEditing')&&(_0x4d9502['enableCommand']('imageTypeInline',(_0x325da7,_0x5838f8)=>{const _0xdd52e9=_0x56d782['getClosestSelectedImageElement'](_0x5c541d['model']['document']['selection']);_0x5c541d['model']['change'](()=>{_0x4d9502['markBlockFormat'](_0xdd52e9,{'commandName':'imageTypeInline','commandParams':[_0x5838f8]},[],'convertBlockImageToInline');});}),_0x4d9502['enableCommand']('imageTypeBlock',(_0x27893e,_0xfbbe2)=>{_0x5c541d['model']['change'](_0x2d9162=>{let _0x19bab4=_0x56d782['getClosestSelectedImageElement'](_0x5c541d['model']['document']['selection']),_0x3f63eb=_0x2d9162['createRangeOn'](_0x19bab4);const _0x30169f=_0x3afa91['fromPosition'](_0x3f63eb['start'],'toPrevious'),_0xdb6f5b=_0x3afa91['fromPosition'](_0x3f63eb['end'],'toNext');_0x4d9502['forceDefaultExecution'](()=>_0x27893e(_0xfbbe2)),_0x19bab4=_0x56d782['getClosestSelectedImageElement'](_0x5c541d['model']['document']['selection']),_0x3f63eb=_0x2d9162['createRangeOn'](_0x19bab4);const _0x256855=_0x2d9162['createRange'](_0x30169f,_0xdb6f5b);_0x30169f['detach'](),_0xdb6f5b['detach'](),_0x4d9502['markBlockFormat'](_0x19bab4,{'commandName':'imageTypeInline','commandParams':[_0xfbbe2]},[],'convertInlineImageToBlock'),_0x256855['start']['isBefore'](_0x3f63eb['start'])&&_0x4d9502['markInsertion'](_0x2d9162['createRange'](_0x256855['start'],_0x3f63eb['start']),'convertInlineImageToBlock'),_0x3f63eb['end']['isBefore'](_0x256855['end'])&&_0x4d9502['markInsertion'](_0x2d9162['createRange'](_0x3f63eb['end'],_0x256855['end']),'convertInlineImageToBlock');});}),_0x4d9502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d9502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d9502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d9502['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d9502['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d9502['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xbad8c8])=>{const _0x5e6892=_0x4d9502['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2cd96d=_0xbad8c8['start'],_0x489370=_0xbad8c8['end'];const _0x199a94=_0x5c541d['model']['schema']['getNearestSelectionRange'](_0x2cd96d,'backward'),_0xcd59a3=_0x5c541d['model']['schema']['getNearestSelectionRange'](_0x489370,'forward');_0x199a94['isCollapsed']&&(_0x2cd96d=_0x199a94['start']),_0xcd59a3['isCollapsed']&&(_0x489370=_0xcd59a3['end']),_0x5e6892([_0x5c541d['model']['createRange'](_0x2cd96d,_0x489370)]);}),_0x4d9502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2a5745),_0x4d9502['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2a5745)),_0x5c541d['plugins']['has']('ImageCaptionEditing')&&(_0x4d9502['enableCommand']('toggleImageCaption',(_0x12a8d3,_0x2867ce)=>{const _0x5cf08d=_0x5c541d['plugins']['get']('ImageCaptionUtils');let _0x2369ab=_0x56d782['getClosestSelectedImageElement'](_0x5c541d['model']['document']['selection']),_0x7a9409=_0x5cf08d['getCaptionFromImageModelElement'](_0x2369ab);_0x5c541d['model']['change'](()=>{if(_0x7a9409)return void _0x4d9502['markDeletion'](_0x5c541d['model']['createRangeOn'](_0x7a9409));const _0x11cca9=_0x56d782['isBlockImage'](_0x2369ab);_0x12a8d3(_0x2867ce),_0x2369ab=_0x56d782['getClosestSelectedImageElement'](_0x5c541d['model']['document']['selection']),_0x7a9409=_0x5cf08d['getCaptionFromImageModelElement'](_0x2369ab),_0x4d9502['markInsertion'](_0x5c541d['model']['createRangeOn'](_0x7a9409),_0x11cca9?null:'imageCaption');});}),_0x4d9502['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2a5745));const _0x36e2ef=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3c1eae(_0x2684c9,_0x1d72eb){const _0x5bdd8c=_0x36e2ef['findIndex'](({type:_0x305ac0,subType:_0x116055})=>_0x2684c9['type']==_0x305ac0&&_0x2684c9['subType']==_0x116055),_0x254ac5=_0x36e2ef['findIndex'](({type:_0x54f423,subType:_0x51a690})=>_0x1d72eb['type']==_0x54f423&&_0x1d72eb['subType']==_0x51a690);if(_0x5bdd8c<0x0||_0x254ac5<0x0)return!0x1;const _0x47f91a=_0x2684c9['getFirstRange'](),_0x23fbd4=_0x1d72eb['getFirstRange']();if((0x0==_0x5bdd8c||0x1==_0x5bdd8c)&&0x2==_0x254ac5&&_0x47f91a['isIntersecting'](_0x23fbd4))return!0x0;if(0x2==_0x5bdd8c&&0x3==_0x254ac5){const _0x265e79=_0x4d9502['_findSuggestions'](_0x47f91a,'insertion')['filter'](({suggestion:_0x1f6ba9,meta:_0x3a7fd1})=>_0x3a7fd1['isOwn']&&'convertInlineImageToBlock'==_0x1f6ba9['subType']);if(_0x265e79['length']>0x1&&_0x23fbd4['end']['isEqual'](_0x47f91a['start']))return!0x0;if(0x1==_0x265e79['length']&&(_0x47f91a['start']['isEqual'](_0x23fbd4['end'])||_0x47f91a['end']['isEqual'](_0x23fbd4['start'])))return!0x0;}if(0x3==_0x5bdd8c&&0x3==_0x254ac5&&_0x47f91a['start']['isBefore'](_0x23fbd4['start'])){const _0x280fdb=_0x47f91a['end']['nodeAfter'],_0x3cbef3=_0x23fbd4['start']['nodeBefore'];return _0x56d782['isBlockImage'](_0x280fdb)&&_0x280fdb===_0x3cbef3;}return!0x1;}function _0x2a5745(_0x1c68cb,_0x27a600){return _0x3c1eae(_0x1c68cb,_0x27a600)?[_0x1c68cb,_0x27a600]:_0x3c1eae(_0x27a600,_0x1c68cb)?[_0x27a600,_0x1c68cb]:null;}_0x5c541d['plugins']['has']('ImageResize')&&(_0x4d9502['enableDefaultAttributesIntegration']('resizeImage'),_0x4d9502['registerBlockAttribute']('resizedWidth'),_0x4d9502['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3df07d,'FORMAT_IMAGE_SIZE'))),_0x5c541d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4d9502['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4d9502['registerBlockAttribute']('alt')),_0x4d9502['descriptionFactory']['registerDescriptionCallback'](_0x3b6564=>{if(!!_0x36e2ef['find'](({type:_0x4abcd9,subType:_0x46d28d})=>_0x3b6564['type']==_0x4abcd9&&_0x3b6564['subType']==_0x46d28d))return _0x3b6564['previous']?{}:void 0x0;}),_0x4d9502['descriptionFactory']['registerDescriptionCallback'](_0xe9fd54=>{if('insertion'==_0xe9fd54['type']||'deletion'==_0xe9fd54['type']){const _0x59f575=_0xe9fd54['getContainedElement']();if(_0x59f575&&_0x59f575['is']('element','caption'))return{'type':'insertion'==_0xe9fd54['type']?'addObject':'removeObject','element':_0x59f575,'quantity':0x1};}}),_0x4d9502['descriptionFactory']['registerDescriptionCallback'](_0x25ffaa=>'formatBlock'==_0x25ffaa['type']&&'convertInlineImageToBlock'==_0x25ffaa['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x25ffaa['type']&&'convertBlockImageToInline'==_0x25ffaa['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d9502['descriptionFactory']['registerDescriptionCallback'](_0xcfb80f=>{if('attribute'!=_0xcfb80f['type'])return;const {data:_0x200fc6}=_0xcfb80f;if(!_0x200fc6||'alt'!=_0x200fc6['key'])return;const _0x4246da=_0x200fc6['newValue'];return _0x4246da?{'type':'format','content':o(_0x3df07d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4246da+'\x22')}:{'type':'format','content':o(_0x3df07d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fee9c=this['editor'],_0x189044=_0x3fee9c['locale'];_0x3fee9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd1e643=>{if('formatBlock'!=_0xd1e643['type']&&'formatInline'!=_0xd1e643['type'])return;const {data:_0x529a2a}=_0xd1e643;if(_0x529a2a){if('imageTextAlternative'==_0x529a2a['commandName']){const _0x21c5a1=_0x529a2a['commandParams'][0x0]['newValue'];return _0x21c5a1?{'type':'format','content':o(_0x189044,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x21c5a1+'\x22')}:{'type':'format','content':o(_0x189044,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x529a2a['commandName']){const _0x4e1828=_0x529a2a['commandParams'][0x0]['width'];return _0x4e1828?{'type':'format','content':o(_0x189044,'*Set\x20image\x20width:*\x20%0',_0x4e1828)}:{'type':'format','content':o(_0x189044,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3ba5c8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x12ce26=this['editor']['locale'],_0x417c87=this['editor']['plugins']['get']('TrackChangesEditing');_0x417c87['enableDefaultAttributesIntegration']('replaceImageSource'),_0x417c87['registerBlockAttribute']('src'),_0x417c87['descriptionFactory']['registerDescriptionCallback'](_0x4087ea=>{if('attribute'!=_0x4087ea['type'])return;const {data:_0x144aaf}=_0x4087ea;return _0x144aaf&&'src'==_0x144aaf['key']?_0x144aaf['newValue']&&_0x144aaf['oldValue']?{'type':'format','content':o(_0x12ce26,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x35bd3d=this['editor']['plugins']['get']('TrackChangesEditing');_0x35bd3d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x35bd3d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35bd3d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x35bd3d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23579c=this['editor'],_0xd70d42=_0x23579c['locale'];_0x23579c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b7977=>{if('formatBlock'!=_0x4b7977['type']&&'formatInline'!=_0x4b7977['type'])return;const {data:_0x1f5171}=_0x4b7977;if(!_0x1f5171||'replaceImageSource'!=_0x1f5171['commandName'])return;return{'type':'format','content':o(_0xd70d42,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3ba5c8{['afterInit'](){const _0xb7bf0a=this['editor'];if(!_0xb7bf0a['plugins']['has']('ImageStyleEditing'))return;const _0x1739a7=_0xb7bf0a['plugins']['get']('TrackChangesEditing'),_0x1561f3=_0xb7bf0a['plugins']['get']('ImageUtils'),_0x5663d2={};_0x1739a7['enableCommand']('imageStyle',(_0x4ad0ff,_0x328ecf)=>{const _0x560e90=_0xb7bf0a['plugins']['get']('Users')['me'],_0x10f5b3=_0xb7bf0a['commands']['get']('imageStyle');let _0x5abe32=_0x1561f3['getClosestSelectedImageElement'](_0xb7bf0a['model']['document']['selection']),_0x11f9c2=_0xb7bf0a['model']['createRangeOn'](_0x5abe32),_0x2db61b=_0x10f5b3['value'];if(_0x2db61b==_0x328ecf['value'])return;const _0x38ca39={'commandName':'imageStyle','commandParams':[_0x328ecf],'formatGroupId':_0x47b6bb()};_0xb7bf0a['model']['change'](()=>{if(_0x1739a7['getSuggestions']()['filter'](_0x408c2f=>_0x408c2f['isInContent']&&_0x560e90==_0x408c2f['author']&&('formatBlock'==_0x408c2f['type']||'formatInline'==_0x408c2f['type'])&&('imageStylePreApply'==_0x408c2f['subType']||'imageStylePostApply'==_0x408c2f['subType'])&&_0x408c2f['getFirstRange']()['isEqual'](_0x11f9c2))['forEach'](_0x565b1a=>_0x1739a7['discardSuggestion'](_0x565b1a['head'])),_0x5abe32=_0x1561f3['getClosestSelectedImageElement'](_0xb7bf0a['model']['document']['selection']),_0x11f9c2=_0xb7bf0a['model']['createRangeOn'](_0x5abe32),_0x10f5b3['refresh'](),_0xb7bf0a['commands']['get']('imageTypeInline')['refresh'](),_0xb7bf0a['commands']['get']('imageTypeBlock')['refresh'](),_0x2db61b=_0x10f5b3['value'],_0x2db61b!=_0x328ecf['value'])return _0x1561f3['isInlineImage'](_0x5abe32)&&_0x10f5b3['shouldConvertImageType'](_0x328ecf['value'],_0x5abe32)?(_0x4ad0ff({..._0x328ecf,'setImageSizes':!0x1}),_0x5abe32=_0x1561f3['getClosestSelectedImageElement'](_0xb7bf0a['model']['document']['selection']),void _0x1739a7['markBlockFormat'](_0x5abe32,{..._0x38ca39,'commandReversedParams':[{'value':_0x2db61b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1561f3['isBlockImage'](_0x5abe32)?_0x1739a7['markBlockFormat'](_0x5abe32,_0x38ca39,[],'imageStylePostApply'):_0x1739a7['markInlineFormat'](_0x11f9c2,_0x38ca39,'imageStylePostApply'));});});for(const _0xc43222 of _0xb7bf0a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5663d2[_0xc43222['name']]=_0xc43222['title']['toLowerCase']();_0x1739a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1739a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1739a7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1739a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x23de62])=>{_0x1561f3['setImageNaturalSizeAttributes'](_0x23de62['getContainedElement']());}),_0x1739a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x17707f,_0x842dac)=>{_0x1739a7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x17707f,{'commandName':_0x842dac['commandName'],'commandParams':_0x842dac['commandReversedParams']});}),_0x1739a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5dec37,_0xb55ea8){if(_0x2bf5c8(_0x5dec37,_0xb55ea8))return[_0x5dec37,_0xb55ea8];if(_0x2bf5c8(_0xb55ea8,_0x5dec37))return[_0xb55ea8,_0x5dec37];return null;});const _0x900ac7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2bf5c8(_0x2658db,_0x2cee6d){const _0x462c41=_0x900ac7['findIndex'](({type:_0xa5c082,subType:_0x1ccc43})=>_0x2658db['type']==_0xa5c082&&_0x2658db['subType']==_0x1ccc43),_0xa86238=_0x900ac7['findIndex'](({type:_0x20f7fb,subType:_0x36bb48})=>_0x2cee6d['type']==_0x20f7fb&&_0x2cee6d['subType']==_0x36bb48);if(_0x462c41<0x0||_0xa86238<0x0)return!0x1;const _0x5d797d=_0x2658db['getFirstRange'](),_0x368efe=_0x2cee6d['getFirstRange']();if((0x0==_0x462c41||0x1==_0x462c41)&&0x2==_0xa86238&&_0x5d797d['isIntersecting'](_0x368efe))return!0x0;if(0x2==_0x462c41&&0x3==_0xa86238){const _0x27db0d=_0x1739a7['_findSuggestions'](_0x5d797d,'insertion')['filter'](({suggestion:_0x3c3597,meta:_0x3c540a})=>_0x3c540a['isOwn']&&'convertInlineImageToBlock'==_0x3c3597['subType']);if(_0x27db0d['length']>0x1&&_0x368efe['end']['isEqual'](_0x5d797d['start']))return!0x0;if(0x1==_0x27db0d['length']&&(_0x5d797d['start']['isEqual'](_0x368efe['end'])||_0x5d797d['end']['isEqual'](_0x368efe['start'])))return!0x0;}if(0x3==_0x462c41&&0x3==_0xa86238&&_0x5d797d['start']['isBefore'](_0x368efe['start'])){const _0x443c53=_0x5d797d['end']['nodeAfter'],_0x3839ef=_0x368efe['start']['nodeBefore'];return _0x1561f3['isBlockImage'](_0x443c53)&&_0x443c53===_0x3839ef;}return!0x1;}_0xb7bf0a['model']['document']['registerPostFixer'](()=>{let _0x3cb1c7=!0x1;const _0x1e598a=Array['from'](_0xb7bf0a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e5d2a,data:_0x270b85}of _0x1e598a){const {group:_0x4e5c1a,type:_0x173d7d,subType:_0x322a60,id:_0x4b289b}=_0x1739a7['_splitMarkerName'](_0x4e5d2a);if('suggestion'==_0x4e5c1a&&_0x1739a7['hasSuggestion'](_0x4b289b)){if('formatBlock'==_0x173d7d&&('imageStylePreApply'==_0x322a60||'imageStylePostApply'==_0x322a60)){const _0x354258=_0x1739a7['getSuggestion'](_0x4b289b);if(_0x270b85['newRange']){const _0x47fc3a=_0x354258['getFirstRange']()['getContainedElement']();if(_0x1561f3['isBlockImage'](_0x47fc3a))continue;_0x1739a7['discardSuggestion'](_0x354258),_0x3cb1c7=!0x0;}}if('insertion'==_0x173d7d&&'imageCaption'==_0x322a60&&!_0x270b85['newRange']){const _0x16bcba=_0x1739a7['getSuggestion'](_0x4b289b);_0x16bcba['next']&&_0x16bcba['next']['isInContent']&&(_0x1739a7['discardSuggestion'](_0x16bcba['next']),_0x3cb1c7=!0x0);}}}return _0x3cb1c7;}),this['_registerLegacyDescription'](_0x5663d2);}['_registerLegacyDescription'](_0x1c82bb){const _0x152de3=this['editor'],_0x4bdf6a=_0x152de3['locale'];_0x152de3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae160=>{if('formatBlock'!=_0x1ae160['type']&&'formatInline'!=_0x1ae160['type'])return;const {data:_0x328d72}=_0x1ae160;if(!_0x328d72||'imageStyle'!=_0x328d72['commandName'])return;const _0x541ed8=_0x328d72['commandParams'][0x0]['value'];return _0x4259de('side'===_0x541ed8?o(_0x4bdf6a,'FORMAT_SIDE_IMAGE'):_0x1c82bb[_0x541ed8]||_0x541ed8);function _0x4259de(_0x55051f){return{'type':'format','content':o(_0x4bdf6a,'*Format:*\x20%0',_0x55051f)};}});}}class at extends _0x3ba5c8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x301622){super(_0x301622),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x474939=this['editor'],_0x10567f=_0x474939['commands']['get']('importWord'),_0x5845b9=_0x474939['commands']['get']('trackChanges');_0x10567f&&(_0x10567f['on']('execute',(_0x16188d,[,_0x5baf30])=>{this['_trackChangesValueDuringImport']=_0x5845b9['value'],_0x5baf30['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x10567f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x10567f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5845b9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x474939['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x20c19e,_0xc2c3e0){const {suggestions:_0x2273e0}=_0xc2c3e0,_0x21d28f=this['editor']['commands']['get']('trackChanges'),_0x34d3ca=_0x21d28f['value'];this['_trackChangesValueDuringImport']!==_0x34d3ca&&(_0x21d28f['execute'](),this['_trackChangesExecuted']=!0x0),_0x2273e0&&_0x2273e0['forEach'](({id:_0x30ddb7,type:_0x51c403,author:_0x21925a,created_at:_0x1ca87f})=>{const _0x37c202={'id':_0x30ddb7,'type':_0x51c403,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x21925a,'createdAt':_0x1ca87f?new Date(_0x1ca87f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x37c202);});}}class ct extends _0x3ba5c8{['afterInit'](){const _0x1054f8=this['editor'],_0x54fe7e=_0x1054f8['plugins']['get']('TrackChangesEditing');if(_0x1054f8['plugins']['has']('IndentEditing')&&(_0x54fe7e['enableCommand']('indent'),_0x54fe7e['enableCommand']('outdent')),_0x1054f8['plugins']['has']('IndentBlock')){for(const _0x4a904e of['indentBlock','outdentBlock'])_0x54fe7e['enableDefaultAttributesIntegration'](_0x4a904e);}const _0x1e570f=_0x1054f8['locale'];_0x54fe7e['registerBlockAttribute']('blockIndent'),_0x54fe7e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1e570f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d77c6=this['editor'],_0x5918d4=_0x4d77c6['locale'],_0x20ef55=_0x4d77c6['plugins']['get']('TrackChangesEditing');_0x20ef55['descriptionFactory']['registerDescriptionCallback'](_0x358e48=>{if('formatBlock'!=_0x358e48['type'])return;const {data:_0x39d14d}=_0x358e48;if(!_0x39d14d)return;if('indentBlock'!=_0x39d14d['commandName']&&'outdentBlock'!=_0x39d14d['commandName'])return;const _0x3c2bec=_0x358e48['getItems']()[0x0],_0x2a5242=_0x20ef55['descriptionFactory']['getItemLabel'](_0x3c2bec);return'indentBlock'==_0x39d14d['commandName']?{'type':'format','content':o(_0x5918d4,'*Indent:*\x20%0',_0x2a5242)}:'outdentBlock'==_0x39d14d['commandName']?{'type':'format','content':o(_0x5918d4,'*Outdent:*\x20%0',_0x2a5242)}:void 0x0;});}}class ut extends _0x3ba5c8{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3ba5c8{['afterInit'](){const _0x1cbe6b=this['editor'];if(!_0x1cbe6b['plugins']['has']('LinkEditing'))return;const _0x2fd38f=_0x1cbe6b['plugins']['get']('TrackChangesEditing'),_0x3be0b7=_0x1cbe6b['commands']['get']('link');_0x2fd38f['enableDefaultAttributesIntegration']('link'),_0x2fd38f['enableDefaultAttributesIntegration']('unlink'),_0x2fd38f['registerInlineAttribute']('linkHref');for(const _0x3bdaf2 of _0x3be0b7['manualDecorators'])_0x2fd38f['registerInlineAttribute'](_0x3bdaf2['id']),_0x2fd38f['descriptionFactory']['registerAttributeLabel'](_0x3bdaf2['id'],'link\x20('+_0x3bdaf2['label']['toLowerCase']()+')');_0x2fd38f['descriptionFactory']['registerDescriptionCallback'](_0x42e6b1=>{if('attribute'!=_0x42e6b1['type'])return;const {data:_0x230731}=_0x42e6b1;if(!_0x230731||'linkHref'!=_0x230731['key'])return;const _0x3f30b6=_0x230731['newValue'],_0x572043=_0x1cbe6b['locale'];return{'type':'format','content':null==_0x3f30b6?o(_0x572043,'*Remove\x20link*'):o(_0x572043,'*Set\x20link:*\x20%0','\x22'+_0x3f30b6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x285327=this['editor'],_0x2cd76f=_0x285327['locale'];_0x285327['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40e690=>{if('formatInline'!=_0x40e690['type'])return;const {data:_0x630f79}=_0x40e690;if(_0x630f79){if('link'==_0x630f79['commandName']){const _0x2f8e1e=_0x630f79['commandParams'][0x0];return{'type':'format','content':o(_0x2cd76f,'*Set\x20link:*\x20%0','\x22'+_0x2f8e1e+'\x22')};}return'unlink'==_0x630f79['commandName']?{'type':'format','content':o(_0x2cd76f,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3ba5c8{['afterInit'](){const _0x388628=this['editor'],_0x8ab226=_0x388628['locale'];if(!_0x388628['plugins']['has']('LegacyListEditing'))return;const _0x49dc9f=_0x388628['plugins']['get']('TrackChangesEditing'),_0x246153=_0x388628['plugins']['has']('LegacyTodoListEditing');function _0x1df6d9(_0x1023dc){return()=>{const _0x3baafa=_0x388628['model']['document']['selection'],_0x1bb375=_0x388628['commands']['get'](_0x1023dc);if(_0x1bb375['value'])return void _0x388628['execute']('paragraph',{});const _0x527c80=_0x1023dc['slice'](0x0,-0x4),_0xbd0912=function(_0x487bf8,_0x458215,_0x585daa){let _0x138941=Array['from'](_0x487bf8)['filter'](_0x3b38db=>function(_0x2e15db,_0x46342c){return _0x46342c['checkChild'](_0x2e15db['parent'],'listItem')&&!_0x46342c['isObject'](_0x2e15db);}(_0x3b38db,_0x585daa));_0x138941=_0x138941['filter'](_0x39a464=>!_0x39a464['is']('element','listItem')||_0x39a464['getAttribute']('listType')!=_0x458215);const _0x990b04=new Set();for(const _0xe6ff75 of _0x138941)_0xe6ff75['is']('element','listItem')?_0x990b04['add'](fe(_0xe6ff75)):_0x990b04['add'](_0xe6ff75);return Array['from'](_0x990b04);}(_0x3baafa['getSelectedBlocks'](),_0x527c80,_0x388628['model']['schema']);_0x388628['model']['change'](()=>{for(const _0x1d4525 of _0xbd0912)_0x49dc9f['markBlockFormat'](_0x1d4525,{'commandName':_0x1023dc,'commandParams':[{'forceValue':!_0x1bb375['value']}],'formatGroupId':'blockName'},ue(_0x1d4525));});};}function _0x1688ac(_0x933875){return()=>{const _0x5ec6b1=function(_0x1cd9e4){let _0x2817c5=Array['from'](_0x1cd9e4);const _0x205b6f=_0x2817c5['findIndex'](_0x3bf521=>'listItem'!=_0x3bf521['name']);return _0x205b6f>-0x1&&(_0x2817c5=_0x2817c5['slice'](0x0,_0x205b6f)),_0x2817c5;}(_0x388628['model']['document']['selection']['getSelectedBlocks']()),_0x46ea2f=_0x388628['model']['createRange'](_0x388628['model']['createPositionAt'](_0x5ec6b1[0x0],'before'),_0x388628['model']['createPositionAt'](_0x5ec6b1[_0x5ec6b1['length']-0x1],'end'));_0x388628['model']['change'](()=>{_0x49dc9f['markBlockFormat'](_0x46ea2f,{'commandName':_0x933875,'commandParams':[],'formatGroupId':'listIndent'},function(_0x7c0822){const _0x170b95=new Set();for(const _0x49e27d of _0x7c0822){let _0x3944ff=_0x49e27d['nextSibling'];for(;_0x3944ff&&_0x3944ff['getAttribute']('listIndent')>_0x49e27d['getAttribute']('listIndent');)_0x170b95['add'](_0x3944ff),_0x3944ff=_0x3944ff['nextSibling'];}return Array['from'](_0x170b95);}(_0x5ec6b1));});};}_0x49dc9f['enableCommand']('numberedList',_0x1df6d9('numberedList')),_0x49dc9f['enableCommand']('bulletedList',_0x1df6d9('bulletedList')),_0x246153&&_0x49dc9f['enableCommand']('todoList',_0x1df6d9('todoList')),_0x49dc9f['enableCommand']('indentList',_0x1688ac('indentList')),_0x49dc9f['enableCommand']('outdentList',_0x1688ac('outdentList')),_0x246153&&_0x49dc9f['enableCommand']('checkTodoList',()=>{const _0x36aa32=_0x388628['commands']['get']('checkTodoList'),_0x15e055=Array['from'](_0x36aa32['_selectedElements']);_0x15e055['filter'](_0x35d441=>_0x35d441['getAttribute']('todoListChecked')!=_0x36aa32['value']),_0x388628['model']['change'](()=>{for(const _0x25d94e of _0x15e055)_0x49dc9f['markBlockFormat'](_0x25d94e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x36aa32['value']}]});});}),_0x49dc9f['descriptionFactory']['registerElementLabel']('listItem',_0x1ff3d4=>o(_0x8ab226,'ELEMENT_LIST_ITEM',_0x1ff3d4)),_0x49dc9f['descriptionFactory']['registerDescriptionCallback'](_0xec3b09=>{if('formatBlock'!=_0xec3b09['type']&&'formatInline'!=_0xec3b09['type'])return;const {data:_0x3aea4}=_0xec3b09;if(_0x3aea4){if('numberedList'==_0x3aea4['commandName']||'bulletedList'==_0x3aea4['commandName']||'todoList'==_0x3aea4['commandName'])switch(_0x3aea4['commandName']['replace']('List','')){case'bulleted':return _0x2c8a2d(o(_0x8ab226,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c8a2d(o(_0x8ab226,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c8a2d(o(_0x8ab226,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3aea4['commandName'])return{'type':'format','content':o(_0x8ab226,'*Indent:*\x20%0',o(_0x8ab226,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3aea4['commandName'])return{'type':'format','content':o(_0x8ab226,'*Outdent:*\x20%0',o(_0x8ab226,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3aea4['commandName'])return _0x3aea4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8ab226,'*Check\x20item*')}:{'type':'format','content':o(_0x8ab226,'*Uncheck\x20item*')};}function _0x2c8a2d(_0x57858f){return{'type':'format','content':o(_0x8ab226,'*Change\x20to:*\x20%0',_0x57858f)};}});}}function fe(_0x13bc7d){const _0x2e9a2a=_0x13bc7d['getAttribute']('listIndent');if(0x0==_0x2e9a2a)return _0x13bc7d;let _0x194d7b=_0x13bc7d;for(;_0x13bc7d['previousSibling']&&_0x13bc7d['previousSibling']['is']('element','listItem');){const _0x1f1aa2=_0x13bc7d['previousSibling']['getAttribute']('listIndent');if(_0x1f1aa2==_0x2e9a2a)_0x194d7b=_0x13bc7d['previousSibling'];else{if(_0x1f1aa2<_0x2e9a2a)break;}_0x13bc7d=_0x13bc7d['previousSibling'];}return _0x194d7b;}function ue(_0x42e48c){const _0x4a989a=[];if(_0x42e48c['is']('element','listItem')&&_0x42e48c['getAttribute']('listIndent')>0x0){let _0xa367c1=_0x42e48c['nextSibling'];for(;_0xa367c1&&'listItem'==_0xa367c1['name']&&_0xa367c1['getAttribute']('listIndent')==_0x42e48c['getAttribute']('listIndent');)_0x4a989a['push'](_0xa367c1),_0xa367c1=_0xa367c1['nextSibling'];}return _0x4a989a;}class W extends _0x3ba5c8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x129e63=this['editor']['config']['get']('list.properties'),_0x1df2b4=this['editor']['plugins']['get']('TrackChangesEditing');_0x129e63['styles']&&_0x1df2b4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x129e63['reversed']&&_0x1df2b4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x129e63['startIndex']&&_0x1df2b4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1df2b4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x314676,_0xf444e9={}){const _0x54c84a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dbd0c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54c84a['markMultiRangeBlockFormat'](_0x3dbd0c,{'commandName':'listStyle','commandParams':[{'type':_0xf444e9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1aa6ca,_0x46f20f={}){const _0x3c935b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d2bd=this['_getSuggestionBlocks'](_0x5c1ffd=>_0x5c1ffd['is']('element','listItem')&&'numbered'===_0x5c1ffd['getAttribute']('listType'));if(_0x16d2bd['length']<0x1)return;const _0x1dd810=_0x16d2bd['map'](_0x8d29fa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8d29fa,'before'),this['editor']['model']['createPositionAt'](_0x8d29fa,0x0)));this['editor']['model']['change'](()=>{_0x3c935b['markMultiRangeBlockFormat'](_0x1dd810,{'commandName':'listReversed','commandParams':[{'reversed':_0x46f20f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5bf277,_0x7a9f81={}){const _0x5b5218=this['editor']['plugins']['get']('TrackChangesEditing'),_0x468324=this['_getSuggestionBlocks'](_0x38948b=>_0x38948b['is']('element','listItem')&&'numbered'===_0x38948b['getAttribute']('listType'));if(_0x468324['length']<0x1)return;const _0x2652c3=_0x468324['map'](_0x22e982=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22e982,'before'),this['editor']['model']['createPositionAt'](_0x22e982,0x0)));this['editor']['model']['change'](()=>{_0x5b5218['markMultiRangeBlockFormat'](_0x2652c3,{'commandName':'listStart','commandParams':[{'startIndex':_0x7a9f81['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x10e585){if('formatBlock'!=_0x10e585['type']&&'formatInline'!=_0x10e585['type'])return;const _0x5cd3a4=this['editor']['locale'],{data:_0x495eb5}=_0x10e585;if(!_0x495eb5)return;let _0x319d5a,_0x512d66;switch(_0x495eb5['commandName']){case'listStyle':_0x319d5a='*Change\x20to:*\x20%0',_0x512d66={'type':'format','content':o(_0x5cd3a4,_0x319d5a,o(_0x5cd3a4,this['_getTranslationKeyForListStyle'](_0x495eb5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x319d5a=_0x495eb5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x512d66={'type':'format','content':o(_0x5cd3a4,_0x319d5a)};break;case'listStart':_0x319d5a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x512d66={'type':'format','content':o(_0x5cd3a4,_0x319d5a,_0x495eb5['commandParams'][0x0]['startIndex'])};}return _0x512d66;}['_getSuggestionBlocksForListStyle'](){const _0x3353f0=this['editor']['plugins']['get']('LegacyListUtils');let _0x1941f1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1941f1[0x0]?.['is']('element','listItem')&&_0x1941f1['unshift'](..._0x3353f0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1941f1[_0x1941f1['length']-0x1]?.['is']('element','listItem')&&_0x1941f1['push'](..._0x3353f0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1941f1=[...new Set(_0x1941f1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1941f1=_0x1941f1['filter'](_0x181e45=>_0x181e45['is']('element','listItem'))),_0x1941f1;}['_getSuggestionBlocks'](_0x525dea){const _0x3e0c82=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a570a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x525dea)['map'](_0x3e5f7a=>{const _0x20416a=this['editor']['model']['createPositionAt'](_0x3e5f7a,0x0);return[..._0x3e0c82['getSiblingNodes'](_0x20416a,'backward'),..._0x3e0c82['getSiblingNodes'](_0x20416a,'forward')];})['flat']();return _0x3a570a=[...new Set(_0x3a570a)],_0x3a570a;}['_getTranslationKeyForListStyle'](_0x546230){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x546230)||'default')['toUpperCase']()+'_LIST_'+_0x546230['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3ba5c8{['afterInit'](){const _0x21f788=this['editor'];if(!_0x21f788['plugins']['has']('MediaEmbedEditing'))return;const _0x13fb7e=_0x21f788['plugins']['get']('TrackChangesEditing'),_0x55d5eb=_0x21f788['locale'];_0x13fb7e['enableCommand']('mediaEmbed'),_0x13fb7e['descriptionFactory']['registerElementLabel']('media',_0x388ebf=>o(_0x55d5eb,'ELEMENT_MEDIA',_0x388ebf)),_0x21f788['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3b20ee,{writer:_0x5c1cad,options:_0x15e8ed})=>{if(_0x15e8ed['showSuggestionHighlights'])return _0x5c1cad['createEmptyElement']('div');},'converterPriority':'high'}),_0x21f788['data']['downcastDispatcher']['on']('attribute:url:media',(_0x575fa7,_0x494c7f,_0x3b48d7)=>{_0x3b48d7['options']['showSuggestionHighlights']&&_0x575fa7['stop']();},{'priority':'high'});}}class mt extends _0x3ba5c8{['afterInit'](){const _0x56f0b8=this['editor'];_0x56f0b8['plugins']['has']('MentionEditing')&&_0x56f0b8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3ba5c8{['afterInit'](){const _0x53d9a7=this['editor'];if(!_0x53d9a7['plugins']['has']('MergeFieldsEditing'))return;_0x53d9a7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x53d9a7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x3fa7bb=_0x53d9a7['plugins']['get']('TrackChangesEditing'),_0x53f645=_0x53d9a7['locale'];_0x3fa7bb['descriptionFactory']['registerElementLabel']('mergeField',_0x41d53b=>o(_0x53f645,'ELEMENT_MERGE_FIELD',_0x41d53b)),_0x3fa7bb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x53c811=>o(_0x53f645,'ELEMENT_MERGE_FIELD',_0x53c811)),_0x3fa7bb['descriptionFactory']['registerDescriptionCallback'](_0x14f374=>{if('insertion'!=_0x14f374['type']&&'deletion'!=_0x14f374['type'])return;const _0x2cedbe=_0x14f374['getContainedElement']();if(null==_0x2cedbe)return;if(!_0x2cedbe['is']('element','mergeField')&&!_0x2cedbe['is']('element','mergeFieldBlock'))return;const _0x2d4ec3=_0x53d9a7['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x2cedbe['getAttribute']('id'));return'insertion'==_0x14f374['type']?{'type':'insertion','content':o(_0x53f645,'*Insert:*\x20%0','\x22'+_0x2d4ec3+'\x22\x20'+o(_0x53f645,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x53f645,'*Remove:*\x20%0','\x22'+_0x2d4ec3+'\x22\x20'+o(_0x53f645,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3ba5c8{['afterInit'](){const _0x90fde7=this['editor'],_0x3ba477=_0x90fde7['plugins']['get']('TrackChangesEditing');_0x90fde7['plugins']['has']('MultiLevelList')&&(_0x3ba477['enableDefaultAttributesIntegration']('multiLevelList'),_0x3ba477['registerBlockAttribute']('listMarkerStyle'),_0x3ba477['descriptionFactory']['registerDescriptionCallback'](_0x854811=>this['handleDescriptions'](_0x854811)));}['handleDescriptions'](_0x51f05e){const _0x57dbe0=this['editor']['locale'],{data:_0x5ece43}=_0x51f05e,_0x4c33a2={'type':'format','content':''};if(_0x5ece43&&'listMarkerStyle'==_0x5ece43['key']){if(!_0x5ece43['oldValue'])return{'type':'format','content':o(_0x57dbe0,'*Set\x20format:*\x20%0',o(_0x57dbe0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ece43['newValue']+')'};if(!_0x5ece43['newValue']){let _0x3aba45=_0x51f05e['head'];for(;_0x3aba45;){if(_0x3aba45['data']&&'listType'==_0x3aba45['data']['key']&&_0x3aba45['data']['newValue'])return _0x4c33a2;_0x3aba45=_0x3aba45['next'];}return{'type':'format','content':o(_0x57dbe0,'*Remove\x20format:*\x20%0',o(_0x57dbe0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ece43['oldValue']+')'};}}}}class kt extends _0x3ba5c8{['afterInit'](){const _0x1ad8b0=this['editor'];if(!_0x1ad8b0['plugins']['has']('PageBreakEditing'))return;_0x1ad8b0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x42f9b8=_0x1ad8b0['plugins']['get']('TrackChangesEditing'),_0x222907=_0x1ad8b0['locale'];_0x42f9b8['descriptionFactory']['registerElementLabel']('pageBreak',_0x33985b=>o(_0x222907,'ELEMENT_PAGE_BREAK',_0x33985b));}}class bt extends _0x3ba5c8{['afterInit'](){const _0x592a7d=this['editor'];if(!_0x592a7d['plugins']['has']('Paragraph'))return;const _0x453c43=_0x592a7d['locale'],_0x399043=_0x592a7d['plugins']['get']('TrackChangesEditing');_0x399043['descriptionFactory']['registerElementLabel']('paragraph',_0x5addc3=>o(_0x453c43,'ELEMENT_PARAGRAPH',_0x5addc3)),_0x399043['enableDefaultAttributesIntegration']('paragraph'),_0x399043['enableCommand']('insertParagraph'),_0x592a7d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x592a7d),{'priority':'highest'}),_0x592a7d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38c016,_0xef718,_0xe9e603)=>{_0xe9e603['options']['showSuggestionHighlights']&&nr(_0x592a7d,{'showActiveMarker':!0x1})(_0x38c016,_0xef718,_0xe9e603);},{'priority':'highest'});const _0x5bcf4a=_0x399043['descriptionFactory'];_0x5bcf4a['registerDescriptionCallback'](_0x12f70a=>{if('insertion'!==_0x12f70a['type'])return;const {start:_0x30c819,end:_0x376a46}=_0x12f70a['getFirstRange']();if(!_0x30c819['isTouching'](_0x376a46)||!_0x30c819['nodeAfter'])return;const _0x42ca39=_0x592a7d['model']['schema'],_0x3bdbeb=_0x30c819['nodeAfter'];return _0x42ca39['isBlock'](_0x3bdbeb)&&!_0x42ca39['isLimit'](_0x3bdbeb)&&_0x42ca39['checkChild'](_0x3bdbeb,'$text')?{'type':'insertion','content':o(_0x453c43,'*Insert:*\x20%0',_0x5bcf4a['getItemLabel'](_0x3bdbeb,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x259dff=this['editor'],_0x1f07ec=_0x259dff['locale'];_0x259dff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc55932=>{if('formatBlock'!=_0xc55932['type'])return;const {data:_0x302c2e}=_0xc55932;return _0x302c2e&&'paragraph'==_0x302c2e['commandName']?{'type':'format','content':o(_0x1f07ec,'*Change\x20to:*\x20%0',o(_0x1f07ec,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3ddf44,{showActiveMarker:_0x45692b=!0x0}={}){return(_0x1bc439,_0x4275f5,_0x316f66)=>{const _0x9c188e=_0x3ddf44['plugins']['get']('TrackChangesEditing'),_0x40f53e=_0x4275f5['markerRange']['start'],_0x2ff9ea=_0x4275f5['markerRange']['end'],_0x3e4c5f=_0x3ddf44['model']['schema'];if(!_0x40f53e['isTouching'](_0x2ff9ea)||!_0x40f53e['nodeAfter'])return;const _0x497817=_0x40f53e['nodeAfter'];if(_0x3e4c5f['isBlock'](_0x497817)&&!_0x3e4c5f['isLimit'](_0x497817)&&_0x3e4c5f['checkChild'](_0x497817,'$text')){if(!_0x316f66['consumable']['consume'](_0x4275f5['markerRange'],_0x1bc439['name']))return;const {authorId:_0x4ae5df}=_0x9c188e['_splitMarkerName'](_0x4275f5['markerName']),_0x285fdb=_0x316f66['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4ae5df}),_0x2da576=_0x316f66['mapper']['toViewPosition'](_0x2ff9ea);_0x45692b&&_0x9c188e['activeMarkers']['includes'](_0x4275f5['markerName'])&&_0x316f66['writer']['addClass']('ck-suggestion-marker--active',_0x285fdb),_0x316f66['writer']['insert'](_0x2da576,_0x285fdb),_0x316f66['mapper']['bindElementToMarker'](_0x285fdb,_0x4275f5['markerName']);}};}class wt extends _0x3ba5c8{['afterInit'](){const _0x3811c8=this['editor'];if(!_0x3811c8['plugins']['has']('RemoveFormatEditing'))return;_0x3811c8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e6401=this['editor'];_0x2e6401['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2903be=>{if('formatBlock'!=_0x2903be['type']&&'formatInline'!=_0x2903be['type'])return;const {data:_0x4324f2}=_0x2903be;return _0x4324f2&&'removeFormat'==_0x4324f2['commandName']?{'type':'format','content':o(_0x2e6401['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3ba5c8{['afterInit'](){const _0x19e1b5=this['editor'];if(!_0x19e1b5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2e0a6b=_0x19e1b5['plugins']['get']('TrackChangesEditing');_0x2e0a6b['enableCommand']('goToPreviousRestrictedEditingException'),_0x2e0a6b['enableCommand']('goToNextRestrictedEditingException');const _0xeb41b1=_0x19e1b5['plugins']['get']('RestrictedEditingModeEditing');_0xeb41b1['enableCommand']('trackChanges'),_0xeb41b1['enableCommand']('acceptSuggestion'),_0xeb41b1['enableCommand']('discardSuggestion'),_0xeb41b1['enableCommand']('acceptAllSuggestions'),_0xeb41b1['enableCommand']('discardAllSuggestions'),_0xeb41b1['enableCommand']('acceptSelectedSuggestions'),_0xeb41b1['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3ba5c8{static get['requires'](){return[_0x2bc191];}['init'](){const _0x33820e=this['editor'],_0x26a158=_0x33820e['plugins']['get']('TrackChangesEditing');_0x26a158['enableCommand']('shiftEnter'),_0x33820e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x33820e),{'priority':'high'}),_0x33820e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x33820e),{'priority':'high'}),_0x33820e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ba402,_0x378fb9,_0x23b4d0)=>{_0x23b4d0['options']['showSuggestionHighlights']&&ge(_0x33820e,{'showActiveMarker':!0x1})(_0x5ba402,_0x378fb9,_0x23b4d0);}),_0x26a158['descriptionFactory']['registerElementLabel']('softBreak',_0x575ed5=>o(_0x33820e['locale'],'ELEMENT_LINE_BREAK',_0x575ed5));}}function ge(_0x2fd1a5,{showActiveMarker:_0x3021dd=!0x0}={}){return(_0x3080e7,_0x5715aa,_0x3591c4)=>{const _0x93ca95=_0x2fd1a5['plugins']['get']('TrackChangesEditing');if(!_0x3591c4['consumable']['test'](_0x5715aa['markerRange'],_0x3080e7['name']))return;const _0x4f134b=_0x2fd1a5['model'];for(const _0x17393b of _0x5715aa['markerRange']['getItems']()){if(!_0x17393b['is']('element','softBreak'))continue;const _0x472088='deletion'==_0x5715aa['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2c7984}=_0x93ca95['_splitMarkerName'](_0x5715aa['markerName']),_0x19c91d=_0x3591c4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x472088,'data-author-id':_0x2c7984}),_0x19783=_0x3591c4['mapper']['toViewPosition'](_0x4f134b['createPositionBefore'](_0x17393b));_0x3021dd&&_0x93ca95['activeMarkers']['includes'](_0x5715aa['markerName'])&&_0x3591c4['writer']['addClass']('ck-suggestion-marker--active',_0x19c91d),_0x3591c4['writer']['insert'](_0x19783,_0x19c91d),_0x3591c4['mapper']['bindElementToMarker'](_0x19c91d,_0x5715aa['markerName']);}};}class St extends _0x3ba5c8{['afterInit'](){const _0x3f47e0=this['editor'],_0x22fed6=_0x3f47e0['model'],_0x39a3e4=_0x3f47e0['locale'];if(!_0x3f47e0['plugins']['has']('StandardEditingModeEditing'))return;const _0x3b6c4b=_0x3f47e0['plugins']['get']('TrackChangesEditing'),_0x1d741a='restrictedEditingException',_0x83056b=_0x3f47e0['commands']['get'](_0x1d741a);_0x3b6c4b['enableCommand'](_0x1d741a,(_0x56fc46,_0x166b7b={})=>{const _0x9a2ca2=_0x22fed6['document']['selection'];if(_0x9a2ca2['isCollapsed'])return void _0x56fc46(_0x166b7b);const _0x4ef5a4=void 0x0!==_0x166b7b['forceValue']?_0x166b7b['forceValue']:!_0x83056b['value'];_0x22fed6['change'](()=>{const _0x34f503=Array['from'](_0x9a2ca2['getRanges']());for(const _0x2feb84 of _0x34f503){const _0x2af7fe=_0x4ef5a4?[_0x2feb84]:io(_0x1d741a,_0x2feb84,_0x22fed6);for(const _0x566057 of _0x2af7fe)_0x3b6c4b['markInlineFormat'](_0x566057,{'commandName':_0x1d741a,'commandParams':[{'forceValue':_0x4ef5a4}]});}});}),_0x3b6c4b['descriptionFactory']['registerDescriptionCallback'](_0x47a8a7=>{if('formatBlock'!=_0x47a8a7['type']&&'formatInline'!=_0x47a8a7['type'])return;const {data:_0x10c2e}=_0x47a8a7;return _0x10c2e&&_0x10c2e['commandName']==_0x1d741a?_0x10c2e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39a3e4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x39a3e4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3ba5c8{['afterInit'](){const _0x34188a=this['editor'];if(!_0x34188a['plugins']['has']('Style')||!_0x34188a['plugins']['has']('DataSchema'))return;const _0x34499a=_0x34188a['plugins']['get']('TrackChangesEditing'),_0x1f5dc8=_0x34188a['locale'],_0x14a1b0=_0x34188a['config']['get']('style')||{},_0x20d39b=_0x34188a['plugins']['get']('GeneralHtmlSupport'),_0xec300e=_0x34188a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x34188a['plugins']['get']('DataSchema'),_0x14a1b0['definitions']);_0x34499a['enableDefaultAttributesIntegration']('style');const _0xa735ed=new Set();for(const _0x288a72 of _0xec300e['block']){const _0xa92985=_0x20d39b['getGhsAttributeNameForElement'](_0x288a72['element']);_0xa735ed['add'](_0xa92985);}const _0x335e2d=new Set();for(const _0x34105b of _0xec300e['inline']){const _0x2ca300=_0x20d39b['getGhsAttributeNameForElement'](_0x34105b['element']);_0x335e2d['add'](_0x2ca300);for(const _0x117946 of _0x34105b['ghsAttributes'])_0x335e2d['add'](_0x117946);}for(const _0x2d0497 of _0xa735ed)_0x34499a['registerBlockAttribute'](_0x2d0497),_0x34499a['descriptionFactory']['registerAttributeLabel'](_0x2d0497,o(_0x1f5dc8,'FORMAT_STYLE'));for(const _0x24944e of _0x335e2d)_0x34499a['registerInlineAttribute'](_0x24944e),_0x34499a['descriptionFactory']['registerAttributeLabel'](_0x24944e,o(_0x1f5dc8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14d873=this['editor'],_0x51130f=_0x14d873['locale'];_0x14d873['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1917d2=>{if('formatBlock'!=_0x1917d2['type']&&'formatInline'!=_0x1917d2['type'])return;const {data:_0x51f65f}=_0x1917d2;return _0x51f65f&&'style'===_0x51f65f['commandName']?_0x51f65f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51130f,'*Set\x20format:*\x20%0',_0x51f65f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x51130f,'*Remove\x20format:*\x20%0',_0x51f65f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3ba5c8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x23bda3){super(_0x23bda3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4adbbe=this['editor'],_0x414013=_0x4adbbe['model']['document']['selection'];if(!_0x4adbbe['plugins']['has']('TableEditing'))return;const _0x173196=_0x4adbbe['locale'],_0x3ec281=_0x4adbbe['plugins']['get']('TrackChangesEditing'),_0x1c9c49=_0x4adbbe['plugins']['get']('TableUtils');_0x3ec281['descriptionFactory']['registerElementLabel']('table',_0x5419fa=>o(_0x173196,'ELEMENT_TABLE',_0x5419fa)),this['_setupColumnsRowsFixing'](),_0x3ec281['enableCommand']('insertTable'),_0x3ec281['enableCommand']('selectTableRow'),_0x3ec281['enableCommand']('selectTableColumn');for(const _0x247c09 of['insertTableRowAbove','insertTableRowBelow']){const _0x57792a=_0x4adbbe['commands']['get'](_0x247c09);_0x3ec281['enableCommand'](_0x247c09,_0x43afc2=>{_0x4adbbe['model']['change'](_0x5d20d8=>{_0x43afc2();const _0xfdcc83='above'===_0x57792a['order'],_0x3f329a=_0x1c9c49['getSelectionAffectedTableCells'](_0x414013),_0x46dbfa=_0x1c9c49['getRowIndexes'](_0x3f329a),_0x39732f=_0xfdcc83?_0x46dbfa['first']-0x1:_0x46dbfa['last']+0x1,_0x2d6e27=_0x3f329a[0x0]['findAncestor']('table'),_0x27d554=_0x1c9c49['createTableWalker'](_0x2d6e27,{'startRow':_0x39732f,'endRow':_0x39732f}),_0x5adc07=Array['from'](_0x27d554)['map'](_0x1d1a86=>_0x5d20d8['createRangeOn'](_0x1d1a86['cell']));_0x3ec281['markMultiRangeInsertion'](_0x5adc07,'tableRow');});});}for(const _0x3990d5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3815b0=_0x4adbbe['commands']['get'](_0x3990d5);_0x3ec281['enableCommand'](_0x3990d5,_0x2e2968=>{_0x4adbbe['model']['change'](_0x36ac33=>{_0x2e2968();const _0x3cc8ab='left'===_0x3815b0['order'],_0x316e3e=_0x1c9c49['getSelectionAffectedTableCells'](_0x414013),_0x127cf6=_0x1c9c49['getColumnIndexes'](_0x316e3e),_0x190de9=_0x3cc8ab?_0x127cf6['first']-0x1:_0x127cf6['last']+0x1,_0x56ff9f=_0x316e3e[0x0]['findAncestor']('table'),_0x3cf544=_0x1c9c49['createTableWalker'](_0x56ff9f,{'startRow':0x0,'column':_0x190de9,'includeAllSlots':!0x1}),_0x2a5b6d=Array['from'](_0x3cf544)['map'](_0x1ccd66=>_0x36ac33['createRangeOn'](_0x1ccd66['cell']));_0x3ec281['markMultiRangeInsertion'](_0x2a5b6d,'tableColumn');});});}for(const _0x1ab224 of['removeTableRow','removeTableColumn']){const _0x4e0296=_0x1ab224['substr'](0xb),_0x50f781=_0x4e0296['toLowerCase'](),_0x11781e=_0x50f781['substr'](0x0,0x3)+'span',_0x5830ae='table'+_0x4e0296,_0x63ad57='min'+_0x4e0296,_0x2731ac='max'+_0x4e0296;_0x3ec281['enableCommand'](_0x1ab224,()=>{_0x4adbbe['model']['change'](_0x7b603e=>{const _0x41ba41=_0x1c9c49['getSelectionAffectedTableCells'](_0x414013),_0x2801e7=_0x41ba41[0x0]['findAncestor']('table');let _0x2c79d3;if('removeTableRow'==_0x1ab224){const _0x40d556=_0x1c9c49['getRowIndexes'](_0x41ba41);_0x2c79d3={'startRow':_0x40d556['first'],'endRow':_0x40d556['last'],'includeAllSlots':!0x0};}else{const _0x164f4d=_0x1c9c49['getColumnIndexes'](_0x41ba41);_0x2c79d3={'startColumn':_0x164f4d['first'],'endColumn':_0x164f4d['last'],'includeAllSlots':!0x0};}const _0x1da6fd=_0x1c9c49['createTableWalker'](_0x2801e7,_0x2c79d3),_0x580570=Array['from'](_0x1da6fd)['map'](({cell:_0x2139de})=>_0x2139de),_0x3249dc=be(_0x580570['filter'](_0x5acdad=>_0x5acdad['hasAttribute'](_0x11781e))),_0x20d537=be(_0x580570['filter'](_0x4abec7=>!_0x4abec7['hasAttribute'](_0x11781e)))['map'](_0x52b429=>_0x7b603e['createRangeOn'](_0x52b429)),_0x5ec932=_0x3ec281['markMultiRangeDeletion'](_0x20d537,_0x5830ae);if(_0x5ec932&&('tableRow'==_0x5ec932['subType']||'tableColumn'==_0x5ec932['subType'])){const _0x51f60b=this['_getSuggestionCoords'](_0x5ec932);for(const _0x1a2a7f of _0x3249dc){const _0x5c2421=_0x7b603e['createRangeOn'](_0x1a2a7f),_0x405e1c=_0x1c9c49['getCellLocation'](_0x1a2a7f),_0x552f94=_0x1a2a7f['getAttribute'](_0x11781e)-0x1,_0x3ff3f4=_0x51f60b[_0x63ad57],_0x3d13c3=_0x51f60b[_0x2731ac];_0x3ff3f4<=_0x405e1c[_0x50f781]&&_0x405e1c[_0x50f781]+_0x552f94<=_0x3d13c3&&_0x5ec932['addRange'](_0x5c2421);}}});});}function _0x47ed76(_0x511163){const _0x1a6e53=Array['from'](_0x414013['getRanges']())['map'](_0x1218ee=>_0xe77a90['fromRange'](_0x1218ee));_0x4adbbe['model']['change'](_0xdfd396=>{const _0x5e0a9e=_0xdfd396['batch'];_0x511163=_0x511163['filter'](_0x43290a=>'$graveyard'!=_0x43290a['root']['rootName']),_0xdfd396['setSelection'](_0x511163),_0x4adbbe['commands']['get']('removeTableRow')['refresh'](),_0x4adbbe['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4adbbe['model']['enqueueChange'](()=>{_0x4adbbe['model']['enqueueChange'](_0x5e0a9e,_0x165365=>{const _0x48059d=_0x1a6e53['filter'](_0x52cf59=>'$graveyard'!=_0x52cf59['root']['rootName']);_0x48059d['length']>0x0&&_0x165365['setSelection'](_0x48059d);for(const _0x5d6a91 of _0x1a6e53)_0x5d6a91['detach']();});});});}function _0x450e8c(_0x3770da){_0x4adbbe['model']['change'](_0x5c9db1=>{const _0x154990=Array['from'](_0x414013['getRanges']())['map'](_0x2788d9=>_0xe77a90['fromRange'](_0x2788d9)),_0x245fc0=[];for(const _0x3a2f60 of _0x3770da)for(const _0x4da404 of _0x3a2f60['getItems']({'shallow':!0x0}))_0x245fc0['push'](_0x4da404);for(const _0x18af8a of _0x245fc0)'$graveyard'!=_0x18af8a['root']['rootName']&&(_0x5c9db1['setSelection'](_0x5c9db1['createPositionAt'](_0x18af8a,0x0)),_0x4adbbe['commands']['get']('removeTableColumn')['refresh'](),_0x4adbbe['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1c3399=_0x154990['filter'](_0x5adbd4=>'$graveyard'!=_0x5adbd4['root']['rootName']);_0x1c3399['length']>0x0&&_0x5c9db1['setSelection'](_0x1c3399);for(const _0x3b664a of _0x154990)_0x3b664a['detach']();});}function _0x52ebb9(_0x1f3049,_0x27dcd4){return _0x27dcd4['every'](_0x476ef6=>_0x1f3049['some'](_0x44db46=>_0x44db46['end']['isEqual'](_0x476ef6['start'])||_0x476ef6['end']['isEqual'](_0x44db46['start'])));}function _0xe17865(_0x2dbdc7,_0x4cbc65){return!_0x2dbdc7['some'](_0x251b05=>_0x4cbc65['some'](_0x164a5a=>_0x251b05['isIntersecting'](_0x164a5a)))&&_0x2dbdc7['some'](_0x1d0236=>_0x4cbc65['some'](_0x57ae8c=>_0x1d0236['end']['isTouching'](_0x57ae8c['start'])));}_0x4adbbe['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x378f95,_0x418bb9,_0x1f57ef)=>{if(!_0x1f57ef['options']['showSuggestionHighlights'])return;const _0x433cc2=_0x418bb9['item'];if(!_0x433cc2)return;const _0x1712f2=_0x1f57ef['mapper']['toViewElement'](_0x433cc2);function _0x40821e(_0x435c00){return Array['isArray'](_0x435c00)?_0x435c00:[_0x435c00];}_0x1712f2&&'tableCell'===_0x433cc2['name']&&_0x3f63d0(_0x1712f2,_0x1f57ef['writer'],(_0x3002a1,_0x68cddc,_0x537e95)=>_0x537e95['addClass'](_0x40821e(_0x68cddc['classes']),_0x3002a1),(_0x167f73,_0x5e788c,_0x3b390c)=>_0x3b390c['removeClass'](_0x40821e(_0x5e788c['classes']),_0x167f73));},{'priority':'highest'}),_0x3ec281['descriptionFactory']['registerDescriptionCallback'](_0x7ed058=>{if('insertion'!=_0x7ed058['type']&&'deletion'!=_0x7ed058['type'])return;const _0x3f2dab=_0x7ed058['getContainedElement']();if(null!=_0x3f2dab&&_0x3f2dab['is']('element','table')){if('insertion'==_0x7ed058['type']){const _0x11f40a=_0x7ed058['getItems']()['filter'](_0x1e8a4b=>_0x1e8a4b['is']('$textProxy'))['map'](_0x5892e5=>_0x5892e5['data']);if(_0x11f40a['length'])return{'type':'insertion','content':o(_0x173196,'*Insert:*\x20%0',o(_0x173196,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x11f40a['join']('\x20')+'\x22'))};}if('deletion'==_0x7ed058['type']){const _0x4d658e=_0x7ed058['getItems']()['filter'](_0xdca7b4=>_0xdca7b4['is']('$textProxy'))['map'](_0x3bb266=>_0x3bb266['data']);if(_0x4d658e['length'])return{'type':'deletion','content':o(_0x173196,'*Remove:*\x20%0',o(_0x173196,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d658e['join']('\x20')+'\x22'))};}}}),_0x3ec281['descriptionFactory']['registerDescriptionCallback'](_0x416c0a=>{if('tableRow'==_0x416c0a['subType']){const _0x22c764=_0x416c0a['getItems']()['filter'](_0x1e7028=>_0x1e7028['is']('$textProxy'))['map'](_0x1ed16c=>_0x1ed16c['data']),_0x37472f=this['_getSuggestionCoords'](_0x416c0a),_0x391e60=_0x37472f['maxRow']-_0x37472f['minRow']+0x1;if('insertion'==_0x416c0a['type'])return _0x22c764['length']?{'type':'insertion','content':o(_0x173196,'*Insert:*\x20%0',o(_0x173196,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x391e60,'\x22'+_0x22c764['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x173196,'*Insert:*\x20%0',o(_0x173196,'ELEMENT_TABLE_ROW',_0x391e60))};if('deletion'==_0x416c0a['type'])return _0x22c764['length']?{'type':'deletion','content':o(_0x173196,'*Remove:*\x20%0',o(_0x173196,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x391e60,'\x22'+_0x22c764['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x173196,'*Remove:*\x20%0',o(_0x173196,'ELEMENT_TABLE_ROW',_0x391e60))};}if('tableColumn'==_0x416c0a['subType']){const _0x503052=_0x416c0a['getItems']()['filter'](_0xd68d64=>_0xd68d64['is']('$textProxy'))['map'](_0x53712c=>_0x53712c['data']),_0x4c082b=this['_getSuggestionCoords'](_0x416c0a),_0x24d4b0=_0x4c082b['maxColumn']-_0x4c082b['minColumn']+0x1;if('insertion'==_0x416c0a['type'])return _0x503052['length']?{'type':'insertion','content':o(_0x173196,'*Insert:*\x20%0',o(_0x173196,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24d4b0,'\x22'+_0x503052['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x173196,'*Insert:*\x20%0',o(_0x173196,'ELEMENT_TABLE_COLUMN',_0x24d4b0))};if('deletion'==_0x416c0a['type'])return _0x503052['length']?{'type':'deletion','content':o(_0x173196,'*Remove:*\x20%0',o(_0x173196,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24d4b0,'\x22'+_0x503052['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x173196,'*Remove:*\x20%0',o(_0x173196,'ELEMENT_TABLE_COLUMN',_0x24d4b0))};}}),_0x3ec281['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x47ed76),_0x3ec281['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x47ed76),_0x3ec281['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x450e8c),_0x3ec281['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x450e8c),_0x3ec281['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x52ebb9),_0x3ec281['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x52ebb9),_0x3ec281['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xe17865),_0x3ec281['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xe17865);}['_acceptFormatSuggestionCallbackFactory'](){const _0x52e419=this['editor'],_0x10078e=_0x52e419['model']['document']['selection'];return(_0x10e8ae,_0x584f52)=>{_0x52e419['model']['change'](_0xf401f9=>{const {commandName:_0x1a1b7f,commandParams:_0x35d223}=_0x584f52;let _0x45e64e=_0x10e8ae[0x0]['end']['nodeBefore'];_0x35d223&&_0x35d223[0x0]&&!0x1===_0x35d223[0x0]['forceValue']&&(_0x45e64e=_0x10e8ae[0x0]['start']['nodeAfter']);const _0x3a6a0e=_0xf401f9['createRangeIn'](_0x45e64e);if('$graveyard'==_0x3a6a0e['root']['rootName'])return;const _0x59d301=Array['from'](_0x10078e['getRanges']())['map'](_0x4fdc9d=>_0xe77a90['fromRange'](_0x4fdc9d));_0xf401f9['setSelection'](_0x3a6a0e),_0x52e419['commands']['get'](_0x1a1b7f)['refresh'](),_0x35d223['push']({'forceDefaultExecution':!0x0}),_0x52e419['execute'](_0x1a1b7f,..._0x35d223);const _0x5a490b=_0x59d301['filter'](_0xdf8e54=>'$graveyard'!=_0xdf8e54['root']['rootName']);_0x5a490b['length']>0x0&&_0xf401f9['setSelection'](_0x5a490b);for(const _0x39ec3d of _0x59d301)_0x39ec3d['detach']();});};}['_getCoordsForCells'](_0x3ae223){const _0x1e5849=this['editor']['plugins']['get']('TableUtils');let _0x3df775=Number['MAX_SAFE_INTEGER'],_0x11911d=Number['MIN_SAFE_INTEGER'],_0x28aaa7=Number['MAX_SAFE_INTEGER'],_0x36a1d0=Number['MIN_SAFE_INTEGER'];for(const _0x232bd4 of _0x3ae223){if('$graveyard'==_0x232bd4['root']['rootName'])continue;const {row:_0x5808d8,column:_0x470d19}=_0x1e5849['getCellLocation'](_0x232bd4),_0x3e3820=_0x232bd4['hasAttribute']('rowspan')?_0x232bd4['getAttribute']('rowspan')-0x1:0x0,_0x5e58bd=_0x232bd4['hasAttribute']('colspan')?_0x232bd4['getAttribute']('colspan')-0x1:0x0;_0x3df775=_0x5808d8<_0x3df775?_0x5808d8:_0x3df775,_0x11911d=_0x5808d8+_0x3e3820>_0x11911d?_0x5808d8+_0x3e3820:_0x11911d,_0x28aaa7=_0x470d19<_0x28aaa7?_0x470d19:_0x28aaa7,_0x36a1d0=_0x470d19+_0x5e58bd>_0x36a1d0?_0x470d19+_0x5e58bd:_0x36a1d0;}return{'minRow':_0x3df775,'maxRow':_0x11911d,'minColumn':_0x28aaa7,'maxColumn':_0x36a1d0};}['_setupColumnsRowsFixing'](){const _0x225302=this['editor'],_0x54bae5=_0x225302['plugins']['get']('TrackChangesEditing'),_0x2d0c11=_0x225302['plugins']['get']('TableUtils');_0x225302['model']['document']['on']('change:data',()=>{const _0x557573=Array['from'](_0x225302['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31150a,data:_0x56879e}of _0x557573){const {group:_0x35acd2,id:_0x205f03,subType:_0x1c4311}=_0x54bae5['_splitMarkerName'](_0x31150a);if('suggestion'!=_0x35acd2)continue;if(null!=_0x56879e['oldRange'])continue;const _0xf1ccdb=_0x54bae5['getSuggestion'](_0x205f03);this['_tablePostFixingSubtypes']['includes'](_0x1c4311)&&this['_tableSuggestions']['add'](_0xf1ccdb);}},{'priority':'low'});const _0x26ae51=(_0x172184,_0x1aca24)=>{let _0x261892=!0x1;const _0x4ab6da=_0x1aca24['createRangeOn'](_0x172184),_0x11eace=_0x172184['findAncestor']('table'),_0x26ce31=_0x2d0c11['getCellLocation'](_0x172184);for(const _0xb6766e of this['_tableSuggestions']){const _0x5efa10=_0xb6766e['subType'],_0x407b97=_0x5efa10['startsWith']('tablePaste'),_0x1c8597=_0x5efa10['substr'](_0x407b97?0xa:0x5),_0x584832=_0x1c8597['toLowerCase'](),_0x5dfb07=_0x584832['substr'](0x0,0x3)+'span',_0x23a1eb='min'+_0x1c8597,_0xdc9b9b='max'+_0x1c8597;if(!_0xb6766e['isInContent'])continue;if(_0x11eace!=_0xb6766e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xb6766e['isIntersectingWithRange'](_0x4ab6da))continue;const _0x21255a=_0x172184['hasAttribute'](_0x5dfb07)?_0x172184['getAttribute'](_0x5dfb07)-0x1:0x0,_0x40c2e2=this['_getSuggestionCoords'](_0xb6766e),_0x18347d=_0x40c2e2[_0x23a1eb],_0x1e3be3=_0x40c2e2[_0xdc9b9b];_0x18347d<=_0x26ce31[_0x584832]&&_0x26ce31[_0x584832]+_0x21255a<=_0x1e3be3&&(_0xb6766e['addRange'](_0x4ab6da),_0x261892=!0x0);}return _0x261892;};_0x225302['model']['document']['registerPostFixer'](_0x4567da=>{let _0x16c885=!0x1;for(const _0x29d684 of _0x225302['model']['document']['differ']['getChanges']())if('insert'==_0x29d684['type']){if('tableRow'==_0x29d684['name']){for(const _0x54f480 of _0x29d684['position']['nodeAfter']['getChildren']())_0x16c885=_0x16c885||_0x26ae51(_0x54f480,_0x4567da);}else'tableCell'==_0x29d684['name']&&(_0x16c885=_0x16c885||_0x26ae51(_0x29d684['position']['nodeAfter'],_0x4567da));}return _0x16c885;});}['_getSuggestionCoords'](_0x30c3ae){return this['_getCoordsForCells'](_0x30c3ae['getRanges']()['map'](_0x489de9=>_0x489de9['start']['nodeAfter']));}}function be(_0x557ef6){return Array['from'](new Set(_0x557ef6)['values']());}class vt extends _0x3ba5c8{static get['requires'](){return[It];}['afterInit'](){const _0x40e4e7=this['editor'],_0x1ad09a=_0x40e4e7['model']['document']['selection'],_0x1d5c1d=_0x40e4e7['locale'];if(!_0x40e4e7['plugins']['has']('TableEditing'))return;const _0x5298d1=_0x40e4e7['plugins']['get']('TrackChangesEditing'),_0x25dd94=_0x40e4e7['plugins']['get']('TableUtils'),_0x5dd439=_0x40e4e7['plugins']['get'](It);_0x5dd439['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5298d1['enableCommand']('mergeTableCells',()=>{const _0x588f5d=_0x25dd94['getSelectionAffectedTableCells'](_0x40e4e7['model']['document']['selection']);_0x40e4e7['model']['change'](()=>{_0x5298d1['markMultiRangeBlockFormat'](_0x588f5d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x40e4e7['commands']['get']('mergeTableCells')['on']('execute',(_0xbef9c2,_0x418d54)=>{_0x40e4e7['commands']['get']('trackChanges')['value']&&(_0x418d54['length']>0x0&&_0x418d54[_0x418d54['length']-0x1]&&_0x418d54[_0x418d54['length']-0x1]['forceDefaultExecution']||_0x5298d1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xbef9c2['stop']());},{'priority':'highest'});for(const _0x11b378 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x149672=_0x40e4e7['commands']['get'](_0x11b378);_0x5298d1['enableCommand'](_0x11b378,()=>{const _0x3064d0=_0x40e4e7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f5df7=>_0x2f5df7['is']('element','tableCell')),_0x4d7e65=_0x149672['value'];_0x40e4e7['model']['change'](()=>{_0x5298d1['markMultiRangeBlockFormat']([_0x3064d0,_0x4d7e65],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x44287b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4f01e3=_0x40e4e7['commands']['get'](_0x44287b);_0x5298d1['enableCommand'](_0x44287b,()=>{const _0x20a176=_0x25dd94['getSelectionAffectedTableCells'](_0x40e4e7['model']['document']['selection'])[0x0],_0x242e67=_0x20a176['findAncestor']('table'),{column:_0x2986fc,row:_0x55c934}=_0x25dd94['getCellLocation'](_0x20a176);let _0x4f8954=[];if('horizontally'==_0x4f01e3['direction']){const _0x2de86f=_0x25dd94['createTableWalker'](_0x242e67,{'startRow':_0x55c934,'endRow':_0x55c934,'includeAllSlots':!0x0});_0x4f8954=Array['from'](_0x2de86f)['map'](_0x1a94d2=>_0x1a94d2['cell']);}else{const _0x4c7988=_0x25dd94['createTableWalker'](_0x242e67,{'column':_0x2986fc,'includeAllSlots':!0x0});_0x4f8954=Array['from'](_0x4c7988)['map'](_0x2a570d=>_0x2a570d['cell']);}_0x40e4e7['model']['change'](_0x201228=>{_0x5298d1['markBlockFormat'](_0x201228['createRangeOn'](_0x20a176),{'commandName':_0x44287b,'commandParams':[]},_0x4f8954,_0x44287b);});});}_0x5298d1['descriptionFactory']['registerDescriptionCallback'](_0x1d1cc3=>{if('formatBlock'!=_0x1d1cc3['type']&&'formatInline'!=_0x1d1cc3['type'])return;const {data:_0x3fe9a5}=_0x1d1cc3;return _0x3fe9a5&&'mergeTableCells'==_0x3fe9a5['commandName']?{'type':'format','content':o(_0x1d5c1d,'*Merge\x20cells*')}:void 0x0;}),_0x5298d1['descriptionFactory']['registerDescriptionCallback'](_0x5508bc=>{if('formatBlock'!=_0x5508bc['type']&&'formatInline'!=_0x5508bc['type'])return;const {data:_0x5205d3}=_0x5508bc;return _0x5205d3?'splitTableCellVertically'==_0x5205d3['commandName']?{'type':'format','content':o(_0x1d5c1d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5205d3['commandName']?{'type':'format','content':o(_0x1d5c1d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x587e8d=_0x5dd439['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a6b9d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5298d1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a6b9d,'accept',_0x587e8d);for(const _0x2d11c2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5298d1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d11c2,'accept',_0x587e8d);_0x5298d1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3af8fe=>{_0x40e4e7['model']['change'](_0x2540b8=>{const _0xb17c9e=Array['from'](_0x1ad09a['getRanges']())['map'](_0x3d1054=>_0xe77a90['fromRange'](_0x3d1054));_0x2540b8['setSelection'](_0x3af8fe),_0x40e4e7['commands']['get']('mergeTableCells')['refresh'](),_0x40e4e7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x31078a=_0xb17c9e['filter'](_0x379198=>'$graveyard'!=_0x379198['root']['rootName']);_0x31078a['length']>0x0&&_0x2540b8['setSelection'](_0x31078a);for(const _0x597b3b of _0xb17c9e)_0x597b3b['detach']();});});for(const _0x4dc41a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4b9c81=_0x40e4e7['commands']['get'](_0x4dc41a);_0x4b9c81['on']('set:isEnabled',(_0x34d0d4,_0x1aa2ac,_0x301cde)=>{if(_0x301cde){const _0x189de0=_0x40e4e7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4408b2=>_0x4408b2['is']('element','tableCell'));this['_areMergableCells'](_0x4b9c81['value'],_0x189de0)||(_0x34d0d4['return']=!0x1,_0x34d0d4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x374983=this['editor']['commands']['get']('mergeTableCells'),_0x6fc58c=this['editor']['plugins']['get']('TableUtils');if(!_0x374983['isEnabled'])return!0x1;const _0x1e889f=_0x6fc58c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xaed33f of _0x1e889f)for(const _0x4708d7 of _0x1e889f)if(_0xaed33f!=_0x4708d7&&!this['_areMergableCells'](_0xaed33f,_0x4708d7))return!0x1;return!0x0;}['_areMergableCells'](_0x21a32f,_0x358765){const _0x3841b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bf339=this['editor']['model']['createRangeOn'](_0x21a32f),_0x1f2d4f=this['editor']['model']['createRangeOn'](_0x358765),_0x2356ab=new Set(),_0x3368b8=new Set();for(const _0x4fcd6e of _0x3841b0['getSuggestions']())if(('insertion'==_0x4fcd6e['type']||'deletion'==_0x4fcd6e['type']||'mergeTableCells'==_0x4fcd6e['subType'])&&_0x4fcd6e['isInContent']){for(const _0x5493eb of _0x4fcd6e['getRanges']())_0x5493eb['containsRange'](_0x2bf339,!0x0)&&_0x2356ab['add'](_0x4fcd6e['type']+':'+_0x4fcd6e['author']['id']),_0x5493eb['containsRange'](_0x1f2d4f,!0x0)&&_0x3368b8['add'](_0x4fcd6e['type']+':'+_0x4fcd6e['author']['id']);}if(_0x2356ab['size']!=_0x3368b8['size'])return!0x1;for(const _0x5bfc53 of _0x2356ab)if(!_0x3368b8['has'](_0x5bfc53))return!0x1;return!0x0;}}class Ct extends _0x3ba5c8{static get['requires'](){return[It];}['afterInit'](){const _0x370ed7=this['editor'];if(!_0x370ed7['plugins']['has']('TableEditing'))return;const _0x1df803=_0x370ed7['locale'],_0x900ca0=_0x370ed7['plugins']['get']('TrackChangesEditing');_0x900ca0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x900ca0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x900ca0['registerBlockAttribute']('headingRows'),_0x900ca0['registerBlockAttribute']('headingColumns'),_0x900ca0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1df803,'FORMAT_HEADER_ROW')),_0x900ca0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1df803,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ae348=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40d5b3=this['editor']['plugins']['get']('TableUtils'),_0x4cdd7f=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x565368({showActiveMarker:_0x38bbf1=!0x0,setDataAttribute:_0x7811ca=!0x0}={}){return(_0x5c3c27,_0x2453ff,_0x2279c3)=>{const {type:_0x1e65ad,id:_0x286a38}=_0x3ae348['_splitMarkerName'](_0x2453ff['markerName']),_0x3eef10=_0x3ae348['getSuggestion'](_0x286a38),_0x535343=_0x3eef10['data'];if('formatBlock'!=_0x3eef10['type']||!_0x535343||'setTableColumnHeader'!=_0x535343['commandName'])return;if(_0x2453ff['item'])return void _0x5c3c27['stop']();if(!_0x2279c3['consumable']['consume'](_0x2453ff['markerRange'],_0x5c3c27['name']))return;const _0x1347b3=_0x2453ff['markerRange']['start']['nodeAfter'],_0xada5c=_0x2453ff['markerRange']['end']['nodeBefore'],_0x3c235d=_0x1347b3['parent']['parent'],{column:_0xd2adc5}=_0x40d5b3['getCellLocation'](_0x1347b3),{column:_0x487a03}=_0x40d5b3['getCellLocation'](_0xada5c);for(let _0x3510f7=_0xd2adc5;_0x3510f7<=_0x487a03;_0x3510f7++){const _0x512de3=_0x40d5b3['createTableWalker'](_0x3c235d,{'column':_0x3510f7,'includeAllSlots':!0x1});for(const _0x6014da of _0x512de3){const _0x48daed=_0x6014da['cell'],_0x164caf=_0x2279c3['mapper']['toViewElement'](_0x48daed);_0x2279c3['writer']['addClass']('ck-suggestion-marker-'+_0x1e65ad,_0x164caf),_0x7811ca&&_0x2279c3['writer']['setAttribute']('data-suggestion',_0x286a38,_0x164caf),_0x2279c3['mapper']['bindElementToMarker'](_0x164caf,_0x2453ff['markerName']),_0x38bbf1&&(_0x3ae348['activeMarkers']['includes'](_0x2453ff['markerName'])?_0x2279c3['writer']['addClass']('ck-suggestion-marker--active',_0x164caf):_0x2279c3['writer']['removeClass']('ck-suggestion-marker--active',_0x164caf));}}};}_0x3ae348['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4cdd7f),_0x3ae348['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4cdd7f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x565368(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ab539,_0x329acb,_0x3af150)=>{_0x3af150['options']['showSuggestionHighlights']&&_0x565368({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2ab539,_0x329acb,_0x3af150);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x200584,_0x38ef25,_0x5039d0)=>{const {type:_0x21f600,id:_0x30fcf9}=_0x3ae348['_splitMarkerName'](_0x38ef25['markerName']),_0x419971=_0x3ae348['getSuggestion'](_0x30fcf9),_0x250a37=_0x419971['data'];if('formatBlock'!=_0x419971['type']||!_0x250a37||'setTableColumnHeader'!=_0x250a37['commandName'])return;const _0x3da7cb=_0x5039d0['mapper']['markerNameToElements'](_0x38ef25['markerName']);if(_0x3da7cb){for(const _0xdcd05a of _0x3da7cb)_0x5039d0['writer']['removeClass']('ck-suggestion-marker-'+_0x21f600,_0xdcd05a),_0x5039d0['writer']['removeClass']('ck-suggestion-marker--active',_0xdcd05a),_0x5039d0['writer']['removeAttribute']('data-suggestion',_0xdcd05a),_0x5039d0['mapper']['unbindElementFromMarkerName'](_0xdcd05a,_0x38ef25['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21f45a=this['editor'],_0xed187b=_0x21f45a['locale'];function _0x19aff1(_0xa7c319){return{'type':'format','content':o(_0xed187b,'*Format:*\x20%0',_0xa7c319)};}_0x21f45a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c32b9=>{if('formatBlock'!=_0x5c32b9['type'])return;const {data:_0x15d7b9}=_0x5c32b9;if(_0x15d7b9){if('setTableRowHeader'==_0x15d7b9['commandName']){const _0x47a43a=_0x15d7b9['commandParams'][0x0]['forceValue'];return _0x19aff1(o(_0xed187b,_0x47a43a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x15d7b9['commandName']){const _0x278a26=_0x15d7b9['commandParams'][0x0]['forceValue'];return _0x19aff1(o(_0xed187b,_0x278a26?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x993925=>[_0x993925,null]));class _t extends _0x3ba5c8{static get['requires'](){return[It];}['afterInit'](){const _0x595d7b=this['editor'];if(!_0x595d7b['plugins']['has']('TableClipboard'))return;const _0x1fb4a6=_0x595d7b['plugins']['get']('TrackChangesEditing'),_0x3e22df=_0x595d7b['plugins']['get']('TableUtils'),_0x57e4be=_0x595d7b['plugins']['get'](It),_0x50e91a=_0x595d7b['plugins']['get']('TableClipboard');_0x57e4be['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x595d7b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x595d7b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3b0e83=null;_0x595d7b['model']['on']('insertContent',(_0xfc4053,_0x30e140)=>{const [_0x3c3d24,_0x237739]=_0x30e140,_0x2a1eef=_0x30e140[_0x30e140['length']-0x1];_0x2a1eef&&_0x2a1eef['forceDefaultExecution']||_0x1fb4a6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x11f63e,_0x426eca,_0x57003b,_0x5b2477,_0x419e9b){if(_0x426eca&&!_0x426eca['is']('documentSelection'))return!0x1;const _0x45ca46=_0x419e9b['getTableIfOnlyTableInContent'](_0x11f63e,_0x57003b);if(!_0x45ca46||!Re(_0x45ca46,void 0x0,_0x5b2477))return!0x1;const _0x5d7585=_0x5b2477['getSelectionAffectedTableCells'](_0x57003b['document']['selection']);if(!_0x5d7585['length'])return!0x1;const _0xf151ed=_0x5d7585[0x0]['findAncestor']('table'),_0x290b88=_0x5b2477['getRowIndexes'](_0x5d7585),_0x59884b=_0x5b2477['getColumnIndexes'](_0x5d7585),_0x1b045b={'startRow':_0x290b88['first'],'endRow':_0x290b88['last'],'startColumn':_0x59884b['first'],'endColumn':_0x59884b['last']};return 0x1==_0x5d7585['length']&&(_0x1b045b['endRow']+=_0x5b2477['getRows'](_0x45ca46)-0x1,_0x1b045b['endColumn']+=_0x5b2477['getColumns'](_0x45ca46)-0x1),Re(_0xf151ed,_0x1b045b,_0x5b2477);}(_0x3c3d24,_0x237739,_0x595d7b['model'],_0x3e22df,_0x50e91a)&&(_0xfc4053['stop'](),_0x3b0e83={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x595d7b['model']['change'](()=>{_0x595d7b['model']['insertContent'](_0x30e140[0x0],_0x30e140[0x1],_0x30e140[0x2],{'forceDefaultExecution':!0x0});const _0x280053=_0x47b6bb(),{rowInsertionRanges:_0x1ab9d6,columnInsertionRanges:_0x21b312,insertionRanges:_0xfaf9d8,deletionRanges:_0x426d10,cells:_0xa4f7da}=_0x3b0e83;_0x1ab9d6['length']&&_0x1fb4a6['markMultiRangeInsertion'](_0x1ab9d6,'tablePasteRow',{'tablePasteChainId':_0x280053}),_0x21b312['length']&&_0x1fb4a6['markMultiRangeInsertion'](_0x21b312,'tablePasteColumn',{'tablePasteChainId':_0x280053}),_0xfaf9d8['length']&&(_0x1fb4a6['markMultiRangeInsertion'](_0xfaf9d8,'tablePaste',{'tablePasteChainId':_0x280053,'skipNestingCheck':!0x0}),_0xfaf9d8['forEach'](_0x109d48=>_0x109d48['detach']?.())),_0x426d10['length']&&(_0x1fb4a6['markMultiRangeDeletion'](_0x426d10,'tablePaste',{'tablePasteChainId':_0x280053,'skipNestingCheck':!0x0}),_0x426d10['forEach'](_0x36186b=>_0x36186b['detach']?.()));const _0x27a843=_0x1fb4a6['markMultiRangeBlockFormat'](_0xa4f7da['map'](({element:_0x47f03e})=>_0x47f03e),{'formatGroupId':_0x47b6bb()},[],'tablePasteCell',{'tablePasteChainId':_0x280053});if(_0x27a843){const _0x463ebe=_0x27a843['getMarkers'](),_0x188f70=[];for(const {element:_0x355312,attributes:_0x22db81}of _0xa4f7da){if(!_0x22db81)continue;const _0x5bfa16=_0x595d7b['model']['createRangeOn'](_0x355312),_0x474d7b=_0x463ebe['find'](_0x5f1c80=>_0x5f1c80['getRange']()['isEqual'](_0x5bfa16));_0x474d7b&&_0x188f70['push']([_0x474d7b['name'],_0x22db81]);}_0x188f70['length']&&_0x27a843['setAttribute']('markerAttributes',Object['fromEntries'](_0x188f70));}_0x3b0e83=null;}));},{'priority':_0x429c11['high']+0xa}),_0x595d7b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x524c4f,_0x12564b)=>{const [_0x10d7f3,_0x5f78a7,,_0x54e284]=_0x12564b;if(!_0x3b0e83)return;_0x524c4f['stop']();const _0x17b49a=_0x10d7f3['cell'],_0x14d912=_0x5f78a7,_0x237315=ke(_0x17b49a),_0x3f4248=ke(_0x14d912);_0x524c4f['return']=_0x17b49a;let _0x298d9f=null,_0x1d056e=null;if(_0x3f4248||_0x237315){if(_0x237315&&!_0x3f4248){_0x54e284['remove'](_0x17b49a['getChild'](0x0));for(const _0x119680 of Array['from'](_0x14d912['getChildren']()))_0x54e284['insert'](_0x119680,_0x17b49a,'end');const _0x48617e=_0x3b0e83['rowInsertionIndexes']['includes'](_0x10d7f3['row']),_0x395c03=_0x3b0e83['columnInsertionIndexes']['includes'](_0x10d7f3['column']);_0x48617e||_0x395c03||(_0x298d9f=_0xe77a90['fromRange'](_0x54e284['createRangeIn'](_0x17b49a)));}else _0x3f4248&&!_0x237315&&(_0x1d056e=_0x54e284['createRangeIn'](_0x17b49a));}else{const _0x87cd2b=_0x54e284['createElement']('tableCellSuggestion'),_0x3893cb=_0x54e284['createElement']('tableCellSuggestion');_0x54e284['wrap'](_0x54e284['createRangeIn'](_0x17b49a),_0x3893cb),_0x54e284['insert'](_0x87cd2b,_0x17b49a,0x0);for(const _0x38c3a5 of Array['from'](_0x14d912['getChildren']()))_0x54e284['insert'](_0x38c3a5,_0x87cd2b,'end');_0x298d9f=_0xe77a90['fromRange'](_0x54e284['createRangeOn'](_0x87cd2b)),_0x1d056e=_0xe77a90['fromRange'](_0x54e284['createRangeOn'](_0x3893cb));}const _0x3748f6=Array['from'](_0x14d912['getAttributes']())['filter'](([_0x18528b])=>Pe['includes'](_0x18528b));_0x3b0e83['cells']['push']({'element':_0x17b49a,'attributes':_0x3748f6['length']?Object['fromEntries'](_0x3748f6):null}),_0x298d9f&&_0x3b0e83['insertionRanges']['push'](_0x298d9f),_0x1d056e&&_0x3b0e83['deletionRanges']['push'](_0x1d056e);},{'priority':'high'}),_0x3e22df['on']('insertColumns',(_0x5d3a8c,_0x2f7fc9)=>{const [_0x32bb91,_0x2c4a21={}]=_0x2f7fc9;if(!_0x3b0e83)return;const _0x57270d=_0x2c4a21['at']||0x0,_0x22a16d=_0x2c4a21['columns']||0x1;_0x3b0e83['columnInsertionIndexes']=new Array(_0x22a16d)['fill'](_0x57270d)['map']((_0x4cd1de,_0xa3c753)=>_0x4cd1de+_0xa3c753);for(const {cell:_0x2bbda0}of _0x3e22df['createTableWalker'](_0x32bb91,{'startColumn':_0x57270d,'endColumn':_0x57270d+_0x22a16d-0x1}))_0x3b0e83['columnInsertionRanges']['push'](_0x595d7b['model']['createRangeOn'](_0x2bbda0));},{'priority':'low'}),_0x3e22df['on']('insertRows',(_0x34d300,_0xca9c49)=>{const [_0x4e0797,_0x5608e8={}]=_0xca9c49;if(!_0x3b0e83)return;const _0x394dba=_0x5608e8['at']||0x0,_0x102d9a=_0x5608e8['rows']||0x1;_0x3b0e83['rowInsertionIndexes']=new Array(_0x102d9a)['fill'](_0x394dba)['map']((_0x59d8e9,_0x20be85)=>_0x59d8e9+_0x20be85);for(const {cell:_0x104827}of _0x3e22df['createTableWalker'](_0x4e0797,{'startRow':_0x394dba,'endRow':_0x394dba+_0x102d9a-0x1}))_0x3b0e83['rowInsertionRanges']['push'](_0x595d7b['model']['createRangeOn'](_0x104827));},{'priority':'low'}),_0x1fb4a6['descriptionFactory']['registerDescriptionCallback'](_0x366696=>{if(_0x366696['subType']&&_0x366696['subType']['startsWith']('tablePaste'))return _0x366696['previous']?{}:{'type':'insertion','content':o(_0x595d7b['locale'],'*Replace\x20table\x20cells*')};});const _0x39b729=()=>!0x1;for(const _0x5b8ca1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1fb4a6['_suggestionFactory']['registerCustomCallback']('insertion',_0x5b8ca1,'join',_0x39b729),_0x1fb4a6['_suggestionFactory']['registerCustomCallback']('deletion',_0x5b8ca1,'join',_0x39b729),_0x1fb4a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b8ca1,'join',_0x39b729);_0x1fb4a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x39b729),_0x1fb4a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x24bf51,_0x4a7a1b,_0xf0082f)=>{const _0x417532=_0x24bf51['map'](_0x5f50e4=>_0x5f50e4['getContainedElement']())['filter'](_0x4ea887=>_0x4ea887),_0x9a452c=new Map(_0x417532['map'](_0x838d0e=>[_0x838d0e,null]));if(_0x3b0e83){for(const {element:_0x10ee12,attributes:_0x51e053}of _0x3b0e83['cells'])_0x51e053&&_0x9a452c['set'](_0x10ee12,_0x51e053);}else{if(_0xf0082f&&_0xf0082f['markerAttributes'])for(const [_0xea8c97,_0x34952e]of Object['entries'](_0xf0082f['markerAttributes'])){const _0x152965=_0x595d7b['model']['markers']['get'](_0xea8c97),_0x3d6a77=_0x152965?_0x152965['getRange']()['getContainedElement']():null;_0x3d6a77&&_0x9a452c['set'](_0x3d6a77,_0x34952e);}}_0x595d7b['model']['change'](_0x3e1ed7=>{for(const [_0x24d1b8,_0x2fce63]of _0x9a452c)_0x3e1ed7['setAttributes']({...we,..._0x2fce63},_0x24d1b8);});});const _0x5a0785=(_0x1df1f9,_0x4dd99e)=>{_0x1fb4a6['_suggestionFactory']['registerCustomCallback'](_0x1df1f9,'tablePaste',_0x4dd99e,(_0x399c39,_0x1f1f6e,_0x5a3d9e)=>{_0x595d7b['model']['change'](_0x3e6a17=>{const _0x4f8b44=[];for(const _0x4cc507 of _0x399c39){const _0x4b759b=_0x4cc507['start']['nodeAfter'];_0x4b759b['is']('element','tableCellSuggestion')&&_0x4f8b44['push'](_0x4b759b);}_0x1fb4a6['_suggestionFactory']['getSuggestionCallback'](_0x1df1f9,null,_0x4dd99e)(_0x399c39,_0x1f1f6e,_0x5a3d9e);for(const _0x2b52a6 of _0x4f8b44)'$graveyard'!=_0x2b52a6['root']['rootName']&&_0x3e6a17['unwrap'](_0x2b52a6);});});};_0x5a0785('insertion','accept'),_0x5a0785('insertion','discard'),_0x5a0785('deletion','accept'),_0x5a0785('deletion','discard'),_0x1fb4a6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1f2ece=>{const _0x304548=_0x1f2ece['map'](_0x3146e1=>_0x3146e1['getContainedElement']()),_0x460d92=_0x304548[0x0]['findAncestor']('table'),{minRow:_0x46a635,maxRow:_0x8e8d42}=_0x57e4be['_getCoordsForCells'](_0x304548);_0x3e22df['removeRows'](_0x460d92,{'at':_0x46a635,'rows':_0x8e8d42-_0x46a635+0x1});}),_0x1fb4a6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x536997=>{const _0x22a006=_0x536997['map'](_0x5510ff=>_0x5510ff['getContainedElement']()),_0x284406=_0x22a006[0x0]['findAncestor']('table'),{minColumn:_0x35d50f,maxColumn:_0x3d1ea0}=_0x57e4be['_getCoordsForCells'](_0x22a006);_0x3e22df['removeColumns'](_0x284406,{'at':_0x35d50f,'columns':_0x3d1ea0-_0x35d50f+0x1});});const _0xf27dba=(_0x35d273,_0x283ebb)=>{if(!_0x283ebb['subType']||!_0x283ebb['subType']['startsWith']('tablePaste'))return;const _0x4eed5c=_0x283ebb['attributes']['tablePasteChainId'],_0x170d05=_0x1fb4a6['getSuggestions']()['filter'](_0x3d251c=>_0x3d251c['isInContent']&&_0x3d251c['attributes']&&_0x3d251c['attributes']['tablePasteChainId']==_0x4eed5c);_0x170d05['length']&&_0x283ebb['getAllAdjacentSuggestions']()['length']!=_0x170d05['length']&&_0x170d05['reduce']((_0x13b02b,_0x4797c7)=>(_0x13b02b['next']=_0x4797c7,_0x4797c7['previous']=_0x13b02b,_0x4797c7));};function _0x40cb3f(_0x54e2cc,_0x17459e=!0x0){const {id:_0x155fc1,authorId:_0x4c40ed}=_0x1fb4a6['_splitMarkerName'](_0x54e2cc['markerName']),_0x4abca7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x191c5a=_0x1fb4a6['activeMarkers']['includes'](_0x54e2cc['markerName']);return _0x191c5a&&_0x4abca7['push']('ck-suggestion-marker--active'),{'classes':_0x4abca7,'attributes':{'data-suggestion':_0x155fc1,'data-author-id':_0x4c40ed},'priority':_0x191c5a&&_0x17459e?0xbc2:0xbb8};}_0x1fb4a6['on']('suggestionLoaded',_0xf27dba,{'priority':'high'}),_0x1fb4a6['on']('suggestionUnloaded',_0xf27dba,{'priority':'high'}),_0x595d7b['model']['document']['registerPostFixer'](()=>{let _0x4da0b9=!0x1;const _0x4e6110=Array['from'](_0x595d7b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c9804,data:_0x7bf54b}of _0x4e6110){const {group:_0x428be2,type:_0xed5149,id:_0x30660f}=_0x1fb4a6['_splitMarkerName'](_0x1c9804);if('suggestion'!=_0x428be2||'deletion'!=_0xed5149||_0x7bf54b['oldRange'])continue;if(!_0x1fb4a6['hasSuggestion'](_0x30660f))continue;const _0x2d0fee=_0x1fb4a6['getSuggestion'](_0x30660f)['getRanges'](),_0x166f01=_0x595d7b['plugins']['get']('Users')['me'];for(const _0x331b44 of _0x1fb4a6['getSuggestions']()){if(!_0x331b44['isInContent']||_0x331b44['author']!=_0x166f01)continue;if('formatBlock'!=_0x331b44['type']||'tablePasteCell'!=_0x331b44['subType'])continue;if(_0x331b44['getRanges']()['every'](_0x2b3569=>_0x2d0fee['some'](_0x45985f=>_0x45985f['containsRange'](_0x2b3569,!0x0)))){for(const _0x5656b9 of _0x331b44['getAllAdjacentSuggestions']())_0x5656b9['isInContent']&&(_0x5656b9['discard'](),_0x4da0b9=!0x0);}}}return _0x4da0b9;}),_0x595d7b['model']['document']['registerPostFixer'](_0x58163e=>{const _0xb65568=_0x595d7b['commands']['get']('redo');if(!_0xb65568||!_0xb65568['_createdBatches']['has'](_0x58163e['batch']))return!0x1;let _0x3e98f6=!0x1;const _0x3822f4=_0x595d7b['plugins']['get']('Users')['me'],_0x304bc1=_0x595d7b['model']['document']['differ']['getChanges'](),_0x32286d=Array['from'](_0x595d7b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1cb97a,data:_0xa49d16})=>{const {group:_0x204f1d,subType:_0x27c379,authorId:_0x1cb3db}=_0x1fb4a6['_splitMarkerName'](_0x1cb97a);return'suggestion'==_0x204f1d&&'tablePaste'==_0x27c379&&_0x1cb3db==_0x3822f4['id']&&!_0xa49d16['oldRange'];});for(const _0x58113b of _0x304bc1){if('insert'!=_0x58113b['type']||'tableCellSuggestion'!=_0x58113b['name']||0x1!=_0x58113b['length'])continue;const _0x50c67a=_0x58163e['createRange'](_0x58113b['position'],_0x58113b['position']['getShiftedBy'](0x1));if(!_0x32286d['find'](({data:_0x522b22})=>_0x522b22['newRange']['isEqual'](_0x50c67a))){for(const {name:_0x254c6c,data:_0x52cb30}of _0x32286d)if(_0x50c67a['containsRange'](_0x52cb30['newRange'])){_0x58163e['updateMarker'](_0x254c6c,{'range':_0x50c67a}),_0x3e98f6=!0x0;break;}}}return _0x3e98f6;}),_0x595d7b['model']['document']['registerPostFixer'](_0x390f0c=>{let _0x1c620e=!0x1;const _0x5f3cda=_0x595d7b['plugins']['get']('Users')['me'],_0x5de31a=_0x1fb4a6['getSuggestions']()['filter'](_0x5981fb=>_0x5981fb['isInContent']&&_0x5981fb['author']==_0x5f3cda),_0x2e8822=new Set(),_0x36d776=new Set();for(const _0x1ee249 of _0x5de31a)if('tablePaste'==_0x1ee249['subType'])for(const _0x5edcf0 of _0x1ee249['getMarkers']()){const _0x3ee133=_0x5edcf0['getRange']()['getContainedElement']();if(_0x3ee133){if(_0x3ee133['is']('element','tableCellSuggestion')&&ke(_0x3ee133)){_0x1ee249['removeMarker'](_0x5edcf0['name']),_0x2e8822['add'](_0x3ee133),_0x1c620e=!0x0;const _0x249f8d=_0x3ee133['nextSibling'],_0x298066=_0x3ee133['previousSibling'],_0x384f4c=_0x249f8d&&_0x249f8d['is']('element','tableCellSuggestion'),_0x4756a6=_0x298066&&_0x298066['is']('element','tableCellSuggestion');_0x384f4c&&!_0x2e8822['has'](_0x249f8d)&&_0x36d776['add'](_0x249f8d),_0x4756a6&&!_0x2e8822['has'](_0x298066)&&_0x36d776['add'](_0x298066);}else _0x3ee133['is']('element','paragraph')&&_0x3ee133['isEmpty']&&(_0x1ee249['removeMarker'](_0x5edcf0['name']),_0x1c620e=!0x0);}}else{if('tablePasteCell'==_0x1ee249['subType']){if(!_0x1ee249['attributes']||!_0x1ee249['attributes']['tablePasteChainId'])continue;const _0x388133=_0x1ee249['attributes']['markerAttributes'];if(_0x388133&&Object['keys'](_0x388133)['length'])continue;const _0x97e25d=_0x1ee249['attributes']['tablePasteChainId'];let _0x1d42df=!0x0,_0x3008f7=!0x0;for(const _0x1c56ff of _0x5de31a)if(_0x1c56ff['subType']&&_0x1c56ff['subType']['startsWith']('tablePaste')){if(!_0x1c56ff['attributes']['tablePasteChainId']){_0x3008f7=!0x1;break;}if(_0x1c56ff['id']!=_0x1ee249['id']&&_0x1c56ff['attributes']['tablePasteChainId']==_0x97e25d){_0x1d42df=!0x1;break;}}_0x3008f7&&_0x1d42df&&(_0x1ee249['removeMarkers'](),_0x1c620e=!0x0);}}for(const _0x2eb791 of _0x2e8822)_0x390f0c['remove'](_0x2eb791);for(const _0xab76c9 of _0x36d776)_0x390f0c['unwrap'](_0xab76c9);return _0x1c620e;}),_0x595d7b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x56487f,_0x350c7e)=>_0x40cb3f(_0x56487f),'converterPriority':'high'}),_0x595d7b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x251a7f,_0x5106bd)=>_0x5106bd['options']['showSuggestionHighlights']?_0x40cb3f(_0x251a7f,!0x1):null,'converterPriority':'high'});const _0x3a227e=_0x595d7b['editing']['view'];this['listenTo'](_0x3a227e['document'],'clipboardOutput',(_0x5bca17,_0x29ded6)=>{const _0x500876=[];for(const _0x181646 of _0x3a227e['createRangeIn'](_0x29ded6['content'])['getItems']())_0x181646['is']('element','suggestion-td')&&_0x500876['push'](_0x181646);_0x3a227e['change'](_0x55df48=>{for(const _0x1e21d7 of _0x500876)_0x55df48['move'](_0x55df48['createRangeIn'](_0x1e21d7),_0x55df48['createPositionBefore'](_0x1e21d7)),_0x55df48['remove'](_0x1e21d7);});});}}function ke(_0x3d81ad){if(_0x3d81ad['isEmpty'])return!0x0;const _0x3b7683=_0x3d81ad['getChild'](0x0);return _0x3b7683['is']('element','paragraph')&&_0x3b7683['isEmpty'];}function Re(_0x2ceb0e,_0x35ab6c={},_0x7f0dff){for(const {isAnchor:_0x15ac69,cellHeight:_0x51c573,cellWidth:_0x436739}of _0x7f0dff['createTableWalker'](_0x2ceb0e,{'includeAllSlots':!0x0,..._0x35ab6c}))if(!_0x15ac69||0x1!=_0x51c573||0x1!=_0x436739)return!0x1;return!0x0;}class Nt extends _0x3ba5c8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x432311=this['editor']['plugins']['get']('TrackChangesEditing');_0x432311['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x432311['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x432311['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x432311['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x432311['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x432311['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x294bfc,_0x57a9ef){const _0x3e8416=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50fb5e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3622d5=_0x57a9ef['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x525cfe=_0x50fb5e['getColumnGroupElement'](_0x3622d5);let _0x443b16=_0x525cfe?_0x50fb5e['getTableColumnsWidths'](_0x525cfe):null,_0x32cb5b=_0x3622d5['getAttribute']('tableWidth')||null;const _0x15cbe8=_0x57a9ef['tableWidth']||_0x32cb5b,_0xa1021b=_0x57a9ef['columnWidths']||_0x443b16,_0x3cc47a=this['editor']['plugins']['get']('Users')['me'];for(const _0x1cf62b of _0x3e8416['getSuggestions']()){const _0x477aa6=_0x1cf62b['getContainedElement']();if('resizeTable'===_0x1cf62b['subType']&&_0x477aa6===_0x3622d5){_0x1cf62b['author']!==_0x3cc47a&&_0x1cf62b['discard']();const _0x5612f2=_0x1cf62b['data']['commandParams'];_0x32cb5b=_0x5612f2[0x0]['tableWidth'],_0x443b16=_0x5612f2[0x0]['columnWidths'];break;}}_0x294bfc({'table':_0x3622d5,'tableWidth':_0x15cbe8,'columnWidths':_0xa1021b}),_0x3e8416['markBlockFormat'](_0x3622d5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x32cb5b,'columnWidths':_0x443b16}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x13db49){if('formatBlock'!=_0x13db49['type']&&'formatInline'!=_0x13db49['type'])return;const {data:_0x13865}=_0x13db49;if(_0x13865&&'resizeTable'===_0x13865['formatGroupId']){const _0x36333d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x36333d)};}}}class Dt extends _0x3ba5c8{['afterInit'](){const _0x1a8bbd=this['editor'];_0x1a8bbd['plugins']['has']('Template')&&_0x1a8bbd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3ba5c8{['afterInit'](){const _0x3e0b56=this['editor'];if(!_0x3e0b56['commands']['get']('insertTableOfContents'))return;_0x3e0b56['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4b0e92=_0x3e0b56['plugins']['get']('TrackChangesEditing'),_0x204e58=_0x3e0b56['locale'];_0x4b0e92['descriptionFactory']['registerElementLabel']('tableOfContents',_0x47f788=>o(_0x204e58,'ELEMENT_TABLE_OF_CONTENTS',_0x47f788));}}class $t extends _0x3ba5c8{['afterInit'](){const _0x3d903c=this['editor'];if(!_0x3d903c['plugins']['has']('Title'))return;const _0x13f0d6=_0x3d903c['plugins']['get']('TrackChangesEditing');_0x13f0d6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3d903c['locale'],'ELEMENT_TITLE')),_0x3d903c['model']['document']['registerPostFixer'](_0x42e678=>{let _0x25a749=!0x1;const _0x33af63=Array['from'](_0x3d903c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3eb240,data:_0x51217a}of _0x33af63){const {group:_0x519c04}=_0x13f0d6['_splitMarkerName'](_0x3eb240);if('suggestion'!==_0x519c04||!_0x51217a['newRange'])continue;const _0x308114=_0x51217a['newRange'],_0x3b14f7=_0x308114['end']['nodeBefore'];if(!_0x3b14f7||!_0x3b14f7['is']('element','title-content'))continue;if(!_0x308114['start']['isTouching'](_0x308114['end']))continue;const _0x3f38f6=_0x3d903c['model']['schema']['getNearestSelectionRange'](_0x308114['end'],'forward');if(_0x3f38f6&&_0x3f38f6['isCollapsed']){const _0x316ba6=_0x42e678['createRange'](_0x308114['start'],_0x3f38f6['start']);_0x316ba6['isEqual'](_0x308114)||(_0x42e678['updateMarker'](_0x3eb240,{'range':_0x316ba6}),_0x25a749=!0x0);}_0x25a749||(_0x42e678['removeMarker'](_0x3eb240),_0x25a749=!0x0);}return _0x25a749;});}}class Bt extends _0x3ba5c8{['afterInit'](){const _0x545dc5=this['editor'],_0x278f29=_0x545dc5['plugins']['get']('TrackChangesEditing');_0x545dc5['plugins']['has']('UndoEditing')&&(_0x278f29['enableCommand']('undo'),_0x278f29['enableCommand']('redo'));}}class xt extends _0x3ba5c8{static get['requires'](){return[It];}['afterInit'](){const _0x1ad5f5=this['editor'];if(!_0x1ad5f5['plugins']['has']('TableCaptionEditing'))return;_0x1ad5f5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3ba5c8{['tableProperties'];['tableCellProperties'];constructor(_0x530d08){super(_0x530d08),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 _0x5db0d5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x198773 of this['tableProperties'])_0x5db0d5['enableCommand'](_0x198773,(_0x84880c,_0x1f67bf)=>{const _0x578bb7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x198773,[_0x578bb7],this['tableProperties'],'tableProperties',_0x84880c,_0x1f67bf);});_0x5db0d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5db0d5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5db0d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x380969,_0x22e39d)=>this['handleDiscardAction'](this['tableProperties'],_0x380969,_0x22e39d)),_0x5db0d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe8415e of this['tableCellProperties'])_0x5db0d5['enableCommand'](_0xe8415e,(_0x508f03,_0x355b13)=>{const _0x3c4396=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe8415e,_0x3c4396,this['tableCellProperties'],'tableCellProperties',_0x508f03,_0x355b13);});_0x5db0d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5db0d5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5db0d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1df199,_0x56a032)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1df199,_0x56a032)),_0x5db0d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5db0d5['descriptionFactory']['registerDescriptionCallback'](_0x19eeee=>this['handleSuggestionDescription'](_0x19eeee));}['_handlePropertyChange'](_0x3bffaa,_0x3a38fa,_0xb93dde,_0x31bf58,_0x1b0382,_0x46bf30){const _0x58628f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x46bf30['batch'],()=>{for(const _0x3223a4 of _0x3a38fa){if(this['_getSuggestion'](_0x3223a4,_0x31bf58))_0x1b0382(_0x46bf30);else{const _0x5c3f23={};for(const _0x40d1cc of _0xb93dde){const _0x5d80e3=_0x3223a4['getAttribute'](_0x40d1cc);void 0x0!==_0x5d80e3&&(_0x5c3f23[_0x40d1cc]=_0x5d80e3);}_0x1b0382(_0x46bf30),_0x58628f['markBlockFormat'](_0x3223a4,{'commandParams':[_0x5c3f23]},[],_0x31bf58);}}});}['handleDiscardAction'](_0x4f994f,_0x4f1bc7,_0x180e38){const _0x3b1924=_0x4f1bc7[0x0]['start']['nodeAfter'],_0x4f168b=_0x180e38['commandParams'][0x0];this['editor']['model']['change'](_0x3eef3e=>{for(const _0x262d3e of _0x4f994f)void 0x0!==_0x4f168b[_0x262d3e]?_0x3eef3e['setAttribute'](_0x262d3e,_0x4f168b[_0x262d3e],_0x3b1924):_0x3eef3e['removeAttribute'](_0x262d3e,_0x3b1924);});}['handleSuggestionDescription'](_0x362ef6){if(_0x362ef6['data'])switch(_0x362ef6['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'](_0x345ff4,_0x46d7eb){const _0x2e5786=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x50a7e2 of _0x2e5786['getSuggestions']({'skipNotAttached':!0x0})){const _0x33675c=_0x50a7e2['getContainedElement']();if(_0x50a7e2['subType']===_0x46d7eb&&_0x33675c===_0x345ff4)return _0x50a7e2;}return null;}}const m='$elementName';class p extends _0x3ba5c8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d4e1b,_0x39f967,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(_0x2955b8){function _0x40ee6a(_0xee3b8f){return _0xee3b8f['map'](_0x43dec1=>String['fromCharCode'](_0x43dec1))['join']('');}super(_0x2955b8),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1f788c,_0x543ae2,_0x2aa57c,_0x10f617)=>{this['_model']['change'](()=>{for(const _0x32c08f of[..._0x10f617,..._0x2aa57c])this['_model']['markers']['has'](_0x32c08f)&&_0x2955b8['editing']['reconvertMarker'](_0x32c08f);});}),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']=_0x2955b8['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(),_0x2955b8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2955b8['config']['get']('trackChanges.trackFormatChanges'),_0x2955b8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2955b8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2955b8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x40ee6a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x40ee6a([0x34,0x30,0x34,0x38,0x31,0x36,0x35,0x38]);}['init'](){const _0x2dbcff=this['editor'],_0x262869=(_0x18d18b,_0x5c1dbb)=>{if('attribute'!=_0x18d18b)return'ck-suggestion-marker-'+_0x18d18b;const _0x5361e4=_0x5c1dbb['split']('|')[0x0];return this['_isBlockAttribute'](_0x5361e4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2dbcff['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1e0cd5=>{const {id:_0x50d2cd,authorId:_0x10186b,type:_0x112680,subType:_0x15325b}=this['_splitMarkerName'](_0x1e0cd5['markerName']),_0x5b66bc=['ck-suggestion-marker',_0x262869(_0x112680,_0x15325b)];let _0x1a1782=0xbb8;return this['activeMarkers']['includes'](_0x1e0cd5['markerName'])&&(_0x5b66bc['push']('ck-suggestion-marker--active'),_0x1a1782=0xbc2),'deletion'==_0x112680&&(_0x1a1782+=0x5),{'classes':_0x5b66bc,'attributes':{'data-suggestion':_0x50d2cd,'data-author-id':_0x10186b},'priority':_0x1a1782};}}),_0x2dbcff['conversion']['for']('dataDowncast')['add'](_0x57d619=>{_0x57d619['on']('addMarker:suggestion',(_0x4684af,_0x41f23f,_0xd6e042)=>{if(!_0xd6e042['options']['showSuggestionHighlights'])return;const _0x205992=_0x41f23f['item'];if(!_0x205992)return;const _0x10cb11=_0xd6e042['mapper']['toViewElement'](_0x205992);_0x2dbcff['model']['schema']['isObject'](_0x205992)&&_0x10cb11&&!_0x10cb11['getCustomProperty']('widget')&&_0x10cb11['is']('containerElement')&&_0x44546d(_0x10cb11,_0xd6e042['writer']);},{'priority':'high'});}),_0x2dbcff['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1210ed,_0xbcb5b4)=>{if(!_0xbcb5b4['options']['showSuggestionHighlights'])return null;const {type:_0x170114,subType:_0x2de65f}=this['_splitMarkerName'](_0x1210ed['markerName']);return{'classes':['ck-suggestion-marker',_0x262869(_0x170114,_0x2de65f)],'priority':0xbb8};}});const _0x709735=({showActiveMarkers:_0x3b3d39=!0x0,isAttributeSuggestion:_0x3e9142=!0x1}={})=>(_0x2d8c4b,_0x34bcd6,_0x38e4a1)=>{if(!_0x34bcd6['item'])return;const {id:_0x42c750,authorId:_0x257fe1}=this['_splitMarkerName'](_0x34bcd6['markerName']);if(_0x3e9142){const _0x30b235=this['_suggestions']['get'](_0x42c750),_0x2a9d6f=this['_getAttributeKey'](_0x30b235);if(!this['_isBlockAttribute'](_0x2a9d6f))return;}if(_0x34bcd6['item']['is']('selection'))return void _0x38e4a1['consumable']['consume'](_0x34bcd6['item'],_0x2d8c4b['name']);const _0x5ea8c9=_0x38e4a1['mapper']['toViewElement'](_0x34bcd6['item']);if(_0x34bcd6['item']['is']('element')&&_0x2dbcff['model']['schema']['isBlock'](_0x34bcd6['item'])&&!_0x5ea8c9['getCustomProperty']('addHighlight')){_0x38e4a1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5ea8c9),_0x38e4a1['writer']['setAttribute']('data-suggestion',_0x42c750,_0x5ea8c9),_0x38e4a1['writer']['setAttribute']('data-author-id',_0x257fe1,_0x5ea8c9),_0x38e4a1['mapper']['bindElementToMarker'](_0x5ea8c9,_0x34bcd6['markerName']),_0x3b3d39&&(this['activeMarkers']['includes'](_0x34bcd6['markerName'])?_0x38e4a1['writer']['addClass']('ck-suggestion-marker--active',_0x5ea8c9):_0x38e4a1['writer']['removeClass']('ck-suggestion-marker--active',_0x5ea8c9));for(const _0x544f23 of _0x2dbcff['model']['createRangeIn'](_0x34bcd6['item'])['getItems']())_0x38e4a1['consumable']['consume'](_0x544f23,_0x2d8c4b['name']);_0x38e4a1['consumable']['consume'](_0x34bcd6['item'],_0x2d8c4b['name']);}};_0x2dbcff['conversion']['for']('dataDowncast')['add'](_0x3d3ec8=>{_0x3d3ec8['on']('addMarker:suggestion:formatBlock',(_0x5945a3,_0x1f1bcc,_0x2f9ba4)=>{_0x2f9ba4['options']['showSuggestionHighlights']&&_0x709735({'showActiveMarkers':!0x1})(_0x5945a3,_0x1f1bcc,_0x2f9ba4);},{'priority':'highest'});}),_0x2dbcff['conversion']['for']('dataDowncast')['add'](_0x325a3b=>{_0x325a3b['on']('addMarker:suggestion:attribute',(_0x20b160,_0x4c6196,_0x298c07)=>{_0x298c07['options']['showSuggestionHighlights']&&_0x709735({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x20b160,_0x4c6196,_0x298c07);},{'priority':'highest'});}),_0x2dbcff['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4054e1,_0x123c7f)=>_0x123c7f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4054e1['substr'](0xb)}}),_0x2dbcff['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2205da,{writer:_0x2be3e2})=>{let _0xbe074='suggestion:'+_0x2205da['getAttribute']('suggestion-type')+':'+_0x2205da['getAttribute']('id');return _0x2205da['getAttribute']('marker-count')&&(_0xbe074+=':'+_0x2205da['getAttribute']('marker-count')),_0x2be3e2['createElement']('$marker',{'data-name':_0xbe074});}}),_0x2dbcff['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2dbcff['conversion']['for']('editingDowncast')['add'](_0x38d011=>{_0x38d011['on']('addMarker:suggestion:formatBlock',_0x709735(),{'priority':'high'});}),_0x2dbcff['conversion']['for']('editingDowncast')['add'](_0x4d545a=>{_0x4d545a['on']('addMarker:suggestion:attribute',_0x709735({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2dbcff['conversion']['for']('editingDowncast')['add'](_0x2f0bba=>{_0x2f0bba['on']('removeMarker:suggestion:formatBlock',(_0x25d86e,_0x462aef,_0x7a4e32)=>{const _0x4bb912=_0x7a4e32['mapper']['markerNameToElements'](_0x462aef['markerName']);if(_0x4bb912){for(const _0x3ac6aa of _0x4bb912)_0x3ac6aa['getCustomProperty']('addHighlight')||(_0x7a4e32['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ac6aa),_0x7a4e32['writer']['removeAttribute']('data-suggestion',_0x3ac6aa),_0x7a4e32['writer']['removeAttribute']('data-author-id',_0x3ac6aa),_0x7a4e32['mapper']['unbindElementFromMarkerName'](_0x3ac6aa,_0x462aef['markerName']));}},{'priority':'high'});}),_0x2dbcff['conversion']['for']('editingDowncast')['add'](_0x1ad33a=>{_0x1ad33a['on']('removeMarker:suggestion:attribute',(_0x5053fa,_0x1f3205,_0x451439)=>{const _0x57f491=_0x451439['mapper']['markerNameToElements'](_0x1f3205['markerName']);if(!_0x57f491)return;const {id:_0xf99605}=this['_splitMarkerName'](_0x1f3205['markerName']),_0xe2f95b=this['_suggestions']['get'](_0xf99605),_0x1e49da=this['_getAttributeKey'](_0xe2f95b);if(this['_isBlockAttribute'](_0x1e49da)){for(const _0x5a6400 of _0x57f491)_0x5a6400['getCustomProperty']('addHighlight')||(_0x451439['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a6400),_0x451439['writer']['removeAttribute']('data-suggestion',_0x5a6400),_0x451439['writer']['removeAttribute']('data-author-id',_0x5a6400),_0x451439['mapper']['unbindElementFromMarkerName'](_0x5a6400,_0x1f3205['markerName']));}},{'priority':'high'});}),_0x2dbcff['model']['document']['registerPostFixer'](_0x433245=>{let _0x5d465a=!0x1;const _0x13fdfd=Array['from'](_0x2dbcff['model']['document']['differ']['getChangedMarkers']()),_0x3d0b64=new Set();for(const {name:_0x4aa5da,data:_0x32495e}of _0x13fdfd){const {group:_0x56c93b,type:_0x506d3c,subType:_0x368520,id:_0x1a8034}=this['_splitMarkerName'](_0x4aa5da);if('suggestion'!==_0x56c93b)continue;const _0x41c2c0=this['_suggestions']['get'](_0x1a8034);if(null!=_0x32495e['newRange']){'formatInline'==_0x506d3c&&(_0x5d465a=_0x5d465a||Ut(_0x32495e['newRange'],_0x4aa5da,_0x433245,_0x2dbcff['model']['schema']));const _0x2158e4='attribute'==_0x506d3c&&this['_isBlockAttribute'](_0x368520['split']('|')[0x0]);if(_0x32495e['newRange']['isCollapsed']||'$graveyard'==_0x32495e['newRange']['root']['rootName']||'formatBlock'==_0x506d3c&&!Ft(_0x32495e['newRange'])||_0x2158e4&&!Ft(_0x32495e['newRange'])||'deletion'==_0x506d3c&&!(!Vt(_0x2d56a4=_0x32495e['newRange'])&&!function(_0x16d9f0){return _0x16d9f0['start']['parent']==_0x16d9f0['end']['nodeBefore']&&_0x16d9f0['start']['isAtEnd'];}(_0x2d56a4)))_0x433245['removeMarker'](_0x4aa5da),_0x5d465a=!0x0;else{if(!_0x41c2c0||!_0x41c2c0['isInContent'])continue;if(_0x32495e['newRange']&&_0x32495e['oldRange']&&_0x32495e['newRange']['isEqual'](_0x32495e['oldRange']))continue;_0x3d0b64['add'](_0x41c2c0);}}}var _0x2d56a4;return _0x3d0b64['size']>0x0&&(_0x5d465a=!!this['_joinWithAdjacentSuggestions'](_0x3d0b64)||_0x5d465a),_0x5d465a;}),_0x2dbcff['model']['document']['registerPostFixer'](_0x5ac080=>{let _0x4ef361=!0x1;for(const _0x49f3fa of _0x2dbcff['model']['document']['differ']['getChanges']())if('insert'==_0x49f3fa['type'])for(const _0x4eb154 of this['_suggestions']['values']()){if(_0x4eb154['isMultiRange']||!_0x4eb154['isInContent'])continue;const _0x304dfd='formatBlock'==_0x4eb154['type'],_0x18637e=this['_getAttributeKey'](_0x4eb154),_0x93f79c=_0x18637e&&this['_isBlockAttribute'](_0x18637e);if(!_0x304dfd&&!_0x93f79c)continue;const _0x1c56f1=_0x4eb154['getFirstRange']();if(_0x1c56f1['start']['parent']!=_0x1c56f1['end']['parent']&&!_0x1c56f1['end']['isAtEnd']){const _0xfc295f=_0x2dbcff['model']['createPositionAt'](_0x1c56f1['start']['nodeAfter'],'end'),_0x23e2b7=_0x2dbcff['model']['createRange'](_0x1c56f1['start'],_0xfc295f);_0x5ac080['updateMarker'](_0x4eb154['getFirstMarker'](),{'range':_0x23e2b7}),_0x4ef361=!0x0;}}return _0x4ef361;}),_0x2dbcff['model']['document']['registerPostFixer'](_0x5b95ea=>this['_processAttributeChanges'](_0x5b95ea)),_0x2dbcff['model']['document']['registerPostFixer'](_0x38d336=>!_0x38d336['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x38d336)),_0x2dbcff['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2dbcff['model']['document']['on']('change:data',(_0xe15fca,_0x52ccda)=>{if(!_0x52ccda['isLocal']||_0x52ccda['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4dd23b=_0x2dbcff['model']['document']['differ']['getChanges']();if(0x0==_0x4dd23b['length'])return;const _0x26bf0e=[],_0x5bc2bd=_0x4dd23b['filter'](_0x3da9fb=>'attribute'==_0x3da9fb['type']),_0x2e75c5=_0x4dd23b['filter'](_0x28ac28=>'insert'==_0x28ac28['type']&&'$text'!=_0x28ac28['name']);for(const _0x2fb9be of _0x5bc2bd)this['_isRegisteredAttribute'](_0x2fb9be['attributeKey'])&&_0x26bf0e['push']({'key':_0x2fb9be['attributeKey'],'newValue':_0x2fb9be['attributeNewValue'],'oldValue':_0x2fb9be['attributeOldValue'],'range':Pt(_0x2fb9be['range'],_0x2dbcff['model'])});for(const _0x49590b of _0x2e75c5){if('rename'!=_0x49590b['action']&&'refresh'!=_0x49590b['action'])continue;const _0x208579=Lt(_0x49590b['position']['nodeAfter'],_0x2dbcff['model']),_0x54fed2=_0x49590b['before'];'rename'==_0x49590b['action']&&_0x26bf0e['push']({'key':m,'newValue':_0x49590b['name'],'oldValue':_0x54fed2['name'],'range':_0x208579});for(const [_0x18cad2,_0x12b62b]of _0x54fed2['attributes']){if(!this['_isRegisteredAttribute'](_0x18cad2))continue;const _0x578224=_0x49590b['attributes']['get'](_0x18cad2);_0x12b62b!==_0x578224&&_0x26bf0e['push']({'key':_0x18cad2,'newValue':_0x578224,'oldValue':_0x12b62b,'range':_0x208579});}for(const [_0x19be73,_0x5499de]of _0x49590b['attributes'])this['_isRegisteredAttribute'](_0x19be73)&&(_0x54fed2['attributes']['has'](_0x19be73)||_0x26bf0e['push']({'key':_0x19be73,'newValue':_0x5499de,'oldValue':null,'range':_0x208579}));}0x0!=_0x26bf0e['length']&&_0x2dbcff['model']['enqueueChange'](_0x52ccda,_0xb8af96=>{const _0x5c7015=_0x47b6bb();for(const {range:_0x345976,key:_0x251e18,oldValue:_0x2bf2b7,newValue:_0x108eda}of _0x26bf0e)this['markAttributeChange'](_0x345976,_0x251e18,_0x2bf2b7,_0x108eda,{'groupId':_0x5c7015});this['_reduceExistingSuggestions'](_0xb8af96,_0x26bf0e);});},{'priority':'lowest'}),_0x2dbcff['model']['markers']['on']('update:suggestion',(_0x4d5b1f,_0x47375f,_0x9adc4d)=>{if(null==_0x9adc4d){const {id:_0x4c8f02}=this['_splitMarkerName'](_0x47375f['name']),_0x426cf2=this['_suggestions']['get'](_0x4c8f02);_0x426cf2&&_0x426cf2['addMarkerName'](_0x47375f['name']);}}),_0x2dbcff['model']['document']['on']('change:data',()=>{const _0x1bed3e=Array['from'](_0x2dbcff['model']['document']['differ']['getChangedMarkers']())['filter'](_0x47ab19=>'suggestion'===this['_splitMarkerName'](_0x47ab19['name'])['group']);if(0x0===_0x1bed3e['length'])return;_0x1bed3e['sort']((_0x2316b1,_0x5e2387)=>{const _0x1f623a=_0x2316b1['data']['oldRange'],_0xdd16f4=_0x5e2387['data']['oldRange'];return null===_0x1f623a&&null===_0xdd16f4?0x0:null===_0x1f623a&&null!==_0xdd16f4?-0x1:null!==_0x1f623a&&null===_0xdd16f4?0x1:_0x1f623a['start']['isBefore'](_0xdd16f4['start'])?-0x1:0x1;});const _0x46d07a=new Set(),_0x49e9fa=new Set();for(const {name:_0x4d53a4,data:_0x532727}of _0x1bed3e){const {id:_0x1c29e0}=this['_splitMarkerName'](_0x4d53a4);if(null===_0x532727['oldRange']){const _0x196a66=this['_handleNewSuggestionMarker'](_0x4d53a4);_0x49e9fa['add'](_0x196a66);}else{const _0x503703=this['_suggestions']['get'](_0x1c29e0);null!==_0x532727['newRange']||_0x503703['isInContent']?(_0x46d07a['add'](_0x503703['head']),_0x49e9fa['add'](_0x503703)):this['_removeSuggestion'](_0x503703);}}_0x49e9fa['size']>0x0&&this['_refreshSuggestionsChain'](_0x49e9fa);for(const _0x27c1c4 of _0x46d07a)this['fire']('suggestionChanged',_0x27c1c4);}),_0x2dbcff['model']['on']('applyOperation',(_0x9e3146,_0x1a896e)=>{const _0x2ad17a=_0x1a896e[0x0];if(!this['_suggestions']['size'])return;if(!_0x2ad17a['isDocumentOperation'])return;if(_0x2ad17a['batch']['isUndo']||!_0x2ad17a['batch']['isLocal'])return;let _0x36cdae,_0x4cb7c5;switch(_0x2ad17a['type']){case'insert':_0x36cdae=_0x2dbcff['model']['createPositionAt'](_0x2ad17a['position']),_0x4cb7c5=_0x36cdae['getShiftedBy'](_0x2ad17a['howMany']);break;case'split':_0x36cdae=_0x2dbcff['model']['createPositionAt'](_0x2ad17a['splitPosition']),_0x4cb7c5=_0x2dbcff['model']['createPositionAt'](_0x2ad17a['moveTargetPosition']);break;case'move':_0x36cdae=_0x2dbcff['model']['createPositionAt'](_0x2ad17a['targetPosition']),_0x4cb7c5=_0x36cdae['getShiftedBy'](_0x2ad17a['howMany']);break;default:return;}const _0x393fe2=_0x2dbcff['model']['createRange'](_0x36cdae,_0x4cb7c5);_0x2dbcff['model']['change'](()=>{for(const {suggestion:_0x136ba8,meta:_0x5508e2}of this['_findSuggestions'](_0x393fe2)){if(_0x136ba8['isMultiRange'])continue;if('formatInline'==_0x136ba8['type'])continue;const _0x34d2ba=this['_getAttributeKey'](_0x136ba8);if(_0x34d2ba&&this['_isBlockAttribute'](_0x34d2ba)&&'split'!=_0x2ad17a['type'])continue;const _0x3e7893=_0x136ba8['data']&&_0x136ba8['data']['multipleBlocks'];('formatBlock'!=_0x136ba8['type']||'split'==_0x2ad17a['type']&&!_0x3e7893)&&(_0x5508e2['containsRangeInObject']||'insertion'==_0x136ba8['type']&&_0x5508e2['isOwn']||_0x136ba8['getFirstRange']()['containsRange'](_0x393fe2)&&this['_breakSuggestionMarker'](_0x136ba8,_0x36cdae,_0x4cb7c5));}});},{'priority':'lowest'}),_0x2dbcff['model']['on']('deleteContent',(_0x44bcda,_0x4fe465)=>{const _0x48a0d8=_0x4fe465[0x0],_0x99bdb=_0x4fe465[0x1];if(_0x99bdb&&_0x99bdb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x48a0d8['isCollapsed'])return;const _0x5076b0=_0x2dbcff['model']['schema'],{start:_0x354c1e,end:_0x2fa3a8}=_0x48a0d8['getFirstRange'](),_0x5ec30d=_0x354c1e['nodeAfter']&&_0x5076b0['isLimit'](_0x354c1e['nodeAfter'])?null:_0x5076b0['getNearestSelectionRange'](_0x354c1e,'forward'),_0x363e16=_0x2fa3a8['nodeBefore']&&_0x5076b0['isLimit'](_0x2fa3a8['nodeBefore'])?null:_0x5076b0['getNearestSelectionRange'](_0x2fa3a8,'backward'),_0x222558=_0x2dbcff['model']['createRange'](_0x5ec30d?_0x5ec30d['start']:_0x354c1e,_0x363e16?_0x363e16['end']:_0x2fa3a8);_0x2dbcff['model']['change'](_0x37aefb=>{this['markDeletion'](_0x222558);const _0x42a50c=_0x2dbcff['model']['schema']['getNearestSelectionRange'](_0x222558['start']);_0x48a0d8['is']('documentSelection')?_0x37aefb['setSelection'](_0x42a50c):_0x48a0d8['setTo'](_0x42a50c);}),_0x44bcda['stop']();},{'priority':_0x429c11['normal']+0xa}),_0x2dbcff['model']['on']('insertContent',(_0xeaf826,_0x52b481)=>{const _0x1323e7=_0x52b481[_0x52b481['length']-0x1];_0x1323e7&&_0x1323e7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2dbcff['model']['change'](()=>{let _0x19ee02=_0x2dbcff['model']['insertContent'](_0x52b481[0x0],_0x52b481[0x1],_0x52b481[0x2],{'forceDefaultExecution':!0x0});if(!_0x19ee02)return;_0xeaf826['return']=_0x19ee02['clone']();const _0xb229f5=_0x19ee02['end']['nodeBefore'],_0x574b11=_0x2dbcff['model']['schema'];_0xb229f5&&_0x574b11['isBlock'](_0xb229f5)&&!_0x574b11['isObject'](_0xb229f5)&&(_0x19ee02=_0x2dbcff['model']['createRange'](_0x19ee02['start'],_0x2dbcff['model']['createPositionAt'](_0xb229f5,'end'))),this['markInsertion'](_0x19ee02);}),_0xeaf826['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x505b86=new x(_0x2dbcff,this['_suggestions']);_0x2dbcff['commands']['add']('acceptSuggestion',_0x505b86),this['enableCommand']('acceptSuggestion');const _0x4c3243=new R(_0x2dbcff,this['_suggestions']);_0x2dbcff['commands']['add']('discardSuggestion',_0x4c3243),this['enableCommand']('discardSuggestion'),_0x2dbcff['commands']['add']('acceptAllSuggestions',new E(_0x2dbcff,_0x505b86,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2dbcff['commands']['add']('discardAllSuggestions',new E(_0x2dbcff,_0x4c3243,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2dbcff['commands']['add']('acceptSelectedSuggestions',new O(_0x2dbcff,_0x505b86,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2dbcff['commands']['add']('discardSelectedSuggestions',new O(_0x2dbcff,_0x4c3243,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x193df8=_0x2dbcff['plugins']['get']('CommentsRepository');this['listenTo'](_0x193df8,'addComment',(_0x8daf2c,{threadId:_0x1670e7})=>{const _0x572416=this['_suggestions']['get'](_0x1670e7);_0x572416&&_0x572416['commentThread']&&0x1===_0x572416['commentThread']['length']&&this['_updateSuggestionData'](_0x1670e7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x193df8,'removeComment',(_0xaae267,{threadId:_0x244f75})=>{const _0x489503=this['_suggestions']['get'](_0x244f75);_0x489503&&_0x489503['commentThread']&&!_0x489503['commentThread']['length']&&this['_updateSuggestionData'](_0x244f75,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3e1a59){if(this['_adapter'])throw new _0x106dea('track-changes-adapter-already-set',this);this['_adapter']=_0x3e1a59;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x413ae3=!0x1,toJSON:_0x39bc37=!0x1}={}){const _0x3eab6d=[];for(const _0x35ce9f of this['_suggestions']['values']())_0x413ae3&&!_0x35ce9f['isInContent']||_0x3eab6d['push'](_0x35ce9f);return _0x39bc37?_0x3eab6d['map'](_0x3977e2=>_0x3977e2['toJSON']()):_0x3eab6d;}['getSuggestion'](_0x30d256){const _0x349f3b=this['_suggestions']['get'](_0x30d256);if(!_0x349f3b)throw new _0x106dea('track-changes-suggestion-not-found',this);return _0x349f3b;}['hasSuggestion'](_0x507e1c){return this['_suggestions']['has'](_0x507e1c);}['addSuggestionData'](_0x559488){const {authorId:_0x24eee7,id:_0x4f008b,attributes:_0x4c6d18}=_0x559488,[_0x5cccaf,_0x2d716a]=_0x559488['type']['split'](':'),_0x4dd056=this['_suggestions']['get'](_0x4f008b)||this['_createSuggestion'](_0x5cccaf,_0x2d716a,_0x4f008b,_0x24eee7,_0x4c6d18);if(this['_addThreadToSuggestion'](_0x4dd056),this['_checkSuggestionCorrectness'](_0x4dd056,_0x5cccaf,_0x2d716a||null,_0x24eee7),_0x4dd056['createdAt']=_0x559488['createdAt'],_0x4dd056['_isDataLoaded']=!0x0,_0x4c6d18&&_0x4c6d18['@external']){const _0xfeacf4=_0x4c6d18['@external'],_0xa0eaa7=this['_getExternalAuthor'](_0xfeacf4['authorName']);_0x4dd056['authoredAt']=_0xfeacf4['createdAt'],_0x4dd056['author']=_0xa0eaa7,_0x4dd056['isExternal']=!0x0;}else _0x4dd056['authoredAt']=_0x559488['createdAt'];switch(_0x559488['data']&&(_0x4dd056['data']=_0x559488['data']),_0x559488['attributes']&&(_0x4dd056['attributes']=_0x559488['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4dd056['_saved']=!0x0),this['_suggestionState']['get'](_0x4dd056)){case'notReady':this['_suggestionState']['set'](_0x4dd056,'dataReady');break;case'markerReady':_0x4dd056['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4dd056])),this['_refreshSuggestionsChain'](new Set([_0x4dd056])),this['_suggestionState']['set'](_0x4dd056,'ready'),this['fire']('suggestionLoaded',_0x4dd056)):this['_suggestionState']['set'](_0x4dd056,'removed');}return _0x4dd056;}['acceptSuggestion'](_0x4cdda0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x493639 of _0x4cdda0['getAllAdjacentSuggestions']())_0x493639['accept']();});});}['discardSuggestion'](_0x509d7e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4cc2ad of _0x509d7e['getAllAdjacentSuggestions']())_0x4cc2ad['discard']();});});}['enableCommand'](_0x51e955,_0x2c7bf6){const _0x415387=this['editor']['commands']['get'](_0x51e955);if(!_0x415387)throw new _0x106dea('track-changes-command-not-found',this,{'commandName':_0x51e955});if(this['_enabledCommands']['has'](_0x415387))throw new _0x106dea('track-changes-enable-command-twice',this,{'commandName':_0x51e955});this['_enabledCommands']['add'](_0x415387),_0x2c7bf6&&_0x415387['on']('execute',(_0x396847,_0x5ca1a7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5ca1a7['length']>0x0&&_0x5ca1a7[_0x5ca1a7['length']-0x1]&&_0x5ca1a7[_0x5ca1a7['length']-0x1]['forceDefaultExecution']?_0x5ca1a7['pop']():(_0x396847['return']=_0x2c7bf6((..._0x10ed4a)=>_0x415387['execute'](..._0x10ed4a,{'forceDefaultExecution':!0x0}),..._0x5ca1a7),_0x396847['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x22eaf6){let _0x4574c7,_0x85c032;const _0x65218a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4574c7=_0x22eaf6();}catch(_0x38169a){_0x85c032=_0x38169a;}return _0x65218a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x85c032&&_0x106dea['rethrowUnexpectedError'](_0x85c032,this),_0x4574c7;}['markInsertion'](_0x71581d,_0x485f7f=null,_0x1b4c37={}){if(_0x71581d['isCollapsed'])return null;const _0x266d77=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x472b4c,meta:_0x3166e1}of this['_findSuggestions'](_0x71581d,'insertion'))if(_0x3166e1['isOwn']){if(!_0x3166e1['isNextTo']){if(_0x3166e1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x472b4c,_0x1b4c37))continue;return _0x472b4c;}if(qt(_0x472b4c,_0x1b4c37))return _0x472b4c;this['_breakSuggestionMarker'](_0x472b4c,_0x71581d['start'],_0x71581d['end']);break;}if(_0x485f7f==_0x472b4c['subType']&&qt(_0x472b4c,_0x1b4c37)){const _0x43692e=_0x472b4c['getFirstRange']();return _0x43692e['start']['isEqual'](_0x71581d['end'])?this['_setSuggestionRange'](_0x472b4c,this['_model']['createRange'](_0x71581d['start'],_0x43692e['end'])):this['_setSuggestionRange'](_0x472b4c,this['_model']['createRange'](_0x43692e['start'],_0x71581d['end'])),_0x472b4c;}}const _0x31a845=_0x47b6bb(),_0x15adfb=_0x266d77['id'],_0x48c304=_0x485f7f?'insertion:'+_0x485f7f:'insertion',_0x2625bd=this['_setSuggestionData']({'id':_0x31a845,'type':_0x48c304,'createdAt':new Date(),'authorId':_0x15adfb,'attributes':_0x1b4c37});return this['_addSuggestionMarker'](_0x48c304,_0x31a845,_0x15adfb,_0x71581d),_0x2625bd;}['markMultiRangeInsertion'](_0x165d98,_0x5b619f='multi',_0x103cec={}){const _0x27d0d2=this['editor']['plugins']['get']('Users')['me'],_0xd57296=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5b619f,'join');for(const _0x4900c1 of this['getSuggestions']())if(_0x4900c1['author']['id']==_0x27d0d2['id']&&'insertion'==_0x4900c1['type']&&_0x4900c1['subType']==_0x5b619f&&qt(_0x4900c1,_0x103cec)&&(_0xd57296(_0x4900c1['getRanges'](),_0x165d98)||_0xd57296(_0x165d98,_0x4900c1['getRanges']()))){for(const _0x32beae of _0x165d98)_0x4900c1['addRange'](_0x32beae);return _0x4900c1;}for(const {suggestion:_0x14b0aa,meta:_0x520874}of this['_findSuggestions'](_0x165d98,'insertion')){if(!_0x520874['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x520874['containsRangeInObject'])continue;if(!qt(_0x14b0aa,_0x103cec))continue;let _0x2da728=!0x0;for(const _0x45dc3d of _0x14b0aa['getRanges']())for(const _0x1a6dbf of _0x165d98)if(!_0x45dc3d['containsRange'](_0x1a6dbf)){_0x2da728=!0x1;break;}if(_0x2da728)return _0x14b0aa;}const _0x226325=_0x47b6bb(),_0x1e0124=_0x27d0d2['id'],_0xca8e7e='insertion:'+_0x5b619f,_0x1843a7=this['_setSuggestionData']({'id':_0x226325,'type':_0xca8e7e,'createdAt':new Date(),'authorId':_0x1e0124,'attributes':_0x103cec});for(const _0x5af68e of _0x165d98)this['_addSuggestionMarker'](_0xca8e7e,_0x226325,_0x1e0124,_0x5af68e,u['getMultiRangeId']());return _0x1843a7;}['markInlineFormat'](_0x554225,_0x43a069,_0x5cd520=null,_0x491aca={}){if(_0x5cd520=_0x5cd520||Gt(_0x43a069),_0x554225['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x55a8d4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5cd520,'accept');return this['forceDefaultExecution'](()=>_0x55a8d4([_0x554225],_0x43a069,_0x491aca)),null;}const _0x1c6686=this['editor']['plugins']['get']('Users')['me'],_0x471955=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x28289f,meta:_0x1a38d5}of this['_findSuggestions'](_0x554225,'insertion'))_0x1a38d5['isOwn']&&!_0x1a38d5['isInsideObject']&&_0x471955['push'](..._0x28289f['getRanges']());}const _0x277262=function(_0xadc2bd,_0x3b56a1){const _0x3710b5=[];for(const _0x56eb0c of _0x3b56a1){const _0x5aa279=_0xadc2bd['getIntersection'](_0x56eb0c);_0x5aa279&&_0x3710b5['push'](_0x5aa279);}return _0x3710b5;}(_0x554225,_0x471955),_0x39401a=function(_0x22f50c,_0x5d4095){const _0x7b60c0=[_0x22f50c];for(const _0x5124a4 of _0x5d4095){let _0x7bb232=0x0;for(;_0x7bb232<_0x7b60c0['length'];){const _0x5ec276=_0x7b60c0[_0x7bb232]['getDifference'](_0x5124a4);_0x7b60c0['splice'](_0x7bb232,0x1,..._0x5ec276),_0x7bb232+=_0x5ec276['length'];}}return _0x7b60c0;}(_0x554225,_0x471955);_0x277262['length']&&this['_model']['change'](()=>{for(const _0x365bab of _0x277262){const _0x290828=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5cd520,'accept');this['forceDefaultExecution'](()=>_0x290828([_0x365bab],_0x43a069,_0x491aca));}});for(const _0x335d56 of _0x39401a){let _0xc0ea58=null,_0x20fa84=_0x335d56['start'],_0x229fa4=_0x335d56['end'];for(const {suggestion:_0x31023c,meta:_0xa968b6}of this['_findSuggestions'](_0x335d56,'formatInline')){if(!_0xa968b6['isOwn'])continue;if(_0x31023c['subType']!=_0x5cd520)continue;if(!qt(_0x31023c,_0x491aca))continue;const _0x168076=_0x31023c['getFirstRange']();if(_0x168076['containsRange'](_0x335d56,!0x0))return null;_0x20fa84=_0x20fa84['isBefore'](_0x168076['start'])?_0x20fa84:_0x168076['start'],_0x229fa4=_0x229fa4['isAfter'](_0x168076['end'])?_0x229fa4:_0x168076['end'],_0xc0ea58?_0x168076['start']['isBefore'](_0xc0ea58['getFirstRange']()['start'])?(_0xc0ea58['removeMarkers'](),_0xc0ea58=_0x31023c):_0x31023c['removeMarkers']():_0xc0ea58=_0x31023c;}const _0x3e4e9b=this['_model']['createRange'](_0x20fa84,_0x229fa4);if(_0xc0ea58)this['_setSuggestionRange'](_0xc0ea58,_0x3e4e9b);else{const _0xce2b44=_0x47b6bb(),_0x1dfd88=_0x1c6686['id'];this['_setSuggestionData']({'id':_0xce2b44,'type':'formatInline:'+_0x5cd520,'data':_0x43a069,'createdAt':new Date(),'authorId':_0x1dfd88,'attributes':_0x491aca}),this['_addSuggestionMarker']('formatInline:'+_0x5cd520,_0xce2b44,_0x1dfd88,_0x3e4e9b);}}return null;}['markBlockFormat'](_0x1edbd1,_0x1030a4,_0x190357=[],_0x27bd79=null,_0x2188eb={}){_0x1030a4['formatGroupId']||(_0x1030a4['formatGroupId']=_0x1030a4['commandName']),_0x1030a4['multipleBlocks']=_0x1edbd1['is']('range'),_0x27bd79=_0x27bd79||Gt(_0x1030a4);const _0x4d7796=_0x190357['map'](_0x5d58bf=>Lt(_0x5d58bf,this['_model'])),_0x2164e0=_0x1edbd1['is']('range')?_0x1edbd1:Lt(_0x1edbd1,this['_model']);if('never'===this['_trackFormatChanges']){const _0xf5b576=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27bd79,'accept');return this['forceDefaultExecution'](()=>_0xf5b576([_0x2164e0],_0x1030a4,_0x2188eb)),null;}_0x4d7796['push'](_0x2164e0);let _0x213d73=!0x0;for(const _0x184d86 of _0x4d7796)if(!this['_rangeIsInLocalUserInsertion'](_0x184d86)){_0x213d73=!0x1;break;}if(_0x213d73&&'always'!==this['_trackFormatChanges']){const _0x23aacb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27bd79,'accept');return this['forceDefaultExecution'](()=>_0x23aacb([_0x2164e0],_0x1030a4,_0x2188eb)),null;}let _0x5a9378=null,_0x1a427f=_0x2164e0['start'],_0x182b3a=_0x2164e0['end'];for(const {suggestion:_0x171417,meta:_0x28ae1b}of this['_findSuggestions'](_0x2164e0,'formatBlock')){if(!_0x28ae1b['isOwn'])continue;if(_0x28ae1b['isNextTo']||_0x28ae1b['containsRangeInObject']||_0x28ae1b['isInsideObject'])continue;if(_0x171417['data']['formatGroupId']!=_0x1030a4['formatGroupId'])continue;if(!qt(_0x171417,_0x2188eb))continue;const _0x2f51c3=_0x171417['getFirstRange']();if(_0x171417['subType']==_0x27bd79){if(_0x2f51c3['containsRange'](_0x2164e0,!0x0))return null;_0x1a427f=_0x1a427f['isBefore'](_0x2f51c3['start'])?_0x1a427f:_0x2f51c3['start'],_0x182b3a=_0x182b3a['isAfter'](_0x2f51c3['end'])?_0x182b3a:_0x2f51c3['end'],_0x5a9378?_0x2f51c3['start']['isBefore'](_0x5a9378['getFirstRange']()['start'])?(_0x5a9378['removeMarkers'](),_0x5a9378=_0x171417):_0x171417['removeMarkers']():_0x5a9378=_0x171417;}else{const _0x4445e9=_0x2164e0['getIntersection'](_0x2f51c3);this['_cutOutSuggestionMarker'](_0x171417,_0x4445e9);}}const _0x8b8f88=this['editor']['plugins']['get']('Users')['me'],_0x37d74b=_0x47b6bb(),_0x397dff=_0x8b8f88['id'];if(_0x5a9378)return this['_setSuggestionRange'](_0x5a9378,this['_model']['createRange'](_0x1a427f,_0x182b3a)),_0x5a9378;{const _0x22f9bd=this['_setSuggestionData']({'id':_0x37d74b,'type':'formatBlock:'+_0x27bd79,'data':_0x1030a4,'createdAt':new Date(),'authorId':_0x397dff,'attributes':_0x2188eb});return this['_addSuggestionMarker']('formatBlock:'+_0x27bd79,_0x37d74b,_0x397dff,this['_model']['createRange'](_0x1a427f,_0x182b3a)),_0x22f9bd;}}['markMultiRangeBlockFormat'](_0x4fed96,_0x40c843,_0x1451bc=[],_0x525936=null,_0x407bae={}){_0x40c843['formatGroupId']||(_0x40c843['formatGroupId']=_0x40c843['commandName']);const _0x32d236=_0x4fed96[0x0];_0x40c843['multipleBlocks']=_0x32d236['is']('range'),_0x525936=_0x525936||Gt(_0x40c843);const _0x5c74e3=_0x1451bc['map'](_0x3a1d4a=>Lt(_0x3a1d4a,this['_model'])),_0x60246f=_0x32d236['is']('range')?_0x4fed96:_0x4fed96['map'](_0x42101c=>Lt(_0x42101c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x39a370=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x525936,'accept');return this['forceDefaultExecution'](()=>_0x39a370(_0x60246f,_0x40c843,_0x407bae)),null;}_0x5c74e3['push'](..._0x60246f);let _0x34a04b=!0x0;for(const _0x1e20ec of _0x5c74e3)if(!this['_rangeIsInLocalUserInsertion'](_0x1e20ec)){_0x34a04b=!0x1;break;}if(_0x34a04b&&'always'!==this['_trackFormatChanges']){const _0x200a2e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x525936,'accept');return this['forceDefaultExecution'](()=>_0x200a2e(_0x60246f,_0x40c843,_0x407bae)),null;}const _0x29eca9=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f9734 of this['getSuggestions']()){if(_0x3f9734['author']['id']!=_0x29eca9['id'])continue;if('formatBlock'!=_0x3f9734['type']||_0x3f9734['data']['formatGroupId']!=_0x40c843['formatGroupId'])continue;if(!qt(_0x3f9734,_0x407bae))continue;const _0x4d434d=_0x3f9734['subType']==_0x525936;for(let _0x31cdd4=0x0;_0x31cdd4<_0x60246f['length'];_0x31cdd4++){const _0x57802f=_0x60246f[_0x31cdd4];for(const _0x169cc3 of _0x3f9734['getMarkers']()){const _0xe9f629=_0x169cc3['getRange']();if(_0x57802f['isEqual'](_0xe9f629)){_0x4d434d?(_0x60246f['splice'](_0x31cdd4,0x1),_0x31cdd4--):_0x3f9734['removeMarker'](_0x169cc3['name']);break;}}}}if(0x0==_0x60246f['length'])return null;const _0x15ed33=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x525936,'join');for(const _0x13d74f of this['getSuggestions']())if(_0x13d74f['author']['id']==_0x29eca9['id']&&'formatBlock'==_0x13d74f['type']&&_0x13d74f['data']['formatGroupId']==_0x40c843['formatGroupId']&&_0x13d74f['subType']==_0x525936&&qt(_0x13d74f,_0x407bae)&&(_0x15ed33(_0x13d74f['getRanges'](),_0x60246f)||_0x15ed33(_0x60246f,_0x13d74f['getRanges']()))){for(const _0x2bfefd of _0x60246f)_0x13d74f['addRange'](_0x2bfefd);return _0x13d74f;}const _0x32279a=_0x47b6bb(),_0x206706=_0x29eca9['id'],_0x4fbc59='formatBlock:'+_0x525936,_0xadbd6f=this['_setSuggestionData']({'id':_0x32279a,'type':_0x4fbc59,'data':_0x40c843,'createdAt':new Date(),'authorId':_0x206706,'attributes':_0x407bae});for(const _0x2ea979 of _0x60246f)this['_addSuggestionMarker'](_0x4fbc59,_0x32279a,_0x206706,_0x2ea979,u['getMultiRangeId']());return _0xadbd6f;}['markDeletion'](_0x50631d,_0x230cac=null,_0x7a2099={}){if(_0x50631d['isCollapsed'])return null;const _0x4f358e=this['editor']['plugins']['get']('Users')['me'],_0x20e1be=new _0xe77a90(_0x50631d['start'],_0x50631d['end']);for(const {suggestion:_0x3c5053,meta:_0x43b603}of this['_findSuggestions'](_0x20e1be,'insertion'))if(_0x43b603['isOwn']&&!_0x43b603['isNextTo']){if(_0x3c5053['isMultiRange']){const _0x2992a0=_0x3c5053['getRanges']()['filter'](_0x45e39f=>'$graveyard'!=_0x45e39f['root']['rootName']);_0x2992a0['every'](_0x11247e=>_0x20e1be['containsRange'](_0x11247e,!0x0))&&_0x3c5053['discard']();if(_0x2992a0['some'](_0x391187=>_0x391187['containsRange'](_0x20e1be,!0x0))){const _0x57a78e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x230cac,'accept');return this['forceDefaultExecution'](()=>_0x57a78e([_0x20e1be],null,_0x7a2099)),null;}}else{const _0x8c5642=_0x20e1be['getIntersection'](_0x3c5053['getFirstRange']());null!==_0x8c5642&&_0x3c5053['_onDiscard']([_0x8c5642],null,_0x7a2099);}}if(_0x20e1be['detach'](),_0x20e1be['isCollapsed']||'$graveyard'==_0x20e1be['root']['rootName'])return null;let _0x5b315e=null,_0x13f008=_0x20e1be['start'],_0x3b4243=_0x20e1be['end'];const _0x1be357=this['_findSuggestions'](_0x20e1be,'deletion');for(const {suggestion:_0x1fb83a,meta:_0x1ac6b3}of _0x1be357){const _0x4f54ed=this['_model']['createRange'](_0x13f008,_0x3b4243);if(_0x1ac6b3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ac6b3['containsRangeInObject']&&!_0x1ac6b3['isInsideObject'])){if(_0x1fb83a['isMultiRange']){if(!qt(_0x1fb83a,_0x7a2099))continue;let _0x41c162=!0x0;for(const _0x43ccfe of _0x1fb83a['getRanges']()){if(_0x43ccfe['containsRange'](_0x4f54ed,!0x0))return _0x1fb83a;_0x4f54ed['containsRange'](_0x43ccfe)||(_0x41c162=!0x1);}_0x41c162&&_0x1fb83a['discard']();}else{const _0x36d355=_0x1fb83a['getFirstRange']();if(_0x36d355['containsRange'](_0x4f54ed,!0x0))return _0x1fb83a;if(!qt(_0x1fb83a,_0x7a2099)){_0x4f54ed['containsRange'](_0x36d355)?_0x1fb83a['removeMarkers']():_0x36d355['containsPosition'](_0x13f008)?_0x13f008=_0x36d355['end']:_0x36d355['containsPosition'](_0x3b4243)&&(_0x3b4243=_0x36d355['start']);continue;}_0x13f008=_0x13f008['isBefore'](_0x36d355['start'])?_0x13f008:_0x36d355['start'],_0x3b4243=_0x3b4243['isAfter'](_0x36d355['end'])?_0x3b4243:_0x36d355['end'],_0x7a2099=Object['assign']({},_0x1fb83a['attributes']),_0x5b315e?_0x36d355['start']['isBefore'](_0x5b315e['getFirstRange']()['start'])?(_0x5b315e['removeMarkers'](),_0x5b315e=_0x1fb83a):_0x1fb83a['removeMarkers']():_0x5b315e=_0x1fb83a;}}}if(_0x5b315e)return this['_setSuggestionRange'](_0x5b315e,this['_model']['createRange'](_0x13f008,_0x3b4243)),_0x5b315e;{const _0x4e968c=_0x47b6bb(),_0x11ae91=this['_model']['createRange'](_0x13f008,_0x3b4243),_0x3c32d7=_0x4f358e['id'],_0x4896da=_0x230cac?'deletion:'+_0x230cac:'deletion',_0x4f1289=this['_setSuggestionData']({'id':_0x4e968c,'type':_0x4896da,'createdAt':new Date(),'authorId':_0x3c32d7,'attributes':_0x7a2099});return this['_addSuggestionMarker'](_0x4896da,_0x4e968c,_0x3c32d7,_0x11ae91),_0x4f1289;}}['markMultiRangeDeletion'](_0x12b6cb,_0x4c1422='multi',_0x29d548={}){const _0x536554=this['editor']['plugins']['get']('Users')['me'],_0x4f5651=_0x12b6cb['map'](_0x18b6ae=>new _0xe77a90(_0x18b6ae['start'],_0x18b6ae['end'])),_0x35cace=new Set();for(const {suggestion:_0x430147,meta:_0x5db273}of this['_findSuggestions'](_0x4f5651,'insertion'))_0x5db273['isOwn']&&!_0x5db273['isNextTo']&&_0x35cace['add'](_0x430147);for(const _0x149365 of _0x35cace)if(_0x149365['isMultiRange']){const _0x22347a=_0x149365['getRanges']();(!_0x149365['attributes']||!_0x149365['attributes']['skipNestingCheck'])&&(_0x22347a['every'](_0x4ff09b=>_0x4f5651['some'](_0x1804d0=>_0x1804d0['containsRange'](_0x4ff09b,!0x0)))&&_0x149365['discard']());if(_0x4f5651['every'](_0x10eac1=>_0x22347a['some'](_0x3acefd=>_0x3acefd['containsRange'](_0x10eac1,!0x0)))){const _0x5ddc1d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c1422,'accept');return this['forceDefaultExecution'](()=>_0x5ddc1d(_0x12b6cb,null,_0x29d548)),null;}}else{const _0x159cea=_0x149365['getFirstRange']();_0x4f5651['some'](_0xd8ff16=>_0xd8ff16['containsRange'](_0x159cea,!0x0))&&_0x149365['discard']();if(_0x4f5651['every'](_0x5b8159=>_0x159cea['containsRange'](_0x5b8159,!0x0))){const _0x2e3f2e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c1422,'accept');return this['forceDefaultExecution'](()=>_0x2e3f2e(_0x4f5651,null,_0x29d548)),null;}}const _0x4bf896=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c1422,'join');let _0x31bf11=null;for(const _0x3cac58 of this['getSuggestions']())if(_0x3cac58['author']['id']==_0x536554['id']&&_0x3cac58['isInContent']&&'deletion'==_0x3cac58['type']&&_0x3cac58['subType']==_0x4c1422&&qt(_0x3cac58,_0x29d548)&&(_0x4bf896(_0x3cac58['getRanges'](),_0x4f5651)||_0x4bf896(_0x4f5651,_0x3cac58['getRanges']()))){if(_0x31bf11){if(_0x3cac58['commentThread']&&_0x3cac58['commentThread']['length'])continue;for(const _0x9b405d of _0x3cac58['getRanges']())_0x31bf11['isIntersectingWithRange'](_0x9b405d)||_0x31bf11['addRange'](_0x9b405d);_0x3cac58['removeMarkers']();}else{_0x31bf11=_0x3cac58;for(const _0x48edb8 of _0x4f5651)_0x3cac58['isIntersectingWithRange'](_0x48edb8)||_0x3cac58['addRange'](_0x48edb8);}}if(_0x31bf11)return _0x31bf11;_0x35cace['clear']();for(const {suggestion:_0x3c476b,meta:_0x24c832}of this['_findSuggestions'](_0x4f5651,'deletion'))_0x24c832['isOwn']&&(this['_mergeNestedSuggestions']||!_0x24c832['containsRangeInObject']&&!_0x24c832['isInsideObject'])&&qt(_0x3c476b,_0x29d548)&&_0x35cace['add'](_0x3c476b);for(const _0x30d7ab of _0x35cace){const _0x4e213b=_0x30d7ab['getRanges']();if(!_0x29d548||!_0x29d548['skipNestingCheck']){if(_0x4f5651['every'](_0xfa8853=>_0x4e213b['some'](_0x489fa2=>_0x489fa2['containsRange'](_0xfa8853,!0x0))))return _0x30d7ab;}(!_0x30d7ab['attributes']||!_0x30d7ab['attributes']['skipNestingCheck'])&&(_0x4e213b['every'](_0x132f85=>_0x4f5651['some'](_0x505acd=>_0x505acd['containsRange'](_0x132f85,!0x0)))&&_0x30d7ab['discard']());}const _0x39f90b=_0x47b6bb(),_0x1556ef=_0x536554['id'],_0x5a60ad='deletion:'+_0x4c1422,_0x222852=this['_setSuggestionData']({'id':_0x39f90b,'type':_0x5a60ad,'createdAt':new Date(),'authorId':_0x1556ef,'attributes':_0x29d548});for(const _0x1c960d of _0x4f5651)_0x1c960d['detach'](),_0x1c960d['isCollapsed']||'$graveyard'==_0x1c960d['root']['rootName']||this['_addSuggestionMarker'](_0x5a60ad,_0x39f90b,_0x1556ef,_0x1c960d,u['getMultiRangeId']());return _0x222852;}['markAttributeChange'](_0x386d26,_0x1a1d5d,_0x4925c0,_0x5a7592,_0x1cc3cc){if(_0x386d26['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa7870b=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c0f80=Array['from'](this['_suggestions']['values']())['filter'](_0x1d1299=>'attribute'==_0x1d1299['type']&&_0x1d1299['data']['key']==_0x1a1d5d&&_0x1d1299['isIntersectingWithRange'](_0x386d26));if('default'===this['_trackFormatChanges']){const _0x3c7b34=this['_findSuggestions'](_0x386d26,'insertion')['filter'](({meta:_0x2f6a12})=>_0x2f6a12['isOwn']&&!_0x2f6a12['isInsideObject']&&!_0x2f6a12['isNextTo'])['map'](({suggestion:_0x50c201})=>_0x50c201);_0x2c0f80['unshift'](..._0x3c7b34);}const _0x31cfe=new Map([[_0x386d26,_0x4925c0]]);for(const _0x221d7f of _0x2c0f80){const _0x2bce63='attribute'==_0x221d7f['type']?_0x221d7f['data']['oldValue']:void 0x0,_0x1d8e51=_0x221d7f['getFirstRange'](),_0x33a203=Array['from'](_0x31cfe['keys']())['find'](_0x3b5459=>_0x3b5459['isIntersecting'](_0x1d8e51));if(!_0x33a203)continue;const _0x2a9b22=_0x33a203['getDifference'](_0x1d8e51);this['_isBlockAttribute'](_0x1a1d5d)&&'insertion'==_0x221d7f['type']&&0x0!=_0x2a9b22['length']||(_0x31cfe['delete'](_0x33a203),_0x2a9b22['forEach'](_0x31d534=>{_0x31cfe['set'](_0x31d534,_0x4925c0);}),'insertion'!=_0x221d7f['type']&&_0x2bce63!=_0x5a7592&&_0x31cfe['set'](_0x33a203['getIntersection'](_0x1d8e51),_0x2bce63));}const _0x3747f4=[];for(const [_0x2c8dbc,_0x389ba2]of _0x31cfe){const _0x52b8f8=_0x47b6bb(),_0x3a989c={'key':_0x1a1d5d,'oldValue':_0x389ba2,'newValue':_0x5a7592};_0x1a1d5d['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':_0x1a1d5d});const _0x5f16f2=('attribute:'+(_0x1a1d5d+'|'+Gt({'newValue':_0x5a7592})))['substring'](0x0,0x3c),_0x8c50b3=this['_setSuggestionData']({'id':_0x52b8f8,'type':_0x5f16f2,'data':_0x3a989c,'createdAt':new Date(),'authorId':_0xa7870b,'attributes':_0x1cc3cc});_0x3747f4['push'](_0x8c50b3),this['_addSuggestionMarker'](_0x5f16f2,_0x52b8f8,_0xa7870b,_0x2c8dbc);}return _0x3747f4;}['enableDefaultAttributesIntegration'](_0x1d4a84){this['enableCommand'](_0x1d4a84,(_0x3d88d3,..._0x30ae61)=>{this['_recordAttributeChanges'](()=>{_0x3d88d3(..._0x30ae61);});});}['registerBlockAttribute'](_0x24e97f){this['_blockAttributeKeys']['add'](_0x24e97f);}['registerInlineAttribute'](_0x5634e6){this['_inlineAttributeKeys']['add'](_0x5634e6);}['_getAttributeKey'](_0x27b60f){return'attribute'==_0x27b60f['type']?_0x27b60f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x15b06e,_0x573839){const _0x5c27b5=_0x15b06e['getFirstMarker']();this['_model']['change'](_0x1fd5a4=>{_0x1fd5a4['updateMarker'](_0x5c27b5,{'range':_0x573839});});}['_addThreadToSuggestion'](_0x55db61){const _0x2f08df=_0x55db61['id'],_0x2f209d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2f08df)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2f209d,'threadId':_0x2f08df,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1942c9=this['_commentsRepository']['getCommentThread'](_0x2f08df);_0x1942c9['unbind']('isRemovable'),_0x1942c9['isRemovable']=!0x1,_0x55db61['commentThread']=_0x1942c9;}['_checkSuggestionCorrectness'](_0x4b7f73,_0x396713,_0x4b1766,_0x1912d9){if(_0x4b7f73['type']!=_0x396713||_0x4b7f73['subType']!=_0x4b1766||_0x4b7f73['creator']['id']!=_0x1912d9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x106dea('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4a7131,_0x1c0d37){const _0x49d97e=_0x4a7131['getFirstRange']();if(_0x1c0d37['isEqual'](_0x49d97e))_0x4a7131['removeMarkers']();else{if(_0x49d97e['containsRange'](_0x1c0d37)){const _0x2de27c=this['_model']['createPositionAt'](_0x1c0d37['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4a7131,this['_model']['createRange'](_0x49d97e['start'],_0x2de27c));const _0x434c2a=_0x47b6bb(),_0x498863=_0x4a7131['creator']['id'],_0xd0b567=_0x4a7131['type']+':'+_0x4a7131['subType'];this['_setSuggestionData']({'id':_0x434c2a,'type':_0xd0b567,'createdAt':new Date(),'authorId':_0x498863,'data':_0x4a7131['data'],'attributes':_0x4a7131['attributes']});const _0xb5b3f0=this['_model']['createPositionAt'](_0x1c0d37['end']['parent'],'after'),_0x19ab35=this['_model']['createRange'](_0xb5b3f0,_0x49d97e['end']);this['_addSuggestionMarker'](_0xd0b567,_0x434c2a,_0x498863,_0x19ab35);}else{if(_0x49d97e['containsPosition'](_0x1c0d37['start'])){const _0xd8b929=this['_model']['createPositionAt'](_0x1c0d37['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4a7131,this['_model']['createRange'](_0x49d97e['start'],_0xd8b929));}else{const _0x12ef6f=this['_model']['createPositionAt'](_0x1c0d37['end']['parent'],'after');this['_setSuggestionRange'](_0x4a7131,this['_model']['createRange'](_0x12ef6f,_0x49d97e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1a99ac){for(const {suggestion:_0x6da5c8,meta:_0x3f9be1}of this['_findSuggestions'](_0x1a99ac,'insertion')){if(!_0x3f9be1['isOwn'])continue;const _0x538ca1=_0x6da5c8['getRanges']();for(const _0x555d66 of _0x538ca1)if(!_0x1a99ac['getDifference'](_0x555d66)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xe5f23e){const _0x22dae4=this['editor']['plugins']['get']('Users')['getUser'](_0xe5f23e);if(!_0x22dae4)throw new _0x106dea('track-changes-user-not-found',this);return _0x22dae4;}['_getExternalAuthor'](_0x389929){const _0x11ef76=this['editor']['plugins']['get']('Users'),_0x32815f=_0x55a1d3('external:'+_0x389929),_0x59b0cd=_0x11ef76['getUser'](_0x32815f);return _0x59b0cd||_0x11ef76['addUser']({'id':_0x32815f,'name':_0x389929});}['_createSuggestion'](_0x1f75b5,_0xec651a,_0x2ed82c,_0x596dd2,_0x3a24c8){const _0x4e16a3=this['_getAuthorFromId'](_0x596dd2),_0x581f13=this['_suggestionFactory']['buildSuggestion'](_0x1f75b5,_0xec651a,_0x2ed82c,_0x4e16a3,_0x3a24c8,_0x9fc7eb=>{this['_updateSuggestionData'](_0x2ed82c,{'attributes':_0x9fc7eb});const _0x363c67=this['getSuggestion'](_0x2ed82c);this['_joinWithAdjacentSuggestions'](new Set([_0x363c67])),this['_refreshSuggestionsChain'](new Set([_0x363c67]));});return this['listenTo'](_0x581f13,'accept',()=>{this['_updateSuggestionData'](_0x2ed82c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x581f13,'discard',()=>{this['_updateSuggestionData'](_0x2ed82c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2ed82c,_0x581f13),this['_suggestionState']['set'](_0x581f13,'notReady'),_0x581f13;}['_splitMarkerName'](_0x14e524){const _0x11aab1=_0x14e524['split'](':');return{'group':_0x11aab1[0x0],'type':_0x11aab1[0x1],'subType':_0x11aab1['length']>=0x5?_0x11aab1[0x2]:null,'id':_0x11aab1['length']<0x5?_0x11aab1[0x2]:_0x11aab1[0x3],'authorId':_0x11aab1['length']<0x5?_0x11aab1[0x3]:_0x11aab1[0x4],'markerCount':0x6==_0x11aab1['length']?_0x11aab1[0x5]:null};}['_breakSuggestionMarker'](_0x19abf7,_0xcf26a1,_0xdf463f){const _0x14288d=_0x19abf7['getFirstRange'](),_0x3ffd7c=_0x14288d['start'],_0x39f6ac=_0x14288d['end'];this['_setSuggestionRange'](_0x19abf7,this['_model']['createRange'](_0x3ffd7c,_0xcf26a1));const _0x3b3d31=_0x47b6bb(),_0x1d6560=_0x19abf7['creator']['id'],_0x132066=_0x19abf7['type']+(_0x19abf7['subType']?':'+_0x19abf7['subType']:'');this['_setSuggestionData']({'id':_0x3b3d31,'type':_0x132066,'createdAt':new Date(),'authorId':_0x1d6560,'originalSuggestionId':_0x19abf7['id'],'attributes':_0x19abf7['attributes'],'data':_0x19abf7['data']});const _0x3812ab=this['_getAttributeKey'](_0x19abf7);('formatBlock'==_0x19abf7['type']||_0x3812ab&&this['_isBlockAttribute'](_0x3812ab))&&(_0xdf463f=this['_model']['createPositionBefore'](_0xdf463f['parent'])),this['_addSuggestionMarker'](_0x132066,_0x3b3d31,_0x1d6560,this['_model']['createRange'](_0xdf463f,_0x39f6ac));}['_findSuggestions'](_0x1a888c,_0x383ed1=null){const _0x59f709=[],_0x2c10a1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1a888c)||(_0x1a888c=[_0x1a888c]);for(const _0xd53349 of this['getSuggestions']()){if(!_0xd53349['isInContent'])continue;if(_0x383ed1&&_0xd53349['type']!=_0x383ed1)continue;let _0x3fabd0=!0x1;for(const _0x2eb615 of _0xd53349['getRanges']()){for(const _0x438937 of _0x1a888c){const _0x3af76f=_0x438937['start']['isEqual'](_0x2eb615['end'])||_0x438937['end']['isEqual'](_0x2eb615['start']);if(_0x3af76f||_0x438937['getIntersection'](_0x2eb615)){const _0xd64368=_0x438937['containsRange'](_0x2eb615)&&Ot(this['_model']['schema'],_0x2eb615['start'],_0x438937),_0x587f1b=_0x2eb615['containsRange'](_0x438937)&&Ot(this['_model']['schema'],_0x438937['start'],_0x2eb615);_0x59f709['push']({'suggestion':_0xd53349,'meta':{'isOwn':_0x2c10a1==_0xd53349['author'],'isNextTo':_0x3af76f,'isInsideObject':_0xd64368,'containsRangeInObject':_0x587f1b}}),_0x3fabd0=!0x0;break;}}if(_0x3fabd0)break;}}return _0x59f709;}['_addSuggestionMarker'](_0xa62221,_0xecc137,_0x37b4d5,_0x30e4cb,_0x19777a){this['_model']['change'](_0x19b302=>{let _0x439112='suggestion:'+_0xa62221+':'+_0xecc137+':'+_0x37b4d5;_0x19777a&&(_0x439112=_0x439112+':'+_0x19777a),_0x19b302['addMarker'](_0x439112,{'range':_0x30e4cb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x22df5c){const _0x5dcb43=_0x22df5c['previous'],_0x3139c3=_0x22df5c['next'];_0x22df5c['previous']=null,_0x22df5c['next']=null,null!=_0x5dcb43&&_0x5dcb43['next']==_0x22df5c&&(_0x5dcb43['next']=_0x3139c3),null!=_0x3139c3&&_0x3139c3['previous']==_0x22df5c&&(_0x3139c3['previous']=_0x5dcb43),'ready'==this['_suggestionState']['get'](_0x22df5c)&&(this['_suggestionState']['set'](_0x22df5c,'removed'),this['fire']('suggestionUnloaded',_0x22df5c,_0x5dcb43,_0x3139c3));}['_setSuggestionData'](_0x605c04){const _0x507fab=_0x605c04['id'],_0x2fcbc5=this['addSuggestionData'](_0x605c04);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4e5272=this['editor']['plugins']['get']('PendingActions'),_0x41781e=_0x2fcbc5['hasComments'],_0x4dc06a=_0x2fcbc5['subType']?_0x2fcbc5['type']+':'+_0x2fcbc5['subType']:_0x2fcbc5['type'],_0x129ad9=this['editor']['locale'],_0x56cb59=_0x4e5272['add'](o(_0x129ad9,'PENDING_ACTION_SUGGESTION')),_0xe7f098={'id':_0x507fab,'type':_0x4dc06a,'hasComments':_0x41781e,'data':_0x605c04['data']||null,'originalSuggestionId':_0x605c04['originalSuggestionId']||null,'attributes':_0x2fcbc5['attributes']};this['_adapter']['addSuggestion'](_0xe7f098)['then'](_0x5f32aa=>{_0x2fcbc5['_saved']=!0x0,_0x4e5272['remove'](_0x56cb59),_0x5f32aa&&_0x5f32aa['createdAt']&&(this['_suggestions']['get'](_0x507fab)['createdAt']=_0x5f32aa['createdAt']);})['catch'](_0x3ffb1b=>{throw _0x327173('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2fcbc5['discard']();}),_0x2fcbc5['stopListening'](),this['_suggestions']['delete'](_0x2fcbc5['id']),this['_suggestionState']['delete'](_0x2fcbc5),_0x3ffb1b;});}return _0x2fcbc5;}['_isBlockAttribute'](_0x2bcbdb){return this['_blockAttributeKeys']['has'](_0x2bcbdb);}['_updateSuggestionData'](_0x9cc7c3,_0x5e0738){const _0x459d12=this['editor']['plugins']['get']('PendingActions'),_0x47be44=this['getSuggestion'](_0x9cc7c3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x47be44['_saved']){const _0x3decd8=_0x459d12['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x9cc7c3,_0x5e0738)['then'](()=>{_0x459d12['remove'](_0x3decd8);});}else _0x47be44['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x9cc7c3,_0x5e0738);});}}['_getSuggestionData'](_0x540987){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x106dea('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x540987);}['_handleNewSuggestionMarker'](_0x299a8a){const {id:_0x1445e9,type:_0x46026f,subType:_0x5e3681,authorId:_0x3711e7}=this['_splitMarkerName'](_0x299a8a),_0x118e65=this['_suggestions']['get'](_0x1445e9)||this['_createSuggestion'](_0x46026f,_0x5e3681,_0x1445e9,_0x3711e7,{});switch(this['_checkSuggestionCorrectness'](_0x118e65,_0x46026f,_0x5e3681,_0x3711e7),this['_suggestionState']['get'](_0x118e65)){case'notReady':this['_getSuggestionData'](_0x1445e9)['then'](_0x9099bc=>{let _0x780f73=Promise['resolve']();_0x9099bc['hasComments']&&(_0x780f73=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1445e9})),_0x780f73['then'](()=>{this['addSuggestionData'](_0x9099bc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x118e65,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1445e9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x118e65,'ready'),this['fire']('suggestionLoaded',_0x118e65);break;case'ready':this['fire']('suggestionChanged',_0x118e65);}return _0x118e65['addMarkerName'](_0x299a8a),_0x118e65;}['_refreshSuggestionsChain'](_0x646a25){const _0x203cae=Array['from'](_0x646a25),_0x11620e=_0x203cae['filter'](_0x4d7cc0=>'attribute'==_0x4d7cc0['type']);this['_refreshAttributeSuggestionsChain'](_0x11620e);const _0x13b7a7=_0x203cae['filter'](_0x1083e3=>!_0x1083e3['isMultiRange']&&'attribute'!=_0x1083e3['type']),_0x1a8744=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56ad95=>!_0x56ad95['isMultiRange']&&'attribute'!=_0x56ad95['type']),_0x26df55=_0x1a8744['filter'](_0x3bfd92=>!_0x646a25['has'](_0x3bfd92)),_0x5d29fe=new Map(_0x1a8744['map'](_0x22b238=>[_0x22b238,this['_suggestionFactory']['getSuggestionCallback'](_0x22b238['type'],_0x22b238['subType'],'chain')])),_0x3e6c53=new Map(_0x1a8744['map'](_0xd760e3=>[_0xd760e3,_0xd760e3['getFirstRange']()])),_0x400194=new Set(),_0x28cd13=new Set();for(let _0x992312=0x0;_0x992312<_0x13b7a7['length'];_0x992312++)_0x2d6d57(_0x13b7a7[_0x992312],_0x13b7a7,_0x992312+0x1);for(let _0x47d6a5=0x0;_0x47d6a5<_0x13b7a7['length'];_0x47d6a5++)_0x2d6d57(_0x13b7a7[_0x47d6a5],_0x26df55,0x0);const _0x51b389=new Set();for(let _0x548f9f=0x0;_0x548f9f<_0x13b7a7['length'];_0x548f9f++){const _0x33989d=_0x13b7a7[_0x548f9f];!_0x28cd13['has'](_0x33989d)&&_0x33989d['previous']&&(_0x51b389['add'](_0x33989d['previous']),_0x33989d['previous']['next']===_0x33989d&&(_0x33989d['previous']['next']=null),_0x33989d['previous']=null),!_0x400194['has'](_0x33989d)&&_0x33989d['next']&&(_0x51b389['add'](_0x33989d['next']),_0x33989d['next']['previous']===_0x33989d&&(_0x33989d['next']['previous']=null),_0x33989d['next']=null);}function _0x2d6d57(_0x533f4d,_0x2a049b,_0x2756cb){for(let _0xfa961d=_0x2756cb;_0xfa961d<_0x2a049b['length'];_0xfa961d++){const _0x5692e7=_0x404111(_0x533f4d,_0x2a049b[_0xfa961d]);_0x5692e7&&(_0x5692e7[0x0]['next']=_0x5692e7[0x1],_0x5692e7[0x1]['previous']=_0x5692e7[0x0],_0x400194['add'](_0x5692e7[0x0]),_0x28cd13['add'](_0x5692e7[0x1]));}}function _0x404111(_0x3a3cc0,_0x1e868b){if(_0x3a3cc0['author']['id']!==_0x1e868b['author']['id'])return null;const _0x80d678=_0x5d29fe['get'](_0x3a3cc0)(_0x3a3cc0,_0x1e868b,_0x3e6c53['get'](_0x3a3cc0),_0x3e6c53['get'](_0x1e868b));if(!_0x80d678)return null;return _0x5d29fe['get'](_0x1e868b)(_0x3a3cc0,_0x1e868b,_0x3e6c53['get'](_0x3a3cc0),_0x3e6c53['get'](_0x1e868b))?_0x80d678[0x1]['commentThread']&&_0x80d678[0x1]['commentThread']['length']?null:_0x80d678:null;}_0x51b389['size']&&this['_refreshSuggestionsChain'](_0x51b389);}['_refreshAttributeSuggestionsChain'](_0x5513d2){if(0x0==_0x5513d2['length'])return;const _0x5c7ba6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a50f3=>'attribute'==_0x3a50f3['type']&&_0x3a50f3['_isDataLoaded']),_0x293ba1=[],_0x5719f3=new Map();for(const _0x484d26 of _0x5c7ba6){const _0x493509=_0x55a1d3(_0x484d26['attributes']);_0x5719f3['has'](_0x493509)||(_0x5719f3['set'](_0x493509,_0x293ba1['length']),_0x293ba1['push']([]));const _0xcabc9e=_0x5719f3['get'](_0x493509);_0x293ba1[_0xcabc9e]['push'](_0x484d26);}!(function(){_0x293ba1['sort']((_0x100b96,_0x3196b8)=>{const _0x45e4bf=_0x100b96[0x0]['createdAt'],_0x92515a=_0x3196b8[0x0]['createdAt'];return _0x45e4bf==_0x92515a?_0x100b96[0x0]['attributes']['groupId']<_0x3196b8[0x0]['attributes']['groupId']?-0x1:0x1:_0x45e4bf<_0x92515a?-0x1:0x1;});for(const _0x20117c of _0x293ba1)_0x20117c['sort']((_0x106b90,_0x42a60c)=>_0x106b90['id']<_0x42a60c['id']?-0x1:0x1);}());for(let _0x38d73c=0x0;_0x38d73c<_0x293ba1['length'];_0x38d73c++){if(0x0==_0x293ba1[_0x38d73c]['length'])continue;const _0x4c2c44=[];for(let _0x141f21=_0x38d73c+0x1;_0x141f21<_0x293ba1['length'];_0x141f21++)0x0!=_0x293ba1[_0x141f21]['length']&&_0x379b52(_0x293ba1[_0x38d73c],_0x293ba1[_0x141f21])&&_0x4c2c44['push'](_0x141f21);for(const _0x421d39 of _0x4c2c44)_0x293ba1[_0x38d73c]=_0x293ba1[_0x38d73c]['concat'](_0x293ba1[_0x421d39]),_0x293ba1[_0x421d39]=[];}for(const _0x975ee5 of _0x293ba1)for(let _0x4440da=0x0;_0x4440da<_0x975ee5['length'];_0x4440da++){const _0x425807=_0x975ee5[_0x4440da+0x1]||null;_0x975ee5[_0x4440da]['next']!==_0x425807&&(_0x975ee5[_0x4440da]['next']=_0x425807);}for(const _0x1266f7 of _0x293ba1)for(let _0x1e609a=0x0;_0x1e609a<_0x1266f7['length'];_0x1e609a++){const _0x1bf8f3=_0x1266f7[_0x1e609a-0x1]||null;_0x1266f7[_0x1e609a]['previous']!==_0x1bf8f3&&(_0x1266f7[_0x1e609a]['previous']=_0x1bf8f3);}function _0x379b52(_0x5361c6,_0x18072f){if(_0x5361c6[0x0]['attributes']['groupId']!==_0x18072f[0x0]['attributes']['groupId']&&_0x5361c6[0x0]['author']!==_0x18072f[0x0]['author'])return!0x1;if(!function(_0x7c79f8,_0x550f59){if(!_0x7c79f8['hasComments']&&!_0x550f59['hasComments'])return!0x0;if(_0x7c79f8['hasComments']&&_0x550f59['hasComments'])return!0x1;if(_0x7c79f8['hasComments']&&_0x550f59['createdAt']<_0x7c79f8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x550f59['hasComments']&&_0x7c79f8['createdAt']<_0x550f59['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5361c6[0x0],_0x18072f[0x0]))return!0x1;const _0x1ca3cd=Tt(_0x5361c6[0x0]['attributes'],'groupId'),_0x808b3a=Tt(_0x18072f[0x0]['attributes'],'groupId');if(!_0x2ab27f(_0x1ca3cd,_0x808b3a))return!0x1;return!!_0x5361c6['every'](_0x17ae5b=>_0x18072f['some'](_0x543544=>_0x17ae5b['getFirstRange']()['isEqual'](_0x543544['getFirstRange']())))&&_0x18072f['every'](_0x1daa61=>_0x5361c6['some'](_0x4e0c72=>_0x1daa61['getFirstRange']()['isEqual'](_0x4e0c72['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3111d8){const _0x36e0bc=Array['from'](_0x3111d8),_0xea8393=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe6f851=_0xea8393['filter'](_0x412fcf=>!_0x3111d8['has'](_0x412fcf)),_0x2e15d9=new Map(_0x36e0bc['map'](_0x2a3f7c=>[_0x2a3f7c,this['_suggestionFactory']['getSuggestionCallback'](_0x2a3f7c['type'],_0x2a3f7c['subType'],'join')])),_0x36488a=new Map(_0xea8393['map'](_0x4da69e=>[_0x4da69e,_0x4da69e['getRanges']()]));for(let _0x365a3a=0x0;_0x365a3a<_0x36e0bc['length'];_0x365a3a++){if(_0x317f8b(this,_0x36e0bc[_0x365a3a],_0x36e0bc,_0x365a3a+0x1))return!0x0;}for(let _0x21bc7d=0x0;_0x21bc7d<_0x36e0bc['length'];_0x21bc7d++){if(_0x317f8b(this,_0x36e0bc[_0x21bc7d],_0xe6f851,0x0))return!0x0;}return!0x1;function _0x317f8b(_0x497da2,_0x3b73b7,_0x2bac5b,_0x21541c){for(let _0x4f8213=_0x21541c;_0x4f8213<_0x2bac5b['length'];_0x4f8213++){const _0xf58e00=_0x2bac5b[_0x4f8213];if(_0xf58e00['type']!==_0x3b73b7['type']||_0xf58e00['author']['id']!==_0x3b73b7['author']['id']||_0xf58e00['subType']!==_0x3b73b7['subType'])continue;if(!Jt(_0x3b73b7,_0xf58e00))continue;if('attribute'==_0x3b73b7['type']&&_0x3b73b7['data']['oldValue']!=_0xf58e00['data']['oldValue'])continue;if('attribute'==_0x3b73b7['type']&&_0x497da2['_isBlockAttribute'](_0x3b73b7['data']['key']))continue;if('formatBlock'==_0x3b73b7['type']){const _0x3c7e0d=_0x497da2['editor']['model'],_0x58108f=_0x3b73b7['getContainedElement']();if(_0x58108f&&(_0x3c7e0d['schema']['isObject'](_0x58108f)||_0x3c7e0d['schema']['isLimit'](_0x58108f)))continue;}const _0x411947=_0x2e15d9['get'](_0x3b73b7),_0x5f12be=_0x36488a['get'](_0x3b73b7),_0xc741b1=_0x36488a['get'](_0xf58e00),_0x47f877=_0x3b73b7['commentThread']&&_0x3b73b7['commentThread']['length'],_0x5d0049=_0xf58e00['commentThread']&&_0xf58e00['commentThread']['length'];if(!_0x47f877&&_0x411947(_0xc741b1,_0x5f12be))return _0x497da2['_joinSuggestions'](_0xf58e00,_0x3b73b7),_0x36488a['delete'](_0x3b73b7),!0x0;if(!_0x5d0049&&_0x411947(_0x5f12be,_0xc741b1))return _0x497da2['_joinSuggestions'](_0x3b73b7,_0xf58e00),_0x36488a['delete'](_0xf58e00),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5b5565,_0x3df258){if(_0x5b5565['isMultiRange']){for(const _0x425fa0 of _0x3df258['getRanges']())_0x5b5565['addRange'](_0x425fa0);}else{const _0x1b250a=_0x3df258['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5b5565,this['_model']['createRange'](_0x5b5565['getFirstRange']()['start'],_0x1b250a));}_0x3df258['removeMarkers']();}['_getMarkerAnnouncementText'](_0x57b6f5,_0x2a257d,_0x518db3){const _0x5aaf12=_0x57b6f5['startsWith']('format')||_0x57b6f5['startsWith']('attribute')?'FORMATTING':_0x57b6f5['toUpperCase']();return o(this['editor']['locale'],_0x2a257d+'_'+_0x5aaf12+'_SUGGESTION_ANNOUNCEMENT',_0x518db3);}['_initAriaMarkerChangeAnnouncements'](){const _0x230b5c=this['editor'];if(!_0x230b5c['ui'])return;const {ariaLiveAnnouncer:_0x4dcac4}=_0x230b5c['ui'];_0x331b80(this['_model'],({left:_0x1030cd,entered:_0x2b4b95})=>{for(const _0x37e5a0 of _0x1030cd){const {group:_0x84443e,type:_0x272b4e}=this['_splitMarkerName'](_0x37e5a0['name']);if('suggestion'===_0x84443e){_0x4dcac4['announce'](this['_getMarkerAnnouncementText'](_0x272b4e,'LEAVE'));break;}}for(const _0x1a4294 of _0x2b4b95){const {group:_0x153aaa,type:_0x5418d7}=this['_splitMarkerName'](_0x1a4294['name']);if('suggestion'===_0x153aaa){_0x4dcac4['announce'](this['_getMarkerAnnouncementText'](_0x5418d7,'ENTER',_0x5d8ba5(_0x268394)));break;}}});}['_processAttributeChanges'](_0x20f72c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5a7062=this['editor'],_0x4a20f4=_0x5a7062['model']['document']['differ']['getChanges']();if(0x0==_0x4a20f4['length'])return!0x1;const _0x59fba1=[],_0x106d9d=_0x4a20f4['filter'](_0xa8624f=>'attribute'==_0xa8624f['type']),_0x4c2f74=_0x4a20f4['filter'](_0x370963=>'insert'==_0x370963['type']&&'$text'!=_0x370963['name']),_0x33378a=_0x4a20f4['filter'](_0x3f875d=>'remove'==_0x3f875d['type']&&'$text'!=_0x3f875d['name']);for(const _0x17f6d1 of _0x106d9d)_0x59fba1['push']({'key':_0x17f6d1['attributeKey'],'newValue':_0x17f6d1['attributeNewValue'],'oldValue':_0x17f6d1['attributeOldValue'],'range':Pt(_0x17f6d1['range'],_0x5a7062['model'])});for(const _0x30e0e8 of _0x4c2f74){const _0x244de5=_0x33378a['find'](_0x2992bc=>_0x2992bc['position']['isEqual'](_0x30e0e8['position']));_0x244de5&&_0x59fba1['push']({'key':m,'newValue':_0x30e0e8['name'],'oldValue':_0x244de5['name'],'range':_0x5a7062['model']['createRangeOn'](_0x30e0e8['position']['nodeAfter'])});}return 0x0!=_0x59fba1['length']&&this['_reduceExistingSuggestions'](_0x20f72c,_0x59fba1);}['_processAttributeSuggestions'](_0x3c604c){let _0x5a87b1=!0x1;const _0x428e49=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49b3a=>_0x49b3a['data']['newRange']&&_0x49b3a['name']['startsWith']('suggestion:attribute:'));for(const _0x4bef0f of _0x428e49){const {subType:_0x2e3341,id:_0x3769c3}=this['_splitMarkerName'](_0x4bef0f['name']),_0x21fcb5=_0x2e3341['split']('|')[0x0];for(const _0x4e6d86 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4e6d86['id']!=_0x3769c3&&'attribute'==_0x4e6d86['type']&&_0x4e6d86['data']&&_0x4e6d86['data']['key']==_0x21fcb5&&_0x4e6d86['getFirstRange']()['isIntersecting'](_0x4bef0f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4e6d86,_0x4bef0f['data']['newRange'],_0x3c604c),_0x5a87b1=!0x0);}return _0x5a87b1;}['_recordAttributeChanges'](_0x127f60){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x127f60();}['_isRegisteredAttribute'](_0x196bbb){const _0x3e52b5=this['_isBlockAttribute'](_0x196bbb),_0x369b1f=this['_inlineAttributeKeys']['has'](_0x196bbb);return _0x3e52b5||_0x369b1f;}['_reduceExistingSuggestions'](_0x331252,_0x333226){if(0x0==_0x333226['length'])return!0x1;let _0x23d908=!0x1;for(const _0x461f2b of _0x333226){const _0x5326b2=this['_findSuggestions'](_0x461f2b['range'],'attribute')['filter'](_0x256b0d=>!_0x256b0d['meta']['isNextTo'])['map'](_0x5457f1=>_0x5457f1['suggestion']),_0x3a46f0=_0x55a1d3({'newValue':_0x461f2b['newValue']});_0x5326b2['filter'](_0x2d301e=>{const [_0x4bc40e,_0x12a101]=_0x2d301e['subType']['split']('|');return _0x4bc40e==_0x461f2b['key']&&_0x12a101!=_0x3a46f0;})['forEach'](_0x503f0f=>{this['_reduceSuggestionAttributeRange'](_0x503f0f,_0x461f2b['range'],_0x331252),_0x23d908=!0x0;});}return _0x23d908;}['_reduceSuggestionAttributeRange'](_0x32b8a9,_0x442bc0,_0x12beb5){const _0x282e0e=_0x32b8a9['getFirstRange']()['getDifference'](_0x442bc0);0x0!==_0x282e0e['length']?0x1!==_0x282e0e['length']?this['_breakSuggestionMarker'](_0x32b8a9,_0x442bc0['start'],_0x442bc0['end']):this['_setSuggestionRange'](_0x32b8a9,_0x282e0e[0x0]):_0x12beb5['removeMarker'](_0x32b8a9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1187f2){this['_editor']=_0x1187f2,this['_model']=_0x1187f2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xe5ed73,_0x8175a,_0xca4490,_0x3f4982,_0x4f8109,_0x210e14){return new u(this['_model'],{'type':_0xe5ed73,'subType':_0x8175a,'id':_0xca4490,'author':_0x3f4982,'creator':_0x3f4982,'attributes':_0x4f8109,'onAttributesChange':_0x210e14,'onAccept':(..._0x243547)=>this['getSuggestionCallback'](_0xe5ed73,_0x8175a,'accept')(..._0x243547),'onDiscard':(..._0x566e26)=>this['getSuggestionCallback'](_0xe5ed73,_0x8175a,'discard')(..._0x566e26)});}['registerCustomCallback'](_0x2f86d5,_0x493aa2,_0x4a3486,_0x2ced1d){const _0x8c7e3a=_0x2f86d5+':'+_0x493aa2+':'+_0x4a3486;this['_customCallbacks']['set'](_0x8c7e3a,_0x2ced1d);}['getSuggestionCallback'](_0x277163,_0x4a1239,_0x40683b){const _0x18bdb8=_0x277163+':'+_0x4a1239+':'+_0x40683b;return this['_customCallbacks']['get'](_0x18bdb8)||this['_defaultCallbacks']['get'](_0x277163+':'+_0x40683b);}['_registerDefaultCallbacks'](){const _0x9a3294=()=>!0x1,_0x2ab2fb=_0xa27947=>{_0xa27947['sort']((_0x2759be,_0x5262cd)=>_0x2759be['start']['isBefore'](_0x5262cd['start'])?0x1:-0x1),this['_model']['change'](_0xb532ba=>{for(const _0x4ec995 of _0xa27947){let _0x439ff1;_0x439ff1=_0x4ec995['end']['isAtEnd']&&_0x4ec995['end']['parent']==_0x4ec995['start']['nodeAfter']?_0xb532ba['createSelection'](_0x4ec995['start']['nodeAfter'],'on'):_0xb532ba['createSelection'](_0x4ec995),this['_model']['deleteContent'](_0x439ff1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xd096c2=(_0x23cded,_0x4f882e)=>{_0x4f882e&&this['_model']['change'](_0x4d1146=>{const {commandName:_0x42de5a,commandParams:_0x28bcd8=[]}=_0x4f882e,_0x2fdaba=_0x23cded['map'](_0x1f96b0=>(Vt(_0x1f96b0)&&(_0x1f96b0=this['_model']['createRange'](_0x1f96b0['end'])),_0x1f96b0))['filter'](_0x4f99de=>'$graveyard'!==_0x4f99de['root']['rootName']);if(_0x2fdaba['length']<0x1)return;const _0x4e6292=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x7779f0=>_0xe77a90['fromRange'](_0x7779f0));_0x4d1146['setSelection'](_0x2fdaba);for(const _0xb79da6 of this['_editor']['commands']['commands']())_0xb79da6['refresh']();_0x28bcd8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x42de5a,..._0x28bcd8);const _0x4eaf8e=_0x4e6292['filter'](_0x2791fe=>'$graveyard'!=_0x2791fe['root']['rootName']);_0x4eaf8e['length']>0x0&&_0x4d1146['setSelection'](_0x4eaf8e);for(const _0x1f460e of _0x4e6292)_0x1f460e['detach']();});},_0xcdfdd4=(_0x34b39f,_0x5465f4)=>0x1==_0x34b39f['length']&&0x1==_0x5465f4['length']&&_0x34b39f[0x0]['end']['isEqual'](_0x5465f4[0x0]['start']),_0x2750fc=(_0x47bb88,_0xb113f,_0x14ba8d,_0x5933ea)=>Ht(_0x47bb88,_0xb113f,_0x14ba8d,_0x5933ea,this['_model'])?[_0x47bb88,_0xb113f]:Ht(_0xb113f,_0x47bb88,_0x5933ea,_0x14ba8d,this['_model'])?[_0xb113f,_0x47bb88]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x9a3294),this['_defaultCallbacks']['set']('insertion:discard',_0x2ab2fb),this['_defaultCallbacks']['set']('insertion:join',_0xcdfdd4),this['_defaultCallbacks']['set']('insertion:chain',_0x2750fc),this['_defaultCallbacks']['set']('deletion:accept',_0x2ab2fb),this['_defaultCallbacks']['set']('deletion:discard',_0x9a3294),this['_defaultCallbacks']['set']('deletion:join',_0xcdfdd4),this['_defaultCallbacks']['set']('deletion:chain',_0x2750fc),this['_defaultCallbacks']['set']('formatInline:accept',_0xd096c2),this['_defaultCallbacks']['set']('formatInline:discard',_0x9a3294),this['_defaultCallbacks']['set']('formatInline:join',_0xcdfdd4),this['_defaultCallbacks']['set']('formatInline:chain',_0x9a3294),this['_defaultCallbacks']['set']('formatBlock:accept',_0xd096c2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x9a3294),this['_defaultCallbacks']['set']('formatBlock:join',_0xcdfdd4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x9a3294),this['_defaultCallbacks']['set']('attribute:accept',_0x9a3294),this['_defaultCallbacks']['set']('attribute:discard',(_0x4f5830,_0xffda4d)=>{if(!_0xffda4d)return;const _0x3cde47=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x30a405=>{if(_0xffda4d['key']==m)for(const _0x5457d5 of _0x4f5830){const _0x862fac=_0x5457d5['start']['nodeAfter'],_0x5cfed6=_0xffda4d['oldValue'];_0x30a405['rename'](_0x862fac,_0x5cfed6);}else{if(_0x3cde47['_isBlockAttribute'](_0xffda4d['key'])){for(const _0x4add3d of _0x4f5830)void 0x0!==_0xffda4d['oldValue']?_0x30a405['setAttribute'](_0xffda4d['key'],_0xffda4d['oldValue'],_0x4add3d['start']['nodeAfter']):_0x30a405['removeAttribute'](_0xffda4d['key'],_0x4add3d['start']['nodeAfter']);}else{for(const _0x3f02cc of _0x4f5830)_0xffda4d['oldValue']?_0x30a405['setAttribute'](_0xffda4d['key'],_0xffda4d['oldValue'],_0x3f02cc):_0x30a405['removeAttribute'](_0xffda4d['key'],_0x3f02cc);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xcdfdd4);}}function Ot(_0x5c574c,_0x1d62c5,_0x318b79){for(const _0x3b10b8 of _0x1d62c5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3b10b8['root']==_0x3b10b8)return!0x1;if(!_0x318b79['containsItem'](_0x3b10b8))return!0x1;if(_0x5c574c['isObject'](_0x3b10b8)||_0x5c574c['isLimit'](_0x3b10b8))return!0x0;}return!0x1;}function Vt(_0x2c34e2){return _0x2c34e2['end']['parent']==_0x2c34e2['start']['nodeAfter']&&_0x2c34e2['end']['isAtStart'];}function Ut(_0x582c7b,_0x56f3ea,_0x3c41b7,_0x4a09d7){const _0x33594b=_0x17ce54=>!_0x17ce54['item']['is']('$textProxy')&&!_0x4a09d7['isObject'](_0x17ce54['item']),_0x40fc83=_0x582c7b['start']['getLastMatchingPosition'](_0x33594b),_0x3eeb92=_0x582c7b['end']['getLastMatchingPosition'](_0x33594b,{'direction':'backward'});return(!_0x582c7b['start']['isEqual'](_0x40fc83)||!_0x582c7b['end']['isEqual'](_0x3eeb92))&&(_0x40fc83['isBefore'](_0x3eeb92)?_0x3c41b7['updateMarker'](_0x56f3ea,{'range':_0x3c41b7['createRange'](_0x40fc83,_0x3eeb92)}):_0x3c41b7['removeMarker'](_0x56f3ea),!0x0);}function Gt(_0x403244){return _0x55a1d3(_0x403244);}function Ft(_0xc4dfe3){const _0xf579cb=_0xc4dfe3['start']['nodeAfter'];return _0xf579cb&&_0xf579cb['is']('element');}function Pt(_0x3bc452,_0x685eca){return null==_0x3bc452['end']['nodeBefore']&&_0x3bc452['end']['parent']==_0x3bc452['start']['nodeAfter']?Lt(_0x3bc452['start']['nodeAfter'],_0x685eca):_0x3bc452;}function Lt(_0x16d28d,_0x476a51){const _0x1416f7=_0x476a51['schema']['isObject'](_0x16d28d)||_0x476a51['schema']['isSelectable'](_0x16d28d);return _0x476a51['createRange'](_0x476a51['createPositionAt'](_0x16d28d,'before'),_0x1416f7?_0x476a51['createPositionAfter'](_0x16d28d):_0x476a51['createPositionAt'](_0x16d28d,'end'));}function Ht(_0x5d3fc1,_0x27fbba,_0x7ef393,_0x105cbe,_0x3b4e5b){if(_0x5d3fc1['next'])return!0x1;if(!Jt(_0x5d3fc1,_0x27fbba))return!0x1;if(_0x7ef393['end']['isEqual'](_0x105cbe['start']))return!0x0;if(_0x5d3fc1['type']!=_0x27fbba['type'])return!0x1;if(!_0x7ef393['end']['isTouching'](_0x105cbe['start']))return!0x1;const _0x42f665=_0x3b4e5b['createRange'](_0x7ef393['end'],_0x105cbe['start'])['getWalker']();for(const _0x4f1958 of _0x42f665)if(['elementStart','elementEnd']['includes'](_0x4f1958['type'])&&_0x3b4e5b['schema']['isLimit'](_0x4f1958['item']))return!0x1;return!0x0;}function Jt(_0x300dcf,_0x23157a){if(!_0x300dcf['_isDataLoaded']||!_0x23157a['_isDataLoaded'])return!0x1;const _0x391bc1=new Set(Object['keys'](_0x300dcf['attributes'])),_0x2a5e16=new Set(Object['keys'](_0x23157a['attributes']));if(_0x391bc1['delete']('groupId'),_0x2a5e16['delete']('groupId'),0x0==_0x391bc1['size']&&0x0==_0x2a5e16['size'])return!0x0;if(_0x391bc1['size']!=_0x2a5e16['size'])return!0x1;const _0x544cfe={..._0x300dcf['attributes']},_0x594af5={..._0x23157a['attributes']};return delete _0x544cfe['groupId'],delete _0x594af5['groupId'],JSON['stringify'](_0x544cfe)==JSON['stringify'](_0x594af5);}function qt(_0x8f26a5,_0x5a6a88){const _0x531a90=zt(_0x8f26a5['attributes']),_0x377041=zt(_0x5a6a88);if(!_0x8f26a5['_isDataLoaded'])return!0x1;for(const _0x3fd777 of Object['keys'](_0x377041))if(!_0x2ab27f(_0x531a90[_0x3fd777],_0x377041[_0x3fd777]))return!0x1;return!0x0;}function zt(_0x261270){const _0xa98904=Object['assign']({},_0x261270);return delete _0xa98904['skipNestingCheck'],delete _0xa98904['tablePasteChainId'],_0xa98904;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x528fd3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3f3548,_0x51d5b8,_0x290265,_0xcdbd9){super(),this['model']=_0x51d5b8,this['view']=_0x290265,this['commentThreadController']=_0xcdbd9,this['_editor']=_0x3f3548,this['_acceptCommand']=_0x3f3548['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3f3548['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2bef48,_0x45d24e)=>_0x2bef48||_0x45d24e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x113ec6=>_0x113ec6&&this['_editor']['model']['canEditAt'](_0x51d5b8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xad4a10=>_0xad4a10&&this['_editor']['model']['canEditAt'](_0x51d5b8['getRanges']())),this['_pendingAction']=null,_0x290265['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x290265,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x290265,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x290265,'change:isDirty',()=>{_0x290265['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 _0x3e8f08=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3e8f08);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x253ee2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4720e9,_0x2b00c8,_0x32c99a,_0xd6047f){super(_0x4720e9),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5a32ca(_0x4720e9,o(_0x4720e9,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2b00c8['authoredAt']),this['bind']('authoredAt')['to'](_0x2b00c8),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',_0x2b00c8,'authoredAt',this,'descriptionParts',(_0x1ef979,_0x589acb,_0x388afc)=>{const _0x311839=_0x388afc['map'](_0x441820=>ls(_0x441820['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1ef979-0x1,_0x2b00c8['author']['name'],_0x589acb?_0xd6047f['formatDateTime'](_0x589acb):'',new DOMParser()['parseFromString'](_0x311839,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3caffd(),this['focusTracker']=new _0x1ae6a4(),this['keystrokes']=new _0x18fbc7(),this['focusCycler']=new _0x543f5f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3b5daf=>_0x3b5daf['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2b00c8,this['_localUser']=_0x32c99a,this['_config']=_0xd6047f,_0xd6047f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x317c10(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x52a222}=this['_config'];this['commentsListView']=new _0x52a222(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',_0x8a431f=>_0x8a431f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x207b3c,_0x493efc)=>_0x207b3c||!!_0x493efc);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x280143}=this['_config'],_0x4c0761=new _0x280143(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x24a372=_0x4c0761['commentInputView'];return _0x4c0761['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x24a372,'value',(_0x5f0286,_0x5bcfbf,_0xa06175)=>!!_0xa06175||_0x5f0286&&!_0x5bcfbf),_0x24a372['on']('submit',(_0x14e7e7,_0xa4673)=>{this['fire']('addComment',_0xa4673),_0x24a372['editor']['setData']('');}),_0x24a372['on']('cancel',()=>this['focus']()),_0x24a372['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4c0761;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3e11b0,_0x52ebcb,_0x1996aa,_0x26bc4f){super(_0x3e11b0,_0x52ebcb,_0x1996aa,_0x26bc4f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xc24206=>_0xc24206&&_0xc24206[0x0]?_0xc24206[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x184727,_0x275059)=>{let _0x46b8ce='';for(const _0x29f27f of _0x184727)_0x46b8ce+='<p>'+ls(_0x29f27f['content'],_0x29f27f['color'])+'</p>';return _0x275059?_0x46b8ce:_0x9de92e(_0x46b8ce,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x26bc4f['SuggestionView'](_0x3e11b0,_0x52ebcb,{'formatDateTime':_0x26bc4f['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 _0x550d6f=this['bindTemplate'],_0x2d1edc=[this['suggestionView']];return this['commentsListView']&&_0x2d1edc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2d1edc['push'](this['commentThreadInputView']),_0x2d1edc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x550d6f['if']('isActive','ck-suggestion-wrapper--active'),_0x550d6f['to']('type',_0x524fb6=>'ck-suggestion-'+_0x524fb6),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':_0x550d6f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2d1edc};}['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 _0x253ee2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3b20eb,_0x12ace8,_0x2c4423){super(_0x3b20eb),this['_model']=_0x12ace8,this['_config']=_0x2c4423,this['set']('description',''),this['bind']('authoredAt')['to'](_0x12ace8),this['acceptButton']=this['_createButton'](o(_0x3b20eb,'Accept\x20suggestion'),_0x4b2538['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3b20eb,'Discard\x20suggestion'),_0x4b2538['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5d5a8a(_0x3b20eb,_0x12ace8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3caffd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1ae6a4(),this['keystrokes']=new _0x18fbc7(),this['focusCycler']=new _0x543f5f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x477714=>_0x477714['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x15e3f9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x15e3f9['innerHTML']=this['description'],this['on']('change:description',(_0x507145,_0x25de5f,_0x438e3b)=>{_0x15e3f9['innerHTML']=_0x438e3b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x59b196=this['bindTemplate'],_0x5251a5=[{'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':_0x59b196['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x59b196['to']('authoredAt',_0x3ecc51=>this['_config']['formatDateTime'](_0x3ecc51))}]}]},{'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']&&_0x5251a5['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':_0x5251a5}]};}['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'](_0x158a89,_0x1ce7cd,_0x3b6cae,_0x1539f4,_0xb6ab8f){const _0x405d17=new _0x377764(this['locale']);return _0x405d17['set']({'label':_0x158a89,'icon':_0x1ce7cd,'tooltip':!0x0,'tooltipPosition':_0xb6ab8f}),_0x405d17['extendTemplate']({'attributes':{'class':_0x3b6cae}}),_0x405d17['on']('execute',()=>{this['fire'](_0x1539f4,this['_model']['id']);}),_0x405d17;}['_setupKeyboardNavigation'](){const _0x49dba5=this['element'];this['keystrokes']['listenTo'](_0x49dba5);for(const _0x491b93 of this['focusables'])this['focusTracker']['add'](_0x491b93['element']),this['keystrokes']['listenTo'](_0x491b93['element']);this['keystrokes']['set']('enter',(_0x346e98,_0x372bdb)=>{_0x49dba5===_0x346e98['target']&&(this['focusCycler']['focusFirst'](),_0x372bdb());}),this['keystrokes']['set']('esc',(_0x46473e,_0x2cfa54)=>{_0x49dba5!==_0x46473e['target']&&(this['focus'](),_0x2cfa54());});}}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 _0x3ba5c8{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d4e1b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x3aa854){super(_0x3aa854),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4553fd=this['editor']['config'];_0x4553fd['define']('trackChanges.SuggestionThreadView',re),_0x4553fd['define']('trackChanges.SuggestionView',ce),_0x4553fd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4553fd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4c7d6b,_0x223c76){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x14e2f2,_0x1d4404]of this['_handleControllerBuffer']){const _0x460944=this['_suggestionToController']['has'](_0x14e2f2);_0x460944||_0x1d4404?_0x460944&&_0x1d4404&&this['_destroyController'](_0x14e2f2):this['_initializeController'](_0x14e2f2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4c7d6b,_0x223c76);}['init'](){const _0x320e9e=this['editor'],_0x46fb44=_0x320e9e['plugins']['get']('TrackChangesEditing'),_0xd02fda=_0x320e9e['plugins']['get']('Annotations'),_0x32af33=_0x320e9e['plugins']['get']('EditorAnnotations'),_0x3d694e=_0x320e9e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32af33['addSourceCollector'](()=>{const _0x1d1f1f=[];for(const [_0x340290,_0x53dfa3]of Array['from'](this['_suggestionToController'])){const _0x5d6a6a=_0x340290['getAllAdjacentSuggestions'](),_0x4413db=[];for(const _0x2df1f8 of _0x5d6a6a){if(!_0x2df1f8['isInContent'])continue;if(_0x2df1f8['isMultiRange']){_0x4413db['push'](..._0x2df1f8['getRanges']());continue;}const _0x362519=_0x2df1f8['getFirstRange']();if(_0x4413db['length']>0x0){const _0x4d6253=_0x4413db[0x0]['getJoined'](_0x362519);if(_0x4d6253){_0x4413db[0x0]=_0x4d6253;continue;}}_0x4413db['push'](_0x362519);}_0x1d1f1f['push']([_0x53dfa3['view'],_0x4413db]);}return _0x1d1f1f;}),this['listenTo'](_0x46fb44,'suggestionLoaded',(_0xd78043,_0x195fb7)=>{this['listenTo'](_0x195fb7,'change:previous',(_0x31a874,_0x55a2e2,_0x1748b5,_0x588c62)=>{_0x195fb7['isInContent']&&(null==_0x1748b5?(this['_updateController'](_0x588c62['head']),this['_handleSuggestionControllerDelayed'](_0x195fb7,!0x1)):(this['_updateController'](_0x1748b5['head']),null==_0x588c62&&this['_handleSuggestionControllerDelayed'](_0x195fb7,!0x0)));}),null!==_0x195fb7['previous']?this['_updateController'](_0x195fb7['head']):this['_handleSuggestionControllerDelayed'](_0x195fb7,!0x1);}),this['listenTo'](_0x46fb44,'suggestionUnloaded',(_0x321b52,_0xcd05eb,_0x4198b3)=>{this['stopListening'](_0xcd05eb,'change:previous'),this['_handleControllerBuffer']['delete'](_0xcd05eb),this['_suggestionToController']['has'](_0xcd05eb)&&this['_destroyController'](_0xcd05eb),_0x4198b3&&this['_updateController'](_0x4198b3['head']);}),this['listenTo'](_0x46fb44,'suggestionChanged',(_0x4975ab,_0x510428)=>{this['_updateController'](_0x510428);}),this['listenTo'](_0xd02fda,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3d694e,'addComment',(_0x27ba46,{threadId:_0x168352,isFromAdapter:_0x413672})=>{if(_0x413672||!_0x46fb44['hasSuggestion'](_0x168352))return;const _0x531931=_0x46fb44['getSuggestion'](_0x168352);this['_suggestionToController']['get'](_0x531931)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x59acbc=this['editor']['plugins']['get']('Annotations'),_0x40e09a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56b56a=Array['from'](_0x59acbc['activeAnnotations'],_0x4e81ac=>_0x4e81ac['innerView'])['filter'](_0x43ce03=>this['_viewToController']['has'](_0x43ce03)),_0x1bdce2=[];for(const _0x49e680 of _0x56b56a){const _0xbc502c=this['_viewToController']['get'](_0x49e680)['model']['getAllAdjacentSuggestions']();_0x1bdce2['push'](..._0xbc502c['reduce']((_0x55131a,_0x2a9f0f)=>[..._0x55131a,..._0x2a9f0f['getMarkerNames']()],[]));}_0x40e09a['activeMarkers']=_0x1bdce2;}['_addUIComponentsToFactory'](){const _0x392a69=this['editor'],_0x1f2b63=_0x392a69['locale'],_0x3e7939=o(_0x1f2b63,'Track\x20changes'),_0x4638a5=new Wt([{'type':'switchbutton','model':new _0x322289({'withText':!0x0,'isToggleable':!0x0,'label':_0x3e7939,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x322289({'withText':!0x0,'label':o(_0x1f2b63,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x322289({'withText':!0x0,'label':o(_0x1f2b63,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x322289({'withText':!0x0,'label':o(_0x1f2b63,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x322289({'withText':!0x0,'label':o(_0x1f2b63,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2f54a6 of _0x4638a5)if(me(_0x2f54a6)){const _0x291e01=_0x392a69['commands']['get'](_0x2f54a6['model']['commandName']);_0x2f54a6['model']['bind']('isOn','isEnabled')['to'](_0x291e01,'value','isEnabled');}_0x392a69['ui']['componentFactory']['add']('trackChanges',_0x56d4b0=>this['_createToolbarButton'](_0x56d4b0,_0x4638a5,_0x3e7939)),_0x392a69['ui']['componentFactory']['add']('menuBar:trackChanges',_0x57b233=>this['_createMenuBarMenu'](_0x57b233,_0x4638a5,_0x3e7939));}['_createToolbarButton'](_0x127150,_0x5aa243,_0x3ee3a7){const _0x42090d=Qt(_0x127150,_0x241fa9),_0x428ecd=this['editor']['commands']['get']('trackChanges');_0x42090d['buttonView']['set']({'tooltip':_0x3ee3a7,'label':_0x3ee3a7,'icon':he}),_0x42090d['buttonView']['bind']('isOn')['to'](_0x428ecd,'value'),_0x42090d['buttonView']['on']('execute',()=>{_0x428ecd['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x42090d,_0x5aa243,{'role':'menu'});const _0x5a0c3b=[];for(const _0xb90086 of _0x5aa243)me(_0xb90086)&&_0x5a0c3b['push'](this['editor']['commands']['get'](_0xb90086['model']['commandName']));const _0x4c7656=_0x42090d['buttonView'];return _0x4c7656['actionView']['unbind']('isEnabled'),_0x4c7656['arrowView']['unbind']('isEnabled'),_0x4c7656['actionView']['bind']('isEnabled')['to'](_0x428ecd,'isEnabled'),_0x4c7656['arrowView']['bind']('isEnabled')['toMany'](_0x5a0c3b,'isEnabled',(..._0x221617)=>_0x221617['some'](_0x2dac18=>_0x2dac18)),_0x42090d['on']('execute',_0x475874=>{this['editor']['execute'](_0x475874['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x42090d;}['_createMenuBarMenu'](_0x5f1ce5,_0x73e8b0,_0x30bc0a){const _0x46dc72=new Yt(_0x5f1ce5),_0x2a0f3a=this['editor']['commands']['get']('trackChanges');_0x46dc72['buttonView']['set']({'label':_0x30bc0a,'icon':he});const _0x2766e1=new Zt(_0x5f1ce5);for(const _0x1f7fb4 of _0x73e8b0){if('separator'==_0x1f7fb4['type']){_0x2766e1['items']['add'](new Xt(_0x5f1ce5));continue;}const _0x456246=new te(_0x5f1ce5,_0x46dc72),_0x55161d=new _0x421e16(_0x5f1ce5),_0xb93939=_0x1f7fb4['model'];_0x55161d['bind'](...Object['keys'](_0xb93939))['to'](_0xb93939),_0x55161d['delegate']('execute')['to'](_0x46dc72),_0x55161d['on']('execute',()=>{this['editor']['execute'](_0xb93939['commandName']),this['editor']['editing']['view']['focus']();}),_0x456246['children']['add'](_0x55161d),_0x2766e1['items']['add'](_0x456246);}return _0x46dc72['bind']('isEnabled')['to'](_0x2a0f3a,'isEnabled'),_0x46dc72['panelView']['children']['add'](_0x2766e1),_0x46dc72;}['_initializeController'](_0x15eeb5){const _0x576deb=this['editor'],_0x22272c=_0x576deb['config'],_0x5da216=_0x576deb['plugins']['get']('Annotations'),_0xc2fa8e=_0x576deb['plugins']['get']('CommentsRepository'),_0x3a418a=_0x576deb['plugins']['get']('EditorAnnotations'),_0x451cab=_0x576deb['plugins']['get'](_0x4d4e1b)['me'],_0x345eae=_0x22272c['get']('trackChanges')['SuggestionThreadView'],_0x156004=_0x22272c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xa37f5c,CommentThreadInputView:_0x38e48e}=_0x576deb['plugins']['get']('CommentsUI');let _0x4a9436,_0xd31896,_0x8e4d47;this['_annotationViews']['has'](_0x15eeb5['id'])?(_0xd31896=this['_annotationViews']['get'](_0x15eeb5['id']),_0x4a9436=_0xd31896['mainView']):(_0x4a9436=new _0x345eae(_0x576deb['locale'],_0x15eeb5,_0x451cab,{'disableComments':this['_disableComments'],'editorConfig':_0x22272c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x22272c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22272c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22272c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4680c7(_0x22272c['get']('locale')),'CommentView':_0x22272c['get']('comments')['CommentView'],'CommentsListView':_0xa37f5c,'CommentThreadInputView':_0x38e48e,'SuggestionView':_0x156004}),_0x4a9436['suggestionView']['acceptButton']['on']('execute',()=>{_0x576deb['editing']['view']['focus']();}),_0x4a9436['suggestionView']['discardButton']['on']('execute',()=>{_0x576deb['editing']['view']['focus']();}),_0xd31896=_0x5da216['createAnnotationView'](this['editor']['locale'],_0x4a9436),_0xd31896['bind']('isDirty')['to'](_0x4a9436,'isDirty'),_0xd31896['bind']('length')['to'](_0x4a9436),_0xd31896['bind']('type')['to'](_0x4a9436,'type',_0x23d093=>'suggestion-'+_0x23d093),_0x4a9436['on']('escape',()=>{_0x8e4d47['fire']('escape');}),this['_annotationViews']['set'](_0x15eeb5['id'],_0xd31896));const _0x164fe6=_0xc2fa8e['createCommentThreadController'](_0x15eeb5['commentThread'],_0x4a9436),_0x28f92c=new ae(_0x576deb,_0x15eeb5,_0x4a9436,_0x164fe6),_0x140d6d=_0x15eeb5['getAllAdjacentSuggestions']()['filter'](_0x403712=>_0x403712['isInContent']);_0x4a9436['descriptionParts']=_0x576deb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x140d6d),this['_suggestionToController']['set'](_0x15eeb5,_0x28f92c),this['_viewToController']['set'](_0x4a9436,_0x28f92c),_0x8e4d47=_0x5da216['createAnnotation']({'view':_0xd31896,'target':()=>{const _0x203797=[],_0x2d06c2=_0x15eeb5['getAllAdjacentSuggestions']()['filter'](_0x17be8e=>_0x17be8e['isInContent']);for(const _0x354156 of _0x2d06c2)_0x203797['push'](..._0x354156['getMarkers']());return _0x5d8e69(_0x576deb['editing'],_0x203797);},'type':()=>'suggestion-'+_0x28f92c['view']['type']}),_0xc2fa8e['_bindAnnotationToEditors'](_0x4a9436,_0x8e4d47),_0x5da216['add'](_0x8e4d47),_0x3a418a['registerAnnotation'](_0x8e4d47);}['_destroyController'](_0x17074d){const _0x485355=this['editor']['plugins']['get']('CommentsRepository'),_0x2035b2=this['editor']['plugins']['get']('Annotations'),_0x30dbea=this['_suggestionToController']['get'](_0x17074d),_0x491f04=_0x30dbea['view'],_0x167511=_0x2035b2['getByInnerView'](_0x491f04);_0x485355['_unbindEditors'](_0x491f04),_0x167511&&_0x2035b2['remove'](_0x167511),this['_suggestionToController']['delete'](_0x17074d),this['_viewToController']['delete'](_0x491f04),_0x30dbea['destroy']();}['_updateController'](_0x47cdc0){if(!_0x47cdc0['isInContent']||!this['_suggestionToController']['has'](_0x47cdc0))return;const _0x4fb7c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19ee88=this['_suggestionToController']['get'](_0x47cdc0),_0x475b25=_0x47cdc0['getAllAdjacentSuggestions']();_0x19ee88['view']['descriptionParts']=_0x4fb7c3['descriptionFactory']['getDescriptions'](_0x475b25);}['destroy'](){for(const _0x483075 of this['_suggestionToController']['keys']())this['_destroyController'](_0x483075);for(const _0x1d71a1 of this['_annotationViews']['values']())_0x1d71a1['mainView']['destroy']();super['destroy']();}}function me(_0x491346){return'model'in _0x491346;}class k extends _0x3ba5c8{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4f75cf){this['editor']['plugins']['get'](p)['adapter']=_0x4f75cf;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5e68a3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5e68a3);}['getSuggestions']({skipNotAttached:_0xdc6d89=!0x1,toJSON:_0x538b1b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xdc6d89,'toJSON':_0x538b1b});}['getSuggestion'](_0x1a2536){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1a2536);}}const T=['Pagination'];class P extends _0x3ba5c8{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2f1e6d=this['editor'];if(_0x2f1e6d['config']['define']('trackChangesData.editorCreator',_0x4aa5b1=>{const _0xe83108=_0x2f1e6d['model']['document']['getRootNames']()['reduce']((_0x378ce0,_0x306cc8)=>(_0x378ce0[_0x306cc8]='',_0x378ce0),{});return _0x2f1e6d['constructor']['create'](_0xe83108,_0x4aa5b1);}),'function'!=typeof _0x2f1e6d['config']['get']('trackChangesData')['editorCreator'])throw new _0x106dea('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2fd892){return N(this['editor'],!0x0,_0x2fd892);}['getDataWithDiscardedSuggestions'](_0x37a53e){return N(this['editor'],!0x1,_0x37a53e);}}class D extends _0x3ba5c8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x9b4679){super(_0x9b4679),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(_0x10c29c){return void 0x0!==_0x10c29c['getRootsAttributes'];}async function N(_0x226a96,_0x3433f7,_0x1978f4){const _0x5f01c4=_0x3e3901(_0x226a96,T);_0x5f01c4['plugins']['push'](p,D),_0x5f01c4['rootsAttributes']=v(_0x226a96)?_0x226a96['getRootsAttributes']():void 0x0;const _0x4c780b=document['createDocumentFragment'](),_0x5b32c3=_0x226a96['config']['get']('trackChangesData')['editorCreator'],_0x4195f6=await _0x5b32c3(_0x5f01c4,()=>function(_0x2c5287){const _0x1508d6=document['createElement']('div');return _0x2c5287['appendChild'](_0x1508d6),_0x1508d6;}(_0x4c780b));!function(_0x221a01,_0x3661d5){const _0x4ff54a=_0x221a01['model']['document']['getRootNames']()['reduce']((_0x5170cb,_0x3a5651)=>(_0x5170cb[_0x3a5651]=_0x221a01['data']['get']({'rootName':_0x3a5651}),_0x5170cb),{}),_0x589b65=_0x221a01['plugins']['get']('Users')['users']['map'](_0xc39fa6=>({'id':_0xc39fa6['id'],'name':_0xc39fa6['name']})),_0x109bd4=_0x221a01['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x25ce54=_0x221a01['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2a4211=_0x3661d5['plugins']['get']('Users'),_0x50e76b=_0x3661d5['plugins']['get']('TrackChangesEditing'),_0x18a6fb=_0x3661d5['plugins']['get']('CommentsRepository');for(const _0x4d9951 of _0x18a6fb['getCommentThreads']())_0x4d9951['remove']();for(const _0x4768c8 of _0x589b65)_0x2a4211['getUser'](_0x4768c8['id'])||_0x2a4211['addUser'](_0x4768c8);_0x2a4211['me']||_0x2a4211['useAnonymousUser']();for(const _0x2a0c9d of _0x25ce54)_0x18a6fb['addCommentThread'](_0x2a0c9d);for(const _0x401dd9 of _0x109bd4)_0x50e76b['addSuggestionData'](_0x401dd9);_0x3661d5['data']['set'](_0x4ff54a);}(_0x226a96,_0x4195f6),_0x4195f6['execute'](_0x3433f7?'acceptAllSuggestions':'discardAllSuggestions');const _0x59810e=v(_0x4195f6)?_0x4195f6['getFullData'](_0x1978f4):_0x4195f6['data']['get'](_0x1978f4);return await _0x4195f6['destroy'](),_0x59810e;}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 _0x164833,PendingActions as _0x446274,icons as _0x1775b6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xa2aa4e,ObservableMixin as _0x2b10d0,uid as _0x9c8e5f,insertToPriorityArray as _0x4ba283,priorities as _0x6e3e1e,logWarning as _0x34a7f6,getEnvKeystrokeText as _0x7b7363,FocusTracker as _0x29c71c,KeystrokeHandler as _0x118e29,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x201da7,View as _0x2e77b2,ViewCollection as _0xc1d6f2,FocusCycler as _0x1bab62,ViewModel as _0x38b0c2,createDropdown as Qt,SplitButtonView as _0x550e0a,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x3e8f72}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x56d174,hashObject as _0x4c6044,surroundingMarkersDetector as _0x285bea,FOCUS_ANNOTATION_KEYSTROKE as _0x27747b,AriaDescriptionView as _0x5d1f8c,setupThreadKeyboardNavigation as _0x42ddab,trimHtml as _0x70c494,UserView as _0x3c9a2b,LateFocusButtonView as _0xd8a8a9,getDateTimeFormatter as _0x1c564c,getAllMarkersDomElementsSorted as _0x201479,sanitizeEditorConfig as _0x20f9f8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xab9ea5,LiveRange as _0x3f4d48,LivePosition as _0x313502}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x50cd13,toWidget as _0x1ff4e4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x363b83,set as _0x410774,isEqual as _0x18f859,unset as _0x373b80,omit as Tt}from'lodash-es';import{Delete as _0x121e11,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x57c1a5,ShiftEnter as _0x1e2d7e}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x1c8f30,_0x2379f0){super(_0x1c8f30),this['_enabledCommands']=_0x2379f0,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 _0x55aa2d of this['editor']['commands']['commands']())_0x55aa2d['affectsData']&&!this['_enabledCommands']['has'](_0x55aa2d)&&_0x55aa2d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x38d031 of this['editor']['commands']['commands']())_0x38d031['affectsData']&&!this['_enabledCommands']['has'](_0x38d031)&&_0x38d031['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x15d911,_0x205860){super(_0x15d911),this['_suggestions']=_0x205860,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5bbd64){const _0x223ead=this['_suggestions']['get'](_0x5bbd64);if(!_0x223ead)throw new _0xa2aa4e('track-changes-accept-suggestion-not-found',this);const _0x11f9c5=_0x223ead['getRanges']();this['editor']['model']['canEditAt'](_0x11f9c5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x223ead);}}class R extends ts{['_suggestions'];constructor(_0x1e1690,_0x124dc0){super(_0x1e1690),this['_suggestions']=_0x124dc0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x826157){const _0x439a91=this['_suggestions']['get'](_0x826157);if(!_0x439a91)throw new _0xa2aa4e('track-changes-discard-suggestion-not-found',this);const _0xd3ff5d=_0x439a91['getRanges']();this['editor']['model']['canEditAt'](_0xd3ff5d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x439a91);}}function ls(_0x81198e,_0x1af6e6){let _0x42e33f='';return _0x42e33f+=_0x81198e['split']('*')['map']((_0x159e51,_0x152127)=>_0x152127%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x159e51)+'</span>':nn(_0x159e51))['join'](''),_0x1af6e6&&(_0x42e33f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1af6e6['value']+'\x22\x20title=\x22'+_0x1af6e6['title']+'\x22></span>'),_0x42e33f;}function nn(_0xcbe317){const _0x3f5b4e=document['createElement']('span');return _0x3f5b4e['innerText']=_0xcbe317,_0x3f5b4e['innerHTML'];}function ss(_0x242a9c){return _0x242a9c['sort']((_0x2bffdd,_0x2fa672)=>'deletion'==_0x2bffdd['type']&&'deletion'!=_0x2fa672['type']?-0x1:'deletion'!=_0x2bffdd['type']&&'deletion'==_0x2fa672['type']?0x1:0x0);}function to(_0x12b41c,_0x5883c5){let _0xe8fe0b,_0x5da556=0x0;const _0x3f9aab=[],_0x5bffed=_0x5883c5['schema'];for(;_0x5da556<_0x12b41c['length'];){const _0x2bae92=_0x12b41c[_0x5da556],_0x6f1424=_0x12b41c[_0x5da556+0x1];_0xe8fe0b||(_0xe8fe0b=_0x5883c5['createPositionBefore'](_0x2bae92)),on(_0x5883c5,_0x2bae92,_0x6f1424)||(_0x3f9aab['push'](_0x5883c5['createRange'](_0xe8fe0b,_0x5bffed['isObject'](_0x2bae92)?_0x5883c5['createPositionAfter'](_0x2bae92):_0x5883c5['createPositionAt'](_0x2bae92,'end'))),_0xe8fe0b=null),_0x5da556++;}return _0x3f9aab;}function on(_0x53aca2,_0x3c90b7,_0x955ea9){if(!_0x955ea9)return!0x1;const _0x3cb05a=_0x53aca2['createPositionAfter'](_0x3c90b7),_0x21a4e0=_0x53aca2['createPositionBefore'](_0x955ea9);return _0x3cb05a['isTouching'](_0x21a4e0);}function rs(_0x2c55f8,_0x385765,_0x40d753){for(;_0x40d753['length'];){const _0x40cf34=_0x40d753['splice'](0x0,0x64);_0x2c55f8['change'](()=>{for(const _0x2eb481 of _0x40cf34)_0x2eb481['isInContent']&&_0x385765['execute'](_0x2eb481['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x776b6b,_0x39cf20,_0x11a08c){super(_0x776b6b),this['_command']=_0x39cf20,this['_suggestions']=_0x11a08c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3f28a0=Array['from'](this['_suggestions']['values']())['some'](_0x53c04d=>_0x53c04d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3f28a0;}['execute'](){const _0x50fd33=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3d8a4b of _0x50fd33){const _0x5319db=_0x3d8a4b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5319db))return;}rs(this['editor']['model'],this['_command'],_0x50fd33);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x108728,_0x5824cc,_0x3b32f4){super(_0x108728),this['_command']=_0x5824cc,this['_suggestions']=_0x3b32f4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x38d768=this['editor']['model']['document']['selection'],_0x2f6586=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3cd545,_0x4c4897){const _0x233f10=Array['from'](_0x3cd545['getRanges']()),_0x14e4b8=new Set();for(const _0x2a042f of _0x4c4897)if(_0x2a042f['isInContent']){for(const _0x3031ca of _0x233f10)for(const _0x4d526f of _0x2a042f['getRanges']())(_0x3031ca['isIntersecting'](_0x4d526f)||_0x3cd545['isCollapsed']&&!_0x2a042f['isMultiRange']&&_0x2a042f['next']&&_0x4d526f['end']['isTouching'](_0x3031ca['start']))&&_0x14e4b8['add'](_0x2a042f);}return _0x14e4b8;}(_0x38d768,_0x2f6586),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x591255=ss(Array['from'](this['_selectedSuggestions']));for(const _0x294249 of _0x591255){const _0x21040f=_0x294249['getRanges']();if(!this['editor']['model']['canEditAt'](_0x21040f))return;}rs(this['editor']['model'],this['_command'],_0x591255);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x2b10d0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x354a60,_0x1d3e16){super(),this['id']=_0x1d3e16['id'],this['type']=_0x1d3e16['type'],this['subType']=_0x1d3e16['subType']||null,this['author']=_0x1d3e16['author'],this['creator']=_0x1d3e16['creator']||_0x1d3e16['author'],this['isExternal']=Boolean(_0x1d3e16['attributes']&&_0x1d3e16['attributes']['@external']),this['data']=null,this['_model']=_0x354a60,this['_onAccept']=_0x1d3e16['onAccept'],this['_onDiscard']=_0x1d3e16['onDiscard'],this['_onAttributesChange']=_0x1d3e16['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1d3e16['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 _0x2d443e=this;for(;_0x2d443e['previous'];)_0x2d443e=_0x2d443e['previous'];return _0x2d443e;}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'](_0x3f60ac){this['_markerNames']['add'](_0x3f60ac);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x11e281=>this['_model']['markers']['get'](_0x11e281))['filter'](_0x238b6d=>_0x238b6d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x41c4ab=>{for(const _0x2085e9 of this['getMarkers']())_0x41c4ab['removeMarker'](_0x2085e9);}),this['_markerNames']['clear']();}['removeMarker'](_0xb3e83b){this['_model']['change'](_0x4cffb2=>{_0x4cffb2['removeMarker'](_0xb3e83b);}),this['_markerNames']['delete'](_0xb3e83b);}['addRange'](_0x3b77d4){const _0x185807='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x185807),this['_model']['change'](_0x45f430=>{_0x45f430['addMarker'](_0x185807,{'range':_0x3b77d4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x46846a){for(const _0x78ac0c of this['getRanges']())if(_0x78ac0c['isIntersecting'](_0x46846a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2e0205=>_0x2e0205['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x558020,_0x2a8a2b)=>[..._0x558020,..._0x2a8a2b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x27b891=this['getRanges']();if(0x1!=_0x27b891['length'])return null;const _0x539148=_0x27b891[0x0],_0x3a5279=_0x539148['start']['nodeAfter'],_0x420a3f=_0x539148['end']['nodeBefore'];return _0x3a5279 instanceof _0xab9ea5?_0x3a5279!=_0x420a3f?null:_0x3a5279: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 _0x373b6d=[];let _0x2823aa=this['head'];for(;_0x2823aa;)_0x373b6d['push'](_0x2823aa),_0x2823aa=_0x2823aa['next'];return _0x373b6d;}['setAttribute'](_0x3078a1,_0x57a2d4){const _0x358d15=_0x363b83(this['attributes']);_0x410774(_0x358d15,_0x3078a1,_0x57a2d4),_0x18f859(_0x358d15,this['attributes'])||(this['attributes']=_0x358d15,this['_onAttributesChange'](_0x358d15));}['removeAttribute'](_0x496f07){const _0x2f0114=_0x363b83(this['attributes']);_0x373b80(_0x2f0114,_0x496f07),_0x18f859(_0x2f0114,this['attributes'])||(this['attributes']=_0x2f0114,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 _0x9c8e5f()['substr'](0x1,0x5);}}function o(_0x5adecc,_0x1501f6,_0x3d30d6){const t=_0x5adecc['t'];switch(_0x1501f6){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',_0x3d30d6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3d30d6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3d30d6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3d30d6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3d30d6);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',_0x3d30d6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3d30d6);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',_0x3d30d6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3d30d6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3d30d6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3d30d6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3d30d6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3d30d6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3d30d6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3d30d6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3d30d6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3d30d6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3d30d6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3d30d6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3d30d6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3d30d6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3d30d6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3d30d6);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'},_0x3d30d6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3d30d6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3d30d6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3d30d6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3d30d6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3d30d6);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'},_0x3d30d6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3d30d6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3d30d6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3d30d6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3d30d6);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'},_0x3d30d6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3d30d6);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'},_0x3d30d6);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'},_0x3d30d6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3d30d6);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'},_0x3d30d6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3d30d6);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'},_0x3d30d6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3d30d6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3d30d6);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'},_0x3d30d6);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'},_0x3d30d6);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'},_0x3d30d6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3d30d6);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'},_0x3d30d6);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'},_0x3d30d6);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'},_0x3d30d6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1501f6;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x432650,_0x293969){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x432650,this['_locale']=_0x293969;}['getDescriptions'](_0x4062eb){const _0x46ca10=[],_0x528dcc=new Set(),_0x1cfd66=new Set();for(let _0x201856=0x0;_0x201856<_0x4062eb['length'];_0x201856++){const _0x4feb47=_0x4062eb[_0x201856];if(!_0x4feb47['isInContent'])continue;const _0x1e5f2b=this['_handleCustomCallbackDescription'](_0x4feb47);if(_0x1e5f2b){if(null!=_0x4feb47['subType']){if(_0x528dcc['has'](_0x4feb47['subType']))continue;_0x528dcc['add'](_0x4feb47['subType']);}_0x46ca10['push'](_0x1e5f2b);}else{if('attribute'!=_0x4feb47['type'])'insertion'!=_0x4feb47['type']&&'deletion'!=_0x4feb47['type']||this['_handleInsertRemoveSuggestionDescription'](_0x46ca10,_0x4feb47,_0x4062eb[_0x201856+0x1]);else{const _0x20da57=_0x4feb47['data']['key'];if(_0x1cfd66['has'](_0x20da57))continue;_0x1cfd66['add'](_0x4feb47['data']['key']),_0x20da57==m?this['_handleRenameSuggestionDescription'](_0x46ca10,_0x4feb47):this['_handleAttributeSuggestionDescription'](_0x46ca10,_0x4feb47);}}}return this['_resolveDescriptionItems'](_0x46ca10);}['registerDescriptionCallback'](_0x1f14a8){this['_customCallbacks']['push'](_0x1f14a8);}['registerElementLabel'](_0x39cdf6,_0x3fd8f2,_0x1116a0=_0x6e3e1e['normal']){'function'==typeof _0x39cdf6?_0x4ba283(this['_itemLabelsCallbacks'],{'matchingCallback':_0x39cdf6,'label':_0x3fd8f2,'priority':_0x1116a0}):this['_itemLabels']['set'](_0x39cdf6,_0x3fd8f2);}['registerAttributeLabel'](_0x59122f,_0x2229da){this['_attributeLabels']['set'](_0x59122f,_0x2229da);}['getItemLabel'](_0x29a972,_0x222dc2=0x1){let _0x2152c9;for(const _0x5ed47c of this['_itemLabelsCallbacks'])if(_0x5ed47c['matchingCallback'](_0x29a972)){_0x2152c9=_0x5ed47c['label'];break;}return _0x2152c9||(_0x2152c9=this['_itemLabels']['get'](_0x29a972['name'])),_0x2152c9?_0x2152c9(_0x222dc2):0x1!==_0x222dc2?_0x222dc2+'\x20'+_0x29a972['name']+'s':''+_0x29a972['name'];}['_addDescriptionItems'](_0x16a02b,_0x6e84d9){const _0x3e2004=_0x6e84d9['getFirstRange']()['getWalker'](),_0x1ceb48='insertion'==_0x6e84d9['type']?'add':'remove';for(const _0x5b1c70 of _0x3e2004){const _0x77b8c=_0x5b1c70['item'],_0x16b818=_0x16a02b[_0x16a02b['length']-0x1];if(_0x77b8c['is']('$textProxy'))_0x16b818&&_0x16b818['type']['indexOf']('Container')>-0x1&&_0x16a02b['pop'](),_0x16b818&&'text'==_0x16b818['type']?_0x16b818[_0x1ceb48]+=_0x77b8c['data']:_0x16a02b['push']({'type':'text','add':'add'==_0x1ceb48?_0x77b8c['data']:'','remove':'remove'==_0x1ceb48?_0x77b8c['data']:''});else{if(this['_schema']['isObject'](_0x77b8c)){const _0x57bbe7=_0x77b8c;if(_0x16b818&&_0x16b818['type']['indexOf']('Container')>-0x1&&_0x16a02b['pop'](),'elementEnd'==_0x5b1c70['type'])continue;_0x16b818&&_0x16b818['type']==_0x1ceb48+'Object'&&_0x16b818['element']['name']==_0x57bbe7['name']?_0x16b818['quantity']++:_0x16a02b['push']({'type':_0x1ceb48+'Object','element':_0x57bbe7,'quantity':0x1}),_0x3e2004['skip'](_0x2ed196=>!('elementEnd'==_0x2ed196['type']&&_0x2ed196['item']==_0x77b8c));}else{if(this['_schema']['checkChild'](_0x77b8c,'$text')||_0x77b8c['is']('element','softBreak')){const _0x165f60=_0x77b8c;if('add'==_0x1ceb48&&'elementStart'==_0x5b1c70['type']||'remove'==_0x1ceb48&&'elementEnd'==_0x5b1c70['type'])continue;if(_0x16b818&&-0x1==_0x16b818['type']['indexOf']('Container')){'text'==_0x16b818['type']&&(_0x16b818[_0x1ceb48]+='\x0a');continue;}let _0x19fbdf;if(_0x19fbdf='add'==_0x1ceb48?_0x165f60['nextSibling']&&!this['_schema']['isObject'](_0x165f60['nextSibling'])?_0x165f60['nextSibling']:null:_0x165f60['previousSibling']&&!this['_schema']['isObject'](_0x165f60['previousSibling'])?_0x165f60['previousSibling']:null,_0x165f60['isEmpty']||_0x19fbdf&&_0x19fbdf['isEmpty']){const _0x1ced08=_0x19fbdf&&_0x19fbdf['isEmpty']?_0x19fbdf:_0x165f60;_0x16b818&&_0x16b818['type']==_0x1ceb48+'EmptyContainer'&&_0x16b818['element']['name']==_0x1ced08['name']?_0x16b818['quantity']++:_0x16a02b['push']({'type':_0x1ceb48+'EmptyContainer','element':_0x1ced08,'quantity':0x1});}else _0x16a02b['push']({'type':_0x1ceb48+'Container','element':_0x165f60});}}}}}['_resolveDescriptionItems'](_0xfeb44){const _0x35d85a=this['_locale'],_0x432254=[],_0x32777c=[],_0x21f566=[];for(const _0x182651 of _0xfeb44)switch(_0x182651['type']){case'text':if(_0x182651['add']=_0x182651['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x182651['remove']=_0x182651['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x182651['add']&&''!=_0x182651['remove']){_0x432254['push']({'type':'replace','content':o(_0x35d85a,'REPLACE_TEXT',['\x22'+_0x182651['remove']+'\x22','\x22'+_0x182651['add']+'\x22'])});continue;}if(null!=_0x182651['add']['match'](/^ +$/)){_0x432254['push']({'type':'insertion','content':o(_0x35d85a,'*Insert:*\x20%0',o(_0x35d85a,'ELEMENT_SPACE',_0x182651['add']['length']))});continue;}if(null!=_0x182651['remove']['match'](/^ +$/)){_0x432254['push']({'type':'deletion','content':o(_0x35d85a,'*Remove:*\x20%0',o(_0x35d85a,'ELEMENT_SPACE',_0x182651['remove']['length']))});continue;}if(''!=_0x182651['add']){_0x432254['push']({'type':'insertion','content':o(_0x35d85a,'*Insert:*\x20%0','\x22'+_0x182651['add']+'\x22')});continue;}_0x432254['push']({'type':'deletion','content':o(_0x35d85a,'*Remove:*\x20%0','\x22'+_0x182651['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x432254['push']({'type':'insertion','content':o(_0x35d85a,'*Insert:*\x20%0',this['getItemLabel'](_0x182651['element'],_0x182651['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x432254['push']({'type':'deletion','content':o(_0x35d85a,'*Remove:*\x20%0',this['getItemLabel'](_0x182651['element'],_0x182651['quantity']))});continue;case'addContainer':_0x432254['push']({'type':'insertion','content':o(_0x35d85a,'*Split:*\x20%0',this['getItemLabel'](_0x182651['element'],_0x182651['quantity']))});continue;case'removeContainer':_0x432254['push']({'type':'deletion','content':o(_0x35d85a,'*Merge:*\x20%0',this['getItemLabel'](_0x182651['element'],_0x182651['quantity']))});continue;case'addFormat':_0x32777c['push'](_0x182651['key']);continue;case'removeFormat':_0x21f566['push'](_0x182651['key']);continue;default:_0x432254['push'](_0x182651);}if(_0x32777c['length']){const _0x260e4e=_0x32777c['map'](_0x123511=>this['_attributeLabels']['has'](_0x123511)?this['_attributeLabels']['get'](_0x123511):_0x123511)['join'](',\x20');_0x432254['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x260e4e)});}if(_0x21f566['length']){const _0x1fc7b8=_0x21f566['map'](_0x187769=>this['_attributeLabels']['has'](_0x187769)?this['_attributeLabels']['get'](_0x187769):_0x187769)['join'](',\x20');_0x432254['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1fc7b8)});}return _0x432254;}['_handleCustomCallbackDescription'](_0x2f280c){for(const _0xd94885 of this['_customCallbacks']){const _0x1b9266=_0xd94885(_0x2f280c);if(_0x1b9266&&'type'in _0x1b9266)return _0x1b9266;}}['_handleAttributeSuggestionDescription'](_0x390407,_0x429de9){const _0x62ce67=_0x429de9['data'],_0x53bc02=void 0x0===_0x62ce67['newValue']?'removeFormat':'addFormat';_0x390407['push']({'type':_0x53bc02,'key':_0x62ce67['key']});}['_handleRenameSuggestionDescription'](_0x1d43f1,_0x5a9913){_0x1d43f1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a9913['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x22c028,_0x538e2a,_0x3827b8){if(this['_addDescriptionItems'](_0x22c028,_0x538e2a),_0x3827b8&&_0x3827b8['getFirstRange']()&&!_0x538e2a['getFirstRange']()['end']['isEqual'](_0x3827b8['getFirstRange']()['start'])){const _0x4ebf43=_0x22c028[_0x22c028['length']-0x1],_0x286a9d='insertion'==_0x538e2a['type']?'add':'remove';_0x4ebf43&&'text'==_0x4ebf43['type']&&(_0x4ebf43[_0x286a9d]+='\x0a');}}}class V extends _0x164833{['afterInit'](){const _0x344622=this['editor'],_0x130c3b=_0x344622['plugins']['get']('TrackChangesEditing');_0x344622['commands']['get']('showAIAssistant')&&_0x130c3b['enableCommand']('showAIAssistant');}}class U extends _0x164833{['afterInit'](){const _0xc08b00=this['editor'],_0x5c7521=_0xc08b00['locale'];if(!_0xc08b00['plugins']['has']('AlignmentEditing'))return;const _0x59f1ec=_0xc08b00['plugins']['get']('TrackChangesEditing');_0x59f1ec['enableDefaultAttributesIntegration']('alignment'),_0x59f1ec['registerBlockAttribute']('alignment'),_0x59f1ec['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5c7521,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25acc3=this['editor'],_0x320950=_0x25acc3['locale'];_0x25acc3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19ca84=>{if('formatBlock'!=_0x19ca84['type'])return;const {data:_0x2c4953}=_0x19ca84;if(_0x2c4953&&'alignment'==_0x2c4953['commandName']){const _0x32d1e9=_0x2c4953['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x320950,'*Format:*\x20%0',function(_0x57874d){switch(_0x57874d){case'left':return o(_0x320950,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x320950,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x320950,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x320950,'FORMAT_JUSTIFY_TEXT');}}(_0x32d1e9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x164833{['afterInit'](){const _0x4a8b79=this['editor'],_0xe50474=_0x4a8b79['plugins']['get']('TrackChangesEditing'),_0x506f8b=_0x4a8b79['locale'];for(const _0x167a89 of ti){if(!_0x4a8b79['plugins']['has'](_0x167a89))continue;const _0x1ffd11=_0x167a89['slice'](0x0,-0x7)['toLowerCase'](),_0x60373='FORMAT_'+_0x1ffd11['toUpperCase']();_0xe50474['enableDefaultAttributesIntegration'](_0x1ffd11),_0xe50474['registerInlineAttribute'](_0x1ffd11),_0xe50474['descriptionFactory']['registerAttributeLabel'](_0x1ffd11,o(_0x506f8b,_0x60373));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41dc23=this['editor'],_0x15d468=_0x41dc23['locale'],_0x1998cf=_0x41dc23['plugins']['get']('TrackChangesEditing');function _0x43e496(_0x2f8301,_0x110db2){_0x1998cf['descriptionFactory']['registerDescriptionCallback'](_0x59edb7=>{if('formatInline'!=_0x59edb7['type'])return;const {data:_0x118e6c}=_0x59edb7;return _0x118e6c&&_0x118e6c['commandName']===_0x2f8301?_0x118e6c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15d468,'*Format:*\x20%0',_0x110db2)}:{'type':'format','content':o(_0x15d468,'*Remove\x20format:*\x20%0',_0x110db2)}:void 0x0;});}_0x43e496('bold',o(_0x15d468,'FORMAT_BOLD')),_0x43e496('italic',o(_0x15d468,'FORMAT_ITALIC')),_0x43e496('underline',o(_0x15d468,'FORMAT_UNDERLINE')),_0x43e496('code',o(_0x15d468,'FORMAT_CODE')),_0x43e496('strikethrough',o(_0x15d468,'FORMAT_STRIKETHROUGH')),_0x43e496('subscript',o(_0x15d468,'FORMAT_SUBSCRIPT')),_0x43e496('superscript',o(_0x15d468,'FORMAT_SUPERSCRIPT'));}}class F extends _0x164833{['afterInit'](){const _0x264407=this['editor'],_0x5a0372=_0x264407['locale'];if(!_0x264407['plugins']['has']('BlockQuoteEditing'))return;const _0x3e820f=_0x264407['plugins']['get']('TrackChangesEditing'),_0x377f5c=this['editor']['commands']['get']('blockQuote');_0x3e820f['enableCommand']('blockQuote',(_0x4a6339,_0x595496={})=>{const _0x2bc1ef=this['editor']['model']['document']['selection'],_0x1aa7b2=_0x595496&&void 0x0!==_0x595496['forceValue']?_0x595496['forceValue']:!_0x377f5c['value'];let _0x19f02f=[];if(_0x1aa7b2){const _0x17f4b8=Array['from'](_0x2bc1ef['getSelectedBlocks']())['filter'](_0x2ca88c=>oo(_0x2ca88c)||function(_0x503060,_0x35b1dc){const _0x4ef409=_0x35b1dc['checkChild'](_0x503060['parent'],'blockQuote'),_0x4bbf15=_0x35b1dc['checkChild'](['$root','blockQuote'],_0x503060);return _0x4ef409&&_0x4bbf15;}(_0x2ca88c,this['editor']['model']['schema']));_0x19f02f=to(_0x17f4b8,_0x264407['model']);}else{const _0x285cd1=Array['from'](_0x2bc1ef['getSelectedBlocks']())['filter'](_0x18392f=>oo(_0x18392f));_0x19f02f=to(_0x285cd1,_0x264407['model']);}_0x264407['model']['change'](()=>{for(const _0x5853c0 of _0x19f02f)_0x3e820f['markBlockFormat'](_0x5853c0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1aa7b2}]});});}),_0x3e820f['descriptionFactory']['registerDescriptionCallback'](_0x3ce448=>{const {data:_0x17fdb6}=_0x3ce448;if(_0x17fdb6&&'blockQuote'==_0x17fdb6['commandName']){const _0x2d0659=o(_0x5a0372,'ELEMENT_BLOCK_QUOTE');return _0x17fdb6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a0372,'*Set\x20format:*\x20%0',_0x2d0659)}:{'type':'format','content':o(_0x5a0372,'*Remove\x20format:*\x20%0',_0x2d0659)};}});}}function oo(_0x25591c){return'blockQuote'==_0x25591c['parent']['name'];}class L extends _0x164833{['afterInit'](){const _0x4667d1=this['editor'];_0x4667d1['plugins']['has']('CaseChange')&&(_0x4667d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4667d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4667d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x164833{['afterInit'](){const _0x586c8d=this['editor'];_0x586c8d['commands']['get']('ckbox')&&_0x586c8d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x164833{['afterInit'](){const _0x26b821=this['editor'];if(!_0x26b821['plugins']['has']('CodeBlock'))return;const _0x459618=_0x26b821['plugins']['get']('TrackChangesEditing'),_0x1c9885=_0x26b821['locale'],_0x5a555f=_0x26b821['config']['get']('codeBlock')['languages'],_0x4d532e=_0x26b821['commands']['get']('codeBlock');_0x459618['enableCommand']('indentCodeBlock'),_0x459618['enableCommand']('outdentCodeBlock'),_0x459618['enableCommand']('codeBlock',(_0xc4de98,_0x27fdab={})=>{const _0x1350b0=_0x26b821['model'],_0x41a9f0=_0x26b821['model']['document']['selection'],_0x350f04=_0x27fdab&&void 0x0!==_0x27fdab['forceValue']?_0x27fdab['forceValue']:!_0x4d532e['value'];let _0x1150f2;_0x27fdab['language']||(_0x27fdab['language']=_0x5a555f[0x0]['language']),_0x1150f2=_0x350f04?Array['from'](_0x41a9f0['getSelectedBlocks']())['filter'](_0x356da6=>eo(_0x356da6)||function(_0x265e4d,_0x4379b9){if(_0x265e4d['is']('rootElement')||_0x4379b9['isLimit'](_0x265e4d))return!0x1;return _0x4379b9['checkChild'](_0x265e4d['parent'],'codeBlock');}(_0x356da6,_0x1350b0['schema'])):Array['from'](_0x41a9f0['getSelectedBlocks']())['filter'](_0x220fef=>eo(_0x220fef));const _0x115815=to(_0x1150f2,_0x1350b0);_0x1350b0['change'](()=>{for(const _0x488b46 of _0x115815)_0x459618['markBlockFormat'](_0x488b46,{'commandName':'codeBlock','commandParams':[{..._0x27fdab,'forceValue':_0x350f04}],'formatGroupId':'blockName'});});}),(_0x459618['descriptionFactory']['registerElementLabel']('codeBlock',_0x5e7325=>o(_0x1c9885,'ELEMENT_CODE_BLOCK',_0x5e7325)),_0x459618['descriptionFactory']['registerDescriptionCallback'](_0x18dc40=>{if('formatBlock'!=_0x18dc40['type'])return;const _0x2c34b6=_0x1c9885['t'],{data:_0x82105a}=_0x18dc40;if(!_0x82105a||'codeBlock'!=_0x82105a['commandName'])return;const _0x52a2b8=_0x82105a['commandParams'][0x0]['language'],_0x1d86bb=_0x2c34b6(_0x5a555f['find'](_0x1cd464=>_0x1cd464['language']===_0x52a2b8)['label'])['toLowerCase']();return _0x82105a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c9885,'*Set\x20format:*\x20%0',o(_0x1c9885,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1d86bb+')')}:{'type':'format','content':o(_0x1c9885,'*Remove\x20format:*\x20%0',o(_0x1c9885,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2227c6){return'codeBlock'==_0x2227c6['name'];}class q extends _0x164833{['afterInit'](){const _0x3a853d=this['editor'];if(!_0x3a853d['plugins']['has']('CommentsEditing'))return;_0x3a853d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x46638e,_0x35562f,_0x51ab93){const _0x19e116=[];for(const _0x2bdf89 of _0x35562f['getItems']())_0x2bdf89['hasAttribute'](_0x46638e)&&_0x19e116['push'](_0x51ab93['createRangeOn'](_0x2bdf89));return _0x19e116;}function _e(_0x513887,_0x345d7d,{showActiveMarker:_0x4ce7dd=!0x0}={}){const _0x59911d=_0x513887['plugins']['get']('TrackChangesEditing');return(_0x1ffc6d,_0x41ec22,_0x208aa8)=>{if(!_0x208aa8['consumable']['test'](_0x41ec22['markerRange'],_0x1ffc6d['name']))return;const _0x53a7ab=_0x41ec22['markerRange']['getWalker'](),_0x293e89=_0x41ec22['markerRange']['start'],_0x233715=_0x513887['model']['schema'];let _0x4d2c70=null,_0x1aa5b6=null,_0x42acea=!0x1,_0x428bf4=!0x1;for(const _0x4ff203 of _0x53a7ab){const _0x19ceec=_0x4ff203['item'];_0x42acea=_0x42acea||_0x233715['isContent'](_0x19ceec);const _0x54447e=_0x208aa8['mapper']['toViewElement'](_0x19ceec);if(_0x54447e&&_0x54447e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ff203['type']&&(_0x233715['isBlock'](_0x19ceec)&&!_0x233715['isLimit'](_0x19ceec)&&(_0x19ceec['nextSibling']||_0x293e89['isAtEnd']?_0x4d2c70&&_0x4d2c70['parent']==_0x19ceec||(_0x4d2c70=_0x19ceec,_0x28d29c(_0x4ff203['previousPosition']),_0x428bf4=!0x0):_0x1aa5b6=_0x1aa5b6||_0x4ff203['previousPosition']));}function _0x28d29c(_0x291e1d){const {authorId:_0x191a17}=_0x59911d['_splitMarkerName'](_0x41ec22['markerName']),_0x2203cc=_0x208aa8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x345d7d,'data-author-id':_0x191a17}),_0x509842=_0x208aa8['mapper']['toViewPosition'](_0x291e1d);_0x4ce7dd&&_0x59911d['activeMarkers']['includes'](_0x41ec22['markerName'])&&_0x208aa8['writer']['addClass']('ck-suggestion-marker--active',_0x2203cc),_0x208aa8['writer']['insert'](_0x509842,_0x2203cc),_0x208aa8['mapper']['bindElementToMarker'](_0x2203cc,_0x41ec22['markerName']);}_0x42acea||_0x428bf4||!_0x1aa5b6||_0x28d29c(_0x1aa5b6);};}class z extends _0x164833{static get['requires'](){return[_0x121e11];}['init'](){const _0x460f3d=this['editor'],_0x3826f3=_0x460f3d['plugins']['get']('TrackChangesEditing');_0x3826f3['enableCommand']('delete');const _0x45de96=_0x460f3d['commands']['get']('deleteForward');_0x3826f3['enableCommand']('deleteForward',(_0x96a9d5,_0x286406={})=>{const _0x42a0cb=_0x460f3d['model']['createSelection'](_0x460f3d['model']['document']['selection']);_0x42a0cb['isCollapsed']&&_0x460f3d['model']['modifySelection'](_0x42a0cb,{'direction':'forward','unit':_0x286406['unit']});const _0x29e45d=_0x42a0cb['getFirstRange'](),_0x4b1966=_0x3f4d48['fromRange'](_0x29e45d);let _0x1295f2;_0x96a9d5(_0x286406),_0x1295f2='$graveyard'==_0x4b1966['root']['rootName']?_0x460f3d['model']['createRange'](_0x29e45d['start']):_0x460f3d['model']['createRange'](_0x4b1966['start'],_0x4b1966['end']),_0x4b1966['detach'](),_0x460f3d['model']['enqueueChange'](_0x45de96['buffer']['batch'],_0x4e4bad=>{_0x45de96['buffer']['lock'](),_0x4e4bad['setSelection'](_0x4e4bad['createRange'](_0x1295f2['end'])),_0x45de96['buffer']['unlock']();});}),_0x460f3d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x460f3d,'merge'),{'priority':'high'}),_0x460f3d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xddfe87,_0x197dba,_0x436a5c)=>{_0x436a5c['options']['showSuggestionHighlights']&&_e(_0x460f3d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xddfe87,_0x197dba,_0x436a5c);},{'priority':'high'}),_0x460f3d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x421ea4,_0x2f71f7,_0x1b50cd)=>{const _0x4b09cf=_0x1b50cd['mapper']['markerNameToElements'](_0x2f71f7['markerName']);if(_0x4b09cf){for(const _0x2559d1 of _0x4b09cf)_0x2559d1['is']('uiElement')&&(_0x1b50cd['mapper']['unbindElementFromMarkerName'](_0x2559d1,_0x2f71f7['markerName']),_0x1b50cd['writer']['remove'](_0x2559d1));}},{'priority':'high'});}}class K extends _0x164833{['afterInit'](){const _0x59b019=this['editor'];if(!_0x59b019['plugins']['has']('ListEditing'))return;const _0x2f5438=_0x59b019['locale'],_0x5f5b19=_0x59b019['plugins']['get']('TrackChangesEditing'),_0xd4bf08=_0x59b019['plugins']['has']('TodoListEditing'),_0x354e81=!!_0x59b019['config']['get']('list.multiBlock');function _0x3d48ff(_0x743df4){return{'type':'format','content':''+o(_0x2f5438,'*Set\x20format:*\x20%0',_0x743df4)};}function _0x285e37(_0x49e06a){return{'type':'format','content':''+o(_0x2f5438,'*Remove\x20format:*\x20%0',_0x49e06a)};}_0x5f5b19['enableDefaultAttributesIntegration']('numberedList'),_0x5f5b19['enableDefaultAttributesIntegration']('bulletedList'),_0x5f5b19['enableDefaultAttributesIntegration']('customNumberedList'),_0x5f5b19['enableDefaultAttributesIntegration']('customBulletedList'),_0x5f5b19['enableDefaultAttributesIntegration']('indentList'),_0x5f5b19['enableDefaultAttributesIntegration']('outdentList'),_0x5f5b19['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5f5b19['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5f5b19['registerBlockAttribute']('listItemId'),_0x5f5b19['registerBlockAttribute']('listType'),_0x5f5b19['registerBlockAttribute']('listIndent'),_0x354e81&&(_0x5f5b19['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5f5b19['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xd4bf08&&(_0x5f5b19['enableDefaultAttributesIntegration']('todoList'),_0x5f5b19['enableDefaultAttributesIntegration']('checkTodoList'),_0x5f5b19['registerBlockAttribute']('todoListChecked'),_0x5f5b19['descriptionFactory']['registerDescriptionCallback'](_0x1402ff=>{const {data:_0x3fba96}=_0x1402ff;if(_0x3fba96&&'todoListChecked'==_0x3fba96['key'])return{'type':'format','content':_0x3fba96['newValue']?o(_0x2f5438,'*Check\x20item*'):o(_0x2f5438,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x436103=>{if(_0x436103['batch']['isUndo'])return!0x1;let _0x278261=!0x1;const _0x13a500=_0x5f5b19['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x137ce8=>'todoListChecked'===_0x5f5b19['_getAttributeKey'](_0x137ce8));for(const _0x2d4ac8 of _0x13a500){'todo'!=_0x2d4ac8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5f5b19['_findSuggestions'](_0x2d4ac8['getFirstRange'](),'attribute')['find'](_0x5425a8=>'listType'===_0x5f5b19['_getAttributeKey'](_0x5425a8['suggestion']))||(_0x436103['removeMarker'](_0x2d4ac8['getFirstMarker']()),_0x278261=!0x0));}return _0x278261;})),_0x5f5b19['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2f5438,'FORMAT_INDENT'));const _0x21ec07={'type':'format','content':''};_0x5f5b19['descriptionFactory']['registerDescriptionCallback'](_0x1445c8=>{const {data:_0x785ca5}=_0x1445c8;if(!_0x785ca5||'listType'!=_0x785ca5['key'])return;let _0x597fd1=_0x1445c8['head'];for(;_0x597fd1;){if(_0x597fd1['data']&&(('listStyle'==_0x597fd1['data']['key']||'listMarkerStyle'==_0x597fd1['data']['key'])&&(_0x597fd1['data']['newValue']&&'default'!=_0x597fd1['data']['newValue']||'default'!=_0x597fd1['data']['oldValue']&&!_0x785ca5['newValue'])||!_0x354e81&&_0x597fd1['data']['key']==m))return _0x21ec07;_0x597fd1=_0x597fd1['next'];}if(null==_0x785ca5['newValue'])switch(_0x785ca5['oldValue']){case'bulleted':return _0x285e37(o(_0x2f5438,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x285e37(o(_0x2f5438,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x285e37(o(_0x2f5438,'ELEMENT_TODO_LIST'));}switch(_0x785ca5['newValue']){case'bulleted':return _0x3d48ff(o(_0x2f5438,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3d48ff(o(_0x2f5438,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3d48ff(o(_0x2f5438,'ELEMENT_TODO_LIST'));}}),_0x5f5b19['descriptionFactory']['registerDescriptionCallback'](_0x1ad90a=>{const {data:_0x239bca}=_0x1ad90a;if(_0x239bca&&'listIndent'==_0x239bca['key'])return null==_0x239bca['newValue']||null==_0x239bca['oldValue']&&0x0==_0x239bca['newValue']?_0x21ec07:void 0x0;}),_0x5f5b19['descriptionFactory']['registerDescriptionCallback'](_0x345391=>{if('attribute'!=_0x345391['type'])return;const {data:_0x2b9404}=_0x345391;if(!_0x2b9404||'listItemId'!=_0x2b9404['key'])return;const _0xd91606=Ee(_0x345391);return'newValue'==_0xd91606?{'type':'format','content':o(_0x2f5438,'*Merge:*\x20list\x20item')}:'oldValue'==_0xd91606?{'type':'format','content':o(_0x2f5438,'*Split:*\x20list\x20item')}:_0x21ec07;}),_0x59b019['model']['document']['registerPostFixer'](_0x5dfdcb=>this['listItemIdFixer'](_0x5dfdcb)),_0x59b019['model']['document']['registerPostFixer'](_0x2644f7=>this['noTrackChangesFixer'](_0x2644f7)),_0x59b019['model']['document']['on']('change:data',(_0x35f85d,_0x2aaf3e)=>{if(_0x2aaf3e['isUndo']||!_0x2aaf3e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x54df77){if(_0x54df77['batch']['isUndo']||!_0x54df77['batch']['isLocal'])return!0x1;let _0x17cc9c=!0x1;const _0x3d7531=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x592af9=>_0x592af9['data']&&'listItemId'==_0x592af9['data']['key'])['filter'](_0x35b123=>_0x35b123['data']['newValue']&&_0x35b123['data']['oldValue']);for(const _0x18d20f of _0x3d7531)Ee(_0x18d20f)||(_0x54df77['removeMarker'](_0x18d20f['getFirstMarker']()),_0x17cc9c=!0x0);return _0x17cc9c;}['noTrackChangesFixer'](_0x288c46){if(_0x288c46['batch']['isUndo']||!_0x288c46['batch']['isLocal'])return!0x1;const _0x11229c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x11229c['trackChangesCommand']['value'])return!0x1;let _0x2d3043=!0x1;const _0x2af4b4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2436a2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2ed793=>'attribute'==_0x2ed793['type'])['filter'](_0x3a2b90=>_0x2af4b4['includes'](_0x3a2b90['attributeKey']));if(0x0==_0x2436a2['length'])return _0x2d3043;for(const _0x451e0f of _0x2436a2){const _0x54f3bc=_0x11229c['_findSuggestions'](_0x451e0f['range'],'attribute')['filter'](_0x2952b2=>!_0x2952b2['meta']['isNextTo'])['map'](_0x562feb=>_0x562feb['suggestion'])['filter'](_0x292a60=>{const _0x45a6dc=_0x11229c['_getAttributeKey'](_0x292a60);return _0x2af4b4['includes'](_0x45a6dc);});if(_0x54f3bc['length']){for(const _0x381156 of _0x54f3bc)_0x288c46['removeMarker'](_0x381156['getFirstMarker']());_0x2d3043=!0x0;}}return _0x2d3043;}['assureChains'](){const _0x135a85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2480a7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x317130;const _0x2f8b4e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x40c233=>{if(_0x40c233['data']['oldRange']||!_0x40c233['data']['newRange'])return null;if(!_0x40c233['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5efb1a}=_0x135a85['_splitMarkerName'](_0x40c233['name']);if(!_0x135a85['hasSuggestion'](_0x5efb1a))return null;const _0x171fff=_0x135a85['getSuggestion'](_0x5efb1a);return _0x2480a7['includes'](_0x171fff['data']['key']);})['map'](_0x4103ff=>{const {id:_0x3906b1}=_0x135a85['_splitMarkerName'](_0x4103ff['name']),_0x1cb136=_0x135a85['getSuggestion'](_0x3906b1);return _0x317130=_0x1cb136['attributes']['groupId'],_0x1cb136['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2f8b4e['size'])return;const _0x483f0e=_0x135a85['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ffda5=>'attribute'==_0x1ffda5['type']&&_0x1ffda5['data']&&_0x2480a7['includes'](_0x1ffda5['data']['key'])&&_0x1ffda5['attributes']['groupId']!=_0x317130)['map'](_0x20ad2b=>({'listItem':_0x20ad2b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x20ad2b['attributes']['groupId']})),_0x14e14d=new Set();for(const {groupId:_0x466a51,listItem:_0x23a651}of _0x483f0e)_0x2f8b4e['has'](_0x23a651)&&_0x14e14d['add'](_0x466a51);for(const _0x576e24 of _0x135a85['getSuggestions']())_0x14e14d['has'](_0x576e24['attributes']['groupId'])&&_0x576e24['setAttribute']('groupId',_0x317130);}['_supportLegacySuggestions'](){const _0x4e4208=this['editor'],_0x529b7d=_0x4e4208['locale'],_0x23035f=_0x4e4208['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x23035f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x917fe5,_0x4053cb){const _0x23f441=[];for(let _0x3025fc of _0x917fe5)_0x3025fc['start']['nodeAfter']===_0x3025fc['end']['parent']&&(_0x3025fc=_0x4e4208['model']['createRange'](_0x4e4208['model']['createPositionAt'](_0x3025fc['start']['nodeAfter'],0x0))),_0x23f441['push'](_0x3025fc);_0x4e4208['model']['change'](_0x3660b8=>{const _0x231096=_0x4e4208['model']['document']['selection'],_0x5a6f34=Array['from'](_0x231096['getRanges']())['map'](_0x48d550=>_0x3f4d48['fromRange'](_0x48d550));_0x3660b8['setSelection'](_0x23f441),_0x4e4208['commands']['get'](_0x4053cb['commandName'])['refresh'](),_0x4053cb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e4208['execute'](_0x4053cb['commandName'],..._0x4053cb['commandParams']),_0x3660b8['setSelection'](_0x5a6f34);for(const _0x1cdea6 of _0x5a6f34)_0x1cdea6['detach']();});}),_0x23035f['descriptionFactory']['registerElementLabel'](function(_0x25f4e9){const _0x5ed516=!_0x4e4208['model']['schema']['isObject'](_0x25f4e9),_0x34fce1=_0x25f4e9['previousSibling'],_0x97631=_0x25f4e9['nextSibling'],_0x536ed0=_0x25f4e9['getAttribute']('listItemId'),_0x55292a=!_0x34fce1||_0x34fce1['getAttribute']('listItemId')!==_0x536ed0,_0x1cb006=!_0x97631||_0x97631['getAttribute']('listItemId')!==_0x536ed0;return _0x5ed516&&Boolean(_0x536ed0)&&_0x55292a&&_0x1cb006;},_0x364260=>o(_0x529b7d,'ELEMENT_LIST_ITEM',_0x364260));}['_registerLegacyDescription'](){const _0x494aa3=this['editor'],_0x59c35a=_0x494aa3['locale'];function _0x5d6d8e(_0x4aa984){const _0x1118e6=_0x494aa3['commands']['get']('bulletedList')['value'],_0x4bd28a=_0x494aa3['commands']['get']('numberedList')['value'];return'numberedList'===_0x4aa984?_0x1118e6:_0x4bd28a;}_0x494aa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x29a82d){if('formatBlock'!=_0x29a82d['type'])return;const {data:_0x12bec9}=_0x29a82d;if(!_0x12bec9)return;let _0x392474,_0x283239,_0x4a6d51,_0x424d93;switch(_0x12bec9['commandName']){case'bulletedList':_0x4a6d51=_0x12bec9['commandParams'][0x0]['forceValue'],_0x424d93=_0x5d6d8e(_0x12bec9['commandName']),_0x392474=_0x4a6d51?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x424d93&&_0x494aa3['config']['get']('list.multiBlock')||(_0x392474='*Change\x20to:*\x20%0'),_0x283239={'type':'format','content':o(_0x59c35a,_0x392474,o(_0x59c35a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4a6d51=_0x12bec9['commandParams'][0x0]['forceValue'],_0x424d93=_0x5d6d8e(_0x12bec9['commandName']),_0x392474=_0x4a6d51?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x424d93&&_0x494aa3['config']['get']('list.multiBlock')||(_0x392474='*Change\x20to:*\x20%0'),_0x283239={'type':'format','content':o(_0x59c35a,_0x392474,o(_0x59c35a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x392474='*Indent:*\x20%0',_0x283239={'type':'format','content':o(_0x59c35a,_0x392474,o(_0x59c35a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x392474=function(_0x3bae64){const _0x4c6c91=_0x3bae64['getFirstRange']();let _0x256d67=_0x4c6c91['start']['nodeAfter'];for(;_0x256d67&&_0x4c6c91['containsItem'](_0x256d67);){if(_0x256d67['getAttribute']('listIndent')>0x0)return!0x1;_0x256d67=_0x256d67['nextSibling'];}return!0x0;}(_0x29a82d)?o(_0x59c35a,'*Format:*\x20remove\x20from\x20%0',o(_0x59c35a,function(_0x522c7b){return'ELEMENT_'+_0x522c7b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x29a82d))):o(_0x59c35a,'*Outdent:*\x20%0',o(_0x59c35a,'ELEMENT_LIST_ITEM')),_0x283239={'type':'format','content':_0x392474};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x12bec9['multipleBlocks']&&(_0x392474='*Merge:*\x20%0',_0x283239={'type':'deletion','content':o(_0x59c35a,_0x392474,o(_0x59c35a,'ELEMENT_LIST_ITEM'))});}return _0x283239;});}}function Ee(_0x386003){let _0x4e5ddc=_0x386003['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4e5ddc;){const _0x5e83ba=_0x4e5ddc['getAttribute']('listItemId');if(!_0x5e83ba)return!0x1;if(_0x5e83ba==_0x386003['data']['newValue'])return'newValue';if(_0x5e83ba==_0x386003['data']['oldValue'])return'oldValue';_0x4e5ddc=_0x4e5ddc['previousSibling'];}return!0x1;}class pe extends _0x164833{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5e71ed=this['editor']['config']['get']('list.properties'),_0x40ca4f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e71ed['styles']&&(_0x40ca4f['enableDefaultAttributesIntegration']('listStyle'),_0x40ca4f['registerBlockAttribute']('listStyle')),_0x5e71ed['reversed']&&(_0x40ca4f['enableDefaultAttributesIntegration']('listReversed'),_0x40ca4f['registerBlockAttribute']('listReversed')),_0x5e71ed['startIndex']&&(_0x40ca4f['enableDefaultAttributesIntegration']('listStart'),_0x40ca4f['registerBlockAttribute']('listStart'));const _0x54ec56={'type':'format','content':''};_0x40ca4f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x9c01d3=this['editor']['locale'];_0x40ca4f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x9c01d3,'FORMAT_LIST_REVERSED')),_0x40ca4f['descriptionFactory']['registerDescriptionCallback'](_0x395d77=>{const {data:_0x46ac79}=_0x395d77;if(_0x46ac79&&'listReversed'==_0x46ac79['key'])return null==_0x46ac79['newValue']||0x0==_0x46ac79['newValue']&&null==_0x46ac79['oldValue']?_0x54ec56:void 0x0;}),_0x40ca4f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x9c01d3,'FORMAT_LIST_START')),_0x40ca4f['descriptionFactory']['registerDescriptionCallback'](_0x524fc5=>{const {data:_0x3ced47}=_0x524fc5;if(_0x3ced47&&'listStart'==_0x3ced47['key'])return null==_0x3ced47['newValue']||0x1==_0x3ced47['newValue']&&null==_0x3ced47['oldValue']?_0x54ec56:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x262ea1=>{if(_0x262ea1['batch']['isUndo'])return!0x1;let _0x16c4b6=!0x1;const _0xc1d8dd=_0x40ca4f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x248257=>{const _0xa1782e=_0x40ca4f['_getAttributeKey'](_0x248257);return'listStart'==_0xa1782e||'listReversed'==_0xa1782e;});for(const _0x237ff8 of _0xc1d8dd){const _0x3cde81=_0x237ff8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3cde81||'customNumbered'==_0x3cde81)continue;_0x40ca4f['_findSuggestions'](_0x237ff8['getFirstRange'](),'attribute')['find'](_0x412817=>'listType'==_0x40ca4f['_getAttributeKey'](_0x412817['suggestion']))||(_0x262ea1['removeMarker'](_0x237ff8['getFirstMarker']()),_0x16c4b6=!0x0);}return _0x16c4b6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x20328a){const _0x4e2246=this['editor']['locale'],{data:_0x1b4033}=_0x20328a,_0x391ef6={'type':'format','content':''};if(!_0x1b4033||'listStyle'!=_0x1b4033['key'])return;if(!_0x1b4033['oldValue'])return'default'==_0x1b4033['newValue']?_0x391ef6:{'type':'format','content':''+o(_0x4e2246,'*Set\x20format:*\x20%0',o(_0x4e2246,this['_getTranslationKeyForListStyle'](_0x1b4033['newValue'])))};if(!_0x1b4033['newValue']){if('default'==_0x1b4033['oldValue'])return _0x391ef6;let _0xcad1b=_0x20328a['head'];for(;_0xcad1b;){if(_0xcad1b['data']&&'listType'==_0xcad1b['data']['key']&&_0xcad1b['data']['newValue'])return _0x391ef6;_0xcad1b=_0xcad1b['next'];}return{'type':'format','content':''+o(_0x4e2246,'*Remove\x20format:*\x20%0',o(_0x4e2246,this['_getTranslationKeyForListStyle'](_0x1b4033['oldValue'])))};}if('default'!=_0x1b4033['newValue'])return{'type':'format','content':''+o(_0x4e2246,'*Set\x20format:*\x20%0',o(_0x4e2246,this['_getTranslationKeyForListStyle'](_0x1b4033['newValue'])))};let _0x2bd105=_0x20328a['head'];for(;_0x2bd105;){if(_0x2bd105['data']&&'listType'==_0x2bd105['data']['key']&&_0x2bd105['data']['newValue']&&_0x2bd105['data']['oldValue'])return _0x391ef6;_0x2bd105=_0x2bd105['next'];}return{'type':'format','content':o(_0x4e2246,'*Set\x20format:*\x20%0',o(_0x4e2246,'ELEMENT_'+_0x20328a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x943361=this['editor'],_0x3247f3=_0x943361['locale'];_0x943361['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32420b=>{if('formatBlock'!=_0x32420b['type'])return;const {data:_0x106c59}=_0x32420b;if(!_0x106c59)return;let _0x54bd02,_0x5cfd62;switch(_0x106c59['commandName']){case'listStyle':_0x54bd02='*Change\x20to:*\x20%0',_0x5cfd62={'type':'format','content':o(_0x3247f3,_0x54bd02,o(_0x3247f3,this['_getTranslationKeyForListStyle'](_0x106c59['commandParams'][0x0]['type'])))};break;case'listReversed':_0x54bd02=_0x106c59['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5cfd62={'type':'format','content':o(_0x3247f3,_0x54bd02)};break;case'listStart':_0x54bd02='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5cfd62={'type':'format','content':o(_0x3247f3,_0x54bd02,_0x106c59['commandParams'][0x0]['startIndex'])};}return _0x5cfd62;});}['_getTranslationKeyForListStyle'](_0x4ca00f){return'ELEMENT_'+function(_0x33b103){if(ye['includes'](_0x33b103))return'bulleted';if(Se['includes'](_0x33b103))return'numbered';return null;}(_0x4ca00f)['toUpperCase']()+'_LIST_'+_0x4ca00f['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x164833{static get['requires'](){return[_0x57c1a5];}['init'](){const _0xaacd8a=this['editor'],_0xd8c14e=_0xaacd8a['plugins']['get']('TrackChangesEditing'),_0x20c1fc=_0xaacd8a['commands']['get']('enter');_0xd8c14e['enableCommand']('enter',()=>{_0xaacd8a['model']['change'](_0x43dadf=>{const _0x294d54=_0xaacd8a['model']['document']['selection'],_0x5ade39=_0x294d54['getFirstPosition'](),_0x3b320e=_0x3f4d48['fromRange'](_0x294d54['getFirstRange']());if(_0x20c1fc['enterBlock'](_0x43dadf)){const _0x592b33=_0xaacd8a['model']['createPositionAt'](_0x5ade39['parent']['nextSibling'],0x0),_0x51b004=_0x43dadf['createRange'](_0x5ade39,_0x592b33);_0xd8c14e['markInsertion'](_0x51b004);}else _0x43dadf['setSelection'](_0x43dadf['createRange'](_0x3b320e['end']));_0x3b320e['detach'](),_0x20c1fc['fire']('afterExecute',{'writer':_0x43dadf});});}),_0xaacd8a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xaacd8a,'split'),{'priority':'high'}),_0xaacd8a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4ffc0d,_0xeea71e,_0x5a4ae8)=>{const _0x1308f3=_0x5a4ae8['mapper']['markerNameToElements'](_0xeea71e['markerName']);if(_0x1308f3){for(const _0x313f79 of _0x1308f3)_0x313f79['hasClass']('ck-suggestion-marker-split')&&(_0x5a4ae8['mapper']['unbindElementFromMarkerName'](_0x313f79,_0xeea71e['markerName']),_0x5a4ae8['writer']['remove'](_0x313f79));}},{'priority':'high'}),_0xaacd8a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd4b7f7,_0x2b7e9a,_0x17dbb0)=>{_0x17dbb0['options']['showSuggestionHighlights']&&_e(_0xaacd8a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xd4b7f7,_0x2b7e9a,_0x17dbb0);},{'priority':'high'});}}class X extends _0x164833{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xb56bce=this['editor']['plugins']['get']('TrackChangesEditing');_0xb56bce['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xb56bce['enableCommand']('findNext'),_0xb56bce['enableCommand']('findPrevious'),_0xb56bce['enableCommand']('replace'),_0xb56bce['enableCommand']('replaceAll');}['handleFindCommand'](_0x572bb4,_0x1322e9,_0x369bdb={}){const _0x5311ba=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x572bb4(_0x141e04=>{let _0x33be86=('string'==typeof _0x1322e9?_0x5311ba['findByTextCallback'](_0x1322e9,_0x369bdb):_0x1322e9)(_0x141e04);Array['isArray'](_0x33be86)&&(_0x33be86={'results':_0x33be86,'searchText':'string'==typeof _0x1322e9?_0x1322e9:''});const _0x4fecda=_0x33be86['results']['filter'](_0x3e9da4=>!0x1===this['_isInDeletionRange'](_0x3e9da4,_0x141e04['item']));return{..._0x33be86,'results':_0x4fecda};},_0x369bdb);}['_isInDeletionRange'](_0x13b467,_0x5e7bfc){const _0x1bdfc5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e7bfc,_0x13b467['start']),this['editor']['model']['createPositionAt'](_0x5e7bfc,_0x13b467['end']));for(const _0x38dfcb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1bdfc5['getIntersection'](_0x38dfcb['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 _0x164833{['afterInit'](){const _0x1b8eff=this['editor']['locale'],_0x4ddd0b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x27e396,commandName:_0x40e241}of ro)this['editor']['plugins']['has'](_0x27e396)&&(_0x4ddd0b['enableDefaultAttributesIntegration'](_0x40e241),_0x4ddd0b['registerInlineAttribute'](_0x40e241));_0x4ddd0b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1b8eff,'FORMAT_FONT_SIZE')),_0x4ddd0b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1b8eff,'FORMAT_FONT_FAMILY')),_0x4ddd0b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1b8eff,'FORMAT_FONT_COLOR')),_0x4ddd0b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1b8eff,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38b50f=this['editor'],_0x354ea5=_0x38b50f['locale'];_0x38b50f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a64d3=>{const _0x368cdd=_0x354ea5['t'];if('formatInline'!=_0x3a64d3['type'])return;const {data:_0x19d459}=_0x3a64d3;if(null!=_0x19d459){if('fontSize'==_0x19d459['commandName']){const _0x1a150d=_0x19d459['commandParams'][0x0]['value'];if(_0x1a150d){const _0x36d602=_0x368cdd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x40257f=>_0x40257f['model']==_0x1a150d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x354ea5,'*Set\x20font\x20size:*\x20%0',_0x36d602)};}return{'type':'format','content':o(_0x354ea5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x19d459['commandName']){const _0x5ca20f=_0x19d459['commandParams'][0x0]['value'];return _0x5ca20f?{'type':'format','content':o(_0x354ea5,'*Set\x20font\x20family:*\x20%0',_0x5ca20f)}:{'type':'format','content':o(_0x354ea5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x19d459['commandName']){const _0x2c5fe8=_0x19d459['commandParams'][0x0]['value'];if(_0x2c5fe8){const _0xb3c52e=_0x201da7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2151de=>_0x2151de['model']==_0x2c5fe8);let _0x597467=_0x2c5fe8,_0x190e23='';return _0xb3c52e&&(_0x597467=_0xb3c52e['label'],_0x190e23=_0x368cdd(_0x597467)['toLowerCase']()),{'type':'format','content':o(_0x354ea5,'*Set\x20font\x20color:*\x20%0',_0x190e23)['trim'](),'color':{'value':_0x2c5fe8,'title':_0x190e23||_0x597467}};}return{'type':'format','content':o(_0x354ea5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x19d459['commandName']){const _0x22d5b1=_0x19d459['commandParams'][0x0]['value'];if(_0x22d5b1){const _0x4449b1=_0x201da7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1f8312=>_0x1f8312['model']==_0x22d5b1);let _0x3c1e21=_0x22d5b1,_0x293013='';return _0x4449b1&&(_0x3c1e21=_0x4449b1['label'],_0x293013=_0x368cdd(_0x3c1e21)['toLowerCase']()),{'type':'format','content':o(_0x354ea5,'*Set\x20font\x20background\x20color:*\x20%0',_0x293013)['trim'](),'color':{'value':_0x22d5b1,'title':_0x293013||_0x3c1e21}};}return{'type':'format','content':o(_0x354ea5,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x164833{['afterInit'](){const _0x270ab0=this['editor'],_0x333c0f=_0x270ab0['plugins']['get']('TrackChangesEditing'),_0x4de730=_0x270ab0['commands']['get']('copyFormat'),_0x419c02=_0x270ab0['commands']['get']('pasteFormat');_0x4de730&&_0x419c02&&(_0x333c0f['enableDefaultAttributesIntegration']('pasteFormat'),_0x333c0f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x112338=this['editor'],_0x30b783=_0x112338['locale'];_0x112338['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x251706=>{if('formatBlock'!=_0x251706['type']&&'formatInline'!=_0x251706['type'])return;const {data:_0x3bac09}=_0x251706;if(_0x3bac09&&'pasteFormat'===_0x3bac09['commandName']){const _0x28534a=[],_0x3f591e=_0x3bac09['commandParams'][0x0];for(const [_0x155ca9,_0x8d701b]of Object['entries'](_0x3f591e))_0x28534a['push'](so(_0x112338,_0x155ca9,_0x8d701b));return _0x28534a['length']?{'type':'format','content':o(_0x30b783,'*Set\x20format\x20to:*\x20%0',_0x28534a['join'](',\x20'))}:{'type':'format','content':o(_0x30b783,'*Remove\x20all\x20formatting*')};}});}}function so(_0x22ae2d,_0x5dce55,_0x2cca2b){const _0x43117e=_0x22ae2d['locale']['t'],_0x33018a=_0x5dce55['split'](/(?=[A-Z])/)['join']('\x20'),_0x162caa=_0x43117e(_0x33018a['charAt'](0x0)['toUpperCase']()+_0x33018a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2cca2b)return _0x162caa;if('fontColor'===_0x5dce55||'fontBackgroundColor'===_0x5dce55){const _0x5022ee=_0x201da7(_0x22ae2d['config']['get']('fontColor.colors'))['find'](_0x3f1a44=>_0x3f1a44['model']==_0x2cca2b);return _0x162caa+'\x20('+(_0x5022ee?_0x43117e(_0x5022ee['label'])['toLowerCase']():_0x2cca2b)+')';}if('fontSize'===_0x5dce55&&isNaN(parseFloat(_0x2cca2b))){const _0x308279=_0x22ae2d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x22ae2d['config']['get']('fontSize.options'))['find'](_0x151b1f=>_0x151b1f['model']==_0x2cca2b);return _0x162caa+'\x20('+(_0x308279?_0x43117e(_0x308279['title'])['toLowerCase']():_0x2cca2b)+')';}return _0x162caa+'\x20('+_0x2cca2b+')';}class tt extends _0x164833{['_headingOptions'];['afterInit'](){const _0xb803e9=this['editor'];if(!_0xb803e9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xb803e9['config']['get']('heading.options');const _0x3dc147=_0xb803e9['locale'],_0x31473a=_0xb803e9['plugins']['get']('TrackChangesEditing');_0x31473a['enableDefaultAttributesIntegration']('heading');for(const _0x4d9692 of this['_headingOptions'])'paragraph'!=_0x4d9692['model']&&_0x31473a['descriptionFactory']['registerElementLabel'](_0x4d9692['model'],_0x464b73=>{const _0x4630f2=this['_getHeadingLevel'](_0x4d9692['model']);return null!==_0x4630f2?_0x9b1258(_0x464b73,_0x4630f2):_0x23ee6e(_0x464b73,_0x4d9692['title']);});function _0x9b1258(_0x2196ee,_0x3061c8){return o(_0x3dc147,'ELEMENT_HEADING',[_0x2196ee,_0x3061c8]);}function _0x23ee6e(_0xd1d00a,_0x1961ad){return o(_0x3dc147,'ELEMENT_HEADING_CUSTOM',[_0xd1d00a,_0x1961ad]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bd7be=this['editor'],_0x360bdf=_0x2bd7be['locale'];function _0x547478(_0x560565,_0xdcebc9){return o(_0x360bdf,'ELEMENT_HEADING_CUSTOM',[_0x560565,_0xdcebc9]);}_0x2bd7be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb5a9b1=>{if('formatBlock'!=_0xb5a9b1['type'])return;const {data:_0x28d29f}=_0xb5a9b1;if(_0x28d29f&&'heading'==_0x28d29f['commandName']){const _0xd73071=_0x28d29f['commandParams'][0x0]['value'],_0x12cd19=this['_getHeadingLevel'](_0xd73071);if(null!==_0x12cd19)return{'type':'format','content':o(_0x360bdf,'*Change\x20to:*\x20%0',(_0x7cdb5e=0x1,_0x1e8bc1=_0x12cd19,o(_0x360bdf,'ELEMENT_HEADING',[_0x7cdb5e,_0x1e8bc1])))};const _0x3f7e57=this['_headingOptions']['find'](_0x4d9d4c=>_0x4d9d4c['model']===_0xd73071)['title'];return{'type':'format','content':o(_0x360bdf,'*Change\x20to:*\x20%0',_0x547478(0x1,_0x3f7e57))};}var _0x7cdb5e,_0x1e8bc1;});}['_getHeadingLevel'](_0x24e4af){const _0x50ab99=_0x24e4af['match'](/^heading(\d+)/);if(_0x50ab99)return _0x50ab99[0x1];const _0x27c146=this['_headingOptions']?.['find'](_0x3856f7=>_0x3856f7['model']==_0x24e4af);if(_0x27c146&&_0x27c146['view']){const _0x5bd704=_0x27c146['view'],_0x1ac582=(_0x5bd704['name']??_0x5bd704)['match'](/^h(\d+)/);if(_0x1ac582)return _0x1ac582[0x1];}return null;}}class et extends _0x164833{['afterInit'](){const _0x59ac88=this['editor'];if(!_0x59ac88['plugins']['has']('HighlightEditing'))return;const _0x95be7=_0x59ac88['plugins']['get']('TrackChangesEditing'),_0x8b8355=_0x59ac88['locale'];_0x95be7['enableDefaultAttributesIntegration']('highlight'),_0x95be7['registerInlineAttribute']('highlight'),_0x95be7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x8b8355,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44b49b=this['editor'],_0x44a6d5=_0x44b49b['locale'];_0x44b49b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bdc6f=>{if('formatInline'!=_0x2bdc6f['type'])return;const {data:_0x2683ab}=_0x2bdc6f;if(_0x2683ab&&'highlight'==_0x2683ab['commandName']){const _0x34e3b4=_0x44a6d5['t'],_0x7b47da=_0x2683ab['commandParams'][0x0]['value'];if(_0x7b47da){const _0x51de27=_0x44b49b['config']['get']('highlight.options')['find'](_0x49c22d=>_0x49c22d['model']==_0x7b47da),_0x243745=_0x34e3b4(_0x51de27['title'])['toLowerCase']();return{'type':'format','content':o(_0x44a6d5,'*Set\x20highlight:*\x20%0',_0x243745),'color':{'value':_0x51de27['color'],'title':_0x51de27['title']}};}return{'type':'format','content':o(_0x44a6d5,'*Remove\x20highlight*',o(_0x44a6d5,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x164833{['afterInit'](){const _0x166670=this['editor'];if(!_0x166670['plugins']['has']('HorizontalLineEditing'))return;_0x166670['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2e9a36=_0x166670['plugins']['get']('TrackChangesEditing'),_0x2b8abd=_0x166670['locale'];_0x2e9a36['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5f1e96=>o(_0x2b8abd,'ELEMENT_HORIZONTAL_LINE',_0x5f1e96)),_0x166670['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x342110,{writer:_0x1ba2b6,options:_0x3b05b3})=>{if(!_0x3b05b3['showSuggestionHighlights'])return null;const _0x3331b3=_0x1ba2b6['createContainerElement']('div'),_0x52afcc=_0x1ba2b6['createEmptyElement']('hr');return _0x1ba2b6['addClass']('ck-horizontal-line',_0x3331b3),_0x1ba2b6['insert'](_0x1ba2b6['createPositionAt'](_0x3331b3,0x0),_0x52afcc),_0x3331b3;},'converterPriority':'high'});}}class st extends _0x164833{['afterInit'](){const _0x4eadbc=this['editor'];if(!_0x4eadbc['plugins']['has']('HtmlEmbed'))return;const _0x168af9=_0x4eadbc['plugins']['get']('TrackChangesEditing'),_0x1d345b=_0x4eadbc['locale'];_0x168af9['descriptionFactory']['registerElementLabel']('rawHtml',_0x2afeb5=>o(_0x1d345b,'ELEMENT_HTML_EMBED',_0x2afeb5)),_0x168af9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x168af9['registerBlockAttribute']('value'),_0x168af9['descriptionFactory']['registerDescriptionCallback'](_0x59193a=>{if('attribute'!=_0x59193a['type'])return;const {data:_0x184ea1}=_0x59193a;if(_0x184ea1&&'value'==_0x184ea1['key']&&_0x59193a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xb0433a=o(_0x1d345b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d345b,'*Change\x20%0\x20content*',_0xb0433a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28b3ba=this['editor'],_0x48edde=_0x28b3ba['locale'];_0x28b3ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fcda5=>{if('formatBlock'!=_0x3fcda5['type'])return;const {data:_0x10e58d}=_0x3fcda5;if(_0x10e58d&&'htmlEmbed'==_0x10e58d['commandName']){const _0x12a139=o(_0x48edde,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x48edde,'*Change\x20%0\x20content*',_0x12a139)};}});}}class nt extends _0x164833{['afterInit'](){const _0x1a3502=this['editor'];if(!_0x1a3502['plugins']['has']('ImageEditing'))return;const _0x2432d6=_0x1a3502['plugins']['get']('TrackChangesEditing'),_0x112423=_0x1a3502['plugins']['get']('ImageUtils'),_0x11ede5=_0x1a3502['locale'];_0x2432d6['enableCommand']('insertImage'),_0x2432d6['descriptionFactory']['registerElementLabel']('imageBlock',_0x30d81d=>o(_0x11ede5,'ELEMENT_IMAGE',_0x30d81d)),_0x2432d6['descriptionFactory']['registerElementLabel']('imageInline',_0x49313d=>o(_0x11ede5,'ELEMENT_INLINE_IMAGE',_0x49313d)),_0x2432d6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x11ede5,'ELEMENT_CAPTION')),_0x1a3502['plugins']['has']('ImageUploadEditing')&&_0x2432d6['enableCommand']('uploadImage'),_0x1a3502['plugins']['has']('ImageBlockEditing')&&_0x1a3502['plugins']['has']('ImageInlineEditing')&&(_0x2432d6['enableCommand']('imageTypeInline',(_0x525e5c,_0x3a0b99)=>{const _0x2ba89d=_0x112423['getClosestSelectedImageElement'](_0x1a3502['model']['document']['selection']);_0x1a3502['model']['change'](()=>{_0x2432d6['markBlockFormat'](_0x2ba89d,{'commandName':'imageTypeInline','commandParams':[_0x3a0b99]},[],'convertBlockImageToInline');});}),_0x2432d6['enableCommand']('imageTypeBlock',(_0xec1ea1,_0x2ee74d)=>{_0x1a3502['model']['change'](_0x33b67b=>{let _0x2032c5=_0x112423['getClosestSelectedImageElement'](_0x1a3502['model']['document']['selection']),_0x3ce041=_0x33b67b['createRangeOn'](_0x2032c5);const _0x4034d4=_0x313502['fromPosition'](_0x3ce041['start'],'toPrevious'),_0x54c2d8=_0x313502['fromPosition'](_0x3ce041['end'],'toNext');_0x2432d6['forceDefaultExecution'](()=>_0xec1ea1(_0x2ee74d)),_0x2032c5=_0x112423['getClosestSelectedImageElement'](_0x1a3502['model']['document']['selection']),_0x3ce041=_0x33b67b['createRangeOn'](_0x2032c5);const _0x39f242=_0x33b67b['createRange'](_0x4034d4,_0x54c2d8);_0x4034d4['detach'](),_0x54c2d8['detach'](),_0x2432d6['markBlockFormat'](_0x2032c5,{'commandName':'imageTypeInline','commandParams':[_0x2ee74d]},[],'convertInlineImageToBlock'),_0x39f242['start']['isBefore'](_0x3ce041['start'])&&_0x2432d6['markInsertion'](_0x33b67b['createRange'](_0x39f242['start'],_0x3ce041['start']),'convertInlineImageToBlock'),_0x3ce041['end']['isBefore'](_0x39f242['end'])&&_0x2432d6['markInsertion'](_0x33b67b['createRange'](_0x3ce041['end'],_0x39f242['end']),'convertInlineImageToBlock');});}),_0x2432d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2432d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2432d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2432d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2432d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2432d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4de8c0])=>{const _0x22da3b=_0x2432d6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e4b76=_0x4de8c0['start'],_0x34e631=_0x4de8c0['end'];const _0xb46b35=_0x1a3502['model']['schema']['getNearestSelectionRange'](_0x2e4b76,'backward'),_0x5254b7=_0x1a3502['model']['schema']['getNearestSelectionRange'](_0x34e631,'forward');_0xb46b35['isCollapsed']&&(_0x2e4b76=_0xb46b35['start']),_0x5254b7['isCollapsed']&&(_0x34e631=_0x5254b7['end']),_0x22da3b([_0x1a3502['model']['createRange'](_0x2e4b76,_0x34e631)]);}),_0x2432d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x216746),_0x2432d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x216746)),_0x1a3502['plugins']['has']('ImageCaptionEditing')&&(_0x2432d6['enableCommand']('toggleImageCaption',(_0x4dc320,_0x21b6bf)=>{const _0x35f66e=_0x1a3502['plugins']['get']('ImageCaptionUtils');let _0x281b9b=_0x112423['getClosestSelectedImageElement'](_0x1a3502['model']['document']['selection']),_0x4a620e=_0x35f66e['getCaptionFromImageModelElement'](_0x281b9b);_0x1a3502['model']['change'](()=>{if(_0x4a620e)return void _0x2432d6['markDeletion'](_0x1a3502['model']['createRangeOn'](_0x4a620e));const _0xbb004c=_0x112423['isBlockImage'](_0x281b9b);_0x4dc320(_0x21b6bf),_0x281b9b=_0x112423['getClosestSelectedImageElement'](_0x1a3502['model']['document']['selection']),_0x4a620e=_0x35f66e['getCaptionFromImageModelElement'](_0x281b9b),_0x2432d6['markInsertion'](_0x1a3502['model']['createRangeOn'](_0x4a620e),_0xbb004c?null:'imageCaption');});}),_0x2432d6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x216746));const _0x2631d4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x16df15(_0x7bb84e,_0x513341){const _0x1fccb9=_0x2631d4['findIndex'](({type:_0x14e3f8,subType:_0xb65b2d})=>_0x7bb84e['type']==_0x14e3f8&&_0x7bb84e['subType']==_0xb65b2d),_0x36825a=_0x2631d4['findIndex'](({type:_0x5268bb,subType:_0x314dac})=>_0x513341['type']==_0x5268bb&&_0x513341['subType']==_0x314dac);if(_0x1fccb9<0x0||_0x36825a<0x0)return!0x1;const _0x1c4681=_0x7bb84e['getFirstRange'](),_0x454d9e=_0x513341['getFirstRange']();if((0x0==_0x1fccb9||0x1==_0x1fccb9)&&0x2==_0x36825a&&_0x1c4681['isIntersecting'](_0x454d9e))return!0x0;if(0x2==_0x1fccb9&&0x3==_0x36825a){const _0x2093c0=_0x2432d6['_findSuggestions'](_0x1c4681,'insertion')['filter'](({suggestion:_0xba7391,meta:_0x319545})=>_0x319545['isOwn']&&'convertInlineImageToBlock'==_0xba7391['subType']);if(_0x2093c0['length']>0x1&&_0x454d9e['end']['isEqual'](_0x1c4681['start']))return!0x0;if(0x1==_0x2093c0['length']&&(_0x1c4681['start']['isEqual'](_0x454d9e['end'])||_0x1c4681['end']['isEqual'](_0x454d9e['start'])))return!0x0;}if(0x3==_0x1fccb9&&0x3==_0x36825a&&_0x1c4681['start']['isBefore'](_0x454d9e['start'])){const _0x3f90ce=_0x1c4681['end']['nodeAfter'],_0x37f544=_0x454d9e['start']['nodeBefore'];return _0x112423['isBlockImage'](_0x3f90ce)&&_0x3f90ce===_0x37f544;}return!0x1;}function _0x216746(_0x8ae73c,_0x4fc841){return _0x16df15(_0x8ae73c,_0x4fc841)?[_0x8ae73c,_0x4fc841]:_0x16df15(_0x4fc841,_0x8ae73c)?[_0x4fc841,_0x8ae73c]:null;}_0x1a3502['plugins']['has']('ImageResize')&&(_0x2432d6['enableDefaultAttributesIntegration']('resizeImage'),_0x2432d6['registerBlockAttribute']('resizedWidth'),_0x2432d6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x11ede5,'FORMAT_IMAGE_SIZE'))),_0x1a3502['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2432d6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2432d6['registerBlockAttribute']('alt')),_0x2432d6['descriptionFactory']['registerDescriptionCallback'](_0x2556ea=>{if(!!_0x2631d4['find'](({type:_0x4b32d0,subType:_0x2739bf})=>_0x2556ea['type']==_0x4b32d0&&_0x2556ea['subType']==_0x2739bf))return _0x2556ea['previous']?{}:void 0x0;}),_0x2432d6['descriptionFactory']['registerDescriptionCallback'](_0x2b8f01=>{if('insertion'==_0x2b8f01['type']||'deletion'==_0x2b8f01['type']){const _0x43bbb1=_0x2b8f01['getContainedElement']();if(_0x43bbb1&&_0x43bbb1['is']('element','caption'))return{'type':'insertion'==_0x2b8f01['type']?'addObject':'removeObject','element':_0x43bbb1,'quantity':0x1};}}),_0x2432d6['descriptionFactory']['registerDescriptionCallback'](_0x27c78d=>'formatBlock'==_0x27c78d['type']&&'convertInlineImageToBlock'==_0x27c78d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x27c78d['type']&&'convertBlockImageToInline'==_0x27c78d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2432d6['descriptionFactory']['registerDescriptionCallback'](_0x3d55e7=>{if('attribute'!=_0x3d55e7['type'])return;const {data:_0x553e73}=_0x3d55e7;if(!_0x553e73||'alt'!=_0x553e73['key'])return;const _0xe7ebff=_0x553e73['newValue'];return _0xe7ebff?{'type':'format','content':o(_0x11ede5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xe7ebff+'\x22')}:{'type':'format','content':o(_0x11ede5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24c047=this['editor'],_0x2ba6c7=_0x24c047['locale'];_0x24c047['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4685a=>{if('formatBlock'!=_0xd4685a['type']&&'formatInline'!=_0xd4685a['type'])return;const {data:_0x2774e0}=_0xd4685a;if(_0x2774e0){if('imageTextAlternative'==_0x2774e0['commandName']){const _0x34f402=_0x2774e0['commandParams'][0x0]['newValue'];return _0x34f402?{'type':'format','content':o(_0x2ba6c7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34f402+'\x22')}:{'type':'format','content':o(_0x2ba6c7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2774e0['commandName']){const _0x151b01=_0x2774e0['commandParams'][0x0]['width'];return _0x151b01?{'type':'format','content':o(_0x2ba6c7,'*Set\x20image\x20width:*\x20%0',_0x151b01)}:{'type':'format','content':o(_0x2ba6c7,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x164833{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x18e486=this['editor']['locale'],_0x2d7d4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d7d4d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2d7d4d['registerBlockAttribute']('src'),_0x2d7d4d['descriptionFactory']['registerDescriptionCallback'](_0x296f03=>{if('attribute'!=_0x296f03['type'])return;const {data:_0x27bacb}=_0x296f03;return _0x27bacb&&'src'==_0x27bacb['key']?_0x27bacb['newValue']&&_0x27bacb['oldValue']?{'type':'format','content':o(_0x18e486,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20becb=this['editor']['plugins']['get']('TrackChangesEditing');_0x20becb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x20becb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20becb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x20becb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x503f1c=this['editor'],_0x31f333=_0x503f1c['locale'];_0x503f1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd30d7d=>{if('formatBlock'!=_0xd30d7d['type']&&'formatInline'!=_0xd30d7d['type'])return;const {data:_0x1e7cbd}=_0xd30d7d;if(!_0x1e7cbd||'replaceImageSource'!=_0x1e7cbd['commandName'])return;return{'type':'format','content':o(_0x31f333,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x164833{['afterInit'](){const _0x52db3d=this['editor'];if(!_0x52db3d['plugins']['has']('ImageStyleEditing'))return;const _0x575eba=_0x52db3d['plugins']['get']('TrackChangesEditing'),_0x14fd17=_0x52db3d['plugins']['get']('ImageUtils'),_0xab2379={};_0x575eba['enableCommand']('imageStyle',(_0x396bb1,_0x370074)=>{const _0x2f7e39=_0x52db3d['plugins']['get']('Users')['me'],_0x4d9207=_0x52db3d['commands']['get']('imageStyle');let _0x76d84f=_0x14fd17['getClosestSelectedImageElement'](_0x52db3d['model']['document']['selection']),_0x5bc888=_0x52db3d['model']['createRangeOn'](_0x76d84f),_0x1ccd4d=_0x4d9207['value'];if(_0x1ccd4d==_0x370074['value'])return;const _0x2e17a8={'commandName':'imageStyle','commandParams':[_0x370074],'formatGroupId':_0x9c8e5f()};_0x52db3d['model']['change'](()=>{if(_0x575eba['getSuggestions']()['filter'](_0x28ebb9=>_0x28ebb9['isInContent']&&_0x2f7e39==_0x28ebb9['author']&&('formatBlock'==_0x28ebb9['type']||'formatInline'==_0x28ebb9['type'])&&('imageStylePreApply'==_0x28ebb9['subType']||'imageStylePostApply'==_0x28ebb9['subType'])&&_0x28ebb9['getFirstRange']()['isEqual'](_0x5bc888))['forEach'](_0x311df5=>_0x575eba['discardSuggestion'](_0x311df5['head'])),_0x76d84f=_0x14fd17['getClosestSelectedImageElement'](_0x52db3d['model']['document']['selection']),_0x5bc888=_0x52db3d['model']['createRangeOn'](_0x76d84f),_0x4d9207['refresh'](),_0x52db3d['commands']['get']('imageTypeInline')['refresh'](),_0x52db3d['commands']['get']('imageTypeBlock')['refresh'](),_0x1ccd4d=_0x4d9207['value'],_0x1ccd4d!=_0x370074['value'])return _0x14fd17['isInlineImage'](_0x76d84f)&&_0x4d9207['shouldConvertImageType'](_0x370074['value'],_0x76d84f)?(_0x396bb1({..._0x370074,'setImageSizes':!0x1}),_0x76d84f=_0x14fd17['getClosestSelectedImageElement'](_0x52db3d['model']['document']['selection']),void _0x575eba['markBlockFormat'](_0x76d84f,{..._0x2e17a8,'commandReversedParams':[{'value':_0x1ccd4d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x14fd17['isBlockImage'](_0x76d84f)?_0x575eba['markBlockFormat'](_0x76d84f,_0x2e17a8,[],'imageStylePostApply'):_0x575eba['markInlineFormat'](_0x5bc888,_0x2e17a8,'imageStylePostApply'));});});for(const _0x39a9dc of _0x52db3d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xab2379[_0x39a9dc['name']]=_0x39a9dc['title']['toLowerCase']();_0x575eba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x575eba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x575eba['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x575eba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x54cb37])=>{_0x14fd17['setImageNaturalSizeAttributes'](_0x54cb37['getContainedElement']());}),_0x575eba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x28f107,_0x530a31)=>{_0x575eba['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x28f107,{'commandName':_0x530a31['commandName'],'commandParams':_0x530a31['commandReversedParams']});}),_0x575eba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1e0dac,_0x391b61){if(_0x4f54ab(_0x1e0dac,_0x391b61))return[_0x1e0dac,_0x391b61];if(_0x4f54ab(_0x391b61,_0x1e0dac))return[_0x391b61,_0x1e0dac];return null;});const _0x579aee=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f54ab(_0x26fa46,_0x31c1f7){const _0x3f8d6a=_0x579aee['findIndex'](({type:_0x48c303,subType:_0x1d2d08})=>_0x26fa46['type']==_0x48c303&&_0x26fa46['subType']==_0x1d2d08),_0x16395d=_0x579aee['findIndex'](({type:_0x36f55c,subType:_0x3e5856})=>_0x31c1f7['type']==_0x36f55c&&_0x31c1f7['subType']==_0x3e5856);if(_0x3f8d6a<0x0||_0x16395d<0x0)return!0x1;const _0x2c56d9=_0x26fa46['getFirstRange'](),_0x4a9701=_0x31c1f7['getFirstRange']();if((0x0==_0x3f8d6a||0x1==_0x3f8d6a)&&0x2==_0x16395d&&_0x2c56d9['isIntersecting'](_0x4a9701))return!0x0;if(0x2==_0x3f8d6a&&0x3==_0x16395d){const _0x1251ba=_0x575eba['_findSuggestions'](_0x2c56d9,'insertion')['filter'](({suggestion:_0x1ecf92,meta:_0x3f2d5d})=>_0x3f2d5d['isOwn']&&'convertInlineImageToBlock'==_0x1ecf92['subType']);if(_0x1251ba['length']>0x1&&_0x4a9701['end']['isEqual'](_0x2c56d9['start']))return!0x0;if(0x1==_0x1251ba['length']&&(_0x2c56d9['start']['isEqual'](_0x4a9701['end'])||_0x2c56d9['end']['isEqual'](_0x4a9701['start'])))return!0x0;}if(0x3==_0x3f8d6a&&0x3==_0x16395d&&_0x2c56d9['start']['isBefore'](_0x4a9701['start'])){const _0x3e5d8a=_0x2c56d9['end']['nodeAfter'],_0x490127=_0x4a9701['start']['nodeBefore'];return _0x14fd17['isBlockImage'](_0x3e5d8a)&&_0x3e5d8a===_0x490127;}return!0x1;}_0x52db3d['model']['document']['registerPostFixer'](()=>{let _0x201afe=!0x1;const _0xfcc961=Array['from'](_0x52db3d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x92798c,data:_0x559101}of _0xfcc961){const {group:_0x1fd8a4,type:_0x148803,subType:_0x177868,id:_0x27ba2d}=_0x575eba['_splitMarkerName'](_0x92798c);if('suggestion'==_0x1fd8a4&&_0x575eba['hasSuggestion'](_0x27ba2d)){if('formatBlock'==_0x148803&&('imageStylePreApply'==_0x177868||'imageStylePostApply'==_0x177868)){const _0x5c4bf2=_0x575eba['getSuggestion'](_0x27ba2d);if(_0x559101['newRange']){const _0x432451=_0x5c4bf2['getFirstRange']()['getContainedElement']();if(_0x14fd17['isBlockImage'](_0x432451))continue;_0x575eba['discardSuggestion'](_0x5c4bf2),_0x201afe=!0x0;}}if('insertion'==_0x148803&&'imageCaption'==_0x177868&&!_0x559101['newRange']){const _0x33e665=_0x575eba['getSuggestion'](_0x27ba2d);_0x33e665['next']&&_0x33e665['next']['isInContent']&&(_0x575eba['discardSuggestion'](_0x33e665['next']),_0x201afe=!0x0);}}}return _0x201afe;}),this['_registerLegacyDescription'](_0xab2379);}['_registerLegacyDescription'](_0x4f1342){const _0x1190bd=this['editor'],_0x4a15e9=_0x1190bd['locale'];_0x1190bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ade65=>{if('formatBlock'!=_0x5ade65['type']&&'formatInline'!=_0x5ade65['type'])return;const {data:_0x2ac318}=_0x5ade65;if(!_0x2ac318||'imageStyle'!=_0x2ac318['commandName'])return;const _0x4b6860=_0x2ac318['commandParams'][0x0]['value'];return _0x22c707('side'===_0x4b6860?o(_0x4a15e9,'FORMAT_SIDE_IMAGE'):_0x4f1342[_0x4b6860]||_0x4b6860);function _0x22c707(_0x38943d){return{'type':'format','content':o(_0x4a15e9,'*Format:*\x20%0',_0x38943d)};}});}}class at extends _0x164833{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x333a02){super(_0x333a02),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3c67d6=this['editor'],_0x1efd06=_0x3c67d6['commands']['get']('importWord'),_0x4f213b=_0x3c67d6['commands']['get']('trackChanges');_0x1efd06&&(_0x1efd06['on']('execute',(_0xe23f5a,[,_0x14bc79])=>{this['_trackChangesValueDuringImport']=_0x4f213b['value'],_0x14bc79['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1efd06,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1efd06,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4f213b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3c67d6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x597938,_0x142e62){const {suggestions:_0x1e3233}=_0x142e62,_0x55a188=this['editor']['commands']['get']('trackChanges'),_0x464fcc=_0x55a188['value'];this['_trackChangesValueDuringImport']!==_0x464fcc&&(_0x55a188['execute'](),this['_trackChangesExecuted']=!0x0),_0x1e3233&&_0x1e3233['forEach'](({id:_0x845c8,type:_0x175156,author:_0x5ee136,created_at:_0x1cb1f8})=>{const _0x518eff={'id':_0x845c8,'type':_0x175156,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5ee136,'createdAt':_0x1cb1f8?new Date(_0x1cb1f8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x518eff);});}}class ct extends _0x164833{['afterInit'](){const _0x5b2a67=this['editor'],_0x5d5fe0=_0x5b2a67['plugins']['get']('TrackChangesEditing');if(_0x5b2a67['plugins']['has']('IndentEditing')&&(_0x5d5fe0['enableCommand']('indent'),_0x5d5fe0['enableCommand']('outdent')),_0x5b2a67['plugins']['has']('IndentBlock')){for(const _0x898879 of['indentBlock','outdentBlock'])_0x5d5fe0['enableDefaultAttributesIntegration'](_0x898879);}const _0x7b1ff7=_0x5b2a67['locale'];_0x5d5fe0['registerBlockAttribute']('blockIndent'),_0x5d5fe0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x7b1ff7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29cb87=this['editor'],_0x2f55fc=_0x29cb87['locale'],_0x788fd3=_0x29cb87['plugins']['get']('TrackChangesEditing');_0x788fd3['descriptionFactory']['registerDescriptionCallback'](_0x4710e5=>{if('formatBlock'!=_0x4710e5['type'])return;const {data:_0x312437}=_0x4710e5;if(!_0x312437)return;if('indentBlock'!=_0x312437['commandName']&&'outdentBlock'!=_0x312437['commandName'])return;const _0x183601=_0x4710e5['getItems']()[0x0],_0xbdabb1=_0x788fd3['descriptionFactory']['getItemLabel'](_0x183601);return'indentBlock'==_0x312437['commandName']?{'type':'format','content':o(_0x2f55fc,'*Indent:*\x20%0',_0xbdabb1)}:'outdentBlock'==_0x312437['commandName']?{'type':'format','content':o(_0x2f55fc,'*Outdent:*\x20%0',_0xbdabb1)}:void 0x0;});}}class ut extends _0x164833{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x164833{['afterInit'](){const _0x30922a=this['editor'];if(!_0x30922a['plugins']['has']('LinkEditing'))return;const _0x4a80d5=_0x30922a['plugins']['get']('TrackChangesEditing'),_0x44ef58=_0x30922a['commands']['get']('link');_0x4a80d5['enableDefaultAttributesIntegration']('link'),_0x4a80d5['enableDefaultAttributesIntegration']('unlink'),_0x4a80d5['registerInlineAttribute']('linkHref');for(const _0xfa7cfb of _0x44ef58['manualDecorators'])_0x4a80d5['registerInlineAttribute'](_0xfa7cfb['id']),_0x4a80d5['descriptionFactory']['registerAttributeLabel'](_0xfa7cfb['id'],'link\x20('+_0xfa7cfb['label']['toLowerCase']()+')');_0x4a80d5['descriptionFactory']['registerDescriptionCallback'](_0x4fd6bf=>{if('attribute'!=_0x4fd6bf['type'])return;const {data:_0x458348}=_0x4fd6bf;if(!_0x458348||'linkHref'!=_0x458348['key'])return;const _0x385725=_0x458348['newValue'],_0x5f4acf=_0x30922a['locale'];return{'type':'format','content':null==_0x385725?o(_0x5f4acf,'*Remove\x20link*'):o(_0x5f4acf,'*Set\x20link:*\x20%0','\x22'+_0x385725+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7428d=this['editor'],_0xd056e0=_0x7428d['locale'];_0x7428d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c4f2d=>{if('formatInline'!=_0x1c4f2d['type'])return;const {data:_0x14abc2}=_0x1c4f2d;if(_0x14abc2){if('link'==_0x14abc2['commandName']){const _0xbb3d23=_0x14abc2['commandParams'][0x0];return{'type':'format','content':o(_0xd056e0,'*Set\x20link:*\x20%0','\x22'+_0xbb3d23+'\x22')};}return'unlink'==_0x14abc2['commandName']?{'type':'format','content':o(_0xd056e0,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x164833{['afterInit'](){const _0x1aafa4=this['editor'],_0x5791fa=_0x1aafa4['locale'];if(!_0x1aafa4['plugins']['has']('LegacyListEditing'))return;const _0x163c38=_0x1aafa4['plugins']['get']('TrackChangesEditing'),_0x44a753=_0x1aafa4['plugins']['has']('LegacyTodoListEditing');function _0x77ba65(_0x4ef5b5){return()=>{const _0x252b9c=_0x1aafa4['model']['document']['selection'],_0xacf8f3=_0x1aafa4['commands']['get'](_0x4ef5b5);if(_0xacf8f3['value'])return void _0x1aafa4['execute']('paragraph',{});const _0x5b8b1c=_0x4ef5b5['slice'](0x0,-0x4),_0x2fddb8=function(_0x4864aa,_0x3db30b,_0x2508e1){let _0x14868d=Array['from'](_0x4864aa)['filter'](_0xfc6611=>function(_0x42fe7b,_0x5e7805){return _0x5e7805['checkChild'](_0x42fe7b['parent'],'listItem')&&!_0x5e7805['isObject'](_0x42fe7b);}(_0xfc6611,_0x2508e1));_0x14868d=_0x14868d['filter'](_0x2ecf55=>!_0x2ecf55['is']('element','listItem')||_0x2ecf55['getAttribute']('listType')!=_0x3db30b);const _0x5d7df9=new Set();for(const _0x486c63 of _0x14868d)_0x486c63['is']('element','listItem')?_0x5d7df9['add'](fe(_0x486c63)):_0x5d7df9['add'](_0x486c63);return Array['from'](_0x5d7df9);}(_0x252b9c['getSelectedBlocks'](),_0x5b8b1c,_0x1aafa4['model']['schema']);_0x1aafa4['model']['change'](()=>{for(const _0x20ab0b of _0x2fddb8)_0x163c38['markBlockFormat'](_0x20ab0b,{'commandName':_0x4ef5b5,'commandParams':[{'forceValue':!_0xacf8f3['value']}],'formatGroupId':'blockName'},ue(_0x20ab0b));});};}function _0x4d7792(_0x3a2914){return()=>{const _0x30c9c4=function(_0x41055b){let _0x370a1e=Array['from'](_0x41055b);const _0x4cfb42=_0x370a1e['findIndex'](_0x5e4950=>'listItem'!=_0x5e4950['name']);return _0x4cfb42>-0x1&&(_0x370a1e=_0x370a1e['slice'](0x0,_0x4cfb42)),_0x370a1e;}(_0x1aafa4['model']['document']['selection']['getSelectedBlocks']()),_0x250056=_0x1aafa4['model']['createRange'](_0x1aafa4['model']['createPositionAt'](_0x30c9c4[0x0],'before'),_0x1aafa4['model']['createPositionAt'](_0x30c9c4[_0x30c9c4['length']-0x1],'end'));_0x1aafa4['model']['change'](()=>{_0x163c38['markBlockFormat'](_0x250056,{'commandName':_0x3a2914,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c02ee){const _0x4f7a3d=new Set();for(const _0x565a2b of _0x3c02ee){let _0x28dc0b=_0x565a2b['nextSibling'];for(;_0x28dc0b&&_0x28dc0b['getAttribute']('listIndent')>_0x565a2b['getAttribute']('listIndent');)_0x4f7a3d['add'](_0x28dc0b),_0x28dc0b=_0x28dc0b['nextSibling'];}return Array['from'](_0x4f7a3d);}(_0x30c9c4));});};}_0x163c38['enableCommand']('numberedList',_0x77ba65('numberedList')),_0x163c38['enableCommand']('bulletedList',_0x77ba65('bulletedList')),_0x44a753&&_0x163c38['enableCommand']('todoList',_0x77ba65('todoList')),_0x163c38['enableCommand']('indentList',_0x4d7792('indentList')),_0x163c38['enableCommand']('outdentList',_0x4d7792('outdentList')),_0x44a753&&_0x163c38['enableCommand']('checkTodoList',()=>{const _0x4dfafc=_0x1aafa4['commands']['get']('checkTodoList'),_0x18e3cc=Array['from'](_0x4dfafc['_selectedElements']);_0x18e3cc['filter'](_0x24d595=>_0x24d595['getAttribute']('todoListChecked')!=_0x4dfafc['value']),_0x1aafa4['model']['change'](()=>{for(const _0x2b74e1 of _0x18e3cc)_0x163c38['markBlockFormat'](_0x2b74e1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4dfafc['value']}]});});}),_0x163c38['descriptionFactory']['registerElementLabel']('listItem',_0x18bf34=>o(_0x5791fa,'ELEMENT_LIST_ITEM',_0x18bf34)),_0x163c38['descriptionFactory']['registerDescriptionCallback'](_0x53083f=>{if('formatBlock'!=_0x53083f['type']&&'formatInline'!=_0x53083f['type'])return;const {data:_0x2b055b}=_0x53083f;if(_0x2b055b){if('numberedList'==_0x2b055b['commandName']||'bulletedList'==_0x2b055b['commandName']||'todoList'==_0x2b055b['commandName'])switch(_0x2b055b['commandName']['replace']('List','')){case'bulleted':return _0xdfb568(o(_0x5791fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xdfb568(o(_0x5791fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xdfb568(o(_0x5791fa,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2b055b['commandName'])return{'type':'format','content':o(_0x5791fa,'*Indent:*\x20%0',o(_0x5791fa,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2b055b['commandName'])return{'type':'format','content':o(_0x5791fa,'*Outdent:*\x20%0',o(_0x5791fa,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2b055b['commandName'])return _0x2b055b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5791fa,'*Check\x20item*')}:{'type':'format','content':o(_0x5791fa,'*Uncheck\x20item*')};}function _0xdfb568(_0x47a333){return{'type':'format','content':o(_0x5791fa,'*Change\x20to:*\x20%0',_0x47a333)};}});}}function fe(_0x4139cd){const _0x2de7f8=_0x4139cd['getAttribute']('listIndent');if(0x0==_0x2de7f8)return _0x4139cd;let _0x364984=_0x4139cd;for(;_0x4139cd['previousSibling']&&_0x4139cd['previousSibling']['is']('element','listItem');){const _0x3bfe7f=_0x4139cd['previousSibling']['getAttribute']('listIndent');if(_0x3bfe7f==_0x2de7f8)_0x364984=_0x4139cd['previousSibling'];else{if(_0x3bfe7f<_0x2de7f8)break;}_0x4139cd=_0x4139cd['previousSibling'];}return _0x364984;}function ue(_0x3a9384){const _0x13678b=[];if(_0x3a9384['is']('element','listItem')&&_0x3a9384['getAttribute']('listIndent')>0x0){let _0x2b4d1b=_0x3a9384['nextSibling'];for(;_0x2b4d1b&&'listItem'==_0x2b4d1b['name']&&_0x2b4d1b['getAttribute']('listIndent')==_0x3a9384['getAttribute']('listIndent');)_0x13678b['push'](_0x2b4d1b),_0x2b4d1b=_0x2b4d1b['nextSibling'];}return _0x13678b;}class W extends _0x164833{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5d42b3=this['editor']['config']['get']('list.properties'),_0x48a6c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d42b3['styles']&&_0x48a6c4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5d42b3['reversed']&&_0x48a6c4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5d42b3['startIndex']&&_0x48a6c4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x48a6c4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5c3918,_0x201831={}){const _0x344143=this['editor']['plugins']['get']('TrackChangesEditing'),_0x115884=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x344143['markMultiRangeBlockFormat'](_0x115884,{'commandName':'listStyle','commandParams':[{'type':_0x201831['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3ebd2a,_0x1d2a88={}){const _0x48d2e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b8b64=this['_getSuggestionBlocks'](_0x36d56d=>_0x36d56d['is']('element','listItem')&&'numbered'===_0x36d56d['getAttribute']('listType'));if(_0x1b8b64['length']<0x1)return;const _0xcc1a43=_0x1b8b64['map'](_0x201524=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x201524,'before'),this['editor']['model']['createPositionAt'](_0x201524,0x0)));this['editor']['model']['change'](()=>{_0x48d2e0['markMultiRangeBlockFormat'](_0xcc1a43,{'commandName':'listReversed','commandParams':[{'reversed':_0x1d2a88['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3504e4,_0x216c96={}){const _0x1b2e5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1498be=this['_getSuggestionBlocks'](_0x10c800=>_0x10c800['is']('element','listItem')&&'numbered'===_0x10c800['getAttribute']('listType'));if(_0x1498be['length']<0x1)return;const _0x1c111c=_0x1498be['map'](_0xc0d326=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc0d326,'before'),this['editor']['model']['createPositionAt'](_0xc0d326,0x0)));this['editor']['model']['change'](()=>{_0x1b2e5c['markMultiRangeBlockFormat'](_0x1c111c,{'commandName':'listStart','commandParams':[{'startIndex':_0x216c96['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xbd8eb9){if('formatBlock'!=_0xbd8eb9['type']&&'formatInline'!=_0xbd8eb9['type'])return;const _0x498075=this['editor']['locale'],{data:_0x3a3245}=_0xbd8eb9;if(!_0x3a3245)return;let _0x1abe04,_0x8dfba6;switch(_0x3a3245['commandName']){case'listStyle':_0x1abe04='*Change\x20to:*\x20%0',_0x8dfba6={'type':'format','content':o(_0x498075,_0x1abe04,o(_0x498075,this['_getTranslationKeyForListStyle'](_0x3a3245['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1abe04=_0x3a3245['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x8dfba6={'type':'format','content':o(_0x498075,_0x1abe04)};break;case'listStart':_0x1abe04='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x8dfba6={'type':'format','content':o(_0x498075,_0x1abe04,_0x3a3245['commandParams'][0x0]['startIndex'])};}return _0x8dfba6;}['_getSuggestionBlocksForListStyle'](){const _0x2118f6=this['editor']['plugins']['get']('LegacyListUtils');let _0x322c5b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x322c5b[0x0]?.['is']('element','listItem')&&_0x322c5b['unshift'](..._0x2118f6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x322c5b[_0x322c5b['length']-0x1]?.['is']('element','listItem')&&_0x322c5b['push'](..._0x2118f6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x322c5b=[...new Set(_0x322c5b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x322c5b=_0x322c5b['filter'](_0xc3a2f1=>_0xc3a2f1['is']('element','listItem'))),_0x322c5b;}['_getSuggestionBlocks'](_0x216601){const _0x13d8a0=this['editor']['plugins']['get']('LegacyListUtils');let _0x3158ed=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x216601)['map'](_0x3d4a34=>{const _0x1e1d96=this['editor']['model']['createPositionAt'](_0x3d4a34,0x0);return[..._0x13d8a0['getSiblingNodes'](_0x1e1d96,'backward'),..._0x13d8a0['getSiblingNodes'](_0x1e1d96,'forward')];})['flat']();return _0x3158ed=[...new Set(_0x3158ed)],_0x3158ed;}['_getTranslationKeyForListStyle'](_0x4c246c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c246c)||'default')['toUpperCase']()+'_LIST_'+_0x4c246c['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x164833{['afterInit'](){const _0x9964a4=this['editor'];if(!_0x9964a4['plugins']['has']('MediaEmbedEditing'))return;const _0x20e495=_0x9964a4['plugins']['get']('TrackChangesEditing'),_0x3649d8=_0x9964a4['locale'];_0x20e495['enableCommand']('mediaEmbed'),_0x20e495['descriptionFactory']['registerElementLabel']('media',_0x24019d=>o(_0x3649d8,'ELEMENT_MEDIA',_0x24019d)),_0x9964a4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x19de14,{writer:_0x150f50,options:_0x3056f0})=>{if(_0x3056f0['showSuggestionHighlights'])return _0x150f50['createEmptyElement']('div');},'converterPriority':'high'}),_0x9964a4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x252e63,_0x1ca19a,_0x379dd4)=>{_0x379dd4['options']['showSuggestionHighlights']&&_0x252e63['stop']();},{'priority':'high'});}}class mt extends _0x164833{['afterInit'](){const _0x100ebd=this['editor'];_0x100ebd['plugins']['has']('MentionEditing')&&_0x100ebd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x164833{['afterInit'](){const _0x5baa0c=this['editor'];if(!_0x5baa0c['plugins']['has']('MergeFieldsEditing'))return;_0x5baa0c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5baa0c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x4024bf=_0x5baa0c['plugins']['get']('TrackChangesEditing'),_0x3e3e9b=_0x5baa0c['locale'];_0x4024bf['descriptionFactory']['registerElementLabel']('mergeField',_0x74418d=>o(_0x3e3e9b,'ELEMENT_MERGE_FIELD',_0x74418d)),_0x4024bf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29014c=>o(_0x3e3e9b,'ELEMENT_MERGE_FIELD',_0x29014c)),_0x4024bf['descriptionFactory']['registerDescriptionCallback'](_0x2ecf8d=>{if('insertion'!=_0x2ecf8d['type']&&'deletion'!=_0x2ecf8d['type'])return;const _0x5108d1=_0x2ecf8d['getContainedElement']();if(null==_0x5108d1)return;if(!_0x5108d1['is']('element','mergeField')&&!_0x5108d1['is']('element','mergeFieldBlock'))return;const _0xe4c708=_0x5baa0c['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5108d1['getAttribute']('id'));return'insertion'==_0x2ecf8d['type']?{'type':'insertion','content':o(_0x3e3e9b,'*Insert:*\x20%0','\x22'+_0xe4c708+'\x22\x20'+o(_0x3e3e9b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3e3e9b,'*Remove:*\x20%0','\x22'+_0xe4c708+'\x22\x20'+o(_0x3e3e9b,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x164833{['afterInit'](){const _0x178424=this['editor'],_0x4fd5b5=_0x178424['plugins']['get']('TrackChangesEditing');_0x178424['plugins']['has']('MultiLevelList')&&(_0x4fd5b5['enableDefaultAttributesIntegration']('multiLevelList'),_0x4fd5b5['registerBlockAttribute']('listMarkerStyle'),_0x4fd5b5['descriptionFactory']['registerDescriptionCallback'](_0x3fbd29=>this['handleDescriptions'](_0x3fbd29)));}['handleDescriptions'](_0x4d44af){const _0x203c74=this['editor']['locale'],{data:_0x186b99}=_0x4d44af,_0x368744={'type':'format','content':''};if(_0x186b99&&'listMarkerStyle'==_0x186b99['key']){if(!_0x186b99['oldValue'])return{'type':'format','content':o(_0x203c74,'*Set\x20format:*\x20%0',o(_0x203c74,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x186b99['newValue']+')'};if(!_0x186b99['newValue']){let _0x463a59=_0x4d44af['head'];for(;_0x463a59;){if(_0x463a59['data']&&'listType'==_0x463a59['data']['key']&&_0x463a59['data']['newValue'])return _0x368744;_0x463a59=_0x463a59['next'];}return{'type':'format','content':o(_0x203c74,'*Remove\x20format:*\x20%0',o(_0x203c74,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x186b99['oldValue']+')'};}}}}class kt extends _0x164833{['afterInit'](){const _0x479941=this['editor'];if(!_0x479941['plugins']['has']('PageBreakEditing'))return;_0x479941['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x290709=_0x479941['plugins']['get']('TrackChangesEditing'),_0xf42c65=_0x479941['locale'];_0x290709['descriptionFactory']['registerElementLabel']('pageBreak',_0x3ed309=>o(_0xf42c65,'ELEMENT_PAGE_BREAK',_0x3ed309));}}class bt extends _0x164833{['afterInit'](){const _0x2ed773=this['editor'];if(!_0x2ed773['plugins']['has']('Paragraph'))return;const _0xd4cb78=_0x2ed773['locale'],_0x6725b0=_0x2ed773['plugins']['get']('TrackChangesEditing');_0x6725b0['descriptionFactory']['registerElementLabel']('paragraph',_0x51d7b2=>o(_0xd4cb78,'ELEMENT_PARAGRAPH',_0x51d7b2)),_0x6725b0['enableDefaultAttributesIntegration']('paragraph'),_0x6725b0['enableCommand']('insertParagraph'),_0x2ed773['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2ed773),{'priority':'highest'}),_0x2ed773['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x32c5a1,_0x52c143,_0x15e5b0)=>{_0x15e5b0['options']['showSuggestionHighlights']&&nr(_0x2ed773,{'showActiveMarker':!0x1})(_0x32c5a1,_0x52c143,_0x15e5b0);},{'priority':'highest'});const _0x29a6fd=_0x6725b0['descriptionFactory'];_0x29a6fd['registerDescriptionCallback'](_0x1bad41=>{if('insertion'!==_0x1bad41['type'])return;const {start:_0x19c746,end:_0x2ed3cd}=_0x1bad41['getFirstRange']();if(!_0x19c746['isTouching'](_0x2ed3cd)||!_0x19c746['nodeAfter'])return;const _0xad191a=_0x2ed773['model']['schema'],_0x50e8e7=_0x19c746['nodeAfter'];return _0xad191a['isBlock'](_0x50e8e7)&&!_0xad191a['isLimit'](_0x50e8e7)&&_0xad191a['checkChild'](_0x50e8e7,'$text')?{'type':'insertion','content':o(_0xd4cb78,'*Insert:*\x20%0',_0x29a6fd['getItemLabel'](_0x50e8e7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21a93e=this['editor'],_0x367f14=_0x21a93e['locale'];_0x21a93e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x107fd2=>{if('formatBlock'!=_0x107fd2['type'])return;const {data:_0x5c04e4}=_0x107fd2;return _0x5c04e4&&'paragraph'==_0x5c04e4['commandName']?{'type':'format','content':o(_0x367f14,'*Change\x20to:*\x20%0',o(_0x367f14,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x285460,{showActiveMarker:_0x42eb39=!0x0}={}){return(_0x21e76b,_0x215750,_0x5e2f0d)=>{const _0x4dddda=_0x285460['plugins']['get']('TrackChangesEditing'),_0x4e1a05=_0x215750['markerRange']['start'],_0x2f0fb4=_0x215750['markerRange']['end'],_0x45436b=_0x285460['model']['schema'];if(!_0x4e1a05['isTouching'](_0x2f0fb4)||!_0x4e1a05['nodeAfter'])return;const _0xa1ccd1=_0x4e1a05['nodeAfter'];if(_0x45436b['isBlock'](_0xa1ccd1)&&!_0x45436b['isLimit'](_0xa1ccd1)&&_0x45436b['checkChild'](_0xa1ccd1,'$text')){if(!_0x5e2f0d['consumable']['consume'](_0x215750['markerRange'],_0x21e76b['name']))return;const {authorId:_0x145991}=_0x4dddda['_splitMarkerName'](_0x215750['markerName']),_0x1dcc64=_0x5e2f0d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x145991}),_0x59f2ab=_0x5e2f0d['mapper']['toViewPosition'](_0x2f0fb4);_0x42eb39&&_0x4dddda['activeMarkers']['includes'](_0x215750['markerName'])&&_0x5e2f0d['writer']['addClass']('ck-suggestion-marker--active',_0x1dcc64),_0x5e2f0d['writer']['insert'](_0x59f2ab,_0x1dcc64),_0x5e2f0d['mapper']['bindElementToMarker'](_0x1dcc64,_0x215750['markerName']);}};}class wt extends _0x164833{['afterInit'](){const _0x35f19c=this['editor'];if(!_0x35f19c['plugins']['has']('RemoveFormatEditing'))return;_0x35f19c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57650d=this['editor'];_0x57650d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x361c41=>{if('formatBlock'!=_0x361c41['type']&&'formatInline'!=_0x361c41['type'])return;const {data:_0x483ac7}=_0x361c41;return _0x483ac7&&'removeFormat'==_0x483ac7['commandName']?{'type':'format','content':o(_0x57650d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x164833{['afterInit'](){const _0x4af64d=this['editor'];if(!_0x4af64d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x42feb5=_0x4af64d['plugins']['get']('TrackChangesEditing');_0x42feb5['enableCommand']('goToPreviousRestrictedEditingException'),_0x42feb5['enableCommand']('goToNextRestrictedEditingException');const _0x8e6cd=_0x4af64d['plugins']['get']('RestrictedEditingModeEditing');_0x8e6cd['enableCommand']('trackChanges'),_0x8e6cd['enableCommand']('acceptSuggestion'),_0x8e6cd['enableCommand']('discardSuggestion'),_0x8e6cd['enableCommand']('acceptAllSuggestions'),_0x8e6cd['enableCommand']('discardAllSuggestions'),_0x8e6cd['enableCommand']('acceptSelectedSuggestions'),_0x8e6cd['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x164833{static get['requires'](){return[_0x1e2d7e];}['init'](){const _0x1ed145=this['editor'],_0x31a28d=_0x1ed145['plugins']['get']('TrackChangesEditing');_0x31a28d['enableCommand']('shiftEnter'),_0x1ed145['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x1ed145),{'priority':'high'}),_0x1ed145['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x1ed145),{'priority':'high'}),_0x1ed145['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x607e3,_0x251317,_0x36ef00)=>{_0x36ef00['options']['showSuggestionHighlights']&&ge(_0x1ed145,{'showActiveMarker':!0x1})(_0x607e3,_0x251317,_0x36ef00);}),_0x31a28d['descriptionFactory']['registerElementLabel']('softBreak',_0x55f439=>o(_0x1ed145['locale'],'ELEMENT_LINE_BREAK',_0x55f439));}}function ge(_0x160ef1,{showActiveMarker:_0x35d70a=!0x0}={}){return(_0x4e9d26,_0x22375f,_0x174891)=>{const _0x2fcebb=_0x160ef1['plugins']['get']('TrackChangesEditing');if(!_0x174891['consumable']['test'](_0x22375f['markerRange'],_0x4e9d26['name']))return;const _0x2eddcf=_0x160ef1['model'];for(const _0x568c32 of _0x22375f['markerRange']['getItems']()){if(!_0x568c32['is']('element','softBreak'))continue;const _0x2b7627='deletion'==_0x22375f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x87a93d}=_0x2fcebb['_splitMarkerName'](_0x22375f['markerName']),_0x1ddeeb=_0x174891['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b7627,'data-author-id':_0x87a93d}),_0x5014ee=_0x174891['mapper']['toViewPosition'](_0x2eddcf['createPositionBefore'](_0x568c32));_0x35d70a&&_0x2fcebb['activeMarkers']['includes'](_0x22375f['markerName'])&&_0x174891['writer']['addClass']('ck-suggestion-marker--active',_0x1ddeeb),_0x174891['writer']['insert'](_0x5014ee,_0x1ddeeb),_0x174891['mapper']['bindElementToMarker'](_0x1ddeeb,_0x22375f['markerName']);}};}class St extends _0x164833{['afterInit'](){const _0x40f291=this['editor'],_0x5f012b=_0x40f291['model'],_0x24e14c=_0x40f291['locale'];if(!_0x40f291['plugins']['has']('StandardEditingModeEditing'))return;const _0x5d9f97=_0x40f291['plugins']['get']('TrackChangesEditing'),_0x2ac957='restrictedEditingException',_0x5d5bc1=_0x40f291['commands']['get'](_0x2ac957);_0x5d9f97['enableCommand'](_0x2ac957,(_0x3b25bb,_0x47faaa={})=>{const _0x202fd4=_0x5f012b['document']['selection'];if(_0x202fd4['isCollapsed'])return void _0x3b25bb(_0x47faaa);const _0x19aa0a=void 0x0!==_0x47faaa['forceValue']?_0x47faaa['forceValue']:!_0x5d5bc1['value'];_0x5f012b['change'](()=>{const _0x263996=Array['from'](_0x202fd4['getRanges']());for(const _0x3ac11d of _0x263996){const _0x113a16=_0x19aa0a?[_0x3ac11d]:io(_0x2ac957,_0x3ac11d,_0x5f012b);for(const _0x44f27b of _0x113a16)_0x5d9f97['markInlineFormat'](_0x44f27b,{'commandName':_0x2ac957,'commandParams':[{'forceValue':_0x19aa0a}]});}});}),_0x5d9f97['descriptionFactory']['registerDescriptionCallback'](_0x117757=>{if('formatBlock'!=_0x117757['type']&&'formatInline'!=_0x117757['type'])return;const {data:_0x1887fc}=_0x117757;return _0x1887fc&&_0x1887fc['commandName']==_0x2ac957?_0x1887fc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24e14c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x24e14c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x164833{['afterInit'](){const _0x3591dd=this['editor'];if(!_0x3591dd['plugins']['has']('Style')||!_0x3591dd['plugins']['has']('DataSchema'))return;const _0xcd059c=_0x3591dd['plugins']['get']('TrackChangesEditing'),_0x18bb5b=_0x3591dd['locale'],_0x9a57f3=_0x3591dd['config']['get']('style')||{},_0x30e309=_0x3591dd['plugins']['get']('GeneralHtmlSupport'),_0x4e56ac=_0x3591dd['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3591dd['plugins']['get']('DataSchema'),_0x9a57f3['definitions']);_0xcd059c['enableDefaultAttributesIntegration']('style');const _0x4e2a54=new Set();for(const _0x1b65e3 of _0x4e56ac['block']){const _0x58a1e4=_0x30e309['getGhsAttributeNameForElement'](_0x1b65e3['element']);_0x4e2a54['add'](_0x58a1e4);}const _0x17a0fa=new Set();for(const _0x35203e of _0x4e56ac['inline']){const _0x53b89d=_0x30e309['getGhsAttributeNameForElement'](_0x35203e['element']);_0x17a0fa['add'](_0x53b89d);for(const _0x2d37cb of _0x35203e['ghsAttributes'])_0x17a0fa['add'](_0x2d37cb);}for(const _0x5d382b of _0x4e2a54)_0xcd059c['registerBlockAttribute'](_0x5d382b),_0xcd059c['descriptionFactory']['registerAttributeLabel'](_0x5d382b,o(_0x18bb5b,'FORMAT_STYLE'));for(const _0x55c822 of _0x17a0fa)_0xcd059c['registerInlineAttribute'](_0x55c822),_0xcd059c['descriptionFactory']['registerAttributeLabel'](_0x55c822,o(_0x18bb5b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d80e9=this['editor'],_0x7da6cf=_0x4d80e9['locale'];_0x4d80e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ea460=>{if('formatBlock'!=_0x3ea460['type']&&'formatInline'!=_0x3ea460['type'])return;const {data:_0x197cc5}=_0x3ea460;return _0x197cc5&&'style'===_0x197cc5['commandName']?_0x197cc5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7da6cf,'*Set\x20format:*\x20%0',_0x197cc5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x7da6cf,'*Remove\x20format:*\x20%0',_0x197cc5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x164833{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2bfd86){super(_0x2bfd86),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5065ac=this['editor'],_0x4c64f5=_0x5065ac['model']['document']['selection'];if(!_0x5065ac['plugins']['has']('TableEditing'))return;const _0x63d12=_0x5065ac['locale'],_0xd53322=_0x5065ac['plugins']['get']('TrackChangesEditing'),_0x3bf535=_0x5065ac['plugins']['get']('TableUtils');_0xd53322['descriptionFactory']['registerElementLabel']('table',_0xc6b214=>o(_0x63d12,'ELEMENT_TABLE',_0xc6b214)),this['_setupColumnsRowsFixing'](),_0xd53322['enableCommand']('insertTable'),_0xd53322['enableCommand']('selectTableRow'),_0xd53322['enableCommand']('selectTableColumn');for(const _0x1d2f5e of['insertTableRowAbove','insertTableRowBelow']){const _0x2508af=_0x5065ac['commands']['get'](_0x1d2f5e);_0xd53322['enableCommand'](_0x1d2f5e,_0x471df9=>{_0x5065ac['model']['change'](_0x230474=>{_0x471df9();const _0x33f27c='above'===_0x2508af['order'],_0xb1f75d=_0x3bf535['getSelectionAffectedTableCells'](_0x4c64f5),_0x3301a8=_0x3bf535['getRowIndexes'](_0xb1f75d),_0x1e8d30=_0x33f27c?_0x3301a8['first']-0x1:_0x3301a8['last']+0x1,_0x224ee6=_0xb1f75d[0x0]['findAncestor']('table'),_0x426583=_0x3bf535['createTableWalker'](_0x224ee6,{'startRow':_0x1e8d30,'endRow':_0x1e8d30}),_0x252cbb=Array['from'](_0x426583)['map'](_0x4c7164=>_0x230474['createRangeOn'](_0x4c7164['cell']));_0xd53322['markMultiRangeInsertion'](_0x252cbb,'tableRow');});});}for(const _0x1a42bd of['insertTableColumnLeft','insertTableColumnRight']){const _0x34136e=_0x5065ac['commands']['get'](_0x1a42bd);_0xd53322['enableCommand'](_0x1a42bd,_0x4f51bf=>{_0x5065ac['model']['change'](_0xffdd37=>{_0x4f51bf();const _0x47b17d='left'===_0x34136e['order'],_0x239bdf=_0x3bf535['getSelectionAffectedTableCells'](_0x4c64f5),_0xc1b223=_0x3bf535['getColumnIndexes'](_0x239bdf),_0x17dfea=_0x47b17d?_0xc1b223['first']-0x1:_0xc1b223['last']+0x1,_0x45c6d3=_0x239bdf[0x0]['findAncestor']('table'),_0x32b6fc=_0x3bf535['createTableWalker'](_0x45c6d3,{'startRow':0x0,'column':_0x17dfea,'includeAllSlots':!0x1}),_0x336f44=Array['from'](_0x32b6fc)['map'](_0x2e2c10=>_0xffdd37['createRangeOn'](_0x2e2c10['cell']));_0xd53322['markMultiRangeInsertion'](_0x336f44,'tableColumn');});});}for(const _0x4d5116 of['removeTableRow','removeTableColumn']){const _0x595154=_0x4d5116['substr'](0xb),_0x7c1dd1=_0x595154['toLowerCase'](),_0x114f30=_0x7c1dd1['substr'](0x0,0x3)+'span',_0x5ad7f0='table'+_0x595154,_0x27c18e='min'+_0x595154,_0x7bbf4d='max'+_0x595154;_0xd53322['enableCommand'](_0x4d5116,()=>{_0x5065ac['model']['change'](_0x2222b8=>{const _0x2a5395=_0x3bf535['getSelectionAffectedTableCells'](_0x4c64f5),_0xf810fd=_0x2a5395[0x0]['findAncestor']('table');let _0x28dc7a;if('removeTableRow'==_0x4d5116){const _0x109440=_0x3bf535['getRowIndexes'](_0x2a5395);_0x28dc7a={'startRow':_0x109440['first'],'endRow':_0x109440['last'],'includeAllSlots':!0x0};}else{const _0x1203ce=_0x3bf535['getColumnIndexes'](_0x2a5395);_0x28dc7a={'startColumn':_0x1203ce['first'],'endColumn':_0x1203ce['last'],'includeAllSlots':!0x0};}const _0xaf21f9=_0x3bf535['createTableWalker'](_0xf810fd,_0x28dc7a),_0x31024f=Array['from'](_0xaf21f9)['map'](({cell:_0x4a6245})=>_0x4a6245),_0x260062=be(_0x31024f['filter'](_0x4371f9=>_0x4371f9['hasAttribute'](_0x114f30))),_0x171c1d=be(_0x31024f['filter'](_0xa100f=>!_0xa100f['hasAttribute'](_0x114f30)))['map'](_0x5a5678=>_0x2222b8['createRangeOn'](_0x5a5678)),_0x57a39c=_0xd53322['markMultiRangeDeletion'](_0x171c1d,_0x5ad7f0);if(_0x57a39c&&('tableRow'==_0x57a39c['subType']||'tableColumn'==_0x57a39c['subType'])){const _0x5e59cd=this['_getSuggestionCoords'](_0x57a39c);for(const _0x56128c of _0x260062){const _0x38c05e=_0x2222b8['createRangeOn'](_0x56128c),_0x2fc55a=_0x3bf535['getCellLocation'](_0x56128c),_0x4c4b44=_0x56128c['getAttribute'](_0x114f30)-0x1,_0x2a4415=_0x5e59cd[_0x27c18e],_0x30d237=_0x5e59cd[_0x7bbf4d];_0x2a4415<=_0x2fc55a[_0x7c1dd1]&&_0x2fc55a[_0x7c1dd1]+_0x4c4b44<=_0x30d237&&_0x57a39c['addRange'](_0x38c05e);}}});});}function _0x16bfb5(_0x4ee310){const _0x5b23cf=Array['from'](_0x4c64f5['getRanges']())['map'](_0x37888d=>_0x3f4d48['fromRange'](_0x37888d));_0x5065ac['model']['change'](_0x13168e=>{const _0x80f60e=_0x13168e['batch'];_0x4ee310=_0x4ee310['filter'](_0x3cbac3=>'$graveyard'!=_0x3cbac3['root']['rootName']),_0x13168e['setSelection'](_0x4ee310),_0x5065ac['commands']['get']('removeTableRow')['refresh'](),_0x5065ac['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5065ac['model']['enqueueChange'](()=>{_0x5065ac['model']['enqueueChange'](_0x80f60e,_0x5c4434=>{const _0x19e5ad=_0x5b23cf['filter'](_0x34940c=>'$graveyard'!=_0x34940c['root']['rootName']);_0x19e5ad['length']>0x0&&_0x5c4434['setSelection'](_0x19e5ad);for(const _0x51222b of _0x5b23cf)_0x51222b['detach']();});});});}function _0x3f5f15(_0x4779df){_0x5065ac['model']['change'](_0x1f0e7b=>{const _0x4ff2b7=Array['from'](_0x4c64f5['getRanges']())['map'](_0x5d1c2f=>_0x3f4d48['fromRange'](_0x5d1c2f)),_0x46f4e8=[];for(const _0x3946ad of _0x4779df)for(const _0x47da6b of _0x3946ad['getItems']({'shallow':!0x0}))_0x46f4e8['push'](_0x47da6b);for(const _0x1bd98d of _0x46f4e8)'$graveyard'!=_0x1bd98d['root']['rootName']&&(_0x1f0e7b['setSelection'](_0x1f0e7b['createPositionAt'](_0x1bd98d,0x0)),_0x5065ac['commands']['get']('removeTableColumn')['refresh'](),_0x5065ac['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x18b504=_0x4ff2b7['filter'](_0x108d93=>'$graveyard'!=_0x108d93['root']['rootName']);_0x18b504['length']>0x0&&_0x1f0e7b['setSelection'](_0x18b504);for(const _0x4934f5 of _0x4ff2b7)_0x4934f5['detach']();});}function _0x727399(_0xdaab86,_0x2eb26e){return _0x2eb26e['every'](_0x1eaca9=>_0xdaab86['some'](_0x1fa065=>_0x1fa065['end']['isEqual'](_0x1eaca9['start'])||_0x1eaca9['end']['isEqual'](_0x1fa065['start'])));}function _0x4cc7ce(_0x4c0f92,_0x1734f1){return!_0x4c0f92['some'](_0x20f5e6=>_0x1734f1['some'](_0x267ed5=>_0x20f5e6['isIntersecting'](_0x267ed5)))&&_0x4c0f92['some'](_0x492adc=>_0x1734f1['some'](_0x39bcc5=>_0x492adc['end']['isTouching'](_0x39bcc5['start'])));}_0x5065ac['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3bc083,_0x5a48be,_0x19404f)=>{if(!_0x19404f['options']['showSuggestionHighlights'])return;const _0x48599a=_0x5a48be['item'];if(!_0x48599a)return;const _0x55139b=_0x19404f['mapper']['toViewElement'](_0x48599a);function _0x106445(_0x155322){return Array['isArray'](_0x155322)?_0x155322:[_0x155322];}_0x55139b&&'tableCell'===_0x48599a['name']&&_0x50cd13(_0x55139b,_0x19404f['writer'],(_0x2e8a0d,_0x42a781,_0x201dad)=>_0x201dad['addClass'](_0x106445(_0x42a781['classes']),_0x2e8a0d),(_0x1484a0,_0x462caa,_0x58a8fa)=>_0x58a8fa['removeClass'](_0x106445(_0x462caa['classes']),_0x1484a0));},{'priority':'highest'}),_0xd53322['descriptionFactory']['registerDescriptionCallback'](_0x5fcd2d=>{if('insertion'!=_0x5fcd2d['type']&&'deletion'!=_0x5fcd2d['type'])return;const _0x51e33c=_0x5fcd2d['getContainedElement']();if(null!=_0x51e33c&&_0x51e33c['is']('element','table')){if('insertion'==_0x5fcd2d['type']){const _0x196eb4=_0x5fcd2d['getItems']()['filter'](_0x39fd76=>_0x39fd76['is']('$textProxy'))['map'](_0x1ab36f=>_0x1ab36f['data']);if(_0x196eb4['length'])return{'type':'insertion','content':o(_0x63d12,'*Insert:*\x20%0',o(_0x63d12,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x196eb4['join']('\x20')+'\x22'))};}if('deletion'==_0x5fcd2d['type']){const _0x266535=_0x5fcd2d['getItems']()['filter'](_0x398cc6=>_0x398cc6['is']('$textProxy'))['map'](_0x431195=>_0x431195['data']);if(_0x266535['length'])return{'type':'deletion','content':o(_0x63d12,'*Remove:*\x20%0',o(_0x63d12,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x266535['join']('\x20')+'\x22'))};}}}),_0xd53322['descriptionFactory']['registerDescriptionCallback'](_0x3038d2=>{if('tableRow'==_0x3038d2['subType']){const _0x1f80ab=_0x3038d2['getItems']()['filter'](_0x2adb00=>_0x2adb00['is']('$textProxy'))['map'](_0x308dc9=>_0x308dc9['data']),_0x47ffea=this['_getSuggestionCoords'](_0x3038d2),_0x3e876e=_0x47ffea['maxRow']-_0x47ffea['minRow']+0x1;if('insertion'==_0x3038d2['type'])return _0x1f80ab['length']?{'type':'insertion','content':o(_0x63d12,'*Insert:*\x20%0',o(_0x63d12,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e876e,'\x22'+_0x1f80ab['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x63d12,'*Insert:*\x20%0',o(_0x63d12,'ELEMENT_TABLE_ROW',_0x3e876e))};if('deletion'==_0x3038d2['type'])return _0x1f80ab['length']?{'type':'deletion','content':o(_0x63d12,'*Remove:*\x20%0',o(_0x63d12,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e876e,'\x22'+_0x1f80ab['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x63d12,'*Remove:*\x20%0',o(_0x63d12,'ELEMENT_TABLE_ROW',_0x3e876e))};}if('tableColumn'==_0x3038d2['subType']){const _0x3d41d0=_0x3038d2['getItems']()['filter'](_0x4b4d94=>_0x4b4d94['is']('$textProxy'))['map'](_0x18124b=>_0x18124b['data']),_0x47ef40=this['_getSuggestionCoords'](_0x3038d2),_0x2771fd=_0x47ef40['maxColumn']-_0x47ef40['minColumn']+0x1;if('insertion'==_0x3038d2['type'])return _0x3d41d0['length']?{'type':'insertion','content':o(_0x63d12,'*Insert:*\x20%0',o(_0x63d12,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2771fd,'\x22'+_0x3d41d0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x63d12,'*Insert:*\x20%0',o(_0x63d12,'ELEMENT_TABLE_COLUMN',_0x2771fd))};if('deletion'==_0x3038d2['type'])return _0x3d41d0['length']?{'type':'deletion','content':o(_0x63d12,'*Remove:*\x20%0',o(_0x63d12,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2771fd,'\x22'+_0x3d41d0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x63d12,'*Remove:*\x20%0',o(_0x63d12,'ELEMENT_TABLE_COLUMN',_0x2771fd))};}}),_0xd53322['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x16bfb5),_0xd53322['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x16bfb5),_0xd53322['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3f5f15),_0xd53322['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3f5f15),_0xd53322['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x727399),_0xd53322['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x727399),_0xd53322['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4cc7ce),_0xd53322['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4cc7ce);}['_acceptFormatSuggestionCallbackFactory'](){const _0x453d18=this['editor'],_0x57a65b=_0x453d18['model']['document']['selection'];return(_0x471901,_0x4f778c)=>{_0x453d18['model']['change'](_0x32cc7b=>{const {commandName:_0x53df76,commandParams:_0xc2080c}=_0x4f778c;let _0x2bacff=_0x471901[0x0]['end']['nodeBefore'];_0xc2080c&&_0xc2080c[0x0]&&!0x1===_0xc2080c[0x0]['forceValue']&&(_0x2bacff=_0x471901[0x0]['start']['nodeAfter']);const _0x216da7=_0x32cc7b['createRangeIn'](_0x2bacff);if('$graveyard'==_0x216da7['root']['rootName'])return;const _0xf8e699=Array['from'](_0x57a65b['getRanges']())['map'](_0x55a7f1=>_0x3f4d48['fromRange'](_0x55a7f1));_0x32cc7b['setSelection'](_0x216da7),_0x453d18['commands']['get'](_0x53df76)['refresh'](),_0xc2080c['push']({'forceDefaultExecution':!0x0}),_0x453d18['execute'](_0x53df76,..._0xc2080c);const _0x22c087=_0xf8e699['filter'](_0x14db8e=>'$graveyard'!=_0x14db8e['root']['rootName']);_0x22c087['length']>0x0&&_0x32cc7b['setSelection'](_0x22c087);for(const _0x4393c0 of _0xf8e699)_0x4393c0['detach']();});};}['_getCoordsForCells'](_0x5ddf2a){const _0x2a6baf=this['editor']['plugins']['get']('TableUtils');let _0x1de1e1=Number['MAX_SAFE_INTEGER'],_0x2e23a8=Number['MIN_SAFE_INTEGER'],_0x5b7582=Number['MAX_SAFE_INTEGER'],_0x404a94=Number['MIN_SAFE_INTEGER'];for(const _0x301831 of _0x5ddf2a){if('$graveyard'==_0x301831['root']['rootName'])continue;const {row:_0x503e4d,column:_0x479591}=_0x2a6baf['getCellLocation'](_0x301831),_0x351983=_0x301831['hasAttribute']('rowspan')?_0x301831['getAttribute']('rowspan')-0x1:0x0,_0x350716=_0x301831['hasAttribute']('colspan')?_0x301831['getAttribute']('colspan')-0x1:0x0;_0x1de1e1=_0x503e4d<_0x1de1e1?_0x503e4d:_0x1de1e1,_0x2e23a8=_0x503e4d+_0x351983>_0x2e23a8?_0x503e4d+_0x351983:_0x2e23a8,_0x5b7582=_0x479591<_0x5b7582?_0x479591:_0x5b7582,_0x404a94=_0x479591+_0x350716>_0x404a94?_0x479591+_0x350716:_0x404a94;}return{'minRow':_0x1de1e1,'maxRow':_0x2e23a8,'minColumn':_0x5b7582,'maxColumn':_0x404a94};}['_setupColumnsRowsFixing'](){const _0x37b3dd=this['editor'],_0x8ca17f=_0x37b3dd['plugins']['get']('TrackChangesEditing'),_0x4e338f=_0x37b3dd['plugins']['get']('TableUtils');_0x37b3dd['model']['document']['on']('change:data',()=>{const _0x2164fa=Array['from'](_0x37b3dd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f086a,data:_0x5b8b2a}of _0x2164fa){const {group:_0x2d6be6,id:_0x2e4abb,subType:_0x22df00}=_0x8ca17f['_splitMarkerName'](_0x1f086a);if('suggestion'!=_0x2d6be6)continue;if(null!=_0x5b8b2a['oldRange'])continue;const _0x48b2ba=_0x8ca17f['getSuggestion'](_0x2e4abb);this['_tablePostFixingSubtypes']['includes'](_0x22df00)&&this['_tableSuggestions']['add'](_0x48b2ba);}},{'priority':'low'});const _0x429358=(_0x124bd6,_0x3d2418)=>{let _0x9a8c06=!0x1;const _0x39cbb0=_0x3d2418['createRangeOn'](_0x124bd6),_0x4fdee7=_0x124bd6['findAncestor']('table'),_0xf1a527=_0x4e338f['getCellLocation'](_0x124bd6);for(const _0xf7774e of this['_tableSuggestions']){const _0x2a2e13=_0xf7774e['subType'],_0x273dbf=_0x2a2e13['startsWith']('tablePaste'),_0x26c2f4=_0x2a2e13['substr'](_0x273dbf?0xa:0x5),_0x46eca5=_0x26c2f4['toLowerCase'](),_0x1ce422=_0x46eca5['substr'](0x0,0x3)+'span',_0x2407c1='min'+_0x26c2f4,_0x23846a='max'+_0x26c2f4;if(!_0xf7774e['isInContent'])continue;if(_0x4fdee7!=_0xf7774e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xf7774e['isIntersectingWithRange'](_0x39cbb0))continue;const _0x1f1b37=_0x124bd6['hasAttribute'](_0x1ce422)?_0x124bd6['getAttribute'](_0x1ce422)-0x1:0x0,_0x156a37=this['_getSuggestionCoords'](_0xf7774e),_0xec69f8=_0x156a37[_0x2407c1],_0x237a5a=_0x156a37[_0x23846a];_0xec69f8<=_0xf1a527[_0x46eca5]&&_0xf1a527[_0x46eca5]+_0x1f1b37<=_0x237a5a&&(_0xf7774e['addRange'](_0x39cbb0),_0x9a8c06=!0x0);}return _0x9a8c06;};_0x37b3dd['model']['document']['registerPostFixer'](_0x187e94=>{let _0x2025c0=!0x1;for(const _0x411a46 of _0x37b3dd['model']['document']['differ']['getChanges']())if('insert'==_0x411a46['type']){if('tableRow'==_0x411a46['name']){for(const _0x2dc83e of _0x411a46['position']['nodeAfter']['getChildren']())_0x2025c0=_0x2025c0||_0x429358(_0x2dc83e,_0x187e94);}else'tableCell'==_0x411a46['name']&&(_0x2025c0=_0x2025c0||_0x429358(_0x411a46['position']['nodeAfter'],_0x187e94));}return _0x2025c0;});}['_getSuggestionCoords'](_0x40de07){return this['_getCoordsForCells'](_0x40de07['getRanges']()['map'](_0xe65a08=>_0xe65a08['start']['nodeAfter']));}}function be(_0x506113){return Array['from'](new Set(_0x506113)['values']());}class vt extends _0x164833{static get['requires'](){return[It];}['afterInit'](){const _0x2c2f82=this['editor'],_0x4110d7=_0x2c2f82['model']['document']['selection'],_0x4d7637=_0x2c2f82['locale'];if(!_0x2c2f82['plugins']['has']('TableEditing'))return;const _0x51c702=_0x2c2f82['plugins']['get']('TrackChangesEditing'),_0x78fe37=_0x2c2f82['plugins']['get']('TableUtils'),_0xc866ed=_0x2c2f82['plugins']['get'](It);_0xc866ed['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x51c702['enableCommand']('mergeTableCells',()=>{const _0x323ede=_0x78fe37['getSelectionAffectedTableCells'](_0x2c2f82['model']['document']['selection']);_0x2c2f82['model']['change'](()=>{_0x51c702['markMultiRangeBlockFormat'](_0x323ede,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2c2f82['commands']['get']('mergeTableCells')['on']('execute',(_0x60adc4,_0x3de4e8)=>{_0x2c2f82['commands']['get']('trackChanges')['value']&&(_0x3de4e8['length']>0x0&&_0x3de4e8[_0x3de4e8['length']-0x1]&&_0x3de4e8[_0x3de4e8['length']-0x1]['forceDefaultExecution']||_0x51c702['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x60adc4['stop']());},{'priority':'highest'});for(const _0x358be3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x552057=_0x2c2f82['commands']['get'](_0x358be3);_0x51c702['enableCommand'](_0x358be3,()=>{const _0x1abb7d=_0x2c2f82['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x436219=>_0x436219['is']('element','tableCell')),_0x4b2c26=_0x552057['value'];_0x2c2f82['model']['change'](()=>{_0x51c702['markMultiRangeBlockFormat']([_0x1abb7d,_0x4b2c26],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1472e1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4fe8d6=_0x2c2f82['commands']['get'](_0x1472e1);_0x51c702['enableCommand'](_0x1472e1,()=>{const _0x2a9dcd=_0x78fe37['getSelectionAffectedTableCells'](_0x2c2f82['model']['document']['selection'])[0x0],_0x20fa5d=_0x2a9dcd['findAncestor']('table'),{column:_0x273468,row:_0x1249bd}=_0x78fe37['getCellLocation'](_0x2a9dcd);let _0xdb1ad6=[];if('horizontally'==_0x4fe8d6['direction']){const _0x57fcbd=_0x78fe37['createTableWalker'](_0x20fa5d,{'startRow':_0x1249bd,'endRow':_0x1249bd,'includeAllSlots':!0x0});_0xdb1ad6=Array['from'](_0x57fcbd)['map'](_0x211444=>_0x211444['cell']);}else{const _0x56ef5a=_0x78fe37['createTableWalker'](_0x20fa5d,{'column':_0x273468,'includeAllSlots':!0x0});_0xdb1ad6=Array['from'](_0x56ef5a)['map'](_0x412276=>_0x412276['cell']);}_0x2c2f82['model']['change'](_0x216293=>{_0x51c702['markBlockFormat'](_0x216293['createRangeOn'](_0x2a9dcd),{'commandName':_0x1472e1,'commandParams':[]},_0xdb1ad6,_0x1472e1);});});}_0x51c702['descriptionFactory']['registerDescriptionCallback'](_0x25e9f1=>{if('formatBlock'!=_0x25e9f1['type']&&'formatInline'!=_0x25e9f1['type'])return;const {data:_0x108b8a}=_0x25e9f1;return _0x108b8a&&'mergeTableCells'==_0x108b8a['commandName']?{'type':'format','content':o(_0x4d7637,'*Merge\x20cells*')}:void 0x0;}),_0x51c702['descriptionFactory']['registerDescriptionCallback'](_0x2aa8fb=>{if('formatBlock'!=_0x2aa8fb['type']&&'formatInline'!=_0x2aa8fb['type'])return;const {data:_0xf87275}=_0x2aa8fb;return _0xf87275?'splitTableCellVertically'==_0xf87275['commandName']?{'type':'format','content':o(_0x4d7637,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xf87275['commandName']?{'type':'format','content':o(_0x4d7637,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4e8d59=_0xc866ed['_acceptFormatSuggestionCallbackFactory']();for(const _0x5a6232 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x51c702['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a6232,'accept',_0x4e8d59);for(const _0x48c136 of['splitTableCellVertically','splitTableCellHorizontally'])_0x51c702['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48c136,'accept',_0x4e8d59);_0x51c702['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2cbc5b=>{_0x2c2f82['model']['change'](_0x53e79b=>{const _0x4def92=Array['from'](_0x4110d7['getRanges']())['map'](_0x5be17f=>_0x3f4d48['fromRange'](_0x5be17f));_0x53e79b['setSelection'](_0x2cbc5b),_0x2c2f82['commands']['get']('mergeTableCells')['refresh'](),_0x2c2f82['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4703d6=_0x4def92['filter'](_0x3fa1cc=>'$graveyard'!=_0x3fa1cc['root']['rootName']);_0x4703d6['length']>0x0&&_0x53e79b['setSelection'](_0x4703d6);for(const _0x3b31b2 of _0x4def92)_0x3b31b2['detach']();});});for(const _0x46bd2b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xb80640=_0x2c2f82['commands']['get'](_0x46bd2b);_0xb80640['on']('set:isEnabled',(_0x368836,_0xe89e11,_0xb307ce)=>{if(_0xb307ce){const _0x4e91ee=_0x2c2f82['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x59da23=>_0x59da23['is']('element','tableCell'));this['_areMergableCells'](_0xb80640['value'],_0x4e91ee)||(_0x368836['return']=!0x1,_0x368836['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2b98f8=this['editor']['commands']['get']('mergeTableCells'),_0xee14fa=this['editor']['plugins']['get']('TableUtils');if(!_0x2b98f8['isEnabled'])return!0x1;const _0x2a9a8e=_0xee14fa['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x37d80a of _0x2a9a8e)for(const _0x41b8fa of _0x2a9a8e)if(_0x37d80a!=_0x41b8fa&&!this['_areMergableCells'](_0x37d80a,_0x41b8fa))return!0x1;return!0x0;}['_areMergableCells'](_0x498d84,_0x399bd2){const _0x45a441=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11db9f=this['editor']['model']['createRangeOn'](_0x498d84),_0x27c16d=this['editor']['model']['createRangeOn'](_0x399bd2),_0x6fbd71=new Set(),_0x5cc2d5=new Set();for(const _0x4294dc of _0x45a441['getSuggestions']())if(('insertion'==_0x4294dc['type']||'deletion'==_0x4294dc['type']||'mergeTableCells'==_0x4294dc['subType'])&&_0x4294dc['isInContent']){for(const _0x36731c of _0x4294dc['getRanges']())_0x36731c['containsRange'](_0x11db9f,!0x0)&&_0x6fbd71['add'](_0x4294dc['type']+':'+_0x4294dc['author']['id']),_0x36731c['containsRange'](_0x27c16d,!0x0)&&_0x5cc2d5['add'](_0x4294dc['type']+':'+_0x4294dc['author']['id']);}if(_0x6fbd71['size']!=_0x5cc2d5['size'])return!0x1;for(const _0x31b656 of _0x6fbd71)if(!_0x5cc2d5['has'](_0x31b656))return!0x1;return!0x0;}}class Ct extends _0x164833{static get['requires'](){return[It];}['afterInit'](){const _0x438079=this['editor'];if(!_0x438079['plugins']['has']('TableEditing'))return;const _0x3daa67=_0x438079['locale'],_0xa45644=_0x438079['plugins']['get']('TrackChangesEditing');_0xa45644['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xa45644['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xa45644['registerBlockAttribute']('headingRows'),_0xa45644['registerBlockAttribute']('headingColumns'),_0xa45644['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3daa67,'FORMAT_HEADER_ROW')),_0xa45644['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3daa67,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x55d87e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23bf54=this['editor']['plugins']['get']('TableUtils'),_0x231572=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2d0675({showActiveMarker:_0x9712c0=!0x0,setDataAttribute:_0x36ae49=!0x0}={}){return(_0x4b318b,_0xed7aaf,_0x41d694)=>{const {type:_0x4c6ed8,id:_0x1ea0ec}=_0x55d87e['_splitMarkerName'](_0xed7aaf['markerName']),_0x11416b=_0x55d87e['getSuggestion'](_0x1ea0ec),_0x23b0df=_0x11416b['data'];if('formatBlock'!=_0x11416b['type']||!_0x23b0df||'setTableColumnHeader'!=_0x23b0df['commandName'])return;if(_0xed7aaf['item'])return void _0x4b318b['stop']();if(!_0x41d694['consumable']['consume'](_0xed7aaf['markerRange'],_0x4b318b['name']))return;const _0x2f3c86=_0xed7aaf['markerRange']['start']['nodeAfter'],_0x4957b4=_0xed7aaf['markerRange']['end']['nodeBefore'],_0x2e15d1=_0x2f3c86['parent']['parent'],{column:_0x3213e4}=_0x23bf54['getCellLocation'](_0x2f3c86),{column:_0x168215}=_0x23bf54['getCellLocation'](_0x4957b4);for(let _0x328813=_0x3213e4;_0x328813<=_0x168215;_0x328813++){const _0x42bd24=_0x23bf54['createTableWalker'](_0x2e15d1,{'column':_0x328813,'includeAllSlots':!0x1});for(const _0x7af33c of _0x42bd24){const _0x5bbaee=_0x7af33c['cell'],_0x46a132=_0x41d694['mapper']['toViewElement'](_0x5bbaee);_0x41d694['writer']['addClass']('ck-suggestion-marker-'+_0x4c6ed8,_0x46a132),_0x36ae49&&_0x41d694['writer']['setAttribute']('data-suggestion',_0x1ea0ec,_0x46a132),_0x41d694['mapper']['bindElementToMarker'](_0x46a132,_0xed7aaf['markerName']),_0x9712c0&&(_0x55d87e['activeMarkers']['includes'](_0xed7aaf['markerName'])?_0x41d694['writer']['addClass']('ck-suggestion-marker--active',_0x46a132):_0x41d694['writer']['removeClass']('ck-suggestion-marker--active',_0x46a132));}}};}_0x55d87e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x231572),_0x55d87e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x231572),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2d0675(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d141a,_0x5b9e5c,_0x2f99a0)=>{_0x2f99a0['options']['showSuggestionHighlights']&&_0x2d0675({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3d141a,_0x5b9e5c,_0x2f99a0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x199bae,_0x475505,_0x392589)=>{const {type:_0x3c6f85,id:_0x317677}=_0x55d87e['_splitMarkerName'](_0x475505['markerName']),_0x346978=_0x55d87e['getSuggestion'](_0x317677),_0x121acc=_0x346978['data'];if('formatBlock'!=_0x346978['type']||!_0x121acc||'setTableColumnHeader'!=_0x121acc['commandName'])return;const _0x3518ea=_0x392589['mapper']['markerNameToElements'](_0x475505['markerName']);if(_0x3518ea){for(const _0xde4997 of _0x3518ea)_0x392589['writer']['removeClass']('ck-suggestion-marker-'+_0x3c6f85,_0xde4997),_0x392589['writer']['removeClass']('ck-suggestion-marker--active',_0xde4997),_0x392589['writer']['removeAttribute']('data-suggestion',_0xde4997),_0x392589['mapper']['unbindElementFromMarkerName'](_0xde4997,_0x475505['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57caf6=this['editor'],_0x55ab97=_0x57caf6['locale'];function _0x3871c7(_0x2ac194){return{'type':'format','content':o(_0x55ab97,'*Format:*\x20%0',_0x2ac194)};}_0x57caf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb7da=>{if('formatBlock'!=_0x2fb7da['type'])return;const {data:_0xfa8ecb}=_0x2fb7da;if(_0xfa8ecb){if('setTableRowHeader'==_0xfa8ecb['commandName']){const _0x2cd934=_0xfa8ecb['commandParams'][0x0]['forceValue'];return _0x3871c7(o(_0x55ab97,_0x2cd934?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xfa8ecb['commandName']){const _0x545ffb=_0xfa8ecb['commandParams'][0x0]['forceValue'];return _0x3871c7(o(_0x55ab97,_0x545ffb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x16e0ba=>[_0x16e0ba,null]));class _t extends _0x164833{static get['requires'](){return[It];}['afterInit'](){const _0x44ef44=this['editor'];if(!_0x44ef44['plugins']['has']('TableClipboard'))return;const _0x519664=_0x44ef44['plugins']['get']('TrackChangesEditing'),_0x3d23e6=_0x44ef44['plugins']['get']('TableUtils'),_0x4d4e26=_0x44ef44['plugins']['get'](It),_0xbcab91=_0x44ef44['plugins']['get']('TableClipboard');_0x4d4e26['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x44ef44['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x44ef44['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x43d361=null;_0x44ef44['model']['on']('insertContent',(_0x331c82,_0x2b99ab)=>{const [_0x3b600b,_0x37ec9d]=_0x2b99ab,_0x8f501d=_0x2b99ab[_0x2b99ab['length']-0x1];_0x8f501d&&_0x8f501d['forceDefaultExecution']||_0x519664['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x11ca2e,_0x260b85,_0x1c58c3,_0x30ac4d,_0x3518ae){if(_0x260b85&&!_0x260b85['is']('documentSelection'))return!0x1;const _0x9763f3=_0x3518ae['getTableIfOnlyTableInContent'](_0x11ca2e,_0x1c58c3);if(!_0x9763f3||!Re(_0x9763f3,void 0x0,_0x30ac4d))return!0x1;const _0x2d9c3c=_0x30ac4d['getSelectionAffectedTableCells'](_0x1c58c3['document']['selection']);if(!_0x2d9c3c['length'])return!0x1;const _0x3a19a5=_0x2d9c3c[0x0]['findAncestor']('table'),_0x2fb20a=_0x30ac4d['getRowIndexes'](_0x2d9c3c),_0x32f6e9=_0x30ac4d['getColumnIndexes'](_0x2d9c3c),_0x3d2027={'startRow':_0x2fb20a['first'],'endRow':_0x2fb20a['last'],'startColumn':_0x32f6e9['first'],'endColumn':_0x32f6e9['last']};return 0x1==_0x2d9c3c['length']&&(_0x3d2027['endRow']+=_0x30ac4d['getRows'](_0x9763f3)-0x1,_0x3d2027['endColumn']+=_0x30ac4d['getColumns'](_0x9763f3)-0x1),Re(_0x3a19a5,_0x3d2027,_0x30ac4d);}(_0x3b600b,_0x37ec9d,_0x44ef44['model'],_0x3d23e6,_0xbcab91)&&(_0x331c82['stop'](),_0x43d361={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x44ef44['model']['change'](()=>{_0x44ef44['model']['insertContent'](_0x2b99ab[0x0],_0x2b99ab[0x1],_0x2b99ab[0x2],{'forceDefaultExecution':!0x0});const _0x24a059=_0x9c8e5f(),{rowInsertionRanges:_0xcbc4cc,columnInsertionRanges:_0x3622f2,insertionRanges:_0x38e323,deletionRanges:_0x44deb3,cells:_0x3c4111}=_0x43d361;_0xcbc4cc['length']&&_0x519664['markMultiRangeInsertion'](_0xcbc4cc,'tablePasteRow',{'tablePasteChainId':_0x24a059}),_0x3622f2['length']&&_0x519664['markMultiRangeInsertion'](_0x3622f2,'tablePasteColumn',{'tablePasteChainId':_0x24a059}),_0x38e323['length']&&(_0x519664['markMultiRangeInsertion'](_0x38e323,'tablePaste',{'tablePasteChainId':_0x24a059,'skipNestingCheck':!0x0}),_0x38e323['forEach'](_0x373fe8=>_0x373fe8['detach']?.())),_0x44deb3['length']&&(_0x519664['markMultiRangeDeletion'](_0x44deb3,'tablePaste',{'tablePasteChainId':_0x24a059,'skipNestingCheck':!0x0}),_0x44deb3['forEach'](_0x2c6ce2=>_0x2c6ce2['detach']?.()));const _0x76bdb1=_0x519664['markMultiRangeBlockFormat'](_0x3c4111['map'](({element:_0x41a5e2})=>_0x41a5e2),{'formatGroupId':_0x9c8e5f()},[],'tablePasteCell',{'tablePasteChainId':_0x24a059});if(_0x76bdb1){const _0x5460e9=_0x76bdb1['getMarkers'](),_0x3aec02=[];for(const {element:_0x1ebcfd,attributes:_0x34edfa}of _0x3c4111){if(!_0x34edfa)continue;const _0x5a5177=_0x44ef44['model']['createRangeOn'](_0x1ebcfd),_0x2de640=_0x5460e9['find'](_0x302e52=>_0x302e52['getRange']()['isEqual'](_0x5a5177));_0x2de640&&_0x3aec02['push']([_0x2de640['name'],_0x34edfa]);}_0x3aec02['length']&&_0x76bdb1['setAttribute']('markerAttributes',Object['fromEntries'](_0x3aec02));}_0x43d361=null;}));},{'priority':_0x6e3e1e['high']+0xa}),_0x44ef44['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x37e82d,_0x2a677e)=>{const [_0x38287d,_0x4be4c7,,_0x5eb309]=_0x2a677e;if(!_0x43d361)return;_0x37e82d['stop']();const _0x3a31f3=_0x38287d['cell'],_0xd79935=_0x4be4c7,_0x3c7477=ke(_0x3a31f3),_0x5e865b=ke(_0xd79935);_0x37e82d['return']=_0x3a31f3;let _0x297100=null,_0x1df29a=null;if(_0x5e865b||_0x3c7477){if(_0x3c7477&&!_0x5e865b){_0x5eb309['remove'](_0x3a31f3['getChild'](0x0));for(const _0x5822f0 of Array['from'](_0xd79935['getChildren']()))_0x5eb309['insert'](_0x5822f0,_0x3a31f3,'end');const _0x31987b=_0x43d361['rowInsertionIndexes']['includes'](_0x38287d['row']),_0x1c59e0=_0x43d361['columnInsertionIndexes']['includes'](_0x38287d['column']);_0x31987b||_0x1c59e0||(_0x297100=_0x3f4d48['fromRange'](_0x5eb309['createRangeIn'](_0x3a31f3)));}else _0x5e865b&&!_0x3c7477&&(_0x1df29a=_0x5eb309['createRangeIn'](_0x3a31f3));}else{const _0x3a1d52=_0x5eb309['createElement']('tableCellSuggestion'),_0x142a1d=_0x5eb309['createElement']('tableCellSuggestion');_0x5eb309['wrap'](_0x5eb309['createRangeIn'](_0x3a31f3),_0x142a1d),_0x5eb309['insert'](_0x3a1d52,_0x3a31f3,0x0);for(const _0x2dfa71 of Array['from'](_0xd79935['getChildren']()))_0x5eb309['insert'](_0x2dfa71,_0x3a1d52,'end');_0x297100=_0x3f4d48['fromRange'](_0x5eb309['createRangeOn'](_0x3a1d52)),_0x1df29a=_0x3f4d48['fromRange'](_0x5eb309['createRangeOn'](_0x142a1d));}const _0x38e34f=Array['from'](_0xd79935['getAttributes']())['filter'](([_0x292a93])=>Pe['includes'](_0x292a93));_0x43d361['cells']['push']({'element':_0x3a31f3,'attributes':_0x38e34f['length']?Object['fromEntries'](_0x38e34f):null}),_0x297100&&_0x43d361['insertionRanges']['push'](_0x297100),_0x1df29a&&_0x43d361['deletionRanges']['push'](_0x1df29a);},{'priority':'high'}),_0x3d23e6['on']('insertColumns',(_0x1848c4,_0x1796f6)=>{const [_0x120fdb,_0x3d391a={}]=_0x1796f6;if(!_0x43d361)return;const _0x3dca30=_0x3d391a['at']||0x0,_0x432fa2=_0x3d391a['columns']||0x1;_0x43d361['columnInsertionIndexes']=new Array(_0x432fa2)['fill'](_0x3dca30)['map']((_0x19bf55,_0x1bee47)=>_0x19bf55+_0x1bee47);for(const {cell:_0x49dbb3}of _0x3d23e6['createTableWalker'](_0x120fdb,{'startColumn':_0x3dca30,'endColumn':_0x3dca30+_0x432fa2-0x1}))_0x43d361['columnInsertionRanges']['push'](_0x44ef44['model']['createRangeOn'](_0x49dbb3));},{'priority':'low'}),_0x3d23e6['on']('insertRows',(_0x55ff52,_0xbfcf51)=>{const [_0x391b66,_0x5420f3={}]=_0xbfcf51;if(!_0x43d361)return;const _0x15d82c=_0x5420f3['at']||0x0,_0x5efd8d=_0x5420f3['rows']||0x1;_0x43d361['rowInsertionIndexes']=new Array(_0x5efd8d)['fill'](_0x15d82c)['map']((_0xd53bca,_0x54e584)=>_0xd53bca+_0x54e584);for(const {cell:_0x35a10c}of _0x3d23e6['createTableWalker'](_0x391b66,{'startRow':_0x15d82c,'endRow':_0x15d82c+_0x5efd8d-0x1}))_0x43d361['rowInsertionRanges']['push'](_0x44ef44['model']['createRangeOn'](_0x35a10c));},{'priority':'low'}),_0x519664['descriptionFactory']['registerDescriptionCallback'](_0x3c8775=>{if(_0x3c8775['subType']&&_0x3c8775['subType']['startsWith']('tablePaste'))return _0x3c8775['previous']?{}:{'type':'insertion','content':o(_0x44ef44['locale'],'*Replace\x20table\x20cells*')};});const _0xfd537f=()=>!0x1;for(const _0x3e6624 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x519664['_suggestionFactory']['registerCustomCallback']('insertion',_0x3e6624,'join',_0xfd537f),_0x519664['_suggestionFactory']['registerCustomCallback']('deletion',_0x3e6624,'join',_0xfd537f),_0x519664['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e6624,'join',_0xfd537f);_0x519664['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xfd537f),_0x519664['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xb0b2aa,_0x51c1c3,_0x45e9ee)=>{const _0x3aa3ec=_0xb0b2aa['map'](_0x4af465=>_0x4af465['getContainedElement']())['filter'](_0xa70ed8=>_0xa70ed8),_0x503468=new Map(_0x3aa3ec['map'](_0x147bad=>[_0x147bad,null]));if(_0x43d361){for(const {element:_0x18335b,attributes:_0x1ed9c2}of _0x43d361['cells'])_0x1ed9c2&&_0x503468['set'](_0x18335b,_0x1ed9c2);}else{if(_0x45e9ee&&_0x45e9ee['markerAttributes'])for(const [_0x9d9e79,_0x563181]of Object['entries'](_0x45e9ee['markerAttributes'])){const _0x579d83=_0x44ef44['model']['markers']['get'](_0x9d9e79),_0x3780bc=_0x579d83?_0x579d83['getRange']()['getContainedElement']():null;_0x3780bc&&_0x503468['set'](_0x3780bc,_0x563181);}}_0x44ef44['model']['change'](_0x236ba9=>{for(const [_0x1333ba,_0x8349f0]of _0x503468)_0x236ba9['setAttributes']({...we,..._0x8349f0},_0x1333ba);});});const _0x122bb9=(_0x2b11b2,_0x50175d)=>{_0x519664['_suggestionFactory']['registerCustomCallback'](_0x2b11b2,'tablePaste',_0x50175d,(_0x324929,_0x217d45,_0x38fb0d)=>{_0x44ef44['model']['change'](_0x2cef5d=>{const _0x4944b7=[];for(const _0x5163c6 of _0x324929){const _0x585530=_0x5163c6['start']['nodeAfter'];_0x585530['is']('element','tableCellSuggestion')&&_0x4944b7['push'](_0x585530);}_0x519664['_suggestionFactory']['getSuggestionCallback'](_0x2b11b2,null,_0x50175d)(_0x324929,_0x217d45,_0x38fb0d);for(const _0x585afd of _0x4944b7)'$graveyard'!=_0x585afd['root']['rootName']&&_0x2cef5d['unwrap'](_0x585afd);});});};_0x122bb9('insertion','accept'),_0x122bb9('insertion','discard'),_0x122bb9('deletion','accept'),_0x122bb9('deletion','discard'),_0x519664['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x469963=>{const _0x1a1f4c=_0x469963['map'](_0x370ea9=>_0x370ea9['getContainedElement']()),_0x6444a7=_0x1a1f4c[0x0]['findAncestor']('table'),{minRow:_0x41b265,maxRow:_0x2df9a1}=_0x4d4e26['_getCoordsForCells'](_0x1a1f4c);_0x3d23e6['removeRows'](_0x6444a7,{'at':_0x41b265,'rows':_0x2df9a1-_0x41b265+0x1});}),_0x519664['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2e2357=>{const _0x1f4945=_0x2e2357['map'](_0x39ee17=>_0x39ee17['getContainedElement']()),_0x4c6dee=_0x1f4945[0x0]['findAncestor']('table'),{minColumn:_0x492a59,maxColumn:_0x58d4f7}=_0x4d4e26['_getCoordsForCells'](_0x1f4945);_0x3d23e6['removeColumns'](_0x4c6dee,{'at':_0x492a59,'columns':_0x58d4f7-_0x492a59+0x1});});const _0x4de9e0=(_0x3f9a25,_0x51f35b)=>{if(!_0x51f35b['subType']||!_0x51f35b['subType']['startsWith']('tablePaste'))return;const _0xcda08b=_0x51f35b['attributes']['tablePasteChainId'],_0x17a254=_0x519664['getSuggestions']()['filter'](_0x201684=>_0x201684['isInContent']&&_0x201684['attributes']&&_0x201684['attributes']['tablePasteChainId']==_0xcda08b);_0x17a254['length']&&_0x51f35b['getAllAdjacentSuggestions']()['length']!=_0x17a254['length']&&_0x17a254['reduce']((_0x39a196,_0x30f8b1)=>(_0x39a196['next']=_0x30f8b1,_0x30f8b1['previous']=_0x39a196,_0x30f8b1));};function _0x27d847(_0x5d4bcb,_0x1e6953=!0x0){const {id:_0x3e4a54,authorId:_0x52225b}=_0x519664['_splitMarkerName'](_0x5d4bcb['markerName']),_0x32b2eb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x547e5c=_0x519664['activeMarkers']['includes'](_0x5d4bcb['markerName']);return _0x547e5c&&_0x32b2eb['push']('ck-suggestion-marker--active'),{'classes':_0x32b2eb,'attributes':{'data-suggestion':_0x3e4a54,'data-author-id':_0x52225b},'priority':_0x547e5c&&_0x1e6953?0xbc2:0xbb8};}_0x519664['on']('suggestionLoaded',_0x4de9e0,{'priority':'high'}),_0x519664['on']('suggestionUnloaded',_0x4de9e0,{'priority':'high'}),_0x44ef44['model']['document']['registerPostFixer'](()=>{let _0x280ad8=!0x1;const _0x30f7d6=Array['from'](_0x44ef44['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c4dde,data:_0x2f0590}of _0x30f7d6){const {group:_0x539e64,type:_0x543bfd,id:_0x5aebf5}=_0x519664['_splitMarkerName'](_0x3c4dde);if('suggestion'!=_0x539e64||'deletion'!=_0x543bfd||_0x2f0590['oldRange'])continue;if(!_0x519664['hasSuggestion'](_0x5aebf5))continue;const _0x5d6746=_0x519664['getSuggestion'](_0x5aebf5)['getRanges'](),_0x4cdc48=_0x44ef44['plugins']['get']('Users')['me'];for(const _0x1c15e7 of _0x519664['getSuggestions']()){if(!_0x1c15e7['isInContent']||_0x1c15e7['author']!=_0x4cdc48)continue;if('formatBlock'!=_0x1c15e7['type']||'tablePasteCell'!=_0x1c15e7['subType'])continue;if(_0x1c15e7['getRanges']()['every'](_0x256461=>_0x5d6746['some'](_0x300604=>_0x300604['containsRange'](_0x256461,!0x0)))){for(const _0x3237f7 of _0x1c15e7['getAllAdjacentSuggestions']())_0x3237f7['isInContent']&&(_0x3237f7['discard'](),_0x280ad8=!0x0);}}}return _0x280ad8;}),_0x44ef44['model']['document']['registerPostFixer'](_0x3e1484=>{const _0xcd0fe0=_0x44ef44['commands']['get']('redo');if(!_0xcd0fe0||!_0xcd0fe0['_createdBatches']['has'](_0x3e1484['batch']))return!0x1;let _0x29a674=!0x1;const _0x16eff4=_0x44ef44['plugins']['get']('Users')['me'],_0x5d6b9b=_0x44ef44['model']['document']['differ']['getChanges'](),_0x28fc23=Array['from'](_0x44ef44['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5cadfa,data:_0x5656c0})=>{const {group:_0x305f5c,subType:_0x9067e9,authorId:_0x31e7e1}=_0x519664['_splitMarkerName'](_0x5cadfa);return'suggestion'==_0x305f5c&&'tablePaste'==_0x9067e9&&_0x31e7e1==_0x16eff4['id']&&!_0x5656c0['oldRange'];});for(const _0x31c1f4 of _0x5d6b9b){if('insert'!=_0x31c1f4['type']||'tableCellSuggestion'!=_0x31c1f4['name']||0x1!=_0x31c1f4['length'])continue;const _0x2f16a2=_0x3e1484['createRange'](_0x31c1f4['position'],_0x31c1f4['position']['getShiftedBy'](0x1));if(!_0x28fc23['find'](({data:_0xefa166})=>_0xefa166['newRange']['isEqual'](_0x2f16a2))){for(const {name:_0x2d7bb0,data:_0x3ba591}of _0x28fc23)if(_0x2f16a2['containsRange'](_0x3ba591['newRange'])){_0x3e1484['updateMarker'](_0x2d7bb0,{'range':_0x2f16a2}),_0x29a674=!0x0;break;}}}return _0x29a674;}),_0x44ef44['model']['document']['registerPostFixer'](_0x5dabf5=>{let _0x3bb5de=!0x1;const _0x5ddaf6=_0x44ef44['plugins']['get']('Users')['me'],_0x44e45c=_0x519664['getSuggestions']()['filter'](_0x3eb30a=>_0x3eb30a['isInContent']&&_0x3eb30a['author']==_0x5ddaf6),_0x392af4=new Set(),_0x49ce4e=new Set();for(const _0x5f3241 of _0x44e45c)if('tablePaste'==_0x5f3241['subType'])for(const _0x32f3bf of _0x5f3241['getMarkers']()){const _0x5adfed=_0x32f3bf['getRange']()['getContainedElement']();if(_0x5adfed){if(_0x5adfed['is']('element','tableCellSuggestion')&&ke(_0x5adfed)){_0x5f3241['removeMarker'](_0x32f3bf['name']),_0x392af4['add'](_0x5adfed),_0x3bb5de=!0x0;const _0x48540a=_0x5adfed['nextSibling'],_0xa47ba9=_0x5adfed['previousSibling'],_0x11f19f=_0x48540a&&_0x48540a['is']('element','tableCellSuggestion'),_0x5c14fc=_0xa47ba9&&_0xa47ba9['is']('element','tableCellSuggestion');_0x11f19f&&!_0x392af4['has'](_0x48540a)&&_0x49ce4e['add'](_0x48540a),_0x5c14fc&&!_0x392af4['has'](_0xa47ba9)&&_0x49ce4e['add'](_0xa47ba9);}else _0x5adfed['is']('element','paragraph')&&_0x5adfed['isEmpty']&&(_0x5f3241['removeMarker'](_0x32f3bf['name']),_0x3bb5de=!0x0);}}else{if('tablePasteCell'==_0x5f3241['subType']){if(!_0x5f3241['attributes']||!_0x5f3241['attributes']['tablePasteChainId'])continue;const _0x38da5a=_0x5f3241['attributes']['markerAttributes'];if(_0x38da5a&&Object['keys'](_0x38da5a)['length'])continue;const _0x30ce9b=_0x5f3241['attributes']['tablePasteChainId'];let _0x2508b3=!0x0,_0x5014b9=!0x0;for(const _0x2f3326 of _0x44e45c)if(_0x2f3326['subType']&&_0x2f3326['subType']['startsWith']('tablePaste')){if(!_0x2f3326['attributes']['tablePasteChainId']){_0x5014b9=!0x1;break;}if(_0x2f3326['id']!=_0x5f3241['id']&&_0x2f3326['attributes']['tablePasteChainId']==_0x30ce9b){_0x2508b3=!0x1;break;}}_0x5014b9&&_0x2508b3&&(_0x5f3241['removeMarkers'](),_0x3bb5de=!0x0);}}for(const _0xf739ad of _0x392af4)_0x5dabf5['remove'](_0xf739ad);for(const _0x300be7 of _0x49ce4e)_0x5dabf5['unwrap'](_0x300be7);return _0x3bb5de;}),_0x44ef44['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x456528,_0x4b139e)=>_0x27d847(_0x456528),'converterPriority':'high'}),_0x44ef44['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x589e63,_0x45af17)=>_0x45af17['options']['showSuggestionHighlights']?_0x27d847(_0x589e63,!0x1):null,'converterPriority':'high'});const _0xf3ef74=_0x44ef44['editing']['view'];this['listenTo'](_0xf3ef74['document'],'clipboardOutput',(_0x1b88a8,_0x5abbc9)=>{const _0x27a44b=[];for(const _0x35e2bc of _0xf3ef74['createRangeIn'](_0x5abbc9['content'])['getItems']())_0x35e2bc['is']('element','suggestion-td')&&_0x27a44b['push'](_0x35e2bc);_0xf3ef74['change'](_0x471812=>{for(const _0x4b69f7 of _0x27a44b)_0x471812['move'](_0x471812['createRangeIn'](_0x4b69f7),_0x471812['createPositionBefore'](_0x4b69f7)),_0x471812['remove'](_0x4b69f7);});});}}function ke(_0x18b989){if(_0x18b989['isEmpty'])return!0x0;const _0xed15d1=_0x18b989['getChild'](0x0);return _0xed15d1['is']('element','paragraph')&&_0xed15d1['isEmpty'];}function Re(_0x167236,_0x3660f3={},_0x21b899){for(const {isAnchor:_0x520141,cellHeight:_0x2fbea9,cellWidth:_0x180bb2}of _0x21b899['createTableWalker'](_0x167236,{'includeAllSlots':!0x0,..._0x3660f3}))if(!_0x520141||0x1!=_0x2fbea9||0x1!=_0x180bb2)return!0x1;return!0x0;}class Nt extends _0x164833{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xffd066=this['editor']['plugins']['get']('TrackChangesEditing');_0xffd066['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xffd066['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xffd066['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xffd066['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xffd066['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xffd066['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1f5126,_0x31299b){const _0x6e7f0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d8f75=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x29f22a=_0x31299b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xa25a98=_0x3d8f75['getColumnGroupElement'](_0x29f22a);let _0x432d5f=_0xa25a98?_0x3d8f75['getTableColumnsWidths'](_0xa25a98):null,_0x56ad66=_0x29f22a['getAttribute']('tableWidth')||null;const _0x177153=_0x31299b['tableWidth']||_0x56ad66,_0x72c398=_0x31299b['columnWidths']||_0x432d5f,_0x346d9f=this['editor']['plugins']['get']('Users')['me'];for(const _0x50d794 of _0x6e7f0e['getSuggestions']()){const _0x1d12a4=_0x50d794['getContainedElement']();if('resizeTable'===_0x50d794['subType']&&_0x1d12a4===_0x29f22a){_0x50d794['author']!==_0x346d9f&&_0x50d794['discard']();const _0x1a293d=_0x50d794['data']['commandParams'];_0x56ad66=_0x1a293d[0x0]['tableWidth'],_0x432d5f=_0x1a293d[0x0]['columnWidths'];break;}}_0x1f5126({'table':_0x29f22a,'tableWidth':_0x177153,'columnWidths':_0x72c398}),_0x6e7f0e['markBlockFormat'](_0x29f22a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x56ad66,'columnWidths':_0x432d5f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2cfd38){if('formatBlock'!=_0x2cfd38['type']&&'formatInline'!=_0x2cfd38['type'])return;const {data:_0x303638}=_0x2cfd38;if(_0x303638&&'resizeTable'===_0x303638['formatGroupId']){const _0x37f53d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x37f53d)};}}}class Dt extends _0x164833{['afterInit'](){const _0x280082=this['editor'];_0x280082['plugins']['has']('Template')&&_0x280082['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x164833{['afterInit'](){const _0x3a4596=this['editor'];if(!_0x3a4596['commands']['get']('insertTableOfContents'))return;_0x3a4596['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x203f77=_0x3a4596['plugins']['get']('TrackChangesEditing'),_0x411cc9=_0x3a4596['locale'];_0x203f77['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5e5b2a=>o(_0x411cc9,'ELEMENT_TABLE_OF_CONTENTS',_0x5e5b2a));}}class $t extends _0x164833{['afterInit'](){const _0x11610b=this['editor'];if(!_0x11610b['plugins']['has']('Title'))return;const _0x5214d1=_0x11610b['plugins']['get']('TrackChangesEditing');_0x5214d1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x11610b['locale'],'ELEMENT_TITLE')),_0x11610b['model']['document']['registerPostFixer'](_0x167212=>{let _0x35972b=!0x1;const _0x3ef807=Array['from'](_0x11610b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c6dbb,data:_0x4eef6e}of _0x3ef807){const {group:_0x14496d}=_0x5214d1['_splitMarkerName'](_0x2c6dbb);if('suggestion'!==_0x14496d||!_0x4eef6e['newRange'])continue;const _0x262c48=_0x4eef6e['newRange'],_0x1d13d2=_0x262c48['end']['nodeBefore'];if(!_0x1d13d2||!_0x1d13d2['is']('element','title-content'))continue;if(!_0x262c48['start']['isTouching'](_0x262c48['end']))continue;const _0x14703b=_0x11610b['model']['schema']['getNearestSelectionRange'](_0x262c48['end'],'forward');if(_0x14703b&&_0x14703b['isCollapsed']){const _0x30700b=_0x167212['createRange'](_0x262c48['start'],_0x14703b['start']);_0x30700b['isEqual'](_0x262c48)||(_0x167212['updateMarker'](_0x2c6dbb,{'range':_0x30700b}),_0x35972b=!0x0);}_0x35972b||(_0x167212['removeMarker'](_0x2c6dbb),_0x35972b=!0x0);}return _0x35972b;});}}class Bt extends _0x164833{['afterInit'](){const _0x4f7419=this['editor'],_0x865d59=_0x4f7419['plugins']['get']('TrackChangesEditing');_0x4f7419['plugins']['has']('UndoEditing')&&(_0x865d59['enableCommand']('undo'),_0x865d59['enableCommand']('redo'));}}class xt extends _0x164833{static get['requires'](){return[It];}['afterInit'](){const _0x2c25c7=this['editor'];if(!_0x2c25c7['plugins']['has']('TableCaptionEditing'))return;_0x2c25c7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x164833{['tableProperties'];['tableCellProperties'];constructor(_0x59786c){super(_0x59786c),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 _0x20be14=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1bb32e of this['tableProperties'])_0x20be14['enableCommand'](_0x1bb32e,(_0x374747,_0xc4cf32)=>{const _0x251420=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1bb32e,[_0x251420],this['tableProperties'],'tableProperties',_0x374747,_0xc4cf32);});_0x20be14['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x20be14['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20be14['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1011dd,_0x5187ff)=>this['handleDiscardAction'](this['tableProperties'],_0x1011dd,_0x5187ff)),_0x20be14['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5f39a1 of this['tableCellProperties'])_0x20be14['enableCommand'](_0x5f39a1,(_0x5762af,_0x6e6b26)=>{const _0x55645f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5f39a1,_0x55645f,this['tableCellProperties'],'tableCellProperties',_0x5762af,_0x6e6b26);});_0x20be14['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x20be14['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20be14['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5e9a9d,_0x231f9f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5e9a9d,_0x231f9f)),_0x20be14['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x20be14['descriptionFactory']['registerDescriptionCallback'](_0x3312a8=>this['handleSuggestionDescription'](_0x3312a8));}['_handlePropertyChange'](_0x1a9064,_0x2597d2,_0x350bf4,_0x594533,_0x228472,_0x8cf4f4){const _0x58ec18=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x8cf4f4['batch'],()=>{for(const _0xd8d089 of _0x2597d2){if(this['_getSuggestion'](_0xd8d089,_0x594533))_0x228472(_0x8cf4f4);else{const _0x7cac56={};for(const _0x13887d of _0x350bf4){const _0x2ccd2f=_0xd8d089['getAttribute'](_0x13887d);void 0x0!==_0x2ccd2f&&(_0x7cac56[_0x13887d]=_0x2ccd2f);}_0x228472(_0x8cf4f4),_0x58ec18['markBlockFormat'](_0xd8d089,{'commandParams':[_0x7cac56]},[],_0x594533);}}});}['handleDiscardAction'](_0x4f0729,_0xd2a568,_0x345e40){const _0x511c70=_0xd2a568[0x0]['start']['nodeAfter'],_0x3fe367=_0x345e40['commandParams'][0x0];this['editor']['model']['change'](_0x15b154=>{for(const _0xe57a48 of _0x4f0729)void 0x0!==_0x3fe367[_0xe57a48]?_0x15b154['setAttribute'](_0xe57a48,_0x3fe367[_0xe57a48],_0x511c70):_0x15b154['removeAttribute'](_0xe57a48,_0x511c70);});}['handleSuggestionDescription'](_0x432f84){if(_0x432f84['data'])switch(_0x432f84['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'](_0x54764c,_0x525d44){const _0x2483bd=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2fe6e9 of _0x2483bd['getSuggestions']({'skipNotAttached':!0x0})){const _0x1f546c=_0x2fe6e9['getContainedElement']();if(_0x2fe6e9['subType']===_0x525d44&&_0x1f546c===_0x54764c)return _0x2fe6e9;}return null;}}const m='$elementName';class p extends _0x164833{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x56d174,_0x446274,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(_0x4fc966){function _0x1f77bf(_0x342853){return _0x342853['map'](_0xb06294=>String['fromCharCode'](_0xb06294))['join']('');}super(_0x4fc966),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3dc190,_0x2f2ac8,_0x1d9db2,_0x9d9241)=>{this['_model']['change'](()=>{for(const _0x8453e6 of[..._0x9d9241,..._0x1d9db2])this['_model']['markers']['has'](_0x8453e6)&&_0x4fc966['editing']['reconvertMarker'](_0x8453e6);});}),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']=_0x4fc966['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(),_0x4fc966['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4fc966['config']['get']('trackChanges.trackFormatChanges'),_0x4fc966['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4fc966['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4fc966,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1f77bf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1f77bf([0x34,0x30,0x34,0x38,0x31,0x36,0x36,0x32]);}['init'](){const _0x45cd0e=this['editor'],_0x39eb52=(_0x2785b3,_0x2774d2)=>{if('attribute'!=_0x2785b3)return'ck-suggestion-marker-'+_0x2785b3;const _0x418b97=_0x2774d2['split']('|')[0x0];return this['_isBlockAttribute'](_0x418b97)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x45cd0e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x279abf=>{const {id:_0x3bc0f5,authorId:_0x2f74b9,type:_0x1c6f1e,subType:_0x36d9e3}=this['_splitMarkerName'](_0x279abf['markerName']),_0x279ec4=['ck-suggestion-marker',_0x39eb52(_0x1c6f1e,_0x36d9e3)];let _0x462ad3=0xbb8;return this['activeMarkers']['includes'](_0x279abf['markerName'])&&(_0x279ec4['push']('ck-suggestion-marker--active'),_0x462ad3=0xbc2),'deletion'==_0x1c6f1e&&(_0x462ad3+=0x5),{'classes':_0x279ec4,'attributes':{'data-suggestion':_0x3bc0f5,'data-author-id':_0x2f74b9},'priority':_0x462ad3};}}),_0x45cd0e['conversion']['for']('dataDowncast')['add'](_0x2da8a1=>{_0x2da8a1['on']('addMarker:suggestion',(_0x3cbfc9,_0x1e7632,_0x210085)=>{if(!_0x210085['options']['showSuggestionHighlights'])return;const _0x36250f=_0x1e7632['item'];if(!_0x36250f)return;const _0x5217e0=_0x210085['mapper']['toViewElement'](_0x36250f);_0x45cd0e['model']['schema']['isObject'](_0x36250f)&&_0x5217e0&&!_0x5217e0['getCustomProperty']('widget')&&_0x5217e0['is']('containerElement')&&_0x1ff4e4(_0x5217e0,_0x210085['writer']);},{'priority':'high'});}),_0x45cd0e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x131cc1,_0x464bef)=>{if(!_0x464bef['options']['showSuggestionHighlights'])return null;const {type:_0xa6a5b4,subType:_0x2c34f8}=this['_splitMarkerName'](_0x131cc1['markerName']);return{'classes':['ck-suggestion-marker',_0x39eb52(_0xa6a5b4,_0x2c34f8)],'priority':0xbb8};}});const _0x84e953=({showActiveMarkers:_0x2869ff=!0x0,isAttributeSuggestion:_0x53812b=!0x1}={})=>(_0x2d7727,_0x3c6d19,_0x28f5b9)=>{if(!_0x3c6d19['item'])return;const {id:_0x7798c3,authorId:_0x247631}=this['_splitMarkerName'](_0x3c6d19['markerName']);if(_0x53812b){const _0x17a472=this['_suggestions']['get'](_0x7798c3),_0x3a3f1a=this['_getAttributeKey'](_0x17a472);if(!this['_isBlockAttribute'](_0x3a3f1a))return;}if(_0x3c6d19['item']['is']('selection'))return void _0x28f5b9['consumable']['consume'](_0x3c6d19['item'],_0x2d7727['name']);const _0x2edc96=_0x28f5b9['mapper']['toViewElement'](_0x3c6d19['item']);if(_0x3c6d19['item']['is']('element')&&_0x45cd0e['model']['schema']['isBlock'](_0x3c6d19['item'])&&!_0x2edc96['getCustomProperty']('addHighlight')){_0x28f5b9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2edc96),_0x28f5b9['writer']['setAttribute']('data-suggestion',_0x7798c3,_0x2edc96),_0x28f5b9['writer']['setAttribute']('data-author-id',_0x247631,_0x2edc96),_0x28f5b9['mapper']['bindElementToMarker'](_0x2edc96,_0x3c6d19['markerName']),_0x2869ff&&(this['activeMarkers']['includes'](_0x3c6d19['markerName'])?_0x28f5b9['writer']['addClass']('ck-suggestion-marker--active',_0x2edc96):_0x28f5b9['writer']['removeClass']('ck-suggestion-marker--active',_0x2edc96));for(const _0x10eb31 of _0x45cd0e['model']['createRangeIn'](_0x3c6d19['item'])['getItems']())_0x28f5b9['consumable']['consume'](_0x10eb31,_0x2d7727['name']);_0x28f5b9['consumable']['consume'](_0x3c6d19['item'],_0x2d7727['name']);}};_0x45cd0e['conversion']['for']('dataDowncast')['add'](_0x7af265=>{_0x7af265['on']('addMarker:suggestion:formatBlock',(_0x2b8860,_0x734672,_0x21b4fa)=>{_0x21b4fa['options']['showSuggestionHighlights']&&_0x84e953({'showActiveMarkers':!0x1})(_0x2b8860,_0x734672,_0x21b4fa);},{'priority':'highest'});}),_0x45cd0e['conversion']['for']('dataDowncast')['add'](_0x1172cf=>{_0x1172cf['on']('addMarker:suggestion:attribute',(_0x219629,_0x395541,_0x1df80c)=>{_0x1df80c['options']['showSuggestionHighlights']&&_0x84e953({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x219629,_0x395541,_0x1df80c);},{'priority':'highest'});}),_0x45cd0e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x133742,_0x28e24a)=>_0x28e24a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x133742['substr'](0xb)}}),_0x45cd0e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x46bcf9,{writer:_0x466888})=>{let _0x54a7a9='suggestion:'+_0x46bcf9['getAttribute']('suggestion-type')+':'+_0x46bcf9['getAttribute']('id');return _0x46bcf9['getAttribute']('marker-count')&&(_0x54a7a9+=':'+_0x46bcf9['getAttribute']('marker-count')),_0x466888['createElement']('$marker',{'data-name':_0x54a7a9});}}),_0x45cd0e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x45cd0e['conversion']['for']('editingDowncast')['add'](_0x53a402=>{_0x53a402['on']('addMarker:suggestion:formatBlock',_0x84e953(),{'priority':'high'});}),_0x45cd0e['conversion']['for']('editingDowncast')['add'](_0xff642a=>{_0xff642a['on']('addMarker:suggestion:attribute',_0x84e953({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x45cd0e['conversion']['for']('editingDowncast')['add'](_0x7dc8f9=>{_0x7dc8f9['on']('removeMarker:suggestion:formatBlock',(_0x5af018,_0x2cd2a5,_0x1f8a64)=>{const _0x29f738=_0x1f8a64['mapper']['markerNameToElements'](_0x2cd2a5['markerName']);if(_0x29f738){for(const _0x5598c4 of _0x29f738)_0x5598c4['getCustomProperty']('addHighlight')||(_0x1f8a64['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5598c4),_0x1f8a64['writer']['removeAttribute']('data-suggestion',_0x5598c4),_0x1f8a64['writer']['removeAttribute']('data-author-id',_0x5598c4),_0x1f8a64['mapper']['unbindElementFromMarkerName'](_0x5598c4,_0x2cd2a5['markerName']));}},{'priority':'high'});}),_0x45cd0e['conversion']['for']('editingDowncast')['add'](_0x32c9ac=>{_0x32c9ac['on']('removeMarker:suggestion:attribute',(_0x115e79,_0x3f6243,_0x31bf31)=>{const _0x40b151=_0x31bf31['mapper']['markerNameToElements'](_0x3f6243['markerName']);if(!_0x40b151)return;const {id:_0x4bc710}=this['_splitMarkerName'](_0x3f6243['markerName']),_0x19288b=this['_suggestions']['get'](_0x4bc710),_0x345734=this['_getAttributeKey'](_0x19288b);if(this['_isBlockAttribute'](_0x345734)){for(const _0x451a5c of _0x40b151)_0x451a5c['getCustomProperty']('addHighlight')||(_0x31bf31['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x451a5c),_0x31bf31['writer']['removeAttribute']('data-suggestion',_0x451a5c),_0x31bf31['writer']['removeAttribute']('data-author-id',_0x451a5c),_0x31bf31['mapper']['unbindElementFromMarkerName'](_0x451a5c,_0x3f6243['markerName']));}},{'priority':'high'});}),_0x45cd0e['model']['document']['registerPostFixer'](_0x13621b=>{let _0x34b5b4=!0x1;const _0xed50b2=Array['from'](_0x45cd0e['model']['document']['differ']['getChangedMarkers']()),_0x1571dc=new Set();for(const {name:_0x2daf8b,data:_0x387813}of _0xed50b2){const {group:_0x28c974,type:_0x120bd5,subType:_0x3d75f1,id:_0x26d2f4}=this['_splitMarkerName'](_0x2daf8b);if('suggestion'!==_0x28c974)continue;const _0x5def69=this['_suggestions']['get'](_0x26d2f4);if(null!=_0x387813['newRange']){'formatInline'==_0x120bd5&&(_0x34b5b4=_0x34b5b4||Ut(_0x387813['newRange'],_0x2daf8b,_0x13621b,_0x45cd0e['model']['schema']));const _0x1048c4='attribute'==_0x120bd5&&this['_isBlockAttribute'](_0x3d75f1['split']('|')[0x0]);if(_0x387813['newRange']['isCollapsed']||'$graveyard'==_0x387813['newRange']['root']['rootName']||'formatBlock'==_0x120bd5&&!Ft(_0x387813['newRange'])||_0x1048c4&&!Ft(_0x387813['newRange'])||'deletion'==_0x120bd5&&!(!Vt(_0x4c9474=_0x387813['newRange'])&&!function(_0x1e4e1c){return _0x1e4e1c['start']['parent']==_0x1e4e1c['end']['nodeBefore']&&_0x1e4e1c['start']['isAtEnd'];}(_0x4c9474)))_0x13621b['removeMarker'](_0x2daf8b),_0x34b5b4=!0x0;else{if(!_0x5def69||!_0x5def69['isInContent'])continue;if(_0x387813['newRange']&&_0x387813['oldRange']&&_0x387813['newRange']['isEqual'](_0x387813['oldRange']))continue;_0x1571dc['add'](_0x5def69);}}}var _0x4c9474;return _0x1571dc['size']>0x0&&(_0x34b5b4=!!this['_joinWithAdjacentSuggestions'](_0x1571dc)||_0x34b5b4),_0x34b5b4;}),_0x45cd0e['model']['document']['registerPostFixer'](_0x321f69=>{let _0x872002=!0x1;for(const _0x4fd26a of _0x45cd0e['model']['document']['differ']['getChanges']())if('insert'==_0x4fd26a['type'])for(const _0x4e5994 of this['_suggestions']['values']()){if(_0x4e5994['isMultiRange']||!_0x4e5994['isInContent'])continue;const _0x278f1b='formatBlock'==_0x4e5994['type'],_0x21968e=this['_getAttributeKey'](_0x4e5994),_0x54f296=_0x21968e&&this['_isBlockAttribute'](_0x21968e);if(!_0x278f1b&&!_0x54f296)continue;const _0x3a3167=_0x4e5994['getFirstRange']();if(_0x3a3167['start']['parent']!=_0x3a3167['end']['parent']&&!_0x3a3167['end']['isAtEnd']){const _0x399248=_0x45cd0e['model']['createPositionAt'](_0x3a3167['start']['nodeAfter'],'end'),_0x5e01e4=_0x45cd0e['model']['createRange'](_0x3a3167['start'],_0x399248);_0x321f69['updateMarker'](_0x4e5994['getFirstMarker'](),{'range':_0x5e01e4}),_0x872002=!0x0;}}return _0x872002;}),_0x45cd0e['model']['document']['registerPostFixer'](_0x28f106=>this['_processAttributeChanges'](_0x28f106)),_0x45cd0e['model']['document']['registerPostFixer'](_0xa32c68=>!_0xa32c68['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa32c68)),_0x45cd0e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x45cd0e['model']['document']['on']('change:data',(_0x14eac3,_0x704fe4)=>{if(!_0x704fe4['isLocal']||_0x704fe4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x434caa=_0x45cd0e['model']['document']['differ']['getChanges']();if(0x0==_0x434caa['length'])return;const _0x3c52dd=[],_0x58364a=_0x434caa['filter'](_0x20592d=>'attribute'==_0x20592d['type']),_0x5eb8af=_0x434caa['filter'](_0x1b7d31=>'insert'==_0x1b7d31['type']&&'$text'!=_0x1b7d31['name']);for(const _0x52b7cf of _0x58364a)this['_isRegisteredAttribute'](_0x52b7cf['attributeKey'])&&_0x3c52dd['push']({'key':_0x52b7cf['attributeKey'],'newValue':_0x52b7cf['attributeNewValue'],'oldValue':_0x52b7cf['attributeOldValue'],'range':Pt(_0x52b7cf['range'],_0x45cd0e['model'])});for(const _0x772738 of _0x5eb8af){if('rename'!=_0x772738['action']&&'refresh'!=_0x772738['action'])continue;const _0x5b0f03=Lt(_0x772738['position']['nodeAfter'],_0x45cd0e['model']),_0x1e5399=_0x772738['before'];'rename'==_0x772738['action']&&_0x3c52dd['push']({'key':m,'newValue':_0x772738['name'],'oldValue':_0x1e5399['name'],'range':_0x5b0f03});for(const [_0x47da8d,_0x2e2182]of _0x1e5399['attributes']){if(!this['_isRegisteredAttribute'](_0x47da8d))continue;const _0x380121=_0x772738['attributes']['get'](_0x47da8d);_0x2e2182!==_0x380121&&_0x3c52dd['push']({'key':_0x47da8d,'newValue':_0x380121,'oldValue':_0x2e2182,'range':_0x5b0f03});}for(const [_0x2291a2,_0x5d4fa9]of _0x772738['attributes'])this['_isRegisteredAttribute'](_0x2291a2)&&(_0x1e5399['attributes']['has'](_0x2291a2)||_0x3c52dd['push']({'key':_0x2291a2,'newValue':_0x5d4fa9,'oldValue':null,'range':_0x5b0f03}));}0x0!=_0x3c52dd['length']&&_0x45cd0e['model']['enqueueChange'](_0x704fe4,_0x2838a9=>{const _0x1302a7=_0x9c8e5f();for(const {range:_0x482580,key:_0x37a33d,oldValue:_0x3b92af,newValue:_0x596d09}of _0x3c52dd)this['markAttributeChange'](_0x482580,_0x37a33d,_0x3b92af,_0x596d09,{'groupId':_0x1302a7});this['_reduceExistingSuggestions'](_0x2838a9,_0x3c52dd);});},{'priority':'lowest'}),_0x45cd0e['model']['markers']['on']('update:suggestion',(_0x16167d,_0x5102f9,_0x1d50ec)=>{if(null==_0x1d50ec){const {id:_0x337db6}=this['_splitMarkerName'](_0x5102f9['name']),_0x1a2a7a=this['_suggestions']['get'](_0x337db6);_0x1a2a7a&&_0x1a2a7a['addMarkerName'](_0x5102f9['name']);}}),_0x45cd0e['model']['document']['on']('change:data',()=>{const _0x359568=Array['from'](_0x45cd0e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x132217=>'suggestion'===this['_splitMarkerName'](_0x132217['name'])['group']);if(0x0===_0x359568['length'])return;_0x359568['sort']((_0x38ae66,_0x594962)=>{const _0xcf47a0=_0x38ae66['data']['oldRange'],_0x9444c7=_0x594962['data']['oldRange'];return null===_0xcf47a0&&null===_0x9444c7?0x0:null===_0xcf47a0&&null!==_0x9444c7?-0x1:null!==_0xcf47a0&&null===_0x9444c7?0x1:_0xcf47a0['start']['isBefore'](_0x9444c7['start'])?-0x1:0x1;});const _0x3aa799=new Set(),_0x1628a6=new Set();for(const {name:_0x1fcd7a,data:_0x5c3a97}of _0x359568){const {id:_0x3a2d77}=this['_splitMarkerName'](_0x1fcd7a);if(null===_0x5c3a97['oldRange']){const _0x2392fd=this['_handleNewSuggestionMarker'](_0x1fcd7a);_0x1628a6['add'](_0x2392fd);}else{const _0x26998d=this['_suggestions']['get'](_0x3a2d77);null!==_0x5c3a97['newRange']||_0x26998d['isInContent']?(_0x3aa799['add'](_0x26998d['head']),_0x1628a6['add'](_0x26998d)):this['_removeSuggestion'](_0x26998d);}}_0x1628a6['size']>0x0&&this['_refreshSuggestionsChain'](_0x1628a6);for(const _0x43ecc1 of _0x3aa799)this['fire']('suggestionChanged',_0x43ecc1);}),_0x45cd0e['model']['on']('applyOperation',(_0x222d05,_0x2f21e9)=>{const _0x27041d=_0x2f21e9[0x0];if(!this['_suggestions']['size'])return;if(!_0x27041d['isDocumentOperation'])return;if(_0x27041d['batch']['isUndo']||!_0x27041d['batch']['isLocal'])return;let _0x44ffae,_0x39ee5b;switch(_0x27041d['type']){case'insert':_0x44ffae=_0x45cd0e['model']['createPositionAt'](_0x27041d['position']),_0x39ee5b=_0x44ffae['getShiftedBy'](_0x27041d['howMany']);break;case'split':_0x44ffae=_0x45cd0e['model']['createPositionAt'](_0x27041d['splitPosition']),_0x39ee5b=_0x45cd0e['model']['createPositionAt'](_0x27041d['moveTargetPosition']);break;case'move':_0x44ffae=_0x45cd0e['model']['createPositionAt'](_0x27041d['targetPosition']),_0x39ee5b=_0x44ffae['getShiftedBy'](_0x27041d['howMany']);break;default:return;}const _0x5123b3=_0x45cd0e['model']['createRange'](_0x44ffae,_0x39ee5b);_0x45cd0e['model']['change'](()=>{for(const {suggestion:_0x3a3a4c,meta:_0x9d6db3}of this['_findSuggestions'](_0x5123b3)){if(_0x3a3a4c['isMultiRange'])continue;if('formatInline'==_0x3a3a4c['type'])continue;const _0xafc828=this['_getAttributeKey'](_0x3a3a4c);if(_0xafc828&&this['_isBlockAttribute'](_0xafc828)&&'split'!=_0x27041d['type'])continue;const _0x5cb92b=_0x3a3a4c['data']&&_0x3a3a4c['data']['multipleBlocks'];('formatBlock'!=_0x3a3a4c['type']||'split'==_0x27041d['type']&&!_0x5cb92b)&&(_0x9d6db3['containsRangeInObject']||'insertion'==_0x3a3a4c['type']&&_0x9d6db3['isOwn']||_0x3a3a4c['getFirstRange']()['containsRange'](_0x5123b3)&&this['_breakSuggestionMarker'](_0x3a3a4c,_0x44ffae,_0x39ee5b));}});},{'priority':'lowest'}),_0x45cd0e['model']['on']('deleteContent',(_0x5af100,_0x56d774)=>{const _0x1a0d06=_0x56d774[0x0],_0x19ba0a=_0x56d774[0x1];if(_0x19ba0a&&_0x19ba0a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1a0d06['isCollapsed'])return;const _0x14b33a=_0x45cd0e['model']['schema'],{start:_0x18da23,end:_0x36e12d}=_0x1a0d06['getFirstRange'](),_0x2fb2bd=_0x18da23['nodeAfter']&&_0x14b33a['isLimit'](_0x18da23['nodeAfter'])?null:_0x14b33a['getNearestSelectionRange'](_0x18da23,'forward'),_0x251e0f=_0x36e12d['nodeBefore']&&_0x14b33a['isLimit'](_0x36e12d['nodeBefore'])?null:_0x14b33a['getNearestSelectionRange'](_0x36e12d,'backward'),_0x588bac=_0x45cd0e['model']['createRange'](_0x2fb2bd?_0x2fb2bd['start']:_0x18da23,_0x251e0f?_0x251e0f['end']:_0x36e12d);_0x45cd0e['model']['change'](_0x38026f=>{this['markDeletion'](_0x588bac);const _0x95f3af=_0x45cd0e['model']['schema']['getNearestSelectionRange'](_0x588bac['start']);_0x1a0d06['is']('documentSelection')?_0x38026f['setSelection'](_0x95f3af):_0x1a0d06['setTo'](_0x95f3af);}),_0x5af100['stop']();},{'priority':_0x6e3e1e['normal']+0xa}),_0x45cd0e['model']['on']('insertContent',(_0x54ac3b,_0x3cc619)=>{const _0x531073=_0x3cc619[_0x3cc619['length']-0x1];_0x531073&&_0x531073['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45cd0e['model']['change'](()=>{let _0x4e4e75=_0x45cd0e['model']['insertContent'](_0x3cc619[0x0],_0x3cc619[0x1],_0x3cc619[0x2],{'forceDefaultExecution':!0x0});if(!_0x4e4e75)return;_0x54ac3b['return']=_0x4e4e75['clone']();const _0x2f7ed4=_0x4e4e75['end']['nodeBefore'],_0x5e7a1a=_0x45cd0e['model']['schema'];_0x2f7ed4&&_0x5e7a1a['isBlock'](_0x2f7ed4)&&!_0x5e7a1a['isObject'](_0x2f7ed4)&&(_0x4e4e75=_0x45cd0e['model']['createRange'](_0x4e4e75['start'],_0x45cd0e['model']['createPositionAt'](_0x2f7ed4,'end'))),this['markInsertion'](_0x4e4e75);}),_0x54ac3b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x361892=new x(_0x45cd0e,this['_suggestions']);_0x45cd0e['commands']['add']('acceptSuggestion',_0x361892),this['enableCommand']('acceptSuggestion');const _0x2d155f=new R(_0x45cd0e,this['_suggestions']);_0x45cd0e['commands']['add']('discardSuggestion',_0x2d155f),this['enableCommand']('discardSuggestion'),_0x45cd0e['commands']['add']('acceptAllSuggestions',new E(_0x45cd0e,_0x361892,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x45cd0e['commands']['add']('discardAllSuggestions',new E(_0x45cd0e,_0x2d155f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x45cd0e['commands']['add']('acceptSelectedSuggestions',new O(_0x45cd0e,_0x361892,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x45cd0e['commands']['add']('discardSelectedSuggestions',new O(_0x45cd0e,_0x2d155f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2dbd17=_0x45cd0e['plugins']['get']('CommentsRepository');this['listenTo'](_0x2dbd17,'addComment',(_0x5c8080,{threadId:_0x284a98})=>{const _0x11ae92=this['_suggestions']['get'](_0x284a98);_0x11ae92&&_0x11ae92['commentThread']&&0x1===_0x11ae92['commentThread']['length']&&this['_updateSuggestionData'](_0x284a98,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2dbd17,'removeComment',(_0x1e872f,{threadId:_0x2e6f81})=>{const _0x195fc4=this['_suggestions']['get'](_0x2e6f81);_0x195fc4&&_0x195fc4['commentThread']&&!_0x195fc4['commentThread']['length']&&this['_updateSuggestionData'](_0x2e6f81,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x473522){if(this['_adapter'])throw new _0xa2aa4e('track-changes-adapter-already-set',this);this['_adapter']=_0x473522;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x189132=!0x1,toJSON:_0xbafb61=!0x1}={}){const _0x576d71=[];for(const _0x5e7244 of this['_suggestions']['values']())_0x189132&&!_0x5e7244['isInContent']||_0x576d71['push'](_0x5e7244);return _0xbafb61?_0x576d71['map'](_0x310353=>_0x310353['toJSON']()):_0x576d71;}['getSuggestion'](_0x92d6eb){const _0x260ff2=this['_suggestions']['get'](_0x92d6eb);if(!_0x260ff2)throw new _0xa2aa4e('track-changes-suggestion-not-found',this);return _0x260ff2;}['hasSuggestion'](_0x5e0c7e){return this['_suggestions']['has'](_0x5e0c7e);}['addSuggestionData'](_0x28ba34){const {authorId:_0x1010db,id:_0x22612e,attributes:_0x44598e}=_0x28ba34,[_0x37faf5,_0x5ef221]=_0x28ba34['type']['split'](':'),_0x105c8f=this['_suggestions']['get'](_0x22612e)||this['_createSuggestion'](_0x37faf5,_0x5ef221,_0x22612e,_0x1010db,_0x44598e);if(this['_addThreadToSuggestion'](_0x105c8f),this['_checkSuggestionCorrectness'](_0x105c8f,_0x37faf5,_0x5ef221||null,_0x1010db),_0x105c8f['createdAt']=_0x28ba34['createdAt'],_0x105c8f['_isDataLoaded']=!0x0,_0x44598e&&_0x44598e['@external']){const _0x412a23=_0x44598e['@external'],_0x4a2ecd=this['_getExternalAuthor'](_0x412a23['authorName']);_0x105c8f['authoredAt']=_0x412a23['createdAt'],_0x105c8f['author']=_0x4a2ecd,_0x105c8f['isExternal']=!0x0;}else _0x105c8f['authoredAt']=_0x28ba34['createdAt'];switch(_0x28ba34['data']&&(_0x105c8f['data']=_0x28ba34['data']),_0x28ba34['attributes']&&(_0x105c8f['attributes']=_0x28ba34['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x105c8f['_saved']=!0x0),this['_suggestionState']['get'](_0x105c8f)){case'notReady':this['_suggestionState']['set'](_0x105c8f,'dataReady');break;case'markerReady':_0x105c8f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x105c8f])),this['_refreshSuggestionsChain'](new Set([_0x105c8f])),this['_suggestionState']['set'](_0x105c8f,'ready'),this['fire']('suggestionLoaded',_0x105c8f)):this['_suggestionState']['set'](_0x105c8f,'removed');}return _0x105c8f;}['acceptSuggestion'](_0x3f2242){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c8eac of _0x3f2242['getAllAdjacentSuggestions']())_0x2c8eac['accept']();});});}['discardSuggestion'](_0x477301){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf69af5 of _0x477301['getAllAdjacentSuggestions']())_0xf69af5['discard']();});});}['enableCommand'](_0x35feac,_0x27e120){const _0x145be9=this['editor']['commands']['get'](_0x35feac);if(!_0x145be9)throw new _0xa2aa4e('track-changes-command-not-found',this,{'commandName':_0x35feac});if(this['_enabledCommands']['has'](_0x145be9))throw new _0xa2aa4e('track-changes-enable-command-twice',this,{'commandName':_0x35feac});this['_enabledCommands']['add'](_0x145be9),_0x27e120&&_0x145be9['on']('execute',(_0x2fc8dc,_0x4d403b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d403b['length']>0x0&&_0x4d403b[_0x4d403b['length']-0x1]&&_0x4d403b[_0x4d403b['length']-0x1]['forceDefaultExecution']?_0x4d403b['pop']():(_0x2fc8dc['return']=_0x27e120((..._0x39f2de)=>_0x145be9['execute'](..._0x39f2de,{'forceDefaultExecution':!0x0}),..._0x4d403b),_0x2fc8dc['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x217377){let _0x3ff1d5,_0x3ba1ba;const _0xd70ace=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3ff1d5=_0x217377();}catch(_0x542ce2){_0x3ba1ba=_0x542ce2;}return _0xd70ace||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ba1ba&&_0xa2aa4e['rethrowUnexpectedError'](_0x3ba1ba,this),_0x3ff1d5;}['markInsertion'](_0x3fb194,_0x18eb07=null,_0x82d7e2={}){if(_0x3fb194['isCollapsed'])return null;const _0x3c8ae8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x34329e,meta:_0x3f4bea}of this['_findSuggestions'](_0x3fb194,'insertion'))if(_0x3f4bea['isOwn']){if(!_0x3f4bea['isNextTo']){if(_0x3f4bea['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x34329e,_0x82d7e2))continue;return _0x34329e;}if(qt(_0x34329e,_0x82d7e2))return _0x34329e;this['_breakSuggestionMarker'](_0x34329e,_0x3fb194['start'],_0x3fb194['end']);break;}if(_0x18eb07==_0x34329e['subType']&&qt(_0x34329e,_0x82d7e2)){const _0xebe3ec=_0x34329e['getFirstRange']();return _0xebe3ec['start']['isEqual'](_0x3fb194['end'])?this['_setSuggestionRange'](_0x34329e,this['_model']['createRange'](_0x3fb194['start'],_0xebe3ec['end'])):this['_setSuggestionRange'](_0x34329e,this['_model']['createRange'](_0xebe3ec['start'],_0x3fb194['end'])),_0x34329e;}}const _0x3ae61e=_0x9c8e5f(),_0xbf9614=_0x3c8ae8['id'],_0x581698=_0x18eb07?'insertion:'+_0x18eb07:'insertion',_0x1a52e8=this['_setSuggestionData']({'id':_0x3ae61e,'type':_0x581698,'createdAt':new Date(),'authorId':_0xbf9614,'attributes':_0x82d7e2});return this['_addSuggestionMarker'](_0x581698,_0x3ae61e,_0xbf9614,_0x3fb194),_0x1a52e8;}['markMultiRangeInsertion'](_0x5edeec,_0x1cb26a='multi',_0x2cb9dc={}){const _0x20b71a=this['editor']['plugins']['get']('Users')['me'],_0x533ab7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1cb26a,'join');for(const _0x304305 of this['getSuggestions']())if(_0x304305['author']['id']==_0x20b71a['id']&&'insertion'==_0x304305['type']&&_0x304305['subType']==_0x1cb26a&&qt(_0x304305,_0x2cb9dc)&&(_0x533ab7(_0x304305['getRanges'](),_0x5edeec)||_0x533ab7(_0x5edeec,_0x304305['getRanges']()))){for(const _0x2819d2 of _0x5edeec)_0x304305['addRange'](_0x2819d2);return _0x304305;}for(const {suggestion:_0x82af92,meta:_0x2736ff}of this['_findSuggestions'](_0x5edeec,'insertion')){if(!_0x2736ff['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2736ff['containsRangeInObject'])continue;if(!qt(_0x82af92,_0x2cb9dc))continue;let _0x4bfc5f=!0x0;for(const _0x18b13d of _0x82af92['getRanges']())for(const _0x56894f of _0x5edeec)if(!_0x18b13d['containsRange'](_0x56894f)){_0x4bfc5f=!0x1;break;}if(_0x4bfc5f)return _0x82af92;}const _0x1abe9d=_0x9c8e5f(),_0x25304b=_0x20b71a['id'],_0x1ba5a5='insertion:'+_0x1cb26a,_0x289a0a=this['_setSuggestionData']({'id':_0x1abe9d,'type':_0x1ba5a5,'createdAt':new Date(),'authorId':_0x25304b,'attributes':_0x2cb9dc});for(const _0x5eb58f of _0x5edeec)this['_addSuggestionMarker'](_0x1ba5a5,_0x1abe9d,_0x25304b,_0x5eb58f,u['getMultiRangeId']());return _0x289a0a;}['markInlineFormat'](_0x21aef2,_0x52e6e1,_0x53f793=null,_0x57473e={}){if(_0x53f793=_0x53f793||Gt(_0x52e6e1),_0x21aef2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1ff233=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53f793,'accept');return this['forceDefaultExecution'](()=>_0x1ff233([_0x21aef2],_0x52e6e1,_0x57473e)),null;}const _0x4a6f2b=this['editor']['plugins']['get']('Users')['me'],_0x4cbb63=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa94988,meta:_0x9b9f0d}of this['_findSuggestions'](_0x21aef2,'insertion'))_0x9b9f0d['isOwn']&&!_0x9b9f0d['isInsideObject']&&_0x4cbb63['push'](..._0xa94988['getRanges']());}const _0x5c3dce=function(_0x47c312,_0x23544d){const _0x22e4ee=[];for(const _0x2f6b6d of _0x23544d){const _0x1c6114=_0x47c312['getIntersection'](_0x2f6b6d);_0x1c6114&&_0x22e4ee['push'](_0x1c6114);}return _0x22e4ee;}(_0x21aef2,_0x4cbb63),_0x2a5651=function(_0x5671bb,_0x3a8637){const _0x3df184=[_0x5671bb];for(const _0x2c2de4 of _0x3a8637){let _0x43bbee=0x0;for(;_0x43bbee<_0x3df184['length'];){const _0x3dced8=_0x3df184[_0x43bbee]['getDifference'](_0x2c2de4);_0x3df184['splice'](_0x43bbee,0x1,..._0x3dced8),_0x43bbee+=_0x3dced8['length'];}}return _0x3df184;}(_0x21aef2,_0x4cbb63);_0x5c3dce['length']&&this['_model']['change'](()=>{for(const _0x31b471 of _0x5c3dce){const _0x1ffe9e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53f793,'accept');this['forceDefaultExecution'](()=>_0x1ffe9e([_0x31b471],_0x52e6e1,_0x57473e));}});for(const _0x43b3b4 of _0x2a5651){let _0x1ace65=null,_0x249730=_0x43b3b4['start'],_0x3c18b1=_0x43b3b4['end'];for(const {suggestion:_0x52b027,meta:_0x4914aa}of this['_findSuggestions'](_0x43b3b4,'formatInline')){if(!_0x4914aa['isOwn'])continue;if(_0x52b027['subType']!=_0x53f793)continue;if(!qt(_0x52b027,_0x57473e))continue;const _0x1353c6=_0x52b027['getFirstRange']();if(_0x1353c6['containsRange'](_0x43b3b4,!0x0))return null;_0x249730=_0x249730['isBefore'](_0x1353c6['start'])?_0x249730:_0x1353c6['start'],_0x3c18b1=_0x3c18b1['isAfter'](_0x1353c6['end'])?_0x3c18b1:_0x1353c6['end'],_0x1ace65?_0x1353c6['start']['isBefore'](_0x1ace65['getFirstRange']()['start'])?(_0x1ace65['removeMarkers'](),_0x1ace65=_0x52b027):_0x52b027['removeMarkers']():_0x1ace65=_0x52b027;}const _0x221dd2=this['_model']['createRange'](_0x249730,_0x3c18b1);if(_0x1ace65)this['_setSuggestionRange'](_0x1ace65,_0x221dd2);else{const _0x5dde24=_0x9c8e5f(),_0x57978d=_0x4a6f2b['id'];this['_setSuggestionData']({'id':_0x5dde24,'type':'formatInline:'+_0x53f793,'data':_0x52e6e1,'createdAt':new Date(),'authorId':_0x57978d,'attributes':_0x57473e}),this['_addSuggestionMarker']('formatInline:'+_0x53f793,_0x5dde24,_0x57978d,_0x221dd2);}}return null;}['markBlockFormat'](_0x11b044,_0x1facd6,_0x4468f4=[],_0x3c1f0d=null,_0x58f9d8={}){_0x1facd6['formatGroupId']||(_0x1facd6['formatGroupId']=_0x1facd6['commandName']),_0x1facd6['multipleBlocks']=_0x11b044['is']('range'),_0x3c1f0d=_0x3c1f0d||Gt(_0x1facd6);const _0x9bcb21=_0x4468f4['map'](_0x46350f=>Lt(_0x46350f,this['_model'])),_0x48fd40=_0x11b044['is']('range')?_0x11b044:Lt(_0x11b044,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2ee5e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c1f0d,'accept');return this['forceDefaultExecution'](()=>_0x2ee5e7([_0x48fd40],_0x1facd6,_0x58f9d8)),null;}_0x9bcb21['push'](_0x48fd40);let _0x1a8e0e=!0x0;for(const _0x527604 of _0x9bcb21)if(!this['_rangeIsInLocalUserInsertion'](_0x527604)){_0x1a8e0e=!0x1;break;}if(_0x1a8e0e&&'always'!==this['_trackFormatChanges']){const _0x344de3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c1f0d,'accept');return this['forceDefaultExecution'](()=>_0x344de3([_0x48fd40],_0x1facd6,_0x58f9d8)),null;}let _0x51630a=null,_0x5a33be=_0x48fd40['start'],_0x169119=_0x48fd40['end'];for(const {suggestion:_0xf24aa2,meta:_0x148249}of this['_findSuggestions'](_0x48fd40,'formatBlock')){if(!_0x148249['isOwn'])continue;if(_0x148249['isNextTo']||_0x148249['containsRangeInObject']||_0x148249['isInsideObject'])continue;if(_0xf24aa2['data']['formatGroupId']!=_0x1facd6['formatGroupId'])continue;if(!qt(_0xf24aa2,_0x58f9d8))continue;const _0x34d8d4=_0xf24aa2['getFirstRange']();if(_0xf24aa2['subType']==_0x3c1f0d){if(_0x34d8d4['containsRange'](_0x48fd40,!0x0))return null;_0x5a33be=_0x5a33be['isBefore'](_0x34d8d4['start'])?_0x5a33be:_0x34d8d4['start'],_0x169119=_0x169119['isAfter'](_0x34d8d4['end'])?_0x169119:_0x34d8d4['end'],_0x51630a?_0x34d8d4['start']['isBefore'](_0x51630a['getFirstRange']()['start'])?(_0x51630a['removeMarkers'](),_0x51630a=_0xf24aa2):_0xf24aa2['removeMarkers']():_0x51630a=_0xf24aa2;}else{const _0x300ed1=_0x48fd40['getIntersection'](_0x34d8d4);this['_cutOutSuggestionMarker'](_0xf24aa2,_0x300ed1);}}const _0x173c5e=this['editor']['plugins']['get']('Users')['me'],_0x289482=_0x9c8e5f(),_0x25588d=_0x173c5e['id'];if(_0x51630a)return this['_setSuggestionRange'](_0x51630a,this['_model']['createRange'](_0x5a33be,_0x169119)),_0x51630a;{const _0xfd3253=this['_setSuggestionData']({'id':_0x289482,'type':'formatBlock:'+_0x3c1f0d,'data':_0x1facd6,'createdAt':new Date(),'authorId':_0x25588d,'attributes':_0x58f9d8});return this['_addSuggestionMarker']('formatBlock:'+_0x3c1f0d,_0x289482,_0x25588d,this['_model']['createRange'](_0x5a33be,_0x169119)),_0xfd3253;}}['markMultiRangeBlockFormat'](_0x853343,_0xd33c4a,_0x3c7658=[],_0x22698e=null,_0x4bd6a2={}){_0xd33c4a['formatGroupId']||(_0xd33c4a['formatGroupId']=_0xd33c4a['commandName']);const _0x4cec46=_0x853343[0x0];_0xd33c4a['multipleBlocks']=_0x4cec46['is']('range'),_0x22698e=_0x22698e||Gt(_0xd33c4a);const _0x235f06=_0x3c7658['map'](_0x58a617=>Lt(_0x58a617,this['_model'])),_0x27e838=_0x4cec46['is']('range')?_0x853343:_0x853343['map'](_0x352f3c=>Lt(_0x352f3c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x17fbf4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22698e,'accept');return this['forceDefaultExecution'](()=>_0x17fbf4(_0x27e838,_0xd33c4a,_0x4bd6a2)),null;}_0x235f06['push'](..._0x27e838);let _0x477fb0=!0x0;for(const _0x39603d of _0x235f06)if(!this['_rangeIsInLocalUserInsertion'](_0x39603d)){_0x477fb0=!0x1;break;}if(_0x477fb0&&'always'!==this['_trackFormatChanges']){const _0xa2e49d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22698e,'accept');return this['forceDefaultExecution'](()=>_0xa2e49d(_0x27e838,_0xd33c4a,_0x4bd6a2)),null;}const _0x326ce3=this['editor']['plugins']['get']('Users')['me'];for(const _0x37572f of this['getSuggestions']()){if(_0x37572f['author']['id']!=_0x326ce3['id'])continue;if('formatBlock'!=_0x37572f['type']||_0x37572f['data']['formatGroupId']!=_0xd33c4a['formatGroupId'])continue;if(!qt(_0x37572f,_0x4bd6a2))continue;const _0xdae88d=_0x37572f['subType']==_0x22698e;for(let _0x1b0d1f=0x0;_0x1b0d1f<_0x27e838['length'];_0x1b0d1f++){const _0x54c8c4=_0x27e838[_0x1b0d1f];for(const _0x1839a9 of _0x37572f['getMarkers']()){const _0x1246cc=_0x1839a9['getRange']();if(_0x54c8c4['isEqual'](_0x1246cc)){_0xdae88d?(_0x27e838['splice'](_0x1b0d1f,0x1),_0x1b0d1f--):_0x37572f['removeMarker'](_0x1839a9['name']);break;}}}}if(0x0==_0x27e838['length'])return null;const _0x33ca84=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22698e,'join');for(const _0x5db96b of this['getSuggestions']())if(_0x5db96b['author']['id']==_0x326ce3['id']&&'formatBlock'==_0x5db96b['type']&&_0x5db96b['data']['formatGroupId']==_0xd33c4a['formatGroupId']&&_0x5db96b['subType']==_0x22698e&&qt(_0x5db96b,_0x4bd6a2)&&(_0x33ca84(_0x5db96b['getRanges'](),_0x27e838)||_0x33ca84(_0x27e838,_0x5db96b['getRanges']()))){for(const _0xb5c582 of _0x27e838)_0x5db96b['addRange'](_0xb5c582);return _0x5db96b;}const _0x2070b3=_0x9c8e5f(),_0x50ffc3=_0x326ce3['id'],_0x255fbd='formatBlock:'+_0x22698e,_0x18798d=this['_setSuggestionData']({'id':_0x2070b3,'type':_0x255fbd,'data':_0xd33c4a,'createdAt':new Date(),'authorId':_0x50ffc3,'attributes':_0x4bd6a2});for(const _0x3d9da0 of _0x27e838)this['_addSuggestionMarker'](_0x255fbd,_0x2070b3,_0x50ffc3,_0x3d9da0,u['getMultiRangeId']());return _0x18798d;}['markDeletion'](_0x4c6c0c,_0x413680=null,_0x5c0c21={}){if(_0x4c6c0c['isCollapsed'])return null;const _0x19ed38=this['editor']['plugins']['get']('Users')['me'],_0x2d658d=new _0x3f4d48(_0x4c6c0c['start'],_0x4c6c0c['end']);for(const {suggestion:_0x411ef9,meta:_0x22d844}of this['_findSuggestions'](_0x2d658d,'insertion'))if(_0x22d844['isOwn']&&!_0x22d844['isNextTo']){if(_0x411ef9['isMultiRange']){const _0x5b6145=_0x411ef9['getRanges']()['filter'](_0x1bada0=>'$graveyard'!=_0x1bada0['root']['rootName']);_0x5b6145['every'](_0x334427=>_0x2d658d['containsRange'](_0x334427,!0x0))&&_0x411ef9['discard']();if(_0x5b6145['some'](_0x50dd55=>_0x50dd55['containsRange'](_0x2d658d,!0x0))){const _0x5c38b1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x413680,'accept');return this['forceDefaultExecution'](()=>_0x5c38b1([_0x2d658d],null,_0x5c0c21)),null;}}else{const _0x13d41d=_0x2d658d['getIntersection'](_0x411ef9['getFirstRange']());null!==_0x13d41d&&_0x411ef9['_onDiscard']([_0x13d41d],null,_0x5c0c21);}}if(_0x2d658d['detach'](),_0x2d658d['isCollapsed']||'$graveyard'==_0x2d658d['root']['rootName'])return null;let _0x2ece10=null,_0x3d59b7=_0x2d658d['start'],_0x1f43cc=_0x2d658d['end'];const _0xc4b667=this['_findSuggestions'](_0x2d658d,'deletion');for(const {suggestion:_0x19427d,meta:_0x4c6ee1}of _0xc4b667){const _0x70c9a9=this['_model']['createRange'](_0x3d59b7,_0x1f43cc);if(_0x4c6ee1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c6ee1['containsRangeInObject']&&!_0x4c6ee1['isInsideObject'])){if(_0x19427d['isMultiRange']){if(!qt(_0x19427d,_0x5c0c21))continue;let _0x32dd68=!0x0;for(const _0x54e679 of _0x19427d['getRanges']()){if(_0x54e679['containsRange'](_0x70c9a9,!0x0))return _0x19427d;_0x70c9a9['containsRange'](_0x54e679)||(_0x32dd68=!0x1);}_0x32dd68&&_0x19427d['discard']();}else{const _0x168a6d=_0x19427d['getFirstRange']();if(_0x168a6d['containsRange'](_0x70c9a9,!0x0))return _0x19427d;if(!qt(_0x19427d,_0x5c0c21)){_0x70c9a9['containsRange'](_0x168a6d)?_0x19427d['removeMarkers']():_0x168a6d['containsPosition'](_0x3d59b7)?_0x3d59b7=_0x168a6d['end']:_0x168a6d['containsPosition'](_0x1f43cc)&&(_0x1f43cc=_0x168a6d['start']);continue;}_0x3d59b7=_0x3d59b7['isBefore'](_0x168a6d['start'])?_0x3d59b7:_0x168a6d['start'],_0x1f43cc=_0x1f43cc['isAfter'](_0x168a6d['end'])?_0x1f43cc:_0x168a6d['end'],_0x5c0c21=Object['assign']({},_0x19427d['attributes']),_0x2ece10?_0x168a6d['start']['isBefore'](_0x2ece10['getFirstRange']()['start'])?(_0x2ece10['removeMarkers'](),_0x2ece10=_0x19427d):_0x19427d['removeMarkers']():_0x2ece10=_0x19427d;}}}if(_0x2ece10)return this['_setSuggestionRange'](_0x2ece10,this['_model']['createRange'](_0x3d59b7,_0x1f43cc)),_0x2ece10;{const _0x646adc=_0x9c8e5f(),_0x279fc9=this['_model']['createRange'](_0x3d59b7,_0x1f43cc),_0x57b1c6=_0x19ed38['id'],_0x41ce43=_0x413680?'deletion:'+_0x413680:'deletion',_0x3b4dd5=this['_setSuggestionData']({'id':_0x646adc,'type':_0x41ce43,'createdAt':new Date(),'authorId':_0x57b1c6,'attributes':_0x5c0c21});return this['_addSuggestionMarker'](_0x41ce43,_0x646adc,_0x57b1c6,_0x279fc9),_0x3b4dd5;}}['markMultiRangeDeletion'](_0x1ca689,_0x7a9c25='multi',_0x3ae573={}){const _0x42774a=this['editor']['plugins']['get']('Users')['me'],_0x272542=_0x1ca689['map'](_0x37f995=>new _0x3f4d48(_0x37f995['start'],_0x37f995['end'])),_0x4e44c0=new Set();for(const {suggestion:_0x2541b3,meta:_0x3006cd}of this['_findSuggestions'](_0x272542,'insertion'))_0x3006cd['isOwn']&&!_0x3006cd['isNextTo']&&_0x4e44c0['add'](_0x2541b3);for(const _0x627b56 of _0x4e44c0)if(_0x627b56['isMultiRange']){const _0x5ea1a8=_0x627b56['getRanges']();(!_0x627b56['attributes']||!_0x627b56['attributes']['skipNestingCheck'])&&(_0x5ea1a8['every'](_0x1148b7=>_0x272542['some'](_0x49a44d=>_0x49a44d['containsRange'](_0x1148b7,!0x0)))&&_0x627b56['discard']());if(_0x272542['every'](_0x235761=>_0x5ea1a8['some'](_0xa71c53=>_0xa71c53['containsRange'](_0x235761,!0x0)))){const _0x417d80=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7a9c25,'accept');return this['forceDefaultExecution'](()=>_0x417d80(_0x1ca689,null,_0x3ae573)),null;}}else{const _0x301dd5=_0x627b56['getFirstRange']();_0x272542['some'](_0x5c0cd4=>_0x5c0cd4['containsRange'](_0x301dd5,!0x0))&&_0x627b56['discard']();if(_0x272542['every'](_0x1c8f18=>_0x301dd5['containsRange'](_0x1c8f18,!0x0))){const _0x2078ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7a9c25,'accept');return this['forceDefaultExecution'](()=>_0x2078ea(_0x272542,null,_0x3ae573)),null;}}const _0x3fbeb4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7a9c25,'join');let _0x1a92ee=null;for(const _0x464505 of this['getSuggestions']())if(_0x464505['author']['id']==_0x42774a['id']&&_0x464505['isInContent']&&'deletion'==_0x464505['type']&&_0x464505['subType']==_0x7a9c25&&qt(_0x464505,_0x3ae573)&&(_0x3fbeb4(_0x464505['getRanges'](),_0x272542)||_0x3fbeb4(_0x272542,_0x464505['getRanges']()))){if(_0x1a92ee){if(_0x464505['commentThread']&&_0x464505['commentThread']['length'])continue;for(const _0x3237b1 of _0x464505['getRanges']())_0x1a92ee['isIntersectingWithRange'](_0x3237b1)||_0x1a92ee['addRange'](_0x3237b1);_0x464505['removeMarkers']();}else{_0x1a92ee=_0x464505;for(const _0x5e0e6a of _0x272542)_0x464505['isIntersectingWithRange'](_0x5e0e6a)||_0x464505['addRange'](_0x5e0e6a);}}if(_0x1a92ee)return _0x1a92ee;_0x4e44c0['clear']();for(const {suggestion:_0x49d287,meta:_0x55bf32}of this['_findSuggestions'](_0x272542,'deletion'))_0x55bf32['isOwn']&&(this['_mergeNestedSuggestions']||!_0x55bf32['containsRangeInObject']&&!_0x55bf32['isInsideObject'])&&qt(_0x49d287,_0x3ae573)&&_0x4e44c0['add'](_0x49d287);for(const _0x1ecfd2 of _0x4e44c0){const _0xfb317f=_0x1ecfd2['getRanges']();if(!_0x3ae573||!_0x3ae573['skipNestingCheck']){if(_0x272542['every'](_0x3bd2de=>_0xfb317f['some'](_0xd37514=>_0xd37514['containsRange'](_0x3bd2de,!0x0))))return _0x1ecfd2;}(!_0x1ecfd2['attributes']||!_0x1ecfd2['attributes']['skipNestingCheck'])&&(_0xfb317f['every'](_0xd3f95a=>_0x272542['some'](_0x2594c3=>_0x2594c3['containsRange'](_0xd3f95a,!0x0)))&&_0x1ecfd2['discard']());}const _0x185e01=_0x9c8e5f(),_0x1c0505=_0x42774a['id'],_0x3ccf56='deletion:'+_0x7a9c25,_0x3228bb=this['_setSuggestionData']({'id':_0x185e01,'type':_0x3ccf56,'createdAt':new Date(),'authorId':_0x1c0505,'attributes':_0x3ae573});for(const _0x182eb3 of _0x272542)_0x182eb3['detach'](),_0x182eb3['isCollapsed']||'$graveyard'==_0x182eb3['root']['rootName']||this['_addSuggestionMarker'](_0x3ccf56,_0x185e01,_0x1c0505,_0x182eb3,u['getMultiRangeId']());return _0x3228bb;}['markAttributeChange'](_0x3e3584,_0x4dc5b6,_0x26071e,_0x39140d,_0x1c1ce3){if(_0x3e3584['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2cc2bf=this['editor']['plugins']['get']('Users')['me']['id'],_0x16271a=Array['from'](this['_suggestions']['values']())['filter'](_0x127a89=>'attribute'==_0x127a89['type']&&_0x127a89['data']['key']==_0x4dc5b6&&_0x127a89['isIntersectingWithRange'](_0x3e3584));if('default'===this['_trackFormatChanges']){const _0x388a4f=this['_findSuggestions'](_0x3e3584,'insertion')['filter'](({meta:_0x4de5ec})=>_0x4de5ec['isOwn']&&!_0x4de5ec['isInsideObject']&&!_0x4de5ec['isNextTo'])['map'](({suggestion:_0x1a62e5})=>_0x1a62e5);_0x16271a['unshift'](..._0x388a4f);}const _0xe3e86c=new Map([[_0x3e3584,_0x26071e]]);for(const _0xef9d55 of _0x16271a){const _0x2e043d='attribute'==_0xef9d55['type']?_0xef9d55['data']['oldValue']:void 0x0,_0x5d9246=_0xef9d55['getFirstRange'](),_0x42ca0b=Array['from'](_0xe3e86c['keys']())['find'](_0x3682dd=>_0x3682dd['isIntersecting'](_0x5d9246));if(!_0x42ca0b)continue;const _0x4a5ffd=_0x42ca0b['getDifference'](_0x5d9246);this['_isBlockAttribute'](_0x4dc5b6)&&'insertion'==_0xef9d55['type']&&0x0!=_0x4a5ffd['length']||(_0xe3e86c['delete'](_0x42ca0b),_0x4a5ffd['forEach'](_0x1c6648=>{_0xe3e86c['set'](_0x1c6648,_0x26071e);}),'insertion'!=_0xef9d55['type']&&_0x2e043d!=_0x39140d&&_0xe3e86c['set'](_0x42ca0b['getIntersection'](_0x5d9246),_0x2e043d));}const _0x9c505d=[];for(const [_0x6aa146,_0x58d1cb]of _0xe3e86c){const _0x3f25df=_0x9c8e5f(),_0x5310ec={'key':_0x4dc5b6,'oldValue':_0x58d1cb,'newValue':_0x39140d};_0x4dc5b6['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':_0x4dc5b6});const _0x3edadf=('attribute:'+(_0x4dc5b6+'|'+Gt({'newValue':_0x39140d})))['substring'](0x0,0x3c),_0x525ce3=this['_setSuggestionData']({'id':_0x3f25df,'type':_0x3edadf,'data':_0x5310ec,'createdAt':new Date(),'authorId':_0x2cc2bf,'attributes':_0x1c1ce3});_0x9c505d['push'](_0x525ce3),this['_addSuggestionMarker'](_0x3edadf,_0x3f25df,_0x2cc2bf,_0x6aa146);}return _0x9c505d;}['enableDefaultAttributesIntegration'](_0x450461){this['enableCommand'](_0x450461,(_0x45ca7d,..._0x583a0f)=>{this['_recordAttributeChanges'](()=>{_0x45ca7d(..._0x583a0f);});});}['registerBlockAttribute'](_0x41578d){this['_blockAttributeKeys']['add'](_0x41578d);}['registerInlineAttribute'](_0x4d54b5){this['_inlineAttributeKeys']['add'](_0x4d54b5);}['_getAttributeKey'](_0x553d16){return'attribute'==_0x553d16['type']?_0x553d16['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x41d23c,_0x318e3d){const _0x4cb4ec=_0x41d23c['getFirstMarker']();this['_model']['change'](_0x416705=>{_0x416705['updateMarker'](_0x4cb4ec,{'range':_0x318e3d});});}['_addThreadToSuggestion'](_0x391726){const _0x5976fe=_0x391726['id'],_0x355811=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5976fe)||this['_commentsRepository']['addCommentThread']({'channelId':_0x355811,'threadId':_0x5976fe,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x16cc46=this['_commentsRepository']['getCommentThread'](_0x5976fe);_0x16cc46['unbind']('isRemovable'),_0x16cc46['isRemovable']=!0x1,_0x391726['commentThread']=_0x16cc46;}['_checkSuggestionCorrectness'](_0x26bb97,_0x3069b1,_0x2514ff,_0x59e0c0){if(_0x26bb97['type']!=_0x3069b1||_0x26bb97['subType']!=_0x2514ff||_0x26bb97['creator']['id']!=_0x59e0c0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa2aa4e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5ce5f8,_0xaae46b){const _0x274e11=_0x5ce5f8['getFirstRange']();if(_0xaae46b['isEqual'](_0x274e11))_0x5ce5f8['removeMarkers']();else{if(_0x274e11['containsRange'](_0xaae46b)){const _0xe0b2af=this['_model']['createPositionAt'](_0xaae46b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5ce5f8,this['_model']['createRange'](_0x274e11['start'],_0xe0b2af));const _0x372538=_0x9c8e5f(),_0x4506c1=_0x5ce5f8['creator']['id'],_0x465f75=_0x5ce5f8['type']+':'+_0x5ce5f8['subType'];this['_setSuggestionData']({'id':_0x372538,'type':_0x465f75,'createdAt':new Date(),'authorId':_0x4506c1,'data':_0x5ce5f8['data'],'attributes':_0x5ce5f8['attributes']});const _0x161977=this['_model']['createPositionAt'](_0xaae46b['end']['parent'],'after'),_0x732d76=this['_model']['createRange'](_0x161977,_0x274e11['end']);this['_addSuggestionMarker'](_0x465f75,_0x372538,_0x4506c1,_0x732d76);}else{if(_0x274e11['containsPosition'](_0xaae46b['start'])){const _0x5e6812=this['_model']['createPositionAt'](_0xaae46b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5ce5f8,this['_model']['createRange'](_0x274e11['start'],_0x5e6812));}else{const _0x5256b9=this['_model']['createPositionAt'](_0xaae46b['end']['parent'],'after');this['_setSuggestionRange'](_0x5ce5f8,this['_model']['createRange'](_0x5256b9,_0x274e11['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x59d530){for(const {suggestion:_0x164253,meta:_0xcb5566}of this['_findSuggestions'](_0x59d530,'insertion')){if(!_0xcb5566['isOwn'])continue;const _0x22a0a3=_0x164253['getRanges']();for(const _0x8518b9 of _0x22a0a3)if(!_0x59d530['getDifference'](_0x8518b9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x370ecb){const _0x59f4cc=this['editor']['plugins']['get']('Users')['getUser'](_0x370ecb);if(!_0x59f4cc)throw new _0xa2aa4e('track-changes-user-not-found',this);return _0x59f4cc;}['_getExternalAuthor'](_0x4df9e5){const _0x498e86=this['editor']['plugins']['get']('Users'),_0x135226=_0x4c6044('external:'+_0x4df9e5),_0x47fb24=_0x498e86['getUser'](_0x135226);return _0x47fb24||_0x498e86['addUser']({'id':_0x135226,'name':_0x4df9e5});}['_createSuggestion'](_0x42cbbc,_0xc17c04,_0x5cfcad,_0x30548b,_0x56e9e0){const _0x378d90=this['_getAuthorFromId'](_0x30548b),_0x46dd8f=this['_suggestionFactory']['buildSuggestion'](_0x42cbbc,_0xc17c04,_0x5cfcad,_0x378d90,_0x56e9e0,_0x501a77=>{this['_updateSuggestionData'](_0x5cfcad,{'attributes':_0x501a77});const _0x323ec6=this['getSuggestion'](_0x5cfcad);this['_joinWithAdjacentSuggestions'](new Set([_0x323ec6])),this['_refreshSuggestionsChain'](new Set([_0x323ec6]));});return this['listenTo'](_0x46dd8f,'accept',()=>{this['_updateSuggestionData'](_0x5cfcad,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x46dd8f,'discard',()=>{this['_updateSuggestionData'](_0x5cfcad,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5cfcad,_0x46dd8f),this['_suggestionState']['set'](_0x46dd8f,'notReady'),_0x46dd8f;}['_splitMarkerName'](_0x2f4076){const _0x24ef1d=_0x2f4076['split'](':');return{'group':_0x24ef1d[0x0],'type':_0x24ef1d[0x1],'subType':_0x24ef1d['length']>=0x5?_0x24ef1d[0x2]:null,'id':_0x24ef1d['length']<0x5?_0x24ef1d[0x2]:_0x24ef1d[0x3],'authorId':_0x24ef1d['length']<0x5?_0x24ef1d[0x3]:_0x24ef1d[0x4],'markerCount':0x6==_0x24ef1d['length']?_0x24ef1d[0x5]:null};}['_breakSuggestionMarker'](_0x5a543b,_0xfb25eb,_0x5e703e){const _0x17871c=_0x5a543b['getFirstRange'](),_0x1c323d=_0x17871c['start'],_0xec2e24=_0x17871c['end'];this['_setSuggestionRange'](_0x5a543b,this['_model']['createRange'](_0x1c323d,_0xfb25eb));const _0x415a87=_0x9c8e5f(),_0x29a5af=_0x5a543b['creator']['id'],_0x206396=_0x5a543b['type']+(_0x5a543b['subType']?':'+_0x5a543b['subType']:'');this['_setSuggestionData']({'id':_0x415a87,'type':_0x206396,'createdAt':new Date(),'authorId':_0x29a5af,'originalSuggestionId':_0x5a543b['id'],'attributes':_0x5a543b['attributes'],'data':_0x5a543b['data']});const _0x51a5be=this['_getAttributeKey'](_0x5a543b);('formatBlock'==_0x5a543b['type']||_0x51a5be&&this['_isBlockAttribute'](_0x51a5be))&&(_0x5e703e=this['_model']['createPositionBefore'](_0x5e703e['parent'])),this['_addSuggestionMarker'](_0x206396,_0x415a87,_0x29a5af,this['_model']['createRange'](_0x5e703e,_0xec2e24));}['_findSuggestions'](_0x30ee0f,_0x2ecc96=null){const _0x5a2be8=[],_0x1fd76d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x30ee0f)||(_0x30ee0f=[_0x30ee0f]);for(const _0x3a07a2 of this['getSuggestions']()){if(!_0x3a07a2['isInContent'])continue;if(_0x2ecc96&&_0x3a07a2['type']!=_0x2ecc96)continue;let _0x31553f=!0x1;for(const _0x1ade3 of _0x3a07a2['getRanges']()){for(const _0x38eee1 of _0x30ee0f){const _0x2056bf=_0x38eee1['start']['isEqual'](_0x1ade3['end'])||_0x38eee1['end']['isEqual'](_0x1ade3['start']);if(_0x2056bf||_0x38eee1['getIntersection'](_0x1ade3)){const _0x230c00=_0x38eee1['containsRange'](_0x1ade3)&&Ot(this['_model']['schema'],_0x1ade3['start'],_0x38eee1),_0x37f687=_0x1ade3['containsRange'](_0x38eee1)&&Ot(this['_model']['schema'],_0x38eee1['start'],_0x1ade3);_0x5a2be8['push']({'suggestion':_0x3a07a2,'meta':{'isOwn':_0x1fd76d==_0x3a07a2['author'],'isNextTo':_0x2056bf,'isInsideObject':_0x230c00,'containsRangeInObject':_0x37f687}}),_0x31553f=!0x0;break;}}if(_0x31553f)break;}}return _0x5a2be8;}['_addSuggestionMarker'](_0x910844,_0x9e950,_0x1958a2,_0x4bd8ae,_0x4a9541){this['_model']['change'](_0x1364f9=>{let _0x3d563e='suggestion:'+_0x910844+':'+_0x9e950+':'+_0x1958a2;_0x4a9541&&(_0x3d563e=_0x3d563e+':'+_0x4a9541),_0x1364f9['addMarker'](_0x3d563e,{'range':_0x4bd8ae,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1f99dc){const _0x50337b=_0x1f99dc['previous'],_0xa9da59=_0x1f99dc['next'];_0x1f99dc['previous']=null,_0x1f99dc['next']=null,null!=_0x50337b&&_0x50337b['next']==_0x1f99dc&&(_0x50337b['next']=_0xa9da59),null!=_0xa9da59&&_0xa9da59['previous']==_0x1f99dc&&(_0xa9da59['previous']=_0x50337b),'ready'==this['_suggestionState']['get'](_0x1f99dc)&&(this['_suggestionState']['set'](_0x1f99dc,'removed'),this['fire']('suggestionUnloaded',_0x1f99dc,_0x50337b,_0xa9da59));}['_setSuggestionData'](_0x555e5a){const _0x3b2b83=_0x555e5a['id'],_0xad4d81=this['addSuggestionData'](_0x555e5a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x493d57=this['editor']['plugins']['get']('PendingActions'),_0x27235b=_0xad4d81['hasComments'],_0x709805=_0xad4d81['subType']?_0xad4d81['type']+':'+_0xad4d81['subType']:_0xad4d81['type'],_0x50f19e=this['editor']['locale'],_0x3e5d6f=_0x493d57['add'](o(_0x50f19e,'PENDING_ACTION_SUGGESTION')),_0x42365a={'id':_0x3b2b83,'type':_0x709805,'hasComments':_0x27235b,'data':_0x555e5a['data']||null,'originalSuggestionId':_0x555e5a['originalSuggestionId']||null,'attributes':_0xad4d81['attributes']};this['_adapter']['addSuggestion'](_0x42365a)['then'](_0x4a3b52=>{_0xad4d81['_saved']=!0x0,_0x493d57['remove'](_0x3e5d6f),_0x4a3b52&&_0x4a3b52['createdAt']&&(this['_suggestions']['get'](_0x3b2b83)['createdAt']=_0x4a3b52['createdAt']);})['catch'](_0x1ad54d=>{throw _0x34a7f6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xad4d81['discard']();}),_0xad4d81['stopListening'](),this['_suggestions']['delete'](_0xad4d81['id']),this['_suggestionState']['delete'](_0xad4d81),_0x1ad54d;});}return _0xad4d81;}['_isBlockAttribute'](_0x10a533){return this['_blockAttributeKeys']['has'](_0x10a533);}['_updateSuggestionData'](_0x2ccc44,_0x525aca){const _0x231e8e=this['editor']['plugins']['get']('PendingActions'),_0x4b3ff8=this['getSuggestion'](_0x2ccc44);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4b3ff8['_saved']){const _0x4cbb59=_0x231e8e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2ccc44,_0x525aca)['then'](()=>{_0x231e8e['remove'](_0x4cbb59);});}else _0x4b3ff8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2ccc44,_0x525aca);});}}['_getSuggestionData'](_0x5668ea){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa2aa4e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5668ea);}['_handleNewSuggestionMarker'](_0x2da564){const {id:_0x38de43,type:_0x31206f,subType:_0x38efe1,authorId:_0x7834f1}=this['_splitMarkerName'](_0x2da564),_0x4a2877=this['_suggestions']['get'](_0x38de43)||this['_createSuggestion'](_0x31206f,_0x38efe1,_0x38de43,_0x7834f1,{});switch(this['_checkSuggestionCorrectness'](_0x4a2877,_0x31206f,_0x38efe1,_0x7834f1),this['_suggestionState']['get'](_0x4a2877)){case'notReady':this['_getSuggestionData'](_0x38de43)['then'](_0x36808b=>{let _0x3f74fb=Promise['resolve']();_0x36808b['hasComments']&&(_0x3f74fb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x38de43})),_0x3f74fb['then'](()=>{this['addSuggestionData'](_0x36808b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4a2877,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x38de43,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4a2877,'ready'),this['fire']('suggestionLoaded',_0x4a2877);break;case'ready':this['fire']('suggestionChanged',_0x4a2877);}return _0x4a2877['addMarkerName'](_0x2da564),_0x4a2877;}['_refreshSuggestionsChain'](_0x4ce82e){const _0xd82297=Array['from'](_0x4ce82e),_0x1cefe8=_0xd82297['filter'](_0x3bb8f4=>'attribute'==_0x3bb8f4['type']);this['_refreshAttributeSuggestionsChain'](_0x1cefe8);const _0xd3d305=_0xd82297['filter'](_0x4b2d5e=>!_0x4b2d5e['isMultiRange']&&'attribute'!=_0x4b2d5e['type']),_0x446f0e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3cdd15=>!_0x3cdd15['isMultiRange']&&'attribute'!=_0x3cdd15['type']),_0x81e4f0=_0x446f0e['filter'](_0x48e7e8=>!_0x4ce82e['has'](_0x48e7e8)),_0x2f3d3b=new Map(_0x446f0e['map'](_0xe28059=>[_0xe28059,this['_suggestionFactory']['getSuggestionCallback'](_0xe28059['type'],_0xe28059['subType'],'chain')])),_0x4128b9=new Map(_0x446f0e['map'](_0x3e112d=>[_0x3e112d,_0x3e112d['getFirstRange']()])),_0x5571bb=new Set(),_0x4dc610=new Set();for(let _0x467626=0x0;_0x467626<_0xd3d305['length'];_0x467626++)_0x3e1277(_0xd3d305[_0x467626],_0xd3d305,_0x467626+0x1);for(let _0x40cfdd=0x0;_0x40cfdd<_0xd3d305['length'];_0x40cfdd++)_0x3e1277(_0xd3d305[_0x40cfdd],_0x81e4f0,0x0);const _0x134162=new Set();for(let _0x103e72=0x0;_0x103e72<_0xd3d305['length'];_0x103e72++){const _0x26a9be=_0xd3d305[_0x103e72];!_0x4dc610['has'](_0x26a9be)&&_0x26a9be['previous']&&(_0x134162['add'](_0x26a9be['previous']),_0x26a9be['previous']['next']===_0x26a9be&&(_0x26a9be['previous']['next']=null),_0x26a9be['previous']=null),!_0x5571bb['has'](_0x26a9be)&&_0x26a9be['next']&&(_0x134162['add'](_0x26a9be['next']),_0x26a9be['next']['previous']===_0x26a9be&&(_0x26a9be['next']['previous']=null),_0x26a9be['next']=null);}function _0x3e1277(_0x1951c6,_0x18444b,_0x128661){for(let _0x1500e6=_0x128661;_0x1500e6<_0x18444b['length'];_0x1500e6++){const _0x17bc97=_0x5b198a(_0x1951c6,_0x18444b[_0x1500e6]);_0x17bc97&&(_0x17bc97[0x0]['next']=_0x17bc97[0x1],_0x17bc97[0x1]['previous']=_0x17bc97[0x0],_0x5571bb['add'](_0x17bc97[0x0]),_0x4dc610['add'](_0x17bc97[0x1]));}}function _0x5b198a(_0x5a7db3,_0x47e701){if(_0x5a7db3['author']['id']!==_0x47e701['author']['id'])return null;const _0x39a27e=_0x2f3d3b['get'](_0x5a7db3)(_0x5a7db3,_0x47e701,_0x4128b9['get'](_0x5a7db3),_0x4128b9['get'](_0x47e701));if(!_0x39a27e)return null;return _0x2f3d3b['get'](_0x47e701)(_0x5a7db3,_0x47e701,_0x4128b9['get'](_0x5a7db3),_0x4128b9['get'](_0x47e701))?_0x39a27e[0x1]['commentThread']&&_0x39a27e[0x1]['commentThread']['length']?null:_0x39a27e:null;}_0x134162['size']&&this['_refreshSuggestionsChain'](_0x134162);}['_refreshAttributeSuggestionsChain'](_0x53232b){if(0x0==_0x53232b['length'])return;const _0x5061cd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x221537=>'attribute'==_0x221537['type']&&_0x221537['_isDataLoaded']),_0x5558ea=[],_0x342afb=new Map();for(const _0x4481b2 of _0x5061cd){const _0x4426a6=_0x4c6044(_0x4481b2['attributes']);_0x342afb['has'](_0x4426a6)||(_0x342afb['set'](_0x4426a6,_0x5558ea['length']),_0x5558ea['push']([]));const _0xc327f8=_0x342afb['get'](_0x4426a6);_0x5558ea[_0xc327f8]['push'](_0x4481b2);}!(function(){_0x5558ea['sort']((_0x3029f6,_0x5d7e45)=>{const _0x1e619a=_0x3029f6[0x0]['createdAt'],_0x48a59c=_0x5d7e45[0x0]['createdAt'];return _0x1e619a==_0x48a59c?_0x3029f6[0x0]['attributes']['groupId']<_0x5d7e45[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e619a<_0x48a59c?-0x1:0x1;});for(const _0x416d11 of _0x5558ea)_0x416d11['sort']((_0x38a263,_0x32c56c)=>_0x38a263['id']<_0x32c56c['id']?-0x1:0x1);}());for(let _0x373dbf=0x0;_0x373dbf<_0x5558ea['length'];_0x373dbf++){if(0x0==_0x5558ea[_0x373dbf]['length'])continue;const _0x1e8803=[];for(let _0x2de9fe=_0x373dbf+0x1;_0x2de9fe<_0x5558ea['length'];_0x2de9fe++)0x0!=_0x5558ea[_0x2de9fe]['length']&&_0x1c946(_0x5558ea[_0x373dbf],_0x5558ea[_0x2de9fe])&&_0x1e8803['push'](_0x2de9fe);for(const _0xd50c56 of _0x1e8803)_0x5558ea[_0x373dbf]=_0x5558ea[_0x373dbf]['concat'](_0x5558ea[_0xd50c56]),_0x5558ea[_0xd50c56]=[];}for(const _0xf3960f of _0x5558ea)for(let _0xa6b54f=0x0;_0xa6b54f<_0xf3960f['length'];_0xa6b54f++){const _0x225720=_0xf3960f[_0xa6b54f+0x1]||null;_0xf3960f[_0xa6b54f]['next']!==_0x225720&&(_0xf3960f[_0xa6b54f]['next']=_0x225720);}for(const _0x253009 of _0x5558ea)for(let _0x234c2b=0x0;_0x234c2b<_0x253009['length'];_0x234c2b++){const _0x5f0de9=_0x253009[_0x234c2b-0x1]||null;_0x253009[_0x234c2b]['previous']!==_0x5f0de9&&(_0x253009[_0x234c2b]['previous']=_0x5f0de9);}function _0x1c946(_0xe3697b,_0x1c909c){if(_0xe3697b[0x0]['attributes']['groupId']!==_0x1c909c[0x0]['attributes']['groupId']&&_0xe3697b[0x0]['author']!==_0x1c909c[0x0]['author'])return!0x1;if(!function(_0x17a73f,_0x1863e6){if(!_0x17a73f['hasComments']&&!_0x1863e6['hasComments'])return!0x0;if(_0x17a73f['hasComments']&&_0x1863e6['hasComments'])return!0x1;if(_0x17a73f['hasComments']&&_0x1863e6['createdAt']<_0x17a73f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1863e6['hasComments']&&_0x17a73f['createdAt']<_0x1863e6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xe3697b[0x0],_0x1c909c[0x0]))return!0x1;const _0x2ebc7d=Tt(_0xe3697b[0x0]['attributes'],'groupId'),_0x3b7af5=Tt(_0x1c909c[0x0]['attributes'],'groupId');if(!_0x18f859(_0x2ebc7d,_0x3b7af5))return!0x1;return!!_0xe3697b['every'](_0x1783c9=>_0x1c909c['some'](_0x41b1c0=>_0x1783c9['getFirstRange']()['isEqual'](_0x41b1c0['getFirstRange']())))&&_0x1c909c['every'](_0x5d4dc2=>_0xe3697b['some'](_0x4fb31=>_0x5d4dc2['getFirstRange']()['isEqual'](_0x4fb31['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1756ba){const _0x3c0b5e=Array['from'](_0x1756ba),_0x460a5b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2c7569=_0x460a5b['filter'](_0x206af0=>!_0x1756ba['has'](_0x206af0)),_0x42a7e7=new Map(_0x3c0b5e['map'](_0x559211=>[_0x559211,this['_suggestionFactory']['getSuggestionCallback'](_0x559211['type'],_0x559211['subType'],'join')])),_0x117e24=new Map(_0x460a5b['map'](_0x5a29fd=>[_0x5a29fd,_0x5a29fd['getRanges']()]));for(let _0xca8177=0x0;_0xca8177<_0x3c0b5e['length'];_0xca8177++){if(_0xe858d(this,_0x3c0b5e[_0xca8177],_0x3c0b5e,_0xca8177+0x1))return!0x0;}for(let _0xd23def=0x0;_0xd23def<_0x3c0b5e['length'];_0xd23def++){if(_0xe858d(this,_0x3c0b5e[_0xd23def],_0x2c7569,0x0))return!0x0;}return!0x1;function _0xe858d(_0x44a583,_0x3a1bb5,_0x1c810b,_0x47c45c){for(let _0x2e964e=_0x47c45c;_0x2e964e<_0x1c810b['length'];_0x2e964e++){const _0x2e5932=_0x1c810b[_0x2e964e];if(_0x2e5932['type']!==_0x3a1bb5['type']||_0x2e5932['author']['id']!==_0x3a1bb5['author']['id']||_0x2e5932['subType']!==_0x3a1bb5['subType'])continue;if(!Jt(_0x3a1bb5,_0x2e5932))continue;if('attribute'==_0x3a1bb5['type']&&_0x3a1bb5['data']['oldValue']!=_0x2e5932['data']['oldValue'])continue;if('attribute'==_0x3a1bb5['type']&&_0x44a583['_isBlockAttribute'](_0x3a1bb5['data']['key']))continue;if('formatBlock'==_0x3a1bb5['type']){const _0x33dec9=_0x44a583['editor']['model'],_0x3443ba=_0x3a1bb5['getContainedElement']();if(_0x3443ba&&(_0x33dec9['schema']['isObject'](_0x3443ba)||_0x33dec9['schema']['isLimit'](_0x3443ba)))continue;}const _0x14e52f=_0x42a7e7['get'](_0x3a1bb5),_0x1a916a=_0x117e24['get'](_0x3a1bb5),_0x1efc2f=_0x117e24['get'](_0x2e5932),_0x5bc0ca=_0x3a1bb5['commentThread']&&_0x3a1bb5['commentThread']['length'],_0x40f08d=_0x2e5932['commentThread']&&_0x2e5932['commentThread']['length'];if(!_0x5bc0ca&&_0x14e52f(_0x1efc2f,_0x1a916a))return _0x44a583['_joinSuggestions'](_0x2e5932,_0x3a1bb5),_0x117e24['delete'](_0x3a1bb5),!0x0;if(!_0x40f08d&&_0x14e52f(_0x1a916a,_0x1efc2f))return _0x44a583['_joinSuggestions'](_0x3a1bb5,_0x2e5932),_0x117e24['delete'](_0x2e5932),!0x0;}return!0x1;}}['_joinSuggestions'](_0x371f69,_0x1aa8eb){if(_0x371f69['isMultiRange']){for(const _0x4433d7 of _0x1aa8eb['getRanges']())_0x371f69['addRange'](_0x4433d7);}else{const _0x40b5b3=_0x1aa8eb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x371f69,this['_model']['createRange'](_0x371f69['getFirstRange']()['start'],_0x40b5b3));}_0x1aa8eb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x54abc8,_0x4f2f39,_0x56bd2c){const _0xf6784c=_0x54abc8['startsWith']('format')||_0x54abc8['startsWith']('attribute')?'FORMATTING':_0x54abc8['toUpperCase']();return o(this['editor']['locale'],_0x4f2f39+'_'+_0xf6784c+'_SUGGESTION_ANNOUNCEMENT',_0x56bd2c);}['_initAriaMarkerChangeAnnouncements'](){const _0x43e1de=this['editor'];if(!_0x43e1de['ui'])return;const {ariaLiveAnnouncer:_0x4e7d65}=_0x43e1de['ui'];_0x285bea(this['_model'],({left:_0x43f69c,entered:_0x1c5534})=>{for(const _0x28359b of _0x43f69c){const {group:_0x35eb53,type:_0x44d424}=this['_splitMarkerName'](_0x28359b['name']);if('suggestion'===_0x35eb53){_0x4e7d65['announce'](this['_getMarkerAnnouncementText'](_0x44d424,'LEAVE'));break;}}for(const _0x1c8eed of _0x1c5534){const {group:_0x2f7aa8,type:_0x4a124f}=this['_splitMarkerName'](_0x1c8eed['name']);if('suggestion'===_0x2f7aa8){_0x4e7d65['announce'](this['_getMarkerAnnouncementText'](_0x4a124f,'ENTER',_0x7b7363(_0x27747b)));break;}}});}['_processAttributeChanges'](_0x3ec2bb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5d726d=this['editor'],_0x55d63f=_0x5d726d['model']['document']['differ']['getChanges']();if(0x0==_0x55d63f['length'])return!0x1;const _0x63da84=[],_0x3ecee1=_0x55d63f['filter'](_0xe14eee=>'attribute'==_0xe14eee['type']),_0x5b6eb4=_0x55d63f['filter'](_0x10d8fa=>'insert'==_0x10d8fa['type']&&'$text'!=_0x10d8fa['name']),_0xf49fb6=_0x55d63f['filter'](_0x36db18=>'remove'==_0x36db18['type']&&'$text'!=_0x36db18['name']);for(const _0x439871 of _0x3ecee1)_0x63da84['push']({'key':_0x439871['attributeKey'],'newValue':_0x439871['attributeNewValue'],'oldValue':_0x439871['attributeOldValue'],'range':Pt(_0x439871['range'],_0x5d726d['model'])});for(const _0x2247a7 of _0x5b6eb4){const _0x120c97=_0xf49fb6['find'](_0x595e81=>_0x595e81['position']['isEqual'](_0x2247a7['position']));_0x120c97&&_0x63da84['push']({'key':m,'newValue':_0x2247a7['name'],'oldValue':_0x120c97['name'],'range':_0x5d726d['model']['createRangeOn'](_0x2247a7['position']['nodeAfter'])});}return 0x0!=_0x63da84['length']&&this['_reduceExistingSuggestions'](_0x3ec2bb,_0x63da84);}['_processAttributeSuggestions'](_0x1cebe9){let _0x4625a3=!0x1;const _0x53d099=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x321c1f=>_0x321c1f['data']['newRange']&&_0x321c1f['name']['startsWith']('suggestion:attribute:'));for(const _0x5d0468 of _0x53d099){const {subType:_0x58bb93,id:_0x4385e6}=this['_splitMarkerName'](_0x5d0468['name']),_0x2ff38e=_0x58bb93['split']('|')[0x0];for(const _0x16331e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x16331e['id']!=_0x4385e6&&'attribute'==_0x16331e['type']&&_0x16331e['data']&&_0x16331e['data']['key']==_0x2ff38e&&_0x16331e['getFirstRange']()['isIntersecting'](_0x5d0468['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x16331e,_0x5d0468['data']['newRange'],_0x1cebe9),_0x4625a3=!0x0);}return _0x4625a3;}['_recordAttributeChanges'](_0x25c356){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x25c356();}['_isRegisteredAttribute'](_0x2b7205){const _0x112241=this['_isBlockAttribute'](_0x2b7205),_0x49d088=this['_inlineAttributeKeys']['has'](_0x2b7205);return _0x112241||_0x49d088;}['_reduceExistingSuggestions'](_0x5f1f3c,_0x303ab4){if(0x0==_0x303ab4['length'])return!0x1;let _0x8f5940=!0x1;for(const _0x1c1cdb of _0x303ab4){const _0x26f86e=this['_findSuggestions'](_0x1c1cdb['range'],'attribute')['filter'](_0x186553=>!_0x186553['meta']['isNextTo'])['map'](_0x5517fe=>_0x5517fe['suggestion']),_0x4c2c63=_0x4c6044({'newValue':_0x1c1cdb['newValue']});_0x26f86e['filter'](_0x4428dd=>{const [_0x45cc62,_0x14f002]=_0x4428dd['subType']['split']('|');return _0x45cc62==_0x1c1cdb['key']&&_0x14f002!=_0x4c2c63;})['forEach'](_0x3f867d=>{this['_reduceSuggestionAttributeRange'](_0x3f867d,_0x1c1cdb['range'],_0x5f1f3c),_0x8f5940=!0x0;});}return _0x8f5940;}['_reduceSuggestionAttributeRange'](_0x337141,_0x2d39f1,_0x44eeee){const _0xcef71b=_0x337141['getFirstRange']()['getDifference'](_0x2d39f1);0x0!==_0xcef71b['length']?0x1!==_0xcef71b['length']?this['_breakSuggestionMarker'](_0x337141,_0x2d39f1['start'],_0x2d39f1['end']):this['_setSuggestionRange'](_0x337141,_0xcef71b[0x0]):_0x44eeee['removeMarker'](_0x337141['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5568a1){this['_editor']=_0x5568a1,this['_model']=_0x5568a1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x14b44c,_0x56c834,_0x52a4fa,_0x3b758a,_0x21fe10,_0x4a2ea4){return new u(this['_model'],{'type':_0x14b44c,'subType':_0x56c834,'id':_0x52a4fa,'author':_0x3b758a,'creator':_0x3b758a,'attributes':_0x21fe10,'onAttributesChange':_0x4a2ea4,'onAccept':(..._0x2860a4)=>this['getSuggestionCallback'](_0x14b44c,_0x56c834,'accept')(..._0x2860a4),'onDiscard':(..._0x4a137c)=>this['getSuggestionCallback'](_0x14b44c,_0x56c834,'discard')(..._0x4a137c)});}['registerCustomCallback'](_0x35aba8,_0x3a7139,_0x238121,_0x1ae81c){const _0x22cfca=_0x35aba8+':'+_0x3a7139+':'+_0x238121;this['_customCallbacks']['set'](_0x22cfca,_0x1ae81c);}['getSuggestionCallback'](_0xaccc87,_0x816dbf,_0x18910e){const _0x376f10=_0xaccc87+':'+_0x816dbf+':'+_0x18910e;return this['_customCallbacks']['get'](_0x376f10)||this['_defaultCallbacks']['get'](_0xaccc87+':'+_0x18910e);}['_registerDefaultCallbacks'](){const _0x1e98c7=()=>!0x1,_0x32762f=_0x166ba2=>{_0x166ba2['sort']((_0x22edc3,_0x4a3c7c)=>_0x22edc3['start']['isBefore'](_0x4a3c7c['start'])?0x1:-0x1),this['_model']['change'](_0x3024ca=>{for(const _0x23f510 of _0x166ba2){let _0x2d3f8d;_0x2d3f8d=_0x23f510['end']['isAtEnd']&&_0x23f510['end']['parent']==_0x23f510['start']['nodeAfter']?_0x3024ca['createSelection'](_0x23f510['start']['nodeAfter'],'on'):_0x3024ca['createSelection'](_0x23f510),this['_model']['deleteContent'](_0x2d3f8d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3e2063=(_0xc974ad,_0x73766)=>{_0x73766&&this['_model']['change'](_0x213aae=>{const {commandName:_0x270360,commandParams:_0x158ab8=[]}=_0x73766,_0x58e397=_0xc974ad['map'](_0x326736=>(Vt(_0x326736)&&(_0x326736=this['_model']['createRange'](_0x326736['end'])),_0x326736))['filter'](_0x511319=>'$graveyard'!==_0x511319['root']['rootName']);if(_0x58e397['length']<0x1)return;const _0x526979=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34bed5=>_0x3f4d48['fromRange'](_0x34bed5));_0x213aae['setSelection'](_0x58e397);for(const _0x5327fa of this['_editor']['commands']['commands']())_0x5327fa['refresh']();_0x158ab8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x270360,..._0x158ab8);const _0x248638=_0x526979['filter'](_0x1c4049=>'$graveyard'!=_0x1c4049['root']['rootName']);_0x248638['length']>0x0&&_0x213aae['setSelection'](_0x248638);for(const _0x4aeea3 of _0x526979)_0x4aeea3['detach']();});},_0x23e1bd=(_0x2cfc91,_0x396e23)=>0x1==_0x2cfc91['length']&&0x1==_0x396e23['length']&&_0x2cfc91[0x0]['end']['isEqual'](_0x396e23[0x0]['start']),_0x3c2e8b=(_0x49749e,_0x4fdd68,_0x38f8f7,_0x3971a5)=>Ht(_0x49749e,_0x4fdd68,_0x38f8f7,_0x3971a5,this['_model'])?[_0x49749e,_0x4fdd68]:Ht(_0x4fdd68,_0x49749e,_0x3971a5,_0x38f8f7,this['_model'])?[_0x4fdd68,_0x49749e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1e98c7),this['_defaultCallbacks']['set']('insertion:discard',_0x32762f),this['_defaultCallbacks']['set']('insertion:join',_0x23e1bd),this['_defaultCallbacks']['set']('insertion:chain',_0x3c2e8b),this['_defaultCallbacks']['set']('deletion:accept',_0x32762f),this['_defaultCallbacks']['set']('deletion:discard',_0x1e98c7),this['_defaultCallbacks']['set']('deletion:join',_0x23e1bd),this['_defaultCallbacks']['set']('deletion:chain',_0x3c2e8b),this['_defaultCallbacks']['set']('formatInline:accept',_0x3e2063),this['_defaultCallbacks']['set']('formatInline:discard',_0x1e98c7),this['_defaultCallbacks']['set']('formatInline:join',_0x23e1bd),this['_defaultCallbacks']['set']('formatInline:chain',_0x1e98c7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3e2063),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1e98c7),this['_defaultCallbacks']['set']('formatBlock:join',_0x23e1bd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1e98c7),this['_defaultCallbacks']['set']('attribute:accept',_0x1e98c7),this['_defaultCallbacks']['set']('attribute:discard',(_0x50fbe8,_0x326fc3)=>{if(!_0x326fc3)return;const _0x3c9948=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2855ee=>{if(_0x326fc3['key']==m)for(const _0xe4ffcd of _0x50fbe8){const _0x3e08fa=_0xe4ffcd['start']['nodeAfter'],_0x547f3f=_0x326fc3['oldValue'];_0x2855ee['rename'](_0x3e08fa,_0x547f3f);}else{if(_0x3c9948['_isBlockAttribute'](_0x326fc3['key'])){for(const _0x26b48c of _0x50fbe8)void 0x0!==_0x326fc3['oldValue']?_0x2855ee['setAttribute'](_0x326fc3['key'],_0x326fc3['oldValue'],_0x26b48c['start']['nodeAfter']):_0x2855ee['removeAttribute'](_0x326fc3['key'],_0x26b48c['start']['nodeAfter']);}else{for(const _0x3f034d of _0x50fbe8)_0x326fc3['oldValue']?_0x2855ee['setAttribute'](_0x326fc3['key'],_0x326fc3['oldValue'],_0x3f034d):_0x2855ee['removeAttribute'](_0x326fc3['key'],_0x3f034d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x23e1bd);}}function Ot(_0x843b18,_0x13060c,_0x4a1f57){for(const _0x1eff53 of _0x13060c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1eff53['root']==_0x1eff53)return!0x1;if(!_0x4a1f57['containsItem'](_0x1eff53))return!0x1;if(_0x843b18['isObject'](_0x1eff53)||_0x843b18['isLimit'](_0x1eff53))return!0x0;}return!0x1;}function Vt(_0x4b1246){return _0x4b1246['end']['parent']==_0x4b1246['start']['nodeAfter']&&_0x4b1246['end']['isAtStart'];}function Ut(_0x3b7286,_0x582d2b,_0x12d233,_0x5621b8){const _0x19a347=_0x3002fc=>!_0x3002fc['item']['is']('$textProxy')&&!_0x5621b8['isObject'](_0x3002fc['item']),_0x3d37d8=_0x3b7286['start']['getLastMatchingPosition'](_0x19a347),_0x1e69ab=_0x3b7286['end']['getLastMatchingPosition'](_0x19a347,{'direction':'backward'});return(!_0x3b7286['start']['isEqual'](_0x3d37d8)||!_0x3b7286['end']['isEqual'](_0x1e69ab))&&(_0x3d37d8['isBefore'](_0x1e69ab)?_0x12d233['updateMarker'](_0x582d2b,{'range':_0x12d233['createRange'](_0x3d37d8,_0x1e69ab)}):_0x12d233['removeMarker'](_0x582d2b),!0x0);}function Gt(_0x2e39d9){return _0x4c6044(_0x2e39d9);}function Ft(_0x539dd9){const _0x9af0b=_0x539dd9['start']['nodeAfter'];return _0x9af0b&&_0x9af0b['is']('element');}function Pt(_0x3ab40d,_0x22da9a){return null==_0x3ab40d['end']['nodeBefore']&&_0x3ab40d['end']['parent']==_0x3ab40d['start']['nodeAfter']?Lt(_0x3ab40d['start']['nodeAfter'],_0x22da9a):_0x3ab40d;}function Lt(_0x6841be,_0x5bf9d5){const _0x68145b=_0x5bf9d5['schema']['isObject'](_0x6841be)||_0x5bf9d5['schema']['isSelectable'](_0x6841be);return _0x5bf9d5['createRange'](_0x5bf9d5['createPositionAt'](_0x6841be,'before'),_0x68145b?_0x5bf9d5['createPositionAfter'](_0x6841be):_0x5bf9d5['createPositionAt'](_0x6841be,'end'));}function Ht(_0xe525cc,_0x21b6a3,_0x33b3ee,_0x453283,_0xb19f80){if(_0xe525cc['next'])return!0x1;if(!Jt(_0xe525cc,_0x21b6a3))return!0x1;if(_0x33b3ee['end']['isEqual'](_0x453283['start']))return!0x0;if(_0xe525cc['type']!=_0x21b6a3['type'])return!0x1;if(!_0x33b3ee['end']['isTouching'](_0x453283['start']))return!0x1;const _0x53b9bd=_0xb19f80['createRange'](_0x33b3ee['end'],_0x453283['start'])['getWalker']();for(const _0x308622 of _0x53b9bd)if(['elementStart','elementEnd']['includes'](_0x308622['type'])&&_0xb19f80['schema']['isLimit'](_0x308622['item']))return!0x1;return!0x0;}function Jt(_0x15fdb1,_0x2e197f){if(!_0x15fdb1['_isDataLoaded']||!_0x2e197f['_isDataLoaded'])return!0x1;const _0x17413e=new Set(Object['keys'](_0x15fdb1['attributes'])),_0x46f437=new Set(Object['keys'](_0x2e197f['attributes']));if(_0x17413e['delete']('groupId'),_0x46f437['delete']('groupId'),0x0==_0x17413e['size']&&0x0==_0x46f437['size'])return!0x0;if(_0x17413e['size']!=_0x46f437['size'])return!0x1;const _0xcfa034={..._0x15fdb1['attributes']},_0x31a5ce={..._0x2e197f['attributes']};return delete _0xcfa034['groupId'],delete _0x31a5ce['groupId'],JSON['stringify'](_0xcfa034)==JSON['stringify'](_0x31a5ce);}function qt(_0x44239a,_0x125da6){const _0xc4e517=zt(_0x44239a['attributes']),_0x52e01c=zt(_0x125da6);if(!_0x44239a['_isDataLoaded'])return!0x1;for(const _0x524c5c of Object['keys'](_0x52e01c))if(!_0x18f859(_0xc4e517[_0x524c5c],_0x52e01c[_0x524c5c]))return!0x1;return!0x0;}function zt(_0x54aeb9){const _0x4a7924=Object['assign']({},_0x54aeb9);return delete _0x4a7924['skipNestingCheck'],delete _0x4a7924['tablePasteChainId'],_0x4a7924;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x2b10d0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xd58bfb,_0x29eaae,_0x569210,_0x45baef){super(),this['model']=_0x29eaae,this['view']=_0x569210,this['commentThreadController']=_0x45baef,this['_editor']=_0xd58bfb,this['_acceptCommand']=_0xd58bfb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xd58bfb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x50f9a3,_0x2b87c2)=>_0x50f9a3||_0x2b87c2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5c1a82=>_0x5c1a82&&this['_editor']['model']['canEditAt'](_0x29eaae['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x324b4c=>_0x324b4c&&this['_editor']['model']['canEditAt'](_0x29eaae['getRanges']())),this['_pendingAction']=null,_0x569210['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x569210,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x569210,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x569210,'change:isDirty',()=>{_0x569210['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 _0x57dbb6=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x57dbb6);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2e77b2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x52df24,_0x36e82b,_0x29be49,_0x4ebccd){super(_0x52df24),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5d1f8c(_0x52df24,o(_0x52df24,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x36e82b['authoredAt']),this['bind']('authoredAt')['to'](_0x36e82b),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',_0x36e82b,'authoredAt',this,'descriptionParts',(_0x1ad20c,_0x2c75a7,_0x6f24bf)=>{const _0x308b5e=_0x6f24bf['map'](_0x50701e=>ls(_0x50701e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1ad20c-0x1,_0x36e82b['author']['name'],_0x2c75a7?_0x4ebccd['formatDateTime'](_0x2c75a7):'',new DOMParser()['parseFromString'](_0x308b5e,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc1d6f2(),this['focusTracker']=new _0x29c71c(),this['keystrokes']=new _0x118e29(),this['focusCycler']=new _0x1bab62({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4d6d4d=>_0x4d6d4d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x36e82b,this['_localUser']=_0x29be49,this['_config']=_0x4ebccd,_0x4ebccd['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x42ddab(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x52d081}=this['_config'];this['commentsListView']=new _0x52d081(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',_0x271be2=>_0x271be2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x39b9d3,_0x9c99f1)=>_0x39b9d3||!!_0x9c99f1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5b42a6}=this['_config'],_0x389d3a=new _0x5b42a6(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x17a476=_0x389d3a['commentInputView'];return _0x389d3a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x17a476,'value',(_0x4c774a,_0x4d9862,_0x38a747)=>!!_0x38a747||_0x4c774a&&!_0x4d9862),_0x17a476['on']('submit',(_0x53c72b,_0x28d40b)=>{this['fire']('addComment',_0x28d40b),_0x17a476['editor']['setData']('');}),_0x17a476['on']('cancel',()=>this['focus']()),_0x17a476['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x389d3a;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2aa453,_0x39cb5f,_0x5522af,_0x76eefc){super(_0x2aa453,_0x39cb5f,_0x5522af,_0x76eefc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1ea0f0=>_0x1ea0f0&&_0x1ea0f0[0x0]?_0x1ea0f0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x51f777,_0xb8c2c1)=>{let _0x2fe481='';for(const _0x1df5b6 of _0x51f777)_0x2fe481+='<p>'+ls(_0x1df5b6['content'],_0x1df5b6['color'])+'</p>';return _0xb8c2c1?_0x2fe481:_0x70c494(_0x2fe481,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x76eefc['SuggestionView'](_0x2aa453,_0x39cb5f,{'formatDateTime':_0x76eefc['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 _0x1b2009=this['bindTemplate'],_0x3da97a=[this['suggestionView']];return this['commentsListView']&&_0x3da97a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3da97a['push'](this['commentThreadInputView']),_0x3da97a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1b2009['if']('isActive','ck-suggestion-wrapper--active'),_0x1b2009['to']('type',_0x365667=>'ck-suggestion-'+_0x365667),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':_0x1b2009['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3da97a};}['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 _0x2e77b2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x93d6dd,_0x180967,_0x110288){super(_0x93d6dd),this['_model']=_0x180967,this['_config']=_0x110288,this['set']('description',''),this['bind']('authoredAt')['to'](_0x180967),this['acceptButton']=this['_createButton'](o(_0x93d6dd,'Accept\x20suggestion'),_0x1775b6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x93d6dd,'Discard\x20suggestion'),_0x1775b6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3c9a2b(_0x93d6dd,_0x180967['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc1d6f2([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x29c71c(),this['keystrokes']=new _0x118e29(),this['focusCycler']=new _0x1bab62({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x23cbc4=>_0x23cbc4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x22f17a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x22f17a['innerHTML']=this['description'],this['on']('change:description',(_0x972b22,_0x1bacba,_0xaf062d)=>{_0x22f17a['innerHTML']=_0xaf062d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x30b05c=this['bindTemplate'],_0x572a03=[{'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':_0x30b05c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x30b05c['to']('authoredAt',_0x43d4e6=>this['_config']['formatDateTime'](_0x43d4e6))}]}]},{'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']&&_0x572a03['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':_0x572a03}]};}['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'](_0x43f550,_0x52e6be,_0x125fa0,_0x620ff8,_0x5ba689){const _0x4e6551=new _0xd8a8a9(this['locale']);return _0x4e6551['set']({'label':_0x43f550,'icon':_0x52e6be,'tooltip':!0x0,'tooltipPosition':_0x5ba689}),_0x4e6551['extendTemplate']({'attributes':{'class':_0x125fa0}}),_0x4e6551['on']('execute',()=>{this['fire'](_0x620ff8,this['_model']['id']);}),_0x4e6551;}['_setupKeyboardNavigation'](){const _0x14fd3d=this['element'];this['keystrokes']['listenTo'](_0x14fd3d);for(const _0x36a18f of this['focusables'])this['focusTracker']['add'](_0x36a18f['element']),this['keystrokes']['listenTo'](_0x36a18f['element']);this['keystrokes']['set']('enter',(_0x1fbda3,_0x2cb36b)=>{_0x14fd3d===_0x1fbda3['target']&&(this['focusCycler']['focusFirst'](),_0x2cb36b());}),this['keystrokes']['set']('esc',(_0x367530,_0x18985d)=>{_0x14fd3d!==_0x367530['target']&&(this['focus'](),_0x18985d());});}}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 _0x164833{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x56d174,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x218795){super(_0x218795),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2a5727=this['editor']['config'];_0x2a5727['define']('trackChanges.SuggestionThreadView',re),_0x2a5727['define']('trackChanges.SuggestionView',ce),_0x2a5727['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2a5727['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4a7f89,_0xe9e4f3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x35fd97,_0x2aab9b]of this['_handleControllerBuffer']){const _0x5119ef=this['_suggestionToController']['has'](_0x35fd97);_0x5119ef||_0x2aab9b?_0x5119ef&&_0x2aab9b&&this['_destroyController'](_0x35fd97):this['_initializeController'](_0x35fd97);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a7f89,_0xe9e4f3);}['init'](){const _0x6538b1=this['editor'],_0x429351=_0x6538b1['plugins']['get']('TrackChangesEditing'),_0x1d8f50=_0x6538b1['plugins']['get']('Annotations'),_0xa81625=_0x6538b1['plugins']['get']('EditorAnnotations'),_0x5a38a6=_0x6538b1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xa81625['addSourceCollector'](()=>{const _0x4cd531=[];for(const [_0x3207b5,_0x42ea2d]of Array['from'](this['_suggestionToController'])){const _0x13bded=_0x3207b5['getAllAdjacentSuggestions'](),_0x1eba92=[];for(const _0x57d37b of _0x13bded){if(!_0x57d37b['isInContent'])continue;if(_0x57d37b['isMultiRange']){_0x1eba92['push'](..._0x57d37b['getRanges']());continue;}const _0x253fc5=_0x57d37b['getFirstRange']();if(_0x1eba92['length']>0x0){const _0x25bf04=_0x1eba92[0x0]['getJoined'](_0x253fc5);if(_0x25bf04){_0x1eba92[0x0]=_0x25bf04;continue;}}_0x1eba92['push'](_0x253fc5);}_0x4cd531['push']([_0x42ea2d['view'],_0x1eba92]);}return _0x4cd531;}),this['listenTo'](_0x429351,'suggestionLoaded',(_0x514675,_0x25085e)=>{this['listenTo'](_0x25085e,'change:previous',(_0x1c662f,_0x798198,_0x2e6baf,_0x423aed)=>{_0x25085e['isInContent']&&(null==_0x2e6baf?(this['_updateController'](_0x423aed['head']),this['_handleSuggestionControllerDelayed'](_0x25085e,!0x1)):(this['_updateController'](_0x2e6baf['head']),null==_0x423aed&&this['_handleSuggestionControllerDelayed'](_0x25085e,!0x0)));}),null!==_0x25085e['previous']?this['_updateController'](_0x25085e['head']):this['_handleSuggestionControllerDelayed'](_0x25085e,!0x1);}),this['listenTo'](_0x429351,'suggestionUnloaded',(_0x22734a,_0x10a3f5,_0x32b438)=>{this['stopListening'](_0x10a3f5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x10a3f5),this['_suggestionToController']['has'](_0x10a3f5)&&this['_destroyController'](_0x10a3f5),_0x32b438&&this['_updateController'](_0x32b438['head']);}),this['listenTo'](_0x429351,'suggestionChanged',(_0x2d4ff9,_0x1729b6)=>{this['_updateController'](_0x1729b6);}),this['listenTo'](_0x1d8f50,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5a38a6,'addComment',(_0x38792c,{threadId:_0x138fe7,isFromAdapter:_0x57a42c})=>{if(_0x57a42c||!_0x429351['hasSuggestion'](_0x138fe7))return;const _0x279761=_0x429351['getSuggestion'](_0x138fe7);this['_suggestionToController']['get'](_0x279761)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x22fb0c=this['editor']['plugins']['get']('Annotations'),_0x5aa517=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4906f2=Array['from'](_0x22fb0c['activeAnnotations'],_0x3da99e=>_0x3da99e['innerView'])['filter'](_0x4e1928=>this['_viewToController']['has'](_0x4e1928)),_0x577165=[];for(const _0x10ff00 of _0x4906f2){const _0x580d27=this['_viewToController']['get'](_0x10ff00)['model']['getAllAdjacentSuggestions']();_0x577165['push'](..._0x580d27['reduce']((_0x49b8ce,_0x26fd03)=>[..._0x49b8ce,..._0x26fd03['getMarkerNames']()],[]));}_0x5aa517['activeMarkers']=_0x577165;}['_addUIComponentsToFactory'](){const _0x3b2a86=this['editor'],_0x51f705=_0x3b2a86['locale'],_0x16df4c=o(_0x51f705,'Track\x20changes'),_0x1c15a6=new Wt([{'type':'switchbutton','model':new _0x38b0c2({'withText':!0x0,'isToggleable':!0x0,'label':_0x16df4c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x38b0c2({'withText':!0x0,'label':o(_0x51f705,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38b0c2({'withText':!0x0,'label':o(_0x51f705,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38b0c2({'withText':!0x0,'label':o(_0x51f705,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38b0c2({'withText':!0x0,'label':o(_0x51f705,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3ba768 of _0x1c15a6)if(me(_0x3ba768)){const _0xd094e6=_0x3b2a86['commands']['get'](_0x3ba768['model']['commandName']);_0x3ba768['model']['bind']('isOn','isEnabled')['to'](_0xd094e6,'value','isEnabled');}_0x3b2a86['ui']['componentFactory']['add']('trackChanges',_0x1bda3d=>this['_createToolbarButton'](_0x1bda3d,_0x1c15a6,_0x16df4c)),_0x3b2a86['ui']['componentFactory']['add']('menuBar:trackChanges',_0x175741=>this['_createMenuBarMenu'](_0x175741,_0x1c15a6,_0x16df4c));}['_createToolbarButton'](_0x17919d,_0x20403d,_0xe414f4){const _0x2baf6f=Qt(_0x17919d,_0x550e0a),_0xa4c0b0=this['editor']['commands']['get']('trackChanges');_0x2baf6f['buttonView']['set']({'tooltip':_0xe414f4,'label':_0xe414f4,'icon':he}),_0x2baf6f['buttonView']['bind']('isOn')['to'](_0xa4c0b0,'value'),_0x2baf6f['buttonView']['on']('execute',()=>{_0xa4c0b0['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2baf6f,_0x20403d,{'role':'menu'});const _0x4df8a7=[];for(const _0x18509b of _0x20403d)me(_0x18509b)&&_0x4df8a7['push'](this['editor']['commands']['get'](_0x18509b['model']['commandName']));const _0x491c91=_0x2baf6f['buttonView'];return _0x491c91['actionView']['unbind']('isEnabled'),_0x491c91['arrowView']['unbind']('isEnabled'),_0x491c91['actionView']['bind']('isEnabled')['to'](_0xa4c0b0,'isEnabled'),_0x491c91['arrowView']['bind']('isEnabled')['toMany'](_0x4df8a7,'isEnabled',(..._0x401861)=>_0x401861['some'](_0x5671bf=>_0x5671bf)),_0x2baf6f['on']('execute',_0x17c49d=>{this['editor']['execute'](_0x17c49d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2baf6f;}['_createMenuBarMenu'](_0x67a6c4,_0x2c536e,_0x818801){const _0x5962aa=new Yt(_0x67a6c4),_0x14df29=this['editor']['commands']['get']('trackChanges');_0x5962aa['buttonView']['set']({'label':_0x818801,'icon':he});const _0x17769c=new Zt(_0x67a6c4);for(const _0x4c450d of _0x2c536e){if('separator'==_0x4c450d['type']){_0x17769c['items']['add'](new Xt(_0x67a6c4));continue;}const _0x271d71=new te(_0x67a6c4,_0x5962aa),_0x5b3e32=new _0x3e8f72(_0x67a6c4),_0x108cfe=_0x4c450d['model'];_0x5b3e32['bind'](...Object['keys'](_0x108cfe))['to'](_0x108cfe),_0x5b3e32['delegate']('execute')['to'](_0x5962aa),_0x5b3e32['on']('execute',()=>{this['editor']['execute'](_0x108cfe['commandName']),this['editor']['editing']['view']['focus']();}),_0x271d71['children']['add'](_0x5b3e32),_0x17769c['items']['add'](_0x271d71);}return _0x5962aa['bind']('isEnabled')['to'](_0x14df29,'isEnabled'),_0x5962aa['panelView']['children']['add'](_0x17769c),_0x5962aa;}['_initializeController'](_0x3b820b){const _0x5a696f=this['editor'],_0x59d73f=_0x5a696f['config'],_0x4341cd=_0x5a696f['plugins']['get']('Annotations'),_0x30786e=_0x5a696f['plugins']['get']('CommentsRepository'),_0x2325c4=_0x5a696f['plugins']['get']('EditorAnnotations'),_0x3f5f94=_0x5a696f['plugins']['get'](_0x56d174)['me'],_0x1ab38f=_0x59d73f['get']('trackChanges')['SuggestionThreadView'],_0x561636=_0x59d73f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xe6c433,CommentThreadInputView:_0x330e46}=_0x5a696f['plugins']['get']('CommentsUI');let _0x35fbac,_0x4d8649,_0x5d39b1;this['_annotationViews']['has'](_0x3b820b['id'])?(_0x4d8649=this['_annotationViews']['get'](_0x3b820b['id']),_0x35fbac=_0x4d8649['mainView']):(_0x35fbac=new _0x1ab38f(_0x5a696f['locale'],_0x3b820b,_0x3f5f94,{'disableComments':this['_disableComments'],'editorConfig':_0x59d73f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x59d73f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x59d73f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x59d73f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1c564c(_0x59d73f['get']('locale')),'CommentView':_0x59d73f['get']('comments')['CommentView'],'CommentsListView':_0xe6c433,'CommentThreadInputView':_0x330e46,'SuggestionView':_0x561636}),_0x35fbac['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a696f['editing']['view']['focus']();}),_0x35fbac['suggestionView']['discardButton']['on']('execute',()=>{_0x5a696f['editing']['view']['focus']();}),_0x4d8649=_0x4341cd['createAnnotationView'](this['editor']['locale'],_0x35fbac),_0x4d8649['bind']('isDirty')['to'](_0x35fbac,'isDirty'),_0x4d8649['bind']('length')['to'](_0x35fbac),_0x4d8649['bind']('type')['to'](_0x35fbac,'type',_0xeb5202=>'suggestion-'+_0xeb5202),_0x35fbac['on']('escape',()=>{_0x5d39b1['fire']('escape');}),this['_annotationViews']['set'](_0x3b820b['id'],_0x4d8649));const _0x301a3b=_0x30786e['createCommentThreadController'](_0x3b820b['commentThread'],_0x35fbac),_0x54c898=new ae(_0x5a696f,_0x3b820b,_0x35fbac,_0x301a3b),_0x4add63=_0x3b820b['getAllAdjacentSuggestions']()['filter'](_0x33f21c=>_0x33f21c['isInContent']);_0x35fbac['descriptionParts']=_0x5a696f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4add63),this['_suggestionToController']['set'](_0x3b820b,_0x54c898),this['_viewToController']['set'](_0x35fbac,_0x54c898),_0x5d39b1=_0x4341cd['createAnnotation']({'view':_0x4d8649,'target':()=>{const _0x1746e8=[],_0x497d40=_0x3b820b['getAllAdjacentSuggestions']()['filter'](_0x5a6cdf=>_0x5a6cdf['isInContent']);for(const _0x55a6b3 of _0x497d40)_0x1746e8['push'](..._0x55a6b3['getMarkers']());return _0x201479(_0x5a696f['editing'],_0x1746e8);},'type':()=>'suggestion-'+_0x54c898['view']['type']}),_0x30786e['_bindAnnotationToEditors'](_0x35fbac,_0x5d39b1),_0x4341cd['add'](_0x5d39b1),_0x2325c4['registerAnnotation'](_0x5d39b1);}['_destroyController'](_0x420567){const _0x502c2e=this['editor']['plugins']['get']('CommentsRepository'),_0x2cc97e=this['editor']['plugins']['get']('Annotations'),_0x2cc7aa=this['_suggestionToController']['get'](_0x420567),_0x25704d=_0x2cc7aa['view'],_0x320c51=_0x2cc97e['getByInnerView'](_0x25704d);_0x502c2e['_unbindEditors'](_0x25704d),_0x320c51&&_0x2cc97e['remove'](_0x320c51),this['_suggestionToController']['delete'](_0x420567),this['_viewToController']['delete'](_0x25704d),_0x2cc7aa['destroy']();}['_updateController'](_0x56d0a2){if(!_0x56d0a2['isInContent']||!this['_suggestionToController']['has'](_0x56d0a2))return;const _0x12daea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x597c82=this['_suggestionToController']['get'](_0x56d0a2),_0x42a8d4=_0x56d0a2['getAllAdjacentSuggestions']();_0x597c82['view']['descriptionParts']=_0x12daea['descriptionFactory']['getDescriptions'](_0x42a8d4);}['destroy'](){for(const _0x12af53 of this['_suggestionToController']['keys']())this['_destroyController'](_0x12af53);for(const _0x3a5547 of this['_annotationViews']['values']())_0x3a5547['mainView']['destroy']();super['destroy']();}}function me(_0x30b74e){return'model'in _0x30b74e;}class k extends _0x164833{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x50fdec){this['editor']['plugins']['get'](p)['adapter']=_0x50fdec;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2084b8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2084b8);}['getSuggestions']({skipNotAttached:_0x6bc802=!0x1,toJSON:_0x4e55a6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x6bc802,'toJSON':_0x4e55a6});}['getSuggestion'](_0xabf25f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xabf25f);}}const T=['Pagination'];class P extends _0x164833{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x53cc95=this['editor'];if(_0x53cc95['config']['define']('trackChangesData.editorCreator',_0x4b6e12=>{const _0x27311a=_0x53cc95['model']['document']['getRootNames']()['reduce']((_0x3bb7fe,_0x618980)=>(_0x3bb7fe[_0x618980]='',_0x3bb7fe),{});return _0x53cc95['constructor']['create'](_0x27311a,_0x4b6e12);}),'function'!=typeof _0x53cc95['config']['get']('trackChangesData')['editorCreator'])throw new _0xa2aa4e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x41a2fa){return N(this['editor'],!0x0,_0x41a2fa);}['getDataWithDiscardedSuggestions'](_0x213419){return N(this['editor'],!0x1,_0x213419);}}class D extends _0x164833{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1d5607){super(_0x1d5607),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(_0x556a5e){return void 0x0!==_0x556a5e['getRootsAttributes'];}async function N(_0x478aa8,_0x11d52e,_0x1b1af2){const _0xffa74f=_0x20f9f8(_0x478aa8,T);_0xffa74f['plugins']['push'](p,D),_0xffa74f['rootsAttributes']=v(_0x478aa8)?_0x478aa8['getRootsAttributes']():void 0x0;const _0x3f1617=document['createDocumentFragment'](),_0x568346=_0x478aa8['config']['get']('trackChangesData')['editorCreator'],_0x11d098=await _0x568346(_0xffa74f,()=>function(_0xe7963a){const _0x524788=document['createElement']('div');return _0xe7963a['appendChild'](_0x524788),_0x524788;}(_0x3f1617));!function(_0xfa0bd7,_0xd8f939){const _0x859ff2=_0xfa0bd7['model']['document']['getRootNames']()['reduce']((_0x518bab,_0x4b65a0)=>(_0x518bab[_0x4b65a0]=_0xfa0bd7['data']['get']({'rootName':_0x4b65a0}),_0x518bab),{}),_0xa9933d=_0xfa0bd7['plugins']['get']('Users')['users']['map'](_0x1c2a1f=>({'id':_0x1c2a1f['id'],'name':_0x1c2a1f['name']})),_0x55610d=_0xfa0bd7['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19b31d=_0xfa0bd7['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x36cc7a=_0xd8f939['plugins']['get']('Users'),_0x2f2899=_0xd8f939['plugins']['get']('TrackChangesEditing'),_0x33b551=_0xd8f939['plugins']['get']('CommentsRepository');for(const _0x27e1c9 of _0x33b551['getCommentThreads']())_0x27e1c9['remove']();for(const _0xd764b7 of _0xa9933d)_0x36cc7a['getUser'](_0xd764b7['id'])||_0x36cc7a['addUser'](_0xd764b7);_0x36cc7a['me']||_0x36cc7a['useAnonymousUser']();for(const _0x32f4b6 of _0x19b31d)_0x33b551['addCommentThread'](_0x32f4b6);for(const _0x2673f3 of _0x55610d)_0x2f2899['addSuggestionData'](_0x2673f3);_0xd8f939['data']['set'](_0x859ff2);}(_0x478aa8,_0x11d098),_0x11d098['execute'](_0x11d52e?'acceptAllSuggestions':'discardAllSuggestions');const _0x4c7617=v(_0x11d098)?_0x11d098['getFullData'](_0x1b1af2):_0x11d098['data']['get'](_0x1b1af2);return await _0x11d098['destroy'](),_0x4c7617;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};