@ckeditor/ckeditor5-track-changes 43.0.0-alpha.4 → 43.0.0-alpha.6

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 (182) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +3 -3
  4. package/dist/trackchangesconfig.d.ts +7 -0
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/az.js +1 -1
  8. package/dist/translations/az.umd.js +1 -1
  9. package/dist/translations/bg.js +1 -1
  10. package/dist/translations/bg.umd.js +1 -1
  11. package/dist/translations/bn.js +1 -1
  12. package/dist/translations/bn.umd.js +1 -1
  13. package/dist/translations/ca.js +1 -1
  14. package/dist/translations/ca.umd.js +1 -1
  15. package/dist/translations/cs.js +1 -1
  16. package/dist/translations/cs.umd.js +1 -1
  17. package/dist/translations/da.js +1 -1
  18. package/dist/translations/da.umd.js +1 -1
  19. package/dist/translations/de.js +1 -1
  20. package/dist/translations/de.umd.js +1 -1
  21. package/dist/translations/el.js +1 -1
  22. package/dist/translations/el.umd.js +1 -1
  23. package/dist/translations/en-au.js +1 -1
  24. package/dist/translations/en-au.umd.js +1 -1
  25. package/dist/translations/en.umd.js +1 -1
  26. package/dist/translations/es.js +1 -1
  27. package/dist/translations/es.umd.js +1 -1
  28. package/dist/translations/et.js +1 -1
  29. package/dist/translations/et.umd.js +1 -1
  30. package/dist/translations/fi.js +1 -1
  31. package/dist/translations/fi.umd.js +1 -1
  32. package/dist/translations/fr.js +1 -1
  33. package/dist/translations/fr.umd.js +1 -1
  34. package/dist/translations/gl.js +1 -1
  35. package/dist/translations/gl.umd.js +1 -1
  36. package/dist/translations/he.js +1 -1
  37. package/dist/translations/he.umd.js +1 -1
  38. package/dist/translations/hi.js +1 -1
  39. package/dist/translations/hi.umd.js +1 -1
  40. package/dist/translations/hr.js +1 -1
  41. package/dist/translations/hr.umd.js +1 -1
  42. package/dist/translations/hu.js +1 -1
  43. package/dist/translations/hu.umd.js +1 -1
  44. package/dist/translations/id.js +1 -1
  45. package/dist/translations/id.umd.js +1 -1
  46. package/dist/translations/it.js +1 -1
  47. package/dist/translations/it.umd.js +1 -1
  48. package/dist/translations/ja.js +1 -1
  49. package/dist/translations/ja.umd.js +1 -1
  50. package/dist/translations/ko.js +1 -1
  51. package/dist/translations/ko.umd.js +1 -1
  52. package/dist/translations/lt.js +1 -1
  53. package/dist/translations/lt.umd.js +1 -1
  54. package/dist/translations/lv.js +1 -1
  55. package/dist/translations/lv.umd.js +1 -1
  56. package/dist/translations/ms.js +1 -1
  57. package/dist/translations/ms.umd.js +1 -1
  58. package/dist/translations/nl.js +1 -1
  59. package/dist/translations/nl.umd.js +1 -1
  60. package/dist/translations/no.js +1 -1
  61. package/dist/translations/no.umd.js +1 -1
  62. package/dist/translations/pl.js +1 -1
  63. package/dist/translations/pl.umd.js +1 -1
  64. package/dist/translations/pt-br.js +1 -1
  65. package/dist/translations/pt-br.umd.js +1 -1
  66. package/dist/translations/pt.js +1 -1
  67. package/dist/translations/pt.umd.js +1 -1
  68. package/dist/translations/ro.js +1 -1
  69. package/dist/translations/ro.umd.js +1 -1
  70. package/dist/translations/ru.js +1 -1
  71. package/dist/translations/ru.umd.js +1 -1
  72. package/dist/translations/sk.js +1 -1
  73. package/dist/translations/sk.umd.js +1 -1
  74. package/dist/translations/sq.js +1 -1
  75. package/dist/translations/sq.umd.js +1 -1
  76. package/dist/translations/sr-latn.js +1 -1
  77. package/dist/translations/sr-latn.umd.js +1 -1
  78. package/dist/translations/sr.js +1 -1
  79. package/dist/translations/sr.umd.js +1 -1
  80. package/dist/translations/sv.js +1 -1
  81. package/dist/translations/sv.umd.js +1 -1
  82. package/dist/translations/th.js +1 -1
  83. package/dist/translations/th.umd.js +1 -1
  84. package/dist/translations/tk.js +1 -1
  85. package/dist/translations/tk.umd.js +1 -1
  86. package/dist/translations/tr.js +1 -1
  87. package/dist/translations/tr.umd.js +1 -1
  88. package/dist/translations/tt.js +1 -1
  89. package/dist/translations/tt.umd.js +1 -1
  90. package/dist/translations/uk.js +1 -1
  91. package/dist/translations/uk.umd.js +1 -1
  92. package/dist/translations/ur.js +1 -1
  93. package/dist/translations/ur.umd.js +1 -1
  94. package/dist/translations/vi.js +1 -1
  95. package/dist/translations/vi.umd.js +1 -1
  96. package/dist/translations/zh-cn.js +1 -1
  97. package/dist/translations/zh-cn.umd.js +1 -1
  98. package/dist/translations/zh.js +1 -1
  99. package/dist/translations/zh.umd.js +1 -1
  100. package/dist/ui/suggestioncontroller.d.ts +1 -1
  101. package/dist/ui/view/basesuggestionthreadview.d.ts +8 -2
  102. package/dist/ui/view/suggestionthreadview.d.ts +42 -137
  103. package/dist/ui/view/suggestionview.d.ts +194 -0
  104. package/package.json +10 -10
  105. package/src/commands/acceptsuggestioncommand.js +1 -1
  106. package/src/commands/discardsuggestioncommand.js +1 -1
  107. package/src/commands/executeonallsuggestionscommand.js +1 -1
  108. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  109. package/src/commands/trackchangescommand.js +1 -1
  110. package/src/index.d.ts +1 -0
  111. package/src/index.js +1 -1
  112. package/src/integrations/aiassistant.js +1 -1
  113. package/src/integrations/alignment.js +1 -1
  114. package/src/integrations/basicstyles.js +1 -1
  115. package/src/integrations/blockquote.js +1 -1
  116. package/src/integrations/casechange.js +1 -1
  117. package/src/integrations/ckbox.js +1 -1
  118. package/src/integrations/codeblock.js +1 -1
  119. package/src/integrations/comments.js +1 -1
  120. package/src/integrations/deletecommand.js +1 -1
  121. package/src/integrations/entercommand.js +1 -1
  122. package/src/integrations/findandreplace.js +1 -1
  123. package/src/integrations/font.js +1 -1
  124. package/src/integrations/formatpainter.js +1 -1
  125. package/src/integrations/heading.js +1 -1
  126. package/src/integrations/highlight.js +1 -1
  127. package/src/integrations/horizontalline.js +1 -1
  128. package/src/integrations/htmlembed.js +1 -1
  129. package/src/integrations/image.js +1 -1
  130. package/src/integrations/imagereplace.js +1 -1
  131. package/src/integrations/imagestyle.js +1 -1
  132. package/src/integrations/importword.js +1 -1
  133. package/src/integrations/indent.js +1 -1
  134. package/src/integrations/inputcommand.js +1 -1
  135. package/src/integrations/legacylist.js +1 -1
  136. package/src/integrations/legacylistproperties.js +1 -1
  137. package/src/integrations/link.js +1 -1
  138. package/src/integrations/list.js +1 -1
  139. package/src/integrations/listproperties.js +1 -1
  140. package/src/integrations/mediaembed.js +1 -1
  141. package/src/integrations/mention.js +1 -1
  142. package/src/integrations/mergefields.js +1 -1
  143. package/src/integrations/multilevellist.js +1 -1
  144. package/src/integrations/pagebreak.js +1 -1
  145. package/src/integrations/paragraph.js +1 -1
  146. package/src/integrations/removeformat.js +1 -1
  147. package/src/integrations/restrictededitingmode.js +1 -1
  148. package/src/integrations/shiftentercommand.js +1 -1
  149. package/src/integrations/standardeditingmode.js +1 -1
  150. package/src/integrations/style.js +1 -1
  151. package/src/integrations/table.js +1 -1
  152. package/src/integrations/tablecaption.js +1 -1
  153. package/src/integrations/tableclipboard.js +1 -1
  154. package/src/integrations/tablecolumnresize.js +1 -1
  155. package/src/integrations/tableheadings.js +1 -1
  156. package/src/integrations/tablemergesplit.js +1 -1
  157. package/src/integrations/tableofcontents.js +1 -1
  158. package/src/integrations/tableproperties.js +1 -1
  159. package/src/integrations/template.js +1 -1
  160. package/src/integrations/title.js +1 -1
  161. package/src/integrations/undo.js +1 -1
  162. package/src/integrations/utils.js +1 -1
  163. package/src/suggestion.js +2 -2
  164. package/src/suggestiondescriptionfactory.js +1 -1
  165. package/src/trackchanges.js +1 -1
  166. package/src/trackchangesconfig.d.ts +7 -0
  167. package/src/trackchangesdata.js +1 -1
  168. package/src/trackchangesediting.js +1 -1
  169. package/src/trackchangesui.js +1 -1
  170. package/src/ui/suggestioncontroller.d.ts +1 -1
  171. package/src/ui/suggestioncontroller.js +2 -2
  172. package/src/ui/view/basesuggestionthreadview.d.ts +8 -2
  173. package/src/ui/view/basesuggestionthreadview.js +1 -1
  174. package/src/ui/view/suggestionthreadview.d.ts +42 -137
  175. package/src/ui/view/suggestionthreadview.js +1 -1
  176. package/src/ui/view/suggestionview.d.ts +190 -0
  177. package/src/ui/view/suggestionview.js +23 -0
  178. package/src/utils/common-translations.js +1 -1
  179. package/src/utils/utils.js +1 -1
  180. package/theme/icons/track-changes-accept.svg +1 -1
  181. package/theme/icons/track-changes-discard.svg +1 -1
  182. package/theme/icons/track-changes.svg +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x231f11,PendingActions as _0x501b59,icons as _0x2fe3e0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x643216,ObservableMixin as _0x16dac0,uid as _0x138912,insertToPriorityArray as _0x11940f,priorities as _0x29c3cb,logWarning as _0x5ca2b0,getEnvKeystrokeText as _0x52bb84,FocusTracker as _0x416a3b,KeystrokeHandler as _0x561c62,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2730f7,View as _0x1366ed,ViewCollection as _0x4fdb1d,FocusCycler as _0x4afa17,ViewModel as _0x4a9ebe,createDropdown as Qt,SplitButtonView as _0x8f9698,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x319522}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x588554,hashObject as _0xde5278,surroundingMarkersDetector as _0x5d8177,ENTER_THREAD_KEYSTROKE as _0x2853f2,AriaDescriptionView as _0x5395b3,setupThreadKeyboardNavigation as _0x19268d,trimHtml as _0x21551e,UserView as _0x43d9f3,LateFocusButtonView as _0x3ae7a3,getDateTimeFormatter as _0x276638,getAllMarkersDomElementsSorted as _0x15af51,sanitizeEditorConfig as _0x2f475e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x580960,LiveRange as _0x135447,LivePosition as _0x21ff1b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xeec9d,toWidget as _0x21b8ef}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x19973e,set as _0x1117ee,isEqual as _0x28ce4a,unset as _0x4206fc,omit as Tt}from'lodash-es';import{Delete as _0x1d1228,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x31408b,ShiftEnter as _0x4e9e3c}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x201702,_0x3681e3){super(_0x201702),this['_enabledCommands']=_0x3681e3,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 _0xa1eb1f of this['editor']['commands']['commands']())_0xa1eb1f['affectsData']&&!this['_enabledCommands']['has'](_0xa1eb1f)&&_0xa1eb1f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3a4c0e of this['editor']['commands']['commands']())_0x3a4c0e['affectsData']&&!this['_enabledCommands']['has'](_0x3a4c0e)&&_0x3a4c0e['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x29f377,_0xdf2eaf){super(_0x29f377),this['_suggestions']=_0xdf2eaf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x28210b){const _0x35afca=this['_suggestions']['get'](_0x28210b);if(!_0x35afca)throw new _0x643216('track-changes-accept-suggestion-not-found',this);const _0x3123b1=_0x35afca['getRanges']();this['editor']['model']['canEditAt'](_0x3123b1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x35afca);}}class R extends ts{['_suggestions'];constructor(_0x2c302e,_0x51e6b4){super(_0x2c302e),this['_suggestions']=_0x51e6b4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3809be){const _0x47a688=this['_suggestions']['get'](_0x3809be);if(!_0x47a688)throw new _0x643216('track-changes-discard-suggestion-not-found',this);const _0x3cbbf1=_0x47a688['getRanges']();this['editor']['model']['canEditAt'](_0x3cbbf1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x47a688);}}function ls(_0x266796,_0x26e084){let _0x14302b='';return _0x14302b+=_0x266796['split']('*')['map']((_0x4e1a25,_0x22a788)=>_0x22a788%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4e1a25)+'</span>':nn(_0x4e1a25))['join'](''),_0x26e084&&(_0x14302b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x26e084['value']+'\x22\x20title=\x22'+_0x26e084['title']+'\x22></span>'),_0x14302b;}function nn(_0x16049e){const _0x5aeaa8=document['createElement']('span');return _0x5aeaa8['innerText']=_0x16049e,_0x5aeaa8['innerHTML'];}function ss(_0x4dc0eb){return _0x4dc0eb['sort']((_0x370f9a,_0x174442)=>'deletion'==_0x370f9a['type']&&'deletion'!=_0x174442['type']?-0x1:'deletion'!=_0x370f9a['type']&&'deletion'==_0x174442['type']?0x1:0x0);}function to(_0x76a72d,_0x246419){let _0x11df32,_0x3dcb64=0x0;const _0x331fcd=[],_0x501198=_0x246419['schema'];for(;_0x3dcb64<_0x76a72d['length'];){const _0x240f00=_0x76a72d[_0x3dcb64],_0x2d1b60=_0x76a72d[_0x3dcb64+0x1];_0x11df32||(_0x11df32=_0x246419['createPositionBefore'](_0x240f00)),on(_0x246419,_0x240f00,_0x2d1b60)||(_0x331fcd['push'](_0x246419['createRange'](_0x11df32,_0x501198['isObject'](_0x240f00)?_0x246419['createPositionAfter'](_0x240f00):_0x246419['createPositionAt'](_0x240f00,'end'))),_0x11df32=null),_0x3dcb64++;}return _0x331fcd;}function on(_0xb9defd,_0x40bb64,_0x6cb0fa){if(!_0x6cb0fa)return!0x1;const _0x5a75d6=_0xb9defd['createPositionAfter'](_0x40bb64),_0x53b57d=_0xb9defd['createPositionBefore'](_0x6cb0fa);return _0x5a75d6['isTouching'](_0x53b57d);}function rs(_0x1921b8,_0x4392fe,_0x3fb055){for(;_0x3fb055['length'];){const _0x413f48=_0x3fb055['splice'](0x0,0x64);_0x1921b8['change'](()=>{for(const _0x3b6d36 of _0x413f48)_0x3b6d36['isInContent']&&_0x4392fe['execute'](_0x3b6d36['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x58ca72,_0x4590c8,_0x29138f){super(_0x58ca72),this['_command']=_0x4590c8,this['_suggestions']=_0x29138f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x79aee3=Array['from'](this['_suggestions']['values']())['some'](_0x543a2c=>_0x543a2c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x79aee3;}['execute'](){const _0x33f065=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4df3bc of _0x33f065){const _0x6ff8cb=_0x4df3bc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6ff8cb))return;}rs(this['editor']['model'],this['_command'],_0x33f065);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x276782,_0x4ab2e6,_0x4917ca){super(_0x276782),this['_command']=_0x4ab2e6,this['_suggestions']=_0x4917ca,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2048ac=this['editor']['model']['document']['selection'],_0x4117ef=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5cbfc4,_0x7b4c22){const _0x21201c=Array['from'](_0x5cbfc4['getRanges']()),_0x2885dc=new Set();for(const _0x42bde4 of _0x7b4c22)if(_0x42bde4['isInContent']){for(const _0x9acc3c of _0x21201c)for(const _0x2fdcaf of _0x42bde4['getRanges']())(_0x9acc3c['isIntersecting'](_0x2fdcaf)||_0x5cbfc4['isCollapsed']&&!_0x42bde4['isMultiRange']&&_0x42bde4['next']&&_0x2fdcaf['end']['isTouching'](_0x9acc3c['start']))&&_0x2885dc['add'](_0x42bde4);}return _0x2885dc;}(_0x2048ac,_0x4117ef),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1205c0=ss(Array['from'](this['_selectedSuggestions']));for(const _0x16d34b of _0x1205c0){const _0x2ca3ca=_0x16d34b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ca3ca))return;}rs(this['editor']['model'],this['_command'],_0x1205c0);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x16dac0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3cda78,_0x377161){super(),this['id']=_0x377161['id'],this['type']=_0x377161['type'],this['subType']=_0x377161['subType']||null,this['author']=_0x377161['author'],this['creator']=_0x377161['creator']||_0x377161['author'],this['isExternal']=Boolean(_0x377161['attributes']&&_0x377161['attributes']['@external']),this['data']=null,this['_model']=_0x3cda78,this['_onAccept']=_0x377161['onAccept'],this['_onDiscard']=_0x377161['onDiscard'],this['_onAttributesChange']=_0x377161['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x377161['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 _0x2dbc57=this;for(;_0x2dbc57['previous'];)_0x2dbc57=_0x2dbc57['previous'];return _0x2dbc57;}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'](_0x40fe51){this['_markerNames']['add'](_0x40fe51);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5abfbf=>this['_model']['markers']['get'](_0x5abfbf))['filter'](_0x3130b8=>_0x3130b8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x163e52=>{for(const _0xd1e6ce of this['getMarkers']())_0x163e52['removeMarker'](_0xd1e6ce);}),this['_markerNames']['clear']();}['removeMarker'](_0x93ac0f){this['_model']['change'](_0x3aec51=>{_0x3aec51['removeMarker'](_0x93ac0f);}),this['_markerNames']['delete'](_0x93ac0f);}['addRange'](_0x97842b){const _0x5f5bb3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5f5bb3),this['_model']['change'](_0x292948=>{_0x292948['addMarker'](_0x5f5bb3,{'range':_0x97842b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2e9eed){for(const _0xabfd5a of this['getRanges']())if(_0xabfd5a['isIntersecting'](_0x2e9eed))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47e198=>_0x47e198['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x187b8f,_0x30ee3b)=>[..._0x187b8f,..._0x30ee3b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3ac9be=this['getRanges']();if(0x1!=_0x3ac9be['length'])return null;const _0x1b8157=_0x3ac9be[0x0],_0x1b5799=_0x1b8157['start']['nodeAfter'],_0x3a0548=_0x1b8157['end']['nodeBefore'];return _0x1b5799 instanceof _0x580960?_0x1b5799!=_0x3a0548?null:_0x1b5799: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 _0xc07dfd=[];let _0x2d2246=this['head'];for(;_0x2d2246;)_0xc07dfd['push'](_0x2d2246),_0x2d2246=_0x2d2246['next'];return _0xc07dfd;}['setAttribute'](_0x1a4425,_0x13e079){const _0x2c3245=_0x19973e(this['attributes']);_0x1117ee(_0x2c3245,_0x1a4425,_0x13e079),_0x28ce4a(_0x2c3245,this['attributes'])||(this['attributes']=_0x2c3245,this['_onAttributesChange'](_0x2c3245));}['removeAttribute'](_0xa6629f){const _0x550f62=_0x19973e(this['attributes']);_0x4206fc(_0x550f62,_0xa6629f),_0x28ce4a(_0x550f62,this['attributes'])||(this['attributes']=_0x550f62,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 _0x138912()['substr'](0x1,0x5);}}function o(_0xf3be77,_0x11715b,_0x5d24f2){const t=_0xf3be77['t'];switch(_0x11715b){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',_0x5d24f2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d24f2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d24f2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d24f2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d24f2);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',_0x5d24f2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d24f2);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',_0x5d24f2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d24f2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d24f2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d24f2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d24f2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d24f2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d24f2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d24f2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d24f2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d24f2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d24f2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d24f2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d24f2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d24f2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d24f2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d24f2);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'},_0x5d24f2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d24f2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d24f2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d24f2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d24f2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d24f2);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'},_0x5d24f2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d24f2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d24f2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d24f2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d24f2);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'},_0x5d24f2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d24f2);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'},_0x5d24f2);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'},_0x5d24f2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d24f2);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'},_0x5d24f2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d24f2);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'},_0x5d24f2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d24f2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d24f2);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'},_0x5d24f2);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'},_0x5d24f2);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'},_0x5d24f2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d24f2);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'},_0x5d24f2);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'},_0x5d24f2);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'},_0x5d24f2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x11715b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x134d95,_0x62d00a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x134d95,this['_locale']=_0x62d00a;}['getDescriptions'](_0x11a74f){const _0x49560b=[],_0xa734de=new Set(),_0x30d955=new Set();for(let _0x313325=0x0;_0x313325<_0x11a74f['length'];_0x313325++){const _0x55d5ff=_0x11a74f[_0x313325];if(!_0x55d5ff['isInContent'])continue;const _0x1b7868=this['_handleCustomCallbackDescription'](_0x55d5ff);if(_0x1b7868){if(null!=_0x55d5ff['subType']){if(_0xa734de['has'](_0x55d5ff['subType']))continue;_0xa734de['add'](_0x55d5ff['subType']);}_0x49560b['push'](_0x1b7868);}else{if('attribute'!=_0x55d5ff['type'])'insertion'!=_0x55d5ff['type']&&'deletion'!=_0x55d5ff['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49560b,_0x55d5ff,_0x11a74f[_0x313325+0x1]);else{const _0x16ad75=_0x55d5ff['data']['key'];if(_0x30d955['has'](_0x16ad75))continue;_0x30d955['add'](_0x55d5ff['data']['key']),_0x16ad75==m?this['_handleRenameSuggestionDescription'](_0x49560b,_0x55d5ff):this['_handleAttributeSuggestionDescription'](_0x49560b,_0x55d5ff);}}}return this['_resolveDescriptionItems'](_0x49560b);}['registerDescriptionCallback'](_0x200839){this['_customCallbacks']['push'](_0x200839);}['registerElementLabel'](_0xb54eba,_0x15776f,_0x11a654=_0x29c3cb['normal']){'function'==typeof _0xb54eba?_0x11940f(this['_itemLabelsCallbacks'],{'matchingCallback':_0xb54eba,'label':_0x15776f,'priority':_0x11a654}):this['_itemLabels']['set'](_0xb54eba,_0x15776f);}['registerAttributeLabel'](_0x9397eb,_0x3c8ea7){this['_attributeLabels']['set'](_0x9397eb,_0x3c8ea7);}['getItemLabel'](_0x48ddd5,_0x5c728e=0x1){let _0x1197f9;for(const _0x356ce9 of this['_itemLabelsCallbacks'])if(_0x356ce9['matchingCallback'](_0x48ddd5)){_0x1197f9=_0x356ce9['label'];break;}return _0x1197f9||(_0x1197f9=this['_itemLabels']['get'](_0x48ddd5['name'])),_0x1197f9?_0x1197f9(_0x5c728e):0x1!==_0x5c728e?_0x5c728e+'\x20'+_0x48ddd5['name']+'s':''+_0x48ddd5['name'];}['_addDescriptionItems'](_0x4a67b1,_0x42c248){const _0x5d4c66=_0x42c248['getFirstRange']()['getWalker'](),_0x416775='insertion'==_0x42c248['type']?'add':'remove';for(const _0x44aa10 of _0x5d4c66){const _0x165caf=_0x44aa10['item'],_0x14e4ba=_0x4a67b1[_0x4a67b1['length']-0x1];if(_0x165caf['is']('$textProxy'))_0x14e4ba&&_0x14e4ba['type']['indexOf']('Container')>-0x1&&_0x4a67b1['pop'](),_0x14e4ba&&'text'==_0x14e4ba['type']?_0x14e4ba[_0x416775]+=_0x165caf['data']:_0x4a67b1['push']({'type':'text','add':'add'==_0x416775?_0x165caf['data']:'','remove':'remove'==_0x416775?_0x165caf['data']:''});else{if(this['_schema']['isObject'](_0x165caf)){const _0x2d668e=_0x165caf;if(_0x14e4ba&&_0x14e4ba['type']['indexOf']('Container')>-0x1&&_0x4a67b1['pop'](),'elementEnd'==_0x44aa10['type'])continue;_0x14e4ba&&_0x14e4ba['type']==_0x416775+'Object'&&_0x14e4ba['element']['name']==_0x2d668e['name']?_0x14e4ba['quantity']++:_0x4a67b1['push']({'type':_0x416775+'Object','element':_0x2d668e,'quantity':0x1}),_0x5d4c66['skip'](_0x2f892d=>!('elementEnd'==_0x2f892d['type']&&_0x2f892d['item']==_0x165caf));}else{if(this['_schema']['checkChild'](_0x165caf,'$text')||_0x165caf['is']('element','softBreak')){const _0x17f5be=_0x165caf;if('add'==_0x416775&&'elementStart'==_0x44aa10['type']||'remove'==_0x416775&&'elementEnd'==_0x44aa10['type'])continue;if(_0x14e4ba&&-0x1==_0x14e4ba['type']['indexOf']('Container')){'text'==_0x14e4ba['type']&&(_0x14e4ba[_0x416775]+='\x0a');continue;}let _0x100ec9;if(_0x100ec9='add'==_0x416775?_0x17f5be['nextSibling']&&!this['_schema']['isObject'](_0x17f5be['nextSibling'])?_0x17f5be['nextSibling']:null:_0x17f5be['previousSibling']&&!this['_schema']['isObject'](_0x17f5be['previousSibling'])?_0x17f5be['previousSibling']:null,_0x17f5be['isEmpty']||_0x100ec9&&_0x100ec9['isEmpty']){const _0x393ad2=_0x100ec9&&_0x100ec9['isEmpty']?_0x100ec9:_0x17f5be;_0x14e4ba&&_0x14e4ba['type']==_0x416775+'EmptyContainer'&&_0x14e4ba['element']['name']==_0x393ad2['name']?_0x14e4ba['quantity']++:_0x4a67b1['push']({'type':_0x416775+'EmptyContainer','element':_0x393ad2,'quantity':0x1});}else _0x4a67b1['push']({'type':_0x416775+'Container','element':_0x17f5be});}}}}}['_resolveDescriptionItems'](_0x1eba8c){const _0x26cbff=this['_locale'],_0x405bf2=[],_0xcb19b9=[],_0x557a10=[];for(const _0x55da4e of _0x1eba8c)switch(_0x55da4e['type']){case'text':if(_0x55da4e['add']=_0x55da4e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x55da4e['remove']=_0x55da4e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x55da4e['add']&&''!=_0x55da4e['remove']){_0x405bf2['push']({'type':'replace','content':o(_0x26cbff,'REPLACE_TEXT',['\x22'+_0x55da4e['remove']+'\x22','\x22'+_0x55da4e['add']+'\x22'])});continue;}if(null!=_0x55da4e['add']['match'](/^ +$/)){_0x405bf2['push']({'type':'insertion','content':o(_0x26cbff,'*Insert:*\x20%0',o(_0x26cbff,'ELEMENT_SPACE',_0x55da4e['add']['length']))});continue;}if(null!=_0x55da4e['remove']['match'](/^ +$/)){_0x405bf2['push']({'type':'deletion','content':o(_0x26cbff,'*Remove:*\x20%0',o(_0x26cbff,'ELEMENT_SPACE',_0x55da4e['remove']['length']))});continue;}if(''!=_0x55da4e['add']){_0x405bf2['push']({'type':'insertion','content':o(_0x26cbff,'*Insert:*\x20%0','\x22'+_0x55da4e['add']+'\x22')});continue;}_0x405bf2['push']({'type':'deletion','content':o(_0x26cbff,'*Remove:*\x20%0','\x22'+_0x55da4e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x405bf2['push']({'type':'insertion','content':o(_0x26cbff,'*Insert:*\x20%0',this['getItemLabel'](_0x55da4e['element'],_0x55da4e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x405bf2['push']({'type':'deletion','content':o(_0x26cbff,'*Remove:*\x20%0',this['getItemLabel'](_0x55da4e['element'],_0x55da4e['quantity']))});continue;case'addContainer':_0x405bf2['push']({'type':'insertion','content':o(_0x26cbff,'*Split:*\x20%0',this['getItemLabel'](_0x55da4e['element'],_0x55da4e['quantity']))});continue;case'removeContainer':_0x405bf2['push']({'type':'deletion','content':o(_0x26cbff,'*Merge:*\x20%0',this['getItemLabel'](_0x55da4e['element'],_0x55da4e['quantity']))});continue;case'addFormat':_0xcb19b9['push'](_0x55da4e['key']);continue;case'removeFormat':_0x557a10['push'](_0x55da4e['key']);continue;default:_0x405bf2['push'](_0x55da4e);}if(_0xcb19b9['length']){const _0x608cc4=_0xcb19b9['map'](_0x5cf8b1=>this['_attributeLabels']['has'](_0x5cf8b1)?this['_attributeLabels']['get'](_0x5cf8b1):_0x5cf8b1)['join'](',\x20');_0x405bf2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x608cc4)});}if(_0x557a10['length']){const _0x413ac0=_0x557a10['map'](_0x3e53e4=>this['_attributeLabels']['has'](_0x3e53e4)?this['_attributeLabels']['get'](_0x3e53e4):_0x3e53e4)['join'](',\x20');_0x405bf2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x413ac0)});}return _0x405bf2;}['_handleCustomCallbackDescription'](_0x435e83){for(const _0x13d0ba of this['_customCallbacks']){const _0x322f30=_0x13d0ba(_0x435e83);if(_0x322f30&&'type'in _0x322f30)return _0x322f30;}}['_handleAttributeSuggestionDescription'](_0x46851a,_0x27159c){const _0x5b1430=_0x27159c['data'],_0x104ba5=void 0x0===_0x5b1430['newValue']?'removeFormat':'addFormat';_0x46851a['push']({'type':_0x104ba5,'key':_0x5b1430['key']});}['_handleRenameSuggestionDescription'](_0x4a6abe,_0x6174b4){_0x4a6abe['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x6174b4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x567c8e,_0x1cb0df,_0x5a3b2a){if(this['_addDescriptionItems'](_0x567c8e,_0x1cb0df),_0x5a3b2a&&_0x5a3b2a['getFirstRange']()&&!_0x1cb0df['getFirstRange']()['end']['isEqual'](_0x5a3b2a['getFirstRange']()['start'])){const _0x11af19=_0x567c8e[_0x567c8e['length']-0x1],_0x24a709='insertion'==_0x1cb0df['type']?'add':'remove';_0x11af19&&'text'==_0x11af19['type']&&(_0x11af19[_0x24a709]+='\x0a');}}}class V extends _0x231f11{['afterInit'](){const _0x2ca9fe=this['editor'],_0x2ff89c=_0x2ca9fe['plugins']['get']('TrackChangesEditing');_0x2ca9fe['commands']['get']('showAIAssistant')&&_0x2ff89c['enableCommand']('showAIAssistant');}}class U extends _0x231f11{['afterInit'](){const _0x3dbab6=this['editor'],_0x105b68=_0x3dbab6['locale'];if(!_0x3dbab6['plugins']['has']('AlignmentEditing'))return;const _0x19f227=_0x3dbab6['plugins']['get']('TrackChangesEditing');_0x19f227['enableDefaultAttributesIntegration']('alignment'),_0x19f227['registerBlockAttribute']('alignment'),_0x19f227['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x105b68,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25581e=this['editor'],_0x4a7985=_0x25581e['locale'];_0x25581e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9d1caf=>{if('formatBlock'!=_0x9d1caf['type'])return;const {data:_0x5a6716}=_0x9d1caf;if(_0x5a6716&&'alignment'==_0x5a6716['commandName']){const _0x5d3aa0=_0x5a6716['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4a7985,'*Format:*\x20%0',function(_0x412bf2){switch(_0x412bf2){case'left':return o(_0x4a7985,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4a7985,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4a7985,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4a7985,'FORMAT_JUSTIFY_TEXT');}}(_0x5d3aa0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x231f11{['afterInit'](){const _0xe7c781=this['editor'],_0x1f6a97=_0xe7c781['plugins']['get']('TrackChangesEditing'),_0x26d5de=_0xe7c781['locale'];for(const _0x51fdab of ti){if(!_0xe7c781['plugins']['has'](_0x51fdab))continue;const _0x5620d4=_0x51fdab['slice'](0x0,-0x7)['toLowerCase'](),_0x53cc98='FORMAT_'+_0x5620d4['toUpperCase']();_0x1f6a97['enableDefaultAttributesIntegration'](_0x5620d4),_0x1f6a97['registerInlineAttribute'](_0x5620d4),_0x1f6a97['descriptionFactory']['registerAttributeLabel'](_0x5620d4,o(_0x26d5de,_0x53cc98));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f5aae=this['editor'],_0xf2a7f9=_0x2f5aae['locale'],_0x5a7c33=_0x2f5aae['plugins']['get']('TrackChangesEditing');function _0x401517(_0x29879c,_0x282b26){_0x5a7c33['descriptionFactory']['registerDescriptionCallback'](_0x21c1dd=>{if('formatInline'!=_0x21c1dd['type'])return;const {data:_0x5c7b55}=_0x21c1dd;return _0x5c7b55&&_0x5c7b55['commandName']===_0x29879c?_0x5c7b55['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf2a7f9,'*Format:*\x20%0',_0x282b26)}:{'type':'format','content':o(_0xf2a7f9,'*Remove\x20format:*\x20%0',_0x282b26)}:void 0x0;});}_0x401517('bold',o(_0xf2a7f9,'FORMAT_BOLD')),_0x401517('italic',o(_0xf2a7f9,'FORMAT_ITALIC')),_0x401517('underline',o(_0xf2a7f9,'FORMAT_UNDERLINE')),_0x401517('code',o(_0xf2a7f9,'FORMAT_CODE')),_0x401517('strikethrough',o(_0xf2a7f9,'FORMAT_STRIKETHROUGH')),_0x401517('subscript',o(_0xf2a7f9,'FORMAT_SUBSCRIPT')),_0x401517('superscript',o(_0xf2a7f9,'FORMAT_SUPERSCRIPT'));}}class F extends _0x231f11{['afterInit'](){const _0x44408e=this['editor'],_0xca30dd=_0x44408e['locale'];if(!_0x44408e['plugins']['has']('BlockQuoteEditing'))return;const _0x23e181=_0x44408e['plugins']['get']('TrackChangesEditing'),_0x10d70e=this['editor']['commands']['get']('blockQuote');_0x23e181['enableCommand']('blockQuote',(_0x278743,_0x55251a={})=>{const _0x3d2def=this['editor']['model']['document']['selection'],_0x51dec8=_0x55251a&&void 0x0!==_0x55251a['forceValue']?_0x55251a['forceValue']:!_0x10d70e['value'];let _0xc49d26=[];if(_0x51dec8){const _0x50b5ad=Array['from'](_0x3d2def['getSelectedBlocks']())['filter'](_0x2643cb=>oo(_0x2643cb)||function(_0x25678b,_0x42fa15){const _0x5d3b2b=_0x42fa15['checkChild'](_0x25678b['parent'],'blockQuote'),_0x3d7a17=_0x42fa15['checkChild'](['$root','blockQuote'],_0x25678b);return _0x5d3b2b&&_0x3d7a17;}(_0x2643cb,this['editor']['model']['schema']));_0xc49d26=to(_0x50b5ad,_0x44408e['model']);}else{const _0x250b6a=Array['from'](_0x3d2def['getSelectedBlocks']())['filter'](_0x375f1f=>oo(_0x375f1f));_0xc49d26=to(_0x250b6a,_0x44408e['model']);}_0x44408e['model']['change'](()=>{for(const _0x402892 of _0xc49d26)_0x23e181['markBlockFormat'](_0x402892,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x51dec8}]});});}),_0x23e181['descriptionFactory']['registerDescriptionCallback'](_0x41aee5=>{const {data:_0x15048c}=_0x41aee5;if(_0x15048c&&'blockQuote'==_0x15048c['commandName']){const _0x5a8575=o(_0xca30dd,'ELEMENT_BLOCK_QUOTE');return _0x15048c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xca30dd,'*Set\x20format:*\x20%0',_0x5a8575)}:{'type':'format','content':o(_0xca30dd,'*Remove\x20format:*\x20%0',_0x5a8575)};}});}}function oo(_0x42b7c4){return'blockQuote'==_0x42b7c4['parent']['name'];}class L extends _0x231f11{['afterInit'](){const _0x3a35a9=this['editor'];_0x3a35a9['plugins']['has']('CaseChange')&&(_0x3a35a9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3a35a9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3a35a9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x231f11{['afterInit'](){const _0x26ff94=this['editor'];_0x26ff94['commands']['get']('ckbox')&&_0x26ff94['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x231f11{['afterInit'](){const _0x41bf11=this['editor'];if(!_0x41bf11['plugins']['has']('CodeBlock'))return;const _0x5574aa=_0x41bf11['plugins']['get']('TrackChangesEditing'),_0x1e8417=_0x41bf11['locale'],_0xca52b4=_0x41bf11['config']['get']('codeBlock')['languages'],_0x320342=_0x41bf11['commands']['get']('codeBlock');_0x5574aa['enableCommand']('indentCodeBlock'),_0x5574aa['enableCommand']('outdentCodeBlock'),_0x5574aa['enableCommand']('codeBlock',(_0x1af301,_0x332084={})=>{const _0x4c9659=_0x41bf11['model'],_0x3d75bc=_0x41bf11['model']['document']['selection'],_0x3c3fc0=_0x332084&&void 0x0!==_0x332084['forceValue']?_0x332084['forceValue']:!_0x320342['value'];let _0x17d7f9;_0x332084['language']||(_0x332084['language']=_0xca52b4[0x0]['language']),_0x17d7f9=_0x3c3fc0?Array['from'](_0x3d75bc['getSelectedBlocks']())['filter'](_0x309a2a=>eo(_0x309a2a)||function(_0x4112e8,_0x5e6549){if(_0x4112e8['is']('rootElement')||_0x5e6549['isLimit'](_0x4112e8))return!0x1;return _0x5e6549['checkChild'](_0x4112e8['parent'],'codeBlock');}(_0x309a2a,_0x4c9659['schema'])):Array['from'](_0x3d75bc['getSelectedBlocks']())['filter'](_0x53f9e9=>eo(_0x53f9e9));const _0x5aa587=to(_0x17d7f9,_0x4c9659);_0x4c9659['change'](()=>{for(const _0x5b6162 of _0x5aa587)_0x5574aa['markBlockFormat'](_0x5b6162,{'commandName':'codeBlock','commandParams':[{..._0x332084,'forceValue':_0x3c3fc0}],'formatGroupId':'blockName'});});}),(_0x5574aa['descriptionFactory']['registerElementLabel']('codeBlock',_0xb1440f=>o(_0x1e8417,'ELEMENT_CODE_BLOCK',_0xb1440f)),_0x5574aa['descriptionFactory']['registerDescriptionCallback'](_0x46bbc8=>{if('formatBlock'!=_0x46bbc8['type'])return;const _0xf3776=_0x1e8417['t'],{data:_0x3e46ce}=_0x46bbc8;if(!_0x3e46ce||'codeBlock'!=_0x3e46ce['commandName'])return;const _0x1588e4=_0x3e46ce['commandParams'][0x0]['language'],_0x12150f=_0xf3776(_0xca52b4['find'](_0x5613b7=>_0x5613b7['language']===_0x1588e4)['label'])['toLowerCase']();return _0x3e46ce['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e8417,'*Set\x20format:*\x20%0',o(_0x1e8417,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x12150f+')')}:{'type':'format','content':o(_0x1e8417,'*Remove\x20format:*\x20%0',o(_0x1e8417,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x502f37){return'codeBlock'==_0x502f37['name'];}class q extends _0x231f11{['afterInit'](){const _0x24c8c7=this['editor'];if(!_0x24c8c7['plugins']['has']('CommentsEditing'))return;_0x24c8c7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x245bc7,_0x981af2,_0x78b4b2){const _0x2787ed=[];for(const _0x344c3a of _0x981af2['getItems']())_0x344c3a['hasAttribute'](_0x245bc7)&&_0x2787ed['push'](_0x78b4b2['createRangeOn'](_0x344c3a));return _0x2787ed;}function _e(_0x5b1310,_0x1bde2c,{showActiveMarker:_0x46d9c0=!0x0}={}){const _0x40a408=_0x5b1310['plugins']['get']('TrackChangesEditing');return(_0x1381ed,_0x340228,_0x4f44bb)=>{if(!_0x4f44bb['consumable']['test'](_0x340228['markerRange'],_0x1381ed['name']))return;const _0x2c13a9=_0x340228['markerRange']['getWalker'](),_0x2e5bd9=_0x340228['markerRange']['start'],_0x4ff76c=_0x5b1310['model']['schema'];let _0x1351aa=null,_0x5c2f10=null,_0x4aa8a3=!0x1,_0x2122d8=!0x1;for(const _0x39ff27 of _0x2c13a9){const _0x1c321b=_0x39ff27['item'];_0x4aa8a3=_0x4aa8a3||_0x4ff76c['isContent'](_0x1c321b);const _0x419522=_0x4f44bb['mapper']['toViewElement'](_0x1c321b);if(_0x419522&&_0x419522['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x39ff27['type']&&(_0x4ff76c['isBlock'](_0x1c321b)&&!_0x4ff76c['isLimit'](_0x1c321b)&&(_0x1c321b['nextSibling']||_0x2e5bd9['isAtEnd']?_0x1351aa&&_0x1351aa['parent']==_0x1c321b||(_0x1351aa=_0x1c321b,_0x1b3f85(_0x39ff27['previousPosition']),_0x2122d8=!0x0):_0x5c2f10=_0x5c2f10||_0x39ff27['previousPosition']));}function _0x1b3f85(_0x4056d9){const _0xa13720=_0x4f44bb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1bde2c}),_0x15be0f=_0x4f44bb['mapper']['toViewPosition'](_0x4056d9);_0x46d9c0&&_0x40a408['activeMarkers']['includes'](_0x340228['markerName'])&&_0x4f44bb['writer']['addClass']('ck-suggestion-marker--active',_0xa13720),_0x4f44bb['writer']['insert'](_0x15be0f,_0xa13720),_0x4f44bb['mapper']['bindElementToMarker'](_0xa13720,_0x340228['markerName']);}_0x4aa8a3||_0x2122d8||!_0x5c2f10||_0x1b3f85(_0x5c2f10);};}class z extends _0x231f11{static get['requires'](){return[_0x1d1228];}['init'](){const _0xf0845c=this['editor'],_0x24caa7=_0xf0845c['plugins']['get']('TrackChangesEditing');_0x24caa7['enableCommand']('delete');const _0x23d076=_0xf0845c['commands']['get']('deleteForward');_0x24caa7['enableCommand']('deleteForward',(_0x394dfb,_0x25455f={})=>{const _0x41a754=_0xf0845c['model']['createSelection'](_0xf0845c['model']['document']['selection']);_0x41a754['isCollapsed']&&_0xf0845c['model']['modifySelection'](_0x41a754,{'direction':'forward','unit':_0x25455f['unit']});const _0x44b1e9=_0x41a754['getFirstRange'](),_0x91fec8=_0x135447['fromRange'](_0x44b1e9);let _0x803924;_0x394dfb(_0x25455f),_0x803924='$graveyard'==_0x91fec8['root']['rootName']?_0xf0845c['model']['createRange'](_0x44b1e9['start']):_0xf0845c['model']['createRange'](_0x91fec8['start'],_0x91fec8['end']),_0x91fec8['detach'](),_0xf0845c['model']['enqueueChange'](_0x23d076['buffer']['batch'],_0x58a272=>{_0x23d076['buffer']['lock'](),_0x58a272['setSelection'](_0x58a272['createRange'](_0x803924['end'])),_0x23d076['buffer']['unlock']();});}),_0xf0845c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xf0845c,'merge'),{'priority':'high'}),_0xf0845c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x465f53,_0x15c34f,_0x4f7d83)=>{_0x4f7d83['options']['showSuggestionHighlights']&&_e(_0xf0845c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x465f53,_0x15c34f,_0x4f7d83);},{'priority':'high'}),_0xf0845c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4e9ac4,_0x99f5b,_0x1269c2)=>{const _0x233b01=_0x1269c2['mapper']['markerNameToElements'](_0x99f5b['markerName']);if(_0x233b01){for(const _0x4d3a34 of _0x233b01)_0x4d3a34['is']('uiElement')&&(_0x1269c2['mapper']['unbindElementFromMarkerName'](_0x4d3a34,_0x99f5b['markerName']),_0x1269c2['writer']['remove'](_0x4d3a34));}},{'priority':'high'});}}class K extends _0x231f11{['afterInit'](){const _0x113e42=this['editor'];if(!_0x113e42['plugins']['has']('ListEditing'))return;const _0x123ca3=_0x113e42['locale'],_0x4463a1=_0x113e42['plugins']['get']('TrackChangesEditing'),_0x9a50a5=_0x113e42['plugins']['has']('TodoListEditing'),_0x1b30b0=!!_0x113e42['config']['get']('list.multiBlock');function _0x1a96a8(_0x3d6ae0){return{'type':'format','content':''+o(_0x123ca3,'*Set\x20format:*\x20%0',_0x3d6ae0)};}function _0x386bf5(_0xbed9c){return{'type':'format','content':''+o(_0x123ca3,'*Remove\x20format:*\x20%0',_0xbed9c)};}_0x4463a1['enableDefaultAttributesIntegration']('numberedList'),_0x4463a1['enableDefaultAttributesIntegration']('bulletedList'),_0x4463a1['enableDefaultAttributesIntegration']('customNumberedList'),_0x4463a1['enableDefaultAttributesIntegration']('customBulletedList'),_0x4463a1['enableDefaultAttributesIntegration']('indentList'),_0x4463a1['enableDefaultAttributesIntegration']('outdentList'),_0x4463a1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4463a1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4463a1['registerBlockAttribute']('listItemId'),_0x4463a1['registerBlockAttribute']('listType'),_0x4463a1['registerBlockAttribute']('listIndent'),_0x1b30b0&&(_0x4463a1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4463a1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x9a50a5&&(_0x4463a1['enableDefaultAttributesIntegration']('todoList'),_0x4463a1['enableDefaultAttributesIntegration']('checkTodoList'),_0x4463a1['registerBlockAttribute']('todoListChecked'),_0x4463a1['descriptionFactory']['registerDescriptionCallback'](_0x3e4b53=>{const {data:_0x12c2ca}=_0x3e4b53;if(_0x12c2ca&&'todoListChecked'==_0x12c2ca['key'])return{'type':'format','content':_0x12c2ca['newValue']?o(_0x123ca3,'*Check\x20item*'):o(_0x123ca3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x33a410=>{if(_0x33a410['batch']['isUndo'])return!0x1;let _0x188f16=!0x1;const _0x3a2bd3=_0x4463a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x432409=>'todoListChecked'===_0x4463a1['_getAttributeKey'](_0x432409));for(const _0xa366fb of _0x3a2bd3){'todo'!=_0xa366fb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4463a1['_findSuggestions'](_0xa366fb['getFirstRange'](),'attribute')['find'](_0x3e467f=>'listType'===_0x4463a1['_getAttributeKey'](_0x3e467f['suggestion']))||(_0x33a410['removeMarker'](_0xa366fb['getFirstMarker']()),_0x188f16=!0x0));}return _0x188f16;})),_0x4463a1['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x123ca3,'FORMAT_INDENT'));const _0x571728={'type':'format','content':''};_0x4463a1['descriptionFactory']['registerDescriptionCallback'](_0x157e8e=>{const {data:_0x4c6450}=_0x157e8e;if(!_0x4c6450||'listType'!=_0x4c6450['key'])return;let _0x32a4b9=_0x157e8e['head'];for(;_0x32a4b9;){if(_0x32a4b9['data']&&(('listStyle'==_0x32a4b9['data']['key']||'listMarkerStyle'==_0x32a4b9['data']['key'])&&(_0x32a4b9['data']['newValue']&&'default'!=_0x32a4b9['data']['newValue']||'default'!=_0x32a4b9['data']['oldValue']&&!_0x4c6450['newValue'])||!_0x1b30b0&&_0x32a4b9['data']['key']==m))return _0x571728;_0x32a4b9=_0x32a4b9['next'];}if(null==_0x4c6450['newValue'])switch(_0x4c6450['oldValue']){case'bulleted':return _0x386bf5(o(_0x123ca3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x386bf5(o(_0x123ca3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x386bf5(o(_0x123ca3,'ELEMENT_TODO_LIST'));}switch(_0x4c6450['newValue']){case'bulleted':return _0x1a96a8(o(_0x123ca3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a96a8(o(_0x123ca3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a96a8(o(_0x123ca3,'ELEMENT_TODO_LIST'));}}),_0x4463a1['descriptionFactory']['registerDescriptionCallback'](_0x5c6a9a=>{const {data:_0x4e8f6e}=_0x5c6a9a;if(_0x4e8f6e&&'listIndent'==_0x4e8f6e['key'])return null==_0x4e8f6e['newValue']||null==_0x4e8f6e['oldValue']&&0x0==_0x4e8f6e['newValue']?_0x571728:void 0x0;}),_0x4463a1['descriptionFactory']['registerDescriptionCallback'](_0x24c9e2=>{if('attribute'!=_0x24c9e2['type'])return;const {data:_0x32dc30}=_0x24c9e2;if(!_0x32dc30||'listItemId'!=_0x32dc30['key'])return;const _0x5b0467=le(_0x24c9e2);return'newValue'==_0x5b0467?{'type':'format','content':o(_0x123ca3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5b0467?{'type':'format','content':o(_0x123ca3,'*Split:*\x20list\x20item')}:_0x571728;}),_0x113e42['model']['document']['registerPostFixer'](_0x2b734b=>this['listItemIdFixer'](_0x2b734b)),_0x113e42['model']['document']['registerPostFixer'](_0x44d293=>this['noTrackChangesFixer'](_0x44d293)),_0x113e42['model']['document']['on']('change:data',(_0x254e7d,_0x2a19b1)=>{if(_0x2a19b1['isUndo']||!_0x2a19b1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x410138){if(_0x410138['batch']['isUndo']||!_0x410138['batch']['isLocal'])return!0x1;let _0x89e55c=!0x1;const _0x15fead=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4aab5d=>_0x4aab5d['data']&&'listItemId'==_0x4aab5d['data']['key'])['filter'](_0x49d822=>_0x49d822['data']['newValue']&&_0x49d822['data']['oldValue']);for(const _0x159dc5 of _0x15fead)le(_0x159dc5)||(_0x410138['removeMarker'](_0x159dc5['getFirstMarker']()),_0x89e55c=!0x0);return _0x89e55c;}['noTrackChangesFixer'](_0x315a02){if(_0x315a02['batch']['isUndo']||!_0x315a02['batch']['isLocal'])return!0x1;const _0xedf15=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xedf15['trackChangesCommand']['value'])return!0x1;let _0x16d081=!0x1;const _0x1cd39c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2e4c35=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x20c0e8=>'attribute'==_0x20c0e8['type'])['filter'](_0x5a8c20=>_0x1cd39c['includes'](_0x5a8c20['attributeKey']));if(0x0==_0x2e4c35['length'])return _0x16d081;for(const _0x3b801b of _0x2e4c35){const _0x276480=_0xedf15['_findSuggestions'](_0x3b801b['range'],'attribute')['filter'](_0x249198=>!_0x249198['meta']['isNextTo'])['map'](_0x14e264=>_0x14e264['suggestion'])['filter'](_0x19062a=>{const _0x2eb4f3=_0xedf15['_getAttributeKey'](_0x19062a);return _0x1cd39c['includes'](_0x2eb4f3);});if(_0x276480['length']){for(const _0x2725e1 of _0x276480)_0x315a02['removeMarker'](_0x2725e1['getFirstMarker']());_0x16d081=!0x0;}}return _0x16d081;}['assureChains'](){const _0x56b047=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21fd4f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x411673;const _0x3f83a0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd8b134=>{if(_0xd8b134['data']['oldRange']||!_0xd8b134['data']['newRange'])return null;if(!_0xd8b134['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2b86e0}=_0x56b047['_splitMarkerName'](_0xd8b134['name']);if(!_0x56b047['hasSuggestion'](_0x2b86e0))return null;const _0x2e8763=_0x56b047['getSuggestion'](_0x2b86e0);return _0x21fd4f['includes'](_0x2e8763['data']['key']);})['map'](_0x403242=>{const {id:_0x3b9cda}=_0x56b047['_splitMarkerName'](_0x403242['name']),_0x2e3183=_0x56b047['getSuggestion'](_0x3b9cda);return _0x411673=_0x2e3183['attributes']['groupId'],_0x2e3183['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3f83a0['size'])return;const _0x225f88=_0x56b047['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x157499=>'attribute'==_0x157499['type']&&_0x157499['data']&&_0x21fd4f['includes'](_0x157499['data']['key'])&&_0x157499['attributes']['groupId']!=_0x411673)['map'](_0x44b0cc=>({'listItem':_0x44b0cc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x44b0cc['attributes']['groupId']})),_0x4cf811=new Set();for(const {groupId:_0x3c1c68,listItem:_0x1c7712}of _0x225f88)_0x3f83a0['has'](_0x1c7712)&&_0x4cf811['add'](_0x3c1c68);for(const _0x218f53 of _0x56b047['getSuggestions']())_0x4cf811['has'](_0x218f53['attributes']['groupId'])&&_0x218f53['setAttribute']('groupId',_0x411673);}['_supportLegacySuggestions'](){const _0x461107=this['editor'],_0x375982=_0x461107['locale'],_0x2f8c2c=_0x461107['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2f8c2c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x50dcf0,_0x360bd4){const _0x4f8675=[];for(let _0x149cd6 of _0x50dcf0)_0x149cd6['start']['nodeAfter']===_0x149cd6['end']['parent']&&(_0x149cd6=_0x461107['model']['createRange'](_0x461107['model']['createPositionAt'](_0x149cd6['start']['nodeAfter'],0x0))),_0x4f8675['push'](_0x149cd6);_0x461107['model']['change'](_0x10cbcf=>{const _0x52ec4f=_0x461107['model']['document']['selection'],_0x2d1c0f=Array['from'](_0x52ec4f['getRanges']())['map'](_0x464955=>_0x135447['fromRange'](_0x464955));_0x10cbcf['setSelection'](_0x4f8675),_0x461107['commands']['get'](_0x360bd4['commandName'])['refresh'](),_0x360bd4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x461107['execute'](_0x360bd4['commandName'],..._0x360bd4['commandParams']),_0x10cbcf['setSelection'](_0x2d1c0f);for(const _0x2c7dbf of _0x2d1c0f)_0x2c7dbf['detach']();});}),_0x2f8c2c['descriptionFactory']['registerElementLabel'](function(_0x188c0d){const _0x270c0e=!_0x461107['model']['schema']['isObject'](_0x188c0d),_0x52423c=_0x188c0d['previousSibling'],_0x4cee42=_0x188c0d['nextSibling'],_0x239c5f=_0x188c0d['getAttribute']('listItemId'),_0xb9c849=!_0x52423c||_0x52423c['getAttribute']('listItemId')!==_0x239c5f,_0x12a015=!_0x4cee42||_0x4cee42['getAttribute']('listItemId')!==_0x239c5f;return _0x270c0e&&Boolean(_0x239c5f)&&_0xb9c849&&_0x12a015;},_0x450866=>o(_0x375982,'ELEMENT_LIST_ITEM',_0x450866));}['_registerLegacyDescription'](){const _0x39c50f=this['editor'],_0x486982=_0x39c50f['locale'];function _0x2665a5(_0x46c766){const _0x53af58=_0x39c50f['commands']['get']('bulletedList')['value'],_0x57a0a1=_0x39c50f['commands']['get']('numberedList')['value'];return'numberedList'===_0x46c766?_0x53af58:_0x57a0a1;}_0x39c50f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1978fe){if('formatBlock'!=_0x1978fe['type'])return;const {data:_0xe31648}=_0x1978fe;if(!_0xe31648)return;let _0xdc28a9,_0x1cbd01,_0x40824b,_0xb6ad4a;switch(_0xe31648['commandName']){case'bulletedList':_0x40824b=_0xe31648['commandParams'][0x0]['forceValue'],_0xb6ad4a=_0x2665a5(_0xe31648['commandName']),_0xdc28a9=_0x40824b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb6ad4a&&_0x39c50f['config']['get']('list.multiBlock')||(_0xdc28a9='*Change\x20to:*\x20%0'),_0x1cbd01={'type':'format','content':o(_0x486982,_0xdc28a9,o(_0x486982,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x40824b=_0xe31648['commandParams'][0x0]['forceValue'],_0xb6ad4a=_0x2665a5(_0xe31648['commandName']),_0xdc28a9=_0x40824b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb6ad4a&&_0x39c50f['config']['get']('list.multiBlock')||(_0xdc28a9='*Change\x20to:*\x20%0'),_0x1cbd01={'type':'format','content':o(_0x486982,_0xdc28a9,o(_0x486982,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xdc28a9='*Indent:*\x20%0',_0x1cbd01={'type':'format','content':o(_0x486982,_0xdc28a9,o(_0x486982,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xdc28a9=function(_0x13ddb8){const _0x3599cc=_0x13ddb8['getFirstRange']();let _0x691a73=_0x3599cc['start']['nodeAfter'];for(;_0x691a73&&_0x3599cc['containsItem'](_0x691a73);){if(_0x691a73['getAttribute']('listIndent')>0x0)return!0x1;_0x691a73=_0x691a73['nextSibling'];}return!0x0;}(_0x1978fe)?o(_0x486982,'*Format:*\x20remove\x20from\x20%0',o(_0x486982,function(_0x5be9ad){return'ELEMENT_'+_0x5be9ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1978fe))):o(_0x486982,'*Outdent:*\x20%0',o(_0x486982,'ELEMENT_LIST_ITEM')),_0x1cbd01={'type':'format','content':_0xdc28a9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xe31648['multipleBlocks']&&(_0xdc28a9='*Merge:*\x20%0',_0x1cbd01={'type':'deletion','content':o(_0x486982,_0xdc28a9,o(_0x486982,'ELEMENT_LIST_ITEM'))});}return _0x1cbd01;});}}function le(_0x55550f){let _0x4fd5da=_0x55550f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4fd5da;){const _0x3d37e3=_0x4fd5da['getAttribute']('listItemId');if(!_0x3d37e3)return!0x1;if(_0x3d37e3==_0x55550f['data']['newValue'])return'newValue';if(_0x3d37e3==_0x55550f['data']['oldValue'])return'oldValue';_0x4fd5da=_0x4fd5da['previousSibling'];}return!0x1;}class pe extends _0x231f11{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x222e53=this['editor']['config']['get']('list.properties'),_0x389793=this['editor']['plugins']['get']('TrackChangesEditing');_0x222e53['styles']&&(_0x389793['enableDefaultAttributesIntegration']('listStyle'),_0x389793['registerBlockAttribute']('listStyle')),_0x222e53['reversed']&&(_0x389793['enableDefaultAttributesIntegration']('listReversed'),_0x389793['registerBlockAttribute']('listReversed')),_0x222e53['startIndex']&&(_0x389793['enableDefaultAttributesIntegration']('listStart'),_0x389793['registerBlockAttribute']('listStart'));const _0x5c13f2={'type':'format','content':''};_0x389793['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x576e30=this['editor']['locale'];_0x389793['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x576e30,'FORMAT_LIST_REVERSED')),_0x389793['descriptionFactory']['registerDescriptionCallback'](_0x191ba8=>{const {data:_0x519eb9}=_0x191ba8;if(_0x519eb9&&'listReversed'==_0x519eb9['key'])return null==_0x519eb9['newValue']||0x0==_0x519eb9['newValue']&&null==_0x519eb9['oldValue']?_0x5c13f2:void 0x0;}),_0x389793['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x576e30,'FORMAT_LIST_START')),_0x389793['descriptionFactory']['registerDescriptionCallback'](_0x318b87=>{const {data:_0x5ee166}=_0x318b87;if(_0x5ee166&&'listStart'==_0x5ee166['key'])return null==_0x5ee166['newValue']||0x1==_0x5ee166['newValue']&&null==_0x5ee166['oldValue']?_0x5c13f2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x11cfe5=>{if(_0x11cfe5['batch']['isUndo'])return!0x1;let _0x3b2d07=!0x1;const _0x50e1ec=_0x389793['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5fa824=>{const _0x13a32d=_0x389793['_getAttributeKey'](_0x5fa824);return'listStart'==_0x13a32d||'listReversed'==_0x13a32d;});for(const _0x4a71cd of _0x50e1ec){const _0x52f2c4=_0x4a71cd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x52f2c4||'customNumbered'==_0x52f2c4)continue;_0x389793['_findSuggestions'](_0x4a71cd['getFirstRange'](),'attribute')['find'](_0x3a8353=>'listType'==_0x389793['_getAttributeKey'](_0x3a8353['suggestion']))||(_0x11cfe5['removeMarker'](_0x4a71cd['getFirstMarker']()),_0x3b2d07=!0x0);}return _0x3b2d07;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5bdede){const _0x403b97=this['editor']['locale'],{data:_0x32f61b}=_0x5bdede,_0x519a05={'type':'format','content':''};if(!_0x32f61b||'listStyle'!=_0x32f61b['key'])return;if(!_0x32f61b['oldValue'])return'default'==_0x32f61b['newValue']?_0x519a05:{'type':'format','content':''+o(_0x403b97,'*Set\x20format:*\x20%0',o(_0x403b97,this['_getTranslationKeyForListStyle'](_0x32f61b['newValue'])))};if(!_0x32f61b['newValue']){if('default'==_0x32f61b['oldValue'])return _0x519a05;let _0x12f7e9=_0x5bdede['head'];for(;_0x12f7e9;){if(_0x12f7e9['data']&&'listType'==_0x12f7e9['data']['key']&&_0x12f7e9['data']['newValue'])return _0x519a05;_0x12f7e9=_0x12f7e9['next'];}return{'type':'format','content':''+o(_0x403b97,'*Remove\x20format:*\x20%0',o(_0x403b97,this['_getTranslationKeyForListStyle'](_0x32f61b['oldValue'])))};}if('default'!=_0x32f61b['newValue'])return{'type':'format','content':''+o(_0x403b97,'*Set\x20format:*\x20%0',o(_0x403b97,this['_getTranslationKeyForListStyle'](_0x32f61b['newValue'])))};let _0x5b8e2f=_0x5bdede['head'];for(;_0x5b8e2f;){if(_0x5b8e2f['data']&&'listType'==_0x5b8e2f['data']['key']&&_0x5b8e2f['data']['newValue']&&_0x5b8e2f['data']['oldValue'])return _0x519a05;_0x5b8e2f=_0x5b8e2f['next'];}return{'type':'format','content':o(_0x403b97,'*Set\x20format:*\x20%0',o(_0x403b97,'ELEMENT_'+_0x5bdede['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x207f96=this['editor'],_0xd6f202=_0x207f96['locale'];_0x207f96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da675=>{if('formatBlock'!=_0x5da675['type'])return;const {data:_0x353721}=_0x5da675;if(!_0x353721)return;let _0x2b5979,_0x44b685;switch(_0x353721['commandName']){case'listStyle':_0x2b5979='*Change\x20to:*\x20%0',_0x44b685={'type':'format','content':o(_0xd6f202,_0x2b5979,o(_0xd6f202,this['_getTranslationKeyForListStyle'](_0x353721['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2b5979=_0x353721['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x44b685={'type':'format','content':o(_0xd6f202,_0x2b5979)};break;case'listStart':_0x2b5979='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x44b685={'type':'format','content':o(_0xd6f202,_0x2b5979,_0x353721['commandParams'][0x0]['startIndex'])};}return _0x44b685;});}['_getTranslationKeyForListStyle'](_0x51266c){return'ELEMENT_'+function(_0x5dbf9d){if(ye['includes'](_0x5dbf9d))return'bulleted';if(Se['includes'](_0x5dbf9d))return'numbered';return null;}(_0x51266c)['toUpperCase']()+'_LIST_'+_0x51266c['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x231f11{static get['requires'](){return[_0x31408b];}['init'](){const _0x24adef=this['editor'],_0x2d76b1=_0x24adef['plugins']['get']('TrackChangesEditing'),_0x5f3e65=_0x24adef['commands']['get']('enter');_0x2d76b1['enableCommand']('enter',()=>{_0x24adef['model']['change'](_0x389f7e=>{const _0x5bedb9=_0x24adef['model']['document']['selection'],_0x56735b=_0x5bedb9['getFirstPosition'](),_0x3fea67=_0x135447['fromRange'](_0x5bedb9['getFirstRange']());if(_0x5f3e65['enterBlock'](_0x389f7e)){const _0x400a90=_0x24adef['model']['createPositionAt'](_0x56735b['parent']['nextSibling'],0x0),_0x7b59a5=_0x389f7e['createRange'](_0x56735b,_0x400a90);_0x2d76b1['markInsertion'](_0x7b59a5);}else _0x389f7e['setSelection'](_0x389f7e['createRange'](_0x3fea67['end']));_0x3fea67['detach'](),_0x5f3e65['fire']('afterExecute',{'writer':_0x389f7e});});}),_0x24adef['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x24adef,'split'),{'priority':'high'}),_0x24adef['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x587540,_0x29ae46,_0x41ecf8)=>{const _0x4a88e2=_0x41ecf8['mapper']['markerNameToElements'](_0x29ae46['markerName']);if(_0x4a88e2){for(const _0x26fa14 of _0x4a88e2)_0x26fa14['hasClass']('ck-suggestion-marker-split')&&(_0x41ecf8['mapper']['unbindElementFromMarkerName'](_0x26fa14,_0x29ae46['markerName']),_0x41ecf8['writer']['remove'](_0x26fa14));}},{'priority':'high'}),_0x24adef['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5bc431,_0x4ce210,_0x46f45f)=>{_0x46f45f['options']['showSuggestionHighlights']&&_e(_0x24adef,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5bc431,_0x4ce210,_0x46f45f);},{'priority':'high'});}}class X extends _0x231f11{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1747af=this['editor']['plugins']['get']('TrackChangesEditing');_0x1747af['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1747af['enableCommand']('findNext'),_0x1747af['enableCommand']('findPrevious'),_0x1747af['enableCommand']('replace'),_0x1747af['enableCommand']('replaceAll');}['handleFindCommand'](_0x78af74,_0x41005f,_0x568300={}){const _0x42cf8b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x78af74(_0x342623=>{let _0x41b461=('string'==typeof _0x41005f?_0x42cf8b['findByTextCallback'](_0x41005f,_0x568300):_0x41005f)(_0x342623);Array['isArray'](_0x41b461)&&(_0x41b461={'results':_0x41b461,'searchText':'string'==typeof _0x41005f?_0x41005f:''});const _0x3c1e5a=_0x41b461['results']['filter'](_0x1ed5a7=>!0x1===this['_isInDeletionRange'](_0x1ed5a7,_0x342623['item']));return{..._0x41b461,'results':_0x3c1e5a};},_0x568300);}['_isInDeletionRange'](_0x37e616,_0x43c9a1){const _0x476c08=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x43c9a1,_0x37e616['start']),this['editor']['model']['createPositionAt'](_0x43c9a1,_0x37e616['end']));for(const _0x18642a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x476c08['getIntersection'](_0x18642a['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 _0x231f11{['afterInit'](){const _0x417745=this['editor']['locale'],_0x237267=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x50e878,commandName:_0x4446c9}of ro)this['editor']['plugins']['has'](_0x50e878)&&(_0x237267['enableDefaultAttributesIntegration'](_0x4446c9),_0x237267['registerInlineAttribute'](_0x4446c9));_0x237267['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x417745,'FORMAT_FONT_SIZE')),_0x237267['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x417745,'FORMAT_FONT_FAMILY')),_0x237267['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x417745,'FORMAT_FONT_COLOR')),_0x237267['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x417745,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x98b0b5=this['editor'],_0x3fc517=_0x98b0b5['locale'];_0x98b0b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb5f5=>{const _0x33f668=_0x3fc517['t'];if('formatInline'!=_0x2eb5f5['type'])return;const {data:_0x4aaab1}=_0x2eb5f5;if(null!=_0x4aaab1){if('fontSize'==_0x4aaab1['commandName']){const _0x2bc15c=_0x4aaab1['commandParams'][0x0]['value'];if(_0x2bc15c){const _0x47496f=_0x33f668(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x543df9=>_0x543df9['model']==_0x2bc15c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3fc517,'*Set\x20font\x20size:*\x20%0',_0x47496f)};}return{'type':'format','content':o(_0x3fc517,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4aaab1['commandName']){const _0x2fc08d=_0x4aaab1['commandParams'][0x0]['value'];return _0x2fc08d?{'type':'format','content':o(_0x3fc517,'*Set\x20font\x20family:*\x20%0',_0x2fc08d)}:{'type':'format','content':o(_0x3fc517,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4aaab1['commandName']){const _0x52d698=_0x4aaab1['commandParams'][0x0]['value'];if(_0x52d698){const _0x43a01e=_0x2730f7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c6e55=>_0x5c6e55['model']==_0x52d698);let _0x38b338=_0x52d698,_0x31d15f='';return _0x43a01e&&(_0x38b338=_0x43a01e['label'],_0x31d15f=_0x33f668(_0x38b338)['toLowerCase']()),{'type':'format','content':o(_0x3fc517,'*Set\x20font\x20color:*\x20%0',_0x31d15f)['trim'](),'color':{'value':_0x52d698,'title':_0x31d15f||_0x38b338}};}return{'type':'format','content':o(_0x3fc517,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4aaab1['commandName']){const _0x5b25bf=_0x4aaab1['commandParams'][0x0]['value'];if(_0x5b25bf){const _0x2c1621=_0x2730f7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x50c26d=>_0x50c26d['model']==_0x5b25bf);let _0x1b0d5a=_0x5b25bf,_0x46621d='';return _0x2c1621&&(_0x1b0d5a=_0x2c1621['label'],_0x46621d=_0x33f668(_0x1b0d5a)['toLowerCase']()),{'type':'format','content':o(_0x3fc517,'*Set\x20font\x20background\x20color:*\x20%0',_0x46621d)['trim'](),'color':{'value':_0x5b25bf,'title':_0x46621d||_0x1b0d5a}};}return{'type':'format','content':o(_0x3fc517,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x231f11{['afterInit'](){const _0x3453d7=this['editor'],_0x92f74f=_0x3453d7['plugins']['get']('TrackChangesEditing'),_0x5e773a=_0x3453d7['commands']['get']('copyFormat'),_0x175359=_0x3453d7['commands']['get']('pasteFormat');_0x5e773a&&_0x175359&&(_0x92f74f['enableDefaultAttributesIntegration']('pasteFormat'),_0x92f74f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2e7bc2=this['editor'],_0x6c3c06=_0x2e7bc2['locale'];_0x2e7bc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x261df3=>{if('formatBlock'!=_0x261df3['type']&&'formatInline'!=_0x261df3['type'])return;const {data:_0xd186f9}=_0x261df3;if(_0xd186f9&&'pasteFormat'===_0xd186f9['commandName']){const _0x3bc77b=[],_0x3deb9e=_0xd186f9['commandParams'][0x0];for(const [_0x10f123,_0x1bfc1d]of Object['entries'](_0x3deb9e))_0x3bc77b['push'](so(_0x2e7bc2,_0x10f123,_0x1bfc1d));return _0x3bc77b['length']?{'type':'format','content':o(_0x6c3c06,'*Set\x20format\x20to:*\x20%0',_0x3bc77b['join'](',\x20'))}:{'type':'format','content':o(_0x6c3c06,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2a844a,_0x3f072c,_0x33967d){const _0x8557fd=_0x2a844a['locale']['t'],_0x12d5cf=_0x3f072c['split'](/(?=[A-Z])/)['join']('\x20'),_0x381df4=_0x8557fd(_0x12d5cf['charAt'](0x0)['toUpperCase']()+_0x12d5cf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x33967d)return _0x381df4;if('fontColor'===_0x3f072c||'fontBackgroundColor'===_0x3f072c){const _0x1e97bd=_0x2730f7(_0x2a844a['config']['get']('fontColor.colors'))['find'](_0x6ca929=>_0x6ca929['model']==_0x33967d);return _0x381df4+'\x20('+(_0x1e97bd?_0x8557fd(_0x1e97bd['label'])['toLowerCase']():_0x33967d)+')';}if('fontSize'===_0x3f072c&&isNaN(parseFloat(_0x33967d))){const _0x453155=_0x2a844a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2a844a['config']['get']('fontSize.options'))['find'](_0x5c5e81=>_0x5c5e81['model']==_0x33967d);return _0x381df4+'\x20('+(_0x453155?_0x8557fd(_0x453155['title'])['toLowerCase']():_0x33967d)+')';}return _0x381df4+'\x20('+_0x33967d+')';}class tt extends _0x231f11{['_headingOptions'];['afterInit'](){const _0x121a9a=this['editor'];if(!_0x121a9a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x121a9a['config']['get']('heading.options');const _0x133225=_0x121a9a['locale'],_0x43ecd7=_0x121a9a['plugins']['get']('TrackChangesEditing');_0x43ecd7['enableDefaultAttributesIntegration']('heading');for(const _0x13e2f8 of this['_headingOptions'])'paragraph'!=_0x13e2f8['model']&&_0x43ecd7['descriptionFactory']['registerElementLabel'](_0x13e2f8['model'],_0x554ac7=>{const _0x359fad=this['_getHeadingLevel'](_0x13e2f8['model']);return null!==_0x359fad?_0x5a3461(_0x554ac7,_0x359fad):_0x31dac2(_0x554ac7,_0x13e2f8['title']);});function _0x5a3461(_0x145550,_0x2a3f7d){return o(_0x133225,'ELEMENT_HEADING',[_0x145550,_0x2a3f7d]);}function _0x31dac2(_0x42938f,_0x57c624){return o(_0x133225,'ELEMENT_HEADING_CUSTOM',[_0x42938f,_0x57c624]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11244=this['editor'],_0x1c5968=_0x11244['locale'];function _0x1097b3(_0x4aed0f,_0x4e9218){return o(_0x1c5968,'ELEMENT_HEADING_CUSTOM',[_0x4aed0f,_0x4e9218]);}_0x11244['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29fe19=>{if('formatBlock'!=_0x29fe19['type'])return;const {data:_0x43bdeb}=_0x29fe19;if(_0x43bdeb&&'heading'==_0x43bdeb['commandName']){const _0x3c97df=_0x43bdeb['commandParams'][0x0]['value'],_0x2efbdb=this['_getHeadingLevel'](_0x3c97df);if(null!==_0x2efbdb)return{'type':'format','content':o(_0x1c5968,'*Change\x20to:*\x20%0',(_0x44714c=0x1,_0x3e0ccd=_0x2efbdb,o(_0x1c5968,'ELEMENT_HEADING',[_0x44714c,_0x3e0ccd])))};const _0x44e8d5=this['_headingOptions']['find'](_0x25ee41=>_0x25ee41['model']===_0x3c97df)['title'];return{'type':'format','content':o(_0x1c5968,'*Change\x20to:*\x20%0',_0x1097b3(0x1,_0x44e8d5))};}var _0x44714c,_0x3e0ccd;});}['_getHeadingLevel'](_0x4d7b54){const _0x43bee5=_0x4d7b54['match'](/^heading(\d+)/);if(_0x43bee5)return _0x43bee5[0x1];const _0x9f7180=this['_headingOptions']?.['find'](_0x15675f=>_0x15675f['model']==_0x4d7b54);if(_0x9f7180&&_0x9f7180['view']){const _0x140c02=_0x9f7180['view'],_0x2589f9=(_0x140c02['name']??_0x140c02)['match'](/^h(\d+)/);if(_0x2589f9)return _0x2589f9[0x1];}return null;}}class et extends _0x231f11{['afterInit'](){const _0x1953b8=this['editor'];if(!_0x1953b8['plugins']['has']('HighlightEditing'))return;const _0x2ea858=_0x1953b8['plugins']['get']('TrackChangesEditing'),_0x2482c3=_0x1953b8['locale'];_0x2ea858['enableDefaultAttributesIntegration']('highlight'),_0x2ea858['registerInlineAttribute']('highlight'),_0x2ea858['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2482c3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ebb8c=this['editor'],_0x5ae9fa=_0x4ebb8c['locale'];_0x4ebb8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29f58=>{if('formatInline'!=_0x29f58['type'])return;const {data:_0x4c94c5}=_0x29f58;if(_0x4c94c5&&'highlight'==_0x4c94c5['commandName']){const _0x420ac0=_0x5ae9fa['t'],_0x32d502=_0x4c94c5['commandParams'][0x0]['value'];if(_0x32d502){const _0x21e018=_0x4ebb8c['config']['get']('highlight.options')['find'](_0x3986e6=>_0x3986e6['model']==_0x32d502),_0x1de654=_0x420ac0(_0x21e018['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ae9fa,'*Set\x20highlight:*\x20%0',_0x1de654),'color':{'value':_0x21e018['color'],'title':_0x21e018['title']}};}return{'type':'format','content':o(_0x5ae9fa,'*Remove\x20highlight*',o(_0x5ae9fa,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x231f11{['afterInit'](){const _0x1eced2=this['editor'];if(!_0x1eced2['plugins']['has']('HorizontalLineEditing'))return;_0x1eced2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x26547e=_0x1eced2['plugins']['get']('TrackChangesEditing'),_0xbbaaf5=_0x1eced2['locale'];_0x26547e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x56616c=>o(_0xbbaaf5,'ELEMENT_HORIZONTAL_LINE',_0x56616c)),_0x1eced2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x532629,{writer:_0x2f7e13,options:_0x453b96})=>{if(!_0x453b96['showSuggestionHighlights'])return null;const _0x364870=_0x2f7e13['createContainerElement']('div'),_0xefdcd8=_0x2f7e13['createEmptyElement']('hr');return _0x2f7e13['addClass']('ck-horizontal-line',_0x364870),_0x2f7e13['insert'](_0x2f7e13['createPositionAt'](_0x364870,0x0),_0xefdcd8),_0x364870;},'converterPriority':'high'});}}class st extends _0x231f11{['afterInit'](){const _0x13bb46=this['editor'];if(!_0x13bb46['plugins']['has']('HtmlEmbed'))return;const _0x3b791d=_0x13bb46['plugins']['get']('TrackChangesEditing'),_0x52445e=_0x13bb46['locale'];_0x3b791d['descriptionFactory']['registerElementLabel']('rawHtml',_0x5efb49=>o(_0x52445e,'ELEMENT_HTML_EMBED',_0x5efb49)),_0x3b791d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3b791d['registerBlockAttribute']('value'),_0x3b791d['descriptionFactory']['registerDescriptionCallback'](_0x3b4c64=>{if('attribute'!=_0x3b4c64['type'])return;const {data:_0x12ae9c}=_0x3b4c64;if(_0x12ae9c&&'value'==_0x12ae9c['key']&&_0x3b4c64['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2f86fd=o(_0x52445e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x52445e,'*Change\x20%0\x20content*',_0x2f86fd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe94182=this['editor'],_0x4bd929=_0xe94182['locale'];_0xe94182['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e89e3=>{if('formatBlock'!=_0x4e89e3['type'])return;const {data:_0x40dbe0}=_0x4e89e3;if(_0x40dbe0&&'htmlEmbed'==_0x40dbe0['commandName']){const _0x375871=o(_0x4bd929,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4bd929,'*Change\x20%0\x20content*',_0x375871)};}});}}class nt extends _0x231f11{['afterInit'](){const _0x36b3c5=this['editor'];if(!_0x36b3c5['plugins']['has']('ImageEditing'))return;const _0xe5ff93=_0x36b3c5['plugins']['get']('TrackChangesEditing'),_0x5b7758=_0x36b3c5['plugins']['get']('ImageUtils'),_0x2d918d=_0x36b3c5['locale'];_0xe5ff93['enableCommand']('insertImage'),_0xe5ff93['descriptionFactory']['registerElementLabel']('imageBlock',_0x6b5952=>o(_0x2d918d,'ELEMENT_IMAGE',_0x6b5952)),_0xe5ff93['descriptionFactory']['registerElementLabel']('imageInline',_0x463c46=>o(_0x2d918d,'ELEMENT_INLINE_IMAGE',_0x463c46)),_0xe5ff93['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2d918d,'ELEMENT_CAPTION')),_0x36b3c5['plugins']['has']('ImageUploadEditing')&&_0xe5ff93['enableCommand']('uploadImage'),_0x36b3c5['plugins']['has']('ImageBlockEditing')&&_0x36b3c5['plugins']['has']('ImageInlineEditing')&&(_0xe5ff93['enableCommand']('imageTypeInline',(_0x6b392f,_0x211215)=>{const _0x2291b7=_0x5b7758['getClosestSelectedImageElement'](_0x36b3c5['model']['document']['selection']);_0x36b3c5['model']['change'](()=>{_0xe5ff93['markBlockFormat'](_0x2291b7,{'commandName':'imageTypeInline','commandParams':[_0x211215]},[],'convertBlockImageToInline');});}),_0xe5ff93['enableCommand']('imageTypeBlock',(_0x5acd1f,_0x165749)=>{_0x36b3c5['model']['change'](_0x1c05e6=>{let _0x428bee=_0x5b7758['getClosestSelectedImageElement'](_0x36b3c5['model']['document']['selection']),_0x2bc298=_0x1c05e6['createRangeOn'](_0x428bee);const _0x19b19a=_0x21ff1b['fromPosition'](_0x2bc298['start'],'toPrevious'),_0x3611d3=_0x21ff1b['fromPosition'](_0x2bc298['end'],'toNext');_0xe5ff93['forceDefaultExecution'](()=>_0x5acd1f(_0x165749)),_0x428bee=_0x5b7758['getClosestSelectedImageElement'](_0x36b3c5['model']['document']['selection']),_0x2bc298=_0x1c05e6['createRangeOn'](_0x428bee);const _0x1b89cb=_0x1c05e6['createRange'](_0x19b19a,_0x3611d3);_0x19b19a['detach'](),_0x3611d3['detach'](),_0xe5ff93['markBlockFormat'](_0x428bee,{'commandName':'imageTypeInline','commandParams':[_0x165749]},[],'convertInlineImageToBlock'),_0x1b89cb['start']['isBefore'](_0x2bc298['start'])&&_0xe5ff93['markInsertion'](_0x1c05e6['createRange'](_0x1b89cb['start'],_0x2bc298['start']),'convertInlineImageToBlock'),_0x2bc298['end']['isBefore'](_0x1b89cb['end'])&&_0xe5ff93['markInsertion'](_0x1c05e6['createRange'](_0x2bc298['end'],_0x1b89cb['end']),'convertInlineImageToBlock');});}),_0xe5ff93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xe5ff93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xe5ff93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xe5ff93['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xe5ff93['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xe5ff93['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4aceda])=>{const _0x370416=_0xe5ff93['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x53b510=_0x4aceda['start'],_0x2c39fa=_0x4aceda['end'];const _0x44a6f3=_0x36b3c5['model']['schema']['getNearestSelectionRange'](_0x53b510,'backward'),_0x463397=_0x36b3c5['model']['schema']['getNearestSelectionRange'](_0x2c39fa,'forward');_0x44a6f3['isCollapsed']&&(_0x53b510=_0x44a6f3['start']),_0x463397['isCollapsed']&&(_0x2c39fa=_0x463397['end']),_0x370416([_0x36b3c5['model']['createRange'](_0x53b510,_0x2c39fa)]);}),_0xe5ff93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2288e5),_0xe5ff93['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2288e5)),_0x36b3c5['plugins']['has']('ImageCaptionEditing')&&(_0xe5ff93['enableCommand']('toggleImageCaption',(_0x4f4916,_0x24cef6)=>{const _0x5bc113=_0x36b3c5['plugins']['get']('ImageCaptionUtils');let _0x3ef7ff=_0x5b7758['getClosestSelectedImageElement'](_0x36b3c5['model']['document']['selection']),_0x2f7a44=_0x5bc113['getCaptionFromImageModelElement'](_0x3ef7ff);_0x36b3c5['model']['change'](()=>{if(_0x2f7a44)return void _0xe5ff93['markDeletion'](_0x36b3c5['model']['createRangeOn'](_0x2f7a44));const _0x2d7cc9=_0x5b7758['isBlockImage'](_0x3ef7ff);_0x4f4916(_0x24cef6),_0x3ef7ff=_0x5b7758['getClosestSelectedImageElement'](_0x36b3c5['model']['document']['selection']),_0x2f7a44=_0x5bc113['getCaptionFromImageModelElement'](_0x3ef7ff),_0xe5ff93['markInsertion'](_0x36b3c5['model']['createRangeOn'](_0x2f7a44),_0x2d7cc9?null:'imageCaption');});}),_0xe5ff93['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2288e5));const _0x16d335=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4eb717(_0x15b250,_0x166798){const _0x1a2773=_0x16d335['findIndex'](({type:_0x582774,subType:_0x552b89})=>_0x15b250['type']==_0x582774&&_0x15b250['subType']==_0x552b89),_0x5eb6f2=_0x16d335['findIndex'](({type:_0x23cf26,subType:_0x5d638b})=>_0x166798['type']==_0x23cf26&&_0x166798['subType']==_0x5d638b);if(_0x1a2773<0x0||_0x5eb6f2<0x0)return!0x1;const _0x370ebf=_0x15b250['getFirstRange'](),_0x9c577e=_0x166798['getFirstRange']();if((0x0==_0x1a2773||0x1==_0x1a2773)&&0x2==_0x5eb6f2&&_0x370ebf['isIntersecting'](_0x9c577e))return!0x0;if(0x2==_0x1a2773&&0x3==_0x5eb6f2){const _0x2a4ad2=_0xe5ff93['_findSuggestions'](_0x370ebf,'insertion')['filter'](({suggestion:_0x19da5c,meta:_0x4bd56e})=>_0x4bd56e['isOwn']&&'convertInlineImageToBlock'==_0x19da5c['subType']);if(_0x2a4ad2['length']>0x1&&_0x9c577e['end']['isEqual'](_0x370ebf['start']))return!0x0;if(0x1==_0x2a4ad2['length']&&(_0x370ebf['start']['isEqual'](_0x9c577e['end'])||_0x370ebf['end']['isEqual'](_0x9c577e['start'])))return!0x0;}if(0x3==_0x1a2773&&0x3==_0x5eb6f2&&_0x370ebf['start']['isBefore'](_0x9c577e['start'])){const _0x558df8=_0x370ebf['end']['nodeAfter'],_0x4116a4=_0x9c577e['start']['nodeBefore'];return _0x5b7758['isBlockImage'](_0x558df8)&&_0x558df8===_0x4116a4;}return!0x1;}function _0x2288e5(_0x126dac,_0x2ff280){return _0x4eb717(_0x126dac,_0x2ff280)?[_0x126dac,_0x2ff280]:_0x4eb717(_0x2ff280,_0x126dac)?[_0x2ff280,_0x126dac]:null;}_0x36b3c5['plugins']['has']('ImageResize')&&(_0xe5ff93['enableDefaultAttributesIntegration']('resizeImage'),_0xe5ff93['registerBlockAttribute']('resizedWidth'),_0xe5ff93['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2d918d,'FORMAT_IMAGE_SIZE'))),_0x36b3c5['plugins']['has']('ImageTextAlternativeEditing')&&(_0xe5ff93['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xe5ff93['registerBlockAttribute']('alt')),_0xe5ff93['descriptionFactory']['registerDescriptionCallback'](_0xc59e2e=>{if(!!_0x16d335['find'](({type:_0x3ec988,subType:_0x366fb9})=>_0xc59e2e['type']==_0x3ec988&&_0xc59e2e['subType']==_0x366fb9))return _0xc59e2e['previous']?{}:void 0x0;}),_0xe5ff93['descriptionFactory']['registerDescriptionCallback'](_0x286f09=>{if('insertion'==_0x286f09['type']||'deletion'==_0x286f09['type']){const _0x48d71f=_0x286f09['getContainedElement']();if(_0x48d71f&&_0x48d71f['is']('element','caption'))return{'type':'insertion'==_0x286f09['type']?'addObject':'removeObject','element':_0x48d71f,'quantity':0x1};}}),_0xe5ff93['descriptionFactory']['registerDescriptionCallback'](_0x28d894=>'formatBlock'==_0x28d894['type']&&'convertInlineImageToBlock'==_0x28d894['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x28d894['type']&&'convertBlockImageToInline'==_0x28d894['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xe5ff93['descriptionFactory']['registerDescriptionCallback'](_0x168c76=>{if('attribute'!=_0x168c76['type'])return;const {data:_0x345cb9}=_0x168c76;if(!_0x345cb9||'alt'!=_0x345cb9['key'])return;const _0xd18e06=_0x345cb9['newValue'];return _0xd18e06?{'type':'format','content':o(_0x2d918d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd18e06+'\x22')}:{'type':'format','content':o(_0x2d918d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e4ea0=this['editor'],_0x95f811=_0x1e4ea0['locale'];_0x1e4ea0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4de0c7=>{if('formatBlock'!=_0x4de0c7['type']&&'formatInline'!=_0x4de0c7['type'])return;const {data:_0xeda947}=_0x4de0c7;if(_0xeda947){if('imageTextAlternative'==_0xeda947['commandName']){const _0x1b654e=_0xeda947['commandParams'][0x0]['newValue'];return _0x1b654e?{'type':'format','content':o(_0x95f811,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b654e+'\x22')}:{'type':'format','content':o(_0x95f811,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xeda947['commandName']){const _0x17dd82=_0xeda947['commandParams'][0x0]['width'];return _0x17dd82?{'type':'format','content':o(_0x95f811,'*Set\x20image\x20width:*\x20%0',_0x17dd82)}:{'type':'format','content':o(_0x95f811,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x231f11{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1b0321=this['editor']['locale'],_0x45fab0=this['editor']['plugins']['get']('TrackChangesEditing');_0x45fab0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x45fab0['registerBlockAttribute']('src'),_0x45fab0['descriptionFactory']['registerDescriptionCallback'](_0x48dded=>{if('attribute'!=_0x48dded['type'])return;const {data:_0x308f96}=_0x48dded;return _0x308f96&&'src'==_0x308f96['key']?_0x308f96['newValue']&&_0x308f96['oldValue']?{'type':'format','content':o(_0x1b0321,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13336a=this['editor']['plugins']['get']('TrackChangesEditing');_0x13336a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x13336a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13336a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x13336a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40aeb7=this['editor'],_0x33d65d=_0x40aeb7['locale'];_0x40aeb7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x206bad=>{if('formatBlock'!=_0x206bad['type']&&'formatInline'!=_0x206bad['type'])return;const {data:_0x41b3b2}=_0x206bad;if(!_0x41b3b2||'replaceImageSource'!=_0x41b3b2['commandName'])return;return{'type':'format','content':o(_0x33d65d,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x231f11{['afterInit'](){const _0x380a57=this['editor'];if(!_0x380a57['plugins']['has']('ImageStyleEditing'))return;const _0x529ccf=_0x380a57['plugins']['get']('TrackChangesEditing'),_0x5b76c9=_0x380a57['plugins']['get']('ImageUtils'),_0x24b68f={};_0x529ccf['enableCommand']('imageStyle',(_0x41c194,_0x3c4564)=>{const _0x469fdc=_0x380a57['plugins']['get']('Users')['me'],_0xebefbd=_0x380a57['commands']['get']('imageStyle');let _0x71f46f=_0x5b76c9['getClosestSelectedImageElement'](_0x380a57['model']['document']['selection']),_0x4b95ac=_0x380a57['model']['createRangeOn'](_0x71f46f),_0x3cac08=_0xebefbd['value'];if(_0x3cac08==_0x3c4564['value'])return;const _0x45ff49={'commandName':'imageStyle','commandParams':[_0x3c4564],'formatGroupId':_0x138912()};_0x380a57['model']['change'](()=>{if(_0x529ccf['getSuggestions']()['filter'](_0x22bef3=>_0x22bef3['isInContent']&&_0x469fdc==_0x22bef3['author']&&('formatBlock'==_0x22bef3['type']||'formatInline'==_0x22bef3['type'])&&('imageStylePreApply'==_0x22bef3['subType']||'imageStylePostApply'==_0x22bef3['subType'])&&_0x22bef3['getFirstRange']()['isEqual'](_0x4b95ac))['forEach'](_0x2fdec2=>_0x529ccf['discardSuggestion'](_0x2fdec2['head'])),_0x71f46f=_0x5b76c9['getClosestSelectedImageElement'](_0x380a57['model']['document']['selection']),_0x4b95ac=_0x380a57['model']['createRangeOn'](_0x71f46f),_0xebefbd['refresh'](),_0x380a57['commands']['get']('imageTypeInline')['refresh'](),_0x380a57['commands']['get']('imageTypeBlock')['refresh'](),_0x3cac08=_0xebefbd['value'],_0x3cac08!=_0x3c4564['value'])return _0x5b76c9['isInlineImage'](_0x71f46f)&&_0xebefbd['shouldConvertImageType'](_0x3c4564['value'],_0x71f46f)?(_0x41c194({..._0x3c4564,'setImageSizes':!0x1}),_0x71f46f=_0x5b76c9['getClosestSelectedImageElement'](_0x380a57['model']['document']['selection']),void _0x529ccf['markBlockFormat'](_0x71f46f,{..._0x45ff49,'commandReversedParams':[{'value':_0x3cac08||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5b76c9['isBlockImage'](_0x71f46f)?_0x529ccf['markBlockFormat'](_0x71f46f,_0x45ff49,[],'imageStylePostApply'):_0x529ccf['markInlineFormat'](_0x4b95ac,_0x45ff49,'imageStylePostApply'));});});for(const _0x5015ed of _0x380a57['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x24b68f[_0x5015ed['name']]=_0x5015ed['title']['toLowerCase']();_0x529ccf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x529ccf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x529ccf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x529ccf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2acf66])=>{_0x5b76c9['setImageNaturalSizeAttributes'](_0x2acf66['getContainedElement']());}),_0x529ccf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d06b4,_0x45efe8)=>{_0x529ccf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d06b4,{'commandName':_0x45efe8['commandName'],'commandParams':_0x45efe8['commandReversedParams']});}),_0x529ccf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x35f75c,_0x24a900){if(_0x5bb84e(_0x35f75c,_0x24a900))return[_0x35f75c,_0x24a900];if(_0x5bb84e(_0x24a900,_0x35f75c))return[_0x24a900,_0x35f75c];return null;});const _0xc41005=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5bb84e(_0x4731fb,_0x18f3c7){const _0x1111a3=_0xc41005['findIndex'](({type:_0x3f04bd,subType:_0x22c7d0})=>_0x4731fb['type']==_0x3f04bd&&_0x4731fb['subType']==_0x22c7d0),_0x20d37c=_0xc41005['findIndex'](({type:_0x3ccb6b,subType:_0x116b79})=>_0x18f3c7['type']==_0x3ccb6b&&_0x18f3c7['subType']==_0x116b79);if(_0x1111a3<0x0||_0x20d37c<0x0)return!0x1;const _0x1d23c7=_0x4731fb['getFirstRange'](),_0xdc84b2=_0x18f3c7['getFirstRange']();if((0x0==_0x1111a3||0x1==_0x1111a3)&&0x2==_0x20d37c&&_0x1d23c7['isIntersecting'](_0xdc84b2))return!0x0;if(0x2==_0x1111a3&&0x3==_0x20d37c){const _0x9e19d7=_0x529ccf['_findSuggestions'](_0x1d23c7,'insertion')['filter'](({suggestion:_0x3cda4e,meta:_0x18e249})=>_0x18e249['isOwn']&&'convertInlineImageToBlock'==_0x3cda4e['subType']);if(_0x9e19d7['length']>0x1&&_0xdc84b2['end']['isEqual'](_0x1d23c7['start']))return!0x0;if(0x1==_0x9e19d7['length']&&(_0x1d23c7['start']['isEqual'](_0xdc84b2['end'])||_0x1d23c7['end']['isEqual'](_0xdc84b2['start'])))return!0x0;}if(0x3==_0x1111a3&&0x3==_0x20d37c&&_0x1d23c7['start']['isBefore'](_0xdc84b2['start'])){const _0x5d8677=_0x1d23c7['end']['nodeAfter'],_0x2d44ff=_0xdc84b2['start']['nodeBefore'];return _0x5b76c9['isBlockImage'](_0x5d8677)&&_0x5d8677===_0x2d44ff;}return!0x1;}_0x380a57['model']['document']['registerPostFixer'](()=>{let _0x4bf32a=!0x1;const _0x28e35f=Array['from'](_0x380a57['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f06e4,data:_0x49b869}of _0x28e35f){const {group:_0x5317ab,type:_0x50d0d6,subType:_0x272d43,id:_0x517520}=_0x529ccf['_splitMarkerName'](_0x3f06e4);if('suggestion'==_0x5317ab&&_0x529ccf['hasSuggestion'](_0x517520)){if('formatBlock'==_0x50d0d6&&('imageStylePreApply'==_0x272d43||'imageStylePostApply'==_0x272d43)){const _0xb359b0=_0x529ccf['getSuggestion'](_0x517520);if(_0x49b869['newRange']){const _0x39d893=_0xb359b0['getFirstRange']()['getContainedElement']();if(_0x5b76c9['isBlockImage'](_0x39d893))continue;_0x529ccf['discardSuggestion'](_0xb359b0),_0x4bf32a=!0x0;}}if('insertion'==_0x50d0d6&&'imageCaption'==_0x272d43&&!_0x49b869['newRange']){const _0x5bdb58=_0x529ccf['getSuggestion'](_0x517520);_0x5bdb58['next']&&_0x5bdb58['next']['isInContent']&&(_0x529ccf['discardSuggestion'](_0x5bdb58['next']),_0x4bf32a=!0x0);}}}return _0x4bf32a;}),this['_registerLegacyDescription'](_0x24b68f);}['_registerLegacyDescription'](_0x4ab04c){const _0x84a34=this['editor'],_0x24f886=_0x84a34['locale'];_0x84a34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x193ae4=>{if('formatBlock'!=_0x193ae4['type']&&'formatInline'!=_0x193ae4['type'])return;const {data:_0x4e0f38}=_0x193ae4;if(!_0x4e0f38||'imageStyle'!=_0x4e0f38['commandName'])return;const _0x2a2356=_0x4e0f38['commandParams'][0x0]['value'];return _0x6d073d('side'===_0x2a2356?o(_0x24f886,'FORMAT_SIDE_IMAGE'):_0x4ab04c[_0x2a2356]||_0x2a2356);function _0x6d073d(_0x88d5ff){return{'type':'format','content':o(_0x24f886,'*Format:*\x20%0',_0x88d5ff)};}});}}class at extends _0x231f11{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x252304){super(_0x252304),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x335065=this['editor'],_0x1b587b=_0x335065['commands']['get']('importWord'),_0x2d0038=_0x335065['commands']['get']('trackChanges');_0x1b587b&&(_0x1b587b['on']('execute',(_0x526a2a,[,_0x297294])=>{this['_trackChangesValueDuringImport']=_0x2d0038['value'],_0x297294['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1b587b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1b587b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2d0038['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x335065['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2ab9c0,_0x362daa){const {suggestions:_0x3db351}=_0x362daa,_0x5c31f4=this['editor']['commands']['get']('trackChanges'),_0x195b56=_0x5c31f4['value'];this['_trackChangesValueDuringImport']!==_0x195b56&&(_0x5c31f4['execute'](),this['_trackChangesExecuted']=!0x0),_0x3db351&&_0x3db351['forEach'](({id:_0x1f034c,type:_0x1566b2,author:_0x314599,created_at:_0x4991d2})=>{const _0x1be5e5={'id':_0x1f034c,'type':_0x1566b2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x314599,'createdAt':_0x4991d2?new Date(_0x4991d2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1be5e5);});}}class ct extends _0x231f11{['afterInit'](){const _0x4ca3f7=this['editor'],_0x502e07=_0x4ca3f7['plugins']['get']('TrackChangesEditing');if(_0x4ca3f7['plugins']['has']('IndentEditing')&&(_0x502e07['enableCommand']('indent'),_0x502e07['enableCommand']('outdent')),_0x4ca3f7['plugins']['has']('IndentBlock')){for(const _0x2e6229 of['indentBlock','outdentBlock'])_0x502e07['enableDefaultAttributesIntegration'](_0x2e6229);}const _0x1b6dff=_0x4ca3f7['locale'];_0x502e07['registerBlockAttribute']('blockIndent'),_0x502e07['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1b6dff,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x883505=this['editor'],_0x493828=_0x883505['locale'],_0x1482fe=_0x883505['plugins']['get']('TrackChangesEditing');_0x1482fe['descriptionFactory']['registerDescriptionCallback'](_0x4a3681=>{if('formatBlock'!=_0x4a3681['type'])return;const {data:_0x3450d4}=_0x4a3681;if(!_0x3450d4)return;if('indentBlock'!=_0x3450d4['commandName']&&'outdentBlock'!=_0x3450d4['commandName'])return;const _0x1633e9=_0x4a3681['getItems']()[0x0],_0x2cf36c=_0x1482fe['descriptionFactory']['getItemLabel'](_0x1633e9);return'indentBlock'==_0x3450d4['commandName']?{'type':'format','content':o(_0x493828,'*Indent:*\x20%0',_0x2cf36c)}:'outdentBlock'==_0x3450d4['commandName']?{'type':'format','content':o(_0x493828,'*Outdent:*\x20%0',_0x2cf36c)}:void 0x0;});}}class ut extends _0x231f11{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x231f11{['afterInit'](){const _0x2ce2c3=this['editor'];if(!_0x2ce2c3['plugins']['has']('LinkEditing'))return;const _0x1c2e3e=_0x2ce2c3['plugins']['get']('TrackChangesEditing'),_0x466ebc=_0x2ce2c3['commands']['get']('link');_0x1c2e3e['enableDefaultAttributesIntegration']('link'),_0x1c2e3e['enableDefaultAttributesIntegration']('unlink'),_0x1c2e3e['registerInlineAttribute']('linkHref');for(const _0x588211 of _0x466ebc['manualDecorators'])_0x1c2e3e['registerInlineAttribute'](_0x588211['id']),_0x1c2e3e['descriptionFactory']['registerAttributeLabel'](_0x588211['id'],'link\x20('+_0x588211['label']['toLowerCase']()+')');_0x1c2e3e['descriptionFactory']['registerDescriptionCallback'](_0x14d56f=>{if('attribute'!=_0x14d56f['type'])return;const {data:_0x4b64f6}=_0x14d56f;if(!_0x4b64f6||'linkHref'!=_0x4b64f6['key'])return;const _0x3c7668=_0x4b64f6['newValue'],_0x62c66d=_0x2ce2c3['locale'];return{'type':'format','content':null==_0x3c7668?o(_0x62c66d,'*Remove\x20link*'):o(_0x62c66d,'*Set\x20link:*\x20%0','\x22'+_0x3c7668+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a99c6=this['editor'],_0x58de59=_0x2a99c6['locale'];_0x2a99c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333d93=>{if('formatInline'!=_0x333d93['type'])return;const {data:_0x2f03d5}=_0x333d93;if(_0x2f03d5){if('link'==_0x2f03d5['commandName']){const _0x50de44=_0x2f03d5['commandParams'][0x0];return{'type':'format','content':o(_0x58de59,'*Set\x20link:*\x20%0','\x22'+_0x50de44+'\x22')};}return'unlink'==_0x2f03d5['commandName']?{'type':'format','content':o(_0x58de59,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x231f11{['afterInit'](){const _0xe1c993=this['editor'],_0x463006=_0xe1c993['locale'];if(!_0xe1c993['plugins']['has']('LegacyListEditing'))return;const _0x5ddc3c=_0xe1c993['plugins']['get']('TrackChangesEditing'),_0x2d367e=_0xe1c993['plugins']['has']('LegacyTodoListEditing');function _0x5d3b1c(_0x5b2f02){return()=>{const _0x4cdf55=_0xe1c993['model']['document']['selection'],_0x8d4672=_0xe1c993['commands']['get'](_0x5b2f02);if(_0x8d4672['value'])return void _0xe1c993['execute']('paragraph',{});const _0x58033f=_0x5b2f02['slice'](0x0,-0x4),_0x2c3e0b=function(_0x43eb18,_0x2fdba7,_0xc3ffb5){let _0x1aff36=Array['from'](_0x43eb18)['filter'](_0x2cbd45=>function(_0x4f39d8,_0x59e3f8){return _0x59e3f8['checkChild'](_0x4f39d8['parent'],'listItem')&&!_0x59e3f8['isObject'](_0x4f39d8);}(_0x2cbd45,_0xc3ffb5));_0x1aff36=_0x1aff36['filter'](_0x22ec01=>!_0x22ec01['is']('element','listItem')||_0x22ec01['getAttribute']('listType')!=_0x2fdba7);const _0x4509c1=new Set();for(const _0x241add of _0x1aff36)_0x241add['is']('element','listItem')?_0x4509c1['add'](fe(_0x241add)):_0x4509c1['add'](_0x241add);return Array['from'](_0x4509c1);}(_0x4cdf55['getSelectedBlocks'](),_0x58033f,_0xe1c993['model']['schema']);_0xe1c993['model']['change'](()=>{for(const _0xb400f1 of _0x2c3e0b)_0x5ddc3c['markBlockFormat'](_0xb400f1,{'commandName':_0x5b2f02,'commandParams':[{'forceValue':!_0x8d4672['value']}],'formatGroupId':'blockName'},ue(_0xb400f1));});};}function _0x260fee(_0xee1523){return()=>{const _0x703edb=function(_0x2b86cf){let _0x340f08=Array['from'](_0x2b86cf);const _0x2ec974=_0x340f08['findIndex'](_0x5efa96=>'listItem'!=_0x5efa96['name']);return _0x2ec974>-0x1&&(_0x340f08=_0x340f08['slice'](0x0,_0x2ec974)),_0x340f08;}(_0xe1c993['model']['document']['selection']['getSelectedBlocks']()),_0x43af62=_0xe1c993['model']['createRange'](_0xe1c993['model']['createPositionAt'](_0x703edb[0x0],'before'),_0xe1c993['model']['createPositionAt'](_0x703edb[_0x703edb['length']-0x1],'end'));_0xe1c993['model']['change'](()=>{_0x5ddc3c['markBlockFormat'](_0x43af62,{'commandName':_0xee1523,'commandParams':[],'formatGroupId':'listIndent'},function(_0x335983){const _0x536044=new Set();for(const _0x91125f of _0x335983){let _0x408f76=_0x91125f['nextSibling'];for(;_0x408f76&&_0x408f76['getAttribute']('listIndent')>_0x91125f['getAttribute']('listIndent');)_0x536044['add'](_0x408f76),_0x408f76=_0x408f76['nextSibling'];}return Array['from'](_0x536044);}(_0x703edb));});};}_0x5ddc3c['enableCommand']('numberedList',_0x5d3b1c('numberedList')),_0x5ddc3c['enableCommand']('bulletedList',_0x5d3b1c('bulletedList')),_0x2d367e&&_0x5ddc3c['enableCommand']('todoList',_0x5d3b1c('todoList')),_0x5ddc3c['enableCommand']('indentList',_0x260fee('indentList')),_0x5ddc3c['enableCommand']('outdentList',_0x260fee('outdentList')),_0x2d367e&&_0x5ddc3c['enableCommand']('checkTodoList',()=>{const _0x48134c=_0xe1c993['commands']['get']('checkTodoList'),_0x1bb0df=Array['from'](_0x48134c['_selectedElements']);_0x1bb0df['filter'](_0x357faf=>_0x357faf['getAttribute']('todoListChecked')!=_0x48134c['value']),_0xe1c993['model']['change'](()=>{for(const _0x52087c of _0x1bb0df)_0x5ddc3c['markBlockFormat'](_0x52087c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x48134c['value']}]});});}),_0x5ddc3c['descriptionFactory']['registerElementLabel']('listItem',_0x3e916a=>o(_0x463006,'ELEMENT_LIST_ITEM',_0x3e916a)),_0x5ddc3c['descriptionFactory']['registerDescriptionCallback'](_0x14e1fe=>{if('formatBlock'!=_0x14e1fe['type']&&'formatInline'!=_0x14e1fe['type'])return;const {data:_0xee13e4}=_0x14e1fe;if(_0xee13e4){if('numberedList'==_0xee13e4['commandName']||'bulletedList'==_0xee13e4['commandName']||'todoList'==_0xee13e4['commandName'])switch(_0xee13e4['commandName']['replace']('List','')){case'bulleted':return _0xfbdd72(o(_0x463006,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfbdd72(o(_0x463006,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfbdd72(o(_0x463006,'ELEMENT_TODO_LIST'));}if('indentList'==_0xee13e4['commandName'])return{'type':'format','content':o(_0x463006,'*Indent:*\x20%0',o(_0x463006,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xee13e4['commandName'])return{'type':'format','content':o(_0x463006,'*Outdent:*\x20%0',o(_0x463006,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xee13e4['commandName'])return _0xee13e4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x463006,'*Check\x20item*')}:{'type':'format','content':o(_0x463006,'*Uncheck\x20item*')};}function _0xfbdd72(_0x88d107){return{'type':'format','content':o(_0x463006,'*Change\x20to:*\x20%0',_0x88d107)};}});}}function fe(_0x3f852a){const _0x12a0c7=_0x3f852a['getAttribute']('listIndent');if(0x0==_0x12a0c7)return _0x3f852a;let _0x1d211f=_0x3f852a;for(;_0x3f852a['previousSibling']&&_0x3f852a['previousSibling']['is']('element','listItem');){const _0x41f7a2=_0x3f852a['previousSibling']['getAttribute']('listIndent');if(_0x41f7a2==_0x12a0c7)_0x1d211f=_0x3f852a['previousSibling'];else{if(_0x41f7a2<_0x12a0c7)break;}_0x3f852a=_0x3f852a['previousSibling'];}return _0x1d211f;}function ue(_0x6f96){const _0x562ae2=[];if(_0x6f96['is']('element','listItem')&&_0x6f96['getAttribute']('listIndent')>0x0){let _0x240587=_0x6f96['nextSibling'];for(;_0x240587&&'listItem'==_0x240587['name']&&_0x240587['getAttribute']('listIndent')==_0x6f96['getAttribute']('listIndent');)_0x562ae2['push'](_0x240587),_0x240587=_0x240587['nextSibling'];}return _0x562ae2;}class W extends _0x231f11{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3e1a61=this['editor']['config']['get']('list.properties'),_0x30f485=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e1a61['styles']&&_0x30f485['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3e1a61['reversed']&&_0x30f485['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3e1a61['startIndex']&&_0x30f485['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30f485['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1efd00,_0x2747cd={}){const _0x3cb2ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56b8c5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3cb2ca['markMultiRangeBlockFormat'](_0x56b8c5,{'commandName':'listStyle','commandParams':[{'type':_0x2747cd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a2ad0,_0x4d1b61={}){const _0x235f63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ff624=this['_getSuggestionBlocks'](_0x794b33=>_0x794b33['is']('element','listItem')&&'numbered'===_0x794b33['getAttribute']('listType'));if(_0x4ff624['length']<0x1)return;const _0x44b8b5=_0x4ff624['map'](_0x452abd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x452abd,'before'),this['editor']['model']['createPositionAt'](_0x452abd,0x0)));this['editor']['model']['change'](()=>{_0x235f63['markMultiRangeBlockFormat'](_0x44b8b5,{'commandName':'listReversed','commandParams':[{'reversed':_0x4d1b61['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5c4003,_0x5a70bb={}){const _0x30c3b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f43a6=this['_getSuggestionBlocks'](_0x5667d1=>_0x5667d1['is']('element','listItem')&&'numbered'===_0x5667d1['getAttribute']('listType'));if(_0x1f43a6['length']<0x1)return;const _0x234b9a=_0x1f43a6['map'](_0x231560=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x231560,'before'),this['editor']['model']['createPositionAt'](_0x231560,0x0)));this['editor']['model']['change'](()=>{_0x30c3b5['markMultiRangeBlockFormat'](_0x234b9a,{'commandName':'listStart','commandParams':[{'startIndex':_0x5a70bb['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x14c2f0){if('formatBlock'!=_0x14c2f0['type']&&'formatInline'!=_0x14c2f0['type'])return;const _0x4d9487=this['editor']['locale'],{data:_0x2757a4}=_0x14c2f0;if(!_0x2757a4)return;let _0x19098d,_0x51708b;switch(_0x2757a4['commandName']){case'listStyle':_0x19098d='*Change\x20to:*\x20%0',_0x51708b={'type':'format','content':o(_0x4d9487,_0x19098d,o(_0x4d9487,this['_getTranslationKeyForListStyle'](_0x2757a4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x19098d=_0x2757a4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51708b={'type':'format','content':o(_0x4d9487,_0x19098d)};break;case'listStart':_0x19098d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51708b={'type':'format','content':o(_0x4d9487,_0x19098d,_0x2757a4['commandParams'][0x0]['startIndex'])};}return _0x51708b;}['_getSuggestionBlocksForListStyle'](){const _0x28b129=this['editor']['plugins']['get']('LegacyListUtils');let _0x50db94=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x50db94[0x0]?.['is']('element','listItem')&&_0x50db94['unshift'](..._0x28b129['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x50db94[_0x50db94['length']-0x1]?.['is']('element','listItem')&&_0x50db94['push'](..._0x28b129['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x50db94=[...new Set(_0x50db94)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x50db94=_0x50db94['filter'](_0x52a6bd=>_0x52a6bd['is']('element','listItem'))),_0x50db94;}['_getSuggestionBlocks'](_0x5cacb1){const _0x10999f=this['editor']['plugins']['get']('LegacyListUtils');let _0x101aa4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5cacb1)['map'](_0x2a1675=>{const _0x218bea=this['editor']['model']['createPositionAt'](_0x2a1675,0x0);return[..._0x10999f['getSiblingNodes'](_0x218bea,'backward'),..._0x10999f['getSiblingNodes'](_0x218bea,'forward')];})['flat']();return _0x101aa4=[...new Set(_0x101aa4)],_0x101aa4;}['_getTranslationKeyForListStyle'](_0x42fd2d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x42fd2d)||'default')['toUpperCase']()+'_LIST_'+_0x42fd2d['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x231f11{['afterInit'](){const _0x3c8bbd=this['editor'];if(!_0x3c8bbd['plugins']['has']('MediaEmbedEditing'))return;const _0x190a01=_0x3c8bbd['plugins']['get']('TrackChangesEditing'),_0x231d00=_0x3c8bbd['locale'];_0x190a01['enableCommand']('mediaEmbed'),_0x190a01['descriptionFactory']['registerElementLabel']('media',_0x46d26c=>o(_0x231d00,'ELEMENT_MEDIA',_0x46d26c)),_0x3c8bbd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x438e70,{writer:_0xab50d,options:_0xae08b})=>{if(_0xae08b['showSuggestionHighlights'])return _0xab50d['createEmptyElement']('div');},'converterPriority':'high'}),_0x3c8bbd['data']['downcastDispatcher']['on']('attribute:url:media',(_0x44cf9f,_0x1fc6da,_0x406737)=>{_0x406737['options']['showSuggestionHighlights']&&_0x44cf9f['stop']();},{'priority':'high'});}}class mt extends _0x231f11{['afterInit'](){const _0x2f99fd=this['editor'];_0x2f99fd['plugins']['has']('MentionEditing')&&_0x2f99fd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x231f11{['afterInit'](){const _0x5dcc30=this['editor'];if(!_0x5dcc30['commands']['get']('insertMergeField'))return;_0x5dcc30['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x111274=_0x5dcc30['plugins']['get']('TrackChangesEditing'),_0x42b531=_0x5dcc30['locale'];_0x111274['descriptionFactory']['registerElementLabel']('mergeField',_0x39fb08=>o(_0x42b531,'ELEMENT_MERGE_FIELD',_0x39fb08)),_0x111274['descriptionFactory']['registerDescriptionCallback'](_0xdd0fb9=>{if('insertion'!=_0xdd0fb9['type']&&'deletion'!=_0xdd0fb9['type'])return;const _0x19f563=_0xdd0fb9['getContainedElement']();if(null==_0x19f563)return;if(!_0x19f563['is']('element','mergeField'))return;const _0xfabaf8=_0x5dcc30['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x19f563['getAttribute']('id'));return'insertion'==_0xdd0fb9['type']?{'type':'insertion','content':o(_0x42b531,'*Insert:*\x20%0','\x22'+_0xfabaf8+'\x22\x20'+o(_0x42b531,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x42b531,'*Remove:*\x20%0','\x22'+_0xfabaf8+'\x22\x20'+o(_0x42b531,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x231f11{['afterInit'](){const _0x568d91=this['editor'],_0x5594c=_0x568d91['plugins']['get']('TrackChangesEditing');_0x568d91['plugins']['has']('MultiLevelList')&&(_0x5594c['enableDefaultAttributesIntegration']('multiLevelList'),_0x5594c['registerBlockAttribute']('listMarkerStyle'),_0x5594c['descriptionFactory']['registerDescriptionCallback'](_0x5a0164=>this['handleDescriptions'](_0x5a0164)));}['handleDescriptions'](_0x4ecb43){const _0x571391=this['editor']['locale'],{data:_0x3c2952}=_0x4ecb43,_0xccb30f={'type':'format','content':''};if(_0x3c2952&&'listMarkerStyle'==_0x3c2952['key']){if(!_0x3c2952['oldValue'])return{'type':'format','content':o(_0x571391,'*Set\x20format:*\x20%0',o(_0x571391,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c2952['newValue']+')'};if(!_0x3c2952['newValue']){let _0x27d931=_0x4ecb43['head'];for(;_0x27d931;){if(_0x27d931['data']&&'listType'==_0x27d931['data']['key']&&_0x27d931['data']['newValue'])return _0xccb30f;_0x27d931=_0x27d931['next'];}return{'type':'format','content':o(_0x571391,'*Remove\x20format:*\x20%0',o(_0x571391,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c2952['oldValue']+')'};}}}}class kt extends _0x231f11{['afterInit'](){const _0x5925b5=this['editor'];if(!_0x5925b5['plugins']['has']('PageBreakEditing'))return;_0x5925b5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x33fb5b=_0x5925b5['plugins']['get']('TrackChangesEditing'),_0x2259b4=_0x5925b5['locale'];_0x33fb5b['descriptionFactory']['registerElementLabel']('pageBreak',_0x2904e4=>o(_0x2259b4,'ELEMENT_PAGE_BREAK',_0x2904e4));}}class bt extends _0x231f11{['afterInit'](){const _0x311c77=this['editor'];if(!_0x311c77['plugins']['has']('Paragraph'))return;const _0x430644=_0x311c77['locale'],_0x5d1b68=_0x311c77['plugins']['get']('TrackChangesEditing');_0x5d1b68['descriptionFactory']['registerElementLabel']('paragraph',_0x46b7f2=>o(_0x430644,'ELEMENT_PARAGRAPH',_0x46b7f2)),_0x5d1b68['enableDefaultAttributesIntegration']('paragraph'),_0x5d1b68['enableCommand']('insertParagraph'),_0x311c77['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x311c77),{'priority':'highest'}),_0x311c77['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2606d5,_0x1fe5b0,_0xec38b)=>{_0xec38b['options']['showSuggestionHighlights']&&nr(_0x311c77,{'showActiveMarker':!0x1})(_0x2606d5,_0x1fe5b0,_0xec38b);},{'priority':'highest'});const _0x3252a0=_0x5d1b68['descriptionFactory'];_0x3252a0['registerDescriptionCallback'](_0x31590f=>{if('insertion'!==_0x31590f['type'])return;const {start:_0x468299,end:_0x4238fc}=_0x31590f['getFirstRange']();if(!_0x468299['isTouching'](_0x4238fc)||!_0x468299['nodeAfter'])return;const _0x2d66f1=_0x311c77['model']['schema'],_0x3e669e=_0x468299['nodeAfter'];return _0x2d66f1['isBlock'](_0x3e669e)&&!_0x2d66f1['isLimit'](_0x3e669e)&&_0x2d66f1['checkChild'](_0x3e669e,'$text')?{'type':'insertion','content':o(_0x430644,'*Insert:*\x20%0',_0x3252a0['getItemLabel'](_0x3e669e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x224f4b=this['editor'],_0x348f9a=_0x224f4b['locale'];_0x224f4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8a5b6b=>{if('formatBlock'!=_0x8a5b6b['type'])return;const {data:_0x20e202}=_0x8a5b6b;return _0x20e202&&'paragraph'==_0x20e202['commandName']?{'type':'format','content':o(_0x348f9a,'*Change\x20to:*\x20%0',o(_0x348f9a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x17e080,{showActiveMarker:_0x1f9835=!0x0}={}){return(_0x1193ee,_0x27e451,_0x19d88e)=>{const _0xc48db9=_0x17e080['plugins']['get']('TrackChangesEditing'),_0x4cbc30=_0x27e451['markerRange']['start'],_0x51ee51=_0x27e451['markerRange']['end'],_0x21e3de=_0x17e080['model']['schema'];if(!_0x4cbc30['isTouching'](_0x51ee51)||!_0x4cbc30['nodeAfter'])return;const _0x481695=_0x4cbc30['nodeAfter'];if(_0x21e3de['isBlock'](_0x481695)&&!_0x21e3de['isLimit'](_0x481695)&&_0x21e3de['checkChild'](_0x481695,'$text')){if(!_0x19d88e['consumable']['consume'](_0x27e451['markerRange'],_0x1193ee['name']))return;const _0x21a3ab=_0x19d88e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x57e093=_0x19d88e['mapper']['toViewPosition'](_0x51ee51);_0x1f9835&&_0xc48db9['activeMarkers']['includes'](_0x27e451['markerName'])&&_0x19d88e['writer']['addClass']('ck-suggestion-marker--active',_0x21a3ab),_0x19d88e['writer']['insert'](_0x57e093,_0x21a3ab),_0x19d88e['mapper']['bindElementToMarker'](_0x21a3ab,_0x27e451['markerName']);}};}class wt extends _0x231f11{['afterInit'](){const _0x200f52=this['editor'];if(!_0x200f52['plugins']['has']('RemoveFormatEditing'))return;_0x200f52['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1150c9=this['editor'];_0x1150c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8d75b6=>{if('formatBlock'!=_0x8d75b6['type']&&'formatInline'!=_0x8d75b6['type'])return;const {data:_0xb64fd5}=_0x8d75b6;return _0xb64fd5&&'removeFormat'==_0xb64fd5['commandName']?{'type':'format','content':o(_0x1150c9['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x231f11{['afterInit'](){const _0x1189be=this['editor'];if(!_0x1189be['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x564a4c=_0x1189be['plugins']['get']('TrackChangesEditing');_0x564a4c['enableCommand']('goToPreviousRestrictedEditingException'),_0x564a4c['enableCommand']('goToNextRestrictedEditingException');const _0x225009=_0x1189be['plugins']['get']('RestrictedEditingModeEditing');_0x225009['enableCommand']('trackChanges'),_0x225009['enableCommand']('acceptSuggestion'),_0x225009['enableCommand']('discardSuggestion'),_0x225009['enableCommand']('acceptAllSuggestions'),_0x225009['enableCommand']('discardAllSuggestions'),_0x225009['enableCommand']('acceptSelectedSuggestions'),_0x225009['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x231f11{static get['requires'](){return[_0x4e9e3c];}['init'](){const _0x46f9c4=this['editor'],_0x30e1b9=_0x46f9c4['plugins']['get']('TrackChangesEditing');_0x30e1b9['enableCommand']('shiftEnter'),_0x46f9c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x46f9c4),{'priority':'high'}),_0x46f9c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x46f9c4),{'priority':'high'}),_0x46f9c4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x234181,_0x45a766,_0x581ed0)=>{_0x581ed0['options']['showSuggestionHighlights']&&ge(_0x46f9c4,{'showActiveMarker':!0x1})(_0x234181,_0x45a766,_0x581ed0);}),_0x30e1b9['descriptionFactory']['registerElementLabel']('softBreak',_0x8dac92=>o(_0x46f9c4['locale'],'ELEMENT_LINE_BREAK',_0x8dac92));}}function ge(_0x6f48a1,{showActiveMarker:_0x1fe2f8=!0x0}={}){return(_0x4d3c64,_0x5b9f83,_0x2b5e4f)=>{const _0x30e84f=_0x6f48a1['plugins']['get']('TrackChangesEditing');if(!_0x2b5e4f['consumable']['test'](_0x5b9f83['markerRange'],_0x4d3c64['name']))return;const _0x3334b5=_0x6f48a1['model'];for(const _0x50696f of _0x5b9f83['markerRange']['getItems']()){if(!_0x50696f['is']('element','softBreak'))continue;const _0x37d7a3='deletion'==_0x5b9f83['markerName']['split'](':')[0x1]?'merge':'split',_0x2a45e6=_0x2b5e4f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x37d7a3}),_0x32f729=_0x2b5e4f['mapper']['toViewPosition'](_0x3334b5['createPositionBefore'](_0x50696f));_0x1fe2f8&&_0x30e84f['activeMarkers']['includes'](_0x5b9f83['markerName'])&&_0x2b5e4f['writer']['addClass']('ck-suggestion-marker--active',_0x2a45e6),_0x2b5e4f['writer']['insert'](_0x32f729,_0x2a45e6),_0x2b5e4f['mapper']['bindElementToMarker'](_0x2a45e6,_0x5b9f83['markerName']);}};}class St extends _0x231f11{['afterInit'](){const _0xf91c46=this['editor'],_0x5883fe=_0xf91c46['model'],_0x484f79=_0xf91c46['locale'];if(!_0xf91c46['plugins']['has']('StandardEditingModeEditing'))return;const _0x71f652=_0xf91c46['plugins']['get']('TrackChangesEditing'),_0x463d60='restrictedEditingException',_0xc9b3ed=_0xf91c46['commands']['get'](_0x463d60);_0x71f652['enableCommand'](_0x463d60,(_0x6e7993,_0x598eb8={})=>{const _0x12a2df=_0x5883fe['document']['selection'];if(_0x12a2df['isCollapsed'])return void _0x6e7993(_0x598eb8);const _0x24be6d=void 0x0!==_0x598eb8['forceValue']?_0x598eb8['forceValue']:!_0xc9b3ed['value'];_0x5883fe['change'](()=>{const _0xc7847a=Array['from'](_0x12a2df['getRanges']());for(const _0x2112c7 of _0xc7847a){const _0x2937a0=_0x24be6d?[_0x2112c7]:io(_0x463d60,_0x2112c7,_0x5883fe);for(const _0x53288d of _0x2937a0)_0x71f652['markInlineFormat'](_0x53288d,{'commandName':_0x463d60,'commandParams':[{'forceValue':_0x24be6d}]});}});}),_0x71f652['descriptionFactory']['registerDescriptionCallback'](_0x14c79c=>{if('formatBlock'!=_0x14c79c['type']&&'formatInline'!=_0x14c79c['type'])return;const {data:_0x533cf9}=_0x14c79c;return _0x533cf9&&_0x533cf9['commandName']==_0x463d60?_0x533cf9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x484f79,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x484f79,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x231f11{['afterInit'](){const _0x25b47b=this['editor'];if(!_0x25b47b['plugins']['has']('Style')||!_0x25b47b['plugins']['has']('DataSchema'))return;const _0x4184b4=_0x25b47b['plugins']['get']('TrackChangesEditing'),_0x21902d=_0x25b47b['locale'],_0x13c779=_0x25b47b['config']['get']('style')||{},_0x2f35a3=_0x25b47b['plugins']['get']('GeneralHtmlSupport'),_0x5cf7f0=_0x25b47b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x25b47b['plugins']['get']('DataSchema'),_0x13c779['definitions']);_0x4184b4['enableDefaultAttributesIntegration']('style');const _0xe627b2=new Set();for(const _0x4f1806 of _0x5cf7f0['block']){const _0x114d9f=_0x2f35a3['getGhsAttributeNameForElement'](_0x4f1806['element']);_0xe627b2['add'](_0x114d9f);}const _0xca102b=new Set();for(const _0x5cb54d of _0x5cf7f0['inline']){const _0xc45103=_0x2f35a3['getGhsAttributeNameForElement'](_0x5cb54d['element']);_0xca102b['add'](_0xc45103);for(const _0x4af409 of _0x5cb54d['ghsAttributes'])_0xca102b['add'](_0x4af409);}for(const _0x137042 of _0xe627b2)_0x4184b4['registerBlockAttribute'](_0x137042),_0x4184b4['descriptionFactory']['registerAttributeLabel'](_0x137042,o(_0x21902d,'FORMAT_STYLE'));for(const _0x7243d4 of _0xca102b)_0x4184b4['registerInlineAttribute'](_0x7243d4),_0x4184b4['descriptionFactory']['registerAttributeLabel'](_0x7243d4,o(_0x21902d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d0977=this['editor'],_0x5252b1=_0x4d0977['locale'];_0x4d0977['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cc0c8=>{if('formatBlock'!=_0x3cc0c8['type']&&'formatInline'!=_0x3cc0c8['type'])return;const {data:_0xf68a4c}=_0x3cc0c8;return _0xf68a4c&&'style'===_0xf68a4c['commandName']?_0xf68a4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5252b1,'*Set\x20format:*\x20%0',_0xf68a4c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5252b1,'*Remove\x20format:*\x20%0',_0xf68a4c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x231f11{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5c5c23){super(_0x5c5c23),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x35a4bc=this['editor'],_0x23c5fe=_0x35a4bc['model']['document']['selection'];if(!_0x35a4bc['plugins']['has']('TableEditing'))return;const _0x40dff3=_0x35a4bc['locale'],_0x30c484=_0x35a4bc['plugins']['get']('TrackChangesEditing'),_0x2e6573=_0x35a4bc['plugins']['get']('TableUtils');_0x30c484['descriptionFactory']['registerElementLabel']('table',_0x3b0920=>o(_0x40dff3,'ELEMENT_TABLE',_0x3b0920)),this['_setupColumnsRowsFixing'](),_0x30c484['enableCommand']('insertTable'),_0x30c484['enableCommand']('selectTableRow'),_0x30c484['enableCommand']('selectTableColumn');for(const _0x35f948 of['insertTableRowAbove','insertTableRowBelow']){const _0x1a1cb5=_0x35a4bc['commands']['get'](_0x35f948);_0x30c484['enableCommand'](_0x35f948,_0x6f5a29=>{_0x35a4bc['model']['change'](_0xe36bce=>{_0x6f5a29();const _0x436888='above'===_0x1a1cb5['order'],_0x4210b2=_0x2e6573['getSelectionAffectedTableCells'](_0x23c5fe),_0x53ddc0=_0x2e6573['getRowIndexes'](_0x4210b2),_0x4fceb3=_0x436888?_0x53ddc0['first']-0x1:_0x53ddc0['last']+0x1,_0x2bacbe=_0x4210b2[0x0]['findAncestor']('table'),_0x4e72b7=_0x2e6573['createTableWalker'](_0x2bacbe,{'startRow':_0x4fceb3,'endRow':_0x4fceb3}),_0x328b70=Array['from'](_0x4e72b7)['map'](_0x5a1da0=>_0xe36bce['createRangeOn'](_0x5a1da0['cell']));_0x30c484['markMultiRangeInsertion'](_0x328b70,'tableRow');});});}for(const _0x22f235 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1a5f0d=_0x35a4bc['commands']['get'](_0x22f235);_0x30c484['enableCommand'](_0x22f235,_0x2dfa85=>{_0x35a4bc['model']['change'](_0x3e7e9d=>{_0x2dfa85();const _0x2b4e2a='left'===_0x1a5f0d['order'],_0x432587=_0x2e6573['getSelectionAffectedTableCells'](_0x23c5fe),_0x4b7efe=_0x2e6573['getColumnIndexes'](_0x432587),_0x2537bf=_0x2b4e2a?_0x4b7efe['first']-0x1:_0x4b7efe['last']+0x1,_0x1aa15b=_0x432587[0x0]['findAncestor']('table'),_0x727887=_0x2e6573['createTableWalker'](_0x1aa15b,{'startRow':0x0,'column':_0x2537bf,'includeAllSlots':!0x1}),_0x2019ee=Array['from'](_0x727887)['map'](_0x4e0612=>_0x3e7e9d['createRangeOn'](_0x4e0612['cell']));_0x30c484['markMultiRangeInsertion'](_0x2019ee,'tableColumn');});});}for(const _0xd26248 of['removeTableRow','removeTableColumn']){const _0x1e1549=_0xd26248['substr'](0xb),_0x5dad71=_0x1e1549['toLowerCase'](),_0x246f87=_0x5dad71['substr'](0x0,0x3)+'span',_0x552ed6='table'+_0x1e1549,_0x42c7f9='min'+_0x1e1549,_0x5ee95c='max'+_0x1e1549;_0x30c484['enableCommand'](_0xd26248,()=>{_0x35a4bc['model']['change'](_0x3c1ddc=>{const _0xc51cae=_0x2e6573['getSelectionAffectedTableCells'](_0x23c5fe),_0x4245a5=_0xc51cae[0x0]['findAncestor']('table');let _0xa51b4c;if('removeTableRow'==_0xd26248){const _0x25749d=_0x2e6573['getRowIndexes'](_0xc51cae);_0xa51b4c={'startRow':_0x25749d['first'],'endRow':_0x25749d['last'],'includeAllSlots':!0x0};}else{const _0x37d187=_0x2e6573['getColumnIndexes'](_0xc51cae);_0xa51b4c={'startColumn':_0x37d187['first'],'endColumn':_0x37d187['last'],'includeAllSlots':!0x0};}const _0x191924=_0x2e6573['createTableWalker'](_0x4245a5,_0xa51b4c),_0x37045b=Array['from'](_0x191924)['map'](({cell:_0x5a97c9})=>_0x5a97c9),_0x107934=Ee(_0x37045b['filter'](_0x56b7b4=>_0x56b7b4['hasAttribute'](_0x246f87))),_0x45d18e=Ee(_0x37045b['filter'](_0x3579f3=>!_0x3579f3['hasAttribute'](_0x246f87)))['map'](_0x33abab=>_0x3c1ddc['createRangeOn'](_0x33abab)),_0x4ed46e=_0x30c484['markMultiRangeDeletion'](_0x45d18e,_0x552ed6);if(_0x4ed46e&&('tableRow'==_0x4ed46e['subType']||'tableColumn'==_0x4ed46e['subType'])){const _0x5310ef=this['_getSuggestionCoords'](_0x4ed46e);for(const _0xe521ab of _0x107934){const _0x236182=_0x3c1ddc['createRangeOn'](_0xe521ab),_0x2462ea=_0x2e6573['getCellLocation'](_0xe521ab),_0x3f5e9a=_0xe521ab['getAttribute'](_0x246f87)-0x1,_0x2ce3ec=_0x5310ef[_0x42c7f9],_0x5d722b=_0x5310ef[_0x5ee95c];_0x2ce3ec<=_0x2462ea[_0x5dad71]&&_0x2462ea[_0x5dad71]+_0x3f5e9a<=_0x5d722b&&_0x4ed46e['addRange'](_0x236182);}}});});}function _0x567179(_0x3cf1fe){const _0x55a88b=Array['from'](_0x23c5fe['getRanges']())['map'](_0x7746a1=>_0x135447['fromRange'](_0x7746a1));_0x35a4bc['model']['change'](_0x394347=>{const _0x5193ec=_0x394347['batch'];_0x3cf1fe=_0x3cf1fe['filter'](_0x18d532=>'$graveyard'!=_0x18d532['root']['rootName']),_0x394347['setSelection'](_0x3cf1fe),_0x35a4bc['commands']['get']('removeTableRow')['refresh'](),_0x35a4bc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x35a4bc['model']['enqueueChange'](()=>{_0x35a4bc['model']['enqueueChange'](_0x5193ec,_0x4e40a3=>{const _0x5e8b26=_0x55a88b['filter'](_0x581e21=>'$graveyard'!=_0x581e21['root']['rootName']);_0x5e8b26['length']>0x0&&_0x4e40a3['setSelection'](_0x5e8b26);for(const _0x143541 of _0x55a88b)_0x143541['detach']();});});});}function _0x4df2d7(_0x4e185d){_0x35a4bc['model']['change'](_0x243d5e=>{const _0x571add=Array['from'](_0x23c5fe['getRanges']())['map'](_0x5d891c=>_0x135447['fromRange'](_0x5d891c)),_0x12b413=[];for(const _0x20a3dd of _0x4e185d)for(const _0x3ee108 of _0x20a3dd['getItems']({'shallow':!0x0}))_0x12b413['push'](_0x3ee108);for(const _0x52bdfd of _0x12b413)'$graveyard'!=_0x52bdfd['root']['rootName']&&(_0x243d5e['setSelection'](_0x243d5e['createPositionAt'](_0x52bdfd,0x0)),_0x35a4bc['commands']['get']('removeTableColumn')['refresh'](),_0x35a4bc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x461d6c=_0x571add['filter'](_0xfec252=>'$graveyard'!=_0xfec252['root']['rootName']);_0x461d6c['length']>0x0&&_0x243d5e['setSelection'](_0x461d6c);for(const _0x4597ac of _0x571add)_0x4597ac['detach']();});}function _0x112d00(_0x32e9c9,_0x55cc81){return _0x55cc81['every'](_0x49c371=>_0x32e9c9['some'](_0x486a6d=>_0x486a6d['end']['isEqual'](_0x49c371['start'])||_0x49c371['end']['isEqual'](_0x486a6d['start'])));}function _0x5e4106(_0x23b707,_0x3e6687){return!_0x23b707['some'](_0x5193e4=>_0x3e6687['some'](_0xee97eb=>_0x5193e4['isIntersecting'](_0xee97eb)))&&_0x23b707['some'](_0x192295=>_0x3e6687['some'](_0x11eed2=>_0x192295['end']['isTouching'](_0x11eed2['start'])));}_0x35a4bc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x430a9e,_0x58b4b9,_0x52bc82)=>{if(!_0x52bc82['options']['showSuggestionHighlights'])return;const _0x2d30a4=_0x58b4b9['item'];if(!_0x2d30a4)return;const _0x33bcaf=_0x52bc82['mapper']['toViewElement'](_0x2d30a4);function _0x493ff3(_0x2ce4f9){return Array['isArray'](_0x2ce4f9)?_0x2ce4f9:[_0x2ce4f9];}_0x33bcaf&&'tableCell'===_0x2d30a4['name']&&_0xeec9d(_0x33bcaf,_0x52bc82['writer'],(_0xb753b0,_0x3c718b,_0x54a0d8)=>_0x54a0d8['addClass'](_0x493ff3(_0x3c718b['classes']),_0xb753b0),(_0x178101,_0x232853,_0x26d604)=>_0x26d604['removeClass'](_0x493ff3(_0x232853['classes']),_0x178101));},{'priority':'highest'}),_0x30c484['descriptionFactory']['registerDescriptionCallback'](_0x11ae38=>{if('insertion'!=_0x11ae38['type']&&'deletion'!=_0x11ae38['type'])return;const _0x2d920b=_0x11ae38['getContainedElement']();if(null!=_0x2d920b&&_0x2d920b['is']('element','table')){if('insertion'==_0x11ae38['type']){const _0x32b190=_0x11ae38['getItems']()['filter'](_0x34ebc8=>_0x34ebc8['is']('$textProxy'))['map'](_0x24eb30=>_0x24eb30['data']);if(_0x32b190['length'])return{'type':'insertion','content':o(_0x40dff3,'*Insert:*\x20%0',o(_0x40dff3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x32b190['join']('\x20')+'\x22'))};}if('deletion'==_0x11ae38['type']){const _0x4122df=_0x11ae38['getItems']()['filter'](_0xdc1415=>_0xdc1415['is']('$textProxy'))['map'](_0x4423cd=>_0x4423cd['data']);if(_0x4122df['length'])return{'type':'deletion','content':o(_0x40dff3,'*Remove:*\x20%0',o(_0x40dff3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4122df['join']('\x20')+'\x22'))};}}}),_0x30c484['descriptionFactory']['registerDescriptionCallback'](_0xf0c527=>{if('tableRow'==_0xf0c527['subType']){const _0x3380e4=_0xf0c527['getItems']()['filter'](_0x5eb856=>_0x5eb856['is']('$textProxy'))['map'](_0x42ccc1=>_0x42ccc1['data']),_0x5e27eb=this['_getSuggestionCoords'](_0xf0c527),_0x2c80ae=_0x5e27eb['maxRow']-_0x5e27eb['minRow']+0x1;if('insertion'==_0xf0c527['type'])return _0x3380e4['length']?{'type':'insertion','content':o(_0x40dff3,'*Insert:*\x20%0',o(_0x40dff3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2c80ae,'\x22'+_0x3380e4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x40dff3,'*Insert:*\x20%0',o(_0x40dff3,'ELEMENT_TABLE_ROW',_0x2c80ae))};if('deletion'==_0xf0c527['type'])return _0x3380e4['length']?{'type':'deletion','content':o(_0x40dff3,'*Remove:*\x20%0',o(_0x40dff3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2c80ae,'\x22'+_0x3380e4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x40dff3,'*Remove:*\x20%0',o(_0x40dff3,'ELEMENT_TABLE_ROW',_0x2c80ae))};}if('tableColumn'==_0xf0c527['subType']){const _0x231702=_0xf0c527['getItems']()['filter'](_0x4f8d1e=>_0x4f8d1e['is']('$textProxy'))['map'](_0x31c930=>_0x31c930['data']),_0x2eb3e2=this['_getSuggestionCoords'](_0xf0c527),_0x5be348=_0x2eb3e2['maxColumn']-_0x2eb3e2['minColumn']+0x1;if('insertion'==_0xf0c527['type'])return _0x231702['length']?{'type':'insertion','content':o(_0x40dff3,'*Insert:*\x20%0',o(_0x40dff3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5be348,'\x22'+_0x231702['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x40dff3,'*Insert:*\x20%0',o(_0x40dff3,'ELEMENT_TABLE_COLUMN',_0x5be348))};if('deletion'==_0xf0c527['type'])return _0x231702['length']?{'type':'deletion','content':o(_0x40dff3,'*Remove:*\x20%0',o(_0x40dff3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5be348,'\x22'+_0x231702['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x40dff3,'*Remove:*\x20%0',o(_0x40dff3,'ELEMENT_TABLE_COLUMN',_0x5be348))};}}),_0x30c484['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x567179),_0x30c484['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x567179),_0x30c484['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4df2d7),_0x30c484['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4df2d7),_0x30c484['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x112d00),_0x30c484['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x112d00),_0x30c484['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5e4106),_0x30c484['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5e4106);}['_acceptFormatSuggestionCallbackFactory'](){const _0x39a2ed=this['editor'],_0x4ec7d6=_0x39a2ed['model']['document']['selection'];return(_0x320170,_0x4ce7db)=>{_0x39a2ed['model']['change'](_0x2006b8=>{const {commandName:_0x59b454,commandParams:_0x11b469}=_0x4ce7db;let _0x3f9043=_0x320170[0x0]['end']['nodeBefore'];_0x11b469&&_0x11b469[0x0]&&!0x1===_0x11b469[0x0]['forceValue']&&(_0x3f9043=_0x320170[0x0]['start']['nodeAfter']);const _0x36800f=_0x2006b8['createRangeIn'](_0x3f9043);if('$graveyard'==_0x36800f['root']['rootName'])return;const _0x1b8227=Array['from'](_0x4ec7d6['getRanges']())['map'](_0x4537dc=>_0x135447['fromRange'](_0x4537dc));_0x2006b8['setSelection'](_0x36800f),_0x39a2ed['commands']['get'](_0x59b454)['refresh'](),_0x11b469['push']({'forceDefaultExecution':!0x0}),_0x39a2ed['execute'](_0x59b454,..._0x11b469);const _0x3d65e2=_0x1b8227['filter'](_0x1ce693=>'$graveyard'!=_0x1ce693['root']['rootName']);_0x3d65e2['length']>0x0&&_0x2006b8['setSelection'](_0x3d65e2);for(const _0x175706 of _0x1b8227)_0x175706['detach']();});};}['_getCoordsForCells'](_0x3c7492){const _0x1cb41f=this['editor']['plugins']['get']('TableUtils');let _0x14f037=Number['MAX_SAFE_INTEGER'],_0x18333a=Number['MIN_SAFE_INTEGER'],_0x5229be=Number['MAX_SAFE_INTEGER'],_0x5245b0=Number['MIN_SAFE_INTEGER'];for(const _0x45d24d of _0x3c7492){if('$graveyard'==_0x45d24d['root']['rootName'])continue;const {row:_0x3ba20d,column:_0x17a6a4}=_0x1cb41f['getCellLocation'](_0x45d24d),_0xd69418=_0x45d24d['hasAttribute']('rowspan')?_0x45d24d['getAttribute']('rowspan')-0x1:0x0,_0x535028=_0x45d24d['hasAttribute']('colspan')?_0x45d24d['getAttribute']('colspan')-0x1:0x0;_0x14f037=_0x3ba20d<_0x14f037?_0x3ba20d:_0x14f037,_0x18333a=_0x3ba20d+_0xd69418>_0x18333a?_0x3ba20d+_0xd69418:_0x18333a,_0x5229be=_0x17a6a4<_0x5229be?_0x17a6a4:_0x5229be,_0x5245b0=_0x17a6a4+_0x535028>_0x5245b0?_0x17a6a4+_0x535028:_0x5245b0;}return{'minRow':_0x14f037,'maxRow':_0x18333a,'minColumn':_0x5229be,'maxColumn':_0x5245b0};}['_setupColumnsRowsFixing'](){const _0xc1c09f=this['editor'],_0xd9217a=_0xc1c09f['plugins']['get']('TrackChangesEditing'),_0x3c6367=_0xc1c09f['plugins']['get']('TableUtils');_0xc1c09f['model']['document']['on']('change:data',()=>{const _0x4f9e62=Array['from'](_0xc1c09f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cb053,data:_0x5e9962}of _0x4f9e62){const {group:_0xa2f616,id:_0x2abadb,subType:_0x46e8ef}=_0xd9217a['_splitMarkerName'](_0x3cb053);if('suggestion'!=_0xa2f616)continue;if(null!=_0x5e9962['oldRange'])continue;const _0x300501=_0xd9217a['getSuggestion'](_0x2abadb);this['_tablePostFixingSubtypes']['includes'](_0x46e8ef)&&this['_tableSuggestions']['add'](_0x300501);}},{'priority':'low'});const _0x5101f3=(_0x15e076,_0x221663)=>{let _0x119b1d=!0x1;const _0x183750=_0x221663['createRangeOn'](_0x15e076),_0x231c43=_0x15e076['findAncestor']('table'),_0x3182fd=_0x3c6367['getCellLocation'](_0x15e076);for(const _0x4c9ecd of this['_tableSuggestions']){const _0x9f74a8=_0x4c9ecd['subType'],_0x5e06e3=_0x9f74a8['startsWith']('tablePaste'),_0x411261=_0x9f74a8['substr'](_0x5e06e3?0xa:0x5),_0x29a4f8=_0x411261['toLowerCase'](),_0xef03e9=_0x29a4f8['substr'](0x0,0x3)+'span',_0x5d1280='min'+_0x411261,_0x3128df='max'+_0x411261;if(!_0x4c9ecd['isInContent'])continue;if(_0x231c43!=_0x4c9ecd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4c9ecd['isIntersectingWithRange'](_0x183750))continue;const _0x576b6e=_0x15e076['hasAttribute'](_0xef03e9)?_0x15e076['getAttribute'](_0xef03e9)-0x1:0x0,_0x18d703=this['_getSuggestionCoords'](_0x4c9ecd),_0x51e9d4=_0x18d703[_0x5d1280],_0x597093=_0x18d703[_0x3128df];_0x51e9d4<=_0x3182fd[_0x29a4f8]&&_0x3182fd[_0x29a4f8]+_0x576b6e<=_0x597093&&(_0x4c9ecd['addRange'](_0x183750),_0x119b1d=!0x0);}return _0x119b1d;};_0xc1c09f['model']['document']['registerPostFixer'](_0x2fb0b7=>{let _0x4d378d=!0x1;for(const _0x243ead of _0xc1c09f['model']['document']['differ']['getChanges']())if('insert'==_0x243ead['type']){if('tableRow'==_0x243ead['name']){for(const _0x500719 of _0x243ead['position']['nodeAfter']['getChildren']())_0x4d378d=_0x4d378d||_0x5101f3(_0x500719,_0x2fb0b7);}else'tableCell'==_0x243ead['name']&&(_0x4d378d=_0x4d378d||_0x5101f3(_0x243ead['position']['nodeAfter'],_0x2fb0b7));}return _0x4d378d;});}['_getSuggestionCoords'](_0x5cd1a3){return this['_getCoordsForCells'](_0x5cd1a3['getRanges']()['map'](_0x187c85=>_0x187c85['start']['nodeAfter']));}}function Ee(_0x427c4d){return Array['from'](new Set(_0x427c4d)['values']());}class vt extends _0x231f11{static get['requires'](){return[It];}['afterInit'](){const _0x2a0922=this['editor'],_0x5ee794=_0x2a0922['model']['document']['selection'],_0xb6edaa=_0x2a0922['locale'];if(!_0x2a0922['plugins']['has']('TableEditing'))return;const _0x270af8=_0x2a0922['plugins']['get']('TrackChangesEditing'),_0x24ac1f=_0x2a0922['plugins']['get']('TableUtils'),_0x3f40da=_0x2a0922['plugins']['get'](It);_0x3f40da['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x270af8['enableCommand']('mergeTableCells',()=>{const _0x25242b=_0x24ac1f['getSelectionAffectedTableCells'](_0x2a0922['model']['document']['selection']);_0x2a0922['model']['change'](()=>{_0x270af8['markMultiRangeBlockFormat'](_0x25242b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2a0922['commands']['get']('mergeTableCells')['on']('execute',(_0x20fa2b,_0x346c1f)=>{_0x2a0922['commands']['get']('trackChanges')['value']&&(_0x346c1f['length']>0x0&&_0x346c1f[_0x346c1f['length']-0x1]&&_0x346c1f[_0x346c1f['length']-0x1]['forceDefaultExecution']||_0x270af8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x20fa2b['stop']());},{'priority':'highest'});for(const _0x53d7bf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x379f81=_0x2a0922['commands']['get'](_0x53d7bf);_0x270af8['enableCommand'](_0x53d7bf,()=>{const _0x5e058f=_0x2a0922['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x51262d=>_0x51262d['is']('element','tableCell')),_0x53e714=_0x379f81['value'];_0x2a0922['model']['change'](()=>{_0x270af8['markMultiRangeBlockFormat']([_0x5e058f,_0x53e714],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3d46a3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4fd647=_0x2a0922['commands']['get'](_0x3d46a3);_0x270af8['enableCommand'](_0x3d46a3,()=>{const _0x788038=_0x24ac1f['getSelectionAffectedTableCells'](_0x2a0922['model']['document']['selection'])[0x0],_0x48fd2d=_0x788038['findAncestor']('table'),{column:_0x1e4509,row:_0x64c203}=_0x24ac1f['getCellLocation'](_0x788038);let _0x357774=[];if('horizontally'==_0x4fd647['direction']){const _0x37d20d=_0x24ac1f['createTableWalker'](_0x48fd2d,{'startRow':_0x64c203,'endRow':_0x64c203,'includeAllSlots':!0x0});_0x357774=Array['from'](_0x37d20d)['map'](_0x4dede7=>_0x4dede7['cell']);}else{const _0x4bd59c=_0x24ac1f['createTableWalker'](_0x48fd2d,{'column':_0x1e4509,'includeAllSlots':!0x0});_0x357774=Array['from'](_0x4bd59c)['map'](_0x162bc5=>_0x162bc5['cell']);}_0x2a0922['model']['change'](_0x361d75=>{_0x270af8['markBlockFormat'](_0x361d75['createRangeOn'](_0x788038),{'commandName':_0x3d46a3,'commandParams':[]},_0x357774,_0x3d46a3);});});}_0x270af8['descriptionFactory']['registerDescriptionCallback'](_0x148498=>{if('formatBlock'!=_0x148498['type']&&'formatInline'!=_0x148498['type'])return;const {data:_0x4cc25c}=_0x148498;return _0x4cc25c&&'mergeTableCells'==_0x4cc25c['commandName']?{'type':'format','content':o(_0xb6edaa,'*Merge\x20cells*')}:void 0x0;}),_0x270af8['descriptionFactory']['registerDescriptionCallback'](_0x275531=>{if('formatBlock'!=_0x275531['type']&&'formatInline'!=_0x275531['type'])return;const {data:_0x11a4bd}=_0x275531;return _0x11a4bd?'splitTableCellVertically'==_0x11a4bd['commandName']?{'type':'format','content':o(_0xb6edaa,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x11a4bd['commandName']?{'type':'format','content':o(_0xb6edaa,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2d41e9=_0x3f40da['_acceptFormatSuggestionCallbackFactory']();for(const _0x58c988 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x270af8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58c988,'accept',_0x2d41e9);for(const _0x451142 of['splitTableCellVertically','splitTableCellHorizontally'])_0x270af8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x451142,'accept',_0x2d41e9);_0x270af8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x244161=>{_0x2a0922['model']['change'](_0xb1febc=>{const _0x4d4bbd=Array['from'](_0x5ee794['getRanges']())['map'](_0x8f27cd=>_0x135447['fromRange'](_0x8f27cd));_0xb1febc['setSelection'](_0x244161),_0x2a0922['commands']['get']('mergeTableCells')['refresh'](),_0x2a0922['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1ad83e=_0x4d4bbd['filter'](_0x547f5a=>'$graveyard'!=_0x547f5a['root']['rootName']);_0x1ad83e['length']>0x0&&_0xb1febc['setSelection'](_0x1ad83e);for(const _0xba78a of _0x4d4bbd)_0xba78a['detach']();});});for(const _0x101c2c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x269b96=_0x2a0922['commands']['get'](_0x101c2c);_0x269b96['on']('set:isEnabled',(_0x20c316,_0x4e7e0b,_0x59fa72)=>{if(_0x59fa72){const _0x5ef7ab=_0x2a0922['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x435259=>_0x435259['is']('element','tableCell'));this['_areMergableCells'](_0x269b96['value'],_0x5ef7ab)||(_0x20c316['return']=!0x1,_0x20c316['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1c5b1b=this['editor']['commands']['get']('mergeTableCells'),_0x23d638=this['editor']['plugins']['get']('TableUtils');if(!_0x1c5b1b['isEnabled'])return!0x1;const _0x39b45d=_0x23d638['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x6ea449 of _0x39b45d)for(const _0x3d3f58 of _0x39b45d)if(_0x6ea449!=_0x3d3f58&&!this['_areMergableCells'](_0x6ea449,_0x3d3f58))return!0x1;return!0x0;}['_areMergableCells'](_0x3ae0ff,_0x487f07){const _0x5be324=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e3e69=this['editor']['model']['createRangeOn'](_0x3ae0ff),_0x56b057=this['editor']['model']['createRangeOn'](_0x487f07),_0x4112e6=new Set(),_0x19c602=new Set();for(const _0x44da6c of _0x5be324['getSuggestions']())if(('insertion'==_0x44da6c['type']||'deletion'==_0x44da6c['type']||'mergeTableCells'==_0x44da6c['subType'])&&_0x44da6c['isInContent']){for(const _0x279636 of _0x44da6c['getRanges']())_0x279636['containsRange'](_0x1e3e69,!0x0)&&_0x4112e6['add'](_0x44da6c['type']+':'+_0x44da6c['author']['id']),_0x279636['containsRange'](_0x56b057,!0x0)&&_0x19c602['add'](_0x44da6c['type']+':'+_0x44da6c['author']['id']);}if(_0x4112e6['size']!=_0x19c602['size'])return!0x1;for(const _0x58c3d9 of _0x4112e6)if(!_0x19c602['has'](_0x58c3d9))return!0x1;return!0x0;}}class Ct extends _0x231f11{static get['requires'](){return[It];}['afterInit'](){const _0x2b3a0f=this['editor'];if(!_0x2b3a0f['plugins']['has']('TableEditing'))return;const _0x4673d2=_0x2b3a0f['locale'],_0x4ee532=_0x2b3a0f['plugins']['get']('TrackChangesEditing');_0x4ee532['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4ee532['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4ee532['registerBlockAttribute']('headingRows'),_0x4ee532['registerBlockAttribute']('headingColumns'),_0x4ee532['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4673d2,'FORMAT_HEADER_ROW')),_0x4ee532['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4673d2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xfd9a70=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bdeee=this['editor']['plugins']['get']('TableUtils'),_0x27b7d7=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x18b80e({showActiveMarker:_0x4bd9e9=!0x0,setDataAttribute:_0x18ddd1=!0x0}={}){return(_0x1bc9ac,_0x258f05,_0x1dead4)=>{const {type:_0x45fcca,id:_0x20912b}=_0xfd9a70['_splitMarkerName'](_0x258f05['markerName']),_0x418c9e=_0xfd9a70['getSuggestion'](_0x20912b),_0x222b84=_0x418c9e['data'];if('formatBlock'!=_0x418c9e['type']||!_0x222b84||'setTableColumnHeader'!=_0x222b84['commandName'])return;if(_0x258f05['item'])return void _0x1bc9ac['stop']();if(!_0x1dead4['consumable']['consume'](_0x258f05['markerRange'],_0x1bc9ac['name']))return;const _0x27d912=_0x258f05['markerRange']['start']['nodeAfter'],_0x3020ed=_0x258f05['markerRange']['end']['nodeBefore'],_0x2ec58b=_0x27d912['parent']['parent'],{column:_0x20d753}=_0x1bdeee['getCellLocation'](_0x27d912),{column:_0xbd5487}=_0x1bdeee['getCellLocation'](_0x3020ed);for(let _0x1778b2=_0x20d753;_0x1778b2<=_0xbd5487;_0x1778b2++){const _0x474c6b=_0x1bdeee['createTableWalker'](_0x2ec58b,{'column':_0x1778b2,'includeAllSlots':!0x1});for(const _0x530398 of _0x474c6b){const _0x5d9a40=_0x530398['cell'],_0x7bd25d=_0x1dead4['mapper']['toViewElement'](_0x5d9a40);_0x1dead4['writer']['addClass']('ck-suggestion-marker-'+_0x45fcca,_0x7bd25d),_0x18ddd1&&_0x1dead4['writer']['setAttribute']('data-suggestion',_0x20912b,_0x7bd25d),_0x1dead4['mapper']['bindElementToMarker'](_0x7bd25d,_0x258f05['markerName']),_0x4bd9e9&&(_0xfd9a70['activeMarkers']['includes'](_0x258f05['markerName'])?_0x1dead4['writer']['addClass']('ck-suggestion-marker--active',_0x7bd25d):_0x1dead4['writer']['removeClass']('ck-suggestion-marker--active',_0x7bd25d));}}};}_0xfd9a70['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x27b7d7),_0xfd9a70['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x27b7d7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x18b80e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xeba11b,_0x1f0bf7,_0x24aa31)=>{_0x24aa31['options']['showSuggestionHighlights']&&_0x18b80e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xeba11b,_0x1f0bf7,_0x24aa31);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x486269,_0x48f6b7,_0x3f5be8)=>{const {type:_0x1326bc,id:_0x2ef76b}=_0xfd9a70['_splitMarkerName'](_0x48f6b7['markerName']),_0x5c962b=_0xfd9a70['getSuggestion'](_0x2ef76b),_0x1f6e3b=_0x5c962b['data'];if('formatBlock'!=_0x5c962b['type']||!_0x1f6e3b||'setTableColumnHeader'!=_0x1f6e3b['commandName'])return;const _0x142b9a=_0x3f5be8['mapper']['markerNameToElements'](_0x48f6b7['markerName']);if(_0x142b9a){for(const _0x11a484 of _0x142b9a)_0x3f5be8['writer']['removeClass']('ck-suggestion-marker-'+_0x1326bc,_0x11a484),_0x3f5be8['writer']['removeClass']('ck-suggestion-marker--active',_0x11a484),_0x3f5be8['writer']['removeAttribute']('data-suggestion',_0x11a484),_0x3f5be8['mapper']['unbindElementFromMarkerName'](_0x11a484,_0x48f6b7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x236cf3=this['editor'],_0x374985=_0x236cf3['locale'];function _0x2d66c1(_0x3e8c9b){return{'type':'format','content':o(_0x374985,'*Format:*\x20%0',_0x3e8c9b)};}_0x236cf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x270805=>{if('formatBlock'!=_0x270805['type'])return;const {data:_0x3e6cbe}=_0x270805;if(_0x3e6cbe){if('setTableRowHeader'==_0x3e6cbe['commandName']){const _0x25a13c=_0x3e6cbe['commandParams'][0x0]['forceValue'];return _0x2d66c1(o(_0x374985,_0x25a13c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3e6cbe['commandName']){const _0x32011a=_0x3e6cbe['commandParams'][0x0]['forceValue'];return _0x2d66c1(o(_0x374985,_0x32011a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x52780b=>[_0x52780b,null]));class _t extends _0x231f11{static get['requires'](){return[It];}['afterInit'](){const _0x4007df=this['editor'];if(!_0x4007df['plugins']['has']('TableClipboard'))return;const _0x53bcea=_0x4007df['plugins']['get']('TrackChangesEditing'),_0x5e6934=_0x4007df['plugins']['get']('TableUtils'),_0x22f863=_0x4007df['plugins']['get'](It),_0x1b0dcc=_0x4007df['plugins']['get']('TableClipboard');_0x22f863['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4007df['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4007df['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2dfaec=null;_0x4007df['model']['on']('insertContent',(_0xd84f21,_0x22acc6)=>{const [_0x74cc50,_0x44eacb]=_0x22acc6,_0x1a3601=_0x22acc6[_0x22acc6['length']-0x1];_0x1a3601&&_0x1a3601['forceDefaultExecution']||_0x53bcea['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x12887c,_0x4989fa,_0x2fc6ad,_0xa88a7e,_0xac81f6){if(_0x4989fa&&!_0x4989fa['is']('documentSelection'))return!0x1;const _0x13f673=_0xac81f6['getTableIfOnlyTableInContent'](_0x12887c,_0x2fc6ad);if(!_0x13f673||!ke(_0x13f673,void 0x0,_0xa88a7e))return!0x1;const _0x364433=_0xa88a7e['getSelectionAffectedTableCells'](_0x2fc6ad['document']['selection']);if(!_0x364433['length'])return!0x1;const _0x4648d3=_0x364433[0x0]['findAncestor']('table'),_0x3527a4=_0xa88a7e['getRowIndexes'](_0x364433),_0x2ee6c2=_0xa88a7e['getColumnIndexes'](_0x364433),_0x4a0b6e={'startRow':_0x3527a4['first'],'endRow':_0x3527a4['last'],'startColumn':_0x2ee6c2['first'],'endColumn':_0x2ee6c2['last']};return 0x1==_0x364433['length']&&(_0x4a0b6e['endRow']+=_0xa88a7e['getRows'](_0x13f673)-0x1,_0x4a0b6e['endColumn']+=_0xa88a7e['getColumns'](_0x13f673)-0x1),ke(_0x4648d3,_0x4a0b6e,_0xa88a7e);}(_0x74cc50,_0x44eacb,_0x4007df['model'],_0x5e6934,_0x1b0dcc)&&(_0xd84f21['stop'](),_0x2dfaec={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4007df['model']['change'](()=>{_0x4007df['model']['insertContent'](_0x22acc6[0x0],_0x22acc6[0x1],_0x22acc6[0x2],{'forceDefaultExecution':!0x0});const _0x4bc91c=_0x138912(),{rowInsertionRanges:_0x1a262e,columnInsertionRanges:_0x41ffa6,insertionRanges:_0x4c947d,deletionRanges:_0x42f3bf,cells:_0x981e0c}=_0x2dfaec;_0x1a262e['length']&&_0x53bcea['markMultiRangeInsertion'](_0x1a262e,'tablePasteRow',{'tablePasteChainId':_0x4bc91c}),_0x41ffa6['length']&&_0x53bcea['markMultiRangeInsertion'](_0x41ffa6,'tablePasteColumn',{'tablePasteChainId':_0x4bc91c}),_0x4c947d['length']&&(_0x53bcea['markMultiRangeInsertion'](_0x4c947d,'tablePaste',{'tablePasteChainId':_0x4bc91c,'skipNestingCheck':!0x0}),_0x4c947d['forEach'](_0x260721=>_0x260721['detach']?.())),_0x42f3bf['length']&&(_0x53bcea['markMultiRangeDeletion'](_0x42f3bf,'tablePaste',{'tablePasteChainId':_0x4bc91c,'skipNestingCheck':!0x0}),_0x42f3bf['forEach'](_0x34fc30=>_0x34fc30['detach']?.()));const _0x345083=_0x53bcea['markMultiRangeBlockFormat'](_0x981e0c['map'](({element:_0x3162c9})=>_0x3162c9),{'formatGroupId':_0x138912()},[],'tablePasteCell',{'tablePasteChainId':_0x4bc91c});if(_0x345083){const _0xef363f=_0x345083['getMarkers'](),_0x478c6d=[];for(const {element:_0x2fe060,attributes:_0x4f3385}of _0x981e0c){if(!_0x4f3385)continue;const _0x42664b=_0x4007df['model']['createRangeOn'](_0x2fe060),_0x18cc5f=_0xef363f['find'](_0x43f7a7=>_0x43f7a7['getRange']()['isEqual'](_0x42664b));_0x18cc5f&&_0x478c6d['push']([_0x18cc5f['name'],_0x4f3385]);}_0x478c6d['length']&&_0x345083['setAttribute']('markerAttributes',Object['fromEntries'](_0x478c6d));}_0x2dfaec=null;}));},{'priority':_0x29c3cb['high']+0xa}),_0x4007df['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5a582d,_0x42a199)=>{const [_0x278c8f,_0x480873,,_0x2c7644]=_0x42a199;if(!_0x2dfaec)return;_0x5a582d['stop']();const _0x4132d8=_0x278c8f['cell'],_0x31a1a6=_0x480873,_0x41e7be=we(_0x4132d8),_0x5479e=we(_0x31a1a6);_0x5a582d['return']=_0x4132d8;let _0x22703a=null,_0x10e033=null;if(_0x5479e||_0x41e7be){if(_0x41e7be&&!_0x5479e){_0x2c7644['remove'](_0x4132d8['getChild'](0x0));for(const _0x462b70 of Array['from'](_0x31a1a6['getChildren']()))_0x2c7644['insert'](_0x462b70,_0x4132d8,'end');const _0x20422e=_0x2dfaec['rowInsertionIndexes']['includes'](_0x278c8f['row']),_0x359a74=_0x2dfaec['columnInsertionIndexes']['includes'](_0x278c8f['column']);_0x20422e||_0x359a74||(_0x22703a=_0x135447['fromRange'](_0x2c7644['createRangeIn'](_0x4132d8)));}else _0x5479e&&!_0x41e7be&&(_0x10e033=_0x2c7644['createRangeIn'](_0x4132d8));}else{const _0x39ddc1=_0x2c7644['createElement']('tableCellSuggestion'),_0x4c2a10=_0x2c7644['createElement']('tableCellSuggestion');_0x2c7644['wrap'](_0x2c7644['createRangeIn'](_0x4132d8),_0x4c2a10),_0x2c7644['insert'](_0x39ddc1,_0x4132d8,0x0);for(const _0x1b767d of Array['from'](_0x31a1a6['getChildren']()))_0x2c7644['insert'](_0x1b767d,_0x39ddc1,'end');_0x22703a=_0x135447['fromRange'](_0x2c7644['createRangeOn'](_0x39ddc1)),_0x10e033=_0x135447['fromRange'](_0x2c7644['createRangeOn'](_0x4c2a10));}const _0x26bcc3=Array['from'](_0x31a1a6['getAttributes']())['filter'](([_0x412e39])=>Ce['includes'](_0x412e39));_0x2dfaec['cells']['push']({'element':_0x4132d8,'attributes':_0x26bcc3['length']?Object['fromEntries'](_0x26bcc3):null}),_0x22703a&&_0x2dfaec['insertionRanges']['push'](_0x22703a),_0x10e033&&_0x2dfaec['deletionRanges']['push'](_0x10e033);},{'priority':'high'}),_0x5e6934['on']('insertColumns',(_0x2bee2c,_0x104169)=>{const [_0x2a61fd,_0x1d44eb={}]=_0x104169;if(!_0x2dfaec)return;const _0x4e5e81=_0x1d44eb['at']||0x0,_0x41ed05=_0x1d44eb['columns']||0x1;_0x2dfaec['columnInsertionIndexes']=new Array(_0x41ed05)['fill'](_0x4e5e81)['map']((_0x499c2b,_0x5e38bf)=>_0x499c2b+_0x5e38bf);for(const {cell:_0x11b004}of _0x5e6934['createTableWalker'](_0x2a61fd,{'startColumn':_0x4e5e81,'endColumn':_0x4e5e81+_0x41ed05-0x1}))_0x2dfaec['columnInsertionRanges']['push'](_0x4007df['model']['createRangeOn'](_0x11b004));},{'priority':'low'}),_0x5e6934['on']('insertRows',(_0x5df80d,_0x3228d2)=>{const [_0x2e356e,_0x65d468={}]=_0x3228d2;if(!_0x2dfaec)return;const _0x4ddc89=_0x65d468['at']||0x0,_0x3cc39b=_0x65d468['rows']||0x1;_0x2dfaec['rowInsertionIndexes']=new Array(_0x3cc39b)['fill'](_0x4ddc89)['map']((_0x375411,_0x2d5a1c)=>_0x375411+_0x2d5a1c);for(const {cell:_0x3c2205}of _0x5e6934['createTableWalker'](_0x2e356e,{'startRow':_0x4ddc89,'endRow':_0x4ddc89+_0x3cc39b-0x1}))_0x2dfaec['rowInsertionRanges']['push'](_0x4007df['model']['createRangeOn'](_0x3c2205));},{'priority':'low'}),_0x53bcea['descriptionFactory']['registerDescriptionCallback'](_0x3b49f6=>{if(_0x3b49f6['subType']&&_0x3b49f6['subType']['startsWith']('tablePaste'))return _0x3b49f6['previous']?{}:{'type':'insertion','content':o(_0x4007df['locale'],'*Replace\x20table\x20cells*')};});const _0x162804=()=>!0x1;for(const _0x1ace64 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x53bcea['_suggestionFactory']['registerCustomCallback']('insertion',_0x1ace64,'join',_0x162804),_0x53bcea['_suggestionFactory']['registerCustomCallback']('deletion',_0x1ace64,'join',_0x162804),_0x53bcea['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ace64,'join',_0x162804);_0x53bcea['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x162804),_0x53bcea['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x352914,_0x492ecd,_0x55031e)=>{const _0x1b8fd3=_0x352914['map'](_0x4f3dc2=>_0x4f3dc2['getContainedElement']())['filter'](_0x1f4494=>_0x1f4494),_0x2624a0=new Map(_0x1b8fd3['map'](_0x4b4701=>[_0x4b4701,null]));if(_0x2dfaec){for(const {element:_0x201ab1,attributes:_0x46f5ce}of _0x2dfaec['cells'])_0x46f5ce&&_0x2624a0['set'](_0x201ab1,_0x46f5ce);}else{if(_0x55031e&&_0x55031e['markerAttributes'])for(const [_0x2d1a1c,_0x356bee]of Object['entries'](_0x55031e['markerAttributes'])){const _0x284a90=_0x4007df['model']['markers']['get'](_0x2d1a1c),_0x7f1511=_0x284a90?_0x284a90['getRange']()['getContainedElement']():null;_0x7f1511&&_0x2624a0['set'](_0x7f1511,_0x356bee);}}_0x4007df['model']['change'](_0x4ef126=>{for(const [_0x5e78c4,_0x3c4014]of _0x2624a0)_0x4ef126['setAttributes']({...Pe,..._0x3c4014},_0x5e78c4);});});const _0xf00042=(_0x296f9c,_0x59234f)=>{_0x53bcea['_suggestionFactory']['registerCustomCallback'](_0x296f9c,'tablePaste',_0x59234f,(_0x21bde1,_0x334670,_0xc10ef)=>{_0x4007df['model']['change'](_0x334b47=>{const _0x35294a=[];for(const _0x328d29 of _0x21bde1){const _0x22f337=_0x328d29['start']['nodeAfter'];_0x22f337['is']('element','tableCellSuggestion')&&_0x35294a['push'](_0x22f337);}_0x53bcea['_suggestionFactory']['getSuggestionCallback'](_0x296f9c,null,_0x59234f)(_0x21bde1,_0x334670,_0xc10ef);for(const _0x37fe72 of _0x35294a)'$graveyard'!=_0x37fe72['root']['rootName']&&_0x334b47['unwrap'](_0x37fe72);});});};_0xf00042('insertion','accept'),_0xf00042('insertion','discard'),_0xf00042('deletion','accept'),_0xf00042('deletion','discard'),_0x53bcea['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x471a7e=>{const _0xd567f1=_0x471a7e['map'](_0x2b009c=>_0x2b009c['getContainedElement']()),_0x272d91=_0xd567f1[0x0]['findAncestor']('table'),{minRow:_0x61532c,maxRow:_0x35cd65}=_0x22f863['_getCoordsForCells'](_0xd567f1);_0x5e6934['removeRows'](_0x272d91,{'at':_0x61532c,'rows':_0x35cd65-_0x61532c+0x1});}),_0x53bcea['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe20ee0=>{const _0xe99302=_0xe20ee0['map'](_0x17929c=>_0x17929c['getContainedElement']()),_0x4e4fac=_0xe99302[0x0]['findAncestor']('table'),{minColumn:_0x1de391,maxColumn:_0x23e143}=_0x22f863['_getCoordsForCells'](_0xe99302);_0x5e6934['removeColumns'](_0x4e4fac,{'at':_0x1de391,'columns':_0x23e143-_0x1de391+0x1});});const _0x326661=(_0x373331,_0x30cb99)=>{if(!_0x30cb99['subType']||!_0x30cb99['subType']['startsWith']('tablePaste'))return;const _0x11883c=_0x30cb99['attributes']['tablePasteChainId'],_0x2b765e=_0x53bcea['getSuggestions']()['filter'](_0x59f077=>_0x59f077['isInContent']&&_0x59f077['attributes']&&_0x59f077['attributes']['tablePasteChainId']==_0x11883c);_0x2b765e['length']&&_0x30cb99['getAllAdjacentSuggestions']()['length']!=_0x2b765e['length']&&_0x2b765e['reduce']((_0x5c3671,_0x78a632)=>(_0x5c3671['next']=_0x78a632,_0x78a632['previous']=_0x5c3671,_0x78a632));};function _0x36a014(_0x330167,_0x521842=!0x0){const {id:_0x44cf01}=_0x53bcea['_splitMarkerName'](_0x330167['markerName']),_0x4a81e0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1fe1bf=_0x53bcea['activeMarkers']['includes'](_0x330167['markerName']);return _0x1fe1bf&&_0x4a81e0['push']('ck-suggestion-marker--active'),{'classes':_0x4a81e0,'attributes':{'data-suggestion':_0x44cf01},'priority':_0x1fe1bf&&_0x521842?0xbc2:0xbb8};}_0x53bcea['on']('suggestionLoaded',_0x326661,{'priority':'high'}),_0x53bcea['on']('suggestionUnloaded',_0x326661,{'priority':'high'}),_0x4007df['model']['document']['registerPostFixer'](()=>{let _0x575530=!0x1;const _0x488e6f=Array['from'](_0x4007df['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a9514,data:_0x4b6d08}of _0x488e6f){const {group:_0x2c4fca,type:_0x1d0014,id:_0x2fedba}=_0x53bcea['_splitMarkerName'](_0x1a9514);if('suggestion'!=_0x2c4fca||'deletion'!=_0x1d0014||_0x4b6d08['oldRange'])continue;if(!_0x53bcea['hasSuggestion'](_0x2fedba))continue;const _0x5b604f=_0x53bcea['getSuggestion'](_0x2fedba)['getRanges'](),_0x212120=_0x4007df['plugins']['get']('Users')['me'];for(const _0x2d5b1f of _0x53bcea['getSuggestions']()){if(!_0x2d5b1f['isInContent']||_0x2d5b1f['author']!=_0x212120)continue;if('formatBlock'!=_0x2d5b1f['type']||'tablePasteCell'!=_0x2d5b1f['subType'])continue;if(_0x2d5b1f['getRanges']()['every'](_0x51ac89=>_0x5b604f['some'](_0x488d6c=>_0x488d6c['containsRange'](_0x51ac89,!0x0)))){for(const _0xfd7f31 of _0x2d5b1f['getAllAdjacentSuggestions']())_0xfd7f31['isInContent']&&(_0xfd7f31['discard'](),_0x575530=!0x0);}}}return _0x575530;}),_0x4007df['model']['document']['registerPostFixer'](_0xbecad7=>{const _0x303db3=_0x4007df['commands']['get']('redo');if(!_0x303db3||!_0x303db3['_createdBatches']['has'](_0xbecad7['batch']))return!0x1;let _0x357e30=!0x1;const _0x256300=_0x4007df['plugins']['get']('Users')['me'],_0x4e7ed1=_0x4007df['model']['document']['differ']['getChanges'](),_0x556219=Array['from'](_0x4007df['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x467b22,data:_0xfa259})=>{const {group:_0x56f4c8,subType:_0x2e7297,authorId:_0x1e6631}=_0x53bcea['_splitMarkerName'](_0x467b22);return'suggestion'==_0x56f4c8&&'tablePaste'==_0x2e7297&&_0x1e6631==_0x256300['id']&&!_0xfa259['oldRange'];});for(const _0x5b328f of _0x4e7ed1){if('insert'!=_0x5b328f['type']||'tableCellSuggestion'!=_0x5b328f['name']||0x1!=_0x5b328f['length'])continue;const _0x47e150=_0xbecad7['createRange'](_0x5b328f['position'],_0x5b328f['position']['getShiftedBy'](0x1));if(!_0x556219['find'](({data:_0x5d8f35})=>_0x5d8f35['newRange']['isEqual'](_0x47e150))){for(const {name:_0xa6091e,data:_0x1a8638}of _0x556219)if(_0x47e150['containsRange'](_0x1a8638['newRange'])){_0xbecad7['updateMarker'](_0xa6091e,{'range':_0x47e150}),_0x357e30=!0x0;break;}}}return _0x357e30;}),_0x4007df['model']['document']['registerPostFixer'](_0x13466d=>{let _0x510261=!0x1;const _0x5dbd1e=_0x4007df['plugins']['get']('Users')['me'],_0x3a011a=_0x53bcea['getSuggestions']()['filter'](_0x23ac70=>_0x23ac70['isInContent']&&_0x23ac70['author']==_0x5dbd1e),_0x555d30=new Set(),_0x141632=new Set();for(const _0x167583 of _0x3a011a)if('tablePaste'==_0x167583['subType'])for(const _0x56a082 of _0x167583['getMarkers']()){const _0x1cc5bd=_0x56a082['getRange']()['getContainedElement']();if(_0x1cc5bd){if(_0x1cc5bd['is']('element','tableCellSuggestion')&&we(_0x1cc5bd)){_0x167583['removeMarker'](_0x56a082['name']),_0x555d30['add'](_0x1cc5bd),_0x510261=!0x0;const _0x5b2794=_0x1cc5bd['nextSibling'],_0x4156e2=_0x1cc5bd['previousSibling'],_0x23c07b=_0x5b2794&&_0x5b2794['is']('element','tableCellSuggestion'),_0x4ca53e=_0x4156e2&&_0x4156e2['is']('element','tableCellSuggestion');_0x23c07b&&!_0x555d30['has'](_0x5b2794)&&_0x141632['add'](_0x5b2794),_0x4ca53e&&!_0x555d30['has'](_0x4156e2)&&_0x141632['add'](_0x4156e2);}else _0x1cc5bd['is']('element','paragraph')&&_0x1cc5bd['isEmpty']&&(_0x167583['removeMarker'](_0x56a082['name']),_0x510261=!0x0);}}else{if('tablePasteCell'==_0x167583['subType']){if(!_0x167583['attributes']||!_0x167583['attributes']['tablePasteChainId'])continue;const _0xc17548=_0x167583['attributes']['markerAttributes'];if(_0xc17548&&Object['keys'](_0xc17548)['length'])continue;const _0xaabef3=_0x167583['attributes']['tablePasteChainId'];let _0x4de996=!0x0,_0x3a9328=!0x0;for(const _0x305871 of _0x3a011a)if(_0x305871['subType']&&_0x305871['subType']['startsWith']('tablePaste')){if(!_0x305871['attributes']['tablePasteChainId']){_0x3a9328=!0x1;break;}if(_0x305871['id']!=_0x167583['id']&&_0x305871['attributes']['tablePasteChainId']==_0xaabef3){_0x4de996=!0x1;break;}}_0x3a9328&&_0x4de996&&(_0x167583['removeMarkers'](),_0x510261=!0x0);}}for(const _0x27907d of _0x555d30)_0x13466d['remove'](_0x27907d);for(const _0x2f4fc4 of _0x141632)_0x13466d['unwrap'](_0x2f4fc4);return _0x510261;}),_0x4007df['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x147653,_0x307cfb)=>_0x36a014(_0x147653),'converterPriority':'high'}),_0x4007df['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36cc87,_0x54cfc3)=>_0x54cfc3['options']['showSuggestionHighlights']?_0x36a014(_0x36cc87,!0x1):null,'converterPriority':'high'});const _0x1138c9=_0x4007df['editing']['view'];this['listenTo'](_0x1138c9['document'],'clipboardOutput',(_0x14e6c4,_0x3f46ac)=>{const _0x360dab=[];for(const _0x4cf52a of _0x1138c9['createRangeIn'](_0x3f46ac['content'])['getItems']())_0x4cf52a['is']('element','suggestion-td')&&_0x360dab['push'](_0x4cf52a);_0x1138c9['change'](_0x225d61=>{for(const _0x1a7978 of _0x360dab)_0x225d61['move'](_0x225d61['createRangeIn'](_0x1a7978),_0x225d61['createPositionBefore'](_0x1a7978)),_0x225d61['remove'](_0x1a7978);});});}}function we(_0x98e85c){if(_0x98e85c['isEmpty'])return!0x0;const _0x587311=_0x98e85c['getChild'](0x0);return _0x587311['is']('element','paragraph')&&_0x587311['isEmpty'];}function ke(_0x4ad980,_0x5ad9da={},_0x325bcc){for(const {isAnchor:_0x1ea02f,cellHeight:_0x8a9e45,cellWidth:_0x4f027d}of _0x325bcc['createTableWalker'](_0x4ad980,{'includeAllSlots':!0x0,..._0x5ad9da}))if(!_0x1ea02f||0x1!=_0x8a9e45||0x1!=_0x4f027d)return!0x1;return!0x0;}class Nt extends _0x231f11{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37a6d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x37a6d3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37a6d3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37a6d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37a6d3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37a6d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37a6d3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x122d06,_0x4fc342){const _0x567630=this['editor']['plugins']['get']('TrackChangesEditing'),_0x478705=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5f15e3=_0x4fc342['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7b617f=_0x478705['getColumnGroupElement'](_0x5f15e3);let _0x3da1c5=_0x7b617f?_0x478705['getTableColumnsWidths'](_0x7b617f):null,_0x510bbd=_0x5f15e3['getAttribute']('tableWidth')||null;const _0x2a2b79=_0x4fc342['tableWidth']||_0x510bbd,_0x1a3242=_0x4fc342['columnWidths']||_0x3da1c5,_0x20686d=this['editor']['plugins']['get']('Users')['me'];for(const _0x2da4f2 of _0x567630['getSuggestions']()){const _0xbb6b23=_0x2da4f2['getContainedElement']();if('resizeTable'===_0x2da4f2['subType']&&_0xbb6b23===_0x5f15e3){_0x2da4f2['author']!==_0x20686d&&_0x2da4f2['discard']();const _0x1f3198=_0x2da4f2['data']['commandParams'];_0x510bbd=_0x1f3198[0x0]['tableWidth'],_0x3da1c5=_0x1f3198[0x0]['columnWidths'];break;}}_0x122d06({'table':_0x5f15e3,'tableWidth':_0x2a2b79,'columnWidths':_0x1a3242}),_0x567630['markBlockFormat'](_0x5f15e3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x510bbd,'columnWidths':_0x3da1c5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3a61e1){if('formatBlock'!=_0x3a61e1['type']&&'formatInline'!=_0x3a61e1['type'])return;const {data:_0x5d7986}=_0x3a61e1;if(_0x5d7986&&'resizeTable'===_0x5d7986['formatGroupId']){const _0x337032='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x337032)};}}}class Dt extends _0x231f11{['afterInit'](){const _0x1a9472=this['editor'];_0x1a9472['plugins']['has']('Template')&&_0x1a9472['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x231f11{['afterInit'](){const _0x5c2b7a=this['editor'];if(!_0x5c2b7a['commands']['get']('insertTableOfContents'))return;_0x5c2b7a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x27eb22=_0x5c2b7a['plugins']['get']('TrackChangesEditing'),_0x27f0bb=_0x5c2b7a['locale'];_0x27eb22['descriptionFactory']['registerElementLabel']('tableOfContents',_0x58deed=>o(_0x27f0bb,'ELEMENT_TABLE_OF_CONTENTS',_0x58deed));}}class $t extends _0x231f11{['afterInit'](){const _0x59c0ae=this['editor'];if(!_0x59c0ae['plugins']['has']('Title'))return;const _0x12f8e3=_0x59c0ae['plugins']['get']('TrackChangesEditing');_0x12f8e3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x59c0ae['locale'],'ELEMENT_TITLE')),_0x59c0ae['model']['document']['registerPostFixer'](_0x1b9f5f=>{let _0x384ebc=!0x1;const _0x57e853=Array['from'](_0x59c0ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24a0e7,data:_0x1bb207}of _0x57e853){const {group:_0xa486d6}=_0x12f8e3['_splitMarkerName'](_0x24a0e7);if('suggestion'!==_0xa486d6||!_0x1bb207['newRange'])continue;const _0x32e8af=_0x1bb207['newRange'],_0x25dd16=_0x32e8af['end']['nodeBefore'];if(!_0x25dd16||!_0x25dd16['is']('element','title-content'))continue;if(!_0x32e8af['start']['isTouching'](_0x32e8af['end']))continue;const _0x200577=_0x59c0ae['model']['schema']['getNearestSelectionRange'](_0x32e8af['end'],'forward');if(_0x200577&&_0x200577['isCollapsed']){const _0x965649=_0x1b9f5f['createRange'](_0x32e8af['start'],_0x200577['start']);_0x965649['isEqual'](_0x32e8af)||(_0x1b9f5f['updateMarker'](_0x24a0e7,{'range':_0x965649}),_0x384ebc=!0x0);}_0x384ebc||(_0x1b9f5f['removeMarker'](_0x24a0e7),_0x384ebc=!0x0);}return _0x384ebc;});}}class Bt extends _0x231f11{['afterInit'](){const _0x46505d=this['editor'],_0x39c05b=_0x46505d['plugins']['get']('TrackChangesEditing');_0x46505d['plugins']['has']('UndoEditing')&&(_0x39c05b['enableCommand']('undo'),_0x39c05b['enableCommand']('redo'));}}class xt extends _0x231f11{static get['requires'](){return[It];}['afterInit'](){const _0x3786d4=this['editor'];if(!_0x3786d4['plugins']['has']('TableCaptionEditing'))return;_0x3786d4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x231f11{['tableProperties'];['tableCellProperties'];constructor(_0xc08ee8){super(_0xc08ee8),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 _0x517e45=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3a34dc of this['tableProperties'])_0x517e45['enableCommand'](_0x3a34dc,(_0x50f26f,_0xb78555)=>{const _0x10d660=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3a34dc,[_0x10d660],this['tableProperties'],'tableProperties',_0x50f26f,_0xb78555);});_0x517e45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x517e45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x517e45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x508f80,_0x31cc38)=>this['handleDiscardAction'](this['tableProperties'],_0x508f80,_0x31cc38)),_0x517e45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x52026c of this['tableCellProperties'])_0x517e45['enableCommand'](_0x52026c,(_0x10026e,_0x378575)=>{const _0x1aa0af=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x52026c,_0x1aa0af,this['tableCellProperties'],'tableCellProperties',_0x10026e,_0x378575);});_0x517e45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x517e45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x517e45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x11b3b9,_0x1be251)=>this['handleDiscardAction'](this['tableCellProperties'],_0x11b3b9,_0x1be251)),_0x517e45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x517e45['descriptionFactory']['registerDescriptionCallback'](_0x47e2a2=>this['handleSuggestionDescription'](_0x47e2a2));}['_handlePropertyChange'](_0x470a93,_0x1c797f,_0x21b2a3,_0x528ec5,_0xe83974,_0x1a956a){const _0x531cdb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1a956a['batch'],()=>{for(const _0x34f999 of _0x1c797f){if(this['_getSuggestion'](_0x34f999,_0x528ec5))_0xe83974(_0x1a956a);else{const _0x9f3ee5={};for(const _0x41ce45 of _0x21b2a3){const _0x55e69c=_0x34f999['getAttribute'](_0x41ce45);void 0x0!==_0x55e69c&&(_0x9f3ee5[_0x41ce45]=_0x55e69c);}_0xe83974(_0x1a956a),_0x531cdb['markBlockFormat'](_0x34f999,{'commandParams':[_0x9f3ee5]},[],_0x528ec5);}}});}['handleDiscardAction'](_0x43377f,_0x36281a,_0x377b15){const _0x38e6f3=_0x36281a[0x0]['start']['nodeAfter'],_0x4a4883=_0x377b15['commandParams'][0x0];this['editor']['model']['change'](_0x5dacee=>{for(const _0x4fdbcb of _0x43377f)void 0x0!==_0x4a4883[_0x4fdbcb]?_0x5dacee['setAttribute'](_0x4fdbcb,_0x4a4883[_0x4fdbcb],_0x38e6f3):_0x5dacee['removeAttribute'](_0x4fdbcb,_0x38e6f3);});}['handleSuggestionDescription'](_0x19a603){if(_0x19a603['data'])switch(_0x19a603['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'](_0x340c77,_0x39e3e8){const _0x388b3a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x303028 of _0x388b3a['getSuggestions']({'skipNotAttached':!0x0})){const _0x44dbf9=_0x303028['getContainedElement']();if(_0x303028['subType']===_0x39e3e8&&_0x44dbf9===_0x340c77)return _0x303028;}return null;}}const m='$elementName';class p extends _0x231f11{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x588554,_0x501b59,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(_0x4c4775){function _0x150016(_0x297cbd){return _0x297cbd['map'](_0x40b025=>String['fromCharCode'](_0x40b025))['join']('');}super(_0x4c4775),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x12cf26,_0x55eebe,_0x45c0b0,_0x327f4b)=>{this['_model']['change'](()=>{for(const _0x240d4c of[..._0x327f4b,..._0x45c0b0])this['_model']['markers']['has'](_0x240d4c)&&_0x4c4775['editing']['reconvertMarker'](_0x240d4c);});}),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']=_0x4c4775['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(),_0x4c4775['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4c4775['config']['get']('trackChanges.trackFormatChanges'),_0x4c4775['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4c4775['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4c4775,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x150016([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x150016([0x34,0x30,0x34,0x38,0x31,0x36,0x31,0x30]);}['init'](){const _0x1671c4=this['editor'],_0x5650fb=(_0x21f1e0,_0x3446b1)=>{if('attribute'!=_0x21f1e0)return'ck-suggestion-marker-'+_0x21f1e0;const _0x858a03=_0x3446b1['split']('|')[0x0];return this['_isBlockAttribute'](_0x858a03)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1671c4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x59901c=>{const {id:_0x2758f8,type:_0x783d6d,subType:_0x4d7263}=this['_splitMarkerName'](_0x59901c['markerName']),_0x39c99c=['ck-suggestion-marker',_0x5650fb(_0x783d6d,_0x4d7263)];let _0x29a350=0xbb8;return this['activeMarkers']['includes'](_0x59901c['markerName'])&&(_0x39c99c['push']('ck-suggestion-marker--active'),_0x29a350=0xbc2),'deletion'==_0x783d6d&&(_0x29a350+=0x5),{'classes':_0x39c99c,'attributes':{'data-suggestion':_0x2758f8},'priority':_0x29a350};}}),_0x1671c4['conversion']['for']('dataDowncast')['add'](_0x5b2162=>{_0x5b2162['on']('addMarker:suggestion',(_0x13fd56,_0x40f509,_0x4e5029)=>{if(!_0x4e5029['options']['showSuggestionHighlights'])return;const _0xe1dca9=_0x40f509['item'];if(!_0xe1dca9)return;const _0x480853=_0x4e5029['mapper']['toViewElement'](_0xe1dca9);_0x1671c4['model']['schema']['isObject'](_0xe1dca9)&&_0x480853&&!_0x480853['getCustomProperty']('widget')&&_0x480853['is']('containerElement')&&_0x21b8ef(_0x480853,_0x4e5029['writer']);},{'priority':'high'});}),_0x1671c4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x801dcb,_0x26f6a5)=>{if(!_0x26f6a5['options']['showSuggestionHighlights'])return null;const {type:_0x111078,subType:_0xc87e87}=this['_splitMarkerName'](_0x801dcb['markerName']);return{'classes':['ck-suggestion-marker',_0x5650fb(_0x111078,_0xc87e87)],'priority':0xbb8};}});const _0xb2a0f7=({showActiveMarkers:_0x3a4ec9=!0x0,isAttributeSuggestion:_0x374a68=!0x1}={})=>(_0x5a8871,_0x5f0799,_0x4412d7)=>{if(!_0x5f0799['item'])return;const {id:_0x3a5543}=this['_splitMarkerName'](_0x5f0799['markerName']);if(_0x374a68){const _0x358c9d=this['_suggestions']['get'](_0x3a5543),_0x204dd3=this['_getAttributeKey'](_0x358c9d);if(!this['_isBlockAttribute'](_0x204dd3))return;}if(_0x5f0799['item']['is']('selection'))return void _0x4412d7['consumable']['consume'](_0x5f0799['item'],_0x5a8871['name']);const _0x58a2ff=_0x4412d7['mapper']['toViewElement'](_0x5f0799['item']);if(_0x5f0799['item']['is']('element')&&_0x1671c4['model']['schema']['isBlock'](_0x5f0799['item'])&&!_0x58a2ff['getCustomProperty']('addHighlight')){_0x4412d7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x58a2ff),_0x4412d7['writer']['setAttribute']('data-suggestion',_0x3a5543,_0x58a2ff),_0x4412d7['mapper']['bindElementToMarker'](_0x58a2ff,_0x5f0799['markerName']),_0x3a4ec9&&(this['activeMarkers']['includes'](_0x5f0799['markerName'])?_0x4412d7['writer']['addClass']('ck-suggestion-marker--active',_0x58a2ff):_0x4412d7['writer']['removeClass']('ck-suggestion-marker--active',_0x58a2ff));for(const _0x72f8b3 of _0x1671c4['model']['createRangeIn'](_0x5f0799['item'])['getItems']())_0x4412d7['consumable']['consume'](_0x72f8b3,_0x5a8871['name']);_0x4412d7['consumable']['consume'](_0x5f0799['item'],_0x5a8871['name']);}};_0x1671c4['conversion']['for']('dataDowncast')['add'](_0x7c7296=>{_0x7c7296['on']('addMarker:suggestion:formatBlock',(_0x163497,_0x3fb70d,_0x445c22)=>{_0x445c22['options']['showSuggestionHighlights']&&_0xb2a0f7({'showActiveMarkers':!0x1})(_0x163497,_0x3fb70d,_0x445c22);},{'priority':'highest'});}),_0x1671c4['conversion']['for']('dataDowncast')['add'](_0x119390=>{_0x119390['on']('addMarker:suggestion:attribute',(_0x123144,_0xbd22ff,_0x1cc855)=>{_0x1cc855['options']['showSuggestionHighlights']&&_0xb2a0f7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x123144,_0xbd22ff,_0x1cc855);},{'priority':'highest'});}),_0x1671c4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x417037,_0x1dc3e6)=>_0x1dc3e6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x417037['substr'](0xb)}}),_0x1671c4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2be123,{writer:_0x220e51})=>{let _0x7d8a70='suggestion:'+_0x2be123['getAttribute']('suggestion-type')+':'+_0x2be123['getAttribute']('id');return _0x2be123['getAttribute']('marker-count')&&(_0x7d8a70+=':'+_0x2be123['getAttribute']('marker-count')),_0x220e51['createElement']('$marker',{'data-name':_0x7d8a70});}}),_0x1671c4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1671c4['conversion']['for']('editingDowncast')['add'](_0x192a19=>{_0x192a19['on']('addMarker:suggestion:formatBlock',_0xb2a0f7(),{'priority':'high'});}),_0x1671c4['conversion']['for']('editingDowncast')['add'](_0x1d8bef=>{_0x1d8bef['on']('addMarker:suggestion:attribute',_0xb2a0f7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1671c4['conversion']['for']('editingDowncast')['add'](_0x39c1c4=>{_0x39c1c4['on']('removeMarker:suggestion:formatBlock',(_0x4d1256,_0x5bbf58,_0x277867)=>{const _0x1b5e31=_0x277867['mapper']['markerNameToElements'](_0x5bbf58['markerName']);if(_0x1b5e31){for(const _0x4fa983 of _0x1b5e31)_0x4fa983['getCustomProperty']('addHighlight')||(_0x277867['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4fa983),_0x277867['writer']['removeAttribute']('data-suggestion',_0x4fa983),_0x277867['mapper']['unbindElementFromMarkerName'](_0x4fa983,_0x5bbf58['markerName']));}},{'priority':'high'});}),_0x1671c4['conversion']['for']('editingDowncast')['add'](_0x2a0ed2=>{_0x2a0ed2['on']('removeMarker:suggestion:attribute',(_0x5b8c50,_0x270dcc,_0x1b948a)=>{const _0x5331f7=_0x1b948a['mapper']['markerNameToElements'](_0x270dcc['markerName']);if(!_0x5331f7)return;const {id:_0x4291e5}=this['_splitMarkerName'](_0x270dcc['markerName']),_0x19df6b=this['_suggestions']['get'](_0x4291e5),_0x9a0f9a=this['_getAttributeKey'](_0x19df6b);if(this['_isBlockAttribute'](_0x9a0f9a)){for(const _0x32d3f7 of _0x5331f7)_0x32d3f7['getCustomProperty']('addHighlight')||(_0x1b948a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x32d3f7),_0x1b948a['writer']['removeAttribute']('data-suggestion',_0x32d3f7),_0x1b948a['mapper']['unbindElementFromMarkerName'](_0x32d3f7,_0x270dcc['markerName']));}},{'priority':'high'});}),_0x1671c4['model']['document']['registerPostFixer'](_0x5ae775=>{let _0x1d43b2=!0x1;const _0x4a3107=Array['from'](_0x1671c4['model']['document']['differ']['getChangedMarkers']()),_0x4fd766=new Set();for(const {name:_0x3469d4,data:_0x374b03}of _0x4a3107){const {group:_0x56a331,type:_0x49175d,subType:_0x11df6c,id:_0x38d20d}=this['_splitMarkerName'](_0x3469d4);if('suggestion'!==_0x56a331)continue;const _0x491415=this['_suggestions']['get'](_0x38d20d);if(null!=_0x374b03['newRange']){'formatInline'==_0x49175d&&(_0x1d43b2=_0x1d43b2||Ut(_0x374b03['newRange'],_0x3469d4,_0x5ae775,_0x1671c4['model']['schema']));const _0x4cce1a='attribute'==_0x49175d&&this['_isBlockAttribute'](_0x11df6c['split']('|')[0x0]);if(_0x374b03['newRange']['isCollapsed']||'$graveyard'==_0x374b03['newRange']['root']['rootName']||'formatBlock'==_0x49175d&&!Ft(_0x374b03['newRange'])||_0x4cce1a&&!Ft(_0x374b03['newRange'])||'deletion'==_0x49175d&&!(!Vt(_0x1751c9=_0x374b03['newRange'])&&!function(_0x54304d){return _0x54304d['start']['parent']==_0x54304d['end']['nodeBefore']&&_0x54304d['start']['isAtEnd'];}(_0x1751c9)))_0x5ae775['removeMarker'](_0x3469d4),_0x1d43b2=!0x0;else{if(!_0x491415||!_0x491415['isInContent'])continue;if(_0x374b03['newRange']&&_0x374b03['oldRange']&&_0x374b03['newRange']['isEqual'](_0x374b03['oldRange']))continue;_0x4fd766['add'](_0x491415);}}}var _0x1751c9;return _0x4fd766['size']>0x0&&(_0x1d43b2=!!this['_joinWithAdjacentSuggestions'](_0x4fd766)||_0x1d43b2),_0x1d43b2;}),_0x1671c4['model']['document']['registerPostFixer'](_0x42a7ae=>{let _0x1c6b39=!0x1;for(const _0x3c35e7 of _0x1671c4['model']['document']['differ']['getChanges']())if('insert'==_0x3c35e7['type'])for(const _0xca123a of this['_suggestions']['values']()){if(_0xca123a['isMultiRange']||!_0xca123a['isInContent'])continue;const _0x55523b='formatBlock'==_0xca123a['type'],_0xfc9bc3=this['_getAttributeKey'](_0xca123a),_0x343bee=_0xfc9bc3&&this['_isBlockAttribute'](_0xfc9bc3);if(!_0x55523b&&!_0x343bee)continue;const _0xeba7a8=_0xca123a['getFirstRange']();if(_0xeba7a8['start']['parent']!=_0xeba7a8['end']['parent']&&!_0xeba7a8['end']['isAtEnd']){const _0x373f2e=_0x1671c4['model']['createPositionAt'](_0xeba7a8['start']['nodeAfter'],'end'),_0x476318=_0x1671c4['model']['createRange'](_0xeba7a8['start'],_0x373f2e);_0x42a7ae['updateMarker'](_0xca123a['getFirstMarker'](),{'range':_0x476318}),_0x1c6b39=!0x0;}}return _0x1c6b39;}),_0x1671c4['model']['document']['registerPostFixer'](_0x3d4791=>this['_processAttributeChanges'](_0x3d4791)),_0x1671c4['model']['document']['registerPostFixer'](_0x14589c=>!_0x14589c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x14589c)),_0x1671c4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1671c4['model']['document']['on']('change:data',(_0x45a97e,_0x38a06f)=>{if(!_0x38a06f['isLocal']||_0x38a06f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x39e9c1=_0x1671c4['model']['document']['differ']['getChanges']();if(0x0==_0x39e9c1['length'])return;const _0x4b7b27=[],_0x129ed8=_0x39e9c1['filter'](_0x186264=>'attribute'==_0x186264['type']),_0x202985=_0x39e9c1['filter'](_0xe64c7f=>'insert'==_0xe64c7f['type']&&'$text'!=_0xe64c7f['name']);for(const _0x5e2431 of _0x129ed8)this['_isRegisteredAttribute'](_0x5e2431['attributeKey'])&&_0x4b7b27['push']({'key':_0x5e2431['attributeKey'],'newValue':_0x5e2431['attributeNewValue'],'oldValue':_0x5e2431['attributeOldValue'],'range':Pt(_0x5e2431['range'],_0x1671c4['model'])});for(const _0x4a8fc0 of _0x202985){if('rename'!=_0x4a8fc0['action']&&'refresh'!=_0x4a8fc0['action'])continue;const _0x422c11=Lt(_0x4a8fc0['position']['nodeAfter'],_0x1671c4['model']),_0x4f42cc=_0x4a8fc0['before'];'rename'==_0x4a8fc0['action']&&_0x4b7b27['push']({'key':m,'newValue':_0x4a8fc0['name'],'oldValue':_0x4f42cc['name'],'range':_0x422c11});for(const [_0xbc6d3,_0x526770]of _0x4f42cc['attributes']){if(!this['_isRegisteredAttribute'](_0xbc6d3))continue;const _0x1af000=_0x4a8fc0['attributes']['get'](_0xbc6d3);_0x526770!==_0x1af000&&_0x4b7b27['push']({'key':_0xbc6d3,'newValue':_0x1af000,'oldValue':_0x526770,'range':_0x422c11});}for(const [_0x599c34,_0x4364a2]of _0x4a8fc0['attributes'])this['_isRegisteredAttribute'](_0x599c34)&&(_0x4f42cc['attributes']['has'](_0x599c34)||_0x4b7b27['push']({'key':_0x599c34,'newValue':_0x4364a2,'oldValue':null,'range':_0x422c11}));}0x0!=_0x4b7b27['length']&&_0x1671c4['model']['enqueueChange'](_0x38a06f,_0x1edc4e=>{const _0x2320d7=_0x138912();for(const {range:_0x21a9f6,key:_0x34b9c5,oldValue:_0x1359f3,newValue:_0x435118}of _0x4b7b27)this['markAttributeChange'](_0x21a9f6,_0x34b9c5,_0x1359f3,_0x435118,{'groupId':_0x2320d7});this['_reduceExistingSuggestions'](_0x1edc4e,_0x4b7b27);});},{'priority':'lowest'}),_0x1671c4['model']['markers']['on']('update:suggestion',(_0x4f2443,_0x3ade0a,_0x5809ee)=>{if(null==_0x5809ee){const {id:_0x102990}=this['_splitMarkerName'](_0x3ade0a['name']),_0x5465d9=this['_suggestions']['get'](_0x102990);_0x5465d9&&_0x5465d9['addMarkerName'](_0x3ade0a['name']);}}),_0x1671c4['model']['document']['on']('change:data',()=>{const _0xd06f04=Array['from'](_0x1671c4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ba9ca=>'suggestion'===this['_splitMarkerName'](_0x2ba9ca['name'])['group']);if(0x0===_0xd06f04['length'])return;_0xd06f04['sort']((_0x2f1ad1,_0x4c874e)=>{const _0x1c5b35=_0x2f1ad1['data']['oldRange'],_0x301ea9=_0x4c874e['data']['oldRange'];return null===_0x1c5b35&&null===_0x301ea9?0x0:null===_0x1c5b35&&null!==_0x301ea9?-0x1:null!==_0x1c5b35&&null===_0x301ea9?0x1:_0x1c5b35['start']['isBefore'](_0x301ea9['start'])?-0x1:0x1;});const _0x24558f=new Set(),_0x47fd3a=new Set();for(const {name:_0x678906,data:_0x11cb21}of _0xd06f04){const {id:_0x474ebc}=this['_splitMarkerName'](_0x678906);if(null===_0x11cb21['oldRange']){const _0x521ca1=this['_handleNewSuggestionMarker'](_0x678906);_0x47fd3a['add'](_0x521ca1);}else{const _0xc21fc=this['_suggestions']['get'](_0x474ebc);null!==_0x11cb21['newRange']||_0xc21fc['isInContent']?(_0x24558f['add'](_0xc21fc['head']),_0x47fd3a['add'](_0xc21fc)):this['_removeSuggestion'](_0xc21fc);}}_0x47fd3a['size']>0x0&&this['_refreshSuggestionsChain'](_0x47fd3a);for(const _0x3b8a02 of _0x24558f)this['fire']('suggestionChanged',_0x3b8a02);}),_0x1671c4['model']['on']('applyOperation',(_0xca5e12,_0x52e4a8)=>{const _0x4fd263=_0x52e4a8[0x0];if(!this['_suggestions']['size'])return;if(!_0x4fd263['isDocumentOperation'])return;if(_0x4fd263['batch']['isUndo']||!_0x4fd263['batch']['isLocal'])return;let _0x1cb74b,_0x17eff0;switch(_0x4fd263['type']){case'insert':_0x1cb74b=_0x1671c4['model']['createPositionAt'](_0x4fd263['position']),_0x17eff0=_0x1cb74b['getShiftedBy'](_0x4fd263['howMany']);break;case'split':_0x1cb74b=_0x1671c4['model']['createPositionAt'](_0x4fd263['splitPosition']),_0x17eff0=_0x1671c4['model']['createPositionAt'](_0x4fd263['moveTargetPosition']);break;case'move':_0x1cb74b=_0x1671c4['model']['createPositionAt'](_0x4fd263['targetPosition']),_0x17eff0=_0x1cb74b['getShiftedBy'](_0x4fd263['howMany']);break;default:return;}const _0x32b3bf=_0x1671c4['model']['createRange'](_0x1cb74b,_0x17eff0);_0x1671c4['model']['change'](()=>{for(const {suggestion:_0x1919f0,meta:_0x557600}of this['_findSuggestions'](_0x32b3bf)){if(_0x1919f0['isMultiRange'])continue;if('formatInline'==_0x1919f0['type'])continue;const _0x15c229=this['_getAttributeKey'](_0x1919f0);if(_0x15c229&&this['_isBlockAttribute'](_0x15c229)&&'split'!=_0x4fd263['type'])continue;const _0x424434=_0x1919f0['data']&&_0x1919f0['data']['multipleBlocks'];('formatBlock'!=_0x1919f0['type']||'split'==_0x4fd263['type']&&!_0x424434)&&(_0x557600['containsRangeInObject']||'insertion'==_0x1919f0['type']&&_0x557600['isOwn']||_0x1919f0['getFirstRange']()['containsRange'](_0x32b3bf)&&this['_breakSuggestionMarker'](_0x1919f0,_0x1cb74b,_0x17eff0));}});},{'priority':'lowest'}),_0x1671c4['model']['on']('deleteContent',(_0x284803,_0x420c86)=>{const _0x3c9d6b=_0x420c86[0x0],_0x251484=_0x420c86[0x1];if(_0x251484&&_0x251484['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3c9d6b['isCollapsed'])return;const _0x271143=_0x1671c4['model']['schema'],{start:_0x3df987,end:_0x3cf79e}=_0x3c9d6b['getFirstRange'](),_0x14c750=_0x3df987['nodeAfter']&&_0x271143['isLimit'](_0x3df987['nodeAfter'])?null:_0x271143['getNearestSelectionRange'](_0x3df987,'forward'),_0x1704a2=_0x3cf79e['nodeBefore']&&_0x271143['isLimit'](_0x3cf79e['nodeBefore'])?null:_0x271143['getNearestSelectionRange'](_0x3cf79e,'backward'),_0x5b0da8=_0x1671c4['model']['createRange'](_0x14c750?_0x14c750['start']:_0x3df987,_0x1704a2?_0x1704a2['end']:_0x3cf79e);_0x1671c4['model']['change'](_0x5e0322=>{this['markDeletion'](_0x5b0da8);const _0x12014b=_0x1671c4['model']['schema']['getNearestSelectionRange'](_0x5b0da8['start']);_0x3c9d6b['is']('documentSelection')?_0x5e0322['setSelection'](_0x12014b):_0x3c9d6b['setTo'](_0x12014b);}),_0x284803['stop']();},{'priority':_0x29c3cb['normal']+0xa}),_0x1671c4['model']['on']('insertContent',(_0xb0f266,_0x44d7a1)=>{const _0x245b52=_0x44d7a1[_0x44d7a1['length']-0x1];_0x245b52&&_0x245b52['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1671c4['model']['change'](()=>{let _0xeeb0a8=_0x1671c4['model']['insertContent'](_0x44d7a1[0x0],_0x44d7a1[0x1],_0x44d7a1[0x2],{'forceDefaultExecution':!0x0});if(!_0xeeb0a8)return;_0xb0f266['return']=_0xeeb0a8['clone']();const _0x13d477=_0xeeb0a8['end']['nodeBefore'],_0x1abf1a=_0x1671c4['model']['schema'];_0x13d477&&_0x1abf1a['isBlock'](_0x13d477)&&!_0x1abf1a['isObject'](_0x13d477)&&(_0xeeb0a8=_0x1671c4['model']['createRange'](_0xeeb0a8['start'],_0x1671c4['model']['createPositionAt'](_0x13d477,'end'))),this['markInsertion'](_0xeeb0a8);}),_0xb0f266['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x393182=new x(_0x1671c4,this['_suggestions']);_0x1671c4['commands']['add']('acceptSuggestion',_0x393182),this['enableCommand']('acceptSuggestion');const _0x493ae9=new R(_0x1671c4,this['_suggestions']);_0x1671c4['commands']['add']('discardSuggestion',_0x493ae9),this['enableCommand']('discardSuggestion'),_0x1671c4['commands']['add']('acceptAllSuggestions',new E(_0x1671c4,_0x393182,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1671c4['commands']['add']('discardAllSuggestions',new E(_0x1671c4,_0x493ae9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1671c4['commands']['add']('acceptSelectedSuggestions',new O(_0x1671c4,_0x393182,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1671c4['commands']['add']('discardSelectedSuggestions',new O(_0x1671c4,_0x493ae9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x25ee9d=_0x1671c4['plugins']['get']('CommentsRepository');this['listenTo'](_0x25ee9d,'addComment',(_0x430480,{threadId:_0x3ad303})=>{const _0x291220=this['_suggestions']['get'](_0x3ad303);_0x291220&&_0x291220['commentThread']&&0x1===_0x291220['commentThread']['length']&&this['_updateSuggestionData'](_0x3ad303,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x25ee9d,'removeComment',(_0x53b6e3,{threadId:_0x5b4237})=>{const _0x94bb35=this['_suggestions']['get'](_0x5b4237);_0x94bb35&&_0x94bb35['commentThread']&&!_0x94bb35['commentThread']['length']&&this['_updateSuggestionData'](_0x5b4237,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x58d701){if(this['_adapter'])throw new _0x643216('track-changes-adapter-already-set',this);this['_adapter']=_0x58d701;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x41804f=!0x1,toJSON:_0x15055b=!0x1}={}){const _0x32ef72=[];for(const _0x27f3d7 of this['_suggestions']['values']())_0x41804f&&!_0x27f3d7['isInContent']||_0x32ef72['push'](_0x27f3d7);return _0x15055b?_0x32ef72['map'](_0x3941bb=>_0x3941bb['toJSON']()):_0x32ef72;}['getSuggestion'](_0x7679dd){const _0x25d553=this['_suggestions']['get'](_0x7679dd);if(!_0x25d553)throw new _0x643216('track-changes-suggestion-not-found',this);return _0x25d553;}['hasSuggestion'](_0x2ac2c5){return this['_suggestions']['has'](_0x2ac2c5);}['addSuggestionData'](_0x862b39){const {authorId:_0x277254,id:_0x2a1b05,attributes:_0x47a1b4}=_0x862b39,[_0x281bf5,_0xf59270]=_0x862b39['type']['split'](':'),_0x2ac265=this['_suggestions']['get'](_0x2a1b05)||this['_createSuggestion'](_0x281bf5,_0xf59270,_0x2a1b05,_0x277254,_0x47a1b4);if(this['_addThreadToSuggestion'](_0x2ac265),this['_checkSuggestionCorrectness'](_0x2ac265,_0x281bf5,_0xf59270||null,_0x277254),_0x2ac265['createdAt']=_0x862b39['createdAt'],_0x2ac265['_isDataLoaded']=!0x0,_0x47a1b4&&_0x47a1b4['@external']){const _0x583025=_0x47a1b4['@external'],_0x54c93f=this['_getExternalAuthor'](_0x583025['authorName']);_0x2ac265['authoredAt']=_0x583025['createdAt'],_0x2ac265['author']=_0x54c93f,_0x2ac265['isExternal']=!0x0;}else _0x2ac265['authoredAt']=_0x862b39['createdAt'];switch(_0x862b39['data']&&(_0x2ac265['data']=_0x862b39['data']),_0x862b39['attributes']&&(_0x2ac265['attributes']=_0x862b39['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2ac265['_saved']=!0x0),this['_suggestionState']['get'](_0x2ac265)){case'notReady':this['_suggestionState']['set'](_0x2ac265,'dataReady');break;case'markerReady':_0x2ac265['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2ac265])),this['_refreshSuggestionsChain'](new Set([_0x2ac265])),this['_suggestionState']['set'](_0x2ac265,'ready'),this['fire']('suggestionLoaded',_0x2ac265)):this['_suggestionState']['set'](_0x2ac265,'removed');}return _0x2ac265;}['acceptSuggestion'](_0x137c50){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3a377a of _0x137c50['getAllAdjacentSuggestions']())_0x3a377a['accept']();});});}['discardSuggestion'](_0x2af130){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xea7d3f of _0x2af130['getAllAdjacentSuggestions']())_0xea7d3f['discard']();});});}['enableCommand'](_0x3811ad,_0x372b2a){const _0x578d29=this['editor']['commands']['get'](_0x3811ad);if(!_0x578d29)throw new _0x643216('track-changes-command-not-found',this,{'commandName':_0x3811ad});if(this['_enabledCommands']['has'](_0x578d29))throw new _0x643216('track-changes-enable-command-twice',this,{'commandName':_0x3811ad});this['_enabledCommands']['add'](_0x578d29),_0x372b2a&&_0x578d29['on']('execute',(_0x6cd117,_0x4ca0eb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4ca0eb['length']>0x0&&_0x4ca0eb[_0x4ca0eb['length']-0x1]&&_0x4ca0eb[_0x4ca0eb['length']-0x1]['forceDefaultExecution']?_0x4ca0eb['pop']():(_0x6cd117['return']=_0x372b2a((..._0x40035c)=>_0x578d29['execute'](..._0x40035c,{'forceDefaultExecution':!0x0}),..._0x4ca0eb),_0x6cd117['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5bf12e){let _0x38c909,_0x311421;const _0x525c4c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x38c909=_0x5bf12e();}catch(_0x31c8f8){_0x311421=_0x31c8f8;}return _0x525c4c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x311421&&_0x643216['rethrowUnexpectedError'](_0x311421,this),_0x38c909;}['markInsertion'](_0x2acf17,_0x129d58=null,_0x23aa69={}){if(_0x2acf17['isCollapsed'])return null;const _0x23766c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3b93cd,meta:_0x35870f}of this['_findSuggestions'](_0x2acf17,'insertion'))if(_0x35870f['isOwn']){if(!_0x35870f['isNextTo']){if(_0x35870f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3b93cd,_0x23aa69))continue;return _0x3b93cd;}if(qt(_0x3b93cd,_0x23aa69))return _0x3b93cd;this['_breakSuggestionMarker'](_0x3b93cd,_0x2acf17['start'],_0x2acf17['end']);break;}if(_0x129d58==_0x3b93cd['subType']&&qt(_0x3b93cd,_0x23aa69)){const _0x2c3830=_0x3b93cd['getFirstRange']();return _0x2c3830['start']['isEqual'](_0x2acf17['end'])?this['_setSuggestionRange'](_0x3b93cd,this['_model']['createRange'](_0x2acf17['start'],_0x2c3830['end'])):this['_setSuggestionRange'](_0x3b93cd,this['_model']['createRange'](_0x2c3830['start'],_0x2acf17['end'])),_0x3b93cd;}}const _0x4f2b1b=_0x138912(),_0x3d6dee=_0x23766c['id'],_0x4f9fd0=_0x129d58?'insertion:'+_0x129d58:'insertion',_0x9d4dad=this['_setSuggestionData']({'id':_0x4f2b1b,'type':_0x4f9fd0,'createdAt':new Date(),'authorId':_0x3d6dee,'attributes':_0x23aa69});return this['_addSuggestionMarker'](_0x4f9fd0,_0x4f2b1b,_0x3d6dee,_0x2acf17),_0x9d4dad;}['markMultiRangeInsertion'](_0x27e734,_0x508e89='multi',_0x4f4748={}){const _0x5c1599=this['editor']['plugins']['get']('Users')['me'],_0x122426=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x508e89,'join');for(const _0x530d44 of this['getSuggestions']())if(_0x530d44['author']['id']==_0x5c1599['id']&&'insertion'==_0x530d44['type']&&_0x530d44['subType']==_0x508e89&&qt(_0x530d44,_0x4f4748)&&(_0x122426(_0x530d44['getRanges'](),_0x27e734)||_0x122426(_0x27e734,_0x530d44['getRanges']()))){for(const _0x31995a of _0x27e734)_0x530d44['addRange'](_0x31995a);return _0x530d44;}for(const {suggestion:_0x468138,meta:_0x5d9bf7}of this['_findSuggestions'](_0x27e734,'insertion')){if(!_0x5d9bf7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5d9bf7['containsRangeInObject'])continue;if(!qt(_0x468138,_0x4f4748))continue;let _0x3b15c1=!0x0;for(const _0x4b35c0 of _0x468138['getRanges']())for(const _0x54a677 of _0x27e734)if(!_0x4b35c0['containsRange'](_0x54a677)){_0x3b15c1=!0x1;break;}if(_0x3b15c1)return _0x468138;}const _0x27bef7=_0x138912(),_0x3a0705=_0x5c1599['id'],_0xe97b83='insertion:'+_0x508e89,_0x6a9ad3=this['_setSuggestionData']({'id':_0x27bef7,'type':_0xe97b83,'createdAt':new Date(),'authorId':_0x3a0705,'attributes':_0x4f4748});for(const _0x4a5908 of _0x27e734)this['_addSuggestionMarker'](_0xe97b83,_0x27bef7,_0x3a0705,_0x4a5908,u['getMultiRangeId']());return _0x6a9ad3;}['markInlineFormat'](_0x502fd3,_0x2d69fb,_0x5c0e03=null,_0x3395e8={}){if(_0x5c0e03=_0x5c0e03||Gt(_0x2d69fb),_0x502fd3['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x510503=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5c0e03,'accept');return this['forceDefaultExecution'](()=>_0x510503([_0x502fd3],_0x2d69fb,_0x3395e8)),null;}const _0x79b5ed=this['editor']['plugins']['get']('Users')['me'],_0x4abd49=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x596062,meta:_0x326f4c}of this['_findSuggestions'](_0x502fd3,'insertion'))_0x326f4c['isOwn']&&!_0x326f4c['isInsideObject']&&_0x4abd49['push'](..._0x596062['getRanges']());}const _0x4fdaa1=function(_0x1da758,_0x28c3f9){const _0x52d092=[];for(const _0x395d44 of _0x28c3f9){const _0x5a5fc0=_0x1da758['getIntersection'](_0x395d44);_0x5a5fc0&&_0x52d092['push'](_0x5a5fc0);}return _0x52d092;}(_0x502fd3,_0x4abd49),_0x1c6441=function(_0x4b1480,_0x3c77ca){const _0x59ecfa=[_0x4b1480];for(const _0xe66a72 of _0x3c77ca){let _0x131aae=0x0;for(;_0x131aae<_0x59ecfa['length'];){const _0x5612e7=_0x59ecfa[_0x131aae]['getDifference'](_0xe66a72);_0x59ecfa['splice'](_0x131aae,0x1,..._0x5612e7),_0x131aae+=_0x5612e7['length'];}}return _0x59ecfa;}(_0x502fd3,_0x4abd49);_0x4fdaa1['length']&&this['_model']['change'](()=>{for(const _0x237b96 of _0x4fdaa1){const _0x4822ea=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5c0e03,'accept');this['forceDefaultExecution'](()=>_0x4822ea([_0x237b96],_0x2d69fb,_0x3395e8));}});for(const _0xdc29dd of _0x1c6441){let _0x2901ee=null,_0x4ef7a8=_0xdc29dd['start'],_0x2e08c6=_0xdc29dd['end'];for(const {suggestion:_0x577fc3,meta:_0x4abc1e}of this['_findSuggestions'](_0xdc29dd,'formatInline')){if(!_0x4abc1e['isOwn'])continue;if(_0x577fc3['subType']!=_0x5c0e03)continue;if(!qt(_0x577fc3,_0x3395e8))continue;const _0x1dade=_0x577fc3['getFirstRange']();if(_0x1dade['containsRange'](_0xdc29dd,!0x0))return null;_0x4ef7a8=_0x4ef7a8['isBefore'](_0x1dade['start'])?_0x4ef7a8:_0x1dade['start'],_0x2e08c6=_0x2e08c6['isAfter'](_0x1dade['end'])?_0x2e08c6:_0x1dade['end'],_0x2901ee?_0x1dade['start']['isBefore'](_0x2901ee['getFirstRange']()['start'])?(_0x2901ee['removeMarkers'](),_0x2901ee=_0x577fc3):_0x577fc3['removeMarkers']():_0x2901ee=_0x577fc3;}const _0x4dcee1=this['_model']['createRange'](_0x4ef7a8,_0x2e08c6);if(_0x2901ee)this['_setSuggestionRange'](_0x2901ee,_0x4dcee1);else{const _0x23113c=_0x138912(),_0x515cd9=_0x79b5ed['id'];this['_setSuggestionData']({'id':_0x23113c,'type':'formatInline:'+_0x5c0e03,'data':_0x2d69fb,'createdAt':new Date(),'authorId':_0x515cd9,'attributes':_0x3395e8}),this['_addSuggestionMarker']('formatInline:'+_0x5c0e03,_0x23113c,_0x515cd9,_0x4dcee1);}}return null;}['markBlockFormat'](_0x1d9ff3,_0x13dced,_0x5a1416=[],_0x2ba726=null,_0x7bd745={}){_0x13dced['formatGroupId']||(_0x13dced['formatGroupId']=_0x13dced['commandName']),_0x13dced['multipleBlocks']=_0x1d9ff3['is']('range'),_0x2ba726=_0x2ba726||Gt(_0x13dced);const _0x51aee9=_0x5a1416['map'](_0x246ada=>Lt(_0x246ada,this['_model'])),_0x4ab488=_0x1d9ff3['is']('range')?_0x1d9ff3:Lt(_0x1d9ff3,this['_model']);if('never'===this['_trackFormatChanges']){const _0x52441f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ba726,'accept');return this['forceDefaultExecution'](()=>_0x52441f([_0x4ab488],_0x13dced,_0x7bd745)),null;}_0x51aee9['push'](_0x4ab488);let _0x4ebc35=!0x0;for(const _0x1520ec of _0x51aee9)if(!this['_rangeIsInLocalUserInsertion'](_0x1520ec)){_0x4ebc35=!0x1;break;}if(_0x4ebc35&&'always'!==this['_trackFormatChanges']){const _0x387b38=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ba726,'accept');return this['forceDefaultExecution'](()=>_0x387b38([_0x4ab488],_0x13dced,_0x7bd745)),null;}let _0x22e4ad=null,_0x7f1042=_0x4ab488['start'],_0x3625e7=_0x4ab488['end'];for(const {suggestion:_0x53c408,meta:_0x22b08c}of this['_findSuggestions'](_0x4ab488,'formatBlock')){if(!_0x22b08c['isOwn'])continue;if(_0x22b08c['isNextTo']||_0x22b08c['containsRangeInObject']||_0x22b08c['isInsideObject'])continue;if(_0x53c408['data']['formatGroupId']!=_0x13dced['formatGroupId'])continue;if(!qt(_0x53c408,_0x7bd745))continue;const _0x5ae50d=_0x53c408['getFirstRange']();if(_0x53c408['subType']==_0x2ba726){if(_0x5ae50d['containsRange'](_0x4ab488,!0x0))return null;_0x7f1042=_0x7f1042['isBefore'](_0x5ae50d['start'])?_0x7f1042:_0x5ae50d['start'],_0x3625e7=_0x3625e7['isAfter'](_0x5ae50d['end'])?_0x3625e7:_0x5ae50d['end'],_0x22e4ad?_0x5ae50d['start']['isBefore'](_0x22e4ad['getFirstRange']()['start'])?(_0x22e4ad['removeMarkers'](),_0x22e4ad=_0x53c408):_0x53c408['removeMarkers']():_0x22e4ad=_0x53c408;}else{const _0x51619f=_0x4ab488['getIntersection'](_0x5ae50d);this['_cutOutSuggestionMarker'](_0x53c408,_0x51619f);}}const _0x350cf0=this['editor']['plugins']['get']('Users')['me'],_0x13437f=_0x138912(),_0x3dc778=_0x350cf0['id'];if(_0x22e4ad)return this['_setSuggestionRange'](_0x22e4ad,this['_model']['createRange'](_0x7f1042,_0x3625e7)),_0x22e4ad;{const _0x31e12a=this['_setSuggestionData']({'id':_0x13437f,'type':'formatBlock:'+_0x2ba726,'data':_0x13dced,'createdAt':new Date(),'authorId':_0x3dc778,'attributes':_0x7bd745});return this['_addSuggestionMarker']('formatBlock:'+_0x2ba726,_0x13437f,_0x3dc778,this['_model']['createRange'](_0x7f1042,_0x3625e7)),_0x31e12a;}}['markMultiRangeBlockFormat'](_0x8b7bd2,_0x16e0e7,_0x281ab2=[],_0x4eb84e=null,_0x4fbc66={}){_0x16e0e7['formatGroupId']||(_0x16e0e7['formatGroupId']=_0x16e0e7['commandName']);const _0x92fc42=_0x8b7bd2[0x0];_0x16e0e7['multipleBlocks']=_0x92fc42['is']('range'),_0x4eb84e=_0x4eb84e||Gt(_0x16e0e7);const _0x574e28=_0x281ab2['map'](_0x56c6b5=>Lt(_0x56c6b5,this['_model'])),_0x25b8c0=_0x92fc42['is']('range')?_0x8b7bd2:_0x8b7bd2['map'](_0x3c6c2f=>Lt(_0x3c6c2f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3709e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4eb84e,'accept');return this['forceDefaultExecution'](()=>_0x3709e7(_0x25b8c0,_0x16e0e7,_0x4fbc66)),null;}_0x574e28['push'](..._0x25b8c0);let _0x3fd08d=!0x0;for(const _0x232fcd of _0x574e28)if(!this['_rangeIsInLocalUserInsertion'](_0x232fcd)){_0x3fd08d=!0x1;break;}if(_0x3fd08d&&'always'!==this['_trackFormatChanges']){const _0x32aac1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4eb84e,'accept');return this['forceDefaultExecution'](()=>_0x32aac1(_0x25b8c0,_0x16e0e7,_0x4fbc66)),null;}const _0x2c95a8=this['editor']['plugins']['get']('Users')['me'];for(const _0x264bf7 of this['getSuggestions']()){if(_0x264bf7['author']['id']!=_0x2c95a8['id'])continue;if('formatBlock'!=_0x264bf7['type']||_0x264bf7['data']['formatGroupId']!=_0x16e0e7['formatGroupId'])continue;if(!qt(_0x264bf7,_0x4fbc66))continue;const _0x51af32=_0x264bf7['subType']==_0x4eb84e;for(let _0x38cb77=0x0;_0x38cb77<_0x25b8c0['length'];_0x38cb77++){const _0x4d5d21=_0x25b8c0[_0x38cb77];for(const _0x1d5010 of _0x264bf7['getMarkers']()){const _0x1b1abd=_0x1d5010['getRange']();if(_0x4d5d21['isEqual'](_0x1b1abd)){_0x51af32?(_0x25b8c0['splice'](_0x38cb77,0x1),_0x38cb77--):_0x264bf7['removeMarker'](_0x1d5010['name']);break;}}}}if(0x0==_0x25b8c0['length'])return null;const _0x2a1b02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4eb84e,'join');for(const _0x1e03d9 of this['getSuggestions']())if(_0x1e03d9['author']['id']==_0x2c95a8['id']&&'formatBlock'==_0x1e03d9['type']&&_0x1e03d9['data']['formatGroupId']==_0x16e0e7['formatGroupId']&&_0x1e03d9['subType']==_0x4eb84e&&qt(_0x1e03d9,_0x4fbc66)&&(_0x2a1b02(_0x1e03d9['getRanges'](),_0x25b8c0)||_0x2a1b02(_0x25b8c0,_0x1e03d9['getRanges']()))){for(const _0x52c381 of _0x25b8c0)_0x1e03d9['addRange'](_0x52c381);return _0x1e03d9;}const _0x1d180d=_0x138912(),_0xc7fc39=_0x2c95a8['id'],_0x291457='formatBlock:'+_0x4eb84e,_0x3e0cfe=this['_setSuggestionData']({'id':_0x1d180d,'type':_0x291457,'data':_0x16e0e7,'createdAt':new Date(),'authorId':_0xc7fc39,'attributes':_0x4fbc66});for(const _0x1590a0 of _0x25b8c0)this['_addSuggestionMarker'](_0x291457,_0x1d180d,_0xc7fc39,_0x1590a0,u['getMultiRangeId']());return _0x3e0cfe;}['markDeletion'](_0x2884a0,_0x54a384=null,_0x5e9d38={}){if(_0x2884a0['isCollapsed'])return null;const _0x47d9ce=this['editor']['plugins']['get']('Users')['me'],_0x22adfc=new _0x135447(_0x2884a0['start'],_0x2884a0['end']);for(const {suggestion:_0x524f80,meta:_0xba9920}of this['_findSuggestions'](_0x22adfc,'insertion'))if(_0xba9920['isOwn']&&!_0xba9920['isNextTo']){if(_0x524f80['isMultiRange']){const _0x550a5=_0x524f80['getRanges']()['filter'](_0x2053c3=>'$graveyard'!=_0x2053c3['root']['rootName']);_0x550a5['every'](_0xf23e3b=>_0x22adfc['containsRange'](_0xf23e3b,!0x0))&&_0x524f80['discard']();if(_0x550a5['some'](_0x2387ad=>_0x2387ad['containsRange'](_0x22adfc,!0x0))){const _0x12f799=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x54a384,'accept');return this['forceDefaultExecution'](()=>_0x12f799([_0x22adfc],null,_0x5e9d38)),null;}}else{const _0x14e381=_0x22adfc['getIntersection'](_0x524f80['getFirstRange']());null!==_0x14e381&&_0x524f80['_onDiscard']([_0x14e381],null,_0x5e9d38);}}if(_0x22adfc['detach'](),_0x22adfc['isCollapsed']||'$graveyard'==_0x22adfc['root']['rootName'])return null;let _0x18a0e7=null,_0x1af3b0=_0x22adfc['start'],_0x56de07=_0x22adfc['end'];const _0x5e2eb6=this['_findSuggestions'](_0x22adfc,'deletion');for(const {suggestion:_0xa034a5,meta:_0x4c77bf}of _0x5e2eb6){const _0x4e73e1=this['_model']['createRange'](_0x1af3b0,_0x56de07);if(_0x4c77bf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c77bf['containsRangeInObject']&&!_0x4c77bf['isInsideObject'])){if(_0xa034a5['isMultiRange']){if(!qt(_0xa034a5,_0x5e9d38))continue;let _0x4fdf8e=!0x0;for(const _0x416a49 of _0xa034a5['getRanges']()){if(_0x416a49['containsRange'](_0x4e73e1,!0x0))return _0xa034a5;_0x4e73e1['containsRange'](_0x416a49)||(_0x4fdf8e=!0x1);}_0x4fdf8e&&_0xa034a5['discard']();}else{const _0x32298f=_0xa034a5['getFirstRange']();if(_0x32298f['containsRange'](_0x4e73e1,!0x0))return _0xa034a5;if(!qt(_0xa034a5,_0x5e9d38)){_0x4e73e1['containsRange'](_0x32298f)?_0xa034a5['removeMarkers']():_0x32298f['containsPosition'](_0x1af3b0)?_0x1af3b0=_0x32298f['end']:_0x32298f['containsPosition'](_0x56de07)&&(_0x56de07=_0x32298f['start']);continue;}_0x1af3b0=_0x1af3b0['isBefore'](_0x32298f['start'])?_0x1af3b0:_0x32298f['start'],_0x56de07=_0x56de07['isAfter'](_0x32298f['end'])?_0x56de07:_0x32298f['end'],_0x5e9d38=Object['assign']({},_0xa034a5['attributes']),_0x18a0e7?_0x32298f['start']['isBefore'](_0x18a0e7['getFirstRange']()['start'])?(_0x18a0e7['removeMarkers'](),_0x18a0e7=_0xa034a5):_0xa034a5['removeMarkers']():_0x18a0e7=_0xa034a5;}}}if(_0x18a0e7)return this['_setSuggestionRange'](_0x18a0e7,this['_model']['createRange'](_0x1af3b0,_0x56de07)),_0x18a0e7;{const _0x4869ba=_0x138912(),_0x5255e7=this['_model']['createRange'](_0x1af3b0,_0x56de07),_0x5bfe60=_0x47d9ce['id'],_0x2e9d79=_0x54a384?'deletion:'+_0x54a384:'deletion',_0x499e05=this['_setSuggestionData']({'id':_0x4869ba,'type':_0x2e9d79,'createdAt':new Date(),'authorId':_0x5bfe60,'attributes':_0x5e9d38});return this['_addSuggestionMarker'](_0x2e9d79,_0x4869ba,_0x5bfe60,_0x5255e7),_0x499e05;}}['markMultiRangeDeletion'](_0x4990ba,_0x40a622='multi',_0x1cf5e4={}){const _0x5c6069=this['editor']['plugins']['get']('Users')['me'],_0x3a3ae0=_0x4990ba['map'](_0x973e7f=>new _0x135447(_0x973e7f['start'],_0x973e7f['end'])),_0x5ecc00=new Set();for(const {suggestion:_0x13e537,meta:_0x54d4f0}of this['_findSuggestions'](_0x3a3ae0,'insertion'))_0x54d4f0['isOwn']&&!_0x54d4f0['isNextTo']&&_0x5ecc00['add'](_0x13e537);for(const _0x1edc98 of _0x5ecc00)if(_0x1edc98['isMultiRange']){const _0x4c04ac=_0x1edc98['getRanges']();(!_0x1edc98['attributes']||!_0x1edc98['attributes']['skipNestingCheck'])&&(_0x4c04ac['every'](_0x1ad3ec=>_0x3a3ae0['some'](_0x9f5b0c=>_0x9f5b0c['containsRange'](_0x1ad3ec,!0x0)))&&_0x1edc98['discard']());if(_0x3a3ae0['every'](_0x13a4e9=>_0x4c04ac['some'](_0xd5c424=>_0xd5c424['containsRange'](_0x13a4e9,!0x0)))){const _0x1d06c4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40a622,'accept');return this['forceDefaultExecution'](()=>_0x1d06c4(_0x4990ba,null,_0x1cf5e4)),null;}}else{const _0x3e8f00=_0x1edc98['getFirstRange']();_0x3a3ae0['some'](_0x2343b8=>_0x2343b8['containsRange'](_0x3e8f00,!0x0))&&_0x1edc98['discard']();if(_0x3a3ae0['every'](_0x353a2e=>_0x3e8f00['containsRange'](_0x353a2e,!0x0))){const _0x54e4c2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40a622,'accept');return this['forceDefaultExecution'](()=>_0x54e4c2(_0x3a3ae0,null,_0x1cf5e4)),null;}}const _0x93ebed=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40a622,'join');let _0x2b6d2f=null;for(const _0x33cee7 of this['getSuggestions']())if(_0x33cee7['author']['id']==_0x5c6069['id']&&_0x33cee7['isInContent']&&'deletion'==_0x33cee7['type']&&_0x33cee7['subType']==_0x40a622&&qt(_0x33cee7,_0x1cf5e4)&&(_0x93ebed(_0x33cee7['getRanges'](),_0x3a3ae0)||_0x93ebed(_0x3a3ae0,_0x33cee7['getRanges']()))){if(_0x2b6d2f){if(_0x33cee7['commentThread']&&_0x33cee7['commentThread']['length'])continue;for(const _0x74eb5d of _0x33cee7['getRanges']())_0x2b6d2f['isIntersectingWithRange'](_0x74eb5d)||_0x2b6d2f['addRange'](_0x74eb5d);_0x33cee7['removeMarkers']();}else{_0x2b6d2f=_0x33cee7;for(const _0x3426ca of _0x3a3ae0)_0x33cee7['isIntersectingWithRange'](_0x3426ca)||_0x33cee7['addRange'](_0x3426ca);}}if(_0x2b6d2f)return _0x2b6d2f;_0x5ecc00['clear']();for(const {suggestion:_0x48dc18,meta:_0x137534}of this['_findSuggestions'](_0x3a3ae0,'deletion'))_0x137534['isOwn']&&(this['_mergeNestedSuggestions']||!_0x137534['containsRangeInObject']&&!_0x137534['isInsideObject'])&&qt(_0x48dc18,_0x1cf5e4)&&_0x5ecc00['add'](_0x48dc18);for(const _0x44d8dc of _0x5ecc00){const _0x16c622=_0x44d8dc['getRanges']();if(!_0x1cf5e4||!_0x1cf5e4['skipNestingCheck']){if(_0x3a3ae0['every'](_0x2eec1f=>_0x16c622['some'](_0x4bcc00=>_0x4bcc00['containsRange'](_0x2eec1f,!0x0))))return _0x44d8dc;}(!_0x44d8dc['attributes']||!_0x44d8dc['attributes']['skipNestingCheck'])&&(_0x16c622['every'](_0x1cfc2b=>_0x3a3ae0['some'](_0x367e28=>_0x367e28['containsRange'](_0x1cfc2b,!0x0)))&&_0x44d8dc['discard']());}const _0x1ccf64=_0x138912(),_0x3f58fe=_0x5c6069['id'],_0x51e535='deletion:'+_0x40a622,_0x462857=this['_setSuggestionData']({'id':_0x1ccf64,'type':_0x51e535,'createdAt':new Date(),'authorId':_0x3f58fe,'attributes':_0x1cf5e4});for(const _0x52c119 of _0x3a3ae0)_0x52c119['detach'](),_0x52c119['isCollapsed']||'$graveyard'==_0x52c119['root']['rootName']||this['_addSuggestionMarker'](_0x51e535,_0x1ccf64,_0x3f58fe,_0x52c119,u['getMultiRangeId']());return _0x462857;}['markAttributeChange'](_0x2dfcf2,_0xdfb65a,_0x37035f,_0x3d7f7f,_0x325f90){if(_0x2dfcf2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x50da72=this['editor']['plugins']['get']('Users')['me']['id'],_0x8e9128=Array['from'](this['_suggestions']['values']())['filter'](_0x4d4a5e=>'attribute'==_0x4d4a5e['type']&&_0x4d4a5e['data']['key']==_0xdfb65a&&_0x4d4a5e['isIntersectingWithRange'](_0x2dfcf2));if('default'===this['_trackFormatChanges']){const _0x1b686e=this['_findSuggestions'](_0x2dfcf2,'insertion')['filter'](({meta:_0xdccd42})=>_0xdccd42['isOwn']&&!_0xdccd42['isInsideObject']&&!_0xdccd42['isNextTo'])['map'](({suggestion:_0x556f45})=>_0x556f45);_0x8e9128['unshift'](..._0x1b686e);}const _0x42eee2=new Map([[_0x2dfcf2,_0x37035f]]);for(const _0x232a50 of _0x8e9128){const _0x32f443='attribute'==_0x232a50['type']?_0x232a50['data']['oldValue']:void 0x0,_0x567aa3=_0x232a50['getFirstRange'](),_0x70d524=Array['from'](_0x42eee2['keys']())['find'](_0x28b031=>_0x28b031['isIntersecting'](_0x567aa3));if(!_0x70d524)continue;const _0x167382=_0x70d524['getDifference'](_0x567aa3);this['_isBlockAttribute'](_0xdfb65a)&&'insertion'==_0x232a50['type']&&0x0!=_0x167382['length']||(_0x42eee2['delete'](_0x70d524),_0x167382['forEach'](_0x5b5534=>{_0x42eee2['set'](_0x5b5534,_0x37035f);}),'insertion'!=_0x232a50['type']&&_0x32f443!=_0x3d7f7f&&_0x42eee2['set'](_0x70d524['getIntersection'](_0x567aa3),_0x32f443));}const _0x263f04=[];for(const [_0x4b319a,_0x305e00]of _0x42eee2){const _0x19f135=_0x138912(),_0x148883={'key':_0xdfb65a,'oldValue':_0x305e00,'newValue':_0x3d7f7f};_0xdfb65a['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':_0xdfb65a});const _0x425807=('attribute:'+(_0xdfb65a+'|'+Gt({'newValue':_0x3d7f7f})))['substring'](0x0,0x3c),_0x4d9951=this['_setSuggestionData']({'id':_0x19f135,'type':_0x425807,'data':_0x148883,'createdAt':new Date(),'authorId':_0x50da72,'attributes':_0x325f90});_0x263f04['push'](_0x4d9951),this['_addSuggestionMarker'](_0x425807,_0x19f135,_0x50da72,_0x4b319a);}return _0x263f04;}['enableDefaultAttributesIntegration'](_0x364267){this['enableCommand'](_0x364267,(_0x45235b,..._0x3508f7)=>{this['_recordAttributeChanges'](()=>{_0x45235b(..._0x3508f7);});});}['registerBlockAttribute'](_0x1291a4){this['_blockAttributeKeys']['add'](_0x1291a4);}['registerInlineAttribute'](_0x1990e4){this['_inlineAttributeKeys']['add'](_0x1990e4);}['_getAttributeKey'](_0x567837){return'attribute'==_0x567837['type']?_0x567837['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x361fe8,_0x41d27c){const _0x3c5de0=_0x361fe8['getFirstMarker']();this['_model']['change'](_0x20d298=>{_0x20d298['updateMarker'](_0x3c5de0,{'range':_0x41d27c});});}['_addThreadToSuggestion'](_0x2ec934){const _0x547b02=_0x2ec934['id'],_0x1b8512=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x547b02)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1b8512,'threadId':_0x547b02,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1ecb9d=this['_commentsRepository']['getCommentThread'](_0x547b02);_0x1ecb9d['unbind']('isRemovable'),_0x1ecb9d['isRemovable']=!0x1,_0x2ec934['commentThread']=_0x1ecb9d;}['_checkSuggestionCorrectness'](_0x4e29c5,_0x201c02,_0x4ad5ab,_0x310dda){if(_0x4e29c5['type']!=_0x201c02||_0x4e29c5['subType']!=_0x4ad5ab||_0x4e29c5['creator']['id']!=_0x310dda)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x643216('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x47f84e,_0xd77d69){const _0x3116b4=_0x47f84e['getFirstRange']();if(_0xd77d69['isEqual'](_0x3116b4))_0x47f84e['removeMarkers']();else{if(_0x3116b4['containsRange'](_0xd77d69)){const _0x4d18fe=this['_model']['createPositionAt'](_0xd77d69['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47f84e,this['_model']['createRange'](_0x3116b4['start'],_0x4d18fe));const _0x1ab248=_0x138912(),_0x3562d0=_0x47f84e['creator']['id'],_0x40a050=_0x47f84e['type']+':'+_0x47f84e['subType'];this['_setSuggestionData']({'id':_0x1ab248,'type':_0x40a050,'createdAt':new Date(),'authorId':_0x3562d0,'data':_0x47f84e['data'],'attributes':_0x47f84e['attributes']});const _0x312015=this['_model']['createPositionAt'](_0xd77d69['end']['parent'],'after'),_0x487e8b=this['_model']['createRange'](_0x312015,_0x3116b4['end']);this['_addSuggestionMarker'](_0x40a050,_0x1ab248,_0x3562d0,_0x487e8b);}else{if(_0x3116b4['containsPosition'](_0xd77d69['start'])){const _0x4b2263=this['_model']['createPositionAt'](_0xd77d69['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47f84e,this['_model']['createRange'](_0x3116b4['start'],_0x4b2263));}else{const _0x2ced86=this['_model']['createPositionAt'](_0xd77d69['end']['parent'],'after');this['_setSuggestionRange'](_0x47f84e,this['_model']['createRange'](_0x2ced86,_0x3116b4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5d5be1){for(const {suggestion:_0x3315b4,meta:_0x4ba6aa}of this['_findSuggestions'](_0x5d5be1,'insertion')){if(!_0x4ba6aa['isOwn'])continue;const _0x3ea619=_0x3315b4['getRanges']();for(const _0x2b763e of _0x3ea619)if(!_0x5d5be1['getDifference'](_0x2b763e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x45a616){const _0x219771=this['editor']['plugins']['get']('Users')['getUser'](_0x45a616);if(!_0x219771)throw new _0x643216('track-changes-user-not-found',this);return _0x219771;}['_getExternalAuthor'](_0x373858){const _0x53db86=this['editor']['plugins']['get']('Users'),_0x3e387f=_0xde5278('external:'+_0x373858),_0x402b43=_0x53db86['getUser'](_0x3e387f);return _0x402b43||_0x53db86['addUser']({'id':_0x3e387f,'name':_0x373858});}['_createSuggestion'](_0x4fcdc6,_0x324a54,_0x173620,_0x110fff,_0x2c5cd4){const _0x29f615=this['_getAuthorFromId'](_0x110fff),_0x52ea19=this['_suggestionFactory']['buildSuggestion'](_0x4fcdc6,_0x324a54,_0x173620,_0x29f615,_0x2c5cd4,_0x5986cc=>{this['_updateSuggestionData'](_0x173620,{'attributes':_0x5986cc});const _0x316e56=this['getSuggestion'](_0x173620);this['_joinWithAdjacentSuggestions'](new Set([_0x316e56])),this['_refreshSuggestionsChain'](new Set([_0x316e56]));});return this['listenTo'](_0x52ea19,'accept',()=>{this['_updateSuggestionData'](_0x173620,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x52ea19,'discard',()=>{this['_updateSuggestionData'](_0x173620,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x173620,_0x52ea19),this['_suggestionState']['set'](_0x52ea19,'notReady'),_0x52ea19;}['_splitMarkerName'](_0xd2d715){const _0x1ffb17=_0xd2d715['split'](':');return{'group':_0x1ffb17[0x0],'type':_0x1ffb17[0x1],'subType':_0x1ffb17['length']>=0x5?_0x1ffb17[0x2]:null,'id':_0x1ffb17['length']<0x5?_0x1ffb17[0x2]:_0x1ffb17[0x3],'authorId':_0x1ffb17['length']<0x5?_0x1ffb17[0x3]:_0x1ffb17[0x4],'markerCount':0x6==_0x1ffb17['length']?_0x1ffb17[0x5]:null};}['_breakSuggestionMarker'](_0x3556e8,_0x2bbba0,_0x5065c1){const _0x5e8d41=_0x3556e8['getFirstRange'](),_0x29c6f2=_0x5e8d41['start'],_0x227abc=_0x5e8d41['end'];this['_setSuggestionRange'](_0x3556e8,this['_model']['createRange'](_0x29c6f2,_0x2bbba0));const _0x452a20=_0x138912(),_0xf4cbfa=_0x3556e8['creator']['id'],_0x4813c8=_0x3556e8['type']+(_0x3556e8['subType']?':'+_0x3556e8['subType']:'');this['_setSuggestionData']({'id':_0x452a20,'type':_0x4813c8,'createdAt':new Date(),'authorId':_0xf4cbfa,'originalSuggestionId':_0x3556e8['id'],'attributes':_0x3556e8['attributes'],'data':_0x3556e8['data']});const _0x9f54be=this['_getAttributeKey'](_0x3556e8);('formatBlock'==_0x3556e8['type']||_0x9f54be&&this['_isBlockAttribute'](_0x9f54be))&&(_0x5065c1=this['_model']['createPositionBefore'](_0x5065c1['parent'])),this['_addSuggestionMarker'](_0x4813c8,_0x452a20,_0xf4cbfa,this['_model']['createRange'](_0x5065c1,_0x227abc));}['_findSuggestions'](_0x28bb35,_0x1f5b15=null){const _0xad0773=[],_0x5d9cd7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x28bb35)||(_0x28bb35=[_0x28bb35]);for(const _0x2b666f of this['getSuggestions']()){if(!_0x2b666f['isInContent'])continue;if(_0x1f5b15&&_0x2b666f['type']!=_0x1f5b15)continue;let _0x4c0fe2=!0x1;for(const _0x35e6da of _0x2b666f['getRanges']()){for(const _0x29f3ac of _0x28bb35){const _0x26856b=_0x29f3ac['start']['isEqual'](_0x35e6da['end'])||_0x29f3ac['end']['isEqual'](_0x35e6da['start']);if(_0x26856b||_0x29f3ac['getIntersection'](_0x35e6da)){const _0x5e6804=_0x29f3ac['containsRange'](_0x35e6da)&&Ot(this['_model']['schema'],_0x35e6da['start'],_0x29f3ac),_0x3c9271=_0x35e6da['containsRange'](_0x29f3ac)&&Ot(this['_model']['schema'],_0x29f3ac['start'],_0x35e6da);_0xad0773['push']({'suggestion':_0x2b666f,'meta':{'isOwn':_0x5d9cd7==_0x2b666f['author'],'isNextTo':_0x26856b,'isInsideObject':_0x5e6804,'containsRangeInObject':_0x3c9271}}),_0x4c0fe2=!0x0;break;}}if(_0x4c0fe2)break;}}return _0xad0773;}['_addSuggestionMarker'](_0x4a001b,_0xcc1316,_0xd61ea4,_0x7f12d9,_0x37594f){this['_model']['change'](_0x32b89f=>{let _0x30bd3a='suggestion:'+_0x4a001b+':'+_0xcc1316+':'+_0xd61ea4;_0x37594f&&(_0x30bd3a=_0x30bd3a+':'+_0x37594f),_0x32b89f['addMarker'](_0x30bd3a,{'range':_0x7f12d9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x51d8d1){const _0x5b0042=_0x51d8d1['previous'],_0x3432dc=_0x51d8d1['next'];_0x51d8d1['previous']=null,_0x51d8d1['next']=null,null!=_0x5b0042&&_0x5b0042['next']==_0x51d8d1&&(_0x5b0042['next']=_0x3432dc),null!=_0x3432dc&&_0x3432dc['previous']==_0x51d8d1&&(_0x3432dc['previous']=_0x5b0042),'ready'==this['_suggestionState']['get'](_0x51d8d1)&&(this['_suggestionState']['set'](_0x51d8d1,'removed'),this['fire']('suggestionUnloaded',_0x51d8d1,_0x5b0042,_0x3432dc));}['_setSuggestionData'](_0xeb7257){const _0x21c9ea=_0xeb7257['id'],_0x942097=this['addSuggestionData'](_0xeb7257);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x475796=this['editor']['plugins']['get']('PendingActions'),_0x5b8fb2=_0x942097['hasComments'],_0x496ae7=_0x942097['subType']?_0x942097['type']+':'+_0x942097['subType']:_0x942097['type'],_0x42e725=this['editor']['locale'],_0x53ebbe=_0x475796['add'](o(_0x42e725,'PENDING_ACTION_SUGGESTION')),_0x34b349={'id':_0x21c9ea,'type':_0x496ae7,'hasComments':_0x5b8fb2,'data':_0xeb7257['data']||null,'originalSuggestionId':_0xeb7257['originalSuggestionId']||null,'attributes':_0x942097['attributes']};this['_adapter']['addSuggestion'](_0x34b349)['then'](_0x5ced3e=>{_0x942097['_saved']=!0x0,_0x475796['remove'](_0x53ebbe),_0x5ced3e&&_0x5ced3e['createdAt']&&(this['_suggestions']['get'](_0x21c9ea)['createdAt']=_0x5ced3e['createdAt']);})['catch'](_0x53d7e8=>{throw _0x5ca2b0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x942097['discard']();}),_0x942097['stopListening'](),this['_suggestions']['delete'](_0x942097['id']),this['_suggestionState']['delete'](_0x942097),_0x53d7e8;});}return _0x942097;}['_isBlockAttribute'](_0x1c4974){return this['_blockAttributeKeys']['has'](_0x1c4974);}['_updateSuggestionData'](_0x52eb72,_0x373ea4){const _0x493e5e=this['editor']['plugins']['get']('PendingActions'),_0x4f8070=this['getSuggestion'](_0x52eb72);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4f8070['_saved']){const _0x4a3810=_0x493e5e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x52eb72,_0x373ea4)['then'](()=>{_0x493e5e['remove'](_0x4a3810);});}else _0x4f8070['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x52eb72,_0x373ea4);});}}['_getSuggestionData'](_0x13c639){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x643216('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x13c639);}['_handleNewSuggestionMarker'](_0x192092){const {id:_0x291cd3,type:_0x26e729,subType:_0x3eda27,authorId:_0x401281}=this['_splitMarkerName'](_0x192092),_0x44ed20=this['_suggestions']['get'](_0x291cd3)||this['_createSuggestion'](_0x26e729,_0x3eda27,_0x291cd3,_0x401281,{});switch(this['_checkSuggestionCorrectness'](_0x44ed20,_0x26e729,_0x3eda27,_0x401281),this['_suggestionState']['get'](_0x44ed20)){case'notReady':this['_getSuggestionData'](_0x291cd3)['then'](_0x3bcad6=>{let _0x2deaa8=Promise['resolve']();_0x3bcad6['hasComments']&&(_0x2deaa8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x291cd3})),_0x2deaa8['then'](()=>{this['addSuggestionData'](_0x3bcad6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x44ed20,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x291cd3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x44ed20,'ready'),this['fire']('suggestionLoaded',_0x44ed20);break;case'ready':this['fire']('suggestionChanged',_0x44ed20);}return _0x44ed20['addMarkerName'](_0x192092),_0x44ed20;}['_refreshSuggestionsChain'](_0x149534){const _0x55124c=Array['from'](_0x149534),_0x326738=_0x55124c['filter'](_0x21abbf=>'attribute'==_0x21abbf['type']);this['_refreshAttributeSuggestionsChain'](_0x326738);const _0x35aa58=_0x55124c['filter'](_0x17c05b=>!_0x17c05b['isMultiRange']&&'attribute'!=_0x17c05b['type']),_0x4d41ce=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4449be=>!_0x4449be['isMultiRange']&&'attribute'!=_0x4449be['type']),_0xfb4969=_0x4d41ce['filter'](_0x1eee9c=>!_0x149534['has'](_0x1eee9c)),_0x411bf7=new Map(_0x4d41ce['map'](_0x1b6d2f=>[_0x1b6d2f,this['_suggestionFactory']['getSuggestionCallback'](_0x1b6d2f['type'],_0x1b6d2f['subType'],'chain')])),_0x4e824a=new Map(_0x4d41ce['map'](_0x1f91b9=>[_0x1f91b9,_0x1f91b9['getFirstRange']()])),_0x19b7a1=new Set(),_0x769359=new Set();for(let _0x2d7384=0x0;_0x2d7384<_0x35aa58['length'];_0x2d7384++)_0x119a3a(_0x35aa58[_0x2d7384],_0x35aa58,_0x2d7384+0x1);for(let _0x124b7c=0x0;_0x124b7c<_0x35aa58['length'];_0x124b7c++)_0x119a3a(_0x35aa58[_0x124b7c],_0xfb4969,0x0);const _0x15a197=new Set();for(let _0x30fd25=0x0;_0x30fd25<_0x35aa58['length'];_0x30fd25++){const _0x43b6f5=_0x35aa58[_0x30fd25];!_0x769359['has'](_0x43b6f5)&&_0x43b6f5['previous']&&(_0x15a197['add'](_0x43b6f5['previous']),_0x43b6f5['previous']['next']===_0x43b6f5&&(_0x43b6f5['previous']['next']=null),_0x43b6f5['previous']=null),!_0x19b7a1['has'](_0x43b6f5)&&_0x43b6f5['next']&&(_0x15a197['add'](_0x43b6f5['next']),_0x43b6f5['next']['previous']===_0x43b6f5&&(_0x43b6f5['next']['previous']=null),_0x43b6f5['next']=null);}function _0x119a3a(_0x360c0f,_0x58f496,_0x19b09b){for(let _0x4339b9=_0x19b09b;_0x4339b9<_0x58f496['length'];_0x4339b9++){const _0x3a6310=_0x258a62(_0x360c0f,_0x58f496[_0x4339b9]);_0x3a6310&&(_0x3a6310[0x0]['next']=_0x3a6310[0x1],_0x3a6310[0x1]['previous']=_0x3a6310[0x0],_0x19b7a1['add'](_0x3a6310[0x0]),_0x769359['add'](_0x3a6310[0x1]));}}function _0x258a62(_0x279986,_0x262d6e){if(_0x279986['author']['id']!==_0x262d6e['author']['id'])return null;const _0x457358=_0x411bf7['get'](_0x279986)(_0x279986,_0x262d6e,_0x4e824a['get'](_0x279986),_0x4e824a['get'](_0x262d6e));if(!_0x457358)return null;return _0x411bf7['get'](_0x262d6e)(_0x279986,_0x262d6e,_0x4e824a['get'](_0x279986),_0x4e824a['get'](_0x262d6e))?_0x457358[0x1]['commentThread']&&_0x457358[0x1]['commentThread']['length']?null:_0x457358:null;}_0x15a197['size']&&this['_refreshSuggestionsChain'](_0x15a197);}['_refreshAttributeSuggestionsChain'](_0x2ed82b){if(0x0==_0x2ed82b['length'])return;const _0x18003d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18c370=>'attribute'==_0x18c370['type']&&_0x18c370['_isDataLoaded']),_0x8cf3a7=[],_0x22bcf7=new Map();for(const _0x325bce of _0x18003d){const _0x4a1b40=_0xde5278(_0x325bce['attributes']);_0x22bcf7['has'](_0x4a1b40)||(_0x22bcf7['set'](_0x4a1b40,_0x8cf3a7['length']),_0x8cf3a7['push']([]));const _0x537a3c=_0x22bcf7['get'](_0x4a1b40);_0x8cf3a7[_0x537a3c]['push'](_0x325bce);}!(function(){_0x8cf3a7['sort']((_0xfdf6cc,_0x379b3f)=>{const _0x3840ab=_0xfdf6cc[0x0]['createdAt'],_0x39e4cf=_0x379b3f[0x0]['createdAt'];return _0x3840ab==_0x39e4cf?_0xfdf6cc[0x0]['attributes']['groupId']<_0x379b3f[0x0]['attributes']['groupId']?-0x1:0x1:_0x3840ab<_0x39e4cf?-0x1:0x1;});for(const _0x1340d9 of _0x8cf3a7)_0x1340d9['sort']((_0x2cc448,_0x38c6a3)=>_0x2cc448['id']<_0x38c6a3['id']?-0x1:0x1);}());for(let _0xa70c7=0x0;_0xa70c7<_0x8cf3a7['length'];_0xa70c7++){if(0x0==_0x8cf3a7[_0xa70c7]['length'])continue;const _0x39a914=[];for(let _0x40e6da=_0xa70c7+0x1;_0x40e6da<_0x8cf3a7['length'];_0x40e6da++)0x0!=_0x8cf3a7[_0x40e6da]['length']&&_0x429eb3(_0x8cf3a7[_0xa70c7],_0x8cf3a7[_0x40e6da])&&_0x39a914['push'](_0x40e6da);for(const _0x409d96 of _0x39a914)_0x8cf3a7[_0xa70c7]=_0x8cf3a7[_0xa70c7]['concat'](_0x8cf3a7[_0x409d96]),_0x8cf3a7[_0x409d96]=[];}for(const _0x2e9c04 of _0x8cf3a7)for(let _0x14ab68=0x0;_0x14ab68<_0x2e9c04['length'];_0x14ab68++){const _0x2eb454=_0x2e9c04[_0x14ab68+0x1]||null;_0x2e9c04[_0x14ab68]['next']!==_0x2eb454&&(_0x2e9c04[_0x14ab68]['next']=_0x2eb454);}for(const _0x1bf554 of _0x8cf3a7)for(let _0x522aeb=0x0;_0x522aeb<_0x1bf554['length'];_0x522aeb++){const _0xbe8814=_0x1bf554[_0x522aeb-0x1]||null;_0x1bf554[_0x522aeb]['previous']!==_0xbe8814&&(_0x1bf554[_0x522aeb]['previous']=_0xbe8814);}function _0x429eb3(_0x5064de,_0x5502f8){if(_0x5064de[0x0]['attributes']['groupId']!==_0x5502f8[0x0]['attributes']['groupId']&&_0x5064de[0x0]['author']!==_0x5502f8[0x0]['author'])return!0x1;if(!function(_0xe45f6d,_0x4ba49d){if(!_0xe45f6d['hasComments']&&!_0x4ba49d['hasComments'])return!0x0;if(_0xe45f6d['hasComments']&&_0x4ba49d['hasComments'])return!0x1;if(_0xe45f6d['hasComments']&&_0x4ba49d['createdAt']<_0xe45f6d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4ba49d['hasComments']&&_0xe45f6d['createdAt']<_0x4ba49d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5064de[0x0],_0x5502f8[0x0]))return!0x1;const _0x3f412a=Tt(_0x5064de[0x0]['attributes'],'groupId'),_0x35d00e=Tt(_0x5502f8[0x0]['attributes'],'groupId');if(!_0x28ce4a(_0x3f412a,_0x35d00e))return!0x1;return!!_0x5064de['every'](_0x430769=>_0x5502f8['some'](_0x3dade1=>_0x430769['getFirstRange']()['isEqual'](_0x3dade1['getFirstRange']())))&&_0x5502f8['every'](_0x4d4bf1=>_0x5064de['some'](_0x244bba=>_0x4d4bf1['getFirstRange']()['isEqual'](_0x244bba['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1843d6){const _0x347f18=Array['from'](_0x1843d6),_0x16f1a9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3c5f04=_0x16f1a9['filter'](_0x5835bd=>!_0x1843d6['has'](_0x5835bd)),_0x477034=new Map(_0x347f18['map'](_0x20dfd3=>[_0x20dfd3,this['_suggestionFactory']['getSuggestionCallback'](_0x20dfd3['type'],_0x20dfd3['subType'],'join')])),_0x29edb1=new Map(_0x16f1a9['map'](_0x51a7bc=>[_0x51a7bc,_0x51a7bc['getRanges']()]));for(let _0x4415ab=0x0;_0x4415ab<_0x347f18['length'];_0x4415ab++){if(_0x12d4d4(this,_0x347f18[_0x4415ab],_0x347f18,_0x4415ab+0x1))return!0x0;}for(let _0xc0dc18=0x0;_0xc0dc18<_0x347f18['length'];_0xc0dc18++){if(_0x12d4d4(this,_0x347f18[_0xc0dc18],_0x3c5f04,0x0))return!0x0;}return!0x1;function _0x12d4d4(_0xdf085d,_0x35bda4,_0x52aa46,_0x14d9f9){for(let _0x1b7774=_0x14d9f9;_0x1b7774<_0x52aa46['length'];_0x1b7774++){const _0x573778=_0x52aa46[_0x1b7774];if(_0x573778['type']!==_0x35bda4['type']||_0x573778['author']['id']!==_0x35bda4['author']['id']||_0x573778['subType']!==_0x35bda4['subType'])continue;if(!Jt(_0x35bda4,_0x573778))continue;if('attribute'==_0x35bda4['type']&&_0x35bda4['data']['oldValue']!=_0x573778['data']['oldValue'])continue;if('attribute'==_0x35bda4['type']&&_0xdf085d['_isBlockAttribute'](_0x35bda4['data']['key']))continue;if('formatBlock'==_0x35bda4['type']){const _0x47b8fb=_0xdf085d['editor']['model'],_0x1aafab=_0x35bda4['getContainedElement']();if(_0x1aafab&&(_0x47b8fb['schema']['isObject'](_0x1aafab)||_0x47b8fb['schema']['isLimit'](_0x1aafab)))continue;}const _0x5f0152=_0x477034['get'](_0x35bda4),_0x547a5a=_0x29edb1['get'](_0x35bda4),_0x3ff58b=_0x29edb1['get'](_0x573778),_0x312054=_0x35bda4['commentThread']&&_0x35bda4['commentThread']['length'],_0x6fdc04=_0x573778['commentThread']&&_0x573778['commentThread']['length'];if(!_0x312054&&_0x5f0152(_0x3ff58b,_0x547a5a))return _0xdf085d['_joinSuggestions'](_0x573778,_0x35bda4),_0x29edb1['delete'](_0x35bda4),!0x0;if(!_0x6fdc04&&_0x5f0152(_0x547a5a,_0x3ff58b))return _0xdf085d['_joinSuggestions'](_0x35bda4,_0x573778),_0x29edb1['delete'](_0x573778),!0x0;}return!0x1;}}['_joinSuggestions'](_0xe109e9,_0x1c9ee4){if(_0xe109e9['isMultiRange']){for(const _0x1f1572 of _0x1c9ee4['getRanges']())_0xe109e9['addRange'](_0x1f1572);}else{const _0x4044f4=_0x1c9ee4['getFirstRange']()['end'];this['_setSuggestionRange'](_0xe109e9,this['_model']['createRange'](_0xe109e9['getFirstRange']()['start'],_0x4044f4));}_0x1c9ee4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x135f2c,_0x293aa6,_0x3cf59a){const _0x746e4b=_0x135f2c['startsWith']('format')||_0x135f2c['startsWith']('attribute')?'FORMATTING':_0x135f2c['toUpperCase']();return o(this['editor']['locale'],_0x293aa6+'_'+_0x746e4b+'_SUGGESTION_ANNOUNCEMENT',_0x3cf59a);}['_initAriaMarkerChangeAnnouncements'](){const _0x271965=this['editor'];if(!_0x271965['ui'])return;const {ariaLiveAnnouncer:_0x55b254}=_0x271965['ui'];_0x5d8177(this['_model'],({left:_0x5c537f,entered:_0x42e474})=>{for(const _0x5a1f29 of _0x5c537f){const {group:_0xb91f5,type:_0x14f706}=this['_splitMarkerName'](_0x5a1f29['name']);if('suggestion'===_0xb91f5){_0x55b254['announce'](this['_getMarkerAnnouncementText'](_0x14f706,'LEAVE'));break;}}for(const _0x1f8017 of _0x42e474){const {group:_0x18f85f,type:_0x4e2c3e}=this['_splitMarkerName'](_0x1f8017['name']);if('suggestion'===_0x18f85f){_0x55b254['announce'](this['_getMarkerAnnouncementText'](_0x4e2c3e,'ENTER',_0x52bb84(_0x2853f2)));break;}}});}['_processAttributeChanges'](_0x1a6faa){if(this['_recordAttributeSuggestions'])return!0x1;const _0x6dac2d=this['editor'],_0x5f3753=_0x6dac2d['model']['document']['differ']['getChanges']();if(0x0==_0x5f3753['length'])return!0x1;const _0x1a82c0=[],_0x33c65a=_0x5f3753['filter'](_0x5394b4=>'attribute'==_0x5394b4['type']),_0x4658f0=_0x5f3753['filter'](_0xcb92e5=>'insert'==_0xcb92e5['type']&&'$text'!=_0xcb92e5['name']),_0x5ac2ad=_0x5f3753['filter'](_0x4838f1=>'remove'==_0x4838f1['type']&&'$text'!=_0x4838f1['name']);for(const _0x4ee28e of _0x33c65a)_0x1a82c0['push']({'key':_0x4ee28e['attributeKey'],'newValue':_0x4ee28e['attributeNewValue'],'oldValue':_0x4ee28e['attributeOldValue'],'range':Pt(_0x4ee28e['range'],_0x6dac2d['model'])});for(const _0x1a6c13 of _0x4658f0){const _0x5b3630=_0x5ac2ad['find'](_0x34cdf3=>_0x34cdf3['position']['isEqual'](_0x1a6c13['position']));_0x5b3630&&_0x1a82c0['push']({'key':m,'newValue':_0x1a6c13['name'],'oldValue':_0x5b3630['name'],'range':_0x6dac2d['model']['createRangeOn'](_0x1a6c13['position']['nodeAfter'])});}return 0x0!=_0x1a82c0['length']&&this['_reduceExistingSuggestions'](_0x1a6faa,_0x1a82c0);}['_processAttributeSuggestions'](_0x8759b9){let _0x18e3c3=!0x1;const _0x1a15ab=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4509e2=>_0x4509e2['data']['newRange']&&_0x4509e2['name']['startsWith']('suggestion:attribute:'));for(const _0x386a5b of _0x1a15ab){const {subType:_0x594bdd,id:_0x23dc2b}=this['_splitMarkerName'](_0x386a5b['name']),_0x9c94fd=_0x594bdd['split']('|')[0x0];for(const _0x1e30d7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1e30d7['id']!=_0x23dc2b&&'attribute'==_0x1e30d7['type']&&_0x1e30d7['data']&&_0x1e30d7['data']['key']==_0x9c94fd&&_0x1e30d7['getFirstRange']()['isIntersecting'](_0x386a5b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1e30d7,_0x386a5b['data']['newRange'],_0x8759b9),_0x18e3c3=!0x0);}return _0x18e3c3;}['_recordAttributeChanges'](_0x29a32d){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x29a32d();}['_isRegisteredAttribute'](_0x5b665d){const _0x4f526c=this['_isBlockAttribute'](_0x5b665d),_0x42b2d7=this['_inlineAttributeKeys']['has'](_0x5b665d);return _0x4f526c||_0x42b2d7;}['_reduceExistingSuggestions'](_0x3d71a8,_0x52cb0b){if(0x0==_0x52cb0b['length'])return!0x1;let _0x410470=!0x1;for(const _0x5ce496 of _0x52cb0b){const _0x3ecd59=this['_findSuggestions'](_0x5ce496['range'],'attribute')['filter'](_0x2fa561=>!_0x2fa561['meta']['isNextTo'])['map'](_0x2f63a1=>_0x2f63a1['suggestion']),_0x3e22e2=_0xde5278({'newValue':_0x5ce496['newValue']});_0x3ecd59['filter'](_0x1bdb3e=>{const [_0x4c22d9,_0x50fde7]=_0x1bdb3e['subType']['split']('|');return _0x4c22d9==_0x5ce496['key']&&_0x50fde7!=_0x3e22e2;})['forEach'](_0x1a34e3=>{this['_reduceSuggestionAttributeRange'](_0x1a34e3,_0x5ce496['range'],_0x3d71a8),_0x410470=!0x0;});}return _0x410470;}['_reduceSuggestionAttributeRange'](_0x474eab,_0x1a9410,_0x4a8d88){const _0xbc601=_0x474eab['getFirstRange']()['getDifference'](_0x1a9410);0x0!==_0xbc601['length']?0x1!==_0xbc601['length']?this['_breakSuggestionMarker'](_0x474eab,_0x1a9410['start'],_0x1a9410['end']):this['_setSuggestionRange'](_0x474eab,_0xbc601[0x0]):_0x4a8d88['removeMarker'](_0x474eab['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2d2016){this['_editor']=_0x2d2016,this['_model']=_0x2d2016['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3155d5,_0x6a6500,_0x406262,_0x22ce14,_0x50f646,_0xb102fc){return new u(this['_model'],{'type':_0x3155d5,'subType':_0x6a6500,'id':_0x406262,'author':_0x22ce14,'creator':_0x22ce14,'attributes':_0x50f646,'onAttributesChange':_0xb102fc,'onAccept':(..._0x58fd65)=>this['getSuggestionCallback'](_0x3155d5,_0x6a6500,'accept')(..._0x58fd65),'onDiscard':(..._0xf60b16)=>this['getSuggestionCallback'](_0x3155d5,_0x6a6500,'discard')(..._0xf60b16)});}['registerCustomCallback'](_0x38725d,_0x56ef21,_0x3648ab,_0x2834a1){const _0x302ba6=_0x38725d+':'+_0x56ef21+':'+_0x3648ab;this['_customCallbacks']['set'](_0x302ba6,_0x2834a1);}['getSuggestionCallback'](_0x29c251,_0x1d9672,_0x4c993d){const _0x2ee961=_0x29c251+':'+_0x1d9672+':'+_0x4c993d;return this['_customCallbacks']['get'](_0x2ee961)||this['_defaultCallbacks']['get'](_0x29c251+':'+_0x4c993d);}['_registerDefaultCallbacks'](){const _0x574e31=()=>!0x1,_0x502ca6=_0x39f4e8=>{_0x39f4e8['sort']((_0x1c8cf0,_0x9c25c9)=>_0x1c8cf0['start']['isBefore'](_0x9c25c9['start'])?0x1:-0x1),this['_model']['change'](_0xa6c1e9=>{for(const _0x40b173 of _0x39f4e8){let _0x1abbe3;_0x1abbe3=_0x40b173['end']['isAtEnd']&&_0x40b173['end']['parent']==_0x40b173['start']['nodeAfter']?_0xa6c1e9['createSelection'](_0x40b173['start']['nodeAfter'],'on'):_0xa6c1e9['createSelection'](_0x40b173),this['_model']['deleteContent'](_0x1abbe3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x7d1853=(_0x552822,_0x455979)=>{_0x455979&&this['_model']['change'](_0x3865d2=>{const {commandName:_0x3b2483,commandParams:_0x34215e=[]}=_0x455979,_0xd7f47c=_0x552822['map'](_0xc8472b=>(Vt(_0xc8472b)&&(_0xc8472b=this['_model']['createRange'](_0xc8472b['end'])),_0xc8472b))['filter'](_0x1e58bb=>'$graveyard'!==_0x1e58bb['root']['rootName']);if(_0xd7f47c['length']<0x1)return;const _0x364b2e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x53314c=>_0x135447['fromRange'](_0x53314c));_0x3865d2['setSelection'](_0xd7f47c);for(const _0x59fab1 of this['_editor']['commands']['commands']())_0x59fab1['refresh']();_0x34215e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3b2483,..._0x34215e);const _0x3f3f36=_0x364b2e['filter'](_0x1c8643=>'$graveyard'!=_0x1c8643['root']['rootName']);_0x3f3f36['length']>0x0&&_0x3865d2['setSelection'](_0x3f3f36);for(const _0xa2f3ba of _0x364b2e)_0xa2f3ba['detach']();});},_0x49a56d=(_0x191ec2,_0x10c910)=>0x1==_0x191ec2['length']&&0x1==_0x10c910['length']&&_0x191ec2[0x0]['end']['isEqual'](_0x10c910[0x0]['start']),_0x2bcedc=(_0x3332c1,_0x7b2e8d,_0x396de5,_0x2988db)=>Ht(_0x3332c1,_0x7b2e8d,_0x396de5,_0x2988db,this['_model'])?[_0x3332c1,_0x7b2e8d]:Ht(_0x7b2e8d,_0x3332c1,_0x2988db,_0x396de5,this['_model'])?[_0x7b2e8d,_0x3332c1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x574e31),this['_defaultCallbacks']['set']('insertion:discard',_0x502ca6),this['_defaultCallbacks']['set']('insertion:join',_0x49a56d),this['_defaultCallbacks']['set']('insertion:chain',_0x2bcedc),this['_defaultCallbacks']['set']('deletion:accept',_0x502ca6),this['_defaultCallbacks']['set']('deletion:discard',_0x574e31),this['_defaultCallbacks']['set']('deletion:join',_0x49a56d),this['_defaultCallbacks']['set']('deletion:chain',_0x2bcedc),this['_defaultCallbacks']['set']('formatInline:accept',_0x7d1853),this['_defaultCallbacks']['set']('formatInline:discard',_0x574e31),this['_defaultCallbacks']['set']('formatInline:join',_0x49a56d),this['_defaultCallbacks']['set']('formatInline:chain',_0x574e31),this['_defaultCallbacks']['set']('formatBlock:accept',_0x7d1853),this['_defaultCallbacks']['set']('formatBlock:discard',_0x574e31),this['_defaultCallbacks']['set']('formatBlock:join',_0x49a56d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x574e31),this['_defaultCallbacks']['set']('attribute:accept',_0x574e31),this['_defaultCallbacks']['set']('attribute:discard',(_0x38dad8,_0x4a1787)=>{if(!_0x4a1787)return;const _0x44a10d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x493cab=>{if(_0x4a1787['key']==m)for(const _0x20f7d6 of _0x38dad8){const _0x1e5671=_0x20f7d6['start']['nodeAfter'],_0x1db6f4=_0x4a1787['oldValue'];_0x493cab['rename'](_0x1e5671,_0x1db6f4);}else{if(_0x44a10d['_isBlockAttribute'](_0x4a1787['key'])){for(const _0xbfe4ca of _0x38dad8)void 0x0!==_0x4a1787['oldValue']?_0x493cab['setAttribute'](_0x4a1787['key'],_0x4a1787['oldValue'],_0xbfe4ca['start']['nodeAfter']):_0x493cab['removeAttribute'](_0x4a1787['key'],_0xbfe4ca['start']['nodeAfter']);}else{for(const _0x149951 of _0x38dad8)_0x4a1787['oldValue']?_0x493cab['setAttribute'](_0x4a1787['key'],_0x4a1787['oldValue'],_0x149951):_0x493cab['removeAttribute'](_0x4a1787['key'],_0x149951);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x49a56d);}}function Ot(_0x1e6986,_0xcd493a,_0x1fefb5){for(const _0x1c27a2 of _0xcd493a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c27a2['root']==_0x1c27a2)return!0x1;if(!_0x1fefb5['containsItem'](_0x1c27a2))return!0x1;if(_0x1e6986['isObject'](_0x1c27a2)||_0x1e6986['isLimit'](_0x1c27a2))return!0x0;}return!0x1;}function Vt(_0xc9dbcc){return _0xc9dbcc['end']['parent']==_0xc9dbcc['start']['nodeAfter']&&_0xc9dbcc['end']['isAtStart'];}function Ut(_0x3b1904,_0x3873e6,_0x514545,_0x100d76){const _0x4dd482=_0x50dcbb=>!_0x50dcbb['item']['is']('$textProxy')&&!_0x100d76['isObject'](_0x50dcbb['item']),_0x466642=_0x3b1904['start']['getLastMatchingPosition'](_0x4dd482),_0x409e3f=_0x3b1904['end']['getLastMatchingPosition'](_0x4dd482,{'direction':'backward'});return(!_0x3b1904['start']['isEqual'](_0x466642)||!_0x3b1904['end']['isEqual'](_0x409e3f))&&(_0x466642['isBefore'](_0x409e3f)?_0x514545['updateMarker'](_0x3873e6,{'range':_0x514545['createRange'](_0x466642,_0x409e3f)}):_0x514545['removeMarker'](_0x3873e6),!0x0);}function Gt(_0x4f1131){return _0xde5278(_0x4f1131);}function Ft(_0x103026){const _0x3d7b42=_0x103026['start']['nodeAfter'];return _0x3d7b42&&_0x3d7b42['is']('element');}function Pt(_0x4d442d,_0x23a4f8){return null==_0x4d442d['end']['nodeBefore']&&_0x4d442d['end']['parent']==_0x4d442d['start']['nodeAfter']?Lt(_0x4d442d['start']['nodeAfter'],_0x23a4f8):_0x4d442d;}function Lt(_0x15235d,_0x2942e3){const _0x260b0f=_0x2942e3['schema']['isObject'](_0x15235d)||_0x2942e3['schema']['isSelectable'](_0x15235d);return _0x2942e3['createRange'](_0x2942e3['createPositionAt'](_0x15235d,'before'),_0x260b0f?_0x2942e3['createPositionAfter'](_0x15235d):_0x2942e3['createPositionAt'](_0x15235d,'end'));}function Ht(_0x212e1e,_0x103f24,_0x5060ca,_0x536667,_0x14085b){if(_0x212e1e['next'])return!0x1;if(!Jt(_0x212e1e,_0x103f24))return!0x1;if(_0x5060ca['end']['isEqual'](_0x536667['start']))return!0x0;if(_0x212e1e['type']!=_0x103f24['type'])return!0x1;if(!_0x5060ca['end']['isTouching'](_0x536667['start']))return!0x1;const _0x26c421=_0x14085b['createRange'](_0x5060ca['end'],_0x536667['start'])['getWalker']();for(const _0x121067 of _0x26c421)if(['elementStart','elementEnd']['includes'](_0x121067['type'])&&_0x14085b['schema']['isLimit'](_0x121067['item']))return!0x1;return!0x0;}function Jt(_0x57f76c,_0x518d10){if(!_0x57f76c['_isDataLoaded']||!_0x518d10['_isDataLoaded'])return!0x1;const _0x48afb3=new Set(Object['keys'](_0x57f76c['attributes'])),_0x4ce80d=new Set(Object['keys'](_0x518d10['attributes']));if(_0x48afb3['delete']('groupId'),_0x4ce80d['delete']('groupId'),0x0==_0x48afb3['size']&&0x0==_0x4ce80d['size'])return!0x0;if(_0x48afb3['size']!=_0x4ce80d['size'])return!0x1;const _0x4a2513={..._0x57f76c['attributes']},_0x1d9466={..._0x518d10['attributes']};return delete _0x4a2513['groupId'],delete _0x1d9466['groupId'],JSON['stringify'](_0x4a2513)==JSON['stringify'](_0x1d9466);}function qt(_0x22da3e,_0x2f62af){const _0x485c62=zt(_0x22da3e['attributes']),_0x159bff=zt(_0x2f62af);if(!_0x22da3e['_isDataLoaded'])return!0x1;for(const _0x20db4d of Object['keys'](_0x159bff))if(!_0x28ce4a(_0x485c62[_0x20db4d],_0x159bff[_0x20db4d]))return!0x1;return!0x0;}function zt(_0x2ede44){const _0x54b236=Object['assign']({},_0x2ede44);return delete _0x54b236['skipNestingCheck'],delete _0x54b236['tablePasteChainId'],_0x54b236;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x16dac0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5d7297,_0x1bac5c,_0x530e65,_0x17eacb){super(),this['model']=_0x1bac5c,this['view']=_0x530e65,this['commentThreadController']=_0x17eacb,this['_editor']=_0x5d7297,this['_acceptCommand']=_0x5d7297['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5d7297['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3af7d1,_0x28c43f)=>_0x3af7d1||_0x28c43f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2d3efa=>_0x2d3efa&&this['_editor']['model']['canEditAt'](_0x1bac5c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e3045=>_0x4e3045&&this['_editor']['model']['canEditAt'](_0x1bac5c['getRanges']())),this['_pendingAction']=null,_0x530e65['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x530e65,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x530e65,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x530e65,'change:isDirty',()=>{_0x530e65['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 _0x45baba=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x45baba);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1366ed{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x18ed8b,_0xcf38,_0x324748,_0x3cd15c){super(_0x18ed8b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5395b3(_0x18ed8b,o(_0x18ed8b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xcf38['authoredAt']),this['bind']('authoredAt')['to'](_0xcf38),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',_0xcf38,'authoredAt',this,'descriptionParts',(_0x3feaf4,_0x12ccac,_0x46623c)=>{const _0x5bc51d=_0x46623c['map'](_0x2d4e48=>ls(_0x2d4e48['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3feaf4-0x1,_0xcf38['author']['name'],_0x12ccac?_0x3cd15c['formatDateTime'](_0x12ccac):'',new DOMParser()['parseFromString'](_0x5bc51d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4fdb1d(),this['focusTracker']=new _0x416a3b(),this['keystrokes']=new _0x561c62(),this['focusCycler']=new _0x4afa17({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3db6a6=>_0x3db6a6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xcf38,this['_localUser']=_0x324748,this['_config']=_0x3cd15c,_0x3cd15c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x19268d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3b4da9}=this['_config'];this['commentsListView']=new _0x3b4da9(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',_0x2f268e=>_0x2f268e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5edbfa,_0x2ffc14)=>_0x5edbfa||!!_0x2ffc14);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x273444}=this['_config'],_0x1b9e03=new _0x273444(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3bdce0=_0x1b9e03['commentInputView'];return _0x1b9e03['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3bdce0,'value',(_0x4bafc6,_0x156a28,_0x184fd5)=>!!_0x184fd5||_0x4bafc6&&!_0x156a28),_0x3bdce0['on']('submit',(_0x27053c,_0x166749)=>{this['fire']('addComment',_0x166749),_0x3bdce0['editor']['setData']('');}),_0x3bdce0['on']('cancel',()=>this['focus']()),_0x3bdce0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1b9e03;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x566bf4,_0x37f7c4,_0x5d50c1,_0x443814){super(_0x566bf4,_0x37f7c4,_0x5d50c1,_0x443814),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x184c7d=>_0x184c7d&&_0x184c7d[0x0]?_0x184c7d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x13cf27,_0x28eb78)=>{let _0x966d='';for(const _0x3a9eb7 of _0x13cf27)_0x966d+='<p>'+ls(_0x3a9eb7['content'],_0x3a9eb7['color'])+'</p>';return _0x28eb78?_0x966d:_0x21551e(_0x966d,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x566bf4,'Accept\x20suggestion'),_0x2fe3e0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x566bf4,'Discard\x20suggestion'),_0x2fe3e0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x43d9f3(_0x566bf4,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']['addMany']([this['acceptButton'],this['discardButton']]),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5b1a9e=this['bindTemplate'],_0x58c929=[{'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':_0x5b1a9e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5b1a9e['to']('authoredAt',_0x529c7f=>this['_config']['formatDateTime'](_0x529c7f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x58c929['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x378e6c={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5b1a9e['if']('isActive','ck-suggestion-wrapper--active'),_0x5b1a9e['to']('type',_0x58be65=>'ck-suggestion-'+_0x58be65),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':_0x5b1a9e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x58c929},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x378e6c['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x378e6c;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x466c7e,_0x57ad53,_0x3e9d22)=>{this['_descriptionElement']['innerHTML']=_0x3e9d22;});}['_createButton'](_0x173ebb,_0xcb95cf,_0x44bc82,_0xae187f,_0x53b875){const _0x23e19d=new _0x3ae7a3(this['locale']);return _0x23e19d['set']({'label':_0x173ebb,'icon':_0xcb95cf,'tooltip':!0x0,'tooltipPosition':_0x53b875}),_0x23e19d['extendTemplate']({'attributes':{'class':_0x44bc82}}),_0x23e19d['on']('execute',()=>{this['fire'](_0xae187f,this['_model']['id']);}),_0x23e19d;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}var ce='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x231f11{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x588554,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x3866db){super(_0x3866db),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1bdaf4=this['editor']['config'];_0x1bdaf4['define']('trackChanges.SuggestionThreadView',re),_0x1bdaf4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1bdaf4['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x1062bc,_0x1505d9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x6e2cbd,_0x1fa80c]of this['_handleControllerBuffer']){const _0x4b0c01=this['_suggestionToController']['has'](_0x6e2cbd);_0x4b0c01||_0x1fa80c?_0x4b0c01&&_0x1fa80c&&this['_destroyController'](_0x6e2cbd):this['_initializeController'](_0x6e2cbd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1062bc,_0x1505d9);}['init'](){const _0x2195d5=this['editor'],_0x5ea605=_0x2195d5['plugins']['get']('TrackChangesEditing'),_0x41d278=_0x2195d5['plugins']['get']('Annotations'),_0x20e95c=_0x2195d5['plugins']['get']('EditorAnnotations'),_0x4d44a8=_0x2195d5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x20e95c['addSourceCollector'](()=>{const _0x5f0b88=[];for(const [_0x9e507f,_0x591180]of Array['from'](this['_suggestionToController'])){const _0x434fe8=_0x9e507f['getAllAdjacentSuggestions'](),_0xc78fef=[];for(const _0x229dd8 of _0x434fe8){if(!_0x229dd8['isInContent'])continue;if(_0x229dd8['isMultiRange']){_0xc78fef['push'](..._0x229dd8['getRanges']());continue;}const _0x44d1fd=_0x229dd8['getFirstRange']();if(_0xc78fef['length']>0x0){const _0x23cda9=_0xc78fef[0x0]['getJoined'](_0x44d1fd);if(_0x23cda9){_0xc78fef[0x0]=_0x23cda9;continue;}}_0xc78fef['push'](_0x44d1fd);}_0x5f0b88['push']([_0x591180['view'],_0xc78fef]);}return _0x5f0b88;}),this['listenTo'](_0x5ea605,'suggestionLoaded',(_0x2cc813,_0x515c82)=>{this['listenTo'](_0x515c82,'change:previous',(_0xea5783,_0x3f4769,_0x25ca14,_0xa87b8b)=>{_0x515c82['isInContent']&&(null==_0x25ca14?(this['_updateController'](_0xa87b8b['head']),this['_handleSuggestionControllerDelayed'](_0x515c82,!0x1)):(this['_updateController'](_0x25ca14['head']),null==_0xa87b8b&&this['_handleSuggestionControllerDelayed'](_0x515c82,!0x0)));}),null!==_0x515c82['previous']?this['_updateController'](_0x515c82['head']):this['_handleSuggestionControllerDelayed'](_0x515c82,!0x1);}),this['listenTo'](_0x5ea605,'suggestionUnloaded',(_0x467f10,_0x3d3c1c,_0x264abb)=>{this['stopListening'](_0x3d3c1c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d3c1c),this['_suggestionToController']['has'](_0x3d3c1c)&&this['_destroyController'](_0x3d3c1c),_0x264abb&&this['_updateController'](_0x264abb['head']);}),this['listenTo'](_0x5ea605,'suggestionChanged',(_0x254693,_0x22e608)=>{this['_updateController'](_0x22e608);}),this['listenTo'](_0x41d278,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4d44a8,'addComment',(_0xdc418,{threadId:_0x1b37f5,isFromAdapter:_0x512240})=>{if(_0x512240||!_0x5ea605['hasSuggestion'](_0x1b37f5))return;const _0xc9e791=_0x5ea605['getSuggestion'](_0x1b37f5);this['_suggestionToController']['get'](_0xc9e791)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2b8fb8=this['editor']['plugins']['get']('Annotations'),_0x5ac492=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2466eb=Array['from'](_0x2b8fb8['activeAnnotations'],_0x831e91=>_0x831e91['innerView'])['filter'](_0x42b1a1=>this['_viewToController']['has'](_0x42b1a1)),_0x22da70=[];for(const _0x3383ac of _0x2466eb){const _0x3aed99=this['_viewToController']['get'](_0x3383ac)['model']['getAllAdjacentSuggestions']();_0x22da70['push'](..._0x3aed99['reduce']((_0x36aaa9,_0xe22b50)=>[..._0x36aaa9,..._0xe22b50['getMarkerNames']()],[]));}_0x5ac492['activeMarkers']=_0x22da70;}['_addUIComponentsToFactory'](){const _0x41dd38=this['editor'],_0x172d7e=_0x41dd38['locale'],_0xfde8dd=o(_0x172d7e,'Track\x20changes'),_0x5cf94f=new Wt([{'type':'switchbutton','model':new _0x4a9ebe({'withText':!0x0,'isToggleable':!0x0,'label':_0xfde8dd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4a9ebe({'withText':!0x0,'label':o(_0x172d7e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a9ebe({'withText':!0x0,'label':o(_0x172d7e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a9ebe({'withText':!0x0,'label':o(_0x172d7e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a9ebe({'withText':!0x0,'label':o(_0x172d7e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4f42e6 of _0x5cf94f)if(he(_0x4f42e6)){const _0x321419=_0x41dd38['commands']['get'](_0x4f42e6['model']['commandName']);_0x4f42e6['model']['bind']('isOn','isEnabled')['to'](_0x321419,'value','isEnabled');}_0x41dd38['ui']['componentFactory']['add']('trackChanges',_0x45fc31=>this['_createToolbarButton'](_0x45fc31,_0x5cf94f,_0xfde8dd)),_0x41dd38['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3e54e4=>this['_createMenuBarMenu'](_0x3e54e4,_0x5cf94f,_0xfde8dd));}['_createToolbarButton'](_0x4397ef,_0x304bb7,_0x4641a4){const _0x2e038d=Qt(_0x4397ef,_0x8f9698),_0x3c77ad=this['editor']['commands']['get']('trackChanges');_0x2e038d['buttonView']['set']({'tooltip':_0x4641a4,'label':_0x4641a4,'icon':ce}),_0x2e038d['buttonView']['bind']('isOn')['to'](_0x3c77ad,'value'),_0x2e038d['buttonView']['on']('execute',()=>{_0x3c77ad['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2e038d,_0x304bb7,{'role':'menu'});const _0xd5c980=[];for(const _0x13a2a0 of _0x304bb7)he(_0x13a2a0)&&_0xd5c980['push'](this['editor']['commands']['get'](_0x13a2a0['model']['commandName']));const _0x3525cd=_0x2e038d['buttonView'];return _0x3525cd['actionView']['unbind']('isEnabled'),_0x3525cd['arrowView']['unbind']('isEnabled'),_0x3525cd['actionView']['bind']('isEnabled')['to'](_0x3c77ad,'isEnabled'),_0x3525cd['arrowView']['bind']('isEnabled')['toMany'](_0xd5c980,'isEnabled',(..._0x4cb8ca)=>_0x4cb8ca['some'](_0x4563b4=>_0x4563b4)),_0x2e038d['on']('execute',_0x2fda69=>{this['editor']['execute'](_0x2fda69['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e038d;}['_createMenuBarMenu'](_0x110937,_0x2a8d72,_0x560c70){const _0x394f18=new Yt(_0x110937),_0x4e607c=this['editor']['commands']['get']('trackChanges');_0x394f18['buttonView']['set']({'label':_0x560c70,'icon':ce});const _0x2bcf8d=new Zt(_0x110937);for(const _0x5022c7 of _0x2a8d72){if('separator'==_0x5022c7['type']){_0x2bcf8d['items']['add'](new Xt(_0x110937));continue;}const _0x1a0c56=new te(_0x110937,_0x394f18),_0x312d64=new _0x319522(_0x110937),_0x5c25ee=_0x5022c7['model'];_0x312d64['bind'](...Object['keys'](_0x5c25ee))['to'](_0x5c25ee),_0x312d64['delegate']('execute')['to'](_0x394f18),_0x312d64['on']('execute',()=>{this['editor']['execute'](_0x5c25ee['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a0c56['children']['add'](_0x312d64),_0x2bcf8d['items']['add'](_0x1a0c56);}return _0x394f18['bind']('isEnabled')['to'](_0x4e607c,'isEnabled'),_0x394f18['panelView']['children']['add'](_0x2bcf8d),_0x394f18;}['_initializeController'](_0x248c6e){const _0x47fe76=this['editor'],_0x7a0a2f=_0x47fe76['config'],_0x5000d5=_0x47fe76['plugins']['get']('Annotations'),_0x3142c7=_0x47fe76['plugins']['get']('CommentsRepository'),_0x1b09ea=_0x47fe76['plugins']['get']('EditorAnnotations'),_0x3e15df=_0x47fe76['plugins']['get'](_0x588554)['me'],_0x5de569=_0x7a0a2f['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x572c53,CommentThreadInputView:_0x54620a}=_0x47fe76['plugins']['get']('CommentsUI');let _0x55dc55,_0xcaf575;this['_annotationViews']['has'](_0x248c6e['id'])?(_0xcaf575=this['_annotationViews']['get'](_0x248c6e['id']),_0x55dc55=_0xcaf575['mainView']):(_0x55dc55=new _0x5de569(_0x47fe76['locale'],_0x248c6e,_0x3e15df,{'disableComments':this['_disableComments'],'editorConfig':_0x7a0a2f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x7a0a2f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x7a0a2f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x7a0a2f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x276638(_0x7a0a2f['get']('locale')),'CommentView':_0x7a0a2f['get']('comments')['CommentView'],'CommentsListView':_0x572c53,'CommentThreadInputView':_0x54620a}),_0x55dc55['acceptButton']['on']('execute',()=>{_0x47fe76['editing']['view']['focus']();}),_0x55dc55['discardButton']['on']('execute',()=>{_0x47fe76['editing']['view']['focus']();}),_0xcaf575=_0x5000d5['createAnnotationView'](this['editor']['locale'],_0x55dc55),_0xcaf575['bind']('isDirty')['to'](_0x55dc55,'isDirty'),_0xcaf575['bind']('length')['to'](_0x55dc55),_0xcaf575['bind']('type')['to'](_0x55dc55,'type',_0x371b86=>'suggestion-'+_0x371b86),this['listenTo'](_0x55dc55,'escape',()=>{_0x47fe76['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x248c6e['id'],_0xcaf575));const _0x5ac7fa=_0x3142c7['createCommentThreadController'](_0x248c6e['commentThread'],_0x55dc55),_0x47c127=new ae(_0x47fe76,_0x248c6e,_0x55dc55,_0x5ac7fa),_0x3eaf9c=_0x248c6e['getAllAdjacentSuggestions']()['filter'](_0x2759eb=>_0x2759eb['isInContent']);_0x55dc55['descriptionParts']=_0x47fe76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3eaf9c),this['_suggestionToController']['set'](_0x248c6e,_0x47c127),this['_viewToController']['set'](_0x55dc55,_0x47c127);const _0x39a673=_0x5000d5['createAnnotation']({'view':_0xcaf575,'target':()=>{const _0x2cdcbb=[],_0x1c1d3a=_0x248c6e['getAllAdjacentSuggestions']()['filter'](_0x347b74=>_0x347b74['isInContent']);for(const _0x47d652 of _0x1c1d3a)_0x2cdcbb['push'](..._0x47d652['getMarkers']());return _0x15af51(_0x47fe76['editing'],_0x2cdcbb);},'type':()=>'suggestion-'+_0x47c127['view']['type']});_0x3142c7['_bindAnnotationToEditors'](_0x55dc55,_0x39a673),_0x5000d5['add'](_0x39a673),_0x1b09ea['registerAnnotation'](_0x39a673);}['_destroyController'](_0x57b949){const _0x5c64b8=this['editor']['plugins']['get']('CommentsRepository'),_0x58037d=this['editor']['plugins']['get']('Annotations'),_0x48714a=this['_suggestionToController']['get'](_0x57b949),_0xb35393=_0x48714a['view'],_0x3c6b5f=_0x58037d['getByInnerView'](_0xb35393);_0x5c64b8['_unbindEditors'](_0xb35393),_0x3c6b5f&&_0x58037d['remove'](_0x3c6b5f),this['_suggestionToController']['delete'](_0x57b949),this['_viewToController']['delete'](_0xb35393),_0x48714a['destroy']();}['_updateController'](_0x42b5a9){if(!_0x42b5a9['isInContent']||!this['_suggestionToController']['has'](_0x42b5a9))return;const _0x4d64f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27096d=this['_suggestionToController']['get'](_0x42b5a9),_0xa11052=_0x42b5a9['getAllAdjacentSuggestions']();_0x27096d['view']['descriptionParts']=_0x4d64f3['descriptionFactory']['getDescriptions'](_0xa11052);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x2853f2,(_0x28e65a,_0x506ac9)=>{const _0x5091da=this['editor']['plugins']['get'](k),_0x225398=this['editor']['plugins']['get'](p);if(!_0x225398['activeMarkers']['length'])return;const {id:_0x20d64c}=_0x225398['_splitMarkerName'](_0x225398['activeMarkers'][0x0]),_0x48bb28=_0x5091da['getSuggestion'](_0x20d64c);_0x48bb28&&(this['_suggestionToController']['get'](_0x48bb28)['view']['focus'](),_0x506ac9());});}['destroy'](){for(const _0x382667 of this['_suggestionToController']['keys']())this['_destroyController'](_0x382667);for(const _0x302c12 of this['_annotationViews']['values']())_0x302c12['mainView']['destroy']();super['destroy']();}}function he(_0x57b953){return'model'in _0x57b953;}class k extends _0x231f11{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x19a729){this['editor']['plugins']['get'](p)['adapter']=_0x19a729;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x58aa2b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x58aa2b);}['getSuggestions']({skipNotAttached:_0x34e3b4=!0x1,toJSON:_0x3dd5f1=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x34e3b4,'toJSON':_0x3dd5f1});}['getSuggestion'](_0x2c14f2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2c14f2);}}const T=['Pagination'];class P extends _0x231f11{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x49f42a=this['editor'];if(_0x49f42a['config']['define']('trackChangesData.editorCreator',_0x2b911f=>{const _0x4ddc8f=_0x49f42a['model']['document']['getRootNames']()['reduce']((_0x5f37f9,_0x147939)=>(_0x5f37f9[_0x147939]='',_0x5f37f9),{});return _0x49f42a['constructor']['create'](_0x4ddc8f,_0x2b911f);}),'function'!=typeof _0x49f42a['config']['get']('trackChangesData')['editorCreator'])throw new _0x643216('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b8ebe){return N(this['editor'],!0x0,_0x5b8ebe);}['getDataWithDiscardedSuggestions'](_0x529a4d){return N(this['editor'],!0x1,_0x529a4d);}}class D extends _0x231f11{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2b5c5d){super(_0x2b5c5d),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(_0x2061a3){return void 0x0!==_0x2061a3['getRootsAttributes'];}async function N(_0x3ac3b5,_0x4dc53c,_0x14558e){const _0x6b5524=_0x2f475e(_0x3ac3b5,T);_0x6b5524['plugins']['push'](p,D),_0x6b5524['rootsAttributes']=v(_0x3ac3b5)?_0x3ac3b5['getRootsAttributes']():void 0x0;const _0x3478ae=document['createDocumentFragment'](),_0x44d523=_0x3ac3b5['config']['get']('trackChangesData')['editorCreator'],_0x2dcd50=await _0x44d523(_0x6b5524,()=>function(_0x2a325d){const _0x2b43d5=document['createElement']('div');return _0x2a325d['appendChild'](_0x2b43d5),_0x2b43d5;}(_0x3478ae));!function(_0xca947b,_0xae7f44){const _0x3b9afd=_0xca947b['model']['document']['getRootNames']()['reduce']((_0x34a816,_0x5252a0)=>(_0x34a816[_0x5252a0]=_0xca947b['data']['get']({'rootName':_0x5252a0}),_0x34a816),{}),_0x35eb90=_0xca947b['plugins']['get']('Users')['users']['map'](_0xfd1521=>({'id':_0xfd1521['id'],'name':_0xfd1521['name']})),_0x877f9b=_0xca947b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4fe1a4=_0xca947b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x494f3f=_0xae7f44['plugins']['get']('Users'),_0xb9faef=_0xae7f44['plugins']['get']('TrackChangesEditing'),_0x4df637=_0xae7f44['plugins']['get']('CommentsRepository');for(const _0x51acfa of _0x35eb90)_0x494f3f['getUser'](_0x51acfa['id'])||_0x494f3f['addUser'](_0x51acfa);_0x494f3f['me']||_0x494f3f['useAnonymousUser']();for(const _0x334ce9 of _0x4fe1a4)_0x4df637['addCommentThread'](_0x334ce9);for(const _0x20d670 of _0x877f9b)_0xb9faef['addSuggestionData'](_0x20d670);_0xae7f44['data']['set'](_0x3b9afd);}(_0x3ac3b5,_0x2dcd50),_0x2dcd50['execute'](_0x4dc53c?'acceptAllSuggestions':'discardAllSuggestions');const _0x46fde1=v(_0x2dcd50)?_0x2dcd50['getFullData'](_0x14558e):_0x2dcd50['data']['get'](_0x14558e);return await _0x2dcd50['destroy'](),_0x46fde1;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x440856,PendingActions as _0x16c1bd,icons as _0x49ed23}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xcccb3d,ObservableMixin as _0x264c04,uid as _0x3415dc,insertToPriorityArray as _0x334e81,priorities as _0x267b38,logWarning as _0x5ef1ed,getEnvKeystrokeText as _0x285f2b,FocusTracker as _0x282df3,KeystrokeHandler as _0x430d02,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5dd7b5,View as _0x1a2958,ViewCollection as _0x5dca52,FocusCycler as _0x414104,ViewModel as _0x26d981,createDropdown as Qt,SplitButtonView as _0x5aa422,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x4ca9ce}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x185b78,hashObject as _0x3890d7,surroundingMarkersDetector as _0x394842,ENTER_THREAD_KEYSTROKE as _0x3a300c,AriaDescriptionView as _0x2ccf23,setupThreadKeyboardNavigation as _0x1c4793,trimHtml as _0x11c916,UserView as _0xeabb9f,LateFocusButtonView as _0xb9feea,getDateTimeFormatter as _0x42c338,getAllMarkersDomElementsSorted as _0x1373e9,sanitizeEditorConfig as _0x3f1e9d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5628e1,LiveRange as _0x2fd4c8,LivePosition as _0x5917f6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4b1ae9,toWidget as _0x1b9eb8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x31583b,set as _0x44ad7e,isEqual as _0x18cd34,unset as _0x528aec,omit as Tt}from'lodash-es';import{Delete as _0x5bf591,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x40d05e,ShiftEnter as _0x4bd531}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x58b868,_0x16aa1f){super(_0x58b868),this['_enabledCommands']=_0x16aa1f,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 _0x4672be of this['editor']['commands']['commands']())_0x4672be['affectsData']&&!this['_enabledCommands']['has'](_0x4672be)&&_0x4672be['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x54950b of this['editor']['commands']['commands']())_0x54950b['affectsData']&&!this['_enabledCommands']['has'](_0x54950b)&&_0x54950b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x260aa5,_0x2d1f96){super(_0x260aa5),this['_suggestions']=_0x2d1f96,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x442da8){const _0x1b3df9=this['_suggestions']['get'](_0x442da8);if(!_0x1b3df9)throw new _0xcccb3d('track-changes-accept-suggestion-not-found',this);const _0x3afbdb=_0x1b3df9['getRanges']();this['editor']['model']['canEditAt'](_0x3afbdb)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b3df9);}}class R extends ts{['_suggestions'];constructor(_0x274f03,_0x5a0cc5){super(_0x274f03),this['_suggestions']=_0x5a0cc5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1c4dbe){const _0x4af024=this['_suggestions']['get'](_0x1c4dbe);if(!_0x4af024)throw new _0xcccb3d('track-changes-discard-suggestion-not-found',this);const _0x75278d=_0x4af024['getRanges']();this['editor']['model']['canEditAt'](_0x75278d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4af024);}}function ls(_0x232e4e,_0x2f4259){let _0xd61a36='';return _0xd61a36+=_0x232e4e['split']('*')['map']((_0xf35892,_0x4a3030)=>_0x4a3030%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xf35892)+'</span>':nn(_0xf35892))['join'](''),_0x2f4259&&(_0xd61a36+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2f4259['value']+'\x22\x20title=\x22'+_0x2f4259['title']+'\x22></span>'),_0xd61a36;}function nn(_0x591896){const _0x101351=document['createElement']('span');return _0x101351['innerText']=_0x591896,_0x101351['innerHTML'];}function ss(_0xc765d4){return _0xc765d4['sort']((_0x27310b,_0x3c2530)=>'deletion'==_0x27310b['type']&&'deletion'!=_0x3c2530['type']?-0x1:'deletion'!=_0x27310b['type']&&'deletion'==_0x3c2530['type']?0x1:0x0);}function to(_0x58bd58,_0x25e308){let _0x12ef90,_0x565988=0x0;const _0x52130b=[],_0x3be64f=_0x25e308['schema'];for(;_0x565988<_0x58bd58['length'];){const _0x9dca15=_0x58bd58[_0x565988],_0x2cdd20=_0x58bd58[_0x565988+0x1];_0x12ef90||(_0x12ef90=_0x25e308['createPositionBefore'](_0x9dca15)),on(_0x25e308,_0x9dca15,_0x2cdd20)||(_0x52130b['push'](_0x25e308['createRange'](_0x12ef90,_0x3be64f['isObject'](_0x9dca15)?_0x25e308['createPositionAfter'](_0x9dca15):_0x25e308['createPositionAt'](_0x9dca15,'end'))),_0x12ef90=null),_0x565988++;}return _0x52130b;}function on(_0xcd8433,_0x23c710,_0xafef2a){if(!_0xafef2a)return!0x1;const _0x416c3f=_0xcd8433['createPositionAfter'](_0x23c710),_0xc926ae=_0xcd8433['createPositionBefore'](_0xafef2a);return _0x416c3f['isTouching'](_0xc926ae);}function rs(_0x514737,_0x34ee86,_0x1a7e56){for(;_0x1a7e56['length'];){const _0x45ccf9=_0x1a7e56['splice'](0x0,0x64);_0x514737['change'](()=>{for(const _0xfd1b9b of _0x45ccf9)_0xfd1b9b['isInContent']&&_0x34ee86['execute'](_0xfd1b9b['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x3d79c2,_0x51321b,_0xb73fde){super(_0x3d79c2),this['_command']=_0x51321b,this['_suggestions']=_0xb73fde,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x439e3c=Array['from'](this['_suggestions']['values']())['some'](_0x5cac11=>_0x5cac11['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x439e3c;}['execute'](){const _0x3e94df=ss(Array['from'](this['_suggestions']['values']()));for(const _0x521812 of _0x3e94df){const _0x1cefc4=_0x521812['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1cefc4))return;}rs(this['editor']['model'],this['_command'],_0x3e94df);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1177b9,_0x446d5e,_0x4f264e){super(_0x1177b9),this['_command']=_0x446d5e,this['_suggestions']=_0x4f264e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x48755f=this['editor']['model']['document']['selection'],_0x479af1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x13de95,_0x1bdad7){const _0x5d0d9b=Array['from'](_0x13de95['getRanges']()),_0x59ed68=new Set();for(const _0x5e181a of _0x1bdad7)if(_0x5e181a['isInContent']){for(const _0x2caa4f of _0x5d0d9b)for(const _0x51a733 of _0x5e181a['getRanges']())(_0x2caa4f['isIntersecting'](_0x51a733)||_0x13de95['isCollapsed']&&!_0x5e181a['isMultiRange']&&_0x5e181a['next']&&_0x51a733['end']['isTouching'](_0x2caa4f['start']))&&_0x59ed68['add'](_0x5e181a);}return _0x59ed68;}(_0x48755f,_0x479af1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1b6f01=ss(Array['from'](this['_selectedSuggestions']));for(const _0xeb4fee of _0x1b6f01){const _0x57d48b=_0xeb4fee['getRanges']();if(!this['editor']['model']['canEditAt'](_0x57d48b))return;}rs(this['editor']['model'],this['_command'],_0x1b6f01);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x264c04(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x72931e,_0x43a8ed){super(),this['id']=_0x43a8ed['id'],this['type']=_0x43a8ed['type'],this['subType']=_0x43a8ed['subType']||null,this['author']=_0x43a8ed['author'],this['creator']=_0x43a8ed['creator']||_0x43a8ed['author'],this['isExternal']=Boolean(_0x43a8ed['attributes']&&_0x43a8ed['attributes']['@external']),this['data']=null,this['_model']=_0x72931e,this['_onAccept']=_0x43a8ed['onAccept'],this['_onDiscard']=_0x43a8ed['onDiscard'],this['_onAttributesChange']=_0x43a8ed['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x43a8ed['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 _0x3ffdcb=this;for(;_0x3ffdcb['previous'];)_0x3ffdcb=_0x3ffdcb['previous'];return _0x3ffdcb;}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'](_0x1e895a){this['_markerNames']['add'](_0x1e895a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x54e2db=>this['_model']['markers']['get'](_0x54e2db))['filter'](_0x292a94=>_0x292a94);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xfee48e=>{for(const _0x376f94 of this['getMarkers']())_0xfee48e['removeMarker'](_0x376f94);}),this['_markerNames']['clear']();}['removeMarker'](_0x54b722){this['_model']['change'](_0x24cdcc=>{_0x24cdcc['removeMarker'](_0x54b722);}),this['_markerNames']['delete'](_0x54b722);}['addRange'](_0x4f4693){const _0x480078='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x480078),this['_model']['change'](_0x4feba2=>{_0x4feba2['addMarker'](_0x480078,{'range':_0x4f4693,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c1840){for(const _0x4b63c9 of this['getRanges']())if(_0x4b63c9['isIntersecting'](_0x5c1840))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1d3faf=>_0x1d3faf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2efad9,_0xecc012)=>[..._0x2efad9,..._0xecc012['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x491598=this['getRanges']();if(0x1!=_0x491598['length'])return null;const _0x1b304d=_0x491598[0x0],_0x1c62c0=_0x1b304d['start']['nodeAfter'],_0xe21cec=_0x1b304d['end']['nodeBefore'];return _0x1c62c0 instanceof _0x5628e1?_0x1c62c0!=_0xe21cec?null:_0x1c62c0: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 _0x5f37a4=[];let _0x3c4e28=this['head'];for(;_0x3c4e28;)_0x5f37a4['push'](_0x3c4e28),_0x3c4e28=_0x3c4e28['next'];return _0x5f37a4;}['setAttribute'](_0x3093db,_0x1a129a){const _0xbca554=_0x31583b(this['attributes']);_0x44ad7e(_0xbca554,_0x3093db,_0x1a129a),_0x18cd34(_0xbca554,this['attributes'])||(this['attributes']=_0xbca554,this['_onAttributesChange'](_0xbca554));}['removeAttribute'](_0xc6fffa){const _0x23fc4a=_0x31583b(this['attributes']);_0x528aec(_0x23fc4a,_0xc6fffa),_0x18cd34(_0x23fc4a,this['attributes'])||(this['attributes']=_0x23fc4a,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 _0x3415dc()['substr'](0x1,0x5);}}function o(_0x3223f0,_0x2acf68,_0x246f17){const t=_0x3223f0['t'];switch(_0x2acf68){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',_0x246f17);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x246f17);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x246f17);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x246f17);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x246f17);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',_0x246f17);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x246f17);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',_0x246f17);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x246f17);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x246f17);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x246f17);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x246f17);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x246f17);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x246f17);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x246f17);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x246f17);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x246f17);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x246f17);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x246f17);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x246f17);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x246f17);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x246f17);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x246f17);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'},_0x246f17);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x246f17);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x246f17);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x246f17);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x246f17);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x246f17);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'},_0x246f17);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x246f17);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x246f17);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x246f17);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x246f17);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'},_0x246f17);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x246f17);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'},_0x246f17);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'},_0x246f17);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x246f17);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'},_0x246f17);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x246f17);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'},_0x246f17);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x246f17);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x246f17);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'},_0x246f17);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'},_0x246f17);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'},_0x246f17);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x246f17);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'},_0x246f17);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'},_0x246f17);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'},_0x246f17);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2acf68;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x52c4eb,_0x4c9d52){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x52c4eb,this['_locale']=_0x4c9d52;}['getDescriptions'](_0x21cb60){const _0x55aa25=[],_0x25796b=new Set(),_0x4447c5=new Set();for(let _0x13693d=0x0;_0x13693d<_0x21cb60['length'];_0x13693d++){const _0x1166ca=_0x21cb60[_0x13693d];if(!_0x1166ca['isInContent'])continue;const _0x5b0d2e=this['_handleCustomCallbackDescription'](_0x1166ca);if(_0x5b0d2e){if(null!=_0x1166ca['subType']){if(_0x25796b['has'](_0x1166ca['subType']))continue;_0x25796b['add'](_0x1166ca['subType']);}_0x55aa25['push'](_0x5b0d2e);}else{if('attribute'!=_0x1166ca['type'])'insertion'!=_0x1166ca['type']&&'deletion'!=_0x1166ca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x55aa25,_0x1166ca,_0x21cb60[_0x13693d+0x1]);else{const _0x573227=_0x1166ca['data']['key'];if(_0x4447c5['has'](_0x573227))continue;_0x4447c5['add'](_0x1166ca['data']['key']),_0x573227==m?this['_handleRenameSuggestionDescription'](_0x55aa25,_0x1166ca):this['_handleAttributeSuggestionDescription'](_0x55aa25,_0x1166ca);}}}return this['_resolveDescriptionItems'](_0x55aa25);}['registerDescriptionCallback'](_0x51df2e){this['_customCallbacks']['push'](_0x51df2e);}['registerElementLabel'](_0x44c5b9,_0x2b0374,_0x4db988=_0x267b38['normal']){'function'==typeof _0x44c5b9?_0x334e81(this['_itemLabelsCallbacks'],{'matchingCallback':_0x44c5b9,'label':_0x2b0374,'priority':_0x4db988}):this['_itemLabels']['set'](_0x44c5b9,_0x2b0374);}['registerAttributeLabel'](_0x2c4efc,_0x3285a2){this['_attributeLabels']['set'](_0x2c4efc,_0x3285a2);}['getItemLabel'](_0x15180a,_0x5e5fa3=0x1){let _0x235f97;for(const _0x799169 of this['_itemLabelsCallbacks'])if(_0x799169['matchingCallback'](_0x15180a)){_0x235f97=_0x799169['label'];break;}return _0x235f97||(_0x235f97=this['_itemLabels']['get'](_0x15180a['name'])),_0x235f97?_0x235f97(_0x5e5fa3):0x1!==_0x5e5fa3?_0x5e5fa3+'\x20'+_0x15180a['name']+'s':''+_0x15180a['name'];}['_addDescriptionItems'](_0x260b14,_0x20ea0c){const _0x1006a3=_0x20ea0c['getFirstRange']()['getWalker'](),_0xe2ba72='insertion'==_0x20ea0c['type']?'add':'remove';for(const _0x1788fe of _0x1006a3){const _0x5d384d=_0x1788fe['item'],_0x25d976=_0x260b14[_0x260b14['length']-0x1];if(_0x5d384d['is']('$textProxy'))_0x25d976&&_0x25d976['type']['indexOf']('Container')>-0x1&&_0x260b14['pop'](),_0x25d976&&'text'==_0x25d976['type']?_0x25d976[_0xe2ba72]+=_0x5d384d['data']:_0x260b14['push']({'type':'text','add':'add'==_0xe2ba72?_0x5d384d['data']:'','remove':'remove'==_0xe2ba72?_0x5d384d['data']:''});else{if(this['_schema']['isObject'](_0x5d384d)){const _0x44bafb=_0x5d384d;if(_0x25d976&&_0x25d976['type']['indexOf']('Container')>-0x1&&_0x260b14['pop'](),'elementEnd'==_0x1788fe['type'])continue;_0x25d976&&_0x25d976['type']==_0xe2ba72+'Object'&&_0x25d976['element']['name']==_0x44bafb['name']?_0x25d976['quantity']++:_0x260b14['push']({'type':_0xe2ba72+'Object','element':_0x44bafb,'quantity':0x1}),_0x1006a3['skip'](_0x596c88=>!('elementEnd'==_0x596c88['type']&&_0x596c88['item']==_0x5d384d));}else{if(this['_schema']['checkChild'](_0x5d384d,'$text')||_0x5d384d['is']('element','softBreak')){const _0x4cd661=_0x5d384d;if('add'==_0xe2ba72&&'elementStart'==_0x1788fe['type']||'remove'==_0xe2ba72&&'elementEnd'==_0x1788fe['type'])continue;if(_0x25d976&&-0x1==_0x25d976['type']['indexOf']('Container')){'text'==_0x25d976['type']&&(_0x25d976[_0xe2ba72]+='\x0a');continue;}let _0x58c3ca;if(_0x58c3ca='add'==_0xe2ba72?_0x4cd661['nextSibling']&&!this['_schema']['isObject'](_0x4cd661['nextSibling'])?_0x4cd661['nextSibling']:null:_0x4cd661['previousSibling']&&!this['_schema']['isObject'](_0x4cd661['previousSibling'])?_0x4cd661['previousSibling']:null,_0x4cd661['isEmpty']||_0x58c3ca&&_0x58c3ca['isEmpty']){const _0xa76178=_0x58c3ca&&_0x58c3ca['isEmpty']?_0x58c3ca:_0x4cd661;_0x25d976&&_0x25d976['type']==_0xe2ba72+'EmptyContainer'&&_0x25d976['element']['name']==_0xa76178['name']?_0x25d976['quantity']++:_0x260b14['push']({'type':_0xe2ba72+'EmptyContainer','element':_0xa76178,'quantity':0x1});}else _0x260b14['push']({'type':_0xe2ba72+'Container','element':_0x4cd661});}}}}}['_resolveDescriptionItems'](_0x127365){const _0x5ba7f9=this['_locale'],_0x15210b=[],_0x128905=[],_0xac34fa=[];for(const _0x25abb8 of _0x127365)switch(_0x25abb8['type']){case'text':if(_0x25abb8['add']=_0x25abb8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x25abb8['remove']=_0x25abb8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x25abb8['add']&&''!=_0x25abb8['remove']){_0x15210b['push']({'type':'replace','content':o(_0x5ba7f9,'REPLACE_TEXT',['\x22'+_0x25abb8['remove']+'\x22','\x22'+_0x25abb8['add']+'\x22'])});continue;}if(null!=_0x25abb8['add']['match'](/^ +$/)){_0x15210b['push']({'type':'insertion','content':o(_0x5ba7f9,'*Insert:*\x20%0',o(_0x5ba7f9,'ELEMENT_SPACE',_0x25abb8['add']['length']))});continue;}if(null!=_0x25abb8['remove']['match'](/^ +$/)){_0x15210b['push']({'type':'deletion','content':o(_0x5ba7f9,'*Remove:*\x20%0',o(_0x5ba7f9,'ELEMENT_SPACE',_0x25abb8['remove']['length']))});continue;}if(''!=_0x25abb8['add']){_0x15210b['push']({'type':'insertion','content':o(_0x5ba7f9,'*Insert:*\x20%0','\x22'+_0x25abb8['add']+'\x22')});continue;}_0x15210b['push']({'type':'deletion','content':o(_0x5ba7f9,'*Remove:*\x20%0','\x22'+_0x25abb8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x15210b['push']({'type':'insertion','content':o(_0x5ba7f9,'*Insert:*\x20%0',this['getItemLabel'](_0x25abb8['element'],_0x25abb8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x15210b['push']({'type':'deletion','content':o(_0x5ba7f9,'*Remove:*\x20%0',this['getItemLabel'](_0x25abb8['element'],_0x25abb8['quantity']))});continue;case'addContainer':_0x15210b['push']({'type':'insertion','content':o(_0x5ba7f9,'*Split:*\x20%0',this['getItemLabel'](_0x25abb8['element'],_0x25abb8['quantity']))});continue;case'removeContainer':_0x15210b['push']({'type':'deletion','content':o(_0x5ba7f9,'*Merge:*\x20%0',this['getItemLabel'](_0x25abb8['element'],_0x25abb8['quantity']))});continue;case'addFormat':_0x128905['push'](_0x25abb8['key']);continue;case'removeFormat':_0xac34fa['push'](_0x25abb8['key']);continue;default:_0x15210b['push'](_0x25abb8);}if(_0x128905['length']){const _0x1e77df=_0x128905['map'](_0x395e9e=>this['_attributeLabels']['has'](_0x395e9e)?this['_attributeLabels']['get'](_0x395e9e):_0x395e9e)['join'](',\x20');_0x15210b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1e77df)});}if(_0xac34fa['length']){const _0x2e3dee=_0xac34fa['map'](_0x6d5eb5=>this['_attributeLabels']['has'](_0x6d5eb5)?this['_attributeLabels']['get'](_0x6d5eb5):_0x6d5eb5)['join'](',\x20');_0x15210b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2e3dee)});}return _0x15210b;}['_handleCustomCallbackDescription'](_0x36de7a){for(const _0x54d80a of this['_customCallbacks']){const _0x558ab2=_0x54d80a(_0x36de7a);if(_0x558ab2&&'type'in _0x558ab2)return _0x558ab2;}}['_handleAttributeSuggestionDescription'](_0x9aa65c,_0x58f8ac){const _0x54d271=_0x58f8ac['data'],_0x543713=void 0x0===_0x54d271['newValue']?'removeFormat':'addFormat';_0x9aa65c['push']({'type':_0x543713,'key':_0x54d271['key']});}['_handleRenameSuggestionDescription'](_0x43c90a,_0x3c13f1){_0x43c90a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3c13f1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xf6d6f3,_0x5635ff,_0x2f49f9){if(this['_addDescriptionItems'](_0xf6d6f3,_0x5635ff),_0x2f49f9&&_0x2f49f9['getFirstRange']()&&!_0x5635ff['getFirstRange']()['end']['isEqual'](_0x2f49f9['getFirstRange']()['start'])){const _0x4fcdba=_0xf6d6f3[_0xf6d6f3['length']-0x1],_0x4bff26='insertion'==_0x5635ff['type']?'add':'remove';_0x4fcdba&&'text'==_0x4fcdba['type']&&(_0x4fcdba[_0x4bff26]+='\x0a');}}}class V extends _0x440856{['afterInit'](){const _0x329608=this['editor'],_0x146886=_0x329608['plugins']['get']('TrackChangesEditing');_0x329608['commands']['get']('showAIAssistant')&&_0x146886['enableCommand']('showAIAssistant');}}class U extends _0x440856{['afterInit'](){const _0x247d4f=this['editor'],_0xc20c25=_0x247d4f['locale'];if(!_0x247d4f['plugins']['has']('AlignmentEditing'))return;const _0x55b38c=_0x247d4f['plugins']['get']('TrackChangesEditing');_0x55b38c['enableDefaultAttributesIntegration']('alignment'),_0x55b38c['registerBlockAttribute']('alignment'),_0x55b38c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xc20c25,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2482b9=this['editor'],_0x2e41b0=_0x2482b9['locale'];_0x2482b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59c1b6=>{if('formatBlock'!=_0x59c1b6['type'])return;const {data:_0x31041e}=_0x59c1b6;if(_0x31041e&&'alignment'==_0x31041e['commandName']){const _0x1428be=_0x31041e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2e41b0,'*Format:*\x20%0',function(_0x4daf52){switch(_0x4daf52){case'left':return o(_0x2e41b0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2e41b0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2e41b0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2e41b0,'FORMAT_JUSTIFY_TEXT');}}(_0x1428be))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x440856{['afterInit'](){const _0x24b339=this['editor'],_0x4c1493=_0x24b339['plugins']['get']('TrackChangesEditing'),_0x3aa781=_0x24b339['locale'];for(const _0x4ce43f of ti){if(!_0x24b339['plugins']['has'](_0x4ce43f))continue;const _0x2110d4=_0x4ce43f['slice'](0x0,-0x7)['toLowerCase'](),_0x168f32='FORMAT_'+_0x2110d4['toUpperCase']();_0x4c1493['enableDefaultAttributesIntegration'](_0x2110d4),_0x4c1493['registerInlineAttribute'](_0x2110d4),_0x4c1493['descriptionFactory']['registerAttributeLabel'](_0x2110d4,o(_0x3aa781,_0x168f32));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd939d8=this['editor'],_0xdb9423=_0xd939d8['locale'],_0x240c83=_0xd939d8['plugins']['get']('TrackChangesEditing');function _0x142c96(_0x8406d5,_0x39c438){_0x240c83['descriptionFactory']['registerDescriptionCallback'](_0x227b36=>{if('formatInline'!=_0x227b36['type'])return;const {data:_0x305862}=_0x227b36;return _0x305862&&_0x305862['commandName']===_0x8406d5?_0x305862['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xdb9423,'*Format:*\x20%0',_0x39c438)}:{'type':'format','content':o(_0xdb9423,'*Remove\x20format:*\x20%0',_0x39c438)}:void 0x0;});}_0x142c96('bold',o(_0xdb9423,'FORMAT_BOLD')),_0x142c96('italic',o(_0xdb9423,'FORMAT_ITALIC')),_0x142c96('underline',o(_0xdb9423,'FORMAT_UNDERLINE')),_0x142c96('code',o(_0xdb9423,'FORMAT_CODE')),_0x142c96('strikethrough',o(_0xdb9423,'FORMAT_STRIKETHROUGH')),_0x142c96('subscript',o(_0xdb9423,'FORMAT_SUBSCRIPT')),_0x142c96('superscript',o(_0xdb9423,'FORMAT_SUPERSCRIPT'));}}class F extends _0x440856{['afterInit'](){const _0x2ef7d7=this['editor'],_0x353588=_0x2ef7d7['locale'];if(!_0x2ef7d7['plugins']['has']('BlockQuoteEditing'))return;const _0x221041=_0x2ef7d7['plugins']['get']('TrackChangesEditing'),_0x48d6ab=this['editor']['commands']['get']('blockQuote');_0x221041['enableCommand']('blockQuote',(_0x3e6689,_0x46d5aa={})=>{const _0x41746e=this['editor']['model']['document']['selection'],_0x1bb68e=_0x46d5aa&&void 0x0!==_0x46d5aa['forceValue']?_0x46d5aa['forceValue']:!_0x48d6ab['value'];let _0x113f57=[];if(_0x1bb68e){const _0x1b13c4=Array['from'](_0x41746e['getSelectedBlocks']())['filter'](_0x3b788f=>oo(_0x3b788f)||function(_0x38e5a9,_0x55eb2f){const _0x11e312=_0x55eb2f['checkChild'](_0x38e5a9['parent'],'blockQuote'),_0x2f14f1=_0x55eb2f['checkChild'](['$root','blockQuote'],_0x38e5a9);return _0x11e312&&_0x2f14f1;}(_0x3b788f,this['editor']['model']['schema']));_0x113f57=to(_0x1b13c4,_0x2ef7d7['model']);}else{const _0x117015=Array['from'](_0x41746e['getSelectedBlocks']())['filter'](_0x2003ae=>oo(_0x2003ae));_0x113f57=to(_0x117015,_0x2ef7d7['model']);}_0x2ef7d7['model']['change'](()=>{for(const _0x1f4994 of _0x113f57)_0x221041['markBlockFormat'](_0x1f4994,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1bb68e}]});});}),_0x221041['descriptionFactory']['registerDescriptionCallback'](_0x5726f8=>{const {data:_0x52d3ff}=_0x5726f8;if(_0x52d3ff&&'blockQuote'==_0x52d3ff['commandName']){const _0x3acef2=o(_0x353588,'ELEMENT_BLOCK_QUOTE');return _0x52d3ff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x353588,'*Set\x20format:*\x20%0',_0x3acef2)}:{'type':'format','content':o(_0x353588,'*Remove\x20format:*\x20%0',_0x3acef2)};}});}}function oo(_0x16b9d9){return'blockQuote'==_0x16b9d9['parent']['name'];}class L extends _0x440856{['afterInit'](){const _0xe6a33f=this['editor'];_0xe6a33f['plugins']['has']('CaseChange')&&(_0xe6a33f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xe6a33f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xe6a33f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x440856{['afterInit'](){const _0x2f4dfb=this['editor'];_0x2f4dfb['commands']['get']('ckbox')&&_0x2f4dfb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x440856{['afterInit'](){const _0x415a27=this['editor'];if(!_0x415a27['plugins']['has']('CodeBlock'))return;const _0x4ee9b=_0x415a27['plugins']['get']('TrackChangesEditing'),_0x29e19d=_0x415a27['locale'],_0x1c4264=_0x415a27['config']['get']('codeBlock')['languages'],_0x508f1d=_0x415a27['commands']['get']('codeBlock');_0x4ee9b['enableCommand']('indentCodeBlock'),_0x4ee9b['enableCommand']('outdentCodeBlock'),_0x4ee9b['enableCommand']('codeBlock',(_0x31e735,_0x51ee7a={})=>{const _0x11cd46=_0x415a27['model'],_0x7b84b2=_0x415a27['model']['document']['selection'],_0x310984=_0x51ee7a&&void 0x0!==_0x51ee7a['forceValue']?_0x51ee7a['forceValue']:!_0x508f1d['value'];let _0x5b3b85;_0x51ee7a['language']||(_0x51ee7a['language']=_0x1c4264[0x0]['language']),_0x5b3b85=_0x310984?Array['from'](_0x7b84b2['getSelectedBlocks']())['filter'](_0x289b4e=>eo(_0x289b4e)||function(_0x3036cd,_0x766a84){if(_0x3036cd['is']('rootElement')||_0x766a84['isLimit'](_0x3036cd))return!0x1;return _0x766a84['checkChild'](_0x3036cd['parent'],'codeBlock');}(_0x289b4e,_0x11cd46['schema'])):Array['from'](_0x7b84b2['getSelectedBlocks']())['filter'](_0x55f9bf=>eo(_0x55f9bf));const _0x1d0bd6=to(_0x5b3b85,_0x11cd46);_0x11cd46['change'](()=>{for(const _0x1f02a2 of _0x1d0bd6)_0x4ee9b['markBlockFormat'](_0x1f02a2,{'commandName':'codeBlock','commandParams':[{..._0x51ee7a,'forceValue':_0x310984}],'formatGroupId':'blockName'});});}),(_0x4ee9b['descriptionFactory']['registerElementLabel']('codeBlock',_0x449319=>o(_0x29e19d,'ELEMENT_CODE_BLOCK',_0x449319)),_0x4ee9b['descriptionFactory']['registerDescriptionCallback'](_0x222914=>{if('formatBlock'!=_0x222914['type'])return;const _0x592c23=_0x29e19d['t'],{data:_0x578a5a}=_0x222914;if(!_0x578a5a||'codeBlock'!=_0x578a5a['commandName'])return;const _0x25b7e3=_0x578a5a['commandParams'][0x0]['language'],_0x341c2b=_0x592c23(_0x1c4264['find'](_0x604c7c=>_0x604c7c['language']===_0x25b7e3)['label'])['toLowerCase']();return _0x578a5a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29e19d,'*Set\x20format:*\x20%0',o(_0x29e19d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x341c2b+')')}:{'type':'format','content':o(_0x29e19d,'*Remove\x20format:*\x20%0',o(_0x29e19d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x57e324){return'codeBlock'==_0x57e324['name'];}class q extends _0x440856{['afterInit'](){const _0x2ba44e=this['editor'];if(!_0x2ba44e['plugins']['has']('CommentsEditing'))return;_0x2ba44e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x298f5d,_0x520291,_0x4af971){const _0x1a9696=[];for(const _0x394908 of _0x520291['getItems']())_0x394908['hasAttribute'](_0x298f5d)&&_0x1a9696['push'](_0x4af971['createRangeOn'](_0x394908));return _0x1a9696;}function _e(_0x55743c,_0x3c9840,{showActiveMarker:_0x4c4844=!0x0}={}){const _0x1d7d22=_0x55743c['plugins']['get']('TrackChangesEditing');return(_0x2ca4dc,_0x54cb62,_0x1bb9ef)=>{if(!_0x1bb9ef['consumable']['test'](_0x54cb62['markerRange'],_0x2ca4dc['name']))return;const _0x51cd4f=_0x54cb62['markerRange']['getWalker'](),_0x37c1d5=_0x54cb62['markerRange']['start'],_0x52b66b=_0x55743c['model']['schema'];let _0x315a6c=null,_0x4e3819=null,_0x442dbd=!0x1,_0x40b75c=!0x1;for(const _0x308f55 of _0x51cd4f){const _0x14cc59=_0x308f55['item'];_0x442dbd=_0x442dbd||_0x52b66b['isContent'](_0x14cc59);const _0x16b56f=_0x1bb9ef['mapper']['toViewElement'](_0x14cc59);if(_0x16b56f&&_0x16b56f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x308f55['type']&&(_0x52b66b['isBlock'](_0x14cc59)&&!_0x52b66b['isLimit'](_0x14cc59)&&(_0x14cc59['nextSibling']||_0x37c1d5['isAtEnd']?_0x315a6c&&_0x315a6c['parent']==_0x14cc59||(_0x315a6c=_0x14cc59,_0xa37e07(_0x308f55['previousPosition']),_0x40b75c=!0x0):_0x4e3819=_0x4e3819||_0x308f55['previousPosition']));}function _0xa37e07(_0x36ef28){const _0x5e3eba=_0x1bb9ef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c9840}),_0x4faddd=_0x1bb9ef['mapper']['toViewPosition'](_0x36ef28);_0x4c4844&&_0x1d7d22['activeMarkers']['includes'](_0x54cb62['markerName'])&&_0x1bb9ef['writer']['addClass']('ck-suggestion-marker--active',_0x5e3eba),_0x1bb9ef['writer']['insert'](_0x4faddd,_0x5e3eba),_0x1bb9ef['mapper']['bindElementToMarker'](_0x5e3eba,_0x54cb62['markerName']);}_0x442dbd||_0x40b75c||!_0x4e3819||_0xa37e07(_0x4e3819);};}class z extends _0x440856{static get['requires'](){return[_0x5bf591];}['init'](){const _0x4cae5d=this['editor'],_0x793b15=_0x4cae5d['plugins']['get']('TrackChangesEditing');_0x793b15['enableCommand']('delete');const _0x1f75ef=_0x4cae5d['commands']['get']('deleteForward');_0x793b15['enableCommand']('deleteForward',(_0x1dcc60,_0x1a159d={})=>{const _0x38932b=_0x4cae5d['model']['createSelection'](_0x4cae5d['model']['document']['selection']);_0x38932b['isCollapsed']&&_0x4cae5d['model']['modifySelection'](_0x38932b,{'direction':'forward','unit':_0x1a159d['unit']});const _0x30e9a4=_0x38932b['getFirstRange'](),_0x21318b=_0x2fd4c8['fromRange'](_0x30e9a4);let _0x44c6d6;_0x1dcc60(_0x1a159d),_0x44c6d6='$graveyard'==_0x21318b['root']['rootName']?_0x4cae5d['model']['createRange'](_0x30e9a4['start']):_0x4cae5d['model']['createRange'](_0x21318b['start'],_0x21318b['end']),_0x21318b['detach'](),_0x4cae5d['model']['enqueueChange'](_0x1f75ef['buffer']['batch'],_0x40d9c2=>{_0x1f75ef['buffer']['lock'](),_0x40d9c2['setSelection'](_0x40d9c2['createRange'](_0x44c6d6['end'])),_0x1f75ef['buffer']['unlock']();});}),_0x4cae5d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4cae5d,'merge'),{'priority':'high'}),_0x4cae5d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5cc79e,_0x54df3d,_0x5f321a)=>{_0x5f321a['options']['showSuggestionHighlights']&&_e(_0x4cae5d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5cc79e,_0x54df3d,_0x5f321a);},{'priority':'high'}),_0x4cae5d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5c3078,_0x1c5df4,_0xba7e44)=>{const _0x54fb9d=_0xba7e44['mapper']['markerNameToElements'](_0x1c5df4['markerName']);if(_0x54fb9d){for(const _0x9c412e of _0x54fb9d)_0x9c412e['is']('uiElement')&&(_0xba7e44['mapper']['unbindElementFromMarkerName'](_0x9c412e,_0x1c5df4['markerName']),_0xba7e44['writer']['remove'](_0x9c412e));}},{'priority':'high'});}}class K extends _0x440856{['afterInit'](){const _0xd23b51=this['editor'];if(!_0xd23b51['plugins']['has']('ListEditing'))return;const _0x2e517c=_0xd23b51['locale'],_0x1f9f5e=_0xd23b51['plugins']['get']('TrackChangesEditing'),_0x2fa27c=_0xd23b51['plugins']['has']('TodoListEditing'),_0x591f5d=!!_0xd23b51['config']['get']('list.multiBlock');function _0x4c2b3e(_0x5066b3){return{'type':'format','content':''+o(_0x2e517c,'*Set\x20format:*\x20%0',_0x5066b3)};}function _0x3da063(_0x2c5eba){return{'type':'format','content':''+o(_0x2e517c,'*Remove\x20format:*\x20%0',_0x2c5eba)};}_0x1f9f5e['enableDefaultAttributesIntegration']('numberedList'),_0x1f9f5e['enableDefaultAttributesIntegration']('bulletedList'),_0x1f9f5e['enableDefaultAttributesIntegration']('customNumberedList'),_0x1f9f5e['enableDefaultAttributesIntegration']('customBulletedList'),_0x1f9f5e['enableDefaultAttributesIntegration']('indentList'),_0x1f9f5e['enableDefaultAttributesIntegration']('outdentList'),_0x1f9f5e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1f9f5e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1f9f5e['registerBlockAttribute']('listItemId'),_0x1f9f5e['registerBlockAttribute']('listType'),_0x1f9f5e['registerBlockAttribute']('listIndent'),_0x591f5d&&(_0x1f9f5e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1f9f5e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2fa27c&&(_0x1f9f5e['enableDefaultAttributesIntegration']('todoList'),_0x1f9f5e['enableDefaultAttributesIntegration']('checkTodoList'),_0x1f9f5e['registerBlockAttribute']('todoListChecked'),_0x1f9f5e['descriptionFactory']['registerDescriptionCallback'](_0x4b0bd1=>{const {data:_0x194e13}=_0x4b0bd1;if(_0x194e13&&'todoListChecked'==_0x194e13['key'])return{'type':'format','content':_0x194e13['newValue']?o(_0x2e517c,'*Check\x20item*'):o(_0x2e517c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x50622f=>{if(_0x50622f['batch']['isUndo'])return!0x1;let _0x5ed3f4=!0x1;const _0x7ed2a9=_0x1f9f5e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22c49c=>'todoListChecked'===_0x1f9f5e['_getAttributeKey'](_0x22c49c));for(const _0x537faf of _0x7ed2a9){'todo'!=_0x537faf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1f9f5e['_findSuggestions'](_0x537faf['getFirstRange'](),'attribute')['find'](_0x328657=>'listType'===_0x1f9f5e['_getAttributeKey'](_0x328657['suggestion']))||(_0x50622f['removeMarker'](_0x537faf['getFirstMarker']()),_0x5ed3f4=!0x0));}return _0x5ed3f4;})),_0x1f9f5e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2e517c,'FORMAT_INDENT'));const _0x29b0d2={'type':'format','content':''};_0x1f9f5e['descriptionFactory']['registerDescriptionCallback'](_0x21fb54=>{const {data:_0x487637}=_0x21fb54;if(!_0x487637||'listType'!=_0x487637['key'])return;let _0x4fa4fd=_0x21fb54['head'];for(;_0x4fa4fd;){if(_0x4fa4fd['data']&&(('listStyle'==_0x4fa4fd['data']['key']||'listMarkerStyle'==_0x4fa4fd['data']['key'])&&(_0x4fa4fd['data']['newValue']&&'default'!=_0x4fa4fd['data']['newValue']||'default'!=_0x4fa4fd['data']['oldValue']&&!_0x487637['newValue'])||!_0x591f5d&&_0x4fa4fd['data']['key']==m))return _0x29b0d2;_0x4fa4fd=_0x4fa4fd['next'];}if(null==_0x487637['newValue'])switch(_0x487637['oldValue']){case'bulleted':return _0x3da063(o(_0x2e517c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3da063(o(_0x2e517c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3da063(o(_0x2e517c,'ELEMENT_TODO_LIST'));}switch(_0x487637['newValue']){case'bulleted':return _0x4c2b3e(o(_0x2e517c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c2b3e(o(_0x2e517c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c2b3e(o(_0x2e517c,'ELEMENT_TODO_LIST'));}}),_0x1f9f5e['descriptionFactory']['registerDescriptionCallback'](_0x537ecb=>{const {data:_0x535fc4}=_0x537ecb;if(_0x535fc4&&'listIndent'==_0x535fc4['key'])return null==_0x535fc4['newValue']||null==_0x535fc4['oldValue']&&0x0==_0x535fc4['newValue']?_0x29b0d2:void 0x0;}),_0x1f9f5e['descriptionFactory']['registerDescriptionCallback'](_0x28cf84=>{if('attribute'!=_0x28cf84['type'])return;const {data:_0x30d9c7}=_0x28cf84;if(!_0x30d9c7||'listItemId'!=_0x30d9c7['key'])return;const _0x175189=Ee(_0x28cf84);return'newValue'==_0x175189?{'type':'format','content':o(_0x2e517c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x175189?{'type':'format','content':o(_0x2e517c,'*Split:*\x20list\x20item')}:_0x29b0d2;}),_0xd23b51['model']['document']['registerPostFixer'](_0x1a506b=>this['listItemIdFixer'](_0x1a506b)),_0xd23b51['model']['document']['registerPostFixer'](_0x181891=>this['noTrackChangesFixer'](_0x181891)),_0xd23b51['model']['document']['on']('change:data',(_0x3e0bc0,_0xbb8e08)=>{if(_0xbb8e08['isUndo']||!_0xbb8e08['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x56926f){if(_0x56926f['batch']['isUndo']||!_0x56926f['batch']['isLocal'])return!0x1;let _0x548df3=!0x1;const _0x855476=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x492fcd=>_0x492fcd['data']&&'listItemId'==_0x492fcd['data']['key'])['filter'](_0x325066=>_0x325066['data']['newValue']&&_0x325066['data']['oldValue']);for(const _0x2ced2b of _0x855476)Ee(_0x2ced2b)||(_0x56926f['removeMarker'](_0x2ced2b['getFirstMarker']()),_0x548df3=!0x0);return _0x548df3;}['noTrackChangesFixer'](_0x475e62){if(_0x475e62['batch']['isUndo']||!_0x475e62['batch']['isLocal'])return!0x1;const _0x3fabcb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3fabcb['trackChangesCommand']['value'])return!0x1;let _0x19dc1d=!0x1;const _0x123dbf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xb4d96b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2ca06a=>'attribute'==_0x2ca06a['type'])['filter'](_0x39ecb6=>_0x123dbf['includes'](_0x39ecb6['attributeKey']));if(0x0==_0xb4d96b['length'])return _0x19dc1d;for(const _0x13004e of _0xb4d96b){const _0x50cac6=_0x3fabcb['_findSuggestions'](_0x13004e['range'],'attribute')['filter'](_0x22c299=>!_0x22c299['meta']['isNextTo'])['map'](_0x37645b=>_0x37645b['suggestion'])['filter'](_0x14e3ee=>{const _0x40e5e7=_0x3fabcb['_getAttributeKey'](_0x14e3ee);return _0x123dbf['includes'](_0x40e5e7);});if(_0x50cac6['length']){for(const _0x428914 of _0x50cac6)_0x475e62['removeMarker'](_0x428914['getFirstMarker']());_0x19dc1d=!0x0;}}return _0x19dc1d;}['assureChains'](){const _0x3981d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30ffb0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1bf40c;const _0x280390=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x191964=>{if(_0x191964['data']['oldRange']||!_0x191964['data']['newRange'])return null;if(!_0x191964['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x44e8f1}=_0x3981d4['_splitMarkerName'](_0x191964['name']);if(!_0x3981d4['hasSuggestion'](_0x44e8f1))return null;const _0x13659e=_0x3981d4['getSuggestion'](_0x44e8f1);return _0x30ffb0['includes'](_0x13659e['data']['key']);})['map'](_0x21c7ed=>{const {id:_0x579fde}=_0x3981d4['_splitMarkerName'](_0x21c7ed['name']),_0x26d949=_0x3981d4['getSuggestion'](_0x579fde);return _0x1bf40c=_0x26d949['attributes']['groupId'],_0x26d949['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x280390['size'])return;const _0x2da84a=_0x3981d4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x311a75=>'attribute'==_0x311a75['type']&&_0x311a75['data']&&_0x30ffb0['includes'](_0x311a75['data']['key'])&&_0x311a75['attributes']['groupId']!=_0x1bf40c)['map'](_0x197627=>({'listItem':_0x197627['getFirstRange']()['start']['nodeAfter'],'groupId':_0x197627['attributes']['groupId']})),_0x57f6db=new Set();for(const {groupId:_0x4e34dc,listItem:_0x3825fb}of _0x2da84a)_0x280390['has'](_0x3825fb)&&_0x57f6db['add'](_0x4e34dc);for(const _0x24d745 of _0x3981d4['getSuggestions']())_0x57f6db['has'](_0x24d745['attributes']['groupId'])&&_0x24d745['setAttribute']('groupId',_0x1bf40c);}['_supportLegacySuggestions'](){const _0x46e289=this['editor'],_0x4fc602=_0x46e289['locale'],_0x39fac4=_0x46e289['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x39fac4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1d23fb,_0x44d584){const _0x5e3a21=[];for(let _0x5f0247 of _0x1d23fb)_0x5f0247['start']['nodeAfter']===_0x5f0247['end']['parent']&&(_0x5f0247=_0x46e289['model']['createRange'](_0x46e289['model']['createPositionAt'](_0x5f0247['start']['nodeAfter'],0x0))),_0x5e3a21['push'](_0x5f0247);_0x46e289['model']['change'](_0x18a812=>{const _0x1295c3=_0x46e289['model']['document']['selection'],_0x39698a=Array['from'](_0x1295c3['getRanges']())['map'](_0x229388=>_0x2fd4c8['fromRange'](_0x229388));_0x18a812['setSelection'](_0x5e3a21),_0x46e289['commands']['get'](_0x44d584['commandName'])['refresh'](),_0x44d584['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46e289['execute'](_0x44d584['commandName'],..._0x44d584['commandParams']),_0x18a812['setSelection'](_0x39698a);for(const _0x17e4c6 of _0x39698a)_0x17e4c6['detach']();});}),_0x39fac4['descriptionFactory']['registerElementLabel'](function(_0x34a904){const _0x3e88ae=!_0x46e289['model']['schema']['isObject'](_0x34a904),_0x5128a9=_0x34a904['previousSibling'],_0x5c10fa=_0x34a904['nextSibling'],_0x45e67c=_0x34a904['getAttribute']('listItemId'),_0x5cc038=!_0x5128a9||_0x5128a9['getAttribute']('listItemId')!==_0x45e67c,_0x173552=!_0x5c10fa||_0x5c10fa['getAttribute']('listItemId')!==_0x45e67c;return _0x3e88ae&&Boolean(_0x45e67c)&&_0x5cc038&&_0x173552;},_0x22fab5=>o(_0x4fc602,'ELEMENT_LIST_ITEM',_0x22fab5));}['_registerLegacyDescription'](){const _0x27164d=this['editor'],_0x1fcb5c=_0x27164d['locale'];function _0x4f1c59(_0x2b3488){const _0x1af086=_0x27164d['commands']['get']('bulletedList')['value'],_0x51a4cc=_0x27164d['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b3488?_0x1af086:_0x51a4cc;}_0x27164d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2725b4){if('formatBlock'!=_0x2725b4['type'])return;const {data:_0xffffdf}=_0x2725b4;if(!_0xffffdf)return;let _0x15f45b,_0x1fd265,_0x19d28d,_0x301433;switch(_0xffffdf['commandName']){case'bulletedList':_0x19d28d=_0xffffdf['commandParams'][0x0]['forceValue'],_0x301433=_0x4f1c59(_0xffffdf['commandName']),_0x15f45b=_0x19d28d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x301433&&_0x27164d['config']['get']('list.multiBlock')||(_0x15f45b='*Change\x20to:*\x20%0'),_0x1fd265={'type':'format','content':o(_0x1fcb5c,_0x15f45b,o(_0x1fcb5c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x19d28d=_0xffffdf['commandParams'][0x0]['forceValue'],_0x301433=_0x4f1c59(_0xffffdf['commandName']),_0x15f45b=_0x19d28d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x301433&&_0x27164d['config']['get']('list.multiBlock')||(_0x15f45b='*Change\x20to:*\x20%0'),_0x1fd265={'type':'format','content':o(_0x1fcb5c,_0x15f45b,o(_0x1fcb5c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x15f45b='*Indent:*\x20%0',_0x1fd265={'type':'format','content':o(_0x1fcb5c,_0x15f45b,o(_0x1fcb5c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x15f45b=function(_0x376ccd){const _0x207070=_0x376ccd['getFirstRange']();let _0x3d500a=_0x207070['start']['nodeAfter'];for(;_0x3d500a&&_0x207070['containsItem'](_0x3d500a);){if(_0x3d500a['getAttribute']('listIndent')>0x0)return!0x1;_0x3d500a=_0x3d500a['nextSibling'];}return!0x0;}(_0x2725b4)?o(_0x1fcb5c,'*Format:*\x20remove\x20from\x20%0',o(_0x1fcb5c,function(_0x1c4600){return'ELEMENT_'+_0x1c4600['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2725b4))):o(_0x1fcb5c,'*Outdent:*\x20%0',o(_0x1fcb5c,'ELEMENT_LIST_ITEM')),_0x1fd265={'type':'format','content':_0x15f45b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xffffdf['multipleBlocks']&&(_0x15f45b='*Merge:*\x20%0',_0x1fd265={'type':'deletion','content':o(_0x1fcb5c,_0x15f45b,o(_0x1fcb5c,'ELEMENT_LIST_ITEM'))});}return _0x1fd265;});}}function Ee(_0x413fca){let _0x1b147c=_0x413fca['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1b147c;){const _0x4fc51c=_0x1b147c['getAttribute']('listItemId');if(!_0x4fc51c)return!0x1;if(_0x4fc51c==_0x413fca['data']['newValue'])return'newValue';if(_0x4fc51c==_0x413fca['data']['oldValue'])return'oldValue';_0x1b147c=_0x1b147c['previousSibling'];}return!0x1;}class pe extends _0x440856{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x17e13c=this['editor']['config']['get']('list.properties'),_0x386372=this['editor']['plugins']['get']('TrackChangesEditing');_0x17e13c['styles']&&(_0x386372['enableDefaultAttributesIntegration']('listStyle'),_0x386372['registerBlockAttribute']('listStyle')),_0x17e13c['reversed']&&(_0x386372['enableDefaultAttributesIntegration']('listReversed'),_0x386372['registerBlockAttribute']('listReversed')),_0x17e13c['startIndex']&&(_0x386372['enableDefaultAttributesIntegration']('listStart'),_0x386372['registerBlockAttribute']('listStart'));const _0x407a64={'type':'format','content':''};_0x386372['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x256479=this['editor']['locale'];_0x386372['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x256479,'FORMAT_LIST_REVERSED')),_0x386372['descriptionFactory']['registerDescriptionCallback'](_0x3157b8=>{const {data:_0x47e41d}=_0x3157b8;if(_0x47e41d&&'listReversed'==_0x47e41d['key'])return null==_0x47e41d['newValue']||0x0==_0x47e41d['newValue']&&null==_0x47e41d['oldValue']?_0x407a64:void 0x0;}),_0x386372['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x256479,'FORMAT_LIST_START')),_0x386372['descriptionFactory']['registerDescriptionCallback'](_0x13261d=>{const {data:_0x53aabd}=_0x13261d;if(_0x53aabd&&'listStart'==_0x53aabd['key'])return null==_0x53aabd['newValue']||0x1==_0x53aabd['newValue']&&null==_0x53aabd['oldValue']?_0x407a64:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x35a020=>{if(_0x35a020['batch']['isUndo'])return!0x1;let _0x14e4e8=!0x1;const _0x589ea9=_0x386372['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42b90c=>{const _0x424797=_0x386372['_getAttributeKey'](_0x42b90c);return'listStart'==_0x424797||'listReversed'==_0x424797;});for(const _0x1c1bca of _0x589ea9){const _0x4de6e3=_0x1c1bca['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4de6e3||'customNumbered'==_0x4de6e3)continue;_0x386372['_findSuggestions'](_0x1c1bca['getFirstRange'](),'attribute')['find'](_0x41a53b=>'listType'==_0x386372['_getAttributeKey'](_0x41a53b['suggestion']))||(_0x35a020['removeMarker'](_0x1c1bca['getFirstMarker']()),_0x14e4e8=!0x0);}return _0x14e4e8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4069e6){const _0x57c6a0=this['editor']['locale'],{data:_0x4efc0a}=_0x4069e6,_0x2567ed={'type':'format','content':''};if(!_0x4efc0a||'listStyle'!=_0x4efc0a['key'])return;if(!_0x4efc0a['oldValue'])return'default'==_0x4efc0a['newValue']?_0x2567ed:{'type':'format','content':''+o(_0x57c6a0,'*Set\x20format:*\x20%0',o(_0x57c6a0,this['_getTranslationKeyForListStyle'](_0x4efc0a['newValue'])))};if(!_0x4efc0a['newValue']){if('default'==_0x4efc0a['oldValue'])return _0x2567ed;let _0x46155d=_0x4069e6['head'];for(;_0x46155d;){if(_0x46155d['data']&&'listType'==_0x46155d['data']['key']&&_0x46155d['data']['newValue'])return _0x2567ed;_0x46155d=_0x46155d['next'];}return{'type':'format','content':''+o(_0x57c6a0,'*Remove\x20format:*\x20%0',o(_0x57c6a0,this['_getTranslationKeyForListStyle'](_0x4efc0a['oldValue'])))};}if('default'!=_0x4efc0a['newValue'])return{'type':'format','content':''+o(_0x57c6a0,'*Set\x20format:*\x20%0',o(_0x57c6a0,this['_getTranslationKeyForListStyle'](_0x4efc0a['newValue'])))};let _0xf8cedb=_0x4069e6['head'];for(;_0xf8cedb;){if(_0xf8cedb['data']&&'listType'==_0xf8cedb['data']['key']&&_0xf8cedb['data']['newValue']&&_0xf8cedb['data']['oldValue'])return _0x2567ed;_0xf8cedb=_0xf8cedb['next'];}return{'type':'format','content':o(_0x57c6a0,'*Set\x20format:*\x20%0',o(_0x57c6a0,'ELEMENT_'+_0x4069e6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x26b03b=this['editor'],_0x4ccda6=_0x26b03b['locale'];_0x26b03b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd37d=>{if('formatBlock'!=_0x2bd37d['type'])return;const {data:_0x2548c6}=_0x2bd37d;if(!_0x2548c6)return;let _0x231382,_0x3a4f70;switch(_0x2548c6['commandName']){case'listStyle':_0x231382='*Change\x20to:*\x20%0',_0x3a4f70={'type':'format','content':o(_0x4ccda6,_0x231382,o(_0x4ccda6,this['_getTranslationKeyForListStyle'](_0x2548c6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x231382=_0x2548c6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a4f70={'type':'format','content':o(_0x4ccda6,_0x231382)};break;case'listStart':_0x231382='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a4f70={'type':'format','content':o(_0x4ccda6,_0x231382,_0x2548c6['commandParams'][0x0]['startIndex'])};}return _0x3a4f70;});}['_getTranslationKeyForListStyle'](_0xe802ff){return'ELEMENT_'+function(_0x55699d){if(ye['includes'](_0x55699d))return'bulleted';if(Se['includes'](_0x55699d))return'numbered';return null;}(_0xe802ff)['toUpperCase']()+'_LIST_'+_0xe802ff['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x440856{static get['requires'](){return[_0x40d05e];}['init'](){const _0x5a32c7=this['editor'],_0x388fb5=_0x5a32c7['plugins']['get']('TrackChangesEditing'),_0x4e46a6=_0x5a32c7['commands']['get']('enter');_0x388fb5['enableCommand']('enter',()=>{_0x5a32c7['model']['change'](_0x4393be=>{const _0x423f7f=_0x5a32c7['model']['document']['selection'],_0x2ed148=_0x423f7f['getFirstPosition'](),_0x5153b5=_0x2fd4c8['fromRange'](_0x423f7f['getFirstRange']());if(_0x4e46a6['enterBlock'](_0x4393be)){const _0x306d90=_0x5a32c7['model']['createPositionAt'](_0x2ed148['parent']['nextSibling'],0x0),_0x9860f6=_0x4393be['createRange'](_0x2ed148,_0x306d90);_0x388fb5['markInsertion'](_0x9860f6);}else _0x4393be['setSelection'](_0x4393be['createRange'](_0x5153b5['end']));_0x5153b5['detach'](),_0x4e46a6['fire']('afterExecute',{'writer':_0x4393be});});}),_0x5a32c7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5a32c7,'split'),{'priority':'high'}),_0x5a32c7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4a22d9,_0x2b6197,_0x129167)=>{const _0x523161=_0x129167['mapper']['markerNameToElements'](_0x2b6197['markerName']);if(_0x523161){for(const _0x1f85e0 of _0x523161)_0x1f85e0['hasClass']('ck-suggestion-marker-split')&&(_0x129167['mapper']['unbindElementFromMarkerName'](_0x1f85e0,_0x2b6197['markerName']),_0x129167['writer']['remove'](_0x1f85e0));}},{'priority':'high'}),_0x5a32c7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b59dd,_0x5c72bd,_0x21e37d)=>{_0x21e37d['options']['showSuggestionHighlights']&&_e(_0x5a32c7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1b59dd,_0x5c72bd,_0x21e37d);},{'priority':'high'});}}class X extends _0x440856{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x510f9f=this['editor']['plugins']['get']('TrackChangesEditing');_0x510f9f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x510f9f['enableCommand']('findNext'),_0x510f9f['enableCommand']('findPrevious'),_0x510f9f['enableCommand']('replace'),_0x510f9f['enableCommand']('replaceAll');}['handleFindCommand'](_0x24a4f6,_0x508979,_0x2a51e1={}){const _0x487ebe=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x24a4f6(_0x43ff05=>{let _0x441dca=('string'==typeof _0x508979?_0x487ebe['findByTextCallback'](_0x508979,_0x2a51e1):_0x508979)(_0x43ff05);Array['isArray'](_0x441dca)&&(_0x441dca={'results':_0x441dca,'searchText':'string'==typeof _0x508979?_0x508979:''});const _0x2f9c4f=_0x441dca['results']['filter'](_0x1a631c=>!0x1===this['_isInDeletionRange'](_0x1a631c,_0x43ff05['item']));return{..._0x441dca,'results':_0x2f9c4f};},_0x2a51e1);}['_isInDeletionRange'](_0x2661f1,_0x5ae247){const _0x25fbad=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ae247,_0x2661f1['start']),this['editor']['model']['createPositionAt'](_0x5ae247,_0x2661f1['end']));for(const _0x3c67b3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25fbad['getIntersection'](_0x3c67b3['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 _0x440856{['afterInit'](){const _0x39449f=this['editor']['locale'],_0x245e81=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2489fe,commandName:_0x339987}of ro)this['editor']['plugins']['has'](_0x2489fe)&&(_0x245e81['enableDefaultAttributesIntegration'](_0x339987),_0x245e81['registerInlineAttribute'](_0x339987));_0x245e81['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39449f,'FORMAT_FONT_SIZE')),_0x245e81['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39449f,'FORMAT_FONT_FAMILY')),_0x245e81['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39449f,'FORMAT_FONT_COLOR')),_0x245e81['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39449f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45e2c5=this['editor'],_0x369a84=_0x45e2c5['locale'];_0x45e2c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5aebf9=>{const _0x302700=_0x369a84['t'];if('formatInline'!=_0x5aebf9['type'])return;const {data:_0x41aad0}=_0x5aebf9;if(null!=_0x41aad0){if('fontSize'==_0x41aad0['commandName']){const _0x1d53af=_0x41aad0['commandParams'][0x0]['value'];if(_0x1d53af){const _0x73d31e=_0x302700(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12f375=>_0x12f375['model']==_0x1d53af)['title'])['toLowerCase']();return{'type':'format','content':o(_0x369a84,'*Set\x20font\x20size:*\x20%0',_0x73d31e)};}return{'type':'format','content':o(_0x369a84,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x41aad0['commandName']){const _0x5ea496=_0x41aad0['commandParams'][0x0]['value'];return _0x5ea496?{'type':'format','content':o(_0x369a84,'*Set\x20font\x20family:*\x20%0',_0x5ea496)}:{'type':'format','content':o(_0x369a84,'*Reset\x20font\x20family*')};}if('fontColor'==_0x41aad0['commandName']){const _0x4905c4=_0x41aad0['commandParams'][0x0]['value'];if(_0x4905c4){const _0x23f8d4=_0x5dd7b5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e7262=>_0x3e7262['model']==_0x4905c4);let _0x4870e6=_0x4905c4,_0x4aceca='';return _0x23f8d4&&(_0x4870e6=_0x23f8d4['label'],_0x4aceca=_0x302700(_0x4870e6)['toLowerCase']()),{'type':'format','content':o(_0x369a84,'*Set\x20font\x20color:*\x20%0',_0x4aceca)['trim'](),'color':{'value':_0x4905c4,'title':_0x4aceca||_0x4870e6}};}return{'type':'format','content':o(_0x369a84,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x41aad0['commandName']){const _0x7753e6=_0x41aad0['commandParams'][0x0]['value'];if(_0x7753e6){const _0x2f285c=_0x5dd7b5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4dac14=>_0x4dac14['model']==_0x7753e6);let _0x1a1f5c=_0x7753e6,_0x40b11a='';return _0x2f285c&&(_0x1a1f5c=_0x2f285c['label'],_0x40b11a=_0x302700(_0x1a1f5c)['toLowerCase']()),{'type':'format','content':o(_0x369a84,'*Set\x20font\x20background\x20color:*\x20%0',_0x40b11a)['trim'](),'color':{'value':_0x7753e6,'title':_0x40b11a||_0x1a1f5c}};}return{'type':'format','content':o(_0x369a84,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x440856{['afterInit'](){const _0x321f3e=this['editor'],_0x1b064b=_0x321f3e['plugins']['get']('TrackChangesEditing'),_0x356489=_0x321f3e['commands']['get']('copyFormat'),_0x448b08=_0x321f3e['commands']['get']('pasteFormat');_0x356489&&_0x448b08&&(_0x1b064b['enableDefaultAttributesIntegration']('pasteFormat'),_0x1b064b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x12d513=this['editor'],_0x368e34=_0x12d513['locale'];_0x12d513['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e6e08=>{if('formatBlock'!=_0x4e6e08['type']&&'formatInline'!=_0x4e6e08['type'])return;const {data:_0x285b2c}=_0x4e6e08;if(_0x285b2c&&'pasteFormat'===_0x285b2c['commandName']){const _0x899d47=[],_0x5ce68c=_0x285b2c['commandParams'][0x0];for(const [_0x155ff0,_0xa189ff]of Object['entries'](_0x5ce68c))_0x899d47['push'](so(_0x12d513,_0x155ff0,_0xa189ff));return _0x899d47['length']?{'type':'format','content':o(_0x368e34,'*Set\x20format\x20to:*\x20%0',_0x899d47['join'](',\x20'))}:{'type':'format','content':o(_0x368e34,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3fbf5d,_0x42fc36,_0x3bd5ef){const _0x358746=_0x3fbf5d['locale']['t'],_0x23a7c0=_0x42fc36['split'](/(?=[A-Z])/)['join']('\x20'),_0x4bd5b4=_0x358746(_0x23a7c0['charAt'](0x0)['toUpperCase']()+_0x23a7c0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3bd5ef)return _0x4bd5b4;if('fontColor'===_0x42fc36||'fontBackgroundColor'===_0x42fc36){const _0x53ebde=_0x5dd7b5(_0x3fbf5d['config']['get']('fontColor.colors'))['find'](_0x4efb38=>_0x4efb38['model']==_0x3bd5ef);return _0x4bd5b4+'\x20('+(_0x53ebde?_0x358746(_0x53ebde['label'])['toLowerCase']():_0x3bd5ef)+')';}if('fontSize'===_0x42fc36&&isNaN(parseFloat(_0x3bd5ef))){const _0x30ec02=_0x3fbf5d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3fbf5d['config']['get']('fontSize.options'))['find'](_0x2c7ff4=>_0x2c7ff4['model']==_0x3bd5ef);return _0x4bd5b4+'\x20('+(_0x30ec02?_0x358746(_0x30ec02['title'])['toLowerCase']():_0x3bd5ef)+')';}return _0x4bd5b4+'\x20('+_0x3bd5ef+')';}class tt extends _0x440856{['_headingOptions'];['afterInit'](){const _0x2b6ddc=this['editor'];if(!_0x2b6ddc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2b6ddc['config']['get']('heading.options');const _0x2ef56b=_0x2b6ddc['locale'],_0x417d18=_0x2b6ddc['plugins']['get']('TrackChangesEditing');_0x417d18['enableDefaultAttributesIntegration']('heading');for(const _0x371d4e of this['_headingOptions'])'paragraph'!=_0x371d4e['model']&&_0x417d18['descriptionFactory']['registerElementLabel'](_0x371d4e['model'],_0x224a98=>{const _0x348cce=this['_getHeadingLevel'](_0x371d4e['model']);return null!==_0x348cce?_0x5e12ce(_0x224a98,_0x348cce):_0x37d9c4(_0x224a98,_0x371d4e['title']);});function _0x5e12ce(_0x2aa504,_0x3320f1){return o(_0x2ef56b,'ELEMENT_HEADING',[_0x2aa504,_0x3320f1]);}function _0x37d9c4(_0x2c5f95,_0x408965){return o(_0x2ef56b,'ELEMENT_HEADING_CUSTOM',[_0x2c5f95,_0x408965]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x103670=this['editor'],_0x5090ba=_0x103670['locale'];function _0x3c8729(_0x256323,_0x324426){return o(_0x5090ba,'ELEMENT_HEADING_CUSTOM',[_0x256323,_0x324426]);}_0x103670['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x125bc0=>{if('formatBlock'!=_0x125bc0['type'])return;const {data:_0x251a54}=_0x125bc0;if(_0x251a54&&'heading'==_0x251a54['commandName']){const _0x4e0a7f=_0x251a54['commandParams'][0x0]['value'],_0x298b85=this['_getHeadingLevel'](_0x4e0a7f);if(null!==_0x298b85)return{'type':'format','content':o(_0x5090ba,'*Change\x20to:*\x20%0',(_0x28fe42=0x1,_0x33abc2=_0x298b85,o(_0x5090ba,'ELEMENT_HEADING',[_0x28fe42,_0x33abc2])))};const _0x445f1f=this['_headingOptions']['find'](_0x203288=>_0x203288['model']===_0x4e0a7f)['title'];return{'type':'format','content':o(_0x5090ba,'*Change\x20to:*\x20%0',_0x3c8729(0x1,_0x445f1f))};}var _0x28fe42,_0x33abc2;});}['_getHeadingLevel'](_0x49909c){const _0x171d8b=_0x49909c['match'](/^heading(\d+)/);if(_0x171d8b)return _0x171d8b[0x1];const _0x29ea02=this['_headingOptions']?.['find'](_0x26d075=>_0x26d075['model']==_0x49909c);if(_0x29ea02&&_0x29ea02['view']){const _0xf89a48=_0x29ea02['view'],_0x1924de=(_0xf89a48['name']??_0xf89a48)['match'](/^h(\d+)/);if(_0x1924de)return _0x1924de[0x1];}return null;}}class et extends _0x440856{['afterInit'](){const _0x2bf8aa=this['editor'];if(!_0x2bf8aa['plugins']['has']('HighlightEditing'))return;const _0x5f4e8a=_0x2bf8aa['plugins']['get']('TrackChangesEditing'),_0x29bd94=_0x2bf8aa['locale'];_0x5f4e8a['enableDefaultAttributesIntegration']('highlight'),_0x5f4e8a['registerInlineAttribute']('highlight'),_0x5f4e8a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x29bd94,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59cba4=this['editor'],_0x13426d=_0x59cba4['locale'];_0x59cba4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e796b=>{if('formatInline'!=_0x4e796b['type'])return;const {data:_0x24e074}=_0x4e796b;if(_0x24e074&&'highlight'==_0x24e074['commandName']){const _0x5f40cf=_0x13426d['t'],_0x6b98a7=_0x24e074['commandParams'][0x0]['value'];if(_0x6b98a7){const _0x22a1f4=_0x59cba4['config']['get']('highlight.options')['find'](_0x3134a1=>_0x3134a1['model']==_0x6b98a7),_0x539ed3=_0x5f40cf(_0x22a1f4['title'])['toLowerCase']();return{'type':'format','content':o(_0x13426d,'*Set\x20highlight:*\x20%0',_0x539ed3),'color':{'value':_0x22a1f4['color'],'title':_0x22a1f4['title']}};}return{'type':'format','content':o(_0x13426d,'*Remove\x20highlight*',o(_0x13426d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x440856{['afterInit'](){const _0x40ac8c=this['editor'];if(!_0x40ac8c['plugins']['has']('HorizontalLineEditing'))return;_0x40ac8c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2979ac=_0x40ac8c['plugins']['get']('TrackChangesEditing'),_0x15c0cd=_0x40ac8c['locale'];_0x2979ac['descriptionFactory']['registerElementLabel']('horizontalLine',_0x38d948=>o(_0x15c0cd,'ELEMENT_HORIZONTAL_LINE',_0x38d948)),_0x40ac8c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x7cdb45,{writer:_0x1e47a8,options:_0x395965})=>{if(!_0x395965['showSuggestionHighlights'])return null;const _0x42daaa=_0x1e47a8['createContainerElement']('div'),_0x480489=_0x1e47a8['createEmptyElement']('hr');return _0x1e47a8['addClass']('ck-horizontal-line',_0x42daaa),_0x1e47a8['insert'](_0x1e47a8['createPositionAt'](_0x42daaa,0x0),_0x480489),_0x42daaa;},'converterPriority':'high'});}}class st extends _0x440856{['afterInit'](){const _0x3aca41=this['editor'];if(!_0x3aca41['plugins']['has']('HtmlEmbed'))return;const _0x1703e5=_0x3aca41['plugins']['get']('TrackChangesEditing'),_0x4cbeab=_0x3aca41['locale'];_0x1703e5['descriptionFactory']['registerElementLabel']('rawHtml',_0x187a09=>o(_0x4cbeab,'ELEMENT_HTML_EMBED',_0x187a09)),_0x1703e5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1703e5['registerBlockAttribute']('value'),_0x1703e5['descriptionFactory']['registerDescriptionCallback'](_0x2c6f2f=>{if('attribute'!=_0x2c6f2f['type'])return;const {data:_0x2c16e9}=_0x2c6f2f;if(_0x2c16e9&&'value'==_0x2c16e9['key']&&_0x2c6f2f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18fcd1=o(_0x4cbeab,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cbeab,'*Change\x20%0\x20content*',_0x18fcd1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24f67e=this['editor'],_0x4befbd=_0x24f67e['locale'];_0x24f67e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ddfa4=>{if('formatBlock'!=_0x5ddfa4['type'])return;const {data:_0x25b03c}=_0x5ddfa4;if(_0x25b03c&&'htmlEmbed'==_0x25b03c['commandName']){const _0x276d22=o(_0x4befbd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4befbd,'*Change\x20%0\x20content*',_0x276d22)};}});}}class nt extends _0x440856{['afterInit'](){const _0x8a6cdb=this['editor'];if(!_0x8a6cdb['plugins']['has']('ImageEditing'))return;const _0x1dd790=_0x8a6cdb['plugins']['get']('TrackChangesEditing'),_0x246a9e=_0x8a6cdb['plugins']['get']('ImageUtils'),_0x28d53b=_0x8a6cdb['locale'];_0x1dd790['enableCommand']('insertImage'),_0x1dd790['descriptionFactory']['registerElementLabel']('imageBlock',_0x32f676=>o(_0x28d53b,'ELEMENT_IMAGE',_0x32f676)),_0x1dd790['descriptionFactory']['registerElementLabel']('imageInline',_0x2871bd=>o(_0x28d53b,'ELEMENT_INLINE_IMAGE',_0x2871bd)),_0x1dd790['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x28d53b,'ELEMENT_CAPTION')),_0x8a6cdb['plugins']['has']('ImageUploadEditing')&&_0x1dd790['enableCommand']('uploadImage'),_0x8a6cdb['plugins']['has']('ImageBlockEditing')&&_0x8a6cdb['plugins']['has']('ImageInlineEditing')&&(_0x1dd790['enableCommand']('imageTypeInline',(_0x2717b5,_0x3fd104)=>{const _0x2c79b9=_0x246a9e['getClosestSelectedImageElement'](_0x8a6cdb['model']['document']['selection']);_0x8a6cdb['model']['change'](()=>{_0x1dd790['markBlockFormat'](_0x2c79b9,{'commandName':'imageTypeInline','commandParams':[_0x3fd104]},[],'convertBlockImageToInline');});}),_0x1dd790['enableCommand']('imageTypeBlock',(_0x3019d0,_0xe2078e)=>{_0x8a6cdb['model']['change'](_0x520d4b=>{let _0x3729b5=_0x246a9e['getClosestSelectedImageElement'](_0x8a6cdb['model']['document']['selection']),_0x137faf=_0x520d4b['createRangeOn'](_0x3729b5);const _0x10b2de=_0x5917f6['fromPosition'](_0x137faf['start'],'toPrevious'),_0x21e4ca=_0x5917f6['fromPosition'](_0x137faf['end'],'toNext');_0x1dd790['forceDefaultExecution'](()=>_0x3019d0(_0xe2078e)),_0x3729b5=_0x246a9e['getClosestSelectedImageElement'](_0x8a6cdb['model']['document']['selection']),_0x137faf=_0x520d4b['createRangeOn'](_0x3729b5);const _0x24a410=_0x520d4b['createRange'](_0x10b2de,_0x21e4ca);_0x10b2de['detach'](),_0x21e4ca['detach'](),_0x1dd790['markBlockFormat'](_0x3729b5,{'commandName':'imageTypeInline','commandParams':[_0xe2078e]},[],'convertInlineImageToBlock'),_0x24a410['start']['isBefore'](_0x137faf['start'])&&_0x1dd790['markInsertion'](_0x520d4b['createRange'](_0x24a410['start'],_0x137faf['start']),'convertInlineImageToBlock'),_0x137faf['end']['isBefore'](_0x24a410['end'])&&_0x1dd790['markInsertion'](_0x520d4b['createRange'](_0x137faf['end'],_0x24a410['end']),'convertInlineImageToBlock');});}),_0x1dd790['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1dd790['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1dd790['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1dd790['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1dd790['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1dd790['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4d9e95])=>{const _0x6419=_0x1dd790['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1bee56=_0x4d9e95['start'],_0xe099e8=_0x4d9e95['end'];const _0x18e073=_0x8a6cdb['model']['schema']['getNearestSelectionRange'](_0x1bee56,'backward'),_0x4f07e4=_0x8a6cdb['model']['schema']['getNearestSelectionRange'](_0xe099e8,'forward');_0x18e073['isCollapsed']&&(_0x1bee56=_0x18e073['start']),_0x4f07e4['isCollapsed']&&(_0xe099e8=_0x4f07e4['end']),_0x6419([_0x8a6cdb['model']['createRange'](_0x1bee56,_0xe099e8)]);}),_0x1dd790['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x34eeb9),_0x1dd790['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x34eeb9)),_0x8a6cdb['plugins']['has']('ImageCaptionEditing')&&(_0x1dd790['enableCommand']('toggleImageCaption',(_0x281431,_0x1e79f4)=>{const _0xb34fe=_0x8a6cdb['plugins']['get']('ImageCaptionUtils');let _0xb11273=_0x246a9e['getClosestSelectedImageElement'](_0x8a6cdb['model']['document']['selection']),_0x220ef2=_0xb34fe['getCaptionFromImageModelElement'](_0xb11273);_0x8a6cdb['model']['change'](()=>{if(_0x220ef2)return void _0x1dd790['markDeletion'](_0x8a6cdb['model']['createRangeOn'](_0x220ef2));const _0x21cca5=_0x246a9e['isBlockImage'](_0xb11273);_0x281431(_0x1e79f4),_0xb11273=_0x246a9e['getClosestSelectedImageElement'](_0x8a6cdb['model']['document']['selection']),_0x220ef2=_0xb34fe['getCaptionFromImageModelElement'](_0xb11273),_0x1dd790['markInsertion'](_0x8a6cdb['model']['createRangeOn'](_0x220ef2),_0x21cca5?null:'imageCaption');});}),_0x1dd790['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x34eeb9));const _0x31e4b3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x170261(_0x2f562f,_0x2132da){const _0x5c5200=_0x31e4b3['findIndex'](({type:_0x4d1e7f,subType:_0x42b714})=>_0x2f562f['type']==_0x4d1e7f&&_0x2f562f['subType']==_0x42b714),_0xe0b944=_0x31e4b3['findIndex'](({type:_0x258641,subType:_0x11b1f0})=>_0x2132da['type']==_0x258641&&_0x2132da['subType']==_0x11b1f0);if(_0x5c5200<0x0||_0xe0b944<0x0)return!0x1;const _0x3d89d7=_0x2f562f['getFirstRange'](),_0x294990=_0x2132da['getFirstRange']();if((0x0==_0x5c5200||0x1==_0x5c5200)&&0x2==_0xe0b944&&_0x3d89d7['isIntersecting'](_0x294990))return!0x0;if(0x2==_0x5c5200&&0x3==_0xe0b944){const _0xa4b8d9=_0x1dd790['_findSuggestions'](_0x3d89d7,'insertion')['filter'](({suggestion:_0x241baa,meta:_0x5e02dc})=>_0x5e02dc['isOwn']&&'convertInlineImageToBlock'==_0x241baa['subType']);if(_0xa4b8d9['length']>0x1&&_0x294990['end']['isEqual'](_0x3d89d7['start']))return!0x0;if(0x1==_0xa4b8d9['length']&&(_0x3d89d7['start']['isEqual'](_0x294990['end'])||_0x3d89d7['end']['isEqual'](_0x294990['start'])))return!0x0;}if(0x3==_0x5c5200&&0x3==_0xe0b944&&_0x3d89d7['start']['isBefore'](_0x294990['start'])){const _0x5927e9=_0x3d89d7['end']['nodeAfter'],_0x56bb74=_0x294990['start']['nodeBefore'];return _0x246a9e['isBlockImage'](_0x5927e9)&&_0x5927e9===_0x56bb74;}return!0x1;}function _0x34eeb9(_0x1369d7,_0x36f292){return _0x170261(_0x1369d7,_0x36f292)?[_0x1369d7,_0x36f292]:_0x170261(_0x36f292,_0x1369d7)?[_0x36f292,_0x1369d7]:null;}_0x8a6cdb['plugins']['has']('ImageResize')&&(_0x1dd790['enableDefaultAttributesIntegration']('resizeImage'),_0x1dd790['registerBlockAttribute']('resizedWidth'),_0x1dd790['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x28d53b,'FORMAT_IMAGE_SIZE'))),_0x8a6cdb['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1dd790['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1dd790['registerBlockAttribute']('alt')),_0x1dd790['descriptionFactory']['registerDescriptionCallback'](_0x50c7ea=>{if(!!_0x31e4b3['find'](({type:_0x5870d5,subType:_0x277f00})=>_0x50c7ea['type']==_0x5870d5&&_0x50c7ea['subType']==_0x277f00))return _0x50c7ea['previous']?{}:void 0x0;}),_0x1dd790['descriptionFactory']['registerDescriptionCallback'](_0x5b21c5=>{if('insertion'==_0x5b21c5['type']||'deletion'==_0x5b21c5['type']){const _0x141247=_0x5b21c5['getContainedElement']();if(_0x141247&&_0x141247['is']('element','caption'))return{'type':'insertion'==_0x5b21c5['type']?'addObject':'removeObject','element':_0x141247,'quantity':0x1};}}),_0x1dd790['descriptionFactory']['registerDescriptionCallback'](_0x27ba82=>'formatBlock'==_0x27ba82['type']&&'convertInlineImageToBlock'==_0x27ba82['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x27ba82['type']&&'convertBlockImageToInline'==_0x27ba82['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1dd790['descriptionFactory']['registerDescriptionCallback'](_0x2d916e=>{if('attribute'!=_0x2d916e['type'])return;const {data:_0xf1bce6}=_0x2d916e;if(!_0xf1bce6||'alt'!=_0xf1bce6['key'])return;const _0x5a403f=_0xf1bce6['newValue'];return _0x5a403f?{'type':'format','content':o(_0x28d53b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a403f+'\x22')}:{'type':'format','content':o(_0x28d53b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b1139=this['editor'],_0x94d382=_0x1b1139['locale'];_0x1b1139['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x243226=>{if('formatBlock'!=_0x243226['type']&&'formatInline'!=_0x243226['type'])return;const {data:_0xa26e2b}=_0x243226;if(_0xa26e2b){if('imageTextAlternative'==_0xa26e2b['commandName']){const _0x582f66=_0xa26e2b['commandParams'][0x0]['newValue'];return _0x582f66?{'type':'format','content':o(_0x94d382,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x582f66+'\x22')}:{'type':'format','content':o(_0x94d382,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xa26e2b['commandName']){const _0xe88a38=_0xa26e2b['commandParams'][0x0]['width'];return _0xe88a38?{'type':'format','content':o(_0x94d382,'*Set\x20image\x20width:*\x20%0',_0xe88a38)}:{'type':'format','content':o(_0x94d382,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x440856{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2fa4a9=this['editor']['locale'],_0x4cc6a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4cc6a5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4cc6a5['registerBlockAttribute']('src'),_0x4cc6a5['descriptionFactory']['registerDescriptionCallback'](_0x2e5841=>{if('attribute'!=_0x2e5841['type'])return;const {data:_0x2a3e24}=_0x2e5841;return _0x2a3e24&&'src'==_0x2a3e24['key']?_0x2a3e24['newValue']&&_0x2a3e24['oldValue']?{'type':'format','content':o(_0x2fa4a9,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45d543=this['editor']['plugins']['get']('TrackChangesEditing');_0x45d543['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x45d543['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45d543['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x45d543['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cbeb9=this['editor'],_0x5b5960=_0x4cbeb9['locale'];_0x4cbeb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x452fe7=>{if('formatBlock'!=_0x452fe7['type']&&'formatInline'!=_0x452fe7['type'])return;const {data:_0x136747}=_0x452fe7;if(!_0x136747||'replaceImageSource'!=_0x136747['commandName'])return;return{'type':'format','content':o(_0x5b5960,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x440856{['afterInit'](){const _0x275aeb=this['editor'];if(!_0x275aeb['plugins']['has']('ImageStyleEditing'))return;const _0x4e4372=_0x275aeb['plugins']['get']('TrackChangesEditing'),_0x24ff9e=_0x275aeb['plugins']['get']('ImageUtils'),_0x56cf6a={};_0x4e4372['enableCommand']('imageStyle',(_0x116d35,_0x35e2a7)=>{const _0x1c3f8f=_0x275aeb['plugins']['get']('Users')['me'],_0x2225b8=_0x275aeb['commands']['get']('imageStyle');let _0x1f24a4=_0x24ff9e['getClosestSelectedImageElement'](_0x275aeb['model']['document']['selection']),_0x325f79=_0x275aeb['model']['createRangeOn'](_0x1f24a4),_0x4f4ccd=_0x2225b8['value'];if(_0x4f4ccd==_0x35e2a7['value'])return;const _0x28d2e8={'commandName':'imageStyle','commandParams':[_0x35e2a7],'formatGroupId':_0x3415dc()};_0x275aeb['model']['change'](()=>{if(_0x4e4372['getSuggestions']()['filter'](_0x29a6ff=>_0x29a6ff['isInContent']&&_0x1c3f8f==_0x29a6ff['author']&&('formatBlock'==_0x29a6ff['type']||'formatInline'==_0x29a6ff['type'])&&('imageStylePreApply'==_0x29a6ff['subType']||'imageStylePostApply'==_0x29a6ff['subType'])&&_0x29a6ff['getFirstRange']()['isEqual'](_0x325f79))['forEach'](_0x3c73d8=>_0x4e4372['discardSuggestion'](_0x3c73d8['head'])),_0x1f24a4=_0x24ff9e['getClosestSelectedImageElement'](_0x275aeb['model']['document']['selection']),_0x325f79=_0x275aeb['model']['createRangeOn'](_0x1f24a4),_0x2225b8['refresh'](),_0x275aeb['commands']['get']('imageTypeInline')['refresh'](),_0x275aeb['commands']['get']('imageTypeBlock')['refresh'](),_0x4f4ccd=_0x2225b8['value'],_0x4f4ccd!=_0x35e2a7['value'])return _0x24ff9e['isInlineImage'](_0x1f24a4)&&_0x2225b8['shouldConvertImageType'](_0x35e2a7['value'],_0x1f24a4)?(_0x116d35({..._0x35e2a7,'setImageSizes':!0x1}),_0x1f24a4=_0x24ff9e['getClosestSelectedImageElement'](_0x275aeb['model']['document']['selection']),void _0x4e4372['markBlockFormat'](_0x1f24a4,{..._0x28d2e8,'commandReversedParams':[{'value':_0x4f4ccd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x24ff9e['isBlockImage'](_0x1f24a4)?_0x4e4372['markBlockFormat'](_0x1f24a4,_0x28d2e8,[],'imageStylePostApply'):_0x4e4372['markInlineFormat'](_0x325f79,_0x28d2e8,'imageStylePostApply'));});});for(const _0xc5df27 of _0x275aeb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x56cf6a[_0xc5df27['name']]=_0xc5df27['title']['toLowerCase']();_0x4e4372['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e4372['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e4372['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e4372['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x53d9c6])=>{_0x24ff9e['setImageNaturalSizeAttributes'](_0x53d9c6['getContainedElement']());}),_0x4e4372['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4258eb,_0x474dcb)=>{_0x4e4372['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4258eb,{'commandName':_0x474dcb['commandName'],'commandParams':_0x474dcb['commandReversedParams']});}),_0x4e4372['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x259012,_0x390172){if(_0x37a9f8(_0x259012,_0x390172))return[_0x259012,_0x390172];if(_0x37a9f8(_0x390172,_0x259012))return[_0x390172,_0x259012];return null;});const _0x2b7119=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x37a9f8(_0x562886,_0x36c78f){const _0x18db77=_0x2b7119['findIndex'](({type:_0x322f49,subType:_0x46a2d8})=>_0x562886['type']==_0x322f49&&_0x562886['subType']==_0x46a2d8),_0x2cd465=_0x2b7119['findIndex'](({type:_0xfa99f5,subType:_0xd1b0c1})=>_0x36c78f['type']==_0xfa99f5&&_0x36c78f['subType']==_0xd1b0c1);if(_0x18db77<0x0||_0x2cd465<0x0)return!0x1;const _0x291d63=_0x562886['getFirstRange'](),_0x35414b=_0x36c78f['getFirstRange']();if((0x0==_0x18db77||0x1==_0x18db77)&&0x2==_0x2cd465&&_0x291d63['isIntersecting'](_0x35414b))return!0x0;if(0x2==_0x18db77&&0x3==_0x2cd465){const _0x35bb3b=_0x4e4372['_findSuggestions'](_0x291d63,'insertion')['filter'](({suggestion:_0x3dc611,meta:_0x757407})=>_0x757407['isOwn']&&'convertInlineImageToBlock'==_0x3dc611['subType']);if(_0x35bb3b['length']>0x1&&_0x35414b['end']['isEqual'](_0x291d63['start']))return!0x0;if(0x1==_0x35bb3b['length']&&(_0x291d63['start']['isEqual'](_0x35414b['end'])||_0x291d63['end']['isEqual'](_0x35414b['start'])))return!0x0;}if(0x3==_0x18db77&&0x3==_0x2cd465&&_0x291d63['start']['isBefore'](_0x35414b['start'])){const _0x1c6278=_0x291d63['end']['nodeAfter'],_0x27b4e1=_0x35414b['start']['nodeBefore'];return _0x24ff9e['isBlockImage'](_0x1c6278)&&_0x1c6278===_0x27b4e1;}return!0x1;}_0x275aeb['model']['document']['registerPostFixer'](()=>{let _0x228751=!0x1;const _0x5eb633=Array['from'](_0x275aeb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bae5c,data:_0x520ff3}of _0x5eb633){const {group:_0x22db9c,type:_0x1feb00,subType:_0x168461,id:_0x47d84e}=_0x4e4372['_splitMarkerName'](_0x5bae5c);if('suggestion'==_0x22db9c&&_0x4e4372['hasSuggestion'](_0x47d84e)){if('formatBlock'==_0x1feb00&&('imageStylePreApply'==_0x168461||'imageStylePostApply'==_0x168461)){const _0x34533b=_0x4e4372['getSuggestion'](_0x47d84e);if(_0x520ff3['newRange']){const _0x1b1206=_0x34533b['getFirstRange']()['getContainedElement']();if(_0x24ff9e['isBlockImage'](_0x1b1206))continue;_0x4e4372['discardSuggestion'](_0x34533b),_0x228751=!0x0;}}if('insertion'==_0x1feb00&&'imageCaption'==_0x168461&&!_0x520ff3['newRange']){const _0x56bec9=_0x4e4372['getSuggestion'](_0x47d84e);_0x56bec9['next']&&_0x56bec9['next']['isInContent']&&(_0x4e4372['discardSuggestion'](_0x56bec9['next']),_0x228751=!0x0);}}}return _0x228751;}),this['_registerLegacyDescription'](_0x56cf6a);}['_registerLegacyDescription'](_0x212766){const _0x530abe=this['editor'],_0x5d3441=_0x530abe['locale'];_0x530abe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf694c3=>{if('formatBlock'!=_0xf694c3['type']&&'formatInline'!=_0xf694c3['type'])return;const {data:_0x2262ab}=_0xf694c3;if(!_0x2262ab||'imageStyle'!=_0x2262ab['commandName'])return;const _0x31eb01=_0x2262ab['commandParams'][0x0]['value'];return _0x5911db('side'===_0x31eb01?o(_0x5d3441,'FORMAT_SIDE_IMAGE'):_0x212766[_0x31eb01]||_0x31eb01);function _0x5911db(_0x30488e){return{'type':'format','content':o(_0x5d3441,'*Format:*\x20%0',_0x30488e)};}});}}class at extends _0x440856{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x80ca5f){super(_0x80ca5f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3e6a61=this['editor'],_0x1ca5a6=_0x3e6a61['commands']['get']('importWord'),_0x52bbee=_0x3e6a61['commands']['get']('trackChanges');_0x1ca5a6&&(_0x1ca5a6['on']('execute',(_0x1c92ea,[,_0x367fda])=>{this['_trackChangesValueDuringImport']=_0x52bbee['value'],_0x367fda['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ca5a6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ca5a6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x52bbee['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3e6a61['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2f81b5,_0x4b1a1f){const {suggestions:_0x1d03f5}=_0x4b1a1f,_0x198ec9=this['editor']['commands']['get']('trackChanges'),_0x4ec27d=_0x198ec9['value'];this['_trackChangesValueDuringImport']!==_0x4ec27d&&(_0x198ec9['execute'](),this['_trackChangesExecuted']=!0x0),_0x1d03f5&&_0x1d03f5['forEach'](({id:_0x21cbf4,type:_0x43eaa8,author:_0xd746ed,created_at:_0xc7e702})=>{const _0x199a48={'id':_0x21cbf4,'type':_0x43eaa8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xd746ed,'createdAt':_0xc7e702?new Date(_0xc7e702):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x199a48);});}}class ct extends _0x440856{['afterInit'](){const _0x4a71ed=this['editor'],_0x36792b=_0x4a71ed['plugins']['get']('TrackChangesEditing');if(_0x4a71ed['plugins']['has']('IndentEditing')&&(_0x36792b['enableCommand']('indent'),_0x36792b['enableCommand']('outdent')),_0x4a71ed['plugins']['has']('IndentBlock')){for(const _0x19e9e9 of['indentBlock','outdentBlock'])_0x36792b['enableDefaultAttributesIntegration'](_0x19e9e9);}const _0x39d568=_0x4a71ed['locale'];_0x36792b['registerBlockAttribute']('blockIndent'),_0x36792b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x39d568,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e0b4c=this['editor'],_0x3a1e7f=_0x4e0b4c['locale'],_0x5a74f1=_0x4e0b4c['plugins']['get']('TrackChangesEditing');_0x5a74f1['descriptionFactory']['registerDescriptionCallback'](_0x261411=>{if('formatBlock'!=_0x261411['type'])return;const {data:_0x3c324d}=_0x261411;if(!_0x3c324d)return;if('indentBlock'!=_0x3c324d['commandName']&&'outdentBlock'!=_0x3c324d['commandName'])return;const _0x3f6336=_0x261411['getItems']()[0x0],_0x52471b=_0x5a74f1['descriptionFactory']['getItemLabel'](_0x3f6336);return'indentBlock'==_0x3c324d['commandName']?{'type':'format','content':o(_0x3a1e7f,'*Indent:*\x20%0',_0x52471b)}:'outdentBlock'==_0x3c324d['commandName']?{'type':'format','content':o(_0x3a1e7f,'*Outdent:*\x20%0',_0x52471b)}:void 0x0;});}}class ut extends _0x440856{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x440856{['afterInit'](){const _0x48730f=this['editor'];if(!_0x48730f['plugins']['has']('LinkEditing'))return;const _0x7cec04=_0x48730f['plugins']['get']('TrackChangesEditing'),_0xd25689=_0x48730f['commands']['get']('link');_0x7cec04['enableDefaultAttributesIntegration']('link'),_0x7cec04['enableDefaultAttributesIntegration']('unlink'),_0x7cec04['registerInlineAttribute']('linkHref');for(const _0x30f8eb of _0xd25689['manualDecorators'])_0x7cec04['registerInlineAttribute'](_0x30f8eb['id']),_0x7cec04['descriptionFactory']['registerAttributeLabel'](_0x30f8eb['id'],'link\x20('+_0x30f8eb['label']['toLowerCase']()+')');_0x7cec04['descriptionFactory']['registerDescriptionCallback'](_0x14a31a=>{if('attribute'!=_0x14a31a['type'])return;const {data:_0x3aa438}=_0x14a31a;if(!_0x3aa438||'linkHref'!=_0x3aa438['key'])return;const _0x286786=_0x3aa438['newValue'],_0x117d9e=_0x48730f['locale'];return{'type':'format','content':null==_0x286786?o(_0x117d9e,'*Remove\x20link*'):o(_0x117d9e,'*Set\x20link:*\x20%0','\x22'+_0x286786+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc2cf1a=this['editor'],_0x3803c4=_0xc2cf1a['locale'];_0xc2cf1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33bb68=>{if('formatInline'!=_0x33bb68['type'])return;const {data:_0x567abe}=_0x33bb68;if(_0x567abe){if('link'==_0x567abe['commandName']){const _0x4ae1c9=_0x567abe['commandParams'][0x0];return{'type':'format','content':o(_0x3803c4,'*Set\x20link:*\x20%0','\x22'+_0x4ae1c9+'\x22')};}return'unlink'==_0x567abe['commandName']?{'type':'format','content':o(_0x3803c4,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x440856{['afterInit'](){const _0xbdf115=this['editor'],_0x13996c=_0xbdf115['locale'];if(!_0xbdf115['plugins']['has']('LegacyListEditing'))return;const _0xe56a87=_0xbdf115['plugins']['get']('TrackChangesEditing'),_0x19db19=_0xbdf115['plugins']['has']('LegacyTodoListEditing');function _0x47581f(_0x35efe2){return()=>{const _0x4e908b=_0xbdf115['model']['document']['selection'],_0x367a55=_0xbdf115['commands']['get'](_0x35efe2);if(_0x367a55['value'])return void _0xbdf115['execute']('paragraph',{});const _0x535acc=_0x35efe2['slice'](0x0,-0x4),_0x3a4019=function(_0x199e04,_0x3cbe34,_0x288cf1){let _0x1c0713=Array['from'](_0x199e04)['filter'](_0x54ae58=>function(_0x2ecdc9,_0x41ef1d){return _0x41ef1d['checkChild'](_0x2ecdc9['parent'],'listItem')&&!_0x41ef1d['isObject'](_0x2ecdc9);}(_0x54ae58,_0x288cf1));_0x1c0713=_0x1c0713['filter'](_0x2429cb=>!_0x2429cb['is']('element','listItem')||_0x2429cb['getAttribute']('listType')!=_0x3cbe34);const _0x435f7b=new Set();for(const _0x32ade4 of _0x1c0713)_0x32ade4['is']('element','listItem')?_0x435f7b['add'](fe(_0x32ade4)):_0x435f7b['add'](_0x32ade4);return Array['from'](_0x435f7b);}(_0x4e908b['getSelectedBlocks'](),_0x535acc,_0xbdf115['model']['schema']);_0xbdf115['model']['change'](()=>{for(const _0x422ac of _0x3a4019)_0xe56a87['markBlockFormat'](_0x422ac,{'commandName':_0x35efe2,'commandParams':[{'forceValue':!_0x367a55['value']}],'formatGroupId':'blockName'},ue(_0x422ac));});};}function _0x520049(_0x105f0b){return()=>{const _0x5e15da=function(_0x1d0d30){let _0x481b76=Array['from'](_0x1d0d30);const _0x4ff5be=_0x481b76['findIndex'](_0x419d61=>'listItem'!=_0x419d61['name']);return _0x4ff5be>-0x1&&(_0x481b76=_0x481b76['slice'](0x0,_0x4ff5be)),_0x481b76;}(_0xbdf115['model']['document']['selection']['getSelectedBlocks']()),_0x3e0aba=_0xbdf115['model']['createRange'](_0xbdf115['model']['createPositionAt'](_0x5e15da[0x0],'before'),_0xbdf115['model']['createPositionAt'](_0x5e15da[_0x5e15da['length']-0x1],'end'));_0xbdf115['model']['change'](()=>{_0xe56a87['markBlockFormat'](_0x3e0aba,{'commandName':_0x105f0b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1d57ce){const _0x2ce46d=new Set();for(const _0x541806 of _0x1d57ce){let _0x2394ac=_0x541806['nextSibling'];for(;_0x2394ac&&_0x2394ac['getAttribute']('listIndent')>_0x541806['getAttribute']('listIndent');)_0x2ce46d['add'](_0x2394ac),_0x2394ac=_0x2394ac['nextSibling'];}return Array['from'](_0x2ce46d);}(_0x5e15da));});};}_0xe56a87['enableCommand']('numberedList',_0x47581f('numberedList')),_0xe56a87['enableCommand']('bulletedList',_0x47581f('bulletedList')),_0x19db19&&_0xe56a87['enableCommand']('todoList',_0x47581f('todoList')),_0xe56a87['enableCommand']('indentList',_0x520049('indentList')),_0xe56a87['enableCommand']('outdentList',_0x520049('outdentList')),_0x19db19&&_0xe56a87['enableCommand']('checkTodoList',()=>{const _0x136973=_0xbdf115['commands']['get']('checkTodoList'),_0x13aa55=Array['from'](_0x136973['_selectedElements']);_0x13aa55['filter'](_0xeec4cd=>_0xeec4cd['getAttribute']('todoListChecked')!=_0x136973['value']),_0xbdf115['model']['change'](()=>{for(const _0x1f35ef of _0x13aa55)_0xe56a87['markBlockFormat'](_0x1f35ef,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x136973['value']}]});});}),_0xe56a87['descriptionFactory']['registerElementLabel']('listItem',_0x472085=>o(_0x13996c,'ELEMENT_LIST_ITEM',_0x472085)),_0xe56a87['descriptionFactory']['registerDescriptionCallback'](_0x2eee06=>{if('formatBlock'!=_0x2eee06['type']&&'formatInline'!=_0x2eee06['type'])return;const {data:_0x163b57}=_0x2eee06;if(_0x163b57){if('numberedList'==_0x163b57['commandName']||'bulletedList'==_0x163b57['commandName']||'todoList'==_0x163b57['commandName'])switch(_0x163b57['commandName']['replace']('List','')){case'bulleted':return _0x26055b(o(_0x13996c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x26055b(o(_0x13996c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x26055b(o(_0x13996c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x163b57['commandName'])return{'type':'format','content':o(_0x13996c,'*Indent:*\x20%0',o(_0x13996c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x163b57['commandName'])return{'type':'format','content':o(_0x13996c,'*Outdent:*\x20%0',o(_0x13996c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x163b57['commandName'])return _0x163b57['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13996c,'*Check\x20item*')}:{'type':'format','content':o(_0x13996c,'*Uncheck\x20item*')};}function _0x26055b(_0x247d47){return{'type':'format','content':o(_0x13996c,'*Change\x20to:*\x20%0',_0x247d47)};}});}}function fe(_0x2b2f7){const _0x3c22c4=_0x2b2f7['getAttribute']('listIndent');if(0x0==_0x3c22c4)return _0x2b2f7;let _0x429209=_0x2b2f7;for(;_0x2b2f7['previousSibling']&&_0x2b2f7['previousSibling']['is']('element','listItem');){const _0x398a42=_0x2b2f7['previousSibling']['getAttribute']('listIndent');if(_0x398a42==_0x3c22c4)_0x429209=_0x2b2f7['previousSibling'];else{if(_0x398a42<_0x3c22c4)break;}_0x2b2f7=_0x2b2f7['previousSibling'];}return _0x429209;}function ue(_0x40cce4){const _0x1cb31b=[];if(_0x40cce4['is']('element','listItem')&&_0x40cce4['getAttribute']('listIndent')>0x0){let _0x25cd19=_0x40cce4['nextSibling'];for(;_0x25cd19&&'listItem'==_0x25cd19['name']&&_0x25cd19['getAttribute']('listIndent')==_0x40cce4['getAttribute']('listIndent');)_0x1cb31b['push'](_0x25cd19),_0x25cd19=_0x25cd19['nextSibling'];}return _0x1cb31b;}class W extends _0x440856{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x68e953=this['editor']['config']['get']('list.properties'),_0x4e73e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x68e953['styles']&&_0x4e73e6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x68e953['reversed']&&_0x4e73e6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x68e953['startIndex']&&_0x4e73e6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4e73e6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x918d0a,_0x2e9d82={}){const _0xfb0293=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25d2d1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xfb0293['markMultiRangeBlockFormat'](_0x25d2d1,{'commandName':'listStyle','commandParams':[{'type':_0x2e9d82['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4acc6a,_0x5e53fc={}){const _0x3a4ff1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14b25b=this['_getSuggestionBlocks'](_0x1dd580=>_0x1dd580['is']('element','listItem')&&'numbered'===_0x1dd580['getAttribute']('listType'));if(_0x14b25b['length']<0x1)return;const _0x33df8c=_0x14b25b['map'](_0x4fcac9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4fcac9,'before'),this['editor']['model']['createPositionAt'](_0x4fcac9,0x0)));this['editor']['model']['change'](()=>{_0x3a4ff1['markMultiRangeBlockFormat'](_0x33df8c,{'commandName':'listReversed','commandParams':[{'reversed':_0x5e53fc['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd4bf97,_0x101a97={}){const _0x8f723b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b6891=this['_getSuggestionBlocks'](_0x3bd9b3=>_0x3bd9b3['is']('element','listItem')&&'numbered'===_0x3bd9b3['getAttribute']('listType'));if(_0x4b6891['length']<0x1)return;const _0x5c0ec9=_0x4b6891['map'](_0x32a4f3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32a4f3,'before'),this['editor']['model']['createPositionAt'](_0x32a4f3,0x0)));this['editor']['model']['change'](()=>{_0x8f723b['markMultiRangeBlockFormat'](_0x5c0ec9,{'commandName':'listStart','commandParams':[{'startIndex':_0x101a97['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x543254){if('formatBlock'!=_0x543254['type']&&'formatInline'!=_0x543254['type'])return;const _0x5326a5=this['editor']['locale'],{data:_0x58d62e}=_0x543254;if(!_0x58d62e)return;let _0x328ff2,_0x2fab4f;switch(_0x58d62e['commandName']){case'listStyle':_0x328ff2='*Change\x20to:*\x20%0',_0x2fab4f={'type':'format','content':o(_0x5326a5,_0x328ff2,o(_0x5326a5,this['_getTranslationKeyForListStyle'](_0x58d62e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x328ff2=_0x58d62e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2fab4f={'type':'format','content':o(_0x5326a5,_0x328ff2)};break;case'listStart':_0x328ff2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2fab4f={'type':'format','content':o(_0x5326a5,_0x328ff2,_0x58d62e['commandParams'][0x0]['startIndex'])};}return _0x2fab4f;}['_getSuggestionBlocksForListStyle'](){const _0x458001=this['editor']['plugins']['get']('LegacyListUtils');let _0x53fa04=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x53fa04[0x0]?.['is']('element','listItem')&&_0x53fa04['unshift'](..._0x458001['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x53fa04[_0x53fa04['length']-0x1]?.['is']('element','listItem')&&_0x53fa04['push'](..._0x458001['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x53fa04=[...new Set(_0x53fa04)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x53fa04=_0x53fa04['filter'](_0x1288ed=>_0x1288ed['is']('element','listItem'))),_0x53fa04;}['_getSuggestionBlocks'](_0x2efc78){const _0x10e33c=this['editor']['plugins']['get']('LegacyListUtils');let _0x27d7b6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2efc78)['map'](_0x394445=>{const _0x530f12=this['editor']['model']['createPositionAt'](_0x394445,0x0);return[..._0x10e33c['getSiblingNodes'](_0x530f12,'backward'),..._0x10e33c['getSiblingNodes'](_0x530f12,'forward')];})['flat']();return _0x27d7b6=[...new Set(_0x27d7b6)],_0x27d7b6;}['_getTranslationKeyForListStyle'](_0xd8492a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xd8492a)||'default')['toUpperCase']()+'_LIST_'+_0xd8492a['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x440856{['afterInit'](){const _0x58d9f3=this['editor'];if(!_0x58d9f3['plugins']['has']('MediaEmbedEditing'))return;const _0x19a7f1=_0x58d9f3['plugins']['get']('TrackChangesEditing'),_0x3156e3=_0x58d9f3['locale'];_0x19a7f1['enableCommand']('mediaEmbed'),_0x19a7f1['descriptionFactory']['registerElementLabel']('media',_0x20306c=>o(_0x3156e3,'ELEMENT_MEDIA',_0x20306c)),_0x58d9f3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5809eb,{writer:_0x52ee35,options:_0x59df84})=>{if(_0x59df84['showSuggestionHighlights'])return _0x52ee35['createEmptyElement']('div');},'converterPriority':'high'}),_0x58d9f3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ef72c,_0x35d528,_0x5ed12f)=>{_0x5ed12f['options']['showSuggestionHighlights']&&_0x3ef72c['stop']();},{'priority':'high'});}}class mt extends _0x440856{['afterInit'](){const _0x5c3914=this['editor'];_0x5c3914['plugins']['has']('MentionEditing')&&_0x5c3914['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x440856{['afterInit'](){const _0x4a11d2=this['editor'];if(!_0x4a11d2['commands']['get']('insertMergeField'))return;_0x4a11d2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x220343=_0x4a11d2['plugins']['get']('TrackChangesEditing'),_0x5b0f5e=_0x4a11d2['locale'];_0x220343['descriptionFactory']['registerElementLabel']('mergeField',_0x5bd9c6=>o(_0x5b0f5e,'ELEMENT_MERGE_FIELD',_0x5bd9c6)),_0x220343['descriptionFactory']['registerDescriptionCallback'](_0x32f09f=>{if('insertion'!=_0x32f09f['type']&&'deletion'!=_0x32f09f['type'])return;const _0x4eb543=_0x32f09f['getContainedElement']();if(null==_0x4eb543)return;if(!_0x4eb543['is']('element','mergeField'))return;const _0x3119a7=_0x4a11d2['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4eb543['getAttribute']('id'));return'insertion'==_0x32f09f['type']?{'type':'insertion','content':o(_0x5b0f5e,'*Insert:*\x20%0','\x22'+_0x3119a7+'\x22\x20'+o(_0x5b0f5e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5b0f5e,'*Remove:*\x20%0','\x22'+_0x3119a7+'\x22\x20'+o(_0x5b0f5e,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x440856{['afterInit'](){const _0x34a878=this['editor'],_0x848f4=_0x34a878['plugins']['get']('TrackChangesEditing');_0x34a878['plugins']['has']('MultiLevelList')&&(_0x848f4['enableDefaultAttributesIntegration']('multiLevelList'),_0x848f4['registerBlockAttribute']('listMarkerStyle'),_0x848f4['descriptionFactory']['registerDescriptionCallback'](_0x24a039=>this['handleDescriptions'](_0x24a039)));}['handleDescriptions'](_0x48c2d7){const _0x166b77=this['editor']['locale'],{data:_0x370746}=_0x48c2d7,_0x41adac={'type':'format','content':''};if(_0x370746&&'listMarkerStyle'==_0x370746['key']){if(!_0x370746['oldValue'])return{'type':'format','content':o(_0x166b77,'*Set\x20format:*\x20%0',o(_0x166b77,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x370746['newValue']+')'};if(!_0x370746['newValue']){let _0x359a13=_0x48c2d7['head'];for(;_0x359a13;){if(_0x359a13['data']&&'listType'==_0x359a13['data']['key']&&_0x359a13['data']['newValue'])return _0x41adac;_0x359a13=_0x359a13['next'];}return{'type':'format','content':o(_0x166b77,'*Remove\x20format:*\x20%0',o(_0x166b77,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x370746['oldValue']+')'};}}}}class kt extends _0x440856{['afterInit'](){const _0x431fc4=this['editor'];if(!_0x431fc4['plugins']['has']('PageBreakEditing'))return;_0x431fc4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4ce14b=_0x431fc4['plugins']['get']('TrackChangesEditing'),_0x2073cb=_0x431fc4['locale'];_0x4ce14b['descriptionFactory']['registerElementLabel']('pageBreak',_0xecb162=>o(_0x2073cb,'ELEMENT_PAGE_BREAK',_0xecb162));}}class bt extends _0x440856{['afterInit'](){const _0x1882c7=this['editor'];if(!_0x1882c7['plugins']['has']('Paragraph'))return;const _0x4ea60d=_0x1882c7['locale'],_0xa51f24=_0x1882c7['plugins']['get']('TrackChangesEditing');_0xa51f24['descriptionFactory']['registerElementLabel']('paragraph',_0x5c7a3c=>o(_0x4ea60d,'ELEMENT_PARAGRAPH',_0x5c7a3c)),_0xa51f24['enableDefaultAttributesIntegration']('paragraph'),_0xa51f24['enableCommand']('insertParagraph'),_0x1882c7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1882c7),{'priority':'highest'}),_0x1882c7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e3499,_0x29a8b6,_0x534a65)=>{_0x534a65['options']['showSuggestionHighlights']&&nr(_0x1882c7,{'showActiveMarker':!0x1})(_0x2e3499,_0x29a8b6,_0x534a65);},{'priority':'highest'});const _0x2c1b65=_0xa51f24['descriptionFactory'];_0x2c1b65['registerDescriptionCallback'](_0x190657=>{if('insertion'!==_0x190657['type'])return;const {start:_0x50ca52,end:_0x1cbbe2}=_0x190657['getFirstRange']();if(!_0x50ca52['isTouching'](_0x1cbbe2)||!_0x50ca52['nodeAfter'])return;const _0x58ee30=_0x1882c7['model']['schema'],_0x4a3af0=_0x50ca52['nodeAfter'];return _0x58ee30['isBlock'](_0x4a3af0)&&!_0x58ee30['isLimit'](_0x4a3af0)&&_0x58ee30['checkChild'](_0x4a3af0,'$text')?{'type':'insertion','content':o(_0x4ea60d,'*Insert:*\x20%0',_0x2c1b65['getItemLabel'](_0x4a3af0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x157f6e=this['editor'],_0x479ece=_0x157f6e['locale'];_0x157f6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28df70=>{if('formatBlock'!=_0x28df70['type'])return;const {data:_0x5e4fd3}=_0x28df70;return _0x5e4fd3&&'paragraph'==_0x5e4fd3['commandName']?{'type':'format','content':o(_0x479ece,'*Change\x20to:*\x20%0',o(_0x479ece,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4e7540,{showActiveMarker:_0x22cc21=!0x0}={}){return(_0x480d2c,_0x1e47f6,_0xc86c21)=>{const _0x3360d0=_0x4e7540['plugins']['get']('TrackChangesEditing'),_0x5f3a97=_0x1e47f6['markerRange']['start'],_0x2509a6=_0x1e47f6['markerRange']['end'],_0x39d5d2=_0x4e7540['model']['schema'];if(!_0x5f3a97['isTouching'](_0x2509a6)||!_0x5f3a97['nodeAfter'])return;const _0x203ca6=_0x5f3a97['nodeAfter'];if(_0x39d5d2['isBlock'](_0x203ca6)&&!_0x39d5d2['isLimit'](_0x203ca6)&&_0x39d5d2['checkChild'](_0x203ca6,'$text')){if(!_0xc86c21['consumable']['consume'](_0x1e47f6['markerRange'],_0x480d2c['name']))return;const _0x272f82=_0xc86c21['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5ee3a8=_0xc86c21['mapper']['toViewPosition'](_0x2509a6);_0x22cc21&&_0x3360d0['activeMarkers']['includes'](_0x1e47f6['markerName'])&&_0xc86c21['writer']['addClass']('ck-suggestion-marker--active',_0x272f82),_0xc86c21['writer']['insert'](_0x5ee3a8,_0x272f82),_0xc86c21['mapper']['bindElementToMarker'](_0x272f82,_0x1e47f6['markerName']);}};}class wt extends _0x440856{['afterInit'](){const _0x463b0c=this['editor'];if(!_0x463b0c['plugins']['has']('RemoveFormatEditing'))return;_0x463b0c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12bc84=this['editor'];_0x12bc84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe616a4=>{if('formatBlock'!=_0xe616a4['type']&&'formatInline'!=_0xe616a4['type'])return;const {data:_0x23203a}=_0xe616a4;return _0x23203a&&'removeFormat'==_0x23203a['commandName']?{'type':'format','content':o(_0x12bc84['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x440856{['afterInit'](){const _0x39c787=this['editor'];if(!_0x39c787['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5bdfa9=_0x39c787['plugins']['get']('TrackChangesEditing');_0x5bdfa9['enableCommand']('goToPreviousRestrictedEditingException'),_0x5bdfa9['enableCommand']('goToNextRestrictedEditingException');const _0x377037=_0x39c787['plugins']['get']('RestrictedEditingModeEditing');_0x377037['enableCommand']('trackChanges'),_0x377037['enableCommand']('acceptSuggestion'),_0x377037['enableCommand']('discardSuggestion'),_0x377037['enableCommand']('acceptAllSuggestions'),_0x377037['enableCommand']('discardAllSuggestions'),_0x377037['enableCommand']('acceptSelectedSuggestions'),_0x377037['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x440856{static get['requires'](){return[_0x4bd531];}['init'](){const _0x2275ac=this['editor'],_0xc56a69=_0x2275ac['plugins']['get']('TrackChangesEditing');_0xc56a69['enableCommand']('shiftEnter'),_0x2275ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x2275ac),{'priority':'high'}),_0x2275ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x2275ac),{'priority':'high'}),_0x2275ac['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47a445,_0x2fb7e2,_0x4fca74)=>{_0x4fca74['options']['showSuggestionHighlights']&&ge(_0x2275ac,{'showActiveMarker':!0x1})(_0x47a445,_0x2fb7e2,_0x4fca74);}),_0xc56a69['descriptionFactory']['registerElementLabel']('softBreak',_0x1db053=>o(_0x2275ac['locale'],'ELEMENT_LINE_BREAK',_0x1db053));}}function ge(_0x43ede7,{showActiveMarker:_0x615e11=!0x0}={}){return(_0x2b7190,_0x489027,_0x36eee6)=>{const _0x9dd32e=_0x43ede7['plugins']['get']('TrackChangesEditing');if(!_0x36eee6['consumable']['test'](_0x489027['markerRange'],_0x2b7190['name']))return;const _0x3e9654=_0x43ede7['model'];for(const _0x355de1 of _0x489027['markerRange']['getItems']()){if(!_0x355de1['is']('element','softBreak'))continue;const _0x14754f='deletion'==_0x489027['markerName']['split'](':')[0x1]?'merge':'split',_0x4801bc=_0x36eee6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14754f}),_0x4dd042=_0x36eee6['mapper']['toViewPosition'](_0x3e9654['createPositionBefore'](_0x355de1));_0x615e11&&_0x9dd32e['activeMarkers']['includes'](_0x489027['markerName'])&&_0x36eee6['writer']['addClass']('ck-suggestion-marker--active',_0x4801bc),_0x36eee6['writer']['insert'](_0x4dd042,_0x4801bc),_0x36eee6['mapper']['bindElementToMarker'](_0x4801bc,_0x489027['markerName']);}};}class St extends _0x440856{['afterInit'](){const _0xbdf0d0=this['editor'],_0x53e84a=_0xbdf0d0['model'],_0x286d47=_0xbdf0d0['locale'];if(!_0xbdf0d0['plugins']['has']('StandardEditingModeEditing'))return;const _0x3a3e89=_0xbdf0d0['plugins']['get']('TrackChangesEditing'),_0x1e6f70='restrictedEditingException',_0x368f13=_0xbdf0d0['commands']['get'](_0x1e6f70);_0x3a3e89['enableCommand'](_0x1e6f70,(_0x2698c1,_0x5aac37={})=>{const _0x56b948=_0x53e84a['document']['selection'];if(_0x56b948['isCollapsed'])return void _0x2698c1(_0x5aac37);const _0x511975=void 0x0!==_0x5aac37['forceValue']?_0x5aac37['forceValue']:!_0x368f13['value'];_0x53e84a['change'](()=>{const _0x7497c6=Array['from'](_0x56b948['getRanges']());for(const _0x406e6f of _0x7497c6){const _0x4acd79=_0x511975?[_0x406e6f]:io(_0x1e6f70,_0x406e6f,_0x53e84a);for(const _0x3330bb of _0x4acd79)_0x3a3e89['markInlineFormat'](_0x3330bb,{'commandName':_0x1e6f70,'commandParams':[{'forceValue':_0x511975}]});}});}),_0x3a3e89['descriptionFactory']['registerDescriptionCallback'](_0x37d09d=>{if('formatBlock'!=_0x37d09d['type']&&'formatInline'!=_0x37d09d['type'])return;const {data:_0x332a5b}=_0x37d09d;return _0x332a5b&&_0x332a5b['commandName']==_0x1e6f70?_0x332a5b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x286d47,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x286d47,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x440856{['afterInit'](){const _0x2f52bf=this['editor'];if(!_0x2f52bf['plugins']['has']('Style')||!_0x2f52bf['plugins']['has']('DataSchema'))return;const _0x5a6b67=_0x2f52bf['plugins']['get']('TrackChangesEditing'),_0x44d1d8=_0x2f52bf['locale'],_0x3d53eb=_0x2f52bf['config']['get']('style')||{},_0x3bc5cd=_0x2f52bf['plugins']['get']('GeneralHtmlSupport'),_0x4e0336=_0x2f52bf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2f52bf['plugins']['get']('DataSchema'),_0x3d53eb['definitions']);_0x5a6b67['enableDefaultAttributesIntegration']('style');const _0x182adb=new Set();for(const _0x28188a of _0x4e0336['block']){const _0x4b99dd=_0x3bc5cd['getGhsAttributeNameForElement'](_0x28188a['element']);_0x182adb['add'](_0x4b99dd);}const _0x36a0eb=new Set();for(const _0x3d7f55 of _0x4e0336['inline']){const _0x65f703=_0x3bc5cd['getGhsAttributeNameForElement'](_0x3d7f55['element']);_0x36a0eb['add'](_0x65f703);for(const _0x11223a of _0x3d7f55['ghsAttributes'])_0x36a0eb['add'](_0x11223a);}for(const _0x50b711 of _0x182adb)_0x5a6b67['registerBlockAttribute'](_0x50b711),_0x5a6b67['descriptionFactory']['registerAttributeLabel'](_0x50b711,o(_0x44d1d8,'FORMAT_STYLE'));for(const _0x22c35d of _0x36a0eb)_0x5a6b67['registerInlineAttribute'](_0x22c35d),_0x5a6b67['descriptionFactory']['registerAttributeLabel'](_0x22c35d,o(_0x44d1d8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45bff8=this['editor'],_0x4550e8=_0x45bff8['locale'];_0x45bff8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11ba42=>{if('formatBlock'!=_0x11ba42['type']&&'formatInline'!=_0x11ba42['type'])return;const {data:_0x59b79a}=_0x11ba42;return _0x59b79a&&'style'===_0x59b79a['commandName']?_0x59b79a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4550e8,'*Set\x20format:*\x20%0',_0x59b79a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4550e8,'*Remove\x20format:*\x20%0',_0x59b79a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x440856{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3f82a4){super(_0x3f82a4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x35cb32=this['editor'],_0x448cc3=_0x35cb32['model']['document']['selection'];if(!_0x35cb32['plugins']['has']('TableEditing'))return;const _0x45b625=_0x35cb32['locale'],_0x3741cd=_0x35cb32['plugins']['get']('TrackChangesEditing'),_0x140d1e=_0x35cb32['plugins']['get']('TableUtils');_0x3741cd['descriptionFactory']['registerElementLabel']('table',_0x4bf933=>o(_0x45b625,'ELEMENT_TABLE',_0x4bf933)),this['_setupColumnsRowsFixing'](),_0x3741cd['enableCommand']('insertTable'),_0x3741cd['enableCommand']('selectTableRow'),_0x3741cd['enableCommand']('selectTableColumn');for(const _0x1db907 of['insertTableRowAbove','insertTableRowBelow']){const _0x1fbb1b=_0x35cb32['commands']['get'](_0x1db907);_0x3741cd['enableCommand'](_0x1db907,_0x2d0ed2=>{_0x35cb32['model']['change'](_0x50b71f=>{_0x2d0ed2();const _0x15f62c='above'===_0x1fbb1b['order'],_0x148bd5=_0x140d1e['getSelectionAffectedTableCells'](_0x448cc3),_0x448f06=_0x140d1e['getRowIndexes'](_0x148bd5),_0x314257=_0x15f62c?_0x448f06['first']-0x1:_0x448f06['last']+0x1,_0x4cd30e=_0x148bd5[0x0]['findAncestor']('table'),_0x49a6a6=_0x140d1e['createTableWalker'](_0x4cd30e,{'startRow':_0x314257,'endRow':_0x314257}),_0x468e4a=Array['from'](_0x49a6a6)['map'](_0x2756d2=>_0x50b71f['createRangeOn'](_0x2756d2['cell']));_0x3741cd['markMultiRangeInsertion'](_0x468e4a,'tableRow');});});}for(const _0x432d60 of['insertTableColumnLeft','insertTableColumnRight']){const _0x281931=_0x35cb32['commands']['get'](_0x432d60);_0x3741cd['enableCommand'](_0x432d60,_0x4c9794=>{_0x35cb32['model']['change'](_0x262d21=>{_0x4c9794();const _0x593c61='left'===_0x281931['order'],_0x1b0685=_0x140d1e['getSelectionAffectedTableCells'](_0x448cc3),_0x3f7a0f=_0x140d1e['getColumnIndexes'](_0x1b0685),_0x3833da=_0x593c61?_0x3f7a0f['first']-0x1:_0x3f7a0f['last']+0x1,_0xd2d04c=_0x1b0685[0x0]['findAncestor']('table'),_0xd7d2ea=_0x140d1e['createTableWalker'](_0xd2d04c,{'startRow':0x0,'column':_0x3833da,'includeAllSlots':!0x1}),_0x5c9710=Array['from'](_0xd7d2ea)['map'](_0x4fe2b4=>_0x262d21['createRangeOn'](_0x4fe2b4['cell']));_0x3741cd['markMultiRangeInsertion'](_0x5c9710,'tableColumn');});});}for(const _0x12545c of['removeTableRow','removeTableColumn']){const _0x1b85a3=_0x12545c['substr'](0xb),_0x515fe1=_0x1b85a3['toLowerCase'](),_0x5bdcdc=_0x515fe1['substr'](0x0,0x3)+'span',_0x358899='table'+_0x1b85a3,_0x171a9b='min'+_0x1b85a3,_0x526ace='max'+_0x1b85a3;_0x3741cd['enableCommand'](_0x12545c,()=>{_0x35cb32['model']['change'](_0x59c976=>{const _0x390f95=_0x140d1e['getSelectionAffectedTableCells'](_0x448cc3),_0x41b9ba=_0x390f95[0x0]['findAncestor']('table');let _0x2902c4;if('removeTableRow'==_0x12545c){const _0x36e2e1=_0x140d1e['getRowIndexes'](_0x390f95);_0x2902c4={'startRow':_0x36e2e1['first'],'endRow':_0x36e2e1['last'],'includeAllSlots':!0x0};}else{const _0x5963d0=_0x140d1e['getColumnIndexes'](_0x390f95);_0x2902c4={'startColumn':_0x5963d0['first'],'endColumn':_0x5963d0['last'],'includeAllSlots':!0x0};}const _0x10164a=_0x140d1e['createTableWalker'](_0x41b9ba,_0x2902c4),_0x417375=Array['from'](_0x10164a)['map'](({cell:_0x715d88})=>_0x715d88),_0x11e775=be(_0x417375['filter'](_0x460d70=>_0x460d70['hasAttribute'](_0x5bdcdc))),_0x562775=be(_0x417375['filter'](_0x37243d=>!_0x37243d['hasAttribute'](_0x5bdcdc)))['map'](_0xa97ce5=>_0x59c976['createRangeOn'](_0xa97ce5)),_0x217e0e=_0x3741cd['markMultiRangeDeletion'](_0x562775,_0x358899);if(_0x217e0e&&('tableRow'==_0x217e0e['subType']||'tableColumn'==_0x217e0e['subType'])){const _0x202c12=this['_getSuggestionCoords'](_0x217e0e);for(const _0x5a0792 of _0x11e775){const _0x1f0f52=_0x59c976['createRangeOn'](_0x5a0792),_0x3adf64=_0x140d1e['getCellLocation'](_0x5a0792),_0x1fefc7=_0x5a0792['getAttribute'](_0x5bdcdc)-0x1,_0x336d50=_0x202c12[_0x171a9b],_0x599e08=_0x202c12[_0x526ace];_0x336d50<=_0x3adf64[_0x515fe1]&&_0x3adf64[_0x515fe1]+_0x1fefc7<=_0x599e08&&_0x217e0e['addRange'](_0x1f0f52);}}});});}function _0x1a0456(_0x422d0b){const _0x3e88af=Array['from'](_0x448cc3['getRanges']())['map'](_0x337275=>_0x2fd4c8['fromRange'](_0x337275));_0x35cb32['model']['change'](_0x6c3047=>{const _0x2d884c=_0x6c3047['batch'];_0x422d0b=_0x422d0b['filter'](_0x40c2be=>'$graveyard'!=_0x40c2be['root']['rootName']),_0x6c3047['setSelection'](_0x422d0b),_0x35cb32['commands']['get']('removeTableRow')['refresh'](),_0x35cb32['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x35cb32['model']['enqueueChange'](()=>{_0x35cb32['model']['enqueueChange'](_0x2d884c,_0xb3b646=>{const _0xb5d3ae=_0x3e88af['filter'](_0x1eee75=>'$graveyard'!=_0x1eee75['root']['rootName']);_0xb5d3ae['length']>0x0&&_0xb3b646['setSelection'](_0xb5d3ae);for(const _0x3db280 of _0x3e88af)_0x3db280['detach']();});});});}function _0x2498ef(_0x55b40f){_0x35cb32['model']['change'](_0x2eba60=>{const _0xa41bcb=Array['from'](_0x448cc3['getRanges']())['map'](_0x40e8cf=>_0x2fd4c8['fromRange'](_0x40e8cf)),_0x3265c2=[];for(const _0x593007 of _0x55b40f)for(const _0xc023c7 of _0x593007['getItems']({'shallow':!0x0}))_0x3265c2['push'](_0xc023c7);for(const _0xedaff6 of _0x3265c2)'$graveyard'!=_0xedaff6['root']['rootName']&&(_0x2eba60['setSelection'](_0x2eba60['createPositionAt'](_0xedaff6,0x0)),_0x35cb32['commands']['get']('removeTableColumn')['refresh'](),_0x35cb32['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x46eec8=_0xa41bcb['filter'](_0x1b2e29=>'$graveyard'!=_0x1b2e29['root']['rootName']);_0x46eec8['length']>0x0&&_0x2eba60['setSelection'](_0x46eec8);for(const _0x5ab1d6 of _0xa41bcb)_0x5ab1d6['detach']();});}function _0xca4b7(_0x34f490,_0x5e90c2){return _0x5e90c2['every'](_0x13722b=>_0x34f490['some'](_0x2c8ac9=>_0x2c8ac9['end']['isEqual'](_0x13722b['start'])||_0x13722b['end']['isEqual'](_0x2c8ac9['start'])));}function _0x4abb3f(_0x3bb66a,_0x538487){return!_0x3bb66a['some'](_0x3a31ca=>_0x538487['some'](_0x44363a=>_0x3a31ca['isIntersecting'](_0x44363a)))&&_0x3bb66a['some'](_0x4f5334=>_0x538487['some'](_0xccec66=>_0x4f5334['end']['isTouching'](_0xccec66['start'])));}_0x35cb32['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a3f8b,_0x15d4a7,_0x4bc85e)=>{if(!_0x4bc85e['options']['showSuggestionHighlights'])return;const _0x524583=_0x15d4a7['item'];if(!_0x524583)return;const _0x55d324=_0x4bc85e['mapper']['toViewElement'](_0x524583);function _0x3498d1(_0x5b81e3){return Array['isArray'](_0x5b81e3)?_0x5b81e3:[_0x5b81e3];}_0x55d324&&'tableCell'===_0x524583['name']&&_0x4b1ae9(_0x55d324,_0x4bc85e['writer'],(_0x55ba66,_0x48f983,_0x3cf54e)=>_0x3cf54e['addClass'](_0x3498d1(_0x48f983['classes']),_0x55ba66),(_0x4da7ef,_0x4b64e3,_0x133877)=>_0x133877['removeClass'](_0x3498d1(_0x4b64e3['classes']),_0x4da7ef));},{'priority':'highest'}),_0x3741cd['descriptionFactory']['registerDescriptionCallback'](_0x39a1eb=>{if('insertion'!=_0x39a1eb['type']&&'deletion'!=_0x39a1eb['type'])return;const _0x263778=_0x39a1eb['getContainedElement']();if(null!=_0x263778&&_0x263778['is']('element','table')){if('insertion'==_0x39a1eb['type']){const _0x51df07=_0x39a1eb['getItems']()['filter'](_0x534306=>_0x534306['is']('$textProxy'))['map'](_0x1e0d63=>_0x1e0d63['data']);if(_0x51df07['length'])return{'type':'insertion','content':o(_0x45b625,'*Insert:*\x20%0',o(_0x45b625,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51df07['join']('\x20')+'\x22'))};}if('deletion'==_0x39a1eb['type']){const _0x39283a=_0x39a1eb['getItems']()['filter'](_0x5e7d4c=>_0x5e7d4c['is']('$textProxy'))['map'](_0x1f7a4e=>_0x1f7a4e['data']);if(_0x39283a['length'])return{'type':'deletion','content':o(_0x45b625,'*Remove:*\x20%0',o(_0x45b625,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39283a['join']('\x20')+'\x22'))};}}}),_0x3741cd['descriptionFactory']['registerDescriptionCallback'](_0x3f1b7b=>{if('tableRow'==_0x3f1b7b['subType']){const _0x421263=_0x3f1b7b['getItems']()['filter'](_0x18e37c=>_0x18e37c['is']('$textProxy'))['map'](_0x8c95f5=>_0x8c95f5['data']),_0x2161ec=this['_getSuggestionCoords'](_0x3f1b7b),_0x1d945b=_0x2161ec['maxRow']-_0x2161ec['minRow']+0x1;if('insertion'==_0x3f1b7b['type'])return _0x421263['length']?{'type':'insertion','content':o(_0x45b625,'*Insert:*\x20%0',o(_0x45b625,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d945b,'\x22'+_0x421263['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x45b625,'*Insert:*\x20%0',o(_0x45b625,'ELEMENT_TABLE_ROW',_0x1d945b))};if('deletion'==_0x3f1b7b['type'])return _0x421263['length']?{'type':'deletion','content':o(_0x45b625,'*Remove:*\x20%0',o(_0x45b625,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d945b,'\x22'+_0x421263['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x45b625,'*Remove:*\x20%0',o(_0x45b625,'ELEMENT_TABLE_ROW',_0x1d945b))};}if('tableColumn'==_0x3f1b7b['subType']){const _0x2d5202=_0x3f1b7b['getItems']()['filter'](_0x2b7c8a=>_0x2b7c8a['is']('$textProxy'))['map'](_0x538ed5=>_0x538ed5['data']),_0x2e6ebb=this['_getSuggestionCoords'](_0x3f1b7b),_0x34f102=_0x2e6ebb['maxColumn']-_0x2e6ebb['minColumn']+0x1;if('insertion'==_0x3f1b7b['type'])return _0x2d5202['length']?{'type':'insertion','content':o(_0x45b625,'*Insert:*\x20%0',o(_0x45b625,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34f102,'\x22'+_0x2d5202['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x45b625,'*Insert:*\x20%0',o(_0x45b625,'ELEMENT_TABLE_COLUMN',_0x34f102))};if('deletion'==_0x3f1b7b['type'])return _0x2d5202['length']?{'type':'deletion','content':o(_0x45b625,'*Remove:*\x20%0',o(_0x45b625,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34f102,'\x22'+_0x2d5202['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x45b625,'*Remove:*\x20%0',o(_0x45b625,'ELEMENT_TABLE_COLUMN',_0x34f102))};}}),_0x3741cd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1a0456),_0x3741cd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1a0456),_0x3741cd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2498ef),_0x3741cd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2498ef),_0x3741cd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xca4b7),_0x3741cd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xca4b7),_0x3741cd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4abb3f),_0x3741cd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4abb3f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x114efe=this['editor'],_0x265502=_0x114efe['model']['document']['selection'];return(_0x47aa22,_0x83a0a2)=>{_0x114efe['model']['change'](_0x1f0c89=>{const {commandName:_0x234084,commandParams:_0x3e5fb9}=_0x83a0a2;let _0x32c40c=_0x47aa22[0x0]['end']['nodeBefore'];_0x3e5fb9&&_0x3e5fb9[0x0]&&!0x1===_0x3e5fb9[0x0]['forceValue']&&(_0x32c40c=_0x47aa22[0x0]['start']['nodeAfter']);const _0x2f39c6=_0x1f0c89['createRangeIn'](_0x32c40c);if('$graveyard'==_0x2f39c6['root']['rootName'])return;const _0x18b767=Array['from'](_0x265502['getRanges']())['map'](_0x56accf=>_0x2fd4c8['fromRange'](_0x56accf));_0x1f0c89['setSelection'](_0x2f39c6),_0x114efe['commands']['get'](_0x234084)['refresh'](),_0x3e5fb9['push']({'forceDefaultExecution':!0x0}),_0x114efe['execute'](_0x234084,..._0x3e5fb9);const _0x785e28=_0x18b767['filter'](_0x59f72f=>'$graveyard'!=_0x59f72f['root']['rootName']);_0x785e28['length']>0x0&&_0x1f0c89['setSelection'](_0x785e28);for(const _0x479145 of _0x18b767)_0x479145['detach']();});};}['_getCoordsForCells'](_0x58c0a8){const _0x5d5a35=this['editor']['plugins']['get']('TableUtils');let _0x10994a=Number['MAX_SAFE_INTEGER'],_0x2ca89a=Number['MIN_SAFE_INTEGER'],_0x310c74=Number['MAX_SAFE_INTEGER'],_0x3be48b=Number['MIN_SAFE_INTEGER'];for(const _0x75c7ae of _0x58c0a8){if('$graveyard'==_0x75c7ae['root']['rootName'])continue;const {row:_0xfa8223,column:_0x54202f}=_0x5d5a35['getCellLocation'](_0x75c7ae),_0x4cc88e=_0x75c7ae['hasAttribute']('rowspan')?_0x75c7ae['getAttribute']('rowspan')-0x1:0x0,_0x5558c6=_0x75c7ae['hasAttribute']('colspan')?_0x75c7ae['getAttribute']('colspan')-0x1:0x0;_0x10994a=_0xfa8223<_0x10994a?_0xfa8223:_0x10994a,_0x2ca89a=_0xfa8223+_0x4cc88e>_0x2ca89a?_0xfa8223+_0x4cc88e:_0x2ca89a,_0x310c74=_0x54202f<_0x310c74?_0x54202f:_0x310c74,_0x3be48b=_0x54202f+_0x5558c6>_0x3be48b?_0x54202f+_0x5558c6:_0x3be48b;}return{'minRow':_0x10994a,'maxRow':_0x2ca89a,'minColumn':_0x310c74,'maxColumn':_0x3be48b};}['_setupColumnsRowsFixing'](){const _0x247d90=this['editor'],_0x1ed540=_0x247d90['plugins']['get']('TrackChangesEditing'),_0x47aa7c=_0x247d90['plugins']['get']('TableUtils');_0x247d90['model']['document']['on']('change:data',()=>{const _0x5c13d7=Array['from'](_0x247d90['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b93e9,data:_0x48fdfc}of _0x5c13d7){const {group:_0x108b5d,id:_0x4bc398,subType:_0x45a274}=_0x1ed540['_splitMarkerName'](_0x2b93e9);if('suggestion'!=_0x108b5d)continue;if(null!=_0x48fdfc['oldRange'])continue;const _0x58a57a=_0x1ed540['getSuggestion'](_0x4bc398);this['_tablePostFixingSubtypes']['includes'](_0x45a274)&&this['_tableSuggestions']['add'](_0x58a57a);}},{'priority':'low'});const _0x376244=(_0x43b2b1,_0x3091cc)=>{let _0x17e3f2=!0x1;const _0x388138=_0x3091cc['createRangeOn'](_0x43b2b1),_0x530540=_0x43b2b1['findAncestor']('table'),_0x4a11cf=_0x47aa7c['getCellLocation'](_0x43b2b1);for(const _0x22410c of this['_tableSuggestions']){const _0x41a5e8=_0x22410c['subType'],_0x19bb6f=_0x41a5e8['startsWith']('tablePaste'),_0xdf0d11=_0x41a5e8['substr'](_0x19bb6f?0xa:0x5),_0x4b9897=_0xdf0d11['toLowerCase'](),_0x34034c=_0x4b9897['substr'](0x0,0x3)+'span',_0x5eb242='min'+_0xdf0d11,_0x4dbcb2='max'+_0xdf0d11;if(!_0x22410c['isInContent'])continue;if(_0x530540!=_0x22410c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x22410c['isIntersectingWithRange'](_0x388138))continue;const _0x4c7f84=_0x43b2b1['hasAttribute'](_0x34034c)?_0x43b2b1['getAttribute'](_0x34034c)-0x1:0x0,_0x200680=this['_getSuggestionCoords'](_0x22410c),_0x48c724=_0x200680[_0x5eb242],_0x36386b=_0x200680[_0x4dbcb2];_0x48c724<=_0x4a11cf[_0x4b9897]&&_0x4a11cf[_0x4b9897]+_0x4c7f84<=_0x36386b&&(_0x22410c['addRange'](_0x388138),_0x17e3f2=!0x0);}return _0x17e3f2;};_0x247d90['model']['document']['registerPostFixer'](_0x15e3bb=>{let _0x739ddf=!0x1;for(const _0x1be4f1 of _0x247d90['model']['document']['differ']['getChanges']())if('insert'==_0x1be4f1['type']){if('tableRow'==_0x1be4f1['name']){for(const _0x50b94b of _0x1be4f1['position']['nodeAfter']['getChildren']())_0x739ddf=_0x739ddf||_0x376244(_0x50b94b,_0x15e3bb);}else'tableCell'==_0x1be4f1['name']&&(_0x739ddf=_0x739ddf||_0x376244(_0x1be4f1['position']['nodeAfter'],_0x15e3bb));}return _0x739ddf;});}['_getSuggestionCoords'](_0x38a679){return this['_getCoordsForCells'](_0x38a679['getRanges']()['map'](_0x25052c=>_0x25052c['start']['nodeAfter']));}}function be(_0x1d3f09){return Array['from'](new Set(_0x1d3f09)['values']());}class vt extends _0x440856{static get['requires'](){return[It];}['afterInit'](){const _0x1d660b=this['editor'],_0xf242d0=_0x1d660b['model']['document']['selection'],_0x2556f7=_0x1d660b['locale'];if(!_0x1d660b['plugins']['has']('TableEditing'))return;const _0x2ef119=_0x1d660b['plugins']['get']('TrackChangesEditing'),_0x5577cb=_0x1d660b['plugins']['get']('TableUtils'),_0x3f7f46=_0x1d660b['plugins']['get'](It);_0x3f7f46['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2ef119['enableCommand']('mergeTableCells',()=>{const _0x56d20a=_0x5577cb['getSelectionAffectedTableCells'](_0x1d660b['model']['document']['selection']);_0x1d660b['model']['change'](()=>{_0x2ef119['markMultiRangeBlockFormat'](_0x56d20a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1d660b['commands']['get']('mergeTableCells')['on']('execute',(_0x46b1a5,_0x5da491)=>{_0x1d660b['commands']['get']('trackChanges')['value']&&(_0x5da491['length']>0x0&&_0x5da491[_0x5da491['length']-0x1]&&_0x5da491[_0x5da491['length']-0x1]['forceDefaultExecution']||_0x2ef119['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x46b1a5['stop']());},{'priority':'highest'});for(const _0x424f79 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x42e344=_0x1d660b['commands']['get'](_0x424f79);_0x2ef119['enableCommand'](_0x424f79,()=>{const _0x2c82f2=_0x1d660b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5f449c=>_0x5f449c['is']('element','tableCell')),_0x1cf03b=_0x42e344['value'];_0x1d660b['model']['change'](()=>{_0x2ef119['markMultiRangeBlockFormat']([_0x2c82f2,_0x1cf03b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x40c4e8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2d8f54=_0x1d660b['commands']['get'](_0x40c4e8);_0x2ef119['enableCommand'](_0x40c4e8,()=>{const _0x45631b=_0x5577cb['getSelectionAffectedTableCells'](_0x1d660b['model']['document']['selection'])[0x0],_0x4154d5=_0x45631b['findAncestor']('table'),{column:_0x632e61,row:_0x5d3627}=_0x5577cb['getCellLocation'](_0x45631b);let _0x20e755=[];if('horizontally'==_0x2d8f54['direction']){const _0x22d04d=_0x5577cb['createTableWalker'](_0x4154d5,{'startRow':_0x5d3627,'endRow':_0x5d3627,'includeAllSlots':!0x0});_0x20e755=Array['from'](_0x22d04d)['map'](_0x1e2e72=>_0x1e2e72['cell']);}else{const _0x12e492=_0x5577cb['createTableWalker'](_0x4154d5,{'column':_0x632e61,'includeAllSlots':!0x0});_0x20e755=Array['from'](_0x12e492)['map'](_0x1dbbcf=>_0x1dbbcf['cell']);}_0x1d660b['model']['change'](_0x3d02d6=>{_0x2ef119['markBlockFormat'](_0x3d02d6['createRangeOn'](_0x45631b),{'commandName':_0x40c4e8,'commandParams':[]},_0x20e755,_0x40c4e8);});});}_0x2ef119['descriptionFactory']['registerDescriptionCallback'](_0xc218f5=>{if('formatBlock'!=_0xc218f5['type']&&'formatInline'!=_0xc218f5['type'])return;const {data:_0x157241}=_0xc218f5;return _0x157241&&'mergeTableCells'==_0x157241['commandName']?{'type':'format','content':o(_0x2556f7,'*Merge\x20cells*')}:void 0x0;}),_0x2ef119['descriptionFactory']['registerDescriptionCallback'](_0x4936c2=>{if('formatBlock'!=_0x4936c2['type']&&'formatInline'!=_0x4936c2['type'])return;const {data:_0xf1c8a9}=_0x4936c2;return _0xf1c8a9?'splitTableCellVertically'==_0xf1c8a9['commandName']?{'type':'format','content':o(_0x2556f7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xf1c8a9['commandName']?{'type':'format','content':o(_0x2556f7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2ff6a8=_0x3f7f46['_acceptFormatSuggestionCallbackFactory']();for(const _0x2e9d01 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2ef119['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e9d01,'accept',_0x2ff6a8);for(const _0x1f5a35 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2ef119['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f5a35,'accept',_0x2ff6a8);_0x2ef119['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1606bc=>{_0x1d660b['model']['change'](_0x29e5a4=>{const _0x548e90=Array['from'](_0xf242d0['getRanges']())['map'](_0x523a89=>_0x2fd4c8['fromRange'](_0x523a89));_0x29e5a4['setSelection'](_0x1606bc),_0x1d660b['commands']['get']('mergeTableCells')['refresh'](),_0x1d660b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x26cc96=_0x548e90['filter'](_0x47c6a7=>'$graveyard'!=_0x47c6a7['root']['rootName']);_0x26cc96['length']>0x0&&_0x29e5a4['setSelection'](_0x26cc96);for(const _0x68da0 of _0x548e90)_0x68da0['detach']();});});for(const _0x4ab53c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2395c9=_0x1d660b['commands']['get'](_0x4ab53c);_0x2395c9['on']('set:isEnabled',(_0x20787b,_0x3ac574,_0xf6dcc9)=>{if(_0xf6dcc9){const _0x454d52=_0x1d660b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45e08c=>_0x45e08c['is']('element','tableCell'));this['_areMergableCells'](_0x2395c9['value'],_0x454d52)||(_0x20787b['return']=!0x1,_0x20787b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xba0be8=this['editor']['commands']['get']('mergeTableCells'),_0x38dc5b=this['editor']['plugins']['get']('TableUtils');if(!_0xba0be8['isEnabled'])return!0x1;const _0x441841=_0x38dc5b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1e7e45 of _0x441841)for(const _0x4c1158 of _0x441841)if(_0x1e7e45!=_0x4c1158&&!this['_areMergableCells'](_0x1e7e45,_0x4c1158))return!0x1;return!0x0;}['_areMergableCells'](_0x5ce608,_0x5daf52){const _0x40d2bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x90cf0a=this['editor']['model']['createRangeOn'](_0x5ce608),_0x2f00a1=this['editor']['model']['createRangeOn'](_0x5daf52),_0x40606f=new Set(),_0x12edad=new Set();for(const _0x4c37d0 of _0x40d2bc['getSuggestions']())if(('insertion'==_0x4c37d0['type']||'deletion'==_0x4c37d0['type']||'mergeTableCells'==_0x4c37d0['subType'])&&_0x4c37d0['isInContent']){for(const _0xd9a70b of _0x4c37d0['getRanges']())_0xd9a70b['containsRange'](_0x90cf0a,!0x0)&&_0x40606f['add'](_0x4c37d0['type']+':'+_0x4c37d0['author']['id']),_0xd9a70b['containsRange'](_0x2f00a1,!0x0)&&_0x12edad['add'](_0x4c37d0['type']+':'+_0x4c37d0['author']['id']);}if(_0x40606f['size']!=_0x12edad['size'])return!0x1;for(const _0x187d83 of _0x40606f)if(!_0x12edad['has'](_0x187d83))return!0x1;return!0x0;}}class Ct extends _0x440856{static get['requires'](){return[It];}['afterInit'](){const _0x2374b6=this['editor'];if(!_0x2374b6['plugins']['has']('TableEditing'))return;const _0x38f516=_0x2374b6['locale'],_0x38db73=_0x2374b6['plugins']['get']('TrackChangesEditing');_0x38db73['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x38db73['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x38db73['registerBlockAttribute']('headingRows'),_0x38db73['registerBlockAttribute']('headingColumns'),_0x38db73['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x38f516,'FORMAT_HEADER_ROW')),_0x38db73['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x38f516,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2ea11a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57698b=this['editor']['plugins']['get']('TableUtils'),_0x4784f1=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2d400e({showActiveMarker:_0x350ca1=!0x0,setDataAttribute:_0x4f9678=!0x0}={}){return(_0x3887eb,_0x21da2d,_0x3f57aa)=>{const {type:_0x417903,id:_0xd1d2e7}=_0x2ea11a['_splitMarkerName'](_0x21da2d['markerName']),_0x23df80=_0x2ea11a['getSuggestion'](_0xd1d2e7),_0x70d1f8=_0x23df80['data'];if('formatBlock'!=_0x23df80['type']||!_0x70d1f8||'setTableColumnHeader'!=_0x70d1f8['commandName'])return;if(_0x21da2d['item'])return void _0x3887eb['stop']();if(!_0x3f57aa['consumable']['consume'](_0x21da2d['markerRange'],_0x3887eb['name']))return;const _0x523d85=_0x21da2d['markerRange']['start']['nodeAfter'],_0x9e07e1=_0x21da2d['markerRange']['end']['nodeBefore'],_0x26b6de=_0x523d85['parent']['parent'],{column:_0x438fd4}=_0x57698b['getCellLocation'](_0x523d85),{column:_0x8ac86c}=_0x57698b['getCellLocation'](_0x9e07e1);for(let _0x4e286b=_0x438fd4;_0x4e286b<=_0x8ac86c;_0x4e286b++){const _0x302032=_0x57698b['createTableWalker'](_0x26b6de,{'column':_0x4e286b,'includeAllSlots':!0x1});for(const _0x109cef of _0x302032){const _0x2770b0=_0x109cef['cell'],_0x5246db=_0x3f57aa['mapper']['toViewElement'](_0x2770b0);_0x3f57aa['writer']['addClass']('ck-suggestion-marker-'+_0x417903,_0x5246db),_0x4f9678&&_0x3f57aa['writer']['setAttribute']('data-suggestion',_0xd1d2e7,_0x5246db),_0x3f57aa['mapper']['bindElementToMarker'](_0x5246db,_0x21da2d['markerName']),_0x350ca1&&(_0x2ea11a['activeMarkers']['includes'](_0x21da2d['markerName'])?_0x3f57aa['writer']['addClass']('ck-suggestion-marker--active',_0x5246db):_0x3f57aa['writer']['removeClass']('ck-suggestion-marker--active',_0x5246db));}}};}_0x2ea11a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4784f1),_0x2ea11a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4784f1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2d400e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1183a8,_0x4b2bfb,_0x34a8ec)=>{_0x34a8ec['options']['showSuggestionHighlights']&&_0x2d400e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1183a8,_0x4b2bfb,_0x34a8ec);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46458f,_0xd16289,_0x4dd42d)=>{const {type:_0x4d7340,id:_0x57f0ab}=_0x2ea11a['_splitMarkerName'](_0xd16289['markerName']),_0x355cc9=_0x2ea11a['getSuggestion'](_0x57f0ab),_0x139dcb=_0x355cc9['data'];if('formatBlock'!=_0x355cc9['type']||!_0x139dcb||'setTableColumnHeader'!=_0x139dcb['commandName'])return;const _0x10bce1=_0x4dd42d['mapper']['markerNameToElements'](_0xd16289['markerName']);if(_0x10bce1){for(const _0x2d8f8b of _0x10bce1)_0x4dd42d['writer']['removeClass']('ck-suggestion-marker-'+_0x4d7340,_0x2d8f8b),_0x4dd42d['writer']['removeClass']('ck-suggestion-marker--active',_0x2d8f8b),_0x4dd42d['writer']['removeAttribute']('data-suggestion',_0x2d8f8b),_0x4dd42d['mapper']['unbindElementFromMarkerName'](_0x2d8f8b,_0xd16289['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2950c2=this['editor'],_0x463c54=_0x2950c2['locale'];function _0x68c385(_0x52e276){return{'type':'format','content':o(_0x463c54,'*Format:*\x20%0',_0x52e276)};}_0x2950c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b33a5=>{if('formatBlock'!=_0x5b33a5['type'])return;const {data:_0x3d2bc2}=_0x5b33a5;if(_0x3d2bc2){if('setTableRowHeader'==_0x3d2bc2['commandName']){const _0x3b2a92=_0x3d2bc2['commandParams'][0x0]['forceValue'];return _0x68c385(o(_0x463c54,_0x3b2a92?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3d2bc2['commandName']){const _0x1d29db=_0x3d2bc2['commandParams'][0x0]['forceValue'];return _0x68c385(o(_0x463c54,_0x1d29db?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x578039=>[_0x578039,null]));class _t extends _0x440856{static get['requires'](){return[It];}['afterInit'](){const _0x579222=this['editor'];if(!_0x579222['plugins']['has']('TableClipboard'))return;const _0x1d8158=_0x579222['plugins']['get']('TrackChangesEditing'),_0x19a379=_0x579222['plugins']['get']('TableUtils'),_0x530250=_0x579222['plugins']['get'](It),_0x165a8a=_0x579222['plugins']['get']('TableClipboard');_0x530250['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x579222['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x579222['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2bb3d1=null;_0x579222['model']['on']('insertContent',(_0x3fa952,_0x13b273)=>{const [_0x12a13b,_0x46c0a7]=_0x13b273,_0x398844=_0x13b273[_0x13b273['length']-0x1];_0x398844&&_0x398844['forceDefaultExecution']||_0x1d8158['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3cf4f0,_0x20140d,_0x2008d4,_0x536bcd,_0x95a8c5){if(_0x20140d&&!_0x20140d['is']('documentSelection'))return!0x1;const _0x15b834=_0x95a8c5['getTableIfOnlyTableInContent'](_0x3cf4f0,_0x2008d4);if(!_0x15b834||!Re(_0x15b834,void 0x0,_0x536bcd))return!0x1;const _0x367f1d=_0x536bcd['getSelectionAffectedTableCells'](_0x2008d4['document']['selection']);if(!_0x367f1d['length'])return!0x1;const _0x451810=_0x367f1d[0x0]['findAncestor']('table'),_0x5d6821=_0x536bcd['getRowIndexes'](_0x367f1d),_0x24646e=_0x536bcd['getColumnIndexes'](_0x367f1d),_0x5416cf={'startRow':_0x5d6821['first'],'endRow':_0x5d6821['last'],'startColumn':_0x24646e['first'],'endColumn':_0x24646e['last']};return 0x1==_0x367f1d['length']&&(_0x5416cf['endRow']+=_0x536bcd['getRows'](_0x15b834)-0x1,_0x5416cf['endColumn']+=_0x536bcd['getColumns'](_0x15b834)-0x1),Re(_0x451810,_0x5416cf,_0x536bcd);}(_0x12a13b,_0x46c0a7,_0x579222['model'],_0x19a379,_0x165a8a)&&(_0x3fa952['stop'](),_0x2bb3d1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x579222['model']['change'](()=>{_0x579222['model']['insertContent'](_0x13b273[0x0],_0x13b273[0x1],_0x13b273[0x2],{'forceDefaultExecution':!0x0});const _0x385c83=_0x3415dc(),{rowInsertionRanges:_0x326b2f,columnInsertionRanges:_0x32b969,insertionRanges:_0x18a4f4,deletionRanges:_0x472791,cells:_0x38aaeb}=_0x2bb3d1;_0x326b2f['length']&&_0x1d8158['markMultiRangeInsertion'](_0x326b2f,'tablePasteRow',{'tablePasteChainId':_0x385c83}),_0x32b969['length']&&_0x1d8158['markMultiRangeInsertion'](_0x32b969,'tablePasteColumn',{'tablePasteChainId':_0x385c83}),_0x18a4f4['length']&&(_0x1d8158['markMultiRangeInsertion'](_0x18a4f4,'tablePaste',{'tablePasteChainId':_0x385c83,'skipNestingCheck':!0x0}),_0x18a4f4['forEach'](_0x2b22a3=>_0x2b22a3['detach']?.())),_0x472791['length']&&(_0x1d8158['markMultiRangeDeletion'](_0x472791,'tablePaste',{'tablePasteChainId':_0x385c83,'skipNestingCheck':!0x0}),_0x472791['forEach'](_0x100468=>_0x100468['detach']?.()));const _0x2e6336=_0x1d8158['markMultiRangeBlockFormat'](_0x38aaeb['map'](({element:_0x346d1e})=>_0x346d1e),{'formatGroupId':_0x3415dc()},[],'tablePasteCell',{'tablePasteChainId':_0x385c83});if(_0x2e6336){const _0x5389d6=_0x2e6336['getMarkers'](),_0x4198cf=[];for(const {element:_0x5bbc17,attributes:_0x44491d}of _0x38aaeb){if(!_0x44491d)continue;const _0x10d193=_0x579222['model']['createRangeOn'](_0x5bbc17),_0x2b85f3=_0x5389d6['find'](_0x1a17f4=>_0x1a17f4['getRange']()['isEqual'](_0x10d193));_0x2b85f3&&_0x4198cf['push']([_0x2b85f3['name'],_0x44491d]);}_0x4198cf['length']&&_0x2e6336['setAttribute']('markerAttributes',Object['fromEntries'](_0x4198cf));}_0x2bb3d1=null;}));},{'priority':_0x267b38['high']+0xa}),_0x579222['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1093af,_0x51216e)=>{const [_0x389d61,_0xa84a65,,_0x428f46]=_0x51216e;if(!_0x2bb3d1)return;_0x1093af['stop']();const _0x353b6f=_0x389d61['cell'],_0x3eebb0=_0xa84a65,_0x13ff17=ke(_0x353b6f),_0x5c7dee=ke(_0x3eebb0);_0x1093af['return']=_0x353b6f;let _0x53e2e4=null,_0x2176bc=null;if(_0x5c7dee||_0x13ff17){if(_0x13ff17&&!_0x5c7dee){_0x428f46['remove'](_0x353b6f['getChild'](0x0));for(const _0x45f19a of Array['from'](_0x3eebb0['getChildren']()))_0x428f46['insert'](_0x45f19a,_0x353b6f,'end');const _0x7118ec=_0x2bb3d1['rowInsertionIndexes']['includes'](_0x389d61['row']),_0x477fbf=_0x2bb3d1['columnInsertionIndexes']['includes'](_0x389d61['column']);_0x7118ec||_0x477fbf||(_0x53e2e4=_0x2fd4c8['fromRange'](_0x428f46['createRangeIn'](_0x353b6f)));}else _0x5c7dee&&!_0x13ff17&&(_0x2176bc=_0x428f46['createRangeIn'](_0x353b6f));}else{const _0x2ae320=_0x428f46['createElement']('tableCellSuggestion'),_0x2be121=_0x428f46['createElement']('tableCellSuggestion');_0x428f46['wrap'](_0x428f46['createRangeIn'](_0x353b6f),_0x2be121),_0x428f46['insert'](_0x2ae320,_0x353b6f,0x0);for(const _0x3c8c5a of Array['from'](_0x3eebb0['getChildren']()))_0x428f46['insert'](_0x3c8c5a,_0x2ae320,'end');_0x53e2e4=_0x2fd4c8['fromRange'](_0x428f46['createRangeOn'](_0x2ae320)),_0x2176bc=_0x2fd4c8['fromRange'](_0x428f46['createRangeOn'](_0x2be121));}const _0x1a8904=Array['from'](_0x3eebb0['getAttributes']())['filter'](([_0x5714cf])=>Pe['includes'](_0x5714cf));_0x2bb3d1['cells']['push']({'element':_0x353b6f,'attributes':_0x1a8904['length']?Object['fromEntries'](_0x1a8904):null}),_0x53e2e4&&_0x2bb3d1['insertionRanges']['push'](_0x53e2e4),_0x2176bc&&_0x2bb3d1['deletionRanges']['push'](_0x2176bc);},{'priority':'high'}),_0x19a379['on']('insertColumns',(_0x252472,_0x8a4ddd)=>{const [_0x2f4679,_0x4773dd={}]=_0x8a4ddd;if(!_0x2bb3d1)return;const _0x1accc0=_0x4773dd['at']||0x0,_0x5efe2c=_0x4773dd['columns']||0x1;_0x2bb3d1['columnInsertionIndexes']=new Array(_0x5efe2c)['fill'](_0x1accc0)['map']((_0x4e1c22,_0x1d0259)=>_0x4e1c22+_0x1d0259);for(const {cell:_0x51faa1}of _0x19a379['createTableWalker'](_0x2f4679,{'startColumn':_0x1accc0,'endColumn':_0x1accc0+_0x5efe2c-0x1}))_0x2bb3d1['columnInsertionRanges']['push'](_0x579222['model']['createRangeOn'](_0x51faa1));},{'priority':'low'}),_0x19a379['on']('insertRows',(_0x91be19,_0x3c6c54)=>{const [_0x46de04,_0x1f167c={}]=_0x3c6c54;if(!_0x2bb3d1)return;const _0x745f0a=_0x1f167c['at']||0x0,_0x492358=_0x1f167c['rows']||0x1;_0x2bb3d1['rowInsertionIndexes']=new Array(_0x492358)['fill'](_0x745f0a)['map']((_0x8e35c7,_0x21f9dd)=>_0x8e35c7+_0x21f9dd);for(const {cell:_0x3ef00b}of _0x19a379['createTableWalker'](_0x46de04,{'startRow':_0x745f0a,'endRow':_0x745f0a+_0x492358-0x1}))_0x2bb3d1['rowInsertionRanges']['push'](_0x579222['model']['createRangeOn'](_0x3ef00b));},{'priority':'low'}),_0x1d8158['descriptionFactory']['registerDescriptionCallback'](_0x432c96=>{if(_0x432c96['subType']&&_0x432c96['subType']['startsWith']('tablePaste'))return _0x432c96['previous']?{}:{'type':'insertion','content':o(_0x579222['locale'],'*Replace\x20table\x20cells*')};});const _0xa0d5c=()=>!0x1;for(const _0x22b7fd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1d8158['_suggestionFactory']['registerCustomCallback']('insertion',_0x22b7fd,'join',_0xa0d5c),_0x1d8158['_suggestionFactory']['registerCustomCallback']('deletion',_0x22b7fd,'join',_0xa0d5c),_0x1d8158['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22b7fd,'join',_0xa0d5c);_0x1d8158['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa0d5c),_0x1d8158['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa8492a,_0x26350c,_0x16bd88)=>{const _0x5424ca=_0xa8492a['map'](_0x5a7b17=>_0x5a7b17['getContainedElement']())['filter'](_0x125217=>_0x125217),_0x3b1663=new Map(_0x5424ca['map'](_0x382f74=>[_0x382f74,null]));if(_0x2bb3d1){for(const {element:_0x3147b7,attributes:_0x695ba8}of _0x2bb3d1['cells'])_0x695ba8&&_0x3b1663['set'](_0x3147b7,_0x695ba8);}else{if(_0x16bd88&&_0x16bd88['markerAttributes'])for(const [_0x2031a6,_0x158d74]of Object['entries'](_0x16bd88['markerAttributes'])){const _0x86af5a=_0x579222['model']['markers']['get'](_0x2031a6),_0x1faa8f=_0x86af5a?_0x86af5a['getRange']()['getContainedElement']():null;_0x1faa8f&&_0x3b1663['set'](_0x1faa8f,_0x158d74);}}_0x579222['model']['change'](_0x53628a=>{for(const [_0x5a3249,_0x2e9720]of _0x3b1663)_0x53628a['setAttributes']({...we,..._0x2e9720},_0x5a3249);});});const _0x473423=(_0x4d9417,_0x46510b)=>{_0x1d8158['_suggestionFactory']['registerCustomCallback'](_0x4d9417,'tablePaste',_0x46510b,(_0x5a165c,_0x2f3c42,_0x17262e)=>{_0x579222['model']['change'](_0x39400a=>{const _0x1bfc99=[];for(const _0x55f870 of _0x5a165c){const _0x281d97=_0x55f870['start']['nodeAfter'];_0x281d97['is']('element','tableCellSuggestion')&&_0x1bfc99['push'](_0x281d97);}_0x1d8158['_suggestionFactory']['getSuggestionCallback'](_0x4d9417,null,_0x46510b)(_0x5a165c,_0x2f3c42,_0x17262e);for(const _0x5580b6 of _0x1bfc99)'$graveyard'!=_0x5580b6['root']['rootName']&&_0x39400a['unwrap'](_0x5580b6);});});};_0x473423('insertion','accept'),_0x473423('insertion','discard'),_0x473423('deletion','accept'),_0x473423('deletion','discard'),_0x1d8158['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x15ecdb=>{const _0x14594f=_0x15ecdb['map'](_0x4a8393=>_0x4a8393['getContainedElement']()),_0x4fa4e6=_0x14594f[0x0]['findAncestor']('table'),{minRow:_0x5de682,maxRow:_0x2f9c38}=_0x530250['_getCoordsForCells'](_0x14594f);_0x19a379['removeRows'](_0x4fa4e6,{'at':_0x5de682,'rows':_0x2f9c38-_0x5de682+0x1});}),_0x1d8158['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x6d0d94=>{const _0x1b33c5=_0x6d0d94['map'](_0x23b11e=>_0x23b11e['getContainedElement']()),_0x4374a8=_0x1b33c5[0x0]['findAncestor']('table'),{minColumn:_0x1405b8,maxColumn:_0xa8a4f3}=_0x530250['_getCoordsForCells'](_0x1b33c5);_0x19a379['removeColumns'](_0x4374a8,{'at':_0x1405b8,'columns':_0xa8a4f3-_0x1405b8+0x1});});const _0x1a9c21=(_0x4adbfa,_0x496351)=>{if(!_0x496351['subType']||!_0x496351['subType']['startsWith']('tablePaste'))return;const _0x21c465=_0x496351['attributes']['tablePasteChainId'],_0x5b0657=_0x1d8158['getSuggestions']()['filter'](_0xf166f=>_0xf166f['isInContent']&&_0xf166f['attributes']&&_0xf166f['attributes']['tablePasteChainId']==_0x21c465);_0x5b0657['length']&&_0x496351['getAllAdjacentSuggestions']()['length']!=_0x5b0657['length']&&_0x5b0657['reduce']((_0x3147c8,_0x1283be)=>(_0x3147c8['next']=_0x1283be,_0x1283be['previous']=_0x3147c8,_0x1283be));};function _0x2030c6(_0x4970ca,_0x457de9=!0x0){const {id:_0x59668d}=_0x1d8158['_splitMarkerName'](_0x4970ca['markerName']),_0x5857cf=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x562f35=_0x1d8158['activeMarkers']['includes'](_0x4970ca['markerName']);return _0x562f35&&_0x5857cf['push']('ck-suggestion-marker--active'),{'classes':_0x5857cf,'attributes':{'data-suggestion':_0x59668d},'priority':_0x562f35&&_0x457de9?0xbc2:0xbb8};}_0x1d8158['on']('suggestionLoaded',_0x1a9c21,{'priority':'high'}),_0x1d8158['on']('suggestionUnloaded',_0x1a9c21,{'priority':'high'}),_0x579222['model']['document']['registerPostFixer'](()=>{let _0x1169fd=!0x1;const _0x4846fe=Array['from'](_0x579222['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16c3eb,data:_0x4e424d}of _0x4846fe){const {group:_0x5d0781,type:_0x2d54b2,id:_0xa822e0}=_0x1d8158['_splitMarkerName'](_0x16c3eb);if('suggestion'!=_0x5d0781||'deletion'!=_0x2d54b2||_0x4e424d['oldRange'])continue;if(!_0x1d8158['hasSuggestion'](_0xa822e0))continue;const _0x49adb4=_0x1d8158['getSuggestion'](_0xa822e0)['getRanges'](),_0x3fda85=_0x579222['plugins']['get']('Users')['me'];for(const _0x4f8f54 of _0x1d8158['getSuggestions']()){if(!_0x4f8f54['isInContent']||_0x4f8f54['author']!=_0x3fda85)continue;if('formatBlock'!=_0x4f8f54['type']||'tablePasteCell'!=_0x4f8f54['subType'])continue;if(_0x4f8f54['getRanges']()['every'](_0x4d9113=>_0x49adb4['some'](_0x33b9d6=>_0x33b9d6['containsRange'](_0x4d9113,!0x0)))){for(const _0x421196 of _0x4f8f54['getAllAdjacentSuggestions']())_0x421196['isInContent']&&(_0x421196['discard'](),_0x1169fd=!0x0);}}}return _0x1169fd;}),_0x579222['model']['document']['registerPostFixer'](_0x119134=>{const _0x29087b=_0x579222['commands']['get']('redo');if(!_0x29087b||!_0x29087b['_createdBatches']['has'](_0x119134['batch']))return!0x1;let _0x24f30b=!0x1;const _0x82e341=_0x579222['plugins']['get']('Users')['me'],_0x16028b=_0x579222['model']['document']['differ']['getChanges'](),_0x49e837=Array['from'](_0x579222['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x8f1ee3,data:_0x1a7ac4})=>{const {group:_0x3fa35d,subType:_0x3c97b9,authorId:_0x2ab3ca}=_0x1d8158['_splitMarkerName'](_0x8f1ee3);return'suggestion'==_0x3fa35d&&'tablePaste'==_0x3c97b9&&_0x2ab3ca==_0x82e341['id']&&!_0x1a7ac4['oldRange'];});for(const _0x4a24f8 of _0x16028b){if('insert'!=_0x4a24f8['type']||'tableCellSuggestion'!=_0x4a24f8['name']||0x1!=_0x4a24f8['length'])continue;const _0x530435=_0x119134['createRange'](_0x4a24f8['position'],_0x4a24f8['position']['getShiftedBy'](0x1));if(!_0x49e837['find'](({data:_0x23312b})=>_0x23312b['newRange']['isEqual'](_0x530435))){for(const {name:_0x35f146,data:_0x3f1443}of _0x49e837)if(_0x530435['containsRange'](_0x3f1443['newRange'])){_0x119134['updateMarker'](_0x35f146,{'range':_0x530435}),_0x24f30b=!0x0;break;}}}return _0x24f30b;}),_0x579222['model']['document']['registerPostFixer'](_0x402b85=>{let _0x43106e=!0x1;const _0x129c6b=_0x579222['plugins']['get']('Users')['me'],_0x3c1d24=_0x1d8158['getSuggestions']()['filter'](_0x4d74ac=>_0x4d74ac['isInContent']&&_0x4d74ac['author']==_0x129c6b),_0x1ac3a3=new Set(),_0x595e10=new Set();for(const _0x5217b0 of _0x3c1d24)if('tablePaste'==_0x5217b0['subType'])for(const _0x306903 of _0x5217b0['getMarkers']()){const _0x521fc4=_0x306903['getRange']()['getContainedElement']();if(_0x521fc4){if(_0x521fc4['is']('element','tableCellSuggestion')&&ke(_0x521fc4)){_0x5217b0['removeMarker'](_0x306903['name']),_0x1ac3a3['add'](_0x521fc4),_0x43106e=!0x0;const _0x41d8f2=_0x521fc4['nextSibling'],_0x4ad907=_0x521fc4['previousSibling'],_0xe2e722=_0x41d8f2&&_0x41d8f2['is']('element','tableCellSuggestion'),_0x455001=_0x4ad907&&_0x4ad907['is']('element','tableCellSuggestion');_0xe2e722&&!_0x1ac3a3['has'](_0x41d8f2)&&_0x595e10['add'](_0x41d8f2),_0x455001&&!_0x1ac3a3['has'](_0x4ad907)&&_0x595e10['add'](_0x4ad907);}else _0x521fc4['is']('element','paragraph')&&_0x521fc4['isEmpty']&&(_0x5217b0['removeMarker'](_0x306903['name']),_0x43106e=!0x0);}}else{if('tablePasteCell'==_0x5217b0['subType']){if(!_0x5217b0['attributes']||!_0x5217b0['attributes']['tablePasteChainId'])continue;const _0x2bfc38=_0x5217b0['attributes']['markerAttributes'];if(_0x2bfc38&&Object['keys'](_0x2bfc38)['length'])continue;const _0x289976=_0x5217b0['attributes']['tablePasteChainId'];let _0x1e963f=!0x0,_0x4fc7e3=!0x0;for(const _0x3cdae3 of _0x3c1d24)if(_0x3cdae3['subType']&&_0x3cdae3['subType']['startsWith']('tablePaste')){if(!_0x3cdae3['attributes']['tablePasteChainId']){_0x4fc7e3=!0x1;break;}if(_0x3cdae3['id']!=_0x5217b0['id']&&_0x3cdae3['attributes']['tablePasteChainId']==_0x289976){_0x1e963f=!0x1;break;}}_0x4fc7e3&&_0x1e963f&&(_0x5217b0['removeMarkers'](),_0x43106e=!0x0);}}for(const _0x217267 of _0x1ac3a3)_0x402b85['remove'](_0x217267);for(const _0x16184b of _0x595e10)_0x402b85['unwrap'](_0x16184b);return _0x43106e;}),_0x579222['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x50128a,_0x41291d)=>_0x2030c6(_0x50128a),'converterPriority':'high'}),_0x579222['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3c5b72,_0xbc6112)=>_0xbc6112['options']['showSuggestionHighlights']?_0x2030c6(_0x3c5b72,!0x1):null,'converterPriority':'high'});const _0x471064=_0x579222['editing']['view'];this['listenTo'](_0x471064['document'],'clipboardOutput',(_0x107cda,_0x824ad8)=>{const _0x20be8b=[];for(const _0x1987e0 of _0x471064['createRangeIn'](_0x824ad8['content'])['getItems']())_0x1987e0['is']('element','suggestion-td')&&_0x20be8b['push'](_0x1987e0);_0x471064['change'](_0x3164b1=>{for(const _0x394e90 of _0x20be8b)_0x3164b1['move'](_0x3164b1['createRangeIn'](_0x394e90),_0x3164b1['createPositionBefore'](_0x394e90)),_0x3164b1['remove'](_0x394e90);});});}}function ke(_0x34c2b6){if(_0x34c2b6['isEmpty'])return!0x0;const _0x25fc29=_0x34c2b6['getChild'](0x0);return _0x25fc29['is']('element','paragraph')&&_0x25fc29['isEmpty'];}function Re(_0x14fabb,_0x2cc548={},_0xd873a1){for(const {isAnchor:_0x110adf,cellHeight:_0x1f2aea,cellWidth:_0x22c2a1}of _0xd873a1['createTableWalker'](_0x14fabb,{'includeAllSlots':!0x0,..._0x2cc548}))if(!_0x110adf||0x1!=_0x1f2aea||0x1!=_0x22c2a1)return!0x1;return!0x0;}class Nt extends _0x440856{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x546a23=this['editor']['plugins']['get']('TrackChangesEditing');_0x546a23['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x546a23['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x546a23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x546a23['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x546a23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x546a23['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x39e06c,_0x916b77){const _0x4eecf5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a3f14=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x147c49=_0x916b77['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3864f4=_0x2a3f14['getColumnGroupElement'](_0x147c49);let _0x2f1443=_0x3864f4?_0x2a3f14['getTableColumnsWidths'](_0x3864f4):null,_0x364fa3=_0x147c49['getAttribute']('tableWidth')||null;const _0x25ffd4=_0x916b77['tableWidth']||_0x364fa3,_0x40ed85=_0x916b77['columnWidths']||_0x2f1443,_0x54a669=this['editor']['plugins']['get']('Users')['me'];for(const _0x2619b5 of _0x4eecf5['getSuggestions']()){const _0x2cb0ca=_0x2619b5['getContainedElement']();if('resizeTable'===_0x2619b5['subType']&&_0x2cb0ca===_0x147c49){_0x2619b5['author']!==_0x54a669&&_0x2619b5['discard']();const _0x454a9c=_0x2619b5['data']['commandParams'];_0x364fa3=_0x454a9c[0x0]['tableWidth'],_0x2f1443=_0x454a9c[0x0]['columnWidths'];break;}}_0x39e06c({'table':_0x147c49,'tableWidth':_0x25ffd4,'columnWidths':_0x40ed85}),_0x4eecf5['markBlockFormat'](_0x147c49,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x364fa3,'columnWidths':_0x2f1443}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x223a51){if('formatBlock'!=_0x223a51['type']&&'formatInline'!=_0x223a51['type'])return;const {data:_0x3b225e}=_0x223a51;if(_0x3b225e&&'resizeTable'===_0x3b225e['formatGroupId']){const _0x255805='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x255805)};}}}class Dt extends _0x440856{['afterInit'](){const _0x35567c=this['editor'];_0x35567c['plugins']['has']('Template')&&_0x35567c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x440856{['afterInit'](){const _0x53fb17=this['editor'];if(!_0x53fb17['commands']['get']('insertTableOfContents'))return;_0x53fb17['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4b3d73=_0x53fb17['plugins']['get']('TrackChangesEditing'),_0x3885f6=_0x53fb17['locale'];_0x4b3d73['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2ae281=>o(_0x3885f6,'ELEMENT_TABLE_OF_CONTENTS',_0x2ae281));}}class $t extends _0x440856{['afterInit'](){const _0x48bc98=this['editor'];if(!_0x48bc98['plugins']['has']('Title'))return;const _0x11bec1=_0x48bc98['plugins']['get']('TrackChangesEditing');_0x11bec1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x48bc98['locale'],'ELEMENT_TITLE')),_0x48bc98['model']['document']['registerPostFixer'](_0x88422c=>{let _0x4ba477=!0x1;const _0x5e7a46=Array['from'](_0x48bc98['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1684b6,data:_0x4ccc00}of _0x5e7a46){const {group:_0x519515}=_0x11bec1['_splitMarkerName'](_0x1684b6);if('suggestion'!==_0x519515||!_0x4ccc00['newRange'])continue;const _0x2d10f6=_0x4ccc00['newRange'],_0x105733=_0x2d10f6['end']['nodeBefore'];if(!_0x105733||!_0x105733['is']('element','title-content'))continue;if(!_0x2d10f6['start']['isTouching'](_0x2d10f6['end']))continue;const _0x1a4b8a=_0x48bc98['model']['schema']['getNearestSelectionRange'](_0x2d10f6['end'],'forward');if(_0x1a4b8a&&_0x1a4b8a['isCollapsed']){const _0x492700=_0x88422c['createRange'](_0x2d10f6['start'],_0x1a4b8a['start']);_0x492700['isEqual'](_0x2d10f6)||(_0x88422c['updateMarker'](_0x1684b6,{'range':_0x492700}),_0x4ba477=!0x0);}_0x4ba477||(_0x88422c['removeMarker'](_0x1684b6),_0x4ba477=!0x0);}return _0x4ba477;});}}class Bt extends _0x440856{['afterInit'](){const _0x356d79=this['editor'],_0x4eb0af=_0x356d79['plugins']['get']('TrackChangesEditing');_0x356d79['plugins']['has']('UndoEditing')&&(_0x4eb0af['enableCommand']('undo'),_0x4eb0af['enableCommand']('redo'));}}class xt extends _0x440856{static get['requires'](){return[It];}['afterInit'](){const _0x360e12=this['editor'];if(!_0x360e12['plugins']['has']('TableCaptionEditing'))return;_0x360e12['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x440856{['tableProperties'];['tableCellProperties'];constructor(_0x5bbe02){super(_0x5bbe02),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 _0x22761d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x290ebc of this['tableProperties'])_0x22761d['enableCommand'](_0x290ebc,(_0x46f54f,_0x2b54ba)=>{const _0x321da3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x290ebc,[_0x321da3],this['tableProperties'],'tableProperties',_0x46f54f,_0x2b54ba);});_0x22761d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x22761d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22761d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xa2294b,_0x12b622)=>this['handleDiscardAction'](this['tableProperties'],_0xa2294b,_0x12b622)),_0x22761d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4c4467 of this['tableCellProperties'])_0x22761d['enableCommand'](_0x4c4467,(_0x258388,_0x525e98)=>{const _0x115c74=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4c4467,_0x115c74,this['tableCellProperties'],'tableCellProperties',_0x258388,_0x525e98);});_0x22761d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x22761d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22761d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x542c45,_0xa292af)=>this['handleDiscardAction'](this['tableCellProperties'],_0x542c45,_0xa292af)),_0x22761d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x22761d['descriptionFactory']['registerDescriptionCallback'](_0xac57a6=>this['handleSuggestionDescription'](_0xac57a6));}['_handlePropertyChange'](_0x3c90af,_0x29fa08,_0x22ac00,_0x479d3a,_0x38fb9b,_0x1d15e8){const _0x5bd30b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1d15e8['batch'],()=>{for(const _0x55aa20 of _0x29fa08){if(this['_getSuggestion'](_0x55aa20,_0x479d3a))_0x38fb9b(_0x1d15e8);else{const _0x1ab5ab={};for(const _0x549a17 of _0x22ac00){const _0xde2e8e=_0x55aa20['getAttribute'](_0x549a17);void 0x0!==_0xde2e8e&&(_0x1ab5ab[_0x549a17]=_0xde2e8e);}_0x38fb9b(_0x1d15e8),_0x5bd30b['markBlockFormat'](_0x55aa20,{'commandParams':[_0x1ab5ab]},[],_0x479d3a);}}});}['handleDiscardAction'](_0x3d3d49,_0x4812cb,_0x342c1c){const _0x4e8bc9=_0x4812cb[0x0]['start']['nodeAfter'],_0x56a82b=_0x342c1c['commandParams'][0x0];this['editor']['model']['change'](_0x286523=>{for(const _0x597f07 of _0x3d3d49)void 0x0!==_0x56a82b[_0x597f07]?_0x286523['setAttribute'](_0x597f07,_0x56a82b[_0x597f07],_0x4e8bc9):_0x286523['removeAttribute'](_0x597f07,_0x4e8bc9);});}['handleSuggestionDescription'](_0x2b608c){if(_0x2b608c['data'])switch(_0x2b608c['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'](_0xa75769,_0x1eaa4c){const _0x15a1fc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x27c62a of _0x15a1fc['getSuggestions']({'skipNotAttached':!0x0})){const _0x5b309b=_0x27c62a['getContainedElement']();if(_0x27c62a['subType']===_0x1eaa4c&&_0x5b309b===_0xa75769)return _0x27c62a;}return null;}}const m='$elementName';class p extends _0x440856{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x185b78,_0x16c1bd,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(_0xf6fdc6){function _0x52b491(_0x22ff9c){return _0x22ff9c['map'](_0xe8a7de=>String['fromCharCode'](_0xe8a7de))['join']('');}super(_0xf6fdc6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xc20b5d,_0x23f1e2,_0x21d811,_0x534f44)=>{this['_model']['change'](()=>{for(const _0x49d340 of[..._0x534f44,..._0x21d811])this['_model']['markers']['has'](_0x49d340)&&_0xf6fdc6['editing']['reconvertMarker'](_0x49d340);});}),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']=_0xf6fdc6['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(),_0xf6fdc6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xf6fdc6['config']['get']('trackChanges.trackFormatChanges'),_0xf6fdc6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xf6fdc6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xf6fdc6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x52b491([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x52b491([0x34,0x30,0x34,0x38,0x31,0x36,0x31,0x34]);}['init'](){const _0x24b1cc=this['editor'],_0x508b58=(_0x3563df,_0x478c8a)=>{if('attribute'!=_0x3563df)return'ck-suggestion-marker-'+_0x3563df;const _0x3d88b7=_0x478c8a['split']('|')[0x0];return this['_isBlockAttribute'](_0x3d88b7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x24b1cc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4aad0d=>{const {id:_0x5be012,type:_0x292f60,subType:_0x5e5b49}=this['_splitMarkerName'](_0x4aad0d['markerName']),_0x1a375f=['ck-suggestion-marker',_0x508b58(_0x292f60,_0x5e5b49)];let _0x12f0e2=0xbb8;return this['activeMarkers']['includes'](_0x4aad0d['markerName'])&&(_0x1a375f['push']('ck-suggestion-marker--active'),_0x12f0e2=0xbc2),'deletion'==_0x292f60&&(_0x12f0e2+=0x5),{'classes':_0x1a375f,'attributes':{'data-suggestion':_0x5be012},'priority':_0x12f0e2};}}),_0x24b1cc['conversion']['for']('dataDowncast')['add'](_0x33880b=>{_0x33880b['on']('addMarker:suggestion',(_0x1c4225,_0x557739,_0xb57f8d)=>{if(!_0xb57f8d['options']['showSuggestionHighlights'])return;const _0xf844ae=_0x557739['item'];if(!_0xf844ae)return;const _0x4dc48e=_0xb57f8d['mapper']['toViewElement'](_0xf844ae);_0x24b1cc['model']['schema']['isObject'](_0xf844ae)&&_0x4dc48e&&!_0x4dc48e['getCustomProperty']('widget')&&_0x4dc48e['is']('containerElement')&&_0x1b9eb8(_0x4dc48e,_0xb57f8d['writer']);},{'priority':'high'});}),_0x24b1cc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x42d212,_0x294c2d)=>{if(!_0x294c2d['options']['showSuggestionHighlights'])return null;const {type:_0x2e2582,subType:_0x107d23}=this['_splitMarkerName'](_0x42d212['markerName']);return{'classes':['ck-suggestion-marker',_0x508b58(_0x2e2582,_0x107d23)],'priority':0xbb8};}});const _0x2935f7=({showActiveMarkers:_0x4287f9=!0x0,isAttributeSuggestion:_0xcc24a1=!0x1}={})=>(_0x15a868,_0x467613,_0x43b311)=>{if(!_0x467613['item'])return;const {id:_0x12ac40}=this['_splitMarkerName'](_0x467613['markerName']);if(_0xcc24a1){const _0x5d4d68=this['_suggestions']['get'](_0x12ac40),_0x29c354=this['_getAttributeKey'](_0x5d4d68);if(!this['_isBlockAttribute'](_0x29c354))return;}if(_0x467613['item']['is']('selection'))return void _0x43b311['consumable']['consume'](_0x467613['item'],_0x15a868['name']);const _0xebe757=_0x43b311['mapper']['toViewElement'](_0x467613['item']);if(_0x467613['item']['is']('element')&&_0x24b1cc['model']['schema']['isBlock'](_0x467613['item'])&&!_0xebe757['getCustomProperty']('addHighlight')){_0x43b311['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xebe757),_0x43b311['writer']['setAttribute']('data-suggestion',_0x12ac40,_0xebe757),_0x43b311['mapper']['bindElementToMarker'](_0xebe757,_0x467613['markerName']),_0x4287f9&&(this['activeMarkers']['includes'](_0x467613['markerName'])?_0x43b311['writer']['addClass']('ck-suggestion-marker--active',_0xebe757):_0x43b311['writer']['removeClass']('ck-suggestion-marker--active',_0xebe757));for(const _0x4e4e65 of _0x24b1cc['model']['createRangeIn'](_0x467613['item'])['getItems']())_0x43b311['consumable']['consume'](_0x4e4e65,_0x15a868['name']);_0x43b311['consumable']['consume'](_0x467613['item'],_0x15a868['name']);}};_0x24b1cc['conversion']['for']('dataDowncast')['add'](_0x5aae82=>{_0x5aae82['on']('addMarker:suggestion:formatBlock',(_0x3b7386,_0x5e6b3f,_0x3b262c)=>{_0x3b262c['options']['showSuggestionHighlights']&&_0x2935f7({'showActiveMarkers':!0x1})(_0x3b7386,_0x5e6b3f,_0x3b262c);},{'priority':'highest'});}),_0x24b1cc['conversion']['for']('dataDowncast')['add'](_0x46a907=>{_0x46a907['on']('addMarker:suggestion:attribute',(_0x16433f,_0x121e6a,_0x17b7c8)=>{_0x17b7c8['options']['showSuggestionHighlights']&&_0x2935f7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x16433f,_0x121e6a,_0x17b7c8);},{'priority':'highest'});}),_0x24b1cc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2adbb4,_0x400879)=>_0x400879['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2adbb4['substr'](0xb)}}),_0x24b1cc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2f62e8,{writer:_0x517860})=>{let _0x2ffbb2='suggestion:'+_0x2f62e8['getAttribute']('suggestion-type')+':'+_0x2f62e8['getAttribute']('id');return _0x2f62e8['getAttribute']('marker-count')&&(_0x2ffbb2+=':'+_0x2f62e8['getAttribute']('marker-count')),_0x517860['createElement']('$marker',{'data-name':_0x2ffbb2});}}),_0x24b1cc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x24b1cc['conversion']['for']('editingDowncast')['add'](_0x5e7c8e=>{_0x5e7c8e['on']('addMarker:suggestion:formatBlock',_0x2935f7(),{'priority':'high'});}),_0x24b1cc['conversion']['for']('editingDowncast')['add'](_0x5ebe9b=>{_0x5ebe9b['on']('addMarker:suggestion:attribute',_0x2935f7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x24b1cc['conversion']['for']('editingDowncast')['add'](_0x440c21=>{_0x440c21['on']('removeMarker:suggestion:formatBlock',(_0x34c1e2,_0x35cfdf,_0x51cdf0)=>{const _0x18656a=_0x51cdf0['mapper']['markerNameToElements'](_0x35cfdf['markerName']);if(_0x18656a){for(const _0x3698d7 of _0x18656a)_0x3698d7['getCustomProperty']('addHighlight')||(_0x51cdf0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3698d7),_0x51cdf0['writer']['removeAttribute']('data-suggestion',_0x3698d7),_0x51cdf0['mapper']['unbindElementFromMarkerName'](_0x3698d7,_0x35cfdf['markerName']));}},{'priority':'high'});}),_0x24b1cc['conversion']['for']('editingDowncast')['add'](_0x20b648=>{_0x20b648['on']('removeMarker:suggestion:attribute',(_0x24497f,_0x491262,_0x8098b9)=>{const _0xc49abf=_0x8098b9['mapper']['markerNameToElements'](_0x491262['markerName']);if(!_0xc49abf)return;const {id:_0x222d17}=this['_splitMarkerName'](_0x491262['markerName']),_0x332931=this['_suggestions']['get'](_0x222d17),_0x5add8d=this['_getAttributeKey'](_0x332931);if(this['_isBlockAttribute'](_0x5add8d)){for(const _0x1633da of _0xc49abf)_0x1633da['getCustomProperty']('addHighlight')||(_0x8098b9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1633da),_0x8098b9['writer']['removeAttribute']('data-suggestion',_0x1633da),_0x8098b9['mapper']['unbindElementFromMarkerName'](_0x1633da,_0x491262['markerName']));}},{'priority':'high'});}),_0x24b1cc['model']['document']['registerPostFixer'](_0x2f62c7=>{let _0x507d21=!0x1;const _0x39249f=Array['from'](_0x24b1cc['model']['document']['differ']['getChangedMarkers']()),_0x14970a=new Set();for(const {name:_0x1b412,data:_0x1cd8f8}of _0x39249f){const {group:_0x379ddc,type:_0x2053a5,subType:_0x24fea4,id:_0x33c7f0}=this['_splitMarkerName'](_0x1b412);if('suggestion'!==_0x379ddc)continue;const _0x1e5560=this['_suggestions']['get'](_0x33c7f0);if(null!=_0x1cd8f8['newRange']){'formatInline'==_0x2053a5&&(_0x507d21=_0x507d21||Ut(_0x1cd8f8['newRange'],_0x1b412,_0x2f62c7,_0x24b1cc['model']['schema']));const _0x3421ff='attribute'==_0x2053a5&&this['_isBlockAttribute'](_0x24fea4['split']('|')[0x0]);if(_0x1cd8f8['newRange']['isCollapsed']||'$graveyard'==_0x1cd8f8['newRange']['root']['rootName']||'formatBlock'==_0x2053a5&&!Ft(_0x1cd8f8['newRange'])||_0x3421ff&&!Ft(_0x1cd8f8['newRange'])||'deletion'==_0x2053a5&&!(!Vt(_0x173bc1=_0x1cd8f8['newRange'])&&!function(_0x53ba10){return _0x53ba10['start']['parent']==_0x53ba10['end']['nodeBefore']&&_0x53ba10['start']['isAtEnd'];}(_0x173bc1)))_0x2f62c7['removeMarker'](_0x1b412),_0x507d21=!0x0;else{if(!_0x1e5560||!_0x1e5560['isInContent'])continue;if(_0x1cd8f8['newRange']&&_0x1cd8f8['oldRange']&&_0x1cd8f8['newRange']['isEqual'](_0x1cd8f8['oldRange']))continue;_0x14970a['add'](_0x1e5560);}}}var _0x173bc1;return _0x14970a['size']>0x0&&(_0x507d21=!!this['_joinWithAdjacentSuggestions'](_0x14970a)||_0x507d21),_0x507d21;}),_0x24b1cc['model']['document']['registerPostFixer'](_0x367a03=>{let _0x37ee0c=!0x1;for(const _0x129d26 of _0x24b1cc['model']['document']['differ']['getChanges']())if('insert'==_0x129d26['type'])for(const _0x3ae32a of this['_suggestions']['values']()){if(_0x3ae32a['isMultiRange']||!_0x3ae32a['isInContent'])continue;const _0x48deae='formatBlock'==_0x3ae32a['type'],_0x3c676e=this['_getAttributeKey'](_0x3ae32a),_0xb859f1=_0x3c676e&&this['_isBlockAttribute'](_0x3c676e);if(!_0x48deae&&!_0xb859f1)continue;const _0x172f8e=_0x3ae32a['getFirstRange']();if(_0x172f8e['start']['parent']!=_0x172f8e['end']['parent']&&!_0x172f8e['end']['isAtEnd']){const _0x234993=_0x24b1cc['model']['createPositionAt'](_0x172f8e['start']['nodeAfter'],'end'),_0x29c188=_0x24b1cc['model']['createRange'](_0x172f8e['start'],_0x234993);_0x367a03['updateMarker'](_0x3ae32a['getFirstMarker'](),{'range':_0x29c188}),_0x37ee0c=!0x0;}}return _0x37ee0c;}),_0x24b1cc['model']['document']['registerPostFixer'](_0x1190a5=>this['_processAttributeChanges'](_0x1190a5)),_0x24b1cc['model']['document']['registerPostFixer'](_0x423910=>!_0x423910['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x423910)),_0x24b1cc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x24b1cc['model']['document']['on']('change:data',(_0x3f5f94,_0x311575)=>{if(!_0x311575['isLocal']||_0x311575['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x278ff8=_0x24b1cc['model']['document']['differ']['getChanges']();if(0x0==_0x278ff8['length'])return;const _0x94df78=[],_0x38706b=_0x278ff8['filter'](_0x1bd1f6=>'attribute'==_0x1bd1f6['type']),_0x40103b=_0x278ff8['filter'](_0x3c87aa=>'insert'==_0x3c87aa['type']&&'$text'!=_0x3c87aa['name']);for(const _0x2b3ffb of _0x38706b)this['_isRegisteredAttribute'](_0x2b3ffb['attributeKey'])&&_0x94df78['push']({'key':_0x2b3ffb['attributeKey'],'newValue':_0x2b3ffb['attributeNewValue'],'oldValue':_0x2b3ffb['attributeOldValue'],'range':Pt(_0x2b3ffb['range'],_0x24b1cc['model'])});for(const _0x4660e3 of _0x40103b){if('rename'!=_0x4660e3['action']&&'refresh'!=_0x4660e3['action'])continue;const _0x1a9189=Lt(_0x4660e3['position']['nodeAfter'],_0x24b1cc['model']),_0x46478b=_0x4660e3['before'];'rename'==_0x4660e3['action']&&_0x94df78['push']({'key':m,'newValue':_0x4660e3['name'],'oldValue':_0x46478b['name'],'range':_0x1a9189});for(const [_0x5aec34,_0xc73d5b]of _0x46478b['attributes']){if(!this['_isRegisteredAttribute'](_0x5aec34))continue;const _0x263262=_0x4660e3['attributes']['get'](_0x5aec34);_0xc73d5b!==_0x263262&&_0x94df78['push']({'key':_0x5aec34,'newValue':_0x263262,'oldValue':_0xc73d5b,'range':_0x1a9189});}for(const [_0x3d48a5,_0x45ac3a]of _0x4660e3['attributes'])this['_isRegisteredAttribute'](_0x3d48a5)&&(_0x46478b['attributes']['has'](_0x3d48a5)||_0x94df78['push']({'key':_0x3d48a5,'newValue':_0x45ac3a,'oldValue':null,'range':_0x1a9189}));}0x0!=_0x94df78['length']&&_0x24b1cc['model']['enqueueChange'](_0x311575,_0x3b667a=>{const _0x1949e4=_0x3415dc();for(const {range:_0x382744,key:_0x56b0b3,oldValue:_0x1fb21b,newValue:_0x263030}of _0x94df78)this['markAttributeChange'](_0x382744,_0x56b0b3,_0x1fb21b,_0x263030,{'groupId':_0x1949e4});this['_reduceExistingSuggestions'](_0x3b667a,_0x94df78);});},{'priority':'lowest'}),_0x24b1cc['model']['markers']['on']('update:suggestion',(_0xe7b418,_0x5927fc,_0x226662)=>{if(null==_0x226662){const {id:_0x3dff16}=this['_splitMarkerName'](_0x5927fc['name']),_0x329cd4=this['_suggestions']['get'](_0x3dff16);_0x329cd4&&_0x329cd4['addMarkerName'](_0x5927fc['name']);}}),_0x24b1cc['model']['document']['on']('change:data',()=>{const _0x33a42c=Array['from'](_0x24b1cc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x36d634=>'suggestion'===this['_splitMarkerName'](_0x36d634['name'])['group']);if(0x0===_0x33a42c['length'])return;_0x33a42c['sort']((_0x1d5bbc,_0x5b35ff)=>{const _0x341432=_0x1d5bbc['data']['oldRange'],_0x5e34fb=_0x5b35ff['data']['oldRange'];return null===_0x341432&&null===_0x5e34fb?0x0:null===_0x341432&&null!==_0x5e34fb?-0x1:null!==_0x341432&&null===_0x5e34fb?0x1:_0x341432['start']['isBefore'](_0x5e34fb['start'])?-0x1:0x1;});const _0xfcec2f=new Set(),_0x129c58=new Set();for(const {name:_0x486a58,data:_0x13fe43}of _0x33a42c){const {id:_0x4f425b}=this['_splitMarkerName'](_0x486a58);if(null===_0x13fe43['oldRange']){const _0x3f6306=this['_handleNewSuggestionMarker'](_0x486a58);_0x129c58['add'](_0x3f6306);}else{const _0x4edecc=this['_suggestions']['get'](_0x4f425b);null!==_0x13fe43['newRange']||_0x4edecc['isInContent']?(_0xfcec2f['add'](_0x4edecc['head']),_0x129c58['add'](_0x4edecc)):this['_removeSuggestion'](_0x4edecc);}}_0x129c58['size']>0x0&&this['_refreshSuggestionsChain'](_0x129c58);for(const _0x110ea7 of _0xfcec2f)this['fire']('suggestionChanged',_0x110ea7);}),_0x24b1cc['model']['on']('applyOperation',(_0x97aed1,_0x333a9c)=>{const _0x19b45f=_0x333a9c[0x0];if(!this['_suggestions']['size'])return;if(!_0x19b45f['isDocumentOperation'])return;if(_0x19b45f['batch']['isUndo']||!_0x19b45f['batch']['isLocal'])return;let _0x3cbb89,_0x55ee04;switch(_0x19b45f['type']){case'insert':_0x3cbb89=_0x24b1cc['model']['createPositionAt'](_0x19b45f['position']),_0x55ee04=_0x3cbb89['getShiftedBy'](_0x19b45f['howMany']);break;case'split':_0x3cbb89=_0x24b1cc['model']['createPositionAt'](_0x19b45f['splitPosition']),_0x55ee04=_0x24b1cc['model']['createPositionAt'](_0x19b45f['moveTargetPosition']);break;case'move':_0x3cbb89=_0x24b1cc['model']['createPositionAt'](_0x19b45f['targetPosition']),_0x55ee04=_0x3cbb89['getShiftedBy'](_0x19b45f['howMany']);break;default:return;}const _0x29ed42=_0x24b1cc['model']['createRange'](_0x3cbb89,_0x55ee04);_0x24b1cc['model']['change'](()=>{for(const {suggestion:_0x307782,meta:_0x42165f}of this['_findSuggestions'](_0x29ed42)){if(_0x307782['isMultiRange'])continue;if('formatInline'==_0x307782['type'])continue;const _0x2f9d9f=this['_getAttributeKey'](_0x307782);if(_0x2f9d9f&&this['_isBlockAttribute'](_0x2f9d9f)&&'split'!=_0x19b45f['type'])continue;const _0x1d04a5=_0x307782['data']&&_0x307782['data']['multipleBlocks'];('formatBlock'!=_0x307782['type']||'split'==_0x19b45f['type']&&!_0x1d04a5)&&(_0x42165f['containsRangeInObject']||'insertion'==_0x307782['type']&&_0x42165f['isOwn']||_0x307782['getFirstRange']()['containsRange'](_0x29ed42)&&this['_breakSuggestionMarker'](_0x307782,_0x3cbb89,_0x55ee04));}});},{'priority':'lowest'}),_0x24b1cc['model']['on']('deleteContent',(_0x30906d,_0x8b522f)=>{const _0x8964f7=_0x8b522f[0x0],_0x4b5fbc=_0x8b522f[0x1];if(_0x4b5fbc&&_0x4b5fbc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x8964f7['isCollapsed'])return;const _0x2f2683=_0x24b1cc['model']['schema'],{start:_0x37a49f,end:_0x1840fb}=_0x8964f7['getFirstRange'](),_0x56c39e=_0x37a49f['nodeAfter']&&_0x2f2683['isLimit'](_0x37a49f['nodeAfter'])?null:_0x2f2683['getNearestSelectionRange'](_0x37a49f,'forward'),_0xc2bf4a=_0x1840fb['nodeBefore']&&_0x2f2683['isLimit'](_0x1840fb['nodeBefore'])?null:_0x2f2683['getNearestSelectionRange'](_0x1840fb,'backward'),_0x37930e=_0x24b1cc['model']['createRange'](_0x56c39e?_0x56c39e['start']:_0x37a49f,_0xc2bf4a?_0xc2bf4a['end']:_0x1840fb);_0x24b1cc['model']['change'](_0x5c6e5c=>{this['markDeletion'](_0x37930e);const _0x379d55=_0x24b1cc['model']['schema']['getNearestSelectionRange'](_0x37930e['start']);_0x8964f7['is']('documentSelection')?_0x5c6e5c['setSelection'](_0x379d55):_0x8964f7['setTo'](_0x379d55);}),_0x30906d['stop']();},{'priority':_0x267b38['normal']+0xa}),_0x24b1cc['model']['on']('insertContent',(_0xdb085c,_0x67590f)=>{const _0x42bf20=_0x67590f[_0x67590f['length']-0x1];_0x42bf20&&_0x42bf20['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x24b1cc['model']['change'](()=>{let _0x4aed72=_0x24b1cc['model']['insertContent'](_0x67590f[0x0],_0x67590f[0x1],_0x67590f[0x2],{'forceDefaultExecution':!0x0});if(!_0x4aed72)return;_0xdb085c['return']=_0x4aed72['clone']();const _0x5c78f0=_0x4aed72['end']['nodeBefore'],_0x5dd28b=_0x24b1cc['model']['schema'];_0x5c78f0&&_0x5dd28b['isBlock'](_0x5c78f0)&&!_0x5dd28b['isObject'](_0x5c78f0)&&(_0x4aed72=_0x24b1cc['model']['createRange'](_0x4aed72['start'],_0x24b1cc['model']['createPositionAt'](_0x5c78f0,'end'))),this['markInsertion'](_0x4aed72);}),_0xdb085c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x253310=new x(_0x24b1cc,this['_suggestions']);_0x24b1cc['commands']['add']('acceptSuggestion',_0x253310),this['enableCommand']('acceptSuggestion');const _0x336134=new R(_0x24b1cc,this['_suggestions']);_0x24b1cc['commands']['add']('discardSuggestion',_0x336134),this['enableCommand']('discardSuggestion'),_0x24b1cc['commands']['add']('acceptAllSuggestions',new E(_0x24b1cc,_0x253310,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x24b1cc['commands']['add']('discardAllSuggestions',new E(_0x24b1cc,_0x336134,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x24b1cc['commands']['add']('acceptSelectedSuggestions',new O(_0x24b1cc,_0x253310,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x24b1cc['commands']['add']('discardSelectedSuggestions',new O(_0x24b1cc,_0x336134,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x789ade=_0x24b1cc['plugins']['get']('CommentsRepository');this['listenTo'](_0x789ade,'addComment',(_0x236aef,{threadId:_0x55ee1a})=>{const _0x363d48=this['_suggestions']['get'](_0x55ee1a);_0x363d48&&_0x363d48['commentThread']&&0x1===_0x363d48['commentThread']['length']&&this['_updateSuggestionData'](_0x55ee1a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x789ade,'removeComment',(_0x265f9a,{threadId:_0x4ba28d})=>{const _0x3a6eac=this['_suggestions']['get'](_0x4ba28d);_0x3a6eac&&_0x3a6eac['commentThread']&&!_0x3a6eac['commentThread']['length']&&this['_updateSuggestionData'](_0x4ba28d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4e70ae){if(this['_adapter'])throw new _0xcccb3d('track-changes-adapter-already-set',this);this['_adapter']=_0x4e70ae;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x20f558=!0x1,toJSON:_0x6a2f50=!0x1}={}){const _0x235de1=[];for(const _0x570309 of this['_suggestions']['values']())_0x20f558&&!_0x570309['isInContent']||_0x235de1['push'](_0x570309);return _0x6a2f50?_0x235de1['map'](_0x253ef0=>_0x253ef0['toJSON']()):_0x235de1;}['getSuggestion'](_0x4f6024){const _0x167755=this['_suggestions']['get'](_0x4f6024);if(!_0x167755)throw new _0xcccb3d('track-changes-suggestion-not-found',this);return _0x167755;}['hasSuggestion'](_0x379513){return this['_suggestions']['has'](_0x379513);}['addSuggestionData'](_0x3ae6ed){const {authorId:_0x354850,id:_0x288014,attributes:_0x134c75}=_0x3ae6ed,[_0x134cda,_0x58b371]=_0x3ae6ed['type']['split'](':'),_0x236577=this['_suggestions']['get'](_0x288014)||this['_createSuggestion'](_0x134cda,_0x58b371,_0x288014,_0x354850,_0x134c75);if(this['_addThreadToSuggestion'](_0x236577),this['_checkSuggestionCorrectness'](_0x236577,_0x134cda,_0x58b371||null,_0x354850),_0x236577['createdAt']=_0x3ae6ed['createdAt'],_0x236577['_isDataLoaded']=!0x0,_0x134c75&&_0x134c75['@external']){const _0x16bad8=_0x134c75['@external'],_0x47cb7e=this['_getExternalAuthor'](_0x16bad8['authorName']);_0x236577['authoredAt']=_0x16bad8['createdAt'],_0x236577['author']=_0x47cb7e,_0x236577['isExternal']=!0x0;}else _0x236577['authoredAt']=_0x3ae6ed['createdAt'];switch(_0x3ae6ed['data']&&(_0x236577['data']=_0x3ae6ed['data']),_0x3ae6ed['attributes']&&(_0x236577['attributes']=_0x3ae6ed['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x236577['_saved']=!0x0),this['_suggestionState']['get'](_0x236577)){case'notReady':this['_suggestionState']['set'](_0x236577,'dataReady');break;case'markerReady':_0x236577['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x236577])),this['_refreshSuggestionsChain'](new Set([_0x236577])),this['_suggestionState']['set'](_0x236577,'ready'),this['fire']('suggestionLoaded',_0x236577)):this['_suggestionState']['set'](_0x236577,'removed');}return _0x236577;}['acceptSuggestion'](_0x24a3ab){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23f2f8 of _0x24a3ab['getAllAdjacentSuggestions']())_0x23f2f8['accept']();});});}['discardSuggestion'](_0x447bb5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c0dd9 of _0x447bb5['getAllAdjacentSuggestions']())_0x5c0dd9['discard']();});});}['enableCommand'](_0x345f3f,_0x3ea6ae){const _0xe38b70=this['editor']['commands']['get'](_0x345f3f);if(!_0xe38b70)throw new _0xcccb3d('track-changes-command-not-found',this,{'commandName':_0x345f3f});if(this['_enabledCommands']['has'](_0xe38b70))throw new _0xcccb3d('track-changes-enable-command-twice',this,{'commandName':_0x345f3f});this['_enabledCommands']['add'](_0xe38b70),_0x3ea6ae&&_0xe38b70['on']('execute',(_0xbc28b8,_0x1d6923)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1d6923['length']>0x0&&_0x1d6923[_0x1d6923['length']-0x1]&&_0x1d6923[_0x1d6923['length']-0x1]['forceDefaultExecution']?_0x1d6923['pop']():(_0xbc28b8['return']=_0x3ea6ae((..._0x5bbc76)=>_0xe38b70['execute'](..._0x5bbc76,{'forceDefaultExecution':!0x0}),..._0x1d6923),_0xbc28b8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2696fb){let _0xea8bfe,_0x894330;const _0x19ac99=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xea8bfe=_0x2696fb();}catch(_0x5dcc80){_0x894330=_0x5dcc80;}return _0x19ac99||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x894330&&_0xcccb3d['rethrowUnexpectedError'](_0x894330,this),_0xea8bfe;}['markInsertion'](_0x2cdff2,_0x345dd3=null,_0x4c3860={}){if(_0x2cdff2['isCollapsed'])return null;const _0x3ce157=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5eb5db,meta:_0x23a141}of this['_findSuggestions'](_0x2cdff2,'insertion'))if(_0x23a141['isOwn']){if(!_0x23a141['isNextTo']){if(_0x23a141['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5eb5db,_0x4c3860))continue;return _0x5eb5db;}if(qt(_0x5eb5db,_0x4c3860))return _0x5eb5db;this['_breakSuggestionMarker'](_0x5eb5db,_0x2cdff2['start'],_0x2cdff2['end']);break;}if(_0x345dd3==_0x5eb5db['subType']&&qt(_0x5eb5db,_0x4c3860)){const _0x3b80a2=_0x5eb5db['getFirstRange']();return _0x3b80a2['start']['isEqual'](_0x2cdff2['end'])?this['_setSuggestionRange'](_0x5eb5db,this['_model']['createRange'](_0x2cdff2['start'],_0x3b80a2['end'])):this['_setSuggestionRange'](_0x5eb5db,this['_model']['createRange'](_0x3b80a2['start'],_0x2cdff2['end'])),_0x5eb5db;}}const _0x235114=_0x3415dc(),_0x14d7a7=_0x3ce157['id'],_0x1d9218=_0x345dd3?'insertion:'+_0x345dd3:'insertion',_0x7b0c4f=this['_setSuggestionData']({'id':_0x235114,'type':_0x1d9218,'createdAt':new Date(),'authorId':_0x14d7a7,'attributes':_0x4c3860});return this['_addSuggestionMarker'](_0x1d9218,_0x235114,_0x14d7a7,_0x2cdff2),_0x7b0c4f;}['markMultiRangeInsertion'](_0x18149f,_0x24cf80='multi',_0x5213b1={}){const _0x5cbb21=this['editor']['plugins']['get']('Users')['me'],_0x51b521=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x24cf80,'join');for(const _0x3cc3b2 of this['getSuggestions']())if(_0x3cc3b2['author']['id']==_0x5cbb21['id']&&'insertion'==_0x3cc3b2['type']&&_0x3cc3b2['subType']==_0x24cf80&&qt(_0x3cc3b2,_0x5213b1)&&(_0x51b521(_0x3cc3b2['getRanges'](),_0x18149f)||_0x51b521(_0x18149f,_0x3cc3b2['getRanges']()))){for(const _0x4ec509 of _0x18149f)_0x3cc3b2['addRange'](_0x4ec509);return _0x3cc3b2;}for(const {suggestion:_0x3fb911,meta:_0x426157}of this['_findSuggestions'](_0x18149f,'insertion')){if(!_0x426157['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x426157['containsRangeInObject'])continue;if(!qt(_0x3fb911,_0x5213b1))continue;let _0x405807=!0x0;for(const _0x547849 of _0x3fb911['getRanges']())for(const _0x2788ee of _0x18149f)if(!_0x547849['containsRange'](_0x2788ee)){_0x405807=!0x1;break;}if(_0x405807)return _0x3fb911;}const _0x1893a9=_0x3415dc(),_0x5cd389=_0x5cbb21['id'],_0xbf2f64='insertion:'+_0x24cf80,_0x3a375f=this['_setSuggestionData']({'id':_0x1893a9,'type':_0xbf2f64,'createdAt':new Date(),'authorId':_0x5cd389,'attributes':_0x5213b1});for(const _0x330b60 of _0x18149f)this['_addSuggestionMarker'](_0xbf2f64,_0x1893a9,_0x5cd389,_0x330b60,u['getMultiRangeId']());return _0x3a375f;}['markInlineFormat'](_0x4328ee,_0x4e635b,_0x133969=null,_0x509f9f={}){if(_0x133969=_0x133969||Gt(_0x4e635b),_0x4328ee['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x46b0c1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x133969,'accept');return this['forceDefaultExecution'](()=>_0x46b0c1([_0x4328ee],_0x4e635b,_0x509f9f)),null;}const _0x664557=this['editor']['plugins']['get']('Users')['me'],_0x34cdfc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5816e4,meta:_0x1af3ec}of this['_findSuggestions'](_0x4328ee,'insertion'))_0x1af3ec['isOwn']&&!_0x1af3ec['isInsideObject']&&_0x34cdfc['push'](..._0x5816e4['getRanges']());}const _0x1feb0d=function(_0x445ece,_0x7a88f9){const _0x3604e0=[];for(const _0x5cdb0b of _0x7a88f9){const _0x3da3b3=_0x445ece['getIntersection'](_0x5cdb0b);_0x3da3b3&&_0x3604e0['push'](_0x3da3b3);}return _0x3604e0;}(_0x4328ee,_0x34cdfc),_0x57fa51=function(_0x50a690,_0x395c93){const _0x311e6b=[_0x50a690];for(const _0x2936d9 of _0x395c93){let _0x299ca8=0x0;for(;_0x299ca8<_0x311e6b['length'];){const _0x4cfc8e=_0x311e6b[_0x299ca8]['getDifference'](_0x2936d9);_0x311e6b['splice'](_0x299ca8,0x1,..._0x4cfc8e),_0x299ca8+=_0x4cfc8e['length'];}}return _0x311e6b;}(_0x4328ee,_0x34cdfc);_0x1feb0d['length']&&this['_model']['change'](()=>{for(const _0x10ec56 of _0x1feb0d){const _0x3f8725=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x133969,'accept');this['forceDefaultExecution'](()=>_0x3f8725([_0x10ec56],_0x4e635b,_0x509f9f));}});for(const _0x59de69 of _0x57fa51){let _0x17c675=null,_0x1ceee8=_0x59de69['start'],_0x27183f=_0x59de69['end'];for(const {suggestion:_0x4e9cb4,meta:_0x48dd23}of this['_findSuggestions'](_0x59de69,'formatInline')){if(!_0x48dd23['isOwn'])continue;if(_0x4e9cb4['subType']!=_0x133969)continue;if(!qt(_0x4e9cb4,_0x509f9f))continue;const _0x3cc513=_0x4e9cb4['getFirstRange']();if(_0x3cc513['containsRange'](_0x59de69,!0x0))return null;_0x1ceee8=_0x1ceee8['isBefore'](_0x3cc513['start'])?_0x1ceee8:_0x3cc513['start'],_0x27183f=_0x27183f['isAfter'](_0x3cc513['end'])?_0x27183f:_0x3cc513['end'],_0x17c675?_0x3cc513['start']['isBefore'](_0x17c675['getFirstRange']()['start'])?(_0x17c675['removeMarkers'](),_0x17c675=_0x4e9cb4):_0x4e9cb4['removeMarkers']():_0x17c675=_0x4e9cb4;}const _0x4d2c23=this['_model']['createRange'](_0x1ceee8,_0x27183f);if(_0x17c675)this['_setSuggestionRange'](_0x17c675,_0x4d2c23);else{const _0x4ea556=_0x3415dc(),_0x5054cd=_0x664557['id'];this['_setSuggestionData']({'id':_0x4ea556,'type':'formatInline:'+_0x133969,'data':_0x4e635b,'createdAt':new Date(),'authorId':_0x5054cd,'attributes':_0x509f9f}),this['_addSuggestionMarker']('formatInline:'+_0x133969,_0x4ea556,_0x5054cd,_0x4d2c23);}}return null;}['markBlockFormat'](_0x3a9b37,_0x59dffb,_0x11bc1f=[],_0x369a06=null,_0x484da2={}){_0x59dffb['formatGroupId']||(_0x59dffb['formatGroupId']=_0x59dffb['commandName']),_0x59dffb['multipleBlocks']=_0x3a9b37['is']('range'),_0x369a06=_0x369a06||Gt(_0x59dffb);const _0x3a91d3=_0x11bc1f['map'](_0x5ab920=>Lt(_0x5ab920,this['_model'])),_0x57ae94=_0x3a9b37['is']('range')?_0x3a9b37:Lt(_0x3a9b37,this['_model']);if('never'===this['_trackFormatChanges']){const _0xd8fd53=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x369a06,'accept');return this['forceDefaultExecution'](()=>_0xd8fd53([_0x57ae94],_0x59dffb,_0x484da2)),null;}_0x3a91d3['push'](_0x57ae94);let _0x2d4358=!0x0;for(const _0xd03132 of _0x3a91d3)if(!this['_rangeIsInLocalUserInsertion'](_0xd03132)){_0x2d4358=!0x1;break;}if(_0x2d4358&&'always'!==this['_trackFormatChanges']){const _0x4cc239=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x369a06,'accept');return this['forceDefaultExecution'](()=>_0x4cc239([_0x57ae94],_0x59dffb,_0x484da2)),null;}let _0x2888ad=null,_0x2ecc28=_0x57ae94['start'],_0x2c3ca5=_0x57ae94['end'];for(const {suggestion:_0x535748,meta:_0x1ebaca}of this['_findSuggestions'](_0x57ae94,'formatBlock')){if(!_0x1ebaca['isOwn'])continue;if(_0x1ebaca['isNextTo']||_0x1ebaca['containsRangeInObject']||_0x1ebaca['isInsideObject'])continue;if(_0x535748['data']['formatGroupId']!=_0x59dffb['formatGroupId'])continue;if(!qt(_0x535748,_0x484da2))continue;const _0x120ab7=_0x535748['getFirstRange']();if(_0x535748['subType']==_0x369a06){if(_0x120ab7['containsRange'](_0x57ae94,!0x0))return null;_0x2ecc28=_0x2ecc28['isBefore'](_0x120ab7['start'])?_0x2ecc28:_0x120ab7['start'],_0x2c3ca5=_0x2c3ca5['isAfter'](_0x120ab7['end'])?_0x2c3ca5:_0x120ab7['end'],_0x2888ad?_0x120ab7['start']['isBefore'](_0x2888ad['getFirstRange']()['start'])?(_0x2888ad['removeMarkers'](),_0x2888ad=_0x535748):_0x535748['removeMarkers']():_0x2888ad=_0x535748;}else{const _0x2b8dfe=_0x57ae94['getIntersection'](_0x120ab7);this['_cutOutSuggestionMarker'](_0x535748,_0x2b8dfe);}}const _0x4fd180=this['editor']['plugins']['get']('Users')['me'],_0xcb5f75=_0x3415dc(),_0x485377=_0x4fd180['id'];if(_0x2888ad)return this['_setSuggestionRange'](_0x2888ad,this['_model']['createRange'](_0x2ecc28,_0x2c3ca5)),_0x2888ad;{const _0x2f2af2=this['_setSuggestionData']({'id':_0xcb5f75,'type':'formatBlock:'+_0x369a06,'data':_0x59dffb,'createdAt':new Date(),'authorId':_0x485377,'attributes':_0x484da2});return this['_addSuggestionMarker']('formatBlock:'+_0x369a06,_0xcb5f75,_0x485377,this['_model']['createRange'](_0x2ecc28,_0x2c3ca5)),_0x2f2af2;}}['markMultiRangeBlockFormat'](_0x391d65,_0x224494,_0x21bee=[],_0x2eb6c0=null,_0x5985f7={}){_0x224494['formatGroupId']||(_0x224494['formatGroupId']=_0x224494['commandName']);const _0x118c03=_0x391d65[0x0];_0x224494['multipleBlocks']=_0x118c03['is']('range'),_0x2eb6c0=_0x2eb6c0||Gt(_0x224494);const _0x1432cc=_0x21bee['map'](_0x3dbc55=>Lt(_0x3dbc55,this['_model'])),_0xe08611=_0x118c03['is']('range')?_0x391d65:_0x391d65['map'](_0x57b3a1=>Lt(_0x57b3a1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x54dbe1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2eb6c0,'accept');return this['forceDefaultExecution'](()=>_0x54dbe1(_0xe08611,_0x224494,_0x5985f7)),null;}_0x1432cc['push'](..._0xe08611);let _0x568671=!0x0;for(const _0x1b4c13 of _0x1432cc)if(!this['_rangeIsInLocalUserInsertion'](_0x1b4c13)){_0x568671=!0x1;break;}if(_0x568671&&'always'!==this['_trackFormatChanges']){const _0x2013dd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2eb6c0,'accept');return this['forceDefaultExecution'](()=>_0x2013dd(_0xe08611,_0x224494,_0x5985f7)),null;}const _0x50cd48=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c3616 of this['getSuggestions']()){if(_0x3c3616['author']['id']!=_0x50cd48['id'])continue;if('formatBlock'!=_0x3c3616['type']||_0x3c3616['data']['formatGroupId']!=_0x224494['formatGroupId'])continue;if(!qt(_0x3c3616,_0x5985f7))continue;const _0x2edd7f=_0x3c3616['subType']==_0x2eb6c0;for(let _0x25f321=0x0;_0x25f321<_0xe08611['length'];_0x25f321++){const _0x2de966=_0xe08611[_0x25f321];for(const _0x212c5c of _0x3c3616['getMarkers']()){const _0x501a6b=_0x212c5c['getRange']();if(_0x2de966['isEqual'](_0x501a6b)){_0x2edd7f?(_0xe08611['splice'](_0x25f321,0x1),_0x25f321--):_0x3c3616['removeMarker'](_0x212c5c['name']);break;}}}}if(0x0==_0xe08611['length'])return null;const _0x287f3e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2eb6c0,'join');for(const _0x30502e of this['getSuggestions']())if(_0x30502e['author']['id']==_0x50cd48['id']&&'formatBlock'==_0x30502e['type']&&_0x30502e['data']['formatGroupId']==_0x224494['formatGroupId']&&_0x30502e['subType']==_0x2eb6c0&&qt(_0x30502e,_0x5985f7)&&(_0x287f3e(_0x30502e['getRanges'](),_0xe08611)||_0x287f3e(_0xe08611,_0x30502e['getRanges']()))){for(const _0x4eebb9 of _0xe08611)_0x30502e['addRange'](_0x4eebb9);return _0x30502e;}const _0x37e710=_0x3415dc(),_0x598265=_0x50cd48['id'],_0xc4bd85='formatBlock:'+_0x2eb6c0,_0x47e748=this['_setSuggestionData']({'id':_0x37e710,'type':_0xc4bd85,'data':_0x224494,'createdAt':new Date(),'authorId':_0x598265,'attributes':_0x5985f7});for(const _0x484080 of _0xe08611)this['_addSuggestionMarker'](_0xc4bd85,_0x37e710,_0x598265,_0x484080,u['getMultiRangeId']());return _0x47e748;}['markDeletion'](_0x2d03f4,_0x4f808b=null,_0xff98e3={}){if(_0x2d03f4['isCollapsed'])return null;const _0x39304d=this['editor']['plugins']['get']('Users')['me'],_0x13a92c=new _0x2fd4c8(_0x2d03f4['start'],_0x2d03f4['end']);for(const {suggestion:_0x100f95,meta:_0x3161de}of this['_findSuggestions'](_0x13a92c,'insertion'))if(_0x3161de['isOwn']&&!_0x3161de['isNextTo']){if(_0x100f95['isMultiRange']){const _0x34d21a=_0x100f95['getRanges']()['filter'](_0x5a3e70=>'$graveyard'!=_0x5a3e70['root']['rootName']);_0x34d21a['every'](_0xddf437=>_0x13a92c['containsRange'](_0xddf437,!0x0))&&_0x100f95['discard']();if(_0x34d21a['some'](_0x4574e6=>_0x4574e6['containsRange'](_0x13a92c,!0x0))){const _0x36bd7a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4f808b,'accept');return this['forceDefaultExecution'](()=>_0x36bd7a([_0x13a92c],null,_0xff98e3)),null;}}else{const _0x5b1ff4=_0x13a92c['getIntersection'](_0x100f95['getFirstRange']());null!==_0x5b1ff4&&_0x100f95['_onDiscard']([_0x5b1ff4],null,_0xff98e3);}}if(_0x13a92c['detach'](),_0x13a92c['isCollapsed']||'$graveyard'==_0x13a92c['root']['rootName'])return null;let _0x120daf=null,_0x3ee876=_0x13a92c['start'],_0x2cdb99=_0x13a92c['end'];const _0x42a404=this['_findSuggestions'](_0x13a92c,'deletion');for(const {suggestion:_0x53450f,meta:_0x407b32}of _0x42a404){const _0x57f080=this['_model']['createRange'](_0x3ee876,_0x2cdb99);if(_0x407b32['isOwn']&&(this['_mergeNestedSuggestions']||!_0x407b32['containsRangeInObject']&&!_0x407b32['isInsideObject'])){if(_0x53450f['isMultiRange']){if(!qt(_0x53450f,_0xff98e3))continue;let _0x43c794=!0x0;for(const _0x1ceb5d of _0x53450f['getRanges']()){if(_0x1ceb5d['containsRange'](_0x57f080,!0x0))return _0x53450f;_0x57f080['containsRange'](_0x1ceb5d)||(_0x43c794=!0x1);}_0x43c794&&_0x53450f['discard']();}else{const _0x1397be=_0x53450f['getFirstRange']();if(_0x1397be['containsRange'](_0x57f080,!0x0))return _0x53450f;if(!qt(_0x53450f,_0xff98e3)){_0x57f080['containsRange'](_0x1397be)?_0x53450f['removeMarkers']():_0x1397be['containsPosition'](_0x3ee876)?_0x3ee876=_0x1397be['end']:_0x1397be['containsPosition'](_0x2cdb99)&&(_0x2cdb99=_0x1397be['start']);continue;}_0x3ee876=_0x3ee876['isBefore'](_0x1397be['start'])?_0x3ee876:_0x1397be['start'],_0x2cdb99=_0x2cdb99['isAfter'](_0x1397be['end'])?_0x2cdb99:_0x1397be['end'],_0xff98e3=Object['assign']({},_0x53450f['attributes']),_0x120daf?_0x1397be['start']['isBefore'](_0x120daf['getFirstRange']()['start'])?(_0x120daf['removeMarkers'](),_0x120daf=_0x53450f):_0x53450f['removeMarkers']():_0x120daf=_0x53450f;}}}if(_0x120daf)return this['_setSuggestionRange'](_0x120daf,this['_model']['createRange'](_0x3ee876,_0x2cdb99)),_0x120daf;{const _0x347843=_0x3415dc(),_0x299ac8=this['_model']['createRange'](_0x3ee876,_0x2cdb99),_0x468fdc=_0x39304d['id'],_0xdd5485=_0x4f808b?'deletion:'+_0x4f808b:'deletion',_0x24ed93=this['_setSuggestionData']({'id':_0x347843,'type':_0xdd5485,'createdAt':new Date(),'authorId':_0x468fdc,'attributes':_0xff98e3});return this['_addSuggestionMarker'](_0xdd5485,_0x347843,_0x468fdc,_0x299ac8),_0x24ed93;}}['markMultiRangeDeletion'](_0x379344,_0x3af53b='multi',_0x51329b={}){const _0x4aff13=this['editor']['plugins']['get']('Users')['me'],_0x317cc8=_0x379344['map'](_0x5e1115=>new _0x2fd4c8(_0x5e1115['start'],_0x5e1115['end'])),_0x31efbe=new Set();for(const {suggestion:_0x39e932,meta:_0xee1cbe}of this['_findSuggestions'](_0x317cc8,'insertion'))_0xee1cbe['isOwn']&&!_0xee1cbe['isNextTo']&&_0x31efbe['add'](_0x39e932);for(const _0x54f733 of _0x31efbe)if(_0x54f733['isMultiRange']){const _0x20e10a=_0x54f733['getRanges']();(!_0x54f733['attributes']||!_0x54f733['attributes']['skipNestingCheck'])&&(_0x20e10a['every'](_0x1c7ad3=>_0x317cc8['some'](_0x28eb3d=>_0x28eb3d['containsRange'](_0x1c7ad3,!0x0)))&&_0x54f733['discard']());if(_0x317cc8['every'](_0x493f48=>_0x20e10a['some'](_0x54cfa1=>_0x54cfa1['containsRange'](_0x493f48,!0x0)))){const _0x5f2ac0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3af53b,'accept');return this['forceDefaultExecution'](()=>_0x5f2ac0(_0x379344,null,_0x51329b)),null;}}else{const _0x2eb9f5=_0x54f733['getFirstRange']();_0x317cc8['some'](_0x4f1f5f=>_0x4f1f5f['containsRange'](_0x2eb9f5,!0x0))&&_0x54f733['discard']();if(_0x317cc8['every'](_0x1599e6=>_0x2eb9f5['containsRange'](_0x1599e6,!0x0))){const _0x45514c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3af53b,'accept');return this['forceDefaultExecution'](()=>_0x45514c(_0x317cc8,null,_0x51329b)),null;}}const _0x70cd4e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3af53b,'join');let _0x1ba471=null;for(const _0x2327d7 of this['getSuggestions']())if(_0x2327d7['author']['id']==_0x4aff13['id']&&_0x2327d7['isInContent']&&'deletion'==_0x2327d7['type']&&_0x2327d7['subType']==_0x3af53b&&qt(_0x2327d7,_0x51329b)&&(_0x70cd4e(_0x2327d7['getRanges'](),_0x317cc8)||_0x70cd4e(_0x317cc8,_0x2327d7['getRanges']()))){if(_0x1ba471){if(_0x2327d7['commentThread']&&_0x2327d7['commentThread']['length'])continue;for(const _0x29873e of _0x2327d7['getRanges']())_0x1ba471['isIntersectingWithRange'](_0x29873e)||_0x1ba471['addRange'](_0x29873e);_0x2327d7['removeMarkers']();}else{_0x1ba471=_0x2327d7;for(const _0x535dbd of _0x317cc8)_0x2327d7['isIntersectingWithRange'](_0x535dbd)||_0x2327d7['addRange'](_0x535dbd);}}if(_0x1ba471)return _0x1ba471;_0x31efbe['clear']();for(const {suggestion:_0x2cf34d,meta:_0x31a955}of this['_findSuggestions'](_0x317cc8,'deletion'))_0x31a955['isOwn']&&(this['_mergeNestedSuggestions']||!_0x31a955['containsRangeInObject']&&!_0x31a955['isInsideObject'])&&qt(_0x2cf34d,_0x51329b)&&_0x31efbe['add'](_0x2cf34d);for(const _0x232e68 of _0x31efbe){const _0x1f6fc7=_0x232e68['getRanges']();if(!_0x51329b||!_0x51329b['skipNestingCheck']){if(_0x317cc8['every'](_0x4b6ae7=>_0x1f6fc7['some'](_0x5e88db=>_0x5e88db['containsRange'](_0x4b6ae7,!0x0))))return _0x232e68;}(!_0x232e68['attributes']||!_0x232e68['attributes']['skipNestingCheck'])&&(_0x1f6fc7['every'](_0x51cbcf=>_0x317cc8['some'](_0x5c766b=>_0x5c766b['containsRange'](_0x51cbcf,!0x0)))&&_0x232e68['discard']());}const _0x5d9db6=_0x3415dc(),_0x4bb3c6=_0x4aff13['id'],_0x2cae51='deletion:'+_0x3af53b,_0x4166b4=this['_setSuggestionData']({'id':_0x5d9db6,'type':_0x2cae51,'createdAt':new Date(),'authorId':_0x4bb3c6,'attributes':_0x51329b});for(const _0x9c4ce8 of _0x317cc8)_0x9c4ce8['detach'](),_0x9c4ce8['isCollapsed']||'$graveyard'==_0x9c4ce8['root']['rootName']||this['_addSuggestionMarker'](_0x2cae51,_0x5d9db6,_0x4bb3c6,_0x9c4ce8,u['getMultiRangeId']());return _0x4166b4;}['markAttributeChange'](_0x314b88,_0x3c5a8f,_0x153213,_0x42adf3,_0x4b39a5){if(_0x314b88['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2c7ae8=this['editor']['plugins']['get']('Users')['me']['id'],_0x266a2e=Array['from'](this['_suggestions']['values']())['filter'](_0x15cb78=>'attribute'==_0x15cb78['type']&&_0x15cb78['data']['key']==_0x3c5a8f&&_0x15cb78['isIntersectingWithRange'](_0x314b88));if('default'===this['_trackFormatChanges']){const _0x35d92d=this['_findSuggestions'](_0x314b88,'insertion')['filter'](({meta:_0x1fd7ca})=>_0x1fd7ca['isOwn']&&!_0x1fd7ca['isInsideObject']&&!_0x1fd7ca['isNextTo'])['map'](({suggestion:_0x30123c})=>_0x30123c);_0x266a2e['unshift'](..._0x35d92d);}const _0x1ed8c1=new Map([[_0x314b88,_0x153213]]);for(const _0x59c8af of _0x266a2e){const _0x2c71dc='attribute'==_0x59c8af['type']?_0x59c8af['data']['oldValue']:void 0x0,_0x2f2f05=_0x59c8af['getFirstRange'](),_0x3b60bf=Array['from'](_0x1ed8c1['keys']())['find'](_0x3c8f75=>_0x3c8f75['isIntersecting'](_0x2f2f05));if(!_0x3b60bf)continue;const _0x337f93=_0x3b60bf['getDifference'](_0x2f2f05);this['_isBlockAttribute'](_0x3c5a8f)&&'insertion'==_0x59c8af['type']&&0x0!=_0x337f93['length']||(_0x1ed8c1['delete'](_0x3b60bf),_0x337f93['forEach'](_0x1d0d19=>{_0x1ed8c1['set'](_0x1d0d19,_0x153213);}),'insertion'!=_0x59c8af['type']&&_0x2c71dc!=_0x42adf3&&_0x1ed8c1['set'](_0x3b60bf['getIntersection'](_0x2f2f05),_0x2c71dc));}const _0x43deed=[];for(const [_0x194c2f,_0x2ff290]of _0x1ed8c1){const _0x2e8244=_0x3415dc(),_0x146a2d={'key':_0x3c5a8f,'oldValue':_0x2ff290,'newValue':_0x42adf3};_0x3c5a8f['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':_0x3c5a8f});const _0x192fe5=('attribute:'+(_0x3c5a8f+'|'+Gt({'newValue':_0x42adf3})))['substring'](0x0,0x3c),_0x15c161=this['_setSuggestionData']({'id':_0x2e8244,'type':_0x192fe5,'data':_0x146a2d,'createdAt':new Date(),'authorId':_0x2c7ae8,'attributes':_0x4b39a5});_0x43deed['push'](_0x15c161),this['_addSuggestionMarker'](_0x192fe5,_0x2e8244,_0x2c7ae8,_0x194c2f);}return _0x43deed;}['enableDefaultAttributesIntegration'](_0x701d98){this['enableCommand'](_0x701d98,(_0x111bec,..._0x2eb37c)=>{this['_recordAttributeChanges'](()=>{_0x111bec(..._0x2eb37c);});});}['registerBlockAttribute'](_0x61f3db){this['_blockAttributeKeys']['add'](_0x61f3db);}['registerInlineAttribute'](_0x575616){this['_inlineAttributeKeys']['add'](_0x575616);}['_getAttributeKey'](_0x3b9558){return'attribute'==_0x3b9558['type']?_0x3b9558['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x532440,_0x5d9243){const _0x1f2607=_0x532440['getFirstMarker']();this['_model']['change'](_0x11c237=>{_0x11c237['updateMarker'](_0x1f2607,{'range':_0x5d9243});});}['_addThreadToSuggestion'](_0x5140ed){const _0x37eb91=_0x5140ed['id'],_0x5b66d9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x37eb91)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5b66d9,'threadId':_0x37eb91,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d9a1e=this['_commentsRepository']['getCommentThread'](_0x37eb91);_0x3d9a1e['unbind']('isRemovable'),_0x3d9a1e['isRemovable']=!0x1,_0x5140ed['commentThread']=_0x3d9a1e;}['_checkSuggestionCorrectness'](_0x4f0220,_0x17a528,_0x18d5ed,_0x37afd2){if(_0x4f0220['type']!=_0x17a528||_0x4f0220['subType']!=_0x18d5ed||_0x4f0220['creator']['id']!=_0x37afd2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xcccb3d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2113bb,_0x2a41bc){const _0x307126=_0x2113bb['getFirstRange']();if(_0x2a41bc['isEqual'](_0x307126))_0x2113bb['removeMarkers']();else{if(_0x307126['containsRange'](_0x2a41bc)){const _0x232ab5=this['_model']['createPositionAt'](_0x2a41bc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2113bb,this['_model']['createRange'](_0x307126['start'],_0x232ab5));const _0x1f2763=_0x3415dc(),_0x3b9cf9=_0x2113bb['creator']['id'],_0x332fef=_0x2113bb['type']+':'+_0x2113bb['subType'];this['_setSuggestionData']({'id':_0x1f2763,'type':_0x332fef,'createdAt':new Date(),'authorId':_0x3b9cf9,'data':_0x2113bb['data'],'attributes':_0x2113bb['attributes']});const _0x356619=this['_model']['createPositionAt'](_0x2a41bc['end']['parent'],'after'),_0x5cea27=this['_model']['createRange'](_0x356619,_0x307126['end']);this['_addSuggestionMarker'](_0x332fef,_0x1f2763,_0x3b9cf9,_0x5cea27);}else{if(_0x307126['containsPosition'](_0x2a41bc['start'])){const _0x3f7835=this['_model']['createPositionAt'](_0x2a41bc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2113bb,this['_model']['createRange'](_0x307126['start'],_0x3f7835));}else{const _0x37f9f8=this['_model']['createPositionAt'](_0x2a41bc['end']['parent'],'after');this['_setSuggestionRange'](_0x2113bb,this['_model']['createRange'](_0x37f9f8,_0x307126['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x33e50e){for(const {suggestion:_0x48255b,meta:_0x25e557}of this['_findSuggestions'](_0x33e50e,'insertion')){if(!_0x25e557['isOwn'])continue;const _0x514365=_0x48255b['getRanges']();for(const _0xb89324 of _0x514365)if(!_0x33e50e['getDifference'](_0xb89324)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x555858){const _0x81cd1d=this['editor']['plugins']['get']('Users')['getUser'](_0x555858);if(!_0x81cd1d)throw new _0xcccb3d('track-changes-user-not-found',this);return _0x81cd1d;}['_getExternalAuthor'](_0x458252){const _0x5dac21=this['editor']['plugins']['get']('Users'),_0x532d69=_0x3890d7('external:'+_0x458252),_0x42a55c=_0x5dac21['getUser'](_0x532d69);return _0x42a55c||_0x5dac21['addUser']({'id':_0x532d69,'name':_0x458252});}['_createSuggestion'](_0x4f859b,_0x1e8c08,_0x2f3c8c,_0x47fcd0,_0x24e034){const _0x5c0861=this['_getAuthorFromId'](_0x47fcd0),_0x56ce98=this['_suggestionFactory']['buildSuggestion'](_0x4f859b,_0x1e8c08,_0x2f3c8c,_0x5c0861,_0x24e034,_0x39783b=>{this['_updateSuggestionData'](_0x2f3c8c,{'attributes':_0x39783b});const _0x54077d=this['getSuggestion'](_0x2f3c8c);this['_joinWithAdjacentSuggestions'](new Set([_0x54077d])),this['_refreshSuggestionsChain'](new Set([_0x54077d]));});return this['listenTo'](_0x56ce98,'accept',()=>{this['_updateSuggestionData'](_0x2f3c8c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x56ce98,'discard',()=>{this['_updateSuggestionData'](_0x2f3c8c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f3c8c,_0x56ce98),this['_suggestionState']['set'](_0x56ce98,'notReady'),_0x56ce98;}['_splitMarkerName'](_0x3aaf07){const _0x5040c7=_0x3aaf07['split'](':');return{'group':_0x5040c7[0x0],'type':_0x5040c7[0x1],'subType':_0x5040c7['length']>=0x5?_0x5040c7[0x2]:null,'id':_0x5040c7['length']<0x5?_0x5040c7[0x2]:_0x5040c7[0x3],'authorId':_0x5040c7['length']<0x5?_0x5040c7[0x3]:_0x5040c7[0x4],'markerCount':0x6==_0x5040c7['length']?_0x5040c7[0x5]:null};}['_breakSuggestionMarker'](_0x2b2c01,_0xfc63be,_0x46a6d5){const _0x4bacb0=_0x2b2c01['getFirstRange'](),_0x51bab0=_0x4bacb0['start'],_0x256354=_0x4bacb0['end'];this['_setSuggestionRange'](_0x2b2c01,this['_model']['createRange'](_0x51bab0,_0xfc63be));const _0x4ec2c4=_0x3415dc(),_0x14a669=_0x2b2c01['creator']['id'],_0x121d91=_0x2b2c01['type']+(_0x2b2c01['subType']?':'+_0x2b2c01['subType']:'');this['_setSuggestionData']({'id':_0x4ec2c4,'type':_0x121d91,'createdAt':new Date(),'authorId':_0x14a669,'originalSuggestionId':_0x2b2c01['id'],'attributes':_0x2b2c01['attributes'],'data':_0x2b2c01['data']});const _0x4eb973=this['_getAttributeKey'](_0x2b2c01);('formatBlock'==_0x2b2c01['type']||_0x4eb973&&this['_isBlockAttribute'](_0x4eb973))&&(_0x46a6d5=this['_model']['createPositionBefore'](_0x46a6d5['parent'])),this['_addSuggestionMarker'](_0x121d91,_0x4ec2c4,_0x14a669,this['_model']['createRange'](_0x46a6d5,_0x256354));}['_findSuggestions'](_0xad5a63,_0x341311=null){const _0x4d53d7=[],_0x588ca7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xad5a63)||(_0xad5a63=[_0xad5a63]);for(const _0x3e84a8 of this['getSuggestions']()){if(!_0x3e84a8['isInContent'])continue;if(_0x341311&&_0x3e84a8['type']!=_0x341311)continue;let _0x219019=!0x1;for(const _0x37d959 of _0x3e84a8['getRanges']()){for(const _0x3c23e5 of _0xad5a63){const _0x57278b=_0x3c23e5['start']['isEqual'](_0x37d959['end'])||_0x3c23e5['end']['isEqual'](_0x37d959['start']);if(_0x57278b||_0x3c23e5['getIntersection'](_0x37d959)){const _0x121970=_0x3c23e5['containsRange'](_0x37d959)&&Ot(this['_model']['schema'],_0x37d959['start'],_0x3c23e5),_0x6be5a=_0x37d959['containsRange'](_0x3c23e5)&&Ot(this['_model']['schema'],_0x3c23e5['start'],_0x37d959);_0x4d53d7['push']({'suggestion':_0x3e84a8,'meta':{'isOwn':_0x588ca7==_0x3e84a8['author'],'isNextTo':_0x57278b,'isInsideObject':_0x121970,'containsRangeInObject':_0x6be5a}}),_0x219019=!0x0;break;}}if(_0x219019)break;}}return _0x4d53d7;}['_addSuggestionMarker'](_0x240847,_0x1f4678,_0x49764c,_0x1d1b8d,_0x2d42a3){this['_model']['change'](_0x3da21b=>{let _0x184945='suggestion:'+_0x240847+':'+_0x1f4678+':'+_0x49764c;_0x2d42a3&&(_0x184945=_0x184945+':'+_0x2d42a3),_0x3da21b['addMarker'](_0x184945,{'range':_0x1d1b8d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x166ef5){const _0x362d64=_0x166ef5['previous'],_0x2ea3fb=_0x166ef5['next'];_0x166ef5['previous']=null,_0x166ef5['next']=null,null!=_0x362d64&&_0x362d64['next']==_0x166ef5&&(_0x362d64['next']=_0x2ea3fb),null!=_0x2ea3fb&&_0x2ea3fb['previous']==_0x166ef5&&(_0x2ea3fb['previous']=_0x362d64),'ready'==this['_suggestionState']['get'](_0x166ef5)&&(this['_suggestionState']['set'](_0x166ef5,'removed'),this['fire']('suggestionUnloaded',_0x166ef5,_0x362d64,_0x2ea3fb));}['_setSuggestionData'](_0x1d8edc){const _0x28511c=_0x1d8edc['id'],_0x95e889=this['addSuggestionData'](_0x1d8edc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x47bf02=this['editor']['plugins']['get']('PendingActions'),_0x468627=_0x95e889['hasComments'],_0x1a7ecb=_0x95e889['subType']?_0x95e889['type']+':'+_0x95e889['subType']:_0x95e889['type'],_0x555a4f=this['editor']['locale'],_0xceb77a=_0x47bf02['add'](o(_0x555a4f,'PENDING_ACTION_SUGGESTION')),_0x292bed={'id':_0x28511c,'type':_0x1a7ecb,'hasComments':_0x468627,'data':_0x1d8edc['data']||null,'originalSuggestionId':_0x1d8edc['originalSuggestionId']||null,'attributes':_0x95e889['attributes']};this['_adapter']['addSuggestion'](_0x292bed)['then'](_0xde90f7=>{_0x95e889['_saved']=!0x0,_0x47bf02['remove'](_0xceb77a),_0xde90f7&&_0xde90f7['createdAt']&&(this['_suggestions']['get'](_0x28511c)['createdAt']=_0xde90f7['createdAt']);})['catch'](_0x2271ee=>{throw _0x5ef1ed('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x95e889['discard']();}),_0x95e889['stopListening'](),this['_suggestions']['delete'](_0x95e889['id']),this['_suggestionState']['delete'](_0x95e889),_0x2271ee;});}return _0x95e889;}['_isBlockAttribute'](_0x3933cb){return this['_blockAttributeKeys']['has'](_0x3933cb);}['_updateSuggestionData'](_0x21d587,_0x5f2913){const _0x6e0f29=this['editor']['plugins']['get']('PendingActions'),_0x2b1dd7=this['getSuggestion'](_0x21d587);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2b1dd7['_saved']){const _0x17fbca=_0x6e0f29['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x21d587,_0x5f2913)['then'](()=>{_0x6e0f29['remove'](_0x17fbca);});}else _0x2b1dd7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x21d587,_0x5f2913);});}}['_getSuggestionData'](_0x4bcef9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xcccb3d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4bcef9);}['_handleNewSuggestionMarker'](_0x452b2f){const {id:_0x5bfc64,type:_0x116bd3,subType:_0x307f71,authorId:_0x3d3e64}=this['_splitMarkerName'](_0x452b2f),_0x369802=this['_suggestions']['get'](_0x5bfc64)||this['_createSuggestion'](_0x116bd3,_0x307f71,_0x5bfc64,_0x3d3e64,{});switch(this['_checkSuggestionCorrectness'](_0x369802,_0x116bd3,_0x307f71,_0x3d3e64),this['_suggestionState']['get'](_0x369802)){case'notReady':this['_getSuggestionData'](_0x5bfc64)['then'](_0x26d04b=>{let _0x15931f=Promise['resolve']();_0x26d04b['hasComments']&&(_0x15931f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5bfc64})),_0x15931f['then'](()=>{this['addSuggestionData'](_0x26d04b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x369802,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5bfc64,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x369802,'ready'),this['fire']('suggestionLoaded',_0x369802);break;case'ready':this['fire']('suggestionChanged',_0x369802);}return _0x369802['addMarkerName'](_0x452b2f),_0x369802;}['_refreshSuggestionsChain'](_0x2b63e0){const _0xc38f9e=Array['from'](_0x2b63e0),_0x479a2c=_0xc38f9e['filter'](_0x510ae8=>'attribute'==_0x510ae8['type']);this['_refreshAttributeSuggestionsChain'](_0x479a2c);const _0x51e937=_0xc38f9e['filter'](_0x18186f=>!_0x18186f['isMultiRange']&&'attribute'!=_0x18186f['type']),_0x5d0b71=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35d26d=>!_0x35d26d['isMultiRange']&&'attribute'!=_0x35d26d['type']),_0x482f65=_0x5d0b71['filter'](_0x119703=>!_0x2b63e0['has'](_0x119703)),_0x51deb1=new Map(_0x5d0b71['map'](_0x20923d=>[_0x20923d,this['_suggestionFactory']['getSuggestionCallback'](_0x20923d['type'],_0x20923d['subType'],'chain')])),_0x1082d0=new Map(_0x5d0b71['map'](_0x5c938b=>[_0x5c938b,_0x5c938b['getFirstRange']()])),_0x1f6b2b=new Set(),_0x30ef1b=new Set();for(let _0x2bedb0=0x0;_0x2bedb0<_0x51e937['length'];_0x2bedb0++)_0x375c69(_0x51e937[_0x2bedb0],_0x51e937,_0x2bedb0+0x1);for(let _0x3b7171=0x0;_0x3b7171<_0x51e937['length'];_0x3b7171++)_0x375c69(_0x51e937[_0x3b7171],_0x482f65,0x0);const _0x535540=new Set();for(let _0x10dc13=0x0;_0x10dc13<_0x51e937['length'];_0x10dc13++){const _0x4fdaa4=_0x51e937[_0x10dc13];!_0x30ef1b['has'](_0x4fdaa4)&&_0x4fdaa4['previous']&&(_0x535540['add'](_0x4fdaa4['previous']),_0x4fdaa4['previous']['next']===_0x4fdaa4&&(_0x4fdaa4['previous']['next']=null),_0x4fdaa4['previous']=null),!_0x1f6b2b['has'](_0x4fdaa4)&&_0x4fdaa4['next']&&(_0x535540['add'](_0x4fdaa4['next']),_0x4fdaa4['next']['previous']===_0x4fdaa4&&(_0x4fdaa4['next']['previous']=null),_0x4fdaa4['next']=null);}function _0x375c69(_0x228936,_0x38a28d,_0x88c1d8){for(let _0x5019da=_0x88c1d8;_0x5019da<_0x38a28d['length'];_0x5019da++){const _0x32136a=_0x4dd8c5(_0x228936,_0x38a28d[_0x5019da]);_0x32136a&&(_0x32136a[0x0]['next']=_0x32136a[0x1],_0x32136a[0x1]['previous']=_0x32136a[0x0],_0x1f6b2b['add'](_0x32136a[0x0]),_0x30ef1b['add'](_0x32136a[0x1]));}}function _0x4dd8c5(_0x31e249,_0x11164a){if(_0x31e249['author']['id']!==_0x11164a['author']['id'])return null;const _0x22ead8=_0x51deb1['get'](_0x31e249)(_0x31e249,_0x11164a,_0x1082d0['get'](_0x31e249),_0x1082d0['get'](_0x11164a));if(!_0x22ead8)return null;return _0x51deb1['get'](_0x11164a)(_0x31e249,_0x11164a,_0x1082d0['get'](_0x31e249),_0x1082d0['get'](_0x11164a))?_0x22ead8[0x1]['commentThread']&&_0x22ead8[0x1]['commentThread']['length']?null:_0x22ead8:null;}_0x535540['size']&&this['_refreshSuggestionsChain'](_0x535540);}['_refreshAttributeSuggestionsChain'](_0x216aff){if(0x0==_0x216aff['length'])return;const _0x51ddd0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d810f=>'attribute'==_0x3d810f['type']&&_0x3d810f['_isDataLoaded']),_0x5c04f1=[],_0x16d1e9=new Map();for(const _0x3076c0 of _0x51ddd0){const _0x3d574b=_0x3890d7(_0x3076c0['attributes']);_0x16d1e9['has'](_0x3d574b)||(_0x16d1e9['set'](_0x3d574b,_0x5c04f1['length']),_0x5c04f1['push']([]));const _0x221521=_0x16d1e9['get'](_0x3d574b);_0x5c04f1[_0x221521]['push'](_0x3076c0);}!(function(){_0x5c04f1['sort']((_0x43672c,_0x2af550)=>{const _0x271229=_0x43672c[0x0]['createdAt'],_0x1ca6c6=_0x2af550[0x0]['createdAt'];return _0x271229==_0x1ca6c6?_0x43672c[0x0]['attributes']['groupId']<_0x2af550[0x0]['attributes']['groupId']?-0x1:0x1:_0x271229<_0x1ca6c6?-0x1:0x1;});for(const _0x19509e of _0x5c04f1)_0x19509e['sort']((_0x3bb5d9,_0x4b12d8)=>_0x3bb5d9['id']<_0x4b12d8['id']?-0x1:0x1);}());for(let _0x3f1e57=0x0;_0x3f1e57<_0x5c04f1['length'];_0x3f1e57++){if(0x0==_0x5c04f1[_0x3f1e57]['length'])continue;const _0x4305ad=[];for(let _0x1941f9=_0x3f1e57+0x1;_0x1941f9<_0x5c04f1['length'];_0x1941f9++)0x0!=_0x5c04f1[_0x1941f9]['length']&&_0x3205c6(_0x5c04f1[_0x3f1e57],_0x5c04f1[_0x1941f9])&&_0x4305ad['push'](_0x1941f9);for(const _0x987a51 of _0x4305ad)_0x5c04f1[_0x3f1e57]=_0x5c04f1[_0x3f1e57]['concat'](_0x5c04f1[_0x987a51]),_0x5c04f1[_0x987a51]=[];}for(const _0x42dccc of _0x5c04f1)for(let _0x504e1a=0x0;_0x504e1a<_0x42dccc['length'];_0x504e1a++){const _0x1d9e9b=_0x42dccc[_0x504e1a+0x1]||null;_0x42dccc[_0x504e1a]['next']!==_0x1d9e9b&&(_0x42dccc[_0x504e1a]['next']=_0x1d9e9b);}for(const _0x419953 of _0x5c04f1)for(let _0x5cad31=0x0;_0x5cad31<_0x419953['length'];_0x5cad31++){const _0x4b6e86=_0x419953[_0x5cad31-0x1]||null;_0x419953[_0x5cad31]['previous']!==_0x4b6e86&&(_0x419953[_0x5cad31]['previous']=_0x4b6e86);}function _0x3205c6(_0x51702c,_0x3bb94f){if(_0x51702c[0x0]['attributes']['groupId']!==_0x3bb94f[0x0]['attributes']['groupId']&&_0x51702c[0x0]['author']!==_0x3bb94f[0x0]['author'])return!0x1;if(!function(_0xc385a9,_0x5a9344){if(!_0xc385a9['hasComments']&&!_0x5a9344['hasComments'])return!0x0;if(_0xc385a9['hasComments']&&_0x5a9344['hasComments'])return!0x1;if(_0xc385a9['hasComments']&&_0x5a9344['createdAt']<_0xc385a9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a9344['hasComments']&&_0xc385a9['createdAt']<_0x5a9344['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x51702c[0x0],_0x3bb94f[0x0]))return!0x1;const _0x3a35f7=Tt(_0x51702c[0x0]['attributes'],'groupId'),_0x317d5e=Tt(_0x3bb94f[0x0]['attributes'],'groupId');if(!_0x18cd34(_0x3a35f7,_0x317d5e))return!0x1;return!!_0x51702c['every'](_0x86f27=>_0x3bb94f['some'](_0x47253b=>_0x86f27['getFirstRange']()['isEqual'](_0x47253b['getFirstRange']())))&&_0x3bb94f['every'](_0x40581a=>_0x51702c['some'](_0x442a81=>_0x40581a['getFirstRange']()['isEqual'](_0x442a81['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x588caa){const _0x52f664=Array['from'](_0x588caa),_0x5ed566=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2ffd9b=_0x5ed566['filter'](_0x5ec179=>!_0x588caa['has'](_0x5ec179)),_0x185ae6=new Map(_0x52f664['map'](_0x10128a=>[_0x10128a,this['_suggestionFactory']['getSuggestionCallback'](_0x10128a['type'],_0x10128a['subType'],'join')])),_0x53591d=new Map(_0x5ed566['map'](_0x340292=>[_0x340292,_0x340292['getRanges']()]));for(let _0x35fdd3=0x0;_0x35fdd3<_0x52f664['length'];_0x35fdd3++){if(_0x3e7280(this,_0x52f664[_0x35fdd3],_0x52f664,_0x35fdd3+0x1))return!0x0;}for(let _0x45f9ac=0x0;_0x45f9ac<_0x52f664['length'];_0x45f9ac++){if(_0x3e7280(this,_0x52f664[_0x45f9ac],_0x2ffd9b,0x0))return!0x0;}return!0x1;function _0x3e7280(_0x4e2c57,_0x569f71,_0x3fadee,_0x30acfd){for(let _0xa24115=_0x30acfd;_0xa24115<_0x3fadee['length'];_0xa24115++){const _0x56258a=_0x3fadee[_0xa24115];if(_0x56258a['type']!==_0x569f71['type']||_0x56258a['author']['id']!==_0x569f71['author']['id']||_0x56258a['subType']!==_0x569f71['subType'])continue;if(!Jt(_0x569f71,_0x56258a))continue;if('attribute'==_0x569f71['type']&&_0x569f71['data']['oldValue']!=_0x56258a['data']['oldValue'])continue;if('attribute'==_0x569f71['type']&&_0x4e2c57['_isBlockAttribute'](_0x569f71['data']['key']))continue;if('formatBlock'==_0x569f71['type']){const _0x15cac6=_0x4e2c57['editor']['model'],_0x1f1221=_0x569f71['getContainedElement']();if(_0x1f1221&&(_0x15cac6['schema']['isObject'](_0x1f1221)||_0x15cac6['schema']['isLimit'](_0x1f1221)))continue;}const _0x131dfd=_0x185ae6['get'](_0x569f71),_0x59df3f=_0x53591d['get'](_0x569f71),_0x1b1add=_0x53591d['get'](_0x56258a),_0x53c129=_0x569f71['commentThread']&&_0x569f71['commentThread']['length'],_0x2dfeb9=_0x56258a['commentThread']&&_0x56258a['commentThread']['length'];if(!_0x53c129&&_0x131dfd(_0x1b1add,_0x59df3f))return _0x4e2c57['_joinSuggestions'](_0x56258a,_0x569f71),_0x53591d['delete'](_0x569f71),!0x0;if(!_0x2dfeb9&&_0x131dfd(_0x59df3f,_0x1b1add))return _0x4e2c57['_joinSuggestions'](_0x569f71,_0x56258a),_0x53591d['delete'](_0x56258a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5b4a7f,_0xf089e){if(_0x5b4a7f['isMultiRange']){for(const _0x4d6b98 of _0xf089e['getRanges']())_0x5b4a7f['addRange'](_0x4d6b98);}else{const _0x568693=_0xf089e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5b4a7f,this['_model']['createRange'](_0x5b4a7f['getFirstRange']()['start'],_0x568693));}_0xf089e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x395083,_0x1c20db,_0x18ac33){const _0xe2c97b=_0x395083['startsWith']('format')||_0x395083['startsWith']('attribute')?'FORMATTING':_0x395083['toUpperCase']();return o(this['editor']['locale'],_0x1c20db+'_'+_0xe2c97b+'_SUGGESTION_ANNOUNCEMENT',_0x18ac33);}['_initAriaMarkerChangeAnnouncements'](){const _0x412fff=this['editor'];if(!_0x412fff['ui'])return;const {ariaLiveAnnouncer:_0x3c3981}=_0x412fff['ui'];_0x394842(this['_model'],({left:_0x4a6ba4,entered:_0x5ee464})=>{for(const _0x2194e4 of _0x4a6ba4){const {group:_0x5e1e1a,type:_0x5cbe0d}=this['_splitMarkerName'](_0x2194e4['name']);if('suggestion'===_0x5e1e1a){_0x3c3981['announce'](this['_getMarkerAnnouncementText'](_0x5cbe0d,'LEAVE'));break;}}for(const _0x2de0dc of _0x5ee464){const {group:_0x4ba875,type:_0x4c1a8e}=this['_splitMarkerName'](_0x2de0dc['name']);if('suggestion'===_0x4ba875){_0x3c3981['announce'](this['_getMarkerAnnouncementText'](_0x4c1a8e,'ENTER',_0x285f2b(_0x3a300c)));break;}}});}['_processAttributeChanges'](_0x55ced1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x51a869=this['editor'],_0x36332b=_0x51a869['model']['document']['differ']['getChanges']();if(0x0==_0x36332b['length'])return!0x1;const _0x5c5b0d=[],_0x475bc8=_0x36332b['filter'](_0x357799=>'attribute'==_0x357799['type']),_0x303f37=_0x36332b['filter'](_0x2858bf=>'insert'==_0x2858bf['type']&&'$text'!=_0x2858bf['name']),_0xa3b8bb=_0x36332b['filter'](_0x5e0e4d=>'remove'==_0x5e0e4d['type']&&'$text'!=_0x5e0e4d['name']);for(const _0x42e872 of _0x475bc8)_0x5c5b0d['push']({'key':_0x42e872['attributeKey'],'newValue':_0x42e872['attributeNewValue'],'oldValue':_0x42e872['attributeOldValue'],'range':Pt(_0x42e872['range'],_0x51a869['model'])});for(const _0x2843d3 of _0x303f37){const _0x458851=_0xa3b8bb['find'](_0x45a3b1=>_0x45a3b1['position']['isEqual'](_0x2843d3['position']));_0x458851&&_0x5c5b0d['push']({'key':m,'newValue':_0x2843d3['name'],'oldValue':_0x458851['name'],'range':_0x51a869['model']['createRangeOn'](_0x2843d3['position']['nodeAfter'])});}return 0x0!=_0x5c5b0d['length']&&this['_reduceExistingSuggestions'](_0x55ced1,_0x5c5b0d);}['_processAttributeSuggestions'](_0x415842){let _0x1b6660=!0x1;const _0x5a831b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49761c=>_0x49761c['data']['newRange']&&_0x49761c['name']['startsWith']('suggestion:attribute:'));for(const _0x34fa3e of _0x5a831b){const {subType:_0x2d5dfd,id:_0x5d9620}=this['_splitMarkerName'](_0x34fa3e['name']),_0x1c852d=_0x2d5dfd['split']('|')[0x0];for(const _0x43679a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x43679a['id']!=_0x5d9620&&'attribute'==_0x43679a['type']&&_0x43679a['data']&&_0x43679a['data']['key']==_0x1c852d&&_0x43679a['getFirstRange']()['isIntersecting'](_0x34fa3e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x43679a,_0x34fa3e['data']['newRange'],_0x415842),_0x1b6660=!0x0);}return _0x1b6660;}['_recordAttributeChanges'](_0x587244){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x587244();}['_isRegisteredAttribute'](_0x4cf427){const _0x2d22ac=this['_isBlockAttribute'](_0x4cf427),_0x2bbed6=this['_inlineAttributeKeys']['has'](_0x4cf427);return _0x2d22ac||_0x2bbed6;}['_reduceExistingSuggestions'](_0x58c0e9,_0x27c50b){if(0x0==_0x27c50b['length'])return!0x1;let _0x5df95b=!0x1;for(const _0x576981 of _0x27c50b){const _0x445096=this['_findSuggestions'](_0x576981['range'],'attribute')['filter'](_0x3adfb5=>!_0x3adfb5['meta']['isNextTo'])['map'](_0x556b79=>_0x556b79['suggestion']),_0xf170a5=_0x3890d7({'newValue':_0x576981['newValue']});_0x445096['filter'](_0x5a2824=>{const [_0x5f47e9,_0x47764f]=_0x5a2824['subType']['split']('|');return _0x5f47e9==_0x576981['key']&&_0x47764f!=_0xf170a5;})['forEach'](_0x5450bc=>{this['_reduceSuggestionAttributeRange'](_0x5450bc,_0x576981['range'],_0x58c0e9),_0x5df95b=!0x0;});}return _0x5df95b;}['_reduceSuggestionAttributeRange'](_0x100ccc,_0x358f6f,_0x1ffd33){const _0x4301e4=_0x100ccc['getFirstRange']()['getDifference'](_0x358f6f);0x0!==_0x4301e4['length']?0x1!==_0x4301e4['length']?this['_breakSuggestionMarker'](_0x100ccc,_0x358f6f['start'],_0x358f6f['end']):this['_setSuggestionRange'](_0x100ccc,_0x4301e4[0x0]):_0x1ffd33['removeMarker'](_0x100ccc['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x272927){this['_editor']=_0x272927,this['_model']=_0x272927['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2c5b2a,_0x1a236a,_0x35bab4,_0x19452b,_0x5b0110,_0x17f93b){return new u(this['_model'],{'type':_0x2c5b2a,'subType':_0x1a236a,'id':_0x35bab4,'author':_0x19452b,'creator':_0x19452b,'attributes':_0x5b0110,'onAttributesChange':_0x17f93b,'onAccept':(..._0x22219a)=>this['getSuggestionCallback'](_0x2c5b2a,_0x1a236a,'accept')(..._0x22219a),'onDiscard':(..._0x10fa19)=>this['getSuggestionCallback'](_0x2c5b2a,_0x1a236a,'discard')(..._0x10fa19)});}['registerCustomCallback'](_0x8c6807,_0x403c21,_0x38b94a,_0x535b58){const _0x327275=_0x8c6807+':'+_0x403c21+':'+_0x38b94a;this['_customCallbacks']['set'](_0x327275,_0x535b58);}['getSuggestionCallback'](_0x236a1d,_0x2c9a88,_0x5f5230){const _0x470fb5=_0x236a1d+':'+_0x2c9a88+':'+_0x5f5230;return this['_customCallbacks']['get'](_0x470fb5)||this['_defaultCallbacks']['get'](_0x236a1d+':'+_0x5f5230);}['_registerDefaultCallbacks'](){const _0x180cdf=()=>!0x1,_0x213a12=_0xd90325=>{_0xd90325['sort']((_0x4e8561,_0x499f72)=>_0x4e8561['start']['isBefore'](_0x499f72['start'])?0x1:-0x1),this['_model']['change'](_0xe1c9b1=>{for(const _0x574776 of _0xd90325){let _0x4acd89;_0x4acd89=_0x574776['end']['isAtEnd']&&_0x574776['end']['parent']==_0x574776['start']['nodeAfter']?_0xe1c9b1['createSelection'](_0x574776['start']['nodeAfter'],'on'):_0xe1c9b1['createSelection'](_0x574776),this['_model']['deleteContent'](_0x4acd89,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x9fe0fd=(_0x2b8d6d,_0x3f6d5c)=>{_0x3f6d5c&&this['_model']['change'](_0x54965b=>{const {commandName:_0x5d22b7,commandParams:_0x1b88ac=[]}=_0x3f6d5c,_0x4d0bc4=_0x2b8d6d['map'](_0x1db839=>(Vt(_0x1db839)&&(_0x1db839=this['_model']['createRange'](_0x1db839['end'])),_0x1db839))['filter'](_0x275945=>'$graveyard'!==_0x275945['root']['rootName']);if(_0x4d0bc4['length']<0x1)return;const _0x6e68b5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f2bd9=>_0x2fd4c8['fromRange'](_0x3f2bd9));_0x54965b['setSelection'](_0x4d0bc4);for(const _0x1ecc53 of this['_editor']['commands']['commands']())_0x1ecc53['refresh']();_0x1b88ac['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5d22b7,..._0x1b88ac);const _0x1f363d=_0x6e68b5['filter'](_0x170c06=>'$graveyard'!=_0x170c06['root']['rootName']);_0x1f363d['length']>0x0&&_0x54965b['setSelection'](_0x1f363d);for(const _0x4244da of _0x6e68b5)_0x4244da['detach']();});},_0x2ec70a=(_0x5c42c8,_0x3cd737)=>0x1==_0x5c42c8['length']&&0x1==_0x3cd737['length']&&_0x5c42c8[0x0]['end']['isEqual'](_0x3cd737[0x0]['start']),_0xfa8f9a=(_0x3a4528,_0x1ee674,_0x77ff32,_0x557060)=>Ht(_0x3a4528,_0x1ee674,_0x77ff32,_0x557060,this['_model'])?[_0x3a4528,_0x1ee674]:Ht(_0x1ee674,_0x3a4528,_0x557060,_0x77ff32,this['_model'])?[_0x1ee674,_0x3a4528]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x180cdf),this['_defaultCallbacks']['set']('insertion:discard',_0x213a12),this['_defaultCallbacks']['set']('insertion:join',_0x2ec70a),this['_defaultCallbacks']['set']('insertion:chain',_0xfa8f9a),this['_defaultCallbacks']['set']('deletion:accept',_0x213a12),this['_defaultCallbacks']['set']('deletion:discard',_0x180cdf),this['_defaultCallbacks']['set']('deletion:join',_0x2ec70a),this['_defaultCallbacks']['set']('deletion:chain',_0xfa8f9a),this['_defaultCallbacks']['set']('formatInline:accept',_0x9fe0fd),this['_defaultCallbacks']['set']('formatInline:discard',_0x180cdf),this['_defaultCallbacks']['set']('formatInline:join',_0x2ec70a),this['_defaultCallbacks']['set']('formatInline:chain',_0x180cdf),this['_defaultCallbacks']['set']('formatBlock:accept',_0x9fe0fd),this['_defaultCallbacks']['set']('formatBlock:discard',_0x180cdf),this['_defaultCallbacks']['set']('formatBlock:join',_0x2ec70a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x180cdf),this['_defaultCallbacks']['set']('attribute:accept',_0x180cdf),this['_defaultCallbacks']['set']('attribute:discard',(_0xe63e51,_0x362d0c)=>{if(!_0x362d0c)return;const _0x5124fe=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c6e06=>{if(_0x362d0c['key']==m)for(const _0x17e2c9 of _0xe63e51){const _0x1891bd=_0x17e2c9['start']['nodeAfter'],_0x304f08=_0x362d0c['oldValue'];_0x2c6e06['rename'](_0x1891bd,_0x304f08);}else{if(_0x5124fe['_isBlockAttribute'](_0x362d0c['key'])){for(const _0x20e170 of _0xe63e51)void 0x0!==_0x362d0c['oldValue']?_0x2c6e06['setAttribute'](_0x362d0c['key'],_0x362d0c['oldValue'],_0x20e170['start']['nodeAfter']):_0x2c6e06['removeAttribute'](_0x362d0c['key'],_0x20e170['start']['nodeAfter']);}else{for(const _0xce1a6a of _0xe63e51)_0x362d0c['oldValue']?_0x2c6e06['setAttribute'](_0x362d0c['key'],_0x362d0c['oldValue'],_0xce1a6a):_0x2c6e06['removeAttribute'](_0x362d0c['key'],_0xce1a6a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2ec70a);}}function Ot(_0x45096c,_0x43a263,_0xbc6d1d){for(const _0x2be9af of _0x43a263['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2be9af['root']==_0x2be9af)return!0x1;if(!_0xbc6d1d['containsItem'](_0x2be9af))return!0x1;if(_0x45096c['isObject'](_0x2be9af)||_0x45096c['isLimit'](_0x2be9af))return!0x0;}return!0x1;}function Vt(_0x8d5fa3){return _0x8d5fa3['end']['parent']==_0x8d5fa3['start']['nodeAfter']&&_0x8d5fa3['end']['isAtStart'];}function Ut(_0x124863,_0x2bf095,_0xb384fa,_0x4c03c4){const _0x225fdb=_0x613a8c=>!_0x613a8c['item']['is']('$textProxy')&&!_0x4c03c4['isObject'](_0x613a8c['item']),_0x266e97=_0x124863['start']['getLastMatchingPosition'](_0x225fdb),_0x46837e=_0x124863['end']['getLastMatchingPosition'](_0x225fdb,{'direction':'backward'});return(!_0x124863['start']['isEqual'](_0x266e97)||!_0x124863['end']['isEqual'](_0x46837e))&&(_0x266e97['isBefore'](_0x46837e)?_0xb384fa['updateMarker'](_0x2bf095,{'range':_0xb384fa['createRange'](_0x266e97,_0x46837e)}):_0xb384fa['removeMarker'](_0x2bf095),!0x0);}function Gt(_0x1afeea){return _0x3890d7(_0x1afeea);}function Ft(_0x1feae1){const _0x1c9ce6=_0x1feae1['start']['nodeAfter'];return _0x1c9ce6&&_0x1c9ce6['is']('element');}function Pt(_0x504029,_0x2dd7c7){return null==_0x504029['end']['nodeBefore']&&_0x504029['end']['parent']==_0x504029['start']['nodeAfter']?Lt(_0x504029['start']['nodeAfter'],_0x2dd7c7):_0x504029;}function Lt(_0x5dfe00,_0x48efcb){const _0x2aa04f=_0x48efcb['schema']['isObject'](_0x5dfe00)||_0x48efcb['schema']['isSelectable'](_0x5dfe00);return _0x48efcb['createRange'](_0x48efcb['createPositionAt'](_0x5dfe00,'before'),_0x2aa04f?_0x48efcb['createPositionAfter'](_0x5dfe00):_0x48efcb['createPositionAt'](_0x5dfe00,'end'));}function Ht(_0x5c6e36,_0x5713d7,_0x5e18fd,_0x54169a,_0x2b5863){if(_0x5c6e36['next'])return!0x1;if(!Jt(_0x5c6e36,_0x5713d7))return!0x1;if(_0x5e18fd['end']['isEqual'](_0x54169a['start']))return!0x0;if(_0x5c6e36['type']!=_0x5713d7['type'])return!0x1;if(!_0x5e18fd['end']['isTouching'](_0x54169a['start']))return!0x1;const _0x2e7b30=_0x2b5863['createRange'](_0x5e18fd['end'],_0x54169a['start'])['getWalker']();for(const _0x18c463 of _0x2e7b30)if(['elementStart','elementEnd']['includes'](_0x18c463['type'])&&_0x2b5863['schema']['isLimit'](_0x18c463['item']))return!0x1;return!0x0;}function Jt(_0x27be49,_0x29e9ae){if(!_0x27be49['_isDataLoaded']||!_0x29e9ae['_isDataLoaded'])return!0x1;const _0x395b11=new Set(Object['keys'](_0x27be49['attributes'])),_0x298cda=new Set(Object['keys'](_0x29e9ae['attributes']));if(_0x395b11['delete']('groupId'),_0x298cda['delete']('groupId'),0x0==_0x395b11['size']&&0x0==_0x298cda['size'])return!0x0;if(_0x395b11['size']!=_0x298cda['size'])return!0x1;const _0x423d0e={..._0x27be49['attributes']},_0x1dfbd0={..._0x29e9ae['attributes']};return delete _0x423d0e['groupId'],delete _0x1dfbd0['groupId'],JSON['stringify'](_0x423d0e)==JSON['stringify'](_0x1dfbd0);}function qt(_0x2a5c46,_0x3f5c53){const _0x497a0f=zt(_0x2a5c46['attributes']),_0x2b887f=zt(_0x3f5c53);if(!_0x2a5c46['_isDataLoaded'])return!0x1;for(const _0x5ee4a9 of Object['keys'](_0x2b887f))if(!_0x18cd34(_0x497a0f[_0x5ee4a9],_0x2b887f[_0x5ee4a9]))return!0x1;return!0x0;}function zt(_0x44930c){const _0xc02da7=Object['assign']({},_0x44930c);return delete _0xc02da7['skipNestingCheck'],delete _0xc02da7['tablePasteChainId'],_0xc02da7;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x264c04(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x51d3ca,_0x26ff75,_0x534f68,_0x266d1c){super(),this['model']=_0x26ff75,this['view']=_0x534f68,this['commentThreadController']=_0x266d1c,this['_editor']=_0x51d3ca,this['_acceptCommand']=_0x51d3ca['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x51d3ca['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2439fe,_0x5a6b25)=>_0x2439fe||_0x5a6b25),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2eb51b=>_0x2eb51b&&this['_editor']['model']['canEditAt'](_0x26ff75['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1be017=>_0x1be017&&this['_editor']['model']['canEditAt'](_0x26ff75['getRanges']())),this['_pendingAction']=null,_0x534f68['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x534f68,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x534f68,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x534f68,'change:isDirty',()=>{_0x534f68['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 _0x4e3f15=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4e3f15);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1a2958{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xa34ac5,_0x1929c1,_0x4b45c0,_0x351908){super(_0xa34ac5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2ccf23(_0xa34ac5,o(_0xa34ac5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1929c1['authoredAt']),this['bind']('authoredAt')['to'](_0x1929c1),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',_0x1929c1,'authoredAt',this,'descriptionParts',(_0x4a29b8,_0x57c81e,_0x2dfce6)=>{const _0x42c0fd=_0x2dfce6['map'](_0x45ba9d=>ls(_0x45ba9d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4a29b8-0x1,_0x1929c1['author']['name'],_0x57c81e?_0x351908['formatDateTime'](_0x57c81e):'',new DOMParser()['parseFromString'](_0x42c0fd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5dca52(),this['focusTracker']=new _0x282df3(),this['keystrokes']=new _0x430d02(),this['focusCycler']=new _0x414104({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x46976e=>_0x46976e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1929c1,this['_localUser']=_0x4b45c0,this['_config']=_0x351908,_0x351908['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1c4793(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xdc9db8}=this['_config'];this['commentsListView']=new _0xdc9db8(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',_0x405269=>_0x405269+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5ebb41,_0x313703)=>_0x5ebb41||!!_0x313703);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3693f4}=this['_config'],_0x2f0a47=new _0x3693f4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xffac9c=_0x2f0a47['commentInputView'];return _0x2f0a47['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xffac9c,'value',(_0x1d2153,_0xc4ca1e,_0x18d784)=>!!_0x18d784||_0x1d2153&&!_0xc4ca1e),_0xffac9c['on']('submit',(_0x1f232e,_0x27dfb9)=>{this['fire']('addComment',_0x27dfb9),_0xffac9c['editor']['setData']('');}),_0xffac9c['on']('cancel',()=>this['focus']()),_0xffac9c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f0a47;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2e506d,_0x309ef3,_0xfc9964,_0x55b045){super(_0x2e506d,_0x309ef3,_0xfc9964,_0x55b045),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x48572f=>_0x48572f&&_0x48572f[0x0]?_0x48572f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2777b5,_0x3ff6be)=>{let _0x370f3e='';for(const _0x484143 of _0x2777b5)_0x370f3e+='<p>'+ls(_0x484143['content'],_0x484143['color'])+'</p>';return _0x3ff6be?_0x370f3e:_0x11c916(_0x370f3e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x55b045['SuggestionView'](_0x2e506d,_0x309ef3,{'formatDateTime':_0x55b045['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 _0x562afc=this['bindTemplate'],_0x276e66=[this['suggestionView']];return this['commentsListView']&&_0x276e66['push'](this['commentsListView']),this['commentThreadInputView']&&_0x276e66['push'](this['commentThreadInputView']),_0x276e66['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x562afc['if']('isActive','ck-suggestion-wrapper--active'),_0x562afc['to']('type',_0x3b5579=>'ck-suggestion-'+_0x3b5579),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':_0x562afc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x276e66};}['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 _0x1a2958{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6d80a8,_0x40b495,_0x1e8043){super(_0x6d80a8),this['_model']=_0x40b495,this['_config']=_0x1e8043,this['set']('description',''),this['bind']('authoredAt')['to'](_0x40b495),this['acceptButton']=this['_createButton'](o(_0x6d80a8,'Accept\x20suggestion'),_0x49ed23['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x6d80a8,'Discard\x20suggestion'),_0x49ed23['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xeabb9f(_0x6d80a8,_0x40b495['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5dca52([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x282df3(),this['keystrokes']=new _0x430d02(),this['focusCycler']=new _0x414104({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x6fc05c=>_0x6fc05c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x6edb0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x6edb0['innerHTML']=this['description'],this['on']('change:description',(_0x140c76,_0x2f7521,_0x296166)=>{_0x6edb0['innerHTML']=_0x296166;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xccda99=this['bindTemplate'],_0x168610=[{'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':_0xccda99['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xccda99['to']('authoredAt',_0x13f1b5=>this['_config']['formatDateTime'](_0x13f1b5))}]}]},{'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']&&_0x168610['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':_0x168610}]};}['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'](_0x42a1e0,_0x3968f2,_0x1ec401,_0xd8f4ed,_0x19c6da){const _0x4cef69=new _0xb9feea(this['locale']);return _0x4cef69['set']({'label':_0x42a1e0,'icon':_0x3968f2,'tooltip':!0x0,'tooltipPosition':_0x19c6da}),_0x4cef69['extendTemplate']({'attributes':{'class':_0x1ec401}}),_0x4cef69['on']('execute',()=>{this['fire'](_0xd8f4ed,this['_model']['id']);}),_0x4cef69;}['_setupKeyboardNavigation'](){const _0x1bd89e=this['element'];this['keystrokes']['listenTo'](_0x1bd89e);for(const _0x35acf1 of this['focusables'])this['focusTracker']['add'](_0x35acf1['element']),this['keystrokes']['listenTo'](_0x35acf1['element']);this['keystrokes']['set']('enter',(_0x199b1f,_0x4a4bed)=>{_0x1bd89e===_0x199b1f['target']&&(this['focusCycler']['focusFirst'](),_0x4a4bed());}),this['keystrokes']['set']('esc',(_0x34b41b,_0x4e060f)=>{_0x1bd89e!==_0x34b41b['target']&&(this['focus'](),_0x4e060f());});}}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 _0x440856{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x185b78,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x51a9dd){super(_0x51a9dd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4c1a77=this['editor']['config'];_0x4c1a77['define']('trackChanges.SuggestionThreadView',re),_0x4c1a77['define']('trackChanges.SuggestionView',ce),_0x4c1a77['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4c1a77['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x14b567,_0x5ee264){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x9443e2,_0xc7ac76]of this['_handleControllerBuffer']){const _0x490ef0=this['_suggestionToController']['has'](_0x9443e2);_0x490ef0||_0xc7ac76?_0x490ef0&&_0xc7ac76&&this['_destroyController'](_0x9443e2):this['_initializeController'](_0x9443e2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x14b567,_0x5ee264);}['init'](){const _0x20807f=this['editor'],_0x32153c=_0x20807f['plugins']['get']('TrackChangesEditing'),_0x21d84f=_0x20807f['plugins']['get']('Annotations'),_0x1db085=_0x20807f['plugins']['get']('EditorAnnotations'),_0x3eadce=_0x20807f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1db085['addSourceCollector'](()=>{const _0xec7e4d=[];for(const [_0x396358,_0x34b457]of Array['from'](this['_suggestionToController'])){const _0x2c30cf=_0x396358['getAllAdjacentSuggestions'](),_0x24940c=[];for(const _0x1960d7 of _0x2c30cf){if(!_0x1960d7['isInContent'])continue;if(_0x1960d7['isMultiRange']){_0x24940c['push'](..._0x1960d7['getRanges']());continue;}const _0x5aa40f=_0x1960d7['getFirstRange']();if(_0x24940c['length']>0x0){const _0x12647e=_0x24940c[0x0]['getJoined'](_0x5aa40f);if(_0x12647e){_0x24940c[0x0]=_0x12647e;continue;}}_0x24940c['push'](_0x5aa40f);}_0xec7e4d['push']([_0x34b457['view'],_0x24940c]);}return _0xec7e4d;}),this['listenTo'](_0x32153c,'suggestionLoaded',(_0x5b6ac0,_0x103c4a)=>{this['listenTo'](_0x103c4a,'change:previous',(_0x4a667b,_0x4c2351,_0x3931ae,_0x58403c)=>{_0x103c4a['isInContent']&&(null==_0x3931ae?(this['_updateController'](_0x58403c['head']),this['_handleSuggestionControllerDelayed'](_0x103c4a,!0x1)):(this['_updateController'](_0x3931ae['head']),null==_0x58403c&&this['_handleSuggestionControllerDelayed'](_0x103c4a,!0x0)));}),null!==_0x103c4a['previous']?this['_updateController'](_0x103c4a['head']):this['_handleSuggestionControllerDelayed'](_0x103c4a,!0x1);}),this['listenTo'](_0x32153c,'suggestionUnloaded',(_0x2af8ce,_0x371b4f,_0x341f6f)=>{this['stopListening'](_0x371b4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x371b4f),this['_suggestionToController']['has'](_0x371b4f)&&this['_destroyController'](_0x371b4f),_0x341f6f&&this['_updateController'](_0x341f6f['head']);}),this['listenTo'](_0x32153c,'suggestionChanged',(_0x3c1678,_0x33fd44)=>{this['_updateController'](_0x33fd44);}),this['listenTo'](_0x21d84f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3eadce,'addComment',(_0x1b73b6,{threadId:_0x8a89c2,isFromAdapter:_0x2f449a})=>{if(_0x2f449a||!_0x32153c['hasSuggestion'](_0x8a89c2))return;const _0x53060c=_0x32153c['getSuggestion'](_0x8a89c2);this['_suggestionToController']['get'](_0x53060c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4be827=this['editor']['plugins']['get']('Annotations'),_0x1e95a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7b29b8=Array['from'](_0x4be827['activeAnnotations'],_0x2bb359=>_0x2bb359['innerView'])['filter'](_0x2518a9=>this['_viewToController']['has'](_0x2518a9)),_0x513cc1=[];for(const _0x23287a of _0x7b29b8){const _0x2b892f=this['_viewToController']['get'](_0x23287a)['model']['getAllAdjacentSuggestions']();_0x513cc1['push'](..._0x2b892f['reduce']((_0x421108,_0x583d33)=>[..._0x421108,..._0x583d33['getMarkerNames']()],[]));}_0x1e95a3['activeMarkers']=_0x513cc1;}['_addUIComponentsToFactory'](){const _0x411a2a=this['editor'],_0x1219df=_0x411a2a['locale'],_0x496e32=o(_0x1219df,'Track\x20changes'),_0x11a97c=new Wt([{'type':'switchbutton','model':new _0x26d981({'withText':!0x0,'isToggleable':!0x0,'label':_0x496e32,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x26d981({'withText':!0x0,'label':o(_0x1219df,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26d981({'withText':!0x0,'label':o(_0x1219df,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26d981({'withText':!0x0,'label':o(_0x1219df,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26d981({'withText':!0x0,'label':o(_0x1219df,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1b8862 of _0x11a97c)if(me(_0x1b8862)){const _0x3ec49f=_0x411a2a['commands']['get'](_0x1b8862['model']['commandName']);_0x1b8862['model']['bind']('isOn','isEnabled')['to'](_0x3ec49f,'value','isEnabled');}_0x411a2a['ui']['componentFactory']['add']('trackChanges',_0x8d8a55=>this['_createToolbarButton'](_0x8d8a55,_0x11a97c,_0x496e32)),_0x411a2a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x404071=>this['_createMenuBarMenu'](_0x404071,_0x11a97c,_0x496e32));}['_createToolbarButton'](_0x35c9a1,_0x20cf7c,_0x8c7a35){const _0x4e57a0=Qt(_0x35c9a1,_0x5aa422),_0x3eee08=this['editor']['commands']['get']('trackChanges');_0x4e57a0['buttonView']['set']({'tooltip':_0x8c7a35,'label':_0x8c7a35,'icon':he}),_0x4e57a0['buttonView']['bind']('isOn')['to'](_0x3eee08,'value'),_0x4e57a0['buttonView']['on']('execute',()=>{_0x3eee08['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x4e57a0,_0x20cf7c,{'role':'menu'});const _0x219b0d=[];for(const _0x4fe2f1 of _0x20cf7c)me(_0x4fe2f1)&&_0x219b0d['push'](this['editor']['commands']['get'](_0x4fe2f1['model']['commandName']));const _0x2ff6aa=_0x4e57a0['buttonView'];return _0x2ff6aa['actionView']['unbind']('isEnabled'),_0x2ff6aa['arrowView']['unbind']('isEnabled'),_0x2ff6aa['actionView']['bind']('isEnabled')['to'](_0x3eee08,'isEnabled'),_0x2ff6aa['arrowView']['bind']('isEnabled')['toMany'](_0x219b0d,'isEnabled',(..._0x63359a)=>_0x63359a['some'](_0x4ecffa=>_0x4ecffa)),_0x4e57a0['on']('execute',_0x34d272=>{this['editor']['execute'](_0x34d272['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e57a0;}['_createMenuBarMenu'](_0x4b49fe,_0x224e16,_0x544bdb){const _0x123a1b=new Yt(_0x4b49fe),_0xa42174=this['editor']['commands']['get']('trackChanges');_0x123a1b['buttonView']['set']({'label':_0x544bdb,'icon':he});const _0x47d06b=new Zt(_0x4b49fe);for(const _0x494bb6 of _0x224e16){if('separator'==_0x494bb6['type']){_0x47d06b['items']['add'](new Xt(_0x4b49fe));continue;}const _0x44d1fe=new te(_0x4b49fe,_0x123a1b),_0x111cab=new _0x4ca9ce(_0x4b49fe),_0x61d023=_0x494bb6['model'];_0x111cab['bind'](...Object['keys'](_0x61d023))['to'](_0x61d023),_0x111cab['delegate']('execute')['to'](_0x123a1b),_0x111cab['on']('execute',()=>{this['editor']['execute'](_0x61d023['commandName']),this['editor']['editing']['view']['focus']();}),_0x44d1fe['children']['add'](_0x111cab),_0x47d06b['items']['add'](_0x44d1fe);}return _0x123a1b['bind']('isEnabled')['to'](_0xa42174,'isEnabled'),_0x123a1b['panelView']['children']['add'](_0x47d06b),_0x123a1b;}['_initializeController'](_0x2958b1){const _0x2a0f5d=this['editor'],_0x5a505c=_0x2a0f5d['config'],_0x41222d=_0x2a0f5d['plugins']['get']('Annotations'),_0x3d4d52=_0x2a0f5d['plugins']['get']('CommentsRepository'),_0x36db14=_0x2a0f5d['plugins']['get']('EditorAnnotations'),_0x22e035=_0x2a0f5d['plugins']['get'](_0x185b78)['me'],_0x129f67=_0x5a505c['get']('trackChanges')['SuggestionThreadView'],_0x866343=_0x5a505c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x204cc4,CommentThreadInputView:_0x56f061}=_0x2a0f5d['plugins']['get']('CommentsUI');let _0x233720,_0x37ef29;this['_annotationViews']['has'](_0x2958b1['id'])?(_0x37ef29=this['_annotationViews']['get'](_0x2958b1['id']),_0x233720=_0x37ef29['mainView']):(_0x233720=new _0x129f67(_0x2a0f5d['locale'],_0x2958b1,_0x22e035,{'disableComments':this['_disableComments'],'editorConfig':_0x5a505c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5a505c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5a505c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5a505c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x42c338(_0x5a505c['get']('locale')),'CommentView':_0x5a505c['get']('comments')['CommentView'],'CommentsListView':_0x204cc4,'CommentThreadInputView':_0x56f061,'SuggestionView':_0x866343}),_0x233720['suggestionView']['acceptButton']['on']('execute',()=>{_0x2a0f5d['editing']['view']['focus']();}),_0x233720['suggestionView']['discardButton']['on']('execute',()=>{_0x2a0f5d['editing']['view']['focus']();}),_0x37ef29=_0x41222d['createAnnotationView'](this['editor']['locale'],_0x233720),_0x37ef29['bind']('isDirty')['to'](_0x233720,'isDirty'),_0x37ef29['bind']('length')['to'](_0x233720),_0x37ef29['bind']('type')['to'](_0x233720,'type',_0x2b87db=>'suggestion-'+_0x2b87db),this['listenTo'](_0x233720,'escape',()=>{_0x2a0f5d['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x2958b1['id'],_0x37ef29));const _0x290154=_0x3d4d52['createCommentThreadController'](_0x2958b1['commentThread'],_0x233720),_0x5ec665=new ae(_0x2a0f5d,_0x2958b1,_0x233720,_0x290154),_0x2e289d=_0x2958b1['getAllAdjacentSuggestions']()['filter'](_0x33ec84=>_0x33ec84['isInContent']);_0x233720['descriptionParts']=_0x2a0f5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2e289d),this['_suggestionToController']['set'](_0x2958b1,_0x5ec665),this['_viewToController']['set'](_0x233720,_0x5ec665);const _0x4d6d2e=_0x41222d['createAnnotation']({'view':_0x37ef29,'target':()=>{const _0x317280=[],_0x1bb36e=_0x2958b1['getAllAdjacentSuggestions']()['filter'](_0x4dba0c=>_0x4dba0c['isInContent']);for(const _0x56a382 of _0x1bb36e)_0x317280['push'](..._0x56a382['getMarkers']());return _0x1373e9(_0x2a0f5d['editing'],_0x317280);},'type':()=>'suggestion-'+_0x5ec665['view']['type']});_0x3d4d52['_bindAnnotationToEditors'](_0x233720,_0x4d6d2e),_0x41222d['add'](_0x4d6d2e),_0x36db14['registerAnnotation'](_0x4d6d2e);}['_destroyController'](_0xac7684){const _0x887d0d=this['editor']['plugins']['get']('CommentsRepository'),_0x429f6d=this['editor']['plugins']['get']('Annotations'),_0x16e324=this['_suggestionToController']['get'](_0xac7684),_0x43c4d6=_0x16e324['view'],_0x3ee5c5=_0x429f6d['getByInnerView'](_0x43c4d6);_0x887d0d['_unbindEditors'](_0x43c4d6),_0x3ee5c5&&_0x429f6d['remove'](_0x3ee5c5),this['_suggestionToController']['delete'](_0xac7684),this['_viewToController']['delete'](_0x43c4d6),_0x16e324['destroy']();}['_updateController'](_0x3da589){if(!_0x3da589['isInContent']||!this['_suggestionToController']['has'](_0x3da589))return;const _0x267128=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113299=this['_suggestionToController']['get'](_0x3da589),_0x2a881b=_0x3da589['getAllAdjacentSuggestions']();_0x113299['view']['descriptionParts']=_0x267128['descriptionFactory']['getDescriptions'](_0x2a881b);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x3a300c,(_0x7236a8,_0x38adc8)=>{const _0x264c1a=this['editor']['plugins']['get'](k),_0x2bec01=this['editor']['plugins']['get'](p);if(!_0x2bec01['activeMarkers']['length'])return;const {id:_0x352177}=_0x2bec01['_splitMarkerName'](_0x2bec01['activeMarkers'][0x0]),_0x2e989c=_0x264c1a['getSuggestion'](_0x352177);_0x2e989c&&(this['_suggestionToController']['get'](_0x2e989c)['view']['focus'](),_0x38adc8());});}['destroy'](){for(const _0x549bb6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x549bb6);for(const _0x1ca3a9 of this['_annotationViews']['values']())_0x1ca3a9['mainView']['destroy']();super['destroy']();}}function me(_0x1623c0){return'model'in _0x1623c0;}class k extends _0x440856{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5f15f9){this['editor']['plugins']['get'](p)['adapter']=_0x5f15f9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x57e46d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x57e46d);}['getSuggestions']({skipNotAttached:_0x3666d3=!0x1,toJSON:_0x22fc0f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3666d3,'toJSON':_0x22fc0f});}['getSuggestion'](_0x14215b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x14215b);}}const T=['Pagination'];class P extends _0x440856{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x40a119=this['editor'];if(_0x40a119['config']['define']('trackChangesData.editorCreator',_0x2195f6=>{const _0x21c164=_0x40a119['model']['document']['getRootNames']()['reduce']((_0x2cd30e,_0x14cb6d)=>(_0x2cd30e[_0x14cb6d]='',_0x2cd30e),{});return _0x40a119['constructor']['create'](_0x21c164,_0x2195f6);}),'function'!=typeof _0x40a119['config']['get']('trackChangesData')['editorCreator'])throw new _0xcccb3d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x52754d){return N(this['editor'],!0x0,_0x52754d);}['getDataWithDiscardedSuggestions'](_0x14fe39){return N(this['editor'],!0x1,_0x14fe39);}}class D extends _0x440856{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x30c010){super(_0x30c010),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(_0x1d6d24){return void 0x0!==_0x1d6d24['getRootsAttributes'];}async function N(_0x536a70,_0x279666,_0x5af397){const _0x1155ad=_0x3f1e9d(_0x536a70,T);_0x1155ad['plugins']['push'](p,D),_0x1155ad['rootsAttributes']=v(_0x536a70)?_0x536a70['getRootsAttributes']():void 0x0;const _0x49f129=document['createDocumentFragment'](),_0x17ce49=_0x536a70['config']['get']('trackChangesData')['editorCreator'],_0x539b9a=await _0x17ce49(_0x1155ad,()=>function(_0x59bcf5){const _0x53a140=document['createElement']('div');return _0x59bcf5['appendChild'](_0x53a140),_0x53a140;}(_0x49f129));!function(_0x4a0afb,_0x23412d){const _0x1bb3b1=_0x4a0afb['model']['document']['getRootNames']()['reduce']((_0x537099,_0x34bab2)=>(_0x537099[_0x34bab2]=_0x4a0afb['data']['get']({'rootName':_0x34bab2}),_0x537099),{}),_0x515cc4=_0x4a0afb['plugins']['get']('Users')['users']['map'](_0x2a92b4=>({'id':_0x2a92b4['id'],'name':_0x2a92b4['name']})),_0x4d46c2=_0x4a0afb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x44aa10=_0x4a0afb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43dad3=_0x23412d['plugins']['get']('Users'),_0x104c82=_0x23412d['plugins']['get']('TrackChangesEditing'),_0x1e44d6=_0x23412d['plugins']['get']('CommentsRepository');for(const _0x395766 of _0x515cc4)_0x43dad3['getUser'](_0x395766['id'])||_0x43dad3['addUser'](_0x395766);_0x43dad3['me']||_0x43dad3['useAnonymousUser']();for(const _0x57ac48 of _0x44aa10)_0x1e44d6['addCommentThread'](_0x57ac48);for(const _0xd2e3a5 of _0x4d46c2)_0x104c82['addSuggestionData'](_0xd2e3a5);_0x23412d['data']['set'](_0x1bb3b1);}(_0x536a70,_0x539b9a),_0x539b9a['execute'](_0x279666?'acceptAllSuggestions':'discardAllSuggestions');const _0x18eafe=v(_0x539b9a)?_0x539b9a['getFullData'](_0x5af397):_0x539b9a['data']['get'](_0x5af397);return await _0x539b9a['destroy'](),_0x18eafe;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};