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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +10 -10
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/mergefields.js +1 -1
  136. package/src/integrations/multilevellist.js +1 -1
  137. package/src/integrations/pagebreak.js +1 -1
  138. package/src/integrations/paragraph.js +1 -1
  139. package/src/integrations/removeformat.js +1 -1
  140. package/src/integrations/restrictededitingmode.js +1 -1
  141. package/src/integrations/shiftentercommand.js +1 -1
  142. package/src/integrations/standardeditingmode.js +1 -1
  143. package/src/integrations/style.js +1 -1
  144. package/src/integrations/table.js +1 -1
  145. package/src/integrations/tablecaption.js +1 -1
  146. package/src/integrations/tableclipboard.js +1 -1
  147. package/src/integrations/tablecolumnresize.js +1 -1
  148. package/src/integrations/tableheadings.js +1 -1
  149. package/src/integrations/tablemergesplit.js +1 -1
  150. package/src/integrations/tableofcontents.js +1 -1
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.js +1 -1
  153. package/src/integrations/title.js +1 -1
  154. package/src/integrations/undo.js +1 -1
  155. package/src/integrations/utils.js +1 -1
  156. package/src/suggestion.js +2 -2
  157. package/src/suggestiondescriptionfactory.js +1 -1
  158. package/src/trackchanges.js +1 -1
  159. package/src/trackchangesdata.js +1 -1
  160. package/src/trackchangesediting.js +1 -1
  161. package/src/trackchangesui.js +1 -1
  162. package/src/ui/suggestioncontroller.js +2 -2
  163. package/src/ui/view/basesuggestionthreadview.js +1 -1
  164. package/src/ui/view/suggestionthreadview.js +1 -1
  165. package/src/ui/view/suggestionview.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x468cec,PendingActions as _0x3aff86,icons as _0x1edab9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x54de02,ObservableMixin as _0x3282ad,uid as _0x3ddfb4,insertToPriorityArray as _0x5aa2f4,priorities as _0x76288f,logWarning as _0x2fc8b6,getEnvKeystrokeText as _0x58fcd4,FocusTracker as _0xc2f063,KeystrokeHandler as _0x86ce26,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x43c54d,View as _0x2a703d,ViewCollection as _0x33b381,FocusCycler as _0x3f8b62,ViewModel as _0xd4d4fd,createDropdown as Qt,SplitButtonView as _0x1b629f,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x1c4d7f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x365295,hashObject as _0x1e1f8c,surroundingMarkersDetector as _0x2f112c,FOCUS_ANNOTATION_KEYSTROKE as _0x5f0def,AriaDescriptionView as _0x262384,setupThreadKeyboardNavigation as _0x48bc1e,trimHtml as _0x5240ac,UserView as _0x44f80e,LateFocusButtonView as _0x14c061,getDateTimeFormatter as _0x215509,getAllMarkersDomElementsSorted as _0x44c1d6,sanitizeEditorConfig as _0x1b1b19}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x45c813,LiveRange as _0x5a0cc1,LivePosition as _0x1747c9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2abb0c,toWidget as _0x187778}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x481a0f,set as _0x19bd29,isEqual as _0x4118e1,unset as _0x3968cd,omit as Tt}from'lodash-es';import{Delete as _0x2d4261,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4e150d,ShiftEnter as _0x45f5e5}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x43a17f,_0x593992){super(_0x43a17f),this['_enabledCommands']=_0x593992,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 _0x36f47f of this['editor']['commands']['commands']())_0x36f47f['affectsData']&&!this['_enabledCommands']['has'](_0x36f47f)&&_0x36f47f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2d58be of this['editor']['commands']['commands']())_0x2d58be['affectsData']&&!this['_enabledCommands']['has'](_0x2d58be)&&_0x2d58be['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x3507b7,_0x60816f){super(_0x3507b7),this['_suggestions']=_0x60816f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x310776){const _0x3f6eb8=this['_suggestions']['get'](_0x310776);if(!_0x3f6eb8)throw new _0x54de02('track-changes-accept-suggestion-not-found',this);const _0x5b92b5=_0x3f6eb8['getRanges']();this['editor']['model']['canEditAt'](_0x5b92b5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f6eb8);}}class R extends ts{['_suggestions'];constructor(_0x590f59,_0x56bac7){super(_0x590f59),this['_suggestions']=_0x56bac7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4705d0){const _0x538437=this['_suggestions']['get'](_0x4705d0);if(!_0x538437)throw new _0x54de02('track-changes-discard-suggestion-not-found',this);const _0x47cb6e=_0x538437['getRanges']();this['editor']['model']['canEditAt'](_0x47cb6e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x538437);}}function ls(_0x36dec3,_0x1df4a8){let _0x3e97d3='';return _0x3e97d3+=_0x36dec3['split']('*')['map']((_0x245043,_0x38feca)=>_0x38feca%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x245043)+'</span>':nn(_0x245043))['join'](''),_0x1df4a8&&(_0x3e97d3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1df4a8['value']+'\x22\x20title=\x22'+_0x1df4a8['title']+'\x22></span>'),_0x3e97d3;}function nn(_0x10563a){const _0x270b58=document['createElement']('span');return _0x270b58['innerText']=_0x10563a,_0x270b58['innerHTML'];}function ss(_0x33a58d){return _0x33a58d['sort']((_0x433d27,_0x267600)=>'deletion'==_0x433d27['type']&&'deletion'!=_0x267600['type']?-0x1:'deletion'!=_0x433d27['type']&&'deletion'==_0x267600['type']?0x1:0x0);}function to(_0x834282,_0x7a05f0){let _0xed42c9,_0x772256=0x0;const _0x26a248=[],_0x296d65=_0x7a05f0['schema'];for(;_0x772256<_0x834282['length'];){const _0x570ba8=_0x834282[_0x772256],_0x3dae59=_0x834282[_0x772256+0x1];_0xed42c9||(_0xed42c9=_0x7a05f0['createPositionBefore'](_0x570ba8)),on(_0x7a05f0,_0x570ba8,_0x3dae59)||(_0x26a248['push'](_0x7a05f0['createRange'](_0xed42c9,_0x296d65['isObject'](_0x570ba8)?_0x7a05f0['createPositionAfter'](_0x570ba8):_0x7a05f0['createPositionAt'](_0x570ba8,'end'))),_0xed42c9=null),_0x772256++;}return _0x26a248;}function on(_0x4ad7ad,_0x50e71a,_0x32dd41){if(!_0x32dd41)return!0x1;const _0x2ae809=_0x4ad7ad['createPositionAfter'](_0x50e71a),_0x4cc4d9=_0x4ad7ad['createPositionBefore'](_0x32dd41);return _0x2ae809['isTouching'](_0x4cc4d9);}function rs(_0x17a5ce,_0x2b47d3,_0x138804){for(;_0x138804['length'];){const _0x46b770=_0x138804['splice'](0x0,0x64);_0x17a5ce['change'](()=>{for(const _0x3ba973 of _0x46b770)_0x3ba973['isInContent']&&_0x2b47d3['execute'](_0x3ba973['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1644a7,_0x3de19e,_0x5a44e8){super(_0x1644a7),this['_command']=_0x3de19e,this['_suggestions']=_0x5a44e8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x20c802=Array['from'](this['_suggestions']['values']())['some'](_0xa6aed0=>_0xa6aed0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x20c802;}['execute'](){const _0x2c57f9=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4f8cdf of _0x2c57f9){const _0x57c523=_0x4f8cdf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x57c523))return;}rs(this['editor']['model'],this['_command'],_0x2c57f9);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4d6560,_0x51ca8b,_0x4126d2){super(_0x4d6560),this['_command']=_0x51ca8b,this['_suggestions']=_0x4126d2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x451663=this['editor']['model']['document']['selection'],_0x386879=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1e6659,_0x94d759){const _0x4e1a5f=Array['from'](_0x1e6659['getRanges']()),_0x281013=new Set();for(const _0xde3cf6 of _0x94d759)if(_0xde3cf6['isInContent']){for(const _0x3c2dbf of _0x4e1a5f)for(const _0x1a20d1 of _0xde3cf6['getRanges']())(_0x3c2dbf['isIntersecting'](_0x1a20d1)||_0x1e6659['isCollapsed']&&!_0xde3cf6['isMultiRange']&&_0xde3cf6['next']&&_0x1a20d1['end']['isTouching'](_0x3c2dbf['start']))&&_0x281013['add'](_0xde3cf6);}return _0x281013;}(_0x451663,_0x386879),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x7c4f1d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5205c3 of _0x7c4f1d){const _0x2c70b8=_0x5205c3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2c70b8))return;}rs(this['editor']['model'],this['_command'],_0x7c4f1d);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x3282ad(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x44c96a,_0x1fadf9){super(),this['id']=_0x1fadf9['id'],this['type']=_0x1fadf9['type'],this['subType']=_0x1fadf9['subType']||null,this['author']=_0x1fadf9['author'],this['creator']=_0x1fadf9['creator']||_0x1fadf9['author'],this['isExternal']=Boolean(_0x1fadf9['attributes']&&_0x1fadf9['attributes']['@external']),this['data']=null,this['_model']=_0x44c96a,this['_onAccept']=_0x1fadf9['onAccept'],this['_onDiscard']=_0x1fadf9['onDiscard'],this['_onAttributesChange']=_0x1fadf9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1fadf9['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 _0x5d60d5=this;for(;_0x5d60d5['previous'];)_0x5d60d5=_0x5d60d5['previous'];return _0x5d60d5;}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'](_0x49b6dd){this['_markerNames']['add'](_0x49b6dd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b6795=>this['_model']['markers']['get'](_0x2b6795))['filter'](_0x424a0d=>_0x424a0d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xa1edf6=>{for(const _0x4e5122 of this['getMarkers']())_0xa1edf6['removeMarker'](_0x4e5122);}),this['_markerNames']['clear']();}['removeMarker'](_0x2d3aee){this['_model']['change'](_0x4599fd=>{_0x4599fd['removeMarker'](_0x2d3aee);}),this['_markerNames']['delete'](_0x2d3aee);}['addRange'](_0x4e2edc){const _0xa9246='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xa9246),this['_model']['change'](_0x127b60=>{_0x127b60['addMarker'](_0xa9246,{'range':_0x4e2edc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x44eea8){for(const _0x18a8d8 of this['getRanges']())if(_0x18a8d8['isIntersecting'](_0x44eea8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3881ce=>_0x3881ce['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x176002,_0xfa8f25)=>[..._0x176002,..._0xfa8f25['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1df817=this['getRanges']();if(0x1!=_0x1df817['length'])return null;const _0x4f6b1c=_0x1df817[0x0],_0x4aa844=_0x4f6b1c['start']['nodeAfter'],_0x4ea9f3=_0x4f6b1c['end']['nodeBefore'];return _0x4aa844 instanceof _0x45c813?_0x4aa844!=_0x4ea9f3?null:_0x4aa844: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 _0x4e2c24=[];let _0x567af9=this['head'];for(;_0x567af9;)_0x4e2c24['push'](_0x567af9),_0x567af9=_0x567af9['next'];return _0x4e2c24;}['setAttribute'](_0xa12ee0,_0x597f05){const _0x314753=_0x481a0f(this['attributes']);_0x19bd29(_0x314753,_0xa12ee0,_0x597f05),_0x4118e1(_0x314753,this['attributes'])||(this['attributes']=_0x314753,this['_onAttributesChange'](_0x314753));}['removeAttribute'](_0x10d0cb){const _0x58094a=_0x481a0f(this['attributes']);_0x3968cd(_0x58094a,_0x10d0cb),_0x4118e1(_0x58094a,this['attributes'])||(this['attributes']=_0x58094a,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 _0x3ddfb4()['substr'](0x1,0x5);}}function o(_0x1c7536,_0x3f35cc,_0x4cd343){const t=_0x1c7536['t'];switch(_0x3f35cc){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',_0x4cd343);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4cd343);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4cd343);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4cd343);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4cd343);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',_0x4cd343);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4cd343);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',_0x4cd343);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4cd343);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4cd343);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4cd343);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4cd343);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4cd343);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4cd343);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4cd343);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4cd343);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4cd343);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4cd343);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4cd343);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4cd343);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4cd343);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4cd343);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4cd343);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'},_0x4cd343);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4cd343);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4cd343);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4cd343);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4cd343);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4cd343);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'},_0x4cd343);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4cd343);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4cd343);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4cd343);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4cd343);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'},_0x4cd343);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4cd343);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'},_0x4cd343);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'},_0x4cd343);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4cd343);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'},_0x4cd343);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4cd343);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'},_0x4cd343);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4cd343);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4cd343);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x4cd343);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'},_0x4cd343);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'},_0x4cd343);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4cd343);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x4cd343);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x4cd343);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x4cd343);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3f35cc;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x49bc68,_0x27a0ff){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x49bc68,this['_locale']=_0x27a0ff;}['getDescriptions'](_0x8e3a2e){const _0x5ad127=[],_0x3ef336=new Set(),_0x3df665=new Set();for(let _0x473288=0x0;_0x473288<_0x8e3a2e['length'];_0x473288++){const _0x4efe32=_0x8e3a2e[_0x473288];if(!_0x4efe32['isInContent'])continue;const _0x2c09a6=this['_handleCustomCallbackDescription'](_0x4efe32);if(_0x2c09a6){if(null!=_0x4efe32['subType']){if(_0x3ef336['has'](_0x4efe32['subType']))continue;_0x3ef336['add'](_0x4efe32['subType']);}_0x5ad127['push'](_0x2c09a6);}else{if('attribute'!=_0x4efe32['type'])'insertion'!=_0x4efe32['type']&&'deletion'!=_0x4efe32['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5ad127,_0x4efe32,_0x8e3a2e[_0x473288+0x1]);else{const _0x4d1109=_0x4efe32['data']['key'];if(_0x3df665['has'](_0x4d1109))continue;_0x3df665['add'](_0x4efe32['data']['key']),_0x4d1109==m?this['_handleRenameSuggestionDescription'](_0x5ad127,_0x4efe32):this['_handleAttributeSuggestionDescription'](_0x5ad127,_0x4efe32);}}}return this['_resolveDescriptionItems'](_0x5ad127);}['registerDescriptionCallback'](_0x1b3265){this['_customCallbacks']['push'](_0x1b3265);}['registerElementLabel'](_0x1955ef,_0x46dc04,_0x1532ab=_0x76288f['normal']){'function'==typeof _0x1955ef?_0x5aa2f4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1955ef,'label':_0x46dc04,'priority':_0x1532ab}):this['_itemLabels']['set'](_0x1955ef,_0x46dc04);}['registerAttributeLabel'](_0x123fc6,_0x264297){this['_attributeLabels']['set'](_0x123fc6,_0x264297);}['getItemLabel'](_0x50d47d,_0x292d18=0x1){let _0x3af015;for(const _0x4848ec of this['_itemLabelsCallbacks'])if(_0x4848ec['matchingCallback'](_0x50d47d)){_0x3af015=_0x4848ec['label'];break;}return _0x3af015||(_0x3af015=this['_itemLabels']['get'](_0x50d47d['name'])),_0x3af015?_0x3af015(_0x292d18):0x1!==_0x292d18?_0x292d18+'\x20'+_0x50d47d['name']+'s':''+_0x50d47d['name'];}['_addDescriptionItems'](_0x599c8f,_0x478039){const _0x1be7f2=_0x478039['getFirstRange']()['getWalker'](),_0x5b495a='insertion'==_0x478039['type']?'add':'remove';for(const _0x37b299 of _0x1be7f2){const _0x37920d=_0x37b299['item'],_0x4a04e3=_0x599c8f[_0x599c8f['length']-0x1];if(_0x37920d['is']('$textProxy'))_0x4a04e3&&_0x4a04e3['type']['indexOf']('Container')>-0x1&&_0x599c8f['pop'](),_0x4a04e3&&'text'==_0x4a04e3['type']?_0x4a04e3[_0x5b495a]+=_0x37920d['data']:_0x599c8f['push']({'type':'text','add':'add'==_0x5b495a?_0x37920d['data']:'','remove':'remove'==_0x5b495a?_0x37920d['data']:''});else{if(this['_schema']['isObject'](_0x37920d)){const _0x3fb409=_0x37920d;if(_0x4a04e3&&_0x4a04e3['type']['indexOf']('Container')>-0x1&&_0x599c8f['pop'](),'elementEnd'==_0x37b299['type'])continue;_0x4a04e3&&_0x4a04e3['type']==_0x5b495a+'Object'&&_0x4a04e3['element']['name']==_0x3fb409['name']?_0x4a04e3['quantity']++:_0x599c8f['push']({'type':_0x5b495a+'Object','element':_0x3fb409,'quantity':0x1}),_0x1be7f2['skip'](_0xda93b1=>!('elementEnd'==_0xda93b1['type']&&_0xda93b1['item']==_0x37920d));}else{if(this['_schema']['checkChild'](_0x37920d,'$text')||_0x37920d['is']('element','softBreak')){const _0x5e7ed5=_0x37920d;if('add'==_0x5b495a&&'elementStart'==_0x37b299['type']||'remove'==_0x5b495a&&'elementEnd'==_0x37b299['type'])continue;if(_0x4a04e3&&-0x1==_0x4a04e3['type']['indexOf']('Container')){'text'==_0x4a04e3['type']&&(_0x4a04e3[_0x5b495a]+='\x0a');continue;}let _0x3ed7f3;if(_0x3ed7f3='add'==_0x5b495a?_0x5e7ed5['nextSibling']&&!this['_schema']['isObject'](_0x5e7ed5['nextSibling'])?_0x5e7ed5['nextSibling']:null:_0x5e7ed5['previousSibling']&&!this['_schema']['isObject'](_0x5e7ed5['previousSibling'])?_0x5e7ed5['previousSibling']:null,_0x5e7ed5['isEmpty']||_0x3ed7f3&&_0x3ed7f3['isEmpty']){const _0x493f46=_0x3ed7f3&&_0x3ed7f3['isEmpty']?_0x3ed7f3:_0x5e7ed5;_0x4a04e3&&_0x4a04e3['type']==_0x5b495a+'EmptyContainer'&&_0x4a04e3['element']['name']==_0x493f46['name']?_0x4a04e3['quantity']++:_0x599c8f['push']({'type':_0x5b495a+'EmptyContainer','element':_0x493f46,'quantity':0x1});}else _0x599c8f['push']({'type':_0x5b495a+'Container','element':_0x5e7ed5});}}}}}['_resolveDescriptionItems'](_0xe631d){const _0x449c58=this['_locale'],_0x27e681=[],_0x33c954=[],_0x3f14d8=[];for(const _0x20c5ce of _0xe631d)switch(_0x20c5ce['type']){case'text':if(_0x20c5ce['add']=_0x20c5ce['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x20c5ce['remove']=_0x20c5ce['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x20c5ce['add']&&''!=_0x20c5ce['remove']){_0x27e681['push']({'type':'replace','content':o(_0x449c58,'REPLACE_TEXT',['\x22'+_0x20c5ce['remove']+'\x22','\x22'+_0x20c5ce['add']+'\x22'])});continue;}if(null!=_0x20c5ce['add']['match'](/^ +$/)){_0x27e681['push']({'type':'insertion','content':o(_0x449c58,'*Insert:*\x20%0',o(_0x449c58,'ELEMENT_SPACE',_0x20c5ce['add']['length']))});continue;}if(null!=_0x20c5ce['remove']['match'](/^ +$/)){_0x27e681['push']({'type':'deletion','content':o(_0x449c58,'*Remove:*\x20%0',o(_0x449c58,'ELEMENT_SPACE',_0x20c5ce['remove']['length']))});continue;}if(''!=_0x20c5ce['add']){_0x27e681['push']({'type':'insertion','content':o(_0x449c58,'*Insert:*\x20%0','\x22'+_0x20c5ce['add']+'\x22')});continue;}_0x27e681['push']({'type':'deletion','content':o(_0x449c58,'*Remove:*\x20%0','\x22'+_0x20c5ce['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x27e681['push']({'type':'insertion','content':o(_0x449c58,'*Insert:*\x20%0',this['getItemLabel'](_0x20c5ce['element'],_0x20c5ce['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x27e681['push']({'type':'deletion','content':o(_0x449c58,'*Remove:*\x20%0',this['getItemLabel'](_0x20c5ce['element'],_0x20c5ce['quantity']))});continue;case'addContainer':_0x27e681['push']({'type':'insertion','content':o(_0x449c58,'*Split:*\x20%0',this['getItemLabel'](_0x20c5ce['element'],_0x20c5ce['quantity']))});continue;case'removeContainer':_0x27e681['push']({'type':'deletion','content':o(_0x449c58,'*Merge:*\x20%0',this['getItemLabel'](_0x20c5ce['element'],_0x20c5ce['quantity']))});continue;case'addFormat':_0x33c954['push'](_0x20c5ce['key']);continue;case'removeFormat':_0x3f14d8['push'](_0x20c5ce['key']);continue;default:_0x27e681['push'](_0x20c5ce);}if(_0x33c954['length']){const _0x4b1bc5=_0x33c954['map'](_0x50251e=>this['_attributeLabels']['has'](_0x50251e)?this['_attributeLabels']['get'](_0x50251e):_0x50251e)['join'](',\x20');_0x27e681['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4b1bc5)});}if(_0x3f14d8['length']){const _0x2d2a98=_0x3f14d8['map'](_0x2a51b2=>this['_attributeLabels']['has'](_0x2a51b2)?this['_attributeLabels']['get'](_0x2a51b2):_0x2a51b2)['join'](',\x20');_0x27e681['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2d2a98)});}return _0x27e681;}['_handleCustomCallbackDescription'](_0xeae067){for(const _0x88db37 of this['_customCallbacks']){const _0x91014a=_0x88db37(_0xeae067);if(_0x91014a&&'type'in _0x91014a)return _0x91014a;}}['_handleAttributeSuggestionDescription'](_0x3e7a46,_0x3e50d1){const _0x46d391=_0x3e50d1['data'],_0x26b941=void 0x0===_0x46d391['newValue']?'removeFormat':'addFormat';_0x3e7a46['push']({'type':_0x26b941,'key':_0x46d391['key']});}['_handleRenameSuggestionDescription'](_0x5f07d8,_0x50f46d){_0x5f07d8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x50f46d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a1181,_0x2f1d5e,_0x46e162){if(this['_addDescriptionItems'](_0x2a1181,_0x2f1d5e),_0x46e162&&_0x46e162['getFirstRange']()&&!_0x2f1d5e['getFirstRange']()['end']['isEqual'](_0x46e162['getFirstRange']()['start'])){const _0x2bf4b3=_0x2a1181[_0x2a1181['length']-0x1],_0x2ed07e='insertion'==_0x2f1d5e['type']?'add':'remove';_0x2bf4b3&&'text'==_0x2bf4b3['type']&&(_0x2bf4b3[_0x2ed07e]+='\x0a');}}}class V extends _0x468cec{['afterInit'](){const _0x288e05=this['editor'],_0x21897f=_0x288e05['plugins']['get']('TrackChangesEditing');_0x288e05['commands']['get']('showAIAssistant')&&_0x21897f['enableCommand']('showAIAssistant');}}class U extends _0x468cec{['afterInit'](){const _0x23c9e4=this['editor'],_0x2ac048=_0x23c9e4['locale'];if(!_0x23c9e4['plugins']['has']('AlignmentEditing'))return;const _0x32b328=_0x23c9e4['plugins']['get']('TrackChangesEditing');_0x32b328['enableDefaultAttributesIntegration']('alignment'),_0x32b328['registerBlockAttribute']('alignment'),_0x32b328['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2ac048,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25e292=this['editor'],_0x213d4b=_0x25e292['locale'];_0x25e292['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36c17c=>{if('formatBlock'!=_0x36c17c['type'])return;const {data:_0x4a6a9e}=_0x36c17c;if(_0x4a6a9e&&'alignment'==_0x4a6a9e['commandName']){const _0x5b3a21=_0x4a6a9e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x213d4b,'*Format:*\x20%0',function(_0x47bc58){switch(_0x47bc58){case'left':return o(_0x213d4b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x213d4b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x213d4b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x213d4b,'FORMAT_JUSTIFY_TEXT');}}(_0x5b3a21))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x468cec{['afterInit'](){const _0x40281e=this['editor'],_0x2ea273=_0x40281e['plugins']['get']('TrackChangesEditing'),_0x1430dc=_0x40281e['locale'];for(const _0x48035c of ti){if(!_0x40281e['plugins']['has'](_0x48035c))continue;const _0x2f820d=_0x48035c['slice'](0x0,-0x7)['toLowerCase'](),_0x19d40f='FORMAT_'+_0x2f820d['toUpperCase']();_0x2ea273['enableDefaultAttributesIntegration'](_0x2f820d),_0x2ea273['registerInlineAttribute'](_0x2f820d),_0x2ea273['descriptionFactory']['registerAttributeLabel'](_0x2f820d,o(_0x1430dc,_0x19d40f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a3a13=this['editor'],_0x5af59d=_0x1a3a13['locale'],_0x358890=_0x1a3a13['plugins']['get']('TrackChangesEditing');function _0x4a37f5(_0x284eb5,_0x2639bf){_0x358890['descriptionFactory']['registerDescriptionCallback'](_0x3ab2f4=>{if('formatInline'!=_0x3ab2f4['type'])return;const {data:_0x15bc28}=_0x3ab2f4;return _0x15bc28&&_0x15bc28['commandName']===_0x284eb5?_0x15bc28['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5af59d,'*Format:*\x20%0',_0x2639bf)}:{'type':'format','content':o(_0x5af59d,'*Remove\x20format:*\x20%0',_0x2639bf)}:void 0x0;});}_0x4a37f5('bold',o(_0x5af59d,'FORMAT_BOLD')),_0x4a37f5('italic',o(_0x5af59d,'FORMAT_ITALIC')),_0x4a37f5('underline',o(_0x5af59d,'FORMAT_UNDERLINE')),_0x4a37f5('code',o(_0x5af59d,'FORMAT_CODE')),_0x4a37f5('strikethrough',o(_0x5af59d,'FORMAT_STRIKETHROUGH')),_0x4a37f5('subscript',o(_0x5af59d,'FORMAT_SUBSCRIPT')),_0x4a37f5('superscript',o(_0x5af59d,'FORMAT_SUPERSCRIPT'));}}class F extends _0x468cec{['afterInit'](){const _0x1bbfc0=this['editor'],_0x23b11a=_0x1bbfc0['locale'];if(!_0x1bbfc0['plugins']['has']('BlockQuoteEditing'))return;const _0x93b1d0=_0x1bbfc0['plugins']['get']('TrackChangesEditing'),_0x292579=this['editor']['commands']['get']('blockQuote');_0x93b1d0['enableCommand']('blockQuote',(_0x3b3b15,_0x947a5a={})=>{const _0x5a89ae=this['editor']['model']['document']['selection'],_0x767aa2=_0x947a5a&&void 0x0!==_0x947a5a['forceValue']?_0x947a5a['forceValue']:!_0x292579['value'];let _0x4326df=[];if(_0x767aa2){const _0x39a2e7=Array['from'](_0x5a89ae['getSelectedBlocks']())['filter'](_0x393987=>oo(_0x393987)||function(_0xbf7a75,_0x27bd71){const _0x17d512=_0x27bd71['checkChild'](_0xbf7a75['parent'],'blockQuote'),_0x13005e=_0x27bd71['checkChild'](['$root','blockQuote'],_0xbf7a75);return _0x17d512&&_0x13005e;}(_0x393987,this['editor']['model']['schema']));_0x4326df=to(_0x39a2e7,_0x1bbfc0['model']);}else{const _0x338f17=Array['from'](_0x5a89ae['getSelectedBlocks']())['filter'](_0x4ff2a6=>oo(_0x4ff2a6));_0x4326df=to(_0x338f17,_0x1bbfc0['model']);}_0x1bbfc0['model']['change'](()=>{for(const _0x14be8f of _0x4326df)_0x93b1d0['markBlockFormat'](_0x14be8f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x767aa2}]});});}),_0x93b1d0['descriptionFactory']['registerDescriptionCallback'](_0x415c0d=>{const {data:_0xc5f019}=_0x415c0d;if(_0xc5f019&&'blockQuote'==_0xc5f019['commandName']){const _0x97abb4=o(_0x23b11a,'ELEMENT_BLOCK_QUOTE');return _0xc5f019['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23b11a,'*Set\x20format:*\x20%0',_0x97abb4)}:{'type':'format','content':o(_0x23b11a,'*Remove\x20format:*\x20%0',_0x97abb4)};}});}}function oo(_0x3b52a4){return'blockQuote'==_0x3b52a4['parent']['name'];}class L extends _0x468cec{['afterInit'](){const _0x3cf911=this['editor'];_0x3cf911['plugins']['has']('CaseChange')&&(_0x3cf911['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3cf911['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3cf911['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x468cec{['afterInit'](){const _0x29a0be=this['editor'];_0x29a0be['commands']['get']('ckbox')&&_0x29a0be['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x468cec{['afterInit'](){const _0x58c1c0=this['editor'];if(!_0x58c1c0['plugins']['has']('CodeBlock'))return;const _0x15212f=_0x58c1c0['plugins']['get']('TrackChangesEditing'),_0x25ce1d=_0x58c1c0['locale'],_0x39b19b=_0x58c1c0['config']['get']('codeBlock')['languages'],_0x475f37=_0x58c1c0['commands']['get']('codeBlock');_0x15212f['enableCommand']('indentCodeBlock'),_0x15212f['enableCommand']('outdentCodeBlock'),_0x15212f['enableCommand']('codeBlock',(_0x317a09,_0x21c459={})=>{const _0x15aa2f=_0x58c1c0['model'],_0x89a301=_0x58c1c0['model']['document']['selection'],_0xae395=_0x21c459&&void 0x0!==_0x21c459['forceValue']?_0x21c459['forceValue']:!_0x475f37['value'];let _0x3cf593;_0x21c459['language']||(_0x21c459['language']=_0x39b19b[0x0]['language']),_0x3cf593=_0xae395?Array['from'](_0x89a301['getSelectedBlocks']())['filter'](_0x5a11aa=>eo(_0x5a11aa)||function(_0x478325,_0x610423){if(_0x478325['is']('rootElement')||_0x610423['isLimit'](_0x478325))return!0x1;return _0x610423['checkChild'](_0x478325['parent'],'codeBlock');}(_0x5a11aa,_0x15aa2f['schema'])):Array['from'](_0x89a301['getSelectedBlocks']())['filter'](_0x5cca0e=>eo(_0x5cca0e));const _0x127677=to(_0x3cf593,_0x15aa2f);_0x15aa2f['change'](()=>{for(const _0xe3f4f2 of _0x127677)_0x15212f['markBlockFormat'](_0xe3f4f2,{'commandName':'codeBlock','commandParams':[{..._0x21c459,'forceValue':_0xae395}],'formatGroupId':'blockName'});});}),(_0x15212f['descriptionFactory']['registerElementLabel']('codeBlock',_0x49a0de=>o(_0x25ce1d,'ELEMENT_CODE_BLOCK',_0x49a0de)),_0x15212f['descriptionFactory']['registerDescriptionCallback'](_0x43d096=>{if('formatBlock'!=_0x43d096['type'])return;const _0x1088db=_0x25ce1d['t'],{data:_0x5c0c9a}=_0x43d096;if(!_0x5c0c9a||'codeBlock'!=_0x5c0c9a['commandName'])return;const _0x587e35=_0x5c0c9a['commandParams'][0x0]['language'],_0x38f7e7=_0x1088db(_0x39b19b['find'](_0xbb7f48=>_0xbb7f48['language']===_0x587e35)['label'])['toLowerCase']();return _0x5c0c9a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25ce1d,'*Set\x20format:*\x20%0',o(_0x25ce1d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x38f7e7+')')}:{'type':'format','content':o(_0x25ce1d,'*Remove\x20format:*\x20%0',o(_0x25ce1d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x563932){return'codeBlock'==_0x563932['name'];}class q extends _0x468cec{['afterInit'](){const _0x4749bb=this['editor'];if(!_0x4749bb['plugins']['has']('CommentsEditing'))return;_0x4749bb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x51f0a2,_0x3fc510,_0x94e6e3){const _0xbb0ebb=[];for(const _0xe749b4 of _0x3fc510['getItems']())_0xe749b4['hasAttribute'](_0x51f0a2)&&_0xbb0ebb['push'](_0x94e6e3['createRangeOn'](_0xe749b4));return _0xbb0ebb;}function _e(_0x252fa4,_0x3796e5,{showActiveMarker:_0x57dd0c=!0x0}={}){const _0x5ab902=_0x252fa4['plugins']['get']('TrackChangesEditing');return(_0xdd908f,_0x1eedda,_0x3872bd)=>{if(!_0x3872bd['consumable']['test'](_0x1eedda['markerRange'],_0xdd908f['name']))return;const _0xaaddc1=_0x1eedda['markerRange']['getWalker'](),_0x10907c=_0x1eedda['markerRange']['start'],_0x537c0f=_0x252fa4['model']['schema'];let _0xd96cfd=null,_0x131f90=null,_0x44ad7c=!0x1,_0x26867c=!0x1;for(const _0x481da6 of _0xaaddc1){const _0x5c2a5b=_0x481da6['item'];_0x44ad7c=_0x44ad7c||_0x537c0f['isContent'](_0x5c2a5b);const _0x5258f9=_0x3872bd['mapper']['toViewElement'](_0x5c2a5b);if(_0x5258f9&&_0x5258f9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x481da6['type']&&(_0x537c0f['isBlock'](_0x5c2a5b)&&!_0x537c0f['isLimit'](_0x5c2a5b)&&(_0x5c2a5b['nextSibling']||_0x10907c['isAtEnd']?_0xd96cfd&&_0xd96cfd['parent']==_0x5c2a5b||(_0xd96cfd=_0x5c2a5b,_0x4e83d1(_0x481da6['previousPosition']),_0x26867c=!0x0):_0x131f90=_0x131f90||_0x481da6['previousPosition']));}function _0x4e83d1(_0x45aea9){const {authorId:_0x207674}=_0x5ab902['_splitMarkerName'](_0x1eedda['markerName']),_0x235373=_0x3872bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3796e5,'data-author-id':_0x207674}),_0x5edbbe=_0x3872bd['mapper']['toViewPosition'](_0x45aea9);_0x57dd0c&&_0x5ab902['activeMarkers']['includes'](_0x1eedda['markerName'])&&_0x3872bd['writer']['addClass']('ck-suggestion-marker--active',_0x235373),_0x3872bd['writer']['insert'](_0x5edbbe,_0x235373),_0x3872bd['mapper']['bindElementToMarker'](_0x235373,_0x1eedda['markerName']);}_0x44ad7c||_0x26867c||!_0x131f90||_0x4e83d1(_0x131f90);};}class z extends _0x468cec{static get['requires'](){return[_0x2d4261];}['init'](){const _0x40247e=this['editor'],_0x1db936=_0x40247e['plugins']['get']('TrackChangesEditing');_0x1db936['enableCommand']('delete');const _0x1d99d0=_0x40247e['commands']['get']('deleteForward');_0x1db936['enableCommand']('deleteForward',(_0x16f970,_0x25dee6={})=>{const _0x318736=_0x40247e['model']['createSelection'](_0x40247e['model']['document']['selection']);_0x318736['isCollapsed']&&_0x40247e['model']['modifySelection'](_0x318736,{'direction':'forward','unit':_0x25dee6['unit']});const _0x3a6ccb=_0x318736['getFirstRange'](),_0x3f6250=_0x5a0cc1['fromRange'](_0x3a6ccb);let _0x385f5a;_0x16f970(_0x25dee6),_0x385f5a='$graveyard'==_0x3f6250['root']['rootName']?_0x40247e['model']['createRange'](_0x3a6ccb['start']):_0x40247e['model']['createRange'](_0x3f6250['start'],_0x3f6250['end']),_0x3f6250['detach'](),_0x40247e['model']['enqueueChange'](_0x1d99d0['buffer']['batch'],_0x5ed1eb=>{_0x1d99d0['buffer']['lock'](),_0x5ed1eb['setSelection'](_0x5ed1eb['createRange'](_0x385f5a['end'])),_0x1d99d0['buffer']['unlock']();});}),_0x40247e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x40247e,'merge'),{'priority':'high'}),_0x40247e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5a8b3b,_0x31b83d,_0x2531c1)=>{_0x2531c1['options']['showSuggestionHighlights']&&_e(_0x40247e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5a8b3b,_0x31b83d,_0x2531c1);},{'priority':'high'}),_0x40247e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2bbb4c,_0x28be42,_0x4d3531)=>{const _0x5a580f=_0x4d3531['mapper']['markerNameToElements'](_0x28be42['markerName']);if(_0x5a580f){for(const _0x2fc9f8 of _0x5a580f)_0x2fc9f8['is']('uiElement')&&(_0x4d3531['mapper']['unbindElementFromMarkerName'](_0x2fc9f8,_0x28be42['markerName']),_0x4d3531['writer']['remove'](_0x2fc9f8));}},{'priority':'high'});}}class K extends _0x468cec{['afterInit'](){const _0x5e2ae4=this['editor'];if(!_0x5e2ae4['plugins']['has']('ListEditing'))return;const _0x12202a=_0x5e2ae4['locale'],_0x2f640b=_0x5e2ae4['plugins']['get']('TrackChangesEditing'),_0x422744=_0x5e2ae4['plugins']['has']('TodoListEditing'),_0x2181cb=!!_0x5e2ae4['config']['get']('list.multiBlock');function _0x259a0b(_0x42afdd){return{'type':'format','content':''+o(_0x12202a,'*Set\x20format:*\x20%0',_0x42afdd)};}function _0x32229a(_0x383799){return{'type':'format','content':''+o(_0x12202a,'*Remove\x20format:*\x20%0',_0x383799)};}_0x2f640b['enableDefaultAttributesIntegration']('numberedList'),_0x2f640b['enableDefaultAttributesIntegration']('bulletedList'),_0x2f640b['enableDefaultAttributesIntegration']('customNumberedList'),_0x2f640b['enableDefaultAttributesIntegration']('customBulletedList'),_0x2f640b['enableDefaultAttributesIntegration']('indentList'),_0x2f640b['enableDefaultAttributesIntegration']('outdentList'),_0x2f640b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2f640b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2f640b['registerBlockAttribute']('listItemId'),_0x2f640b['registerBlockAttribute']('listType'),_0x2f640b['registerBlockAttribute']('listIndent'),_0x2181cb&&(_0x2f640b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2f640b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x422744&&(_0x2f640b['enableDefaultAttributesIntegration']('todoList'),_0x2f640b['enableDefaultAttributesIntegration']('checkTodoList'),_0x2f640b['registerBlockAttribute']('todoListChecked'),_0x2f640b['descriptionFactory']['registerDescriptionCallback'](_0x3a5f8b=>{const {data:_0x4cfc56}=_0x3a5f8b;if(_0x4cfc56&&'todoListChecked'==_0x4cfc56['key'])return{'type':'format','content':_0x4cfc56['newValue']?o(_0x12202a,'*Check\x20item*'):o(_0x12202a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x34fe5=>{if(_0x34fe5['batch']['isUndo'])return!0x1;let _0x440be3=!0x1;const _0x3adb92=_0x2f640b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f1f1a=>'todoListChecked'===_0x2f640b['_getAttributeKey'](_0x5f1f1a));for(const _0x41555c of _0x3adb92){'todo'!=_0x41555c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2f640b['_findSuggestions'](_0x41555c['getFirstRange'](),'attribute')['find'](_0x3daab5=>'listType'===_0x2f640b['_getAttributeKey'](_0x3daab5['suggestion']))||(_0x34fe5['removeMarker'](_0x41555c['getFirstMarker']()),_0x440be3=!0x0));}return _0x440be3;})),_0x2f640b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x12202a,'FORMAT_INDENT'));const _0x4318d8={'type':'format','content':''};_0x2f640b['descriptionFactory']['registerDescriptionCallback'](_0x27a41e=>{const {data:_0xf21bac}=_0x27a41e;if(!_0xf21bac||'listType'!=_0xf21bac['key'])return;let _0x503176=_0x27a41e['head'];for(;_0x503176;){if(_0x503176['data']&&(('listStyle'==_0x503176['data']['key']||'listMarkerStyle'==_0x503176['data']['key'])&&(_0x503176['data']['newValue']&&'default'!=_0x503176['data']['newValue']||'default'!=_0x503176['data']['oldValue']&&!_0xf21bac['newValue'])||!_0x2181cb&&_0x503176['data']['key']==m))return _0x4318d8;_0x503176=_0x503176['next'];}if(null==_0xf21bac['newValue'])switch(_0xf21bac['oldValue']){case'bulleted':return _0x32229a(o(_0x12202a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32229a(o(_0x12202a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32229a(o(_0x12202a,'ELEMENT_TODO_LIST'));}switch(_0xf21bac['newValue']){case'bulleted':return _0x259a0b(o(_0x12202a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x259a0b(o(_0x12202a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x259a0b(o(_0x12202a,'ELEMENT_TODO_LIST'));}}),_0x2f640b['descriptionFactory']['registerDescriptionCallback'](_0x4ed46c=>{const {data:_0x41ab27}=_0x4ed46c;if(_0x41ab27&&'listIndent'==_0x41ab27['key'])return null==_0x41ab27['newValue']||null==_0x41ab27['oldValue']&&0x0==_0x41ab27['newValue']?_0x4318d8:void 0x0;}),_0x2f640b['descriptionFactory']['registerDescriptionCallback'](_0x29f429=>{if('attribute'!=_0x29f429['type'])return;const {data:_0x6b1cd4}=_0x29f429;if(!_0x6b1cd4||'listItemId'!=_0x6b1cd4['key'])return;const _0x4b4333=Ee(_0x29f429);return'newValue'==_0x4b4333?{'type':'format','content':o(_0x12202a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4b4333?{'type':'format','content':o(_0x12202a,'*Split:*\x20list\x20item')}:_0x4318d8;}),_0x5e2ae4['model']['document']['registerPostFixer'](_0x5a8ee2=>this['listItemIdFixer'](_0x5a8ee2)),_0x5e2ae4['model']['document']['registerPostFixer'](_0x261144=>this['noTrackChangesFixer'](_0x261144)),_0x5e2ae4['model']['document']['on']('change:data',(_0x2bb379,_0x468483)=>{if(_0x468483['isUndo']||!_0x468483['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x23eab6){if(_0x23eab6['batch']['isUndo']||!_0x23eab6['batch']['isLocal'])return!0x1;let _0x3d8965=!0x1;const _0x205c46=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x525e8a=>_0x525e8a['data']&&'listItemId'==_0x525e8a['data']['key'])['filter'](_0x53ef54=>_0x53ef54['data']['newValue']&&_0x53ef54['data']['oldValue']);for(const _0x20d190 of _0x205c46)Ee(_0x20d190)||(_0x23eab6['removeMarker'](_0x20d190['getFirstMarker']()),_0x3d8965=!0x0);return _0x3d8965;}['noTrackChangesFixer'](_0x52d441){if(_0x52d441['batch']['isUndo']||!_0x52d441['batch']['isLocal'])return!0x1;const _0x56cbcb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56cbcb['trackChangesCommand']['value'])return!0x1;let _0x3678e3=!0x1;const _0x4e4fd3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2611c1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x334ba8=>'attribute'==_0x334ba8['type'])['filter'](_0x16df56=>_0x4e4fd3['includes'](_0x16df56['attributeKey']));if(0x0==_0x2611c1['length'])return _0x3678e3;for(const _0x227f55 of _0x2611c1){const _0x50fc8e=_0x56cbcb['_findSuggestions'](_0x227f55['range'],'attribute')['filter'](_0x2907b9=>!_0x2907b9['meta']['isNextTo'])['map'](_0x123136=>_0x123136['suggestion'])['filter'](_0x212803=>{const _0x4a5474=_0x56cbcb['_getAttributeKey'](_0x212803);return _0x4e4fd3['includes'](_0x4a5474);});if(_0x50fc8e['length']){for(const _0x323c52 of _0x50fc8e)_0x52d441['removeMarker'](_0x323c52['getFirstMarker']());_0x3678e3=!0x0;}}return _0x3678e3;}['assureChains'](){const _0x266dac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ede81=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2959e1;const _0x3dc5de=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20d9d0=>{if(_0x20d9d0['data']['oldRange']||!_0x20d9d0['data']['newRange'])return null;if(!_0x20d9d0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3e0ae6}=_0x266dac['_splitMarkerName'](_0x20d9d0['name']);if(!_0x266dac['hasSuggestion'](_0x3e0ae6))return null;const _0x6c61c4=_0x266dac['getSuggestion'](_0x3e0ae6);return _0x3ede81['includes'](_0x6c61c4['data']['key']);})['map'](_0x4826c4=>{const {id:_0x4b34eb}=_0x266dac['_splitMarkerName'](_0x4826c4['name']),_0x71a839=_0x266dac['getSuggestion'](_0x4b34eb);return _0x2959e1=_0x71a839['attributes']['groupId'],_0x71a839['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3dc5de['size'])return;const _0x584a40=_0x266dac['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35152b=>'attribute'==_0x35152b['type']&&_0x35152b['data']&&_0x3ede81['includes'](_0x35152b['data']['key'])&&_0x35152b['attributes']['groupId']!=_0x2959e1)['map'](_0x1c492d=>({'listItem':_0x1c492d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1c492d['attributes']['groupId']})),_0x3f3ebb=new Set();for(const {groupId:_0x5c6b9e,listItem:_0xf59566}of _0x584a40)_0x3dc5de['has'](_0xf59566)&&_0x3f3ebb['add'](_0x5c6b9e);for(const _0x3f6e99 of _0x266dac['getSuggestions']())_0x3f3ebb['has'](_0x3f6e99['attributes']['groupId'])&&_0x3f6e99['setAttribute']('groupId',_0x2959e1);}['_supportLegacySuggestions'](){const _0x2e7b03=this['editor'],_0x18b690=_0x2e7b03['locale'],_0x57d522=_0x2e7b03['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x57d522['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2b512e,_0x303d54){const _0x5c1aad=[];for(let _0xe197ad of _0x2b512e)_0xe197ad['start']['nodeAfter']===_0xe197ad['end']['parent']&&(_0xe197ad=_0x2e7b03['model']['createRange'](_0x2e7b03['model']['createPositionAt'](_0xe197ad['start']['nodeAfter'],0x0))),_0x5c1aad['push'](_0xe197ad);_0x2e7b03['model']['change'](_0x353d1c=>{const _0x44250a=_0x2e7b03['model']['document']['selection'],_0x5518d2=Array['from'](_0x44250a['getRanges']())['map'](_0x3de1df=>_0x5a0cc1['fromRange'](_0x3de1df));_0x353d1c['setSelection'](_0x5c1aad),_0x2e7b03['commands']['get'](_0x303d54['commandName'])['refresh'](),_0x303d54['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e7b03['execute'](_0x303d54['commandName'],..._0x303d54['commandParams']),_0x353d1c['setSelection'](_0x5518d2);for(const _0x20d1e0 of _0x5518d2)_0x20d1e0['detach']();});}),_0x57d522['descriptionFactory']['registerElementLabel'](function(_0x1eb4fa){const _0x1a0ee5=!_0x2e7b03['model']['schema']['isObject'](_0x1eb4fa),_0x45f0c2=_0x1eb4fa['previousSibling'],_0x140613=_0x1eb4fa['nextSibling'],_0x16dae1=_0x1eb4fa['getAttribute']('listItemId'),_0x410402=!_0x45f0c2||_0x45f0c2['getAttribute']('listItemId')!==_0x16dae1,_0x3c3e37=!_0x140613||_0x140613['getAttribute']('listItemId')!==_0x16dae1;return _0x1a0ee5&&Boolean(_0x16dae1)&&_0x410402&&_0x3c3e37;},_0x2f6175=>o(_0x18b690,'ELEMENT_LIST_ITEM',_0x2f6175));}['_registerLegacyDescription'](){const _0x288498=this['editor'],_0x4899e8=_0x288498['locale'];function _0x3cb929(_0x483588){const _0x86eb08=_0x288498['commands']['get']('bulletedList')['value'],_0x1b0616=_0x288498['commands']['get']('numberedList')['value'];return'numberedList'===_0x483588?_0x86eb08:_0x1b0616;}_0x288498['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x28a28e){if('formatBlock'!=_0x28a28e['type'])return;const {data:_0x578644}=_0x28a28e;if(!_0x578644)return;let _0xe0285e,_0x81dc6a,_0x50a037,_0x33ba2d;switch(_0x578644['commandName']){case'bulletedList':_0x50a037=_0x578644['commandParams'][0x0]['forceValue'],_0x33ba2d=_0x3cb929(_0x578644['commandName']),_0xe0285e=_0x50a037?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x33ba2d&&_0x288498['config']['get']('list.multiBlock')||(_0xe0285e='*Change\x20to:*\x20%0'),_0x81dc6a={'type':'format','content':o(_0x4899e8,_0xe0285e,o(_0x4899e8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x50a037=_0x578644['commandParams'][0x0]['forceValue'],_0x33ba2d=_0x3cb929(_0x578644['commandName']),_0xe0285e=_0x50a037?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x33ba2d&&_0x288498['config']['get']('list.multiBlock')||(_0xe0285e='*Change\x20to:*\x20%0'),_0x81dc6a={'type':'format','content':o(_0x4899e8,_0xe0285e,o(_0x4899e8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xe0285e='*Indent:*\x20%0',_0x81dc6a={'type':'format','content':o(_0x4899e8,_0xe0285e,o(_0x4899e8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xe0285e=function(_0x2ac65e){const _0x499625=_0x2ac65e['getFirstRange']();let _0x4933f7=_0x499625['start']['nodeAfter'];for(;_0x4933f7&&_0x499625['containsItem'](_0x4933f7);){if(_0x4933f7['getAttribute']('listIndent')>0x0)return!0x1;_0x4933f7=_0x4933f7['nextSibling'];}return!0x0;}(_0x28a28e)?o(_0x4899e8,'*Format:*\x20remove\x20from\x20%0',o(_0x4899e8,function(_0x576e24){return'ELEMENT_'+_0x576e24['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x28a28e))):o(_0x4899e8,'*Outdent:*\x20%0',o(_0x4899e8,'ELEMENT_LIST_ITEM')),_0x81dc6a={'type':'format','content':_0xe0285e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x578644['multipleBlocks']&&(_0xe0285e='*Merge:*\x20%0',_0x81dc6a={'type':'deletion','content':o(_0x4899e8,_0xe0285e,o(_0x4899e8,'ELEMENT_LIST_ITEM'))});}return _0x81dc6a;});}}function Ee(_0xc3bd0e){let _0x55aaec=_0xc3bd0e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x55aaec;){const _0x43d8cb=_0x55aaec['getAttribute']('listItemId');if(!_0x43d8cb)return!0x1;if(_0x43d8cb==_0xc3bd0e['data']['newValue'])return'newValue';if(_0x43d8cb==_0xc3bd0e['data']['oldValue'])return'oldValue';_0x55aaec=_0x55aaec['previousSibling'];}return!0x1;}class pe extends _0x468cec{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4b2920=this['editor']['config']['get']('list.properties'),_0x123916=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b2920['styles']&&(_0x123916['enableDefaultAttributesIntegration']('listStyle'),_0x123916['registerBlockAttribute']('listStyle')),_0x4b2920['reversed']&&(_0x123916['enableDefaultAttributesIntegration']('listReversed'),_0x123916['registerBlockAttribute']('listReversed')),_0x4b2920['startIndex']&&(_0x123916['enableDefaultAttributesIntegration']('listStart'),_0x123916['registerBlockAttribute']('listStart'));const _0x5e3e28={'type':'format','content':''};_0x123916['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x23bed3=this['editor']['locale'];_0x123916['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x23bed3,'FORMAT_LIST_REVERSED')),_0x123916['descriptionFactory']['registerDescriptionCallback'](_0xefb897=>{const {data:_0x465dc5}=_0xefb897;if(_0x465dc5&&'listReversed'==_0x465dc5['key'])return null==_0x465dc5['newValue']||0x0==_0x465dc5['newValue']&&null==_0x465dc5['oldValue']?_0x5e3e28:void 0x0;}),_0x123916['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x23bed3,'FORMAT_LIST_START')),_0x123916['descriptionFactory']['registerDescriptionCallback'](_0x49a7a9=>{const {data:_0x28e9de}=_0x49a7a9;if(_0x28e9de&&'listStart'==_0x28e9de['key'])return null==_0x28e9de['newValue']||0x1==_0x28e9de['newValue']&&null==_0x28e9de['oldValue']?_0x5e3e28:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xb9d782=>{if(_0xb9d782['batch']['isUndo'])return!0x1;let _0x17ef71=!0x1;const _0xe72730=_0x123916['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26d281=>{const _0x308bcc=_0x123916['_getAttributeKey'](_0x26d281);return'listStart'==_0x308bcc||'listReversed'==_0x308bcc;});for(const _0x5372c8 of _0xe72730){const _0x18273e=_0x5372c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x18273e||'customNumbered'==_0x18273e)continue;_0x123916['_findSuggestions'](_0x5372c8['getFirstRange'](),'attribute')['find'](_0x53f611=>'listType'==_0x123916['_getAttributeKey'](_0x53f611['suggestion']))||(_0xb9d782['removeMarker'](_0x5372c8['getFirstMarker']()),_0x17ef71=!0x0);}return _0x17ef71;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2db1d2){const _0x77aada=this['editor']['locale'],{data:_0x3beb57}=_0x2db1d2,_0x1526ef={'type':'format','content':''};if(!_0x3beb57||'listStyle'!=_0x3beb57['key'])return;if(!_0x3beb57['oldValue'])return'default'==_0x3beb57['newValue']?_0x1526ef:{'type':'format','content':''+o(_0x77aada,'*Set\x20format:*\x20%0',o(_0x77aada,this['_getTranslationKeyForListStyle'](_0x3beb57['newValue'])))};if(!_0x3beb57['newValue']){if('default'==_0x3beb57['oldValue'])return _0x1526ef;let _0x159e6b=_0x2db1d2['head'];for(;_0x159e6b;){if(_0x159e6b['data']&&'listType'==_0x159e6b['data']['key']&&_0x159e6b['data']['newValue'])return _0x1526ef;_0x159e6b=_0x159e6b['next'];}return{'type':'format','content':''+o(_0x77aada,'*Remove\x20format:*\x20%0',o(_0x77aada,this['_getTranslationKeyForListStyle'](_0x3beb57['oldValue'])))};}if('default'!=_0x3beb57['newValue'])return{'type':'format','content':''+o(_0x77aada,'*Set\x20format:*\x20%0',o(_0x77aada,this['_getTranslationKeyForListStyle'](_0x3beb57['newValue'])))};let _0x305fb0=_0x2db1d2['head'];for(;_0x305fb0;){if(_0x305fb0['data']&&'listType'==_0x305fb0['data']['key']&&_0x305fb0['data']['newValue']&&_0x305fb0['data']['oldValue'])return _0x1526ef;_0x305fb0=_0x305fb0['next'];}return{'type':'format','content':o(_0x77aada,'*Set\x20format:*\x20%0',o(_0x77aada,'ELEMENT_'+_0x2db1d2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x13cb3a=this['editor'],_0x202806=_0x13cb3a['locale'];_0x13cb3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5efce0=>{if('formatBlock'!=_0x5efce0['type'])return;const {data:_0x2d78a3}=_0x5efce0;if(!_0x2d78a3)return;let _0x268f5c,_0x1bd02d;switch(_0x2d78a3['commandName']){case'listStyle':_0x268f5c='*Change\x20to:*\x20%0',_0x1bd02d={'type':'format','content':o(_0x202806,_0x268f5c,o(_0x202806,this['_getTranslationKeyForListStyle'](_0x2d78a3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x268f5c=_0x2d78a3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1bd02d={'type':'format','content':o(_0x202806,_0x268f5c)};break;case'listStart':_0x268f5c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1bd02d={'type':'format','content':o(_0x202806,_0x268f5c,_0x2d78a3['commandParams'][0x0]['startIndex'])};}return _0x1bd02d;});}['_getTranslationKeyForListStyle'](_0xbf84f7){return'ELEMENT_'+function(_0x134353){if(ye['includes'](_0x134353))return'bulleted';if(Se['includes'](_0x134353))return'numbered';return null;}(_0xbf84f7)['toUpperCase']()+'_LIST_'+_0xbf84f7['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x468cec{static get['requires'](){return[_0x4e150d];}['init'](){const _0x33ece4=this['editor'],_0x87e465=_0x33ece4['plugins']['get']('TrackChangesEditing'),_0x392978=_0x33ece4['commands']['get']('enter');_0x87e465['enableCommand']('enter',()=>{_0x33ece4['model']['change'](_0x5d92b8=>{const _0x50130f=_0x33ece4['model']['document']['selection'],_0x4fccac=_0x50130f['getFirstPosition'](),_0x3352f0=_0x5a0cc1['fromRange'](_0x50130f['getFirstRange']());if(_0x392978['enterBlock'](_0x5d92b8)){const _0x117d8f=_0x33ece4['model']['createPositionAt'](_0x4fccac['parent']['nextSibling'],0x0),_0x46c09d=_0x5d92b8['createRange'](_0x4fccac,_0x117d8f);_0x87e465['markInsertion'](_0x46c09d);}else _0x5d92b8['setSelection'](_0x5d92b8['createRange'](_0x3352f0['end']));_0x3352f0['detach'](),_0x392978['fire']('afterExecute',{'writer':_0x5d92b8});});}),_0x33ece4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x33ece4,'split'),{'priority':'high'}),_0x33ece4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x36d9f3,_0x574411,_0x49e070)=>{const _0x229cdb=_0x49e070['mapper']['markerNameToElements'](_0x574411['markerName']);if(_0x229cdb){for(const _0x4960be of _0x229cdb)_0x4960be['hasClass']('ck-suggestion-marker-split')&&(_0x49e070['mapper']['unbindElementFromMarkerName'](_0x4960be,_0x574411['markerName']),_0x49e070['writer']['remove'](_0x4960be));}},{'priority':'high'}),_0x33ece4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5e3ebe,_0x89dbc,_0xd888fb)=>{_0xd888fb['options']['showSuggestionHighlights']&&_e(_0x33ece4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5e3ebe,_0x89dbc,_0xd888fb);},{'priority':'high'});}}class X extends _0x468cec{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x32b6c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x32b6c6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x32b6c6['enableCommand']('findNext'),_0x32b6c6['enableCommand']('findPrevious'),_0x32b6c6['enableCommand']('replace'),_0x32b6c6['enableCommand']('replaceAll');}['handleFindCommand'](_0x226661,_0x245a14,_0x41f8a1={}){const _0x359be9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x226661(_0x418eac=>{let _0x4389a6=('string'==typeof _0x245a14?_0x359be9['findByTextCallback'](_0x245a14,_0x41f8a1):_0x245a14)(_0x418eac);Array['isArray'](_0x4389a6)&&(_0x4389a6={'results':_0x4389a6,'searchText':'string'==typeof _0x245a14?_0x245a14:''});const _0x3835be=_0x4389a6['results']['filter'](_0x1ed430=>!0x1===this['_isInDeletionRange'](_0x1ed430,_0x418eac['item']));return{..._0x4389a6,'results':_0x3835be};},_0x41f8a1);}['_isInDeletionRange'](_0x5f23f6,_0x3367e4){const _0x472ffa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3367e4,_0x5f23f6['start']),this['editor']['model']['createPositionAt'](_0x3367e4,_0x5f23f6['end']));for(const _0x44dfb3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x472ffa['getIntersection'](_0x44dfb3['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x468cec{['afterInit'](){const _0x404421=this['editor']['locale'],_0x41fe0b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x227b66,commandName:_0x3d301a}of ro)this['editor']['plugins']['has'](_0x227b66)&&(_0x41fe0b['enableDefaultAttributesIntegration'](_0x3d301a),_0x41fe0b['registerInlineAttribute'](_0x3d301a));_0x41fe0b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x404421,'FORMAT_FONT_SIZE')),_0x41fe0b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x404421,'FORMAT_FONT_FAMILY')),_0x41fe0b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x404421,'FORMAT_FONT_COLOR')),_0x41fe0b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x404421,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a983c=this['editor'],_0x18d6b4=_0x4a983c['locale'];_0x4a983c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x463df7=>{const _0x4403bd=_0x18d6b4['t'];if('formatInline'!=_0x463df7['type'])return;const {data:_0x17abcf}=_0x463df7;if(null!=_0x17abcf){if('fontSize'==_0x17abcf['commandName']){const _0x4b9b5a=_0x17abcf['commandParams'][0x0]['value'];if(_0x4b9b5a){const _0x4a4326=_0x4403bd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x888a6a=>_0x888a6a['model']==_0x4b9b5a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x18d6b4,'*Set\x20font\x20size:*\x20%0',_0x4a4326)};}return{'type':'format','content':o(_0x18d6b4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x17abcf['commandName']){const _0xe40a0f=_0x17abcf['commandParams'][0x0]['value'];return _0xe40a0f?{'type':'format','content':o(_0x18d6b4,'*Set\x20font\x20family:*\x20%0',_0xe40a0f)}:{'type':'format','content':o(_0x18d6b4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x17abcf['commandName']){const _0x4a938d=_0x17abcf['commandParams'][0x0]['value'];if(_0x4a938d){const _0x3794a1=_0x43c54d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1c707c=>_0x1c707c['model']==_0x4a938d);let _0x25b4e9=_0x4a938d,_0x2e72cb='';return _0x3794a1&&(_0x25b4e9=_0x3794a1['label'],_0x2e72cb=_0x4403bd(_0x25b4e9)['toLowerCase']()),{'type':'format','content':o(_0x18d6b4,'*Set\x20font\x20color:*\x20%0',_0x2e72cb)['trim'](),'color':{'value':_0x4a938d,'title':_0x2e72cb||_0x25b4e9}};}return{'type':'format','content':o(_0x18d6b4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x17abcf['commandName']){const _0x24f804=_0x17abcf['commandParams'][0x0]['value'];if(_0x24f804){const _0xdc67b0=_0x43c54d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2499fe=>_0x2499fe['model']==_0x24f804);let _0x130716=_0x24f804,_0x55278f='';return _0xdc67b0&&(_0x130716=_0xdc67b0['label'],_0x55278f=_0x4403bd(_0x130716)['toLowerCase']()),{'type':'format','content':o(_0x18d6b4,'*Set\x20font\x20background\x20color:*\x20%0',_0x55278f)['trim'](),'color':{'value':_0x24f804,'title':_0x55278f||_0x130716}};}return{'type':'format','content':o(_0x18d6b4,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x468cec{['afterInit'](){const _0x174c28=this['editor'],_0x5c5d30=_0x174c28['plugins']['get']('TrackChangesEditing'),_0x1424d5=_0x174c28['commands']['get']('copyFormat'),_0x20791b=_0x174c28['commands']['get']('pasteFormat');_0x1424d5&&_0x20791b&&(_0x5c5d30['enableDefaultAttributesIntegration']('pasteFormat'),_0x5c5d30['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1bdfd8=this['editor'],_0x3b5c7f=_0x1bdfd8['locale'];_0x1bdfd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354a77=>{if('formatBlock'!=_0x354a77['type']&&'formatInline'!=_0x354a77['type'])return;const {data:_0x9aa04b}=_0x354a77;if(_0x9aa04b&&'pasteFormat'===_0x9aa04b['commandName']){const _0x192869=[],_0x4ff958=_0x9aa04b['commandParams'][0x0];for(const [_0x5623b8,_0x2d0e3f]of Object['entries'](_0x4ff958))_0x192869['push'](so(_0x1bdfd8,_0x5623b8,_0x2d0e3f));return _0x192869['length']?{'type':'format','content':o(_0x3b5c7f,'*Set\x20format\x20to:*\x20%0',_0x192869['join'](',\x20'))}:{'type':'format','content':o(_0x3b5c7f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3f1699,_0x35935e,_0x22ea1f){const _0x38214f=_0x3f1699['locale']['t'],_0x593b6a=_0x35935e['split'](/(?=[A-Z])/)['join']('\x20'),_0xa99a3=_0x38214f(_0x593b6a['charAt'](0x0)['toUpperCase']()+_0x593b6a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x22ea1f)return _0xa99a3;if('fontColor'===_0x35935e||'fontBackgroundColor'===_0x35935e){const _0x379b4e=_0x43c54d(_0x3f1699['config']['get']('fontColor.colors'))['find'](_0x18bae9=>_0x18bae9['model']==_0x22ea1f);return _0xa99a3+'\x20('+(_0x379b4e?_0x38214f(_0x379b4e['label'])['toLowerCase']():_0x22ea1f)+')';}if('fontSize'===_0x35935e&&isNaN(parseFloat(_0x22ea1f))){const _0x5ee2d0=_0x3f1699['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3f1699['config']['get']('fontSize.options'))['find'](_0x477b88=>_0x477b88['model']==_0x22ea1f);return _0xa99a3+'\x20('+(_0x5ee2d0?_0x38214f(_0x5ee2d0['title'])['toLowerCase']():_0x22ea1f)+')';}return _0xa99a3+'\x20('+_0x22ea1f+')';}class tt extends _0x468cec{['_headingOptions'];['afterInit'](){const _0x44ea26=this['editor'];if(!_0x44ea26['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x44ea26['config']['get']('heading.options');const _0x180806=_0x44ea26['locale'],_0x1bd442=_0x44ea26['plugins']['get']('TrackChangesEditing');_0x1bd442['enableDefaultAttributesIntegration']('heading');for(const _0x15b0f7 of this['_headingOptions'])'paragraph'!=_0x15b0f7['model']&&_0x1bd442['descriptionFactory']['registerElementLabel'](_0x15b0f7['model'],_0x518693=>{const _0x127bde=this['_getHeadingLevel'](_0x15b0f7['model']);return null!==_0x127bde?_0xfb555b(_0x518693,_0x127bde):_0x11b362(_0x518693,_0x15b0f7['title']);});function _0xfb555b(_0x3887f8,_0x178997){return o(_0x180806,'ELEMENT_HEADING',[_0x3887f8,_0x178997]);}function _0x11b362(_0x2a4bea,_0x2fa82c){return o(_0x180806,'ELEMENT_HEADING_CUSTOM',[_0x2a4bea,_0x2fa82c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xafc5ff=this['editor'],_0x18da71=_0xafc5ff['locale'];function _0x4ea76d(_0x19d6c4,_0x59f4f5){return o(_0x18da71,'ELEMENT_HEADING_CUSTOM',[_0x19d6c4,_0x59f4f5]);}_0xafc5ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39ec6e=>{if('formatBlock'!=_0x39ec6e['type'])return;const {data:_0x25734f}=_0x39ec6e;if(_0x25734f&&'heading'==_0x25734f['commandName']){const _0x2f46eb=_0x25734f['commandParams'][0x0]['value'],_0x3753e5=this['_getHeadingLevel'](_0x2f46eb);if(null!==_0x3753e5)return{'type':'format','content':o(_0x18da71,'*Change\x20to:*\x20%0',(_0x2b153c=0x1,_0x102f18=_0x3753e5,o(_0x18da71,'ELEMENT_HEADING',[_0x2b153c,_0x102f18])))};const _0x2d10ed=this['_headingOptions']['find'](_0x1e0923=>_0x1e0923['model']===_0x2f46eb)['title'];return{'type':'format','content':o(_0x18da71,'*Change\x20to:*\x20%0',_0x4ea76d(0x1,_0x2d10ed))};}var _0x2b153c,_0x102f18;});}['_getHeadingLevel'](_0x3bd4e0){const _0x42e4cf=_0x3bd4e0['match'](/^heading(\d+)/);if(_0x42e4cf)return _0x42e4cf[0x1];const _0x371e74=this['_headingOptions']?.['find'](_0x1e55d8=>_0x1e55d8['model']==_0x3bd4e0);if(_0x371e74&&_0x371e74['view']){const _0x3f6a72=_0x371e74['view'],_0x545872=(_0x3f6a72['name']??_0x3f6a72)['match'](/^h(\d+)/);if(_0x545872)return _0x545872[0x1];}return null;}}class et extends _0x468cec{['afterInit'](){const _0xa37f51=this['editor'];if(!_0xa37f51['plugins']['has']('HighlightEditing'))return;const _0x462775=_0xa37f51['plugins']['get']('TrackChangesEditing'),_0x263b5b=_0xa37f51['locale'];_0x462775['enableDefaultAttributesIntegration']('highlight'),_0x462775['registerInlineAttribute']('highlight'),_0x462775['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x263b5b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc524eb=this['editor'],_0x428ba1=_0xc524eb['locale'];_0xc524eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x523991=>{if('formatInline'!=_0x523991['type'])return;const {data:_0x596e53}=_0x523991;if(_0x596e53&&'highlight'==_0x596e53['commandName']){const _0x3fa2e4=_0x428ba1['t'],_0x28382c=_0x596e53['commandParams'][0x0]['value'];if(_0x28382c){const _0x53d7c4=_0xc524eb['config']['get']('highlight.options')['find'](_0x109b81=>_0x109b81['model']==_0x28382c),_0x43e9f7=_0x3fa2e4(_0x53d7c4['title'])['toLowerCase']();return{'type':'format','content':o(_0x428ba1,'*Set\x20highlight:*\x20%0',_0x43e9f7),'color':{'value':_0x53d7c4['color'],'title':_0x53d7c4['title']}};}return{'type':'format','content':o(_0x428ba1,'*Remove\x20highlight*',o(_0x428ba1,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x468cec{['afterInit'](){const _0x51a182=this['editor'];if(!_0x51a182['plugins']['has']('HorizontalLineEditing'))return;_0x51a182['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x569b3e=_0x51a182['plugins']['get']('TrackChangesEditing'),_0x3e582a=_0x51a182['locale'];_0x569b3e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x25029e=>o(_0x3e582a,'ELEMENT_HORIZONTAL_LINE',_0x25029e)),_0x51a182['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3470cd,{writer:_0xf42f80,options:_0x3f84ca})=>{if(!_0x3f84ca['showSuggestionHighlights'])return null;const _0x470542=_0xf42f80['createContainerElement']('div'),_0x40f26f=_0xf42f80['createEmptyElement']('hr');return _0xf42f80['addClass']('ck-horizontal-line',_0x470542),_0xf42f80['insert'](_0xf42f80['createPositionAt'](_0x470542,0x0),_0x40f26f),_0x470542;},'converterPriority':'high'});}}class st extends _0x468cec{['afterInit'](){const _0x11679f=this['editor'];if(!_0x11679f['plugins']['has']('HtmlEmbed'))return;const _0x24a02e=_0x11679f['plugins']['get']('TrackChangesEditing'),_0x2040b7=_0x11679f['locale'];_0x24a02e['descriptionFactory']['registerElementLabel']('rawHtml',_0x20b475=>o(_0x2040b7,'ELEMENT_HTML_EMBED',_0x20b475)),_0x24a02e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x24a02e['registerBlockAttribute']('value'),_0x24a02e['descriptionFactory']['registerDescriptionCallback'](_0x21d545=>{if('attribute'!=_0x21d545['type'])return;const {data:_0x9427d6}=_0x21d545;if(_0x9427d6&&'value'==_0x9427d6['key']&&_0x21d545['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x35525c=o(_0x2040b7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2040b7,'*Change\x20%0\x20content*',_0x35525c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x76151a=this['editor'],_0x2e7051=_0x76151a['locale'];_0x76151a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cadbc=>{if('formatBlock'!=_0x5cadbc['type'])return;const {data:_0x4e8092}=_0x5cadbc;if(_0x4e8092&&'htmlEmbed'==_0x4e8092['commandName']){const _0x2d9603=o(_0x2e7051,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2e7051,'*Change\x20%0\x20content*',_0x2d9603)};}});}}class nt extends _0x468cec{['afterInit'](){const _0x1d1422=this['editor'];if(!_0x1d1422['plugins']['has']('ImageEditing'))return;const _0x2fd3d0=_0x1d1422['plugins']['get']('TrackChangesEditing'),_0xf6d761=_0x1d1422['plugins']['get']('ImageUtils'),_0xe6fad1=_0x1d1422['locale'];_0x2fd3d0['enableCommand']('insertImage'),_0x2fd3d0['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e6b03=>o(_0xe6fad1,'ELEMENT_IMAGE',_0x5e6b03)),_0x2fd3d0['descriptionFactory']['registerElementLabel']('imageInline',_0x503def=>o(_0xe6fad1,'ELEMENT_INLINE_IMAGE',_0x503def)),_0x2fd3d0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xe6fad1,'ELEMENT_CAPTION')),_0x1d1422['plugins']['has']('ImageUploadEditing')&&_0x2fd3d0['enableCommand']('uploadImage'),_0x1d1422['plugins']['has']('ImageBlockEditing')&&_0x1d1422['plugins']['has']('ImageInlineEditing')&&(_0x2fd3d0['enableCommand']('imageTypeInline',(_0x55b37a,_0x51fbeb)=>{const _0x50f241=_0xf6d761['getClosestSelectedImageElement'](_0x1d1422['model']['document']['selection']);_0x1d1422['model']['change'](()=>{_0x2fd3d0['markBlockFormat'](_0x50f241,{'commandName':'imageTypeInline','commandParams':[_0x51fbeb]},[],'convertBlockImageToInline');});}),_0x2fd3d0['enableCommand']('imageTypeBlock',(_0xd0ed88,_0x4491c9)=>{_0x1d1422['model']['change'](_0x58c373=>{let _0x333984=_0xf6d761['getClosestSelectedImageElement'](_0x1d1422['model']['document']['selection']),_0x499f2a=_0x58c373['createRangeOn'](_0x333984);const _0x3351de=_0x1747c9['fromPosition'](_0x499f2a['start'],'toPrevious'),_0x4f0eee=_0x1747c9['fromPosition'](_0x499f2a['end'],'toNext');_0x2fd3d0['forceDefaultExecution'](()=>_0xd0ed88(_0x4491c9)),_0x333984=_0xf6d761['getClosestSelectedImageElement'](_0x1d1422['model']['document']['selection']),_0x499f2a=_0x58c373['createRangeOn'](_0x333984);const _0x4129b1=_0x58c373['createRange'](_0x3351de,_0x4f0eee);_0x3351de['detach'](),_0x4f0eee['detach'](),_0x2fd3d0['markBlockFormat'](_0x333984,{'commandName':'imageTypeInline','commandParams':[_0x4491c9]},[],'convertInlineImageToBlock'),_0x4129b1['start']['isBefore'](_0x499f2a['start'])&&_0x2fd3d0['markInsertion'](_0x58c373['createRange'](_0x4129b1['start'],_0x499f2a['start']),'convertInlineImageToBlock'),_0x499f2a['end']['isBefore'](_0x4129b1['end'])&&_0x2fd3d0['markInsertion'](_0x58c373['createRange'](_0x499f2a['end'],_0x4129b1['end']),'convertInlineImageToBlock');});}),_0x2fd3d0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2fd3d0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2fd3d0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2fd3d0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2fd3d0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2fd3d0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x58f36d])=>{const _0x56b757=_0x2fd3d0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c4b58=_0x58f36d['start'],_0x3142be=_0x58f36d['end'];const _0x165194=_0x1d1422['model']['schema']['getNearestSelectionRange'](_0x2c4b58,'backward'),_0x4887fa=_0x1d1422['model']['schema']['getNearestSelectionRange'](_0x3142be,'forward');_0x165194['isCollapsed']&&(_0x2c4b58=_0x165194['start']),_0x4887fa['isCollapsed']&&(_0x3142be=_0x4887fa['end']),_0x56b757([_0x1d1422['model']['createRange'](_0x2c4b58,_0x3142be)]);}),_0x2fd3d0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xae89f3),_0x2fd3d0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xae89f3)),_0x1d1422['plugins']['has']('ImageCaptionEditing')&&(_0x2fd3d0['enableCommand']('toggleImageCaption',(_0x3e776f,_0xc7994)=>{const _0x105466=_0x1d1422['plugins']['get']('ImageCaptionUtils');let _0x7e8676=_0xf6d761['getClosestSelectedImageElement'](_0x1d1422['model']['document']['selection']),_0x3138c7=_0x105466['getCaptionFromImageModelElement'](_0x7e8676);_0x1d1422['model']['change'](()=>{if(_0x3138c7)return void _0x2fd3d0['markDeletion'](_0x1d1422['model']['createRangeOn'](_0x3138c7));const _0x5ca02b=_0xf6d761['isBlockImage'](_0x7e8676);_0x3e776f(_0xc7994),_0x7e8676=_0xf6d761['getClosestSelectedImageElement'](_0x1d1422['model']['document']['selection']),_0x3138c7=_0x105466['getCaptionFromImageModelElement'](_0x7e8676),_0x2fd3d0['markInsertion'](_0x1d1422['model']['createRangeOn'](_0x3138c7),_0x5ca02b?null:'imageCaption');});}),_0x2fd3d0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xae89f3));const _0xa846e4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54ad72(_0x1b2b4d,_0xbf987d){const _0x1308cc=_0xa846e4['findIndex'](({type:_0x25b00d,subType:_0x153c04})=>_0x1b2b4d['type']==_0x25b00d&&_0x1b2b4d['subType']==_0x153c04),_0xa2eeee=_0xa846e4['findIndex'](({type:_0x2983f8,subType:_0x1e8205})=>_0xbf987d['type']==_0x2983f8&&_0xbf987d['subType']==_0x1e8205);if(_0x1308cc<0x0||_0xa2eeee<0x0)return!0x1;const _0x4ff3c5=_0x1b2b4d['getFirstRange'](),_0x29a651=_0xbf987d['getFirstRange']();if((0x0==_0x1308cc||0x1==_0x1308cc)&&0x2==_0xa2eeee&&_0x4ff3c5['isIntersecting'](_0x29a651))return!0x0;if(0x2==_0x1308cc&&0x3==_0xa2eeee){const _0x12029d=_0x2fd3d0['_findSuggestions'](_0x4ff3c5,'insertion')['filter'](({suggestion:_0x4a11e1,meta:_0x42448c})=>_0x42448c['isOwn']&&'convertInlineImageToBlock'==_0x4a11e1['subType']);if(_0x12029d['length']>0x1&&_0x29a651['end']['isEqual'](_0x4ff3c5['start']))return!0x0;if(0x1==_0x12029d['length']&&(_0x4ff3c5['start']['isEqual'](_0x29a651['end'])||_0x4ff3c5['end']['isEqual'](_0x29a651['start'])))return!0x0;}if(0x3==_0x1308cc&&0x3==_0xa2eeee&&_0x4ff3c5['start']['isBefore'](_0x29a651['start'])){const _0x4b9c5e=_0x4ff3c5['end']['nodeAfter'],_0x4f2a22=_0x29a651['start']['nodeBefore'];return _0xf6d761['isBlockImage'](_0x4b9c5e)&&_0x4b9c5e===_0x4f2a22;}return!0x1;}function _0xae89f3(_0x1496e1,_0x4e2419){return _0x54ad72(_0x1496e1,_0x4e2419)?[_0x1496e1,_0x4e2419]:_0x54ad72(_0x4e2419,_0x1496e1)?[_0x4e2419,_0x1496e1]:null;}_0x1d1422['plugins']['has']('ImageResize')&&(_0x2fd3d0['enableDefaultAttributesIntegration']('resizeImage'),_0x2fd3d0['registerBlockAttribute']('resizedWidth'),_0x2fd3d0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xe6fad1,'FORMAT_IMAGE_SIZE'))),_0x1d1422['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2fd3d0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2fd3d0['registerBlockAttribute']('alt')),_0x2fd3d0['descriptionFactory']['registerDescriptionCallback'](_0x5b1cbb=>{if(!!_0xa846e4['find'](({type:_0x5ac112,subType:_0x237e2e})=>_0x5b1cbb['type']==_0x5ac112&&_0x5b1cbb['subType']==_0x237e2e))return _0x5b1cbb['previous']?{}:void 0x0;}),_0x2fd3d0['descriptionFactory']['registerDescriptionCallback'](_0x29bce4=>{if('insertion'==_0x29bce4['type']||'deletion'==_0x29bce4['type']){const _0x3afc94=_0x29bce4['getContainedElement']();if(_0x3afc94&&_0x3afc94['is']('element','caption'))return{'type':'insertion'==_0x29bce4['type']?'addObject':'removeObject','element':_0x3afc94,'quantity':0x1};}}),_0x2fd3d0['descriptionFactory']['registerDescriptionCallback'](_0x181e02=>'formatBlock'==_0x181e02['type']&&'convertInlineImageToBlock'==_0x181e02['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x181e02['type']&&'convertBlockImageToInline'==_0x181e02['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2fd3d0['descriptionFactory']['registerDescriptionCallback'](_0x2dc742=>{if('attribute'!=_0x2dc742['type'])return;const {data:_0x42b02b}=_0x2dc742;if(!_0x42b02b||'alt'!=_0x42b02b['key'])return;const _0xff56a8=_0x42b02b['newValue'];return _0xff56a8?{'type':'format','content':o(_0xe6fad1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xff56a8+'\x22')}:{'type':'format','content':o(_0xe6fad1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cce9e=this['editor'],_0x4dcd30=_0x5cce9e['locale'];_0x5cce9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33bc30=>{if('formatBlock'!=_0x33bc30['type']&&'formatInline'!=_0x33bc30['type'])return;const {data:_0x117cbf}=_0x33bc30;if(_0x117cbf){if('imageTextAlternative'==_0x117cbf['commandName']){const _0x402ba7=_0x117cbf['commandParams'][0x0]['newValue'];return _0x402ba7?{'type':'format','content':o(_0x4dcd30,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x402ba7+'\x22')}:{'type':'format','content':o(_0x4dcd30,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x117cbf['commandName']){const _0x5dd6d8=_0x117cbf['commandParams'][0x0]['width'];return _0x5dd6d8?{'type':'format','content':o(_0x4dcd30,'*Set\x20image\x20width:*\x20%0',_0x5dd6d8)}:{'type':'format','content':o(_0x4dcd30,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x468cec{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x17ea90=this['editor']['locale'],_0x483abe=this['editor']['plugins']['get']('TrackChangesEditing');_0x483abe['enableDefaultAttributesIntegration']('replaceImageSource'),_0x483abe['registerBlockAttribute']('src'),_0x483abe['descriptionFactory']['registerDescriptionCallback'](_0x2c5640=>{if('attribute'!=_0x2c5640['type'])return;const {data:_0x251532}=_0x2c5640;return _0x251532&&'src'==_0x251532['key']?_0x251532['newValue']&&_0x251532['oldValue']?{'type':'format','content':o(_0x17ea90,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3256d8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3256d8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3256d8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3256d8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3256d8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48d0c5=this['editor'],_0x2196f7=_0x48d0c5['locale'];_0x48d0c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4255b2=>{if('formatBlock'!=_0x4255b2['type']&&'formatInline'!=_0x4255b2['type'])return;const {data:_0x133e2a}=_0x4255b2;if(!_0x133e2a||'replaceImageSource'!=_0x133e2a['commandName'])return;return{'type':'format','content':o(_0x2196f7,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x468cec{['afterInit'](){const _0xa2b422=this['editor'];if(!_0xa2b422['plugins']['has']('ImageStyleEditing'))return;const _0x4fefad=_0xa2b422['plugins']['get']('TrackChangesEditing'),_0x2de4d4=_0xa2b422['plugins']['get']('ImageUtils'),_0x4ffd82={};_0x4fefad['enableCommand']('imageStyle',(_0x3cb072,_0x54841e)=>{const _0x33e5b4=_0xa2b422['plugins']['get']('Users')['me'],_0x4ebb56=_0xa2b422['commands']['get']('imageStyle');let _0x169097=_0x2de4d4['getClosestSelectedImageElement'](_0xa2b422['model']['document']['selection']),_0x27f0b0=_0xa2b422['model']['createRangeOn'](_0x169097),_0x1b4979=_0x4ebb56['value'];if(_0x1b4979==_0x54841e['value'])return;const _0x3e20ec={'commandName':'imageStyle','commandParams':[_0x54841e],'formatGroupId':_0x3ddfb4()};_0xa2b422['model']['change'](()=>{if(_0x4fefad['getSuggestions']()['filter'](_0x558ee2=>_0x558ee2['isInContent']&&_0x33e5b4==_0x558ee2['author']&&('formatBlock'==_0x558ee2['type']||'formatInline'==_0x558ee2['type'])&&('imageStylePreApply'==_0x558ee2['subType']||'imageStylePostApply'==_0x558ee2['subType'])&&_0x558ee2['getFirstRange']()['isEqual'](_0x27f0b0))['forEach'](_0x1913f5=>_0x4fefad['discardSuggestion'](_0x1913f5['head'])),_0x169097=_0x2de4d4['getClosestSelectedImageElement'](_0xa2b422['model']['document']['selection']),_0x27f0b0=_0xa2b422['model']['createRangeOn'](_0x169097),_0x4ebb56['refresh'](),_0xa2b422['commands']['get']('imageTypeInline')['refresh'](),_0xa2b422['commands']['get']('imageTypeBlock')['refresh'](),_0x1b4979=_0x4ebb56['value'],_0x1b4979!=_0x54841e['value'])return _0x2de4d4['isInlineImage'](_0x169097)&&_0x4ebb56['shouldConvertImageType'](_0x54841e['value'],_0x169097)?(_0x3cb072({..._0x54841e,'setImageSizes':!0x1}),_0x169097=_0x2de4d4['getClosestSelectedImageElement'](_0xa2b422['model']['document']['selection']),void _0x4fefad['markBlockFormat'](_0x169097,{..._0x3e20ec,'commandReversedParams':[{'value':_0x1b4979||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2de4d4['isBlockImage'](_0x169097)?_0x4fefad['markBlockFormat'](_0x169097,_0x3e20ec,[],'imageStylePostApply'):_0x4fefad['markInlineFormat'](_0x27f0b0,_0x3e20ec,'imageStylePostApply'));});});for(const _0x4062fb of _0xa2b422['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4ffd82[_0x4062fb['name']]=_0x4062fb['title']['toLowerCase']();_0x4fefad['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4fefad['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4fefad['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4fefad['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4e9200])=>{_0x2de4d4['setImageNaturalSizeAttributes'](_0x4e9200['getContainedElement']());}),_0x4fefad['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xcb8b4c,_0x4ef459)=>{_0x4fefad['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xcb8b4c,{'commandName':_0x4ef459['commandName'],'commandParams':_0x4ef459['commandReversedParams']});}),_0x4fefad['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e1664,_0x4f96ff){if(_0x8e7677(_0x3e1664,_0x4f96ff))return[_0x3e1664,_0x4f96ff];if(_0x8e7677(_0x4f96ff,_0x3e1664))return[_0x4f96ff,_0x3e1664];return null;});const _0x320b16=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x8e7677(_0x512920,_0x17f195){const _0x548dba=_0x320b16['findIndex'](({type:_0x4ad982,subType:_0x97a4c9})=>_0x512920['type']==_0x4ad982&&_0x512920['subType']==_0x97a4c9),_0x9a454=_0x320b16['findIndex'](({type:_0x24cb70,subType:_0x42c095})=>_0x17f195['type']==_0x24cb70&&_0x17f195['subType']==_0x42c095);if(_0x548dba<0x0||_0x9a454<0x0)return!0x1;const _0x61359c=_0x512920['getFirstRange'](),_0x5dd165=_0x17f195['getFirstRange']();if((0x0==_0x548dba||0x1==_0x548dba)&&0x2==_0x9a454&&_0x61359c['isIntersecting'](_0x5dd165))return!0x0;if(0x2==_0x548dba&&0x3==_0x9a454){const _0x2034c8=_0x4fefad['_findSuggestions'](_0x61359c,'insertion')['filter'](({suggestion:_0x2ede51,meta:_0x199f6f})=>_0x199f6f['isOwn']&&'convertInlineImageToBlock'==_0x2ede51['subType']);if(_0x2034c8['length']>0x1&&_0x5dd165['end']['isEqual'](_0x61359c['start']))return!0x0;if(0x1==_0x2034c8['length']&&(_0x61359c['start']['isEqual'](_0x5dd165['end'])||_0x61359c['end']['isEqual'](_0x5dd165['start'])))return!0x0;}if(0x3==_0x548dba&&0x3==_0x9a454&&_0x61359c['start']['isBefore'](_0x5dd165['start'])){const _0x1f0e06=_0x61359c['end']['nodeAfter'],_0x3d2142=_0x5dd165['start']['nodeBefore'];return _0x2de4d4['isBlockImage'](_0x1f0e06)&&_0x1f0e06===_0x3d2142;}return!0x1;}_0xa2b422['model']['document']['registerPostFixer'](()=>{let _0x5a1cf5=!0x1;const _0x212937=Array['from'](_0xa2b422['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c1ef9,data:_0x4d3e01}of _0x212937){const {group:_0x2f6718,type:_0x314ba1,subType:_0xea34bc,id:_0x480e21}=_0x4fefad['_splitMarkerName'](_0x4c1ef9);if('suggestion'==_0x2f6718&&_0x4fefad['hasSuggestion'](_0x480e21)){if('formatBlock'==_0x314ba1&&('imageStylePreApply'==_0xea34bc||'imageStylePostApply'==_0xea34bc)){const _0x48f374=_0x4fefad['getSuggestion'](_0x480e21);if(_0x4d3e01['newRange']){const _0x1b5e3a=_0x48f374['getFirstRange']()['getContainedElement']();if(_0x2de4d4['isBlockImage'](_0x1b5e3a))continue;_0x4fefad['discardSuggestion'](_0x48f374),_0x5a1cf5=!0x0;}}if('insertion'==_0x314ba1&&'imageCaption'==_0xea34bc&&!_0x4d3e01['newRange']){const _0x118aab=_0x4fefad['getSuggestion'](_0x480e21);_0x118aab['next']&&_0x118aab['next']['isInContent']&&(_0x4fefad['discardSuggestion'](_0x118aab['next']),_0x5a1cf5=!0x0);}}}return _0x5a1cf5;}),this['_registerLegacyDescription'](_0x4ffd82);}['_registerLegacyDescription'](_0x4fd63a){const _0x1401af=this['editor'],_0x1b3d2e=_0x1401af['locale'];_0x1401af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x289230=>{if('formatBlock'!=_0x289230['type']&&'formatInline'!=_0x289230['type'])return;const {data:_0x4e1f25}=_0x289230;if(!_0x4e1f25||'imageStyle'!=_0x4e1f25['commandName'])return;const _0x2d87e3=_0x4e1f25['commandParams'][0x0]['value'];return _0x2ba10f('side'===_0x2d87e3?o(_0x1b3d2e,'FORMAT_SIDE_IMAGE'):_0x4fd63a[_0x2d87e3]||_0x2d87e3);function _0x2ba10f(_0x3cb88c){return{'type':'format','content':o(_0x1b3d2e,'*Format:*\x20%0',_0x3cb88c)};}});}}class at extends _0x468cec{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x18104e){super(_0x18104e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x11fec1=this['editor'],_0x17dc93=_0x11fec1['commands']['get']('importWord'),_0x55f4cf=_0x11fec1['commands']['get']('trackChanges');_0x17dc93&&(_0x17dc93['on']('execute',(_0x2bbecc,[,_0xd39b0b])=>{this['_trackChangesValueDuringImport']=_0x55f4cf['value'],_0xd39b0b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x17dc93,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x17dc93,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x55f4cf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x11fec1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x554411,_0x24a74b){const {suggestions:_0x320606}=_0x24a74b,_0x16abf2=this['editor']['commands']['get']('trackChanges'),_0x4bdd9d=_0x16abf2['value'];this['_trackChangesValueDuringImport']!==_0x4bdd9d&&(_0x16abf2['execute'](),this['_trackChangesExecuted']=!0x0),_0x320606&&_0x320606['forEach'](({id:_0x428bbc,type:_0x44baff,author:_0x3b108f,created_at:_0x287cdc})=>{const _0x47eda3={'id':_0x428bbc,'type':_0x44baff,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3b108f,'createdAt':_0x287cdc?new Date(_0x287cdc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x47eda3);});}}class ct extends _0x468cec{['afterInit'](){const _0x58c995=this['editor'],_0x21c14f=_0x58c995['plugins']['get']('TrackChangesEditing');if(_0x58c995['plugins']['has']('IndentEditing')&&(_0x21c14f['enableCommand']('indent'),_0x21c14f['enableCommand']('outdent')),_0x58c995['plugins']['has']('IndentBlock')){for(const _0x774f2b of['indentBlock','outdentBlock'])_0x21c14f['enableDefaultAttributesIntegration'](_0x774f2b);}const _0x2ee06f=_0x58c995['locale'];_0x21c14f['registerBlockAttribute']('blockIndent'),_0x21c14f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2ee06f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b0908=this['editor'],_0x1bd74c=_0x3b0908['locale'],_0x17d996=_0x3b0908['plugins']['get']('TrackChangesEditing');_0x17d996['descriptionFactory']['registerDescriptionCallback'](_0x18dc67=>{if('formatBlock'!=_0x18dc67['type'])return;const {data:_0x301207}=_0x18dc67;if(!_0x301207)return;if('indentBlock'!=_0x301207['commandName']&&'outdentBlock'!=_0x301207['commandName'])return;const _0x25ea6b=_0x18dc67['getItems']()[0x0],_0x3e4aee=_0x17d996['descriptionFactory']['getItemLabel'](_0x25ea6b);return'indentBlock'==_0x301207['commandName']?{'type':'format','content':o(_0x1bd74c,'*Indent:*\x20%0',_0x3e4aee)}:'outdentBlock'==_0x301207['commandName']?{'type':'format','content':o(_0x1bd74c,'*Outdent:*\x20%0',_0x3e4aee)}:void 0x0;});}}class ut extends _0x468cec{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x468cec{['afterInit'](){const _0x45938=this['editor'];if(!_0x45938['plugins']['has']('LinkEditing'))return;const _0x752bae=_0x45938['plugins']['get']('TrackChangesEditing'),_0x41bbe4=_0x45938['commands']['get']('link');_0x752bae['enableDefaultAttributesIntegration']('link'),_0x752bae['enableDefaultAttributesIntegration']('unlink'),_0x752bae['registerInlineAttribute']('linkHref');for(const _0x587cfe of _0x41bbe4['manualDecorators'])_0x752bae['registerInlineAttribute'](_0x587cfe['id']),_0x752bae['descriptionFactory']['registerAttributeLabel'](_0x587cfe['id'],'link\x20('+_0x587cfe['label']['toLowerCase']()+')');_0x752bae['descriptionFactory']['registerDescriptionCallback'](_0x35b30d=>{if('attribute'!=_0x35b30d['type'])return;const {data:_0x21812a}=_0x35b30d;if(!_0x21812a||'linkHref'!=_0x21812a['key'])return;const _0x1f6172=_0x21812a['newValue'],_0x390ffa=_0x45938['locale'];return{'type':'format','content':null==_0x1f6172?o(_0x390ffa,'*Remove\x20link*'):o(_0x390ffa,'*Set\x20link:*\x20%0','\x22'+_0x1f6172+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312468=this['editor'],_0x54bc25=_0x312468['locale'];_0x312468['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37c1f5=>{if('formatInline'!=_0x37c1f5['type'])return;const {data:_0x2ba439}=_0x37c1f5;if(_0x2ba439){if('link'==_0x2ba439['commandName']){const _0x57f4d7=_0x2ba439['commandParams'][0x0];return{'type':'format','content':o(_0x54bc25,'*Set\x20link:*\x20%0','\x22'+_0x57f4d7+'\x22')};}return'unlink'==_0x2ba439['commandName']?{'type':'format','content':o(_0x54bc25,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x468cec{['afterInit'](){const _0x584e3e=this['editor'],_0x425672=_0x584e3e['locale'];if(!_0x584e3e['plugins']['has']('LegacyListEditing'))return;const _0xe09c62=_0x584e3e['plugins']['get']('TrackChangesEditing'),_0x477436=_0x584e3e['plugins']['has']('LegacyTodoListEditing');function _0x539e2d(_0x53de0a){return()=>{const _0x259919=_0x584e3e['model']['document']['selection'],_0x368d37=_0x584e3e['commands']['get'](_0x53de0a);if(_0x368d37['value'])return void _0x584e3e['execute']('paragraph',{});const _0x3a11c8=_0x53de0a['slice'](0x0,-0x4),_0x31d406=function(_0x18ebe2,_0xe04d25,_0x30f583){let _0x1abfaa=Array['from'](_0x18ebe2)['filter'](_0x4f25f3=>function(_0x40597f,_0x3082a0){return _0x3082a0['checkChild'](_0x40597f['parent'],'listItem')&&!_0x3082a0['isObject'](_0x40597f);}(_0x4f25f3,_0x30f583));_0x1abfaa=_0x1abfaa['filter'](_0x3bdbd=>!_0x3bdbd['is']('element','listItem')||_0x3bdbd['getAttribute']('listType')!=_0xe04d25);const _0x16b63c=new Set();for(const _0x34a2f9 of _0x1abfaa)_0x34a2f9['is']('element','listItem')?_0x16b63c['add'](fe(_0x34a2f9)):_0x16b63c['add'](_0x34a2f9);return Array['from'](_0x16b63c);}(_0x259919['getSelectedBlocks'](),_0x3a11c8,_0x584e3e['model']['schema']);_0x584e3e['model']['change'](()=>{for(const _0xc79b87 of _0x31d406)_0xe09c62['markBlockFormat'](_0xc79b87,{'commandName':_0x53de0a,'commandParams':[{'forceValue':!_0x368d37['value']}],'formatGroupId':'blockName'},ue(_0xc79b87));});};}function _0x4f1ec4(_0x29a02e){return()=>{const _0x87fb3d=function(_0x2e5359){let _0x5eefd2=Array['from'](_0x2e5359);const _0x2e998a=_0x5eefd2['findIndex'](_0x4eb801=>'listItem'!=_0x4eb801['name']);return _0x2e998a>-0x1&&(_0x5eefd2=_0x5eefd2['slice'](0x0,_0x2e998a)),_0x5eefd2;}(_0x584e3e['model']['document']['selection']['getSelectedBlocks']()),_0x4e6efb=_0x584e3e['model']['createRange'](_0x584e3e['model']['createPositionAt'](_0x87fb3d[0x0],'before'),_0x584e3e['model']['createPositionAt'](_0x87fb3d[_0x87fb3d['length']-0x1],'end'));_0x584e3e['model']['change'](()=>{_0xe09c62['markBlockFormat'](_0x4e6efb,{'commandName':_0x29a02e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2c0617){const _0x45d185=new Set();for(const _0x36cc88 of _0x2c0617){let _0x342445=_0x36cc88['nextSibling'];for(;_0x342445&&_0x342445['getAttribute']('listIndent')>_0x36cc88['getAttribute']('listIndent');)_0x45d185['add'](_0x342445),_0x342445=_0x342445['nextSibling'];}return Array['from'](_0x45d185);}(_0x87fb3d));});};}_0xe09c62['enableCommand']('numberedList',_0x539e2d('numberedList')),_0xe09c62['enableCommand']('bulletedList',_0x539e2d('bulletedList')),_0x477436&&_0xe09c62['enableCommand']('todoList',_0x539e2d('todoList')),_0xe09c62['enableCommand']('indentList',_0x4f1ec4('indentList')),_0xe09c62['enableCommand']('outdentList',_0x4f1ec4('outdentList')),_0x477436&&_0xe09c62['enableCommand']('checkTodoList',()=>{const _0x2fef1f=_0x584e3e['commands']['get']('checkTodoList'),_0x14432a=Array['from'](_0x2fef1f['_selectedElements']);_0x14432a['filter'](_0x5e3508=>_0x5e3508['getAttribute']('todoListChecked')!=_0x2fef1f['value']),_0x584e3e['model']['change'](()=>{for(const _0x3f3fb3 of _0x14432a)_0xe09c62['markBlockFormat'](_0x3f3fb3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2fef1f['value']}]});});}),_0xe09c62['descriptionFactory']['registerElementLabel']('listItem',_0x1ac69b=>o(_0x425672,'ELEMENT_LIST_ITEM',_0x1ac69b)),_0xe09c62['descriptionFactory']['registerDescriptionCallback'](_0x3bccc8=>{if('formatBlock'!=_0x3bccc8['type']&&'formatInline'!=_0x3bccc8['type'])return;const {data:_0x44701c}=_0x3bccc8;if(_0x44701c){if('numberedList'==_0x44701c['commandName']||'bulletedList'==_0x44701c['commandName']||'todoList'==_0x44701c['commandName'])switch(_0x44701c['commandName']['replace']('List','')){case'bulleted':return _0x4fd95c(o(_0x425672,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4fd95c(o(_0x425672,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4fd95c(o(_0x425672,'ELEMENT_TODO_LIST'));}if('indentList'==_0x44701c['commandName'])return{'type':'format','content':o(_0x425672,'*Indent:*\x20%0',o(_0x425672,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x44701c['commandName'])return{'type':'format','content':o(_0x425672,'*Outdent:*\x20%0',o(_0x425672,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x44701c['commandName'])return _0x44701c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x425672,'*Check\x20item*')}:{'type':'format','content':o(_0x425672,'*Uncheck\x20item*')};}function _0x4fd95c(_0x313e24){return{'type':'format','content':o(_0x425672,'*Change\x20to:*\x20%0',_0x313e24)};}});}}function fe(_0x1a362c){const _0x2eb7d6=_0x1a362c['getAttribute']('listIndent');if(0x0==_0x2eb7d6)return _0x1a362c;let _0x24efe4=_0x1a362c;for(;_0x1a362c['previousSibling']&&_0x1a362c['previousSibling']['is']('element','listItem');){const _0x2c0cb7=_0x1a362c['previousSibling']['getAttribute']('listIndent');if(_0x2c0cb7==_0x2eb7d6)_0x24efe4=_0x1a362c['previousSibling'];else{if(_0x2c0cb7<_0x2eb7d6)break;}_0x1a362c=_0x1a362c['previousSibling'];}return _0x24efe4;}function ue(_0x274494){const _0x2d42f9=[];if(_0x274494['is']('element','listItem')&&_0x274494['getAttribute']('listIndent')>0x0){let _0x2aefa5=_0x274494['nextSibling'];for(;_0x2aefa5&&'listItem'==_0x2aefa5['name']&&_0x2aefa5['getAttribute']('listIndent')==_0x274494['getAttribute']('listIndent');)_0x2d42f9['push'](_0x2aefa5),_0x2aefa5=_0x2aefa5['nextSibling'];}return _0x2d42f9;}class W extends _0x468cec{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c316c=this['editor']['config']['get']('list.properties'),_0x5c8311=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c316c['styles']&&_0x5c8311['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c316c['reversed']&&_0x5c8311['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c316c['startIndex']&&_0x5c8311['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5c8311['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1f8dd3,_0xe7b979={}){const _0xbd46fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xce7a94=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xbd46fd['markMultiRangeBlockFormat'](_0xce7a94,{'commandName':'listStyle','commandParams':[{'type':_0xe7b979['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1e5f2c,_0x101a29={}){const _0x45a143=this['editor']['plugins']['get']('TrackChangesEditing'),_0x183dd7=this['_getSuggestionBlocks'](_0x556547=>_0x556547['is']('element','listItem')&&'numbered'===_0x556547['getAttribute']('listType'));if(_0x183dd7['length']<0x1)return;const _0x7fbf78=_0x183dd7['map'](_0x46b70b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x46b70b,'before'),this['editor']['model']['createPositionAt'](_0x46b70b,0x0)));this['editor']['model']['change'](()=>{_0x45a143['markMultiRangeBlockFormat'](_0x7fbf78,{'commandName':'listReversed','commandParams':[{'reversed':_0x101a29['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x12a2e0,_0x1ea6f8={}){const _0x511d99=this['editor']['plugins']['get']('TrackChangesEditing'),_0x439f6e=this['_getSuggestionBlocks'](_0x4dbdbe=>_0x4dbdbe['is']('element','listItem')&&'numbered'===_0x4dbdbe['getAttribute']('listType'));if(_0x439f6e['length']<0x1)return;const _0x2222c9=_0x439f6e['map'](_0x20ef7c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x20ef7c,'before'),this['editor']['model']['createPositionAt'](_0x20ef7c,0x0)));this['editor']['model']['change'](()=>{_0x511d99['markMultiRangeBlockFormat'](_0x2222c9,{'commandName':'listStart','commandParams':[{'startIndex':_0x1ea6f8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x358410){if('formatBlock'!=_0x358410['type']&&'formatInline'!=_0x358410['type'])return;const _0x14a5f3=this['editor']['locale'],{data:_0x21aaaf}=_0x358410;if(!_0x21aaaf)return;let _0x2a41f0,_0x4e1dfe;switch(_0x21aaaf['commandName']){case'listStyle':_0x2a41f0='*Change\x20to:*\x20%0',_0x4e1dfe={'type':'format','content':o(_0x14a5f3,_0x2a41f0,o(_0x14a5f3,this['_getTranslationKeyForListStyle'](_0x21aaaf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a41f0=_0x21aaaf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e1dfe={'type':'format','content':o(_0x14a5f3,_0x2a41f0)};break;case'listStart':_0x2a41f0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e1dfe={'type':'format','content':o(_0x14a5f3,_0x2a41f0,_0x21aaaf['commandParams'][0x0]['startIndex'])};}return _0x4e1dfe;}['_getSuggestionBlocksForListStyle'](){const _0x8a8274=this['editor']['plugins']['get']('LegacyListUtils');let _0x15d345=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x15d345[0x0]?.['is']('element','listItem')&&_0x15d345['unshift'](..._0x8a8274['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x15d345[_0x15d345['length']-0x1]?.['is']('element','listItem')&&_0x15d345['push'](..._0x8a8274['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x15d345=[...new Set(_0x15d345)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x15d345=_0x15d345['filter'](_0x7b965a=>_0x7b965a['is']('element','listItem'))),_0x15d345;}['_getSuggestionBlocks'](_0x1f340e){const _0x4a3cac=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ddb4d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1f340e)['map'](_0x4e6db0=>{const _0x715c0=this['editor']['model']['createPositionAt'](_0x4e6db0,0x0);return[..._0x4a3cac['getSiblingNodes'](_0x715c0,'backward'),..._0x4a3cac['getSiblingNodes'](_0x715c0,'forward')];})['flat']();return _0x1ddb4d=[...new Set(_0x1ddb4d)],_0x1ddb4d;}['_getTranslationKeyForListStyle'](_0x2caf02){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2caf02)||'default')['toUpperCase']()+'_LIST_'+_0x2caf02['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x468cec{['afterInit'](){const _0xedf7c7=this['editor'];if(!_0xedf7c7['plugins']['has']('MediaEmbedEditing'))return;const _0x48bca2=_0xedf7c7['plugins']['get']('TrackChangesEditing'),_0x1686aa=_0xedf7c7['locale'];_0x48bca2['enableCommand']('mediaEmbed'),_0x48bca2['descriptionFactory']['registerElementLabel']('media',_0x2f1812=>o(_0x1686aa,'ELEMENT_MEDIA',_0x2f1812)),_0xedf7c7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3e30d3,{writer:_0x2d52b6,options:_0xe29edf})=>{if(_0xe29edf['showSuggestionHighlights'])return _0x2d52b6['createEmptyElement']('div');},'converterPriority':'high'}),_0xedf7c7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x53b973,_0x30e773,_0xff3501)=>{_0xff3501['options']['showSuggestionHighlights']&&_0x53b973['stop']();},{'priority':'high'});}}class mt extends _0x468cec{['afterInit'](){const _0x30dbea=this['editor'];_0x30dbea['plugins']['has']('MentionEditing')&&_0x30dbea['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x468cec{['afterInit'](){const _0xcc123b=this['editor'];if(!_0xcc123b['plugins']['has']('MergeFieldsEditing'))return;_0xcc123b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0xcc123b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x50e27a=_0xcc123b['plugins']['get']('TrackChangesEditing'),_0x615628=_0xcc123b['locale'];_0x50e27a['descriptionFactory']['registerElementLabel']('mergeField',_0x5864e4=>o(_0x615628,'ELEMENT_MERGE_FIELD',_0x5864e4)),_0x50e27a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x264903=>o(_0x615628,'ELEMENT_MERGE_FIELD',_0x264903)),_0x50e27a['descriptionFactory']['registerDescriptionCallback'](_0x29a378=>{if('insertion'!=_0x29a378['type']&&'deletion'!=_0x29a378['type'])return;const _0x265418=_0x29a378['getContainedElement']();if(null==_0x265418)return;if(!_0x265418['is']('element','mergeField')&&!_0x265418['is']('element','mergeFieldBlock'))return;const _0x2851ff=_0xcc123b['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x265418['getAttribute']('id'));return'insertion'==_0x29a378['type']?{'type':'insertion','content':o(_0x615628,'*Insert:*\x20%0','\x22'+_0x2851ff+'\x22\x20'+o(_0x615628,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x615628,'*Remove:*\x20%0','\x22'+_0x2851ff+'\x22\x20'+o(_0x615628,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x468cec{['afterInit'](){const _0x4962f8=this['editor'],_0x527aaf=_0x4962f8['plugins']['get']('TrackChangesEditing');_0x4962f8['plugins']['has']('MultiLevelList')&&(_0x527aaf['enableDefaultAttributesIntegration']('multiLevelList'),_0x527aaf['registerBlockAttribute']('listMarkerStyle'),_0x527aaf['descriptionFactory']['registerDescriptionCallback'](_0x6c64ee=>this['handleDescriptions'](_0x6c64ee)));}['handleDescriptions'](_0x93bfef){const _0x5c8bee=this['editor']['locale'],{data:_0x194ac7}=_0x93bfef,_0x57c5cc={'type':'format','content':''};if(_0x194ac7&&'listMarkerStyle'==_0x194ac7['key']){if(!_0x194ac7['oldValue'])return{'type':'format','content':o(_0x5c8bee,'*Set\x20format:*\x20%0',o(_0x5c8bee,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x194ac7['newValue']+')'};if(!_0x194ac7['newValue']){let _0x51d1c8=_0x93bfef['head'];for(;_0x51d1c8;){if(_0x51d1c8['data']&&'listType'==_0x51d1c8['data']['key']&&_0x51d1c8['data']['newValue'])return _0x57c5cc;_0x51d1c8=_0x51d1c8['next'];}return{'type':'format','content':o(_0x5c8bee,'*Remove\x20format:*\x20%0',o(_0x5c8bee,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x194ac7['oldValue']+')'};}}}}class kt extends _0x468cec{['afterInit'](){const _0x37e2b4=this['editor'];if(!_0x37e2b4['plugins']['has']('PageBreakEditing'))return;_0x37e2b4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x597b89=_0x37e2b4['plugins']['get']('TrackChangesEditing'),_0x51700a=_0x37e2b4['locale'];_0x597b89['descriptionFactory']['registerElementLabel']('pageBreak',_0x52eab0=>o(_0x51700a,'ELEMENT_PAGE_BREAK',_0x52eab0));}}class bt extends _0x468cec{['afterInit'](){const _0x2997f9=this['editor'];if(!_0x2997f9['plugins']['has']('Paragraph'))return;const _0x2cfc88=_0x2997f9['locale'],_0x31efca=_0x2997f9['plugins']['get']('TrackChangesEditing');_0x31efca['descriptionFactory']['registerElementLabel']('paragraph',_0x42e4a4=>o(_0x2cfc88,'ELEMENT_PARAGRAPH',_0x42e4a4)),_0x31efca['enableDefaultAttributesIntegration']('paragraph'),_0x31efca['enableCommand']('insertParagraph'),_0x2997f9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2997f9),{'priority':'highest'}),_0x2997f9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x206f1a,_0x4f1b09,_0x2ca823)=>{_0x2ca823['options']['showSuggestionHighlights']&&nr(_0x2997f9,{'showActiveMarker':!0x1})(_0x206f1a,_0x4f1b09,_0x2ca823);},{'priority':'highest'});const _0x4671ca=_0x31efca['descriptionFactory'];_0x4671ca['registerDescriptionCallback'](_0x12edcb=>{if('insertion'!==_0x12edcb['type'])return;const {start:_0x3b5279,end:_0x490f2f}=_0x12edcb['getFirstRange']();if(!_0x3b5279['isTouching'](_0x490f2f)||!_0x3b5279['nodeAfter'])return;const _0x1370b4=_0x2997f9['model']['schema'],_0x573d94=_0x3b5279['nodeAfter'];return _0x1370b4['isBlock'](_0x573d94)&&!_0x1370b4['isLimit'](_0x573d94)&&_0x1370b4['checkChild'](_0x573d94,'$text')?{'type':'insertion','content':o(_0x2cfc88,'*Insert:*\x20%0',_0x4671ca['getItemLabel'](_0x573d94,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2acc8a=this['editor'],_0x553613=_0x2acc8a['locale'];_0x2acc8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa886c5=>{if('formatBlock'!=_0xa886c5['type'])return;const {data:_0x21850}=_0xa886c5;return _0x21850&&'paragraph'==_0x21850['commandName']?{'type':'format','content':o(_0x553613,'*Change\x20to:*\x20%0',o(_0x553613,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4c6e59,{showActiveMarker:_0x10c082=!0x0}={}){return(_0x395987,_0x59ab6f,_0x2192c4)=>{const _0x3791a8=_0x4c6e59['plugins']['get']('TrackChangesEditing'),_0x5cef2b=_0x59ab6f['markerRange']['start'],_0xb3bb79=_0x59ab6f['markerRange']['end'],_0x53a8a0=_0x4c6e59['model']['schema'];if(!_0x5cef2b['isTouching'](_0xb3bb79)||!_0x5cef2b['nodeAfter'])return;const _0x33152e=_0x5cef2b['nodeAfter'];if(_0x53a8a0['isBlock'](_0x33152e)&&!_0x53a8a0['isLimit'](_0x33152e)&&_0x53a8a0['checkChild'](_0x33152e,'$text')){if(!_0x2192c4['consumable']['consume'](_0x59ab6f['markerRange'],_0x395987['name']))return;const {authorId:_0x5248a7}=_0x3791a8['_splitMarkerName'](_0x59ab6f['markerName']),_0x2da95c=_0x2192c4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5248a7}),_0x515831=_0x2192c4['mapper']['toViewPosition'](_0xb3bb79);_0x10c082&&_0x3791a8['activeMarkers']['includes'](_0x59ab6f['markerName'])&&_0x2192c4['writer']['addClass']('ck-suggestion-marker--active',_0x2da95c),_0x2192c4['writer']['insert'](_0x515831,_0x2da95c),_0x2192c4['mapper']['bindElementToMarker'](_0x2da95c,_0x59ab6f['markerName']);}};}class wt extends _0x468cec{['afterInit'](){const _0x50eca6=this['editor'];if(!_0x50eca6['plugins']['has']('RemoveFormatEditing'))return;_0x50eca6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ecfe9=this['editor'];_0x3ecfe9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c74eb=>{if('formatBlock'!=_0x5c74eb['type']&&'formatInline'!=_0x5c74eb['type'])return;const {data:_0x228923}=_0x5c74eb;return _0x228923&&'removeFormat'==_0x228923['commandName']?{'type':'format','content':o(_0x3ecfe9['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x468cec{['afterInit'](){const _0x270e69=this['editor'];if(!_0x270e69['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49293c=_0x270e69['plugins']['get']('TrackChangesEditing');_0x49293c['enableCommand']('goToPreviousRestrictedEditingException'),_0x49293c['enableCommand']('goToNextRestrictedEditingException');const _0x3274ba=_0x270e69['plugins']['get']('RestrictedEditingModeEditing');_0x3274ba['enableCommand']('trackChanges'),_0x3274ba['enableCommand']('acceptSuggestion'),_0x3274ba['enableCommand']('discardSuggestion'),_0x3274ba['enableCommand']('acceptAllSuggestions'),_0x3274ba['enableCommand']('discardAllSuggestions'),_0x3274ba['enableCommand']('acceptSelectedSuggestions'),_0x3274ba['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x468cec{static get['requires'](){return[_0x45f5e5];}['init'](){const _0x2a9930=this['editor'],_0x304a5b=_0x2a9930['plugins']['get']('TrackChangesEditing');_0x304a5b['enableCommand']('shiftEnter'),_0x2a9930['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x2a9930),{'priority':'high'}),_0x2a9930['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x2a9930),{'priority':'high'}),_0x2a9930['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d9401,_0xe36918,_0x34dcca)=>{_0x34dcca['options']['showSuggestionHighlights']&&ge(_0x2a9930,{'showActiveMarker':!0x1})(_0x4d9401,_0xe36918,_0x34dcca);}),_0x304a5b['descriptionFactory']['registerElementLabel']('softBreak',_0x101e47=>o(_0x2a9930['locale'],'ELEMENT_LINE_BREAK',_0x101e47));}}function ge(_0x3dec1b,{showActiveMarker:_0x53c6af=!0x0}={}){return(_0x384b2e,_0x4deb15,_0x10b531)=>{const _0x38c4f2=_0x3dec1b['plugins']['get']('TrackChangesEditing');if(!_0x10b531['consumable']['test'](_0x4deb15['markerRange'],_0x384b2e['name']))return;const _0x33bda6=_0x3dec1b['model'];for(const _0x2d6e3a of _0x4deb15['markerRange']['getItems']()){if(!_0x2d6e3a['is']('element','softBreak'))continue;const _0x532536='deletion'==_0x4deb15['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xc9082a}=_0x38c4f2['_splitMarkerName'](_0x4deb15['markerName']),_0x48787c=_0x10b531['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x532536,'data-author-id':_0xc9082a}),_0x3213d0=_0x10b531['mapper']['toViewPosition'](_0x33bda6['createPositionBefore'](_0x2d6e3a));_0x53c6af&&_0x38c4f2['activeMarkers']['includes'](_0x4deb15['markerName'])&&_0x10b531['writer']['addClass']('ck-suggestion-marker--active',_0x48787c),_0x10b531['writer']['insert'](_0x3213d0,_0x48787c),_0x10b531['mapper']['bindElementToMarker'](_0x48787c,_0x4deb15['markerName']);}};}class St extends _0x468cec{['afterInit'](){const _0x1ea174=this['editor'],_0xd66feb=_0x1ea174['model'],_0x2d859f=_0x1ea174['locale'];if(!_0x1ea174['plugins']['has']('StandardEditingModeEditing'))return;const _0x3c3f37=_0x1ea174['plugins']['get']('TrackChangesEditing'),_0x3c0ae8='restrictedEditingException',_0x113313=_0x1ea174['commands']['get'](_0x3c0ae8);_0x3c3f37['enableCommand'](_0x3c0ae8,(_0x19b327,_0x475404={})=>{const _0x2a4b36=_0xd66feb['document']['selection'];if(_0x2a4b36['isCollapsed'])return void _0x19b327(_0x475404);const _0x48509b=void 0x0!==_0x475404['forceValue']?_0x475404['forceValue']:!_0x113313['value'];_0xd66feb['change'](()=>{const _0x216f57=Array['from'](_0x2a4b36['getRanges']());for(const _0x5142e0 of _0x216f57){const _0x42c47b=_0x48509b?[_0x5142e0]:io(_0x3c0ae8,_0x5142e0,_0xd66feb);for(const _0x4c5525 of _0x42c47b)_0x3c3f37['markInlineFormat'](_0x4c5525,{'commandName':_0x3c0ae8,'commandParams':[{'forceValue':_0x48509b}]});}});}),_0x3c3f37['descriptionFactory']['registerDescriptionCallback'](_0x216bde=>{if('formatBlock'!=_0x216bde['type']&&'formatInline'!=_0x216bde['type'])return;const {data:_0x21abcc}=_0x216bde;return _0x21abcc&&_0x21abcc['commandName']==_0x3c0ae8?_0x21abcc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d859f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2d859f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x468cec{['afterInit'](){const _0x40f367=this['editor'];if(!_0x40f367['plugins']['has']('Style')||!_0x40f367['plugins']['has']('DataSchema'))return;const _0x1792d4=_0x40f367['plugins']['get']('TrackChangesEditing'),_0x3f21c9=_0x40f367['locale'],_0x12cd46=_0x40f367['config']['get']('style')||{},_0x35ffdd=_0x40f367['plugins']['get']('GeneralHtmlSupport'),_0x3ce265=_0x40f367['plugins']['get']('StyleUtils')['normalizeConfig'](_0x40f367['plugins']['get']('DataSchema'),_0x12cd46['definitions']);_0x1792d4['enableDefaultAttributesIntegration']('style');const _0x667a0a=new Set();for(const _0x3a1571 of _0x3ce265['block']){const _0x3eed96=_0x35ffdd['getGhsAttributeNameForElement'](_0x3a1571['element']);_0x667a0a['add'](_0x3eed96);}const _0x3c5aa8=new Set();for(const _0x499d5b of _0x3ce265['inline']){const _0x298b76=_0x35ffdd['getGhsAttributeNameForElement'](_0x499d5b['element']);_0x3c5aa8['add'](_0x298b76);for(const _0x550a34 of _0x499d5b['ghsAttributes'])_0x3c5aa8['add'](_0x550a34);}for(const _0x39be21 of _0x667a0a)_0x1792d4['registerBlockAttribute'](_0x39be21),_0x1792d4['descriptionFactory']['registerAttributeLabel'](_0x39be21,o(_0x3f21c9,'FORMAT_STYLE'));for(const _0x3b80a4 of _0x3c5aa8)_0x1792d4['registerInlineAttribute'](_0x3b80a4),_0x1792d4['descriptionFactory']['registerAttributeLabel'](_0x3b80a4,o(_0x3f21c9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58162a=this['editor'],_0x2e3b72=_0x58162a['locale'];_0x58162a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x95a06e=>{if('formatBlock'!=_0x95a06e['type']&&'formatInline'!=_0x95a06e['type'])return;const {data:_0x3c3548}=_0x95a06e;return _0x3c3548&&'style'===_0x3c3548['commandName']?_0x3c3548['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e3b72,'*Set\x20format:*\x20%0',_0x3c3548['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2e3b72,'*Remove\x20format:*\x20%0',_0x3c3548['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x468cec{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x15e5bf){super(_0x15e5bf),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5b4356=this['editor'],_0x5ef505=_0x5b4356['model']['document']['selection'];if(!_0x5b4356['plugins']['has']('TableEditing'))return;const _0x26c0c4=_0x5b4356['locale'],_0x23c34e=_0x5b4356['plugins']['get']('TrackChangesEditing'),_0x4a38a9=_0x5b4356['plugins']['get']('TableUtils');_0x23c34e['descriptionFactory']['registerElementLabel']('table',_0x4351e9=>o(_0x26c0c4,'ELEMENT_TABLE',_0x4351e9)),this['_setupColumnsRowsFixing'](),_0x23c34e['enableCommand']('insertTable'),_0x23c34e['enableCommand']('selectTableRow'),_0x23c34e['enableCommand']('selectTableColumn');for(const _0x3e391c of['insertTableRowAbove','insertTableRowBelow']){const _0x11908f=_0x5b4356['commands']['get'](_0x3e391c);_0x23c34e['enableCommand'](_0x3e391c,_0x191797=>{_0x5b4356['model']['change'](_0x4c073c=>{_0x191797();const _0x219bd6='above'===_0x11908f['order'],_0x3b4863=_0x4a38a9['getSelectionAffectedTableCells'](_0x5ef505),_0x9868f4=_0x4a38a9['getRowIndexes'](_0x3b4863),_0x5710cf=_0x219bd6?_0x9868f4['first']-0x1:_0x9868f4['last']+0x1,_0x11cd7e=_0x3b4863[0x0]['findAncestor']('table'),_0xbd34a1=_0x4a38a9['createTableWalker'](_0x11cd7e,{'startRow':_0x5710cf,'endRow':_0x5710cf}),_0x2780dc=Array['from'](_0xbd34a1)['map'](_0xe9826c=>_0x4c073c['createRangeOn'](_0xe9826c['cell']));_0x23c34e['markMultiRangeInsertion'](_0x2780dc,'tableRow');});});}for(const _0x39e8fa of['insertTableColumnLeft','insertTableColumnRight']){const _0x32fecc=_0x5b4356['commands']['get'](_0x39e8fa);_0x23c34e['enableCommand'](_0x39e8fa,_0x1fb35c=>{_0x5b4356['model']['change'](_0x2926ae=>{_0x1fb35c();const _0xdf5da9='left'===_0x32fecc['order'],_0x53b4dd=_0x4a38a9['getSelectionAffectedTableCells'](_0x5ef505),_0x2efbd1=_0x4a38a9['getColumnIndexes'](_0x53b4dd),_0x68e34d=_0xdf5da9?_0x2efbd1['first']-0x1:_0x2efbd1['last']+0x1,_0x5a1a38=_0x53b4dd[0x0]['findAncestor']('table'),_0x736418=_0x4a38a9['createTableWalker'](_0x5a1a38,{'startRow':0x0,'column':_0x68e34d,'includeAllSlots':!0x1}),_0x222091=Array['from'](_0x736418)['map'](_0xe925d8=>_0x2926ae['createRangeOn'](_0xe925d8['cell']));_0x23c34e['markMultiRangeInsertion'](_0x222091,'tableColumn');});});}for(const _0x2dcdcf of['removeTableRow','removeTableColumn']){const _0x158708=_0x2dcdcf['substr'](0xb),_0x2c2b16=_0x158708['toLowerCase'](),_0x2ad99c=_0x2c2b16['substr'](0x0,0x3)+'span',_0xc04f49='table'+_0x158708,_0x5bfa00='min'+_0x158708,_0x114e36='max'+_0x158708;_0x23c34e['enableCommand'](_0x2dcdcf,()=>{_0x5b4356['model']['change'](_0x31341a=>{const _0x2c9ea2=_0x4a38a9['getSelectionAffectedTableCells'](_0x5ef505),_0x3017aa=_0x2c9ea2[0x0]['findAncestor']('table');let _0x3331cb;if('removeTableRow'==_0x2dcdcf){const _0x31685e=_0x4a38a9['getRowIndexes'](_0x2c9ea2);_0x3331cb={'startRow':_0x31685e['first'],'endRow':_0x31685e['last'],'includeAllSlots':!0x0};}else{const _0x7042b0=_0x4a38a9['getColumnIndexes'](_0x2c9ea2);_0x3331cb={'startColumn':_0x7042b0['first'],'endColumn':_0x7042b0['last'],'includeAllSlots':!0x0};}const _0x1ca403=_0x4a38a9['createTableWalker'](_0x3017aa,_0x3331cb),_0x2455fb=Array['from'](_0x1ca403)['map'](({cell:_0x5b4f24})=>_0x5b4f24),_0x573c0f=be(_0x2455fb['filter'](_0x1b266f=>_0x1b266f['hasAttribute'](_0x2ad99c))),_0x24818c=be(_0x2455fb['filter'](_0x1ac2fb=>!_0x1ac2fb['hasAttribute'](_0x2ad99c)))['map'](_0x5bc954=>_0x31341a['createRangeOn'](_0x5bc954)),_0x1ae4c8=_0x23c34e['markMultiRangeDeletion'](_0x24818c,_0xc04f49);if(_0x1ae4c8&&('tableRow'==_0x1ae4c8['subType']||'tableColumn'==_0x1ae4c8['subType'])){const _0x2e670b=this['_getSuggestionCoords'](_0x1ae4c8);for(const _0x6b031f of _0x573c0f){const _0x170fe8=_0x31341a['createRangeOn'](_0x6b031f),_0x1fe5f5=_0x4a38a9['getCellLocation'](_0x6b031f),_0x22cf47=_0x6b031f['getAttribute'](_0x2ad99c)-0x1,_0x3f1bd4=_0x2e670b[_0x5bfa00],_0x20339c=_0x2e670b[_0x114e36];_0x3f1bd4<=_0x1fe5f5[_0x2c2b16]&&_0x1fe5f5[_0x2c2b16]+_0x22cf47<=_0x20339c&&_0x1ae4c8['addRange'](_0x170fe8);}}});});}function _0x2cb4bb(_0xea9077){const _0x5d6238=Array['from'](_0x5ef505['getRanges']())['map'](_0x5318e5=>_0x5a0cc1['fromRange'](_0x5318e5));_0x5b4356['model']['change'](_0x3374dc=>{const _0x3c920c=_0x3374dc['batch'];_0xea9077=_0xea9077['filter'](_0x3e976c=>'$graveyard'!=_0x3e976c['root']['rootName']),_0x3374dc['setSelection'](_0xea9077),_0x5b4356['commands']['get']('removeTableRow')['refresh'](),_0x5b4356['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5b4356['model']['enqueueChange'](()=>{_0x5b4356['model']['enqueueChange'](_0x3c920c,_0x4d3a51=>{const _0x1e2612=_0x5d6238['filter'](_0x18b62d=>'$graveyard'!=_0x18b62d['root']['rootName']);_0x1e2612['length']>0x0&&_0x4d3a51['setSelection'](_0x1e2612);for(const _0x2d6906 of _0x5d6238)_0x2d6906['detach']();});});});}function _0xa07f8a(_0x3906ba){_0x5b4356['model']['change'](_0x3dfdf3=>{const _0x1a8655=Array['from'](_0x5ef505['getRanges']())['map'](_0x1ff8a4=>_0x5a0cc1['fromRange'](_0x1ff8a4)),_0x3317eb=[];for(const _0x182398 of _0x3906ba)for(const _0x13122b of _0x182398['getItems']({'shallow':!0x0}))_0x3317eb['push'](_0x13122b);for(const _0x194c3c of _0x3317eb)'$graveyard'!=_0x194c3c['root']['rootName']&&(_0x3dfdf3['setSelection'](_0x3dfdf3['createPositionAt'](_0x194c3c,0x0)),_0x5b4356['commands']['get']('removeTableColumn')['refresh'](),_0x5b4356['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1a7b30=_0x1a8655['filter'](_0x4f38f4=>'$graveyard'!=_0x4f38f4['root']['rootName']);_0x1a7b30['length']>0x0&&_0x3dfdf3['setSelection'](_0x1a7b30);for(const _0x4cd790 of _0x1a8655)_0x4cd790['detach']();});}function _0x45b8d2(_0x10a3be,_0x7f2e45){return _0x7f2e45['every'](_0x15c432=>_0x10a3be['some'](_0x5d7eed=>_0x5d7eed['end']['isEqual'](_0x15c432['start'])||_0x15c432['end']['isEqual'](_0x5d7eed['start'])));}function _0x42811f(_0x33f0a3,_0x19c7f8){return!_0x33f0a3['some'](_0x3ce689=>_0x19c7f8['some'](_0x281065=>_0x3ce689['isIntersecting'](_0x281065)))&&_0x33f0a3['some'](_0x197ba1=>_0x19c7f8['some'](_0x22426b=>_0x197ba1['end']['isTouching'](_0x22426b['start'])));}_0x5b4356['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1ff45d,_0x1b9f7d,_0x266a07)=>{if(!_0x266a07['options']['showSuggestionHighlights'])return;const _0x4d0ff1=_0x1b9f7d['item'];if(!_0x4d0ff1)return;const _0x15b049=_0x266a07['mapper']['toViewElement'](_0x4d0ff1);function _0x5f10c4(_0x44427e){return Array['isArray'](_0x44427e)?_0x44427e:[_0x44427e];}_0x15b049&&'tableCell'===_0x4d0ff1['name']&&_0x2abb0c(_0x15b049,_0x266a07['writer'],(_0x9b3f22,_0xc2d4f3,_0x5e6abd)=>_0x5e6abd['addClass'](_0x5f10c4(_0xc2d4f3['classes']),_0x9b3f22),(_0x5114eb,_0x3a1f3a,_0x19a000)=>_0x19a000['removeClass'](_0x5f10c4(_0x3a1f3a['classes']),_0x5114eb));},{'priority':'highest'}),_0x23c34e['descriptionFactory']['registerDescriptionCallback'](_0x4cf153=>{if('insertion'!=_0x4cf153['type']&&'deletion'!=_0x4cf153['type'])return;const _0x3f49ef=_0x4cf153['getContainedElement']();if(null!=_0x3f49ef&&_0x3f49ef['is']('element','table')){if('insertion'==_0x4cf153['type']){const _0x259fce=_0x4cf153['getItems']()['filter'](_0x3f31bd=>_0x3f31bd['is']('$textProxy'))['map'](_0x1835c3=>_0x1835c3['data']);if(_0x259fce['length'])return{'type':'insertion','content':o(_0x26c0c4,'*Insert:*\x20%0',o(_0x26c0c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x259fce['join']('\x20')+'\x22'))};}if('deletion'==_0x4cf153['type']){const _0x446c41=_0x4cf153['getItems']()['filter'](_0x42fd4c=>_0x42fd4c['is']('$textProxy'))['map'](_0x544de2=>_0x544de2['data']);if(_0x446c41['length'])return{'type':'deletion','content':o(_0x26c0c4,'*Remove:*\x20%0',o(_0x26c0c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x446c41['join']('\x20')+'\x22'))};}}}),_0x23c34e['descriptionFactory']['registerDescriptionCallback'](_0x8c0818=>{if('tableRow'==_0x8c0818['subType']){const _0x31886b=_0x8c0818['getItems']()['filter'](_0x16aee0=>_0x16aee0['is']('$textProxy'))['map'](_0x40b79e=>_0x40b79e['data']),_0x450587=this['_getSuggestionCoords'](_0x8c0818),_0x3ff466=_0x450587['maxRow']-_0x450587['minRow']+0x1;if('insertion'==_0x8c0818['type'])return _0x31886b['length']?{'type':'insertion','content':o(_0x26c0c4,'*Insert:*\x20%0',o(_0x26c0c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ff466,'\x22'+_0x31886b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26c0c4,'*Insert:*\x20%0',o(_0x26c0c4,'ELEMENT_TABLE_ROW',_0x3ff466))};if('deletion'==_0x8c0818['type'])return _0x31886b['length']?{'type':'deletion','content':o(_0x26c0c4,'*Remove:*\x20%0',o(_0x26c0c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ff466,'\x22'+_0x31886b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26c0c4,'*Remove:*\x20%0',o(_0x26c0c4,'ELEMENT_TABLE_ROW',_0x3ff466))};}if('tableColumn'==_0x8c0818['subType']){const _0x30cb3c=_0x8c0818['getItems']()['filter'](_0x5a5ba9=>_0x5a5ba9['is']('$textProxy'))['map'](_0x389ea0=>_0x389ea0['data']),_0x5e5484=this['_getSuggestionCoords'](_0x8c0818),_0x3628cb=_0x5e5484['maxColumn']-_0x5e5484['minColumn']+0x1;if('insertion'==_0x8c0818['type'])return _0x30cb3c['length']?{'type':'insertion','content':o(_0x26c0c4,'*Insert:*\x20%0',o(_0x26c0c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3628cb,'\x22'+_0x30cb3c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26c0c4,'*Insert:*\x20%0',o(_0x26c0c4,'ELEMENT_TABLE_COLUMN',_0x3628cb))};if('deletion'==_0x8c0818['type'])return _0x30cb3c['length']?{'type':'deletion','content':o(_0x26c0c4,'*Remove:*\x20%0',o(_0x26c0c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3628cb,'\x22'+_0x30cb3c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26c0c4,'*Remove:*\x20%0',o(_0x26c0c4,'ELEMENT_TABLE_COLUMN',_0x3628cb))};}}),_0x23c34e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2cb4bb),_0x23c34e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2cb4bb),_0x23c34e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xa07f8a),_0x23c34e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xa07f8a),_0x23c34e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x45b8d2),_0x23c34e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x45b8d2),_0x23c34e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x42811f),_0x23c34e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x42811f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x159514=this['editor'],_0x2f25e9=_0x159514['model']['document']['selection'];return(_0x5629c0,_0xcdb040)=>{_0x159514['model']['change'](_0x22a2b5=>{const {commandName:_0x46f153,commandParams:_0x37b2c9}=_0xcdb040;let _0x53e553=_0x5629c0[0x0]['end']['nodeBefore'];_0x37b2c9&&_0x37b2c9[0x0]&&!0x1===_0x37b2c9[0x0]['forceValue']&&(_0x53e553=_0x5629c0[0x0]['start']['nodeAfter']);const _0x601e70=_0x22a2b5['createRangeIn'](_0x53e553);if('$graveyard'==_0x601e70['root']['rootName'])return;const _0x5b5931=Array['from'](_0x2f25e9['getRanges']())['map'](_0xe3d212=>_0x5a0cc1['fromRange'](_0xe3d212));_0x22a2b5['setSelection'](_0x601e70),_0x159514['commands']['get'](_0x46f153)['refresh'](),_0x37b2c9['push']({'forceDefaultExecution':!0x0}),_0x159514['execute'](_0x46f153,..._0x37b2c9);const _0x26edee=_0x5b5931['filter'](_0x4b5c72=>'$graveyard'!=_0x4b5c72['root']['rootName']);_0x26edee['length']>0x0&&_0x22a2b5['setSelection'](_0x26edee);for(const _0xf5e17b of _0x5b5931)_0xf5e17b['detach']();});};}['_getCoordsForCells'](_0x1e1547){const _0x19fdd2=this['editor']['plugins']['get']('TableUtils');let _0x153668=Number['MAX_SAFE_INTEGER'],_0xff5cd=Number['MIN_SAFE_INTEGER'],_0x58cb98=Number['MAX_SAFE_INTEGER'],_0x485052=Number['MIN_SAFE_INTEGER'];for(const _0x36b39a of _0x1e1547){if('$graveyard'==_0x36b39a['root']['rootName'])continue;const {row:_0x38142a,column:_0x47ffb1}=_0x19fdd2['getCellLocation'](_0x36b39a),_0x1636ad=_0x36b39a['hasAttribute']('rowspan')?_0x36b39a['getAttribute']('rowspan')-0x1:0x0,_0x452374=_0x36b39a['hasAttribute']('colspan')?_0x36b39a['getAttribute']('colspan')-0x1:0x0;_0x153668=_0x38142a<_0x153668?_0x38142a:_0x153668,_0xff5cd=_0x38142a+_0x1636ad>_0xff5cd?_0x38142a+_0x1636ad:_0xff5cd,_0x58cb98=_0x47ffb1<_0x58cb98?_0x47ffb1:_0x58cb98,_0x485052=_0x47ffb1+_0x452374>_0x485052?_0x47ffb1+_0x452374:_0x485052;}return{'minRow':_0x153668,'maxRow':_0xff5cd,'minColumn':_0x58cb98,'maxColumn':_0x485052};}['_setupColumnsRowsFixing'](){const _0x13a1f3=this['editor'],_0x9668b7=_0x13a1f3['plugins']['get']('TrackChangesEditing'),_0x4f292a=_0x13a1f3['plugins']['get']('TableUtils');_0x13a1f3['model']['document']['on']('change:data',()=>{const _0x517f40=Array['from'](_0x13a1f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a873e,data:_0x782802}of _0x517f40){const {group:_0x322e51,id:_0x18911c,subType:_0x343104}=_0x9668b7['_splitMarkerName'](_0x2a873e);if('suggestion'!=_0x322e51)continue;if(null!=_0x782802['oldRange'])continue;const _0x31d1be=_0x9668b7['getSuggestion'](_0x18911c);this['_tablePostFixingSubtypes']['includes'](_0x343104)&&this['_tableSuggestions']['add'](_0x31d1be);}},{'priority':'low'});const _0x1d33eb=(_0x2b672f,_0x578000)=>{let _0x349c46=!0x1;const _0x4c9a1e=_0x578000['createRangeOn'](_0x2b672f),_0x34a55c=_0x2b672f['findAncestor']('table'),_0x5ed864=_0x4f292a['getCellLocation'](_0x2b672f);for(const _0x812e34 of this['_tableSuggestions']){const _0x54ac67=_0x812e34['subType'],_0x2e6812=_0x54ac67['startsWith']('tablePaste'),_0x3a8d9c=_0x54ac67['substr'](_0x2e6812?0xa:0x5),_0x56132f=_0x3a8d9c['toLowerCase'](),_0x5d5800=_0x56132f['substr'](0x0,0x3)+'span',_0x32a891='min'+_0x3a8d9c,_0x3051b2='max'+_0x3a8d9c;if(!_0x812e34['isInContent'])continue;if(_0x34a55c!=_0x812e34['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x812e34['isIntersectingWithRange'](_0x4c9a1e))continue;const _0x28b6ee=_0x2b672f['hasAttribute'](_0x5d5800)?_0x2b672f['getAttribute'](_0x5d5800)-0x1:0x0,_0x232964=this['_getSuggestionCoords'](_0x812e34),_0x5569db=_0x232964[_0x32a891],_0x2e2d49=_0x232964[_0x3051b2];_0x5569db<=_0x5ed864[_0x56132f]&&_0x5ed864[_0x56132f]+_0x28b6ee<=_0x2e2d49&&(_0x812e34['addRange'](_0x4c9a1e),_0x349c46=!0x0);}return _0x349c46;};_0x13a1f3['model']['document']['registerPostFixer'](_0x96a731=>{let _0x5393d0=!0x1;for(const _0x6ab41f of _0x13a1f3['model']['document']['differ']['getChanges']())if('insert'==_0x6ab41f['type']){if('tableRow'==_0x6ab41f['name']){for(const _0x54326b of _0x6ab41f['position']['nodeAfter']['getChildren']())_0x5393d0=_0x5393d0||_0x1d33eb(_0x54326b,_0x96a731);}else'tableCell'==_0x6ab41f['name']&&(_0x5393d0=_0x5393d0||_0x1d33eb(_0x6ab41f['position']['nodeAfter'],_0x96a731));}return _0x5393d0;});}['_getSuggestionCoords'](_0x54517e){return this['_getCoordsForCells'](_0x54517e['getRanges']()['map'](_0x45d0ff=>_0x45d0ff['start']['nodeAfter']));}}function be(_0x1f5b69){return Array['from'](new Set(_0x1f5b69)['values']());}class vt extends _0x468cec{static get['requires'](){return[It];}['afterInit'](){const _0x169761=this['editor'],_0x20e7d9=_0x169761['model']['document']['selection'],_0x2cc975=_0x169761['locale'];if(!_0x169761['plugins']['has']('TableEditing'))return;const _0x24868a=_0x169761['plugins']['get']('TrackChangesEditing'),_0x147f6b=_0x169761['plugins']['get']('TableUtils'),_0x591de5=_0x169761['plugins']['get'](It);_0x591de5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x24868a['enableCommand']('mergeTableCells',()=>{const _0x2951b8=_0x147f6b['getSelectionAffectedTableCells'](_0x169761['model']['document']['selection']);_0x169761['model']['change'](()=>{_0x24868a['markMultiRangeBlockFormat'](_0x2951b8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x169761['commands']['get']('mergeTableCells')['on']('execute',(_0x36082c,_0x2bb3cc)=>{_0x169761['commands']['get']('trackChanges')['value']&&(_0x2bb3cc['length']>0x0&&_0x2bb3cc[_0x2bb3cc['length']-0x1]&&_0x2bb3cc[_0x2bb3cc['length']-0x1]['forceDefaultExecution']||_0x24868a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x36082c['stop']());},{'priority':'highest'});for(const _0xc7e38e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x524e13=_0x169761['commands']['get'](_0xc7e38e);_0x24868a['enableCommand'](_0xc7e38e,()=>{const _0x1f9b97=_0x169761['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d5397=>_0x5d5397['is']('element','tableCell')),_0x5aca75=_0x524e13['value'];_0x169761['model']['change'](()=>{_0x24868a['markMultiRangeBlockFormat']([_0x1f9b97,_0x5aca75],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2c2a5b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5cedf1=_0x169761['commands']['get'](_0x2c2a5b);_0x24868a['enableCommand'](_0x2c2a5b,()=>{const _0x4a0e9c=_0x147f6b['getSelectionAffectedTableCells'](_0x169761['model']['document']['selection'])[0x0],_0xf5aa68=_0x4a0e9c['findAncestor']('table'),{column:_0x45770a,row:_0x1b7fc2}=_0x147f6b['getCellLocation'](_0x4a0e9c);let _0x40d57c=[];if('horizontally'==_0x5cedf1['direction']){const _0x304b58=_0x147f6b['createTableWalker'](_0xf5aa68,{'startRow':_0x1b7fc2,'endRow':_0x1b7fc2,'includeAllSlots':!0x0});_0x40d57c=Array['from'](_0x304b58)['map'](_0x193488=>_0x193488['cell']);}else{const _0x2a0906=_0x147f6b['createTableWalker'](_0xf5aa68,{'column':_0x45770a,'includeAllSlots':!0x0});_0x40d57c=Array['from'](_0x2a0906)['map'](_0x1f1561=>_0x1f1561['cell']);}_0x169761['model']['change'](_0x408749=>{_0x24868a['markBlockFormat'](_0x408749['createRangeOn'](_0x4a0e9c),{'commandName':_0x2c2a5b,'commandParams':[]},_0x40d57c,_0x2c2a5b);});});}_0x24868a['descriptionFactory']['registerDescriptionCallback'](_0x46aa11=>{if('formatBlock'!=_0x46aa11['type']&&'formatInline'!=_0x46aa11['type'])return;const {data:_0x4dcfc6}=_0x46aa11;return _0x4dcfc6&&'mergeTableCells'==_0x4dcfc6['commandName']?{'type':'format','content':o(_0x2cc975,'*Merge\x20cells*')}:void 0x0;}),_0x24868a['descriptionFactory']['registerDescriptionCallback'](_0x2f0345=>{if('formatBlock'!=_0x2f0345['type']&&'formatInline'!=_0x2f0345['type'])return;const {data:_0x5eb890}=_0x2f0345;return _0x5eb890?'splitTableCellVertically'==_0x5eb890['commandName']?{'type':'format','content':o(_0x2cc975,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5eb890['commandName']?{'type':'format','content':o(_0x2cc975,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3ced67=_0x591de5['_acceptFormatSuggestionCallbackFactory']();for(const _0x328fe6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x24868a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x328fe6,'accept',_0x3ced67);for(const _0x1ba829 of['splitTableCellVertically','splitTableCellHorizontally'])_0x24868a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ba829,'accept',_0x3ced67);_0x24868a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x281d57=>{_0x169761['model']['change'](_0x3b99a7=>{const _0x785b16=Array['from'](_0x20e7d9['getRanges']())['map'](_0x22555c=>_0x5a0cc1['fromRange'](_0x22555c));_0x3b99a7['setSelection'](_0x281d57),_0x169761['commands']['get']('mergeTableCells')['refresh'](),_0x169761['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1d21c3=_0x785b16['filter'](_0x899520=>'$graveyard'!=_0x899520['root']['rootName']);_0x1d21c3['length']>0x0&&_0x3b99a7['setSelection'](_0x1d21c3);for(const _0xc5e2ac of _0x785b16)_0xc5e2ac['detach']();});});for(const _0x1abc82 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1b3db6=_0x169761['commands']['get'](_0x1abc82);_0x1b3db6['on']('set:isEnabled',(_0x57227d,_0x5b1bd3,_0xe53791)=>{if(_0xe53791){const _0xad3a0f=_0x169761['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5f02de=>_0x5f02de['is']('element','tableCell'));this['_areMergableCells'](_0x1b3db6['value'],_0xad3a0f)||(_0x57227d['return']=!0x1,_0x57227d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1c557e=this['editor']['commands']['get']('mergeTableCells'),_0x3e4de8=this['editor']['plugins']['get']('TableUtils');if(!_0x1c557e['isEnabled'])return!0x1;const _0x3a4f70=_0x3e4de8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2daa03 of _0x3a4f70)for(const _0x35dcb8 of _0x3a4f70)if(_0x2daa03!=_0x35dcb8&&!this['_areMergableCells'](_0x2daa03,_0x35dcb8))return!0x1;return!0x0;}['_areMergableCells'](_0x4cd62e,_0x382419){const _0x3baab9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ade0e=this['editor']['model']['createRangeOn'](_0x4cd62e),_0x577813=this['editor']['model']['createRangeOn'](_0x382419),_0x500c57=new Set(),_0x44c454=new Set();for(const _0x1022c7 of _0x3baab9['getSuggestions']())if(('insertion'==_0x1022c7['type']||'deletion'==_0x1022c7['type']||'mergeTableCells'==_0x1022c7['subType'])&&_0x1022c7['isInContent']){for(const _0x253bde of _0x1022c7['getRanges']())_0x253bde['containsRange'](_0x2ade0e,!0x0)&&_0x500c57['add'](_0x1022c7['type']+':'+_0x1022c7['author']['id']),_0x253bde['containsRange'](_0x577813,!0x0)&&_0x44c454['add'](_0x1022c7['type']+':'+_0x1022c7['author']['id']);}if(_0x500c57['size']!=_0x44c454['size'])return!0x1;for(const _0x6d542e of _0x500c57)if(!_0x44c454['has'](_0x6d542e))return!0x1;return!0x0;}}class Ct extends _0x468cec{static get['requires'](){return[It];}['afterInit'](){const _0x481f62=this['editor'];if(!_0x481f62['plugins']['has']('TableEditing'))return;const _0x1a10da=_0x481f62['locale'],_0xd14845=_0x481f62['plugins']['get']('TrackChangesEditing');_0xd14845['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xd14845['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xd14845['registerBlockAttribute']('headingRows'),_0xd14845['registerBlockAttribute']('headingColumns'),_0xd14845['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1a10da,'FORMAT_HEADER_ROW')),_0xd14845['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1a10da,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30e00d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x530211=this['editor']['plugins']['get']('TableUtils'),_0x4cfd0a=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x22d95c({showActiveMarker:_0x3bb485=!0x0,setDataAttribute:_0x147ed1=!0x0}={}){return(_0x28b0d6,_0x5231f5,_0x2b14a2)=>{const {type:_0x152428,id:_0x1f425e}=_0x30e00d['_splitMarkerName'](_0x5231f5['markerName']),_0x278204=_0x30e00d['getSuggestion'](_0x1f425e),_0x3b023b=_0x278204['data'];if('formatBlock'!=_0x278204['type']||!_0x3b023b||'setTableColumnHeader'!=_0x3b023b['commandName'])return;if(_0x5231f5['item'])return void _0x28b0d6['stop']();if(!_0x2b14a2['consumable']['consume'](_0x5231f5['markerRange'],_0x28b0d6['name']))return;const _0x394415=_0x5231f5['markerRange']['start']['nodeAfter'],_0x13d062=_0x5231f5['markerRange']['end']['nodeBefore'],_0x3cf02b=_0x394415['parent']['parent'],{column:_0x225638}=_0x530211['getCellLocation'](_0x394415),{column:_0x5487cb}=_0x530211['getCellLocation'](_0x13d062);for(let _0x4f139f=_0x225638;_0x4f139f<=_0x5487cb;_0x4f139f++){const _0x3d4393=_0x530211['createTableWalker'](_0x3cf02b,{'column':_0x4f139f,'includeAllSlots':!0x1});for(const _0x42898f of _0x3d4393){const _0x25378e=_0x42898f['cell'],_0xf8ab53=_0x2b14a2['mapper']['toViewElement'](_0x25378e);_0x2b14a2['writer']['addClass']('ck-suggestion-marker-'+_0x152428,_0xf8ab53),_0x147ed1&&_0x2b14a2['writer']['setAttribute']('data-suggestion',_0x1f425e,_0xf8ab53),_0x2b14a2['mapper']['bindElementToMarker'](_0xf8ab53,_0x5231f5['markerName']),_0x3bb485&&(_0x30e00d['activeMarkers']['includes'](_0x5231f5['markerName'])?_0x2b14a2['writer']['addClass']('ck-suggestion-marker--active',_0xf8ab53):_0x2b14a2['writer']['removeClass']('ck-suggestion-marker--active',_0xf8ab53));}}};}_0x30e00d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4cfd0a),_0x30e00d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4cfd0a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x22d95c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b374a,_0x3811fb,_0x50f289)=>{_0x50f289['options']['showSuggestionHighlights']&&_0x22d95c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2b374a,_0x3811fb,_0x50f289);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3d52bf,_0x4d853b,_0x106958)=>{const {type:_0x6b1da7,id:_0x3005a0}=_0x30e00d['_splitMarkerName'](_0x4d853b['markerName']),_0x2c73e7=_0x30e00d['getSuggestion'](_0x3005a0),_0x2701e9=_0x2c73e7['data'];if('formatBlock'!=_0x2c73e7['type']||!_0x2701e9||'setTableColumnHeader'!=_0x2701e9['commandName'])return;const _0x1be71a=_0x106958['mapper']['markerNameToElements'](_0x4d853b['markerName']);if(_0x1be71a){for(const _0xa2f2b of _0x1be71a)_0x106958['writer']['removeClass']('ck-suggestion-marker-'+_0x6b1da7,_0xa2f2b),_0x106958['writer']['removeClass']('ck-suggestion-marker--active',_0xa2f2b),_0x106958['writer']['removeAttribute']('data-suggestion',_0xa2f2b),_0x106958['mapper']['unbindElementFromMarkerName'](_0xa2f2b,_0x4d853b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20b1fc=this['editor'],_0x4d6991=_0x20b1fc['locale'];function _0x341641(_0x3e7b47){return{'type':'format','content':o(_0x4d6991,'*Format:*\x20%0',_0x3e7b47)};}_0x20b1fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a2957=>{if('formatBlock'!=_0x5a2957['type'])return;const {data:_0x468d26}=_0x5a2957;if(_0x468d26){if('setTableRowHeader'==_0x468d26['commandName']){const _0x4cee07=_0x468d26['commandParams'][0x0]['forceValue'];return _0x341641(o(_0x4d6991,_0x4cee07?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x468d26['commandName']){const _0x5067a4=_0x468d26['commandParams'][0x0]['forceValue'];return _0x341641(o(_0x4d6991,_0x5067a4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x18702f=>[_0x18702f,null]));class _t extends _0x468cec{static get['requires'](){return[It];}['afterInit'](){const _0xeb8273=this['editor'];if(!_0xeb8273['plugins']['has']('TableClipboard'))return;const _0x1bd8f8=_0xeb8273['plugins']['get']('TrackChangesEditing'),_0x32178a=_0xeb8273['plugins']['get']('TableUtils'),_0x116c0e=_0xeb8273['plugins']['get'](It),_0x1959b0=_0xeb8273['plugins']['get']('TableClipboard');_0x116c0e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xeb8273['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xeb8273['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1fd82a=null;_0xeb8273['model']['on']('insertContent',(_0x2af895,_0x13f905)=>{const [_0x4c4917,_0x5f25df]=_0x13f905,_0x37fa45=_0x13f905[_0x13f905['length']-0x1];_0x37fa45&&_0x37fa45['forceDefaultExecution']||_0x1bd8f8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x438c2b,_0x5c646c,_0x4565ed,_0x29580c,_0x314a63){if(_0x5c646c&&!_0x5c646c['is']('documentSelection'))return!0x1;const _0x3152d8=_0x314a63['getTableIfOnlyTableInContent'](_0x438c2b,_0x4565ed);if(!_0x3152d8||!Re(_0x3152d8,void 0x0,_0x29580c))return!0x1;const _0x542ef0=_0x29580c['getSelectionAffectedTableCells'](_0x4565ed['document']['selection']);if(!_0x542ef0['length'])return!0x1;const _0x251b7a=_0x542ef0[0x0]['findAncestor']('table'),_0x29364d=_0x29580c['getRowIndexes'](_0x542ef0),_0xa944c4=_0x29580c['getColumnIndexes'](_0x542ef0),_0x4ebb9f={'startRow':_0x29364d['first'],'endRow':_0x29364d['last'],'startColumn':_0xa944c4['first'],'endColumn':_0xa944c4['last']};return 0x1==_0x542ef0['length']&&(_0x4ebb9f['endRow']+=_0x29580c['getRows'](_0x3152d8)-0x1,_0x4ebb9f['endColumn']+=_0x29580c['getColumns'](_0x3152d8)-0x1),Re(_0x251b7a,_0x4ebb9f,_0x29580c);}(_0x4c4917,_0x5f25df,_0xeb8273['model'],_0x32178a,_0x1959b0)&&(_0x2af895['stop'](),_0x1fd82a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xeb8273['model']['change'](()=>{_0xeb8273['model']['insertContent'](_0x13f905[0x0],_0x13f905[0x1],_0x13f905[0x2],{'forceDefaultExecution':!0x0});const _0x3a26c2=_0x3ddfb4(),{rowInsertionRanges:_0x32b955,columnInsertionRanges:_0x52ad64,insertionRanges:_0x1953cf,deletionRanges:_0x1dd69e,cells:_0x24cb50}=_0x1fd82a;_0x32b955['length']&&_0x1bd8f8['markMultiRangeInsertion'](_0x32b955,'tablePasteRow',{'tablePasteChainId':_0x3a26c2}),_0x52ad64['length']&&_0x1bd8f8['markMultiRangeInsertion'](_0x52ad64,'tablePasteColumn',{'tablePasteChainId':_0x3a26c2}),_0x1953cf['length']&&(_0x1bd8f8['markMultiRangeInsertion'](_0x1953cf,'tablePaste',{'tablePasteChainId':_0x3a26c2,'skipNestingCheck':!0x0}),_0x1953cf['forEach'](_0x522209=>_0x522209['detach']?.())),_0x1dd69e['length']&&(_0x1bd8f8['markMultiRangeDeletion'](_0x1dd69e,'tablePaste',{'tablePasteChainId':_0x3a26c2,'skipNestingCheck':!0x0}),_0x1dd69e['forEach'](_0x1f5531=>_0x1f5531['detach']?.()));const _0x341bb3=_0x1bd8f8['markMultiRangeBlockFormat'](_0x24cb50['map'](({element:_0x1a43b3})=>_0x1a43b3),{'formatGroupId':_0x3ddfb4()},[],'tablePasteCell',{'tablePasteChainId':_0x3a26c2});if(_0x341bb3){const _0x542d5b=_0x341bb3['getMarkers'](),_0x300310=[];for(const {element:_0x34641c,attributes:_0x5f2606}of _0x24cb50){if(!_0x5f2606)continue;const _0x31dc2c=_0xeb8273['model']['createRangeOn'](_0x34641c),_0x1cbe9d=_0x542d5b['find'](_0x6a5a07=>_0x6a5a07['getRange']()['isEqual'](_0x31dc2c));_0x1cbe9d&&_0x300310['push']([_0x1cbe9d['name'],_0x5f2606]);}_0x300310['length']&&_0x341bb3['setAttribute']('markerAttributes',Object['fromEntries'](_0x300310));}_0x1fd82a=null;}));},{'priority':_0x76288f['high']+0xa}),_0xeb8273['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1a58bd,_0x1879d7)=>{const [_0x47c7d5,_0x194efc,,_0x2b6ec3]=_0x1879d7;if(!_0x1fd82a)return;_0x1a58bd['stop']();const _0x1f7f53=_0x47c7d5['cell'],_0x2eee1c=_0x194efc,_0x4fdfec=ke(_0x1f7f53),_0x2da5e4=ke(_0x2eee1c);_0x1a58bd['return']=_0x1f7f53;let _0x5be491=null,_0x3fb686=null;if(_0x2da5e4||_0x4fdfec){if(_0x4fdfec&&!_0x2da5e4){_0x2b6ec3['remove'](_0x1f7f53['getChild'](0x0));for(const _0x5095d1 of Array['from'](_0x2eee1c['getChildren']()))_0x2b6ec3['insert'](_0x5095d1,_0x1f7f53,'end');const _0x4dcc2c=_0x1fd82a['rowInsertionIndexes']['includes'](_0x47c7d5['row']),_0x160151=_0x1fd82a['columnInsertionIndexes']['includes'](_0x47c7d5['column']);_0x4dcc2c||_0x160151||(_0x5be491=_0x5a0cc1['fromRange'](_0x2b6ec3['createRangeIn'](_0x1f7f53)));}else _0x2da5e4&&!_0x4fdfec&&(_0x3fb686=_0x2b6ec3['createRangeIn'](_0x1f7f53));}else{const _0x4362d6=_0x2b6ec3['createElement']('tableCellSuggestion'),_0x1a7b70=_0x2b6ec3['createElement']('tableCellSuggestion');_0x2b6ec3['wrap'](_0x2b6ec3['createRangeIn'](_0x1f7f53),_0x1a7b70),_0x2b6ec3['insert'](_0x4362d6,_0x1f7f53,0x0);for(const _0x519dc0 of Array['from'](_0x2eee1c['getChildren']()))_0x2b6ec3['insert'](_0x519dc0,_0x4362d6,'end');_0x5be491=_0x5a0cc1['fromRange'](_0x2b6ec3['createRangeOn'](_0x4362d6)),_0x3fb686=_0x5a0cc1['fromRange'](_0x2b6ec3['createRangeOn'](_0x1a7b70));}const _0x1c4a8d=Array['from'](_0x2eee1c['getAttributes']())['filter'](([_0x4ef620])=>Pe['includes'](_0x4ef620));_0x1fd82a['cells']['push']({'element':_0x1f7f53,'attributes':_0x1c4a8d['length']?Object['fromEntries'](_0x1c4a8d):null}),_0x5be491&&_0x1fd82a['insertionRanges']['push'](_0x5be491),_0x3fb686&&_0x1fd82a['deletionRanges']['push'](_0x3fb686);},{'priority':'high'}),_0x32178a['on']('insertColumns',(_0x1e1faf,_0x3d226e)=>{const [_0x20f0b0,_0x56d6d0={}]=_0x3d226e;if(!_0x1fd82a)return;const _0x3c43c1=_0x56d6d0['at']||0x0,_0x48c5bb=_0x56d6d0['columns']||0x1;_0x1fd82a['columnInsertionIndexes']=new Array(_0x48c5bb)['fill'](_0x3c43c1)['map']((_0x345db7,_0x18daed)=>_0x345db7+_0x18daed);for(const {cell:_0x391091}of _0x32178a['createTableWalker'](_0x20f0b0,{'startColumn':_0x3c43c1,'endColumn':_0x3c43c1+_0x48c5bb-0x1}))_0x1fd82a['columnInsertionRanges']['push'](_0xeb8273['model']['createRangeOn'](_0x391091));},{'priority':'low'}),_0x32178a['on']('insertRows',(_0x135179,_0x3d0d0)=>{const [_0x359c1b,_0x2907ee={}]=_0x3d0d0;if(!_0x1fd82a)return;const _0x46740a=_0x2907ee['at']||0x0,_0x4b0291=_0x2907ee['rows']||0x1;_0x1fd82a['rowInsertionIndexes']=new Array(_0x4b0291)['fill'](_0x46740a)['map']((_0x149c9d,_0x2af854)=>_0x149c9d+_0x2af854);for(const {cell:_0x46aacf}of _0x32178a['createTableWalker'](_0x359c1b,{'startRow':_0x46740a,'endRow':_0x46740a+_0x4b0291-0x1}))_0x1fd82a['rowInsertionRanges']['push'](_0xeb8273['model']['createRangeOn'](_0x46aacf));},{'priority':'low'}),_0x1bd8f8['descriptionFactory']['registerDescriptionCallback'](_0xcb0bff=>{if(_0xcb0bff['subType']&&_0xcb0bff['subType']['startsWith']('tablePaste'))return _0xcb0bff['previous']?{}:{'type':'insertion','content':o(_0xeb8273['locale'],'*Replace\x20table\x20cells*')};});const _0x46529b=()=>!0x1;for(const _0x24d3a6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1bd8f8['_suggestionFactory']['registerCustomCallback']('insertion',_0x24d3a6,'join',_0x46529b),_0x1bd8f8['_suggestionFactory']['registerCustomCallback']('deletion',_0x24d3a6,'join',_0x46529b),_0x1bd8f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x24d3a6,'join',_0x46529b);_0x1bd8f8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x46529b),_0x1bd8f8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5d84a6,_0x5eb943,_0x3982ff)=>{const _0x75832c=_0x5d84a6['map'](_0x319303=>_0x319303['getContainedElement']())['filter'](_0x2e9add=>_0x2e9add),_0x2b0b01=new Map(_0x75832c['map'](_0x2e83cd=>[_0x2e83cd,null]));if(_0x1fd82a){for(const {element:_0x29f0ba,attributes:_0x4cd723}of _0x1fd82a['cells'])_0x4cd723&&_0x2b0b01['set'](_0x29f0ba,_0x4cd723);}else{if(_0x3982ff&&_0x3982ff['markerAttributes'])for(const [_0x359d89,_0x572384]of Object['entries'](_0x3982ff['markerAttributes'])){const _0x10c17c=_0xeb8273['model']['markers']['get'](_0x359d89),_0x28d7fb=_0x10c17c?_0x10c17c['getRange']()['getContainedElement']():null;_0x28d7fb&&_0x2b0b01['set'](_0x28d7fb,_0x572384);}}_0xeb8273['model']['change'](_0x367b63=>{for(const [_0x2f9017,_0x2cbf9e]of _0x2b0b01)_0x367b63['setAttributes']({...we,..._0x2cbf9e},_0x2f9017);});});const _0x233be1=(_0x4a57dc,_0x209b35)=>{_0x1bd8f8['_suggestionFactory']['registerCustomCallback'](_0x4a57dc,'tablePaste',_0x209b35,(_0x3db0fc,_0x49dc96,_0x3d8cd2)=>{_0xeb8273['model']['change'](_0x10ca9a=>{const _0x1606e3=[];for(const _0x367d63 of _0x3db0fc){const _0x296c14=_0x367d63['start']['nodeAfter'];_0x296c14['is']('element','tableCellSuggestion')&&_0x1606e3['push'](_0x296c14);}_0x1bd8f8['_suggestionFactory']['getSuggestionCallback'](_0x4a57dc,null,_0x209b35)(_0x3db0fc,_0x49dc96,_0x3d8cd2);for(const _0x44d462 of _0x1606e3)'$graveyard'!=_0x44d462['root']['rootName']&&_0x10ca9a['unwrap'](_0x44d462);});});};_0x233be1('insertion','accept'),_0x233be1('insertion','discard'),_0x233be1('deletion','accept'),_0x233be1('deletion','discard'),_0x1bd8f8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x469835=>{const _0x213b4d=_0x469835['map'](_0x20466a=>_0x20466a['getContainedElement']()),_0x5909b5=_0x213b4d[0x0]['findAncestor']('table'),{minRow:_0x43ff02,maxRow:_0x37918b}=_0x116c0e['_getCoordsForCells'](_0x213b4d);_0x32178a['removeRows'](_0x5909b5,{'at':_0x43ff02,'rows':_0x37918b-_0x43ff02+0x1});}),_0x1bd8f8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x21cca0=>{const _0x2d2bc7=_0x21cca0['map'](_0x21c7b7=>_0x21c7b7['getContainedElement']()),_0x206a59=_0x2d2bc7[0x0]['findAncestor']('table'),{minColumn:_0x212c85,maxColumn:_0x40009d}=_0x116c0e['_getCoordsForCells'](_0x2d2bc7);_0x32178a['removeColumns'](_0x206a59,{'at':_0x212c85,'columns':_0x40009d-_0x212c85+0x1});});const _0x25653d=(_0x329b26,_0x38ac7b)=>{if(!_0x38ac7b['subType']||!_0x38ac7b['subType']['startsWith']('tablePaste'))return;const _0x4b20a3=_0x38ac7b['attributes']['tablePasteChainId'],_0x152aa9=_0x1bd8f8['getSuggestions']()['filter'](_0x106a94=>_0x106a94['isInContent']&&_0x106a94['attributes']&&_0x106a94['attributes']['tablePasteChainId']==_0x4b20a3);_0x152aa9['length']&&_0x38ac7b['getAllAdjacentSuggestions']()['length']!=_0x152aa9['length']&&_0x152aa9['reduce']((_0x2f9125,_0x19744d)=>(_0x2f9125['next']=_0x19744d,_0x19744d['previous']=_0x2f9125,_0x19744d));};function _0x484bce(_0x5afa79,_0x2a6901=!0x0){const {id:_0xb4fcfa,authorId:_0x2ad187}=_0x1bd8f8['_splitMarkerName'](_0x5afa79['markerName']),_0x37ec9d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4d1345=_0x1bd8f8['activeMarkers']['includes'](_0x5afa79['markerName']);return _0x4d1345&&_0x37ec9d['push']('ck-suggestion-marker--active'),{'classes':_0x37ec9d,'attributes':{'data-suggestion':_0xb4fcfa,'data-author-id':_0x2ad187},'priority':_0x4d1345&&_0x2a6901?0xbc2:0xbb8};}_0x1bd8f8['on']('suggestionLoaded',_0x25653d,{'priority':'high'}),_0x1bd8f8['on']('suggestionUnloaded',_0x25653d,{'priority':'high'}),_0xeb8273['model']['document']['registerPostFixer'](()=>{let _0x475921=!0x1;const _0x581706=Array['from'](_0xeb8273['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x602ad2,data:_0x5116ef}of _0x581706){const {group:_0x4a90e8,type:_0x55a424,id:_0x1037fa}=_0x1bd8f8['_splitMarkerName'](_0x602ad2);if('suggestion'!=_0x4a90e8||'deletion'!=_0x55a424||_0x5116ef['oldRange'])continue;if(!_0x1bd8f8['hasSuggestion'](_0x1037fa))continue;const _0x1b9b00=_0x1bd8f8['getSuggestion'](_0x1037fa)['getRanges'](),_0x148e61=_0xeb8273['plugins']['get']('Users')['me'];for(const _0x41a0b9 of _0x1bd8f8['getSuggestions']()){if(!_0x41a0b9['isInContent']||_0x41a0b9['author']!=_0x148e61)continue;if('formatBlock'!=_0x41a0b9['type']||'tablePasteCell'!=_0x41a0b9['subType'])continue;if(_0x41a0b9['getRanges']()['every'](_0x4084a6=>_0x1b9b00['some'](_0x3e3a7a=>_0x3e3a7a['containsRange'](_0x4084a6,!0x0)))){for(const _0x48dc02 of _0x41a0b9['getAllAdjacentSuggestions']())_0x48dc02['isInContent']&&(_0x48dc02['discard'](),_0x475921=!0x0);}}}return _0x475921;}),_0xeb8273['model']['document']['registerPostFixer'](_0x59a2fe=>{const _0x3c12bd=_0xeb8273['commands']['get']('redo');if(!_0x3c12bd||!_0x3c12bd['_createdBatches']['has'](_0x59a2fe['batch']))return!0x1;let _0x490a3b=!0x1;const _0x3543c7=_0xeb8273['plugins']['get']('Users')['me'],_0x3d8d30=_0xeb8273['model']['document']['differ']['getChanges'](),_0x29e8bd=Array['from'](_0xeb8273['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x448856,data:_0x98d02f})=>{const {group:_0x3555f4,subType:_0x8c2720,authorId:_0x1e5fbb}=_0x1bd8f8['_splitMarkerName'](_0x448856);return'suggestion'==_0x3555f4&&'tablePaste'==_0x8c2720&&_0x1e5fbb==_0x3543c7['id']&&!_0x98d02f['oldRange'];});for(const _0x555eed of _0x3d8d30){if('insert'!=_0x555eed['type']||'tableCellSuggestion'!=_0x555eed['name']||0x1!=_0x555eed['length'])continue;const _0x151163=_0x59a2fe['createRange'](_0x555eed['position'],_0x555eed['position']['getShiftedBy'](0x1));if(!_0x29e8bd['find'](({data:_0x4b746f})=>_0x4b746f['newRange']['isEqual'](_0x151163))){for(const {name:_0x86fa5b,data:_0x36b3a4}of _0x29e8bd)if(_0x151163['containsRange'](_0x36b3a4['newRange'])){_0x59a2fe['updateMarker'](_0x86fa5b,{'range':_0x151163}),_0x490a3b=!0x0;break;}}}return _0x490a3b;}),_0xeb8273['model']['document']['registerPostFixer'](_0x324374=>{let _0x67de6c=!0x1;const _0x1d50d9=_0xeb8273['plugins']['get']('Users')['me'],_0x5788e0=_0x1bd8f8['getSuggestions']()['filter'](_0x1959e2=>_0x1959e2['isInContent']&&_0x1959e2['author']==_0x1d50d9),_0x291eab=new Set(),_0x543976=new Set();for(const _0x471d66 of _0x5788e0)if('tablePaste'==_0x471d66['subType'])for(const _0x435204 of _0x471d66['getMarkers']()){const _0x50407c=_0x435204['getRange']()['getContainedElement']();if(_0x50407c){if(_0x50407c['is']('element','tableCellSuggestion')&&ke(_0x50407c)){_0x471d66['removeMarker'](_0x435204['name']),_0x291eab['add'](_0x50407c),_0x67de6c=!0x0;const _0x3e0c80=_0x50407c['nextSibling'],_0x23266b=_0x50407c['previousSibling'],_0x48559f=_0x3e0c80&&_0x3e0c80['is']('element','tableCellSuggestion'),_0x174ccf=_0x23266b&&_0x23266b['is']('element','tableCellSuggestion');_0x48559f&&!_0x291eab['has'](_0x3e0c80)&&_0x543976['add'](_0x3e0c80),_0x174ccf&&!_0x291eab['has'](_0x23266b)&&_0x543976['add'](_0x23266b);}else _0x50407c['is']('element','paragraph')&&_0x50407c['isEmpty']&&(_0x471d66['removeMarker'](_0x435204['name']),_0x67de6c=!0x0);}}else{if('tablePasteCell'==_0x471d66['subType']){if(!_0x471d66['attributes']||!_0x471d66['attributes']['tablePasteChainId'])continue;const _0x22e613=_0x471d66['attributes']['markerAttributes'];if(_0x22e613&&Object['keys'](_0x22e613)['length'])continue;const _0x3e33e6=_0x471d66['attributes']['tablePasteChainId'];let _0x80026=!0x0,_0x29e3d3=!0x0;for(const _0x166ac5 of _0x5788e0)if(_0x166ac5['subType']&&_0x166ac5['subType']['startsWith']('tablePaste')){if(!_0x166ac5['attributes']['tablePasteChainId']){_0x29e3d3=!0x1;break;}if(_0x166ac5['id']!=_0x471d66['id']&&_0x166ac5['attributes']['tablePasteChainId']==_0x3e33e6){_0x80026=!0x1;break;}}_0x29e3d3&&_0x80026&&(_0x471d66['removeMarkers'](),_0x67de6c=!0x0);}}for(const _0x39c71a of _0x291eab)_0x324374['remove'](_0x39c71a);for(const _0x356824 of _0x543976)_0x324374['unwrap'](_0x356824);return _0x67de6c;}),_0xeb8273['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3f363a,_0x18b167)=>_0x484bce(_0x3f363a),'converterPriority':'high'}),_0xeb8273['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x21b907,_0x195dd0)=>_0x195dd0['options']['showSuggestionHighlights']?_0x484bce(_0x21b907,!0x1):null,'converterPriority':'high'});const _0x66e580=_0xeb8273['editing']['view'];this['listenTo'](_0x66e580['document'],'clipboardOutput',(_0x52e6bf,_0x236a24)=>{const _0x266730=[];for(const _0x29ff47 of _0x66e580['createRangeIn'](_0x236a24['content'])['getItems']())_0x29ff47['is']('element','suggestion-td')&&_0x266730['push'](_0x29ff47);_0x66e580['change'](_0x3b3825=>{for(const _0x59b5c4 of _0x266730)_0x3b3825['move'](_0x3b3825['createRangeIn'](_0x59b5c4),_0x3b3825['createPositionBefore'](_0x59b5c4)),_0x3b3825['remove'](_0x59b5c4);});});}}function ke(_0x56ef80){if(_0x56ef80['isEmpty'])return!0x0;const _0x49b0d4=_0x56ef80['getChild'](0x0);return _0x49b0d4['is']('element','paragraph')&&_0x49b0d4['isEmpty'];}function Re(_0x2610c0,_0x413572={},_0x46bed9){for(const {isAnchor:_0x5bf96a,cellHeight:_0x4c8400,cellWidth:_0x3753ab}of _0x46bed9['createTableWalker'](_0x2610c0,{'includeAllSlots':!0x0,..._0x413572}))if(!_0x5bf96a||0x1!=_0x4c8400||0x1!=_0x3753ab)return!0x1;return!0x0;}class Nt extends _0x468cec{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4fc057=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fc057['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4fc057['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4fc057['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fc057['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4fc057['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4fc057['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3aa270,_0x9987bc){const _0x315b6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x461684=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4090a8=_0x9987bc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f7ddd=_0x461684['getColumnGroupElement'](_0x4090a8);let _0x13e036=_0x3f7ddd?_0x461684['getTableColumnsWidths'](_0x3f7ddd):null,_0x11a6cc=_0x4090a8['getAttribute']('tableWidth')||null;const _0x2af3f1=_0x9987bc['tableWidth']||_0x11a6cc,_0x165946=_0x9987bc['columnWidths']||_0x13e036,_0x53d5d3=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b317e of _0x315b6c['getSuggestions']()){const _0x4fef01=_0x5b317e['getContainedElement']();if('resizeTable'===_0x5b317e['subType']&&_0x4fef01===_0x4090a8){_0x5b317e['author']!==_0x53d5d3&&_0x5b317e['discard']();const _0x103573=_0x5b317e['data']['commandParams'];_0x11a6cc=_0x103573[0x0]['tableWidth'],_0x13e036=_0x103573[0x0]['columnWidths'];break;}}_0x3aa270({'table':_0x4090a8,'tableWidth':_0x2af3f1,'columnWidths':_0x165946}),_0x315b6c['markBlockFormat'](_0x4090a8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11a6cc,'columnWidths':_0x13e036}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x276db){if('formatBlock'!=_0x276db['type']&&'formatInline'!=_0x276db['type'])return;const {data:_0x31c128}=_0x276db;if(_0x31c128&&'resizeTable'===_0x31c128['formatGroupId']){const _0x30f960='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x30f960)};}}}class Dt extends _0x468cec{['afterInit'](){const _0x1595b5=this['editor'];_0x1595b5['plugins']['has']('Template')&&_0x1595b5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x468cec{['afterInit'](){const _0x5b8bce=this['editor'];if(!_0x5b8bce['commands']['get']('insertTableOfContents'))return;_0x5b8bce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x57da30=_0x5b8bce['plugins']['get']('TrackChangesEditing'),_0x24caf3=_0x5b8bce['locale'];_0x57da30['descriptionFactory']['registerElementLabel']('tableOfContents',_0x171679=>o(_0x24caf3,'ELEMENT_TABLE_OF_CONTENTS',_0x171679));}}class $t extends _0x468cec{['afterInit'](){const _0x5286f2=this['editor'];if(!_0x5286f2['plugins']['has']('Title'))return;const _0x252606=_0x5286f2['plugins']['get']('TrackChangesEditing');_0x252606['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5286f2['locale'],'ELEMENT_TITLE')),_0x5286f2['model']['document']['registerPostFixer'](_0x28585b=>{let _0x4edb51=!0x1;const _0x410905=Array['from'](_0x5286f2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a901e,data:_0x15b886}of _0x410905){const {group:_0x11e2aa}=_0x252606['_splitMarkerName'](_0x5a901e);if('suggestion'!==_0x11e2aa||!_0x15b886['newRange'])continue;const _0x35ef2a=_0x15b886['newRange'],_0x4e3288=_0x35ef2a['end']['nodeBefore'];if(!_0x4e3288||!_0x4e3288['is']('element','title-content'))continue;if(!_0x35ef2a['start']['isTouching'](_0x35ef2a['end']))continue;const _0x3dc229=_0x5286f2['model']['schema']['getNearestSelectionRange'](_0x35ef2a['end'],'forward');if(_0x3dc229&&_0x3dc229['isCollapsed']){const _0x43a4a1=_0x28585b['createRange'](_0x35ef2a['start'],_0x3dc229['start']);_0x43a4a1['isEqual'](_0x35ef2a)||(_0x28585b['updateMarker'](_0x5a901e,{'range':_0x43a4a1}),_0x4edb51=!0x0);}_0x4edb51||(_0x28585b['removeMarker'](_0x5a901e),_0x4edb51=!0x0);}return _0x4edb51;});}}class Bt extends _0x468cec{['afterInit'](){const _0x18a4ce=this['editor'],_0x3072e5=_0x18a4ce['plugins']['get']('TrackChangesEditing');_0x18a4ce['plugins']['has']('UndoEditing')&&(_0x3072e5['enableCommand']('undo'),_0x3072e5['enableCommand']('redo'));}}class xt extends _0x468cec{static get['requires'](){return[It];}['afterInit'](){const _0x1225c9=this['editor'];if(!_0x1225c9['plugins']['has']('TableCaptionEditing'))return;_0x1225c9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x468cec{['tableProperties'];['tableCellProperties'];constructor(_0x1cb87a){super(_0x1cb87a),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 _0x114832=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3c0c5b of this['tableProperties'])_0x114832['enableCommand'](_0x3c0c5b,(_0x1d88fe,_0x492cdc)=>{const _0x64dab8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3c0c5b,[_0x64dab8],this['tableProperties'],'tableProperties',_0x1d88fe,_0x492cdc);});_0x114832['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x114832['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x114832['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4221bd,_0x442e02)=>this['handleDiscardAction'](this['tableProperties'],_0x4221bd,_0x442e02)),_0x114832['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1059ba of this['tableCellProperties'])_0x114832['enableCommand'](_0x1059ba,(_0x74fe78,_0x78b90f)=>{const _0x1c98fd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1059ba,_0x1c98fd,this['tableCellProperties'],'tableCellProperties',_0x74fe78,_0x78b90f);});_0x114832['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x114832['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x114832['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x19ed57,_0x36b86f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x19ed57,_0x36b86f)),_0x114832['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x114832['descriptionFactory']['registerDescriptionCallback'](_0x295f87=>this['handleSuggestionDescription'](_0x295f87));}['_handlePropertyChange'](_0x2cc9f9,_0x577ee6,_0x108aa4,_0x39941c,_0x2bc5c6,_0x1795eb){const _0x3f7136=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1795eb['batch'],()=>{for(const _0x1917d4 of _0x577ee6){if(this['_getSuggestion'](_0x1917d4,_0x39941c))_0x2bc5c6(_0x1795eb);else{const _0x2ea054={};for(const _0x589d92 of _0x108aa4){const _0x146ef0=_0x1917d4['getAttribute'](_0x589d92);void 0x0!==_0x146ef0&&(_0x2ea054[_0x589d92]=_0x146ef0);}_0x2bc5c6(_0x1795eb),_0x3f7136['markBlockFormat'](_0x1917d4,{'commandParams':[_0x2ea054]},[],_0x39941c);}}});}['handleDiscardAction'](_0x43c6d7,_0x9a2398,_0x56c7bc){const _0x9bd3b=_0x9a2398[0x0]['start']['nodeAfter'],_0x13897f=_0x56c7bc['commandParams'][0x0];this['editor']['model']['change'](_0x4ab54c=>{for(const _0x509985 of _0x43c6d7)void 0x0!==_0x13897f[_0x509985]?_0x4ab54c['setAttribute'](_0x509985,_0x13897f[_0x509985],_0x9bd3b):_0x4ab54c['removeAttribute'](_0x509985,_0x9bd3b);});}['handleSuggestionDescription'](_0x453ab6){if(_0x453ab6['data'])switch(_0x453ab6['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'](_0x4fdef8,_0x1e1c62){const _0x563512=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4762fd of _0x563512['getSuggestions']({'skipNotAttached':!0x0})){const _0x285231=_0x4762fd['getContainedElement']();if(_0x4762fd['subType']===_0x1e1c62&&_0x285231===_0x4fdef8)return _0x4762fd;}return null;}}const m='$elementName';class p extends _0x468cec{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x365295,_0x3aff86,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x29283c){function _0x25fe39(_0x52279e){return _0x52279e['map'](_0x2492df=>String['fromCharCode'](_0x2492df))['join']('');}super(_0x29283c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x57b39b,_0x21aabc,_0x5857b0,_0x1c1e06)=>{this['_model']['change'](()=>{for(const _0x46395b of[..._0x1c1e06,..._0x5857b0])this['_model']['markers']['has'](_0x46395b)&&_0x29283c['editing']['reconvertMarker'](_0x46395b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x29283c['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(),_0x29283c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29283c['config']['get']('trackChanges.trackFormatChanges'),_0x29283c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29283c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x29283c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x25fe39([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x25fe39([0x34,0x30,0x34,0x38,0x31,0x38,0x30,0x32]);}['init'](){const _0xaf46c8=this['editor'],_0x355d6d=(_0x296b6d,_0x2183df)=>{if('attribute'!=_0x296b6d)return'ck-suggestion-marker-'+_0x296b6d;const _0x1e9609=_0x2183df['split']('|')[0x0];return this['_isBlockAttribute'](_0x1e9609)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xaf46c8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x53dbfb=>{const {id:_0x44a91f,authorId:_0x4c6ff1,type:_0x4d4fe7,subType:_0xa158e}=this['_splitMarkerName'](_0x53dbfb['markerName']),_0x36d089=['ck-suggestion-marker',_0x355d6d(_0x4d4fe7,_0xa158e)];let _0x49f491=0xbb8;return this['activeMarkers']['includes'](_0x53dbfb['markerName'])&&(_0x36d089['push']('ck-suggestion-marker--active'),_0x49f491=0xbc2),'deletion'==_0x4d4fe7&&(_0x49f491+=0x5),{'classes':_0x36d089,'attributes':{'data-suggestion':_0x44a91f,'data-author-id':_0x4c6ff1},'priority':_0x49f491};}}),_0xaf46c8['conversion']['for']('dataDowncast')['add'](_0x8a2b41=>{_0x8a2b41['on']('addMarker:suggestion',(_0x56fcac,_0x125c8a,_0x1043be)=>{if(!_0x1043be['options']['showSuggestionHighlights'])return;const _0x30ecc3=_0x125c8a['item'];if(!_0x30ecc3)return;const _0x19b021=_0x1043be['mapper']['toViewElement'](_0x30ecc3);_0xaf46c8['model']['schema']['isObject'](_0x30ecc3)&&_0x19b021&&!_0x19b021['getCustomProperty']('widget')&&_0x19b021['is']('containerElement')&&_0x187778(_0x19b021,_0x1043be['writer']);},{'priority':'high'});}),_0xaf46c8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x12b621,_0x1783c6)=>{if(!_0x1783c6['options']['showSuggestionHighlights'])return null;const {type:_0x8785d5,subType:_0x14936e}=this['_splitMarkerName'](_0x12b621['markerName']);return{'classes':['ck-suggestion-marker',_0x355d6d(_0x8785d5,_0x14936e)],'priority':0xbb8};}});const _0x50844a=({showActiveMarkers:_0x5d35f7=!0x0,isAttributeSuggestion:_0x50e178=!0x1}={})=>(_0x2a4263,_0x1ae16a,_0x1abf45)=>{if(!_0x1ae16a['item'])return;const {id:_0x112004,authorId:_0x13c7b8}=this['_splitMarkerName'](_0x1ae16a['markerName']);if(_0x50e178){const _0x327a79=this['_suggestions']['get'](_0x112004),_0x16333b=this['_getAttributeKey'](_0x327a79);if(!this['_isBlockAttribute'](_0x16333b))return;}if(_0x1ae16a['item']['is']('selection'))return void _0x1abf45['consumable']['consume'](_0x1ae16a['item'],_0x2a4263['name']);const _0x31d797=_0x1abf45['mapper']['toViewElement'](_0x1ae16a['item']);if(_0x1ae16a['item']['is']('element')&&_0xaf46c8['model']['schema']['isBlock'](_0x1ae16a['item'])&&!_0x31d797['getCustomProperty']('addHighlight')){_0x1abf45['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x31d797),_0x1abf45['writer']['setAttribute']('data-suggestion',_0x112004,_0x31d797),_0x1abf45['writer']['setAttribute']('data-author-id',_0x13c7b8,_0x31d797),_0x1abf45['mapper']['bindElementToMarker'](_0x31d797,_0x1ae16a['markerName']),_0x5d35f7&&(this['activeMarkers']['includes'](_0x1ae16a['markerName'])?_0x1abf45['writer']['addClass']('ck-suggestion-marker--active',_0x31d797):_0x1abf45['writer']['removeClass']('ck-suggestion-marker--active',_0x31d797));for(const _0x5df858 of _0xaf46c8['model']['createRangeIn'](_0x1ae16a['item'])['getItems']())_0x1abf45['consumable']['consume'](_0x5df858,_0x2a4263['name']);_0x1abf45['consumable']['consume'](_0x1ae16a['item'],_0x2a4263['name']);}};_0xaf46c8['conversion']['for']('dataDowncast')['add'](_0x1283ab=>{_0x1283ab['on']('addMarker:suggestion:formatBlock',(_0x30f9f1,_0x6f3588,_0x1f66ef)=>{_0x1f66ef['options']['showSuggestionHighlights']&&_0x50844a({'showActiveMarkers':!0x1})(_0x30f9f1,_0x6f3588,_0x1f66ef);},{'priority':'highest'});}),_0xaf46c8['conversion']['for']('dataDowncast')['add'](_0x46f0b9=>{_0x46f0b9['on']('addMarker:suggestion:attribute',(_0x4a1337,_0x43c1d4,_0x42d081)=>{_0x42d081['options']['showSuggestionHighlights']&&_0x50844a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4a1337,_0x43c1d4,_0x42d081);},{'priority':'highest'});}),_0xaf46c8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x364e2f,_0x4fe382)=>_0x4fe382['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x364e2f['substr'](0xb)}}),_0xaf46c8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x126076,{writer:_0xba2f20})=>{let _0x5ecc1f='suggestion:'+_0x126076['getAttribute']('suggestion-type')+':'+_0x126076['getAttribute']('id');return _0x126076['getAttribute']('marker-count')&&(_0x5ecc1f+=':'+_0x126076['getAttribute']('marker-count')),_0xba2f20['createElement']('$marker',{'data-name':_0x5ecc1f});}}),_0xaf46c8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xaf46c8['conversion']['for']('editingDowncast')['add'](_0x2cb02f=>{_0x2cb02f['on']('addMarker:suggestion:formatBlock',_0x50844a(),{'priority':'high'});}),_0xaf46c8['conversion']['for']('editingDowncast')['add'](_0x1b9bff=>{_0x1b9bff['on']('addMarker:suggestion:attribute',_0x50844a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xaf46c8['conversion']['for']('editingDowncast')['add'](_0x5a6270=>{_0x5a6270['on']('removeMarker:suggestion:formatBlock',(_0x1f0190,_0x31cc4b,_0x5f5014)=>{const _0x13896a=_0x5f5014['mapper']['markerNameToElements'](_0x31cc4b['markerName']);if(_0x13896a){for(const _0x3b818f of _0x13896a)_0x3b818f['getCustomProperty']('addHighlight')||(_0x5f5014['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3b818f),_0x5f5014['writer']['removeAttribute']('data-suggestion',_0x3b818f),_0x5f5014['writer']['removeAttribute']('data-author-id',_0x3b818f),_0x5f5014['mapper']['unbindElementFromMarkerName'](_0x3b818f,_0x31cc4b['markerName']));}},{'priority':'high'});}),_0xaf46c8['conversion']['for']('editingDowncast')['add'](_0x5b2fa5=>{_0x5b2fa5['on']('removeMarker:suggestion:attribute',(_0x20e946,_0x568de9,_0x5a598f)=>{const _0x5f3a75=_0x5a598f['mapper']['markerNameToElements'](_0x568de9['markerName']);if(!_0x5f3a75)return;const {id:_0x2b0157}=this['_splitMarkerName'](_0x568de9['markerName']),_0x1bdcfe=this['_suggestions']['get'](_0x2b0157),_0x3ff38d=this['_getAttributeKey'](_0x1bdcfe);if(this['_isBlockAttribute'](_0x3ff38d)){for(const _0x48f2c5 of _0x5f3a75)_0x48f2c5['getCustomProperty']('addHighlight')||(_0x5a598f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x48f2c5),_0x5a598f['writer']['removeAttribute']('data-suggestion',_0x48f2c5),_0x5a598f['writer']['removeAttribute']('data-author-id',_0x48f2c5),_0x5a598f['mapper']['unbindElementFromMarkerName'](_0x48f2c5,_0x568de9['markerName']));}},{'priority':'high'});}),_0xaf46c8['model']['document']['registerPostFixer'](_0x3b3019=>{let _0x2751d4=!0x1;const _0x39eb33=Array['from'](_0xaf46c8['model']['document']['differ']['getChangedMarkers']()),_0x3623a8=new Set();for(const {name:_0x2c379f,data:_0x137b99}of _0x39eb33){const {group:_0x2bd337,type:_0x4d0a5c,subType:_0x2bb160,id:_0x513d52}=this['_splitMarkerName'](_0x2c379f);if('suggestion'!==_0x2bd337)continue;const _0x3e2d4a=this['_suggestions']['get'](_0x513d52);if(null!=_0x137b99['newRange']){'formatInline'==_0x4d0a5c&&(_0x2751d4=_0x2751d4||Ut(_0x137b99['newRange'],_0x2c379f,_0x3b3019,_0xaf46c8['model']['schema']));const _0x598a89='attribute'==_0x4d0a5c&&this['_isBlockAttribute'](_0x2bb160['split']('|')[0x0]);if(_0x137b99['newRange']['isCollapsed']||'$graveyard'==_0x137b99['newRange']['root']['rootName']||'formatBlock'==_0x4d0a5c&&!Ft(_0x137b99['newRange'])||_0x598a89&&!Ft(_0x137b99['newRange'])||'deletion'==_0x4d0a5c&&!(!Vt(_0x246020=_0x137b99['newRange'])&&!function(_0x2b9591){return _0x2b9591['start']['parent']==_0x2b9591['end']['nodeBefore']&&_0x2b9591['start']['isAtEnd'];}(_0x246020)))_0x3b3019['removeMarker'](_0x2c379f),_0x2751d4=!0x0;else{if(!_0x3e2d4a||!_0x3e2d4a['isInContent'])continue;if(_0x137b99['newRange']&&_0x137b99['oldRange']&&_0x137b99['newRange']['isEqual'](_0x137b99['oldRange']))continue;_0x3623a8['add'](_0x3e2d4a);}}}var _0x246020;return _0x3623a8['size']>0x0&&(_0x2751d4=!!this['_joinWithAdjacentSuggestions'](_0x3623a8)||_0x2751d4),_0x2751d4;}),_0xaf46c8['model']['document']['registerPostFixer'](_0x92f0f2=>{let _0x381bb1=!0x1;for(const _0x562030 of _0xaf46c8['model']['document']['differ']['getChanges']())if('insert'==_0x562030['type'])for(const _0x21c627 of this['_suggestions']['values']()){if(_0x21c627['isMultiRange']||!_0x21c627['isInContent'])continue;const _0x29c93c='formatBlock'==_0x21c627['type'],_0x2bc693=this['_getAttributeKey'](_0x21c627),_0x5b0c0c=_0x2bc693&&this['_isBlockAttribute'](_0x2bc693);if(!_0x29c93c&&!_0x5b0c0c)continue;const _0x1464b6=_0x21c627['getFirstRange']();if(_0x1464b6['start']['parent']!=_0x1464b6['end']['parent']&&!_0x1464b6['end']['isAtEnd']){const _0x18095f=_0xaf46c8['model']['createPositionAt'](_0x1464b6['start']['nodeAfter'],'end'),_0x34cdbf=_0xaf46c8['model']['createRange'](_0x1464b6['start'],_0x18095f);_0x92f0f2['updateMarker'](_0x21c627['getFirstMarker'](),{'range':_0x34cdbf}),_0x381bb1=!0x0;}}return _0x381bb1;}),_0xaf46c8['model']['document']['registerPostFixer'](_0x2e17df=>this['_processAttributeChanges'](_0x2e17df)),_0xaf46c8['model']['document']['registerPostFixer'](_0x268344=>!_0x268344['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x268344)),_0xaf46c8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xaf46c8['model']['document']['on']('change:data',(_0x14a7c9,_0x2a46c7)=>{if(!_0x2a46c7['isLocal']||_0x2a46c7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x119c67=_0xaf46c8['model']['document']['differ']['getChanges']();if(0x0==_0x119c67['length'])return;const _0x4fa127=[],_0x1aa03e=_0x119c67['filter'](_0x64f319=>'attribute'==_0x64f319['type']),_0xc13581=_0x119c67['filter'](_0x5e00a5=>'insert'==_0x5e00a5['type']&&'$text'!=_0x5e00a5['name']);for(const _0x1f4d9c of _0x1aa03e)this['_isRegisteredAttribute'](_0x1f4d9c['attributeKey'])&&_0x4fa127['push']({'key':_0x1f4d9c['attributeKey'],'newValue':_0x1f4d9c['attributeNewValue'],'oldValue':_0x1f4d9c['attributeOldValue'],'range':Pt(_0x1f4d9c['range'],_0xaf46c8['model'])});for(const _0x5a6509 of _0xc13581){if('rename'!=_0x5a6509['action']&&'refresh'!=_0x5a6509['action'])continue;const _0x5ed327=Lt(_0x5a6509['position']['nodeAfter'],_0xaf46c8['model']),_0x3b6540=_0x5a6509['before'];'rename'==_0x5a6509['action']&&_0x4fa127['push']({'key':m,'newValue':_0x5a6509['name'],'oldValue':_0x3b6540['name'],'range':_0x5ed327});for(const [_0xd05646,_0x3f05fd]of _0x3b6540['attributes']){if(!this['_isRegisteredAttribute'](_0xd05646))continue;const _0xedeefa=_0x5a6509['attributes']['get'](_0xd05646);_0x3f05fd!==_0xedeefa&&_0x4fa127['push']({'key':_0xd05646,'newValue':_0xedeefa,'oldValue':_0x3f05fd,'range':_0x5ed327});}for(const [_0x2fc51a,_0x5ba2b2]of _0x5a6509['attributes'])this['_isRegisteredAttribute'](_0x2fc51a)&&(_0x3b6540['attributes']['has'](_0x2fc51a)||_0x4fa127['push']({'key':_0x2fc51a,'newValue':_0x5ba2b2,'oldValue':null,'range':_0x5ed327}));}0x0!=_0x4fa127['length']&&_0xaf46c8['model']['enqueueChange'](_0x2a46c7,_0x5ddd5a=>{const _0x267627=_0x3ddfb4();for(const {range:_0xbf99e0,key:_0x21072e,oldValue:_0x318ed8,newValue:_0x1498c0}of _0x4fa127)this['markAttributeChange'](_0xbf99e0,_0x21072e,_0x318ed8,_0x1498c0,{'groupId':_0x267627});this['_reduceExistingSuggestions'](_0x5ddd5a,_0x4fa127);});},{'priority':'lowest'}),_0xaf46c8['model']['markers']['on']('update:suggestion',(_0x5e98cd,_0x5903ed,_0x3a89c6)=>{if(null==_0x3a89c6){const {id:_0x14bc09}=this['_splitMarkerName'](_0x5903ed['name']),_0x689955=this['_suggestions']['get'](_0x14bc09);_0x689955&&_0x689955['addMarkerName'](_0x5903ed['name']);}}),_0xaf46c8['model']['document']['on']('change:data',()=>{const _0x842632=Array['from'](_0xaf46c8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x12bca1=>'suggestion'===this['_splitMarkerName'](_0x12bca1['name'])['group']);if(0x0===_0x842632['length'])return;_0x842632['sort']((_0x4399b4,_0x267523)=>{const _0x4da3d5=_0x4399b4['data']['oldRange'],_0x537f6a=_0x267523['data']['oldRange'];return null===_0x4da3d5&&null===_0x537f6a?0x0:null===_0x4da3d5&&null!==_0x537f6a?-0x1:null!==_0x4da3d5&&null===_0x537f6a?0x1:_0x4da3d5['start']['isBefore'](_0x537f6a['start'])?-0x1:0x1;});const _0x4770aa=new Set(),_0xfa1e95=new Set();for(const {name:_0x1bd6d7,data:_0x28de66}of _0x842632){const {id:_0x2ec4c9}=this['_splitMarkerName'](_0x1bd6d7);if(null===_0x28de66['oldRange']){const _0x2b5760=this['_handleNewSuggestionMarker'](_0x1bd6d7);_0xfa1e95['add'](_0x2b5760);}else{const _0x33b76c=this['_suggestions']['get'](_0x2ec4c9);null!==_0x28de66['newRange']||_0x33b76c['isInContent']?(_0x4770aa['add'](_0x33b76c['head']),_0xfa1e95['add'](_0x33b76c)):this['_removeSuggestion'](_0x33b76c);}}_0xfa1e95['size']>0x0&&this['_refreshSuggestionsChain'](_0xfa1e95);for(const _0x5defd9 of _0x4770aa)this['fire']('suggestionChanged',_0x5defd9);}),_0xaf46c8['model']['on']('applyOperation',(_0x1908ed,_0x45770b)=>{const _0x5e04c6=_0x45770b[0x0];if(!this['_suggestions']['size'])return;if(!_0x5e04c6['isDocumentOperation'])return;if(_0x5e04c6['batch']['isUndo']||!_0x5e04c6['batch']['isLocal'])return;let _0x119a96,_0xd1e51a;switch(_0x5e04c6['type']){case'insert':_0x119a96=_0xaf46c8['model']['createPositionAt'](_0x5e04c6['position']),_0xd1e51a=_0x119a96['getShiftedBy'](_0x5e04c6['howMany']);break;case'split':_0x119a96=_0xaf46c8['model']['createPositionAt'](_0x5e04c6['splitPosition']),_0xd1e51a=_0xaf46c8['model']['createPositionAt'](_0x5e04c6['moveTargetPosition']);break;case'move':_0x119a96=_0xaf46c8['model']['createPositionAt'](_0x5e04c6['targetPosition']),_0xd1e51a=_0x119a96['getShiftedBy'](_0x5e04c6['howMany']);break;default:return;}const _0x2728b2=_0xaf46c8['model']['createRange'](_0x119a96,_0xd1e51a);_0xaf46c8['model']['change'](()=>{for(const {suggestion:_0x55f18c,meta:_0x55941a}of this['_findSuggestions'](_0x2728b2)){if(_0x55f18c['isMultiRange'])continue;if('formatInline'==_0x55f18c['type'])continue;const _0x5a2513=this['_getAttributeKey'](_0x55f18c);if(_0x5a2513&&this['_isBlockAttribute'](_0x5a2513)&&'split'!=_0x5e04c6['type'])continue;const _0x4b5d61=_0x55f18c['data']&&_0x55f18c['data']['multipleBlocks'];('formatBlock'!=_0x55f18c['type']||'split'==_0x5e04c6['type']&&!_0x4b5d61)&&(_0x55941a['containsRangeInObject']||'insertion'==_0x55f18c['type']&&_0x55941a['isOwn']||_0x55f18c['getFirstRange']()['containsRange'](_0x2728b2)&&this['_breakSuggestionMarker'](_0x55f18c,_0x119a96,_0xd1e51a));}});},{'priority':'lowest'}),_0xaf46c8['model']['on']('deleteContent',(_0x3454dc,_0x10331f)=>{const _0x1a761b=_0x10331f[0x0],_0x1b95ad=_0x10331f[0x1];if(_0x1b95ad&&_0x1b95ad['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1a761b['isCollapsed'])return;const _0x1766bd=_0xaf46c8['model']['schema'],{start:_0x4c58aa,end:_0x2fc447}=_0x1a761b['getFirstRange'](),_0x729fda=_0x4c58aa['nodeAfter']&&_0x1766bd['isLimit'](_0x4c58aa['nodeAfter'])?null:_0x1766bd['getNearestSelectionRange'](_0x4c58aa,'forward'),_0x1a9014=_0x2fc447['nodeBefore']&&_0x1766bd['isLimit'](_0x2fc447['nodeBefore'])?null:_0x1766bd['getNearestSelectionRange'](_0x2fc447,'backward'),_0xa7509=_0xaf46c8['model']['createRange'](_0x729fda?_0x729fda['start']:_0x4c58aa,_0x1a9014?_0x1a9014['end']:_0x2fc447);_0xaf46c8['model']['change'](_0x542fad=>{this['markDeletion'](_0xa7509);const _0xc4e83e=_0xaf46c8['model']['schema']['getNearestSelectionRange'](_0xa7509['start']);_0x1a761b['is']('documentSelection')?_0x542fad['setSelection'](_0xc4e83e):_0x1a761b['setTo'](_0xc4e83e);}),_0x3454dc['stop']();},{'priority':_0x76288f['normal']+0xa}),_0xaf46c8['model']['on']('insertContent',(_0x17fabd,_0x482ea6)=>{const _0xfd0160=_0x482ea6[_0x482ea6['length']-0x1];_0xfd0160&&_0xfd0160['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xaf46c8['model']['change'](()=>{let _0x9fc79=_0xaf46c8['model']['insertContent'](_0x482ea6[0x0],_0x482ea6[0x1],_0x482ea6[0x2],{'forceDefaultExecution':!0x0});if(!_0x9fc79)return;_0x17fabd['return']=_0x9fc79['clone']();const _0x2ece6c=_0x9fc79['end']['nodeBefore'],_0x5680a9=_0xaf46c8['model']['schema'];_0x2ece6c&&_0x5680a9['isBlock'](_0x2ece6c)&&!_0x5680a9['isObject'](_0x2ece6c)&&(_0x9fc79=_0xaf46c8['model']['createRange'](_0x9fc79['start'],_0xaf46c8['model']['createPositionAt'](_0x2ece6c,'end'))),this['markInsertion'](_0x9fc79);}),_0x17fabd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1041cd=new x(_0xaf46c8,this['_suggestions']);_0xaf46c8['commands']['add']('acceptSuggestion',_0x1041cd),this['enableCommand']('acceptSuggestion');const _0x598d18=new R(_0xaf46c8,this['_suggestions']);_0xaf46c8['commands']['add']('discardSuggestion',_0x598d18),this['enableCommand']('discardSuggestion'),_0xaf46c8['commands']['add']('acceptAllSuggestions',new E(_0xaf46c8,_0x1041cd,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xaf46c8['commands']['add']('discardAllSuggestions',new E(_0xaf46c8,_0x598d18,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xaf46c8['commands']['add']('acceptSelectedSuggestions',new O(_0xaf46c8,_0x1041cd,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xaf46c8['commands']['add']('discardSelectedSuggestions',new O(_0xaf46c8,_0x598d18,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5e3080=_0xaf46c8['plugins']['get']('CommentsRepository');this['listenTo'](_0x5e3080,'addComment',(_0x2f90e6,{threadId:_0x5133f5})=>{const _0x48ea9a=this['_suggestions']['get'](_0x5133f5);_0x48ea9a&&_0x48ea9a['commentThread']&&0x1===_0x48ea9a['commentThread']['length']&&this['_updateSuggestionData'](_0x5133f5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5e3080,'removeComment',(_0x1ee2e8,{threadId:_0x38c3e7})=>{const _0x12e7a1=this['_suggestions']['get'](_0x38c3e7);_0x12e7a1&&_0x12e7a1['commentThread']&&!_0x12e7a1['commentThread']['length']&&this['_updateSuggestionData'](_0x38c3e7,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2dabc2){if(this['_adapter'])throw new _0x54de02('track-changes-adapter-already-set',this);this['_adapter']=_0x2dabc2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6a2e2e=!0x1,toJSON:_0x5a0630=!0x1}={}){const _0x258c40=[];for(const _0x4ab60b of this['_suggestions']['values']())_0x6a2e2e&&!_0x4ab60b['isInContent']||_0x258c40['push'](_0x4ab60b);return _0x5a0630?_0x258c40['map'](_0x44a376=>_0x44a376['toJSON']()):_0x258c40;}['getSuggestion'](_0x4c5fde){const _0x4e94c1=this['_suggestions']['get'](_0x4c5fde);if(!_0x4e94c1)throw new _0x54de02('track-changes-suggestion-not-found',this);return _0x4e94c1;}['hasSuggestion'](_0x7199de){return this['_suggestions']['has'](_0x7199de);}['addSuggestionData'](_0x4f8313){const {authorId:_0xc1fb15,id:_0x230fb6,attributes:_0x53619e}=_0x4f8313,[_0x5f4961,_0x1a1bcf]=_0x4f8313['type']['split'](':'),_0x31955d=this['_suggestions']['get'](_0x230fb6)||this['_createSuggestion'](_0x5f4961,_0x1a1bcf,_0x230fb6,_0xc1fb15,_0x53619e);if(this['_addThreadToSuggestion'](_0x31955d),this['_checkSuggestionCorrectness'](_0x31955d,_0x5f4961,_0x1a1bcf||null,_0xc1fb15),_0x31955d['createdAt']=_0x4f8313['createdAt'],_0x31955d['_isDataLoaded']=!0x0,_0x53619e&&_0x53619e['@external']){const _0x2c2266=_0x53619e['@external'],_0x20f76d=this['_getExternalAuthor'](_0x2c2266['authorName']);_0x31955d['authoredAt']=_0x2c2266['createdAt'],_0x31955d['author']=_0x20f76d,_0x31955d['isExternal']=!0x0;}else _0x31955d['authoredAt']=_0x4f8313['createdAt'];switch(_0x4f8313['data']&&(_0x31955d['data']=_0x4f8313['data']),_0x4f8313['attributes']&&(_0x31955d['attributes']=_0x4f8313['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x31955d['_saved']=!0x0),this['_suggestionState']['get'](_0x31955d)){case'notReady':this['_suggestionState']['set'](_0x31955d,'dataReady');break;case'markerReady':_0x31955d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x31955d])),this['_refreshSuggestionsChain'](new Set([_0x31955d])),this['_suggestionState']['set'](_0x31955d,'ready'),this['fire']('suggestionLoaded',_0x31955d)):this['_suggestionState']['set'](_0x31955d,'removed');}return _0x31955d;}['acceptSuggestion'](_0x2c9ce4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x32acff of _0x2c9ce4['getAllAdjacentSuggestions']())_0x32acff['accept']();});});}['discardSuggestion'](_0x49c43a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16d217 of _0x49c43a['getAllAdjacentSuggestions']())_0x16d217['discard']();});});}['enableCommand'](_0xa2d6ca,_0x93a0f4){const _0x161168=this['editor']['commands']['get'](_0xa2d6ca);if(!_0x161168)throw new _0x54de02('track-changes-command-not-found',this,{'commandName':_0xa2d6ca});if(this['_enabledCommands']['has'](_0x161168))throw new _0x54de02('track-changes-enable-command-twice',this,{'commandName':_0xa2d6ca});this['_enabledCommands']['add'](_0x161168),_0x93a0f4&&_0x161168['on']('execute',(_0x420595,_0x224ca8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x224ca8['length']>0x0&&_0x224ca8[_0x224ca8['length']-0x1]&&_0x224ca8[_0x224ca8['length']-0x1]['forceDefaultExecution']?_0x224ca8['pop']():(_0x420595['return']=_0x93a0f4((..._0x44cfc1)=>_0x161168['execute'](..._0x44cfc1,{'forceDefaultExecution':!0x0}),..._0x224ca8),_0x420595['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x19d9e4){let _0x414ac9,_0x42ef88;const _0x22dc93=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x414ac9=_0x19d9e4();}catch(_0x1c391c){_0x42ef88=_0x1c391c;}return _0x22dc93||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x42ef88&&_0x54de02['rethrowUnexpectedError'](_0x42ef88,this),_0x414ac9;}['markInsertion'](_0x3e26e7,_0x3bd9df=null,_0x491fc6={}){if(_0x3e26e7['isCollapsed'])return null;const _0x49e171=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5b76f9,meta:_0x2f99c1}of this['_findSuggestions'](_0x3e26e7,'insertion'))if(_0x2f99c1['isOwn']){if(!_0x2f99c1['isNextTo']){if(_0x2f99c1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5b76f9,_0x491fc6))continue;return _0x5b76f9;}if(qt(_0x5b76f9,_0x491fc6))return _0x5b76f9;this['_breakSuggestionMarker'](_0x5b76f9,_0x3e26e7['start'],_0x3e26e7['end']);break;}if(_0x3bd9df==_0x5b76f9['subType']&&qt(_0x5b76f9,_0x491fc6)){const _0x1595d4=_0x5b76f9['getFirstRange']();return _0x1595d4['start']['isEqual'](_0x3e26e7['end'])?this['_setSuggestionRange'](_0x5b76f9,this['_model']['createRange'](_0x3e26e7['start'],_0x1595d4['end'])):this['_setSuggestionRange'](_0x5b76f9,this['_model']['createRange'](_0x1595d4['start'],_0x3e26e7['end'])),_0x5b76f9;}}const _0x30916=_0x3ddfb4(),_0x3e5a1b=_0x49e171['id'],_0xd59e3d=_0x3bd9df?'insertion:'+_0x3bd9df:'insertion',_0x291579=this['_setSuggestionData']({'id':_0x30916,'type':_0xd59e3d,'createdAt':new Date(),'authorId':_0x3e5a1b,'attributes':_0x491fc6});return this['_addSuggestionMarker'](_0xd59e3d,_0x30916,_0x3e5a1b,_0x3e26e7),_0x291579;}['markMultiRangeInsertion'](_0x41471d,_0x59117b='multi',_0x2d3fa8={}){const _0x14c471=this['editor']['plugins']['get']('Users')['me'],_0x35e25e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x59117b,'join');for(const _0x1ff6a3 of this['getSuggestions']())if(_0x1ff6a3['author']['id']==_0x14c471['id']&&'insertion'==_0x1ff6a3['type']&&_0x1ff6a3['subType']==_0x59117b&&qt(_0x1ff6a3,_0x2d3fa8)&&(_0x35e25e(_0x1ff6a3['getRanges'](),_0x41471d)||_0x35e25e(_0x41471d,_0x1ff6a3['getRanges']()))){for(const _0x3ebae8 of _0x41471d)_0x1ff6a3['addRange'](_0x3ebae8);return _0x1ff6a3;}for(const {suggestion:_0x4b32d7,meta:_0x586359}of this['_findSuggestions'](_0x41471d,'insertion')){if(!_0x586359['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x586359['containsRangeInObject'])continue;if(!qt(_0x4b32d7,_0x2d3fa8))continue;let _0x1fe687=!0x0;for(const _0xbd2feb of _0x4b32d7['getRanges']())for(const _0x23f98e of _0x41471d)if(!_0xbd2feb['containsRange'](_0x23f98e)){_0x1fe687=!0x1;break;}if(_0x1fe687)return _0x4b32d7;}const _0x19e3ed=_0x3ddfb4(),_0x2bfecd=_0x14c471['id'],_0xa4e050='insertion:'+_0x59117b,_0xf06d57=this['_setSuggestionData']({'id':_0x19e3ed,'type':_0xa4e050,'createdAt':new Date(),'authorId':_0x2bfecd,'attributes':_0x2d3fa8});for(const _0x190136 of _0x41471d)this['_addSuggestionMarker'](_0xa4e050,_0x19e3ed,_0x2bfecd,_0x190136,u['getMultiRangeId']());return _0xf06d57;}['markInlineFormat'](_0xb36cc7,_0x865900,_0x22e76a=null,_0xacd022={}){if(_0x22e76a=_0x22e76a||Gt(_0x865900),_0xb36cc7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xf6c25d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x22e76a,'accept');return this['forceDefaultExecution'](()=>_0xf6c25d([_0xb36cc7],_0x865900,_0xacd022)),null;}const _0x15eb9d=this['editor']['plugins']['get']('Users')['me'],_0x55dd3f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4d0d64,meta:_0x1540c2}of this['_findSuggestions'](_0xb36cc7,'insertion'))_0x1540c2['isOwn']&&!_0x1540c2['isInsideObject']&&_0x55dd3f['push'](..._0x4d0d64['getRanges']());}const _0x53da54=function(_0x8d8347,_0x52e8b0){const _0x427bdb=[];for(const _0x4200bc of _0x52e8b0){const _0x5458e2=_0x8d8347['getIntersection'](_0x4200bc);_0x5458e2&&_0x427bdb['push'](_0x5458e2);}return _0x427bdb;}(_0xb36cc7,_0x55dd3f),_0x4b2041=function(_0x432cb4,_0x227cd9){const _0x23c41a=[_0x432cb4];for(const _0x208efb of _0x227cd9){let _0x459a64=0x0;for(;_0x459a64<_0x23c41a['length'];){const _0x2a6d4e=_0x23c41a[_0x459a64]['getDifference'](_0x208efb);_0x23c41a['splice'](_0x459a64,0x1,..._0x2a6d4e),_0x459a64+=_0x2a6d4e['length'];}}return _0x23c41a;}(_0xb36cc7,_0x55dd3f);_0x53da54['length']&&this['_model']['change'](()=>{for(const _0x162c49 of _0x53da54){const _0x1632ef=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x22e76a,'accept');this['forceDefaultExecution'](()=>_0x1632ef([_0x162c49],_0x865900,_0xacd022));}});for(const _0xde6ce9 of _0x4b2041){let _0x171dcd=null,_0x33f52a=_0xde6ce9['start'],_0x4f1d26=_0xde6ce9['end'];for(const {suggestion:_0x6830e5,meta:_0x1318ba}of this['_findSuggestions'](_0xde6ce9,'formatInline')){if(!_0x1318ba['isOwn'])continue;if(_0x6830e5['subType']!=_0x22e76a)continue;if(!qt(_0x6830e5,_0xacd022))continue;const _0x126675=_0x6830e5['getFirstRange']();if(_0x126675['containsRange'](_0xde6ce9,!0x0))return null;_0x33f52a=_0x33f52a['isBefore'](_0x126675['start'])?_0x33f52a:_0x126675['start'],_0x4f1d26=_0x4f1d26['isAfter'](_0x126675['end'])?_0x4f1d26:_0x126675['end'],_0x171dcd?_0x126675['start']['isBefore'](_0x171dcd['getFirstRange']()['start'])?(_0x171dcd['removeMarkers'](),_0x171dcd=_0x6830e5):_0x6830e5['removeMarkers']():_0x171dcd=_0x6830e5;}const _0x1eefc4=this['_model']['createRange'](_0x33f52a,_0x4f1d26);if(_0x171dcd)this['_setSuggestionRange'](_0x171dcd,_0x1eefc4);else{const _0x17eb1f=_0x3ddfb4(),_0x4f2dae=_0x15eb9d['id'];this['_setSuggestionData']({'id':_0x17eb1f,'type':'formatInline:'+_0x22e76a,'data':_0x865900,'createdAt':new Date(),'authorId':_0x4f2dae,'attributes':_0xacd022}),this['_addSuggestionMarker']('formatInline:'+_0x22e76a,_0x17eb1f,_0x4f2dae,_0x1eefc4);}}return null;}['markBlockFormat'](_0x37f06e,_0x33ef18,_0x4ebe0a=[],_0x2684b5=null,_0x1969a9={}){_0x33ef18['formatGroupId']||(_0x33ef18['formatGroupId']=_0x33ef18['commandName']),_0x33ef18['multipleBlocks']=_0x37f06e['is']('range'),_0x2684b5=_0x2684b5||Gt(_0x33ef18);const _0x4d0ff8=_0x4ebe0a['map'](_0x470125=>Lt(_0x470125,this['_model'])),_0x43b102=_0x37f06e['is']('range')?_0x37f06e:Lt(_0x37f06e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5b0deb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2684b5,'accept');return this['forceDefaultExecution'](()=>_0x5b0deb([_0x43b102],_0x33ef18,_0x1969a9)),null;}_0x4d0ff8['push'](_0x43b102);let _0x313880=!0x0;for(const _0x51a5ca of _0x4d0ff8)if(!this['_rangeIsInLocalUserInsertion'](_0x51a5ca)){_0x313880=!0x1;break;}if(_0x313880&&'always'!==this['_trackFormatChanges']){const _0x1b4768=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2684b5,'accept');return this['forceDefaultExecution'](()=>_0x1b4768([_0x43b102],_0x33ef18,_0x1969a9)),null;}let _0x239510=null,_0x16e659=_0x43b102['start'],_0x8661e6=_0x43b102['end'];for(const {suggestion:_0x484972,meta:_0x52cdce}of this['_findSuggestions'](_0x43b102,'formatBlock')){if(!_0x52cdce['isOwn'])continue;if(_0x52cdce['isNextTo']||_0x52cdce['containsRangeInObject']||_0x52cdce['isInsideObject'])continue;if(_0x484972['data']['formatGroupId']!=_0x33ef18['formatGroupId'])continue;if(!qt(_0x484972,_0x1969a9))continue;const _0x5b0eef=_0x484972['getFirstRange']();if(_0x484972['subType']==_0x2684b5){if(_0x5b0eef['containsRange'](_0x43b102,!0x0))return null;_0x16e659=_0x16e659['isBefore'](_0x5b0eef['start'])?_0x16e659:_0x5b0eef['start'],_0x8661e6=_0x8661e6['isAfter'](_0x5b0eef['end'])?_0x8661e6:_0x5b0eef['end'],_0x239510?_0x5b0eef['start']['isBefore'](_0x239510['getFirstRange']()['start'])?(_0x239510['removeMarkers'](),_0x239510=_0x484972):_0x484972['removeMarkers']():_0x239510=_0x484972;}else{const _0x180701=_0x43b102['getIntersection'](_0x5b0eef);this['_cutOutSuggestionMarker'](_0x484972,_0x180701);}}const _0x25e338=this['editor']['plugins']['get']('Users')['me'],_0x5189eb=_0x3ddfb4(),_0x270047=_0x25e338['id'];if(_0x239510)return this['_setSuggestionRange'](_0x239510,this['_model']['createRange'](_0x16e659,_0x8661e6)),_0x239510;{const _0x399556=this['_setSuggestionData']({'id':_0x5189eb,'type':'formatBlock:'+_0x2684b5,'data':_0x33ef18,'createdAt':new Date(),'authorId':_0x270047,'attributes':_0x1969a9});return this['_addSuggestionMarker']('formatBlock:'+_0x2684b5,_0x5189eb,_0x270047,this['_model']['createRange'](_0x16e659,_0x8661e6)),_0x399556;}}['markMultiRangeBlockFormat'](_0x28f464,_0x57b99e,_0xea6b1d=[],_0x2df71c=null,_0x3cf266={}){_0x57b99e['formatGroupId']||(_0x57b99e['formatGroupId']=_0x57b99e['commandName']);const _0x401a6e=_0x28f464[0x0];_0x57b99e['multipleBlocks']=_0x401a6e['is']('range'),_0x2df71c=_0x2df71c||Gt(_0x57b99e);const _0x1721e2=_0xea6b1d['map'](_0x3f368e=>Lt(_0x3f368e,this['_model'])),_0x1a02cb=_0x401a6e['is']('range')?_0x28f464:_0x28f464['map'](_0x1cb638=>Lt(_0x1cb638,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3fa19a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2df71c,'accept');return this['forceDefaultExecution'](()=>_0x3fa19a(_0x1a02cb,_0x57b99e,_0x3cf266)),null;}_0x1721e2['push'](..._0x1a02cb);let _0x278cda=!0x0;for(const _0x446d35 of _0x1721e2)if(!this['_rangeIsInLocalUserInsertion'](_0x446d35)){_0x278cda=!0x1;break;}if(_0x278cda&&'always'!==this['_trackFormatChanges']){const _0xd6e9f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2df71c,'accept');return this['forceDefaultExecution'](()=>_0xd6e9f1(_0x1a02cb,_0x57b99e,_0x3cf266)),null;}const _0x1c56d9=this['editor']['plugins']['get']('Users')['me'];for(const _0x272009 of this['getSuggestions']()){if(_0x272009['author']['id']!=_0x1c56d9['id'])continue;if('formatBlock'!=_0x272009['type']||_0x272009['data']['formatGroupId']!=_0x57b99e['formatGroupId'])continue;if(!qt(_0x272009,_0x3cf266))continue;const _0x5e4c91=_0x272009['subType']==_0x2df71c;for(let _0x4d3994=0x0;_0x4d3994<_0x1a02cb['length'];_0x4d3994++){const _0x2cd220=_0x1a02cb[_0x4d3994];for(const _0x5ec4fd of _0x272009['getMarkers']()){const _0xddc9cf=_0x5ec4fd['getRange']();if(_0x2cd220['isEqual'](_0xddc9cf)){_0x5e4c91?(_0x1a02cb['splice'](_0x4d3994,0x1),_0x4d3994--):_0x272009['removeMarker'](_0x5ec4fd['name']);break;}}}}if(0x0==_0x1a02cb['length'])return null;const _0x574d81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2df71c,'join');for(const _0x48ce8b of this['getSuggestions']())if(_0x48ce8b['author']['id']==_0x1c56d9['id']&&'formatBlock'==_0x48ce8b['type']&&_0x48ce8b['data']['formatGroupId']==_0x57b99e['formatGroupId']&&_0x48ce8b['subType']==_0x2df71c&&qt(_0x48ce8b,_0x3cf266)&&(_0x574d81(_0x48ce8b['getRanges'](),_0x1a02cb)||_0x574d81(_0x1a02cb,_0x48ce8b['getRanges']()))){for(const _0x2ef241 of _0x1a02cb)_0x48ce8b['addRange'](_0x2ef241);return _0x48ce8b;}const _0x15eb83=_0x3ddfb4(),_0xa9111f=_0x1c56d9['id'],_0xc2c463='formatBlock:'+_0x2df71c,_0x32eae6=this['_setSuggestionData']({'id':_0x15eb83,'type':_0xc2c463,'data':_0x57b99e,'createdAt':new Date(),'authorId':_0xa9111f,'attributes':_0x3cf266});for(const _0x171159 of _0x1a02cb)this['_addSuggestionMarker'](_0xc2c463,_0x15eb83,_0xa9111f,_0x171159,u['getMultiRangeId']());return _0x32eae6;}['markDeletion'](_0x367ed2,_0x60fa99=null,_0x563364={}){if(_0x367ed2['isCollapsed'])return null;const _0x2b43d6=this['editor']['plugins']['get']('Users')['me'],_0x99e8d5=new _0x5a0cc1(_0x367ed2['start'],_0x367ed2['end']);for(const {suggestion:_0x34cd44,meta:_0x418cfd}of this['_findSuggestions'](_0x99e8d5,'insertion'))if(_0x418cfd['isOwn']&&!_0x418cfd['isNextTo']){if(_0x34cd44['isMultiRange']){const _0x406357=_0x34cd44['getRanges']()['filter'](_0x3662e1=>'$graveyard'!=_0x3662e1['root']['rootName']);_0x406357['every'](_0x33ba53=>_0x99e8d5['containsRange'](_0x33ba53,!0x0))&&_0x34cd44['discard']();if(_0x406357['some'](_0x1f1fb5=>_0x1f1fb5['containsRange'](_0x99e8d5,!0x0))){const _0x3d4dcf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x60fa99,'accept');return this['forceDefaultExecution'](()=>_0x3d4dcf([_0x99e8d5],null,_0x563364)),null;}}else{const _0x31614b=_0x99e8d5['getIntersection'](_0x34cd44['getFirstRange']());null!==_0x31614b&&_0x34cd44['_onDiscard']([_0x31614b],null,_0x563364);}}if(_0x99e8d5['detach'](),_0x99e8d5['isCollapsed']||'$graveyard'==_0x99e8d5['root']['rootName'])return null;let _0x291ec5=null,_0x4acc66=_0x99e8d5['start'],_0x455a60=_0x99e8d5['end'];const _0x53ab89=this['_findSuggestions'](_0x99e8d5,'deletion');for(const {suggestion:_0x3b0828,meta:_0x115bf8}of _0x53ab89){const _0x22af91=this['_model']['createRange'](_0x4acc66,_0x455a60);if(_0x115bf8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x115bf8['containsRangeInObject']&&!_0x115bf8['isInsideObject'])){if(_0x3b0828['isMultiRange']){if(!qt(_0x3b0828,_0x563364))continue;let _0xc53207=!0x0;for(const _0x46d2b0 of _0x3b0828['getRanges']()){if(_0x46d2b0['containsRange'](_0x22af91,!0x0))return _0x3b0828;_0x22af91['containsRange'](_0x46d2b0)||(_0xc53207=!0x1);}_0xc53207&&_0x3b0828['discard']();}else{const _0x37b5fa=_0x3b0828['getFirstRange']();if(_0x37b5fa['containsRange'](_0x22af91,!0x0))return _0x3b0828;if(!qt(_0x3b0828,_0x563364)){_0x22af91['containsRange'](_0x37b5fa)?_0x3b0828['removeMarkers']():_0x37b5fa['containsPosition'](_0x4acc66)?_0x4acc66=_0x37b5fa['end']:_0x37b5fa['containsPosition'](_0x455a60)&&(_0x455a60=_0x37b5fa['start']);continue;}_0x4acc66=_0x4acc66['isBefore'](_0x37b5fa['start'])?_0x4acc66:_0x37b5fa['start'],_0x455a60=_0x455a60['isAfter'](_0x37b5fa['end'])?_0x455a60:_0x37b5fa['end'],_0x563364=Object['assign']({},_0x3b0828['attributes']),_0x291ec5?_0x37b5fa['start']['isBefore'](_0x291ec5['getFirstRange']()['start'])?(_0x291ec5['removeMarkers'](),_0x291ec5=_0x3b0828):_0x3b0828['removeMarkers']():_0x291ec5=_0x3b0828;}}}if(_0x291ec5)return this['_setSuggestionRange'](_0x291ec5,this['_model']['createRange'](_0x4acc66,_0x455a60)),_0x291ec5;{const _0x5b202e=_0x3ddfb4(),_0xa323fa=this['_model']['createRange'](_0x4acc66,_0x455a60),_0x514b8d=_0x2b43d6['id'],_0x36bcb6=_0x60fa99?'deletion:'+_0x60fa99:'deletion',_0x597752=this['_setSuggestionData']({'id':_0x5b202e,'type':_0x36bcb6,'createdAt':new Date(),'authorId':_0x514b8d,'attributes':_0x563364});return this['_addSuggestionMarker'](_0x36bcb6,_0x5b202e,_0x514b8d,_0xa323fa),_0x597752;}}['markMultiRangeDeletion'](_0x5e0b04,_0x1325c4='multi',_0x1754e1={}){const _0xd98d53=this['editor']['plugins']['get']('Users')['me'],_0x4659f8=_0x5e0b04['map'](_0x17b838=>new _0x5a0cc1(_0x17b838['start'],_0x17b838['end'])),_0x2ce929=new Set();for(const {suggestion:_0x6b4903,meta:_0xa718b1}of this['_findSuggestions'](_0x4659f8,'insertion'))_0xa718b1['isOwn']&&!_0xa718b1['isNextTo']&&_0x2ce929['add'](_0x6b4903);for(const _0x122939 of _0x2ce929)if(_0x122939['isMultiRange']){const _0x240975=_0x122939['getRanges']();(!_0x122939['attributes']||!_0x122939['attributes']['skipNestingCheck'])&&(_0x240975['every'](_0x4291a6=>_0x4659f8['some'](_0x32acdb=>_0x32acdb['containsRange'](_0x4291a6,!0x0)))&&_0x122939['discard']());if(_0x4659f8['every'](_0x56001f=>_0x240975['some'](_0x262980=>_0x262980['containsRange'](_0x56001f,!0x0)))){const _0x427904=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1325c4,'accept');return this['forceDefaultExecution'](()=>_0x427904(_0x5e0b04,null,_0x1754e1)),null;}}else{const _0x3e15a8=_0x122939['getFirstRange']();_0x4659f8['some'](_0x462e0e=>_0x462e0e['containsRange'](_0x3e15a8,!0x0))&&_0x122939['discard']();if(_0x4659f8['every'](_0x5ae33b=>_0x3e15a8['containsRange'](_0x5ae33b,!0x0))){const _0x437e17=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1325c4,'accept');return this['forceDefaultExecution'](()=>_0x437e17(_0x4659f8,null,_0x1754e1)),null;}}const _0x4e8bc7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1325c4,'join');let _0x319909=null;for(const _0x4ccb94 of this['getSuggestions']())if(_0x4ccb94['author']['id']==_0xd98d53['id']&&_0x4ccb94['isInContent']&&'deletion'==_0x4ccb94['type']&&_0x4ccb94['subType']==_0x1325c4&&qt(_0x4ccb94,_0x1754e1)&&(_0x4e8bc7(_0x4ccb94['getRanges'](),_0x4659f8)||_0x4e8bc7(_0x4659f8,_0x4ccb94['getRanges']()))){if(_0x319909){if(_0x4ccb94['commentThread']&&_0x4ccb94['commentThread']['length'])continue;for(const _0x243c07 of _0x4ccb94['getRanges']())_0x319909['isIntersectingWithRange'](_0x243c07)||_0x319909['addRange'](_0x243c07);_0x4ccb94['removeMarkers']();}else{_0x319909=_0x4ccb94;for(const _0x2fe7ba of _0x4659f8)_0x4ccb94['isIntersectingWithRange'](_0x2fe7ba)||_0x4ccb94['addRange'](_0x2fe7ba);}}if(_0x319909)return _0x319909;_0x2ce929['clear']();for(const {suggestion:_0x10e687,meta:_0x2b37f7}of this['_findSuggestions'](_0x4659f8,'deletion'))_0x2b37f7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2b37f7['containsRangeInObject']&&!_0x2b37f7['isInsideObject'])&&qt(_0x10e687,_0x1754e1)&&_0x2ce929['add'](_0x10e687);for(const _0x527adb of _0x2ce929){const _0x978194=_0x527adb['getRanges']();if(!_0x1754e1||!_0x1754e1['skipNestingCheck']){if(_0x4659f8['every'](_0x36e012=>_0x978194['some'](_0x13b42a=>_0x13b42a['containsRange'](_0x36e012,!0x0))))return _0x527adb;}(!_0x527adb['attributes']||!_0x527adb['attributes']['skipNestingCheck'])&&(_0x978194['every'](_0x491e60=>_0x4659f8['some'](_0x29c664=>_0x29c664['containsRange'](_0x491e60,!0x0)))&&_0x527adb['discard']());}const _0x4016d5=_0x3ddfb4(),_0x19c656=_0xd98d53['id'],_0x4d1abc='deletion:'+_0x1325c4,_0x8b6c56=this['_setSuggestionData']({'id':_0x4016d5,'type':_0x4d1abc,'createdAt':new Date(),'authorId':_0x19c656,'attributes':_0x1754e1});for(const _0x37d5f3 of _0x4659f8)_0x37d5f3['detach'](),_0x37d5f3['isCollapsed']||'$graveyard'==_0x37d5f3['root']['rootName']||this['_addSuggestionMarker'](_0x4d1abc,_0x4016d5,_0x19c656,_0x37d5f3,u['getMultiRangeId']());return _0x8b6c56;}['markAttributeChange'](_0xe093d2,_0x506ce9,_0x581c3a,_0x380210,_0x226218){if(_0xe093d2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3a9343=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e490a=Array['from'](this['_suggestions']['values']())['filter'](_0xa704b8=>'attribute'==_0xa704b8['type']&&_0xa704b8['data']['key']==_0x506ce9&&_0xa704b8['isIntersectingWithRange'](_0xe093d2));if('default'===this['_trackFormatChanges']){const _0x37a660=this['_findSuggestions'](_0xe093d2,'insertion')['filter'](({meta:_0x241214})=>_0x241214['isOwn']&&!_0x241214['isInsideObject']&&!_0x241214['isNextTo'])['map'](({suggestion:_0x2bee71})=>_0x2bee71);_0x1e490a['unshift'](..._0x37a660);}const _0x960aa5=new Map([[_0xe093d2,_0x581c3a]]);for(const _0xa6f07b of _0x1e490a){const _0x3d6400='attribute'==_0xa6f07b['type']?_0xa6f07b['data']['oldValue']:void 0x0,_0x1bcbfb=_0xa6f07b['getFirstRange'](),_0x537663=Array['from'](_0x960aa5['keys']())['find'](_0x39747c=>_0x39747c['isIntersecting'](_0x1bcbfb));if(!_0x537663)continue;const _0x1659a4=_0x537663['getDifference'](_0x1bcbfb);this['_isBlockAttribute'](_0x506ce9)&&'insertion'==_0xa6f07b['type']&&0x0!=_0x1659a4['length']||(_0x960aa5['delete'](_0x537663),_0x1659a4['forEach'](_0x4e5b9e=>{_0x960aa5['set'](_0x4e5b9e,_0x581c3a);}),'insertion'!=_0xa6f07b['type']&&_0x3d6400!=_0x380210&&_0x960aa5['set'](_0x537663['getIntersection'](_0x1bcbfb),_0x3d6400));}const _0x2a990a=[];for(const [_0x579af1,_0x2a99c7]of _0x960aa5){const _0x50f786=_0x3ddfb4(),_0xbc3304={'key':_0x506ce9,'oldValue':_0x2a99c7,'newValue':_0x380210};_0x506ce9['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':_0x506ce9});const _0x407b35=('attribute:'+(_0x506ce9+'|'+Gt({'newValue':_0x380210})))['substring'](0x0,0x3c),_0x141242=this['_setSuggestionData']({'id':_0x50f786,'type':_0x407b35,'data':_0xbc3304,'createdAt':new Date(),'authorId':_0x3a9343,'attributes':_0x226218});_0x2a990a['push'](_0x141242),this['_addSuggestionMarker'](_0x407b35,_0x50f786,_0x3a9343,_0x579af1);}return _0x2a990a;}['enableDefaultAttributesIntegration'](_0x3a9019){this['enableCommand'](_0x3a9019,(_0x3b8eb9,..._0x102cb4)=>{this['_recordAttributeChanges'](()=>{_0x3b8eb9(..._0x102cb4);});});}['registerBlockAttribute'](_0x3da49d){this['_blockAttributeKeys']['add'](_0x3da49d);}['registerInlineAttribute'](_0x481638){this['_inlineAttributeKeys']['add'](_0x481638);}['_getAttributeKey'](_0x1d4ca6){return'attribute'==_0x1d4ca6['type']?_0x1d4ca6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x32eac6,_0x3c375b){const _0x228fd1=_0x32eac6['getFirstMarker']();this['_model']['change'](_0x39a824=>{_0x39a824['updateMarker'](_0x228fd1,{'range':_0x3c375b});});}['_addThreadToSuggestion'](_0x577965){const _0x10bf93=_0x577965['id'],_0x82b15a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x10bf93)||this['_commentsRepository']['addCommentThread']({'channelId':_0x82b15a,'threadId':_0x10bf93,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c838b=this['_commentsRepository']['getCommentThread'](_0x10bf93);_0x2c838b['unbind']('isRemovable'),_0x2c838b['isRemovable']=!0x1,_0x577965['commentThread']=_0x2c838b;}['_checkSuggestionCorrectness'](_0x3d16b2,_0x586185,_0xdad319,_0x237c60){if(_0x3d16b2['type']!=_0x586185||_0x3d16b2['subType']!=_0xdad319||_0x3d16b2['creator']['id']!=_0x237c60)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x54de02('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1bd014,_0x55ebc4){const _0x386076=_0x1bd014['getFirstRange']();if(_0x55ebc4['isEqual'](_0x386076))_0x1bd014['removeMarkers']();else{if(_0x386076['containsRange'](_0x55ebc4)){const _0x1495e0=this['_model']['createPositionAt'](_0x55ebc4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1bd014,this['_model']['createRange'](_0x386076['start'],_0x1495e0));const _0x56ba5e=_0x3ddfb4(),_0x24a610=_0x1bd014['creator']['id'],_0x325877=_0x1bd014['type']+':'+_0x1bd014['subType'];this['_setSuggestionData']({'id':_0x56ba5e,'type':_0x325877,'createdAt':new Date(),'authorId':_0x24a610,'data':_0x1bd014['data'],'attributes':_0x1bd014['attributes']});const _0x22dc98=this['_model']['createPositionAt'](_0x55ebc4['end']['parent'],'after'),_0x58af11=this['_model']['createRange'](_0x22dc98,_0x386076['end']);this['_addSuggestionMarker'](_0x325877,_0x56ba5e,_0x24a610,_0x58af11);}else{if(_0x386076['containsPosition'](_0x55ebc4['start'])){const _0xe1d0bd=this['_model']['createPositionAt'](_0x55ebc4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1bd014,this['_model']['createRange'](_0x386076['start'],_0xe1d0bd));}else{const _0x1ec0c4=this['_model']['createPositionAt'](_0x55ebc4['end']['parent'],'after');this['_setSuggestionRange'](_0x1bd014,this['_model']['createRange'](_0x1ec0c4,_0x386076['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x245ba8){for(const {suggestion:_0x2daeef,meta:_0x10844d}of this['_findSuggestions'](_0x245ba8,'insertion')){if(!_0x10844d['isOwn'])continue;const _0x31c569=_0x2daeef['getRanges']();for(const _0x2195be of _0x31c569)if(!_0x245ba8['getDifference'](_0x2195be)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xe7c4fb){const _0xd070d=this['editor']['plugins']['get']('Users')['getUser'](_0xe7c4fb);if(!_0xd070d)throw new _0x54de02('track-changes-user-not-found',this);return _0xd070d;}['_getExternalAuthor'](_0x2759ed){const _0x4b89f3=this['editor']['plugins']['get']('Users'),_0x4d3410=_0x1e1f8c('external:'+_0x2759ed),_0x124951=_0x4b89f3['getUser'](_0x4d3410);return _0x124951||_0x4b89f3['addUser']({'id':_0x4d3410,'name':_0x2759ed});}['_createSuggestion'](_0x396a6b,_0x1b5796,_0xd72ab,_0x581c5c,_0x59df3f){const _0x36d43e=this['_getAuthorFromId'](_0x581c5c),_0x2461c6=this['_suggestionFactory']['buildSuggestion'](_0x396a6b,_0x1b5796,_0xd72ab,_0x36d43e,_0x59df3f,_0x219abb=>{this['_updateSuggestionData'](_0xd72ab,{'attributes':_0x219abb});const _0x1fe9a7=this['getSuggestion'](_0xd72ab);this['_joinWithAdjacentSuggestions'](new Set([_0x1fe9a7])),this['_refreshSuggestionsChain'](new Set([_0x1fe9a7]));});return this['listenTo'](_0x2461c6,'accept',()=>{this['_updateSuggestionData'](_0xd72ab,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2461c6,'discard',()=>{this['_updateSuggestionData'](_0xd72ab,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xd72ab,_0x2461c6),this['_suggestionState']['set'](_0x2461c6,'notReady'),_0x2461c6;}['_splitMarkerName'](_0x4f66ce){const _0x5eba86=_0x4f66ce['split'](':');return{'group':_0x5eba86[0x0],'type':_0x5eba86[0x1],'subType':_0x5eba86['length']>=0x5?_0x5eba86[0x2]:null,'id':_0x5eba86['length']<0x5?_0x5eba86[0x2]:_0x5eba86[0x3],'authorId':_0x5eba86['length']<0x5?_0x5eba86[0x3]:_0x5eba86[0x4],'markerCount':0x6==_0x5eba86['length']?_0x5eba86[0x5]:null};}['_breakSuggestionMarker'](_0xb33035,_0xbe5c77,_0x50d4f0){const _0x11d2ec=_0xb33035['getFirstRange'](),_0x16d98b=_0x11d2ec['start'],_0x4431a0=_0x11d2ec['end'];this['_setSuggestionRange'](_0xb33035,this['_model']['createRange'](_0x16d98b,_0xbe5c77));const _0x40a503=_0x3ddfb4(),_0x34dd61=_0xb33035['creator']['id'],_0x4e0089=_0xb33035['type']+(_0xb33035['subType']?':'+_0xb33035['subType']:'');this['_setSuggestionData']({'id':_0x40a503,'type':_0x4e0089,'createdAt':new Date(),'authorId':_0x34dd61,'originalSuggestionId':_0xb33035['id'],'attributes':_0xb33035['attributes'],'data':_0xb33035['data']});const _0xefe28=this['_getAttributeKey'](_0xb33035);('formatBlock'==_0xb33035['type']||_0xefe28&&this['_isBlockAttribute'](_0xefe28))&&(_0x50d4f0=this['_model']['createPositionBefore'](_0x50d4f0['parent'])),this['_addSuggestionMarker'](_0x4e0089,_0x40a503,_0x34dd61,this['_model']['createRange'](_0x50d4f0,_0x4431a0));}['_findSuggestions'](_0x38c415,_0x51f43e=null){const _0x312299=[],_0x5f3831=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x38c415)||(_0x38c415=[_0x38c415]);for(const _0x50ec75 of this['getSuggestions']()){if(!_0x50ec75['isInContent'])continue;if(_0x51f43e&&_0x50ec75['type']!=_0x51f43e)continue;let _0x6efe98=!0x1;for(const _0x4560af of _0x50ec75['getRanges']()){for(const _0x48b08e of _0x38c415){const _0x52fc0b=_0x48b08e['start']['isEqual'](_0x4560af['end'])||_0x48b08e['end']['isEqual'](_0x4560af['start']);if(_0x52fc0b||_0x48b08e['getIntersection'](_0x4560af)){const _0x4831c2=_0x48b08e['containsRange'](_0x4560af)&&Ot(this['_model']['schema'],_0x4560af['start'],_0x48b08e),_0x3ab2aa=_0x4560af['containsRange'](_0x48b08e)&&Ot(this['_model']['schema'],_0x48b08e['start'],_0x4560af);_0x312299['push']({'suggestion':_0x50ec75,'meta':{'isOwn':_0x5f3831==_0x50ec75['author'],'isNextTo':_0x52fc0b,'isInsideObject':_0x4831c2,'containsRangeInObject':_0x3ab2aa}}),_0x6efe98=!0x0;break;}}if(_0x6efe98)break;}}return _0x312299;}['_addSuggestionMarker'](_0xf2aba8,_0xf85933,_0x26df15,_0x50e128,_0x5cfbf5){this['_model']['change'](_0x1e7c25=>{let _0x296449='suggestion:'+_0xf2aba8+':'+_0xf85933+':'+_0x26df15;_0x5cfbf5&&(_0x296449=_0x296449+':'+_0x5cfbf5),_0x1e7c25['addMarker'](_0x296449,{'range':_0x50e128,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x64f7be){const _0x54ec99=_0x64f7be['previous'],_0x1ba74d=_0x64f7be['next'];_0x64f7be['previous']=null,_0x64f7be['next']=null,null!=_0x54ec99&&_0x54ec99['next']==_0x64f7be&&(_0x54ec99['next']=_0x1ba74d),null!=_0x1ba74d&&_0x1ba74d['previous']==_0x64f7be&&(_0x1ba74d['previous']=_0x54ec99),'ready'==this['_suggestionState']['get'](_0x64f7be)&&(this['_suggestionState']['set'](_0x64f7be,'removed'),this['fire']('suggestionUnloaded',_0x64f7be,_0x54ec99,_0x1ba74d));}['_setSuggestionData'](_0x11b5ff){const _0xeecf77=_0x11b5ff['id'],_0x3e0c4a=this['addSuggestionData'](_0x11b5ff);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x24d7fa=this['editor']['plugins']['get']('PendingActions'),_0x38e94c=_0x3e0c4a['hasComments'],_0x2f7ed0=_0x3e0c4a['subType']?_0x3e0c4a['type']+':'+_0x3e0c4a['subType']:_0x3e0c4a['type'],_0x30622c=this['editor']['locale'],_0x2e79e2=_0x24d7fa['add'](o(_0x30622c,'PENDING_ACTION_SUGGESTION')),_0x458c30={'id':_0xeecf77,'type':_0x2f7ed0,'hasComments':_0x38e94c,'data':_0x11b5ff['data']||null,'originalSuggestionId':_0x11b5ff['originalSuggestionId']||null,'attributes':_0x3e0c4a['attributes']};this['_adapter']['addSuggestion'](_0x458c30)['then'](_0x140564=>{_0x3e0c4a['_saved']=!0x0,_0x24d7fa['remove'](_0x2e79e2),_0x140564&&_0x140564['createdAt']&&(this['_suggestions']['get'](_0xeecf77)['createdAt']=_0x140564['createdAt']);})['catch'](_0x5603a6=>{throw _0x2fc8b6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3e0c4a['discard']();}),_0x3e0c4a['stopListening'](),this['_suggestions']['delete'](_0x3e0c4a['id']),this['_suggestionState']['delete'](_0x3e0c4a),_0x5603a6;});}return _0x3e0c4a;}['_isBlockAttribute'](_0x4af04e){return this['_blockAttributeKeys']['has'](_0x4af04e);}['_updateSuggestionData'](_0x5bdab5,_0xd0709b){const _0x40ea63=this['editor']['plugins']['get']('PendingActions'),_0x44fa15=this['getSuggestion'](_0x5bdab5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x44fa15['_saved']){const _0x5ab9f1=_0x40ea63['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5bdab5,_0xd0709b)['then'](()=>{_0x40ea63['remove'](_0x5ab9f1);});}else _0x44fa15['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5bdab5,_0xd0709b);});}}['_getSuggestionData'](_0x33a84a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x54de02('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x33a84a);}['_handleNewSuggestionMarker'](_0x32e9a5){const {id:_0x16decd,type:_0x13bc31,subType:_0xab7736,authorId:_0xa725bf}=this['_splitMarkerName'](_0x32e9a5),_0x253fa1=this['_suggestions']['get'](_0x16decd)||this['_createSuggestion'](_0x13bc31,_0xab7736,_0x16decd,_0xa725bf,{});switch(this['_checkSuggestionCorrectness'](_0x253fa1,_0x13bc31,_0xab7736,_0xa725bf),this['_suggestionState']['get'](_0x253fa1)){case'notReady':this['_getSuggestionData'](_0x16decd)['then'](_0x420b7f=>{let _0x522f88=Promise['resolve']();_0x420b7f['hasComments']&&(_0x522f88=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x16decd})),_0x522f88['then'](()=>{this['addSuggestionData'](_0x420b7f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x253fa1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x16decd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x253fa1,'ready'),this['fire']('suggestionLoaded',_0x253fa1);break;case'ready':this['fire']('suggestionChanged',_0x253fa1);}return _0x253fa1['addMarkerName'](_0x32e9a5),_0x253fa1;}['_refreshSuggestionsChain'](_0x51d0b4){const _0x37c9da=Array['from'](_0x51d0b4),_0x1eb461=_0x37c9da['filter'](_0x3f3711=>'attribute'==_0x3f3711['type']);this['_refreshAttributeSuggestionsChain'](_0x1eb461);const _0x4e42f6=_0x37c9da['filter'](_0x29bdea=>!_0x29bdea['isMultiRange']&&'attribute'!=_0x29bdea['type']),_0x3ebbe6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x460b18=>!_0x460b18['isMultiRange']&&'attribute'!=_0x460b18['type']),_0x2c7826=_0x3ebbe6['filter'](_0x11bd08=>!_0x51d0b4['has'](_0x11bd08)),_0x24ed67=new Map(_0x3ebbe6['map'](_0x17341d=>[_0x17341d,this['_suggestionFactory']['getSuggestionCallback'](_0x17341d['type'],_0x17341d['subType'],'chain')])),_0xdfe191=new Map(_0x3ebbe6['map'](_0x18aaf3=>[_0x18aaf3,_0x18aaf3['getFirstRange']()])),_0x32eb37=new Set(),_0x263d69=new Set();for(let _0x14584e=0x0;_0x14584e<_0x4e42f6['length'];_0x14584e++)_0xa32900(_0x4e42f6[_0x14584e],_0x4e42f6,_0x14584e+0x1);for(let _0x462592=0x0;_0x462592<_0x4e42f6['length'];_0x462592++)_0xa32900(_0x4e42f6[_0x462592],_0x2c7826,0x0);const _0x7bb42f=new Set();for(let _0x4dc2e2=0x0;_0x4dc2e2<_0x4e42f6['length'];_0x4dc2e2++){const _0x50dc49=_0x4e42f6[_0x4dc2e2];!_0x263d69['has'](_0x50dc49)&&_0x50dc49['previous']&&(_0x7bb42f['add'](_0x50dc49['previous']),_0x50dc49['previous']['next']===_0x50dc49&&(_0x50dc49['previous']['next']=null),_0x50dc49['previous']=null),!_0x32eb37['has'](_0x50dc49)&&_0x50dc49['next']&&(_0x7bb42f['add'](_0x50dc49['next']),_0x50dc49['next']['previous']===_0x50dc49&&(_0x50dc49['next']['previous']=null),_0x50dc49['next']=null);}function _0xa32900(_0x3df9f9,_0x1c3000,_0x19159c){for(let _0x2e5205=_0x19159c;_0x2e5205<_0x1c3000['length'];_0x2e5205++){const _0x28d842=_0x13ed1a(_0x3df9f9,_0x1c3000[_0x2e5205]);_0x28d842&&(_0x28d842[0x0]['next']=_0x28d842[0x1],_0x28d842[0x1]['previous']=_0x28d842[0x0],_0x32eb37['add'](_0x28d842[0x0]),_0x263d69['add'](_0x28d842[0x1]));}}function _0x13ed1a(_0x466b1e,_0x5e09f0){if(_0x466b1e['author']['id']!==_0x5e09f0['author']['id'])return null;const _0x514a28=_0x24ed67['get'](_0x466b1e)(_0x466b1e,_0x5e09f0,_0xdfe191['get'](_0x466b1e),_0xdfe191['get'](_0x5e09f0));if(!_0x514a28)return null;return _0x24ed67['get'](_0x5e09f0)(_0x466b1e,_0x5e09f0,_0xdfe191['get'](_0x466b1e),_0xdfe191['get'](_0x5e09f0))?_0x514a28[0x1]['commentThread']&&_0x514a28[0x1]['commentThread']['length']?null:_0x514a28:null;}_0x7bb42f['size']&&this['_refreshSuggestionsChain'](_0x7bb42f);}['_refreshAttributeSuggestionsChain'](_0x42167f){if(0x0==_0x42167f['length'])return;const _0x1e0472=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41b0a0=>'attribute'==_0x41b0a0['type']&&_0x41b0a0['_isDataLoaded']),_0x10c82b=[],_0x16ddc2=new Map();for(const _0x47e183 of _0x1e0472){const _0x14f618=_0x1e1f8c(_0x47e183['attributes']);_0x16ddc2['has'](_0x14f618)||(_0x16ddc2['set'](_0x14f618,_0x10c82b['length']),_0x10c82b['push']([]));const _0x7b013e=_0x16ddc2['get'](_0x14f618);_0x10c82b[_0x7b013e]['push'](_0x47e183);}!(function(){_0x10c82b['sort']((_0x3e8181,_0x59bdac)=>{const _0x41d8b1=_0x3e8181[0x0]['createdAt'],_0xb1237d=_0x59bdac[0x0]['createdAt'];return _0x41d8b1==_0xb1237d?_0x3e8181[0x0]['attributes']['groupId']<_0x59bdac[0x0]['attributes']['groupId']?-0x1:0x1:_0x41d8b1<_0xb1237d?-0x1:0x1;});for(const _0x1b1ca9 of _0x10c82b)_0x1b1ca9['sort']((_0x42bde8,_0x16adad)=>_0x42bde8['id']<_0x16adad['id']?-0x1:0x1);}());for(let _0x7f3354=0x0;_0x7f3354<_0x10c82b['length'];_0x7f3354++){if(0x0==_0x10c82b[_0x7f3354]['length'])continue;const _0x178a1d=[];for(let _0x1c862b=_0x7f3354+0x1;_0x1c862b<_0x10c82b['length'];_0x1c862b++)0x0!=_0x10c82b[_0x1c862b]['length']&&_0x2dcd6a(_0x10c82b[_0x7f3354],_0x10c82b[_0x1c862b])&&_0x178a1d['push'](_0x1c862b);for(const _0x314e5b of _0x178a1d)_0x10c82b[_0x7f3354]=_0x10c82b[_0x7f3354]['concat'](_0x10c82b[_0x314e5b]),_0x10c82b[_0x314e5b]=[];}for(const _0x3c7758 of _0x10c82b)for(let _0x1e31fe=0x0;_0x1e31fe<_0x3c7758['length'];_0x1e31fe++){const _0x40db55=_0x3c7758[_0x1e31fe+0x1]||null;_0x3c7758[_0x1e31fe]['next']!==_0x40db55&&(_0x3c7758[_0x1e31fe]['next']=_0x40db55);}for(const _0x981595 of _0x10c82b)for(let _0x4ac552=0x0;_0x4ac552<_0x981595['length'];_0x4ac552++){const _0x180572=_0x981595[_0x4ac552-0x1]||null;_0x981595[_0x4ac552]['previous']!==_0x180572&&(_0x981595[_0x4ac552]['previous']=_0x180572);}function _0x2dcd6a(_0x2f5f72,_0x386404){if(_0x2f5f72[0x0]['attributes']['groupId']!==_0x386404[0x0]['attributes']['groupId']&&_0x2f5f72[0x0]['author']!==_0x386404[0x0]['author'])return!0x1;if(!function(_0x3c0512,_0x3a252e){if(!_0x3c0512['hasComments']&&!_0x3a252e['hasComments'])return!0x0;if(_0x3c0512['hasComments']&&_0x3a252e['hasComments'])return!0x1;if(_0x3c0512['hasComments']&&_0x3a252e['createdAt']<_0x3c0512['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3a252e['hasComments']&&_0x3c0512['createdAt']<_0x3a252e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2f5f72[0x0],_0x386404[0x0]))return!0x1;const _0x563c05=Tt(_0x2f5f72[0x0]['attributes'],'groupId'),_0x20abe4=Tt(_0x386404[0x0]['attributes'],'groupId');if(!_0x4118e1(_0x563c05,_0x20abe4))return!0x1;return!!_0x2f5f72['every'](_0x45e860=>_0x386404['some'](_0x2bdbbf=>_0x45e860['getFirstRange']()['isEqual'](_0x2bdbbf['getFirstRange']())))&&_0x386404['every'](_0x4c7979=>_0x2f5f72['some'](_0x5a9d2d=>_0x4c7979['getFirstRange']()['isEqual'](_0x5a9d2d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x495690){const _0x55fdae=Array['from'](_0x495690),_0x42db9a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2c9c57=_0x42db9a['filter'](_0x330b8e=>!_0x495690['has'](_0x330b8e)),_0x1dea1e=new Map(_0x55fdae['map'](_0xad6506=>[_0xad6506,this['_suggestionFactory']['getSuggestionCallback'](_0xad6506['type'],_0xad6506['subType'],'join')])),_0x4d6de6=new Map(_0x42db9a['map'](_0x5af8cf=>[_0x5af8cf,_0x5af8cf['getRanges']()]));for(let _0x2488b2=0x0;_0x2488b2<_0x55fdae['length'];_0x2488b2++){if(_0x3912d8(this,_0x55fdae[_0x2488b2],_0x55fdae,_0x2488b2+0x1))return!0x0;}for(let _0x553a11=0x0;_0x553a11<_0x55fdae['length'];_0x553a11++){if(_0x3912d8(this,_0x55fdae[_0x553a11],_0x2c9c57,0x0))return!0x0;}return!0x1;function _0x3912d8(_0x5d39b0,_0x3935ac,_0x55c48b,_0x53ca5a){for(let _0x69760b=_0x53ca5a;_0x69760b<_0x55c48b['length'];_0x69760b++){const _0x382b91=_0x55c48b[_0x69760b];if(_0x382b91['type']!==_0x3935ac['type']||_0x382b91['author']['id']!==_0x3935ac['author']['id']||_0x382b91['subType']!==_0x3935ac['subType'])continue;if(!Jt(_0x3935ac,_0x382b91))continue;if('attribute'==_0x3935ac['type']&&_0x3935ac['data']['oldValue']!=_0x382b91['data']['oldValue'])continue;if('attribute'==_0x3935ac['type']&&_0x5d39b0['_isBlockAttribute'](_0x3935ac['data']['key']))continue;if('formatBlock'==_0x3935ac['type']){const _0x1e97bf=_0x5d39b0['editor']['model'],_0x366ced=_0x3935ac['getContainedElement']();if(_0x366ced&&(_0x1e97bf['schema']['isObject'](_0x366ced)||_0x1e97bf['schema']['isLimit'](_0x366ced)))continue;}const _0x36ce7d=_0x1dea1e['get'](_0x3935ac),_0x1eedce=_0x4d6de6['get'](_0x3935ac),_0xf10238=_0x4d6de6['get'](_0x382b91),_0x49290d=_0x3935ac['commentThread']&&_0x3935ac['commentThread']['length'],_0x340588=_0x382b91['commentThread']&&_0x382b91['commentThread']['length'];if(!_0x49290d&&_0x36ce7d(_0xf10238,_0x1eedce))return _0x5d39b0['_joinSuggestions'](_0x382b91,_0x3935ac),_0x4d6de6['delete'](_0x3935ac),!0x0;if(!_0x340588&&_0x36ce7d(_0x1eedce,_0xf10238))return _0x5d39b0['_joinSuggestions'](_0x3935ac,_0x382b91),_0x4d6de6['delete'](_0x382b91),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2d46e8,_0x196d3){if(_0x2d46e8['isMultiRange']){for(const _0x103037 of _0x196d3['getRanges']())_0x2d46e8['addRange'](_0x103037);}else{const _0xd73fd7=_0x196d3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2d46e8,this['_model']['createRange'](_0x2d46e8['getFirstRange']()['start'],_0xd73fd7));}_0x196d3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x44f8eb,_0x4e7b7a,_0x2a7918){const _0xe6c103=_0x44f8eb['startsWith']('format')||_0x44f8eb['startsWith']('attribute')?'FORMATTING':_0x44f8eb['toUpperCase']();return o(this['editor']['locale'],_0x4e7b7a+'_'+_0xe6c103+'_SUGGESTION_ANNOUNCEMENT',_0x2a7918);}['_initAriaMarkerChangeAnnouncements'](){const _0xceb22c=this['editor'];if(!_0xceb22c['ui'])return;const {ariaLiveAnnouncer:_0x1e55da}=_0xceb22c['ui'];_0x2f112c(this['_model'],({left:_0x574344,entered:_0x3d73ea})=>{for(const _0x366150 of _0x574344){const {group:_0x3d26a0,type:_0x3c827a}=this['_splitMarkerName'](_0x366150['name']);if('suggestion'===_0x3d26a0){_0x1e55da['announce'](this['_getMarkerAnnouncementText'](_0x3c827a,'LEAVE'));break;}}for(const _0x1b7a29 of _0x3d73ea){const {group:_0x49425d,type:_0x4485a2}=this['_splitMarkerName'](_0x1b7a29['name']);if('suggestion'===_0x49425d){_0x1e55da['announce'](this['_getMarkerAnnouncementText'](_0x4485a2,'ENTER',_0x58fcd4(_0x5f0def)));break;}}});}['_processAttributeChanges'](_0x269940){if(this['_recordAttributeSuggestions'])return!0x1;const _0x531a37=this['editor'],_0x47ef79=_0x531a37['model']['document']['differ']['getChanges']();if(0x0==_0x47ef79['length'])return!0x1;const _0xbf327c=[],_0x15de74=_0x47ef79['filter'](_0x20fa86=>'attribute'==_0x20fa86['type']),_0x4d7b84=_0x47ef79['filter'](_0x325d64=>'insert'==_0x325d64['type']&&'$text'!=_0x325d64['name']),_0x38ba7a=_0x47ef79['filter'](_0x83708f=>'remove'==_0x83708f['type']&&'$text'!=_0x83708f['name']);for(const _0x268eb1 of _0x15de74)_0xbf327c['push']({'key':_0x268eb1['attributeKey'],'newValue':_0x268eb1['attributeNewValue'],'oldValue':_0x268eb1['attributeOldValue'],'range':Pt(_0x268eb1['range'],_0x531a37['model'])});for(const _0x530f27 of _0x4d7b84){const _0x27386f=_0x38ba7a['find'](_0xeda8b7=>_0xeda8b7['position']['isEqual'](_0x530f27['position']));_0x27386f&&_0xbf327c['push']({'key':m,'newValue':_0x530f27['name'],'oldValue':_0x27386f['name'],'range':_0x531a37['model']['createRangeOn'](_0x530f27['position']['nodeAfter'])});}return 0x0!=_0xbf327c['length']&&this['_reduceExistingSuggestions'](_0x269940,_0xbf327c);}['_processAttributeSuggestions'](_0x3a27c6){let _0x7d8e1f=!0x1;const _0x3c577b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3cd8b4=>_0x3cd8b4['data']['newRange']&&_0x3cd8b4['name']['startsWith']('suggestion:attribute:'));for(const _0x3f63e4 of _0x3c577b){const {subType:_0x535da7,id:_0x3f95cd}=this['_splitMarkerName'](_0x3f63e4['name']),_0x54023c=_0x535da7['split']('|')[0x0];for(const _0x2155a6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2155a6['id']!=_0x3f95cd&&'attribute'==_0x2155a6['type']&&_0x2155a6['data']&&_0x2155a6['data']['key']==_0x54023c&&_0x2155a6['getFirstRange']()['isIntersecting'](_0x3f63e4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2155a6,_0x3f63e4['data']['newRange'],_0x3a27c6),_0x7d8e1f=!0x0);}return _0x7d8e1f;}['_recordAttributeChanges'](_0xa7442c){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0xa7442c();}['_isRegisteredAttribute'](_0x4b70d9){const _0x1f6e4d=this['_isBlockAttribute'](_0x4b70d9),_0x3c77b4=this['_inlineAttributeKeys']['has'](_0x4b70d9);return _0x1f6e4d||_0x3c77b4;}['_reduceExistingSuggestions'](_0x435fa9,_0x5514f0){if(0x0==_0x5514f0['length'])return!0x1;let _0x307b31=!0x1;for(const _0x6b9cbc of _0x5514f0){const _0x593aae=this['_findSuggestions'](_0x6b9cbc['range'],'attribute')['filter'](_0x508b1a=>!_0x508b1a['meta']['isNextTo'])['map'](_0x14d5ca=>_0x14d5ca['suggestion']),_0x53e175=_0x1e1f8c({'newValue':_0x6b9cbc['newValue']});_0x593aae['filter'](_0x5aafd7=>{const [_0x915d61,_0x200c40]=_0x5aafd7['subType']['split']('|');return _0x915d61==_0x6b9cbc['key']&&_0x200c40!=_0x53e175;})['forEach'](_0x31317b=>{this['_reduceSuggestionAttributeRange'](_0x31317b,_0x6b9cbc['range'],_0x435fa9),_0x307b31=!0x0;});}return _0x307b31;}['_reduceSuggestionAttributeRange'](_0x41712f,_0xb8c8df,_0x504052){const _0x89c2f4=_0x41712f['getFirstRange']()['getDifference'](_0xb8c8df);0x0!==_0x89c2f4['length']?0x1!==_0x89c2f4['length']?this['_breakSuggestionMarker'](_0x41712f,_0xb8c8df['start'],_0xb8c8df['end']):this['_setSuggestionRange'](_0x41712f,_0x89c2f4[0x0]):_0x504052['removeMarker'](_0x41712f['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x46fb82){this['_editor']=_0x46fb82,this['_model']=_0x46fb82['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2d4efd,_0x21808a,_0x33b143,_0x4ac2a2,_0x26a534,_0x1443e9){return new u(this['_model'],{'type':_0x2d4efd,'subType':_0x21808a,'id':_0x33b143,'author':_0x4ac2a2,'creator':_0x4ac2a2,'attributes':_0x26a534,'onAttributesChange':_0x1443e9,'onAccept':(..._0x3bcbdd)=>this['getSuggestionCallback'](_0x2d4efd,_0x21808a,'accept')(..._0x3bcbdd),'onDiscard':(..._0x58c41b)=>this['getSuggestionCallback'](_0x2d4efd,_0x21808a,'discard')(..._0x58c41b)});}['registerCustomCallback'](_0x598afd,_0xd868e6,_0x364724,_0x28d87c){const _0x1c90b7=_0x598afd+':'+_0xd868e6+':'+_0x364724;this['_customCallbacks']['set'](_0x1c90b7,_0x28d87c);}['getSuggestionCallback'](_0x102f33,_0x372927,_0x68c60e){const _0xe818a6=_0x102f33+':'+_0x372927+':'+_0x68c60e;return this['_customCallbacks']['get'](_0xe818a6)||this['_defaultCallbacks']['get'](_0x102f33+':'+_0x68c60e);}['_registerDefaultCallbacks'](){const _0x374f6a=()=>!0x1,_0x512d0e=_0x3bd4dd=>{_0x3bd4dd['sort']((_0x1bf9b9,_0x2a2b9c)=>_0x1bf9b9['start']['isBefore'](_0x2a2b9c['start'])?0x1:-0x1),this['_model']['change'](_0x522efa=>{for(const _0x316e93 of _0x3bd4dd){let _0x30f478;_0x30f478=_0x316e93['end']['isAtEnd']&&_0x316e93['end']['parent']==_0x316e93['start']['nodeAfter']?_0x522efa['createSelection'](_0x316e93['start']['nodeAfter'],'on'):_0x522efa['createSelection'](_0x316e93),this['_model']['deleteContent'](_0x30f478,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x19563d=(_0x104f94,_0x86f40d)=>{_0x86f40d&&this['_model']['change'](_0x44a065=>{const {commandName:_0xdccb9d,commandParams:_0x500136=[]}=_0x86f40d,_0x1b648e=_0x104f94['map'](_0x34f4c4=>(Vt(_0x34f4c4)&&(_0x34f4c4=this['_model']['createRange'](_0x34f4c4['end'])),_0x34f4c4))['filter'](_0x3ca945=>'$graveyard'!==_0x3ca945['root']['rootName']);if(_0x1b648e['length']<0x1)return;const _0x366a04=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34115d=>_0x5a0cc1['fromRange'](_0x34115d));_0x44a065['setSelection'](_0x1b648e);for(const _0x53d20f of this['_editor']['commands']['commands']())_0x53d20f['refresh']();_0x500136['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xdccb9d,..._0x500136);const _0x380071=_0x366a04['filter'](_0x3346bc=>'$graveyard'!=_0x3346bc['root']['rootName']);_0x380071['length']>0x0&&_0x44a065['setSelection'](_0x380071);for(const _0x2b3533 of _0x366a04)_0x2b3533['detach']();});},_0x529ff8=(_0x291cd0,_0xe38f06)=>0x1==_0x291cd0['length']&&0x1==_0xe38f06['length']&&_0x291cd0[0x0]['end']['isEqual'](_0xe38f06[0x0]['start']),_0x47ff41=(_0x2b9197,_0x4fcaed,_0x42f312,_0x49fd62)=>Ht(_0x2b9197,_0x4fcaed,_0x42f312,_0x49fd62,this['_model'])?[_0x2b9197,_0x4fcaed]:Ht(_0x4fcaed,_0x2b9197,_0x49fd62,_0x42f312,this['_model'])?[_0x4fcaed,_0x2b9197]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x374f6a),this['_defaultCallbacks']['set']('insertion:discard',_0x512d0e),this['_defaultCallbacks']['set']('insertion:join',_0x529ff8),this['_defaultCallbacks']['set']('insertion:chain',_0x47ff41),this['_defaultCallbacks']['set']('deletion:accept',_0x512d0e),this['_defaultCallbacks']['set']('deletion:discard',_0x374f6a),this['_defaultCallbacks']['set']('deletion:join',_0x529ff8),this['_defaultCallbacks']['set']('deletion:chain',_0x47ff41),this['_defaultCallbacks']['set']('formatInline:accept',_0x19563d),this['_defaultCallbacks']['set']('formatInline:discard',_0x374f6a),this['_defaultCallbacks']['set']('formatInline:join',_0x529ff8),this['_defaultCallbacks']['set']('formatInline:chain',_0x374f6a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x19563d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x374f6a),this['_defaultCallbacks']['set']('formatBlock:join',_0x529ff8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x374f6a),this['_defaultCallbacks']['set']('attribute:accept',_0x374f6a),this['_defaultCallbacks']['set']('attribute:discard',(_0x2d8b68,_0x3e0063)=>{if(!_0x3e0063)return;const _0xf060ed=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x596e2c=>{if(_0x3e0063['key']==m)for(const _0x3f8fd2 of _0x2d8b68){const _0x5b31db=_0x3f8fd2['start']['nodeAfter'],_0x3b5172=_0x3e0063['oldValue'];_0x596e2c['rename'](_0x5b31db,_0x3b5172);}else{if(_0xf060ed['_isBlockAttribute'](_0x3e0063['key'])){for(const _0x49f8a8 of _0x2d8b68)void 0x0!==_0x3e0063['oldValue']?_0x596e2c['setAttribute'](_0x3e0063['key'],_0x3e0063['oldValue'],_0x49f8a8['start']['nodeAfter']):_0x596e2c['removeAttribute'](_0x3e0063['key'],_0x49f8a8['start']['nodeAfter']);}else{for(const _0x1e02ab of _0x2d8b68)_0x3e0063['oldValue']?_0x596e2c['setAttribute'](_0x3e0063['key'],_0x3e0063['oldValue'],_0x1e02ab):_0x596e2c['removeAttribute'](_0x3e0063['key'],_0x1e02ab);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x529ff8);}}function Ot(_0x3f8271,_0x504f2a,_0x4027f5){for(const _0x90d9a1 of _0x504f2a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x90d9a1['root']==_0x90d9a1)return!0x1;if(!_0x4027f5['containsItem'](_0x90d9a1))return!0x1;if(_0x3f8271['isObject'](_0x90d9a1)||_0x3f8271['isLimit'](_0x90d9a1))return!0x0;}return!0x1;}function Vt(_0x344100){return _0x344100['end']['parent']==_0x344100['start']['nodeAfter']&&_0x344100['end']['isAtStart'];}function Ut(_0x39ec05,_0x4f5699,_0xaf8cf9,_0xc30f39){const _0x265679=_0x1429db=>!_0x1429db['item']['is']('$textProxy')&&!_0xc30f39['isObject'](_0x1429db['item']),_0x4fed36=_0x39ec05['start']['getLastMatchingPosition'](_0x265679),_0x109376=_0x39ec05['end']['getLastMatchingPosition'](_0x265679,{'direction':'backward'});return(!_0x39ec05['start']['isEqual'](_0x4fed36)||!_0x39ec05['end']['isEqual'](_0x109376))&&(_0x4fed36['isBefore'](_0x109376)?_0xaf8cf9['updateMarker'](_0x4f5699,{'range':_0xaf8cf9['createRange'](_0x4fed36,_0x109376)}):_0xaf8cf9['removeMarker'](_0x4f5699),!0x0);}function Gt(_0x5ddce2){return _0x1e1f8c(_0x5ddce2);}function Ft(_0x267f51){const _0x4bfdb7=_0x267f51['start']['nodeAfter'];return _0x4bfdb7&&_0x4bfdb7['is']('element');}function Pt(_0x53e24e,_0x10f060){return null==_0x53e24e['end']['nodeBefore']&&_0x53e24e['end']['parent']==_0x53e24e['start']['nodeAfter']?Lt(_0x53e24e['start']['nodeAfter'],_0x10f060):_0x53e24e;}function Lt(_0x520b48,_0x53a727){const _0x3878f3=_0x53a727['schema']['isObject'](_0x520b48)||_0x53a727['schema']['isSelectable'](_0x520b48);return _0x53a727['createRange'](_0x53a727['createPositionAt'](_0x520b48,'before'),_0x3878f3?_0x53a727['createPositionAfter'](_0x520b48):_0x53a727['createPositionAt'](_0x520b48,'end'));}function Ht(_0x2c8c63,_0xd40ce,_0x402f0e,_0x1ed301,_0xac8a0c){if(_0x2c8c63['next'])return!0x1;if(!Jt(_0x2c8c63,_0xd40ce))return!0x1;if(_0x402f0e['end']['isEqual'](_0x1ed301['start']))return!0x0;if(_0x2c8c63['type']!=_0xd40ce['type'])return!0x1;if(!_0x402f0e['end']['isTouching'](_0x1ed301['start']))return!0x1;const _0x5a06ad=_0xac8a0c['createRange'](_0x402f0e['end'],_0x1ed301['start'])['getWalker']();for(const _0x139153 of _0x5a06ad)if(['elementStart','elementEnd']['includes'](_0x139153['type'])&&_0xac8a0c['schema']['isLimit'](_0x139153['item']))return!0x1;return!0x0;}function Jt(_0x1e4526,_0x4271d7){if(!_0x1e4526['_isDataLoaded']||!_0x4271d7['_isDataLoaded'])return!0x1;const _0x1f9511=new Set(Object['keys'](_0x1e4526['attributes'])),_0x14da0d=new Set(Object['keys'](_0x4271d7['attributes']));if(_0x1f9511['delete']('groupId'),_0x14da0d['delete']('groupId'),0x0==_0x1f9511['size']&&0x0==_0x14da0d['size'])return!0x0;if(_0x1f9511['size']!=_0x14da0d['size'])return!0x1;const _0xb2f9f0={..._0x1e4526['attributes']},_0x3768e0={..._0x4271d7['attributes']};return delete _0xb2f9f0['groupId'],delete _0x3768e0['groupId'],JSON['stringify'](_0xb2f9f0)==JSON['stringify'](_0x3768e0);}function qt(_0x1bce08,_0xf548b0){const _0xa905b7=zt(_0x1bce08['attributes']),_0x475e24=zt(_0xf548b0);if(!_0x1bce08['_isDataLoaded'])return!0x1;for(const _0x5475d9 of Object['keys'](_0x475e24))if(!_0x4118e1(_0xa905b7[_0x5475d9],_0x475e24[_0x5475d9]))return!0x1;return!0x0;}function zt(_0x221d62){const _0x32a029=Object['assign']({},_0x221d62);return delete _0x32a029['skipNestingCheck'],delete _0x32a029['tablePasteChainId'],_0x32a029;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x3282ad(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2d5a13,_0x22bd0b,_0x148273,_0x488168){super(),this['model']=_0x22bd0b,this['view']=_0x148273,this['commentThreadController']=_0x488168,this['_editor']=_0x2d5a13,this['_acceptCommand']=_0x2d5a13['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2d5a13['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2f1cbc,_0x39762e)=>_0x2f1cbc||_0x39762e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x27a19e=>_0x27a19e&&this['_editor']['model']['canEditAt'](_0x22bd0b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xe64f63=>_0xe64f63&&this['_editor']['model']['canEditAt'](_0x22bd0b['getRanges']())),this['_pendingAction']=null,_0x148273['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x148273,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x148273,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x148273,'change:isDirty',()=>{_0x148273['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 _0x3bb23a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3bb23a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2a703d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x464107,_0x3fe0e6,_0x16ce13,_0x3590d2){super(_0x464107),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x262384(_0x464107,o(_0x464107,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3fe0e6['authoredAt']),this['bind']('authoredAt')['to'](_0x3fe0e6),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x3fe0e6,'authoredAt',this,'descriptionParts',(_0x36131a,_0x5ef7ac,_0x111b01)=>{const _0x22734f=_0x111b01['map'](_0x4fcfa6=>ls(_0x4fcfa6['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x36131a-0x1,_0x3fe0e6['author']['name'],_0x5ef7ac?_0x3590d2['formatDateTime'](_0x5ef7ac):'',new DOMParser()['parseFromString'](_0x22734f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x33b381(),this['focusTracker']=new _0xc2f063(),this['keystrokes']=new _0x86ce26(),this['focusCycler']=new _0x3f8b62({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x726670=>_0x726670['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3fe0e6,this['_localUser']=_0x16ce13,this['_config']=_0x3590d2,_0x3590d2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x48bc1e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4b04df}=this['_config'];this['commentsListView']=new _0x4b04df(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',_0x390dd5=>_0x390dd5+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x546731,_0x1d1510)=>_0x546731||!!_0x1d1510);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x31251f}=this['_config'],_0x5c004d=new _0x31251f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x36cb03=_0x5c004d['commentInputView'];return _0x5c004d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x36cb03,'value',(_0x50205f,_0x2a339d,_0x2e427e)=>!!_0x2e427e||_0x50205f&&!_0x2a339d),_0x36cb03['on']('submit',(_0x480906,_0x2c8ae4)=>{this['fire']('addComment',_0x2c8ae4),_0x36cb03['editor']['setData']('');}),_0x36cb03['on']('cancel',()=>this['focus']()),_0x36cb03['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5c004d;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x11baf8,_0x505c20,_0x3800c5,_0x12e3be){super(_0x11baf8,_0x505c20,_0x3800c5,_0x12e3be),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3479af=>_0x3479af&&_0x3479af[0x0]?_0x3479af[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x566015,_0x3cd922)=>{let _0x2bda29='';for(const _0x1519f9 of _0x566015)_0x2bda29+='<p>'+ls(_0x1519f9['content'],_0x1519f9['color'])+'</p>';return _0x3cd922?_0x2bda29:_0x5240ac(_0x2bda29,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x12e3be['SuggestionView'](_0x11baf8,_0x505c20,{'formatDateTime':_0x12e3be['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5bef32=this['bindTemplate'],_0x134839=[this['suggestionView']];return this['commentsListView']&&_0x134839['push'](this['commentsListView']),this['commentThreadInputView']&&_0x134839['push'](this['commentThreadInputView']),_0x134839['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5bef32['if']('isActive','ck-suggestion-wrapper--active'),_0x5bef32['to']('type',_0x196ee6=>'ck-suggestion-'+_0x196ee6),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5bef32['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x134839};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x2a703d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4364a9,_0x461fec,_0x114036){super(_0x4364a9),this['_model']=_0x461fec,this['_config']=_0x114036,this['set']('description',''),this['bind']('authoredAt')['to'](_0x461fec),this['acceptButton']=this['_createButton'](o(_0x4364a9,'Accept\x20suggestion'),_0x1edab9['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4364a9,'Discard\x20suggestion'),_0x1edab9['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x44f80e(_0x4364a9,_0x461fec['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x33b381([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc2f063(),this['keystrokes']=new _0x86ce26(),this['focusCycler']=new _0x3f8b62({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4a898c=>_0x4a898c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xb116f6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xb116f6['innerHTML']=this['description'],this['on']('change:description',(_0x54a5d0,_0x4ad48b,_0x59289c)=>{_0xb116f6['innerHTML']=_0x59289c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x20544f=this['bindTemplate'],_0x40932c=[{'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':_0x20544f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x20544f['to']('authoredAt',_0x18c309=>this['_config']['formatDateTime'](_0x18c309))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x40932c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x40932c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1cfce9,_0x588780,_0x4fe13,_0x9d0ce0,_0x13e393){const _0x1d185f=new _0x14c061(this['locale']);return _0x1d185f['set']({'label':_0x1cfce9,'icon':_0x588780,'tooltip':!0x0,'tooltipPosition':_0x13e393}),_0x1d185f['extendTemplate']({'attributes':{'class':_0x4fe13}}),_0x1d185f['on']('execute',()=>{this['fire'](_0x9d0ce0,this['_model']['id']);}),_0x1d185f;}['_setupKeyboardNavigation'](){const _0x161842=this['element'];this['keystrokes']['listenTo'](_0x161842);for(const _0x2be4e3 of this['focusables'])this['focusTracker']['add'](_0x2be4e3['element']),this['keystrokes']['listenTo'](_0x2be4e3['element']);this['keystrokes']['set']('enter',(_0x5ad16b,_0x43fd9e)=>{_0x161842===_0x5ad16b['target']&&(this['focusCycler']['focusFirst'](),_0x43fd9e());}),this['keystrokes']['set']('esc',(_0x263ac8,_0x1e70cd)=>{_0x161842!==_0x263ac8['target']&&(this['focus'](),_0x1e70cd());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x468cec{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x365295,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x143902){super(_0x143902),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xdd4a07=this['editor']['config'];_0xdd4a07['define']('trackChanges.SuggestionThreadView',re),_0xdd4a07['define']('trackChanges.SuggestionView',ce),_0xdd4a07['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xdd4a07['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4f910c,_0x1efe69){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5ef3ef,_0xf22e0b]of this['_handleControllerBuffer']){const _0x1f81b2=this['_suggestionToController']['has'](_0x5ef3ef);_0x1f81b2||_0xf22e0b?_0x1f81b2&&_0xf22e0b&&this['_destroyController'](_0x5ef3ef):this['_initializeController'](_0x5ef3ef);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4f910c,_0x1efe69);}['init'](){const _0x461559=this['editor'],_0x269b0f=_0x461559['plugins']['get']('TrackChangesEditing'),_0x56b67d=_0x461559['plugins']['get']('Annotations'),_0x121e92=_0x461559['plugins']['get']('EditorAnnotations'),_0x5c485f=_0x461559['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x121e92['addSourceCollector'](()=>{const _0x5b1776=[];for(const [_0x2ca1e9,_0x38ba67]of Array['from'](this['_suggestionToController'])){const _0x36c7ad=_0x2ca1e9['getAllAdjacentSuggestions'](),_0x2f4df2=[];for(const _0x3d843a of _0x36c7ad){if(!_0x3d843a['isInContent'])continue;if(_0x3d843a['isMultiRange']){_0x2f4df2['push'](..._0x3d843a['getRanges']());continue;}const _0x407944=_0x3d843a['getFirstRange']();if(_0x2f4df2['length']>0x0){const _0x390f25=_0x2f4df2[0x0]['getJoined'](_0x407944);if(_0x390f25){_0x2f4df2[0x0]=_0x390f25;continue;}}_0x2f4df2['push'](_0x407944);}_0x5b1776['push']([_0x38ba67['view'],_0x2f4df2]);}return _0x5b1776;}),this['listenTo'](_0x269b0f,'suggestionLoaded',(_0x892fbb,_0x5cd549)=>{this['listenTo'](_0x5cd549,'change:previous',(_0x144031,_0x12ecc1,_0x993b9c,_0x2306b1)=>{_0x5cd549['isInContent']&&(null==_0x993b9c?(this['_updateController'](_0x2306b1['head']),this['_handleSuggestionControllerDelayed'](_0x5cd549,!0x1)):(this['_updateController'](_0x993b9c['head']),null==_0x2306b1&&this['_handleSuggestionControllerDelayed'](_0x5cd549,!0x0)));}),null!==_0x5cd549['previous']?this['_updateController'](_0x5cd549['head']):this['_handleSuggestionControllerDelayed'](_0x5cd549,!0x1);}),this['listenTo'](_0x269b0f,'suggestionUnloaded',(_0x56f992,_0x3243a4,_0x4a40f8)=>{this['stopListening'](_0x3243a4,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3243a4),this['_suggestionToController']['has'](_0x3243a4)&&this['_destroyController'](_0x3243a4),_0x4a40f8&&this['_updateController'](_0x4a40f8['head']);}),this['listenTo'](_0x269b0f,'suggestionChanged',(_0x264694,_0x321fbd)=>{this['_updateController'](_0x321fbd);}),this['listenTo'](_0x56b67d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5c485f,'addComment',(_0x49762e,{threadId:_0x3ee597,isFromAdapter:_0x138afa})=>{if(_0x138afa||!_0x269b0f['hasSuggestion'](_0x3ee597))return;const _0x25719e=_0x269b0f['getSuggestion'](_0x3ee597);this['_suggestionToController']['get'](_0x25719e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x509516=this['editor']['plugins']['get']('Annotations'),_0x44441a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d3ebb=Array['from'](_0x509516['activeAnnotations'],_0x4e5e17=>_0x4e5e17['innerView'])['filter'](_0x4f29e8=>this['_viewToController']['has'](_0x4f29e8)),_0x10c174=[];for(const _0x7aa2d4 of _0x5d3ebb){const _0x557923=this['_viewToController']['get'](_0x7aa2d4)['model']['getAllAdjacentSuggestions']();_0x10c174['push'](..._0x557923['reduce']((_0x21e828,_0x35e56c)=>[..._0x21e828,..._0x35e56c['getMarkerNames']()],[]));}_0x44441a['activeMarkers']=_0x10c174;}['_addUIComponentsToFactory'](){const _0x4e0f5d=this['editor'],_0x51d58b=_0x4e0f5d['locale'],_0x83b3a1=o(_0x51d58b,'Track\x20changes'),_0x3b2646=new Wt([{'type':'switchbutton','model':new _0xd4d4fd({'withText':!0x0,'isToggleable':!0x0,'label':_0x83b3a1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xd4d4fd({'withText':!0x0,'label':o(_0x51d58b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xd4d4fd({'withText':!0x0,'label':o(_0x51d58b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xd4d4fd({'withText':!0x0,'label':o(_0x51d58b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xd4d4fd({'withText':!0x0,'label':o(_0x51d58b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x65251b of _0x3b2646)if(me(_0x65251b)){const _0xdbc854=_0x4e0f5d['commands']['get'](_0x65251b['model']['commandName']);_0x65251b['model']['bind']('isOn','isEnabled')['to'](_0xdbc854,'value','isEnabled');}_0x4e0f5d['ui']['componentFactory']['add']('trackChanges',_0x57396e=>this['_createToolbarButton'](_0x57396e,_0x3b2646,_0x83b3a1)),_0x4e0f5d['ui']['componentFactory']['add']('menuBar:trackChanges',_0xa1f71e=>this['_createMenuBarMenu'](_0xa1f71e,_0x3b2646,_0x83b3a1));}['_createToolbarButton'](_0x5526dc,_0x1d8acf,_0xd42aba){const _0x528811=Qt(_0x5526dc,_0x1b629f),_0x33d250=this['editor']['commands']['get']('trackChanges');_0x528811['buttonView']['set']({'tooltip':_0xd42aba,'label':_0xd42aba,'icon':he}),_0x528811['buttonView']['bind']('isOn')['to'](_0x33d250,'value'),_0x528811['buttonView']['on']('execute',()=>{_0x33d250['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x528811,_0x1d8acf,{'role':'menu'});const _0x2dbf24=[];for(const _0x2d88f0 of _0x1d8acf)me(_0x2d88f0)&&_0x2dbf24['push'](this['editor']['commands']['get'](_0x2d88f0['model']['commandName']));const _0x40d402=_0x528811['buttonView'];return _0x40d402['actionView']['unbind']('isEnabled'),_0x40d402['arrowView']['unbind']('isEnabled'),_0x40d402['actionView']['bind']('isEnabled')['to'](_0x33d250,'isEnabled'),_0x40d402['arrowView']['bind']('isEnabled')['toMany'](_0x2dbf24,'isEnabled',(..._0x4de371)=>_0x4de371['some'](_0x1001f1=>_0x1001f1)),_0x528811['on']('execute',_0x5cc88a=>{this['editor']['execute'](_0x5cc88a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x528811;}['_createMenuBarMenu'](_0x26d014,_0x2917d8,_0x5ad251){const _0x308509=new Yt(_0x26d014),_0x43499a=this['editor']['commands']['get']('trackChanges');_0x308509['buttonView']['set']({'label':_0x5ad251,'icon':he});const _0xadad2a=new Zt(_0x26d014);for(const _0x3b9f91 of _0x2917d8){if('separator'==_0x3b9f91['type']){_0xadad2a['items']['add'](new Xt(_0x26d014));continue;}const _0x706bc1=new te(_0x26d014,_0x308509),_0x3ff9ce=new _0x1c4d7f(_0x26d014),_0x50e643=_0x3b9f91['model'];_0x3ff9ce['bind'](...Object['keys'](_0x50e643))['to'](_0x50e643),_0x3ff9ce['delegate']('execute')['to'](_0x308509),_0x3ff9ce['on']('execute',()=>{this['editor']['execute'](_0x50e643['commandName']),this['editor']['editing']['view']['focus']();}),_0x706bc1['children']['add'](_0x3ff9ce),_0xadad2a['items']['add'](_0x706bc1);}return _0x308509['bind']('isEnabled')['to'](_0x43499a,'isEnabled'),_0x308509['panelView']['children']['add'](_0xadad2a),_0x308509;}['_initializeController'](_0x5038c5){const _0x1daa56=this['editor'],_0x107c5e=_0x1daa56['config'],_0x4a6db6=_0x1daa56['plugins']['get']('Annotations'),_0x37b422=_0x1daa56['plugins']['get']('CommentsRepository'),_0x1dc8cf=_0x1daa56['plugins']['get']('EditorAnnotations'),_0x5ceabe=_0x1daa56['plugins']['get'](_0x365295)['me'],_0x1e0c58=_0x107c5e['get']('trackChanges')['SuggestionThreadView'],_0x2ffb5b=_0x107c5e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xd5e3f2,CommentThreadInputView:_0xd04f74}=_0x1daa56['plugins']['get']('CommentsUI');let _0x5f5cf0,_0x5ec525,_0x2e6af5;this['_annotationViews']['has'](_0x5038c5['id'])?(_0x5ec525=this['_annotationViews']['get'](_0x5038c5['id']),_0x5f5cf0=_0x5ec525['mainView']):(_0x5f5cf0=new _0x1e0c58(_0x1daa56['locale'],_0x5038c5,_0x5ceabe,{'disableComments':this['_disableComments'],'editorConfig':_0x107c5e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x107c5e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x107c5e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x107c5e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x215509(_0x107c5e['get']('locale')),'CommentView':_0x107c5e['get']('comments')['CommentView'],'CommentsListView':_0xd5e3f2,'CommentThreadInputView':_0xd04f74,'SuggestionView':_0x2ffb5b}),_0x5f5cf0['suggestionView']['acceptButton']['on']('execute',()=>{_0x1daa56['editing']['view']['focus']();}),_0x5f5cf0['suggestionView']['discardButton']['on']('execute',()=>{_0x1daa56['editing']['view']['focus']();}),_0x5ec525=_0x4a6db6['createAnnotationView'](this['editor']['locale'],_0x5f5cf0),_0x5ec525['bind']('isDirty')['to'](_0x5f5cf0,'isDirty'),_0x5ec525['bind']('length')['to'](_0x5f5cf0),_0x5ec525['bind']('type')['to'](_0x5f5cf0,'type',_0x1f5e58=>'suggestion-'+_0x1f5e58),_0x5f5cf0['on']('escape',()=>{_0x2e6af5['fire']('escape');}),this['_annotationViews']['set'](_0x5038c5['id'],_0x5ec525));const _0x3935ef=_0x37b422['createCommentThreadController'](_0x5038c5['commentThread'],_0x5f5cf0),_0x461122=new ae(_0x1daa56,_0x5038c5,_0x5f5cf0,_0x3935ef),_0x44c107=_0x5038c5['getAllAdjacentSuggestions']()['filter'](_0x418e76=>_0x418e76['isInContent']);_0x5f5cf0['descriptionParts']=_0x1daa56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44c107),this['_suggestionToController']['set'](_0x5038c5,_0x461122),this['_viewToController']['set'](_0x5f5cf0,_0x461122),_0x2e6af5=_0x4a6db6['createAnnotation']({'view':_0x5ec525,'target':()=>{const _0x5992e3=[],_0x4feb7a=_0x5038c5['getAllAdjacentSuggestions']()['filter'](_0x2988ca=>_0x2988ca['isInContent']);for(const _0x1a62d0 of _0x4feb7a)_0x5992e3['push'](..._0x1a62d0['getMarkers']());return _0x44c1d6(_0x1daa56['editing'],_0x5992e3);},'type':()=>'suggestion-'+_0x461122['view']['type']}),_0x37b422['_bindAnnotationToEditors'](_0x5f5cf0,_0x2e6af5),_0x4a6db6['add'](_0x2e6af5),_0x1dc8cf['registerAnnotation'](_0x2e6af5);}['_destroyController'](_0x5723c1){const _0x1e611f=this['editor']['plugins']['get']('CommentsRepository'),_0x5427ce=this['editor']['plugins']['get']('Annotations'),_0x432356=this['_suggestionToController']['get'](_0x5723c1),_0x2a7bae=_0x432356['view'],_0x5ab8fa=_0x5427ce['getByInnerView'](_0x2a7bae);_0x1e611f['_unbindEditors'](_0x2a7bae),_0x5ab8fa&&_0x5427ce['remove'](_0x5ab8fa),this['_suggestionToController']['delete'](_0x5723c1),this['_viewToController']['delete'](_0x2a7bae),_0x432356['destroy']();}['_updateController'](_0x3dd01b){if(!_0x3dd01b['isInContent']||!this['_suggestionToController']['has'](_0x3dd01b))return;const _0x20b530=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2611be=this['_suggestionToController']['get'](_0x3dd01b),_0x346a82=_0x3dd01b['getAllAdjacentSuggestions']();_0x2611be['view']['descriptionParts']=_0x20b530['descriptionFactory']['getDescriptions'](_0x346a82);}['destroy'](){for(const _0x290b6e of this['_suggestionToController']['keys']())this['_destroyController'](_0x290b6e);for(const _0x13f83f of this['_annotationViews']['values']())_0x13f83f['mainView']['destroy']();super['destroy']();}}function me(_0x12bf30){return'model'in _0x12bf30;}class k extends _0x468cec{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xbe0f81){this['editor']['plugins']['get'](p)['adapter']=_0xbe0f81;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4fb97d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4fb97d);}['getSuggestions']({skipNotAttached:_0x1a7c4d=!0x1,toJSON:_0x55bf55=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1a7c4d,'toJSON':_0x55bf55});}['getSuggestion'](_0x26afb6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x26afb6);}}const T=['Pagination'];class P extends _0x468cec{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5a424f=this['editor'];if(_0x5a424f['config']['define']('trackChangesData.editorCreator',_0x2f2f59=>{const _0x48ae92=_0x5a424f['model']['document']['getRootNames']()['reduce']((_0xdfc553,_0x591e2c)=>(_0xdfc553[_0x591e2c]='',_0xdfc553),{});return _0x5a424f['constructor']['create'](_0x48ae92,_0x2f2f59);}),'function'!=typeof _0x5a424f['config']['get']('trackChangesData')['editorCreator'])throw new _0x54de02('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x565a8e){return N(this['editor'],!0x0,_0x565a8e);}['getDataWithDiscardedSuggestions'](_0x355e9a){return N(this['editor'],!0x1,_0x355e9a);}}class D extends _0x468cec{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x16840f){super(_0x16840f),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(_0x36c649){return void 0x0!==_0x36c649['getRootsAttributes'];}async function N(_0x10dc15,_0x54a445,_0x463ad8){const _0x27f854=_0x1b1b19(_0x10dc15,T);_0x27f854['plugins']['push'](p,D),_0x27f854['rootsAttributes']=v(_0x10dc15)?_0x10dc15['getRootsAttributes']():void 0x0;const _0x190f3b=document['createDocumentFragment'](),_0x107988=_0x10dc15['config']['get']('trackChangesData')['editorCreator'],_0x3ec769=await _0x107988(_0x27f854,()=>function(_0x5db31d){const _0x517e0c=document['createElement']('div');return _0x5db31d['appendChild'](_0x517e0c),_0x517e0c;}(_0x190f3b));!function(_0xe9bebf,_0x5a5f57){const _0x3e6ccf=_0xe9bebf['model']['document']['getRootNames']()['reduce']((_0x5b8362,_0x2c5eaa)=>(_0x5b8362[_0x2c5eaa]=_0xe9bebf['data']['get']({'rootName':_0x2c5eaa}),_0x5b8362),{}),_0x158ff2=_0xe9bebf['plugins']['get']('Users')['users']['map'](_0x3b6467=>({'id':_0x3b6467['id'],'name':_0x3b6467['name']})),_0x1fb821=_0xe9bebf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33bf96=_0xe9bebf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x49880e=_0x5a5f57['plugins']['get']('Users'),_0x351eb9=_0x5a5f57['plugins']['get']('TrackChangesEditing'),_0x1e177d=_0x5a5f57['plugins']['get']('CommentsRepository');for(const _0x38cb21 of _0x1e177d['getCommentThreads']())_0x38cb21['remove']();for(const _0x546c58 of _0x158ff2)_0x49880e['getUser'](_0x546c58['id'])||_0x49880e['addUser'](_0x546c58);_0x49880e['me']||_0x49880e['useAnonymousUser']();for(const _0x37ada3 of _0x33bf96)_0x1e177d['addCommentThread'](_0x37ada3);for(const _0x52032b of _0x1fb821)_0x351eb9['addSuggestionData'](_0x52032b);_0x5a5f57['data']['set'](_0x3e6ccf);}(_0x10dc15,_0x3ec769),_0x3ec769['execute'](_0x54a445?'acceptAllSuggestions':'discardAllSuggestions');const _0x9c3ff3=v(_0x3ec769)?_0x3ec769['getFullData'](_0x463ad8):_0x3ec769['data']['get'](_0x463ad8);return await _0x3ec769['destroy'](),_0x9c3ff3;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x5bfee9,PendingActions as _0x499338,icons as _0x22bd42}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x450fba,ObservableMixin as _0x107944,uid as _0xdb8ef7,insertToPriorityArray as _0x3f08f1,priorities as _0x47b90b,logWarning as _0x57ae65,getEnvKeystrokeText as _0x134abc,FocusTracker as _0x2d4da6,KeystrokeHandler as _0x3106bc,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x51676d,View as _0x3f236f,ViewCollection as _0xfeac15,FocusCycler as _0x21837d,ViewModel as _0x287844,createDropdown as Qt,SplitButtonView as _0xbcc610,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x12f0da}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x999574,hashObject as _0x42a9e2,surroundingMarkersDetector as _0x599706,FOCUS_ANNOTATION_KEYSTROKE as _0x398286,AriaDescriptionView as _0x1306d7,setupThreadKeyboardNavigation as _0x201da0,trimHtml as _0x4e76e6,UserView as _0x244d6e,LateFocusButtonView as _0x10725f,getDateTimeFormatter as _0x320a77,getAllMarkersDomElementsSorted as _0x3c9865,sanitizeEditorConfig as _0xa99902}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x50c06c,LiveRange as _0x50563c,LivePosition as _0x51eecf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x511059,toWidget as _0x2622dc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x34c2f7,set as _0x167f18,isEqual as _0x152790,unset as _0x61cb20,omit as Tt}from'lodash-es';import{Delete as _0x520c2f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2fa8f3,ShiftEnter as _0x5b8dfa}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x484b83,_0x48a736){super(_0x484b83),this['_enabledCommands']=_0x48a736,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 _0x56d243 of this['editor']['commands']['commands']())_0x56d243['affectsData']&&!this['_enabledCommands']['has'](_0x56d243)&&_0x56d243['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x124ccf of this['editor']['commands']['commands']())_0x124ccf['affectsData']&&!this['_enabledCommands']['has'](_0x124ccf)&&_0x124ccf['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x4b1184,_0x371808){super(_0x4b1184),this['_suggestions']=_0x371808,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5ad9e1){const _0x1562f6=this['_suggestions']['get'](_0x5ad9e1);if(!_0x1562f6)throw new _0x450fba('track-changes-accept-suggestion-not-found',this);const _0x44b7ff=_0x1562f6['getRanges']();this['editor']['model']['canEditAt'](_0x44b7ff)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1562f6);}}class R extends ts{['_suggestions'];constructor(_0x1f582c,_0x22184c){super(_0x1f582c),this['_suggestions']=_0x22184c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2aad6a){const _0x13a7c6=this['_suggestions']['get'](_0x2aad6a);if(!_0x13a7c6)throw new _0x450fba('track-changes-discard-suggestion-not-found',this);const _0x48c8c2=_0x13a7c6['getRanges']();this['editor']['model']['canEditAt'](_0x48c8c2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x13a7c6);}}function ls(_0x563682,_0x1265ea){let _0x5af959='';return _0x5af959+=_0x563682['split']('*')['map']((_0x54b645,_0x55abdf)=>_0x55abdf%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x54b645)+'</span>':nn(_0x54b645))['join'](''),_0x1265ea&&(_0x5af959+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1265ea['value']+'\x22\x20title=\x22'+_0x1265ea['title']+'\x22></span>'),_0x5af959;}function nn(_0x520079){const _0x241f9f=document['createElement']('span');return _0x241f9f['innerText']=_0x520079,_0x241f9f['innerHTML'];}function ss(_0x236260){return _0x236260['sort']((_0x515edc,_0x5e3cd4)=>'deletion'==_0x515edc['type']&&'deletion'!=_0x5e3cd4['type']?-0x1:'deletion'!=_0x515edc['type']&&'deletion'==_0x5e3cd4['type']?0x1:0x0);}function to(_0x1c1043,_0x4b11e0){let _0x2f514c,_0x4f245c=0x0;const _0xbb2095=[],_0x5578c3=_0x4b11e0['schema'];for(;_0x4f245c<_0x1c1043['length'];){const _0x27797c=_0x1c1043[_0x4f245c],_0x1a9a4f=_0x1c1043[_0x4f245c+0x1];_0x2f514c||(_0x2f514c=_0x4b11e0['createPositionBefore'](_0x27797c)),on(_0x4b11e0,_0x27797c,_0x1a9a4f)||(_0xbb2095['push'](_0x4b11e0['createRange'](_0x2f514c,_0x5578c3['isObject'](_0x27797c)?_0x4b11e0['createPositionAfter'](_0x27797c):_0x4b11e0['createPositionAt'](_0x27797c,'end'))),_0x2f514c=null),_0x4f245c++;}return _0xbb2095;}function on(_0x3f7167,_0x26d32d,_0x486c86){if(!_0x486c86)return!0x1;const _0x5b6cea=_0x3f7167['createPositionAfter'](_0x26d32d),_0xbf8baa=_0x3f7167['createPositionBefore'](_0x486c86);return _0x5b6cea['isTouching'](_0xbf8baa);}function rs(_0x50d003,_0x32136f,_0x4b9e7d){for(;_0x4b9e7d['length'];){const _0x618102=_0x4b9e7d['splice'](0x0,0x64);_0x50d003['change'](()=>{for(const _0x284135 of _0x618102)_0x284135['isInContent']&&_0x32136f['execute'](_0x284135['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x465937,_0x34787b,_0x4ca7b8){super(_0x465937),this['_command']=_0x34787b,this['_suggestions']=_0x4ca7b8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x47b9bc=Array['from'](this['_suggestions']['values']())['some'](_0x55edff=>_0x55edff['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x47b9bc;}['execute'](){const _0x19d96b=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3d9f76 of _0x19d96b){const _0x125572=_0x3d9f76['getRanges']();if(!this['editor']['model']['canEditAt'](_0x125572))return;}rs(this['editor']['model'],this['_command'],_0x19d96b);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xae1aa4,_0x5b5bf6,_0x510a0a){super(_0xae1aa4),this['_command']=_0x5b5bf6,this['_suggestions']=_0x510a0a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5de20c=this['editor']['model']['document']['selection'],_0x2642e6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x56b0b1,_0x24194c){const _0x58f6f9=Array['from'](_0x56b0b1['getRanges']()),_0x1f9267=new Set();for(const _0x514678 of _0x24194c)if(_0x514678['isInContent']){for(const _0x5cdcf3 of _0x58f6f9)for(const _0xe0d710 of _0x514678['getRanges']())(_0x5cdcf3['isIntersecting'](_0xe0d710)||_0x56b0b1['isCollapsed']&&!_0x514678['isMultiRange']&&_0x514678['next']&&_0xe0d710['end']['isTouching'](_0x5cdcf3['start']))&&_0x1f9267['add'](_0x514678);}return _0x1f9267;}(_0x5de20c,_0x2642e6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2e91a7=ss(Array['from'](this['_selectedSuggestions']));for(const _0x119a20 of _0x2e91a7){const _0x27b1c7=_0x119a20['getRanges']();if(!this['editor']['model']['canEditAt'](_0x27b1c7))return;}rs(this['editor']['model'],this['_command'],_0x2e91a7);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x107944(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x21b1ab,_0x464bbe){super(),this['id']=_0x464bbe['id'],this['type']=_0x464bbe['type'],this['subType']=_0x464bbe['subType']||null,this['author']=_0x464bbe['author'],this['creator']=_0x464bbe['creator']||_0x464bbe['author'],this['isExternal']=Boolean(_0x464bbe['attributes']&&_0x464bbe['attributes']['@external']),this['data']=null,this['_model']=_0x21b1ab,this['_onAccept']=_0x464bbe['onAccept'],this['_onDiscard']=_0x464bbe['onDiscard'],this['_onAttributesChange']=_0x464bbe['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x464bbe['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 _0x45afcb=this;for(;_0x45afcb['previous'];)_0x45afcb=_0x45afcb['previous'];return _0x45afcb;}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'](_0x4a132b){this['_markerNames']['add'](_0x4a132b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4d747e=>this['_model']['markers']['get'](_0x4d747e))['filter'](_0xa0c694=>_0xa0c694);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x314788=>{for(const _0x1b6243 of this['getMarkers']())_0x314788['removeMarker'](_0x1b6243);}),this['_markerNames']['clear']();}['removeMarker'](_0x2cc4da){this['_model']['change'](_0x417102=>{_0x417102['removeMarker'](_0x2cc4da);}),this['_markerNames']['delete'](_0x2cc4da);}['addRange'](_0xf3337e){const _0x549b43='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x549b43),this['_model']['change'](_0x41b385=>{_0x41b385['addMarker'](_0x549b43,{'range':_0xf3337e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xd142b0){for(const _0x27acc8 of this['getRanges']())if(_0x27acc8['isIntersecting'](_0xd142b0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5a94e5=>_0x5a94e5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4250f6,_0x58fac8)=>[..._0x4250f6,..._0x58fac8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x450d1b=this['getRanges']();if(0x1!=_0x450d1b['length'])return null;const _0x43872f=_0x450d1b[0x0],_0x47a1fd=_0x43872f['start']['nodeAfter'],_0x28eab8=_0x43872f['end']['nodeBefore'];return _0x47a1fd instanceof _0x50c06c?_0x47a1fd!=_0x28eab8?null:_0x47a1fd: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 _0x434c6d=[];let _0x4d5dd1=this['head'];for(;_0x4d5dd1;)_0x434c6d['push'](_0x4d5dd1),_0x4d5dd1=_0x4d5dd1['next'];return _0x434c6d;}['setAttribute'](_0x4cfb3b,_0x234c90){const _0x60929a=_0x34c2f7(this['attributes']);_0x167f18(_0x60929a,_0x4cfb3b,_0x234c90),_0x152790(_0x60929a,this['attributes'])||(this['attributes']=_0x60929a,this['_onAttributesChange'](_0x60929a));}['removeAttribute'](_0xe09a2b){const _0x15c483=_0x34c2f7(this['attributes']);_0x61cb20(_0x15c483,_0xe09a2b),_0x152790(_0x15c483,this['attributes'])||(this['attributes']=_0x15c483,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 _0xdb8ef7()['substr'](0x1,0x5);}}function o(_0x9dd7e,_0x5e8f0b,_0x53e2ec){const t=_0x9dd7e['t'];switch(_0x5e8f0b){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',_0x53e2ec);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x53e2ec);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x53e2ec);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x53e2ec);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x53e2ec);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',_0x53e2ec);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x53e2ec);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',_0x53e2ec);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x53e2ec);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x53e2ec);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x53e2ec);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x53e2ec);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x53e2ec);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x53e2ec);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x53e2ec);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x53e2ec);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x53e2ec);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x53e2ec);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x53e2ec);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x53e2ec);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x53e2ec);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x53e2ec);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x53e2ec);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'},_0x53e2ec);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x53e2ec);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x53e2ec);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x53e2ec);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x53e2ec);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x53e2ec);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'},_0x53e2ec);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x53e2ec);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x53e2ec);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x53e2ec);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x53e2ec);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'},_0x53e2ec);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x53e2ec);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'},_0x53e2ec);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'},_0x53e2ec);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x53e2ec);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'},_0x53e2ec);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x53e2ec);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'},_0x53e2ec);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x53e2ec);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x53e2ec);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x53e2ec);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'},_0x53e2ec);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'},_0x53e2ec);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x53e2ec);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x53e2ec);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x53e2ec);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x53e2ec);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5e8f0b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4e4959,_0x144417){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4e4959,this['_locale']=_0x144417;}['getDescriptions'](_0x316883){const _0x30f49a=[],_0x5148f6=new Set(),_0x1d9f29=new Set();for(let _0x3b950b=0x0;_0x3b950b<_0x316883['length'];_0x3b950b++){const _0x205a33=_0x316883[_0x3b950b];if(!_0x205a33['isInContent'])continue;const _0x3899d2=this['_handleCustomCallbackDescription'](_0x205a33);if(_0x3899d2){if(null!=_0x205a33['subType']){if(_0x5148f6['has'](_0x205a33['subType']))continue;_0x5148f6['add'](_0x205a33['subType']);}_0x30f49a['push'](_0x3899d2);}else{if('attribute'!=_0x205a33['type'])'insertion'!=_0x205a33['type']&&'deletion'!=_0x205a33['type']||this['_handleInsertRemoveSuggestionDescription'](_0x30f49a,_0x205a33,_0x316883[_0x3b950b+0x1]);else{const _0x36e682=_0x205a33['data']['key'];if(_0x1d9f29['has'](_0x36e682))continue;_0x1d9f29['add'](_0x205a33['data']['key']),_0x36e682==m?this['_handleRenameSuggestionDescription'](_0x30f49a,_0x205a33):this['_handleAttributeSuggestionDescription'](_0x30f49a,_0x205a33);}}}return this['_resolveDescriptionItems'](_0x30f49a);}['registerDescriptionCallback'](_0x4c6497){this['_customCallbacks']['push'](_0x4c6497);}['registerElementLabel'](_0x38f83a,_0x37c99f,_0x5bcefd=_0x47b90b['normal']){'function'==typeof _0x38f83a?_0x3f08f1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x38f83a,'label':_0x37c99f,'priority':_0x5bcefd}):this['_itemLabels']['set'](_0x38f83a,_0x37c99f);}['registerAttributeLabel'](_0xf95d73,_0x1bd25b){this['_attributeLabels']['set'](_0xf95d73,_0x1bd25b);}['getItemLabel'](_0x948760,_0x4f991e=0x1){let _0x3e715e;for(const _0x39008b of this['_itemLabelsCallbacks'])if(_0x39008b['matchingCallback'](_0x948760)){_0x3e715e=_0x39008b['label'];break;}return _0x3e715e||(_0x3e715e=this['_itemLabels']['get'](_0x948760['name'])),_0x3e715e?_0x3e715e(_0x4f991e):0x1!==_0x4f991e?_0x4f991e+'\x20'+_0x948760['name']+'s':''+_0x948760['name'];}['_addDescriptionItems'](_0xdc739a,_0xfba78e){const _0x1836b3=_0xfba78e['getFirstRange']()['getWalker'](),_0x5aee02='insertion'==_0xfba78e['type']?'add':'remove';for(const _0x57a210 of _0x1836b3){const _0x45bcb9=_0x57a210['item'],_0x51469e=_0xdc739a[_0xdc739a['length']-0x1];if(_0x45bcb9['is']('$textProxy'))_0x51469e&&_0x51469e['type']['indexOf']('Container')>-0x1&&_0xdc739a['pop'](),_0x51469e&&'text'==_0x51469e['type']?_0x51469e[_0x5aee02]+=_0x45bcb9['data']:_0xdc739a['push']({'type':'text','add':'add'==_0x5aee02?_0x45bcb9['data']:'','remove':'remove'==_0x5aee02?_0x45bcb9['data']:''});else{if(this['_schema']['isObject'](_0x45bcb9)){const _0xe2aaa0=_0x45bcb9;if(_0x51469e&&_0x51469e['type']['indexOf']('Container')>-0x1&&_0xdc739a['pop'](),'elementEnd'==_0x57a210['type'])continue;_0x51469e&&_0x51469e['type']==_0x5aee02+'Object'&&_0x51469e['element']['name']==_0xe2aaa0['name']?_0x51469e['quantity']++:_0xdc739a['push']({'type':_0x5aee02+'Object','element':_0xe2aaa0,'quantity':0x1}),_0x1836b3['skip'](_0x9e316b=>!('elementEnd'==_0x9e316b['type']&&_0x9e316b['item']==_0x45bcb9));}else{if(this['_schema']['checkChild'](_0x45bcb9,'$text')||_0x45bcb9['is']('element','softBreak')){const _0xf7717=_0x45bcb9;if('add'==_0x5aee02&&'elementStart'==_0x57a210['type']||'remove'==_0x5aee02&&'elementEnd'==_0x57a210['type'])continue;if(_0x51469e&&-0x1==_0x51469e['type']['indexOf']('Container')){'text'==_0x51469e['type']&&(_0x51469e[_0x5aee02]+='\x0a');continue;}let _0x230fce;if(_0x230fce='add'==_0x5aee02?_0xf7717['nextSibling']&&!this['_schema']['isObject'](_0xf7717['nextSibling'])?_0xf7717['nextSibling']:null:_0xf7717['previousSibling']&&!this['_schema']['isObject'](_0xf7717['previousSibling'])?_0xf7717['previousSibling']:null,_0xf7717['isEmpty']||_0x230fce&&_0x230fce['isEmpty']){const _0x4e2613=_0x230fce&&_0x230fce['isEmpty']?_0x230fce:_0xf7717;_0x51469e&&_0x51469e['type']==_0x5aee02+'EmptyContainer'&&_0x51469e['element']['name']==_0x4e2613['name']?_0x51469e['quantity']++:_0xdc739a['push']({'type':_0x5aee02+'EmptyContainer','element':_0x4e2613,'quantity':0x1});}else _0xdc739a['push']({'type':_0x5aee02+'Container','element':_0xf7717});}}}}}['_resolveDescriptionItems'](_0x4a6a15){const _0x18b91b=this['_locale'],_0x3a260d=[],_0x41c778=[],_0x3ada2e=[];for(const _0x1c7a5a of _0x4a6a15)switch(_0x1c7a5a['type']){case'text':if(_0x1c7a5a['add']=_0x1c7a5a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1c7a5a['remove']=_0x1c7a5a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1c7a5a['add']&&''!=_0x1c7a5a['remove']){_0x3a260d['push']({'type':'replace','content':o(_0x18b91b,'REPLACE_TEXT',['\x22'+_0x1c7a5a['remove']+'\x22','\x22'+_0x1c7a5a['add']+'\x22'])});continue;}if(null!=_0x1c7a5a['add']['match'](/^ +$/)){_0x3a260d['push']({'type':'insertion','content':o(_0x18b91b,'*Insert:*\x20%0',o(_0x18b91b,'ELEMENT_SPACE',_0x1c7a5a['add']['length']))});continue;}if(null!=_0x1c7a5a['remove']['match'](/^ +$/)){_0x3a260d['push']({'type':'deletion','content':o(_0x18b91b,'*Remove:*\x20%0',o(_0x18b91b,'ELEMENT_SPACE',_0x1c7a5a['remove']['length']))});continue;}if(''!=_0x1c7a5a['add']){_0x3a260d['push']({'type':'insertion','content':o(_0x18b91b,'*Insert:*\x20%0','\x22'+_0x1c7a5a['add']+'\x22')});continue;}_0x3a260d['push']({'type':'deletion','content':o(_0x18b91b,'*Remove:*\x20%0','\x22'+_0x1c7a5a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3a260d['push']({'type':'insertion','content':o(_0x18b91b,'*Insert:*\x20%0',this['getItemLabel'](_0x1c7a5a['element'],_0x1c7a5a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3a260d['push']({'type':'deletion','content':o(_0x18b91b,'*Remove:*\x20%0',this['getItemLabel'](_0x1c7a5a['element'],_0x1c7a5a['quantity']))});continue;case'addContainer':_0x3a260d['push']({'type':'insertion','content':o(_0x18b91b,'*Split:*\x20%0',this['getItemLabel'](_0x1c7a5a['element'],_0x1c7a5a['quantity']))});continue;case'removeContainer':_0x3a260d['push']({'type':'deletion','content':o(_0x18b91b,'*Merge:*\x20%0',this['getItemLabel'](_0x1c7a5a['element'],_0x1c7a5a['quantity']))});continue;case'addFormat':_0x41c778['push'](_0x1c7a5a['key']);continue;case'removeFormat':_0x3ada2e['push'](_0x1c7a5a['key']);continue;default:_0x3a260d['push'](_0x1c7a5a);}if(_0x41c778['length']){const _0x15525e=_0x41c778['map'](_0xf45b83=>this['_attributeLabels']['has'](_0xf45b83)?this['_attributeLabels']['get'](_0xf45b83):_0xf45b83)['join'](',\x20');_0x3a260d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x15525e)});}if(_0x3ada2e['length']){const _0x257711=_0x3ada2e['map'](_0x38c3aa=>this['_attributeLabels']['has'](_0x38c3aa)?this['_attributeLabels']['get'](_0x38c3aa):_0x38c3aa)['join'](',\x20');_0x3a260d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x257711)});}return _0x3a260d;}['_handleCustomCallbackDescription'](_0x2e5611){for(const _0x226932 of this['_customCallbacks']){const _0x20f39e=_0x226932(_0x2e5611);if(_0x20f39e&&'type'in _0x20f39e)return _0x20f39e;}}['_handleAttributeSuggestionDescription'](_0x1cd316,_0x208c37){const _0x69bf59=_0x208c37['data'],_0x4a3cef=void 0x0===_0x69bf59['newValue']?'removeFormat':'addFormat';_0x1cd316['push']({'type':_0x4a3cef,'key':_0x69bf59['key']});}['_handleRenameSuggestionDescription'](_0x13d901,_0xd6856b){_0x13d901['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xd6856b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3f8656,_0x3abbb8,_0x226ea5){if(this['_addDescriptionItems'](_0x3f8656,_0x3abbb8),_0x226ea5&&_0x226ea5['getFirstRange']()&&!_0x3abbb8['getFirstRange']()['end']['isEqual'](_0x226ea5['getFirstRange']()['start'])){const _0x2e3035=_0x3f8656[_0x3f8656['length']-0x1],_0x31aabd='insertion'==_0x3abbb8['type']?'add':'remove';_0x2e3035&&'text'==_0x2e3035['type']&&(_0x2e3035[_0x31aabd]+='\x0a');}}}class V extends _0x5bfee9{['afterInit'](){const _0x43a084=this['editor'],_0x2e6211=_0x43a084['plugins']['get']('TrackChangesEditing');_0x43a084['commands']['get']('showAIAssistant')&&_0x2e6211['enableCommand']('showAIAssistant');}}class U extends _0x5bfee9{['afterInit'](){const _0x591d11=this['editor'],_0x127e1d=_0x591d11['locale'];if(!_0x591d11['plugins']['has']('AlignmentEditing'))return;const _0x4d0398=_0x591d11['plugins']['get']('TrackChangesEditing');_0x4d0398['enableDefaultAttributesIntegration']('alignment'),_0x4d0398['registerBlockAttribute']('alignment'),_0x4d0398['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x127e1d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b2a9c=this['editor'],_0x5449b5=_0x2b2a9c['locale'];_0x2b2a9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5deef7=>{if('formatBlock'!=_0x5deef7['type'])return;const {data:_0x2750b1}=_0x5deef7;if(_0x2750b1&&'alignment'==_0x2750b1['commandName']){const _0x53650e=_0x2750b1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5449b5,'*Format:*\x20%0',function(_0xefca5c){switch(_0xefca5c){case'left':return o(_0x5449b5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5449b5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5449b5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5449b5,'FORMAT_JUSTIFY_TEXT');}}(_0x53650e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5bfee9{['afterInit'](){const _0x3aaffd=this['editor'],_0x5459eb=_0x3aaffd['plugins']['get']('TrackChangesEditing'),_0x59e462=_0x3aaffd['locale'];for(const _0x245d94 of ti){if(!_0x3aaffd['plugins']['has'](_0x245d94))continue;const _0x146579=_0x245d94['slice'](0x0,-0x7)['toLowerCase'](),_0x45e054='FORMAT_'+_0x146579['toUpperCase']();_0x5459eb['enableDefaultAttributesIntegration'](_0x146579),_0x5459eb['registerInlineAttribute'](_0x146579),_0x5459eb['descriptionFactory']['registerAttributeLabel'](_0x146579,o(_0x59e462,_0x45e054));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc03406=this['editor'],_0xa76bef=_0xc03406['locale'],_0x17b84f=_0xc03406['plugins']['get']('TrackChangesEditing');function _0x29bcbf(_0x2c1580,_0x53010d){_0x17b84f['descriptionFactory']['registerDescriptionCallback'](_0x3f7df5=>{if('formatInline'!=_0x3f7df5['type'])return;const {data:_0x2b11c2}=_0x3f7df5;return _0x2b11c2&&_0x2b11c2['commandName']===_0x2c1580?_0x2b11c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa76bef,'*Format:*\x20%0',_0x53010d)}:{'type':'format','content':o(_0xa76bef,'*Remove\x20format:*\x20%0',_0x53010d)}:void 0x0;});}_0x29bcbf('bold',o(_0xa76bef,'FORMAT_BOLD')),_0x29bcbf('italic',o(_0xa76bef,'FORMAT_ITALIC')),_0x29bcbf('underline',o(_0xa76bef,'FORMAT_UNDERLINE')),_0x29bcbf('code',o(_0xa76bef,'FORMAT_CODE')),_0x29bcbf('strikethrough',o(_0xa76bef,'FORMAT_STRIKETHROUGH')),_0x29bcbf('subscript',o(_0xa76bef,'FORMAT_SUBSCRIPT')),_0x29bcbf('superscript',o(_0xa76bef,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5bfee9{['afterInit'](){const _0x19a564=this['editor'],_0x23eb69=_0x19a564['locale'];if(!_0x19a564['plugins']['has']('BlockQuoteEditing'))return;const _0x29ca39=_0x19a564['plugins']['get']('TrackChangesEditing'),_0x5c3ae9=this['editor']['commands']['get']('blockQuote');_0x29ca39['enableCommand']('blockQuote',(_0x1b095c,_0x160954={})=>{const _0x250bc0=this['editor']['model']['document']['selection'],_0x456534=_0x160954&&void 0x0!==_0x160954['forceValue']?_0x160954['forceValue']:!_0x5c3ae9['value'];let _0x57b42f=[];if(_0x456534){const _0x15a15d=Array['from'](_0x250bc0['getSelectedBlocks']())['filter'](_0x22589c=>oo(_0x22589c)||function(_0x44f9f5,_0x3fffd2){const _0x4448a4=_0x3fffd2['checkChild'](_0x44f9f5['parent'],'blockQuote'),_0x2319e3=_0x3fffd2['checkChild'](['$root','blockQuote'],_0x44f9f5);return _0x4448a4&&_0x2319e3;}(_0x22589c,this['editor']['model']['schema']));_0x57b42f=to(_0x15a15d,_0x19a564['model']);}else{const _0x1030e0=Array['from'](_0x250bc0['getSelectedBlocks']())['filter'](_0x29373f=>oo(_0x29373f));_0x57b42f=to(_0x1030e0,_0x19a564['model']);}_0x19a564['model']['change'](()=>{for(const _0x38d113 of _0x57b42f)_0x29ca39['markBlockFormat'](_0x38d113,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x456534}]});});}),_0x29ca39['descriptionFactory']['registerDescriptionCallback'](_0x3d9de6=>{const {data:_0x2753da}=_0x3d9de6;if(_0x2753da&&'blockQuote'==_0x2753da['commandName']){const _0x5a8c79=o(_0x23eb69,'ELEMENT_BLOCK_QUOTE');return _0x2753da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23eb69,'*Set\x20format:*\x20%0',_0x5a8c79)}:{'type':'format','content':o(_0x23eb69,'*Remove\x20format:*\x20%0',_0x5a8c79)};}});}}function oo(_0x5a3128){return'blockQuote'==_0x5a3128['parent']['name'];}class L extends _0x5bfee9{['afterInit'](){const _0x4d5123=this['editor'];_0x4d5123['plugins']['has']('CaseChange')&&(_0x4d5123['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4d5123['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4d5123['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5bfee9{['afterInit'](){const _0x457ade=this['editor'];_0x457ade['commands']['get']('ckbox')&&_0x457ade['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x5bfee9{['afterInit'](){const _0x536996=this['editor'];if(!_0x536996['plugins']['has']('CodeBlock'))return;const _0x1b16e5=_0x536996['plugins']['get']('TrackChangesEditing'),_0x5d10df=_0x536996['locale'],_0x1a5814=_0x536996['config']['get']('codeBlock')['languages'],_0x3ccfcf=_0x536996['commands']['get']('codeBlock');_0x1b16e5['enableCommand']('indentCodeBlock'),_0x1b16e5['enableCommand']('outdentCodeBlock'),_0x1b16e5['enableCommand']('codeBlock',(_0x150b89,_0x5d6e4a={})=>{const _0x3f2c6d=_0x536996['model'],_0x5290bd=_0x536996['model']['document']['selection'],_0x3cad36=_0x5d6e4a&&void 0x0!==_0x5d6e4a['forceValue']?_0x5d6e4a['forceValue']:!_0x3ccfcf['value'];let _0x5b9221;_0x5d6e4a['language']||(_0x5d6e4a['language']=_0x1a5814[0x0]['language']),_0x5b9221=_0x3cad36?Array['from'](_0x5290bd['getSelectedBlocks']())['filter'](_0x1cbc33=>eo(_0x1cbc33)||function(_0x99c7e2,_0x2af540){if(_0x99c7e2['is']('rootElement')||_0x2af540['isLimit'](_0x99c7e2))return!0x1;return _0x2af540['checkChild'](_0x99c7e2['parent'],'codeBlock');}(_0x1cbc33,_0x3f2c6d['schema'])):Array['from'](_0x5290bd['getSelectedBlocks']())['filter'](_0x48db32=>eo(_0x48db32));const _0x17d628=to(_0x5b9221,_0x3f2c6d);_0x3f2c6d['change'](()=>{for(const _0x34e211 of _0x17d628)_0x1b16e5['markBlockFormat'](_0x34e211,{'commandName':'codeBlock','commandParams':[{..._0x5d6e4a,'forceValue':_0x3cad36}],'formatGroupId':'blockName'});});}),(_0x1b16e5['descriptionFactory']['registerElementLabel']('codeBlock',_0x1c9625=>o(_0x5d10df,'ELEMENT_CODE_BLOCK',_0x1c9625)),_0x1b16e5['descriptionFactory']['registerDescriptionCallback'](_0x5332e7=>{if('formatBlock'!=_0x5332e7['type'])return;const _0x395aa4=_0x5d10df['t'],{data:_0x3bc3bf}=_0x5332e7;if(!_0x3bc3bf||'codeBlock'!=_0x3bc3bf['commandName'])return;const _0x5e20be=_0x3bc3bf['commandParams'][0x0]['language'],_0x4cad20=_0x395aa4(_0x1a5814['find'](_0x1d09da=>_0x1d09da['language']===_0x5e20be)['label'])['toLowerCase']();return _0x3bc3bf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d10df,'*Set\x20format:*\x20%0',o(_0x5d10df,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4cad20+')')}:{'type':'format','content':o(_0x5d10df,'*Remove\x20format:*\x20%0',o(_0x5d10df,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2c82f9){return'codeBlock'==_0x2c82f9['name'];}class q extends _0x5bfee9{['afterInit'](){const _0x2a3610=this['editor'];if(!_0x2a3610['plugins']['has']('CommentsEditing'))return;_0x2a3610['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4c028e,_0x47f0a5,_0x27de26){const _0x5c0e9d=[];for(const _0x2966c9 of _0x47f0a5['getItems']())_0x2966c9['hasAttribute'](_0x4c028e)&&_0x5c0e9d['push'](_0x27de26['createRangeOn'](_0x2966c9));return _0x5c0e9d;}function _e(_0xe941d7,_0x524fc4,{showActiveMarker:_0x4e00a4=!0x0}={}){const _0x7c06f=_0xe941d7['plugins']['get']('TrackChangesEditing');return(_0x3c991c,_0xdb2e6f,_0x2233f8)=>{if(!_0x2233f8['consumable']['test'](_0xdb2e6f['markerRange'],_0x3c991c['name']))return;const _0x3c44df=_0xdb2e6f['markerRange']['getWalker'](),_0x42f6ea=_0xdb2e6f['markerRange']['start'],_0x3c8de4=_0xe941d7['model']['schema'];let _0x3e0020=null,_0x5af96f=null,_0x27468b=!0x1,_0x2a137a=!0x1;for(const _0x4504fc of _0x3c44df){const _0x12db74=_0x4504fc['item'];_0x27468b=_0x27468b||_0x3c8de4['isContent'](_0x12db74);const _0x24e8bd=_0x2233f8['mapper']['toViewElement'](_0x12db74);if(_0x24e8bd&&_0x24e8bd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4504fc['type']&&(_0x3c8de4['isBlock'](_0x12db74)&&!_0x3c8de4['isLimit'](_0x12db74)&&(_0x12db74['nextSibling']||_0x42f6ea['isAtEnd']?_0x3e0020&&_0x3e0020['parent']==_0x12db74||(_0x3e0020=_0x12db74,_0x152df5(_0x4504fc['previousPosition']),_0x2a137a=!0x0):_0x5af96f=_0x5af96f||_0x4504fc['previousPosition']));}function _0x152df5(_0x474a38){const {authorId:_0x463ac8}=_0x7c06f['_splitMarkerName'](_0xdb2e6f['markerName']),_0x3feb30=_0x2233f8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x524fc4,'data-author-id':_0x463ac8}),_0x275728=_0x2233f8['mapper']['toViewPosition'](_0x474a38);_0x4e00a4&&_0x7c06f['activeMarkers']['includes'](_0xdb2e6f['markerName'])&&_0x2233f8['writer']['addClass']('ck-suggestion-marker--active',_0x3feb30),_0x2233f8['writer']['insert'](_0x275728,_0x3feb30),_0x2233f8['mapper']['bindElementToMarker'](_0x3feb30,_0xdb2e6f['markerName']);}_0x27468b||_0x2a137a||!_0x5af96f||_0x152df5(_0x5af96f);};}class z extends _0x5bfee9{static get['requires'](){return[_0x520c2f];}['init'](){const _0x4012fc=this['editor'],_0x3d5fc6=_0x4012fc['plugins']['get']('TrackChangesEditing');_0x3d5fc6['enableCommand']('delete');const _0x3587ec=_0x4012fc['commands']['get']('deleteForward');_0x3d5fc6['enableCommand']('deleteForward',(_0x42043a,_0x30f965={})=>{const _0x11a9cc=_0x4012fc['model']['createSelection'](_0x4012fc['model']['document']['selection']);_0x11a9cc['isCollapsed']&&_0x4012fc['model']['modifySelection'](_0x11a9cc,{'direction':'forward','unit':_0x30f965['unit']});const _0x33aba6=_0x11a9cc['getFirstRange'](),_0xd8b264=_0x50563c['fromRange'](_0x33aba6);let _0x566c94;_0x42043a(_0x30f965),_0x566c94='$graveyard'==_0xd8b264['root']['rootName']?_0x4012fc['model']['createRange'](_0x33aba6['start']):_0x4012fc['model']['createRange'](_0xd8b264['start'],_0xd8b264['end']),_0xd8b264['detach'](),_0x4012fc['model']['enqueueChange'](_0x3587ec['buffer']['batch'],_0x469f14=>{_0x3587ec['buffer']['lock'](),_0x469f14['setSelection'](_0x469f14['createRange'](_0x566c94['end'])),_0x3587ec['buffer']['unlock']();});}),_0x4012fc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4012fc,'merge'),{'priority':'high'}),_0x4012fc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1ac3b5,_0x37f5e1,_0x1324b5)=>{_0x1324b5['options']['showSuggestionHighlights']&&_e(_0x4012fc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1ac3b5,_0x37f5e1,_0x1324b5);},{'priority':'high'}),_0x4012fc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x57f90c,_0x3be3ce,_0x3f9a13)=>{const _0x56b695=_0x3f9a13['mapper']['markerNameToElements'](_0x3be3ce['markerName']);if(_0x56b695){for(const _0x5e0947 of _0x56b695)_0x5e0947['is']('uiElement')&&(_0x3f9a13['mapper']['unbindElementFromMarkerName'](_0x5e0947,_0x3be3ce['markerName']),_0x3f9a13['writer']['remove'](_0x5e0947));}},{'priority':'high'});}}class K extends _0x5bfee9{['afterInit'](){const _0x35b013=this['editor'];if(!_0x35b013['plugins']['has']('ListEditing'))return;const _0x1ea6cc=_0x35b013['locale'],_0x239aab=_0x35b013['plugins']['get']('TrackChangesEditing'),_0x283ab3=_0x35b013['plugins']['has']('TodoListEditing'),_0x246430=!!_0x35b013['config']['get']('list.multiBlock');function _0x55888d(_0x1fcaf){return{'type':'format','content':''+o(_0x1ea6cc,'*Set\x20format:*\x20%0',_0x1fcaf)};}function _0x3359b4(_0xb3c6ba){return{'type':'format','content':''+o(_0x1ea6cc,'*Remove\x20format:*\x20%0',_0xb3c6ba)};}_0x239aab['enableDefaultAttributesIntegration']('numberedList'),_0x239aab['enableDefaultAttributesIntegration']('bulletedList'),_0x239aab['enableDefaultAttributesIntegration']('customNumberedList'),_0x239aab['enableDefaultAttributesIntegration']('customBulletedList'),_0x239aab['enableDefaultAttributesIntegration']('indentList'),_0x239aab['enableDefaultAttributesIntegration']('outdentList'),_0x239aab['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x239aab['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x239aab['registerBlockAttribute']('listItemId'),_0x239aab['registerBlockAttribute']('listType'),_0x239aab['registerBlockAttribute']('listIndent'),_0x246430&&(_0x239aab['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x239aab['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x283ab3&&(_0x239aab['enableDefaultAttributesIntegration']('todoList'),_0x239aab['enableDefaultAttributesIntegration']('checkTodoList'),_0x239aab['registerBlockAttribute']('todoListChecked'),_0x239aab['descriptionFactory']['registerDescriptionCallback'](_0x1f40ed=>{const {data:_0x4cbe7d}=_0x1f40ed;if(_0x4cbe7d&&'todoListChecked'==_0x4cbe7d['key'])return{'type':'format','content':_0x4cbe7d['newValue']?o(_0x1ea6cc,'*Check\x20item*'):o(_0x1ea6cc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x196a81=>{if(_0x196a81['batch']['isUndo'])return!0x1;let _0x2738aa=!0x1;const _0x2d3e40=_0x239aab['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x595358=>'todoListChecked'===_0x239aab['_getAttributeKey'](_0x595358));for(const _0x3ecc75 of _0x2d3e40){'todo'!=_0x3ecc75['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x239aab['_findSuggestions'](_0x3ecc75['getFirstRange'](),'attribute')['find'](_0x36bf89=>'listType'===_0x239aab['_getAttributeKey'](_0x36bf89['suggestion']))||(_0x196a81['removeMarker'](_0x3ecc75['getFirstMarker']()),_0x2738aa=!0x0));}return _0x2738aa;})),_0x239aab['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1ea6cc,'FORMAT_INDENT'));const _0xd1a1c={'type':'format','content':''};_0x239aab['descriptionFactory']['registerDescriptionCallback'](_0x10eb0c=>{const {data:_0x525eb5}=_0x10eb0c;if(!_0x525eb5||'listType'!=_0x525eb5['key'])return;let _0x10d5cd=_0x10eb0c['head'];for(;_0x10d5cd;){if(_0x10d5cd['data']&&(('listStyle'==_0x10d5cd['data']['key']||'listMarkerStyle'==_0x10d5cd['data']['key'])&&(_0x10d5cd['data']['newValue']&&'default'!=_0x10d5cd['data']['newValue']||'default'!=_0x10d5cd['data']['oldValue']&&!_0x525eb5['newValue'])||!_0x246430&&_0x10d5cd['data']['key']==m))return _0xd1a1c;_0x10d5cd=_0x10d5cd['next'];}if(null==_0x525eb5['newValue'])switch(_0x525eb5['oldValue']){case'bulleted':return _0x3359b4(o(_0x1ea6cc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3359b4(o(_0x1ea6cc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3359b4(o(_0x1ea6cc,'ELEMENT_TODO_LIST'));}switch(_0x525eb5['newValue']){case'bulleted':return _0x55888d(o(_0x1ea6cc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55888d(o(_0x1ea6cc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55888d(o(_0x1ea6cc,'ELEMENT_TODO_LIST'));}}),_0x239aab['descriptionFactory']['registerDescriptionCallback'](_0x445f30=>{const {data:_0x38f038}=_0x445f30;if(_0x38f038&&'listIndent'==_0x38f038['key'])return null==_0x38f038['newValue']||null==_0x38f038['oldValue']&&0x0==_0x38f038['newValue']?_0xd1a1c:void 0x0;}),_0x239aab['descriptionFactory']['registerDescriptionCallback'](_0x4eb6d5=>{if('attribute'!=_0x4eb6d5['type'])return;const {data:_0xc1a47b}=_0x4eb6d5;if(!_0xc1a47b||'listItemId'!=_0xc1a47b['key'])return;const _0x3db099=Ee(_0x4eb6d5);return'newValue'==_0x3db099?{'type':'format','content':o(_0x1ea6cc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3db099?{'type':'format','content':o(_0x1ea6cc,'*Split:*\x20list\x20item')}:_0xd1a1c;}),_0x35b013['model']['document']['registerPostFixer'](_0x2f4c44=>this['listItemIdFixer'](_0x2f4c44)),_0x35b013['model']['document']['registerPostFixer'](_0x1d9712=>this['noTrackChangesFixer'](_0x1d9712)),_0x35b013['model']['document']['on']('change:data',(_0x2a9fbb,_0x31af58)=>{if(_0x31af58['isUndo']||!_0x31af58['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x536158){if(_0x536158['batch']['isUndo']||!_0x536158['batch']['isLocal'])return!0x1;let _0xe21055=!0x1;const _0x4fe8ed=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c7320=>_0x5c7320['data']&&'listItemId'==_0x5c7320['data']['key'])['filter'](_0x522ac4=>_0x522ac4['data']['newValue']&&_0x522ac4['data']['oldValue']);for(const _0x1d87b7 of _0x4fe8ed)Ee(_0x1d87b7)||(_0x536158['removeMarker'](_0x1d87b7['getFirstMarker']()),_0xe21055=!0x0);return _0xe21055;}['noTrackChangesFixer'](_0xd182cf){if(_0xd182cf['batch']['isUndo']||!_0xd182cf['batch']['isLocal'])return!0x1;const _0x24db5b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x24db5b['trackChangesCommand']['value'])return!0x1;let _0x7b742f=!0x1;const _0x24f5e8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x45d43d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1bb49e=>'attribute'==_0x1bb49e['type'])['filter'](_0x9ce2df=>_0x24f5e8['includes'](_0x9ce2df['attributeKey']));if(0x0==_0x45d43d['length'])return _0x7b742f;for(const _0x30ca1f of _0x45d43d){const _0x104a54=_0x24db5b['_findSuggestions'](_0x30ca1f['range'],'attribute')['filter'](_0x177734=>!_0x177734['meta']['isNextTo'])['map'](_0x4ef9a0=>_0x4ef9a0['suggestion'])['filter'](_0x9a8d69=>{const _0x571867=_0x24db5b['_getAttributeKey'](_0x9a8d69);return _0x24f5e8['includes'](_0x571867);});if(_0x104a54['length']){for(const _0x441c77 of _0x104a54)_0xd182cf['removeMarker'](_0x441c77['getFirstMarker']());_0x7b742f=!0x0;}}return _0x7b742f;}['assureChains'](){const _0x547ace=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39a4bd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3542e4;const _0x2ddae7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x115c5e=>{if(_0x115c5e['data']['oldRange']||!_0x115c5e['data']['newRange'])return null;if(!_0x115c5e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5c4894}=_0x547ace['_splitMarkerName'](_0x115c5e['name']);if(!_0x547ace['hasSuggestion'](_0x5c4894))return null;const _0x1691a6=_0x547ace['getSuggestion'](_0x5c4894);return _0x39a4bd['includes'](_0x1691a6['data']['key']);})['map'](_0xb6de6c=>{const {id:_0x32f4bc}=_0x547ace['_splitMarkerName'](_0xb6de6c['name']),_0x1ae63e=_0x547ace['getSuggestion'](_0x32f4bc);return _0x3542e4=_0x1ae63e['attributes']['groupId'],_0x1ae63e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2ddae7['size'])return;const _0x246e18=_0x547ace['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41c617=>'attribute'==_0x41c617['type']&&_0x41c617['data']&&_0x39a4bd['includes'](_0x41c617['data']['key'])&&_0x41c617['attributes']['groupId']!=_0x3542e4)['map'](_0x14e799=>({'listItem':_0x14e799['getFirstRange']()['start']['nodeAfter'],'groupId':_0x14e799['attributes']['groupId']})),_0x3de431=new Set();for(const {groupId:_0x273b5d,listItem:_0x3255f8}of _0x246e18)_0x2ddae7['has'](_0x3255f8)&&_0x3de431['add'](_0x273b5d);for(const _0x49deea of _0x547ace['getSuggestions']())_0x3de431['has'](_0x49deea['attributes']['groupId'])&&_0x49deea['setAttribute']('groupId',_0x3542e4);}['_supportLegacySuggestions'](){const _0xa874c4=this['editor'],_0x42734c=_0xa874c4['locale'],_0x53a78f=_0xa874c4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x53a78f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3afe16,_0x59e630){const _0x5c1532=[];for(let _0x23e8ca of _0x3afe16)_0x23e8ca['start']['nodeAfter']===_0x23e8ca['end']['parent']&&(_0x23e8ca=_0xa874c4['model']['createRange'](_0xa874c4['model']['createPositionAt'](_0x23e8ca['start']['nodeAfter'],0x0))),_0x5c1532['push'](_0x23e8ca);_0xa874c4['model']['change'](_0x29fbec=>{const _0x2e7d6e=_0xa874c4['model']['document']['selection'],_0x439564=Array['from'](_0x2e7d6e['getRanges']())['map'](_0x116649=>_0x50563c['fromRange'](_0x116649));_0x29fbec['setSelection'](_0x5c1532),_0xa874c4['commands']['get'](_0x59e630['commandName'])['refresh'](),_0x59e630['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa874c4['execute'](_0x59e630['commandName'],..._0x59e630['commandParams']),_0x29fbec['setSelection'](_0x439564);for(const _0x2af23e of _0x439564)_0x2af23e['detach']();});}),_0x53a78f['descriptionFactory']['registerElementLabel'](function(_0x22a2a2){const _0x57f085=!_0xa874c4['model']['schema']['isObject'](_0x22a2a2),_0x1ed347=_0x22a2a2['previousSibling'],_0x12da8a=_0x22a2a2['nextSibling'],_0x31564d=_0x22a2a2['getAttribute']('listItemId'),_0x4e494f=!_0x1ed347||_0x1ed347['getAttribute']('listItemId')!==_0x31564d,_0x4e929a=!_0x12da8a||_0x12da8a['getAttribute']('listItemId')!==_0x31564d;return _0x57f085&&Boolean(_0x31564d)&&_0x4e494f&&_0x4e929a;},_0x7896ed=>o(_0x42734c,'ELEMENT_LIST_ITEM',_0x7896ed));}['_registerLegacyDescription'](){const _0x411631=this['editor'],_0x22af71=_0x411631['locale'];function _0xdbf5c2(_0x2c7e4f){const _0x29f9dd=_0x411631['commands']['get']('bulletedList')['value'],_0x38cb6c=_0x411631['commands']['get']('numberedList')['value'];return'numberedList'===_0x2c7e4f?_0x29f9dd:_0x38cb6c;}_0x411631['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x28b832){if('formatBlock'!=_0x28b832['type'])return;const {data:_0x1111b0}=_0x28b832;if(!_0x1111b0)return;let _0x5a5f27,_0x1644b1,_0x2ac402,_0x3fba22;switch(_0x1111b0['commandName']){case'bulletedList':_0x2ac402=_0x1111b0['commandParams'][0x0]['forceValue'],_0x3fba22=_0xdbf5c2(_0x1111b0['commandName']),_0x5a5f27=_0x2ac402?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3fba22&&_0x411631['config']['get']('list.multiBlock')||(_0x5a5f27='*Change\x20to:*\x20%0'),_0x1644b1={'type':'format','content':o(_0x22af71,_0x5a5f27,o(_0x22af71,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2ac402=_0x1111b0['commandParams'][0x0]['forceValue'],_0x3fba22=_0xdbf5c2(_0x1111b0['commandName']),_0x5a5f27=_0x2ac402?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3fba22&&_0x411631['config']['get']('list.multiBlock')||(_0x5a5f27='*Change\x20to:*\x20%0'),_0x1644b1={'type':'format','content':o(_0x22af71,_0x5a5f27,o(_0x22af71,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5a5f27='*Indent:*\x20%0',_0x1644b1={'type':'format','content':o(_0x22af71,_0x5a5f27,o(_0x22af71,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5a5f27=function(_0x32ddc5){const _0x3a9e1b=_0x32ddc5['getFirstRange']();let _0x337d25=_0x3a9e1b['start']['nodeAfter'];for(;_0x337d25&&_0x3a9e1b['containsItem'](_0x337d25);){if(_0x337d25['getAttribute']('listIndent')>0x0)return!0x1;_0x337d25=_0x337d25['nextSibling'];}return!0x0;}(_0x28b832)?o(_0x22af71,'*Format:*\x20remove\x20from\x20%0',o(_0x22af71,function(_0x10d394){return'ELEMENT_'+_0x10d394['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x28b832))):o(_0x22af71,'*Outdent:*\x20%0',o(_0x22af71,'ELEMENT_LIST_ITEM')),_0x1644b1={'type':'format','content':_0x5a5f27};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1111b0['multipleBlocks']&&(_0x5a5f27='*Merge:*\x20%0',_0x1644b1={'type':'deletion','content':o(_0x22af71,_0x5a5f27,o(_0x22af71,'ELEMENT_LIST_ITEM'))});}return _0x1644b1;});}}function Ee(_0x4622cd){let _0x268873=_0x4622cd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x268873;){const _0x44de0d=_0x268873['getAttribute']('listItemId');if(!_0x44de0d)return!0x1;if(_0x44de0d==_0x4622cd['data']['newValue'])return'newValue';if(_0x44de0d==_0x4622cd['data']['oldValue'])return'oldValue';_0x268873=_0x268873['previousSibling'];}return!0x1;}class pe extends _0x5bfee9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x9c3d2=this['editor']['config']['get']('list.properties'),_0x48b52e=this['editor']['plugins']['get']('TrackChangesEditing');_0x9c3d2['styles']&&(_0x48b52e['enableDefaultAttributesIntegration']('listStyle'),_0x48b52e['registerBlockAttribute']('listStyle')),_0x9c3d2['reversed']&&(_0x48b52e['enableDefaultAttributesIntegration']('listReversed'),_0x48b52e['registerBlockAttribute']('listReversed')),_0x9c3d2['startIndex']&&(_0x48b52e['enableDefaultAttributesIntegration']('listStart'),_0x48b52e['registerBlockAttribute']('listStart'));const _0x16ee9c={'type':'format','content':''};_0x48b52e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x12c59d=this['editor']['locale'];_0x48b52e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x12c59d,'FORMAT_LIST_REVERSED')),_0x48b52e['descriptionFactory']['registerDescriptionCallback'](_0x3723e9=>{const {data:_0x3a6883}=_0x3723e9;if(_0x3a6883&&'listReversed'==_0x3a6883['key'])return null==_0x3a6883['newValue']||0x0==_0x3a6883['newValue']&&null==_0x3a6883['oldValue']?_0x16ee9c:void 0x0;}),_0x48b52e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x12c59d,'FORMAT_LIST_START')),_0x48b52e['descriptionFactory']['registerDescriptionCallback'](_0x521381=>{const {data:_0x924c40}=_0x521381;if(_0x924c40&&'listStart'==_0x924c40['key'])return null==_0x924c40['newValue']||0x1==_0x924c40['newValue']&&null==_0x924c40['oldValue']?_0x16ee9c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x28bdd6=>{if(_0x28bdd6['batch']['isUndo'])return!0x1;let _0x308ced=!0x1;const _0x50fb2b=_0x48b52e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x511c27=>{const _0x498bb0=_0x48b52e['_getAttributeKey'](_0x511c27);return'listStart'==_0x498bb0||'listReversed'==_0x498bb0;});for(const _0x1a2a96 of _0x50fb2b){const _0x1a092b=_0x1a2a96['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1a092b||'customNumbered'==_0x1a092b)continue;_0x48b52e['_findSuggestions'](_0x1a2a96['getFirstRange'](),'attribute')['find'](_0x23bd91=>'listType'==_0x48b52e['_getAttributeKey'](_0x23bd91['suggestion']))||(_0x28bdd6['removeMarker'](_0x1a2a96['getFirstMarker']()),_0x308ced=!0x0);}return _0x308ced;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xa31364){const _0x4588a8=this['editor']['locale'],{data:_0x277100}=_0xa31364,_0x3d78dc={'type':'format','content':''};if(!_0x277100||'listStyle'!=_0x277100['key'])return;if(!_0x277100['oldValue'])return'default'==_0x277100['newValue']?_0x3d78dc:{'type':'format','content':''+o(_0x4588a8,'*Set\x20format:*\x20%0',o(_0x4588a8,this['_getTranslationKeyForListStyle'](_0x277100['newValue'])))};if(!_0x277100['newValue']){if('default'==_0x277100['oldValue'])return _0x3d78dc;let _0x13c244=_0xa31364['head'];for(;_0x13c244;){if(_0x13c244['data']&&'listType'==_0x13c244['data']['key']&&_0x13c244['data']['newValue'])return _0x3d78dc;_0x13c244=_0x13c244['next'];}return{'type':'format','content':''+o(_0x4588a8,'*Remove\x20format:*\x20%0',o(_0x4588a8,this['_getTranslationKeyForListStyle'](_0x277100['oldValue'])))};}if('default'!=_0x277100['newValue'])return{'type':'format','content':''+o(_0x4588a8,'*Set\x20format:*\x20%0',o(_0x4588a8,this['_getTranslationKeyForListStyle'](_0x277100['newValue'])))};let _0x3a502d=_0xa31364['head'];for(;_0x3a502d;){if(_0x3a502d['data']&&'listType'==_0x3a502d['data']['key']&&_0x3a502d['data']['newValue']&&_0x3a502d['data']['oldValue'])return _0x3d78dc;_0x3a502d=_0x3a502d['next'];}return{'type':'format','content':o(_0x4588a8,'*Set\x20format:*\x20%0',o(_0x4588a8,'ELEMENT_'+_0xa31364['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x43a27b=this['editor'],_0x5e0e7b=_0x43a27b['locale'];_0x43a27b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17d4d3=>{if('formatBlock'!=_0x17d4d3['type'])return;const {data:_0x40978e}=_0x17d4d3;if(!_0x40978e)return;let _0xde82c7,_0x417455;switch(_0x40978e['commandName']){case'listStyle':_0xde82c7='*Change\x20to:*\x20%0',_0x417455={'type':'format','content':o(_0x5e0e7b,_0xde82c7,o(_0x5e0e7b,this['_getTranslationKeyForListStyle'](_0x40978e['commandParams'][0x0]['type'])))};break;case'listReversed':_0xde82c7=_0x40978e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x417455={'type':'format','content':o(_0x5e0e7b,_0xde82c7)};break;case'listStart':_0xde82c7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x417455={'type':'format','content':o(_0x5e0e7b,_0xde82c7,_0x40978e['commandParams'][0x0]['startIndex'])};}return _0x417455;});}['_getTranslationKeyForListStyle'](_0xcdbac7){return'ELEMENT_'+function(_0x85281d){if(ye['includes'](_0x85281d))return'bulleted';if(Se['includes'](_0x85281d))return'numbered';return null;}(_0xcdbac7)['toUpperCase']()+'_LIST_'+_0xcdbac7['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x5bfee9{static get['requires'](){return[_0x2fa8f3];}['init'](){const _0x174d8e=this['editor'],_0x3682e4=_0x174d8e['plugins']['get']('TrackChangesEditing'),_0x193bcb=_0x174d8e['commands']['get']('enter');_0x3682e4['enableCommand']('enter',()=>{_0x174d8e['model']['change'](_0x27cc47=>{const _0x4bed75=_0x174d8e['model']['document']['selection'],_0x45d526=_0x4bed75['getFirstPosition'](),_0x44051c=_0x50563c['fromRange'](_0x4bed75['getFirstRange']());if(_0x193bcb['enterBlock'](_0x27cc47)){const _0x51e04a=_0x174d8e['model']['createPositionAt'](_0x45d526['parent']['nextSibling'],0x0),_0x2b0776=_0x27cc47['createRange'](_0x45d526,_0x51e04a);_0x3682e4['markInsertion'](_0x2b0776);}else _0x27cc47['setSelection'](_0x27cc47['createRange'](_0x44051c['end']));_0x44051c['detach'](),_0x193bcb['fire']('afterExecute',{'writer':_0x27cc47});});}),_0x174d8e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x174d8e,'split'),{'priority':'high'}),_0x174d8e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x497a6b,_0x15933c,_0x25faba)=>{const _0x1db4a5=_0x25faba['mapper']['markerNameToElements'](_0x15933c['markerName']);if(_0x1db4a5){for(const _0x105bf2 of _0x1db4a5)_0x105bf2['hasClass']('ck-suggestion-marker-split')&&(_0x25faba['mapper']['unbindElementFromMarkerName'](_0x105bf2,_0x15933c['markerName']),_0x25faba['writer']['remove'](_0x105bf2));}},{'priority':'high'}),_0x174d8e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ccb92,_0x346e15,_0x258098)=>{_0x258098['options']['showSuggestionHighlights']&&_e(_0x174d8e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1ccb92,_0x346e15,_0x258098);},{'priority':'high'});}}class X extends _0x5bfee9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x21b98a=this['editor']['plugins']['get']('TrackChangesEditing');_0x21b98a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x21b98a['enableCommand']('findNext'),_0x21b98a['enableCommand']('findPrevious'),_0x21b98a['enableCommand']('replace'),_0x21b98a['enableCommand']('replaceAll');}['handleFindCommand'](_0x464b3a,_0x2c4153,_0x23a985={}){const _0x4d00dc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x464b3a(_0x41c9d7=>{let _0x3fabc2=('string'==typeof _0x2c4153?_0x4d00dc['findByTextCallback'](_0x2c4153,_0x23a985):_0x2c4153)(_0x41c9d7);Array['isArray'](_0x3fabc2)&&(_0x3fabc2={'results':_0x3fabc2,'searchText':'string'==typeof _0x2c4153?_0x2c4153:''});const _0x2716f6=_0x3fabc2['results']['filter'](_0x1d40ed=>!0x1===this['_isInDeletionRange'](_0x1d40ed,_0x41c9d7['item']));return{..._0x3fabc2,'results':_0x2716f6};},_0x23a985);}['_isInDeletionRange'](_0x17eecf,_0x377d36){const _0x273e16=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x377d36,_0x17eecf['start']),this['editor']['model']['createPositionAt'](_0x377d36,_0x17eecf['end']));for(const _0x4589a1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x273e16['getIntersection'](_0x4589a1['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x5bfee9{['afterInit'](){const _0x2d9502=this['editor']['locale'],_0x4ae5f2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x129ae5,commandName:_0x19c8fa}of ro)this['editor']['plugins']['has'](_0x129ae5)&&(_0x4ae5f2['enableDefaultAttributesIntegration'](_0x19c8fa),_0x4ae5f2['registerInlineAttribute'](_0x19c8fa));_0x4ae5f2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2d9502,'FORMAT_FONT_SIZE')),_0x4ae5f2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2d9502,'FORMAT_FONT_FAMILY')),_0x4ae5f2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2d9502,'FORMAT_FONT_COLOR')),_0x4ae5f2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2d9502,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22ed46=this['editor'],_0x5a004c=_0x22ed46['locale'];_0x22ed46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1a63=>{const _0x15384c=_0x5a004c['t'];if('formatInline'!=_0x4a1a63['type'])return;const {data:_0x1c89fe}=_0x4a1a63;if(null!=_0x1c89fe){if('fontSize'==_0x1c89fe['commandName']){const _0x11978e=_0x1c89fe['commandParams'][0x0]['value'];if(_0x11978e){const _0x4462d5=_0x15384c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3fccd9=>_0x3fccd9['model']==_0x11978e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5a004c,'*Set\x20font\x20size:*\x20%0',_0x4462d5)};}return{'type':'format','content':o(_0x5a004c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1c89fe['commandName']){const _0x26d7b5=_0x1c89fe['commandParams'][0x0]['value'];return _0x26d7b5?{'type':'format','content':o(_0x5a004c,'*Set\x20font\x20family:*\x20%0',_0x26d7b5)}:{'type':'format','content':o(_0x5a004c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1c89fe['commandName']){const _0x7d712d=_0x1c89fe['commandParams'][0x0]['value'];if(_0x7d712d){const _0x2d1c61=_0x51676d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x51ed4e=>_0x51ed4e['model']==_0x7d712d);let _0x2b4c16=_0x7d712d,_0x206315='';return _0x2d1c61&&(_0x2b4c16=_0x2d1c61['label'],_0x206315=_0x15384c(_0x2b4c16)['toLowerCase']()),{'type':'format','content':o(_0x5a004c,'*Set\x20font\x20color:*\x20%0',_0x206315)['trim'](),'color':{'value':_0x7d712d,'title':_0x206315||_0x2b4c16}};}return{'type':'format','content':o(_0x5a004c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1c89fe['commandName']){const _0x1b07d3=_0x1c89fe['commandParams'][0x0]['value'];if(_0x1b07d3){const _0x143a96=_0x51676d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5c2c2f=>_0x5c2c2f['model']==_0x1b07d3);let _0x3c11dd=_0x1b07d3,_0x5a1c58='';return _0x143a96&&(_0x3c11dd=_0x143a96['label'],_0x5a1c58=_0x15384c(_0x3c11dd)['toLowerCase']()),{'type':'format','content':o(_0x5a004c,'*Set\x20font\x20background\x20color:*\x20%0',_0x5a1c58)['trim'](),'color':{'value':_0x1b07d3,'title':_0x5a1c58||_0x3c11dd}};}return{'type':'format','content':o(_0x5a004c,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x5bfee9{['afterInit'](){const _0x4871d3=this['editor'],_0x23dfcf=_0x4871d3['plugins']['get']('TrackChangesEditing'),_0x4fddda=_0x4871d3['commands']['get']('copyFormat'),_0x251104=_0x4871d3['commands']['get']('pasteFormat');_0x4fddda&&_0x251104&&(_0x23dfcf['enableDefaultAttributesIntegration']('pasteFormat'),_0x23dfcf['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5d2826=this['editor'],_0x3f1e2e=_0x5d2826['locale'];_0x5d2826['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f8a7=>{if('formatBlock'!=_0x38f8a7['type']&&'formatInline'!=_0x38f8a7['type'])return;const {data:_0x276248}=_0x38f8a7;if(_0x276248&&'pasteFormat'===_0x276248['commandName']){const _0x49eba8=[],_0x494eca=_0x276248['commandParams'][0x0];for(const [_0x4bd5dd,_0x3e26b4]of Object['entries'](_0x494eca))_0x49eba8['push'](so(_0x5d2826,_0x4bd5dd,_0x3e26b4));return _0x49eba8['length']?{'type':'format','content':o(_0x3f1e2e,'*Set\x20format\x20to:*\x20%0',_0x49eba8['join'](',\x20'))}:{'type':'format','content':o(_0x3f1e2e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x527410,_0x1fe53b,_0x22f759){const _0x110635=_0x527410['locale']['t'],_0x220ed1=_0x1fe53b['split'](/(?=[A-Z])/)['join']('\x20'),_0x4b0e1b=_0x110635(_0x220ed1['charAt'](0x0)['toUpperCase']()+_0x220ed1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x22f759)return _0x4b0e1b;if('fontColor'===_0x1fe53b||'fontBackgroundColor'===_0x1fe53b){const _0x8494b9=_0x51676d(_0x527410['config']['get']('fontColor.colors'))['find'](_0x54613b=>_0x54613b['model']==_0x22f759);return _0x4b0e1b+'\x20('+(_0x8494b9?_0x110635(_0x8494b9['label'])['toLowerCase']():_0x22f759)+')';}if('fontSize'===_0x1fe53b&&isNaN(parseFloat(_0x22f759))){const _0x414e53=_0x527410['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x527410['config']['get']('fontSize.options'))['find'](_0x1e04d4=>_0x1e04d4['model']==_0x22f759);return _0x4b0e1b+'\x20('+(_0x414e53?_0x110635(_0x414e53['title'])['toLowerCase']():_0x22f759)+')';}return _0x4b0e1b+'\x20('+_0x22f759+')';}class tt extends _0x5bfee9{['_headingOptions'];['afterInit'](){const _0x37c138=this['editor'];if(!_0x37c138['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x37c138['config']['get']('heading.options');const _0x265b35=_0x37c138['locale'],_0x318db2=_0x37c138['plugins']['get']('TrackChangesEditing');_0x318db2['enableDefaultAttributesIntegration']('heading');for(const _0x4afc2b of this['_headingOptions'])'paragraph'!=_0x4afc2b['model']&&_0x318db2['descriptionFactory']['registerElementLabel'](_0x4afc2b['model'],_0x55b6e4=>{const _0x436b44=this['_getHeadingLevel'](_0x4afc2b['model']);return null!==_0x436b44?_0xa0ea39(_0x55b6e4,_0x436b44):_0x523e58(_0x55b6e4,_0x4afc2b['title']);});function _0xa0ea39(_0x35e58e,_0x1975f4){return o(_0x265b35,'ELEMENT_HEADING',[_0x35e58e,_0x1975f4]);}function _0x523e58(_0x191a70,_0x3dc1bf){return o(_0x265b35,'ELEMENT_HEADING_CUSTOM',[_0x191a70,_0x3dc1bf]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10608c=this['editor'],_0x4c330d=_0x10608c['locale'];function _0x5e46ba(_0x39c12e,_0x75603c){return o(_0x4c330d,'ELEMENT_HEADING_CUSTOM',[_0x39c12e,_0x75603c]);}_0x10608c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e87e8=>{if('formatBlock'!=_0x3e87e8['type'])return;const {data:_0x15de04}=_0x3e87e8;if(_0x15de04&&'heading'==_0x15de04['commandName']){const _0x2f660e=_0x15de04['commandParams'][0x0]['value'],_0x25a482=this['_getHeadingLevel'](_0x2f660e);if(null!==_0x25a482)return{'type':'format','content':o(_0x4c330d,'*Change\x20to:*\x20%0',(_0x46513e=0x1,_0x54ba5e=_0x25a482,o(_0x4c330d,'ELEMENT_HEADING',[_0x46513e,_0x54ba5e])))};const _0x487f27=this['_headingOptions']['find'](_0x19f20c=>_0x19f20c['model']===_0x2f660e)['title'];return{'type':'format','content':o(_0x4c330d,'*Change\x20to:*\x20%0',_0x5e46ba(0x1,_0x487f27))};}var _0x46513e,_0x54ba5e;});}['_getHeadingLevel'](_0x4b0d87){const _0x2c7cfb=_0x4b0d87['match'](/^heading(\d+)/);if(_0x2c7cfb)return _0x2c7cfb[0x1];const _0x3a3d93=this['_headingOptions']?.['find'](_0x5e5b0b=>_0x5e5b0b['model']==_0x4b0d87);if(_0x3a3d93&&_0x3a3d93['view']){const _0x64a326=_0x3a3d93['view'],_0x2ad552=(_0x64a326['name']??_0x64a326)['match'](/^h(\d+)/);if(_0x2ad552)return _0x2ad552[0x1];}return null;}}class et extends _0x5bfee9{['afterInit'](){const _0x384d76=this['editor'];if(!_0x384d76['plugins']['has']('HighlightEditing'))return;const _0x34f4de=_0x384d76['plugins']['get']('TrackChangesEditing'),_0x14b802=_0x384d76['locale'];_0x34f4de['enableDefaultAttributesIntegration']('highlight'),_0x34f4de['registerInlineAttribute']('highlight'),_0x34f4de['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x14b802,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54a512=this['editor'],_0xf57761=_0x54a512['locale'];_0x54a512['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1099ea=>{if('formatInline'!=_0x1099ea['type'])return;const {data:_0x37c86b}=_0x1099ea;if(_0x37c86b&&'highlight'==_0x37c86b['commandName']){const _0x7cc28f=_0xf57761['t'],_0x36029d=_0x37c86b['commandParams'][0x0]['value'];if(_0x36029d){const _0x19431b=_0x54a512['config']['get']('highlight.options')['find'](_0x4e0dd9=>_0x4e0dd9['model']==_0x36029d),_0x4586dc=_0x7cc28f(_0x19431b['title'])['toLowerCase']();return{'type':'format','content':o(_0xf57761,'*Set\x20highlight:*\x20%0',_0x4586dc),'color':{'value':_0x19431b['color'],'title':_0x19431b['title']}};}return{'type':'format','content':o(_0xf57761,'*Remove\x20highlight*',o(_0xf57761,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x5bfee9{['afterInit'](){const _0x5071dc=this['editor'];if(!_0x5071dc['plugins']['has']('HorizontalLineEditing'))return;_0x5071dc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2dac98=_0x5071dc['plugins']['get']('TrackChangesEditing'),_0x3ec82c=_0x5071dc['locale'];_0x2dac98['descriptionFactory']['registerElementLabel']('horizontalLine',_0x599f7a=>o(_0x3ec82c,'ELEMENT_HORIZONTAL_LINE',_0x599f7a)),_0x5071dc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x15b11b,{writer:_0x3877bb,options:_0x4be6fb})=>{if(!_0x4be6fb['showSuggestionHighlights'])return null;const _0x262e72=_0x3877bb['createContainerElement']('div'),_0x33c76b=_0x3877bb['createEmptyElement']('hr');return _0x3877bb['addClass']('ck-horizontal-line',_0x262e72),_0x3877bb['insert'](_0x3877bb['createPositionAt'](_0x262e72,0x0),_0x33c76b),_0x262e72;},'converterPriority':'high'});}}class st extends _0x5bfee9{['afterInit'](){const _0x3afc8a=this['editor'];if(!_0x3afc8a['plugins']['has']('HtmlEmbed'))return;const _0x125daa=_0x3afc8a['plugins']['get']('TrackChangesEditing'),_0x23d8a8=_0x3afc8a['locale'];_0x125daa['descriptionFactory']['registerElementLabel']('rawHtml',_0x9ab90d=>o(_0x23d8a8,'ELEMENT_HTML_EMBED',_0x9ab90d)),_0x125daa['enableDefaultAttributesIntegration']('htmlEmbed'),_0x125daa['registerBlockAttribute']('value'),_0x125daa['descriptionFactory']['registerDescriptionCallback'](_0x4250cf=>{if('attribute'!=_0x4250cf['type'])return;const {data:_0x145efe}=_0x4250cf;if(_0x145efe&&'value'==_0x145efe['key']&&_0x4250cf['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3aa297=o(_0x23d8a8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x23d8a8,'*Change\x20%0\x20content*',_0x3aa297)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbb1f5f=this['editor'],_0x29fc5a=_0xbb1f5f['locale'];_0xbb1f5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a93eb=>{if('formatBlock'!=_0x5a93eb['type'])return;const {data:_0x5f51fa}=_0x5a93eb;if(_0x5f51fa&&'htmlEmbed'==_0x5f51fa['commandName']){const _0x1aaf32=o(_0x29fc5a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x29fc5a,'*Change\x20%0\x20content*',_0x1aaf32)};}});}}class nt extends _0x5bfee9{['afterInit'](){const _0x26b284=this['editor'];if(!_0x26b284['plugins']['has']('ImageEditing'))return;const _0x428ceb=_0x26b284['plugins']['get']('TrackChangesEditing'),_0x71aafd=_0x26b284['plugins']['get']('ImageUtils'),_0x332691=_0x26b284['locale'];_0x428ceb['enableCommand']('insertImage'),_0x428ceb['descriptionFactory']['registerElementLabel']('imageBlock',_0x3d37ce=>o(_0x332691,'ELEMENT_IMAGE',_0x3d37ce)),_0x428ceb['descriptionFactory']['registerElementLabel']('imageInline',_0x304e5a=>o(_0x332691,'ELEMENT_INLINE_IMAGE',_0x304e5a)),_0x428ceb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x332691,'ELEMENT_CAPTION')),_0x26b284['plugins']['has']('ImageUploadEditing')&&_0x428ceb['enableCommand']('uploadImage'),_0x26b284['plugins']['has']('ImageBlockEditing')&&_0x26b284['plugins']['has']('ImageInlineEditing')&&(_0x428ceb['enableCommand']('imageTypeInline',(_0x923168,_0x2b2a19)=>{const _0x1f5f8f=_0x71aafd['getClosestSelectedImageElement'](_0x26b284['model']['document']['selection']);_0x26b284['model']['change'](()=>{_0x428ceb['markBlockFormat'](_0x1f5f8f,{'commandName':'imageTypeInline','commandParams':[_0x2b2a19]},[],'convertBlockImageToInline');});}),_0x428ceb['enableCommand']('imageTypeBlock',(_0x56ba53,_0x41071e)=>{_0x26b284['model']['change'](_0x3cf41f=>{let _0x297763=_0x71aafd['getClosestSelectedImageElement'](_0x26b284['model']['document']['selection']),_0x20e289=_0x3cf41f['createRangeOn'](_0x297763);const _0x3c2f16=_0x51eecf['fromPosition'](_0x20e289['start'],'toPrevious'),_0x7f806c=_0x51eecf['fromPosition'](_0x20e289['end'],'toNext');_0x428ceb['forceDefaultExecution'](()=>_0x56ba53(_0x41071e)),_0x297763=_0x71aafd['getClosestSelectedImageElement'](_0x26b284['model']['document']['selection']),_0x20e289=_0x3cf41f['createRangeOn'](_0x297763);const _0x4469a2=_0x3cf41f['createRange'](_0x3c2f16,_0x7f806c);_0x3c2f16['detach'](),_0x7f806c['detach'](),_0x428ceb['markBlockFormat'](_0x297763,{'commandName':'imageTypeInline','commandParams':[_0x41071e]},[],'convertInlineImageToBlock'),_0x4469a2['start']['isBefore'](_0x20e289['start'])&&_0x428ceb['markInsertion'](_0x3cf41f['createRange'](_0x4469a2['start'],_0x20e289['start']),'convertInlineImageToBlock'),_0x20e289['end']['isBefore'](_0x4469a2['end'])&&_0x428ceb['markInsertion'](_0x3cf41f['createRange'](_0x20e289['end'],_0x4469a2['end']),'convertInlineImageToBlock');});}),_0x428ceb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x428ceb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x428ceb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x428ceb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x428ceb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x428ceb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x29b7c5])=>{const _0x357796=_0x428ceb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x344143=_0x29b7c5['start'],_0x623c7d=_0x29b7c5['end'];const _0x28d565=_0x26b284['model']['schema']['getNearestSelectionRange'](_0x344143,'backward'),_0x57d099=_0x26b284['model']['schema']['getNearestSelectionRange'](_0x623c7d,'forward');_0x28d565['isCollapsed']&&(_0x344143=_0x28d565['start']),_0x57d099['isCollapsed']&&(_0x623c7d=_0x57d099['end']),_0x357796([_0x26b284['model']['createRange'](_0x344143,_0x623c7d)]);}),_0x428ceb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f8565),_0x428ceb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f8565)),_0x26b284['plugins']['has']('ImageCaptionEditing')&&(_0x428ceb['enableCommand']('toggleImageCaption',(_0x23aa79,_0x1b6bda)=>{const _0x13bdf1=_0x26b284['plugins']['get']('ImageCaptionUtils');let _0x7db1f4=_0x71aafd['getClosestSelectedImageElement'](_0x26b284['model']['document']['selection']),_0x32d93d=_0x13bdf1['getCaptionFromImageModelElement'](_0x7db1f4);_0x26b284['model']['change'](()=>{if(_0x32d93d)return void _0x428ceb['markDeletion'](_0x26b284['model']['createRangeOn'](_0x32d93d));const _0x1b2e43=_0x71aafd['isBlockImage'](_0x7db1f4);_0x23aa79(_0x1b6bda),_0x7db1f4=_0x71aafd['getClosestSelectedImageElement'](_0x26b284['model']['document']['selection']),_0x32d93d=_0x13bdf1['getCaptionFromImageModelElement'](_0x7db1f4),_0x428ceb['markInsertion'](_0x26b284['model']['createRangeOn'](_0x32d93d),_0x1b2e43?null:'imageCaption');});}),_0x428ceb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f8565));const _0x27b74d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54f959(_0x38c5a9,_0x18e434){const _0xb40a42=_0x27b74d['findIndex'](({type:_0xb0f25a,subType:_0x5f12d9})=>_0x38c5a9['type']==_0xb0f25a&&_0x38c5a9['subType']==_0x5f12d9),_0x167b08=_0x27b74d['findIndex'](({type:_0x53db6d,subType:_0x451658})=>_0x18e434['type']==_0x53db6d&&_0x18e434['subType']==_0x451658);if(_0xb40a42<0x0||_0x167b08<0x0)return!0x1;const _0x55d1e6=_0x38c5a9['getFirstRange'](),_0x286d1e=_0x18e434['getFirstRange']();if((0x0==_0xb40a42||0x1==_0xb40a42)&&0x2==_0x167b08&&_0x55d1e6['isIntersecting'](_0x286d1e))return!0x0;if(0x2==_0xb40a42&&0x3==_0x167b08){const _0x4b212d=_0x428ceb['_findSuggestions'](_0x55d1e6,'insertion')['filter'](({suggestion:_0xbf503e,meta:_0x642270})=>_0x642270['isOwn']&&'convertInlineImageToBlock'==_0xbf503e['subType']);if(_0x4b212d['length']>0x1&&_0x286d1e['end']['isEqual'](_0x55d1e6['start']))return!0x0;if(0x1==_0x4b212d['length']&&(_0x55d1e6['start']['isEqual'](_0x286d1e['end'])||_0x55d1e6['end']['isEqual'](_0x286d1e['start'])))return!0x0;}if(0x3==_0xb40a42&&0x3==_0x167b08&&_0x55d1e6['start']['isBefore'](_0x286d1e['start'])){const _0x132a67=_0x55d1e6['end']['nodeAfter'],_0x41e4f3=_0x286d1e['start']['nodeBefore'];return _0x71aafd['isBlockImage'](_0x132a67)&&_0x132a67===_0x41e4f3;}return!0x1;}function _0x2f8565(_0x176982,_0x447bf1){return _0x54f959(_0x176982,_0x447bf1)?[_0x176982,_0x447bf1]:_0x54f959(_0x447bf1,_0x176982)?[_0x447bf1,_0x176982]:null;}_0x26b284['plugins']['has']('ImageResize')&&(_0x428ceb['enableDefaultAttributesIntegration']('resizeImage'),_0x428ceb['registerBlockAttribute']('resizedWidth'),_0x428ceb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x332691,'FORMAT_IMAGE_SIZE'))),_0x26b284['plugins']['has']('ImageTextAlternativeEditing')&&(_0x428ceb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x428ceb['registerBlockAttribute']('alt')),_0x428ceb['descriptionFactory']['registerDescriptionCallback'](_0x426695=>{if(!!_0x27b74d['find'](({type:_0x469b53,subType:_0x33ac78})=>_0x426695['type']==_0x469b53&&_0x426695['subType']==_0x33ac78))return _0x426695['previous']?{}:void 0x0;}),_0x428ceb['descriptionFactory']['registerDescriptionCallback'](_0x22f014=>{if('insertion'==_0x22f014['type']||'deletion'==_0x22f014['type']){const _0x2106df=_0x22f014['getContainedElement']();if(_0x2106df&&_0x2106df['is']('element','caption'))return{'type':'insertion'==_0x22f014['type']?'addObject':'removeObject','element':_0x2106df,'quantity':0x1};}}),_0x428ceb['descriptionFactory']['registerDescriptionCallback'](_0x308440=>'formatBlock'==_0x308440['type']&&'convertInlineImageToBlock'==_0x308440['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x308440['type']&&'convertBlockImageToInline'==_0x308440['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x428ceb['descriptionFactory']['registerDescriptionCallback'](_0x264976=>{if('attribute'!=_0x264976['type'])return;const {data:_0x3d1f29}=_0x264976;if(!_0x3d1f29||'alt'!=_0x3d1f29['key'])return;const _0x28eac3=_0x3d1f29['newValue'];return _0x28eac3?{'type':'format','content':o(_0x332691,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x28eac3+'\x22')}:{'type':'format','content':o(_0x332691,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ee94a=this['editor'],_0x28aba6=_0x5ee94a['locale'];_0x5ee94a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19477c=>{if('formatBlock'!=_0x19477c['type']&&'formatInline'!=_0x19477c['type'])return;const {data:_0x4a78a1}=_0x19477c;if(_0x4a78a1){if('imageTextAlternative'==_0x4a78a1['commandName']){const _0x54bf85=_0x4a78a1['commandParams'][0x0]['newValue'];return _0x54bf85?{'type':'format','content':o(_0x28aba6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54bf85+'\x22')}:{'type':'format','content':o(_0x28aba6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4a78a1['commandName']){const _0x4dbb2c=_0x4a78a1['commandParams'][0x0]['width'];return _0x4dbb2c?{'type':'format','content':o(_0x28aba6,'*Set\x20image\x20width:*\x20%0',_0x4dbb2c)}:{'type':'format','content':o(_0x28aba6,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x5bfee9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1866f6=this['editor']['locale'],_0x3d0d83=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d0d83['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3d0d83['registerBlockAttribute']('src'),_0x3d0d83['descriptionFactory']['registerDescriptionCallback'](_0x45f727=>{if('attribute'!=_0x45f727['type'])return;const {data:_0x531f66}=_0x45f727;return _0x531f66&&'src'==_0x531f66['key']?_0x531f66['newValue']&&_0x531f66['oldValue']?{'type':'format','content':o(_0x1866f6,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3967a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x3967a2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3967a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3967a2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3967a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e8ce9=this['editor'],_0x547061=_0x5e8ce9['locale'];_0x5e8ce9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe4c172=>{if('formatBlock'!=_0xe4c172['type']&&'formatInline'!=_0xe4c172['type'])return;const {data:_0x4b6bda}=_0xe4c172;if(!_0x4b6bda||'replaceImageSource'!=_0x4b6bda['commandName'])return;return{'type':'format','content':o(_0x547061,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x5bfee9{['afterInit'](){const _0x587c44=this['editor'];if(!_0x587c44['plugins']['has']('ImageStyleEditing'))return;const _0x54a636=_0x587c44['plugins']['get']('TrackChangesEditing'),_0x232da4=_0x587c44['plugins']['get']('ImageUtils'),_0x46a650={};_0x54a636['enableCommand']('imageStyle',(_0x3725c5,_0x265cad)=>{const _0x45ba5e=_0x587c44['plugins']['get']('Users')['me'],_0x183abe=_0x587c44['commands']['get']('imageStyle');let _0x4a1094=_0x232da4['getClosestSelectedImageElement'](_0x587c44['model']['document']['selection']),_0x43bd70=_0x587c44['model']['createRangeOn'](_0x4a1094),_0x49e48a=_0x183abe['value'];if(_0x49e48a==_0x265cad['value'])return;const _0x320873={'commandName':'imageStyle','commandParams':[_0x265cad],'formatGroupId':_0xdb8ef7()};_0x587c44['model']['change'](()=>{if(_0x54a636['getSuggestions']()['filter'](_0x213e23=>_0x213e23['isInContent']&&_0x45ba5e==_0x213e23['author']&&('formatBlock'==_0x213e23['type']||'formatInline'==_0x213e23['type'])&&('imageStylePreApply'==_0x213e23['subType']||'imageStylePostApply'==_0x213e23['subType'])&&_0x213e23['getFirstRange']()['isEqual'](_0x43bd70))['forEach'](_0x27a5c8=>_0x54a636['discardSuggestion'](_0x27a5c8['head'])),_0x4a1094=_0x232da4['getClosestSelectedImageElement'](_0x587c44['model']['document']['selection']),_0x43bd70=_0x587c44['model']['createRangeOn'](_0x4a1094),_0x183abe['refresh'](),_0x587c44['commands']['get']('imageTypeInline')['refresh'](),_0x587c44['commands']['get']('imageTypeBlock')['refresh'](),_0x49e48a=_0x183abe['value'],_0x49e48a!=_0x265cad['value'])return _0x232da4['isInlineImage'](_0x4a1094)&&_0x183abe['shouldConvertImageType'](_0x265cad['value'],_0x4a1094)?(_0x3725c5({..._0x265cad,'setImageSizes':!0x1}),_0x4a1094=_0x232da4['getClosestSelectedImageElement'](_0x587c44['model']['document']['selection']),void _0x54a636['markBlockFormat'](_0x4a1094,{..._0x320873,'commandReversedParams':[{'value':_0x49e48a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x232da4['isBlockImage'](_0x4a1094)?_0x54a636['markBlockFormat'](_0x4a1094,_0x320873,[],'imageStylePostApply'):_0x54a636['markInlineFormat'](_0x43bd70,_0x320873,'imageStylePostApply'));});});for(const _0x3ff93b of _0x587c44['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x46a650[_0x3ff93b['name']]=_0x3ff93b['title']['toLowerCase']();_0x54a636['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x54a636['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x54a636['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x54a636['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xee83f2])=>{_0x232da4['setImageNaturalSizeAttributes'](_0xee83f2['getContainedElement']());}),_0x54a636['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3ada88,_0x11bca9)=>{_0x54a636['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ada88,{'commandName':_0x11bca9['commandName'],'commandParams':_0x11bca9['commandReversedParams']});}),_0x54a636['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x31b919,_0x33befa){if(_0x2a28d9(_0x31b919,_0x33befa))return[_0x31b919,_0x33befa];if(_0x2a28d9(_0x33befa,_0x31b919))return[_0x33befa,_0x31b919];return null;});const _0x5570cc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2a28d9(_0xffd5ca,_0x2fe296){const _0x128c4e=_0x5570cc['findIndex'](({type:_0x3b8d14,subType:_0x5726cd})=>_0xffd5ca['type']==_0x3b8d14&&_0xffd5ca['subType']==_0x5726cd),_0x15ca96=_0x5570cc['findIndex'](({type:_0x5ef6fb,subType:_0x48da15})=>_0x2fe296['type']==_0x5ef6fb&&_0x2fe296['subType']==_0x48da15);if(_0x128c4e<0x0||_0x15ca96<0x0)return!0x1;const _0x34e6d8=_0xffd5ca['getFirstRange'](),_0x38b71f=_0x2fe296['getFirstRange']();if((0x0==_0x128c4e||0x1==_0x128c4e)&&0x2==_0x15ca96&&_0x34e6d8['isIntersecting'](_0x38b71f))return!0x0;if(0x2==_0x128c4e&&0x3==_0x15ca96){const _0x498fc8=_0x54a636['_findSuggestions'](_0x34e6d8,'insertion')['filter'](({suggestion:_0xa2fec0,meta:_0x341361})=>_0x341361['isOwn']&&'convertInlineImageToBlock'==_0xa2fec0['subType']);if(_0x498fc8['length']>0x1&&_0x38b71f['end']['isEqual'](_0x34e6d8['start']))return!0x0;if(0x1==_0x498fc8['length']&&(_0x34e6d8['start']['isEqual'](_0x38b71f['end'])||_0x34e6d8['end']['isEqual'](_0x38b71f['start'])))return!0x0;}if(0x3==_0x128c4e&&0x3==_0x15ca96&&_0x34e6d8['start']['isBefore'](_0x38b71f['start'])){const _0x4098b9=_0x34e6d8['end']['nodeAfter'],_0x258f75=_0x38b71f['start']['nodeBefore'];return _0x232da4['isBlockImage'](_0x4098b9)&&_0x4098b9===_0x258f75;}return!0x1;}_0x587c44['model']['document']['registerPostFixer'](()=>{let _0x1c0872=!0x1;const _0x2754ef=Array['from'](_0x587c44['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e0ab2,data:_0x260fd7}of _0x2754ef){const {group:_0x334380,type:_0x35f18e,subType:_0x36b336,id:_0x1e73a0}=_0x54a636['_splitMarkerName'](_0x2e0ab2);if('suggestion'==_0x334380&&_0x54a636['hasSuggestion'](_0x1e73a0)){if('formatBlock'==_0x35f18e&&('imageStylePreApply'==_0x36b336||'imageStylePostApply'==_0x36b336)){const _0x172986=_0x54a636['getSuggestion'](_0x1e73a0);if(_0x260fd7['newRange']){const _0x5bc223=_0x172986['getFirstRange']()['getContainedElement']();if(_0x232da4['isBlockImage'](_0x5bc223))continue;_0x54a636['discardSuggestion'](_0x172986),_0x1c0872=!0x0;}}if('insertion'==_0x35f18e&&'imageCaption'==_0x36b336&&!_0x260fd7['newRange']){const _0x301053=_0x54a636['getSuggestion'](_0x1e73a0);_0x301053['next']&&_0x301053['next']['isInContent']&&(_0x54a636['discardSuggestion'](_0x301053['next']),_0x1c0872=!0x0);}}}return _0x1c0872;}),this['_registerLegacyDescription'](_0x46a650);}['_registerLegacyDescription'](_0x3758df){const _0x3c9d7b=this['editor'],_0x115dee=_0x3c9d7b['locale'];_0x3c9d7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bdc2a=>{if('formatBlock'!=_0x1bdc2a['type']&&'formatInline'!=_0x1bdc2a['type'])return;const {data:_0x167625}=_0x1bdc2a;if(!_0x167625||'imageStyle'!=_0x167625['commandName'])return;const _0x48be6d=_0x167625['commandParams'][0x0]['value'];return _0x42cb3a('side'===_0x48be6d?o(_0x115dee,'FORMAT_SIDE_IMAGE'):_0x3758df[_0x48be6d]||_0x48be6d);function _0x42cb3a(_0x491f8c){return{'type':'format','content':o(_0x115dee,'*Format:*\x20%0',_0x491f8c)};}});}}class at extends _0x5bfee9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x7cc4e6){super(_0x7cc4e6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1397f7=this['editor'],_0xa93e40=_0x1397f7['commands']['get']('importWord'),_0x190fb1=_0x1397f7['commands']['get']('trackChanges');_0xa93e40&&(_0xa93e40['on']('execute',(_0x111b6e,[,_0xe29aed])=>{this['_trackChangesValueDuringImport']=_0x190fb1['value'],_0xe29aed['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xa93e40,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xa93e40,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x190fb1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1397f7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x9c3602,_0x2a51dd){const {suggestions:_0x280102}=_0x2a51dd,_0xf36e8d=this['editor']['commands']['get']('trackChanges'),_0x4ead37=_0xf36e8d['value'];this['_trackChangesValueDuringImport']!==_0x4ead37&&(_0xf36e8d['execute'](),this['_trackChangesExecuted']=!0x0),_0x280102&&_0x280102['forEach'](({id:_0x50fe78,type:_0x38c5f0,author:_0x1e61d9,created_at:_0x13fb8f})=>{const _0x4ede88={'id':_0x50fe78,'type':_0x38c5f0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1e61d9,'createdAt':_0x13fb8f?new Date(_0x13fb8f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4ede88);});}}class ct extends _0x5bfee9{['afterInit'](){const _0x3e7f29=this['editor'],_0x2604f2=_0x3e7f29['plugins']['get']('TrackChangesEditing');if(_0x3e7f29['plugins']['has']('IndentEditing')&&(_0x2604f2['enableCommand']('indent'),_0x2604f2['enableCommand']('outdent')),_0x3e7f29['plugins']['has']('IndentBlock')){for(const _0x29f3f8 of['indentBlock','outdentBlock'])_0x2604f2['enableDefaultAttributesIntegration'](_0x29f3f8);}const _0x305bee=_0x3e7f29['locale'];_0x2604f2['registerBlockAttribute']('blockIndent'),_0x2604f2['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x305bee,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5014b3=this['editor'],_0x1e3a56=_0x5014b3['locale'],_0x2ab343=_0x5014b3['plugins']['get']('TrackChangesEditing');_0x2ab343['descriptionFactory']['registerDescriptionCallback'](_0x407cd9=>{if('formatBlock'!=_0x407cd9['type'])return;const {data:_0x297653}=_0x407cd9;if(!_0x297653)return;if('indentBlock'!=_0x297653['commandName']&&'outdentBlock'!=_0x297653['commandName'])return;const _0x1bd2aa=_0x407cd9['getItems']()[0x0],_0x4bc849=_0x2ab343['descriptionFactory']['getItemLabel'](_0x1bd2aa);return'indentBlock'==_0x297653['commandName']?{'type':'format','content':o(_0x1e3a56,'*Indent:*\x20%0',_0x4bc849)}:'outdentBlock'==_0x297653['commandName']?{'type':'format','content':o(_0x1e3a56,'*Outdent:*\x20%0',_0x4bc849)}:void 0x0;});}}class ut extends _0x5bfee9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5bfee9{['afterInit'](){const _0x4db8b4=this['editor'];if(!_0x4db8b4['plugins']['has']('LinkEditing'))return;const _0x4ad2dd=_0x4db8b4['plugins']['get']('TrackChangesEditing'),_0x43a526=_0x4db8b4['commands']['get']('link');_0x4ad2dd['enableDefaultAttributesIntegration']('link'),_0x4ad2dd['enableDefaultAttributesIntegration']('unlink'),_0x4ad2dd['registerInlineAttribute']('linkHref');for(const _0x44acf5 of _0x43a526['manualDecorators'])_0x4ad2dd['registerInlineAttribute'](_0x44acf5['id']),_0x4ad2dd['descriptionFactory']['registerAttributeLabel'](_0x44acf5['id'],'link\x20('+_0x44acf5['label']['toLowerCase']()+')');_0x4ad2dd['descriptionFactory']['registerDescriptionCallback'](_0x39fb78=>{if('attribute'!=_0x39fb78['type'])return;const {data:_0x570577}=_0x39fb78;if(!_0x570577||'linkHref'!=_0x570577['key'])return;const _0x55f145=_0x570577['newValue'],_0x4f3779=_0x4db8b4['locale'];return{'type':'format','content':null==_0x55f145?o(_0x4f3779,'*Remove\x20link*'):o(_0x4f3779,'*Set\x20link:*\x20%0','\x22'+_0x55f145+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xed1d28=this['editor'],_0x37f7c2=_0xed1d28['locale'];_0xed1d28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x535f10=>{if('formatInline'!=_0x535f10['type'])return;const {data:_0x53104d}=_0x535f10;if(_0x53104d){if('link'==_0x53104d['commandName']){const _0x483c0f=_0x53104d['commandParams'][0x0];return{'type':'format','content':o(_0x37f7c2,'*Set\x20link:*\x20%0','\x22'+_0x483c0f+'\x22')};}return'unlink'==_0x53104d['commandName']?{'type':'format','content':o(_0x37f7c2,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x5bfee9{['afterInit'](){const _0xc800dc=this['editor'],_0x5366e3=_0xc800dc['locale'];if(!_0xc800dc['plugins']['has']('LegacyListEditing'))return;const _0x267a8c=_0xc800dc['plugins']['get']('TrackChangesEditing'),_0x30649f=_0xc800dc['plugins']['has']('LegacyTodoListEditing');function _0x35ca15(_0x2e64f0){return()=>{const _0x53781c=_0xc800dc['model']['document']['selection'],_0x3cfff1=_0xc800dc['commands']['get'](_0x2e64f0);if(_0x3cfff1['value'])return void _0xc800dc['execute']('paragraph',{});const _0x4309a4=_0x2e64f0['slice'](0x0,-0x4),_0x3ceeb0=function(_0x2de920,_0x26f654,_0xf44244){let _0x1c8119=Array['from'](_0x2de920)['filter'](_0x4ae664=>function(_0x328881,_0x626303){return _0x626303['checkChild'](_0x328881['parent'],'listItem')&&!_0x626303['isObject'](_0x328881);}(_0x4ae664,_0xf44244));_0x1c8119=_0x1c8119['filter'](_0x3e594a=>!_0x3e594a['is']('element','listItem')||_0x3e594a['getAttribute']('listType')!=_0x26f654);const _0x1c13ad=new Set();for(const _0x4984c6 of _0x1c8119)_0x4984c6['is']('element','listItem')?_0x1c13ad['add'](fe(_0x4984c6)):_0x1c13ad['add'](_0x4984c6);return Array['from'](_0x1c13ad);}(_0x53781c['getSelectedBlocks'](),_0x4309a4,_0xc800dc['model']['schema']);_0xc800dc['model']['change'](()=>{for(const _0x49958b of _0x3ceeb0)_0x267a8c['markBlockFormat'](_0x49958b,{'commandName':_0x2e64f0,'commandParams':[{'forceValue':!_0x3cfff1['value']}],'formatGroupId':'blockName'},ue(_0x49958b));});};}function _0x16b276(_0x13e634){return()=>{const _0x1dcf97=function(_0x207b8){let _0x175c13=Array['from'](_0x207b8);const _0x212b0e=_0x175c13['findIndex'](_0x5a18e8=>'listItem'!=_0x5a18e8['name']);return _0x212b0e>-0x1&&(_0x175c13=_0x175c13['slice'](0x0,_0x212b0e)),_0x175c13;}(_0xc800dc['model']['document']['selection']['getSelectedBlocks']()),_0x53aae4=_0xc800dc['model']['createRange'](_0xc800dc['model']['createPositionAt'](_0x1dcf97[0x0],'before'),_0xc800dc['model']['createPositionAt'](_0x1dcf97[_0x1dcf97['length']-0x1],'end'));_0xc800dc['model']['change'](()=>{_0x267a8c['markBlockFormat'](_0x53aae4,{'commandName':_0x13e634,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1e83ed){const _0x470955=new Set();for(const _0x42e436 of _0x1e83ed){let _0x5913e5=_0x42e436['nextSibling'];for(;_0x5913e5&&_0x5913e5['getAttribute']('listIndent')>_0x42e436['getAttribute']('listIndent');)_0x470955['add'](_0x5913e5),_0x5913e5=_0x5913e5['nextSibling'];}return Array['from'](_0x470955);}(_0x1dcf97));});};}_0x267a8c['enableCommand']('numberedList',_0x35ca15('numberedList')),_0x267a8c['enableCommand']('bulletedList',_0x35ca15('bulletedList')),_0x30649f&&_0x267a8c['enableCommand']('todoList',_0x35ca15('todoList')),_0x267a8c['enableCommand']('indentList',_0x16b276('indentList')),_0x267a8c['enableCommand']('outdentList',_0x16b276('outdentList')),_0x30649f&&_0x267a8c['enableCommand']('checkTodoList',()=>{const _0x58aa91=_0xc800dc['commands']['get']('checkTodoList'),_0x370746=Array['from'](_0x58aa91['_selectedElements']);_0x370746['filter'](_0xa1fe96=>_0xa1fe96['getAttribute']('todoListChecked')!=_0x58aa91['value']),_0xc800dc['model']['change'](()=>{for(const _0x335f8d of _0x370746)_0x267a8c['markBlockFormat'](_0x335f8d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x58aa91['value']}]});});}),_0x267a8c['descriptionFactory']['registerElementLabel']('listItem',_0x23f6c2=>o(_0x5366e3,'ELEMENT_LIST_ITEM',_0x23f6c2)),_0x267a8c['descriptionFactory']['registerDescriptionCallback'](_0x5f3c42=>{if('formatBlock'!=_0x5f3c42['type']&&'formatInline'!=_0x5f3c42['type'])return;const {data:_0x30f4e9}=_0x5f3c42;if(_0x30f4e9){if('numberedList'==_0x30f4e9['commandName']||'bulletedList'==_0x30f4e9['commandName']||'todoList'==_0x30f4e9['commandName'])switch(_0x30f4e9['commandName']['replace']('List','')){case'bulleted':return _0x734e04(o(_0x5366e3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x734e04(o(_0x5366e3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x734e04(o(_0x5366e3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x30f4e9['commandName'])return{'type':'format','content':o(_0x5366e3,'*Indent:*\x20%0',o(_0x5366e3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x30f4e9['commandName'])return{'type':'format','content':o(_0x5366e3,'*Outdent:*\x20%0',o(_0x5366e3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x30f4e9['commandName'])return _0x30f4e9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5366e3,'*Check\x20item*')}:{'type':'format','content':o(_0x5366e3,'*Uncheck\x20item*')};}function _0x734e04(_0x2c4a98){return{'type':'format','content':o(_0x5366e3,'*Change\x20to:*\x20%0',_0x2c4a98)};}});}}function fe(_0x554928){const _0xf305a=_0x554928['getAttribute']('listIndent');if(0x0==_0xf305a)return _0x554928;let _0x36504d=_0x554928;for(;_0x554928['previousSibling']&&_0x554928['previousSibling']['is']('element','listItem');){const _0x48dc8f=_0x554928['previousSibling']['getAttribute']('listIndent');if(_0x48dc8f==_0xf305a)_0x36504d=_0x554928['previousSibling'];else{if(_0x48dc8f<_0xf305a)break;}_0x554928=_0x554928['previousSibling'];}return _0x36504d;}function ue(_0x53b4de){const _0x5d5a90=[];if(_0x53b4de['is']('element','listItem')&&_0x53b4de['getAttribute']('listIndent')>0x0){let _0x178938=_0x53b4de['nextSibling'];for(;_0x178938&&'listItem'==_0x178938['name']&&_0x178938['getAttribute']('listIndent')==_0x53b4de['getAttribute']('listIndent');)_0x5d5a90['push'](_0x178938),_0x178938=_0x178938['nextSibling'];}return _0x5d5a90;}class W extends _0x5bfee9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x394f9c=this['editor']['config']['get']('list.properties'),_0x4657d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x394f9c['styles']&&_0x4657d3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x394f9c['reversed']&&_0x4657d3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x394f9c['startIndex']&&_0x4657d3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4657d3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x443bdf,_0x44221e={}){const _0x42004d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9f831=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x42004d['markMultiRangeBlockFormat'](_0x9f831,{'commandName':'listStyle','commandParams':[{'type':_0x44221e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xa2fd2d,_0x14e39e={}){const _0x13de04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e6f9f=this['_getSuggestionBlocks'](_0x37c3ef=>_0x37c3ef['is']('element','listItem')&&'numbered'===_0x37c3ef['getAttribute']('listType'));if(_0x5e6f9f['length']<0x1)return;const _0x16247b=_0x5e6f9f['map'](_0x5475df=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5475df,'before'),this['editor']['model']['createPositionAt'](_0x5475df,0x0)));this['editor']['model']['change'](()=>{_0x13de04['markMultiRangeBlockFormat'](_0x16247b,{'commandName':'listReversed','commandParams':[{'reversed':_0x14e39e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x289b88,_0x40a2eb={}){const _0x1750ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb3ebd8=this['_getSuggestionBlocks'](_0x5a0dc6=>_0x5a0dc6['is']('element','listItem')&&'numbered'===_0x5a0dc6['getAttribute']('listType'));if(_0xb3ebd8['length']<0x1)return;const _0x12bb14=_0xb3ebd8['map'](_0x4fc16f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4fc16f,'before'),this['editor']['model']['createPositionAt'](_0x4fc16f,0x0)));this['editor']['model']['change'](()=>{_0x1750ba['markMultiRangeBlockFormat'](_0x12bb14,{'commandName':'listStart','commandParams':[{'startIndex':_0x40a2eb['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xb61dac){if('formatBlock'!=_0xb61dac['type']&&'formatInline'!=_0xb61dac['type'])return;const _0x38ceda=this['editor']['locale'],{data:_0x1e2c13}=_0xb61dac;if(!_0x1e2c13)return;let _0x109ec6,_0x561f84;switch(_0x1e2c13['commandName']){case'listStyle':_0x109ec6='*Change\x20to:*\x20%0',_0x561f84={'type':'format','content':o(_0x38ceda,_0x109ec6,o(_0x38ceda,this['_getTranslationKeyForListStyle'](_0x1e2c13['commandParams'][0x0]['type'])))};break;case'listReversed':_0x109ec6=_0x1e2c13['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x561f84={'type':'format','content':o(_0x38ceda,_0x109ec6)};break;case'listStart':_0x109ec6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x561f84={'type':'format','content':o(_0x38ceda,_0x109ec6,_0x1e2c13['commandParams'][0x0]['startIndex'])};}return _0x561f84;}['_getSuggestionBlocksForListStyle'](){const _0x31626e=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e84de=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5e84de[0x0]?.['is']('element','listItem')&&_0x5e84de['unshift'](..._0x31626e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5e84de[_0x5e84de['length']-0x1]?.['is']('element','listItem')&&_0x5e84de['push'](..._0x31626e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5e84de=[...new Set(_0x5e84de)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5e84de=_0x5e84de['filter'](_0x25ed55=>_0x25ed55['is']('element','listItem'))),_0x5e84de;}['_getSuggestionBlocks'](_0x2dd919){const _0x5a13df=this['editor']['plugins']['get']('LegacyListUtils');let _0x3070f8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2dd919)['map'](_0x211788=>{const _0x36d671=this['editor']['model']['createPositionAt'](_0x211788,0x0);return[..._0x5a13df['getSiblingNodes'](_0x36d671,'backward'),..._0x5a13df['getSiblingNodes'](_0x36d671,'forward')];})['flat']();return _0x3070f8=[...new Set(_0x3070f8)],_0x3070f8;}['_getTranslationKeyForListStyle'](_0x7bf083){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x7bf083)||'default')['toUpperCase']()+'_LIST_'+_0x7bf083['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x5bfee9{['afterInit'](){const _0x29d9a6=this['editor'];if(!_0x29d9a6['plugins']['has']('MediaEmbedEditing'))return;const _0x40f671=_0x29d9a6['plugins']['get']('TrackChangesEditing'),_0x27408b=_0x29d9a6['locale'];_0x40f671['enableCommand']('mediaEmbed'),_0x40f671['descriptionFactory']['registerElementLabel']('media',_0x4dff67=>o(_0x27408b,'ELEMENT_MEDIA',_0x4dff67)),_0x29d9a6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4112bd,{writer:_0x1dc083,options:_0xc545e6})=>{if(_0xc545e6['showSuggestionHighlights'])return _0x1dc083['createEmptyElement']('div');},'converterPriority':'high'}),_0x29d9a6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5be0a5,_0x2daf90,_0x5c33a9)=>{_0x5c33a9['options']['showSuggestionHighlights']&&_0x5be0a5['stop']();},{'priority':'high'});}}class mt extends _0x5bfee9{['afterInit'](){const _0x5d1e9d=this['editor'];_0x5d1e9d['plugins']['has']('MentionEditing')&&_0x5d1e9d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x5bfee9{['afterInit'](){const _0x3f709c=this['editor'];if(!_0x3f709c['plugins']['has']('MergeFieldsEditing'))return;_0x3f709c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x3f709c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x4d97b4=_0x3f709c['plugins']['get']('TrackChangesEditing'),_0xa567e6=_0x3f709c['locale'];_0x4d97b4['descriptionFactory']['registerElementLabel']('mergeField',_0x3748d1=>o(_0xa567e6,'ELEMENT_MERGE_FIELD',_0x3748d1)),_0x4d97b4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4f2e7b=>o(_0xa567e6,'ELEMENT_MERGE_FIELD',_0x4f2e7b)),_0x4d97b4['descriptionFactory']['registerDescriptionCallback'](_0x48260c=>{if('insertion'!=_0x48260c['type']&&'deletion'!=_0x48260c['type'])return;const _0x15f70b=_0x48260c['getContainedElement']();if(null==_0x15f70b)return;if(!_0x15f70b['is']('element','mergeField')&&!_0x15f70b['is']('element','mergeFieldBlock'))return;const _0x1da81b=_0x3f709c['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x15f70b['getAttribute']('id'));return'insertion'==_0x48260c['type']?{'type':'insertion','content':o(_0xa567e6,'*Insert:*\x20%0','\x22'+_0x1da81b+'\x22\x20'+o(_0xa567e6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xa567e6,'*Remove:*\x20%0','\x22'+_0x1da81b+'\x22\x20'+o(_0xa567e6,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x5bfee9{['afterInit'](){const _0x1ded12=this['editor'],_0x1a772a=_0x1ded12['plugins']['get']('TrackChangesEditing');_0x1ded12['plugins']['has']('MultiLevelList')&&(_0x1a772a['enableDefaultAttributesIntegration']('multiLevelList'),_0x1a772a['registerBlockAttribute']('listMarkerStyle'),_0x1a772a['descriptionFactory']['registerDescriptionCallback'](_0x287a85=>this['handleDescriptions'](_0x287a85)));}['handleDescriptions'](_0xb946ba){const _0x480a90=this['editor']['locale'],{data:_0x2afcce}=_0xb946ba,_0x558ed8={'type':'format','content':''};if(_0x2afcce&&'listMarkerStyle'==_0x2afcce['key']){if(!_0x2afcce['oldValue'])return{'type':'format','content':o(_0x480a90,'*Set\x20format:*\x20%0',o(_0x480a90,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2afcce['newValue']+')'};if(!_0x2afcce['newValue']){let _0x4d2f1c=_0xb946ba['head'];for(;_0x4d2f1c;){if(_0x4d2f1c['data']&&'listType'==_0x4d2f1c['data']['key']&&_0x4d2f1c['data']['newValue'])return _0x558ed8;_0x4d2f1c=_0x4d2f1c['next'];}return{'type':'format','content':o(_0x480a90,'*Remove\x20format:*\x20%0',o(_0x480a90,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2afcce['oldValue']+')'};}}}}class kt extends _0x5bfee9{['afterInit'](){const _0x326b13=this['editor'];if(!_0x326b13['plugins']['has']('PageBreakEditing'))return;_0x326b13['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc299ca=_0x326b13['plugins']['get']('TrackChangesEditing'),_0x368fb9=_0x326b13['locale'];_0xc299ca['descriptionFactory']['registerElementLabel']('pageBreak',_0x3ed75f=>o(_0x368fb9,'ELEMENT_PAGE_BREAK',_0x3ed75f));}}class bt extends _0x5bfee9{['afterInit'](){const _0x405bac=this['editor'];if(!_0x405bac['plugins']['has']('Paragraph'))return;const _0x19cc06=_0x405bac['locale'],_0x36116b=_0x405bac['plugins']['get']('TrackChangesEditing');_0x36116b['descriptionFactory']['registerElementLabel']('paragraph',_0x46c0dc=>o(_0x19cc06,'ELEMENT_PARAGRAPH',_0x46c0dc)),_0x36116b['enableDefaultAttributesIntegration']('paragraph'),_0x36116b['enableCommand']('insertParagraph'),_0x405bac['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x405bac),{'priority':'highest'}),_0x405bac['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x207a37,_0x2dd21f,_0x70b29)=>{_0x70b29['options']['showSuggestionHighlights']&&nr(_0x405bac,{'showActiveMarker':!0x1})(_0x207a37,_0x2dd21f,_0x70b29);},{'priority':'highest'});const _0x5cd850=_0x36116b['descriptionFactory'];_0x5cd850['registerDescriptionCallback'](_0x5819cc=>{if('insertion'!==_0x5819cc['type'])return;const {start:_0x1a010b,end:_0x3c6336}=_0x5819cc['getFirstRange']();if(!_0x1a010b['isTouching'](_0x3c6336)||!_0x1a010b['nodeAfter'])return;const _0x4979cd=_0x405bac['model']['schema'],_0x215c31=_0x1a010b['nodeAfter'];return _0x4979cd['isBlock'](_0x215c31)&&!_0x4979cd['isLimit'](_0x215c31)&&_0x4979cd['checkChild'](_0x215c31,'$text')?{'type':'insertion','content':o(_0x19cc06,'*Insert:*\x20%0',_0x5cd850['getItemLabel'](_0x215c31,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39aa4c=this['editor'],_0x45efcd=_0x39aa4c['locale'];_0x39aa4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e941e=>{if('formatBlock'!=_0x2e941e['type'])return;const {data:_0x194a82}=_0x2e941e;return _0x194a82&&'paragraph'==_0x194a82['commandName']?{'type':'format','content':o(_0x45efcd,'*Change\x20to:*\x20%0',o(_0x45efcd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x11248a,{showActiveMarker:_0x361b52=!0x0}={}){return(_0x1c951d,_0x3ef1d7,_0x2ea430)=>{const _0x41a1a0=_0x11248a['plugins']['get']('TrackChangesEditing'),_0x5c0151=_0x3ef1d7['markerRange']['start'],_0x5edd68=_0x3ef1d7['markerRange']['end'],_0x113eaf=_0x11248a['model']['schema'];if(!_0x5c0151['isTouching'](_0x5edd68)||!_0x5c0151['nodeAfter'])return;const _0x47cf4d=_0x5c0151['nodeAfter'];if(_0x113eaf['isBlock'](_0x47cf4d)&&!_0x113eaf['isLimit'](_0x47cf4d)&&_0x113eaf['checkChild'](_0x47cf4d,'$text')){if(!_0x2ea430['consumable']['consume'](_0x3ef1d7['markerRange'],_0x1c951d['name']))return;const {authorId:_0x120204}=_0x41a1a0['_splitMarkerName'](_0x3ef1d7['markerName']),_0x2553d6=_0x2ea430['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x120204}),_0x9214fb=_0x2ea430['mapper']['toViewPosition'](_0x5edd68);_0x361b52&&_0x41a1a0['activeMarkers']['includes'](_0x3ef1d7['markerName'])&&_0x2ea430['writer']['addClass']('ck-suggestion-marker--active',_0x2553d6),_0x2ea430['writer']['insert'](_0x9214fb,_0x2553d6),_0x2ea430['mapper']['bindElementToMarker'](_0x2553d6,_0x3ef1d7['markerName']);}};}class wt extends _0x5bfee9{['afterInit'](){const _0x20ac7d=this['editor'];if(!_0x20ac7d['plugins']['has']('RemoveFormatEditing'))return;_0x20ac7d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b9275=this['editor'];_0x5b9275['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3243f1=>{if('formatBlock'!=_0x3243f1['type']&&'formatInline'!=_0x3243f1['type'])return;const {data:_0x534976}=_0x3243f1;return _0x534976&&'removeFormat'==_0x534976['commandName']?{'type':'format','content':o(_0x5b9275['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x5bfee9{['afterInit'](){const _0x2d4be3=this['editor'];if(!_0x2d4be3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1237a4=_0x2d4be3['plugins']['get']('TrackChangesEditing');_0x1237a4['enableCommand']('goToPreviousRestrictedEditingException'),_0x1237a4['enableCommand']('goToNextRestrictedEditingException');const _0x4e0b65=_0x2d4be3['plugins']['get']('RestrictedEditingModeEditing');_0x4e0b65['enableCommand']('trackChanges'),_0x4e0b65['enableCommand']('acceptSuggestion'),_0x4e0b65['enableCommand']('discardSuggestion'),_0x4e0b65['enableCommand']('acceptAllSuggestions'),_0x4e0b65['enableCommand']('discardAllSuggestions'),_0x4e0b65['enableCommand']('acceptSelectedSuggestions'),_0x4e0b65['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5bfee9{static get['requires'](){return[_0x5b8dfa];}['init'](){const _0x42a144=this['editor'],_0x28e180=_0x42a144['plugins']['get']('TrackChangesEditing');_0x28e180['enableCommand']('shiftEnter'),_0x42a144['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x42a144),{'priority':'high'}),_0x42a144['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x42a144),{'priority':'high'}),_0x42a144['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1214d4,_0x324cd7,_0x522a20)=>{_0x522a20['options']['showSuggestionHighlights']&&ge(_0x42a144,{'showActiveMarker':!0x1})(_0x1214d4,_0x324cd7,_0x522a20);}),_0x28e180['descriptionFactory']['registerElementLabel']('softBreak',_0x50f850=>o(_0x42a144['locale'],'ELEMENT_LINE_BREAK',_0x50f850));}}function ge(_0x54c717,{showActiveMarker:_0xa71d5a=!0x0}={}){return(_0x4697c4,_0x1dc54c,_0x8a500b)=>{const _0x36bd04=_0x54c717['plugins']['get']('TrackChangesEditing');if(!_0x8a500b['consumable']['test'](_0x1dc54c['markerRange'],_0x4697c4['name']))return;const _0x127c46=_0x54c717['model'];for(const _0x40e2e1 of _0x1dc54c['markerRange']['getItems']()){if(!_0x40e2e1['is']('element','softBreak'))continue;const _0x3dcce3='deletion'==_0x1dc54c['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2af1d4}=_0x36bd04['_splitMarkerName'](_0x1dc54c['markerName']),_0x5e3244=_0x8a500b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3dcce3,'data-author-id':_0x2af1d4}),_0xda388a=_0x8a500b['mapper']['toViewPosition'](_0x127c46['createPositionBefore'](_0x40e2e1));_0xa71d5a&&_0x36bd04['activeMarkers']['includes'](_0x1dc54c['markerName'])&&_0x8a500b['writer']['addClass']('ck-suggestion-marker--active',_0x5e3244),_0x8a500b['writer']['insert'](_0xda388a,_0x5e3244),_0x8a500b['mapper']['bindElementToMarker'](_0x5e3244,_0x1dc54c['markerName']);}};}class St extends _0x5bfee9{['afterInit'](){const _0x55f4fb=this['editor'],_0x2d63fd=_0x55f4fb['model'],_0x401e3a=_0x55f4fb['locale'];if(!_0x55f4fb['plugins']['has']('StandardEditingModeEditing'))return;const _0x45a816=_0x55f4fb['plugins']['get']('TrackChangesEditing'),_0x5834ec='restrictedEditingException',_0x52583a=_0x55f4fb['commands']['get'](_0x5834ec);_0x45a816['enableCommand'](_0x5834ec,(_0x441308,_0x1484b1={})=>{const _0x2b9eb5=_0x2d63fd['document']['selection'];if(_0x2b9eb5['isCollapsed'])return void _0x441308(_0x1484b1);const _0x54ba8d=void 0x0!==_0x1484b1['forceValue']?_0x1484b1['forceValue']:!_0x52583a['value'];_0x2d63fd['change'](()=>{const _0x2bfd1c=Array['from'](_0x2b9eb5['getRanges']());for(const _0x3c07b9 of _0x2bfd1c){const _0x55bfc4=_0x54ba8d?[_0x3c07b9]:io(_0x5834ec,_0x3c07b9,_0x2d63fd);for(const _0x459d53 of _0x55bfc4)_0x45a816['markInlineFormat'](_0x459d53,{'commandName':_0x5834ec,'commandParams':[{'forceValue':_0x54ba8d}]});}});}),_0x45a816['descriptionFactory']['registerDescriptionCallback'](_0x1dcd3c=>{if('formatBlock'!=_0x1dcd3c['type']&&'formatInline'!=_0x1dcd3c['type'])return;const {data:_0x460fef}=_0x1dcd3c;return _0x460fef&&_0x460fef['commandName']==_0x5834ec?_0x460fef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x401e3a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x401e3a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x5bfee9{['afterInit'](){const _0x2df3af=this['editor'];if(!_0x2df3af['plugins']['has']('Style')||!_0x2df3af['plugins']['has']('DataSchema'))return;const _0x12ead9=_0x2df3af['plugins']['get']('TrackChangesEditing'),_0x8a62d3=_0x2df3af['locale'],_0x35d369=_0x2df3af['config']['get']('style')||{},_0x15757c=_0x2df3af['plugins']['get']('GeneralHtmlSupport'),_0x4e49c6=_0x2df3af['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2df3af['plugins']['get']('DataSchema'),_0x35d369['definitions']);_0x12ead9['enableDefaultAttributesIntegration']('style');const _0x52fead=new Set();for(const _0x51d0b5 of _0x4e49c6['block']){const _0x5b146e=_0x15757c['getGhsAttributeNameForElement'](_0x51d0b5['element']);_0x52fead['add'](_0x5b146e);}const _0x3eb472=new Set();for(const _0x4517e7 of _0x4e49c6['inline']){const _0x15c15a=_0x15757c['getGhsAttributeNameForElement'](_0x4517e7['element']);_0x3eb472['add'](_0x15c15a);for(const _0x2876de of _0x4517e7['ghsAttributes'])_0x3eb472['add'](_0x2876de);}for(const _0x13730d of _0x52fead)_0x12ead9['registerBlockAttribute'](_0x13730d),_0x12ead9['descriptionFactory']['registerAttributeLabel'](_0x13730d,o(_0x8a62d3,'FORMAT_STYLE'));for(const _0x20781d of _0x3eb472)_0x12ead9['registerInlineAttribute'](_0x20781d),_0x12ead9['descriptionFactory']['registerAttributeLabel'](_0x20781d,o(_0x8a62d3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f6597=this['editor'],_0x127cd5=_0x4f6597['locale'];_0x4f6597['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4da035=>{if('formatBlock'!=_0x4da035['type']&&'formatInline'!=_0x4da035['type'])return;const {data:_0x142538}=_0x4da035;return _0x142538&&'style'===_0x142538['commandName']?_0x142538['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x127cd5,'*Set\x20format:*\x20%0',_0x142538['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x127cd5,'*Remove\x20format:*\x20%0',_0x142538['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x5bfee9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3cb1bb){super(_0x3cb1bb),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2b4a98=this['editor'],_0x27c714=_0x2b4a98['model']['document']['selection'];if(!_0x2b4a98['plugins']['has']('TableEditing'))return;const _0x39e618=_0x2b4a98['locale'],_0x3b11dc=_0x2b4a98['plugins']['get']('TrackChangesEditing'),_0x453547=_0x2b4a98['plugins']['get']('TableUtils');_0x3b11dc['descriptionFactory']['registerElementLabel']('table',_0x41d2ab=>o(_0x39e618,'ELEMENT_TABLE',_0x41d2ab)),this['_setupColumnsRowsFixing'](),_0x3b11dc['enableCommand']('insertTable'),_0x3b11dc['enableCommand']('selectTableRow'),_0x3b11dc['enableCommand']('selectTableColumn');for(const _0x4eb885 of['insertTableRowAbove','insertTableRowBelow']){const _0x20370a=_0x2b4a98['commands']['get'](_0x4eb885);_0x3b11dc['enableCommand'](_0x4eb885,_0x4e74bd=>{_0x2b4a98['model']['change'](_0x4eeb2d=>{_0x4e74bd();const _0x52a022='above'===_0x20370a['order'],_0x28a3e1=_0x453547['getSelectionAffectedTableCells'](_0x27c714),_0x1f7feb=_0x453547['getRowIndexes'](_0x28a3e1),_0x326680=_0x52a022?_0x1f7feb['first']-0x1:_0x1f7feb['last']+0x1,_0x1a7d9f=_0x28a3e1[0x0]['findAncestor']('table'),_0xd03fe2=_0x453547['createTableWalker'](_0x1a7d9f,{'startRow':_0x326680,'endRow':_0x326680}),_0x4715a3=Array['from'](_0xd03fe2)['map'](_0x223f31=>_0x4eeb2d['createRangeOn'](_0x223f31['cell']));_0x3b11dc['markMultiRangeInsertion'](_0x4715a3,'tableRow');});});}for(const _0x3e94dc of['insertTableColumnLeft','insertTableColumnRight']){const _0x22268a=_0x2b4a98['commands']['get'](_0x3e94dc);_0x3b11dc['enableCommand'](_0x3e94dc,_0x920ca0=>{_0x2b4a98['model']['change'](_0x1e23fb=>{_0x920ca0();const _0x6dc8ef='left'===_0x22268a['order'],_0x31f804=_0x453547['getSelectionAffectedTableCells'](_0x27c714),_0x33cb76=_0x453547['getColumnIndexes'](_0x31f804),_0x4d804c=_0x6dc8ef?_0x33cb76['first']-0x1:_0x33cb76['last']+0x1,_0x1c44c8=_0x31f804[0x0]['findAncestor']('table'),_0x56ac4=_0x453547['createTableWalker'](_0x1c44c8,{'startRow':0x0,'column':_0x4d804c,'includeAllSlots':!0x1}),_0x10eeba=Array['from'](_0x56ac4)['map'](_0x4b3af0=>_0x1e23fb['createRangeOn'](_0x4b3af0['cell']));_0x3b11dc['markMultiRangeInsertion'](_0x10eeba,'tableColumn');});});}for(const _0x293ad4 of['removeTableRow','removeTableColumn']){const _0xac5228=_0x293ad4['substr'](0xb),_0x1193b9=_0xac5228['toLowerCase'](),_0x4f39e1=_0x1193b9['substr'](0x0,0x3)+'span',_0x4adf8e='table'+_0xac5228,_0x8f5a87='min'+_0xac5228,_0xd1adfe='max'+_0xac5228;_0x3b11dc['enableCommand'](_0x293ad4,()=>{_0x2b4a98['model']['change'](_0xbabce5=>{const _0x3cfa5c=_0x453547['getSelectionAffectedTableCells'](_0x27c714),_0x4493c2=_0x3cfa5c[0x0]['findAncestor']('table');let _0x201f73;if('removeTableRow'==_0x293ad4){const _0x4d3cc4=_0x453547['getRowIndexes'](_0x3cfa5c);_0x201f73={'startRow':_0x4d3cc4['first'],'endRow':_0x4d3cc4['last'],'includeAllSlots':!0x0};}else{const _0x1d0c41=_0x453547['getColumnIndexes'](_0x3cfa5c);_0x201f73={'startColumn':_0x1d0c41['first'],'endColumn':_0x1d0c41['last'],'includeAllSlots':!0x0};}const _0x5f3a7f=_0x453547['createTableWalker'](_0x4493c2,_0x201f73),_0x33723c=Array['from'](_0x5f3a7f)['map'](({cell:_0x3e4338})=>_0x3e4338),_0x4bad91=be(_0x33723c['filter'](_0x1101ff=>_0x1101ff['hasAttribute'](_0x4f39e1))),_0x118505=be(_0x33723c['filter'](_0x3bfbcf=>!_0x3bfbcf['hasAttribute'](_0x4f39e1)))['map'](_0x174ef8=>_0xbabce5['createRangeOn'](_0x174ef8)),_0x440d55=_0x3b11dc['markMultiRangeDeletion'](_0x118505,_0x4adf8e);if(_0x440d55&&('tableRow'==_0x440d55['subType']||'tableColumn'==_0x440d55['subType'])){const _0x214bf1=this['_getSuggestionCoords'](_0x440d55);for(const _0x4d40b9 of _0x4bad91){const _0xe750fe=_0xbabce5['createRangeOn'](_0x4d40b9),_0x41b890=_0x453547['getCellLocation'](_0x4d40b9),_0x15a0f7=_0x4d40b9['getAttribute'](_0x4f39e1)-0x1,_0x1898d0=_0x214bf1[_0x8f5a87],_0x126b69=_0x214bf1[_0xd1adfe];_0x1898d0<=_0x41b890[_0x1193b9]&&_0x41b890[_0x1193b9]+_0x15a0f7<=_0x126b69&&_0x440d55['addRange'](_0xe750fe);}}});});}function _0x1711c5(_0xcdfe63){const _0x2fbbe4=Array['from'](_0x27c714['getRanges']())['map'](_0x44adcc=>_0x50563c['fromRange'](_0x44adcc));_0x2b4a98['model']['change'](_0x598b8b=>{const _0x19a16b=_0x598b8b['batch'];_0xcdfe63=_0xcdfe63['filter'](_0x28500b=>'$graveyard'!=_0x28500b['root']['rootName']),_0x598b8b['setSelection'](_0xcdfe63),_0x2b4a98['commands']['get']('removeTableRow')['refresh'](),_0x2b4a98['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2b4a98['model']['enqueueChange'](()=>{_0x2b4a98['model']['enqueueChange'](_0x19a16b,_0x293325=>{const _0x4c94f8=_0x2fbbe4['filter'](_0x55c988=>'$graveyard'!=_0x55c988['root']['rootName']);_0x4c94f8['length']>0x0&&_0x293325['setSelection'](_0x4c94f8);for(const _0x427bdd of _0x2fbbe4)_0x427bdd['detach']();});});});}function _0x35fa3d(_0x4d7e11){_0x2b4a98['model']['change'](_0x9efac1=>{const _0x2d71f6=Array['from'](_0x27c714['getRanges']())['map'](_0xb80a0f=>_0x50563c['fromRange'](_0xb80a0f)),_0x33a4ae=[];for(const _0x7fd8f6 of _0x4d7e11)for(const _0x5e4426 of _0x7fd8f6['getItems']({'shallow':!0x0}))_0x33a4ae['push'](_0x5e4426);for(const _0x341ec8 of _0x33a4ae)'$graveyard'!=_0x341ec8['root']['rootName']&&(_0x9efac1['setSelection'](_0x9efac1['createPositionAt'](_0x341ec8,0x0)),_0x2b4a98['commands']['get']('removeTableColumn')['refresh'](),_0x2b4a98['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5471a2=_0x2d71f6['filter'](_0x6b8600=>'$graveyard'!=_0x6b8600['root']['rootName']);_0x5471a2['length']>0x0&&_0x9efac1['setSelection'](_0x5471a2);for(const _0x3f4957 of _0x2d71f6)_0x3f4957['detach']();});}function _0x150f7a(_0x5d8c4a,_0x1fed57){return _0x1fed57['every'](_0x2083f5=>_0x5d8c4a['some'](_0x1b4515=>_0x1b4515['end']['isEqual'](_0x2083f5['start'])||_0x2083f5['end']['isEqual'](_0x1b4515['start'])));}function _0x2f0a79(_0x2c8610,_0x11c084){return!_0x2c8610['some'](_0x37cb9f=>_0x11c084['some'](_0x48afa8=>_0x37cb9f['isIntersecting'](_0x48afa8)))&&_0x2c8610['some'](_0x281803=>_0x11c084['some'](_0x15ab76=>_0x281803['end']['isTouching'](_0x15ab76['start'])));}_0x2b4a98['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b1893,_0x1b6813,_0x5a8fd6)=>{if(!_0x5a8fd6['options']['showSuggestionHighlights'])return;const _0x5ce2da=_0x1b6813['item'];if(!_0x5ce2da)return;const _0x3ca284=_0x5a8fd6['mapper']['toViewElement'](_0x5ce2da);function _0x1b8650(_0x39cf31){return Array['isArray'](_0x39cf31)?_0x39cf31:[_0x39cf31];}_0x3ca284&&'tableCell'===_0x5ce2da['name']&&_0x511059(_0x3ca284,_0x5a8fd6['writer'],(_0x58edf2,_0x381fed,_0x4b48f2)=>_0x4b48f2['addClass'](_0x1b8650(_0x381fed['classes']),_0x58edf2),(_0x2e1522,_0x164066,_0x304228)=>_0x304228['removeClass'](_0x1b8650(_0x164066['classes']),_0x2e1522));},{'priority':'highest'}),_0x3b11dc['descriptionFactory']['registerDescriptionCallback'](_0x1765e8=>{if('insertion'!=_0x1765e8['type']&&'deletion'!=_0x1765e8['type'])return;const _0x5a71fd=_0x1765e8['getContainedElement']();if(null!=_0x5a71fd&&_0x5a71fd['is']('element','table')){if('insertion'==_0x1765e8['type']){const _0x46fb46=_0x1765e8['getItems']()['filter'](_0x911977=>_0x911977['is']('$textProxy'))['map'](_0x41c5a0=>_0x41c5a0['data']);if(_0x46fb46['length'])return{'type':'insertion','content':o(_0x39e618,'*Insert:*\x20%0',o(_0x39e618,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x46fb46['join']('\x20')+'\x22'))};}if('deletion'==_0x1765e8['type']){const _0x10e183=_0x1765e8['getItems']()['filter'](_0x23a88e=>_0x23a88e['is']('$textProxy'))['map'](_0x476dbe=>_0x476dbe['data']);if(_0x10e183['length'])return{'type':'deletion','content':o(_0x39e618,'*Remove:*\x20%0',o(_0x39e618,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x10e183['join']('\x20')+'\x22'))};}}}),_0x3b11dc['descriptionFactory']['registerDescriptionCallback'](_0x306738=>{if('tableRow'==_0x306738['subType']){const _0xe1deb0=_0x306738['getItems']()['filter'](_0x5d3006=>_0x5d3006['is']('$textProxy'))['map'](_0x36df7f=>_0x36df7f['data']),_0x30e0d3=this['_getSuggestionCoords'](_0x306738),_0x5a1ee7=_0x30e0d3['maxRow']-_0x30e0d3['minRow']+0x1;if('insertion'==_0x306738['type'])return _0xe1deb0['length']?{'type':'insertion','content':o(_0x39e618,'*Insert:*\x20%0',o(_0x39e618,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5a1ee7,'\x22'+_0xe1deb0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39e618,'*Insert:*\x20%0',o(_0x39e618,'ELEMENT_TABLE_ROW',_0x5a1ee7))};if('deletion'==_0x306738['type'])return _0xe1deb0['length']?{'type':'deletion','content':o(_0x39e618,'*Remove:*\x20%0',o(_0x39e618,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5a1ee7,'\x22'+_0xe1deb0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39e618,'*Remove:*\x20%0',o(_0x39e618,'ELEMENT_TABLE_ROW',_0x5a1ee7))};}if('tableColumn'==_0x306738['subType']){const _0x503039=_0x306738['getItems']()['filter'](_0x5a3b3b=>_0x5a3b3b['is']('$textProxy'))['map'](_0x5a4bc8=>_0x5a4bc8['data']),_0x929221=this['_getSuggestionCoords'](_0x306738),_0xbeeccd=_0x929221['maxColumn']-_0x929221['minColumn']+0x1;if('insertion'==_0x306738['type'])return _0x503039['length']?{'type':'insertion','content':o(_0x39e618,'*Insert:*\x20%0',o(_0x39e618,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbeeccd,'\x22'+_0x503039['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39e618,'*Insert:*\x20%0',o(_0x39e618,'ELEMENT_TABLE_COLUMN',_0xbeeccd))};if('deletion'==_0x306738['type'])return _0x503039['length']?{'type':'deletion','content':o(_0x39e618,'*Remove:*\x20%0',o(_0x39e618,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbeeccd,'\x22'+_0x503039['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39e618,'*Remove:*\x20%0',o(_0x39e618,'ELEMENT_TABLE_COLUMN',_0xbeeccd))};}}),_0x3b11dc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1711c5),_0x3b11dc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1711c5),_0x3b11dc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x35fa3d),_0x3b11dc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x35fa3d),_0x3b11dc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x150f7a),_0x3b11dc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x150f7a),_0x3b11dc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2f0a79),_0x3b11dc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2f0a79);}['_acceptFormatSuggestionCallbackFactory'](){const _0x553ac4=this['editor'],_0x131912=_0x553ac4['model']['document']['selection'];return(_0x325b3c,_0x3984d2)=>{_0x553ac4['model']['change'](_0x529f1a=>{const {commandName:_0x2b7fb6,commandParams:_0x439046}=_0x3984d2;let _0x21efba=_0x325b3c[0x0]['end']['nodeBefore'];_0x439046&&_0x439046[0x0]&&!0x1===_0x439046[0x0]['forceValue']&&(_0x21efba=_0x325b3c[0x0]['start']['nodeAfter']);const _0x28a8c0=_0x529f1a['createRangeIn'](_0x21efba);if('$graveyard'==_0x28a8c0['root']['rootName'])return;const _0x681926=Array['from'](_0x131912['getRanges']())['map'](_0x4d8419=>_0x50563c['fromRange'](_0x4d8419));_0x529f1a['setSelection'](_0x28a8c0),_0x553ac4['commands']['get'](_0x2b7fb6)['refresh'](),_0x439046['push']({'forceDefaultExecution':!0x0}),_0x553ac4['execute'](_0x2b7fb6,..._0x439046);const _0x35e2ba=_0x681926['filter'](_0x4020e1=>'$graveyard'!=_0x4020e1['root']['rootName']);_0x35e2ba['length']>0x0&&_0x529f1a['setSelection'](_0x35e2ba);for(const _0xa2cb02 of _0x681926)_0xa2cb02['detach']();});};}['_getCoordsForCells'](_0x1fb2fb){const _0x4c44f8=this['editor']['plugins']['get']('TableUtils');let _0x437992=Number['MAX_SAFE_INTEGER'],_0x3877aa=Number['MIN_SAFE_INTEGER'],_0x1eb05a=Number['MAX_SAFE_INTEGER'],_0x4147fd=Number['MIN_SAFE_INTEGER'];for(const _0x205a25 of _0x1fb2fb){if('$graveyard'==_0x205a25['root']['rootName'])continue;const {row:_0x1d6a51,column:_0x380955}=_0x4c44f8['getCellLocation'](_0x205a25),_0x3301f5=_0x205a25['hasAttribute']('rowspan')?_0x205a25['getAttribute']('rowspan')-0x1:0x0,_0x2e1f47=_0x205a25['hasAttribute']('colspan')?_0x205a25['getAttribute']('colspan')-0x1:0x0;_0x437992=_0x1d6a51<_0x437992?_0x1d6a51:_0x437992,_0x3877aa=_0x1d6a51+_0x3301f5>_0x3877aa?_0x1d6a51+_0x3301f5:_0x3877aa,_0x1eb05a=_0x380955<_0x1eb05a?_0x380955:_0x1eb05a,_0x4147fd=_0x380955+_0x2e1f47>_0x4147fd?_0x380955+_0x2e1f47:_0x4147fd;}return{'minRow':_0x437992,'maxRow':_0x3877aa,'minColumn':_0x1eb05a,'maxColumn':_0x4147fd};}['_setupColumnsRowsFixing'](){const _0x567bfa=this['editor'],_0x26e82c=_0x567bfa['plugins']['get']('TrackChangesEditing'),_0x35cdaa=_0x567bfa['plugins']['get']('TableUtils');_0x567bfa['model']['document']['on']('change:data',()=>{const _0x2f1b37=Array['from'](_0x567bfa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50701b,data:_0x2d62e3}of _0x2f1b37){const {group:_0x4f827b,id:_0x4b9e69,subType:_0x4dc3ff}=_0x26e82c['_splitMarkerName'](_0x50701b);if('suggestion'!=_0x4f827b)continue;if(null!=_0x2d62e3['oldRange'])continue;const _0x4a9e3b=_0x26e82c['getSuggestion'](_0x4b9e69);this['_tablePostFixingSubtypes']['includes'](_0x4dc3ff)&&this['_tableSuggestions']['add'](_0x4a9e3b);}},{'priority':'low'});const _0x59847a=(_0xfa66ee,_0x3a122c)=>{let _0xdda17e=!0x1;const _0x2364bb=_0x3a122c['createRangeOn'](_0xfa66ee),_0x118271=_0xfa66ee['findAncestor']('table'),_0x1c0c1e=_0x35cdaa['getCellLocation'](_0xfa66ee);for(const _0x53961f of this['_tableSuggestions']){const _0x449dce=_0x53961f['subType'],_0x386142=_0x449dce['startsWith']('tablePaste'),_0x12c259=_0x449dce['substr'](_0x386142?0xa:0x5),_0x3de515=_0x12c259['toLowerCase'](),_0x528bd2=_0x3de515['substr'](0x0,0x3)+'span',_0x4486bf='min'+_0x12c259,_0x477a63='max'+_0x12c259;if(!_0x53961f['isInContent'])continue;if(_0x118271!=_0x53961f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x53961f['isIntersectingWithRange'](_0x2364bb))continue;const _0x56cdac=_0xfa66ee['hasAttribute'](_0x528bd2)?_0xfa66ee['getAttribute'](_0x528bd2)-0x1:0x0,_0x4299c0=this['_getSuggestionCoords'](_0x53961f),_0x3c0a8f=_0x4299c0[_0x4486bf],_0x6c5df4=_0x4299c0[_0x477a63];_0x3c0a8f<=_0x1c0c1e[_0x3de515]&&_0x1c0c1e[_0x3de515]+_0x56cdac<=_0x6c5df4&&(_0x53961f['addRange'](_0x2364bb),_0xdda17e=!0x0);}return _0xdda17e;};_0x567bfa['model']['document']['registerPostFixer'](_0x275b94=>{let _0x141ae8=!0x1;for(const _0x749907 of _0x567bfa['model']['document']['differ']['getChanges']())if('insert'==_0x749907['type']){if('tableRow'==_0x749907['name']){for(const _0x56fe34 of _0x749907['position']['nodeAfter']['getChildren']())_0x141ae8=_0x141ae8||_0x59847a(_0x56fe34,_0x275b94);}else'tableCell'==_0x749907['name']&&(_0x141ae8=_0x141ae8||_0x59847a(_0x749907['position']['nodeAfter'],_0x275b94));}return _0x141ae8;});}['_getSuggestionCoords'](_0x60cfcd){return this['_getCoordsForCells'](_0x60cfcd['getRanges']()['map'](_0x3e1259=>_0x3e1259['start']['nodeAfter']));}}function be(_0x6812d2){return Array['from'](new Set(_0x6812d2)['values']());}class vt extends _0x5bfee9{static get['requires'](){return[It];}['afterInit'](){const _0x5141b6=this['editor'],_0x48371e=_0x5141b6['model']['document']['selection'],_0x402220=_0x5141b6['locale'];if(!_0x5141b6['plugins']['has']('TableEditing'))return;const _0x37c224=_0x5141b6['plugins']['get']('TrackChangesEditing'),_0x54a687=_0x5141b6['plugins']['get']('TableUtils'),_0x5597e3=_0x5141b6['plugins']['get'](It);_0x5597e3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x37c224['enableCommand']('mergeTableCells',()=>{const _0x26e517=_0x54a687['getSelectionAffectedTableCells'](_0x5141b6['model']['document']['selection']);_0x5141b6['model']['change'](()=>{_0x37c224['markMultiRangeBlockFormat'](_0x26e517,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5141b6['commands']['get']('mergeTableCells')['on']('execute',(_0x2a23ad,_0x5cd96d)=>{_0x5141b6['commands']['get']('trackChanges')['value']&&(_0x5cd96d['length']>0x0&&_0x5cd96d[_0x5cd96d['length']-0x1]&&_0x5cd96d[_0x5cd96d['length']-0x1]['forceDefaultExecution']||_0x37c224['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2a23ad['stop']());},{'priority':'highest'});for(const _0x3235b7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x49ade6=_0x5141b6['commands']['get'](_0x3235b7);_0x37c224['enableCommand'](_0x3235b7,()=>{const _0x55a69b=_0x5141b6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33795d=>_0x33795d['is']('element','tableCell')),_0x12e8b6=_0x49ade6['value'];_0x5141b6['model']['change'](()=>{_0x37c224['markMultiRangeBlockFormat']([_0x55a69b,_0x12e8b6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1e73b7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x105317=_0x5141b6['commands']['get'](_0x1e73b7);_0x37c224['enableCommand'](_0x1e73b7,()=>{const _0x43fb11=_0x54a687['getSelectionAffectedTableCells'](_0x5141b6['model']['document']['selection'])[0x0],_0x1f6526=_0x43fb11['findAncestor']('table'),{column:_0x4c498a,row:_0xa243c2}=_0x54a687['getCellLocation'](_0x43fb11);let _0x433d9f=[];if('horizontally'==_0x105317['direction']){const _0x114da0=_0x54a687['createTableWalker'](_0x1f6526,{'startRow':_0xa243c2,'endRow':_0xa243c2,'includeAllSlots':!0x0});_0x433d9f=Array['from'](_0x114da0)['map'](_0x1095bd=>_0x1095bd['cell']);}else{const _0x53e5c7=_0x54a687['createTableWalker'](_0x1f6526,{'column':_0x4c498a,'includeAllSlots':!0x0});_0x433d9f=Array['from'](_0x53e5c7)['map'](_0x1f7c66=>_0x1f7c66['cell']);}_0x5141b6['model']['change'](_0x55e4d6=>{_0x37c224['markBlockFormat'](_0x55e4d6['createRangeOn'](_0x43fb11),{'commandName':_0x1e73b7,'commandParams':[]},_0x433d9f,_0x1e73b7);});});}_0x37c224['descriptionFactory']['registerDescriptionCallback'](_0x5b8e60=>{if('formatBlock'!=_0x5b8e60['type']&&'formatInline'!=_0x5b8e60['type'])return;const {data:_0x46f024}=_0x5b8e60;return _0x46f024&&'mergeTableCells'==_0x46f024['commandName']?{'type':'format','content':o(_0x402220,'*Merge\x20cells*')}:void 0x0;}),_0x37c224['descriptionFactory']['registerDescriptionCallback'](_0x5ee6a2=>{if('formatBlock'!=_0x5ee6a2['type']&&'formatInline'!=_0x5ee6a2['type'])return;const {data:_0x356aae}=_0x5ee6a2;return _0x356aae?'splitTableCellVertically'==_0x356aae['commandName']?{'type':'format','content':o(_0x402220,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x356aae['commandName']?{'type':'format','content':o(_0x402220,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x33c6ae=_0x5597e3['_acceptFormatSuggestionCallbackFactory']();for(const _0x2b4859 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x37c224['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b4859,'accept',_0x33c6ae);for(const _0xa152cd of['splitTableCellVertically','splitTableCellHorizontally'])_0x37c224['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa152cd,'accept',_0x33c6ae);_0x37c224['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x158c64=>{_0x5141b6['model']['change'](_0x2c3151=>{const _0x3de8f7=Array['from'](_0x48371e['getRanges']())['map'](_0x53d960=>_0x50563c['fromRange'](_0x53d960));_0x2c3151['setSelection'](_0x158c64),_0x5141b6['commands']['get']('mergeTableCells')['refresh'](),_0x5141b6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5691e5=_0x3de8f7['filter'](_0x56e118=>'$graveyard'!=_0x56e118['root']['rootName']);_0x5691e5['length']>0x0&&_0x2c3151['setSelection'](_0x5691e5);for(const _0x50e9a9 of _0x3de8f7)_0x50e9a9['detach']();});});for(const _0x5be5fc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x226c45=_0x5141b6['commands']['get'](_0x5be5fc);_0x226c45['on']('set:isEnabled',(_0xd7185,_0x4330f5,_0x2bd5d5)=>{if(_0x2bd5d5){const _0x32f943=_0x5141b6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53e3c0=>_0x53e3c0['is']('element','tableCell'));this['_areMergableCells'](_0x226c45['value'],_0x32f943)||(_0xd7185['return']=!0x1,_0xd7185['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3b7b7c=this['editor']['commands']['get']('mergeTableCells'),_0x12deea=this['editor']['plugins']['get']('TableUtils');if(!_0x3b7b7c['isEnabled'])return!0x1;const _0x20df13=_0x12deea['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d7ea2 of _0x20df13)for(const _0x14b90e of _0x20df13)if(_0x3d7ea2!=_0x14b90e&&!this['_areMergableCells'](_0x3d7ea2,_0x14b90e))return!0x1;return!0x0;}['_areMergableCells'](_0x3cc460,_0x39a52b){const _0x428c43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39ce9d=this['editor']['model']['createRangeOn'](_0x3cc460),_0x480992=this['editor']['model']['createRangeOn'](_0x39a52b),_0x3b0d61=new Set(),_0x3aed45=new Set();for(const _0x4a8c3d of _0x428c43['getSuggestions']())if(('insertion'==_0x4a8c3d['type']||'deletion'==_0x4a8c3d['type']||'mergeTableCells'==_0x4a8c3d['subType'])&&_0x4a8c3d['isInContent']){for(const _0x5df657 of _0x4a8c3d['getRanges']())_0x5df657['containsRange'](_0x39ce9d,!0x0)&&_0x3b0d61['add'](_0x4a8c3d['type']+':'+_0x4a8c3d['author']['id']),_0x5df657['containsRange'](_0x480992,!0x0)&&_0x3aed45['add'](_0x4a8c3d['type']+':'+_0x4a8c3d['author']['id']);}if(_0x3b0d61['size']!=_0x3aed45['size'])return!0x1;for(const _0xe4e48a of _0x3b0d61)if(!_0x3aed45['has'](_0xe4e48a))return!0x1;return!0x0;}}class Ct extends _0x5bfee9{static get['requires'](){return[It];}['afterInit'](){const _0x3848a0=this['editor'];if(!_0x3848a0['plugins']['has']('TableEditing'))return;const _0x34a40=_0x3848a0['locale'],_0x1b8fd4=_0x3848a0['plugins']['get']('TrackChangesEditing');_0x1b8fd4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b8fd4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b8fd4['registerBlockAttribute']('headingRows'),_0x1b8fd4['registerBlockAttribute']('headingColumns'),_0x1b8fd4['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x34a40,'FORMAT_HEADER_ROW')),_0x1b8fd4['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x34a40,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cf2a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44ca1d=this['editor']['plugins']['get']('TableUtils'),_0x483143=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x52ff2c({showActiveMarker:_0xbde4c=!0x0,setDataAttribute:_0x22aeaa=!0x0}={}){return(_0x439ef7,_0x22592a,_0x4077f)=>{const {type:_0x11521d,id:_0x4e1818}=_0x1cf2a8['_splitMarkerName'](_0x22592a['markerName']),_0x295a0b=_0x1cf2a8['getSuggestion'](_0x4e1818),_0x507ffa=_0x295a0b['data'];if('formatBlock'!=_0x295a0b['type']||!_0x507ffa||'setTableColumnHeader'!=_0x507ffa['commandName'])return;if(_0x22592a['item'])return void _0x439ef7['stop']();if(!_0x4077f['consumable']['consume'](_0x22592a['markerRange'],_0x439ef7['name']))return;const _0x24b227=_0x22592a['markerRange']['start']['nodeAfter'],_0x290a90=_0x22592a['markerRange']['end']['nodeBefore'],_0x22eb96=_0x24b227['parent']['parent'],{column:_0x582d9b}=_0x44ca1d['getCellLocation'](_0x24b227),{column:_0x3df326}=_0x44ca1d['getCellLocation'](_0x290a90);for(let _0x805ece=_0x582d9b;_0x805ece<=_0x3df326;_0x805ece++){const _0x2878c0=_0x44ca1d['createTableWalker'](_0x22eb96,{'column':_0x805ece,'includeAllSlots':!0x1});for(const _0x137dfd of _0x2878c0){const _0x4e44ae=_0x137dfd['cell'],_0x53c19c=_0x4077f['mapper']['toViewElement'](_0x4e44ae);_0x4077f['writer']['addClass']('ck-suggestion-marker-'+_0x11521d,_0x53c19c),_0x22aeaa&&_0x4077f['writer']['setAttribute']('data-suggestion',_0x4e1818,_0x53c19c),_0x4077f['mapper']['bindElementToMarker'](_0x53c19c,_0x22592a['markerName']),_0xbde4c&&(_0x1cf2a8['activeMarkers']['includes'](_0x22592a['markerName'])?_0x4077f['writer']['addClass']('ck-suggestion-marker--active',_0x53c19c):_0x4077f['writer']['removeClass']('ck-suggestion-marker--active',_0x53c19c));}}};}_0x1cf2a8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x483143),_0x1cf2a8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x483143),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x52ff2c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30b057,_0x389f2c,_0x1a5ced)=>{_0x1a5ced['options']['showSuggestionHighlights']&&_0x52ff2c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x30b057,_0x389f2c,_0x1a5ced);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x556ba8,_0x2f78e6,_0x74fd51)=>{const {type:_0x2e2708,id:_0x2559ce}=_0x1cf2a8['_splitMarkerName'](_0x2f78e6['markerName']),_0x2bc497=_0x1cf2a8['getSuggestion'](_0x2559ce),_0x4deb5=_0x2bc497['data'];if('formatBlock'!=_0x2bc497['type']||!_0x4deb5||'setTableColumnHeader'!=_0x4deb5['commandName'])return;const _0x3929d9=_0x74fd51['mapper']['markerNameToElements'](_0x2f78e6['markerName']);if(_0x3929d9){for(const _0x566106 of _0x3929d9)_0x74fd51['writer']['removeClass']('ck-suggestion-marker-'+_0x2e2708,_0x566106),_0x74fd51['writer']['removeClass']('ck-suggestion-marker--active',_0x566106),_0x74fd51['writer']['removeAttribute']('data-suggestion',_0x566106),_0x74fd51['mapper']['unbindElementFromMarkerName'](_0x566106,_0x2f78e6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51ff06=this['editor'],_0x481b08=_0x51ff06['locale'];function _0x349370(_0x1d5ce9){return{'type':'format','content':o(_0x481b08,'*Format:*\x20%0',_0x1d5ce9)};}_0x51ff06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d5d42=>{if('formatBlock'!=_0x1d5d42['type'])return;const {data:_0x26f744}=_0x1d5d42;if(_0x26f744){if('setTableRowHeader'==_0x26f744['commandName']){const _0x4b9ba2=_0x26f744['commandParams'][0x0]['forceValue'];return _0x349370(o(_0x481b08,_0x4b9ba2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26f744['commandName']){const _0x5df6cf=_0x26f744['commandParams'][0x0]['forceValue'];return _0x349370(o(_0x481b08,_0x5df6cf?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x2c881e=>[_0x2c881e,null]));class _t extends _0x5bfee9{static get['requires'](){return[It];}['afterInit'](){const _0x4f5c4a=this['editor'];if(!_0x4f5c4a['plugins']['has']('TableClipboard'))return;const _0x650626=_0x4f5c4a['plugins']['get']('TrackChangesEditing'),_0x408596=_0x4f5c4a['plugins']['get']('TableUtils'),_0xc1c85f=_0x4f5c4a['plugins']['get'](It),_0x591163=_0x4f5c4a['plugins']['get']('TableClipboard');_0xc1c85f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4f5c4a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4f5c4a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x22dca1=null;_0x4f5c4a['model']['on']('insertContent',(_0x902467,_0x544967)=>{const [_0x21330a,_0x5ca925]=_0x544967,_0xb1fa13=_0x544967[_0x544967['length']-0x1];_0xb1fa13&&_0xb1fa13['forceDefaultExecution']||_0x650626['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2598f9,_0x5e17c9,_0x37e860,_0x3bc0c2,_0x4884e6){if(_0x5e17c9&&!_0x5e17c9['is']('documentSelection'))return!0x1;const _0x2c9bb6=_0x4884e6['getTableIfOnlyTableInContent'](_0x2598f9,_0x37e860);if(!_0x2c9bb6||!Re(_0x2c9bb6,void 0x0,_0x3bc0c2))return!0x1;const _0x2f806a=_0x3bc0c2['getSelectionAffectedTableCells'](_0x37e860['document']['selection']);if(!_0x2f806a['length'])return!0x1;const _0x210820=_0x2f806a[0x0]['findAncestor']('table'),_0x5c67cc=_0x3bc0c2['getRowIndexes'](_0x2f806a),_0x3f1500=_0x3bc0c2['getColumnIndexes'](_0x2f806a),_0x3dcff9={'startRow':_0x5c67cc['first'],'endRow':_0x5c67cc['last'],'startColumn':_0x3f1500['first'],'endColumn':_0x3f1500['last']};return 0x1==_0x2f806a['length']&&(_0x3dcff9['endRow']+=_0x3bc0c2['getRows'](_0x2c9bb6)-0x1,_0x3dcff9['endColumn']+=_0x3bc0c2['getColumns'](_0x2c9bb6)-0x1),Re(_0x210820,_0x3dcff9,_0x3bc0c2);}(_0x21330a,_0x5ca925,_0x4f5c4a['model'],_0x408596,_0x591163)&&(_0x902467['stop'](),_0x22dca1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4f5c4a['model']['change'](()=>{_0x4f5c4a['model']['insertContent'](_0x544967[0x0],_0x544967[0x1],_0x544967[0x2],{'forceDefaultExecution':!0x0});const _0x1a4cd7=_0xdb8ef7(),{rowInsertionRanges:_0x4fcc28,columnInsertionRanges:_0x2d4fff,insertionRanges:_0x49de03,deletionRanges:_0x7449af,cells:_0x51ab7f}=_0x22dca1;_0x4fcc28['length']&&_0x650626['markMultiRangeInsertion'](_0x4fcc28,'tablePasteRow',{'tablePasteChainId':_0x1a4cd7}),_0x2d4fff['length']&&_0x650626['markMultiRangeInsertion'](_0x2d4fff,'tablePasteColumn',{'tablePasteChainId':_0x1a4cd7}),_0x49de03['length']&&(_0x650626['markMultiRangeInsertion'](_0x49de03,'tablePaste',{'tablePasteChainId':_0x1a4cd7,'skipNestingCheck':!0x0}),_0x49de03['forEach'](_0x47f2eb=>_0x47f2eb['detach']?.())),_0x7449af['length']&&(_0x650626['markMultiRangeDeletion'](_0x7449af,'tablePaste',{'tablePasteChainId':_0x1a4cd7,'skipNestingCheck':!0x0}),_0x7449af['forEach'](_0x3d8c7c=>_0x3d8c7c['detach']?.()));const _0x2b6d59=_0x650626['markMultiRangeBlockFormat'](_0x51ab7f['map'](({element:_0x1c4205})=>_0x1c4205),{'formatGroupId':_0xdb8ef7()},[],'tablePasteCell',{'tablePasteChainId':_0x1a4cd7});if(_0x2b6d59){const _0x1c7c56=_0x2b6d59['getMarkers'](),_0x53d459=[];for(const {element:_0x2823cf,attributes:_0x304c2f}of _0x51ab7f){if(!_0x304c2f)continue;const _0x376f6c=_0x4f5c4a['model']['createRangeOn'](_0x2823cf),_0x8054c0=_0x1c7c56['find'](_0x2ce171=>_0x2ce171['getRange']()['isEqual'](_0x376f6c));_0x8054c0&&_0x53d459['push']([_0x8054c0['name'],_0x304c2f]);}_0x53d459['length']&&_0x2b6d59['setAttribute']('markerAttributes',Object['fromEntries'](_0x53d459));}_0x22dca1=null;}));},{'priority':_0x47b90b['high']+0xa}),_0x4f5c4a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x437844,_0x155b9b)=>{const [_0x51f5d1,_0x3de047,,_0x233908]=_0x155b9b;if(!_0x22dca1)return;_0x437844['stop']();const _0x786b44=_0x51f5d1['cell'],_0x55a8ad=_0x3de047,_0x41a6be=ke(_0x786b44),_0xe0a29c=ke(_0x55a8ad);_0x437844['return']=_0x786b44;let _0x523c72=null,_0x5310b2=null;if(_0xe0a29c||_0x41a6be){if(_0x41a6be&&!_0xe0a29c){_0x233908['remove'](_0x786b44['getChild'](0x0));for(const _0xe4414e of Array['from'](_0x55a8ad['getChildren']()))_0x233908['insert'](_0xe4414e,_0x786b44,'end');const _0x2c5bf5=_0x22dca1['rowInsertionIndexes']['includes'](_0x51f5d1['row']),_0x50ca5d=_0x22dca1['columnInsertionIndexes']['includes'](_0x51f5d1['column']);_0x2c5bf5||_0x50ca5d||(_0x523c72=_0x50563c['fromRange'](_0x233908['createRangeIn'](_0x786b44)));}else _0xe0a29c&&!_0x41a6be&&(_0x5310b2=_0x233908['createRangeIn'](_0x786b44));}else{const _0x1a0b2c=_0x233908['createElement']('tableCellSuggestion'),_0x390dcd=_0x233908['createElement']('tableCellSuggestion');_0x233908['wrap'](_0x233908['createRangeIn'](_0x786b44),_0x390dcd),_0x233908['insert'](_0x1a0b2c,_0x786b44,0x0);for(const _0x10d4f5 of Array['from'](_0x55a8ad['getChildren']()))_0x233908['insert'](_0x10d4f5,_0x1a0b2c,'end');_0x523c72=_0x50563c['fromRange'](_0x233908['createRangeOn'](_0x1a0b2c)),_0x5310b2=_0x50563c['fromRange'](_0x233908['createRangeOn'](_0x390dcd));}const _0x111981=Array['from'](_0x55a8ad['getAttributes']())['filter'](([_0x23fe83])=>Pe['includes'](_0x23fe83));_0x22dca1['cells']['push']({'element':_0x786b44,'attributes':_0x111981['length']?Object['fromEntries'](_0x111981):null}),_0x523c72&&_0x22dca1['insertionRanges']['push'](_0x523c72),_0x5310b2&&_0x22dca1['deletionRanges']['push'](_0x5310b2);},{'priority':'high'}),_0x408596['on']('insertColumns',(_0x1812e5,_0x266bf3)=>{const [_0x3751dc,_0x30ec69={}]=_0x266bf3;if(!_0x22dca1)return;const _0x448942=_0x30ec69['at']||0x0,_0x14d1fd=_0x30ec69['columns']||0x1;_0x22dca1['columnInsertionIndexes']=new Array(_0x14d1fd)['fill'](_0x448942)['map']((_0x282750,_0x4b5d18)=>_0x282750+_0x4b5d18);for(const {cell:_0x536acb}of _0x408596['createTableWalker'](_0x3751dc,{'startColumn':_0x448942,'endColumn':_0x448942+_0x14d1fd-0x1}))_0x22dca1['columnInsertionRanges']['push'](_0x4f5c4a['model']['createRangeOn'](_0x536acb));},{'priority':'low'}),_0x408596['on']('insertRows',(_0x1ecf2d,_0x11c902)=>{const [_0x30911d,_0x4a16d6={}]=_0x11c902;if(!_0x22dca1)return;const _0x171bb5=_0x4a16d6['at']||0x0,_0x5c418b=_0x4a16d6['rows']||0x1;_0x22dca1['rowInsertionIndexes']=new Array(_0x5c418b)['fill'](_0x171bb5)['map']((_0x546a6a,_0x2710ec)=>_0x546a6a+_0x2710ec);for(const {cell:_0x28e8e0}of _0x408596['createTableWalker'](_0x30911d,{'startRow':_0x171bb5,'endRow':_0x171bb5+_0x5c418b-0x1}))_0x22dca1['rowInsertionRanges']['push'](_0x4f5c4a['model']['createRangeOn'](_0x28e8e0));},{'priority':'low'}),_0x650626['descriptionFactory']['registerDescriptionCallback'](_0xf8858=>{if(_0xf8858['subType']&&_0xf8858['subType']['startsWith']('tablePaste'))return _0xf8858['previous']?{}:{'type':'insertion','content':o(_0x4f5c4a['locale'],'*Replace\x20table\x20cells*')};});const _0x1d21b6=()=>!0x1;for(const _0x58e240 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x650626['_suggestionFactory']['registerCustomCallback']('insertion',_0x58e240,'join',_0x1d21b6),_0x650626['_suggestionFactory']['registerCustomCallback']('deletion',_0x58e240,'join',_0x1d21b6),_0x650626['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58e240,'join',_0x1d21b6);_0x650626['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1d21b6),_0x650626['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d7b1c,_0x2d6c75,_0x8596ad)=>{const _0x522b76=_0x1d7b1c['map'](_0x18a002=>_0x18a002['getContainedElement']())['filter'](_0xd8ee73=>_0xd8ee73),_0x1448bf=new Map(_0x522b76['map'](_0x3aa923=>[_0x3aa923,null]));if(_0x22dca1){for(const {element:_0x27794b,attributes:_0x1d02af}of _0x22dca1['cells'])_0x1d02af&&_0x1448bf['set'](_0x27794b,_0x1d02af);}else{if(_0x8596ad&&_0x8596ad['markerAttributes'])for(const [_0x550853,_0x3699ea]of Object['entries'](_0x8596ad['markerAttributes'])){const _0x29872f=_0x4f5c4a['model']['markers']['get'](_0x550853),_0x5000ad=_0x29872f?_0x29872f['getRange']()['getContainedElement']():null;_0x5000ad&&_0x1448bf['set'](_0x5000ad,_0x3699ea);}}_0x4f5c4a['model']['change'](_0x33c041=>{for(const [_0x2e095c,_0x1177c7]of _0x1448bf)_0x33c041['setAttributes']({...we,..._0x1177c7},_0x2e095c);});});const _0x42ee25=(_0x2d28bc,_0x15698c)=>{_0x650626['_suggestionFactory']['registerCustomCallback'](_0x2d28bc,'tablePaste',_0x15698c,(_0x238ee3,_0x38af7a,_0x2d6549)=>{_0x4f5c4a['model']['change'](_0x9e2535=>{const _0x4f853d=[];for(const _0x59f92d of _0x238ee3){const _0x419f0e=_0x59f92d['start']['nodeAfter'];_0x419f0e['is']('element','tableCellSuggestion')&&_0x4f853d['push'](_0x419f0e);}_0x650626['_suggestionFactory']['getSuggestionCallback'](_0x2d28bc,null,_0x15698c)(_0x238ee3,_0x38af7a,_0x2d6549);for(const _0x482fd0 of _0x4f853d)'$graveyard'!=_0x482fd0['root']['rootName']&&_0x9e2535['unwrap'](_0x482fd0);});});};_0x42ee25('insertion','accept'),_0x42ee25('insertion','discard'),_0x42ee25('deletion','accept'),_0x42ee25('deletion','discard'),_0x650626['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xb855c=>{const _0x2e3c2b=_0xb855c['map'](_0x3f4166=>_0x3f4166['getContainedElement']()),_0x5c2e57=_0x2e3c2b[0x0]['findAncestor']('table'),{minRow:_0x4e953e,maxRow:_0x2f32d2}=_0xc1c85f['_getCoordsForCells'](_0x2e3c2b);_0x408596['removeRows'](_0x5c2e57,{'at':_0x4e953e,'rows':_0x2f32d2-_0x4e953e+0x1});}),_0x650626['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4d4f7b=>{const _0x5cf542=_0x4d4f7b['map'](_0x591d70=>_0x591d70['getContainedElement']()),_0x26610c=_0x5cf542[0x0]['findAncestor']('table'),{minColumn:_0x18bfdd,maxColumn:_0x16d542}=_0xc1c85f['_getCoordsForCells'](_0x5cf542);_0x408596['removeColumns'](_0x26610c,{'at':_0x18bfdd,'columns':_0x16d542-_0x18bfdd+0x1});});const _0x3601ca=(_0x208231,_0x55021c)=>{if(!_0x55021c['subType']||!_0x55021c['subType']['startsWith']('tablePaste'))return;const _0x398918=_0x55021c['attributes']['tablePasteChainId'],_0x239b28=_0x650626['getSuggestions']()['filter'](_0x575647=>_0x575647['isInContent']&&_0x575647['attributes']&&_0x575647['attributes']['tablePasteChainId']==_0x398918);_0x239b28['length']&&_0x55021c['getAllAdjacentSuggestions']()['length']!=_0x239b28['length']&&_0x239b28['reduce']((_0x5ed48b,_0x22cd6c)=>(_0x5ed48b['next']=_0x22cd6c,_0x22cd6c['previous']=_0x5ed48b,_0x22cd6c));};function _0x1f0cd3(_0x4f3655,_0xf31965=!0x0){const {id:_0x2e88b6,authorId:_0x521e65}=_0x650626['_splitMarkerName'](_0x4f3655['markerName']),_0x1f8187=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x27a64=_0x650626['activeMarkers']['includes'](_0x4f3655['markerName']);return _0x27a64&&_0x1f8187['push']('ck-suggestion-marker--active'),{'classes':_0x1f8187,'attributes':{'data-suggestion':_0x2e88b6,'data-author-id':_0x521e65},'priority':_0x27a64&&_0xf31965?0xbc2:0xbb8};}_0x650626['on']('suggestionLoaded',_0x3601ca,{'priority':'high'}),_0x650626['on']('suggestionUnloaded',_0x3601ca,{'priority':'high'}),_0x4f5c4a['model']['document']['registerPostFixer'](()=>{let _0x46fff3=!0x1;const _0x551432=Array['from'](_0x4f5c4a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b0bfd,data:_0x40eed1}of _0x551432){const {group:_0x27bf65,type:_0x2cb6f,id:_0x30471b}=_0x650626['_splitMarkerName'](_0x1b0bfd);if('suggestion'!=_0x27bf65||'deletion'!=_0x2cb6f||_0x40eed1['oldRange'])continue;if(!_0x650626['hasSuggestion'](_0x30471b))continue;const _0x5f21f2=_0x650626['getSuggestion'](_0x30471b)['getRanges'](),_0x3ec675=_0x4f5c4a['plugins']['get']('Users')['me'];for(const _0x4a460a of _0x650626['getSuggestions']()){if(!_0x4a460a['isInContent']||_0x4a460a['author']!=_0x3ec675)continue;if('formatBlock'!=_0x4a460a['type']||'tablePasteCell'!=_0x4a460a['subType'])continue;if(_0x4a460a['getRanges']()['every'](_0x1f8fff=>_0x5f21f2['some'](_0x4bdbb4=>_0x4bdbb4['containsRange'](_0x1f8fff,!0x0)))){for(const _0x527d18 of _0x4a460a['getAllAdjacentSuggestions']())_0x527d18['isInContent']&&(_0x527d18['discard'](),_0x46fff3=!0x0);}}}return _0x46fff3;}),_0x4f5c4a['model']['document']['registerPostFixer'](_0x2cc5bb=>{const _0x3c6bb3=_0x4f5c4a['commands']['get']('redo');if(!_0x3c6bb3||!_0x3c6bb3['_createdBatches']['has'](_0x2cc5bb['batch']))return!0x1;let _0x132cd0=!0x1;const _0x3079d5=_0x4f5c4a['plugins']['get']('Users')['me'],_0x80d196=_0x4f5c4a['model']['document']['differ']['getChanges'](),_0x47aae5=Array['from'](_0x4f5c4a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2c2520,data:_0x202a8f})=>{const {group:_0x7d8958,subType:_0x5726e6,authorId:_0x1d5bdb}=_0x650626['_splitMarkerName'](_0x2c2520);return'suggestion'==_0x7d8958&&'tablePaste'==_0x5726e6&&_0x1d5bdb==_0x3079d5['id']&&!_0x202a8f['oldRange'];});for(const _0x622918 of _0x80d196){if('insert'!=_0x622918['type']||'tableCellSuggestion'!=_0x622918['name']||0x1!=_0x622918['length'])continue;const _0x163a2d=_0x2cc5bb['createRange'](_0x622918['position'],_0x622918['position']['getShiftedBy'](0x1));if(!_0x47aae5['find'](({data:_0x248c93})=>_0x248c93['newRange']['isEqual'](_0x163a2d))){for(const {name:_0x45a3a0,data:_0x1989e3}of _0x47aae5)if(_0x163a2d['containsRange'](_0x1989e3['newRange'])){_0x2cc5bb['updateMarker'](_0x45a3a0,{'range':_0x163a2d}),_0x132cd0=!0x0;break;}}}return _0x132cd0;}),_0x4f5c4a['model']['document']['registerPostFixer'](_0x1c9996=>{let _0x1e22ac=!0x1;const _0x4b753d=_0x4f5c4a['plugins']['get']('Users')['me'],_0x1704e9=_0x650626['getSuggestions']()['filter'](_0x33cdf8=>_0x33cdf8['isInContent']&&_0x33cdf8['author']==_0x4b753d),_0x1e8f1c=new Set(),_0x10776c=new Set();for(const _0x22b2cd of _0x1704e9)if('tablePaste'==_0x22b2cd['subType'])for(const _0x4a58f6 of _0x22b2cd['getMarkers']()){const _0x2e26a4=_0x4a58f6['getRange']()['getContainedElement']();if(_0x2e26a4){if(_0x2e26a4['is']('element','tableCellSuggestion')&&ke(_0x2e26a4)){_0x22b2cd['removeMarker'](_0x4a58f6['name']),_0x1e8f1c['add'](_0x2e26a4),_0x1e22ac=!0x0;const _0x15435c=_0x2e26a4['nextSibling'],_0x931d28=_0x2e26a4['previousSibling'],_0x318373=_0x15435c&&_0x15435c['is']('element','tableCellSuggestion'),_0x4d8d7a=_0x931d28&&_0x931d28['is']('element','tableCellSuggestion');_0x318373&&!_0x1e8f1c['has'](_0x15435c)&&_0x10776c['add'](_0x15435c),_0x4d8d7a&&!_0x1e8f1c['has'](_0x931d28)&&_0x10776c['add'](_0x931d28);}else _0x2e26a4['is']('element','paragraph')&&_0x2e26a4['isEmpty']&&(_0x22b2cd['removeMarker'](_0x4a58f6['name']),_0x1e22ac=!0x0);}}else{if('tablePasteCell'==_0x22b2cd['subType']){if(!_0x22b2cd['attributes']||!_0x22b2cd['attributes']['tablePasteChainId'])continue;const _0x3472c9=_0x22b2cd['attributes']['markerAttributes'];if(_0x3472c9&&Object['keys'](_0x3472c9)['length'])continue;const _0x2d3101=_0x22b2cd['attributes']['tablePasteChainId'];let _0x4a45e2=!0x0,_0x144896=!0x0;for(const _0x6d219 of _0x1704e9)if(_0x6d219['subType']&&_0x6d219['subType']['startsWith']('tablePaste')){if(!_0x6d219['attributes']['tablePasteChainId']){_0x144896=!0x1;break;}if(_0x6d219['id']!=_0x22b2cd['id']&&_0x6d219['attributes']['tablePasteChainId']==_0x2d3101){_0x4a45e2=!0x1;break;}}_0x144896&&_0x4a45e2&&(_0x22b2cd['removeMarkers'](),_0x1e22ac=!0x0);}}for(const _0x115fef of _0x1e8f1c)_0x1c9996['remove'](_0x115fef);for(const _0x4a13d7 of _0x10776c)_0x1c9996['unwrap'](_0x4a13d7);return _0x1e22ac;}),_0x4f5c4a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x586efb,_0x213435)=>_0x1f0cd3(_0x586efb),'converterPriority':'high'}),_0x4f5c4a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x19b13e,_0x308fac)=>_0x308fac['options']['showSuggestionHighlights']?_0x1f0cd3(_0x19b13e,!0x1):null,'converterPriority':'high'});const _0x343f67=_0x4f5c4a['editing']['view'];this['listenTo'](_0x343f67['document'],'clipboardOutput',(_0x111aec,_0x3aeb3e)=>{const _0x18f62c=[];for(const _0x4ede4c of _0x343f67['createRangeIn'](_0x3aeb3e['content'])['getItems']())_0x4ede4c['is']('element','suggestion-td')&&_0x18f62c['push'](_0x4ede4c);_0x343f67['change'](_0x3310a1=>{for(const _0x5bb60a of _0x18f62c)_0x3310a1['move'](_0x3310a1['createRangeIn'](_0x5bb60a),_0x3310a1['createPositionBefore'](_0x5bb60a)),_0x3310a1['remove'](_0x5bb60a);});});}}function ke(_0x541deb){if(_0x541deb['isEmpty'])return!0x0;const _0x28d952=_0x541deb['getChild'](0x0);return _0x28d952['is']('element','paragraph')&&_0x28d952['isEmpty'];}function Re(_0x228884,_0x1b57e8={},_0x3b3e3f){for(const {isAnchor:_0x32dc4a,cellHeight:_0x390058,cellWidth:_0x213d33}of _0x3b3e3f['createTableWalker'](_0x228884,{'includeAllSlots':!0x0,..._0x1b57e8}))if(!_0x32dc4a||0x1!=_0x390058||0x1!=_0x213d33)return!0x1;return!0x0;}class Nt extends _0x5bfee9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5b6807=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b6807['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5b6807['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5b6807['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b6807['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5b6807['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5b6807['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x10adc0,_0x243f8d){const _0x2218b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x71ee04=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x245ef0=_0x243f8d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x298796=_0x71ee04['getColumnGroupElement'](_0x245ef0);let _0xd95076=_0x298796?_0x71ee04['getTableColumnsWidths'](_0x298796):null,_0x40065c=_0x245ef0['getAttribute']('tableWidth')||null;const _0xc259b5=_0x243f8d['tableWidth']||_0x40065c,_0x35c9cb=_0x243f8d['columnWidths']||_0xd95076,_0x5b8ac2=this['editor']['plugins']['get']('Users')['me'];for(const _0x13307c of _0x2218b8['getSuggestions']()){const _0x7c03b=_0x13307c['getContainedElement']();if('resizeTable'===_0x13307c['subType']&&_0x7c03b===_0x245ef0){_0x13307c['author']!==_0x5b8ac2&&_0x13307c['discard']();const _0x2d78be=_0x13307c['data']['commandParams'];_0x40065c=_0x2d78be[0x0]['tableWidth'],_0xd95076=_0x2d78be[0x0]['columnWidths'];break;}}_0x10adc0({'table':_0x245ef0,'tableWidth':_0xc259b5,'columnWidths':_0x35c9cb}),_0x2218b8['markBlockFormat'](_0x245ef0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x40065c,'columnWidths':_0xd95076}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x14c980){if('formatBlock'!=_0x14c980['type']&&'formatInline'!=_0x14c980['type'])return;const {data:_0x45728e}=_0x14c980;if(_0x45728e&&'resizeTable'===_0x45728e['formatGroupId']){const _0x540f36='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x540f36)};}}}class Dt extends _0x5bfee9{['afterInit'](){const _0x4a1ff4=this['editor'];_0x4a1ff4['plugins']['has']('Template')&&_0x4a1ff4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5bfee9{['afterInit'](){const _0x2340e5=this['editor'];if(!_0x2340e5['commands']['get']('insertTableOfContents'))return;_0x2340e5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x439209=_0x2340e5['plugins']['get']('TrackChangesEditing'),_0x485cd5=_0x2340e5['locale'];_0x439209['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a6b34=>o(_0x485cd5,'ELEMENT_TABLE_OF_CONTENTS',_0x2a6b34));}}class $t extends _0x5bfee9{['afterInit'](){const _0x4cab39=this['editor'];if(!_0x4cab39['plugins']['has']('Title'))return;const _0x131dde=_0x4cab39['plugins']['get']('TrackChangesEditing');_0x131dde['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4cab39['locale'],'ELEMENT_TITLE')),_0x4cab39['model']['document']['registerPostFixer'](_0x29e3be=>{let _0x2ed1e6=!0x1;const _0x58dcfb=Array['from'](_0x4cab39['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c5413,data:_0x42a591}of _0x58dcfb){const {group:_0x32e659}=_0x131dde['_splitMarkerName'](_0x3c5413);if('suggestion'!==_0x32e659||!_0x42a591['newRange'])continue;const _0x3a1801=_0x42a591['newRange'],_0x259c59=_0x3a1801['end']['nodeBefore'];if(!_0x259c59||!_0x259c59['is']('element','title-content'))continue;if(!_0x3a1801['start']['isTouching'](_0x3a1801['end']))continue;const _0x37e19b=_0x4cab39['model']['schema']['getNearestSelectionRange'](_0x3a1801['end'],'forward');if(_0x37e19b&&_0x37e19b['isCollapsed']){const _0x19c9a0=_0x29e3be['createRange'](_0x3a1801['start'],_0x37e19b['start']);_0x19c9a0['isEqual'](_0x3a1801)||(_0x29e3be['updateMarker'](_0x3c5413,{'range':_0x19c9a0}),_0x2ed1e6=!0x0);}_0x2ed1e6||(_0x29e3be['removeMarker'](_0x3c5413),_0x2ed1e6=!0x0);}return _0x2ed1e6;});}}class Bt extends _0x5bfee9{['afterInit'](){const _0x33e661=this['editor'],_0x314796=_0x33e661['plugins']['get']('TrackChangesEditing');_0x33e661['plugins']['has']('UndoEditing')&&(_0x314796['enableCommand']('undo'),_0x314796['enableCommand']('redo'));}}class xt extends _0x5bfee9{static get['requires'](){return[It];}['afterInit'](){const _0x409c26=this['editor'];if(!_0x409c26['plugins']['has']('TableCaptionEditing'))return;_0x409c26['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x5bfee9{['tableProperties'];['tableCellProperties'];constructor(_0x2e1f04){super(_0x2e1f04),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 _0x1db271=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x102602 of this['tableProperties'])_0x1db271['enableCommand'](_0x102602,(_0x18e92c,_0x37b929)=>{const _0x5bb128=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x102602,[_0x5bb128],this['tableProperties'],'tableProperties',_0x18e92c,_0x37b929);});_0x1db271['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1db271['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1db271['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x32fac4,_0x508012)=>this['handleDiscardAction'](this['tableProperties'],_0x32fac4,_0x508012)),_0x1db271['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1d001e of this['tableCellProperties'])_0x1db271['enableCommand'](_0x1d001e,(_0x42a9bf,_0x45ec2f)=>{const _0x3dcfbe=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1d001e,_0x3dcfbe,this['tableCellProperties'],'tableCellProperties',_0x42a9bf,_0x45ec2f);});_0x1db271['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1db271['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1db271['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x361065,_0x482ff5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x361065,_0x482ff5)),_0x1db271['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1db271['descriptionFactory']['registerDescriptionCallback'](_0x5e8c5c=>this['handleSuggestionDescription'](_0x5e8c5c));}['_handlePropertyChange'](_0x234b5c,_0x3ca5e4,_0x3b831e,_0x55653a,_0x551bc6,_0x239779){const _0x42293a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x239779['batch'],()=>{for(const _0x37fd19 of _0x3ca5e4){if(this['_getSuggestion'](_0x37fd19,_0x55653a))_0x551bc6(_0x239779);else{const _0x54e54b={};for(const _0x20a551 of _0x3b831e){const _0x4472d8=_0x37fd19['getAttribute'](_0x20a551);void 0x0!==_0x4472d8&&(_0x54e54b[_0x20a551]=_0x4472d8);}_0x551bc6(_0x239779),_0x42293a['markBlockFormat'](_0x37fd19,{'commandParams':[_0x54e54b]},[],_0x55653a);}}});}['handleDiscardAction'](_0x2be990,_0x396444,_0x5b5abb){const _0x4d7972=_0x396444[0x0]['start']['nodeAfter'],_0x3c9931=_0x5b5abb['commandParams'][0x0];this['editor']['model']['change'](_0x232ee4=>{for(const _0xee7d49 of _0x2be990)void 0x0!==_0x3c9931[_0xee7d49]?_0x232ee4['setAttribute'](_0xee7d49,_0x3c9931[_0xee7d49],_0x4d7972):_0x232ee4['removeAttribute'](_0xee7d49,_0x4d7972);});}['handleSuggestionDescription'](_0x222d52){if(_0x222d52['data'])switch(_0x222d52['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'](_0x2b187b,_0x42ad77){const _0x5b4759=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x550683 of _0x5b4759['getSuggestions']({'skipNotAttached':!0x0})){const _0x40648b=_0x550683['getContainedElement']();if(_0x550683['subType']===_0x42ad77&&_0x40648b===_0x2b187b)return _0x550683;}return null;}}const m='$elementName';class p extends _0x5bfee9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x999574,_0x499338,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3a813f){function _0x1c2638(_0xd28597){return _0xd28597['map'](_0x47a8a2=>String['fromCharCode'](_0x47a8a2))['join']('');}super(_0x3a813f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x29167d,_0x4945ba,_0x31c7a6,_0x54ea22)=>{this['_model']['change'](()=>{for(const _0x4b2ffc of[..._0x54ea22,..._0x31c7a6])this['_model']['markers']['has'](_0x4b2ffc)&&_0x3a813f['editing']['reconvertMarker'](_0x4b2ffc);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3a813f['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(),_0x3a813f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3a813f['config']['get']('trackChanges.trackFormatChanges'),_0x3a813f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3a813f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3a813f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1c2638([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1c2638([0x34,0x30,0x34,0x38,0x31,0x38,0x30,0x36]);}['init'](){const _0x4a48d6=this['editor'],_0x4ecf15=(_0x4ce8ab,_0x1b8760)=>{if('attribute'!=_0x4ce8ab)return'ck-suggestion-marker-'+_0x4ce8ab;const _0x33dba3=_0x1b8760['split']('|')[0x0];return this['_isBlockAttribute'](_0x33dba3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a48d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4f2e31=>{const {id:_0x443f84,authorId:_0x46c47f,type:_0x221980,subType:_0x584f79}=this['_splitMarkerName'](_0x4f2e31['markerName']),_0x4a3906=['ck-suggestion-marker',_0x4ecf15(_0x221980,_0x584f79)];let _0x133443=0xbb8;return this['activeMarkers']['includes'](_0x4f2e31['markerName'])&&(_0x4a3906['push']('ck-suggestion-marker--active'),_0x133443=0xbc2),'deletion'==_0x221980&&(_0x133443+=0x5),{'classes':_0x4a3906,'attributes':{'data-suggestion':_0x443f84,'data-author-id':_0x46c47f},'priority':_0x133443};}}),_0x4a48d6['conversion']['for']('dataDowncast')['add'](_0x1a4078=>{_0x1a4078['on']('addMarker:suggestion',(_0x20656c,_0x3fd966,_0x4573dc)=>{if(!_0x4573dc['options']['showSuggestionHighlights'])return;const _0x5ba377=_0x3fd966['item'];if(!_0x5ba377)return;const _0x362f29=_0x4573dc['mapper']['toViewElement'](_0x5ba377);_0x4a48d6['model']['schema']['isObject'](_0x5ba377)&&_0x362f29&&!_0x362f29['getCustomProperty']('widget')&&_0x362f29['is']('containerElement')&&_0x2622dc(_0x362f29,_0x4573dc['writer']);},{'priority':'high'});}),_0x4a48d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4feaa4,_0x3de72c)=>{if(!_0x3de72c['options']['showSuggestionHighlights'])return null;const {type:_0x23946c,subType:_0x34741b}=this['_splitMarkerName'](_0x4feaa4['markerName']);return{'classes':['ck-suggestion-marker',_0x4ecf15(_0x23946c,_0x34741b)],'priority':0xbb8};}});const _0xc49774=({showActiveMarkers:_0x2b8962=!0x0,isAttributeSuggestion:_0x13b0b7=!0x1}={})=>(_0x509206,_0x30b8a8,_0x99465a)=>{if(!_0x30b8a8['item'])return;const {id:_0x5f3788,authorId:_0xf40042}=this['_splitMarkerName'](_0x30b8a8['markerName']);if(_0x13b0b7){const _0x378f3a=this['_suggestions']['get'](_0x5f3788),_0x126090=this['_getAttributeKey'](_0x378f3a);if(!this['_isBlockAttribute'](_0x126090))return;}if(_0x30b8a8['item']['is']('selection'))return void _0x99465a['consumable']['consume'](_0x30b8a8['item'],_0x509206['name']);const _0x4de697=_0x99465a['mapper']['toViewElement'](_0x30b8a8['item']);if(_0x30b8a8['item']['is']('element')&&_0x4a48d6['model']['schema']['isBlock'](_0x30b8a8['item'])&&!_0x4de697['getCustomProperty']('addHighlight')){_0x99465a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4de697),_0x99465a['writer']['setAttribute']('data-suggestion',_0x5f3788,_0x4de697),_0x99465a['writer']['setAttribute']('data-author-id',_0xf40042,_0x4de697),_0x99465a['mapper']['bindElementToMarker'](_0x4de697,_0x30b8a8['markerName']),_0x2b8962&&(this['activeMarkers']['includes'](_0x30b8a8['markerName'])?_0x99465a['writer']['addClass']('ck-suggestion-marker--active',_0x4de697):_0x99465a['writer']['removeClass']('ck-suggestion-marker--active',_0x4de697));for(const _0x17e6f8 of _0x4a48d6['model']['createRangeIn'](_0x30b8a8['item'])['getItems']())_0x99465a['consumable']['consume'](_0x17e6f8,_0x509206['name']);_0x99465a['consumable']['consume'](_0x30b8a8['item'],_0x509206['name']);}};_0x4a48d6['conversion']['for']('dataDowncast')['add'](_0x237bcb=>{_0x237bcb['on']('addMarker:suggestion:formatBlock',(_0x17619d,_0x3b1c69,_0x5bc2eb)=>{_0x5bc2eb['options']['showSuggestionHighlights']&&_0xc49774({'showActiveMarkers':!0x1})(_0x17619d,_0x3b1c69,_0x5bc2eb);},{'priority':'highest'});}),_0x4a48d6['conversion']['for']('dataDowncast')['add'](_0x256b91=>{_0x256b91['on']('addMarker:suggestion:attribute',(_0x2a70d9,_0x295a9d,_0x51902a)=>{_0x51902a['options']['showSuggestionHighlights']&&_0xc49774({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2a70d9,_0x295a9d,_0x51902a);},{'priority':'highest'});}),_0x4a48d6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x315b4b,_0xdc283d)=>_0xdc283d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x315b4b['substr'](0xb)}}),_0x4a48d6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ec739,{writer:_0x563bb9})=>{let _0x41498b='suggestion:'+_0x3ec739['getAttribute']('suggestion-type')+':'+_0x3ec739['getAttribute']('id');return _0x3ec739['getAttribute']('marker-count')&&(_0x41498b+=':'+_0x3ec739['getAttribute']('marker-count')),_0x563bb9['createElement']('$marker',{'data-name':_0x41498b});}}),_0x4a48d6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a48d6['conversion']['for']('editingDowncast')['add'](_0x22feb4=>{_0x22feb4['on']('addMarker:suggestion:formatBlock',_0xc49774(),{'priority':'high'});}),_0x4a48d6['conversion']['for']('editingDowncast')['add'](_0x4b452b=>{_0x4b452b['on']('addMarker:suggestion:attribute',_0xc49774({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a48d6['conversion']['for']('editingDowncast')['add'](_0x498c62=>{_0x498c62['on']('removeMarker:suggestion:formatBlock',(_0x1588ca,_0x5bdfee,_0x514afd)=>{const _0xbafbb7=_0x514afd['mapper']['markerNameToElements'](_0x5bdfee['markerName']);if(_0xbafbb7){for(const _0x59b989 of _0xbafbb7)_0x59b989['getCustomProperty']('addHighlight')||(_0x514afd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59b989),_0x514afd['writer']['removeAttribute']('data-suggestion',_0x59b989),_0x514afd['writer']['removeAttribute']('data-author-id',_0x59b989),_0x514afd['mapper']['unbindElementFromMarkerName'](_0x59b989,_0x5bdfee['markerName']));}},{'priority':'high'});}),_0x4a48d6['conversion']['for']('editingDowncast')['add'](_0xccecd1=>{_0xccecd1['on']('removeMarker:suggestion:attribute',(_0x4e9bad,_0x425ee2,_0x4b13fd)=>{const _0x2802a9=_0x4b13fd['mapper']['markerNameToElements'](_0x425ee2['markerName']);if(!_0x2802a9)return;const {id:_0x21c85a}=this['_splitMarkerName'](_0x425ee2['markerName']),_0x4a71bb=this['_suggestions']['get'](_0x21c85a),_0x230926=this['_getAttributeKey'](_0x4a71bb);if(this['_isBlockAttribute'](_0x230926)){for(const _0x2ff6bf of _0x2802a9)_0x2ff6bf['getCustomProperty']('addHighlight')||(_0x4b13fd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ff6bf),_0x4b13fd['writer']['removeAttribute']('data-suggestion',_0x2ff6bf),_0x4b13fd['writer']['removeAttribute']('data-author-id',_0x2ff6bf),_0x4b13fd['mapper']['unbindElementFromMarkerName'](_0x2ff6bf,_0x425ee2['markerName']));}},{'priority':'high'});}),_0x4a48d6['model']['document']['registerPostFixer'](_0x328271=>{let _0x1a2b28=!0x1;const _0x599872=Array['from'](_0x4a48d6['model']['document']['differ']['getChangedMarkers']()),_0x37b535=new Set();for(const {name:_0x1f235e,data:_0x22ccb0}of _0x599872){const {group:_0x226d11,type:_0xd9c968,subType:_0x1ac304,id:_0x4de7e7}=this['_splitMarkerName'](_0x1f235e);if('suggestion'!==_0x226d11)continue;const _0x1f90c6=this['_suggestions']['get'](_0x4de7e7);if(null!=_0x22ccb0['newRange']){'formatInline'==_0xd9c968&&(_0x1a2b28=_0x1a2b28||Ut(_0x22ccb0['newRange'],_0x1f235e,_0x328271,_0x4a48d6['model']['schema']));const _0x252290='attribute'==_0xd9c968&&this['_isBlockAttribute'](_0x1ac304['split']('|')[0x0]);if(_0x22ccb0['newRange']['isCollapsed']||'$graveyard'==_0x22ccb0['newRange']['root']['rootName']||'formatBlock'==_0xd9c968&&!Ft(_0x22ccb0['newRange'])||_0x252290&&!Ft(_0x22ccb0['newRange'])||'deletion'==_0xd9c968&&!(!Vt(_0x1e44ff=_0x22ccb0['newRange'])&&!function(_0x48496e){return _0x48496e['start']['parent']==_0x48496e['end']['nodeBefore']&&_0x48496e['start']['isAtEnd'];}(_0x1e44ff)))_0x328271['removeMarker'](_0x1f235e),_0x1a2b28=!0x0;else{if(!_0x1f90c6||!_0x1f90c6['isInContent'])continue;if(_0x22ccb0['newRange']&&_0x22ccb0['oldRange']&&_0x22ccb0['newRange']['isEqual'](_0x22ccb0['oldRange']))continue;_0x37b535['add'](_0x1f90c6);}}}var _0x1e44ff;return _0x37b535['size']>0x0&&(_0x1a2b28=!!this['_joinWithAdjacentSuggestions'](_0x37b535)||_0x1a2b28),_0x1a2b28;}),_0x4a48d6['model']['document']['registerPostFixer'](_0x50ffdf=>{let _0x55b71b=!0x1;for(const _0x1893d6 of _0x4a48d6['model']['document']['differ']['getChanges']())if('insert'==_0x1893d6['type'])for(const _0x3b505a of this['_suggestions']['values']()){if(_0x3b505a['isMultiRange']||!_0x3b505a['isInContent'])continue;const _0x348a17='formatBlock'==_0x3b505a['type'],_0x327be0=this['_getAttributeKey'](_0x3b505a),_0x58cb49=_0x327be0&&this['_isBlockAttribute'](_0x327be0);if(!_0x348a17&&!_0x58cb49)continue;const _0x528dba=_0x3b505a['getFirstRange']();if(_0x528dba['start']['parent']!=_0x528dba['end']['parent']&&!_0x528dba['end']['isAtEnd']){const _0x13cac4=_0x4a48d6['model']['createPositionAt'](_0x528dba['start']['nodeAfter'],'end'),_0x3e8cae=_0x4a48d6['model']['createRange'](_0x528dba['start'],_0x13cac4);_0x50ffdf['updateMarker'](_0x3b505a['getFirstMarker'](),{'range':_0x3e8cae}),_0x55b71b=!0x0;}}return _0x55b71b;}),_0x4a48d6['model']['document']['registerPostFixer'](_0x5d6fd0=>this['_processAttributeChanges'](_0x5d6fd0)),_0x4a48d6['model']['document']['registerPostFixer'](_0x14baca=>!_0x14baca['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x14baca)),_0x4a48d6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a48d6['model']['document']['on']('change:data',(_0x33fb6d,_0xd2bdce)=>{if(!_0xd2bdce['isLocal']||_0xd2bdce['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x438a28=_0x4a48d6['model']['document']['differ']['getChanges']();if(0x0==_0x438a28['length'])return;const _0x1775a4=[],_0x4e4626=_0x438a28['filter'](_0x231197=>'attribute'==_0x231197['type']),_0x1676eb=_0x438a28['filter'](_0x42f890=>'insert'==_0x42f890['type']&&'$text'!=_0x42f890['name']);for(const _0x3c4e5d of _0x4e4626)this['_isRegisteredAttribute'](_0x3c4e5d['attributeKey'])&&_0x1775a4['push']({'key':_0x3c4e5d['attributeKey'],'newValue':_0x3c4e5d['attributeNewValue'],'oldValue':_0x3c4e5d['attributeOldValue'],'range':Pt(_0x3c4e5d['range'],_0x4a48d6['model'])});for(const _0x2a4568 of _0x1676eb){if('rename'!=_0x2a4568['action']&&'refresh'!=_0x2a4568['action'])continue;const _0x5851d3=Lt(_0x2a4568['position']['nodeAfter'],_0x4a48d6['model']),_0x104d2f=_0x2a4568['before'];'rename'==_0x2a4568['action']&&_0x1775a4['push']({'key':m,'newValue':_0x2a4568['name'],'oldValue':_0x104d2f['name'],'range':_0x5851d3});for(const [_0x20f891,_0x47f5d9]of _0x104d2f['attributes']){if(!this['_isRegisteredAttribute'](_0x20f891))continue;const _0x3161af=_0x2a4568['attributes']['get'](_0x20f891);_0x47f5d9!==_0x3161af&&_0x1775a4['push']({'key':_0x20f891,'newValue':_0x3161af,'oldValue':_0x47f5d9,'range':_0x5851d3});}for(const [_0x3a9254,_0x496dbf]of _0x2a4568['attributes'])this['_isRegisteredAttribute'](_0x3a9254)&&(_0x104d2f['attributes']['has'](_0x3a9254)||_0x1775a4['push']({'key':_0x3a9254,'newValue':_0x496dbf,'oldValue':null,'range':_0x5851d3}));}0x0!=_0x1775a4['length']&&_0x4a48d6['model']['enqueueChange'](_0xd2bdce,_0x22a08a=>{const _0x46829a=_0xdb8ef7();for(const {range:_0x1dae2d,key:_0x2d0a36,oldValue:_0x128d73,newValue:_0x515a7d}of _0x1775a4)this['markAttributeChange'](_0x1dae2d,_0x2d0a36,_0x128d73,_0x515a7d,{'groupId':_0x46829a});this['_reduceExistingSuggestions'](_0x22a08a,_0x1775a4);});},{'priority':'lowest'}),_0x4a48d6['model']['markers']['on']('update:suggestion',(_0x10f646,_0x3f1237,_0x25d098)=>{if(null==_0x25d098){const {id:_0x323450}=this['_splitMarkerName'](_0x3f1237['name']),_0x16799a=this['_suggestions']['get'](_0x323450);_0x16799a&&_0x16799a['addMarkerName'](_0x3f1237['name']);}}),_0x4a48d6['model']['document']['on']('change:data',()=>{const _0x214d31=Array['from'](_0x4a48d6['model']['document']['differ']['getChangedMarkers']())['filter'](_0xc30a8c=>'suggestion'===this['_splitMarkerName'](_0xc30a8c['name'])['group']);if(0x0===_0x214d31['length'])return;_0x214d31['sort']((_0x4b98b5,_0x8e1e32)=>{const _0x5d120e=_0x4b98b5['data']['oldRange'],_0x54caea=_0x8e1e32['data']['oldRange'];return null===_0x5d120e&&null===_0x54caea?0x0:null===_0x5d120e&&null!==_0x54caea?-0x1:null!==_0x5d120e&&null===_0x54caea?0x1:_0x5d120e['start']['isBefore'](_0x54caea['start'])?-0x1:0x1;});const _0xa4604c=new Set(),_0x5e69a8=new Set();for(const {name:_0x118d7c,data:_0x533f0e}of _0x214d31){const {id:_0x27a9be}=this['_splitMarkerName'](_0x118d7c);if(null===_0x533f0e['oldRange']){const _0x349a85=this['_handleNewSuggestionMarker'](_0x118d7c);_0x5e69a8['add'](_0x349a85);}else{const _0x295aeb=this['_suggestions']['get'](_0x27a9be);null!==_0x533f0e['newRange']||_0x295aeb['isInContent']?(_0xa4604c['add'](_0x295aeb['head']),_0x5e69a8['add'](_0x295aeb)):this['_removeSuggestion'](_0x295aeb);}}_0x5e69a8['size']>0x0&&this['_refreshSuggestionsChain'](_0x5e69a8);for(const _0xad500a of _0xa4604c)this['fire']('suggestionChanged',_0xad500a);}),_0x4a48d6['model']['on']('applyOperation',(_0x696162,_0x41ebd9)=>{const _0x3f2373=_0x41ebd9[0x0];if(!this['_suggestions']['size'])return;if(!_0x3f2373['isDocumentOperation'])return;if(_0x3f2373['batch']['isUndo']||!_0x3f2373['batch']['isLocal'])return;let _0x2d889a,_0x20f115;switch(_0x3f2373['type']){case'insert':_0x2d889a=_0x4a48d6['model']['createPositionAt'](_0x3f2373['position']),_0x20f115=_0x2d889a['getShiftedBy'](_0x3f2373['howMany']);break;case'split':_0x2d889a=_0x4a48d6['model']['createPositionAt'](_0x3f2373['splitPosition']),_0x20f115=_0x4a48d6['model']['createPositionAt'](_0x3f2373['moveTargetPosition']);break;case'move':_0x2d889a=_0x4a48d6['model']['createPositionAt'](_0x3f2373['targetPosition']),_0x20f115=_0x2d889a['getShiftedBy'](_0x3f2373['howMany']);break;default:return;}const _0x511f75=_0x4a48d6['model']['createRange'](_0x2d889a,_0x20f115);_0x4a48d6['model']['change'](()=>{for(const {suggestion:_0x53461e,meta:_0x1c930d}of this['_findSuggestions'](_0x511f75)){if(_0x53461e['isMultiRange'])continue;if('formatInline'==_0x53461e['type'])continue;const _0x262557=this['_getAttributeKey'](_0x53461e);if(_0x262557&&this['_isBlockAttribute'](_0x262557)&&'split'!=_0x3f2373['type'])continue;const _0x350f54=_0x53461e['data']&&_0x53461e['data']['multipleBlocks'];('formatBlock'!=_0x53461e['type']||'split'==_0x3f2373['type']&&!_0x350f54)&&(_0x1c930d['containsRangeInObject']||'insertion'==_0x53461e['type']&&_0x1c930d['isOwn']||_0x53461e['getFirstRange']()['containsRange'](_0x511f75)&&this['_breakSuggestionMarker'](_0x53461e,_0x2d889a,_0x20f115));}});},{'priority':'lowest'}),_0x4a48d6['model']['on']('deleteContent',(_0x33eac9,_0x249dcb)=>{const _0x3b4dd3=_0x249dcb[0x0],_0x37cad9=_0x249dcb[0x1];if(_0x37cad9&&_0x37cad9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3b4dd3['isCollapsed'])return;const _0x5d4601=_0x4a48d6['model']['schema'],{start:_0x1eff5b,end:_0x2fd9f7}=_0x3b4dd3['getFirstRange'](),_0x4a9e44=_0x1eff5b['nodeAfter']&&_0x5d4601['isLimit'](_0x1eff5b['nodeAfter'])?null:_0x5d4601['getNearestSelectionRange'](_0x1eff5b,'forward'),_0xa64a5=_0x2fd9f7['nodeBefore']&&_0x5d4601['isLimit'](_0x2fd9f7['nodeBefore'])?null:_0x5d4601['getNearestSelectionRange'](_0x2fd9f7,'backward'),_0x1d0de5=_0x4a48d6['model']['createRange'](_0x4a9e44?_0x4a9e44['start']:_0x1eff5b,_0xa64a5?_0xa64a5['end']:_0x2fd9f7);_0x4a48d6['model']['change'](_0xa6771a=>{this['markDeletion'](_0x1d0de5);const _0x4bc3e4=_0x4a48d6['model']['schema']['getNearestSelectionRange'](_0x1d0de5['start']);_0x3b4dd3['is']('documentSelection')?_0xa6771a['setSelection'](_0x4bc3e4):_0x3b4dd3['setTo'](_0x4bc3e4);}),_0x33eac9['stop']();},{'priority':_0x47b90b['normal']+0xa}),_0x4a48d6['model']['on']('insertContent',(_0x467308,_0x1ad83b)=>{const _0x2f2e92=_0x1ad83b[_0x1ad83b['length']-0x1];_0x2f2e92&&_0x2f2e92['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a48d6['model']['change'](()=>{let _0x284233=_0x4a48d6['model']['insertContent'](_0x1ad83b[0x0],_0x1ad83b[0x1],_0x1ad83b[0x2],{'forceDefaultExecution':!0x0});if(!_0x284233)return;_0x467308['return']=_0x284233['clone']();const _0xc82f5c=_0x284233['end']['nodeBefore'],_0x4d7d01=_0x4a48d6['model']['schema'];_0xc82f5c&&_0x4d7d01['isBlock'](_0xc82f5c)&&!_0x4d7d01['isObject'](_0xc82f5c)&&(_0x284233=_0x4a48d6['model']['createRange'](_0x284233['start'],_0x4a48d6['model']['createPositionAt'](_0xc82f5c,'end'))),this['markInsertion'](_0x284233);}),_0x467308['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x24cf7f=new x(_0x4a48d6,this['_suggestions']);_0x4a48d6['commands']['add']('acceptSuggestion',_0x24cf7f),this['enableCommand']('acceptSuggestion');const _0x5a8ffb=new R(_0x4a48d6,this['_suggestions']);_0x4a48d6['commands']['add']('discardSuggestion',_0x5a8ffb),this['enableCommand']('discardSuggestion'),_0x4a48d6['commands']['add']('acceptAllSuggestions',new E(_0x4a48d6,_0x24cf7f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a48d6['commands']['add']('discardAllSuggestions',new E(_0x4a48d6,_0x5a8ffb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a48d6['commands']['add']('acceptSelectedSuggestions',new O(_0x4a48d6,_0x24cf7f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a48d6['commands']['add']('discardSelectedSuggestions',new O(_0x4a48d6,_0x5a8ffb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x12dc75=_0x4a48d6['plugins']['get']('CommentsRepository');this['listenTo'](_0x12dc75,'addComment',(_0x22e8e1,{threadId:_0x8d7265})=>{const _0x1c15ee=this['_suggestions']['get'](_0x8d7265);_0x1c15ee&&_0x1c15ee['commentThread']&&0x1===_0x1c15ee['commentThread']['length']&&this['_updateSuggestionData'](_0x8d7265,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x12dc75,'removeComment',(_0x2cc566,{threadId:_0x300317})=>{const _0x37bad0=this['_suggestions']['get'](_0x300317);_0x37bad0&&_0x37bad0['commentThread']&&!_0x37bad0['commentThread']['length']&&this['_updateSuggestionData'](_0x300317,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x13c221){if(this['_adapter'])throw new _0x450fba('track-changes-adapter-already-set',this);this['_adapter']=_0x13c221;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e35d9=!0x1,toJSON:_0x1a252b=!0x1}={}){const _0x4c3487=[];for(const _0x4c3360 of this['_suggestions']['values']())_0x5e35d9&&!_0x4c3360['isInContent']||_0x4c3487['push'](_0x4c3360);return _0x1a252b?_0x4c3487['map'](_0x5723c0=>_0x5723c0['toJSON']()):_0x4c3487;}['getSuggestion'](_0x5878f5){const _0x2216ba=this['_suggestions']['get'](_0x5878f5);if(!_0x2216ba)throw new _0x450fba('track-changes-suggestion-not-found',this);return _0x2216ba;}['hasSuggestion'](_0x51dee8){return this['_suggestions']['has'](_0x51dee8);}['addSuggestionData'](_0x3c93b4){const {authorId:_0x221db8,id:_0x3ed5ad,attributes:_0x49c577}=_0x3c93b4,[_0x1809c3,_0xd3437f]=_0x3c93b4['type']['split'](':'),_0x4ef26e=this['_suggestions']['get'](_0x3ed5ad)||this['_createSuggestion'](_0x1809c3,_0xd3437f,_0x3ed5ad,_0x221db8,_0x49c577);if(this['_addThreadToSuggestion'](_0x4ef26e),this['_checkSuggestionCorrectness'](_0x4ef26e,_0x1809c3,_0xd3437f||null,_0x221db8),_0x4ef26e['createdAt']=_0x3c93b4['createdAt'],_0x4ef26e['_isDataLoaded']=!0x0,_0x49c577&&_0x49c577['@external']){const _0x1bec27=_0x49c577['@external'],_0x574680=this['_getExternalAuthor'](_0x1bec27['authorName']);_0x4ef26e['authoredAt']=_0x1bec27['createdAt'],_0x4ef26e['author']=_0x574680,_0x4ef26e['isExternal']=!0x0;}else _0x4ef26e['authoredAt']=_0x3c93b4['createdAt'];switch(_0x3c93b4['data']&&(_0x4ef26e['data']=_0x3c93b4['data']),_0x3c93b4['attributes']&&(_0x4ef26e['attributes']=_0x3c93b4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4ef26e['_saved']=!0x0),this['_suggestionState']['get'](_0x4ef26e)){case'notReady':this['_suggestionState']['set'](_0x4ef26e,'dataReady');break;case'markerReady':_0x4ef26e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4ef26e])),this['_refreshSuggestionsChain'](new Set([_0x4ef26e])),this['_suggestionState']['set'](_0x4ef26e,'ready'),this['fire']('suggestionLoaded',_0x4ef26e)):this['_suggestionState']['set'](_0x4ef26e,'removed');}return _0x4ef26e;}['acceptSuggestion'](_0x41c78a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e6874 of _0x41c78a['getAllAdjacentSuggestions']())_0x3e6874['accept']();});});}['discardSuggestion'](_0x2bf744){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b1668 of _0x2bf744['getAllAdjacentSuggestions']())_0x4b1668['discard']();});});}['enableCommand'](_0x506e6d,_0x38ef83){const _0x56dc9e=this['editor']['commands']['get'](_0x506e6d);if(!_0x56dc9e)throw new _0x450fba('track-changes-command-not-found',this,{'commandName':_0x506e6d});if(this['_enabledCommands']['has'](_0x56dc9e))throw new _0x450fba('track-changes-enable-command-twice',this,{'commandName':_0x506e6d});this['_enabledCommands']['add'](_0x56dc9e),_0x38ef83&&_0x56dc9e['on']('execute',(_0x573746,_0x4df6d0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4df6d0['length']>0x0&&_0x4df6d0[_0x4df6d0['length']-0x1]&&_0x4df6d0[_0x4df6d0['length']-0x1]['forceDefaultExecution']?_0x4df6d0['pop']():(_0x573746['return']=_0x38ef83((..._0x2eaa0e)=>_0x56dc9e['execute'](..._0x2eaa0e,{'forceDefaultExecution':!0x0}),..._0x4df6d0),_0x573746['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x158064){let _0x5f4660,_0x10bace;const _0xdc42f8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5f4660=_0x158064();}catch(_0x152d8c){_0x10bace=_0x152d8c;}return _0xdc42f8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x10bace&&_0x450fba['rethrowUnexpectedError'](_0x10bace,this),_0x5f4660;}['markInsertion'](_0x2260b1,_0x3de6fa=null,_0x5a2e27={}){if(_0x2260b1['isCollapsed'])return null;const _0x4bde70=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1b68ff,meta:_0x72bb48}of this['_findSuggestions'](_0x2260b1,'insertion'))if(_0x72bb48['isOwn']){if(!_0x72bb48['isNextTo']){if(_0x72bb48['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1b68ff,_0x5a2e27))continue;return _0x1b68ff;}if(qt(_0x1b68ff,_0x5a2e27))return _0x1b68ff;this['_breakSuggestionMarker'](_0x1b68ff,_0x2260b1['start'],_0x2260b1['end']);break;}if(_0x3de6fa==_0x1b68ff['subType']&&qt(_0x1b68ff,_0x5a2e27)){const _0x5d1d87=_0x1b68ff['getFirstRange']();return _0x5d1d87['start']['isEqual'](_0x2260b1['end'])?this['_setSuggestionRange'](_0x1b68ff,this['_model']['createRange'](_0x2260b1['start'],_0x5d1d87['end'])):this['_setSuggestionRange'](_0x1b68ff,this['_model']['createRange'](_0x5d1d87['start'],_0x2260b1['end'])),_0x1b68ff;}}const _0x90421d=_0xdb8ef7(),_0x22bd99=_0x4bde70['id'],_0xf03d63=_0x3de6fa?'insertion:'+_0x3de6fa:'insertion',_0xc54fdc=this['_setSuggestionData']({'id':_0x90421d,'type':_0xf03d63,'createdAt':new Date(),'authorId':_0x22bd99,'attributes':_0x5a2e27});return this['_addSuggestionMarker'](_0xf03d63,_0x90421d,_0x22bd99,_0x2260b1),_0xc54fdc;}['markMultiRangeInsertion'](_0x502a4d,_0x470a23='multi',_0x35964a={}){const _0x2dd24d=this['editor']['plugins']['get']('Users')['me'],_0x21e5f3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x470a23,'join');for(const _0x258a4b of this['getSuggestions']())if(_0x258a4b['author']['id']==_0x2dd24d['id']&&'insertion'==_0x258a4b['type']&&_0x258a4b['subType']==_0x470a23&&qt(_0x258a4b,_0x35964a)&&(_0x21e5f3(_0x258a4b['getRanges'](),_0x502a4d)||_0x21e5f3(_0x502a4d,_0x258a4b['getRanges']()))){for(const _0x41941e of _0x502a4d)_0x258a4b['addRange'](_0x41941e);return _0x258a4b;}for(const {suggestion:_0x2380a3,meta:_0x3e64cd}of this['_findSuggestions'](_0x502a4d,'insertion')){if(!_0x3e64cd['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3e64cd['containsRangeInObject'])continue;if(!qt(_0x2380a3,_0x35964a))continue;let _0x40a448=!0x0;for(const _0x58ad40 of _0x2380a3['getRanges']())for(const _0x16e868 of _0x502a4d)if(!_0x58ad40['containsRange'](_0x16e868)){_0x40a448=!0x1;break;}if(_0x40a448)return _0x2380a3;}const _0x301df6=_0xdb8ef7(),_0x2195f3=_0x2dd24d['id'],_0x379e05='insertion:'+_0x470a23,_0x444dc6=this['_setSuggestionData']({'id':_0x301df6,'type':_0x379e05,'createdAt':new Date(),'authorId':_0x2195f3,'attributes':_0x35964a});for(const _0x17b40f of _0x502a4d)this['_addSuggestionMarker'](_0x379e05,_0x301df6,_0x2195f3,_0x17b40f,u['getMultiRangeId']());return _0x444dc6;}['markInlineFormat'](_0x282f39,_0x5688b9,_0x570b2f=null,_0x222869={}){if(_0x570b2f=_0x570b2f||Gt(_0x5688b9),_0x282f39['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x20f5cd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x570b2f,'accept');return this['forceDefaultExecution'](()=>_0x20f5cd([_0x282f39],_0x5688b9,_0x222869)),null;}const _0x50e06e=this['editor']['plugins']['get']('Users')['me'],_0x50e2f9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x128982,meta:_0x583032}of this['_findSuggestions'](_0x282f39,'insertion'))_0x583032['isOwn']&&!_0x583032['isInsideObject']&&_0x50e2f9['push'](..._0x128982['getRanges']());}const _0x2ded02=function(_0x4455c0,_0x5146b3){const _0x100f57=[];for(const _0x50537f of _0x5146b3){const _0x51c2aa=_0x4455c0['getIntersection'](_0x50537f);_0x51c2aa&&_0x100f57['push'](_0x51c2aa);}return _0x100f57;}(_0x282f39,_0x50e2f9),_0x5e4452=function(_0xffb9a2,_0x22a457){const _0x20eb24=[_0xffb9a2];for(const _0x62e0fb of _0x22a457){let _0x4da12d=0x0;for(;_0x4da12d<_0x20eb24['length'];){const _0x3e0758=_0x20eb24[_0x4da12d]['getDifference'](_0x62e0fb);_0x20eb24['splice'](_0x4da12d,0x1,..._0x3e0758),_0x4da12d+=_0x3e0758['length'];}}return _0x20eb24;}(_0x282f39,_0x50e2f9);_0x2ded02['length']&&this['_model']['change'](()=>{for(const _0x4b6240 of _0x2ded02){const _0x251847=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x570b2f,'accept');this['forceDefaultExecution'](()=>_0x251847([_0x4b6240],_0x5688b9,_0x222869));}});for(const _0x2365ec of _0x5e4452){let _0x761665=null,_0xfcbe0e=_0x2365ec['start'],_0x3dca1b=_0x2365ec['end'];for(const {suggestion:_0x4a9d4e,meta:_0x328c15}of this['_findSuggestions'](_0x2365ec,'formatInline')){if(!_0x328c15['isOwn'])continue;if(_0x4a9d4e['subType']!=_0x570b2f)continue;if(!qt(_0x4a9d4e,_0x222869))continue;const _0x236362=_0x4a9d4e['getFirstRange']();if(_0x236362['containsRange'](_0x2365ec,!0x0))return null;_0xfcbe0e=_0xfcbe0e['isBefore'](_0x236362['start'])?_0xfcbe0e:_0x236362['start'],_0x3dca1b=_0x3dca1b['isAfter'](_0x236362['end'])?_0x3dca1b:_0x236362['end'],_0x761665?_0x236362['start']['isBefore'](_0x761665['getFirstRange']()['start'])?(_0x761665['removeMarkers'](),_0x761665=_0x4a9d4e):_0x4a9d4e['removeMarkers']():_0x761665=_0x4a9d4e;}const _0x511410=this['_model']['createRange'](_0xfcbe0e,_0x3dca1b);if(_0x761665)this['_setSuggestionRange'](_0x761665,_0x511410);else{const _0x4cfd8b=_0xdb8ef7(),_0x2625ba=_0x50e06e['id'];this['_setSuggestionData']({'id':_0x4cfd8b,'type':'formatInline:'+_0x570b2f,'data':_0x5688b9,'createdAt':new Date(),'authorId':_0x2625ba,'attributes':_0x222869}),this['_addSuggestionMarker']('formatInline:'+_0x570b2f,_0x4cfd8b,_0x2625ba,_0x511410);}}return null;}['markBlockFormat'](_0x37e8ec,_0x1ae643,_0x10bcc9=[],_0x53346a=null,_0x5988aa={}){_0x1ae643['formatGroupId']||(_0x1ae643['formatGroupId']=_0x1ae643['commandName']),_0x1ae643['multipleBlocks']=_0x37e8ec['is']('range'),_0x53346a=_0x53346a||Gt(_0x1ae643);const _0x1c0ead=_0x10bcc9['map'](_0x4c23a9=>Lt(_0x4c23a9,this['_model'])),_0x7c2031=_0x37e8ec['is']('range')?_0x37e8ec:Lt(_0x37e8ec,this['_model']);if('never'===this['_trackFormatChanges']){const _0x569b08=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53346a,'accept');return this['forceDefaultExecution'](()=>_0x569b08([_0x7c2031],_0x1ae643,_0x5988aa)),null;}_0x1c0ead['push'](_0x7c2031);let _0x463c96=!0x0;for(const _0x1a112b of _0x1c0ead)if(!this['_rangeIsInLocalUserInsertion'](_0x1a112b)){_0x463c96=!0x1;break;}if(_0x463c96&&'always'!==this['_trackFormatChanges']){const _0x1953b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53346a,'accept');return this['forceDefaultExecution'](()=>_0x1953b1([_0x7c2031],_0x1ae643,_0x5988aa)),null;}let _0xe852d=null,_0x1b4289=_0x7c2031['start'],_0x555d30=_0x7c2031['end'];for(const {suggestion:_0x2c20a7,meta:_0x32d489}of this['_findSuggestions'](_0x7c2031,'formatBlock')){if(!_0x32d489['isOwn'])continue;if(_0x32d489['isNextTo']||_0x32d489['containsRangeInObject']||_0x32d489['isInsideObject'])continue;if(_0x2c20a7['data']['formatGroupId']!=_0x1ae643['formatGroupId'])continue;if(!qt(_0x2c20a7,_0x5988aa))continue;const _0x19b2b7=_0x2c20a7['getFirstRange']();if(_0x2c20a7['subType']==_0x53346a){if(_0x19b2b7['containsRange'](_0x7c2031,!0x0))return null;_0x1b4289=_0x1b4289['isBefore'](_0x19b2b7['start'])?_0x1b4289:_0x19b2b7['start'],_0x555d30=_0x555d30['isAfter'](_0x19b2b7['end'])?_0x555d30:_0x19b2b7['end'],_0xe852d?_0x19b2b7['start']['isBefore'](_0xe852d['getFirstRange']()['start'])?(_0xe852d['removeMarkers'](),_0xe852d=_0x2c20a7):_0x2c20a7['removeMarkers']():_0xe852d=_0x2c20a7;}else{const _0x15f794=_0x7c2031['getIntersection'](_0x19b2b7);this['_cutOutSuggestionMarker'](_0x2c20a7,_0x15f794);}}const _0x749b40=this['editor']['plugins']['get']('Users')['me'],_0x539b30=_0xdb8ef7(),_0x3dd9d6=_0x749b40['id'];if(_0xe852d)return this['_setSuggestionRange'](_0xe852d,this['_model']['createRange'](_0x1b4289,_0x555d30)),_0xe852d;{const _0x3404b7=this['_setSuggestionData']({'id':_0x539b30,'type':'formatBlock:'+_0x53346a,'data':_0x1ae643,'createdAt':new Date(),'authorId':_0x3dd9d6,'attributes':_0x5988aa});return this['_addSuggestionMarker']('formatBlock:'+_0x53346a,_0x539b30,_0x3dd9d6,this['_model']['createRange'](_0x1b4289,_0x555d30)),_0x3404b7;}}['markMultiRangeBlockFormat'](_0x4b03cd,_0x52e0c8,_0x26d813=[],_0x24fdec=null,_0x1c0cbb={}){_0x52e0c8['formatGroupId']||(_0x52e0c8['formatGroupId']=_0x52e0c8['commandName']);const _0x3271a3=_0x4b03cd[0x0];_0x52e0c8['multipleBlocks']=_0x3271a3['is']('range'),_0x24fdec=_0x24fdec||Gt(_0x52e0c8);const _0x45903f=_0x26d813['map'](_0x3d36f9=>Lt(_0x3d36f9,this['_model'])),_0x3436b3=_0x3271a3['is']('range')?_0x4b03cd:_0x4b03cd['map'](_0x99ec8e=>Lt(_0x99ec8e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1f37f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24fdec,'accept');return this['forceDefaultExecution'](()=>_0x1f37f8(_0x3436b3,_0x52e0c8,_0x1c0cbb)),null;}_0x45903f['push'](..._0x3436b3);let _0x99327c=!0x0;for(const _0x2e6558 of _0x45903f)if(!this['_rangeIsInLocalUserInsertion'](_0x2e6558)){_0x99327c=!0x1;break;}if(_0x99327c&&'always'!==this['_trackFormatChanges']){const _0x2c8836=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24fdec,'accept');return this['forceDefaultExecution'](()=>_0x2c8836(_0x3436b3,_0x52e0c8,_0x1c0cbb)),null;}const _0x5a47d1=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f5bd8 of this['getSuggestions']()){if(_0x1f5bd8['author']['id']!=_0x5a47d1['id'])continue;if('formatBlock'!=_0x1f5bd8['type']||_0x1f5bd8['data']['formatGroupId']!=_0x52e0c8['formatGroupId'])continue;if(!qt(_0x1f5bd8,_0x1c0cbb))continue;const _0xd7d736=_0x1f5bd8['subType']==_0x24fdec;for(let _0x141c43=0x0;_0x141c43<_0x3436b3['length'];_0x141c43++){const _0x5b959c=_0x3436b3[_0x141c43];for(const _0x37c2a2 of _0x1f5bd8['getMarkers']()){const _0x12df25=_0x37c2a2['getRange']();if(_0x5b959c['isEqual'](_0x12df25)){_0xd7d736?(_0x3436b3['splice'](_0x141c43,0x1),_0x141c43--):_0x1f5bd8['removeMarker'](_0x37c2a2['name']);break;}}}}if(0x0==_0x3436b3['length'])return null;const _0x4f76a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24fdec,'join');for(const _0x1e7502 of this['getSuggestions']())if(_0x1e7502['author']['id']==_0x5a47d1['id']&&'formatBlock'==_0x1e7502['type']&&_0x1e7502['data']['formatGroupId']==_0x52e0c8['formatGroupId']&&_0x1e7502['subType']==_0x24fdec&&qt(_0x1e7502,_0x1c0cbb)&&(_0x4f76a4(_0x1e7502['getRanges'](),_0x3436b3)||_0x4f76a4(_0x3436b3,_0x1e7502['getRanges']()))){for(const _0x2e5fb6 of _0x3436b3)_0x1e7502['addRange'](_0x2e5fb6);return _0x1e7502;}const _0x41c217=_0xdb8ef7(),_0x2dfba7=_0x5a47d1['id'],_0x3b0af5='formatBlock:'+_0x24fdec,_0x18ea93=this['_setSuggestionData']({'id':_0x41c217,'type':_0x3b0af5,'data':_0x52e0c8,'createdAt':new Date(),'authorId':_0x2dfba7,'attributes':_0x1c0cbb});for(const _0x292959 of _0x3436b3)this['_addSuggestionMarker'](_0x3b0af5,_0x41c217,_0x2dfba7,_0x292959,u['getMultiRangeId']());return _0x18ea93;}['markDeletion'](_0x2a37c2,_0x38d494=null,_0x411c94={}){if(_0x2a37c2['isCollapsed'])return null;const _0x19b29b=this['editor']['plugins']['get']('Users')['me'],_0x45dc9b=new _0x50563c(_0x2a37c2['start'],_0x2a37c2['end']);for(const {suggestion:_0x327689,meta:_0x2d9e33}of this['_findSuggestions'](_0x45dc9b,'insertion'))if(_0x2d9e33['isOwn']&&!_0x2d9e33['isNextTo']){if(_0x327689['isMultiRange']){const _0x353ac8=_0x327689['getRanges']()['filter'](_0x238eb6=>'$graveyard'!=_0x238eb6['root']['rootName']);_0x353ac8['every'](_0x5b73b9=>_0x45dc9b['containsRange'](_0x5b73b9,!0x0))&&_0x327689['discard']();if(_0x353ac8['some'](_0x4773d1=>_0x4773d1['containsRange'](_0x45dc9b,!0x0))){const _0x3810d2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38d494,'accept');return this['forceDefaultExecution'](()=>_0x3810d2([_0x45dc9b],null,_0x411c94)),null;}}else{const _0x49a17b=_0x45dc9b['getIntersection'](_0x327689['getFirstRange']());null!==_0x49a17b&&_0x327689['_onDiscard']([_0x49a17b],null,_0x411c94);}}if(_0x45dc9b['detach'](),_0x45dc9b['isCollapsed']||'$graveyard'==_0x45dc9b['root']['rootName'])return null;let _0x464fce=null,_0x4a744e=_0x45dc9b['start'],_0x4d6aa0=_0x45dc9b['end'];const _0x290e20=this['_findSuggestions'](_0x45dc9b,'deletion');for(const {suggestion:_0x5c4a83,meta:_0x48ed40}of _0x290e20){const _0x8a2ec6=this['_model']['createRange'](_0x4a744e,_0x4d6aa0);if(_0x48ed40['isOwn']&&(this['_mergeNestedSuggestions']||!_0x48ed40['containsRangeInObject']&&!_0x48ed40['isInsideObject'])){if(_0x5c4a83['isMultiRange']){if(!qt(_0x5c4a83,_0x411c94))continue;let _0xca1359=!0x0;for(const _0x47dcd0 of _0x5c4a83['getRanges']()){if(_0x47dcd0['containsRange'](_0x8a2ec6,!0x0))return _0x5c4a83;_0x8a2ec6['containsRange'](_0x47dcd0)||(_0xca1359=!0x1);}_0xca1359&&_0x5c4a83['discard']();}else{const _0x5821b1=_0x5c4a83['getFirstRange']();if(_0x5821b1['containsRange'](_0x8a2ec6,!0x0))return _0x5c4a83;if(!qt(_0x5c4a83,_0x411c94)){_0x8a2ec6['containsRange'](_0x5821b1)?_0x5c4a83['removeMarkers']():_0x5821b1['containsPosition'](_0x4a744e)?_0x4a744e=_0x5821b1['end']:_0x5821b1['containsPosition'](_0x4d6aa0)&&(_0x4d6aa0=_0x5821b1['start']);continue;}_0x4a744e=_0x4a744e['isBefore'](_0x5821b1['start'])?_0x4a744e:_0x5821b1['start'],_0x4d6aa0=_0x4d6aa0['isAfter'](_0x5821b1['end'])?_0x4d6aa0:_0x5821b1['end'],_0x411c94=Object['assign']({},_0x5c4a83['attributes']),_0x464fce?_0x5821b1['start']['isBefore'](_0x464fce['getFirstRange']()['start'])?(_0x464fce['removeMarkers'](),_0x464fce=_0x5c4a83):_0x5c4a83['removeMarkers']():_0x464fce=_0x5c4a83;}}}if(_0x464fce)return this['_setSuggestionRange'](_0x464fce,this['_model']['createRange'](_0x4a744e,_0x4d6aa0)),_0x464fce;{const _0x592355=_0xdb8ef7(),_0xb10095=this['_model']['createRange'](_0x4a744e,_0x4d6aa0),_0x52c9b7=_0x19b29b['id'],_0x33cd5f=_0x38d494?'deletion:'+_0x38d494:'deletion',_0x12d5a4=this['_setSuggestionData']({'id':_0x592355,'type':_0x33cd5f,'createdAt':new Date(),'authorId':_0x52c9b7,'attributes':_0x411c94});return this['_addSuggestionMarker'](_0x33cd5f,_0x592355,_0x52c9b7,_0xb10095),_0x12d5a4;}}['markMultiRangeDeletion'](_0x230d2d,_0x1ecd50='multi',_0x395760={}){const _0x1ced35=this['editor']['plugins']['get']('Users')['me'],_0x291c9e=_0x230d2d['map'](_0xe8e575=>new _0x50563c(_0xe8e575['start'],_0xe8e575['end'])),_0x20458d=new Set();for(const {suggestion:_0x32c1df,meta:_0x3b79b7}of this['_findSuggestions'](_0x291c9e,'insertion'))_0x3b79b7['isOwn']&&!_0x3b79b7['isNextTo']&&_0x20458d['add'](_0x32c1df);for(const _0x2cfcc7 of _0x20458d)if(_0x2cfcc7['isMultiRange']){const _0x46a9f4=_0x2cfcc7['getRanges']();(!_0x2cfcc7['attributes']||!_0x2cfcc7['attributes']['skipNestingCheck'])&&(_0x46a9f4['every'](_0x5b77d6=>_0x291c9e['some'](_0x183432=>_0x183432['containsRange'](_0x5b77d6,!0x0)))&&_0x2cfcc7['discard']());if(_0x291c9e['every'](_0x3cba7a=>_0x46a9f4['some'](_0x5c0802=>_0x5c0802['containsRange'](_0x3cba7a,!0x0)))){const _0x411804=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ecd50,'accept');return this['forceDefaultExecution'](()=>_0x411804(_0x230d2d,null,_0x395760)),null;}}else{const _0x5ab4ab=_0x2cfcc7['getFirstRange']();_0x291c9e['some'](_0x1433ac=>_0x1433ac['containsRange'](_0x5ab4ab,!0x0))&&_0x2cfcc7['discard']();if(_0x291c9e['every'](_0x4d3f88=>_0x5ab4ab['containsRange'](_0x4d3f88,!0x0))){const _0x8b378a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ecd50,'accept');return this['forceDefaultExecution'](()=>_0x8b378a(_0x291c9e,null,_0x395760)),null;}}const _0x449d79=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ecd50,'join');let _0x2c11dd=null;for(const _0x5ce647 of this['getSuggestions']())if(_0x5ce647['author']['id']==_0x1ced35['id']&&_0x5ce647['isInContent']&&'deletion'==_0x5ce647['type']&&_0x5ce647['subType']==_0x1ecd50&&qt(_0x5ce647,_0x395760)&&(_0x449d79(_0x5ce647['getRanges'](),_0x291c9e)||_0x449d79(_0x291c9e,_0x5ce647['getRanges']()))){if(_0x2c11dd){if(_0x5ce647['commentThread']&&_0x5ce647['commentThread']['length'])continue;for(const _0x18af8d of _0x5ce647['getRanges']())_0x2c11dd['isIntersectingWithRange'](_0x18af8d)||_0x2c11dd['addRange'](_0x18af8d);_0x5ce647['removeMarkers']();}else{_0x2c11dd=_0x5ce647;for(const _0xd50c2d of _0x291c9e)_0x5ce647['isIntersectingWithRange'](_0xd50c2d)||_0x5ce647['addRange'](_0xd50c2d);}}if(_0x2c11dd)return _0x2c11dd;_0x20458d['clear']();for(const {suggestion:_0x3e31fb,meta:_0x3a2054}of this['_findSuggestions'](_0x291c9e,'deletion'))_0x3a2054['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a2054['containsRangeInObject']&&!_0x3a2054['isInsideObject'])&&qt(_0x3e31fb,_0x395760)&&_0x20458d['add'](_0x3e31fb);for(const _0x29950b of _0x20458d){const _0x444ebc=_0x29950b['getRanges']();if(!_0x395760||!_0x395760['skipNestingCheck']){if(_0x291c9e['every'](_0x33dc36=>_0x444ebc['some'](_0x3ab655=>_0x3ab655['containsRange'](_0x33dc36,!0x0))))return _0x29950b;}(!_0x29950b['attributes']||!_0x29950b['attributes']['skipNestingCheck'])&&(_0x444ebc['every'](_0x5a20b2=>_0x291c9e['some'](_0x567f3a=>_0x567f3a['containsRange'](_0x5a20b2,!0x0)))&&_0x29950b['discard']());}const _0x3952a0=_0xdb8ef7(),_0x3c21d8=_0x1ced35['id'],_0x3464e2='deletion:'+_0x1ecd50,_0x2ff5e4=this['_setSuggestionData']({'id':_0x3952a0,'type':_0x3464e2,'createdAt':new Date(),'authorId':_0x3c21d8,'attributes':_0x395760});for(const _0x163ece of _0x291c9e)_0x163ece['detach'](),_0x163ece['isCollapsed']||'$graveyard'==_0x163ece['root']['rootName']||this['_addSuggestionMarker'](_0x3464e2,_0x3952a0,_0x3c21d8,_0x163ece,u['getMultiRangeId']());return _0x2ff5e4;}['markAttributeChange'](_0x5b3dee,_0x32bf2a,_0x46d349,_0x12e785,_0x359bee){if(_0x5b3dee['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1997fe=this['editor']['plugins']['get']('Users')['me']['id'],_0x2244e7=Array['from'](this['_suggestions']['values']())['filter'](_0x1792b7=>'attribute'==_0x1792b7['type']&&_0x1792b7['data']['key']==_0x32bf2a&&_0x1792b7['isIntersectingWithRange'](_0x5b3dee));if('default'===this['_trackFormatChanges']){const _0x1be471=this['_findSuggestions'](_0x5b3dee,'insertion')['filter'](({meta:_0xd60c02})=>_0xd60c02['isOwn']&&!_0xd60c02['isInsideObject']&&!_0xd60c02['isNextTo'])['map'](({suggestion:_0x441055})=>_0x441055);_0x2244e7['unshift'](..._0x1be471);}const _0x2402fc=new Map([[_0x5b3dee,_0x46d349]]);for(const _0x561bc6 of _0x2244e7){const _0x5069ac='attribute'==_0x561bc6['type']?_0x561bc6['data']['oldValue']:void 0x0,_0x304060=_0x561bc6['getFirstRange'](),_0x1c6192=Array['from'](_0x2402fc['keys']())['find'](_0x1f132c=>_0x1f132c['isIntersecting'](_0x304060));if(!_0x1c6192)continue;const _0x3c7359=_0x1c6192['getDifference'](_0x304060);this['_isBlockAttribute'](_0x32bf2a)&&'insertion'==_0x561bc6['type']&&0x0!=_0x3c7359['length']||(_0x2402fc['delete'](_0x1c6192),_0x3c7359['forEach'](_0x548025=>{_0x2402fc['set'](_0x548025,_0x46d349);}),'insertion'!=_0x561bc6['type']&&_0x5069ac!=_0x12e785&&_0x2402fc['set'](_0x1c6192['getIntersection'](_0x304060),_0x5069ac));}const _0x12aee9=[];for(const [_0x1592c4,_0x5700d9]of _0x2402fc){const _0x52c7fd=_0xdb8ef7(),_0x4e4298={'key':_0x32bf2a,'oldValue':_0x5700d9,'newValue':_0x12e785};_0x32bf2a['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':_0x32bf2a});const _0x399a73=('attribute:'+(_0x32bf2a+'|'+Gt({'newValue':_0x12e785})))['substring'](0x0,0x3c),_0x3980db=this['_setSuggestionData']({'id':_0x52c7fd,'type':_0x399a73,'data':_0x4e4298,'createdAt':new Date(),'authorId':_0x1997fe,'attributes':_0x359bee});_0x12aee9['push'](_0x3980db),this['_addSuggestionMarker'](_0x399a73,_0x52c7fd,_0x1997fe,_0x1592c4);}return _0x12aee9;}['enableDefaultAttributesIntegration'](_0xd241ff){this['enableCommand'](_0xd241ff,(_0x1628a3,..._0x2fd738)=>{this['_recordAttributeChanges'](()=>{_0x1628a3(..._0x2fd738);});});}['registerBlockAttribute'](_0x1e3145){this['_blockAttributeKeys']['add'](_0x1e3145);}['registerInlineAttribute'](_0x1fb943){this['_inlineAttributeKeys']['add'](_0x1fb943);}['_getAttributeKey'](_0x1a8f03){return'attribute'==_0x1a8f03['type']?_0x1a8f03['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x489de7,_0x154a19){const _0x29ef9a=_0x489de7['getFirstMarker']();this['_model']['change'](_0x1edc1d=>{_0x1edc1d['updateMarker'](_0x29ef9a,{'range':_0x154a19});});}['_addThreadToSuggestion'](_0xb1898){const _0x723f90=_0xb1898['id'],_0x348797=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x723f90)||this['_commentsRepository']['addCommentThread']({'channelId':_0x348797,'threadId':_0x723f90,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x51c733=this['_commentsRepository']['getCommentThread'](_0x723f90);_0x51c733['unbind']('isRemovable'),_0x51c733['isRemovable']=!0x1,_0xb1898['commentThread']=_0x51c733;}['_checkSuggestionCorrectness'](_0x2a6567,_0x15889f,_0x5f3857,_0x1d91f1){if(_0x2a6567['type']!=_0x15889f||_0x2a6567['subType']!=_0x5f3857||_0x2a6567['creator']['id']!=_0x1d91f1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x450fba('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3d0c75,_0x8e7206){const _0x307c1e=_0x3d0c75['getFirstRange']();if(_0x8e7206['isEqual'](_0x307c1e))_0x3d0c75['removeMarkers']();else{if(_0x307c1e['containsRange'](_0x8e7206)){const _0x4ec253=this['_model']['createPositionAt'](_0x8e7206['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3d0c75,this['_model']['createRange'](_0x307c1e['start'],_0x4ec253));const _0x20f7f1=_0xdb8ef7(),_0x184d53=_0x3d0c75['creator']['id'],_0x449b79=_0x3d0c75['type']+':'+_0x3d0c75['subType'];this['_setSuggestionData']({'id':_0x20f7f1,'type':_0x449b79,'createdAt':new Date(),'authorId':_0x184d53,'data':_0x3d0c75['data'],'attributes':_0x3d0c75['attributes']});const _0x41e8cd=this['_model']['createPositionAt'](_0x8e7206['end']['parent'],'after'),_0x2570d3=this['_model']['createRange'](_0x41e8cd,_0x307c1e['end']);this['_addSuggestionMarker'](_0x449b79,_0x20f7f1,_0x184d53,_0x2570d3);}else{if(_0x307c1e['containsPosition'](_0x8e7206['start'])){const _0x4aa9d8=this['_model']['createPositionAt'](_0x8e7206['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3d0c75,this['_model']['createRange'](_0x307c1e['start'],_0x4aa9d8));}else{const _0x4d507e=this['_model']['createPositionAt'](_0x8e7206['end']['parent'],'after');this['_setSuggestionRange'](_0x3d0c75,this['_model']['createRange'](_0x4d507e,_0x307c1e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3530f3){for(const {suggestion:_0x3066af,meta:_0x7654c}of this['_findSuggestions'](_0x3530f3,'insertion')){if(!_0x7654c['isOwn'])continue;const _0x51137a=_0x3066af['getRanges']();for(const _0x23d8b1 of _0x51137a)if(!_0x3530f3['getDifference'](_0x23d8b1)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4049f4){const _0x26167d=this['editor']['plugins']['get']('Users')['getUser'](_0x4049f4);if(!_0x26167d)throw new _0x450fba('track-changes-user-not-found',this);return _0x26167d;}['_getExternalAuthor'](_0x430513){const _0x4ac60c=this['editor']['plugins']['get']('Users'),_0x302117=_0x42a9e2('external:'+_0x430513),_0x4752cb=_0x4ac60c['getUser'](_0x302117);return _0x4752cb||_0x4ac60c['addUser']({'id':_0x302117,'name':_0x430513});}['_createSuggestion'](_0x3d9609,_0xfba5c3,_0x14c3f8,_0x2a1fb7,_0x454cab){const _0x61f49f=this['_getAuthorFromId'](_0x2a1fb7),_0x589060=this['_suggestionFactory']['buildSuggestion'](_0x3d9609,_0xfba5c3,_0x14c3f8,_0x61f49f,_0x454cab,_0x1175fb=>{this['_updateSuggestionData'](_0x14c3f8,{'attributes':_0x1175fb});const _0x2e8c38=this['getSuggestion'](_0x14c3f8);this['_joinWithAdjacentSuggestions'](new Set([_0x2e8c38])),this['_refreshSuggestionsChain'](new Set([_0x2e8c38]));});return this['listenTo'](_0x589060,'accept',()=>{this['_updateSuggestionData'](_0x14c3f8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x589060,'discard',()=>{this['_updateSuggestionData'](_0x14c3f8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x14c3f8,_0x589060),this['_suggestionState']['set'](_0x589060,'notReady'),_0x589060;}['_splitMarkerName'](_0x2ddebb){const _0x126b55=_0x2ddebb['split'](':');return{'group':_0x126b55[0x0],'type':_0x126b55[0x1],'subType':_0x126b55['length']>=0x5?_0x126b55[0x2]:null,'id':_0x126b55['length']<0x5?_0x126b55[0x2]:_0x126b55[0x3],'authorId':_0x126b55['length']<0x5?_0x126b55[0x3]:_0x126b55[0x4],'markerCount':0x6==_0x126b55['length']?_0x126b55[0x5]:null};}['_breakSuggestionMarker'](_0x2f6ce0,_0x9c7352,_0x5d2f7b){const _0x235de7=_0x2f6ce0['getFirstRange'](),_0x49f190=_0x235de7['start'],_0x375327=_0x235de7['end'];this['_setSuggestionRange'](_0x2f6ce0,this['_model']['createRange'](_0x49f190,_0x9c7352));const _0x296846=_0xdb8ef7(),_0x46adfc=_0x2f6ce0['creator']['id'],_0x58a5df=_0x2f6ce0['type']+(_0x2f6ce0['subType']?':'+_0x2f6ce0['subType']:'');this['_setSuggestionData']({'id':_0x296846,'type':_0x58a5df,'createdAt':new Date(),'authorId':_0x46adfc,'originalSuggestionId':_0x2f6ce0['id'],'attributes':_0x2f6ce0['attributes'],'data':_0x2f6ce0['data']});const _0x46ec28=this['_getAttributeKey'](_0x2f6ce0);('formatBlock'==_0x2f6ce0['type']||_0x46ec28&&this['_isBlockAttribute'](_0x46ec28))&&(_0x5d2f7b=this['_model']['createPositionBefore'](_0x5d2f7b['parent'])),this['_addSuggestionMarker'](_0x58a5df,_0x296846,_0x46adfc,this['_model']['createRange'](_0x5d2f7b,_0x375327));}['_findSuggestions'](_0x5a48c2,_0x600e21=null){const _0x5f2809=[],_0x454e70=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a48c2)||(_0x5a48c2=[_0x5a48c2]);for(const _0x499324 of this['getSuggestions']()){if(!_0x499324['isInContent'])continue;if(_0x600e21&&_0x499324['type']!=_0x600e21)continue;let _0x59f698=!0x1;for(const _0x1b9017 of _0x499324['getRanges']()){for(const _0x29f014 of _0x5a48c2){const _0x34e366=_0x29f014['start']['isEqual'](_0x1b9017['end'])||_0x29f014['end']['isEqual'](_0x1b9017['start']);if(_0x34e366||_0x29f014['getIntersection'](_0x1b9017)){const _0x3fe8d4=_0x29f014['containsRange'](_0x1b9017)&&Ot(this['_model']['schema'],_0x1b9017['start'],_0x29f014),_0x4cf9f3=_0x1b9017['containsRange'](_0x29f014)&&Ot(this['_model']['schema'],_0x29f014['start'],_0x1b9017);_0x5f2809['push']({'suggestion':_0x499324,'meta':{'isOwn':_0x454e70==_0x499324['author'],'isNextTo':_0x34e366,'isInsideObject':_0x3fe8d4,'containsRangeInObject':_0x4cf9f3}}),_0x59f698=!0x0;break;}}if(_0x59f698)break;}}return _0x5f2809;}['_addSuggestionMarker'](_0xd862b7,_0x789523,_0x5eb3e7,_0x4fe825,_0x23d023){this['_model']['change'](_0x51fce0=>{let _0x3eaa18='suggestion:'+_0xd862b7+':'+_0x789523+':'+_0x5eb3e7;_0x23d023&&(_0x3eaa18=_0x3eaa18+':'+_0x23d023),_0x51fce0['addMarker'](_0x3eaa18,{'range':_0x4fe825,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x486a70){const _0x10772c=_0x486a70['previous'],_0x30d6e1=_0x486a70['next'];_0x486a70['previous']=null,_0x486a70['next']=null,null!=_0x10772c&&_0x10772c['next']==_0x486a70&&(_0x10772c['next']=_0x30d6e1),null!=_0x30d6e1&&_0x30d6e1['previous']==_0x486a70&&(_0x30d6e1['previous']=_0x10772c),'ready'==this['_suggestionState']['get'](_0x486a70)&&(this['_suggestionState']['set'](_0x486a70,'removed'),this['fire']('suggestionUnloaded',_0x486a70,_0x10772c,_0x30d6e1));}['_setSuggestionData'](_0x22299a){const _0x2078c2=_0x22299a['id'],_0x4aadf4=this['addSuggestionData'](_0x22299a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2881e7=this['editor']['plugins']['get']('PendingActions'),_0x3d9969=_0x4aadf4['hasComments'],_0x152deb=_0x4aadf4['subType']?_0x4aadf4['type']+':'+_0x4aadf4['subType']:_0x4aadf4['type'],_0x1f2e84=this['editor']['locale'],_0x10dfa6=_0x2881e7['add'](o(_0x1f2e84,'PENDING_ACTION_SUGGESTION')),_0x31b9c4={'id':_0x2078c2,'type':_0x152deb,'hasComments':_0x3d9969,'data':_0x22299a['data']||null,'originalSuggestionId':_0x22299a['originalSuggestionId']||null,'attributes':_0x4aadf4['attributes']};this['_adapter']['addSuggestion'](_0x31b9c4)['then'](_0x582b34=>{_0x4aadf4['_saved']=!0x0,_0x2881e7['remove'](_0x10dfa6),_0x582b34&&_0x582b34['createdAt']&&(this['_suggestions']['get'](_0x2078c2)['createdAt']=_0x582b34['createdAt']);})['catch'](_0x4613f4=>{throw _0x57ae65('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4aadf4['discard']();}),_0x4aadf4['stopListening'](),this['_suggestions']['delete'](_0x4aadf4['id']),this['_suggestionState']['delete'](_0x4aadf4),_0x4613f4;});}return _0x4aadf4;}['_isBlockAttribute'](_0x39d024){return this['_blockAttributeKeys']['has'](_0x39d024);}['_updateSuggestionData'](_0x4be3ec,_0x421eb4){const _0x454d7f=this['editor']['plugins']['get']('PendingActions'),_0x2590da=this['getSuggestion'](_0x4be3ec);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2590da['_saved']){const _0x2115c0=_0x454d7f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4be3ec,_0x421eb4)['then'](()=>{_0x454d7f['remove'](_0x2115c0);});}else _0x2590da['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4be3ec,_0x421eb4);});}}['_getSuggestionData'](_0x4addd9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x450fba('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4addd9);}['_handleNewSuggestionMarker'](_0x4fb5f8){const {id:_0x50ae60,type:_0x1b24d7,subType:_0x1263c7,authorId:_0xce165d}=this['_splitMarkerName'](_0x4fb5f8),_0x8c0a72=this['_suggestions']['get'](_0x50ae60)||this['_createSuggestion'](_0x1b24d7,_0x1263c7,_0x50ae60,_0xce165d,{});switch(this['_checkSuggestionCorrectness'](_0x8c0a72,_0x1b24d7,_0x1263c7,_0xce165d),this['_suggestionState']['get'](_0x8c0a72)){case'notReady':this['_getSuggestionData'](_0x50ae60)['then'](_0x1a8bb4=>{let _0x2b6b8f=Promise['resolve']();_0x1a8bb4['hasComments']&&(_0x2b6b8f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x50ae60})),_0x2b6b8f['then'](()=>{this['addSuggestionData'](_0x1a8bb4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x8c0a72,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x50ae60,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x8c0a72,'ready'),this['fire']('suggestionLoaded',_0x8c0a72);break;case'ready':this['fire']('suggestionChanged',_0x8c0a72);}return _0x8c0a72['addMarkerName'](_0x4fb5f8),_0x8c0a72;}['_refreshSuggestionsChain'](_0x2decfe){const _0x92c277=Array['from'](_0x2decfe),_0x3b15f7=_0x92c277['filter'](_0x44fad6=>'attribute'==_0x44fad6['type']);this['_refreshAttributeSuggestionsChain'](_0x3b15f7);const _0x3bb38a=_0x92c277['filter'](_0x17673f=>!_0x17673f['isMultiRange']&&'attribute'!=_0x17673f['type']),_0x54e65b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47f863=>!_0x47f863['isMultiRange']&&'attribute'!=_0x47f863['type']),_0x509ea3=_0x54e65b['filter'](_0x189951=>!_0x2decfe['has'](_0x189951)),_0x231cda=new Map(_0x54e65b['map'](_0x31dcb0=>[_0x31dcb0,this['_suggestionFactory']['getSuggestionCallback'](_0x31dcb0['type'],_0x31dcb0['subType'],'chain')])),_0x109899=new Map(_0x54e65b['map'](_0xf2625a=>[_0xf2625a,_0xf2625a['getFirstRange']()])),_0x492cf3=new Set(),_0x5256ea=new Set();for(let _0x50d680=0x0;_0x50d680<_0x3bb38a['length'];_0x50d680++)_0x1236d0(_0x3bb38a[_0x50d680],_0x3bb38a,_0x50d680+0x1);for(let _0x684578=0x0;_0x684578<_0x3bb38a['length'];_0x684578++)_0x1236d0(_0x3bb38a[_0x684578],_0x509ea3,0x0);const _0x1a0972=new Set();for(let _0x1ef6cc=0x0;_0x1ef6cc<_0x3bb38a['length'];_0x1ef6cc++){const _0x4b4a07=_0x3bb38a[_0x1ef6cc];!_0x5256ea['has'](_0x4b4a07)&&_0x4b4a07['previous']&&(_0x1a0972['add'](_0x4b4a07['previous']),_0x4b4a07['previous']['next']===_0x4b4a07&&(_0x4b4a07['previous']['next']=null),_0x4b4a07['previous']=null),!_0x492cf3['has'](_0x4b4a07)&&_0x4b4a07['next']&&(_0x1a0972['add'](_0x4b4a07['next']),_0x4b4a07['next']['previous']===_0x4b4a07&&(_0x4b4a07['next']['previous']=null),_0x4b4a07['next']=null);}function _0x1236d0(_0x471912,_0x1d36b5,_0x3e9693){for(let _0x462c7c=_0x3e9693;_0x462c7c<_0x1d36b5['length'];_0x462c7c++){const _0x235533=_0x2ed807(_0x471912,_0x1d36b5[_0x462c7c]);_0x235533&&(_0x235533[0x0]['next']=_0x235533[0x1],_0x235533[0x1]['previous']=_0x235533[0x0],_0x492cf3['add'](_0x235533[0x0]),_0x5256ea['add'](_0x235533[0x1]));}}function _0x2ed807(_0x19a060,_0x2fffdc){if(_0x19a060['author']['id']!==_0x2fffdc['author']['id'])return null;const _0x183bfc=_0x231cda['get'](_0x19a060)(_0x19a060,_0x2fffdc,_0x109899['get'](_0x19a060),_0x109899['get'](_0x2fffdc));if(!_0x183bfc)return null;return _0x231cda['get'](_0x2fffdc)(_0x19a060,_0x2fffdc,_0x109899['get'](_0x19a060),_0x109899['get'](_0x2fffdc))?_0x183bfc[0x1]['commentThread']&&_0x183bfc[0x1]['commentThread']['length']?null:_0x183bfc:null;}_0x1a0972['size']&&this['_refreshSuggestionsChain'](_0x1a0972);}['_refreshAttributeSuggestionsChain'](_0x1c10dd){if(0x0==_0x1c10dd['length'])return;const _0x492019=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x406169=>'attribute'==_0x406169['type']&&_0x406169['_isDataLoaded']),_0x23e4b4=[],_0xb049fd=new Map();for(const _0x1b1acb of _0x492019){const _0x4248ef=_0x42a9e2(_0x1b1acb['attributes']);_0xb049fd['has'](_0x4248ef)||(_0xb049fd['set'](_0x4248ef,_0x23e4b4['length']),_0x23e4b4['push']([]));const _0x3c4ca7=_0xb049fd['get'](_0x4248ef);_0x23e4b4[_0x3c4ca7]['push'](_0x1b1acb);}!(function(){_0x23e4b4['sort']((_0x5029db,_0x3c3801)=>{const _0xc96ad1=_0x5029db[0x0]['createdAt'],_0x18d760=_0x3c3801[0x0]['createdAt'];return _0xc96ad1==_0x18d760?_0x5029db[0x0]['attributes']['groupId']<_0x3c3801[0x0]['attributes']['groupId']?-0x1:0x1:_0xc96ad1<_0x18d760?-0x1:0x1;});for(const _0x40312e of _0x23e4b4)_0x40312e['sort']((_0x4f766a,_0x129ab5)=>_0x4f766a['id']<_0x129ab5['id']?-0x1:0x1);}());for(let _0x1eed4d=0x0;_0x1eed4d<_0x23e4b4['length'];_0x1eed4d++){if(0x0==_0x23e4b4[_0x1eed4d]['length'])continue;const _0xe976ed=[];for(let _0x5496f1=_0x1eed4d+0x1;_0x5496f1<_0x23e4b4['length'];_0x5496f1++)0x0!=_0x23e4b4[_0x5496f1]['length']&&_0x190c55(_0x23e4b4[_0x1eed4d],_0x23e4b4[_0x5496f1])&&_0xe976ed['push'](_0x5496f1);for(const _0x162fef of _0xe976ed)_0x23e4b4[_0x1eed4d]=_0x23e4b4[_0x1eed4d]['concat'](_0x23e4b4[_0x162fef]),_0x23e4b4[_0x162fef]=[];}for(const _0xc4220 of _0x23e4b4)for(let _0x1e0074=0x0;_0x1e0074<_0xc4220['length'];_0x1e0074++){const _0x5820a3=_0xc4220[_0x1e0074+0x1]||null;_0xc4220[_0x1e0074]['next']!==_0x5820a3&&(_0xc4220[_0x1e0074]['next']=_0x5820a3);}for(const _0x29283e of _0x23e4b4)for(let _0x448acf=0x0;_0x448acf<_0x29283e['length'];_0x448acf++){const _0x3230c7=_0x29283e[_0x448acf-0x1]||null;_0x29283e[_0x448acf]['previous']!==_0x3230c7&&(_0x29283e[_0x448acf]['previous']=_0x3230c7);}function _0x190c55(_0xb79a26,_0x5de818){if(_0xb79a26[0x0]['attributes']['groupId']!==_0x5de818[0x0]['attributes']['groupId']&&_0xb79a26[0x0]['author']!==_0x5de818[0x0]['author'])return!0x1;if(!function(_0x43959e,_0x2298bc){if(!_0x43959e['hasComments']&&!_0x2298bc['hasComments'])return!0x0;if(_0x43959e['hasComments']&&_0x2298bc['hasComments'])return!0x1;if(_0x43959e['hasComments']&&_0x2298bc['createdAt']<_0x43959e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2298bc['hasComments']&&_0x43959e['createdAt']<_0x2298bc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xb79a26[0x0],_0x5de818[0x0]))return!0x1;const _0x9a97ba=Tt(_0xb79a26[0x0]['attributes'],'groupId'),_0x3597cf=Tt(_0x5de818[0x0]['attributes'],'groupId');if(!_0x152790(_0x9a97ba,_0x3597cf))return!0x1;return!!_0xb79a26['every'](_0x189da9=>_0x5de818['some'](_0x4e190b=>_0x189da9['getFirstRange']()['isEqual'](_0x4e190b['getFirstRange']())))&&_0x5de818['every'](_0x34f9a4=>_0xb79a26['some'](_0x5cbbf0=>_0x34f9a4['getFirstRange']()['isEqual'](_0x5cbbf0['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xf22db9){const _0x8d7d4a=Array['from'](_0xf22db9),_0x1b11bb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x44c2f2=_0x1b11bb['filter'](_0x415241=>!_0xf22db9['has'](_0x415241)),_0x220481=new Map(_0x8d7d4a['map'](_0x1fd74c=>[_0x1fd74c,this['_suggestionFactory']['getSuggestionCallback'](_0x1fd74c['type'],_0x1fd74c['subType'],'join')])),_0x458a71=new Map(_0x1b11bb['map'](_0x1b7f91=>[_0x1b7f91,_0x1b7f91['getRanges']()]));for(let _0x4fdcf7=0x0;_0x4fdcf7<_0x8d7d4a['length'];_0x4fdcf7++){if(_0x2d8a3b(this,_0x8d7d4a[_0x4fdcf7],_0x8d7d4a,_0x4fdcf7+0x1))return!0x0;}for(let _0x2ce876=0x0;_0x2ce876<_0x8d7d4a['length'];_0x2ce876++){if(_0x2d8a3b(this,_0x8d7d4a[_0x2ce876],_0x44c2f2,0x0))return!0x0;}return!0x1;function _0x2d8a3b(_0x50719e,_0x44f822,_0xbd6cd6,_0x42850e){for(let _0x576fe3=_0x42850e;_0x576fe3<_0xbd6cd6['length'];_0x576fe3++){const _0xcc5d0f=_0xbd6cd6[_0x576fe3];if(_0xcc5d0f['type']!==_0x44f822['type']||_0xcc5d0f['author']['id']!==_0x44f822['author']['id']||_0xcc5d0f['subType']!==_0x44f822['subType'])continue;if(!Jt(_0x44f822,_0xcc5d0f))continue;if('attribute'==_0x44f822['type']&&_0x44f822['data']['oldValue']!=_0xcc5d0f['data']['oldValue'])continue;if('attribute'==_0x44f822['type']&&_0x50719e['_isBlockAttribute'](_0x44f822['data']['key']))continue;if('formatBlock'==_0x44f822['type']){const _0x37b99c=_0x50719e['editor']['model'],_0x33cf61=_0x44f822['getContainedElement']();if(_0x33cf61&&(_0x37b99c['schema']['isObject'](_0x33cf61)||_0x37b99c['schema']['isLimit'](_0x33cf61)))continue;}const _0x2e6a37=_0x220481['get'](_0x44f822),_0x39df75=_0x458a71['get'](_0x44f822),_0x2bc167=_0x458a71['get'](_0xcc5d0f),_0x17daba=_0x44f822['commentThread']&&_0x44f822['commentThread']['length'],_0x2e18e5=_0xcc5d0f['commentThread']&&_0xcc5d0f['commentThread']['length'];if(!_0x17daba&&_0x2e6a37(_0x2bc167,_0x39df75))return _0x50719e['_joinSuggestions'](_0xcc5d0f,_0x44f822),_0x458a71['delete'](_0x44f822),!0x0;if(!_0x2e18e5&&_0x2e6a37(_0x39df75,_0x2bc167))return _0x50719e['_joinSuggestions'](_0x44f822,_0xcc5d0f),_0x458a71['delete'](_0xcc5d0f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3ea7b8,_0xc5b414){if(_0x3ea7b8['isMultiRange']){for(const _0x451f57 of _0xc5b414['getRanges']())_0x3ea7b8['addRange'](_0x451f57);}else{const _0x5e4a20=_0xc5b414['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3ea7b8,this['_model']['createRange'](_0x3ea7b8['getFirstRange']()['start'],_0x5e4a20));}_0xc5b414['removeMarkers']();}['_getMarkerAnnouncementText'](_0x166020,_0x5b8b50,_0x5eb0c0){const _0x4d7ad7=_0x166020['startsWith']('format')||_0x166020['startsWith']('attribute')?'FORMATTING':_0x166020['toUpperCase']();return o(this['editor']['locale'],_0x5b8b50+'_'+_0x4d7ad7+'_SUGGESTION_ANNOUNCEMENT',_0x5eb0c0);}['_initAriaMarkerChangeAnnouncements'](){const _0x127323=this['editor'];if(!_0x127323['ui'])return;const {ariaLiveAnnouncer:_0x114697}=_0x127323['ui'];_0x599706(this['_model'],({left:_0x3de20c,entered:_0x1af981})=>{for(const _0x1d3150 of _0x3de20c){const {group:_0x1723d2,type:_0x14d7c5}=this['_splitMarkerName'](_0x1d3150['name']);if('suggestion'===_0x1723d2){_0x114697['announce'](this['_getMarkerAnnouncementText'](_0x14d7c5,'LEAVE'));break;}}for(const _0x18e84f of _0x1af981){const {group:_0x2df1dc,type:_0x20d707}=this['_splitMarkerName'](_0x18e84f['name']);if('suggestion'===_0x2df1dc){_0x114697['announce'](this['_getMarkerAnnouncementText'](_0x20d707,'ENTER',_0x134abc(_0x398286)));break;}}});}['_processAttributeChanges'](_0x59d56b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5d43fa=this['editor'],_0x17303f=_0x5d43fa['model']['document']['differ']['getChanges']();if(0x0==_0x17303f['length'])return!0x1;const _0x20bbe6=[],_0x2ac4e6=_0x17303f['filter'](_0x4cb4aa=>'attribute'==_0x4cb4aa['type']),_0xe65c29=_0x17303f['filter'](_0x14b319=>'insert'==_0x14b319['type']&&'$text'!=_0x14b319['name']),_0x3be41b=_0x17303f['filter'](_0x52123d=>'remove'==_0x52123d['type']&&'$text'!=_0x52123d['name']);for(const _0x584b28 of _0x2ac4e6)_0x20bbe6['push']({'key':_0x584b28['attributeKey'],'newValue':_0x584b28['attributeNewValue'],'oldValue':_0x584b28['attributeOldValue'],'range':Pt(_0x584b28['range'],_0x5d43fa['model'])});for(const _0xfc19b7 of _0xe65c29){const _0x52d18e=_0x3be41b['find'](_0x4e4f9b=>_0x4e4f9b['position']['isEqual'](_0xfc19b7['position']));_0x52d18e&&_0x20bbe6['push']({'key':m,'newValue':_0xfc19b7['name'],'oldValue':_0x52d18e['name'],'range':_0x5d43fa['model']['createRangeOn'](_0xfc19b7['position']['nodeAfter'])});}return 0x0!=_0x20bbe6['length']&&this['_reduceExistingSuggestions'](_0x59d56b,_0x20bbe6);}['_processAttributeSuggestions'](_0x5e9e42){let _0x310b78=!0x1;const _0xa5c548=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7b5da4=>_0x7b5da4['data']['newRange']&&_0x7b5da4['name']['startsWith']('suggestion:attribute:'));for(const _0x19fc1d of _0xa5c548){const {subType:_0x1a4b75,id:_0x3ca3b2}=this['_splitMarkerName'](_0x19fc1d['name']),_0xc47573=_0x1a4b75['split']('|')[0x0];for(const _0x1e71ff of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1e71ff['id']!=_0x3ca3b2&&'attribute'==_0x1e71ff['type']&&_0x1e71ff['data']&&_0x1e71ff['data']['key']==_0xc47573&&_0x1e71ff['getFirstRange']()['isIntersecting'](_0x19fc1d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1e71ff,_0x19fc1d['data']['newRange'],_0x5e9e42),_0x310b78=!0x0);}return _0x310b78;}['_recordAttributeChanges'](_0x39bc08){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x39bc08();}['_isRegisteredAttribute'](_0x3d03f6){const _0x5f4dad=this['_isBlockAttribute'](_0x3d03f6),_0x353a53=this['_inlineAttributeKeys']['has'](_0x3d03f6);return _0x5f4dad||_0x353a53;}['_reduceExistingSuggestions'](_0x441af7,_0x482bad){if(0x0==_0x482bad['length'])return!0x1;let _0x1dfedf=!0x1;for(const _0x2f78da of _0x482bad){const _0x187e0e=this['_findSuggestions'](_0x2f78da['range'],'attribute')['filter'](_0x484718=>!_0x484718['meta']['isNextTo'])['map'](_0x966667=>_0x966667['suggestion']),_0x5b06ca=_0x42a9e2({'newValue':_0x2f78da['newValue']});_0x187e0e['filter'](_0x554988=>{const [_0x2b7608,_0x36a777]=_0x554988['subType']['split']('|');return _0x2b7608==_0x2f78da['key']&&_0x36a777!=_0x5b06ca;})['forEach'](_0x42f2fb=>{this['_reduceSuggestionAttributeRange'](_0x42f2fb,_0x2f78da['range'],_0x441af7),_0x1dfedf=!0x0;});}return _0x1dfedf;}['_reduceSuggestionAttributeRange'](_0x4c73b1,_0x2d00c1,_0x276e37){const _0x5315bf=_0x4c73b1['getFirstRange']()['getDifference'](_0x2d00c1);0x0!==_0x5315bf['length']?0x1!==_0x5315bf['length']?this['_breakSuggestionMarker'](_0x4c73b1,_0x2d00c1['start'],_0x2d00c1['end']):this['_setSuggestionRange'](_0x4c73b1,_0x5315bf[0x0]):_0x276e37['removeMarker'](_0x4c73b1['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5a644e){this['_editor']=_0x5a644e,this['_model']=_0x5a644e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xc5700f,_0x245548,_0x236b99,_0x3ed5ce,_0xa6c919,_0x253f05){return new u(this['_model'],{'type':_0xc5700f,'subType':_0x245548,'id':_0x236b99,'author':_0x3ed5ce,'creator':_0x3ed5ce,'attributes':_0xa6c919,'onAttributesChange':_0x253f05,'onAccept':(..._0x5b68c1)=>this['getSuggestionCallback'](_0xc5700f,_0x245548,'accept')(..._0x5b68c1),'onDiscard':(..._0x9ddbd1)=>this['getSuggestionCallback'](_0xc5700f,_0x245548,'discard')(..._0x9ddbd1)});}['registerCustomCallback'](_0x29735b,_0x566f73,_0x4f155f,_0x39fa28){const _0x4b04dc=_0x29735b+':'+_0x566f73+':'+_0x4f155f;this['_customCallbacks']['set'](_0x4b04dc,_0x39fa28);}['getSuggestionCallback'](_0x37ad17,_0x1ea5e5,_0x656967){const _0xd2b664=_0x37ad17+':'+_0x1ea5e5+':'+_0x656967;return this['_customCallbacks']['get'](_0xd2b664)||this['_defaultCallbacks']['get'](_0x37ad17+':'+_0x656967);}['_registerDefaultCallbacks'](){const _0x2c23d5=()=>!0x1,_0x4d7d92=_0x8079fe=>{_0x8079fe['sort']((_0x3b5403,_0x484743)=>_0x3b5403['start']['isBefore'](_0x484743['start'])?0x1:-0x1),this['_model']['change'](_0x1fccea=>{for(const _0x422bf4 of _0x8079fe){let _0x2652ab;_0x2652ab=_0x422bf4['end']['isAtEnd']&&_0x422bf4['end']['parent']==_0x422bf4['start']['nodeAfter']?_0x1fccea['createSelection'](_0x422bf4['start']['nodeAfter'],'on'):_0x1fccea['createSelection'](_0x422bf4),this['_model']['deleteContent'](_0x2652ab,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x6a28dd=(_0x26fbcf,_0x15cbca)=>{_0x15cbca&&this['_model']['change'](_0x4f0e94=>{const {commandName:_0x2b4b89,commandParams:_0x2f96f0=[]}=_0x15cbca,_0xd3b972=_0x26fbcf['map'](_0x14367d=>(Vt(_0x14367d)&&(_0x14367d=this['_model']['createRange'](_0x14367d['end'])),_0x14367d))['filter'](_0x3329ce=>'$graveyard'!==_0x3329ce['root']['rootName']);if(_0xd3b972['length']<0x1)return;const _0x590b45=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xdfa4b2=>_0x50563c['fromRange'](_0xdfa4b2));_0x4f0e94['setSelection'](_0xd3b972);for(const _0x4cce5e of this['_editor']['commands']['commands']())_0x4cce5e['refresh']();_0x2f96f0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2b4b89,..._0x2f96f0);const _0x1a1442=_0x590b45['filter'](_0x4f2a95=>'$graveyard'!=_0x4f2a95['root']['rootName']);_0x1a1442['length']>0x0&&_0x4f0e94['setSelection'](_0x1a1442);for(const _0x576c9b of _0x590b45)_0x576c9b['detach']();});},_0x1e9977=(_0x4d357d,_0x1d0f83)=>0x1==_0x4d357d['length']&&0x1==_0x1d0f83['length']&&_0x4d357d[0x0]['end']['isEqual'](_0x1d0f83[0x0]['start']),_0x419a6e=(_0x2d3d8a,_0xe9c1a9,_0xaa8085,_0x5c9e14)=>Ht(_0x2d3d8a,_0xe9c1a9,_0xaa8085,_0x5c9e14,this['_model'])?[_0x2d3d8a,_0xe9c1a9]:Ht(_0xe9c1a9,_0x2d3d8a,_0x5c9e14,_0xaa8085,this['_model'])?[_0xe9c1a9,_0x2d3d8a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2c23d5),this['_defaultCallbacks']['set']('insertion:discard',_0x4d7d92),this['_defaultCallbacks']['set']('insertion:join',_0x1e9977),this['_defaultCallbacks']['set']('insertion:chain',_0x419a6e),this['_defaultCallbacks']['set']('deletion:accept',_0x4d7d92),this['_defaultCallbacks']['set']('deletion:discard',_0x2c23d5),this['_defaultCallbacks']['set']('deletion:join',_0x1e9977),this['_defaultCallbacks']['set']('deletion:chain',_0x419a6e),this['_defaultCallbacks']['set']('formatInline:accept',_0x6a28dd),this['_defaultCallbacks']['set']('formatInline:discard',_0x2c23d5),this['_defaultCallbacks']['set']('formatInline:join',_0x1e9977),this['_defaultCallbacks']['set']('formatInline:chain',_0x2c23d5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x6a28dd),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2c23d5),this['_defaultCallbacks']['set']('formatBlock:join',_0x1e9977),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2c23d5),this['_defaultCallbacks']['set']('attribute:accept',_0x2c23d5),this['_defaultCallbacks']['set']('attribute:discard',(_0x5782c2,_0x5c0cff)=>{if(!_0x5c0cff)return;const _0x12a2d9=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5618ac=>{if(_0x5c0cff['key']==m)for(const _0x1e8513 of _0x5782c2){const _0x4890b2=_0x1e8513['start']['nodeAfter'],_0x9d679b=_0x5c0cff['oldValue'];_0x5618ac['rename'](_0x4890b2,_0x9d679b);}else{if(_0x12a2d9['_isBlockAttribute'](_0x5c0cff['key'])){for(const _0x2a2153 of _0x5782c2)void 0x0!==_0x5c0cff['oldValue']?_0x5618ac['setAttribute'](_0x5c0cff['key'],_0x5c0cff['oldValue'],_0x2a2153['start']['nodeAfter']):_0x5618ac['removeAttribute'](_0x5c0cff['key'],_0x2a2153['start']['nodeAfter']);}else{for(const _0x23f406 of _0x5782c2)_0x5c0cff['oldValue']?_0x5618ac['setAttribute'](_0x5c0cff['key'],_0x5c0cff['oldValue'],_0x23f406):_0x5618ac['removeAttribute'](_0x5c0cff['key'],_0x23f406);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1e9977);}}function Ot(_0x50f7ba,_0x2dae75,_0x196955){for(const _0x1c5288 of _0x2dae75['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c5288['root']==_0x1c5288)return!0x1;if(!_0x196955['containsItem'](_0x1c5288))return!0x1;if(_0x50f7ba['isObject'](_0x1c5288)||_0x50f7ba['isLimit'](_0x1c5288))return!0x0;}return!0x1;}function Vt(_0x1fbbf3){return _0x1fbbf3['end']['parent']==_0x1fbbf3['start']['nodeAfter']&&_0x1fbbf3['end']['isAtStart'];}function Ut(_0xca66c2,_0x1e81d6,_0xc60270,_0x3f3482){const _0x498198=_0x1ef974=>!_0x1ef974['item']['is']('$textProxy')&&!_0x3f3482['isObject'](_0x1ef974['item']),_0x3e9203=_0xca66c2['start']['getLastMatchingPosition'](_0x498198),_0x495d2e=_0xca66c2['end']['getLastMatchingPosition'](_0x498198,{'direction':'backward'});return(!_0xca66c2['start']['isEqual'](_0x3e9203)||!_0xca66c2['end']['isEqual'](_0x495d2e))&&(_0x3e9203['isBefore'](_0x495d2e)?_0xc60270['updateMarker'](_0x1e81d6,{'range':_0xc60270['createRange'](_0x3e9203,_0x495d2e)}):_0xc60270['removeMarker'](_0x1e81d6),!0x0);}function Gt(_0x208a0b){return _0x42a9e2(_0x208a0b);}function Ft(_0x45b673){const _0x1b3a39=_0x45b673['start']['nodeAfter'];return _0x1b3a39&&_0x1b3a39['is']('element');}function Pt(_0x403950,_0x2797d3){return null==_0x403950['end']['nodeBefore']&&_0x403950['end']['parent']==_0x403950['start']['nodeAfter']?Lt(_0x403950['start']['nodeAfter'],_0x2797d3):_0x403950;}function Lt(_0x59fc6a,_0x4a5e8f){const _0x3f4fbf=_0x4a5e8f['schema']['isObject'](_0x59fc6a)||_0x4a5e8f['schema']['isSelectable'](_0x59fc6a);return _0x4a5e8f['createRange'](_0x4a5e8f['createPositionAt'](_0x59fc6a,'before'),_0x3f4fbf?_0x4a5e8f['createPositionAfter'](_0x59fc6a):_0x4a5e8f['createPositionAt'](_0x59fc6a,'end'));}function Ht(_0x374d30,_0x5634df,_0x4461de,_0x419ecf,_0x55d86c){if(_0x374d30['next'])return!0x1;if(!Jt(_0x374d30,_0x5634df))return!0x1;if(_0x4461de['end']['isEqual'](_0x419ecf['start']))return!0x0;if(_0x374d30['type']!=_0x5634df['type'])return!0x1;if(!_0x4461de['end']['isTouching'](_0x419ecf['start']))return!0x1;const _0x486a67=_0x55d86c['createRange'](_0x4461de['end'],_0x419ecf['start'])['getWalker']();for(const _0x15855f of _0x486a67)if(['elementStart','elementEnd']['includes'](_0x15855f['type'])&&_0x55d86c['schema']['isLimit'](_0x15855f['item']))return!0x1;return!0x0;}function Jt(_0x12d7f2,_0x4c0193){if(!_0x12d7f2['_isDataLoaded']||!_0x4c0193['_isDataLoaded'])return!0x1;const _0x364250=new Set(Object['keys'](_0x12d7f2['attributes'])),_0x512e88=new Set(Object['keys'](_0x4c0193['attributes']));if(_0x364250['delete']('groupId'),_0x512e88['delete']('groupId'),0x0==_0x364250['size']&&0x0==_0x512e88['size'])return!0x0;if(_0x364250['size']!=_0x512e88['size'])return!0x1;const _0x1a39d5={..._0x12d7f2['attributes']},_0xc8d35f={..._0x4c0193['attributes']};return delete _0x1a39d5['groupId'],delete _0xc8d35f['groupId'],JSON['stringify'](_0x1a39d5)==JSON['stringify'](_0xc8d35f);}function qt(_0xd48e35,_0x23837e){const _0x309975=zt(_0xd48e35['attributes']),_0x230934=zt(_0x23837e);if(!_0xd48e35['_isDataLoaded'])return!0x1;for(const _0x23cd8f of Object['keys'](_0x230934))if(!_0x152790(_0x309975[_0x23cd8f],_0x230934[_0x23cd8f]))return!0x1;return!0x0;}function zt(_0x44d66a){const _0x5f3e34=Object['assign']({},_0x44d66a);return delete _0x5f3e34['skipNestingCheck'],delete _0x5f3e34['tablePasteChainId'],_0x5f3e34;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x107944(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x586cfe,_0x22da23,_0x1c0033,_0x24670f){super(),this['model']=_0x22da23,this['view']=_0x1c0033,this['commentThreadController']=_0x24670f,this['_editor']=_0x586cfe,this['_acceptCommand']=_0x586cfe['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x586cfe['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x57ce21,_0x192085)=>_0x57ce21||_0x192085),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x186fc9=>_0x186fc9&&this['_editor']['model']['canEditAt'](_0x22da23['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x58ddc5=>_0x58ddc5&&this['_editor']['model']['canEditAt'](_0x22da23['getRanges']())),this['_pendingAction']=null,_0x1c0033['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1c0033,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1c0033,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1c0033,'change:isDirty',()=>{_0x1c0033['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 _0x582af3=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x582af3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3f236f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x580abb,_0x568178,_0x3f16ed,_0x5ec4e0){super(_0x580abb),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1306d7(_0x580abb,o(_0x580abb,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x568178['authoredAt']),this['bind']('authoredAt')['to'](_0x568178),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x568178,'authoredAt',this,'descriptionParts',(_0xfe3253,_0xb3de31,_0x25c4aa)=>{const _0x7b1b3=_0x25c4aa['map'](_0x17afcf=>ls(_0x17afcf['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xfe3253-0x1,_0x568178['author']['name'],_0xb3de31?_0x5ec4e0['formatDateTime'](_0xb3de31):'',new DOMParser()['parseFromString'](_0x7b1b3,'text/html')['body']['textContent']]);}),this['focusables']=new _0xfeac15(),this['focusTracker']=new _0x2d4da6(),this['keystrokes']=new _0x3106bc(),this['focusCycler']=new _0x21837d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x58ac4d=>_0x58ac4d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x568178,this['_localUser']=_0x3f16ed,this['_config']=_0x5ec4e0,_0x5ec4e0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x201da0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3b7e7a}=this['_config'];this['commentsListView']=new _0x3b7e7a(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',_0x559591=>_0x559591+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x19a041,_0x47b7ac)=>_0x19a041||!!_0x47b7ac);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4b0049}=this['_config'],_0x2f029b=new _0x4b0049(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x55787d=_0x2f029b['commentInputView'];return _0x2f029b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x55787d,'value',(_0x366db8,_0x40b138,_0x22ff8a)=>!!_0x22ff8a||_0x366db8&&!_0x40b138),_0x55787d['on']('submit',(_0x379049,_0x324340)=>{this['fire']('addComment',_0x324340),_0x55787d['editor']['setData']('');}),_0x55787d['on']('cancel',()=>this['focus']()),_0x55787d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f029b;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x297d12,_0x1240e6,_0x1b8acc,_0xd05cfe){super(_0x297d12,_0x1240e6,_0x1b8acc,_0xd05cfe),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x9c6e3=>_0x9c6e3&&_0x9c6e3[0x0]?_0x9c6e3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x35027f,_0x4eee7a)=>{let _0x45d54a='';for(const _0x5efb27 of _0x35027f)_0x45d54a+='<p>'+ls(_0x5efb27['content'],_0x5efb27['color'])+'</p>';return _0x4eee7a?_0x45d54a:_0x4e76e6(_0x45d54a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xd05cfe['SuggestionView'](_0x297d12,_0x1240e6,{'formatDateTime':_0xd05cfe['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x34bae3=this['bindTemplate'],_0x2d3947=[this['suggestionView']];return this['commentsListView']&&_0x2d3947['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2d3947['push'](this['commentThreadInputView']),_0x2d3947['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x34bae3['if']('isActive','ck-suggestion-wrapper--active'),_0x34bae3['to']('type',_0x2f5c64=>'ck-suggestion-'+_0x2f5c64),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x34bae3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2d3947};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x3f236f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2cd12d,_0x164e0f,_0x5a6b96){super(_0x2cd12d),this['_model']=_0x164e0f,this['_config']=_0x5a6b96,this['set']('description',''),this['bind']('authoredAt')['to'](_0x164e0f),this['acceptButton']=this['_createButton'](o(_0x2cd12d,'Accept\x20suggestion'),_0x22bd42['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2cd12d,'Discard\x20suggestion'),_0x22bd42['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x244d6e(_0x2cd12d,_0x164e0f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xfeac15([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2d4da6(),this['keystrokes']=new _0x3106bc(),this['focusCycler']=new _0x21837d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2862b5=>_0x2862b5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4f9253=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4f9253['innerHTML']=this['description'],this['on']('change:description',(_0x9faafc,_0xb5145d,_0x1a4b79)=>{_0x4f9253['innerHTML']=_0x1a4b79;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x59411c=this['bindTemplate'],_0x16397c=[{'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':_0x59411c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x59411c['to']('authoredAt',_0x24f41d=>this['_config']['formatDateTime'](_0x24f41d))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x16397c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x16397c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x38976a,_0x358d70,_0x1b0313,_0x58c258,_0x56ca06){const _0x43ed30=new _0x10725f(this['locale']);return _0x43ed30['set']({'label':_0x38976a,'icon':_0x358d70,'tooltip':!0x0,'tooltipPosition':_0x56ca06}),_0x43ed30['extendTemplate']({'attributes':{'class':_0x1b0313}}),_0x43ed30['on']('execute',()=>{this['fire'](_0x58c258,this['_model']['id']);}),_0x43ed30;}['_setupKeyboardNavigation'](){const _0x4e1962=this['element'];this['keystrokes']['listenTo'](_0x4e1962);for(const _0x393b93 of this['focusables'])this['focusTracker']['add'](_0x393b93['element']),this['keystrokes']['listenTo'](_0x393b93['element']);this['keystrokes']['set']('enter',(_0x373419,_0x384b44)=>{_0x4e1962===_0x373419['target']&&(this['focusCycler']['focusFirst'](),_0x384b44());}),this['keystrokes']['set']('esc',(_0x12c099,_0x12f512)=>{_0x4e1962!==_0x12c099['target']&&(this['focus'](),_0x12f512());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x5bfee9{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x999574,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x3232c8){super(_0x3232c8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x550f14=this['editor']['config'];_0x550f14['define']('trackChanges.SuggestionThreadView',re),_0x550f14['define']('trackChanges.SuggestionView',ce),_0x550f14['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x550f14['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x27b22b,_0x47cbee){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x58f1bc,_0x5a471d]of this['_handleControllerBuffer']){const _0x119321=this['_suggestionToController']['has'](_0x58f1bc);_0x119321||_0x5a471d?_0x119321&&_0x5a471d&&this['_destroyController'](_0x58f1bc):this['_initializeController'](_0x58f1bc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x27b22b,_0x47cbee);}['init'](){const _0xb5f0bb=this['editor'],_0x43d209=_0xb5f0bb['plugins']['get']('TrackChangesEditing'),_0x2900a2=_0xb5f0bb['plugins']['get']('Annotations'),_0x1832d9=_0xb5f0bb['plugins']['get']('EditorAnnotations'),_0x517609=_0xb5f0bb['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1832d9['addSourceCollector'](()=>{const _0x4de060=[];for(const [_0x433284,_0x464ced]of Array['from'](this['_suggestionToController'])){const _0x5111e0=_0x433284['getAllAdjacentSuggestions'](),_0x16dd64=[];for(const _0x12bd6e of _0x5111e0){if(!_0x12bd6e['isInContent'])continue;if(_0x12bd6e['isMultiRange']){_0x16dd64['push'](..._0x12bd6e['getRanges']());continue;}const _0x26afd0=_0x12bd6e['getFirstRange']();if(_0x16dd64['length']>0x0){const _0x26575d=_0x16dd64[0x0]['getJoined'](_0x26afd0);if(_0x26575d){_0x16dd64[0x0]=_0x26575d;continue;}}_0x16dd64['push'](_0x26afd0);}_0x4de060['push']([_0x464ced['view'],_0x16dd64]);}return _0x4de060;}),this['listenTo'](_0x43d209,'suggestionLoaded',(_0x3d57d4,_0x50dd33)=>{this['listenTo'](_0x50dd33,'change:previous',(_0x56a75f,_0x313050,_0x1728e3,_0x41e275)=>{_0x50dd33['isInContent']&&(null==_0x1728e3?(this['_updateController'](_0x41e275['head']),this['_handleSuggestionControllerDelayed'](_0x50dd33,!0x1)):(this['_updateController'](_0x1728e3['head']),null==_0x41e275&&this['_handleSuggestionControllerDelayed'](_0x50dd33,!0x0)));}),null!==_0x50dd33['previous']?this['_updateController'](_0x50dd33['head']):this['_handleSuggestionControllerDelayed'](_0x50dd33,!0x1);}),this['listenTo'](_0x43d209,'suggestionUnloaded',(_0x2680f7,_0x3d1be0,_0x1fd529)=>{this['stopListening'](_0x3d1be0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d1be0),this['_suggestionToController']['has'](_0x3d1be0)&&this['_destroyController'](_0x3d1be0),_0x1fd529&&this['_updateController'](_0x1fd529['head']);}),this['listenTo'](_0x43d209,'suggestionChanged',(_0x14bbc8,_0x343a4e)=>{this['_updateController'](_0x343a4e);}),this['listenTo'](_0x2900a2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x517609,'addComment',(_0x54b568,{threadId:_0x423cd6,isFromAdapter:_0x2882a6})=>{if(_0x2882a6||!_0x43d209['hasSuggestion'](_0x423cd6))return;const _0x4556ea=_0x43d209['getSuggestion'](_0x423cd6);this['_suggestionToController']['get'](_0x4556ea)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1e6a03=this['editor']['plugins']['get']('Annotations'),_0x240624=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2257ca=Array['from'](_0x1e6a03['activeAnnotations'],_0x4e9b2f=>_0x4e9b2f['innerView'])['filter'](_0x3d4ead=>this['_viewToController']['has'](_0x3d4ead)),_0x1e0171=[];for(const _0x366bd7 of _0x2257ca){const _0x1dea19=this['_viewToController']['get'](_0x366bd7)['model']['getAllAdjacentSuggestions']();_0x1e0171['push'](..._0x1dea19['reduce']((_0x531b4e,_0x5757bc)=>[..._0x531b4e,..._0x5757bc['getMarkerNames']()],[]));}_0x240624['activeMarkers']=_0x1e0171;}['_addUIComponentsToFactory'](){const _0x25547a=this['editor'],_0x298004=_0x25547a['locale'],_0x114992=o(_0x298004,'Track\x20changes'),_0xdf1b=new Wt([{'type':'switchbutton','model':new _0x287844({'withText':!0x0,'isToggleable':!0x0,'label':_0x114992,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x287844({'withText':!0x0,'label':o(_0x298004,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x287844({'withText':!0x0,'label':o(_0x298004,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x287844({'withText':!0x0,'label':o(_0x298004,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x287844({'withText':!0x0,'label':o(_0x298004,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1c57d5 of _0xdf1b)if(me(_0x1c57d5)){const _0xbf34a6=_0x25547a['commands']['get'](_0x1c57d5['model']['commandName']);_0x1c57d5['model']['bind']('isOn','isEnabled')['to'](_0xbf34a6,'value','isEnabled');}_0x25547a['ui']['componentFactory']['add']('trackChanges',_0x3ea789=>this['_createToolbarButton'](_0x3ea789,_0xdf1b,_0x114992)),_0x25547a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x694180=>this['_createMenuBarMenu'](_0x694180,_0xdf1b,_0x114992));}['_createToolbarButton'](_0x4d4ba5,_0x676eec,_0xa5d079){const _0x2bfa9d=Qt(_0x4d4ba5,_0xbcc610),_0x42da9b=this['editor']['commands']['get']('trackChanges');_0x2bfa9d['buttonView']['set']({'tooltip':_0xa5d079,'label':_0xa5d079,'icon':he}),_0x2bfa9d['buttonView']['bind']('isOn')['to'](_0x42da9b,'value'),_0x2bfa9d['buttonView']['on']('execute',()=>{_0x42da9b['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2bfa9d,_0x676eec,{'role':'menu'});const _0x129425=[];for(const _0x9f261d of _0x676eec)me(_0x9f261d)&&_0x129425['push'](this['editor']['commands']['get'](_0x9f261d['model']['commandName']));const _0xb5d946=_0x2bfa9d['buttonView'];return _0xb5d946['actionView']['unbind']('isEnabled'),_0xb5d946['arrowView']['unbind']('isEnabled'),_0xb5d946['actionView']['bind']('isEnabled')['to'](_0x42da9b,'isEnabled'),_0xb5d946['arrowView']['bind']('isEnabled')['toMany'](_0x129425,'isEnabled',(..._0x2ce543)=>_0x2ce543['some'](_0xdf606=>_0xdf606)),_0x2bfa9d['on']('execute',_0x15a04e=>{this['editor']['execute'](_0x15a04e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2bfa9d;}['_createMenuBarMenu'](_0x4d8f59,_0x4019ec,_0x3fa61d){const _0x4c2771=new Yt(_0x4d8f59),_0x5ae9f6=this['editor']['commands']['get']('trackChanges');_0x4c2771['buttonView']['set']({'label':_0x3fa61d,'icon':he});const _0x206860=new Zt(_0x4d8f59);for(const _0x35a48b of _0x4019ec){if('separator'==_0x35a48b['type']){_0x206860['items']['add'](new Xt(_0x4d8f59));continue;}const _0x15c51c=new te(_0x4d8f59,_0x4c2771),_0xba257c=new _0x12f0da(_0x4d8f59),_0x1b7f1c=_0x35a48b['model'];_0xba257c['bind'](...Object['keys'](_0x1b7f1c))['to'](_0x1b7f1c),_0xba257c['delegate']('execute')['to'](_0x4c2771),_0xba257c['on']('execute',()=>{this['editor']['execute'](_0x1b7f1c['commandName']),this['editor']['editing']['view']['focus']();}),_0x15c51c['children']['add'](_0xba257c),_0x206860['items']['add'](_0x15c51c);}return _0x4c2771['bind']('isEnabled')['to'](_0x5ae9f6,'isEnabled'),_0x4c2771['panelView']['children']['add'](_0x206860),_0x4c2771;}['_initializeController'](_0x380ea8){const _0x1acd0f=this['editor'],_0x19af7d=_0x1acd0f['config'],_0x13c19e=_0x1acd0f['plugins']['get']('Annotations'),_0x1e7cb0=_0x1acd0f['plugins']['get']('CommentsRepository'),_0x28922e=_0x1acd0f['plugins']['get']('EditorAnnotations'),_0x19e875=_0x1acd0f['plugins']['get'](_0x999574)['me'],_0x50363e=_0x19af7d['get']('trackChanges')['SuggestionThreadView'],_0x1cd8ad=_0x19af7d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x7aa5a4,CommentThreadInputView:_0x5f4d18}=_0x1acd0f['plugins']['get']('CommentsUI');let _0x394523,_0x5e3eb8,_0x47a73f;this['_annotationViews']['has'](_0x380ea8['id'])?(_0x5e3eb8=this['_annotationViews']['get'](_0x380ea8['id']),_0x394523=_0x5e3eb8['mainView']):(_0x394523=new _0x50363e(_0x1acd0f['locale'],_0x380ea8,_0x19e875,{'disableComments':this['_disableComments'],'editorConfig':_0x19af7d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x19af7d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x19af7d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x19af7d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x320a77(_0x19af7d['get']('locale')),'CommentView':_0x19af7d['get']('comments')['CommentView'],'CommentsListView':_0x7aa5a4,'CommentThreadInputView':_0x5f4d18,'SuggestionView':_0x1cd8ad}),_0x394523['suggestionView']['acceptButton']['on']('execute',()=>{_0x1acd0f['editing']['view']['focus']();}),_0x394523['suggestionView']['discardButton']['on']('execute',()=>{_0x1acd0f['editing']['view']['focus']();}),_0x5e3eb8=_0x13c19e['createAnnotationView'](this['editor']['locale'],_0x394523),_0x5e3eb8['bind']('isDirty')['to'](_0x394523,'isDirty'),_0x5e3eb8['bind']('length')['to'](_0x394523),_0x5e3eb8['bind']('type')['to'](_0x394523,'type',_0x57627a=>'suggestion-'+_0x57627a),_0x394523['on']('escape',()=>{_0x47a73f['fire']('escape');}),this['_annotationViews']['set'](_0x380ea8['id'],_0x5e3eb8));const _0x2bd167=_0x1e7cb0['createCommentThreadController'](_0x380ea8['commentThread'],_0x394523),_0x38138d=new ae(_0x1acd0f,_0x380ea8,_0x394523,_0x2bd167),_0x19a621=_0x380ea8['getAllAdjacentSuggestions']()['filter'](_0x4af509=>_0x4af509['isInContent']);_0x394523['descriptionParts']=_0x1acd0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x19a621),this['_suggestionToController']['set'](_0x380ea8,_0x38138d),this['_viewToController']['set'](_0x394523,_0x38138d),_0x47a73f=_0x13c19e['createAnnotation']({'view':_0x5e3eb8,'target':()=>{const _0x33fad7=[],_0x208bb1=_0x380ea8['getAllAdjacentSuggestions']()['filter'](_0x41d57a=>_0x41d57a['isInContent']);for(const _0x4c7ee9 of _0x208bb1)_0x33fad7['push'](..._0x4c7ee9['getMarkers']());return _0x3c9865(_0x1acd0f['editing'],_0x33fad7);},'type':()=>'suggestion-'+_0x38138d['view']['type']}),_0x1e7cb0['_bindAnnotationToEditors'](_0x394523,_0x47a73f),_0x13c19e['add'](_0x47a73f),_0x28922e['registerAnnotation'](_0x47a73f);}['_destroyController'](_0x342e9b){const _0x5e56ca=this['editor']['plugins']['get']('CommentsRepository'),_0x286bf9=this['editor']['plugins']['get']('Annotations'),_0x5613a7=this['_suggestionToController']['get'](_0x342e9b),_0x113753=_0x5613a7['view'],_0x2a6b6b=_0x286bf9['getByInnerView'](_0x113753);_0x5e56ca['_unbindEditors'](_0x113753),_0x2a6b6b&&_0x286bf9['remove'](_0x2a6b6b),this['_suggestionToController']['delete'](_0x342e9b),this['_viewToController']['delete'](_0x113753),_0x5613a7['destroy']();}['_updateController'](_0x32f7a0){if(!_0x32f7a0['isInContent']||!this['_suggestionToController']['has'](_0x32f7a0))return;const _0x382a65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59a633=this['_suggestionToController']['get'](_0x32f7a0),_0x850c97=_0x32f7a0['getAllAdjacentSuggestions']();_0x59a633['view']['descriptionParts']=_0x382a65['descriptionFactory']['getDescriptions'](_0x850c97);}['destroy'](){for(const _0x28ea55 of this['_suggestionToController']['keys']())this['_destroyController'](_0x28ea55);for(const _0x133e09 of this['_annotationViews']['values']())_0x133e09['mainView']['destroy']();super['destroy']();}}function me(_0x53e46e){return'model'in _0x53e46e;}class k extends _0x5bfee9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x92097c){this['editor']['plugins']['get'](p)['adapter']=_0x92097c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x814cfb){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x814cfb);}['getSuggestions']({skipNotAttached:_0x133ced=!0x1,toJSON:_0x3f1244=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x133ced,'toJSON':_0x3f1244});}['getSuggestion'](_0xa9efb4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xa9efb4);}}const T=['Pagination'];class P extends _0x5bfee9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x56bdd1=this['editor'];if(_0x56bdd1['config']['define']('trackChangesData.editorCreator',_0x295c47=>{const _0xe9c4b0=_0x56bdd1['model']['document']['getRootNames']()['reduce']((_0x230d98,_0x5a4e38)=>(_0x230d98[_0x5a4e38]='',_0x230d98),{});return _0x56bdd1['constructor']['create'](_0xe9c4b0,_0x295c47);}),'function'!=typeof _0x56bdd1['config']['get']('trackChangesData')['editorCreator'])throw new _0x450fba('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5968f8){return N(this['editor'],!0x0,_0x5968f8);}['getDataWithDiscardedSuggestions'](_0x4f42b0){return N(this['editor'],!0x1,_0x4f42b0);}}class D extends _0x5bfee9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4f0cf9){super(_0x4f0cf9),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(_0x563213){return void 0x0!==_0x563213['getRootsAttributes'];}async function N(_0x1f4465,_0x5c2a74,_0x10afae){const _0x53c381=_0xa99902(_0x1f4465,T);_0x53c381['plugins']['push'](p,D),_0x53c381['rootsAttributes']=v(_0x1f4465)?_0x1f4465['getRootsAttributes']():void 0x0;const _0x3eb29a=document['createDocumentFragment'](),_0x568ad9=_0x1f4465['config']['get']('trackChangesData')['editorCreator'],_0xa611b=await _0x568ad9(_0x53c381,()=>function(_0x1ad1e5){const _0x2ec4a3=document['createElement']('div');return _0x1ad1e5['appendChild'](_0x2ec4a3),_0x2ec4a3;}(_0x3eb29a));!function(_0x2714a6,_0x5579d9){const _0x1d9fc3=_0x2714a6['model']['document']['getRootNames']()['reduce']((_0xb0e63f,_0x203eb4)=>(_0xb0e63f[_0x203eb4]=_0x2714a6['data']['get']({'rootName':_0x203eb4}),_0xb0e63f),{}),_0x870552=_0x2714a6['plugins']['get']('Users')['users']['map'](_0xb00a7=>({'id':_0xb00a7['id'],'name':_0xb00a7['name']})),_0x1cbce4=_0x2714a6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26172e=_0x2714a6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x299722=_0x5579d9['plugins']['get']('Users'),_0x40f7ca=_0x5579d9['plugins']['get']('TrackChangesEditing'),_0x189f97=_0x5579d9['plugins']['get']('CommentsRepository');for(const _0xa985e of _0x189f97['getCommentThreads']())_0xa985e['remove']();for(const _0x3600c1 of _0x870552)_0x299722['getUser'](_0x3600c1['id'])||_0x299722['addUser'](_0x3600c1);_0x299722['me']||_0x299722['useAnonymousUser']();for(const _0x2bd83f of _0x26172e)_0x189f97['addCommentThread'](_0x2bd83f);for(const _0x4f41a0 of _0x1cbce4)_0x40f7ca['addSuggestionData'](_0x4f41a0);_0x5579d9['data']['set'](_0x1d9fc3);}(_0x1f4465,_0xa611b),_0xa611b['execute'](_0x5c2a74?'acceptAllSuggestions':'discardAllSuggestions');const _0x35d680=v(_0xa611b)?_0xa611b['getFullData'](_0x10afae):_0xa611b['data']['get'](_0x10afae);return await _0xa611b['destroy'](),_0x35d680;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};