@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240522.0 → 0.0.0-nightly-20240523.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 (166) hide show
  1. package/README.md +6 -0
  2. package/build/track-changes.js +1 -1
  3. package/dist/index.js +3 -3
  4. package/dist/translations/ar.js +1 -1
  5. package/dist/translations/ar.umd.js +1 -1
  6. package/dist/translations/az.js +1 -1
  7. package/dist/translations/az.umd.js +1 -1
  8. package/dist/translations/bg.js +1 -1
  9. package/dist/translations/bg.umd.js +1 -1
  10. package/dist/translations/bn.js +1 -1
  11. package/dist/translations/bn.umd.js +1 -1
  12. package/dist/translations/ca.js +1 -1
  13. package/dist/translations/ca.umd.js +1 -1
  14. package/dist/translations/cs.js +1 -1
  15. package/dist/translations/cs.umd.js +1 -1
  16. package/dist/translations/da.js +1 -1
  17. package/dist/translations/da.umd.js +1 -1
  18. package/dist/translations/de.js +1 -1
  19. package/dist/translations/de.umd.js +1 -1
  20. package/dist/translations/el.js +1 -1
  21. package/dist/translations/el.umd.js +1 -1
  22. package/dist/translations/en-au.js +1 -1
  23. package/dist/translations/en-au.umd.js +1 -1
  24. package/dist/translations/en.umd.js +1 -1
  25. package/dist/translations/es.js +1 -1
  26. package/dist/translations/es.umd.js +1 -1
  27. package/dist/translations/et.js +1 -1
  28. package/dist/translations/et.umd.js +1 -1
  29. package/dist/translations/fi.js +1 -1
  30. package/dist/translations/fi.umd.js +1 -1
  31. package/dist/translations/fr.js +1 -1
  32. package/dist/translations/fr.umd.js +1 -1
  33. package/dist/translations/gl.js +1 -1
  34. package/dist/translations/gl.umd.js +1 -1
  35. package/dist/translations/he.js +1 -1
  36. package/dist/translations/he.umd.js +1 -1
  37. package/dist/translations/hi.js +1 -1
  38. package/dist/translations/hi.umd.js +1 -1
  39. package/dist/translations/hr.js +1 -1
  40. package/dist/translations/hr.umd.js +1 -1
  41. package/dist/translations/hu.js +1 -1
  42. package/dist/translations/hu.umd.js +1 -1
  43. package/dist/translations/id.js +1 -1
  44. package/dist/translations/id.umd.js +1 -1
  45. package/dist/translations/it.js +1 -1
  46. package/dist/translations/it.umd.js +1 -1
  47. package/dist/translations/ja.js +1 -1
  48. package/dist/translations/ja.umd.js +1 -1
  49. package/dist/translations/ko.js +1 -1
  50. package/dist/translations/ko.umd.js +1 -1
  51. package/dist/translations/lt.js +1 -1
  52. package/dist/translations/lt.umd.js +1 -1
  53. package/dist/translations/lv.js +1 -1
  54. package/dist/translations/lv.umd.js +1 -1
  55. package/dist/translations/ms.js +1 -1
  56. package/dist/translations/ms.umd.js +1 -1
  57. package/dist/translations/nl.js +1 -1
  58. package/dist/translations/nl.umd.js +1 -1
  59. package/dist/translations/no.js +1 -1
  60. package/dist/translations/no.umd.js +1 -1
  61. package/dist/translations/pl.js +1 -1
  62. package/dist/translations/pl.umd.js +1 -1
  63. package/dist/translations/pt-br.js +1 -1
  64. package/dist/translations/pt-br.umd.js +1 -1
  65. package/dist/translations/pt.js +1 -1
  66. package/dist/translations/pt.umd.js +1 -1
  67. package/dist/translations/ro.js +1 -1
  68. package/dist/translations/ro.umd.js +1 -1
  69. package/dist/translations/ru.js +1 -1
  70. package/dist/translations/ru.umd.js +1 -1
  71. package/dist/translations/sk.js +1 -1
  72. package/dist/translations/sk.umd.js +1 -1
  73. package/dist/translations/sq.js +1 -1
  74. package/dist/translations/sq.umd.js +1 -1
  75. package/dist/translations/sr-latn.js +1 -1
  76. package/dist/translations/sr-latn.umd.js +1 -1
  77. package/dist/translations/sr.js +1 -1
  78. package/dist/translations/sr.umd.js +1 -1
  79. package/dist/translations/sv.js +1 -1
  80. package/dist/translations/sv.umd.js +1 -1
  81. package/dist/translations/th.js +1 -1
  82. package/dist/translations/th.umd.js +1 -1
  83. package/dist/translations/tk.js +1 -1
  84. package/dist/translations/tk.umd.js +1 -1
  85. package/dist/translations/tr.js +1 -1
  86. package/dist/translations/tr.umd.js +1 -1
  87. package/dist/translations/tt.js +1 -1
  88. package/dist/translations/tt.umd.js +1 -1
  89. package/dist/translations/uk.js +1 -1
  90. package/dist/translations/uk.umd.js +1 -1
  91. package/dist/translations/ur.js +1 -1
  92. package/dist/translations/ur.umd.js +1 -1
  93. package/dist/translations/vi.js +1 -1
  94. package/dist/translations/vi.umd.js +1 -1
  95. package/dist/translations/zh-cn.js +1 -1
  96. package/dist/translations/zh-cn.umd.js +1 -1
  97. package/dist/translations/zh.js +1 -1
  98. package/dist/translations/zh.umd.js +1 -1
  99. package/package.json +3 -3
  100. package/src/commands/acceptsuggestioncommand.js +1 -1
  101. package/src/commands/discardsuggestioncommand.js +1 -1
  102. package/src/commands/executeonallsuggestionscommand.js +1 -1
  103. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  104. package/src/commands/trackchangescommand.js +1 -1
  105. package/src/index.js +1 -1
  106. package/src/integrations/aiassistant.js +1 -1
  107. package/src/integrations/alignment.js +1 -1
  108. package/src/integrations/basicstyles.js +1 -1
  109. package/src/integrations/blockquote.js +1 -1
  110. package/src/integrations/casechange.js +1 -1
  111. package/src/integrations/ckbox.js +1 -1
  112. package/src/integrations/codeblock.js +1 -1
  113. package/src/integrations/comments.js +1 -1
  114. package/src/integrations/deletecommand.js +1 -1
  115. package/src/integrations/entercommand.js +1 -1
  116. package/src/integrations/findandreplace.js +1 -1
  117. package/src/integrations/font.js +1 -1
  118. package/src/integrations/formatpainter.js +1 -1
  119. package/src/integrations/heading.js +1 -1
  120. package/src/integrations/highlight.js +1 -1
  121. package/src/integrations/horizontalline.js +1 -1
  122. package/src/integrations/htmlembed.js +1 -1
  123. package/src/integrations/image.js +1 -1
  124. package/src/integrations/imagereplace.js +1 -1
  125. package/src/integrations/imagestyle.js +1 -1
  126. package/src/integrations/importword.js +1 -1
  127. package/src/integrations/indent.js +1 -1
  128. package/src/integrations/inputcommand.js +1 -1
  129. package/src/integrations/legacylist.js +1 -1
  130. package/src/integrations/legacylistproperties.js +1 -1
  131. package/src/integrations/link.js +1 -1
  132. package/src/integrations/list.js +1 -1
  133. package/src/integrations/listproperties.js +1 -1
  134. package/src/integrations/mediaembed.js +1 -1
  135. package/src/integrations/mention.js +1 -1
  136. package/src/integrations/multilevellist.js +1 -1
  137. package/src/integrations/pagebreak.js +1 -1
  138. package/src/integrations/paragraph.js +1 -1
  139. package/src/integrations/removeformat.js +1 -1
  140. package/src/integrations/restrictededitingmode.js +1 -1
  141. package/src/integrations/shiftentercommand.js +1 -1
  142. package/src/integrations/standardeditingmode.js +1 -1
  143. package/src/integrations/style.js +1 -1
  144. package/src/integrations/table.js +1 -1
  145. package/src/integrations/tablecaption.js +1 -1
  146. package/src/integrations/tableclipboard.js +1 -1
  147. package/src/integrations/tablecolumnresize.js +1 -1
  148. package/src/integrations/tableheadings.js +1 -1
  149. package/src/integrations/tablemergesplit.js +1 -1
  150. package/src/integrations/tableofcontents.js +1 -1
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.js +1 -1
  153. package/src/integrations/title.js +1 -1
  154. package/src/integrations/undo.js +1 -1
  155. package/src/integrations/utils.js +1 -1
  156. package/src/suggestion.js +2 -2
  157. package/src/suggestiondescriptionfactory.js +1 -1
  158. package/src/trackchanges.js +1 -1
  159. package/src/trackchangesdata.js +1 -1
  160. package/src/trackchangesediting.js +1 -1
  161. package/src/trackchangesui.js +1 -1
  162. package/src/ui/suggestioncontroller.js +2 -2
  163. package/src/ui/view/basesuggestionthreadview.js +1 -1
  164. package/src/ui/view/suggestionthreadview.js +1 -1
  165. package/src/utils/common-translations.js +1 -1
  166. 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 _0x2196b4,PendingActions as _0x29f340,icons as _0x45c073}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4a2b29,ObservableMixin as _0x3e5667,uid as _0x245371,insertToPriorityArray as _0x27a2a2,priorities as _0x48fe90,logWarning as _0x224652,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x415cac,View as _0x5624ca,ButtonView as _0x2b0fae,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 _0x306231,hashObject as _0x1e5c82,surroundingMarkersDetector as _0x5667a6,trimHtml as _0x594178,UserView as _0x2a29bd,getDateTimeFormatter as _0x19f402,getAllMarkersDomElementsSorted as _0x590fd1,sanitizeEditorConfig as _0x5a403f}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5d3157,LiveRange as _0x186ef9,LivePosition as _0x38d3d9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xb72897,toWidget as _0x3bf34d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2703d8,set as _0x29c5e0,isEqual as _0x277e2e,unset as _0x54c237,omit as Bt}from'lodash-es';import{Delete as _0x4b2b9a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x63b7bd,ShiftEnter as _0x3f2195}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x4ef825,_0x5be831){super(_0x4ef825),this['_enabledCommands']=_0x5be831,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 _0x502a17 of this['editor']['commands']['commands']())_0x502a17['affectsData']&&!this['_enabledCommands']['has'](_0x502a17)&&_0x502a17['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x10effa of this['editor']['commands']['commands']())_0x10effa['affectsData']&&!this['_enabledCommands']['has'](_0x10effa)&&_0x10effa['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x55afd7,_0x575259){super(_0x55afd7),this['_suggestions']=_0x575259,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x8bc76e){const _0x5212d4=this['_suggestions']['get'](_0x8bc76e);if(!_0x5212d4)throw new _0x4a2b29('track-changes-accept-suggestion-not-found',this);const _0x3b3840=_0x5212d4['getRanges']();this['editor']['model']['canEditAt'](_0x3b3840)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5212d4);}}class B extends ts{['_suggestions'];constructor(_0x34d2c7,_0x5ac2ae){super(_0x34d2c7),this['_suggestions']=_0x5ac2ae,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x7a68f){const _0x460302=this['_suggestions']['get'](_0x7a68f);if(!_0x460302)throw new _0x4a2b29('track-changes-discard-suggestion-not-found',this);const _0x57f2be=_0x460302['getRanges']();this['editor']['model']['canEditAt'](_0x57f2be)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x460302);}}function ss(_0x11b207){return _0x11b207['sort']((_0x277bd1,_0x1d095e)=>'deletion'==_0x277bd1['type']&&'deletion'!=_0x1d095e['type']?-0x1:'deletion'!=_0x277bd1['type']&&'deletion'==_0x1d095e['type']?0x1:0x0);}function to(_0x1cf4cf,_0x1da68e){let _0x52e53d,_0x265038=0x0;const _0x6a16d0=[],_0x5fc4b8=_0x1da68e['schema'];for(;_0x265038<_0x1cf4cf['length'];){const _0x52f180=_0x1cf4cf[_0x265038],_0x43cc2d=_0x1cf4cf[_0x265038+0x1];_0x52e53d||(_0x52e53d=_0x1da68e['createPositionBefore'](_0x52f180)),co(_0x1da68e,_0x52f180,_0x43cc2d)||(_0x6a16d0['push'](_0x1da68e['createRange'](_0x52e53d,_0x5fc4b8['isObject'](_0x52f180)?_0x1da68e['createPositionAfter'](_0x52f180):_0x1da68e['createPositionAt'](_0x52f180,'end'))),_0x52e53d=null),_0x265038++;}return _0x6a16d0;}function co(_0x8ffc51,_0x15670a,_0x288f26){if(!_0x288f26)return!0x1;const _0x3b354a=_0x8ffc51['createPositionAfter'](_0x15670a),_0x3d64e0=_0x8ffc51['createPositionBefore'](_0x288f26);return _0x3b354a['isTouching'](_0x3d64e0);}function rs(_0x4d1872,_0x53f74f,_0x2554df){for(;_0x2554df['length'];){const _0x9db9aa=_0x2554df['splice'](0x0,0x64);_0x4d1872['change'](()=>{for(const _0x2e56a9 of _0x9db9aa)_0x2e56a9['isInContent']&&_0x53f74f['execute'](_0x2e56a9['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4fc856,_0x16e0f6,_0x44ed60){super(_0x4fc856),this['_command']=_0x16e0f6,this['_suggestions']=_0x44ed60,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x589391=Array['from'](this['_suggestions']['values']())['some'](_0x4b03a7=>_0x4b03a7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x589391;}['execute'](){const _0x976bb=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2d159b of _0x976bb){const _0x21a2fd=_0x2d159b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x21a2fd))return;}rs(this['editor']['model'],this['_command'],_0x976bb);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2bab5c,_0x109c43,_0x37753e){super(_0x2bab5c),this['_command']=_0x109c43,this['_suggestions']=_0x37753e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4fcff5=this['editor']['model']['document']['selection'],_0x42f32b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xad17ba,_0x3cadf5){const _0x205e5c=Array['from'](_0xad17ba['getRanges']()),_0xf354e4=new Set();for(const _0xf4a628 of _0x3cadf5)if(_0xf4a628['isInContent']){for(const _0x5088e4 of _0x205e5c)for(const _0x51cfd8 of _0xf4a628['getRanges']())(_0x5088e4['isIntersecting'](_0x51cfd8)||_0xad17ba['isCollapsed']&&!_0xf4a628['isMultiRange']&&_0xf4a628['next']&&_0x51cfd8['end']['isTouching'](_0x5088e4['start']))&&_0xf354e4['add'](_0xf4a628);}return _0xf354e4;}(_0x4fcff5,_0x42f32b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4d7857=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4ab140 of _0x4d7857){const _0x2f2afe=_0x4ab140['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2f2afe))return;}rs(this['editor']['model'],this['_command'],_0x4d7857);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x3e5667(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xef96b0,_0xf3f55e){super(),this['id']=_0xf3f55e['id'],this['type']=_0xf3f55e['type'],this['subType']=_0xf3f55e['subType']||null,this['author']=_0xf3f55e['author'],this['creator']=_0xf3f55e['creator']||_0xf3f55e['author'],this['isExternal']=Boolean(_0xf3f55e['attributes']&&_0xf3f55e['attributes']['@external']),this['data']=null,this['_model']=_0xef96b0,this['_onAccept']=_0xf3f55e['onAccept'],this['_onDiscard']=_0xf3f55e['onDiscard'],this['_onAttributesChange']=_0xf3f55e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xf3f55e['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 _0x54da2d=this;for(;_0x54da2d['previous'];)_0x54da2d=_0x54da2d['previous'];return _0x54da2d;}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'](_0x4f4548){this['_markerNames']['add'](_0x4f4548);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b1750=>this['_model']['markers']['get'](_0x2b1750))['filter'](_0x121558=>_0x121558);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1b61f3=>{for(const _0x51bfdb of this['getMarkers']())_0x1b61f3['removeMarker'](_0x51bfdb);}),this['_markerNames']['clear']();}['removeMarker'](_0x482126){this['_model']['change'](_0x259e7b=>{_0x259e7b['removeMarker'](_0x482126);}),this['_markerNames']['delete'](_0x482126);}['addRange'](_0x4e8e6a){const _0x5dd83b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5dd83b),this['_model']['change'](_0x231cdd=>{_0x231cdd['addMarker'](_0x5dd83b,{'range':_0x4e8e6a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x353525){for(const _0x3d546f of this['getRanges']())if(_0x3d546f['isIntersecting'](_0x353525))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x208cd2=>_0x208cd2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5ec16a,_0x10afb2)=>[..._0x5ec16a,..._0x10afb2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x30431=this['getRanges']();if(0x1!=_0x30431['length'])return null;const _0x44351b=_0x30431[0x0],_0x24bea6=_0x44351b['start']['nodeAfter'],_0x4dc82a=_0x44351b['end']['nodeBefore'];return _0x24bea6 instanceof _0x5d3157?_0x24bea6!=_0x4dc82a?null:_0x24bea6: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 _0x1807a4=[];let _0x1ec125=this['head'];for(;_0x1ec125;)_0x1807a4['push'](_0x1ec125),_0x1ec125=_0x1ec125['next'];return _0x1807a4;}['setAttribute'](_0x3a333b,_0x1934f1){const _0x10fc5c=_0x2703d8(this['attributes']);_0x29c5e0(_0x10fc5c,_0x3a333b,_0x1934f1),_0x277e2e(_0x10fc5c,this['attributes'])||(this['attributes']=_0x10fc5c,this['_onAttributesChange'](_0x10fc5c));}['removeAttribute'](_0xfd752c){const _0xe3e305=_0x2703d8(this['attributes']);_0x54c237(_0xe3e305,_0xfd752c),_0x277e2e(_0xe3e305,this['attributes'])||(this['attributes']=_0xe3e305,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 _0x245371()['substr'](0x1,0x5);}}function o(_0x46f331,_0x437eda,_0x589919){const t=_0x46f331['t'];switch(_0x437eda){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',_0x589919);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x589919);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x589919);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x589919);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x589919);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',_0x589919);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x589919);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',_0x589919);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x589919);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x589919);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x589919);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x589919);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x589919);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x589919);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x589919);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x589919);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x589919);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x589919);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x589919);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x589919);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x589919);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x589919);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x589919);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'},_0x589919);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x589919);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x589919);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x589919);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x589919);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x589919);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'},_0x589919);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x589919);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x589919);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x589919);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x589919);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'},_0x589919);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x589919);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'},_0x589919);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'},_0x589919);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x589919);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'},_0x589919);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x589919);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'},_0x589919);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x589919);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x589919);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'},_0x589919);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'},_0x589919);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 _0x437eda;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5c511,_0x4d6ca1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5c511,this['_locale']=_0x4d6ca1;}['getDescriptions'](_0x429890){const _0x10f47c=[],_0x374154=new Set(),_0x57685e=new Set();for(let _0x2073c7=0x0;_0x2073c7<_0x429890['length'];_0x2073c7++){const _0x488b7b=_0x429890[_0x2073c7];if(!_0x488b7b['isInContent'])continue;const _0x2851b9=this['_handleCustomCallbackDescription'](_0x488b7b);if(_0x2851b9){if(null!=_0x488b7b['subType']){if(_0x374154['has'](_0x488b7b['subType']))continue;_0x374154['add'](_0x488b7b['subType']);}_0x10f47c['push'](_0x2851b9);}else{if('attribute'!=_0x488b7b['type'])'insertion'!=_0x488b7b['type']&&'deletion'!=_0x488b7b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x10f47c,_0x488b7b,_0x429890[_0x2073c7+0x1]);else{const _0x1db6d5=_0x488b7b['data']['key'];if(_0x57685e['has'](_0x1db6d5))continue;_0x57685e['add'](_0x488b7b['data']['key']),_0x1db6d5==m?this['_handleRenameSuggestionDescription'](_0x10f47c,_0x488b7b):this['_handleAttributeSuggestionDescription'](_0x10f47c,_0x488b7b);}}}return this['_resolveDescriptionItems'](_0x10f47c);}['registerDescriptionCallback'](_0x725cd8){this['_customCallbacks']['push'](_0x725cd8);}['registerElementLabel'](_0x32ccc4,_0x406131,_0x5599f6=_0x48fe90['normal']){'function'==typeof _0x32ccc4?_0x27a2a2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x32ccc4,'label':_0x406131,'priority':_0x5599f6}):this['_itemLabels']['set'](_0x32ccc4,_0x406131);}['registerAttributeLabel'](_0x4e05c9,_0x3034d4){this['_attributeLabels']['set'](_0x4e05c9,_0x3034d4);}['getItemLabel'](_0xd0c62b,_0x535a6a=0x1){let _0x32e4e4;for(const _0xcbf1be of this['_itemLabelsCallbacks'])if(_0xcbf1be['matchingCallback'](_0xd0c62b)){_0x32e4e4=_0xcbf1be['label'];break;}return _0x32e4e4||(_0x32e4e4=this['_itemLabels']['get'](_0xd0c62b['name'])),_0x32e4e4?_0x32e4e4(_0x535a6a):0x1!==_0x535a6a?_0x535a6a+'\x20'+_0xd0c62b['name']+'s':''+_0xd0c62b['name'];}['_addDescriptionItems'](_0x4216b8,_0x3b3f1d){const _0x57ddaa=_0x3b3f1d['getFirstRange']()['getWalker'](),_0x135581='insertion'==_0x3b3f1d['type']?'add':'remove';for(const _0x3990f7 of _0x57ddaa){const _0x156636=_0x3990f7['item'],_0x215d83=_0x4216b8[_0x4216b8['length']-0x1];if(_0x156636['is']('$textProxy'))_0x215d83&&_0x215d83['type']['indexOf']('Container')>-0x1&&_0x4216b8['pop'](),_0x215d83&&'text'==_0x215d83['type']?_0x215d83[_0x135581]+=_0x156636['data']:_0x4216b8['push']({'type':'text','add':'add'==_0x135581?_0x156636['data']:'','remove':'remove'==_0x135581?_0x156636['data']:''});else{if(this['_schema']['isObject'](_0x156636)){const _0x2e380c=_0x156636;if(_0x215d83&&_0x215d83['type']['indexOf']('Container')>-0x1&&_0x4216b8['pop'](),'elementEnd'==_0x3990f7['type'])continue;_0x215d83&&_0x215d83['type']==_0x135581+'Object'&&_0x215d83['element']['name']==_0x2e380c['name']?_0x215d83['quantity']++:_0x4216b8['push']({'type':_0x135581+'Object','element':_0x2e380c,'quantity':0x1}),_0x57ddaa['skip'](_0x4e3673=>!('elementEnd'==_0x4e3673['type']&&_0x4e3673['item']==_0x156636));}else{if(this['_schema']['checkChild'](_0x156636,'$text')||_0x156636['is']('element','softBreak')){const _0x15cd8c=_0x156636;if('add'==_0x135581&&'elementStart'==_0x3990f7['type']||'remove'==_0x135581&&'elementEnd'==_0x3990f7['type'])continue;if(_0x215d83&&-0x1==_0x215d83['type']['indexOf']('Container')){'text'==_0x215d83['type']&&(_0x215d83[_0x135581]+='\x0a');continue;}let _0x3af862;if(_0x3af862='add'==_0x135581?_0x15cd8c['nextSibling']&&!this['_schema']['isObject'](_0x15cd8c['nextSibling'])?_0x15cd8c['nextSibling']:null:_0x15cd8c['previousSibling']&&!this['_schema']['isObject'](_0x15cd8c['previousSibling'])?_0x15cd8c['previousSibling']:null,_0x15cd8c['isEmpty']||_0x3af862&&_0x3af862['isEmpty']){const _0x2679ee=_0x3af862&&_0x3af862['isEmpty']?_0x3af862:_0x15cd8c;_0x215d83&&_0x215d83['type']==_0x135581+'EmptyContainer'&&_0x215d83['element']['name']==_0x2679ee['name']?_0x215d83['quantity']++:_0x4216b8['push']({'type':_0x135581+'EmptyContainer','element':_0x2679ee,'quantity':0x1});}else _0x4216b8['push']({'type':_0x135581+'Container','element':_0x15cd8c});}}}}}['_resolveDescriptionItems'](_0x301a46){const _0x5a897c=this['_locale'],_0x4087fc=[],_0x156c9b=[],_0x469af2=[];for(const _0x2e1e18 of _0x301a46)switch(_0x2e1e18['type']){case'text':if(_0x2e1e18['add']=_0x2e1e18['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2e1e18['remove']=_0x2e1e18['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2e1e18['add']&&''!=_0x2e1e18['remove']){_0x4087fc['push']({'type':'replace','content':o(_0x5a897c,'REPLACE_TEXT',['\x22'+_0x2e1e18['remove']+'\x22','\x22'+_0x2e1e18['add']+'\x22'])});continue;}if(null!=_0x2e1e18['add']['match'](/^ +$/)){_0x4087fc['push']({'type':'insertion','content':o(_0x5a897c,'*Insert:*\x20%0',o(_0x5a897c,'ELEMENT_SPACE',_0x2e1e18['add']['length']))});continue;}if(null!=_0x2e1e18['remove']['match'](/^ +$/)){_0x4087fc['push']({'type':'deletion','content':o(_0x5a897c,'*Remove:*\x20%0',o(_0x5a897c,'ELEMENT_SPACE',_0x2e1e18['remove']['length']))});continue;}if(''!=_0x2e1e18['add']){_0x4087fc['push']({'type':'insertion','content':o(_0x5a897c,'*Insert:*\x20%0','\x22'+_0x2e1e18['add']+'\x22')});continue;}_0x4087fc['push']({'type':'deletion','content':o(_0x5a897c,'*Remove:*\x20%0','\x22'+_0x2e1e18['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4087fc['push']({'type':'insertion','content':o(_0x5a897c,'*Insert:*\x20%0',this['getItemLabel'](_0x2e1e18['element'],_0x2e1e18['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4087fc['push']({'type':'deletion','content':o(_0x5a897c,'*Remove:*\x20%0',this['getItemLabel'](_0x2e1e18['element'],_0x2e1e18['quantity']))});continue;case'addContainer':_0x4087fc['push']({'type':'insertion','content':o(_0x5a897c,'*Split:*\x20%0',this['getItemLabel'](_0x2e1e18['element'],_0x2e1e18['quantity']))});continue;case'removeContainer':_0x4087fc['push']({'type':'deletion','content':o(_0x5a897c,'*Merge:*\x20%0',this['getItemLabel'](_0x2e1e18['element'],_0x2e1e18['quantity']))});continue;case'addFormat':_0x156c9b['push'](_0x2e1e18['key']);continue;case'removeFormat':_0x469af2['push'](_0x2e1e18['key']);continue;default:_0x4087fc['push'](_0x2e1e18);}if(_0x156c9b['length']){const _0x5bedd3=_0x156c9b['map'](_0x3875af=>this['_attributeLabels']['has'](_0x3875af)?this['_attributeLabels']['get'](_0x3875af):_0x3875af)['join'](',\x20');_0x4087fc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5bedd3)});}if(_0x469af2['length']){const _0x5939eb=_0x469af2['map'](_0x134563=>this['_attributeLabels']['has'](_0x134563)?this['_attributeLabels']['get'](_0x134563):_0x134563)['join'](',\x20');_0x4087fc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5939eb)});}return _0x4087fc;}['_handleCustomCallbackDescription'](_0x859c16){for(const _0x40dc99 of this['_customCallbacks']){const _0x31fb98=_0x40dc99(_0x859c16);if(_0x31fb98&&'type'in _0x31fb98)return _0x31fb98;}}['_handleAttributeSuggestionDescription'](_0x175b81,_0x5f1446){const _0xc2a8bb=_0x5f1446['data'],_0x38b660=void 0x0===_0xc2a8bb['newValue']?'removeFormat':'addFormat';_0x175b81['push']({'type':_0x38b660,'key':_0xc2a8bb['key']});}['_handleRenameSuggestionDescription'](_0xe68053,_0x524db1){_0xe68053['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x524db1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x412059,_0x390413,_0x4f0191){if(this['_addDescriptionItems'](_0x412059,_0x390413),_0x4f0191&&_0x4f0191['getFirstRange']()&&!_0x390413['getFirstRange']()['end']['isEqual'](_0x4f0191['getFirstRange']()['start'])){const _0x4b405a=_0x412059[_0x412059['length']-0x1],_0x54f051='insertion'==_0x390413['type']?'add':'remove';_0x4b405a&&'text'==_0x4b405a['type']&&(_0x4b405a[_0x54f051]+='\x0a');}}}class E extends _0x2196b4{['afterInit'](){const _0x4f93f5=this['editor'],_0x38cbb6=_0x4f93f5['plugins']['get']('TrackChangesEditing');_0x4f93f5['commands']['get']('showAIAssistant')&&_0x38cbb6['enableCommand']('showAIAssistant');}}class V extends _0x2196b4{['afterInit'](){const _0x28f87c=this['editor'],_0x222227=_0x28f87c['locale'];if(!_0x28f87c['plugins']['has']('AlignmentEditing'))return;const _0x5e4563=_0x28f87c['plugins']['get']('TrackChangesEditing');_0x5e4563['enableDefaultAttributesIntegration']('alignment'),_0x5e4563['registerBlockAttribute']('alignment'),_0x5e4563['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x222227,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d4d59=this['editor'],_0x5ae6e8=_0x5d4d59['locale'];_0x5d4d59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28851=>{if('formatBlock'!=_0x28851['type'])return;const {data:_0x264918}=_0x28851;if(_0x264918&&'alignment'==_0x264918['commandName']){const _0x31fada=_0x264918['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5ae6e8,'*Format:*\x20%0',function(_0x423594){switch(_0x423594){case'left':return o(_0x5ae6e8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5ae6e8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5ae6e8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5ae6e8,'FORMAT_JUSTIFY_TEXT');}}(_0x31fada))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x2196b4{['afterInit'](){const _0x19d956=this['editor'],_0x55799d=_0x19d956['plugins']['get']('TrackChangesEditing'),_0x4c330f=_0x19d956['locale'];for(const _0x344970 of ti){if(!_0x19d956['plugins']['has'](_0x344970))continue;const _0x202e49=_0x344970['slice'](0x0,-0x7)['toLowerCase'](),_0x44d4b1='FORMAT_'+_0x202e49['toUpperCase']();_0x55799d['enableDefaultAttributesIntegration'](_0x202e49),_0x55799d['registerInlineAttribute'](_0x202e49),_0x55799d['descriptionFactory']['registerAttributeLabel'](_0x202e49,o(_0x4c330f,_0x44d4b1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ed0d5=this['editor'],_0x5f299d=_0x2ed0d5['locale'],_0x2df4b5=_0x2ed0d5['plugins']['get']('TrackChangesEditing');function _0x19e8f8(_0x100f1e,_0x4ff7a8){_0x2df4b5['descriptionFactory']['registerDescriptionCallback'](_0xc45975=>{if('formatInline'!=_0xc45975['type'])return;const {data:_0x5a049e}=_0xc45975;return _0x5a049e&&_0x5a049e['commandName']===_0x100f1e?_0x5a049e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f299d,'*Format:*\x20%0',_0x4ff7a8)}:{'type':'format','content':o(_0x5f299d,'*Remove\x20format:*\x20%0',_0x4ff7a8)}:void 0x0;});}_0x19e8f8('bold',o(_0x5f299d,'FORMAT_BOLD')),_0x19e8f8('italic',o(_0x5f299d,'FORMAT_ITALIC')),_0x19e8f8('underline',o(_0x5f299d,'FORMAT_UNDERLINE')),_0x19e8f8('code',o(_0x5f299d,'FORMAT_CODE')),_0x19e8f8('strikethrough',o(_0x5f299d,'FORMAT_STRIKETHROUGH')),_0x19e8f8('subscript',o(_0x5f299d,'FORMAT_SUBSCRIPT')),_0x19e8f8('superscript',o(_0x5f299d,'FORMAT_SUPERSCRIPT'));}}class O extends _0x2196b4{['afterInit'](){const _0x291a44=this['editor'],_0x2d9b12=_0x291a44['locale'];if(!_0x291a44['plugins']['has']('BlockQuoteEditing'))return;const _0x299f4a=_0x291a44['plugins']['get']('TrackChangesEditing'),_0x255240=this['editor']['commands']['get']('blockQuote');_0x299f4a['enableCommand']('blockQuote',(_0x259084,_0x50f97d={})=>{const _0x434a58=this['editor']['model']['document']['selection'],_0xe757ca=_0x50f97d&&void 0x0!==_0x50f97d['forceValue']?_0x50f97d['forceValue']:!_0x255240['value'];let _0x4fd2ab=[];if(_0xe757ca){const _0x53f87b=Array['from'](_0x434a58['getSelectedBlocks']())['filter'](_0x332aee=>oo(_0x332aee)||function(_0x27f2c0,_0x42bd86){const _0x4b485e=_0x42bd86['checkChild'](_0x27f2c0['parent'],'blockQuote'),_0x278e7f=_0x42bd86['checkChild'](['$root','blockQuote'],_0x27f2c0);return _0x4b485e&&_0x278e7f;}(_0x332aee,this['editor']['model']['schema']));_0x4fd2ab=to(_0x53f87b,_0x291a44['model']);}else{const _0x559603=Array['from'](_0x434a58['getSelectedBlocks']())['filter'](_0x83b9d9=>oo(_0x83b9d9));_0x4fd2ab=to(_0x559603,_0x291a44['model']);}_0x291a44['model']['change'](()=>{for(const _0x4e7075 of _0x4fd2ab)_0x299f4a['markBlockFormat'](_0x4e7075,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xe757ca}]});});}),_0x299f4a['descriptionFactory']['registerDescriptionCallback'](_0x266b99=>{const {data:_0x48a7b8}=_0x266b99;if(_0x48a7b8&&'blockQuote'==_0x48a7b8['commandName']){const _0x42a785=o(_0x2d9b12,'ELEMENT_BLOCK_QUOTE');return _0x48a7b8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d9b12,'*Set\x20format:*\x20%0',_0x42a785)}:{'type':'format','content':o(_0x2d9b12,'*Remove\x20format:*\x20%0',_0x42a785)};}});}}function oo(_0x4ad1c0){return'blockQuote'==_0x4ad1c0['parent']['name'];}class F extends _0x2196b4{['afterInit'](){const _0x263668=this['editor'];_0x263668['plugins']['has']('CaseChange')&&(_0x263668['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x263668['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x263668['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x2196b4{['afterInit'](){const _0x9660fc=this['editor'];_0x9660fc['commands']['get']('ckbox')&&_0x9660fc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2196b4{['afterInit'](){const _0x4b091c=this['editor'];if(!_0x4b091c['plugins']['has']('CodeBlock'))return;const _0x93e711=_0x4b091c['plugins']['get']('TrackChangesEditing'),_0xe69e4a=_0x4b091c['locale'],_0x19a381=_0x4b091c['config']['get']('codeBlock')['languages'],_0x21934d=_0x4b091c['commands']['get']('codeBlock');_0x93e711['enableCommand']('indentCodeBlock'),_0x93e711['enableCommand']('outdentCodeBlock'),_0x93e711['enableCommand']('codeBlock',(_0x4fa7bb,_0x4351cb={})=>{const _0x5a13c8=_0x4b091c['model'],_0x5f123f=_0x4b091c['model']['document']['selection'],_0x34413a=_0x4351cb&&void 0x0!==_0x4351cb['forceValue']?_0x4351cb['forceValue']:!_0x21934d['value'];let _0x3b3ebb;_0x4351cb['language']||(_0x4351cb['language']=_0x19a381[0x0]['language']),_0x3b3ebb=_0x34413a?Array['from'](_0x5f123f['getSelectedBlocks']())['filter'](_0x145010=>eo(_0x145010)||function(_0x2696ff,_0x4a80de){if(_0x2696ff['is']('rootElement')||_0x4a80de['isLimit'](_0x2696ff))return!0x1;return _0x4a80de['checkChild'](_0x2696ff['parent'],'codeBlock');}(_0x145010,_0x5a13c8['schema'])):Array['from'](_0x5f123f['getSelectedBlocks']())['filter'](_0x1baf8d=>eo(_0x1baf8d));const _0xbac92d=to(_0x3b3ebb,_0x5a13c8);_0x5a13c8['change'](()=>{for(const _0x12b4c6 of _0xbac92d)_0x93e711['markBlockFormat'](_0x12b4c6,{'commandName':'codeBlock','commandParams':[{..._0x4351cb,'forceValue':_0x34413a}],'formatGroupId':'blockName'});});}),(_0x93e711['descriptionFactory']['registerElementLabel']('codeBlock',_0x2c8036=>o(_0xe69e4a,'ELEMENT_CODE_BLOCK',_0x2c8036)),_0x93e711['descriptionFactory']['registerDescriptionCallback'](_0x1d798c=>{if('formatBlock'!=_0x1d798c['type'])return;const _0x14d7a2=_0xe69e4a['t'],{data:_0x3ce9da}=_0x1d798c;if(!_0x3ce9da||'codeBlock'!=_0x3ce9da['commandName'])return;const _0x1f74ef=_0x3ce9da['commandParams'][0x0]['language'],_0x5170ea=_0x14d7a2(_0x19a381['find'](_0x588c28=>_0x588c28['language']===_0x1f74ef)['label'])['toLowerCase']();return _0x3ce9da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe69e4a,'*Set\x20format:*\x20%0',o(_0xe69e4a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5170ea+')')}:{'type':'format','content':o(_0xe69e4a,'*Remove\x20format:*\x20%0',o(_0xe69e4a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3f0f64){return'codeBlock'==_0x3f0f64['name'];}class H extends _0x2196b4{['afterInit'](){const _0x89585d=this['editor'];if(!_0x89585d['plugins']['has']('CommentsEditing'))return;_0x89585d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4caf15,_0x22c645,_0x53b5f3){const _0x585456=[];for(const _0x3045bf of _0x22c645['getItems']())_0x3045bf['hasAttribute'](_0x4caf15)&&_0x585456['push'](_0x53b5f3['createRangeOn'](_0x3045bf));return _0x585456;}function _e(_0x3570a8,_0x33b87f,{showActiveMarker:_0x182d1c=!0x0}={}){const _0x273209=_0x3570a8['plugins']['get']('TrackChangesEditing');return(_0x28b646,_0x8652b0,_0xc2d947)=>{if(!_0xc2d947['consumable']['test'](_0x8652b0['markerRange'],_0x28b646['name']))return;const _0x4b9209=_0x8652b0['markerRange']['getWalker'](),_0x1a3aeb=_0x8652b0['markerRange']['start'],_0x29fbe6=_0x3570a8['model']['schema'];let _0x55194c=null,_0x12d30c=null,_0x4448a6=!0x1,_0x137f8b=!0x1;for(const _0x564141 of _0x4b9209){const _0x1bb4ce=_0x564141['item'];_0x4448a6=_0x4448a6||_0x29fbe6['isContent'](_0x1bb4ce);const _0xba4411=_0xc2d947['mapper']['toViewElement'](_0x1bb4ce);if(_0xba4411&&_0xba4411['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x564141['type']&&(_0x29fbe6['isBlock'](_0x1bb4ce)&&!_0x29fbe6['isLimit'](_0x1bb4ce)&&(_0x1bb4ce['nextSibling']||_0x1a3aeb['isAtEnd']?_0x55194c&&_0x55194c['parent']==_0x1bb4ce||(_0x55194c=_0x1bb4ce,_0x212cba(_0x564141['previousPosition']),_0x137f8b=!0x0):_0x12d30c=_0x12d30c||_0x564141['previousPosition']));}function _0x212cba(_0x47f67b){const _0x3f70e2=_0xc2d947['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33b87f}),_0x5e7103=_0xc2d947['mapper']['toViewPosition'](_0x47f67b);_0x182d1c&&_0x273209['activeMarkers']['includes'](_0x8652b0['markerName'])&&_0xc2d947['writer']['addClass']('ck-suggestion-marker--active',_0x3f70e2),_0xc2d947['writer']['insert'](_0x5e7103,_0x3f70e2),_0xc2d947['mapper']['bindElementToMarker'](_0x3f70e2,_0x8652b0['markerName']);}_0x4448a6||_0x137f8b||!_0x12d30c||_0x212cba(_0x12d30c);};}class q extends _0x2196b4{static get['requires'](){return[_0x4b2b9a];}['init'](){const _0x4c5753=this['editor'],_0x289407=_0x4c5753['plugins']['get']('TrackChangesEditing');_0x289407['enableCommand']('delete');const _0x291dc4=_0x4c5753['commands']['get']('deleteForward');_0x289407['enableCommand']('deleteForward',(_0x37d4e7,_0x49d18d={})=>{const _0x599e6f=_0x4c5753['model']['createSelection'](_0x4c5753['model']['document']['selection']);_0x599e6f['isCollapsed']&&_0x4c5753['model']['modifySelection'](_0x599e6f,{'direction':'forward','unit':_0x49d18d['unit']});const _0x47599a=_0x599e6f['getFirstRange'](),_0x3d735c=_0x186ef9['fromRange'](_0x47599a);let _0x385319;_0x37d4e7(_0x49d18d),_0x385319='$graveyard'==_0x3d735c['root']['rootName']?_0x4c5753['model']['createRange'](_0x47599a['start']):_0x4c5753['model']['createRange'](_0x3d735c['start'],_0x3d735c['end']),_0x3d735c['detach'](),_0x4c5753['model']['enqueueChange'](_0x291dc4['buffer']['batch'],_0x214dd7=>{_0x291dc4['buffer']['lock'](),_0x214dd7['setSelection'](_0x214dd7['createRange'](_0x385319['end'])),_0x291dc4['buffer']['unlock']();});}),_0x4c5753['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4c5753,'merge'),{'priority':'high'}),_0x4c5753['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xa8f7ed,_0x1af987,_0x199926)=>{_0x199926['options']['showSuggestionHighlights']&&_e(_0x4c5753,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xa8f7ed,_0x1af987,_0x199926);},{'priority':'high'}),_0x4c5753['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4953e1,_0xd75123,_0x123908)=>{const _0x807c05=_0x123908['mapper']['markerNameToElements'](_0xd75123['markerName']);if(_0x807c05){for(const _0x1047e5 of _0x807c05)_0x1047e5['is']('uiElement')&&(_0x123908['mapper']['unbindElementFromMarkerName'](_0x1047e5,_0xd75123['markerName']),_0x123908['writer']['remove'](_0x1047e5));}},{'priority':'high'});}}class z extends _0x2196b4{['afterInit'](){const _0x4368df=this['editor'];if(!_0x4368df['plugins']['has']('ListEditing'))return;const _0x25352a=_0x4368df['locale'],_0x132b47=_0x4368df['plugins']['get']('TrackChangesEditing'),_0x1e33df=_0x4368df['plugins']['has']('TodoListEditing'),_0x3973f8=!!_0x4368df['config']['get']('list.multiBlock');function _0x5f1b5f(_0x974e3a){return{'type':'format','content':''+o(_0x25352a,'*Set\x20format:*\x20%0',_0x974e3a)};}function _0x283c4c(_0x23bc30){return{'type':'format','content':''+o(_0x25352a,'*Remove\x20format:*\x20%0',_0x23bc30)};}_0x132b47['enableDefaultAttributesIntegration']('numberedList'),_0x132b47['enableDefaultAttributesIntegration']('bulletedList'),_0x132b47['enableDefaultAttributesIntegration']('customNumberedList'),_0x132b47['enableDefaultAttributesIntegration']('customBulletedList'),_0x132b47['enableDefaultAttributesIntegration']('indentList'),_0x132b47['enableDefaultAttributesIntegration']('outdentList'),_0x132b47['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x132b47['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x132b47['registerBlockAttribute']('listItemId'),_0x132b47['registerBlockAttribute']('listType'),_0x132b47['registerBlockAttribute']('listIndent'),_0x3973f8&&(_0x132b47['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x132b47['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1e33df&&(_0x132b47['enableDefaultAttributesIntegration']('todoList'),_0x132b47['enableDefaultAttributesIntegration']('checkTodoList'),_0x132b47['registerBlockAttribute']('todoListChecked'),_0x132b47['descriptionFactory']['registerDescriptionCallback'](_0x4ccc51=>{const {data:_0x57a53a}=_0x4ccc51;if(_0x57a53a&&'todoListChecked'==_0x57a53a['key'])return{'type':'format','content':_0x57a53a['newValue']?o(_0x25352a,'*Check\x20item*'):o(_0x25352a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xa3c934=>{if(_0xa3c934['batch']['isUndo'])return!0x1;let _0x1e9cd9=!0x1;const _0x1b0bbf=_0x132b47['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a7003=>'todoListChecked'===_0x132b47['_getAttributeKey'](_0x4a7003));for(const _0x427c1e of _0x1b0bbf){'todo'!=_0x427c1e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x132b47['_findSuggestions'](_0x427c1e['getFirstRange'](),'attribute')['find'](_0x3db8fa=>'listType'===_0x132b47['_getAttributeKey'](_0x3db8fa['suggestion']))||(_0xa3c934['removeMarker'](_0x427c1e['getFirstMarker']()),_0x1e9cd9=!0x0));}return _0x1e9cd9;})),_0x132b47['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x25352a,'FORMAT_INDENT'));const _0x3930da={'type':'format','content':''};_0x132b47['descriptionFactory']['registerDescriptionCallback'](_0x27c171=>{const {data:_0x40867d}=_0x27c171;if(!_0x40867d||'listType'!=_0x40867d['key'])return;let _0x262ebb=_0x27c171['head'];for(;_0x262ebb;){if(_0x262ebb['data']&&(('listStyle'==_0x262ebb['data']['key']||'listMarkerStyle'==_0x262ebb['data']['key'])&&(_0x262ebb['data']['newValue']&&'default'!=_0x262ebb['data']['newValue']||'default'!=_0x262ebb['data']['oldValue']&&!_0x40867d['newValue'])||!_0x3973f8&&_0x262ebb['data']['key']==m))return _0x3930da;_0x262ebb=_0x262ebb['next'];}if(null==_0x40867d['newValue'])switch(_0x40867d['oldValue']){case'bulleted':return _0x283c4c(o(_0x25352a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x283c4c(o(_0x25352a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x283c4c(o(_0x25352a,'ELEMENT_TODO_LIST'));}switch(_0x40867d['newValue']){case'bulleted':return _0x5f1b5f(o(_0x25352a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f1b5f(o(_0x25352a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f1b5f(o(_0x25352a,'ELEMENT_TODO_LIST'));}}),_0x132b47['descriptionFactory']['registerDescriptionCallback'](_0x2f2e7d=>{const {data:_0x194f8b}=_0x2f2e7d;if(_0x194f8b&&'listIndent'==_0x194f8b['key'])return null==_0x194f8b['newValue']||null==_0x194f8b['oldValue']&&0x0==_0x194f8b['newValue']?_0x3930da:void 0x0;}),_0x132b47['descriptionFactory']['registerDescriptionCallback'](_0x50c007=>{if('attribute'!=_0x50c007['type'])return;const {data:_0x39c1ad}=_0x50c007;if(!_0x39c1ad||'listItemId'!=_0x39c1ad['key'])return;const _0x363276=le(_0x50c007);return'newValue'==_0x363276?{'type':'format','content':o(_0x25352a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x363276?{'type':'format','content':o(_0x25352a,'*Split:*\x20list\x20item')}:_0x3930da;}),_0x4368df['model']['document']['registerPostFixer'](_0x3c957f=>this['listItemIdFixer'](_0x3c957f)),_0x4368df['model']['document']['registerPostFixer'](_0x5298b6=>this['noTrackChangesFixer'](_0x5298b6)),_0x4368df['model']['document']['registerPostFixer'](_0x2a44cf=>this['assureChains'](_0x2a44cf)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x16c9e2){if(_0x16c9e2['batch']['isUndo']||!_0x16c9e2['batch']['isLocal'])return!0x1;let _0x1be884=!0x1;const _0x1f6825=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x505bb3=>_0x505bb3['data']&&'listItemId'==_0x505bb3['data']['key'])['filter'](_0x5d749b=>_0x5d749b['data']['newValue']&&_0x5d749b['data']['oldValue']);for(const _0x7dfdec of _0x1f6825)le(_0x7dfdec)||(_0x16c9e2['removeMarker'](_0x7dfdec['getFirstMarker']()),_0x1be884=!0x0);return _0x1be884;}['noTrackChangesFixer'](_0x1811a5){if(_0x1811a5['batch']['isUndo']||!_0x1811a5['batch']['isLocal'])return!0x1;const _0x29fdc2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x29fdc2['trackChangesCommand']['value'])return!0x1;let _0x4dda65=!0x1;const _0x51ba9a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x41a734=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xffee6e=>'attribute'==_0xffee6e['type'])['filter'](_0x2eca71=>_0x51ba9a['includes'](_0x2eca71['attributeKey']));if(0x0==_0x41a734['length'])return _0x4dda65;for(const _0x21ed6a of _0x41a734){const _0x3be4f7=_0x29fdc2['_findSuggestions'](_0x21ed6a['range'],'attribute')['filter'](_0xb44216=>!_0xb44216['meta']['isNextTo'])['map'](_0x53ccf3=>_0x53ccf3['suggestion'])['filter'](_0x4d3951=>{const _0x264159=_0x29fdc2['_getAttributeKey'](_0x4d3951);return _0x51ba9a['includes'](_0x264159);});if(_0x3be4f7['length']){for(const _0x1ac2dc of _0x3be4f7)_0x1811a5['removeMarker'](_0x1ac2dc['getFirstMarker']());_0x4dda65=!0x0;}}return _0x4dda65;}['assureChains'](_0x322f1f){if(_0x322f1f['batch']['isUndo']||!_0x322f1f['batch']['isLocal'])return!0x1;const _0xb19439=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2051dd=!0x1;const _0x43c638=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x3e9c62 of _0xb19439['getSuggestions']({'skipNotAttached':!0x0})){const _0x2c6f40=_0xb19439['_findSuggestions'](_0x3e9c62['getFirstRange'](),'attribute')['map'](_0x1f9685=>_0x1f9685['suggestion'])['filter'](_0x2c21b3=>_0x2c21b3['data']&&_0x43c638['includes'](_0x2c21b3['data']['key']));if(!_0x2c6f40['length'])continue;const _0x5caf96=_0x2c6f40[0x0]['head']['attributes']['groupId'];if(!_0x2c6f40['every'](_0x19e184=>_0x19e184['attributes']['groupId']===_0x5caf96)){for(const _0x16ad2d of _0x2c6f40)_0x151acc(_0x16ad2d,_0x5caf96)&&(_0x2051dd=!0x0);}}return _0x2051dd;function _0x2209ec(_0x211923,_0x1f26c5){for(const _0xc0532e of _0xb19439['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4599d0=>'attribute'==_0x4599d0['type']&&_0x4599d0['attributes']['groupId']==_0x211923))_0xc0532e['setAttribute']('groupId',_0x1f26c5);}function _0x151acc(_0x53f485,_0x433002){let _0x23fa8f=_0x53f485['head'],_0x5adf93=!0x1;for(;_0x23fa8f;)_0x23fa8f['attributes']['groupId']!=_0x433002&&(_0x2209ec(_0x23fa8f['attributes']['groupId'],_0x433002),_0x23fa8f['setAttribute']('groupId',_0x433002),_0x5adf93=!0x0),_0x23fa8f=_0x23fa8f['next'];return _0x5adf93;}}['_supportLegacySuggestions'](){const _0x16eccb=this['editor'],_0x239801=_0x16eccb['locale'],_0x16dd5b=_0x16eccb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x16dd5b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2f609c,_0x415352){const _0x3678e9=[];for(let _0x4bd573 of _0x2f609c)_0x4bd573['start']['nodeAfter']===_0x4bd573['end']['parent']&&(_0x4bd573=_0x16eccb['model']['createRange'](_0x16eccb['model']['createPositionAt'](_0x4bd573['start']['nodeAfter'],0x0))),_0x3678e9['push'](_0x4bd573);_0x16eccb['model']['change'](_0x42ca90=>{const _0x444571=_0x16eccb['model']['document']['selection'],_0xdd5898=Array['from'](_0x444571['getRanges']())['map'](_0x3e7b35=>_0x186ef9['fromRange'](_0x3e7b35));_0x42ca90['setSelection'](_0x3678e9),_0x16eccb['commands']['get'](_0x415352['commandName'])['refresh'](),_0x415352['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x16eccb['execute'](_0x415352['commandName'],..._0x415352['commandParams']),_0x42ca90['setSelection'](_0xdd5898);for(const _0x26ed7b of _0xdd5898)_0x26ed7b['detach']();});}),_0x16dd5b['descriptionFactory']['registerElementLabel'](function(_0x175aee){const _0x200e75=!_0x16eccb['model']['schema']['isObject'](_0x175aee),_0x34be20=_0x175aee['previousSibling'],_0x1ed0db=_0x175aee['nextSibling'],_0x3decf5=_0x175aee['getAttribute']('listItemId'),_0x28b226=!_0x34be20||_0x34be20['getAttribute']('listItemId')!==_0x3decf5,_0x21314c=!_0x1ed0db||_0x1ed0db['getAttribute']('listItemId')!==_0x3decf5;return _0x200e75&&Boolean(_0x3decf5)&&_0x28b226&&_0x21314c;},_0xfb4b9=>o(_0x239801,'ELEMENT_LIST_ITEM',_0xfb4b9));}['_registerLegacyDescription'](){const _0xf4ed55=this['editor'],_0x565a24=_0xf4ed55['locale'];function _0xbb4a05(_0xc6a18c){const _0xb63158=_0xf4ed55['commands']['get']('bulletedList')['value'],_0x19236b=_0xf4ed55['commands']['get']('numberedList')['value'];return'numberedList'===_0xc6a18c?_0xb63158:_0x19236b;}_0xf4ed55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x259e2c){if('formatBlock'!=_0x259e2c['type'])return;const {data:_0x4da06c}=_0x259e2c;if(!_0x4da06c)return;let _0x3eeffc,_0x3192c8,_0x5bfe11,_0x3f09ba;switch(_0x4da06c['commandName']){case'bulletedList':_0x5bfe11=_0x4da06c['commandParams'][0x0]['forceValue'],_0x3f09ba=_0xbb4a05(_0x4da06c['commandName']),_0x3eeffc=_0x5bfe11?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f09ba&&_0xf4ed55['config']['get']('list.multiBlock')||(_0x3eeffc='*Change\x20to:*\x20%0'),_0x3192c8={'type':'format','content':o(_0x565a24,_0x3eeffc,o(_0x565a24,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5bfe11=_0x4da06c['commandParams'][0x0]['forceValue'],_0x3f09ba=_0xbb4a05(_0x4da06c['commandName']),_0x3eeffc=_0x5bfe11?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f09ba&&_0xf4ed55['config']['get']('list.multiBlock')||(_0x3eeffc='*Change\x20to:*\x20%0'),_0x3192c8={'type':'format','content':o(_0x565a24,_0x3eeffc,o(_0x565a24,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3eeffc='*Indent:*\x20%0',_0x3192c8={'type':'format','content':o(_0x565a24,_0x3eeffc,o(_0x565a24,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3eeffc=function(_0x519f47){const _0x5997f4=_0x519f47['getFirstRange']();let _0x86a20c=_0x5997f4['start']['nodeAfter'];for(;_0x86a20c&&_0x5997f4['containsItem'](_0x86a20c);){if(_0x86a20c['getAttribute']('listIndent')>0x0)return!0x1;_0x86a20c=_0x86a20c['nextSibling'];}return!0x0;}(_0x259e2c)?o(_0x565a24,'*Format:*\x20remove\x20from\x20%0',o(_0x565a24,function(_0x1a8c22){return'ELEMENT_'+_0x1a8c22['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x259e2c))):o(_0x565a24,'*Outdent:*\x20%0',o(_0x565a24,'ELEMENT_LIST_ITEM')),_0x3192c8={'type':'format','content':_0x3eeffc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4da06c['multipleBlocks']&&(_0x3eeffc='*Merge:*\x20%0',_0x3192c8={'type':'deletion','content':o(_0x565a24,_0x3eeffc,o(_0x565a24,'ELEMENT_LIST_ITEM'))});}return _0x3192c8;});}}function le(_0x1c9ece){let _0x47f531=_0x1c9ece['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x47f531;){const _0x49930d=_0x47f531['getAttribute']('listItemId');if(!_0x49930d)return!0x1;if(_0x49930d==_0x1c9ece['data']['newValue'])return'newValue';if(_0x49930d==_0x1c9ece['data']['oldValue'])return'oldValue';_0x47f531=_0x47f531['previousSibling'];}return!0x1;}class ue extends _0x2196b4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3b0c2d=this['editor']['config']['get']('list.properties'),_0x5577e9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b0c2d['styles']&&(_0x5577e9['enableDefaultAttributesIntegration']('listStyle'),_0x5577e9['registerBlockAttribute']('listStyle')),_0x3b0c2d['reversed']&&(_0x5577e9['enableDefaultAttributesIntegration']('listReversed'),_0x5577e9['registerBlockAttribute']('listReversed')),_0x3b0c2d['startIndex']&&(_0x5577e9['enableDefaultAttributesIntegration']('listStart'),_0x5577e9['registerBlockAttribute']('listStart'));const _0x308d5c={'type':'format','content':''};_0x5577e9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x219fa8=this['editor']['locale'];_0x5577e9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x219fa8,'FORMAT_LIST_REVERSED')),_0x5577e9['descriptionFactory']['registerDescriptionCallback'](_0x4857dd=>{const {data:_0x37296e}=_0x4857dd;if(_0x37296e&&'listReversed'==_0x37296e['key'])return null==_0x37296e['newValue']||0x0==_0x37296e['newValue']&&null==_0x37296e['oldValue']?_0x308d5c:void 0x0;}),_0x5577e9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x219fa8,'FORMAT_LIST_START')),_0x5577e9['descriptionFactory']['registerDescriptionCallback'](_0x56b68e=>{const {data:_0x299307}=_0x56b68e;if(_0x299307&&'listStart'==_0x299307['key'])return null==_0x299307['newValue']||0x1==_0x299307['newValue']&&null==_0x299307['oldValue']?_0x308d5c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3a6916=>{if(_0x3a6916['batch']['isUndo'])return!0x1;let _0x56a214=!0x1;const _0x4b0e2e=_0x5577e9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2244bd=>{const _0x10b72d=_0x5577e9['_getAttributeKey'](_0x2244bd);return'listStart'==_0x10b72d||'listReversed'==_0x10b72d;});for(const _0xc5cd99 of _0x4b0e2e){const _0x1a0f7b=_0xc5cd99['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1a0f7b||'customNumbered'==_0x1a0f7b)continue;_0x5577e9['_findSuggestions'](_0xc5cd99['getFirstRange'](),'attribute')['find'](_0xb61ea0=>'listType'==_0x5577e9['_getAttributeKey'](_0xb61ea0['suggestion']))||(_0x3a6916['removeMarker'](_0xc5cd99['getFirstMarker']()),_0x56a214=!0x0);}return _0x56a214;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x18c06e){const _0x329d30=this['editor']['locale'],{data:_0x1e48fd}=_0x18c06e,_0x2c5310={'type':'format','content':''};if(!_0x1e48fd||'listStyle'!=_0x1e48fd['key'])return;if(!_0x1e48fd['oldValue'])return'default'==_0x1e48fd['newValue']?_0x2c5310:{'type':'format','content':''+o(_0x329d30,'*Set\x20format:*\x20%0',o(_0x329d30,this['_getTranslationKeyForListStyle'](_0x1e48fd['newValue'])))};if(!_0x1e48fd['newValue']){if('default'==_0x1e48fd['oldValue'])return _0x2c5310;let _0x44da2b=_0x18c06e['head'];for(;_0x44da2b;){if(_0x44da2b['data']&&'listType'==_0x44da2b['data']['key']&&_0x44da2b['data']['newValue'])return _0x2c5310;_0x44da2b=_0x44da2b['next'];}return{'type':'format','content':''+o(_0x329d30,'*Remove\x20format:*\x20%0',o(_0x329d30,this['_getTranslationKeyForListStyle'](_0x1e48fd['oldValue'])))};}if('default'!=_0x1e48fd['newValue'])return{'type':'format','content':''+o(_0x329d30,'*Set\x20format:*\x20%0',o(_0x329d30,this['_getTranslationKeyForListStyle'](_0x1e48fd['newValue'])))};let _0x1b8b3c=_0x18c06e['head'];for(;_0x1b8b3c;){if(_0x1b8b3c['data']&&'listType'==_0x1b8b3c['data']['key']&&_0x1b8b3c['data']['newValue']&&_0x1b8b3c['data']['oldValue'])return _0x2c5310;_0x1b8b3c=_0x1b8b3c['next'];}return{'type':'format','content':o(_0x329d30,'*Set\x20format:*\x20%0',o(_0x329d30,'ELEMENT_'+_0x18c06e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x34dc43=this['editor'],_0x2989f5=_0x34dc43['locale'];_0x34dc43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf8ee3e=>{if('formatBlock'!=_0xf8ee3e['type'])return;const {data:_0x4770ac}=_0xf8ee3e;if(!_0x4770ac)return;let _0x39272a,_0x310872;switch(_0x4770ac['commandName']){case'listStyle':_0x39272a='*Change\x20to:*\x20%0',_0x310872={'type':'format','content':o(_0x2989f5,_0x39272a,o(_0x2989f5,this['_getTranslationKeyForListStyle'](_0x4770ac['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39272a=_0x4770ac['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x310872={'type':'format','content':o(_0x2989f5,_0x39272a)};break;case'listStart':_0x39272a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x310872={'type':'format','content':o(_0x2989f5,_0x39272a,_0x4770ac['commandParams'][0x0]['startIndex'])};}return _0x310872;});}['_getTranslationKeyForListStyle'](_0x52ee0d){return'ELEMENT_'+function(_0x365fea){if(pe['includes'](_0x365fea))return'bulleted';if(ye['includes'](_0x365fea))return'numbered';return null;}(_0x52ee0d)['toUpperCase']()+'_LIST_'+_0x52ee0d['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x2196b4{static get['requires'](){return[_0x63b7bd];}['init'](){const _0x9cd71a=this['editor'],_0x280694=_0x9cd71a['plugins']['get']('TrackChangesEditing'),_0x128764=_0x9cd71a['commands']['get']('enter');_0x280694['enableCommand']('enter',()=>{_0x9cd71a['model']['change'](_0x73ab2b=>{const _0x3b2e41=_0x9cd71a['model']['document']['selection'],_0x5d3bc0=_0x3b2e41['getFirstPosition'](),_0x39ea19=_0x186ef9['fromRange'](_0x3b2e41['getFirstRange']());if(_0x128764['enterBlock'](_0x73ab2b)){const _0x5cd261=_0x9cd71a['model']['createPositionAt'](_0x5d3bc0['parent']['nextSibling'],0x0),_0x284239=_0x73ab2b['createRange'](_0x5d3bc0,_0x5cd261);_0x280694['markInsertion'](_0x284239);}else _0x73ab2b['setSelection'](_0x73ab2b['createRange'](_0x39ea19['end']));_0x39ea19['detach'](),_0x128764['fire']('afterExecute',{'writer':_0x73ab2b});});}),_0x9cd71a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x9cd71a,'split'),{'priority':'high'}),_0x9cd71a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xdf6e91,_0x4ceef3,_0x3146a4)=>{const _0x4645ca=_0x3146a4['mapper']['markerNameToElements'](_0x4ceef3['markerName']);if(_0x4645ca){for(const _0x4c7cab of _0x4645ca)_0x4c7cab['hasClass']('ck-suggestion-marker-split')&&(_0x3146a4['mapper']['unbindElementFromMarkerName'](_0x4c7cab,_0x4ceef3['markerName']),_0x3146a4['writer']['remove'](_0x4c7cab));}},{'priority':'high'}),_0x9cd71a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xafae,_0x27e063,_0x21eb8b)=>{_0x21eb8b['options']['showSuggestionHighlights']&&_e(_0x9cd71a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xafae,_0x27e063,_0x21eb8b);},{'priority':'high'});}}class J extends _0x2196b4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4480b9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4480b9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4480b9['enableCommand']('findNext'),_0x4480b9['enableCommand']('findPrevious'),_0x4480b9['enableCommand']('replace'),_0x4480b9['enableCommand']('replaceAll');}['handleFindCommand'](_0x433d5d,_0x1e4b39,_0x56ccec={}){const _0x57bba7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x433d5d(_0x5d6314=>('string'==typeof _0x1e4b39?_0x57bba7['findByTextCallback'](_0x1e4b39,_0x56ccec):_0x1e4b39)(_0x5d6314)['filter'](_0x3ecb20=>!0x1===this['_isInDeletionRange'](_0x3ecb20,_0x5d6314['item'])),_0x56ccec);}['_isInDeletionRange'](_0x395fad,_0x57cc1b){const _0xdbcfe6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57cc1b,_0x395fad['start']),this['editor']['model']['createPositionAt'](_0x57cc1b,_0x395fad['end']));for(const _0x57c2e4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xdbcfe6['getIntersection'](_0x57c2e4['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 _0x2196b4{['afterInit'](){const _0x31a8df=this['editor']['locale'],_0x5c613f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5f5633,commandName:_0x4b54ad}of ro)this['editor']['plugins']['has'](_0x5f5633)&&(_0x5c613f['enableDefaultAttributesIntegration'](_0x4b54ad),_0x5c613f['registerInlineAttribute'](_0x4b54ad));_0x31a8df['t'],_0x5c613f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x31a8df,'FORMAT_FONT_SIZE')),_0x5c613f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x31a8df,'FORMAT_FONT_FAMILY')),_0x5c613f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x31a8df,'FORMAT_FONT_COLOR')),_0x5c613f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x31a8df,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a3202=this['editor'],_0xb53d5d=_0x2a3202['locale'];_0x2a3202['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x625860=>{const _0x5666d1=_0xb53d5d['t'];if('formatInline'!=_0x625860['type'])return;const {data:_0x4c7c09}=_0x625860;if(null!=_0x4c7c09){if('fontSize'==_0x4c7c09['commandName']){const _0x360a8c=_0x4c7c09['commandParams'][0x0]['value'];if(_0x360a8c){const _0x1eaeb1=_0x5666d1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x37661b=>_0x37661b['model']==_0x360a8c)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb53d5d,'*Set\x20font\x20size:*\x20%0',_0x1eaeb1)};}return{'type':'format','content':o(_0xb53d5d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c7c09['commandName']){const _0x3a18a9=_0x4c7c09['commandParams'][0x0]['value'];return _0x3a18a9?{'type':'format','content':o(_0xb53d5d,'*Set\x20font\x20family:*\x20%0',_0x3a18a9)}:{'type':'format','content':o(_0xb53d5d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c7c09['commandName']){const _0x4ac4a5=_0x4c7c09['commandParams'][0x0]['value'];if(_0x4ac4a5){const _0xc5916c=_0x415cac(this['editor']['config']['get']('fontColor.colors'))['find'](_0x399f64=>_0x399f64['model']==_0x4ac4a5);let _0x40cb4e=_0x4ac4a5,_0x331cbb='';return _0xc5916c&&(_0x40cb4e=_0xc5916c['label'],_0x331cbb=_0x5666d1(_0x40cb4e)['toLowerCase']()),{'type':'format','content':o(_0xb53d5d,'*Set\x20font\x20color:*\x20%0',_0x331cbb)['trim'](),'color':{'value':_0x4ac4a5,'title':_0x331cbb||_0x40cb4e}};}return{'type':'format','content':o(_0xb53d5d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c7c09['commandName']){const _0x58e5d2=_0x4c7c09['commandParams'][0x0]['value'];if(_0x58e5d2){const _0x50d9c4=_0x415cac(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5d9c02=>_0x5d9c02['model']==_0x58e5d2);let _0x441c25=_0x58e5d2,_0x1b8eea='';return _0x50d9c4&&(_0x441c25=_0x50d9c4['label'],_0x1b8eea=_0x5666d1(_0x441c25)['toLowerCase']()),{'type':'format','content':o(_0xb53d5d,'*Set\x20font\x20background\x20color:*\x20%0',_0x1b8eea)['trim'](),'color':{'value':_0x58e5d2,'title':_0x1b8eea||_0x441c25}};}return{'type':'format','content':o(_0xb53d5d,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x2196b4{['afterInit'](){const _0x493c1c=this['editor'],_0x449954=_0x493c1c['plugins']['get']('TrackChangesEditing'),_0x5db2f8=_0x493c1c['commands']['get']('copyFormat'),_0x36bea4=_0x493c1c['commands']['get']('pasteFormat');_0x5db2f8&&_0x36bea4&&(_0x449954['enableDefaultAttributesIntegration']('pasteFormat'),_0x449954['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x39ebde=this['editor'],_0x4dbc60=_0x39ebde['locale'];_0x39ebde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b4aa8=>{if('formatBlock'!=_0x3b4aa8['type']&&'formatInline'!=_0x3b4aa8['type'])return;const {data:_0x244eba}=_0x3b4aa8;if(_0x244eba&&'pasteFormat'===_0x244eba['commandName']){const _0xfad57e=[],_0x5dfd3a=_0x244eba['commandParams'][0x0];for(const [_0x573a2e,_0xfae709]of Object['entries'](_0x5dfd3a))_0xfad57e['push'](so(_0x39ebde,_0x573a2e,_0xfae709));return _0xfad57e['length']?{'type':'format','content':o(_0x4dbc60,'*Set\x20format\x20to:*\x20%0',_0xfad57e['join'](',\x20'))}:{'type':'format','content':o(_0x4dbc60,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3f200a,_0x18ba78,_0x378ea5){const _0x590745=_0x3f200a['locale']['t'],_0x263d53=_0x18ba78['split'](/(?=[A-Z])/)['join']('\x20'),_0x596d98=_0x590745(_0x263d53['charAt'](0x0)['toUpperCase']()+_0x263d53['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x378ea5)return _0x596d98;if('fontColor'===_0x18ba78||'fontBackgroundColor'===_0x18ba78){const _0xcb89c9=_0x415cac(_0x3f200a['config']['get']('fontColor.colors'))['find'](_0x49240d=>_0x49240d['model']==_0x378ea5);return _0x596d98+'\x20('+(_0xcb89c9?_0x590745(_0xcb89c9['label'])['toLowerCase']():_0x378ea5)+')';}if('fontSize'===_0x18ba78&&isNaN(parseFloat(_0x378ea5))){const _0x5140a2=_0x3f200a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3f200a['config']['get']('fontSize.options'))['find'](_0x24d146=>_0x24d146['model']==_0x378ea5);return _0x596d98+'\x20('+(_0x5140a2?_0x590745(_0x5140a2['title'])['toLowerCase']():_0x378ea5)+')';}return _0x596d98+'\x20('+_0x378ea5+')';}class Y extends _0x2196b4{['_headingOptions'];['afterInit'](){const _0x126d47=this['editor'];if(!_0x126d47['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x126d47['config']['get']('heading.options');const _0x46ca8a=_0x126d47['locale'],_0xbdb90c=_0x126d47['plugins']['get']('TrackChangesEditing');_0xbdb90c['enableDefaultAttributesIntegration']('heading');for(const _0x253d08 of this['_headingOptions'])'paragraph'!=_0x253d08['model']&&_0xbdb90c['descriptionFactory']['registerElementLabel'](_0x253d08['model'],_0x555082=>{const _0x457274=this['_getHeadingLevel'](_0x253d08['model']);return null!==_0x457274?_0x49b234(_0x555082,_0x457274):_0x560710(_0x555082,_0x253d08['title']);});function _0x49b234(_0x15a685,_0x391194){return o(_0x46ca8a,'ELEMENT_HEADING',[_0x15a685,_0x391194]);}function _0x560710(_0x3ace44,_0x290362){return o(_0x46ca8a,'ELEMENT_HEADING_CUSTOM',[_0x3ace44,_0x290362]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x122c97=this['editor'],_0x2b7786=_0x122c97['locale'];function _0xe433e9(_0x446897,_0x19973f){return o(_0x2b7786,'ELEMENT_HEADING_CUSTOM',[_0x446897,_0x19973f]);}_0x122c97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354e1b=>{if('formatBlock'!=_0x354e1b['type'])return;const {data:_0x56df61}=_0x354e1b;if(_0x56df61&&'heading'==_0x56df61['commandName']){const _0x2a4eeb=_0x56df61['commandParams'][0x0]['value'],_0x22c53b=this['_getHeadingLevel'](_0x2a4eeb);if(null!==_0x22c53b)return{'type':'format','content':o(_0x2b7786,'*Change\x20to:*\x20%0',(_0x1577aa=0x1,_0x5134d3=_0x22c53b,o(_0x2b7786,'ELEMENT_HEADING',[_0x1577aa,_0x5134d3])))};const _0x2aecba=this['_headingOptions']['find'](_0x4e3b30=>_0x4e3b30['model']===_0x2a4eeb)['title'];return{'type':'format','content':o(_0x2b7786,'*Change\x20to:*\x20%0',_0xe433e9(0x1,_0x2aecba))};}var _0x1577aa,_0x5134d3;});}['_getHeadingLevel'](_0x175f5e){const _0x1b001f=_0x175f5e['match'](/^heading(\d+)/);if(_0x1b001f)return _0x1b001f[0x1];const _0x1001a9=this['_headingOptions']?.['find'](_0x49f8fa=>_0x49f8fa['model']==_0x175f5e);if(_0x1001a9&&_0x1001a9['view']){const _0x2ce39f=_0x1001a9['view'],_0x4335e9=(_0x2ce39f['name']??_0x2ce39f)['match'](/^h(\d+)/);if(_0x4335e9)return _0x4335e9[0x1];}return null;}}class Z extends _0x2196b4{['afterInit'](){const _0x1b7b25=this['editor'];if(!_0x1b7b25['plugins']['has']('HighlightEditing'))return;const _0x1eff19=_0x1b7b25['plugins']['get']('TrackChangesEditing'),_0x5a8c9c=_0x1b7b25['locale'];_0x1eff19['enableDefaultAttributesIntegration']('highlight'),_0x1eff19['registerInlineAttribute']('highlight'),_0x1eff19['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5a8c9c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b7883=this['editor'],_0x19bb79=_0x2b7883['locale'];_0x2b7883['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x550ec8=>{if('formatInline'!=_0x550ec8['type'])return;const {data:_0x2d3641}=_0x550ec8;if(_0x2d3641&&'highlight'==_0x2d3641['commandName']){const _0x9ab286=_0x19bb79['t'],_0x1d41b3=_0x2d3641['commandParams'][0x0]['value'];if(_0x1d41b3){const _0xeb98f4=_0x2b7883['config']['get']('highlight.options')['find'](_0x4c7ef1=>_0x4c7ef1['model']==_0x1d41b3),_0x51fd05=_0x9ab286(_0xeb98f4['title'])['toLowerCase']();return{'type':'format','content':o(_0x19bb79,'*Set\x20highlight:*\x20%0',_0x51fd05),'color':{'value':_0xeb98f4['color'],'title':_0xeb98f4['title']}};}return{'type':'format','content':o(_0x19bb79,'*Remove\x20highlight*',o(_0x19bb79,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x2196b4{['afterInit'](){const _0x9b918a=this['editor'];if(!_0x9b918a['plugins']['has']('HorizontalLineEditing'))return;_0x9b918a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5de1a2=_0x9b918a['plugins']['get']('TrackChangesEditing'),_0x3fa1c0=_0x9b918a['locale'];_0x5de1a2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x46f057=>o(_0x3fa1c0,'ELEMENT_HORIZONTAL_LINE',_0x46f057)),_0x9b918a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x269bb6,{writer:_0x268aa0,options:_0x4ed9ac})=>{if(!_0x4ed9ac['showSuggestionHighlights'])return null;const _0xcc8556=_0x268aa0['createContainerElement']('div'),_0x438c44=_0x268aa0['createEmptyElement']('hr');return _0x268aa0['addClass']('ck-horizontal-line',_0xcc8556),_0x268aa0['insert'](_0x268aa0['createPositionAt'](_0xcc8556,0x0),_0x438c44),_0xcc8556;},'converterPriority':'high'});}}class et extends _0x2196b4{['afterInit'](){const _0x5f0d7c=this['editor'];if(!_0x5f0d7c['plugins']['has']('HtmlEmbed'))return;const _0x1bdcdf=_0x5f0d7c['plugins']['get']('TrackChangesEditing'),_0x35fc06=_0x5f0d7c['locale'];_0x1bdcdf['descriptionFactory']['registerElementLabel']('rawHtml',_0x594c78=>o(_0x35fc06,'ELEMENT_HTML_EMBED',_0x594c78)),_0x1bdcdf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1bdcdf['registerBlockAttribute']('value'),_0x1bdcdf['descriptionFactory']['registerDescriptionCallback'](_0x22b480=>{if('attribute'!=_0x22b480['type'])return;const {data:_0x3d0342}=_0x22b480;if(_0x3d0342&&'value'==_0x3d0342['key']&&_0x22b480['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1e0a8c=o(_0x35fc06,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x35fc06,'*Change\x20%0\x20content*',_0x1e0a8c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f8f3c=this['editor'],_0x117400=_0x3f8f3c['locale'];_0x3f8f3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178bb1=>{if('formatBlock'!=_0x178bb1['type'])return;const {data:_0x548013}=_0x178bb1;if(_0x548013&&'htmlEmbed'==_0x548013['commandName']){const _0x1b91bf=o(_0x117400,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x117400,'*Change\x20%0\x20content*',_0x1b91bf)};}});}}class it extends _0x2196b4{['afterInit'](){const _0x44cf2b=this['editor'];if(!_0x44cf2b['plugins']['has']('ImageEditing'))return;const _0x112756=_0x44cf2b['plugins']['get']('TrackChangesEditing'),_0x4164bf=_0x44cf2b['plugins']['get']('ImageUtils'),_0xcd02ad=_0x44cf2b['locale'];_0x112756['enableCommand']('insertImage'),_0x112756['descriptionFactory']['registerElementLabel']('imageBlock',_0x116217=>o(_0xcd02ad,'ELEMENT_IMAGE',_0x116217)),_0x112756['descriptionFactory']['registerElementLabel']('imageInline',_0x5786d7=>o(_0xcd02ad,'ELEMENT_INLINE_IMAGE',_0x5786d7)),_0x112756['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xcd02ad,'ELEMENT_CAPTION')),_0x44cf2b['plugins']['has']('ImageUploadEditing')&&_0x112756['enableCommand']('uploadImage'),_0x44cf2b['plugins']['has']('ImageBlockEditing')&&_0x44cf2b['plugins']['has']('ImageInlineEditing')&&(_0x112756['enableCommand']('imageTypeInline',(_0x4029c9,_0x45f229)=>{const _0xeea3ab=_0x4164bf['getClosestSelectedImageElement'](_0x44cf2b['model']['document']['selection']);_0x44cf2b['model']['change'](()=>{_0x112756['markBlockFormat'](_0xeea3ab,{'commandName':'imageTypeInline','commandParams':[_0x45f229]},[],'convertBlockImageToInline');});}),_0x112756['enableCommand']('imageTypeBlock',(_0x30a693,_0xbeb172)=>{_0x44cf2b['model']['change'](_0x5c23b9=>{let _0x5f3bd8=_0x4164bf['getClosestSelectedImageElement'](_0x44cf2b['model']['document']['selection']),_0x1b4329=_0x5c23b9['createRangeOn'](_0x5f3bd8);const _0xf58a30=_0x38d3d9['fromPosition'](_0x1b4329['start'],'toPrevious'),_0x47ef0d=_0x38d3d9['fromPosition'](_0x1b4329['end'],'toNext');_0x112756['forceDefaultExecution'](()=>_0x30a693(_0xbeb172)),_0x5f3bd8=_0x4164bf['getClosestSelectedImageElement'](_0x44cf2b['model']['document']['selection']),_0x1b4329=_0x5c23b9['createRangeOn'](_0x5f3bd8);const _0x49fb44=_0x5c23b9['createRange'](_0xf58a30,_0x47ef0d);_0xf58a30['detach'](),_0x47ef0d['detach'](),_0x112756['markBlockFormat'](_0x5f3bd8,{'commandName':'imageTypeInline','commandParams':[_0xbeb172]},[],'convertInlineImageToBlock'),_0x49fb44['start']['isBefore'](_0x1b4329['start'])&&_0x112756['markInsertion'](_0x5c23b9['createRange'](_0x49fb44['start'],_0x1b4329['start']),'convertInlineImageToBlock'),_0x1b4329['end']['isBefore'](_0x49fb44['end'])&&_0x112756['markInsertion'](_0x5c23b9['createRange'](_0x1b4329['end'],_0x49fb44['end']),'convertInlineImageToBlock');});}),_0x112756['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x112756['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x112756['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x112756['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x112756['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x112756['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x36374b])=>{const _0x54a436=_0x112756['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5c33dc=_0x36374b['start'],_0x1a8c4a=_0x36374b['end'];const _0x3d9888=_0x44cf2b['model']['schema']['getNearestSelectionRange'](_0x5c33dc,'backward'),_0xa20569=_0x44cf2b['model']['schema']['getNearestSelectionRange'](_0x1a8c4a,'forward');_0x3d9888['isCollapsed']&&(_0x5c33dc=_0x3d9888['start']),_0xa20569['isCollapsed']&&(_0x1a8c4a=_0xa20569['end']),_0x54a436([_0x44cf2b['model']['createRange'](_0x5c33dc,_0x1a8c4a)]);}),_0x112756['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x266df9),_0x112756['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x266df9)),_0x44cf2b['plugins']['has']('ImageCaptionEditing')&&(_0x112756['enableCommand']('toggleImageCaption',(_0x5252dc,_0x32f3d7)=>{const _0x18eff7=_0x44cf2b['plugins']['get']('ImageCaptionUtils');let _0x2f1394=_0x4164bf['getClosestSelectedImageElement'](_0x44cf2b['model']['document']['selection']),_0x1d7317=_0x18eff7['getCaptionFromImageModelElement'](_0x2f1394);_0x44cf2b['model']['change'](()=>{if(_0x1d7317)return void _0x112756['markDeletion'](_0x44cf2b['model']['createRangeOn'](_0x1d7317));const _0x370312=_0x4164bf['isBlockImage'](_0x2f1394);_0x5252dc(_0x32f3d7),_0x2f1394=_0x4164bf['getClosestSelectedImageElement'](_0x44cf2b['model']['document']['selection']),_0x1d7317=_0x18eff7['getCaptionFromImageModelElement'](_0x2f1394),_0x112756['markInsertion'](_0x44cf2b['model']['createRangeOn'](_0x1d7317),_0x370312?null:'imageCaption');});}),_0x112756['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x266df9));const _0x2fb7c6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b39dc(_0x5113bd,_0x32958b){const _0x27e49c=_0x2fb7c6['findIndex'](({type:_0x582586,subType:_0x4d1a32})=>_0x5113bd['type']==_0x582586&&_0x5113bd['subType']==_0x4d1a32),_0x3a4636=_0x2fb7c6['findIndex'](({type:_0x1b58a8,subType:_0x38b9ca})=>_0x32958b['type']==_0x1b58a8&&_0x32958b['subType']==_0x38b9ca);if(_0x27e49c<0x0||_0x3a4636<0x0)return!0x1;const _0xf311c1=_0x5113bd['getFirstRange'](),_0x38a6f1=_0x32958b['getFirstRange']();if((0x0==_0x27e49c||0x1==_0x27e49c)&&0x2==_0x3a4636&&_0xf311c1['isIntersecting'](_0x38a6f1))return!0x0;if(0x2==_0x27e49c&&0x3==_0x3a4636){const _0x414019=_0x112756['_findSuggestions'](_0xf311c1,'insertion')['filter'](({suggestion:_0x301876,meta:_0x28c7b4})=>_0x28c7b4['isOwn']&&'convertInlineImageToBlock'==_0x301876['subType']);if(_0x414019['length']>0x1&&_0x38a6f1['end']['isEqual'](_0xf311c1['start']))return!0x0;if(0x1==_0x414019['length']&&(_0xf311c1['start']['isEqual'](_0x38a6f1['end'])||_0xf311c1['end']['isEqual'](_0x38a6f1['start'])))return!0x0;}if(0x3==_0x27e49c&&0x3==_0x3a4636&&_0xf311c1['start']['isBefore'](_0x38a6f1['start'])){const _0x40ab71=_0xf311c1['end']['nodeAfter'],_0x36682c=_0x38a6f1['start']['nodeBefore'];return _0x4164bf['isBlockImage'](_0x40ab71)&&_0x40ab71===_0x36682c;}return!0x1;}function _0x266df9(_0x4a7f60,_0x5bf2e7){return _0x2b39dc(_0x4a7f60,_0x5bf2e7)?[_0x4a7f60,_0x5bf2e7]:_0x2b39dc(_0x5bf2e7,_0x4a7f60)?[_0x5bf2e7,_0x4a7f60]:null;}_0x44cf2b['plugins']['has']('ImageResize')&&(_0x112756['enableDefaultAttributesIntegration']('resizeImage'),_0x112756['registerBlockAttribute']('resizedWidth'),_0x112756['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xcd02ad,'FORMAT_IMAGE_SIZE'))),_0x44cf2b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x112756['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x112756['registerBlockAttribute']('alt')),_0x112756['descriptionFactory']['registerDescriptionCallback'](_0x103af4=>{if(!!_0x2fb7c6['find'](({type:_0x372950,subType:_0x493668})=>_0x103af4['type']==_0x372950&&_0x103af4['subType']==_0x493668))return _0x103af4['previous']?{}:void 0x0;}),_0x112756['descriptionFactory']['registerDescriptionCallback'](_0x351625=>{if('insertion'==_0x351625['type']||'deletion'==_0x351625['type']){const _0x4b69cf=_0x351625['getContainedElement']();if(_0x4b69cf&&_0x4b69cf['is']('element','caption'))return{'type':'insertion'==_0x351625['type']?'addObject':'removeObject','element':_0x4b69cf,'quantity':0x1};}}),_0x112756['descriptionFactory']['registerDescriptionCallback'](_0xa3a376=>'formatBlock'==_0xa3a376['type']&&'convertInlineImageToBlock'==_0xa3a376['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xa3a376['type']&&'convertBlockImageToInline'==_0xa3a376['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x112756['descriptionFactory']['registerDescriptionCallback'](_0x1826ef=>{if('attribute'!=_0x1826ef['type'])return;const {data:_0x2dddf9}=_0x1826ef;if(!_0x2dddf9||'alt'!=_0x2dddf9['key'])return;const _0x1b4b50=_0x2dddf9['newValue'];return _0x1b4b50?{'type':'format','content':o(_0xcd02ad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b4b50+'\x22')}:{'type':'format','content':o(_0xcd02ad,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x285a41=this['editor'],_0x27524c=_0x285a41['locale'];_0x285a41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37f4d7=>{if('formatBlock'!=_0x37f4d7['type']&&'formatInline'!=_0x37f4d7['type'])return;const {data:_0x47c485}=_0x37f4d7;if(_0x47c485){if('imageTextAlternative'==_0x47c485['commandName']){const _0xc8cfe5=_0x47c485['commandParams'][0x0]['newValue'];return _0xc8cfe5?{'type':'format','content':o(_0x27524c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xc8cfe5+'\x22')}:{'type':'format','content':o(_0x27524c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x47c485['commandName']){const _0x2012cf=_0x47c485['commandParams'][0x0]['width'];return _0x2012cf?{'type':'format','content':o(_0x27524c,'*Set\x20image\x20width:*\x20%0',_0x2012cf)}:{'type':'format','content':o(_0x27524c,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2196b4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x552d3d=this['editor']['locale'],_0x30a7fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x30a7fb['enableDefaultAttributesIntegration']('replaceImageSource'),_0x30a7fb['registerBlockAttribute']('src'),_0x30a7fb['descriptionFactory']['registerDescriptionCallback'](_0x4c3058=>{if('attribute'!=_0x4c3058['type'])return;const {data:_0x11b222}=_0x4c3058;return _0x11b222&&'src'==_0x11b222['key']?_0x11b222['newValue']&&_0x11b222['oldValue']?{'type':'format','content':o(_0x552d3d,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2ac888=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ac888['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2ac888['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ac888['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2ac888['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f10a5=this['editor'],_0x476a34=_0x3f10a5['locale'];_0x3f10a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x571eab=>{if('formatBlock'!=_0x571eab['type']&&'formatInline'!=_0x571eab['type'])return;const {data:_0x4911ee}=_0x571eab;if(!_0x4911ee||'replaceImageSource'!=_0x4911ee['commandName'])return;return{'type':'format','content':o(_0x476a34,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x2196b4{['afterInit'](){const _0x2806f1=this['editor'];if(!_0x2806f1['plugins']['has']('ImageStyleEditing'))return;const _0x139a17=_0x2806f1['plugins']['get']('TrackChangesEditing'),_0x2c8eb2=_0x2806f1['plugins']['get']('ImageUtils'),_0x1b8fa5={};_0x139a17['enableCommand']('imageStyle',(_0x32539d,_0x31907d)=>{const _0x21cc65=_0x2806f1['plugins']['get']('Users')['me'],_0x41ca98=_0x2806f1['commands']['get']('imageStyle');let _0x247a19=_0x2c8eb2['getClosestSelectedImageElement'](_0x2806f1['model']['document']['selection']),_0x46c142=_0x2806f1['model']['createRangeOn'](_0x247a19),_0x9ec1a3=_0x41ca98['value'];if(_0x9ec1a3==_0x31907d['value'])return;const _0x2d4da9={'commandName':'imageStyle','commandParams':[_0x31907d],'formatGroupId':_0x245371()};_0x2806f1['model']['change'](()=>{if(_0x139a17['getSuggestions']()['filter'](_0x21b3f6=>_0x21b3f6['isInContent']&&_0x21cc65==_0x21b3f6['author']&&('formatBlock'==_0x21b3f6['type']||'formatInline'==_0x21b3f6['type'])&&('imageStylePreApply'==_0x21b3f6['subType']||'imageStylePostApply'==_0x21b3f6['subType'])&&_0x21b3f6['getFirstRange']()['isEqual'](_0x46c142))['forEach'](_0x20592b=>_0x139a17['discardSuggestion'](_0x20592b['head'])),_0x247a19=_0x2c8eb2['getClosestSelectedImageElement'](_0x2806f1['model']['document']['selection']),_0x46c142=_0x2806f1['model']['createRangeOn'](_0x247a19),_0x41ca98['refresh'](),_0x2806f1['commands']['get']('imageTypeInline')['refresh'](),_0x2806f1['commands']['get']('imageTypeBlock')['refresh'](),_0x9ec1a3=_0x41ca98['value'],_0x9ec1a3!=_0x31907d['value'])return _0x2c8eb2['isInlineImage'](_0x247a19)&&_0x41ca98['shouldConvertImageType'](_0x31907d['value'],_0x247a19)?(_0x32539d({..._0x31907d,'setImageSizes':!0x1}),_0x247a19=_0x2c8eb2['getClosestSelectedImageElement'](_0x2806f1['model']['document']['selection']),void _0x139a17['markBlockFormat'](_0x247a19,{..._0x2d4da9,'commandReversedParams':[{'value':_0x9ec1a3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c8eb2['isBlockImage'](_0x247a19)?_0x139a17['markBlockFormat'](_0x247a19,_0x2d4da9,[],'imageStylePostApply'):_0x139a17['markInlineFormat'](_0x46c142,_0x2d4da9,'imageStylePostApply'));});});for(const _0x6d605a of _0x2806f1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1b8fa5[_0x6d605a['name']]=_0x6d605a['title']['toLowerCase']();_0x139a17['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x139a17['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x139a17['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x139a17['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x377824])=>{_0x2c8eb2['setImageNaturalSizeAttributes'](_0x377824['getContainedElement']());}),_0x139a17['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x9c51b9,_0xdf52c6)=>{_0x139a17['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x9c51b9,{'commandName':_0xdf52c6['commandName'],'commandParams':_0xdf52c6['commandReversedParams']});}),_0x139a17['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5c539e,_0x178351){if(_0x408996(_0x5c539e,_0x178351))return[_0x5c539e,_0x178351];if(_0x408996(_0x178351,_0x5c539e))return[_0x178351,_0x5c539e];return null;});const _0x133f3c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x408996(_0x11a074,_0x117109){const _0x29d305=_0x133f3c['findIndex'](({type:_0x3d62ca,subType:_0x5531c1})=>_0x11a074['type']==_0x3d62ca&&_0x11a074['subType']==_0x5531c1),_0x3521ec=_0x133f3c['findIndex'](({type:_0x245393,subType:_0xe3da22})=>_0x117109['type']==_0x245393&&_0x117109['subType']==_0xe3da22);if(_0x29d305<0x0||_0x3521ec<0x0)return!0x1;const _0x40adf0=_0x11a074['getFirstRange'](),_0x5a6a93=_0x117109['getFirstRange']();if((0x0==_0x29d305||0x1==_0x29d305)&&0x2==_0x3521ec&&_0x40adf0['isIntersecting'](_0x5a6a93))return!0x0;if(0x2==_0x29d305&&0x3==_0x3521ec){const _0x432bd6=_0x139a17['_findSuggestions'](_0x40adf0,'insertion')['filter'](({suggestion:_0x4b09e3,meta:_0x20a103})=>_0x20a103['isOwn']&&'convertInlineImageToBlock'==_0x4b09e3['subType']);if(_0x432bd6['length']>0x1&&_0x5a6a93['end']['isEqual'](_0x40adf0['start']))return!0x0;if(0x1==_0x432bd6['length']&&(_0x40adf0['start']['isEqual'](_0x5a6a93['end'])||_0x40adf0['end']['isEqual'](_0x5a6a93['start'])))return!0x0;}if(0x3==_0x29d305&&0x3==_0x3521ec&&_0x40adf0['start']['isBefore'](_0x5a6a93['start'])){const _0x12eb68=_0x40adf0['end']['nodeAfter'],_0x4b70a0=_0x5a6a93['start']['nodeBefore'];return _0x2c8eb2['isBlockImage'](_0x12eb68)&&_0x12eb68===_0x4b70a0;}return!0x1;}_0x2806f1['model']['document']['registerPostFixer'](()=>{let _0x4ba418=!0x1;const _0x3d482b=Array['from'](_0x2806f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xac69ef,data:_0x185094}of _0x3d482b){const {group:_0x454687,type:_0x58d0a7,subType:_0x2aa64d,id:_0x2dd1b4}=_0x139a17['_splitMarkerName'](_0xac69ef);if('suggestion'==_0x454687&&_0x139a17['hasSuggestion'](_0x2dd1b4)){if('formatBlock'==_0x58d0a7&&('imageStylePreApply'==_0x2aa64d||'imageStylePostApply'==_0x2aa64d)){const _0x5337fd=_0x139a17['getSuggestion'](_0x2dd1b4);if(_0x185094['newRange']){const _0x54e901=_0x5337fd['getFirstRange']()['getContainedElement']();if(_0x2c8eb2['isBlockImage'](_0x54e901))continue;_0x139a17['discardSuggestion'](_0x5337fd),_0x4ba418=!0x0;}}if('insertion'==_0x58d0a7&&'imageCaption'==_0x2aa64d&&!_0x185094['newRange']){const _0x2caed9=_0x139a17['getSuggestion'](_0x2dd1b4);_0x2caed9['next']&&_0x2caed9['next']['isInContent']&&(_0x139a17['discardSuggestion'](_0x2caed9['next']),_0x4ba418=!0x0);}}}return _0x4ba418;}),this['_registerLegacyDescription'](_0x1b8fa5);}['_registerLegacyDescription'](_0x247d68){const _0x53853e=this['editor'],_0x488577=_0x53853e['locale'];_0x53853e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3027fe=>{if('formatBlock'!=_0x3027fe['type']&&'formatInline'!=_0x3027fe['type'])return;const {data:_0x532698}=_0x3027fe;if(!_0x532698||'imageStyle'!=_0x532698['commandName'])return;const _0x50df8f=_0x532698['commandParams'][0x0]['value'];return _0x14dc08('side'===_0x50df8f?o(_0x488577,'FORMAT_SIDE_IMAGE'):_0x247d68[_0x50df8f]||_0x50df8f);function _0x14dc08(_0x4577e6){return{'type':'format','content':o(_0x488577,'*Format:*\x20%0',_0x4577e6)};}});}}class ot extends _0x2196b4{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x458520){super(_0x458520),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1c3bc7=this['editor'],_0x32314a=_0x1c3bc7['commands']['get']('importWord'),_0x5ea05d=_0x1c3bc7['commands']['get']('trackChanges');_0x32314a&&(_0x32314a['on']('execute',(_0x1c2ffe,[,_0x5805e7])=>{this['_trackChangesValueDuringImport']=_0x5ea05d['value'],_0x5805e7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x32314a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x32314a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5ea05d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1c3bc7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5838c7,_0x28f935){const {suggestions:_0x21c504}=_0x28f935,_0x3339ff=this['editor']['commands']['get']('trackChanges'),_0x3a3cf2=_0x3339ff['value'];this['_trackChangesValueDuringImport']!==_0x3a3cf2&&(_0x3339ff['execute'](),this['_trackChangesExecuted']=!0x0),_0x21c504&&_0x21c504['forEach'](({id:_0x7bafe9,type:_0x52a982,author:_0x5ebb76,created_at:_0x3ea7b6})=>{const _0x3171bb={'id':_0x7bafe9,'type':_0x52a982,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5ebb76,'createdAt':_0x3ea7b6?new Date(_0x3ea7b6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3171bb);});}}class rt extends _0x2196b4{['afterInit'](){const _0x53c7e5=this['editor'],_0x4a0f4a=_0x53c7e5['plugins']['get']('TrackChangesEditing');if(_0x53c7e5['plugins']['has']('IndentEditing')&&(_0x4a0f4a['enableCommand']('indent'),_0x4a0f4a['enableCommand']('outdent')),_0x53c7e5['plugins']['has']('IndentBlock')){for(const _0x184db4 of['indentBlock','outdentBlock'])_0x4a0f4a['enableDefaultAttributesIntegration'](_0x184db4);}const _0x56f314=_0x53c7e5['locale'];_0x4a0f4a['registerBlockAttribute']('blockIndent'),_0x4a0f4a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x56f314,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23439f=this['editor'],_0x1fad75=_0x23439f['locale'],_0x8ddd23=_0x23439f['plugins']['get']('TrackChangesEditing');_0x8ddd23['descriptionFactory']['registerDescriptionCallback'](_0x4d9466=>{if('formatBlock'!=_0x4d9466['type'])return;const {data:_0x4b8afd}=_0x4d9466;if(!_0x4b8afd)return;if('indentBlock'!=_0x4b8afd['commandName']&&'outdentBlock'!=_0x4b8afd['commandName'])return;const _0x3696a9=_0x4d9466['getItems']()[0x0],_0x1a4b0a=_0x8ddd23['descriptionFactory']['getItemLabel'](_0x3696a9);return'indentBlock'==_0x4b8afd['commandName']?{'type':'format','content':o(_0x1fad75,'*Indent:*\x20%0',_0x1a4b0a)}:'outdentBlock'==_0x4b8afd['commandName']?{'type':'format','content':o(_0x1fad75,'*Outdent:*\x20%0',_0x1a4b0a)}:void 0x0;});}}class at extends _0x2196b4{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x2196b4{['afterInit'](){const _0x294c7a=this['editor'];if(!_0x294c7a['plugins']['has']('LinkEditing'))return;const _0x3d00c1=_0x294c7a['plugins']['get']('TrackChangesEditing'),_0x2a2f32=_0x294c7a['commands']['get']('link');_0x3d00c1['enableDefaultAttributesIntegration']('link'),_0x3d00c1['enableDefaultAttributesIntegration']('unlink'),_0x3d00c1['registerInlineAttribute']('linkHref');for(const _0x155988 of _0x2a2f32['manualDecorators'])_0x3d00c1['registerInlineAttribute'](_0x155988['id']),_0x3d00c1['descriptionFactory']['registerAttributeLabel'](_0x155988['id'],'link\x20('+_0x155988['label']['toLowerCase']()+')');_0x3d00c1['descriptionFactory']['registerDescriptionCallback'](_0x7ffbf8=>{if('attribute'!=_0x7ffbf8['type'])return;const {data:_0xb7e917}=_0x7ffbf8;if(!_0xb7e917||'linkHref'!=_0xb7e917['key'])return;const _0x46a3c0=_0xb7e917['newValue'],_0x227876=_0x294c7a['locale'];return{'type':'format','content':null==_0x46a3c0?o(_0x227876,'*Remove\x20link*'):o(_0x227876,'*Set\x20link:*\x20%0','\x22'+_0x46a3c0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x203bc7=this['editor'],_0x2010df=_0x203bc7['locale'];_0x203bc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x582d81=>{if('formatInline'!=_0x582d81['type'])return;const {data:_0x5f0232}=_0x582d81;if(_0x5f0232){if('link'==_0x5f0232['commandName']){const _0x10ac68=_0x5f0232['commandParams'][0x0];return{'type':'format','content':o(_0x2010df,'*Set\x20link:*\x20%0','\x22'+_0x10ac68+'\x22')};}return'unlink'==_0x5f0232['commandName']?{'type':'format','content':o(_0x2010df,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x2196b4{['afterInit'](){const _0x4631a3=this['editor'],_0xd7af93=_0x4631a3['locale'];if(!_0x4631a3['plugins']['has']('LegacyListEditing'))return;const _0x58804d=_0x4631a3['plugins']['get']('TrackChangesEditing'),_0x23f5e5=_0x4631a3['plugins']['has']('LegacyTodoListEditing');function _0x468956(_0x2595a7){return()=>{const _0x580745=_0x4631a3['model']['document']['selection'],_0x56086d=_0x4631a3['commands']['get'](_0x2595a7);if(_0x56086d['value'])return void _0x4631a3['execute']('paragraph',{});const _0x2a6eac=_0x2595a7['slice'](0x0,-0x4),_0x2deb75=function(_0x587d1e,_0xdd6ef8,_0xfba628){let _0x8fc140=Array['from'](_0x587d1e)['filter'](_0x16bdb0=>function(_0x19fe30,_0x1872dd){return _0x1872dd['checkChild'](_0x19fe30['parent'],'listItem')&&!_0x1872dd['isObject'](_0x19fe30);}(_0x16bdb0,_0xfba628));_0x8fc140=_0x8fc140['filter'](_0x546cbd=>!_0x546cbd['is']('element','listItem')||_0x546cbd['getAttribute']('listType')!=_0xdd6ef8);const _0x48957f=new Set();for(const _0x4d87bf of _0x8fc140)_0x4d87bf['is']('element','listItem')?_0x48957f['add'](me(_0x4d87bf)):_0x48957f['add'](_0x4d87bf);return Array['from'](_0x48957f);}(_0x580745['getSelectedBlocks'](),_0x2a6eac,_0x4631a3['model']['schema']);_0x4631a3['model']['change'](()=>{for(const _0x1b5925 of _0x2deb75)_0x58804d['markBlockFormat'](_0x1b5925,{'commandName':_0x2595a7,'commandParams':[{'forceValue':!_0x56086d['value']}],'formatGroupId':'blockName'},fe(_0x1b5925));});};}function _0x8fe774(_0x128347){return()=>{const _0x566833=function(_0x433bfc){let _0x215b6e=Array['from'](_0x433bfc);const _0x5dadf0=_0x215b6e['findIndex'](_0x340921=>'listItem'!=_0x340921['name']);return _0x5dadf0>-0x1&&(_0x215b6e=_0x215b6e['slice'](0x0,_0x5dadf0)),_0x215b6e;}(_0x4631a3['model']['document']['selection']['getSelectedBlocks']()),_0x5700f3=_0x4631a3['model']['createRange'](_0x4631a3['model']['createPositionAt'](_0x566833[0x0],'before'),_0x4631a3['model']['createPositionAt'](_0x566833[_0x566833['length']-0x1],'end'));_0x4631a3['model']['change'](()=>{_0x58804d['markBlockFormat'](_0x5700f3,{'commandName':_0x128347,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4c8506){const _0x3ce43b=new Set();for(const _0x58d95d of _0x4c8506){let _0x158fc8=_0x58d95d['nextSibling'];for(;_0x158fc8&&_0x158fc8['getAttribute']('listIndent')>_0x58d95d['getAttribute']('listIndent');)_0x3ce43b['add'](_0x158fc8),_0x158fc8=_0x158fc8['nextSibling'];}return Array['from'](_0x3ce43b);}(_0x566833));});};}_0x58804d['enableCommand']('numberedList',_0x468956('numberedList')),_0x58804d['enableCommand']('bulletedList',_0x468956('bulletedList')),_0x23f5e5&&_0x58804d['enableCommand']('todoList',_0x468956('todoList')),_0x58804d['enableCommand']('indentList',_0x8fe774('indentList')),_0x58804d['enableCommand']('outdentList',_0x8fe774('outdentList')),_0x23f5e5&&_0x58804d['enableCommand']('checkTodoList',()=>{const _0x38076e=_0x4631a3['commands']['get']('checkTodoList'),_0x3f1a9b=Array['from'](_0x38076e['_selectedElements']);_0x3f1a9b['filter'](_0x4dd905=>_0x4dd905['getAttribute']('todoListChecked')!=_0x38076e['value']),_0x4631a3['model']['change'](()=>{for(const _0x4cd28d of _0x3f1a9b)_0x58804d['markBlockFormat'](_0x4cd28d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x38076e['value']}]});});}),_0x58804d['descriptionFactory']['registerElementLabel']('listItem',_0x5c6886=>o(_0xd7af93,'ELEMENT_LIST_ITEM',_0x5c6886)),_0x58804d['descriptionFactory']['registerDescriptionCallback'](_0x46515d=>{if('formatBlock'!=_0x46515d['type']&&'formatInline'!=_0x46515d['type'])return;const {data:_0x35734f}=_0x46515d;if(_0x35734f){if('numberedList'==_0x35734f['commandName']||'bulletedList'==_0x35734f['commandName']||'todoList'==_0x35734f['commandName'])switch(_0x35734f['commandName']['replace']('List','')){case'bulleted':return _0x39bf26(o(_0xd7af93,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39bf26(o(_0xd7af93,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39bf26(o(_0xd7af93,'ELEMENT_TODO_LIST'));}if('indentList'==_0x35734f['commandName'])return{'type':'format','content':o(_0xd7af93,'*Indent:*\x20%0',o(_0xd7af93,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x35734f['commandName'])return{'type':'format','content':o(_0xd7af93,'*Outdent:*\x20%0',o(_0xd7af93,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x35734f['commandName'])return _0x35734f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd7af93,'*Check\x20item*')}:{'type':'format','content':o(_0xd7af93,'*Uncheck\x20item*')};}function _0x39bf26(_0x36e865){return{'type':'format','content':o(_0xd7af93,'*Change\x20to:*\x20%0',_0x36e865)};}});}}function me(_0x114797){const _0x3898d5=_0x114797['getAttribute']('listIndent');if(0x0==_0x3898d5)return _0x114797;let _0x25787b=_0x114797;for(;_0x114797['previousSibling']&&_0x114797['previousSibling']['is']('element','listItem');){const _0x3a016a=_0x114797['previousSibling']['getAttribute']('listIndent');if(_0x3a016a==_0x3898d5)_0x25787b=_0x114797['previousSibling'];else{if(_0x3a016a<_0x3898d5)break;}_0x114797=_0x114797['previousSibling'];}return _0x25787b;}function fe(_0x1f06ee){const _0x12a16b=[];if(_0x1f06ee['is']('element','listItem')&&_0x1f06ee['getAttribute']('listIndent')>0x0){let _0x276fe5=_0x1f06ee['nextSibling'];for(;_0x276fe5&&'listItem'==_0x276fe5['name']&&_0x276fe5['getAttribute']('listIndent')==_0x1f06ee['getAttribute']('listIndent');)_0x12a16b['push'](_0x276fe5),_0x276fe5=_0x276fe5['nextSibling'];}return _0x12a16b;}class K extends _0x2196b4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x45011d=this['editor']['config']['get']('list.properties'),_0x4497dd=this['editor']['plugins']['get']('TrackChangesEditing');_0x45011d['styles']&&_0x4497dd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x45011d['reversed']&&_0x4497dd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x45011d['startIndex']&&_0x4497dd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4497dd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xcb9bc7,_0x2f6ec8={}){const _0x476683=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b0979=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x476683['markMultiRangeBlockFormat'](_0x5b0979,{'commandName':'listStyle','commandParams':[{'type':_0x2f6ec8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x38a311,_0x140621={}){const _0x2800c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50f515=this['_getSuggestionBlocks'](_0x3129be=>_0x3129be['is']('element','listItem')&&'numbered'===_0x3129be['getAttribute']('listType'));if(_0x50f515['length']<0x1)return;const _0x394bb7=_0x50f515['map'](_0x432987=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x432987,'before'),this['editor']['model']['createPositionAt'](_0x432987,0x0)));this['editor']['model']['change'](()=>{_0x2800c8['markMultiRangeBlockFormat'](_0x394bb7,{'commandName':'listReversed','commandParams':[{'reversed':_0x140621['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1c8c98,_0x1f2f48={}){const _0x27cacf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32e973=this['_getSuggestionBlocks'](_0x56fd42=>_0x56fd42['is']('element','listItem')&&'numbered'===_0x56fd42['getAttribute']('listType'));if(_0x32e973['length']<0x1)return;const _0x48bed4=_0x32e973['map'](_0x11bb31=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11bb31,'before'),this['editor']['model']['createPositionAt'](_0x11bb31,0x0)));this['editor']['model']['change'](()=>{_0x27cacf['markMultiRangeBlockFormat'](_0x48bed4,{'commandName':'listStart','commandParams':[{'startIndex':_0x1f2f48['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4d9ad6){if('formatBlock'!=_0x4d9ad6['type']&&'formatInline'!=_0x4d9ad6['type'])return;const _0x5d6f15=this['editor']['locale'],{data:_0x50c6b7}=_0x4d9ad6;if(!_0x50c6b7)return;let _0x3c6953,_0x2a5354;switch(_0x50c6b7['commandName']){case'listStyle':_0x3c6953='*Change\x20to:*\x20%0',_0x2a5354={'type':'format','content':o(_0x5d6f15,_0x3c6953,o(_0x5d6f15,this['_getTranslationKeyForListStyle'](_0x50c6b7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c6953=_0x50c6b7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2a5354={'type':'format','content':o(_0x5d6f15,_0x3c6953)};break;case'listStart':_0x3c6953='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a5354={'type':'format','content':o(_0x5d6f15,_0x3c6953,_0x50c6b7['commandParams'][0x0]['startIndex'])};}return _0x2a5354;}['_getSuggestionBlocksForListStyle'](){const _0x48ae41=this['editor']['plugins']['get']('LegacyListUtils');let _0x32c447=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x32c447[0x0]?.['is']('element','listItem')&&_0x32c447['unshift'](..._0x48ae41['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x32c447[_0x32c447['length']-0x1]?.['is']('element','listItem')&&_0x32c447['push'](..._0x48ae41['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x32c447=[...new Set(_0x32c447)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x32c447=_0x32c447['filter'](_0x260b24=>_0x260b24['is']('element','listItem'))),_0x32c447;}['_getSuggestionBlocks'](_0x172ab2){const _0x13c9ec=this['editor']['plugins']['get']('LegacyListUtils');let _0x29dbeb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x172ab2)['map'](_0xc89278=>{const _0x4ccb69=this['editor']['model']['createPositionAt'](_0xc89278,0x0);return[..._0x13c9ec['getSiblingNodes'](_0x4ccb69,'backward'),..._0x13c9ec['getSiblingNodes'](_0x4ccb69,'forward')];})['flat']();return _0x29dbeb=[...new Set(_0x29dbeb)],_0x29dbeb;}['_getTranslationKeyForListStyle'](_0x25c85d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x25c85d)||'default')['toUpperCase']()+'_LIST_'+_0x25c85d['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x2196b4{['afterInit'](){const _0x51e09a=this['editor'];if(!_0x51e09a['plugins']['has']('MediaEmbedEditing'))return;const _0x4c053c=_0x51e09a['plugins']['get']('TrackChangesEditing'),_0x487ac9=_0x51e09a['locale'];_0x4c053c['enableCommand']('mediaEmbed'),_0x4c053c['descriptionFactory']['registerElementLabel']('media',_0x3e75e3=>o(_0x487ac9,'ELEMENT_MEDIA',_0x3e75e3)),_0x51e09a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4eeb57,{writer:_0x285d54,options:_0x49ad3f})=>{if(_0x49ad3f['showSuggestionHighlights'])return _0x285d54['createEmptyElement']('div');},'converterPriority':'high'}),_0x51e09a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2843ef,_0xfb12d0,_0x234183)=>{_0x234183['options']['showSuggestionHighlights']&&_0x2843ef['stop']();},{'priority':'high'});}}class gt extends _0x2196b4{['afterInit'](){const _0x37d658=this['editor'];_0x37d658['plugins']['has']('MentionEditing')&&_0x37d658['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x2196b4{['afterInit'](){const _0x4bcf20=this['editor'],_0xb44fd3=_0x4bcf20['plugins']['get']('TrackChangesEditing');_0x4bcf20['plugins']['has']('MultiLevelList')&&(_0xb44fd3['enableDefaultAttributesIntegration']('multiLevelList'),_0xb44fd3['registerBlockAttribute']('listMarkerStyle'),_0xb44fd3['descriptionFactory']['registerDescriptionCallback'](_0x2239ba=>this['handleDescriptions'](_0x2239ba)));}['handleDescriptions'](_0x53c2b3){const _0x31940d=this['editor']['locale'],{data:_0x5372e2}=_0x53c2b3,_0x1925d2={'type':'format','content':''};if(_0x5372e2&&'listMarkerStyle'==_0x5372e2['key']){if(!_0x5372e2['oldValue'])return{'type':'format','content':o(_0x31940d,'*Set\x20format:*\x20%0',o(_0x31940d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5372e2['newValue']+')'};if(!_0x5372e2['newValue']){let _0xe15db=_0x53c2b3['head'];for(;_0xe15db;){if(_0xe15db['data']&&'listType'==_0xe15db['data']['key']&&_0xe15db['data']['newValue'])return _0x1925d2;_0xe15db=_0xe15db['next'];}return{'type':'format','content':o(_0x31940d,'*Remove\x20format:*\x20%0',o(_0x31940d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5372e2['oldValue']+')'};}}}}class mt extends _0x2196b4{['afterInit'](){const _0x30fb1c=this['editor'];if(!_0x30fb1c['plugins']['has']('PageBreakEditing'))return;_0x30fb1c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x50ae09=_0x30fb1c['plugins']['get']('TrackChangesEditing'),_0x1b8dc3=_0x30fb1c['locale'];_0x50ae09['descriptionFactory']['registerElementLabel']('pageBreak',_0x455627=>o(_0x1b8dc3,'ELEMENT_PAGE_BREAK',_0x455627));}}class dt extends _0x2196b4{['afterInit'](){const _0x3ad15f=this['editor'];if(!_0x3ad15f['plugins']['has']('Paragraph'))return;const _0x3b57af=_0x3ad15f['locale'],_0x3da28e=_0x3ad15f['plugins']['get']('TrackChangesEditing');_0x3da28e['descriptionFactory']['registerElementLabel']('paragraph',_0x28446c=>o(_0x3b57af,'ELEMENT_PARAGRAPH',_0x28446c)),_0x3da28e['enableDefaultAttributesIntegration']('paragraph'),_0x3da28e['enableCommand']('insertParagraph'),_0x3ad15f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3ad15f),{'priority':'highest'}),_0x3ad15f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x159bcb,_0x4fb6c3,_0x11b516)=>{_0x11b516['options']['showSuggestionHighlights']&&nr(_0x3ad15f,{'showActiveMarker':!0x1})(_0x159bcb,_0x4fb6c3,_0x11b516);},{'priority':'highest'});const _0x3baaf8=_0x3da28e['descriptionFactory'];_0x3baaf8['registerDescriptionCallback'](_0x37ef37=>{if('insertion'!==_0x37ef37['type'])return;const {start:_0x5e6866,end:_0x101951}=_0x37ef37['getFirstRange']();if(!_0x5e6866['isTouching'](_0x101951)||!_0x5e6866['nodeAfter'])return;const _0x17ea17=_0x3ad15f['model']['schema'],_0x8d1b52=_0x5e6866['nodeAfter'];return _0x17ea17['isBlock'](_0x8d1b52)&&!_0x17ea17['isLimit'](_0x8d1b52)&&_0x17ea17['checkChild'](_0x8d1b52,'$text')?{'type':'insertion','content':o(_0x3b57af,'*Insert:*\x20%0',_0x3baaf8['getItemLabel'](_0x8d1b52,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbbbf0f=this['editor'],_0x56aba5=_0xbbbf0f['locale'];_0xbbbf0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3111bc=>{if('formatBlock'!=_0x3111bc['type'])return;const {data:_0x44ef28}=_0x3111bc;return _0x44ef28&&'paragraph'==_0x44ef28['commandName']?{'type':'format','content':o(_0x56aba5,'*Change\x20to:*\x20%0',o(_0x56aba5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x970174,{showActiveMarker:_0x593ddc=!0x0}={}){return(_0x69e7dd,_0x351921,_0x23d697)=>{const _0x2b9918=_0x970174['plugins']['get']('TrackChangesEditing'),_0x2f7990=_0x351921['markerRange']['start'],_0x12445e=_0x351921['markerRange']['end'],_0x47be9b=_0x970174['model']['schema'];if(!_0x2f7990['isTouching'](_0x12445e)||!_0x2f7990['nodeAfter'])return;const _0x15dbd9=_0x2f7990['nodeAfter'];if(_0x47be9b['isBlock'](_0x15dbd9)&&!_0x47be9b['isLimit'](_0x15dbd9)&&_0x47be9b['checkChild'](_0x15dbd9,'$text')){if(!_0x23d697['consumable']['consume'](_0x351921['markerRange'],_0x69e7dd['name']))return;const _0x29c041=_0x23d697['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1b08f5=_0x23d697['mapper']['toViewPosition'](_0x12445e);_0x593ddc&&_0x2b9918['activeMarkers']['includes'](_0x351921['markerName'])&&_0x23d697['writer']['addClass']('ck-suggestion-marker--active',_0x29c041),_0x23d697['writer']['insert'](_0x1b08f5,_0x29c041),_0x23d697['mapper']['bindElementToMarker'](_0x29c041,_0x351921['markerName']);}};}class pt extends _0x2196b4{['afterInit'](){const _0x192d69=this['editor'];if(!_0x192d69['plugins']['has']('RemoveFormatEditing'))return;_0x192d69['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b7d6d=this['editor'];_0x5b7d6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48383b=>{if('formatBlock'!=_0x48383b['type']&&'formatInline'!=_0x48383b['type'])return;const {data:_0x1d6d66}=_0x48383b;return _0x1d6d66&&'removeFormat'==_0x1d6d66['commandName']?{'type':'format','content':o(_0x5b7d6d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x2196b4{['afterInit'](){const _0x47626f=this['editor'];if(!_0x47626f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x95302f=_0x47626f['plugins']['get']('TrackChangesEditing');_0x95302f['enableCommand']('goToPreviousRestrictedEditingException'),_0x95302f['enableCommand']('goToNextRestrictedEditingException');const _0x3833fb=_0x47626f['plugins']['get']('RestrictedEditingModeEditing');_0x3833fb['enableCommand']('trackChanges'),_0x3833fb['enableCommand']('acceptSuggestion'),_0x3833fb['enableCommand']('discardSuggestion'),_0x3833fb['enableCommand']('acceptAllSuggestions'),_0x3833fb['enableCommand']('discardAllSuggestions'),_0x3833fb['enableCommand']('acceptSelectedSuggestions'),_0x3833fb['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x2196b4{static get['requires'](){return[_0x3f2195];}['init'](){const _0x5c3079=this['editor'],_0x55ecba=_0x5c3079['plugins']['get']('TrackChangesEditing');_0x55ecba['enableCommand']('shiftEnter'),_0x5c3079['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5c3079),{'priority':'high'}),_0x5c3079['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5c3079),{'priority':'high'}),_0x5c3079['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35ad81,_0x43e3e4,_0x5c7a19)=>{_0x5c7a19['options']['showSuggestionHighlights']&&de(_0x5c3079,{'showActiveMarker':!0x1})(_0x35ad81,_0x43e3e4,_0x5c7a19);}),_0x55ecba['descriptionFactory']['registerElementLabel']('softBreak',_0x46b87c=>o(_0x5c3079['locale'],'ELEMENT_LINE_BREAK',_0x46b87c));}}function de(_0x5bb15e,{showActiveMarker:_0x5c7810=!0x0}={}){return(_0x586027,_0x3e77a9,_0x137ae2)=>{const _0x182857=_0x5bb15e['plugins']['get']('TrackChangesEditing');if(!_0x137ae2['consumable']['test'](_0x3e77a9['markerRange'],_0x586027['name']))return;const _0x17fac8=_0x5bb15e['model'];for(const _0x1274d5 of _0x3e77a9['markerRange']['getItems']()){if(!_0x1274d5['is']('element','softBreak'))continue;const _0x582bcb='deletion'==_0x3e77a9['markerName']['split'](':')[0x1]?'merge':'split',_0x5d2246=_0x137ae2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x582bcb}),_0x2d16bc=_0x137ae2['mapper']['toViewPosition'](_0x17fac8['createPositionBefore'](_0x1274d5));_0x5c7810&&_0x182857['activeMarkers']['includes'](_0x3e77a9['markerName'])&&_0x137ae2['writer']['addClass']('ck-suggestion-marker--active',_0x5d2246),_0x137ae2['writer']['insert'](_0x2d16bc,_0x5d2246),_0x137ae2['mapper']['bindElementToMarker'](_0x5d2246,_0x3e77a9['markerName']);}};}class wt extends _0x2196b4{['afterInit'](){const _0x1bbac1=this['editor'],_0x3826be=_0x1bbac1['model'],_0x33f1a8=_0x1bbac1['locale'];if(!_0x1bbac1['plugins']['has']('StandardEditingModeEditing'))return;const _0xf0f6ca=_0x1bbac1['plugins']['get']('TrackChangesEditing'),_0x57b54b='restrictedEditingException',_0x4ae69d=_0x1bbac1['commands']['get'](_0x57b54b);_0xf0f6ca['enableCommand'](_0x57b54b,(_0x366cab,_0x262e4f={})=>{const _0x5ff21d=_0x3826be['document']['selection'];if(_0x5ff21d['isCollapsed'])return void _0x366cab(_0x262e4f);const _0x56a661=void 0x0!==_0x262e4f['forceValue']?_0x262e4f['forceValue']:!_0x4ae69d['value'];_0x3826be['change'](()=>{const _0x44e233=Array['from'](_0x5ff21d['getRanges']());for(const _0x41eba1 of _0x44e233){const _0x1b70f2=_0x56a661?[_0x41eba1]:io(_0x57b54b,_0x41eba1,_0x3826be);for(const _0x2236b5 of _0x1b70f2)_0xf0f6ca['markInlineFormat'](_0x2236b5,{'commandName':_0x57b54b,'commandParams':[{'forceValue':_0x56a661}]});}});}),_0xf0f6ca['descriptionFactory']['registerDescriptionCallback'](_0x1fcb62=>{if('formatBlock'!=_0x1fcb62['type']&&'formatInline'!=_0x1fcb62['type'])return;const {data:_0x4b495c}=_0x1fcb62;return _0x4b495c&&_0x4b495c['commandName']==_0x57b54b?_0x4b495c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33f1a8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x33f1a8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x2196b4{['afterInit'](){const _0x1fc4df=this['editor'];if(!_0x1fc4df['plugins']['has']('Style')||!_0x1fc4df['plugins']['has']('DataSchema'))return;const _0x2b4526=_0x1fc4df['plugins']['get']('TrackChangesEditing'),_0x4f0fce=_0x1fc4df['locale'],_0x33baf6=_0x1fc4df['config']['get']('style')||{},_0x31ee3b=_0x1fc4df['plugins']['get']('GeneralHtmlSupport'),_0x276703=_0x1fc4df['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1fc4df['plugins']['get']('DataSchema'),_0x33baf6['definitions']);_0x2b4526['enableDefaultAttributesIntegration']('style');const _0x41d882=new Set();for(const _0x24fb18 of _0x276703['block']){const _0x5cb9ca=_0x31ee3b['getGhsAttributeNameForElement'](_0x24fb18['element']);_0x41d882['add'](_0x5cb9ca);}const _0x13e125=new Set();for(const _0x3df2e6 of _0x276703['inline']){const _0x134fe1=_0x31ee3b['getGhsAttributeNameForElement'](_0x3df2e6['element']);_0x13e125['add'](_0x134fe1);for(const _0x5719cd of _0x3df2e6['ghsAttributes'])_0x13e125['add'](_0x5719cd);}for(const _0x505ec7 of _0x41d882)_0x2b4526['registerBlockAttribute'](_0x505ec7),_0x2b4526['descriptionFactory']['registerAttributeLabel'](_0x505ec7,o(_0x4f0fce,'FORMAT_STYLE'));for(const _0x3bfba6 of _0x13e125)_0x2b4526['registerInlineAttribute'](_0x3bfba6),_0x2b4526['descriptionFactory']['registerAttributeLabel'](_0x3bfba6,o(_0x4f0fce,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ba863=this['editor'],_0x44ad7f=_0x5ba863['locale'];_0x5ba863['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x252a0a=>{if('formatBlock'!=_0x252a0a['type']&&'formatInline'!=_0x252a0a['type'])return;const {data:_0x59a129}=_0x252a0a;return _0x59a129&&'style'===_0x59a129['commandName']?_0x59a129['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44ad7f,'*Set\x20format:*\x20%0',_0x59a129['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x44ad7f,'*Remove\x20format:*\x20%0',_0x59a129['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x2196b4{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xe244b1){super(_0xe244b1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x56205d=this['editor'],_0x233b74=_0x56205d['model']['document']['selection'];if(!_0x56205d['plugins']['has']('TableEditing'))return;const _0x101b2b=_0x56205d['locale'],_0x4bc7bd=_0x56205d['plugins']['get']('TrackChangesEditing'),_0x400895=_0x56205d['plugins']['get']('TableUtils');_0x4bc7bd['descriptionFactory']['registerElementLabel']('table',_0x3d32cd=>o(_0x101b2b,'ELEMENT_TABLE',_0x3d32cd)),this['_setupColumnsRowsFixing'](),_0x4bc7bd['enableCommand']('insertTable'),_0x4bc7bd['enableCommand']('selectTableRow'),_0x4bc7bd['enableCommand']('selectTableColumn');for(const _0x5b87b9 of['insertTableRowAbove','insertTableRowBelow']){const _0x31ab73=_0x56205d['commands']['get'](_0x5b87b9);_0x4bc7bd['enableCommand'](_0x5b87b9,_0x33d293=>{_0x56205d['model']['change'](_0x4fc4e8=>{_0x33d293();const _0x5c5d7b='above'===_0x31ab73['order'],_0x336278=_0x400895['getSelectionAffectedTableCells'](_0x233b74),_0x25ba92=_0x400895['getRowIndexes'](_0x336278),_0x5345ef=_0x5c5d7b?_0x25ba92['first']-0x1:_0x25ba92['last']+0x1,_0x35eed4=_0x336278[0x0]['findAncestor']('table'),_0x511cf4=_0x400895['createTableWalker'](_0x35eed4,{'startRow':_0x5345ef,'endRow':_0x5345ef}),_0x10543a=Array['from'](_0x511cf4)['map'](_0x51124f=>_0x4fc4e8['createRangeOn'](_0x51124f['cell']));_0x4bc7bd['markMultiRangeInsertion'](_0x10543a,'tableRow');});});}for(const _0x4034af of['insertTableColumnLeft','insertTableColumnRight']){const _0x1e6a4a=_0x56205d['commands']['get'](_0x4034af);_0x4bc7bd['enableCommand'](_0x4034af,_0x21c9b1=>{_0x56205d['model']['change'](_0x2f6eb2=>{_0x21c9b1();const _0x250486='left'===_0x1e6a4a['order'],_0xfaa45e=_0x400895['getSelectionAffectedTableCells'](_0x233b74),_0x293a23=_0x400895['getColumnIndexes'](_0xfaa45e),_0x14042b=_0x250486?_0x293a23['first']-0x1:_0x293a23['last']+0x1,_0x184dde=_0xfaa45e[0x0]['findAncestor']('table'),_0x2dbeec=_0x400895['createTableWalker'](_0x184dde,{'startRow':0x0,'column':_0x14042b,'includeAllSlots':!0x1}),_0x3fa540=Array['from'](_0x2dbeec)['map'](_0x168cea=>_0x2f6eb2['createRangeOn'](_0x168cea['cell']));_0x4bc7bd['markMultiRangeInsertion'](_0x3fa540,'tableColumn');});});}for(const _0x5d1224 of['removeTableRow','removeTableColumn']){const _0x2b31bf=_0x5d1224['substr'](0xb),_0x37d1ed=_0x2b31bf['toLowerCase'](),_0x4c09b0=_0x37d1ed['substr'](0x0,0x3)+'span',_0x237bef='table'+_0x2b31bf,_0x5661ee='min'+_0x2b31bf,_0x4726d3='max'+_0x2b31bf;_0x4bc7bd['enableCommand'](_0x5d1224,()=>{_0x56205d['model']['change'](_0x43b500=>{const _0x4174a9=_0x400895['getSelectionAffectedTableCells'](_0x233b74),_0x14fee1=_0x4174a9[0x0]['findAncestor']('table');let _0x11bc0f;if('removeTableRow'==_0x5d1224){const _0x18b9e8=_0x400895['getRowIndexes'](_0x4174a9);_0x11bc0f={'startRow':_0x18b9e8['first'],'endRow':_0x18b9e8['last'],'includeAllSlots':!0x0};}else{const _0x53c4dc=_0x400895['getColumnIndexes'](_0x4174a9);_0x11bc0f={'startColumn':_0x53c4dc['first'],'endColumn':_0x53c4dc['last'],'includeAllSlots':!0x0};}const _0x4679c9=_0x400895['createTableWalker'](_0x14fee1,_0x11bc0f),_0x291b7a=Array['from'](_0x4679c9)['map'](({cell:_0x9457fe})=>_0x9457fe),_0x4581dc=Ee(_0x291b7a['filter'](_0x4156b7=>_0x4156b7['hasAttribute'](_0x4c09b0))),_0x23942f=Ee(_0x291b7a['filter'](_0x46db27=>!_0x46db27['hasAttribute'](_0x4c09b0)))['map'](_0x4577f3=>_0x43b500['createRangeOn'](_0x4577f3)),_0x2452bf=_0x4bc7bd['markMultiRangeDeletion'](_0x23942f,_0x237bef);if(_0x2452bf&&('tableRow'==_0x2452bf['subType']||'tableColumn'==_0x2452bf['subType'])){const _0x410ee5=this['_getSuggestionCoords'](_0x2452bf);for(const _0x4e5812 of _0x4581dc){const _0x304659=_0x43b500['createRangeOn'](_0x4e5812),_0x10bb55=_0x400895['getCellLocation'](_0x4e5812),_0xc98edf=_0x4e5812['getAttribute'](_0x4c09b0)-0x1,_0x427fc7=_0x410ee5[_0x5661ee],_0x5e7f14=_0x410ee5[_0x4726d3];_0x427fc7<=_0x10bb55[_0x37d1ed]&&_0x10bb55[_0x37d1ed]+_0xc98edf<=_0x5e7f14&&_0x2452bf['addRange'](_0x304659);}}});});}function _0x718b35(_0x3c956d){const _0x16ec4b=Array['from'](_0x233b74['getRanges']())['map'](_0x14326a=>_0x186ef9['fromRange'](_0x14326a));_0x56205d['model']['change'](_0x2edee7=>{const _0x67ac72=_0x2edee7['batch'];_0x3c956d=_0x3c956d['filter'](_0x4d7001=>'$graveyard'!=_0x4d7001['root']['rootName']),_0x2edee7['setSelection'](_0x3c956d),_0x56205d['commands']['get']('removeTableRow')['refresh'](),_0x56205d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x56205d['model']['enqueueChange'](()=>{_0x56205d['model']['enqueueChange'](_0x67ac72,_0x1d5f9c=>{const _0x4270ce=_0x16ec4b['filter'](_0x1c4491=>'$graveyard'!=_0x1c4491['root']['rootName']);_0x4270ce['length']>0x0&&_0x1d5f9c['setSelection'](_0x4270ce);for(const _0x44259b of _0x16ec4b)_0x44259b['detach']();});});});}function _0x15ad89(_0x382367){_0x56205d['model']['change'](_0x1388c1=>{const _0xae5cc4=Array['from'](_0x233b74['getRanges']())['map'](_0x5ee1e5=>_0x186ef9['fromRange'](_0x5ee1e5)),_0x3fc0d3=[];for(const _0x3039fd of _0x382367)for(const _0x23eb18 of _0x3039fd['getItems']({'shallow':!0x0}))_0x3fc0d3['push'](_0x23eb18);for(const _0x2011e0 of _0x3fc0d3)'$graveyard'!=_0x2011e0['root']['rootName']&&(_0x1388c1['setSelection'](_0x1388c1['createPositionAt'](_0x2011e0,0x0)),_0x56205d['commands']['get']('removeTableColumn')['refresh'](),_0x56205d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2ec857=_0xae5cc4['filter'](_0x5dac50=>'$graveyard'!=_0x5dac50['root']['rootName']);_0x2ec857['length']>0x0&&_0x1388c1['setSelection'](_0x2ec857);for(const _0x5c0cd0 of _0xae5cc4)_0x5c0cd0['detach']();});}function _0x797029(_0x452d0a,_0x4c7469){return _0x4c7469['every'](_0x2ed49a=>_0x452d0a['some'](_0x2ab17d=>_0x2ab17d['end']['isEqual'](_0x2ed49a['start'])||_0x2ed49a['end']['isEqual'](_0x2ab17d['start'])));}function _0x28abe8(_0x36b12a,_0x48f412){return _0x36b12a['some'](_0xe25b41=>_0x48f412['some'](_0x2c5345=>_0xe25b41['end']['isTouching'](_0x2c5345['start'])));}_0x56205d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c1611,_0xac966e,_0x110948)=>{if(!_0x110948['options']['showSuggestionHighlights'])return;const _0x2fdd90=_0xac966e['item'];if(!_0x2fdd90)return;const _0xac21b1=_0x110948['mapper']['toViewElement'](_0x2fdd90);function _0x49c1f7(_0x457a32){return Array['isArray'](_0x457a32)?_0x457a32:[_0x457a32];}_0xac21b1&&'tableCell'===_0x2fdd90['name']&&_0xb72897(_0xac21b1,_0x110948['writer'],(_0x149ccc,_0x5ac3ed,_0x2dabc5)=>_0x2dabc5['addClass'](_0x49c1f7(_0x5ac3ed['classes']),_0x149ccc),(_0x5937f1,_0x3a809f,_0x1c78b8)=>_0x1c78b8['removeClass'](_0x49c1f7(_0x3a809f['classes']),_0x5937f1));},{'priority':'highest'}),_0x4bc7bd['descriptionFactory']['registerDescriptionCallback'](_0x1e97a7=>{if('insertion'!=_0x1e97a7['type']&&'deletion'!=_0x1e97a7['type'])return;const _0x12b330=_0x1e97a7['getContainedElement']();if(null!=_0x12b330&&_0x12b330['is']('element','table')){if('insertion'==_0x1e97a7['type']){const _0xbef59c=_0x1e97a7['getItems']()['filter'](_0x46e882=>_0x46e882['is']('$textProxy'))['map'](_0xa1603d=>_0xa1603d['data']);if(_0xbef59c['length'])return{'type':'insertion','content':o(_0x101b2b,'*Insert:*\x20%0',o(_0x101b2b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xbef59c['join']('\x20')+'\x22'))};}if('deletion'==_0x1e97a7['type']){const _0x2aa1fe=_0x1e97a7['getItems']()['filter'](_0x18ff75=>_0x18ff75['is']('$textProxy'))['map'](_0x375fbb=>_0x375fbb['data']);if(_0x2aa1fe['length'])return{'type':'deletion','content':o(_0x101b2b,'*Remove:*\x20%0',o(_0x101b2b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2aa1fe['join']('\x20')+'\x22'))};}}}),_0x4bc7bd['descriptionFactory']['registerDescriptionCallback'](_0x4a292e=>{if('tableRow'==_0x4a292e['subType']){const _0x302a26=_0x4a292e['getItems']()['filter'](_0x470622=>_0x470622['is']('$textProxy'))['map'](_0x2d5490=>_0x2d5490['data']),_0x3f7e59=this['_getSuggestionCoords'](_0x4a292e),_0x43d205=_0x3f7e59['maxRow']-_0x3f7e59['minRow']+0x1;if('insertion'==_0x4a292e['type'])return _0x302a26['length']?{'type':'insertion','content':o(_0x101b2b,'*Insert:*\x20%0',o(_0x101b2b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x43d205,'\x22'+_0x302a26['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x101b2b,'*Insert:*\x20%0',o(_0x101b2b,'ELEMENT_TABLE_ROW',_0x43d205))};if('deletion'==_0x4a292e['type'])return _0x302a26['length']?{'type':'deletion','content':o(_0x101b2b,'*Remove:*\x20%0',o(_0x101b2b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x43d205,'\x22'+_0x302a26['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x101b2b,'*Remove:*\x20%0',o(_0x101b2b,'ELEMENT_TABLE_ROW',_0x43d205))};}if('tableColumn'==_0x4a292e['subType']){const _0x13e174=_0x4a292e['getItems']()['filter'](_0xd0ffb4=>_0xd0ffb4['is']('$textProxy'))['map'](_0x17b983=>_0x17b983['data']),_0x3cfc92=this['_getSuggestionCoords'](_0x4a292e),_0x32d58e=_0x3cfc92['maxColumn']-_0x3cfc92['minColumn']+0x1;if('insertion'==_0x4a292e['type'])return _0x13e174['length']?{'type':'insertion','content':o(_0x101b2b,'*Insert:*\x20%0',o(_0x101b2b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32d58e,'\x22'+_0x13e174['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x101b2b,'*Insert:*\x20%0',o(_0x101b2b,'ELEMENT_TABLE_COLUMN',_0x32d58e))};if('deletion'==_0x4a292e['type'])return _0x13e174['length']?{'type':'deletion','content':o(_0x101b2b,'*Remove:*\x20%0',o(_0x101b2b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32d58e,'\x22'+_0x13e174['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x101b2b,'*Remove:*\x20%0',o(_0x101b2b,'ELEMENT_TABLE_COLUMN',_0x32d58e))};}}),_0x4bc7bd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x718b35),_0x4bc7bd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x718b35),_0x4bc7bd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x15ad89),_0x4bc7bd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x15ad89),_0x4bc7bd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x797029),_0x4bc7bd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x797029),_0x4bc7bd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x28abe8),_0x4bc7bd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x28abe8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1e3e6c=this['editor'],_0x2960a9=_0x1e3e6c['model']['document']['selection'];return(_0x4bc378,_0x2a2da6)=>{_0x1e3e6c['model']['change'](_0x58b250=>{const {commandName:_0x374166,commandParams:_0x816d61}=_0x2a2da6;let _0x5b6b71=_0x4bc378[0x0]['end']['nodeBefore'];_0x816d61&&_0x816d61[0x0]&&!0x1===_0x816d61[0x0]['forceValue']&&(_0x5b6b71=_0x4bc378[0x0]['start']['nodeAfter']);const _0x5e2d4b=_0x58b250['createRangeIn'](_0x5b6b71);if('$graveyard'==_0x5e2d4b['root']['rootName'])return;const _0x20328b=Array['from'](_0x2960a9['getRanges']())['map'](_0x551cb0=>_0x186ef9['fromRange'](_0x551cb0));_0x58b250['setSelection'](_0x5e2d4b),_0x1e3e6c['commands']['get'](_0x374166)['refresh'](),_0x816d61['push']({'forceDefaultExecution':!0x0}),_0x1e3e6c['execute'](_0x374166,..._0x816d61);const _0x42b56d=_0x20328b['filter'](_0x8fa480=>'$graveyard'!=_0x8fa480['root']['rootName']);_0x42b56d['length']>0x0&&_0x58b250['setSelection'](_0x42b56d);for(const _0xcb6532 of _0x20328b)_0xcb6532['detach']();});};}['_getCoordsForCells'](_0x2c4a6e){const _0x577115=this['editor']['plugins']['get']('TableUtils');let _0x510f05=Number['MAX_SAFE_INTEGER'],_0x95174d=Number['MIN_SAFE_INTEGER'],_0x3959d0=Number['MAX_SAFE_INTEGER'],_0x393f30=Number['MIN_SAFE_INTEGER'];for(const _0x2e4f56 of _0x2c4a6e){if('$graveyard'==_0x2e4f56['root']['rootName'])continue;const {row:_0xe8a922,column:_0x280cd8}=_0x577115['getCellLocation'](_0x2e4f56),_0x571dec=_0x2e4f56['hasAttribute']('rowspan')?_0x2e4f56['getAttribute']('rowspan')-0x1:0x0,_0x5b98fd=_0x2e4f56['hasAttribute']('colspan')?_0x2e4f56['getAttribute']('colspan')-0x1:0x0;_0x510f05=_0xe8a922<_0x510f05?_0xe8a922:_0x510f05,_0x95174d=_0xe8a922+_0x571dec>_0x95174d?_0xe8a922+_0x571dec:_0x95174d,_0x3959d0=_0x280cd8<_0x3959d0?_0x280cd8:_0x3959d0,_0x393f30=_0x280cd8+_0x5b98fd>_0x393f30?_0x280cd8+_0x5b98fd:_0x393f30;}return{'minRow':_0x510f05,'maxRow':_0x95174d,'minColumn':_0x3959d0,'maxColumn':_0x393f30};}['_setupColumnsRowsFixing'](){const _0x259bd8=this['editor'],_0x11431c=_0x259bd8['plugins']['get']('TrackChangesEditing'),_0x2e9dea=_0x259bd8['plugins']['get']('TableUtils');_0x259bd8['model']['document']['on']('change:data',()=>{const _0x3a634c=Array['from'](_0x259bd8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x328287,data:_0x143d5b}of _0x3a634c){const {group:_0x4c8b4f,id:_0xa5d0a2,subType:_0x359e03}=_0x11431c['_splitMarkerName'](_0x328287);if('suggestion'!=_0x4c8b4f)continue;if(null!=_0x143d5b['oldRange'])continue;const _0x2fc861=_0x11431c['getSuggestion'](_0xa5d0a2);this['_tablePostFixingSubtypes']['includes'](_0x359e03)&&this['_tableSuggestions']['add'](_0x2fc861);}},{'priority':'low'});const _0xe5a13b=(_0x1646c4,_0x5641c4)=>{let _0x43f587=!0x1;const _0xd6f4dd=_0x5641c4['createRangeOn'](_0x1646c4),_0x106a6c=_0x1646c4['findAncestor']('table'),_0x3da9d7=_0x2e9dea['getCellLocation'](_0x1646c4);for(const _0x29e7b4 of this['_tableSuggestions']){const _0x26ef6f=_0x29e7b4['subType'],_0xde418f=_0x26ef6f['startsWith']('tablePaste'),_0x1c0674=_0x26ef6f['substr'](_0xde418f?0xa:0x5),_0x78c2a0=_0x1c0674['toLowerCase'](),_0x4076d0=_0x78c2a0['substr'](0x0,0x3)+'span',_0xb65d21='min'+_0x1c0674,_0x82213c='max'+_0x1c0674;if(!_0x29e7b4['isInContent'])continue;if(_0x106a6c!=_0x29e7b4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x29e7b4['isIntersectingWithRange'](_0xd6f4dd))continue;const _0x379899=_0x1646c4['hasAttribute'](_0x4076d0)?_0x1646c4['getAttribute'](_0x4076d0)-0x1:0x0,_0x164b22=this['_getSuggestionCoords'](_0x29e7b4),_0x1e68f0=_0x164b22[_0xb65d21],_0x28363e=_0x164b22[_0x82213c];_0x1e68f0<=_0x3da9d7[_0x78c2a0]&&_0x3da9d7[_0x78c2a0]+_0x379899<=_0x28363e&&(_0x29e7b4['addRange'](_0xd6f4dd),_0x43f587=!0x0);}return _0x43f587;};_0x259bd8['model']['document']['registerPostFixer'](_0x271d97=>{let _0x50d404=!0x1;for(const _0x5848ed of _0x259bd8['model']['document']['differ']['getChanges']())if('insert'==_0x5848ed['type']){if('tableRow'==_0x5848ed['name']){for(const _0x966891 of _0x5848ed['position']['nodeAfter']['getChildren']())_0x50d404=_0x50d404||_0xe5a13b(_0x966891,_0x271d97);}else'tableCell'==_0x5848ed['name']&&(_0x50d404=_0x50d404||_0xe5a13b(_0x5848ed['position']['nodeAfter'],_0x271d97));}return _0x50d404;});}['_getSuggestionCoords'](_0x10476d){return this['_getCoordsForCells'](_0x10476d['getRanges']()['map'](_0x11c076=>_0x11c076['start']['nodeAfter']));}}function Ee(_0x4902d4){return Array['from'](new Set(_0x4902d4)['values']());}class St extends _0x2196b4{static get['requires'](){return[jt];}['afterInit'](){const _0xc007a8=this['editor'],_0x121a7f=_0xc007a8['model']['document']['selection'],_0x323049=_0xc007a8['locale'];if(!_0xc007a8['plugins']['has']('TableEditing'))return;const _0x4a31fd=_0xc007a8['plugins']['get']('TrackChangesEditing'),_0xb985e8=_0xc007a8['plugins']['get']('TableUtils'),_0x28ad74=_0xc007a8['plugins']['get'](jt);_0x28ad74['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4a31fd['enableCommand']('mergeTableCells',()=>{const _0x29ed9e=_0xb985e8['getSelectionAffectedTableCells'](_0xc007a8['model']['document']['selection']);_0xc007a8['model']['change'](()=>{_0x4a31fd['markMultiRangeBlockFormat'](_0x29ed9e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xc007a8['commands']['get']('mergeTableCells')['on']('execute',(_0x459d3b,_0x47f008)=>{_0xc007a8['commands']['get']('trackChanges')['value']&&(_0x47f008['length']>0x0&&_0x47f008[_0x47f008['length']-0x1]&&_0x47f008[_0x47f008['length']-0x1]['forceDefaultExecution']||_0x4a31fd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x459d3b['stop']());},{'priority':'highest'});for(const _0x7e3dd5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3a58db=_0xc007a8['commands']['get'](_0x7e3dd5);_0x4a31fd['enableCommand'](_0x7e3dd5,()=>{const _0x1faee6=_0xc007a8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10e189=>_0x10e189['is']('element','tableCell')),_0x4dfb1c=_0x3a58db['value'];_0xc007a8['model']['change'](()=>{_0x4a31fd['markMultiRangeBlockFormat']([_0x1faee6,_0x4dfb1c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x21b4c3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5db9bb=_0xc007a8['commands']['get'](_0x21b4c3);_0x4a31fd['enableCommand'](_0x21b4c3,()=>{const _0x2aa6cd=_0xb985e8['getSelectionAffectedTableCells'](_0xc007a8['model']['document']['selection'])[0x0],_0x436909=_0x2aa6cd['findAncestor']('table'),{column:_0x460678,row:_0x31bf2a}=_0xb985e8['getCellLocation'](_0x2aa6cd);let _0x2728b6=[];if('horizontally'==_0x5db9bb['direction']){const _0x48b7fd=_0xb985e8['createTableWalker'](_0x436909,{'startRow':_0x31bf2a,'endRow':_0x31bf2a,'includeAllSlots':!0x0});_0x2728b6=Array['from'](_0x48b7fd)['map'](_0x33a21e=>_0x33a21e['cell']);}else{const _0x29d534=_0xb985e8['createTableWalker'](_0x436909,{'column':_0x460678,'includeAllSlots':!0x0});_0x2728b6=Array['from'](_0x29d534)['map'](_0x36880c=>_0x36880c['cell']);}_0xc007a8['model']['change'](_0x134f81=>{_0x4a31fd['markBlockFormat'](_0x134f81['createRangeOn'](_0x2aa6cd),{'commandName':_0x21b4c3,'commandParams':[]},_0x2728b6,_0x21b4c3);});});}_0x4a31fd['descriptionFactory']['registerDescriptionCallback'](_0x6f0739=>{if('formatBlock'!=_0x6f0739['type']&&'formatInline'!=_0x6f0739['type'])return;const {data:_0x35b19c}=_0x6f0739;return _0x35b19c&&'mergeTableCells'==_0x35b19c['commandName']?{'type':'format','content':o(_0x323049,'*Merge\x20cells*')}:void 0x0;}),_0x4a31fd['descriptionFactory']['registerDescriptionCallback'](_0x3aab13=>{if('formatBlock'!=_0x3aab13['type']&&'formatInline'!=_0x3aab13['type'])return;const {data:_0x288f7b}=_0x3aab13;return _0x288f7b?'splitTableCellVertically'==_0x288f7b['commandName']?{'type':'format','content':o(_0x323049,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x288f7b['commandName']?{'type':'format','content':o(_0x323049,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a5cc3=_0x28ad74['_acceptFormatSuggestionCallbackFactory']();for(const _0x1bbabc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4a31fd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bbabc,'accept',_0x5a5cc3);for(const _0x246c22 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4a31fd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x246c22,'accept',_0x5a5cc3);_0x4a31fd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2b8cc3=>{_0xc007a8['model']['change'](_0x3c0f34=>{const _0x14e439=Array['from'](_0x121a7f['getRanges']())['map'](_0x1b80b9=>_0x186ef9['fromRange'](_0x1b80b9));_0x3c0f34['setSelection'](_0x2b8cc3),_0xc007a8['commands']['get']('mergeTableCells')['refresh'](),_0xc007a8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x58a866=_0x14e439['filter'](_0x16f78b=>'$graveyard'!=_0x16f78b['root']['rootName']);_0x58a866['length']>0x0&&_0x3c0f34['setSelection'](_0x58a866);for(const _0xfd5995 of _0x14e439)_0xfd5995['detach']();});});for(const _0x2afb68 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x195b4a=_0xc007a8['commands']['get'](_0x2afb68);_0x195b4a['on']('set:isEnabled',(_0x2111bc,_0x501ed1,_0x5aa39d)=>{if(_0x5aa39d){const _0x10e85f=_0xc007a8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45f055=>_0x45f055['is']('element','tableCell'));this['_areMergableCells'](_0x195b4a['value'],_0x10e85f)||(_0x2111bc['return']=!0x1,_0x2111bc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x321bf6=this['editor']['commands']['get']('mergeTableCells'),_0x491174=this['editor']['plugins']['get']('TableUtils');if(!_0x321bf6['isEnabled'])return!0x1;const _0x1bd20b=_0x491174['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x41bc62 of _0x1bd20b)for(const _0x3c3da1 of _0x1bd20b)if(_0x41bc62!=_0x3c3da1&&!this['_areMergableCells'](_0x41bc62,_0x3c3da1))return!0x1;return!0x0;}['_areMergableCells'](_0x45c183,_0x4cdb33){const _0x4d97f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28efc6=this['editor']['model']['createRangeOn'](_0x45c183),_0x250faa=this['editor']['model']['createRangeOn'](_0x4cdb33),_0x2682f8=new Set(),_0x5cfcf3=new Set();for(const _0xca856a of _0x4d97f1['getSuggestions']())if(('insertion'==_0xca856a['type']||'deletion'==_0xca856a['type']||'mergeTableCells'==_0xca856a['subType'])&&_0xca856a['isInContent']){for(const _0x4d0625 of _0xca856a['getRanges']())_0x4d0625['containsRange'](_0x28efc6,!0x0)&&_0x2682f8['add'](_0xca856a['type']+':'+_0xca856a['author']['id']),_0x4d0625['containsRange'](_0x250faa,!0x0)&&_0x5cfcf3['add'](_0xca856a['type']+':'+_0xca856a['author']['id']);}if(_0x2682f8['size']!=_0x5cfcf3['size'])return!0x1;for(const _0x4dacac of _0x2682f8)if(!_0x5cfcf3['has'](_0x4dacac))return!0x1;return!0x0;}}class At extends _0x2196b4{static get['requires'](){return[jt];}['afterInit'](){const _0x4b1e38=this['editor'];if(!_0x4b1e38['plugins']['has']('TableEditing'))return;const _0x29e360=_0x4b1e38['locale'],_0xb16e8a=_0x4b1e38['plugins']['get']('TrackChangesEditing');_0xb16e8a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xb16e8a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xb16e8a['registerBlockAttribute']('headingRows'),_0xb16e8a['registerBlockAttribute']('headingColumns'),_0xb16e8a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x29e360,'FORMAT_HEADER_ROW')),_0xb16e8a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x29e360,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1c6281=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a5129=this['editor']['plugins']['get']('TableUtils'),_0x5b1a80=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x35d8c9({showActiveMarker:_0x57fde1=!0x0,setDataAttribute:_0x586504=!0x0}={}){return(_0x1a62bd,_0x4457af,_0x41987c)=>{const {type:_0x259903,id:_0x2ee982}=_0x1c6281['_splitMarkerName'](_0x4457af['markerName']),_0x19fd73=_0x1c6281['getSuggestion'](_0x2ee982),_0xf2c50b=_0x19fd73['data'];if('formatBlock'!=_0x19fd73['type']||!_0xf2c50b||'setTableColumnHeader'!=_0xf2c50b['commandName'])return;if(_0x4457af['item'])return void _0x1a62bd['stop']();if(!_0x41987c['consumable']['consume'](_0x4457af['markerRange'],_0x1a62bd['name']))return;const _0x2e0220=_0x4457af['markerRange']['start']['nodeAfter'],_0x5f5dcc=_0x4457af['markerRange']['end']['nodeBefore'],_0xe569c1=_0x2e0220['parent']['parent'],{column:_0x21d82d}=_0x1a5129['getCellLocation'](_0x2e0220),{column:_0x5c2b35}=_0x1a5129['getCellLocation'](_0x5f5dcc);for(let _0x320cf7=_0x21d82d;_0x320cf7<=_0x5c2b35;_0x320cf7++){const _0x58dca8=_0x1a5129['createTableWalker'](_0xe569c1,{'column':_0x320cf7,'includeAllSlots':!0x1});for(const _0x33409f of _0x58dca8){const _0x3811a6=_0x33409f['cell'],_0x35b4ea=_0x41987c['mapper']['toViewElement'](_0x3811a6);_0x41987c['writer']['addClass']('ck-suggestion-marker-'+_0x259903,_0x35b4ea),_0x586504&&_0x41987c['writer']['setAttribute']('data-suggestion',_0x2ee982,_0x35b4ea),_0x41987c['mapper']['bindElementToMarker'](_0x35b4ea,_0x4457af['markerName']),_0x57fde1&&(_0x1c6281['activeMarkers']['includes'](_0x4457af['markerName'])?_0x41987c['writer']['addClass']('ck-suggestion-marker--active',_0x35b4ea):_0x41987c['writer']['removeClass']('ck-suggestion-marker--active',_0x35b4ea));}}};}_0x1c6281['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5b1a80),_0x1c6281['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5b1a80),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x35d8c9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xcdba14,_0x20a271,_0xda07d4)=>{_0xda07d4['options']['showSuggestionHighlights']&&_0x35d8c9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xcdba14,_0x20a271,_0xda07d4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2e82f6,_0x2c4735,_0x3b4591)=>{const {type:_0x6e0928,id:_0x5b0a85}=_0x1c6281['_splitMarkerName'](_0x2c4735['markerName']),_0x12cb29=_0x1c6281['getSuggestion'](_0x5b0a85),_0x6806e9=_0x12cb29['data'];if('formatBlock'!=_0x12cb29['type']||!_0x6806e9||'setTableColumnHeader'!=_0x6806e9['commandName'])return;const _0x36bd47=_0x3b4591['mapper']['markerNameToElements'](_0x2c4735['markerName']);if(_0x36bd47){for(const _0x416fa4 of _0x36bd47)_0x3b4591['writer']['removeClass']('ck-suggestion-marker-'+_0x6e0928,_0x416fa4),_0x3b4591['writer']['removeClass']('ck-suggestion-marker--active',_0x416fa4),_0x3b4591['writer']['removeAttribute']('data-suggestion',_0x416fa4),_0x3b4591['mapper']['unbindElementFromMarkerName'](_0x416fa4,_0x2c4735['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5480ee=this['editor'],_0x44a96e=_0x5480ee['locale'];function _0x27240f(_0x354dba){return{'type':'format','content':o(_0x44a96e,'*Format:*\x20%0',_0x354dba)};}_0x5480ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b52a8=>{if('formatBlock'!=_0x3b52a8['type'])return;const {data:_0x1fc276}=_0x3b52a8;if(_0x1fc276){if('setTableRowHeader'==_0x1fc276['commandName']){const _0x3b8a8b=_0x1fc276['commandParams'][0x0]['forceValue'];return _0x27240f(o(_0x44a96e,_0x3b8a8b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1fc276['commandName']){const _0x28b8d7=_0x1fc276['commandParams'][0x0]['forceValue'];return _0x27240f(o(_0x44a96e,_0x28b8d7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4d3768=>[_0x4d3768,null]));class It extends _0x2196b4{static get['requires'](){return[jt];}['afterInit'](){const _0x5da2dc=this['editor'];if(!_0x5da2dc['plugins']['has']('TableClipboard'))return;const _0xbe3677=_0x5da2dc['plugins']['get']('TrackChangesEditing'),_0x5229a5=_0x5da2dc['plugins']['get']('TableUtils'),_0x1d93e4=_0x5da2dc['plugins']['get'](jt),_0x1e055b=_0x5da2dc['plugins']['get']('TableClipboard');_0x1d93e4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5da2dc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5da2dc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x43ff18=null;_0x5da2dc['model']['on']('insertContent',(_0x4c1e52,_0x2161d4)=>{const [_0xdcd6f9,_0xcb01b9]=_0x2161d4,_0x5de6f6=_0x2161d4[_0x2161d4['length']-0x1];_0x5de6f6&&_0x5de6f6['forceDefaultExecution']||_0xbe3677['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x15e58c,_0x38a5e2,_0x1b6731,_0x4b03e2,_0x5a1fb6){if(_0x38a5e2&&!_0x38a5e2['is']('documentSelection'))return!0x1;const _0xe8a536=_0x5a1fb6['getTableIfOnlyTableInContent'](_0x15e58c,_0x1b6731);if(!_0xe8a536||!he(_0xe8a536,void 0x0,_0x4b03e2))return!0x1;const _0x1c4153=_0x4b03e2['getSelectionAffectedTableCells'](_0x1b6731['document']['selection']);if(!_0x1c4153['length'])return!0x1;const _0x15bbc0=_0x1c4153[0x0]['findAncestor']('table'),_0x156c0f=_0x4b03e2['getRowIndexes'](_0x1c4153),_0x53a386=_0x4b03e2['getColumnIndexes'](_0x1c4153),_0x10698b={'startRow':_0x156c0f['first'],'endRow':_0x156c0f['last'],'startColumn':_0x53a386['first'],'endColumn':_0x53a386['last']};return 0x1==_0x1c4153['length']&&(_0x10698b['endRow']+=_0x4b03e2['getRows'](_0xe8a536)-0x1,_0x10698b['endColumn']+=_0x4b03e2['getColumns'](_0xe8a536)-0x1),he(_0x15bbc0,_0x10698b,_0x4b03e2);}(_0xdcd6f9,_0xcb01b9,_0x5da2dc['model'],_0x5229a5,_0x1e055b)&&(_0x4c1e52['stop'](),_0x43ff18={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5da2dc['model']['change'](()=>{_0x5da2dc['model']['insertContent'](_0x2161d4[0x0],_0x2161d4[0x1],_0x2161d4[0x2],{'forceDefaultExecution':!0x0});const _0x25c7f3=_0x245371(),{rowInsertionRanges:_0x231614,columnInsertionRanges:_0x9c6905,insertionRanges:_0x324beb,deletionRanges:_0x346e11,cells:_0x185b84}=_0x43ff18;_0x231614['length']&&_0xbe3677['markMultiRangeInsertion'](_0x231614,'tablePasteRow',{'tablePasteChainId':_0x25c7f3}),_0x9c6905['length']&&_0xbe3677['markMultiRangeInsertion'](_0x9c6905,'tablePasteColumn',{'tablePasteChainId':_0x25c7f3}),_0x324beb['length']&&(_0xbe3677['markMultiRangeInsertion'](_0x324beb,'tablePaste',{'tablePasteChainId':_0x25c7f3,'skipNestingCheck':!0x0}),_0x324beb['forEach'](_0x255a1e=>_0x255a1e['detach']?.())),_0x346e11['length']&&(_0xbe3677['markMultiRangeDeletion'](_0x346e11,'tablePaste',{'tablePasteChainId':_0x25c7f3,'skipNestingCheck':!0x0}),_0x346e11['forEach'](_0x5b6968=>_0x5b6968['detach']?.()));const _0x379b1e=_0xbe3677['markMultiRangeBlockFormat'](_0x185b84['map'](({element:_0x1cbe29})=>_0x1cbe29),{'formatGroupId':_0x245371()},[],'tablePasteCell',{'tablePasteChainId':_0x25c7f3});if(_0x379b1e){const _0x540e06=_0x379b1e['getMarkers'](),_0x50ff33=[];for(const {element:_0x2adaf5,attributes:_0x35f364}of _0x185b84){if(!_0x35f364)continue;const _0x56f6e3=_0x5da2dc['model']['createRangeOn'](_0x2adaf5),_0x21cb8f=_0x540e06['find'](_0x3a4ba3=>_0x3a4ba3['getRange']()['isEqual'](_0x56f6e3));_0x21cb8f&&_0x50ff33['push']([_0x21cb8f['name'],_0x35f364]);}_0x50ff33['length']&&_0x379b1e['setAttribute']('markerAttributes',Object['fromEntries'](_0x50ff33));}_0x43ff18=null;}));},{'priority':_0x48fe90['high']+0xa}),_0x5da2dc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4be97e,_0x179954)=>{const [_0x2d7cc3,_0x41dea0,,_0x2c351b]=_0x179954;if(!_0x43ff18)return;_0x4be97e['stop']();const _0x2917c6=_0x2d7cc3['cell'],_0x86a2dd=_0x41dea0,_0x4a5201=Pe(_0x2917c6),_0x2a4219=Pe(_0x86a2dd);_0x4be97e['return']=_0x2917c6;let _0x537287=null,_0x1d023c=null;if(_0x2a4219||_0x4a5201){if(_0x4a5201&&!_0x2a4219){_0x2c351b['remove'](_0x2917c6['getChild'](0x0));for(const _0x5213a8 of Array['from'](_0x86a2dd['getChildren']()))_0x2c351b['insert'](_0x5213a8,_0x2917c6,'end');const _0x2d4010=_0x43ff18['rowInsertionIndexes']['includes'](_0x2d7cc3['row']),_0x31a296=_0x43ff18['columnInsertionIndexes']['includes'](_0x2d7cc3['column']);_0x2d4010||_0x31a296||(_0x537287=_0x186ef9['fromRange'](_0x2c351b['createRangeIn'](_0x2917c6)));}else _0x2a4219&&!_0x4a5201&&(_0x1d023c=_0x2c351b['createRangeIn'](_0x2917c6));}else{const _0x4ddab8=_0x2c351b['createElement']('tableCellSuggestion'),_0x3ed494=_0x2c351b['createElement']('tableCellSuggestion');_0x2c351b['wrap'](_0x2c351b['createRangeIn'](_0x2917c6),_0x3ed494),_0x2c351b['insert'](_0x4ddab8,_0x2917c6,0x0);for(const _0x2e594f of Array['from'](_0x86a2dd['getChildren']()))_0x2c351b['insert'](_0x2e594f,_0x4ddab8,'end');_0x537287=_0x186ef9['fromRange'](_0x2c351b['createRangeOn'](_0x4ddab8)),_0x1d023c=_0x186ef9['fromRange'](_0x2c351b['createRangeOn'](_0x3ed494));}const _0x3d95ea=Array['from'](_0x86a2dd['getAttributes']())['filter'](([_0x516b32])=>ge['includes'](_0x516b32));_0x43ff18['cells']['push']({'element':_0x2917c6,'attributes':_0x3d95ea['length']?Object['fromEntries'](_0x3d95ea):null}),_0x537287&&_0x43ff18['insertionRanges']['push'](_0x537287),_0x1d023c&&_0x43ff18['deletionRanges']['push'](_0x1d023c);},{'priority':'high'}),_0x5229a5['on']('insertColumns',(_0x142673,_0x206dc7)=>{const [_0x4bf650,_0x13bc1f={}]=_0x206dc7;if(!_0x43ff18)return;const _0x3d27d9=_0x13bc1f['at']||0x0,_0x6580d4=_0x13bc1f['columns']||0x1;_0x43ff18['columnInsertionIndexes']=new Array(_0x6580d4)['fill'](_0x3d27d9)['map']((_0x55144a,_0x27360a)=>_0x55144a+_0x27360a);for(const {cell:_0x5d72db}of _0x5229a5['createTableWalker'](_0x4bf650,{'startColumn':_0x3d27d9,'endColumn':_0x3d27d9+_0x6580d4-0x1}))_0x43ff18['columnInsertionRanges']['push'](_0x5da2dc['model']['createRangeOn'](_0x5d72db));},{'priority':'low'}),_0x5229a5['on']('insertRows',(_0x4a44af,_0x9467e3)=>{const [_0x4ec627,_0x2b45e7={}]=_0x9467e3;if(!_0x43ff18)return;const _0x3732bb=_0x2b45e7['at']||0x0,_0x230727=_0x2b45e7['rows']||0x1;_0x43ff18['rowInsertionIndexes']=new Array(_0x230727)['fill'](_0x3732bb)['map']((_0x43d026,_0x47a486)=>_0x43d026+_0x47a486);for(const {cell:_0x1c9267}of _0x5229a5['createTableWalker'](_0x4ec627,{'startRow':_0x3732bb,'endRow':_0x3732bb+_0x230727-0x1}))_0x43ff18['rowInsertionRanges']['push'](_0x5da2dc['model']['createRangeOn'](_0x1c9267));},{'priority':'low'}),_0xbe3677['descriptionFactory']['registerDescriptionCallback'](_0x5451f2=>{if(_0x5451f2['subType']&&_0x5451f2['subType']['startsWith']('tablePaste'))return _0x5451f2['previous']?{}:{'type':'insertion','content':o(_0x5da2dc['locale'],'*Replace\x20table\x20cells*')};});const _0x2179a9=()=>!0x1;for(const _0x5877d4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xbe3677['_suggestionFactory']['registerCustomCallback']('insertion',_0x5877d4,'join',_0x2179a9),_0xbe3677['_suggestionFactory']['registerCustomCallback']('deletion',_0x5877d4,'join',_0x2179a9),_0xbe3677['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5877d4,'join',_0x2179a9);_0xbe3677['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2179a9),_0xbe3677['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xdbd1f1,_0x24aea9,_0x256b4a)=>{const _0x2ad6f0=_0xdbd1f1['map'](_0xe9967e=>_0xe9967e['getContainedElement']())['filter'](_0x5c480c=>_0x5c480c),_0x24d55a=new Map(_0x2ad6f0['map'](_0x4c6aab=>[_0x4c6aab,null]));if(_0x43ff18){for(const {element:_0x4c0db0,attributes:_0x28d229}of _0x43ff18['cells'])_0x28d229&&_0x24d55a['set'](_0x4c0db0,_0x28d229);}else{if(_0x256b4a&&_0x256b4a['markerAttributes'])for(const [_0xf8cce5,_0x1d2fc3]of Object['entries'](_0x256b4a['markerAttributes'])){const _0x118ec7=_0x5da2dc['model']['markers']['get'](_0xf8cce5),_0x49feed=_0x118ec7?_0x118ec7['getRange']()['getContainedElement']():null;_0x49feed&&_0x24d55a['set'](_0x49feed,_0x1d2fc3);}}_0x5da2dc['model']['change'](_0x2d304a=>{for(const [_0x159220,_0x15b38c]of _0x24d55a)_0x2d304a['setAttributes']({...Ce,..._0x15b38c},_0x159220);});});const _0x3a5ed7=(_0xf6305d,_0x1a7457)=>{_0xbe3677['_suggestionFactory']['registerCustomCallback'](_0xf6305d,'tablePaste',_0x1a7457,(_0x4398e8,_0x58bf45,_0x3745d2)=>{_0x5da2dc['model']['change'](_0x4a7a44=>{const _0x222ec7=[];for(const _0x34bfea of _0x4398e8){const _0x522903=_0x34bfea['start']['nodeAfter'];_0x522903['is']('element','tableCellSuggestion')&&_0x222ec7['push'](_0x522903);}_0xbe3677['_suggestionFactory']['getSuggestionCallback'](_0xf6305d,null,_0x1a7457)(_0x4398e8,_0x58bf45,_0x3745d2);for(const _0x151693 of _0x222ec7)'$graveyard'!=_0x151693['root']['rootName']&&_0x4a7a44['unwrap'](_0x151693);});});};_0x3a5ed7('insertion','accept'),_0x3a5ed7('insertion','discard'),_0x3a5ed7('deletion','accept'),_0x3a5ed7('deletion','discard'),_0xbe3677['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x7d753d=>{const _0x310177=_0x7d753d['map'](_0xbf0ecf=>_0xbf0ecf['getContainedElement']()),_0x5402ce=_0x310177[0x0]['findAncestor']('table'),{minRow:_0x53418d,maxRow:_0x22b64d}=_0x1d93e4['_getCoordsForCells'](_0x310177);_0x5229a5['removeRows'](_0x5402ce,{'at':_0x53418d,'rows':_0x22b64d-_0x53418d+0x1});}),_0xbe3677['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x9d9937=>{const _0x1342f9=_0x9d9937['map'](_0x12bceb=>_0x12bceb['getContainedElement']()),_0x5e35fe=_0x1342f9[0x0]['findAncestor']('table'),{minColumn:_0x52ba46,maxColumn:_0x49ae32}=_0x1d93e4['_getCoordsForCells'](_0x1342f9);_0x5229a5['removeColumns'](_0x5e35fe,{'at':_0x52ba46,'columns':_0x49ae32-_0x52ba46+0x1});});const _0x6ffa72=(_0x1b3e10,_0x15b95d)=>{if(!_0x15b95d['subType']||!_0x15b95d['subType']['startsWith']('tablePaste'))return;const _0x2f8810=_0x15b95d['attributes']['tablePasteChainId'],_0x4ac3f9=_0xbe3677['getSuggestions']()['filter'](_0xcedddf=>_0xcedddf['isInContent']&&_0xcedddf['attributes']&&_0xcedddf['attributes']['tablePasteChainId']==_0x2f8810);_0x4ac3f9['length']&&_0x15b95d['getAllAdjacentSuggestions']()['length']!=_0x4ac3f9['length']&&_0x4ac3f9['reduce']((_0x576065,_0x13b58a)=>(_0x576065['next']=_0x13b58a,_0x13b58a['previous']=_0x576065,_0x13b58a));};function _0x3183c4(_0x369228,_0x1035f2=!0x0){const {id:_0xad93de}=_0xbe3677['_splitMarkerName'](_0x369228['markerName']),_0x2f6f84=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4e7351=_0xbe3677['activeMarkers']['includes'](_0x369228['markerName']);return _0x4e7351&&_0x2f6f84['push']('ck-suggestion-marker--active'),{'classes':_0x2f6f84,'attributes':{'data-suggestion':_0xad93de},'priority':_0x4e7351&&_0x1035f2?0xbc2:0xbb8};}_0xbe3677['on']('suggestionLoaded',_0x6ffa72,{'priority':'high'}),_0xbe3677['on']('suggestionUnloaded',_0x6ffa72,{'priority':'high'}),_0x5da2dc['model']['document']['registerPostFixer'](()=>{let _0x3790a8=!0x1;const _0x1d6b52=Array['from'](_0x5da2dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x489183,data:_0x196403}of _0x1d6b52){const {group:_0x280360,type:_0x2c2e45,id:_0x38a2d3}=_0xbe3677['_splitMarkerName'](_0x489183);if('suggestion'!=_0x280360||'deletion'!=_0x2c2e45||_0x196403['oldRange'])continue;if(!_0xbe3677['hasSuggestion'](_0x38a2d3))continue;const _0x419eab=_0xbe3677['getSuggestion'](_0x38a2d3)['getRanges'](),_0x11ff6e=_0x5da2dc['plugins']['get']('Users')['me'];for(const _0x3d3d58 of _0xbe3677['getSuggestions']()){if(!_0x3d3d58['isInContent']||_0x3d3d58['author']!=_0x11ff6e)continue;if('formatBlock'!=_0x3d3d58['type']||'tablePasteCell'!=_0x3d3d58['subType'])continue;if(_0x3d3d58['getRanges']()['every'](_0x58d3ec=>_0x419eab['some'](_0x4490af=>_0x4490af['containsRange'](_0x58d3ec,!0x0)))){for(const _0x2e7053 of _0x3d3d58['getAllAdjacentSuggestions']())_0x2e7053['isInContent']&&(_0x2e7053['discard'](),_0x3790a8=!0x0);}}}return _0x3790a8;}),_0x5da2dc['model']['document']['registerPostFixer'](_0x3b04d1=>{const _0x4c46b8=_0x5da2dc['commands']['get']('redo');if(!_0x4c46b8||!_0x4c46b8['_createdBatches']['has'](_0x3b04d1['batch']))return!0x1;let _0x4c0ff0=!0x1;const _0x498df6=_0x5da2dc['plugins']['get']('Users')['me'],_0x217d56=_0x5da2dc['model']['document']['differ']['getChanges'](),_0x54d5b0=Array['from'](_0x5da2dc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x50b1c2,data:_0x312224})=>{const {group:_0x346e1b,subType:_0x27371a,authorId:_0x12a429}=_0xbe3677['_splitMarkerName'](_0x50b1c2);return'suggestion'==_0x346e1b&&'tablePaste'==_0x27371a&&_0x12a429==_0x498df6['id']&&!_0x312224['oldRange'];});for(const _0x3587d8 of _0x217d56){if('insert'!=_0x3587d8['type']||'tableCellSuggestion'!=_0x3587d8['name']||0x1!=_0x3587d8['length'])continue;const _0xc0a4ca=_0x3b04d1['createRange'](_0x3587d8['position'],_0x3587d8['position']['getShiftedBy'](0x1));if(!_0x54d5b0['find'](({data:_0x3457a5})=>_0x3457a5['newRange']['isEqual'](_0xc0a4ca))){for(const {name:_0x156596,data:_0x535f08}of _0x54d5b0)if(_0xc0a4ca['containsRange'](_0x535f08['newRange'])){_0x3b04d1['updateMarker'](_0x156596,{'range':_0xc0a4ca}),_0x4c0ff0=!0x0;break;}}}return _0x4c0ff0;}),_0x5da2dc['model']['document']['registerPostFixer'](_0x3d2dc5=>{let _0xf91b71=!0x1;const _0x33d518=_0x5da2dc['plugins']['get']('Users')['me'],_0xc67627=_0xbe3677['getSuggestions']()['filter'](_0x56d401=>_0x56d401['isInContent']&&_0x56d401['author']==_0x33d518),_0x863e72=new Set(),_0x1e006f=new Set();for(const _0x15ecfb of _0xc67627)if('tablePaste'==_0x15ecfb['subType'])for(const _0x155c25 of _0x15ecfb['getMarkers']()){const _0x539ee0=_0x155c25['getRange']()['getContainedElement']();if(_0x539ee0){if(_0x539ee0['is']('element','tableCellSuggestion')&&Pe(_0x539ee0)){_0x15ecfb['removeMarker'](_0x155c25['name']),_0x863e72['add'](_0x539ee0),_0xf91b71=!0x0;const _0x1cddf7=_0x539ee0['nextSibling'],_0x2324d7=_0x539ee0['previousSibling'],_0x17c82d=_0x1cddf7&&_0x1cddf7['is']('element','tableCellSuggestion'),_0x3ca5d3=_0x2324d7&&_0x2324d7['is']('element','tableCellSuggestion');_0x17c82d&&!_0x863e72['has'](_0x1cddf7)&&_0x1e006f['add'](_0x1cddf7),_0x3ca5d3&&!_0x863e72['has'](_0x2324d7)&&_0x1e006f['add'](_0x2324d7);}else _0x539ee0['is']('element','paragraph')&&_0x539ee0['isEmpty']&&(_0x15ecfb['removeMarker'](_0x155c25['name']),_0xf91b71=!0x0);}}else{if('tablePasteCell'==_0x15ecfb['subType']){if(!_0x15ecfb['attributes']||!_0x15ecfb['attributes']['tablePasteChainId'])continue;const _0x23613a=_0x15ecfb['attributes']['markerAttributes'];if(_0x23613a&&Object['keys'](_0x23613a)['length'])continue;const _0x4e5df0=_0x15ecfb['attributes']['tablePasteChainId'];let _0x5280da=!0x0,_0x535e05=!0x0;for(const _0x32748f of _0xc67627)if(_0x32748f['subType']&&_0x32748f['subType']['startsWith']('tablePaste')){if(!_0x32748f['attributes']['tablePasteChainId']){_0x535e05=!0x1;break;}if(_0x32748f['id']!=_0x15ecfb['id']&&_0x32748f['attributes']['tablePasteChainId']==_0x4e5df0){_0x5280da=!0x1;break;}}_0x535e05&&_0x5280da&&(_0x15ecfb['removeMarkers'](),_0xf91b71=!0x0);}}for(const _0x63d0b7 of _0x863e72)_0x3d2dc5['remove'](_0x63d0b7);for(const _0x5dea2 of _0x1e006f)_0x3d2dc5['unwrap'](_0x5dea2);return _0xf91b71;}),_0x5da2dc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x100229,_0x23924d)=>_0x3183c4(_0x100229),'converterPriority':'high'}),_0x5da2dc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2dadca,_0x1a5b0d)=>_0x1a5b0d['options']['showSuggestionHighlights']?_0x3183c4(_0x2dadca,!0x1):null,'converterPriority':'high'});const _0x1bf837=_0x5da2dc['editing']['view'];this['listenTo'](_0x1bf837['document'],'clipboardOutput',(_0x48c16c,_0x2948e3)=>{const _0x234661=[];for(const _0x482b2a of _0x1bf837['createRangeIn'](_0x2948e3['content'])['getItems']())_0x482b2a['is']('element','suggestion-td')&&_0x234661['push'](_0x482b2a);_0x1bf837['change'](_0x387a3b=>{for(const _0x5f266f of _0x234661)_0x387a3b['move'](_0x387a3b['createRangeIn'](_0x5f266f),_0x387a3b['createPositionBefore'](_0x5f266f)),_0x387a3b['remove'](_0x5f266f);});});}}function Pe(_0x58b567){if(_0x58b567['isEmpty'])return!0x0;const _0x4d87a8=_0x58b567['getChild'](0x0);return _0x4d87a8['is']('element','paragraph')&&_0x4d87a8['isEmpty'];}function he(_0x233823,_0x37a3cd={},_0x4eec0d){for(const {isAnchor:_0x4b4587,cellHeight:_0x5d451b,cellWidth:_0x4cf054}of _0x4eec0d['createTableWalker'](_0x233823,{'includeAllSlots':!0x0,..._0x37a3cd}))if(!_0x4b4587||0x1!=_0x5d451b||0x1!=_0x4cf054)return!0x1;return!0x0;}class vt extends _0x2196b4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x263f2c=this['editor']['plugins']['get']('TrackChangesEditing');_0x263f2c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x263f2c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x263f2c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x263f2c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x263f2c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x263f2c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xa5b3e4,_0x53ee20){const _0x476a1d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e7b6f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x514707=_0x53ee20['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x51d0b7=_0x5e7b6f['getColumnGroupElement'](_0x514707);let _0x34123a=_0x51d0b7?_0x5e7b6f['getTableColumnsWidths'](_0x51d0b7):null,_0x30f72c=_0x514707['getAttribute']('tableWidth')||null;const _0x47de75=_0x53ee20['tableWidth']||_0x30f72c,_0x5309f8=_0x53ee20['columnWidths']||_0x34123a,_0x168190=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d76a0 of _0x476a1d['getSuggestions']()){const _0x665a22=_0x3d76a0['getContainedElement']();if('resizeTable'===_0x3d76a0['subType']&&_0x665a22===_0x514707){_0x3d76a0['author']!==_0x168190&&_0x3d76a0['discard']();const _0x5b2711=_0x3d76a0['data']['commandParams'];_0x30f72c=_0x5b2711[0x0]['tableWidth'],_0x34123a=_0x5b2711[0x0]['columnWidths'];break;}}_0xa5b3e4({'table':_0x514707,'tableWidth':_0x47de75,'columnWidths':_0x5309f8}),_0x476a1d['markBlockFormat'](_0x514707,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x30f72c,'columnWidths':_0x34123a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x34f80e){if('formatBlock'!=_0x34f80e['type']&&'formatInline'!=_0x34f80e['type'])return;const {data:_0x58848f}=_0x34f80e;if(_0x58848f&&'resizeTable'===_0x58848f['formatGroupId']){const _0xb66043='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xb66043)};}}}class _t extends _0x2196b4{['afterInit'](){const _0x3ffe7a=this['editor'];_0x3ffe7a['plugins']['has']('Template')&&_0x3ffe7a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x2196b4{['afterInit'](){const _0x104470=this['editor'];if(!_0x104470['commands']['get']('insertTableOfContents'))return;_0x104470['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3d065e=_0x104470['plugins']['get']('TrackChangesEditing'),_0x3b1934=_0x104470['locale'];_0x3d065e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4a31c0=>o(_0x3b1934,'ELEMENT_TABLE_OF_CONTENTS',_0x4a31c0));}}class Dt extends _0x2196b4{['afterInit'](){const _0xec6906=this['editor'];if(!_0xec6906['plugins']['has']('Title'))return;const _0x1e902d=_0xec6906['plugins']['get']('TrackChangesEditing');_0x1e902d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xec6906['locale'],'ELEMENT_TITLE')),_0xec6906['model']['document']['registerPostFixer'](_0x456026=>{let _0x92d5c2=!0x1;const _0xb9b695=Array['from'](_0xec6906['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54925c,data:_0x273e5e}of _0xb9b695){const {group:_0x49a5c9}=_0x1e902d['_splitMarkerName'](_0x54925c);if('suggestion'!==_0x49a5c9||!_0x273e5e['newRange'])continue;const _0x1f7963=_0x273e5e['newRange'],_0x1a48e5=_0x1f7963['end']['nodeBefore'];if(!_0x1a48e5||!_0x1a48e5['is']('element','title-content'))continue;if(!_0x1f7963['start']['isTouching'](_0x1f7963['end']))continue;const _0x1bb321=_0xec6906['model']['schema']['getNearestSelectionRange'](_0x1f7963['end'],'forward');if(_0x1bb321&&_0x1bb321['isCollapsed']){const _0x2989e7=_0x456026['createRange'](_0x1f7963['start'],_0x1bb321['start']);_0x2989e7['isEqual'](_0x1f7963)||(_0x456026['updateMarker'](_0x54925c,{'range':_0x2989e7}),_0x92d5c2=!0x0);}_0x92d5c2||(_0x456026['removeMarker'](_0x54925c),_0x92d5c2=!0x0);}return _0x92d5c2;});}}class Nt extends _0x2196b4{['afterInit'](){const _0x27851f=this['editor'],_0x14d13e=_0x27851f['plugins']['get']('TrackChangesEditing');_0x27851f['plugins']['has']('UndoEditing')&&(_0x14d13e['enableCommand']('undo'),_0x14d13e['enableCommand']('redo'));}}class Mt extends _0x2196b4{static get['requires'](){return[jt];}['afterInit'](){const _0x1c8167=this['editor'];if(!_0x1c8167['plugins']['has']('TableCaptionEditing'))return;_0x1c8167['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x2196b4{['tableProperties'];['tableCellProperties'];constructor(_0x1af972){super(_0x1af972),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 _0x4a36ce=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x55975b of this['tableProperties'])_0x4a36ce['enableCommand'](_0x55975b,(_0x3a9a26,_0x5a56d7)=>{const _0xdd74ef=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x55975b,[_0xdd74ef],this['tableProperties'],'tableProperties',_0x3a9a26,_0x5a56d7);});_0x4a36ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4a36ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a36ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4007d0,_0x12989b)=>this['handleDiscardAction'](this['tableProperties'],_0x4007d0,_0x12989b)),_0x4a36ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x55c548 of this['tableCellProperties'])_0x4a36ce['enableCommand'](_0x55c548,(_0x300761,_0x4bbeba)=>{const _0x428785=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x55c548,_0x428785,this['tableCellProperties'],'tableCellProperties',_0x300761,_0x4bbeba);});_0x4a36ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4a36ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a36ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x38756f,_0x2e747)=>this['handleDiscardAction'](this['tableCellProperties'],_0x38756f,_0x2e747)),_0x4a36ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4a36ce['descriptionFactory']['registerDescriptionCallback'](_0x586f3c=>this['handleSuggestionDescription'](_0x586f3c));}['_handlePropertyChange'](_0x45f16b,_0x25ee59,_0x1dbce3,_0x142bdf,_0x4c835b,_0x3e7563){const _0x26227c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3e7563['batch'],()=>{for(const _0x2f625f of _0x25ee59){if(this['_getSuggestion'](_0x2f625f,_0x142bdf))_0x4c835b(_0x3e7563);else{const _0x92f20c={};for(const _0xb19078 of _0x1dbce3){const _0x24d8fd=_0x2f625f['getAttribute'](_0xb19078);void 0x0!==_0x24d8fd&&(_0x92f20c[_0xb19078]=_0x24d8fd);}_0x4c835b(_0x3e7563),_0x26227c['markBlockFormat'](_0x2f625f,{'commandParams':[_0x92f20c]},[],_0x142bdf);}}});}['handleDiscardAction'](_0x4f6a71,_0x321dd0,_0x49a209){const _0x27e33b=_0x321dd0[0x0]['start']['nodeAfter'],_0xf6efba=_0x49a209['commandParams'][0x0];this['editor']['model']['change'](_0x550d8e=>{for(const _0x4cebf9 of _0x4f6a71)void 0x0!==_0xf6efba[_0x4cebf9]?_0x550d8e['setAttribute'](_0x4cebf9,_0xf6efba[_0x4cebf9],_0x27e33b):_0x550d8e['removeAttribute'](_0x4cebf9,_0x27e33b);});}['handleSuggestionDescription'](_0x156f9a){if(_0x156f9a['data'])switch(_0x156f9a['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'](_0x1629a0,_0x2f82cb){const _0x58dad8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x327287 of _0x58dad8['getSuggestions']({'skipNotAttached':!0x0})){const _0xec3158=_0x327287['getContainedElement']();if(_0x327287['subType']===_0x2f82cb&&_0xec3158===_0x1629a0)return _0x327287;}return null;}}const m='$elementName';class p extends _0x2196b4{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x306231,_0x29f340,E,V,U,O,G,F,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,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x118b27){function _0x13cc53(_0x1ee55a){return _0x1ee55a['map'](_0x36857f=>String['fromCharCode'](_0x36857f))['join']('');}super(_0x118b27),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2808a8,_0x2f80fc,_0x59408d,_0x4f7b80)=>{this['_model']['change'](()=>{for(const _0x4a2cb3 of[..._0x4f7b80,..._0x59408d])this['_model']['markers']['has'](_0x4a2cb3)&&_0x118b27['editing']['reconvertMarker'](_0x4a2cb3);});}),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']=_0x118b27['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(),_0x118b27['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x118b27['config']['get']('trackChanges.trackFormatChanges'),_0x118b27['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x118b27['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x118b27,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x13cc53([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x13cc53([0x34,0x30,0x34,0x38,0x31,0x30,0x34,0x34]);}['init'](){const _0x2ec268=this['editor'],_0x203632=(_0x526004,_0x2badd9)=>{if('attribute'!=_0x526004)return'ck-suggestion-marker-'+_0x526004;const _0xc41369=_0x2badd9['split']('|')[0x0];return this['_isBlockAttribute'](_0xc41369)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2ec268['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x27eb91=>{const {id:_0x1ff3e2,type:_0x247325,subType:_0x2b1363}=this['_splitMarkerName'](_0x27eb91['markerName']),_0xd2a501=['ck-suggestion-marker',_0x203632(_0x247325,_0x2b1363)];let _0x26719f=0xbb8;return this['activeMarkers']['includes'](_0x27eb91['markerName'])&&(_0xd2a501['push']('ck-suggestion-marker--active'),_0x26719f=0xbc2),'deletion'==_0x247325&&(_0x26719f+=0x5),{'classes':_0xd2a501,'attributes':{'data-suggestion':_0x1ff3e2},'priority':_0x26719f};}}),_0x2ec268['conversion']['for']('dataDowncast')['add'](_0x7f735a=>{_0x7f735a['on']('addMarker:suggestion',(_0xf717f,_0x3c96ac,_0x35c1f6)=>{if(!_0x35c1f6['options']['showSuggestionHighlights'])return;const _0x1a0c59=_0x3c96ac['item'];if(!_0x1a0c59)return;const _0x12aad0=_0x35c1f6['mapper']['toViewElement'](_0x1a0c59);_0x2ec268['model']['schema']['isObject'](_0x1a0c59)&&_0x12aad0&&!_0x12aad0['getCustomProperty']('widget')&&_0x12aad0['is']('containerElement')&&_0x3bf34d(_0x12aad0,_0x35c1f6['writer']);},{'priority':'high'});}),_0x2ec268['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x373c52,_0x3b2f93)=>{if(!_0x3b2f93['options']['showSuggestionHighlights'])return null;const {type:_0xbdac63,subType:_0x18c37e}=this['_splitMarkerName'](_0x373c52['markerName']);return{'classes':['ck-suggestion-marker',_0x203632(_0xbdac63,_0x18c37e)],'priority':0xbb8};}});const _0x387c9b=({showActiveMarkers:_0x48e0b3=!0x0,isAttributeSuggestion:_0x35b6cd=!0x1}={})=>(_0x2ef95c,_0x7fda30,_0x183ace)=>{if(!_0x7fda30['item'])return;const {id:_0x5ac5fe}=this['_splitMarkerName'](_0x7fda30['markerName']);if(_0x35b6cd){const _0x33873c=this['_suggestions']['get'](_0x5ac5fe),_0x2ee282=this['_getAttributeKey'](_0x33873c);if(!this['_isBlockAttribute'](_0x2ee282))return;}if(_0x7fda30['item']['is']('selection'))return void _0x183ace['consumable']['consume'](_0x7fda30['item'],_0x2ef95c['name']);const _0x1ee2b9=_0x183ace['mapper']['toViewElement'](_0x7fda30['item']);if(_0x7fda30['item']['is']('element')&&_0x2ec268['model']['schema']['isBlock'](_0x7fda30['item'])&&!_0x1ee2b9['getCustomProperty']('addHighlight')){_0x183ace['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1ee2b9),_0x183ace['writer']['setAttribute']('data-suggestion',_0x5ac5fe,_0x1ee2b9),_0x183ace['mapper']['bindElementToMarker'](_0x1ee2b9,_0x7fda30['markerName']),_0x48e0b3&&(this['activeMarkers']['includes'](_0x7fda30['markerName'])?_0x183ace['writer']['addClass']('ck-suggestion-marker--active',_0x1ee2b9):_0x183ace['writer']['removeClass']('ck-suggestion-marker--active',_0x1ee2b9));for(const _0x23acb9 of _0x2ec268['model']['createRangeIn'](_0x7fda30['item'])['getItems']())_0x183ace['consumable']['consume'](_0x23acb9,_0x2ef95c['name']);_0x183ace['consumable']['consume'](_0x7fda30['item'],_0x2ef95c['name']);}};_0x2ec268['conversion']['for']('dataDowncast')['add'](_0x419d3a=>{_0x419d3a['on']('addMarker:suggestion:formatBlock',(_0xd8a4d4,_0x387166,_0x5255ed)=>{_0x5255ed['options']['showSuggestionHighlights']&&_0x387c9b({'showActiveMarkers':!0x1})(_0xd8a4d4,_0x387166,_0x5255ed);},{'priority':'highest'});}),_0x2ec268['conversion']['for']('dataDowncast')['add'](_0x9c0ce3=>{_0x9c0ce3['on']('addMarker:suggestion:attribute',(_0x2368c6,_0xd2bb3d,_0x4b52ae)=>{_0x4b52ae['options']['showSuggestionHighlights']&&_0x387c9b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2368c6,_0xd2bb3d,_0x4b52ae);},{'priority':'highest'});}),_0x2ec268['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1b4442,_0xefa14f)=>_0xefa14f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1b4442['substr'](0xb)}}),_0x2ec268['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xf482c5,{writer:_0x9862ac})=>{let _0x54353e='suggestion:'+_0xf482c5['getAttribute']('suggestion-type')+':'+_0xf482c5['getAttribute']('id');return _0xf482c5['getAttribute']('marker-count')&&(_0x54353e+=':'+_0xf482c5['getAttribute']('marker-count')),_0x9862ac['createElement']('$marker',{'data-name':_0x54353e});}}),_0x2ec268['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2ec268['conversion']['for']('editingDowncast')['add'](_0x1ba0ef=>{_0x1ba0ef['on']('addMarker:suggestion:formatBlock',_0x387c9b(),{'priority':'high'});}),_0x2ec268['conversion']['for']('editingDowncast')['add'](_0x56e952=>{_0x56e952['on']('addMarker:suggestion:attribute',_0x387c9b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2ec268['conversion']['for']('editingDowncast')['add'](_0x53b750=>{_0x53b750['on']('removeMarker:suggestion:formatBlock',(_0x111b3b,_0x4b9767,_0x341553)=>{const _0x31def9=_0x341553['mapper']['markerNameToElements'](_0x4b9767['markerName']);if(_0x31def9){for(const _0x55d950 of _0x31def9)_0x55d950['getCustomProperty']('addHighlight')||(_0x341553['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x55d950),_0x341553['writer']['removeAttribute']('data-suggestion',_0x55d950),_0x341553['mapper']['unbindElementFromMarkerName'](_0x55d950,_0x4b9767['markerName']));}},{'priority':'high'});}),_0x2ec268['conversion']['for']('editingDowncast')['add'](_0x861c54=>{_0x861c54['on']('removeMarker:suggestion:attribute',(_0xda7f7a,_0x49039e,_0x19f0ac)=>{const _0x4809ce=_0x19f0ac['mapper']['markerNameToElements'](_0x49039e['markerName']);if(!_0x4809ce)return;const {id:_0x4f20f6}=this['_splitMarkerName'](_0x49039e['markerName']),_0x54cbf5=this['_suggestions']['get'](_0x4f20f6),_0x382ad5=this['_getAttributeKey'](_0x54cbf5);if(this['_isBlockAttribute'](_0x382ad5)){for(const _0x1cf0ec of _0x4809ce)_0x1cf0ec['getCustomProperty']('addHighlight')||(_0x19f0ac['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1cf0ec),_0x19f0ac['writer']['removeAttribute']('data-suggestion',_0x1cf0ec),_0x19f0ac['mapper']['unbindElementFromMarkerName'](_0x1cf0ec,_0x49039e['markerName']));}},{'priority':'high'});}),_0x2ec268['model']['document']['registerPostFixer'](_0x53ef7a=>{let _0x119463=!0x1;const _0x2980de=Array['from'](_0x2ec268['model']['document']['differ']['getChangedMarkers']()),_0x563662=new Set();for(const {name:_0x59c4a7,data:_0x395071}of _0x2980de){const {group:_0x1d499d,type:_0x39dd50,subType:_0x2cb50a,id:_0x477456}=this['_splitMarkerName'](_0x59c4a7);if('suggestion'!==_0x1d499d)continue;const _0xb3371f=this['_suggestions']['get'](_0x477456);if(null!=_0x395071['newRange']){'formatInline'==_0x39dd50&&(_0x119463=_0x119463||Et(_0x395071['newRange'],_0x59c4a7,_0x53ef7a,_0x2ec268['model']['schema']));const _0x1b5de2='attribute'==_0x39dd50&&this['_isBlockAttribute'](_0x2cb50a['split']('|')[0x0]);if(_0x395071['newRange']['isCollapsed']||'$graveyard'==_0x395071['newRange']['root']['rootName']||'formatBlock'==_0x39dd50&&!Ut(_0x395071['newRange'])||_0x1b5de2&&!Ut(_0x395071['newRange'])||'deletion'==_0x39dd50&&!(!Tt(_0x119349=_0x395071['newRange'])&&!function(_0x12348a){return _0x12348a['start']['parent']==_0x12348a['end']['nodeBefore']&&_0x12348a['start']['isAtEnd'];}(_0x119349)))_0x53ef7a['removeMarker'](_0x59c4a7),_0x119463=!0x0;else{if(!_0xb3371f||!_0xb3371f['isInContent'])continue;_0x563662['add'](_0xb3371f);}}}var _0x119349;return _0x563662['size']>0x0&&(_0x119463=!!this['_joinWithAdjacentSuggestions'](_0x563662)||_0x119463),_0x119463;}),_0x2ec268['model']['document']['registerPostFixer'](_0x4e9152=>{let _0x484e58=!0x1;for(const _0x4ccfda of _0x2ec268['model']['document']['differ']['getChanges']())if('insert'==_0x4ccfda['type'])for(const _0x572f8c of this['_suggestions']['values']()){if(_0x572f8c['isMultiRange']||!_0x572f8c['isInContent'])continue;const _0x382b39='formatBlock'==_0x572f8c['type'],_0x7d12bd=this['_getAttributeKey'](_0x572f8c),_0x3b9a44=_0x7d12bd&&this['_isBlockAttribute'](_0x7d12bd);if(!_0x382b39&&!_0x3b9a44)continue;const _0x4b9f9a=_0x572f8c['getFirstRange']();if(_0x4b9f9a['start']['parent']!=_0x4b9f9a['end']['parent']&&!_0x4b9f9a['end']['isAtEnd']){const _0x569c33=_0x2ec268['model']['createPositionAt'](_0x4b9f9a['start']['nodeAfter'],'end'),_0x3df140=_0x2ec268['model']['createRange'](_0x4b9f9a['start'],_0x569c33);_0x4e9152['updateMarker'](_0x572f8c['getFirstMarker'](),{'range':_0x3df140}),_0x484e58=!0x0;}}return _0x484e58;}),_0x2ec268['model']['document']['registerPostFixer'](_0x1347d5=>this['_processAttributeChanges'](_0x1347d5)),_0x2ec268['model']['document']['registerPostFixer'](_0x23d9a9=>!_0x23d9a9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x23d9a9)),_0x2ec268['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2ec268['model']['document']['on']('change:data',(_0xe38559,_0x5c835e)=>{if(!_0x5c835e['isLocal']||_0x5c835e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5b839f=_0x2ec268['model']['document']['differ']['getChanges']();if(0x0==_0x5b839f['length'])return;const _0x1bfd77=[],_0x31abc3=_0x5b839f['filter'](_0x1849f4=>'attribute'==_0x1849f4['type']),_0x4f1aa3=_0x5b839f['filter'](_0x5812fc=>'insert'==_0x5812fc['type']&&'$text'!=_0x5812fc['name']),_0x1c3962=_0x5b839f['filter'](_0x597fbc=>'remove'==_0x597fbc['type']&&'$text'!=_0x597fbc['name']);for(const _0x4f3ec4 of _0x31abc3)this['_isRegisteredAttribute'](_0x4f3ec4['attributeKey'])&&_0x1bfd77['push']({'key':_0x4f3ec4['attributeKey'],'newValue':_0x4f3ec4['attributeNewValue'],'oldValue':_0x4f3ec4['attributeOldValue'],'range':Ot(_0x4f3ec4['range'],_0x2ec268['model'])});for(const _0x3b0c86 of _0x4f1aa3){const _0x355e78=_0x1c3962['find'](_0x2fe037=>_0x2fe037['_element']===_0x3b0c86['_element']);if(_0x355e78){const _0x2ea28e=Ft(_0x3b0c86['position']['nodeAfter'],_0x2ec268['model']);_0x355e78['name']!==_0x3b0c86['name']&&_0x1bfd77['push']({'key':m,'newValue':_0x3b0c86['name'],'oldValue':_0x355e78['name'],'range':_0x2ea28e});for(const [_0x391770,_0x59997f]of _0x355e78['attributes']){if(!this['_isRegisteredAttribute'](_0x391770))continue;const _0x5edee4=_0x3b0c86['attributes']['get'](_0x391770);_0x59997f!==_0x5edee4&&_0x1bfd77['push']({'key':_0x391770,'newValue':_0x5edee4,'oldValue':_0x59997f,'range':_0x2ea28e});}for(const [_0x5b6bd7,_0x44e95a]of _0x3b0c86['attributes'])this['_isRegisteredAttribute'](_0x5b6bd7)&&(_0x355e78['attributes']['has'](_0x5b6bd7)||_0x1bfd77['push']({'key':_0x5b6bd7,'newValue':_0x44e95a,'oldValue':null,'range':_0x2ea28e}));}}0x0!=_0x1bfd77['length']&&_0x2ec268['model']['enqueueChange'](_0x5c835e,_0x4b39d3=>{const _0x3a0f35=_0x245371();for(const {range:_0x192229,key:_0x455303,oldValue:_0x23d7df,newValue:_0x1c76ba}of _0x1bfd77)this['markAttributeChange'](_0x192229,_0x455303,_0x23d7df,_0x1c76ba,{'groupId':_0x3a0f35});this['_reduceExistingSuggestions'](_0x4b39d3,_0x1bfd77);});},{'priority':'lowest'}),_0x2ec268['model']['markers']['on']('update:suggestion',(_0x413d4e,_0x4f692a,_0x3cea10)=>{if(null==_0x3cea10){const {id:_0x260c67}=this['_splitMarkerName'](_0x4f692a['name']),_0x547d63=this['_suggestions']['get'](_0x260c67);_0x547d63&&_0x547d63['addMarkerName'](_0x4f692a['name']);}}),_0x2ec268['model']['document']['on']('change:data',()=>{const _0x1b1805=Array['from'](_0x2ec268['model']['document']['differ']['getChangedMarkers']())['filter'](_0x11c047=>'suggestion'===this['_splitMarkerName'](_0x11c047['name'])['group']);if(0x0===_0x1b1805['length'])return;_0x1b1805['sort']((_0x564061,_0x27288f)=>{const _0x105907=_0x564061['data']['oldRange'],_0x1de1eb=_0x27288f['data']['oldRange'];return null===_0x105907&&null===_0x1de1eb?0x0:null===_0x105907&&null!==_0x1de1eb?-0x1:null!==_0x105907&&null===_0x1de1eb?0x1:_0x105907['start']['isBefore'](_0x1de1eb['start'])?-0x1:0x1;});const _0x4d3bbd=new Set(),_0x17c2bd=new Set();for(const {name:_0x20887a,data:_0x42b1c4}of _0x1b1805){const {id:_0x3cff77}=this['_splitMarkerName'](_0x20887a);if(null===_0x42b1c4['oldRange']){const _0x30004c=this['_handleNewSuggestionMarker'](_0x20887a);_0x17c2bd['add'](_0x30004c);}else{const _0x396ffc=this['_suggestions']['get'](_0x3cff77);null!==_0x42b1c4['newRange']||_0x396ffc['isInContent']?(_0x4d3bbd['add'](_0x396ffc['head']),_0x17c2bd['add'](_0x396ffc)):this['_removeSuggestion'](_0x396ffc);}}_0x17c2bd['size']>0x0&&this['_refreshSuggestionsChain'](_0x17c2bd);for(const _0x1936d1 of _0x4d3bbd)this['fire']('suggestionChanged',_0x1936d1);}),_0x2ec268['model']['on']('applyOperation',(_0x3484e5,_0x200581)=>{const _0x16f37b=_0x200581[0x0];if(!this['_suggestions']['size'])return;if(!_0x16f37b['isDocumentOperation'])return;if(_0x16f37b['batch']['isUndo']||!_0x16f37b['batch']['isLocal'])return;let _0x488aaa,_0x2d123a;switch(_0x16f37b['type']){case'insert':_0x488aaa=_0x2ec268['model']['createPositionAt'](_0x16f37b['position']),_0x2d123a=_0x488aaa['getShiftedBy'](_0x16f37b['howMany']);break;case'split':_0x488aaa=_0x2ec268['model']['createPositionAt'](_0x16f37b['splitPosition']),_0x2d123a=_0x2ec268['model']['createPositionAt'](_0x16f37b['moveTargetPosition']);break;case'move':_0x488aaa=_0x2ec268['model']['createPositionAt'](_0x16f37b['targetPosition']),_0x2d123a=_0x488aaa['getShiftedBy'](_0x16f37b['howMany']);break;default:return;}const _0x28ae18=_0x2ec268['model']['createRange'](_0x488aaa,_0x2d123a);_0x2ec268['model']['change'](()=>{for(const {suggestion:_0x4f3f6c,meta:_0x2fc6fa}of this['_findSuggestions'](_0x28ae18)){if(_0x4f3f6c['isMultiRange'])continue;if('formatInline'==_0x4f3f6c['type'])continue;const _0xcd62e9=this['_getAttributeKey'](_0x4f3f6c);if(_0xcd62e9&&this['_isBlockAttribute'](_0xcd62e9)&&'split'!=_0x16f37b['type'])continue;const _0x1147f8=_0x4f3f6c['data']&&_0x4f3f6c['data']['multipleBlocks'];('formatBlock'!=_0x4f3f6c['type']||'split'==_0x16f37b['type']&&!_0x1147f8)&&(_0x2fc6fa['containsRangeInObject']||'insertion'==_0x4f3f6c['type']&&_0x2fc6fa['isOwn']||_0x4f3f6c['getFirstRange']()['containsRange'](_0x28ae18)&&this['_breakSuggestionMarker'](_0x4f3f6c,_0x488aaa,_0x2d123a));}});},{'priority':'lowest'}),_0x2ec268['model']['on']('deleteContent',(_0x1adfb5,_0x1f121e)=>{const _0x3bb4dc=_0x1f121e[0x0],_0x567bc0=_0x1f121e[0x1];if(_0x567bc0&&_0x567bc0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3bb4dc['isCollapsed'])return;const _0x17ef40=_0x2ec268['model']['schema'],{start:_0xbd3718,end:_0x2e2065}=_0x3bb4dc['getFirstRange'](),_0x1b1b1f=_0xbd3718['nodeAfter']&&_0x17ef40['isLimit'](_0xbd3718['nodeAfter'])?null:_0x17ef40['getNearestSelectionRange'](_0xbd3718,'forward'),_0x53364d=_0x2e2065['nodeBefore']&&_0x17ef40['isLimit'](_0x2e2065['nodeBefore'])?null:_0x17ef40['getNearestSelectionRange'](_0x2e2065,'backward'),_0xe7dd95=_0x2ec268['model']['createRange'](_0x1b1b1f?_0x1b1b1f['start']:_0xbd3718,_0x53364d?_0x53364d['end']:_0x2e2065);_0x2ec268['model']['change'](_0x3e251c=>{this['markDeletion'](_0xe7dd95);const _0x136427=_0x2ec268['model']['schema']['getNearestSelectionRange'](_0xe7dd95['start']);_0x3bb4dc['is']('documentSelection')?_0x3e251c['setSelection'](_0x136427):_0x3bb4dc['setTo'](_0x136427);}),_0x1adfb5['stop']();},{'priority':_0x48fe90['normal']+0xa}),_0x2ec268['model']['on']('insertContent',(_0x566696,_0x3cce06)=>{const _0x894f3c=_0x3cce06[_0x3cce06['length']-0x1];_0x894f3c&&_0x894f3c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2ec268['model']['change'](()=>{let _0x1094f0=_0x2ec268['model']['insertContent'](_0x3cce06[0x0],_0x3cce06[0x1],_0x3cce06[0x2],{'forceDefaultExecution':!0x0});if(!_0x1094f0)return;_0x566696['return']=_0x1094f0['clone']();const _0x3bb366=_0x1094f0['end']['nodeBefore'],_0x12ed40=_0x2ec268['model']['schema'];_0x3bb366&&_0x12ed40['isBlock'](_0x3bb366)&&!_0x12ed40['isObject'](_0x3bb366)&&(_0x1094f0=_0x2ec268['model']['createRange'](_0x1094f0['start'],_0x2ec268['model']['createPositionAt'](_0x3bb366,'end'))),this['markInsertion'](_0x1094f0);}),_0x566696['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x267e07=new $(_0x2ec268,this['_suggestions']);_0x2ec268['commands']['add']('acceptSuggestion',_0x267e07),this['enableCommand']('acceptSuggestion');const _0x246bd7=new B(_0x2ec268,this['_suggestions']);_0x2ec268['commands']['add']('discardSuggestion',_0x246bd7),this['enableCommand']('discardSuggestion'),_0x2ec268['commands']['add']('acceptAllSuggestions',new x(_0x2ec268,_0x267e07,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2ec268['commands']['add']('discardAllSuggestions',new x(_0x2ec268,_0x246bd7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2ec268['commands']['add']('acceptSelectedSuggestions',new R(_0x2ec268,_0x267e07,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2ec268['commands']['add']('discardSelectedSuggestions',new R(_0x2ec268,_0x246bd7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x683834=_0x2ec268['plugins']['get']('CommentsRepository');this['listenTo'](_0x683834,'addComment',(_0x4a8dd0,{threadId:_0x3770d4})=>{const _0x458405=this['_suggestions']['get'](_0x3770d4);_0x458405&&_0x458405['commentThread']&&0x1===_0x458405['commentThread']['length']&&this['_updateSuggestionData'](_0x3770d4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x683834,'removeComment',(_0x4c7776,{threadId:_0x54e4e0})=>{const _0x48c726=this['_suggestions']['get'](_0x54e4e0);_0x48c726&&_0x48c726['commentThread']&&!_0x48c726['commentThread']['length']&&this['_updateSuggestionData'](_0x54e4e0,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1b0eef){if(this['_adapter'])throw new _0x4a2b29('track-changes-adapter-already-set',this);this['_adapter']=_0x1b0eef;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2cbb52=!0x1,toJSON:_0x5e429e=!0x1}={}){const _0x1d8cb8=[];for(const _0x4da0fd of this['_suggestions']['values']())_0x2cbb52&&!_0x4da0fd['isInContent']||_0x1d8cb8['push'](_0x4da0fd);return _0x5e429e?_0x1d8cb8['map'](_0x307713=>_0x307713['toJSON']()):_0x1d8cb8;}['getSuggestion'](_0x34a512){const _0x19587b=this['_suggestions']['get'](_0x34a512);if(!_0x19587b)throw new _0x4a2b29('track-changes-suggestion-not-found',this);return _0x19587b;}['hasSuggestion'](_0x6bd9f1){return this['_suggestions']['has'](_0x6bd9f1);}['addSuggestionData'](_0x50a45d){const {authorId:_0xabc4b6,id:_0x51355c,attributes:_0x4d128f}=_0x50a45d,[_0x62dc2d,_0x6ea50b]=_0x50a45d['type']['split'](':'),_0x40852f=this['_suggestions']['get'](_0x51355c)||this['_createSuggestion'](_0x62dc2d,_0x6ea50b,_0x51355c,_0xabc4b6,_0x4d128f);if(this['_addThreadToSuggestion'](_0x40852f),this['_checkSuggestionCorrectness'](_0x40852f,_0x62dc2d,_0x6ea50b||null,_0xabc4b6),_0x40852f['createdAt']=_0x50a45d['createdAt'],_0x40852f['_isDataLoaded']=!0x0,_0x4d128f&&_0x4d128f['@external']){const _0x5ef644=_0x4d128f['@external'],_0x2928ef=this['_getExternalAuthor'](_0x5ef644['authorName']);_0x40852f['authoredAt']=_0x5ef644['createdAt'],_0x40852f['author']=_0x2928ef,_0x40852f['isExternal']=!0x0;}else _0x40852f['authoredAt']=_0x50a45d['createdAt'];switch(_0x50a45d['data']&&(_0x40852f['data']=_0x50a45d['data']),_0x50a45d['attributes']&&(_0x40852f['attributes']=_0x50a45d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x40852f['_saved']=!0x0),this['_suggestionState']['get'](_0x40852f)){case'notReady':this['_suggestionState']['set'](_0x40852f,'dataReady');break;case'markerReady':_0x40852f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x40852f])),this['_refreshSuggestionsChain'](new Set([_0x40852f])),this['_suggestionState']['set'](_0x40852f,'ready'),this['fire']('suggestionLoaded',_0x40852f)):this['_suggestionState']['set'](_0x40852f,'removed');}return _0x40852f;}['acceptSuggestion'](_0x171253){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d6a0f of _0x171253['getAllAdjacentSuggestions']())_0x5d6a0f['accept']();});});}['discardSuggestion'](_0x342d81){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x364326 of _0x342d81['getAllAdjacentSuggestions']())_0x364326['discard']();});});}['enableCommand'](_0x4ef161,_0x4b823f){const _0x2eb8d3=this['editor']['commands']['get'](_0x4ef161);if(!_0x2eb8d3)throw new _0x4a2b29('track-changes-command-not-found',this,{'commandName':_0x4ef161});if(this['_enabledCommands']['has'](_0x2eb8d3))throw new _0x4a2b29('track-changes-enable-command-twice',this,{'commandName':_0x4ef161});this['_enabledCommands']['add'](_0x2eb8d3),_0x4b823f&&_0x2eb8d3['on']('execute',(_0x539ea7,_0x5d395f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5d395f['length']>0x0&&_0x5d395f[_0x5d395f['length']-0x1]&&_0x5d395f[_0x5d395f['length']-0x1]['forceDefaultExecution']?_0x5d395f['pop']():(_0x539ea7['return']=_0x4b823f((..._0x49d443)=>_0x2eb8d3['execute'](..._0x49d443,{'forceDefaultExecution':!0x0}),..._0x5d395f),_0x539ea7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1d5f1a){let _0x487370,_0x58c858;const _0x14e788=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x487370=_0x1d5f1a();}catch(_0x552326){_0x58c858=_0x552326;}return _0x14e788||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x58c858&&_0x4a2b29['rethrowUnexpectedError'](_0x58c858,this),_0x487370;}['markInsertion'](_0x2bb30c,_0x23228b=null,_0x55c2fb={}){if(_0x2bb30c['isCollapsed'])return null;const _0x2b679f=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3a8d2c,meta:_0x5a3386}of this['_findSuggestions'](_0x2bb30c,'insertion'))if(_0x5a3386['isOwn']){if(!_0x5a3386['isNextTo']){if(_0x5a3386['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3a8d2c,_0x55c2fb))continue;return _0x3a8d2c;}if(Lt(_0x3a8d2c,_0x55c2fb))return _0x3a8d2c;this['_breakSuggestionMarker'](_0x3a8d2c,_0x2bb30c['start'],_0x2bb30c['end']);break;}if(_0x23228b==_0x3a8d2c['subType']&&Lt(_0x3a8d2c,_0x55c2fb)){const _0x146f01=_0x3a8d2c['getFirstRange']();return _0x146f01['start']['isEqual'](_0x2bb30c['end'])?this['_setSuggestionRange'](_0x3a8d2c,this['_model']['createRange'](_0x2bb30c['start'],_0x146f01['end'])):this['_setSuggestionRange'](_0x3a8d2c,this['_model']['createRange'](_0x146f01['start'],_0x2bb30c['end'])),_0x3a8d2c;}}const _0x33afa0=_0x245371(),_0x598fb6=_0x2b679f['id'],_0x2a2323=_0x23228b?'insertion:'+_0x23228b:'insertion',_0x1e2207=this['_setSuggestionData']({'id':_0x33afa0,'type':_0x2a2323,'createdAt':new Date(),'authorId':_0x598fb6,'attributes':_0x55c2fb});return this['_addSuggestionMarker'](_0x2a2323,_0x33afa0,_0x598fb6,_0x2bb30c),_0x1e2207;}['markMultiRangeInsertion'](_0x1854a9,_0xdcc7c4='multi',_0x102a40={}){const _0x3c3f10=this['editor']['plugins']['get']('Users')['me'],_0x332247=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xdcc7c4,'join');for(const _0x108cb0 of this['getSuggestions']())if(_0x108cb0['author']['id']==_0x3c3f10['id']&&'insertion'==_0x108cb0['type']&&_0x108cb0['subType']==_0xdcc7c4&&Lt(_0x108cb0,_0x102a40)&&(_0x332247(_0x108cb0['getRanges'](),_0x1854a9)||_0x332247(_0x1854a9,_0x108cb0['getRanges']()))){for(const _0x119c64 of _0x1854a9)_0x108cb0['addRange'](_0x119c64);return _0x108cb0;}for(const {suggestion:_0x3cd6f2,meta:_0x30df27}of this['_findSuggestions'](_0x1854a9,'insertion')){if(!_0x30df27['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x30df27['containsRangeInObject'])continue;if(!Lt(_0x3cd6f2,_0x102a40))continue;let _0x49f7fd=!0x0;for(const _0x543ba7 of _0x3cd6f2['getRanges']())for(const _0x1ae15e of _0x1854a9)if(!_0x543ba7['containsRange'](_0x1ae15e)){_0x49f7fd=!0x1;break;}if(_0x49f7fd)return _0x3cd6f2;}const _0x40058d=_0x245371(),_0x51d94a=_0x3c3f10['id'],_0x17584f='insertion:'+_0xdcc7c4,_0x11acf1=this['_setSuggestionData']({'id':_0x40058d,'type':_0x17584f,'createdAt':new Date(),'authorId':_0x51d94a,'attributes':_0x102a40});for(const _0x2b7e1f of _0x1854a9)this['_addSuggestionMarker'](_0x17584f,_0x40058d,_0x51d94a,_0x2b7e1f,u['getMultiRangeId']());return _0x11acf1;}['markInlineFormat'](_0x23e1ca,_0x2b515e,_0x45d9cc=null,_0x4a600d={}){if(_0x45d9cc=_0x45d9cc||Vt(_0x2b515e),_0x23e1ca['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5067f9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x45d9cc,'accept');return this['forceDefaultExecution'](()=>_0x5067f9([_0x23e1ca],_0x2b515e,_0x4a600d)),null;}const _0x45c71f=this['editor']['plugins']['get']('Users')['me'],_0xca896d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x476cdd,meta:_0x391b4c}of this['_findSuggestions'](_0x23e1ca,'insertion'))_0x391b4c['isOwn']&&!_0x391b4c['isInsideObject']&&_0xca896d['push'](..._0x476cdd['getRanges']());}const _0xe9bae0=function(_0x3f25d5,_0xecac41){const _0x41cc19=[];for(const _0x260def of _0xecac41){const _0x2cd31a=_0x3f25d5['getIntersection'](_0x260def);_0x2cd31a&&_0x41cc19['push'](_0x2cd31a);}return _0x41cc19;}(_0x23e1ca,_0xca896d),_0x6e2194=function(_0x4904e7,_0x13d769){const _0x2c63bd=[_0x4904e7];for(const _0x530f5b of _0x13d769){let _0x5e2d38=0x0;for(;_0x5e2d38<_0x2c63bd['length'];){const _0x3ad37c=_0x2c63bd[_0x5e2d38]['getDifference'](_0x530f5b);_0x2c63bd['splice'](_0x5e2d38,0x1,..._0x3ad37c),_0x5e2d38+=_0x3ad37c['length'];}}return _0x2c63bd;}(_0x23e1ca,_0xca896d);_0xe9bae0['length']&&this['_model']['change'](()=>{for(const _0x48ff7b of _0xe9bae0){const _0x11897c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x45d9cc,'accept');this['forceDefaultExecution'](()=>_0x11897c([_0x48ff7b],_0x2b515e,_0x4a600d));}});for(const _0x38727d of _0x6e2194){let _0x1032cc=null,_0x1d9188=_0x38727d['start'],_0x352242=_0x38727d['end'];for(const {suggestion:_0x2d1f9d,meta:_0x2d5fff}of this['_findSuggestions'](_0x38727d,'formatInline')){if(!_0x2d5fff['isOwn'])continue;if(_0x2d1f9d['subType']!=_0x45d9cc)continue;if(!Lt(_0x2d1f9d,_0x4a600d))continue;const _0x97cfab=_0x2d1f9d['getFirstRange']();if(_0x97cfab['containsRange'](_0x38727d,!0x0))return null;_0x1d9188=_0x1d9188['isBefore'](_0x97cfab['start'])?_0x1d9188:_0x97cfab['start'],_0x352242=_0x352242['isAfter'](_0x97cfab['end'])?_0x352242:_0x97cfab['end'],_0x1032cc?_0x97cfab['start']['isBefore'](_0x1032cc['getFirstRange']()['start'])?(_0x1032cc['removeMarkers'](),_0x1032cc=_0x2d1f9d):_0x2d1f9d['removeMarkers']():_0x1032cc=_0x2d1f9d;}const _0x358efc=this['_model']['createRange'](_0x1d9188,_0x352242);if(_0x1032cc)this['_setSuggestionRange'](_0x1032cc,_0x358efc);else{const _0x2b6d65=_0x245371(),_0x4ad810=_0x45c71f['id'];this['_setSuggestionData']({'id':_0x2b6d65,'type':'formatInline:'+_0x45d9cc,'data':_0x2b515e,'createdAt':new Date(),'authorId':_0x4ad810,'attributes':_0x4a600d}),this['_addSuggestionMarker']('formatInline:'+_0x45d9cc,_0x2b6d65,_0x4ad810,_0x358efc);}}return null;}['markBlockFormat'](_0x460f90,_0x109f20,_0x513681=[],_0x37be53=null,_0x5cdfb4={}){_0x109f20['formatGroupId']||(_0x109f20['formatGroupId']=_0x109f20['commandName']),_0x109f20['multipleBlocks']=_0x460f90['is']('range'),_0x37be53=_0x37be53||Vt(_0x109f20);const _0x236029=_0x513681['map'](_0x36aee2=>Ft(_0x36aee2,this['_model'])),_0x53c913=_0x460f90['is']('range')?_0x460f90:Ft(_0x460f90,this['_model']);if('never'===this['_trackFormatChanges']){const _0x235416=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37be53,'accept');return this['forceDefaultExecution'](()=>_0x235416([_0x53c913],_0x109f20,_0x5cdfb4)),null;}_0x236029['push'](_0x53c913);let _0xfba71=!0x0;for(const _0x1f17a5 of _0x236029)if(!this['_rangeIsInLocalUserInsertion'](_0x1f17a5)){_0xfba71=!0x1;break;}if(_0xfba71&&'always'!==this['_trackFormatChanges']){const _0x3fa69e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37be53,'accept');return this['forceDefaultExecution'](()=>_0x3fa69e([_0x53c913],_0x109f20,_0x5cdfb4)),null;}let _0x2fba4d=null,_0x2f8428=_0x53c913['start'],_0x3873c4=_0x53c913['end'];for(const {suggestion:_0x25e8f4,meta:_0x3ed247}of this['_findSuggestions'](_0x53c913,'formatBlock')){if(!_0x3ed247['isOwn'])continue;if(_0x3ed247['isNextTo']||_0x3ed247['containsRangeInObject']||_0x3ed247['isInsideObject'])continue;if(_0x25e8f4['data']['formatGroupId']!=_0x109f20['formatGroupId'])continue;if(!Lt(_0x25e8f4,_0x5cdfb4))continue;const _0x2e8c8a=_0x25e8f4['getFirstRange']();if(_0x25e8f4['subType']==_0x37be53){if(_0x2e8c8a['containsRange'](_0x53c913,!0x0))return null;_0x2f8428=_0x2f8428['isBefore'](_0x2e8c8a['start'])?_0x2f8428:_0x2e8c8a['start'],_0x3873c4=_0x3873c4['isAfter'](_0x2e8c8a['end'])?_0x3873c4:_0x2e8c8a['end'],_0x2fba4d?_0x2e8c8a['start']['isBefore'](_0x2fba4d['getFirstRange']()['start'])?(_0x2fba4d['removeMarkers'](),_0x2fba4d=_0x25e8f4):_0x25e8f4['removeMarkers']():_0x2fba4d=_0x25e8f4;}else{const _0x24d675=_0x53c913['getIntersection'](_0x2e8c8a);this['_cutOutSuggestionMarker'](_0x25e8f4,_0x24d675);}}const _0x50947b=this['editor']['plugins']['get']('Users')['me'],_0x5f36f5=_0x245371(),_0x129bb2=_0x50947b['id'];if(_0x2fba4d)return this['_setSuggestionRange'](_0x2fba4d,this['_model']['createRange'](_0x2f8428,_0x3873c4)),_0x2fba4d;{const _0x4a73fa=this['_setSuggestionData']({'id':_0x5f36f5,'type':'formatBlock:'+_0x37be53,'data':_0x109f20,'createdAt':new Date(),'authorId':_0x129bb2,'attributes':_0x5cdfb4});return this['_addSuggestionMarker']('formatBlock:'+_0x37be53,_0x5f36f5,_0x129bb2,this['_model']['createRange'](_0x2f8428,_0x3873c4)),_0x4a73fa;}}['markMultiRangeBlockFormat'](_0x2d2565,_0x441253,_0x43e5f1=[],_0x292e8b=null,_0x2b8d46={}){_0x441253['formatGroupId']||(_0x441253['formatGroupId']=_0x441253['commandName']);const _0x34bf7e=_0x2d2565[0x0];_0x441253['multipleBlocks']=_0x34bf7e['is']('range'),_0x292e8b=_0x292e8b||Vt(_0x441253);const _0x40b760=_0x43e5f1['map'](_0xb93533=>Ft(_0xb93533,this['_model'])),_0x337d91=_0x34bf7e['is']('range')?_0x2d2565:_0x2d2565['map'](_0x19c022=>Ft(_0x19c022,this['_model']));if('never'===this['_trackFormatChanges']){const _0x142f26=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x292e8b,'accept');return this['forceDefaultExecution'](()=>_0x142f26(_0x337d91,_0x441253,_0x2b8d46)),null;}_0x40b760['push'](..._0x337d91);let _0x393a06=!0x0;for(const _0x3efe5e of _0x40b760)if(!this['_rangeIsInLocalUserInsertion'](_0x3efe5e)){_0x393a06=!0x1;break;}if(_0x393a06&&'always'!==this['_trackFormatChanges']){const _0x30b9a3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x292e8b,'accept');return this['forceDefaultExecution'](()=>_0x30b9a3(_0x337d91,_0x441253,_0x2b8d46)),null;}const _0x2c78bf=this['editor']['plugins']['get']('Users')['me'];for(const _0x40c93f of this['getSuggestions']()){if(_0x40c93f['author']['id']!=_0x2c78bf['id'])continue;if('formatBlock'!=_0x40c93f['type']||_0x40c93f['data']['formatGroupId']!=_0x441253['formatGroupId'])continue;if(!Lt(_0x40c93f,_0x2b8d46))continue;const _0x2b70ca=_0x40c93f['subType']==_0x292e8b;for(let _0x616164=0x0;_0x616164<_0x337d91['length'];_0x616164++){const _0x2c39f4=_0x337d91[_0x616164];for(const _0x24b931 of _0x40c93f['getMarkers']()){const _0x7ea9ba=_0x24b931['getRange']();if(_0x2c39f4['isEqual'](_0x7ea9ba)){_0x2b70ca?(_0x337d91['splice'](_0x616164,0x1),_0x616164--):_0x40c93f['removeMarker'](_0x24b931['name']);break;}}}}if(0x0==_0x337d91['length'])return null;const _0x559e81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x292e8b,'join');for(const _0x24f6e9 of this['getSuggestions']())if(_0x24f6e9['author']['id']==_0x2c78bf['id']&&'formatBlock'==_0x24f6e9['type']&&_0x24f6e9['data']['formatGroupId']==_0x441253['formatGroupId']&&_0x24f6e9['subType']==_0x292e8b&&Lt(_0x24f6e9,_0x2b8d46)&&(_0x559e81(_0x24f6e9['getRanges'](),_0x337d91)||_0x559e81(_0x337d91,_0x24f6e9['getRanges']()))){for(const _0x85069d of _0x337d91)_0x24f6e9['addRange'](_0x85069d);return _0x24f6e9;}const _0x18864e=_0x245371(),_0x10a5a2=_0x2c78bf['id'],_0x47fe3c='formatBlock:'+_0x292e8b,_0x58dbb9=this['_setSuggestionData']({'id':_0x18864e,'type':_0x47fe3c,'data':_0x441253,'createdAt':new Date(),'authorId':_0x10a5a2,'attributes':_0x2b8d46});for(const _0x5451cf of _0x337d91)this['_addSuggestionMarker'](_0x47fe3c,_0x18864e,_0x10a5a2,_0x5451cf,u['getMultiRangeId']());return _0x58dbb9;}['markDeletion'](_0x21cd64,_0x5cead8=null,_0x26547d={}){if(_0x21cd64['isCollapsed'])return null;const _0x422583=this['editor']['plugins']['get']('Users')['me'],_0x5a488c=new _0x186ef9(_0x21cd64['start'],_0x21cd64['end']);for(const {suggestion:_0x19c48d,meta:_0x4a7d01}of this['_findSuggestions'](_0x5a488c,'insertion'))if(_0x4a7d01['isOwn']&&!_0x4a7d01['isNextTo']){if(_0x19c48d['isMultiRange']){const _0x111998=_0x19c48d['getRanges']()['filter'](_0x2cda80=>'$graveyard'!=_0x2cda80['root']['rootName']);_0x111998['every'](_0xa1d595=>_0x5a488c['containsRange'](_0xa1d595,!0x0))&&_0x19c48d['discard']();if(_0x111998['some'](_0x263080=>_0x263080['containsRange'](_0x5a488c,!0x0))){const _0x16429b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cead8,'accept');return this['forceDefaultExecution'](()=>_0x16429b([_0x5a488c],null,_0x26547d)),null;}}else{const _0xfabd9d=_0x5a488c['getIntersection'](_0x19c48d['getFirstRange']());null!==_0xfabd9d&&_0x19c48d['_onDiscard']([_0xfabd9d],null,_0x26547d);}}if(_0x5a488c['detach'](),_0x5a488c['isCollapsed']||'$graveyard'==_0x5a488c['root']['rootName'])return null;let _0x51285e=null,_0x4a2409=_0x5a488c['start'],_0x36503c=_0x5a488c['end'];const _0x48f8f4=this['_findSuggestions'](_0x5a488c,'deletion');for(const {suggestion:_0x308d4a,meta:_0x2d08bf}of _0x48f8f4){const _0x3e9548=this['_model']['createRange'](_0x4a2409,_0x36503c);if(_0x2d08bf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2d08bf['containsRangeInObject']&&!_0x2d08bf['isInsideObject'])){if(_0x308d4a['isMultiRange']){if(!Lt(_0x308d4a,_0x26547d))continue;let _0x50f914=!0x0;for(const _0x19dc00 of _0x308d4a['getRanges']()){if(_0x19dc00['containsRange'](_0x3e9548,!0x0))return _0x308d4a;_0x3e9548['containsRange'](_0x19dc00)||(_0x50f914=!0x1);}_0x50f914&&_0x308d4a['discard']();}else{const _0x206d15=_0x308d4a['getFirstRange']();if(_0x206d15['containsRange'](_0x3e9548,!0x0))return _0x308d4a;if(!Lt(_0x308d4a,_0x26547d)){_0x3e9548['containsRange'](_0x206d15)?_0x308d4a['removeMarkers']():_0x206d15['containsPosition'](_0x4a2409)?_0x4a2409=_0x206d15['end']:_0x206d15['containsPosition'](_0x36503c)&&(_0x36503c=_0x206d15['start']);continue;}_0x4a2409=_0x4a2409['isBefore'](_0x206d15['start'])?_0x4a2409:_0x206d15['start'],_0x36503c=_0x36503c['isAfter'](_0x206d15['end'])?_0x36503c:_0x206d15['end'],_0x26547d=Object['assign']({},_0x308d4a['attributes']),_0x51285e?_0x206d15['start']['isBefore'](_0x51285e['getFirstRange']()['start'])?(_0x51285e['removeMarkers'](),_0x51285e=_0x308d4a):_0x308d4a['removeMarkers']():_0x51285e=_0x308d4a;}}}if(_0x51285e)return this['_setSuggestionRange'](_0x51285e,this['_model']['createRange'](_0x4a2409,_0x36503c)),_0x51285e;{const _0xef134a=_0x245371(),_0x97300c=this['_model']['createRange'](_0x4a2409,_0x36503c),_0xa9845e=_0x422583['id'],_0x508033=_0x5cead8?'deletion:'+_0x5cead8:'deletion',_0x4dbc88=this['_setSuggestionData']({'id':_0xef134a,'type':_0x508033,'createdAt':new Date(),'authorId':_0xa9845e,'attributes':_0x26547d});return this['_addSuggestionMarker'](_0x508033,_0xef134a,_0xa9845e,_0x97300c),_0x4dbc88;}}['markMultiRangeDeletion'](_0x1cb589,_0x1748b8='multi',_0x53b22c={}){const _0x43c65d=this['editor']['plugins']['get']('Users')['me'],_0x407f07=_0x1cb589['map'](_0x44f7e7=>new _0x186ef9(_0x44f7e7['start'],_0x44f7e7['end'])),_0x136125=new Set();for(const {suggestion:_0x434dd2,meta:_0x2a1d57}of this['_findSuggestions'](_0x407f07,'insertion'))_0x2a1d57['isOwn']&&!_0x2a1d57['isNextTo']&&_0x136125['add'](_0x434dd2);for(const _0xf66695 of _0x136125)if(_0xf66695['isMultiRange']){const _0x129ce8=_0xf66695['getRanges']();(!_0xf66695['attributes']||!_0xf66695['attributes']['skipNestingCheck'])&&(_0x129ce8['every'](_0x40aa9c=>_0x407f07['some'](_0x36a845=>_0x36a845['containsRange'](_0x40aa9c,!0x0)))&&_0xf66695['discard']());if(_0x407f07['every'](_0x33298e=>_0x129ce8['some'](_0x2f2340=>_0x2f2340['containsRange'](_0x33298e,!0x0)))){const _0x2a9d34=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1748b8,'accept');return this['forceDefaultExecution'](()=>_0x2a9d34(_0x1cb589,null,_0x53b22c)),null;}}else{const _0x270d47=_0xf66695['getFirstRange']();_0x407f07['some'](_0x32c548=>_0x32c548['containsRange'](_0x270d47,!0x0))&&_0xf66695['discard']();if(_0x407f07['every'](_0x18c17c=>_0x270d47['containsRange'](_0x18c17c,!0x0))){const _0x543c26=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1748b8,'accept');return this['forceDefaultExecution'](()=>_0x543c26(_0x407f07,null,_0x53b22c)),null;}}const _0x2e8274=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1748b8,'join');let _0x33a303=null;for(const _0xc8885f of this['getSuggestions']())if(_0xc8885f['author']['id']==_0x43c65d['id']&&_0xc8885f['isInContent']&&'deletion'==_0xc8885f['type']&&_0xc8885f['subType']==_0x1748b8&&Lt(_0xc8885f,_0x53b22c)&&(_0x2e8274(_0xc8885f['getRanges'](),_0x407f07)||_0x2e8274(_0x407f07,_0xc8885f['getRanges']()))){if(_0x33a303){if(_0xc8885f['commentThread']&&_0xc8885f['commentThread']['length'])continue;for(const _0x2b604c of _0xc8885f['getRanges']())_0x33a303['isIntersectingWithRange'](_0x2b604c)||_0x33a303['addRange'](_0x2b604c);_0xc8885f['removeMarkers']();}else{_0x33a303=_0xc8885f;for(const _0x42aa26 of _0x407f07)_0xc8885f['isIntersectingWithRange'](_0x42aa26)||_0xc8885f['addRange'](_0x42aa26);}}if(_0x33a303)return _0x33a303;_0x136125['clear']();for(const {suggestion:_0x128f4e,meta:_0x214398}of this['_findSuggestions'](_0x407f07,'deletion'))_0x214398['isOwn']&&(this['_mergeNestedSuggestions']||!_0x214398['containsRangeInObject']&&!_0x214398['isInsideObject'])&&Lt(_0x128f4e,_0x53b22c)&&_0x136125['add'](_0x128f4e);for(const _0x53a2d2 of _0x136125){const _0x355339=_0x53a2d2['getRanges']();if(!_0x53b22c||!_0x53b22c['skipNestingCheck']){if(_0x407f07['every'](_0x23ab21=>_0x355339['some'](_0x15feed=>_0x15feed['containsRange'](_0x23ab21,!0x0))))return _0x53a2d2;}(!_0x53a2d2['attributes']||!_0x53a2d2['attributes']['skipNestingCheck'])&&(_0x355339['every'](_0xee5fd1=>_0x407f07['some'](_0x45a976=>_0x45a976['containsRange'](_0xee5fd1,!0x0)))&&_0x53a2d2['discard']());}const _0x3714b3=_0x245371(),_0x36d027=_0x43c65d['id'],_0x53bf3d='deletion:'+_0x1748b8,_0x27ea92=this['_setSuggestionData']({'id':_0x3714b3,'type':_0x53bf3d,'createdAt':new Date(),'authorId':_0x36d027,'attributes':_0x53b22c});for(const _0x13f95c of _0x407f07)_0x13f95c['detach'](),_0x13f95c['isCollapsed']||'$graveyard'==_0x13f95c['root']['rootName']||this['_addSuggestionMarker'](_0x53bf3d,_0x3714b3,_0x36d027,_0x13f95c,u['getMultiRangeId']());return _0x27ea92;}['markAttributeChange'](_0xb44397,_0x478112,_0x40eef3,_0x47f553,_0x158afe){if(_0xb44397['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x22094e=this['editor']['plugins']['get']('Users')['me']['id'],_0x2707bb=Array['from'](this['_suggestions']['values']())['filter'](_0x5faced=>'attribute'==_0x5faced['type']&&_0x5faced['data']['key']==_0x478112&&_0x5faced['isIntersectingWithRange'](_0xb44397));if('default'===this['_trackFormatChanges']){const _0x25e6c5=this['_findSuggestions'](_0xb44397,'insertion')['filter'](({meta:_0x5ae889})=>_0x5ae889['isOwn']&&!_0x5ae889['isInsideObject']&&!_0x5ae889['isNextTo'])['map'](({suggestion:_0x48d8ea})=>_0x48d8ea);_0x2707bb['unshift'](..._0x25e6c5);}const _0x48b1ba=new Map([[_0xb44397,_0x40eef3]]);for(const _0x299a8f of _0x2707bb){const _0x47d92b='attribute'==_0x299a8f['type']?_0x299a8f['data']['oldValue']:void 0x0,_0x505fab=_0x299a8f['getFirstRange'](),_0x21f08b=Array['from'](_0x48b1ba['keys']())['find'](_0x7a237e=>_0x7a237e['isIntersecting'](_0x505fab));if(!_0x21f08b)continue;const _0x2ef4b1=_0x21f08b['getDifference'](_0x505fab);this['_isBlockAttribute'](_0x478112)&&'insertion'==_0x299a8f['type']&&0x0!=_0x2ef4b1['length']||(_0x48b1ba['delete'](_0x21f08b),_0x2ef4b1['forEach'](_0x55dce4=>{_0x48b1ba['set'](_0x55dce4,_0x40eef3);}),'insertion'!=_0x299a8f['type']&&_0x47d92b!=_0x47f553&&_0x48b1ba['set'](_0x21f08b['getIntersection'](_0x505fab),_0x47d92b));}const _0x315db7=[];for(const [_0x509fbf,_0x24d72a]of _0x48b1ba){const _0x57b632=_0x245371(),_0x5a1a58={'key':_0x478112,'oldValue':_0x24d72a,'newValue':_0x47f553};_0x478112['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':_0x478112});const _0x20cf1d=('attribute:'+(_0x478112+'|'+Vt({'newValue':_0x47f553})))['substring'](0x0,0x3c),_0x65672d=this['_setSuggestionData']({'id':_0x57b632,'type':_0x20cf1d,'data':_0x5a1a58,'createdAt':new Date(),'authorId':_0x22094e,'attributes':_0x158afe});_0x315db7['push'](_0x65672d),this['_addSuggestionMarker'](_0x20cf1d,_0x57b632,_0x22094e,_0x509fbf);}return _0x315db7;}['enableDefaultAttributesIntegration'](_0x524139){this['enableCommand'](_0x524139,(_0x4c0a86,..._0x669d50)=>{this['_recordAttributeChanges'](()=>{_0x4c0a86(..._0x669d50);});});}['registerBlockAttribute'](_0x194b7c){this['_blockAttributeKeys']['add'](_0x194b7c);}['registerInlineAttribute'](_0x146311){this['_inlineAttributeKeys']['add'](_0x146311);}['_getAttributeKey'](_0x471b8b){return'attribute'==_0x471b8b['type']?_0x471b8b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2a735e,_0x17d2e7){const _0x13cd8d=_0x2a735e['getFirstMarker']();this['_model']['change'](_0x5603fb=>{_0x5603fb['updateMarker'](_0x13cd8d,{'range':_0x17d2e7});});}['_addThreadToSuggestion'](_0x180974){const _0x2018e6=_0x180974['id'],_0x58d0b8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2018e6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x58d0b8,'threadId':_0x2018e6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x140e74=this['_commentsRepository']['getCommentThread'](_0x2018e6);_0x140e74['unbind']('isRemovable'),_0x140e74['isRemovable']=!0x1,_0x180974['commentThread']=_0x140e74;}['_checkSuggestionCorrectness'](_0x3db30f,_0x2e0272,_0x5dbefb,_0x4cdf26){if(_0x3db30f['type']!=_0x2e0272||_0x3db30f['subType']!=_0x5dbefb||_0x3db30f['creator']['id']!=_0x4cdf26)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4a2b29('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2c06e1,_0x215578){const _0x5eb42c=_0x2c06e1['getFirstRange']();if(_0x215578['isEqual'](_0x5eb42c))_0x2c06e1['removeMarkers']();else{if(_0x5eb42c['containsRange'](_0x215578)){const _0x1c7951=this['_model']['createPositionAt'](_0x215578['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2c06e1,this['_model']['createRange'](_0x5eb42c['start'],_0x1c7951));const _0x5d7c64=_0x245371(),_0x569f59=_0x2c06e1['creator']['id'],_0x10617d=_0x2c06e1['type']+':'+_0x2c06e1['subType'];this['_setSuggestionData']({'id':_0x5d7c64,'type':_0x10617d,'createdAt':new Date(),'authorId':_0x569f59,'data':_0x2c06e1['data'],'attributes':_0x2c06e1['attributes']});const _0x374660=this['_model']['createPositionAt'](_0x215578['end']['parent'],'after'),_0x90923f=this['_model']['createRange'](_0x374660,_0x5eb42c['end']);this['_addSuggestionMarker'](_0x10617d,_0x5d7c64,_0x569f59,_0x90923f);}else{if(_0x5eb42c['containsPosition'](_0x215578['start'])){const _0x1cc63d=this['_model']['createPositionAt'](_0x215578['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2c06e1,this['_model']['createRange'](_0x5eb42c['start'],_0x1cc63d));}else{const _0x40cf39=this['_model']['createPositionAt'](_0x215578['end']['parent'],'after');this['_setSuggestionRange'](_0x2c06e1,this['_model']['createRange'](_0x40cf39,_0x5eb42c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x508dd3){for(const {suggestion:_0x1aab59,meta:_0x1fdc59}of this['_findSuggestions'](_0x508dd3,'insertion')){if(!_0x1fdc59['isOwn'])continue;const _0x35c57f=_0x1aab59['getRanges']();for(const _0x5a8b36 of _0x35c57f)if(!_0x508dd3['getDifference'](_0x5a8b36)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1427c5){const _0x3ee12a=this['editor']['plugins']['get']('Users')['getUser'](_0x1427c5);if(!_0x3ee12a)throw new _0x4a2b29('track-changes-user-not-found',this);return _0x3ee12a;}['_getExternalAuthor'](_0x3d138f){const _0x41dfbc=this['editor']['plugins']['get']('Users'),_0x78bb9a=_0x1e5c82('external:'+_0x3d138f),_0x519787=_0x41dfbc['getUser'](_0x78bb9a);return _0x519787||_0x41dfbc['addUser']({'id':_0x78bb9a,'name':_0x3d138f});}['_createSuggestion'](_0x4a26df,_0x7286e8,_0x254e90,_0x14ad4c,_0x4b7c83){const _0x2d1711=this['_getAuthorFromId'](_0x14ad4c),_0x3e1006=this['_suggestionFactory']['buildSuggestion'](_0x4a26df,_0x7286e8,_0x254e90,_0x2d1711,_0x4b7c83,_0x431d66=>{this['_updateSuggestionData'](_0x254e90,{'attributes':_0x431d66});const _0x29226c=this['getSuggestion'](_0x254e90);this['_joinWithAdjacentSuggestions'](new Set([_0x29226c])),this['_refreshSuggestionsChain'](new Set([_0x29226c]));});return this['listenTo'](_0x3e1006,'accept',()=>{this['_updateSuggestionData'](_0x254e90,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e1006,'discard',()=>{this['_updateSuggestionData'](_0x254e90,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x254e90,_0x3e1006),this['_suggestionState']['set'](_0x3e1006,'notReady'),_0x3e1006;}['_splitMarkerName'](_0x44d2b4){const _0xdd9e68=_0x44d2b4['split'](':');return{'group':_0xdd9e68[0x0],'type':_0xdd9e68[0x1],'subType':_0xdd9e68['length']>=0x5?_0xdd9e68[0x2]:null,'id':_0xdd9e68['length']<0x5?_0xdd9e68[0x2]:_0xdd9e68[0x3],'authorId':_0xdd9e68['length']<0x5?_0xdd9e68[0x3]:_0xdd9e68[0x4],'markerCount':0x6==_0xdd9e68['length']?_0xdd9e68[0x5]:null};}['_breakSuggestionMarker'](_0x5ecaca,_0x406bb9,_0x59ef57){const _0x2b4ab4=_0x5ecaca['getFirstRange'](),_0x50495e=_0x2b4ab4['start'],_0x2c8ccf=_0x2b4ab4['end'];this['_setSuggestionRange'](_0x5ecaca,this['_model']['createRange'](_0x50495e,_0x406bb9));const _0x2d050e=_0x245371(),_0x421ab6=_0x5ecaca['creator']['id'],_0x3b8499=_0x5ecaca['type']+(_0x5ecaca['subType']?':'+_0x5ecaca['subType']:'');this['_setSuggestionData']({'id':_0x2d050e,'type':_0x3b8499,'createdAt':new Date(),'authorId':_0x421ab6,'originalSuggestionId':_0x5ecaca['id'],'attributes':_0x5ecaca['attributes'],'data':_0x5ecaca['data']});const _0x15602c=this['_getAttributeKey'](_0x5ecaca);('formatBlock'==_0x5ecaca['type']||_0x15602c&&this['_isBlockAttribute'](_0x15602c))&&(_0x59ef57=this['_model']['createPositionBefore'](_0x59ef57['parent'])),this['_addSuggestionMarker'](_0x3b8499,_0x2d050e,_0x421ab6,this['_model']['createRange'](_0x59ef57,_0x2c8ccf));}['_findSuggestions'](_0x25e08b,_0x20adc9=null){const _0x39d826=[],_0x462295=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25e08b)||(_0x25e08b=[_0x25e08b]);for(const _0x1141bd of this['getSuggestions']()){if(!_0x1141bd['isInContent'])continue;if(_0x20adc9&&_0x1141bd['type']!=_0x20adc9)continue;let _0x5799d7=!0x1;for(const _0x2bcfe5 of _0x1141bd['getRanges']()){for(const _0x4a2779 of _0x25e08b){const _0x3a1da0=_0x4a2779['start']['isEqual'](_0x2bcfe5['end'])||_0x4a2779['end']['isEqual'](_0x2bcfe5['start']);if(_0x3a1da0||_0x4a2779['getIntersection'](_0x2bcfe5)){const _0x2f971c=_0x4a2779['containsRange'](_0x2bcfe5)&&Rt(this['_model']['schema'],_0x2bcfe5['start'],_0x4a2779),_0x1806a8=_0x2bcfe5['containsRange'](_0x4a2779)&&Rt(this['_model']['schema'],_0x4a2779['start'],_0x2bcfe5);_0x39d826['push']({'suggestion':_0x1141bd,'meta':{'isOwn':_0x462295==_0x1141bd['author'],'isNextTo':_0x3a1da0,'isInsideObject':_0x2f971c,'containsRangeInObject':_0x1806a8}}),_0x5799d7=!0x0;break;}}if(_0x5799d7)break;}}return _0x39d826;}['_addSuggestionMarker'](_0x4ef9f7,_0x280393,_0x152539,_0x225269,_0x424125){this['_model']['change'](_0xe02f37=>{let _0x6a3044='suggestion:'+_0x4ef9f7+':'+_0x280393+':'+_0x152539;_0x424125&&(_0x6a3044=_0x6a3044+':'+_0x424125),_0xe02f37['addMarker'](_0x6a3044,{'range':_0x225269,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x444265){const _0x49f209=_0x444265['previous'],_0xaf82c6=_0x444265['next'];_0x444265['previous']=null,_0x444265['next']=null,null!=_0x49f209&&_0x49f209['next']==_0x444265&&(_0x49f209['next']=_0xaf82c6),null!=_0xaf82c6&&_0xaf82c6['previous']==_0x444265&&(_0xaf82c6['previous']=_0x49f209),'ready'==this['_suggestionState']['get'](_0x444265)&&(this['_suggestionState']['set'](_0x444265,'removed'),this['fire']('suggestionUnloaded',_0x444265,_0x49f209,_0xaf82c6));}['_setSuggestionData'](_0x2556f5){const _0xd4c8f2=_0x2556f5['id'],_0x33f3e9=this['addSuggestionData'](_0x2556f5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34621a=this['editor']['plugins']['get']('PendingActions'),_0xf848b7=_0x33f3e9['hasComments'],_0x5469e1=_0x33f3e9['subType']?_0x33f3e9['type']+':'+_0x33f3e9['subType']:_0x33f3e9['type'],_0x58eb54=this['editor']['locale'],_0xe1bfa0=_0x34621a['add'](o(_0x58eb54,'PENDING_ACTION_SUGGESTION')),_0x522410={'id':_0xd4c8f2,'type':_0x5469e1,'hasComments':_0xf848b7,'data':_0x2556f5['data']||null,'originalSuggestionId':_0x2556f5['originalSuggestionId']||null,'attributes':_0x33f3e9['attributes']};this['_adapter']['addSuggestion'](_0x522410)['then'](_0x35d827=>{_0x33f3e9['_saved']=!0x0,_0x34621a['remove'](_0xe1bfa0),_0x35d827&&_0x35d827['createdAt']&&(this['_suggestions']['get'](_0xd4c8f2)['createdAt']=_0x35d827['createdAt']);})['catch'](_0x315c0b=>{throw _0x224652('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x33f3e9['discard']();}),_0x33f3e9['stopListening'](),this['_suggestions']['delete'](_0x33f3e9['id']),this['_suggestionState']['delete'](_0x33f3e9),_0x315c0b;});}return _0x33f3e9;}['_isBlockAttribute'](_0x2fc529){return this['_blockAttributeKeys']['has'](_0x2fc529);}['_updateSuggestionData'](_0x120b39,_0x2fd3b1){const _0x18e9f9=this['editor']['plugins']['get']('PendingActions'),_0x180109=this['getSuggestion'](_0x120b39);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x180109['_saved']){const _0x75e6dc=_0x18e9f9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x120b39,_0x2fd3b1)['then'](()=>{_0x18e9f9['remove'](_0x75e6dc);});}else _0x180109['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x120b39,_0x2fd3b1);});}}['_getSuggestionData'](_0x104f56){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4a2b29('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x104f56);}['_handleNewSuggestionMarker'](_0x575f26){const {id:_0x43a726,type:_0x34b890,subType:_0xe0d513,authorId:_0x1cde13}=this['_splitMarkerName'](_0x575f26),_0x1617f4=this['_suggestions']['get'](_0x43a726)||this['_createSuggestion'](_0x34b890,_0xe0d513,_0x43a726,_0x1cde13,{});switch(this['_checkSuggestionCorrectness'](_0x1617f4,_0x34b890,_0xe0d513,_0x1cde13),this['_suggestionState']['get'](_0x1617f4)){case'notReady':this['_getSuggestionData'](_0x43a726)['then'](_0x32c27f=>{let _0x3bc2ec=Promise['resolve']();_0x32c27f['hasComments']&&(_0x3bc2ec=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x43a726})),_0x3bc2ec['then'](()=>{this['addSuggestionData'](_0x32c27f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1617f4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x43a726,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1617f4,'ready'),this['fire']('suggestionLoaded',_0x1617f4);break;case'ready':this['fire']('suggestionChanged',_0x1617f4);}return _0x1617f4['addMarkerName'](_0x575f26),_0x1617f4;}['_refreshSuggestionsChain'](_0x2b8290){const _0x1a31db=Array['from'](_0x2b8290),_0xf1c7c9=_0x1a31db['filter'](_0x503568=>'attribute'==_0x503568['type']);this['_refreshAttributeSuggestionsChain'](_0xf1c7c9);const _0x17790e=_0x1a31db['filter'](_0xc4f9d6=>!_0xc4f9d6['isMultiRange']&&'attribute'!=_0xc4f9d6['type']),_0x4a00e0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26808a=>!_0x26808a['isMultiRange']&&'attribute'!=_0x26808a['type']),_0x505dfe=_0x4a00e0['filter'](_0x15c130=>!_0x2b8290['has'](_0x15c130)),_0x546686=new Map(_0x4a00e0['map'](_0x411adb=>[_0x411adb,this['_suggestionFactory']['getSuggestionCallback'](_0x411adb['type'],_0x411adb['subType'],'chain')])),_0x3d2fb8=new Map(_0x4a00e0['map'](_0x4e13d2=>[_0x4e13d2,_0x4e13d2['getFirstRange']()])),_0x3c9f7f=new Set(),_0x341268=new Set();for(let _0x3d1dcb=0x0;_0x3d1dcb<_0x17790e['length'];_0x3d1dcb++)_0x5a2e71(_0x17790e[_0x3d1dcb],_0x17790e,_0x3d1dcb+0x1);for(let _0x3e36bb=0x0;_0x3e36bb<_0x17790e['length'];_0x3e36bb++)_0x5a2e71(_0x17790e[_0x3e36bb],_0x505dfe,0x0);const _0x5abbf9=new Set();for(let _0x503aa3=0x0;_0x503aa3<_0x17790e['length'];_0x503aa3++){const _0x333283=_0x17790e[_0x503aa3];!_0x341268['has'](_0x333283)&&_0x333283['previous']&&(_0x5abbf9['add'](_0x333283['previous']),_0x333283['previous']['next']===_0x333283&&(_0x333283['previous']['next']=null),_0x333283['previous']=null),!_0x3c9f7f['has'](_0x333283)&&_0x333283['next']&&(_0x5abbf9['add'](_0x333283['next']),_0x333283['next']['previous']===_0x333283&&(_0x333283['next']['previous']=null),_0x333283['next']=null);}function _0x5a2e71(_0x35722b,_0x5d0237,_0x391d84){for(let _0x5901e3=_0x391d84;_0x5901e3<_0x5d0237['length'];_0x5901e3++){const _0x1eb827=_0x4df262(_0x35722b,_0x5d0237[_0x5901e3]);_0x1eb827&&(_0x1eb827[0x0]['next']=_0x1eb827[0x1],_0x1eb827[0x1]['previous']=_0x1eb827[0x0],_0x3c9f7f['add'](_0x1eb827[0x0]),_0x341268['add'](_0x1eb827[0x1]));}}function _0x4df262(_0x129538,_0x52066e){if(_0x129538['author']['id']!==_0x52066e['author']['id'])return null;const _0x5cde4d=_0x546686['get'](_0x129538)(_0x129538,_0x52066e,_0x3d2fb8['get'](_0x129538),_0x3d2fb8['get'](_0x52066e));if(!_0x5cde4d)return null;return _0x546686['get'](_0x52066e)(_0x129538,_0x52066e,_0x3d2fb8['get'](_0x129538),_0x3d2fb8['get'](_0x52066e))?_0x5cde4d[0x1]['commentThread']&&_0x5cde4d[0x1]['commentThread']['length']?null:_0x5cde4d:null;}_0x5abbf9['size']&&this['_refreshSuggestionsChain'](_0x5abbf9);}['_refreshAttributeSuggestionsChain'](_0x394d29){if(0x0==_0x394d29['length'])return;const _0x259a67=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17df60=>'attribute'==_0x17df60['type']&&_0x17df60['_isDataLoaded']),_0x3dcba4=[],_0x217fde=new Map();for(const _0x352fbe of _0x259a67){const _0x315ae2=_0x1e5c82(_0x352fbe['attributes']);_0x217fde['has'](_0x315ae2)||(_0x217fde['set'](_0x315ae2,_0x3dcba4['length']),_0x3dcba4['push']([]));const _0x35ecd9=_0x217fde['get'](_0x315ae2);_0x3dcba4[_0x35ecd9]['push'](_0x352fbe);}!(function(){_0x3dcba4['sort']((_0x468a98,_0x4c0756)=>{const _0x547e48=_0x468a98[0x0]['createdAt'],_0x14ef5b=_0x4c0756[0x0]['createdAt'];return _0x547e48==_0x14ef5b?_0x468a98[0x0]['attributes']['groupId']<_0x4c0756[0x0]['attributes']['groupId']?-0x1:0x1:_0x547e48<_0x14ef5b?-0x1:0x1;});for(const _0x344ccc of _0x3dcba4)_0x344ccc['sort']((_0x5146df,_0x156094)=>_0x5146df['id']<_0x156094['id']?-0x1:0x1);}());for(let _0x2afe9e=0x0;_0x2afe9e<_0x3dcba4['length'];_0x2afe9e++){if(0x0==_0x3dcba4[_0x2afe9e]['length'])continue;const _0xbfe53=[];for(let _0x1f54dd=_0x2afe9e+0x1;_0x1f54dd<_0x3dcba4['length'];_0x1f54dd++)0x0!=_0x3dcba4[_0x1f54dd]['length']&&_0x3b2cce(_0x3dcba4[_0x2afe9e],_0x3dcba4[_0x1f54dd])&&_0xbfe53['push'](_0x1f54dd);for(const _0x558666 of _0xbfe53)_0x3dcba4[_0x2afe9e]=_0x3dcba4[_0x2afe9e]['concat'](_0x3dcba4[_0x558666]),_0x3dcba4[_0x558666]=[];}for(const _0x2b0471 of _0x3dcba4)for(let _0x211400=0x0;_0x211400<_0x2b0471['length'];_0x211400++)_0x2b0471[_0x211400]['next']=_0x2b0471[_0x211400+0x1]||null;for(const _0x69e3af of _0x3dcba4)for(let _0x1685bc=0x0;_0x1685bc<_0x69e3af['length'];_0x1685bc++)_0x69e3af[_0x1685bc]['previous']=_0x69e3af[_0x1685bc-0x1]||null;function _0x3b2cce(_0x2aa150,_0x383a06){if(_0x2aa150[0x0]['attributes']['groupId']!==_0x383a06[0x0]['attributes']['groupId']&&_0x2aa150[0x0]['author']!==_0x383a06[0x0]['author'])return!0x1;if(!function(_0x4882f0,_0x2e9ac0){if(!_0x4882f0['hasComments']&&!_0x2e9ac0['hasComments'])return!0x0;if(_0x4882f0['hasComments']&&_0x2e9ac0['hasComments'])return!0x1;if(_0x4882f0['hasComments']&&_0x2e9ac0['createdAt']<_0x4882f0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2e9ac0['hasComments']&&_0x4882f0['createdAt']<_0x2e9ac0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2aa150[0x0],_0x383a06[0x0]))return!0x1;const _0x56af58=Bt(_0x2aa150[0x0]['attributes'],'groupId'),_0x478985=Bt(_0x383a06[0x0]['attributes'],'groupId');if(!_0x277e2e(_0x56af58,_0x478985))return!0x1;return!!_0x2aa150['every'](_0x7fb522=>_0x383a06['some'](_0x4df7f0=>_0x7fb522['getFirstRange']()['isEqual'](_0x4df7f0['getFirstRange']())))&&_0x383a06['every'](_0x50ab1d=>_0x2aa150['some'](_0x387326=>_0x50ab1d['getFirstRange']()['isEqual'](_0x387326['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1a8ae9){const _0xeead8e=Array['from'](_0x1a8ae9),_0x5543b7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x16d36a=_0x5543b7['filter'](_0x1faa50=>!_0x1a8ae9['has'](_0x1faa50)),_0xaa5909=new Map(_0xeead8e['map'](_0x5a9539=>[_0x5a9539,this['_suggestionFactory']['getSuggestionCallback'](_0x5a9539['type'],_0x5a9539['subType'],'join')])),_0x2d5851=new Map(_0x5543b7['map'](_0x22a27d=>[_0x22a27d,_0x22a27d['getRanges']()]));for(let _0x2c6312=0x0;_0x2c6312<_0xeead8e['length'];_0x2c6312++){if(_0x4bdcb0(this,_0xeead8e[_0x2c6312],_0xeead8e,_0x2c6312+0x1))return!0x0;}for(let _0x1386e8=0x0;_0x1386e8<_0xeead8e['length'];_0x1386e8++){if(_0x4bdcb0(this,_0xeead8e[_0x1386e8],_0x16d36a,0x0))return!0x0;}return!0x1;function _0x4bdcb0(_0x47d10f,_0x4095ce,_0x1b228c,_0x2efa1c){for(let _0x8039d6=_0x2efa1c;_0x8039d6<_0x1b228c['length'];_0x8039d6++){const _0x2eda16=_0x1b228c[_0x8039d6];if(_0x2eda16['type']!==_0x4095ce['type']||_0x2eda16['author']['id']!==_0x4095ce['author']['id']||_0x2eda16['subType']!==_0x4095ce['subType'])continue;if(!Pt(_0x4095ce,_0x2eda16,['groupId']))continue;if('attribute'==_0x4095ce['type']&&_0x4095ce['data']['oldValue']!=_0x2eda16['data']['oldValue'])continue;if('attribute'==_0x4095ce['type']&&_0x47d10f['_isBlockAttribute'](_0x4095ce['data']['key']))continue;if('formatBlock'==_0x4095ce['type']){const _0x411311=_0x47d10f['editor']['model'],_0x43d92d=_0x4095ce['getContainedElement']();if(_0x43d92d&&(_0x411311['schema']['isObject'](_0x43d92d)||_0x411311['schema']['isLimit'](_0x43d92d)))continue;}const _0x4a31ca=_0xaa5909['get'](_0x4095ce),_0x1f8fda=_0x2d5851['get'](_0x4095ce),_0xe90bfd=_0x2d5851['get'](_0x2eda16),_0x3e1db0=_0x4095ce['commentThread']&&_0x4095ce['commentThread']['length'],_0x10c7ae=_0x2eda16['commentThread']&&_0x2eda16['commentThread']['length'];if(!_0x3e1db0&&_0x4a31ca(_0xe90bfd,_0x1f8fda))return _0x47d10f['_joinSuggestions'](_0x2eda16,_0x4095ce),_0x2d5851['delete'](_0x4095ce),!0x0;if(!_0x10c7ae&&_0x4a31ca(_0x1f8fda,_0xe90bfd))return _0x47d10f['_joinSuggestions'](_0x4095ce,_0x2eda16),_0x2d5851['delete'](_0x2eda16),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3ac3cd,_0x549bf5){if(_0x3ac3cd['isMultiRange']){for(const _0x2bdff4 of _0x549bf5['getRanges']())_0x3ac3cd['addRange'](_0x2bdff4);}else{const _0x1bb68d=_0x549bf5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3ac3cd,this['_model']['createRange'](_0x3ac3cd['getFirstRange']()['start'],_0x1bb68d));}_0x549bf5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x12dd8b,_0x9223a0){const _0x205bbe=_0x12dd8b['startsWith']('format')||_0x12dd8b['startsWith']('attribute')?'FORMATTING':_0x12dd8b['toUpperCase']();return o(this['editor']['locale'],_0x9223a0+'_'+_0x205bbe+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x253c62=this['editor'];if(!_0x253c62['ui'])return;const {ariaLiveAnnouncer:_0x586631}=_0x253c62['ui'];_0x5667a6(this['_model'],({left:_0xa029e,entered:_0x14fac9})=>{for(const _0x9daeaa of _0xa029e){const {group:_0x32dd65,type:_0x111d10}=this['_splitMarkerName'](_0x9daeaa['name']);if('suggestion'===_0x32dd65){_0x586631['announce'](this['_getMarkerAnnouncementText'](_0x111d10,'LEAVE'));break;}}for(const _0x260f9b of _0x14fac9){const {group:_0x462c00,type:_0x3764fe}=this['_splitMarkerName'](_0x260f9b['name']);if('suggestion'===_0x462c00){_0x586631['announce'](this['_getMarkerAnnouncementText'](_0x3764fe,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4c7c96){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5492d7=this['editor'],_0xa00493=_0x5492d7['model']['document']['differ']['getChanges']();if(0x0==_0xa00493['length'])return!0x1;const _0xf47638=[],_0x39ea68=_0xa00493['filter'](_0xc63639=>'attribute'==_0xc63639['type']),_0x2888e4=_0xa00493['filter'](_0x11519e=>'insert'==_0x11519e['type']&&'$text'!=_0x11519e['name']),_0x2cb7f0=_0xa00493['filter'](_0x1fbd89=>'remove'==_0x1fbd89['type']&&'$text'!=_0x1fbd89['name']);for(const _0x218cda of _0x39ea68)_0xf47638['push']({'key':_0x218cda['attributeKey'],'newValue':_0x218cda['attributeNewValue'],'oldValue':_0x218cda['attributeOldValue'],'range':Ot(_0x218cda['range'],_0x5492d7['model'])});for(const _0x2014c3 of _0x2888e4){const _0x30bc7f=_0x2cb7f0['find'](_0x6a523c=>_0x6a523c['position']['isEqual'](_0x2014c3['position']));_0x30bc7f&&_0xf47638['push']({'key':m,'newValue':_0x2014c3['name'],'oldValue':_0x30bc7f['name'],'range':_0x5492d7['model']['createRangeOn'](_0x2014c3['position']['nodeAfter'])});}return 0x0!=_0xf47638['length']&&this['_reduceExistingSuggestions'](_0x4c7c96,_0xf47638);}['_processAttributeSuggestions'](_0x2a8d38){let _0x20a02c=!0x1;const _0xaf42ba=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa323af=>_0xa323af['data']['newRange']&&_0xa323af['name']['startsWith']('suggestion:attribute:'));for(const _0x2841ad of _0xaf42ba){const {subType:_0x4cf2c7,id:_0x4157e1}=this['_splitMarkerName'](_0x2841ad['name']),_0x5647f1=_0x4cf2c7['split']('|')[0x0];for(const _0x53a7c5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x53a7c5['id']!=_0x4157e1&&'attribute'==_0x53a7c5['type']&&_0x53a7c5['data']&&_0x53a7c5['data']['key']==_0x5647f1&&_0x53a7c5['getFirstRange']()['isIntersecting'](_0x2841ad['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x53a7c5,_0x2841ad['data']['newRange'],_0x2a8d38),_0x20a02c=!0x0);}return _0x20a02c;}['_recordAttributeChanges'](_0x36cbb6){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x36cbb6();}['_isRegisteredAttribute'](_0x22f060){const _0x467dd0=this['_isBlockAttribute'](_0x22f060),_0x5ee905=this['_inlineAttributeKeys']['has'](_0x22f060);return _0x467dd0||_0x5ee905;}['_reduceExistingSuggestions'](_0x129c99,_0x581f3f){if(0x0==_0x581f3f['length'])return!0x1;let _0x38f2cf=!0x1;for(const _0x50ffe9 of _0x581f3f){const _0x30fbe7=this['_findSuggestions'](_0x50ffe9['range'],'attribute')['filter'](_0x451924=>!_0x451924['meta']['isNextTo'])['map'](_0x28bda5=>_0x28bda5['suggestion']),_0x5cd313=_0x1e5c82({'newValue':_0x50ffe9['newValue']});_0x30fbe7['filter'](_0x513e4b=>{const [_0x22141d,_0x1b107d]=_0x513e4b['subType']['split']('|');return _0x22141d==_0x50ffe9['key']&&_0x1b107d!=_0x5cd313;})['forEach'](_0x1c3de3=>{this['_reduceSuggestionAttributeRange'](_0x1c3de3,_0x50ffe9['range'],_0x129c99),_0x38f2cf=!0x0;});}return _0x38f2cf;}['_reduceSuggestionAttributeRange'](_0x232c17,_0x15c7ab,_0x1254f7){const _0x37d350=_0x232c17['getFirstRange']()['getDifference'](_0x15c7ab);0x0!==_0x37d350['length']?0x1!==_0x37d350['length']?this['_breakSuggestionMarker'](_0x232c17,_0x15c7ab['start'],_0x15c7ab['end']):this['_setSuggestionRange'](_0x232c17,_0x37d350[0x0]):_0x1254f7['removeMarker'](_0x232c17['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x294515){this['_editor']=_0x294515,this['_model']=_0x294515['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2d5464,_0xe5c4ab,_0x4c0129,_0x34dd13,_0x54e2fc,_0x217435){return new u(this['_model'],{'type':_0x2d5464,'subType':_0xe5c4ab,'id':_0x4c0129,'author':_0x34dd13,'creator':_0x34dd13,'attributes':_0x54e2fc,'onAttributesChange':_0x217435,'onAccept':(..._0x1288e0)=>this['getSuggestionCallback'](_0x2d5464,_0xe5c4ab,'accept')(..._0x1288e0),'onDiscard':(..._0x1a02cd)=>this['getSuggestionCallback'](_0x2d5464,_0xe5c4ab,'discard')(..._0x1a02cd)});}['registerCustomCallback'](_0x453804,_0x582d87,_0x204a3e,_0x2208d6){const _0x4be18e=_0x453804+':'+_0x582d87+':'+_0x204a3e;this['_customCallbacks']['set'](_0x4be18e,_0x2208d6);}['getSuggestionCallback'](_0x8d6ff9,_0x313895,_0x1013f2){const _0x1d6e67=_0x8d6ff9+':'+_0x313895+':'+_0x1013f2;return this['_customCallbacks']['get'](_0x1d6e67)||this['_defaultCallbacks']['get'](_0x8d6ff9+':'+_0x1013f2);}['_registerDefaultCallbacks'](){const _0x49c58a=()=>!0x1,_0x254dba=_0x3d90b7=>{_0x3d90b7['sort']((_0x4d8d4e,_0x24ef36)=>_0x4d8d4e['start']['isBefore'](_0x24ef36['start'])?0x1:-0x1),this['_model']['change'](_0x4ca44f=>{for(const _0x2bd446 of _0x3d90b7){let _0x179b5c;_0x179b5c=_0x2bd446['end']['isAtEnd']&&_0x2bd446['end']['parent']==_0x2bd446['start']['nodeAfter']?_0x4ca44f['createSelection'](_0x2bd446['start']['nodeAfter'],'on'):_0x4ca44f['createSelection'](_0x2bd446),this['_model']['deleteContent'](_0x179b5c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x158414=(_0x290fa6,_0xdbaf3a)=>{_0xdbaf3a&&this['_model']['change'](_0x11a310=>{const {commandName:_0x8b20e4,commandParams:_0x5a30f3=[]}=_0xdbaf3a,_0x5943f1=_0x290fa6['map'](_0x3c03ef=>(Tt(_0x3c03ef)&&(_0x3c03ef=this['_model']['createRange'](_0x3c03ef['end'])),_0x3c03ef))['filter'](_0x35b42b=>'$graveyard'!==_0x35b42b['root']['rootName']);if(_0x5943f1['length']<0x1)return;const _0x393307=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5c6c8c=>_0x186ef9['fromRange'](_0x5c6c8c));_0x11a310['setSelection'](_0x5943f1);for(const _0x204a79 of this['_editor']['commands']['commands']())_0x204a79['refresh']();_0x5a30f3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x8b20e4,..._0x5a30f3);const _0x52ecb9=_0x393307['filter'](_0x1d5647=>'$graveyard'!=_0x1d5647['root']['rootName']);_0x52ecb9['length']>0x0&&_0x11a310['setSelection'](_0x52ecb9);for(const _0x241458 of _0x393307)_0x241458['detach']();});},_0x5179f8=(_0x30be1e,_0x49c00a)=>0x1==_0x30be1e['length']&&0x1==_0x49c00a['length']&&_0x30be1e[0x0]['end']['isEqual'](_0x49c00a[0x0]['start']),_0xb9ba3=(_0x22471c,_0x33c63c,_0x30f729,_0x476f40)=>Gt(_0x22471c,_0x33c63c,_0x30f729,_0x476f40,this['_model'])?[_0x22471c,_0x33c63c]:Gt(_0x33c63c,_0x22471c,_0x476f40,_0x30f729,this['_model'])?[_0x33c63c,_0x22471c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x49c58a),this['_defaultCallbacks']['set']('insertion:discard',_0x254dba),this['_defaultCallbacks']['set']('insertion:join',_0x5179f8),this['_defaultCallbacks']['set']('insertion:chain',_0xb9ba3),this['_defaultCallbacks']['set']('deletion:accept',_0x254dba),this['_defaultCallbacks']['set']('deletion:discard',_0x49c58a),this['_defaultCallbacks']['set']('deletion:join',_0x5179f8),this['_defaultCallbacks']['set']('deletion:chain',_0xb9ba3),this['_defaultCallbacks']['set']('formatInline:accept',_0x158414),this['_defaultCallbacks']['set']('formatInline:discard',_0x49c58a),this['_defaultCallbacks']['set']('formatInline:join',_0x5179f8),this['_defaultCallbacks']['set']('formatInline:chain',_0x49c58a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x158414),this['_defaultCallbacks']['set']('formatBlock:discard',_0x49c58a),this['_defaultCallbacks']['set']('formatBlock:join',_0x5179f8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x49c58a),this['_defaultCallbacks']['set']('attribute:accept',_0x49c58a),this['_defaultCallbacks']['set']('attribute:discard',(_0x52a52d,_0x44d5fe)=>{if(!_0x44d5fe)return;const _0x3c14a9=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1321a3=>{if(_0x44d5fe['key']==m)for(const _0x7f3009 of _0x52a52d){const _0x3932c7=_0x7f3009['start']['nodeAfter'],_0xe58911=_0x44d5fe['oldValue'];_0x1321a3['rename'](_0x3932c7,_0xe58911);}else{if(_0x3c14a9['_isBlockAttribute'](_0x44d5fe['key'])){for(const _0x480fad of _0x52a52d)void 0x0!==_0x44d5fe['oldValue']?_0x1321a3['setAttribute'](_0x44d5fe['key'],_0x44d5fe['oldValue'],_0x480fad['start']['nodeAfter']):_0x1321a3['removeAttribute'](_0x44d5fe['key'],_0x480fad['start']['nodeAfter']);}else{for(const _0x4350f5 of _0x52a52d)_0x44d5fe['oldValue']?_0x1321a3['setAttribute'](_0x44d5fe['key'],_0x44d5fe['oldValue'],_0x4350f5):_0x1321a3['removeAttribute'](_0x44d5fe['key'],_0x4350f5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5179f8);}}function Rt(_0x13cf4c,_0x89600f,_0x21b6f9){for(const _0x2965d8 of _0x89600f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2965d8['root']==_0x2965d8)return!0x1;if(!_0x21b6f9['containsItem'](_0x2965d8))return!0x1;if(_0x13cf4c['isObject'](_0x2965d8)||_0x13cf4c['isLimit'](_0x2965d8))return!0x0;}return!0x1;}function Tt(_0x441fe5){return _0x441fe5['end']['parent']==_0x441fe5['start']['nodeAfter']&&_0x441fe5['end']['isAtStart'];}function Et(_0x3b4e3f,_0x24b40b,_0x2b2211,_0x138809){const _0x3c643f=_0x57754e=>!_0x57754e['item']['is']('$textProxy')&&!_0x138809['isObject'](_0x57754e['item']),_0x473592=_0x3b4e3f['start']['getLastMatchingPosition'](_0x3c643f),_0x19b307=_0x3b4e3f['end']['getLastMatchingPosition'](_0x3c643f,{'direction':'backward'});return(!_0x3b4e3f['start']['isEqual'](_0x473592)||!_0x3b4e3f['end']['isEqual'](_0x19b307))&&(_0x473592['isBefore'](_0x19b307)?_0x2b2211['updateMarker'](_0x24b40b,{'range':_0x2b2211['createRange'](_0x473592,_0x19b307)}):_0x2b2211['removeMarker'](_0x24b40b),!0x0);}function Vt(_0x5ca02f){return _0x1e5c82(_0x5ca02f);}function Ut(_0x5c4f6f){const _0xfa1758=_0x5c4f6f['start']['nodeAfter'];return _0xfa1758&&_0xfa1758['is']('element');}function Ot(_0x285057,_0x81e000){return null==_0x285057['end']['nodeBefore']&&_0x285057['end']['parent']==_0x285057['start']['nodeAfter']?Ft(_0x285057['start']['nodeAfter'],_0x81e000):_0x285057;}function Ft(_0x33e54c,_0x349c5e){const _0x3ffc36=_0x349c5e['schema']['isObject'](_0x33e54c)||_0x349c5e['schema']['isSelectable'](_0x33e54c);return _0x349c5e['createRange'](_0x349c5e['createPositionAt'](_0x33e54c,'before'),_0x3ffc36?_0x349c5e['createPositionAfter'](_0x33e54c):_0x349c5e['createPositionAt'](_0x33e54c,'end'));}function Gt(_0x4735a7,_0x499d1b,_0x4a091d,_0xa62a97,_0x591974){if(!Pt(_0x4735a7,_0x499d1b))return!0x1;if(_0x4a091d['end']['isEqual'](_0xa62a97['start']))return!0x0;if(_0x4735a7['type']!=_0x499d1b['type'])return!0x1;if(!_0x4a091d['end']['isTouching'](_0xa62a97['start']))return!0x1;const _0x32a4fa=_0x591974['createRange'](_0x4a091d['end'],_0xa62a97['start'])['getWalker']();for(const _0x303124 of _0x32a4fa)if(['elementStart','elementEnd']['includes'](_0x303124['type'])&&_0x591974['schema']['isLimit'](_0x303124['item']))return!0x1;return!0x0;}function Pt(_0x4af0f8,_0x16bb34,_0x1b8f6f=[]){return!(!_0x4af0f8['_isDataLoaded']||!_0x16bb34['_isDataLoaded'])&&_0x277e2e(Bt(_0x4af0f8['attributes'],_0x1b8f6f),Bt(_0x16bb34['attributes'],_0x1b8f6f));}function Lt(_0x10dd5d,_0x3f03f0){const _0x453c4f=Ht(_0x10dd5d['attributes']),_0x58fc6e=Ht(_0x3f03f0);if(!_0x10dd5d['_isDataLoaded'])return!0x1;for(const _0x3d9483 of Object['keys'](_0x58fc6e))if(!_0x277e2e(_0x453c4f[_0x3d9483],_0x58fc6e[_0x3d9483]))return!0x1;return!0x0;}function Ht(_0x4cd89e){const _0xc1c613=Object['assign']({},_0x4cd89e);return delete _0xc1c613['skipNestingCheck'],delete _0xc1c613['tablePasteChainId'],_0xc1c613;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x3e5667(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x327de3,_0x580ea5,_0x15a723,_0x12e62e){super(),this['model']=_0x580ea5,this['view']=_0x15a723,this['commentThreadController']=_0x12e62e,this['_editor']=_0x327de3,this['_acceptCommand']=_0x327de3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x327de3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4a2c36,_0x34d2cd)=>_0x4a2c36||_0x34d2cd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x27b201=>_0x27b201&&this['_editor']['model']['canEditAt'](_0x580ea5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x598b93=>_0x598b93&&this['_editor']['model']['canEditAt'](_0x580ea5['getRanges']())),this['_pendingAction']=null,_0x15a723['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x15a723,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x15a723,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x15a723,'change:isDirty',()=>{_0x15a723['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 _0x27471f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27471f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5624ca{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x5fd4bf,_0x2370ef,_0x2be53e,_0x24689){super(_0x5fd4bf),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2370ef['authoredAt']),this['bind']('authoredAt')['to'](_0x2370ef),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2370ef,this['_localUser']=_0x2be53e,this['_config']=_0x24689,_0x24689['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:_0x25f6af}=this['_config'];this['commentsListView']=new _0x25f6af(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',_0x533616=>_0x533616+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1d69d2,_0x4d9fce)=>_0x1d69d2||!!_0x4d9fce);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1e0663}=this['_config'],_0x2ee2ee=new _0x1e0663(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f8e1a=_0x2ee2ee['commentInputView'];return _0x2ee2ee['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f8e1a,'value',(_0x2728bf,_0x191fc8,_0x205035)=>!!_0x205035||_0x2728bf&&!_0x191fc8),_0x3f8e1a['on']('submit',(_0x3ddfe7,_0x2f2ae4)=>{this['fire']('addComment',_0x2f2ae4),_0x3f8e1a['editor']['setData']('');}),_0x3f8e1a['on']('cancel',()=>this['focus']()),_0x3f8e1a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2ee2ee;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4da8d6,_0x472878,_0x2a2392,_0x5e8066){super(_0x4da8d6,_0x472878,_0x2a2392,_0x5e8066),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3ba1b1=>_0x3ba1b1&&_0x3ba1b1[0x0]?_0x3ba1b1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x56fb2a,_0x2572e1)=>{let _0x3593eb='';for(const _0x5eb09b of _0x56fb2a)_0x3593eb+='<p>'+ds(_0x5eb09b['content'],_0x5eb09b['color'])+'</p>';return _0x2572e1?_0x3593eb:_0x594178(_0x3593eb,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4da8d6,'Accept\x20suggestion'),_0x45c073['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4da8d6,'Discard\x20suggestion'),_0x45c073['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2a29bd(_0x4da8d6,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5ebd35=this['bindTemplate'],_0x392679=[{'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':_0x5ebd35['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5ebd35['to']('authoredAt',_0x37486a=>this['_config']['formatDateTime'](_0x37486a))}]}]},{'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']&&_0x392679['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2e1682={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5ebd35['if']('isActive','ck-suggestion-wrapper--active'),_0x5ebd35['to']('type',_0x81bbf2=>'ck-suggestion-'+_0x81bbf2),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':_0x392679}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2e1682['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)),_0x2e1682;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1d93a7,_0x1ff987,_0x32a50a)=>{this['_descriptionElement']['innerHTML']=_0x32a50a;});}['_createButton'](_0x1f99e5,_0x5111d8,_0x3a7769,_0xad1bb9,_0x4de1be){const _0x5973ac=new _0x2b0fae(this['locale']);return _0x5973ac['set']({'label':_0x1f99e5,'icon':_0x5111d8,'tooltip':!0x0,'tooltipPosition':_0x4de1be}),_0x5973ac['extendTemplate']({'attributes':{'class':_0x3a7769}}),_0x5973ac['on']('execute',()=>{this['fire'](_0xad1bb9,this['_model']['id']);}),_0x5973ac;}['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(_0x38fa74,_0x190e34){let _0x493127='';return _0x493127+=_0x38fa74['split']('*')['map']((_0x36f235,_0x139e8a)=>_0x139e8a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x36f235)+'</span>':us(_0x36f235))['join'](''),_0x190e34&&(_0x493127+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x190e34['value']+'\x22\x20title=\x22'+_0x190e34['title']+'\x22></span>'),_0x493127;}function us(_0x751630){const _0x26e621=document['createElement']('span');return _0x26e621['innerText']=_0x751630,_0x26e621['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 _0x2196b4{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x306231,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1667af){super(_0x1667af),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x376e01=this['editor']['config'];_0x376e01['define']('trackChanges.SuggestionThreadView',ne),_0x376e01['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x376e01['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1c896c,_0x482f8a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x54c840,_0x15c827]of this['_handleControllerBuffer']){const _0x4df84a=this['_suggestionToController']['has'](_0x54c840);_0x4df84a||_0x15c827?_0x4df84a&&_0x15c827&&this['_destroyController'](_0x54c840):this['_initializeController'](_0x54c840);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1c896c,_0x482f8a);}['init'](){const _0x4a4c39=this['editor'],_0x36ef88=_0x4a4c39['plugins']['get']('TrackChangesEditing'),_0x233d00=_0x4a4c39['plugins']['get']('Annotations'),_0x319753=_0x4a4c39['plugins']['get']('EditorAnnotations'),_0x5e335e=_0x4a4c39['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x319753['addSourceCollector'](()=>{const _0x1e2165=[];for(const [_0x522141,_0x4b9736]of Array['from'](this['_suggestionToController'])){const _0x15fd80=_0x522141['getAllAdjacentSuggestions'](),_0x24f8d4=[];for(const _0x54899e of _0x15fd80){if(!_0x54899e['isInContent'])continue;if(_0x54899e['isMultiRange']){_0x24f8d4['push'](..._0x54899e['getRanges']());continue;}const _0x43842a=_0x54899e['getFirstRange']();if(_0x24f8d4['length']>0x0){const _0x7a9ad6=_0x24f8d4[0x0]['getJoined'](_0x43842a);if(_0x7a9ad6){_0x24f8d4[0x0]=_0x7a9ad6;continue;}}_0x24f8d4['push'](_0x43842a);}_0x1e2165['push']([_0x4b9736['view'],_0x24f8d4]);}return _0x1e2165;}),this['listenTo'](_0x36ef88,'suggestionLoaded',(_0x1e44be,_0x3861e9)=>{this['listenTo'](_0x3861e9,'change:previous',(_0x6a1d4c,_0x447813,_0x4f2734,_0x4de6df)=>{_0x3861e9['isInContent']&&(null==_0x4f2734?(this['_updateController'](_0x4de6df['head']),this['_handleSuggestionControllerDelayed'](_0x3861e9,!0x1)):(this['_updateController'](_0x4f2734['head']),null==_0x4de6df&&this['_handleSuggestionControllerDelayed'](_0x3861e9,!0x0)));}),null!==_0x3861e9['previous']?this['_updateController'](_0x3861e9['head']):this['_handleSuggestionControllerDelayed'](_0x3861e9,!0x1);}),this['listenTo'](_0x36ef88,'suggestionUnloaded',(_0x32f4c8,_0x45f91d,_0x1db0cf)=>{this['stopListening'](_0x45f91d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x45f91d),this['_suggestionToController']['has'](_0x45f91d)&&this['_destroyController'](_0x45f91d),_0x1db0cf&&this['_updateController'](_0x1db0cf['head']);}),this['listenTo'](_0x36ef88,'suggestionChanged',(_0x467e98,_0x4e5680)=>{this['_updateController'](_0x4e5680);}),this['listenTo'](_0x233d00,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5e335e,'addComment',(_0x24dd7a,{threadId:_0xf9b6d2,isFromAdapter:_0x4c9263})=>{if(_0x4c9263||!_0x36ef88['hasSuggestion'](_0xf9b6d2))return;const _0x2d8462=_0x36ef88['getSuggestion'](_0xf9b6d2);this['_suggestionToController']['get'](_0x2d8462)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2ec82c=this['editor']['plugins']['get']('Annotations'),_0x42b40b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x367f63=Array['from'](_0x2ec82c['activeAnnotations'],_0x5e6eac=>_0x5e6eac['innerView'])['filter'](_0x1583d6=>this['_viewToController']['has'](_0x1583d6)),_0x325b0c=[];for(const _0x1283a6 of _0x367f63){const _0x1b8bc4=this['_viewToController']['get'](_0x1283a6)['model']['getAllAdjacentSuggestions']();_0x325b0c['push'](..._0x1b8bc4['reduce']((_0x317b64,_0x479cf8)=>[..._0x317b64,..._0x479cf8['getMarkerNames']()],[]));}_0x42b40b['activeMarkers']=_0x325b0c;}['_addUIComponentsToFactory'](){const _0x1bda19=this['editor'],_0x531dbf=_0x1bda19['locale'],_0x27f379=o(_0x531dbf,'Track\x20changes'),_0xb9be66=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x27f379,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x531dbf,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x531dbf,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x531dbf,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x531dbf,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x40db04 of _0xb9be66)if(ae(_0x40db04)){const _0x493284=_0x1bda19['commands']['get'](_0x40db04['model']['commandName']);_0x40db04['model']['bind']('isOn','isEnabled')['to'](_0x493284,'value','isEnabled');}_0x1bda19['ui']['componentFactory']['add']('trackChanges',_0x1f609f=>this['_createToolbarButton'](_0x1f609f,_0xb9be66,_0x27f379)),_0x1bda19['ui']['componentFactory']['add']('menuBar:trackChanges',_0x190397=>this['_createMenuBarMenu'](_0x190397,_0xb9be66,_0x27f379));}['_createToolbarButton'](_0x2794a5,_0x15af27,_0x5a7555){const _0x1fc94e=zt(_0x2794a5,Zt),_0x432a86=this['editor']['commands']['get']('trackChanges');_0x1fc94e['buttonView']['set']({'tooltip':_0x5a7555,'label':_0x5a7555,'icon':ie}),_0x1fc94e['buttonView']['bind']('isOn')['to'](_0x432a86,'value'),_0x1fc94e['buttonView']['on']('execute',()=>{_0x432a86['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1fc94e,_0x15af27,{'role':'menu'});const _0x53e71d=[];for(const _0xe6b5fc of _0x15af27)ae(_0xe6b5fc)&&_0x53e71d['push'](this['editor']['commands']['get'](_0xe6b5fc['model']['commandName']));const _0x5a85a5=_0x1fc94e['buttonView'];return _0x5a85a5['actionView']['unbind']('isEnabled'),_0x5a85a5['arrowView']['unbind']('isEnabled'),_0x5a85a5['actionView']['bind']('isEnabled')['to'](_0x432a86,'isEnabled'),_0x5a85a5['arrowView']['bind']('isEnabled')['toMany'](_0x53e71d,'isEnabled',(..._0x2382eb)=>_0x2382eb['some'](_0x14c784=>_0x14c784)),_0x1fc94e['on']('execute',_0x4e8e8f=>{this['editor']['execute'](_0x4e8e8f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1fc94e;}['_createMenuBarMenu'](_0x48c3e0,_0xb56697,_0x1ba52f){const _0x3a5a74=new Kt(_0x48c3e0),_0x4f29c6=this['editor']['commands']['get']('trackChanges');_0x3a5a74['buttonView']['set']({'label':_0x1ba52f,'icon':ie});const _0x1e72b8=new Qt(_0x48c3e0);for(const _0x53bd6a of _0xb56697){if('separator'==_0x53bd6a['type']){_0x1e72b8['items']['add'](new Jt(_0x48c3e0));continue;}const _0x365431=new Xt(_0x48c3e0,_0x3a5a74),_0x391264=new Yt(_0x48c3e0),_0x4a3e13=_0x53bd6a['model'];_0x391264['bind'](...Object['keys'](_0x4a3e13))['to'](_0x4a3e13),_0x391264['delegate']('execute')['to'](_0x3a5a74),_0x391264['on']('execute',()=>{this['editor']['execute'](_0x4a3e13['commandName']),this['editor']['editing']['view']['focus']();}),_0x365431['children']['add'](_0x391264),_0x1e72b8['items']['add'](_0x365431);}return _0x3a5a74['bind']('isEnabled')['to'](_0x4f29c6,'isEnabled'),_0x3a5a74['panelView']['children']['add'](_0x1e72b8),_0x3a5a74;}['_initializeController'](_0x1439ed){const _0x4a61e2=this['editor'],_0x324720=_0x4a61e2['config'],_0x40ffbe=_0x4a61e2['plugins']['get']('Annotations'),_0x132a87=_0x4a61e2['plugins']['get']('CommentsRepository'),_0x1c1b76=_0x4a61e2['plugins']['get']('EditorAnnotations'),_0x154c13=_0x4a61e2['plugins']['get'](_0x306231)['me'],_0x4ed767=_0x324720['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3b966f,CommentThreadInputView:_0x4517a0}=_0x4a61e2['plugins']['get']('CommentsUI');let _0x5bc422,_0xa6ff21;this['_annotationViews']['has'](_0x1439ed['id'])?(_0xa6ff21=this['_annotationViews']['get'](_0x1439ed['id']),_0x5bc422=_0xa6ff21['mainView']):(_0x5bc422=new _0x4ed767(_0x4a61e2['locale'],_0x1439ed,_0x154c13,{'disableComments':this['_disableComments'],'editorConfig':_0x324720['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x324720['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x324720['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x324720['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x19f402(_0x324720['get']('locale')),'CommentView':_0x324720['get']('comments')['CommentView'],'CommentsListView':_0x3b966f,'CommentThreadInputView':_0x4517a0}),_0x5bc422['acceptButton']['on']('execute',()=>{_0x4a61e2['editing']['view']['focus']();}),_0x5bc422['discardButton']['on']('execute',()=>{_0x4a61e2['editing']['view']['focus']();}),_0xa6ff21=_0x40ffbe['createAnnotationView'](this['editor']['locale'],_0x5bc422),_0xa6ff21['bind']('isDirty')['to'](_0x5bc422,'isDirty'),_0xa6ff21['bind']('length')['to'](_0x5bc422),_0xa6ff21['bind']('type')['to'](_0x5bc422,'type',_0x3b9e74=>'suggestion-'+_0x3b9e74),this['_annotationViews']['set'](_0x1439ed['id'],_0xa6ff21));const _0x6595d6=_0x132a87['createCommentThreadController'](_0x1439ed['commentThread'],_0x5bc422),_0x511ffd=new oe(_0x4a61e2,_0x1439ed,_0x5bc422,_0x6595d6),_0x28904c=_0x1439ed['getAllAdjacentSuggestions']()['filter'](_0x2f6c56=>_0x2f6c56['isInContent']);_0x5bc422['descriptionParts']=_0x4a61e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x28904c),this['_suggestionToController']['set'](_0x1439ed,_0x511ffd),this['_viewToController']['set'](_0x5bc422,_0x511ffd);const _0x3dccfb=_0x40ffbe['createAnnotation']({'view':_0xa6ff21,'target':()=>{const _0x1c36b1=[],_0x81c706=_0x1439ed['getAllAdjacentSuggestions']()['filter'](_0x18348b=>_0x18348b['isInContent']);for(const _0x44ab0d of _0x81c706)_0x1c36b1['push'](..._0x44ab0d['getMarkers']());return _0x590fd1(_0x4a61e2['editing'],_0x1c36b1);},'type':()=>'suggestion-'+_0x511ffd['view']['type']});_0x132a87['_bindAnnotationToEditors'](_0x5bc422,_0x3dccfb),_0x40ffbe['add'](_0x3dccfb),_0x1c1b76['registerAnnotation'](_0x3dccfb);}['_destroyController'](_0x23c54a){const _0x1457a3=this['editor']['plugins']['get']('CommentsRepository'),_0x3e0653=this['editor']['plugins']['get']('Annotations'),_0x4fac40=this['_suggestionToController']['get'](_0x23c54a),_0xc7a1c=_0x4fac40['view'],_0x5800ba=_0x3e0653['getByInnerView'](_0xc7a1c);_0x1457a3['_unbindEditors'](_0xc7a1c),_0x5800ba&&_0x3e0653['remove'](_0x5800ba),this['_suggestionToController']['delete'](_0x23c54a),this['_viewToController']['delete'](_0xc7a1c),_0x4fac40['destroy']();}['_updateController'](_0x5eccce){if(!_0x5eccce['isInContent']||!this['_suggestionToController']['has'](_0x5eccce))return;const _0x4e88c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50dfae=this['_suggestionToController']['get'](_0x5eccce),_0x4d5ec2=_0x5eccce['getAllAdjacentSuggestions']();_0x50dfae['view']['descriptionParts']=_0x4e88c5['descriptionFactory']['getDescriptions'](_0x4d5ec2);}['destroy'](){for(const _0x557324 of this['_suggestionToController']['keys']())this['_destroyController'](_0x557324);for(const _0x39bf08 of this['_annotationViews']['values']())_0x39bf08['mainView']['destroy']();super['destroy']();}}function ae(_0xaab43f){return'model'in _0xaab43f;}class k extends _0x2196b4{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4b32bc){this['editor']['plugins']['get'](p)['adapter']=_0x4b32bc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1ba83c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1ba83c);}['getSuggestions']({skipNotAttached:_0x2fee27=!0x1,toJSON:_0x3b61bd=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2fee27,'toJSON':_0x3b61bd});}['getSuggestion'](_0x22b422){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x22b422);}}const T=['Pagination'];class P extends _0x2196b4{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2cf0f4=this['editor'];if(_0x2cf0f4['config']['define']('trackChangesData.editorCreator',_0x29f4da=>{const _0x116e89=_0x2cf0f4['model']['document']['getRootNames']()['reduce']((_0xd998d2,_0x4811e8)=>(_0xd998d2[_0x4811e8]='',_0xd998d2),{});return _0x2cf0f4['constructor']['create'](_0x116e89,_0x29f4da);}),'function'!=typeof _0x2cf0f4['config']['get']('trackChangesData')['editorCreator'])throw new _0x4a2b29('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x54a67d){return N(this['editor'],!0x0,_0x54a67d);}['getDataWithDiscardedSuggestions'](_0x1ebe97){return N(this['editor'],!0x1,_0x1ebe97);}}class D extends _0x2196b4{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3944c7){super(_0x3944c7),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(_0x4b1822){return void 0x0!==_0x4b1822['getRootsAttributes'];}async function N(_0x400194,_0x3954b2,_0x3d0ab9){const _0x2b192f=_0x5a403f(_0x400194,T);_0x2b192f['plugins']['push'](p,D),_0x2b192f['rootsAttributes']=v(_0x400194)?_0x400194['getRootsAttributes']():void 0x0;const _0x318fe2=document['createDocumentFragment'](),_0x2bcb92=_0x400194['config']['get']('trackChangesData')['editorCreator'],_0x2a26e1=await _0x2bcb92(_0x2b192f,()=>function(_0x12d27c){const _0x909a0b=document['createElement']('div');return _0x12d27c['appendChild'](_0x909a0b),_0x909a0b;}(_0x318fe2));!function(_0x228f0e,_0x493a9f){const _0x34326d=_0x228f0e['model']['document']['getRootNames']()['reduce']((_0x5cb1eb,_0x599a9e)=>(_0x5cb1eb[_0x599a9e]=_0x228f0e['data']['get']({'rootName':_0x599a9e}),_0x5cb1eb),{}),_0x24c2fb=_0x228f0e['plugins']['get']('Users')['users']['map'](_0x2a5ca8=>({'id':_0x2a5ca8['id'],'name':_0x2a5ca8['name']})),_0x8636b3=_0x228f0e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4501b0=_0x228f0e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x513153=_0x493a9f['plugins']['get']('Users'),_0x2fd43e=_0x493a9f['plugins']['get']('TrackChangesEditing'),_0x468236=_0x493a9f['plugins']['get']('CommentsRepository');for(const _0x582339 of _0x24c2fb)_0x513153['getUser'](_0x582339['id'])||_0x513153['addUser'](_0x582339);_0x513153['me']||_0x513153['useAnonymousUser']();for(const _0x33566f of _0x8636b3)_0x2fd43e['addSuggestionData'](_0x33566f);for(const _0x6858c2 of _0x4501b0)_0x468236['addCommentThread'](_0x6858c2);_0x493a9f['data']['set'](_0x34326d);}(_0x400194,_0x2a26e1),_0x2a26e1['execute'](_0x3954b2?'acceptAllSuggestions':'discardAllSuggestions');const _0x6d62b8=v(_0x2a26e1)?_0x2a26e1['getFullData'](_0x3d0ab9):_0x2a26e1['data']['get'](_0x3d0ab9);return await _0x2a26e1['destroy'](),_0x6d62b8;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x3be5df,PendingActions as _0x4a2131,icons as _0xdf767d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x357ebd,ObservableMixin as _0x13aff3,uid as _0x3035a1,insertToPriorityArray as _0x243765,priorities as _0x3b4600,logWarning as _0x272dfa,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x35f8c4,View as _0x337c6b,ButtonView as _0x37be95,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 _0x3c67fa,hashObject as _0x2c54bc,surroundingMarkersDetector as _0x14fed6,trimHtml as _0x4037e5,UserView as _0xc8bfc5,getDateTimeFormatter as _0x42ab4e,getAllMarkersDomElementsSorted as _0x362eea,sanitizeEditorConfig as _0x3c199d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x585adf,LiveRange as _0x2ded21,LivePosition as _0x2212d3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1897ff,toWidget as _0x47dbfc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x24eea2,set as _0x24232a,isEqual as _0x9c88fc,unset as _0x4583b4,omit as Bt}from'lodash-es';import{Delete as _0x59be5b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x129566,ShiftEnter as _0x417959}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x3d17ac,_0x19ea14){super(_0x3d17ac),this['_enabledCommands']=_0x19ea14,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 _0x77403e of this['editor']['commands']['commands']())_0x77403e['affectsData']&&!this['_enabledCommands']['has'](_0x77403e)&&_0x77403e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x6663e2 of this['editor']['commands']['commands']())_0x6663e2['affectsData']&&!this['_enabledCommands']['has'](_0x6663e2)&&_0x6663e2['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x4214ae,_0x25841b){super(_0x4214ae),this['_suggestions']=_0x25841b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x39079b){const _0x50c3c1=this['_suggestions']['get'](_0x39079b);if(!_0x50c3c1)throw new _0x357ebd('track-changes-accept-suggestion-not-found',this);const _0x414f8a=_0x50c3c1['getRanges']();this['editor']['model']['canEditAt'](_0x414f8a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x50c3c1);}}class B extends ts{['_suggestions'];constructor(_0x43de9e,_0x74ddda){super(_0x43de9e),this['_suggestions']=_0x74ddda,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xb71293){const _0x3b8a40=this['_suggestions']['get'](_0xb71293);if(!_0x3b8a40)throw new _0x357ebd('track-changes-discard-suggestion-not-found',this);const _0x55a6de=_0x3b8a40['getRanges']();this['editor']['model']['canEditAt'](_0x55a6de)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3b8a40);}}function ss(_0x370111){return _0x370111['sort']((_0x4f2f0a,_0x4bd7cc)=>'deletion'==_0x4f2f0a['type']&&'deletion'!=_0x4bd7cc['type']?-0x1:'deletion'!=_0x4f2f0a['type']&&'deletion'==_0x4bd7cc['type']?0x1:0x0);}function to(_0x5afcb3,_0xe8ab33){let _0x1ea531,_0x35d78e=0x0;const _0xe8944a=[],_0x5f08df=_0xe8ab33['schema'];for(;_0x35d78e<_0x5afcb3['length'];){const _0x35046f=_0x5afcb3[_0x35d78e],_0x146476=_0x5afcb3[_0x35d78e+0x1];_0x1ea531||(_0x1ea531=_0xe8ab33['createPositionBefore'](_0x35046f)),co(_0xe8ab33,_0x35046f,_0x146476)||(_0xe8944a['push'](_0xe8ab33['createRange'](_0x1ea531,_0x5f08df['isObject'](_0x35046f)?_0xe8ab33['createPositionAfter'](_0x35046f):_0xe8ab33['createPositionAt'](_0x35046f,'end'))),_0x1ea531=null),_0x35d78e++;}return _0xe8944a;}function co(_0x576933,_0x34dc98,_0x5137c5){if(!_0x5137c5)return!0x1;const _0x36c481=_0x576933['createPositionAfter'](_0x34dc98),_0x40098d=_0x576933['createPositionBefore'](_0x5137c5);return _0x36c481['isTouching'](_0x40098d);}function rs(_0x17c147,_0x137020,_0x576e2a){for(;_0x576e2a['length'];){const _0x1e5c87=_0x576e2a['splice'](0x0,0x64);_0x17c147['change'](()=>{for(const _0x5a099d of _0x1e5c87)_0x5a099d['isInContent']&&_0x137020['execute'](_0x5a099d['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x45ed93,_0x3bd389,_0x326494){super(_0x45ed93),this['_command']=_0x3bd389,this['_suggestions']=_0x326494,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16e7f0=Array['from'](this['_suggestions']['values']())['some'](_0x5b09a8=>_0x5b09a8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x16e7f0;}['execute'](){const _0x4f7d47=ss(Array['from'](this['_suggestions']['values']()));for(const _0x11c0dc of _0x4f7d47){const _0x35a901=_0x11c0dc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x35a901))return;}rs(this['editor']['model'],this['_command'],_0x4f7d47);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3901a1,_0x1be765,_0x5b682d){super(_0x3901a1),this['_command']=_0x1be765,this['_suggestions']=_0x5b682d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5162fb=this['editor']['model']['document']['selection'],_0x181d5c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x13e531,_0x3f8d3a){const _0xfa8c32=Array['from'](_0x13e531['getRanges']()),_0x454b45=new Set();for(const _0x5c94ca of _0x3f8d3a)if(_0x5c94ca['isInContent']){for(const _0x14c955 of _0xfa8c32)for(const _0x429e7a of _0x5c94ca['getRanges']())(_0x14c955['isIntersecting'](_0x429e7a)||_0x13e531['isCollapsed']&&!_0x5c94ca['isMultiRange']&&_0x5c94ca['next']&&_0x429e7a['end']['isTouching'](_0x14c955['start']))&&_0x454b45['add'](_0x5c94ca);}return _0x454b45;}(_0x5162fb,_0x181d5c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5940ec=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3225a1 of _0x5940ec){const _0x58fd8f=_0x3225a1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x58fd8f))return;}rs(this['editor']['model'],this['_command'],_0x5940ec);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x13aff3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1241c7,_0x496acc){super(),this['id']=_0x496acc['id'],this['type']=_0x496acc['type'],this['subType']=_0x496acc['subType']||null,this['author']=_0x496acc['author'],this['creator']=_0x496acc['creator']||_0x496acc['author'],this['isExternal']=Boolean(_0x496acc['attributes']&&_0x496acc['attributes']['@external']),this['data']=null,this['_model']=_0x1241c7,this['_onAccept']=_0x496acc['onAccept'],this['_onDiscard']=_0x496acc['onDiscard'],this['_onAttributesChange']=_0x496acc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x496acc['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 _0x43d90d=this;for(;_0x43d90d['previous'];)_0x43d90d=_0x43d90d['previous'];return _0x43d90d;}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'](_0x5956ce){this['_markerNames']['add'](_0x5956ce);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x10d9b2=>this['_model']['markers']['get'](_0x10d9b2))['filter'](_0x159ccc=>_0x159ccc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2138a2=>{for(const _0x46ba48 of this['getMarkers']())_0x2138a2['removeMarker'](_0x46ba48);}),this['_markerNames']['clear']();}['removeMarker'](_0x5f523c){this['_model']['change'](_0x3aae5f=>{_0x3aae5f['removeMarker'](_0x5f523c);}),this['_markerNames']['delete'](_0x5f523c);}['addRange'](_0x5cd6ae){const _0x163e09='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x163e09),this['_model']['change'](_0x34c702=>{_0x34c702['addMarker'](_0x163e09,{'range':_0x5cd6ae,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x495b67){for(const _0x26957e of this['getRanges']())if(_0x26957e['isIntersecting'](_0x495b67))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c5172=>_0x4c5172['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x87fd2d,_0x2b5e99)=>[..._0x87fd2d,..._0x2b5e99['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3aedbf=this['getRanges']();if(0x1!=_0x3aedbf['length'])return null;const _0x5c22ed=_0x3aedbf[0x0],_0x25dc24=_0x5c22ed['start']['nodeAfter'],_0x4ac8af=_0x5c22ed['end']['nodeBefore'];return _0x25dc24 instanceof _0x585adf?_0x25dc24!=_0x4ac8af?null:_0x25dc24: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 _0xfdab27=[];let _0x516947=this['head'];for(;_0x516947;)_0xfdab27['push'](_0x516947),_0x516947=_0x516947['next'];return _0xfdab27;}['setAttribute'](_0x557057,_0x1cba96){const _0x89ae06=_0x24eea2(this['attributes']);_0x24232a(_0x89ae06,_0x557057,_0x1cba96),_0x9c88fc(_0x89ae06,this['attributes'])||(this['attributes']=_0x89ae06,this['_onAttributesChange'](_0x89ae06));}['removeAttribute'](_0x454e47){const _0x3d5f3c=_0x24eea2(this['attributes']);_0x4583b4(_0x3d5f3c,_0x454e47),_0x9c88fc(_0x3d5f3c,this['attributes'])||(this['attributes']=_0x3d5f3c,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 _0x3035a1()['substr'](0x1,0x5);}}function o(_0x2f6c33,_0x4d523a,_0x3c51b8){const t=_0x2f6c33['t'];switch(_0x4d523a){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',_0x3c51b8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3c51b8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3c51b8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3c51b8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3c51b8);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',_0x3c51b8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3c51b8);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',_0x3c51b8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3c51b8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3c51b8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3c51b8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3c51b8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3c51b8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3c51b8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3c51b8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3c51b8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3c51b8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3c51b8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3c51b8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3c51b8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3c51b8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3c51b8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3c51b8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3c51b8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3c51b8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3c51b8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3c51b8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3c51b8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3c51b8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3c51b8);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'},_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3c51b8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3c51b8);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'},_0x3c51b8);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'},_0x3c51b8);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 _0x4d523a;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1d2ed0,_0x310d64){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1d2ed0,this['_locale']=_0x310d64;}['getDescriptions'](_0x1b14d6){const _0x4bff48=[],_0x37ced7=new Set(),_0x379a2c=new Set();for(let _0x586044=0x0;_0x586044<_0x1b14d6['length'];_0x586044++){const _0x17e8f4=_0x1b14d6[_0x586044];if(!_0x17e8f4['isInContent'])continue;const _0x16a6df=this['_handleCustomCallbackDescription'](_0x17e8f4);if(_0x16a6df){if(null!=_0x17e8f4['subType']){if(_0x37ced7['has'](_0x17e8f4['subType']))continue;_0x37ced7['add'](_0x17e8f4['subType']);}_0x4bff48['push'](_0x16a6df);}else{if('attribute'!=_0x17e8f4['type'])'insertion'!=_0x17e8f4['type']&&'deletion'!=_0x17e8f4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4bff48,_0x17e8f4,_0x1b14d6[_0x586044+0x1]);else{const _0x5b583f=_0x17e8f4['data']['key'];if(_0x379a2c['has'](_0x5b583f))continue;_0x379a2c['add'](_0x17e8f4['data']['key']),_0x5b583f==m?this['_handleRenameSuggestionDescription'](_0x4bff48,_0x17e8f4):this['_handleAttributeSuggestionDescription'](_0x4bff48,_0x17e8f4);}}}return this['_resolveDescriptionItems'](_0x4bff48);}['registerDescriptionCallback'](_0x14b267){this['_customCallbacks']['push'](_0x14b267);}['registerElementLabel'](_0x4d51bf,_0x597344,_0x122c68=_0x3b4600['normal']){'function'==typeof _0x4d51bf?_0x243765(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4d51bf,'label':_0x597344,'priority':_0x122c68}):this['_itemLabels']['set'](_0x4d51bf,_0x597344);}['registerAttributeLabel'](_0x1c2689,_0x36b52a){this['_attributeLabels']['set'](_0x1c2689,_0x36b52a);}['getItemLabel'](_0x21d64b,_0x1f89a7=0x1){let _0xfc603c;for(const _0x491db5 of this['_itemLabelsCallbacks'])if(_0x491db5['matchingCallback'](_0x21d64b)){_0xfc603c=_0x491db5['label'];break;}return _0xfc603c||(_0xfc603c=this['_itemLabels']['get'](_0x21d64b['name'])),_0xfc603c?_0xfc603c(_0x1f89a7):0x1!==_0x1f89a7?_0x1f89a7+'\x20'+_0x21d64b['name']+'s':''+_0x21d64b['name'];}['_addDescriptionItems'](_0x5d1951,_0x4dfe7c){const _0x47457c=_0x4dfe7c['getFirstRange']()['getWalker'](),_0x5564bc='insertion'==_0x4dfe7c['type']?'add':'remove';for(const _0x38b165 of _0x47457c){const _0x5e43f7=_0x38b165['item'],_0x2aa56e=_0x5d1951[_0x5d1951['length']-0x1];if(_0x5e43f7['is']('$textProxy'))_0x2aa56e&&_0x2aa56e['type']['indexOf']('Container')>-0x1&&_0x5d1951['pop'](),_0x2aa56e&&'text'==_0x2aa56e['type']?_0x2aa56e[_0x5564bc]+=_0x5e43f7['data']:_0x5d1951['push']({'type':'text','add':'add'==_0x5564bc?_0x5e43f7['data']:'','remove':'remove'==_0x5564bc?_0x5e43f7['data']:''});else{if(this['_schema']['isObject'](_0x5e43f7)){const _0x22662a=_0x5e43f7;if(_0x2aa56e&&_0x2aa56e['type']['indexOf']('Container')>-0x1&&_0x5d1951['pop'](),'elementEnd'==_0x38b165['type'])continue;_0x2aa56e&&_0x2aa56e['type']==_0x5564bc+'Object'&&_0x2aa56e['element']['name']==_0x22662a['name']?_0x2aa56e['quantity']++:_0x5d1951['push']({'type':_0x5564bc+'Object','element':_0x22662a,'quantity':0x1}),_0x47457c['skip'](_0x1d8277=>!('elementEnd'==_0x1d8277['type']&&_0x1d8277['item']==_0x5e43f7));}else{if(this['_schema']['checkChild'](_0x5e43f7,'$text')||_0x5e43f7['is']('element','softBreak')){const _0x12b87e=_0x5e43f7;if('add'==_0x5564bc&&'elementStart'==_0x38b165['type']||'remove'==_0x5564bc&&'elementEnd'==_0x38b165['type'])continue;if(_0x2aa56e&&-0x1==_0x2aa56e['type']['indexOf']('Container')){'text'==_0x2aa56e['type']&&(_0x2aa56e[_0x5564bc]+='\x0a');continue;}let _0x56f944;if(_0x56f944='add'==_0x5564bc?_0x12b87e['nextSibling']&&!this['_schema']['isObject'](_0x12b87e['nextSibling'])?_0x12b87e['nextSibling']:null:_0x12b87e['previousSibling']&&!this['_schema']['isObject'](_0x12b87e['previousSibling'])?_0x12b87e['previousSibling']:null,_0x12b87e['isEmpty']||_0x56f944&&_0x56f944['isEmpty']){const _0x3afaa5=_0x56f944&&_0x56f944['isEmpty']?_0x56f944:_0x12b87e;_0x2aa56e&&_0x2aa56e['type']==_0x5564bc+'EmptyContainer'&&_0x2aa56e['element']['name']==_0x3afaa5['name']?_0x2aa56e['quantity']++:_0x5d1951['push']({'type':_0x5564bc+'EmptyContainer','element':_0x3afaa5,'quantity':0x1});}else _0x5d1951['push']({'type':_0x5564bc+'Container','element':_0x12b87e});}}}}}['_resolveDescriptionItems'](_0x41a636){const _0x1d6684=this['_locale'],_0x326874=[],_0x1faf43=[],_0x540834=[];for(const _0x4cbf0a of _0x41a636)switch(_0x4cbf0a['type']){case'text':if(_0x4cbf0a['add']=_0x4cbf0a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4cbf0a['remove']=_0x4cbf0a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4cbf0a['add']&&''!=_0x4cbf0a['remove']){_0x326874['push']({'type':'replace','content':o(_0x1d6684,'REPLACE_TEXT',['\x22'+_0x4cbf0a['remove']+'\x22','\x22'+_0x4cbf0a['add']+'\x22'])});continue;}if(null!=_0x4cbf0a['add']['match'](/^ +$/)){_0x326874['push']({'type':'insertion','content':o(_0x1d6684,'*Insert:*\x20%0',o(_0x1d6684,'ELEMENT_SPACE',_0x4cbf0a['add']['length']))});continue;}if(null!=_0x4cbf0a['remove']['match'](/^ +$/)){_0x326874['push']({'type':'deletion','content':o(_0x1d6684,'*Remove:*\x20%0',o(_0x1d6684,'ELEMENT_SPACE',_0x4cbf0a['remove']['length']))});continue;}if(''!=_0x4cbf0a['add']){_0x326874['push']({'type':'insertion','content':o(_0x1d6684,'*Insert:*\x20%0','\x22'+_0x4cbf0a['add']+'\x22')});continue;}_0x326874['push']({'type':'deletion','content':o(_0x1d6684,'*Remove:*\x20%0','\x22'+_0x4cbf0a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x326874['push']({'type':'insertion','content':o(_0x1d6684,'*Insert:*\x20%0',this['getItemLabel'](_0x4cbf0a['element'],_0x4cbf0a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x326874['push']({'type':'deletion','content':o(_0x1d6684,'*Remove:*\x20%0',this['getItemLabel'](_0x4cbf0a['element'],_0x4cbf0a['quantity']))});continue;case'addContainer':_0x326874['push']({'type':'insertion','content':o(_0x1d6684,'*Split:*\x20%0',this['getItemLabel'](_0x4cbf0a['element'],_0x4cbf0a['quantity']))});continue;case'removeContainer':_0x326874['push']({'type':'deletion','content':o(_0x1d6684,'*Merge:*\x20%0',this['getItemLabel'](_0x4cbf0a['element'],_0x4cbf0a['quantity']))});continue;case'addFormat':_0x1faf43['push'](_0x4cbf0a['key']);continue;case'removeFormat':_0x540834['push'](_0x4cbf0a['key']);continue;default:_0x326874['push'](_0x4cbf0a);}if(_0x1faf43['length']){const _0x22afb6=_0x1faf43['map'](_0x530912=>this['_attributeLabels']['has'](_0x530912)?this['_attributeLabels']['get'](_0x530912):_0x530912)['join'](',\x20');_0x326874['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x22afb6)});}if(_0x540834['length']){const _0x41ecf3=_0x540834['map'](_0x438b48=>this['_attributeLabels']['has'](_0x438b48)?this['_attributeLabels']['get'](_0x438b48):_0x438b48)['join'](',\x20');_0x326874['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x41ecf3)});}return _0x326874;}['_handleCustomCallbackDescription'](_0x4a85af){for(const _0x45eec6 of this['_customCallbacks']){const _0x4e4440=_0x45eec6(_0x4a85af);if(_0x4e4440&&'type'in _0x4e4440)return _0x4e4440;}}['_handleAttributeSuggestionDescription'](_0x32aa40,_0x5f5605){const _0x1b2adb=_0x5f5605['data'],_0x171b02=void 0x0===_0x1b2adb['newValue']?'removeFormat':'addFormat';_0x32aa40['push']({'type':_0x171b02,'key':_0x1b2adb['key']});}['_handleRenameSuggestionDescription'](_0x398a59,_0x395a6c){_0x398a59['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x395a6c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2d326,_0x9d9d81,_0x1d16ce){if(this['_addDescriptionItems'](_0x2d326,_0x9d9d81),_0x1d16ce&&_0x1d16ce['getFirstRange']()&&!_0x9d9d81['getFirstRange']()['end']['isEqual'](_0x1d16ce['getFirstRange']()['start'])){const _0x42f513=_0x2d326[_0x2d326['length']-0x1],_0x1e2326='insertion'==_0x9d9d81['type']?'add':'remove';_0x42f513&&'text'==_0x42f513['type']&&(_0x42f513[_0x1e2326]+='\x0a');}}}class E extends _0x3be5df{['afterInit'](){const _0xc2e67a=this['editor'],_0x465c0f=_0xc2e67a['plugins']['get']('TrackChangesEditing');_0xc2e67a['commands']['get']('showAIAssistant')&&_0x465c0f['enableCommand']('showAIAssistant');}}class V extends _0x3be5df{['afterInit'](){const _0x777a1c=this['editor'],_0x5a7eab=_0x777a1c['locale'];if(!_0x777a1c['plugins']['has']('AlignmentEditing'))return;const _0x223a0d=_0x777a1c['plugins']['get']('TrackChangesEditing');_0x223a0d['enableDefaultAttributesIntegration']('alignment'),_0x223a0d['registerBlockAttribute']('alignment'),_0x223a0d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5a7eab,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a2ce7=this['editor'],_0x12a66e=_0x2a2ce7['locale'];_0x2a2ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b9cc=>{if('formatBlock'!=_0x42b9cc['type'])return;const {data:_0x409131}=_0x42b9cc;if(_0x409131&&'alignment'==_0x409131['commandName']){const _0xee2c56=_0x409131['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x12a66e,'*Format:*\x20%0',function(_0x6e4f48){switch(_0x6e4f48){case'left':return o(_0x12a66e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x12a66e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x12a66e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x12a66e,'FORMAT_JUSTIFY_TEXT');}}(_0xee2c56))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x3be5df{['afterInit'](){const _0x1fdd8e=this['editor'],_0x35c4c5=_0x1fdd8e['plugins']['get']('TrackChangesEditing'),_0x1f8f73=_0x1fdd8e['locale'];for(const _0x79f992 of ti){if(!_0x1fdd8e['plugins']['has'](_0x79f992))continue;const _0x3dfc07=_0x79f992['slice'](0x0,-0x7)['toLowerCase'](),_0x179c79='FORMAT_'+_0x3dfc07['toUpperCase']();_0x35c4c5['enableDefaultAttributesIntegration'](_0x3dfc07),_0x35c4c5['registerInlineAttribute'](_0x3dfc07),_0x35c4c5['descriptionFactory']['registerAttributeLabel'](_0x3dfc07,o(_0x1f8f73,_0x179c79));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47cf5b=this['editor'],_0x151058=_0x47cf5b['locale'],_0x37c82d=_0x47cf5b['plugins']['get']('TrackChangesEditing');function _0x3d23db(_0x478c87,_0x2f5dba){_0x37c82d['descriptionFactory']['registerDescriptionCallback'](_0x16c75f=>{if('formatInline'!=_0x16c75f['type'])return;const {data:_0x45cf62}=_0x16c75f;return _0x45cf62&&_0x45cf62['commandName']===_0x478c87?_0x45cf62['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x151058,'*Format:*\x20%0',_0x2f5dba)}:{'type':'format','content':o(_0x151058,'*Remove\x20format:*\x20%0',_0x2f5dba)}:void 0x0;});}_0x3d23db('bold',o(_0x151058,'FORMAT_BOLD')),_0x3d23db('italic',o(_0x151058,'FORMAT_ITALIC')),_0x3d23db('underline',o(_0x151058,'FORMAT_UNDERLINE')),_0x3d23db('code',o(_0x151058,'FORMAT_CODE')),_0x3d23db('strikethrough',o(_0x151058,'FORMAT_STRIKETHROUGH')),_0x3d23db('subscript',o(_0x151058,'FORMAT_SUBSCRIPT')),_0x3d23db('superscript',o(_0x151058,'FORMAT_SUPERSCRIPT'));}}class O extends _0x3be5df{['afterInit'](){const _0x172539=this['editor'],_0x461577=_0x172539['locale'];if(!_0x172539['plugins']['has']('BlockQuoteEditing'))return;const _0x2105c3=_0x172539['plugins']['get']('TrackChangesEditing'),_0x418289=this['editor']['commands']['get']('blockQuote');_0x2105c3['enableCommand']('blockQuote',(_0xad5f8c,_0x25b7ea={})=>{const _0x2f1d98=this['editor']['model']['document']['selection'],_0x54b0dd=_0x25b7ea&&void 0x0!==_0x25b7ea['forceValue']?_0x25b7ea['forceValue']:!_0x418289['value'];let _0x5aea69=[];if(_0x54b0dd){const _0x90e82=Array['from'](_0x2f1d98['getSelectedBlocks']())['filter'](_0xc68e2a=>oo(_0xc68e2a)||function(_0x135aec,_0x51930a){const _0x35a2d3=_0x51930a['checkChild'](_0x135aec['parent'],'blockQuote'),_0xdf8e23=_0x51930a['checkChild'](['$root','blockQuote'],_0x135aec);return _0x35a2d3&&_0xdf8e23;}(_0xc68e2a,this['editor']['model']['schema']));_0x5aea69=to(_0x90e82,_0x172539['model']);}else{const _0x49359c=Array['from'](_0x2f1d98['getSelectedBlocks']())['filter'](_0x35adc6=>oo(_0x35adc6));_0x5aea69=to(_0x49359c,_0x172539['model']);}_0x172539['model']['change'](()=>{for(const _0x1e4e52 of _0x5aea69)_0x2105c3['markBlockFormat'](_0x1e4e52,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x54b0dd}]});});}),_0x2105c3['descriptionFactory']['registerDescriptionCallback'](_0x4bc55c=>{const {data:_0x1f0cb5}=_0x4bc55c;if(_0x1f0cb5&&'blockQuote'==_0x1f0cb5['commandName']){const _0x4628c2=o(_0x461577,'ELEMENT_BLOCK_QUOTE');return _0x1f0cb5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x461577,'*Set\x20format:*\x20%0',_0x4628c2)}:{'type':'format','content':o(_0x461577,'*Remove\x20format:*\x20%0',_0x4628c2)};}});}}function oo(_0x42e51d){return'blockQuote'==_0x42e51d['parent']['name'];}class F extends _0x3be5df{['afterInit'](){const _0x51cfe5=this['editor'];_0x51cfe5['plugins']['has']('CaseChange')&&(_0x51cfe5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51cfe5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51cfe5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x3be5df{['afterInit'](){const _0x529c7c=this['editor'];_0x529c7c['commands']['get']('ckbox')&&_0x529c7c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3be5df{['afterInit'](){const _0x2be4fd=this['editor'];if(!_0x2be4fd['plugins']['has']('CodeBlock'))return;const _0x2fab25=_0x2be4fd['plugins']['get']('TrackChangesEditing'),_0x4acdf3=_0x2be4fd['locale'],_0x11f16f=_0x2be4fd['config']['get']('codeBlock')['languages'],_0x1c3095=_0x2be4fd['commands']['get']('codeBlock');_0x2fab25['enableCommand']('indentCodeBlock'),_0x2fab25['enableCommand']('outdentCodeBlock'),_0x2fab25['enableCommand']('codeBlock',(_0x59a9aa,_0x4bbe14={})=>{const _0x4b21a0=_0x2be4fd['model'],_0x2d02d2=_0x2be4fd['model']['document']['selection'],_0x180f20=_0x4bbe14&&void 0x0!==_0x4bbe14['forceValue']?_0x4bbe14['forceValue']:!_0x1c3095['value'];let _0x192f46;_0x4bbe14['language']||(_0x4bbe14['language']=_0x11f16f[0x0]['language']),_0x192f46=_0x180f20?Array['from'](_0x2d02d2['getSelectedBlocks']())['filter'](_0x5941e8=>eo(_0x5941e8)||function(_0xd7a685,_0x381387){if(_0xd7a685['is']('rootElement')||_0x381387['isLimit'](_0xd7a685))return!0x1;return _0x381387['checkChild'](_0xd7a685['parent'],'codeBlock');}(_0x5941e8,_0x4b21a0['schema'])):Array['from'](_0x2d02d2['getSelectedBlocks']())['filter'](_0x4e8b3d=>eo(_0x4e8b3d));const _0x1e8d21=to(_0x192f46,_0x4b21a0);_0x4b21a0['change'](()=>{for(const _0x5228e8 of _0x1e8d21)_0x2fab25['markBlockFormat'](_0x5228e8,{'commandName':'codeBlock','commandParams':[{..._0x4bbe14,'forceValue':_0x180f20}],'formatGroupId':'blockName'});});}),(_0x2fab25['descriptionFactory']['registerElementLabel']('codeBlock',_0x4637ff=>o(_0x4acdf3,'ELEMENT_CODE_BLOCK',_0x4637ff)),_0x2fab25['descriptionFactory']['registerDescriptionCallback'](_0x412c70=>{if('formatBlock'!=_0x412c70['type'])return;const _0x3ae8ae=_0x4acdf3['t'],{data:_0x25131d}=_0x412c70;if(!_0x25131d||'codeBlock'!=_0x25131d['commandName'])return;const _0x5b1653=_0x25131d['commandParams'][0x0]['language'],_0x5ca258=_0x3ae8ae(_0x11f16f['find'](_0xed360a=>_0xed360a['language']===_0x5b1653)['label'])['toLowerCase']();return _0x25131d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4acdf3,'*Set\x20format:*\x20%0',o(_0x4acdf3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ca258+')')}:{'type':'format','content':o(_0x4acdf3,'*Remove\x20format:*\x20%0',o(_0x4acdf3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5eae46){return'codeBlock'==_0x5eae46['name'];}class H extends _0x3be5df{['afterInit'](){const _0x92a24a=this['editor'];if(!_0x92a24a['plugins']['has']('CommentsEditing'))return;_0x92a24a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x20727a,_0x497f7f,_0x4066b5){const _0x536443=[];for(const _0x5f3ddc of _0x497f7f['getItems']())_0x5f3ddc['hasAttribute'](_0x20727a)&&_0x536443['push'](_0x4066b5['createRangeOn'](_0x5f3ddc));return _0x536443;}function _e(_0x27f765,_0x2c79f5,{showActiveMarker:_0x42cc16=!0x0}={}){const _0x32ac51=_0x27f765['plugins']['get']('TrackChangesEditing');return(_0xc6ae71,_0xd4604d,_0x3e7d3a)=>{if(!_0x3e7d3a['consumable']['test'](_0xd4604d['markerRange'],_0xc6ae71['name']))return;const _0x3c9247=_0xd4604d['markerRange']['getWalker'](),_0xb0e897=_0xd4604d['markerRange']['start'],_0x13ea0e=_0x27f765['model']['schema'];let _0x4f84db=null,_0xbf3853=null,_0xe6336a=!0x1,_0x5cd248=!0x1;for(const _0x2eb00b of _0x3c9247){const _0x496c33=_0x2eb00b['item'];_0xe6336a=_0xe6336a||_0x13ea0e['isContent'](_0x496c33);const _0x5bc996=_0x3e7d3a['mapper']['toViewElement'](_0x496c33);if(_0x5bc996&&_0x5bc996['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2eb00b['type']&&(_0x13ea0e['isBlock'](_0x496c33)&&!_0x13ea0e['isLimit'](_0x496c33)&&(_0x496c33['nextSibling']||_0xb0e897['isAtEnd']?_0x4f84db&&_0x4f84db['parent']==_0x496c33||(_0x4f84db=_0x496c33,_0x36cf38(_0x2eb00b['previousPosition']),_0x5cd248=!0x0):_0xbf3853=_0xbf3853||_0x2eb00b['previousPosition']));}function _0x36cf38(_0x1805f4){const _0x23f50f=_0x3e7d3a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c79f5}),_0x25ce0f=_0x3e7d3a['mapper']['toViewPosition'](_0x1805f4);_0x42cc16&&_0x32ac51['activeMarkers']['includes'](_0xd4604d['markerName'])&&_0x3e7d3a['writer']['addClass']('ck-suggestion-marker--active',_0x23f50f),_0x3e7d3a['writer']['insert'](_0x25ce0f,_0x23f50f),_0x3e7d3a['mapper']['bindElementToMarker'](_0x23f50f,_0xd4604d['markerName']);}_0xe6336a||_0x5cd248||!_0xbf3853||_0x36cf38(_0xbf3853);};}class q extends _0x3be5df{static get['requires'](){return[_0x59be5b];}['init'](){const _0xb65329=this['editor'],_0x3ca166=_0xb65329['plugins']['get']('TrackChangesEditing');_0x3ca166['enableCommand']('delete');const _0x4c3e1b=_0xb65329['commands']['get']('deleteForward');_0x3ca166['enableCommand']('deleteForward',(_0x312f8a,_0x280ece={})=>{const _0x58d7a5=_0xb65329['model']['createSelection'](_0xb65329['model']['document']['selection']);_0x58d7a5['isCollapsed']&&_0xb65329['model']['modifySelection'](_0x58d7a5,{'direction':'forward','unit':_0x280ece['unit']});const _0x38af30=_0x58d7a5['getFirstRange'](),_0x3a9471=_0x2ded21['fromRange'](_0x38af30);let _0x1861d8;_0x312f8a(_0x280ece),_0x1861d8='$graveyard'==_0x3a9471['root']['rootName']?_0xb65329['model']['createRange'](_0x38af30['start']):_0xb65329['model']['createRange'](_0x3a9471['start'],_0x3a9471['end']),_0x3a9471['detach'](),_0xb65329['model']['enqueueChange'](_0x4c3e1b['buffer']['batch'],_0x2f2158=>{_0x4c3e1b['buffer']['lock'](),_0x2f2158['setSelection'](_0x2f2158['createRange'](_0x1861d8['end'])),_0x4c3e1b['buffer']['unlock']();});}),_0xb65329['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xb65329,'merge'),{'priority':'high'}),_0xb65329['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5d2ff1,_0x356023,_0x3fb7bd)=>{_0x3fb7bd['options']['showSuggestionHighlights']&&_e(_0xb65329,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5d2ff1,_0x356023,_0x3fb7bd);},{'priority':'high'}),_0xb65329['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x17c2b0,_0x3e2ed2,_0x3cae5e)=>{const _0x389395=_0x3cae5e['mapper']['markerNameToElements'](_0x3e2ed2['markerName']);if(_0x389395){for(const _0x5bcff1 of _0x389395)_0x5bcff1['is']('uiElement')&&(_0x3cae5e['mapper']['unbindElementFromMarkerName'](_0x5bcff1,_0x3e2ed2['markerName']),_0x3cae5e['writer']['remove'](_0x5bcff1));}},{'priority':'high'});}}class z extends _0x3be5df{['afterInit'](){const _0x5ae1a0=this['editor'];if(!_0x5ae1a0['plugins']['has']('ListEditing'))return;const _0x53a92d=_0x5ae1a0['locale'],_0x133a00=_0x5ae1a0['plugins']['get']('TrackChangesEditing'),_0x4a9f9f=_0x5ae1a0['plugins']['has']('TodoListEditing'),_0x37e6c2=!!_0x5ae1a0['config']['get']('list.multiBlock');function _0x624b11(_0x5b4db0){return{'type':'format','content':''+o(_0x53a92d,'*Set\x20format:*\x20%0',_0x5b4db0)};}function _0x59286d(_0x326c40){return{'type':'format','content':''+o(_0x53a92d,'*Remove\x20format:*\x20%0',_0x326c40)};}_0x133a00['enableDefaultAttributesIntegration']('numberedList'),_0x133a00['enableDefaultAttributesIntegration']('bulletedList'),_0x133a00['enableDefaultAttributesIntegration']('customNumberedList'),_0x133a00['enableDefaultAttributesIntegration']('customBulletedList'),_0x133a00['enableDefaultAttributesIntegration']('indentList'),_0x133a00['enableDefaultAttributesIntegration']('outdentList'),_0x133a00['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x133a00['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x133a00['registerBlockAttribute']('listItemId'),_0x133a00['registerBlockAttribute']('listType'),_0x133a00['registerBlockAttribute']('listIndent'),_0x37e6c2&&(_0x133a00['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x133a00['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4a9f9f&&(_0x133a00['enableDefaultAttributesIntegration']('todoList'),_0x133a00['enableDefaultAttributesIntegration']('checkTodoList'),_0x133a00['registerBlockAttribute']('todoListChecked'),_0x133a00['descriptionFactory']['registerDescriptionCallback'](_0x12d978=>{const {data:_0x565701}=_0x12d978;if(_0x565701&&'todoListChecked'==_0x565701['key'])return{'type':'format','content':_0x565701['newValue']?o(_0x53a92d,'*Check\x20item*'):o(_0x53a92d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2254e8=>{if(_0x2254e8['batch']['isUndo'])return!0x1;let _0xa3e079=!0x1;const _0x434871=_0x133a00['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x522b1d=>'todoListChecked'===_0x133a00['_getAttributeKey'](_0x522b1d));for(const _0x4d00e3 of _0x434871){'todo'!=_0x4d00e3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x133a00['_findSuggestions'](_0x4d00e3['getFirstRange'](),'attribute')['find'](_0x2c99ac=>'listType'===_0x133a00['_getAttributeKey'](_0x2c99ac['suggestion']))||(_0x2254e8['removeMarker'](_0x4d00e3['getFirstMarker']()),_0xa3e079=!0x0));}return _0xa3e079;})),_0x133a00['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x53a92d,'FORMAT_INDENT'));const _0x2512fe={'type':'format','content':''};_0x133a00['descriptionFactory']['registerDescriptionCallback'](_0x500bf3=>{const {data:_0x566396}=_0x500bf3;if(!_0x566396||'listType'!=_0x566396['key'])return;let _0xafed15=_0x500bf3['head'];for(;_0xafed15;){if(_0xafed15['data']&&(('listStyle'==_0xafed15['data']['key']||'listMarkerStyle'==_0xafed15['data']['key'])&&(_0xafed15['data']['newValue']&&'default'!=_0xafed15['data']['newValue']||'default'!=_0xafed15['data']['oldValue']&&!_0x566396['newValue'])||!_0x37e6c2&&_0xafed15['data']['key']==m))return _0x2512fe;_0xafed15=_0xafed15['next'];}if(null==_0x566396['newValue'])switch(_0x566396['oldValue']){case'bulleted':return _0x59286d(o(_0x53a92d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x59286d(o(_0x53a92d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x59286d(o(_0x53a92d,'ELEMENT_TODO_LIST'));}switch(_0x566396['newValue']){case'bulleted':return _0x624b11(o(_0x53a92d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x624b11(o(_0x53a92d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x624b11(o(_0x53a92d,'ELEMENT_TODO_LIST'));}}),_0x133a00['descriptionFactory']['registerDescriptionCallback'](_0x100807=>{const {data:_0x531f92}=_0x100807;if(_0x531f92&&'listIndent'==_0x531f92['key'])return null==_0x531f92['newValue']||null==_0x531f92['oldValue']&&0x0==_0x531f92['newValue']?_0x2512fe:void 0x0;}),_0x133a00['descriptionFactory']['registerDescriptionCallback'](_0x50ea68=>{if('attribute'!=_0x50ea68['type'])return;const {data:_0x5d92f3}=_0x50ea68;if(!_0x5d92f3||'listItemId'!=_0x5d92f3['key'])return;const _0x159861=le(_0x50ea68);return'newValue'==_0x159861?{'type':'format','content':o(_0x53a92d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x159861?{'type':'format','content':o(_0x53a92d,'*Split:*\x20list\x20item')}:_0x2512fe;}),_0x5ae1a0['model']['document']['registerPostFixer'](_0x478b1a=>this['listItemIdFixer'](_0x478b1a)),_0x5ae1a0['model']['document']['registerPostFixer'](_0x297d7d=>this['noTrackChangesFixer'](_0x297d7d)),_0x5ae1a0['model']['document']['registerPostFixer'](_0x1c0609=>this['assureChains'](_0x1c0609)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x13fc66){if(_0x13fc66['batch']['isUndo']||!_0x13fc66['batch']['isLocal'])return!0x1;let _0x48486d=!0x1;const _0x5617e5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a5157=>_0x1a5157['data']&&'listItemId'==_0x1a5157['data']['key'])['filter'](_0x559c05=>_0x559c05['data']['newValue']&&_0x559c05['data']['oldValue']);for(const _0x50e3bb of _0x5617e5)le(_0x50e3bb)||(_0x13fc66['removeMarker'](_0x50e3bb['getFirstMarker']()),_0x48486d=!0x0);return _0x48486d;}['noTrackChangesFixer'](_0x3db5fd){if(_0x3db5fd['batch']['isUndo']||!_0x3db5fd['batch']['isLocal'])return!0x1;const _0x3aa7b2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3aa7b2['trackChangesCommand']['value'])return!0x1;let _0x5b5153=!0x1;const _0x57569c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3dfd00=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3ce08c=>'attribute'==_0x3ce08c['type'])['filter'](_0x4c8389=>_0x57569c['includes'](_0x4c8389['attributeKey']));if(0x0==_0x3dfd00['length'])return _0x5b5153;for(const _0x7c480a of _0x3dfd00){const _0x493d20=_0x3aa7b2['_findSuggestions'](_0x7c480a['range'],'attribute')['filter'](_0x5ac776=>!_0x5ac776['meta']['isNextTo'])['map'](_0x5de001=>_0x5de001['suggestion'])['filter'](_0x3620c9=>{const _0x4ebe6b=_0x3aa7b2['_getAttributeKey'](_0x3620c9);return _0x57569c['includes'](_0x4ebe6b);});if(_0x493d20['length']){for(const _0x537b35 of _0x493d20)_0x3db5fd['removeMarker'](_0x537b35['getFirstMarker']());_0x5b5153=!0x0;}}return _0x5b5153;}['assureChains'](_0x2c51e3){if(_0x2c51e3['batch']['isUndo']||!_0x2c51e3['batch']['isLocal'])return!0x1;const _0x2c17c0=this['editor']['plugins']['get']('TrackChangesEditing');let _0x51aeaf=!0x1;const _0x2f61eb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x37de20 of _0x2c17c0['getSuggestions']({'skipNotAttached':!0x0})){const _0x232f52=_0x2c17c0['_findSuggestions'](_0x37de20['getFirstRange'](),'attribute')['map'](_0x26512b=>_0x26512b['suggestion'])['filter'](_0x3b261d=>_0x3b261d['data']&&_0x2f61eb['includes'](_0x3b261d['data']['key']));if(!_0x232f52['length'])continue;const _0x1fab4a=_0x232f52[0x0]['head']['attributes']['groupId'];if(!_0x232f52['every'](_0x14a4db=>_0x14a4db['attributes']['groupId']===_0x1fab4a)){for(const _0x1015eb of _0x232f52)_0x1308aa(_0x1015eb,_0x1fab4a)&&(_0x51aeaf=!0x0);}}return _0x51aeaf;function _0x31bbf1(_0x455d46,_0x281038){for(const _0x4ac73e of _0x2c17c0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c5fb1=>'attribute'==_0x3c5fb1['type']&&_0x3c5fb1['attributes']['groupId']==_0x455d46))_0x4ac73e['setAttribute']('groupId',_0x281038);}function _0x1308aa(_0x36a6a5,_0x5cc220){let _0x39d04f=_0x36a6a5['head'],_0x30b038=!0x1;for(;_0x39d04f;)_0x39d04f['attributes']['groupId']!=_0x5cc220&&(_0x31bbf1(_0x39d04f['attributes']['groupId'],_0x5cc220),_0x39d04f['setAttribute']('groupId',_0x5cc220),_0x30b038=!0x0),_0x39d04f=_0x39d04f['next'];return _0x30b038;}}['_supportLegacySuggestions'](){const _0x143b1c=this['editor'],_0x2ba425=_0x143b1c['locale'],_0x721deb=_0x143b1c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x721deb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2c388b,_0x54d424){const _0x35708e=[];for(let _0x9d8ad1 of _0x2c388b)_0x9d8ad1['start']['nodeAfter']===_0x9d8ad1['end']['parent']&&(_0x9d8ad1=_0x143b1c['model']['createRange'](_0x143b1c['model']['createPositionAt'](_0x9d8ad1['start']['nodeAfter'],0x0))),_0x35708e['push'](_0x9d8ad1);_0x143b1c['model']['change'](_0x4e0d3b=>{const _0x1a00eb=_0x143b1c['model']['document']['selection'],_0x464798=Array['from'](_0x1a00eb['getRanges']())['map'](_0x3988fc=>_0x2ded21['fromRange'](_0x3988fc));_0x4e0d3b['setSelection'](_0x35708e),_0x143b1c['commands']['get'](_0x54d424['commandName'])['refresh'](),_0x54d424['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x143b1c['execute'](_0x54d424['commandName'],..._0x54d424['commandParams']),_0x4e0d3b['setSelection'](_0x464798);for(const _0x2378a2 of _0x464798)_0x2378a2['detach']();});}),_0x721deb['descriptionFactory']['registerElementLabel'](function(_0x43f82d){const _0x30101d=!_0x143b1c['model']['schema']['isObject'](_0x43f82d),_0x587464=_0x43f82d['previousSibling'],_0x32bd11=_0x43f82d['nextSibling'],_0x14f1d1=_0x43f82d['getAttribute']('listItemId'),_0x524cbd=!_0x587464||_0x587464['getAttribute']('listItemId')!==_0x14f1d1,_0x486e22=!_0x32bd11||_0x32bd11['getAttribute']('listItemId')!==_0x14f1d1;return _0x30101d&&Boolean(_0x14f1d1)&&_0x524cbd&&_0x486e22;},_0x4144fc=>o(_0x2ba425,'ELEMENT_LIST_ITEM',_0x4144fc));}['_registerLegacyDescription'](){const _0x214ec7=this['editor'],_0x6f9c10=_0x214ec7['locale'];function _0x1fee59(_0x55f9b8){const _0x2d14cb=_0x214ec7['commands']['get']('bulletedList')['value'],_0x4e4703=_0x214ec7['commands']['get']('numberedList')['value'];return'numberedList'===_0x55f9b8?_0x2d14cb:_0x4e4703;}_0x214ec7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x583ec5){if('formatBlock'!=_0x583ec5['type'])return;const {data:_0x524eae}=_0x583ec5;if(!_0x524eae)return;let _0x2681fc,_0x10623d,_0x170012,_0xd0d9cd;switch(_0x524eae['commandName']){case'bulletedList':_0x170012=_0x524eae['commandParams'][0x0]['forceValue'],_0xd0d9cd=_0x1fee59(_0x524eae['commandName']),_0x2681fc=_0x170012?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd0d9cd&&_0x214ec7['config']['get']('list.multiBlock')||(_0x2681fc='*Change\x20to:*\x20%0'),_0x10623d={'type':'format','content':o(_0x6f9c10,_0x2681fc,o(_0x6f9c10,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x170012=_0x524eae['commandParams'][0x0]['forceValue'],_0xd0d9cd=_0x1fee59(_0x524eae['commandName']),_0x2681fc=_0x170012?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd0d9cd&&_0x214ec7['config']['get']('list.multiBlock')||(_0x2681fc='*Change\x20to:*\x20%0'),_0x10623d={'type':'format','content':o(_0x6f9c10,_0x2681fc,o(_0x6f9c10,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2681fc='*Indent:*\x20%0',_0x10623d={'type':'format','content':o(_0x6f9c10,_0x2681fc,o(_0x6f9c10,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2681fc=function(_0x34cc54){const _0x2b676a=_0x34cc54['getFirstRange']();let _0x42f902=_0x2b676a['start']['nodeAfter'];for(;_0x42f902&&_0x2b676a['containsItem'](_0x42f902);){if(_0x42f902['getAttribute']('listIndent')>0x0)return!0x1;_0x42f902=_0x42f902['nextSibling'];}return!0x0;}(_0x583ec5)?o(_0x6f9c10,'*Format:*\x20remove\x20from\x20%0',o(_0x6f9c10,function(_0x55a060){return'ELEMENT_'+_0x55a060['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x583ec5))):o(_0x6f9c10,'*Outdent:*\x20%0',o(_0x6f9c10,'ELEMENT_LIST_ITEM')),_0x10623d={'type':'format','content':_0x2681fc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x524eae['multipleBlocks']&&(_0x2681fc='*Merge:*\x20%0',_0x10623d={'type':'deletion','content':o(_0x6f9c10,_0x2681fc,o(_0x6f9c10,'ELEMENT_LIST_ITEM'))});}return _0x10623d;});}}function le(_0x518782){let _0x1792b6=_0x518782['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1792b6;){const _0x24c6eb=_0x1792b6['getAttribute']('listItemId');if(!_0x24c6eb)return!0x1;if(_0x24c6eb==_0x518782['data']['newValue'])return'newValue';if(_0x24c6eb==_0x518782['data']['oldValue'])return'oldValue';_0x1792b6=_0x1792b6['previousSibling'];}return!0x1;}class ue extends _0x3be5df{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x136f22=this['editor']['config']['get']('list.properties'),_0xf5c06e=this['editor']['plugins']['get']('TrackChangesEditing');_0x136f22['styles']&&(_0xf5c06e['enableDefaultAttributesIntegration']('listStyle'),_0xf5c06e['registerBlockAttribute']('listStyle')),_0x136f22['reversed']&&(_0xf5c06e['enableDefaultAttributesIntegration']('listReversed'),_0xf5c06e['registerBlockAttribute']('listReversed')),_0x136f22['startIndex']&&(_0xf5c06e['enableDefaultAttributesIntegration']('listStart'),_0xf5c06e['registerBlockAttribute']('listStart'));const _0x3bf1f={'type':'format','content':''};_0xf5c06e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x289bcd=this['editor']['locale'];_0xf5c06e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x289bcd,'FORMAT_LIST_REVERSED')),_0xf5c06e['descriptionFactory']['registerDescriptionCallback'](_0x3b52ba=>{const {data:_0x27b518}=_0x3b52ba;if(_0x27b518&&'listReversed'==_0x27b518['key'])return null==_0x27b518['newValue']||0x0==_0x27b518['newValue']&&null==_0x27b518['oldValue']?_0x3bf1f:void 0x0;}),_0xf5c06e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x289bcd,'FORMAT_LIST_START')),_0xf5c06e['descriptionFactory']['registerDescriptionCallback'](_0x5c88c8=>{const {data:_0x32222b}=_0x5c88c8;if(_0x32222b&&'listStart'==_0x32222b['key'])return null==_0x32222b['newValue']||0x1==_0x32222b['newValue']&&null==_0x32222b['oldValue']?_0x3bf1f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x382146=>{if(_0x382146['batch']['isUndo'])return!0x1;let _0x239590=!0x1;const _0x4fadcd=_0xf5c06e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e519c=>{const _0xf7823f=_0xf5c06e['_getAttributeKey'](_0x4e519c);return'listStart'==_0xf7823f||'listReversed'==_0xf7823f;});for(const _0x376622 of _0x4fadcd){const _0x633e55=_0x376622['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x633e55||'customNumbered'==_0x633e55)continue;_0xf5c06e['_findSuggestions'](_0x376622['getFirstRange'](),'attribute')['find'](_0x183926=>'listType'==_0xf5c06e['_getAttributeKey'](_0x183926['suggestion']))||(_0x382146['removeMarker'](_0x376622['getFirstMarker']()),_0x239590=!0x0);}return _0x239590;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2fac53){const _0x5b28f9=this['editor']['locale'],{data:_0x2baeeb}=_0x2fac53,_0x507c4c={'type':'format','content':''};if(!_0x2baeeb||'listStyle'!=_0x2baeeb['key'])return;if(!_0x2baeeb['oldValue'])return'default'==_0x2baeeb['newValue']?_0x507c4c:{'type':'format','content':''+o(_0x5b28f9,'*Set\x20format:*\x20%0',o(_0x5b28f9,this['_getTranslationKeyForListStyle'](_0x2baeeb['newValue'])))};if(!_0x2baeeb['newValue']){if('default'==_0x2baeeb['oldValue'])return _0x507c4c;let _0x6c2e30=_0x2fac53['head'];for(;_0x6c2e30;){if(_0x6c2e30['data']&&'listType'==_0x6c2e30['data']['key']&&_0x6c2e30['data']['newValue'])return _0x507c4c;_0x6c2e30=_0x6c2e30['next'];}return{'type':'format','content':''+o(_0x5b28f9,'*Remove\x20format:*\x20%0',o(_0x5b28f9,this['_getTranslationKeyForListStyle'](_0x2baeeb['oldValue'])))};}if('default'!=_0x2baeeb['newValue'])return{'type':'format','content':''+o(_0x5b28f9,'*Set\x20format:*\x20%0',o(_0x5b28f9,this['_getTranslationKeyForListStyle'](_0x2baeeb['newValue'])))};let _0xa1dbfd=_0x2fac53['head'];for(;_0xa1dbfd;){if(_0xa1dbfd['data']&&'listType'==_0xa1dbfd['data']['key']&&_0xa1dbfd['data']['newValue']&&_0xa1dbfd['data']['oldValue'])return _0x507c4c;_0xa1dbfd=_0xa1dbfd['next'];}return{'type':'format','content':o(_0x5b28f9,'*Set\x20format:*\x20%0',o(_0x5b28f9,'ELEMENT_'+_0x2fac53['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4d31f7=this['editor'],_0x4e5b1c=_0x4d31f7['locale'];_0x4d31f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16f2fe=>{if('formatBlock'!=_0x16f2fe['type'])return;const {data:_0x366940}=_0x16f2fe;if(!_0x366940)return;let _0x4a4062,_0x205791;switch(_0x366940['commandName']){case'listStyle':_0x4a4062='*Change\x20to:*\x20%0',_0x205791={'type':'format','content':o(_0x4e5b1c,_0x4a4062,o(_0x4e5b1c,this['_getTranslationKeyForListStyle'](_0x366940['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4a4062=_0x366940['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x205791={'type':'format','content':o(_0x4e5b1c,_0x4a4062)};break;case'listStart':_0x4a4062='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x205791={'type':'format','content':o(_0x4e5b1c,_0x4a4062,_0x366940['commandParams'][0x0]['startIndex'])};}return _0x205791;});}['_getTranslationKeyForListStyle'](_0x50b5e9){return'ELEMENT_'+function(_0xcd5ed2){if(pe['includes'](_0xcd5ed2))return'bulleted';if(ye['includes'](_0xcd5ed2))return'numbered';return null;}(_0x50b5e9)['toUpperCase']()+'_LIST_'+_0x50b5e9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x3be5df{static get['requires'](){return[_0x129566];}['init'](){const _0x1bf081=this['editor'],_0x47d07b=_0x1bf081['plugins']['get']('TrackChangesEditing'),_0x44099f=_0x1bf081['commands']['get']('enter');_0x47d07b['enableCommand']('enter',()=>{_0x1bf081['model']['change'](_0x270336=>{const _0x36c6ea=_0x1bf081['model']['document']['selection'],_0x1ecbb4=_0x36c6ea['getFirstPosition'](),_0x9d5a7a=_0x2ded21['fromRange'](_0x36c6ea['getFirstRange']());if(_0x44099f['enterBlock'](_0x270336)){const _0x430164=_0x1bf081['model']['createPositionAt'](_0x1ecbb4['parent']['nextSibling'],0x0),_0x2edca2=_0x270336['createRange'](_0x1ecbb4,_0x430164);_0x47d07b['markInsertion'](_0x2edca2);}else _0x270336['setSelection'](_0x270336['createRange'](_0x9d5a7a['end']));_0x9d5a7a['detach'](),_0x44099f['fire']('afterExecute',{'writer':_0x270336});});}),_0x1bf081['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1bf081,'split'),{'priority':'high'}),_0x1bf081['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5b7290,_0x343fa1,_0x19be06)=>{const _0x57a55c=_0x19be06['mapper']['markerNameToElements'](_0x343fa1['markerName']);if(_0x57a55c){for(const _0x59c805 of _0x57a55c)_0x59c805['hasClass']('ck-suggestion-marker-split')&&(_0x19be06['mapper']['unbindElementFromMarkerName'](_0x59c805,_0x343fa1['markerName']),_0x19be06['writer']['remove'](_0x59c805));}},{'priority':'high'}),_0x1bf081['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3cd99f,_0x35c4b9,_0x11ed70)=>{_0x11ed70['options']['showSuggestionHighlights']&&_e(_0x1bf081,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3cd99f,_0x35c4b9,_0x11ed70);},{'priority':'high'});}}class J extends _0x3be5df{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x526e17=this['editor']['plugins']['get']('TrackChangesEditing');_0x526e17['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x526e17['enableCommand']('findNext'),_0x526e17['enableCommand']('findPrevious'),_0x526e17['enableCommand']('replace'),_0x526e17['enableCommand']('replaceAll');}['handleFindCommand'](_0x2e34fb,_0x5d42b6,_0x3b5ea4={}){const _0x28cb40=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2e34fb(_0xaca49a=>('string'==typeof _0x5d42b6?_0x28cb40['findByTextCallback'](_0x5d42b6,_0x3b5ea4):_0x5d42b6)(_0xaca49a)['filter'](_0x24aab6=>!0x1===this['_isInDeletionRange'](_0x24aab6,_0xaca49a['item'])),_0x3b5ea4);}['_isInDeletionRange'](_0x40b388,_0x399263){const _0x215b1c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x399263,_0x40b388['start']),this['editor']['model']['createPositionAt'](_0x399263,_0x40b388['end']));for(const _0x2180b3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x215b1c['getIntersection'](_0x2180b3['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 _0x3be5df{['afterInit'](){const _0x20659a=this['editor']['locale'],_0x27f060=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e4f05,commandName:_0x469e66}of ro)this['editor']['plugins']['has'](_0x1e4f05)&&(_0x27f060['enableDefaultAttributesIntegration'](_0x469e66),_0x27f060['registerInlineAttribute'](_0x469e66));_0x20659a['t'],_0x27f060['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x20659a,'FORMAT_FONT_SIZE')),_0x27f060['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x20659a,'FORMAT_FONT_FAMILY')),_0x27f060['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x20659a,'FORMAT_FONT_COLOR')),_0x27f060['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x20659a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e25ac=this['editor'],_0x5c9807=_0x5e25ac['locale'];_0x5e25ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d82ad=>{const _0x47342c=_0x5c9807['t'];if('formatInline'!=_0x1d82ad['type'])return;const {data:_0x305ebd}=_0x1d82ad;if(null!=_0x305ebd){if('fontSize'==_0x305ebd['commandName']){const _0x442377=_0x305ebd['commandParams'][0x0]['value'];if(_0x442377){const _0x785ba5=_0x47342c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x447165=>_0x447165['model']==_0x442377)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c9807,'*Set\x20font\x20size:*\x20%0',_0x785ba5)};}return{'type':'format','content':o(_0x5c9807,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x305ebd['commandName']){const _0x528cfb=_0x305ebd['commandParams'][0x0]['value'];return _0x528cfb?{'type':'format','content':o(_0x5c9807,'*Set\x20font\x20family:*\x20%0',_0x528cfb)}:{'type':'format','content':o(_0x5c9807,'*Reset\x20font\x20family*')};}if('fontColor'==_0x305ebd['commandName']){const _0x594e86=_0x305ebd['commandParams'][0x0]['value'];if(_0x594e86){const _0x3275b5=_0x35f8c4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x55dbbe=>_0x55dbbe['model']==_0x594e86);let _0x3b4b29=_0x594e86,_0xa626a5='';return _0x3275b5&&(_0x3b4b29=_0x3275b5['label'],_0xa626a5=_0x47342c(_0x3b4b29)['toLowerCase']()),{'type':'format','content':o(_0x5c9807,'*Set\x20font\x20color:*\x20%0',_0xa626a5)['trim'](),'color':{'value':_0x594e86,'title':_0xa626a5||_0x3b4b29}};}return{'type':'format','content':o(_0x5c9807,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x305ebd['commandName']){const _0x41941a=_0x305ebd['commandParams'][0x0]['value'];if(_0x41941a){const _0x281dbf=_0x35f8c4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2e1bee=>_0x2e1bee['model']==_0x41941a);let _0x1f536a=_0x41941a,_0x10c7b3='';return _0x281dbf&&(_0x1f536a=_0x281dbf['label'],_0x10c7b3=_0x47342c(_0x1f536a)['toLowerCase']()),{'type':'format','content':o(_0x5c9807,'*Set\x20font\x20background\x20color:*\x20%0',_0x10c7b3)['trim'](),'color':{'value':_0x41941a,'title':_0x10c7b3||_0x1f536a}};}return{'type':'format','content':o(_0x5c9807,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x3be5df{['afterInit'](){const _0x168bfc=this['editor'],_0x5e2133=_0x168bfc['plugins']['get']('TrackChangesEditing'),_0xec1efc=_0x168bfc['commands']['get']('copyFormat'),_0x134fc3=_0x168bfc['commands']['get']('pasteFormat');_0xec1efc&&_0x134fc3&&(_0x5e2133['enableDefaultAttributesIntegration']('pasteFormat'),_0x5e2133['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f31c9=this['editor'],_0x38daa1=_0x3f31c9['locale'];_0x3f31c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22d893=>{if('formatBlock'!=_0x22d893['type']&&'formatInline'!=_0x22d893['type'])return;const {data:_0xd9951c}=_0x22d893;if(_0xd9951c&&'pasteFormat'===_0xd9951c['commandName']){const _0x2cfc8a=[],_0x5ddb62=_0xd9951c['commandParams'][0x0];for(const [_0x59dfbb,_0x20be72]of Object['entries'](_0x5ddb62))_0x2cfc8a['push'](so(_0x3f31c9,_0x59dfbb,_0x20be72));return _0x2cfc8a['length']?{'type':'format','content':o(_0x38daa1,'*Set\x20format\x20to:*\x20%0',_0x2cfc8a['join'](',\x20'))}:{'type':'format','content':o(_0x38daa1,'*Remove\x20all\x20formatting*')};}});}}function so(_0x457ea5,_0x5b8c2e,_0x8608e0){const _0x182236=_0x457ea5['locale']['t'],_0x58a643=_0x5b8c2e['split'](/(?=[A-Z])/)['join']('\x20'),_0x28e887=_0x182236(_0x58a643['charAt'](0x0)['toUpperCase']()+_0x58a643['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x8608e0)return _0x28e887;if('fontColor'===_0x5b8c2e||'fontBackgroundColor'===_0x5b8c2e){const _0x23331e=_0x35f8c4(_0x457ea5['config']['get']('fontColor.colors'))['find'](_0x10ad05=>_0x10ad05['model']==_0x8608e0);return _0x28e887+'\x20('+(_0x23331e?_0x182236(_0x23331e['label'])['toLowerCase']():_0x8608e0)+')';}if('fontSize'===_0x5b8c2e&&isNaN(parseFloat(_0x8608e0))){const _0x367306=_0x457ea5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x457ea5['config']['get']('fontSize.options'))['find'](_0x573fd9=>_0x573fd9['model']==_0x8608e0);return _0x28e887+'\x20('+(_0x367306?_0x182236(_0x367306['title'])['toLowerCase']():_0x8608e0)+')';}return _0x28e887+'\x20('+_0x8608e0+')';}class Y extends _0x3be5df{['_headingOptions'];['afterInit'](){const _0x18e838=this['editor'];if(!_0x18e838['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x18e838['config']['get']('heading.options');const _0x2d8c75=_0x18e838['locale'],_0x2fcf4c=_0x18e838['plugins']['get']('TrackChangesEditing');_0x2fcf4c['enableDefaultAttributesIntegration']('heading');for(const _0x2e1831 of this['_headingOptions'])'paragraph'!=_0x2e1831['model']&&_0x2fcf4c['descriptionFactory']['registerElementLabel'](_0x2e1831['model'],_0x3edce5=>{const _0x5cf99f=this['_getHeadingLevel'](_0x2e1831['model']);return null!==_0x5cf99f?_0x58e6c0(_0x3edce5,_0x5cf99f):_0x41229c(_0x3edce5,_0x2e1831['title']);});function _0x58e6c0(_0x57c107,_0x2c6f2a){return o(_0x2d8c75,'ELEMENT_HEADING',[_0x57c107,_0x2c6f2a]);}function _0x41229c(_0x2764f2,_0x323d04){return o(_0x2d8c75,'ELEMENT_HEADING_CUSTOM',[_0x2764f2,_0x323d04]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x387852=this['editor'],_0x13ba86=_0x387852['locale'];function _0x4b5f61(_0x5467a5,_0x1a3714){return o(_0x13ba86,'ELEMENT_HEADING_CUSTOM',[_0x5467a5,_0x1a3714]);}_0x387852['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd69f=>{if('formatBlock'!=_0x2bd69f['type'])return;const {data:_0x5a8edf}=_0x2bd69f;if(_0x5a8edf&&'heading'==_0x5a8edf['commandName']){const _0x1ef2ca=_0x5a8edf['commandParams'][0x0]['value'],_0x2a1fb6=this['_getHeadingLevel'](_0x1ef2ca);if(null!==_0x2a1fb6)return{'type':'format','content':o(_0x13ba86,'*Change\x20to:*\x20%0',(_0x530ced=0x1,_0x3fa402=_0x2a1fb6,o(_0x13ba86,'ELEMENT_HEADING',[_0x530ced,_0x3fa402])))};const _0x25bae2=this['_headingOptions']['find'](_0x157f5a=>_0x157f5a['model']===_0x1ef2ca)['title'];return{'type':'format','content':o(_0x13ba86,'*Change\x20to:*\x20%0',_0x4b5f61(0x1,_0x25bae2))};}var _0x530ced,_0x3fa402;});}['_getHeadingLevel'](_0x4a2089){const _0x4a1563=_0x4a2089['match'](/^heading(\d+)/);if(_0x4a1563)return _0x4a1563[0x1];const _0x2eeeef=this['_headingOptions']?.['find'](_0x5b9a18=>_0x5b9a18['model']==_0x4a2089);if(_0x2eeeef&&_0x2eeeef['view']){const _0x5b97e5=_0x2eeeef['view'],_0x5b89d4=(_0x5b97e5['name']??_0x5b97e5)['match'](/^h(\d+)/);if(_0x5b89d4)return _0x5b89d4[0x1];}return null;}}class Z extends _0x3be5df{['afterInit'](){const _0x3d5880=this['editor'];if(!_0x3d5880['plugins']['has']('HighlightEditing'))return;const _0x47fc6f=_0x3d5880['plugins']['get']('TrackChangesEditing'),_0x205e90=_0x3d5880['locale'];_0x47fc6f['enableDefaultAttributesIntegration']('highlight'),_0x47fc6f['registerInlineAttribute']('highlight'),_0x47fc6f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x205e90,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5611e9=this['editor'],_0x3565b3=_0x5611e9['locale'];_0x5611e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51dd51=>{if('formatInline'!=_0x51dd51['type'])return;const {data:_0x545c3e}=_0x51dd51;if(_0x545c3e&&'highlight'==_0x545c3e['commandName']){const _0x2496a5=_0x3565b3['t'],_0x8ed4ab=_0x545c3e['commandParams'][0x0]['value'];if(_0x8ed4ab){const _0x1f6c66=_0x5611e9['config']['get']('highlight.options')['find'](_0x2166a7=>_0x2166a7['model']==_0x8ed4ab),_0x4c1d73=_0x2496a5(_0x1f6c66['title'])['toLowerCase']();return{'type':'format','content':o(_0x3565b3,'*Set\x20highlight:*\x20%0',_0x4c1d73),'color':{'value':_0x1f6c66['color'],'title':_0x1f6c66['title']}};}return{'type':'format','content':o(_0x3565b3,'*Remove\x20highlight*',o(_0x3565b3,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x3be5df{['afterInit'](){const _0x4b25a4=this['editor'];if(!_0x4b25a4['plugins']['has']('HorizontalLineEditing'))return;_0x4b25a4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x16f89b=_0x4b25a4['plugins']['get']('TrackChangesEditing'),_0x5e7e7c=_0x4b25a4['locale'];_0x16f89b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x531330=>o(_0x5e7e7c,'ELEMENT_HORIZONTAL_LINE',_0x531330)),_0x4b25a4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x37d071,{writer:_0x1c64c5,options:_0x5b9927})=>{if(!_0x5b9927['showSuggestionHighlights'])return null;const _0x37423b=_0x1c64c5['createContainerElement']('div'),_0x587d26=_0x1c64c5['createEmptyElement']('hr');return _0x1c64c5['addClass']('ck-horizontal-line',_0x37423b),_0x1c64c5['insert'](_0x1c64c5['createPositionAt'](_0x37423b,0x0),_0x587d26),_0x37423b;},'converterPriority':'high'});}}class et extends _0x3be5df{['afterInit'](){const _0x1c2bbf=this['editor'];if(!_0x1c2bbf['plugins']['has']('HtmlEmbed'))return;const _0x546b62=_0x1c2bbf['plugins']['get']('TrackChangesEditing'),_0x47d774=_0x1c2bbf['locale'];_0x546b62['descriptionFactory']['registerElementLabel']('rawHtml',_0x2ce433=>o(_0x47d774,'ELEMENT_HTML_EMBED',_0x2ce433)),_0x546b62['enableDefaultAttributesIntegration']('htmlEmbed'),_0x546b62['registerBlockAttribute']('value'),_0x546b62['descriptionFactory']['registerDescriptionCallback'](_0x95330f=>{if('attribute'!=_0x95330f['type'])return;const {data:_0xa6f3f1}=_0x95330f;if(_0xa6f3f1&&'value'==_0xa6f3f1['key']&&_0x95330f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5345fd=o(_0x47d774,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x47d774,'*Change\x20%0\x20content*',_0x5345fd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41dbe8=this['editor'],_0x41658c=_0x41dbe8['locale'];_0x41dbe8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x147005=>{if('formatBlock'!=_0x147005['type'])return;const {data:_0x49b258}=_0x147005;if(_0x49b258&&'htmlEmbed'==_0x49b258['commandName']){const _0x71c702=o(_0x41658c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x41658c,'*Change\x20%0\x20content*',_0x71c702)};}});}}class it extends _0x3be5df{['afterInit'](){const _0x7aac9c=this['editor'];if(!_0x7aac9c['plugins']['has']('ImageEditing'))return;const _0x310f70=_0x7aac9c['plugins']['get']('TrackChangesEditing'),_0x3ea0b7=_0x7aac9c['plugins']['get']('ImageUtils'),_0x3c3cf7=_0x7aac9c['locale'];_0x310f70['enableCommand']('insertImage'),_0x310f70['descriptionFactory']['registerElementLabel']('imageBlock',_0x284897=>o(_0x3c3cf7,'ELEMENT_IMAGE',_0x284897)),_0x310f70['descriptionFactory']['registerElementLabel']('imageInline',_0xc457ae=>o(_0x3c3cf7,'ELEMENT_INLINE_IMAGE',_0xc457ae)),_0x310f70['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3c3cf7,'ELEMENT_CAPTION')),_0x7aac9c['plugins']['has']('ImageUploadEditing')&&_0x310f70['enableCommand']('uploadImage'),_0x7aac9c['plugins']['has']('ImageBlockEditing')&&_0x7aac9c['plugins']['has']('ImageInlineEditing')&&(_0x310f70['enableCommand']('imageTypeInline',(_0x319462,_0x12b75e)=>{const _0x55e3c4=_0x3ea0b7['getClosestSelectedImageElement'](_0x7aac9c['model']['document']['selection']);_0x7aac9c['model']['change'](()=>{_0x310f70['markBlockFormat'](_0x55e3c4,{'commandName':'imageTypeInline','commandParams':[_0x12b75e]},[],'convertBlockImageToInline');});}),_0x310f70['enableCommand']('imageTypeBlock',(_0x13f2ee,_0x49d6ed)=>{_0x7aac9c['model']['change'](_0x1c8039=>{let _0x447dc5=_0x3ea0b7['getClosestSelectedImageElement'](_0x7aac9c['model']['document']['selection']),_0x3c9bbe=_0x1c8039['createRangeOn'](_0x447dc5);const _0x2d1866=_0x2212d3['fromPosition'](_0x3c9bbe['start'],'toPrevious'),_0x5928a3=_0x2212d3['fromPosition'](_0x3c9bbe['end'],'toNext');_0x310f70['forceDefaultExecution'](()=>_0x13f2ee(_0x49d6ed)),_0x447dc5=_0x3ea0b7['getClosestSelectedImageElement'](_0x7aac9c['model']['document']['selection']),_0x3c9bbe=_0x1c8039['createRangeOn'](_0x447dc5);const _0x3474ab=_0x1c8039['createRange'](_0x2d1866,_0x5928a3);_0x2d1866['detach'](),_0x5928a3['detach'](),_0x310f70['markBlockFormat'](_0x447dc5,{'commandName':'imageTypeInline','commandParams':[_0x49d6ed]},[],'convertInlineImageToBlock'),_0x3474ab['start']['isBefore'](_0x3c9bbe['start'])&&_0x310f70['markInsertion'](_0x1c8039['createRange'](_0x3474ab['start'],_0x3c9bbe['start']),'convertInlineImageToBlock'),_0x3c9bbe['end']['isBefore'](_0x3474ab['end'])&&_0x310f70['markInsertion'](_0x1c8039['createRange'](_0x3c9bbe['end'],_0x3474ab['end']),'convertInlineImageToBlock');});}),_0x310f70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x310f70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x310f70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x310f70['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x310f70['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x310f70['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d1d02])=>{const _0x25cba0=_0x310f70['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4ad169=_0x1d1d02['start'],_0x35a1dd=_0x1d1d02['end'];const _0x5040d3=_0x7aac9c['model']['schema']['getNearestSelectionRange'](_0x4ad169,'backward'),_0x5f1840=_0x7aac9c['model']['schema']['getNearestSelectionRange'](_0x35a1dd,'forward');_0x5040d3['isCollapsed']&&(_0x4ad169=_0x5040d3['start']),_0x5f1840['isCollapsed']&&(_0x35a1dd=_0x5f1840['end']),_0x25cba0([_0x7aac9c['model']['createRange'](_0x4ad169,_0x35a1dd)]);}),_0x310f70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1463c9),_0x310f70['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1463c9)),_0x7aac9c['plugins']['has']('ImageCaptionEditing')&&(_0x310f70['enableCommand']('toggleImageCaption',(_0x49f7c0,_0x2d5a83)=>{const _0x3961f8=_0x7aac9c['plugins']['get']('ImageCaptionUtils');let _0x39275a=_0x3ea0b7['getClosestSelectedImageElement'](_0x7aac9c['model']['document']['selection']),_0x7107ce=_0x3961f8['getCaptionFromImageModelElement'](_0x39275a);_0x7aac9c['model']['change'](()=>{if(_0x7107ce)return void _0x310f70['markDeletion'](_0x7aac9c['model']['createRangeOn'](_0x7107ce));const _0x35b747=_0x3ea0b7['isBlockImage'](_0x39275a);_0x49f7c0(_0x2d5a83),_0x39275a=_0x3ea0b7['getClosestSelectedImageElement'](_0x7aac9c['model']['document']['selection']),_0x7107ce=_0x3961f8['getCaptionFromImageModelElement'](_0x39275a),_0x310f70['markInsertion'](_0x7aac9c['model']['createRangeOn'](_0x7107ce),_0x35b747?null:'imageCaption');});}),_0x310f70['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1463c9));const _0x46148d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b00b2(_0x52cdf0,_0x12bec8){const _0x4b8977=_0x46148d['findIndex'](({type:_0xe509e1,subType:_0x2c72e9})=>_0x52cdf0['type']==_0xe509e1&&_0x52cdf0['subType']==_0x2c72e9),_0x2fb7b0=_0x46148d['findIndex'](({type:_0x2bedbf,subType:_0x3b63d2})=>_0x12bec8['type']==_0x2bedbf&&_0x12bec8['subType']==_0x3b63d2);if(_0x4b8977<0x0||_0x2fb7b0<0x0)return!0x1;const _0x257603=_0x52cdf0['getFirstRange'](),_0xf7c8dd=_0x12bec8['getFirstRange']();if((0x0==_0x4b8977||0x1==_0x4b8977)&&0x2==_0x2fb7b0&&_0x257603['isIntersecting'](_0xf7c8dd))return!0x0;if(0x2==_0x4b8977&&0x3==_0x2fb7b0){const _0x48953b=_0x310f70['_findSuggestions'](_0x257603,'insertion')['filter'](({suggestion:_0x306891,meta:_0x5a3d7c})=>_0x5a3d7c['isOwn']&&'convertInlineImageToBlock'==_0x306891['subType']);if(_0x48953b['length']>0x1&&_0xf7c8dd['end']['isEqual'](_0x257603['start']))return!0x0;if(0x1==_0x48953b['length']&&(_0x257603['start']['isEqual'](_0xf7c8dd['end'])||_0x257603['end']['isEqual'](_0xf7c8dd['start'])))return!0x0;}if(0x3==_0x4b8977&&0x3==_0x2fb7b0&&_0x257603['start']['isBefore'](_0xf7c8dd['start'])){const _0x8a7a4b=_0x257603['end']['nodeAfter'],_0x403bf6=_0xf7c8dd['start']['nodeBefore'];return _0x3ea0b7['isBlockImage'](_0x8a7a4b)&&_0x8a7a4b===_0x403bf6;}return!0x1;}function _0x1463c9(_0x24eb01,_0x4a5e3f){return _0x5b00b2(_0x24eb01,_0x4a5e3f)?[_0x24eb01,_0x4a5e3f]:_0x5b00b2(_0x4a5e3f,_0x24eb01)?[_0x4a5e3f,_0x24eb01]:null;}_0x7aac9c['plugins']['has']('ImageResize')&&(_0x310f70['enableDefaultAttributesIntegration']('resizeImage'),_0x310f70['registerBlockAttribute']('resizedWidth'),_0x310f70['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3c3cf7,'FORMAT_IMAGE_SIZE'))),_0x7aac9c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x310f70['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x310f70['registerBlockAttribute']('alt')),_0x310f70['descriptionFactory']['registerDescriptionCallback'](_0x36498a=>{if(!!_0x46148d['find'](({type:_0x544c1b,subType:_0x5e1fe0})=>_0x36498a['type']==_0x544c1b&&_0x36498a['subType']==_0x5e1fe0))return _0x36498a['previous']?{}:void 0x0;}),_0x310f70['descriptionFactory']['registerDescriptionCallback'](_0x5a5862=>{if('insertion'==_0x5a5862['type']||'deletion'==_0x5a5862['type']){const _0xe1391b=_0x5a5862['getContainedElement']();if(_0xe1391b&&_0xe1391b['is']('element','caption'))return{'type':'insertion'==_0x5a5862['type']?'addObject':'removeObject','element':_0xe1391b,'quantity':0x1};}}),_0x310f70['descriptionFactory']['registerDescriptionCallback'](_0x11f1d5=>'formatBlock'==_0x11f1d5['type']&&'convertInlineImageToBlock'==_0x11f1d5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11f1d5['type']&&'convertBlockImageToInline'==_0x11f1d5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x310f70['descriptionFactory']['registerDescriptionCallback'](_0x9c2642=>{if('attribute'!=_0x9c2642['type'])return;const {data:_0x507439}=_0x9c2642;if(!_0x507439||'alt'!=_0x507439['key'])return;const _0x309e5f=_0x507439['newValue'];return _0x309e5f?{'type':'format','content':o(_0x3c3cf7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x309e5f+'\x22')}:{'type':'format','content':o(_0x3c3cf7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x292d64=this['editor'],_0x2cf986=_0x292d64['locale'];_0x292d64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32682c=>{if('formatBlock'!=_0x32682c['type']&&'formatInline'!=_0x32682c['type'])return;const {data:_0x2b2df3}=_0x32682c;if(_0x2b2df3){if('imageTextAlternative'==_0x2b2df3['commandName']){const _0x45eb98=_0x2b2df3['commandParams'][0x0]['newValue'];return _0x45eb98?{'type':'format','content':o(_0x2cf986,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x45eb98+'\x22')}:{'type':'format','content':o(_0x2cf986,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b2df3['commandName']){const _0x9c2c30=_0x2b2df3['commandParams'][0x0]['width'];return _0x9c2c30?{'type':'format','content':o(_0x2cf986,'*Set\x20image\x20width:*\x20%0',_0x9c2c30)}:{'type':'format','content':o(_0x2cf986,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3be5df{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4ff102=this['editor']['locale'],_0x4f7314=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f7314['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4f7314['registerBlockAttribute']('src'),_0x4f7314['descriptionFactory']['registerDescriptionCallback'](_0x361f78=>{if('attribute'!=_0x361f78['type'])return;const {data:_0x3860f6}=_0x361f78;return _0x3860f6&&'src'==_0x3860f6['key']?_0x3860f6['newValue']&&_0x3860f6['oldValue']?{'type':'format','content':o(_0x4ff102,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5549d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5549d4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5549d4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5549d4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5549d4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a655a=this['editor'],_0x2f61da=_0x5a655a['locale'];_0x5a655a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1e95=>{if('formatBlock'!=_0x4a1e95['type']&&'formatInline'!=_0x4a1e95['type'])return;const {data:_0xa0fe0d}=_0x4a1e95;if(!_0xa0fe0d||'replaceImageSource'!=_0xa0fe0d['commandName'])return;return{'type':'format','content':o(_0x2f61da,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x3be5df{['afterInit'](){const _0x4cccb4=this['editor'];if(!_0x4cccb4['plugins']['has']('ImageStyleEditing'))return;const _0xb72c0d=_0x4cccb4['plugins']['get']('TrackChangesEditing'),_0x3f5bf7=_0x4cccb4['plugins']['get']('ImageUtils'),_0x408ad7={};_0xb72c0d['enableCommand']('imageStyle',(_0x5fc19b,_0x402b4b)=>{const _0x32415e=_0x4cccb4['plugins']['get']('Users')['me'],_0x192b26=_0x4cccb4['commands']['get']('imageStyle');let _0x5f2283=_0x3f5bf7['getClosestSelectedImageElement'](_0x4cccb4['model']['document']['selection']),_0x2477dc=_0x4cccb4['model']['createRangeOn'](_0x5f2283),_0xdfd3dd=_0x192b26['value'];if(_0xdfd3dd==_0x402b4b['value'])return;const _0x1cdfa8={'commandName':'imageStyle','commandParams':[_0x402b4b],'formatGroupId':_0x3035a1()};_0x4cccb4['model']['change'](()=>{if(_0xb72c0d['getSuggestions']()['filter'](_0x1f43e2=>_0x1f43e2['isInContent']&&_0x32415e==_0x1f43e2['author']&&('formatBlock'==_0x1f43e2['type']||'formatInline'==_0x1f43e2['type'])&&('imageStylePreApply'==_0x1f43e2['subType']||'imageStylePostApply'==_0x1f43e2['subType'])&&_0x1f43e2['getFirstRange']()['isEqual'](_0x2477dc))['forEach'](_0x19920e=>_0xb72c0d['discardSuggestion'](_0x19920e['head'])),_0x5f2283=_0x3f5bf7['getClosestSelectedImageElement'](_0x4cccb4['model']['document']['selection']),_0x2477dc=_0x4cccb4['model']['createRangeOn'](_0x5f2283),_0x192b26['refresh'](),_0x4cccb4['commands']['get']('imageTypeInline')['refresh'](),_0x4cccb4['commands']['get']('imageTypeBlock')['refresh'](),_0xdfd3dd=_0x192b26['value'],_0xdfd3dd!=_0x402b4b['value'])return _0x3f5bf7['isInlineImage'](_0x5f2283)&&_0x192b26['shouldConvertImageType'](_0x402b4b['value'],_0x5f2283)?(_0x5fc19b({..._0x402b4b,'setImageSizes':!0x1}),_0x5f2283=_0x3f5bf7['getClosestSelectedImageElement'](_0x4cccb4['model']['document']['selection']),void _0xb72c0d['markBlockFormat'](_0x5f2283,{..._0x1cdfa8,'commandReversedParams':[{'value':_0xdfd3dd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3f5bf7['isBlockImage'](_0x5f2283)?_0xb72c0d['markBlockFormat'](_0x5f2283,_0x1cdfa8,[],'imageStylePostApply'):_0xb72c0d['markInlineFormat'](_0x2477dc,_0x1cdfa8,'imageStylePostApply'));});});for(const _0x3579cf of _0x4cccb4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x408ad7[_0x3579cf['name']]=_0x3579cf['title']['toLowerCase']();_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52faac])=>{_0x3f5bf7['setImageNaturalSizeAttributes'](_0x52faac['getContainedElement']());}),_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3082fc,_0x23c24c)=>{_0xb72c0d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3082fc,{'commandName':_0x23c24c['commandName'],'commandParams':_0x23c24c['commandReversedParams']});}),_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2b6852,_0x3e9470){if(_0x498932(_0x2b6852,_0x3e9470))return[_0x2b6852,_0x3e9470];if(_0x498932(_0x3e9470,_0x2b6852))return[_0x3e9470,_0x2b6852];return null;});const _0xd9a5d6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x498932(_0x1957c8,_0x1f01e8){const _0x4b4eb8=_0xd9a5d6['findIndex'](({type:_0x2bf197,subType:_0x30cd9a})=>_0x1957c8['type']==_0x2bf197&&_0x1957c8['subType']==_0x30cd9a),_0x4e4fcb=_0xd9a5d6['findIndex'](({type:_0x3315f0,subType:_0xa3143})=>_0x1f01e8['type']==_0x3315f0&&_0x1f01e8['subType']==_0xa3143);if(_0x4b4eb8<0x0||_0x4e4fcb<0x0)return!0x1;const _0x1fbe2e=_0x1957c8['getFirstRange'](),_0x177085=_0x1f01e8['getFirstRange']();if((0x0==_0x4b4eb8||0x1==_0x4b4eb8)&&0x2==_0x4e4fcb&&_0x1fbe2e['isIntersecting'](_0x177085))return!0x0;if(0x2==_0x4b4eb8&&0x3==_0x4e4fcb){const _0x17f640=_0xb72c0d['_findSuggestions'](_0x1fbe2e,'insertion')['filter'](({suggestion:_0x204ff9,meta:_0x1c00b1})=>_0x1c00b1['isOwn']&&'convertInlineImageToBlock'==_0x204ff9['subType']);if(_0x17f640['length']>0x1&&_0x177085['end']['isEqual'](_0x1fbe2e['start']))return!0x0;if(0x1==_0x17f640['length']&&(_0x1fbe2e['start']['isEqual'](_0x177085['end'])||_0x1fbe2e['end']['isEqual'](_0x177085['start'])))return!0x0;}if(0x3==_0x4b4eb8&&0x3==_0x4e4fcb&&_0x1fbe2e['start']['isBefore'](_0x177085['start'])){const _0x1bae8c=_0x1fbe2e['end']['nodeAfter'],_0x5c838b=_0x177085['start']['nodeBefore'];return _0x3f5bf7['isBlockImage'](_0x1bae8c)&&_0x1bae8c===_0x5c838b;}return!0x1;}_0x4cccb4['model']['document']['registerPostFixer'](()=>{let _0x5abcb5=!0x1;const _0x3b7236=Array['from'](_0x4cccb4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x442dd7,data:_0x157a6f}of _0x3b7236){const {group:_0x5481fc,type:_0x34938c,subType:_0x50ab85,id:_0xe2db2e}=_0xb72c0d['_splitMarkerName'](_0x442dd7);if('suggestion'==_0x5481fc&&_0xb72c0d['hasSuggestion'](_0xe2db2e)){if('formatBlock'==_0x34938c&&('imageStylePreApply'==_0x50ab85||'imageStylePostApply'==_0x50ab85)){const _0x2a3070=_0xb72c0d['getSuggestion'](_0xe2db2e);if(_0x157a6f['newRange']){const _0x562bae=_0x2a3070['getFirstRange']()['getContainedElement']();if(_0x3f5bf7['isBlockImage'](_0x562bae))continue;_0xb72c0d['discardSuggestion'](_0x2a3070),_0x5abcb5=!0x0;}}if('insertion'==_0x34938c&&'imageCaption'==_0x50ab85&&!_0x157a6f['newRange']){const _0x2f2290=_0xb72c0d['getSuggestion'](_0xe2db2e);_0x2f2290['next']&&_0x2f2290['next']['isInContent']&&(_0xb72c0d['discardSuggestion'](_0x2f2290['next']),_0x5abcb5=!0x0);}}}return _0x5abcb5;}),this['_registerLegacyDescription'](_0x408ad7);}['_registerLegacyDescription'](_0x41add9){const _0x1816ad=this['editor'],_0x5b7fd0=_0x1816ad['locale'];_0x1816ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1362c1=>{if('formatBlock'!=_0x1362c1['type']&&'formatInline'!=_0x1362c1['type'])return;const {data:_0x339564}=_0x1362c1;if(!_0x339564||'imageStyle'!=_0x339564['commandName'])return;const _0x56e637=_0x339564['commandParams'][0x0]['value'];return _0x3350c7('side'===_0x56e637?o(_0x5b7fd0,'FORMAT_SIDE_IMAGE'):_0x41add9[_0x56e637]||_0x56e637);function _0x3350c7(_0x2d8544){return{'type':'format','content':o(_0x5b7fd0,'*Format:*\x20%0',_0x2d8544)};}});}}class ot extends _0x3be5df{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x8d1e28){super(_0x8d1e28),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1c34e4=this['editor'],_0x556d70=_0x1c34e4['commands']['get']('importWord'),_0x3d81cb=_0x1c34e4['commands']['get']('trackChanges');_0x556d70&&(_0x556d70['on']('execute',(_0x4cba76,[,_0x55fbcf])=>{this['_trackChangesValueDuringImport']=_0x3d81cb['value'],_0x55fbcf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x556d70,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x556d70,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3d81cb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1c34e4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1d4e10,_0x45cadd){const {suggestions:_0x111879}=_0x45cadd,_0x1144f3=this['editor']['commands']['get']('trackChanges'),_0x20a5c4=_0x1144f3['value'];this['_trackChangesValueDuringImport']!==_0x20a5c4&&(_0x1144f3['execute'](),this['_trackChangesExecuted']=!0x0),_0x111879&&_0x111879['forEach'](({id:_0x47b49e,type:_0x51db45,author:_0x2639ff,created_at:_0x503a2c})=>{const _0x4f534c={'id':_0x47b49e,'type':_0x51db45,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2639ff,'createdAt':_0x503a2c?new Date(_0x503a2c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4f534c);});}}class rt extends _0x3be5df{['afterInit'](){const _0x241126=this['editor'],_0x58f9c5=_0x241126['plugins']['get']('TrackChangesEditing');if(_0x241126['plugins']['has']('IndentEditing')&&(_0x58f9c5['enableCommand']('indent'),_0x58f9c5['enableCommand']('outdent')),_0x241126['plugins']['has']('IndentBlock')){for(const _0xdee515 of['indentBlock','outdentBlock'])_0x58f9c5['enableDefaultAttributesIntegration'](_0xdee515);}const _0x543478=_0x241126['locale'];_0x58f9c5['registerBlockAttribute']('blockIndent'),_0x58f9c5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x543478,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50b9c4=this['editor'],_0x60aee8=_0x50b9c4['locale'],_0x4b982c=_0x50b9c4['plugins']['get']('TrackChangesEditing');_0x4b982c['descriptionFactory']['registerDescriptionCallback'](_0x4e81b1=>{if('formatBlock'!=_0x4e81b1['type'])return;const {data:_0x8dc529}=_0x4e81b1;if(!_0x8dc529)return;if('indentBlock'!=_0x8dc529['commandName']&&'outdentBlock'!=_0x8dc529['commandName'])return;const _0x2b47be=_0x4e81b1['getItems']()[0x0],_0x2deb37=_0x4b982c['descriptionFactory']['getItemLabel'](_0x2b47be);return'indentBlock'==_0x8dc529['commandName']?{'type':'format','content':o(_0x60aee8,'*Indent:*\x20%0',_0x2deb37)}:'outdentBlock'==_0x8dc529['commandName']?{'type':'format','content':o(_0x60aee8,'*Outdent:*\x20%0',_0x2deb37)}:void 0x0;});}}class at extends _0x3be5df{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x3be5df{['afterInit'](){const _0x55db4a=this['editor'];if(!_0x55db4a['plugins']['has']('LinkEditing'))return;const _0x44298d=_0x55db4a['plugins']['get']('TrackChangesEditing'),_0xc79dd4=_0x55db4a['commands']['get']('link');_0x44298d['enableDefaultAttributesIntegration']('link'),_0x44298d['enableDefaultAttributesIntegration']('unlink'),_0x44298d['registerInlineAttribute']('linkHref');for(const _0x2d24e5 of _0xc79dd4['manualDecorators'])_0x44298d['registerInlineAttribute'](_0x2d24e5['id']),_0x44298d['descriptionFactory']['registerAttributeLabel'](_0x2d24e5['id'],'link\x20('+_0x2d24e5['label']['toLowerCase']()+')');_0x44298d['descriptionFactory']['registerDescriptionCallback'](_0x4536a0=>{if('attribute'!=_0x4536a0['type'])return;const {data:_0x4d9fdc}=_0x4536a0;if(!_0x4d9fdc||'linkHref'!=_0x4d9fdc['key'])return;const _0x45c30a=_0x4d9fdc['newValue'],_0x178e4f=_0x55db4a['locale'];return{'type':'format','content':null==_0x45c30a?o(_0x178e4f,'*Remove\x20link*'):o(_0x178e4f,'*Set\x20link:*\x20%0','\x22'+_0x45c30a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e0c6e=this['editor'],_0x5d4aed=_0x4e0c6e['locale'];_0x4e0c6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6b1395=>{if('formatInline'!=_0x6b1395['type'])return;const {data:_0x319768}=_0x6b1395;if(_0x319768){if('link'==_0x319768['commandName']){const _0x395159=_0x319768['commandParams'][0x0];return{'type':'format','content':o(_0x5d4aed,'*Set\x20link:*\x20%0','\x22'+_0x395159+'\x22')};}return'unlink'==_0x319768['commandName']?{'type':'format','content':o(_0x5d4aed,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x3be5df{['afterInit'](){const _0x141c3c=this['editor'],_0x1976f8=_0x141c3c['locale'];if(!_0x141c3c['plugins']['has']('LegacyListEditing'))return;const _0x3aac03=_0x141c3c['plugins']['get']('TrackChangesEditing'),_0x13a139=_0x141c3c['plugins']['has']('LegacyTodoListEditing');function _0x5b582f(_0x5df89a){return()=>{const _0x4b5ea3=_0x141c3c['model']['document']['selection'],_0x4ae0dd=_0x141c3c['commands']['get'](_0x5df89a);if(_0x4ae0dd['value'])return void _0x141c3c['execute']('paragraph',{});const _0x3a59ac=_0x5df89a['slice'](0x0,-0x4),_0x2ea57e=function(_0x2fd25e,_0x35a78b,_0x4cfbd0){let _0x10cbf8=Array['from'](_0x2fd25e)['filter'](_0x58448=>function(_0x2958c6,_0x2514c8){return _0x2514c8['checkChild'](_0x2958c6['parent'],'listItem')&&!_0x2514c8['isObject'](_0x2958c6);}(_0x58448,_0x4cfbd0));_0x10cbf8=_0x10cbf8['filter'](_0x3a83d8=>!_0x3a83d8['is']('element','listItem')||_0x3a83d8['getAttribute']('listType')!=_0x35a78b);const _0x2d736d=new Set();for(const _0x9ad4be of _0x10cbf8)_0x9ad4be['is']('element','listItem')?_0x2d736d['add'](me(_0x9ad4be)):_0x2d736d['add'](_0x9ad4be);return Array['from'](_0x2d736d);}(_0x4b5ea3['getSelectedBlocks'](),_0x3a59ac,_0x141c3c['model']['schema']);_0x141c3c['model']['change'](()=>{for(const _0x2d0801 of _0x2ea57e)_0x3aac03['markBlockFormat'](_0x2d0801,{'commandName':_0x5df89a,'commandParams':[{'forceValue':!_0x4ae0dd['value']}],'formatGroupId':'blockName'},fe(_0x2d0801));});};}function _0x4f212d(_0x59e2d4){return()=>{const _0x1bf7ff=function(_0xa42298){let _0x596fe2=Array['from'](_0xa42298);const _0x4379e5=_0x596fe2['findIndex'](_0x49dc08=>'listItem'!=_0x49dc08['name']);return _0x4379e5>-0x1&&(_0x596fe2=_0x596fe2['slice'](0x0,_0x4379e5)),_0x596fe2;}(_0x141c3c['model']['document']['selection']['getSelectedBlocks']()),_0x6b0d13=_0x141c3c['model']['createRange'](_0x141c3c['model']['createPositionAt'](_0x1bf7ff[0x0],'before'),_0x141c3c['model']['createPositionAt'](_0x1bf7ff[_0x1bf7ff['length']-0x1],'end'));_0x141c3c['model']['change'](()=>{_0x3aac03['markBlockFormat'](_0x6b0d13,{'commandName':_0x59e2d4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a5f5a){const _0x4cad84=new Set();for(const _0x272a5a of _0x1a5f5a){let _0x23b1f7=_0x272a5a['nextSibling'];for(;_0x23b1f7&&_0x23b1f7['getAttribute']('listIndent')>_0x272a5a['getAttribute']('listIndent');)_0x4cad84['add'](_0x23b1f7),_0x23b1f7=_0x23b1f7['nextSibling'];}return Array['from'](_0x4cad84);}(_0x1bf7ff));});};}_0x3aac03['enableCommand']('numberedList',_0x5b582f('numberedList')),_0x3aac03['enableCommand']('bulletedList',_0x5b582f('bulletedList')),_0x13a139&&_0x3aac03['enableCommand']('todoList',_0x5b582f('todoList')),_0x3aac03['enableCommand']('indentList',_0x4f212d('indentList')),_0x3aac03['enableCommand']('outdentList',_0x4f212d('outdentList')),_0x13a139&&_0x3aac03['enableCommand']('checkTodoList',()=>{const _0x22fe05=_0x141c3c['commands']['get']('checkTodoList'),_0x345821=Array['from'](_0x22fe05['_selectedElements']);_0x345821['filter'](_0x4d03fd=>_0x4d03fd['getAttribute']('todoListChecked')!=_0x22fe05['value']),_0x141c3c['model']['change'](()=>{for(const _0x199f63 of _0x345821)_0x3aac03['markBlockFormat'](_0x199f63,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x22fe05['value']}]});});}),_0x3aac03['descriptionFactory']['registerElementLabel']('listItem',_0x523637=>o(_0x1976f8,'ELEMENT_LIST_ITEM',_0x523637)),_0x3aac03['descriptionFactory']['registerDescriptionCallback'](_0x2f76ad=>{if('formatBlock'!=_0x2f76ad['type']&&'formatInline'!=_0x2f76ad['type'])return;const {data:_0x1105ef}=_0x2f76ad;if(_0x1105ef){if('numberedList'==_0x1105ef['commandName']||'bulletedList'==_0x1105ef['commandName']||'todoList'==_0x1105ef['commandName'])switch(_0x1105ef['commandName']['replace']('List','')){case'bulleted':return _0x513d81(o(_0x1976f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x513d81(o(_0x1976f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x513d81(o(_0x1976f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1105ef['commandName'])return{'type':'format','content':o(_0x1976f8,'*Indent:*\x20%0',o(_0x1976f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1105ef['commandName'])return{'type':'format','content':o(_0x1976f8,'*Outdent:*\x20%0',o(_0x1976f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1105ef['commandName'])return _0x1105ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1976f8,'*Check\x20item*')}:{'type':'format','content':o(_0x1976f8,'*Uncheck\x20item*')};}function _0x513d81(_0x451dd9){return{'type':'format','content':o(_0x1976f8,'*Change\x20to:*\x20%0',_0x451dd9)};}});}}function me(_0x841183){const _0x59c356=_0x841183['getAttribute']('listIndent');if(0x0==_0x59c356)return _0x841183;let _0x2296c4=_0x841183;for(;_0x841183['previousSibling']&&_0x841183['previousSibling']['is']('element','listItem');){const _0x3d48a8=_0x841183['previousSibling']['getAttribute']('listIndent');if(_0x3d48a8==_0x59c356)_0x2296c4=_0x841183['previousSibling'];else{if(_0x3d48a8<_0x59c356)break;}_0x841183=_0x841183['previousSibling'];}return _0x2296c4;}function fe(_0x3d5155){const _0x1c3136=[];if(_0x3d5155['is']('element','listItem')&&_0x3d5155['getAttribute']('listIndent')>0x0){let _0x286687=_0x3d5155['nextSibling'];for(;_0x286687&&'listItem'==_0x286687['name']&&_0x286687['getAttribute']('listIndent')==_0x3d5155['getAttribute']('listIndent');)_0x1c3136['push'](_0x286687),_0x286687=_0x286687['nextSibling'];}return _0x1c3136;}class K extends _0x3be5df{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x532262=this['editor']['config']['get']('list.properties'),_0xe320c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x532262['styles']&&_0xe320c6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x532262['reversed']&&_0xe320c6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x532262['startIndex']&&_0xe320c6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xe320c6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x211419,_0x257ac0={}){const _0x2ca8ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a39d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ca8ac['markMultiRangeBlockFormat'](_0x25a39d,{'commandName':'listStyle','commandParams':[{'type':_0x257ac0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x392ce1,_0x80899a={}){const _0x3fd1e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52bde5=this['_getSuggestionBlocks'](_0x2c4fb3=>_0x2c4fb3['is']('element','listItem')&&'numbered'===_0x2c4fb3['getAttribute']('listType'));if(_0x52bde5['length']<0x1)return;const _0x5540e7=_0x52bde5['map'](_0x3477ab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3477ab,'before'),this['editor']['model']['createPositionAt'](_0x3477ab,0x0)));this['editor']['model']['change'](()=>{_0x3fd1e1['markMultiRangeBlockFormat'](_0x5540e7,{'commandName':'listReversed','commandParams':[{'reversed':_0x80899a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3cce64,_0x3909b7={}){const _0x1cb367=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c12f5=this['_getSuggestionBlocks'](_0x3925df=>_0x3925df['is']('element','listItem')&&'numbered'===_0x3925df['getAttribute']('listType'));if(_0x3c12f5['length']<0x1)return;const _0x144dc4=_0x3c12f5['map'](_0x3f6400=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f6400,'before'),this['editor']['model']['createPositionAt'](_0x3f6400,0x0)));this['editor']['model']['change'](()=>{_0x1cb367['markMultiRangeBlockFormat'](_0x144dc4,{'commandName':'listStart','commandParams':[{'startIndex':_0x3909b7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x147ce6){if('formatBlock'!=_0x147ce6['type']&&'formatInline'!=_0x147ce6['type'])return;const _0x6dff33=this['editor']['locale'],{data:_0x15805b}=_0x147ce6;if(!_0x15805b)return;let _0x2130c6,_0x4dc5e5;switch(_0x15805b['commandName']){case'listStyle':_0x2130c6='*Change\x20to:*\x20%0',_0x4dc5e5={'type':'format','content':o(_0x6dff33,_0x2130c6,o(_0x6dff33,this['_getTranslationKeyForListStyle'](_0x15805b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2130c6=_0x15805b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4dc5e5={'type':'format','content':o(_0x6dff33,_0x2130c6)};break;case'listStart':_0x2130c6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4dc5e5={'type':'format','content':o(_0x6dff33,_0x2130c6,_0x15805b['commandParams'][0x0]['startIndex'])};}return _0x4dc5e5;}['_getSuggestionBlocksForListStyle'](){const _0x3a5cb7=this['editor']['plugins']['get']('LegacyListUtils');let _0x213a98=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x213a98[0x0]?.['is']('element','listItem')&&_0x213a98['unshift'](..._0x3a5cb7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x213a98[_0x213a98['length']-0x1]?.['is']('element','listItem')&&_0x213a98['push'](..._0x3a5cb7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x213a98=[...new Set(_0x213a98)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x213a98=_0x213a98['filter'](_0x41382d=>_0x41382d['is']('element','listItem'))),_0x213a98;}['_getSuggestionBlocks'](_0x43bd2f){const _0x411210=this['editor']['plugins']['get']('LegacyListUtils');let _0x35dc6a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x43bd2f)['map'](_0xd378cb=>{const _0x9da6a7=this['editor']['model']['createPositionAt'](_0xd378cb,0x0);return[..._0x411210['getSiblingNodes'](_0x9da6a7,'backward'),..._0x411210['getSiblingNodes'](_0x9da6a7,'forward')];})['flat']();return _0x35dc6a=[...new Set(_0x35dc6a)],_0x35dc6a;}['_getTranslationKeyForListStyle'](_0x3f884c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3f884c)||'default')['toUpperCase']()+'_LIST_'+_0x3f884c['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x3be5df{['afterInit'](){const _0x332f27=this['editor'];if(!_0x332f27['plugins']['has']('MediaEmbedEditing'))return;const _0x2946ea=_0x332f27['plugins']['get']('TrackChangesEditing'),_0x48831c=_0x332f27['locale'];_0x2946ea['enableCommand']('mediaEmbed'),_0x2946ea['descriptionFactory']['registerElementLabel']('media',_0x33a801=>o(_0x48831c,'ELEMENT_MEDIA',_0x33a801)),_0x332f27['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d3b5f,{writer:_0x49f1d7,options:_0xd93162})=>{if(_0xd93162['showSuggestionHighlights'])return _0x49f1d7['createEmptyElement']('div');},'converterPriority':'high'}),_0x332f27['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5262c6,_0x257a4c,_0x397c79)=>{_0x397c79['options']['showSuggestionHighlights']&&_0x5262c6['stop']();},{'priority':'high'});}}class gt extends _0x3be5df{['afterInit'](){const _0x28c546=this['editor'];_0x28c546['plugins']['has']('MentionEditing')&&_0x28c546['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x3be5df{['afterInit'](){const _0x13ebd8=this['editor'],_0xa80107=_0x13ebd8['plugins']['get']('TrackChangesEditing');_0x13ebd8['plugins']['has']('MultiLevelList')&&(_0xa80107['enableDefaultAttributesIntegration']('multiLevelList'),_0xa80107['registerBlockAttribute']('listMarkerStyle'),_0xa80107['descriptionFactory']['registerDescriptionCallback'](_0x23e4a7=>this['handleDescriptions'](_0x23e4a7)));}['handleDescriptions'](_0x147155){const _0x10f125=this['editor']['locale'],{data:_0xa73d5}=_0x147155,_0x20c5a5={'type':'format','content':''};if(_0xa73d5&&'listMarkerStyle'==_0xa73d5['key']){if(!_0xa73d5['oldValue'])return{'type':'format','content':o(_0x10f125,'*Set\x20format:*\x20%0',o(_0x10f125,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xa73d5['newValue']+')'};if(!_0xa73d5['newValue']){let _0x1ff70e=_0x147155['head'];for(;_0x1ff70e;){if(_0x1ff70e['data']&&'listType'==_0x1ff70e['data']['key']&&_0x1ff70e['data']['newValue'])return _0x20c5a5;_0x1ff70e=_0x1ff70e['next'];}return{'type':'format','content':o(_0x10f125,'*Remove\x20format:*\x20%0',o(_0x10f125,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xa73d5['oldValue']+')'};}}}}class mt extends _0x3be5df{['afterInit'](){const _0x3b2f4d=this['editor'];if(!_0x3b2f4d['plugins']['has']('PageBreakEditing'))return;_0x3b2f4d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x392f88=_0x3b2f4d['plugins']['get']('TrackChangesEditing'),_0x51d02f=_0x3b2f4d['locale'];_0x392f88['descriptionFactory']['registerElementLabel']('pageBreak',_0x6d123b=>o(_0x51d02f,'ELEMENT_PAGE_BREAK',_0x6d123b));}}class dt extends _0x3be5df{['afterInit'](){const _0x2bb795=this['editor'];if(!_0x2bb795['plugins']['has']('Paragraph'))return;const _0xc41c81=_0x2bb795['locale'],_0x31f975=_0x2bb795['plugins']['get']('TrackChangesEditing');_0x31f975['descriptionFactory']['registerElementLabel']('paragraph',_0x1c4023=>o(_0xc41c81,'ELEMENT_PARAGRAPH',_0x1c4023)),_0x31f975['enableDefaultAttributesIntegration']('paragraph'),_0x31f975['enableCommand']('insertParagraph'),_0x2bb795['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2bb795),{'priority':'highest'}),_0x2bb795['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41228f,_0x4abe02,_0x46d0e6)=>{_0x46d0e6['options']['showSuggestionHighlights']&&nr(_0x2bb795,{'showActiveMarker':!0x1})(_0x41228f,_0x4abe02,_0x46d0e6);},{'priority':'highest'});const _0x50f92e=_0x31f975['descriptionFactory'];_0x50f92e['registerDescriptionCallback'](_0x2acf57=>{if('insertion'!==_0x2acf57['type'])return;const {start:_0x4107bd,end:_0x8b1d07}=_0x2acf57['getFirstRange']();if(!_0x4107bd['isTouching'](_0x8b1d07)||!_0x4107bd['nodeAfter'])return;const _0x421e8f=_0x2bb795['model']['schema'],_0x3a83b9=_0x4107bd['nodeAfter'];return _0x421e8f['isBlock'](_0x3a83b9)&&!_0x421e8f['isLimit'](_0x3a83b9)&&_0x421e8f['checkChild'](_0x3a83b9,'$text')?{'type':'insertion','content':o(_0xc41c81,'*Insert:*\x20%0',_0x50f92e['getItemLabel'](_0x3a83b9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb70d0d=this['editor'],_0x311a46=_0xb70d0d['locale'];_0xb70d0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ff174=>{if('formatBlock'!=_0x3ff174['type'])return;const {data:_0x4dfe08}=_0x3ff174;return _0x4dfe08&&'paragraph'==_0x4dfe08['commandName']?{'type':'format','content':o(_0x311a46,'*Change\x20to:*\x20%0',o(_0x311a46,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x132a6b,{showActiveMarker:_0x162fb4=!0x0}={}){return(_0x42dab4,_0x1ef832,_0x5e77ea)=>{const _0x14073d=_0x132a6b['plugins']['get']('TrackChangesEditing'),_0xe728a1=_0x1ef832['markerRange']['start'],_0x297062=_0x1ef832['markerRange']['end'],_0x304649=_0x132a6b['model']['schema'];if(!_0xe728a1['isTouching'](_0x297062)||!_0xe728a1['nodeAfter'])return;const _0x2a2f1d=_0xe728a1['nodeAfter'];if(_0x304649['isBlock'](_0x2a2f1d)&&!_0x304649['isLimit'](_0x2a2f1d)&&_0x304649['checkChild'](_0x2a2f1d,'$text')){if(!_0x5e77ea['consumable']['consume'](_0x1ef832['markerRange'],_0x42dab4['name']))return;const _0x385f43=_0x5e77ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3d5df9=_0x5e77ea['mapper']['toViewPosition'](_0x297062);_0x162fb4&&_0x14073d['activeMarkers']['includes'](_0x1ef832['markerName'])&&_0x5e77ea['writer']['addClass']('ck-suggestion-marker--active',_0x385f43),_0x5e77ea['writer']['insert'](_0x3d5df9,_0x385f43),_0x5e77ea['mapper']['bindElementToMarker'](_0x385f43,_0x1ef832['markerName']);}};}class pt extends _0x3be5df{['afterInit'](){const _0x4aea51=this['editor'];if(!_0x4aea51['plugins']['has']('RemoveFormatEditing'))return;_0x4aea51['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x397e86=this['editor'];_0x397e86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ed6cf=>{if('formatBlock'!=_0x2ed6cf['type']&&'formatInline'!=_0x2ed6cf['type'])return;const {data:_0x56133b}=_0x2ed6cf;return _0x56133b&&'removeFormat'==_0x56133b['commandName']?{'type':'format','content':o(_0x397e86['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x3be5df{['afterInit'](){const _0x3dfaa8=this['editor'];if(!_0x3dfaa8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1d2691=_0x3dfaa8['plugins']['get']('TrackChangesEditing');_0x1d2691['enableCommand']('goToPreviousRestrictedEditingException'),_0x1d2691['enableCommand']('goToNextRestrictedEditingException');const _0x238378=_0x3dfaa8['plugins']['get']('RestrictedEditingModeEditing');_0x238378['enableCommand']('trackChanges'),_0x238378['enableCommand']('acceptSuggestion'),_0x238378['enableCommand']('discardSuggestion'),_0x238378['enableCommand']('acceptAllSuggestions'),_0x238378['enableCommand']('discardAllSuggestions'),_0x238378['enableCommand']('acceptSelectedSuggestions'),_0x238378['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x3be5df{static get['requires'](){return[_0x417959];}['init'](){const _0x5d89e4=this['editor'],_0x296e87=_0x5d89e4['plugins']['get']('TrackChangesEditing');_0x296e87['enableCommand']('shiftEnter'),_0x5d89e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5d89e4),{'priority':'high'}),_0x5d89e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5d89e4),{'priority':'high'}),_0x5d89e4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x232b94,_0x47d8ec,_0x15b0f3)=>{_0x15b0f3['options']['showSuggestionHighlights']&&de(_0x5d89e4,{'showActiveMarker':!0x1})(_0x232b94,_0x47d8ec,_0x15b0f3);}),_0x296e87['descriptionFactory']['registerElementLabel']('softBreak',_0x255662=>o(_0x5d89e4['locale'],'ELEMENT_LINE_BREAK',_0x255662));}}function de(_0x376fb4,{showActiveMarker:_0x4b392d=!0x0}={}){return(_0x55898a,_0x1c6547,_0x1daa55)=>{const _0x2c3491=_0x376fb4['plugins']['get']('TrackChangesEditing');if(!_0x1daa55['consumable']['test'](_0x1c6547['markerRange'],_0x55898a['name']))return;const _0x2715eb=_0x376fb4['model'];for(const _0x2437bd of _0x1c6547['markerRange']['getItems']()){if(!_0x2437bd['is']('element','softBreak'))continue;const _0x4ddc10='deletion'==_0x1c6547['markerName']['split'](':')[0x1]?'merge':'split',_0x5e947b=_0x1daa55['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ddc10}),_0x136972=_0x1daa55['mapper']['toViewPosition'](_0x2715eb['createPositionBefore'](_0x2437bd));_0x4b392d&&_0x2c3491['activeMarkers']['includes'](_0x1c6547['markerName'])&&_0x1daa55['writer']['addClass']('ck-suggestion-marker--active',_0x5e947b),_0x1daa55['writer']['insert'](_0x136972,_0x5e947b),_0x1daa55['mapper']['bindElementToMarker'](_0x5e947b,_0x1c6547['markerName']);}};}class wt extends _0x3be5df{['afterInit'](){const _0xe7bdd2=this['editor'],_0x59f4ed=_0xe7bdd2['model'],_0x33fc0c=_0xe7bdd2['locale'];if(!_0xe7bdd2['plugins']['has']('StandardEditingModeEditing'))return;const _0x23ae31=_0xe7bdd2['plugins']['get']('TrackChangesEditing'),_0xe63917='restrictedEditingException',_0xc7ce6e=_0xe7bdd2['commands']['get'](_0xe63917);_0x23ae31['enableCommand'](_0xe63917,(_0x2e0314,_0x15785f={})=>{const _0x30798a=_0x59f4ed['document']['selection'];if(_0x30798a['isCollapsed'])return void _0x2e0314(_0x15785f);const _0x3836a0=void 0x0!==_0x15785f['forceValue']?_0x15785f['forceValue']:!_0xc7ce6e['value'];_0x59f4ed['change'](()=>{const _0x68c59a=Array['from'](_0x30798a['getRanges']());for(const _0x438ddf of _0x68c59a){const _0x3d0b1e=_0x3836a0?[_0x438ddf]:io(_0xe63917,_0x438ddf,_0x59f4ed);for(const _0xd724b0 of _0x3d0b1e)_0x23ae31['markInlineFormat'](_0xd724b0,{'commandName':_0xe63917,'commandParams':[{'forceValue':_0x3836a0}]});}});}),_0x23ae31['descriptionFactory']['registerDescriptionCallback'](_0x32d4d3=>{if('formatBlock'!=_0x32d4d3['type']&&'formatInline'!=_0x32d4d3['type'])return;const {data:_0x32913b}=_0x32d4d3;return _0x32913b&&_0x32913b['commandName']==_0xe63917?_0x32913b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33fc0c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x33fc0c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x3be5df{['afterInit'](){const _0x9a1398=this['editor'];if(!_0x9a1398['plugins']['has']('Style')||!_0x9a1398['plugins']['has']('DataSchema'))return;const _0x2e8318=_0x9a1398['plugins']['get']('TrackChangesEditing'),_0x1b3696=_0x9a1398['locale'],_0x3ff0f9=_0x9a1398['config']['get']('style')||{},_0x2504ac=_0x9a1398['plugins']['get']('GeneralHtmlSupport'),_0xe9ae48=_0x9a1398['plugins']['get']('StyleUtils')['normalizeConfig'](_0x9a1398['plugins']['get']('DataSchema'),_0x3ff0f9['definitions']);_0x2e8318['enableDefaultAttributesIntegration']('style');const _0x22ef42=new Set();for(const _0xb195e6 of _0xe9ae48['block']){const _0x2dd5a7=_0x2504ac['getGhsAttributeNameForElement'](_0xb195e6['element']);_0x22ef42['add'](_0x2dd5a7);}const _0x4c0e25=new Set();for(const _0x38d13f of _0xe9ae48['inline']){const _0x400501=_0x2504ac['getGhsAttributeNameForElement'](_0x38d13f['element']);_0x4c0e25['add'](_0x400501);for(const _0x131566 of _0x38d13f['ghsAttributes'])_0x4c0e25['add'](_0x131566);}for(const _0x1b1d31 of _0x22ef42)_0x2e8318['registerBlockAttribute'](_0x1b1d31),_0x2e8318['descriptionFactory']['registerAttributeLabel'](_0x1b1d31,o(_0x1b3696,'FORMAT_STYLE'));for(const _0x3987e6 of _0x4c0e25)_0x2e8318['registerInlineAttribute'](_0x3987e6),_0x2e8318['descriptionFactory']['registerAttributeLabel'](_0x3987e6,o(_0x1b3696,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ab8b=this['editor'],_0x3bfe13=_0x28ab8b['locale'];_0x28ab8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a0735=>{if('formatBlock'!=_0x4a0735['type']&&'formatInline'!=_0x4a0735['type'])return;const {data:_0x54d0aa}=_0x4a0735;return _0x54d0aa&&'style'===_0x54d0aa['commandName']?_0x54d0aa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bfe13,'*Set\x20format:*\x20%0',_0x54d0aa['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3bfe13,'*Remove\x20format:*\x20%0',_0x54d0aa['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x3be5df{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x31136d){super(_0x31136d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x300526=this['editor'],_0x2c835f=_0x300526['model']['document']['selection'];if(!_0x300526['plugins']['has']('TableEditing'))return;const _0x585d6d=_0x300526['locale'],_0x123bd1=_0x300526['plugins']['get']('TrackChangesEditing'),_0x46a430=_0x300526['plugins']['get']('TableUtils');_0x123bd1['descriptionFactory']['registerElementLabel']('table',_0x12c2c2=>o(_0x585d6d,'ELEMENT_TABLE',_0x12c2c2)),this['_setupColumnsRowsFixing'](),_0x123bd1['enableCommand']('insertTable'),_0x123bd1['enableCommand']('selectTableRow'),_0x123bd1['enableCommand']('selectTableColumn');for(const _0x19aab8 of['insertTableRowAbove','insertTableRowBelow']){const _0x458839=_0x300526['commands']['get'](_0x19aab8);_0x123bd1['enableCommand'](_0x19aab8,_0x52cf57=>{_0x300526['model']['change'](_0x249900=>{_0x52cf57();const _0x20f9ee='above'===_0x458839['order'],_0x4d6ce7=_0x46a430['getSelectionAffectedTableCells'](_0x2c835f),_0x274ed8=_0x46a430['getRowIndexes'](_0x4d6ce7),_0x5776a5=_0x20f9ee?_0x274ed8['first']-0x1:_0x274ed8['last']+0x1,_0x4e64cb=_0x4d6ce7[0x0]['findAncestor']('table'),_0x10c2e0=_0x46a430['createTableWalker'](_0x4e64cb,{'startRow':_0x5776a5,'endRow':_0x5776a5}),_0x5a4115=Array['from'](_0x10c2e0)['map'](_0x16aeeb=>_0x249900['createRangeOn'](_0x16aeeb['cell']));_0x123bd1['markMultiRangeInsertion'](_0x5a4115,'tableRow');});});}for(const _0x214144 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d3f77=_0x300526['commands']['get'](_0x214144);_0x123bd1['enableCommand'](_0x214144,_0x58501d=>{_0x300526['model']['change'](_0x18b46c=>{_0x58501d();const _0x7bc7da='left'===_0x4d3f77['order'],_0x5dcd55=_0x46a430['getSelectionAffectedTableCells'](_0x2c835f),_0x2c9fc5=_0x46a430['getColumnIndexes'](_0x5dcd55),_0x21a56c=_0x7bc7da?_0x2c9fc5['first']-0x1:_0x2c9fc5['last']+0x1,_0x5a7120=_0x5dcd55[0x0]['findAncestor']('table'),_0x5db379=_0x46a430['createTableWalker'](_0x5a7120,{'startRow':0x0,'column':_0x21a56c,'includeAllSlots':!0x1}),_0xa01cc7=Array['from'](_0x5db379)['map'](_0x10fec2=>_0x18b46c['createRangeOn'](_0x10fec2['cell']));_0x123bd1['markMultiRangeInsertion'](_0xa01cc7,'tableColumn');});});}for(const _0x5e8e5b of['removeTableRow','removeTableColumn']){const _0x25446f=_0x5e8e5b['substr'](0xb),_0x63c3a5=_0x25446f['toLowerCase'](),_0x24db55=_0x63c3a5['substr'](0x0,0x3)+'span',_0x13c6d6='table'+_0x25446f,_0x26df38='min'+_0x25446f,_0x1a310a='max'+_0x25446f;_0x123bd1['enableCommand'](_0x5e8e5b,()=>{_0x300526['model']['change'](_0x1f6f01=>{const _0x309d68=_0x46a430['getSelectionAffectedTableCells'](_0x2c835f),_0x59caab=_0x309d68[0x0]['findAncestor']('table');let _0x23c67d;if('removeTableRow'==_0x5e8e5b){const _0x1c8a4a=_0x46a430['getRowIndexes'](_0x309d68);_0x23c67d={'startRow':_0x1c8a4a['first'],'endRow':_0x1c8a4a['last'],'includeAllSlots':!0x0};}else{const _0x49816a=_0x46a430['getColumnIndexes'](_0x309d68);_0x23c67d={'startColumn':_0x49816a['first'],'endColumn':_0x49816a['last'],'includeAllSlots':!0x0};}const _0x291179=_0x46a430['createTableWalker'](_0x59caab,_0x23c67d),_0x2489ee=Array['from'](_0x291179)['map'](({cell:_0x56096b})=>_0x56096b),_0x4f19b8=Ee(_0x2489ee['filter'](_0x3075e7=>_0x3075e7['hasAttribute'](_0x24db55))),_0x51a1da=Ee(_0x2489ee['filter'](_0x3b77d8=>!_0x3b77d8['hasAttribute'](_0x24db55)))['map'](_0x376c23=>_0x1f6f01['createRangeOn'](_0x376c23)),_0x17908f=_0x123bd1['markMultiRangeDeletion'](_0x51a1da,_0x13c6d6);if(_0x17908f&&('tableRow'==_0x17908f['subType']||'tableColumn'==_0x17908f['subType'])){const _0x10a998=this['_getSuggestionCoords'](_0x17908f);for(const _0x56d4ab of _0x4f19b8){const _0x85f4b7=_0x1f6f01['createRangeOn'](_0x56d4ab),_0x248d3f=_0x46a430['getCellLocation'](_0x56d4ab),_0x5c9496=_0x56d4ab['getAttribute'](_0x24db55)-0x1,_0xd03a91=_0x10a998[_0x26df38],_0x309e72=_0x10a998[_0x1a310a];_0xd03a91<=_0x248d3f[_0x63c3a5]&&_0x248d3f[_0x63c3a5]+_0x5c9496<=_0x309e72&&_0x17908f['addRange'](_0x85f4b7);}}});});}function _0x3062f3(_0x5f9b13){const _0x4dd594=Array['from'](_0x2c835f['getRanges']())['map'](_0x5a5317=>_0x2ded21['fromRange'](_0x5a5317));_0x300526['model']['change'](_0x306092=>{const _0x162bd4=_0x306092['batch'];_0x5f9b13=_0x5f9b13['filter'](_0x1546c8=>'$graveyard'!=_0x1546c8['root']['rootName']),_0x306092['setSelection'](_0x5f9b13),_0x300526['commands']['get']('removeTableRow')['refresh'](),_0x300526['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x300526['model']['enqueueChange'](()=>{_0x300526['model']['enqueueChange'](_0x162bd4,_0x161826=>{const _0x3895a7=_0x4dd594['filter'](_0x2b81fc=>'$graveyard'!=_0x2b81fc['root']['rootName']);_0x3895a7['length']>0x0&&_0x161826['setSelection'](_0x3895a7);for(const _0x28f1c7 of _0x4dd594)_0x28f1c7['detach']();});});});}function _0x3c3468(_0x366c42){_0x300526['model']['change'](_0x47617f=>{const _0x2d986e=Array['from'](_0x2c835f['getRanges']())['map'](_0x17d5bf=>_0x2ded21['fromRange'](_0x17d5bf)),_0x3b3d36=[];for(const _0x412405 of _0x366c42)for(const _0x4f104e of _0x412405['getItems']({'shallow':!0x0}))_0x3b3d36['push'](_0x4f104e);for(const _0x15c193 of _0x3b3d36)'$graveyard'!=_0x15c193['root']['rootName']&&(_0x47617f['setSelection'](_0x47617f['createPositionAt'](_0x15c193,0x0)),_0x300526['commands']['get']('removeTableColumn')['refresh'](),_0x300526['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x612af3=_0x2d986e['filter'](_0x1976c3=>'$graveyard'!=_0x1976c3['root']['rootName']);_0x612af3['length']>0x0&&_0x47617f['setSelection'](_0x612af3);for(const _0x298d46 of _0x2d986e)_0x298d46['detach']();});}function _0x1d0536(_0x516a57,_0x30b706){return _0x30b706['every'](_0x534f34=>_0x516a57['some'](_0x5f1b47=>_0x5f1b47['end']['isEqual'](_0x534f34['start'])||_0x534f34['end']['isEqual'](_0x5f1b47['start'])));}function _0x2e0cca(_0x37415e,_0x4433b5){return _0x37415e['some'](_0x3ad666=>_0x4433b5['some'](_0x53757e=>_0x3ad666['end']['isTouching'](_0x53757e['start'])));}_0x300526['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52c09f,_0x392cb7,_0x2c4af4)=>{if(!_0x2c4af4['options']['showSuggestionHighlights'])return;const _0x46b269=_0x392cb7['item'];if(!_0x46b269)return;const _0x2851c5=_0x2c4af4['mapper']['toViewElement'](_0x46b269);function _0x1f9841(_0x53a88f){return Array['isArray'](_0x53a88f)?_0x53a88f:[_0x53a88f];}_0x2851c5&&'tableCell'===_0x46b269['name']&&_0x1897ff(_0x2851c5,_0x2c4af4['writer'],(_0x526d32,_0x467709,_0x28a4f8)=>_0x28a4f8['addClass'](_0x1f9841(_0x467709['classes']),_0x526d32),(_0x22401b,_0x3d7ae9,_0x55bbac)=>_0x55bbac['removeClass'](_0x1f9841(_0x3d7ae9['classes']),_0x22401b));},{'priority':'highest'}),_0x123bd1['descriptionFactory']['registerDescriptionCallback'](_0x3452da=>{if('insertion'!=_0x3452da['type']&&'deletion'!=_0x3452da['type'])return;const _0x536278=_0x3452da['getContainedElement']();if(null!=_0x536278&&_0x536278['is']('element','table')){if('insertion'==_0x3452da['type']){const _0x36d0f2=_0x3452da['getItems']()['filter'](_0x34402e=>_0x34402e['is']('$textProxy'))['map'](_0x5cfd3d=>_0x5cfd3d['data']);if(_0x36d0f2['length'])return{'type':'insertion','content':o(_0x585d6d,'*Insert:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36d0f2['join']('\x20')+'\x22'))};}if('deletion'==_0x3452da['type']){const _0x8c5711=_0x3452da['getItems']()['filter'](_0x13353c=>_0x13353c['is']('$textProxy'))['map'](_0x54d28b=>_0x54d28b['data']);if(_0x8c5711['length'])return{'type':'deletion','content':o(_0x585d6d,'*Remove:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8c5711['join']('\x20')+'\x22'))};}}}),_0x123bd1['descriptionFactory']['registerDescriptionCallback'](_0x5508ca=>{if('tableRow'==_0x5508ca['subType']){const _0x10d610=_0x5508ca['getItems']()['filter'](_0xe58898=>_0xe58898['is']('$textProxy'))['map'](_0x2fa22b=>_0x2fa22b['data']),_0x605557=this['_getSuggestionCoords'](_0x5508ca),_0x5081b8=_0x605557['maxRow']-_0x605557['minRow']+0x1;if('insertion'==_0x5508ca['type'])return _0x10d610['length']?{'type':'insertion','content':o(_0x585d6d,'*Insert:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5081b8,'\x22'+_0x10d610['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x585d6d,'*Insert:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_ROW',_0x5081b8))};if('deletion'==_0x5508ca['type'])return _0x10d610['length']?{'type':'deletion','content':o(_0x585d6d,'*Remove:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5081b8,'\x22'+_0x10d610['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x585d6d,'*Remove:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_ROW',_0x5081b8))};}if('tableColumn'==_0x5508ca['subType']){const _0xc37859=_0x5508ca['getItems']()['filter'](_0x569353=>_0x569353['is']('$textProxy'))['map'](_0x2f0966=>_0x2f0966['data']),_0x3e3290=this['_getSuggestionCoords'](_0x5508ca),_0x31207e=_0x3e3290['maxColumn']-_0x3e3290['minColumn']+0x1;if('insertion'==_0x5508ca['type'])return _0xc37859['length']?{'type':'insertion','content':o(_0x585d6d,'*Insert:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31207e,'\x22'+_0xc37859['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x585d6d,'*Insert:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_COLUMN',_0x31207e))};if('deletion'==_0x5508ca['type'])return _0xc37859['length']?{'type':'deletion','content':o(_0x585d6d,'*Remove:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31207e,'\x22'+_0xc37859['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x585d6d,'*Remove:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_COLUMN',_0x31207e))};}}),_0x123bd1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3062f3),_0x123bd1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3062f3),_0x123bd1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3c3468),_0x123bd1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3c3468),_0x123bd1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1d0536),_0x123bd1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1d0536),_0x123bd1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2e0cca),_0x123bd1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2e0cca);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4deacc=this['editor'],_0x59ca0b=_0x4deacc['model']['document']['selection'];return(_0x33e0bf,_0x12f66f)=>{_0x4deacc['model']['change'](_0x5e4511=>{const {commandName:_0x565a2c,commandParams:_0x2efdb2}=_0x12f66f;let _0x582870=_0x33e0bf[0x0]['end']['nodeBefore'];_0x2efdb2&&_0x2efdb2[0x0]&&!0x1===_0x2efdb2[0x0]['forceValue']&&(_0x582870=_0x33e0bf[0x0]['start']['nodeAfter']);const _0x257247=_0x5e4511['createRangeIn'](_0x582870);if('$graveyard'==_0x257247['root']['rootName'])return;const _0x178499=Array['from'](_0x59ca0b['getRanges']())['map'](_0x412db2=>_0x2ded21['fromRange'](_0x412db2));_0x5e4511['setSelection'](_0x257247),_0x4deacc['commands']['get'](_0x565a2c)['refresh'](),_0x2efdb2['push']({'forceDefaultExecution':!0x0}),_0x4deacc['execute'](_0x565a2c,..._0x2efdb2);const _0xbe890d=_0x178499['filter'](_0x135d4a=>'$graveyard'!=_0x135d4a['root']['rootName']);_0xbe890d['length']>0x0&&_0x5e4511['setSelection'](_0xbe890d);for(const _0x1d89f9 of _0x178499)_0x1d89f9['detach']();});};}['_getCoordsForCells'](_0x100747){const _0x56e62b=this['editor']['plugins']['get']('TableUtils');let _0x526b85=Number['MAX_SAFE_INTEGER'],_0x53aeef=Number['MIN_SAFE_INTEGER'],_0x1c6da7=Number['MAX_SAFE_INTEGER'],_0x3e4b95=Number['MIN_SAFE_INTEGER'];for(const _0x120b48 of _0x100747){if('$graveyard'==_0x120b48['root']['rootName'])continue;const {row:_0x40729b,column:_0x2d806e}=_0x56e62b['getCellLocation'](_0x120b48),_0x1d6a8a=_0x120b48['hasAttribute']('rowspan')?_0x120b48['getAttribute']('rowspan')-0x1:0x0,_0x55f6b3=_0x120b48['hasAttribute']('colspan')?_0x120b48['getAttribute']('colspan')-0x1:0x0;_0x526b85=_0x40729b<_0x526b85?_0x40729b:_0x526b85,_0x53aeef=_0x40729b+_0x1d6a8a>_0x53aeef?_0x40729b+_0x1d6a8a:_0x53aeef,_0x1c6da7=_0x2d806e<_0x1c6da7?_0x2d806e:_0x1c6da7,_0x3e4b95=_0x2d806e+_0x55f6b3>_0x3e4b95?_0x2d806e+_0x55f6b3:_0x3e4b95;}return{'minRow':_0x526b85,'maxRow':_0x53aeef,'minColumn':_0x1c6da7,'maxColumn':_0x3e4b95};}['_setupColumnsRowsFixing'](){const _0xff56f1=this['editor'],_0xc6026c=_0xff56f1['plugins']['get']('TrackChangesEditing'),_0x33cbcb=_0xff56f1['plugins']['get']('TableUtils');_0xff56f1['model']['document']['on']('change:data',()=>{const _0x272a73=Array['from'](_0xff56f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26c366,data:_0x47a858}of _0x272a73){const {group:_0x3ad0c3,id:_0x9d5c6f,subType:_0x1cfa37}=_0xc6026c['_splitMarkerName'](_0x26c366);if('suggestion'!=_0x3ad0c3)continue;if(null!=_0x47a858['oldRange'])continue;const _0x28706b=_0xc6026c['getSuggestion'](_0x9d5c6f);this['_tablePostFixingSubtypes']['includes'](_0x1cfa37)&&this['_tableSuggestions']['add'](_0x28706b);}},{'priority':'low'});const _0x307a0b=(_0x54ddd7,_0x3d59c3)=>{let _0x4e888e=!0x1;const _0x14c43b=_0x3d59c3['createRangeOn'](_0x54ddd7),_0x3aa36d=_0x54ddd7['findAncestor']('table'),_0x2bd5d7=_0x33cbcb['getCellLocation'](_0x54ddd7);for(const _0x1b0539 of this['_tableSuggestions']){const _0x5ca986=_0x1b0539['subType'],_0x938e23=_0x5ca986['startsWith']('tablePaste'),_0x5a9c03=_0x5ca986['substr'](_0x938e23?0xa:0x5),_0x22f9c6=_0x5a9c03['toLowerCase'](),_0x32a516=_0x22f9c6['substr'](0x0,0x3)+'span',_0x373ca5='min'+_0x5a9c03,_0x41a3d4='max'+_0x5a9c03;if(!_0x1b0539['isInContent'])continue;if(_0x3aa36d!=_0x1b0539['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1b0539['isIntersectingWithRange'](_0x14c43b))continue;const _0x4373c2=_0x54ddd7['hasAttribute'](_0x32a516)?_0x54ddd7['getAttribute'](_0x32a516)-0x1:0x0,_0x293b64=this['_getSuggestionCoords'](_0x1b0539),_0x459f35=_0x293b64[_0x373ca5],_0x3f1dda=_0x293b64[_0x41a3d4];_0x459f35<=_0x2bd5d7[_0x22f9c6]&&_0x2bd5d7[_0x22f9c6]+_0x4373c2<=_0x3f1dda&&(_0x1b0539['addRange'](_0x14c43b),_0x4e888e=!0x0);}return _0x4e888e;};_0xff56f1['model']['document']['registerPostFixer'](_0x3b44ab=>{let _0x408c61=!0x1;for(const _0x6d53d0 of _0xff56f1['model']['document']['differ']['getChanges']())if('insert'==_0x6d53d0['type']){if('tableRow'==_0x6d53d0['name']){for(const _0x4109b7 of _0x6d53d0['position']['nodeAfter']['getChildren']())_0x408c61=_0x408c61||_0x307a0b(_0x4109b7,_0x3b44ab);}else'tableCell'==_0x6d53d0['name']&&(_0x408c61=_0x408c61||_0x307a0b(_0x6d53d0['position']['nodeAfter'],_0x3b44ab));}return _0x408c61;});}['_getSuggestionCoords'](_0x5057df){return this['_getCoordsForCells'](_0x5057df['getRanges']()['map'](_0x1ea5a2=>_0x1ea5a2['start']['nodeAfter']));}}function Ee(_0x1b37dc){return Array['from'](new Set(_0x1b37dc)['values']());}class St extends _0x3be5df{static get['requires'](){return[jt];}['afterInit'](){const _0xca2d66=this['editor'],_0x571a47=_0xca2d66['model']['document']['selection'],_0x370c93=_0xca2d66['locale'];if(!_0xca2d66['plugins']['has']('TableEditing'))return;const _0x1b83df=_0xca2d66['plugins']['get']('TrackChangesEditing'),_0x10638a=_0xca2d66['plugins']['get']('TableUtils'),_0x8b286=_0xca2d66['plugins']['get'](jt);_0x8b286['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1b83df['enableCommand']('mergeTableCells',()=>{const _0x33b2f4=_0x10638a['getSelectionAffectedTableCells'](_0xca2d66['model']['document']['selection']);_0xca2d66['model']['change'](()=>{_0x1b83df['markMultiRangeBlockFormat'](_0x33b2f4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xca2d66['commands']['get']('mergeTableCells')['on']('execute',(_0x26bea0,_0x5694e2)=>{_0xca2d66['commands']['get']('trackChanges')['value']&&(_0x5694e2['length']>0x0&&_0x5694e2[_0x5694e2['length']-0x1]&&_0x5694e2[_0x5694e2['length']-0x1]['forceDefaultExecution']||_0x1b83df['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x26bea0['stop']());},{'priority':'highest'});for(const _0x455ba5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5834e1=_0xca2d66['commands']['get'](_0x455ba5);_0x1b83df['enableCommand'](_0x455ba5,()=>{const _0x7e6ada=_0xca2d66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x44d02d=>_0x44d02d['is']('element','tableCell')),_0x454e55=_0x5834e1['value'];_0xca2d66['model']['change'](()=>{_0x1b83df['markMultiRangeBlockFormat']([_0x7e6ada,_0x454e55],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x293835 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3c1f5d=_0xca2d66['commands']['get'](_0x293835);_0x1b83df['enableCommand'](_0x293835,()=>{const _0x23abad=_0x10638a['getSelectionAffectedTableCells'](_0xca2d66['model']['document']['selection'])[0x0],_0x18be1d=_0x23abad['findAncestor']('table'),{column:_0x1694d9,row:_0x52bc9a}=_0x10638a['getCellLocation'](_0x23abad);let _0x1cfd91=[];if('horizontally'==_0x3c1f5d['direction']){const _0x4ac0aa=_0x10638a['createTableWalker'](_0x18be1d,{'startRow':_0x52bc9a,'endRow':_0x52bc9a,'includeAllSlots':!0x0});_0x1cfd91=Array['from'](_0x4ac0aa)['map'](_0x4d520a=>_0x4d520a['cell']);}else{const _0x145278=_0x10638a['createTableWalker'](_0x18be1d,{'column':_0x1694d9,'includeAllSlots':!0x0});_0x1cfd91=Array['from'](_0x145278)['map'](_0x1dd3ce=>_0x1dd3ce['cell']);}_0xca2d66['model']['change'](_0x5ac9c8=>{_0x1b83df['markBlockFormat'](_0x5ac9c8['createRangeOn'](_0x23abad),{'commandName':_0x293835,'commandParams':[]},_0x1cfd91,_0x293835);});});}_0x1b83df['descriptionFactory']['registerDescriptionCallback'](_0x71354b=>{if('formatBlock'!=_0x71354b['type']&&'formatInline'!=_0x71354b['type'])return;const {data:_0x43ddbf}=_0x71354b;return _0x43ddbf&&'mergeTableCells'==_0x43ddbf['commandName']?{'type':'format','content':o(_0x370c93,'*Merge\x20cells*')}:void 0x0;}),_0x1b83df['descriptionFactory']['registerDescriptionCallback'](_0x7ba8ac=>{if('formatBlock'!=_0x7ba8ac['type']&&'formatInline'!=_0x7ba8ac['type'])return;const {data:_0x325854}=_0x7ba8ac;return _0x325854?'splitTableCellVertically'==_0x325854['commandName']?{'type':'format','content':o(_0x370c93,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x325854['commandName']?{'type':'format','content':o(_0x370c93,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x21e02e=_0x8b286['_acceptFormatSuggestionCallbackFactory']();for(const _0x153c38 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1b83df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x153c38,'accept',_0x21e02e);for(const _0x57aaba of['splitTableCellVertically','splitTableCellHorizontally'])_0x1b83df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57aaba,'accept',_0x21e02e);_0x1b83df['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2b26dd=>{_0xca2d66['model']['change'](_0x52ef4d=>{const _0x18bf67=Array['from'](_0x571a47['getRanges']())['map'](_0x44ac3d=>_0x2ded21['fromRange'](_0x44ac3d));_0x52ef4d['setSelection'](_0x2b26dd),_0xca2d66['commands']['get']('mergeTableCells')['refresh'](),_0xca2d66['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x53891a=_0x18bf67['filter'](_0xf652b0=>'$graveyard'!=_0xf652b0['root']['rootName']);_0x53891a['length']>0x0&&_0x52ef4d['setSelection'](_0x53891a);for(const _0x95d6a6 of _0x18bf67)_0x95d6a6['detach']();});});for(const _0x5875ad of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x194eff=_0xca2d66['commands']['get'](_0x5875ad);_0x194eff['on']('set:isEnabled',(_0x12d152,_0x574b5e,_0x4c40a3)=>{if(_0x4c40a3){const _0x168124=_0xca2d66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45d816=>_0x45d816['is']('element','tableCell'));this['_areMergableCells'](_0x194eff['value'],_0x168124)||(_0x12d152['return']=!0x1,_0x12d152['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25eb94=this['editor']['commands']['get']('mergeTableCells'),_0x4f94db=this['editor']['plugins']['get']('TableUtils');if(!_0x25eb94['isEnabled'])return!0x1;const _0x3ed3ed=_0x4f94db['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3f6cb8 of _0x3ed3ed)for(const _0x266031 of _0x3ed3ed)if(_0x3f6cb8!=_0x266031&&!this['_areMergableCells'](_0x3f6cb8,_0x266031))return!0x1;return!0x0;}['_areMergableCells'](_0x3aa1de,_0x37915b){const _0x5c8fed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x427c89=this['editor']['model']['createRangeOn'](_0x3aa1de),_0x3c2a0d=this['editor']['model']['createRangeOn'](_0x37915b),_0x4e4ce9=new Set(),_0x43d774=new Set();for(const _0x4be775 of _0x5c8fed['getSuggestions']())if(('insertion'==_0x4be775['type']||'deletion'==_0x4be775['type']||'mergeTableCells'==_0x4be775['subType'])&&_0x4be775['isInContent']){for(const _0x1db086 of _0x4be775['getRanges']())_0x1db086['containsRange'](_0x427c89,!0x0)&&_0x4e4ce9['add'](_0x4be775['type']+':'+_0x4be775['author']['id']),_0x1db086['containsRange'](_0x3c2a0d,!0x0)&&_0x43d774['add'](_0x4be775['type']+':'+_0x4be775['author']['id']);}if(_0x4e4ce9['size']!=_0x43d774['size'])return!0x1;for(const _0x995252 of _0x4e4ce9)if(!_0x43d774['has'](_0x995252))return!0x1;return!0x0;}}class At extends _0x3be5df{static get['requires'](){return[jt];}['afterInit'](){const _0x1b7600=this['editor'];if(!_0x1b7600['plugins']['has']('TableEditing'))return;const _0x1160ce=_0x1b7600['locale'],_0x149e72=_0x1b7600['plugins']['get']('TrackChangesEditing');_0x149e72['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x149e72['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x149e72['registerBlockAttribute']('headingRows'),_0x149e72['registerBlockAttribute']('headingColumns'),_0x149e72['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1160ce,'FORMAT_HEADER_ROW')),_0x149e72['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1160ce,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x484c79=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf88428=this['editor']['plugins']['get']('TableUtils'),_0x5f160c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3540e4({showActiveMarker:_0x4b8377=!0x0,setDataAttribute:_0x24f964=!0x0}={}){return(_0x43a493,_0x285023,_0x306636)=>{const {type:_0x316659,id:_0x262602}=_0x484c79['_splitMarkerName'](_0x285023['markerName']),_0x38b41c=_0x484c79['getSuggestion'](_0x262602),_0x1d751b=_0x38b41c['data'];if('formatBlock'!=_0x38b41c['type']||!_0x1d751b||'setTableColumnHeader'!=_0x1d751b['commandName'])return;if(_0x285023['item'])return void _0x43a493['stop']();if(!_0x306636['consumable']['consume'](_0x285023['markerRange'],_0x43a493['name']))return;const _0x50e631=_0x285023['markerRange']['start']['nodeAfter'],_0x439555=_0x285023['markerRange']['end']['nodeBefore'],_0x902a10=_0x50e631['parent']['parent'],{column:_0x543153}=_0xf88428['getCellLocation'](_0x50e631),{column:_0x395304}=_0xf88428['getCellLocation'](_0x439555);for(let _0xc4ba12=_0x543153;_0xc4ba12<=_0x395304;_0xc4ba12++){const _0x56fe80=_0xf88428['createTableWalker'](_0x902a10,{'column':_0xc4ba12,'includeAllSlots':!0x1});for(const _0x42ff0c of _0x56fe80){const _0x199ca5=_0x42ff0c['cell'],_0x11e0e8=_0x306636['mapper']['toViewElement'](_0x199ca5);_0x306636['writer']['addClass']('ck-suggestion-marker-'+_0x316659,_0x11e0e8),_0x24f964&&_0x306636['writer']['setAttribute']('data-suggestion',_0x262602,_0x11e0e8),_0x306636['mapper']['bindElementToMarker'](_0x11e0e8,_0x285023['markerName']),_0x4b8377&&(_0x484c79['activeMarkers']['includes'](_0x285023['markerName'])?_0x306636['writer']['addClass']('ck-suggestion-marker--active',_0x11e0e8):_0x306636['writer']['removeClass']('ck-suggestion-marker--active',_0x11e0e8));}}};}_0x484c79['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5f160c),_0x484c79['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5f160c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3540e4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x233653,_0x396785,_0x2bd441)=>{_0x2bd441['options']['showSuggestionHighlights']&&_0x3540e4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x233653,_0x396785,_0x2bd441);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x54cfa5,_0x598a5f,_0x11d697)=>{const {type:_0x35f648,id:_0x3fb7c7}=_0x484c79['_splitMarkerName'](_0x598a5f['markerName']),_0x2737cb=_0x484c79['getSuggestion'](_0x3fb7c7),_0x479c6f=_0x2737cb['data'];if('formatBlock'!=_0x2737cb['type']||!_0x479c6f||'setTableColumnHeader'!=_0x479c6f['commandName'])return;const _0x3c3793=_0x11d697['mapper']['markerNameToElements'](_0x598a5f['markerName']);if(_0x3c3793){for(const _0x384b89 of _0x3c3793)_0x11d697['writer']['removeClass']('ck-suggestion-marker-'+_0x35f648,_0x384b89),_0x11d697['writer']['removeClass']('ck-suggestion-marker--active',_0x384b89),_0x11d697['writer']['removeAttribute']('data-suggestion',_0x384b89),_0x11d697['mapper']['unbindElementFromMarkerName'](_0x384b89,_0x598a5f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1caeae=this['editor'],_0x4321cc=_0x1caeae['locale'];function _0x219549(_0x3f5b12){return{'type':'format','content':o(_0x4321cc,'*Format:*\x20%0',_0x3f5b12)};}_0x1caeae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ad7e4=>{if('formatBlock'!=_0x4ad7e4['type'])return;const {data:_0x46a888}=_0x4ad7e4;if(_0x46a888){if('setTableRowHeader'==_0x46a888['commandName']){const _0x390b00=_0x46a888['commandParams'][0x0]['forceValue'];return _0x219549(o(_0x4321cc,_0x390b00?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x46a888['commandName']){const _0x8494ef=_0x46a888['commandParams'][0x0]['forceValue'];return _0x219549(o(_0x4321cc,_0x8494ef?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2ba0f6=>[_0x2ba0f6,null]));class It extends _0x3be5df{static get['requires'](){return[jt];}['afterInit'](){const _0x207193=this['editor'];if(!_0x207193['plugins']['has']('TableClipboard'))return;const _0x12f73e=_0x207193['plugins']['get']('TrackChangesEditing'),_0x39fb59=_0x207193['plugins']['get']('TableUtils'),_0x566240=_0x207193['plugins']['get'](jt),_0x2191ba=_0x207193['plugins']['get']('TableClipboard');_0x566240['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x207193['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x207193['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x49db8b=null;_0x207193['model']['on']('insertContent',(_0x578ff8,_0x202ed8)=>{const [_0x30c38f,_0x5cf50b]=_0x202ed8,_0x4fbc08=_0x202ed8[_0x202ed8['length']-0x1];_0x4fbc08&&_0x4fbc08['forceDefaultExecution']||_0x12f73e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1129f2,_0x35f31e,_0x564948,_0x6d5b68,_0x423b12){if(_0x35f31e&&!_0x35f31e['is']('documentSelection'))return!0x1;const _0x46d764=_0x423b12['getTableIfOnlyTableInContent'](_0x1129f2,_0x564948);if(!_0x46d764||!he(_0x46d764,void 0x0,_0x6d5b68))return!0x1;const _0x3b1dcc=_0x6d5b68['getSelectionAffectedTableCells'](_0x564948['document']['selection']);if(!_0x3b1dcc['length'])return!0x1;const _0x29393e=_0x3b1dcc[0x0]['findAncestor']('table'),_0x2e7e73=_0x6d5b68['getRowIndexes'](_0x3b1dcc),_0x27021b=_0x6d5b68['getColumnIndexes'](_0x3b1dcc),_0x237621={'startRow':_0x2e7e73['first'],'endRow':_0x2e7e73['last'],'startColumn':_0x27021b['first'],'endColumn':_0x27021b['last']};return 0x1==_0x3b1dcc['length']&&(_0x237621['endRow']+=_0x6d5b68['getRows'](_0x46d764)-0x1,_0x237621['endColumn']+=_0x6d5b68['getColumns'](_0x46d764)-0x1),he(_0x29393e,_0x237621,_0x6d5b68);}(_0x30c38f,_0x5cf50b,_0x207193['model'],_0x39fb59,_0x2191ba)&&(_0x578ff8['stop'](),_0x49db8b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x207193['model']['change'](()=>{_0x207193['model']['insertContent'](_0x202ed8[0x0],_0x202ed8[0x1],_0x202ed8[0x2],{'forceDefaultExecution':!0x0});const _0x4035a9=_0x3035a1(),{rowInsertionRanges:_0x6ab199,columnInsertionRanges:_0x4373fe,insertionRanges:_0x1e8d9d,deletionRanges:_0x998a67,cells:_0x4b8fd1}=_0x49db8b;_0x6ab199['length']&&_0x12f73e['markMultiRangeInsertion'](_0x6ab199,'tablePasteRow',{'tablePasteChainId':_0x4035a9}),_0x4373fe['length']&&_0x12f73e['markMultiRangeInsertion'](_0x4373fe,'tablePasteColumn',{'tablePasteChainId':_0x4035a9}),_0x1e8d9d['length']&&(_0x12f73e['markMultiRangeInsertion'](_0x1e8d9d,'tablePaste',{'tablePasteChainId':_0x4035a9,'skipNestingCheck':!0x0}),_0x1e8d9d['forEach'](_0x304504=>_0x304504['detach']?.())),_0x998a67['length']&&(_0x12f73e['markMultiRangeDeletion'](_0x998a67,'tablePaste',{'tablePasteChainId':_0x4035a9,'skipNestingCheck':!0x0}),_0x998a67['forEach'](_0x7e91a5=>_0x7e91a5['detach']?.()));const _0x45416a=_0x12f73e['markMultiRangeBlockFormat'](_0x4b8fd1['map'](({element:_0x5b3343})=>_0x5b3343),{'formatGroupId':_0x3035a1()},[],'tablePasteCell',{'tablePasteChainId':_0x4035a9});if(_0x45416a){const _0x320949=_0x45416a['getMarkers'](),_0x784ccf=[];for(const {element:_0x2f6a35,attributes:_0x17f413}of _0x4b8fd1){if(!_0x17f413)continue;const _0x219953=_0x207193['model']['createRangeOn'](_0x2f6a35),_0x176f9a=_0x320949['find'](_0x2c3313=>_0x2c3313['getRange']()['isEqual'](_0x219953));_0x176f9a&&_0x784ccf['push']([_0x176f9a['name'],_0x17f413]);}_0x784ccf['length']&&_0x45416a['setAttribute']('markerAttributes',Object['fromEntries'](_0x784ccf));}_0x49db8b=null;}));},{'priority':_0x3b4600['high']+0xa}),_0x207193['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3a59d9,_0x34ce28)=>{const [_0xe51a2f,_0xdad5de,,_0x16dfd0]=_0x34ce28;if(!_0x49db8b)return;_0x3a59d9['stop']();const _0x476e67=_0xe51a2f['cell'],_0x56a95=_0xdad5de,_0x52daa1=Pe(_0x476e67),_0x427106=Pe(_0x56a95);_0x3a59d9['return']=_0x476e67;let _0x5ea92b=null,_0xef1d4f=null;if(_0x427106||_0x52daa1){if(_0x52daa1&&!_0x427106){_0x16dfd0['remove'](_0x476e67['getChild'](0x0));for(const _0x2d2dd0 of Array['from'](_0x56a95['getChildren']()))_0x16dfd0['insert'](_0x2d2dd0,_0x476e67,'end');const _0x26fcf6=_0x49db8b['rowInsertionIndexes']['includes'](_0xe51a2f['row']),_0x127232=_0x49db8b['columnInsertionIndexes']['includes'](_0xe51a2f['column']);_0x26fcf6||_0x127232||(_0x5ea92b=_0x2ded21['fromRange'](_0x16dfd0['createRangeIn'](_0x476e67)));}else _0x427106&&!_0x52daa1&&(_0xef1d4f=_0x16dfd0['createRangeIn'](_0x476e67));}else{const _0x303519=_0x16dfd0['createElement']('tableCellSuggestion'),_0x28b4c1=_0x16dfd0['createElement']('tableCellSuggestion');_0x16dfd0['wrap'](_0x16dfd0['createRangeIn'](_0x476e67),_0x28b4c1),_0x16dfd0['insert'](_0x303519,_0x476e67,0x0);for(const _0x273c77 of Array['from'](_0x56a95['getChildren']()))_0x16dfd0['insert'](_0x273c77,_0x303519,'end');_0x5ea92b=_0x2ded21['fromRange'](_0x16dfd0['createRangeOn'](_0x303519)),_0xef1d4f=_0x2ded21['fromRange'](_0x16dfd0['createRangeOn'](_0x28b4c1));}const _0x5bcd60=Array['from'](_0x56a95['getAttributes']())['filter'](([_0x171a95])=>ge['includes'](_0x171a95));_0x49db8b['cells']['push']({'element':_0x476e67,'attributes':_0x5bcd60['length']?Object['fromEntries'](_0x5bcd60):null}),_0x5ea92b&&_0x49db8b['insertionRanges']['push'](_0x5ea92b),_0xef1d4f&&_0x49db8b['deletionRanges']['push'](_0xef1d4f);},{'priority':'high'}),_0x39fb59['on']('insertColumns',(_0x150329,_0x398b0f)=>{const [_0x501cf8,_0x38b718={}]=_0x398b0f;if(!_0x49db8b)return;const _0x3d3c6c=_0x38b718['at']||0x0,_0x247ecb=_0x38b718['columns']||0x1;_0x49db8b['columnInsertionIndexes']=new Array(_0x247ecb)['fill'](_0x3d3c6c)['map']((_0x3bcfcb,_0x5272d7)=>_0x3bcfcb+_0x5272d7);for(const {cell:_0xdba7ce}of _0x39fb59['createTableWalker'](_0x501cf8,{'startColumn':_0x3d3c6c,'endColumn':_0x3d3c6c+_0x247ecb-0x1}))_0x49db8b['columnInsertionRanges']['push'](_0x207193['model']['createRangeOn'](_0xdba7ce));},{'priority':'low'}),_0x39fb59['on']('insertRows',(_0x513c8a,_0x1f8d08)=>{const [_0x3149ab,_0x48331b={}]=_0x1f8d08;if(!_0x49db8b)return;const _0x522b04=_0x48331b['at']||0x0,_0x228f94=_0x48331b['rows']||0x1;_0x49db8b['rowInsertionIndexes']=new Array(_0x228f94)['fill'](_0x522b04)['map']((_0x140581,_0x46cb33)=>_0x140581+_0x46cb33);for(const {cell:_0x4904da}of _0x39fb59['createTableWalker'](_0x3149ab,{'startRow':_0x522b04,'endRow':_0x522b04+_0x228f94-0x1}))_0x49db8b['rowInsertionRanges']['push'](_0x207193['model']['createRangeOn'](_0x4904da));},{'priority':'low'}),_0x12f73e['descriptionFactory']['registerDescriptionCallback'](_0x5966bb=>{if(_0x5966bb['subType']&&_0x5966bb['subType']['startsWith']('tablePaste'))return _0x5966bb['previous']?{}:{'type':'insertion','content':o(_0x207193['locale'],'*Replace\x20table\x20cells*')};});const _0x3eb8ef=()=>!0x1;for(const _0x1728d3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x12f73e['_suggestionFactory']['registerCustomCallback']('insertion',_0x1728d3,'join',_0x3eb8ef),_0x12f73e['_suggestionFactory']['registerCustomCallback']('deletion',_0x1728d3,'join',_0x3eb8ef),_0x12f73e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1728d3,'join',_0x3eb8ef);_0x12f73e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3eb8ef),_0x12f73e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5af4d8,_0x4398a3,_0x155177)=>{const _0x1a413b=_0x5af4d8['map'](_0x22b64c=>_0x22b64c['getContainedElement']())['filter'](_0x3f3237=>_0x3f3237),_0x3afb39=new Map(_0x1a413b['map'](_0x40827e=>[_0x40827e,null]));if(_0x49db8b){for(const {element:_0x4b4d52,attributes:_0xf3391c}of _0x49db8b['cells'])_0xf3391c&&_0x3afb39['set'](_0x4b4d52,_0xf3391c);}else{if(_0x155177&&_0x155177['markerAttributes'])for(const [_0x56c854,_0x40b4ea]of Object['entries'](_0x155177['markerAttributes'])){const _0x233da7=_0x207193['model']['markers']['get'](_0x56c854),_0x3f3af7=_0x233da7?_0x233da7['getRange']()['getContainedElement']():null;_0x3f3af7&&_0x3afb39['set'](_0x3f3af7,_0x40b4ea);}}_0x207193['model']['change'](_0x43760c=>{for(const [_0x422ec0,_0x66d5d8]of _0x3afb39)_0x43760c['setAttributes']({...Ce,..._0x66d5d8},_0x422ec0);});});const _0x441bdf=(_0x40ed88,_0x4eb08f)=>{_0x12f73e['_suggestionFactory']['registerCustomCallback'](_0x40ed88,'tablePaste',_0x4eb08f,(_0x10281d,_0x215f9a,_0x224750)=>{_0x207193['model']['change'](_0x416c0f=>{const _0x1ca868=[];for(const _0x31c897 of _0x10281d){const _0x35088b=_0x31c897['start']['nodeAfter'];_0x35088b['is']('element','tableCellSuggestion')&&_0x1ca868['push'](_0x35088b);}_0x12f73e['_suggestionFactory']['getSuggestionCallback'](_0x40ed88,null,_0x4eb08f)(_0x10281d,_0x215f9a,_0x224750);for(const _0x1764a5 of _0x1ca868)'$graveyard'!=_0x1764a5['root']['rootName']&&_0x416c0f['unwrap'](_0x1764a5);});});};_0x441bdf('insertion','accept'),_0x441bdf('insertion','discard'),_0x441bdf('deletion','accept'),_0x441bdf('deletion','discard'),_0x12f73e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xcf4c83=>{const _0x2bcb6e=_0xcf4c83['map'](_0x5a84b5=>_0x5a84b5['getContainedElement']()),_0x4ab337=_0x2bcb6e[0x0]['findAncestor']('table'),{minRow:_0x3477ee,maxRow:_0x34c019}=_0x566240['_getCoordsForCells'](_0x2bcb6e);_0x39fb59['removeRows'](_0x4ab337,{'at':_0x3477ee,'rows':_0x34c019-_0x3477ee+0x1});}),_0x12f73e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1ebf0f=>{const _0x203116=_0x1ebf0f['map'](_0x30c768=>_0x30c768['getContainedElement']()),_0x2dc39a=_0x203116[0x0]['findAncestor']('table'),{minColumn:_0x542536,maxColumn:_0x484561}=_0x566240['_getCoordsForCells'](_0x203116);_0x39fb59['removeColumns'](_0x2dc39a,{'at':_0x542536,'columns':_0x484561-_0x542536+0x1});});const _0x233419=(_0x4a9cc4,_0x48cab2)=>{if(!_0x48cab2['subType']||!_0x48cab2['subType']['startsWith']('tablePaste'))return;const _0x85079f=_0x48cab2['attributes']['tablePasteChainId'],_0x1e2d83=_0x12f73e['getSuggestions']()['filter'](_0x35a0c9=>_0x35a0c9['isInContent']&&_0x35a0c9['attributes']&&_0x35a0c9['attributes']['tablePasteChainId']==_0x85079f);_0x1e2d83['length']&&_0x48cab2['getAllAdjacentSuggestions']()['length']!=_0x1e2d83['length']&&_0x1e2d83['reduce']((_0xee5edc,_0xc5b326)=>(_0xee5edc['next']=_0xc5b326,_0xc5b326['previous']=_0xee5edc,_0xc5b326));};function _0xa3b400(_0x1e1a4e,_0x43b6ac=!0x0){const {id:_0x2a126d}=_0x12f73e['_splitMarkerName'](_0x1e1a4e['markerName']),_0x63c0c7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x59ea69=_0x12f73e['activeMarkers']['includes'](_0x1e1a4e['markerName']);return _0x59ea69&&_0x63c0c7['push']('ck-suggestion-marker--active'),{'classes':_0x63c0c7,'attributes':{'data-suggestion':_0x2a126d},'priority':_0x59ea69&&_0x43b6ac?0xbc2:0xbb8};}_0x12f73e['on']('suggestionLoaded',_0x233419,{'priority':'high'}),_0x12f73e['on']('suggestionUnloaded',_0x233419,{'priority':'high'}),_0x207193['model']['document']['registerPostFixer'](()=>{let _0x4c1af9=!0x1;const _0x317676=Array['from'](_0x207193['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9f973b,data:_0x50e87f}of _0x317676){const {group:_0x7abecf,type:_0x122b2d,id:_0x1b9d66}=_0x12f73e['_splitMarkerName'](_0x9f973b);if('suggestion'!=_0x7abecf||'deletion'!=_0x122b2d||_0x50e87f['oldRange'])continue;if(!_0x12f73e['hasSuggestion'](_0x1b9d66))continue;const _0x435d4d=_0x12f73e['getSuggestion'](_0x1b9d66)['getRanges'](),_0x4ca78f=_0x207193['plugins']['get']('Users')['me'];for(const _0x3e1b70 of _0x12f73e['getSuggestions']()){if(!_0x3e1b70['isInContent']||_0x3e1b70['author']!=_0x4ca78f)continue;if('formatBlock'!=_0x3e1b70['type']||'tablePasteCell'!=_0x3e1b70['subType'])continue;if(_0x3e1b70['getRanges']()['every'](_0x281191=>_0x435d4d['some'](_0x3c9776=>_0x3c9776['containsRange'](_0x281191,!0x0)))){for(const _0x4632b7 of _0x3e1b70['getAllAdjacentSuggestions']())_0x4632b7['isInContent']&&(_0x4632b7['discard'](),_0x4c1af9=!0x0);}}}return _0x4c1af9;}),_0x207193['model']['document']['registerPostFixer'](_0x1c26f3=>{const _0x38cb58=_0x207193['commands']['get']('redo');if(!_0x38cb58||!_0x38cb58['_createdBatches']['has'](_0x1c26f3['batch']))return!0x1;let _0x168a1c=!0x1;const _0x41c1bc=_0x207193['plugins']['get']('Users')['me'],_0x55b250=_0x207193['model']['document']['differ']['getChanges'](),_0x3af78c=Array['from'](_0x207193['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x451375,data:_0x545147})=>{const {group:_0x5c372b,subType:_0x3639d4,authorId:_0x10cfb5}=_0x12f73e['_splitMarkerName'](_0x451375);return'suggestion'==_0x5c372b&&'tablePaste'==_0x3639d4&&_0x10cfb5==_0x41c1bc['id']&&!_0x545147['oldRange'];});for(const _0x42f098 of _0x55b250){if('insert'!=_0x42f098['type']||'tableCellSuggestion'!=_0x42f098['name']||0x1!=_0x42f098['length'])continue;const _0x1d396c=_0x1c26f3['createRange'](_0x42f098['position'],_0x42f098['position']['getShiftedBy'](0x1));if(!_0x3af78c['find'](({data:_0x40ec13})=>_0x40ec13['newRange']['isEqual'](_0x1d396c))){for(const {name:_0x418a14,data:_0x18ff0b}of _0x3af78c)if(_0x1d396c['containsRange'](_0x18ff0b['newRange'])){_0x1c26f3['updateMarker'](_0x418a14,{'range':_0x1d396c}),_0x168a1c=!0x0;break;}}}return _0x168a1c;}),_0x207193['model']['document']['registerPostFixer'](_0x1907e2=>{let _0x2b3544=!0x1;const _0x220872=_0x207193['plugins']['get']('Users')['me'],_0x47f6f7=_0x12f73e['getSuggestions']()['filter'](_0x58fc67=>_0x58fc67['isInContent']&&_0x58fc67['author']==_0x220872),_0x328a82=new Set(),_0x346c31=new Set();for(const _0x976ba5 of _0x47f6f7)if('tablePaste'==_0x976ba5['subType'])for(const _0x515036 of _0x976ba5['getMarkers']()){const _0x2788ba=_0x515036['getRange']()['getContainedElement']();if(_0x2788ba){if(_0x2788ba['is']('element','tableCellSuggestion')&&Pe(_0x2788ba)){_0x976ba5['removeMarker'](_0x515036['name']),_0x328a82['add'](_0x2788ba),_0x2b3544=!0x0;const _0x5234a9=_0x2788ba['nextSibling'],_0x5c6ce4=_0x2788ba['previousSibling'],_0x167480=_0x5234a9&&_0x5234a9['is']('element','tableCellSuggestion'),_0x4ece4f=_0x5c6ce4&&_0x5c6ce4['is']('element','tableCellSuggestion');_0x167480&&!_0x328a82['has'](_0x5234a9)&&_0x346c31['add'](_0x5234a9),_0x4ece4f&&!_0x328a82['has'](_0x5c6ce4)&&_0x346c31['add'](_0x5c6ce4);}else _0x2788ba['is']('element','paragraph')&&_0x2788ba['isEmpty']&&(_0x976ba5['removeMarker'](_0x515036['name']),_0x2b3544=!0x0);}}else{if('tablePasteCell'==_0x976ba5['subType']){if(!_0x976ba5['attributes']||!_0x976ba5['attributes']['tablePasteChainId'])continue;const _0x34217f=_0x976ba5['attributes']['markerAttributes'];if(_0x34217f&&Object['keys'](_0x34217f)['length'])continue;const _0x4d8a3e=_0x976ba5['attributes']['tablePasteChainId'];let _0x5e4d84=!0x0,_0x1ecf01=!0x0;for(const _0x38b9ce of _0x47f6f7)if(_0x38b9ce['subType']&&_0x38b9ce['subType']['startsWith']('tablePaste')){if(!_0x38b9ce['attributes']['tablePasteChainId']){_0x1ecf01=!0x1;break;}if(_0x38b9ce['id']!=_0x976ba5['id']&&_0x38b9ce['attributes']['tablePasteChainId']==_0x4d8a3e){_0x5e4d84=!0x1;break;}}_0x1ecf01&&_0x5e4d84&&(_0x976ba5['removeMarkers'](),_0x2b3544=!0x0);}}for(const _0x25a00d of _0x328a82)_0x1907e2['remove'](_0x25a00d);for(const _0x14aa61 of _0x346c31)_0x1907e2['unwrap'](_0x14aa61);return _0x2b3544;}),_0x207193['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xddfe9d,_0x149f4f)=>_0xa3b400(_0xddfe9d),'converterPriority':'high'}),_0x207193['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b5bcd,_0x3432c7)=>_0x3432c7['options']['showSuggestionHighlights']?_0xa3b400(_0x5b5bcd,!0x1):null,'converterPriority':'high'});const _0x45a14a=_0x207193['editing']['view'];this['listenTo'](_0x45a14a['document'],'clipboardOutput',(_0x21720d,_0x34a674)=>{const _0x8de32a=[];for(const _0x528211 of _0x45a14a['createRangeIn'](_0x34a674['content'])['getItems']())_0x528211['is']('element','suggestion-td')&&_0x8de32a['push'](_0x528211);_0x45a14a['change'](_0x531623=>{for(const _0x523f7b of _0x8de32a)_0x531623['move'](_0x531623['createRangeIn'](_0x523f7b),_0x531623['createPositionBefore'](_0x523f7b)),_0x531623['remove'](_0x523f7b);});});}}function Pe(_0x20eba3){if(_0x20eba3['isEmpty'])return!0x0;const _0x43a307=_0x20eba3['getChild'](0x0);return _0x43a307['is']('element','paragraph')&&_0x43a307['isEmpty'];}function he(_0xaedf20,_0x2af8eb={},_0x4a9a96){for(const {isAnchor:_0x2e0f18,cellHeight:_0x5d2971,cellWidth:_0x17837c}of _0x4a9a96['createTableWalker'](_0xaedf20,{'includeAllSlots':!0x0,..._0x2af8eb}))if(!_0x2e0f18||0x1!=_0x5d2971||0x1!=_0x17837c)return!0x1;return!0x0;}class vt extends _0x3be5df{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1efd80=this['editor']['plugins']['get']('TrackChangesEditing');_0x1efd80['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1efd80['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1efd80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1efd80['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1efd80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1efd80['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1305bb,_0x4762fd){const _0x102d63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2343bb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x93a0c2=_0x4762fd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xa7593a=_0x2343bb['getColumnGroupElement'](_0x93a0c2);let _0x2de6d1=_0xa7593a?_0x2343bb['getTableColumnsWidths'](_0xa7593a):null,_0x2de996=_0x93a0c2['getAttribute']('tableWidth')||null;const _0x433d69=_0x4762fd['tableWidth']||_0x2de996,_0x37f24f=_0x4762fd['columnWidths']||_0x2de6d1,_0x2cef20=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d447b of _0x102d63['getSuggestions']()){const _0x2d8d57=_0x4d447b['getContainedElement']();if('resizeTable'===_0x4d447b['subType']&&_0x2d8d57===_0x93a0c2){_0x4d447b['author']!==_0x2cef20&&_0x4d447b['discard']();const _0xc0f520=_0x4d447b['data']['commandParams'];_0x2de996=_0xc0f520[0x0]['tableWidth'],_0x2de6d1=_0xc0f520[0x0]['columnWidths'];break;}}_0x1305bb({'table':_0x93a0c2,'tableWidth':_0x433d69,'columnWidths':_0x37f24f}),_0x102d63['markBlockFormat'](_0x93a0c2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2de996,'columnWidths':_0x2de6d1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1d7781){if('formatBlock'!=_0x1d7781['type']&&'formatInline'!=_0x1d7781['type'])return;const {data:_0x732280}=_0x1d7781;if(_0x732280&&'resizeTable'===_0x732280['formatGroupId']){const _0x1f533d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1f533d)};}}}class _t extends _0x3be5df{['afterInit'](){const _0x1c6bfa=this['editor'];_0x1c6bfa['plugins']['has']('Template')&&_0x1c6bfa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x3be5df{['afterInit'](){const _0x172a15=this['editor'];if(!_0x172a15['commands']['get']('insertTableOfContents'))return;_0x172a15['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x57254c=_0x172a15['plugins']['get']('TrackChangesEditing'),_0x216522=_0x172a15['locale'];_0x57254c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a7f04=>o(_0x216522,'ELEMENT_TABLE_OF_CONTENTS',_0x2a7f04));}}class Dt extends _0x3be5df{['afterInit'](){const _0xe7e1a8=this['editor'];if(!_0xe7e1a8['plugins']['has']('Title'))return;const _0x17b426=_0xe7e1a8['plugins']['get']('TrackChangesEditing');_0x17b426['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xe7e1a8['locale'],'ELEMENT_TITLE')),_0xe7e1a8['model']['document']['registerPostFixer'](_0x289fa0=>{let _0x1712ab=!0x1;const _0x43f55e=Array['from'](_0xe7e1a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32fd82,data:_0x489ab3}of _0x43f55e){const {group:_0x5f5401}=_0x17b426['_splitMarkerName'](_0x32fd82);if('suggestion'!==_0x5f5401||!_0x489ab3['newRange'])continue;const _0x56eed3=_0x489ab3['newRange'],_0x46be1f=_0x56eed3['end']['nodeBefore'];if(!_0x46be1f||!_0x46be1f['is']('element','title-content'))continue;if(!_0x56eed3['start']['isTouching'](_0x56eed3['end']))continue;const _0xaa2bce=_0xe7e1a8['model']['schema']['getNearestSelectionRange'](_0x56eed3['end'],'forward');if(_0xaa2bce&&_0xaa2bce['isCollapsed']){const _0x3bab97=_0x289fa0['createRange'](_0x56eed3['start'],_0xaa2bce['start']);_0x3bab97['isEqual'](_0x56eed3)||(_0x289fa0['updateMarker'](_0x32fd82,{'range':_0x3bab97}),_0x1712ab=!0x0);}_0x1712ab||(_0x289fa0['removeMarker'](_0x32fd82),_0x1712ab=!0x0);}return _0x1712ab;});}}class Nt extends _0x3be5df{['afterInit'](){const _0x4f6e97=this['editor'],_0x223f5f=_0x4f6e97['plugins']['get']('TrackChangesEditing');_0x4f6e97['plugins']['has']('UndoEditing')&&(_0x223f5f['enableCommand']('undo'),_0x223f5f['enableCommand']('redo'));}}class Mt extends _0x3be5df{static get['requires'](){return[jt];}['afterInit'](){const _0x154eec=this['editor'];if(!_0x154eec['plugins']['has']('TableCaptionEditing'))return;_0x154eec['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x3be5df{['tableProperties'];['tableCellProperties'];constructor(_0x1e9826){super(_0x1e9826),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 _0x122e11=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3b3884 of this['tableProperties'])_0x122e11['enableCommand'](_0x3b3884,(_0x29db24,_0x3e4519)=>{const _0x205117=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3b3884,[_0x205117],this['tableProperties'],'tableProperties',_0x29db24,_0x3e4519);});_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x122e11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x58c0fc,_0x41e29b)=>this['handleDiscardAction'](this['tableProperties'],_0x58c0fc,_0x41e29b)),_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1a590a of this['tableCellProperties'])_0x122e11['enableCommand'](_0x1a590a,(_0x4d355b,_0x53f730)=>{const _0x31af58=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1a590a,_0x31af58,this['tableCellProperties'],'tableCellProperties',_0x4d355b,_0x53f730);});_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x122e11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3b8aad,_0x1e8257)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3b8aad,_0x1e8257)),_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x122e11['descriptionFactory']['registerDescriptionCallback'](_0x3e6431=>this['handleSuggestionDescription'](_0x3e6431));}['_handlePropertyChange'](_0x43440e,_0x1356b4,_0x45ce4d,_0x2c06ce,_0x27f3fc,_0x31628c){const _0x5f1f39=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x31628c['batch'],()=>{for(const _0x4fb52b of _0x1356b4){if(this['_getSuggestion'](_0x4fb52b,_0x2c06ce))_0x27f3fc(_0x31628c);else{const _0xc3089d={};for(const _0x58c75f of _0x45ce4d){const _0x3517f6=_0x4fb52b['getAttribute'](_0x58c75f);void 0x0!==_0x3517f6&&(_0xc3089d[_0x58c75f]=_0x3517f6);}_0x27f3fc(_0x31628c),_0x5f1f39['markBlockFormat'](_0x4fb52b,{'commandParams':[_0xc3089d]},[],_0x2c06ce);}}});}['handleDiscardAction'](_0x15cfd9,_0x4f36be,_0x85b130){const _0x3e669a=_0x4f36be[0x0]['start']['nodeAfter'],_0x53ee40=_0x85b130['commandParams'][0x0];this['editor']['model']['change'](_0x561217=>{for(const _0x4cda4d of _0x15cfd9)void 0x0!==_0x53ee40[_0x4cda4d]?_0x561217['setAttribute'](_0x4cda4d,_0x53ee40[_0x4cda4d],_0x3e669a):_0x561217['removeAttribute'](_0x4cda4d,_0x3e669a);});}['handleSuggestionDescription'](_0x44347d){if(_0x44347d['data'])switch(_0x44347d['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'](_0x14cff2,_0x3f210e){const _0x112f36=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x323b10 of _0x112f36['getSuggestions']({'skipNotAttached':!0x0})){const _0x22328c=_0x323b10['getContainedElement']();if(_0x323b10['subType']===_0x3f210e&&_0x22328c===_0x14cff2)return _0x323b10;}return null;}}const m='$elementName';class p extends _0x3be5df{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3c67fa,_0x4a2131,E,V,U,O,G,F,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,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x4aa4ef){function _0x34851f(_0x3c5cc8){return _0x3c5cc8['map'](_0x9100b6=>String['fromCharCode'](_0x9100b6))['join']('');}super(_0x4aa4ef),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5b721a,_0x582a82,_0x2ecf14,_0x2790b4)=>{this['_model']['change'](()=>{for(const _0x15c09a of[..._0x2790b4,..._0x2ecf14])this['_model']['markers']['has'](_0x15c09a)&&_0x4aa4ef['editing']['reconvertMarker'](_0x15c09a);});}),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']=_0x4aa4ef['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(),_0x4aa4ef['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4aa4ef['config']['get']('trackChanges.trackFormatChanges'),_0x4aa4ef['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4aa4ef['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x4aa4ef,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x34851f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x34851f([0x34,0x30,0x34,0x38,0x31,0x30,0x34,0x36]);}['init'](){const _0x137c6f=this['editor'],_0x11b2f3=(_0x580586,_0xb9db58)=>{if('attribute'!=_0x580586)return'ck-suggestion-marker-'+_0x580586;const _0xaf8acc=_0xb9db58['split']('|')[0x0];return this['_isBlockAttribute'](_0xaf8acc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x137c6f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2c2b4b=>{const {id:_0x50eb95,type:_0x2a965f,subType:_0x3a5814}=this['_splitMarkerName'](_0x2c2b4b['markerName']),_0x3415a8=['ck-suggestion-marker',_0x11b2f3(_0x2a965f,_0x3a5814)];let _0x2155c2=0xbb8;return this['activeMarkers']['includes'](_0x2c2b4b['markerName'])&&(_0x3415a8['push']('ck-suggestion-marker--active'),_0x2155c2=0xbc2),'deletion'==_0x2a965f&&(_0x2155c2+=0x5),{'classes':_0x3415a8,'attributes':{'data-suggestion':_0x50eb95},'priority':_0x2155c2};}}),_0x137c6f['conversion']['for']('dataDowncast')['add'](_0x32a72e=>{_0x32a72e['on']('addMarker:suggestion',(_0x4f6ae9,_0x129bc2,_0x2e9fa1)=>{if(!_0x2e9fa1['options']['showSuggestionHighlights'])return;const _0x37ed44=_0x129bc2['item'];if(!_0x37ed44)return;const _0x5694ed=_0x2e9fa1['mapper']['toViewElement'](_0x37ed44);_0x137c6f['model']['schema']['isObject'](_0x37ed44)&&_0x5694ed&&!_0x5694ed['getCustomProperty']('widget')&&_0x5694ed['is']('containerElement')&&_0x47dbfc(_0x5694ed,_0x2e9fa1['writer']);},{'priority':'high'});}),_0x137c6f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x45ad5c,_0x1d0437)=>{if(!_0x1d0437['options']['showSuggestionHighlights'])return null;const {type:_0x3973f3,subType:_0x5c9403}=this['_splitMarkerName'](_0x45ad5c['markerName']);return{'classes':['ck-suggestion-marker',_0x11b2f3(_0x3973f3,_0x5c9403)],'priority':0xbb8};}});const _0x2116c1=({showActiveMarkers:_0x5372b7=!0x0,isAttributeSuggestion:_0x3c9f41=!0x1}={})=>(_0x1fffcb,_0x51205e,_0x59bed3)=>{if(!_0x51205e['item'])return;const {id:_0x4c70c3}=this['_splitMarkerName'](_0x51205e['markerName']);if(_0x3c9f41){const _0x40c2af=this['_suggestions']['get'](_0x4c70c3),_0x53849d=this['_getAttributeKey'](_0x40c2af);if(!this['_isBlockAttribute'](_0x53849d))return;}if(_0x51205e['item']['is']('selection'))return void _0x59bed3['consumable']['consume'](_0x51205e['item'],_0x1fffcb['name']);const _0x1479f9=_0x59bed3['mapper']['toViewElement'](_0x51205e['item']);if(_0x51205e['item']['is']('element')&&_0x137c6f['model']['schema']['isBlock'](_0x51205e['item'])&&!_0x1479f9['getCustomProperty']('addHighlight')){_0x59bed3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1479f9),_0x59bed3['writer']['setAttribute']('data-suggestion',_0x4c70c3,_0x1479f9),_0x59bed3['mapper']['bindElementToMarker'](_0x1479f9,_0x51205e['markerName']),_0x5372b7&&(this['activeMarkers']['includes'](_0x51205e['markerName'])?_0x59bed3['writer']['addClass']('ck-suggestion-marker--active',_0x1479f9):_0x59bed3['writer']['removeClass']('ck-suggestion-marker--active',_0x1479f9));for(const _0xb52727 of _0x137c6f['model']['createRangeIn'](_0x51205e['item'])['getItems']())_0x59bed3['consumable']['consume'](_0xb52727,_0x1fffcb['name']);_0x59bed3['consumable']['consume'](_0x51205e['item'],_0x1fffcb['name']);}};_0x137c6f['conversion']['for']('dataDowncast')['add'](_0x6d8ca7=>{_0x6d8ca7['on']('addMarker:suggestion:formatBlock',(_0x418470,_0xa77ae6,_0xd9de4c)=>{_0xd9de4c['options']['showSuggestionHighlights']&&_0x2116c1({'showActiveMarkers':!0x1})(_0x418470,_0xa77ae6,_0xd9de4c);},{'priority':'highest'});}),_0x137c6f['conversion']['for']('dataDowncast')['add'](_0x1bd5b7=>{_0x1bd5b7['on']('addMarker:suggestion:attribute',(_0x3ac161,_0x3725f9,_0x22ce12)=>{_0x22ce12['options']['showSuggestionHighlights']&&_0x2116c1({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3ac161,_0x3725f9,_0x22ce12);},{'priority':'highest'});}),_0x137c6f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x27f54e,_0x12e5ae)=>_0x12e5ae['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x27f54e['substr'](0xb)}}),_0x137c6f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41e974,{writer:_0x83c287})=>{let _0x25a809='suggestion:'+_0x41e974['getAttribute']('suggestion-type')+':'+_0x41e974['getAttribute']('id');return _0x41e974['getAttribute']('marker-count')&&(_0x25a809+=':'+_0x41e974['getAttribute']('marker-count')),_0x83c287['createElement']('$marker',{'data-name':_0x25a809});}}),_0x137c6f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x137c6f['conversion']['for']('editingDowncast')['add'](_0x4e08b5=>{_0x4e08b5['on']('addMarker:suggestion:formatBlock',_0x2116c1(),{'priority':'high'});}),_0x137c6f['conversion']['for']('editingDowncast')['add'](_0x38e5fe=>{_0x38e5fe['on']('addMarker:suggestion:attribute',_0x2116c1({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x137c6f['conversion']['for']('editingDowncast')['add'](_0x2e776d=>{_0x2e776d['on']('removeMarker:suggestion:formatBlock',(_0x1d0643,_0x4984c8,_0x2bf06a)=>{const _0x63d177=_0x2bf06a['mapper']['markerNameToElements'](_0x4984c8['markerName']);if(_0x63d177){for(const _0x317c09 of _0x63d177)_0x317c09['getCustomProperty']('addHighlight')||(_0x2bf06a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x317c09),_0x2bf06a['writer']['removeAttribute']('data-suggestion',_0x317c09),_0x2bf06a['mapper']['unbindElementFromMarkerName'](_0x317c09,_0x4984c8['markerName']));}},{'priority':'high'});}),_0x137c6f['conversion']['for']('editingDowncast')['add'](_0x3b912e=>{_0x3b912e['on']('removeMarker:suggestion:attribute',(_0x16f28b,_0x6575db,_0x11d1fd)=>{const _0x4e5a49=_0x11d1fd['mapper']['markerNameToElements'](_0x6575db['markerName']);if(!_0x4e5a49)return;const {id:_0x3853c5}=this['_splitMarkerName'](_0x6575db['markerName']),_0x39462f=this['_suggestions']['get'](_0x3853c5),_0x2a339a=this['_getAttributeKey'](_0x39462f);if(this['_isBlockAttribute'](_0x2a339a)){for(const _0x36b03c of _0x4e5a49)_0x36b03c['getCustomProperty']('addHighlight')||(_0x11d1fd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x36b03c),_0x11d1fd['writer']['removeAttribute']('data-suggestion',_0x36b03c),_0x11d1fd['mapper']['unbindElementFromMarkerName'](_0x36b03c,_0x6575db['markerName']));}},{'priority':'high'});}),_0x137c6f['model']['document']['registerPostFixer'](_0x44d854=>{let _0x187c60=!0x1;const _0x49eb1d=Array['from'](_0x137c6f['model']['document']['differ']['getChangedMarkers']()),_0xfe521e=new Set();for(const {name:_0xc1fee4,data:_0x45fbb2}of _0x49eb1d){const {group:_0x5ee8dd,type:_0x1078be,subType:_0x5081d7,id:_0x30a8bf}=this['_splitMarkerName'](_0xc1fee4);if('suggestion'!==_0x5ee8dd)continue;const _0x1bfc7c=this['_suggestions']['get'](_0x30a8bf);if(null!=_0x45fbb2['newRange']){'formatInline'==_0x1078be&&(_0x187c60=_0x187c60||Et(_0x45fbb2['newRange'],_0xc1fee4,_0x44d854,_0x137c6f['model']['schema']));const _0x3b6bc4='attribute'==_0x1078be&&this['_isBlockAttribute'](_0x5081d7['split']('|')[0x0]);if(_0x45fbb2['newRange']['isCollapsed']||'$graveyard'==_0x45fbb2['newRange']['root']['rootName']||'formatBlock'==_0x1078be&&!Ut(_0x45fbb2['newRange'])||_0x3b6bc4&&!Ut(_0x45fbb2['newRange'])||'deletion'==_0x1078be&&!(!Tt(_0x33a68d=_0x45fbb2['newRange'])&&!function(_0x4d2f01){return _0x4d2f01['start']['parent']==_0x4d2f01['end']['nodeBefore']&&_0x4d2f01['start']['isAtEnd'];}(_0x33a68d)))_0x44d854['removeMarker'](_0xc1fee4),_0x187c60=!0x0;else{if(!_0x1bfc7c||!_0x1bfc7c['isInContent'])continue;_0xfe521e['add'](_0x1bfc7c);}}}var _0x33a68d;return _0xfe521e['size']>0x0&&(_0x187c60=!!this['_joinWithAdjacentSuggestions'](_0xfe521e)||_0x187c60),_0x187c60;}),_0x137c6f['model']['document']['registerPostFixer'](_0x58af55=>{let _0x332d14=!0x1;for(const _0x2bc5dd of _0x137c6f['model']['document']['differ']['getChanges']())if('insert'==_0x2bc5dd['type'])for(const _0x2981cb of this['_suggestions']['values']()){if(_0x2981cb['isMultiRange']||!_0x2981cb['isInContent'])continue;const _0xb43d0a='formatBlock'==_0x2981cb['type'],_0x17c64f=this['_getAttributeKey'](_0x2981cb),_0x392d82=_0x17c64f&&this['_isBlockAttribute'](_0x17c64f);if(!_0xb43d0a&&!_0x392d82)continue;const _0x4d5c57=_0x2981cb['getFirstRange']();if(_0x4d5c57['start']['parent']!=_0x4d5c57['end']['parent']&&!_0x4d5c57['end']['isAtEnd']){const _0x46c554=_0x137c6f['model']['createPositionAt'](_0x4d5c57['start']['nodeAfter'],'end'),_0x5123e7=_0x137c6f['model']['createRange'](_0x4d5c57['start'],_0x46c554);_0x58af55['updateMarker'](_0x2981cb['getFirstMarker'](),{'range':_0x5123e7}),_0x332d14=!0x0;}}return _0x332d14;}),_0x137c6f['model']['document']['registerPostFixer'](_0x35b1ca=>this['_processAttributeChanges'](_0x35b1ca)),_0x137c6f['model']['document']['registerPostFixer'](_0x2d9b92=>!_0x2d9b92['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2d9b92)),_0x137c6f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x137c6f['model']['document']['on']('change:data',(_0x90a016,_0x4d05d5)=>{if(!_0x4d05d5['isLocal']||_0x4d05d5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ba41e=_0x137c6f['model']['document']['differ']['getChanges']();if(0x0==_0x4ba41e['length'])return;const _0x545ddf=[],_0x4f80ef=_0x4ba41e['filter'](_0x2a5de1=>'attribute'==_0x2a5de1['type']),_0x2ef3cf=_0x4ba41e['filter'](_0x13943a=>'insert'==_0x13943a['type']&&'$text'!=_0x13943a['name']),_0x4c0b72=_0x4ba41e['filter'](_0x36b534=>'remove'==_0x36b534['type']&&'$text'!=_0x36b534['name']);for(const _0x453654 of _0x4f80ef)this['_isRegisteredAttribute'](_0x453654['attributeKey'])&&_0x545ddf['push']({'key':_0x453654['attributeKey'],'newValue':_0x453654['attributeNewValue'],'oldValue':_0x453654['attributeOldValue'],'range':Ot(_0x453654['range'],_0x137c6f['model'])});for(const _0x7370a0 of _0x2ef3cf){const _0x167ce0=_0x4c0b72['find'](_0x3443ad=>_0x3443ad['_element']===_0x7370a0['_element']);if(_0x167ce0){const _0x366803=Ft(_0x7370a0['position']['nodeAfter'],_0x137c6f['model']);_0x167ce0['name']!==_0x7370a0['name']&&_0x545ddf['push']({'key':m,'newValue':_0x7370a0['name'],'oldValue':_0x167ce0['name'],'range':_0x366803});for(const [_0x5d1316,_0x494d81]of _0x167ce0['attributes']){if(!this['_isRegisteredAttribute'](_0x5d1316))continue;const _0x468451=_0x7370a0['attributes']['get'](_0x5d1316);_0x494d81!==_0x468451&&_0x545ddf['push']({'key':_0x5d1316,'newValue':_0x468451,'oldValue':_0x494d81,'range':_0x366803});}for(const [_0x2cf2a2,_0x51c068]of _0x7370a0['attributes'])this['_isRegisteredAttribute'](_0x2cf2a2)&&(_0x167ce0['attributes']['has'](_0x2cf2a2)||_0x545ddf['push']({'key':_0x2cf2a2,'newValue':_0x51c068,'oldValue':null,'range':_0x366803}));}}0x0!=_0x545ddf['length']&&_0x137c6f['model']['enqueueChange'](_0x4d05d5,_0xbaa7df=>{const _0x10fbbd=_0x3035a1();for(const {range:_0x4b01e7,key:_0x2efded,oldValue:_0x334ce1,newValue:_0x3a3edf}of _0x545ddf)this['markAttributeChange'](_0x4b01e7,_0x2efded,_0x334ce1,_0x3a3edf,{'groupId':_0x10fbbd});this['_reduceExistingSuggestions'](_0xbaa7df,_0x545ddf);});},{'priority':'lowest'}),_0x137c6f['model']['markers']['on']('update:suggestion',(_0x2fa823,_0x1f81a9,_0x1b7673)=>{if(null==_0x1b7673){const {id:_0x2f263f}=this['_splitMarkerName'](_0x1f81a9['name']),_0x2cf0a0=this['_suggestions']['get'](_0x2f263f);_0x2cf0a0&&_0x2cf0a0['addMarkerName'](_0x1f81a9['name']);}}),_0x137c6f['model']['document']['on']('change:data',()=>{const _0x16db61=Array['from'](_0x137c6f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x11a33a=>'suggestion'===this['_splitMarkerName'](_0x11a33a['name'])['group']);if(0x0===_0x16db61['length'])return;_0x16db61['sort']((_0x3fa6e0,_0x555e04)=>{const _0x1c9d81=_0x3fa6e0['data']['oldRange'],_0x5c2138=_0x555e04['data']['oldRange'];return null===_0x1c9d81&&null===_0x5c2138?0x0:null===_0x1c9d81&&null!==_0x5c2138?-0x1:null!==_0x1c9d81&&null===_0x5c2138?0x1:_0x1c9d81['start']['isBefore'](_0x5c2138['start'])?-0x1:0x1;});const _0x222769=new Set(),_0x955e62=new Set();for(const {name:_0x43ea6b,data:_0x57b10a}of _0x16db61){const {id:_0x3ebbf3}=this['_splitMarkerName'](_0x43ea6b);if(null===_0x57b10a['oldRange']){const _0x11e1f0=this['_handleNewSuggestionMarker'](_0x43ea6b);_0x955e62['add'](_0x11e1f0);}else{const _0x11d0ad=this['_suggestions']['get'](_0x3ebbf3);null!==_0x57b10a['newRange']||_0x11d0ad['isInContent']?(_0x222769['add'](_0x11d0ad['head']),_0x955e62['add'](_0x11d0ad)):this['_removeSuggestion'](_0x11d0ad);}}_0x955e62['size']>0x0&&this['_refreshSuggestionsChain'](_0x955e62);for(const _0x12aa56 of _0x222769)this['fire']('suggestionChanged',_0x12aa56);}),_0x137c6f['model']['on']('applyOperation',(_0x7af0a0,_0x2aa642)=>{const _0x3f33ce=_0x2aa642[0x0];if(!this['_suggestions']['size'])return;if(!_0x3f33ce['isDocumentOperation'])return;if(_0x3f33ce['batch']['isUndo']||!_0x3f33ce['batch']['isLocal'])return;let _0x396114,_0x245eaa;switch(_0x3f33ce['type']){case'insert':_0x396114=_0x137c6f['model']['createPositionAt'](_0x3f33ce['position']),_0x245eaa=_0x396114['getShiftedBy'](_0x3f33ce['howMany']);break;case'split':_0x396114=_0x137c6f['model']['createPositionAt'](_0x3f33ce['splitPosition']),_0x245eaa=_0x137c6f['model']['createPositionAt'](_0x3f33ce['moveTargetPosition']);break;case'move':_0x396114=_0x137c6f['model']['createPositionAt'](_0x3f33ce['targetPosition']),_0x245eaa=_0x396114['getShiftedBy'](_0x3f33ce['howMany']);break;default:return;}const _0x2c9863=_0x137c6f['model']['createRange'](_0x396114,_0x245eaa);_0x137c6f['model']['change'](()=>{for(const {suggestion:_0x28e5ca,meta:_0x3dce1d}of this['_findSuggestions'](_0x2c9863)){if(_0x28e5ca['isMultiRange'])continue;if('formatInline'==_0x28e5ca['type'])continue;const _0x41515f=this['_getAttributeKey'](_0x28e5ca);if(_0x41515f&&this['_isBlockAttribute'](_0x41515f)&&'split'!=_0x3f33ce['type'])continue;const _0xc088ca=_0x28e5ca['data']&&_0x28e5ca['data']['multipleBlocks'];('formatBlock'!=_0x28e5ca['type']||'split'==_0x3f33ce['type']&&!_0xc088ca)&&(_0x3dce1d['containsRangeInObject']||'insertion'==_0x28e5ca['type']&&_0x3dce1d['isOwn']||_0x28e5ca['getFirstRange']()['containsRange'](_0x2c9863)&&this['_breakSuggestionMarker'](_0x28e5ca,_0x396114,_0x245eaa));}});},{'priority':'lowest'}),_0x137c6f['model']['on']('deleteContent',(_0x3f4690,_0x3369ae)=>{const _0xa04172=_0x3369ae[0x0],_0x4f7d20=_0x3369ae[0x1];if(_0x4f7d20&&_0x4f7d20['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xa04172['isCollapsed'])return;const _0x1acb70=_0x137c6f['model']['schema'],{start:_0x4e7613,end:_0x2c2198}=_0xa04172['getFirstRange'](),_0x268008=_0x4e7613['nodeAfter']&&_0x1acb70['isLimit'](_0x4e7613['nodeAfter'])?null:_0x1acb70['getNearestSelectionRange'](_0x4e7613,'forward'),_0xc6946f=_0x2c2198['nodeBefore']&&_0x1acb70['isLimit'](_0x2c2198['nodeBefore'])?null:_0x1acb70['getNearestSelectionRange'](_0x2c2198,'backward'),_0xf9c616=_0x137c6f['model']['createRange'](_0x268008?_0x268008['start']:_0x4e7613,_0xc6946f?_0xc6946f['end']:_0x2c2198);_0x137c6f['model']['change'](_0x258e6c=>{this['markDeletion'](_0xf9c616);const _0x273b48=_0x137c6f['model']['schema']['getNearestSelectionRange'](_0xf9c616['start']);_0xa04172['is']('documentSelection')?_0x258e6c['setSelection'](_0x273b48):_0xa04172['setTo'](_0x273b48);}),_0x3f4690['stop']();},{'priority':_0x3b4600['normal']+0xa}),_0x137c6f['model']['on']('insertContent',(_0x19d87f,_0x2badae)=>{const _0x34b9cf=_0x2badae[_0x2badae['length']-0x1];_0x34b9cf&&_0x34b9cf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x137c6f['model']['change'](()=>{let _0x4d2656=_0x137c6f['model']['insertContent'](_0x2badae[0x0],_0x2badae[0x1],_0x2badae[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d2656)return;_0x19d87f['return']=_0x4d2656['clone']();const _0x478326=_0x4d2656['end']['nodeBefore'],_0x45b298=_0x137c6f['model']['schema'];_0x478326&&_0x45b298['isBlock'](_0x478326)&&!_0x45b298['isObject'](_0x478326)&&(_0x4d2656=_0x137c6f['model']['createRange'](_0x4d2656['start'],_0x137c6f['model']['createPositionAt'](_0x478326,'end'))),this['markInsertion'](_0x4d2656);}),_0x19d87f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xd30dc=new $(_0x137c6f,this['_suggestions']);_0x137c6f['commands']['add']('acceptSuggestion',_0xd30dc),this['enableCommand']('acceptSuggestion');const _0x248d57=new B(_0x137c6f,this['_suggestions']);_0x137c6f['commands']['add']('discardSuggestion',_0x248d57),this['enableCommand']('discardSuggestion'),_0x137c6f['commands']['add']('acceptAllSuggestions',new x(_0x137c6f,_0xd30dc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x137c6f['commands']['add']('discardAllSuggestions',new x(_0x137c6f,_0x248d57,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x137c6f['commands']['add']('acceptSelectedSuggestions',new R(_0x137c6f,_0xd30dc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x137c6f['commands']['add']('discardSelectedSuggestions',new R(_0x137c6f,_0x248d57,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x57c2b4=_0x137c6f['plugins']['get']('CommentsRepository');this['listenTo'](_0x57c2b4,'addComment',(_0x51715c,{threadId:_0x2f69e5})=>{const _0x300527=this['_suggestions']['get'](_0x2f69e5);_0x300527&&_0x300527['commentThread']&&0x1===_0x300527['commentThread']['length']&&this['_updateSuggestionData'](_0x2f69e5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x57c2b4,'removeComment',(_0x162fb9,{threadId:_0xa6e411})=>{const _0x291fb4=this['_suggestions']['get'](_0xa6e411);_0x291fb4&&_0x291fb4['commentThread']&&!_0x291fb4['commentThread']['length']&&this['_updateSuggestionData'](_0xa6e411,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x21af0f){if(this['_adapter'])throw new _0x357ebd('track-changes-adapter-already-set',this);this['_adapter']=_0x21af0f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5f237c=!0x1,toJSON:_0x34d124=!0x1}={}){const _0x3eb8a4=[];for(const _0x1ca6d5 of this['_suggestions']['values']())_0x5f237c&&!_0x1ca6d5['isInContent']||_0x3eb8a4['push'](_0x1ca6d5);return _0x34d124?_0x3eb8a4['map'](_0x55199a=>_0x55199a['toJSON']()):_0x3eb8a4;}['getSuggestion'](_0x3f0012){const _0x371768=this['_suggestions']['get'](_0x3f0012);if(!_0x371768)throw new _0x357ebd('track-changes-suggestion-not-found',this);return _0x371768;}['hasSuggestion'](_0x2646c7){return this['_suggestions']['has'](_0x2646c7);}['addSuggestionData'](_0x4236c7){const {authorId:_0x23cfb9,id:_0x4e1018,attributes:_0x5b1825}=_0x4236c7,[_0x12e687,_0xae1260]=_0x4236c7['type']['split'](':'),_0x233688=this['_suggestions']['get'](_0x4e1018)||this['_createSuggestion'](_0x12e687,_0xae1260,_0x4e1018,_0x23cfb9,_0x5b1825);if(this['_addThreadToSuggestion'](_0x233688),this['_checkSuggestionCorrectness'](_0x233688,_0x12e687,_0xae1260||null,_0x23cfb9),_0x233688['createdAt']=_0x4236c7['createdAt'],_0x233688['_isDataLoaded']=!0x0,_0x5b1825&&_0x5b1825['@external']){const _0x161f68=_0x5b1825['@external'],_0x58bb45=this['_getExternalAuthor'](_0x161f68['authorName']);_0x233688['authoredAt']=_0x161f68['createdAt'],_0x233688['author']=_0x58bb45,_0x233688['isExternal']=!0x0;}else _0x233688['authoredAt']=_0x4236c7['createdAt'];switch(_0x4236c7['data']&&(_0x233688['data']=_0x4236c7['data']),_0x4236c7['attributes']&&(_0x233688['attributes']=_0x4236c7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x233688['_saved']=!0x0),this['_suggestionState']['get'](_0x233688)){case'notReady':this['_suggestionState']['set'](_0x233688,'dataReady');break;case'markerReady':_0x233688['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x233688])),this['_refreshSuggestionsChain'](new Set([_0x233688])),this['_suggestionState']['set'](_0x233688,'ready'),this['fire']('suggestionLoaded',_0x233688)):this['_suggestionState']['set'](_0x233688,'removed');}return _0x233688;}['acceptSuggestion'](_0x1374e9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x11cdfc of _0x1374e9['getAllAdjacentSuggestions']())_0x11cdfc['accept']();});});}['discardSuggestion'](_0x59fa39){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xfca6a5 of _0x59fa39['getAllAdjacentSuggestions']())_0xfca6a5['discard']();});});}['enableCommand'](_0x20f847,_0x317ab8){const _0x47376c=this['editor']['commands']['get'](_0x20f847);if(!_0x47376c)throw new _0x357ebd('track-changes-command-not-found',this,{'commandName':_0x20f847});if(this['_enabledCommands']['has'](_0x47376c))throw new _0x357ebd('track-changes-enable-command-twice',this,{'commandName':_0x20f847});this['_enabledCommands']['add'](_0x47376c),_0x317ab8&&_0x47376c['on']('execute',(_0x49388d,_0x7facfa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x7facfa['length']>0x0&&_0x7facfa[_0x7facfa['length']-0x1]&&_0x7facfa[_0x7facfa['length']-0x1]['forceDefaultExecution']?_0x7facfa['pop']():(_0x49388d['return']=_0x317ab8((..._0x2329f9)=>_0x47376c['execute'](..._0x2329f9,{'forceDefaultExecution':!0x0}),..._0x7facfa),_0x49388d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x417e4e){let _0x5e0bb4,_0x4ee89c;const _0x2d9295=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5e0bb4=_0x417e4e();}catch(_0x210415){_0x4ee89c=_0x210415;}return _0x2d9295||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4ee89c&&_0x357ebd['rethrowUnexpectedError'](_0x4ee89c,this),_0x5e0bb4;}['markInsertion'](_0xf1d53e,_0x8ee97=null,_0x442e61={}){if(_0xf1d53e['isCollapsed'])return null;const _0x10d404=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xe87b93,meta:_0x5be9f7}of this['_findSuggestions'](_0xf1d53e,'insertion'))if(_0x5be9f7['isOwn']){if(!_0x5be9f7['isNextTo']){if(_0x5be9f7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0xe87b93,_0x442e61))continue;return _0xe87b93;}if(Lt(_0xe87b93,_0x442e61))return _0xe87b93;this['_breakSuggestionMarker'](_0xe87b93,_0xf1d53e['start'],_0xf1d53e['end']);break;}if(_0x8ee97==_0xe87b93['subType']&&Lt(_0xe87b93,_0x442e61)){const _0x24fb07=_0xe87b93['getFirstRange']();return _0x24fb07['start']['isEqual'](_0xf1d53e['end'])?this['_setSuggestionRange'](_0xe87b93,this['_model']['createRange'](_0xf1d53e['start'],_0x24fb07['end'])):this['_setSuggestionRange'](_0xe87b93,this['_model']['createRange'](_0x24fb07['start'],_0xf1d53e['end'])),_0xe87b93;}}const _0x89bc6=_0x3035a1(),_0x43868b=_0x10d404['id'],_0x4bc781=_0x8ee97?'insertion:'+_0x8ee97:'insertion',_0x6e94f8=this['_setSuggestionData']({'id':_0x89bc6,'type':_0x4bc781,'createdAt':new Date(),'authorId':_0x43868b,'attributes':_0x442e61});return this['_addSuggestionMarker'](_0x4bc781,_0x89bc6,_0x43868b,_0xf1d53e),_0x6e94f8;}['markMultiRangeInsertion'](_0x4864b9,_0x4ffb4e='multi',_0x4ea507={}){const _0x431c7a=this['editor']['plugins']['get']('Users')['me'],_0x5b896d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4ffb4e,'join');for(const _0x10858a of this['getSuggestions']())if(_0x10858a['author']['id']==_0x431c7a['id']&&'insertion'==_0x10858a['type']&&_0x10858a['subType']==_0x4ffb4e&&Lt(_0x10858a,_0x4ea507)&&(_0x5b896d(_0x10858a['getRanges'](),_0x4864b9)||_0x5b896d(_0x4864b9,_0x10858a['getRanges']()))){for(const _0x275e58 of _0x4864b9)_0x10858a['addRange'](_0x275e58);return _0x10858a;}for(const {suggestion:_0x2a81f7,meta:_0x111fca}of this['_findSuggestions'](_0x4864b9,'insertion')){if(!_0x111fca['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x111fca['containsRangeInObject'])continue;if(!Lt(_0x2a81f7,_0x4ea507))continue;let _0x6835f0=!0x0;for(const _0x1f392a of _0x2a81f7['getRanges']())for(const _0x93bfe8 of _0x4864b9)if(!_0x1f392a['containsRange'](_0x93bfe8)){_0x6835f0=!0x1;break;}if(_0x6835f0)return _0x2a81f7;}const _0x1c9384=_0x3035a1(),_0x22fe5d=_0x431c7a['id'],_0x2bab62='insertion:'+_0x4ffb4e,_0x86a2a=this['_setSuggestionData']({'id':_0x1c9384,'type':_0x2bab62,'createdAt':new Date(),'authorId':_0x22fe5d,'attributes':_0x4ea507});for(const _0x2886fe of _0x4864b9)this['_addSuggestionMarker'](_0x2bab62,_0x1c9384,_0x22fe5d,_0x2886fe,u['getMultiRangeId']());return _0x86a2a;}['markInlineFormat'](_0x111622,_0x1fd72c,_0x37ea4e=null,_0x1ba837={}){if(_0x37ea4e=_0x37ea4e||Vt(_0x1fd72c),_0x111622['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x594600=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37ea4e,'accept');return this['forceDefaultExecution'](()=>_0x594600([_0x111622],_0x1fd72c,_0x1ba837)),null;}const _0x51aa38=this['editor']['plugins']['get']('Users')['me'],_0x2a2299=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2f8cd9,meta:_0x5c25cb}of this['_findSuggestions'](_0x111622,'insertion'))_0x5c25cb['isOwn']&&!_0x5c25cb['isInsideObject']&&_0x2a2299['push'](..._0x2f8cd9['getRanges']());}const _0x90de2f=function(_0x59a177,_0x14b2ca){const _0x234175=[];for(const _0xfa2a08 of _0x14b2ca){const _0xbe9ea1=_0x59a177['getIntersection'](_0xfa2a08);_0xbe9ea1&&_0x234175['push'](_0xbe9ea1);}return _0x234175;}(_0x111622,_0x2a2299),_0x1e1ea5=function(_0x6508ec,_0x4f835e){const _0x3af40c=[_0x6508ec];for(const _0x5d65c5 of _0x4f835e){let _0x2aaec2=0x0;for(;_0x2aaec2<_0x3af40c['length'];){const _0x3f3b32=_0x3af40c[_0x2aaec2]['getDifference'](_0x5d65c5);_0x3af40c['splice'](_0x2aaec2,0x1,..._0x3f3b32),_0x2aaec2+=_0x3f3b32['length'];}}return _0x3af40c;}(_0x111622,_0x2a2299);_0x90de2f['length']&&this['_model']['change'](()=>{for(const _0x53c121 of _0x90de2f){const _0x317e81=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37ea4e,'accept');this['forceDefaultExecution'](()=>_0x317e81([_0x53c121],_0x1fd72c,_0x1ba837));}});for(const _0x31fbcd of _0x1e1ea5){let _0x13ee88=null,_0x179c2a=_0x31fbcd['start'],_0x261981=_0x31fbcd['end'];for(const {suggestion:_0xf8731b,meta:_0x31f9be}of this['_findSuggestions'](_0x31fbcd,'formatInline')){if(!_0x31f9be['isOwn'])continue;if(_0xf8731b['subType']!=_0x37ea4e)continue;if(!Lt(_0xf8731b,_0x1ba837))continue;const _0x1c5320=_0xf8731b['getFirstRange']();if(_0x1c5320['containsRange'](_0x31fbcd,!0x0))return null;_0x179c2a=_0x179c2a['isBefore'](_0x1c5320['start'])?_0x179c2a:_0x1c5320['start'],_0x261981=_0x261981['isAfter'](_0x1c5320['end'])?_0x261981:_0x1c5320['end'],_0x13ee88?_0x1c5320['start']['isBefore'](_0x13ee88['getFirstRange']()['start'])?(_0x13ee88['removeMarkers'](),_0x13ee88=_0xf8731b):_0xf8731b['removeMarkers']():_0x13ee88=_0xf8731b;}const _0x4ee0e6=this['_model']['createRange'](_0x179c2a,_0x261981);if(_0x13ee88)this['_setSuggestionRange'](_0x13ee88,_0x4ee0e6);else{const _0x39089f=_0x3035a1(),_0x585b1f=_0x51aa38['id'];this['_setSuggestionData']({'id':_0x39089f,'type':'formatInline:'+_0x37ea4e,'data':_0x1fd72c,'createdAt':new Date(),'authorId':_0x585b1f,'attributes':_0x1ba837}),this['_addSuggestionMarker']('formatInline:'+_0x37ea4e,_0x39089f,_0x585b1f,_0x4ee0e6);}}return null;}['markBlockFormat'](_0x5af6da,_0x30c71d,_0x1b449d=[],_0x4f2ba7=null,_0x1f57b6={}){_0x30c71d['formatGroupId']||(_0x30c71d['formatGroupId']=_0x30c71d['commandName']),_0x30c71d['multipleBlocks']=_0x5af6da['is']('range'),_0x4f2ba7=_0x4f2ba7||Vt(_0x30c71d);const _0x41f7f3=_0x1b449d['map'](_0x2eab24=>Ft(_0x2eab24,this['_model'])),_0x2fade6=_0x5af6da['is']('range')?_0x5af6da:Ft(_0x5af6da,this['_model']);if('never'===this['_trackFormatChanges']){const _0x280336=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f2ba7,'accept');return this['forceDefaultExecution'](()=>_0x280336([_0x2fade6],_0x30c71d,_0x1f57b6)),null;}_0x41f7f3['push'](_0x2fade6);let _0x487a0e=!0x0;for(const _0x16e020 of _0x41f7f3)if(!this['_rangeIsInLocalUserInsertion'](_0x16e020)){_0x487a0e=!0x1;break;}if(_0x487a0e&&'always'!==this['_trackFormatChanges']){const _0x1a8378=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f2ba7,'accept');return this['forceDefaultExecution'](()=>_0x1a8378([_0x2fade6],_0x30c71d,_0x1f57b6)),null;}let _0x5b3e01=null,_0x4909f8=_0x2fade6['start'],_0x543bbb=_0x2fade6['end'];for(const {suggestion:_0x3bbbb0,meta:_0x350fe9}of this['_findSuggestions'](_0x2fade6,'formatBlock')){if(!_0x350fe9['isOwn'])continue;if(_0x350fe9['isNextTo']||_0x350fe9['containsRangeInObject']||_0x350fe9['isInsideObject'])continue;if(_0x3bbbb0['data']['formatGroupId']!=_0x30c71d['formatGroupId'])continue;if(!Lt(_0x3bbbb0,_0x1f57b6))continue;const _0x5167d8=_0x3bbbb0['getFirstRange']();if(_0x3bbbb0['subType']==_0x4f2ba7){if(_0x5167d8['containsRange'](_0x2fade6,!0x0))return null;_0x4909f8=_0x4909f8['isBefore'](_0x5167d8['start'])?_0x4909f8:_0x5167d8['start'],_0x543bbb=_0x543bbb['isAfter'](_0x5167d8['end'])?_0x543bbb:_0x5167d8['end'],_0x5b3e01?_0x5167d8['start']['isBefore'](_0x5b3e01['getFirstRange']()['start'])?(_0x5b3e01['removeMarkers'](),_0x5b3e01=_0x3bbbb0):_0x3bbbb0['removeMarkers']():_0x5b3e01=_0x3bbbb0;}else{const _0x2ea17f=_0x2fade6['getIntersection'](_0x5167d8);this['_cutOutSuggestionMarker'](_0x3bbbb0,_0x2ea17f);}}const _0x253bdc=this['editor']['plugins']['get']('Users')['me'],_0x49b07b=_0x3035a1(),_0x1a9fc1=_0x253bdc['id'];if(_0x5b3e01)return this['_setSuggestionRange'](_0x5b3e01,this['_model']['createRange'](_0x4909f8,_0x543bbb)),_0x5b3e01;{const _0x17f30e=this['_setSuggestionData']({'id':_0x49b07b,'type':'formatBlock:'+_0x4f2ba7,'data':_0x30c71d,'createdAt':new Date(),'authorId':_0x1a9fc1,'attributes':_0x1f57b6});return this['_addSuggestionMarker']('formatBlock:'+_0x4f2ba7,_0x49b07b,_0x1a9fc1,this['_model']['createRange'](_0x4909f8,_0x543bbb)),_0x17f30e;}}['markMultiRangeBlockFormat'](_0x12f957,_0x32cecd,_0x2504a4=[],_0x3f7da8=null,_0x27c28c={}){_0x32cecd['formatGroupId']||(_0x32cecd['formatGroupId']=_0x32cecd['commandName']);const _0x15dba4=_0x12f957[0x0];_0x32cecd['multipleBlocks']=_0x15dba4['is']('range'),_0x3f7da8=_0x3f7da8||Vt(_0x32cecd);const _0x5bf752=_0x2504a4['map'](_0x181abd=>Ft(_0x181abd,this['_model'])),_0x206747=_0x15dba4['is']('range')?_0x12f957:_0x12f957['map'](_0x43dd46=>Ft(_0x43dd46,this['_model']));if('never'===this['_trackFormatChanges']){const _0x51b04f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f7da8,'accept');return this['forceDefaultExecution'](()=>_0x51b04f(_0x206747,_0x32cecd,_0x27c28c)),null;}_0x5bf752['push'](..._0x206747);let _0x31e9e5=!0x0;for(const _0x5a0bb1 of _0x5bf752)if(!this['_rangeIsInLocalUserInsertion'](_0x5a0bb1)){_0x31e9e5=!0x1;break;}if(_0x31e9e5&&'always'!==this['_trackFormatChanges']){const _0x109c48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f7da8,'accept');return this['forceDefaultExecution'](()=>_0x109c48(_0x206747,_0x32cecd,_0x27c28c)),null;}const _0x492bff=this['editor']['plugins']['get']('Users')['me'];for(const _0x3be57a of this['getSuggestions']()){if(_0x3be57a['author']['id']!=_0x492bff['id'])continue;if('formatBlock'!=_0x3be57a['type']||_0x3be57a['data']['formatGroupId']!=_0x32cecd['formatGroupId'])continue;if(!Lt(_0x3be57a,_0x27c28c))continue;const _0x2fa05c=_0x3be57a['subType']==_0x3f7da8;for(let _0x36c64c=0x0;_0x36c64c<_0x206747['length'];_0x36c64c++){const _0x375a6e=_0x206747[_0x36c64c];for(const _0x525a1b of _0x3be57a['getMarkers']()){const _0x532f0b=_0x525a1b['getRange']();if(_0x375a6e['isEqual'](_0x532f0b)){_0x2fa05c?(_0x206747['splice'](_0x36c64c,0x1),_0x36c64c--):_0x3be57a['removeMarker'](_0x525a1b['name']);break;}}}}if(0x0==_0x206747['length'])return null;const _0x1a95ab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f7da8,'join');for(const _0x56c5c1 of this['getSuggestions']())if(_0x56c5c1['author']['id']==_0x492bff['id']&&'formatBlock'==_0x56c5c1['type']&&_0x56c5c1['data']['formatGroupId']==_0x32cecd['formatGroupId']&&_0x56c5c1['subType']==_0x3f7da8&&Lt(_0x56c5c1,_0x27c28c)&&(_0x1a95ab(_0x56c5c1['getRanges'](),_0x206747)||_0x1a95ab(_0x206747,_0x56c5c1['getRanges']()))){for(const _0x37be42 of _0x206747)_0x56c5c1['addRange'](_0x37be42);return _0x56c5c1;}const _0xf3dd89=_0x3035a1(),_0x4678f5=_0x492bff['id'],_0x41fc36='formatBlock:'+_0x3f7da8,_0x50c914=this['_setSuggestionData']({'id':_0xf3dd89,'type':_0x41fc36,'data':_0x32cecd,'createdAt':new Date(),'authorId':_0x4678f5,'attributes':_0x27c28c});for(const _0x49f96b of _0x206747)this['_addSuggestionMarker'](_0x41fc36,_0xf3dd89,_0x4678f5,_0x49f96b,u['getMultiRangeId']());return _0x50c914;}['markDeletion'](_0x2d8e6d,_0x4404d4=null,_0x3dc91f={}){if(_0x2d8e6d['isCollapsed'])return null;const _0x48f3d0=this['editor']['plugins']['get']('Users')['me'],_0x462999=new _0x2ded21(_0x2d8e6d['start'],_0x2d8e6d['end']);for(const {suggestion:_0x5f115c,meta:_0x53dfd1}of this['_findSuggestions'](_0x462999,'insertion'))if(_0x53dfd1['isOwn']&&!_0x53dfd1['isNextTo']){if(_0x5f115c['isMultiRange']){const _0x2f4505=_0x5f115c['getRanges']()['filter'](_0x54d8be=>'$graveyard'!=_0x54d8be['root']['rootName']);_0x2f4505['every'](_0x3415cd=>_0x462999['containsRange'](_0x3415cd,!0x0))&&_0x5f115c['discard']();if(_0x2f4505['some'](_0x4876c7=>_0x4876c7['containsRange'](_0x462999,!0x0))){const _0x4a2b33=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4404d4,'accept');return this['forceDefaultExecution'](()=>_0x4a2b33([_0x462999],null,_0x3dc91f)),null;}}else{const _0x532932=_0x462999['getIntersection'](_0x5f115c['getFirstRange']());null!==_0x532932&&_0x5f115c['_onDiscard']([_0x532932],null,_0x3dc91f);}}if(_0x462999['detach'](),_0x462999['isCollapsed']||'$graveyard'==_0x462999['root']['rootName'])return null;let _0x1f749c=null,_0x5d7ca4=_0x462999['start'],_0x51d212=_0x462999['end'];const _0x1af8b1=this['_findSuggestions'](_0x462999,'deletion');for(const {suggestion:_0x53e093,meta:_0x5d607d}of _0x1af8b1){const _0xcf357=this['_model']['createRange'](_0x5d7ca4,_0x51d212);if(_0x5d607d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5d607d['containsRangeInObject']&&!_0x5d607d['isInsideObject'])){if(_0x53e093['isMultiRange']){if(!Lt(_0x53e093,_0x3dc91f))continue;let _0x57ad79=!0x0;for(const _0x105cc7 of _0x53e093['getRanges']()){if(_0x105cc7['containsRange'](_0xcf357,!0x0))return _0x53e093;_0xcf357['containsRange'](_0x105cc7)||(_0x57ad79=!0x1);}_0x57ad79&&_0x53e093['discard']();}else{const _0x2e7400=_0x53e093['getFirstRange']();if(_0x2e7400['containsRange'](_0xcf357,!0x0))return _0x53e093;if(!Lt(_0x53e093,_0x3dc91f)){_0xcf357['containsRange'](_0x2e7400)?_0x53e093['removeMarkers']():_0x2e7400['containsPosition'](_0x5d7ca4)?_0x5d7ca4=_0x2e7400['end']:_0x2e7400['containsPosition'](_0x51d212)&&(_0x51d212=_0x2e7400['start']);continue;}_0x5d7ca4=_0x5d7ca4['isBefore'](_0x2e7400['start'])?_0x5d7ca4:_0x2e7400['start'],_0x51d212=_0x51d212['isAfter'](_0x2e7400['end'])?_0x51d212:_0x2e7400['end'],_0x3dc91f=Object['assign']({},_0x53e093['attributes']),_0x1f749c?_0x2e7400['start']['isBefore'](_0x1f749c['getFirstRange']()['start'])?(_0x1f749c['removeMarkers'](),_0x1f749c=_0x53e093):_0x53e093['removeMarkers']():_0x1f749c=_0x53e093;}}}if(_0x1f749c)return this['_setSuggestionRange'](_0x1f749c,this['_model']['createRange'](_0x5d7ca4,_0x51d212)),_0x1f749c;{const _0x1a2e2d=_0x3035a1(),_0x5900f5=this['_model']['createRange'](_0x5d7ca4,_0x51d212),_0x35efe1=_0x48f3d0['id'],_0x4c0716=_0x4404d4?'deletion:'+_0x4404d4:'deletion',_0x3f52d7=this['_setSuggestionData']({'id':_0x1a2e2d,'type':_0x4c0716,'createdAt':new Date(),'authorId':_0x35efe1,'attributes':_0x3dc91f});return this['_addSuggestionMarker'](_0x4c0716,_0x1a2e2d,_0x35efe1,_0x5900f5),_0x3f52d7;}}['markMultiRangeDeletion'](_0x19a336,_0x296030='multi',_0x3c6ef4={}){const _0x2bacf9=this['editor']['plugins']['get']('Users')['me'],_0x19678c=_0x19a336['map'](_0x33022e=>new _0x2ded21(_0x33022e['start'],_0x33022e['end'])),_0x36e146=new Set();for(const {suggestion:_0x24f8c5,meta:_0x846dae}of this['_findSuggestions'](_0x19678c,'insertion'))_0x846dae['isOwn']&&!_0x846dae['isNextTo']&&_0x36e146['add'](_0x24f8c5);for(const _0x4ce316 of _0x36e146)if(_0x4ce316['isMultiRange']){const _0x10828b=_0x4ce316['getRanges']();(!_0x4ce316['attributes']||!_0x4ce316['attributes']['skipNestingCheck'])&&(_0x10828b['every'](_0x2df378=>_0x19678c['some'](_0x50bfe2=>_0x50bfe2['containsRange'](_0x2df378,!0x0)))&&_0x4ce316['discard']());if(_0x19678c['every'](_0x58ba2d=>_0x10828b['some'](_0x3c7bb6=>_0x3c7bb6['containsRange'](_0x58ba2d,!0x0)))){const _0xb7f9d4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x296030,'accept');return this['forceDefaultExecution'](()=>_0xb7f9d4(_0x19a336,null,_0x3c6ef4)),null;}}else{const _0x6ef4d3=_0x4ce316['getFirstRange']();_0x19678c['some'](_0x238d1a=>_0x238d1a['containsRange'](_0x6ef4d3,!0x0))&&_0x4ce316['discard']();if(_0x19678c['every'](_0x3dc766=>_0x6ef4d3['containsRange'](_0x3dc766,!0x0))){const _0x994a0e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x296030,'accept');return this['forceDefaultExecution'](()=>_0x994a0e(_0x19678c,null,_0x3c6ef4)),null;}}const _0x1d3326=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x296030,'join');let _0x49f8dc=null;for(const _0x24383c of this['getSuggestions']())if(_0x24383c['author']['id']==_0x2bacf9['id']&&_0x24383c['isInContent']&&'deletion'==_0x24383c['type']&&_0x24383c['subType']==_0x296030&&Lt(_0x24383c,_0x3c6ef4)&&(_0x1d3326(_0x24383c['getRanges'](),_0x19678c)||_0x1d3326(_0x19678c,_0x24383c['getRanges']()))){if(_0x49f8dc){if(_0x24383c['commentThread']&&_0x24383c['commentThread']['length'])continue;for(const _0x5c325f of _0x24383c['getRanges']())_0x49f8dc['isIntersectingWithRange'](_0x5c325f)||_0x49f8dc['addRange'](_0x5c325f);_0x24383c['removeMarkers']();}else{_0x49f8dc=_0x24383c;for(const _0x5a72f5 of _0x19678c)_0x24383c['isIntersectingWithRange'](_0x5a72f5)||_0x24383c['addRange'](_0x5a72f5);}}if(_0x49f8dc)return _0x49f8dc;_0x36e146['clear']();for(const {suggestion:_0x23606c,meta:_0x8cd772}of this['_findSuggestions'](_0x19678c,'deletion'))_0x8cd772['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8cd772['containsRangeInObject']&&!_0x8cd772['isInsideObject'])&&Lt(_0x23606c,_0x3c6ef4)&&_0x36e146['add'](_0x23606c);for(const _0x5c2db1 of _0x36e146){const _0x227af6=_0x5c2db1['getRanges']();if(!_0x3c6ef4||!_0x3c6ef4['skipNestingCheck']){if(_0x19678c['every'](_0x792bd8=>_0x227af6['some'](_0x295f98=>_0x295f98['containsRange'](_0x792bd8,!0x0))))return _0x5c2db1;}(!_0x5c2db1['attributes']||!_0x5c2db1['attributes']['skipNestingCheck'])&&(_0x227af6['every'](_0x14ad50=>_0x19678c['some'](_0x14294f=>_0x14294f['containsRange'](_0x14ad50,!0x0)))&&_0x5c2db1['discard']());}const _0x440864=_0x3035a1(),_0x287213=_0x2bacf9['id'],_0x3d5694='deletion:'+_0x296030,_0x2754df=this['_setSuggestionData']({'id':_0x440864,'type':_0x3d5694,'createdAt':new Date(),'authorId':_0x287213,'attributes':_0x3c6ef4});for(const _0x47e880 of _0x19678c)_0x47e880['detach'](),_0x47e880['isCollapsed']||'$graveyard'==_0x47e880['root']['rootName']||this['_addSuggestionMarker'](_0x3d5694,_0x440864,_0x287213,_0x47e880,u['getMultiRangeId']());return _0x2754df;}['markAttributeChange'](_0xaf94bc,_0xcfa19b,_0x1532ac,_0x48b983,_0x53c5dd){if(_0xaf94bc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27b3e7=this['editor']['plugins']['get']('Users')['me']['id'],_0x288807=Array['from'](this['_suggestions']['values']())['filter'](_0x57fa70=>'attribute'==_0x57fa70['type']&&_0x57fa70['data']['key']==_0xcfa19b&&_0x57fa70['isIntersectingWithRange'](_0xaf94bc));if('default'===this['_trackFormatChanges']){const _0x376d3d=this['_findSuggestions'](_0xaf94bc,'insertion')['filter'](({meta:_0x5d7b25})=>_0x5d7b25['isOwn']&&!_0x5d7b25['isInsideObject']&&!_0x5d7b25['isNextTo'])['map'](({suggestion:_0x5ac396})=>_0x5ac396);_0x288807['unshift'](..._0x376d3d);}const _0x165b20=new Map([[_0xaf94bc,_0x1532ac]]);for(const _0x49c621 of _0x288807){const _0x48183b='attribute'==_0x49c621['type']?_0x49c621['data']['oldValue']:void 0x0,_0x57d76f=_0x49c621['getFirstRange'](),_0x28e906=Array['from'](_0x165b20['keys']())['find'](_0x1045ae=>_0x1045ae['isIntersecting'](_0x57d76f));if(!_0x28e906)continue;const _0x28482b=_0x28e906['getDifference'](_0x57d76f);this['_isBlockAttribute'](_0xcfa19b)&&'insertion'==_0x49c621['type']&&0x0!=_0x28482b['length']||(_0x165b20['delete'](_0x28e906),_0x28482b['forEach'](_0x221703=>{_0x165b20['set'](_0x221703,_0x1532ac);}),'insertion'!=_0x49c621['type']&&_0x48183b!=_0x48b983&&_0x165b20['set'](_0x28e906['getIntersection'](_0x57d76f),_0x48183b));}const _0x3a4ca7=[];for(const [_0xbeed7,_0x13eaa6]of _0x165b20){const _0x16ef1c=_0x3035a1(),_0xece1b={'key':_0xcfa19b,'oldValue':_0x13eaa6,'newValue':_0x48b983};_0xcfa19b['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':_0xcfa19b});const _0x2b77dc=('attribute:'+(_0xcfa19b+'|'+Vt({'newValue':_0x48b983})))['substring'](0x0,0x3c),_0x13ce3b=this['_setSuggestionData']({'id':_0x16ef1c,'type':_0x2b77dc,'data':_0xece1b,'createdAt':new Date(),'authorId':_0x27b3e7,'attributes':_0x53c5dd});_0x3a4ca7['push'](_0x13ce3b),this['_addSuggestionMarker'](_0x2b77dc,_0x16ef1c,_0x27b3e7,_0xbeed7);}return _0x3a4ca7;}['enableDefaultAttributesIntegration'](_0xab3916){this['enableCommand'](_0xab3916,(_0x6f73f1,..._0x40c639)=>{this['_recordAttributeChanges'](()=>{_0x6f73f1(..._0x40c639);});});}['registerBlockAttribute'](_0x4e16f2){this['_blockAttributeKeys']['add'](_0x4e16f2);}['registerInlineAttribute'](_0x3514a2){this['_inlineAttributeKeys']['add'](_0x3514a2);}['_getAttributeKey'](_0x3ff2d2){return'attribute'==_0x3ff2d2['type']?_0x3ff2d2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x56993c,_0xed7cdd){const _0x5e53fc=_0x56993c['getFirstMarker']();this['_model']['change'](_0x35bcfd=>{_0x35bcfd['updateMarker'](_0x5e53fc,{'range':_0xed7cdd});});}['_addThreadToSuggestion'](_0x4ebd55){const _0x400a10=_0x4ebd55['id'],_0x29d56c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x400a10)||this['_commentsRepository']['addCommentThread']({'channelId':_0x29d56c,'threadId':_0x400a10,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2f51ee=this['_commentsRepository']['getCommentThread'](_0x400a10);_0x2f51ee['unbind']('isRemovable'),_0x2f51ee['isRemovable']=!0x1,_0x4ebd55['commentThread']=_0x2f51ee;}['_checkSuggestionCorrectness'](_0x34b4d5,_0x456cb6,_0xa97118,_0x81df00){if(_0x34b4d5['type']!=_0x456cb6||_0x34b4d5['subType']!=_0xa97118||_0x34b4d5['creator']['id']!=_0x81df00)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x357ebd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5f3e7e,_0x222580){const _0x4d8776=_0x5f3e7e['getFirstRange']();if(_0x222580['isEqual'](_0x4d8776))_0x5f3e7e['removeMarkers']();else{if(_0x4d8776['containsRange'](_0x222580)){const _0x3e669e=this['_model']['createPositionAt'](_0x222580['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5f3e7e,this['_model']['createRange'](_0x4d8776['start'],_0x3e669e));const _0x4b3dfb=_0x3035a1(),_0x8b62f0=_0x5f3e7e['creator']['id'],_0x2eadb8=_0x5f3e7e['type']+':'+_0x5f3e7e['subType'];this['_setSuggestionData']({'id':_0x4b3dfb,'type':_0x2eadb8,'createdAt':new Date(),'authorId':_0x8b62f0,'data':_0x5f3e7e['data'],'attributes':_0x5f3e7e['attributes']});const _0x5e0ff1=this['_model']['createPositionAt'](_0x222580['end']['parent'],'after'),_0x49d145=this['_model']['createRange'](_0x5e0ff1,_0x4d8776['end']);this['_addSuggestionMarker'](_0x2eadb8,_0x4b3dfb,_0x8b62f0,_0x49d145);}else{if(_0x4d8776['containsPosition'](_0x222580['start'])){const _0x41f8ea=this['_model']['createPositionAt'](_0x222580['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5f3e7e,this['_model']['createRange'](_0x4d8776['start'],_0x41f8ea));}else{const _0x1af0d0=this['_model']['createPositionAt'](_0x222580['end']['parent'],'after');this['_setSuggestionRange'](_0x5f3e7e,this['_model']['createRange'](_0x1af0d0,_0x4d8776['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x207104){for(const {suggestion:_0x903dc2,meta:_0x3990ab}of this['_findSuggestions'](_0x207104,'insertion')){if(!_0x3990ab['isOwn'])continue;const _0x318b45=_0x903dc2['getRanges']();for(const _0x1eed57 of _0x318b45)if(!_0x207104['getDifference'](_0x1eed57)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3467e4){const _0x2d4dcb=this['editor']['plugins']['get']('Users')['getUser'](_0x3467e4);if(!_0x2d4dcb)throw new _0x357ebd('track-changes-user-not-found',this);return _0x2d4dcb;}['_getExternalAuthor'](_0x399117){const _0x6aff73=this['editor']['plugins']['get']('Users'),_0x36b72a=_0x2c54bc('external:'+_0x399117),_0xeaa5d4=_0x6aff73['getUser'](_0x36b72a);return _0xeaa5d4||_0x6aff73['addUser']({'id':_0x36b72a,'name':_0x399117});}['_createSuggestion'](_0x4b65cd,_0x220574,_0x25d131,_0x19d3d4,_0x1165a3){const _0x433c56=this['_getAuthorFromId'](_0x19d3d4),_0x17ec9c=this['_suggestionFactory']['buildSuggestion'](_0x4b65cd,_0x220574,_0x25d131,_0x433c56,_0x1165a3,_0x316141=>{this['_updateSuggestionData'](_0x25d131,{'attributes':_0x316141});const _0x2296c6=this['getSuggestion'](_0x25d131);this['_joinWithAdjacentSuggestions'](new Set([_0x2296c6])),this['_refreshSuggestionsChain'](new Set([_0x2296c6]));});return this['listenTo'](_0x17ec9c,'accept',()=>{this['_updateSuggestionData'](_0x25d131,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x17ec9c,'discard',()=>{this['_updateSuggestionData'](_0x25d131,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x25d131,_0x17ec9c),this['_suggestionState']['set'](_0x17ec9c,'notReady'),_0x17ec9c;}['_splitMarkerName'](_0x2265f7){const _0x30d922=_0x2265f7['split'](':');return{'group':_0x30d922[0x0],'type':_0x30d922[0x1],'subType':_0x30d922['length']>=0x5?_0x30d922[0x2]:null,'id':_0x30d922['length']<0x5?_0x30d922[0x2]:_0x30d922[0x3],'authorId':_0x30d922['length']<0x5?_0x30d922[0x3]:_0x30d922[0x4],'markerCount':0x6==_0x30d922['length']?_0x30d922[0x5]:null};}['_breakSuggestionMarker'](_0xabaf49,_0x7d79e6,_0x30ddbe){const _0x1bd62f=_0xabaf49['getFirstRange'](),_0x219bc7=_0x1bd62f['start'],_0x520914=_0x1bd62f['end'];this['_setSuggestionRange'](_0xabaf49,this['_model']['createRange'](_0x219bc7,_0x7d79e6));const _0x16d287=_0x3035a1(),_0x5e5115=_0xabaf49['creator']['id'],_0x71ca3a=_0xabaf49['type']+(_0xabaf49['subType']?':'+_0xabaf49['subType']:'');this['_setSuggestionData']({'id':_0x16d287,'type':_0x71ca3a,'createdAt':new Date(),'authorId':_0x5e5115,'originalSuggestionId':_0xabaf49['id'],'attributes':_0xabaf49['attributes'],'data':_0xabaf49['data']});const _0x5c5206=this['_getAttributeKey'](_0xabaf49);('formatBlock'==_0xabaf49['type']||_0x5c5206&&this['_isBlockAttribute'](_0x5c5206))&&(_0x30ddbe=this['_model']['createPositionBefore'](_0x30ddbe['parent'])),this['_addSuggestionMarker'](_0x71ca3a,_0x16d287,_0x5e5115,this['_model']['createRange'](_0x30ddbe,_0x520914));}['_findSuggestions'](_0x21b253,_0x3ad1dd=null){const _0x54ffd6=[],_0x14c1be=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21b253)||(_0x21b253=[_0x21b253]);for(const _0x51c401 of this['getSuggestions']()){if(!_0x51c401['isInContent'])continue;if(_0x3ad1dd&&_0x51c401['type']!=_0x3ad1dd)continue;let _0x2a2fd3=!0x1;for(const _0x4b9290 of _0x51c401['getRanges']()){for(const _0x1bd7cb of _0x21b253){const _0x4e4cff=_0x1bd7cb['start']['isEqual'](_0x4b9290['end'])||_0x1bd7cb['end']['isEqual'](_0x4b9290['start']);if(_0x4e4cff||_0x1bd7cb['getIntersection'](_0x4b9290)){const _0x1498a7=_0x1bd7cb['containsRange'](_0x4b9290)&&Rt(this['_model']['schema'],_0x4b9290['start'],_0x1bd7cb),_0x2abb69=_0x4b9290['containsRange'](_0x1bd7cb)&&Rt(this['_model']['schema'],_0x1bd7cb['start'],_0x4b9290);_0x54ffd6['push']({'suggestion':_0x51c401,'meta':{'isOwn':_0x14c1be==_0x51c401['author'],'isNextTo':_0x4e4cff,'isInsideObject':_0x1498a7,'containsRangeInObject':_0x2abb69}}),_0x2a2fd3=!0x0;break;}}if(_0x2a2fd3)break;}}return _0x54ffd6;}['_addSuggestionMarker'](_0x3ac0dc,_0x9995ed,_0x3352a2,_0x255c9e,_0x369572){this['_model']['change'](_0x1a4d82=>{let _0x554ab5='suggestion:'+_0x3ac0dc+':'+_0x9995ed+':'+_0x3352a2;_0x369572&&(_0x554ab5=_0x554ab5+':'+_0x369572),_0x1a4d82['addMarker'](_0x554ab5,{'range':_0x255c9e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x237b49){const _0x1940f2=_0x237b49['previous'],_0xbcfbcb=_0x237b49['next'];_0x237b49['previous']=null,_0x237b49['next']=null,null!=_0x1940f2&&_0x1940f2['next']==_0x237b49&&(_0x1940f2['next']=_0xbcfbcb),null!=_0xbcfbcb&&_0xbcfbcb['previous']==_0x237b49&&(_0xbcfbcb['previous']=_0x1940f2),'ready'==this['_suggestionState']['get'](_0x237b49)&&(this['_suggestionState']['set'](_0x237b49,'removed'),this['fire']('suggestionUnloaded',_0x237b49,_0x1940f2,_0xbcfbcb));}['_setSuggestionData'](_0x127439){const _0xbef2b9=_0x127439['id'],_0x4d2579=this['addSuggestionData'](_0x127439);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34c366=this['editor']['plugins']['get']('PendingActions'),_0x45e905=_0x4d2579['hasComments'],_0x3cb804=_0x4d2579['subType']?_0x4d2579['type']+':'+_0x4d2579['subType']:_0x4d2579['type'],_0x2084d8=this['editor']['locale'],_0x406c6d=_0x34c366['add'](o(_0x2084d8,'PENDING_ACTION_SUGGESTION')),_0x575f86={'id':_0xbef2b9,'type':_0x3cb804,'hasComments':_0x45e905,'data':_0x127439['data']||null,'originalSuggestionId':_0x127439['originalSuggestionId']||null,'attributes':_0x4d2579['attributes']};this['_adapter']['addSuggestion'](_0x575f86)['then'](_0x388740=>{_0x4d2579['_saved']=!0x0,_0x34c366['remove'](_0x406c6d),_0x388740&&_0x388740['createdAt']&&(this['_suggestions']['get'](_0xbef2b9)['createdAt']=_0x388740['createdAt']);})['catch'](_0x56f26d=>{throw _0x272dfa('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4d2579['discard']();}),_0x4d2579['stopListening'](),this['_suggestions']['delete'](_0x4d2579['id']),this['_suggestionState']['delete'](_0x4d2579),_0x56f26d;});}return _0x4d2579;}['_isBlockAttribute'](_0x56098d){return this['_blockAttributeKeys']['has'](_0x56098d);}['_updateSuggestionData'](_0x2c3305,_0x4af8da){const _0x1792f9=this['editor']['plugins']['get']('PendingActions'),_0xb2d560=this['getSuggestion'](_0x2c3305);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xb2d560['_saved']){const _0x1f56d8=_0x1792f9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2c3305,_0x4af8da)['then'](()=>{_0x1792f9['remove'](_0x1f56d8);});}else _0xb2d560['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2c3305,_0x4af8da);});}}['_getSuggestionData'](_0x556e62){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x357ebd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x556e62);}['_handleNewSuggestionMarker'](_0x384cf9){const {id:_0x2b64cd,type:_0x4b423a,subType:_0x2f6c94,authorId:_0x1ad2d3}=this['_splitMarkerName'](_0x384cf9),_0x456a23=this['_suggestions']['get'](_0x2b64cd)||this['_createSuggestion'](_0x4b423a,_0x2f6c94,_0x2b64cd,_0x1ad2d3,{});switch(this['_checkSuggestionCorrectness'](_0x456a23,_0x4b423a,_0x2f6c94,_0x1ad2d3),this['_suggestionState']['get'](_0x456a23)){case'notReady':this['_getSuggestionData'](_0x2b64cd)['then'](_0x2a921b=>{let _0x235725=Promise['resolve']();_0x2a921b['hasComments']&&(_0x235725=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2b64cd})),_0x235725['then'](()=>{this['addSuggestionData'](_0x2a921b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x456a23,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2b64cd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x456a23,'ready'),this['fire']('suggestionLoaded',_0x456a23);break;case'ready':this['fire']('suggestionChanged',_0x456a23);}return _0x456a23['addMarkerName'](_0x384cf9),_0x456a23;}['_refreshSuggestionsChain'](_0x3493c0){const _0x1b0a3b=Array['from'](_0x3493c0),_0xe24608=_0x1b0a3b['filter'](_0x5671de=>'attribute'==_0x5671de['type']);this['_refreshAttributeSuggestionsChain'](_0xe24608);const _0x16438f=_0x1b0a3b['filter'](_0x5779cb=>!_0x5779cb['isMultiRange']&&'attribute'!=_0x5779cb['type']),_0x4d7600=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x66eff0=>!_0x66eff0['isMultiRange']&&'attribute'!=_0x66eff0['type']),_0x5fa9d8=_0x4d7600['filter'](_0x50bf04=>!_0x3493c0['has'](_0x50bf04)),_0x487240=new Map(_0x4d7600['map'](_0x41b4fd=>[_0x41b4fd,this['_suggestionFactory']['getSuggestionCallback'](_0x41b4fd['type'],_0x41b4fd['subType'],'chain')])),_0x410a9a=new Map(_0x4d7600['map'](_0x3bbeaa=>[_0x3bbeaa,_0x3bbeaa['getFirstRange']()])),_0x218c97=new Set(),_0x623aaf=new Set();for(let _0x59bf75=0x0;_0x59bf75<_0x16438f['length'];_0x59bf75++)_0x2e4f71(_0x16438f[_0x59bf75],_0x16438f,_0x59bf75+0x1);for(let _0x2ecdf5=0x0;_0x2ecdf5<_0x16438f['length'];_0x2ecdf5++)_0x2e4f71(_0x16438f[_0x2ecdf5],_0x5fa9d8,0x0);const _0x5a8264=new Set();for(let _0x55c2ea=0x0;_0x55c2ea<_0x16438f['length'];_0x55c2ea++){const _0x43452b=_0x16438f[_0x55c2ea];!_0x623aaf['has'](_0x43452b)&&_0x43452b['previous']&&(_0x5a8264['add'](_0x43452b['previous']),_0x43452b['previous']['next']===_0x43452b&&(_0x43452b['previous']['next']=null),_0x43452b['previous']=null),!_0x218c97['has'](_0x43452b)&&_0x43452b['next']&&(_0x5a8264['add'](_0x43452b['next']),_0x43452b['next']['previous']===_0x43452b&&(_0x43452b['next']['previous']=null),_0x43452b['next']=null);}function _0x2e4f71(_0x4e9a2c,_0x4bcbda,_0x34c936){for(let _0x2f3e32=_0x34c936;_0x2f3e32<_0x4bcbda['length'];_0x2f3e32++){const _0x1e3b9b=_0x2e08b1(_0x4e9a2c,_0x4bcbda[_0x2f3e32]);_0x1e3b9b&&(_0x1e3b9b[0x0]['next']=_0x1e3b9b[0x1],_0x1e3b9b[0x1]['previous']=_0x1e3b9b[0x0],_0x218c97['add'](_0x1e3b9b[0x0]),_0x623aaf['add'](_0x1e3b9b[0x1]));}}function _0x2e08b1(_0x462f70,_0x1c5a80){if(_0x462f70['author']['id']!==_0x1c5a80['author']['id'])return null;const _0x1f31f7=_0x487240['get'](_0x462f70)(_0x462f70,_0x1c5a80,_0x410a9a['get'](_0x462f70),_0x410a9a['get'](_0x1c5a80));if(!_0x1f31f7)return null;return _0x487240['get'](_0x1c5a80)(_0x462f70,_0x1c5a80,_0x410a9a['get'](_0x462f70),_0x410a9a['get'](_0x1c5a80))?_0x1f31f7[0x1]['commentThread']&&_0x1f31f7[0x1]['commentThread']['length']?null:_0x1f31f7:null;}_0x5a8264['size']&&this['_refreshSuggestionsChain'](_0x5a8264);}['_refreshAttributeSuggestionsChain'](_0x5bc116){if(0x0==_0x5bc116['length'])return;const _0x14525f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ccd01=>'attribute'==_0x2ccd01['type']&&_0x2ccd01['_isDataLoaded']),_0x234dfa=[],_0x3164de=new Map();for(const _0x1756ae of _0x14525f){const _0x1a2b98=_0x2c54bc(_0x1756ae['attributes']);_0x3164de['has'](_0x1a2b98)||(_0x3164de['set'](_0x1a2b98,_0x234dfa['length']),_0x234dfa['push']([]));const _0x109aae=_0x3164de['get'](_0x1a2b98);_0x234dfa[_0x109aae]['push'](_0x1756ae);}!(function(){_0x234dfa['sort']((_0x19005d,_0x3bb0ae)=>{const _0xac6aeb=_0x19005d[0x0]['createdAt'],_0x15c837=_0x3bb0ae[0x0]['createdAt'];return _0xac6aeb==_0x15c837?_0x19005d[0x0]['attributes']['groupId']<_0x3bb0ae[0x0]['attributes']['groupId']?-0x1:0x1:_0xac6aeb<_0x15c837?-0x1:0x1;});for(const _0x30e26b of _0x234dfa)_0x30e26b['sort']((_0x16ac1d,_0x2abdce)=>_0x16ac1d['id']<_0x2abdce['id']?-0x1:0x1);}());for(let _0x5651b3=0x0;_0x5651b3<_0x234dfa['length'];_0x5651b3++){if(0x0==_0x234dfa[_0x5651b3]['length'])continue;const _0x14f160=[];for(let _0x4e984a=_0x5651b3+0x1;_0x4e984a<_0x234dfa['length'];_0x4e984a++)0x0!=_0x234dfa[_0x4e984a]['length']&&_0x1e186a(_0x234dfa[_0x5651b3],_0x234dfa[_0x4e984a])&&_0x14f160['push'](_0x4e984a);for(const _0x38b6c1 of _0x14f160)_0x234dfa[_0x5651b3]=_0x234dfa[_0x5651b3]['concat'](_0x234dfa[_0x38b6c1]),_0x234dfa[_0x38b6c1]=[];}for(const _0x385447 of _0x234dfa)for(let _0x3f68b6=0x0;_0x3f68b6<_0x385447['length'];_0x3f68b6++)_0x385447[_0x3f68b6]['next']=_0x385447[_0x3f68b6+0x1]||null;for(const _0x1b47d1 of _0x234dfa)for(let _0x37a5e1=0x0;_0x37a5e1<_0x1b47d1['length'];_0x37a5e1++)_0x1b47d1[_0x37a5e1]['previous']=_0x1b47d1[_0x37a5e1-0x1]||null;function _0x1e186a(_0x45e59b,_0x45a93d){if(_0x45e59b[0x0]['attributes']['groupId']!==_0x45a93d[0x0]['attributes']['groupId']&&_0x45e59b[0x0]['author']!==_0x45a93d[0x0]['author'])return!0x1;if(!function(_0x4e9b14,_0x318670){if(!_0x4e9b14['hasComments']&&!_0x318670['hasComments'])return!0x0;if(_0x4e9b14['hasComments']&&_0x318670['hasComments'])return!0x1;if(_0x4e9b14['hasComments']&&_0x318670['createdAt']<_0x4e9b14['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x318670['hasComments']&&_0x4e9b14['createdAt']<_0x318670['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x45e59b[0x0],_0x45a93d[0x0]))return!0x1;const _0x4c5082=Bt(_0x45e59b[0x0]['attributes'],'groupId'),_0x23a50c=Bt(_0x45a93d[0x0]['attributes'],'groupId');if(!_0x9c88fc(_0x4c5082,_0x23a50c))return!0x1;return!!_0x45e59b['every'](_0x5e57da=>_0x45a93d['some'](_0x5b7a36=>_0x5e57da['getFirstRange']()['isEqual'](_0x5b7a36['getFirstRange']())))&&_0x45a93d['every'](_0x49411f=>_0x45e59b['some'](_0x4b73ff=>_0x49411f['getFirstRange']()['isEqual'](_0x4b73ff['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe3bcb8){const _0x32aac4=Array['from'](_0xe3bcb8),_0x156a85=this['getSuggestions']({'skipNotAttached':!0x0}),_0x49435e=_0x156a85['filter'](_0xc60c7=>!_0xe3bcb8['has'](_0xc60c7)),_0x1f583a=new Map(_0x32aac4['map'](_0x541571=>[_0x541571,this['_suggestionFactory']['getSuggestionCallback'](_0x541571['type'],_0x541571['subType'],'join')])),_0x2d64cd=new Map(_0x156a85['map'](_0x56ba50=>[_0x56ba50,_0x56ba50['getRanges']()]));for(let _0x54dbb2=0x0;_0x54dbb2<_0x32aac4['length'];_0x54dbb2++){if(_0x4cb314(this,_0x32aac4[_0x54dbb2],_0x32aac4,_0x54dbb2+0x1))return!0x0;}for(let _0x39ca87=0x0;_0x39ca87<_0x32aac4['length'];_0x39ca87++){if(_0x4cb314(this,_0x32aac4[_0x39ca87],_0x49435e,0x0))return!0x0;}return!0x1;function _0x4cb314(_0x5f30d7,_0xa9711d,_0x41840f,_0x3883c5){for(let _0xe79980=_0x3883c5;_0xe79980<_0x41840f['length'];_0xe79980++){const _0x5061c9=_0x41840f[_0xe79980];if(_0x5061c9['type']!==_0xa9711d['type']||_0x5061c9['author']['id']!==_0xa9711d['author']['id']||_0x5061c9['subType']!==_0xa9711d['subType'])continue;if(!Pt(_0xa9711d,_0x5061c9,['groupId']))continue;if('attribute'==_0xa9711d['type']&&_0xa9711d['data']['oldValue']!=_0x5061c9['data']['oldValue'])continue;if('attribute'==_0xa9711d['type']&&_0x5f30d7['_isBlockAttribute'](_0xa9711d['data']['key']))continue;if('formatBlock'==_0xa9711d['type']){const _0x31e08e=_0x5f30d7['editor']['model'],_0x5649e6=_0xa9711d['getContainedElement']();if(_0x5649e6&&(_0x31e08e['schema']['isObject'](_0x5649e6)||_0x31e08e['schema']['isLimit'](_0x5649e6)))continue;}const _0x13b0d7=_0x1f583a['get'](_0xa9711d),_0x43ae2f=_0x2d64cd['get'](_0xa9711d),_0x448aa4=_0x2d64cd['get'](_0x5061c9),_0x221965=_0xa9711d['commentThread']&&_0xa9711d['commentThread']['length'],_0x4a5558=_0x5061c9['commentThread']&&_0x5061c9['commentThread']['length'];if(!_0x221965&&_0x13b0d7(_0x448aa4,_0x43ae2f))return _0x5f30d7['_joinSuggestions'](_0x5061c9,_0xa9711d),_0x2d64cd['delete'](_0xa9711d),!0x0;if(!_0x4a5558&&_0x13b0d7(_0x43ae2f,_0x448aa4))return _0x5f30d7['_joinSuggestions'](_0xa9711d,_0x5061c9),_0x2d64cd['delete'](_0x5061c9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x431c95,_0x538d83){if(_0x431c95['isMultiRange']){for(const _0x32c8ca of _0x538d83['getRanges']())_0x431c95['addRange'](_0x32c8ca);}else{const _0x3684f7=_0x538d83['getFirstRange']()['end'];this['_setSuggestionRange'](_0x431c95,this['_model']['createRange'](_0x431c95['getFirstRange']()['start'],_0x3684f7));}_0x538d83['removeMarkers']();}['_getMarkerAnnouncementText'](_0x39f731,_0x4bbb40){const _0xead260=_0x39f731['startsWith']('format')||_0x39f731['startsWith']('attribute')?'FORMATTING':_0x39f731['toUpperCase']();return o(this['editor']['locale'],_0x4bbb40+'_'+_0xead260+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x55ae74=this['editor'];if(!_0x55ae74['ui'])return;const {ariaLiveAnnouncer:_0x574747}=_0x55ae74['ui'];_0x14fed6(this['_model'],({left:_0x218546,entered:_0x49792c})=>{for(const _0x5570ae of _0x218546){const {group:_0x5efa20,type:_0x3c5ea9}=this['_splitMarkerName'](_0x5570ae['name']);if('suggestion'===_0x5efa20){_0x574747['announce'](this['_getMarkerAnnouncementText'](_0x3c5ea9,'LEAVE'));break;}}for(const _0x54b4cf of _0x49792c){const {group:_0x12c47e,type:_0x1878b1}=this['_splitMarkerName'](_0x54b4cf['name']);if('suggestion'===_0x12c47e){_0x574747['announce'](this['_getMarkerAnnouncementText'](_0x1878b1,'ENTER'));break;}}});}['_processAttributeChanges'](_0x824707){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd4c2ea=this['editor'],_0x2baf2c=_0xd4c2ea['model']['document']['differ']['getChanges']();if(0x0==_0x2baf2c['length'])return!0x1;const _0x43ca8b=[],_0x53027d=_0x2baf2c['filter'](_0x2a02ac=>'attribute'==_0x2a02ac['type']),_0x45cc56=_0x2baf2c['filter'](_0x4da295=>'insert'==_0x4da295['type']&&'$text'!=_0x4da295['name']),_0x1755ac=_0x2baf2c['filter'](_0x43ea4b=>'remove'==_0x43ea4b['type']&&'$text'!=_0x43ea4b['name']);for(const _0x486b05 of _0x53027d)_0x43ca8b['push']({'key':_0x486b05['attributeKey'],'newValue':_0x486b05['attributeNewValue'],'oldValue':_0x486b05['attributeOldValue'],'range':Ot(_0x486b05['range'],_0xd4c2ea['model'])});for(const _0x54024b of _0x45cc56){const _0x3c69b0=_0x1755ac['find'](_0x3241bd=>_0x3241bd['position']['isEqual'](_0x54024b['position']));_0x3c69b0&&_0x43ca8b['push']({'key':m,'newValue':_0x54024b['name'],'oldValue':_0x3c69b0['name'],'range':_0xd4c2ea['model']['createRangeOn'](_0x54024b['position']['nodeAfter'])});}return 0x0!=_0x43ca8b['length']&&this['_reduceExistingSuggestions'](_0x824707,_0x43ca8b);}['_processAttributeSuggestions'](_0x2b1994){let _0x523cae=!0x1;const _0x4ccb20=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ee94e=>_0x4ee94e['data']['newRange']&&_0x4ee94e['name']['startsWith']('suggestion:attribute:'));for(const _0x481d63 of _0x4ccb20){const {subType:_0x1b3517,id:_0x2c6bb4}=this['_splitMarkerName'](_0x481d63['name']),_0x78d718=_0x1b3517['split']('|')[0x0];for(const _0x4a0a2b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4a0a2b['id']!=_0x2c6bb4&&'attribute'==_0x4a0a2b['type']&&_0x4a0a2b['data']&&_0x4a0a2b['data']['key']==_0x78d718&&_0x4a0a2b['getFirstRange']()['isIntersecting'](_0x481d63['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4a0a2b,_0x481d63['data']['newRange'],_0x2b1994),_0x523cae=!0x0);}return _0x523cae;}['_recordAttributeChanges'](_0x58e1a9){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x58e1a9();}['_isRegisteredAttribute'](_0x56a8ff){const _0x328a7a=this['_isBlockAttribute'](_0x56a8ff),_0x1e474b=this['_inlineAttributeKeys']['has'](_0x56a8ff);return _0x328a7a||_0x1e474b;}['_reduceExistingSuggestions'](_0xa64979,_0x2d1af1){if(0x0==_0x2d1af1['length'])return!0x1;let _0x2851ea=!0x1;for(const _0x20f2f9 of _0x2d1af1){const _0x50d59b=this['_findSuggestions'](_0x20f2f9['range'],'attribute')['filter'](_0x3dc83d=>!_0x3dc83d['meta']['isNextTo'])['map'](_0x36453b=>_0x36453b['suggestion']),_0x5ada84=_0x2c54bc({'newValue':_0x20f2f9['newValue']});_0x50d59b['filter'](_0x456504=>{const [_0x253374,_0x36ee31]=_0x456504['subType']['split']('|');return _0x253374==_0x20f2f9['key']&&_0x36ee31!=_0x5ada84;})['forEach'](_0x394325=>{this['_reduceSuggestionAttributeRange'](_0x394325,_0x20f2f9['range'],_0xa64979),_0x2851ea=!0x0;});}return _0x2851ea;}['_reduceSuggestionAttributeRange'](_0xcf0c87,_0x142ab2,_0x56e162){const _0x4ac8f8=_0xcf0c87['getFirstRange']()['getDifference'](_0x142ab2);0x0!==_0x4ac8f8['length']?0x1!==_0x4ac8f8['length']?this['_breakSuggestionMarker'](_0xcf0c87,_0x142ab2['start'],_0x142ab2['end']):this['_setSuggestionRange'](_0xcf0c87,_0x4ac8f8[0x0]):_0x56e162['removeMarker'](_0xcf0c87['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4b6a1b){this['_editor']=_0x4b6a1b,this['_model']=_0x4b6a1b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x20d6e8,_0x103117,_0x55ded4,_0x3437e0,_0x408645,_0x3ea8b4){return new u(this['_model'],{'type':_0x20d6e8,'subType':_0x103117,'id':_0x55ded4,'author':_0x3437e0,'creator':_0x3437e0,'attributes':_0x408645,'onAttributesChange':_0x3ea8b4,'onAccept':(..._0x55f8b0)=>this['getSuggestionCallback'](_0x20d6e8,_0x103117,'accept')(..._0x55f8b0),'onDiscard':(..._0x492f04)=>this['getSuggestionCallback'](_0x20d6e8,_0x103117,'discard')(..._0x492f04)});}['registerCustomCallback'](_0x4f31c9,_0x12f6a6,_0x1cbf90,_0x3f18f3){const _0x393e6e=_0x4f31c9+':'+_0x12f6a6+':'+_0x1cbf90;this['_customCallbacks']['set'](_0x393e6e,_0x3f18f3);}['getSuggestionCallback'](_0x259d70,_0x55470f,_0x1fae84){const _0x141932=_0x259d70+':'+_0x55470f+':'+_0x1fae84;return this['_customCallbacks']['get'](_0x141932)||this['_defaultCallbacks']['get'](_0x259d70+':'+_0x1fae84);}['_registerDefaultCallbacks'](){const _0x40feea=()=>!0x1,_0x46f978=_0x1401c6=>{_0x1401c6['sort']((_0x2b3801,_0x591901)=>_0x2b3801['start']['isBefore'](_0x591901['start'])?0x1:-0x1),this['_model']['change'](_0x4aad7a=>{for(const _0x2f43fe of _0x1401c6){let _0x9116b;_0x9116b=_0x2f43fe['end']['isAtEnd']&&_0x2f43fe['end']['parent']==_0x2f43fe['start']['nodeAfter']?_0x4aad7a['createSelection'](_0x2f43fe['start']['nodeAfter'],'on'):_0x4aad7a['createSelection'](_0x2f43fe),this['_model']['deleteContent'](_0x9116b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xfdd78e=(_0x3dff30,_0x4fd883)=>{_0x4fd883&&this['_model']['change'](_0x4240ac=>{const {commandName:_0x51711d,commandParams:_0x1f3d4f=[]}=_0x4fd883,_0x508821=_0x3dff30['map'](_0x201b94=>(Tt(_0x201b94)&&(_0x201b94=this['_model']['createRange'](_0x201b94['end'])),_0x201b94))['filter'](_0x18fae2=>'$graveyard'!==_0x18fae2['root']['rootName']);if(_0x508821['length']<0x1)return;const _0x364c9b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x353121=>_0x2ded21['fromRange'](_0x353121));_0x4240ac['setSelection'](_0x508821);for(const _0xd1b2b6 of this['_editor']['commands']['commands']())_0xd1b2b6['refresh']();_0x1f3d4f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x51711d,..._0x1f3d4f);const _0x12496a=_0x364c9b['filter'](_0x275764=>'$graveyard'!=_0x275764['root']['rootName']);_0x12496a['length']>0x0&&_0x4240ac['setSelection'](_0x12496a);for(const _0xdefdd4 of _0x364c9b)_0xdefdd4['detach']();});},_0x3671c2=(_0x370628,_0x47ec6e)=>0x1==_0x370628['length']&&0x1==_0x47ec6e['length']&&_0x370628[0x0]['end']['isEqual'](_0x47ec6e[0x0]['start']),_0x1ee60e=(_0x16cc24,_0x379878,_0x4f9fa3,_0x47f9d1)=>Gt(_0x16cc24,_0x379878,_0x4f9fa3,_0x47f9d1,this['_model'])?[_0x16cc24,_0x379878]:Gt(_0x379878,_0x16cc24,_0x47f9d1,_0x4f9fa3,this['_model'])?[_0x379878,_0x16cc24]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x40feea),this['_defaultCallbacks']['set']('insertion:discard',_0x46f978),this['_defaultCallbacks']['set']('insertion:join',_0x3671c2),this['_defaultCallbacks']['set']('insertion:chain',_0x1ee60e),this['_defaultCallbacks']['set']('deletion:accept',_0x46f978),this['_defaultCallbacks']['set']('deletion:discard',_0x40feea),this['_defaultCallbacks']['set']('deletion:join',_0x3671c2),this['_defaultCallbacks']['set']('deletion:chain',_0x1ee60e),this['_defaultCallbacks']['set']('formatInline:accept',_0xfdd78e),this['_defaultCallbacks']['set']('formatInline:discard',_0x40feea),this['_defaultCallbacks']['set']('formatInline:join',_0x3671c2),this['_defaultCallbacks']['set']('formatInline:chain',_0x40feea),this['_defaultCallbacks']['set']('formatBlock:accept',_0xfdd78e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x40feea),this['_defaultCallbacks']['set']('formatBlock:join',_0x3671c2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x40feea),this['_defaultCallbacks']['set']('attribute:accept',_0x40feea),this['_defaultCallbacks']['set']('attribute:discard',(_0x2eac17,_0x87f96c)=>{if(!_0x87f96c)return;const _0x4185a5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x291677=>{if(_0x87f96c['key']==m)for(const _0x17af89 of _0x2eac17){const _0x5172b3=_0x17af89['start']['nodeAfter'],_0x471d40=_0x87f96c['oldValue'];_0x291677['rename'](_0x5172b3,_0x471d40);}else{if(_0x4185a5['_isBlockAttribute'](_0x87f96c['key'])){for(const _0x1253b9 of _0x2eac17)void 0x0!==_0x87f96c['oldValue']?_0x291677['setAttribute'](_0x87f96c['key'],_0x87f96c['oldValue'],_0x1253b9['start']['nodeAfter']):_0x291677['removeAttribute'](_0x87f96c['key'],_0x1253b9['start']['nodeAfter']);}else{for(const _0x437d9b of _0x2eac17)_0x87f96c['oldValue']?_0x291677['setAttribute'](_0x87f96c['key'],_0x87f96c['oldValue'],_0x437d9b):_0x291677['removeAttribute'](_0x87f96c['key'],_0x437d9b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3671c2);}}function Rt(_0xace82,_0x552068,_0x550662){for(const _0x4af162 of _0x552068['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4af162['root']==_0x4af162)return!0x1;if(!_0x550662['containsItem'](_0x4af162))return!0x1;if(_0xace82['isObject'](_0x4af162)||_0xace82['isLimit'](_0x4af162))return!0x0;}return!0x1;}function Tt(_0x1ad0fb){return _0x1ad0fb['end']['parent']==_0x1ad0fb['start']['nodeAfter']&&_0x1ad0fb['end']['isAtStart'];}function Et(_0x47380f,_0x3a9985,_0x5c1da6,_0x28b608){const _0x117662=_0x45f54f=>!_0x45f54f['item']['is']('$textProxy')&&!_0x28b608['isObject'](_0x45f54f['item']),_0x1fa2e1=_0x47380f['start']['getLastMatchingPosition'](_0x117662),_0x40f399=_0x47380f['end']['getLastMatchingPosition'](_0x117662,{'direction':'backward'});return(!_0x47380f['start']['isEqual'](_0x1fa2e1)||!_0x47380f['end']['isEqual'](_0x40f399))&&(_0x1fa2e1['isBefore'](_0x40f399)?_0x5c1da6['updateMarker'](_0x3a9985,{'range':_0x5c1da6['createRange'](_0x1fa2e1,_0x40f399)}):_0x5c1da6['removeMarker'](_0x3a9985),!0x0);}function Vt(_0x29f73a){return _0x2c54bc(_0x29f73a);}function Ut(_0x542188){const _0x1ce6af=_0x542188['start']['nodeAfter'];return _0x1ce6af&&_0x1ce6af['is']('element');}function Ot(_0x1fb5a8,_0xe1add4){return null==_0x1fb5a8['end']['nodeBefore']&&_0x1fb5a8['end']['parent']==_0x1fb5a8['start']['nodeAfter']?Ft(_0x1fb5a8['start']['nodeAfter'],_0xe1add4):_0x1fb5a8;}function Ft(_0x2fa2a9,_0x20f678){const _0x37715a=_0x20f678['schema']['isObject'](_0x2fa2a9)||_0x20f678['schema']['isSelectable'](_0x2fa2a9);return _0x20f678['createRange'](_0x20f678['createPositionAt'](_0x2fa2a9,'before'),_0x37715a?_0x20f678['createPositionAfter'](_0x2fa2a9):_0x20f678['createPositionAt'](_0x2fa2a9,'end'));}function Gt(_0x10e18c,_0x1eeb40,_0xa50df9,_0x44369c,_0x2b48ed){if(!Pt(_0x10e18c,_0x1eeb40))return!0x1;if(_0xa50df9['end']['isEqual'](_0x44369c['start']))return!0x0;if(_0x10e18c['type']!=_0x1eeb40['type'])return!0x1;if(!_0xa50df9['end']['isTouching'](_0x44369c['start']))return!0x1;const _0x4c7576=_0x2b48ed['createRange'](_0xa50df9['end'],_0x44369c['start'])['getWalker']();for(const _0x2ae6b2 of _0x4c7576)if(['elementStart','elementEnd']['includes'](_0x2ae6b2['type'])&&_0x2b48ed['schema']['isLimit'](_0x2ae6b2['item']))return!0x1;return!0x0;}function Pt(_0xee4eab,_0x3a58bd,_0x616eca=[]){return!(!_0xee4eab['_isDataLoaded']||!_0x3a58bd['_isDataLoaded'])&&_0x9c88fc(Bt(_0xee4eab['attributes'],_0x616eca),Bt(_0x3a58bd['attributes'],_0x616eca));}function Lt(_0xf085b6,_0x289cbd){const _0x2909be=Ht(_0xf085b6['attributes']),_0x478215=Ht(_0x289cbd);if(!_0xf085b6['_isDataLoaded'])return!0x1;for(const _0x40c7f1 of Object['keys'](_0x478215))if(!_0x9c88fc(_0x2909be[_0x40c7f1],_0x478215[_0x40c7f1]))return!0x1;return!0x0;}function Ht(_0x127d65){const _0x2727ed=Object['assign']({},_0x127d65);return delete _0x2727ed['skipNestingCheck'],delete _0x2727ed['tablePasteChainId'],_0x2727ed;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x13aff3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3285d8,_0x5c96a6,_0x52cc03,_0x12eee3){super(),this['model']=_0x5c96a6,this['view']=_0x52cc03,this['commentThreadController']=_0x12eee3,this['_editor']=_0x3285d8,this['_acceptCommand']=_0x3285d8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3285d8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x381de4,_0x3926ff)=>_0x381de4||_0x3926ff),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x33efaf=>_0x33efaf&&this['_editor']['model']['canEditAt'](_0x5c96a6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x208b57=>_0x208b57&&this['_editor']['model']['canEditAt'](_0x5c96a6['getRanges']())),this['_pendingAction']=null,_0x52cc03['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x52cc03,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x52cc03,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x52cc03,'change:isDirty',()=>{_0x52cc03['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 _0x3b0eb4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3b0eb4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x337c6b{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x17f2e0,_0x22b2b5,_0x2d7036,_0xf1a57f){super(_0x17f2e0),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x22b2b5['authoredAt']),this['bind']('authoredAt')['to'](_0x22b2b5),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x22b2b5,this['_localUser']=_0x2d7036,this['_config']=_0xf1a57f,_0xf1a57f['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:_0x432540}=this['_config'];this['commentsListView']=new _0x432540(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',_0x3d2c54=>_0x3d2c54+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4ee877,_0x542dd7)=>_0x4ee877||!!_0x542dd7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x253373}=this['_config'],_0x44489b=new _0x253373(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x547ade=_0x44489b['commentInputView'];return _0x44489b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x547ade,'value',(_0x527bc3,_0x48805c,_0x1348c2)=>!!_0x1348c2||_0x527bc3&&!_0x48805c),_0x547ade['on']('submit',(_0x186a8d,_0x24b6f0)=>{this['fire']('addComment',_0x24b6f0),_0x547ade['editor']['setData']('');}),_0x547ade['on']('cancel',()=>this['focus']()),_0x547ade['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x44489b;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5be5ad,_0x75d24f,_0x33be2a,_0x36dbca){super(_0x5be5ad,_0x75d24f,_0x33be2a,_0x36dbca),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x22e8b9=>_0x22e8b9&&_0x22e8b9[0x0]?_0x22e8b9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b61fd,_0x203779)=>{let _0x58b1c2='';for(const _0x37d514 of _0x3b61fd)_0x58b1c2+='<p>'+ds(_0x37d514['content'],_0x37d514['color'])+'</p>';return _0x203779?_0x58b1c2:_0x4037e5(_0x58b1c2,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5be5ad,'Accept\x20suggestion'),_0xdf767d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5be5ad,'Discard\x20suggestion'),_0xdf767d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xc8bfc5(_0x5be5ad,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5e92f3=this['bindTemplate'],_0x590de3=[{'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':_0x5e92f3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e92f3['to']('authoredAt',_0x163894=>this['_config']['formatDateTime'](_0x163894))}]}]},{'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']&&_0x590de3['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1e2950={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5e92f3['if']('isActive','ck-suggestion-wrapper--active'),_0x5e92f3['to']('type',_0x10e3bd=>'ck-suggestion-'+_0x10e3bd),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':_0x590de3}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1e2950['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)),_0x1e2950;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x16ea8c,_0xe4e248,_0x3983cb)=>{this['_descriptionElement']['innerHTML']=_0x3983cb;});}['_createButton'](_0x146c18,_0x49bf2f,_0x5ebdf4,_0x5acf21,_0x19faac){const _0x5a6432=new _0x37be95(this['locale']);return _0x5a6432['set']({'label':_0x146c18,'icon':_0x49bf2f,'tooltip':!0x0,'tooltipPosition':_0x19faac}),_0x5a6432['extendTemplate']({'attributes':{'class':_0x5ebdf4}}),_0x5a6432['on']('execute',()=>{this['fire'](_0x5acf21,this['_model']['id']);}),_0x5a6432;}['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(_0x3066ab,_0x18d6ef){let _0x3d48db='';return _0x3d48db+=_0x3066ab['split']('*')['map']((_0x1e51c2,_0xa95a10)=>_0xa95a10%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x1e51c2)+'</span>':us(_0x1e51c2))['join'](''),_0x18d6ef&&(_0x3d48db+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x18d6ef['value']+'\x22\x20title=\x22'+_0x18d6ef['title']+'\x22></span>'),_0x3d48db;}function us(_0x10ee61){const _0x4dc8bd=document['createElement']('span');return _0x4dc8bd['innerText']=_0x10ee61,_0x4dc8bd['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 _0x3be5df{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3c67fa,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4d0a35){super(_0x4d0a35),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x563cef=this['editor']['config'];_0x563cef['define']('trackChanges.SuggestionThreadView',ne),_0x563cef['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x563cef['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x10f271,_0x431a08){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3eb2c7,_0x565a67]of this['_handleControllerBuffer']){const _0x57eb84=this['_suggestionToController']['has'](_0x3eb2c7);_0x57eb84||_0x565a67?_0x57eb84&&_0x565a67&&this['_destroyController'](_0x3eb2c7):this['_initializeController'](_0x3eb2c7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x10f271,_0x431a08);}['init'](){const _0x21ebbc=this['editor'],_0x1c07f5=_0x21ebbc['plugins']['get']('TrackChangesEditing'),_0x2508bf=_0x21ebbc['plugins']['get']('Annotations'),_0x139c6f=_0x21ebbc['plugins']['get']('EditorAnnotations'),_0x381865=_0x21ebbc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x139c6f['addSourceCollector'](()=>{const _0x8448fc=[];for(const [_0x26c1e2,_0x3a818b]of Array['from'](this['_suggestionToController'])){const _0x28506e=_0x26c1e2['getAllAdjacentSuggestions'](),_0x5c0d65=[];for(const _0x49d637 of _0x28506e){if(!_0x49d637['isInContent'])continue;if(_0x49d637['isMultiRange']){_0x5c0d65['push'](..._0x49d637['getRanges']());continue;}const _0x5f0db9=_0x49d637['getFirstRange']();if(_0x5c0d65['length']>0x0){const _0x4bbe47=_0x5c0d65[0x0]['getJoined'](_0x5f0db9);if(_0x4bbe47){_0x5c0d65[0x0]=_0x4bbe47;continue;}}_0x5c0d65['push'](_0x5f0db9);}_0x8448fc['push']([_0x3a818b['view'],_0x5c0d65]);}return _0x8448fc;}),this['listenTo'](_0x1c07f5,'suggestionLoaded',(_0x24dbc1,_0x52463f)=>{this['listenTo'](_0x52463f,'change:previous',(_0x59e542,_0x1f01b8,_0x28dff2,_0x43e380)=>{_0x52463f['isInContent']&&(null==_0x28dff2?(this['_updateController'](_0x43e380['head']),this['_handleSuggestionControllerDelayed'](_0x52463f,!0x1)):(this['_updateController'](_0x28dff2['head']),null==_0x43e380&&this['_handleSuggestionControllerDelayed'](_0x52463f,!0x0)));}),null!==_0x52463f['previous']?this['_updateController'](_0x52463f['head']):this['_handleSuggestionControllerDelayed'](_0x52463f,!0x1);}),this['listenTo'](_0x1c07f5,'suggestionUnloaded',(_0x32f326,_0x3c5ee8,_0x4135db)=>{this['stopListening'](_0x3c5ee8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c5ee8),this['_suggestionToController']['has'](_0x3c5ee8)&&this['_destroyController'](_0x3c5ee8),_0x4135db&&this['_updateController'](_0x4135db['head']);}),this['listenTo'](_0x1c07f5,'suggestionChanged',(_0x4f74fe,_0x1b2e89)=>{this['_updateController'](_0x1b2e89);}),this['listenTo'](_0x2508bf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x381865,'addComment',(_0x3f4901,{threadId:_0x1f35ff,isFromAdapter:_0xc7ec8d})=>{if(_0xc7ec8d||!_0x1c07f5['hasSuggestion'](_0x1f35ff))return;const _0x31b595=_0x1c07f5['getSuggestion'](_0x1f35ff);this['_suggestionToController']['get'](_0x31b595)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3c069a=this['editor']['plugins']['get']('Annotations'),_0x22e0e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0c87=Array['from'](_0x3c069a['activeAnnotations'],_0x3ed839=>_0x3ed839['innerView'])['filter'](_0x5470e8=>this['_viewToController']['has'](_0x5470e8)),_0x2001ea=[];for(const _0x490848 of _0x5f0c87){const _0x1b66e0=this['_viewToController']['get'](_0x490848)['model']['getAllAdjacentSuggestions']();_0x2001ea['push'](..._0x1b66e0['reduce']((_0xd2d486,_0x559226)=>[..._0xd2d486,..._0x559226['getMarkerNames']()],[]));}_0x22e0e0['activeMarkers']=_0x2001ea;}['_addUIComponentsToFactory'](){const _0x4d9b15=this['editor'],_0x333162=_0x4d9b15['locale'],_0x696d8f=o(_0x333162,'Track\x20changes'),_0x452c07=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x696d8f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x333162,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x333162,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x333162,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x333162,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1462f1 of _0x452c07)if(ae(_0x1462f1)){const _0x35532b=_0x4d9b15['commands']['get'](_0x1462f1['model']['commandName']);_0x1462f1['model']['bind']('isOn','isEnabled')['to'](_0x35532b,'value','isEnabled');}_0x4d9b15['ui']['componentFactory']['add']('trackChanges',_0x372594=>this['_createToolbarButton'](_0x372594,_0x452c07,_0x696d8f)),_0x4d9b15['ui']['componentFactory']['add']('menuBar:trackChanges',_0x57b40f=>this['_createMenuBarMenu'](_0x57b40f,_0x452c07,_0x696d8f));}['_createToolbarButton'](_0x5d5aea,_0x410af7,_0x40ec78){const _0xcba351=zt(_0x5d5aea,Zt),_0x5359f3=this['editor']['commands']['get']('trackChanges');_0xcba351['buttonView']['set']({'tooltip':_0x40ec78,'label':_0x40ec78,'icon':ie}),_0xcba351['buttonView']['bind']('isOn')['to'](_0x5359f3,'value'),_0xcba351['buttonView']['on']('execute',()=>{_0x5359f3['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xcba351,_0x410af7,{'role':'menu'});const _0x59d410=[];for(const _0x590412 of _0x410af7)ae(_0x590412)&&_0x59d410['push'](this['editor']['commands']['get'](_0x590412['model']['commandName']));const _0x27343d=_0xcba351['buttonView'];return _0x27343d['actionView']['unbind']('isEnabled'),_0x27343d['arrowView']['unbind']('isEnabled'),_0x27343d['actionView']['bind']('isEnabled')['to'](_0x5359f3,'isEnabled'),_0x27343d['arrowView']['bind']('isEnabled')['toMany'](_0x59d410,'isEnabled',(..._0x5e5740)=>_0x5e5740['some'](_0x5e63d3=>_0x5e63d3)),_0xcba351['on']('execute',_0x26a087=>{this['editor']['execute'](_0x26a087['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xcba351;}['_createMenuBarMenu'](_0x18c6f1,_0x30f162,_0x5f38ef){const _0x512296=new Kt(_0x18c6f1),_0x350a3f=this['editor']['commands']['get']('trackChanges');_0x512296['buttonView']['set']({'label':_0x5f38ef,'icon':ie});const _0x4ae68d=new Qt(_0x18c6f1);for(const _0x31c61a of _0x30f162){if('separator'==_0x31c61a['type']){_0x4ae68d['items']['add'](new Jt(_0x18c6f1));continue;}const _0x1ade5f=new Xt(_0x18c6f1,_0x512296),_0x15a668=new Yt(_0x18c6f1),_0x320814=_0x31c61a['model'];_0x15a668['bind'](...Object['keys'](_0x320814))['to'](_0x320814),_0x15a668['delegate']('execute')['to'](_0x512296),_0x15a668['on']('execute',()=>{this['editor']['execute'](_0x320814['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ade5f['children']['add'](_0x15a668),_0x4ae68d['items']['add'](_0x1ade5f);}return _0x512296['bind']('isEnabled')['to'](_0x350a3f,'isEnabled'),_0x512296['panelView']['children']['add'](_0x4ae68d),_0x512296;}['_initializeController'](_0x314fcc){const _0x32e6b5=this['editor'],_0x3f5e04=_0x32e6b5['config'],_0x1a7809=_0x32e6b5['plugins']['get']('Annotations'),_0x1c3659=_0x32e6b5['plugins']['get']('CommentsRepository'),_0x3a1e26=_0x32e6b5['plugins']['get']('EditorAnnotations'),_0x243860=_0x32e6b5['plugins']['get'](_0x3c67fa)['me'],_0x158bd5=_0x3f5e04['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x49f600,CommentThreadInputView:_0x5ff67a}=_0x32e6b5['plugins']['get']('CommentsUI');let _0x15d7a8,_0x2d7fec;this['_annotationViews']['has'](_0x314fcc['id'])?(_0x2d7fec=this['_annotationViews']['get'](_0x314fcc['id']),_0x15d7a8=_0x2d7fec['mainView']):(_0x15d7a8=new _0x158bd5(_0x32e6b5['locale'],_0x314fcc,_0x243860,{'disableComments':this['_disableComments'],'editorConfig':_0x3f5e04['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3f5e04['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3f5e04['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3f5e04['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x42ab4e(_0x3f5e04['get']('locale')),'CommentView':_0x3f5e04['get']('comments')['CommentView'],'CommentsListView':_0x49f600,'CommentThreadInputView':_0x5ff67a}),_0x15d7a8['acceptButton']['on']('execute',()=>{_0x32e6b5['editing']['view']['focus']();}),_0x15d7a8['discardButton']['on']('execute',()=>{_0x32e6b5['editing']['view']['focus']();}),_0x2d7fec=_0x1a7809['createAnnotationView'](this['editor']['locale'],_0x15d7a8),_0x2d7fec['bind']('isDirty')['to'](_0x15d7a8,'isDirty'),_0x2d7fec['bind']('length')['to'](_0x15d7a8),_0x2d7fec['bind']('type')['to'](_0x15d7a8,'type',_0x291817=>'suggestion-'+_0x291817),this['_annotationViews']['set'](_0x314fcc['id'],_0x2d7fec));const _0x1208b4=_0x1c3659['createCommentThreadController'](_0x314fcc['commentThread'],_0x15d7a8),_0x28d103=new oe(_0x32e6b5,_0x314fcc,_0x15d7a8,_0x1208b4),_0x38eb7d=_0x314fcc['getAllAdjacentSuggestions']()['filter'](_0x3d9916=>_0x3d9916['isInContent']);_0x15d7a8['descriptionParts']=_0x32e6b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x38eb7d),this['_suggestionToController']['set'](_0x314fcc,_0x28d103),this['_viewToController']['set'](_0x15d7a8,_0x28d103);const _0x414356=_0x1a7809['createAnnotation']({'view':_0x2d7fec,'target':()=>{const _0x34019a=[],_0x306242=_0x314fcc['getAllAdjacentSuggestions']()['filter'](_0x5671e3=>_0x5671e3['isInContent']);for(const _0x2615bb of _0x306242)_0x34019a['push'](..._0x2615bb['getMarkers']());return _0x362eea(_0x32e6b5['editing'],_0x34019a);},'type':()=>'suggestion-'+_0x28d103['view']['type']});_0x1c3659['_bindAnnotationToEditors'](_0x15d7a8,_0x414356),_0x1a7809['add'](_0x414356),_0x3a1e26['registerAnnotation'](_0x414356);}['_destroyController'](_0x22b1f7){const _0x40b171=this['editor']['plugins']['get']('CommentsRepository'),_0x1815f2=this['editor']['plugins']['get']('Annotations'),_0x3a9368=this['_suggestionToController']['get'](_0x22b1f7),_0x4f42d6=_0x3a9368['view'],_0x5a2688=_0x1815f2['getByInnerView'](_0x4f42d6);_0x40b171['_unbindEditors'](_0x4f42d6),_0x5a2688&&_0x1815f2['remove'](_0x5a2688),this['_suggestionToController']['delete'](_0x22b1f7),this['_viewToController']['delete'](_0x4f42d6),_0x3a9368['destroy']();}['_updateController'](_0x4ebce1){if(!_0x4ebce1['isInContent']||!this['_suggestionToController']['has'](_0x4ebce1))return;const _0xed3e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b5810=this['_suggestionToController']['get'](_0x4ebce1),_0x3f56cc=_0x4ebce1['getAllAdjacentSuggestions']();_0x1b5810['view']['descriptionParts']=_0xed3e3['descriptionFactory']['getDescriptions'](_0x3f56cc);}['destroy'](){for(const _0x1bbf35 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1bbf35);for(const _0x4773ac of this['_annotationViews']['values']())_0x4773ac['mainView']['destroy']();super['destroy']();}}function ae(_0x4daf2d){return'model'in _0x4daf2d;}class k extends _0x3be5df{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x39717b){this['editor']['plugins']['get'](p)['adapter']=_0x39717b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x428319){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x428319);}['getSuggestions']({skipNotAttached:_0x31d980=!0x1,toJSON:_0xc359ba=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x31d980,'toJSON':_0xc359ba});}['getSuggestion'](_0x30565f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x30565f);}}const T=['Pagination'];class P extends _0x3be5df{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4991d8=this['editor'];if(_0x4991d8['config']['define']('trackChangesData.editorCreator',_0x5893aa=>{const _0x52a883=_0x4991d8['model']['document']['getRootNames']()['reduce']((_0x4bcfe4,_0x599c3f)=>(_0x4bcfe4[_0x599c3f]='',_0x4bcfe4),{});return _0x4991d8['constructor']['create'](_0x52a883,_0x5893aa);}),'function'!=typeof _0x4991d8['config']['get']('trackChangesData')['editorCreator'])throw new _0x357ebd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x572577){return N(this['editor'],!0x0,_0x572577);}['getDataWithDiscardedSuggestions'](_0x536c77){return N(this['editor'],!0x1,_0x536c77);}}class D extends _0x3be5df{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x59c6ff){super(_0x59c6ff),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(_0x1239e9){return void 0x0!==_0x1239e9['getRootsAttributes'];}async function N(_0x2d9250,_0x5b798b,_0x4e476f){const _0x1fc11c=_0x3c199d(_0x2d9250,T);_0x1fc11c['plugins']['push'](p,D),_0x1fc11c['rootsAttributes']=v(_0x2d9250)?_0x2d9250['getRootsAttributes']():void 0x0;const _0x26c9b7=document['createDocumentFragment'](),_0x4996e0=_0x2d9250['config']['get']('trackChangesData')['editorCreator'],_0x23295c=await _0x4996e0(_0x1fc11c,()=>function(_0x2c8185){const _0x24b106=document['createElement']('div');return _0x2c8185['appendChild'](_0x24b106),_0x24b106;}(_0x26c9b7));!function(_0x145a80,_0x41f129){const _0x4256af=_0x145a80['model']['document']['getRootNames']()['reduce']((_0xcfbdbb,_0x2baeb0)=>(_0xcfbdbb[_0x2baeb0]=_0x145a80['data']['get']({'rootName':_0x2baeb0}),_0xcfbdbb),{}),_0x292501=_0x145a80['plugins']['get']('Users')['users']['map'](_0x2e25de=>({'id':_0x2e25de['id'],'name':_0x2e25de['name']})),_0x427fea=_0x145a80['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17751c=_0x145a80['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x517608=_0x41f129['plugins']['get']('Users'),_0x1b4f12=_0x41f129['plugins']['get']('TrackChangesEditing'),_0x1d37e4=_0x41f129['plugins']['get']('CommentsRepository');for(const _0x10426a of _0x292501)_0x517608['getUser'](_0x10426a['id'])||_0x517608['addUser'](_0x10426a);_0x517608['me']||_0x517608['useAnonymousUser']();for(const _0x4d5164 of _0x427fea)_0x1b4f12['addSuggestionData'](_0x4d5164);for(const _0x439cd6 of _0x17751c)_0x1d37e4['addCommentThread'](_0x439cd6);_0x41f129['data']['set'](_0x4256af);}(_0x2d9250,_0x23295c),_0x23295c['execute'](_0x5b798b?'acceptAllSuggestions':'discardAllSuggestions');const _0x1d6e7a=v(_0x23295c)?_0x23295c['getFullData'](_0x4e476f):_0x23295c['data']['get'](_0x4e476f);return await _0x23295c['destroy'](),_0x1d6e7a;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};