@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240704.0 → 0.0.0-nightly-20240705.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +3 -3
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/multilevellist.js +1 -1
  136. package/src/integrations/pagebreak.js +1 -1
  137. package/src/integrations/paragraph.js +1 -1
  138. package/src/integrations/removeformat.js +1 -1
  139. package/src/integrations/restrictededitingmode.js +1 -1
  140. package/src/integrations/shiftentercommand.js +1 -1
  141. package/src/integrations/standardeditingmode.js +1 -1
  142. package/src/integrations/style.js +1 -1
  143. package/src/integrations/table.js +1 -1
  144. package/src/integrations/tablecaption.js +1 -1
  145. package/src/integrations/tableclipboard.js +1 -1
  146. package/src/integrations/tablecolumnresize.js +1 -1
  147. package/src/integrations/tableheadings.js +1 -1
  148. package/src/integrations/tablemergesplit.js +1 -1
  149. package/src/integrations/tableofcontents.js +1 -1
  150. package/src/integrations/tableproperties.js +1 -1
  151. package/src/integrations/template.js +1 -1
  152. package/src/integrations/title.js +1 -1
  153. package/src/integrations/undo.js +1 -1
  154. package/src/integrations/utils.js +1 -1
  155. package/src/suggestion.js +2 -2
  156. package/src/suggestiondescriptionfactory.js +1 -1
  157. package/src/trackchanges.js +1 -1
  158. package/src/trackchangesdata.js +1 -1
  159. package/src/trackchangesediting.js +1 -1
  160. package/src/trackchangesui.js +1 -1
  161. package/src/ui/suggestioncontroller.js +2 -2
  162. package/src/ui/view/basesuggestionthreadview.js +1 -1
  163. package/src/ui/view/suggestionthreadview.js +1 -1
  164. package/src/utils/common-translations.js +1 -1
  165. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x56c567,PendingActions as _0x27b42d,icons as _0x2586bb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x14405f,ObservableMixin as _0x1e54e4,uid as _0x170805,insertToPriorityArray as _0x4479aa,priorities as _0x3c332a,logWarning as _0x2fcdf6,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x28e28e,View as _0x132995,ButtonView as _0x4ae867,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x445e78,hashObject as _0x5c8668,surroundingMarkersDetector as _0x3b5c63,trimHtml as _0x19fc22,UserView as _0x417ad4,getDateTimeFormatter as _0x59a1b2,getAllMarkersDomElementsSorted as _0x44fbcb,sanitizeEditorConfig as _0x448478}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5cb2dd,LiveRange as _0x17a41d,LivePosition as _0x2106f1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x26202c,toWidget as _0x170397}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3b4a1c,set as _0x2c6def,isEqual as _0x38e5db,unset as _0x59b409,omit as Bt}from'lodash-es';import{Delete as _0x4cd054,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xd4bb80,ShiftEnter as _0x57f534}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1626fd,_0x588271){super(_0x1626fd),this['_enabledCommands']=_0x588271,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 _0x44be43 of this['editor']['commands']['commands']())_0x44be43['affectsData']&&!this['_enabledCommands']['has'](_0x44be43)&&_0x44be43['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x322d0c of this['editor']['commands']['commands']())_0x322d0c['affectsData']&&!this['_enabledCommands']['has'](_0x322d0c)&&_0x322d0c['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x487e0f,_0x3c800a){super(_0x487e0f),this['_suggestions']=_0x3c800a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x26de88){const _0x4a7263=this['_suggestions']['get'](_0x26de88);if(!_0x4a7263)throw new _0x14405f('track-changes-accept-suggestion-not-found',this);const _0x7b134d=_0x4a7263['getRanges']();this['editor']['model']['canEditAt'](_0x7b134d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4a7263);}}class B extends ts{['_suggestions'];constructor(_0x278363,_0x1ef3aa){super(_0x278363),this['_suggestions']=_0x1ef3aa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x558d3c){const _0x27af9b=this['_suggestions']['get'](_0x558d3c);if(!_0x27af9b)throw new _0x14405f('track-changes-discard-suggestion-not-found',this);const _0x14e532=_0x27af9b['getRanges']();this['editor']['model']['canEditAt'](_0x14e532)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x27af9b);}}function ss(_0x39e6d5){return _0x39e6d5['sort']((_0x2880ad,_0x257e84)=>'deletion'==_0x2880ad['type']&&'deletion'!=_0x257e84['type']?-0x1:'deletion'!=_0x2880ad['type']&&'deletion'==_0x257e84['type']?0x1:0x0);}function to(_0x507e9b,_0x4fb21a){let _0x3bb41f,_0x4ed385=0x0;const _0x4b861c=[],_0x4a2d56=_0x4fb21a['schema'];for(;_0x4ed385<_0x507e9b['length'];){const _0x1833be=_0x507e9b[_0x4ed385],_0xe291c6=_0x507e9b[_0x4ed385+0x1];_0x3bb41f||(_0x3bb41f=_0x4fb21a['createPositionBefore'](_0x1833be)),co(_0x4fb21a,_0x1833be,_0xe291c6)||(_0x4b861c['push'](_0x4fb21a['createRange'](_0x3bb41f,_0x4a2d56['isObject'](_0x1833be)?_0x4fb21a['createPositionAfter'](_0x1833be):_0x4fb21a['createPositionAt'](_0x1833be,'end'))),_0x3bb41f=null),_0x4ed385++;}return _0x4b861c;}function co(_0x4732f1,_0x590d58,_0x51e87e){if(!_0x51e87e)return!0x1;const _0x10b18b=_0x4732f1['createPositionAfter'](_0x590d58),_0x5bc911=_0x4732f1['createPositionBefore'](_0x51e87e);return _0x10b18b['isTouching'](_0x5bc911);}function rs(_0x36011d,_0x55fc83,_0x1b17d1){for(;_0x1b17d1['length'];){const _0x18cfeb=_0x1b17d1['splice'](0x0,0x64);_0x36011d['change'](()=>{for(const _0x5c29ea of _0x18cfeb)_0x5c29ea['isInContent']&&_0x55fc83['execute'](_0x5c29ea['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4b6345,_0x535aac,_0x1dbbf5){super(_0x4b6345),this['_command']=_0x535aac,this['_suggestions']=_0x1dbbf5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37907a=Array['from'](this['_suggestions']['values']())['some'](_0x1b78ea=>_0x1b78ea['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x37907a;}['execute'](){const _0x1a0409=ss(Array['from'](this['_suggestions']['values']()));for(const _0x8dfca2 of _0x1a0409){const _0x26dac2=_0x8dfca2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x26dac2))return;}rs(this['editor']['model'],this['_command'],_0x1a0409);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3425ae,_0x24420e,_0xa1dc71){super(_0x3425ae),this['_command']=_0x24420e,this['_suggestions']=_0xa1dc71,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x27bfe9=this['editor']['model']['document']['selection'],_0x37e428=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1a2d96,_0x2ae908){const _0x19411b=Array['from'](_0x1a2d96['getRanges']()),_0x3e8c05=new Set();for(const _0x9853f6 of _0x2ae908)if(_0x9853f6['isInContent']){for(const _0x169884 of _0x19411b)for(const _0x2f75f9 of _0x9853f6['getRanges']())(_0x169884['isIntersecting'](_0x2f75f9)||_0x1a2d96['isCollapsed']&&!_0x9853f6['isMultiRange']&&_0x9853f6['next']&&_0x2f75f9['end']['isTouching'](_0x169884['start']))&&_0x3e8c05['add'](_0x9853f6);}return _0x3e8c05;}(_0x27bfe9,_0x37e428),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x489b87=ss(Array['from'](this['_selectedSuggestions']));for(const _0x10767d of _0x489b87){const _0x2c7f09=_0x10767d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2c7f09))return;}rs(this['editor']['model'],this['_command'],_0x489b87);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x1e54e4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xa5e9c3,_0xd42318){super(),this['id']=_0xd42318['id'],this['type']=_0xd42318['type'],this['subType']=_0xd42318['subType']||null,this['author']=_0xd42318['author'],this['creator']=_0xd42318['creator']||_0xd42318['author'],this['isExternal']=Boolean(_0xd42318['attributes']&&_0xd42318['attributes']['@external']),this['data']=null,this['_model']=_0xa5e9c3,this['_onAccept']=_0xd42318['onAccept'],this['_onDiscard']=_0xd42318['onDiscard'],this['_onAttributesChange']=_0xd42318['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xd42318['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 _0x44d3bd=this;for(;_0x44d3bd['previous'];)_0x44d3bd=_0x44d3bd['previous'];return _0x44d3bd;}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'](_0x37f788){this['_markerNames']['add'](_0x37f788);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x46dd07=>this['_model']['markers']['get'](_0x46dd07))['filter'](_0x1f4e81=>_0x1f4e81);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x72401b=>{for(const _0x1b3e5c of this['getMarkers']())_0x72401b['removeMarker'](_0x1b3e5c);}),this['_markerNames']['clear']();}['removeMarker'](_0x4c040a){this['_model']['change'](_0x37e18d=>{_0x37e18d['removeMarker'](_0x4c040a);}),this['_markerNames']['delete'](_0x4c040a);}['addRange'](_0x38bcd5){const _0x59ceec='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x59ceec),this['_model']['change'](_0x2f7913=>{_0x2f7913['addMarker'](_0x59ceec,{'range':_0x38bcd5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x513a7e){for(const _0x542035 of this['getRanges']())if(_0x542035['isIntersecting'](_0x513a7e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c0072=>_0x4c0072['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3df175,_0xe2557)=>[..._0x3df175,..._0xe2557['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x391abe=this['getRanges']();if(0x1!=_0x391abe['length'])return null;const _0x26d2df=_0x391abe[0x0],_0x1b2af0=_0x26d2df['start']['nodeAfter'],_0x7bf3f9=_0x26d2df['end']['nodeBefore'];return _0x1b2af0 instanceof _0x5cb2dd?_0x1b2af0!=_0x7bf3f9?null:_0x1b2af0: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 _0x48f4e9=[];let _0x51f1a3=this['head'];for(;_0x51f1a3;)_0x48f4e9['push'](_0x51f1a3),_0x51f1a3=_0x51f1a3['next'];return _0x48f4e9;}['setAttribute'](_0x386fb4,_0x2945aa){const _0x3feb39=_0x3b4a1c(this['attributes']);_0x2c6def(_0x3feb39,_0x386fb4,_0x2945aa),_0x38e5db(_0x3feb39,this['attributes'])||(this['attributes']=_0x3feb39,this['_onAttributesChange'](_0x3feb39));}['removeAttribute'](_0x4d6c0a){const _0x206581=_0x3b4a1c(this['attributes']);_0x59b409(_0x206581,_0x4d6c0a),_0x38e5db(_0x206581,this['attributes'])||(this['attributes']=_0x206581,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 _0x170805()['substr'](0x1,0x5);}}function o(_0x4f097b,_0x543300,_0x5536cb){const t=_0x4f097b['t'];switch(_0x543300){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',_0x5536cb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5536cb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5536cb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5536cb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5536cb);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',_0x5536cb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5536cb);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',_0x5536cb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5536cb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5536cb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5536cb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5536cb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5536cb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5536cb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5536cb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5536cb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5536cb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5536cb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5536cb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5536cb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5536cb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5536cb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5536cb);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'},_0x5536cb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5536cb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5536cb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5536cb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5536cb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5536cb);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'},_0x5536cb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5536cb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5536cb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5536cb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5536cb);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'},_0x5536cb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5536cb);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'},_0x5536cb);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'},_0x5536cb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5536cb);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'},_0x5536cb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5536cb);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'},_0x5536cb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5536cb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5536cb);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x5536cb);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'},_0x5536cb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x543300;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x50eb66,_0x1e6cf3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x50eb66,this['_locale']=_0x1e6cf3;}['getDescriptions'](_0x42dc4c){const _0x56617e=[],_0x4fa312=new Set(),_0x2d0415=new Set();for(let _0x1a063a=0x0;_0x1a063a<_0x42dc4c['length'];_0x1a063a++){const _0x1a7c37=_0x42dc4c[_0x1a063a];if(!_0x1a7c37['isInContent'])continue;const _0x3852eb=this['_handleCustomCallbackDescription'](_0x1a7c37);if(_0x3852eb){if(null!=_0x1a7c37['subType']){if(_0x4fa312['has'](_0x1a7c37['subType']))continue;_0x4fa312['add'](_0x1a7c37['subType']);}_0x56617e['push'](_0x3852eb);}else{if('attribute'!=_0x1a7c37['type'])'insertion'!=_0x1a7c37['type']&&'deletion'!=_0x1a7c37['type']||this['_handleInsertRemoveSuggestionDescription'](_0x56617e,_0x1a7c37,_0x42dc4c[_0x1a063a+0x1]);else{const _0x1fb0b8=_0x1a7c37['data']['key'];if(_0x2d0415['has'](_0x1fb0b8))continue;_0x2d0415['add'](_0x1a7c37['data']['key']),_0x1fb0b8==m?this['_handleRenameSuggestionDescription'](_0x56617e,_0x1a7c37):this['_handleAttributeSuggestionDescription'](_0x56617e,_0x1a7c37);}}}return this['_resolveDescriptionItems'](_0x56617e);}['registerDescriptionCallback'](_0x75556f){this['_customCallbacks']['push'](_0x75556f);}['registerElementLabel'](_0x496c12,_0x2a67bc,_0x26b390=_0x3c332a['normal']){'function'==typeof _0x496c12?_0x4479aa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x496c12,'label':_0x2a67bc,'priority':_0x26b390}):this['_itemLabels']['set'](_0x496c12,_0x2a67bc);}['registerAttributeLabel'](_0x403ccd,_0x16af04){this['_attributeLabels']['set'](_0x403ccd,_0x16af04);}['getItemLabel'](_0x557ccf,_0x444180=0x1){let _0x3e4929;for(const _0x4fdb3 of this['_itemLabelsCallbacks'])if(_0x4fdb3['matchingCallback'](_0x557ccf)){_0x3e4929=_0x4fdb3['label'];break;}return _0x3e4929||(_0x3e4929=this['_itemLabels']['get'](_0x557ccf['name'])),_0x3e4929?_0x3e4929(_0x444180):0x1!==_0x444180?_0x444180+'\x20'+_0x557ccf['name']+'s':''+_0x557ccf['name'];}['_addDescriptionItems'](_0x5f38a9,_0x3d41be){const _0x342c55=_0x3d41be['getFirstRange']()['getWalker'](),_0x426233='insertion'==_0x3d41be['type']?'add':'remove';for(const _0x2c6705 of _0x342c55){const _0x3bea15=_0x2c6705['item'],_0x4b9c7f=_0x5f38a9[_0x5f38a9['length']-0x1];if(_0x3bea15['is']('$textProxy'))_0x4b9c7f&&_0x4b9c7f['type']['indexOf']('Container')>-0x1&&_0x5f38a9['pop'](),_0x4b9c7f&&'text'==_0x4b9c7f['type']?_0x4b9c7f[_0x426233]+=_0x3bea15['data']:_0x5f38a9['push']({'type':'text','add':'add'==_0x426233?_0x3bea15['data']:'','remove':'remove'==_0x426233?_0x3bea15['data']:''});else{if(this['_schema']['isObject'](_0x3bea15)){const _0x54ee6e=_0x3bea15;if(_0x4b9c7f&&_0x4b9c7f['type']['indexOf']('Container')>-0x1&&_0x5f38a9['pop'](),'elementEnd'==_0x2c6705['type'])continue;_0x4b9c7f&&_0x4b9c7f['type']==_0x426233+'Object'&&_0x4b9c7f['element']['name']==_0x54ee6e['name']?_0x4b9c7f['quantity']++:_0x5f38a9['push']({'type':_0x426233+'Object','element':_0x54ee6e,'quantity':0x1}),_0x342c55['skip'](_0x1bc535=>!('elementEnd'==_0x1bc535['type']&&_0x1bc535['item']==_0x3bea15));}else{if(this['_schema']['checkChild'](_0x3bea15,'$text')||_0x3bea15['is']('element','softBreak')){const _0xd824aa=_0x3bea15;if('add'==_0x426233&&'elementStart'==_0x2c6705['type']||'remove'==_0x426233&&'elementEnd'==_0x2c6705['type'])continue;if(_0x4b9c7f&&-0x1==_0x4b9c7f['type']['indexOf']('Container')){'text'==_0x4b9c7f['type']&&(_0x4b9c7f[_0x426233]+='\x0a');continue;}let _0x5d3fbf;if(_0x5d3fbf='add'==_0x426233?_0xd824aa['nextSibling']&&!this['_schema']['isObject'](_0xd824aa['nextSibling'])?_0xd824aa['nextSibling']:null:_0xd824aa['previousSibling']&&!this['_schema']['isObject'](_0xd824aa['previousSibling'])?_0xd824aa['previousSibling']:null,_0xd824aa['isEmpty']||_0x5d3fbf&&_0x5d3fbf['isEmpty']){const _0x3a500b=_0x5d3fbf&&_0x5d3fbf['isEmpty']?_0x5d3fbf:_0xd824aa;_0x4b9c7f&&_0x4b9c7f['type']==_0x426233+'EmptyContainer'&&_0x4b9c7f['element']['name']==_0x3a500b['name']?_0x4b9c7f['quantity']++:_0x5f38a9['push']({'type':_0x426233+'EmptyContainer','element':_0x3a500b,'quantity':0x1});}else _0x5f38a9['push']({'type':_0x426233+'Container','element':_0xd824aa});}}}}}['_resolveDescriptionItems'](_0x4c61ff){const _0x2f71d8=this['_locale'],_0x3611f4=[],_0x17ecb4=[],_0x3e5f58=[];for(const _0x3ebbe3 of _0x4c61ff)switch(_0x3ebbe3['type']){case'text':if(_0x3ebbe3['add']=_0x3ebbe3['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ebbe3['remove']=_0x3ebbe3['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ebbe3['add']&&''!=_0x3ebbe3['remove']){_0x3611f4['push']({'type':'replace','content':o(_0x2f71d8,'REPLACE_TEXT',['\x22'+_0x3ebbe3['remove']+'\x22','\x22'+_0x3ebbe3['add']+'\x22'])});continue;}if(null!=_0x3ebbe3['add']['match'](/^ +$/)){_0x3611f4['push']({'type':'insertion','content':o(_0x2f71d8,'*Insert:*\x20%0',o(_0x2f71d8,'ELEMENT_SPACE',_0x3ebbe3['add']['length']))});continue;}if(null!=_0x3ebbe3['remove']['match'](/^ +$/)){_0x3611f4['push']({'type':'deletion','content':o(_0x2f71d8,'*Remove:*\x20%0',o(_0x2f71d8,'ELEMENT_SPACE',_0x3ebbe3['remove']['length']))});continue;}if(''!=_0x3ebbe3['add']){_0x3611f4['push']({'type':'insertion','content':o(_0x2f71d8,'*Insert:*\x20%0','\x22'+_0x3ebbe3['add']+'\x22')});continue;}_0x3611f4['push']({'type':'deletion','content':o(_0x2f71d8,'*Remove:*\x20%0','\x22'+_0x3ebbe3['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3611f4['push']({'type':'insertion','content':o(_0x2f71d8,'*Insert:*\x20%0',this['getItemLabel'](_0x3ebbe3['element'],_0x3ebbe3['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3611f4['push']({'type':'deletion','content':o(_0x2f71d8,'*Remove:*\x20%0',this['getItemLabel'](_0x3ebbe3['element'],_0x3ebbe3['quantity']))});continue;case'addContainer':_0x3611f4['push']({'type':'insertion','content':o(_0x2f71d8,'*Split:*\x20%0',this['getItemLabel'](_0x3ebbe3['element'],_0x3ebbe3['quantity']))});continue;case'removeContainer':_0x3611f4['push']({'type':'deletion','content':o(_0x2f71d8,'*Merge:*\x20%0',this['getItemLabel'](_0x3ebbe3['element'],_0x3ebbe3['quantity']))});continue;case'addFormat':_0x17ecb4['push'](_0x3ebbe3['key']);continue;case'removeFormat':_0x3e5f58['push'](_0x3ebbe3['key']);continue;default:_0x3611f4['push'](_0x3ebbe3);}if(_0x17ecb4['length']){const _0x1d7947=_0x17ecb4['map'](_0x294c9a=>this['_attributeLabels']['has'](_0x294c9a)?this['_attributeLabels']['get'](_0x294c9a):_0x294c9a)['join'](',\x20');_0x3611f4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1d7947)});}if(_0x3e5f58['length']){const _0x5847ee=_0x3e5f58['map'](_0x25cd0e=>this['_attributeLabels']['has'](_0x25cd0e)?this['_attributeLabels']['get'](_0x25cd0e):_0x25cd0e)['join'](',\x20');_0x3611f4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5847ee)});}return _0x3611f4;}['_handleCustomCallbackDescription'](_0x42817c){for(const _0x1a1b94 of this['_customCallbacks']){const _0x21b75c=_0x1a1b94(_0x42817c);if(_0x21b75c&&'type'in _0x21b75c)return _0x21b75c;}}['_handleAttributeSuggestionDescription'](_0x5cb5ee,_0x219088){const _0x40d2c8=_0x219088['data'],_0xf0200b=void 0x0===_0x40d2c8['newValue']?'removeFormat':'addFormat';_0x5cb5ee['push']({'type':_0xf0200b,'key':_0x40d2c8['key']});}['_handleRenameSuggestionDescription'](_0x37144e,_0x58560b){_0x37144e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x58560b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x19e321,_0x3cc138,_0x28d1c9){if(this['_addDescriptionItems'](_0x19e321,_0x3cc138),_0x28d1c9&&_0x28d1c9['getFirstRange']()&&!_0x3cc138['getFirstRange']()['end']['isEqual'](_0x28d1c9['getFirstRange']()['start'])){const _0x5c9aa2=_0x19e321[_0x19e321['length']-0x1],_0x21fd20='insertion'==_0x3cc138['type']?'add':'remove';_0x5c9aa2&&'text'==_0x5c9aa2['type']&&(_0x5c9aa2[_0x21fd20]+='\x0a');}}}class E extends _0x56c567{['afterInit'](){const _0x338a5a=this['editor'],_0x1c1861=_0x338a5a['plugins']['get']('TrackChangesEditing');_0x338a5a['commands']['get']('showAIAssistant')&&_0x1c1861['enableCommand']('showAIAssistant');}}class V extends _0x56c567{['afterInit'](){const _0x577bb1=this['editor'],_0x15a558=_0x577bb1['locale'];if(!_0x577bb1['plugins']['has']('AlignmentEditing'))return;const _0x59ac51=_0x577bb1['plugins']['get']('TrackChangesEditing');_0x59ac51['enableDefaultAttributesIntegration']('alignment'),_0x59ac51['registerBlockAttribute']('alignment'),_0x59ac51['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x15a558,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcae0c8=this['editor'],_0x3c62b5=_0xcae0c8['locale'];_0xcae0c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x590463=>{if('formatBlock'!=_0x590463['type'])return;const {data:_0x5bbb81}=_0x590463;if(_0x5bbb81&&'alignment'==_0x5bbb81['commandName']){const _0x294201=_0x5bbb81['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3c62b5,'*Format:*\x20%0',function(_0x22e5b0){switch(_0x22e5b0){case'left':return o(_0x3c62b5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3c62b5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3c62b5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3c62b5,'FORMAT_JUSTIFY_TEXT');}}(_0x294201))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x56c567{['afterInit'](){const _0x2db694=this['editor'],_0x919dec=_0x2db694['plugins']['get']('TrackChangesEditing'),_0x29b82b=_0x2db694['locale'];for(const _0x55b6f2 of ti){if(!_0x2db694['plugins']['has'](_0x55b6f2))continue;const _0x79b2a5=_0x55b6f2['slice'](0x0,-0x7)['toLowerCase'](),_0x101ef9='FORMAT_'+_0x79b2a5['toUpperCase']();_0x919dec['enableDefaultAttributesIntegration'](_0x79b2a5),_0x919dec['registerInlineAttribute'](_0x79b2a5),_0x919dec['descriptionFactory']['registerAttributeLabel'](_0x79b2a5,o(_0x29b82b,_0x101ef9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f6292=this['editor'],_0x2b21d9=_0x4f6292['locale'],_0x4a8240=_0x4f6292['plugins']['get']('TrackChangesEditing');function _0x472d2f(_0x5949a4,_0x395c86){_0x4a8240['descriptionFactory']['registerDescriptionCallback'](_0x369cc9=>{if('formatInline'!=_0x369cc9['type'])return;const {data:_0x5bb794}=_0x369cc9;return _0x5bb794&&_0x5bb794['commandName']===_0x5949a4?_0x5bb794['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b21d9,'*Format:*\x20%0',_0x395c86)}:{'type':'format','content':o(_0x2b21d9,'*Remove\x20format:*\x20%0',_0x395c86)}:void 0x0;});}_0x472d2f('bold',o(_0x2b21d9,'FORMAT_BOLD')),_0x472d2f('italic',o(_0x2b21d9,'FORMAT_ITALIC')),_0x472d2f('underline',o(_0x2b21d9,'FORMAT_UNDERLINE')),_0x472d2f('code',o(_0x2b21d9,'FORMAT_CODE')),_0x472d2f('strikethrough',o(_0x2b21d9,'FORMAT_STRIKETHROUGH')),_0x472d2f('subscript',o(_0x2b21d9,'FORMAT_SUBSCRIPT')),_0x472d2f('superscript',o(_0x2b21d9,'FORMAT_SUPERSCRIPT'));}}class O extends _0x56c567{['afterInit'](){const _0x51ef5a=this['editor'],_0x48fe6a=_0x51ef5a['locale'];if(!_0x51ef5a['plugins']['has']('BlockQuoteEditing'))return;const _0x4b0a6=_0x51ef5a['plugins']['get']('TrackChangesEditing'),_0x588098=this['editor']['commands']['get']('blockQuote');_0x4b0a6['enableCommand']('blockQuote',(_0xd610e0,_0x5dadab={})=>{const _0xabfc3=this['editor']['model']['document']['selection'],_0x5d270b=_0x5dadab&&void 0x0!==_0x5dadab['forceValue']?_0x5dadab['forceValue']:!_0x588098['value'];let _0x47ffc7=[];if(_0x5d270b){const _0x88465e=Array['from'](_0xabfc3['getSelectedBlocks']())['filter'](_0x426375=>oo(_0x426375)||function(_0x4ff393,_0x52cba5){const _0x63427d=_0x52cba5['checkChild'](_0x4ff393['parent'],'blockQuote'),_0x1efae5=_0x52cba5['checkChild'](['$root','blockQuote'],_0x4ff393);return _0x63427d&&_0x1efae5;}(_0x426375,this['editor']['model']['schema']));_0x47ffc7=to(_0x88465e,_0x51ef5a['model']);}else{const _0x5a50a8=Array['from'](_0xabfc3['getSelectedBlocks']())['filter'](_0x274096=>oo(_0x274096));_0x47ffc7=to(_0x5a50a8,_0x51ef5a['model']);}_0x51ef5a['model']['change'](()=>{for(const _0x13de7d of _0x47ffc7)_0x4b0a6['markBlockFormat'](_0x13de7d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5d270b}]});});}),_0x4b0a6['descriptionFactory']['registerDescriptionCallback'](_0x31c491=>{const {data:_0x42d698}=_0x31c491;if(_0x42d698&&'blockQuote'==_0x42d698['commandName']){const _0x22d1c2=o(_0x48fe6a,'ELEMENT_BLOCK_QUOTE');return _0x42d698['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48fe6a,'*Set\x20format:*\x20%0',_0x22d1c2)}:{'type':'format','content':o(_0x48fe6a,'*Remove\x20format:*\x20%0',_0x22d1c2)};}});}}function oo(_0xb05db2){return'blockQuote'==_0xb05db2['parent']['name'];}class G extends _0x56c567{['afterInit'](){const _0xefc6f1=this['editor'];_0xefc6f1['plugins']['has']('CaseChange')&&(_0xefc6f1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xefc6f1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xefc6f1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x56c567{['afterInit'](){const _0x3db54f=this['editor'];_0x3db54f['commands']['get']('ckbox')&&_0x3db54f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x56c567{['afterInit'](){const _0x3a2eb7=this['editor'];if(!_0x3a2eb7['plugins']['has']('CodeBlock'))return;const _0x29aa06=_0x3a2eb7['plugins']['get']('TrackChangesEditing'),_0x2bb4a7=_0x3a2eb7['locale'],_0x54fb1a=_0x3a2eb7['config']['get']('codeBlock')['languages'],_0x1e4014=_0x3a2eb7['commands']['get']('codeBlock');_0x29aa06['enableCommand']('indentCodeBlock'),_0x29aa06['enableCommand']('outdentCodeBlock'),_0x29aa06['enableCommand']('codeBlock',(_0x1c5423,_0x3c7517={})=>{const _0x368e3e=_0x3a2eb7['model'],_0x28a760=_0x3a2eb7['model']['document']['selection'],_0x3e2976=_0x3c7517&&void 0x0!==_0x3c7517['forceValue']?_0x3c7517['forceValue']:!_0x1e4014['value'];let _0x449032;_0x3c7517['language']||(_0x3c7517['language']=_0x54fb1a[0x0]['language']),_0x449032=_0x3e2976?Array['from'](_0x28a760['getSelectedBlocks']())['filter'](_0x556627=>eo(_0x556627)||function(_0x2f7ad2,_0x2061ff){if(_0x2f7ad2['is']('rootElement')||_0x2061ff['isLimit'](_0x2f7ad2))return!0x1;return _0x2061ff['checkChild'](_0x2f7ad2['parent'],'codeBlock');}(_0x556627,_0x368e3e['schema'])):Array['from'](_0x28a760['getSelectedBlocks']())['filter'](_0x265a46=>eo(_0x265a46));const _0x2c0c0f=to(_0x449032,_0x368e3e);_0x368e3e['change'](()=>{for(const _0x149b94 of _0x2c0c0f)_0x29aa06['markBlockFormat'](_0x149b94,{'commandName':'codeBlock','commandParams':[{..._0x3c7517,'forceValue':_0x3e2976}],'formatGroupId':'blockName'});});}),(_0x29aa06['descriptionFactory']['registerElementLabel']('codeBlock',_0x2cb19f=>o(_0x2bb4a7,'ELEMENT_CODE_BLOCK',_0x2cb19f)),_0x29aa06['descriptionFactory']['registerDescriptionCallback'](_0x9911b0=>{if('formatBlock'!=_0x9911b0['type'])return;const _0x29fd73=_0x2bb4a7['t'],{data:_0xa4df9}=_0x9911b0;if(!_0xa4df9||'codeBlock'!=_0xa4df9['commandName'])return;const _0x4725b6=_0xa4df9['commandParams'][0x0]['language'],_0x3799d9=_0x29fd73(_0x54fb1a['find'](_0x4e7065=>_0x4e7065['language']===_0x4725b6)['label'])['toLowerCase']();return _0xa4df9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2bb4a7,'*Set\x20format:*\x20%0',o(_0x2bb4a7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3799d9+')')}:{'type':'format','content':o(_0x2bb4a7,'*Remove\x20format:*\x20%0',o(_0x2bb4a7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x78b9f6){return'codeBlock'==_0x78b9f6['name'];}class H extends _0x56c567{['afterInit'](){const _0x1c3934=this['editor'];if(!_0x1c3934['plugins']['has']('CommentsEditing'))return;_0x1c3934['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x16dbeb,_0xd562d7,_0x2ea176){const _0x2fd627=[];for(const _0x4ea6e9 of _0xd562d7['getItems']())_0x4ea6e9['hasAttribute'](_0x16dbeb)&&_0x2fd627['push'](_0x2ea176['createRangeOn'](_0x4ea6e9));return _0x2fd627;}function _e(_0x3b3bed,_0x1790a5,{showActiveMarker:_0x2c6906=!0x0}={}){const _0x1a6ccf=_0x3b3bed['plugins']['get']('TrackChangesEditing');return(_0xfea063,_0x50d60e,_0x124a40)=>{if(!_0x124a40['consumable']['test'](_0x50d60e['markerRange'],_0xfea063['name']))return;const _0xff0151=_0x50d60e['markerRange']['getWalker'](),_0x59c782=_0x50d60e['markerRange']['start'],_0x249c9b=_0x3b3bed['model']['schema'];let _0x21402b=null,_0x3dd4cc=null,_0x426f3a=!0x1,_0x4f204e=!0x1;for(const _0xaa782a of _0xff0151){const _0x44c20a=_0xaa782a['item'];_0x426f3a=_0x426f3a||_0x249c9b['isContent'](_0x44c20a);const _0xcde04b=_0x124a40['mapper']['toViewElement'](_0x44c20a);if(_0xcde04b&&_0xcde04b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xaa782a['type']&&(_0x249c9b['isBlock'](_0x44c20a)&&!_0x249c9b['isLimit'](_0x44c20a)&&(_0x44c20a['nextSibling']||_0x59c782['isAtEnd']?_0x21402b&&_0x21402b['parent']==_0x44c20a||(_0x21402b=_0x44c20a,_0xb0278f(_0xaa782a['previousPosition']),_0x4f204e=!0x0):_0x3dd4cc=_0x3dd4cc||_0xaa782a['previousPosition']));}function _0xb0278f(_0x264835){const _0x277104=_0x124a40['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1790a5}),_0x13c397=_0x124a40['mapper']['toViewPosition'](_0x264835);_0x2c6906&&_0x1a6ccf['activeMarkers']['includes'](_0x50d60e['markerName'])&&_0x124a40['writer']['addClass']('ck-suggestion-marker--active',_0x277104),_0x124a40['writer']['insert'](_0x13c397,_0x277104),_0x124a40['mapper']['bindElementToMarker'](_0x277104,_0x50d60e['markerName']);}_0x426f3a||_0x4f204e||!_0x3dd4cc||_0xb0278f(_0x3dd4cc);};}class q extends _0x56c567{static get['requires'](){return[_0x4cd054];}['init'](){const _0x163d2f=this['editor'],_0x496897=_0x163d2f['plugins']['get']('TrackChangesEditing');_0x496897['enableCommand']('delete');const _0x459789=_0x163d2f['commands']['get']('deleteForward');_0x496897['enableCommand']('deleteForward',(_0x2ebf6f,_0x479343={})=>{const _0x59250b=_0x163d2f['model']['createSelection'](_0x163d2f['model']['document']['selection']);_0x59250b['isCollapsed']&&_0x163d2f['model']['modifySelection'](_0x59250b,{'direction':'forward','unit':_0x479343['unit']});const _0x120f79=_0x59250b['getFirstRange'](),_0x204c0b=_0x17a41d['fromRange'](_0x120f79);let _0x1eadfc;_0x2ebf6f(_0x479343),_0x1eadfc='$graveyard'==_0x204c0b['root']['rootName']?_0x163d2f['model']['createRange'](_0x120f79['start']):_0x163d2f['model']['createRange'](_0x204c0b['start'],_0x204c0b['end']),_0x204c0b['detach'](),_0x163d2f['model']['enqueueChange'](_0x459789['buffer']['batch'],_0x13f7e7=>{_0x459789['buffer']['lock'](),_0x13f7e7['setSelection'](_0x13f7e7['createRange'](_0x1eadfc['end'])),_0x459789['buffer']['unlock']();});}),_0x163d2f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x163d2f,'merge'),{'priority':'high'}),_0x163d2f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x103b6a,_0x3c4303,_0x336433)=>{_0x336433['options']['showSuggestionHighlights']&&_e(_0x163d2f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x103b6a,_0x3c4303,_0x336433);},{'priority':'high'}),_0x163d2f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4bb0d1,_0x3d35ba,_0x438ee0)=>{const _0x4ed0c7=_0x438ee0['mapper']['markerNameToElements'](_0x3d35ba['markerName']);if(_0x4ed0c7){for(const _0x32fb8c of _0x4ed0c7)_0x32fb8c['is']('uiElement')&&(_0x438ee0['mapper']['unbindElementFromMarkerName'](_0x32fb8c,_0x3d35ba['markerName']),_0x438ee0['writer']['remove'](_0x32fb8c));}},{'priority':'high'});}}class z extends _0x56c567{['afterInit'](){const _0xacae07=this['editor'];if(!_0xacae07['plugins']['has']('ListEditing'))return;const _0x33a254=_0xacae07['locale'],_0x417c68=_0xacae07['plugins']['get']('TrackChangesEditing'),_0x102aa7=_0xacae07['plugins']['has']('TodoListEditing'),_0x45bc67=!!_0xacae07['config']['get']('list.multiBlock');function _0x357a77(_0x36b117){return{'type':'format','content':''+o(_0x33a254,'*Set\x20format:*\x20%0',_0x36b117)};}function _0x4ac774(_0x24adde){return{'type':'format','content':''+o(_0x33a254,'*Remove\x20format:*\x20%0',_0x24adde)};}_0x417c68['enableDefaultAttributesIntegration']('numberedList'),_0x417c68['enableDefaultAttributesIntegration']('bulletedList'),_0x417c68['enableDefaultAttributesIntegration']('customNumberedList'),_0x417c68['enableDefaultAttributesIntegration']('customBulletedList'),_0x417c68['enableDefaultAttributesIntegration']('indentList'),_0x417c68['enableDefaultAttributesIntegration']('outdentList'),_0x417c68['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x417c68['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x417c68['registerBlockAttribute']('listItemId'),_0x417c68['registerBlockAttribute']('listType'),_0x417c68['registerBlockAttribute']('listIndent'),_0x45bc67&&(_0x417c68['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x417c68['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x102aa7&&(_0x417c68['enableDefaultAttributesIntegration']('todoList'),_0x417c68['enableDefaultAttributesIntegration']('checkTodoList'),_0x417c68['registerBlockAttribute']('todoListChecked'),_0x417c68['descriptionFactory']['registerDescriptionCallback'](_0x47d2a8=>{const {data:_0x13ab20}=_0x47d2a8;if(_0x13ab20&&'todoListChecked'==_0x13ab20['key'])return{'type':'format','content':_0x13ab20['newValue']?o(_0x33a254,'*Check\x20item*'):o(_0x33a254,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4ecb23=>{if(_0x4ecb23['batch']['isUndo'])return!0x1;let _0x38fe68=!0x1;const _0x234a91=_0x417c68['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c06e7=>'todoListChecked'===_0x417c68['_getAttributeKey'](_0x3c06e7));for(const _0xe33b60 of _0x234a91){'todo'!=_0xe33b60['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x417c68['_findSuggestions'](_0xe33b60['getFirstRange'](),'attribute')['find'](_0x5395f2=>'listType'===_0x417c68['_getAttributeKey'](_0x5395f2['suggestion']))||(_0x4ecb23['removeMarker'](_0xe33b60['getFirstMarker']()),_0x38fe68=!0x0));}return _0x38fe68;})),_0x417c68['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x33a254,'FORMAT_INDENT'));const _0x5b3cb3={'type':'format','content':''};_0x417c68['descriptionFactory']['registerDescriptionCallback'](_0x2a9854=>{const {data:_0x42ac87}=_0x2a9854;if(!_0x42ac87||'listType'!=_0x42ac87['key'])return;let _0x378b59=_0x2a9854['head'];for(;_0x378b59;){if(_0x378b59['data']&&(('listStyle'==_0x378b59['data']['key']||'listMarkerStyle'==_0x378b59['data']['key'])&&(_0x378b59['data']['newValue']&&'default'!=_0x378b59['data']['newValue']||'default'!=_0x378b59['data']['oldValue']&&!_0x42ac87['newValue'])||!_0x45bc67&&_0x378b59['data']['key']==m))return _0x5b3cb3;_0x378b59=_0x378b59['next'];}if(null==_0x42ac87['newValue'])switch(_0x42ac87['oldValue']){case'bulleted':return _0x4ac774(o(_0x33a254,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ac774(o(_0x33a254,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ac774(o(_0x33a254,'ELEMENT_TODO_LIST'));}switch(_0x42ac87['newValue']){case'bulleted':return _0x357a77(o(_0x33a254,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x357a77(o(_0x33a254,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x357a77(o(_0x33a254,'ELEMENT_TODO_LIST'));}}),_0x417c68['descriptionFactory']['registerDescriptionCallback'](_0x31c886=>{const {data:_0x17feed}=_0x31c886;if(_0x17feed&&'listIndent'==_0x17feed['key'])return null==_0x17feed['newValue']||null==_0x17feed['oldValue']&&0x0==_0x17feed['newValue']?_0x5b3cb3:void 0x0;}),_0x417c68['descriptionFactory']['registerDescriptionCallback'](_0xc2679=>{if('attribute'!=_0xc2679['type'])return;const {data:_0x4f8b45}=_0xc2679;if(!_0x4f8b45||'listItemId'!=_0x4f8b45['key'])return;const _0x5d9760=le(_0xc2679);return'newValue'==_0x5d9760?{'type':'format','content':o(_0x33a254,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5d9760?{'type':'format','content':o(_0x33a254,'*Split:*\x20list\x20item')}:_0x5b3cb3;}),_0xacae07['model']['document']['registerPostFixer'](_0x563dc3=>this['listItemIdFixer'](_0x563dc3)),_0xacae07['model']['document']['registerPostFixer'](_0x1a6714=>this['noTrackChangesFixer'](_0x1a6714)),_0xacae07['model']['document']['registerPostFixer'](_0x2201b2=>this['assureChains'](_0x2201b2)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4dd249){if(_0x4dd249['batch']['isUndo']||!_0x4dd249['batch']['isLocal'])return!0x1;let _0x3aeffc=!0x1;const _0x3fbaec=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1eabc7=>_0x1eabc7['data']&&'listItemId'==_0x1eabc7['data']['key'])['filter'](_0x12e833=>_0x12e833['data']['newValue']&&_0x12e833['data']['oldValue']);for(const _0x19d446 of _0x3fbaec)le(_0x19d446)||(_0x4dd249['removeMarker'](_0x19d446['getFirstMarker']()),_0x3aeffc=!0x0);return _0x3aeffc;}['noTrackChangesFixer'](_0x57589f){if(_0x57589f['batch']['isUndo']||!_0x57589f['batch']['isLocal'])return!0x1;const _0x38e755=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x38e755['trackChangesCommand']['value'])return!0x1;let _0x4ad965=!0x1;const _0x1b5f35=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xe8e053=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x29ac19=>'attribute'==_0x29ac19['type'])['filter'](_0x3ebc1d=>_0x1b5f35['includes'](_0x3ebc1d['attributeKey']));if(0x0==_0xe8e053['length'])return _0x4ad965;for(const _0x2abc22 of _0xe8e053){const _0x279585=_0x38e755['_findSuggestions'](_0x2abc22['range'],'attribute')['filter'](_0x1a3a7c=>!_0x1a3a7c['meta']['isNextTo'])['map'](_0x31e02e=>_0x31e02e['suggestion'])['filter'](_0x54b5d2=>{const _0x162926=_0x38e755['_getAttributeKey'](_0x54b5d2);return _0x1b5f35['includes'](_0x162926);});if(_0x279585['length']){for(const _0x5e3bd6 of _0x279585)_0x57589f['removeMarker'](_0x5e3bd6['getFirstMarker']());_0x4ad965=!0x0;}}return _0x4ad965;}['assureChains'](_0x5dbd19){if(_0x5dbd19['batch']['isUndo']||!_0x5dbd19['batch']['isLocal'])return!0x1;const _0x83491=this['editor']['plugins']['get']('TrackChangesEditing');let _0x6de30a=!0x1;const _0x5dff70=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4c884d of _0x83491['getSuggestions']({'skipNotAttached':!0x0})){const _0x28b5bb=_0x83491['_findSuggestions'](_0x4c884d['getFirstRange'](),'attribute')['map'](_0x40f3d5=>_0x40f3d5['suggestion'])['filter'](_0x28a942=>_0x28a942['data']&&_0x5dff70['includes'](_0x28a942['data']['key']));if(!_0x28b5bb['length'])continue;const _0x1abcd5=_0x28b5bb[0x0]['head']['attributes']['groupId'];if(!_0x28b5bb['every'](_0x393a79=>_0x393a79['attributes']['groupId']===_0x1abcd5)){for(const _0x26fb34 of _0x28b5bb)_0x222eed(_0x26fb34,_0x1abcd5)&&(_0x6de30a=!0x0);}}return _0x6de30a;function _0x408d98(_0x1319ac,_0x42a6bd){for(const _0x5a893b of _0x83491['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x267d5b=>'attribute'==_0x267d5b['type']&&_0x267d5b['attributes']['groupId']==_0x1319ac))_0x5a893b['setAttribute']('groupId',_0x42a6bd);}function _0x222eed(_0x554089,_0x35af1f){let _0x57fd6e=_0x554089['head'],_0x1075a1=!0x1;for(;_0x57fd6e;)_0x57fd6e['attributes']['groupId']!=_0x35af1f&&(_0x408d98(_0x57fd6e['attributes']['groupId'],_0x35af1f),_0x57fd6e['setAttribute']('groupId',_0x35af1f),_0x1075a1=!0x0),_0x57fd6e=_0x57fd6e['next'];return _0x1075a1;}}['_supportLegacySuggestions'](){const _0x355957=this['editor'],_0x3cf0a9=_0x355957['locale'],_0x31a15c=_0x355957['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x31a15c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5e12de,_0x5172cb){const _0x539a59=[];for(let _0x3483b9 of _0x5e12de)_0x3483b9['start']['nodeAfter']===_0x3483b9['end']['parent']&&(_0x3483b9=_0x355957['model']['createRange'](_0x355957['model']['createPositionAt'](_0x3483b9['start']['nodeAfter'],0x0))),_0x539a59['push'](_0x3483b9);_0x355957['model']['change'](_0x10a775=>{const _0x554786=_0x355957['model']['document']['selection'],_0x4a4131=Array['from'](_0x554786['getRanges']())['map'](_0x255879=>_0x17a41d['fromRange'](_0x255879));_0x10a775['setSelection'](_0x539a59),_0x355957['commands']['get'](_0x5172cb['commandName'])['refresh'](),_0x5172cb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x355957['execute'](_0x5172cb['commandName'],..._0x5172cb['commandParams']),_0x10a775['setSelection'](_0x4a4131);for(const _0x3a6cbf of _0x4a4131)_0x3a6cbf['detach']();});}),_0x31a15c['descriptionFactory']['registerElementLabel'](function(_0x241e67){const _0x31a339=!_0x355957['model']['schema']['isObject'](_0x241e67),_0x4342ad=_0x241e67['previousSibling'],_0x35d6ae=_0x241e67['nextSibling'],_0x4257fb=_0x241e67['getAttribute']('listItemId'),_0x3ce1e9=!_0x4342ad||_0x4342ad['getAttribute']('listItemId')!==_0x4257fb,_0x277e74=!_0x35d6ae||_0x35d6ae['getAttribute']('listItemId')!==_0x4257fb;return _0x31a339&&Boolean(_0x4257fb)&&_0x3ce1e9&&_0x277e74;},_0x2b54c2=>o(_0x3cf0a9,'ELEMENT_LIST_ITEM',_0x2b54c2));}['_registerLegacyDescription'](){const _0x41b114=this['editor'],_0x208462=_0x41b114['locale'];function _0x4907bc(_0x5577ce){const _0x2ff1ed=_0x41b114['commands']['get']('bulletedList')['value'],_0x34e856=_0x41b114['commands']['get']('numberedList')['value'];return'numberedList'===_0x5577ce?_0x2ff1ed:_0x34e856;}_0x41b114['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5f4842){if('formatBlock'!=_0x5f4842['type'])return;const {data:_0x2283e1}=_0x5f4842;if(!_0x2283e1)return;let _0x250624,_0x30bea9,_0x488d0e,_0x3621d3;switch(_0x2283e1['commandName']){case'bulletedList':_0x488d0e=_0x2283e1['commandParams'][0x0]['forceValue'],_0x3621d3=_0x4907bc(_0x2283e1['commandName']),_0x250624=_0x488d0e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3621d3&&_0x41b114['config']['get']('list.multiBlock')||(_0x250624='*Change\x20to:*\x20%0'),_0x30bea9={'type':'format','content':o(_0x208462,_0x250624,o(_0x208462,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x488d0e=_0x2283e1['commandParams'][0x0]['forceValue'],_0x3621d3=_0x4907bc(_0x2283e1['commandName']),_0x250624=_0x488d0e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3621d3&&_0x41b114['config']['get']('list.multiBlock')||(_0x250624='*Change\x20to:*\x20%0'),_0x30bea9={'type':'format','content':o(_0x208462,_0x250624,o(_0x208462,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x250624='*Indent:*\x20%0',_0x30bea9={'type':'format','content':o(_0x208462,_0x250624,o(_0x208462,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x250624=function(_0x4a4347){const _0x590be1=_0x4a4347['getFirstRange']();let _0x532ef1=_0x590be1['start']['nodeAfter'];for(;_0x532ef1&&_0x590be1['containsItem'](_0x532ef1);){if(_0x532ef1['getAttribute']('listIndent')>0x0)return!0x1;_0x532ef1=_0x532ef1['nextSibling'];}return!0x0;}(_0x5f4842)?o(_0x208462,'*Format:*\x20remove\x20from\x20%0',o(_0x208462,function(_0x56e148){return'ELEMENT_'+_0x56e148['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5f4842))):o(_0x208462,'*Outdent:*\x20%0',o(_0x208462,'ELEMENT_LIST_ITEM')),_0x30bea9={'type':'format','content':_0x250624};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2283e1['multipleBlocks']&&(_0x250624='*Merge:*\x20%0',_0x30bea9={'type':'deletion','content':o(_0x208462,_0x250624,o(_0x208462,'ELEMENT_LIST_ITEM'))});}return _0x30bea9;});}}function le(_0x2deed4){let _0x15d8d1=_0x2deed4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x15d8d1;){const _0x21e6b9=_0x15d8d1['getAttribute']('listItemId');if(!_0x21e6b9)return!0x1;if(_0x21e6b9==_0x2deed4['data']['newValue'])return'newValue';if(_0x21e6b9==_0x2deed4['data']['oldValue'])return'oldValue';_0x15d8d1=_0x15d8d1['previousSibling'];}return!0x1;}class ue extends _0x56c567{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4a3c70=this['editor']['config']['get']('list.properties'),_0x4403eb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a3c70['styles']&&(_0x4403eb['enableDefaultAttributesIntegration']('listStyle'),_0x4403eb['registerBlockAttribute']('listStyle')),_0x4a3c70['reversed']&&(_0x4403eb['enableDefaultAttributesIntegration']('listReversed'),_0x4403eb['registerBlockAttribute']('listReversed')),_0x4a3c70['startIndex']&&(_0x4403eb['enableDefaultAttributesIntegration']('listStart'),_0x4403eb['registerBlockAttribute']('listStart'));const _0x4bbb0f={'type':'format','content':''};_0x4403eb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4fa0b0=this['editor']['locale'];_0x4403eb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4fa0b0,'FORMAT_LIST_REVERSED')),_0x4403eb['descriptionFactory']['registerDescriptionCallback'](_0x31ce30=>{const {data:_0x1ff0ef}=_0x31ce30;if(_0x1ff0ef&&'listReversed'==_0x1ff0ef['key'])return null==_0x1ff0ef['newValue']||0x0==_0x1ff0ef['newValue']&&null==_0x1ff0ef['oldValue']?_0x4bbb0f:void 0x0;}),_0x4403eb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4fa0b0,'FORMAT_LIST_START')),_0x4403eb['descriptionFactory']['registerDescriptionCallback'](_0x89f0fa=>{const {data:_0x3372f5}=_0x89f0fa;if(_0x3372f5&&'listStart'==_0x3372f5['key'])return null==_0x3372f5['newValue']||0x1==_0x3372f5['newValue']&&null==_0x3372f5['oldValue']?_0x4bbb0f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x46c1ea=>{if(_0x46c1ea['batch']['isUndo'])return!0x1;let _0x41849e=!0x1;const _0x35d178=_0x4403eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a76bc=>{const _0x14619c=_0x4403eb['_getAttributeKey'](_0x2a76bc);return'listStart'==_0x14619c||'listReversed'==_0x14619c;});for(const _0x529e25 of _0x35d178){const _0x30886c=_0x529e25['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x30886c||'customNumbered'==_0x30886c)continue;_0x4403eb['_findSuggestions'](_0x529e25['getFirstRange'](),'attribute')['find'](_0x5e36cd=>'listType'==_0x4403eb['_getAttributeKey'](_0x5e36cd['suggestion']))||(_0x46c1ea['removeMarker'](_0x529e25['getFirstMarker']()),_0x41849e=!0x0);}return _0x41849e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x41eb0c){const _0x57fd98=this['editor']['locale'],{data:_0x54918f}=_0x41eb0c,_0x2dd4b4={'type':'format','content':''};if(!_0x54918f||'listStyle'!=_0x54918f['key'])return;if(!_0x54918f['oldValue'])return'default'==_0x54918f['newValue']?_0x2dd4b4:{'type':'format','content':''+o(_0x57fd98,'*Set\x20format:*\x20%0',o(_0x57fd98,this['_getTranslationKeyForListStyle'](_0x54918f['newValue'])))};if(!_0x54918f['newValue']){if('default'==_0x54918f['oldValue'])return _0x2dd4b4;let _0x3c8b1a=_0x41eb0c['head'];for(;_0x3c8b1a;){if(_0x3c8b1a['data']&&'listType'==_0x3c8b1a['data']['key']&&_0x3c8b1a['data']['newValue'])return _0x2dd4b4;_0x3c8b1a=_0x3c8b1a['next'];}return{'type':'format','content':''+o(_0x57fd98,'*Remove\x20format:*\x20%0',o(_0x57fd98,this['_getTranslationKeyForListStyle'](_0x54918f['oldValue'])))};}if('default'!=_0x54918f['newValue'])return{'type':'format','content':''+o(_0x57fd98,'*Set\x20format:*\x20%0',o(_0x57fd98,this['_getTranslationKeyForListStyle'](_0x54918f['newValue'])))};let _0x36d000=_0x41eb0c['head'];for(;_0x36d000;){if(_0x36d000['data']&&'listType'==_0x36d000['data']['key']&&_0x36d000['data']['newValue']&&_0x36d000['data']['oldValue'])return _0x2dd4b4;_0x36d000=_0x36d000['next'];}return{'type':'format','content':o(_0x57fd98,'*Set\x20format:*\x20%0',o(_0x57fd98,'ELEMENT_'+_0x41eb0c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3038d9=this['editor'],_0xe466ca=_0x3038d9['locale'];_0x3038d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d79f2=>{if('formatBlock'!=_0x4d79f2['type'])return;const {data:_0x124b79}=_0x4d79f2;if(!_0x124b79)return;let _0x2a878d,_0x26f59b;switch(_0x124b79['commandName']){case'listStyle':_0x2a878d='*Change\x20to:*\x20%0',_0x26f59b={'type':'format','content':o(_0xe466ca,_0x2a878d,o(_0xe466ca,this['_getTranslationKeyForListStyle'](_0x124b79['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a878d=_0x124b79['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x26f59b={'type':'format','content':o(_0xe466ca,_0x2a878d)};break;case'listStart':_0x2a878d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x26f59b={'type':'format','content':o(_0xe466ca,_0x2a878d,_0x124b79['commandParams'][0x0]['startIndex'])};}return _0x26f59b;});}['_getTranslationKeyForListStyle'](_0x219286){return'ELEMENT_'+function(_0x2eb035){if(pe['includes'](_0x2eb035))return'bulleted';if(ye['includes'](_0x2eb035))return'numbered';return null;}(_0x219286)['toUpperCase']()+'_LIST_'+_0x219286['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x56c567{static get['requires'](){return[_0xd4bb80];}['init'](){const _0xf97b11=this['editor'],_0x5c1d3b=_0xf97b11['plugins']['get']('TrackChangesEditing'),_0x59b5ba=_0xf97b11['commands']['get']('enter');_0x5c1d3b['enableCommand']('enter',()=>{_0xf97b11['model']['change'](_0x129ff7=>{const _0x40d43e=_0xf97b11['model']['document']['selection'],_0x523e05=_0x40d43e['getFirstPosition'](),_0x2b3df4=_0x17a41d['fromRange'](_0x40d43e['getFirstRange']());if(_0x59b5ba['enterBlock'](_0x129ff7)){const _0x29a585=_0xf97b11['model']['createPositionAt'](_0x523e05['parent']['nextSibling'],0x0),_0x2443bb=_0x129ff7['createRange'](_0x523e05,_0x29a585);_0x5c1d3b['markInsertion'](_0x2443bb);}else _0x129ff7['setSelection'](_0x129ff7['createRange'](_0x2b3df4['end']));_0x2b3df4['detach'](),_0x59b5ba['fire']('afterExecute',{'writer':_0x129ff7});});}),_0xf97b11['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xf97b11,'split'),{'priority':'high'}),_0xf97b11['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x23f3b2,_0x81cddc,_0x294b96)=>{const _0x321b8a=_0x294b96['mapper']['markerNameToElements'](_0x81cddc['markerName']);if(_0x321b8a){for(const _0x11fff0 of _0x321b8a)_0x11fff0['hasClass']('ck-suggestion-marker-split')&&(_0x294b96['mapper']['unbindElementFromMarkerName'](_0x11fff0,_0x81cddc['markerName']),_0x294b96['writer']['remove'](_0x11fff0));}},{'priority':'high'}),_0xf97b11['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d7560,_0x1a93cf,_0x4d16de)=>{_0x4d16de['options']['showSuggestionHighlights']&&_e(_0xf97b11,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3d7560,_0x1a93cf,_0x4d16de);},{'priority':'high'});}}class J extends _0x56c567{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x219f60=this['editor']['plugins']['get']('TrackChangesEditing');_0x219f60['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x219f60['enableCommand']('findNext'),_0x219f60['enableCommand']('findPrevious'),_0x219f60['enableCommand']('replace'),_0x219f60['enableCommand']('replaceAll');}['handleFindCommand'](_0x4b865e,_0x18b473,_0x85fd57={}){const _0x1c465a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4b865e(_0x573586=>{let _0x473f03=('string'==typeof _0x18b473?_0x1c465a['findByTextCallback'](_0x18b473,_0x85fd57):_0x18b473)(_0x573586);Array['isArray'](_0x473f03)&&(_0x473f03={'results':_0x473f03,'searchText':'string'==typeof _0x18b473?_0x18b473:''});const _0x5ed1b5=_0x473f03['results']['filter'](_0x1733be=>!0x1===this['_isInDeletionRange'](_0x1733be,_0x573586['item']));return{..._0x473f03,'results':_0x5ed1b5};},_0x85fd57);}['_isInDeletionRange'](_0x421edf,_0x1e8339){const _0x3d754f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e8339,_0x421edf['start']),this['editor']['model']['createPositionAt'](_0x1e8339,_0x421edf['end']));for(const _0x531dcf of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3d754f['getIntersection'](_0x531dcf['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x56c567{['afterInit'](){const _0x2c8d55=this['editor']['locale'],_0x51639=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4ed0f4,commandName:_0x326987}of ro)this['editor']['plugins']['has'](_0x4ed0f4)&&(_0x51639['enableDefaultAttributesIntegration'](_0x326987),_0x51639['registerInlineAttribute'](_0x326987));_0x51639['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2c8d55,'FORMAT_FONT_SIZE')),_0x51639['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2c8d55,'FORMAT_FONT_FAMILY')),_0x51639['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2c8d55,'FORMAT_FONT_COLOR')),_0x51639['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2c8d55,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a8292=this['editor'],_0x518701=_0x3a8292['locale'];_0x3a8292['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x496699=>{const _0x225954=_0x518701['t'];if('formatInline'!=_0x496699['type'])return;const {data:_0x231e53}=_0x496699;if(null!=_0x231e53){if('fontSize'==_0x231e53['commandName']){const _0x52cc6a=_0x231e53['commandParams'][0x0]['value'];if(_0x52cc6a){const _0x26b066=_0x225954(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3ddfb1=>_0x3ddfb1['model']==_0x52cc6a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x518701,'*Set\x20font\x20size:*\x20%0',_0x26b066)};}return{'type':'format','content':o(_0x518701,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x231e53['commandName']){const _0x1d4df6=_0x231e53['commandParams'][0x0]['value'];return _0x1d4df6?{'type':'format','content':o(_0x518701,'*Set\x20font\x20family:*\x20%0',_0x1d4df6)}:{'type':'format','content':o(_0x518701,'*Reset\x20font\x20family*')};}if('fontColor'==_0x231e53['commandName']){const _0x1f7a17=_0x231e53['commandParams'][0x0]['value'];if(_0x1f7a17){const _0x336758=_0x28e28e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x603e7b=>_0x603e7b['model']==_0x1f7a17);let _0x1a03fe=_0x1f7a17,_0x82444e='';return _0x336758&&(_0x1a03fe=_0x336758['label'],_0x82444e=_0x225954(_0x1a03fe)['toLowerCase']()),{'type':'format','content':o(_0x518701,'*Set\x20font\x20color:*\x20%0',_0x82444e)['trim'](),'color':{'value':_0x1f7a17,'title':_0x82444e||_0x1a03fe}};}return{'type':'format','content':o(_0x518701,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x231e53['commandName']){const _0x259ee5=_0x231e53['commandParams'][0x0]['value'];if(_0x259ee5){const _0x3e1648=_0x28e28e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ea866=>_0x2ea866['model']==_0x259ee5);let _0x445868=_0x259ee5,_0x1a4dd5='';return _0x3e1648&&(_0x445868=_0x3e1648['label'],_0x1a4dd5=_0x225954(_0x445868)['toLowerCase']()),{'type':'format','content':o(_0x518701,'*Set\x20font\x20background\x20color:*\x20%0',_0x1a4dd5)['trim'](),'color':{'value':_0x259ee5,'title':_0x1a4dd5||_0x445868}};}return{'type':'format','content':o(_0x518701,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x56c567{['afterInit'](){const _0x265dc8=this['editor'],_0x1ffe37=_0x265dc8['plugins']['get']('TrackChangesEditing'),_0x5574b7=_0x265dc8['commands']['get']('copyFormat'),_0x57998d=_0x265dc8['commands']['get']('pasteFormat');_0x5574b7&&_0x57998d&&(_0x1ffe37['enableDefaultAttributesIntegration']('pasteFormat'),_0x1ffe37['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x230a8e=this['editor'],_0x198699=_0x230a8e['locale'];_0x230a8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b514c=>{if('formatBlock'!=_0x5b514c['type']&&'formatInline'!=_0x5b514c['type'])return;const {data:_0x316abb}=_0x5b514c;if(_0x316abb&&'pasteFormat'===_0x316abb['commandName']){const _0x2b3848=[],_0x3e178d=_0x316abb['commandParams'][0x0];for(const [_0x29c96c,_0x2b2f88]of Object['entries'](_0x3e178d))_0x2b3848['push'](so(_0x230a8e,_0x29c96c,_0x2b2f88));return _0x2b3848['length']?{'type':'format','content':o(_0x198699,'*Set\x20format\x20to:*\x20%0',_0x2b3848['join'](',\x20'))}:{'type':'format','content':o(_0x198699,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4fd0c0,_0x597a4c,_0x4d1167){const _0x42cac4=_0x4fd0c0['locale']['t'],_0x42f7d1=_0x597a4c['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b4151=_0x42cac4(_0x42f7d1['charAt'](0x0)['toUpperCase']()+_0x42f7d1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4d1167)return _0x3b4151;if('fontColor'===_0x597a4c||'fontBackgroundColor'===_0x597a4c){const _0x8e0181=_0x28e28e(_0x4fd0c0['config']['get']('fontColor.colors'))['find'](_0x4fbedd=>_0x4fbedd['model']==_0x4d1167);return _0x3b4151+'\x20('+(_0x8e0181?_0x42cac4(_0x8e0181['label'])['toLowerCase']():_0x4d1167)+')';}if('fontSize'===_0x597a4c&&isNaN(parseFloat(_0x4d1167))){const _0x49a64b=_0x4fd0c0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4fd0c0['config']['get']('fontSize.options'))['find'](_0x4089a3=>_0x4089a3['model']==_0x4d1167);return _0x3b4151+'\x20('+(_0x49a64b?_0x42cac4(_0x49a64b['title'])['toLowerCase']():_0x4d1167)+')';}return _0x3b4151+'\x20('+_0x4d1167+')';}class Y extends _0x56c567{['_headingOptions'];['afterInit'](){const _0x2bbc55=this['editor'];if(!_0x2bbc55['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2bbc55['config']['get']('heading.options');const _0x545b8a=_0x2bbc55['locale'],_0x578332=_0x2bbc55['plugins']['get']('TrackChangesEditing');_0x578332['enableDefaultAttributesIntegration']('heading');for(const _0x2a3641 of this['_headingOptions'])'paragraph'!=_0x2a3641['model']&&_0x578332['descriptionFactory']['registerElementLabel'](_0x2a3641['model'],_0x4d9cee=>{const _0x3276cf=this['_getHeadingLevel'](_0x2a3641['model']);return null!==_0x3276cf?_0x51b461(_0x4d9cee,_0x3276cf):_0x13424f(_0x4d9cee,_0x2a3641['title']);});function _0x51b461(_0x480899,_0x2e4303){return o(_0x545b8a,'ELEMENT_HEADING',[_0x480899,_0x2e4303]);}function _0x13424f(_0x21e5ce,_0x57c94f){return o(_0x545b8a,'ELEMENT_HEADING_CUSTOM',[_0x21e5ce,_0x57c94f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dc81d=this['editor'],_0x18d474=_0x4dc81d['locale'];function _0x5d6644(_0x12a8c3,_0x446519){return o(_0x18d474,'ELEMENT_HEADING_CUSTOM',[_0x12a8c3,_0x446519]);}_0x4dc81d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cf4ab=>{if('formatBlock'!=_0x3cf4ab['type'])return;const {data:_0x585389}=_0x3cf4ab;if(_0x585389&&'heading'==_0x585389['commandName']){const _0x4c918a=_0x585389['commandParams'][0x0]['value'],_0x519097=this['_getHeadingLevel'](_0x4c918a);if(null!==_0x519097)return{'type':'format','content':o(_0x18d474,'*Change\x20to:*\x20%0',(_0x39f9ff=0x1,_0x592afe=_0x519097,o(_0x18d474,'ELEMENT_HEADING',[_0x39f9ff,_0x592afe])))};const _0x421788=this['_headingOptions']['find'](_0x5482b1=>_0x5482b1['model']===_0x4c918a)['title'];return{'type':'format','content':o(_0x18d474,'*Change\x20to:*\x20%0',_0x5d6644(0x1,_0x421788))};}var _0x39f9ff,_0x592afe;});}['_getHeadingLevel'](_0x533b49){const _0x7144d5=_0x533b49['match'](/^heading(\d+)/);if(_0x7144d5)return _0x7144d5[0x1];const _0x2cce79=this['_headingOptions']?.['find'](_0x566640=>_0x566640['model']==_0x533b49);if(_0x2cce79&&_0x2cce79['view']){const _0x161ec3=_0x2cce79['view'],_0x20a80c=(_0x161ec3['name']??_0x161ec3)['match'](/^h(\d+)/);if(_0x20a80c)return _0x20a80c[0x1];}return null;}}class Z extends _0x56c567{['afterInit'](){const _0x129f3f=this['editor'];if(!_0x129f3f['plugins']['has']('HighlightEditing'))return;const _0x117595=_0x129f3f['plugins']['get']('TrackChangesEditing'),_0x3e8893=_0x129f3f['locale'];_0x117595['enableDefaultAttributesIntegration']('highlight'),_0x117595['registerInlineAttribute']('highlight'),_0x117595['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3e8893,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x503a6d=this['editor'],_0x1c0fba=_0x503a6d['locale'];_0x503a6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2129b3=>{if('formatInline'!=_0x2129b3['type'])return;const {data:_0x2b7479}=_0x2129b3;if(_0x2b7479&&'highlight'==_0x2b7479['commandName']){const _0x2d68cb=_0x1c0fba['t'],_0x265392=_0x2b7479['commandParams'][0x0]['value'];if(_0x265392){const _0x2b0951=_0x503a6d['config']['get']('highlight.options')['find'](_0x30a984=>_0x30a984['model']==_0x265392),_0x5a61e0=_0x2d68cb(_0x2b0951['title'])['toLowerCase']();return{'type':'format','content':o(_0x1c0fba,'*Set\x20highlight:*\x20%0',_0x5a61e0),'color':{'value':_0x2b0951['color'],'title':_0x2b0951['title']}};}return{'type':'format','content':o(_0x1c0fba,'*Remove\x20highlight*',o(_0x1c0fba,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x56c567{['afterInit'](){const _0x2c95c8=this['editor'];if(!_0x2c95c8['plugins']['has']('HorizontalLineEditing'))return;_0x2c95c8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x9ca7ad=_0x2c95c8['plugins']['get']('TrackChangesEditing'),_0x4b70ce=_0x2c95c8['locale'];_0x9ca7ad['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3d2187=>o(_0x4b70ce,'ELEMENT_HORIZONTAL_LINE',_0x3d2187)),_0x2c95c8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1d8e74,{writer:_0x21d9d2,options:_0x3e7100})=>{if(!_0x3e7100['showSuggestionHighlights'])return null;const _0x1e9e0d=_0x21d9d2['createContainerElement']('div'),_0x42c14e=_0x21d9d2['createEmptyElement']('hr');return _0x21d9d2['addClass']('ck-horizontal-line',_0x1e9e0d),_0x21d9d2['insert'](_0x21d9d2['createPositionAt'](_0x1e9e0d,0x0),_0x42c14e),_0x1e9e0d;},'converterPriority':'high'});}}class et extends _0x56c567{['afterInit'](){const _0x5658c2=this['editor'];if(!_0x5658c2['plugins']['has']('HtmlEmbed'))return;const _0x2c2157=_0x5658c2['plugins']['get']('TrackChangesEditing'),_0x1f96eb=_0x5658c2['locale'];_0x2c2157['descriptionFactory']['registerElementLabel']('rawHtml',_0x26ae6f=>o(_0x1f96eb,'ELEMENT_HTML_EMBED',_0x26ae6f)),_0x2c2157['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2c2157['registerBlockAttribute']('value'),_0x2c2157['descriptionFactory']['registerDescriptionCallback'](_0x4e600f=>{if('attribute'!=_0x4e600f['type'])return;const {data:_0x47adb8}=_0x4e600f;if(_0x47adb8&&'value'==_0x47adb8['key']&&_0x4e600f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x25426e=o(_0x1f96eb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1f96eb,'*Change\x20%0\x20content*',_0x25426e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x268ef9=this['editor'],_0x50d955=_0x268ef9['locale'];_0x268ef9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20159d=>{if('formatBlock'!=_0x20159d['type'])return;const {data:_0x33d582}=_0x20159d;if(_0x33d582&&'htmlEmbed'==_0x33d582['commandName']){const _0x3d3ab1=o(_0x50d955,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x50d955,'*Change\x20%0\x20content*',_0x3d3ab1)};}});}}class it extends _0x56c567{['afterInit'](){const _0x2367cc=this['editor'];if(!_0x2367cc['plugins']['has']('ImageEditing'))return;const _0x2ce61d=_0x2367cc['plugins']['get']('TrackChangesEditing'),_0x228da5=_0x2367cc['plugins']['get']('ImageUtils'),_0x151410=_0x2367cc['locale'];_0x2ce61d['enableCommand']('insertImage'),_0x2ce61d['descriptionFactory']['registerElementLabel']('imageBlock',_0x265eab=>o(_0x151410,'ELEMENT_IMAGE',_0x265eab)),_0x2ce61d['descriptionFactory']['registerElementLabel']('imageInline',_0x72a60e=>o(_0x151410,'ELEMENT_INLINE_IMAGE',_0x72a60e)),_0x2ce61d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x151410,'ELEMENT_CAPTION')),_0x2367cc['plugins']['has']('ImageUploadEditing')&&_0x2ce61d['enableCommand']('uploadImage'),_0x2367cc['plugins']['has']('ImageBlockEditing')&&_0x2367cc['plugins']['has']('ImageInlineEditing')&&(_0x2ce61d['enableCommand']('imageTypeInline',(_0x10265b,_0x576e40)=>{const _0x4ef4a3=_0x228da5['getClosestSelectedImageElement'](_0x2367cc['model']['document']['selection']);_0x2367cc['model']['change'](()=>{_0x2ce61d['markBlockFormat'](_0x4ef4a3,{'commandName':'imageTypeInline','commandParams':[_0x576e40]},[],'convertBlockImageToInline');});}),_0x2ce61d['enableCommand']('imageTypeBlock',(_0x3d3aec,_0xb48671)=>{_0x2367cc['model']['change'](_0x5388d7=>{let _0x520d0d=_0x228da5['getClosestSelectedImageElement'](_0x2367cc['model']['document']['selection']),_0x218e26=_0x5388d7['createRangeOn'](_0x520d0d);const _0x184a90=_0x2106f1['fromPosition'](_0x218e26['start'],'toPrevious'),_0x3b588b=_0x2106f1['fromPosition'](_0x218e26['end'],'toNext');_0x2ce61d['forceDefaultExecution'](()=>_0x3d3aec(_0xb48671)),_0x520d0d=_0x228da5['getClosestSelectedImageElement'](_0x2367cc['model']['document']['selection']),_0x218e26=_0x5388d7['createRangeOn'](_0x520d0d);const _0x495690=_0x5388d7['createRange'](_0x184a90,_0x3b588b);_0x184a90['detach'](),_0x3b588b['detach'](),_0x2ce61d['markBlockFormat'](_0x520d0d,{'commandName':'imageTypeInline','commandParams':[_0xb48671]},[],'convertInlineImageToBlock'),_0x495690['start']['isBefore'](_0x218e26['start'])&&_0x2ce61d['markInsertion'](_0x5388d7['createRange'](_0x495690['start'],_0x218e26['start']),'convertInlineImageToBlock'),_0x218e26['end']['isBefore'](_0x495690['end'])&&_0x2ce61d['markInsertion'](_0x5388d7['createRange'](_0x218e26['end'],_0x495690['end']),'convertInlineImageToBlock');});}),_0x2ce61d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2ce61d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2ce61d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2ce61d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2ce61d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2ce61d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x42ebf1])=>{const _0x57c156=_0x2ce61d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5b693f=_0x42ebf1['start'],_0x35c4c1=_0x42ebf1['end'];const _0x415d52=_0x2367cc['model']['schema']['getNearestSelectionRange'](_0x5b693f,'backward'),_0x307b3f=_0x2367cc['model']['schema']['getNearestSelectionRange'](_0x35c4c1,'forward');_0x415d52['isCollapsed']&&(_0x5b693f=_0x415d52['start']),_0x307b3f['isCollapsed']&&(_0x35c4c1=_0x307b3f['end']),_0x57c156([_0x2367cc['model']['createRange'](_0x5b693f,_0x35c4c1)]);}),_0x2ce61d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x492986),_0x2ce61d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x492986)),_0x2367cc['plugins']['has']('ImageCaptionEditing')&&(_0x2ce61d['enableCommand']('toggleImageCaption',(_0xb3339d,_0x4cf38b)=>{const _0x17187f=_0x2367cc['plugins']['get']('ImageCaptionUtils');let _0x368e5c=_0x228da5['getClosestSelectedImageElement'](_0x2367cc['model']['document']['selection']),_0x16a6a5=_0x17187f['getCaptionFromImageModelElement'](_0x368e5c);_0x2367cc['model']['change'](()=>{if(_0x16a6a5)return void _0x2ce61d['markDeletion'](_0x2367cc['model']['createRangeOn'](_0x16a6a5));const _0x837538=_0x228da5['isBlockImage'](_0x368e5c);_0xb3339d(_0x4cf38b),_0x368e5c=_0x228da5['getClosestSelectedImageElement'](_0x2367cc['model']['document']['selection']),_0x16a6a5=_0x17187f['getCaptionFromImageModelElement'](_0x368e5c),_0x2ce61d['markInsertion'](_0x2367cc['model']['createRangeOn'](_0x16a6a5),_0x837538?null:'imageCaption');});}),_0x2ce61d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x492986));const _0x24686a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x240758(_0x40fa43,_0x1fe14e){const _0x3986fa=_0x24686a['findIndex'](({type:_0x79af5e,subType:_0x43d961})=>_0x40fa43['type']==_0x79af5e&&_0x40fa43['subType']==_0x43d961),_0x2a2103=_0x24686a['findIndex'](({type:_0xf17b2f,subType:_0x258631})=>_0x1fe14e['type']==_0xf17b2f&&_0x1fe14e['subType']==_0x258631);if(_0x3986fa<0x0||_0x2a2103<0x0)return!0x1;const _0xd09895=_0x40fa43['getFirstRange'](),_0x469103=_0x1fe14e['getFirstRange']();if((0x0==_0x3986fa||0x1==_0x3986fa)&&0x2==_0x2a2103&&_0xd09895['isIntersecting'](_0x469103))return!0x0;if(0x2==_0x3986fa&&0x3==_0x2a2103){const _0x874ed1=_0x2ce61d['_findSuggestions'](_0xd09895,'insertion')['filter'](({suggestion:_0x4cacbe,meta:_0x37bc7f})=>_0x37bc7f['isOwn']&&'convertInlineImageToBlock'==_0x4cacbe['subType']);if(_0x874ed1['length']>0x1&&_0x469103['end']['isEqual'](_0xd09895['start']))return!0x0;if(0x1==_0x874ed1['length']&&(_0xd09895['start']['isEqual'](_0x469103['end'])||_0xd09895['end']['isEqual'](_0x469103['start'])))return!0x0;}if(0x3==_0x3986fa&&0x3==_0x2a2103&&_0xd09895['start']['isBefore'](_0x469103['start'])){const _0x44338e=_0xd09895['end']['nodeAfter'],_0x3134ac=_0x469103['start']['nodeBefore'];return _0x228da5['isBlockImage'](_0x44338e)&&_0x44338e===_0x3134ac;}return!0x1;}function _0x492986(_0x1b0cce,_0x5b7701){return _0x240758(_0x1b0cce,_0x5b7701)?[_0x1b0cce,_0x5b7701]:_0x240758(_0x5b7701,_0x1b0cce)?[_0x5b7701,_0x1b0cce]:null;}_0x2367cc['plugins']['has']('ImageResize')&&(_0x2ce61d['enableDefaultAttributesIntegration']('resizeImage'),_0x2ce61d['registerBlockAttribute']('resizedWidth'),_0x2ce61d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x151410,'FORMAT_IMAGE_SIZE'))),_0x2367cc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2ce61d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2ce61d['registerBlockAttribute']('alt')),_0x2ce61d['descriptionFactory']['registerDescriptionCallback'](_0x11777f=>{if(!!_0x24686a['find'](({type:_0xf8f689,subType:_0x52acf8})=>_0x11777f['type']==_0xf8f689&&_0x11777f['subType']==_0x52acf8))return _0x11777f['previous']?{}:void 0x0;}),_0x2ce61d['descriptionFactory']['registerDescriptionCallback'](_0x2452c5=>{if('insertion'==_0x2452c5['type']||'deletion'==_0x2452c5['type']){const _0x20f6ba=_0x2452c5['getContainedElement']();if(_0x20f6ba&&_0x20f6ba['is']('element','caption'))return{'type':'insertion'==_0x2452c5['type']?'addObject':'removeObject','element':_0x20f6ba,'quantity':0x1};}}),_0x2ce61d['descriptionFactory']['registerDescriptionCallback'](_0x55c1f5=>'formatBlock'==_0x55c1f5['type']&&'convertInlineImageToBlock'==_0x55c1f5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x55c1f5['type']&&'convertBlockImageToInline'==_0x55c1f5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2ce61d['descriptionFactory']['registerDescriptionCallback'](_0x4c83d2=>{if('attribute'!=_0x4c83d2['type'])return;const {data:_0x4cfd26}=_0x4c83d2;if(!_0x4cfd26||'alt'!=_0x4cfd26['key'])return;const _0x13792d=_0x4cfd26['newValue'];return _0x13792d?{'type':'format','content':o(_0x151410,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x13792d+'\x22')}:{'type':'format','content':o(_0x151410,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaf60b0=this['editor'],_0x4a44f6=_0xaf60b0['locale'];_0xaf60b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3af1a8=>{if('formatBlock'!=_0x3af1a8['type']&&'formatInline'!=_0x3af1a8['type'])return;const {data:_0x38287e}=_0x3af1a8;if(_0x38287e){if('imageTextAlternative'==_0x38287e['commandName']){const _0x2356e9=_0x38287e['commandParams'][0x0]['newValue'];return _0x2356e9?{'type':'format','content':o(_0x4a44f6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2356e9+'\x22')}:{'type':'format','content':o(_0x4a44f6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x38287e['commandName']){const _0x1a41fe=_0x38287e['commandParams'][0x0]['width'];return _0x1a41fe?{'type':'format','content':o(_0x4a44f6,'*Set\x20image\x20width:*\x20%0',_0x1a41fe)}:{'type':'format','content':o(_0x4a44f6,'*Reset\x20image\x20width*')};}}});}}class st extends _0x56c567{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1401eb=this['editor']['locale'],_0x15a22a=this['editor']['plugins']['get']('TrackChangesEditing');_0x15a22a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x15a22a['registerBlockAttribute']('src'),_0x15a22a['descriptionFactory']['registerDescriptionCallback'](_0x5251d5=>{if('attribute'!=_0x5251d5['type'])return;const {data:_0x5b3475}=_0x5251d5;return _0x5b3475&&'src'==_0x5b3475['key']?_0x5b3475['newValue']&&_0x5b3475['oldValue']?{'type':'format','content':o(_0x1401eb,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5df172=this['editor']['plugins']['get']('TrackChangesEditing');_0x5df172['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5df172['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5df172['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5df172['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x914720=this['editor'],_0x36d952=_0x914720['locale'];_0x914720['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x149657=>{if('formatBlock'!=_0x149657['type']&&'formatInline'!=_0x149657['type'])return;const {data:_0x30980a}=_0x149657;if(!_0x30980a||'replaceImageSource'!=_0x30980a['commandName'])return;return{'type':'format','content':o(_0x36d952,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x56c567{['afterInit'](){const _0x38770c=this['editor'];if(!_0x38770c['plugins']['has']('ImageStyleEditing'))return;const _0x1d7ed0=_0x38770c['plugins']['get']('TrackChangesEditing'),_0x508f27=_0x38770c['plugins']['get']('ImageUtils'),_0x5d968b={};_0x1d7ed0['enableCommand']('imageStyle',(_0x4a89f8,_0x26d227)=>{const _0x2c6595=_0x38770c['plugins']['get']('Users')['me'],_0x2de2d6=_0x38770c['commands']['get']('imageStyle');let _0x33c56f=_0x508f27['getClosestSelectedImageElement'](_0x38770c['model']['document']['selection']),_0x55d5d2=_0x38770c['model']['createRangeOn'](_0x33c56f),_0x18565e=_0x2de2d6['value'];if(_0x18565e==_0x26d227['value'])return;const _0xdf4ecf={'commandName':'imageStyle','commandParams':[_0x26d227],'formatGroupId':_0x170805()};_0x38770c['model']['change'](()=>{if(_0x1d7ed0['getSuggestions']()['filter'](_0x56990c=>_0x56990c['isInContent']&&_0x2c6595==_0x56990c['author']&&('formatBlock'==_0x56990c['type']||'formatInline'==_0x56990c['type'])&&('imageStylePreApply'==_0x56990c['subType']||'imageStylePostApply'==_0x56990c['subType'])&&_0x56990c['getFirstRange']()['isEqual'](_0x55d5d2))['forEach'](_0x16f903=>_0x1d7ed0['discardSuggestion'](_0x16f903['head'])),_0x33c56f=_0x508f27['getClosestSelectedImageElement'](_0x38770c['model']['document']['selection']),_0x55d5d2=_0x38770c['model']['createRangeOn'](_0x33c56f),_0x2de2d6['refresh'](),_0x38770c['commands']['get']('imageTypeInline')['refresh'](),_0x38770c['commands']['get']('imageTypeBlock')['refresh'](),_0x18565e=_0x2de2d6['value'],_0x18565e!=_0x26d227['value'])return _0x508f27['isInlineImage'](_0x33c56f)&&_0x2de2d6['shouldConvertImageType'](_0x26d227['value'],_0x33c56f)?(_0x4a89f8({..._0x26d227,'setImageSizes':!0x1}),_0x33c56f=_0x508f27['getClosestSelectedImageElement'](_0x38770c['model']['document']['selection']),void _0x1d7ed0['markBlockFormat'](_0x33c56f,{..._0xdf4ecf,'commandReversedParams':[{'value':_0x18565e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x508f27['isBlockImage'](_0x33c56f)?_0x1d7ed0['markBlockFormat'](_0x33c56f,_0xdf4ecf,[],'imageStylePostApply'):_0x1d7ed0['markInlineFormat'](_0x55d5d2,_0xdf4ecf,'imageStylePostApply'));});});for(const _0x12d080 of _0x38770c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5d968b[_0x12d080['name']]=_0x12d080['title']['toLowerCase']();_0x1d7ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1d7ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1d7ed0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1d7ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x41c34e])=>{_0x508f27['setImageNaturalSizeAttributes'](_0x41c34e['getContainedElement']());}),_0x1d7ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2045ea,_0x450934)=>{_0x1d7ed0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2045ea,{'commandName':_0x450934['commandName'],'commandParams':_0x450934['commandReversedParams']});}),_0x1d7ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9a5238,_0x5be1f7){if(_0x70f3ff(_0x9a5238,_0x5be1f7))return[_0x9a5238,_0x5be1f7];if(_0x70f3ff(_0x5be1f7,_0x9a5238))return[_0x5be1f7,_0x9a5238];return null;});const _0x530af3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x70f3ff(_0x5d82c2,_0x52546d){const _0x345f9d=_0x530af3['findIndex'](({type:_0x3e14ab,subType:_0x2fd040})=>_0x5d82c2['type']==_0x3e14ab&&_0x5d82c2['subType']==_0x2fd040),_0xa40b33=_0x530af3['findIndex'](({type:_0x58fea3,subType:_0x13caa8})=>_0x52546d['type']==_0x58fea3&&_0x52546d['subType']==_0x13caa8);if(_0x345f9d<0x0||_0xa40b33<0x0)return!0x1;const _0x2024fd=_0x5d82c2['getFirstRange'](),_0x2b9202=_0x52546d['getFirstRange']();if((0x0==_0x345f9d||0x1==_0x345f9d)&&0x2==_0xa40b33&&_0x2024fd['isIntersecting'](_0x2b9202))return!0x0;if(0x2==_0x345f9d&&0x3==_0xa40b33){const _0xd880c4=_0x1d7ed0['_findSuggestions'](_0x2024fd,'insertion')['filter'](({suggestion:_0x4789cf,meta:_0x2f097f})=>_0x2f097f['isOwn']&&'convertInlineImageToBlock'==_0x4789cf['subType']);if(_0xd880c4['length']>0x1&&_0x2b9202['end']['isEqual'](_0x2024fd['start']))return!0x0;if(0x1==_0xd880c4['length']&&(_0x2024fd['start']['isEqual'](_0x2b9202['end'])||_0x2024fd['end']['isEqual'](_0x2b9202['start'])))return!0x0;}if(0x3==_0x345f9d&&0x3==_0xa40b33&&_0x2024fd['start']['isBefore'](_0x2b9202['start'])){const _0x39a5ec=_0x2024fd['end']['nodeAfter'],_0x2ee422=_0x2b9202['start']['nodeBefore'];return _0x508f27['isBlockImage'](_0x39a5ec)&&_0x39a5ec===_0x2ee422;}return!0x1;}_0x38770c['model']['document']['registerPostFixer'](()=>{let _0x55bdc7=!0x1;const _0x2af389=Array['from'](_0x38770c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x315d1c,data:_0x2441bb}of _0x2af389){const {group:_0x2493d8,type:_0x29bb6e,subType:_0x48712b,id:_0x16c702}=_0x1d7ed0['_splitMarkerName'](_0x315d1c);if('suggestion'==_0x2493d8&&_0x1d7ed0['hasSuggestion'](_0x16c702)){if('formatBlock'==_0x29bb6e&&('imageStylePreApply'==_0x48712b||'imageStylePostApply'==_0x48712b)){const _0x955066=_0x1d7ed0['getSuggestion'](_0x16c702);if(_0x2441bb['newRange']){const _0x359458=_0x955066['getFirstRange']()['getContainedElement']();if(_0x508f27['isBlockImage'](_0x359458))continue;_0x1d7ed0['discardSuggestion'](_0x955066),_0x55bdc7=!0x0;}}if('insertion'==_0x29bb6e&&'imageCaption'==_0x48712b&&!_0x2441bb['newRange']){const _0x1b648d=_0x1d7ed0['getSuggestion'](_0x16c702);_0x1b648d['next']&&_0x1b648d['next']['isInContent']&&(_0x1d7ed0['discardSuggestion'](_0x1b648d['next']),_0x55bdc7=!0x0);}}}return _0x55bdc7;}),this['_registerLegacyDescription'](_0x5d968b);}['_registerLegacyDescription'](_0x46a184){const _0x20dbdf=this['editor'],_0x293e0c=_0x20dbdf['locale'];_0x20dbdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xadba5a=>{if('formatBlock'!=_0xadba5a['type']&&'formatInline'!=_0xadba5a['type'])return;const {data:_0x4b7ae5}=_0xadba5a;if(!_0x4b7ae5||'imageStyle'!=_0x4b7ae5['commandName'])return;const _0x133ec5=_0x4b7ae5['commandParams'][0x0]['value'];return _0x1ace35('side'===_0x133ec5?o(_0x293e0c,'FORMAT_SIDE_IMAGE'):_0x46a184[_0x133ec5]||_0x133ec5);function _0x1ace35(_0x24deca){return{'type':'format','content':o(_0x293e0c,'*Format:*\x20%0',_0x24deca)};}});}}class ot extends _0x56c567{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x7e2f7e){super(_0x7e2f7e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x19e634=this['editor'],_0x4fe714=_0x19e634['commands']['get']('importWord'),_0xb8457f=_0x19e634['commands']['get']('trackChanges');_0x4fe714&&(_0x4fe714['on']('execute',(_0x56778a,[,_0x36829f])=>{this['_trackChangesValueDuringImport']=_0xb8457f['value'],_0x36829f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4fe714,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4fe714,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xb8457f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x19e634['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x84c892,_0xc382a){const {suggestions:_0x4e8118}=_0xc382a,_0x200df7=this['editor']['commands']['get']('trackChanges'),_0x9e52be=_0x200df7['value'];this['_trackChangesValueDuringImport']!==_0x9e52be&&(_0x200df7['execute'](),this['_trackChangesExecuted']=!0x0),_0x4e8118&&_0x4e8118['forEach'](({id:_0x265c52,type:_0x4bb33a,author:_0x50c010,created_at:_0x20b34c})=>{const _0x7fda05={'id':_0x265c52,'type':_0x4bb33a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x50c010,'createdAt':_0x20b34c?new Date(_0x20b34c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x7fda05);});}}class rt extends _0x56c567{['afterInit'](){const _0x437e8a=this['editor'],_0x49c000=_0x437e8a['plugins']['get']('TrackChangesEditing');if(_0x437e8a['plugins']['has']('IndentEditing')&&(_0x49c000['enableCommand']('indent'),_0x49c000['enableCommand']('outdent')),_0x437e8a['plugins']['has']('IndentBlock')){for(const _0x5a8efd of['indentBlock','outdentBlock'])_0x49c000['enableDefaultAttributesIntegration'](_0x5a8efd);}const _0x5a2a61=_0x437e8a['locale'];_0x49c000['registerBlockAttribute']('blockIndent'),_0x49c000['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5a2a61,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5312dc=this['editor'],_0x1b6dac=_0x5312dc['locale'],_0x3e1139=_0x5312dc['plugins']['get']('TrackChangesEditing');_0x3e1139['descriptionFactory']['registerDescriptionCallback'](_0x449f7e=>{if('formatBlock'!=_0x449f7e['type'])return;const {data:_0x31da0c}=_0x449f7e;if(!_0x31da0c)return;if('indentBlock'!=_0x31da0c['commandName']&&'outdentBlock'!=_0x31da0c['commandName'])return;const _0x30af48=_0x449f7e['getItems']()[0x0],_0x27c8c6=_0x3e1139['descriptionFactory']['getItemLabel'](_0x30af48);return'indentBlock'==_0x31da0c['commandName']?{'type':'format','content':o(_0x1b6dac,'*Indent:*\x20%0',_0x27c8c6)}:'outdentBlock'==_0x31da0c['commandName']?{'type':'format','content':o(_0x1b6dac,'*Outdent:*\x20%0',_0x27c8c6)}:void 0x0;});}}class at extends _0x56c567{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x56c567{['afterInit'](){const _0x4c9ae2=this['editor'];if(!_0x4c9ae2['plugins']['has']('LinkEditing'))return;const _0x4f3853=_0x4c9ae2['plugins']['get']('TrackChangesEditing'),_0x582307=_0x4c9ae2['commands']['get']('link');_0x4f3853['enableDefaultAttributesIntegration']('link'),_0x4f3853['enableDefaultAttributesIntegration']('unlink'),_0x4f3853['registerInlineAttribute']('linkHref');for(const _0x1f4eda of _0x582307['manualDecorators'])_0x4f3853['registerInlineAttribute'](_0x1f4eda['id']),_0x4f3853['descriptionFactory']['registerAttributeLabel'](_0x1f4eda['id'],'link\x20('+_0x1f4eda['label']['toLowerCase']()+')');_0x4f3853['descriptionFactory']['registerDescriptionCallback'](_0x240c19=>{if('attribute'!=_0x240c19['type'])return;const {data:_0x299512}=_0x240c19;if(!_0x299512||'linkHref'!=_0x299512['key'])return;const _0x4aa393=_0x299512['newValue'],_0x5c6290=_0x4c9ae2['locale'];return{'type':'format','content':null==_0x4aa393?o(_0x5c6290,'*Remove\x20link*'):o(_0x5c6290,'*Set\x20link:*\x20%0','\x22'+_0x4aa393+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23eefb=this['editor'],_0x542f53=_0x23eefb['locale'];_0x23eefb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12bdc1=>{if('formatInline'!=_0x12bdc1['type'])return;const {data:_0x3b50b7}=_0x12bdc1;if(_0x3b50b7){if('link'==_0x3b50b7['commandName']){const _0x11a064=_0x3b50b7['commandParams'][0x0];return{'type':'format','content':o(_0x542f53,'*Set\x20link:*\x20%0','\x22'+_0x11a064+'\x22')};}return'unlink'==_0x3b50b7['commandName']?{'type':'format','content':o(_0x542f53,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x56c567{['afterInit'](){const _0x36896a=this['editor'],_0x32e8bf=_0x36896a['locale'];if(!_0x36896a['plugins']['has']('LegacyListEditing'))return;const _0x326b79=_0x36896a['plugins']['get']('TrackChangesEditing'),_0x13b7f2=_0x36896a['plugins']['has']('LegacyTodoListEditing');function _0x3e9718(_0x2a8c15){return()=>{const _0x3ba56d=_0x36896a['model']['document']['selection'],_0x58207c=_0x36896a['commands']['get'](_0x2a8c15);if(_0x58207c['value'])return void _0x36896a['execute']('paragraph',{});const _0x49d2b9=_0x2a8c15['slice'](0x0,-0x4),_0x5e9701=function(_0x4c751e,_0x1e7122,_0x506bca){let _0xf07a1c=Array['from'](_0x4c751e)['filter'](_0x34128b=>function(_0x488aba,_0x1c98ac){return _0x1c98ac['checkChild'](_0x488aba['parent'],'listItem')&&!_0x1c98ac['isObject'](_0x488aba);}(_0x34128b,_0x506bca));_0xf07a1c=_0xf07a1c['filter'](_0x584159=>!_0x584159['is']('element','listItem')||_0x584159['getAttribute']('listType')!=_0x1e7122);const _0x26298d=new Set();for(const _0x392cfa of _0xf07a1c)_0x392cfa['is']('element','listItem')?_0x26298d['add'](me(_0x392cfa)):_0x26298d['add'](_0x392cfa);return Array['from'](_0x26298d);}(_0x3ba56d['getSelectedBlocks'](),_0x49d2b9,_0x36896a['model']['schema']);_0x36896a['model']['change'](()=>{for(const _0x45f1af of _0x5e9701)_0x326b79['markBlockFormat'](_0x45f1af,{'commandName':_0x2a8c15,'commandParams':[{'forceValue':!_0x58207c['value']}],'formatGroupId':'blockName'},fe(_0x45f1af));});};}function _0x54655c(_0x19416e){return()=>{const _0xf41678=function(_0x3ad28b){let _0x43e429=Array['from'](_0x3ad28b);const _0x50836e=_0x43e429['findIndex'](_0x58b83e=>'listItem'!=_0x58b83e['name']);return _0x50836e>-0x1&&(_0x43e429=_0x43e429['slice'](0x0,_0x50836e)),_0x43e429;}(_0x36896a['model']['document']['selection']['getSelectedBlocks']()),_0x21dc86=_0x36896a['model']['createRange'](_0x36896a['model']['createPositionAt'](_0xf41678[0x0],'before'),_0x36896a['model']['createPositionAt'](_0xf41678[_0xf41678['length']-0x1],'end'));_0x36896a['model']['change'](()=>{_0x326b79['markBlockFormat'](_0x21dc86,{'commandName':_0x19416e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1497ad){const _0xa7547d=new Set();for(const _0x26c27e of _0x1497ad){let _0x2fa359=_0x26c27e['nextSibling'];for(;_0x2fa359&&_0x2fa359['getAttribute']('listIndent')>_0x26c27e['getAttribute']('listIndent');)_0xa7547d['add'](_0x2fa359),_0x2fa359=_0x2fa359['nextSibling'];}return Array['from'](_0xa7547d);}(_0xf41678));});};}_0x326b79['enableCommand']('numberedList',_0x3e9718('numberedList')),_0x326b79['enableCommand']('bulletedList',_0x3e9718('bulletedList')),_0x13b7f2&&_0x326b79['enableCommand']('todoList',_0x3e9718('todoList')),_0x326b79['enableCommand']('indentList',_0x54655c('indentList')),_0x326b79['enableCommand']('outdentList',_0x54655c('outdentList')),_0x13b7f2&&_0x326b79['enableCommand']('checkTodoList',()=>{const _0x10d40d=_0x36896a['commands']['get']('checkTodoList'),_0x4ad4de=Array['from'](_0x10d40d['_selectedElements']);_0x4ad4de['filter'](_0x4bf024=>_0x4bf024['getAttribute']('todoListChecked')!=_0x10d40d['value']),_0x36896a['model']['change'](()=>{for(const _0x55eadd of _0x4ad4de)_0x326b79['markBlockFormat'](_0x55eadd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x10d40d['value']}]});});}),_0x326b79['descriptionFactory']['registerElementLabel']('listItem',_0x2b5f97=>o(_0x32e8bf,'ELEMENT_LIST_ITEM',_0x2b5f97)),_0x326b79['descriptionFactory']['registerDescriptionCallback'](_0x3545d8=>{if('formatBlock'!=_0x3545d8['type']&&'formatInline'!=_0x3545d8['type'])return;const {data:_0x1dc03b}=_0x3545d8;if(_0x1dc03b){if('numberedList'==_0x1dc03b['commandName']||'bulletedList'==_0x1dc03b['commandName']||'todoList'==_0x1dc03b['commandName'])switch(_0x1dc03b['commandName']['replace']('List','')){case'bulleted':return _0x1fc461(o(_0x32e8bf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1fc461(o(_0x32e8bf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1fc461(o(_0x32e8bf,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1dc03b['commandName'])return{'type':'format','content':o(_0x32e8bf,'*Indent:*\x20%0',o(_0x32e8bf,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1dc03b['commandName'])return{'type':'format','content':o(_0x32e8bf,'*Outdent:*\x20%0',o(_0x32e8bf,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1dc03b['commandName'])return _0x1dc03b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32e8bf,'*Check\x20item*')}:{'type':'format','content':o(_0x32e8bf,'*Uncheck\x20item*')};}function _0x1fc461(_0x189819){return{'type':'format','content':o(_0x32e8bf,'*Change\x20to:*\x20%0',_0x189819)};}});}}function me(_0x15a24d){const _0x5d1cc9=_0x15a24d['getAttribute']('listIndent');if(0x0==_0x5d1cc9)return _0x15a24d;let _0x1faf2f=_0x15a24d;for(;_0x15a24d['previousSibling']&&_0x15a24d['previousSibling']['is']('element','listItem');){const _0x2a01de=_0x15a24d['previousSibling']['getAttribute']('listIndent');if(_0x2a01de==_0x5d1cc9)_0x1faf2f=_0x15a24d['previousSibling'];else{if(_0x2a01de<_0x5d1cc9)break;}_0x15a24d=_0x15a24d['previousSibling'];}return _0x1faf2f;}function fe(_0x12c3eb){const _0x2d8973=[];if(_0x12c3eb['is']('element','listItem')&&_0x12c3eb['getAttribute']('listIndent')>0x0){let _0x1e6fea=_0x12c3eb['nextSibling'];for(;_0x1e6fea&&'listItem'==_0x1e6fea['name']&&_0x1e6fea['getAttribute']('listIndent')==_0x12c3eb['getAttribute']('listIndent');)_0x2d8973['push'](_0x1e6fea),_0x1e6fea=_0x1e6fea['nextSibling'];}return _0x2d8973;}class K extends _0x56c567{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x32391d=this['editor']['config']['get']('list.properties'),_0x512ad6=this['editor']['plugins']['get']('TrackChangesEditing');_0x32391d['styles']&&_0x512ad6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x32391d['reversed']&&_0x512ad6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x32391d['startIndex']&&_0x512ad6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x512ad6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x28cb82,_0x526cef={}){const _0x2076a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b9a77=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2076a1['markMultiRangeBlockFormat'](_0x1b9a77,{'commandName':'listStyle','commandParams':[{'type':_0x526cef['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x28a662,_0x250da3={}){const _0x3ae902=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13ea44=this['_getSuggestionBlocks'](_0x5a147b=>_0x5a147b['is']('element','listItem')&&'numbered'===_0x5a147b['getAttribute']('listType'));if(_0x13ea44['length']<0x1)return;const _0x6deb77=_0x13ea44['map'](_0x454c6c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x454c6c,'before'),this['editor']['model']['createPositionAt'](_0x454c6c,0x0)));this['editor']['model']['change'](()=>{_0x3ae902['markMultiRangeBlockFormat'](_0x6deb77,{'commandName':'listReversed','commandParams':[{'reversed':_0x250da3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1e3bcc,_0x3b5b2e={}){const _0x1d664b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x237527=this['_getSuggestionBlocks'](_0x2e9a55=>_0x2e9a55['is']('element','listItem')&&'numbered'===_0x2e9a55['getAttribute']('listType'));if(_0x237527['length']<0x1)return;const _0x4fec02=_0x237527['map'](_0x49f4d6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49f4d6,'before'),this['editor']['model']['createPositionAt'](_0x49f4d6,0x0)));this['editor']['model']['change'](()=>{_0x1d664b['markMultiRangeBlockFormat'](_0x4fec02,{'commandName':'listStart','commandParams':[{'startIndex':_0x3b5b2e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x43380){if('formatBlock'!=_0x43380['type']&&'formatInline'!=_0x43380['type'])return;const _0x5e3f44=this['editor']['locale'],{data:_0x19bf79}=_0x43380;if(!_0x19bf79)return;let _0x3a590e,_0x2066f4;switch(_0x19bf79['commandName']){case'listStyle':_0x3a590e='*Change\x20to:*\x20%0',_0x2066f4={'type':'format','content':o(_0x5e3f44,_0x3a590e,o(_0x5e3f44,this['_getTranslationKeyForListStyle'](_0x19bf79['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3a590e=_0x19bf79['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2066f4={'type':'format','content':o(_0x5e3f44,_0x3a590e)};break;case'listStart':_0x3a590e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2066f4={'type':'format','content':o(_0x5e3f44,_0x3a590e,_0x19bf79['commandParams'][0x0]['startIndex'])};}return _0x2066f4;}['_getSuggestionBlocksForListStyle'](){const _0x4ddab9=this['editor']['plugins']['get']('LegacyListUtils');let _0x195b5a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x195b5a[0x0]?.['is']('element','listItem')&&_0x195b5a['unshift'](..._0x4ddab9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x195b5a[_0x195b5a['length']-0x1]?.['is']('element','listItem')&&_0x195b5a['push'](..._0x4ddab9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x195b5a=[...new Set(_0x195b5a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x195b5a=_0x195b5a['filter'](_0x5187b8=>_0x5187b8['is']('element','listItem'))),_0x195b5a;}['_getSuggestionBlocks'](_0x370781){const _0x35435b=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e9f1d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x370781)['map'](_0x3d78e8=>{const _0x373066=this['editor']['model']['createPositionAt'](_0x3d78e8,0x0);return[..._0x35435b['getSiblingNodes'](_0x373066,'backward'),..._0x35435b['getSiblingNodes'](_0x373066,'forward')];})['flat']();return _0x3e9f1d=[...new Set(_0x3e9f1d)],_0x3e9f1d;}['_getTranslationKeyForListStyle'](_0x4874a0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4874a0)||'default')['toUpperCase']()+'_LIST_'+_0x4874a0['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x56c567{['afterInit'](){const _0x6685fe=this['editor'];if(!_0x6685fe['plugins']['has']('MediaEmbedEditing'))return;const _0x34c77d=_0x6685fe['plugins']['get']('TrackChangesEditing'),_0x4f1c31=_0x6685fe['locale'];_0x34c77d['enableCommand']('mediaEmbed'),_0x34c77d['descriptionFactory']['registerElementLabel']('media',_0x226b2b=>o(_0x4f1c31,'ELEMENT_MEDIA',_0x226b2b)),_0x6685fe['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x12c108,{writer:_0x2f5dcb,options:_0x548a1a})=>{if(_0x548a1a['showSuggestionHighlights'])return _0x2f5dcb['createEmptyElement']('div');},'converterPriority':'high'}),_0x6685fe['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5a88e0,_0x2616aa,_0x25bea1)=>{_0x25bea1['options']['showSuggestionHighlights']&&_0x5a88e0['stop']();},{'priority':'high'});}}class gt extends _0x56c567{['afterInit'](){const _0x4c30a3=this['editor'];_0x4c30a3['plugins']['has']('MentionEditing')&&_0x4c30a3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x56c567{['afterInit'](){const _0x5c5590=this['editor'],_0x1510c8=_0x5c5590['plugins']['get']('TrackChangesEditing');_0x5c5590['plugins']['has']('MultiLevelList')&&(_0x1510c8['enableDefaultAttributesIntegration']('multiLevelList'),_0x1510c8['registerBlockAttribute']('listMarkerStyle'),_0x1510c8['descriptionFactory']['registerDescriptionCallback'](_0x36e7be=>this['handleDescriptions'](_0x36e7be)));}['handleDescriptions'](_0xaba559){const _0x2b6fdf=this['editor']['locale'],{data:_0x36f945}=_0xaba559,_0x497fcf={'type':'format','content':''};if(_0x36f945&&'listMarkerStyle'==_0x36f945['key']){if(!_0x36f945['oldValue'])return{'type':'format','content':o(_0x2b6fdf,'*Set\x20format:*\x20%0',o(_0x2b6fdf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36f945['newValue']+')'};if(!_0x36f945['newValue']){let _0x105488=_0xaba559['head'];for(;_0x105488;){if(_0x105488['data']&&'listType'==_0x105488['data']['key']&&_0x105488['data']['newValue'])return _0x497fcf;_0x105488=_0x105488['next'];}return{'type':'format','content':o(_0x2b6fdf,'*Remove\x20format:*\x20%0',o(_0x2b6fdf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36f945['oldValue']+')'};}}}}class mt extends _0x56c567{['afterInit'](){const _0x23acbc=this['editor'];if(!_0x23acbc['plugins']['has']('PageBreakEditing'))return;_0x23acbc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2d876c=_0x23acbc['plugins']['get']('TrackChangesEditing'),_0x50ccbd=_0x23acbc['locale'];_0x2d876c['descriptionFactory']['registerElementLabel']('pageBreak',_0xc7671b=>o(_0x50ccbd,'ELEMENT_PAGE_BREAK',_0xc7671b));}}class dt extends _0x56c567{['afterInit'](){const _0x5c8ee3=this['editor'];if(!_0x5c8ee3['plugins']['has']('Paragraph'))return;const _0x341969=_0x5c8ee3['locale'],_0x2d90be=_0x5c8ee3['plugins']['get']('TrackChangesEditing');_0x2d90be['descriptionFactory']['registerElementLabel']('paragraph',_0x1a2f73=>o(_0x341969,'ELEMENT_PARAGRAPH',_0x1a2f73)),_0x2d90be['enableDefaultAttributesIntegration']('paragraph'),_0x2d90be['enableCommand']('insertParagraph'),_0x5c8ee3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5c8ee3),{'priority':'highest'}),_0x5c8ee3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xa3fa94,_0x1238c6,_0x3b7edd)=>{_0x3b7edd['options']['showSuggestionHighlights']&&nr(_0x5c8ee3,{'showActiveMarker':!0x1})(_0xa3fa94,_0x1238c6,_0x3b7edd);},{'priority':'highest'});const _0x3120f1=_0x2d90be['descriptionFactory'];_0x3120f1['registerDescriptionCallback'](_0xbce574=>{if('insertion'!==_0xbce574['type'])return;const {start:_0x4880dc,end:_0x153dcc}=_0xbce574['getFirstRange']();if(!_0x4880dc['isTouching'](_0x153dcc)||!_0x4880dc['nodeAfter'])return;const _0x5869d1=_0x5c8ee3['model']['schema'],_0x27c2e1=_0x4880dc['nodeAfter'];return _0x5869d1['isBlock'](_0x27c2e1)&&!_0x5869d1['isLimit'](_0x27c2e1)&&_0x5869d1['checkChild'](_0x27c2e1,'$text')?{'type':'insertion','content':o(_0x341969,'*Insert:*\x20%0',_0x3120f1['getItemLabel'](_0x27c2e1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x79f442=this['editor'],_0x38ea29=_0x79f442['locale'];_0x79f442['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x992c92=>{if('formatBlock'!=_0x992c92['type'])return;const {data:_0x13d3bf}=_0x992c92;return _0x13d3bf&&'paragraph'==_0x13d3bf['commandName']?{'type':'format','content':o(_0x38ea29,'*Change\x20to:*\x20%0',o(_0x38ea29,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x547dfb,{showActiveMarker:_0x573aad=!0x0}={}){return(_0x1d9cd6,_0x48991b,_0x1e546e)=>{const _0x4df500=_0x547dfb['plugins']['get']('TrackChangesEditing'),_0x298ccf=_0x48991b['markerRange']['start'],_0x50603d=_0x48991b['markerRange']['end'],_0x5ae702=_0x547dfb['model']['schema'];if(!_0x298ccf['isTouching'](_0x50603d)||!_0x298ccf['nodeAfter'])return;const _0x573d05=_0x298ccf['nodeAfter'];if(_0x5ae702['isBlock'](_0x573d05)&&!_0x5ae702['isLimit'](_0x573d05)&&_0x5ae702['checkChild'](_0x573d05,'$text')){if(!_0x1e546e['consumable']['consume'](_0x48991b['markerRange'],_0x1d9cd6['name']))return;const _0x38eec0=_0x1e546e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1444bf=_0x1e546e['mapper']['toViewPosition'](_0x50603d);_0x573aad&&_0x4df500['activeMarkers']['includes'](_0x48991b['markerName'])&&_0x1e546e['writer']['addClass']('ck-suggestion-marker--active',_0x38eec0),_0x1e546e['writer']['insert'](_0x1444bf,_0x38eec0),_0x1e546e['mapper']['bindElementToMarker'](_0x38eec0,_0x48991b['markerName']);}};}class pt extends _0x56c567{['afterInit'](){const _0x2807ba=this['editor'];if(!_0x2807ba['plugins']['has']('RemoveFormatEditing'))return;_0x2807ba['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x846588=this['editor'];_0x846588['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4436e8=>{if('formatBlock'!=_0x4436e8['type']&&'formatInline'!=_0x4436e8['type'])return;const {data:_0x1a9b3a}=_0x4436e8;return _0x1a9b3a&&'removeFormat'==_0x1a9b3a['commandName']?{'type':'format','content':o(_0x846588['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x56c567{['afterInit'](){const _0x414b7a=this['editor'];if(!_0x414b7a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1f720e=_0x414b7a['plugins']['get']('TrackChangesEditing');_0x1f720e['enableCommand']('goToPreviousRestrictedEditingException'),_0x1f720e['enableCommand']('goToNextRestrictedEditingException');const _0x4b4ce9=_0x414b7a['plugins']['get']('RestrictedEditingModeEditing');_0x4b4ce9['enableCommand']('trackChanges'),_0x4b4ce9['enableCommand']('acceptSuggestion'),_0x4b4ce9['enableCommand']('discardSuggestion'),_0x4b4ce9['enableCommand']('acceptAllSuggestions'),_0x4b4ce9['enableCommand']('discardAllSuggestions'),_0x4b4ce9['enableCommand']('acceptSelectedSuggestions'),_0x4b4ce9['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x56c567{static get['requires'](){return[_0x57f534];}['init'](){const _0x3f3e17=this['editor'],_0x334d17=_0x3f3e17['plugins']['get']('TrackChangesEditing');_0x334d17['enableCommand']('shiftEnter'),_0x3f3e17['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3f3e17),{'priority':'high'}),_0x3f3e17['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3f3e17),{'priority':'high'}),_0x3f3e17['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x206822,_0x4d5e07,_0x3ab2ca)=>{_0x3ab2ca['options']['showSuggestionHighlights']&&de(_0x3f3e17,{'showActiveMarker':!0x1})(_0x206822,_0x4d5e07,_0x3ab2ca);}),_0x334d17['descriptionFactory']['registerElementLabel']('softBreak',_0xc3cdf4=>o(_0x3f3e17['locale'],'ELEMENT_LINE_BREAK',_0xc3cdf4));}}function de(_0x53fee2,{showActiveMarker:_0x4a5412=!0x0}={}){return(_0x370eee,_0x5a50d9,_0x4967e5)=>{const _0x4ffc2a=_0x53fee2['plugins']['get']('TrackChangesEditing');if(!_0x4967e5['consumable']['test'](_0x5a50d9['markerRange'],_0x370eee['name']))return;const _0x2e4f2a=_0x53fee2['model'];for(const _0x649a00 of _0x5a50d9['markerRange']['getItems']()){if(!_0x649a00['is']('element','softBreak'))continue;const _0xcf412a='deletion'==_0x5a50d9['markerName']['split'](':')[0x1]?'merge':'split',_0x20b23d=_0x4967e5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcf412a}),_0x5bba0a=_0x4967e5['mapper']['toViewPosition'](_0x2e4f2a['createPositionBefore'](_0x649a00));_0x4a5412&&_0x4ffc2a['activeMarkers']['includes'](_0x5a50d9['markerName'])&&_0x4967e5['writer']['addClass']('ck-suggestion-marker--active',_0x20b23d),_0x4967e5['writer']['insert'](_0x5bba0a,_0x20b23d),_0x4967e5['mapper']['bindElementToMarker'](_0x20b23d,_0x5a50d9['markerName']);}};}class wt extends _0x56c567{['afterInit'](){const _0x47a81d=this['editor'],_0x3f197=_0x47a81d['model'],_0x2cbe8c=_0x47a81d['locale'];if(!_0x47a81d['plugins']['has']('StandardEditingModeEditing'))return;const _0x2bbab5=_0x47a81d['plugins']['get']('TrackChangesEditing'),_0x2588b9='restrictedEditingException',_0x1a1c73=_0x47a81d['commands']['get'](_0x2588b9);_0x2bbab5['enableCommand'](_0x2588b9,(_0x5a71f6,_0x19dd27={})=>{const _0x275aed=_0x3f197['document']['selection'];if(_0x275aed['isCollapsed'])return void _0x5a71f6(_0x19dd27);const _0x1758d4=void 0x0!==_0x19dd27['forceValue']?_0x19dd27['forceValue']:!_0x1a1c73['value'];_0x3f197['change'](()=>{const _0x34d8f3=Array['from'](_0x275aed['getRanges']());for(const _0x140d54 of _0x34d8f3){const _0x3dab56=_0x1758d4?[_0x140d54]:io(_0x2588b9,_0x140d54,_0x3f197);for(const _0x41554c of _0x3dab56)_0x2bbab5['markInlineFormat'](_0x41554c,{'commandName':_0x2588b9,'commandParams':[{'forceValue':_0x1758d4}]});}});}),_0x2bbab5['descriptionFactory']['registerDescriptionCallback'](_0x1932d4=>{if('formatBlock'!=_0x1932d4['type']&&'formatInline'!=_0x1932d4['type'])return;const {data:_0x427187}=_0x1932d4;return _0x427187&&_0x427187['commandName']==_0x2588b9?_0x427187['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cbe8c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2cbe8c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x56c567{['afterInit'](){const _0x19af7e=this['editor'];if(!_0x19af7e['plugins']['has']('Style')||!_0x19af7e['plugins']['has']('DataSchema'))return;const _0x321908=_0x19af7e['plugins']['get']('TrackChangesEditing'),_0x4b895e=_0x19af7e['locale'],_0x2368bf=_0x19af7e['config']['get']('style')||{},_0x85f7a1=_0x19af7e['plugins']['get']('GeneralHtmlSupport'),_0x558805=_0x19af7e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x19af7e['plugins']['get']('DataSchema'),_0x2368bf['definitions']);_0x321908['enableDefaultAttributesIntegration']('style');const _0x4ff214=new Set();for(const _0x37b2ef of _0x558805['block']){const _0x549e72=_0x85f7a1['getGhsAttributeNameForElement'](_0x37b2ef['element']);_0x4ff214['add'](_0x549e72);}const _0x33bb9a=new Set();for(const _0x153582 of _0x558805['inline']){const _0x3bd9cc=_0x85f7a1['getGhsAttributeNameForElement'](_0x153582['element']);_0x33bb9a['add'](_0x3bd9cc);for(const _0x23c83a of _0x153582['ghsAttributes'])_0x33bb9a['add'](_0x23c83a);}for(const _0xf79be8 of _0x4ff214)_0x321908['registerBlockAttribute'](_0xf79be8),_0x321908['descriptionFactory']['registerAttributeLabel'](_0xf79be8,o(_0x4b895e,'FORMAT_STYLE'));for(const _0x52bd12 of _0x33bb9a)_0x321908['registerInlineAttribute'](_0x52bd12),_0x321908['descriptionFactory']['registerAttributeLabel'](_0x52bd12,o(_0x4b895e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e7b8f=this['editor'],_0x43667f=_0x5e7b8f['locale'];_0x5e7b8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x135766=>{if('formatBlock'!=_0x135766['type']&&'formatInline'!=_0x135766['type'])return;const {data:_0x47bc7f}=_0x135766;return _0x47bc7f&&'style'===_0x47bc7f['commandName']?_0x47bc7f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43667f,'*Set\x20format:*\x20%0',_0x47bc7f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x43667f,'*Remove\x20format:*\x20%0',_0x47bc7f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x56c567{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5f5864){super(_0x5f5864),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x15427e=this['editor'],_0x4cb150=_0x15427e['model']['document']['selection'];if(!_0x15427e['plugins']['has']('TableEditing'))return;const _0x40013d=_0x15427e['locale'],_0x52425e=_0x15427e['plugins']['get']('TrackChangesEditing'),_0x2149d4=_0x15427e['plugins']['get']('TableUtils');_0x52425e['descriptionFactory']['registerElementLabel']('table',_0x4ffe87=>o(_0x40013d,'ELEMENT_TABLE',_0x4ffe87)),this['_setupColumnsRowsFixing'](),_0x52425e['enableCommand']('insertTable'),_0x52425e['enableCommand']('selectTableRow'),_0x52425e['enableCommand']('selectTableColumn');for(const _0x123335 of['insertTableRowAbove','insertTableRowBelow']){const _0x3d3fa2=_0x15427e['commands']['get'](_0x123335);_0x52425e['enableCommand'](_0x123335,_0x4fad2b=>{_0x15427e['model']['change'](_0x4c53fb=>{_0x4fad2b();const _0x4e63a9='above'===_0x3d3fa2['order'],_0x6b7cc2=_0x2149d4['getSelectionAffectedTableCells'](_0x4cb150),_0x48eb2e=_0x2149d4['getRowIndexes'](_0x6b7cc2),_0x284951=_0x4e63a9?_0x48eb2e['first']-0x1:_0x48eb2e['last']+0x1,_0x1dd07a=_0x6b7cc2[0x0]['findAncestor']('table'),_0x4b2a80=_0x2149d4['createTableWalker'](_0x1dd07a,{'startRow':_0x284951,'endRow':_0x284951}),_0x24bfc1=Array['from'](_0x4b2a80)['map'](_0x45c8f1=>_0x4c53fb['createRangeOn'](_0x45c8f1['cell']));_0x52425e['markMultiRangeInsertion'](_0x24bfc1,'tableRow');});});}for(const _0x5ca4ec of['insertTableColumnLeft','insertTableColumnRight']){const _0x13be52=_0x15427e['commands']['get'](_0x5ca4ec);_0x52425e['enableCommand'](_0x5ca4ec,_0x4b53ea=>{_0x15427e['model']['change'](_0x3569bf=>{_0x4b53ea();const _0x240e79='left'===_0x13be52['order'],_0x35c263=_0x2149d4['getSelectionAffectedTableCells'](_0x4cb150),_0x5e920b=_0x2149d4['getColumnIndexes'](_0x35c263),_0x1fc04c=_0x240e79?_0x5e920b['first']-0x1:_0x5e920b['last']+0x1,_0x270b8f=_0x35c263[0x0]['findAncestor']('table'),_0x28035b=_0x2149d4['createTableWalker'](_0x270b8f,{'startRow':0x0,'column':_0x1fc04c,'includeAllSlots':!0x1}),_0x3a5d8b=Array['from'](_0x28035b)['map'](_0x1220f8=>_0x3569bf['createRangeOn'](_0x1220f8['cell']));_0x52425e['markMultiRangeInsertion'](_0x3a5d8b,'tableColumn');});});}for(const _0x522639 of['removeTableRow','removeTableColumn']){const _0x87cc26=_0x522639['substr'](0xb),_0xfbf20f=_0x87cc26['toLowerCase'](),_0x5d5a5c=_0xfbf20f['substr'](0x0,0x3)+'span',_0x421479='table'+_0x87cc26,_0x56dff4='min'+_0x87cc26,_0x17773f='max'+_0x87cc26;_0x52425e['enableCommand'](_0x522639,()=>{_0x15427e['model']['change'](_0x2e905e=>{const _0x458d22=_0x2149d4['getSelectionAffectedTableCells'](_0x4cb150),_0x54357a=_0x458d22[0x0]['findAncestor']('table');let _0x59a64f;if('removeTableRow'==_0x522639){const _0x16eff0=_0x2149d4['getRowIndexes'](_0x458d22);_0x59a64f={'startRow':_0x16eff0['first'],'endRow':_0x16eff0['last'],'includeAllSlots':!0x0};}else{const _0xd567db=_0x2149d4['getColumnIndexes'](_0x458d22);_0x59a64f={'startColumn':_0xd567db['first'],'endColumn':_0xd567db['last'],'includeAllSlots':!0x0};}const _0x354a60=_0x2149d4['createTableWalker'](_0x54357a,_0x59a64f),_0x213da2=Array['from'](_0x354a60)['map'](({cell:_0x289162})=>_0x289162),_0x5ecc2b=Ee(_0x213da2['filter'](_0x16f519=>_0x16f519['hasAttribute'](_0x5d5a5c))),_0x151594=Ee(_0x213da2['filter'](_0x16b92e=>!_0x16b92e['hasAttribute'](_0x5d5a5c)))['map'](_0x4c5e18=>_0x2e905e['createRangeOn'](_0x4c5e18)),_0x388af8=_0x52425e['markMultiRangeDeletion'](_0x151594,_0x421479);if(_0x388af8&&('tableRow'==_0x388af8['subType']||'tableColumn'==_0x388af8['subType'])){const _0x27e970=this['_getSuggestionCoords'](_0x388af8);for(const _0x1e89e6 of _0x5ecc2b){const _0xbbf771=_0x2e905e['createRangeOn'](_0x1e89e6),_0x1fb09c=_0x2149d4['getCellLocation'](_0x1e89e6),_0xaab77c=_0x1e89e6['getAttribute'](_0x5d5a5c)-0x1,_0x54aab4=_0x27e970[_0x56dff4],_0x52aa65=_0x27e970[_0x17773f];_0x54aab4<=_0x1fb09c[_0xfbf20f]&&_0x1fb09c[_0xfbf20f]+_0xaab77c<=_0x52aa65&&_0x388af8['addRange'](_0xbbf771);}}});});}function _0x379c73(_0x41ff8b){const _0x3cf0c3=Array['from'](_0x4cb150['getRanges']())['map'](_0x25b0c6=>_0x17a41d['fromRange'](_0x25b0c6));_0x15427e['model']['change'](_0x2649dd=>{const _0x118329=_0x2649dd['batch'];_0x41ff8b=_0x41ff8b['filter'](_0x43f279=>'$graveyard'!=_0x43f279['root']['rootName']),_0x2649dd['setSelection'](_0x41ff8b),_0x15427e['commands']['get']('removeTableRow')['refresh'](),_0x15427e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x15427e['model']['enqueueChange'](()=>{_0x15427e['model']['enqueueChange'](_0x118329,_0x3d8dcd=>{const _0x38ca16=_0x3cf0c3['filter'](_0x233e82=>'$graveyard'!=_0x233e82['root']['rootName']);_0x38ca16['length']>0x0&&_0x3d8dcd['setSelection'](_0x38ca16);for(const _0x710bb6 of _0x3cf0c3)_0x710bb6['detach']();});});});}function _0x5bb787(_0x5c2683){_0x15427e['model']['change'](_0x126ddc=>{const _0x2703e7=Array['from'](_0x4cb150['getRanges']())['map'](_0x5c7401=>_0x17a41d['fromRange'](_0x5c7401)),_0xb3cb21=[];for(const _0x261d11 of _0x5c2683)for(const _0x1deadf of _0x261d11['getItems']({'shallow':!0x0}))_0xb3cb21['push'](_0x1deadf);for(const _0x51c683 of _0xb3cb21)'$graveyard'!=_0x51c683['root']['rootName']&&(_0x126ddc['setSelection'](_0x126ddc['createPositionAt'](_0x51c683,0x0)),_0x15427e['commands']['get']('removeTableColumn')['refresh'](),_0x15427e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x302895=_0x2703e7['filter'](_0x443bfe=>'$graveyard'!=_0x443bfe['root']['rootName']);_0x302895['length']>0x0&&_0x126ddc['setSelection'](_0x302895);for(const _0x308e26 of _0x2703e7)_0x308e26['detach']();});}function _0x2f14e1(_0x3b8e70,_0x2d0a4d){return _0x2d0a4d['every'](_0x5de53c=>_0x3b8e70['some'](_0x527774=>_0x527774['end']['isEqual'](_0x5de53c['start'])||_0x5de53c['end']['isEqual'](_0x527774['start'])));}function _0x11d400(_0x3a8c0c,_0x1285d8){return!_0x3a8c0c['some'](_0x2af65a=>_0x1285d8['some'](_0x2c727d=>_0x2af65a['isIntersecting'](_0x2c727d)))&&_0x3a8c0c['some'](_0x1bd341=>_0x1285d8['some'](_0x183b9b=>_0x1bd341['end']['isTouching'](_0x183b9b['start'])));}_0x15427e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ea2e2,_0x2b513c,_0x1097a0)=>{if(!_0x1097a0['options']['showSuggestionHighlights'])return;const _0x1ef16b=_0x2b513c['item'];if(!_0x1ef16b)return;const _0x25e037=_0x1097a0['mapper']['toViewElement'](_0x1ef16b);function _0x2b6ce4(_0x438e04){return Array['isArray'](_0x438e04)?_0x438e04:[_0x438e04];}_0x25e037&&'tableCell'===_0x1ef16b['name']&&_0x26202c(_0x25e037,_0x1097a0['writer'],(_0x4d99fd,_0x25a482,_0x46f302)=>_0x46f302['addClass'](_0x2b6ce4(_0x25a482['classes']),_0x4d99fd),(_0x172048,_0x969be7,_0x4c4a94)=>_0x4c4a94['removeClass'](_0x2b6ce4(_0x969be7['classes']),_0x172048));},{'priority':'highest'}),_0x52425e['descriptionFactory']['registerDescriptionCallback'](_0x2fd37e=>{if('insertion'!=_0x2fd37e['type']&&'deletion'!=_0x2fd37e['type'])return;const _0x87e397=_0x2fd37e['getContainedElement']();if(null!=_0x87e397&&_0x87e397['is']('element','table')){if('insertion'==_0x2fd37e['type']){const _0x17bfe8=_0x2fd37e['getItems']()['filter'](_0x397832=>_0x397832['is']('$textProxy'))['map'](_0x1c326d=>_0x1c326d['data']);if(_0x17bfe8['length'])return{'type':'insertion','content':o(_0x40013d,'*Insert:*\x20%0',o(_0x40013d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x17bfe8['join']('\x20')+'\x22'))};}if('deletion'==_0x2fd37e['type']){const _0xf5f1f=_0x2fd37e['getItems']()['filter'](_0x48d56f=>_0x48d56f['is']('$textProxy'))['map'](_0x394a9d=>_0x394a9d['data']);if(_0xf5f1f['length'])return{'type':'deletion','content':o(_0x40013d,'*Remove:*\x20%0',o(_0x40013d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf5f1f['join']('\x20')+'\x22'))};}}}),_0x52425e['descriptionFactory']['registerDescriptionCallback'](_0x5e356f=>{if('tableRow'==_0x5e356f['subType']){const _0x46cd7c=_0x5e356f['getItems']()['filter'](_0x54f0b6=>_0x54f0b6['is']('$textProxy'))['map'](_0x204af3=>_0x204af3['data']),_0x39ea79=this['_getSuggestionCoords'](_0x5e356f),_0x515b87=_0x39ea79['maxRow']-_0x39ea79['minRow']+0x1;if('insertion'==_0x5e356f['type'])return _0x46cd7c['length']?{'type':'insertion','content':o(_0x40013d,'*Insert:*\x20%0',o(_0x40013d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x515b87,'\x22'+_0x46cd7c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x40013d,'*Insert:*\x20%0',o(_0x40013d,'ELEMENT_TABLE_ROW',_0x515b87))};if('deletion'==_0x5e356f['type'])return _0x46cd7c['length']?{'type':'deletion','content':o(_0x40013d,'*Remove:*\x20%0',o(_0x40013d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x515b87,'\x22'+_0x46cd7c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x40013d,'*Remove:*\x20%0',o(_0x40013d,'ELEMENT_TABLE_ROW',_0x515b87))};}if('tableColumn'==_0x5e356f['subType']){const _0x4b3bd2=_0x5e356f['getItems']()['filter'](_0x357a16=>_0x357a16['is']('$textProxy'))['map'](_0x34503c=>_0x34503c['data']),_0x364c34=this['_getSuggestionCoords'](_0x5e356f),_0x1a75c5=_0x364c34['maxColumn']-_0x364c34['minColumn']+0x1;if('insertion'==_0x5e356f['type'])return _0x4b3bd2['length']?{'type':'insertion','content':o(_0x40013d,'*Insert:*\x20%0',o(_0x40013d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a75c5,'\x22'+_0x4b3bd2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x40013d,'*Insert:*\x20%0',o(_0x40013d,'ELEMENT_TABLE_COLUMN',_0x1a75c5))};if('deletion'==_0x5e356f['type'])return _0x4b3bd2['length']?{'type':'deletion','content':o(_0x40013d,'*Remove:*\x20%0',o(_0x40013d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a75c5,'\x22'+_0x4b3bd2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x40013d,'*Remove:*\x20%0',o(_0x40013d,'ELEMENT_TABLE_COLUMN',_0x1a75c5))};}}),_0x52425e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x379c73),_0x52425e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x379c73),_0x52425e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5bb787),_0x52425e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5bb787),_0x52425e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2f14e1),_0x52425e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2f14e1),_0x52425e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x11d400),_0x52425e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x11d400);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2c8bba=this['editor'],_0x5b11c5=_0x2c8bba['model']['document']['selection'];return(_0x518fd8,_0x3621c9)=>{_0x2c8bba['model']['change'](_0x4a33e2=>{const {commandName:_0x5e7af8,commandParams:_0x5e7b27}=_0x3621c9;let _0x16ae10=_0x518fd8[0x0]['end']['nodeBefore'];_0x5e7b27&&_0x5e7b27[0x0]&&!0x1===_0x5e7b27[0x0]['forceValue']&&(_0x16ae10=_0x518fd8[0x0]['start']['nodeAfter']);const _0x4ba288=_0x4a33e2['createRangeIn'](_0x16ae10);if('$graveyard'==_0x4ba288['root']['rootName'])return;const _0x49e49e=Array['from'](_0x5b11c5['getRanges']())['map'](_0x2da9a=>_0x17a41d['fromRange'](_0x2da9a));_0x4a33e2['setSelection'](_0x4ba288),_0x2c8bba['commands']['get'](_0x5e7af8)['refresh'](),_0x5e7b27['push']({'forceDefaultExecution':!0x0}),_0x2c8bba['execute'](_0x5e7af8,..._0x5e7b27);const _0x299873=_0x49e49e['filter'](_0x5b657c=>'$graveyard'!=_0x5b657c['root']['rootName']);_0x299873['length']>0x0&&_0x4a33e2['setSelection'](_0x299873);for(const _0x486df3 of _0x49e49e)_0x486df3['detach']();});};}['_getCoordsForCells'](_0x3d5352){const _0x294f1e=this['editor']['plugins']['get']('TableUtils');let _0x795c0c=Number['MAX_SAFE_INTEGER'],_0x84098e=Number['MIN_SAFE_INTEGER'],_0x23fbe0=Number['MAX_SAFE_INTEGER'],_0x40371b=Number['MIN_SAFE_INTEGER'];for(const _0x2cd476 of _0x3d5352){if('$graveyard'==_0x2cd476['root']['rootName'])continue;const {row:_0x5a174d,column:_0x450166}=_0x294f1e['getCellLocation'](_0x2cd476),_0x565481=_0x2cd476['hasAttribute']('rowspan')?_0x2cd476['getAttribute']('rowspan')-0x1:0x0,_0x5e837d=_0x2cd476['hasAttribute']('colspan')?_0x2cd476['getAttribute']('colspan')-0x1:0x0;_0x795c0c=_0x5a174d<_0x795c0c?_0x5a174d:_0x795c0c,_0x84098e=_0x5a174d+_0x565481>_0x84098e?_0x5a174d+_0x565481:_0x84098e,_0x23fbe0=_0x450166<_0x23fbe0?_0x450166:_0x23fbe0,_0x40371b=_0x450166+_0x5e837d>_0x40371b?_0x450166+_0x5e837d:_0x40371b;}return{'minRow':_0x795c0c,'maxRow':_0x84098e,'minColumn':_0x23fbe0,'maxColumn':_0x40371b};}['_setupColumnsRowsFixing'](){const _0xdfe989=this['editor'],_0x24f7f0=_0xdfe989['plugins']['get']('TrackChangesEditing'),_0x329b2c=_0xdfe989['plugins']['get']('TableUtils');_0xdfe989['model']['document']['on']('change:data',()=>{const _0x22840b=Array['from'](_0xdfe989['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50b5e0,data:_0x3f486f}of _0x22840b){const {group:_0x4efd5b,id:_0x8e3634,subType:_0xabb68c}=_0x24f7f0['_splitMarkerName'](_0x50b5e0);if('suggestion'!=_0x4efd5b)continue;if(null!=_0x3f486f['oldRange'])continue;const _0x48e354=_0x24f7f0['getSuggestion'](_0x8e3634);this['_tablePostFixingSubtypes']['includes'](_0xabb68c)&&this['_tableSuggestions']['add'](_0x48e354);}},{'priority':'low'});const _0x1c491a=(_0x51ba07,_0x190cf4)=>{let _0x450114=!0x1;const _0xb0a2a0=_0x190cf4['createRangeOn'](_0x51ba07),_0x57a0ae=_0x51ba07['findAncestor']('table'),_0x5046a1=_0x329b2c['getCellLocation'](_0x51ba07);for(const _0x19ef7a of this['_tableSuggestions']){const _0x3f72fa=_0x19ef7a['subType'],_0x121e7e=_0x3f72fa['startsWith']('tablePaste'),_0x598545=_0x3f72fa['substr'](_0x121e7e?0xa:0x5),_0xa4d5e=_0x598545['toLowerCase'](),_0x25a4a2=_0xa4d5e['substr'](0x0,0x3)+'span',_0x577e7d='min'+_0x598545,_0x2e47fb='max'+_0x598545;if(!_0x19ef7a['isInContent'])continue;if(_0x57a0ae!=_0x19ef7a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x19ef7a['isIntersectingWithRange'](_0xb0a2a0))continue;const _0x55a644=_0x51ba07['hasAttribute'](_0x25a4a2)?_0x51ba07['getAttribute'](_0x25a4a2)-0x1:0x0,_0x15e578=this['_getSuggestionCoords'](_0x19ef7a),_0x34d96a=_0x15e578[_0x577e7d],_0x10b6f5=_0x15e578[_0x2e47fb];_0x34d96a<=_0x5046a1[_0xa4d5e]&&_0x5046a1[_0xa4d5e]+_0x55a644<=_0x10b6f5&&(_0x19ef7a['addRange'](_0xb0a2a0),_0x450114=!0x0);}return _0x450114;};_0xdfe989['model']['document']['registerPostFixer'](_0x2d6254=>{let _0x38ccdd=!0x1;for(const _0x4ae25c of _0xdfe989['model']['document']['differ']['getChanges']())if('insert'==_0x4ae25c['type']){if('tableRow'==_0x4ae25c['name']){for(const _0x209642 of _0x4ae25c['position']['nodeAfter']['getChildren']())_0x38ccdd=_0x38ccdd||_0x1c491a(_0x209642,_0x2d6254);}else'tableCell'==_0x4ae25c['name']&&(_0x38ccdd=_0x38ccdd||_0x1c491a(_0x4ae25c['position']['nodeAfter'],_0x2d6254));}return _0x38ccdd;});}['_getSuggestionCoords'](_0x5c9ee0){return this['_getCoordsForCells'](_0x5c9ee0['getRanges']()['map'](_0x1ef657=>_0x1ef657['start']['nodeAfter']));}}function Ee(_0x1a59f0){return Array['from'](new Set(_0x1a59f0)['values']());}class St extends _0x56c567{static get['requires'](){return[jt];}['afterInit'](){const _0x58ee08=this['editor'],_0x1edca8=_0x58ee08['model']['document']['selection'],_0x22e636=_0x58ee08['locale'];if(!_0x58ee08['plugins']['has']('TableEditing'))return;const _0x53dbb8=_0x58ee08['plugins']['get']('TrackChangesEditing'),_0x563d11=_0x58ee08['plugins']['get']('TableUtils'),_0x3d98e9=_0x58ee08['plugins']['get'](jt);_0x3d98e9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x53dbb8['enableCommand']('mergeTableCells',()=>{const _0x5a6b2b=_0x563d11['getSelectionAffectedTableCells'](_0x58ee08['model']['document']['selection']);_0x58ee08['model']['change'](()=>{_0x53dbb8['markMultiRangeBlockFormat'](_0x5a6b2b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x58ee08['commands']['get']('mergeTableCells')['on']('execute',(_0x285b5b,_0x4fac8b)=>{_0x58ee08['commands']['get']('trackChanges')['value']&&(_0x4fac8b['length']>0x0&&_0x4fac8b[_0x4fac8b['length']-0x1]&&_0x4fac8b[_0x4fac8b['length']-0x1]['forceDefaultExecution']||_0x53dbb8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x285b5b['stop']());},{'priority':'highest'});for(const _0x66c7e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x284cff=_0x58ee08['commands']['get'](_0x66c7e0);_0x53dbb8['enableCommand'](_0x66c7e0,()=>{const _0x29ff0f=_0x58ee08['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x413b34=>_0x413b34['is']('element','tableCell')),_0x545b49=_0x284cff['value'];_0x58ee08['model']['change'](()=>{_0x53dbb8['markMultiRangeBlockFormat']([_0x29ff0f,_0x545b49],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x535350 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x217a63=_0x58ee08['commands']['get'](_0x535350);_0x53dbb8['enableCommand'](_0x535350,()=>{const _0x29fe69=_0x563d11['getSelectionAffectedTableCells'](_0x58ee08['model']['document']['selection'])[0x0],_0x3129cf=_0x29fe69['findAncestor']('table'),{column:_0x420b23,row:_0x1c7398}=_0x563d11['getCellLocation'](_0x29fe69);let _0x43a36d=[];if('horizontally'==_0x217a63['direction']){const _0x3b02a3=_0x563d11['createTableWalker'](_0x3129cf,{'startRow':_0x1c7398,'endRow':_0x1c7398,'includeAllSlots':!0x0});_0x43a36d=Array['from'](_0x3b02a3)['map'](_0xb102c5=>_0xb102c5['cell']);}else{const _0x1d0185=_0x563d11['createTableWalker'](_0x3129cf,{'column':_0x420b23,'includeAllSlots':!0x0});_0x43a36d=Array['from'](_0x1d0185)['map'](_0x30a77e=>_0x30a77e['cell']);}_0x58ee08['model']['change'](_0x451942=>{_0x53dbb8['markBlockFormat'](_0x451942['createRangeOn'](_0x29fe69),{'commandName':_0x535350,'commandParams':[]},_0x43a36d,_0x535350);});});}_0x53dbb8['descriptionFactory']['registerDescriptionCallback'](_0x261c3a=>{if('formatBlock'!=_0x261c3a['type']&&'formatInline'!=_0x261c3a['type'])return;const {data:_0x589166}=_0x261c3a;return _0x589166&&'mergeTableCells'==_0x589166['commandName']?{'type':'format','content':o(_0x22e636,'*Merge\x20cells*')}:void 0x0;}),_0x53dbb8['descriptionFactory']['registerDescriptionCallback'](_0x2f001f=>{if('formatBlock'!=_0x2f001f['type']&&'formatInline'!=_0x2f001f['type'])return;const {data:_0x225158}=_0x2f001f;return _0x225158?'splitTableCellVertically'==_0x225158['commandName']?{'type':'format','content':o(_0x22e636,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x225158['commandName']?{'type':'format','content':o(_0x22e636,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2c4e4e=_0x3d98e9['_acceptFormatSuggestionCallbackFactory']();for(const _0x172cba of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x53dbb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x172cba,'accept',_0x2c4e4e);for(const _0xedc2fb of['splitTableCellVertically','splitTableCellHorizontally'])_0x53dbb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xedc2fb,'accept',_0x2c4e4e);_0x53dbb8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x46d8f0=>{_0x58ee08['model']['change'](_0x526b0d=>{const _0x321708=Array['from'](_0x1edca8['getRanges']())['map'](_0x1e551e=>_0x17a41d['fromRange'](_0x1e551e));_0x526b0d['setSelection'](_0x46d8f0),_0x58ee08['commands']['get']('mergeTableCells')['refresh'](),_0x58ee08['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x74b608=_0x321708['filter'](_0x3a3375=>'$graveyard'!=_0x3a3375['root']['rootName']);_0x74b608['length']>0x0&&_0x526b0d['setSelection'](_0x74b608);for(const _0x177ef7 of _0x321708)_0x177ef7['detach']();});});for(const _0x4040c8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x14002e=_0x58ee08['commands']['get'](_0x4040c8);_0x14002e['on']('set:isEnabled',(_0x28939e,_0x1ab2f9,_0x134b0b)=>{if(_0x134b0b){const _0x447b7d=_0x58ee08['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50cedf=>_0x50cedf['is']('element','tableCell'));this['_areMergableCells'](_0x14002e['value'],_0x447b7d)||(_0x28939e['return']=!0x1,_0x28939e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3f4ca8=this['editor']['commands']['get']('mergeTableCells'),_0xe0a165=this['editor']['plugins']['get']('TableUtils');if(!_0x3f4ca8['isEnabled'])return!0x1;const _0x4f41e5=_0xe0a165['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4f0bc0 of _0x4f41e5)for(const _0x1d436c of _0x4f41e5)if(_0x4f0bc0!=_0x1d436c&&!this['_areMergableCells'](_0x4f0bc0,_0x1d436c))return!0x1;return!0x0;}['_areMergableCells'](_0x325b17,_0x320cb0){const _0x3da06c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x431bef=this['editor']['model']['createRangeOn'](_0x325b17),_0x122f9c=this['editor']['model']['createRangeOn'](_0x320cb0),_0xa879d9=new Set(),_0x16b14a=new Set();for(const _0x19bfec of _0x3da06c['getSuggestions']())if(('insertion'==_0x19bfec['type']||'deletion'==_0x19bfec['type']||'mergeTableCells'==_0x19bfec['subType'])&&_0x19bfec['isInContent']){for(const _0x54c96c of _0x19bfec['getRanges']())_0x54c96c['containsRange'](_0x431bef,!0x0)&&_0xa879d9['add'](_0x19bfec['type']+':'+_0x19bfec['author']['id']),_0x54c96c['containsRange'](_0x122f9c,!0x0)&&_0x16b14a['add'](_0x19bfec['type']+':'+_0x19bfec['author']['id']);}if(_0xa879d9['size']!=_0x16b14a['size'])return!0x1;for(const _0x9eb360 of _0xa879d9)if(!_0x16b14a['has'](_0x9eb360))return!0x1;return!0x0;}}class At extends _0x56c567{static get['requires'](){return[jt];}['afterInit'](){const _0x4ec470=this['editor'];if(!_0x4ec470['plugins']['has']('TableEditing'))return;const _0x4bd203=_0x4ec470['locale'],_0x4d2f5c=_0x4ec470['plugins']['get']('TrackChangesEditing');_0x4d2f5c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4d2f5c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4d2f5c['registerBlockAttribute']('headingRows'),_0x4d2f5c['registerBlockAttribute']('headingColumns'),_0x4d2f5c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4bd203,'FORMAT_HEADER_ROW')),_0x4d2f5c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4bd203,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x112d26=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ebb2f=this['editor']['plugins']['get']('TableUtils'),_0x1352a0=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1f9349({showActiveMarker:_0x3a61d7=!0x0,setDataAttribute:_0x3acfc7=!0x0}={}){return(_0x383c97,_0x39d12e,_0x41000d)=>{const {type:_0x5694c5,id:_0x239432}=_0x112d26['_splitMarkerName'](_0x39d12e['markerName']),_0x34ac77=_0x112d26['getSuggestion'](_0x239432),_0x4aa93e=_0x34ac77['data'];if('formatBlock'!=_0x34ac77['type']||!_0x4aa93e||'setTableColumnHeader'!=_0x4aa93e['commandName'])return;if(_0x39d12e['item'])return void _0x383c97['stop']();if(!_0x41000d['consumable']['consume'](_0x39d12e['markerRange'],_0x383c97['name']))return;const _0x474e70=_0x39d12e['markerRange']['start']['nodeAfter'],_0x20f92f=_0x39d12e['markerRange']['end']['nodeBefore'],_0x218831=_0x474e70['parent']['parent'],{column:_0x28f91d}=_0x3ebb2f['getCellLocation'](_0x474e70),{column:_0x4812ac}=_0x3ebb2f['getCellLocation'](_0x20f92f);for(let _0x15f75e=_0x28f91d;_0x15f75e<=_0x4812ac;_0x15f75e++){const _0x496774=_0x3ebb2f['createTableWalker'](_0x218831,{'column':_0x15f75e,'includeAllSlots':!0x1});for(const _0x10045e of _0x496774){const _0x227d90=_0x10045e['cell'],_0x59f002=_0x41000d['mapper']['toViewElement'](_0x227d90);_0x41000d['writer']['addClass']('ck-suggestion-marker-'+_0x5694c5,_0x59f002),_0x3acfc7&&_0x41000d['writer']['setAttribute']('data-suggestion',_0x239432,_0x59f002),_0x41000d['mapper']['bindElementToMarker'](_0x59f002,_0x39d12e['markerName']),_0x3a61d7&&(_0x112d26['activeMarkers']['includes'](_0x39d12e['markerName'])?_0x41000d['writer']['addClass']('ck-suggestion-marker--active',_0x59f002):_0x41000d['writer']['removeClass']('ck-suggestion-marker--active',_0x59f002));}}};}_0x112d26['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1352a0),_0x112d26['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1352a0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1f9349(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29bfab,_0x55a5b6,_0x1b9286)=>{_0x1b9286['options']['showSuggestionHighlights']&&_0x1f9349({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x29bfab,_0x55a5b6,_0x1b9286);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x349be2,_0x2fba87,_0xefca9a)=>{const {type:_0x2ab87f,id:_0x14512d}=_0x112d26['_splitMarkerName'](_0x2fba87['markerName']),_0x4b9d2a=_0x112d26['getSuggestion'](_0x14512d),_0x5b3d8f=_0x4b9d2a['data'];if('formatBlock'!=_0x4b9d2a['type']||!_0x5b3d8f||'setTableColumnHeader'!=_0x5b3d8f['commandName'])return;const _0x129783=_0xefca9a['mapper']['markerNameToElements'](_0x2fba87['markerName']);if(_0x129783){for(const _0x8b15b2 of _0x129783)_0xefca9a['writer']['removeClass']('ck-suggestion-marker-'+_0x2ab87f,_0x8b15b2),_0xefca9a['writer']['removeClass']('ck-suggestion-marker--active',_0x8b15b2),_0xefca9a['writer']['removeAttribute']('data-suggestion',_0x8b15b2),_0xefca9a['mapper']['unbindElementFromMarkerName'](_0x8b15b2,_0x2fba87['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e45af=this['editor'],_0x26e5ea=_0x2e45af['locale'];function _0xab36b6(_0x56286b){return{'type':'format','content':o(_0x26e5ea,'*Format:*\x20%0',_0x56286b)};}_0x2e45af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35ff7f=>{if('formatBlock'!=_0x35ff7f['type'])return;const {data:_0x40fe6}=_0x35ff7f;if(_0x40fe6){if('setTableRowHeader'==_0x40fe6['commandName']){const _0x438db4=_0x40fe6['commandParams'][0x0]['forceValue'];return _0xab36b6(o(_0x26e5ea,_0x438db4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x40fe6['commandName']){const _0x3390a8=_0x40fe6['commandParams'][0x0]['forceValue'];return _0xab36b6(o(_0x26e5ea,_0x3390a8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x50eb82=>[_0x50eb82,null]));class It extends _0x56c567{static get['requires'](){return[jt];}['afterInit'](){const _0x3003ca=this['editor'];if(!_0x3003ca['plugins']['has']('TableClipboard'))return;const _0x36a35a=_0x3003ca['plugins']['get']('TrackChangesEditing'),_0x5f1c1b=_0x3003ca['plugins']['get']('TableUtils'),_0x2ef331=_0x3003ca['plugins']['get'](jt),_0x3f595b=_0x3003ca['plugins']['get']('TableClipboard');_0x2ef331['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3003ca['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3003ca['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x10ea8f=null;_0x3003ca['model']['on']('insertContent',(_0x9b4f1e,_0x2ee13a)=>{const [_0x3a3245,_0x1edf8b]=_0x2ee13a,_0x3549d9=_0x2ee13a[_0x2ee13a['length']-0x1];_0x3549d9&&_0x3549d9['forceDefaultExecution']||_0x36a35a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4804de,_0x53d8d4,_0x447c2a,_0x47c905,_0x5089a3){if(_0x53d8d4&&!_0x53d8d4['is']('documentSelection'))return!0x1;const _0x38d9a0=_0x5089a3['getTableIfOnlyTableInContent'](_0x4804de,_0x447c2a);if(!_0x38d9a0||!he(_0x38d9a0,void 0x0,_0x47c905))return!0x1;const _0x1dccf7=_0x47c905['getSelectionAffectedTableCells'](_0x447c2a['document']['selection']);if(!_0x1dccf7['length'])return!0x1;const _0x50caae=_0x1dccf7[0x0]['findAncestor']('table'),_0x16e66a=_0x47c905['getRowIndexes'](_0x1dccf7),_0x2d4167=_0x47c905['getColumnIndexes'](_0x1dccf7),_0x237b6d={'startRow':_0x16e66a['first'],'endRow':_0x16e66a['last'],'startColumn':_0x2d4167['first'],'endColumn':_0x2d4167['last']};return 0x1==_0x1dccf7['length']&&(_0x237b6d['endRow']+=_0x47c905['getRows'](_0x38d9a0)-0x1,_0x237b6d['endColumn']+=_0x47c905['getColumns'](_0x38d9a0)-0x1),he(_0x50caae,_0x237b6d,_0x47c905);}(_0x3a3245,_0x1edf8b,_0x3003ca['model'],_0x5f1c1b,_0x3f595b)&&(_0x9b4f1e['stop'](),_0x10ea8f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3003ca['model']['change'](()=>{_0x3003ca['model']['insertContent'](_0x2ee13a[0x0],_0x2ee13a[0x1],_0x2ee13a[0x2],{'forceDefaultExecution':!0x0});const _0x3cd6c7=_0x170805(),{rowInsertionRanges:_0x430362,columnInsertionRanges:_0x4c47a0,insertionRanges:_0x5d0e6b,deletionRanges:_0x161323,cells:_0x8019ef}=_0x10ea8f;_0x430362['length']&&_0x36a35a['markMultiRangeInsertion'](_0x430362,'tablePasteRow',{'tablePasteChainId':_0x3cd6c7}),_0x4c47a0['length']&&_0x36a35a['markMultiRangeInsertion'](_0x4c47a0,'tablePasteColumn',{'tablePasteChainId':_0x3cd6c7}),_0x5d0e6b['length']&&(_0x36a35a['markMultiRangeInsertion'](_0x5d0e6b,'tablePaste',{'tablePasteChainId':_0x3cd6c7,'skipNestingCheck':!0x0}),_0x5d0e6b['forEach'](_0x1df6ff=>_0x1df6ff['detach']?.())),_0x161323['length']&&(_0x36a35a['markMultiRangeDeletion'](_0x161323,'tablePaste',{'tablePasteChainId':_0x3cd6c7,'skipNestingCheck':!0x0}),_0x161323['forEach'](_0x5a2416=>_0x5a2416['detach']?.()));const _0xcbb717=_0x36a35a['markMultiRangeBlockFormat'](_0x8019ef['map'](({element:_0x242fc1})=>_0x242fc1),{'formatGroupId':_0x170805()},[],'tablePasteCell',{'tablePasteChainId':_0x3cd6c7});if(_0xcbb717){const _0x4ed81f=_0xcbb717['getMarkers'](),_0x19643b=[];for(const {element:_0x187d42,attributes:_0x18da78}of _0x8019ef){if(!_0x18da78)continue;const _0x32189b=_0x3003ca['model']['createRangeOn'](_0x187d42),_0x4de3ce=_0x4ed81f['find'](_0x3f14a1=>_0x3f14a1['getRange']()['isEqual'](_0x32189b));_0x4de3ce&&_0x19643b['push']([_0x4de3ce['name'],_0x18da78]);}_0x19643b['length']&&_0xcbb717['setAttribute']('markerAttributes',Object['fromEntries'](_0x19643b));}_0x10ea8f=null;}));},{'priority':_0x3c332a['high']+0xa}),_0x3003ca['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x737e21,_0x49187e)=>{const [_0x1fc56b,_0x33aea0,,_0x3102ce]=_0x49187e;if(!_0x10ea8f)return;_0x737e21['stop']();const _0x538292=_0x1fc56b['cell'],_0x43d7f0=_0x33aea0,_0x248e2f=Pe(_0x538292),_0x375d5b=Pe(_0x43d7f0);_0x737e21['return']=_0x538292;let _0x52a478=null,_0xe75af4=null;if(_0x375d5b||_0x248e2f){if(_0x248e2f&&!_0x375d5b){_0x3102ce['remove'](_0x538292['getChild'](0x0));for(const _0x29f62a of Array['from'](_0x43d7f0['getChildren']()))_0x3102ce['insert'](_0x29f62a,_0x538292,'end');const _0x1dbe5b=_0x10ea8f['rowInsertionIndexes']['includes'](_0x1fc56b['row']),_0x13da36=_0x10ea8f['columnInsertionIndexes']['includes'](_0x1fc56b['column']);_0x1dbe5b||_0x13da36||(_0x52a478=_0x17a41d['fromRange'](_0x3102ce['createRangeIn'](_0x538292)));}else _0x375d5b&&!_0x248e2f&&(_0xe75af4=_0x3102ce['createRangeIn'](_0x538292));}else{const _0x180d11=_0x3102ce['createElement']('tableCellSuggestion'),_0x19d7b0=_0x3102ce['createElement']('tableCellSuggestion');_0x3102ce['wrap'](_0x3102ce['createRangeIn'](_0x538292),_0x19d7b0),_0x3102ce['insert'](_0x180d11,_0x538292,0x0);for(const _0x45922a of Array['from'](_0x43d7f0['getChildren']()))_0x3102ce['insert'](_0x45922a,_0x180d11,'end');_0x52a478=_0x17a41d['fromRange'](_0x3102ce['createRangeOn'](_0x180d11)),_0xe75af4=_0x17a41d['fromRange'](_0x3102ce['createRangeOn'](_0x19d7b0));}const _0xe659bf=Array['from'](_0x43d7f0['getAttributes']())['filter'](([_0x453668])=>ge['includes'](_0x453668));_0x10ea8f['cells']['push']({'element':_0x538292,'attributes':_0xe659bf['length']?Object['fromEntries'](_0xe659bf):null}),_0x52a478&&_0x10ea8f['insertionRanges']['push'](_0x52a478),_0xe75af4&&_0x10ea8f['deletionRanges']['push'](_0xe75af4);},{'priority':'high'}),_0x5f1c1b['on']('insertColumns',(_0x1be1ea,_0x442fa2)=>{const [_0x31262f,_0x489e72={}]=_0x442fa2;if(!_0x10ea8f)return;const _0x5e92cd=_0x489e72['at']||0x0,_0xae1370=_0x489e72['columns']||0x1;_0x10ea8f['columnInsertionIndexes']=new Array(_0xae1370)['fill'](_0x5e92cd)['map']((_0x597f0d,_0x2d1aef)=>_0x597f0d+_0x2d1aef);for(const {cell:_0x3d3f6b}of _0x5f1c1b['createTableWalker'](_0x31262f,{'startColumn':_0x5e92cd,'endColumn':_0x5e92cd+_0xae1370-0x1}))_0x10ea8f['columnInsertionRanges']['push'](_0x3003ca['model']['createRangeOn'](_0x3d3f6b));},{'priority':'low'}),_0x5f1c1b['on']('insertRows',(_0x390719,_0x49126f)=>{const [_0x43cc0e,_0x123b7d={}]=_0x49126f;if(!_0x10ea8f)return;const _0x363581=_0x123b7d['at']||0x0,_0x2c12ba=_0x123b7d['rows']||0x1;_0x10ea8f['rowInsertionIndexes']=new Array(_0x2c12ba)['fill'](_0x363581)['map']((_0x281143,_0x5b0c31)=>_0x281143+_0x5b0c31);for(const {cell:_0x26b6ca}of _0x5f1c1b['createTableWalker'](_0x43cc0e,{'startRow':_0x363581,'endRow':_0x363581+_0x2c12ba-0x1}))_0x10ea8f['rowInsertionRanges']['push'](_0x3003ca['model']['createRangeOn'](_0x26b6ca));},{'priority':'low'}),_0x36a35a['descriptionFactory']['registerDescriptionCallback'](_0x2d1e1d=>{if(_0x2d1e1d['subType']&&_0x2d1e1d['subType']['startsWith']('tablePaste'))return _0x2d1e1d['previous']?{}:{'type':'insertion','content':o(_0x3003ca['locale'],'*Replace\x20table\x20cells*')};});const _0x2e9a5e=()=>!0x1;for(const _0x185e0d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x36a35a['_suggestionFactory']['registerCustomCallback']('insertion',_0x185e0d,'join',_0x2e9a5e),_0x36a35a['_suggestionFactory']['registerCustomCallback']('deletion',_0x185e0d,'join',_0x2e9a5e),_0x36a35a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x185e0d,'join',_0x2e9a5e);_0x36a35a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2e9a5e),_0x36a35a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xbdc8a,_0x217eed,_0x4bc8d1)=>{const _0x51e6bf=_0xbdc8a['map'](_0x2303c1=>_0x2303c1['getContainedElement']())['filter'](_0x562aa2=>_0x562aa2),_0x27cef9=new Map(_0x51e6bf['map'](_0x38183c=>[_0x38183c,null]));if(_0x10ea8f){for(const {element:_0x256613,attributes:_0x13ada4}of _0x10ea8f['cells'])_0x13ada4&&_0x27cef9['set'](_0x256613,_0x13ada4);}else{if(_0x4bc8d1&&_0x4bc8d1['markerAttributes'])for(const [_0xacdd4f,_0x4de350]of Object['entries'](_0x4bc8d1['markerAttributes'])){const _0x488062=_0x3003ca['model']['markers']['get'](_0xacdd4f),_0x2fb2a8=_0x488062?_0x488062['getRange']()['getContainedElement']():null;_0x2fb2a8&&_0x27cef9['set'](_0x2fb2a8,_0x4de350);}}_0x3003ca['model']['change'](_0x5918f0=>{for(const [_0x3e2258,_0x54a277]of _0x27cef9)_0x5918f0['setAttributes']({...Ce,..._0x54a277},_0x3e2258);});});const _0x2479d1=(_0x4b48b0,_0x39e9a1)=>{_0x36a35a['_suggestionFactory']['registerCustomCallback'](_0x4b48b0,'tablePaste',_0x39e9a1,(_0x264e36,_0x4d1322,_0x6fb76e)=>{_0x3003ca['model']['change'](_0x2afc33=>{const _0x2fa19f=[];for(const _0x1f55b9 of _0x264e36){const _0x5f3d33=_0x1f55b9['start']['nodeAfter'];_0x5f3d33['is']('element','tableCellSuggestion')&&_0x2fa19f['push'](_0x5f3d33);}_0x36a35a['_suggestionFactory']['getSuggestionCallback'](_0x4b48b0,null,_0x39e9a1)(_0x264e36,_0x4d1322,_0x6fb76e);for(const _0x88f994 of _0x2fa19f)'$graveyard'!=_0x88f994['root']['rootName']&&_0x2afc33['unwrap'](_0x88f994);});});};_0x2479d1('insertion','accept'),_0x2479d1('insertion','discard'),_0x2479d1('deletion','accept'),_0x2479d1('deletion','discard'),_0x36a35a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5d0be2=>{const _0x19e17f=_0x5d0be2['map'](_0x5a166a=>_0x5a166a['getContainedElement']()),_0x3b307d=_0x19e17f[0x0]['findAncestor']('table'),{minRow:_0x50e66e,maxRow:_0x529e69}=_0x2ef331['_getCoordsForCells'](_0x19e17f);_0x5f1c1b['removeRows'](_0x3b307d,{'at':_0x50e66e,'rows':_0x529e69-_0x50e66e+0x1});}),_0x36a35a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x435d29=>{const _0x2869d7=_0x435d29['map'](_0x52f899=>_0x52f899['getContainedElement']()),_0x450503=_0x2869d7[0x0]['findAncestor']('table'),{minColumn:_0x5bd262,maxColumn:_0x2b9381}=_0x2ef331['_getCoordsForCells'](_0x2869d7);_0x5f1c1b['removeColumns'](_0x450503,{'at':_0x5bd262,'columns':_0x2b9381-_0x5bd262+0x1});});const _0x28b86e=(_0xd445b2,_0x32c524)=>{if(!_0x32c524['subType']||!_0x32c524['subType']['startsWith']('tablePaste'))return;const _0x5ac240=_0x32c524['attributes']['tablePasteChainId'],_0x5c2bf6=_0x36a35a['getSuggestions']()['filter'](_0x3f72dd=>_0x3f72dd['isInContent']&&_0x3f72dd['attributes']&&_0x3f72dd['attributes']['tablePasteChainId']==_0x5ac240);_0x5c2bf6['length']&&_0x32c524['getAllAdjacentSuggestions']()['length']!=_0x5c2bf6['length']&&_0x5c2bf6['reduce']((_0x52f9c2,_0x243fc0)=>(_0x52f9c2['next']=_0x243fc0,_0x243fc0['previous']=_0x52f9c2,_0x243fc0));};function _0x341d56(_0x26f5a2,_0x359bd5=!0x0){const {id:_0x2a7878}=_0x36a35a['_splitMarkerName'](_0x26f5a2['markerName']),_0x48a460=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3bd8d2=_0x36a35a['activeMarkers']['includes'](_0x26f5a2['markerName']);return _0x3bd8d2&&_0x48a460['push']('ck-suggestion-marker--active'),{'classes':_0x48a460,'attributes':{'data-suggestion':_0x2a7878},'priority':_0x3bd8d2&&_0x359bd5?0xbc2:0xbb8};}_0x36a35a['on']('suggestionLoaded',_0x28b86e,{'priority':'high'}),_0x36a35a['on']('suggestionUnloaded',_0x28b86e,{'priority':'high'}),_0x3003ca['model']['document']['registerPostFixer'](()=>{let _0x12f97e=!0x1;const _0x513676=Array['from'](_0x3003ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b0cd9,data:_0x45a7e}of _0x513676){const {group:_0x2d33a9,type:_0x50e876,id:_0x24ed79}=_0x36a35a['_splitMarkerName'](_0x2b0cd9);if('suggestion'!=_0x2d33a9||'deletion'!=_0x50e876||_0x45a7e['oldRange'])continue;if(!_0x36a35a['hasSuggestion'](_0x24ed79))continue;const _0x5f23ee=_0x36a35a['getSuggestion'](_0x24ed79)['getRanges'](),_0x13ead3=_0x3003ca['plugins']['get']('Users')['me'];for(const _0x5e3cb3 of _0x36a35a['getSuggestions']()){if(!_0x5e3cb3['isInContent']||_0x5e3cb3['author']!=_0x13ead3)continue;if('formatBlock'!=_0x5e3cb3['type']||'tablePasteCell'!=_0x5e3cb3['subType'])continue;if(_0x5e3cb3['getRanges']()['every'](_0x3eb442=>_0x5f23ee['some'](_0x49634f=>_0x49634f['containsRange'](_0x3eb442,!0x0)))){for(const _0x588b2a of _0x5e3cb3['getAllAdjacentSuggestions']())_0x588b2a['isInContent']&&(_0x588b2a['discard'](),_0x12f97e=!0x0);}}}return _0x12f97e;}),_0x3003ca['model']['document']['registerPostFixer'](_0x487569=>{const _0x155283=_0x3003ca['commands']['get']('redo');if(!_0x155283||!_0x155283['_createdBatches']['has'](_0x487569['batch']))return!0x1;let _0x44d553=!0x1;const _0x32f579=_0x3003ca['plugins']['get']('Users')['me'],_0x402b1d=_0x3003ca['model']['document']['differ']['getChanges'](),_0x3344b3=Array['from'](_0x3003ca['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x39b677,data:_0x34b5ef})=>{const {group:_0x2c3c50,subType:_0x1d7255,authorId:_0x24f9c9}=_0x36a35a['_splitMarkerName'](_0x39b677);return'suggestion'==_0x2c3c50&&'tablePaste'==_0x1d7255&&_0x24f9c9==_0x32f579['id']&&!_0x34b5ef['oldRange'];});for(const _0x337eb1 of _0x402b1d){if('insert'!=_0x337eb1['type']||'tableCellSuggestion'!=_0x337eb1['name']||0x1!=_0x337eb1['length'])continue;const _0x5be043=_0x487569['createRange'](_0x337eb1['position'],_0x337eb1['position']['getShiftedBy'](0x1));if(!_0x3344b3['find'](({data:_0x2d6fca})=>_0x2d6fca['newRange']['isEqual'](_0x5be043))){for(const {name:_0x1b8741,data:_0x27ba41}of _0x3344b3)if(_0x5be043['containsRange'](_0x27ba41['newRange'])){_0x487569['updateMarker'](_0x1b8741,{'range':_0x5be043}),_0x44d553=!0x0;break;}}}return _0x44d553;}),_0x3003ca['model']['document']['registerPostFixer'](_0x55021b=>{let _0x58e886=!0x1;const _0xf1819a=_0x3003ca['plugins']['get']('Users')['me'],_0x3de096=_0x36a35a['getSuggestions']()['filter'](_0x5b0bcd=>_0x5b0bcd['isInContent']&&_0x5b0bcd['author']==_0xf1819a),_0x58ea9a=new Set(),_0xaf4b9e=new Set();for(const _0x464625 of _0x3de096)if('tablePaste'==_0x464625['subType'])for(const _0x45a262 of _0x464625['getMarkers']()){const _0x4699c8=_0x45a262['getRange']()['getContainedElement']();if(_0x4699c8){if(_0x4699c8['is']('element','tableCellSuggestion')&&Pe(_0x4699c8)){_0x464625['removeMarker'](_0x45a262['name']),_0x58ea9a['add'](_0x4699c8),_0x58e886=!0x0;const _0x37b10a=_0x4699c8['nextSibling'],_0x239467=_0x4699c8['previousSibling'],_0x44acc5=_0x37b10a&&_0x37b10a['is']('element','tableCellSuggestion'),_0x49b935=_0x239467&&_0x239467['is']('element','tableCellSuggestion');_0x44acc5&&!_0x58ea9a['has'](_0x37b10a)&&_0xaf4b9e['add'](_0x37b10a),_0x49b935&&!_0x58ea9a['has'](_0x239467)&&_0xaf4b9e['add'](_0x239467);}else _0x4699c8['is']('element','paragraph')&&_0x4699c8['isEmpty']&&(_0x464625['removeMarker'](_0x45a262['name']),_0x58e886=!0x0);}}else{if('tablePasteCell'==_0x464625['subType']){if(!_0x464625['attributes']||!_0x464625['attributes']['tablePasteChainId'])continue;const _0x3a889d=_0x464625['attributes']['markerAttributes'];if(_0x3a889d&&Object['keys'](_0x3a889d)['length'])continue;const _0x47fe01=_0x464625['attributes']['tablePasteChainId'];let _0x221f00=!0x0,_0x483434=!0x0;for(const _0xeb0e56 of _0x3de096)if(_0xeb0e56['subType']&&_0xeb0e56['subType']['startsWith']('tablePaste')){if(!_0xeb0e56['attributes']['tablePasteChainId']){_0x483434=!0x1;break;}if(_0xeb0e56['id']!=_0x464625['id']&&_0xeb0e56['attributes']['tablePasteChainId']==_0x47fe01){_0x221f00=!0x1;break;}}_0x483434&&_0x221f00&&(_0x464625['removeMarkers'](),_0x58e886=!0x0);}}for(const _0x143150 of _0x58ea9a)_0x55021b['remove'](_0x143150);for(const _0x4f85af of _0xaf4b9e)_0x55021b['unwrap'](_0x4f85af);return _0x58e886;}),_0x3003ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x15c0a8,_0x2cdbcd)=>_0x341d56(_0x15c0a8),'converterPriority':'high'}),_0x3003ca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2ee96b,_0x220865)=>_0x220865['options']['showSuggestionHighlights']?_0x341d56(_0x2ee96b,!0x1):null,'converterPriority':'high'});const _0x22a451=_0x3003ca['editing']['view'];this['listenTo'](_0x22a451['document'],'clipboardOutput',(_0x9516d,_0x5e6736)=>{const _0x46bffe=[];for(const _0x2ff2c5 of _0x22a451['createRangeIn'](_0x5e6736['content'])['getItems']())_0x2ff2c5['is']('element','suggestion-td')&&_0x46bffe['push'](_0x2ff2c5);_0x22a451['change'](_0x434452=>{for(const _0x1c1004 of _0x46bffe)_0x434452['move'](_0x434452['createRangeIn'](_0x1c1004),_0x434452['createPositionBefore'](_0x1c1004)),_0x434452['remove'](_0x1c1004);});});}}function Pe(_0x42ccab){if(_0x42ccab['isEmpty'])return!0x0;const _0x563edf=_0x42ccab['getChild'](0x0);return _0x563edf['is']('element','paragraph')&&_0x563edf['isEmpty'];}function he(_0x1e3cb4,_0x55ae32={},_0x557920){for(const {isAnchor:_0x235908,cellHeight:_0x2a38c1,cellWidth:_0x173ca6}of _0x557920['createTableWalker'](_0x1e3cb4,{'includeAllSlots':!0x0,..._0x55ae32}))if(!_0x235908||0x1!=_0x2a38c1||0x1!=_0x173ca6)return!0x1;return!0x0;}class vt extends _0x56c567{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3cdd17=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cdd17['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3cdd17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3cdd17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3cdd17['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x460907,_0x1c984c){const _0x49ab29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4884=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2bbad2=_0x1c984c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1b87cc=_0x4884['getColumnGroupElement'](_0x2bbad2);let _0x23af97=_0x1b87cc?_0x4884['getTableColumnsWidths'](_0x1b87cc):null,_0x2bf01e=_0x2bbad2['getAttribute']('tableWidth')||null;const _0x4531ab=_0x1c984c['tableWidth']||_0x2bf01e,_0x4efac5=_0x1c984c['columnWidths']||_0x23af97,_0x557d83=this['editor']['plugins']['get']('Users')['me'];for(const _0x23aaf6 of _0x49ab29['getSuggestions']()){const _0x45f221=_0x23aaf6['getContainedElement']();if('resizeTable'===_0x23aaf6['subType']&&_0x45f221===_0x2bbad2){_0x23aaf6['author']!==_0x557d83&&_0x23aaf6['discard']();const _0x559246=_0x23aaf6['data']['commandParams'];_0x2bf01e=_0x559246[0x0]['tableWidth'],_0x23af97=_0x559246[0x0]['columnWidths'];break;}}_0x460907({'table':_0x2bbad2,'tableWidth':_0x4531ab,'columnWidths':_0x4efac5}),_0x49ab29['markBlockFormat'](_0x2bbad2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2bf01e,'columnWidths':_0x23af97}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x594a71){if('formatBlock'!=_0x594a71['type']&&'formatInline'!=_0x594a71['type'])return;const {data:_0x4cd814}=_0x594a71;if(_0x4cd814&&'resizeTable'===_0x4cd814['formatGroupId']){const _0x56c536='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x56c536)};}}}class Ct extends _0x56c567{['afterInit'](){const _0x4e1f97=this['editor'];_0x4e1f97['plugins']['has']('Template')&&_0x4e1f97['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x56c567{['afterInit'](){const _0x2990bb=this['editor'];if(!_0x2990bb['commands']['get']('insertTableOfContents'))return;_0x2990bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x10b293=_0x2990bb['plugins']['get']('TrackChangesEditing'),_0x3897e8=_0x2990bb['locale'];_0x10b293['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1f3374=>o(_0x3897e8,'ELEMENT_TABLE_OF_CONTENTS',_0x1f3374));}}class Dt extends _0x56c567{['afterInit'](){const _0x16fdcb=this['editor'];if(!_0x16fdcb['plugins']['has']('Title'))return;const _0x51b40e=_0x16fdcb['plugins']['get']('TrackChangesEditing');_0x51b40e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x16fdcb['locale'],'ELEMENT_TITLE')),_0x16fdcb['model']['document']['registerPostFixer'](_0x32e73c=>{let _0x16772e=!0x1;const _0x2fa621=Array['from'](_0x16fdcb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18be4a,data:_0x143121}of _0x2fa621){const {group:_0x39036b}=_0x51b40e['_splitMarkerName'](_0x18be4a);if('suggestion'!==_0x39036b||!_0x143121['newRange'])continue;const _0x469ddb=_0x143121['newRange'],_0x11328c=_0x469ddb['end']['nodeBefore'];if(!_0x11328c||!_0x11328c['is']('element','title-content'))continue;if(!_0x469ddb['start']['isTouching'](_0x469ddb['end']))continue;const _0x2aab6e=_0x16fdcb['model']['schema']['getNearestSelectionRange'](_0x469ddb['end'],'forward');if(_0x2aab6e&&_0x2aab6e['isCollapsed']){const _0x548fee=_0x32e73c['createRange'](_0x469ddb['start'],_0x2aab6e['start']);_0x548fee['isEqual'](_0x469ddb)||(_0x32e73c['updateMarker'](_0x18be4a,{'range':_0x548fee}),_0x16772e=!0x0);}_0x16772e||(_0x32e73c['removeMarker'](_0x18be4a),_0x16772e=!0x0);}return _0x16772e;});}}class Nt extends _0x56c567{['afterInit'](){const _0xf712d1=this['editor'],_0x3fa76d=_0xf712d1['plugins']['get']('TrackChangesEditing');_0xf712d1['plugins']['has']('UndoEditing')&&(_0x3fa76d['enableCommand']('undo'),_0x3fa76d['enableCommand']('redo'));}}class Mt extends _0x56c567{static get['requires'](){return[jt];}['afterInit'](){const _0x4f17d7=this['editor'];if(!_0x4f17d7['plugins']['has']('TableCaptionEditing'))return;_0x4f17d7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x56c567{['tableProperties'];['tableCellProperties'];constructor(_0x2dd848){super(_0x2dd848),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 _0x3ca683=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2a59e9 of this['tableProperties'])_0x3ca683['enableCommand'](_0x2a59e9,(_0x12c608,_0x25e055)=>{const _0x3d25e7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2a59e9,[_0x3d25e7],this['tableProperties'],'tableProperties',_0x12c608,_0x25e055);});_0x3ca683['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ca683['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ca683['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x31b12a,_0x5283ce)=>this['handleDiscardAction'](this['tableProperties'],_0x31b12a,_0x5283ce)),_0x3ca683['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5a3c91 of this['tableCellProperties'])_0x3ca683['enableCommand'](_0x5a3c91,(_0x4c848e,_0x3f750f)=>{const _0x376a51=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5a3c91,_0x376a51,this['tableCellProperties'],'tableCellProperties',_0x4c848e,_0x3f750f);});_0x3ca683['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ca683['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ca683['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b4bef,_0x43b4aa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b4bef,_0x43b4aa)),_0x3ca683['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ca683['descriptionFactory']['registerDescriptionCallback'](_0x228354=>this['handleSuggestionDescription'](_0x228354));}['_handlePropertyChange'](_0x353da4,_0x3d67d,_0x29685c,_0x319330,_0xaae3ce,_0x3912c6){const _0x1e31eb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3912c6['batch'],()=>{for(const _0x1fc262 of _0x3d67d){if(this['_getSuggestion'](_0x1fc262,_0x319330))_0xaae3ce(_0x3912c6);else{const _0x111540={};for(const _0x44172a of _0x29685c){const _0x1b57a6=_0x1fc262['getAttribute'](_0x44172a);void 0x0!==_0x1b57a6&&(_0x111540[_0x44172a]=_0x1b57a6);}_0xaae3ce(_0x3912c6),_0x1e31eb['markBlockFormat'](_0x1fc262,{'commandParams':[_0x111540]},[],_0x319330);}}});}['handleDiscardAction'](_0x12ab3e,_0x5d1f30,_0x247f25){const _0x3cb48a=_0x5d1f30[0x0]['start']['nodeAfter'],_0x10ed69=_0x247f25['commandParams'][0x0];this['editor']['model']['change'](_0x4e5b8b=>{for(const _0x284ceb of _0x12ab3e)void 0x0!==_0x10ed69[_0x284ceb]?_0x4e5b8b['setAttribute'](_0x284ceb,_0x10ed69[_0x284ceb],_0x3cb48a):_0x4e5b8b['removeAttribute'](_0x284ceb,_0x3cb48a);});}['handleSuggestionDescription'](_0x528c6b){if(_0x528c6b['data'])switch(_0x528c6b['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'](_0x4ef6fa,_0x61adf3){const _0xf45b48=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x38945b of _0xf45b48['getSuggestions']({'skipNotAttached':!0x0})){const _0x19ebcd=_0x38945b['getContainedElement']();if(_0x38945b['subType']===_0x61adf3&&_0x19ebcd===_0x4ef6fa)return _0x38945b;}return null;}}const m='$elementName';class p extends _0x56c567{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x445e78,_0x27b42d,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x34179d){function _0x422f2e(_0x22fea1){return _0x22fea1['map'](_0x22cb42=>String['fromCharCode'](_0x22cb42))['join']('');}super(_0x34179d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x53ef5d,_0x1ad1d1,_0x1ec20b,_0x346a4d)=>{this['_model']['change'](()=>{for(const _0x482d13 of[..._0x346a4d,..._0x1ec20b])this['_model']['markers']['has'](_0x482d13)&&_0x34179d['editing']['reconvertMarker'](_0x482d13);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x34179d['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(),_0x34179d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x34179d['config']['get']('trackChanges.trackFormatChanges'),_0x34179d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x34179d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x34179d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x422f2e([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x422f2e([0x34,0x30,0x34,0x38,0x31,0x34,0x30,0x38]);}['init'](){const _0x4d9c67=this['editor'],_0x302591=(_0x3a2f21,_0x56b122)=>{if('attribute'!=_0x3a2f21)return'ck-suggestion-marker-'+_0x3a2f21;const _0x319a50=_0x56b122['split']('|')[0x0];return this['_isBlockAttribute'](_0x319a50)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4d9c67['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1e9e42=>{const {id:_0x2b38dd,type:_0x3379e9,subType:_0x5fb72a}=this['_splitMarkerName'](_0x1e9e42['markerName']),_0x52b63d=['ck-suggestion-marker',_0x302591(_0x3379e9,_0x5fb72a)];let _0x2930b1=0xbb8;return this['activeMarkers']['includes'](_0x1e9e42['markerName'])&&(_0x52b63d['push']('ck-suggestion-marker--active'),_0x2930b1=0xbc2),'deletion'==_0x3379e9&&(_0x2930b1+=0x5),{'classes':_0x52b63d,'attributes':{'data-suggestion':_0x2b38dd},'priority':_0x2930b1};}}),_0x4d9c67['conversion']['for']('dataDowncast')['add'](_0x32d4fc=>{_0x32d4fc['on']('addMarker:suggestion',(_0x519896,_0x326593,_0x227ee0)=>{if(!_0x227ee0['options']['showSuggestionHighlights'])return;const _0x4ebaa1=_0x326593['item'];if(!_0x4ebaa1)return;const _0x12d791=_0x227ee0['mapper']['toViewElement'](_0x4ebaa1);_0x4d9c67['model']['schema']['isObject'](_0x4ebaa1)&&_0x12d791&&!_0x12d791['getCustomProperty']('widget')&&_0x12d791['is']('containerElement')&&_0x170397(_0x12d791,_0x227ee0['writer']);},{'priority':'high'});}),_0x4d9c67['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x215fda,_0x1e0ad8)=>{if(!_0x1e0ad8['options']['showSuggestionHighlights'])return null;const {type:_0x4f08e7,subType:_0x3b38f7}=this['_splitMarkerName'](_0x215fda['markerName']);return{'classes':['ck-suggestion-marker',_0x302591(_0x4f08e7,_0x3b38f7)],'priority':0xbb8};}});const _0xb25e80=({showActiveMarkers:_0x70975f=!0x0,isAttributeSuggestion:_0x567cf5=!0x1}={})=>(_0xb25c2f,_0x574fa1,_0x31cb18)=>{if(!_0x574fa1['item'])return;const {id:_0x2f810b}=this['_splitMarkerName'](_0x574fa1['markerName']);if(_0x567cf5){const _0x3217a4=this['_suggestions']['get'](_0x2f810b),_0x375193=this['_getAttributeKey'](_0x3217a4);if(!this['_isBlockAttribute'](_0x375193))return;}if(_0x574fa1['item']['is']('selection'))return void _0x31cb18['consumable']['consume'](_0x574fa1['item'],_0xb25c2f['name']);const _0x5b8ae1=_0x31cb18['mapper']['toViewElement'](_0x574fa1['item']);if(_0x574fa1['item']['is']('element')&&_0x4d9c67['model']['schema']['isBlock'](_0x574fa1['item'])&&!_0x5b8ae1['getCustomProperty']('addHighlight')){_0x31cb18['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5b8ae1),_0x31cb18['writer']['setAttribute']('data-suggestion',_0x2f810b,_0x5b8ae1),_0x31cb18['mapper']['bindElementToMarker'](_0x5b8ae1,_0x574fa1['markerName']),_0x70975f&&(this['activeMarkers']['includes'](_0x574fa1['markerName'])?_0x31cb18['writer']['addClass']('ck-suggestion-marker--active',_0x5b8ae1):_0x31cb18['writer']['removeClass']('ck-suggestion-marker--active',_0x5b8ae1));for(const _0x5606a3 of _0x4d9c67['model']['createRangeIn'](_0x574fa1['item'])['getItems']())_0x31cb18['consumable']['consume'](_0x5606a3,_0xb25c2f['name']);_0x31cb18['consumable']['consume'](_0x574fa1['item'],_0xb25c2f['name']);}};_0x4d9c67['conversion']['for']('dataDowncast')['add'](_0x32cfc9=>{_0x32cfc9['on']('addMarker:suggestion:formatBlock',(_0x4cc072,_0x45f4b1,_0x2c375a)=>{_0x2c375a['options']['showSuggestionHighlights']&&_0xb25e80({'showActiveMarkers':!0x1})(_0x4cc072,_0x45f4b1,_0x2c375a);},{'priority':'highest'});}),_0x4d9c67['conversion']['for']('dataDowncast')['add'](_0x292dba=>{_0x292dba['on']('addMarker:suggestion:attribute',(_0x527d7d,_0x364d66,_0x2e12c9)=>{_0x2e12c9['options']['showSuggestionHighlights']&&_0xb25e80({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x527d7d,_0x364d66,_0x2e12c9);},{'priority':'highest'});}),_0x4d9c67['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xcebcd7,_0x3bbf35)=>_0x3bbf35['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xcebcd7['substr'](0xb)}}),_0x4d9c67['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd2c1d9,{writer:_0x57d818})=>{let _0x4733e4='suggestion:'+_0xd2c1d9['getAttribute']('suggestion-type')+':'+_0xd2c1d9['getAttribute']('id');return _0xd2c1d9['getAttribute']('marker-count')&&(_0x4733e4+=':'+_0xd2c1d9['getAttribute']('marker-count')),_0x57d818['createElement']('$marker',{'data-name':_0x4733e4});}}),_0x4d9c67['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4d9c67['conversion']['for']('editingDowncast')['add'](_0x2629a9=>{_0x2629a9['on']('addMarker:suggestion:formatBlock',_0xb25e80(),{'priority':'high'});}),_0x4d9c67['conversion']['for']('editingDowncast')['add'](_0x33504e=>{_0x33504e['on']('addMarker:suggestion:attribute',_0xb25e80({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4d9c67['conversion']['for']('editingDowncast')['add'](_0x2ec928=>{_0x2ec928['on']('removeMarker:suggestion:formatBlock',(_0x2d2594,_0x51ecfc,_0x308184)=>{const _0x5d685c=_0x308184['mapper']['markerNameToElements'](_0x51ecfc['markerName']);if(_0x5d685c){for(const _0x18b546 of _0x5d685c)_0x18b546['getCustomProperty']('addHighlight')||(_0x308184['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x18b546),_0x308184['writer']['removeAttribute']('data-suggestion',_0x18b546),_0x308184['mapper']['unbindElementFromMarkerName'](_0x18b546,_0x51ecfc['markerName']));}},{'priority':'high'});}),_0x4d9c67['conversion']['for']('editingDowncast')['add'](_0x57ed83=>{_0x57ed83['on']('removeMarker:suggestion:attribute',(_0x5732ed,_0x11cff3,_0x1f4efe)=>{const _0x751336=_0x1f4efe['mapper']['markerNameToElements'](_0x11cff3['markerName']);if(!_0x751336)return;const {id:_0x17c700}=this['_splitMarkerName'](_0x11cff3['markerName']),_0x1b1748=this['_suggestions']['get'](_0x17c700),_0xeb7591=this['_getAttributeKey'](_0x1b1748);if(this['_isBlockAttribute'](_0xeb7591)){for(const _0x485daa of _0x751336)_0x485daa['getCustomProperty']('addHighlight')||(_0x1f4efe['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x485daa),_0x1f4efe['writer']['removeAttribute']('data-suggestion',_0x485daa),_0x1f4efe['mapper']['unbindElementFromMarkerName'](_0x485daa,_0x11cff3['markerName']));}},{'priority':'high'});}),_0x4d9c67['model']['document']['registerPostFixer'](_0x44ca9a=>{let _0x2aeb51=!0x1;const _0x5bbeda=Array['from'](_0x4d9c67['model']['document']['differ']['getChangedMarkers']()),_0x432800=new Set();for(const {name:_0x5150c3,data:_0x3243ba}of _0x5bbeda){const {group:_0x61d494,type:_0x3e6d82,subType:_0xd43fa7,id:_0x30cecf}=this['_splitMarkerName'](_0x5150c3);if('suggestion'!==_0x61d494)continue;const _0x5502af=this['_suggestions']['get'](_0x30cecf);if(null!=_0x3243ba['newRange']){'formatInline'==_0x3e6d82&&(_0x2aeb51=_0x2aeb51||Et(_0x3243ba['newRange'],_0x5150c3,_0x44ca9a,_0x4d9c67['model']['schema']));const _0x52e28f='attribute'==_0x3e6d82&&this['_isBlockAttribute'](_0xd43fa7['split']('|')[0x0]);if(_0x3243ba['newRange']['isCollapsed']||'$graveyard'==_0x3243ba['newRange']['root']['rootName']||'formatBlock'==_0x3e6d82&&!Ut(_0x3243ba['newRange'])||_0x52e28f&&!Ut(_0x3243ba['newRange'])||'deletion'==_0x3e6d82&&!(!Tt(_0x3d6fba=_0x3243ba['newRange'])&&!function(_0x5c52ab){return _0x5c52ab['start']['parent']==_0x5c52ab['end']['nodeBefore']&&_0x5c52ab['start']['isAtEnd'];}(_0x3d6fba)))_0x44ca9a['removeMarker'](_0x5150c3),_0x2aeb51=!0x0;else{if(!_0x5502af||!_0x5502af['isInContent'])continue;_0x432800['add'](_0x5502af);}}}var _0x3d6fba;return _0x432800['size']>0x0&&(_0x2aeb51=!!this['_joinWithAdjacentSuggestions'](_0x432800)||_0x2aeb51),_0x2aeb51;}),_0x4d9c67['model']['document']['registerPostFixer'](_0x320818=>{let _0x4a203a=!0x1;for(const _0x30cd89 of _0x4d9c67['model']['document']['differ']['getChanges']())if('insert'==_0x30cd89['type'])for(const _0x1a3c7e of this['_suggestions']['values']()){if(_0x1a3c7e['isMultiRange']||!_0x1a3c7e['isInContent'])continue;const _0x364ae0='formatBlock'==_0x1a3c7e['type'],_0x185b14=this['_getAttributeKey'](_0x1a3c7e),_0x3532a1=_0x185b14&&this['_isBlockAttribute'](_0x185b14);if(!_0x364ae0&&!_0x3532a1)continue;const _0x46077f=_0x1a3c7e['getFirstRange']();if(_0x46077f['start']['parent']!=_0x46077f['end']['parent']&&!_0x46077f['end']['isAtEnd']){const _0x43f4ba=_0x4d9c67['model']['createPositionAt'](_0x46077f['start']['nodeAfter'],'end'),_0x1a74a1=_0x4d9c67['model']['createRange'](_0x46077f['start'],_0x43f4ba);_0x320818['updateMarker'](_0x1a3c7e['getFirstMarker'](),{'range':_0x1a74a1}),_0x4a203a=!0x0;}}return _0x4a203a;}),_0x4d9c67['model']['document']['registerPostFixer'](_0x4e0e04=>this['_processAttributeChanges'](_0x4e0e04)),_0x4d9c67['model']['document']['registerPostFixer'](_0x7714de=>!_0x7714de['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x7714de)),_0x4d9c67['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4d9c67['model']['document']['on']('change:data',(_0x46b4b1,_0x33a619)=>{if(!_0x33a619['isLocal']||_0x33a619['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x56532f=_0x4d9c67['model']['document']['differ']['getChanges']();if(0x0==_0x56532f['length'])return;const _0x282193=[],_0x432150=_0x56532f['filter'](_0x43a57f=>'attribute'==_0x43a57f['type']),_0x370854=_0x56532f['filter'](_0x484205=>'insert'==_0x484205['type']&&'$text'!=_0x484205['name']);for(const _0x30e03e of _0x432150)this['_isRegisteredAttribute'](_0x30e03e['attributeKey'])&&_0x282193['push']({'key':_0x30e03e['attributeKey'],'newValue':_0x30e03e['attributeNewValue'],'oldValue':_0x30e03e['attributeOldValue'],'range':Ot(_0x30e03e['range'],_0x4d9c67['model'])});for(const _0x514323 of _0x370854){if('rename'!=_0x514323['action']&&'refresh'!=_0x514323['action'])continue;const _0x2ad27f=Gt(_0x514323['position']['nodeAfter'],_0x4d9c67['model']),_0x54db30=_0x514323['before'];'rename'==_0x514323['action']&&_0x282193['push']({'key':m,'newValue':_0x514323['name'],'oldValue':_0x54db30['name'],'range':_0x2ad27f});for(const [_0x451b55,_0xc16012]of _0x54db30['attributes']){if(!this['_isRegisteredAttribute'](_0x451b55))continue;const _0x5a4d33=_0x514323['attributes']['get'](_0x451b55);_0xc16012!==_0x5a4d33&&_0x282193['push']({'key':_0x451b55,'newValue':_0x5a4d33,'oldValue':_0xc16012,'range':_0x2ad27f});}for(const [_0x16601f,_0x33e2f4]of _0x514323['attributes'])this['_isRegisteredAttribute'](_0x16601f)&&(_0x54db30['attributes']['has'](_0x16601f)||_0x282193['push']({'key':_0x16601f,'newValue':_0x33e2f4,'oldValue':null,'range':_0x2ad27f}));}0x0!=_0x282193['length']&&_0x4d9c67['model']['enqueueChange'](_0x33a619,_0x55441e=>{const _0xdfa20f=_0x170805();for(const {range:_0x437270,key:_0x2c05c5,oldValue:_0x39e9e0,newValue:_0x953228}of _0x282193)this['markAttributeChange'](_0x437270,_0x2c05c5,_0x39e9e0,_0x953228,{'groupId':_0xdfa20f});this['_reduceExistingSuggestions'](_0x55441e,_0x282193);});},{'priority':'lowest'}),_0x4d9c67['model']['markers']['on']('update:suggestion',(_0x11d7b1,_0x794a8c,_0x50f65a)=>{if(null==_0x50f65a){const {id:_0x2d512b}=this['_splitMarkerName'](_0x794a8c['name']),_0x186536=this['_suggestions']['get'](_0x2d512b);_0x186536&&_0x186536['addMarkerName'](_0x794a8c['name']);}}),_0x4d9c67['model']['document']['on']('change:data',()=>{const _0x2ff166=Array['from'](_0x4d9c67['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1e9ea6=>'suggestion'===this['_splitMarkerName'](_0x1e9ea6['name'])['group']);if(0x0===_0x2ff166['length'])return;_0x2ff166['sort']((_0x4cea79,_0x1c0cd8)=>{const _0x4ceda9=_0x4cea79['data']['oldRange'],_0x4fbfb9=_0x1c0cd8['data']['oldRange'];return null===_0x4ceda9&&null===_0x4fbfb9?0x0:null===_0x4ceda9&&null!==_0x4fbfb9?-0x1:null!==_0x4ceda9&&null===_0x4fbfb9?0x1:_0x4ceda9['start']['isBefore'](_0x4fbfb9['start'])?-0x1:0x1;});const _0x8bd8ef=new Set(),_0x5774d8=new Set();for(const {name:_0x205ea5,data:_0x399132}of _0x2ff166){const {id:_0x52e044}=this['_splitMarkerName'](_0x205ea5);if(null===_0x399132['oldRange']){const _0x405354=this['_handleNewSuggestionMarker'](_0x205ea5);_0x5774d8['add'](_0x405354);}else{const _0x24f881=this['_suggestions']['get'](_0x52e044);null!==_0x399132['newRange']||_0x24f881['isInContent']?(_0x8bd8ef['add'](_0x24f881['head']),_0x5774d8['add'](_0x24f881)):this['_removeSuggestion'](_0x24f881);}}_0x5774d8['size']>0x0&&this['_refreshSuggestionsChain'](_0x5774d8);for(const _0x15cd99 of _0x8bd8ef)this['fire']('suggestionChanged',_0x15cd99);}),_0x4d9c67['model']['on']('applyOperation',(_0x2920db,_0x15f2db)=>{const _0x22da5e=_0x15f2db[0x0];if(!this['_suggestions']['size'])return;if(!_0x22da5e['isDocumentOperation'])return;if(_0x22da5e['batch']['isUndo']||!_0x22da5e['batch']['isLocal'])return;let _0x10dd14,_0x2b5d95;switch(_0x22da5e['type']){case'insert':_0x10dd14=_0x4d9c67['model']['createPositionAt'](_0x22da5e['position']),_0x2b5d95=_0x10dd14['getShiftedBy'](_0x22da5e['howMany']);break;case'split':_0x10dd14=_0x4d9c67['model']['createPositionAt'](_0x22da5e['splitPosition']),_0x2b5d95=_0x4d9c67['model']['createPositionAt'](_0x22da5e['moveTargetPosition']);break;case'move':_0x10dd14=_0x4d9c67['model']['createPositionAt'](_0x22da5e['targetPosition']),_0x2b5d95=_0x10dd14['getShiftedBy'](_0x22da5e['howMany']);break;default:return;}const _0x132c08=_0x4d9c67['model']['createRange'](_0x10dd14,_0x2b5d95);_0x4d9c67['model']['change'](()=>{for(const {suggestion:_0x496fc3,meta:_0xf62618}of this['_findSuggestions'](_0x132c08)){if(_0x496fc3['isMultiRange'])continue;if('formatInline'==_0x496fc3['type'])continue;const _0x39b3f5=this['_getAttributeKey'](_0x496fc3);if(_0x39b3f5&&this['_isBlockAttribute'](_0x39b3f5)&&'split'!=_0x22da5e['type'])continue;const _0x4ebfa4=_0x496fc3['data']&&_0x496fc3['data']['multipleBlocks'];('formatBlock'!=_0x496fc3['type']||'split'==_0x22da5e['type']&&!_0x4ebfa4)&&(_0xf62618['containsRangeInObject']||'insertion'==_0x496fc3['type']&&_0xf62618['isOwn']||_0x496fc3['getFirstRange']()['containsRange'](_0x132c08)&&this['_breakSuggestionMarker'](_0x496fc3,_0x10dd14,_0x2b5d95));}});},{'priority':'lowest'}),_0x4d9c67['model']['on']('deleteContent',(_0xa867f8,_0x116fcf)=>{const _0x5172a6=_0x116fcf[0x0],_0x3cac0b=_0x116fcf[0x1];if(_0x3cac0b&&_0x3cac0b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5172a6['isCollapsed'])return;const _0x28f624=_0x4d9c67['model']['schema'],{start:_0x4c1895,end:_0x8cb6b3}=_0x5172a6['getFirstRange'](),_0x2738ea=_0x4c1895['nodeAfter']&&_0x28f624['isLimit'](_0x4c1895['nodeAfter'])?null:_0x28f624['getNearestSelectionRange'](_0x4c1895,'forward'),_0x7bec06=_0x8cb6b3['nodeBefore']&&_0x28f624['isLimit'](_0x8cb6b3['nodeBefore'])?null:_0x28f624['getNearestSelectionRange'](_0x8cb6b3,'backward'),_0x28f9a8=_0x4d9c67['model']['createRange'](_0x2738ea?_0x2738ea['start']:_0x4c1895,_0x7bec06?_0x7bec06['end']:_0x8cb6b3);_0x4d9c67['model']['change'](_0x4c15ca=>{this['markDeletion'](_0x28f9a8);const _0xad2f78=_0x4d9c67['model']['schema']['getNearestSelectionRange'](_0x28f9a8['start']);_0x5172a6['is']('documentSelection')?_0x4c15ca['setSelection'](_0xad2f78):_0x5172a6['setTo'](_0xad2f78);}),_0xa867f8['stop']();},{'priority':_0x3c332a['normal']+0xa}),_0x4d9c67['model']['on']('insertContent',(_0xdae87a,_0x53c5bb)=>{const _0x128a9a=_0x53c5bb[_0x53c5bb['length']-0x1];_0x128a9a&&_0x128a9a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4d9c67['model']['change'](()=>{let _0x277219=_0x4d9c67['model']['insertContent'](_0x53c5bb[0x0],_0x53c5bb[0x1],_0x53c5bb[0x2],{'forceDefaultExecution':!0x0});if(!_0x277219)return;_0xdae87a['return']=_0x277219['clone']();const _0x2ead56=_0x277219['end']['nodeBefore'],_0x59d23e=_0x4d9c67['model']['schema'];_0x2ead56&&_0x59d23e['isBlock'](_0x2ead56)&&!_0x59d23e['isObject'](_0x2ead56)&&(_0x277219=_0x4d9c67['model']['createRange'](_0x277219['start'],_0x4d9c67['model']['createPositionAt'](_0x2ead56,'end'))),this['markInsertion'](_0x277219);}),_0xdae87a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x459e6b=new $(_0x4d9c67,this['_suggestions']);_0x4d9c67['commands']['add']('acceptSuggestion',_0x459e6b),this['enableCommand']('acceptSuggestion');const _0x111570=new B(_0x4d9c67,this['_suggestions']);_0x4d9c67['commands']['add']('discardSuggestion',_0x111570),this['enableCommand']('discardSuggestion'),_0x4d9c67['commands']['add']('acceptAllSuggestions',new x(_0x4d9c67,_0x459e6b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4d9c67['commands']['add']('discardAllSuggestions',new x(_0x4d9c67,_0x111570,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4d9c67['commands']['add']('acceptSelectedSuggestions',new R(_0x4d9c67,_0x459e6b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4d9c67['commands']['add']('discardSelectedSuggestions',new R(_0x4d9c67,_0x111570,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1c98b2=_0x4d9c67['plugins']['get']('CommentsRepository');this['listenTo'](_0x1c98b2,'addComment',(_0x42d6e1,{threadId:_0x5b9726})=>{const _0x673e6c=this['_suggestions']['get'](_0x5b9726);_0x673e6c&&_0x673e6c['commentThread']&&0x1===_0x673e6c['commentThread']['length']&&this['_updateSuggestionData'](_0x5b9726,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1c98b2,'removeComment',(_0x4c47b7,{threadId:_0x186384})=>{const _0x24456d=this['_suggestions']['get'](_0x186384);_0x24456d&&_0x24456d['commentThread']&&!_0x24456d['commentThread']['length']&&this['_updateSuggestionData'](_0x186384,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x12f0d5){if(this['_adapter'])throw new _0x14405f('track-changes-adapter-already-set',this);this['_adapter']=_0x12f0d5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe7215c=!0x1,toJSON:_0x331982=!0x1}={}){const _0x1efb86=[];for(const _0x1b882e of this['_suggestions']['values']())_0xe7215c&&!_0x1b882e['isInContent']||_0x1efb86['push'](_0x1b882e);return _0x331982?_0x1efb86['map'](_0x4e12d7=>_0x4e12d7['toJSON']()):_0x1efb86;}['getSuggestion'](_0x1f61a9){const _0x2c3b57=this['_suggestions']['get'](_0x1f61a9);if(!_0x2c3b57)throw new _0x14405f('track-changes-suggestion-not-found',this);return _0x2c3b57;}['hasSuggestion'](_0x565fde){return this['_suggestions']['has'](_0x565fde);}['addSuggestionData'](_0x34d91a){const {authorId:_0x37d2c6,id:_0x3da124,attributes:_0x334e48}=_0x34d91a,[_0x38d454,_0x3e2221]=_0x34d91a['type']['split'](':'),_0x43d24c=this['_suggestions']['get'](_0x3da124)||this['_createSuggestion'](_0x38d454,_0x3e2221,_0x3da124,_0x37d2c6,_0x334e48);if(this['_addThreadToSuggestion'](_0x43d24c),this['_checkSuggestionCorrectness'](_0x43d24c,_0x38d454,_0x3e2221||null,_0x37d2c6),_0x43d24c['createdAt']=_0x34d91a['createdAt'],_0x43d24c['_isDataLoaded']=!0x0,_0x334e48&&_0x334e48['@external']){const _0x3e8ae3=_0x334e48['@external'],_0x17cbb3=this['_getExternalAuthor'](_0x3e8ae3['authorName']);_0x43d24c['authoredAt']=_0x3e8ae3['createdAt'],_0x43d24c['author']=_0x17cbb3,_0x43d24c['isExternal']=!0x0;}else _0x43d24c['authoredAt']=_0x34d91a['createdAt'];switch(_0x34d91a['data']&&(_0x43d24c['data']=_0x34d91a['data']),_0x34d91a['attributes']&&(_0x43d24c['attributes']=_0x34d91a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43d24c['_saved']=!0x0),this['_suggestionState']['get'](_0x43d24c)){case'notReady':this['_suggestionState']['set'](_0x43d24c,'dataReady');break;case'markerReady':_0x43d24c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43d24c])),this['_refreshSuggestionsChain'](new Set([_0x43d24c])),this['_suggestionState']['set'](_0x43d24c,'ready'),this['fire']('suggestionLoaded',_0x43d24c)):this['_suggestionState']['set'](_0x43d24c,'removed');}return _0x43d24c;}['acceptSuggestion'](_0x306675){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ea884 of _0x306675['getAllAdjacentSuggestions']())_0x5ea884['accept']();});});}['discardSuggestion'](_0x50c24b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x269596 of _0x50c24b['getAllAdjacentSuggestions']())_0x269596['discard']();});});}['enableCommand'](_0x348b08,_0x41ae27){const _0x35a866=this['editor']['commands']['get'](_0x348b08);if(!_0x35a866)throw new _0x14405f('track-changes-command-not-found',this,{'commandName':_0x348b08});if(this['_enabledCommands']['has'](_0x35a866))throw new _0x14405f('track-changes-enable-command-twice',this,{'commandName':_0x348b08});this['_enabledCommands']['add'](_0x35a866),_0x41ae27&&_0x35a866['on']('execute',(_0x59fabc,_0x42241a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x42241a['length']>0x0&&_0x42241a[_0x42241a['length']-0x1]&&_0x42241a[_0x42241a['length']-0x1]['forceDefaultExecution']?_0x42241a['pop']():(_0x59fabc['return']=_0x41ae27((..._0x3c2b2a)=>_0x35a866['execute'](..._0x3c2b2a,{'forceDefaultExecution':!0x0}),..._0x42241a),_0x59fabc['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x588792){let _0x1c0d92,_0x503f19;const _0x3da6c5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1c0d92=_0x588792();}catch(_0x10c88c){_0x503f19=_0x10c88c;}return _0x3da6c5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x503f19&&_0x14405f['rethrowUnexpectedError'](_0x503f19,this),_0x1c0d92;}['markInsertion'](_0x54d3f3,_0x407527=null,_0x27e07c={}){if(_0x54d3f3['isCollapsed'])return null;const _0x30de6e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xbadf67,meta:_0x73a3d}of this['_findSuggestions'](_0x54d3f3,'insertion'))if(_0x73a3d['isOwn']){if(!_0x73a3d['isNextTo']){if(_0x73a3d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0xbadf67,_0x27e07c))continue;return _0xbadf67;}if(Lt(_0xbadf67,_0x27e07c))return _0xbadf67;this['_breakSuggestionMarker'](_0xbadf67,_0x54d3f3['start'],_0x54d3f3['end']);break;}if(_0x407527==_0xbadf67['subType']&&Lt(_0xbadf67,_0x27e07c)){const _0x4a151f=_0xbadf67['getFirstRange']();return _0x4a151f['start']['isEqual'](_0x54d3f3['end'])?this['_setSuggestionRange'](_0xbadf67,this['_model']['createRange'](_0x54d3f3['start'],_0x4a151f['end'])):this['_setSuggestionRange'](_0xbadf67,this['_model']['createRange'](_0x4a151f['start'],_0x54d3f3['end'])),_0xbadf67;}}const _0x5656e8=_0x170805(),_0x52e484=_0x30de6e['id'],_0x512f9c=_0x407527?'insertion:'+_0x407527:'insertion',_0x55bb59=this['_setSuggestionData']({'id':_0x5656e8,'type':_0x512f9c,'createdAt':new Date(),'authorId':_0x52e484,'attributes':_0x27e07c});return this['_addSuggestionMarker'](_0x512f9c,_0x5656e8,_0x52e484,_0x54d3f3),_0x55bb59;}['markMultiRangeInsertion'](_0x1cbe59,_0x14cccd='multi',_0x8ed9f7={}){const _0x2fd298=this['editor']['plugins']['get']('Users')['me'],_0xf0173f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x14cccd,'join');for(const _0x400c36 of this['getSuggestions']())if(_0x400c36['author']['id']==_0x2fd298['id']&&'insertion'==_0x400c36['type']&&_0x400c36['subType']==_0x14cccd&&Lt(_0x400c36,_0x8ed9f7)&&(_0xf0173f(_0x400c36['getRanges'](),_0x1cbe59)||_0xf0173f(_0x1cbe59,_0x400c36['getRanges']()))){for(const _0x47d3b9 of _0x1cbe59)_0x400c36['addRange'](_0x47d3b9);return _0x400c36;}for(const {suggestion:_0x240979,meta:_0x1dd6fd}of this['_findSuggestions'](_0x1cbe59,'insertion')){if(!_0x1dd6fd['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1dd6fd['containsRangeInObject'])continue;if(!Lt(_0x240979,_0x8ed9f7))continue;let _0x9990d5=!0x0;for(const _0xe48583 of _0x240979['getRanges']())for(const _0x5078dc of _0x1cbe59)if(!_0xe48583['containsRange'](_0x5078dc)){_0x9990d5=!0x1;break;}if(_0x9990d5)return _0x240979;}const _0x2b2891=_0x170805(),_0x4fc307=_0x2fd298['id'],_0x47395d='insertion:'+_0x14cccd,_0xdd316=this['_setSuggestionData']({'id':_0x2b2891,'type':_0x47395d,'createdAt':new Date(),'authorId':_0x4fc307,'attributes':_0x8ed9f7});for(const _0x3d44a4 of _0x1cbe59)this['_addSuggestionMarker'](_0x47395d,_0x2b2891,_0x4fc307,_0x3d44a4,u['getMultiRangeId']());return _0xdd316;}['markInlineFormat'](_0x273237,_0x506133,_0x27abdc=null,_0x5e1750={}){if(_0x27abdc=_0x27abdc||Vt(_0x506133),_0x273237['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2ac97c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27abdc,'accept');return this['forceDefaultExecution'](()=>_0x2ac97c([_0x273237],_0x506133,_0x5e1750)),null;}const _0x5d0a0f=this['editor']['plugins']['get']('Users')['me'],_0xa5e57e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x411941,meta:_0x11b8c6}of this['_findSuggestions'](_0x273237,'insertion'))_0x11b8c6['isOwn']&&!_0x11b8c6['isInsideObject']&&_0xa5e57e['push'](..._0x411941['getRanges']());}const _0xc21715=function(_0x2c186b,_0x565330){const _0xf14a86=[];for(const _0x2fbd14 of _0x565330){const _0x4f4a13=_0x2c186b['getIntersection'](_0x2fbd14);_0x4f4a13&&_0xf14a86['push'](_0x4f4a13);}return _0xf14a86;}(_0x273237,_0xa5e57e),_0x5f2ade=function(_0x49cb8d,_0x99caa5){const _0x209c69=[_0x49cb8d];for(const _0x4e358b of _0x99caa5){let _0x139a3e=0x0;for(;_0x139a3e<_0x209c69['length'];){const _0x4416e5=_0x209c69[_0x139a3e]['getDifference'](_0x4e358b);_0x209c69['splice'](_0x139a3e,0x1,..._0x4416e5),_0x139a3e+=_0x4416e5['length'];}}return _0x209c69;}(_0x273237,_0xa5e57e);_0xc21715['length']&&this['_model']['change'](()=>{for(const _0x4a0df1 of _0xc21715){const _0x3bfd0e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27abdc,'accept');this['forceDefaultExecution'](()=>_0x3bfd0e([_0x4a0df1],_0x506133,_0x5e1750));}});for(const _0x375a74 of _0x5f2ade){let _0x46a31c=null,_0x1c6bc3=_0x375a74['start'],_0xde66d0=_0x375a74['end'];for(const {suggestion:_0x339cdc,meta:_0x1d45a5}of this['_findSuggestions'](_0x375a74,'formatInline')){if(!_0x1d45a5['isOwn'])continue;if(_0x339cdc['subType']!=_0x27abdc)continue;if(!Lt(_0x339cdc,_0x5e1750))continue;const _0x466371=_0x339cdc['getFirstRange']();if(_0x466371['containsRange'](_0x375a74,!0x0))return null;_0x1c6bc3=_0x1c6bc3['isBefore'](_0x466371['start'])?_0x1c6bc3:_0x466371['start'],_0xde66d0=_0xde66d0['isAfter'](_0x466371['end'])?_0xde66d0:_0x466371['end'],_0x46a31c?_0x466371['start']['isBefore'](_0x46a31c['getFirstRange']()['start'])?(_0x46a31c['removeMarkers'](),_0x46a31c=_0x339cdc):_0x339cdc['removeMarkers']():_0x46a31c=_0x339cdc;}const _0x270985=this['_model']['createRange'](_0x1c6bc3,_0xde66d0);if(_0x46a31c)this['_setSuggestionRange'](_0x46a31c,_0x270985);else{const _0x162aef=_0x170805(),_0x418d70=_0x5d0a0f['id'];this['_setSuggestionData']({'id':_0x162aef,'type':'formatInline:'+_0x27abdc,'data':_0x506133,'createdAt':new Date(),'authorId':_0x418d70,'attributes':_0x5e1750}),this['_addSuggestionMarker']('formatInline:'+_0x27abdc,_0x162aef,_0x418d70,_0x270985);}}return null;}['markBlockFormat'](_0x588a48,_0x301214,_0xdc4a4a=[],_0x36677b=null,_0xadd8d8={}){_0x301214['formatGroupId']||(_0x301214['formatGroupId']=_0x301214['commandName']),_0x301214['multipleBlocks']=_0x588a48['is']('range'),_0x36677b=_0x36677b||Vt(_0x301214);const _0x38deaa=_0xdc4a4a['map'](_0x3080fb=>Gt(_0x3080fb,this['_model'])),_0x3f199a=_0x588a48['is']('range')?_0x588a48:Gt(_0x588a48,this['_model']);if('never'===this['_trackFormatChanges']){const _0x447670=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36677b,'accept');return this['forceDefaultExecution'](()=>_0x447670([_0x3f199a],_0x301214,_0xadd8d8)),null;}_0x38deaa['push'](_0x3f199a);let _0x51eb3c=!0x0;for(const _0x44cc43 of _0x38deaa)if(!this['_rangeIsInLocalUserInsertion'](_0x44cc43)){_0x51eb3c=!0x1;break;}if(_0x51eb3c&&'always'!==this['_trackFormatChanges']){const _0x3ec97f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36677b,'accept');return this['forceDefaultExecution'](()=>_0x3ec97f([_0x3f199a],_0x301214,_0xadd8d8)),null;}let _0x3992a5=null,_0x204945=_0x3f199a['start'],_0x1cb375=_0x3f199a['end'];for(const {suggestion:_0x59bf67,meta:_0x42c35a}of this['_findSuggestions'](_0x3f199a,'formatBlock')){if(!_0x42c35a['isOwn'])continue;if(_0x42c35a['isNextTo']||_0x42c35a['containsRangeInObject']||_0x42c35a['isInsideObject'])continue;if(_0x59bf67['data']['formatGroupId']!=_0x301214['formatGroupId'])continue;if(!Lt(_0x59bf67,_0xadd8d8))continue;const _0x230a53=_0x59bf67['getFirstRange']();if(_0x59bf67['subType']==_0x36677b){if(_0x230a53['containsRange'](_0x3f199a,!0x0))return null;_0x204945=_0x204945['isBefore'](_0x230a53['start'])?_0x204945:_0x230a53['start'],_0x1cb375=_0x1cb375['isAfter'](_0x230a53['end'])?_0x1cb375:_0x230a53['end'],_0x3992a5?_0x230a53['start']['isBefore'](_0x3992a5['getFirstRange']()['start'])?(_0x3992a5['removeMarkers'](),_0x3992a5=_0x59bf67):_0x59bf67['removeMarkers']():_0x3992a5=_0x59bf67;}else{const _0x44eed2=_0x3f199a['getIntersection'](_0x230a53);this['_cutOutSuggestionMarker'](_0x59bf67,_0x44eed2);}}const _0x591ffc=this['editor']['plugins']['get']('Users')['me'],_0x88c6cd=_0x170805(),_0x1abe98=_0x591ffc['id'];if(_0x3992a5)return this['_setSuggestionRange'](_0x3992a5,this['_model']['createRange'](_0x204945,_0x1cb375)),_0x3992a5;{const _0x454404=this['_setSuggestionData']({'id':_0x88c6cd,'type':'formatBlock:'+_0x36677b,'data':_0x301214,'createdAt':new Date(),'authorId':_0x1abe98,'attributes':_0xadd8d8});return this['_addSuggestionMarker']('formatBlock:'+_0x36677b,_0x88c6cd,_0x1abe98,this['_model']['createRange'](_0x204945,_0x1cb375)),_0x454404;}}['markMultiRangeBlockFormat'](_0x3e9eb5,_0x4da483,_0x467a3d=[],_0x38f695=null,_0xcf24fe={}){_0x4da483['formatGroupId']||(_0x4da483['formatGroupId']=_0x4da483['commandName']);const _0xfbb2eb=_0x3e9eb5[0x0];_0x4da483['multipleBlocks']=_0xfbb2eb['is']('range'),_0x38f695=_0x38f695||Vt(_0x4da483);const _0x7ee722=_0x467a3d['map'](_0x367f18=>Gt(_0x367f18,this['_model'])),_0x20de83=_0xfbb2eb['is']('range')?_0x3e9eb5:_0x3e9eb5['map'](_0x412419=>Gt(_0x412419,this['_model']));if('never'===this['_trackFormatChanges']){const _0x49f918=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f695,'accept');return this['forceDefaultExecution'](()=>_0x49f918(_0x20de83,_0x4da483,_0xcf24fe)),null;}_0x7ee722['push'](..._0x20de83);let _0x492da5=!0x0;for(const _0x2ccc0c of _0x7ee722)if(!this['_rangeIsInLocalUserInsertion'](_0x2ccc0c)){_0x492da5=!0x1;break;}if(_0x492da5&&'always'!==this['_trackFormatChanges']){const _0x176cb9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f695,'accept');return this['forceDefaultExecution'](()=>_0x176cb9(_0x20de83,_0x4da483,_0xcf24fe)),null;}const _0x1cf4bf=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b43b7 of this['getSuggestions']()){if(_0x5b43b7['author']['id']!=_0x1cf4bf['id'])continue;if('formatBlock'!=_0x5b43b7['type']||_0x5b43b7['data']['formatGroupId']!=_0x4da483['formatGroupId'])continue;if(!Lt(_0x5b43b7,_0xcf24fe))continue;const _0x54a485=_0x5b43b7['subType']==_0x38f695;for(let _0x39e983=0x0;_0x39e983<_0x20de83['length'];_0x39e983++){const _0x2ab6ed=_0x20de83[_0x39e983];for(const _0x21e490 of _0x5b43b7['getMarkers']()){const _0xb15d1a=_0x21e490['getRange']();if(_0x2ab6ed['isEqual'](_0xb15d1a)){_0x54a485?(_0x20de83['splice'](_0x39e983,0x1),_0x39e983--):_0x5b43b7['removeMarker'](_0x21e490['name']);break;}}}}if(0x0==_0x20de83['length'])return null;const _0x20567f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f695,'join');for(const _0x54186b of this['getSuggestions']())if(_0x54186b['author']['id']==_0x1cf4bf['id']&&'formatBlock'==_0x54186b['type']&&_0x54186b['data']['formatGroupId']==_0x4da483['formatGroupId']&&_0x54186b['subType']==_0x38f695&&Lt(_0x54186b,_0xcf24fe)&&(_0x20567f(_0x54186b['getRanges'](),_0x20de83)||_0x20567f(_0x20de83,_0x54186b['getRanges']()))){for(const _0x26fefa of _0x20de83)_0x54186b['addRange'](_0x26fefa);return _0x54186b;}const _0x393448=_0x170805(),_0x516c20=_0x1cf4bf['id'],_0x1da21c='formatBlock:'+_0x38f695,_0x3d18a1=this['_setSuggestionData']({'id':_0x393448,'type':_0x1da21c,'data':_0x4da483,'createdAt':new Date(),'authorId':_0x516c20,'attributes':_0xcf24fe});for(const _0x182ad0 of _0x20de83)this['_addSuggestionMarker'](_0x1da21c,_0x393448,_0x516c20,_0x182ad0,u['getMultiRangeId']());return _0x3d18a1;}['markDeletion'](_0x3e67b3,_0x252978=null,_0x215b57={}){if(_0x3e67b3['isCollapsed'])return null;const _0x5aa421=this['editor']['plugins']['get']('Users')['me'],_0x16ee35=new _0x17a41d(_0x3e67b3['start'],_0x3e67b3['end']);for(const {suggestion:_0x277f03,meta:_0x2e554d}of this['_findSuggestions'](_0x16ee35,'insertion'))if(_0x2e554d['isOwn']&&!_0x2e554d['isNextTo']){if(_0x277f03['isMultiRange']){const _0x1f691e=_0x277f03['getRanges']()['filter'](_0x4fcca1=>'$graveyard'!=_0x4fcca1['root']['rootName']);_0x1f691e['every'](_0x366c64=>_0x16ee35['containsRange'](_0x366c64,!0x0))&&_0x277f03['discard']();if(_0x1f691e['some'](_0x8de623=>_0x8de623['containsRange'](_0x16ee35,!0x0))){const _0x501350=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x252978,'accept');return this['forceDefaultExecution'](()=>_0x501350([_0x16ee35],null,_0x215b57)),null;}}else{const _0x10b41d=_0x16ee35['getIntersection'](_0x277f03['getFirstRange']());null!==_0x10b41d&&_0x277f03['_onDiscard']([_0x10b41d],null,_0x215b57);}}if(_0x16ee35['detach'](),_0x16ee35['isCollapsed']||'$graveyard'==_0x16ee35['root']['rootName'])return null;let _0x4d6111=null,_0x1cd7cd=_0x16ee35['start'],_0x516872=_0x16ee35['end'];const _0x5325c1=this['_findSuggestions'](_0x16ee35,'deletion');for(const {suggestion:_0x46938b,meta:_0x3eba8b}of _0x5325c1){const _0x3b425d=this['_model']['createRange'](_0x1cd7cd,_0x516872);if(_0x3eba8b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3eba8b['containsRangeInObject']&&!_0x3eba8b['isInsideObject'])){if(_0x46938b['isMultiRange']){if(!Lt(_0x46938b,_0x215b57))continue;let _0x387346=!0x0;for(const _0x198645 of _0x46938b['getRanges']()){if(_0x198645['containsRange'](_0x3b425d,!0x0))return _0x46938b;_0x3b425d['containsRange'](_0x198645)||(_0x387346=!0x1);}_0x387346&&_0x46938b['discard']();}else{const _0x57f995=_0x46938b['getFirstRange']();if(_0x57f995['containsRange'](_0x3b425d,!0x0))return _0x46938b;if(!Lt(_0x46938b,_0x215b57)){_0x3b425d['containsRange'](_0x57f995)?_0x46938b['removeMarkers']():_0x57f995['containsPosition'](_0x1cd7cd)?_0x1cd7cd=_0x57f995['end']:_0x57f995['containsPosition'](_0x516872)&&(_0x516872=_0x57f995['start']);continue;}_0x1cd7cd=_0x1cd7cd['isBefore'](_0x57f995['start'])?_0x1cd7cd:_0x57f995['start'],_0x516872=_0x516872['isAfter'](_0x57f995['end'])?_0x516872:_0x57f995['end'],_0x215b57=Object['assign']({},_0x46938b['attributes']),_0x4d6111?_0x57f995['start']['isBefore'](_0x4d6111['getFirstRange']()['start'])?(_0x4d6111['removeMarkers'](),_0x4d6111=_0x46938b):_0x46938b['removeMarkers']():_0x4d6111=_0x46938b;}}}if(_0x4d6111)return this['_setSuggestionRange'](_0x4d6111,this['_model']['createRange'](_0x1cd7cd,_0x516872)),_0x4d6111;{const _0x1a5270=_0x170805(),_0x36eb65=this['_model']['createRange'](_0x1cd7cd,_0x516872),_0x5d95b7=_0x5aa421['id'],_0x2e1a2f=_0x252978?'deletion:'+_0x252978:'deletion',_0x4972e9=this['_setSuggestionData']({'id':_0x1a5270,'type':_0x2e1a2f,'createdAt':new Date(),'authorId':_0x5d95b7,'attributes':_0x215b57});return this['_addSuggestionMarker'](_0x2e1a2f,_0x1a5270,_0x5d95b7,_0x36eb65),_0x4972e9;}}['markMultiRangeDeletion'](_0x44546c,_0x2798f8='multi',_0x2df7e9={}){const _0x688162=this['editor']['plugins']['get']('Users')['me'],_0x395500=_0x44546c['map'](_0x1672b9=>new _0x17a41d(_0x1672b9['start'],_0x1672b9['end'])),_0x32c4ab=new Set();for(const {suggestion:_0x3eef64,meta:_0x3a97c7}of this['_findSuggestions'](_0x395500,'insertion'))_0x3a97c7['isOwn']&&!_0x3a97c7['isNextTo']&&_0x32c4ab['add'](_0x3eef64);for(const _0x220f5e of _0x32c4ab)if(_0x220f5e['isMultiRange']){const _0x2c9330=_0x220f5e['getRanges']();(!_0x220f5e['attributes']||!_0x220f5e['attributes']['skipNestingCheck'])&&(_0x2c9330['every'](_0x90f9a9=>_0x395500['some'](_0xaf7865=>_0xaf7865['containsRange'](_0x90f9a9,!0x0)))&&_0x220f5e['discard']());if(_0x395500['every'](_0x52be51=>_0x2c9330['some'](_0x51a533=>_0x51a533['containsRange'](_0x52be51,!0x0)))){const _0x32128c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2798f8,'accept');return this['forceDefaultExecution'](()=>_0x32128c(_0x44546c,null,_0x2df7e9)),null;}}else{const _0x2e40d3=_0x220f5e['getFirstRange']();_0x395500['some'](_0x3e2ca2=>_0x3e2ca2['containsRange'](_0x2e40d3,!0x0))&&_0x220f5e['discard']();if(_0x395500['every'](_0x4430b0=>_0x2e40d3['containsRange'](_0x4430b0,!0x0))){const _0x1db53d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2798f8,'accept');return this['forceDefaultExecution'](()=>_0x1db53d(_0x395500,null,_0x2df7e9)),null;}}const _0xd7402e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2798f8,'join');let _0x5499c9=null;for(const _0x1a284a of this['getSuggestions']())if(_0x1a284a['author']['id']==_0x688162['id']&&_0x1a284a['isInContent']&&'deletion'==_0x1a284a['type']&&_0x1a284a['subType']==_0x2798f8&&Lt(_0x1a284a,_0x2df7e9)&&(_0xd7402e(_0x1a284a['getRanges'](),_0x395500)||_0xd7402e(_0x395500,_0x1a284a['getRanges']()))){if(_0x5499c9){if(_0x1a284a['commentThread']&&_0x1a284a['commentThread']['length'])continue;for(const _0x23804b of _0x1a284a['getRanges']())_0x5499c9['isIntersectingWithRange'](_0x23804b)||_0x5499c9['addRange'](_0x23804b);_0x1a284a['removeMarkers']();}else{_0x5499c9=_0x1a284a;for(const _0x233023 of _0x395500)_0x1a284a['isIntersectingWithRange'](_0x233023)||_0x1a284a['addRange'](_0x233023);}}if(_0x5499c9)return _0x5499c9;_0x32c4ab['clear']();for(const {suggestion:_0x80dd06,meta:_0x16d302}of this['_findSuggestions'](_0x395500,'deletion'))_0x16d302['isOwn']&&(this['_mergeNestedSuggestions']||!_0x16d302['containsRangeInObject']&&!_0x16d302['isInsideObject'])&&Lt(_0x80dd06,_0x2df7e9)&&_0x32c4ab['add'](_0x80dd06);for(const _0x36031d of _0x32c4ab){const _0x16feb8=_0x36031d['getRanges']();if(!_0x2df7e9||!_0x2df7e9['skipNestingCheck']){if(_0x395500['every'](_0x162d1f=>_0x16feb8['some'](_0x42d374=>_0x42d374['containsRange'](_0x162d1f,!0x0))))return _0x36031d;}(!_0x36031d['attributes']||!_0x36031d['attributes']['skipNestingCheck'])&&(_0x16feb8['every'](_0x3db771=>_0x395500['some'](_0x5d22dc=>_0x5d22dc['containsRange'](_0x3db771,!0x0)))&&_0x36031d['discard']());}const _0x27ae6d=_0x170805(),_0x4f8792=_0x688162['id'],_0x53fb32='deletion:'+_0x2798f8,_0x5c8e2b=this['_setSuggestionData']({'id':_0x27ae6d,'type':_0x53fb32,'createdAt':new Date(),'authorId':_0x4f8792,'attributes':_0x2df7e9});for(const _0x306a9c of _0x395500)_0x306a9c['detach'](),_0x306a9c['isCollapsed']||'$graveyard'==_0x306a9c['root']['rootName']||this['_addSuggestionMarker'](_0x53fb32,_0x27ae6d,_0x4f8792,_0x306a9c,u['getMultiRangeId']());return _0x5c8e2b;}['markAttributeChange'](_0x211e78,_0x2db49e,_0x1580d3,_0x4128b9,_0x19ce0c){if(_0x211e78['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa91cd3=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d96ac=Array['from'](this['_suggestions']['values']())['filter'](_0x50ed6c=>'attribute'==_0x50ed6c['type']&&_0x50ed6c['data']['key']==_0x2db49e&&_0x50ed6c['isIntersectingWithRange'](_0x211e78));if('default'===this['_trackFormatChanges']){const _0x1cc4e4=this['_findSuggestions'](_0x211e78,'insertion')['filter'](({meta:_0x3f8dcb})=>_0x3f8dcb['isOwn']&&!_0x3f8dcb['isInsideObject']&&!_0x3f8dcb['isNextTo'])['map'](({suggestion:_0xf85fa8})=>_0xf85fa8);_0x2d96ac['unshift'](..._0x1cc4e4);}const _0x37c7fe=new Map([[_0x211e78,_0x1580d3]]);for(const _0x37da41 of _0x2d96ac){const _0x5acc21='attribute'==_0x37da41['type']?_0x37da41['data']['oldValue']:void 0x0,_0xeb774b=_0x37da41['getFirstRange'](),_0x31b125=Array['from'](_0x37c7fe['keys']())['find'](_0x599a4b=>_0x599a4b['isIntersecting'](_0xeb774b));if(!_0x31b125)continue;const _0x1ecb8b=_0x31b125['getDifference'](_0xeb774b);this['_isBlockAttribute'](_0x2db49e)&&'insertion'==_0x37da41['type']&&0x0!=_0x1ecb8b['length']||(_0x37c7fe['delete'](_0x31b125),_0x1ecb8b['forEach'](_0xb4f69f=>{_0x37c7fe['set'](_0xb4f69f,_0x1580d3);}),'insertion'!=_0x37da41['type']&&_0x5acc21!=_0x4128b9&&_0x37c7fe['set'](_0x31b125['getIntersection'](_0xeb774b),_0x5acc21));}const _0x9d225a=[];for(const [_0x1ccaba,_0x46aaf3]of _0x37c7fe){const _0x49f552=_0x170805(),_0x7d126={'key':_0x2db49e,'oldValue':_0x46aaf3,'newValue':_0x4128b9};_0x2db49e['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':_0x2db49e});const _0x1cc5a9=('attribute:'+(_0x2db49e+'|'+Vt({'newValue':_0x4128b9})))['substring'](0x0,0x3c),_0x22db03=this['_setSuggestionData']({'id':_0x49f552,'type':_0x1cc5a9,'data':_0x7d126,'createdAt':new Date(),'authorId':_0xa91cd3,'attributes':_0x19ce0c});_0x9d225a['push'](_0x22db03),this['_addSuggestionMarker'](_0x1cc5a9,_0x49f552,_0xa91cd3,_0x1ccaba);}return _0x9d225a;}['enableDefaultAttributesIntegration'](_0x41a601){this['enableCommand'](_0x41a601,(_0x43fd81,..._0x1c3b3f)=>{this['_recordAttributeChanges'](()=>{_0x43fd81(..._0x1c3b3f);});});}['registerBlockAttribute'](_0x592bc9){this['_blockAttributeKeys']['add'](_0x592bc9);}['registerInlineAttribute'](_0x15067e){this['_inlineAttributeKeys']['add'](_0x15067e);}['_getAttributeKey'](_0x106bbf){return'attribute'==_0x106bbf['type']?_0x106bbf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x180424,_0x23fc6a){const _0x10241e=_0x180424['getFirstMarker']();this['_model']['change'](_0x321c56=>{_0x321c56['updateMarker'](_0x10241e,{'range':_0x23fc6a});});}['_addThreadToSuggestion'](_0x28223e){const _0x14eac=_0x28223e['id'],_0xc777b7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x14eac)||this['_commentsRepository']['addCommentThread']({'channelId':_0xc777b7,'threadId':_0x14eac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x50d32b=this['_commentsRepository']['getCommentThread'](_0x14eac);_0x50d32b['unbind']('isRemovable'),_0x50d32b['isRemovable']=!0x1,_0x28223e['commentThread']=_0x50d32b;}['_checkSuggestionCorrectness'](_0x3b17d5,_0x4a5672,_0x2e1eae,_0x133ba5){if(_0x3b17d5['type']!=_0x4a5672||_0x3b17d5['subType']!=_0x2e1eae||_0x3b17d5['creator']['id']!=_0x133ba5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x14405f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x59be3f,_0x39291e){const _0x4bc73d=_0x59be3f['getFirstRange']();if(_0x39291e['isEqual'](_0x4bc73d))_0x59be3f['removeMarkers']();else{if(_0x4bc73d['containsRange'](_0x39291e)){const _0x17dcf0=this['_model']['createPositionAt'](_0x39291e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59be3f,this['_model']['createRange'](_0x4bc73d['start'],_0x17dcf0));const _0x2a5081=_0x170805(),_0x4e0ceb=_0x59be3f['creator']['id'],_0x1de733=_0x59be3f['type']+':'+_0x59be3f['subType'];this['_setSuggestionData']({'id':_0x2a5081,'type':_0x1de733,'createdAt':new Date(),'authorId':_0x4e0ceb,'data':_0x59be3f['data'],'attributes':_0x59be3f['attributes']});const _0x71ca6a=this['_model']['createPositionAt'](_0x39291e['end']['parent'],'after'),_0x417c8e=this['_model']['createRange'](_0x71ca6a,_0x4bc73d['end']);this['_addSuggestionMarker'](_0x1de733,_0x2a5081,_0x4e0ceb,_0x417c8e);}else{if(_0x4bc73d['containsPosition'](_0x39291e['start'])){const _0x2befcb=this['_model']['createPositionAt'](_0x39291e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59be3f,this['_model']['createRange'](_0x4bc73d['start'],_0x2befcb));}else{const _0x24d5c0=this['_model']['createPositionAt'](_0x39291e['end']['parent'],'after');this['_setSuggestionRange'](_0x59be3f,this['_model']['createRange'](_0x24d5c0,_0x4bc73d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5c552e){for(const {suggestion:_0x5b93dc,meta:_0x1f23e1}of this['_findSuggestions'](_0x5c552e,'insertion')){if(!_0x1f23e1['isOwn'])continue;const _0x40666f=_0x5b93dc['getRanges']();for(const _0x35a587 of _0x40666f)if(!_0x5c552e['getDifference'](_0x35a587)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4a73d1){const _0x452bd7=this['editor']['plugins']['get']('Users')['getUser'](_0x4a73d1);if(!_0x452bd7)throw new _0x14405f('track-changes-user-not-found',this);return _0x452bd7;}['_getExternalAuthor'](_0x1befde){const _0x41e5a6=this['editor']['plugins']['get']('Users'),_0x47687d=_0x5c8668('external:'+_0x1befde),_0x3b62b4=_0x41e5a6['getUser'](_0x47687d);return _0x3b62b4||_0x41e5a6['addUser']({'id':_0x47687d,'name':_0x1befde});}['_createSuggestion'](_0x580315,_0x139033,_0x49e19d,_0x21290b,_0x59ca40){const _0x4b0f08=this['_getAuthorFromId'](_0x21290b),_0x2fd66e=this['_suggestionFactory']['buildSuggestion'](_0x580315,_0x139033,_0x49e19d,_0x4b0f08,_0x59ca40,_0x438792=>{this['_updateSuggestionData'](_0x49e19d,{'attributes':_0x438792});const _0xc87c34=this['getSuggestion'](_0x49e19d);this['_joinWithAdjacentSuggestions'](new Set([_0xc87c34])),this['_refreshSuggestionsChain'](new Set([_0xc87c34]));});return this['listenTo'](_0x2fd66e,'accept',()=>{this['_updateSuggestionData'](_0x49e19d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2fd66e,'discard',()=>{this['_updateSuggestionData'](_0x49e19d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x49e19d,_0x2fd66e),this['_suggestionState']['set'](_0x2fd66e,'notReady'),_0x2fd66e;}['_splitMarkerName'](_0x30ca36){const _0x24102f=_0x30ca36['split'](':');return{'group':_0x24102f[0x0],'type':_0x24102f[0x1],'subType':_0x24102f['length']>=0x5?_0x24102f[0x2]:null,'id':_0x24102f['length']<0x5?_0x24102f[0x2]:_0x24102f[0x3],'authorId':_0x24102f['length']<0x5?_0x24102f[0x3]:_0x24102f[0x4],'markerCount':0x6==_0x24102f['length']?_0x24102f[0x5]:null};}['_breakSuggestionMarker'](_0x3321e5,_0x5d276b,_0x336b3a){const _0x320e6c=_0x3321e5['getFirstRange'](),_0x9e70e4=_0x320e6c['start'],_0x29817f=_0x320e6c['end'];this['_setSuggestionRange'](_0x3321e5,this['_model']['createRange'](_0x9e70e4,_0x5d276b));const _0x444d9e=_0x170805(),_0x3f8ec5=_0x3321e5['creator']['id'],_0x12c67a=_0x3321e5['type']+(_0x3321e5['subType']?':'+_0x3321e5['subType']:'');this['_setSuggestionData']({'id':_0x444d9e,'type':_0x12c67a,'createdAt':new Date(),'authorId':_0x3f8ec5,'originalSuggestionId':_0x3321e5['id'],'attributes':_0x3321e5['attributes'],'data':_0x3321e5['data']});const _0x4eb905=this['_getAttributeKey'](_0x3321e5);('formatBlock'==_0x3321e5['type']||_0x4eb905&&this['_isBlockAttribute'](_0x4eb905))&&(_0x336b3a=this['_model']['createPositionBefore'](_0x336b3a['parent'])),this['_addSuggestionMarker'](_0x12c67a,_0x444d9e,_0x3f8ec5,this['_model']['createRange'](_0x336b3a,_0x29817f));}['_findSuggestions'](_0x31b730,_0x1f1780=null){const _0x22bb0d=[],_0x33ac4c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31b730)||(_0x31b730=[_0x31b730]);for(const _0x360eef of this['getSuggestions']()){if(!_0x360eef['isInContent'])continue;if(_0x1f1780&&_0x360eef['type']!=_0x1f1780)continue;let _0x45ab50=!0x1;for(const _0x3dab62 of _0x360eef['getRanges']()){for(const _0xb9c7ea of _0x31b730){const _0x385f87=_0xb9c7ea['start']['isEqual'](_0x3dab62['end'])||_0xb9c7ea['end']['isEqual'](_0x3dab62['start']);if(_0x385f87||_0xb9c7ea['getIntersection'](_0x3dab62)){const _0x4f733a=_0xb9c7ea['containsRange'](_0x3dab62)&&Rt(this['_model']['schema'],_0x3dab62['start'],_0xb9c7ea),_0x435146=_0x3dab62['containsRange'](_0xb9c7ea)&&Rt(this['_model']['schema'],_0xb9c7ea['start'],_0x3dab62);_0x22bb0d['push']({'suggestion':_0x360eef,'meta':{'isOwn':_0x33ac4c==_0x360eef['author'],'isNextTo':_0x385f87,'isInsideObject':_0x4f733a,'containsRangeInObject':_0x435146}}),_0x45ab50=!0x0;break;}}if(_0x45ab50)break;}}return _0x22bb0d;}['_addSuggestionMarker'](_0x23c9b6,_0x28c046,_0x1e45d0,_0x2ef15a,_0x8610e1){this['_model']['change'](_0x55bbef=>{let _0x50b129='suggestion:'+_0x23c9b6+':'+_0x28c046+':'+_0x1e45d0;_0x8610e1&&(_0x50b129=_0x50b129+':'+_0x8610e1),_0x55bbef['addMarker'](_0x50b129,{'range':_0x2ef15a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5e5dad){const _0x3c7f98=_0x5e5dad['previous'],_0x154cb0=_0x5e5dad['next'];_0x5e5dad['previous']=null,_0x5e5dad['next']=null,null!=_0x3c7f98&&_0x3c7f98['next']==_0x5e5dad&&(_0x3c7f98['next']=_0x154cb0),null!=_0x154cb0&&_0x154cb0['previous']==_0x5e5dad&&(_0x154cb0['previous']=_0x3c7f98),'ready'==this['_suggestionState']['get'](_0x5e5dad)&&(this['_suggestionState']['set'](_0x5e5dad,'removed'),this['fire']('suggestionUnloaded',_0x5e5dad,_0x3c7f98,_0x154cb0));}['_setSuggestionData'](_0x33ee26){const _0x303e1e=_0x33ee26['id'],_0x35b603=this['addSuggestionData'](_0x33ee26);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x51436b=this['editor']['plugins']['get']('PendingActions'),_0x415bdd=_0x35b603['hasComments'],_0x2706dc=_0x35b603['subType']?_0x35b603['type']+':'+_0x35b603['subType']:_0x35b603['type'],_0x1077cf=this['editor']['locale'],_0x19803d=_0x51436b['add'](o(_0x1077cf,'PENDING_ACTION_SUGGESTION')),_0x2df687={'id':_0x303e1e,'type':_0x2706dc,'hasComments':_0x415bdd,'data':_0x33ee26['data']||null,'originalSuggestionId':_0x33ee26['originalSuggestionId']||null,'attributes':_0x35b603['attributes']};this['_adapter']['addSuggestion'](_0x2df687)['then'](_0x3ff837=>{_0x35b603['_saved']=!0x0,_0x51436b['remove'](_0x19803d),_0x3ff837&&_0x3ff837['createdAt']&&(this['_suggestions']['get'](_0x303e1e)['createdAt']=_0x3ff837['createdAt']);})['catch'](_0x258fa6=>{throw _0x2fcdf6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x35b603['discard']();}),_0x35b603['stopListening'](),this['_suggestions']['delete'](_0x35b603['id']),this['_suggestionState']['delete'](_0x35b603),_0x258fa6;});}return _0x35b603;}['_isBlockAttribute'](_0x305795){return this['_blockAttributeKeys']['has'](_0x305795);}['_updateSuggestionData'](_0x4b3305,_0x527cd4){const _0xf51cba=this['editor']['plugins']['get']('PendingActions'),_0x2bb734=this['getSuggestion'](_0x4b3305);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2bb734['_saved']){const _0x4984b2=_0xf51cba['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4b3305,_0x527cd4)['then'](()=>{_0xf51cba['remove'](_0x4984b2);});}else _0x2bb734['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4b3305,_0x527cd4);});}}['_getSuggestionData'](_0x59532f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x14405f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x59532f);}['_handleNewSuggestionMarker'](_0x6ecfbf){const {id:_0x3ced2c,type:_0x2f4700,subType:_0x2d318d,authorId:_0x12df79}=this['_splitMarkerName'](_0x6ecfbf),_0x1c5a52=this['_suggestions']['get'](_0x3ced2c)||this['_createSuggestion'](_0x2f4700,_0x2d318d,_0x3ced2c,_0x12df79,{});switch(this['_checkSuggestionCorrectness'](_0x1c5a52,_0x2f4700,_0x2d318d,_0x12df79),this['_suggestionState']['get'](_0x1c5a52)){case'notReady':this['_getSuggestionData'](_0x3ced2c)['then'](_0x16d12c=>{let _0xa982ec=Promise['resolve']();_0x16d12c['hasComments']&&(_0xa982ec=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3ced2c})),_0xa982ec['then'](()=>{this['addSuggestionData'](_0x16d12c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1c5a52,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3ced2c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1c5a52,'ready'),this['fire']('suggestionLoaded',_0x1c5a52);break;case'ready':this['fire']('suggestionChanged',_0x1c5a52);}return _0x1c5a52['addMarkerName'](_0x6ecfbf),_0x1c5a52;}['_refreshSuggestionsChain'](_0xc35cbb){const _0x3d750a=Array['from'](_0xc35cbb),_0x1b6b9f=_0x3d750a['filter'](_0x2ee271=>'attribute'==_0x2ee271['type']);this['_refreshAttributeSuggestionsChain'](_0x1b6b9f);const _0x4b16a7=_0x3d750a['filter'](_0x1cc825=>!_0x1cc825['isMultiRange']&&'attribute'!=_0x1cc825['type']),_0x1b015d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fd9e0=>!_0x1fd9e0['isMultiRange']&&'attribute'!=_0x1fd9e0['type']),_0x4a074f=_0x1b015d['filter'](_0x437726=>!_0xc35cbb['has'](_0x437726)),_0x45c301=new Map(_0x1b015d['map'](_0x3fee18=>[_0x3fee18,this['_suggestionFactory']['getSuggestionCallback'](_0x3fee18['type'],_0x3fee18['subType'],'chain')])),_0x54d93c=new Map(_0x1b015d['map'](_0x593b6a=>[_0x593b6a,_0x593b6a['getFirstRange']()])),_0x5c89e2=new Set(),_0x28b9a8=new Set();for(let _0x3c6699=0x0;_0x3c6699<_0x4b16a7['length'];_0x3c6699++)_0x156e46(_0x4b16a7[_0x3c6699],_0x4b16a7,_0x3c6699+0x1);for(let _0x49071c=0x0;_0x49071c<_0x4b16a7['length'];_0x49071c++)_0x156e46(_0x4b16a7[_0x49071c],_0x4a074f,0x0);const _0x1b5b01=new Set();for(let _0x2c46a3=0x0;_0x2c46a3<_0x4b16a7['length'];_0x2c46a3++){const _0x72407f=_0x4b16a7[_0x2c46a3];!_0x28b9a8['has'](_0x72407f)&&_0x72407f['previous']&&(_0x1b5b01['add'](_0x72407f['previous']),_0x72407f['previous']['next']===_0x72407f&&(_0x72407f['previous']['next']=null),_0x72407f['previous']=null),!_0x5c89e2['has'](_0x72407f)&&_0x72407f['next']&&(_0x1b5b01['add'](_0x72407f['next']),_0x72407f['next']['previous']===_0x72407f&&(_0x72407f['next']['previous']=null),_0x72407f['next']=null);}function _0x156e46(_0x49e212,_0x3ede8c,_0x1c3b55){for(let _0x2e3962=_0x1c3b55;_0x2e3962<_0x3ede8c['length'];_0x2e3962++){const _0x1567af=_0x325199(_0x49e212,_0x3ede8c[_0x2e3962]);_0x1567af&&(_0x1567af[0x0]['next']=_0x1567af[0x1],_0x1567af[0x1]['previous']=_0x1567af[0x0],_0x5c89e2['add'](_0x1567af[0x0]),_0x28b9a8['add'](_0x1567af[0x1]));}}function _0x325199(_0x15e4e4,_0x50c9c8){if(_0x15e4e4['author']['id']!==_0x50c9c8['author']['id'])return null;const _0x1cbfab=_0x45c301['get'](_0x15e4e4)(_0x15e4e4,_0x50c9c8,_0x54d93c['get'](_0x15e4e4),_0x54d93c['get'](_0x50c9c8));if(!_0x1cbfab)return null;return _0x45c301['get'](_0x50c9c8)(_0x15e4e4,_0x50c9c8,_0x54d93c['get'](_0x15e4e4),_0x54d93c['get'](_0x50c9c8))?_0x1cbfab[0x1]['commentThread']&&_0x1cbfab[0x1]['commentThread']['length']?null:_0x1cbfab:null;}_0x1b5b01['size']&&this['_refreshSuggestionsChain'](_0x1b5b01);}['_refreshAttributeSuggestionsChain'](_0x4f6d18){if(0x0==_0x4f6d18['length'])return;const _0x4f0587=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x372e9a=>'attribute'==_0x372e9a['type']&&_0x372e9a['_isDataLoaded']),_0x3457d3=[],_0x165a58=new Map();for(const _0xa4f47b of _0x4f0587){const _0x26bb13=_0x5c8668(_0xa4f47b['attributes']);_0x165a58['has'](_0x26bb13)||(_0x165a58['set'](_0x26bb13,_0x3457d3['length']),_0x3457d3['push']([]));const _0x22fee2=_0x165a58['get'](_0x26bb13);_0x3457d3[_0x22fee2]['push'](_0xa4f47b);}!(function(){_0x3457d3['sort']((_0x29b633,_0x5eb9b5)=>{const _0x174c6b=_0x29b633[0x0]['createdAt'],_0x3370b7=_0x5eb9b5[0x0]['createdAt'];return _0x174c6b==_0x3370b7?_0x29b633[0x0]['attributes']['groupId']<_0x5eb9b5[0x0]['attributes']['groupId']?-0x1:0x1:_0x174c6b<_0x3370b7?-0x1:0x1;});for(const _0x3daed1 of _0x3457d3)_0x3daed1['sort']((_0x368242,_0x5b8b6c)=>_0x368242['id']<_0x5b8b6c['id']?-0x1:0x1);}());for(let _0x17cf29=0x0;_0x17cf29<_0x3457d3['length'];_0x17cf29++){if(0x0==_0x3457d3[_0x17cf29]['length'])continue;const _0x5afa83=[];for(let _0x583f39=_0x17cf29+0x1;_0x583f39<_0x3457d3['length'];_0x583f39++)0x0!=_0x3457d3[_0x583f39]['length']&&_0x42c570(_0x3457d3[_0x17cf29],_0x3457d3[_0x583f39])&&_0x5afa83['push'](_0x583f39);for(const _0x6051b2 of _0x5afa83)_0x3457d3[_0x17cf29]=_0x3457d3[_0x17cf29]['concat'](_0x3457d3[_0x6051b2]),_0x3457d3[_0x6051b2]=[];}for(const _0x43969b of _0x3457d3)for(let _0x25d351=0x0;_0x25d351<_0x43969b['length'];_0x25d351++)_0x43969b[_0x25d351]['next']=_0x43969b[_0x25d351+0x1]||null;for(const _0x43c862 of _0x3457d3)for(let _0x4bde43=0x0;_0x4bde43<_0x43c862['length'];_0x4bde43++)_0x43c862[_0x4bde43]['previous']=_0x43c862[_0x4bde43-0x1]||null;function _0x42c570(_0x4f5925,_0x569f25){if(_0x4f5925[0x0]['attributes']['groupId']!==_0x569f25[0x0]['attributes']['groupId']&&_0x4f5925[0x0]['author']!==_0x569f25[0x0]['author'])return!0x1;if(!function(_0x587fcc,_0x5d0f54){if(!_0x587fcc['hasComments']&&!_0x5d0f54['hasComments'])return!0x0;if(_0x587fcc['hasComments']&&_0x5d0f54['hasComments'])return!0x1;if(_0x587fcc['hasComments']&&_0x5d0f54['createdAt']<_0x587fcc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5d0f54['hasComments']&&_0x587fcc['createdAt']<_0x5d0f54['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4f5925[0x0],_0x569f25[0x0]))return!0x1;const _0x3b547=Bt(_0x4f5925[0x0]['attributes'],'groupId'),_0x36231f=Bt(_0x569f25[0x0]['attributes'],'groupId');if(!_0x38e5db(_0x3b547,_0x36231f))return!0x1;return!!_0x4f5925['every'](_0x39f85c=>_0x569f25['some'](_0x3a577a=>_0x39f85c['getFirstRange']()['isEqual'](_0x3a577a['getFirstRange']())))&&_0x569f25['every'](_0x5f382c=>_0x4f5925['some'](_0x275bff=>_0x5f382c['getFirstRange']()['isEqual'](_0x275bff['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xbb5951){const _0x262dfd=Array['from'](_0xbb5951),_0x372c89=this['getSuggestions']({'skipNotAttached':!0x0}),_0x248e8e=_0x372c89['filter'](_0x1d3dd8=>!_0xbb5951['has'](_0x1d3dd8)),_0x24e97f=new Map(_0x262dfd['map'](_0x9f9d39=>[_0x9f9d39,this['_suggestionFactory']['getSuggestionCallback'](_0x9f9d39['type'],_0x9f9d39['subType'],'join')])),_0x21b428=new Map(_0x372c89['map'](_0x2344c1=>[_0x2344c1,_0x2344c1['getRanges']()]));for(let _0x59283c=0x0;_0x59283c<_0x262dfd['length'];_0x59283c++){if(_0x4b0bf5(this,_0x262dfd[_0x59283c],_0x262dfd,_0x59283c+0x1))return!0x0;}for(let _0x311022=0x0;_0x311022<_0x262dfd['length'];_0x311022++){if(_0x4b0bf5(this,_0x262dfd[_0x311022],_0x248e8e,0x0))return!0x0;}return!0x1;function _0x4b0bf5(_0x56d216,_0x5d8d80,_0x236903,_0x1b9814){for(let _0x416e56=_0x1b9814;_0x416e56<_0x236903['length'];_0x416e56++){const _0x56bab9=_0x236903[_0x416e56];if(_0x56bab9['type']!==_0x5d8d80['type']||_0x56bab9['author']['id']!==_0x5d8d80['author']['id']||_0x56bab9['subType']!==_0x5d8d80['subType'])continue;if(!Pt(_0x5d8d80,_0x56bab9,['groupId']))continue;if('attribute'==_0x5d8d80['type']&&_0x5d8d80['data']['oldValue']!=_0x56bab9['data']['oldValue'])continue;if('attribute'==_0x5d8d80['type']&&_0x56d216['_isBlockAttribute'](_0x5d8d80['data']['key']))continue;if('formatBlock'==_0x5d8d80['type']){const _0x5080b0=_0x56d216['editor']['model'],_0x40dfdf=_0x5d8d80['getContainedElement']();if(_0x40dfdf&&(_0x5080b0['schema']['isObject'](_0x40dfdf)||_0x5080b0['schema']['isLimit'](_0x40dfdf)))continue;}const _0x4599ef=_0x24e97f['get'](_0x5d8d80),_0x217b87=_0x21b428['get'](_0x5d8d80),_0x20b78c=_0x21b428['get'](_0x56bab9),_0x5b14eb=_0x5d8d80['commentThread']&&_0x5d8d80['commentThread']['length'],_0x5e7bc5=_0x56bab9['commentThread']&&_0x56bab9['commentThread']['length'];if(!_0x5b14eb&&_0x4599ef(_0x20b78c,_0x217b87))return _0x56d216['_joinSuggestions'](_0x56bab9,_0x5d8d80),_0x21b428['delete'](_0x5d8d80),!0x0;if(!_0x5e7bc5&&_0x4599ef(_0x217b87,_0x20b78c))return _0x56d216['_joinSuggestions'](_0x5d8d80,_0x56bab9),_0x21b428['delete'](_0x56bab9),!0x0;}return!0x1;}}['_joinSuggestions'](_0xf184d2,_0x508b9a){if(_0xf184d2['isMultiRange']){for(const _0x44dab8 of _0x508b9a['getRanges']())_0xf184d2['addRange'](_0x44dab8);}else{const _0x19ada0=_0x508b9a['getFirstRange']()['end'];this['_setSuggestionRange'](_0xf184d2,this['_model']['createRange'](_0xf184d2['getFirstRange']()['start'],_0x19ada0));}_0x508b9a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x14c0c7,_0x5a7fc1){const _0x50a088=_0x14c0c7['startsWith']('format')||_0x14c0c7['startsWith']('attribute')?'FORMATTING':_0x14c0c7['toUpperCase']();return o(this['editor']['locale'],_0x5a7fc1+'_'+_0x50a088+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x1b7598=this['editor'];if(!_0x1b7598['ui'])return;const {ariaLiveAnnouncer:_0x644e99}=_0x1b7598['ui'];_0x3b5c63(this['_model'],({left:_0x5a616d,entered:_0x29b788})=>{for(const _0x36c103 of _0x5a616d){const {group:_0x41a3b7,type:_0x3ad7f8}=this['_splitMarkerName'](_0x36c103['name']);if('suggestion'===_0x41a3b7){_0x644e99['announce'](this['_getMarkerAnnouncementText'](_0x3ad7f8,'LEAVE'));break;}}for(const _0x4ca4db of _0x29b788){const {group:_0x1d5089,type:_0x4c5682}=this['_splitMarkerName'](_0x4ca4db['name']);if('suggestion'===_0x1d5089){_0x644e99['announce'](this['_getMarkerAnnouncementText'](_0x4c5682,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4da3d1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4912a4=this['editor'],_0x535142=_0x4912a4['model']['document']['differ']['getChanges']();if(0x0==_0x535142['length'])return!0x1;const _0x28a557=[],_0x141062=_0x535142['filter'](_0x158be0=>'attribute'==_0x158be0['type']),_0x3def22=_0x535142['filter'](_0x4afd6e=>'insert'==_0x4afd6e['type']&&'$text'!=_0x4afd6e['name']),_0x418a46=_0x535142['filter'](_0x289fc0=>'remove'==_0x289fc0['type']&&'$text'!=_0x289fc0['name']);for(const _0x1c577c of _0x141062)_0x28a557['push']({'key':_0x1c577c['attributeKey'],'newValue':_0x1c577c['attributeNewValue'],'oldValue':_0x1c577c['attributeOldValue'],'range':Ot(_0x1c577c['range'],_0x4912a4['model'])});for(const _0x18934a of _0x3def22){const _0x4337e8=_0x418a46['find'](_0x31efb0=>_0x31efb0['position']['isEqual'](_0x18934a['position']));_0x4337e8&&_0x28a557['push']({'key':m,'newValue':_0x18934a['name'],'oldValue':_0x4337e8['name'],'range':_0x4912a4['model']['createRangeOn'](_0x18934a['position']['nodeAfter'])});}return 0x0!=_0x28a557['length']&&this['_reduceExistingSuggestions'](_0x4da3d1,_0x28a557);}['_processAttributeSuggestions'](_0x930b9a){let _0x2d2918=!0x1;const _0x83a7de=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x29823a=>_0x29823a['data']['newRange']&&_0x29823a['name']['startsWith']('suggestion:attribute:'));for(const _0x189fcf of _0x83a7de){const {subType:_0x335f89,id:_0xea2e24}=this['_splitMarkerName'](_0x189fcf['name']),_0x4d1cc1=_0x335f89['split']('|')[0x0];for(const _0x111ba5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x111ba5['id']!=_0xea2e24&&'attribute'==_0x111ba5['type']&&_0x111ba5['data']&&_0x111ba5['data']['key']==_0x4d1cc1&&_0x111ba5['getFirstRange']()['isIntersecting'](_0x189fcf['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x111ba5,_0x189fcf['data']['newRange'],_0x930b9a),_0x2d2918=!0x0);}return _0x2d2918;}['_recordAttributeChanges'](_0x4c8285){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4c8285();}['_isRegisteredAttribute'](_0xa3b5f0){const _0xfed3c7=this['_isBlockAttribute'](_0xa3b5f0),_0x40ffb4=this['_inlineAttributeKeys']['has'](_0xa3b5f0);return _0xfed3c7||_0x40ffb4;}['_reduceExistingSuggestions'](_0x1b160f,_0xf3d6c9){if(0x0==_0xf3d6c9['length'])return!0x1;let _0x466d65=!0x1;for(const _0x110dc7 of _0xf3d6c9){const _0x4331e9=this['_findSuggestions'](_0x110dc7['range'],'attribute')['filter'](_0x15520b=>!_0x15520b['meta']['isNextTo'])['map'](_0x36aec1=>_0x36aec1['suggestion']),_0x55a42e=_0x5c8668({'newValue':_0x110dc7['newValue']});_0x4331e9['filter'](_0x245023=>{const [_0x23f27b,_0x14fc34]=_0x245023['subType']['split']('|');return _0x23f27b==_0x110dc7['key']&&_0x14fc34!=_0x55a42e;})['forEach'](_0x375008=>{this['_reduceSuggestionAttributeRange'](_0x375008,_0x110dc7['range'],_0x1b160f),_0x466d65=!0x0;});}return _0x466d65;}['_reduceSuggestionAttributeRange'](_0x547fae,_0xd37159,_0x15c39b){const _0x47bc18=_0x547fae['getFirstRange']()['getDifference'](_0xd37159);0x0!==_0x47bc18['length']?0x1!==_0x47bc18['length']?this['_breakSuggestionMarker'](_0x547fae,_0xd37159['start'],_0xd37159['end']):this['_setSuggestionRange'](_0x547fae,_0x47bc18[0x0]):_0x15c39b['removeMarker'](_0x547fae['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x52c700){this['_editor']=_0x52c700,this['_model']=_0x52c700['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x181ec3,_0x32a836,_0x396d82,_0x432a07,_0x1b6a33,_0xa3aff4){return new u(this['_model'],{'type':_0x181ec3,'subType':_0x32a836,'id':_0x396d82,'author':_0x432a07,'creator':_0x432a07,'attributes':_0x1b6a33,'onAttributesChange':_0xa3aff4,'onAccept':(..._0x205201)=>this['getSuggestionCallback'](_0x181ec3,_0x32a836,'accept')(..._0x205201),'onDiscard':(..._0x5738ad)=>this['getSuggestionCallback'](_0x181ec3,_0x32a836,'discard')(..._0x5738ad)});}['registerCustomCallback'](_0x148fa2,_0x438b30,_0x33cf95,_0x2d5084){const _0x21661c=_0x148fa2+':'+_0x438b30+':'+_0x33cf95;this['_customCallbacks']['set'](_0x21661c,_0x2d5084);}['getSuggestionCallback'](_0x1f4673,_0x9376fb,_0x5b4ce4){const _0x2bee3d=_0x1f4673+':'+_0x9376fb+':'+_0x5b4ce4;return this['_customCallbacks']['get'](_0x2bee3d)||this['_defaultCallbacks']['get'](_0x1f4673+':'+_0x5b4ce4);}['_registerDefaultCallbacks'](){const _0x5da9b3=()=>!0x1,_0x1c564d=_0x40e38b=>{_0x40e38b['sort']((_0x55c4b3,_0x1f7fe9)=>_0x55c4b3['start']['isBefore'](_0x1f7fe9['start'])?0x1:-0x1),this['_model']['change'](_0x3b4686=>{for(const _0x2e0e11 of _0x40e38b){let _0x549747;_0x549747=_0x2e0e11['end']['isAtEnd']&&_0x2e0e11['end']['parent']==_0x2e0e11['start']['nodeAfter']?_0x3b4686['createSelection'](_0x2e0e11['start']['nodeAfter'],'on'):_0x3b4686['createSelection'](_0x2e0e11),this['_model']['deleteContent'](_0x549747,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x7f0046=(_0xcf9f2d,_0x108cec)=>{_0x108cec&&this['_model']['change'](_0x149560=>{const {commandName:_0x349240,commandParams:_0x29196e=[]}=_0x108cec,_0x29d6a5=_0xcf9f2d['map'](_0x279919=>(Tt(_0x279919)&&(_0x279919=this['_model']['createRange'](_0x279919['end'])),_0x279919))['filter'](_0x54060d=>'$graveyard'!==_0x54060d['root']['rootName']);if(_0x29d6a5['length']<0x1)return;const _0x2bde6c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x47a98b=>_0x17a41d['fromRange'](_0x47a98b));_0x149560['setSelection'](_0x29d6a5);for(const _0x15918d of this['_editor']['commands']['commands']())_0x15918d['refresh']();_0x29196e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x349240,..._0x29196e);const _0x3e4254=_0x2bde6c['filter'](_0xb28d3e=>'$graveyard'!=_0xb28d3e['root']['rootName']);_0x3e4254['length']>0x0&&_0x149560['setSelection'](_0x3e4254);for(const _0x4c44fe of _0x2bde6c)_0x4c44fe['detach']();});},_0x3c6c7d=(_0xceacbb,_0x384b7f)=>0x1==_0xceacbb['length']&&0x1==_0x384b7f['length']&&_0xceacbb[0x0]['end']['isEqual'](_0x384b7f[0x0]['start']),_0x45164a=(_0x1c81ee,_0x48c2e1,_0x57bead,_0x4a6df)=>Ft(_0x1c81ee,_0x48c2e1,_0x57bead,_0x4a6df,this['_model'])?[_0x1c81ee,_0x48c2e1]:Ft(_0x48c2e1,_0x1c81ee,_0x4a6df,_0x57bead,this['_model'])?[_0x48c2e1,_0x1c81ee]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5da9b3),this['_defaultCallbacks']['set']('insertion:discard',_0x1c564d),this['_defaultCallbacks']['set']('insertion:join',_0x3c6c7d),this['_defaultCallbacks']['set']('insertion:chain',_0x45164a),this['_defaultCallbacks']['set']('deletion:accept',_0x1c564d),this['_defaultCallbacks']['set']('deletion:discard',_0x5da9b3),this['_defaultCallbacks']['set']('deletion:join',_0x3c6c7d),this['_defaultCallbacks']['set']('deletion:chain',_0x45164a),this['_defaultCallbacks']['set']('formatInline:accept',_0x7f0046),this['_defaultCallbacks']['set']('formatInline:discard',_0x5da9b3),this['_defaultCallbacks']['set']('formatInline:join',_0x3c6c7d),this['_defaultCallbacks']['set']('formatInline:chain',_0x5da9b3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x7f0046),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5da9b3),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c6c7d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5da9b3),this['_defaultCallbacks']['set']('attribute:accept',_0x5da9b3),this['_defaultCallbacks']['set']('attribute:discard',(_0x3555e4,_0x4a55cd)=>{if(!_0x4a55cd)return;const _0x1f32fa=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2ea707=>{if(_0x4a55cd['key']==m)for(const _0xb37d7e of _0x3555e4){const _0x5b1c1b=_0xb37d7e['start']['nodeAfter'],_0x14c8f7=_0x4a55cd['oldValue'];_0x2ea707['rename'](_0x5b1c1b,_0x14c8f7);}else{if(_0x1f32fa['_isBlockAttribute'](_0x4a55cd['key'])){for(const _0xd5a0c9 of _0x3555e4)void 0x0!==_0x4a55cd['oldValue']?_0x2ea707['setAttribute'](_0x4a55cd['key'],_0x4a55cd['oldValue'],_0xd5a0c9['start']['nodeAfter']):_0x2ea707['removeAttribute'](_0x4a55cd['key'],_0xd5a0c9['start']['nodeAfter']);}else{for(const _0xc64267 of _0x3555e4)_0x4a55cd['oldValue']?_0x2ea707['setAttribute'](_0x4a55cd['key'],_0x4a55cd['oldValue'],_0xc64267):_0x2ea707['removeAttribute'](_0x4a55cd['key'],_0xc64267);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c6c7d);}}function Rt(_0x12eb64,_0x361301,_0x29c1f8){for(const _0x40a6cc of _0x361301['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x40a6cc['root']==_0x40a6cc)return!0x1;if(!_0x29c1f8['containsItem'](_0x40a6cc))return!0x1;if(_0x12eb64['isObject'](_0x40a6cc)||_0x12eb64['isLimit'](_0x40a6cc))return!0x0;}return!0x1;}function Tt(_0x2d384b){return _0x2d384b['end']['parent']==_0x2d384b['start']['nodeAfter']&&_0x2d384b['end']['isAtStart'];}function Et(_0x1232f9,_0x1fb285,_0xa72ef8,_0x304beb){const _0x918451=_0xd8f908=>!_0xd8f908['item']['is']('$textProxy')&&!_0x304beb['isObject'](_0xd8f908['item']),_0x49ef5b=_0x1232f9['start']['getLastMatchingPosition'](_0x918451),_0x4e0907=_0x1232f9['end']['getLastMatchingPosition'](_0x918451,{'direction':'backward'});return(!_0x1232f9['start']['isEqual'](_0x49ef5b)||!_0x1232f9['end']['isEqual'](_0x4e0907))&&(_0x49ef5b['isBefore'](_0x4e0907)?_0xa72ef8['updateMarker'](_0x1fb285,{'range':_0xa72ef8['createRange'](_0x49ef5b,_0x4e0907)}):_0xa72ef8['removeMarker'](_0x1fb285),!0x0);}function Vt(_0x346f29){return _0x5c8668(_0x346f29);}function Ut(_0x23b9de){const _0x246439=_0x23b9de['start']['nodeAfter'];return _0x246439&&_0x246439['is']('element');}function Ot(_0x26a44b,_0x4b3fd2){return null==_0x26a44b['end']['nodeBefore']&&_0x26a44b['end']['parent']==_0x26a44b['start']['nodeAfter']?Gt(_0x26a44b['start']['nodeAfter'],_0x4b3fd2):_0x26a44b;}function Gt(_0x252b35,_0x1a55d6){const _0x5036c1=_0x1a55d6['schema']['isObject'](_0x252b35)||_0x1a55d6['schema']['isSelectable'](_0x252b35);return _0x1a55d6['createRange'](_0x1a55d6['createPositionAt'](_0x252b35,'before'),_0x5036c1?_0x1a55d6['createPositionAfter'](_0x252b35):_0x1a55d6['createPositionAt'](_0x252b35,'end'));}function Ft(_0x16790e,_0x2a77d6,_0x2378b8,_0x479821,_0x2b6797){if(!Pt(_0x16790e,_0x2a77d6))return!0x1;if(_0x2378b8['end']['isEqual'](_0x479821['start']))return!0x0;if(_0x16790e['type']!=_0x2a77d6['type'])return!0x1;if(!_0x2378b8['end']['isTouching'](_0x479821['start']))return!0x1;const _0x16b4e8=_0x2b6797['createRange'](_0x2378b8['end'],_0x479821['start'])['getWalker']();for(const _0x5f4c78 of _0x16b4e8)if(['elementStart','elementEnd']['includes'](_0x5f4c78['type'])&&_0x2b6797['schema']['isLimit'](_0x5f4c78['item']))return!0x1;return!0x0;}function Pt(_0x25345f,_0x1fdae7,_0x3a1cd1=[]){return!(!_0x25345f['_isDataLoaded']||!_0x1fdae7['_isDataLoaded'])&&_0x38e5db(Bt(_0x25345f['attributes'],_0x3a1cd1),Bt(_0x1fdae7['attributes'],_0x3a1cd1));}function Lt(_0x3335bf,_0x230d25){const _0x439e17=Ht(_0x3335bf['attributes']),_0x103ce8=Ht(_0x230d25);if(!_0x3335bf['_isDataLoaded'])return!0x1;for(const _0x4da8f7 of Object['keys'](_0x103ce8))if(!_0x38e5db(_0x439e17[_0x4da8f7],_0x103ce8[_0x4da8f7]))return!0x1;return!0x0;}function Ht(_0x259e3e){const _0x4841ac=Object['assign']({},_0x259e3e);return delete _0x4841ac['skipNestingCheck'],delete _0x4841ac['tablePasteChainId'],_0x4841ac;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x1e54e4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x49c1ab,_0x230832,_0x930f77,_0x7a9b59){super(),this['model']=_0x230832,this['view']=_0x930f77,this['commentThreadController']=_0x7a9b59,this['_editor']=_0x49c1ab,this['_acceptCommand']=_0x49c1ab['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x49c1ab['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x53f1e8,_0x24e803)=>_0x53f1e8||_0x24e803),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5494b6=>_0x5494b6&&this['_editor']['model']['canEditAt'](_0x230832['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x181d15=>_0x181d15&&this['_editor']['model']['canEditAt'](_0x230832['getRanges']())),this['_pendingAction']=null,_0x930f77['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x930f77,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x930f77,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x930f77,'change:isDirty',()=>{_0x930f77['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 _0x7b2683=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x7b2683);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x132995{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x44f89e,_0x4a821c,_0x507b25,_0x27748f){super(_0x44f89e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4a821c['authoredAt']),this['bind']('authoredAt')['to'](_0x4a821c),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4a821c,this['_localUser']=_0x507b25,this['_config']=_0x27748f,_0x27748f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4bfad1}=this['_config'];this['commentsListView']=new _0x4bfad1(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',_0x125808=>_0x125808+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x26dbec,_0x5d9374)=>_0x26dbec||!!_0x5d9374);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x269252}=this['_config'],_0x119577=new _0x269252(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x29ed2b=_0x119577['commentInputView'];return _0x119577['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x29ed2b,'value',(_0x5d0aff,_0x29bc1b,_0x8d1c38)=>!!_0x8d1c38||_0x5d0aff&&!_0x29bc1b),_0x29ed2b['on']('submit',(_0x3f7e35,_0x4852ee)=>{this['fire']('addComment',_0x4852ee),_0x29ed2b['editor']['setData']('');}),_0x29ed2b['on']('cancel',()=>this['focus']()),_0x29ed2b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x119577;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x45f018,_0x5e12ef,_0x722c98,_0x4cf36e){super(_0x45f018,_0x5e12ef,_0x722c98,_0x4cf36e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x8ea285=>_0x8ea285&&_0x8ea285[0x0]?_0x8ea285[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x172ca6,_0x552bfa)=>{let _0x1daa67='';for(const _0x4afd15 of _0x172ca6)_0x1daa67+='<p>'+ds(_0x4afd15['content'],_0x4afd15['color'])+'</p>';return _0x552bfa?_0x1daa67:_0x19fc22(_0x1daa67,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x45f018,'Accept\x20suggestion'),_0x2586bb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x45f018,'Discard\x20suggestion'),_0x2586bb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x417ad4(_0x45f018,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x22e5e9=this['bindTemplate'],_0xfcba7f=[{'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':_0x22e5e9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x22e5e9['to']('authoredAt',_0x4740f8=>this['_config']['formatDateTime'](_0x4740f8))}]}]},{'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']&&_0xfcba7f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xd787f4={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x22e5e9['if']('isActive','ck-suggestion-wrapper--active'),_0x22e5e9['to']('type',_0x17bef3=>'ck-suggestion-'+_0x17bef3),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0xfcba7f}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xd787f4['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)),_0xd787f4;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x46f51c,_0x52fadb,_0x4691ec)=>{this['_descriptionElement']['innerHTML']=_0x4691ec;});}['_createButton'](_0x401dad,_0x309eb0,_0x602d9e,_0x56ac58,_0x1ae210){const _0x2495ee=new _0x4ae867(this['locale']);return _0x2495ee['set']({'label':_0x401dad,'icon':_0x309eb0,'tooltip':!0x0,'tooltipPosition':_0x1ae210}),_0x2495ee['extendTemplate']({'attributes':{'class':_0x602d9e}}),_0x2495ee['on']('execute',()=>{this['fire'](_0x56ac58,this['_model']['id']);}),_0x2495ee;}['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;}}function ds(_0x33c10a,_0x5cd8d5){let _0x24d937='';return _0x24d937+=_0x33c10a['split']('*')['map']((_0x2ddd9f,_0x101775)=>_0x101775%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x2ddd9f)+'</span>':us(_0x2ddd9f))['join'](''),_0x5cd8d5&&(_0x24d937+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5cd8d5['value']+'\x22\x20title=\x22'+_0x5cd8d5['title']+'\x22></span>'),_0x24d937;}function us(_0x5a4b1f){const _0x30c7a4=document['createElement']('span');return _0x30c7a4['innerText']=_0x5a4b1f,_0x30c7a4['innerHTML'];}var ie='<!--\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 _0x56c567{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x445e78,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x11fda3){super(_0x11fda3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5a54b3=this['editor']['config'];_0x5a54b3['define']('trackChanges.SuggestionThreadView',ne),_0x5a54b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5a54b3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x47a146,_0x454d14){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d753c,_0x23ea96]of this['_handleControllerBuffer']){const _0x2641fe=this['_suggestionToController']['has'](_0x1d753c);_0x2641fe||_0x23ea96?_0x2641fe&&_0x23ea96&&this['_destroyController'](_0x1d753c):this['_initializeController'](_0x1d753c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x47a146,_0x454d14);}['init'](){const _0x4a9e8d=this['editor'],_0xb5586d=_0x4a9e8d['plugins']['get']('TrackChangesEditing'),_0x481bca=_0x4a9e8d['plugins']['get']('Annotations'),_0x59b77b=_0x4a9e8d['plugins']['get']('EditorAnnotations'),_0x57df86=_0x4a9e8d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x59b77b['addSourceCollector'](()=>{const _0x5654de=[];for(const [_0x2674f4,_0xad38c0]of Array['from'](this['_suggestionToController'])){const _0x261cd4=_0x2674f4['getAllAdjacentSuggestions'](),_0x2981f8=[];for(const _0x39953d of _0x261cd4){if(!_0x39953d['isInContent'])continue;if(_0x39953d['isMultiRange']){_0x2981f8['push'](..._0x39953d['getRanges']());continue;}const _0x1aeec7=_0x39953d['getFirstRange']();if(_0x2981f8['length']>0x0){const _0x211625=_0x2981f8[0x0]['getJoined'](_0x1aeec7);if(_0x211625){_0x2981f8[0x0]=_0x211625;continue;}}_0x2981f8['push'](_0x1aeec7);}_0x5654de['push']([_0xad38c0['view'],_0x2981f8]);}return _0x5654de;}),this['listenTo'](_0xb5586d,'suggestionLoaded',(_0x2c7e51,_0x24ef6d)=>{this['listenTo'](_0x24ef6d,'change:previous',(_0xb66658,_0x141dc8,_0x2e7e30,_0xcba4bf)=>{_0x24ef6d['isInContent']&&(null==_0x2e7e30?(this['_updateController'](_0xcba4bf['head']),this['_handleSuggestionControllerDelayed'](_0x24ef6d,!0x1)):(this['_updateController'](_0x2e7e30['head']),null==_0xcba4bf&&this['_handleSuggestionControllerDelayed'](_0x24ef6d,!0x0)));}),null!==_0x24ef6d['previous']?this['_updateController'](_0x24ef6d['head']):this['_handleSuggestionControllerDelayed'](_0x24ef6d,!0x1);}),this['listenTo'](_0xb5586d,'suggestionUnloaded',(_0x20d155,_0x184b7d,_0x5e4639)=>{this['stopListening'](_0x184b7d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x184b7d),this['_suggestionToController']['has'](_0x184b7d)&&this['_destroyController'](_0x184b7d),_0x5e4639&&this['_updateController'](_0x5e4639['head']);}),this['listenTo'](_0xb5586d,'suggestionChanged',(_0x4b4a51,_0x354137)=>{this['_updateController'](_0x354137);}),this['listenTo'](_0x481bca,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x57df86,'addComment',(_0x40e7bb,{threadId:_0x33e9c5,isFromAdapter:_0x5d47a7})=>{if(_0x5d47a7||!_0xb5586d['hasSuggestion'](_0x33e9c5))return;const _0x689aa2=_0xb5586d['getSuggestion'](_0x33e9c5);this['_suggestionToController']['get'](_0x689aa2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xead83f=this['editor']['plugins']['get']('Annotations'),_0xb1fb9c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x344f20=Array['from'](_0xead83f['activeAnnotations'],_0x213eba=>_0x213eba['innerView'])['filter'](_0x478000=>this['_viewToController']['has'](_0x478000)),_0x38a0b6=[];for(const _0x5bad4b of _0x344f20){const _0x4ff778=this['_viewToController']['get'](_0x5bad4b)['model']['getAllAdjacentSuggestions']();_0x38a0b6['push'](..._0x4ff778['reduce']((_0x5f7785,_0x261615)=>[..._0x5f7785,..._0x261615['getMarkerNames']()],[]));}_0xb1fb9c['activeMarkers']=_0x38a0b6;}['_addUIComponentsToFactory'](){const _0x5c2c44=this['editor'],_0x352d2a=_0x5c2c44['locale'],_0x4b0266=o(_0x352d2a,'Track\x20changes'),_0x5e38a5=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x4b0266,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x352d2a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x352d2a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x352d2a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x352d2a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x40d561 of _0x5e38a5)if(ae(_0x40d561)){const _0x1e8aa0=_0x5c2c44['commands']['get'](_0x40d561['model']['commandName']);_0x40d561['model']['bind']('isOn','isEnabled')['to'](_0x1e8aa0,'value','isEnabled');}_0x5c2c44['ui']['componentFactory']['add']('trackChanges',_0xd79c03=>this['_createToolbarButton'](_0xd79c03,_0x5e38a5,_0x4b0266)),_0x5c2c44['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4792cd=>this['_createMenuBarMenu'](_0x4792cd,_0x5e38a5,_0x4b0266));}['_createToolbarButton'](_0xdfbf97,_0x51fd2e,_0x131451){const _0x2b0802=zt(_0xdfbf97,Zt),_0x5ca334=this['editor']['commands']['get']('trackChanges');_0x2b0802['buttonView']['set']({'tooltip':_0x131451,'label':_0x131451,'icon':ie}),_0x2b0802['buttonView']['bind']('isOn')['to'](_0x5ca334,'value'),_0x2b0802['buttonView']['on']('execute',()=>{_0x5ca334['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2b0802,_0x51fd2e,{'role':'menu'});const _0x17d89e=[];for(const _0x2e1ce5 of _0x51fd2e)ae(_0x2e1ce5)&&_0x17d89e['push'](this['editor']['commands']['get'](_0x2e1ce5['model']['commandName']));const _0x43f621=_0x2b0802['buttonView'];return _0x43f621['actionView']['unbind']('isEnabled'),_0x43f621['arrowView']['unbind']('isEnabled'),_0x43f621['actionView']['bind']('isEnabled')['to'](_0x5ca334,'isEnabled'),_0x43f621['arrowView']['bind']('isEnabled')['toMany'](_0x17d89e,'isEnabled',(..._0x46b768)=>_0x46b768['some'](_0x592bd1=>_0x592bd1)),_0x2b0802['on']('execute',_0x290a74=>{this['editor']['execute'](_0x290a74['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b0802;}['_createMenuBarMenu'](_0x4b37c1,_0xaa9f19,_0x253590){const _0x5d68f7=new Kt(_0x4b37c1),_0x6adc71=this['editor']['commands']['get']('trackChanges');_0x5d68f7['buttonView']['set']({'label':_0x253590,'icon':ie});const _0x18b44c=new Qt(_0x4b37c1);for(const _0xb63854 of _0xaa9f19){if('separator'==_0xb63854['type']){_0x18b44c['items']['add'](new Jt(_0x4b37c1));continue;}const _0x2c5c57=new Xt(_0x4b37c1,_0x5d68f7),_0x480a96=new Yt(_0x4b37c1),_0x37ced2=_0xb63854['model'];_0x480a96['bind'](...Object['keys'](_0x37ced2))['to'](_0x37ced2),_0x480a96['delegate']('execute')['to'](_0x5d68f7),_0x480a96['on']('execute',()=>{this['editor']['execute'](_0x37ced2['commandName']),this['editor']['editing']['view']['focus']();}),_0x2c5c57['children']['add'](_0x480a96),_0x18b44c['items']['add'](_0x2c5c57);}return _0x5d68f7['bind']('isEnabled')['to'](_0x6adc71,'isEnabled'),_0x5d68f7['panelView']['children']['add'](_0x18b44c),_0x5d68f7;}['_initializeController'](_0x386ffa){const _0x44f388=this['editor'],_0x402692=_0x44f388['config'],_0x2958b1=_0x44f388['plugins']['get']('Annotations'),_0x2d241e=_0x44f388['plugins']['get']('CommentsRepository'),_0x2e816b=_0x44f388['plugins']['get']('EditorAnnotations'),_0x323041=_0x44f388['plugins']['get'](_0x445e78)['me'],_0xa11efe=_0x402692['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x10d499,CommentThreadInputView:_0x38d213}=_0x44f388['plugins']['get']('CommentsUI');let _0x5e715c,_0x303a21;this['_annotationViews']['has'](_0x386ffa['id'])?(_0x303a21=this['_annotationViews']['get'](_0x386ffa['id']),_0x5e715c=_0x303a21['mainView']):(_0x5e715c=new _0xa11efe(_0x44f388['locale'],_0x386ffa,_0x323041,{'disableComments':this['_disableComments'],'editorConfig':_0x402692['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x402692['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x402692['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x402692['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59a1b2(_0x402692['get']('locale')),'CommentView':_0x402692['get']('comments')['CommentView'],'CommentsListView':_0x10d499,'CommentThreadInputView':_0x38d213}),_0x5e715c['acceptButton']['on']('execute',()=>{_0x44f388['editing']['view']['focus']();}),_0x5e715c['discardButton']['on']('execute',()=>{_0x44f388['editing']['view']['focus']();}),_0x303a21=_0x2958b1['createAnnotationView'](this['editor']['locale'],_0x5e715c),_0x303a21['bind']('isDirty')['to'](_0x5e715c,'isDirty'),_0x303a21['bind']('length')['to'](_0x5e715c),_0x303a21['bind']('type')['to'](_0x5e715c,'type',_0x7e02f7=>'suggestion-'+_0x7e02f7),this['_annotationViews']['set'](_0x386ffa['id'],_0x303a21));const _0x4375f0=_0x2d241e['createCommentThreadController'](_0x386ffa['commentThread'],_0x5e715c),_0x2bc10c=new oe(_0x44f388,_0x386ffa,_0x5e715c,_0x4375f0),_0x2ee8e1=_0x386ffa['getAllAdjacentSuggestions']()['filter'](_0x1e3da5=>_0x1e3da5['isInContent']);_0x5e715c['descriptionParts']=_0x44f388['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2ee8e1),this['_suggestionToController']['set'](_0x386ffa,_0x2bc10c),this['_viewToController']['set'](_0x5e715c,_0x2bc10c);const _0x342a56=_0x2958b1['createAnnotation']({'view':_0x303a21,'target':()=>{const _0x130805=[],_0x3237ec=_0x386ffa['getAllAdjacentSuggestions']()['filter'](_0x3af305=>_0x3af305['isInContent']);for(const _0x3f455c of _0x3237ec)_0x130805['push'](..._0x3f455c['getMarkers']());return _0x44fbcb(_0x44f388['editing'],_0x130805);},'type':()=>'suggestion-'+_0x2bc10c['view']['type']});_0x2d241e['_bindAnnotationToEditors'](_0x5e715c,_0x342a56),_0x2958b1['add'](_0x342a56),_0x2e816b['registerAnnotation'](_0x342a56);}['_destroyController'](_0x4cdd2d){const _0xb10728=this['editor']['plugins']['get']('CommentsRepository'),_0x4de5b0=this['editor']['plugins']['get']('Annotations'),_0x40ac61=this['_suggestionToController']['get'](_0x4cdd2d),_0x3af232=_0x40ac61['view'],_0x4494ed=_0x4de5b0['getByInnerView'](_0x3af232);_0xb10728['_unbindEditors'](_0x3af232),_0x4494ed&&_0x4de5b0['remove'](_0x4494ed),this['_suggestionToController']['delete'](_0x4cdd2d),this['_viewToController']['delete'](_0x3af232),_0x40ac61['destroy']();}['_updateController'](_0x48e900){if(!_0x48e900['isInContent']||!this['_suggestionToController']['has'](_0x48e900))return;const _0xc71129=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cf4d2=this['_suggestionToController']['get'](_0x48e900),_0x57d71c=_0x48e900['getAllAdjacentSuggestions']();_0x5cf4d2['view']['descriptionParts']=_0xc71129['descriptionFactory']['getDescriptions'](_0x57d71c);}['destroy'](){for(const _0x2e7d84 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2e7d84);for(const _0x55ebff of this['_annotationViews']['values']())_0x55ebff['mainView']['destroy']();super['destroy']();}}function ae(_0x2af744){return'model'in _0x2af744;}class k extends _0x56c567{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x250715){this['editor']['plugins']['get'](p)['adapter']=_0x250715;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x53e18b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x53e18b);}['getSuggestions']({skipNotAttached:_0x215b75=!0x1,toJSON:_0x5166e3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x215b75,'toJSON':_0x5166e3});}['getSuggestion'](_0x48358e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x48358e);}}const T=['Pagination'];class P extends _0x56c567{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x41c060=this['editor'];if(_0x41c060['config']['define']('trackChangesData.editorCreator',_0x2a38cf=>{const _0x49337d=_0x41c060['model']['document']['getRootNames']()['reduce']((_0xd20b5f,_0x468e2d)=>(_0xd20b5f[_0x468e2d]='',_0xd20b5f),{});return _0x41c060['constructor']['create'](_0x49337d,_0x2a38cf);}),'function'!=typeof _0x41c060['config']['get']('trackChangesData')['editorCreator'])throw new _0x14405f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x17f67f){return N(this['editor'],!0x0,_0x17f67f);}['getDataWithDiscardedSuggestions'](_0x35292b){return N(this['editor'],!0x1,_0x35292b);}}class D extends _0x56c567{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x585cdb){super(_0x585cdb),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(_0x4d470f){return void 0x0!==_0x4d470f['getRootsAttributes'];}async function N(_0x5cb24e,_0x272496,_0x54e7a7){const _0x4a83e3=_0x448478(_0x5cb24e,T);_0x4a83e3['plugins']['push'](p,D),_0x4a83e3['rootsAttributes']=v(_0x5cb24e)?_0x5cb24e['getRootsAttributes']():void 0x0;const _0x4629c2=document['createDocumentFragment'](),_0x19638a=_0x5cb24e['config']['get']('trackChangesData')['editorCreator'],_0x5b6fe9=await _0x19638a(_0x4a83e3,()=>function(_0x427dfe){const _0x28c5d8=document['createElement']('div');return _0x427dfe['appendChild'](_0x28c5d8),_0x28c5d8;}(_0x4629c2));!function(_0x4fc1a0,_0x52d143){const _0x41eef9=_0x4fc1a0['model']['document']['getRootNames']()['reduce']((_0x5263a6,_0x2edf03)=>(_0x5263a6[_0x2edf03]=_0x4fc1a0['data']['get']({'rootName':_0x2edf03}),_0x5263a6),{}),_0x4f719e=_0x4fc1a0['plugins']['get']('Users')['users']['map'](_0x47e0cf=>({'id':_0x47e0cf['id'],'name':_0x47e0cf['name']})),_0x5a8d3a=_0x4fc1a0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34cda1=_0x4fc1a0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2be194=_0x52d143['plugins']['get']('Users'),_0x25b014=_0x52d143['plugins']['get']('TrackChangesEditing'),_0x46f7e2=_0x52d143['plugins']['get']('CommentsRepository');for(const _0x34466c of _0x4f719e)_0x2be194['getUser'](_0x34466c['id'])||_0x2be194['addUser'](_0x34466c);_0x2be194['me']||_0x2be194['useAnonymousUser']();for(const _0xa8b05c of _0x34cda1)_0x46f7e2['addCommentThread'](_0xa8b05c);for(const _0x1e8e89 of _0x5a8d3a)_0x25b014['addSuggestionData'](_0x1e8e89);_0x52d143['data']['set'](_0x41eef9);}(_0x5cb24e,_0x5b6fe9),_0x5b6fe9['execute'](_0x272496?'acceptAllSuggestions':'discardAllSuggestions');const _0xdd6606=v(_0x5b6fe9)?_0x5b6fe9['getFullData'](_0x54e7a7):_0x5b6fe9['data']['get'](_0x54e7a7);return await _0x5b6fe9['destroy'](),_0xdd6606;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x58f0a6,PendingActions as _0x34a628,icons as _0x163e57}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5a9654,ObservableMixin as _0xfd7f9a,uid as _0x418fff,insertToPriorityArray as _0x4cbe5d,priorities as _0x1b86cf,logWarning as _0x1e47c1,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3c1555,View as _0x47a888,ButtonView as _0x2e9c33,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x7b8d04,hashObject as _0x465ae5,surroundingMarkersDetector as _0x59ec08,trimHtml as _0x35d3a3,UserView as _0xbe3cd9,getDateTimeFormatter as _0x14636d,getAllMarkersDomElementsSorted as _0x4dd359,sanitizeEditorConfig as _0xb69918}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4d3aa6,LiveRange as _0x5733e9,LivePosition as _0x3aa60d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x141aef,toWidget as _0x4fac4f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xfa6c3a,set as _0x38fa70,isEqual as _0x2eaac8,unset as _0x4c2aca,omit as Bt}from'lodash-es';import{Delete as _0x1026bf,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xe8169,ShiftEnter as _0x2dcf41}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x2b3f18,_0x55736){super(_0x2b3f18),this['_enabledCommands']=_0x55736,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 _0x2f7a26 of this['editor']['commands']['commands']())_0x2f7a26['affectsData']&&!this['_enabledCommands']['has'](_0x2f7a26)&&_0x2f7a26['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x325f09 of this['editor']['commands']['commands']())_0x325f09['affectsData']&&!this['_enabledCommands']['has'](_0x325f09)&&_0x325f09['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xcb3ea7,_0x4ac9a0){super(_0xcb3ea7),this['_suggestions']=_0x4ac9a0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2d32ab){const _0x500134=this['_suggestions']['get'](_0x2d32ab);if(!_0x500134)throw new _0x5a9654('track-changes-accept-suggestion-not-found',this);const _0x584d0f=_0x500134['getRanges']();this['editor']['model']['canEditAt'](_0x584d0f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x500134);}}class B extends ts{['_suggestions'];constructor(_0x3cd21d,_0x29729d){super(_0x3cd21d),this['_suggestions']=_0x29729d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xff0953){const _0x42f71c=this['_suggestions']['get'](_0xff0953);if(!_0x42f71c)throw new _0x5a9654('track-changes-discard-suggestion-not-found',this);const _0x4f2c1b=_0x42f71c['getRanges']();this['editor']['model']['canEditAt'](_0x4f2c1b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x42f71c);}}function ss(_0x481ce2){return _0x481ce2['sort']((_0x41b2f0,_0x5e8a09)=>'deletion'==_0x41b2f0['type']&&'deletion'!=_0x5e8a09['type']?-0x1:'deletion'!=_0x41b2f0['type']&&'deletion'==_0x5e8a09['type']?0x1:0x0);}function to(_0x615b18,_0x58bab5){let _0x2a9133,_0x1d46e7=0x0;const _0xe43427=[],_0x53b898=_0x58bab5['schema'];for(;_0x1d46e7<_0x615b18['length'];){const _0x2bbcfb=_0x615b18[_0x1d46e7],_0x15ca13=_0x615b18[_0x1d46e7+0x1];_0x2a9133||(_0x2a9133=_0x58bab5['createPositionBefore'](_0x2bbcfb)),co(_0x58bab5,_0x2bbcfb,_0x15ca13)||(_0xe43427['push'](_0x58bab5['createRange'](_0x2a9133,_0x53b898['isObject'](_0x2bbcfb)?_0x58bab5['createPositionAfter'](_0x2bbcfb):_0x58bab5['createPositionAt'](_0x2bbcfb,'end'))),_0x2a9133=null),_0x1d46e7++;}return _0xe43427;}function co(_0x52a713,_0x51141a,_0xef0d4b){if(!_0xef0d4b)return!0x1;const _0x258d9c=_0x52a713['createPositionAfter'](_0x51141a),_0x42491f=_0x52a713['createPositionBefore'](_0xef0d4b);return _0x258d9c['isTouching'](_0x42491f);}function rs(_0xd6d7a3,_0x4440e8,_0x21f070){for(;_0x21f070['length'];){const _0x3fac36=_0x21f070['splice'](0x0,0x64);_0xd6d7a3['change'](()=>{for(const _0x130c0f of _0x3fac36)_0x130c0f['isInContent']&&_0x4440e8['execute'](_0x130c0f['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3027cb,_0x4a25ce,_0x51150f){super(_0x3027cb),this['_command']=_0x4a25ce,this['_suggestions']=_0x51150f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4eea3b=Array['from'](this['_suggestions']['values']())['some'](_0x532f5c=>_0x532f5c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4eea3b;}['execute'](){const _0x173191=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2d0157 of _0x173191){const _0x1acb48=_0x2d0157['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1acb48))return;}rs(this['editor']['model'],this['_command'],_0x173191);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x104c95,_0x5bc716,_0x440b38){super(_0x104c95),this['_command']=_0x5bc716,this['_suggestions']=_0x440b38,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x126ff6=this['editor']['model']['document']['selection'],_0x4391df=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x319b69,_0x5b6acb){const _0x36a5db=Array['from'](_0x319b69['getRanges']()),_0x3b4109=new Set();for(const _0x53f021 of _0x5b6acb)if(_0x53f021['isInContent']){for(const _0x4859c1 of _0x36a5db)for(const _0x21afa4 of _0x53f021['getRanges']())(_0x4859c1['isIntersecting'](_0x21afa4)||_0x319b69['isCollapsed']&&!_0x53f021['isMultiRange']&&_0x53f021['next']&&_0x21afa4['end']['isTouching'](_0x4859c1['start']))&&_0x3b4109['add'](_0x53f021);}return _0x3b4109;}(_0x126ff6,_0x4391df),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x444abb=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1fc5a7 of _0x444abb){const _0x21fd8b=_0x1fc5a7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x21fd8b))return;}rs(this['editor']['model'],this['_command'],_0x444abb);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xfd7f9a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x351af2,_0x15d135){super(),this['id']=_0x15d135['id'],this['type']=_0x15d135['type'],this['subType']=_0x15d135['subType']||null,this['author']=_0x15d135['author'],this['creator']=_0x15d135['creator']||_0x15d135['author'],this['isExternal']=Boolean(_0x15d135['attributes']&&_0x15d135['attributes']['@external']),this['data']=null,this['_model']=_0x351af2,this['_onAccept']=_0x15d135['onAccept'],this['_onDiscard']=_0x15d135['onDiscard'],this['_onAttributesChange']=_0x15d135['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x15d135['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 _0x489f22=this;for(;_0x489f22['previous'];)_0x489f22=_0x489f22['previous'];return _0x489f22;}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'](_0x33166a){this['_markerNames']['add'](_0x33166a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3fc72f=>this['_model']['markers']['get'](_0x3fc72f))['filter'](_0x281302=>_0x281302);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x441365=>{for(const _0x3f14ea of this['getMarkers']())_0x441365['removeMarker'](_0x3f14ea);}),this['_markerNames']['clear']();}['removeMarker'](_0x3e1cd3){this['_model']['change'](_0x5bde27=>{_0x5bde27['removeMarker'](_0x3e1cd3);}),this['_markerNames']['delete'](_0x3e1cd3);}['addRange'](_0x38efa0){const _0x3c2999='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3c2999),this['_model']['change'](_0x10701b=>{_0x10701b['addMarker'](_0x3c2999,{'range':_0x38efa0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2f9f8a){for(const _0x1f9182 of this['getRanges']())if(_0x1f9182['isIntersecting'](_0x2f9f8a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x51321e=>_0x51321e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5199d5,_0x160e57)=>[..._0x5199d5,..._0x160e57['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xdbd448=this['getRanges']();if(0x1!=_0xdbd448['length'])return null;const _0x4577ce=_0xdbd448[0x0],_0x595308=_0x4577ce['start']['nodeAfter'],_0x4e71b6=_0x4577ce['end']['nodeBefore'];return _0x595308 instanceof _0x4d3aa6?_0x595308!=_0x4e71b6?null:_0x595308: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 _0x5d9483=[];let _0x1ed475=this['head'];for(;_0x1ed475;)_0x5d9483['push'](_0x1ed475),_0x1ed475=_0x1ed475['next'];return _0x5d9483;}['setAttribute'](_0x143eab,_0x1c6ab1){const _0x48a5c7=_0xfa6c3a(this['attributes']);_0x38fa70(_0x48a5c7,_0x143eab,_0x1c6ab1),_0x2eaac8(_0x48a5c7,this['attributes'])||(this['attributes']=_0x48a5c7,this['_onAttributesChange'](_0x48a5c7));}['removeAttribute'](_0x15a36b){const _0x445553=_0xfa6c3a(this['attributes']);_0x4c2aca(_0x445553,_0x15a36b),_0x2eaac8(_0x445553,this['attributes'])||(this['attributes']=_0x445553,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 _0x418fff()['substr'](0x1,0x5);}}function o(_0x3d82d4,_0x59c1cd,_0x2ff2c0){const t=_0x3d82d4['t'];switch(_0x59c1cd){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',_0x2ff2c0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2ff2c0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2ff2c0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2ff2c0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2ff2c0);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',_0x2ff2c0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2ff2c0);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',_0x2ff2c0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2ff2c0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2ff2c0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2ff2c0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2ff2c0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2ff2c0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2ff2c0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2ff2c0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2ff2c0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2ff2c0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2ff2c0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2ff2c0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2ff2c0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2ff2c0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2ff2c0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2ff2c0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2ff2c0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2ff2c0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2ff2c0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2ff2c0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2ff2c0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2ff2c0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2ff2c0);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'},_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2ff2c0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2ff2c0);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x2ff2c0);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'},_0x2ff2c0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x59c1cd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xe690bd,_0x3105f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xe690bd,this['_locale']=_0x3105f;}['getDescriptions'](_0x46be6a){const _0x57e81d=[],_0x513a4e=new Set(),_0x289719=new Set();for(let _0x41a42a=0x0;_0x41a42a<_0x46be6a['length'];_0x41a42a++){const _0x1d52b1=_0x46be6a[_0x41a42a];if(!_0x1d52b1['isInContent'])continue;const _0x50ac81=this['_handleCustomCallbackDescription'](_0x1d52b1);if(_0x50ac81){if(null!=_0x1d52b1['subType']){if(_0x513a4e['has'](_0x1d52b1['subType']))continue;_0x513a4e['add'](_0x1d52b1['subType']);}_0x57e81d['push'](_0x50ac81);}else{if('attribute'!=_0x1d52b1['type'])'insertion'!=_0x1d52b1['type']&&'deletion'!=_0x1d52b1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x57e81d,_0x1d52b1,_0x46be6a[_0x41a42a+0x1]);else{const _0x1c7c71=_0x1d52b1['data']['key'];if(_0x289719['has'](_0x1c7c71))continue;_0x289719['add'](_0x1d52b1['data']['key']),_0x1c7c71==m?this['_handleRenameSuggestionDescription'](_0x57e81d,_0x1d52b1):this['_handleAttributeSuggestionDescription'](_0x57e81d,_0x1d52b1);}}}return this['_resolveDescriptionItems'](_0x57e81d);}['registerDescriptionCallback'](_0x4dcf69){this['_customCallbacks']['push'](_0x4dcf69);}['registerElementLabel'](_0x17f5ab,_0x483bc9,_0x1150a7=_0x1b86cf['normal']){'function'==typeof _0x17f5ab?_0x4cbe5d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x17f5ab,'label':_0x483bc9,'priority':_0x1150a7}):this['_itemLabels']['set'](_0x17f5ab,_0x483bc9);}['registerAttributeLabel'](_0x431760,_0x2cfff1){this['_attributeLabels']['set'](_0x431760,_0x2cfff1);}['getItemLabel'](_0x185098,_0x2e5eca=0x1){let _0x5c29da;for(const _0x196348 of this['_itemLabelsCallbacks'])if(_0x196348['matchingCallback'](_0x185098)){_0x5c29da=_0x196348['label'];break;}return _0x5c29da||(_0x5c29da=this['_itemLabels']['get'](_0x185098['name'])),_0x5c29da?_0x5c29da(_0x2e5eca):0x1!==_0x2e5eca?_0x2e5eca+'\x20'+_0x185098['name']+'s':''+_0x185098['name'];}['_addDescriptionItems'](_0x582ecd,_0x8dee39){const _0x48b0c2=_0x8dee39['getFirstRange']()['getWalker'](),_0x530dc2='insertion'==_0x8dee39['type']?'add':'remove';for(const _0x5b4b8c of _0x48b0c2){const _0x3f8a42=_0x5b4b8c['item'],_0x35211f=_0x582ecd[_0x582ecd['length']-0x1];if(_0x3f8a42['is']('$textProxy'))_0x35211f&&_0x35211f['type']['indexOf']('Container')>-0x1&&_0x582ecd['pop'](),_0x35211f&&'text'==_0x35211f['type']?_0x35211f[_0x530dc2]+=_0x3f8a42['data']:_0x582ecd['push']({'type':'text','add':'add'==_0x530dc2?_0x3f8a42['data']:'','remove':'remove'==_0x530dc2?_0x3f8a42['data']:''});else{if(this['_schema']['isObject'](_0x3f8a42)){const _0x312dc9=_0x3f8a42;if(_0x35211f&&_0x35211f['type']['indexOf']('Container')>-0x1&&_0x582ecd['pop'](),'elementEnd'==_0x5b4b8c['type'])continue;_0x35211f&&_0x35211f['type']==_0x530dc2+'Object'&&_0x35211f['element']['name']==_0x312dc9['name']?_0x35211f['quantity']++:_0x582ecd['push']({'type':_0x530dc2+'Object','element':_0x312dc9,'quantity':0x1}),_0x48b0c2['skip'](_0x725b79=>!('elementEnd'==_0x725b79['type']&&_0x725b79['item']==_0x3f8a42));}else{if(this['_schema']['checkChild'](_0x3f8a42,'$text')||_0x3f8a42['is']('element','softBreak')){const _0x32f6b6=_0x3f8a42;if('add'==_0x530dc2&&'elementStart'==_0x5b4b8c['type']||'remove'==_0x530dc2&&'elementEnd'==_0x5b4b8c['type'])continue;if(_0x35211f&&-0x1==_0x35211f['type']['indexOf']('Container')){'text'==_0x35211f['type']&&(_0x35211f[_0x530dc2]+='\x0a');continue;}let _0x562cd1;if(_0x562cd1='add'==_0x530dc2?_0x32f6b6['nextSibling']&&!this['_schema']['isObject'](_0x32f6b6['nextSibling'])?_0x32f6b6['nextSibling']:null:_0x32f6b6['previousSibling']&&!this['_schema']['isObject'](_0x32f6b6['previousSibling'])?_0x32f6b6['previousSibling']:null,_0x32f6b6['isEmpty']||_0x562cd1&&_0x562cd1['isEmpty']){const _0x3f18e1=_0x562cd1&&_0x562cd1['isEmpty']?_0x562cd1:_0x32f6b6;_0x35211f&&_0x35211f['type']==_0x530dc2+'EmptyContainer'&&_0x35211f['element']['name']==_0x3f18e1['name']?_0x35211f['quantity']++:_0x582ecd['push']({'type':_0x530dc2+'EmptyContainer','element':_0x3f18e1,'quantity':0x1});}else _0x582ecd['push']({'type':_0x530dc2+'Container','element':_0x32f6b6});}}}}}['_resolveDescriptionItems'](_0x5ad408){const _0x49a3df=this['_locale'],_0x24c884=[],_0x1b6656=[],_0x297e09=[];for(const _0x5f2906 of _0x5ad408)switch(_0x5f2906['type']){case'text':if(_0x5f2906['add']=_0x5f2906['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5f2906['remove']=_0x5f2906['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5f2906['add']&&''!=_0x5f2906['remove']){_0x24c884['push']({'type':'replace','content':o(_0x49a3df,'REPLACE_TEXT',['\x22'+_0x5f2906['remove']+'\x22','\x22'+_0x5f2906['add']+'\x22'])});continue;}if(null!=_0x5f2906['add']['match'](/^ +$/)){_0x24c884['push']({'type':'insertion','content':o(_0x49a3df,'*Insert:*\x20%0',o(_0x49a3df,'ELEMENT_SPACE',_0x5f2906['add']['length']))});continue;}if(null!=_0x5f2906['remove']['match'](/^ +$/)){_0x24c884['push']({'type':'deletion','content':o(_0x49a3df,'*Remove:*\x20%0',o(_0x49a3df,'ELEMENT_SPACE',_0x5f2906['remove']['length']))});continue;}if(''!=_0x5f2906['add']){_0x24c884['push']({'type':'insertion','content':o(_0x49a3df,'*Insert:*\x20%0','\x22'+_0x5f2906['add']+'\x22')});continue;}_0x24c884['push']({'type':'deletion','content':o(_0x49a3df,'*Remove:*\x20%0','\x22'+_0x5f2906['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x24c884['push']({'type':'insertion','content':o(_0x49a3df,'*Insert:*\x20%0',this['getItemLabel'](_0x5f2906['element'],_0x5f2906['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x24c884['push']({'type':'deletion','content':o(_0x49a3df,'*Remove:*\x20%0',this['getItemLabel'](_0x5f2906['element'],_0x5f2906['quantity']))});continue;case'addContainer':_0x24c884['push']({'type':'insertion','content':o(_0x49a3df,'*Split:*\x20%0',this['getItemLabel'](_0x5f2906['element'],_0x5f2906['quantity']))});continue;case'removeContainer':_0x24c884['push']({'type':'deletion','content':o(_0x49a3df,'*Merge:*\x20%0',this['getItemLabel'](_0x5f2906['element'],_0x5f2906['quantity']))});continue;case'addFormat':_0x1b6656['push'](_0x5f2906['key']);continue;case'removeFormat':_0x297e09['push'](_0x5f2906['key']);continue;default:_0x24c884['push'](_0x5f2906);}if(_0x1b6656['length']){const _0x262e93=_0x1b6656['map'](_0x1f588d=>this['_attributeLabels']['has'](_0x1f588d)?this['_attributeLabels']['get'](_0x1f588d):_0x1f588d)['join'](',\x20');_0x24c884['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x262e93)});}if(_0x297e09['length']){const _0x5ac130=_0x297e09['map'](_0x5109c4=>this['_attributeLabels']['has'](_0x5109c4)?this['_attributeLabels']['get'](_0x5109c4):_0x5109c4)['join'](',\x20');_0x24c884['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5ac130)});}return _0x24c884;}['_handleCustomCallbackDescription'](_0x578d74){for(const _0x32f336 of this['_customCallbacks']){const _0x171784=_0x32f336(_0x578d74);if(_0x171784&&'type'in _0x171784)return _0x171784;}}['_handleAttributeSuggestionDescription'](_0x2bafba,_0x297a20){const _0x73e83e=_0x297a20['data'],_0x4c8755=void 0x0===_0x73e83e['newValue']?'removeFormat':'addFormat';_0x2bafba['push']({'type':_0x4c8755,'key':_0x73e83e['key']});}['_handleRenameSuggestionDescription'](_0x2ccc69,_0x43200d){_0x2ccc69['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x43200d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x54f243,_0x1915e4,_0x2fda8e){if(this['_addDescriptionItems'](_0x54f243,_0x1915e4),_0x2fda8e&&_0x2fda8e['getFirstRange']()&&!_0x1915e4['getFirstRange']()['end']['isEqual'](_0x2fda8e['getFirstRange']()['start'])){const _0x41c8b7=_0x54f243[_0x54f243['length']-0x1],_0x4cdf30='insertion'==_0x1915e4['type']?'add':'remove';_0x41c8b7&&'text'==_0x41c8b7['type']&&(_0x41c8b7[_0x4cdf30]+='\x0a');}}}class E extends _0x58f0a6{['afterInit'](){const _0x179db0=this['editor'],_0x200dbf=_0x179db0['plugins']['get']('TrackChangesEditing');_0x179db0['commands']['get']('showAIAssistant')&&_0x200dbf['enableCommand']('showAIAssistant');}}class V extends _0x58f0a6{['afterInit'](){const _0x541a8e=this['editor'],_0x262301=_0x541a8e['locale'];if(!_0x541a8e['plugins']['has']('AlignmentEditing'))return;const _0x42613f=_0x541a8e['plugins']['get']('TrackChangesEditing');_0x42613f['enableDefaultAttributesIntegration']('alignment'),_0x42613f['registerBlockAttribute']('alignment'),_0x42613f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x262301,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf44ccb=this['editor'],_0x55c78a=_0xf44ccb['locale'];_0xf44ccb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x386a8d=>{if('formatBlock'!=_0x386a8d['type'])return;const {data:_0x64ec74}=_0x386a8d;if(_0x64ec74&&'alignment'==_0x64ec74['commandName']){const _0x4a860b=_0x64ec74['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x55c78a,'*Format:*\x20%0',function(_0x25926c){switch(_0x25926c){case'left':return o(_0x55c78a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x55c78a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x55c78a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x55c78a,'FORMAT_JUSTIFY_TEXT');}}(_0x4a860b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x58f0a6{['afterInit'](){const _0x310072=this['editor'],_0x1de020=_0x310072['plugins']['get']('TrackChangesEditing'),_0x54ce61=_0x310072['locale'];for(const _0x25b6a1 of ti){if(!_0x310072['plugins']['has'](_0x25b6a1))continue;const _0x1df24f=_0x25b6a1['slice'](0x0,-0x7)['toLowerCase'](),_0x2c6132='FORMAT_'+_0x1df24f['toUpperCase']();_0x1de020['enableDefaultAttributesIntegration'](_0x1df24f),_0x1de020['registerInlineAttribute'](_0x1df24f),_0x1de020['descriptionFactory']['registerAttributeLabel'](_0x1df24f,o(_0x54ce61,_0x2c6132));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x181565=this['editor'],_0x135414=_0x181565['locale'],_0x3b0fcf=_0x181565['plugins']['get']('TrackChangesEditing');function _0x3f2bda(_0x48f3bc,_0xc4db67){_0x3b0fcf['descriptionFactory']['registerDescriptionCallback'](_0x5f327b=>{if('formatInline'!=_0x5f327b['type'])return;const {data:_0x282664}=_0x5f327b;return _0x282664&&_0x282664['commandName']===_0x48f3bc?_0x282664['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x135414,'*Format:*\x20%0',_0xc4db67)}:{'type':'format','content':o(_0x135414,'*Remove\x20format:*\x20%0',_0xc4db67)}:void 0x0;});}_0x3f2bda('bold',o(_0x135414,'FORMAT_BOLD')),_0x3f2bda('italic',o(_0x135414,'FORMAT_ITALIC')),_0x3f2bda('underline',o(_0x135414,'FORMAT_UNDERLINE')),_0x3f2bda('code',o(_0x135414,'FORMAT_CODE')),_0x3f2bda('strikethrough',o(_0x135414,'FORMAT_STRIKETHROUGH')),_0x3f2bda('subscript',o(_0x135414,'FORMAT_SUBSCRIPT')),_0x3f2bda('superscript',o(_0x135414,'FORMAT_SUPERSCRIPT'));}}class O extends _0x58f0a6{['afterInit'](){const _0x2ab47b=this['editor'],_0x2902e2=_0x2ab47b['locale'];if(!_0x2ab47b['plugins']['has']('BlockQuoteEditing'))return;const _0x2d2906=_0x2ab47b['plugins']['get']('TrackChangesEditing'),_0x4f44db=this['editor']['commands']['get']('blockQuote');_0x2d2906['enableCommand']('blockQuote',(_0x57220e,_0x539035={})=>{const _0x7cabbf=this['editor']['model']['document']['selection'],_0x1c9d49=_0x539035&&void 0x0!==_0x539035['forceValue']?_0x539035['forceValue']:!_0x4f44db['value'];let _0x2c3785=[];if(_0x1c9d49){const _0x52606e=Array['from'](_0x7cabbf['getSelectedBlocks']())['filter'](_0x4c4d17=>oo(_0x4c4d17)||function(_0x40e5ff,_0x419059){const _0x55e01b=_0x419059['checkChild'](_0x40e5ff['parent'],'blockQuote'),_0x3f3bf1=_0x419059['checkChild'](['$root','blockQuote'],_0x40e5ff);return _0x55e01b&&_0x3f3bf1;}(_0x4c4d17,this['editor']['model']['schema']));_0x2c3785=to(_0x52606e,_0x2ab47b['model']);}else{const _0x5e303d=Array['from'](_0x7cabbf['getSelectedBlocks']())['filter'](_0x529d13=>oo(_0x529d13));_0x2c3785=to(_0x5e303d,_0x2ab47b['model']);}_0x2ab47b['model']['change'](()=>{for(const _0x573cb9 of _0x2c3785)_0x2d2906['markBlockFormat'](_0x573cb9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1c9d49}]});});}),_0x2d2906['descriptionFactory']['registerDescriptionCallback'](_0x757f92=>{const {data:_0x3c8901}=_0x757f92;if(_0x3c8901&&'blockQuote'==_0x3c8901['commandName']){const _0x51ea45=o(_0x2902e2,'ELEMENT_BLOCK_QUOTE');return _0x3c8901['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2902e2,'*Set\x20format:*\x20%0',_0x51ea45)}:{'type':'format','content':o(_0x2902e2,'*Remove\x20format:*\x20%0',_0x51ea45)};}});}}function oo(_0x37ad4c){return'blockQuote'==_0x37ad4c['parent']['name'];}class G extends _0x58f0a6{['afterInit'](){const _0x23ae42=this['editor'];_0x23ae42['plugins']['has']('CaseChange')&&(_0x23ae42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x23ae42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x23ae42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x58f0a6{['afterInit'](){const _0x205809=this['editor'];_0x205809['commands']['get']('ckbox')&&_0x205809['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x58f0a6{['afterInit'](){const _0x1e55ad=this['editor'];if(!_0x1e55ad['plugins']['has']('CodeBlock'))return;const _0x38f609=_0x1e55ad['plugins']['get']('TrackChangesEditing'),_0x50220c=_0x1e55ad['locale'],_0x167690=_0x1e55ad['config']['get']('codeBlock')['languages'],_0xabde11=_0x1e55ad['commands']['get']('codeBlock');_0x38f609['enableCommand']('indentCodeBlock'),_0x38f609['enableCommand']('outdentCodeBlock'),_0x38f609['enableCommand']('codeBlock',(_0x27e9be,_0x47141f={})=>{const _0x180449=_0x1e55ad['model'],_0x23cc54=_0x1e55ad['model']['document']['selection'],_0x195435=_0x47141f&&void 0x0!==_0x47141f['forceValue']?_0x47141f['forceValue']:!_0xabde11['value'];let _0xaddde6;_0x47141f['language']||(_0x47141f['language']=_0x167690[0x0]['language']),_0xaddde6=_0x195435?Array['from'](_0x23cc54['getSelectedBlocks']())['filter'](_0x543a71=>eo(_0x543a71)||function(_0x594aff,_0x4394b4){if(_0x594aff['is']('rootElement')||_0x4394b4['isLimit'](_0x594aff))return!0x1;return _0x4394b4['checkChild'](_0x594aff['parent'],'codeBlock');}(_0x543a71,_0x180449['schema'])):Array['from'](_0x23cc54['getSelectedBlocks']())['filter'](_0x5dd762=>eo(_0x5dd762));const _0x39c795=to(_0xaddde6,_0x180449);_0x180449['change'](()=>{for(const _0x368a8f of _0x39c795)_0x38f609['markBlockFormat'](_0x368a8f,{'commandName':'codeBlock','commandParams':[{..._0x47141f,'forceValue':_0x195435}],'formatGroupId':'blockName'});});}),(_0x38f609['descriptionFactory']['registerElementLabel']('codeBlock',_0x50296e=>o(_0x50220c,'ELEMENT_CODE_BLOCK',_0x50296e)),_0x38f609['descriptionFactory']['registerDescriptionCallback'](_0x109309=>{if('formatBlock'!=_0x109309['type'])return;const _0x5966c6=_0x50220c['t'],{data:_0x412a50}=_0x109309;if(!_0x412a50||'codeBlock'!=_0x412a50['commandName'])return;const _0x17b57b=_0x412a50['commandParams'][0x0]['language'],_0x30d4ea=_0x5966c6(_0x167690['find'](_0x260778=>_0x260778['language']===_0x17b57b)['label'])['toLowerCase']();return _0x412a50['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50220c,'*Set\x20format:*\x20%0',o(_0x50220c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x30d4ea+')')}:{'type':'format','content':o(_0x50220c,'*Remove\x20format:*\x20%0',o(_0x50220c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2dd9c9){return'codeBlock'==_0x2dd9c9['name'];}class H extends _0x58f0a6{['afterInit'](){const _0x4d3e75=this['editor'];if(!_0x4d3e75['plugins']['has']('CommentsEditing'))return;_0x4d3e75['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4f66a6,_0x55b1aa,_0x435c53){const _0xeae889=[];for(const _0x918fa9 of _0x55b1aa['getItems']())_0x918fa9['hasAttribute'](_0x4f66a6)&&_0xeae889['push'](_0x435c53['createRangeOn'](_0x918fa9));return _0xeae889;}function _e(_0x1694d7,_0x5ca2ea,{showActiveMarker:_0x5d20bd=!0x0}={}){const _0x3abdda=_0x1694d7['plugins']['get']('TrackChangesEditing');return(_0x241cfd,_0x4feb59,_0x4121d1)=>{if(!_0x4121d1['consumable']['test'](_0x4feb59['markerRange'],_0x241cfd['name']))return;const _0x5a5f18=_0x4feb59['markerRange']['getWalker'](),_0x191e4f=_0x4feb59['markerRange']['start'],_0x459dfd=_0x1694d7['model']['schema'];let _0x42c0ac=null,_0x3c1c76=null,_0x5c4eea=!0x1,_0x5399a9=!0x1;for(const _0x79816c of _0x5a5f18){const _0x4a4f24=_0x79816c['item'];_0x5c4eea=_0x5c4eea||_0x459dfd['isContent'](_0x4a4f24);const _0x407e7f=_0x4121d1['mapper']['toViewElement'](_0x4a4f24);if(_0x407e7f&&_0x407e7f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x79816c['type']&&(_0x459dfd['isBlock'](_0x4a4f24)&&!_0x459dfd['isLimit'](_0x4a4f24)&&(_0x4a4f24['nextSibling']||_0x191e4f['isAtEnd']?_0x42c0ac&&_0x42c0ac['parent']==_0x4a4f24||(_0x42c0ac=_0x4a4f24,_0x4594d1(_0x79816c['previousPosition']),_0x5399a9=!0x0):_0x3c1c76=_0x3c1c76||_0x79816c['previousPosition']));}function _0x4594d1(_0x59b8bf){const _0x3d145c=_0x4121d1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ca2ea}),_0x23fc0b=_0x4121d1['mapper']['toViewPosition'](_0x59b8bf);_0x5d20bd&&_0x3abdda['activeMarkers']['includes'](_0x4feb59['markerName'])&&_0x4121d1['writer']['addClass']('ck-suggestion-marker--active',_0x3d145c),_0x4121d1['writer']['insert'](_0x23fc0b,_0x3d145c),_0x4121d1['mapper']['bindElementToMarker'](_0x3d145c,_0x4feb59['markerName']);}_0x5c4eea||_0x5399a9||!_0x3c1c76||_0x4594d1(_0x3c1c76);};}class q extends _0x58f0a6{static get['requires'](){return[_0x1026bf];}['init'](){const _0x451aac=this['editor'],_0x90c0d8=_0x451aac['plugins']['get']('TrackChangesEditing');_0x90c0d8['enableCommand']('delete');const _0x177c89=_0x451aac['commands']['get']('deleteForward');_0x90c0d8['enableCommand']('deleteForward',(_0x3a2e53,_0xa71de5={})=>{const _0x49a551=_0x451aac['model']['createSelection'](_0x451aac['model']['document']['selection']);_0x49a551['isCollapsed']&&_0x451aac['model']['modifySelection'](_0x49a551,{'direction':'forward','unit':_0xa71de5['unit']});const _0xc299ff=_0x49a551['getFirstRange'](),_0x63405f=_0x5733e9['fromRange'](_0xc299ff);let _0x1d8dc1;_0x3a2e53(_0xa71de5),_0x1d8dc1='$graveyard'==_0x63405f['root']['rootName']?_0x451aac['model']['createRange'](_0xc299ff['start']):_0x451aac['model']['createRange'](_0x63405f['start'],_0x63405f['end']),_0x63405f['detach'](),_0x451aac['model']['enqueueChange'](_0x177c89['buffer']['batch'],_0x364023=>{_0x177c89['buffer']['lock'](),_0x364023['setSelection'](_0x364023['createRange'](_0x1d8dc1['end'])),_0x177c89['buffer']['unlock']();});}),_0x451aac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x451aac,'merge'),{'priority':'high'}),_0x451aac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1f5bae,_0x1e05d6,_0xf6cb12)=>{_0xf6cb12['options']['showSuggestionHighlights']&&_e(_0x451aac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1f5bae,_0x1e05d6,_0xf6cb12);},{'priority':'high'}),_0x451aac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1ec578,_0x3ce29a,_0x300657)=>{const _0x4da02d=_0x300657['mapper']['markerNameToElements'](_0x3ce29a['markerName']);if(_0x4da02d){for(const _0x78ebe4 of _0x4da02d)_0x78ebe4['is']('uiElement')&&(_0x300657['mapper']['unbindElementFromMarkerName'](_0x78ebe4,_0x3ce29a['markerName']),_0x300657['writer']['remove'](_0x78ebe4));}},{'priority':'high'});}}class z extends _0x58f0a6{['afterInit'](){const _0x4f1253=this['editor'];if(!_0x4f1253['plugins']['has']('ListEditing'))return;const _0x347890=_0x4f1253['locale'],_0x38b703=_0x4f1253['plugins']['get']('TrackChangesEditing'),_0x52f499=_0x4f1253['plugins']['has']('TodoListEditing'),_0x262e7b=!!_0x4f1253['config']['get']('list.multiBlock');function _0x2caaf5(_0x2f34f5){return{'type':'format','content':''+o(_0x347890,'*Set\x20format:*\x20%0',_0x2f34f5)};}function _0x5ee0a9(_0x50e97f){return{'type':'format','content':''+o(_0x347890,'*Remove\x20format:*\x20%0',_0x50e97f)};}_0x38b703['enableDefaultAttributesIntegration']('numberedList'),_0x38b703['enableDefaultAttributesIntegration']('bulletedList'),_0x38b703['enableDefaultAttributesIntegration']('customNumberedList'),_0x38b703['enableDefaultAttributesIntegration']('customBulletedList'),_0x38b703['enableDefaultAttributesIntegration']('indentList'),_0x38b703['enableDefaultAttributesIntegration']('outdentList'),_0x38b703['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x38b703['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x38b703['registerBlockAttribute']('listItemId'),_0x38b703['registerBlockAttribute']('listType'),_0x38b703['registerBlockAttribute']('listIndent'),_0x262e7b&&(_0x38b703['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x38b703['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x52f499&&(_0x38b703['enableDefaultAttributesIntegration']('todoList'),_0x38b703['enableDefaultAttributesIntegration']('checkTodoList'),_0x38b703['registerBlockAttribute']('todoListChecked'),_0x38b703['descriptionFactory']['registerDescriptionCallback'](_0x13c607=>{const {data:_0x3946af}=_0x13c607;if(_0x3946af&&'todoListChecked'==_0x3946af['key'])return{'type':'format','content':_0x3946af['newValue']?o(_0x347890,'*Check\x20item*'):o(_0x347890,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x34e2da=>{if(_0x34e2da['batch']['isUndo'])return!0x1;let _0x3dcdfa=!0x1;const _0x327282=_0x38b703['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36321a=>'todoListChecked'===_0x38b703['_getAttributeKey'](_0x36321a));for(const _0x21cfb0 of _0x327282){'todo'!=_0x21cfb0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x38b703['_findSuggestions'](_0x21cfb0['getFirstRange'](),'attribute')['find'](_0x6a1690=>'listType'===_0x38b703['_getAttributeKey'](_0x6a1690['suggestion']))||(_0x34e2da['removeMarker'](_0x21cfb0['getFirstMarker']()),_0x3dcdfa=!0x0));}return _0x3dcdfa;})),_0x38b703['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x347890,'FORMAT_INDENT'));const _0x2eee88={'type':'format','content':''};_0x38b703['descriptionFactory']['registerDescriptionCallback'](_0x424afe=>{const {data:_0x5552ef}=_0x424afe;if(!_0x5552ef||'listType'!=_0x5552ef['key'])return;let _0xb5c9db=_0x424afe['head'];for(;_0xb5c9db;){if(_0xb5c9db['data']&&(('listStyle'==_0xb5c9db['data']['key']||'listMarkerStyle'==_0xb5c9db['data']['key'])&&(_0xb5c9db['data']['newValue']&&'default'!=_0xb5c9db['data']['newValue']||'default'!=_0xb5c9db['data']['oldValue']&&!_0x5552ef['newValue'])||!_0x262e7b&&_0xb5c9db['data']['key']==m))return _0x2eee88;_0xb5c9db=_0xb5c9db['next'];}if(null==_0x5552ef['newValue'])switch(_0x5552ef['oldValue']){case'bulleted':return _0x5ee0a9(o(_0x347890,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ee0a9(o(_0x347890,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ee0a9(o(_0x347890,'ELEMENT_TODO_LIST'));}switch(_0x5552ef['newValue']){case'bulleted':return _0x2caaf5(o(_0x347890,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2caaf5(o(_0x347890,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2caaf5(o(_0x347890,'ELEMENT_TODO_LIST'));}}),_0x38b703['descriptionFactory']['registerDescriptionCallback'](_0x2f6af2=>{const {data:_0x351965}=_0x2f6af2;if(_0x351965&&'listIndent'==_0x351965['key'])return null==_0x351965['newValue']||null==_0x351965['oldValue']&&0x0==_0x351965['newValue']?_0x2eee88:void 0x0;}),_0x38b703['descriptionFactory']['registerDescriptionCallback'](_0x2ee014=>{if('attribute'!=_0x2ee014['type'])return;const {data:_0x1e0b07}=_0x2ee014;if(!_0x1e0b07||'listItemId'!=_0x1e0b07['key'])return;const _0x1ddc0f=le(_0x2ee014);return'newValue'==_0x1ddc0f?{'type':'format','content':o(_0x347890,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ddc0f?{'type':'format','content':o(_0x347890,'*Split:*\x20list\x20item')}:_0x2eee88;}),_0x4f1253['model']['document']['registerPostFixer'](_0x27f6bc=>this['listItemIdFixer'](_0x27f6bc)),_0x4f1253['model']['document']['registerPostFixer'](_0x5abf3b=>this['noTrackChangesFixer'](_0x5abf3b)),_0x4f1253['model']['document']['registerPostFixer'](_0x412553=>this['assureChains'](_0x412553)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4fdec6){if(_0x4fdec6['batch']['isUndo']||!_0x4fdec6['batch']['isLocal'])return!0x1;let _0x2df6f8=!0x1;const _0x5ede68=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dcd2e=>_0x5dcd2e['data']&&'listItemId'==_0x5dcd2e['data']['key'])['filter'](_0x105cb0=>_0x105cb0['data']['newValue']&&_0x105cb0['data']['oldValue']);for(const _0x4e5c17 of _0x5ede68)le(_0x4e5c17)||(_0x4fdec6['removeMarker'](_0x4e5c17['getFirstMarker']()),_0x2df6f8=!0x0);return _0x2df6f8;}['noTrackChangesFixer'](_0x49da89){if(_0x49da89['batch']['isUndo']||!_0x49da89['batch']['isLocal'])return!0x1;const _0x33070d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x33070d['trackChangesCommand']['value'])return!0x1;let _0x257391=!0x1;const _0x4d8202=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x16d7c5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x22acb3=>'attribute'==_0x22acb3['type'])['filter'](_0x50d042=>_0x4d8202['includes'](_0x50d042['attributeKey']));if(0x0==_0x16d7c5['length'])return _0x257391;for(const _0x21c696 of _0x16d7c5){const _0x39b229=_0x33070d['_findSuggestions'](_0x21c696['range'],'attribute')['filter'](_0x33b8ed=>!_0x33b8ed['meta']['isNextTo'])['map'](_0x46e729=>_0x46e729['suggestion'])['filter'](_0x2011d1=>{const _0x64859d=_0x33070d['_getAttributeKey'](_0x2011d1);return _0x4d8202['includes'](_0x64859d);});if(_0x39b229['length']){for(const _0x158eb0 of _0x39b229)_0x49da89['removeMarker'](_0x158eb0['getFirstMarker']());_0x257391=!0x0;}}return _0x257391;}['assureChains'](_0x496952){if(_0x496952['batch']['isUndo']||!_0x496952['batch']['isLocal'])return!0x1;const _0x4cc77d=this['editor']['plugins']['get']('TrackChangesEditing');let _0x496bd9=!0x1;const _0x34e094=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x58e467 of _0x4cc77d['getSuggestions']({'skipNotAttached':!0x0})){const _0x499a0e=_0x4cc77d['_findSuggestions'](_0x58e467['getFirstRange'](),'attribute')['map'](_0x194862=>_0x194862['suggestion'])['filter'](_0x21fdd3=>_0x21fdd3['data']&&_0x34e094['includes'](_0x21fdd3['data']['key']));if(!_0x499a0e['length'])continue;const _0x233973=_0x499a0e[0x0]['head']['attributes']['groupId'];if(!_0x499a0e['every'](_0x1d3d0b=>_0x1d3d0b['attributes']['groupId']===_0x233973)){for(const _0xaf251d of _0x499a0e)_0x1322e4(_0xaf251d,_0x233973)&&(_0x496bd9=!0x0);}}return _0x496bd9;function _0x28b41a(_0x228190,_0x20460e){for(const _0x3be276 of _0x4cc77d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x434252=>'attribute'==_0x434252['type']&&_0x434252['attributes']['groupId']==_0x228190))_0x3be276['setAttribute']('groupId',_0x20460e);}function _0x1322e4(_0x499a20,_0x77b45b){let _0x235d9c=_0x499a20['head'],_0x7d7919=!0x1;for(;_0x235d9c;)_0x235d9c['attributes']['groupId']!=_0x77b45b&&(_0x28b41a(_0x235d9c['attributes']['groupId'],_0x77b45b),_0x235d9c['setAttribute']('groupId',_0x77b45b),_0x7d7919=!0x0),_0x235d9c=_0x235d9c['next'];return _0x7d7919;}}['_supportLegacySuggestions'](){const _0x5a4317=this['editor'],_0x359de8=_0x5a4317['locale'],_0x592927=_0x5a4317['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x592927['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xa34426,_0x12fde5){const _0xed9df4=[];for(let _0x5a8f90 of _0xa34426)_0x5a8f90['start']['nodeAfter']===_0x5a8f90['end']['parent']&&(_0x5a8f90=_0x5a4317['model']['createRange'](_0x5a4317['model']['createPositionAt'](_0x5a8f90['start']['nodeAfter'],0x0))),_0xed9df4['push'](_0x5a8f90);_0x5a4317['model']['change'](_0x1e9666=>{const _0x3d689b=_0x5a4317['model']['document']['selection'],_0x92b51a=Array['from'](_0x3d689b['getRanges']())['map'](_0x4c0972=>_0x5733e9['fromRange'](_0x4c0972));_0x1e9666['setSelection'](_0xed9df4),_0x5a4317['commands']['get'](_0x12fde5['commandName'])['refresh'](),_0x12fde5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5a4317['execute'](_0x12fde5['commandName'],..._0x12fde5['commandParams']),_0x1e9666['setSelection'](_0x92b51a);for(const _0x5c8afd of _0x92b51a)_0x5c8afd['detach']();});}),_0x592927['descriptionFactory']['registerElementLabel'](function(_0x1a6c1d){const _0x14ca87=!_0x5a4317['model']['schema']['isObject'](_0x1a6c1d),_0x240cc0=_0x1a6c1d['previousSibling'],_0x476cb7=_0x1a6c1d['nextSibling'],_0x584730=_0x1a6c1d['getAttribute']('listItemId'),_0x607afa=!_0x240cc0||_0x240cc0['getAttribute']('listItemId')!==_0x584730,_0x26c4f9=!_0x476cb7||_0x476cb7['getAttribute']('listItemId')!==_0x584730;return _0x14ca87&&Boolean(_0x584730)&&_0x607afa&&_0x26c4f9;},_0xb600bc=>o(_0x359de8,'ELEMENT_LIST_ITEM',_0xb600bc));}['_registerLegacyDescription'](){const _0x53e409=this['editor'],_0x87fed6=_0x53e409['locale'];function _0x35e8ad(_0x261454){const _0x2d9eb0=_0x53e409['commands']['get']('bulletedList')['value'],_0x3522d0=_0x53e409['commands']['get']('numberedList')['value'];return'numberedList'===_0x261454?_0x2d9eb0:_0x3522d0;}_0x53e409['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x563c36){if('formatBlock'!=_0x563c36['type'])return;const {data:_0x3404df}=_0x563c36;if(!_0x3404df)return;let _0x540af5,_0xb117ef,_0x399af1,_0x1e3f05;switch(_0x3404df['commandName']){case'bulletedList':_0x399af1=_0x3404df['commandParams'][0x0]['forceValue'],_0x1e3f05=_0x35e8ad(_0x3404df['commandName']),_0x540af5=_0x399af1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1e3f05&&_0x53e409['config']['get']('list.multiBlock')||(_0x540af5='*Change\x20to:*\x20%0'),_0xb117ef={'type':'format','content':o(_0x87fed6,_0x540af5,o(_0x87fed6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x399af1=_0x3404df['commandParams'][0x0]['forceValue'],_0x1e3f05=_0x35e8ad(_0x3404df['commandName']),_0x540af5=_0x399af1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1e3f05&&_0x53e409['config']['get']('list.multiBlock')||(_0x540af5='*Change\x20to:*\x20%0'),_0xb117ef={'type':'format','content':o(_0x87fed6,_0x540af5,o(_0x87fed6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x540af5='*Indent:*\x20%0',_0xb117ef={'type':'format','content':o(_0x87fed6,_0x540af5,o(_0x87fed6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x540af5=function(_0x490498){const _0x5d5fb7=_0x490498['getFirstRange']();let _0x197039=_0x5d5fb7['start']['nodeAfter'];for(;_0x197039&&_0x5d5fb7['containsItem'](_0x197039);){if(_0x197039['getAttribute']('listIndent')>0x0)return!0x1;_0x197039=_0x197039['nextSibling'];}return!0x0;}(_0x563c36)?o(_0x87fed6,'*Format:*\x20remove\x20from\x20%0',o(_0x87fed6,function(_0xba4106){return'ELEMENT_'+_0xba4106['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x563c36))):o(_0x87fed6,'*Outdent:*\x20%0',o(_0x87fed6,'ELEMENT_LIST_ITEM')),_0xb117ef={'type':'format','content':_0x540af5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3404df['multipleBlocks']&&(_0x540af5='*Merge:*\x20%0',_0xb117ef={'type':'deletion','content':o(_0x87fed6,_0x540af5,o(_0x87fed6,'ELEMENT_LIST_ITEM'))});}return _0xb117ef;});}}function le(_0x3f36e0){let _0x1277ab=_0x3f36e0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1277ab;){const _0x83e106=_0x1277ab['getAttribute']('listItemId');if(!_0x83e106)return!0x1;if(_0x83e106==_0x3f36e0['data']['newValue'])return'newValue';if(_0x83e106==_0x3f36e0['data']['oldValue'])return'oldValue';_0x1277ab=_0x1277ab['previousSibling'];}return!0x1;}class ue extends _0x58f0a6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bc4a9=this['editor']['config']['get']('list.properties'),_0x2f3c04=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bc4a9['styles']&&(_0x2f3c04['enableDefaultAttributesIntegration']('listStyle'),_0x2f3c04['registerBlockAttribute']('listStyle')),_0x2bc4a9['reversed']&&(_0x2f3c04['enableDefaultAttributesIntegration']('listReversed'),_0x2f3c04['registerBlockAttribute']('listReversed')),_0x2bc4a9['startIndex']&&(_0x2f3c04['enableDefaultAttributesIntegration']('listStart'),_0x2f3c04['registerBlockAttribute']('listStart'));const _0x30828f={'type':'format','content':''};_0x2f3c04['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1c139f=this['editor']['locale'];_0x2f3c04['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1c139f,'FORMAT_LIST_REVERSED')),_0x2f3c04['descriptionFactory']['registerDescriptionCallback'](_0x53dfd9=>{const {data:_0x2980c7}=_0x53dfd9;if(_0x2980c7&&'listReversed'==_0x2980c7['key'])return null==_0x2980c7['newValue']||0x0==_0x2980c7['newValue']&&null==_0x2980c7['oldValue']?_0x30828f:void 0x0;}),_0x2f3c04['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1c139f,'FORMAT_LIST_START')),_0x2f3c04['descriptionFactory']['registerDescriptionCallback'](_0x3d9ed3=>{const {data:_0xbf9151}=_0x3d9ed3;if(_0xbf9151&&'listStart'==_0xbf9151['key'])return null==_0xbf9151['newValue']||0x1==_0xbf9151['newValue']&&null==_0xbf9151['oldValue']?_0x30828f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1227c3=>{if(_0x1227c3['batch']['isUndo'])return!0x1;let _0x41c74d=!0x1;const _0x250374=_0x2f3c04['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41dd53=>{const _0x1a60b7=_0x2f3c04['_getAttributeKey'](_0x41dd53);return'listStart'==_0x1a60b7||'listReversed'==_0x1a60b7;});for(const _0x2951ac of _0x250374){const _0x3fe29b=_0x2951ac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3fe29b||'customNumbered'==_0x3fe29b)continue;_0x2f3c04['_findSuggestions'](_0x2951ac['getFirstRange'](),'attribute')['find'](_0x1361e1=>'listType'==_0x2f3c04['_getAttributeKey'](_0x1361e1['suggestion']))||(_0x1227c3['removeMarker'](_0x2951ac['getFirstMarker']()),_0x41c74d=!0x0);}return _0x41c74d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4fc6e2){const _0xa30589=this['editor']['locale'],{data:_0x35ef56}=_0x4fc6e2,_0x18b351={'type':'format','content':''};if(!_0x35ef56||'listStyle'!=_0x35ef56['key'])return;if(!_0x35ef56['oldValue'])return'default'==_0x35ef56['newValue']?_0x18b351:{'type':'format','content':''+o(_0xa30589,'*Set\x20format:*\x20%0',o(_0xa30589,this['_getTranslationKeyForListStyle'](_0x35ef56['newValue'])))};if(!_0x35ef56['newValue']){if('default'==_0x35ef56['oldValue'])return _0x18b351;let _0x3204fe=_0x4fc6e2['head'];for(;_0x3204fe;){if(_0x3204fe['data']&&'listType'==_0x3204fe['data']['key']&&_0x3204fe['data']['newValue'])return _0x18b351;_0x3204fe=_0x3204fe['next'];}return{'type':'format','content':''+o(_0xa30589,'*Remove\x20format:*\x20%0',o(_0xa30589,this['_getTranslationKeyForListStyle'](_0x35ef56['oldValue'])))};}if('default'!=_0x35ef56['newValue'])return{'type':'format','content':''+o(_0xa30589,'*Set\x20format:*\x20%0',o(_0xa30589,this['_getTranslationKeyForListStyle'](_0x35ef56['newValue'])))};let _0x18aca4=_0x4fc6e2['head'];for(;_0x18aca4;){if(_0x18aca4['data']&&'listType'==_0x18aca4['data']['key']&&_0x18aca4['data']['newValue']&&_0x18aca4['data']['oldValue'])return _0x18b351;_0x18aca4=_0x18aca4['next'];}return{'type':'format','content':o(_0xa30589,'*Set\x20format:*\x20%0',o(_0xa30589,'ELEMENT_'+_0x4fc6e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xdbaa6c=this['editor'],_0x4b36ec=_0xdbaa6c['locale'];_0xdbaa6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x107166=>{if('formatBlock'!=_0x107166['type'])return;const {data:_0x5c9c0a}=_0x107166;if(!_0x5c9c0a)return;let _0x200c7f,_0x142846;switch(_0x5c9c0a['commandName']){case'listStyle':_0x200c7f='*Change\x20to:*\x20%0',_0x142846={'type':'format','content':o(_0x4b36ec,_0x200c7f,o(_0x4b36ec,this['_getTranslationKeyForListStyle'](_0x5c9c0a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x200c7f=_0x5c9c0a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x142846={'type':'format','content':o(_0x4b36ec,_0x200c7f)};break;case'listStart':_0x200c7f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x142846={'type':'format','content':o(_0x4b36ec,_0x200c7f,_0x5c9c0a['commandParams'][0x0]['startIndex'])};}return _0x142846;});}['_getTranslationKeyForListStyle'](_0xf9d2aa){return'ELEMENT_'+function(_0x2f96bf){if(pe['includes'](_0x2f96bf))return'bulleted';if(ye['includes'](_0x2f96bf))return'numbered';return null;}(_0xf9d2aa)['toUpperCase']()+'_LIST_'+_0xf9d2aa['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x58f0a6{static get['requires'](){return[_0xe8169];}['init'](){const _0x571d63=this['editor'],_0x3559cb=_0x571d63['plugins']['get']('TrackChangesEditing'),_0x420348=_0x571d63['commands']['get']('enter');_0x3559cb['enableCommand']('enter',()=>{_0x571d63['model']['change'](_0x4df972=>{const _0x54908b=_0x571d63['model']['document']['selection'],_0x30752c=_0x54908b['getFirstPosition'](),_0x5b3da0=_0x5733e9['fromRange'](_0x54908b['getFirstRange']());if(_0x420348['enterBlock'](_0x4df972)){const _0x142dbb=_0x571d63['model']['createPositionAt'](_0x30752c['parent']['nextSibling'],0x0),_0x271ed9=_0x4df972['createRange'](_0x30752c,_0x142dbb);_0x3559cb['markInsertion'](_0x271ed9);}else _0x4df972['setSelection'](_0x4df972['createRange'](_0x5b3da0['end']));_0x5b3da0['detach'](),_0x420348['fire']('afterExecute',{'writer':_0x4df972});});}),_0x571d63['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x571d63,'split'),{'priority':'high'}),_0x571d63['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2afb5f,_0x4a4c5c,_0xd32592)=>{const _0x5117f0=_0xd32592['mapper']['markerNameToElements'](_0x4a4c5c['markerName']);if(_0x5117f0){for(const _0x528821 of _0x5117f0)_0x528821['hasClass']('ck-suggestion-marker-split')&&(_0xd32592['mapper']['unbindElementFromMarkerName'](_0x528821,_0x4a4c5c['markerName']),_0xd32592['writer']['remove'](_0x528821));}},{'priority':'high'}),_0x571d63['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f5fe2,_0x32fc4e,_0x3d6fc5)=>{_0x3d6fc5['options']['showSuggestionHighlights']&&_e(_0x571d63,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1f5fe2,_0x32fc4e,_0x3d6fc5);},{'priority':'high'});}}class J extends _0x58f0a6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x244905=this['editor']['plugins']['get']('TrackChangesEditing');_0x244905['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x244905['enableCommand']('findNext'),_0x244905['enableCommand']('findPrevious'),_0x244905['enableCommand']('replace'),_0x244905['enableCommand']('replaceAll');}['handleFindCommand'](_0x48f448,_0x3eb6fd,_0x3c66c1={}){const _0x5ece9e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48f448(_0x2601dd=>{let _0x340535=('string'==typeof _0x3eb6fd?_0x5ece9e['findByTextCallback'](_0x3eb6fd,_0x3c66c1):_0x3eb6fd)(_0x2601dd);Array['isArray'](_0x340535)&&(_0x340535={'results':_0x340535,'searchText':'string'==typeof _0x3eb6fd?_0x3eb6fd:''});const _0x49baae=_0x340535['results']['filter'](_0x2f514a=>!0x1===this['_isInDeletionRange'](_0x2f514a,_0x2601dd['item']));return{..._0x340535,'results':_0x49baae};},_0x3c66c1);}['_isInDeletionRange'](_0x44eceb,_0x36e712){const _0x3b67ae=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36e712,_0x44eceb['start']),this['editor']['model']['createPositionAt'](_0x36e712,_0x44eceb['end']));for(const _0x1f374 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3b67ae['getIntersection'](_0x1f374['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x58f0a6{['afterInit'](){const _0x347498=this['editor']['locale'],_0x400b47=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a8532,commandName:_0x34aa39}of ro)this['editor']['plugins']['has'](_0x4a8532)&&(_0x400b47['enableDefaultAttributesIntegration'](_0x34aa39),_0x400b47['registerInlineAttribute'](_0x34aa39));_0x400b47['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x347498,'FORMAT_FONT_SIZE')),_0x400b47['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x347498,'FORMAT_FONT_FAMILY')),_0x400b47['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x347498,'FORMAT_FONT_COLOR')),_0x400b47['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x347498,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x118e37=this['editor'],_0x108fd7=_0x118e37['locale'];_0x118e37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x293019=>{const _0x25279b=_0x108fd7['t'];if('formatInline'!=_0x293019['type'])return;const {data:_0x492901}=_0x293019;if(null!=_0x492901){if('fontSize'==_0x492901['commandName']){const _0x1185a4=_0x492901['commandParams'][0x0]['value'];if(_0x1185a4){const _0x57065f=_0x25279b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a6503=>_0x1a6503['model']==_0x1185a4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x108fd7,'*Set\x20font\x20size:*\x20%0',_0x57065f)};}return{'type':'format','content':o(_0x108fd7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x492901['commandName']){const _0x3c6500=_0x492901['commandParams'][0x0]['value'];return _0x3c6500?{'type':'format','content':o(_0x108fd7,'*Set\x20font\x20family:*\x20%0',_0x3c6500)}:{'type':'format','content':o(_0x108fd7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x492901['commandName']){const _0x255853=_0x492901['commandParams'][0x0]['value'];if(_0x255853){const _0x284068=_0x3c1555(this['editor']['config']['get']('fontColor.colors'))['find'](_0x334b96=>_0x334b96['model']==_0x255853);let _0x5ec18f=_0x255853,_0x45c4dc='';return _0x284068&&(_0x5ec18f=_0x284068['label'],_0x45c4dc=_0x25279b(_0x5ec18f)['toLowerCase']()),{'type':'format','content':o(_0x108fd7,'*Set\x20font\x20color:*\x20%0',_0x45c4dc)['trim'](),'color':{'value':_0x255853,'title':_0x45c4dc||_0x5ec18f}};}return{'type':'format','content':o(_0x108fd7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x492901['commandName']){const _0x4a6eed=_0x492901['commandParams'][0x0]['value'];if(_0x4a6eed){const _0x132e2c=_0x3c1555(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5f3454=>_0x5f3454['model']==_0x4a6eed);let _0x454db6=_0x4a6eed,_0xe1d967='';return _0x132e2c&&(_0x454db6=_0x132e2c['label'],_0xe1d967=_0x25279b(_0x454db6)['toLowerCase']()),{'type':'format','content':o(_0x108fd7,'*Set\x20font\x20background\x20color:*\x20%0',_0xe1d967)['trim'](),'color':{'value':_0x4a6eed,'title':_0xe1d967||_0x454db6}};}return{'type':'format','content':o(_0x108fd7,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x58f0a6{['afterInit'](){const _0x20dee6=this['editor'],_0x3452f0=_0x20dee6['plugins']['get']('TrackChangesEditing'),_0x4fa26b=_0x20dee6['commands']['get']('copyFormat'),_0x9dfbac=_0x20dee6['commands']['get']('pasteFormat');_0x4fa26b&&_0x9dfbac&&(_0x3452f0['enableDefaultAttributesIntegration']('pasteFormat'),_0x3452f0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x26f964=this['editor'],_0x350864=_0x26f964['locale'];_0x26f964['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x383fb5=>{if('formatBlock'!=_0x383fb5['type']&&'formatInline'!=_0x383fb5['type'])return;const {data:_0x3ff02c}=_0x383fb5;if(_0x3ff02c&&'pasteFormat'===_0x3ff02c['commandName']){const _0x49b258=[],_0x422c95=_0x3ff02c['commandParams'][0x0];for(const [_0x1e661c,_0xcd081e]of Object['entries'](_0x422c95))_0x49b258['push'](so(_0x26f964,_0x1e661c,_0xcd081e));return _0x49b258['length']?{'type':'format','content':o(_0x350864,'*Set\x20format\x20to:*\x20%0',_0x49b258['join'](',\x20'))}:{'type':'format','content':o(_0x350864,'*Remove\x20all\x20formatting*')};}});}}function so(_0x136915,_0x4cb1dc,_0x327316){const _0x8ad40f=_0x136915['locale']['t'],_0x4851af=_0x4cb1dc['split'](/(?=[A-Z])/)['join']('\x20'),_0xa63f92=_0x8ad40f(_0x4851af['charAt'](0x0)['toUpperCase']()+_0x4851af['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x327316)return _0xa63f92;if('fontColor'===_0x4cb1dc||'fontBackgroundColor'===_0x4cb1dc){const _0x570da0=_0x3c1555(_0x136915['config']['get']('fontColor.colors'))['find'](_0xed3008=>_0xed3008['model']==_0x327316);return _0xa63f92+'\x20('+(_0x570da0?_0x8ad40f(_0x570da0['label'])['toLowerCase']():_0x327316)+')';}if('fontSize'===_0x4cb1dc&&isNaN(parseFloat(_0x327316))){const _0x4cb553=_0x136915['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x136915['config']['get']('fontSize.options'))['find'](_0x464e46=>_0x464e46['model']==_0x327316);return _0xa63f92+'\x20('+(_0x4cb553?_0x8ad40f(_0x4cb553['title'])['toLowerCase']():_0x327316)+')';}return _0xa63f92+'\x20('+_0x327316+')';}class Y extends _0x58f0a6{['_headingOptions'];['afterInit'](){const _0x1aeed1=this['editor'];if(!_0x1aeed1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1aeed1['config']['get']('heading.options');const _0x540763=_0x1aeed1['locale'],_0x1dcda0=_0x1aeed1['plugins']['get']('TrackChangesEditing');_0x1dcda0['enableDefaultAttributesIntegration']('heading');for(const _0x117740 of this['_headingOptions'])'paragraph'!=_0x117740['model']&&_0x1dcda0['descriptionFactory']['registerElementLabel'](_0x117740['model'],_0x569ace=>{const _0x595d1c=this['_getHeadingLevel'](_0x117740['model']);return null!==_0x595d1c?_0x4d337e(_0x569ace,_0x595d1c):_0x3194a9(_0x569ace,_0x117740['title']);});function _0x4d337e(_0x4fb2e0,_0x12b331){return o(_0x540763,'ELEMENT_HEADING',[_0x4fb2e0,_0x12b331]);}function _0x3194a9(_0x250640,_0x42a8e1){return o(_0x540763,'ELEMENT_HEADING_CUSTOM',[_0x250640,_0x42a8e1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28e51a=this['editor'],_0x5577af=_0x28e51a['locale'];function _0x408aae(_0x417c52,_0x1d4679){return o(_0x5577af,'ELEMENT_HEADING_CUSTOM',[_0x417c52,_0x1d4679]);}_0x28e51a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53a9fd=>{if('formatBlock'!=_0x53a9fd['type'])return;const {data:_0x2aa98c}=_0x53a9fd;if(_0x2aa98c&&'heading'==_0x2aa98c['commandName']){const _0xbefea0=_0x2aa98c['commandParams'][0x0]['value'],_0x21f471=this['_getHeadingLevel'](_0xbefea0);if(null!==_0x21f471)return{'type':'format','content':o(_0x5577af,'*Change\x20to:*\x20%0',(_0x447af9=0x1,_0x4b9572=_0x21f471,o(_0x5577af,'ELEMENT_HEADING',[_0x447af9,_0x4b9572])))};const _0xf9037e=this['_headingOptions']['find'](_0x27c887=>_0x27c887['model']===_0xbefea0)['title'];return{'type':'format','content':o(_0x5577af,'*Change\x20to:*\x20%0',_0x408aae(0x1,_0xf9037e))};}var _0x447af9,_0x4b9572;});}['_getHeadingLevel'](_0x4ef4e5){const _0x7ab26c=_0x4ef4e5['match'](/^heading(\d+)/);if(_0x7ab26c)return _0x7ab26c[0x1];const _0x2e51e6=this['_headingOptions']?.['find'](_0x434e5e=>_0x434e5e['model']==_0x4ef4e5);if(_0x2e51e6&&_0x2e51e6['view']){const _0x109afc=_0x2e51e6['view'],_0x14d5c4=(_0x109afc['name']??_0x109afc)['match'](/^h(\d+)/);if(_0x14d5c4)return _0x14d5c4[0x1];}return null;}}class Z extends _0x58f0a6{['afterInit'](){const _0x5d846d=this['editor'];if(!_0x5d846d['plugins']['has']('HighlightEditing'))return;const _0x313b0a=_0x5d846d['plugins']['get']('TrackChangesEditing'),_0x2610ae=_0x5d846d['locale'];_0x313b0a['enableDefaultAttributesIntegration']('highlight'),_0x313b0a['registerInlineAttribute']('highlight'),_0x313b0a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2610ae,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25484a=this['editor'],_0x1d8242=_0x25484a['locale'];_0x25484a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f512e=>{if('formatInline'!=_0x2f512e['type'])return;const {data:_0x19e537}=_0x2f512e;if(_0x19e537&&'highlight'==_0x19e537['commandName']){const _0x2acc07=_0x1d8242['t'],_0x35bb96=_0x19e537['commandParams'][0x0]['value'];if(_0x35bb96){const _0x594f98=_0x25484a['config']['get']('highlight.options')['find'](_0x13b3e3=>_0x13b3e3['model']==_0x35bb96),_0x49feaa=_0x2acc07(_0x594f98['title'])['toLowerCase']();return{'type':'format','content':o(_0x1d8242,'*Set\x20highlight:*\x20%0',_0x49feaa),'color':{'value':_0x594f98['color'],'title':_0x594f98['title']}};}return{'type':'format','content':o(_0x1d8242,'*Remove\x20highlight*',o(_0x1d8242,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x58f0a6{['afterInit'](){const _0x152f47=this['editor'];if(!_0x152f47['plugins']['has']('HorizontalLineEditing'))return;_0x152f47['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x57c2b4=_0x152f47['plugins']['get']('TrackChangesEditing'),_0x22d8c4=_0x152f47['locale'];_0x57c2b4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4dddfc=>o(_0x22d8c4,'ELEMENT_HORIZONTAL_LINE',_0x4dddfc)),_0x152f47['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2cd21b,{writer:_0x496d16,options:_0x4dd866})=>{if(!_0x4dd866['showSuggestionHighlights'])return null;const _0x31d6f7=_0x496d16['createContainerElement']('div'),_0x2cdebd=_0x496d16['createEmptyElement']('hr');return _0x496d16['addClass']('ck-horizontal-line',_0x31d6f7),_0x496d16['insert'](_0x496d16['createPositionAt'](_0x31d6f7,0x0),_0x2cdebd),_0x31d6f7;},'converterPriority':'high'});}}class et extends _0x58f0a6{['afterInit'](){const _0x16ef1f=this['editor'];if(!_0x16ef1f['plugins']['has']('HtmlEmbed'))return;const _0x390cf3=_0x16ef1f['plugins']['get']('TrackChangesEditing'),_0x653de1=_0x16ef1f['locale'];_0x390cf3['descriptionFactory']['registerElementLabel']('rawHtml',_0x47faa9=>o(_0x653de1,'ELEMENT_HTML_EMBED',_0x47faa9)),_0x390cf3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x390cf3['registerBlockAttribute']('value'),_0x390cf3['descriptionFactory']['registerDescriptionCallback'](_0xd5d45e=>{if('attribute'!=_0xd5d45e['type'])return;const {data:_0x17d70e}=_0xd5d45e;if(_0x17d70e&&'value'==_0x17d70e['key']&&_0xd5d45e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x336090=o(_0x653de1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x653de1,'*Change\x20%0\x20content*',_0x336090)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306940=this['editor'],_0xdd1ba2=_0x306940['locale'];_0x306940['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c73ee=>{if('formatBlock'!=_0x1c73ee['type'])return;const {data:_0x507057}=_0x1c73ee;if(_0x507057&&'htmlEmbed'==_0x507057['commandName']){const _0x71335b=o(_0xdd1ba2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xdd1ba2,'*Change\x20%0\x20content*',_0x71335b)};}});}}class it extends _0x58f0a6{['afterInit'](){const _0x1acd6f=this['editor'];if(!_0x1acd6f['plugins']['has']('ImageEditing'))return;const _0x1e1879=_0x1acd6f['plugins']['get']('TrackChangesEditing'),_0x2262d=_0x1acd6f['plugins']['get']('ImageUtils'),_0x1e069a=_0x1acd6f['locale'];_0x1e1879['enableCommand']('insertImage'),_0x1e1879['descriptionFactory']['registerElementLabel']('imageBlock',_0x2adb6d=>o(_0x1e069a,'ELEMENT_IMAGE',_0x2adb6d)),_0x1e1879['descriptionFactory']['registerElementLabel']('imageInline',_0x42e54c=>o(_0x1e069a,'ELEMENT_INLINE_IMAGE',_0x42e54c)),_0x1e1879['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e069a,'ELEMENT_CAPTION')),_0x1acd6f['plugins']['has']('ImageUploadEditing')&&_0x1e1879['enableCommand']('uploadImage'),_0x1acd6f['plugins']['has']('ImageBlockEditing')&&_0x1acd6f['plugins']['has']('ImageInlineEditing')&&(_0x1e1879['enableCommand']('imageTypeInline',(_0x41a3f0,_0x515b44)=>{const _0x46f436=_0x2262d['getClosestSelectedImageElement'](_0x1acd6f['model']['document']['selection']);_0x1acd6f['model']['change'](()=>{_0x1e1879['markBlockFormat'](_0x46f436,{'commandName':'imageTypeInline','commandParams':[_0x515b44]},[],'convertBlockImageToInline');});}),_0x1e1879['enableCommand']('imageTypeBlock',(_0xda063b,_0x8f8bcb)=>{_0x1acd6f['model']['change'](_0x1d70f4=>{let _0x5589c5=_0x2262d['getClosestSelectedImageElement'](_0x1acd6f['model']['document']['selection']),_0x1e740a=_0x1d70f4['createRangeOn'](_0x5589c5);const _0x405439=_0x3aa60d['fromPosition'](_0x1e740a['start'],'toPrevious'),_0x3fae31=_0x3aa60d['fromPosition'](_0x1e740a['end'],'toNext');_0x1e1879['forceDefaultExecution'](()=>_0xda063b(_0x8f8bcb)),_0x5589c5=_0x2262d['getClosestSelectedImageElement'](_0x1acd6f['model']['document']['selection']),_0x1e740a=_0x1d70f4['createRangeOn'](_0x5589c5);const _0x588791=_0x1d70f4['createRange'](_0x405439,_0x3fae31);_0x405439['detach'](),_0x3fae31['detach'](),_0x1e1879['markBlockFormat'](_0x5589c5,{'commandName':'imageTypeInline','commandParams':[_0x8f8bcb]},[],'convertInlineImageToBlock'),_0x588791['start']['isBefore'](_0x1e740a['start'])&&_0x1e1879['markInsertion'](_0x1d70f4['createRange'](_0x588791['start'],_0x1e740a['start']),'convertInlineImageToBlock'),_0x1e740a['end']['isBefore'](_0x588791['end'])&&_0x1e1879['markInsertion'](_0x1d70f4['createRange'](_0x1e740a['end'],_0x588791['end']),'convertInlineImageToBlock');});}),_0x1e1879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e1879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e1879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e1879['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e1879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e1879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x39f683])=>{const _0x3dc5b3=_0x1e1879['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x31a371=_0x39f683['start'],_0x3ceb7d=_0x39f683['end'];const _0x4e9d05=_0x1acd6f['model']['schema']['getNearestSelectionRange'](_0x31a371,'backward'),_0x2a476e=_0x1acd6f['model']['schema']['getNearestSelectionRange'](_0x3ceb7d,'forward');_0x4e9d05['isCollapsed']&&(_0x31a371=_0x4e9d05['start']),_0x2a476e['isCollapsed']&&(_0x3ceb7d=_0x2a476e['end']),_0x3dc5b3([_0x1acd6f['model']['createRange'](_0x31a371,_0x3ceb7d)]);}),_0x1e1879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x580099),_0x1e1879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x580099)),_0x1acd6f['plugins']['has']('ImageCaptionEditing')&&(_0x1e1879['enableCommand']('toggleImageCaption',(_0x7d1f63,_0x30366c)=>{const _0xaa8c8c=_0x1acd6f['plugins']['get']('ImageCaptionUtils');let _0x50d97a=_0x2262d['getClosestSelectedImageElement'](_0x1acd6f['model']['document']['selection']),_0x27819b=_0xaa8c8c['getCaptionFromImageModelElement'](_0x50d97a);_0x1acd6f['model']['change'](()=>{if(_0x27819b)return void _0x1e1879['markDeletion'](_0x1acd6f['model']['createRangeOn'](_0x27819b));const _0x43c4da=_0x2262d['isBlockImage'](_0x50d97a);_0x7d1f63(_0x30366c),_0x50d97a=_0x2262d['getClosestSelectedImageElement'](_0x1acd6f['model']['document']['selection']),_0x27819b=_0xaa8c8c['getCaptionFromImageModelElement'](_0x50d97a),_0x1e1879['markInsertion'](_0x1acd6f['model']['createRangeOn'](_0x27819b),_0x43c4da?null:'imageCaption');});}),_0x1e1879['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x580099));const _0xf98162=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x525d75(_0x186205,_0x55b023){const _0x1b7cb5=_0xf98162['findIndex'](({type:_0x747f48,subType:_0x23e8cf})=>_0x186205['type']==_0x747f48&&_0x186205['subType']==_0x23e8cf),_0x3a830c=_0xf98162['findIndex'](({type:_0x5b5b21,subType:_0x3c3a8d})=>_0x55b023['type']==_0x5b5b21&&_0x55b023['subType']==_0x3c3a8d);if(_0x1b7cb5<0x0||_0x3a830c<0x0)return!0x1;const _0x3bdfce=_0x186205['getFirstRange'](),_0x4d6c98=_0x55b023['getFirstRange']();if((0x0==_0x1b7cb5||0x1==_0x1b7cb5)&&0x2==_0x3a830c&&_0x3bdfce['isIntersecting'](_0x4d6c98))return!0x0;if(0x2==_0x1b7cb5&&0x3==_0x3a830c){const _0x2e485c=_0x1e1879['_findSuggestions'](_0x3bdfce,'insertion')['filter'](({suggestion:_0x2beb92,meta:_0x3101cf})=>_0x3101cf['isOwn']&&'convertInlineImageToBlock'==_0x2beb92['subType']);if(_0x2e485c['length']>0x1&&_0x4d6c98['end']['isEqual'](_0x3bdfce['start']))return!0x0;if(0x1==_0x2e485c['length']&&(_0x3bdfce['start']['isEqual'](_0x4d6c98['end'])||_0x3bdfce['end']['isEqual'](_0x4d6c98['start'])))return!0x0;}if(0x3==_0x1b7cb5&&0x3==_0x3a830c&&_0x3bdfce['start']['isBefore'](_0x4d6c98['start'])){const _0x137cd5=_0x3bdfce['end']['nodeAfter'],_0x45b1e8=_0x4d6c98['start']['nodeBefore'];return _0x2262d['isBlockImage'](_0x137cd5)&&_0x137cd5===_0x45b1e8;}return!0x1;}function _0x580099(_0x349822,_0x26a631){return _0x525d75(_0x349822,_0x26a631)?[_0x349822,_0x26a631]:_0x525d75(_0x26a631,_0x349822)?[_0x26a631,_0x349822]:null;}_0x1acd6f['plugins']['has']('ImageResize')&&(_0x1e1879['enableDefaultAttributesIntegration']('resizeImage'),_0x1e1879['registerBlockAttribute']('resizedWidth'),_0x1e1879['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e069a,'FORMAT_IMAGE_SIZE'))),_0x1acd6f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1e1879['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1e1879['registerBlockAttribute']('alt')),_0x1e1879['descriptionFactory']['registerDescriptionCallback'](_0x15324e=>{if(!!_0xf98162['find'](({type:_0x1ed47e,subType:_0x181bdf})=>_0x15324e['type']==_0x1ed47e&&_0x15324e['subType']==_0x181bdf))return _0x15324e['previous']?{}:void 0x0;}),_0x1e1879['descriptionFactory']['registerDescriptionCallback'](_0x33f8b4=>{if('insertion'==_0x33f8b4['type']||'deletion'==_0x33f8b4['type']){const _0x8d9c57=_0x33f8b4['getContainedElement']();if(_0x8d9c57&&_0x8d9c57['is']('element','caption'))return{'type':'insertion'==_0x33f8b4['type']?'addObject':'removeObject','element':_0x8d9c57,'quantity':0x1};}}),_0x1e1879['descriptionFactory']['registerDescriptionCallback'](_0x405d72=>'formatBlock'==_0x405d72['type']&&'convertInlineImageToBlock'==_0x405d72['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x405d72['type']&&'convertBlockImageToInline'==_0x405d72['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e1879['descriptionFactory']['registerDescriptionCallback'](_0x173e1c=>{if('attribute'!=_0x173e1c['type'])return;const {data:_0x55b952}=_0x173e1c;if(!_0x55b952||'alt'!=_0x55b952['key'])return;const _0x48f314=_0x55b952['newValue'];return _0x48f314?{'type':'format','content':o(_0x1e069a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48f314+'\x22')}:{'type':'format','content':o(_0x1e069a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26b158=this['editor'],_0x41f4ab=_0x26b158['locale'];_0x26b158['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4989=>{if('formatBlock'!=_0x4b4989['type']&&'formatInline'!=_0x4b4989['type'])return;const {data:_0x87b71d}=_0x4b4989;if(_0x87b71d){if('imageTextAlternative'==_0x87b71d['commandName']){const _0x1a1654=_0x87b71d['commandParams'][0x0]['newValue'];return _0x1a1654?{'type':'format','content':o(_0x41f4ab,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1a1654+'\x22')}:{'type':'format','content':o(_0x41f4ab,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x87b71d['commandName']){const _0x40be7f=_0x87b71d['commandParams'][0x0]['width'];return _0x40be7f?{'type':'format','content':o(_0x41f4ab,'*Set\x20image\x20width:*\x20%0',_0x40be7f)}:{'type':'format','content':o(_0x41f4ab,'*Reset\x20image\x20width*')};}}});}}class st extends _0x58f0a6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2cc62c=this['editor']['locale'],_0x33096b=this['editor']['plugins']['get']('TrackChangesEditing');_0x33096b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x33096b['registerBlockAttribute']('src'),_0x33096b['descriptionFactory']['registerDescriptionCallback'](_0x454a83=>{if('attribute'!=_0x454a83['type'])return;const {data:_0x361155}=_0x454a83;return _0x361155&&'src'==_0x361155['key']?_0x361155['newValue']&&_0x361155['oldValue']?{'type':'format','content':o(_0x2cc62c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50a54b=this['editor']['plugins']['get']('TrackChangesEditing');_0x50a54b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50a54b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50a54b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50a54b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d7b21=this['editor'],_0x27523c=_0x3d7b21['locale'];_0x3d7b21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14c235=>{if('formatBlock'!=_0x14c235['type']&&'formatInline'!=_0x14c235['type'])return;const {data:_0x3f632e}=_0x14c235;if(!_0x3f632e||'replaceImageSource'!=_0x3f632e['commandName'])return;return{'type':'format','content':o(_0x27523c,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x58f0a6{['afterInit'](){const _0xaa5b1a=this['editor'];if(!_0xaa5b1a['plugins']['has']('ImageStyleEditing'))return;const _0x5a68cc=_0xaa5b1a['plugins']['get']('TrackChangesEditing'),_0x30af1f=_0xaa5b1a['plugins']['get']('ImageUtils'),_0xf7b7da={};_0x5a68cc['enableCommand']('imageStyle',(_0x5c3e46,_0x40e918)=>{const _0x284f39=_0xaa5b1a['plugins']['get']('Users')['me'],_0x24b103=_0xaa5b1a['commands']['get']('imageStyle');let _0x322074=_0x30af1f['getClosestSelectedImageElement'](_0xaa5b1a['model']['document']['selection']),_0x4bb804=_0xaa5b1a['model']['createRangeOn'](_0x322074),_0x25562d=_0x24b103['value'];if(_0x25562d==_0x40e918['value'])return;const _0x395a4b={'commandName':'imageStyle','commandParams':[_0x40e918],'formatGroupId':_0x418fff()};_0xaa5b1a['model']['change'](()=>{if(_0x5a68cc['getSuggestions']()['filter'](_0x30627a=>_0x30627a['isInContent']&&_0x284f39==_0x30627a['author']&&('formatBlock'==_0x30627a['type']||'formatInline'==_0x30627a['type'])&&('imageStylePreApply'==_0x30627a['subType']||'imageStylePostApply'==_0x30627a['subType'])&&_0x30627a['getFirstRange']()['isEqual'](_0x4bb804))['forEach'](_0x155bd1=>_0x5a68cc['discardSuggestion'](_0x155bd1['head'])),_0x322074=_0x30af1f['getClosestSelectedImageElement'](_0xaa5b1a['model']['document']['selection']),_0x4bb804=_0xaa5b1a['model']['createRangeOn'](_0x322074),_0x24b103['refresh'](),_0xaa5b1a['commands']['get']('imageTypeInline')['refresh'](),_0xaa5b1a['commands']['get']('imageTypeBlock')['refresh'](),_0x25562d=_0x24b103['value'],_0x25562d!=_0x40e918['value'])return _0x30af1f['isInlineImage'](_0x322074)&&_0x24b103['shouldConvertImageType'](_0x40e918['value'],_0x322074)?(_0x5c3e46({..._0x40e918,'setImageSizes':!0x1}),_0x322074=_0x30af1f['getClosestSelectedImageElement'](_0xaa5b1a['model']['document']['selection']),void _0x5a68cc['markBlockFormat'](_0x322074,{..._0x395a4b,'commandReversedParams':[{'value':_0x25562d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x30af1f['isBlockImage'](_0x322074)?_0x5a68cc['markBlockFormat'](_0x322074,_0x395a4b,[],'imageStylePostApply'):_0x5a68cc['markInlineFormat'](_0x4bb804,_0x395a4b,'imageStylePostApply'));});});for(const _0x468e0b of _0xaa5b1a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xf7b7da[_0x468e0b['name']]=_0x468e0b['title']['toLowerCase']();_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e0b42])=>{_0x30af1f['setImageNaturalSizeAttributes'](_0x3e0b42['getContainedElement']());}),_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x382884,_0x3fad43)=>{_0x5a68cc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x382884,{'commandName':_0x3fad43['commandName'],'commandParams':_0x3fad43['commandReversedParams']});}),_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e0d18,_0x4fe50e){if(_0x2ebe4d(_0x3e0d18,_0x4fe50e))return[_0x3e0d18,_0x4fe50e];if(_0x2ebe4d(_0x4fe50e,_0x3e0d18))return[_0x4fe50e,_0x3e0d18];return null;});const _0x21859e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ebe4d(_0x53c021,_0x4f9d70){const _0x31692e=_0x21859e['findIndex'](({type:_0x40480a,subType:_0x22b733})=>_0x53c021['type']==_0x40480a&&_0x53c021['subType']==_0x22b733),_0x132c8b=_0x21859e['findIndex'](({type:_0x4b9f13,subType:_0xc47e6c})=>_0x4f9d70['type']==_0x4b9f13&&_0x4f9d70['subType']==_0xc47e6c);if(_0x31692e<0x0||_0x132c8b<0x0)return!0x1;const _0x589baf=_0x53c021['getFirstRange'](),_0x5ca84c=_0x4f9d70['getFirstRange']();if((0x0==_0x31692e||0x1==_0x31692e)&&0x2==_0x132c8b&&_0x589baf['isIntersecting'](_0x5ca84c))return!0x0;if(0x2==_0x31692e&&0x3==_0x132c8b){const _0x47d98b=_0x5a68cc['_findSuggestions'](_0x589baf,'insertion')['filter'](({suggestion:_0x5215a9,meta:_0x235636})=>_0x235636['isOwn']&&'convertInlineImageToBlock'==_0x5215a9['subType']);if(_0x47d98b['length']>0x1&&_0x5ca84c['end']['isEqual'](_0x589baf['start']))return!0x0;if(0x1==_0x47d98b['length']&&(_0x589baf['start']['isEqual'](_0x5ca84c['end'])||_0x589baf['end']['isEqual'](_0x5ca84c['start'])))return!0x0;}if(0x3==_0x31692e&&0x3==_0x132c8b&&_0x589baf['start']['isBefore'](_0x5ca84c['start'])){const _0x5606c6=_0x589baf['end']['nodeAfter'],_0x3d5725=_0x5ca84c['start']['nodeBefore'];return _0x30af1f['isBlockImage'](_0x5606c6)&&_0x5606c6===_0x3d5725;}return!0x1;}_0xaa5b1a['model']['document']['registerPostFixer'](()=>{let _0x513bf6=!0x1;const _0x158450=Array['from'](_0xaa5b1a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xac857c,data:_0x45a6a8}of _0x158450){const {group:_0x23c9de,type:_0x5d321f,subType:_0x364d4a,id:_0x1db96d}=_0x5a68cc['_splitMarkerName'](_0xac857c);if('suggestion'==_0x23c9de&&_0x5a68cc['hasSuggestion'](_0x1db96d)){if('formatBlock'==_0x5d321f&&('imageStylePreApply'==_0x364d4a||'imageStylePostApply'==_0x364d4a)){const _0x431bad=_0x5a68cc['getSuggestion'](_0x1db96d);if(_0x45a6a8['newRange']){const _0x4b6a5c=_0x431bad['getFirstRange']()['getContainedElement']();if(_0x30af1f['isBlockImage'](_0x4b6a5c))continue;_0x5a68cc['discardSuggestion'](_0x431bad),_0x513bf6=!0x0;}}if('insertion'==_0x5d321f&&'imageCaption'==_0x364d4a&&!_0x45a6a8['newRange']){const _0x4c4367=_0x5a68cc['getSuggestion'](_0x1db96d);_0x4c4367['next']&&_0x4c4367['next']['isInContent']&&(_0x5a68cc['discardSuggestion'](_0x4c4367['next']),_0x513bf6=!0x0);}}}return _0x513bf6;}),this['_registerLegacyDescription'](_0xf7b7da);}['_registerLegacyDescription'](_0x2d0327){const _0x52d0ff=this['editor'],_0x36aa8d=_0x52d0ff['locale'];_0x52d0ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x91b0cc=>{if('formatBlock'!=_0x91b0cc['type']&&'formatInline'!=_0x91b0cc['type'])return;const {data:_0x48dcd7}=_0x91b0cc;if(!_0x48dcd7||'imageStyle'!=_0x48dcd7['commandName'])return;const _0x5031c0=_0x48dcd7['commandParams'][0x0]['value'];return _0x598feb('side'===_0x5031c0?o(_0x36aa8d,'FORMAT_SIDE_IMAGE'):_0x2d0327[_0x5031c0]||_0x5031c0);function _0x598feb(_0x379020){return{'type':'format','content':o(_0x36aa8d,'*Format:*\x20%0',_0x379020)};}});}}class ot extends _0x58f0a6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1b22c3){super(_0x1b22c3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5447ed=this['editor'],_0x2875c1=_0x5447ed['commands']['get']('importWord'),_0x335ffb=_0x5447ed['commands']['get']('trackChanges');_0x2875c1&&(_0x2875c1['on']('execute',(_0x11d870,[,_0x522381])=>{this['_trackChangesValueDuringImport']=_0x335ffb['value'],_0x522381['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2875c1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2875c1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x335ffb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5447ed['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3471f3,_0xfc2abf){const {suggestions:_0x2e98af}=_0xfc2abf,_0x26cab9=this['editor']['commands']['get']('trackChanges'),_0x141013=_0x26cab9['value'];this['_trackChangesValueDuringImport']!==_0x141013&&(_0x26cab9['execute'](),this['_trackChangesExecuted']=!0x0),_0x2e98af&&_0x2e98af['forEach'](({id:_0x5c8892,type:_0x154464,author:_0x56437c,created_at:_0x564950})=>{const _0x46069e={'id':_0x5c8892,'type':_0x154464,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x56437c,'createdAt':_0x564950?new Date(_0x564950):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x46069e);});}}class rt extends _0x58f0a6{['afterInit'](){const _0x2f622a=this['editor'],_0x56b650=_0x2f622a['plugins']['get']('TrackChangesEditing');if(_0x2f622a['plugins']['has']('IndentEditing')&&(_0x56b650['enableCommand']('indent'),_0x56b650['enableCommand']('outdent')),_0x2f622a['plugins']['has']('IndentBlock')){for(const _0x57a79a of['indentBlock','outdentBlock'])_0x56b650['enableDefaultAttributesIntegration'](_0x57a79a);}const _0x5036a4=_0x2f622a['locale'];_0x56b650['registerBlockAttribute']('blockIndent'),_0x56b650['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5036a4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37ef79=this['editor'],_0x1cf777=_0x37ef79['locale'],_0x2817d7=_0x37ef79['plugins']['get']('TrackChangesEditing');_0x2817d7['descriptionFactory']['registerDescriptionCallback'](_0x236686=>{if('formatBlock'!=_0x236686['type'])return;const {data:_0x4c24b9}=_0x236686;if(!_0x4c24b9)return;if('indentBlock'!=_0x4c24b9['commandName']&&'outdentBlock'!=_0x4c24b9['commandName'])return;const _0x18e22e=_0x236686['getItems']()[0x0],_0x3bd316=_0x2817d7['descriptionFactory']['getItemLabel'](_0x18e22e);return'indentBlock'==_0x4c24b9['commandName']?{'type':'format','content':o(_0x1cf777,'*Indent:*\x20%0',_0x3bd316)}:'outdentBlock'==_0x4c24b9['commandName']?{'type':'format','content':o(_0x1cf777,'*Outdent:*\x20%0',_0x3bd316)}:void 0x0;});}}class at extends _0x58f0a6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x58f0a6{['afterInit'](){const _0x1016b0=this['editor'];if(!_0x1016b0['plugins']['has']('LinkEditing'))return;const _0x2ceee2=_0x1016b0['plugins']['get']('TrackChangesEditing'),_0x1f92b5=_0x1016b0['commands']['get']('link');_0x2ceee2['enableDefaultAttributesIntegration']('link'),_0x2ceee2['enableDefaultAttributesIntegration']('unlink'),_0x2ceee2['registerInlineAttribute']('linkHref');for(const _0x4235ba of _0x1f92b5['manualDecorators'])_0x2ceee2['registerInlineAttribute'](_0x4235ba['id']),_0x2ceee2['descriptionFactory']['registerAttributeLabel'](_0x4235ba['id'],'link\x20('+_0x4235ba['label']['toLowerCase']()+')');_0x2ceee2['descriptionFactory']['registerDescriptionCallback'](_0x25ecea=>{if('attribute'!=_0x25ecea['type'])return;const {data:_0x47f642}=_0x25ecea;if(!_0x47f642||'linkHref'!=_0x47f642['key'])return;const _0x31559a=_0x47f642['newValue'],_0x11b11c=_0x1016b0['locale'];return{'type':'format','content':null==_0x31559a?o(_0x11b11c,'*Remove\x20link*'):o(_0x11b11c,'*Set\x20link:*\x20%0','\x22'+_0x31559a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x385e28=this['editor'],_0x2c3f05=_0x385e28['locale'];_0x385e28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x297549=>{if('formatInline'!=_0x297549['type'])return;const {data:_0x5af85c}=_0x297549;if(_0x5af85c){if('link'==_0x5af85c['commandName']){const _0x23a003=_0x5af85c['commandParams'][0x0];return{'type':'format','content':o(_0x2c3f05,'*Set\x20link:*\x20%0','\x22'+_0x23a003+'\x22')};}return'unlink'==_0x5af85c['commandName']?{'type':'format','content':o(_0x2c3f05,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x58f0a6{['afterInit'](){const _0x670911=this['editor'],_0xc15009=_0x670911['locale'];if(!_0x670911['plugins']['has']('LegacyListEditing'))return;const _0x18e9f4=_0x670911['plugins']['get']('TrackChangesEditing'),_0x325280=_0x670911['plugins']['has']('LegacyTodoListEditing');function _0x6d1577(_0x5117ca){return()=>{const _0x5373fe=_0x670911['model']['document']['selection'],_0x129069=_0x670911['commands']['get'](_0x5117ca);if(_0x129069['value'])return void _0x670911['execute']('paragraph',{});const _0x36accc=_0x5117ca['slice'](0x0,-0x4),_0x4030c0=function(_0x207f6d,_0xde8349,_0x430cfd){let _0x2cc1b3=Array['from'](_0x207f6d)['filter'](_0x464a23=>function(_0x102858,_0x6380e3){return _0x6380e3['checkChild'](_0x102858['parent'],'listItem')&&!_0x6380e3['isObject'](_0x102858);}(_0x464a23,_0x430cfd));_0x2cc1b3=_0x2cc1b3['filter'](_0x494923=>!_0x494923['is']('element','listItem')||_0x494923['getAttribute']('listType')!=_0xde8349);const _0x511102=new Set();for(const _0x147ec5 of _0x2cc1b3)_0x147ec5['is']('element','listItem')?_0x511102['add'](me(_0x147ec5)):_0x511102['add'](_0x147ec5);return Array['from'](_0x511102);}(_0x5373fe['getSelectedBlocks'](),_0x36accc,_0x670911['model']['schema']);_0x670911['model']['change'](()=>{for(const _0x4debd8 of _0x4030c0)_0x18e9f4['markBlockFormat'](_0x4debd8,{'commandName':_0x5117ca,'commandParams':[{'forceValue':!_0x129069['value']}],'formatGroupId':'blockName'},fe(_0x4debd8));});};}function _0x43caee(_0x551168){return()=>{const _0x2110ff=function(_0x226077){let _0xe5bd7f=Array['from'](_0x226077);const _0x598806=_0xe5bd7f['findIndex'](_0x1f0141=>'listItem'!=_0x1f0141['name']);return _0x598806>-0x1&&(_0xe5bd7f=_0xe5bd7f['slice'](0x0,_0x598806)),_0xe5bd7f;}(_0x670911['model']['document']['selection']['getSelectedBlocks']()),_0x240af2=_0x670911['model']['createRange'](_0x670911['model']['createPositionAt'](_0x2110ff[0x0],'before'),_0x670911['model']['createPositionAt'](_0x2110ff[_0x2110ff['length']-0x1],'end'));_0x670911['model']['change'](()=>{_0x18e9f4['markBlockFormat'](_0x240af2,{'commandName':_0x551168,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5660ec){const _0x336f89=new Set();for(const _0x30ffc6 of _0x5660ec){let _0x19583c=_0x30ffc6['nextSibling'];for(;_0x19583c&&_0x19583c['getAttribute']('listIndent')>_0x30ffc6['getAttribute']('listIndent');)_0x336f89['add'](_0x19583c),_0x19583c=_0x19583c['nextSibling'];}return Array['from'](_0x336f89);}(_0x2110ff));});};}_0x18e9f4['enableCommand']('numberedList',_0x6d1577('numberedList')),_0x18e9f4['enableCommand']('bulletedList',_0x6d1577('bulletedList')),_0x325280&&_0x18e9f4['enableCommand']('todoList',_0x6d1577('todoList')),_0x18e9f4['enableCommand']('indentList',_0x43caee('indentList')),_0x18e9f4['enableCommand']('outdentList',_0x43caee('outdentList')),_0x325280&&_0x18e9f4['enableCommand']('checkTodoList',()=>{const _0x3838b9=_0x670911['commands']['get']('checkTodoList'),_0x15c017=Array['from'](_0x3838b9['_selectedElements']);_0x15c017['filter'](_0x4e5fcd=>_0x4e5fcd['getAttribute']('todoListChecked')!=_0x3838b9['value']),_0x670911['model']['change'](()=>{for(const _0x4c64de of _0x15c017)_0x18e9f4['markBlockFormat'](_0x4c64de,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3838b9['value']}]});});}),_0x18e9f4['descriptionFactory']['registerElementLabel']('listItem',_0x10f5ec=>o(_0xc15009,'ELEMENT_LIST_ITEM',_0x10f5ec)),_0x18e9f4['descriptionFactory']['registerDescriptionCallback'](_0x187cae=>{if('formatBlock'!=_0x187cae['type']&&'formatInline'!=_0x187cae['type'])return;const {data:_0x4d9d5a}=_0x187cae;if(_0x4d9d5a){if('numberedList'==_0x4d9d5a['commandName']||'bulletedList'==_0x4d9d5a['commandName']||'todoList'==_0x4d9d5a['commandName'])switch(_0x4d9d5a['commandName']['replace']('List','')){case'bulleted':return _0xf4535d(o(_0xc15009,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf4535d(o(_0xc15009,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf4535d(o(_0xc15009,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4d9d5a['commandName'])return{'type':'format','content':o(_0xc15009,'*Indent:*\x20%0',o(_0xc15009,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4d9d5a['commandName'])return{'type':'format','content':o(_0xc15009,'*Outdent:*\x20%0',o(_0xc15009,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4d9d5a['commandName'])return _0x4d9d5a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc15009,'*Check\x20item*')}:{'type':'format','content':o(_0xc15009,'*Uncheck\x20item*')};}function _0xf4535d(_0x5a0d90){return{'type':'format','content':o(_0xc15009,'*Change\x20to:*\x20%0',_0x5a0d90)};}});}}function me(_0x24b101){const _0x397ea4=_0x24b101['getAttribute']('listIndent');if(0x0==_0x397ea4)return _0x24b101;let _0x14c6f6=_0x24b101;for(;_0x24b101['previousSibling']&&_0x24b101['previousSibling']['is']('element','listItem');){const _0x1255e8=_0x24b101['previousSibling']['getAttribute']('listIndent');if(_0x1255e8==_0x397ea4)_0x14c6f6=_0x24b101['previousSibling'];else{if(_0x1255e8<_0x397ea4)break;}_0x24b101=_0x24b101['previousSibling'];}return _0x14c6f6;}function fe(_0x19da7){const _0x5f44cb=[];if(_0x19da7['is']('element','listItem')&&_0x19da7['getAttribute']('listIndent')>0x0){let _0x4cdb3f=_0x19da7['nextSibling'];for(;_0x4cdb3f&&'listItem'==_0x4cdb3f['name']&&_0x4cdb3f['getAttribute']('listIndent')==_0x19da7['getAttribute']('listIndent');)_0x5f44cb['push'](_0x4cdb3f),_0x4cdb3f=_0x4cdb3f['nextSibling'];}return _0x5f44cb;}class K extends _0x58f0a6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x258509=this['editor']['config']['get']('list.properties'),_0x1bfa82=this['editor']['plugins']['get']('TrackChangesEditing');_0x258509['styles']&&_0x1bfa82['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x258509['reversed']&&_0x1bfa82['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x258509['startIndex']&&_0x1bfa82['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1bfa82['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x54bc30,_0x512b7c={}){const _0x26ae33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c5350=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x26ae33['markMultiRangeBlockFormat'](_0x2c5350,{'commandName':'listStyle','commandParams':[{'type':_0x512b7c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1d7502,_0x52e01f={}){const _0x520c78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9b3e67=this['_getSuggestionBlocks'](_0x39c753=>_0x39c753['is']('element','listItem')&&'numbered'===_0x39c753['getAttribute']('listType'));if(_0x9b3e67['length']<0x1)return;const _0x2a1533=_0x9b3e67['map'](_0x158240=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x158240,'before'),this['editor']['model']['createPositionAt'](_0x158240,0x0)));this['editor']['model']['change'](()=>{_0x520c78['markMultiRangeBlockFormat'](_0x2a1533,{'commandName':'listReversed','commandParams':[{'reversed':_0x52e01f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x16fdd8,_0x2dc82b={}){const _0x422463=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5121b0=this['_getSuggestionBlocks'](_0x1c674e=>_0x1c674e['is']('element','listItem')&&'numbered'===_0x1c674e['getAttribute']('listType'));if(_0x5121b0['length']<0x1)return;const _0x355e2c=_0x5121b0['map'](_0x49b175=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49b175,'before'),this['editor']['model']['createPositionAt'](_0x49b175,0x0)));this['editor']['model']['change'](()=>{_0x422463['markMultiRangeBlockFormat'](_0x355e2c,{'commandName':'listStart','commandParams':[{'startIndex':_0x2dc82b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x238e33){if('formatBlock'!=_0x238e33['type']&&'formatInline'!=_0x238e33['type'])return;const _0x379132=this['editor']['locale'],{data:_0x53ea8c}=_0x238e33;if(!_0x53ea8c)return;let _0x1f12c3,_0xd7b6c7;switch(_0x53ea8c['commandName']){case'listStyle':_0x1f12c3='*Change\x20to:*\x20%0',_0xd7b6c7={'type':'format','content':o(_0x379132,_0x1f12c3,o(_0x379132,this['_getTranslationKeyForListStyle'](_0x53ea8c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1f12c3=_0x53ea8c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd7b6c7={'type':'format','content':o(_0x379132,_0x1f12c3)};break;case'listStart':_0x1f12c3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd7b6c7={'type':'format','content':o(_0x379132,_0x1f12c3,_0x53ea8c['commandParams'][0x0]['startIndex'])};}return _0xd7b6c7;}['_getSuggestionBlocksForListStyle'](){const _0x2e9754=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b8439=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4b8439[0x0]?.['is']('element','listItem')&&_0x4b8439['unshift'](..._0x2e9754['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4b8439[_0x4b8439['length']-0x1]?.['is']('element','listItem')&&_0x4b8439['push'](..._0x2e9754['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4b8439=[...new Set(_0x4b8439)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4b8439=_0x4b8439['filter'](_0xa6d70b=>_0xa6d70b['is']('element','listItem'))),_0x4b8439;}['_getSuggestionBlocks'](_0x48d2df){const _0x5522c0=this['editor']['plugins']['get']('LegacyListUtils');let _0x3cc6b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x48d2df)['map'](_0x56d052=>{const _0x19f8d7=this['editor']['model']['createPositionAt'](_0x56d052,0x0);return[..._0x5522c0['getSiblingNodes'](_0x19f8d7,'backward'),..._0x5522c0['getSiblingNodes'](_0x19f8d7,'forward')];})['flat']();return _0x3cc6b9=[...new Set(_0x3cc6b9)],_0x3cc6b9;}['_getTranslationKeyForListStyle'](_0x5ae305){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5ae305)||'default')['toUpperCase']()+'_LIST_'+_0x5ae305['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x58f0a6{['afterInit'](){const _0x334a2c=this['editor'];if(!_0x334a2c['plugins']['has']('MediaEmbedEditing'))return;const _0x587fd4=_0x334a2c['plugins']['get']('TrackChangesEditing'),_0x4a0f9e=_0x334a2c['locale'];_0x587fd4['enableCommand']('mediaEmbed'),_0x587fd4['descriptionFactory']['registerElementLabel']('media',_0x5e68b2=>o(_0x4a0f9e,'ELEMENT_MEDIA',_0x5e68b2)),_0x334a2c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1bed4e,{writer:_0x583ca9,options:_0xe3020b})=>{if(_0xe3020b['showSuggestionHighlights'])return _0x583ca9['createEmptyElement']('div');},'converterPriority':'high'}),_0x334a2c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x409a37,_0x4c9f8e,_0x1f4046)=>{_0x1f4046['options']['showSuggestionHighlights']&&_0x409a37['stop']();},{'priority':'high'});}}class gt extends _0x58f0a6{['afterInit'](){const _0x3e076c=this['editor'];_0x3e076c['plugins']['has']('MentionEditing')&&_0x3e076c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x58f0a6{['afterInit'](){const _0x279dc9=this['editor'],_0x251548=_0x279dc9['plugins']['get']('TrackChangesEditing');_0x279dc9['plugins']['has']('MultiLevelList')&&(_0x251548['enableDefaultAttributesIntegration']('multiLevelList'),_0x251548['registerBlockAttribute']('listMarkerStyle'),_0x251548['descriptionFactory']['registerDescriptionCallback'](_0x5aab61=>this['handleDescriptions'](_0x5aab61)));}['handleDescriptions'](_0x713f60){const _0x7dc961=this['editor']['locale'],{data:_0x45e273}=_0x713f60,_0x56792d={'type':'format','content':''};if(_0x45e273&&'listMarkerStyle'==_0x45e273['key']){if(!_0x45e273['oldValue'])return{'type':'format','content':o(_0x7dc961,'*Set\x20format:*\x20%0',o(_0x7dc961,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45e273['newValue']+')'};if(!_0x45e273['newValue']){let _0x138fa2=_0x713f60['head'];for(;_0x138fa2;){if(_0x138fa2['data']&&'listType'==_0x138fa2['data']['key']&&_0x138fa2['data']['newValue'])return _0x56792d;_0x138fa2=_0x138fa2['next'];}return{'type':'format','content':o(_0x7dc961,'*Remove\x20format:*\x20%0',o(_0x7dc961,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45e273['oldValue']+')'};}}}}class mt extends _0x58f0a6{['afterInit'](){const _0x2a86f6=this['editor'];if(!_0x2a86f6['plugins']['has']('PageBreakEditing'))return;_0x2a86f6['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x38e524=_0x2a86f6['plugins']['get']('TrackChangesEditing'),_0x443bc5=_0x2a86f6['locale'];_0x38e524['descriptionFactory']['registerElementLabel']('pageBreak',_0x1314f0=>o(_0x443bc5,'ELEMENT_PAGE_BREAK',_0x1314f0));}}class dt extends _0x58f0a6{['afterInit'](){const _0x445caa=this['editor'];if(!_0x445caa['plugins']['has']('Paragraph'))return;const _0x16735c=_0x445caa['locale'],_0x4903c4=_0x445caa['plugins']['get']('TrackChangesEditing');_0x4903c4['descriptionFactory']['registerElementLabel']('paragraph',_0xe4bcaa=>o(_0x16735c,'ELEMENT_PARAGRAPH',_0xe4bcaa)),_0x4903c4['enableDefaultAttributesIntegration']('paragraph'),_0x4903c4['enableCommand']('insertParagraph'),_0x445caa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x445caa),{'priority':'highest'}),_0x445caa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22a056,_0x797145,_0xf293c)=>{_0xf293c['options']['showSuggestionHighlights']&&nr(_0x445caa,{'showActiveMarker':!0x1})(_0x22a056,_0x797145,_0xf293c);},{'priority':'highest'});const _0x26e7f9=_0x4903c4['descriptionFactory'];_0x26e7f9['registerDescriptionCallback'](_0x1b5e8c=>{if('insertion'!==_0x1b5e8c['type'])return;const {start:_0x156f5d,end:_0x28e7ad}=_0x1b5e8c['getFirstRange']();if(!_0x156f5d['isTouching'](_0x28e7ad)||!_0x156f5d['nodeAfter'])return;const _0x2ceee8=_0x445caa['model']['schema'],_0x57c8b3=_0x156f5d['nodeAfter'];return _0x2ceee8['isBlock'](_0x57c8b3)&&!_0x2ceee8['isLimit'](_0x57c8b3)&&_0x2ceee8['checkChild'](_0x57c8b3,'$text')?{'type':'insertion','content':o(_0x16735c,'*Insert:*\x20%0',_0x26e7f9['getItemLabel'](_0x57c8b3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9334ae=this['editor'],_0x5d92c3=_0x9334ae['locale'];_0x9334ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f296f=>{if('formatBlock'!=_0x2f296f['type'])return;const {data:_0x182983}=_0x2f296f;return _0x182983&&'paragraph'==_0x182983['commandName']?{'type':'format','content':o(_0x5d92c3,'*Change\x20to:*\x20%0',o(_0x5d92c3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2ad440,{showActiveMarker:_0x3513bc=!0x0}={}){return(_0x4645d7,_0x53dcce,_0x1f1833)=>{const _0x438b1e=_0x2ad440['plugins']['get']('TrackChangesEditing'),_0x498cb1=_0x53dcce['markerRange']['start'],_0x4ad16d=_0x53dcce['markerRange']['end'],_0x2d0554=_0x2ad440['model']['schema'];if(!_0x498cb1['isTouching'](_0x4ad16d)||!_0x498cb1['nodeAfter'])return;const _0x3b9913=_0x498cb1['nodeAfter'];if(_0x2d0554['isBlock'](_0x3b9913)&&!_0x2d0554['isLimit'](_0x3b9913)&&_0x2d0554['checkChild'](_0x3b9913,'$text')){if(!_0x1f1833['consumable']['consume'](_0x53dcce['markerRange'],_0x4645d7['name']))return;const _0x16723c=_0x1f1833['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x38410a=_0x1f1833['mapper']['toViewPosition'](_0x4ad16d);_0x3513bc&&_0x438b1e['activeMarkers']['includes'](_0x53dcce['markerName'])&&_0x1f1833['writer']['addClass']('ck-suggestion-marker--active',_0x16723c),_0x1f1833['writer']['insert'](_0x38410a,_0x16723c),_0x1f1833['mapper']['bindElementToMarker'](_0x16723c,_0x53dcce['markerName']);}};}class pt extends _0x58f0a6{['afterInit'](){const _0x4c3c09=this['editor'];if(!_0x4c3c09['plugins']['has']('RemoveFormatEditing'))return;_0x4c3c09['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a42be=this['editor'];_0x2a42be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xec475d=>{if('formatBlock'!=_0xec475d['type']&&'formatInline'!=_0xec475d['type'])return;const {data:_0xcbb41e}=_0xec475d;return _0xcbb41e&&'removeFormat'==_0xcbb41e['commandName']?{'type':'format','content':o(_0x2a42be['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x58f0a6{['afterInit'](){const _0x29f77e=this['editor'];if(!_0x29f77e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4609fb=_0x29f77e['plugins']['get']('TrackChangesEditing');_0x4609fb['enableCommand']('goToPreviousRestrictedEditingException'),_0x4609fb['enableCommand']('goToNextRestrictedEditingException');const _0x33e177=_0x29f77e['plugins']['get']('RestrictedEditingModeEditing');_0x33e177['enableCommand']('trackChanges'),_0x33e177['enableCommand']('acceptSuggestion'),_0x33e177['enableCommand']('discardSuggestion'),_0x33e177['enableCommand']('acceptAllSuggestions'),_0x33e177['enableCommand']('discardAllSuggestions'),_0x33e177['enableCommand']('acceptSelectedSuggestions'),_0x33e177['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x58f0a6{static get['requires'](){return[_0x2dcf41];}['init'](){const _0x15de39=this['editor'],_0x45a5e8=_0x15de39['plugins']['get']('TrackChangesEditing');_0x45a5e8['enableCommand']('shiftEnter'),_0x15de39['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x15de39),{'priority':'high'}),_0x15de39['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x15de39),{'priority':'high'}),_0x15de39['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18bb9d,_0x128247,_0x1cc160)=>{_0x1cc160['options']['showSuggestionHighlights']&&de(_0x15de39,{'showActiveMarker':!0x1})(_0x18bb9d,_0x128247,_0x1cc160);}),_0x45a5e8['descriptionFactory']['registerElementLabel']('softBreak',_0x1756ca=>o(_0x15de39['locale'],'ELEMENT_LINE_BREAK',_0x1756ca));}}function de(_0x139737,{showActiveMarker:_0x572c32=!0x0}={}){return(_0x3b1e4f,_0x16996a,_0x49e72a)=>{const _0x4f330c=_0x139737['plugins']['get']('TrackChangesEditing');if(!_0x49e72a['consumable']['test'](_0x16996a['markerRange'],_0x3b1e4f['name']))return;const _0x517431=_0x139737['model'];for(const _0x77b906 of _0x16996a['markerRange']['getItems']()){if(!_0x77b906['is']('element','softBreak'))continue;const _0x423560='deletion'==_0x16996a['markerName']['split'](':')[0x1]?'merge':'split',_0x46b32f=_0x49e72a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x423560}),_0x461b9d=_0x49e72a['mapper']['toViewPosition'](_0x517431['createPositionBefore'](_0x77b906));_0x572c32&&_0x4f330c['activeMarkers']['includes'](_0x16996a['markerName'])&&_0x49e72a['writer']['addClass']('ck-suggestion-marker--active',_0x46b32f),_0x49e72a['writer']['insert'](_0x461b9d,_0x46b32f),_0x49e72a['mapper']['bindElementToMarker'](_0x46b32f,_0x16996a['markerName']);}};}class wt extends _0x58f0a6{['afterInit'](){const _0xb00969=this['editor'],_0x1698d8=_0xb00969['model'],_0x13a609=_0xb00969['locale'];if(!_0xb00969['plugins']['has']('StandardEditingModeEditing'))return;const _0x1ef085=_0xb00969['plugins']['get']('TrackChangesEditing'),_0x33cb89='restrictedEditingException',_0x466554=_0xb00969['commands']['get'](_0x33cb89);_0x1ef085['enableCommand'](_0x33cb89,(_0x13db76,_0x30b477={})=>{const _0x218a0d=_0x1698d8['document']['selection'];if(_0x218a0d['isCollapsed'])return void _0x13db76(_0x30b477);const _0x36f793=void 0x0!==_0x30b477['forceValue']?_0x30b477['forceValue']:!_0x466554['value'];_0x1698d8['change'](()=>{const _0xdd2ddd=Array['from'](_0x218a0d['getRanges']());for(const _0xcce8d7 of _0xdd2ddd){const _0x29f61c=_0x36f793?[_0xcce8d7]:io(_0x33cb89,_0xcce8d7,_0x1698d8);for(const _0x5895fb of _0x29f61c)_0x1ef085['markInlineFormat'](_0x5895fb,{'commandName':_0x33cb89,'commandParams':[{'forceValue':_0x36f793}]});}});}),_0x1ef085['descriptionFactory']['registerDescriptionCallback'](_0x2790d1=>{if('formatBlock'!=_0x2790d1['type']&&'formatInline'!=_0x2790d1['type'])return;const {data:_0x5ee84e}=_0x2790d1;return _0x5ee84e&&_0x5ee84e['commandName']==_0x33cb89?_0x5ee84e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13a609,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x13a609,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x58f0a6{['afterInit'](){const _0x1b6866=this['editor'];if(!_0x1b6866['plugins']['has']('Style')||!_0x1b6866['plugins']['has']('DataSchema'))return;const _0x230752=_0x1b6866['plugins']['get']('TrackChangesEditing'),_0xe1fd44=_0x1b6866['locale'],_0xe2e735=_0x1b6866['config']['get']('style')||{},_0x6bbfd5=_0x1b6866['plugins']['get']('GeneralHtmlSupport'),_0x24b8d9=_0x1b6866['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1b6866['plugins']['get']('DataSchema'),_0xe2e735['definitions']);_0x230752['enableDefaultAttributesIntegration']('style');const _0x233b5e=new Set();for(const _0x4c4452 of _0x24b8d9['block']){const _0x1dfeb7=_0x6bbfd5['getGhsAttributeNameForElement'](_0x4c4452['element']);_0x233b5e['add'](_0x1dfeb7);}const _0x1345d3=new Set();for(const _0xfa7906 of _0x24b8d9['inline']){const _0x403eeb=_0x6bbfd5['getGhsAttributeNameForElement'](_0xfa7906['element']);_0x1345d3['add'](_0x403eeb);for(const _0x1352ca of _0xfa7906['ghsAttributes'])_0x1345d3['add'](_0x1352ca);}for(const _0x151335 of _0x233b5e)_0x230752['registerBlockAttribute'](_0x151335),_0x230752['descriptionFactory']['registerAttributeLabel'](_0x151335,o(_0xe1fd44,'FORMAT_STYLE'));for(const _0x21137c of _0x1345d3)_0x230752['registerInlineAttribute'](_0x21137c),_0x230752['descriptionFactory']['registerAttributeLabel'](_0x21137c,o(_0xe1fd44,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x580247=this['editor'],_0x243235=_0x580247['locale'];_0x580247['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57c9d3=>{if('formatBlock'!=_0x57c9d3['type']&&'formatInline'!=_0x57c9d3['type'])return;const {data:_0x48877a}=_0x57c9d3;return _0x48877a&&'style'===_0x48877a['commandName']?_0x48877a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x243235,'*Set\x20format:*\x20%0',_0x48877a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x243235,'*Remove\x20format:*\x20%0',_0x48877a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x58f0a6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9a6e13){super(_0x9a6e13),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x7e641e=this['editor'],_0x10e496=_0x7e641e['model']['document']['selection'];if(!_0x7e641e['plugins']['has']('TableEditing'))return;const _0x51e145=_0x7e641e['locale'],_0x47a3cb=_0x7e641e['plugins']['get']('TrackChangesEditing'),_0x3ee84d=_0x7e641e['plugins']['get']('TableUtils');_0x47a3cb['descriptionFactory']['registerElementLabel']('table',_0x543121=>o(_0x51e145,'ELEMENT_TABLE',_0x543121)),this['_setupColumnsRowsFixing'](),_0x47a3cb['enableCommand']('insertTable'),_0x47a3cb['enableCommand']('selectTableRow'),_0x47a3cb['enableCommand']('selectTableColumn');for(const _0x336c66 of['insertTableRowAbove','insertTableRowBelow']){const _0x1cd1b5=_0x7e641e['commands']['get'](_0x336c66);_0x47a3cb['enableCommand'](_0x336c66,_0x5121ca=>{_0x7e641e['model']['change'](_0x2f0e68=>{_0x5121ca();const _0x397b2b='above'===_0x1cd1b5['order'],_0x3750f9=_0x3ee84d['getSelectionAffectedTableCells'](_0x10e496),_0x25f400=_0x3ee84d['getRowIndexes'](_0x3750f9),_0x354d2b=_0x397b2b?_0x25f400['first']-0x1:_0x25f400['last']+0x1,_0x3334f7=_0x3750f9[0x0]['findAncestor']('table'),_0x1e9562=_0x3ee84d['createTableWalker'](_0x3334f7,{'startRow':_0x354d2b,'endRow':_0x354d2b}),_0x1866a6=Array['from'](_0x1e9562)['map'](_0x43b78d=>_0x2f0e68['createRangeOn'](_0x43b78d['cell']));_0x47a3cb['markMultiRangeInsertion'](_0x1866a6,'tableRow');});});}for(const _0x50244d of['insertTableColumnLeft','insertTableColumnRight']){const _0x413e23=_0x7e641e['commands']['get'](_0x50244d);_0x47a3cb['enableCommand'](_0x50244d,_0x5f8c86=>{_0x7e641e['model']['change'](_0x369a91=>{_0x5f8c86();const _0x334deb='left'===_0x413e23['order'],_0x566f63=_0x3ee84d['getSelectionAffectedTableCells'](_0x10e496),_0x52c1a1=_0x3ee84d['getColumnIndexes'](_0x566f63),_0x490c23=_0x334deb?_0x52c1a1['first']-0x1:_0x52c1a1['last']+0x1,_0x17ff1=_0x566f63[0x0]['findAncestor']('table'),_0x2d819a=_0x3ee84d['createTableWalker'](_0x17ff1,{'startRow':0x0,'column':_0x490c23,'includeAllSlots':!0x1}),_0x29ce51=Array['from'](_0x2d819a)['map'](_0x2c52c7=>_0x369a91['createRangeOn'](_0x2c52c7['cell']));_0x47a3cb['markMultiRangeInsertion'](_0x29ce51,'tableColumn');});});}for(const _0x4f1974 of['removeTableRow','removeTableColumn']){const _0x363fa7=_0x4f1974['substr'](0xb),_0x202ff0=_0x363fa7['toLowerCase'](),_0x1282e0=_0x202ff0['substr'](0x0,0x3)+'span',_0x248fc5='table'+_0x363fa7,_0x2d9d48='min'+_0x363fa7,_0x1d4bd7='max'+_0x363fa7;_0x47a3cb['enableCommand'](_0x4f1974,()=>{_0x7e641e['model']['change'](_0x218911=>{const _0x25464b=_0x3ee84d['getSelectionAffectedTableCells'](_0x10e496),_0x19366e=_0x25464b[0x0]['findAncestor']('table');let _0x1d7aca;if('removeTableRow'==_0x4f1974){const _0x36e1b5=_0x3ee84d['getRowIndexes'](_0x25464b);_0x1d7aca={'startRow':_0x36e1b5['first'],'endRow':_0x36e1b5['last'],'includeAllSlots':!0x0};}else{const _0x1f28ea=_0x3ee84d['getColumnIndexes'](_0x25464b);_0x1d7aca={'startColumn':_0x1f28ea['first'],'endColumn':_0x1f28ea['last'],'includeAllSlots':!0x0};}const _0x5ab8c0=_0x3ee84d['createTableWalker'](_0x19366e,_0x1d7aca),_0x32568e=Array['from'](_0x5ab8c0)['map'](({cell:_0x18b0a0})=>_0x18b0a0),_0x1e3d31=Ee(_0x32568e['filter'](_0x2236c0=>_0x2236c0['hasAttribute'](_0x1282e0))),_0x2fa0e8=Ee(_0x32568e['filter'](_0x581a6f=>!_0x581a6f['hasAttribute'](_0x1282e0)))['map'](_0x3eed22=>_0x218911['createRangeOn'](_0x3eed22)),_0x2e1aed=_0x47a3cb['markMultiRangeDeletion'](_0x2fa0e8,_0x248fc5);if(_0x2e1aed&&('tableRow'==_0x2e1aed['subType']||'tableColumn'==_0x2e1aed['subType'])){const _0xa96283=this['_getSuggestionCoords'](_0x2e1aed);for(const _0x7c3915 of _0x1e3d31){const _0x1254f5=_0x218911['createRangeOn'](_0x7c3915),_0x5d7d39=_0x3ee84d['getCellLocation'](_0x7c3915),_0x3efe3e=_0x7c3915['getAttribute'](_0x1282e0)-0x1,_0x375826=_0xa96283[_0x2d9d48],_0xc2ce32=_0xa96283[_0x1d4bd7];_0x375826<=_0x5d7d39[_0x202ff0]&&_0x5d7d39[_0x202ff0]+_0x3efe3e<=_0xc2ce32&&_0x2e1aed['addRange'](_0x1254f5);}}});});}function _0x3e5ba3(_0x25bced){const _0x48639b=Array['from'](_0x10e496['getRanges']())['map'](_0x4ed540=>_0x5733e9['fromRange'](_0x4ed540));_0x7e641e['model']['change'](_0x170276=>{const _0x37ac2d=_0x170276['batch'];_0x25bced=_0x25bced['filter'](_0x3defb0=>'$graveyard'!=_0x3defb0['root']['rootName']),_0x170276['setSelection'](_0x25bced),_0x7e641e['commands']['get']('removeTableRow')['refresh'](),_0x7e641e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x7e641e['model']['enqueueChange'](()=>{_0x7e641e['model']['enqueueChange'](_0x37ac2d,_0x3aa623=>{const _0x3f8cd7=_0x48639b['filter'](_0x42c757=>'$graveyard'!=_0x42c757['root']['rootName']);_0x3f8cd7['length']>0x0&&_0x3aa623['setSelection'](_0x3f8cd7);for(const _0x36a085 of _0x48639b)_0x36a085['detach']();});});});}function _0x1439a3(_0xc44e6c){_0x7e641e['model']['change'](_0x542679=>{const _0x385939=Array['from'](_0x10e496['getRanges']())['map'](_0x357672=>_0x5733e9['fromRange'](_0x357672)),_0x5026e4=[];for(const _0x1b5a30 of _0xc44e6c)for(const _0x84372f of _0x1b5a30['getItems']({'shallow':!0x0}))_0x5026e4['push'](_0x84372f);for(const _0x13b02f of _0x5026e4)'$graveyard'!=_0x13b02f['root']['rootName']&&(_0x542679['setSelection'](_0x542679['createPositionAt'](_0x13b02f,0x0)),_0x7e641e['commands']['get']('removeTableColumn')['refresh'](),_0x7e641e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3daf3f=_0x385939['filter'](_0x10e704=>'$graveyard'!=_0x10e704['root']['rootName']);_0x3daf3f['length']>0x0&&_0x542679['setSelection'](_0x3daf3f);for(const _0x276da5 of _0x385939)_0x276da5['detach']();});}function _0xeed839(_0x3003c7,_0x3f11db){return _0x3f11db['every'](_0x5f23b7=>_0x3003c7['some'](_0x467527=>_0x467527['end']['isEqual'](_0x5f23b7['start'])||_0x5f23b7['end']['isEqual'](_0x467527['start'])));}function _0x3b1b9e(_0x3fe1a9,_0x417ec4){return!_0x3fe1a9['some'](_0x335f88=>_0x417ec4['some'](_0x2746cb=>_0x335f88['isIntersecting'](_0x2746cb)))&&_0x3fe1a9['some'](_0x272767=>_0x417ec4['some'](_0x575c78=>_0x272767['end']['isTouching'](_0x575c78['start'])));}_0x7e641e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ba89e,_0x118a78,_0x54809d)=>{if(!_0x54809d['options']['showSuggestionHighlights'])return;const _0x3b27ac=_0x118a78['item'];if(!_0x3b27ac)return;const _0x2d6e37=_0x54809d['mapper']['toViewElement'](_0x3b27ac);function _0x3234f9(_0x28ac87){return Array['isArray'](_0x28ac87)?_0x28ac87:[_0x28ac87];}_0x2d6e37&&'tableCell'===_0x3b27ac['name']&&_0x141aef(_0x2d6e37,_0x54809d['writer'],(_0x5ff53d,_0x5ef774,_0x8b71e3)=>_0x8b71e3['addClass'](_0x3234f9(_0x5ef774['classes']),_0x5ff53d),(_0x579d8a,_0x3eca13,_0xea0de2)=>_0xea0de2['removeClass'](_0x3234f9(_0x3eca13['classes']),_0x579d8a));},{'priority':'highest'}),_0x47a3cb['descriptionFactory']['registerDescriptionCallback'](_0x491f91=>{if('insertion'!=_0x491f91['type']&&'deletion'!=_0x491f91['type'])return;const _0x2613b0=_0x491f91['getContainedElement']();if(null!=_0x2613b0&&_0x2613b0['is']('element','table')){if('insertion'==_0x491f91['type']){const _0x5d39ff=_0x491f91['getItems']()['filter'](_0x2a6eeb=>_0x2a6eeb['is']('$textProxy'))['map'](_0x562c0c=>_0x562c0c['data']);if(_0x5d39ff['length'])return{'type':'insertion','content':o(_0x51e145,'*Insert:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d39ff['join']('\x20')+'\x22'))};}if('deletion'==_0x491f91['type']){const _0x415ed5=_0x491f91['getItems']()['filter'](_0x104479=>_0x104479['is']('$textProxy'))['map'](_0x294b3a=>_0x294b3a['data']);if(_0x415ed5['length'])return{'type':'deletion','content':o(_0x51e145,'*Remove:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x415ed5['join']('\x20')+'\x22'))};}}}),_0x47a3cb['descriptionFactory']['registerDescriptionCallback'](_0x1a40c5=>{if('tableRow'==_0x1a40c5['subType']){const _0x3578dc=_0x1a40c5['getItems']()['filter'](_0xc90cbe=>_0xc90cbe['is']('$textProxy'))['map'](_0x45b82c=>_0x45b82c['data']),_0x2ab8a9=this['_getSuggestionCoords'](_0x1a40c5),_0x2f486f=_0x2ab8a9['maxRow']-_0x2ab8a9['minRow']+0x1;if('insertion'==_0x1a40c5['type'])return _0x3578dc['length']?{'type':'insertion','content':o(_0x51e145,'*Insert:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f486f,'\x22'+_0x3578dc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x51e145,'*Insert:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_ROW',_0x2f486f))};if('deletion'==_0x1a40c5['type'])return _0x3578dc['length']?{'type':'deletion','content':o(_0x51e145,'*Remove:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f486f,'\x22'+_0x3578dc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x51e145,'*Remove:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_ROW',_0x2f486f))};}if('tableColumn'==_0x1a40c5['subType']){const _0x4ddd3d=_0x1a40c5['getItems']()['filter'](_0x5b9c11=>_0x5b9c11['is']('$textProxy'))['map'](_0x1513dc=>_0x1513dc['data']),_0xc44296=this['_getSuggestionCoords'](_0x1a40c5),_0x59e192=_0xc44296['maxColumn']-_0xc44296['minColumn']+0x1;if('insertion'==_0x1a40c5['type'])return _0x4ddd3d['length']?{'type':'insertion','content':o(_0x51e145,'*Insert:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59e192,'\x22'+_0x4ddd3d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x51e145,'*Insert:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_COLUMN',_0x59e192))};if('deletion'==_0x1a40c5['type'])return _0x4ddd3d['length']?{'type':'deletion','content':o(_0x51e145,'*Remove:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59e192,'\x22'+_0x4ddd3d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x51e145,'*Remove:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_COLUMN',_0x59e192))};}}),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3e5ba3),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3e5ba3),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1439a3),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1439a3),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xeed839),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xeed839),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3b1b9e),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3b1b9e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x428383=this['editor'],_0x54b8ae=_0x428383['model']['document']['selection'];return(_0x566be4,_0x475dc8)=>{_0x428383['model']['change'](_0x391470=>{const {commandName:_0x3e706c,commandParams:_0xa48890}=_0x475dc8;let _0x1204d1=_0x566be4[0x0]['end']['nodeBefore'];_0xa48890&&_0xa48890[0x0]&&!0x1===_0xa48890[0x0]['forceValue']&&(_0x1204d1=_0x566be4[0x0]['start']['nodeAfter']);const _0x1d072e=_0x391470['createRangeIn'](_0x1204d1);if('$graveyard'==_0x1d072e['root']['rootName'])return;const _0x1ebf3f=Array['from'](_0x54b8ae['getRanges']())['map'](_0xcfae4c=>_0x5733e9['fromRange'](_0xcfae4c));_0x391470['setSelection'](_0x1d072e),_0x428383['commands']['get'](_0x3e706c)['refresh'](),_0xa48890['push']({'forceDefaultExecution':!0x0}),_0x428383['execute'](_0x3e706c,..._0xa48890);const _0x4361a0=_0x1ebf3f['filter'](_0x33d590=>'$graveyard'!=_0x33d590['root']['rootName']);_0x4361a0['length']>0x0&&_0x391470['setSelection'](_0x4361a0);for(const _0x5ec49a of _0x1ebf3f)_0x5ec49a['detach']();});};}['_getCoordsForCells'](_0x4aa918){const _0x42c847=this['editor']['plugins']['get']('TableUtils');let _0x1b3fe2=Number['MAX_SAFE_INTEGER'],_0x5a74ba=Number['MIN_SAFE_INTEGER'],_0x1bd8de=Number['MAX_SAFE_INTEGER'],_0x1924fa=Number['MIN_SAFE_INTEGER'];for(const _0x30bed8 of _0x4aa918){if('$graveyard'==_0x30bed8['root']['rootName'])continue;const {row:_0x1f23bb,column:_0x3d4444}=_0x42c847['getCellLocation'](_0x30bed8),_0x26ddf2=_0x30bed8['hasAttribute']('rowspan')?_0x30bed8['getAttribute']('rowspan')-0x1:0x0,_0xb55e86=_0x30bed8['hasAttribute']('colspan')?_0x30bed8['getAttribute']('colspan')-0x1:0x0;_0x1b3fe2=_0x1f23bb<_0x1b3fe2?_0x1f23bb:_0x1b3fe2,_0x5a74ba=_0x1f23bb+_0x26ddf2>_0x5a74ba?_0x1f23bb+_0x26ddf2:_0x5a74ba,_0x1bd8de=_0x3d4444<_0x1bd8de?_0x3d4444:_0x1bd8de,_0x1924fa=_0x3d4444+_0xb55e86>_0x1924fa?_0x3d4444+_0xb55e86:_0x1924fa;}return{'minRow':_0x1b3fe2,'maxRow':_0x5a74ba,'minColumn':_0x1bd8de,'maxColumn':_0x1924fa};}['_setupColumnsRowsFixing'](){const _0xa3bda0=this['editor'],_0x292516=_0xa3bda0['plugins']['get']('TrackChangesEditing'),_0x486fa6=_0xa3bda0['plugins']['get']('TableUtils');_0xa3bda0['model']['document']['on']('change:data',()=>{const _0x34c1d0=Array['from'](_0xa3bda0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ebc4c,data:_0x5cf7c1}of _0x34c1d0){const {group:_0x1a310e,id:_0x10ddd8,subType:_0x2558de}=_0x292516['_splitMarkerName'](_0x3ebc4c);if('suggestion'!=_0x1a310e)continue;if(null!=_0x5cf7c1['oldRange'])continue;const _0x4da423=_0x292516['getSuggestion'](_0x10ddd8);this['_tablePostFixingSubtypes']['includes'](_0x2558de)&&this['_tableSuggestions']['add'](_0x4da423);}},{'priority':'low'});const _0x253428=(_0x1f0595,_0x2888b4)=>{let _0x24420b=!0x1;const _0xded9df=_0x2888b4['createRangeOn'](_0x1f0595),_0x3d20dc=_0x1f0595['findAncestor']('table'),_0x38c128=_0x486fa6['getCellLocation'](_0x1f0595);for(const _0x39cd3f of this['_tableSuggestions']){const _0x5d829c=_0x39cd3f['subType'],_0x332554=_0x5d829c['startsWith']('tablePaste'),_0x319a86=_0x5d829c['substr'](_0x332554?0xa:0x5),_0xf0938d=_0x319a86['toLowerCase'](),_0x3462f9=_0xf0938d['substr'](0x0,0x3)+'span',_0x48b526='min'+_0x319a86,_0x1d4430='max'+_0x319a86;if(!_0x39cd3f['isInContent'])continue;if(_0x3d20dc!=_0x39cd3f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x39cd3f['isIntersectingWithRange'](_0xded9df))continue;const _0x2230bf=_0x1f0595['hasAttribute'](_0x3462f9)?_0x1f0595['getAttribute'](_0x3462f9)-0x1:0x0,_0x1ba685=this['_getSuggestionCoords'](_0x39cd3f),_0x3e0b0f=_0x1ba685[_0x48b526],_0x41a5fc=_0x1ba685[_0x1d4430];_0x3e0b0f<=_0x38c128[_0xf0938d]&&_0x38c128[_0xf0938d]+_0x2230bf<=_0x41a5fc&&(_0x39cd3f['addRange'](_0xded9df),_0x24420b=!0x0);}return _0x24420b;};_0xa3bda0['model']['document']['registerPostFixer'](_0x2a7bbf=>{let _0x444c3c=!0x1;for(const _0x1b1549 of _0xa3bda0['model']['document']['differ']['getChanges']())if('insert'==_0x1b1549['type']){if('tableRow'==_0x1b1549['name']){for(const _0x55845b of _0x1b1549['position']['nodeAfter']['getChildren']())_0x444c3c=_0x444c3c||_0x253428(_0x55845b,_0x2a7bbf);}else'tableCell'==_0x1b1549['name']&&(_0x444c3c=_0x444c3c||_0x253428(_0x1b1549['position']['nodeAfter'],_0x2a7bbf));}return _0x444c3c;});}['_getSuggestionCoords'](_0x93a769){return this['_getCoordsForCells'](_0x93a769['getRanges']()['map'](_0x622e63=>_0x622e63['start']['nodeAfter']));}}function Ee(_0x319a7c){return Array['from'](new Set(_0x319a7c)['values']());}class St extends _0x58f0a6{static get['requires'](){return[jt];}['afterInit'](){const _0x42ad1a=this['editor'],_0x491b60=_0x42ad1a['model']['document']['selection'],_0x5d3278=_0x42ad1a['locale'];if(!_0x42ad1a['plugins']['has']('TableEditing'))return;const _0x4beb9e=_0x42ad1a['plugins']['get']('TrackChangesEditing'),_0x33d357=_0x42ad1a['plugins']['get']('TableUtils'),_0x203800=_0x42ad1a['plugins']['get'](jt);_0x203800['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4beb9e['enableCommand']('mergeTableCells',()=>{const _0x25a92a=_0x33d357['getSelectionAffectedTableCells'](_0x42ad1a['model']['document']['selection']);_0x42ad1a['model']['change'](()=>{_0x4beb9e['markMultiRangeBlockFormat'](_0x25a92a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x42ad1a['commands']['get']('mergeTableCells')['on']('execute',(_0x40de23,_0x452b5b)=>{_0x42ad1a['commands']['get']('trackChanges')['value']&&(_0x452b5b['length']>0x0&&_0x452b5b[_0x452b5b['length']-0x1]&&_0x452b5b[_0x452b5b['length']-0x1]['forceDefaultExecution']||_0x4beb9e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x40de23['stop']());},{'priority':'highest'});for(const _0x3d7335 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1aecd2=_0x42ad1a['commands']['get'](_0x3d7335);_0x4beb9e['enableCommand'](_0x3d7335,()=>{const _0x372aa1=_0x42ad1a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc66032=>_0xc66032['is']('element','tableCell')),_0x4d434f=_0x1aecd2['value'];_0x42ad1a['model']['change'](()=>{_0x4beb9e['markMultiRangeBlockFormat']([_0x372aa1,_0x4d434f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x18ecea of['splitTableCellVertically','splitTableCellHorizontally']){const _0x13a361=_0x42ad1a['commands']['get'](_0x18ecea);_0x4beb9e['enableCommand'](_0x18ecea,()=>{const _0x14ff5b=_0x33d357['getSelectionAffectedTableCells'](_0x42ad1a['model']['document']['selection'])[0x0],_0x420703=_0x14ff5b['findAncestor']('table'),{column:_0xd50fbc,row:_0x4daa84}=_0x33d357['getCellLocation'](_0x14ff5b);let _0x244acf=[];if('horizontally'==_0x13a361['direction']){const _0x2c900f=_0x33d357['createTableWalker'](_0x420703,{'startRow':_0x4daa84,'endRow':_0x4daa84,'includeAllSlots':!0x0});_0x244acf=Array['from'](_0x2c900f)['map'](_0x3772a2=>_0x3772a2['cell']);}else{const _0xa022d8=_0x33d357['createTableWalker'](_0x420703,{'column':_0xd50fbc,'includeAllSlots':!0x0});_0x244acf=Array['from'](_0xa022d8)['map'](_0x1fe7a3=>_0x1fe7a3['cell']);}_0x42ad1a['model']['change'](_0x15d802=>{_0x4beb9e['markBlockFormat'](_0x15d802['createRangeOn'](_0x14ff5b),{'commandName':_0x18ecea,'commandParams':[]},_0x244acf,_0x18ecea);});});}_0x4beb9e['descriptionFactory']['registerDescriptionCallback'](_0x3e9ee0=>{if('formatBlock'!=_0x3e9ee0['type']&&'formatInline'!=_0x3e9ee0['type'])return;const {data:_0x367ec2}=_0x3e9ee0;return _0x367ec2&&'mergeTableCells'==_0x367ec2['commandName']?{'type':'format','content':o(_0x5d3278,'*Merge\x20cells*')}:void 0x0;}),_0x4beb9e['descriptionFactory']['registerDescriptionCallback'](_0x1a8030=>{if('formatBlock'!=_0x1a8030['type']&&'formatInline'!=_0x1a8030['type'])return;const {data:_0x30cf79}=_0x1a8030;return _0x30cf79?'splitTableCellVertically'==_0x30cf79['commandName']?{'type':'format','content':o(_0x5d3278,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x30cf79['commandName']?{'type':'format','content':o(_0x5d3278,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2c5aa7=_0x203800['_acceptFormatSuggestionCallbackFactory']();for(const _0x3a0d09 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4beb9e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a0d09,'accept',_0x2c5aa7);for(const _0x50cb16 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4beb9e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50cb16,'accept',_0x2c5aa7);_0x4beb9e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x43adba=>{_0x42ad1a['model']['change'](_0x5aa84b=>{const _0x22b53b=Array['from'](_0x491b60['getRanges']())['map'](_0x443cb4=>_0x5733e9['fromRange'](_0x443cb4));_0x5aa84b['setSelection'](_0x43adba),_0x42ad1a['commands']['get']('mergeTableCells')['refresh'](),_0x42ad1a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x278112=_0x22b53b['filter'](_0x20c9e0=>'$graveyard'!=_0x20c9e0['root']['rootName']);_0x278112['length']>0x0&&_0x5aa84b['setSelection'](_0x278112);for(const _0x4d1c7b of _0x22b53b)_0x4d1c7b['detach']();});});for(const _0x651d27 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x15c493=_0x42ad1a['commands']['get'](_0x651d27);_0x15c493['on']('set:isEnabled',(_0x578fb8,_0x2c17b1,_0xda6e65)=>{if(_0xda6e65){const _0x3cb43f=_0x42ad1a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x522f6e=>_0x522f6e['is']('element','tableCell'));this['_areMergableCells'](_0x15c493['value'],_0x3cb43f)||(_0x578fb8['return']=!0x1,_0x578fb8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x49f937=this['editor']['commands']['get']('mergeTableCells'),_0x26c181=this['editor']['plugins']['get']('TableUtils');if(!_0x49f937['isEnabled'])return!0x1;const _0x5f1371=_0x26c181['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1fcb44 of _0x5f1371)for(const _0x464d3e of _0x5f1371)if(_0x1fcb44!=_0x464d3e&&!this['_areMergableCells'](_0x1fcb44,_0x464d3e))return!0x1;return!0x0;}['_areMergableCells'](_0x272a04,_0xc4ac5d){const _0x3ae51d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x214af6=this['editor']['model']['createRangeOn'](_0x272a04),_0x3ae0e5=this['editor']['model']['createRangeOn'](_0xc4ac5d),_0x46150f=new Set(),_0x4c0747=new Set();for(const _0x30f759 of _0x3ae51d['getSuggestions']())if(('insertion'==_0x30f759['type']||'deletion'==_0x30f759['type']||'mergeTableCells'==_0x30f759['subType'])&&_0x30f759['isInContent']){for(const _0x48fceb of _0x30f759['getRanges']())_0x48fceb['containsRange'](_0x214af6,!0x0)&&_0x46150f['add'](_0x30f759['type']+':'+_0x30f759['author']['id']),_0x48fceb['containsRange'](_0x3ae0e5,!0x0)&&_0x4c0747['add'](_0x30f759['type']+':'+_0x30f759['author']['id']);}if(_0x46150f['size']!=_0x4c0747['size'])return!0x1;for(const _0x1dfaa9 of _0x46150f)if(!_0x4c0747['has'](_0x1dfaa9))return!0x1;return!0x0;}}class At extends _0x58f0a6{static get['requires'](){return[jt];}['afterInit'](){const _0x5c7105=this['editor'];if(!_0x5c7105['plugins']['has']('TableEditing'))return;const _0x77f692=_0x5c7105['locale'],_0xe03d3d=_0x5c7105['plugins']['get']('TrackChangesEditing');_0xe03d3d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xe03d3d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xe03d3d['registerBlockAttribute']('headingRows'),_0xe03d3d['registerBlockAttribute']('headingColumns'),_0xe03d3d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x77f692,'FORMAT_HEADER_ROW')),_0xe03d3d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x77f692,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x121043=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e516e=this['editor']['plugins']['get']('TableUtils'),_0x567189=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3dea16({showActiveMarker:_0x2fa267=!0x0,setDataAttribute:_0x449e5a=!0x0}={}){return(_0x404586,_0x587e42,_0x51b831)=>{const {type:_0x21f117,id:_0x418db7}=_0x121043['_splitMarkerName'](_0x587e42['markerName']),_0x4559cb=_0x121043['getSuggestion'](_0x418db7),_0x575bc2=_0x4559cb['data'];if('formatBlock'!=_0x4559cb['type']||!_0x575bc2||'setTableColumnHeader'!=_0x575bc2['commandName'])return;if(_0x587e42['item'])return void _0x404586['stop']();if(!_0x51b831['consumable']['consume'](_0x587e42['markerRange'],_0x404586['name']))return;const _0x3bc7bb=_0x587e42['markerRange']['start']['nodeAfter'],_0x55726c=_0x587e42['markerRange']['end']['nodeBefore'],_0xbf0c86=_0x3bc7bb['parent']['parent'],{column:_0x30f8f8}=_0x3e516e['getCellLocation'](_0x3bc7bb),{column:_0x28043f}=_0x3e516e['getCellLocation'](_0x55726c);for(let _0x473d7c=_0x30f8f8;_0x473d7c<=_0x28043f;_0x473d7c++){const _0x17bd60=_0x3e516e['createTableWalker'](_0xbf0c86,{'column':_0x473d7c,'includeAllSlots':!0x1});for(const _0xf2cf80 of _0x17bd60){const _0x3c0b94=_0xf2cf80['cell'],_0x3e87aa=_0x51b831['mapper']['toViewElement'](_0x3c0b94);_0x51b831['writer']['addClass']('ck-suggestion-marker-'+_0x21f117,_0x3e87aa),_0x449e5a&&_0x51b831['writer']['setAttribute']('data-suggestion',_0x418db7,_0x3e87aa),_0x51b831['mapper']['bindElementToMarker'](_0x3e87aa,_0x587e42['markerName']),_0x2fa267&&(_0x121043['activeMarkers']['includes'](_0x587e42['markerName'])?_0x51b831['writer']['addClass']('ck-suggestion-marker--active',_0x3e87aa):_0x51b831['writer']['removeClass']('ck-suggestion-marker--active',_0x3e87aa));}}};}_0x121043['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x567189),_0x121043['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x567189),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3dea16(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x967a09,_0x2d94a3,_0x207cec)=>{_0x207cec['options']['showSuggestionHighlights']&&_0x3dea16({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x967a09,_0x2d94a3,_0x207cec);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x48f9bd,_0x5a556d,_0x21ac72)=>{const {type:_0x3b9c89,id:_0x167e4c}=_0x121043['_splitMarkerName'](_0x5a556d['markerName']),_0xef2f64=_0x121043['getSuggestion'](_0x167e4c),_0x5c91b9=_0xef2f64['data'];if('formatBlock'!=_0xef2f64['type']||!_0x5c91b9||'setTableColumnHeader'!=_0x5c91b9['commandName'])return;const _0x5dd796=_0x21ac72['mapper']['markerNameToElements'](_0x5a556d['markerName']);if(_0x5dd796){for(const _0x51fb34 of _0x5dd796)_0x21ac72['writer']['removeClass']('ck-suggestion-marker-'+_0x3b9c89,_0x51fb34),_0x21ac72['writer']['removeClass']('ck-suggestion-marker--active',_0x51fb34),_0x21ac72['writer']['removeAttribute']('data-suggestion',_0x51fb34),_0x21ac72['mapper']['unbindElementFromMarkerName'](_0x51fb34,_0x5a556d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x423781=this['editor'],_0x146421=_0x423781['locale'];function _0x84453f(_0x101c48){return{'type':'format','content':o(_0x146421,'*Format:*\x20%0',_0x101c48)};}_0x423781['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19368d=>{if('formatBlock'!=_0x19368d['type'])return;const {data:_0x3d884f}=_0x19368d;if(_0x3d884f){if('setTableRowHeader'==_0x3d884f['commandName']){const _0x307e9c=_0x3d884f['commandParams'][0x0]['forceValue'];return _0x84453f(o(_0x146421,_0x307e9c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3d884f['commandName']){const _0x45cc48=_0x3d884f['commandParams'][0x0]['forceValue'];return _0x84453f(o(_0x146421,_0x45cc48?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x46e4c5=>[_0x46e4c5,null]));class It extends _0x58f0a6{static get['requires'](){return[jt];}['afterInit'](){const _0x4bf5fc=this['editor'];if(!_0x4bf5fc['plugins']['has']('TableClipboard'))return;const _0x296874=_0x4bf5fc['plugins']['get']('TrackChangesEditing'),_0x508d90=_0x4bf5fc['plugins']['get']('TableUtils'),_0xc5077b=_0x4bf5fc['plugins']['get'](jt),_0x4ac4b1=_0x4bf5fc['plugins']['get']('TableClipboard');_0xc5077b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4bf5fc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4bf5fc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5e7d71=null;_0x4bf5fc['model']['on']('insertContent',(_0x57bfaa,_0x206832)=>{const [_0x13d396,_0x419599]=_0x206832,_0x135921=_0x206832[_0x206832['length']-0x1];_0x135921&&_0x135921['forceDefaultExecution']||_0x296874['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x8f0a3c,_0x1abaec,_0x49c98f,_0x442106,_0x48a131){if(_0x1abaec&&!_0x1abaec['is']('documentSelection'))return!0x1;const _0x2d18b4=_0x48a131['getTableIfOnlyTableInContent'](_0x8f0a3c,_0x49c98f);if(!_0x2d18b4||!he(_0x2d18b4,void 0x0,_0x442106))return!0x1;const _0x400540=_0x442106['getSelectionAffectedTableCells'](_0x49c98f['document']['selection']);if(!_0x400540['length'])return!0x1;const _0x2d9f2d=_0x400540[0x0]['findAncestor']('table'),_0x398456=_0x442106['getRowIndexes'](_0x400540),_0x39a9f=_0x442106['getColumnIndexes'](_0x400540),_0x424642={'startRow':_0x398456['first'],'endRow':_0x398456['last'],'startColumn':_0x39a9f['first'],'endColumn':_0x39a9f['last']};return 0x1==_0x400540['length']&&(_0x424642['endRow']+=_0x442106['getRows'](_0x2d18b4)-0x1,_0x424642['endColumn']+=_0x442106['getColumns'](_0x2d18b4)-0x1),he(_0x2d9f2d,_0x424642,_0x442106);}(_0x13d396,_0x419599,_0x4bf5fc['model'],_0x508d90,_0x4ac4b1)&&(_0x57bfaa['stop'](),_0x5e7d71={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4bf5fc['model']['change'](()=>{_0x4bf5fc['model']['insertContent'](_0x206832[0x0],_0x206832[0x1],_0x206832[0x2],{'forceDefaultExecution':!0x0});const _0x4b82d7=_0x418fff(),{rowInsertionRanges:_0x3edb95,columnInsertionRanges:_0x52faba,insertionRanges:_0x270613,deletionRanges:_0xdbd158,cells:_0x2fcc73}=_0x5e7d71;_0x3edb95['length']&&_0x296874['markMultiRangeInsertion'](_0x3edb95,'tablePasteRow',{'tablePasteChainId':_0x4b82d7}),_0x52faba['length']&&_0x296874['markMultiRangeInsertion'](_0x52faba,'tablePasteColumn',{'tablePasteChainId':_0x4b82d7}),_0x270613['length']&&(_0x296874['markMultiRangeInsertion'](_0x270613,'tablePaste',{'tablePasteChainId':_0x4b82d7,'skipNestingCheck':!0x0}),_0x270613['forEach'](_0x396206=>_0x396206['detach']?.())),_0xdbd158['length']&&(_0x296874['markMultiRangeDeletion'](_0xdbd158,'tablePaste',{'tablePasteChainId':_0x4b82d7,'skipNestingCheck':!0x0}),_0xdbd158['forEach'](_0x4a965e=>_0x4a965e['detach']?.()));const _0x57db78=_0x296874['markMultiRangeBlockFormat'](_0x2fcc73['map'](({element:_0x462fd4})=>_0x462fd4),{'formatGroupId':_0x418fff()},[],'tablePasteCell',{'tablePasteChainId':_0x4b82d7});if(_0x57db78){const _0x4d9dc6=_0x57db78['getMarkers'](),_0x2ceae2=[];for(const {element:_0x2bd5c8,attributes:_0x67847b}of _0x2fcc73){if(!_0x67847b)continue;const _0x1f4122=_0x4bf5fc['model']['createRangeOn'](_0x2bd5c8),_0xcb700=_0x4d9dc6['find'](_0x112b49=>_0x112b49['getRange']()['isEqual'](_0x1f4122));_0xcb700&&_0x2ceae2['push']([_0xcb700['name'],_0x67847b]);}_0x2ceae2['length']&&_0x57db78['setAttribute']('markerAttributes',Object['fromEntries'](_0x2ceae2));}_0x5e7d71=null;}));},{'priority':_0x1b86cf['high']+0xa}),_0x4bf5fc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x542d5d,_0x3666f7)=>{const [_0x2709a2,_0x4e0517,,_0x5c6a06]=_0x3666f7;if(!_0x5e7d71)return;_0x542d5d['stop']();const _0x4d1d48=_0x2709a2['cell'],_0x52f9a2=_0x4e0517,_0x2a969=Pe(_0x4d1d48),_0x5b2f7f=Pe(_0x52f9a2);_0x542d5d['return']=_0x4d1d48;let _0x2e24b1=null,_0x452199=null;if(_0x5b2f7f||_0x2a969){if(_0x2a969&&!_0x5b2f7f){_0x5c6a06['remove'](_0x4d1d48['getChild'](0x0));for(const _0x1f199d of Array['from'](_0x52f9a2['getChildren']()))_0x5c6a06['insert'](_0x1f199d,_0x4d1d48,'end');const _0x295101=_0x5e7d71['rowInsertionIndexes']['includes'](_0x2709a2['row']),_0x2bb31f=_0x5e7d71['columnInsertionIndexes']['includes'](_0x2709a2['column']);_0x295101||_0x2bb31f||(_0x2e24b1=_0x5733e9['fromRange'](_0x5c6a06['createRangeIn'](_0x4d1d48)));}else _0x5b2f7f&&!_0x2a969&&(_0x452199=_0x5c6a06['createRangeIn'](_0x4d1d48));}else{const _0x5c80be=_0x5c6a06['createElement']('tableCellSuggestion'),_0x215093=_0x5c6a06['createElement']('tableCellSuggestion');_0x5c6a06['wrap'](_0x5c6a06['createRangeIn'](_0x4d1d48),_0x215093),_0x5c6a06['insert'](_0x5c80be,_0x4d1d48,0x0);for(const _0x845eee of Array['from'](_0x52f9a2['getChildren']()))_0x5c6a06['insert'](_0x845eee,_0x5c80be,'end');_0x2e24b1=_0x5733e9['fromRange'](_0x5c6a06['createRangeOn'](_0x5c80be)),_0x452199=_0x5733e9['fromRange'](_0x5c6a06['createRangeOn'](_0x215093));}const _0x22131b=Array['from'](_0x52f9a2['getAttributes']())['filter'](([_0x5a57c9])=>ge['includes'](_0x5a57c9));_0x5e7d71['cells']['push']({'element':_0x4d1d48,'attributes':_0x22131b['length']?Object['fromEntries'](_0x22131b):null}),_0x2e24b1&&_0x5e7d71['insertionRanges']['push'](_0x2e24b1),_0x452199&&_0x5e7d71['deletionRanges']['push'](_0x452199);},{'priority':'high'}),_0x508d90['on']('insertColumns',(_0x50a34a,_0xe08e27)=>{const [_0x5196f1,_0x3a4cc7={}]=_0xe08e27;if(!_0x5e7d71)return;const _0x39858f=_0x3a4cc7['at']||0x0,_0x485955=_0x3a4cc7['columns']||0x1;_0x5e7d71['columnInsertionIndexes']=new Array(_0x485955)['fill'](_0x39858f)['map']((_0x28e1fe,_0x28499a)=>_0x28e1fe+_0x28499a);for(const {cell:_0x52f69b}of _0x508d90['createTableWalker'](_0x5196f1,{'startColumn':_0x39858f,'endColumn':_0x39858f+_0x485955-0x1}))_0x5e7d71['columnInsertionRanges']['push'](_0x4bf5fc['model']['createRangeOn'](_0x52f69b));},{'priority':'low'}),_0x508d90['on']('insertRows',(_0x4f67f4,_0x5cb4e1)=>{const [_0x293e5a,_0x5bfef4={}]=_0x5cb4e1;if(!_0x5e7d71)return;const _0x495709=_0x5bfef4['at']||0x0,_0x25da68=_0x5bfef4['rows']||0x1;_0x5e7d71['rowInsertionIndexes']=new Array(_0x25da68)['fill'](_0x495709)['map']((_0x382687,_0x241fd4)=>_0x382687+_0x241fd4);for(const {cell:_0x515443}of _0x508d90['createTableWalker'](_0x293e5a,{'startRow':_0x495709,'endRow':_0x495709+_0x25da68-0x1}))_0x5e7d71['rowInsertionRanges']['push'](_0x4bf5fc['model']['createRangeOn'](_0x515443));},{'priority':'low'}),_0x296874['descriptionFactory']['registerDescriptionCallback'](_0x3a3b10=>{if(_0x3a3b10['subType']&&_0x3a3b10['subType']['startsWith']('tablePaste'))return _0x3a3b10['previous']?{}:{'type':'insertion','content':o(_0x4bf5fc['locale'],'*Replace\x20table\x20cells*')};});const _0x3ee1d8=()=>!0x1;for(const _0x5f340c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x296874['_suggestionFactory']['registerCustomCallback']('insertion',_0x5f340c,'join',_0x3ee1d8),_0x296874['_suggestionFactory']['registerCustomCallback']('deletion',_0x5f340c,'join',_0x3ee1d8),_0x296874['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f340c,'join',_0x3ee1d8);_0x296874['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3ee1d8),_0x296874['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a4df8,_0x1c4648,_0x3587fe)=>{const _0x571541=_0x4a4df8['map'](_0x3cf783=>_0x3cf783['getContainedElement']())['filter'](_0x57c71f=>_0x57c71f),_0x244c8f=new Map(_0x571541['map'](_0x385e61=>[_0x385e61,null]));if(_0x5e7d71){for(const {element:_0x17fdfc,attributes:_0x16547b}of _0x5e7d71['cells'])_0x16547b&&_0x244c8f['set'](_0x17fdfc,_0x16547b);}else{if(_0x3587fe&&_0x3587fe['markerAttributes'])for(const [_0x230388,_0x41dce3]of Object['entries'](_0x3587fe['markerAttributes'])){const _0x4f2769=_0x4bf5fc['model']['markers']['get'](_0x230388),_0x2754b5=_0x4f2769?_0x4f2769['getRange']()['getContainedElement']():null;_0x2754b5&&_0x244c8f['set'](_0x2754b5,_0x41dce3);}}_0x4bf5fc['model']['change'](_0x591ad3=>{for(const [_0x4dd15a,_0x3c47d1]of _0x244c8f)_0x591ad3['setAttributes']({...Ce,..._0x3c47d1},_0x4dd15a);});});const _0x45adc5=(_0x3cd95b,_0x2cef46)=>{_0x296874['_suggestionFactory']['registerCustomCallback'](_0x3cd95b,'tablePaste',_0x2cef46,(_0x54be94,_0x26ba6e,_0x45d200)=>{_0x4bf5fc['model']['change'](_0x4ef1ae=>{const _0x40e8db=[];for(const _0x42021a of _0x54be94){const _0x431b8e=_0x42021a['start']['nodeAfter'];_0x431b8e['is']('element','tableCellSuggestion')&&_0x40e8db['push'](_0x431b8e);}_0x296874['_suggestionFactory']['getSuggestionCallback'](_0x3cd95b,null,_0x2cef46)(_0x54be94,_0x26ba6e,_0x45d200);for(const _0x4aff66 of _0x40e8db)'$graveyard'!=_0x4aff66['root']['rootName']&&_0x4ef1ae['unwrap'](_0x4aff66);});});};_0x45adc5('insertion','accept'),_0x45adc5('insertion','discard'),_0x45adc5('deletion','accept'),_0x45adc5('deletion','discard'),_0x296874['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e0f01=>{const _0x31411f=_0x1e0f01['map'](_0x1c811c=>_0x1c811c['getContainedElement']()),_0x176ce0=_0x31411f[0x0]['findAncestor']('table'),{minRow:_0x2a3454,maxRow:_0x36407e}=_0xc5077b['_getCoordsForCells'](_0x31411f);_0x508d90['removeRows'](_0x176ce0,{'at':_0x2a3454,'rows':_0x36407e-_0x2a3454+0x1});}),_0x296874['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x105f1d=>{const _0x3d9ab5=_0x105f1d['map'](_0x2c8454=>_0x2c8454['getContainedElement']()),_0x1d4a53=_0x3d9ab5[0x0]['findAncestor']('table'),{minColumn:_0x2d7b42,maxColumn:_0x296e5f}=_0xc5077b['_getCoordsForCells'](_0x3d9ab5);_0x508d90['removeColumns'](_0x1d4a53,{'at':_0x2d7b42,'columns':_0x296e5f-_0x2d7b42+0x1});});const _0x31afa3=(_0x2b64a8,_0x5ac4d3)=>{if(!_0x5ac4d3['subType']||!_0x5ac4d3['subType']['startsWith']('tablePaste'))return;const _0x1184a4=_0x5ac4d3['attributes']['tablePasteChainId'],_0x338f7a=_0x296874['getSuggestions']()['filter'](_0x20acd6=>_0x20acd6['isInContent']&&_0x20acd6['attributes']&&_0x20acd6['attributes']['tablePasteChainId']==_0x1184a4);_0x338f7a['length']&&_0x5ac4d3['getAllAdjacentSuggestions']()['length']!=_0x338f7a['length']&&_0x338f7a['reduce']((_0xf0a6a0,_0xa98fb0)=>(_0xf0a6a0['next']=_0xa98fb0,_0xa98fb0['previous']=_0xf0a6a0,_0xa98fb0));};function _0x26096b(_0x3e806e,_0x101124=!0x0){const {id:_0x54d290}=_0x296874['_splitMarkerName'](_0x3e806e['markerName']),_0x5e7507=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xfe2a00=_0x296874['activeMarkers']['includes'](_0x3e806e['markerName']);return _0xfe2a00&&_0x5e7507['push']('ck-suggestion-marker--active'),{'classes':_0x5e7507,'attributes':{'data-suggestion':_0x54d290},'priority':_0xfe2a00&&_0x101124?0xbc2:0xbb8};}_0x296874['on']('suggestionLoaded',_0x31afa3,{'priority':'high'}),_0x296874['on']('suggestionUnloaded',_0x31afa3,{'priority':'high'}),_0x4bf5fc['model']['document']['registerPostFixer'](()=>{let _0x3aedae=!0x1;const _0x185ec3=Array['from'](_0x4bf5fc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bcfe8,data:_0x2c260a}of _0x185ec3){const {group:_0x40ce0d,type:_0x409599,id:_0x1a2337}=_0x296874['_splitMarkerName'](_0x4bcfe8);if('suggestion'!=_0x40ce0d||'deletion'!=_0x409599||_0x2c260a['oldRange'])continue;if(!_0x296874['hasSuggestion'](_0x1a2337))continue;const _0x26358c=_0x296874['getSuggestion'](_0x1a2337)['getRanges'](),_0xb35cdc=_0x4bf5fc['plugins']['get']('Users')['me'];for(const _0x2f7273 of _0x296874['getSuggestions']()){if(!_0x2f7273['isInContent']||_0x2f7273['author']!=_0xb35cdc)continue;if('formatBlock'!=_0x2f7273['type']||'tablePasteCell'!=_0x2f7273['subType'])continue;if(_0x2f7273['getRanges']()['every'](_0xfe50ca=>_0x26358c['some'](_0x5cfe63=>_0x5cfe63['containsRange'](_0xfe50ca,!0x0)))){for(const _0x487a89 of _0x2f7273['getAllAdjacentSuggestions']())_0x487a89['isInContent']&&(_0x487a89['discard'](),_0x3aedae=!0x0);}}}return _0x3aedae;}),_0x4bf5fc['model']['document']['registerPostFixer'](_0x3abe1a=>{const _0x2a0efc=_0x4bf5fc['commands']['get']('redo');if(!_0x2a0efc||!_0x2a0efc['_createdBatches']['has'](_0x3abe1a['batch']))return!0x1;let _0x1c5c8e=!0x1;const _0x388ac5=_0x4bf5fc['plugins']['get']('Users')['me'],_0x5578a0=_0x4bf5fc['model']['document']['differ']['getChanges'](),_0x250da3=Array['from'](_0x4bf5fc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2129a2,data:_0x558ec6})=>{const {group:_0x3ea507,subType:_0x4b039c,authorId:_0xf0724d}=_0x296874['_splitMarkerName'](_0x2129a2);return'suggestion'==_0x3ea507&&'tablePaste'==_0x4b039c&&_0xf0724d==_0x388ac5['id']&&!_0x558ec6['oldRange'];});for(const _0x4081b8 of _0x5578a0){if('insert'!=_0x4081b8['type']||'tableCellSuggestion'!=_0x4081b8['name']||0x1!=_0x4081b8['length'])continue;const _0x47b9b1=_0x3abe1a['createRange'](_0x4081b8['position'],_0x4081b8['position']['getShiftedBy'](0x1));if(!_0x250da3['find'](({data:_0xb0c82a})=>_0xb0c82a['newRange']['isEqual'](_0x47b9b1))){for(const {name:_0x2d9302,data:_0x487b5d}of _0x250da3)if(_0x47b9b1['containsRange'](_0x487b5d['newRange'])){_0x3abe1a['updateMarker'](_0x2d9302,{'range':_0x47b9b1}),_0x1c5c8e=!0x0;break;}}}return _0x1c5c8e;}),_0x4bf5fc['model']['document']['registerPostFixer'](_0x1b67ae=>{let _0x1eae81=!0x1;const _0x26e091=_0x4bf5fc['plugins']['get']('Users')['me'],_0x2b8615=_0x296874['getSuggestions']()['filter'](_0x4eba29=>_0x4eba29['isInContent']&&_0x4eba29['author']==_0x26e091),_0x2ee2f4=new Set(),_0x4c278b=new Set();for(const _0x18ef7e of _0x2b8615)if('tablePaste'==_0x18ef7e['subType'])for(const _0xfbe0bb of _0x18ef7e['getMarkers']()){const _0x1aed5d=_0xfbe0bb['getRange']()['getContainedElement']();if(_0x1aed5d){if(_0x1aed5d['is']('element','tableCellSuggestion')&&Pe(_0x1aed5d)){_0x18ef7e['removeMarker'](_0xfbe0bb['name']),_0x2ee2f4['add'](_0x1aed5d),_0x1eae81=!0x0;const _0x45326e=_0x1aed5d['nextSibling'],_0x234753=_0x1aed5d['previousSibling'],_0x36875a=_0x45326e&&_0x45326e['is']('element','tableCellSuggestion'),_0x568e23=_0x234753&&_0x234753['is']('element','tableCellSuggestion');_0x36875a&&!_0x2ee2f4['has'](_0x45326e)&&_0x4c278b['add'](_0x45326e),_0x568e23&&!_0x2ee2f4['has'](_0x234753)&&_0x4c278b['add'](_0x234753);}else _0x1aed5d['is']('element','paragraph')&&_0x1aed5d['isEmpty']&&(_0x18ef7e['removeMarker'](_0xfbe0bb['name']),_0x1eae81=!0x0);}}else{if('tablePasteCell'==_0x18ef7e['subType']){if(!_0x18ef7e['attributes']||!_0x18ef7e['attributes']['tablePasteChainId'])continue;const _0x1c5c35=_0x18ef7e['attributes']['markerAttributes'];if(_0x1c5c35&&Object['keys'](_0x1c5c35)['length'])continue;const _0x1117d3=_0x18ef7e['attributes']['tablePasteChainId'];let _0x193a41=!0x0,_0x2417f5=!0x0;for(const _0x47ce7f of _0x2b8615)if(_0x47ce7f['subType']&&_0x47ce7f['subType']['startsWith']('tablePaste')){if(!_0x47ce7f['attributes']['tablePasteChainId']){_0x2417f5=!0x1;break;}if(_0x47ce7f['id']!=_0x18ef7e['id']&&_0x47ce7f['attributes']['tablePasteChainId']==_0x1117d3){_0x193a41=!0x1;break;}}_0x2417f5&&_0x193a41&&(_0x18ef7e['removeMarkers'](),_0x1eae81=!0x0);}}for(const _0x314461 of _0x2ee2f4)_0x1b67ae['remove'](_0x314461);for(const _0x164c49 of _0x4c278b)_0x1b67ae['unwrap'](_0x164c49);return _0x1eae81;}),_0x4bf5fc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c7b2a,_0x44f829)=>_0x26096b(_0x2c7b2a),'converterPriority':'high'}),_0x4bf5fc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x20cddd,_0x3af30f)=>_0x3af30f['options']['showSuggestionHighlights']?_0x26096b(_0x20cddd,!0x1):null,'converterPriority':'high'});const _0x2f440d=_0x4bf5fc['editing']['view'];this['listenTo'](_0x2f440d['document'],'clipboardOutput',(_0xeee4f7,_0x31618c)=>{const _0x236a1b=[];for(const _0x4220c8 of _0x2f440d['createRangeIn'](_0x31618c['content'])['getItems']())_0x4220c8['is']('element','suggestion-td')&&_0x236a1b['push'](_0x4220c8);_0x2f440d['change'](_0xfafcf0=>{for(const _0x31f08f of _0x236a1b)_0xfafcf0['move'](_0xfafcf0['createRangeIn'](_0x31f08f),_0xfafcf0['createPositionBefore'](_0x31f08f)),_0xfafcf0['remove'](_0x31f08f);});});}}function Pe(_0x209899){if(_0x209899['isEmpty'])return!0x0;const _0x43d408=_0x209899['getChild'](0x0);return _0x43d408['is']('element','paragraph')&&_0x43d408['isEmpty'];}function he(_0x31546e,_0x1ed2ca={},_0x12eba1){for(const {isAnchor:_0x46dce4,cellHeight:_0x596b51,cellWidth:_0x3f5e5f}of _0x12eba1['createTableWalker'](_0x31546e,{'includeAllSlots':!0x0,..._0x1ed2ca}))if(!_0x46dce4||0x1!=_0x596b51||0x1!=_0x3f5e5f)return!0x1;return!0x0;}class vt extends _0x58f0a6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5c5371=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c5371['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5c5371['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5c5371['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c5371['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5c5371['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5c5371['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xe478a,_0x2df9cd){const _0x35eb89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e1b14=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2579c0=_0x2df9cd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x687a37=_0x5e1b14['getColumnGroupElement'](_0x2579c0);let _0x40fe46=_0x687a37?_0x5e1b14['getTableColumnsWidths'](_0x687a37):null,_0xcdfce1=_0x2579c0['getAttribute']('tableWidth')||null;const _0x514054=_0x2df9cd['tableWidth']||_0xcdfce1,_0x7388aa=_0x2df9cd['columnWidths']||_0x40fe46,_0x5d8187=this['editor']['plugins']['get']('Users')['me'];for(const _0x28653d of _0x35eb89['getSuggestions']()){const _0x43a364=_0x28653d['getContainedElement']();if('resizeTable'===_0x28653d['subType']&&_0x43a364===_0x2579c0){_0x28653d['author']!==_0x5d8187&&_0x28653d['discard']();const _0x5f2c6b=_0x28653d['data']['commandParams'];_0xcdfce1=_0x5f2c6b[0x0]['tableWidth'],_0x40fe46=_0x5f2c6b[0x0]['columnWidths'];break;}}_0xe478a({'table':_0x2579c0,'tableWidth':_0x514054,'columnWidths':_0x7388aa}),_0x35eb89['markBlockFormat'](_0x2579c0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xcdfce1,'columnWidths':_0x40fe46}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5aaa9c){if('formatBlock'!=_0x5aaa9c['type']&&'formatInline'!=_0x5aaa9c['type'])return;const {data:_0x34dbb3}=_0x5aaa9c;if(_0x34dbb3&&'resizeTable'===_0x34dbb3['formatGroupId']){const _0x7811c5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x7811c5)};}}}class Ct extends _0x58f0a6{['afterInit'](){const _0x16ab9e=this['editor'];_0x16ab9e['plugins']['has']('Template')&&_0x16ab9e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x58f0a6{['afterInit'](){const _0x460547=this['editor'];if(!_0x460547['commands']['get']('insertTableOfContents'))return;_0x460547['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2fa670=_0x460547['plugins']['get']('TrackChangesEditing'),_0x226dc5=_0x460547['locale'];_0x2fa670['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5bf7fd=>o(_0x226dc5,'ELEMENT_TABLE_OF_CONTENTS',_0x5bf7fd));}}class Dt extends _0x58f0a6{['afterInit'](){const _0x1b1252=this['editor'];if(!_0x1b1252['plugins']['has']('Title'))return;const _0x32d9be=_0x1b1252['plugins']['get']('TrackChangesEditing');_0x32d9be['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1b1252['locale'],'ELEMENT_TITLE')),_0x1b1252['model']['document']['registerPostFixer'](_0x2b6bcc=>{let _0x47f014=!0x1;const _0x368950=Array['from'](_0x1b1252['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fb5a4,data:_0x319fa9}of _0x368950){const {group:_0x43436b}=_0x32d9be['_splitMarkerName'](_0x2fb5a4);if('suggestion'!==_0x43436b||!_0x319fa9['newRange'])continue;const _0x2b2527=_0x319fa9['newRange'],_0x41caff=_0x2b2527['end']['nodeBefore'];if(!_0x41caff||!_0x41caff['is']('element','title-content'))continue;if(!_0x2b2527['start']['isTouching'](_0x2b2527['end']))continue;const _0x5d6624=_0x1b1252['model']['schema']['getNearestSelectionRange'](_0x2b2527['end'],'forward');if(_0x5d6624&&_0x5d6624['isCollapsed']){const _0x149c59=_0x2b6bcc['createRange'](_0x2b2527['start'],_0x5d6624['start']);_0x149c59['isEqual'](_0x2b2527)||(_0x2b6bcc['updateMarker'](_0x2fb5a4,{'range':_0x149c59}),_0x47f014=!0x0);}_0x47f014||(_0x2b6bcc['removeMarker'](_0x2fb5a4),_0x47f014=!0x0);}return _0x47f014;});}}class Nt extends _0x58f0a6{['afterInit'](){const _0x457dd2=this['editor'],_0x148e63=_0x457dd2['plugins']['get']('TrackChangesEditing');_0x457dd2['plugins']['has']('UndoEditing')&&(_0x148e63['enableCommand']('undo'),_0x148e63['enableCommand']('redo'));}}class Mt extends _0x58f0a6{static get['requires'](){return[jt];}['afterInit'](){const _0x413e9c=this['editor'];if(!_0x413e9c['plugins']['has']('TableCaptionEditing'))return;_0x413e9c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x58f0a6{['tableProperties'];['tableCellProperties'];constructor(_0x1545d0){super(_0x1545d0),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 _0x3fd16d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x98873c of this['tableProperties'])_0x3fd16d['enableCommand'](_0x98873c,(_0x51f670,_0x577df8)=>{const _0x4d4488=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x98873c,[_0x4d4488],this['tableProperties'],'tableProperties',_0x51f670,_0x577df8);});_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3fd16d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x55f09e,_0x18fd7f)=>this['handleDiscardAction'](this['tableProperties'],_0x55f09e,_0x18fd7f)),_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x49f980 of this['tableCellProperties'])_0x3fd16d['enableCommand'](_0x49f980,(_0x116475,_0x291957)=>{const _0x5d1e38=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x49f980,_0x5d1e38,this['tableCellProperties'],'tableCellProperties',_0x116475,_0x291957);});_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3fd16d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2f78a5,_0x50392c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2f78a5,_0x50392c)),_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3fd16d['descriptionFactory']['registerDescriptionCallback'](_0x2c17bc=>this['handleSuggestionDescription'](_0x2c17bc));}['_handlePropertyChange'](_0x30cb7c,_0x11b53a,_0x50c05e,_0x5d42ea,_0x135a44,_0x139a56){const _0x458f9b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x139a56['batch'],()=>{for(const _0x327b38 of _0x11b53a){if(this['_getSuggestion'](_0x327b38,_0x5d42ea))_0x135a44(_0x139a56);else{const _0x485d31={};for(const _0x4b98a6 of _0x50c05e){const _0x52c507=_0x327b38['getAttribute'](_0x4b98a6);void 0x0!==_0x52c507&&(_0x485d31[_0x4b98a6]=_0x52c507);}_0x135a44(_0x139a56),_0x458f9b['markBlockFormat'](_0x327b38,{'commandParams':[_0x485d31]},[],_0x5d42ea);}}});}['handleDiscardAction'](_0x4fa30f,_0x1ae369,_0x101002){const _0x16e70e=_0x1ae369[0x0]['start']['nodeAfter'],_0x9b415c=_0x101002['commandParams'][0x0];this['editor']['model']['change'](_0x1e0b70=>{for(const _0x470fd1 of _0x4fa30f)void 0x0!==_0x9b415c[_0x470fd1]?_0x1e0b70['setAttribute'](_0x470fd1,_0x9b415c[_0x470fd1],_0x16e70e):_0x1e0b70['removeAttribute'](_0x470fd1,_0x16e70e);});}['handleSuggestionDescription'](_0x1326fd){if(_0x1326fd['data'])switch(_0x1326fd['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'](_0x466ebe,_0x24456f){const _0x5ea30e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xf561c6 of _0x5ea30e['getSuggestions']({'skipNotAttached':!0x0})){const _0x383940=_0xf561c6['getContainedElement']();if(_0xf561c6['subType']===_0x24456f&&_0x383940===_0x466ebe)return _0xf561c6;}return null;}}const m='$elementName';class p extends _0x58f0a6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x7b8d04,_0x34a628,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x34411a){function _0x21753f(_0x106b8b){return _0x106b8b['map'](_0x1d4e3e=>String['fromCharCode'](_0x1d4e3e))['join']('');}super(_0x34411a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2721f2,_0x4aea2c,_0x307b9e,_0x30cfb3)=>{this['_model']['change'](()=>{for(const _0x919f46 of[..._0x30cfb3,..._0x307b9e])this['_model']['markers']['has'](_0x919f46)&&_0x34411a['editing']['reconvertMarker'](_0x919f46);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x34411a['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(),_0x34411a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x34411a['config']['get']('trackChanges.trackFormatChanges'),_0x34411a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x34411a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x34411a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x21753f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x21753f([0x34,0x30,0x34,0x38,0x31,0x34,0x31,0x30]);}['init'](){const _0x549387=this['editor'],_0x5e2975=(_0x5c22c8,_0x54903e)=>{if('attribute'!=_0x5c22c8)return'ck-suggestion-marker-'+_0x5c22c8;const _0x3c0871=_0x54903e['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c0871)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x549387['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5dee83=>{const {id:_0x4072fc,type:_0x2245d0,subType:_0xb33e28}=this['_splitMarkerName'](_0x5dee83['markerName']),_0x2c2627=['ck-suggestion-marker',_0x5e2975(_0x2245d0,_0xb33e28)];let _0x5832c8=0xbb8;return this['activeMarkers']['includes'](_0x5dee83['markerName'])&&(_0x2c2627['push']('ck-suggestion-marker--active'),_0x5832c8=0xbc2),'deletion'==_0x2245d0&&(_0x5832c8+=0x5),{'classes':_0x2c2627,'attributes':{'data-suggestion':_0x4072fc},'priority':_0x5832c8};}}),_0x549387['conversion']['for']('dataDowncast')['add'](_0x158816=>{_0x158816['on']('addMarker:suggestion',(_0x440e82,_0x2074dc,_0x3c5854)=>{if(!_0x3c5854['options']['showSuggestionHighlights'])return;const _0x17ea79=_0x2074dc['item'];if(!_0x17ea79)return;const _0x3e4ec7=_0x3c5854['mapper']['toViewElement'](_0x17ea79);_0x549387['model']['schema']['isObject'](_0x17ea79)&&_0x3e4ec7&&!_0x3e4ec7['getCustomProperty']('widget')&&_0x3e4ec7['is']('containerElement')&&_0x4fac4f(_0x3e4ec7,_0x3c5854['writer']);},{'priority':'high'});}),_0x549387['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x38e417,_0x29ff08)=>{if(!_0x29ff08['options']['showSuggestionHighlights'])return null;const {type:_0x4e956e,subType:_0x216424}=this['_splitMarkerName'](_0x38e417['markerName']);return{'classes':['ck-suggestion-marker',_0x5e2975(_0x4e956e,_0x216424)],'priority':0xbb8};}});const _0xce4282=({showActiveMarkers:_0x87dcf7=!0x0,isAttributeSuggestion:_0x3e74e2=!0x1}={})=>(_0x361408,_0x49490e,_0x4d211b)=>{if(!_0x49490e['item'])return;const {id:_0x18bbf4}=this['_splitMarkerName'](_0x49490e['markerName']);if(_0x3e74e2){const _0x2925ef=this['_suggestions']['get'](_0x18bbf4),_0x7c97a0=this['_getAttributeKey'](_0x2925ef);if(!this['_isBlockAttribute'](_0x7c97a0))return;}if(_0x49490e['item']['is']('selection'))return void _0x4d211b['consumable']['consume'](_0x49490e['item'],_0x361408['name']);const _0x1f9e16=_0x4d211b['mapper']['toViewElement'](_0x49490e['item']);if(_0x49490e['item']['is']('element')&&_0x549387['model']['schema']['isBlock'](_0x49490e['item'])&&!_0x1f9e16['getCustomProperty']('addHighlight')){_0x4d211b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1f9e16),_0x4d211b['writer']['setAttribute']('data-suggestion',_0x18bbf4,_0x1f9e16),_0x4d211b['mapper']['bindElementToMarker'](_0x1f9e16,_0x49490e['markerName']),_0x87dcf7&&(this['activeMarkers']['includes'](_0x49490e['markerName'])?_0x4d211b['writer']['addClass']('ck-suggestion-marker--active',_0x1f9e16):_0x4d211b['writer']['removeClass']('ck-suggestion-marker--active',_0x1f9e16));for(const _0x359bf5 of _0x549387['model']['createRangeIn'](_0x49490e['item'])['getItems']())_0x4d211b['consumable']['consume'](_0x359bf5,_0x361408['name']);_0x4d211b['consumable']['consume'](_0x49490e['item'],_0x361408['name']);}};_0x549387['conversion']['for']('dataDowncast')['add'](_0x58286f=>{_0x58286f['on']('addMarker:suggestion:formatBlock',(_0x5e68f6,_0x4606aa,_0x28b320)=>{_0x28b320['options']['showSuggestionHighlights']&&_0xce4282({'showActiveMarkers':!0x1})(_0x5e68f6,_0x4606aa,_0x28b320);},{'priority':'highest'});}),_0x549387['conversion']['for']('dataDowncast')['add'](_0x234c31=>{_0x234c31['on']('addMarker:suggestion:attribute',(_0x33c25e,_0x330baf,_0x27fefc)=>{_0x27fefc['options']['showSuggestionHighlights']&&_0xce4282({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x33c25e,_0x330baf,_0x27fefc);},{'priority':'highest'});}),_0x549387['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x11a9aa,_0x1079b8)=>_0x1079b8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x11a9aa['substr'](0xb)}}),_0x549387['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xf0de0,{writer:_0x36e1a7})=>{let _0x5b3942='suggestion:'+_0xf0de0['getAttribute']('suggestion-type')+':'+_0xf0de0['getAttribute']('id');return _0xf0de0['getAttribute']('marker-count')&&(_0x5b3942+=':'+_0xf0de0['getAttribute']('marker-count')),_0x36e1a7['createElement']('$marker',{'data-name':_0x5b3942});}}),_0x549387['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x549387['conversion']['for']('editingDowncast')['add'](_0x295dd8=>{_0x295dd8['on']('addMarker:suggestion:formatBlock',_0xce4282(),{'priority':'high'});}),_0x549387['conversion']['for']('editingDowncast')['add'](_0x29e947=>{_0x29e947['on']('addMarker:suggestion:attribute',_0xce4282({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x549387['conversion']['for']('editingDowncast')['add'](_0x58ce0d=>{_0x58ce0d['on']('removeMarker:suggestion:formatBlock',(_0x1fbce4,_0x10ed9d,_0x2369d1)=>{const _0x4f5042=_0x2369d1['mapper']['markerNameToElements'](_0x10ed9d['markerName']);if(_0x4f5042){for(const _0x4f0f00 of _0x4f5042)_0x4f0f00['getCustomProperty']('addHighlight')||(_0x2369d1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4f0f00),_0x2369d1['writer']['removeAttribute']('data-suggestion',_0x4f0f00),_0x2369d1['mapper']['unbindElementFromMarkerName'](_0x4f0f00,_0x10ed9d['markerName']));}},{'priority':'high'});}),_0x549387['conversion']['for']('editingDowncast')['add'](_0x4aa505=>{_0x4aa505['on']('removeMarker:suggestion:attribute',(_0x2cd7d0,_0x52e65e,_0x5736b6)=>{const _0x260ba4=_0x5736b6['mapper']['markerNameToElements'](_0x52e65e['markerName']);if(!_0x260ba4)return;const {id:_0x46df11}=this['_splitMarkerName'](_0x52e65e['markerName']),_0x43f77c=this['_suggestions']['get'](_0x46df11),_0x43e8ba=this['_getAttributeKey'](_0x43f77c);if(this['_isBlockAttribute'](_0x43e8ba)){for(const _0xf9c80c of _0x260ba4)_0xf9c80c['getCustomProperty']('addHighlight')||(_0x5736b6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xf9c80c),_0x5736b6['writer']['removeAttribute']('data-suggestion',_0xf9c80c),_0x5736b6['mapper']['unbindElementFromMarkerName'](_0xf9c80c,_0x52e65e['markerName']));}},{'priority':'high'});}),_0x549387['model']['document']['registerPostFixer'](_0x4ad74c=>{let _0x405e96=!0x1;const _0x4fa804=Array['from'](_0x549387['model']['document']['differ']['getChangedMarkers']()),_0x3ff7a7=new Set();for(const {name:_0x5e41f0,data:_0x42322f}of _0x4fa804){const {group:_0xbde331,type:_0x1b13ad,subType:_0x5be8bb,id:_0xcf9f30}=this['_splitMarkerName'](_0x5e41f0);if('suggestion'!==_0xbde331)continue;const _0x9e64d4=this['_suggestions']['get'](_0xcf9f30);if(null!=_0x42322f['newRange']){'formatInline'==_0x1b13ad&&(_0x405e96=_0x405e96||Et(_0x42322f['newRange'],_0x5e41f0,_0x4ad74c,_0x549387['model']['schema']));const _0x3c0d4a='attribute'==_0x1b13ad&&this['_isBlockAttribute'](_0x5be8bb['split']('|')[0x0]);if(_0x42322f['newRange']['isCollapsed']||'$graveyard'==_0x42322f['newRange']['root']['rootName']||'formatBlock'==_0x1b13ad&&!Ut(_0x42322f['newRange'])||_0x3c0d4a&&!Ut(_0x42322f['newRange'])||'deletion'==_0x1b13ad&&!(!Tt(_0x17662a=_0x42322f['newRange'])&&!function(_0x5d881f){return _0x5d881f['start']['parent']==_0x5d881f['end']['nodeBefore']&&_0x5d881f['start']['isAtEnd'];}(_0x17662a)))_0x4ad74c['removeMarker'](_0x5e41f0),_0x405e96=!0x0;else{if(!_0x9e64d4||!_0x9e64d4['isInContent'])continue;_0x3ff7a7['add'](_0x9e64d4);}}}var _0x17662a;return _0x3ff7a7['size']>0x0&&(_0x405e96=!!this['_joinWithAdjacentSuggestions'](_0x3ff7a7)||_0x405e96),_0x405e96;}),_0x549387['model']['document']['registerPostFixer'](_0xb4c36c=>{let _0x208cea=!0x1;for(const _0x3f4642 of _0x549387['model']['document']['differ']['getChanges']())if('insert'==_0x3f4642['type'])for(const _0x4d02ee of this['_suggestions']['values']()){if(_0x4d02ee['isMultiRange']||!_0x4d02ee['isInContent'])continue;const _0x9e8829='formatBlock'==_0x4d02ee['type'],_0x18b9c7=this['_getAttributeKey'](_0x4d02ee),_0x2e7fec=_0x18b9c7&&this['_isBlockAttribute'](_0x18b9c7);if(!_0x9e8829&&!_0x2e7fec)continue;const _0x26bca3=_0x4d02ee['getFirstRange']();if(_0x26bca3['start']['parent']!=_0x26bca3['end']['parent']&&!_0x26bca3['end']['isAtEnd']){const _0x49a153=_0x549387['model']['createPositionAt'](_0x26bca3['start']['nodeAfter'],'end'),_0x521406=_0x549387['model']['createRange'](_0x26bca3['start'],_0x49a153);_0xb4c36c['updateMarker'](_0x4d02ee['getFirstMarker'](),{'range':_0x521406}),_0x208cea=!0x0;}}return _0x208cea;}),_0x549387['model']['document']['registerPostFixer'](_0x4914d7=>this['_processAttributeChanges'](_0x4914d7)),_0x549387['model']['document']['registerPostFixer'](_0x567b69=>!_0x567b69['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x567b69)),_0x549387['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x549387['model']['document']['on']('change:data',(_0x2c0252,_0x533542)=>{if(!_0x533542['isLocal']||_0x533542['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x20e6fc=_0x549387['model']['document']['differ']['getChanges']();if(0x0==_0x20e6fc['length'])return;const _0x2ef1d1=[],_0x48cd53=_0x20e6fc['filter'](_0xc90eb4=>'attribute'==_0xc90eb4['type']),_0x3cf3ba=_0x20e6fc['filter'](_0xafe5fa=>'insert'==_0xafe5fa['type']&&'$text'!=_0xafe5fa['name']);for(const _0x10eb2e of _0x48cd53)this['_isRegisteredAttribute'](_0x10eb2e['attributeKey'])&&_0x2ef1d1['push']({'key':_0x10eb2e['attributeKey'],'newValue':_0x10eb2e['attributeNewValue'],'oldValue':_0x10eb2e['attributeOldValue'],'range':Ot(_0x10eb2e['range'],_0x549387['model'])});for(const _0x35de91 of _0x3cf3ba){if('rename'!=_0x35de91['action']&&'refresh'!=_0x35de91['action'])continue;const _0x1b9def=Gt(_0x35de91['position']['nodeAfter'],_0x549387['model']),_0x4e770e=_0x35de91['before'];'rename'==_0x35de91['action']&&_0x2ef1d1['push']({'key':m,'newValue':_0x35de91['name'],'oldValue':_0x4e770e['name'],'range':_0x1b9def});for(const [_0x49c25e,_0x51deaf]of _0x4e770e['attributes']){if(!this['_isRegisteredAttribute'](_0x49c25e))continue;const _0x28a5fb=_0x35de91['attributes']['get'](_0x49c25e);_0x51deaf!==_0x28a5fb&&_0x2ef1d1['push']({'key':_0x49c25e,'newValue':_0x28a5fb,'oldValue':_0x51deaf,'range':_0x1b9def});}for(const [_0x1bf69e,_0x11b580]of _0x35de91['attributes'])this['_isRegisteredAttribute'](_0x1bf69e)&&(_0x4e770e['attributes']['has'](_0x1bf69e)||_0x2ef1d1['push']({'key':_0x1bf69e,'newValue':_0x11b580,'oldValue':null,'range':_0x1b9def}));}0x0!=_0x2ef1d1['length']&&_0x549387['model']['enqueueChange'](_0x533542,_0x294ff4=>{const _0x4c5eb1=_0x418fff();for(const {range:_0x21a030,key:_0x559817,oldValue:_0x541d23,newValue:_0x1790a8}of _0x2ef1d1)this['markAttributeChange'](_0x21a030,_0x559817,_0x541d23,_0x1790a8,{'groupId':_0x4c5eb1});this['_reduceExistingSuggestions'](_0x294ff4,_0x2ef1d1);});},{'priority':'lowest'}),_0x549387['model']['markers']['on']('update:suggestion',(_0x42c49e,_0x16d022,_0x4080e1)=>{if(null==_0x4080e1){const {id:_0x2b5533}=this['_splitMarkerName'](_0x16d022['name']),_0x575eb4=this['_suggestions']['get'](_0x2b5533);_0x575eb4&&_0x575eb4['addMarkerName'](_0x16d022['name']);}}),_0x549387['model']['document']['on']('change:data',()=>{const _0x3d9126=Array['from'](_0x549387['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3a1b89=>'suggestion'===this['_splitMarkerName'](_0x3a1b89['name'])['group']);if(0x0===_0x3d9126['length'])return;_0x3d9126['sort']((_0x165230,_0x112804)=>{const _0xda610c=_0x165230['data']['oldRange'],_0xec1a9a=_0x112804['data']['oldRange'];return null===_0xda610c&&null===_0xec1a9a?0x0:null===_0xda610c&&null!==_0xec1a9a?-0x1:null!==_0xda610c&&null===_0xec1a9a?0x1:_0xda610c['start']['isBefore'](_0xec1a9a['start'])?-0x1:0x1;});const _0x4653d6=new Set(),_0x1931f0=new Set();for(const {name:_0x21dae,data:_0x714de8}of _0x3d9126){const {id:_0x8946c2}=this['_splitMarkerName'](_0x21dae);if(null===_0x714de8['oldRange']){const _0x151f97=this['_handleNewSuggestionMarker'](_0x21dae);_0x1931f0['add'](_0x151f97);}else{const _0x5b5250=this['_suggestions']['get'](_0x8946c2);null!==_0x714de8['newRange']||_0x5b5250['isInContent']?(_0x4653d6['add'](_0x5b5250['head']),_0x1931f0['add'](_0x5b5250)):this['_removeSuggestion'](_0x5b5250);}}_0x1931f0['size']>0x0&&this['_refreshSuggestionsChain'](_0x1931f0);for(const _0x1e3cd1 of _0x4653d6)this['fire']('suggestionChanged',_0x1e3cd1);}),_0x549387['model']['on']('applyOperation',(_0x5aab90,_0x3d7410)=>{const _0x11f546=_0x3d7410[0x0];if(!this['_suggestions']['size'])return;if(!_0x11f546['isDocumentOperation'])return;if(_0x11f546['batch']['isUndo']||!_0x11f546['batch']['isLocal'])return;let _0x20381,_0x14cd11;switch(_0x11f546['type']){case'insert':_0x20381=_0x549387['model']['createPositionAt'](_0x11f546['position']),_0x14cd11=_0x20381['getShiftedBy'](_0x11f546['howMany']);break;case'split':_0x20381=_0x549387['model']['createPositionAt'](_0x11f546['splitPosition']),_0x14cd11=_0x549387['model']['createPositionAt'](_0x11f546['moveTargetPosition']);break;case'move':_0x20381=_0x549387['model']['createPositionAt'](_0x11f546['targetPosition']),_0x14cd11=_0x20381['getShiftedBy'](_0x11f546['howMany']);break;default:return;}const _0x16d981=_0x549387['model']['createRange'](_0x20381,_0x14cd11);_0x549387['model']['change'](()=>{for(const {suggestion:_0x149b94,meta:_0x452a29}of this['_findSuggestions'](_0x16d981)){if(_0x149b94['isMultiRange'])continue;if('formatInline'==_0x149b94['type'])continue;const _0x92ccd4=this['_getAttributeKey'](_0x149b94);if(_0x92ccd4&&this['_isBlockAttribute'](_0x92ccd4)&&'split'!=_0x11f546['type'])continue;const _0x62fa8d=_0x149b94['data']&&_0x149b94['data']['multipleBlocks'];('formatBlock'!=_0x149b94['type']||'split'==_0x11f546['type']&&!_0x62fa8d)&&(_0x452a29['containsRangeInObject']||'insertion'==_0x149b94['type']&&_0x452a29['isOwn']||_0x149b94['getFirstRange']()['containsRange'](_0x16d981)&&this['_breakSuggestionMarker'](_0x149b94,_0x20381,_0x14cd11));}});},{'priority':'lowest'}),_0x549387['model']['on']('deleteContent',(_0xce034e,_0x3ea8c7)=>{const _0x4b5576=_0x3ea8c7[0x0],_0x188cef=_0x3ea8c7[0x1];if(_0x188cef&&_0x188cef['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4b5576['isCollapsed'])return;const _0x31899=_0x549387['model']['schema'],{start:_0x55a815,end:_0x2b079e}=_0x4b5576['getFirstRange'](),_0xd6ab52=_0x55a815['nodeAfter']&&_0x31899['isLimit'](_0x55a815['nodeAfter'])?null:_0x31899['getNearestSelectionRange'](_0x55a815,'forward'),_0x2008ad=_0x2b079e['nodeBefore']&&_0x31899['isLimit'](_0x2b079e['nodeBefore'])?null:_0x31899['getNearestSelectionRange'](_0x2b079e,'backward'),_0x14affe=_0x549387['model']['createRange'](_0xd6ab52?_0xd6ab52['start']:_0x55a815,_0x2008ad?_0x2008ad['end']:_0x2b079e);_0x549387['model']['change'](_0xb1810f=>{this['markDeletion'](_0x14affe);const _0x2d9fb1=_0x549387['model']['schema']['getNearestSelectionRange'](_0x14affe['start']);_0x4b5576['is']('documentSelection')?_0xb1810f['setSelection'](_0x2d9fb1):_0x4b5576['setTo'](_0x2d9fb1);}),_0xce034e['stop']();},{'priority':_0x1b86cf['normal']+0xa}),_0x549387['model']['on']('insertContent',(_0x52e93d,_0x207245)=>{const _0x4cdfe8=_0x207245[_0x207245['length']-0x1];_0x4cdfe8&&_0x4cdfe8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x549387['model']['change'](()=>{let _0x1938c9=_0x549387['model']['insertContent'](_0x207245[0x0],_0x207245[0x1],_0x207245[0x2],{'forceDefaultExecution':!0x0});if(!_0x1938c9)return;_0x52e93d['return']=_0x1938c9['clone']();const _0x3c87ca=_0x1938c9['end']['nodeBefore'],_0x4958ef=_0x549387['model']['schema'];_0x3c87ca&&_0x4958ef['isBlock'](_0x3c87ca)&&!_0x4958ef['isObject'](_0x3c87ca)&&(_0x1938c9=_0x549387['model']['createRange'](_0x1938c9['start'],_0x549387['model']['createPositionAt'](_0x3c87ca,'end'))),this['markInsertion'](_0x1938c9);}),_0x52e93d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26c06e=new $(_0x549387,this['_suggestions']);_0x549387['commands']['add']('acceptSuggestion',_0x26c06e),this['enableCommand']('acceptSuggestion');const _0x7de7d=new B(_0x549387,this['_suggestions']);_0x549387['commands']['add']('discardSuggestion',_0x7de7d),this['enableCommand']('discardSuggestion'),_0x549387['commands']['add']('acceptAllSuggestions',new x(_0x549387,_0x26c06e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x549387['commands']['add']('discardAllSuggestions',new x(_0x549387,_0x7de7d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x549387['commands']['add']('acceptSelectedSuggestions',new R(_0x549387,_0x26c06e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x549387['commands']['add']('discardSelectedSuggestions',new R(_0x549387,_0x7de7d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xab3d74=_0x549387['plugins']['get']('CommentsRepository');this['listenTo'](_0xab3d74,'addComment',(_0x278115,{threadId:_0x20636e})=>{const _0x582b1e=this['_suggestions']['get'](_0x20636e);_0x582b1e&&_0x582b1e['commentThread']&&0x1===_0x582b1e['commentThread']['length']&&this['_updateSuggestionData'](_0x20636e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xab3d74,'removeComment',(_0x5e5fcd,{threadId:_0x45c03d})=>{const _0x3d9491=this['_suggestions']['get'](_0x45c03d);_0x3d9491&&_0x3d9491['commentThread']&&!_0x3d9491['commentThread']['length']&&this['_updateSuggestionData'](_0x45c03d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xd90c73){if(this['_adapter'])throw new _0x5a9654('track-changes-adapter-already-set',this);this['_adapter']=_0xd90c73;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1841e4=!0x1,toJSON:_0x407d1b=!0x1}={}){const _0x489f54=[];for(const _0xe9d19 of this['_suggestions']['values']())_0x1841e4&&!_0xe9d19['isInContent']||_0x489f54['push'](_0xe9d19);return _0x407d1b?_0x489f54['map'](_0x65ee78=>_0x65ee78['toJSON']()):_0x489f54;}['getSuggestion'](_0xcfaf0a){const _0x561561=this['_suggestions']['get'](_0xcfaf0a);if(!_0x561561)throw new _0x5a9654('track-changes-suggestion-not-found',this);return _0x561561;}['hasSuggestion'](_0xc1253e){return this['_suggestions']['has'](_0xc1253e);}['addSuggestionData'](_0x4fe79d){const {authorId:_0xc21c9d,id:_0x57ea6e,attributes:_0x40f5d5}=_0x4fe79d,[_0x16c984,_0x57f70e]=_0x4fe79d['type']['split'](':'),_0x381ad4=this['_suggestions']['get'](_0x57ea6e)||this['_createSuggestion'](_0x16c984,_0x57f70e,_0x57ea6e,_0xc21c9d,_0x40f5d5);if(this['_addThreadToSuggestion'](_0x381ad4),this['_checkSuggestionCorrectness'](_0x381ad4,_0x16c984,_0x57f70e||null,_0xc21c9d),_0x381ad4['createdAt']=_0x4fe79d['createdAt'],_0x381ad4['_isDataLoaded']=!0x0,_0x40f5d5&&_0x40f5d5['@external']){const _0x5533b1=_0x40f5d5['@external'],_0x47a187=this['_getExternalAuthor'](_0x5533b1['authorName']);_0x381ad4['authoredAt']=_0x5533b1['createdAt'],_0x381ad4['author']=_0x47a187,_0x381ad4['isExternal']=!0x0;}else _0x381ad4['authoredAt']=_0x4fe79d['createdAt'];switch(_0x4fe79d['data']&&(_0x381ad4['data']=_0x4fe79d['data']),_0x4fe79d['attributes']&&(_0x381ad4['attributes']=_0x4fe79d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x381ad4['_saved']=!0x0),this['_suggestionState']['get'](_0x381ad4)){case'notReady':this['_suggestionState']['set'](_0x381ad4,'dataReady');break;case'markerReady':_0x381ad4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x381ad4])),this['_refreshSuggestionsChain'](new Set([_0x381ad4])),this['_suggestionState']['set'](_0x381ad4,'ready'),this['fire']('suggestionLoaded',_0x381ad4)):this['_suggestionState']['set'](_0x381ad4,'removed');}return _0x381ad4;}['acceptSuggestion'](_0x185781){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1bc645 of _0x185781['getAllAdjacentSuggestions']())_0x1bc645['accept']();});});}['discardSuggestion'](_0x411b7c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ff11d of _0x411b7c['getAllAdjacentSuggestions']())_0x2ff11d['discard']();});});}['enableCommand'](_0x428fb2,_0xe5c7b1){const _0xb9afb7=this['editor']['commands']['get'](_0x428fb2);if(!_0xb9afb7)throw new _0x5a9654('track-changes-command-not-found',this,{'commandName':_0x428fb2});if(this['_enabledCommands']['has'](_0xb9afb7))throw new _0x5a9654('track-changes-enable-command-twice',this,{'commandName':_0x428fb2});this['_enabledCommands']['add'](_0xb9afb7),_0xe5c7b1&&_0xb9afb7['on']('execute',(_0x11afd9,_0x118660)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x118660['length']>0x0&&_0x118660[_0x118660['length']-0x1]&&_0x118660[_0x118660['length']-0x1]['forceDefaultExecution']?_0x118660['pop']():(_0x11afd9['return']=_0xe5c7b1((..._0x4feb88)=>_0xb9afb7['execute'](..._0x4feb88,{'forceDefaultExecution':!0x0}),..._0x118660),_0x11afd9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x600bf2){let _0x32355f,_0x3ebb1e;const _0x4de598=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x32355f=_0x600bf2();}catch(_0x456595){_0x3ebb1e=_0x456595;}return _0x4de598||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ebb1e&&_0x5a9654['rethrowUnexpectedError'](_0x3ebb1e,this),_0x32355f;}['markInsertion'](_0x5783ee,_0x3828e5=null,_0x171742={}){if(_0x5783ee['isCollapsed'])return null;const _0x33882e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1937d0,meta:_0xf65684}of this['_findSuggestions'](_0x5783ee,'insertion'))if(_0xf65684['isOwn']){if(!_0xf65684['isNextTo']){if(_0xf65684['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1937d0,_0x171742))continue;return _0x1937d0;}if(Lt(_0x1937d0,_0x171742))return _0x1937d0;this['_breakSuggestionMarker'](_0x1937d0,_0x5783ee['start'],_0x5783ee['end']);break;}if(_0x3828e5==_0x1937d0['subType']&&Lt(_0x1937d0,_0x171742)){const _0x44baa0=_0x1937d0['getFirstRange']();return _0x44baa0['start']['isEqual'](_0x5783ee['end'])?this['_setSuggestionRange'](_0x1937d0,this['_model']['createRange'](_0x5783ee['start'],_0x44baa0['end'])):this['_setSuggestionRange'](_0x1937d0,this['_model']['createRange'](_0x44baa0['start'],_0x5783ee['end'])),_0x1937d0;}}const _0x439f99=_0x418fff(),_0x4b38a9=_0x33882e['id'],_0x4b7ed6=_0x3828e5?'insertion:'+_0x3828e5:'insertion',_0xad22e=this['_setSuggestionData']({'id':_0x439f99,'type':_0x4b7ed6,'createdAt':new Date(),'authorId':_0x4b38a9,'attributes':_0x171742});return this['_addSuggestionMarker'](_0x4b7ed6,_0x439f99,_0x4b38a9,_0x5783ee),_0xad22e;}['markMultiRangeInsertion'](_0x128991,_0x166c6a='multi',_0x209180={}){const _0x4862dd=this['editor']['plugins']['get']('Users')['me'],_0x41d9e7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x166c6a,'join');for(const _0x25dff9 of this['getSuggestions']())if(_0x25dff9['author']['id']==_0x4862dd['id']&&'insertion'==_0x25dff9['type']&&_0x25dff9['subType']==_0x166c6a&&Lt(_0x25dff9,_0x209180)&&(_0x41d9e7(_0x25dff9['getRanges'](),_0x128991)||_0x41d9e7(_0x128991,_0x25dff9['getRanges']()))){for(const _0x6a64ee of _0x128991)_0x25dff9['addRange'](_0x6a64ee);return _0x25dff9;}for(const {suggestion:_0x449e19,meta:_0x43d954}of this['_findSuggestions'](_0x128991,'insertion')){if(!_0x43d954['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x43d954['containsRangeInObject'])continue;if(!Lt(_0x449e19,_0x209180))continue;let _0x37e646=!0x0;for(const _0x2320f0 of _0x449e19['getRanges']())for(const _0x50fe1d of _0x128991)if(!_0x2320f0['containsRange'](_0x50fe1d)){_0x37e646=!0x1;break;}if(_0x37e646)return _0x449e19;}const _0x338673=_0x418fff(),_0x294cb2=_0x4862dd['id'],_0x5d1133='insertion:'+_0x166c6a,_0x12a476=this['_setSuggestionData']({'id':_0x338673,'type':_0x5d1133,'createdAt':new Date(),'authorId':_0x294cb2,'attributes':_0x209180});for(const _0x3b9f90 of _0x128991)this['_addSuggestionMarker'](_0x5d1133,_0x338673,_0x294cb2,_0x3b9f90,u['getMultiRangeId']());return _0x12a476;}['markInlineFormat'](_0x5475c6,_0xbd1af5,_0x30a63e=null,_0x33ac65={}){if(_0x30a63e=_0x30a63e||Vt(_0xbd1af5),_0x5475c6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x7bb5ce=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30a63e,'accept');return this['forceDefaultExecution'](()=>_0x7bb5ce([_0x5475c6],_0xbd1af5,_0x33ac65)),null;}const _0x54e61d=this['editor']['plugins']['get']('Users')['me'],_0x1efe8e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2f44bb,meta:_0x3c8249}of this['_findSuggestions'](_0x5475c6,'insertion'))_0x3c8249['isOwn']&&!_0x3c8249['isInsideObject']&&_0x1efe8e['push'](..._0x2f44bb['getRanges']());}const _0x23fe32=function(_0x310655,_0x1d9d9e){const _0x3852a6=[];for(const _0x56395b of _0x1d9d9e){const _0x44e63b=_0x310655['getIntersection'](_0x56395b);_0x44e63b&&_0x3852a6['push'](_0x44e63b);}return _0x3852a6;}(_0x5475c6,_0x1efe8e),_0x1d87a3=function(_0x559bf3,_0x161e73){const _0x3da065=[_0x559bf3];for(const _0xb0766b of _0x161e73){let _0x26056a=0x0;for(;_0x26056a<_0x3da065['length'];){const _0x4a3d3c=_0x3da065[_0x26056a]['getDifference'](_0xb0766b);_0x3da065['splice'](_0x26056a,0x1,..._0x4a3d3c),_0x26056a+=_0x4a3d3c['length'];}}return _0x3da065;}(_0x5475c6,_0x1efe8e);_0x23fe32['length']&&this['_model']['change'](()=>{for(const _0x59b8f7 of _0x23fe32){const _0x122cbc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30a63e,'accept');this['forceDefaultExecution'](()=>_0x122cbc([_0x59b8f7],_0xbd1af5,_0x33ac65));}});for(const _0x171d63 of _0x1d87a3){let _0x4ffdaa=null,_0x44c705=_0x171d63['start'],_0x3e0519=_0x171d63['end'];for(const {suggestion:_0x46cbe4,meta:_0x5b813}of this['_findSuggestions'](_0x171d63,'formatInline')){if(!_0x5b813['isOwn'])continue;if(_0x46cbe4['subType']!=_0x30a63e)continue;if(!Lt(_0x46cbe4,_0x33ac65))continue;const _0x2e9202=_0x46cbe4['getFirstRange']();if(_0x2e9202['containsRange'](_0x171d63,!0x0))return null;_0x44c705=_0x44c705['isBefore'](_0x2e9202['start'])?_0x44c705:_0x2e9202['start'],_0x3e0519=_0x3e0519['isAfter'](_0x2e9202['end'])?_0x3e0519:_0x2e9202['end'],_0x4ffdaa?_0x2e9202['start']['isBefore'](_0x4ffdaa['getFirstRange']()['start'])?(_0x4ffdaa['removeMarkers'](),_0x4ffdaa=_0x46cbe4):_0x46cbe4['removeMarkers']():_0x4ffdaa=_0x46cbe4;}const _0x1fcfab=this['_model']['createRange'](_0x44c705,_0x3e0519);if(_0x4ffdaa)this['_setSuggestionRange'](_0x4ffdaa,_0x1fcfab);else{const _0x3f38be=_0x418fff(),_0x3cd668=_0x54e61d['id'];this['_setSuggestionData']({'id':_0x3f38be,'type':'formatInline:'+_0x30a63e,'data':_0xbd1af5,'createdAt':new Date(),'authorId':_0x3cd668,'attributes':_0x33ac65}),this['_addSuggestionMarker']('formatInline:'+_0x30a63e,_0x3f38be,_0x3cd668,_0x1fcfab);}}return null;}['markBlockFormat'](_0xf8562f,_0x2e5e1c,_0x47423b=[],_0x25cd97=null,_0x31e697={}){_0x2e5e1c['formatGroupId']||(_0x2e5e1c['formatGroupId']=_0x2e5e1c['commandName']),_0x2e5e1c['multipleBlocks']=_0xf8562f['is']('range'),_0x25cd97=_0x25cd97||Vt(_0x2e5e1c);const _0x12b4d9=_0x47423b['map'](_0x18a5a4=>Gt(_0x18a5a4,this['_model'])),_0x4c1197=_0xf8562f['is']('range')?_0xf8562f:Gt(_0xf8562f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1b4a02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25cd97,'accept');return this['forceDefaultExecution'](()=>_0x1b4a02([_0x4c1197],_0x2e5e1c,_0x31e697)),null;}_0x12b4d9['push'](_0x4c1197);let _0x19be56=!0x0;for(const _0x4486db of _0x12b4d9)if(!this['_rangeIsInLocalUserInsertion'](_0x4486db)){_0x19be56=!0x1;break;}if(_0x19be56&&'always'!==this['_trackFormatChanges']){const _0x5f0577=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25cd97,'accept');return this['forceDefaultExecution'](()=>_0x5f0577([_0x4c1197],_0x2e5e1c,_0x31e697)),null;}let _0x50deac=null,_0x65c1d=_0x4c1197['start'],_0x31acad=_0x4c1197['end'];for(const {suggestion:_0x36a903,meta:_0x22b74c}of this['_findSuggestions'](_0x4c1197,'formatBlock')){if(!_0x22b74c['isOwn'])continue;if(_0x22b74c['isNextTo']||_0x22b74c['containsRangeInObject']||_0x22b74c['isInsideObject'])continue;if(_0x36a903['data']['formatGroupId']!=_0x2e5e1c['formatGroupId'])continue;if(!Lt(_0x36a903,_0x31e697))continue;const _0x554e3b=_0x36a903['getFirstRange']();if(_0x36a903['subType']==_0x25cd97){if(_0x554e3b['containsRange'](_0x4c1197,!0x0))return null;_0x65c1d=_0x65c1d['isBefore'](_0x554e3b['start'])?_0x65c1d:_0x554e3b['start'],_0x31acad=_0x31acad['isAfter'](_0x554e3b['end'])?_0x31acad:_0x554e3b['end'],_0x50deac?_0x554e3b['start']['isBefore'](_0x50deac['getFirstRange']()['start'])?(_0x50deac['removeMarkers'](),_0x50deac=_0x36a903):_0x36a903['removeMarkers']():_0x50deac=_0x36a903;}else{const _0x218a3e=_0x4c1197['getIntersection'](_0x554e3b);this['_cutOutSuggestionMarker'](_0x36a903,_0x218a3e);}}const _0x5e787f=this['editor']['plugins']['get']('Users')['me'],_0x1b29a1=_0x418fff(),_0x5f2a7d=_0x5e787f['id'];if(_0x50deac)return this['_setSuggestionRange'](_0x50deac,this['_model']['createRange'](_0x65c1d,_0x31acad)),_0x50deac;{const _0x4a9848=this['_setSuggestionData']({'id':_0x1b29a1,'type':'formatBlock:'+_0x25cd97,'data':_0x2e5e1c,'createdAt':new Date(),'authorId':_0x5f2a7d,'attributes':_0x31e697});return this['_addSuggestionMarker']('formatBlock:'+_0x25cd97,_0x1b29a1,_0x5f2a7d,this['_model']['createRange'](_0x65c1d,_0x31acad)),_0x4a9848;}}['markMultiRangeBlockFormat'](_0x28a0b5,_0x91045,_0xff2bef=[],_0xfcf0ee=null,_0x208f9a={}){_0x91045['formatGroupId']||(_0x91045['formatGroupId']=_0x91045['commandName']);const _0x1bb207=_0x28a0b5[0x0];_0x91045['multipleBlocks']=_0x1bb207['is']('range'),_0xfcf0ee=_0xfcf0ee||Vt(_0x91045);const _0x5b0998=_0xff2bef['map'](_0x2fd0bd=>Gt(_0x2fd0bd,this['_model'])),_0x2c90c2=_0x1bb207['is']('range')?_0x28a0b5:_0x28a0b5['map'](_0x4d7887=>Gt(_0x4d7887,this['_model']));if('never'===this['_trackFormatChanges']){const _0x23c785=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfcf0ee,'accept');return this['forceDefaultExecution'](()=>_0x23c785(_0x2c90c2,_0x91045,_0x208f9a)),null;}_0x5b0998['push'](..._0x2c90c2);let _0x4b0fae=!0x0;for(const _0x314448 of _0x5b0998)if(!this['_rangeIsInLocalUserInsertion'](_0x314448)){_0x4b0fae=!0x1;break;}if(_0x4b0fae&&'always'!==this['_trackFormatChanges']){const _0x116d19=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfcf0ee,'accept');return this['forceDefaultExecution'](()=>_0x116d19(_0x2c90c2,_0x91045,_0x208f9a)),null;}const _0xc1e183=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b7cd9 of this['getSuggestions']()){if(_0x5b7cd9['author']['id']!=_0xc1e183['id'])continue;if('formatBlock'!=_0x5b7cd9['type']||_0x5b7cd9['data']['formatGroupId']!=_0x91045['formatGroupId'])continue;if(!Lt(_0x5b7cd9,_0x208f9a))continue;const _0x1afac7=_0x5b7cd9['subType']==_0xfcf0ee;for(let _0x22d2b4=0x0;_0x22d2b4<_0x2c90c2['length'];_0x22d2b4++){const _0x2303ef=_0x2c90c2[_0x22d2b4];for(const _0x4b7515 of _0x5b7cd9['getMarkers']()){const _0x419d56=_0x4b7515['getRange']();if(_0x2303ef['isEqual'](_0x419d56)){_0x1afac7?(_0x2c90c2['splice'](_0x22d2b4,0x1),_0x22d2b4--):_0x5b7cd9['removeMarker'](_0x4b7515['name']);break;}}}}if(0x0==_0x2c90c2['length'])return null;const _0x3e1faa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfcf0ee,'join');for(const _0x151022 of this['getSuggestions']())if(_0x151022['author']['id']==_0xc1e183['id']&&'formatBlock'==_0x151022['type']&&_0x151022['data']['formatGroupId']==_0x91045['formatGroupId']&&_0x151022['subType']==_0xfcf0ee&&Lt(_0x151022,_0x208f9a)&&(_0x3e1faa(_0x151022['getRanges'](),_0x2c90c2)||_0x3e1faa(_0x2c90c2,_0x151022['getRanges']()))){for(const _0x3ad893 of _0x2c90c2)_0x151022['addRange'](_0x3ad893);return _0x151022;}const _0x25e145=_0x418fff(),_0x5320bc=_0xc1e183['id'],_0xeddad='formatBlock:'+_0xfcf0ee,_0x5005d4=this['_setSuggestionData']({'id':_0x25e145,'type':_0xeddad,'data':_0x91045,'createdAt':new Date(),'authorId':_0x5320bc,'attributes':_0x208f9a});for(const _0x50f8fa of _0x2c90c2)this['_addSuggestionMarker'](_0xeddad,_0x25e145,_0x5320bc,_0x50f8fa,u['getMultiRangeId']());return _0x5005d4;}['markDeletion'](_0x583dd8,_0x33ab18=null,_0x2742f7={}){if(_0x583dd8['isCollapsed'])return null;const _0x26d0f4=this['editor']['plugins']['get']('Users')['me'],_0x52cf82=new _0x5733e9(_0x583dd8['start'],_0x583dd8['end']);for(const {suggestion:_0x4f4945,meta:_0x312a23}of this['_findSuggestions'](_0x52cf82,'insertion'))if(_0x312a23['isOwn']&&!_0x312a23['isNextTo']){if(_0x4f4945['isMultiRange']){const _0xc2e72f=_0x4f4945['getRanges']()['filter'](_0x5ef72f=>'$graveyard'!=_0x5ef72f['root']['rootName']);_0xc2e72f['every'](_0x9b8df5=>_0x52cf82['containsRange'](_0x9b8df5,!0x0))&&_0x4f4945['discard']();if(_0xc2e72f['some'](_0x1c3dd8=>_0x1c3dd8['containsRange'](_0x52cf82,!0x0))){const _0x4bcd50=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33ab18,'accept');return this['forceDefaultExecution'](()=>_0x4bcd50([_0x52cf82],null,_0x2742f7)),null;}}else{const _0x1c8d4a=_0x52cf82['getIntersection'](_0x4f4945['getFirstRange']());null!==_0x1c8d4a&&_0x4f4945['_onDiscard']([_0x1c8d4a],null,_0x2742f7);}}if(_0x52cf82['detach'](),_0x52cf82['isCollapsed']||'$graveyard'==_0x52cf82['root']['rootName'])return null;let _0x1dd39b=null,_0x313d80=_0x52cf82['start'],_0x17b5be=_0x52cf82['end'];const _0xaf7ec8=this['_findSuggestions'](_0x52cf82,'deletion');for(const {suggestion:_0x515b2c,meta:_0x8be4e5}of _0xaf7ec8){const _0x2f37ea=this['_model']['createRange'](_0x313d80,_0x17b5be);if(_0x8be4e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8be4e5['containsRangeInObject']&&!_0x8be4e5['isInsideObject'])){if(_0x515b2c['isMultiRange']){if(!Lt(_0x515b2c,_0x2742f7))continue;let _0x2843b2=!0x0;for(const _0x224c46 of _0x515b2c['getRanges']()){if(_0x224c46['containsRange'](_0x2f37ea,!0x0))return _0x515b2c;_0x2f37ea['containsRange'](_0x224c46)||(_0x2843b2=!0x1);}_0x2843b2&&_0x515b2c['discard']();}else{const _0x253c05=_0x515b2c['getFirstRange']();if(_0x253c05['containsRange'](_0x2f37ea,!0x0))return _0x515b2c;if(!Lt(_0x515b2c,_0x2742f7)){_0x2f37ea['containsRange'](_0x253c05)?_0x515b2c['removeMarkers']():_0x253c05['containsPosition'](_0x313d80)?_0x313d80=_0x253c05['end']:_0x253c05['containsPosition'](_0x17b5be)&&(_0x17b5be=_0x253c05['start']);continue;}_0x313d80=_0x313d80['isBefore'](_0x253c05['start'])?_0x313d80:_0x253c05['start'],_0x17b5be=_0x17b5be['isAfter'](_0x253c05['end'])?_0x17b5be:_0x253c05['end'],_0x2742f7=Object['assign']({},_0x515b2c['attributes']),_0x1dd39b?_0x253c05['start']['isBefore'](_0x1dd39b['getFirstRange']()['start'])?(_0x1dd39b['removeMarkers'](),_0x1dd39b=_0x515b2c):_0x515b2c['removeMarkers']():_0x1dd39b=_0x515b2c;}}}if(_0x1dd39b)return this['_setSuggestionRange'](_0x1dd39b,this['_model']['createRange'](_0x313d80,_0x17b5be)),_0x1dd39b;{const _0x4d721a=_0x418fff(),_0x4b8827=this['_model']['createRange'](_0x313d80,_0x17b5be),_0x432643=_0x26d0f4['id'],_0x34bf4b=_0x33ab18?'deletion:'+_0x33ab18:'deletion',_0x24d78f=this['_setSuggestionData']({'id':_0x4d721a,'type':_0x34bf4b,'createdAt':new Date(),'authorId':_0x432643,'attributes':_0x2742f7});return this['_addSuggestionMarker'](_0x34bf4b,_0x4d721a,_0x432643,_0x4b8827),_0x24d78f;}}['markMultiRangeDeletion'](_0x491f97,_0x4b2252='multi',_0x509fbe={}){const _0x33f1c9=this['editor']['plugins']['get']('Users')['me'],_0x43de74=_0x491f97['map'](_0x146076=>new _0x5733e9(_0x146076['start'],_0x146076['end'])),_0xaf313d=new Set();for(const {suggestion:_0x486bde,meta:_0x52d33a}of this['_findSuggestions'](_0x43de74,'insertion'))_0x52d33a['isOwn']&&!_0x52d33a['isNextTo']&&_0xaf313d['add'](_0x486bde);for(const _0x5d6990 of _0xaf313d)if(_0x5d6990['isMultiRange']){const _0x3597b7=_0x5d6990['getRanges']();(!_0x5d6990['attributes']||!_0x5d6990['attributes']['skipNestingCheck'])&&(_0x3597b7['every'](_0x1d33e9=>_0x43de74['some'](_0x7d44f2=>_0x7d44f2['containsRange'](_0x1d33e9,!0x0)))&&_0x5d6990['discard']());if(_0x43de74['every'](_0x2e98b3=>_0x3597b7['some'](_0x1e9596=>_0x1e9596['containsRange'](_0x2e98b3,!0x0)))){const _0x25bf71=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b2252,'accept');return this['forceDefaultExecution'](()=>_0x25bf71(_0x491f97,null,_0x509fbe)),null;}}else{const _0x278927=_0x5d6990['getFirstRange']();_0x43de74['some'](_0x1f21ac=>_0x1f21ac['containsRange'](_0x278927,!0x0))&&_0x5d6990['discard']();if(_0x43de74['every'](_0x1914e1=>_0x278927['containsRange'](_0x1914e1,!0x0))){const _0x2ccfa1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b2252,'accept');return this['forceDefaultExecution'](()=>_0x2ccfa1(_0x43de74,null,_0x509fbe)),null;}}const _0x310490=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b2252,'join');let _0x362145=null;for(const _0x475eb8 of this['getSuggestions']())if(_0x475eb8['author']['id']==_0x33f1c9['id']&&_0x475eb8['isInContent']&&'deletion'==_0x475eb8['type']&&_0x475eb8['subType']==_0x4b2252&&Lt(_0x475eb8,_0x509fbe)&&(_0x310490(_0x475eb8['getRanges'](),_0x43de74)||_0x310490(_0x43de74,_0x475eb8['getRanges']()))){if(_0x362145){if(_0x475eb8['commentThread']&&_0x475eb8['commentThread']['length'])continue;for(const _0x3f52d9 of _0x475eb8['getRanges']())_0x362145['isIntersectingWithRange'](_0x3f52d9)||_0x362145['addRange'](_0x3f52d9);_0x475eb8['removeMarkers']();}else{_0x362145=_0x475eb8;for(const _0x530e84 of _0x43de74)_0x475eb8['isIntersectingWithRange'](_0x530e84)||_0x475eb8['addRange'](_0x530e84);}}if(_0x362145)return _0x362145;_0xaf313d['clear']();for(const {suggestion:_0x2ea19a,meta:_0x5ce863}of this['_findSuggestions'](_0x43de74,'deletion'))_0x5ce863['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ce863['containsRangeInObject']&&!_0x5ce863['isInsideObject'])&&Lt(_0x2ea19a,_0x509fbe)&&_0xaf313d['add'](_0x2ea19a);for(const _0x27c9b9 of _0xaf313d){const _0x7203b8=_0x27c9b9['getRanges']();if(!_0x509fbe||!_0x509fbe['skipNestingCheck']){if(_0x43de74['every'](_0x4c086c=>_0x7203b8['some'](_0x17e315=>_0x17e315['containsRange'](_0x4c086c,!0x0))))return _0x27c9b9;}(!_0x27c9b9['attributes']||!_0x27c9b9['attributes']['skipNestingCheck'])&&(_0x7203b8['every'](_0xa818d3=>_0x43de74['some'](_0x749de1=>_0x749de1['containsRange'](_0xa818d3,!0x0)))&&_0x27c9b9['discard']());}const _0x3cd556=_0x418fff(),_0xbbeee1=_0x33f1c9['id'],_0x5a38e3='deletion:'+_0x4b2252,_0x1117e9=this['_setSuggestionData']({'id':_0x3cd556,'type':_0x5a38e3,'createdAt':new Date(),'authorId':_0xbbeee1,'attributes':_0x509fbe});for(const _0x291285 of _0x43de74)_0x291285['detach'](),_0x291285['isCollapsed']||'$graveyard'==_0x291285['root']['rootName']||this['_addSuggestionMarker'](_0x5a38e3,_0x3cd556,_0xbbeee1,_0x291285,u['getMultiRangeId']());return _0x1117e9;}['markAttributeChange'](_0x28aeef,_0x222e25,_0x57aee6,_0x29de7f,_0x54f80e){if(_0x28aeef['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3470d0=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f9aa4=Array['from'](this['_suggestions']['values']())['filter'](_0x3f01fb=>'attribute'==_0x3f01fb['type']&&_0x3f01fb['data']['key']==_0x222e25&&_0x3f01fb['isIntersectingWithRange'](_0x28aeef));if('default'===this['_trackFormatChanges']){const _0xf6e360=this['_findSuggestions'](_0x28aeef,'insertion')['filter'](({meta:_0x40d123})=>_0x40d123['isOwn']&&!_0x40d123['isInsideObject']&&!_0x40d123['isNextTo'])['map'](({suggestion:_0x1011d4})=>_0x1011d4);_0x3f9aa4['unshift'](..._0xf6e360);}const _0x6b2002=new Map([[_0x28aeef,_0x57aee6]]);for(const _0x1f5eba of _0x3f9aa4){const _0xffbc36='attribute'==_0x1f5eba['type']?_0x1f5eba['data']['oldValue']:void 0x0,_0x17da6a=_0x1f5eba['getFirstRange'](),_0x1b2a2c=Array['from'](_0x6b2002['keys']())['find'](_0x5ac84e=>_0x5ac84e['isIntersecting'](_0x17da6a));if(!_0x1b2a2c)continue;const _0x1234fc=_0x1b2a2c['getDifference'](_0x17da6a);this['_isBlockAttribute'](_0x222e25)&&'insertion'==_0x1f5eba['type']&&0x0!=_0x1234fc['length']||(_0x6b2002['delete'](_0x1b2a2c),_0x1234fc['forEach'](_0x3c6108=>{_0x6b2002['set'](_0x3c6108,_0x57aee6);}),'insertion'!=_0x1f5eba['type']&&_0xffbc36!=_0x29de7f&&_0x6b2002['set'](_0x1b2a2c['getIntersection'](_0x17da6a),_0xffbc36));}const _0x36969=[];for(const [_0x19e061,_0x555af2]of _0x6b2002){const _0x3925e2=_0x418fff(),_0x54f66b={'key':_0x222e25,'oldValue':_0x555af2,'newValue':_0x29de7f};_0x222e25['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':_0x222e25});const _0x3e20fe=('attribute:'+(_0x222e25+'|'+Vt({'newValue':_0x29de7f})))['substring'](0x0,0x3c),_0x7a1db5=this['_setSuggestionData']({'id':_0x3925e2,'type':_0x3e20fe,'data':_0x54f66b,'createdAt':new Date(),'authorId':_0x3470d0,'attributes':_0x54f80e});_0x36969['push'](_0x7a1db5),this['_addSuggestionMarker'](_0x3e20fe,_0x3925e2,_0x3470d0,_0x19e061);}return _0x36969;}['enableDefaultAttributesIntegration'](_0x739c6f){this['enableCommand'](_0x739c6f,(_0x49acc7,..._0xbf3663)=>{this['_recordAttributeChanges'](()=>{_0x49acc7(..._0xbf3663);});});}['registerBlockAttribute'](_0x1ee761){this['_blockAttributeKeys']['add'](_0x1ee761);}['registerInlineAttribute'](_0x4562ba){this['_inlineAttributeKeys']['add'](_0x4562ba);}['_getAttributeKey'](_0x51403a){return'attribute'==_0x51403a['type']?_0x51403a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x14e490,_0xf99501){const _0xf7b8af=_0x14e490['getFirstMarker']();this['_model']['change'](_0x5418c1=>{_0x5418c1['updateMarker'](_0xf7b8af,{'range':_0xf99501});});}['_addThreadToSuggestion'](_0xbdfdff){const _0x534bde=_0xbdfdff['id'],_0x646d87=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x534bde)||this['_commentsRepository']['addCommentThread']({'channelId':_0x646d87,'threadId':_0x534bde,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x39076f=this['_commentsRepository']['getCommentThread'](_0x534bde);_0x39076f['unbind']('isRemovable'),_0x39076f['isRemovable']=!0x1,_0xbdfdff['commentThread']=_0x39076f;}['_checkSuggestionCorrectness'](_0x31049a,_0x166db2,_0x919c4b,_0x5a556a){if(_0x31049a['type']!=_0x166db2||_0x31049a['subType']!=_0x919c4b||_0x31049a['creator']['id']!=_0x5a556a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a9654('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5999e5,_0x46004b){const _0x20e637=_0x5999e5['getFirstRange']();if(_0x46004b['isEqual'](_0x20e637))_0x5999e5['removeMarkers']();else{if(_0x20e637['containsRange'](_0x46004b)){const _0x1a9286=this['_model']['createPositionAt'](_0x46004b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5999e5,this['_model']['createRange'](_0x20e637['start'],_0x1a9286));const _0x40324d=_0x418fff(),_0x172cc1=_0x5999e5['creator']['id'],_0x2ac7f2=_0x5999e5['type']+':'+_0x5999e5['subType'];this['_setSuggestionData']({'id':_0x40324d,'type':_0x2ac7f2,'createdAt':new Date(),'authorId':_0x172cc1,'data':_0x5999e5['data'],'attributes':_0x5999e5['attributes']});const _0x1fd9e8=this['_model']['createPositionAt'](_0x46004b['end']['parent'],'after'),_0x4a32c6=this['_model']['createRange'](_0x1fd9e8,_0x20e637['end']);this['_addSuggestionMarker'](_0x2ac7f2,_0x40324d,_0x172cc1,_0x4a32c6);}else{if(_0x20e637['containsPosition'](_0x46004b['start'])){const _0x1a2d2f=this['_model']['createPositionAt'](_0x46004b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5999e5,this['_model']['createRange'](_0x20e637['start'],_0x1a2d2f));}else{const _0x12d9e7=this['_model']['createPositionAt'](_0x46004b['end']['parent'],'after');this['_setSuggestionRange'](_0x5999e5,this['_model']['createRange'](_0x12d9e7,_0x20e637['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xc069a){for(const {suggestion:_0x5b9c0b,meta:_0x3ecab9}of this['_findSuggestions'](_0xc069a,'insertion')){if(!_0x3ecab9['isOwn'])continue;const _0x384b42=_0x5b9c0b['getRanges']();for(const _0x2d8446 of _0x384b42)if(!_0xc069a['getDifference'](_0x2d8446)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d9d7b){const _0x454753=this['editor']['plugins']['get']('Users')['getUser'](_0x1d9d7b);if(!_0x454753)throw new _0x5a9654('track-changes-user-not-found',this);return _0x454753;}['_getExternalAuthor'](_0x5029ff){const _0x5e1817=this['editor']['plugins']['get']('Users'),_0x479e62=_0x465ae5('external:'+_0x5029ff),_0x396e0e=_0x5e1817['getUser'](_0x479e62);return _0x396e0e||_0x5e1817['addUser']({'id':_0x479e62,'name':_0x5029ff});}['_createSuggestion'](_0x41d12b,_0x4baef9,_0x308484,_0x767f7e,_0x3a787f){const _0x530e45=this['_getAuthorFromId'](_0x767f7e),_0x3cb1fe=this['_suggestionFactory']['buildSuggestion'](_0x41d12b,_0x4baef9,_0x308484,_0x530e45,_0x3a787f,_0x1a68f2=>{this['_updateSuggestionData'](_0x308484,{'attributes':_0x1a68f2});const _0x445ac2=this['getSuggestion'](_0x308484);this['_joinWithAdjacentSuggestions'](new Set([_0x445ac2])),this['_refreshSuggestionsChain'](new Set([_0x445ac2]));});return this['listenTo'](_0x3cb1fe,'accept',()=>{this['_updateSuggestionData'](_0x308484,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3cb1fe,'discard',()=>{this['_updateSuggestionData'](_0x308484,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x308484,_0x3cb1fe),this['_suggestionState']['set'](_0x3cb1fe,'notReady'),_0x3cb1fe;}['_splitMarkerName'](_0x35d6ce){const _0x2ea071=_0x35d6ce['split'](':');return{'group':_0x2ea071[0x0],'type':_0x2ea071[0x1],'subType':_0x2ea071['length']>=0x5?_0x2ea071[0x2]:null,'id':_0x2ea071['length']<0x5?_0x2ea071[0x2]:_0x2ea071[0x3],'authorId':_0x2ea071['length']<0x5?_0x2ea071[0x3]:_0x2ea071[0x4],'markerCount':0x6==_0x2ea071['length']?_0x2ea071[0x5]:null};}['_breakSuggestionMarker'](_0x174e25,_0x560901,_0x1691ba){const _0x17ae21=_0x174e25['getFirstRange'](),_0x34ab93=_0x17ae21['start'],_0x5b8134=_0x17ae21['end'];this['_setSuggestionRange'](_0x174e25,this['_model']['createRange'](_0x34ab93,_0x560901));const _0x373c35=_0x418fff(),_0x514231=_0x174e25['creator']['id'],_0x14fa6b=_0x174e25['type']+(_0x174e25['subType']?':'+_0x174e25['subType']:'');this['_setSuggestionData']({'id':_0x373c35,'type':_0x14fa6b,'createdAt':new Date(),'authorId':_0x514231,'originalSuggestionId':_0x174e25['id'],'attributes':_0x174e25['attributes'],'data':_0x174e25['data']});const _0x30488c=this['_getAttributeKey'](_0x174e25);('formatBlock'==_0x174e25['type']||_0x30488c&&this['_isBlockAttribute'](_0x30488c))&&(_0x1691ba=this['_model']['createPositionBefore'](_0x1691ba['parent'])),this['_addSuggestionMarker'](_0x14fa6b,_0x373c35,_0x514231,this['_model']['createRange'](_0x1691ba,_0x5b8134));}['_findSuggestions'](_0x5617cf,_0x9c516c=null){const _0x44ec22=[],_0x202781=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5617cf)||(_0x5617cf=[_0x5617cf]);for(const _0x465e59 of this['getSuggestions']()){if(!_0x465e59['isInContent'])continue;if(_0x9c516c&&_0x465e59['type']!=_0x9c516c)continue;let _0x2cbdd9=!0x1;for(const _0x476ae7 of _0x465e59['getRanges']()){for(const _0x550abd of _0x5617cf){const _0x7afb92=_0x550abd['start']['isEqual'](_0x476ae7['end'])||_0x550abd['end']['isEqual'](_0x476ae7['start']);if(_0x7afb92||_0x550abd['getIntersection'](_0x476ae7)){const _0x4273dd=_0x550abd['containsRange'](_0x476ae7)&&Rt(this['_model']['schema'],_0x476ae7['start'],_0x550abd),_0x4a8b16=_0x476ae7['containsRange'](_0x550abd)&&Rt(this['_model']['schema'],_0x550abd['start'],_0x476ae7);_0x44ec22['push']({'suggestion':_0x465e59,'meta':{'isOwn':_0x202781==_0x465e59['author'],'isNextTo':_0x7afb92,'isInsideObject':_0x4273dd,'containsRangeInObject':_0x4a8b16}}),_0x2cbdd9=!0x0;break;}}if(_0x2cbdd9)break;}}return _0x44ec22;}['_addSuggestionMarker'](_0x4dd5b0,_0x3437b2,_0x4a44ba,_0x44132b,_0x1cb409){this['_model']['change'](_0x559a73=>{let _0x284236='suggestion:'+_0x4dd5b0+':'+_0x3437b2+':'+_0x4a44ba;_0x1cb409&&(_0x284236=_0x284236+':'+_0x1cb409),_0x559a73['addMarker'](_0x284236,{'range':_0x44132b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3e0b75){const _0x5062d9=_0x3e0b75['previous'],_0x322cb4=_0x3e0b75['next'];_0x3e0b75['previous']=null,_0x3e0b75['next']=null,null!=_0x5062d9&&_0x5062d9['next']==_0x3e0b75&&(_0x5062d9['next']=_0x322cb4),null!=_0x322cb4&&_0x322cb4['previous']==_0x3e0b75&&(_0x322cb4['previous']=_0x5062d9),'ready'==this['_suggestionState']['get'](_0x3e0b75)&&(this['_suggestionState']['set'](_0x3e0b75,'removed'),this['fire']('suggestionUnloaded',_0x3e0b75,_0x5062d9,_0x322cb4));}['_setSuggestionData'](_0x1d7d22){const _0x5636f2=_0x1d7d22['id'],_0x5da97d=this['addSuggestionData'](_0x1d7d22);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x12fe67=this['editor']['plugins']['get']('PendingActions'),_0x3f314c=_0x5da97d['hasComments'],_0x5d55d8=_0x5da97d['subType']?_0x5da97d['type']+':'+_0x5da97d['subType']:_0x5da97d['type'],_0x134b1d=this['editor']['locale'],_0x4d4ecd=_0x12fe67['add'](o(_0x134b1d,'PENDING_ACTION_SUGGESTION')),_0x2bd24c={'id':_0x5636f2,'type':_0x5d55d8,'hasComments':_0x3f314c,'data':_0x1d7d22['data']||null,'originalSuggestionId':_0x1d7d22['originalSuggestionId']||null,'attributes':_0x5da97d['attributes']};this['_adapter']['addSuggestion'](_0x2bd24c)['then'](_0x32372c=>{_0x5da97d['_saved']=!0x0,_0x12fe67['remove'](_0x4d4ecd),_0x32372c&&_0x32372c['createdAt']&&(this['_suggestions']['get'](_0x5636f2)['createdAt']=_0x32372c['createdAt']);})['catch'](_0x9e806b=>{throw _0x1e47c1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5da97d['discard']();}),_0x5da97d['stopListening'](),this['_suggestions']['delete'](_0x5da97d['id']),this['_suggestionState']['delete'](_0x5da97d),_0x9e806b;});}return _0x5da97d;}['_isBlockAttribute'](_0x161d93){return this['_blockAttributeKeys']['has'](_0x161d93);}['_updateSuggestionData'](_0x2b86b6,_0x59a2a9){const _0x2c44c6=this['editor']['plugins']['get']('PendingActions'),_0x146d89=this['getSuggestion'](_0x2b86b6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x146d89['_saved']){const _0x1bccad=_0x2c44c6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2b86b6,_0x59a2a9)['then'](()=>{_0x2c44c6['remove'](_0x1bccad);});}else _0x146d89['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2b86b6,_0x59a2a9);});}}['_getSuggestionData'](_0x25451b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a9654('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25451b);}['_handleNewSuggestionMarker'](_0x4b5190){const {id:_0x2ab630,type:_0x4587ef,subType:_0x1ea687,authorId:_0x4e3eeb}=this['_splitMarkerName'](_0x4b5190),_0x5614b5=this['_suggestions']['get'](_0x2ab630)||this['_createSuggestion'](_0x4587ef,_0x1ea687,_0x2ab630,_0x4e3eeb,{});switch(this['_checkSuggestionCorrectness'](_0x5614b5,_0x4587ef,_0x1ea687,_0x4e3eeb),this['_suggestionState']['get'](_0x5614b5)){case'notReady':this['_getSuggestionData'](_0x2ab630)['then'](_0xdb4887=>{let _0x49e89f=Promise['resolve']();_0xdb4887['hasComments']&&(_0x49e89f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ab630})),_0x49e89f['then'](()=>{this['addSuggestionData'](_0xdb4887)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5614b5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ab630,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5614b5,'ready'),this['fire']('suggestionLoaded',_0x5614b5);break;case'ready':this['fire']('suggestionChanged',_0x5614b5);}return _0x5614b5['addMarkerName'](_0x4b5190),_0x5614b5;}['_refreshSuggestionsChain'](_0x26e2d3){const _0x1d196e=Array['from'](_0x26e2d3),_0x399a55=_0x1d196e['filter'](_0x483946=>'attribute'==_0x483946['type']);this['_refreshAttributeSuggestionsChain'](_0x399a55);const _0xc6903a=_0x1d196e['filter'](_0x5404aa=>!_0x5404aa['isMultiRange']&&'attribute'!=_0x5404aa['type']),_0xfd2623=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2015dd=>!_0x2015dd['isMultiRange']&&'attribute'!=_0x2015dd['type']),_0xe047e6=_0xfd2623['filter'](_0x53c0be=>!_0x26e2d3['has'](_0x53c0be)),_0x16f9a7=new Map(_0xfd2623['map'](_0x6ab35b=>[_0x6ab35b,this['_suggestionFactory']['getSuggestionCallback'](_0x6ab35b['type'],_0x6ab35b['subType'],'chain')])),_0x593873=new Map(_0xfd2623['map'](_0x4be3fa=>[_0x4be3fa,_0x4be3fa['getFirstRange']()])),_0x49716c=new Set(),_0x300ddb=new Set();for(let _0x120fd4=0x0;_0x120fd4<_0xc6903a['length'];_0x120fd4++)_0x4f4eda(_0xc6903a[_0x120fd4],_0xc6903a,_0x120fd4+0x1);for(let _0x1af13c=0x0;_0x1af13c<_0xc6903a['length'];_0x1af13c++)_0x4f4eda(_0xc6903a[_0x1af13c],_0xe047e6,0x0);const _0x47d710=new Set();for(let _0x33f5f2=0x0;_0x33f5f2<_0xc6903a['length'];_0x33f5f2++){const _0x1fa154=_0xc6903a[_0x33f5f2];!_0x300ddb['has'](_0x1fa154)&&_0x1fa154['previous']&&(_0x47d710['add'](_0x1fa154['previous']),_0x1fa154['previous']['next']===_0x1fa154&&(_0x1fa154['previous']['next']=null),_0x1fa154['previous']=null),!_0x49716c['has'](_0x1fa154)&&_0x1fa154['next']&&(_0x47d710['add'](_0x1fa154['next']),_0x1fa154['next']['previous']===_0x1fa154&&(_0x1fa154['next']['previous']=null),_0x1fa154['next']=null);}function _0x4f4eda(_0x3feadc,_0x3f81fe,_0x3f922e){for(let _0x44cfa7=_0x3f922e;_0x44cfa7<_0x3f81fe['length'];_0x44cfa7++){const _0x58af4c=_0x40eaa3(_0x3feadc,_0x3f81fe[_0x44cfa7]);_0x58af4c&&(_0x58af4c[0x0]['next']=_0x58af4c[0x1],_0x58af4c[0x1]['previous']=_0x58af4c[0x0],_0x49716c['add'](_0x58af4c[0x0]),_0x300ddb['add'](_0x58af4c[0x1]));}}function _0x40eaa3(_0xcd6027,_0x5906ca){if(_0xcd6027['author']['id']!==_0x5906ca['author']['id'])return null;const _0x5767fa=_0x16f9a7['get'](_0xcd6027)(_0xcd6027,_0x5906ca,_0x593873['get'](_0xcd6027),_0x593873['get'](_0x5906ca));if(!_0x5767fa)return null;return _0x16f9a7['get'](_0x5906ca)(_0xcd6027,_0x5906ca,_0x593873['get'](_0xcd6027),_0x593873['get'](_0x5906ca))?_0x5767fa[0x1]['commentThread']&&_0x5767fa[0x1]['commentThread']['length']?null:_0x5767fa:null;}_0x47d710['size']&&this['_refreshSuggestionsChain'](_0x47d710);}['_refreshAttributeSuggestionsChain'](_0x1f0532){if(0x0==_0x1f0532['length'])return;const _0x212cee=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38046e=>'attribute'==_0x38046e['type']&&_0x38046e['_isDataLoaded']),_0xf2edce=[],_0x203737=new Map();for(const _0x28469b of _0x212cee){const _0x1bfb2b=_0x465ae5(_0x28469b['attributes']);_0x203737['has'](_0x1bfb2b)||(_0x203737['set'](_0x1bfb2b,_0xf2edce['length']),_0xf2edce['push']([]));const _0x229551=_0x203737['get'](_0x1bfb2b);_0xf2edce[_0x229551]['push'](_0x28469b);}!(function(){_0xf2edce['sort']((_0x2f1826,_0x3a163b)=>{const _0x2c127d=_0x2f1826[0x0]['createdAt'],_0x35222d=_0x3a163b[0x0]['createdAt'];return _0x2c127d==_0x35222d?_0x2f1826[0x0]['attributes']['groupId']<_0x3a163b[0x0]['attributes']['groupId']?-0x1:0x1:_0x2c127d<_0x35222d?-0x1:0x1;});for(const _0x5ca768 of _0xf2edce)_0x5ca768['sort']((_0x357df8,_0x456c21)=>_0x357df8['id']<_0x456c21['id']?-0x1:0x1);}());for(let _0xc66a89=0x0;_0xc66a89<_0xf2edce['length'];_0xc66a89++){if(0x0==_0xf2edce[_0xc66a89]['length'])continue;const _0x2a6d90=[];for(let _0x39f67e=_0xc66a89+0x1;_0x39f67e<_0xf2edce['length'];_0x39f67e++)0x0!=_0xf2edce[_0x39f67e]['length']&&_0x5def78(_0xf2edce[_0xc66a89],_0xf2edce[_0x39f67e])&&_0x2a6d90['push'](_0x39f67e);for(const _0x437ec6 of _0x2a6d90)_0xf2edce[_0xc66a89]=_0xf2edce[_0xc66a89]['concat'](_0xf2edce[_0x437ec6]),_0xf2edce[_0x437ec6]=[];}for(const _0x1550bf of _0xf2edce)for(let _0x1a00ca=0x0;_0x1a00ca<_0x1550bf['length'];_0x1a00ca++)_0x1550bf[_0x1a00ca]['next']=_0x1550bf[_0x1a00ca+0x1]||null;for(const _0x12f0ad of _0xf2edce)for(let _0x264c66=0x0;_0x264c66<_0x12f0ad['length'];_0x264c66++)_0x12f0ad[_0x264c66]['previous']=_0x12f0ad[_0x264c66-0x1]||null;function _0x5def78(_0x5cdd52,_0x36301f){if(_0x5cdd52[0x0]['attributes']['groupId']!==_0x36301f[0x0]['attributes']['groupId']&&_0x5cdd52[0x0]['author']!==_0x36301f[0x0]['author'])return!0x1;if(!function(_0x3e3d03,_0x489e9e){if(!_0x3e3d03['hasComments']&&!_0x489e9e['hasComments'])return!0x0;if(_0x3e3d03['hasComments']&&_0x489e9e['hasComments'])return!0x1;if(_0x3e3d03['hasComments']&&_0x489e9e['createdAt']<_0x3e3d03['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x489e9e['hasComments']&&_0x3e3d03['createdAt']<_0x489e9e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5cdd52[0x0],_0x36301f[0x0]))return!0x1;const _0x49a5cf=Bt(_0x5cdd52[0x0]['attributes'],'groupId'),_0x4530fc=Bt(_0x36301f[0x0]['attributes'],'groupId');if(!_0x2eaac8(_0x49a5cf,_0x4530fc))return!0x1;return!!_0x5cdd52['every'](_0x4f854a=>_0x36301f['some'](_0x5a19a2=>_0x4f854a['getFirstRange']()['isEqual'](_0x5a19a2['getFirstRange']())))&&_0x36301f['every'](_0x183aaa=>_0x5cdd52['some'](_0x7c6cc9=>_0x183aaa['getFirstRange']()['isEqual'](_0x7c6cc9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1ef4cd){const _0x992d24=Array['from'](_0x1ef4cd),_0x188eae=this['getSuggestions']({'skipNotAttached':!0x0}),_0x50fa12=_0x188eae['filter'](_0x25aecf=>!_0x1ef4cd['has'](_0x25aecf)),_0x242cf7=new Map(_0x992d24['map'](_0x505b2b=>[_0x505b2b,this['_suggestionFactory']['getSuggestionCallback'](_0x505b2b['type'],_0x505b2b['subType'],'join')])),_0x3945d0=new Map(_0x188eae['map'](_0x16a3c7=>[_0x16a3c7,_0x16a3c7['getRanges']()]));for(let _0x19abda=0x0;_0x19abda<_0x992d24['length'];_0x19abda++){if(_0x6e34e2(this,_0x992d24[_0x19abda],_0x992d24,_0x19abda+0x1))return!0x0;}for(let _0x58b593=0x0;_0x58b593<_0x992d24['length'];_0x58b593++){if(_0x6e34e2(this,_0x992d24[_0x58b593],_0x50fa12,0x0))return!0x0;}return!0x1;function _0x6e34e2(_0x30489f,_0x17b88e,_0x2d00ff,_0x585a33){for(let _0xb0e5aa=_0x585a33;_0xb0e5aa<_0x2d00ff['length'];_0xb0e5aa++){const _0x28c2cc=_0x2d00ff[_0xb0e5aa];if(_0x28c2cc['type']!==_0x17b88e['type']||_0x28c2cc['author']['id']!==_0x17b88e['author']['id']||_0x28c2cc['subType']!==_0x17b88e['subType'])continue;if(!Pt(_0x17b88e,_0x28c2cc,['groupId']))continue;if('attribute'==_0x17b88e['type']&&_0x17b88e['data']['oldValue']!=_0x28c2cc['data']['oldValue'])continue;if('attribute'==_0x17b88e['type']&&_0x30489f['_isBlockAttribute'](_0x17b88e['data']['key']))continue;if('formatBlock'==_0x17b88e['type']){const _0xdcd162=_0x30489f['editor']['model'],_0x553979=_0x17b88e['getContainedElement']();if(_0x553979&&(_0xdcd162['schema']['isObject'](_0x553979)||_0xdcd162['schema']['isLimit'](_0x553979)))continue;}const _0x10c387=_0x242cf7['get'](_0x17b88e),_0x3429e1=_0x3945d0['get'](_0x17b88e),_0x1ff3cd=_0x3945d0['get'](_0x28c2cc),_0x502f44=_0x17b88e['commentThread']&&_0x17b88e['commentThread']['length'],_0x5e0754=_0x28c2cc['commentThread']&&_0x28c2cc['commentThread']['length'];if(!_0x502f44&&_0x10c387(_0x1ff3cd,_0x3429e1))return _0x30489f['_joinSuggestions'](_0x28c2cc,_0x17b88e),_0x3945d0['delete'](_0x17b88e),!0x0;if(!_0x5e0754&&_0x10c387(_0x3429e1,_0x1ff3cd))return _0x30489f['_joinSuggestions'](_0x17b88e,_0x28c2cc),_0x3945d0['delete'](_0x28c2cc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1a250a,_0x166e88){if(_0x1a250a['isMultiRange']){for(const _0x429efb of _0x166e88['getRanges']())_0x1a250a['addRange'](_0x429efb);}else{const _0x27f6bb=_0x166e88['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1a250a,this['_model']['createRange'](_0x1a250a['getFirstRange']()['start'],_0x27f6bb));}_0x166e88['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4b7b36,_0x59c8e7){const _0x43c48c=_0x4b7b36['startsWith']('format')||_0x4b7b36['startsWith']('attribute')?'FORMATTING':_0x4b7b36['toUpperCase']();return o(this['editor']['locale'],_0x59c8e7+'_'+_0x43c48c+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4cb117=this['editor'];if(!_0x4cb117['ui'])return;const {ariaLiveAnnouncer:_0x4f3566}=_0x4cb117['ui'];_0x59ec08(this['_model'],({left:_0x5a3bb2,entered:_0x2cd02d})=>{for(const _0xa6d9ac of _0x5a3bb2){const {group:_0x2d3e65,type:_0x3dd6d3}=this['_splitMarkerName'](_0xa6d9ac['name']);if('suggestion'===_0x2d3e65){_0x4f3566['announce'](this['_getMarkerAnnouncementText'](_0x3dd6d3,'LEAVE'));break;}}for(const _0x1721a4 of _0x2cd02d){const {group:_0x2bf02d,type:_0x511cf2}=this['_splitMarkerName'](_0x1721a4['name']);if('suggestion'===_0x2bf02d){_0x4f3566['announce'](this['_getMarkerAnnouncementText'](_0x511cf2,'ENTER'));break;}}});}['_processAttributeChanges'](_0x19dee3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x20e51e=this['editor'],_0x197545=_0x20e51e['model']['document']['differ']['getChanges']();if(0x0==_0x197545['length'])return!0x1;const _0x274c0f=[],_0x3e41f2=_0x197545['filter'](_0x364756=>'attribute'==_0x364756['type']),_0x26bd50=_0x197545['filter'](_0x5bc22a=>'insert'==_0x5bc22a['type']&&'$text'!=_0x5bc22a['name']),_0x5b8703=_0x197545['filter'](_0x139723=>'remove'==_0x139723['type']&&'$text'!=_0x139723['name']);for(const _0x2978af of _0x3e41f2)_0x274c0f['push']({'key':_0x2978af['attributeKey'],'newValue':_0x2978af['attributeNewValue'],'oldValue':_0x2978af['attributeOldValue'],'range':Ot(_0x2978af['range'],_0x20e51e['model'])});for(const _0x41107e of _0x26bd50){const _0x3ce139=_0x5b8703['find'](_0x3e06c2=>_0x3e06c2['position']['isEqual'](_0x41107e['position']));_0x3ce139&&_0x274c0f['push']({'key':m,'newValue':_0x41107e['name'],'oldValue':_0x3ce139['name'],'range':_0x20e51e['model']['createRangeOn'](_0x41107e['position']['nodeAfter'])});}return 0x0!=_0x274c0f['length']&&this['_reduceExistingSuggestions'](_0x19dee3,_0x274c0f);}['_processAttributeSuggestions'](_0x1699d1){let _0x2d87e8=!0x1;const _0x39275f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f35f3=>_0x3f35f3['data']['newRange']&&_0x3f35f3['name']['startsWith']('suggestion:attribute:'));for(const _0x3674ef of _0x39275f){const {subType:_0x48a6eb,id:_0x266ba2}=this['_splitMarkerName'](_0x3674ef['name']),_0x36ada2=_0x48a6eb['split']('|')[0x0];for(const _0xe8af1b of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe8af1b['id']!=_0x266ba2&&'attribute'==_0xe8af1b['type']&&_0xe8af1b['data']&&_0xe8af1b['data']['key']==_0x36ada2&&_0xe8af1b['getFirstRange']()['isIntersecting'](_0x3674ef['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe8af1b,_0x3674ef['data']['newRange'],_0x1699d1),_0x2d87e8=!0x0);}return _0x2d87e8;}['_recordAttributeChanges'](_0x4f5fb9){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4f5fb9();}['_isRegisteredAttribute'](_0x45d948){const _0x260264=this['_isBlockAttribute'](_0x45d948),_0x58ef92=this['_inlineAttributeKeys']['has'](_0x45d948);return _0x260264||_0x58ef92;}['_reduceExistingSuggestions'](_0x4de7f1,_0x3de5eb){if(0x0==_0x3de5eb['length'])return!0x1;let _0x1bbf24=!0x1;for(const _0x13796c of _0x3de5eb){const _0x4550fb=this['_findSuggestions'](_0x13796c['range'],'attribute')['filter'](_0x65a4f1=>!_0x65a4f1['meta']['isNextTo'])['map'](_0x41f694=>_0x41f694['suggestion']),_0x31257f=_0x465ae5({'newValue':_0x13796c['newValue']});_0x4550fb['filter'](_0x131165=>{const [_0x17d20e,_0x2cb863]=_0x131165['subType']['split']('|');return _0x17d20e==_0x13796c['key']&&_0x2cb863!=_0x31257f;})['forEach'](_0x332c06=>{this['_reduceSuggestionAttributeRange'](_0x332c06,_0x13796c['range'],_0x4de7f1),_0x1bbf24=!0x0;});}return _0x1bbf24;}['_reduceSuggestionAttributeRange'](_0x332574,_0x2760d0,_0x2a663f){const _0xd0c632=_0x332574['getFirstRange']()['getDifference'](_0x2760d0);0x0!==_0xd0c632['length']?0x1!==_0xd0c632['length']?this['_breakSuggestionMarker'](_0x332574,_0x2760d0['start'],_0x2760d0['end']):this['_setSuggestionRange'](_0x332574,_0xd0c632[0x0]):_0x2a663f['removeMarker'](_0x332574['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x42712d){this['_editor']=_0x42712d,this['_model']=_0x42712d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4cc246,_0x54c4de,_0x56de9d,_0x15a653,_0x47fcda,_0x2247eb){return new u(this['_model'],{'type':_0x4cc246,'subType':_0x54c4de,'id':_0x56de9d,'author':_0x15a653,'creator':_0x15a653,'attributes':_0x47fcda,'onAttributesChange':_0x2247eb,'onAccept':(..._0xb7b425)=>this['getSuggestionCallback'](_0x4cc246,_0x54c4de,'accept')(..._0xb7b425),'onDiscard':(..._0x4d4df6)=>this['getSuggestionCallback'](_0x4cc246,_0x54c4de,'discard')(..._0x4d4df6)});}['registerCustomCallback'](_0x514a62,_0x37e3f6,_0x4d9755,_0x5ec79f){const _0x57fb19=_0x514a62+':'+_0x37e3f6+':'+_0x4d9755;this['_customCallbacks']['set'](_0x57fb19,_0x5ec79f);}['getSuggestionCallback'](_0x55ffea,_0x463c93,_0x2d0280){const _0x3937fb=_0x55ffea+':'+_0x463c93+':'+_0x2d0280;return this['_customCallbacks']['get'](_0x3937fb)||this['_defaultCallbacks']['get'](_0x55ffea+':'+_0x2d0280);}['_registerDefaultCallbacks'](){const _0x5828c5=()=>!0x1,_0xe4a3ca=_0x24dae9=>{_0x24dae9['sort']((_0x3b7045,_0x4d3f43)=>_0x3b7045['start']['isBefore'](_0x4d3f43['start'])?0x1:-0x1),this['_model']['change'](_0x47f32a=>{for(const _0x4f06dc of _0x24dae9){let _0x147f29;_0x147f29=_0x4f06dc['end']['isAtEnd']&&_0x4f06dc['end']['parent']==_0x4f06dc['start']['nodeAfter']?_0x47f32a['createSelection'](_0x4f06dc['start']['nodeAfter'],'on'):_0x47f32a['createSelection'](_0x4f06dc),this['_model']['deleteContent'](_0x147f29,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3e5a6c=(_0x1bbdd2,_0x2e45bd)=>{_0x2e45bd&&this['_model']['change'](_0x5691e4=>{const {commandName:_0x159445,commandParams:_0xb29a3e=[]}=_0x2e45bd,_0x1a76ff=_0x1bbdd2['map'](_0x539df6=>(Tt(_0x539df6)&&(_0x539df6=this['_model']['createRange'](_0x539df6['end'])),_0x539df6))['filter'](_0x35938d=>'$graveyard'!==_0x35938d['root']['rootName']);if(_0x1a76ff['length']<0x1)return;const _0x2abf1d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1611d7=>_0x5733e9['fromRange'](_0x1611d7));_0x5691e4['setSelection'](_0x1a76ff);for(const _0x128b0b of this['_editor']['commands']['commands']())_0x128b0b['refresh']();_0xb29a3e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x159445,..._0xb29a3e);const _0x31c887=_0x2abf1d['filter'](_0x48ab29=>'$graveyard'!=_0x48ab29['root']['rootName']);_0x31c887['length']>0x0&&_0x5691e4['setSelection'](_0x31c887);for(const _0x341e92 of _0x2abf1d)_0x341e92['detach']();});},_0x172c5d=(_0x294ca6,_0x24af1a)=>0x1==_0x294ca6['length']&&0x1==_0x24af1a['length']&&_0x294ca6[0x0]['end']['isEqual'](_0x24af1a[0x0]['start']),_0x499665=(_0x27b3cb,_0xbbecc8,_0x313c5e,_0xb51424)=>Ft(_0x27b3cb,_0xbbecc8,_0x313c5e,_0xb51424,this['_model'])?[_0x27b3cb,_0xbbecc8]:Ft(_0xbbecc8,_0x27b3cb,_0xb51424,_0x313c5e,this['_model'])?[_0xbbecc8,_0x27b3cb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5828c5),this['_defaultCallbacks']['set']('insertion:discard',_0xe4a3ca),this['_defaultCallbacks']['set']('insertion:join',_0x172c5d),this['_defaultCallbacks']['set']('insertion:chain',_0x499665),this['_defaultCallbacks']['set']('deletion:accept',_0xe4a3ca),this['_defaultCallbacks']['set']('deletion:discard',_0x5828c5),this['_defaultCallbacks']['set']('deletion:join',_0x172c5d),this['_defaultCallbacks']['set']('deletion:chain',_0x499665),this['_defaultCallbacks']['set']('formatInline:accept',_0x3e5a6c),this['_defaultCallbacks']['set']('formatInline:discard',_0x5828c5),this['_defaultCallbacks']['set']('formatInline:join',_0x172c5d),this['_defaultCallbacks']['set']('formatInline:chain',_0x5828c5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3e5a6c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5828c5),this['_defaultCallbacks']['set']('formatBlock:join',_0x172c5d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5828c5),this['_defaultCallbacks']['set']('attribute:accept',_0x5828c5),this['_defaultCallbacks']['set']('attribute:discard',(_0x50d4eb,_0x4a1b56)=>{if(!_0x4a1b56)return;const _0x350675=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x9d2a30=>{if(_0x4a1b56['key']==m)for(const _0x1d5d25 of _0x50d4eb){const _0x31ec00=_0x1d5d25['start']['nodeAfter'],_0x212114=_0x4a1b56['oldValue'];_0x9d2a30['rename'](_0x31ec00,_0x212114);}else{if(_0x350675['_isBlockAttribute'](_0x4a1b56['key'])){for(const _0x5c2d76 of _0x50d4eb)void 0x0!==_0x4a1b56['oldValue']?_0x9d2a30['setAttribute'](_0x4a1b56['key'],_0x4a1b56['oldValue'],_0x5c2d76['start']['nodeAfter']):_0x9d2a30['removeAttribute'](_0x4a1b56['key'],_0x5c2d76['start']['nodeAfter']);}else{for(const _0x20261e of _0x50d4eb)_0x4a1b56['oldValue']?_0x9d2a30['setAttribute'](_0x4a1b56['key'],_0x4a1b56['oldValue'],_0x20261e):_0x9d2a30['removeAttribute'](_0x4a1b56['key'],_0x20261e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x172c5d);}}function Rt(_0x39c47c,_0x4429fd,_0x37598e){for(const _0x211275 of _0x4429fd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x211275['root']==_0x211275)return!0x1;if(!_0x37598e['containsItem'](_0x211275))return!0x1;if(_0x39c47c['isObject'](_0x211275)||_0x39c47c['isLimit'](_0x211275))return!0x0;}return!0x1;}function Tt(_0x4f1d84){return _0x4f1d84['end']['parent']==_0x4f1d84['start']['nodeAfter']&&_0x4f1d84['end']['isAtStart'];}function Et(_0x4d7842,_0x4584a5,_0x3a1ce5,_0x2be48f){const _0x27fcc3=_0x5f1083=>!_0x5f1083['item']['is']('$textProxy')&&!_0x2be48f['isObject'](_0x5f1083['item']),_0x5eb357=_0x4d7842['start']['getLastMatchingPosition'](_0x27fcc3),_0xc7497=_0x4d7842['end']['getLastMatchingPosition'](_0x27fcc3,{'direction':'backward'});return(!_0x4d7842['start']['isEqual'](_0x5eb357)||!_0x4d7842['end']['isEqual'](_0xc7497))&&(_0x5eb357['isBefore'](_0xc7497)?_0x3a1ce5['updateMarker'](_0x4584a5,{'range':_0x3a1ce5['createRange'](_0x5eb357,_0xc7497)}):_0x3a1ce5['removeMarker'](_0x4584a5),!0x0);}function Vt(_0x4e3483){return _0x465ae5(_0x4e3483);}function Ut(_0x3be4df){const _0x5107b8=_0x3be4df['start']['nodeAfter'];return _0x5107b8&&_0x5107b8['is']('element');}function Ot(_0x588cc8,_0x36add9){return null==_0x588cc8['end']['nodeBefore']&&_0x588cc8['end']['parent']==_0x588cc8['start']['nodeAfter']?Gt(_0x588cc8['start']['nodeAfter'],_0x36add9):_0x588cc8;}function Gt(_0xaf60de,_0x14c57e){const _0x5804ea=_0x14c57e['schema']['isObject'](_0xaf60de)||_0x14c57e['schema']['isSelectable'](_0xaf60de);return _0x14c57e['createRange'](_0x14c57e['createPositionAt'](_0xaf60de,'before'),_0x5804ea?_0x14c57e['createPositionAfter'](_0xaf60de):_0x14c57e['createPositionAt'](_0xaf60de,'end'));}function Ft(_0x578dbd,_0x36c054,_0x42a199,_0x323b61,_0x300063){if(!Pt(_0x578dbd,_0x36c054))return!0x1;if(_0x42a199['end']['isEqual'](_0x323b61['start']))return!0x0;if(_0x578dbd['type']!=_0x36c054['type'])return!0x1;if(!_0x42a199['end']['isTouching'](_0x323b61['start']))return!0x1;const _0x40dff2=_0x300063['createRange'](_0x42a199['end'],_0x323b61['start'])['getWalker']();for(const _0xfe3396 of _0x40dff2)if(['elementStart','elementEnd']['includes'](_0xfe3396['type'])&&_0x300063['schema']['isLimit'](_0xfe3396['item']))return!0x1;return!0x0;}function Pt(_0x4d9bcb,_0x47c5f7,_0x177be6=[]){return!(!_0x4d9bcb['_isDataLoaded']||!_0x47c5f7['_isDataLoaded'])&&_0x2eaac8(Bt(_0x4d9bcb['attributes'],_0x177be6),Bt(_0x47c5f7['attributes'],_0x177be6));}function Lt(_0x3ed65d,_0x2c4776){const _0x2337bf=Ht(_0x3ed65d['attributes']),_0x323de0=Ht(_0x2c4776);if(!_0x3ed65d['_isDataLoaded'])return!0x1;for(const _0x2ccace of Object['keys'](_0x323de0))if(!_0x2eaac8(_0x2337bf[_0x2ccace],_0x323de0[_0x2ccace]))return!0x1;return!0x0;}function Ht(_0x213cbe){const _0x261367=Object['assign']({},_0x213cbe);return delete _0x261367['skipNestingCheck'],delete _0x261367['tablePasteChainId'],_0x261367;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0xfd7f9a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x25f62b,_0x585608,_0x174ef1,_0x49c00d){super(),this['model']=_0x585608,this['view']=_0x174ef1,this['commentThreadController']=_0x49c00d,this['_editor']=_0x25f62b,this['_acceptCommand']=_0x25f62b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x25f62b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x51a9ac,_0x124288)=>_0x51a9ac||_0x124288),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x30a78e=>_0x30a78e&&this['_editor']['model']['canEditAt'](_0x585608['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x7e386=>_0x7e386&&this['_editor']['model']['canEditAt'](_0x585608['getRanges']())),this['_pendingAction']=null,_0x174ef1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x174ef1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x174ef1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x174ef1,'change:isDirty',()=>{_0x174ef1['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 _0x4dcc90=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4dcc90);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x47a888{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x1b59f2,_0x426a8b,_0x256fcb,_0x1ff4f8){super(_0x1b59f2),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x426a8b['authoredAt']),this['bind']('authoredAt')['to'](_0x426a8b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x426a8b,this['_localUser']=_0x256fcb,this['_config']=_0x1ff4f8,_0x1ff4f8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x14f9f3}=this['_config'];this['commentsListView']=new _0x14f9f3(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',_0xa4cb63=>_0xa4cb63+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x53e304,_0x501231)=>_0x53e304||!!_0x501231);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x299788}=this['_config'],_0x3da75e=new _0x299788(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35f8a4=_0x3da75e['commentInputView'];return _0x3da75e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35f8a4,'value',(_0x544e08,_0x2a81fb,_0x50ae65)=>!!_0x50ae65||_0x544e08&&!_0x2a81fb),_0x35f8a4['on']('submit',(_0x55bfff,_0x9c7a35)=>{this['fire']('addComment',_0x9c7a35),_0x35f8a4['editor']['setData']('');}),_0x35f8a4['on']('cancel',()=>this['focus']()),_0x35f8a4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3da75e;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x147342,_0x1989cd,_0x22f043,_0x917f12){super(_0x147342,_0x1989cd,_0x22f043,_0x917f12),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5596f0=>_0x5596f0&&_0x5596f0[0x0]?_0x5596f0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3249ff,_0x106cd1)=>{let _0x4628fc='';for(const _0x1ae82b of _0x3249ff)_0x4628fc+='<p>'+ds(_0x1ae82b['content'],_0x1ae82b['color'])+'</p>';return _0x106cd1?_0x4628fc:_0x35d3a3(_0x4628fc,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x147342,'Accept\x20suggestion'),_0x163e57['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x147342,'Discard\x20suggestion'),_0x163e57['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xbe3cd9(_0x147342,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x56278c=this['bindTemplate'],_0x2861f7=[{'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':_0x56278c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x56278c['to']('authoredAt',_0xa59b5c=>this['_config']['formatDateTime'](_0xa59b5c))}]}]},{'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']&&_0x2861f7['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x42c00f={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x56278c['if']('isActive','ck-suggestion-wrapper--active'),_0x56278c['to']('type',_0xdfa84c=>'ck-suggestion-'+_0xdfa84c),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x2861f7}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x42c00f['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)),_0x42c00f;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x204945,_0xf1004,_0x1267c1)=>{this['_descriptionElement']['innerHTML']=_0x1267c1;});}['_createButton'](_0x3f7a7a,_0x2769d4,_0x59a0c6,_0x13f169,_0x18c9d7){const _0x3a92d7=new _0x2e9c33(this['locale']);return _0x3a92d7['set']({'label':_0x3f7a7a,'icon':_0x2769d4,'tooltip':!0x0,'tooltipPosition':_0x18c9d7}),_0x3a92d7['extendTemplate']({'attributes':{'class':_0x59a0c6}}),_0x3a92d7['on']('execute',()=>{this['fire'](_0x13f169,this['_model']['id']);}),_0x3a92d7;}['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;}}function ds(_0x24927f,_0x24a747){let _0x5aa5ef='';return _0x5aa5ef+=_0x24927f['split']('*')['map']((_0x32a488,_0x3cc661)=>_0x3cc661%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x32a488)+'</span>':us(_0x32a488))['join'](''),_0x24a747&&(_0x5aa5ef+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x24a747['value']+'\x22\x20title=\x22'+_0x24a747['title']+'\x22></span>'),_0x5aa5ef;}function us(_0x459938){const _0x1a2346=document['createElement']('span');return _0x1a2346['innerText']=_0x459938,_0x1a2346['innerHTML'];}var ie='<!--\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 _0x58f0a6{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x7b8d04,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4658a5){super(_0x4658a5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4e3cec=this['editor']['config'];_0x4e3cec['define']('trackChanges.SuggestionThreadView',ne),_0x4e3cec['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4e3cec['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x19bc3c,_0x42e484){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4f3164,_0x3f18d9]of this['_handleControllerBuffer']){const _0x594e20=this['_suggestionToController']['has'](_0x4f3164);_0x594e20||_0x3f18d9?_0x594e20&&_0x3f18d9&&this['_destroyController'](_0x4f3164):this['_initializeController'](_0x4f3164);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x19bc3c,_0x42e484);}['init'](){const _0x488b18=this['editor'],_0x211c60=_0x488b18['plugins']['get']('TrackChangesEditing'),_0x24c055=_0x488b18['plugins']['get']('Annotations'),_0x13c4b9=_0x488b18['plugins']['get']('EditorAnnotations'),_0x173a73=_0x488b18['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x13c4b9['addSourceCollector'](()=>{const _0x1723ed=[];for(const [_0x571d4e,_0x5b7a29]of Array['from'](this['_suggestionToController'])){const _0x38c780=_0x571d4e['getAllAdjacentSuggestions'](),_0xfb02e0=[];for(const _0x117f73 of _0x38c780){if(!_0x117f73['isInContent'])continue;if(_0x117f73['isMultiRange']){_0xfb02e0['push'](..._0x117f73['getRanges']());continue;}const _0x39b288=_0x117f73['getFirstRange']();if(_0xfb02e0['length']>0x0){const _0x4161cf=_0xfb02e0[0x0]['getJoined'](_0x39b288);if(_0x4161cf){_0xfb02e0[0x0]=_0x4161cf;continue;}}_0xfb02e0['push'](_0x39b288);}_0x1723ed['push']([_0x5b7a29['view'],_0xfb02e0]);}return _0x1723ed;}),this['listenTo'](_0x211c60,'suggestionLoaded',(_0x5880da,_0x5b5dee)=>{this['listenTo'](_0x5b5dee,'change:previous',(_0x40f7f3,_0x449cfa,_0x32ab5a,_0xfdf653)=>{_0x5b5dee['isInContent']&&(null==_0x32ab5a?(this['_updateController'](_0xfdf653['head']),this['_handleSuggestionControllerDelayed'](_0x5b5dee,!0x1)):(this['_updateController'](_0x32ab5a['head']),null==_0xfdf653&&this['_handleSuggestionControllerDelayed'](_0x5b5dee,!0x0)));}),null!==_0x5b5dee['previous']?this['_updateController'](_0x5b5dee['head']):this['_handleSuggestionControllerDelayed'](_0x5b5dee,!0x1);}),this['listenTo'](_0x211c60,'suggestionUnloaded',(_0x1e56cd,_0x53170e,_0x431ca7)=>{this['stopListening'](_0x53170e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x53170e),this['_suggestionToController']['has'](_0x53170e)&&this['_destroyController'](_0x53170e),_0x431ca7&&this['_updateController'](_0x431ca7['head']);}),this['listenTo'](_0x211c60,'suggestionChanged',(_0x5f3f0d,_0x48132f)=>{this['_updateController'](_0x48132f);}),this['listenTo'](_0x24c055,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x173a73,'addComment',(_0x18d983,{threadId:_0x48ebe1,isFromAdapter:_0x45ffa9})=>{if(_0x45ffa9||!_0x211c60['hasSuggestion'](_0x48ebe1))return;const _0x3e6dcc=_0x211c60['getSuggestion'](_0x48ebe1);this['_suggestionToController']['get'](_0x3e6dcc)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3fc4be=this['editor']['plugins']['get']('Annotations'),_0x3835f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd72eb5=Array['from'](_0x3fc4be['activeAnnotations'],_0x2e04fd=>_0x2e04fd['innerView'])['filter'](_0x38433a=>this['_viewToController']['has'](_0x38433a)),_0x5c7c88=[];for(const _0x189115 of _0xd72eb5){const _0x367845=this['_viewToController']['get'](_0x189115)['model']['getAllAdjacentSuggestions']();_0x5c7c88['push'](..._0x367845['reduce']((_0x536899,_0x580e0c)=>[..._0x536899,..._0x580e0c['getMarkerNames']()],[]));}_0x3835f3['activeMarkers']=_0x5c7c88;}['_addUIComponentsToFactory'](){const _0x3383d5=this['editor'],_0x143c6a=_0x3383d5['locale'],_0x13a2b0=o(_0x143c6a,'Track\x20changes'),_0xc7e874=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x13a2b0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x143c6a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x143c6a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x143c6a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x143c6a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3644c3 of _0xc7e874)if(ae(_0x3644c3)){const _0x3cc29d=_0x3383d5['commands']['get'](_0x3644c3['model']['commandName']);_0x3644c3['model']['bind']('isOn','isEnabled')['to'](_0x3cc29d,'value','isEnabled');}_0x3383d5['ui']['componentFactory']['add']('trackChanges',_0x33821f=>this['_createToolbarButton'](_0x33821f,_0xc7e874,_0x13a2b0)),_0x3383d5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x177b03=>this['_createMenuBarMenu'](_0x177b03,_0xc7e874,_0x13a2b0));}['_createToolbarButton'](_0x1e3bb,_0x5dbf31,_0xb0f7b0){const _0x3f89c0=zt(_0x1e3bb,Zt),_0x4ebe83=this['editor']['commands']['get']('trackChanges');_0x3f89c0['buttonView']['set']({'tooltip':_0xb0f7b0,'label':_0xb0f7b0,'icon':ie}),_0x3f89c0['buttonView']['bind']('isOn')['to'](_0x4ebe83,'value'),_0x3f89c0['buttonView']['on']('execute',()=>{_0x4ebe83['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x3f89c0,_0x5dbf31,{'role':'menu'});const _0x28e22b=[];for(const _0x2d4d32 of _0x5dbf31)ae(_0x2d4d32)&&_0x28e22b['push'](this['editor']['commands']['get'](_0x2d4d32['model']['commandName']));const _0x2a8f53=_0x3f89c0['buttonView'];return _0x2a8f53['actionView']['unbind']('isEnabled'),_0x2a8f53['arrowView']['unbind']('isEnabled'),_0x2a8f53['actionView']['bind']('isEnabled')['to'](_0x4ebe83,'isEnabled'),_0x2a8f53['arrowView']['bind']('isEnabled')['toMany'](_0x28e22b,'isEnabled',(..._0x422616)=>_0x422616['some'](_0x25d892=>_0x25d892)),_0x3f89c0['on']('execute',_0x36df5e=>{this['editor']['execute'](_0x36df5e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f89c0;}['_createMenuBarMenu'](_0x3714f1,_0x3a462e,_0x2ce0ff){const _0x2375d3=new Kt(_0x3714f1),_0x312d78=this['editor']['commands']['get']('trackChanges');_0x2375d3['buttonView']['set']({'label':_0x2ce0ff,'icon':ie});const _0x238308=new Qt(_0x3714f1);for(const _0x1250f3 of _0x3a462e){if('separator'==_0x1250f3['type']){_0x238308['items']['add'](new Jt(_0x3714f1));continue;}const _0x200955=new Xt(_0x3714f1,_0x2375d3),_0x4197e0=new Yt(_0x3714f1),_0x44c895=_0x1250f3['model'];_0x4197e0['bind'](...Object['keys'](_0x44c895))['to'](_0x44c895),_0x4197e0['delegate']('execute')['to'](_0x2375d3),_0x4197e0['on']('execute',()=>{this['editor']['execute'](_0x44c895['commandName']),this['editor']['editing']['view']['focus']();}),_0x200955['children']['add'](_0x4197e0),_0x238308['items']['add'](_0x200955);}return _0x2375d3['bind']('isEnabled')['to'](_0x312d78,'isEnabled'),_0x2375d3['panelView']['children']['add'](_0x238308),_0x2375d3;}['_initializeController'](_0x1f9b13){const _0x3924ef=this['editor'],_0x2a1b0e=_0x3924ef['config'],_0x2b8548=_0x3924ef['plugins']['get']('Annotations'),_0x4efe2e=_0x3924ef['plugins']['get']('CommentsRepository'),_0xf049cc=_0x3924ef['plugins']['get']('EditorAnnotations'),_0x4899e9=_0x3924ef['plugins']['get'](_0x7b8d04)['me'],_0x1a46f6=_0x2a1b0e['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xc71007,CommentThreadInputView:_0x3cdea3}=_0x3924ef['plugins']['get']('CommentsUI');let _0x1fbe3b,_0x18ea73;this['_annotationViews']['has'](_0x1f9b13['id'])?(_0x18ea73=this['_annotationViews']['get'](_0x1f9b13['id']),_0x1fbe3b=_0x18ea73['mainView']):(_0x1fbe3b=new _0x1a46f6(_0x3924ef['locale'],_0x1f9b13,_0x4899e9,{'disableComments':this['_disableComments'],'editorConfig':_0x2a1b0e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2a1b0e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2a1b0e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2a1b0e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x14636d(_0x2a1b0e['get']('locale')),'CommentView':_0x2a1b0e['get']('comments')['CommentView'],'CommentsListView':_0xc71007,'CommentThreadInputView':_0x3cdea3}),_0x1fbe3b['acceptButton']['on']('execute',()=>{_0x3924ef['editing']['view']['focus']();}),_0x1fbe3b['discardButton']['on']('execute',()=>{_0x3924ef['editing']['view']['focus']();}),_0x18ea73=_0x2b8548['createAnnotationView'](this['editor']['locale'],_0x1fbe3b),_0x18ea73['bind']('isDirty')['to'](_0x1fbe3b,'isDirty'),_0x18ea73['bind']('length')['to'](_0x1fbe3b),_0x18ea73['bind']('type')['to'](_0x1fbe3b,'type',_0x36985b=>'suggestion-'+_0x36985b),this['_annotationViews']['set'](_0x1f9b13['id'],_0x18ea73));const _0x81d652=_0x4efe2e['createCommentThreadController'](_0x1f9b13['commentThread'],_0x1fbe3b),_0x4e02bd=new oe(_0x3924ef,_0x1f9b13,_0x1fbe3b,_0x81d652),_0x1187ac=_0x1f9b13['getAllAdjacentSuggestions']()['filter'](_0x2fc580=>_0x2fc580['isInContent']);_0x1fbe3b['descriptionParts']=_0x3924ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1187ac),this['_suggestionToController']['set'](_0x1f9b13,_0x4e02bd),this['_viewToController']['set'](_0x1fbe3b,_0x4e02bd);const _0x10fbf5=_0x2b8548['createAnnotation']({'view':_0x18ea73,'target':()=>{const _0x3591c=[],_0x1b34f3=_0x1f9b13['getAllAdjacentSuggestions']()['filter'](_0x2ee034=>_0x2ee034['isInContent']);for(const _0x326aeb of _0x1b34f3)_0x3591c['push'](..._0x326aeb['getMarkers']());return _0x4dd359(_0x3924ef['editing'],_0x3591c);},'type':()=>'suggestion-'+_0x4e02bd['view']['type']});_0x4efe2e['_bindAnnotationToEditors'](_0x1fbe3b,_0x10fbf5),_0x2b8548['add'](_0x10fbf5),_0xf049cc['registerAnnotation'](_0x10fbf5);}['_destroyController'](_0x1c2898){const _0xc23e4a=this['editor']['plugins']['get']('CommentsRepository'),_0xe4047c=this['editor']['plugins']['get']('Annotations'),_0x51ec15=this['_suggestionToController']['get'](_0x1c2898),_0x524ccf=_0x51ec15['view'],_0x305422=_0xe4047c['getByInnerView'](_0x524ccf);_0xc23e4a['_unbindEditors'](_0x524ccf),_0x305422&&_0xe4047c['remove'](_0x305422),this['_suggestionToController']['delete'](_0x1c2898),this['_viewToController']['delete'](_0x524ccf),_0x51ec15['destroy']();}['_updateController'](_0x3f3761){if(!_0x3f3761['isInContent']||!this['_suggestionToController']['has'](_0x3f3761))return;const _0x1b0949=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16aa04=this['_suggestionToController']['get'](_0x3f3761),_0x19c1ff=_0x3f3761['getAllAdjacentSuggestions']();_0x16aa04['view']['descriptionParts']=_0x1b0949['descriptionFactory']['getDescriptions'](_0x19c1ff);}['destroy'](){for(const _0x474937 of this['_suggestionToController']['keys']())this['_destroyController'](_0x474937);for(const _0x1e634d of this['_annotationViews']['values']())_0x1e634d['mainView']['destroy']();super['destroy']();}}function ae(_0x4bdfeb){return'model'in _0x4bdfeb;}class k extends _0x58f0a6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x49b276){this['editor']['plugins']['get'](p)['adapter']=_0x49b276;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x46c531){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x46c531);}['getSuggestions']({skipNotAttached:_0x82f7e=!0x1,toJSON:_0x22d063=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x82f7e,'toJSON':_0x22d063});}['getSuggestion'](_0x5a0349){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5a0349);}}const T=['Pagination'];class P extends _0x58f0a6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xe65e8c=this['editor'];if(_0xe65e8c['config']['define']('trackChangesData.editorCreator',_0x3c661d=>{const _0x54144c=_0xe65e8c['model']['document']['getRootNames']()['reduce']((_0x1fede7,_0x379ba5)=>(_0x1fede7[_0x379ba5]='',_0x1fede7),{});return _0xe65e8c['constructor']['create'](_0x54144c,_0x3c661d);}),'function'!=typeof _0xe65e8c['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a9654('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x577160){return N(this['editor'],!0x0,_0x577160);}['getDataWithDiscardedSuggestions'](_0x599be4){return N(this['editor'],!0x1,_0x599be4);}}class D extends _0x58f0a6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x24f091){super(_0x24f091),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(_0x4b542a){return void 0x0!==_0x4b542a['getRootsAttributes'];}async function N(_0x1ccfb1,_0x187657,_0x51c120){const _0x279538=_0xb69918(_0x1ccfb1,T);_0x279538['plugins']['push'](p,D),_0x279538['rootsAttributes']=v(_0x1ccfb1)?_0x1ccfb1['getRootsAttributes']():void 0x0;const _0x32c86f=document['createDocumentFragment'](),_0x4413a3=_0x1ccfb1['config']['get']('trackChangesData')['editorCreator'],_0x5b69c6=await _0x4413a3(_0x279538,()=>function(_0x4a851b){const _0x34304e=document['createElement']('div');return _0x4a851b['appendChild'](_0x34304e),_0x34304e;}(_0x32c86f));!function(_0x3dc318,_0x3f4614){const _0x348fa8=_0x3dc318['model']['document']['getRootNames']()['reduce']((_0x504c10,_0x50402b)=>(_0x504c10[_0x50402b]=_0x3dc318['data']['get']({'rootName':_0x50402b}),_0x504c10),{}),_0x11c574=_0x3dc318['plugins']['get']('Users')['users']['map'](_0x32a685=>({'id':_0x32a685['id'],'name':_0x32a685['name']})),_0x30cc14=_0x3dc318['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c2146=_0x3dc318['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2da67c=_0x3f4614['plugins']['get']('Users'),_0x2d2fa7=_0x3f4614['plugins']['get']('TrackChangesEditing'),_0x382b3c=_0x3f4614['plugins']['get']('CommentsRepository');for(const _0x3429da of _0x11c574)_0x2da67c['getUser'](_0x3429da['id'])||_0x2da67c['addUser'](_0x3429da);_0x2da67c['me']||_0x2da67c['useAnonymousUser']();for(const _0x1d2a4b of _0x3c2146)_0x382b3c['addCommentThread'](_0x1d2a4b);for(const _0x53fc63 of _0x30cc14)_0x2d2fa7['addSuggestionData'](_0x53fc63);_0x3f4614['data']['set'](_0x348fa8);}(_0x1ccfb1,_0x5b69c6),_0x5b69c6['execute'](_0x187657?'acceptAllSuggestions':'discardAllSuggestions');const _0x438bf6=v(_0x5b69c6)?_0x5b69c6['getFullData'](_0x51c120):_0x5b69c6['data']['get'](_0x51c120);return await _0x5b69c6['destroy'](),_0x438bf6;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};