@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240813.0 → 0.0.0-nightly-20240815.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x38e08d,PendingActions as _0x1de75b,icons as _0x37249a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x95c834,ObservableMixin as _0x11648b,uid as _0x3d800f,insertToPriorityArray as _0x4a9a41,priorities as _0x3a663c,logWarning as _0xcb7ab9,getEnvKeystrokeText as _0x1b5ec8,FocusTracker as _0x62c4dd,KeystrokeHandler as _0xd6b496,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x6de47a,View as _0x3e2df9,ViewCollection as _0x41ba6f,FocusCycler as _0x4d4497,ViewModel as _0x352a8c,createDropdown as Qt,SplitButtonView as _0x3d2172,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x2d0034}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x31a9a8,hashObject as _0x3a91d5,surroundingMarkersDetector as _0x26ec25,ENTER_THREAD_KEYSTROKE as _0x84f9fc,AriaDescriptionView as _0x45481c,setupThreadKeyboardNavigation as _0x4a1c19,trimHtml as _0x580fa8,UserView as _0x55b600,LateFocusButtonView as _0x2ada82,getDateTimeFormatter as _0x358f71,getAllMarkersDomElementsSorted as _0x46ed37,sanitizeEditorConfig as _0x585e14}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x32956,LiveRange as _0xe83a0b,LivePosition as _0x4fcb60}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x187d70,toWidget as _0x59e9e4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xcfb265,set as _0x1f5eab,isEqual as _0x2815ab,unset as _0x44902d,omit as Tt}from'lodash-es';import{Delete as _0x30ee08,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x550c0e,ShiftEnter as _0x96eaf3}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x355467,_0x2d4460){super(_0x355467),this['_enabledCommands']=_0x2d4460,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 _0x53715c of this['editor']['commands']['commands']())_0x53715c['affectsData']&&!this['_enabledCommands']['has'](_0x53715c)&&_0x53715c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xa476c5 of this['editor']['commands']['commands']())_0xa476c5['affectsData']&&!this['_enabledCommands']['has'](_0xa476c5)&&_0xa476c5['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0xa3399f,_0x4f2b95){super(_0xa3399f),this['_suggestions']=_0x4f2b95,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2ec553){const _0x289fc1=this['_suggestions']['get'](_0x2ec553);if(!_0x289fc1)throw new _0x95c834('track-changes-accept-suggestion-not-found',this);const _0x2d508a=_0x289fc1['getRanges']();this['editor']['model']['canEditAt'](_0x2d508a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x289fc1);}}class R extends ts{['_suggestions'];constructor(_0x298a96,_0x5b466e){super(_0x298a96),this['_suggestions']=_0x5b466e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x423aff){const _0xfb9265=this['_suggestions']['get'](_0x423aff);if(!_0xfb9265)throw new _0x95c834('track-changes-discard-suggestion-not-found',this);const _0x3fa986=_0xfb9265['getRanges']();this['editor']['model']['canEditAt'](_0x3fa986)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xfb9265);}}function ls(_0x42b4ed,_0x395995){let _0x4a95a7='';return _0x4a95a7+=_0x42b4ed['split']('*')['map']((_0x3027eb,_0x5d5ee8)=>_0x5d5ee8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3027eb)+'</span>':nn(_0x3027eb))['join'](''),_0x395995&&(_0x4a95a7+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x395995['value']+'\x22\x20title=\x22'+_0x395995['title']+'\x22></span>'),_0x4a95a7;}function nn(_0x45131f){const _0x47d9cc=document['createElement']('span');return _0x47d9cc['innerText']=_0x45131f,_0x47d9cc['innerHTML'];}function ss(_0x36d139){return _0x36d139['sort']((_0x278290,_0x4a25cd)=>'deletion'==_0x278290['type']&&'deletion'!=_0x4a25cd['type']?-0x1:'deletion'!=_0x278290['type']&&'deletion'==_0x4a25cd['type']?0x1:0x0);}function to(_0x2d60e4,_0x51f5af){let _0x1ed9ff,_0xc65ecc=0x0;const _0x434137=[],_0x3af4c0=_0x51f5af['schema'];for(;_0xc65ecc<_0x2d60e4['length'];){const _0x36aa93=_0x2d60e4[_0xc65ecc],_0x4e7ee8=_0x2d60e4[_0xc65ecc+0x1];_0x1ed9ff||(_0x1ed9ff=_0x51f5af['createPositionBefore'](_0x36aa93)),on(_0x51f5af,_0x36aa93,_0x4e7ee8)||(_0x434137['push'](_0x51f5af['createRange'](_0x1ed9ff,_0x3af4c0['isObject'](_0x36aa93)?_0x51f5af['createPositionAfter'](_0x36aa93):_0x51f5af['createPositionAt'](_0x36aa93,'end'))),_0x1ed9ff=null),_0xc65ecc++;}return _0x434137;}function on(_0x234e72,_0x489f7b,_0x3003c7){if(!_0x3003c7)return!0x1;const _0x1920eb=_0x234e72['createPositionAfter'](_0x489f7b),_0x1d33ad=_0x234e72['createPositionBefore'](_0x3003c7);return _0x1920eb['isTouching'](_0x1d33ad);}function rs(_0x328492,_0x2d04b1,_0x3c0b4f){for(;_0x3c0b4f['length'];){const _0x17323a=_0x3c0b4f['splice'](0x0,0x64);_0x328492['change'](()=>{for(const _0x554e25 of _0x17323a)_0x554e25['isInContent']&&_0x2d04b1['execute'](_0x554e25['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x4855ef,_0x19d6f1,_0x2b8d9d){super(_0x4855ef),this['_command']=_0x19d6f1,this['_suggestions']=_0x2b8d9d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x31d657=Array['from'](this['_suggestions']['values']())['some'](_0x34d5f5=>_0x34d5f5['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x31d657;}['execute'](){const _0x293fc8=ss(Array['from'](this['_suggestions']['values']()));for(const _0x6536db of _0x293fc8){const _0x118f11=_0x6536db['getRanges']();if(!this['editor']['model']['canEditAt'](_0x118f11))return;}rs(this['editor']['model'],this['_command'],_0x293fc8);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1e923e,_0x5a7e46,_0x330d1d){super(_0x1e923e),this['_command']=_0x5a7e46,this['_suggestions']=_0x330d1d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x593966=this['editor']['model']['document']['selection'],_0xa81975=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3db70c,_0xb091d5){const _0x2e8f74=Array['from'](_0x3db70c['getRanges']()),_0x5b784e=new Set();for(const _0x31cb91 of _0xb091d5)if(_0x31cb91['isInContent']){for(const _0x3bce89 of _0x2e8f74)for(const _0x177d7b of _0x31cb91['getRanges']())(_0x3bce89['isIntersecting'](_0x177d7b)||_0x3db70c['isCollapsed']&&!_0x31cb91['isMultiRange']&&_0x31cb91['next']&&_0x177d7b['end']['isTouching'](_0x3bce89['start']))&&_0x5b784e['add'](_0x31cb91);}return _0x5b784e;}(_0x593966,_0xa81975),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4eec0c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x382979 of _0x4eec0c){const _0x1cd559=_0x382979['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1cd559))return;}rs(this['editor']['model'],this['_command'],_0x4eec0c);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x11648b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f3284,_0x1ef961){super(),this['id']=_0x1ef961['id'],this['type']=_0x1ef961['type'],this['subType']=_0x1ef961['subType']||null,this['author']=_0x1ef961['author'],this['creator']=_0x1ef961['creator']||_0x1ef961['author'],this['isExternal']=Boolean(_0x1ef961['attributes']&&_0x1ef961['attributes']['@external']),this['data']=null,this['_model']=_0x2f3284,this['_onAccept']=_0x1ef961['onAccept'],this['_onDiscard']=_0x1ef961['onDiscard'],this['_onAttributesChange']=_0x1ef961['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1ef961['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 _0x1ca3d2=this;for(;_0x1ca3d2['previous'];)_0x1ca3d2=_0x1ca3d2['previous'];return _0x1ca3d2;}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'](_0x2ac9cd){this['_markerNames']['add'](_0x2ac9cd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3aebc5=>this['_model']['markers']['get'](_0x3aebc5))['filter'](_0x32686e=>_0x32686e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1dea88=>{for(const _0x41a21b of this['getMarkers']())_0x1dea88['removeMarker'](_0x41a21b);}),this['_markerNames']['clear']();}['removeMarker'](_0x4016df){this['_model']['change'](_0x349113=>{_0x349113['removeMarker'](_0x4016df);}),this['_markerNames']['delete'](_0x4016df);}['addRange'](_0x35272d){const _0x1e0133='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1e0133),this['_model']['change'](_0x1ceb93=>{_0x1ceb93['addMarker'](_0x1e0133,{'range':_0x35272d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x770e5b){for(const _0x354adf of this['getRanges']())if(_0x354adf['isIntersecting'](_0x770e5b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1e1ca3=>_0x1e1ca3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3125e2,_0x572698)=>[..._0x3125e2,..._0x572698['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x355f59=this['getRanges']();if(0x1!=_0x355f59['length'])return null;const _0x3e2e82=_0x355f59[0x0],_0x179a31=_0x3e2e82['start']['nodeAfter'],_0x4754f2=_0x3e2e82['end']['nodeBefore'];return _0x179a31 instanceof _0x32956?_0x179a31!=_0x4754f2?null:_0x179a31: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 _0x2dbf54=[];let _0x179ab4=this['head'];for(;_0x179ab4;)_0x2dbf54['push'](_0x179ab4),_0x179ab4=_0x179ab4['next'];return _0x2dbf54;}['setAttribute'](_0x137622,_0x1955c5){const _0x291420=_0xcfb265(this['attributes']);_0x1f5eab(_0x291420,_0x137622,_0x1955c5),_0x2815ab(_0x291420,this['attributes'])||(this['attributes']=_0x291420,this['_onAttributesChange'](_0x291420));}['removeAttribute'](_0xd39550){const _0xc2b346=_0xcfb265(this['attributes']);_0x44902d(_0xc2b346,_0xd39550),_0x2815ab(_0xc2b346,this['attributes'])||(this['attributes']=_0xc2b346,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 _0x3d800f()['substr'](0x1,0x5);}}function o(_0xa95fb2,_0x3eebf5,_0x3edc69){const t=_0xa95fb2['t'];switch(_0x3eebf5){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',_0x3edc69);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3edc69);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3edc69);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3edc69);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3edc69);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',_0x3edc69);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3edc69);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',_0x3edc69);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3edc69);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3edc69);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3edc69);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3edc69);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3edc69);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3edc69);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3edc69);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3edc69);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3edc69);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3edc69);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3edc69);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3edc69);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3edc69);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3edc69);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3edc69);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'},_0x3edc69);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3edc69);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3edc69);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3edc69);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3edc69);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3edc69);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'},_0x3edc69);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3edc69);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3edc69);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3edc69);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3edc69);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'},_0x3edc69);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3edc69);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'},_0x3edc69);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'},_0x3edc69);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3edc69);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'},_0x3edc69);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3edc69);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'},_0x3edc69);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3edc69);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3edc69);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'},_0x3edc69);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'},_0x3edc69);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'},_0x3edc69);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3edc69);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'},_0x3edc69);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'},_0x3edc69);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'},_0x3edc69);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3eebf5;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5afcab,_0x106424){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5afcab,this['_locale']=_0x106424;}['getDescriptions'](_0x2cdc21){const _0x391a35=[],_0xbc3d5=new Set(),_0xe72481=new Set();for(let _0xdfddb=0x0;_0xdfddb<_0x2cdc21['length'];_0xdfddb++){const _0x1db848=_0x2cdc21[_0xdfddb];if(!_0x1db848['isInContent'])continue;const _0x3cbe8a=this['_handleCustomCallbackDescription'](_0x1db848);if(_0x3cbe8a){if(null!=_0x1db848['subType']){if(_0xbc3d5['has'](_0x1db848['subType']))continue;_0xbc3d5['add'](_0x1db848['subType']);}_0x391a35['push'](_0x3cbe8a);}else{if('attribute'!=_0x1db848['type'])'insertion'!=_0x1db848['type']&&'deletion'!=_0x1db848['type']||this['_handleInsertRemoveSuggestionDescription'](_0x391a35,_0x1db848,_0x2cdc21[_0xdfddb+0x1]);else{const _0x46773b=_0x1db848['data']['key'];if(_0xe72481['has'](_0x46773b))continue;_0xe72481['add'](_0x1db848['data']['key']),_0x46773b==m?this['_handleRenameSuggestionDescription'](_0x391a35,_0x1db848):this['_handleAttributeSuggestionDescription'](_0x391a35,_0x1db848);}}}return this['_resolveDescriptionItems'](_0x391a35);}['registerDescriptionCallback'](_0x6c4f58){this['_customCallbacks']['push'](_0x6c4f58);}['registerElementLabel'](_0x4bf863,_0x4ec571,_0x3f320b=_0x3a663c['normal']){'function'==typeof _0x4bf863?_0x4a9a41(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4bf863,'label':_0x4ec571,'priority':_0x3f320b}):this['_itemLabels']['set'](_0x4bf863,_0x4ec571);}['registerAttributeLabel'](_0x17d87a,_0x5b20f4){this['_attributeLabels']['set'](_0x17d87a,_0x5b20f4);}['getItemLabel'](_0x73758a,_0x28a517=0x1){let _0x315bcb;for(const _0x1ddb20 of this['_itemLabelsCallbacks'])if(_0x1ddb20['matchingCallback'](_0x73758a)){_0x315bcb=_0x1ddb20['label'];break;}return _0x315bcb||(_0x315bcb=this['_itemLabels']['get'](_0x73758a['name'])),_0x315bcb?_0x315bcb(_0x28a517):0x1!==_0x28a517?_0x28a517+'\x20'+_0x73758a['name']+'s':''+_0x73758a['name'];}['_addDescriptionItems'](_0x1f8e90,_0x5ecd6d){const _0xbd77f2=_0x5ecd6d['getFirstRange']()['getWalker'](),_0x31bac3='insertion'==_0x5ecd6d['type']?'add':'remove';for(const _0xd72434 of _0xbd77f2){const _0x5a89d7=_0xd72434['item'],_0x443e7b=_0x1f8e90[_0x1f8e90['length']-0x1];if(_0x5a89d7['is']('$textProxy'))_0x443e7b&&_0x443e7b['type']['indexOf']('Container')>-0x1&&_0x1f8e90['pop'](),_0x443e7b&&'text'==_0x443e7b['type']?_0x443e7b[_0x31bac3]+=_0x5a89d7['data']:_0x1f8e90['push']({'type':'text','add':'add'==_0x31bac3?_0x5a89d7['data']:'','remove':'remove'==_0x31bac3?_0x5a89d7['data']:''});else{if(this['_schema']['isObject'](_0x5a89d7)){const _0xa451a4=_0x5a89d7;if(_0x443e7b&&_0x443e7b['type']['indexOf']('Container')>-0x1&&_0x1f8e90['pop'](),'elementEnd'==_0xd72434['type'])continue;_0x443e7b&&_0x443e7b['type']==_0x31bac3+'Object'&&_0x443e7b['element']['name']==_0xa451a4['name']?_0x443e7b['quantity']++:_0x1f8e90['push']({'type':_0x31bac3+'Object','element':_0xa451a4,'quantity':0x1}),_0xbd77f2['skip'](_0x2ac845=>!('elementEnd'==_0x2ac845['type']&&_0x2ac845['item']==_0x5a89d7));}else{if(this['_schema']['checkChild'](_0x5a89d7,'$text')||_0x5a89d7['is']('element','softBreak')){const _0x1328fa=_0x5a89d7;if('add'==_0x31bac3&&'elementStart'==_0xd72434['type']||'remove'==_0x31bac3&&'elementEnd'==_0xd72434['type'])continue;if(_0x443e7b&&-0x1==_0x443e7b['type']['indexOf']('Container')){'text'==_0x443e7b['type']&&(_0x443e7b[_0x31bac3]+='\x0a');continue;}let _0x54f5bd;if(_0x54f5bd='add'==_0x31bac3?_0x1328fa['nextSibling']&&!this['_schema']['isObject'](_0x1328fa['nextSibling'])?_0x1328fa['nextSibling']:null:_0x1328fa['previousSibling']&&!this['_schema']['isObject'](_0x1328fa['previousSibling'])?_0x1328fa['previousSibling']:null,_0x1328fa['isEmpty']||_0x54f5bd&&_0x54f5bd['isEmpty']){const _0x3fe1d5=_0x54f5bd&&_0x54f5bd['isEmpty']?_0x54f5bd:_0x1328fa;_0x443e7b&&_0x443e7b['type']==_0x31bac3+'EmptyContainer'&&_0x443e7b['element']['name']==_0x3fe1d5['name']?_0x443e7b['quantity']++:_0x1f8e90['push']({'type':_0x31bac3+'EmptyContainer','element':_0x3fe1d5,'quantity':0x1});}else _0x1f8e90['push']({'type':_0x31bac3+'Container','element':_0x1328fa});}}}}}['_resolveDescriptionItems'](_0x12a3da){const _0x562e30=this['_locale'],_0x46c648=[],_0x511031=[],_0x3c1d4f=[];for(const _0x20bf27 of _0x12a3da)switch(_0x20bf27['type']){case'text':if(_0x20bf27['add']=_0x20bf27['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x20bf27['remove']=_0x20bf27['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x20bf27['add']&&''!=_0x20bf27['remove']){_0x46c648['push']({'type':'replace','content':o(_0x562e30,'REPLACE_TEXT',['\x22'+_0x20bf27['remove']+'\x22','\x22'+_0x20bf27['add']+'\x22'])});continue;}if(null!=_0x20bf27['add']['match'](/^ +$/)){_0x46c648['push']({'type':'insertion','content':o(_0x562e30,'*Insert:*\x20%0',o(_0x562e30,'ELEMENT_SPACE',_0x20bf27['add']['length']))});continue;}if(null!=_0x20bf27['remove']['match'](/^ +$/)){_0x46c648['push']({'type':'deletion','content':o(_0x562e30,'*Remove:*\x20%0',o(_0x562e30,'ELEMENT_SPACE',_0x20bf27['remove']['length']))});continue;}if(''!=_0x20bf27['add']){_0x46c648['push']({'type':'insertion','content':o(_0x562e30,'*Insert:*\x20%0','\x22'+_0x20bf27['add']+'\x22')});continue;}_0x46c648['push']({'type':'deletion','content':o(_0x562e30,'*Remove:*\x20%0','\x22'+_0x20bf27['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x46c648['push']({'type':'insertion','content':o(_0x562e30,'*Insert:*\x20%0',this['getItemLabel'](_0x20bf27['element'],_0x20bf27['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x46c648['push']({'type':'deletion','content':o(_0x562e30,'*Remove:*\x20%0',this['getItemLabel'](_0x20bf27['element'],_0x20bf27['quantity']))});continue;case'addContainer':_0x46c648['push']({'type':'insertion','content':o(_0x562e30,'*Split:*\x20%0',this['getItemLabel'](_0x20bf27['element'],_0x20bf27['quantity']))});continue;case'removeContainer':_0x46c648['push']({'type':'deletion','content':o(_0x562e30,'*Merge:*\x20%0',this['getItemLabel'](_0x20bf27['element'],_0x20bf27['quantity']))});continue;case'addFormat':_0x511031['push'](_0x20bf27['key']);continue;case'removeFormat':_0x3c1d4f['push'](_0x20bf27['key']);continue;default:_0x46c648['push'](_0x20bf27);}if(_0x511031['length']){const _0x2ca569=_0x511031['map'](_0x1204a4=>this['_attributeLabels']['has'](_0x1204a4)?this['_attributeLabels']['get'](_0x1204a4):_0x1204a4)['join'](',\x20');_0x46c648['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ca569)});}if(_0x3c1d4f['length']){const _0x2de9e3=_0x3c1d4f['map'](_0x222683=>this['_attributeLabels']['has'](_0x222683)?this['_attributeLabels']['get'](_0x222683):_0x222683)['join'](',\x20');_0x46c648['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2de9e3)});}return _0x46c648;}['_handleCustomCallbackDescription'](_0x96ab97){for(const _0x344617 of this['_customCallbacks']){const _0x40fb1a=_0x344617(_0x96ab97);if(_0x40fb1a&&'type'in _0x40fb1a)return _0x40fb1a;}}['_handleAttributeSuggestionDescription'](_0x139dee,_0x68103e){const _0x2da2ca=_0x68103e['data'],_0x33edbf=void 0x0===_0x2da2ca['newValue']?'removeFormat':'addFormat';_0x139dee['push']({'type':_0x33edbf,'key':_0x2da2ca['key']});}['_handleRenameSuggestionDescription'](_0x8b4232,_0x51c48d){_0x8b4232['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x51c48d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4c1faa,_0x228821,_0xc234c4){if(this['_addDescriptionItems'](_0x4c1faa,_0x228821),_0xc234c4&&_0xc234c4['getFirstRange']()&&!_0x228821['getFirstRange']()['end']['isEqual'](_0xc234c4['getFirstRange']()['start'])){const _0x23adad=_0x4c1faa[_0x4c1faa['length']-0x1],_0x152dc0='insertion'==_0x228821['type']?'add':'remove';_0x23adad&&'text'==_0x23adad['type']&&(_0x23adad[_0x152dc0]+='\x0a');}}}class V extends _0x38e08d{['afterInit'](){const _0x47196a=this['editor'],_0x56842a=_0x47196a['plugins']['get']('TrackChangesEditing');_0x47196a['commands']['get']('showAIAssistant')&&_0x56842a['enableCommand']('showAIAssistant');}}class U extends _0x38e08d{['afterInit'](){const _0x4be523=this['editor'],_0x147a99=_0x4be523['locale'];if(!_0x4be523['plugins']['has']('AlignmentEditing'))return;const _0x48d4d8=_0x4be523['plugins']['get']('TrackChangesEditing');_0x48d4d8['enableDefaultAttributesIntegration']('alignment'),_0x48d4d8['registerBlockAttribute']('alignment'),_0x48d4d8['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x147a99,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47d9e0=this['editor'],_0x33b2d9=_0x47d9e0['locale'];_0x47d9e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11162a=>{if('formatBlock'!=_0x11162a['type'])return;const {data:_0x276181}=_0x11162a;if(_0x276181&&'alignment'==_0x276181['commandName']){const _0x3cb727=_0x276181['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x33b2d9,'*Format:*\x20%0',function(_0x4577d3){switch(_0x4577d3){case'left':return o(_0x33b2d9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x33b2d9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x33b2d9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x33b2d9,'FORMAT_JUSTIFY_TEXT');}}(_0x3cb727))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x38e08d{['afterInit'](){const _0x3262d8=this['editor'],_0xbe5def=_0x3262d8['plugins']['get']('TrackChangesEditing'),_0x47b389=_0x3262d8['locale'];for(const _0x3db530 of ti){if(!_0x3262d8['plugins']['has'](_0x3db530))continue;const _0x11c624=_0x3db530['slice'](0x0,-0x7)['toLowerCase'](),_0x4f623c='FORMAT_'+_0x11c624['toUpperCase']();_0xbe5def['enableDefaultAttributesIntegration'](_0x11c624),_0xbe5def['registerInlineAttribute'](_0x11c624),_0xbe5def['descriptionFactory']['registerAttributeLabel'](_0x11c624,o(_0x47b389,_0x4f623c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeb630f=this['editor'],_0x1d8b81=_0xeb630f['locale'],_0x4c2428=_0xeb630f['plugins']['get']('TrackChangesEditing');function _0x309dfd(_0x2c9081,_0x408afc){_0x4c2428['descriptionFactory']['registerDescriptionCallback'](_0x867752=>{if('formatInline'!=_0x867752['type'])return;const {data:_0xbe9307}=_0x867752;return _0xbe9307&&_0xbe9307['commandName']===_0x2c9081?_0xbe9307['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d8b81,'*Format:*\x20%0',_0x408afc)}:{'type':'format','content':o(_0x1d8b81,'*Remove\x20format:*\x20%0',_0x408afc)}:void 0x0;});}_0x309dfd('bold',o(_0x1d8b81,'FORMAT_BOLD')),_0x309dfd('italic',o(_0x1d8b81,'FORMAT_ITALIC')),_0x309dfd('underline',o(_0x1d8b81,'FORMAT_UNDERLINE')),_0x309dfd('code',o(_0x1d8b81,'FORMAT_CODE')),_0x309dfd('strikethrough',o(_0x1d8b81,'FORMAT_STRIKETHROUGH')),_0x309dfd('subscript',o(_0x1d8b81,'FORMAT_SUBSCRIPT')),_0x309dfd('superscript',o(_0x1d8b81,'FORMAT_SUPERSCRIPT'));}}class F extends _0x38e08d{['afterInit'](){const _0x5c3111=this['editor'],_0x50170e=_0x5c3111['locale'];if(!_0x5c3111['plugins']['has']('BlockQuoteEditing'))return;const _0x908964=_0x5c3111['plugins']['get']('TrackChangesEditing'),_0x515280=this['editor']['commands']['get']('blockQuote');_0x908964['enableCommand']('blockQuote',(_0x393f5c,_0x38aa6e={})=>{const _0x53cc24=this['editor']['model']['document']['selection'],_0x12f6d5=_0x38aa6e&&void 0x0!==_0x38aa6e['forceValue']?_0x38aa6e['forceValue']:!_0x515280['value'];let _0x50d802=[];if(_0x12f6d5){const _0x33795c=Array['from'](_0x53cc24['getSelectedBlocks']())['filter'](_0x53ccf9=>oo(_0x53ccf9)||function(_0x2742e9,_0x58e766){const _0x2411ee=_0x58e766['checkChild'](_0x2742e9['parent'],'blockQuote'),_0x3982a6=_0x58e766['checkChild'](['$root','blockQuote'],_0x2742e9);return _0x2411ee&&_0x3982a6;}(_0x53ccf9,this['editor']['model']['schema']));_0x50d802=to(_0x33795c,_0x5c3111['model']);}else{const _0xa34038=Array['from'](_0x53cc24['getSelectedBlocks']())['filter'](_0x5550b3=>oo(_0x5550b3));_0x50d802=to(_0xa34038,_0x5c3111['model']);}_0x5c3111['model']['change'](()=>{for(const _0x466157 of _0x50d802)_0x908964['markBlockFormat'](_0x466157,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x12f6d5}]});});}),_0x908964['descriptionFactory']['registerDescriptionCallback'](_0x19afd7=>{const {data:_0x43cef9}=_0x19afd7;if(_0x43cef9&&'blockQuote'==_0x43cef9['commandName']){const _0x203ad0=o(_0x50170e,'ELEMENT_BLOCK_QUOTE');return _0x43cef9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50170e,'*Set\x20format:*\x20%0',_0x203ad0)}:{'type':'format','content':o(_0x50170e,'*Remove\x20format:*\x20%0',_0x203ad0)};}});}}function oo(_0x265aba){return'blockQuote'==_0x265aba['parent']['name'];}class L extends _0x38e08d{['afterInit'](){const _0x4c25be=this['editor'];_0x4c25be['plugins']['has']('CaseChange')&&(_0x4c25be['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4c25be['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4c25be['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x38e08d{['afterInit'](){const _0x137896=this['editor'];_0x137896['commands']['get']('ckbox')&&_0x137896['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x38e08d{['afterInit'](){const _0x4c4607=this['editor'];if(!_0x4c4607['plugins']['has']('CodeBlock'))return;const _0xd2c0e2=_0x4c4607['plugins']['get']('TrackChangesEditing'),_0x885ba9=_0x4c4607['locale'],_0x17c02a=_0x4c4607['config']['get']('codeBlock')['languages'],_0x5b3ad1=_0x4c4607['commands']['get']('codeBlock');_0xd2c0e2['enableCommand']('indentCodeBlock'),_0xd2c0e2['enableCommand']('outdentCodeBlock'),_0xd2c0e2['enableCommand']('codeBlock',(_0x13ceff,_0x580f61={})=>{const _0x3777ee=_0x4c4607['model'],_0x1ec8b6=_0x4c4607['model']['document']['selection'],_0x3211f6=_0x580f61&&void 0x0!==_0x580f61['forceValue']?_0x580f61['forceValue']:!_0x5b3ad1['value'];let _0x5b094b;_0x580f61['language']||(_0x580f61['language']=_0x17c02a[0x0]['language']),_0x5b094b=_0x3211f6?Array['from'](_0x1ec8b6['getSelectedBlocks']())['filter'](_0x232407=>eo(_0x232407)||function(_0xc22946,_0x1f407a){if(_0xc22946['is']('rootElement')||_0x1f407a['isLimit'](_0xc22946))return!0x1;return _0x1f407a['checkChild'](_0xc22946['parent'],'codeBlock');}(_0x232407,_0x3777ee['schema'])):Array['from'](_0x1ec8b6['getSelectedBlocks']())['filter'](_0x44f938=>eo(_0x44f938));const _0x18420e=to(_0x5b094b,_0x3777ee);_0x3777ee['change'](()=>{for(const _0x3e31f2 of _0x18420e)_0xd2c0e2['markBlockFormat'](_0x3e31f2,{'commandName':'codeBlock','commandParams':[{..._0x580f61,'forceValue':_0x3211f6}],'formatGroupId':'blockName'});});}),(_0xd2c0e2['descriptionFactory']['registerElementLabel']('codeBlock',_0x5c2a70=>o(_0x885ba9,'ELEMENT_CODE_BLOCK',_0x5c2a70)),_0xd2c0e2['descriptionFactory']['registerDescriptionCallback'](_0x424d3c=>{if('formatBlock'!=_0x424d3c['type'])return;const _0x4d2f75=_0x885ba9['t'],{data:_0x4c1204}=_0x424d3c;if(!_0x4c1204||'codeBlock'!=_0x4c1204['commandName'])return;const _0x1d59e0=_0x4c1204['commandParams'][0x0]['language'],_0xdfa217=_0x4d2f75(_0x17c02a['find'](_0x47955d=>_0x47955d['language']===_0x1d59e0)['label'])['toLowerCase']();return _0x4c1204['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x885ba9,'*Set\x20format:*\x20%0',o(_0x885ba9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xdfa217+')')}:{'type':'format','content':o(_0x885ba9,'*Remove\x20format:*\x20%0',o(_0x885ba9,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xae5b5d){return'codeBlock'==_0xae5b5d['name'];}class q extends _0x38e08d{['afterInit'](){const _0x6dd6e=this['editor'];if(!_0x6dd6e['plugins']['has']('CommentsEditing'))return;_0x6dd6e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3f2346,_0x59087d,_0x56979e){const _0x1aac62=[];for(const _0x3b8869 of _0x59087d['getItems']())_0x3b8869['hasAttribute'](_0x3f2346)&&_0x1aac62['push'](_0x56979e['createRangeOn'](_0x3b8869));return _0x1aac62;}function _e(_0x28dce7,_0x5e8966,{showActiveMarker:_0xffbae7=!0x0}={}){const _0x377a80=_0x28dce7['plugins']['get']('TrackChangesEditing');return(_0x26b95b,_0x7abb22,_0x3359ec)=>{if(!_0x3359ec['consumable']['test'](_0x7abb22['markerRange'],_0x26b95b['name']))return;const _0x51fff2=_0x7abb22['markerRange']['getWalker'](),_0x376fa4=_0x7abb22['markerRange']['start'],_0x4fd816=_0x28dce7['model']['schema'];let _0x570a8=null,_0x22c0b5=null,_0x152089=!0x1,_0x27ea9c=!0x1;for(const _0x2506aa of _0x51fff2){const _0x5e2059=_0x2506aa['item'];_0x152089=_0x152089||_0x4fd816['isContent'](_0x5e2059);const _0x47e86c=_0x3359ec['mapper']['toViewElement'](_0x5e2059);if(_0x47e86c&&_0x47e86c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2506aa['type']&&(_0x4fd816['isBlock'](_0x5e2059)&&!_0x4fd816['isLimit'](_0x5e2059)&&(_0x5e2059['nextSibling']||_0x376fa4['isAtEnd']?_0x570a8&&_0x570a8['parent']==_0x5e2059||(_0x570a8=_0x5e2059,_0x51bfda(_0x2506aa['previousPosition']),_0x27ea9c=!0x0):_0x22c0b5=_0x22c0b5||_0x2506aa['previousPosition']));}function _0x51bfda(_0x43dbf1){const {authorId:_0x3b4517}=_0x377a80['_splitMarkerName'](_0x7abb22['markerName']),_0x2295f4=_0x3359ec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e8966,'data-author-id':_0x3b4517}),_0xd877b5=_0x3359ec['mapper']['toViewPosition'](_0x43dbf1);_0xffbae7&&_0x377a80['activeMarkers']['includes'](_0x7abb22['markerName'])&&_0x3359ec['writer']['addClass']('ck-suggestion-marker--active',_0x2295f4),_0x3359ec['writer']['insert'](_0xd877b5,_0x2295f4),_0x3359ec['mapper']['bindElementToMarker'](_0x2295f4,_0x7abb22['markerName']);}_0x152089||_0x27ea9c||!_0x22c0b5||_0x51bfda(_0x22c0b5);};}class z extends _0x38e08d{static get['requires'](){return[_0x30ee08];}['init'](){const _0x2e9a76=this['editor'],_0x37ea0e=_0x2e9a76['plugins']['get']('TrackChangesEditing');_0x37ea0e['enableCommand']('delete');const _0x1fc289=_0x2e9a76['commands']['get']('deleteForward');_0x37ea0e['enableCommand']('deleteForward',(_0x29d196,_0x5cb4c0={})=>{const _0x9c739d=_0x2e9a76['model']['createSelection'](_0x2e9a76['model']['document']['selection']);_0x9c739d['isCollapsed']&&_0x2e9a76['model']['modifySelection'](_0x9c739d,{'direction':'forward','unit':_0x5cb4c0['unit']});const _0x2d318f=_0x9c739d['getFirstRange'](),_0x4b70e5=_0xe83a0b['fromRange'](_0x2d318f);let _0x45593c;_0x29d196(_0x5cb4c0),_0x45593c='$graveyard'==_0x4b70e5['root']['rootName']?_0x2e9a76['model']['createRange'](_0x2d318f['start']):_0x2e9a76['model']['createRange'](_0x4b70e5['start'],_0x4b70e5['end']),_0x4b70e5['detach'](),_0x2e9a76['model']['enqueueChange'](_0x1fc289['buffer']['batch'],_0x4152d5=>{_0x1fc289['buffer']['lock'](),_0x4152d5['setSelection'](_0x4152d5['createRange'](_0x45593c['end'])),_0x1fc289['buffer']['unlock']();});}),_0x2e9a76['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2e9a76,'merge'),{'priority':'high'}),_0x2e9a76['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e2956,_0x3da4aa,_0x32fc0e)=>{_0x32fc0e['options']['showSuggestionHighlights']&&_e(_0x2e9a76,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4e2956,_0x3da4aa,_0x32fc0e);},{'priority':'high'}),_0x2e9a76['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1df3ba,_0x57e4a1,_0x1c749c)=>{const _0x4ef2b8=_0x1c749c['mapper']['markerNameToElements'](_0x57e4a1['markerName']);if(_0x4ef2b8){for(const _0x23074e of _0x4ef2b8)_0x23074e['is']('uiElement')&&(_0x1c749c['mapper']['unbindElementFromMarkerName'](_0x23074e,_0x57e4a1['markerName']),_0x1c749c['writer']['remove'](_0x23074e));}},{'priority':'high'});}}class K extends _0x38e08d{['afterInit'](){const _0x1c4e9c=this['editor'];if(!_0x1c4e9c['plugins']['has']('ListEditing'))return;const _0x46fd93=_0x1c4e9c['locale'],_0x3b2479=_0x1c4e9c['plugins']['get']('TrackChangesEditing'),_0xdcc877=_0x1c4e9c['plugins']['has']('TodoListEditing'),_0x1ee574=!!_0x1c4e9c['config']['get']('list.multiBlock');function _0xd19246(_0x59a518){return{'type':'format','content':''+o(_0x46fd93,'*Set\x20format:*\x20%0',_0x59a518)};}function _0x2b8b55(_0x141939){return{'type':'format','content':''+o(_0x46fd93,'*Remove\x20format:*\x20%0',_0x141939)};}_0x3b2479['enableDefaultAttributesIntegration']('numberedList'),_0x3b2479['enableDefaultAttributesIntegration']('bulletedList'),_0x3b2479['enableDefaultAttributesIntegration']('customNumberedList'),_0x3b2479['enableDefaultAttributesIntegration']('customBulletedList'),_0x3b2479['enableDefaultAttributesIntegration']('indentList'),_0x3b2479['enableDefaultAttributesIntegration']('outdentList'),_0x3b2479['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3b2479['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3b2479['registerBlockAttribute']('listItemId'),_0x3b2479['registerBlockAttribute']('listType'),_0x3b2479['registerBlockAttribute']('listIndent'),_0x1ee574&&(_0x3b2479['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3b2479['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xdcc877&&(_0x3b2479['enableDefaultAttributesIntegration']('todoList'),_0x3b2479['enableDefaultAttributesIntegration']('checkTodoList'),_0x3b2479['registerBlockAttribute']('todoListChecked'),_0x3b2479['descriptionFactory']['registerDescriptionCallback'](_0x18aff6=>{const {data:_0x599b7c}=_0x18aff6;if(_0x599b7c&&'todoListChecked'==_0x599b7c['key'])return{'type':'format','content':_0x599b7c['newValue']?o(_0x46fd93,'*Check\x20item*'):o(_0x46fd93,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2e63ff=>{if(_0x2e63ff['batch']['isUndo'])return!0x1;let _0x2a802d=!0x1;const _0x13578d=_0x3b2479['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xefe5d9=>'todoListChecked'===_0x3b2479['_getAttributeKey'](_0xefe5d9));for(const _0x580398 of _0x13578d){'todo'!=_0x580398['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3b2479['_findSuggestions'](_0x580398['getFirstRange'](),'attribute')['find'](_0x15a6fa=>'listType'===_0x3b2479['_getAttributeKey'](_0x15a6fa['suggestion']))||(_0x2e63ff['removeMarker'](_0x580398['getFirstMarker']()),_0x2a802d=!0x0));}return _0x2a802d;})),_0x3b2479['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x46fd93,'FORMAT_INDENT'));const _0x2c41ac={'type':'format','content':''};_0x3b2479['descriptionFactory']['registerDescriptionCallback'](_0x172672=>{const {data:_0xb66d45}=_0x172672;if(!_0xb66d45||'listType'!=_0xb66d45['key'])return;let _0x84e8f6=_0x172672['head'];for(;_0x84e8f6;){if(_0x84e8f6['data']&&(('listStyle'==_0x84e8f6['data']['key']||'listMarkerStyle'==_0x84e8f6['data']['key'])&&(_0x84e8f6['data']['newValue']&&'default'!=_0x84e8f6['data']['newValue']||'default'!=_0x84e8f6['data']['oldValue']&&!_0xb66d45['newValue'])||!_0x1ee574&&_0x84e8f6['data']['key']==m))return _0x2c41ac;_0x84e8f6=_0x84e8f6['next'];}if(null==_0xb66d45['newValue'])switch(_0xb66d45['oldValue']){case'bulleted':return _0x2b8b55(o(_0x46fd93,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b8b55(o(_0x46fd93,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b8b55(o(_0x46fd93,'ELEMENT_TODO_LIST'));}switch(_0xb66d45['newValue']){case'bulleted':return _0xd19246(o(_0x46fd93,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd19246(o(_0x46fd93,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd19246(o(_0x46fd93,'ELEMENT_TODO_LIST'));}}),_0x3b2479['descriptionFactory']['registerDescriptionCallback'](_0x4844a2=>{const {data:_0x36d307}=_0x4844a2;if(_0x36d307&&'listIndent'==_0x36d307['key'])return null==_0x36d307['newValue']||null==_0x36d307['oldValue']&&0x0==_0x36d307['newValue']?_0x2c41ac:void 0x0;}),_0x3b2479['descriptionFactory']['registerDescriptionCallback'](_0x4c7b14=>{if('attribute'!=_0x4c7b14['type'])return;const {data:_0xfc27e3}=_0x4c7b14;if(!_0xfc27e3||'listItemId'!=_0xfc27e3['key'])return;const _0x197508=Ee(_0x4c7b14);return'newValue'==_0x197508?{'type':'format','content':o(_0x46fd93,'*Merge:*\x20list\x20item')}:'oldValue'==_0x197508?{'type':'format','content':o(_0x46fd93,'*Split:*\x20list\x20item')}:_0x2c41ac;}),_0x1c4e9c['model']['document']['registerPostFixer'](_0xc79e0a=>this['listItemIdFixer'](_0xc79e0a)),_0x1c4e9c['model']['document']['registerPostFixer'](_0x253d75=>this['noTrackChangesFixer'](_0x253d75)),_0x1c4e9c['model']['document']['on']('change:data',(_0x4e9322,_0x1fec07)=>{if(_0x1fec07['isUndo']||!_0x1fec07['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4fde11){if(_0x4fde11['batch']['isUndo']||!_0x4fde11['batch']['isLocal'])return!0x1;let _0x14c439=!0x1;const _0x1573c6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d084d=>_0x3d084d['data']&&'listItemId'==_0x3d084d['data']['key'])['filter'](_0x20a669=>_0x20a669['data']['newValue']&&_0x20a669['data']['oldValue']);for(const _0x25d955 of _0x1573c6)Ee(_0x25d955)||(_0x4fde11['removeMarker'](_0x25d955['getFirstMarker']()),_0x14c439=!0x0);return _0x14c439;}['noTrackChangesFixer'](_0x22b153){if(_0x22b153['batch']['isUndo']||!_0x22b153['batch']['isLocal'])return!0x1;const _0x48e487=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x48e487['trackChangesCommand']['value'])return!0x1;let _0x221dfc=!0x1;const _0x37de22=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x35b12b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x33a35d=>'attribute'==_0x33a35d['type'])['filter'](_0x3d29e9=>_0x37de22['includes'](_0x3d29e9['attributeKey']));if(0x0==_0x35b12b['length'])return _0x221dfc;for(const _0x50a163 of _0x35b12b){const _0x3a398d=_0x48e487['_findSuggestions'](_0x50a163['range'],'attribute')['filter'](_0x3f181d=>!_0x3f181d['meta']['isNextTo'])['map'](_0x140bd4=>_0x140bd4['suggestion'])['filter'](_0x3c679e=>{const _0x3d8472=_0x48e487['_getAttributeKey'](_0x3c679e);return _0x37de22['includes'](_0x3d8472);});if(_0x3a398d['length']){for(const _0x43e5dc of _0x3a398d)_0x22b153['removeMarker'](_0x43e5dc['getFirstMarker']());_0x221dfc=!0x0;}}return _0x221dfc;}['assureChains'](){const _0x2d0b1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16daec=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x15dc48;const _0x3eb613=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5c83a4=>{if(_0x5c83a4['data']['oldRange']||!_0x5c83a4['data']['newRange'])return null;if(!_0x5c83a4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x192d1c}=_0x2d0b1c['_splitMarkerName'](_0x5c83a4['name']);if(!_0x2d0b1c['hasSuggestion'](_0x192d1c))return null;const _0x44fca8=_0x2d0b1c['getSuggestion'](_0x192d1c);return _0x16daec['includes'](_0x44fca8['data']['key']);})['map'](_0x22d792=>{const {id:_0x4d4945}=_0x2d0b1c['_splitMarkerName'](_0x22d792['name']),_0x550d3e=_0x2d0b1c['getSuggestion'](_0x4d4945);return _0x15dc48=_0x550d3e['attributes']['groupId'],_0x550d3e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3eb613['size'])return;const _0x24b4b6=_0x2d0b1c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x195c12=>'attribute'==_0x195c12['type']&&_0x195c12['data']&&_0x16daec['includes'](_0x195c12['data']['key'])&&_0x195c12['attributes']['groupId']!=_0x15dc48)['map'](_0x49098e=>({'listItem':_0x49098e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x49098e['attributes']['groupId']})),_0x36f8f9=new Set();for(const {groupId:_0x3adaab,listItem:_0x2f220b}of _0x24b4b6)_0x3eb613['has'](_0x2f220b)&&_0x36f8f9['add'](_0x3adaab);for(const _0x2bee29 of _0x2d0b1c['getSuggestions']())_0x36f8f9['has'](_0x2bee29['attributes']['groupId'])&&_0x2bee29['setAttribute']('groupId',_0x15dc48);}['_supportLegacySuggestions'](){const _0x54554f=this['editor'],_0x49919b=_0x54554f['locale'],_0x59d68a=_0x54554f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x59d68a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x33b390,_0x37ad1c){const _0x11cf14=[];for(let _0x53666f of _0x33b390)_0x53666f['start']['nodeAfter']===_0x53666f['end']['parent']&&(_0x53666f=_0x54554f['model']['createRange'](_0x54554f['model']['createPositionAt'](_0x53666f['start']['nodeAfter'],0x0))),_0x11cf14['push'](_0x53666f);_0x54554f['model']['change'](_0x1ca6d8=>{const _0xe5bcda=_0x54554f['model']['document']['selection'],_0xa0cea3=Array['from'](_0xe5bcda['getRanges']())['map'](_0x4d23ae=>_0xe83a0b['fromRange'](_0x4d23ae));_0x1ca6d8['setSelection'](_0x11cf14),_0x54554f['commands']['get'](_0x37ad1c['commandName'])['refresh'](),_0x37ad1c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x54554f['execute'](_0x37ad1c['commandName'],..._0x37ad1c['commandParams']),_0x1ca6d8['setSelection'](_0xa0cea3);for(const _0x44d56a of _0xa0cea3)_0x44d56a['detach']();});}),_0x59d68a['descriptionFactory']['registerElementLabel'](function(_0x1a74fb){const _0x1ade3f=!_0x54554f['model']['schema']['isObject'](_0x1a74fb),_0x500a78=_0x1a74fb['previousSibling'],_0x4417e9=_0x1a74fb['nextSibling'],_0x37e1dd=_0x1a74fb['getAttribute']('listItemId'),_0x26cf2d=!_0x500a78||_0x500a78['getAttribute']('listItemId')!==_0x37e1dd,_0x482653=!_0x4417e9||_0x4417e9['getAttribute']('listItemId')!==_0x37e1dd;return _0x1ade3f&&Boolean(_0x37e1dd)&&_0x26cf2d&&_0x482653;},_0xdef43d=>o(_0x49919b,'ELEMENT_LIST_ITEM',_0xdef43d));}['_registerLegacyDescription'](){const _0x368737=this['editor'],_0x2e1f58=_0x368737['locale'];function _0x572f96(_0x23a554){const _0x1c1b37=_0x368737['commands']['get']('bulletedList')['value'],_0x21a346=_0x368737['commands']['get']('numberedList')['value'];return'numberedList'===_0x23a554?_0x1c1b37:_0x21a346;}_0x368737['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2438ba){if('formatBlock'!=_0x2438ba['type'])return;const {data:_0xdce403}=_0x2438ba;if(!_0xdce403)return;let _0x3ecd55,_0x305a2d,_0xce04ca,_0x414d81;switch(_0xdce403['commandName']){case'bulletedList':_0xce04ca=_0xdce403['commandParams'][0x0]['forceValue'],_0x414d81=_0x572f96(_0xdce403['commandName']),_0x3ecd55=_0xce04ca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x414d81&&_0x368737['config']['get']('list.multiBlock')||(_0x3ecd55='*Change\x20to:*\x20%0'),_0x305a2d={'type':'format','content':o(_0x2e1f58,_0x3ecd55,o(_0x2e1f58,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xce04ca=_0xdce403['commandParams'][0x0]['forceValue'],_0x414d81=_0x572f96(_0xdce403['commandName']),_0x3ecd55=_0xce04ca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x414d81&&_0x368737['config']['get']('list.multiBlock')||(_0x3ecd55='*Change\x20to:*\x20%0'),_0x305a2d={'type':'format','content':o(_0x2e1f58,_0x3ecd55,o(_0x2e1f58,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3ecd55='*Indent:*\x20%0',_0x305a2d={'type':'format','content':o(_0x2e1f58,_0x3ecd55,o(_0x2e1f58,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3ecd55=function(_0x3f382d){const _0x211852=_0x3f382d['getFirstRange']();let _0x1b436a=_0x211852['start']['nodeAfter'];for(;_0x1b436a&&_0x211852['containsItem'](_0x1b436a);){if(_0x1b436a['getAttribute']('listIndent')>0x0)return!0x1;_0x1b436a=_0x1b436a['nextSibling'];}return!0x0;}(_0x2438ba)?o(_0x2e1f58,'*Format:*\x20remove\x20from\x20%0',o(_0x2e1f58,function(_0xe98aa8){return'ELEMENT_'+_0xe98aa8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2438ba))):o(_0x2e1f58,'*Outdent:*\x20%0',o(_0x2e1f58,'ELEMENT_LIST_ITEM')),_0x305a2d={'type':'format','content':_0x3ecd55};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xdce403['multipleBlocks']&&(_0x3ecd55='*Merge:*\x20%0',_0x305a2d={'type':'deletion','content':o(_0x2e1f58,_0x3ecd55,o(_0x2e1f58,'ELEMENT_LIST_ITEM'))});}return _0x305a2d;});}}function Ee(_0x22cc42){let _0x3e09b5=_0x22cc42['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3e09b5;){const _0x4a4078=_0x3e09b5['getAttribute']('listItemId');if(!_0x4a4078)return!0x1;if(_0x4a4078==_0x22cc42['data']['newValue'])return'newValue';if(_0x4a4078==_0x22cc42['data']['oldValue'])return'oldValue';_0x3e09b5=_0x3e09b5['previousSibling'];}return!0x1;}class pe extends _0x38e08d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x6dedb7=this['editor']['config']['get']('list.properties'),_0x9f777d=this['editor']['plugins']['get']('TrackChangesEditing');_0x6dedb7['styles']&&(_0x9f777d['enableDefaultAttributesIntegration']('listStyle'),_0x9f777d['registerBlockAttribute']('listStyle')),_0x6dedb7['reversed']&&(_0x9f777d['enableDefaultAttributesIntegration']('listReversed'),_0x9f777d['registerBlockAttribute']('listReversed')),_0x6dedb7['startIndex']&&(_0x9f777d['enableDefaultAttributesIntegration']('listStart'),_0x9f777d['registerBlockAttribute']('listStart'));const _0x137b44={'type':'format','content':''};_0x9f777d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x39e84c=this['editor']['locale'];_0x9f777d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x39e84c,'FORMAT_LIST_REVERSED')),_0x9f777d['descriptionFactory']['registerDescriptionCallback'](_0x350190=>{const {data:_0x15f792}=_0x350190;if(_0x15f792&&'listReversed'==_0x15f792['key'])return null==_0x15f792['newValue']||0x0==_0x15f792['newValue']&&null==_0x15f792['oldValue']?_0x137b44:void 0x0;}),_0x9f777d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x39e84c,'FORMAT_LIST_START')),_0x9f777d['descriptionFactory']['registerDescriptionCallback'](_0x5b70ff=>{const {data:_0x4c13f4}=_0x5b70ff;if(_0x4c13f4&&'listStart'==_0x4c13f4['key'])return null==_0x4c13f4['newValue']||0x1==_0x4c13f4['newValue']&&null==_0x4c13f4['oldValue']?_0x137b44:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x10439a=>{if(_0x10439a['batch']['isUndo'])return!0x1;let _0x474209=!0x1;const _0x5d1103=_0x9f777d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2be4b8=>{const _0x22abb3=_0x9f777d['_getAttributeKey'](_0x2be4b8);return'listStart'==_0x22abb3||'listReversed'==_0x22abb3;});for(const _0x4a348e of _0x5d1103){const _0x232b61=_0x4a348e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x232b61||'customNumbered'==_0x232b61)continue;_0x9f777d['_findSuggestions'](_0x4a348e['getFirstRange'](),'attribute')['find'](_0x1040ed=>'listType'==_0x9f777d['_getAttributeKey'](_0x1040ed['suggestion']))||(_0x10439a['removeMarker'](_0x4a348e['getFirstMarker']()),_0x474209=!0x0);}return _0x474209;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x30efed){const _0x3b6ffa=this['editor']['locale'],{data:_0x13e196}=_0x30efed,_0x10167c={'type':'format','content':''};if(!_0x13e196||'listStyle'!=_0x13e196['key'])return;if(!_0x13e196['oldValue'])return'default'==_0x13e196['newValue']?_0x10167c:{'type':'format','content':''+o(_0x3b6ffa,'*Set\x20format:*\x20%0',o(_0x3b6ffa,this['_getTranslationKeyForListStyle'](_0x13e196['newValue'])))};if(!_0x13e196['newValue']){if('default'==_0x13e196['oldValue'])return _0x10167c;let _0x526e02=_0x30efed['head'];for(;_0x526e02;){if(_0x526e02['data']&&'listType'==_0x526e02['data']['key']&&_0x526e02['data']['newValue'])return _0x10167c;_0x526e02=_0x526e02['next'];}return{'type':'format','content':''+o(_0x3b6ffa,'*Remove\x20format:*\x20%0',o(_0x3b6ffa,this['_getTranslationKeyForListStyle'](_0x13e196['oldValue'])))};}if('default'!=_0x13e196['newValue'])return{'type':'format','content':''+o(_0x3b6ffa,'*Set\x20format:*\x20%0',o(_0x3b6ffa,this['_getTranslationKeyForListStyle'](_0x13e196['newValue'])))};let _0x3233c9=_0x30efed['head'];for(;_0x3233c9;){if(_0x3233c9['data']&&'listType'==_0x3233c9['data']['key']&&_0x3233c9['data']['newValue']&&_0x3233c9['data']['oldValue'])return _0x10167c;_0x3233c9=_0x3233c9['next'];}return{'type':'format','content':o(_0x3b6ffa,'*Set\x20format:*\x20%0',o(_0x3b6ffa,'ELEMENT_'+_0x30efed['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3b3fd3=this['editor'],_0x4f52c2=_0x3b3fd3['locale'];_0x3b3fd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329def=>{if('formatBlock'!=_0x329def['type'])return;const {data:_0x20353d}=_0x329def;if(!_0x20353d)return;let _0x16cbb2,_0x1ad8fd;switch(_0x20353d['commandName']){case'listStyle':_0x16cbb2='*Change\x20to:*\x20%0',_0x1ad8fd={'type':'format','content':o(_0x4f52c2,_0x16cbb2,o(_0x4f52c2,this['_getTranslationKeyForListStyle'](_0x20353d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x16cbb2=_0x20353d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ad8fd={'type':'format','content':o(_0x4f52c2,_0x16cbb2)};break;case'listStart':_0x16cbb2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ad8fd={'type':'format','content':o(_0x4f52c2,_0x16cbb2,_0x20353d['commandParams'][0x0]['startIndex'])};}return _0x1ad8fd;});}['_getTranslationKeyForListStyle'](_0x73d1c7){return'ELEMENT_'+function(_0x5cc4ac){if(ye['includes'](_0x5cc4ac))return'bulleted';if(Se['includes'](_0x5cc4ac))return'numbered';return null;}(_0x73d1c7)['toUpperCase']()+'_LIST_'+_0x73d1c7['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x38e08d{static get['requires'](){return[_0x550c0e];}['init'](){const _0x975c5c=this['editor'],_0x2922ac=_0x975c5c['plugins']['get']('TrackChangesEditing'),_0x3e46e2=_0x975c5c['commands']['get']('enter');_0x2922ac['enableCommand']('enter',()=>{_0x975c5c['model']['change'](_0x1214dc=>{const _0x3e5031=_0x975c5c['model']['document']['selection'],_0xecdb46=_0x3e5031['getFirstPosition'](),_0x46e3b8=_0xe83a0b['fromRange'](_0x3e5031['getFirstRange']());if(_0x3e46e2['enterBlock'](_0x1214dc)){const _0x17358d=_0x975c5c['model']['createPositionAt'](_0xecdb46['parent']['nextSibling'],0x0),_0x36cf96=_0x1214dc['createRange'](_0xecdb46,_0x17358d);_0x2922ac['markInsertion'](_0x36cf96);}else _0x1214dc['setSelection'](_0x1214dc['createRange'](_0x46e3b8['end']));_0x46e3b8['detach'](),_0x3e46e2['fire']('afterExecute',{'writer':_0x1214dc});});}),_0x975c5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x975c5c,'split'),{'priority':'high'}),_0x975c5c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x9bd39b,_0x16f8d8,_0x46832e)=>{const _0x457b33=_0x46832e['mapper']['markerNameToElements'](_0x16f8d8['markerName']);if(_0x457b33){for(const _0x5863ef of _0x457b33)_0x5863ef['hasClass']('ck-suggestion-marker-split')&&(_0x46832e['mapper']['unbindElementFromMarkerName'](_0x5863ef,_0x16f8d8['markerName']),_0x46832e['writer']['remove'](_0x5863ef));}},{'priority':'high'}),_0x975c5c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x105ae6,_0x35c25d,_0x447899)=>{_0x447899['options']['showSuggestionHighlights']&&_e(_0x975c5c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x105ae6,_0x35c25d,_0x447899);},{'priority':'high'});}}class X extends _0x38e08d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x564104=this['editor']['plugins']['get']('TrackChangesEditing');_0x564104['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x564104['enableCommand']('findNext'),_0x564104['enableCommand']('findPrevious'),_0x564104['enableCommand']('replace'),_0x564104['enableCommand']('replaceAll');}['handleFindCommand'](_0x17f993,_0x18d9e9,_0x1e61f2={}){const _0x47d252=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x17f993(_0x456682=>{let _0x37832f=('string'==typeof _0x18d9e9?_0x47d252['findByTextCallback'](_0x18d9e9,_0x1e61f2):_0x18d9e9)(_0x456682);Array['isArray'](_0x37832f)&&(_0x37832f={'results':_0x37832f,'searchText':'string'==typeof _0x18d9e9?_0x18d9e9:''});const _0x103197=_0x37832f['results']['filter'](_0x18a471=>!0x1===this['_isInDeletionRange'](_0x18a471,_0x456682['item']));return{..._0x37832f,'results':_0x103197};},_0x1e61f2);}['_isInDeletionRange'](_0x13d7c9,_0x3f0292){const _0x1ca4ad=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f0292,_0x13d7c9['start']),this['editor']['model']['createPositionAt'](_0x3f0292,_0x13d7c9['end']));for(const _0x2151d4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1ca4ad['getIntersection'](_0x2151d4['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 _0x38e08d{['afterInit'](){const _0x6e4579=this['editor']['locale'],_0x53c064=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5af160,commandName:_0x22ab64}of ro)this['editor']['plugins']['has'](_0x5af160)&&(_0x53c064['enableDefaultAttributesIntegration'](_0x22ab64),_0x53c064['registerInlineAttribute'](_0x22ab64));_0x53c064['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x6e4579,'FORMAT_FONT_SIZE')),_0x53c064['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x6e4579,'FORMAT_FONT_FAMILY')),_0x53c064['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x6e4579,'FORMAT_FONT_COLOR')),_0x53c064['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x6e4579,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x472944=this['editor'],_0x23d4f0=_0x472944['locale'];_0x472944['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376794=>{const _0xf7c1f3=_0x23d4f0['t'];if('formatInline'!=_0x376794['type'])return;const {data:_0x42c128}=_0x376794;if(null!=_0x42c128){if('fontSize'==_0x42c128['commandName']){const _0x121703=_0x42c128['commandParams'][0x0]['value'];if(_0x121703){const _0x543c77=_0xf7c1f3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe70624=>_0xe70624['model']==_0x121703)['title'])['toLowerCase']();return{'type':'format','content':o(_0x23d4f0,'*Set\x20font\x20size:*\x20%0',_0x543c77)};}return{'type':'format','content':o(_0x23d4f0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x42c128['commandName']){const _0x52ab03=_0x42c128['commandParams'][0x0]['value'];return _0x52ab03?{'type':'format','content':o(_0x23d4f0,'*Set\x20font\x20family:*\x20%0',_0x52ab03)}:{'type':'format','content':o(_0x23d4f0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x42c128['commandName']){const _0x5e7bc5=_0x42c128['commandParams'][0x0]['value'];if(_0x5e7bc5){const _0x466f23=_0x6de47a(this['editor']['config']['get']('fontColor.colors'))['find'](_0xe09e0e=>_0xe09e0e['model']==_0x5e7bc5);let _0x3083a2=_0x5e7bc5,_0x554998='';return _0x466f23&&(_0x3083a2=_0x466f23['label'],_0x554998=_0xf7c1f3(_0x3083a2)['toLowerCase']()),{'type':'format','content':o(_0x23d4f0,'*Set\x20font\x20color:*\x20%0',_0x554998)['trim'](),'color':{'value':_0x5e7bc5,'title':_0x554998||_0x3083a2}};}return{'type':'format','content':o(_0x23d4f0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x42c128['commandName']){const _0x441581=_0x42c128['commandParams'][0x0]['value'];if(_0x441581){const _0x3fe941=_0x6de47a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x395f6f=>_0x395f6f['model']==_0x441581);let _0x30e561=_0x441581,_0x4f1f27='';return _0x3fe941&&(_0x30e561=_0x3fe941['label'],_0x4f1f27=_0xf7c1f3(_0x30e561)['toLowerCase']()),{'type':'format','content':o(_0x23d4f0,'*Set\x20font\x20background\x20color:*\x20%0',_0x4f1f27)['trim'](),'color':{'value':_0x441581,'title':_0x4f1f27||_0x30e561}};}return{'type':'format','content':o(_0x23d4f0,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x38e08d{['afterInit'](){const _0x202402=this['editor'],_0x47127a=_0x202402['plugins']['get']('TrackChangesEditing'),_0x12fb97=_0x202402['commands']['get']('copyFormat'),_0x4edaa8=_0x202402['commands']['get']('pasteFormat');_0x12fb97&&_0x4edaa8&&(_0x47127a['enableDefaultAttributesIntegration']('pasteFormat'),_0x47127a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2cd739=this['editor'],_0x4d4bac=_0x2cd739['locale'];_0x2cd739['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58c28a=>{if('formatBlock'!=_0x58c28a['type']&&'formatInline'!=_0x58c28a['type'])return;const {data:_0x5d7517}=_0x58c28a;if(_0x5d7517&&'pasteFormat'===_0x5d7517['commandName']){const _0x4150b9=[],_0x481e6a=_0x5d7517['commandParams'][0x0];for(const [_0x258447,_0x1180c4]of Object['entries'](_0x481e6a))_0x4150b9['push'](so(_0x2cd739,_0x258447,_0x1180c4));return _0x4150b9['length']?{'type':'format','content':o(_0x4d4bac,'*Set\x20format\x20to:*\x20%0',_0x4150b9['join'](',\x20'))}:{'type':'format','content':o(_0x4d4bac,'*Remove\x20all\x20formatting*')};}});}}function so(_0x26e1a2,_0x51aa62,_0x5f32da){const _0x5ad738=_0x26e1a2['locale']['t'],_0x537d31=_0x51aa62['split'](/(?=[A-Z])/)['join']('\x20'),_0x205894=_0x5ad738(_0x537d31['charAt'](0x0)['toUpperCase']()+_0x537d31['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5f32da)return _0x205894;if('fontColor'===_0x51aa62||'fontBackgroundColor'===_0x51aa62){const _0x2d8df7=_0x6de47a(_0x26e1a2['config']['get']('fontColor.colors'))['find'](_0x202367=>_0x202367['model']==_0x5f32da);return _0x205894+'\x20('+(_0x2d8df7?_0x5ad738(_0x2d8df7['label'])['toLowerCase']():_0x5f32da)+')';}if('fontSize'===_0x51aa62&&isNaN(parseFloat(_0x5f32da))){const _0x12d114=_0x26e1a2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x26e1a2['config']['get']('fontSize.options'))['find'](_0x311105=>_0x311105['model']==_0x5f32da);return _0x205894+'\x20('+(_0x12d114?_0x5ad738(_0x12d114['title'])['toLowerCase']():_0x5f32da)+')';}return _0x205894+'\x20('+_0x5f32da+')';}class tt extends _0x38e08d{['_headingOptions'];['afterInit'](){const _0x4ea079=this['editor'];if(!_0x4ea079['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ea079['config']['get']('heading.options');const _0x1ca5c4=_0x4ea079['locale'],_0x2a4f36=_0x4ea079['plugins']['get']('TrackChangesEditing');_0x2a4f36['enableDefaultAttributesIntegration']('heading');for(const _0x708154 of this['_headingOptions'])'paragraph'!=_0x708154['model']&&_0x2a4f36['descriptionFactory']['registerElementLabel'](_0x708154['model'],_0x1a0c2f=>{const _0x68e151=this['_getHeadingLevel'](_0x708154['model']);return null!==_0x68e151?_0x599529(_0x1a0c2f,_0x68e151):_0x10e114(_0x1a0c2f,_0x708154['title']);});function _0x599529(_0x58ebf6,_0x36258e){return o(_0x1ca5c4,'ELEMENT_HEADING',[_0x58ebf6,_0x36258e]);}function _0x10e114(_0x5d3b30,_0x222334){return o(_0x1ca5c4,'ELEMENT_HEADING_CUSTOM',[_0x5d3b30,_0x222334]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fa0a1=this['editor'],_0x242433=_0x3fa0a1['locale'];function _0x2bb5fc(_0x42151a,_0x3fe651){return o(_0x242433,'ELEMENT_HEADING_CUSTOM',[_0x42151a,_0x3fe651]);}_0x3fa0a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e57df=>{if('formatBlock'!=_0x1e57df['type'])return;const {data:_0x26cb77}=_0x1e57df;if(_0x26cb77&&'heading'==_0x26cb77['commandName']){const _0x10f732=_0x26cb77['commandParams'][0x0]['value'],_0x27c26f=this['_getHeadingLevel'](_0x10f732);if(null!==_0x27c26f)return{'type':'format','content':o(_0x242433,'*Change\x20to:*\x20%0',(_0x5877dc=0x1,_0x38cea7=_0x27c26f,o(_0x242433,'ELEMENT_HEADING',[_0x5877dc,_0x38cea7])))};const _0x6a76a3=this['_headingOptions']['find'](_0x49ae7a=>_0x49ae7a['model']===_0x10f732)['title'];return{'type':'format','content':o(_0x242433,'*Change\x20to:*\x20%0',_0x2bb5fc(0x1,_0x6a76a3))};}var _0x5877dc,_0x38cea7;});}['_getHeadingLevel'](_0x2dfaa7){const _0x38ecfc=_0x2dfaa7['match'](/^heading(\d+)/);if(_0x38ecfc)return _0x38ecfc[0x1];const _0x2589d5=this['_headingOptions']?.['find'](_0x9174ba=>_0x9174ba['model']==_0x2dfaa7);if(_0x2589d5&&_0x2589d5['view']){const _0x3fca07=_0x2589d5['view'],_0x213bea=(_0x3fca07['name']??_0x3fca07)['match'](/^h(\d+)/);if(_0x213bea)return _0x213bea[0x1];}return null;}}class et extends _0x38e08d{['afterInit'](){const _0x1d5eea=this['editor'];if(!_0x1d5eea['plugins']['has']('HighlightEditing'))return;const _0x1b609d=_0x1d5eea['plugins']['get']('TrackChangesEditing'),_0x2e41ed=_0x1d5eea['locale'];_0x1b609d['enableDefaultAttributesIntegration']('highlight'),_0x1b609d['registerInlineAttribute']('highlight'),_0x1b609d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2e41ed,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17427d=this['editor'],_0x47de15=_0x17427d['locale'];_0x17427d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f31df=>{if('formatInline'!=_0x5f31df['type'])return;const {data:_0x3ba373}=_0x5f31df;if(_0x3ba373&&'highlight'==_0x3ba373['commandName']){const _0x47026d=_0x47de15['t'],_0x4cce4c=_0x3ba373['commandParams'][0x0]['value'];if(_0x4cce4c){const _0xa21f1b=_0x17427d['config']['get']('highlight.options')['find'](_0x116466=>_0x116466['model']==_0x4cce4c),_0x53a71b=_0x47026d(_0xa21f1b['title'])['toLowerCase']();return{'type':'format','content':o(_0x47de15,'*Set\x20highlight:*\x20%0',_0x53a71b),'color':{'value':_0xa21f1b['color'],'title':_0xa21f1b['title']}};}return{'type':'format','content':o(_0x47de15,'*Remove\x20highlight*',o(_0x47de15,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x38e08d{['afterInit'](){const _0x5c3f23=this['editor'];if(!_0x5c3f23['plugins']['has']('HorizontalLineEditing'))return;_0x5c3f23['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1207e1=_0x5c3f23['plugins']['get']('TrackChangesEditing'),_0x46790=_0x5c3f23['locale'];_0x1207e1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4e6d0d=>o(_0x46790,'ELEMENT_HORIZONTAL_LINE',_0x4e6d0d)),_0x5c3f23['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4cdf67,{writer:_0xec229,options:_0x668ad2})=>{if(!_0x668ad2['showSuggestionHighlights'])return null;const _0x2db4d0=_0xec229['createContainerElement']('div'),_0x5d88fa=_0xec229['createEmptyElement']('hr');return _0xec229['addClass']('ck-horizontal-line',_0x2db4d0),_0xec229['insert'](_0xec229['createPositionAt'](_0x2db4d0,0x0),_0x5d88fa),_0x2db4d0;},'converterPriority':'high'});}}class st extends _0x38e08d{['afterInit'](){const _0x186633=this['editor'];if(!_0x186633['plugins']['has']('HtmlEmbed'))return;const _0x4c6b65=_0x186633['plugins']['get']('TrackChangesEditing'),_0x569222=_0x186633['locale'];_0x4c6b65['descriptionFactory']['registerElementLabel']('rawHtml',_0x2906a7=>o(_0x569222,'ELEMENT_HTML_EMBED',_0x2906a7)),_0x4c6b65['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4c6b65['registerBlockAttribute']('value'),_0x4c6b65['descriptionFactory']['registerDescriptionCallback'](_0x41c51c=>{if('attribute'!=_0x41c51c['type'])return;const {data:_0x4a2af0}=_0x41c51c;if(_0x4a2af0&&'value'==_0x4a2af0['key']&&_0x41c51c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x481062=o(_0x569222,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x569222,'*Change\x20%0\x20content*',_0x481062)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32bd79=this['editor'],_0x3a58dd=_0x32bd79['locale'];_0x32bd79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487af9=>{if('formatBlock'!=_0x487af9['type'])return;const {data:_0x27c1a3}=_0x487af9;if(_0x27c1a3&&'htmlEmbed'==_0x27c1a3['commandName']){const _0x5c1a0f=o(_0x3a58dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3a58dd,'*Change\x20%0\x20content*',_0x5c1a0f)};}});}}class nt extends _0x38e08d{['afterInit'](){const _0x18c56b=this['editor'];if(!_0x18c56b['plugins']['has']('ImageEditing'))return;const _0xbeb46b=_0x18c56b['plugins']['get']('TrackChangesEditing'),_0x81c78=_0x18c56b['plugins']['get']('ImageUtils'),_0x429e36=_0x18c56b['locale'];_0xbeb46b['enableCommand']('insertImage'),_0xbeb46b['descriptionFactory']['registerElementLabel']('imageBlock',_0x18ab59=>o(_0x429e36,'ELEMENT_IMAGE',_0x18ab59)),_0xbeb46b['descriptionFactory']['registerElementLabel']('imageInline',_0x153ea4=>o(_0x429e36,'ELEMENT_INLINE_IMAGE',_0x153ea4)),_0xbeb46b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x429e36,'ELEMENT_CAPTION')),_0x18c56b['plugins']['has']('ImageUploadEditing')&&_0xbeb46b['enableCommand']('uploadImage'),_0x18c56b['plugins']['has']('ImageBlockEditing')&&_0x18c56b['plugins']['has']('ImageInlineEditing')&&(_0xbeb46b['enableCommand']('imageTypeInline',(_0x2a2d94,_0x323f2f)=>{const _0x2bfc3a=_0x81c78['getClosestSelectedImageElement'](_0x18c56b['model']['document']['selection']);_0x18c56b['model']['change'](()=>{_0xbeb46b['markBlockFormat'](_0x2bfc3a,{'commandName':'imageTypeInline','commandParams':[_0x323f2f]},[],'convertBlockImageToInline');});}),_0xbeb46b['enableCommand']('imageTypeBlock',(_0x960b20,_0x2f6de6)=>{_0x18c56b['model']['change'](_0x1fc3ea=>{let _0x57c423=_0x81c78['getClosestSelectedImageElement'](_0x18c56b['model']['document']['selection']),_0x58d2a6=_0x1fc3ea['createRangeOn'](_0x57c423);const _0x174243=_0x4fcb60['fromPosition'](_0x58d2a6['start'],'toPrevious'),_0xc24cc9=_0x4fcb60['fromPosition'](_0x58d2a6['end'],'toNext');_0xbeb46b['forceDefaultExecution'](()=>_0x960b20(_0x2f6de6)),_0x57c423=_0x81c78['getClosestSelectedImageElement'](_0x18c56b['model']['document']['selection']),_0x58d2a6=_0x1fc3ea['createRangeOn'](_0x57c423);const _0x530ad2=_0x1fc3ea['createRange'](_0x174243,_0xc24cc9);_0x174243['detach'](),_0xc24cc9['detach'](),_0xbeb46b['markBlockFormat'](_0x57c423,{'commandName':'imageTypeInline','commandParams':[_0x2f6de6]},[],'convertInlineImageToBlock'),_0x530ad2['start']['isBefore'](_0x58d2a6['start'])&&_0xbeb46b['markInsertion'](_0x1fc3ea['createRange'](_0x530ad2['start'],_0x58d2a6['start']),'convertInlineImageToBlock'),_0x58d2a6['end']['isBefore'](_0x530ad2['end'])&&_0xbeb46b['markInsertion'](_0x1fc3ea['createRange'](_0x58d2a6['end'],_0x530ad2['end']),'convertInlineImageToBlock');});}),_0xbeb46b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xbeb46b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xbeb46b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xbeb46b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xbeb46b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xbeb46b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x526583])=>{const _0x5d6867=_0xbeb46b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x468197=_0x526583['start'],_0x599b1a=_0x526583['end'];const _0x1d7704=_0x18c56b['model']['schema']['getNearestSelectionRange'](_0x468197,'backward'),_0x56fa59=_0x18c56b['model']['schema']['getNearestSelectionRange'](_0x599b1a,'forward');_0x1d7704['isCollapsed']&&(_0x468197=_0x1d7704['start']),_0x56fa59['isCollapsed']&&(_0x599b1a=_0x56fa59['end']),_0x5d6867([_0x18c56b['model']['createRange'](_0x468197,_0x599b1a)]);}),_0xbeb46b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2fa1fe),_0xbeb46b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2fa1fe)),_0x18c56b['plugins']['has']('ImageCaptionEditing')&&(_0xbeb46b['enableCommand']('toggleImageCaption',(_0x4f6824,_0x3c03d1)=>{const _0x5bd823=_0x18c56b['plugins']['get']('ImageCaptionUtils');let _0x1a20d4=_0x81c78['getClosestSelectedImageElement'](_0x18c56b['model']['document']['selection']),_0x5e9307=_0x5bd823['getCaptionFromImageModelElement'](_0x1a20d4);_0x18c56b['model']['change'](()=>{if(_0x5e9307)return void _0xbeb46b['markDeletion'](_0x18c56b['model']['createRangeOn'](_0x5e9307));const _0xc99d22=_0x81c78['isBlockImage'](_0x1a20d4);_0x4f6824(_0x3c03d1),_0x1a20d4=_0x81c78['getClosestSelectedImageElement'](_0x18c56b['model']['document']['selection']),_0x5e9307=_0x5bd823['getCaptionFromImageModelElement'](_0x1a20d4),_0xbeb46b['markInsertion'](_0x18c56b['model']['createRangeOn'](_0x5e9307),_0xc99d22?null:'imageCaption');});}),_0xbeb46b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2fa1fe));const _0x5a7bf0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5675f3(_0x3cef76,_0x13f264){const _0x176e44=_0x5a7bf0['findIndex'](({type:_0x155adc,subType:_0x41ae3c})=>_0x3cef76['type']==_0x155adc&&_0x3cef76['subType']==_0x41ae3c),_0x39c49b=_0x5a7bf0['findIndex'](({type:_0x221e6b,subType:_0x326235})=>_0x13f264['type']==_0x221e6b&&_0x13f264['subType']==_0x326235);if(_0x176e44<0x0||_0x39c49b<0x0)return!0x1;const _0x49973c=_0x3cef76['getFirstRange'](),_0x44d048=_0x13f264['getFirstRange']();if((0x0==_0x176e44||0x1==_0x176e44)&&0x2==_0x39c49b&&_0x49973c['isIntersecting'](_0x44d048))return!0x0;if(0x2==_0x176e44&&0x3==_0x39c49b){const _0x4a0dcd=_0xbeb46b['_findSuggestions'](_0x49973c,'insertion')['filter'](({suggestion:_0xd881b8,meta:_0x4beda1})=>_0x4beda1['isOwn']&&'convertInlineImageToBlock'==_0xd881b8['subType']);if(_0x4a0dcd['length']>0x1&&_0x44d048['end']['isEqual'](_0x49973c['start']))return!0x0;if(0x1==_0x4a0dcd['length']&&(_0x49973c['start']['isEqual'](_0x44d048['end'])||_0x49973c['end']['isEqual'](_0x44d048['start'])))return!0x0;}if(0x3==_0x176e44&&0x3==_0x39c49b&&_0x49973c['start']['isBefore'](_0x44d048['start'])){const _0x59df9e=_0x49973c['end']['nodeAfter'],_0x58cb28=_0x44d048['start']['nodeBefore'];return _0x81c78['isBlockImage'](_0x59df9e)&&_0x59df9e===_0x58cb28;}return!0x1;}function _0x2fa1fe(_0x53ed8b,_0x23cc82){return _0x5675f3(_0x53ed8b,_0x23cc82)?[_0x53ed8b,_0x23cc82]:_0x5675f3(_0x23cc82,_0x53ed8b)?[_0x23cc82,_0x53ed8b]:null;}_0x18c56b['plugins']['has']('ImageResize')&&(_0xbeb46b['enableDefaultAttributesIntegration']('resizeImage'),_0xbeb46b['registerBlockAttribute']('resizedWidth'),_0xbeb46b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x429e36,'FORMAT_IMAGE_SIZE'))),_0x18c56b['plugins']['has']('ImageTextAlternativeEditing')&&(_0xbeb46b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xbeb46b['registerBlockAttribute']('alt')),_0xbeb46b['descriptionFactory']['registerDescriptionCallback'](_0x1f3938=>{if(!!_0x5a7bf0['find'](({type:_0x4485a1,subType:_0x3572e6})=>_0x1f3938['type']==_0x4485a1&&_0x1f3938['subType']==_0x3572e6))return _0x1f3938['previous']?{}:void 0x0;}),_0xbeb46b['descriptionFactory']['registerDescriptionCallback'](_0x440466=>{if('insertion'==_0x440466['type']||'deletion'==_0x440466['type']){const _0x2022af=_0x440466['getContainedElement']();if(_0x2022af&&_0x2022af['is']('element','caption'))return{'type':'insertion'==_0x440466['type']?'addObject':'removeObject','element':_0x2022af,'quantity':0x1};}}),_0xbeb46b['descriptionFactory']['registerDescriptionCallback'](_0x4cd95f=>'formatBlock'==_0x4cd95f['type']&&'convertInlineImageToBlock'==_0x4cd95f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4cd95f['type']&&'convertBlockImageToInline'==_0x4cd95f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xbeb46b['descriptionFactory']['registerDescriptionCallback'](_0x1a5b0e=>{if('attribute'!=_0x1a5b0e['type'])return;const {data:_0x1a0593}=_0x1a5b0e;if(!_0x1a0593||'alt'!=_0x1a0593['key'])return;const _0x192d73=_0x1a0593['newValue'];return _0x192d73?{'type':'format','content':o(_0x429e36,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x192d73+'\x22')}:{'type':'format','content':o(_0x429e36,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x468227=this['editor'],_0x30b699=_0x468227['locale'];_0x468227['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15e952=>{if('formatBlock'!=_0x15e952['type']&&'formatInline'!=_0x15e952['type'])return;const {data:_0x1283d0}=_0x15e952;if(_0x1283d0){if('imageTextAlternative'==_0x1283d0['commandName']){const _0xd83699=_0x1283d0['commandParams'][0x0]['newValue'];return _0xd83699?{'type':'format','content':o(_0x30b699,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd83699+'\x22')}:{'type':'format','content':o(_0x30b699,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1283d0['commandName']){const _0x486db7=_0x1283d0['commandParams'][0x0]['width'];return _0x486db7?{'type':'format','content':o(_0x30b699,'*Set\x20image\x20width:*\x20%0',_0x486db7)}:{'type':'format','content':o(_0x30b699,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x38e08d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x42d732=this['editor']['locale'],_0x57fe8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x57fe8a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x57fe8a['registerBlockAttribute']('src'),_0x57fe8a['descriptionFactory']['registerDescriptionCallback'](_0x2fdc53=>{if('attribute'!=_0x2fdc53['type'])return;const {data:_0x26c58a}=_0x2fdc53;return _0x26c58a&&'src'==_0x26c58a['key']?_0x26c58a['newValue']&&_0x26c58a['oldValue']?{'type':'format','content':o(_0x42d732,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2ca6ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ca6ab['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2ca6ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ca6ab['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2ca6ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x475887=this['editor'],_0x4f2b09=_0x475887['locale'];_0x475887['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fd084=>{if('formatBlock'!=_0x3fd084['type']&&'formatInline'!=_0x3fd084['type'])return;const {data:_0x36adae}=_0x3fd084;if(!_0x36adae||'replaceImageSource'!=_0x36adae['commandName'])return;return{'type':'format','content':o(_0x4f2b09,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x38e08d{['afterInit'](){const _0x44abff=this['editor'];if(!_0x44abff['plugins']['has']('ImageStyleEditing'))return;const _0xcf0161=_0x44abff['plugins']['get']('TrackChangesEditing'),_0x5c69a1=_0x44abff['plugins']['get']('ImageUtils'),_0x398f5c={};_0xcf0161['enableCommand']('imageStyle',(_0x258a57,_0x43b6c7)=>{const _0x142e94=_0x44abff['plugins']['get']('Users')['me'],_0x4df4af=_0x44abff['commands']['get']('imageStyle');let _0x52f6dc=_0x5c69a1['getClosestSelectedImageElement'](_0x44abff['model']['document']['selection']),_0x3582ae=_0x44abff['model']['createRangeOn'](_0x52f6dc),_0x2a0d10=_0x4df4af['value'];if(_0x2a0d10==_0x43b6c7['value'])return;const _0x270d88={'commandName':'imageStyle','commandParams':[_0x43b6c7],'formatGroupId':_0x3d800f()};_0x44abff['model']['change'](()=>{if(_0xcf0161['getSuggestions']()['filter'](_0x1338d5=>_0x1338d5['isInContent']&&_0x142e94==_0x1338d5['author']&&('formatBlock'==_0x1338d5['type']||'formatInline'==_0x1338d5['type'])&&('imageStylePreApply'==_0x1338d5['subType']||'imageStylePostApply'==_0x1338d5['subType'])&&_0x1338d5['getFirstRange']()['isEqual'](_0x3582ae))['forEach'](_0x49fb87=>_0xcf0161['discardSuggestion'](_0x49fb87['head'])),_0x52f6dc=_0x5c69a1['getClosestSelectedImageElement'](_0x44abff['model']['document']['selection']),_0x3582ae=_0x44abff['model']['createRangeOn'](_0x52f6dc),_0x4df4af['refresh'](),_0x44abff['commands']['get']('imageTypeInline')['refresh'](),_0x44abff['commands']['get']('imageTypeBlock')['refresh'](),_0x2a0d10=_0x4df4af['value'],_0x2a0d10!=_0x43b6c7['value'])return _0x5c69a1['isInlineImage'](_0x52f6dc)&&_0x4df4af['shouldConvertImageType'](_0x43b6c7['value'],_0x52f6dc)?(_0x258a57({..._0x43b6c7,'setImageSizes':!0x1}),_0x52f6dc=_0x5c69a1['getClosestSelectedImageElement'](_0x44abff['model']['document']['selection']),void _0xcf0161['markBlockFormat'](_0x52f6dc,{..._0x270d88,'commandReversedParams':[{'value':_0x2a0d10||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5c69a1['isBlockImage'](_0x52f6dc)?_0xcf0161['markBlockFormat'](_0x52f6dc,_0x270d88,[],'imageStylePostApply'):_0xcf0161['markInlineFormat'](_0x3582ae,_0x270d88,'imageStylePostApply'));});});for(const _0x3058ea of _0x44abff['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x398f5c[_0x3058ea['name']]=_0x3058ea['title']['toLowerCase']();_0xcf0161['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xcf0161['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xcf0161['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xcf0161['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2265c8])=>{_0x5c69a1['setImageNaturalSizeAttributes'](_0x2265c8['getContainedElement']());}),_0xcf0161['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1a4de3,_0x4b823b)=>{_0xcf0161['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1a4de3,{'commandName':_0x4b823b['commandName'],'commandParams':_0x4b823b['commandReversedParams']});}),_0xcf0161['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x347e00,_0x261170){if(_0x3dffbc(_0x347e00,_0x261170))return[_0x347e00,_0x261170];if(_0x3dffbc(_0x261170,_0x347e00))return[_0x261170,_0x347e00];return null;});const _0x13588d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3dffbc(_0x24d3b7,_0x7bfaf8){const _0x4c86ba=_0x13588d['findIndex'](({type:_0x936166,subType:_0x4bce04})=>_0x24d3b7['type']==_0x936166&&_0x24d3b7['subType']==_0x4bce04),_0x811472=_0x13588d['findIndex'](({type:_0x53bcb6,subType:_0x9747ce})=>_0x7bfaf8['type']==_0x53bcb6&&_0x7bfaf8['subType']==_0x9747ce);if(_0x4c86ba<0x0||_0x811472<0x0)return!0x1;const _0x664c6b=_0x24d3b7['getFirstRange'](),_0x26956b=_0x7bfaf8['getFirstRange']();if((0x0==_0x4c86ba||0x1==_0x4c86ba)&&0x2==_0x811472&&_0x664c6b['isIntersecting'](_0x26956b))return!0x0;if(0x2==_0x4c86ba&&0x3==_0x811472){const _0x395562=_0xcf0161['_findSuggestions'](_0x664c6b,'insertion')['filter'](({suggestion:_0x4246f1,meta:_0x36ef80})=>_0x36ef80['isOwn']&&'convertInlineImageToBlock'==_0x4246f1['subType']);if(_0x395562['length']>0x1&&_0x26956b['end']['isEqual'](_0x664c6b['start']))return!0x0;if(0x1==_0x395562['length']&&(_0x664c6b['start']['isEqual'](_0x26956b['end'])||_0x664c6b['end']['isEqual'](_0x26956b['start'])))return!0x0;}if(0x3==_0x4c86ba&&0x3==_0x811472&&_0x664c6b['start']['isBefore'](_0x26956b['start'])){const _0x236a9a=_0x664c6b['end']['nodeAfter'],_0x2a7f97=_0x26956b['start']['nodeBefore'];return _0x5c69a1['isBlockImage'](_0x236a9a)&&_0x236a9a===_0x2a7f97;}return!0x1;}_0x44abff['model']['document']['registerPostFixer'](()=>{let _0x4899e5=!0x1;const _0x183c40=Array['from'](_0x44abff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x533309,data:_0x4cdf08}of _0x183c40){const {group:_0x30a8d0,type:_0x2df786,subType:_0x310e12,id:_0x2ab5be}=_0xcf0161['_splitMarkerName'](_0x533309);if('suggestion'==_0x30a8d0&&_0xcf0161['hasSuggestion'](_0x2ab5be)){if('formatBlock'==_0x2df786&&('imageStylePreApply'==_0x310e12||'imageStylePostApply'==_0x310e12)){const _0x48784b=_0xcf0161['getSuggestion'](_0x2ab5be);if(_0x4cdf08['newRange']){const _0x2dabbe=_0x48784b['getFirstRange']()['getContainedElement']();if(_0x5c69a1['isBlockImage'](_0x2dabbe))continue;_0xcf0161['discardSuggestion'](_0x48784b),_0x4899e5=!0x0;}}if('insertion'==_0x2df786&&'imageCaption'==_0x310e12&&!_0x4cdf08['newRange']){const _0x2daeb7=_0xcf0161['getSuggestion'](_0x2ab5be);_0x2daeb7['next']&&_0x2daeb7['next']['isInContent']&&(_0xcf0161['discardSuggestion'](_0x2daeb7['next']),_0x4899e5=!0x0);}}}return _0x4899e5;}),this['_registerLegacyDescription'](_0x398f5c);}['_registerLegacyDescription'](_0x1a4905){const _0x5cab48=this['editor'],_0x44bcf0=_0x5cab48['locale'];_0x5cab48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x186d51=>{if('formatBlock'!=_0x186d51['type']&&'formatInline'!=_0x186d51['type'])return;const {data:_0x5bf412}=_0x186d51;if(!_0x5bf412||'imageStyle'!=_0x5bf412['commandName'])return;const _0x362b4f=_0x5bf412['commandParams'][0x0]['value'];return _0x26ba2b('side'===_0x362b4f?o(_0x44bcf0,'FORMAT_SIDE_IMAGE'):_0x1a4905[_0x362b4f]||_0x362b4f);function _0x26ba2b(_0x48042e){return{'type':'format','content':o(_0x44bcf0,'*Format:*\x20%0',_0x48042e)};}});}}class at extends _0x38e08d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x299724){super(_0x299724),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x11a233=this['editor'],_0x4e06c3=_0x11a233['commands']['get']('importWord'),_0x1f4d51=_0x11a233['commands']['get']('trackChanges');_0x4e06c3&&(_0x4e06c3['on']('execute',(_0x14b50c,[,_0x194e1e])=>{this['_trackChangesValueDuringImport']=_0x1f4d51['value'],_0x194e1e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4e06c3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4e06c3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1f4d51['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x11a233['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x56192d,_0x48b70b){const {suggestions:_0x4355b6}=_0x48b70b,_0x17d3e9=this['editor']['commands']['get']('trackChanges'),_0x2a4250=_0x17d3e9['value'];this['_trackChangesValueDuringImport']!==_0x2a4250&&(_0x17d3e9['execute'](),this['_trackChangesExecuted']=!0x0),_0x4355b6&&_0x4355b6['forEach'](({id:_0x22b3af,type:_0x393af4,author:_0x1cd4c9,created_at:_0x3f6b6e})=>{const _0x495655={'id':_0x22b3af,'type':_0x393af4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1cd4c9,'createdAt':_0x3f6b6e?new Date(_0x3f6b6e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x495655);});}}class ct extends _0x38e08d{['afterInit'](){const _0x840bed=this['editor'],_0x4eab13=_0x840bed['plugins']['get']('TrackChangesEditing');if(_0x840bed['plugins']['has']('IndentEditing')&&(_0x4eab13['enableCommand']('indent'),_0x4eab13['enableCommand']('outdent')),_0x840bed['plugins']['has']('IndentBlock')){for(const _0x1797a1 of['indentBlock','outdentBlock'])_0x4eab13['enableDefaultAttributesIntegration'](_0x1797a1);}const _0x1ce0a0=_0x840bed['locale'];_0x4eab13['registerBlockAttribute']('blockIndent'),_0x4eab13['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1ce0a0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fb9a7=this['editor'],_0x552149=_0x2fb9a7['locale'],_0xc893=_0x2fb9a7['plugins']['get']('TrackChangesEditing');_0xc893['descriptionFactory']['registerDescriptionCallback'](_0xbbf2ce=>{if('formatBlock'!=_0xbbf2ce['type'])return;const {data:_0x5cde50}=_0xbbf2ce;if(!_0x5cde50)return;if('indentBlock'!=_0x5cde50['commandName']&&'outdentBlock'!=_0x5cde50['commandName'])return;const _0x508270=_0xbbf2ce['getItems']()[0x0],_0x259a03=_0xc893['descriptionFactory']['getItemLabel'](_0x508270);return'indentBlock'==_0x5cde50['commandName']?{'type':'format','content':o(_0x552149,'*Indent:*\x20%0',_0x259a03)}:'outdentBlock'==_0x5cde50['commandName']?{'type':'format','content':o(_0x552149,'*Outdent:*\x20%0',_0x259a03)}:void 0x0;});}}class ut extends _0x38e08d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x38e08d{['afterInit'](){const _0x1effff=this['editor'];if(!_0x1effff['plugins']['has']('LinkEditing'))return;const _0x130eb9=_0x1effff['plugins']['get']('TrackChangesEditing'),_0x54b93f=_0x1effff['commands']['get']('link');_0x130eb9['enableDefaultAttributesIntegration']('link'),_0x130eb9['enableDefaultAttributesIntegration']('unlink'),_0x130eb9['registerInlineAttribute']('linkHref');for(const _0x2a2403 of _0x54b93f['manualDecorators'])_0x130eb9['registerInlineAttribute'](_0x2a2403['id']),_0x130eb9['descriptionFactory']['registerAttributeLabel'](_0x2a2403['id'],'link\x20('+_0x2a2403['label']['toLowerCase']()+')');_0x130eb9['descriptionFactory']['registerDescriptionCallback'](_0x33808b=>{if('attribute'!=_0x33808b['type'])return;const {data:_0x3dfd67}=_0x33808b;if(!_0x3dfd67||'linkHref'!=_0x3dfd67['key'])return;const _0x3b4192=_0x3dfd67['newValue'],_0x547689=_0x1effff['locale'];return{'type':'format','content':null==_0x3b4192?o(_0x547689,'*Remove\x20link*'):o(_0x547689,'*Set\x20link:*\x20%0','\x22'+_0x3b4192+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35a0ab=this['editor'],_0x457335=_0x35a0ab['locale'];_0x35a0ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x140cd5=>{if('formatInline'!=_0x140cd5['type'])return;const {data:_0x5a9b26}=_0x140cd5;if(_0x5a9b26){if('link'==_0x5a9b26['commandName']){const _0x4f8ec4=_0x5a9b26['commandParams'][0x0];return{'type':'format','content':o(_0x457335,'*Set\x20link:*\x20%0','\x22'+_0x4f8ec4+'\x22')};}return'unlink'==_0x5a9b26['commandName']?{'type':'format','content':o(_0x457335,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x38e08d{['afterInit'](){const _0x3888c5=this['editor'],_0x12fdd2=_0x3888c5['locale'];if(!_0x3888c5['plugins']['has']('LegacyListEditing'))return;const _0x48b758=_0x3888c5['plugins']['get']('TrackChangesEditing'),_0xcdad66=_0x3888c5['plugins']['has']('LegacyTodoListEditing');function _0x179b63(_0x2546f6){return()=>{const _0xcc5b59=_0x3888c5['model']['document']['selection'],_0x39cca4=_0x3888c5['commands']['get'](_0x2546f6);if(_0x39cca4['value'])return void _0x3888c5['execute']('paragraph',{});const _0x4b3665=_0x2546f6['slice'](0x0,-0x4),_0x523245=function(_0x5dd670,_0x2f643a,_0x109ac2){let _0x501bf5=Array['from'](_0x5dd670)['filter'](_0x4422d0=>function(_0xf751f9,_0x36a2ce){return _0x36a2ce['checkChild'](_0xf751f9['parent'],'listItem')&&!_0x36a2ce['isObject'](_0xf751f9);}(_0x4422d0,_0x109ac2));_0x501bf5=_0x501bf5['filter'](_0x1fa9a9=>!_0x1fa9a9['is']('element','listItem')||_0x1fa9a9['getAttribute']('listType')!=_0x2f643a);const _0x448a80=new Set();for(const _0x55dadc of _0x501bf5)_0x55dadc['is']('element','listItem')?_0x448a80['add'](fe(_0x55dadc)):_0x448a80['add'](_0x55dadc);return Array['from'](_0x448a80);}(_0xcc5b59['getSelectedBlocks'](),_0x4b3665,_0x3888c5['model']['schema']);_0x3888c5['model']['change'](()=>{for(const _0x244030 of _0x523245)_0x48b758['markBlockFormat'](_0x244030,{'commandName':_0x2546f6,'commandParams':[{'forceValue':!_0x39cca4['value']}],'formatGroupId':'blockName'},ue(_0x244030));});};}function _0x1845c2(_0x710eb0){return()=>{const _0x2b72d5=function(_0x50ce3e){let _0x4f6986=Array['from'](_0x50ce3e);const _0x1a3a71=_0x4f6986['findIndex'](_0x20f8e3=>'listItem'!=_0x20f8e3['name']);return _0x1a3a71>-0x1&&(_0x4f6986=_0x4f6986['slice'](0x0,_0x1a3a71)),_0x4f6986;}(_0x3888c5['model']['document']['selection']['getSelectedBlocks']()),_0x52b49d=_0x3888c5['model']['createRange'](_0x3888c5['model']['createPositionAt'](_0x2b72d5[0x0],'before'),_0x3888c5['model']['createPositionAt'](_0x2b72d5[_0x2b72d5['length']-0x1],'end'));_0x3888c5['model']['change'](()=>{_0x48b758['markBlockFormat'](_0x52b49d,{'commandName':_0x710eb0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x589bb0){const _0x3d089f=new Set();for(const _0x49726e of _0x589bb0){let _0xa2f723=_0x49726e['nextSibling'];for(;_0xa2f723&&_0xa2f723['getAttribute']('listIndent')>_0x49726e['getAttribute']('listIndent');)_0x3d089f['add'](_0xa2f723),_0xa2f723=_0xa2f723['nextSibling'];}return Array['from'](_0x3d089f);}(_0x2b72d5));});};}_0x48b758['enableCommand']('numberedList',_0x179b63('numberedList')),_0x48b758['enableCommand']('bulletedList',_0x179b63('bulletedList')),_0xcdad66&&_0x48b758['enableCommand']('todoList',_0x179b63('todoList')),_0x48b758['enableCommand']('indentList',_0x1845c2('indentList')),_0x48b758['enableCommand']('outdentList',_0x1845c2('outdentList')),_0xcdad66&&_0x48b758['enableCommand']('checkTodoList',()=>{const _0x16ce71=_0x3888c5['commands']['get']('checkTodoList'),_0x284c27=Array['from'](_0x16ce71['_selectedElements']);_0x284c27['filter'](_0xf44625=>_0xf44625['getAttribute']('todoListChecked')!=_0x16ce71['value']),_0x3888c5['model']['change'](()=>{for(const _0x5c84e9 of _0x284c27)_0x48b758['markBlockFormat'](_0x5c84e9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x16ce71['value']}]});});}),_0x48b758['descriptionFactory']['registerElementLabel']('listItem',_0x1423c1=>o(_0x12fdd2,'ELEMENT_LIST_ITEM',_0x1423c1)),_0x48b758['descriptionFactory']['registerDescriptionCallback'](_0x47a93c=>{if('formatBlock'!=_0x47a93c['type']&&'formatInline'!=_0x47a93c['type'])return;const {data:_0x483192}=_0x47a93c;if(_0x483192){if('numberedList'==_0x483192['commandName']||'bulletedList'==_0x483192['commandName']||'todoList'==_0x483192['commandName'])switch(_0x483192['commandName']['replace']('List','')){case'bulleted':return _0x1231fc(o(_0x12fdd2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1231fc(o(_0x12fdd2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1231fc(o(_0x12fdd2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x483192['commandName'])return{'type':'format','content':o(_0x12fdd2,'*Indent:*\x20%0',o(_0x12fdd2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x483192['commandName'])return{'type':'format','content':o(_0x12fdd2,'*Outdent:*\x20%0',o(_0x12fdd2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x483192['commandName'])return _0x483192['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12fdd2,'*Check\x20item*')}:{'type':'format','content':o(_0x12fdd2,'*Uncheck\x20item*')};}function _0x1231fc(_0x19af7b){return{'type':'format','content':o(_0x12fdd2,'*Change\x20to:*\x20%0',_0x19af7b)};}});}}function fe(_0x4895d6){const _0x37cfa2=_0x4895d6['getAttribute']('listIndent');if(0x0==_0x37cfa2)return _0x4895d6;let _0x598188=_0x4895d6;for(;_0x4895d6['previousSibling']&&_0x4895d6['previousSibling']['is']('element','listItem');){const _0x53e645=_0x4895d6['previousSibling']['getAttribute']('listIndent');if(_0x53e645==_0x37cfa2)_0x598188=_0x4895d6['previousSibling'];else{if(_0x53e645<_0x37cfa2)break;}_0x4895d6=_0x4895d6['previousSibling'];}return _0x598188;}function ue(_0xe6305c){const _0x499ba0=[];if(_0xe6305c['is']('element','listItem')&&_0xe6305c['getAttribute']('listIndent')>0x0){let _0x253abf=_0xe6305c['nextSibling'];for(;_0x253abf&&'listItem'==_0x253abf['name']&&_0x253abf['getAttribute']('listIndent')==_0xe6305c['getAttribute']('listIndent');)_0x499ba0['push'](_0x253abf),_0x253abf=_0x253abf['nextSibling'];}return _0x499ba0;}class W extends _0x38e08d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36bb97=this['editor']['config']['get']('list.properties'),_0x5e8d31=this['editor']['plugins']['get']('TrackChangesEditing');_0x36bb97['styles']&&_0x5e8d31['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36bb97['reversed']&&_0x5e8d31['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36bb97['startIndex']&&_0x5e8d31['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5e8d31['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1e201e,_0x559a59={}){const _0x4bc3e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37c0d2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4bc3e8['markMultiRangeBlockFormat'](_0x37c0d2,{'commandName':'listStyle','commandParams':[{'type':_0x559a59['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2a7790,_0x5c66f5={}){const _0x54fff3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45d6ae=this['_getSuggestionBlocks'](_0x3348c1=>_0x3348c1['is']('element','listItem')&&'numbered'===_0x3348c1['getAttribute']('listType'));if(_0x45d6ae['length']<0x1)return;const _0x404659=_0x45d6ae['map'](_0xda73ef=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xda73ef,'before'),this['editor']['model']['createPositionAt'](_0xda73ef,0x0)));this['editor']['model']['change'](()=>{_0x54fff3['markMultiRangeBlockFormat'](_0x404659,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c66f5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x83b1d6,_0xffdd75={}){const _0x39dc37=this['editor']['plugins']['get']('TrackChangesEditing'),_0x333001=this['_getSuggestionBlocks'](_0x86c5a4=>_0x86c5a4['is']('element','listItem')&&'numbered'===_0x86c5a4['getAttribute']('listType'));if(_0x333001['length']<0x1)return;const _0x485e0f=_0x333001['map'](_0x30cb76=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30cb76,'before'),this['editor']['model']['createPositionAt'](_0x30cb76,0x0)));this['editor']['model']['change'](()=>{_0x39dc37['markMultiRangeBlockFormat'](_0x485e0f,{'commandName':'listStart','commandParams':[{'startIndex':_0xffdd75['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x9d0ef6){if('formatBlock'!=_0x9d0ef6['type']&&'formatInline'!=_0x9d0ef6['type'])return;const _0x1b0b3b=this['editor']['locale'],{data:_0xe2200}=_0x9d0ef6;if(!_0xe2200)return;let _0x2b4715,_0x35f105;switch(_0xe2200['commandName']){case'listStyle':_0x2b4715='*Change\x20to:*\x20%0',_0x35f105={'type':'format','content':o(_0x1b0b3b,_0x2b4715,o(_0x1b0b3b,this['_getTranslationKeyForListStyle'](_0xe2200['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2b4715=_0xe2200['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x35f105={'type':'format','content':o(_0x1b0b3b,_0x2b4715)};break;case'listStart':_0x2b4715='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x35f105={'type':'format','content':o(_0x1b0b3b,_0x2b4715,_0xe2200['commandParams'][0x0]['startIndex'])};}return _0x35f105;}['_getSuggestionBlocksForListStyle'](){const _0x36088e=this['editor']['plugins']['get']('LegacyListUtils');let _0x5321cc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5321cc[0x0]?.['is']('element','listItem')&&_0x5321cc['unshift'](..._0x36088e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5321cc[_0x5321cc['length']-0x1]?.['is']('element','listItem')&&_0x5321cc['push'](..._0x36088e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5321cc=[...new Set(_0x5321cc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5321cc=_0x5321cc['filter'](_0x383eb5=>_0x383eb5['is']('element','listItem'))),_0x5321cc;}['_getSuggestionBlocks'](_0x42bd8b){const _0x175454=this['editor']['plugins']['get']('LegacyListUtils');let _0x478aa7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x42bd8b)['map'](_0x468700=>{const _0x22361e=this['editor']['model']['createPositionAt'](_0x468700,0x0);return[..._0x175454['getSiblingNodes'](_0x22361e,'backward'),..._0x175454['getSiblingNodes'](_0x22361e,'forward')];})['flat']();return _0x478aa7=[...new Set(_0x478aa7)],_0x478aa7;}['_getTranslationKeyForListStyle'](_0x63ab9f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x63ab9f)||'default')['toUpperCase']()+'_LIST_'+_0x63ab9f['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x38e08d{['afterInit'](){const _0x43a806=this['editor'];if(!_0x43a806['plugins']['has']('MediaEmbedEditing'))return;const _0x544506=_0x43a806['plugins']['get']('TrackChangesEditing'),_0x7cf73d=_0x43a806['locale'];_0x544506['enableCommand']('mediaEmbed'),_0x544506['descriptionFactory']['registerElementLabel']('media',_0x4c065b=>o(_0x7cf73d,'ELEMENT_MEDIA',_0x4c065b)),_0x43a806['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xfa5f83,{writer:_0x42e43d,options:_0x7ea6ba})=>{if(_0x7ea6ba['showSuggestionHighlights'])return _0x42e43d['createEmptyElement']('div');},'converterPriority':'high'}),_0x43a806['data']['downcastDispatcher']['on']('attribute:url:media',(_0x413f6a,_0x1aef6f,_0x3f93d8)=>{_0x3f93d8['options']['showSuggestionHighlights']&&_0x413f6a['stop']();},{'priority':'high'});}}class mt extends _0x38e08d{['afterInit'](){const _0x5283b1=this['editor'];_0x5283b1['plugins']['has']('MentionEditing')&&_0x5283b1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x38e08d{['afterInit'](){const _0x3be05b=this['editor'];if(!_0x3be05b['commands']['get']('insertMergeField'))return;_0x3be05b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x25f9f7=_0x3be05b['plugins']['get']('TrackChangesEditing'),_0x535b00=_0x3be05b['locale'];_0x25f9f7['descriptionFactory']['registerElementLabel']('mergeField',_0x102119=>o(_0x535b00,'ELEMENT_MERGE_FIELD',_0x102119)),_0x25f9f7['descriptionFactory']['registerDescriptionCallback'](_0x4b099d=>{if('insertion'!=_0x4b099d['type']&&'deletion'!=_0x4b099d['type'])return;const _0x308196=_0x4b099d['getContainedElement']();if(null==_0x308196)return;if(!_0x308196['is']('element','mergeField'))return;const _0x3ce84f=_0x3be05b['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x308196['getAttribute']('id'));return'insertion'==_0x4b099d['type']?{'type':'insertion','content':o(_0x535b00,'*Insert:*\x20%0','\x22'+_0x3ce84f+'\x22\x20'+o(_0x535b00,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x535b00,'*Remove:*\x20%0','\x22'+_0x3ce84f+'\x22\x20'+o(_0x535b00,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x38e08d{['afterInit'](){const _0x2046a5=this['editor'],_0x5befc0=_0x2046a5['plugins']['get']('TrackChangesEditing');_0x2046a5['plugins']['has']('MultiLevelList')&&(_0x5befc0['enableDefaultAttributesIntegration']('multiLevelList'),_0x5befc0['registerBlockAttribute']('listMarkerStyle'),_0x5befc0['descriptionFactory']['registerDescriptionCallback'](_0x3f5682=>this['handleDescriptions'](_0x3f5682)));}['handleDescriptions'](_0x90eb0b){const _0x1f2fd4=this['editor']['locale'],{data:_0x5d2813}=_0x90eb0b,_0x12cb41={'type':'format','content':''};if(_0x5d2813&&'listMarkerStyle'==_0x5d2813['key']){if(!_0x5d2813['oldValue'])return{'type':'format','content':o(_0x1f2fd4,'*Set\x20format:*\x20%0',o(_0x1f2fd4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d2813['newValue']+')'};if(!_0x5d2813['newValue']){let _0x144e73=_0x90eb0b['head'];for(;_0x144e73;){if(_0x144e73['data']&&'listType'==_0x144e73['data']['key']&&_0x144e73['data']['newValue'])return _0x12cb41;_0x144e73=_0x144e73['next'];}return{'type':'format','content':o(_0x1f2fd4,'*Remove\x20format:*\x20%0',o(_0x1f2fd4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d2813['oldValue']+')'};}}}}class kt extends _0x38e08d{['afterInit'](){const _0x1d7a1b=this['editor'];if(!_0x1d7a1b['plugins']['has']('PageBreakEditing'))return;_0x1d7a1b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3bcd59=_0x1d7a1b['plugins']['get']('TrackChangesEditing'),_0x2bf88e=_0x1d7a1b['locale'];_0x3bcd59['descriptionFactory']['registerElementLabel']('pageBreak',_0x376d79=>o(_0x2bf88e,'ELEMENT_PAGE_BREAK',_0x376d79));}}class bt extends _0x38e08d{['afterInit'](){const _0x176ff7=this['editor'];if(!_0x176ff7['plugins']['has']('Paragraph'))return;const _0x4ba2d3=_0x176ff7['locale'],_0x290302=_0x176ff7['plugins']['get']('TrackChangesEditing');_0x290302['descriptionFactory']['registerElementLabel']('paragraph',_0x4c4f2b=>o(_0x4ba2d3,'ELEMENT_PARAGRAPH',_0x4c4f2b)),_0x290302['enableDefaultAttributesIntegration']('paragraph'),_0x290302['enableCommand']('insertParagraph'),_0x176ff7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x176ff7),{'priority':'highest'}),_0x176ff7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xe5cc9a,_0x3c4202,_0x583988)=>{_0x583988['options']['showSuggestionHighlights']&&nr(_0x176ff7,{'showActiveMarker':!0x1})(_0xe5cc9a,_0x3c4202,_0x583988);},{'priority':'highest'});const _0x20d68b=_0x290302['descriptionFactory'];_0x20d68b['registerDescriptionCallback'](_0x2010f2=>{if('insertion'!==_0x2010f2['type'])return;const {start:_0x15e43e,end:_0x38b75c}=_0x2010f2['getFirstRange']();if(!_0x15e43e['isTouching'](_0x38b75c)||!_0x15e43e['nodeAfter'])return;const _0x2a61e2=_0x176ff7['model']['schema'],_0x56e9a6=_0x15e43e['nodeAfter'];return _0x2a61e2['isBlock'](_0x56e9a6)&&!_0x2a61e2['isLimit'](_0x56e9a6)&&_0x2a61e2['checkChild'](_0x56e9a6,'$text')?{'type':'insertion','content':o(_0x4ba2d3,'*Insert:*\x20%0',_0x20d68b['getItemLabel'](_0x56e9a6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x260533=this['editor'],_0x491a84=_0x260533['locale'];_0x260533['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x113cfc=>{if('formatBlock'!=_0x113cfc['type'])return;const {data:_0x4dd814}=_0x113cfc;return _0x4dd814&&'paragraph'==_0x4dd814['commandName']?{'type':'format','content':o(_0x491a84,'*Change\x20to:*\x20%0',o(_0x491a84,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x931a67,{showActiveMarker:_0x194d8c=!0x0}={}){return(_0x1f9a5c,_0x2ad73a,_0x3dfc54)=>{const _0x49a9f4=_0x931a67['plugins']['get']('TrackChangesEditing'),_0x31bb78=_0x2ad73a['markerRange']['start'],_0x1f02e2=_0x2ad73a['markerRange']['end'],_0x58113d=_0x931a67['model']['schema'];if(!_0x31bb78['isTouching'](_0x1f02e2)||!_0x31bb78['nodeAfter'])return;const _0x40d654=_0x31bb78['nodeAfter'];if(_0x58113d['isBlock'](_0x40d654)&&!_0x58113d['isLimit'](_0x40d654)&&_0x58113d['checkChild'](_0x40d654,'$text')){if(!_0x3dfc54['consumable']['consume'](_0x2ad73a['markerRange'],_0x1f9a5c['name']))return;const {authorId:_0x3a3a88}=_0x49a9f4['_splitMarkerName'](_0x2ad73a['markerName']),_0x536910=_0x3dfc54['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3a3a88}),_0x20f968=_0x3dfc54['mapper']['toViewPosition'](_0x1f02e2);_0x194d8c&&_0x49a9f4['activeMarkers']['includes'](_0x2ad73a['markerName'])&&_0x3dfc54['writer']['addClass']('ck-suggestion-marker--active',_0x536910),_0x3dfc54['writer']['insert'](_0x20f968,_0x536910),_0x3dfc54['mapper']['bindElementToMarker'](_0x536910,_0x2ad73a['markerName']);}};}class wt extends _0x38e08d{['afterInit'](){const _0x409b86=this['editor'];if(!_0x409b86['plugins']['has']('RemoveFormatEditing'))return;_0x409b86['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeb02ce=this['editor'];_0xeb02ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x469cf0=>{if('formatBlock'!=_0x469cf0['type']&&'formatInline'!=_0x469cf0['type'])return;const {data:_0x255725}=_0x469cf0;return _0x255725&&'removeFormat'==_0x255725['commandName']?{'type':'format','content':o(_0xeb02ce['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x38e08d{['afterInit'](){const _0x6cdb1a=this['editor'];if(!_0x6cdb1a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5079ec=_0x6cdb1a['plugins']['get']('TrackChangesEditing');_0x5079ec['enableCommand']('goToPreviousRestrictedEditingException'),_0x5079ec['enableCommand']('goToNextRestrictedEditingException');const _0x2656a2=_0x6cdb1a['plugins']['get']('RestrictedEditingModeEditing');_0x2656a2['enableCommand']('trackChanges'),_0x2656a2['enableCommand']('acceptSuggestion'),_0x2656a2['enableCommand']('discardSuggestion'),_0x2656a2['enableCommand']('acceptAllSuggestions'),_0x2656a2['enableCommand']('discardAllSuggestions'),_0x2656a2['enableCommand']('acceptSelectedSuggestions'),_0x2656a2['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x38e08d{static get['requires'](){return[_0x96eaf3];}['init'](){const _0x3fc394=this['editor'],_0x34faae=_0x3fc394['plugins']['get']('TrackChangesEditing');_0x34faae['enableCommand']('shiftEnter'),_0x3fc394['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x3fc394),{'priority':'high'}),_0x3fc394['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x3fc394),{'priority':'high'}),_0x3fc394['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c42f0,_0x4513b0,_0x789351)=>{_0x789351['options']['showSuggestionHighlights']&&ge(_0x3fc394,{'showActiveMarker':!0x1})(_0x3c42f0,_0x4513b0,_0x789351);}),_0x34faae['descriptionFactory']['registerElementLabel']('softBreak',_0x3046b9=>o(_0x3fc394['locale'],'ELEMENT_LINE_BREAK',_0x3046b9));}}function ge(_0x37cf08,{showActiveMarker:_0x495448=!0x0}={}){return(_0x1009dd,_0x2aa2c3,_0x447ab7)=>{const _0x9e2153=_0x37cf08['plugins']['get']('TrackChangesEditing');if(!_0x447ab7['consumable']['test'](_0x2aa2c3['markerRange'],_0x1009dd['name']))return;const _0x150de8=_0x37cf08['model'];for(const _0x2e0257 of _0x2aa2c3['markerRange']['getItems']()){if(!_0x2e0257['is']('element','softBreak'))continue;const _0x2c1d2f='deletion'==_0x2aa2c3['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x188d20}=_0x9e2153['_splitMarkerName'](_0x2aa2c3['markerName']),_0x41ff0d=_0x447ab7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c1d2f,'data-author-id':_0x188d20}),_0x304d59=_0x447ab7['mapper']['toViewPosition'](_0x150de8['createPositionBefore'](_0x2e0257));_0x495448&&_0x9e2153['activeMarkers']['includes'](_0x2aa2c3['markerName'])&&_0x447ab7['writer']['addClass']('ck-suggestion-marker--active',_0x41ff0d),_0x447ab7['writer']['insert'](_0x304d59,_0x41ff0d),_0x447ab7['mapper']['bindElementToMarker'](_0x41ff0d,_0x2aa2c3['markerName']);}};}class St extends _0x38e08d{['afterInit'](){const _0x1f2d01=this['editor'],_0x267961=_0x1f2d01['model'],_0x443c35=_0x1f2d01['locale'];if(!_0x1f2d01['plugins']['has']('StandardEditingModeEditing'))return;const _0x4173a0=_0x1f2d01['plugins']['get']('TrackChangesEditing'),_0x4d7ea2='restrictedEditingException',_0x2d2077=_0x1f2d01['commands']['get'](_0x4d7ea2);_0x4173a0['enableCommand'](_0x4d7ea2,(_0x52fe04,_0x45e154={})=>{const _0xc9800f=_0x267961['document']['selection'];if(_0xc9800f['isCollapsed'])return void _0x52fe04(_0x45e154);const _0x466b12=void 0x0!==_0x45e154['forceValue']?_0x45e154['forceValue']:!_0x2d2077['value'];_0x267961['change'](()=>{const _0x4093a9=Array['from'](_0xc9800f['getRanges']());for(const _0x102d9c of _0x4093a9){const _0x1e396f=_0x466b12?[_0x102d9c]:io(_0x4d7ea2,_0x102d9c,_0x267961);for(const _0x553677 of _0x1e396f)_0x4173a0['markInlineFormat'](_0x553677,{'commandName':_0x4d7ea2,'commandParams':[{'forceValue':_0x466b12}]});}});}),_0x4173a0['descriptionFactory']['registerDescriptionCallback'](_0xef7bc8=>{if('formatBlock'!=_0xef7bc8['type']&&'formatInline'!=_0xef7bc8['type'])return;const {data:_0xa832a3}=_0xef7bc8;return _0xa832a3&&_0xa832a3['commandName']==_0x4d7ea2?_0xa832a3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x443c35,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x443c35,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x38e08d{['afterInit'](){const _0x15ea1f=this['editor'];if(!_0x15ea1f['plugins']['has']('Style')||!_0x15ea1f['plugins']['has']('DataSchema'))return;const _0x56723e=_0x15ea1f['plugins']['get']('TrackChangesEditing'),_0xa5bf93=_0x15ea1f['locale'],_0x104b28=_0x15ea1f['config']['get']('style')||{},_0x942542=_0x15ea1f['plugins']['get']('GeneralHtmlSupport'),_0x27c365=_0x15ea1f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x15ea1f['plugins']['get']('DataSchema'),_0x104b28['definitions']);_0x56723e['enableDefaultAttributesIntegration']('style');const _0x78fac6=new Set();for(const _0xe9dbf7 of _0x27c365['block']){const _0x2feffb=_0x942542['getGhsAttributeNameForElement'](_0xe9dbf7['element']);_0x78fac6['add'](_0x2feffb);}const _0x2a5738=new Set();for(const _0x47d0e7 of _0x27c365['inline']){const _0xa9fc74=_0x942542['getGhsAttributeNameForElement'](_0x47d0e7['element']);_0x2a5738['add'](_0xa9fc74);for(const _0x522124 of _0x47d0e7['ghsAttributes'])_0x2a5738['add'](_0x522124);}for(const _0x5151db of _0x78fac6)_0x56723e['registerBlockAttribute'](_0x5151db),_0x56723e['descriptionFactory']['registerAttributeLabel'](_0x5151db,o(_0xa5bf93,'FORMAT_STYLE'));for(const _0x25db88 of _0x2a5738)_0x56723e['registerInlineAttribute'](_0x25db88),_0x56723e['descriptionFactory']['registerAttributeLabel'](_0x25db88,o(_0xa5bf93,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4583bb=this['editor'],_0x2fac48=_0x4583bb['locale'];_0x4583bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b1ace=>{if('formatBlock'!=_0x5b1ace['type']&&'formatInline'!=_0x5b1ace['type'])return;const {data:_0x4cb1d5}=_0x5b1ace;return _0x4cb1d5&&'style'===_0x4cb1d5['commandName']?_0x4cb1d5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fac48,'*Set\x20format:*\x20%0',_0x4cb1d5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2fac48,'*Remove\x20format:*\x20%0',_0x4cb1d5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x38e08d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x324ba5){super(_0x324ba5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x259800=this['editor'],_0xb62d3f=_0x259800['model']['document']['selection'];if(!_0x259800['plugins']['has']('TableEditing'))return;const _0x549a2d=_0x259800['locale'],_0x2a5eb0=_0x259800['plugins']['get']('TrackChangesEditing'),_0x204884=_0x259800['plugins']['get']('TableUtils');_0x2a5eb0['descriptionFactory']['registerElementLabel']('table',_0x24c6e1=>o(_0x549a2d,'ELEMENT_TABLE',_0x24c6e1)),this['_setupColumnsRowsFixing'](),_0x2a5eb0['enableCommand']('insertTable'),_0x2a5eb0['enableCommand']('selectTableRow'),_0x2a5eb0['enableCommand']('selectTableColumn');for(const _0x3f636b of['insertTableRowAbove','insertTableRowBelow']){const _0x331627=_0x259800['commands']['get'](_0x3f636b);_0x2a5eb0['enableCommand'](_0x3f636b,_0x5b5400=>{_0x259800['model']['change'](_0x2dbe97=>{_0x5b5400();const _0x83cd0e='above'===_0x331627['order'],_0x43b7f1=_0x204884['getSelectionAffectedTableCells'](_0xb62d3f),_0x49b6b5=_0x204884['getRowIndexes'](_0x43b7f1),_0x88d0a4=_0x83cd0e?_0x49b6b5['first']-0x1:_0x49b6b5['last']+0x1,_0x40a1a4=_0x43b7f1[0x0]['findAncestor']('table'),_0x302ada=_0x204884['createTableWalker'](_0x40a1a4,{'startRow':_0x88d0a4,'endRow':_0x88d0a4}),_0x116d29=Array['from'](_0x302ada)['map'](_0xf8a1eb=>_0x2dbe97['createRangeOn'](_0xf8a1eb['cell']));_0x2a5eb0['markMultiRangeInsertion'](_0x116d29,'tableRow');});});}for(const _0x50dae7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x32e1de=_0x259800['commands']['get'](_0x50dae7);_0x2a5eb0['enableCommand'](_0x50dae7,_0x6aab21=>{_0x259800['model']['change'](_0x5a64c7=>{_0x6aab21();const _0x31b6a1='left'===_0x32e1de['order'],_0x384916=_0x204884['getSelectionAffectedTableCells'](_0xb62d3f),_0x56330e=_0x204884['getColumnIndexes'](_0x384916),_0x2cbeff=_0x31b6a1?_0x56330e['first']-0x1:_0x56330e['last']+0x1,_0xa354bf=_0x384916[0x0]['findAncestor']('table'),_0x1fc0f9=_0x204884['createTableWalker'](_0xa354bf,{'startRow':0x0,'column':_0x2cbeff,'includeAllSlots':!0x1}),_0x169cf6=Array['from'](_0x1fc0f9)['map'](_0x27b78b=>_0x5a64c7['createRangeOn'](_0x27b78b['cell']));_0x2a5eb0['markMultiRangeInsertion'](_0x169cf6,'tableColumn');});});}for(const _0x11c970 of['removeTableRow','removeTableColumn']){const _0x52c5bb=_0x11c970['substr'](0xb),_0x14f1f8=_0x52c5bb['toLowerCase'](),_0x291881=_0x14f1f8['substr'](0x0,0x3)+'span',_0x172c46='table'+_0x52c5bb,_0x444054='min'+_0x52c5bb,_0x34b752='max'+_0x52c5bb;_0x2a5eb0['enableCommand'](_0x11c970,()=>{_0x259800['model']['change'](_0x3b2412=>{const _0x287818=_0x204884['getSelectionAffectedTableCells'](_0xb62d3f),_0x4ed5ad=_0x287818[0x0]['findAncestor']('table');let _0x262835;if('removeTableRow'==_0x11c970){const _0x32da69=_0x204884['getRowIndexes'](_0x287818);_0x262835={'startRow':_0x32da69['first'],'endRow':_0x32da69['last'],'includeAllSlots':!0x0};}else{const _0x368bfb=_0x204884['getColumnIndexes'](_0x287818);_0x262835={'startColumn':_0x368bfb['first'],'endColumn':_0x368bfb['last'],'includeAllSlots':!0x0};}const _0x59ce44=_0x204884['createTableWalker'](_0x4ed5ad,_0x262835),_0x429a65=Array['from'](_0x59ce44)['map'](({cell:_0x3dc78d})=>_0x3dc78d),_0x3b9306=be(_0x429a65['filter'](_0x16bccf=>_0x16bccf['hasAttribute'](_0x291881))),_0x162d93=be(_0x429a65['filter'](_0x1a3e85=>!_0x1a3e85['hasAttribute'](_0x291881)))['map'](_0x81ff04=>_0x3b2412['createRangeOn'](_0x81ff04)),_0x23c356=_0x2a5eb0['markMultiRangeDeletion'](_0x162d93,_0x172c46);if(_0x23c356&&('tableRow'==_0x23c356['subType']||'tableColumn'==_0x23c356['subType'])){const _0x150470=this['_getSuggestionCoords'](_0x23c356);for(const _0x58c8ef of _0x3b9306){const _0x40e89b=_0x3b2412['createRangeOn'](_0x58c8ef),_0xe7b800=_0x204884['getCellLocation'](_0x58c8ef),_0x5cd78d=_0x58c8ef['getAttribute'](_0x291881)-0x1,_0x86074=_0x150470[_0x444054],_0x23df96=_0x150470[_0x34b752];_0x86074<=_0xe7b800[_0x14f1f8]&&_0xe7b800[_0x14f1f8]+_0x5cd78d<=_0x23df96&&_0x23c356['addRange'](_0x40e89b);}}});});}function _0xb1da74(_0xb7c1d2){const _0x2a15fe=Array['from'](_0xb62d3f['getRanges']())['map'](_0xe0474c=>_0xe83a0b['fromRange'](_0xe0474c));_0x259800['model']['change'](_0x56e365=>{const _0x42d798=_0x56e365['batch'];_0xb7c1d2=_0xb7c1d2['filter'](_0x5db38f=>'$graveyard'!=_0x5db38f['root']['rootName']),_0x56e365['setSelection'](_0xb7c1d2),_0x259800['commands']['get']('removeTableRow')['refresh'](),_0x259800['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x259800['model']['enqueueChange'](()=>{_0x259800['model']['enqueueChange'](_0x42d798,_0x3b848a=>{const _0x54560a=_0x2a15fe['filter'](_0x212124=>'$graveyard'!=_0x212124['root']['rootName']);_0x54560a['length']>0x0&&_0x3b848a['setSelection'](_0x54560a);for(const _0x42f04a of _0x2a15fe)_0x42f04a['detach']();});});});}function _0x3c8ff5(_0x3c50c6){_0x259800['model']['change'](_0x3fd753=>{const _0xebf03e=Array['from'](_0xb62d3f['getRanges']())['map'](_0x3c17e1=>_0xe83a0b['fromRange'](_0x3c17e1)),_0x3b0d4d=[];for(const _0x5d9561 of _0x3c50c6)for(const _0x455be of _0x5d9561['getItems']({'shallow':!0x0}))_0x3b0d4d['push'](_0x455be);for(const _0x41ef73 of _0x3b0d4d)'$graveyard'!=_0x41ef73['root']['rootName']&&(_0x3fd753['setSelection'](_0x3fd753['createPositionAt'](_0x41ef73,0x0)),_0x259800['commands']['get']('removeTableColumn')['refresh'](),_0x259800['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1ecb69=_0xebf03e['filter'](_0x3bfcc0=>'$graveyard'!=_0x3bfcc0['root']['rootName']);_0x1ecb69['length']>0x0&&_0x3fd753['setSelection'](_0x1ecb69);for(const _0x434280 of _0xebf03e)_0x434280['detach']();});}function _0x2f3724(_0x145581,_0x71465b){return _0x71465b['every'](_0x1734f3=>_0x145581['some'](_0x714c0f=>_0x714c0f['end']['isEqual'](_0x1734f3['start'])||_0x1734f3['end']['isEqual'](_0x714c0f['start'])));}function _0x314ed4(_0x5ec42a,_0x3edd9a){return!_0x5ec42a['some'](_0x5afba2=>_0x3edd9a['some'](_0x439a0e=>_0x5afba2['isIntersecting'](_0x439a0e)))&&_0x5ec42a['some'](_0x373555=>_0x3edd9a['some'](_0x5d1bf3=>_0x373555['end']['isTouching'](_0x5d1bf3['start'])));}_0x259800['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x232758,_0x36504c,_0x1c3c0c)=>{if(!_0x1c3c0c['options']['showSuggestionHighlights'])return;const _0x42ad69=_0x36504c['item'];if(!_0x42ad69)return;const _0x81af69=_0x1c3c0c['mapper']['toViewElement'](_0x42ad69);function _0x1a9f5e(_0x45c7fc){return Array['isArray'](_0x45c7fc)?_0x45c7fc:[_0x45c7fc];}_0x81af69&&'tableCell'===_0x42ad69['name']&&_0x187d70(_0x81af69,_0x1c3c0c['writer'],(_0x239aa8,_0x10a7ef,_0x356b82)=>_0x356b82['addClass'](_0x1a9f5e(_0x10a7ef['classes']),_0x239aa8),(_0x58846b,_0x3deb09,_0x1412d2)=>_0x1412d2['removeClass'](_0x1a9f5e(_0x3deb09['classes']),_0x58846b));},{'priority':'highest'}),_0x2a5eb0['descriptionFactory']['registerDescriptionCallback'](_0x10e15c=>{if('insertion'!=_0x10e15c['type']&&'deletion'!=_0x10e15c['type'])return;const _0x145c3f=_0x10e15c['getContainedElement']();if(null!=_0x145c3f&&_0x145c3f['is']('element','table')){if('insertion'==_0x10e15c['type']){const _0x54302f=_0x10e15c['getItems']()['filter'](_0x2dd06c=>_0x2dd06c['is']('$textProxy'))['map'](_0x44c428=>_0x44c428['data']);if(_0x54302f['length'])return{'type':'insertion','content':o(_0x549a2d,'*Insert:*\x20%0',o(_0x549a2d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x54302f['join']('\x20')+'\x22'))};}if('deletion'==_0x10e15c['type']){const _0x5a9c35=_0x10e15c['getItems']()['filter'](_0x17640f=>_0x17640f['is']('$textProxy'))['map'](_0x48cf5a=>_0x48cf5a['data']);if(_0x5a9c35['length'])return{'type':'deletion','content':o(_0x549a2d,'*Remove:*\x20%0',o(_0x549a2d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a9c35['join']('\x20')+'\x22'))};}}}),_0x2a5eb0['descriptionFactory']['registerDescriptionCallback'](_0x1471e2=>{if('tableRow'==_0x1471e2['subType']){const _0x225ca4=_0x1471e2['getItems']()['filter'](_0x1083a5=>_0x1083a5['is']('$textProxy'))['map'](_0x156650=>_0x156650['data']),_0x1fe924=this['_getSuggestionCoords'](_0x1471e2),_0x41765b=_0x1fe924['maxRow']-_0x1fe924['minRow']+0x1;if('insertion'==_0x1471e2['type'])return _0x225ca4['length']?{'type':'insertion','content':o(_0x549a2d,'*Insert:*\x20%0',o(_0x549a2d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41765b,'\x22'+_0x225ca4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x549a2d,'*Insert:*\x20%0',o(_0x549a2d,'ELEMENT_TABLE_ROW',_0x41765b))};if('deletion'==_0x1471e2['type'])return _0x225ca4['length']?{'type':'deletion','content':o(_0x549a2d,'*Remove:*\x20%0',o(_0x549a2d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41765b,'\x22'+_0x225ca4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x549a2d,'*Remove:*\x20%0',o(_0x549a2d,'ELEMENT_TABLE_ROW',_0x41765b))};}if('tableColumn'==_0x1471e2['subType']){const _0x344063=_0x1471e2['getItems']()['filter'](_0x1f85ec=>_0x1f85ec['is']('$textProxy'))['map'](_0x12a036=>_0x12a036['data']),_0x19e56f=this['_getSuggestionCoords'](_0x1471e2),_0x1dc0d2=_0x19e56f['maxColumn']-_0x19e56f['minColumn']+0x1;if('insertion'==_0x1471e2['type'])return _0x344063['length']?{'type':'insertion','content':o(_0x549a2d,'*Insert:*\x20%0',o(_0x549a2d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1dc0d2,'\x22'+_0x344063['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x549a2d,'*Insert:*\x20%0',o(_0x549a2d,'ELEMENT_TABLE_COLUMN',_0x1dc0d2))};if('deletion'==_0x1471e2['type'])return _0x344063['length']?{'type':'deletion','content':o(_0x549a2d,'*Remove:*\x20%0',o(_0x549a2d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1dc0d2,'\x22'+_0x344063['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x549a2d,'*Remove:*\x20%0',o(_0x549a2d,'ELEMENT_TABLE_COLUMN',_0x1dc0d2))};}}),_0x2a5eb0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xb1da74),_0x2a5eb0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xb1da74),_0x2a5eb0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3c8ff5),_0x2a5eb0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3c8ff5),_0x2a5eb0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2f3724),_0x2a5eb0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2f3724),_0x2a5eb0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x314ed4),_0x2a5eb0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x314ed4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x21c3c2=this['editor'],_0x22ef25=_0x21c3c2['model']['document']['selection'];return(_0x4b47e5,_0x319c6e)=>{_0x21c3c2['model']['change'](_0x318bb8=>{const {commandName:_0x51fc09,commandParams:_0x3987f7}=_0x319c6e;let _0x477b91=_0x4b47e5[0x0]['end']['nodeBefore'];_0x3987f7&&_0x3987f7[0x0]&&!0x1===_0x3987f7[0x0]['forceValue']&&(_0x477b91=_0x4b47e5[0x0]['start']['nodeAfter']);const _0x205a2c=_0x318bb8['createRangeIn'](_0x477b91);if('$graveyard'==_0x205a2c['root']['rootName'])return;const _0x48582d=Array['from'](_0x22ef25['getRanges']())['map'](_0x521537=>_0xe83a0b['fromRange'](_0x521537));_0x318bb8['setSelection'](_0x205a2c),_0x21c3c2['commands']['get'](_0x51fc09)['refresh'](),_0x3987f7['push']({'forceDefaultExecution':!0x0}),_0x21c3c2['execute'](_0x51fc09,..._0x3987f7);const _0x2a1bde=_0x48582d['filter'](_0x2f21cd=>'$graveyard'!=_0x2f21cd['root']['rootName']);_0x2a1bde['length']>0x0&&_0x318bb8['setSelection'](_0x2a1bde);for(const _0x113d50 of _0x48582d)_0x113d50['detach']();});};}['_getCoordsForCells'](_0x232b6b){const _0x40d9d5=this['editor']['plugins']['get']('TableUtils');let _0xdfde62=Number['MAX_SAFE_INTEGER'],_0x227a45=Number['MIN_SAFE_INTEGER'],_0x2555ca=Number['MAX_SAFE_INTEGER'],_0x23581f=Number['MIN_SAFE_INTEGER'];for(const _0x1e6aff of _0x232b6b){if('$graveyard'==_0x1e6aff['root']['rootName'])continue;const {row:_0x479be7,column:_0x11a505}=_0x40d9d5['getCellLocation'](_0x1e6aff),_0x1bb1b6=_0x1e6aff['hasAttribute']('rowspan')?_0x1e6aff['getAttribute']('rowspan')-0x1:0x0,_0x2cfec3=_0x1e6aff['hasAttribute']('colspan')?_0x1e6aff['getAttribute']('colspan')-0x1:0x0;_0xdfde62=_0x479be7<_0xdfde62?_0x479be7:_0xdfde62,_0x227a45=_0x479be7+_0x1bb1b6>_0x227a45?_0x479be7+_0x1bb1b6:_0x227a45,_0x2555ca=_0x11a505<_0x2555ca?_0x11a505:_0x2555ca,_0x23581f=_0x11a505+_0x2cfec3>_0x23581f?_0x11a505+_0x2cfec3:_0x23581f;}return{'minRow':_0xdfde62,'maxRow':_0x227a45,'minColumn':_0x2555ca,'maxColumn':_0x23581f};}['_setupColumnsRowsFixing'](){const _0x58186f=this['editor'],_0xbf099e=_0x58186f['plugins']['get']('TrackChangesEditing'),_0x23dd5f=_0x58186f['plugins']['get']('TableUtils');_0x58186f['model']['document']['on']('change:data',()=>{const _0x33f419=Array['from'](_0x58186f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15db93,data:_0xbe93ad}of _0x33f419){const {group:_0x5dc85f,id:_0x49ee98,subType:_0xf42623}=_0xbf099e['_splitMarkerName'](_0x15db93);if('suggestion'!=_0x5dc85f)continue;if(null!=_0xbe93ad['oldRange'])continue;const _0x50c2bb=_0xbf099e['getSuggestion'](_0x49ee98);this['_tablePostFixingSubtypes']['includes'](_0xf42623)&&this['_tableSuggestions']['add'](_0x50c2bb);}},{'priority':'low'});const _0x2a5795=(_0x420fbb,_0x5d95e1)=>{let _0x45288e=!0x1;const _0x15acd3=_0x5d95e1['createRangeOn'](_0x420fbb),_0x1efd7f=_0x420fbb['findAncestor']('table'),_0x89ccdc=_0x23dd5f['getCellLocation'](_0x420fbb);for(const _0x48a0b7 of this['_tableSuggestions']){const _0x42b312=_0x48a0b7['subType'],_0x1a56b0=_0x42b312['startsWith']('tablePaste'),_0x3d32cf=_0x42b312['substr'](_0x1a56b0?0xa:0x5),_0x3d6d65=_0x3d32cf['toLowerCase'](),_0xed4901=_0x3d6d65['substr'](0x0,0x3)+'span',_0xf56d99='min'+_0x3d32cf,_0x42bf5c='max'+_0x3d32cf;if(!_0x48a0b7['isInContent'])continue;if(_0x1efd7f!=_0x48a0b7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x48a0b7['isIntersectingWithRange'](_0x15acd3))continue;const _0x5c4bff=_0x420fbb['hasAttribute'](_0xed4901)?_0x420fbb['getAttribute'](_0xed4901)-0x1:0x0,_0x2f3b20=this['_getSuggestionCoords'](_0x48a0b7),_0x732c1=_0x2f3b20[_0xf56d99],_0x3a4a74=_0x2f3b20[_0x42bf5c];_0x732c1<=_0x89ccdc[_0x3d6d65]&&_0x89ccdc[_0x3d6d65]+_0x5c4bff<=_0x3a4a74&&(_0x48a0b7['addRange'](_0x15acd3),_0x45288e=!0x0);}return _0x45288e;};_0x58186f['model']['document']['registerPostFixer'](_0x3bab1e=>{let _0x5803bb=!0x1;for(const _0x31492e of _0x58186f['model']['document']['differ']['getChanges']())if('insert'==_0x31492e['type']){if('tableRow'==_0x31492e['name']){for(const _0x3e4f8c of _0x31492e['position']['nodeAfter']['getChildren']())_0x5803bb=_0x5803bb||_0x2a5795(_0x3e4f8c,_0x3bab1e);}else'tableCell'==_0x31492e['name']&&(_0x5803bb=_0x5803bb||_0x2a5795(_0x31492e['position']['nodeAfter'],_0x3bab1e));}return _0x5803bb;});}['_getSuggestionCoords'](_0x3ede01){return this['_getCoordsForCells'](_0x3ede01['getRanges']()['map'](_0x3ba310=>_0x3ba310['start']['nodeAfter']));}}function be(_0x134e2a){return Array['from'](new Set(_0x134e2a)['values']());}class vt extends _0x38e08d{static get['requires'](){return[It];}['afterInit'](){const _0x133427=this['editor'],_0x45ab60=_0x133427['model']['document']['selection'],_0x57e893=_0x133427['locale'];if(!_0x133427['plugins']['has']('TableEditing'))return;const _0x11de10=_0x133427['plugins']['get']('TrackChangesEditing'),_0x29fddf=_0x133427['plugins']['get']('TableUtils'),_0x78537b=_0x133427['plugins']['get'](It);_0x78537b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x11de10['enableCommand']('mergeTableCells',()=>{const _0x504335=_0x29fddf['getSelectionAffectedTableCells'](_0x133427['model']['document']['selection']);_0x133427['model']['change'](()=>{_0x11de10['markMultiRangeBlockFormat'](_0x504335,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x133427['commands']['get']('mergeTableCells')['on']('execute',(_0x2501a9,_0x4bc9e0)=>{_0x133427['commands']['get']('trackChanges')['value']&&(_0x4bc9e0['length']>0x0&&_0x4bc9e0[_0x4bc9e0['length']-0x1]&&_0x4bc9e0[_0x4bc9e0['length']-0x1]['forceDefaultExecution']||_0x11de10['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2501a9['stop']());},{'priority':'highest'});for(const _0x5e15c7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x370262=_0x133427['commands']['get'](_0x5e15c7);_0x11de10['enableCommand'](_0x5e15c7,()=>{const _0x180ea5=_0x133427['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x197e3d=>_0x197e3d['is']('element','tableCell')),_0x50b5ef=_0x370262['value'];_0x133427['model']['change'](()=>{_0x11de10['markMultiRangeBlockFormat']([_0x180ea5,_0x50b5ef],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x17905d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x31e2a4=_0x133427['commands']['get'](_0x17905d);_0x11de10['enableCommand'](_0x17905d,()=>{const _0x39da79=_0x29fddf['getSelectionAffectedTableCells'](_0x133427['model']['document']['selection'])[0x0],_0x4cf52c=_0x39da79['findAncestor']('table'),{column:_0x5a8dae,row:_0x403e1b}=_0x29fddf['getCellLocation'](_0x39da79);let _0x42cb2d=[];if('horizontally'==_0x31e2a4['direction']){const _0x5aef77=_0x29fddf['createTableWalker'](_0x4cf52c,{'startRow':_0x403e1b,'endRow':_0x403e1b,'includeAllSlots':!0x0});_0x42cb2d=Array['from'](_0x5aef77)['map'](_0x25e959=>_0x25e959['cell']);}else{const _0x39e7ee=_0x29fddf['createTableWalker'](_0x4cf52c,{'column':_0x5a8dae,'includeAllSlots':!0x0});_0x42cb2d=Array['from'](_0x39e7ee)['map'](_0x52b4e6=>_0x52b4e6['cell']);}_0x133427['model']['change'](_0x112b88=>{_0x11de10['markBlockFormat'](_0x112b88['createRangeOn'](_0x39da79),{'commandName':_0x17905d,'commandParams':[]},_0x42cb2d,_0x17905d);});});}_0x11de10['descriptionFactory']['registerDescriptionCallback'](_0xf60983=>{if('formatBlock'!=_0xf60983['type']&&'formatInline'!=_0xf60983['type'])return;const {data:_0x43023f}=_0xf60983;return _0x43023f&&'mergeTableCells'==_0x43023f['commandName']?{'type':'format','content':o(_0x57e893,'*Merge\x20cells*')}:void 0x0;}),_0x11de10['descriptionFactory']['registerDescriptionCallback'](_0x9d2c99=>{if('formatBlock'!=_0x9d2c99['type']&&'formatInline'!=_0x9d2c99['type'])return;const {data:_0x47c883}=_0x9d2c99;return _0x47c883?'splitTableCellVertically'==_0x47c883['commandName']?{'type':'format','content':o(_0x57e893,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x47c883['commandName']?{'type':'format','content':o(_0x57e893,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2a9ac3=_0x78537b['_acceptFormatSuggestionCallbackFactory']();for(const _0x11fb6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x11de10['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11fb6,'accept',_0x2a9ac3);for(const _0x11f3d2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x11de10['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11f3d2,'accept',_0x2a9ac3);_0x11de10['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x512042=>{_0x133427['model']['change'](_0x5c3cee=>{const _0x1ae363=Array['from'](_0x45ab60['getRanges']())['map'](_0x12fa4c=>_0xe83a0b['fromRange'](_0x12fa4c));_0x5c3cee['setSelection'](_0x512042),_0x133427['commands']['get']('mergeTableCells')['refresh'](),_0x133427['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x25a3a6=_0x1ae363['filter'](_0x1da539=>'$graveyard'!=_0x1da539['root']['rootName']);_0x25a3a6['length']>0x0&&_0x5c3cee['setSelection'](_0x25a3a6);for(const _0x43e88c of _0x1ae363)_0x43e88c['detach']();});});for(const _0xa31b3b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5e8456=_0x133427['commands']['get'](_0xa31b3b);_0x5e8456['on']('set:isEnabled',(_0x234589,_0x218390,_0x2a23c1)=>{if(_0x2a23c1){const _0x44f7f4=_0x133427['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x266b5e=>_0x266b5e['is']('element','tableCell'));this['_areMergableCells'](_0x5e8456['value'],_0x44f7f4)||(_0x234589['return']=!0x1,_0x234589['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x48ce44=this['editor']['commands']['get']('mergeTableCells'),_0x3a5534=this['editor']['plugins']['get']('TableUtils');if(!_0x48ce44['isEnabled'])return!0x1;const _0x40b1b6=_0x3a5534['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1acb1b of _0x40b1b6)for(const _0x4e8ac8 of _0x40b1b6)if(_0x1acb1b!=_0x4e8ac8&&!this['_areMergableCells'](_0x1acb1b,_0x4e8ac8))return!0x1;return!0x0;}['_areMergableCells'](_0x37eae8,_0x312ed5){const _0x5e17b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc86b06=this['editor']['model']['createRangeOn'](_0x37eae8),_0x4c74bb=this['editor']['model']['createRangeOn'](_0x312ed5),_0x216e83=new Set(),_0x5b74f7=new Set();for(const _0x399cc5 of _0x5e17b1['getSuggestions']())if(('insertion'==_0x399cc5['type']||'deletion'==_0x399cc5['type']||'mergeTableCells'==_0x399cc5['subType'])&&_0x399cc5['isInContent']){for(const _0x5b2cad of _0x399cc5['getRanges']())_0x5b2cad['containsRange'](_0xc86b06,!0x0)&&_0x216e83['add'](_0x399cc5['type']+':'+_0x399cc5['author']['id']),_0x5b2cad['containsRange'](_0x4c74bb,!0x0)&&_0x5b74f7['add'](_0x399cc5['type']+':'+_0x399cc5['author']['id']);}if(_0x216e83['size']!=_0x5b74f7['size'])return!0x1;for(const _0x3ed894 of _0x216e83)if(!_0x5b74f7['has'](_0x3ed894))return!0x1;return!0x0;}}class Ct extends _0x38e08d{static get['requires'](){return[It];}['afterInit'](){const _0x1a9d5c=this['editor'];if(!_0x1a9d5c['plugins']['has']('TableEditing'))return;const _0x350e4e=_0x1a9d5c['locale'],_0x421033=_0x1a9d5c['plugins']['get']('TrackChangesEditing');_0x421033['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x421033['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x421033['registerBlockAttribute']('headingRows'),_0x421033['registerBlockAttribute']('headingColumns'),_0x421033['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x350e4e,'FORMAT_HEADER_ROW')),_0x421033['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x350e4e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x37d19d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x133e4e=this['editor']['plugins']['get']('TableUtils'),_0x329a4a=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x1c75c4({showActiveMarker:_0x535c4e=!0x0,setDataAttribute:_0x2ad1d2=!0x0}={}){return(_0x446bfe,_0x3cef78,_0x571915)=>{const {type:_0xd6e2a4,id:_0x4b56b4}=_0x37d19d['_splitMarkerName'](_0x3cef78['markerName']),_0x3f9c6d=_0x37d19d['getSuggestion'](_0x4b56b4),_0x2e098e=_0x3f9c6d['data'];if('formatBlock'!=_0x3f9c6d['type']||!_0x2e098e||'setTableColumnHeader'!=_0x2e098e['commandName'])return;if(_0x3cef78['item'])return void _0x446bfe['stop']();if(!_0x571915['consumable']['consume'](_0x3cef78['markerRange'],_0x446bfe['name']))return;const _0x320177=_0x3cef78['markerRange']['start']['nodeAfter'],_0x23c7b8=_0x3cef78['markerRange']['end']['nodeBefore'],_0x447ef0=_0x320177['parent']['parent'],{column:_0x58ee0a}=_0x133e4e['getCellLocation'](_0x320177),{column:_0x56772f}=_0x133e4e['getCellLocation'](_0x23c7b8);for(let _0x5c8cb3=_0x58ee0a;_0x5c8cb3<=_0x56772f;_0x5c8cb3++){const _0x235825=_0x133e4e['createTableWalker'](_0x447ef0,{'column':_0x5c8cb3,'includeAllSlots':!0x1});for(const _0x1f4b0a of _0x235825){const _0x3df756=_0x1f4b0a['cell'],_0x5db9a0=_0x571915['mapper']['toViewElement'](_0x3df756);_0x571915['writer']['addClass']('ck-suggestion-marker-'+_0xd6e2a4,_0x5db9a0),_0x2ad1d2&&_0x571915['writer']['setAttribute']('data-suggestion',_0x4b56b4,_0x5db9a0),_0x571915['mapper']['bindElementToMarker'](_0x5db9a0,_0x3cef78['markerName']),_0x535c4e&&(_0x37d19d['activeMarkers']['includes'](_0x3cef78['markerName'])?_0x571915['writer']['addClass']('ck-suggestion-marker--active',_0x5db9a0):_0x571915['writer']['removeClass']('ck-suggestion-marker--active',_0x5db9a0));}}};}_0x37d19d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x329a4a),_0x37d19d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x329a4a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1c75c4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x538a35,_0x114ba1,_0x2d3250)=>{_0x2d3250['options']['showSuggestionHighlights']&&_0x1c75c4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x538a35,_0x114ba1,_0x2d3250);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c95b0,_0x52d63d,_0x2f8255)=>{const {type:_0x289890,id:_0x920a84}=_0x37d19d['_splitMarkerName'](_0x52d63d['markerName']),_0x1e8f2a=_0x37d19d['getSuggestion'](_0x920a84),_0x123704=_0x1e8f2a['data'];if('formatBlock'!=_0x1e8f2a['type']||!_0x123704||'setTableColumnHeader'!=_0x123704['commandName'])return;const _0x2bcb16=_0x2f8255['mapper']['markerNameToElements'](_0x52d63d['markerName']);if(_0x2bcb16){for(const _0x28f57e of _0x2bcb16)_0x2f8255['writer']['removeClass']('ck-suggestion-marker-'+_0x289890,_0x28f57e),_0x2f8255['writer']['removeClass']('ck-suggestion-marker--active',_0x28f57e),_0x2f8255['writer']['removeAttribute']('data-suggestion',_0x28f57e),_0x2f8255['mapper']['unbindElementFromMarkerName'](_0x28f57e,_0x52d63d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe40431=this['editor'],_0x57be32=_0xe40431['locale'];function _0x508d69(_0x50498b){return{'type':'format','content':o(_0x57be32,'*Format:*\x20%0',_0x50498b)};}_0xe40431['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x131034=>{if('formatBlock'!=_0x131034['type'])return;const {data:_0xf4c738}=_0x131034;if(_0xf4c738){if('setTableRowHeader'==_0xf4c738['commandName']){const _0x1d1f61=_0xf4c738['commandParams'][0x0]['forceValue'];return _0x508d69(o(_0x57be32,_0x1d1f61?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xf4c738['commandName']){const _0x488521=_0xf4c738['commandParams'][0x0]['forceValue'];return _0x508d69(o(_0x57be32,_0x488521?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0xa3dca1=>[_0xa3dca1,null]));class _t extends _0x38e08d{static get['requires'](){return[It];}['afterInit'](){const _0x3a101f=this['editor'];if(!_0x3a101f['plugins']['has']('TableClipboard'))return;const _0x31d01a=_0x3a101f['plugins']['get']('TrackChangesEditing'),_0x1c1db7=_0x3a101f['plugins']['get']('TableUtils'),_0x50c202=_0x3a101f['plugins']['get'](It),_0x40fed0=_0x3a101f['plugins']['get']('TableClipboard');_0x50c202['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3a101f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3a101f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x19564d=null;_0x3a101f['model']['on']('insertContent',(_0x52791b,_0x152770)=>{const [_0x8fee19,_0xfef07]=_0x152770,_0x253558=_0x152770[_0x152770['length']-0x1];_0x253558&&_0x253558['forceDefaultExecution']||_0x31d01a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x47ae42,_0x314f01,_0x24f202,_0xbf8b1a,_0x2d7b67){if(_0x314f01&&!_0x314f01['is']('documentSelection'))return!0x1;const _0x2f8bbf=_0x2d7b67['getTableIfOnlyTableInContent'](_0x47ae42,_0x24f202);if(!_0x2f8bbf||!Re(_0x2f8bbf,void 0x0,_0xbf8b1a))return!0x1;const _0x4d0f45=_0xbf8b1a['getSelectionAffectedTableCells'](_0x24f202['document']['selection']);if(!_0x4d0f45['length'])return!0x1;const _0x5ee123=_0x4d0f45[0x0]['findAncestor']('table'),_0xb8026c=_0xbf8b1a['getRowIndexes'](_0x4d0f45),_0xe233f1=_0xbf8b1a['getColumnIndexes'](_0x4d0f45),_0x3df12e={'startRow':_0xb8026c['first'],'endRow':_0xb8026c['last'],'startColumn':_0xe233f1['first'],'endColumn':_0xe233f1['last']};return 0x1==_0x4d0f45['length']&&(_0x3df12e['endRow']+=_0xbf8b1a['getRows'](_0x2f8bbf)-0x1,_0x3df12e['endColumn']+=_0xbf8b1a['getColumns'](_0x2f8bbf)-0x1),Re(_0x5ee123,_0x3df12e,_0xbf8b1a);}(_0x8fee19,_0xfef07,_0x3a101f['model'],_0x1c1db7,_0x40fed0)&&(_0x52791b['stop'](),_0x19564d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3a101f['model']['change'](()=>{_0x3a101f['model']['insertContent'](_0x152770[0x0],_0x152770[0x1],_0x152770[0x2],{'forceDefaultExecution':!0x0});const _0x9ea995=_0x3d800f(),{rowInsertionRanges:_0x16f561,columnInsertionRanges:_0x42934d,insertionRanges:_0x48bde3,deletionRanges:_0x25ae24,cells:_0x5282e8}=_0x19564d;_0x16f561['length']&&_0x31d01a['markMultiRangeInsertion'](_0x16f561,'tablePasteRow',{'tablePasteChainId':_0x9ea995}),_0x42934d['length']&&_0x31d01a['markMultiRangeInsertion'](_0x42934d,'tablePasteColumn',{'tablePasteChainId':_0x9ea995}),_0x48bde3['length']&&(_0x31d01a['markMultiRangeInsertion'](_0x48bde3,'tablePaste',{'tablePasteChainId':_0x9ea995,'skipNestingCheck':!0x0}),_0x48bde3['forEach'](_0x396437=>_0x396437['detach']?.())),_0x25ae24['length']&&(_0x31d01a['markMultiRangeDeletion'](_0x25ae24,'tablePaste',{'tablePasteChainId':_0x9ea995,'skipNestingCheck':!0x0}),_0x25ae24['forEach'](_0x103767=>_0x103767['detach']?.()));const _0x462044=_0x31d01a['markMultiRangeBlockFormat'](_0x5282e8['map'](({element:_0x48d5cf})=>_0x48d5cf),{'formatGroupId':_0x3d800f()},[],'tablePasteCell',{'tablePasteChainId':_0x9ea995});if(_0x462044){const _0x1ef01a=_0x462044['getMarkers'](),_0xf053e4=[];for(const {element:_0xad3eb,attributes:_0x22879a}of _0x5282e8){if(!_0x22879a)continue;const _0x51faf4=_0x3a101f['model']['createRangeOn'](_0xad3eb),_0x36b76b=_0x1ef01a['find'](_0x4eb62a=>_0x4eb62a['getRange']()['isEqual'](_0x51faf4));_0x36b76b&&_0xf053e4['push']([_0x36b76b['name'],_0x22879a]);}_0xf053e4['length']&&_0x462044['setAttribute']('markerAttributes',Object['fromEntries'](_0xf053e4));}_0x19564d=null;}));},{'priority':_0x3a663c['high']+0xa}),_0x3a101f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x487cdf,_0x2ef195)=>{const [_0x1b8761,_0x4c3d8b,,_0x3f8e83]=_0x2ef195;if(!_0x19564d)return;_0x487cdf['stop']();const _0x2f5896=_0x1b8761['cell'],_0x1015b0=_0x4c3d8b,_0x464975=ke(_0x2f5896),_0x487949=ke(_0x1015b0);_0x487cdf['return']=_0x2f5896;let _0x7789f2=null,_0x5dbeb8=null;if(_0x487949||_0x464975){if(_0x464975&&!_0x487949){_0x3f8e83['remove'](_0x2f5896['getChild'](0x0));for(const _0x58f2ee of Array['from'](_0x1015b0['getChildren']()))_0x3f8e83['insert'](_0x58f2ee,_0x2f5896,'end');const _0x47ca87=_0x19564d['rowInsertionIndexes']['includes'](_0x1b8761['row']),_0x48e434=_0x19564d['columnInsertionIndexes']['includes'](_0x1b8761['column']);_0x47ca87||_0x48e434||(_0x7789f2=_0xe83a0b['fromRange'](_0x3f8e83['createRangeIn'](_0x2f5896)));}else _0x487949&&!_0x464975&&(_0x5dbeb8=_0x3f8e83['createRangeIn'](_0x2f5896));}else{const _0x2a52f6=_0x3f8e83['createElement']('tableCellSuggestion'),_0x2d0f2f=_0x3f8e83['createElement']('tableCellSuggestion');_0x3f8e83['wrap'](_0x3f8e83['createRangeIn'](_0x2f5896),_0x2d0f2f),_0x3f8e83['insert'](_0x2a52f6,_0x2f5896,0x0);for(const _0x47dc10 of Array['from'](_0x1015b0['getChildren']()))_0x3f8e83['insert'](_0x47dc10,_0x2a52f6,'end');_0x7789f2=_0xe83a0b['fromRange'](_0x3f8e83['createRangeOn'](_0x2a52f6)),_0x5dbeb8=_0xe83a0b['fromRange'](_0x3f8e83['createRangeOn'](_0x2d0f2f));}const _0x40b270=Array['from'](_0x1015b0['getAttributes']())['filter'](([_0x443ed7])=>Pe['includes'](_0x443ed7));_0x19564d['cells']['push']({'element':_0x2f5896,'attributes':_0x40b270['length']?Object['fromEntries'](_0x40b270):null}),_0x7789f2&&_0x19564d['insertionRanges']['push'](_0x7789f2),_0x5dbeb8&&_0x19564d['deletionRanges']['push'](_0x5dbeb8);},{'priority':'high'}),_0x1c1db7['on']('insertColumns',(_0x25d582,_0x5e10d0)=>{const [_0x52c87e,_0x2770ce={}]=_0x5e10d0;if(!_0x19564d)return;const _0x36a56e=_0x2770ce['at']||0x0,_0x268cc1=_0x2770ce['columns']||0x1;_0x19564d['columnInsertionIndexes']=new Array(_0x268cc1)['fill'](_0x36a56e)['map']((_0x32feba,_0x57d7f3)=>_0x32feba+_0x57d7f3);for(const {cell:_0xe53a0a}of _0x1c1db7['createTableWalker'](_0x52c87e,{'startColumn':_0x36a56e,'endColumn':_0x36a56e+_0x268cc1-0x1}))_0x19564d['columnInsertionRanges']['push'](_0x3a101f['model']['createRangeOn'](_0xe53a0a));},{'priority':'low'}),_0x1c1db7['on']('insertRows',(_0x1cf803,_0x474780)=>{const [_0x3cce67,_0x3d65d1={}]=_0x474780;if(!_0x19564d)return;const _0x328fc1=_0x3d65d1['at']||0x0,_0x1a5f79=_0x3d65d1['rows']||0x1;_0x19564d['rowInsertionIndexes']=new Array(_0x1a5f79)['fill'](_0x328fc1)['map']((_0x2de46a,_0x31abbb)=>_0x2de46a+_0x31abbb);for(const {cell:_0xbcf226}of _0x1c1db7['createTableWalker'](_0x3cce67,{'startRow':_0x328fc1,'endRow':_0x328fc1+_0x1a5f79-0x1}))_0x19564d['rowInsertionRanges']['push'](_0x3a101f['model']['createRangeOn'](_0xbcf226));},{'priority':'low'}),_0x31d01a['descriptionFactory']['registerDescriptionCallback'](_0x116e88=>{if(_0x116e88['subType']&&_0x116e88['subType']['startsWith']('tablePaste'))return _0x116e88['previous']?{}:{'type':'insertion','content':o(_0x3a101f['locale'],'*Replace\x20table\x20cells*')};});const _0x41e710=()=>!0x1;for(const _0x4ecd04 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x31d01a['_suggestionFactory']['registerCustomCallback']('insertion',_0x4ecd04,'join',_0x41e710),_0x31d01a['_suggestionFactory']['registerCustomCallback']('deletion',_0x4ecd04,'join',_0x41e710),_0x31d01a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ecd04,'join',_0x41e710);_0x31d01a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x41e710),_0x31d01a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4d2049,_0x1a3a3f,_0x5049fe)=>{const _0x15ca82=_0x4d2049['map'](_0x555504=>_0x555504['getContainedElement']())['filter'](_0x1bd1b3=>_0x1bd1b3),_0x14d6e1=new Map(_0x15ca82['map'](_0x45ad48=>[_0x45ad48,null]));if(_0x19564d){for(const {element:_0x3d242a,attributes:_0x36e28c}of _0x19564d['cells'])_0x36e28c&&_0x14d6e1['set'](_0x3d242a,_0x36e28c);}else{if(_0x5049fe&&_0x5049fe['markerAttributes'])for(const [_0x138d9f,_0x3cbe5b]of Object['entries'](_0x5049fe['markerAttributes'])){const _0x111dc1=_0x3a101f['model']['markers']['get'](_0x138d9f),_0x329815=_0x111dc1?_0x111dc1['getRange']()['getContainedElement']():null;_0x329815&&_0x14d6e1['set'](_0x329815,_0x3cbe5b);}}_0x3a101f['model']['change'](_0x45468d=>{for(const [_0x398168,_0x36a0ea]of _0x14d6e1)_0x45468d['setAttributes']({...we,..._0x36a0ea},_0x398168);});});const _0x32a926=(_0x390c31,_0x1999be)=>{_0x31d01a['_suggestionFactory']['registerCustomCallback'](_0x390c31,'tablePaste',_0x1999be,(_0x13ccbf,_0x591024,_0x47f0be)=>{_0x3a101f['model']['change'](_0x52eca4=>{const _0x1a4593=[];for(const _0x4189d7 of _0x13ccbf){const _0x52b3fc=_0x4189d7['start']['nodeAfter'];_0x52b3fc['is']('element','tableCellSuggestion')&&_0x1a4593['push'](_0x52b3fc);}_0x31d01a['_suggestionFactory']['getSuggestionCallback'](_0x390c31,null,_0x1999be)(_0x13ccbf,_0x591024,_0x47f0be);for(const _0x367981 of _0x1a4593)'$graveyard'!=_0x367981['root']['rootName']&&_0x52eca4['unwrap'](_0x367981);});});};_0x32a926('insertion','accept'),_0x32a926('insertion','discard'),_0x32a926('deletion','accept'),_0x32a926('deletion','discard'),_0x31d01a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2853c0=>{const _0x2661d9=_0x2853c0['map'](_0x69d7dd=>_0x69d7dd['getContainedElement']()),_0x4ec35e=_0x2661d9[0x0]['findAncestor']('table'),{minRow:_0x2af923,maxRow:_0x56d44e}=_0x50c202['_getCoordsForCells'](_0x2661d9);_0x1c1db7['removeRows'](_0x4ec35e,{'at':_0x2af923,'rows':_0x56d44e-_0x2af923+0x1});}),_0x31d01a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3de0ba=>{const _0x1710ec=_0x3de0ba['map'](_0x918f48=>_0x918f48['getContainedElement']()),_0x318802=_0x1710ec[0x0]['findAncestor']('table'),{minColumn:_0x21f2b3,maxColumn:_0x3aa3c1}=_0x50c202['_getCoordsForCells'](_0x1710ec);_0x1c1db7['removeColumns'](_0x318802,{'at':_0x21f2b3,'columns':_0x3aa3c1-_0x21f2b3+0x1});});const _0x5ade3a=(_0xf04d46,_0x30bb43)=>{if(!_0x30bb43['subType']||!_0x30bb43['subType']['startsWith']('tablePaste'))return;const _0x1f6d01=_0x30bb43['attributes']['tablePasteChainId'],_0x490518=_0x31d01a['getSuggestions']()['filter'](_0x261662=>_0x261662['isInContent']&&_0x261662['attributes']&&_0x261662['attributes']['tablePasteChainId']==_0x1f6d01);_0x490518['length']&&_0x30bb43['getAllAdjacentSuggestions']()['length']!=_0x490518['length']&&_0x490518['reduce']((_0x2cda4c,_0x4fc8f1)=>(_0x2cda4c['next']=_0x4fc8f1,_0x4fc8f1['previous']=_0x2cda4c,_0x4fc8f1));};function _0x7191ce(_0x15fa55,_0x4bfc28=!0x0){const {id:_0x2f6431,authorId:_0x514b09}=_0x31d01a['_splitMarkerName'](_0x15fa55['markerName']),_0x5cae05=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x519f6a=_0x31d01a['activeMarkers']['includes'](_0x15fa55['markerName']);return _0x519f6a&&_0x5cae05['push']('ck-suggestion-marker--active'),{'classes':_0x5cae05,'attributes':{'data-suggestion':_0x2f6431,'data-author-id':_0x514b09},'priority':_0x519f6a&&_0x4bfc28?0xbc2:0xbb8};}_0x31d01a['on']('suggestionLoaded',_0x5ade3a,{'priority':'high'}),_0x31d01a['on']('suggestionUnloaded',_0x5ade3a,{'priority':'high'}),_0x3a101f['model']['document']['registerPostFixer'](()=>{let _0x13ab09=!0x1;const _0x3f12fa=Array['from'](_0x3a101f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b1959,data:_0x2bae43}of _0x3f12fa){const {group:_0xfad154,type:_0x152321,id:_0x4b4e66}=_0x31d01a['_splitMarkerName'](_0x4b1959);if('suggestion'!=_0xfad154||'deletion'!=_0x152321||_0x2bae43['oldRange'])continue;if(!_0x31d01a['hasSuggestion'](_0x4b4e66))continue;const _0x371ce0=_0x31d01a['getSuggestion'](_0x4b4e66)['getRanges'](),_0x4d3a00=_0x3a101f['plugins']['get']('Users')['me'];for(const _0x30285d of _0x31d01a['getSuggestions']()){if(!_0x30285d['isInContent']||_0x30285d['author']!=_0x4d3a00)continue;if('formatBlock'!=_0x30285d['type']||'tablePasteCell'!=_0x30285d['subType'])continue;if(_0x30285d['getRanges']()['every'](_0x558376=>_0x371ce0['some'](_0x4f2ba0=>_0x4f2ba0['containsRange'](_0x558376,!0x0)))){for(const _0x87aed7 of _0x30285d['getAllAdjacentSuggestions']())_0x87aed7['isInContent']&&(_0x87aed7['discard'](),_0x13ab09=!0x0);}}}return _0x13ab09;}),_0x3a101f['model']['document']['registerPostFixer'](_0xd10cb6=>{const _0x27c1a5=_0x3a101f['commands']['get']('redo');if(!_0x27c1a5||!_0x27c1a5['_createdBatches']['has'](_0xd10cb6['batch']))return!0x1;let _0x41649a=!0x1;const _0x4e6099=_0x3a101f['plugins']['get']('Users')['me'],_0x59fae0=_0x3a101f['model']['document']['differ']['getChanges'](),_0x57de95=Array['from'](_0x3a101f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2eda19,data:_0x4ca8ba})=>{const {group:_0x4815ae,subType:_0x59c1a2,authorId:_0x4559f7}=_0x31d01a['_splitMarkerName'](_0x2eda19);return'suggestion'==_0x4815ae&&'tablePaste'==_0x59c1a2&&_0x4559f7==_0x4e6099['id']&&!_0x4ca8ba['oldRange'];});for(const _0x3f535b of _0x59fae0){if('insert'!=_0x3f535b['type']||'tableCellSuggestion'!=_0x3f535b['name']||0x1!=_0x3f535b['length'])continue;const _0x27c5ce=_0xd10cb6['createRange'](_0x3f535b['position'],_0x3f535b['position']['getShiftedBy'](0x1));if(!_0x57de95['find'](({data:_0x49f1fa})=>_0x49f1fa['newRange']['isEqual'](_0x27c5ce))){for(const {name:_0x26f2dd,data:_0x95c0f7}of _0x57de95)if(_0x27c5ce['containsRange'](_0x95c0f7['newRange'])){_0xd10cb6['updateMarker'](_0x26f2dd,{'range':_0x27c5ce}),_0x41649a=!0x0;break;}}}return _0x41649a;}),_0x3a101f['model']['document']['registerPostFixer'](_0x30ac6a=>{let _0x350b36=!0x1;const _0x2433a2=_0x3a101f['plugins']['get']('Users')['me'],_0x20e4f2=_0x31d01a['getSuggestions']()['filter'](_0x49da5e=>_0x49da5e['isInContent']&&_0x49da5e['author']==_0x2433a2),_0x2796b9=new Set(),_0x2ad96e=new Set();for(const _0x15c25f of _0x20e4f2)if('tablePaste'==_0x15c25f['subType'])for(const _0x182b52 of _0x15c25f['getMarkers']()){const _0x22a8a6=_0x182b52['getRange']()['getContainedElement']();if(_0x22a8a6){if(_0x22a8a6['is']('element','tableCellSuggestion')&&ke(_0x22a8a6)){_0x15c25f['removeMarker'](_0x182b52['name']),_0x2796b9['add'](_0x22a8a6),_0x350b36=!0x0;const _0x56879b=_0x22a8a6['nextSibling'],_0x159911=_0x22a8a6['previousSibling'],_0x545992=_0x56879b&&_0x56879b['is']('element','tableCellSuggestion'),_0x5a5bb7=_0x159911&&_0x159911['is']('element','tableCellSuggestion');_0x545992&&!_0x2796b9['has'](_0x56879b)&&_0x2ad96e['add'](_0x56879b),_0x5a5bb7&&!_0x2796b9['has'](_0x159911)&&_0x2ad96e['add'](_0x159911);}else _0x22a8a6['is']('element','paragraph')&&_0x22a8a6['isEmpty']&&(_0x15c25f['removeMarker'](_0x182b52['name']),_0x350b36=!0x0);}}else{if('tablePasteCell'==_0x15c25f['subType']){if(!_0x15c25f['attributes']||!_0x15c25f['attributes']['tablePasteChainId'])continue;const _0x466aa2=_0x15c25f['attributes']['markerAttributes'];if(_0x466aa2&&Object['keys'](_0x466aa2)['length'])continue;const _0x44f8c9=_0x15c25f['attributes']['tablePasteChainId'];let _0x5defa5=!0x0,_0x394bd4=!0x0;for(const _0x337ebf of _0x20e4f2)if(_0x337ebf['subType']&&_0x337ebf['subType']['startsWith']('tablePaste')){if(!_0x337ebf['attributes']['tablePasteChainId']){_0x394bd4=!0x1;break;}if(_0x337ebf['id']!=_0x15c25f['id']&&_0x337ebf['attributes']['tablePasteChainId']==_0x44f8c9){_0x5defa5=!0x1;break;}}_0x394bd4&&_0x5defa5&&(_0x15c25f['removeMarkers'](),_0x350b36=!0x0);}}for(const _0x1322ff of _0x2796b9)_0x30ac6a['remove'](_0x1322ff);for(const _0x5a7422 of _0x2ad96e)_0x30ac6a['unwrap'](_0x5a7422);return _0x350b36;}),_0x3a101f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5a7a84,_0x2f4ed7)=>_0x7191ce(_0x5a7a84),'converterPriority':'high'}),_0x3a101f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x315289,_0x428751)=>_0x428751['options']['showSuggestionHighlights']?_0x7191ce(_0x315289,!0x1):null,'converterPriority':'high'});const _0x37f451=_0x3a101f['editing']['view'];this['listenTo'](_0x37f451['document'],'clipboardOutput',(_0x274c0c,_0x6d47ed)=>{const _0x44055a=[];for(const _0x3775ec of _0x37f451['createRangeIn'](_0x6d47ed['content'])['getItems']())_0x3775ec['is']('element','suggestion-td')&&_0x44055a['push'](_0x3775ec);_0x37f451['change'](_0x10f5aa=>{for(const _0x3d894e of _0x44055a)_0x10f5aa['move'](_0x10f5aa['createRangeIn'](_0x3d894e),_0x10f5aa['createPositionBefore'](_0x3d894e)),_0x10f5aa['remove'](_0x3d894e);});});}}function ke(_0x39846e){if(_0x39846e['isEmpty'])return!0x0;const _0x25e232=_0x39846e['getChild'](0x0);return _0x25e232['is']('element','paragraph')&&_0x25e232['isEmpty'];}function Re(_0x31e196,_0x510384={},_0x507a02){for(const {isAnchor:_0x589a50,cellHeight:_0x5b5166,cellWidth:_0xcf4d79}of _0x507a02['createTableWalker'](_0x31e196,{'includeAllSlots':!0x0,..._0x510384}))if(!_0x589a50||0x1!=_0x5b5166||0x1!=_0xcf4d79)return!0x1;return!0x0;}class Nt extends _0x38e08d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x123357=this['editor']['plugins']['get']('TrackChangesEditing');_0x123357['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x123357['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x123357['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x123357['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x123357['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x123357['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3501a3,_0x4eb057){const _0x369acb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43a75a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x111859=_0x4eb057['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4bcf20=_0x43a75a['getColumnGroupElement'](_0x111859);let _0x5595db=_0x4bcf20?_0x43a75a['getTableColumnsWidths'](_0x4bcf20):null,_0x49fec0=_0x111859['getAttribute']('tableWidth')||null;const _0x56c734=_0x4eb057['tableWidth']||_0x49fec0,_0x1b68d8=_0x4eb057['columnWidths']||_0x5595db,_0x505698=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c7afc of _0x369acb['getSuggestions']()){const _0x22c4f0=_0x2c7afc['getContainedElement']();if('resizeTable'===_0x2c7afc['subType']&&_0x22c4f0===_0x111859){_0x2c7afc['author']!==_0x505698&&_0x2c7afc['discard']();const _0x56802a=_0x2c7afc['data']['commandParams'];_0x49fec0=_0x56802a[0x0]['tableWidth'],_0x5595db=_0x56802a[0x0]['columnWidths'];break;}}_0x3501a3({'table':_0x111859,'tableWidth':_0x56c734,'columnWidths':_0x1b68d8}),_0x369acb['markBlockFormat'](_0x111859,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x49fec0,'columnWidths':_0x5595db}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5618da){if('formatBlock'!=_0x5618da['type']&&'formatInline'!=_0x5618da['type'])return;const {data:_0x529260}=_0x5618da;if(_0x529260&&'resizeTable'===_0x529260['formatGroupId']){const _0x5853ff='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5853ff)};}}}class Dt extends _0x38e08d{['afterInit'](){const _0x3edf01=this['editor'];_0x3edf01['plugins']['has']('Template')&&_0x3edf01['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x38e08d{['afterInit'](){const _0x244b79=this['editor'];if(!_0x244b79['commands']['get']('insertTableOfContents'))return;_0x244b79['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x52c818=_0x244b79['plugins']['get']('TrackChangesEditing'),_0xd44d36=_0x244b79['locale'];_0x52c818['descriptionFactory']['registerElementLabel']('tableOfContents',_0x558ffb=>o(_0xd44d36,'ELEMENT_TABLE_OF_CONTENTS',_0x558ffb));}}class $t extends _0x38e08d{['afterInit'](){const _0x1a8710=this['editor'];if(!_0x1a8710['plugins']['has']('Title'))return;const _0x49bf79=_0x1a8710['plugins']['get']('TrackChangesEditing');_0x49bf79['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1a8710['locale'],'ELEMENT_TITLE')),_0x1a8710['model']['document']['registerPostFixer'](_0x4592a9=>{let _0x5986db=!0x1;const _0x1864b4=Array['from'](_0x1a8710['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bbf1e,data:_0x316e91}of _0x1864b4){const {group:_0x2d66ca}=_0x49bf79['_splitMarkerName'](_0x1bbf1e);if('suggestion'!==_0x2d66ca||!_0x316e91['newRange'])continue;const _0x4cc85f=_0x316e91['newRange'],_0x2f1706=_0x4cc85f['end']['nodeBefore'];if(!_0x2f1706||!_0x2f1706['is']('element','title-content'))continue;if(!_0x4cc85f['start']['isTouching'](_0x4cc85f['end']))continue;const _0x17073d=_0x1a8710['model']['schema']['getNearestSelectionRange'](_0x4cc85f['end'],'forward');if(_0x17073d&&_0x17073d['isCollapsed']){const _0x50b68e=_0x4592a9['createRange'](_0x4cc85f['start'],_0x17073d['start']);_0x50b68e['isEqual'](_0x4cc85f)||(_0x4592a9['updateMarker'](_0x1bbf1e,{'range':_0x50b68e}),_0x5986db=!0x0);}_0x5986db||(_0x4592a9['removeMarker'](_0x1bbf1e),_0x5986db=!0x0);}return _0x5986db;});}}class Bt extends _0x38e08d{['afterInit'](){const _0x3796ac=this['editor'],_0x4dcc4a=_0x3796ac['plugins']['get']('TrackChangesEditing');_0x3796ac['plugins']['has']('UndoEditing')&&(_0x4dcc4a['enableCommand']('undo'),_0x4dcc4a['enableCommand']('redo'));}}class xt extends _0x38e08d{static get['requires'](){return[It];}['afterInit'](){const _0x48a90a=this['editor'];if(!_0x48a90a['plugins']['has']('TableCaptionEditing'))return;_0x48a90a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x38e08d{['tableProperties'];['tableCellProperties'];constructor(_0x11b77d){super(_0x11b77d),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 _0xbabc87=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x56aa9b of this['tableProperties'])_0xbabc87['enableCommand'](_0x56aa9b,(_0x34f279,_0x2c31e4)=>{const _0xa18055=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x56aa9b,[_0xa18055],this['tableProperties'],'tableProperties',_0x34f279,_0x2c31e4);});_0xbabc87['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xbabc87['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbabc87['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x52dfa9,_0x23c2fc)=>this['handleDiscardAction'](this['tableProperties'],_0x52dfa9,_0x23c2fc)),_0xbabc87['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x435c3e of this['tableCellProperties'])_0xbabc87['enableCommand'](_0x435c3e,(_0x530b20,_0x4c434a)=>{const _0x53043f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x435c3e,_0x53043f,this['tableCellProperties'],'tableCellProperties',_0x530b20,_0x4c434a);});_0xbabc87['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xbabc87['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbabc87['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x27bfa9,_0x56e5ac)=>this['handleDiscardAction'](this['tableCellProperties'],_0x27bfa9,_0x56e5ac)),_0xbabc87['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xbabc87['descriptionFactory']['registerDescriptionCallback'](_0x56cd69=>this['handleSuggestionDescription'](_0x56cd69));}['_handlePropertyChange'](_0x3c6ec4,_0x4101ec,_0x55733d,_0x4f9aed,_0x5adedf,_0x591596){const _0x1fa92b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x591596['batch'],()=>{for(const _0x27407f of _0x4101ec){if(this['_getSuggestion'](_0x27407f,_0x4f9aed))_0x5adedf(_0x591596);else{const _0x39761a={};for(const _0x5f5023 of _0x55733d){const _0x34a259=_0x27407f['getAttribute'](_0x5f5023);void 0x0!==_0x34a259&&(_0x39761a[_0x5f5023]=_0x34a259);}_0x5adedf(_0x591596),_0x1fa92b['markBlockFormat'](_0x27407f,{'commandParams':[_0x39761a]},[],_0x4f9aed);}}});}['handleDiscardAction'](_0x4ccbbe,_0x2214c0,_0x446233){const _0xae83e1=_0x2214c0[0x0]['start']['nodeAfter'],_0x2003da=_0x446233['commandParams'][0x0];this['editor']['model']['change'](_0x5f007b=>{for(const _0xf69088 of _0x4ccbbe)void 0x0!==_0x2003da[_0xf69088]?_0x5f007b['setAttribute'](_0xf69088,_0x2003da[_0xf69088],_0xae83e1):_0x5f007b['removeAttribute'](_0xf69088,_0xae83e1);});}['handleSuggestionDescription'](_0x3e7afe){if(_0x3e7afe['data'])switch(_0x3e7afe['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'](_0x15b67b,_0xdb54eb){const _0x4beab2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x29708c of _0x4beab2['getSuggestions']({'skipNotAttached':!0x0})){const _0x463b42=_0x29708c['getContainedElement']();if(_0x29708c['subType']===_0xdb54eb&&_0x463b42===_0x15b67b)return _0x29708c;}return null;}}const m='$elementName';class p extends _0x38e08d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x31a9a8,_0x1de75b,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(_0x287ac9){function _0x40ac13(_0x5ae335){return _0x5ae335['map'](_0x2d2b75=>String['fromCharCode'](_0x2d2b75))['join']('');}super(_0x287ac9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xcb027,_0x394a8b,_0xd712c3,_0x322f22)=>{this['_model']['change'](()=>{for(const _0x37fb99 of[..._0x322f22,..._0xd712c3])this['_model']['markers']['has'](_0x37fb99)&&_0x287ac9['editing']['reconvertMarker'](_0x37fb99);});}),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']=_0x287ac9['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(),_0x287ac9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x287ac9['config']['get']('trackChanges.trackFormatChanges'),_0x287ac9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x287ac9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x287ac9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x40ac13([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x40ac13([0x34,0x30,0x34,0x38,0x31,0x36,0x32,0x36]);}['init'](){const _0x46ba23=this['editor'],_0x5b038a=(_0xc0d51d,_0x38eb93)=>{if('attribute'!=_0xc0d51d)return'ck-suggestion-marker-'+_0xc0d51d;const _0x31d11e=_0x38eb93['split']('|')[0x0];return this['_isBlockAttribute'](_0x31d11e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x46ba23['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x385bf7=>{const {id:_0x48cb97,authorId:_0x1687e2,type:_0x27258d,subType:_0x45a247}=this['_splitMarkerName'](_0x385bf7['markerName']),_0x408c16=['ck-suggestion-marker',_0x5b038a(_0x27258d,_0x45a247)];let _0x376f1f=0xbb8;return this['activeMarkers']['includes'](_0x385bf7['markerName'])&&(_0x408c16['push']('ck-suggestion-marker--active'),_0x376f1f=0xbc2),'deletion'==_0x27258d&&(_0x376f1f+=0x5),{'classes':_0x408c16,'attributes':{'data-suggestion':_0x48cb97,'data-author-id':_0x1687e2},'priority':_0x376f1f};}}),_0x46ba23['conversion']['for']('dataDowncast')['add'](_0x43d35c=>{_0x43d35c['on']('addMarker:suggestion',(_0x635035,_0xfc4526,_0x110b07)=>{if(!_0x110b07['options']['showSuggestionHighlights'])return;const _0xc8862e=_0xfc4526['item'];if(!_0xc8862e)return;const _0x1ced74=_0x110b07['mapper']['toViewElement'](_0xc8862e);_0x46ba23['model']['schema']['isObject'](_0xc8862e)&&_0x1ced74&&!_0x1ced74['getCustomProperty']('widget')&&_0x1ced74['is']('containerElement')&&_0x59e9e4(_0x1ced74,_0x110b07['writer']);},{'priority':'high'});}),_0x46ba23['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1e3223,_0x194d10)=>{if(!_0x194d10['options']['showSuggestionHighlights'])return null;const {type:_0x56cff5,subType:_0x405831}=this['_splitMarkerName'](_0x1e3223['markerName']);return{'classes':['ck-suggestion-marker',_0x5b038a(_0x56cff5,_0x405831)],'priority':0xbb8};}});const _0x1cfbc7=({showActiveMarkers:_0x3a4459=!0x0,isAttributeSuggestion:_0x321e19=!0x1}={})=>(_0x274996,_0x20ad05,_0x2d8a98)=>{if(!_0x20ad05['item'])return;const {id:_0x4ab8c4,authorId:_0x49e036}=this['_splitMarkerName'](_0x20ad05['markerName']);if(_0x321e19){const _0x18b75e=this['_suggestions']['get'](_0x4ab8c4),_0xba1fb2=this['_getAttributeKey'](_0x18b75e);if(!this['_isBlockAttribute'](_0xba1fb2))return;}if(_0x20ad05['item']['is']('selection'))return void _0x2d8a98['consumable']['consume'](_0x20ad05['item'],_0x274996['name']);const _0x16d6fc=_0x2d8a98['mapper']['toViewElement'](_0x20ad05['item']);if(_0x20ad05['item']['is']('element')&&_0x46ba23['model']['schema']['isBlock'](_0x20ad05['item'])&&!_0x16d6fc['getCustomProperty']('addHighlight')){_0x2d8a98['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x16d6fc),_0x2d8a98['writer']['setAttribute']('data-suggestion',_0x4ab8c4,_0x16d6fc),_0x2d8a98['writer']['setAttribute']('data-author-id',_0x49e036,_0x16d6fc),_0x2d8a98['mapper']['bindElementToMarker'](_0x16d6fc,_0x20ad05['markerName']),_0x3a4459&&(this['activeMarkers']['includes'](_0x20ad05['markerName'])?_0x2d8a98['writer']['addClass']('ck-suggestion-marker--active',_0x16d6fc):_0x2d8a98['writer']['removeClass']('ck-suggestion-marker--active',_0x16d6fc));for(const _0x6c0278 of _0x46ba23['model']['createRangeIn'](_0x20ad05['item'])['getItems']())_0x2d8a98['consumable']['consume'](_0x6c0278,_0x274996['name']);_0x2d8a98['consumable']['consume'](_0x20ad05['item'],_0x274996['name']);}};_0x46ba23['conversion']['for']('dataDowncast')['add'](_0x5397cb=>{_0x5397cb['on']('addMarker:suggestion:formatBlock',(_0x6ab7e9,_0x387af5,_0x3023ce)=>{_0x3023ce['options']['showSuggestionHighlights']&&_0x1cfbc7({'showActiveMarkers':!0x1})(_0x6ab7e9,_0x387af5,_0x3023ce);},{'priority':'highest'});}),_0x46ba23['conversion']['for']('dataDowncast')['add'](_0x1cc85f=>{_0x1cc85f['on']('addMarker:suggestion:attribute',(_0x3a024d,_0x2c52a0,_0xfa8708)=>{_0xfa8708['options']['showSuggestionHighlights']&&_0x1cfbc7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3a024d,_0x2c52a0,_0xfa8708);},{'priority':'highest'});}),_0x46ba23['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x473926,_0x216b17)=>_0x216b17['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x473926['substr'](0xb)}}),_0x46ba23['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4d6be7,{writer:_0x1be11c})=>{let _0x1f2b76='suggestion:'+_0x4d6be7['getAttribute']('suggestion-type')+':'+_0x4d6be7['getAttribute']('id');return _0x4d6be7['getAttribute']('marker-count')&&(_0x1f2b76+=':'+_0x4d6be7['getAttribute']('marker-count')),_0x1be11c['createElement']('$marker',{'data-name':_0x1f2b76});}}),_0x46ba23['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x46ba23['conversion']['for']('editingDowncast')['add'](_0x11aadf=>{_0x11aadf['on']('addMarker:suggestion:formatBlock',_0x1cfbc7(),{'priority':'high'});}),_0x46ba23['conversion']['for']('editingDowncast')['add'](_0x67c0bf=>{_0x67c0bf['on']('addMarker:suggestion:attribute',_0x1cfbc7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x46ba23['conversion']['for']('editingDowncast')['add'](_0x2a7e70=>{_0x2a7e70['on']('removeMarker:suggestion:formatBlock',(_0x9587e4,_0x5e2e32,_0x28feb9)=>{const _0x2d7334=_0x28feb9['mapper']['markerNameToElements'](_0x5e2e32['markerName']);if(_0x2d7334){for(const _0x2e0343 of _0x2d7334)_0x2e0343['getCustomProperty']('addHighlight')||(_0x28feb9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2e0343),_0x28feb9['writer']['removeAttribute']('data-suggestion',_0x2e0343),_0x28feb9['writer']['removeAttribute']('data-author-id',_0x2e0343),_0x28feb9['mapper']['unbindElementFromMarkerName'](_0x2e0343,_0x5e2e32['markerName']));}},{'priority':'high'});}),_0x46ba23['conversion']['for']('editingDowncast')['add'](_0x5f0433=>{_0x5f0433['on']('removeMarker:suggestion:attribute',(_0x4f8eac,_0x48a79d,_0x1727a1)=>{const _0x52a45a=_0x1727a1['mapper']['markerNameToElements'](_0x48a79d['markerName']);if(!_0x52a45a)return;const {id:_0x543608}=this['_splitMarkerName'](_0x48a79d['markerName']),_0x584509=this['_suggestions']['get'](_0x543608),_0x3b6cf2=this['_getAttributeKey'](_0x584509);if(this['_isBlockAttribute'](_0x3b6cf2)){for(const _0xe3a1b7 of _0x52a45a)_0xe3a1b7['getCustomProperty']('addHighlight')||(_0x1727a1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe3a1b7),_0x1727a1['writer']['removeAttribute']('data-suggestion',_0xe3a1b7),_0x1727a1['writer']['removeAttribute']('data-author-id',_0xe3a1b7),_0x1727a1['mapper']['unbindElementFromMarkerName'](_0xe3a1b7,_0x48a79d['markerName']));}},{'priority':'high'});}),_0x46ba23['model']['document']['registerPostFixer'](_0x1be775=>{let _0x149bc2=!0x1;const _0x3b5083=Array['from'](_0x46ba23['model']['document']['differ']['getChangedMarkers']()),_0x26f7f6=new Set();for(const {name:_0x22744d,data:_0x39fd19}of _0x3b5083){const {group:_0x5784a4,type:_0x2ffa0d,subType:_0x5e9d87,id:_0x5f393c}=this['_splitMarkerName'](_0x22744d);if('suggestion'!==_0x5784a4)continue;const _0x1181a1=this['_suggestions']['get'](_0x5f393c);if(null!=_0x39fd19['newRange']){'formatInline'==_0x2ffa0d&&(_0x149bc2=_0x149bc2||Ut(_0x39fd19['newRange'],_0x22744d,_0x1be775,_0x46ba23['model']['schema']));const _0x3348f8='attribute'==_0x2ffa0d&&this['_isBlockAttribute'](_0x5e9d87['split']('|')[0x0]);if(_0x39fd19['newRange']['isCollapsed']||'$graveyard'==_0x39fd19['newRange']['root']['rootName']||'formatBlock'==_0x2ffa0d&&!Ft(_0x39fd19['newRange'])||_0x3348f8&&!Ft(_0x39fd19['newRange'])||'deletion'==_0x2ffa0d&&!(!Vt(_0x469ea5=_0x39fd19['newRange'])&&!function(_0x4e6381){return _0x4e6381['start']['parent']==_0x4e6381['end']['nodeBefore']&&_0x4e6381['start']['isAtEnd'];}(_0x469ea5)))_0x1be775['removeMarker'](_0x22744d),_0x149bc2=!0x0;else{if(!_0x1181a1||!_0x1181a1['isInContent'])continue;if(_0x39fd19['newRange']&&_0x39fd19['oldRange']&&_0x39fd19['newRange']['isEqual'](_0x39fd19['oldRange']))continue;_0x26f7f6['add'](_0x1181a1);}}}var _0x469ea5;return _0x26f7f6['size']>0x0&&(_0x149bc2=!!this['_joinWithAdjacentSuggestions'](_0x26f7f6)||_0x149bc2),_0x149bc2;}),_0x46ba23['model']['document']['registerPostFixer'](_0x30073e=>{let _0x3cfd52=!0x1;for(const _0x5b70e1 of _0x46ba23['model']['document']['differ']['getChanges']())if('insert'==_0x5b70e1['type'])for(const _0x49f185 of this['_suggestions']['values']()){if(_0x49f185['isMultiRange']||!_0x49f185['isInContent'])continue;const _0x377f31='formatBlock'==_0x49f185['type'],_0x457d8d=this['_getAttributeKey'](_0x49f185),_0x47945a=_0x457d8d&&this['_isBlockAttribute'](_0x457d8d);if(!_0x377f31&&!_0x47945a)continue;const _0x57802d=_0x49f185['getFirstRange']();if(_0x57802d['start']['parent']!=_0x57802d['end']['parent']&&!_0x57802d['end']['isAtEnd']){const _0x539b75=_0x46ba23['model']['createPositionAt'](_0x57802d['start']['nodeAfter'],'end'),_0x3dd6b7=_0x46ba23['model']['createRange'](_0x57802d['start'],_0x539b75);_0x30073e['updateMarker'](_0x49f185['getFirstMarker'](),{'range':_0x3dd6b7}),_0x3cfd52=!0x0;}}return _0x3cfd52;}),_0x46ba23['model']['document']['registerPostFixer'](_0x12499f=>this['_processAttributeChanges'](_0x12499f)),_0x46ba23['model']['document']['registerPostFixer'](_0x41e836=>!_0x41e836['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x41e836)),_0x46ba23['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x46ba23['model']['document']['on']('change:data',(_0x282d77,_0x59a137)=>{if(!_0x59a137['isLocal']||_0x59a137['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x57441f=_0x46ba23['model']['document']['differ']['getChanges']();if(0x0==_0x57441f['length'])return;const _0x3a6e08=[],_0x3b1a32=_0x57441f['filter'](_0x3c7064=>'attribute'==_0x3c7064['type']),_0x2eee62=_0x57441f['filter'](_0x1d7fff=>'insert'==_0x1d7fff['type']&&'$text'!=_0x1d7fff['name']);for(const _0x593815 of _0x3b1a32)this['_isRegisteredAttribute'](_0x593815['attributeKey'])&&_0x3a6e08['push']({'key':_0x593815['attributeKey'],'newValue':_0x593815['attributeNewValue'],'oldValue':_0x593815['attributeOldValue'],'range':Pt(_0x593815['range'],_0x46ba23['model'])});for(const _0x52880a of _0x2eee62){if('rename'!=_0x52880a['action']&&'refresh'!=_0x52880a['action'])continue;const _0x209040=Lt(_0x52880a['position']['nodeAfter'],_0x46ba23['model']),_0xca1561=_0x52880a['before'];'rename'==_0x52880a['action']&&_0x3a6e08['push']({'key':m,'newValue':_0x52880a['name'],'oldValue':_0xca1561['name'],'range':_0x209040});for(const [_0x26ae00,_0x816b77]of _0xca1561['attributes']){if(!this['_isRegisteredAttribute'](_0x26ae00))continue;const _0x153118=_0x52880a['attributes']['get'](_0x26ae00);_0x816b77!==_0x153118&&_0x3a6e08['push']({'key':_0x26ae00,'newValue':_0x153118,'oldValue':_0x816b77,'range':_0x209040});}for(const [_0x3869d8,_0x511d75]of _0x52880a['attributes'])this['_isRegisteredAttribute'](_0x3869d8)&&(_0xca1561['attributes']['has'](_0x3869d8)||_0x3a6e08['push']({'key':_0x3869d8,'newValue':_0x511d75,'oldValue':null,'range':_0x209040}));}0x0!=_0x3a6e08['length']&&_0x46ba23['model']['enqueueChange'](_0x59a137,_0x2639f4=>{const _0x3d0c07=_0x3d800f();for(const {range:_0x3df675,key:_0x5c7915,oldValue:_0x5a34c4,newValue:_0x9f3fb0}of _0x3a6e08)this['markAttributeChange'](_0x3df675,_0x5c7915,_0x5a34c4,_0x9f3fb0,{'groupId':_0x3d0c07});this['_reduceExistingSuggestions'](_0x2639f4,_0x3a6e08);});},{'priority':'lowest'}),_0x46ba23['model']['markers']['on']('update:suggestion',(_0x5cb094,_0x15c1e1,_0x1d6e8e)=>{if(null==_0x1d6e8e){const {id:_0x166932}=this['_splitMarkerName'](_0x15c1e1['name']),_0x313570=this['_suggestions']['get'](_0x166932);_0x313570&&_0x313570['addMarkerName'](_0x15c1e1['name']);}}),_0x46ba23['model']['document']['on']('change:data',()=>{const _0x48f9f2=Array['from'](_0x46ba23['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2fb540=>'suggestion'===this['_splitMarkerName'](_0x2fb540['name'])['group']);if(0x0===_0x48f9f2['length'])return;_0x48f9f2['sort']((_0x198c25,_0x5bfa04)=>{const _0x50b57c=_0x198c25['data']['oldRange'],_0x54287a=_0x5bfa04['data']['oldRange'];return null===_0x50b57c&&null===_0x54287a?0x0:null===_0x50b57c&&null!==_0x54287a?-0x1:null!==_0x50b57c&&null===_0x54287a?0x1:_0x50b57c['start']['isBefore'](_0x54287a['start'])?-0x1:0x1;});const _0x30890f=new Set(),_0x4db48b=new Set();for(const {name:_0x1b0037,data:_0x10a60a}of _0x48f9f2){const {id:_0x54709f}=this['_splitMarkerName'](_0x1b0037);if(null===_0x10a60a['oldRange']){const _0x157810=this['_handleNewSuggestionMarker'](_0x1b0037);_0x4db48b['add'](_0x157810);}else{const _0x4f1330=this['_suggestions']['get'](_0x54709f);null!==_0x10a60a['newRange']||_0x4f1330['isInContent']?(_0x30890f['add'](_0x4f1330['head']),_0x4db48b['add'](_0x4f1330)):this['_removeSuggestion'](_0x4f1330);}}_0x4db48b['size']>0x0&&this['_refreshSuggestionsChain'](_0x4db48b);for(const _0x208f68 of _0x30890f)this['fire']('suggestionChanged',_0x208f68);}),_0x46ba23['model']['on']('applyOperation',(_0x1e861a,_0x14347f)=>{const _0x5d3f6d=_0x14347f[0x0];if(!this['_suggestions']['size'])return;if(!_0x5d3f6d['isDocumentOperation'])return;if(_0x5d3f6d['batch']['isUndo']||!_0x5d3f6d['batch']['isLocal'])return;let _0x438c3b,_0x408c87;switch(_0x5d3f6d['type']){case'insert':_0x438c3b=_0x46ba23['model']['createPositionAt'](_0x5d3f6d['position']),_0x408c87=_0x438c3b['getShiftedBy'](_0x5d3f6d['howMany']);break;case'split':_0x438c3b=_0x46ba23['model']['createPositionAt'](_0x5d3f6d['splitPosition']),_0x408c87=_0x46ba23['model']['createPositionAt'](_0x5d3f6d['moveTargetPosition']);break;case'move':_0x438c3b=_0x46ba23['model']['createPositionAt'](_0x5d3f6d['targetPosition']),_0x408c87=_0x438c3b['getShiftedBy'](_0x5d3f6d['howMany']);break;default:return;}const _0x19a139=_0x46ba23['model']['createRange'](_0x438c3b,_0x408c87);_0x46ba23['model']['change'](()=>{for(const {suggestion:_0x312a69,meta:_0x3e3d49}of this['_findSuggestions'](_0x19a139)){if(_0x312a69['isMultiRange'])continue;if('formatInline'==_0x312a69['type'])continue;const _0x21efdf=this['_getAttributeKey'](_0x312a69);if(_0x21efdf&&this['_isBlockAttribute'](_0x21efdf)&&'split'!=_0x5d3f6d['type'])continue;const _0x2335c4=_0x312a69['data']&&_0x312a69['data']['multipleBlocks'];('formatBlock'!=_0x312a69['type']||'split'==_0x5d3f6d['type']&&!_0x2335c4)&&(_0x3e3d49['containsRangeInObject']||'insertion'==_0x312a69['type']&&_0x3e3d49['isOwn']||_0x312a69['getFirstRange']()['containsRange'](_0x19a139)&&this['_breakSuggestionMarker'](_0x312a69,_0x438c3b,_0x408c87));}});},{'priority':'lowest'}),_0x46ba23['model']['on']('deleteContent',(_0x1a1ae4,_0x12db9b)=>{const _0x26124f=_0x12db9b[0x0],_0x2a79b1=_0x12db9b[0x1];if(_0x2a79b1&&_0x2a79b1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x26124f['isCollapsed'])return;const _0x5e2cb1=_0x46ba23['model']['schema'],{start:_0x14363e,end:_0x4f792f}=_0x26124f['getFirstRange'](),_0x2cc58c=_0x14363e['nodeAfter']&&_0x5e2cb1['isLimit'](_0x14363e['nodeAfter'])?null:_0x5e2cb1['getNearestSelectionRange'](_0x14363e,'forward'),_0x48d90b=_0x4f792f['nodeBefore']&&_0x5e2cb1['isLimit'](_0x4f792f['nodeBefore'])?null:_0x5e2cb1['getNearestSelectionRange'](_0x4f792f,'backward'),_0x13cab8=_0x46ba23['model']['createRange'](_0x2cc58c?_0x2cc58c['start']:_0x14363e,_0x48d90b?_0x48d90b['end']:_0x4f792f);_0x46ba23['model']['change'](_0x565a86=>{this['markDeletion'](_0x13cab8);const _0x5bb3e1=_0x46ba23['model']['schema']['getNearestSelectionRange'](_0x13cab8['start']);_0x26124f['is']('documentSelection')?_0x565a86['setSelection'](_0x5bb3e1):_0x26124f['setTo'](_0x5bb3e1);}),_0x1a1ae4['stop']();},{'priority':_0x3a663c['normal']+0xa}),_0x46ba23['model']['on']('insertContent',(_0x5798dd,_0x58b15b)=>{const _0x1e514d=_0x58b15b[_0x58b15b['length']-0x1];_0x1e514d&&_0x1e514d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x46ba23['model']['change'](()=>{let _0x33c21c=_0x46ba23['model']['insertContent'](_0x58b15b[0x0],_0x58b15b[0x1],_0x58b15b[0x2],{'forceDefaultExecution':!0x0});if(!_0x33c21c)return;_0x5798dd['return']=_0x33c21c['clone']();const _0x233575=_0x33c21c['end']['nodeBefore'],_0x4a8894=_0x46ba23['model']['schema'];_0x233575&&_0x4a8894['isBlock'](_0x233575)&&!_0x4a8894['isObject'](_0x233575)&&(_0x33c21c=_0x46ba23['model']['createRange'](_0x33c21c['start'],_0x46ba23['model']['createPositionAt'](_0x233575,'end'))),this['markInsertion'](_0x33c21c);}),_0x5798dd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x324393=new x(_0x46ba23,this['_suggestions']);_0x46ba23['commands']['add']('acceptSuggestion',_0x324393),this['enableCommand']('acceptSuggestion');const _0x2911c7=new R(_0x46ba23,this['_suggestions']);_0x46ba23['commands']['add']('discardSuggestion',_0x2911c7),this['enableCommand']('discardSuggestion'),_0x46ba23['commands']['add']('acceptAllSuggestions',new E(_0x46ba23,_0x324393,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x46ba23['commands']['add']('discardAllSuggestions',new E(_0x46ba23,_0x2911c7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x46ba23['commands']['add']('acceptSelectedSuggestions',new O(_0x46ba23,_0x324393,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x46ba23['commands']['add']('discardSelectedSuggestions',new O(_0x46ba23,_0x2911c7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x378f41=_0x46ba23['plugins']['get']('CommentsRepository');this['listenTo'](_0x378f41,'addComment',(_0x560d2e,{threadId:_0x39c8b5})=>{const _0x40a576=this['_suggestions']['get'](_0x39c8b5);_0x40a576&&_0x40a576['commentThread']&&0x1===_0x40a576['commentThread']['length']&&this['_updateSuggestionData'](_0x39c8b5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x378f41,'removeComment',(_0x1b628b,{threadId:_0x1a82e4})=>{const _0x11d7bb=this['_suggestions']['get'](_0x1a82e4);_0x11d7bb&&_0x11d7bb['commentThread']&&!_0x11d7bb['commentThread']['length']&&this['_updateSuggestionData'](_0x1a82e4,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x167ad6){if(this['_adapter'])throw new _0x95c834('track-changes-adapter-already-set',this);this['_adapter']=_0x167ad6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5cc5e7=!0x1,toJSON:_0x11074c=!0x1}={}){const _0x2e7734=[];for(const _0x259e2d of this['_suggestions']['values']())_0x5cc5e7&&!_0x259e2d['isInContent']||_0x2e7734['push'](_0x259e2d);return _0x11074c?_0x2e7734['map'](_0x7d7bba=>_0x7d7bba['toJSON']()):_0x2e7734;}['getSuggestion'](_0x219d0b){const _0x3b4f99=this['_suggestions']['get'](_0x219d0b);if(!_0x3b4f99)throw new _0x95c834('track-changes-suggestion-not-found',this);return _0x3b4f99;}['hasSuggestion'](_0x48c323){return this['_suggestions']['has'](_0x48c323);}['addSuggestionData'](_0x11de49){const {authorId:_0x557631,id:_0x4843fd,attributes:_0x17b89b}=_0x11de49,[_0x382fcf,_0x5bcfbf]=_0x11de49['type']['split'](':'),_0xef0ed6=this['_suggestions']['get'](_0x4843fd)||this['_createSuggestion'](_0x382fcf,_0x5bcfbf,_0x4843fd,_0x557631,_0x17b89b);if(this['_addThreadToSuggestion'](_0xef0ed6),this['_checkSuggestionCorrectness'](_0xef0ed6,_0x382fcf,_0x5bcfbf||null,_0x557631),_0xef0ed6['createdAt']=_0x11de49['createdAt'],_0xef0ed6['_isDataLoaded']=!0x0,_0x17b89b&&_0x17b89b['@external']){const _0x29c9bf=_0x17b89b['@external'],_0x2b9601=this['_getExternalAuthor'](_0x29c9bf['authorName']);_0xef0ed6['authoredAt']=_0x29c9bf['createdAt'],_0xef0ed6['author']=_0x2b9601,_0xef0ed6['isExternal']=!0x0;}else _0xef0ed6['authoredAt']=_0x11de49['createdAt'];switch(_0x11de49['data']&&(_0xef0ed6['data']=_0x11de49['data']),_0x11de49['attributes']&&(_0xef0ed6['attributes']=_0x11de49['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xef0ed6['_saved']=!0x0),this['_suggestionState']['get'](_0xef0ed6)){case'notReady':this['_suggestionState']['set'](_0xef0ed6,'dataReady');break;case'markerReady':_0xef0ed6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xef0ed6])),this['_refreshSuggestionsChain'](new Set([_0xef0ed6])),this['_suggestionState']['set'](_0xef0ed6,'ready'),this['fire']('suggestionLoaded',_0xef0ed6)):this['_suggestionState']['set'](_0xef0ed6,'removed');}return _0xef0ed6;}['acceptSuggestion'](_0x20bca3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x32dba6 of _0x20bca3['getAllAdjacentSuggestions']())_0x32dba6['accept']();});});}['discardSuggestion'](_0x53f20f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4232ab of _0x53f20f['getAllAdjacentSuggestions']())_0x4232ab['discard']();});});}['enableCommand'](_0xe14107,_0x47807b){const _0x5cabad=this['editor']['commands']['get'](_0xe14107);if(!_0x5cabad)throw new _0x95c834('track-changes-command-not-found',this,{'commandName':_0xe14107});if(this['_enabledCommands']['has'](_0x5cabad))throw new _0x95c834('track-changes-enable-command-twice',this,{'commandName':_0xe14107});this['_enabledCommands']['add'](_0x5cabad),_0x47807b&&_0x5cabad['on']('execute',(_0x3b28bb,_0x24dfb6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x24dfb6['length']>0x0&&_0x24dfb6[_0x24dfb6['length']-0x1]&&_0x24dfb6[_0x24dfb6['length']-0x1]['forceDefaultExecution']?_0x24dfb6['pop']():(_0x3b28bb['return']=_0x47807b((..._0x54f78c)=>_0x5cabad['execute'](..._0x54f78c,{'forceDefaultExecution':!0x0}),..._0x24dfb6),_0x3b28bb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5bfe3a){let _0x276b6e,_0x4ba750;const _0x3231d8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x276b6e=_0x5bfe3a();}catch(_0x132764){_0x4ba750=_0x132764;}return _0x3231d8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4ba750&&_0x95c834['rethrowUnexpectedError'](_0x4ba750,this),_0x276b6e;}['markInsertion'](_0x41528d,_0x11fe5c=null,_0x3b0670={}){if(_0x41528d['isCollapsed'])return null;const _0x59323c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x271135,meta:_0x3e90da}of this['_findSuggestions'](_0x41528d,'insertion'))if(_0x3e90da['isOwn']){if(!_0x3e90da['isNextTo']){if(_0x3e90da['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x271135,_0x3b0670))continue;return _0x271135;}if(qt(_0x271135,_0x3b0670))return _0x271135;this['_breakSuggestionMarker'](_0x271135,_0x41528d['start'],_0x41528d['end']);break;}if(_0x11fe5c==_0x271135['subType']&&qt(_0x271135,_0x3b0670)){const _0x2538ee=_0x271135['getFirstRange']();return _0x2538ee['start']['isEqual'](_0x41528d['end'])?this['_setSuggestionRange'](_0x271135,this['_model']['createRange'](_0x41528d['start'],_0x2538ee['end'])):this['_setSuggestionRange'](_0x271135,this['_model']['createRange'](_0x2538ee['start'],_0x41528d['end'])),_0x271135;}}const _0x2458f7=_0x3d800f(),_0x54a462=_0x59323c['id'],_0x47e474=_0x11fe5c?'insertion:'+_0x11fe5c:'insertion',_0x55677f=this['_setSuggestionData']({'id':_0x2458f7,'type':_0x47e474,'createdAt':new Date(),'authorId':_0x54a462,'attributes':_0x3b0670});return this['_addSuggestionMarker'](_0x47e474,_0x2458f7,_0x54a462,_0x41528d),_0x55677f;}['markMultiRangeInsertion'](_0x2ed070,_0x5d5409='multi',_0x561773={}){const _0x1fba91=this['editor']['plugins']['get']('Users')['me'],_0x5e99fe=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5d5409,'join');for(const _0x1cafb8 of this['getSuggestions']())if(_0x1cafb8['author']['id']==_0x1fba91['id']&&'insertion'==_0x1cafb8['type']&&_0x1cafb8['subType']==_0x5d5409&&qt(_0x1cafb8,_0x561773)&&(_0x5e99fe(_0x1cafb8['getRanges'](),_0x2ed070)||_0x5e99fe(_0x2ed070,_0x1cafb8['getRanges']()))){for(const _0xadc62f of _0x2ed070)_0x1cafb8['addRange'](_0xadc62f);return _0x1cafb8;}for(const {suggestion:_0x1bb934,meta:_0x1e7631}of this['_findSuggestions'](_0x2ed070,'insertion')){if(!_0x1e7631['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1e7631['containsRangeInObject'])continue;if(!qt(_0x1bb934,_0x561773))continue;let _0x140544=!0x0;for(const _0x3f463a of _0x1bb934['getRanges']())for(const _0x3b31b0 of _0x2ed070)if(!_0x3f463a['containsRange'](_0x3b31b0)){_0x140544=!0x1;break;}if(_0x140544)return _0x1bb934;}const _0x43d88e=_0x3d800f(),_0x2a2fa5=_0x1fba91['id'],_0xb3a6ab='insertion:'+_0x5d5409,_0xf91f6e=this['_setSuggestionData']({'id':_0x43d88e,'type':_0xb3a6ab,'createdAt':new Date(),'authorId':_0x2a2fa5,'attributes':_0x561773});for(const _0x2cdaa9 of _0x2ed070)this['_addSuggestionMarker'](_0xb3a6ab,_0x43d88e,_0x2a2fa5,_0x2cdaa9,u['getMultiRangeId']());return _0xf91f6e;}['markInlineFormat'](_0x3b9c0d,_0x1d0df4,_0x225e8=null,_0x4c00f9={}){if(_0x225e8=_0x225e8||Gt(_0x1d0df4),_0x3b9c0d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x24d58a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x225e8,'accept');return this['forceDefaultExecution'](()=>_0x24d58a([_0x3b9c0d],_0x1d0df4,_0x4c00f9)),null;}const _0x10fb9e=this['editor']['plugins']['get']('Users')['me'],_0x38249d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xce8e5,meta:_0x1da17e}of this['_findSuggestions'](_0x3b9c0d,'insertion'))_0x1da17e['isOwn']&&!_0x1da17e['isInsideObject']&&_0x38249d['push'](..._0xce8e5['getRanges']());}const _0x35d3ff=function(_0x5ef59e,_0x1e2c3e){const _0x3a0221=[];for(const _0x13a2d9 of _0x1e2c3e){const _0x5c404d=_0x5ef59e['getIntersection'](_0x13a2d9);_0x5c404d&&_0x3a0221['push'](_0x5c404d);}return _0x3a0221;}(_0x3b9c0d,_0x38249d),_0x53b50a=function(_0xa641c9,_0x2df596){const _0x8f8016=[_0xa641c9];for(const _0x3c0d2a of _0x2df596){let _0x5beeb3=0x0;for(;_0x5beeb3<_0x8f8016['length'];){const _0x1eadce=_0x8f8016[_0x5beeb3]['getDifference'](_0x3c0d2a);_0x8f8016['splice'](_0x5beeb3,0x1,..._0x1eadce),_0x5beeb3+=_0x1eadce['length'];}}return _0x8f8016;}(_0x3b9c0d,_0x38249d);_0x35d3ff['length']&&this['_model']['change'](()=>{for(const _0x56a404 of _0x35d3ff){const _0x235ea3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x225e8,'accept');this['forceDefaultExecution'](()=>_0x235ea3([_0x56a404],_0x1d0df4,_0x4c00f9));}});for(const _0x4946ce of _0x53b50a){let _0x3edf7a=null,_0x5bd0fc=_0x4946ce['start'],_0x1d47b5=_0x4946ce['end'];for(const {suggestion:_0x145c30,meta:_0x3bcf0b}of this['_findSuggestions'](_0x4946ce,'formatInline')){if(!_0x3bcf0b['isOwn'])continue;if(_0x145c30['subType']!=_0x225e8)continue;if(!qt(_0x145c30,_0x4c00f9))continue;const _0x3f41d3=_0x145c30['getFirstRange']();if(_0x3f41d3['containsRange'](_0x4946ce,!0x0))return null;_0x5bd0fc=_0x5bd0fc['isBefore'](_0x3f41d3['start'])?_0x5bd0fc:_0x3f41d3['start'],_0x1d47b5=_0x1d47b5['isAfter'](_0x3f41d3['end'])?_0x1d47b5:_0x3f41d3['end'],_0x3edf7a?_0x3f41d3['start']['isBefore'](_0x3edf7a['getFirstRange']()['start'])?(_0x3edf7a['removeMarkers'](),_0x3edf7a=_0x145c30):_0x145c30['removeMarkers']():_0x3edf7a=_0x145c30;}const _0x2ddf17=this['_model']['createRange'](_0x5bd0fc,_0x1d47b5);if(_0x3edf7a)this['_setSuggestionRange'](_0x3edf7a,_0x2ddf17);else{const _0x17d1d0=_0x3d800f(),_0xef402e=_0x10fb9e['id'];this['_setSuggestionData']({'id':_0x17d1d0,'type':'formatInline:'+_0x225e8,'data':_0x1d0df4,'createdAt':new Date(),'authorId':_0xef402e,'attributes':_0x4c00f9}),this['_addSuggestionMarker']('formatInline:'+_0x225e8,_0x17d1d0,_0xef402e,_0x2ddf17);}}return null;}['markBlockFormat'](_0x3883d4,_0x5592dc,_0x4462f1=[],_0x216859=null,_0x8ca761={}){_0x5592dc['formatGroupId']||(_0x5592dc['formatGroupId']=_0x5592dc['commandName']),_0x5592dc['multipleBlocks']=_0x3883d4['is']('range'),_0x216859=_0x216859||Gt(_0x5592dc);const _0x3ec794=_0x4462f1['map'](_0x24a8b6=>Lt(_0x24a8b6,this['_model'])),_0x23ecc2=_0x3883d4['is']('range')?_0x3883d4:Lt(_0x3883d4,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5ef585=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x216859,'accept');return this['forceDefaultExecution'](()=>_0x5ef585([_0x23ecc2],_0x5592dc,_0x8ca761)),null;}_0x3ec794['push'](_0x23ecc2);let _0x2ba803=!0x0;for(const _0x540e24 of _0x3ec794)if(!this['_rangeIsInLocalUserInsertion'](_0x540e24)){_0x2ba803=!0x1;break;}if(_0x2ba803&&'always'!==this['_trackFormatChanges']){const _0x1681c8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x216859,'accept');return this['forceDefaultExecution'](()=>_0x1681c8([_0x23ecc2],_0x5592dc,_0x8ca761)),null;}let _0x3cb6f5=null,_0x4f6361=_0x23ecc2['start'],_0x43866f=_0x23ecc2['end'];for(const {suggestion:_0x404bae,meta:_0x22ef60}of this['_findSuggestions'](_0x23ecc2,'formatBlock')){if(!_0x22ef60['isOwn'])continue;if(_0x22ef60['isNextTo']||_0x22ef60['containsRangeInObject']||_0x22ef60['isInsideObject'])continue;if(_0x404bae['data']['formatGroupId']!=_0x5592dc['formatGroupId'])continue;if(!qt(_0x404bae,_0x8ca761))continue;const _0x1421ec=_0x404bae['getFirstRange']();if(_0x404bae['subType']==_0x216859){if(_0x1421ec['containsRange'](_0x23ecc2,!0x0))return null;_0x4f6361=_0x4f6361['isBefore'](_0x1421ec['start'])?_0x4f6361:_0x1421ec['start'],_0x43866f=_0x43866f['isAfter'](_0x1421ec['end'])?_0x43866f:_0x1421ec['end'],_0x3cb6f5?_0x1421ec['start']['isBefore'](_0x3cb6f5['getFirstRange']()['start'])?(_0x3cb6f5['removeMarkers'](),_0x3cb6f5=_0x404bae):_0x404bae['removeMarkers']():_0x3cb6f5=_0x404bae;}else{const _0x34c850=_0x23ecc2['getIntersection'](_0x1421ec);this['_cutOutSuggestionMarker'](_0x404bae,_0x34c850);}}const _0x442c97=this['editor']['plugins']['get']('Users')['me'],_0x58f007=_0x3d800f(),_0x3bce76=_0x442c97['id'];if(_0x3cb6f5)return this['_setSuggestionRange'](_0x3cb6f5,this['_model']['createRange'](_0x4f6361,_0x43866f)),_0x3cb6f5;{const _0xe5d89=this['_setSuggestionData']({'id':_0x58f007,'type':'formatBlock:'+_0x216859,'data':_0x5592dc,'createdAt':new Date(),'authorId':_0x3bce76,'attributes':_0x8ca761});return this['_addSuggestionMarker']('formatBlock:'+_0x216859,_0x58f007,_0x3bce76,this['_model']['createRange'](_0x4f6361,_0x43866f)),_0xe5d89;}}['markMultiRangeBlockFormat'](_0x1b3bbf,_0x2fa044,_0x4ac9db=[],_0x20850d=null,_0x53eaf6={}){_0x2fa044['formatGroupId']||(_0x2fa044['formatGroupId']=_0x2fa044['commandName']);const _0x1a8ed3=_0x1b3bbf[0x0];_0x2fa044['multipleBlocks']=_0x1a8ed3['is']('range'),_0x20850d=_0x20850d||Gt(_0x2fa044);const _0x2e8c19=_0x4ac9db['map'](_0x4f7df3=>Lt(_0x4f7df3,this['_model'])),_0x4156df=_0x1a8ed3['is']('range')?_0x1b3bbf:_0x1b3bbf['map'](_0x514ca8=>Lt(_0x514ca8,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3241db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20850d,'accept');return this['forceDefaultExecution'](()=>_0x3241db(_0x4156df,_0x2fa044,_0x53eaf6)),null;}_0x2e8c19['push'](..._0x4156df);let _0x3b2f25=!0x0;for(const _0x4dcfaa of _0x2e8c19)if(!this['_rangeIsInLocalUserInsertion'](_0x4dcfaa)){_0x3b2f25=!0x1;break;}if(_0x3b2f25&&'always'!==this['_trackFormatChanges']){const _0x27ce4e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20850d,'accept');return this['forceDefaultExecution'](()=>_0x27ce4e(_0x4156df,_0x2fa044,_0x53eaf6)),null;}const _0x378a45=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f776e of this['getSuggestions']()){if(_0x3f776e['author']['id']!=_0x378a45['id'])continue;if('formatBlock'!=_0x3f776e['type']||_0x3f776e['data']['formatGroupId']!=_0x2fa044['formatGroupId'])continue;if(!qt(_0x3f776e,_0x53eaf6))continue;const _0x505de0=_0x3f776e['subType']==_0x20850d;for(let _0x1039e4=0x0;_0x1039e4<_0x4156df['length'];_0x1039e4++){const _0x7dcb89=_0x4156df[_0x1039e4];for(const _0x455103 of _0x3f776e['getMarkers']()){const _0x286eff=_0x455103['getRange']();if(_0x7dcb89['isEqual'](_0x286eff)){_0x505de0?(_0x4156df['splice'](_0x1039e4,0x1),_0x1039e4--):_0x3f776e['removeMarker'](_0x455103['name']);break;}}}}if(0x0==_0x4156df['length'])return null;const _0x57d401=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20850d,'join');for(const _0x586ffd of this['getSuggestions']())if(_0x586ffd['author']['id']==_0x378a45['id']&&'formatBlock'==_0x586ffd['type']&&_0x586ffd['data']['formatGroupId']==_0x2fa044['formatGroupId']&&_0x586ffd['subType']==_0x20850d&&qt(_0x586ffd,_0x53eaf6)&&(_0x57d401(_0x586ffd['getRanges'](),_0x4156df)||_0x57d401(_0x4156df,_0x586ffd['getRanges']()))){for(const _0x19c20f of _0x4156df)_0x586ffd['addRange'](_0x19c20f);return _0x586ffd;}const _0x390126=_0x3d800f(),_0xe3df85=_0x378a45['id'],_0x3f18d4='formatBlock:'+_0x20850d,_0x47ec32=this['_setSuggestionData']({'id':_0x390126,'type':_0x3f18d4,'data':_0x2fa044,'createdAt':new Date(),'authorId':_0xe3df85,'attributes':_0x53eaf6});for(const _0x2e0cb4 of _0x4156df)this['_addSuggestionMarker'](_0x3f18d4,_0x390126,_0xe3df85,_0x2e0cb4,u['getMultiRangeId']());return _0x47ec32;}['markDeletion'](_0x5f24c9,_0x2663b3=null,_0x301a0e={}){if(_0x5f24c9['isCollapsed'])return null;const _0x26edd5=this['editor']['plugins']['get']('Users')['me'],_0x17d5d4=new _0xe83a0b(_0x5f24c9['start'],_0x5f24c9['end']);for(const {suggestion:_0x2fd37e,meta:_0x4885cf}of this['_findSuggestions'](_0x17d5d4,'insertion'))if(_0x4885cf['isOwn']&&!_0x4885cf['isNextTo']){if(_0x2fd37e['isMultiRange']){const _0x261c9a=_0x2fd37e['getRanges']()['filter'](_0x12a7e4=>'$graveyard'!=_0x12a7e4['root']['rootName']);_0x261c9a['every'](_0x1b8657=>_0x17d5d4['containsRange'](_0x1b8657,!0x0))&&_0x2fd37e['discard']();if(_0x261c9a['some'](_0x48c8f3=>_0x48c8f3['containsRange'](_0x17d5d4,!0x0))){const _0x5ca3a1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2663b3,'accept');return this['forceDefaultExecution'](()=>_0x5ca3a1([_0x17d5d4],null,_0x301a0e)),null;}}else{const _0x5bc823=_0x17d5d4['getIntersection'](_0x2fd37e['getFirstRange']());null!==_0x5bc823&&_0x2fd37e['_onDiscard']([_0x5bc823],null,_0x301a0e);}}if(_0x17d5d4['detach'](),_0x17d5d4['isCollapsed']||'$graveyard'==_0x17d5d4['root']['rootName'])return null;let _0xba55d7=null,_0x2a5336=_0x17d5d4['start'],_0x39d705=_0x17d5d4['end'];const _0xa53716=this['_findSuggestions'](_0x17d5d4,'deletion');for(const {suggestion:_0x47d10d,meta:_0x359bc3}of _0xa53716){const _0x59bd52=this['_model']['createRange'](_0x2a5336,_0x39d705);if(_0x359bc3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x359bc3['containsRangeInObject']&&!_0x359bc3['isInsideObject'])){if(_0x47d10d['isMultiRange']){if(!qt(_0x47d10d,_0x301a0e))continue;let _0xed4b65=!0x0;for(const _0x16f99d of _0x47d10d['getRanges']()){if(_0x16f99d['containsRange'](_0x59bd52,!0x0))return _0x47d10d;_0x59bd52['containsRange'](_0x16f99d)||(_0xed4b65=!0x1);}_0xed4b65&&_0x47d10d['discard']();}else{const _0x44dc25=_0x47d10d['getFirstRange']();if(_0x44dc25['containsRange'](_0x59bd52,!0x0))return _0x47d10d;if(!qt(_0x47d10d,_0x301a0e)){_0x59bd52['containsRange'](_0x44dc25)?_0x47d10d['removeMarkers']():_0x44dc25['containsPosition'](_0x2a5336)?_0x2a5336=_0x44dc25['end']:_0x44dc25['containsPosition'](_0x39d705)&&(_0x39d705=_0x44dc25['start']);continue;}_0x2a5336=_0x2a5336['isBefore'](_0x44dc25['start'])?_0x2a5336:_0x44dc25['start'],_0x39d705=_0x39d705['isAfter'](_0x44dc25['end'])?_0x39d705:_0x44dc25['end'],_0x301a0e=Object['assign']({},_0x47d10d['attributes']),_0xba55d7?_0x44dc25['start']['isBefore'](_0xba55d7['getFirstRange']()['start'])?(_0xba55d7['removeMarkers'](),_0xba55d7=_0x47d10d):_0x47d10d['removeMarkers']():_0xba55d7=_0x47d10d;}}}if(_0xba55d7)return this['_setSuggestionRange'](_0xba55d7,this['_model']['createRange'](_0x2a5336,_0x39d705)),_0xba55d7;{const _0xb28148=_0x3d800f(),_0x315ca1=this['_model']['createRange'](_0x2a5336,_0x39d705),_0x432a19=_0x26edd5['id'],_0x45bf7a=_0x2663b3?'deletion:'+_0x2663b3:'deletion',_0x272f5e=this['_setSuggestionData']({'id':_0xb28148,'type':_0x45bf7a,'createdAt':new Date(),'authorId':_0x432a19,'attributes':_0x301a0e});return this['_addSuggestionMarker'](_0x45bf7a,_0xb28148,_0x432a19,_0x315ca1),_0x272f5e;}}['markMultiRangeDeletion'](_0x11c4f2,_0x586321='multi',_0x2c291f={}){const _0x4f4ef6=this['editor']['plugins']['get']('Users')['me'],_0x3fbf8f=_0x11c4f2['map'](_0x4bfa4e=>new _0xe83a0b(_0x4bfa4e['start'],_0x4bfa4e['end'])),_0x350c4f=new Set();for(const {suggestion:_0x5b171e,meta:_0x2947e8}of this['_findSuggestions'](_0x3fbf8f,'insertion'))_0x2947e8['isOwn']&&!_0x2947e8['isNextTo']&&_0x350c4f['add'](_0x5b171e);for(const _0x302f97 of _0x350c4f)if(_0x302f97['isMultiRange']){const _0x5de27c=_0x302f97['getRanges']();(!_0x302f97['attributes']||!_0x302f97['attributes']['skipNestingCheck'])&&(_0x5de27c['every'](_0xf1898a=>_0x3fbf8f['some'](_0x4eb15d=>_0x4eb15d['containsRange'](_0xf1898a,!0x0)))&&_0x302f97['discard']());if(_0x3fbf8f['every'](_0x2fb80d=>_0x5de27c['some'](_0x18ab1e=>_0x18ab1e['containsRange'](_0x2fb80d,!0x0)))){const _0x42ead0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x586321,'accept');return this['forceDefaultExecution'](()=>_0x42ead0(_0x11c4f2,null,_0x2c291f)),null;}}else{const _0x362c7a=_0x302f97['getFirstRange']();_0x3fbf8f['some'](_0x286159=>_0x286159['containsRange'](_0x362c7a,!0x0))&&_0x302f97['discard']();if(_0x3fbf8f['every'](_0x3b476f=>_0x362c7a['containsRange'](_0x3b476f,!0x0))){const _0x41b5be=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x586321,'accept');return this['forceDefaultExecution'](()=>_0x41b5be(_0x3fbf8f,null,_0x2c291f)),null;}}const _0x38541a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x586321,'join');let _0x4856a0=null;for(const _0x1f249e of this['getSuggestions']())if(_0x1f249e['author']['id']==_0x4f4ef6['id']&&_0x1f249e['isInContent']&&'deletion'==_0x1f249e['type']&&_0x1f249e['subType']==_0x586321&&qt(_0x1f249e,_0x2c291f)&&(_0x38541a(_0x1f249e['getRanges'](),_0x3fbf8f)||_0x38541a(_0x3fbf8f,_0x1f249e['getRanges']()))){if(_0x4856a0){if(_0x1f249e['commentThread']&&_0x1f249e['commentThread']['length'])continue;for(const _0x4f9518 of _0x1f249e['getRanges']())_0x4856a0['isIntersectingWithRange'](_0x4f9518)||_0x4856a0['addRange'](_0x4f9518);_0x1f249e['removeMarkers']();}else{_0x4856a0=_0x1f249e;for(const _0x4ad6eb of _0x3fbf8f)_0x1f249e['isIntersectingWithRange'](_0x4ad6eb)||_0x1f249e['addRange'](_0x4ad6eb);}}if(_0x4856a0)return _0x4856a0;_0x350c4f['clear']();for(const {suggestion:_0x12c50b,meta:_0x3aa60e}of this['_findSuggestions'](_0x3fbf8f,'deletion'))_0x3aa60e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3aa60e['containsRangeInObject']&&!_0x3aa60e['isInsideObject'])&&qt(_0x12c50b,_0x2c291f)&&_0x350c4f['add'](_0x12c50b);for(const _0x469666 of _0x350c4f){const _0x42c83e=_0x469666['getRanges']();if(!_0x2c291f||!_0x2c291f['skipNestingCheck']){if(_0x3fbf8f['every'](_0x3452c6=>_0x42c83e['some'](_0x22becd=>_0x22becd['containsRange'](_0x3452c6,!0x0))))return _0x469666;}(!_0x469666['attributes']||!_0x469666['attributes']['skipNestingCheck'])&&(_0x42c83e['every'](_0xf14585=>_0x3fbf8f['some'](_0x54ab68=>_0x54ab68['containsRange'](_0xf14585,!0x0)))&&_0x469666['discard']());}const _0x112673=_0x3d800f(),_0x4cc5b3=_0x4f4ef6['id'],_0x459baa='deletion:'+_0x586321,_0x202ed0=this['_setSuggestionData']({'id':_0x112673,'type':_0x459baa,'createdAt':new Date(),'authorId':_0x4cc5b3,'attributes':_0x2c291f});for(const _0x25aea7 of _0x3fbf8f)_0x25aea7['detach'](),_0x25aea7['isCollapsed']||'$graveyard'==_0x25aea7['root']['rootName']||this['_addSuggestionMarker'](_0x459baa,_0x112673,_0x4cc5b3,_0x25aea7,u['getMultiRangeId']());return _0x202ed0;}['markAttributeChange'](_0xd36329,_0x4bcf3f,_0x369c87,_0x5a96c1,_0x15415d){if(_0xd36329['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x47cb65=this['editor']['plugins']['get']('Users')['me']['id'],_0x215b45=Array['from'](this['_suggestions']['values']())['filter'](_0x22b5a8=>'attribute'==_0x22b5a8['type']&&_0x22b5a8['data']['key']==_0x4bcf3f&&_0x22b5a8['isIntersectingWithRange'](_0xd36329));if('default'===this['_trackFormatChanges']){const _0x4eb049=this['_findSuggestions'](_0xd36329,'insertion')['filter'](({meta:_0x141dbc})=>_0x141dbc['isOwn']&&!_0x141dbc['isInsideObject']&&!_0x141dbc['isNextTo'])['map'](({suggestion:_0x4ac8cb})=>_0x4ac8cb);_0x215b45['unshift'](..._0x4eb049);}const _0x12635e=new Map([[_0xd36329,_0x369c87]]);for(const _0x3706d6 of _0x215b45){const _0x2e3b93='attribute'==_0x3706d6['type']?_0x3706d6['data']['oldValue']:void 0x0,_0x1fec42=_0x3706d6['getFirstRange'](),_0x2de705=Array['from'](_0x12635e['keys']())['find'](_0x15704d=>_0x15704d['isIntersecting'](_0x1fec42));if(!_0x2de705)continue;const _0x4eab8=_0x2de705['getDifference'](_0x1fec42);this['_isBlockAttribute'](_0x4bcf3f)&&'insertion'==_0x3706d6['type']&&0x0!=_0x4eab8['length']||(_0x12635e['delete'](_0x2de705),_0x4eab8['forEach'](_0x7f8355=>{_0x12635e['set'](_0x7f8355,_0x369c87);}),'insertion'!=_0x3706d6['type']&&_0x2e3b93!=_0x5a96c1&&_0x12635e['set'](_0x2de705['getIntersection'](_0x1fec42),_0x2e3b93));}const _0x2a61e7=[];for(const [_0x48c5ac,_0x131df1]of _0x12635e){const _0x4bdcb6=_0x3d800f(),_0x45fee0={'key':_0x4bcf3f,'oldValue':_0x131df1,'newValue':_0x5a96c1};_0x4bcf3f['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':_0x4bcf3f});const _0x3df859=('attribute:'+(_0x4bcf3f+'|'+Gt({'newValue':_0x5a96c1})))['substring'](0x0,0x3c),_0x6ddd43=this['_setSuggestionData']({'id':_0x4bdcb6,'type':_0x3df859,'data':_0x45fee0,'createdAt':new Date(),'authorId':_0x47cb65,'attributes':_0x15415d});_0x2a61e7['push'](_0x6ddd43),this['_addSuggestionMarker'](_0x3df859,_0x4bdcb6,_0x47cb65,_0x48c5ac);}return _0x2a61e7;}['enableDefaultAttributesIntegration'](_0x3dff08){this['enableCommand'](_0x3dff08,(_0x288b5f,..._0x228ebc)=>{this['_recordAttributeChanges'](()=>{_0x288b5f(..._0x228ebc);});});}['registerBlockAttribute'](_0x5ecbdb){this['_blockAttributeKeys']['add'](_0x5ecbdb);}['registerInlineAttribute'](_0x37be66){this['_inlineAttributeKeys']['add'](_0x37be66);}['_getAttributeKey'](_0x5557f2){return'attribute'==_0x5557f2['type']?_0x5557f2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x31e44e,_0x44ab51){const _0x55fabd=_0x31e44e['getFirstMarker']();this['_model']['change'](_0xc542d5=>{_0xc542d5['updateMarker'](_0x55fabd,{'range':_0x44ab51});});}['_addThreadToSuggestion'](_0x489702){const _0x3c9c18=_0x489702['id'],_0x2ab384=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c9c18)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2ab384,'threadId':_0x3c9c18,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x40f5de=this['_commentsRepository']['getCommentThread'](_0x3c9c18);_0x40f5de['unbind']('isRemovable'),_0x40f5de['isRemovable']=!0x1,_0x489702['commentThread']=_0x40f5de;}['_checkSuggestionCorrectness'](_0x1b35a5,_0x4fc039,_0x57ad46,_0x513684){if(_0x1b35a5['type']!=_0x4fc039||_0x1b35a5['subType']!=_0x57ad46||_0x1b35a5['creator']['id']!=_0x513684)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x95c834('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2c4f49,_0x2cbbb3){const _0x5195a0=_0x2c4f49['getFirstRange']();if(_0x2cbbb3['isEqual'](_0x5195a0))_0x2c4f49['removeMarkers']();else{if(_0x5195a0['containsRange'](_0x2cbbb3)){const _0x3c2fee=this['_model']['createPositionAt'](_0x2cbbb3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2c4f49,this['_model']['createRange'](_0x5195a0['start'],_0x3c2fee));const _0x17ccf3=_0x3d800f(),_0x1fe085=_0x2c4f49['creator']['id'],_0x369c8f=_0x2c4f49['type']+':'+_0x2c4f49['subType'];this['_setSuggestionData']({'id':_0x17ccf3,'type':_0x369c8f,'createdAt':new Date(),'authorId':_0x1fe085,'data':_0x2c4f49['data'],'attributes':_0x2c4f49['attributes']});const _0x2b53ba=this['_model']['createPositionAt'](_0x2cbbb3['end']['parent'],'after'),_0x5af767=this['_model']['createRange'](_0x2b53ba,_0x5195a0['end']);this['_addSuggestionMarker'](_0x369c8f,_0x17ccf3,_0x1fe085,_0x5af767);}else{if(_0x5195a0['containsPosition'](_0x2cbbb3['start'])){const _0xb0454a=this['_model']['createPositionAt'](_0x2cbbb3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2c4f49,this['_model']['createRange'](_0x5195a0['start'],_0xb0454a));}else{const _0x1232fd=this['_model']['createPositionAt'](_0x2cbbb3['end']['parent'],'after');this['_setSuggestionRange'](_0x2c4f49,this['_model']['createRange'](_0x1232fd,_0x5195a0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xdc706a){for(const {suggestion:_0xfcdc58,meta:_0x563b8c}of this['_findSuggestions'](_0xdc706a,'insertion')){if(!_0x563b8c['isOwn'])continue;const _0x526deb=_0xfcdc58['getRanges']();for(const _0x3dbd81 of _0x526deb)if(!_0xdc706a['getDifference'](_0x3dbd81)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4dd1a6){const _0x1f4129=this['editor']['plugins']['get']('Users')['getUser'](_0x4dd1a6);if(!_0x1f4129)throw new _0x95c834('track-changes-user-not-found',this);return _0x1f4129;}['_getExternalAuthor'](_0x5db42a){const _0x2382d1=this['editor']['plugins']['get']('Users'),_0x823a70=_0x3a91d5('external:'+_0x5db42a),_0x512179=_0x2382d1['getUser'](_0x823a70);return _0x512179||_0x2382d1['addUser']({'id':_0x823a70,'name':_0x5db42a});}['_createSuggestion'](_0x23c0a2,_0x5c766f,_0x1c8dc3,_0x59183f,_0x9279ba){const _0x553f23=this['_getAuthorFromId'](_0x59183f),_0x6226f4=this['_suggestionFactory']['buildSuggestion'](_0x23c0a2,_0x5c766f,_0x1c8dc3,_0x553f23,_0x9279ba,_0x28e50b=>{this['_updateSuggestionData'](_0x1c8dc3,{'attributes':_0x28e50b});const _0x2cce6e=this['getSuggestion'](_0x1c8dc3);this['_joinWithAdjacentSuggestions'](new Set([_0x2cce6e])),this['_refreshSuggestionsChain'](new Set([_0x2cce6e]));});return this['listenTo'](_0x6226f4,'accept',()=>{this['_updateSuggestionData'](_0x1c8dc3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x6226f4,'discard',()=>{this['_updateSuggestionData'](_0x1c8dc3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1c8dc3,_0x6226f4),this['_suggestionState']['set'](_0x6226f4,'notReady'),_0x6226f4;}['_splitMarkerName'](_0x538f20){const _0x1902b1=_0x538f20['split'](':');return{'group':_0x1902b1[0x0],'type':_0x1902b1[0x1],'subType':_0x1902b1['length']>=0x5?_0x1902b1[0x2]:null,'id':_0x1902b1['length']<0x5?_0x1902b1[0x2]:_0x1902b1[0x3],'authorId':_0x1902b1['length']<0x5?_0x1902b1[0x3]:_0x1902b1[0x4],'markerCount':0x6==_0x1902b1['length']?_0x1902b1[0x5]:null};}['_breakSuggestionMarker'](_0x3976fc,_0x216013,_0x37ff60){const _0x4aca35=_0x3976fc['getFirstRange'](),_0x26c561=_0x4aca35['start'],_0x2ca596=_0x4aca35['end'];this['_setSuggestionRange'](_0x3976fc,this['_model']['createRange'](_0x26c561,_0x216013));const _0x28bcef=_0x3d800f(),_0xde4b6e=_0x3976fc['creator']['id'],_0x4148af=_0x3976fc['type']+(_0x3976fc['subType']?':'+_0x3976fc['subType']:'');this['_setSuggestionData']({'id':_0x28bcef,'type':_0x4148af,'createdAt':new Date(),'authorId':_0xde4b6e,'originalSuggestionId':_0x3976fc['id'],'attributes':_0x3976fc['attributes'],'data':_0x3976fc['data']});const _0x5af8da=this['_getAttributeKey'](_0x3976fc);('formatBlock'==_0x3976fc['type']||_0x5af8da&&this['_isBlockAttribute'](_0x5af8da))&&(_0x37ff60=this['_model']['createPositionBefore'](_0x37ff60['parent'])),this['_addSuggestionMarker'](_0x4148af,_0x28bcef,_0xde4b6e,this['_model']['createRange'](_0x37ff60,_0x2ca596));}['_findSuggestions'](_0x3983db,_0x757dc9=null){const _0x48a89b=[],_0x57934f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3983db)||(_0x3983db=[_0x3983db]);for(const _0x3712f2 of this['getSuggestions']()){if(!_0x3712f2['isInContent'])continue;if(_0x757dc9&&_0x3712f2['type']!=_0x757dc9)continue;let _0x14fd49=!0x1;for(const _0x50883f of _0x3712f2['getRanges']()){for(const _0x4a2593 of _0x3983db){const _0x512406=_0x4a2593['start']['isEqual'](_0x50883f['end'])||_0x4a2593['end']['isEqual'](_0x50883f['start']);if(_0x512406||_0x4a2593['getIntersection'](_0x50883f)){const _0x4f8412=_0x4a2593['containsRange'](_0x50883f)&&Ot(this['_model']['schema'],_0x50883f['start'],_0x4a2593),_0x10a80e=_0x50883f['containsRange'](_0x4a2593)&&Ot(this['_model']['schema'],_0x4a2593['start'],_0x50883f);_0x48a89b['push']({'suggestion':_0x3712f2,'meta':{'isOwn':_0x57934f==_0x3712f2['author'],'isNextTo':_0x512406,'isInsideObject':_0x4f8412,'containsRangeInObject':_0x10a80e}}),_0x14fd49=!0x0;break;}}if(_0x14fd49)break;}}return _0x48a89b;}['_addSuggestionMarker'](_0x3adafa,_0x290981,_0x1f66cf,_0x5eec8c,_0x6f71de){this['_model']['change'](_0x1a87e0=>{let _0xaa3e59='suggestion:'+_0x3adafa+':'+_0x290981+':'+_0x1f66cf;_0x6f71de&&(_0xaa3e59=_0xaa3e59+':'+_0x6f71de),_0x1a87e0['addMarker'](_0xaa3e59,{'range':_0x5eec8c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x43dd09){const _0x26e678=_0x43dd09['previous'],_0x1f1526=_0x43dd09['next'];_0x43dd09['previous']=null,_0x43dd09['next']=null,null!=_0x26e678&&_0x26e678['next']==_0x43dd09&&(_0x26e678['next']=_0x1f1526),null!=_0x1f1526&&_0x1f1526['previous']==_0x43dd09&&(_0x1f1526['previous']=_0x26e678),'ready'==this['_suggestionState']['get'](_0x43dd09)&&(this['_suggestionState']['set'](_0x43dd09,'removed'),this['fire']('suggestionUnloaded',_0x43dd09,_0x26e678,_0x1f1526));}['_setSuggestionData'](_0x2d5a47){const _0x4ed161=_0x2d5a47['id'],_0x4fc02f=this['addSuggestionData'](_0x2d5a47);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x38977a=this['editor']['plugins']['get']('PendingActions'),_0x577f41=_0x4fc02f['hasComments'],_0x7c9580=_0x4fc02f['subType']?_0x4fc02f['type']+':'+_0x4fc02f['subType']:_0x4fc02f['type'],_0x430ff1=this['editor']['locale'],_0x398af0=_0x38977a['add'](o(_0x430ff1,'PENDING_ACTION_SUGGESTION')),_0xa58c0e={'id':_0x4ed161,'type':_0x7c9580,'hasComments':_0x577f41,'data':_0x2d5a47['data']||null,'originalSuggestionId':_0x2d5a47['originalSuggestionId']||null,'attributes':_0x4fc02f['attributes']};this['_adapter']['addSuggestion'](_0xa58c0e)['then'](_0xd81829=>{_0x4fc02f['_saved']=!0x0,_0x38977a['remove'](_0x398af0),_0xd81829&&_0xd81829['createdAt']&&(this['_suggestions']['get'](_0x4ed161)['createdAt']=_0xd81829['createdAt']);})['catch'](_0xe23b2b=>{throw _0xcb7ab9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4fc02f['discard']();}),_0x4fc02f['stopListening'](),this['_suggestions']['delete'](_0x4fc02f['id']),this['_suggestionState']['delete'](_0x4fc02f),_0xe23b2b;});}return _0x4fc02f;}['_isBlockAttribute'](_0x264855){return this['_blockAttributeKeys']['has'](_0x264855);}['_updateSuggestionData'](_0x499114,_0x35ea8f){const _0x23ff42=this['editor']['plugins']['get']('PendingActions'),_0x2fdc23=this['getSuggestion'](_0x499114);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2fdc23['_saved']){const _0x5815f8=_0x23ff42['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x499114,_0x35ea8f)['then'](()=>{_0x23ff42['remove'](_0x5815f8);});}else _0x2fdc23['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x499114,_0x35ea8f);});}}['_getSuggestionData'](_0x24baa2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x95c834('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x24baa2);}['_handleNewSuggestionMarker'](_0x114635){const {id:_0x570559,type:_0x83a323,subType:_0x339f03,authorId:_0x3cafb9}=this['_splitMarkerName'](_0x114635),_0x4916c5=this['_suggestions']['get'](_0x570559)||this['_createSuggestion'](_0x83a323,_0x339f03,_0x570559,_0x3cafb9,{});switch(this['_checkSuggestionCorrectness'](_0x4916c5,_0x83a323,_0x339f03,_0x3cafb9),this['_suggestionState']['get'](_0x4916c5)){case'notReady':this['_getSuggestionData'](_0x570559)['then'](_0x4e74ff=>{let _0x1b1848=Promise['resolve']();_0x4e74ff['hasComments']&&(_0x1b1848=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x570559})),_0x1b1848['then'](()=>{this['addSuggestionData'](_0x4e74ff)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4916c5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x570559,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4916c5,'ready'),this['fire']('suggestionLoaded',_0x4916c5);break;case'ready':this['fire']('suggestionChanged',_0x4916c5);}return _0x4916c5['addMarkerName'](_0x114635),_0x4916c5;}['_refreshSuggestionsChain'](_0x2008f4){const _0x145260=Array['from'](_0x2008f4),_0x2f3b01=_0x145260['filter'](_0x35be0d=>'attribute'==_0x35be0d['type']);this['_refreshAttributeSuggestionsChain'](_0x2f3b01);const _0x63bb5a=_0x145260['filter'](_0xc363e5=>!_0xc363e5['isMultiRange']&&'attribute'!=_0xc363e5['type']),_0x29f4ba=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x304dd4=>!_0x304dd4['isMultiRange']&&'attribute'!=_0x304dd4['type']),_0x582726=_0x29f4ba['filter'](_0x19ce1e=>!_0x2008f4['has'](_0x19ce1e)),_0x1c453d=new Map(_0x29f4ba['map'](_0x4e063b=>[_0x4e063b,this['_suggestionFactory']['getSuggestionCallback'](_0x4e063b['type'],_0x4e063b['subType'],'chain')])),_0x1d02a4=new Map(_0x29f4ba['map'](_0x3cf50a=>[_0x3cf50a,_0x3cf50a['getFirstRange']()])),_0x58fc2a=new Set(),_0x575052=new Set();for(let _0x3c2fab=0x0;_0x3c2fab<_0x63bb5a['length'];_0x3c2fab++)_0x5b72c9(_0x63bb5a[_0x3c2fab],_0x63bb5a,_0x3c2fab+0x1);for(let _0x1b50b0=0x0;_0x1b50b0<_0x63bb5a['length'];_0x1b50b0++)_0x5b72c9(_0x63bb5a[_0x1b50b0],_0x582726,0x0);const _0x259ad4=new Set();for(let _0x7ca7a8=0x0;_0x7ca7a8<_0x63bb5a['length'];_0x7ca7a8++){const _0x58e9d7=_0x63bb5a[_0x7ca7a8];!_0x575052['has'](_0x58e9d7)&&_0x58e9d7['previous']&&(_0x259ad4['add'](_0x58e9d7['previous']),_0x58e9d7['previous']['next']===_0x58e9d7&&(_0x58e9d7['previous']['next']=null),_0x58e9d7['previous']=null),!_0x58fc2a['has'](_0x58e9d7)&&_0x58e9d7['next']&&(_0x259ad4['add'](_0x58e9d7['next']),_0x58e9d7['next']['previous']===_0x58e9d7&&(_0x58e9d7['next']['previous']=null),_0x58e9d7['next']=null);}function _0x5b72c9(_0x48d150,_0x34b419,_0x413234){for(let _0x72a165=_0x413234;_0x72a165<_0x34b419['length'];_0x72a165++){const _0x41691c=_0x5f0f82(_0x48d150,_0x34b419[_0x72a165]);_0x41691c&&(_0x41691c[0x0]['next']=_0x41691c[0x1],_0x41691c[0x1]['previous']=_0x41691c[0x0],_0x58fc2a['add'](_0x41691c[0x0]),_0x575052['add'](_0x41691c[0x1]));}}function _0x5f0f82(_0x382a36,_0x1bda51){if(_0x382a36['author']['id']!==_0x1bda51['author']['id'])return null;const _0x45fd88=_0x1c453d['get'](_0x382a36)(_0x382a36,_0x1bda51,_0x1d02a4['get'](_0x382a36),_0x1d02a4['get'](_0x1bda51));if(!_0x45fd88)return null;return _0x1c453d['get'](_0x1bda51)(_0x382a36,_0x1bda51,_0x1d02a4['get'](_0x382a36),_0x1d02a4['get'](_0x1bda51))?_0x45fd88[0x1]['commentThread']&&_0x45fd88[0x1]['commentThread']['length']?null:_0x45fd88:null;}_0x259ad4['size']&&this['_refreshSuggestionsChain'](_0x259ad4);}['_refreshAttributeSuggestionsChain'](_0xbe4445){if(0x0==_0xbe4445['length'])return;const _0x291526=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22741c=>'attribute'==_0x22741c['type']&&_0x22741c['_isDataLoaded']),_0x227832=[],_0x1973cc=new Map();for(const _0x3193d9 of _0x291526){const _0x2f704b=_0x3a91d5(_0x3193d9['attributes']);_0x1973cc['has'](_0x2f704b)||(_0x1973cc['set'](_0x2f704b,_0x227832['length']),_0x227832['push']([]));const _0x330646=_0x1973cc['get'](_0x2f704b);_0x227832[_0x330646]['push'](_0x3193d9);}!(function(){_0x227832['sort']((_0x399302,_0x5aa939)=>{const _0x34e5ec=_0x399302[0x0]['createdAt'],_0xc422bf=_0x5aa939[0x0]['createdAt'];return _0x34e5ec==_0xc422bf?_0x399302[0x0]['attributes']['groupId']<_0x5aa939[0x0]['attributes']['groupId']?-0x1:0x1:_0x34e5ec<_0xc422bf?-0x1:0x1;});for(const _0x59e456 of _0x227832)_0x59e456['sort']((_0xcad75f,_0x3d963a)=>_0xcad75f['id']<_0x3d963a['id']?-0x1:0x1);}());for(let _0x41bee7=0x0;_0x41bee7<_0x227832['length'];_0x41bee7++){if(0x0==_0x227832[_0x41bee7]['length'])continue;const _0x10324e=[];for(let _0x217c99=_0x41bee7+0x1;_0x217c99<_0x227832['length'];_0x217c99++)0x0!=_0x227832[_0x217c99]['length']&&_0x42eb4f(_0x227832[_0x41bee7],_0x227832[_0x217c99])&&_0x10324e['push'](_0x217c99);for(const _0x5e1219 of _0x10324e)_0x227832[_0x41bee7]=_0x227832[_0x41bee7]['concat'](_0x227832[_0x5e1219]),_0x227832[_0x5e1219]=[];}for(const _0x489c10 of _0x227832)for(let _0x42f4b4=0x0;_0x42f4b4<_0x489c10['length'];_0x42f4b4++){const _0x1ed63b=_0x489c10[_0x42f4b4+0x1]||null;_0x489c10[_0x42f4b4]['next']!==_0x1ed63b&&(_0x489c10[_0x42f4b4]['next']=_0x1ed63b);}for(const _0x1509b4 of _0x227832)for(let _0x4a9105=0x0;_0x4a9105<_0x1509b4['length'];_0x4a9105++){const _0x14b974=_0x1509b4[_0x4a9105-0x1]||null;_0x1509b4[_0x4a9105]['previous']!==_0x14b974&&(_0x1509b4[_0x4a9105]['previous']=_0x14b974);}function _0x42eb4f(_0x4c61f9,_0x47d640){if(_0x4c61f9[0x0]['attributes']['groupId']!==_0x47d640[0x0]['attributes']['groupId']&&_0x4c61f9[0x0]['author']!==_0x47d640[0x0]['author'])return!0x1;if(!function(_0x879a4c,_0x43e82e){if(!_0x879a4c['hasComments']&&!_0x43e82e['hasComments'])return!0x0;if(_0x879a4c['hasComments']&&_0x43e82e['hasComments'])return!0x1;if(_0x879a4c['hasComments']&&_0x43e82e['createdAt']<_0x879a4c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x43e82e['hasComments']&&_0x879a4c['createdAt']<_0x43e82e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4c61f9[0x0],_0x47d640[0x0]))return!0x1;const _0x2e8bb2=Tt(_0x4c61f9[0x0]['attributes'],'groupId'),_0x3e599d=Tt(_0x47d640[0x0]['attributes'],'groupId');if(!_0x2815ab(_0x2e8bb2,_0x3e599d))return!0x1;return!!_0x4c61f9['every'](_0x4fce34=>_0x47d640['some'](_0x167d17=>_0x4fce34['getFirstRange']()['isEqual'](_0x167d17['getFirstRange']())))&&_0x47d640['every'](_0x5875a9=>_0x4c61f9['some'](_0x194713=>_0x5875a9['getFirstRange']()['isEqual'](_0x194713['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2f6c5d){const _0xf27a94=Array['from'](_0x2f6c5d),_0x5c86f6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f65e8=_0x5c86f6['filter'](_0x3cc5d6=>!_0x2f6c5d['has'](_0x3cc5d6)),_0x5d516f=new Map(_0xf27a94['map'](_0x4aa556=>[_0x4aa556,this['_suggestionFactory']['getSuggestionCallback'](_0x4aa556['type'],_0x4aa556['subType'],'join')])),_0x325851=new Map(_0x5c86f6['map'](_0x306ca1=>[_0x306ca1,_0x306ca1['getRanges']()]));for(let _0x3b4a7e=0x0;_0x3b4a7e<_0xf27a94['length'];_0x3b4a7e++){if(_0x367e18(this,_0xf27a94[_0x3b4a7e],_0xf27a94,_0x3b4a7e+0x1))return!0x0;}for(let _0x3366d5=0x0;_0x3366d5<_0xf27a94['length'];_0x3366d5++){if(_0x367e18(this,_0xf27a94[_0x3366d5],_0x4f65e8,0x0))return!0x0;}return!0x1;function _0x367e18(_0x107aec,_0x10cba1,_0x364f06,_0x9cef5){for(let _0x38d782=_0x9cef5;_0x38d782<_0x364f06['length'];_0x38d782++){const _0x82964d=_0x364f06[_0x38d782];if(_0x82964d['type']!==_0x10cba1['type']||_0x82964d['author']['id']!==_0x10cba1['author']['id']||_0x82964d['subType']!==_0x10cba1['subType'])continue;if(!Jt(_0x10cba1,_0x82964d))continue;if('attribute'==_0x10cba1['type']&&_0x10cba1['data']['oldValue']!=_0x82964d['data']['oldValue'])continue;if('attribute'==_0x10cba1['type']&&_0x107aec['_isBlockAttribute'](_0x10cba1['data']['key']))continue;if('formatBlock'==_0x10cba1['type']){const _0x40e5f0=_0x107aec['editor']['model'],_0x1135c0=_0x10cba1['getContainedElement']();if(_0x1135c0&&(_0x40e5f0['schema']['isObject'](_0x1135c0)||_0x40e5f0['schema']['isLimit'](_0x1135c0)))continue;}const _0x3f7ee0=_0x5d516f['get'](_0x10cba1),_0x596b70=_0x325851['get'](_0x10cba1),_0x5185df=_0x325851['get'](_0x82964d),_0x41668f=_0x10cba1['commentThread']&&_0x10cba1['commentThread']['length'],_0xe312a1=_0x82964d['commentThread']&&_0x82964d['commentThread']['length'];if(!_0x41668f&&_0x3f7ee0(_0x5185df,_0x596b70))return _0x107aec['_joinSuggestions'](_0x82964d,_0x10cba1),_0x325851['delete'](_0x10cba1),!0x0;if(!_0xe312a1&&_0x3f7ee0(_0x596b70,_0x5185df))return _0x107aec['_joinSuggestions'](_0x10cba1,_0x82964d),_0x325851['delete'](_0x82964d),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa06eee,_0x452b31){if(_0xa06eee['isMultiRange']){for(const _0x4afa76 of _0x452b31['getRanges']())_0xa06eee['addRange'](_0x4afa76);}else{const _0x338387=_0x452b31['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa06eee,this['_model']['createRange'](_0xa06eee['getFirstRange']()['start'],_0x338387));}_0x452b31['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4d0f2b,_0x59179a,_0x4cda5c){const _0x6d3a12=_0x4d0f2b['startsWith']('format')||_0x4d0f2b['startsWith']('attribute')?'FORMATTING':_0x4d0f2b['toUpperCase']();return o(this['editor']['locale'],_0x59179a+'_'+_0x6d3a12+'_SUGGESTION_ANNOUNCEMENT',_0x4cda5c);}['_initAriaMarkerChangeAnnouncements'](){const _0x280d78=this['editor'];if(!_0x280d78['ui'])return;const {ariaLiveAnnouncer:_0x3613e6}=_0x280d78['ui'];_0x26ec25(this['_model'],({left:_0x1cd31d,entered:_0xdb47e4})=>{for(const _0x9621e0 of _0x1cd31d){const {group:_0x419ca6,type:_0x241e3f}=this['_splitMarkerName'](_0x9621e0['name']);if('suggestion'===_0x419ca6){_0x3613e6['announce'](this['_getMarkerAnnouncementText'](_0x241e3f,'LEAVE'));break;}}for(const _0x3155a7 of _0xdb47e4){const {group:_0xf18ab0,type:_0x204827}=this['_splitMarkerName'](_0x3155a7['name']);if('suggestion'===_0xf18ab0){_0x3613e6['announce'](this['_getMarkerAnnouncementText'](_0x204827,'ENTER',_0x1b5ec8(_0x84f9fc)));break;}}});}['_processAttributeChanges'](_0x1c1ce0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x30c475=this['editor'],_0x5c8023=_0x30c475['model']['document']['differ']['getChanges']();if(0x0==_0x5c8023['length'])return!0x1;const _0x279fb0=[],_0x1832de=_0x5c8023['filter'](_0x4790f1=>'attribute'==_0x4790f1['type']),_0x2195ce=_0x5c8023['filter'](_0x2f61c6=>'insert'==_0x2f61c6['type']&&'$text'!=_0x2f61c6['name']),_0x34bb64=_0x5c8023['filter'](_0x2ec9d2=>'remove'==_0x2ec9d2['type']&&'$text'!=_0x2ec9d2['name']);for(const _0xc080e8 of _0x1832de)_0x279fb0['push']({'key':_0xc080e8['attributeKey'],'newValue':_0xc080e8['attributeNewValue'],'oldValue':_0xc080e8['attributeOldValue'],'range':Pt(_0xc080e8['range'],_0x30c475['model'])});for(const _0x1bc7b7 of _0x2195ce){const _0x2c84c2=_0x34bb64['find'](_0x502c7e=>_0x502c7e['position']['isEqual'](_0x1bc7b7['position']));_0x2c84c2&&_0x279fb0['push']({'key':m,'newValue':_0x1bc7b7['name'],'oldValue':_0x2c84c2['name'],'range':_0x30c475['model']['createRangeOn'](_0x1bc7b7['position']['nodeAfter'])});}return 0x0!=_0x279fb0['length']&&this['_reduceExistingSuggestions'](_0x1c1ce0,_0x279fb0);}['_processAttributeSuggestions'](_0x3a8c5c){let _0x26e1fb=!0x1;const _0x5bf88c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b9313=>_0x1b9313['data']['newRange']&&_0x1b9313['name']['startsWith']('suggestion:attribute:'));for(const _0x41cde9 of _0x5bf88c){const {subType:_0xa2f65,id:_0x3535e1}=this['_splitMarkerName'](_0x41cde9['name']),_0x5c45ac=_0xa2f65['split']('|')[0x0];for(const _0x41388c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x41388c['id']!=_0x3535e1&&'attribute'==_0x41388c['type']&&_0x41388c['data']&&_0x41388c['data']['key']==_0x5c45ac&&_0x41388c['getFirstRange']()['isIntersecting'](_0x41cde9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x41388c,_0x41cde9['data']['newRange'],_0x3a8c5c),_0x26e1fb=!0x0);}return _0x26e1fb;}['_recordAttributeChanges'](_0x14c7ba){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x14c7ba();}['_isRegisteredAttribute'](_0x2a5344){const _0x8ca1c6=this['_isBlockAttribute'](_0x2a5344),_0x7ad186=this['_inlineAttributeKeys']['has'](_0x2a5344);return _0x8ca1c6||_0x7ad186;}['_reduceExistingSuggestions'](_0x5277b2,_0x646aa6){if(0x0==_0x646aa6['length'])return!0x1;let _0x23e2ae=!0x1;for(const _0x852290 of _0x646aa6){const _0x3f1c61=this['_findSuggestions'](_0x852290['range'],'attribute')['filter'](_0x39104d=>!_0x39104d['meta']['isNextTo'])['map'](_0x43aa3a=>_0x43aa3a['suggestion']),_0x583d14=_0x3a91d5({'newValue':_0x852290['newValue']});_0x3f1c61['filter'](_0x3befdf=>{const [_0x3fe83e,_0x2a44eb]=_0x3befdf['subType']['split']('|');return _0x3fe83e==_0x852290['key']&&_0x2a44eb!=_0x583d14;})['forEach'](_0x560d15=>{this['_reduceSuggestionAttributeRange'](_0x560d15,_0x852290['range'],_0x5277b2),_0x23e2ae=!0x0;});}return _0x23e2ae;}['_reduceSuggestionAttributeRange'](_0x8a7382,_0xe99f91,_0x382ea5){const _0x17cc54=_0x8a7382['getFirstRange']()['getDifference'](_0xe99f91);0x0!==_0x17cc54['length']?0x1!==_0x17cc54['length']?this['_breakSuggestionMarker'](_0x8a7382,_0xe99f91['start'],_0xe99f91['end']):this['_setSuggestionRange'](_0x8a7382,_0x17cc54[0x0]):_0x382ea5['removeMarker'](_0x8a7382['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x25dc2a){this['_editor']=_0x25dc2a,this['_model']=_0x25dc2a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x374f29,_0x4fb555,_0x53dab7,_0x34f164,_0x200e2b,_0x1a1e6b){return new u(this['_model'],{'type':_0x374f29,'subType':_0x4fb555,'id':_0x53dab7,'author':_0x34f164,'creator':_0x34f164,'attributes':_0x200e2b,'onAttributesChange':_0x1a1e6b,'onAccept':(..._0x5b0b13)=>this['getSuggestionCallback'](_0x374f29,_0x4fb555,'accept')(..._0x5b0b13),'onDiscard':(..._0x255a09)=>this['getSuggestionCallback'](_0x374f29,_0x4fb555,'discard')(..._0x255a09)});}['registerCustomCallback'](_0x56b707,_0x18c565,_0x189264,_0x442977){const _0x1389ae=_0x56b707+':'+_0x18c565+':'+_0x189264;this['_customCallbacks']['set'](_0x1389ae,_0x442977);}['getSuggestionCallback'](_0x4da829,_0x5605fd,_0x3f8289){const _0x658643=_0x4da829+':'+_0x5605fd+':'+_0x3f8289;return this['_customCallbacks']['get'](_0x658643)||this['_defaultCallbacks']['get'](_0x4da829+':'+_0x3f8289);}['_registerDefaultCallbacks'](){const _0x45a3ff=()=>!0x1,_0x843d9b=_0x99b599=>{_0x99b599['sort']((_0xcefad0,_0x5b67ff)=>_0xcefad0['start']['isBefore'](_0x5b67ff['start'])?0x1:-0x1),this['_model']['change'](_0x1539f3=>{for(const _0x2e7d9f of _0x99b599){let _0x37c688;_0x37c688=_0x2e7d9f['end']['isAtEnd']&&_0x2e7d9f['end']['parent']==_0x2e7d9f['start']['nodeAfter']?_0x1539f3['createSelection'](_0x2e7d9f['start']['nodeAfter'],'on'):_0x1539f3['createSelection'](_0x2e7d9f),this['_model']['deleteContent'](_0x37c688,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x360ab6=(_0x2794b2,_0x5467ed)=>{_0x5467ed&&this['_model']['change'](_0x58ac66=>{const {commandName:_0xc8a717,commandParams:_0x1df96e=[]}=_0x5467ed,_0xcd0b86=_0x2794b2['map'](_0x1cfc3b=>(Vt(_0x1cfc3b)&&(_0x1cfc3b=this['_model']['createRange'](_0x1cfc3b['end'])),_0x1cfc3b))['filter'](_0x23c46a=>'$graveyard'!==_0x23c46a['root']['rootName']);if(_0xcd0b86['length']<0x1)return;const _0x4a93eb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3a8c0=>_0xe83a0b['fromRange'](_0x3a8c0));_0x58ac66['setSelection'](_0xcd0b86);for(const _0xa031cc of this['_editor']['commands']['commands']())_0xa031cc['refresh']();_0x1df96e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xc8a717,..._0x1df96e);const _0x5ac3e8=_0x4a93eb['filter'](_0x3e7994=>'$graveyard'!=_0x3e7994['root']['rootName']);_0x5ac3e8['length']>0x0&&_0x58ac66['setSelection'](_0x5ac3e8);for(const _0x58e40d of _0x4a93eb)_0x58e40d['detach']();});},_0x7f11f7=(_0x1fb037,_0x3f5611)=>0x1==_0x1fb037['length']&&0x1==_0x3f5611['length']&&_0x1fb037[0x0]['end']['isEqual'](_0x3f5611[0x0]['start']),_0x2586ec=(_0x3f572c,_0x4f6d0e,_0x41f8c9,_0x3f2aaf)=>Ht(_0x3f572c,_0x4f6d0e,_0x41f8c9,_0x3f2aaf,this['_model'])?[_0x3f572c,_0x4f6d0e]:Ht(_0x4f6d0e,_0x3f572c,_0x3f2aaf,_0x41f8c9,this['_model'])?[_0x4f6d0e,_0x3f572c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x45a3ff),this['_defaultCallbacks']['set']('insertion:discard',_0x843d9b),this['_defaultCallbacks']['set']('insertion:join',_0x7f11f7),this['_defaultCallbacks']['set']('insertion:chain',_0x2586ec),this['_defaultCallbacks']['set']('deletion:accept',_0x843d9b),this['_defaultCallbacks']['set']('deletion:discard',_0x45a3ff),this['_defaultCallbacks']['set']('deletion:join',_0x7f11f7),this['_defaultCallbacks']['set']('deletion:chain',_0x2586ec),this['_defaultCallbacks']['set']('formatInline:accept',_0x360ab6),this['_defaultCallbacks']['set']('formatInline:discard',_0x45a3ff),this['_defaultCallbacks']['set']('formatInline:join',_0x7f11f7),this['_defaultCallbacks']['set']('formatInline:chain',_0x45a3ff),this['_defaultCallbacks']['set']('formatBlock:accept',_0x360ab6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x45a3ff),this['_defaultCallbacks']['set']('formatBlock:join',_0x7f11f7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x45a3ff),this['_defaultCallbacks']['set']('attribute:accept',_0x45a3ff),this['_defaultCallbacks']['set']('attribute:discard',(_0x2b9daa,_0x977765)=>{if(!_0x977765)return;const _0x1d18b3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xb2e30b=>{if(_0x977765['key']==m)for(const _0x587cb8 of _0x2b9daa){const _0xb46ae0=_0x587cb8['start']['nodeAfter'],_0x5cd783=_0x977765['oldValue'];_0xb2e30b['rename'](_0xb46ae0,_0x5cd783);}else{if(_0x1d18b3['_isBlockAttribute'](_0x977765['key'])){for(const _0x181207 of _0x2b9daa)void 0x0!==_0x977765['oldValue']?_0xb2e30b['setAttribute'](_0x977765['key'],_0x977765['oldValue'],_0x181207['start']['nodeAfter']):_0xb2e30b['removeAttribute'](_0x977765['key'],_0x181207['start']['nodeAfter']);}else{for(const _0x2158d1 of _0x2b9daa)_0x977765['oldValue']?_0xb2e30b['setAttribute'](_0x977765['key'],_0x977765['oldValue'],_0x2158d1):_0xb2e30b['removeAttribute'](_0x977765['key'],_0x2158d1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7f11f7);}}function Ot(_0x5398aa,_0xb1713f,_0x5098da){for(const _0x24027e of _0xb1713f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x24027e['root']==_0x24027e)return!0x1;if(!_0x5098da['containsItem'](_0x24027e))return!0x1;if(_0x5398aa['isObject'](_0x24027e)||_0x5398aa['isLimit'](_0x24027e))return!0x0;}return!0x1;}function Vt(_0x492eef){return _0x492eef['end']['parent']==_0x492eef['start']['nodeAfter']&&_0x492eef['end']['isAtStart'];}function Ut(_0xb663e9,_0x15efcd,_0x46e972,_0x54f46f){const _0x3d7e54=_0x172485=>!_0x172485['item']['is']('$textProxy')&&!_0x54f46f['isObject'](_0x172485['item']),_0x383436=_0xb663e9['start']['getLastMatchingPosition'](_0x3d7e54),_0x186e03=_0xb663e9['end']['getLastMatchingPosition'](_0x3d7e54,{'direction':'backward'});return(!_0xb663e9['start']['isEqual'](_0x383436)||!_0xb663e9['end']['isEqual'](_0x186e03))&&(_0x383436['isBefore'](_0x186e03)?_0x46e972['updateMarker'](_0x15efcd,{'range':_0x46e972['createRange'](_0x383436,_0x186e03)}):_0x46e972['removeMarker'](_0x15efcd),!0x0);}function Gt(_0x38c879){return _0x3a91d5(_0x38c879);}function Ft(_0x12b125){const _0x507e1c=_0x12b125['start']['nodeAfter'];return _0x507e1c&&_0x507e1c['is']('element');}function Pt(_0x19e89f,_0x11d0b0){return null==_0x19e89f['end']['nodeBefore']&&_0x19e89f['end']['parent']==_0x19e89f['start']['nodeAfter']?Lt(_0x19e89f['start']['nodeAfter'],_0x11d0b0):_0x19e89f;}function Lt(_0x2f09d3,_0x22bb44){const _0x4b2715=_0x22bb44['schema']['isObject'](_0x2f09d3)||_0x22bb44['schema']['isSelectable'](_0x2f09d3);return _0x22bb44['createRange'](_0x22bb44['createPositionAt'](_0x2f09d3,'before'),_0x4b2715?_0x22bb44['createPositionAfter'](_0x2f09d3):_0x22bb44['createPositionAt'](_0x2f09d3,'end'));}function Ht(_0x53dbbe,_0x129a48,_0x198449,_0x46cebb,_0x2c2a34){if(_0x53dbbe['next'])return!0x1;if(!Jt(_0x53dbbe,_0x129a48))return!0x1;if(_0x198449['end']['isEqual'](_0x46cebb['start']))return!0x0;if(_0x53dbbe['type']!=_0x129a48['type'])return!0x1;if(!_0x198449['end']['isTouching'](_0x46cebb['start']))return!0x1;const _0x109bc4=_0x2c2a34['createRange'](_0x198449['end'],_0x46cebb['start'])['getWalker']();for(const _0x5297de of _0x109bc4)if(['elementStart','elementEnd']['includes'](_0x5297de['type'])&&_0x2c2a34['schema']['isLimit'](_0x5297de['item']))return!0x1;return!0x0;}function Jt(_0x5ce268,_0x24c43c){if(!_0x5ce268['_isDataLoaded']||!_0x24c43c['_isDataLoaded'])return!0x1;const _0x36c696=new Set(Object['keys'](_0x5ce268['attributes'])),_0x34b84a=new Set(Object['keys'](_0x24c43c['attributes']));if(_0x36c696['delete']('groupId'),_0x34b84a['delete']('groupId'),0x0==_0x36c696['size']&&0x0==_0x34b84a['size'])return!0x0;if(_0x36c696['size']!=_0x34b84a['size'])return!0x1;const _0x5498bb={..._0x5ce268['attributes']},_0x54abbf={..._0x24c43c['attributes']};return delete _0x5498bb['groupId'],delete _0x54abbf['groupId'],JSON['stringify'](_0x5498bb)==JSON['stringify'](_0x54abbf);}function qt(_0x4fcdeb,_0x40bdd0){const _0x39c6c8=zt(_0x4fcdeb['attributes']),_0x3391a4=zt(_0x40bdd0);if(!_0x4fcdeb['_isDataLoaded'])return!0x1;for(const _0x4542c0 of Object['keys'](_0x3391a4))if(!_0x2815ab(_0x39c6c8[_0x4542c0],_0x3391a4[_0x4542c0]))return!0x1;return!0x0;}function zt(_0x27b83c){const _0x17181d=Object['assign']({},_0x27b83c);return delete _0x17181d['skipNestingCheck'],delete _0x17181d['tablePasteChainId'],_0x17181d;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x11648b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2f6607,_0x389aeb,_0x55b0e6,_0x171e70){super(),this['model']=_0x389aeb,this['view']=_0x55b0e6,this['commentThreadController']=_0x171e70,this['_editor']=_0x2f6607,this['_acceptCommand']=_0x2f6607['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2f6607['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3fe1c5,_0x277f09)=>_0x3fe1c5||_0x277f09),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x18824e=>_0x18824e&&this['_editor']['model']['canEditAt'](_0x389aeb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x10a039=>_0x10a039&&this['_editor']['model']['canEditAt'](_0x389aeb['getRanges']())),this['_pendingAction']=null,_0x55b0e6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x55b0e6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x55b0e6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x55b0e6,'change:isDirty',()=>{_0x55b0e6['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 _0x739bd2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x739bd2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3e2df9{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4bf487,_0xc5c4ef,_0x5b2d53,_0x454346){super(_0x4bf487),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x45481c(_0x4bf487,o(_0x4bf487,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xc5c4ef['authoredAt']),this['bind']('authoredAt')['to'](_0xc5c4ef),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',_0xc5c4ef,'authoredAt',this,'descriptionParts',(_0x5cd96f,_0x29582e,_0x125143)=>{const _0xe25186=_0x125143['map'](_0x2f0b45=>ls(_0x2f0b45['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5cd96f-0x1,_0xc5c4ef['author']['name'],_0x29582e?_0x454346['formatDateTime'](_0x29582e):'',new DOMParser()['parseFromString'](_0xe25186,'text/html')['body']['textContent']]);}),this['focusables']=new _0x41ba6f(),this['focusTracker']=new _0x62c4dd(),this['keystrokes']=new _0xd6b496(),this['focusCycler']=new _0x4d4497({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1b756a=>_0x1b756a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xc5c4ef,this['_localUser']=_0x5b2d53,this['_config']=_0x454346,_0x454346['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4a1c19(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a0297}=this['_config'];this['commentsListView']=new _0x2a0297(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',_0xc10f4e=>_0xc10f4e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4cffe9,_0x5b1606)=>_0x4cffe9||!!_0x5b1606);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x452b91}=this['_config'],_0x2904ea=new _0x452b91(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x129638=_0x2904ea['commentInputView'];return _0x2904ea['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x129638,'value',(_0x198942,_0x3a6e8d,_0xf8aa1f)=>!!_0xf8aa1f||_0x198942&&!_0x3a6e8d),_0x129638['on']('submit',(_0x11fcd0,_0x59c823)=>{this['fire']('addComment',_0x59c823),_0x129638['editor']['setData']('');}),_0x129638['on']('cancel',()=>this['focus']()),_0x129638['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2904ea;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x16e67c,_0xf06d77,_0x21fa78,_0x1fa891){super(_0x16e67c,_0xf06d77,_0x21fa78,_0x1fa891),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x191c94=>_0x191c94&&_0x191c94[0x0]?_0x191c94[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x450943,_0x1811d5)=>{let _0x460d5d='';for(const _0x502725 of _0x450943)_0x460d5d+='<p>'+ls(_0x502725['content'],_0x502725['color'])+'</p>';return _0x1811d5?_0x460d5d:_0x580fa8(_0x460d5d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1fa891['SuggestionView'](_0x16e67c,_0xf06d77,{'formatDateTime':_0x1fa891['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 _0x3b4e93=this['bindTemplate'],_0xab1d77=[this['suggestionView']];return this['commentsListView']&&_0xab1d77['push'](this['commentsListView']),this['commentThreadInputView']&&_0xab1d77['push'](this['commentThreadInputView']),_0xab1d77['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3b4e93['if']('isActive','ck-suggestion-wrapper--active'),_0x3b4e93['to']('type',_0x4f1477=>'ck-suggestion-'+_0x4f1477),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':_0x3b4e93['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xab1d77};}['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 _0x3e2df9{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x15d066,_0x232501,_0x23c790){super(_0x15d066),this['_model']=_0x232501,this['_config']=_0x23c790,this['set']('description',''),this['bind']('authoredAt')['to'](_0x232501),this['acceptButton']=this['_createButton'](o(_0x15d066,'Accept\x20suggestion'),_0x37249a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x15d066,'Discard\x20suggestion'),_0x37249a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x55b600(_0x15d066,_0x232501['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x41ba6f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x62c4dd(),this['keystrokes']=new _0xd6b496(),this['focusCycler']=new _0x4d4497({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4dcb92=>_0x4dcb92['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x162872=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x162872['innerHTML']=this['description'],this['on']('change:description',(_0x5e720c,_0x5132fd,_0x22e63a)=>{_0x162872['innerHTML']=_0x22e63a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x31d7d9=this['bindTemplate'],_0xb12a5c=[{'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':_0x31d7d9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x31d7d9['to']('authoredAt',_0x15ef7f=>this['_config']['formatDateTime'](_0x15ef7f))}]}]},{'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']&&_0xb12a5c['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':_0xb12a5c}]};}['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'](_0x3756aa,_0x39906f,_0x403650,_0x417473,_0x3c50bb){const _0xedb499=new _0x2ada82(this['locale']);return _0xedb499['set']({'label':_0x3756aa,'icon':_0x39906f,'tooltip':!0x0,'tooltipPosition':_0x3c50bb}),_0xedb499['extendTemplate']({'attributes':{'class':_0x403650}}),_0xedb499['on']('execute',()=>{this['fire'](_0x417473,this['_model']['id']);}),_0xedb499;}['_setupKeyboardNavigation'](){const _0x22d983=this['element'];this['keystrokes']['listenTo'](_0x22d983);for(const _0x5b2508 of this['focusables'])this['focusTracker']['add'](_0x5b2508['element']),this['keystrokes']['listenTo'](_0x5b2508['element']);this['keystrokes']['set']('enter',(_0x4e7117,_0x1f5270)=>{_0x22d983===_0x4e7117['target']&&(this['focusCycler']['focusFirst'](),_0x1f5270());}),this['keystrokes']['set']('esc',(_0x4603d1,_0x1f6a70)=>{_0x22d983!==_0x4603d1['target']&&(this['focus'](),_0x1f6a70());});}}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 _0x38e08d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x31a9a8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x27ded4){super(_0x27ded4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x33271a=this['editor']['config'];_0x33271a['define']('trackChanges.SuggestionThreadView',re),_0x33271a['define']('trackChanges.SuggestionView',ce),_0x33271a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x33271a['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x1fbb5e,_0x396226){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1a31b4,_0x497f89]of this['_handleControllerBuffer']){const _0x85f321=this['_suggestionToController']['has'](_0x1a31b4);_0x85f321||_0x497f89?_0x85f321&&_0x497f89&&this['_destroyController'](_0x1a31b4):this['_initializeController'](_0x1a31b4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1fbb5e,_0x396226);}['init'](){const _0x1d0b5d=this['editor'],_0x31fcf8=_0x1d0b5d['plugins']['get']('TrackChangesEditing'),_0x254833=_0x1d0b5d['plugins']['get']('Annotations'),_0x11fad7=_0x1d0b5d['plugins']['get']('EditorAnnotations'),_0x119856=_0x1d0b5d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x11fad7['addSourceCollector'](()=>{const _0x2e26f9=[];for(const [_0x51571f,_0x2e710c]of Array['from'](this['_suggestionToController'])){const _0x34466a=_0x51571f['getAllAdjacentSuggestions'](),_0xf3f0db=[];for(const _0x4af843 of _0x34466a){if(!_0x4af843['isInContent'])continue;if(_0x4af843['isMultiRange']){_0xf3f0db['push'](..._0x4af843['getRanges']());continue;}const _0x12dd68=_0x4af843['getFirstRange']();if(_0xf3f0db['length']>0x0){const _0x16a257=_0xf3f0db[0x0]['getJoined'](_0x12dd68);if(_0x16a257){_0xf3f0db[0x0]=_0x16a257;continue;}}_0xf3f0db['push'](_0x12dd68);}_0x2e26f9['push']([_0x2e710c['view'],_0xf3f0db]);}return _0x2e26f9;}),this['listenTo'](_0x31fcf8,'suggestionLoaded',(_0x5785ef,_0x4a68ee)=>{this['listenTo'](_0x4a68ee,'change:previous',(_0x45e225,_0x34a7eb,_0x908fda,_0x1a27a8)=>{_0x4a68ee['isInContent']&&(null==_0x908fda?(this['_updateController'](_0x1a27a8['head']),this['_handleSuggestionControllerDelayed'](_0x4a68ee,!0x1)):(this['_updateController'](_0x908fda['head']),null==_0x1a27a8&&this['_handleSuggestionControllerDelayed'](_0x4a68ee,!0x0)));}),null!==_0x4a68ee['previous']?this['_updateController'](_0x4a68ee['head']):this['_handleSuggestionControllerDelayed'](_0x4a68ee,!0x1);}),this['listenTo'](_0x31fcf8,'suggestionUnloaded',(_0x5c7c87,_0x436343,_0x2491f0)=>{this['stopListening'](_0x436343,'change:previous'),this['_handleControllerBuffer']['delete'](_0x436343),this['_suggestionToController']['has'](_0x436343)&&this['_destroyController'](_0x436343),_0x2491f0&&this['_updateController'](_0x2491f0['head']);}),this['listenTo'](_0x31fcf8,'suggestionChanged',(_0x1d0529,_0x30af99)=>{this['_updateController'](_0x30af99);}),this['listenTo'](_0x254833,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x119856,'addComment',(_0x450ac2,{threadId:_0x5ecc82,isFromAdapter:_0x328893})=>{if(_0x328893||!_0x31fcf8['hasSuggestion'](_0x5ecc82))return;const _0x41334c=_0x31fcf8['getSuggestion'](_0x5ecc82);this['_suggestionToController']['get'](_0x41334c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x57f9e7=this['editor']['plugins']['get']('Annotations'),_0x4eb1a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1333f3=Array['from'](_0x57f9e7['activeAnnotations'],_0x4bac59=>_0x4bac59['innerView'])['filter'](_0x32f9dd=>this['_viewToController']['has'](_0x32f9dd)),_0x4a4f30=[];for(const _0x3b92e0 of _0x1333f3){const _0x1e72a9=this['_viewToController']['get'](_0x3b92e0)['model']['getAllAdjacentSuggestions']();_0x4a4f30['push'](..._0x1e72a9['reduce']((_0x3d9958,_0x6b9c91)=>[..._0x3d9958,..._0x6b9c91['getMarkerNames']()],[]));}_0x4eb1a5['activeMarkers']=_0x4a4f30;}['_addUIComponentsToFactory'](){const _0x3a38c0=this['editor'],_0x2eb9ba=_0x3a38c0['locale'],_0x4b08ec=o(_0x2eb9ba,'Track\x20changes'),_0x17b221=new Wt([{'type':'switchbutton','model':new _0x352a8c({'withText':!0x0,'isToggleable':!0x0,'label':_0x4b08ec,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x352a8c({'withText':!0x0,'label':o(_0x2eb9ba,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x352a8c({'withText':!0x0,'label':o(_0x2eb9ba,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x352a8c({'withText':!0x0,'label':o(_0x2eb9ba,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x352a8c({'withText':!0x0,'label':o(_0x2eb9ba,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x27d839 of _0x17b221)if(me(_0x27d839)){const _0xe0e97a=_0x3a38c0['commands']['get'](_0x27d839['model']['commandName']);_0x27d839['model']['bind']('isOn','isEnabled')['to'](_0xe0e97a,'value','isEnabled');}_0x3a38c0['ui']['componentFactory']['add']('trackChanges',_0x2b26f1=>this['_createToolbarButton'](_0x2b26f1,_0x17b221,_0x4b08ec)),_0x3a38c0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x8e54c5=>this['_createMenuBarMenu'](_0x8e54c5,_0x17b221,_0x4b08ec));}['_createToolbarButton'](_0x932dcd,_0x81e007,_0x33bab3){const _0x3934cf=Qt(_0x932dcd,_0x3d2172),_0x38708e=this['editor']['commands']['get']('trackChanges');_0x3934cf['buttonView']['set']({'tooltip':_0x33bab3,'label':_0x33bab3,'icon':he}),_0x3934cf['buttonView']['bind']('isOn')['to'](_0x38708e,'value'),_0x3934cf['buttonView']['on']('execute',()=>{_0x38708e['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x3934cf,_0x81e007,{'role':'menu'});const _0x2fd767=[];for(const _0x29d8de of _0x81e007)me(_0x29d8de)&&_0x2fd767['push'](this['editor']['commands']['get'](_0x29d8de['model']['commandName']));const _0x403474=_0x3934cf['buttonView'];return _0x403474['actionView']['unbind']('isEnabled'),_0x403474['arrowView']['unbind']('isEnabled'),_0x403474['actionView']['bind']('isEnabled')['to'](_0x38708e,'isEnabled'),_0x403474['arrowView']['bind']('isEnabled')['toMany'](_0x2fd767,'isEnabled',(..._0x11a1f0)=>_0x11a1f0['some'](_0x5c5b0b=>_0x5c5b0b)),_0x3934cf['on']('execute',_0x205e97=>{this['editor']['execute'](_0x205e97['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3934cf;}['_createMenuBarMenu'](_0x4491ca,_0x19e3ee,_0x26a4d4){const _0x4c2c84=new Yt(_0x4491ca),_0x1c9c98=this['editor']['commands']['get']('trackChanges');_0x4c2c84['buttonView']['set']({'label':_0x26a4d4,'icon':he});const _0x4e1e85=new Zt(_0x4491ca);for(const _0x36cc05 of _0x19e3ee){if('separator'==_0x36cc05['type']){_0x4e1e85['items']['add'](new Xt(_0x4491ca));continue;}const _0x445b70=new te(_0x4491ca,_0x4c2c84),_0x10952d=new _0x2d0034(_0x4491ca),_0xb0c3ff=_0x36cc05['model'];_0x10952d['bind'](...Object['keys'](_0xb0c3ff))['to'](_0xb0c3ff),_0x10952d['delegate']('execute')['to'](_0x4c2c84),_0x10952d['on']('execute',()=>{this['editor']['execute'](_0xb0c3ff['commandName']),this['editor']['editing']['view']['focus']();}),_0x445b70['children']['add'](_0x10952d),_0x4e1e85['items']['add'](_0x445b70);}return _0x4c2c84['bind']('isEnabled')['to'](_0x1c9c98,'isEnabled'),_0x4c2c84['panelView']['children']['add'](_0x4e1e85),_0x4c2c84;}['_initializeController'](_0x20532f){const _0x12ef87=this['editor'],_0x55eb4a=_0x12ef87['config'],_0x29cbf5=_0x12ef87['plugins']['get']('Annotations'),_0x547994=_0x12ef87['plugins']['get']('CommentsRepository'),_0x4c11e9=_0x12ef87['plugins']['get']('EditorAnnotations'),_0x543098=_0x12ef87['plugins']['get'](_0x31a9a8)['me'],_0x4e6234=_0x55eb4a['get']('trackChanges')['SuggestionThreadView'],_0x226c61=_0x55eb4a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a4606,CommentThreadInputView:_0x2a9455}=_0x12ef87['plugins']['get']('CommentsUI');let _0x38f1c1,_0x5b1310;this['_annotationViews']['has'](_0x20532f['id'])?(_0x5b1310=this['_annotationViews']['get'](_0x20532f['id']),_0x38f1c1=_0x5b1310['mainView']):(_0x38f1c1=new _0x4e6234(_0x12ef87['locale'],_0x20532f,_0x543098,{'disableComments':this['_disableComments'],'editorConfig':_0x55eb4a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x55eb4a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x55eb4a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x55eb4a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x358f71(_0x55eb4a['get']('locale')),'CommentView':_0x55eb4a['get']('comments')['CommentView'],'CommentsListView':_0x2a4606,'CommentThreadInputView':_0x2a9455,'SuggestionView':_0x226c61}),_0x38f1c1['suggestionView']['acceptButton']['on']('execute',()=>{_0x12ef87['editing']['view']['focus']();}),_0x38f1c1['suggestionView']['discardButton']['on']('execute',()=>{_0x12ef87['editing']['view']['focus']();}),_0x5b1310=_0x29cbf5['createAnnotationView'](this['editor']['locale'],_0x38f1c1),_0x5b1310['bind']('isDirty')['to'](_0x38f1c1,'isDirty'),_0x5b1310['bind']('length')['to'](_0x38f1c1),_0x5b1310['bind']('type')['to'](_0x38f1c1,'type',_0x22873a=>'suggestion-'+_0x22873a),this['listenTo'](_0x38f1c1,'escape',()=>{_0x12ef87['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x20532f['id'],_0x5b1310));const _0x18b0d6=_0x547994['createCommentThreadController'](_0x20532f['commentThread'],_0x38f1c1),_0x519046=new ae(_0x12ef87,_0x20532f,_0x38f1c1,_0x18b0d6),_0x3b78f9=_0x20532f['getAllAdjacentSuggestions']()['filter'](_0x364329=>_0x364329['isInContent']);_0x38f1c1['descriptionParts']=_0x12ef87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3b78f9),this['_suggestionToController']['set'](_0x20532f,_0x519046),this['_viewToController']['set'](_0x38f1c1,_0x519046);const _0x4f0b58=_0x29cbf5['createAnnotation']({'view':_0x5b1310,'target':()=>{const _0x129987=[],_0x1c2788=_0x20532f['getAllAdjacentSuggestions']()['filter'](_0x44a565=>_0x44a565['isInContent']);for(const _0x24a1dc of _0x1c2788)_0x129987['push'](..._0x24a1dc['getMarkers']());return _0x46ed37(_0x12ef87['editing'],_0x129987);},'type':()=>'suggestion-'+_0x519046['view']['type']});_0x547994['_bindAnnotationToEditors'](_0x38f1c1,_0x4f0b58),_0x29cbf5['add'](_0x4f0b58),_0x4c11e9['registerAnnotation'](_0x4f0b58);}['_destroyController'](_0xa044f9){const _0x147b16=this['editor']['plugins']['get']('CommentsRepository'),_0x4e5dab=this['editor']['plugins']['get']('Annotations'),_0x490130=this['_suggestionToController']['get'](_0xa044f9),_0x29c8f9=_0x490130['view'],_0x111265=_0x4e5dab['getByInnerView'](_0x29c8f9);_0x147b16['_unbindEditors'](_0x29c8f9),_0x111265&&_0x4e5dab['remove'](_0x111265),this['_suggestionToController']['delete'](_0xa044f9),this['_viewToController']['delete'](_0x29c8f9),_0x490130['destroy']();}['_updateController'](_0x1a81ef){if(!_0x1a81ef['isInContent']||!this['_suggestionToController']['has'](_0x1a81ef))return;const _0x4f854b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ba667=this['_suggestionToController']['get'](_0x1a81ef),_0x17a138=_0x1a81ef['getAllAdjacentSuggestions']();_0x2ba667['view']['descriptionParts']=_0x4f854b['descriptionFactory']['getDescriptions'](_0x17a138);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x84f9fc,(_0x601117,_0x22e22c)=>{const _0x4101b1=this['editor']['plugins']['get'](k),_0x2e509f=this['editor']['plugins']['get'](p);if(!_0x2e509f['activeMarkers']['length'])return;const {id:_0x41e5da}=_0x2e509f['_splitMarkerName'](_0x2e509f['activeMarkers'][0x0]),_0xd2974d=_0x4101b1['getSuggestion'](_0x41e5da);_0xd2974d&&(this['_suggestionToController']['get'](_0xd2974d)['view']['focus'](),_0x22e22c());});}['destroy'](){for(const _0x55c757 of this['_suggestionToController']['keys']())this['_destroyController'](_0x55c757);for(const _0x24f660 of this['_annotationViews']['values']())_0x24f660['mainView']['destroy']();super['destroy']();}}function me(_0x2c5036){return'model'in _0x2c5036;}class k extends _0x38e08d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x24fb4f){this['editor']['plugins']['get'](p)['adapter']=_0x24fb4f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1e46e5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1e46e5);}['getSuggestions']({skipNotAttached:_0x3f8e49=!0x1,toJSON:_0x164ff3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3f8e49,'toJSON':_0x164ff3});}['getSuggestion'](_0x1a15a8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1a15a8);}}const T=['Pagination'];class P extends _0x38e08d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x39a97d=this['editor'];if(_0x39a97d['config']['define']('trackChangesData.editorCreator',_0x601882=>{const _0x50e6f2=_0x39a97d['model']['document']['getRootNames']()['reduce']((_0x1587ad,_0x5917ef)=>(_0x1587ad[_0x5917ef]='',_0x1587ad),{});return _0x39a97d['constructor']['create'](_0x50e6f2,_0x601882);}),'function'!=typeof _0x39a97d['config']['get']('trackChangesData')['editorCreator'])throw new _0x95c834('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x52a5bf){return N(this['editor'],!0x0,_0x52a5bf);}['getDataWithDiscardedSuggestions'](_0x475fde){return N(this['editor'],!0x1,_0x475fde);}}class D extends _0x38e08d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4c16b0){super(_0x4c16b0),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(_0x261466){return void 0x0!==_0x261466['getRootsAttributes'];}async function N(_0x153a61,_0x27e657,_0x4a274a){const _0x13bc44=_0x585e14(_0x153a61,T);_0x13bc44['plugins']['push'](p,D),_0x13bc44['rootsAttributes']=v(_0x153a61)?_0x153a61['getRootsAttributes']():void 0x0;const _0x366109=document['createDocumentFragment'](),_0xd50c21=_0x153a61['config']['get']('trackChangesData')['editorCreator'],_0x6b388=await _0xd50c21(_0x13bc44,()=>function(_0x22a5f5){const _0x3399cd=document['createElement']('div');return _0x22a5f5['appendChild'](_0x3399cd),_0x3399cd;}(_0x366109));!function(_0x2f4548,_0x2c954f){const _0x7bb5aa=_0x2f4548['model']['document']['getRootNames']()['reduce']((_0x52675,_0xa32efd)=>(_0x52675[_0xa32efd]=_0x2f4548['data']['get']({'rootName':_0xa32efd}),_0x52675),{}),_0x3c8cdb=_0x2f4548['plugins']['get']('Users')['users']['map'](_0x373ac0=>({'id':_0x373ac0['id'],'name':_0x373ac0['name']})),_0x3c262f=_0x2f4548['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x14d117=_0x2f4548['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x12e785=_0x2c954f['plugins']['get']('Users'),_0x4e8295=_0x2c954f['plugins']['get']('TrackChangesEditing'),_0x1e5e23=_0x2c954f['plugins']['get']('CommentsRepository');for(const _0x251b61 of _0x1e5e23['getCommentThreads']())_0x251b61['remove']();for(const _0x4a8e97 of _0x3c8cdb)_0x12e785['getUser'](_0x4a8e97['id'])||_0x12e785['addUser'](_0x4a8e97);_0x12e785['me']||_0x12e785['useAnonymousUser']();for(const _0x3f2bb6 of _0x14d117)_0x1e5e23['addCommentThread'](_0x3f2bb6);for(const _0x4ee31f of _0x3c262f)_0x4e8295['addSuggestionData'](_0x4ee31f);_0x2c954f['data']['set'](_0x7bb5aa);}(_0x153a61,_0x6b388),_0x6b388['execute'](_0x27e657?'acceptAllSuggestions':'discardAllSuggestions');const _0x5712e2=v(_0x6b388)?_0x6b388['getFullData'](_0x4a274a):_0x6b388['data']['get'](_0x4a274a);return await _0x6b388['destroy'](),_0x5712e2;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x48688f,PendingActions as _0x44b4d1,icons as _0x15441c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x592c71,ObservableMixin as _0x152174,uid as _0x2120b6,insertToPriorityArray as _0x21d775,priorities as _0xbff88b,logWarning as _0x250a6e,getEnvKeystrokeText as _0xbe6bf3,FocusTracker as _0x13657f,KeystrokeHandler as _0x4d474a,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x387c59,View as _0x34f964,ViewCollection as _0x2be8b6,FocusCycler as _0x360f96,ViewModel as _0xe8bb13,createDropdown as Qt,SplitButtonView as _0x11d1d7,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x4ddbbe}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x171a4a,hashObject as _0x39b023,surroundingMarkersDetector as _0x87cbf2,ENTER_THREAD_KEYSTROKE as _0x4b35c3,AriaDescriptionView as _0x230434,setupThreadKeyboardNavigation as _0x58c512,trimHtml as _0x806266,UserView as _0x5e692a,LateFocusButtonView as _0x464813,getDateTimeFormatter as _0x2caec9,getAllMarkersDomElementsSorted as _0x179daa,sanitizeEditorConfig as _0x4f8fe7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5738b4,LiveRange as _0x411321,LivePosition as _0x1473f7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x19f4da,toWidget as _0x3d3930}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x50f003,set as _0x201370,isEqual as _0x41747e,unset as _0x5b2e9b,omit as Tt}from'lodash-es';import{Delete as _0x4d1662,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x161099,ShiftEnter as _0x4b33e1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x48edb1,_0x1c752f){super(_0x48edb1),this['_enabledCommands']=_0x1c752f,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 _0x346b6e of this['editor']['commands']['commands']())_0x346b6e['affectsData']&&!this['_enabledCommands']['has'](_0x346b6e)&&_0x346b6e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x219ad2 of this['editor']['commands']['commands']())_0x219ad2['affectsData']&&!this['_enabledCommands']['has'](_0x219ad2)&&_0x219ad2['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x8fefc5,_0x4947c3){super(_0x8fefc5),this['_suggestions']=_0x4947c3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5616e0){const _0xb28f21=this['_suggestions']['get'](_0x5616e0);if(!_0xb28f21)throw new _0x592c71('track-changes-accept-suggestion-not-found',this);const _0xe40458=_0xb28f21['getRanges']();this['editor']['model']['canEditAt'](_0xe40458)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xb28f21);}}class R extends ts{['_suggestions'];constructor(_0x4d8211,_0x28a00a){super(_0x4d8211),this['_suggestions']=_0x28a00a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x488757){const _0xee044e=this['_suggestions']['get'](_0x488757);if(!_0xee044e)throw new _0x592c71('track-changes-discard-suggestion-not-found',this);const _0x1d2b21=_0xee044e['getRanges']();this['editor']['model']['canEditAt'](_0x1d2b21)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xee044e);}}function ls(_0xca143d,_0x1fccc6){let _0x551d57='';return _0x551d57+=_0xca143d['split']('*')['map']((_0x210faa,_0x496915)=>_0x496915%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x210faa)+'</span>':nn(_0x210faa))['join'](''),_0x1fccc6&&(_0x551d57+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1fccc6['value']+'\x22\x20title=\x22'+_0x1fccc6['title']+'\x22></span>'),_0x551d57;}function nn(_0x2b8ef4){const _0x2289a9=document['createElement']('span');return _0x2289a9['innerText']=_0x2b8ef4,_0x2289a9['innerHTML'];}function ss(_0x26f41e){return _0x26f41e['sort']((_0x5fe573,_0x1a4cfa)=>'deletion'==_0x5fe573['type']&&'deletion'!=_0x1a4cfa['type']?-0x1:'deletion'!=_0x5fe573['type']&&'deletion'==_0x1a4cfa['type']?0x1:0x0);}function to(_0x3c4f79,_0x5f18a9){let _0x388753,_0x495fec=0x0;const _0x1b821a=[],_0x1f32ef=_0x5f18a9['schema'];for(;_0x495fec<_0x3c4f79['length'];){const _0x4cbb15=_0x3c4f79[_0x495fec],_0x1ff227=_0x3c4f79[_0x495fec+0x1];_0x388753||(_0x388753=_0x5f18a9['createPositionBefore'](_0x4cbb15)),on(_0x5f18a9,_0x4cbb15,_0x1ff227)||(_0x1b821a['push'](_0x5f18a9['createRange'](_0x388753,_0x1f32ef['isObject'](_0x4cbb15)?_0x5f18a9['createPositionAfter'](_0x4cbb15):_0x5f18a9['createPositionAt'](_0x4cbb15,'end'))),_0x388753=null),_0x495fec++;}return _0x1b821a;}function on(_0x53980b,_0xa60be7,_0x50d56f){if(!_0x50d56f)return!0x1;const _0x595fe9=_0x53980b['createPositionAfter'](_0xa60be7),_0x7a4ff9=_0x53980b['createPositionBefore'](_0x50d56f);return _0x595fe9['isTouching'](_0x7a4ff9);}function rs(_0x1c5aac,_0x316229,_0x4aaf67){for(;_0x4aaf67['length'];){const _0x357369=_0x4aaf67['splice'](0x0,0x64);_0x1c5aac['change'](()=>{for(const _0x349998 of _0x357369)_0x349998['isInContent']&&_0x316229['execute'](_0x349998['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x136c7f,_0x3a80b9,_0x5cbfc7){super(_0x136c7f),this['_command']=_0x3a80b9,this['_suggestions']=_0x5cbfc7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x334b16=Array['from'](this['_suggestions']['values']())['some'](_0x33d338=>_0x33d338['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x334b16;}['execute'](){const _0x82ee05=ss(Array['from'](this['_suggestions']['values']()));for(const _0x243969 of _0x82ee05){const _0x3619ce=_0x243969['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3619ce))return;}rs(this['editor']['model'],this['_command'],_0x82ee05);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x57a930,_0xfef047,_0x5ab191){super(_0x57a930),this['_command']=_0xfef047,this['_suggestions']=_0x5ab191,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x24c955=this['editor']['model']['document']['selection'],_0x5595dd=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x577ca7,_0x84b097){const _0x5d8da5=Array['from'](_0x577ca7['getRanges']()),_0x598bda=new Set();for(const _0xf28886 of _0x84b097)if(_0xf28886['isInContent']){for(const _0x4f4708 of _0x5d8da5)for(const _0x3fa18d of _0xf28886['getRanges']())(_0x4f4708['isIntersecting'](_0x3fa18d)||_0x577ca7['isCollapsed']&&!_0xf28886['isMultiRange']&&_0xf28886['next']&&_0x3fa18d['end']['isTouching'](_0x4f4708['start']))&&_0x598bda['add'](_0xf28886);}return _0x598bda;}(_0x24c955,_0x5595dd),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x411e6a=ss(Array['from'](this['_selectedSuggestions']));for(const _0xe692e8 of _0x411e6a){const _0x5c105d=_0xe692e8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c105d))return;}rs(this['editor']['model'],this['_command'],_0x411e6a);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x152174(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x518a9d,_0x3260ea){super(),this['id']=_0x3260ea['id'],this['type']=_0x3260ea['type'],this['subType']=_0x3260ea['subType']||null,this['author']=_0x3260ea['author'],this['creator']=_0x3260ea['creator']||_0x3260ea['author'],this['isExternal']=Boolean(_0x3260ea['attributes']&&_0x3260ea['attributes']['@external']),this['data']=null,this['_model']=_0x518a9d,this['_onAccept']=_0x3260ea['onAccept'],this['_onDiscard']=_0x3260ea['onDiscard'],this['_onAttributesChange']=_0x3260ea['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3260ea['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 _0x29b6e8=this;for(;_0x29b6e8['previous'];)_0x29b6e8=_0x29b6e8['previous'];return _0x29b6e8;}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'](_0x4ef851){this['_markerNames']['add'](_0x4ef851);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x25f28d=>this['_model']['markers']['get'](_0x25f28d))['filter'](_0x3611c3=>_0x3611c3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xd0c736=>{for(const _0x5a5089 of this['getMarkers']())_0xd0c736['removeMarker'](_0x5a5089);}),this['_markerNames']['clear']();}['removeMarker'](_0x448f4f){this['_model']['change'](_0x267e4e=>{_0x267e4e['removeMarker'](_0x448f4f);}),this['_markerNames']['delete'](_0x448f4f);}['addRange'](_0x233df1){const _0x3081b3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3081b3),this['_model']['change'](_0x9d239b=>{_0x9d239b['addMarker'](_0x3081b3,{'range':_0x233df1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xbd1c42){for(const _0x5a745f of this['getRanges']())if(_0x5a745f['isIntersecting'](_0xbd1c42))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5da437=>_0x5da437['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x333eb1,_0x4ad1d4)=>[..._0x333eb1,..._0x4ad1d4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x41855a=this['getRanges']();if(0x1!=_0x41855a['length'])return null;const _0x16d349=_0x41855a[0x0],_0x386a4a=_0x16d349['start']['nodeAfter'],_0xff74e1=_0x16d349['end']['nodeBefore'];return _0x386a4a instanceof _0x5738b4?_0x386a4a!=_0xff74e1?null:_0x386a4a: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 _0x448ae7=[];let _0xa5935d=this['head'];for(;_0xa5935d;)_0x448ae7['push'](_0xa5935d),_0xa5935d=_0xa5935d['next'];return _0x448ae7;}['setAttribute'](_0x8f344,_0x2b99b9){const _0x1c6f28=_0x50f003(this['attributes']);_0x201370(_0x1c6f28,_0x8f344,_0x2b99b9),_0x41747e(_0x1c6f28,this['attributes'])||(this['attributes']=_0x1c6f28,this['_onAttributesChange'](_0x1c6f28));}['removeAttribute'](_0x37a677){const _0xcf4cfc=_0x50f003(this['attributes']);_0x5b2e9b(_0xcf4cfc,_0x37a677),_0x41747e(_0xcf4cfc,this['attributes'])||(this['attributes']=_0xcf4cfc,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 _0x2120b6()['substr'](0x1,0x5);}}function o(_0x569e26,_0x45b493,_0x556c07){const t=_0x569e26['t'];switch(_0x45b493){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',_0x556c07);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x556c07);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x556c07);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x556c07);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x556c07);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',_0x556c07);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x556c07);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',_0x556c07);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x556c07);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x556c07);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x556c07);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x556c07);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x556c07);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x556c07);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x556c07);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x556c07);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x556c07);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x556c07);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x556c07);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x556c07);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x556c07);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x556c07);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x556c07);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'},_0x556c07);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x556c07);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x556c07);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x556c07);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x556c07);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x556c07);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'},_0x556c07);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x556c07);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x556c07);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x556c07);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x556c07);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'},_0x556c07);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x556c07);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'},_0x556c07);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'},_0x556c07);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x556c07);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'},_0x556c07);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x556c07);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'},_0x556c07);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x556c07);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x556c07);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'},_0x556c07);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'},_0x556c07);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'},_0x556c07);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x556c07);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'},_0x556c07);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'},_0x556c07);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'},_0x556c07);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x45b493;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x321305,_0x17cf06){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x321305,this['_locale']=_0x17cf06;}['getDescriptions'](_0x69d558){const _0xefcf70=[],_0x3c9be8=new Set(),_0x4dc294=new Set();for(let _0x92a3c3=0x0;_0x92a3c3<_0x69d558['length'];_0x92a3c3++){const _0x1db53e=_0x69d558[_0x92a3c3];if(!_0x1db53e['isInContent'])continue;const _0x28159f=this['_handleCustomCallbackDescription'](_0x1db53e);if(_0x28159f){if(null!=_0x1db53e['subType']){if(_0x3c9be8['has'](_0x1db53e['subType']))continue;_0x3c9be8['add'](_0x1db53e['subType']);}_0xefcf70['push'](_0x28159f);}else{if('attribute'!=_0x1db53e['type'])'insertion'!=_0x1db53e['type']&&'deletion'!=_0x1db53e['type']||this['_handleInsertRemoveSuggestionDescription'](_0xefcf70,_0x1db53e,_0x69d558[_0x92a3c3+0x1]);else{const _0x5c69a1=_0x1db53e['data']['key'];if(_0x4dc294['has'](_0x5c69a1))continue;_0x4dc294['add'](_0x1db53e['data']['key']),_0x5c69a1==m?this['_handleRenameSuggestionDescription'](_0xefcf70,_0x1db53e):this['_handleAttributeSuggestionDescription'](_0xefcf70,_0x1db53e);}}}return this['_resolveDescriptionItems'](_0xefcf70);}['registerDescriptionCallback'](_0x1019f1){this['_customCallbacks']['push'](_0x1019f1);}['registerElementLabel'](_0x23a7a6,_0x5b040e,_0x39cf43=_0xbff88b['normal']){'function'==typeof _0x23a7a6?_0x21d775(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23a7a6,'label':_0x5b040e,'priority':_0x39cf43}):this['_itemLabels']['set'](_0x23a7a6,_0x5b040e);}['registerAttributeLabel'](_0x43a226,_0xce9dc){this['_attributeLabels']['set'](_0x43a226,_0xce9dc);}['getItemLabel'](_0x4fd2cd,_0x52136c=0x1){let _0x494a6b;for(const _0x9aca9c of this['_itemLabelsCallbacks'])if(_0x9aca9c['matchingCallback'](_0x4fd2cd)){_0x494a6b=_0x9aca9c['label'];break;}return _0x494a6b||(_0x494a6b=this['_itemLabels']['get'](_0x4fd2cd['name'])),_0x494a6b?_0x494a6b(_0x52136c):0x1!==_0x52136c?_0x52136c+'\x20'+_0x4fd2cd['name']+'s':''+_0x4fd2cd['name'];}['_addDescriptionItems'](_0x49294d,_0x58df0b){const _0x591877=_0x58df0b['getFirstRange']()['getWalker'](),_0x27a860='insertion'==_0x58df0b['type']?'add':'remove';for(const _0x5d9931 of _0x591877){const _0x1508ba=_0x5d9931['item'],_0x1b67dc=_0x49294d[_0x49294d['length']-0x1];if(_0x1508ba['is']('$textProxy'))_0x1b67dc&&_0x1b67dc['type']['indexOf']('Container')>-0x1&&_0x49294d['pop'](),_0x1b67dc&&'text'==_0x1b67dc['type']?_0x1b67dc[_0x27a860]+=_0x1508ba['data']:_0x49294d['push']({'type':'text','add':'add'==_0x27a860?_0x1508ba['data']:'','remove':'remove'==_0x27a860?_0x1508ba['data']:''});else{if(this['_schema']['isObject'](_0x1508ba)){const _0x3e74b8=_0x1508ba;if(_0x1b67dc&&_0x1b67dc['type']['indexOf']('Container')>-0x1&&_0x49294d['pop'](),'elementEnd'==_0x5d9931['type'])continue;_0x1b67dc&&_0x1b67dc['type']==_0x27a860+'Object'&&_0x1b67dc['element']['name']==_0x3e74b8['name']?_0x1b67dc['quantity']++:_0x49294d['push']({'type':_0x27a860+'Object','element':_0x3e74b8,'quantity':0x1}),_0x591877['skip'](_0x48bac5=>!('elementEnd'==_0x48bac5['type']&&_0x48bac5['item']==_0x1508ba));}else{if(this['_schema']['checkChild'](_0x1508ba,'$text')||_0x1508ba['is']('element','softBreak')){const _0x34883a=_0x1508ba;if('add'==_0x27a860&&'elementStart'==_0x5d9931['type']||'remove'==_0x27a860&&'elementEnd'==_0x5d9931['type'])continue;if(_0x1b67dc&&-0x1==_0x1b67dc['type']['indexOf']('Container')){'text'==_0x1b67dc['type']&&(_0x1b67dc[_0x27a860]+='\x0a');continue;}let _0x4eb3df;if(_0x4eb3df='add'==_0x27a860?_0x34883a['nextSibling']&&!this['_schema']['isObject'](_0x34883a['nextSibling'])?_0x34883a['nextSibling']:null:_0x34883a['previousSibling']&&!this['_schema']['isObject'](_0x34883a['previousSibling'])?_0x34883a['previousSibling']:null,_0x34883a['isEmpty']||_0x4eb3df&&_0x4eb3df['isEmpty']){const _0x1550e7=_0x4eb3df&&_0x4eb3df['isEmpty']?_0x4eb3df:_0x34883a;_0x1b67dc&&_0x1b67dc['type']==_0x27a860+'EmptyContainer'&&_0x1b67dc['element']['name']==_0x1550e7['name']?_0x1b67dc['quantity']++:_0x49294d['push']({'type':_0x27a860+'EmptyContainer','element':_0x1550e7,'quantity':0x1});}else _0x49294d['push']({'type':_0x27a860+'Container','element':_0x34883a});}}}}}['_resolveDescriptionItems'](_0x47eb68){const _0x54d51f=this['_locale'],_0x4d9d08=[],_0x192cb9=[],_0x46cd8e=[];for(const _0x390641 of _0x47eb68)switch(_0x390641['type']){case'text':if(_0x390641['add']=_0x390641['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x390641['remove']=_0x390641['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x390641['add']&&''!=_0x390641['remove']){_0x4d9d08['push']({'type':'replace','content':o(_0x54d51f,'REPLACE_TEXT',['\x22'+_0x390641['remove']+'\x22','\x22'+_0x390641['add']+'\x22'])});continue;}if(null!=_0x390641['add']['match'](/^ +$/)){_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Insert:*\x20%0',o(_0x54d51f,'ELEMENT_SPACE',_0x390641['add']['length']))});continue;}if(null!=_0x390641['remove']['match'](/^ +$/)){_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Remove:*\x20%0',o(_0x54d51f,'ELEMENT_SPACE',_0x390641['remove']['length']))});continue;}if(''!=_0x390641['add']){_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Insert:*\x20%0','\x22'+_0x390641['add']+'\x22')});continue;}_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Remove:*\x20%0','\x22'+_0x390641['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Insert:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Remove:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'addContainer':_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Split:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'removeContainer':_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Merge:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'addFormat':_0x192cb9['push'](_0x390641['key']);continue;case'removeFormat':_0x46cd8e['push'](_0x390641['key']);continue;default:_0x4d9d08['push'](_0x390641);}if(_0x192cb9['length']){const _0x4cd77c=_0x192cb9['map'](_0xe56001=>this['_attributeLabels']['has'](_0xe56001)?this['_attributeLabels']['get'](_0xe56001):_0xe56001)['join'](',\x20');_0x4d9d08['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4cd77c)});}if(_0x46cd8e['length']){const _0x266703=_0x46cd8e['map'](_0x15249b=>this['_attributeLabels']['has'](_0x15249b)?this['_attributeLabels']['get'](_0x15249b):_0x15249b)['join'](',\x20');_0x4d9d08['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x266703)});}return _0x4d9d08;}['_handleCustomCallbackDescription'](_0xb06abe){for(const _0x2edc2e of this['_customCallbacks']){const _0x4df4ad=_0x2edc2e(_0xb06abe);if(_0x4df4ad&&'type'in _0x4df4ad)return _0x4df4ad;}}['_handleAttributeSuggestionDescription'](_0x34c963,_0x6ff5aa){const _0x3578c7=_0x6ff5aa['data'],_0x36a24d=void 0x0===_0x3578c7['newValue']?'removeFormat':'addFormat';_0x34c963['push']({'type':_0x36a24d,'key':_0x3578c7['key']});}['_handleRenameSuggestionDescription'](_0x8bf268,_0x578cdc){_0x8bf268['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x578cdc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x31b1e6,_0xbec4ec,_0x45349a){if(this['_addDescriptionItems'](_0x31b1e6,_0xbec4ec),_0x45349a&&_0x45349a['getFirstRange']()&&!_0xbec4ec['getFirstRange']()['end']['isEqual'](_0x45349a['getFirstRange']()['start'])){const _0x519013=_0x31b1e6[_0x31b1e6['length']-0x1],_0x4f9d59='insertion'==_0xbec4ec['type']?'add':'remove';_0x519013&&'text'==_0x519013['type']&&(_0x519013[_0x4f9d59]+='\x0a');}}}class V extends _0x48688f{['afterInit'](){const _0x2bca53=this['editor'],_0x2c58bd=_0x2bca53['plugins']['get']('TrackChangesEditing');_0x2bca53['commands']['get']('showAIAssistant')&&_0x2c58bd['enableCommand']('showAIAssistant');}}class U extends _0x48688f{['afterInit'](){const _0x579bc0=this['editor'],_0x5e19be=_0x579bc0['locale'];if(!_0x579bc0['plugins']['has']('AlignmentEditing'))return;const _0x3bdf7d=_0x579bc0['plugins']['get']('TrackChangesEditing');_0x3bdf7d['enableDefaultAttributesIntegration']('alignment'),_0x3bdf7d['registerBlockAttribute']('alignment'),_0x3bdf7d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5e19be,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba767=this['editor'],_0x116686=_0x1ba767['locale'];_0x1ba767['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c8c75=>{if('formatBlock'!=_0x2c8c75['type'])return;const {data:_0x22960d}=_0x2c8c75;if(_0x22960d&&'alignment'==_0x22960d['commandName']){const _0x370d77=_0x22960d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x116686,'*Format:*\x20%0',function(_0x50e74f){switch(_0x50e74f){case'left':return o(_0x116686,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x116686,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x116686,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x116686,'FORMAT_JUSTIFY_TEXT');}}(_0x370d77))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x48688f{['afterInit'](){const _0x1b20d7=this['editor'],_0x400b00=_0x1b20d7['plugins']['get']('TrackChangesEditing'),_0x355a5b=_0x1b20d7['locale'];for(const _0x2afb4c of ti){if(!_0x1b20d7['plugins']['has'](_0x2afb4c))continue;const _0x2a5316=_0x2afb4c['slice'](0x0,-0x7)['toLowerCase'](),_0x385995='FORMAT_'+_0x2a5316['toUpperCase']();_0x400b00['enableDefaultAttributesIntegration'](_0x2a5316),_0x400b00['registerInlineAttribute'](_0x2a5316),_0x400b00['descriptionFactory']['registerAttributeLabel'](_0x2a5316,o(_0x355a5b,_0x385995));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e9094=this['editor'],_0x32bd3e=_0x4e9094['locale'],_0x17d7ed=_0x4e9094['plugins']['get']('TrackChangesEditing');function _0x376b23(_0x39ddd7,_0x423107){_0x17d7ed['descriptionFactory']['registerDescriptionCallback'](_0x1aac02=>{if('formatInline'!=_0x1aac02['type'])return;const {data:_0x1f6e0d}=_0x1aac02;return _0x1f6e0d&&_0x1f6e0d['commandName']===_0x39ddd7?_0x1f6e0d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32bd3e,'*Format:*\x20%0',_0x423107)}:{'type':'format','content':o(_0x32bd3e,'*Remove\x20format:*\x20%0',_0x423107)}:void 0x0;});}_0x376b23('bold',o(_0x32bd3e,'FORMAT_BOLD')),_0x376b23('italic',o(_0x32bd3e,'FORMAT_ITALIC')),_0x376b23('underline',o(_0x32bd3e,'FORMAT_UNDERLINE')),_0x376b23('code',o(_0x32bd3e,'FORMAT_CODE')),_0x376b23('strikethrough',o(_0x32bd3e,'FORMAT_STRIKETHROUGH')),_0x376b23('subscript',o(_0x32bd3e,'FORMAT_SUBSCRIPT')),_0x376b23('superscript',o(_0x32bd3e,'FORMAT_SUPERSCRIPT'));}}class F extends _0x48688f{['afterInit'](){const _0xa4c79e=this['editor'],_0x5a9bbf=_0xa4c79e['locale'];if(!_0xa4c79e['plugins']['has']('BlockQuoteEditing'))return;const _0x4c1d81=_0xa4c79e['plugins']['get']('TrackChangesEditing'),_0x5f786c=this['editor']['commands']['get']('blockQuote');_0x4c1d81['enableCommand']('blockQuote',(_0x23a9bd,_0x57d8b1={})=>{const _0x367512=this['editor']['model']['document']['selection'],_0x577847=_0x57d8b1&&void 0x0!==_0x57d8b1['forceValue']?_0x57d8b1['forceValue']:!_0x5f786c['value'];let _0x10aee8=[];if(_0x577847){const _0x582bfb=Array['from'](_0x367512['getSelectedBlocks']())['filter'](_0x13df20=>oo(_0x13df20)||function(_0x17fa66,_0x41083b){const _0x3e893a=_0x41083b['checkChild'](_0x17fa66['parent'],'blockQuote'),_0x451992=_0x41083b['checkChild'](['$root','blockQuote'],_0x17fa66);return _0x3e893a&&_0x451992;}(_0x13df20,this['editor']['model']['schema']));_0x10aee8=to(_0x582bfb,_0xa4c79e['model']);}else{const _0x5b879d=Array['from'](_0x367512['getSelectedBlocks']())['filter'](_0x5524e9=>oo(_0x5524e9));_0x10aee8=to(_0x5b879d,_0xa4c79e['model']);}_0xa4c79e['model']['change'](()=>{for(const _0x284696 of _0x10aee8)_0x4c1d81['markBlockFormat'](_0x284696,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x577847}]});});}),_0x4c1d81['descriptionFactory']['registerDescriptionCallback'](_0xd50a46=>{const {data:_0x513de5}=_0xd50a46;if(_0x513de5&&'blockQuote'==_0x513de5['commandName']){const _0x531bae=o(_0x5a9bbf,'ELEMENT_BLOCK_QUOTE');return _0x513de5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a9bbf,'*Set\x20format:*\x20%0',_0x531bae)}:{'type':'format','content':o(_0x5a9bbf,'*Remove\x20format:*\x20%0',_0x531bae)};}});}}function oo(_0x27f223){return'blockQuote'==_0x27f223['parent']['name'];}class L extends _0x48688f{['afterInit'](){const _0x4cba02=this['editor'];_0x4cba02['plugins']['has']('CaseChange')&&(_0x4cba02['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4cba02['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4cba02['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x48688f{['afterInit'](){const _0x3db8e5=this['editor'];_0x3db8e5['commands']['get']('ckbox')&&_0x3db8e5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x48688f{['afterInit'](){const _0x1b8874=this['editor'];if(!_0x1b8874['plugins']['has']('CodeBlock'))return;const _0x285f88=_0x1b8874['plugins']['get']('TrackChangesEditing'),_0xb3fde8=_0x1b8874['locale'],_0x34a1c3=_0x1b8874['config']['get']('codeBlock')['languages'],_0x3a2acd=_0x1b8874['commands']['get']('codeBlock');_0x285f88['enableCommand']('indentCodeBlock'),_0x285f88['enableCommand']('outdentCodeBlock'),_0x285f88['enableCommand']('codeBlock',(_0x192305,_0x3c3b57={})=>{const _0x4c5e06=_0x1b8874['model'],_0x3c9f51=_0x1b8874['model']['document']['selection'],_0x52d197=_0x3c3b57&&void 0x0!==_0x3c3b57['forceValue']?_0x3c3b57['forceValue']:!_0x3a2acd['value'];let _0x132e7e;_0x3c3b57['language']||(_0x3c3b57['language']=_0x34a1c3[0x0]['language']),_0x132e7e=_0x52d197?Array['from'](_0x3c9f51['getSelectedBlocks']())['filter'](_0x1dc6f4=>eo(_0x1dc6f4)||function(_0x3860db,_0x5adb8a){if(_0x3860db['is']('rootElement')||_0x5adb8a['isLimit'](_0x3860db))return!0x1;return _0x5adb8a['checkChild'](_0x3860db['parent'],'codeBlock');}(_0x1dc6f4,_0x4c5e06['schema'])):Array['from'](_0x3c9f51['getSelectedBlocks']())['filter'](_0x2babdf=>eo(_0x2babdf));const _0x50a6ce=to(_0x132e7e,_0x4c5e06);_0x4c5e06['change'](()=>{for(const _0x86d37 of _0x50a6ce)_0x285f88['markBlockFormat'](_0x86d37,{'commandName':'codeBlock','commandParams':[{..._0x3c3b57,'forceValue':_0x52d197}],'formatGroupId':'blockName'});});}),(_0x285f88['descriptionFactory']['registerElementLabel']('codeBlock',_0x69bd10=>o(_0xb3fde8,'ELEMENT_CODE_BLOCK',_0x69bd10)),_0x285f88['descriptionFactory']['registerDescriptionCallback'](_0x2eb3f9=>{if('formatBlock'!=_0x2eb3f9['type'])return;const _0x482af6=_0xb3fde8['t'],{data:_0x2b3228}=_0x2eb3f9;if(!_0x2b3228||'codeBlock'!=_0x2b3228['commandName'])return;const _0x4690e5=_0x2b3228['commandParams'][0x0]['language'],_0x2fbb2b=_0x482af6(_0x34a1c3['find'](_0x4bae1b=>_0x4bae1b['language']===_0x4690e5)['label'])['toLowerCase']();return _0x2b3228['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb3fde8,'*Set\x20format:*\x20%0',o(_0xb3fde8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2fbb2b+')')}:{'type':'format','content':o(_0xb3fde8,'*Remove\x20format:*\x20%0',o(_0xb3fde8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4a0a6a){return'codeBlock'==_0x4a0a6a['name'];}class q extends _0x48688f{['afterInit'](){const _0x356eea=this['editor'];if(!_0x356eea['plugins']['has']('CommentsEditing'))return;_0x356eea['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x294f53,_0xee9b94,_0x37bd94){const _0x474d02=[];for(const _0x3ffcc6 of _0xee9b94['getItems']())_0x3ffcc6['hasAttribute'](_0x294f53)&&_0x474d02['push'](_0x37bd94['createRangeOn'](_0x3ffcc6));return _0x474d02;}function _e(_0xa03bf1,_0x142c8b,{showActiveMarker:_0x11a61e=!0x0}={}){const _0x44c064=_0xa03bf1['plugins']['get']('TrackChangesEditing');return(_0x36354c,_0x535297,_0x25e380)=>{if(!_0x25e380['consumable']['test'](_0x535297['markerRange'],_0x36354c['name']))return;const _0x521894=_0x535297['markerRange']['getWalker'](),_0x109060=_0x535297['markerRange']['start'],_0x503960=_0xa03bf1['model']['schema'];let _0x200721=null,_0x3dbf46=null,_0x7430d4=!0x1,_0x4dfcdb=!0x1;for(const _0x54f19a of _0x521894){const _0x315652=_0x54f19a['item'];_0x7430d4=_0x7430d4||_0x503960['isContent'](_0x315652);const _0x43e3e0=_0x25e380['mapper']['toViewElement'](_0x315652);if(_0x43e3e0&&_0x43e3e0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54f19a['type']&&(_0x503960['isBlock'](_0x315652)&&!_0x503960['isLimit'](_0x315652)&&(_0x315652['nextSibling']||_0x109060['isAtEnd']?_0x200721&&_0x200721['parent']==_0x315652||(_0x200721=_0x315652,_0x3b8b56(_0x54f19a['previousPosition']),_0x4dfcdb=!0x0):_0x3dbf46=_0x3dbf46||_0x54f19a['previousPosition']));}function _0x3b8b56(_0x105062){const {authorId:_0x23e06f}=_0x44c064['_splitMarkerName'](_0x535297['markerName']),_0x5f37cc=_0x25e380['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x142c8b,'data-author-id':_0x23e06f}),_0x23171d=_0x25e380['mapper']['toViewPosition'](_0x105062);_0x11a61e&&_0x44c064['activeMarkers']['includes'](_0x535297['markerName'])&&_0x25e380['writer']['addClass']('ck-suggestion-marker--active',_0x5f37cc),_0x25e380['writer']['insert'](_0x23171d,_0x5f37cc),_0x25e380['mapper']['bindElementToMarker'](_0x5f37cc,_0x535297['markerName']);}_0x7430d4||_0x4dfcdb||!_0x3dbf46||_0x3b8b56(_0x3dbf46);};}class z extends _0x48688f{static get['requires'](){return[_0x4d1662];}['init'](){const _0x4bb214=this['editor'],_0xace0ae=_0x4bb214['plugins']['get']('TrackChangesEditing');_0xace0ae['enableCommand']('delete');const _0x1c4a98=_0x4bb214['commands']['get']('deleteForward');_0xace0ae['enableCommand']('deleteForward',(_0x3f3abb,_0x46e5bf={})=>{const _0x592d8c=_0x4bb214['model']['createSelection'](_0x4bb214['model']['document']['selection']);_0x592d8c['isCollapsed']&&_0x4bb214['model']['modifySelection'](_0x592d8c,{'direction':'forward','unit':_0x46e5bf['unit']});const _0xdd2c64=_0x592d8c['getFirstRange'](),_0x1240f3=_0x411321['fromRange'](_0xdd2c64);let _0x974c42;_0x3f3abb(_0x46e5bf),_0x974c42='$graveyard'==_0x1240f3['root']['rootName']?_0x4bb214['model']['createRange'](_0xdd2c64['start']):_0x4bb214['model']['createRange'](_0x1240f3['start'],_0x1240f3['end']),_0x1240f3['detach'](),_0x4bb214['model']['enqueueChange'](_0x1c4a98['buffer']['batch'],_0x5b1f40=>{_0x1c4a98['buffer']['lock'](),_0x5b1f40['setSelection'](_0x5b1f40['createRange'](_0x974c42['end'])),_0x1c4a98['buffer']['unlock']();});}),_0x4bb214['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4bb214,'merge'),{'priority':'high'}),_0x4bb214['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3a4c4c,_0x6cc66f,_0x8e3206)=>{_0x8e3206['options']['showSuggestionHighlights']&&_e(_0x4bb214,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3a4c4c,_0x6cc66f,_0x8e3206);},{'priority':'high'}),_0x4bb214['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x48a194,_0x379cf5,_0x42acc4)=>{const _0x11ff41=_0x42acc4['mapper']['markerNameToElements'](_0x379cf5['markerName']);if(_0x11ff41){for(const _0x46e10f of _0x11ff41)_0x46e10f['is']('uiElement')&&(_0x42acc4['mapper']['unbindElementFromMarkerName'](_0x46e10f,_0x379cf5['markerName']),_0x42acc4['writer']['remove'](_0x46e10f));}},{'priority':'high'});}}class K extends _0x48688f{['afterInit'](){const _0x113559=this['editor'];if(!_0x113559['plugins']['has']('ListEditing'))return;const _0x1e9110=_0x113559['locale'],_0x5df889=_0x113559['plugins']['get']('TrackChangesEditing'),_0x2e45ec=_0x113559['plugins']['has']('TodoListEditing'),_0x37b22b=!!_0x113559['config']['get']('list.multiBlock');function _0x9b1e11(_0x2fe36f){return{'type':'format','content':''+o(_0x1e9110,'*Set\x20format:*\x20%0',_0x2fe36f)};}function _0x1587be(_0x5c2b9b){return{'type':'format','content':''+o(_0x1e9110,'*Remove\x20format:*\x20%0',_0x5c2b9b)};}_0x5df889['enableDefaultAttributesIntegration']('numberedList'),_0x5df889['enableDefaultAttributesIntegration']('bulletedList'),_0x5df889['enableDefaultAttributesIntegration']('customNumberedList'),_0x5df889['enableDefaultAttributesIntegration']('customBulletedList'),_0x5df889['enableDefaultAttributesIntegration']('indentList'),_0x5df889['enableDefaultAttributesIntegration']('outdentList'),_0x5df889['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5df889['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5df889['registerBlockAttribute']('listItemId'),_0x5df889['registerBlockAttribute']('listType'),_0x5df889['registerBlockAttribute']('listIndent'),_0x37b22b&&(_0x5df889['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5df889['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2e45ec&&(_0x5df889['enableDefaultAttributesIntegration']('todoList'),_0x5df889['enableDefaultAttributesIntegration']('checkTodoList'),_0x5df889['registerBlockAttribute']('todoListChecked'),_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x241d40=>{const {data:_0x307b8c}=_0x241d40;if(_0x307b8c&&'todoListChecked'==_0x307b8c['key'])return{'type':'format','content':_0x307b8c['newValue']?o(_0x1e9110,'*Check\x20item*'):o(_0x1e9110,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x13515d=>{if(_0x13515d['batch']['isUndo'])return!0x1;let _0x1898b6=!0x1;const _0x36f88c=_0x5df889['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12b920=>'todoListChecked'===_0x5df889['_getAttributeKey'](_0x12b920));for(const _0x5754e5 of _0x36f88c){'todo'!=_0x5754e5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5df889['_findSuggestions'](_0x5754e5['getFirstRange'](),'attribute')['find'](_0x37fc9a=>'listType'===_0x5df889['_getAttributeKey'](_0x37fc9a['suggestion']))||(_0x13515d['removeMarker'](_0x5754e5['getFirstMarker']()),_0x1898b6=!0x0));}return _0x1898b6;})),_0x5df889['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1e9110,'FORMAT_INDENT'));const _0x214dca={'type':'format','content':''};_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x2d080d=>{const {data:_0x51e291}=_0x2d080d;if(!_0x51e291||'listType'!=_0x51e291['key'])return;let _0x1e3070=_0x2d080d['head'];for(;_0x1e3070;){if(_0x1e3070['data']&&(('listStyle'==_0x1e3070['data']['key']||'listMarkerStyle'==_0x1e3070['data']['key'])&&(_0x1e3070['data']['newValue']&&'default'!=_0x1e3070['data']['newValue']||'default'!=_0x1e3070['data']['oldValue']&&!_0x51e291['newValue'])||!_0x37b22b&&_0x1e3070['data']['key']==m))return _0x214dca;_0x1e3070=_0x1e3070['next'];}if(null==_0x51e291['newValue'])switch(_0x51e291['oldValue']){case'bulleted':return _0x1587be(o(_0x1e9110,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1587be(o(_0x1e9110,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1587be(o(_0x1e9110,'ELEMENT_TODO_LIST'));}switch(_0x51e291['newValue']){case'bulleted':return _0x9b1e11(o(_0x1e9110,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9b1e11(o(_0x1e9110,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9b1e11(o(_0x1e9110,'ELEMENT_TODO_LIST'));}}),_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x6e293b=>{const {data:_0x165c32}=_0x6e293b;if(_0x165c32&&'listIndent'==_0x165c32['key'])return null==_0x165c32['newValue']||null==_0x165c32['oldValue']&&0x0==_0x165c32['newValue']?_0x214dca:void 0x0;}),_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x2679e4=>{if('attribute'!=_0x2679e4['type'])return;const {data:_0xc531b9}=_0x2679e4;if(!_0xc531b9||'listItemId'!=_0xc531b9['key'])return;const _0x571869=Ee(_0x2679e4);return'newValue'==_0x571869?{'type':'format','content':o(_0x1e9110,'*Merge:*\x20list\x20item')}:'oldValue'==_0x571869?{'type':'format','content':o(_0x1e9110,'*Split:*\x20list\x20item')}:_0x214dca;}),_0x113559['model']['document']['registerPostFixer'](_0x5a70dc=>this['listItemIdFixer'](_0x5a70dc)),_0x113559['model']['document']['registerPostFixer'](_0x2cc98c=>this['noTrackChangesFixer'](_0x2cc98c)),_0x113559['model']['document']['on']('change:data',(_0x389b5d,_0x133a0e)=>{if(_0x133a0e['isUndo']||!_0x133a0e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2a86b8){if(_0x2a86b8['batch']['isUndo']||!_0x2a86b8['batch']['isLocal'])return!0x1;let _0x4801a6=!0x1;const _0x823ebc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54f69c=>_0x54f69c['data']&&'listItemId'==_0x54f69c['data']['key'])['filter'](_0x177dfe=>_0x177dfe['data']['newValue']&&_0x177dfe['data']['oldValue']);for(const _0x45fd2c of _0x823ebc)Ee(_0x45fd2c)||(_0x2a86b8['removeMarker'](_0x45fd2c['getFirstMarker']()),_0x4801a6=!0x0);return _0x4801a6;}['noTrackChangesFixer'](_0x3ce4ec){if(_0x3ce4ec['batch']['isUndo']||!_0x3ce4ec['batch']['isLocal'])return!0x1;const _0x1bf277=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1bf277['trackChangesCommand']['value'])return!0x1;let _0x453dc8=!0x1;const _0xcc4bf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c4262=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4b8a74=>'attribute'==_0x4b8a74['type'])['filter'](_0x20ad26=>_0xcc4bf['includes'](_0x20ad26['attributeKey']));if(0x0==_0x4c4262['length'])return _0x453dc8;for(const _0x40cc09 of _0x4c4262){const _0x38eee7=_0x1bf277['_findSuggestions'](_0x40cc09['range'],'attribute')['filter'](_0xd647d1=>!_0xd647d1['meta']['isNextTo'])['map'](_0x44a582=>_0x44a582['suggestion'])['filter'](_0x5653d6=>{const _0x2e5f4d=_0x1bf277['_getAttributeKey'](_0x5653d6);return _0xcc4bf['includes'](_0x2e5f4d);});if(_0x38eee7['length']){for(const _0x3e27ec of _0x38eee7)_0x3ce4ec['removeMarker'](_0x3e27ec['getFirstMarker']());_0x453dc8=!0x0;}}return _0x453dc8;}['assureChains'](){const _0x24793d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18aa7c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2769c1;const _0x240117=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2fce3c=>{if(_0x2fce3c['data']['oldRange']||!_0x2fce3c['data']['newRange'])return null;if(!_0x2fce3c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x506a15}=_0x24793d['_splitMarkerName'](_0x2fce3c['name']);if(!_0x24793d['hasSuggestion'](_0x506a15))return null;const _0x59c9d6=_0x24793d['getSuggestion'](_0x506a15);return _0x18aa7c['includes'](_0x59c9d6['data']['key']);})['map'](_0x458bc6=>{const {id:_0x254aac}=_0x24793d['_splitMarkerName'](_0x458bc6['name']),_0x2aec8e=_0x24793d['getSuggestion'](_0x254aac);return _0x2769c1=_0x2aec8e['attributes']['groupId'],_0x2aec8e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x240117['size'])return;const _0x50db0b=_0x24793d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b7eb0=>'attribute'==_0x3b7eb0['type']&&_0x3b7eb0['data']&&_0x18aa7c['includes'](_0x3b7eb0['data']['key'])&&_0x3b7eb0['attributes']['groupId']!=_0x2769c1)['map'](_0x3cb1f1=>({'listItem':_0x3cb1f1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3cb1f1['attributes']['groupId']})),_0x368c5f=new Set();for(const {groupId:_0x249bf2,listItem:_0x17875a}of _0x50db0b)_0x240117['has'](_0x17875a)&&_0x368c5f['add'](_0x249bf2);for(const _0x867148 of _0x24793d['getSuggestions']())_0x368c5f['has'](_0x867148['attributes']['groupId'])&&_0x867148['setAttribute']('groupId',_0x2769c1);}['_supportLegacySuggestions'](){const _0x52c19e=this['editor'],_0x1c0322=_0x52c19e['locale'],_0x2e9361=_0x52c19e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2e9361['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a5f39,_0x44786e){const _0x8f6d83=[];for(let _0x1d81e4 of _0x1a5f39)_0x1d81e4['start']['nodeAfter']===_0x1d81e4['end']['parent']&&(_0x1d81e4=_0x52c19e['model']['createRange'](_0x52c19e['model']['createPositionAt'](_0x1d81e4['start']['nodeAfter'],0x0))),_0x8f6d83['push'](_0x1d81e4);_0x52c19e['model']['change'](_0xcc85a5=>{const _0x205d3c=_0x52c19e['model']['document']['selection'],_0x2b98a0=Array['from'](_0x205d3c['getRanges']())['map'](_0x244e7a=>_0x411321['fromRange'](_0x244e7a));_0xcc85a5['setSelection'](_0x8f6d83),_0x52c19e['commands']['get'](_0x44786e['commandName'])['refresh'](),_0x44786e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x52c19e['execute'](_0x44786e['commandName'],..._0x44786e['commandParams']),_0xcc85a5['setSelection'](_0x2b98a0);for(const _0x45693d of _0x2b98a0)_0x45693d['detach']();});}),_0x2e9361['descriptionFactory']['registerElementLabel'](function(_0x2182ef){const _0x259d5e=!_0x52c19e['model']['schema']['isObject'](_0x2182ef),_0x2b58d5=_0x2182ef['previousSibling'],_0x3e03cb=_0x2182ef['nextSibling'],_0x396474=_0x2182ef['getAttribute']('listItemId'),_0x22f6ca=!_0x2b58d5||_0x2b58d5['getAttribute']('listItemId')!==_0x396474,_0x510ce0=!_0x3e03cb||_0x3e03cb['getAttribute']('listItemId')!==_0x396474;return _0x259d5e&&Boolean(_0x396474)&&_0x22f6ca&&_0x510ce0;},_0x3801d5=>o(_0x1c0322,'ELEMENT_LIST_ITEM',_0x3801d5));}['_registerLegacyDescription'](){const _0x88237c=this['editor'],_0x12bb6d=_0x88237c['locale'];function _0x450769(_0x568bbb){const _0x422dba=_0x88237c['commands']['get']('bulletedList')['value'],_0x1e10c8=_0x88237c['commands']['get']('numberedList')['value'];return'numberedList'===_0x568bbb?_0x422dba:_0x1e10c8;}_0x88237c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x72a553){if('formatBlock'!=_0x72a553['type'])return;const {data:_0x3617ec}=_0x72a553;if(!_0x3617ec)return;let _0x1671d2,_0x2935d3,_0x472d2c,_0x37f7b9;switch(_0x3617ec['commandName']){case'bulletedList':_0x472d2c=_0x3617ec['commandParams'][0x0]['forceValue'],_0x37f7b9=_0x450769(_0x3617ec['commandName']),_0x1671d2=_0x472d2c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37f7b9&&_0x88237c['config']['get']('list.multiBlock')||(_0x1671d2='*Change\x20to:*\x20%0'),_0x2935d3={'type':'format','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x472d2c=_0x3617ec['commandParams'][0x0]['forceValue'],_0x37f7b9=_0x450769(_0x3617ec['commandName']),_0x1671d2=_0x472d2c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37f7b9&&_0x88237c['config']['get']('list.multiBlock')||(_0x1671d2='*Change\x20to:*\x20%0'),_0x2935d3={'type':'format','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1671d2='*Indent:*\x20%0',_0x2935d3={'type':'format','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1671d2=function(_0x44f306){const _0x16c15f=_0x44f306['getFirstRange']();let _0x45f610=_0x16c15f['start']['nodeAfter'];for(;_0x45f610&&_0x16c15f['containsItem'](_0x45f610);){if(_0x45f610['getAttribute']('listIndent')>0x0)return!0x1;_0x45f610=_0x45f610['nextSibling'];}return!0x0;}(_0x72a553)?o(_0x12bb6d,'*Format:*\x20remove\x20from\x20%0',o(_0x12bb6d,function(_0x2f06a7){return'ELEMENT_'+_0x2f06a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x72a553))):o(_0x12bb6d,'*Outdent:*\x20%0',o(_0x12bb6d,'ELEMENT_LIST_ITEM')),_0x2935d3={'type':'format','content':_0x1671d2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3617ec['multipleBlocks']&&(_0x1671d2='*Merge:*\x20%0',_0x2935d3={'type':'deletion','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_LIST_ITEM'))});}return _0x2935d3;});}}function Ee(_0x147147){let _0x1f291f=_0x147147['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1f291f;){const _0x594f98=_0x1f291f['getAttribute']('listItemId');if(!_0x594f98)return!0x1;if(_0x594f98==_0x147147['data']['newValue'])return'newValue';if(_0x594f98==_0x147147['data']['oldValue'])return'oldValue';_0x1f291f=_0x1f291f['previousSibling'];}return!0x1;}class pe extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x25b7b8=this['editor']['config']['get']('list.properties'),_0x363077=this['editor']['plugins']['get']('TrackChangesEditing');_0x25b7b8['styles']&&(_0x363077['enableDefaultAttributesIntegration']('listStyle'),_0x363077['registerBlockAttribute']('listStyle')),_0x25b7b8['reversed']&&(_0x363077['enableDefaultAttributesIntegration']('listReversed'),_0x363077['registerBlockAttribute']('listReversed')),_0x25b7b8['startIndex']&&(_0x363077['enableDefaultAttributesIntegration']('listStart'),_0x363077['registerBlockAttribute']('listStart'));const _0x5c4363={'type':'format','content':''};_0x363077['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x466e7c=this['editor']['locale'];_0x363077['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x466e7c,'FORMAT_LIST_REVERSED')),_0x363077['descriptionFactory']['registerDescriptionCallback'](_0x366f82=>{const {data:_0x10ea44}=_0x366f82;if(_0x10ea44&&'listReversed'==_0x10ea44['key'])return null==_0x10ea44['newValue']||0x0==_0x10ea44['newValue']&&null==_0x10ea44['oldValue']?_0x5c4363:void 0x0;}),_0x363077['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x466e7c,'FORMAT_LIST_START')),_0x363077['descriptionFactory']['registerDescriptionCallback'](_0x183f7d=>{const {data:_0x347012}=_0x183f7d;if(_0x347012&&'listStart'==_0x347012['key'])return null==_0x347012['newValue']||0x1==_0x347012['newValue']&&null==_0x347012['oldValue']?_0x5c4363:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x22bc66=>{if(_0x22bc66['batch']['isUndo'])return!0x1;let _0x24e503=!0x1;const _0x472ec7=_0x363077['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b392d=>{const _0x230c72=_0x363077['_getAttributeKey'](_0x2b392d);return'listStart'==_0x230c72||'listReversed'==_0x230c72;});for(const _0xdc90c0 of _0x472ec7){const _0x8fb641=_0xdc90c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x8fb641||'customNumbered'==_0x8fb641)continue;_0x363077['_findSuggestions'](_0xdc90c0['getFirstRange'](),'attribute')['find'](_0x1a16e6=>'listType'==_0x363077['_getAttributeKey'](_0x1a16e6['suggestion']))||(_0x22bc66['removeMarker'](_0xdc90c0['getFirstMarker']()),_0x24e503=!0x0);}return _0x24e503;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1cf4b4){const _0x5d3603=this['editor']['locale'],{data:_0x1c40c6}=_0x1cf4b4,_0x56fe0e={'type':'format','content':''};if(!_0x1c40c6||'listStyle'!=_0x1c40c6['key'])return;if(!_0x1c40c6['oldValue'])return'default'==_0x1c40c6['newValue']?_0x56fe0e:{'type':'format','content':''+o(_0x5d3603,'*Set\x20format:*\x20%0',o(_0x5d3603,this['_getTranslationKeyForListStyle'](_0x1c40c6['newValue'])))};if(!_0x1c40c6['newValue']){if('default'==_0x1c40c6['oldValue'])return _0x56fe0e;let _0x2667c2=_0x1cf4b4['head'];for(;_0x2667c2;){if(_0x2667c2['data']&&'listType'==_0x2667c2['data']['key']&&_0x2667c2['data']['newValue'])return _0x56fe0e;_0x2667c2=_0x2667c2['next'];}return{'type':'format','content':''+o(_0x5d3603,'*Remove\x20format:*\x20%0',o(_0x5d3603,this['_getTranslationKeyForListStyle'](_0x1c40c6['oldValue'])))};}if('default'!=_0x1c40c6['newValue'])return{'type':'format','content':''+o(_0x5d3603,'*Set\x20format:*\x20%0',o(_0x5d3603,this['_getTranslationKeyForListStyle'](_0x1c40c6['newValue'])))};let _0x458e36=_0x1cf4b4['head'];for(;_0x458e36;){if(_0x458e36['data']&&'listType'==_0x458e36['data']['key']&&_0x458e36['data']['newValue']&&_0x458e36['data']['oldValue'])return _0x56fe0e;_0x458e36=_0x458e36['next'];}return{'type':'format','content':o(_0x5d3603,'*Set\x20format:*\x20%0',o(_0x5d3603,'ELEMENT_'+_0x1cf4b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ea5ae=this['editor'],_0x9ed3bf=_0x2ea5ae['locale'];_0x2ea5ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36589d=>{if('formatBlock'!=_0x36589d['type'])return;const {data:_0xafbff1}=_0x36589d;if(!_0xafbff1)return;let _0x564ad7,_0x18c24c;switch(_0xafbff1['commandName']){case'listStyle':_0x564ad7='*Change\x20to:*\x20%0',_0x18c24c={'type':'format','content':o(_0x9ed3bf,_0x564ad7,o(_0x9ed3bf,this['_getTranslationKeyForListStyle'](_0xafbff1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x564ad7=_0xafbff1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18c24c={'type':'format','content':o(_0x9ed3bf,_0x564ad7)};break;case'listStart':_0x564ad7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18c24c={'type':'format','content':o(_0x9ed3bf,_0x564ad7,_0xafbff1['commandParams'][0x0]['startIndex'])};}return _0x18c24c;});}['_getTranslationKeyForListStyle'](_0x1adaff){return'ELEMENT_'+function(_0x17aa21){if(ye['includes'](_0x17aa21))return'bulleted';if(Se['includes'](_0x17aa21))return'numbered';return null;}(_0x1adaff)['toUpperCase']()+'_LIST_'+_0x1adaff['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x48688f{static get['requires'](){return[_0x161099];}['init'](){const _0x4eb4c5=this['editor'],_0x547d3d=_0x4eb4c5['plugins']['get']('TrackChangesEditing'),_0x400415=_0x4eb4c5['commands']['get']('enter');_0x547d3d['enableCommand']('enter',()=>{_0x4eb4c5['model']['change'](_0x1bda5b=>{const _0x28500b=_0x4eb4c5['model']['document']['selection'],_0x56c4ce=_0x28500b['getFirstPosition'](),_0x383e73=_0x411321['fromRange'](_0x28500b['getFirstRange']());if(_0x400415['enterBlock'](_0x1bda5b)){const _0x20a259=_0x4eb4c5['model']['createPositionAt'](_0x56c4ce['parent']['nextSibling'],0x0),_0x304837=_0x1bda5b['createRange'](_0x56c4ce,_0x20a259);_0x547d3d['markInsertion'](_0x304837);}else _0x1bda5b['setSelection'](_0x1bda5b['createRange'](_0x383e73['end']));_0x383e73['detach'](),_0x400415['fire']('afterExecute',{'writer':_0x1bda5b});});}),_0x4eb4c5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4eb4c5,'split'),{'priority':'high'}),_0x4eb4c5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x30ea6f,_0x3b074e,_0x417b97)=>{const _0x52f374=_0x417b97['mapper']['markerNameToElements'](_0x3b074e['markerName']);if(_0x52f374){for(const _0x371756 of _0x52f374)_0x371756['hasClass']('ck-suggestion-marker-split')&&(_0x417b97['mapper']['unbindElementFromMarkerName'](_0x371756,_0x3b074e['markerName']),_0x417b97['writer']['remove'](_0x371756));}},{'priority':'high'}),_0x4eb4c5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x56bbf7,_0x3a7ef4,_0x58875b)=>{_0x58875b['options']['showSuggestionHighlights']&&_e(_0x4eb4c5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x56bbf7,_0x3a7ef4,_0x58875b);},{'priority':'high'});}}class X extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5044f0=this['editor']['plugins']['get']('TrackChangesEditing');_0x5044f0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5044f0['enableCommand']('findNext'),_0x5044f0['enableCommand']('findPrevious'),_0x5044f0['enableCommand']('replace'),_0x5044f0['enableCommand']('replaceAll');}['handleFindCommand'](_0xf694f1,_0x3a4ff6,_0x30aa83={}){const _0x27b487=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xf694f1(_0x24d45d=>{let _0x4af41f=('string'==typeof _0x3a4ff6?_0x27b487['findByTextCallback'](_0x3a4ff6,_0x30aa83):_0x3a4ff6)(_0x24d45d);Array['isArray'](_0x4af41f)&&(_0x4af41f={'results':_0x4af41f,'searchText':'string'==typeof _0x3a4ff6?_0x3a4ff6:''});const _0x436c7b=_0x4af41f['results']['filter'](_0x91f996=>!0x1===this['_isInDeletionRange'](_0x91f996,_0x24d45d['item']));return{..._0x4af41f,'results':_0x436c7b};},_0x30aa83);}['_isInDeletionRange'](_0x5b773a,_0x5c6d58){const _0x4fd8b3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c6d58,_0x5b773a['start']),this['editor']['model']['createPositionAt'](_0x5c6d58,_0x5b773a['end']));for(const _0x245cee of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4fd8b3['getIntersection'](_0x245cee['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 _0x48688f{['afterInit'](){const _0x126b56=this['editor']['locale'],_0x133bdc=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x102fbf,commandName:_0x3df02a}of ro)this['editor']['plugins']['has'](_0x102fbf)&&(_0x133bdc['enableDefaultAttributesIntegration'](_0x3df02a),_0x133bdc['registerInlineAttribute'](_0x3df02a));_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x126b56,'FORMAT_FONT_SIZE')),_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x126b56,'FORMAT_FONT_FAMILY')),_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x126b56,'FORMAT_FONT_COLOR')),_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x126b56,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f6064=this['editor'],_0x33f918=_0x2f6064['locale'];_0x2f6064['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c99f=>{const _0x491ba9=_0x33f918['t'];if('formatInline'!=_0x13c99f['type'])return;const {data:_0x93e274}=_0x13c99f;if(null!=_0x93e274){if('fontSize'==_0x93e274['commandName']){const _0x259650=_0x93e274['commandParams'][0x0]['value'];if(_0x259650){const _0x4488a7=_0x491ba9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x31f827=>_0x31f827['model']==_0x259650)['title'])['toLowerCase']();return{'type':'format','content':o(_0x33f918,'*Set\x20font\x20size:*\x20%0',_0x4488a7)};}return{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x93e274['commandName']){const _0x442428=_0x93e274['commandParams'][0x0]['value'];return _0x442428?{'type':'format','content':o(_0x33f918,'*Set\x20font\x20family:*\x20%0',_0x442428)}:{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20family*')};}if('fontColor'==_0x93e274['commandName']){const _0x19bce2=_0x93e274['commandParams'][0x0]['value'];if(_0x19bce2){const _0x3dd95d=_0x387c59(this['editor']['config']['get']('fontColor.colors'))['find'](_0x53110e=>_0x53110e['model']==_0x19bce2);let _0x2f931d=_0x19bce2,_0xfb66c8='';return _0x3dd95d&&(_0x2f931d=_0x3dd95d['label'],_0xfb66c8=_0x491ba9(_0x2f931d)['toLowerCase']()),{'type':'format','content':o(_0x33f918,'*Set\x20font\x20color:*\x20%0',_0xfb66c8)['trim'](),'color':{'value':_0x19bce2,'title':_0xfb66c8||_0x2f931d}};}return{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x93e274['commandName']){const _0xb46de9=_0x93e274['commandParams'][0x0]['value'];if(_0xb46de9){const _0x2a8de9=_0x387c59(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1c08f4=>_0x1c08f4['model']==_0xb46de9);let _0xce31cf=_0xb46de9,_0x56728f='';return _0x2a8de9&&(_0xce31cf=_0x2a8de9['label'],_0x56728f=_0x491ba9(_0xce31cf)['toLowerCase']()),{'type':'format','content':o(_0x33f918,'*Set\x20font\x20background\x20color:*\x20%0',_0x56728f)['trim'](),'color':{'value':_0xb46de9,'title':_0x56728f||_0xce31cf}};}return{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x48688f{['afterInit'](){const _0x240ab5=this['editor'],_0x4d431e=_0x240ab5['plugins']['get']('TrackChangesEditing'),_0x5040d4=_0x240ab5['commands']['get']('copyFormat'),_0x2acd14=_0x240ab5['commands']['get']('pasteFormat');_0x5040d4&&_0x2acd14&&(_0x4d431e['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d431e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2cc320=this['editor'],_0x3aeec0=_0x2cc320['locale'];_0x2cc320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1975ad=>{if('formatBlock'!=_0x1975ad['type']&&'formatInline'!=_0x1975ad['type'])return;const {data:_0x7cc819}=_0x1975ad;if(_0x7cc819&&'pasteFormat'===_0x7cc819['commandName']){const _0x44b432=[],_0x143736=_0x7cc819['commandParams'][0x0];for(const [_0x2eab01,_0x326d7d]of Object['entries'](_0x143736))_0x44b432['push'](so(_0x2cc320,_0x2eab01,_0x326d7d));return _0x44b432['length']?{'type':'format','content':o(_0x3aeec0,'*Set\x20format\x20to:*\x20%0',_0x44b432['join'](',\x20'))}:{'type':'format','content':o(_0x3aeec0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x16e788,_0xbf6754,_0x4e88d8){const _0x2da339=_0x16e788['locale']['t'],_0x5663aa=_0xbf6754['split'](/(?=[A-Z])/)['join']('\x20'),_0x355c24=_0x2da339(_0x5663aa['charAt'](0x0)['toUpperCase']()+_0x5663aa['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4e88d8)return _0x355c24;if('fontColor'===_0xbf6754||'fontBackgroundColor'===_0xbf6754){const _0x4bc5d8=_0x387c59(_0x16e788['config']['get']('fontColor.colors'))['find'](_0x241472=>_0x241472['model']==_0x4e88d8);return _0x355c24+'\x20('+(_0x4bc5d8?_0x2da339(_0x4bc5d8['label'])['toLowerCase']():_0x4e88d8)+')';}if('fontSize'===_0xbf6754&&isNaN(parseFloat(_0x4e88d8))){const _0x3a7057=_0x16e788['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x16e788['config']['get']('fontSize.options'))['find'](_0x146bc0=>_0x146bc0['model']==_0x4e88d8);return _0x355c24+'\x20('+(_0x3a7057?_0x2da339(_0x3a7057['title'])['toLowerCase']():_0x4e88d8)+')';}return _0x355c24+'\x20('+_0x4e88d8+')';}class tt extends _0x48688f{['_headingOptions'];['afterInit'](){const _0x55ddb9=this['editor'];if(!_0x55ddb9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x55ddb9['config']['get']('heading.options');const _0x3858b5=_0x55ddb9['locale'],_0x54ddd7=_0x55ddb9['plugins']['get']('TrackChangesEditing');_0x54ddd7['enableDefaultAttributesIntegration']('heading');for(const _0x27b4c0 of this['_headingOptions'])'paragraph'!=_0x27b4c0['model']&&_0x54ddd7['descriptionFactory']['registerElementLabel'](_0x27b4c0['model'],_0x5d4561=>{const _0x33843b=this['_getHeadingLevel'](_0x27b4c0['model']);return null!==_0x33843b?_0xbab190(_0x5d4561,_0x33843b):_0x4f67f9(_0x5d4561,_0x27b4c0['title']);});function _0xbab190(_0x31366f,_0x4895ae){return o(_0x3858b5,'ELEMENT_HEADING',[_0x31366f,_0x4895ae]);}function _0x4f67f9(_0x387b6f,_0x2954b8){return o(_0x3858b5,'ELEMENT_HEADING_CUSTOM',[_0x387b6f,_0x2954b8]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25d521=this['editor'],_0x19279e=_0x25d521['locale'];function _0x3127c9(_0xa757f,_0x35e8a2){return o(_0x19279e,'ELEMENT_HEADING_CUSTOM',[_0xa757f,_0x35e8a2]);}_0x25d521['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37a0f1=>{if('formatBlock'!=_0x37a0f1['type'])return;const {data:_0xa249b2}=_0x37a0f1;if(_0xa249b2&&'heading'==_0xa249b2['commandName']){const _0x49755a=_0xa249b2['commandParams'][0x0]['value'],_0x44d400=this['_getHeadingLevel'](_0x49755a);if(null!==_0x44d400)return{'type':'format','content':o(_0x19279e,'*Change\x20to:*\x20%0',(_0x269fe5=0x1,_0x27bbe6=_0x44d400,o(_0x19279e,'ELEMENT_HEADING',[_0x269fe5,_0x27bbe6])))};const _0x9472da=this['_headingOptions']['find'](_0x8ce641=>_0x8ce641['model']===_0x49755a)['title'];return{'type':'format','content':o(_0x19279e,'*Change\x20to:*\x20%0',_0x3127c9(0x1,_0x9472da))};}var _0x269fe5,_0x27bbe6;});}['_getHeadingLevel'](_0x1c2611){const _0xc59e68=_0x1c2611['match'](/^heading(\d+)/);if(_0xc59e68)return _0xc59e68[0x1];const _0x22a6cd=this['_headingOptions']?.['find'](_0x4784f0=>_0x4784f0['model']==_0x1c2611);if(_0x22a6cd&&_0x22a6cd['view']){const _0x493f8e=_0x22a6cd['view'],_0x248c33=(_0x493f8e['name']??_0x493f8e)['match'](/^h(\d+)/);if(_0x248c33)return _0x248c33[0x1];}return null;}}class et extends _0x48688f{['afterInit'](){const _0xc1f702=this['editor'];if(!_0xc1f702['plugins']['has']('HighlightEditing'))return;const _0x2adcd4=_0xc1f702['plugins']['get']('TrackChangesEditing'),_0x55c14d=_0xc1f702['locale'];_0x2adcd4['enableDefaultAttributesIntegration']('highlight'),_0x2adcd4['registerInlineAttribute']('highlight'),_0x2adcd4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x55c14d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2955ea=this['editor'],_0x4d13de=_0x2955ea['locale'];_0x2955ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2593c3=>{if('formatInline'!=_0x2593c3['type'])return;const {data:_0x4f31f5}=_0x2593c3;if(_0x4f31f5&&'highlight'==_0x4f31f5['commandName']){const _0x136028=_0x4d13de['t'],_0x41fc44=_0x4f31f5['commandParams'][0x0]['value'];if(_0x41fc44){const _0x11de93=_0x2955ea['config']['get']('highlight.options')['find'](_0x24557c=>_0x24557c['model']==_0x41fc44),_0x3c73e8=_0x136028(_0x11de93['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d13de,'*Set\x20highlight:*\x20%0',_0x3c73e8),'color':{'value':_0x11de93['color'],'title':_0x11de93['title']}};}return{'type':'format','content':o(_0x4d13de,'*Remove\x20highlight*',o(_0x4d13de,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x48688f{['afterInit'](){const _0x36e344=this['editor'];if(!_0x36e344['plugins']['has']('HorizontalLineEditing'))return;_0x36e344['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3ab0a8=_0x36e344['plugins']['get']('TrackChangesEditing'),_0x4e4876=_0x36e344['locale'];_0x3ab0a8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5ea099=>o(_0x4e4876,'ELEMENT_HORIZONTAL_LINE',_0x5ea099)),_0x36e344['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x293f02,{writer:_0x882dcd,options:_0x317ef2})=>{if(!_0x317ef2['showSuggestionHighlights'])return null;const _0x4381b4=_0x882dcd['createContainerElement']('div'),_0x256029=_0x882dcd['createEmptyElement']('hr');return _0x882dcd['addClass']('ck-horizontal-line',_0x4381b4),_0x882dcd['insert'](_0x882dcd['createPositionAt'](_0x4381b4,0x0),_0x256029),_0x4381b4;},'converterPriority':'high'});}}class st extends _0x48688f{['afterInit'](){const _0x4b6ce7=this['editor'];if(!_0x4b6ce7['plugins']['has']('HtmlEmbed'))return;const _0xc87f9d=_0x4b6ce7['plugins']['get']('TrackChangesEditing'),_0x2f0664=_0x4b6ce7['locale'];_0xc87f9d['descriptionFactory']['registerElementLabel']('rawHtml',_0x283d89=>o(_0x2f0664,'ELEMENT_HTML_EMBED',_0x283d89)),_0xc87f9d['enableDefaultAttributesIntegration']('htmlEmbed'),_0xc87f9d['registerBlockAttribute']('value'),_0xc87f9d['descriptionFactory']['registerDescriptionCallback'](_0x4be4ee=>{if('attribute'!=_0x4be4ee['type'])return;const {data:_0x444a55}=_0x4be4ee;if(_0x444a55&&'value'==_0x444a55['key']&&_0x4be4ee['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4ae72f=o(_0x2f0664,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2f0664,'*Change\x20%0\x20content*',_0x4ae72f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe88e44=this['editor'],_0x366797=_0xe88e44['locale'];_0xe88e44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb5e62f=>{if('formatBlock'!=_0xb5e62f['type'])return;const {data:_0x2922e5}=_0xb5e62f;if(_0x2922e5&&'htmlEmbed'==_0x2922e5['commandName']){const _0x71621e=o(_0x366797,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x366797,'*Change\x20%0\x20content*',_0x71621e)};}});}}class nt extends _0x48688f{['afterInit'](){const _0x38e223=this['editor'];if(!_0x38e223['plugins']['has']('ImageEditing'))return;const _0x1b3a6b=_0x38e223['plugins']['get']('TrackChangesEditing'),_0x315516=_0x38e223['plugins']['get']('ImageUtils'),_0x263d34=_0x38e223['locale'];_0x1b3a6b['enableCommand']('insertImage'),_0x1b3a6b['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a3e63=>o(_0x263d34,'ELEMENT_IMAGE',_0x4a3e63)),_0x1b3a6b['descriptionFactory']['registerElementLabel']('imageInline',_0x143965=>o(_0x263d34,'ELEMENT_INLINE_IMAGE',_0x143965)),_0x1b3a6b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x263d34,'ELEMENT_CAPTION')),_0x38e223['plugins']['has']('ImageUploadEditing')&&_0x1b3a6b['enableCommand']('uploadImage'),_0x38e223['plugins']['has']('ImageBlockEditing')&&_0x38e223['plugins']['has']('ImageInlineEditing')&&(_0x1b3a6b['enableCommand']('imageTypeInline',(_0x9c5a72,_0x2fbd17)=>{const _0x274e01=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']);_0x38e223['model']['change'](()=>{_0x1b3a6b['markBlockFormat'](_0x274e01,{'commandName':'imageTypeInline','commandParams':[_0x2fbd17]},[],'convertBlockImageToInline');});}),_0x1b3a6b['enableCommand']('imageTypeBlock',(_0x55eb4a,_0x28e6dc)=>{_0x38e223['model']['change'](_0x3935ed=>{let _0x1df0e6=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x3b1db7=_0x3935ed['createRangeOn'](_0x1df0e6);const _0x396146=_0x1473f7['fromPosition'](_0x3b1db7['start'],'toPrevious'),_0x2e3146=_0x1473f7['fromPosition'](_0x3b1db7['end'],'toNext');_0x1b3a6b['forceDefaultExecution'](()=>_0x55eb4a(_0x28e6dc)),_0x1df0e6=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x3b1db7=_0x3935ed['createRangeOn'](_0x1df0e6);const _0x2e7250=_0x3935ed['createRange'](_0x396146,_0x2e3146);_0x396146['detach'](),_0x2e3146['detach'](),_0x1b3a6b['markBlockFormat'](_0x1df0e6,{'commandName':'imageTypeInline','commandParams':[_0x28e6dc]},[],'convertInlineImageToBlock'),_0x2e7250['start']['isBefore'](_0x3b1db7['start'])&&_0x1b3a6b['markInsertion'](_0x3935ed['createRange'](_0x2e7250['start'],_0x3b1db7['start']),'convertInlineImageToBlock'),_0x3b1db7['end']['isBefore'](_0x2e7250['end'])&&_0x1b3a6b['markInsertion'](_0x3935ed['createRange'](_0x3b1db7['end'],_0x2e7250['end']),'convertInlineImageToBlock');});}),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b3a6b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3ba0ee])=>{const _0x2195c2=_0x1b3a6b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x27c201=_0x3ba0ee['start'],_0x45b7a2=_0x3ba0ee['end'];const _0x1746c0=_0x38e223['model']['schema']['getNearestSelectionRange'](_0x27c201,'backward'),_0x58019d=_0x38e223['model']['schema']['getNearestSelectionRange'](_0x45b7a2,'forward');_0x1746c0['isCollapsed']&&(_0x27c201=_0x1746c0['start']),_0x58019d['isCollapsed']&&(_0x45b7a2=_0x58019d['end']),_0x2195c2([_0x38e223['model']['createRange'](_0x27c201,_0x45b7a2)]);}),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1f2582),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1f2582)),_0x38e223['plugins']['has']('ImageCaptionEditing')&&(_0x1b3a6b['enableCommand']('toggleImageCaption',(_0x289783,_0x2d57c5)=>{const _0x4979ca=_0x38e223['plugins']['get']('ImageCaptionUtils');let _0x20f382=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x56765d=_0x4979ca['getCaptionFromImageModelElement'](_0x20f382);_0x38e223['model']['change'](()=>{if(_0x56765d)return void _0x1b3a6b['markDeletion'](_0x38e223['model']['createRangeOn'](_0x56765d));const _0x53168c=_0x315516['isBlockImage'](_0x20f382);_0x289783(_0x2d57c5),_0x20f382=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x56765d=_0x4979ca['getCaptionFromImageModelElement'](_0x20f382),_0x1b3a6b['markInsertion'](_0x38e223['model']['createRangeOn'](_0x56765d),_0x53168c?null:'imageCaption');});}),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1f2582));const _0x1876c1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x452f22(_0x4e0a50,_0x2d5e5f){const _0x535646=_0x1876c1['findIndex'](({type:_0x32752f,subType:_0x5c850e})=>_0x4e0a50['type']==_0x32752f&&_0x4e0a50['subType']==_0x5c850e),_0x39cf12=_0x1876c1['findIndex'](({type:_0xa5fa9d,subType:_0x346d4d})=>_0x2d5e5f['type']==_0xa5fa9d&&_0x2d5e5f['subType']==_0x346d4d);if(_0x535646<0x0||_0x39cf12<0x0)return!0x1;const _0xafd4e9=_0x4e0a50['getFirstRange'](),_0x18ef04=_0x2d5e5f['getFirstRange']();if((0x0==_0x535646||0x1==_0x535646)&&0x2==_0x39cf12&&_0xafd4e9['isIntersecting'](_0x18ef04))return!0x0;if(0x2==_0x535646&&0x3==_0x39cf12){const _0xbd6514=_0x1b3a6b['_findSuggestions'](_0xafd4e9,'insertion')['filter'](({suggestion:_0x244249,meta:_0x4e57db})=>_0x4e57db['isOwn']&&'convertInlineImageToBlock'==_0x244249['subType']);if(_0xbd6514['length']>0x1&&_0x18ef04['end']['isEqual'](_0xafd4e9['start']))return!0x0;if(0x1==_0xbd6514['length']&&(_0xafd4e9['start']['isEqual'](_0x18ef04['end'])||_0xafd4e9['end']['isEqual'](_0x18ef04['start'])))return!0x0;}if(0x3==_0x535646&&0x3==_0x39cf12&&_0xafd4e9['start']['isBefore'](_0x18ef04['start'])){const _0x5ae9c1=_0xafd4e9['end']['nodeAfter'],_0x59b631=_0x18ef04['start']['nodeBefore'];return _0x315516['isBlockImage'](_0x5ae9c1)&&_0x5ae9c1===_0x59b631;}return!0x1;}function _0x1f2582(_0x360c99,_0x2aaa66){return _0x452f22(_0x360c99,_0x2aaa66)?[_0x360c99,_0x2aaa66]:_0x452f22(_0x2aaa66,_0x360c99)?[_0x2aaa66,_0x360c99]:null;}_0x38e223['plugins']['has']('ImageResize')&&(_0x1b3a6b['enableDefaultAttributesIntegration']('resizeImage'),_0x1b3a6b['registerBlockAttribute']('resizedWidth'),_0x1b3a6b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x263d34,'FORMAT_IMAGE_SIZE'))),_0x38e223['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1b3a6b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1b3a6b['registerBlockAttribute']('alt')),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x5cd58a=>{if(!!_0x1876c1['find'](({type:_0x2c0845,subType:_0x4e63c0})=>_0x5cd58a['type']==_0x2c0845&&_0x5cd58a['subType']==_0x4e63c0))return _0x5cd58a['previous']?{}:void 0x0;}),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x231983=>{if('insertion'==_0x231983['type']||'deletion'==_0x231983['type']){const _0x31cc4f=_0x231983['getContainedElement']();if(_0x31cc4f&&_0x31cc4f['is']('element','caption'))return{'type':'insertion'==_0x231983['type']?'addObject':'removeObject','element':_0x31cc4f,'quantity':0x1};}}),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x2d15c4=>'formatBlock'==_0x2d15c4['type']&&'convertInlineImageToBlock'==_0x2d15c4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2d15c4['type']&&'convertBlockImageToInline'==_0x2d15c4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x27e791=>{if('attribute'!=_0x27e791['type'])return;const {data:_0x43afc4}=_0x27e791;if(!_0x43afc4||'alt'!=_0x43afc4['key'])return;const _0x5d7fd8=_0x43afc4['newValue'];return _0x5d7fd8?{'type':'format','content':o(_0x263d34,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d7fd8+'\x22')}:{'type':'format','content':o(_0x263d34,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22ee1d=this['editor'],_0x131e99=_0x22ee1d['locale'];_0x22ee1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492a39=>{if('formatBlock'!=_0x492a39['type']&&'formatInline'!=_0x492a39['type'])return;const {data:_0x3431bf}=_0x492a39;if(_0x3431bf){if('imageTextAlternative'==_0x3431bf['commandName']){const _0x8d5145=_0x3431bf['commandParams'][0x0]['newValue'];return _0x8d5145?{'type':'format','content':o(_0x131e99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x8d5145+'\x22')}:{'type':'format','content':o(_0x131e99,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3431bf['commandName']){const _0x5012bc=_0x3431bf['commandParams'][0x0]['width'];return _0x5012bc?{'type':'format','content':o(_0x131e99,'*Set\x20image\x20width:*\x20%0',_0x5012bc)}:{'type':'format','content':o(_0x131e99,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x38876f=this['editor']['locale'],_0xbe4dc6=this['editor']['plugins']['get']('TrackChangesEditing');_0xbe4dc6['enableDefaultAttributesIntegration']('replaceImageSource'),_0xbe4dc6['registerBlockAttribute']('src'),_0xbe4dc6['descriptionFactory']['registerDescriptionCallback'](_0x68ab4a=>{if('attribute'!=_0x68ab4a['type'])return;const {data:_0xcf3939}=_0x68ab4a;return _0xcf3939&&'src'==_0xcf3939['key']?_0xcf3939['newValue']&&_0xcf3939['oldValue']?{'type':'format','content':o(_0x38876f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f19e0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f19e0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f19e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f19e0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f19e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24452a=this['editor'],_0x385f53=_0x24452a['locale'];_0x24452a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a80b=>{if('formatBlock'!=_0x26a80b['type']&&'formatInline'!=_0x26a80b['type'])return;const {data:_0x1cd667}=_0x26a80b;if(!_0x1cd667||'replaceImageSource'!=_0x1cd667['commandName'])return;return{'type':'format','content':o(_0x385f53,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x48688f{['afterInit'](){const _0x139261=this['editor'];if(!_0x139261['plugins']['has']('ImageStyleEditing'))return;const _0x2bbe39=_0x139261['plugins']['get']('TrackChangesEditing'),_0x54210d=_0x139261['plugins']['get']('ImageUtils'),_0x269215={};_0x2bbe39['enableCommand']('imageStyle',(_0x3f5c07,_0x39e208)=>{const _0x2891c0=_0x139261['plugins']['get']('Users')['me'],_0x22ac25=_0x139261['commands']['get']('imageStyle');let _0x3475d1=_0x54210d['getClosestSelectedImageElement'](_0x139261['model']['document']['selection']),_0x19113d=_0x139261['model']['createRangeOn'](_0x3475d1),_0x242497=_0x22ac25['value'];if(_0x242497==_0x39e208['value'])return;const _0x501727={'commandName':'imageStyle','commandParams':[_0x39e208],'formatGroupId':_0x2120b6()};_0x139261['model']['change'](()=>{if(_0x2bbe39['getSuggestions']()['filter'](_0x24ded1=>_0x24ded1['isInContent']&&_0x2891c0==_0x24ded1['author']&&('formatBlock'==_0x24ded1['type']||'formatInline'==_0x24ded1['type'])&&('imageStylePreApply'==_0x24ded1['subType']||'imageStylePostApply'==_0x24ded1['subType'])&&_0x24ded1['getFirstRange']()['isEqual'](_0x19113d))['forEach'](_0x3e1e87=>_0x2bbe39['discardSuggestion'](_0x3e1e87['head'])),_0x3475d1=_0x54210d['getClosestSelectedImageElement'](_0x139261['model']['document']['selection']),_0x19113d=_0x139261['model']['createRangeOn'](_0x3475d1),_0x22ac25['refresh'](),_0x139261['commands']['get']('imageTypeInline')['refresh'](),_0x139261['commands']['get']('imageTypeBlock')['refresh'](),_0x242497=_0x22ac25['value'],_0x242497!=_0x39e208['value'])return _0x54210d['isInlineImage'](_0x3475d1)&&_0x22ac25['shouldConvertImageType'](_0x39e208['value'],_0x3475d1)?(_0x3f5c07({..._0x39e208,'setImageSizes':!0x1}),_0x3475d1=_0x54210d['getClosestSelectedImageElement'](_0x139261['model']['document']['selection']),void _0x2bbe39['markBlockFormat'](_0x3475d1,{..._0x501727,'commandReversedParams':[{'value':_0x242497||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x54210d['isBlockImage'](_0x3475d1)?_0x2bbe39['markBlockFormat'](_0x3475d1,_0x501727,[],'imageStylePostApply'):_0x2bbe39['markInlineFormat'](_0x19113d,_0x501727,'imageStylePostApply'));});});for(const _0x42f79e of _0x139261['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x269215[_0x42f79e['name']]=_0x42f79e['title']['toLowerCase']();_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x210094])=>{_0x54210d['setImageNaturalSizeAttributes'](_0x210094['getContainedElement']());}),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1c9593,_0x5d221a)=>{_0x2bbe39['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c9593,{'commandName':_0x5d221a['commandName'],'commandParams':_0x5d221a['commandReversedParams']});}),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x292f03,_0x1eaeef){if(_0x9d3805(_0x292f03,_0x1eaeef))return[_0x292f03,_0x1eaeef];if(_0x9d3805(_0x1eaeef,_0x292f03))return[_0x1eaeef,_0x292f03];return null;});const _0x1dbbb7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x9d3805(_0x3e1630,_0x4986b1){const _0x485598=_0x1dbbb7['findIndex'](({type:_0x3a9aaa,subType:_0x3ca983})=>_0x3e1630['type']==_0x3a9aaa&&_0x3e1630['subType']==_0x3ca983),_0x2170df=_0x1dbbb7['findIndex'](({type:_0x202766,subType:_0x2b43ed})=>_0x4986b1['type']==_0x202766&&_0x4986b1['subType']==_0x2b43ed);if(_0x485598<0x0||_0x2170df<0x0)return!0x1;const _0x2a93f6=_0x3e1630['getFirstRange'](),_0x24efac=_0x4986b1['getFirstRange']();if((0x0==_0x485598||0x1==_0x485598)&&0x2==_0x2170df&&_0x2a93f6['isIntersecting'](_0x24efac))return!0x0;if(0x2==_0x485598&&0x3==_0x2170df){const _0xb47d8a=_0x2bbe39['_findSuggestions'](_0x2a93f6,'insertion')['filter'](({suggestion:_0x332595,meta:_0x3eff27})=>_0x3eff27['isOwn']&&'convertInlineImageToBlock'==_0x332595['subType']);if(_0xb47d8a['length']>0x1&&_0x24efac['end']['isEqual'](_0x2a93f6['start']))return!0x0;if(0x1==_0xb47d8a['length']&&(_0x2a93f6['start']['isEqual'](_0x24efac['end'])||_0x2a93f6['end']['isEqual'](_0x24efac['start'])))return!0x0;}if(0x3==_0x485598&&0x3==_0x2170df&&_0x2a93f6['start']['isBefore'](_0x24efac['start'])){const _0x1bd917=_0x2a93f6['end']['nodeAfter'],_0x4f114b=_0x24efac['start']['nodeBefore'];return _0x54210d['isBlockImage'](_0x1bd917)&&_0x1bd917===_0x4f114b;}return!0x1;}_0x139261['model']['document']['registerPostFixer'](()=>{let _0x44631c=!0x1;const _0x3004bb=Array['from'](_0x139261['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f7514,data:_0xd60985}of _0x3004bb){const {group:_0x30907d,type:_0x5c356e,subType:_0x96364b,id:_0x52e9dc}=_0x2bbe39['_splitMarkerName'](_0x1f7514);if('suggestion'==_0x30907d&&_0x2bbe39['hasSuggestion'](_0x52e9dc)){if('formatBlock'==_0x5c356e&&('imageStylePreApply'==_0x96364b||'imageStylePostApply'==_0x96364b)){const _0x1d109b=_0x2bbe39['getSuggestion'](_0x52e9dc);if(_0xd60985['newRange']){const _0x2b4caf=_0x1d109b['getFirstRange']()['getContainedElement']();if(_0x54210d['isBlockImage'](_0x2b4caf))continue;_0x2bbe39['discardSuggestion'](_0x1d109b),_0x44631c=!0x0;}}if('insertion'==_0x5c356e&&'imageCaption'==_0x96364b&&!_0xd60985['newRange']){const _0x15d9b6=_0x2bbe39['getSuggestion'](_0x52e9dc);_0x15d9b6['next']&&_0x15d9b6['next']['isInContent']&&(_0x2bbe39['discardSuggestion'](_0x15d9b6['next']),_0x44631c=!0x0);}}}return _0x44631c;}),this['_registerLegacyDescription'](_0x269215);}['_registerLegacyDescription'](_0x3d3517){const _0x37d35d=this['editor'],_0x244914=_0x37d35d['locale'];_0x37d35d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a382=>{if('formatBlock'!=_0x32a382['type']&&'formatInline'!=_0x32a382['type'])return;const {data:_0x572019}=_0x32a382;if(!_0x572019||'imageStyle'!=_0x572019['commandName'])return;const _0x3377ab=_0x572019['commandParams'][0x0]['value'];return _0x2e9c17('side'===_0x3377ab?o(_0x244914,'FORMAT_SIDE_IMAGE'):_0x3d3517[_0x3377ab]||_0x3377ab);function _0x2e9c17(_0x9187aa){return{'type':'format','content':o(_0x244914,'*Format:*\x20%0',_0x9187aa)};}});}}class at extends _0x48688f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a23c7){super(_0x4a23c7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5e884f=this['editor'],_0x21ada9=_0x5e884f['commands']['get']('importWord'),_0x4b3afd=_0x5e884f['commands']['get']('trackChanges');_0x21ada9&&(_0x21ada9['on']('execute',(_0xa84b0b,[,_0x252bb3])=>{this['_trackChangesValueDuringImport']=_0x4b3afd['value'],_0x252bb3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x21ada9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x21ada9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4b3afd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5e884f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5af11e,_0x1d0a1e){const {suggestions:_0x3bdbba}=_0x1d0a1e,_0x22eee6=this['editor']['commands']['get']('trackChanges'),_0x431a42=_0x22eee6['value'];this['_trackChangesValueDuringImport']!==_0x431a42&&(_0x22eee6['execute'](),this['_trackChangesExecuted']=!0x0),_0x3bdbba&&_0x3bdbba['forEach'](({id:_0x1b8b20,type:_0x145e18,author:_0x3ce4f2,created_at:_0xbe621c})=>{const _0x417301={'id':_0x1b8b20,'type':_0x145e18,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3ce4f2,'createdAt':_0xbe621c?new Date(_0xbe621c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x417301);});}}class ct extends _0x48688f{['afterInit'](){const _0x3c0637=this['editor'],_0x2d8da7=_0x3c0637['plugins']['get']('TrackChangesEditing');if(_0x3c0637['plugins']['has']('IndentEditing')&&(_0x2d8da7['enableCommand']('indent'),_0x2d8da7['enableCommand']('outdent')),_0x3c0637['plugins']['has']('IndentBlock')){for(const _0x13e6a4 of['indentBlock','outdentBlock'])_0x2d8da7['enableDefaultAttributesIntegration'](_0x13e6a4);}const _0x540636=_0x3c0637['locale'];_0x2d8da7['registerBlockAttribute']('blockIndent'),_0x2d8da7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x540636,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a198c=this['editor'],_0x518f61=_0x2a198c['locale'],_0x182a8b=_0x2a198c['plugins']['get']('TrackChangesEditing');_0x182a8b['descriptionFactory']['registerDescriptionCallback'](_0x191b08=>{if('formatBlock'!=_0x191b08['type'])return;const {data:_0x4ad976}=_0x191b08;if(!_0x4ad976)return;if('indentBlock'!=_0x4ad976['commandName']&&'outdentBlock'!=_0x4ad976['commandName'])return;const _0x38a8eb=_0x191b08['getItems']()[0x0],_0x30b584=_0x182a8b['descriptionFactory']['getItemLabel'](_0x38a8eb);return'indentBlock'==_0x4ad976['commandName']?{'type':'format','content':o(_0x518f61,'*Indent:*\x20%0',_0x30b584)}:'outdentBlock'==_0x4ad976['commandName']?{'type':'format','content':o(_0x518f61,'*Outdent:*\x20%0',_0x30b584)}:void 0x0;});}}class ut extends _0x48688f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x48688f{['afterInit'](){const _0x2ae116=this['editor'];if(!_0x2ae116['plugins']['has']('LinkEditing'))return;const _0x69f1ea=_0x2ae116['plugins']['get']('TrackChangesEditing'),_0x2a37d6=_0x2ae116['commands']['get']('link');_0x69f1ea['enableDefaultAttributesIntegration']('link'),_0x69f1ea['enableDefaultAttributesIntegration']('unlink'),_0x69f1ea['registerInlineAttribute']('linkHref');for(const _0x5437df of _0x2a37d6['manualDecorators'])_0x69f1ea['registerInlineAttribute'](_0x5437df['id']),_0x69f1ea['descriptionFactory']['registerAttributeLabel'](_0x5437df['id'],'link\x20('+_0x5437df['label']['toLowerCase']()+')');_0x69f1ea['descriptionFactory']['registerDescriptionCallback'](_0x2001df=>{if('attribute'!=_0x2001df['type'])return;const {data:_0x37606b}=_0x2001df;if(!_0x37606b||'linkHref'!=_0x37606b['key'])return;const _0xcf444c=_0x37606b['newValue'],_0x26e6f0=_0x2ae116['locale'];return{'type':'format','content':null==_0xcf444c?o(_0x26e6f0,'*Remove\x20link*'):o(_0x26e6f0,'*Set\x20link:*\x20%0','\x22'+_0xcf444c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b779b=this['editor'],_0x108bca=_0x2b779b['locale'];_0x2b779b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27bee7=>{if('formatInline'!=_0x27bee7['type'])return;const {data:_0x5793c9}=_0x27bee7;if(_0x5793c9){if('link'==_0x5793c9['commandName']){const _0x267a3d=_0x5793c9['commandParams'][0x0];return{'type':'format','content':o(_0x108bca,'*Set\x20link:*\x20%0','\x22'+_0x267a3d+'\x22')};}return'unlink'==_0x5793c9['commandName']?{'type':'format','content':o(_0x108bca,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x48688f{['afterInit'](){const _0x58a47b=this['editor'],_0x78bb99=_0x58a47b['locale'];if(!_0x58a47b['plugins']['has']('LegacyListEditing'))return;const _0x41a626=_0x58a47b['plugins']['get']('TrackChangesEditing'),_0x57755d=_0x58a47b['plugins']['has']('LegacyTodoListEditing');function _0x12caf5(_0x5451ea){return()=>{const _0x42b399=_0x58a47b['model']['document']['selection'],_0x364b8b=_0x58a47b['commands']['get'](_0x5451ea);if(_0x364b8b['value'])return void _0x58a47b['execute']('paragraph',{});const _0x2e6da1=_0x5451ea['slice'](0x0,-0x4),_0x1a7235=function(_0xd8d4a9,_0x516311,_0xab8dc5){let _0x308b41=Array['from'](_0xd8d4a9)['filter'](_0x213636=>function(_0x169d7f,_0x1c3356){return _0x1c3356['checkChild'](_0x169d7f['parent'],'listItem')&&!_0x1c3356['isObject'](_0x169d7f);}(_0x213636,_0xab8dc5));_0x308b41=_0x308b41['filter'](_0x4f7676=>!_0x4f7676['is']('element','listItem')||_0x4f7676['getAttribute']('listType')!=_0x516311);const _0x12a051=new Set();for(const _0x47b466 of _0x308b41)_0x47b466['is']('element','listItem')?_0x12a051['add'](fe(_0x47b466)):_0x12a051['add'](_0x47b466);return Array['from'](_0x12a051);}(_0x42b399['getSelectedBlocks'](),_0x2e6da1,_0x58a47b['model']['schema']);_0x58a47b['model']['change'](()=>{for(const _0x503b2e of _0x1a7235)_0x41a626['markBlockFormat'](_0x503b2e,{'commandName':_0x5451ea,'commandParams':[{'forceValue':!_0x364b8b['value']}],'formatGroupId':'blockName'},ue(_0x503b2e));});};}function _0x58df47(_0x43bd9f){return()=>{const _0x2a7ac9=function(_0x865f8e){let _0x159e7f=Array['from'](_0x865f8e);const _0x10ed19=_0x159e7f['findIndex'](_0x106a36=>'listItem'!=_0x106a36['name']);return _0x10ed19>-0x1&&(_0x159e7f=_0x159e7f['slice'](0x0,_0x10ed19)),_0x159e7f;}(_0x58a47b['model']['document']['selection']['getSelectedBlocks']()),_0x29bb50=_0x58a47b['model']['createRange'](_0x58a47b['model']['createPositionAt'](_0x2a7ac9[0x0],'before'),_0x58a47b['model']['createPositionAt'](_0x2a7ac9[_0x2a7ac9['length']-0x1],'end'));_0x58a47b['model']['change'](()=>{_0x41a626['markBlockFormat'](_0x29bb50,{'commandName':_0x43bd9f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x254b30){const _0xfd6e3d=new Set();for(const _0x52f83d of _0x254b30){let _0x1832cf=_0x52f83d['nextSibling'];for(;_0x1832cf&&_0x1832cf['getAttribute']('listIndent')>_0x52f83d['getAttribute']('listIndent');)_0xfd6e3d['add'](_0x1832cf),_0x1832cf=_0x1832cf['nextSibling'];}return Array['from'](_0xfd6e3d);}(_0x2a7ac9));});};}_0x41a626['enableCommand']('numberedList',_0x12caf5('numberedList')),_0x41a626['enableCommand']('bulletedList',_0x12caf5('bulletedList')),_0x57755d&&_0x41a626['enableCommand']('todoList',_0x12caf5('todoList')),_0x41a626['enableCommand']('indentList',_0x58df47('indentList')),_0x41a626['enableCommand']('outdentList',_0x58df47('outdentList')),_0x57755d&&_0x41a626['enableCommand']('checkTodoList',()=>{const _0x5a6bc3=_0x58a47b['commands']['get']('checkTodoList'),_0x19a3c2=Array['from'](_0x5a6bc3['_selectedElements']);_0x19a3c2['filter'](_0x16b527=>_0x16b527['getAttribute']('todoListChecked')!=_0x5a6bc3['value']),_0x58a47b['model']['change'](()=>{for(const _0x8dda3d of _0x19a3c2)_0x41a626['markBlockFormat'](_0x8dda3d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5a6bc3['value']}]});});}),_0x41a626['descriptionFactory']['registerElementLabel']('listItem',_0x44934f=>o(_0x78bb99,'ELEMENT_LIST_ITEM',_0x44934f)),_0x41a626['descriptionFactory']['registerDescriptionCallback'](_0x19fac2=>{if('formatBlock'!=_0x19fac2['type']&&'formatInline'!=_0x19fac2['type'])return;const {data:_0x1b2a8c}=_0x19fac2;if(_0x1b2a8c){if('numberedList'==_0x1b2a8c['commandName']||'bulletedList'==_0x1b2a8c['commandName']||'todoList'==_0x1b2a8c['commandName'])switch(_0x1b2a8c['commandName']['replace']('List','')){case'bulleted':return _0x4ef990(o(_0x78bb99,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ef990(o(_0x78bb99,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ef990(o(_0x78bb99,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1b2a8c['commandName'])return{'type':'format','content':o(_0x78bb99,'*Indent:*\x20%0',o(_0x78bb99,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1b2a8c['commandName'])return{'type':'format','content':o(_0x78bb99,'*Outdent:*\x20%0',o(_0x78bb99,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1b2a8c['commandName'])return _0x1b2a8c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x78bb99,'*Check\x20item*')}:{'type':'format','content':o(_0x78bb99,'*Uncheck\x20item*')};}function _0x4ef990(_0x54b58b){return{'type':'format','content':o(_0x78bb99,'*Change\x20to:*\x20%0',_0x54b58b)};}});}}function fe(_0x4ae6f1){const _0x528334=_0x4ae6f1['getAttribute']('listIndent');if(0x0==_0x528334)return _0x4ae6f1;let _0x253bce=_0x4ae6f1;for(;_0x4ae6f1['previousSibling']&&_0x4ae6f1['previousSibling']['is']('element','listItem');){const _0x4d5100=_0x4ae6f1['previousSibling']['getAttribute']('listIndent');if(_0x4d5100==_0x528334)_0x253bce=_0x4ae6f1['previousSibling'];else{if(_0x4d5100<_0x528334)break;}_0x4ae6f1=_0x4ae6f1['previousSibling'];}return _0x253bce;}function ue(_0x5dea2b){const _0x3fa65b=[];if(_0x5dea2b['is']('element','listItem')&&_0x5dea2b['getAttribute']('listIndent')>0x0){let _0x1d15bf=_0x5dea2b['nextSibling'];for(;_0x1d15bf&&'listItem'==_0x1d15bf['name']&&_0x1d15bf['getAttribute']('listIndent')==_0x5dea2b['getAttribute']('listIndent');)_0x3fa65b['push'](_0x1d15bf),_0x1d15bf=_0x1d15bf['nextSibling'];}return _0x3fa65b;}class W extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1e9b6e=this['editor']['config']['get']('list.properties'),_0xf1d3a6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e9b6e['styles']&&_0xf1d3a6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1e9b6e['reversed']&&_0xf1d3a6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1e9b6e['startIndex']&&_0xf1d3a6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xf1d3a6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x546e5f,_0x57e7c0={}){const _0x37cf45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c3528=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x37cf45['markMultiRangeBlockFormat'](_0x4c3528,{'commandName':'listStyle','commandParams':[{'type':_0x57e7c0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4b64a1,_0x22cc84={}){const _0xd89488=this['editor']['plugins']['get']('TrackChangesEditing'),_0x177086=this['_getSuggestionBlocks'](_0x2fa743=>_0x2fa743['is']('element','listItem')&&'numbered'===_0x2fa743['getAttribute']('listType'));if(_0x177086['length']<0x1)return;const _0x5d98a2=_0x177086['map'](_0x40b4a4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40b4a4,'before'),this['editor']['model']['createPositionAt'](_0x40b4a4,0x0)));this['editor']['model']['change'](()=>{_0xd89488['markMultiRangeBlockFormat'](_0x5d98a2,{'commandName':'listReversed','commandParams':[{'reversed':_0x22cc84['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x27e03f,_0x401d74={}){const _0x1b41d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a3b69=this['_getSuggestionBlocks'](_0x42ac17=>_0x42ac17['is']('element','listItem')&&'numbered'===_0x42ac17['getAttribute']('listType'));if(_0x2a3b69['length']<0x1)return;const _0x5e1296=_0x2a3b69['map'](_0x45ecbe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x45ecbe,'before'),this['editor']['model']['createPositionAt'](_0x45ecbe,0x0)));this['editor']['model']['change'](()=>{_0x1b41d8['markMultiRangeBlockFormat'](_0x5e1296,{'commandName':'listStart','commandParams':[{'startIndex':_0x401d74['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x7e6d4a){if('formatBlock'!=_0x7e6d4a['type']&&'formatInline'!=_0x7e6d4a['type'])return;const _0x4a3a32=this['editor']['locale'],{data:_0xea1cd2}=_0x7e6d4a;if(!_0xea1cd2)return;let _0x18e110,_0x45b0a5;switch(_0xea1cd2['commandName']){case'listStyle':_0x18e110='*Change\x20to:*\x20%0',_0x45b0a5={'type':'format','content':o(_0x4a3a32,_0x18e110,o(_0x4a3a32,this['_getTranslationKeyForListStyle'](_0xea1cd2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18e110=_0xea1cd2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45b0a5={'type':'format','content':o(_0x4a3a32,_0x18e110)};break;case'listStart':_0x18e110='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45b0a5={'type':'format','content':o(_0x4a3a32,_0x18e110,_0xea1cd2['commandParams'][0x0]['startIndex'])};}return _0x45b0a5;}['_getSuggestionBlocksForListStyle'](){const _0x33094c=this['editor']['plugins']['get']('LegacyListUtils');let _0x431a11=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x431a11[0x0]?.['is']('element','listItem')&&_0x431a11['unshift'](..._0x33094c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x431a11[_0x431a11['length']-0x1]?.['is']('element','listItem')&&_0x431a11['push'](..._0x33094c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x431a11=[...new Set(_0x431a11)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x431a11=_0x431a11['filter'](_0x5eface=>_0x5eface['is']('element','listItem'))),_0x431a11;}['_getSuggestionBlocks'](_0x4e0285){const _0x4fceb9=this['editor']['plugins']['get']('LegacyListUtils');let _0x1cc6b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4e0285)['map'](_0xb1bf6d=>{const _0x1e7587=this['editor']['model']['createPositionAt'](_0xb1bf6d,0x0);return[..._0x4fceb9['getSiblingNodes'](_0x1e7587,'backward'),..._0x4fceb9['getSiblingNodes'](_0x1e7587,'forward')];})['flat']();return _0x1cc6b4=[...new Set(_0x1cc6b4)],_0x1cc6b4;}['_getTranslationKeyForListStyle'](_0x581719){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x581719)||'default')['toUpperCase']()+'_LIST_'+_0x581719['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x48688f{['afterInit'](){const _0x2dcdc7=this['editor'];if(!_0x2dcdc7['plugins']['has']('MediaEmbedEditing'))return;const _0x23225d=_0x2dcdc7['plugins']['get']('TrackChangesEditing'),_0x2df11f=_0x2dcdc7['locale'];_0x23225d['enableCommand']('mediaEmbed'),_0x23225d['descriptionFactory']['registerElementLabel']('media',_0x407319=>o(_0x2df11f,'ELEMENT_MEDIA',_0x407319)),_0x2dcdc7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xd29da0,{writer:_0xb30072,options:_0x3c9e29})=>{if(_0x3c9e29['showSuggestionHighlights'])return _0xb30072['createEmptyElement']('div');},'converterPriority':'high'}),_0x2dcdc7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x193154,_0x460812,_0x54fe9c)=>{_0x54fe9c['options']['showSuggestionHighlights']&&_0x193154['stop']();},{'priority':'high'});}}class mt extends _0x48688f{['afterInit'](){const _0x2cd0ce=this['editor'];_0x2cd0ce['plugins']['has']('MentionEditing')&&_0x2cd0ce['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x48688f{['afterInit'](){const _0x37a9e8=this['editor'];if(!_0x37a9e8['commands']['get']('insertMergeField'))return;_0x37a9e8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x28e645=_0x37a9e8['plugins']['get']('TrackChangesEditing'),_0x4a9c96=_0x37a9e8['locale'];_0x28e645['descriptionFactory']['registerElementLabel']('mergeField',_0x452c8e=>o(_0x4a9c96,'ELEMENT_MERGE_FIELD',_0x452c8e)),_0x28e645['descriptionFactory']['registerDescriptionCallback'](_0x295eb9=>{if('insertion'!=_0x295eb9['type']&&'deletion'!=_0x295eb9['type'])return;const _0x310011=_0x295eb9['getContainedElement']();if(null==_0x310011)return;if(!_0x310011['is']('element','mergeField'))return;const _0x403ab9=_0x37a9e8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x310011['getAttribute']('id'));return'insertion'==_0x295eb9['type']?{'type':'insertion','content':o(_0x4a9c96,'*Insert:*\x20%0','\x22'+_0x403ab9+'\x22\x20'+o(_0x4a9c96,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4a9c96,'*Remove:*\x20%0','\x22'+_0x403ab9+'\x22\x20'+o(_0x4a9c96,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x48688f{['afterInit'](){const _0x5abb82=this['editor'],_0x50fe52=_0x5abb82['plugins']['get']('TrackChangesEditing');_0x5abb82['plugins']['has']('MultiLevelList')&&(_0x50fe52['enableDefaultAttributesIntegration']('multiLevelList'),_0x50fe52['registerBlockAttribute']('listMarkerStyle'),_0x50fe52['descriptionFactory']['registerDescriptionCallback'](_0x66d44=>this['handleDescriptions'](_0x66d44)));}['handleDescriptions'](_0x2ba1f5){const _0x5339cd=this['editor']['locale'],{data:_0x3fa58b}=_0x2ba1f5,_0x16ca3c={'type':'format','content':''};if(_0x3fa58b&&'listMarkerStyle'==_0x3fa58b['key']){if(!_0x3fa58b['oldValue'])return{'type':'format','content':o(_0x5339cd,'*Set\x20format:*\x20%0',o(_0x5339cd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa58b['newValue']+')'};if(!_0x3fa58b['newValue']){let _0x4583b3=_0x2ba1f5['head'];for(;_0x4583b3;){if(_0x4583b3['data']&&'listType'==_0x4583b3['data']['key']&&_0x4583b3['data']['newValue'])return _0x16ca3c;_0x4583b3=_0x4583b3['next'];}return{'type':'format','content':o(_0x5339cd,'*Remove\x20format:*\x20%0',o(_0x5339cd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa58b['oldValue']+')'};}}}}class kt extends _0x48688f{['afterInit'](){const _0x6f173d=this['editor'];if(!_0x6f173d['plugins']['has']('PageBreakEditing'))return;_0x6f173d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4113c8=_0x6f173d['plugins']['get']('TrackChangesEditing'),_0x42c4cf=_0x6f173d['locale'];_0x4113c8['descriptionFactory']['registerElementLabel']('pageBreak',_0x20dcff=>o(_0x42c4cf,'ELEMENT_PAGE_BREAK',_0x20dcff));}}class bt extends _0x48688f{['afterInit'](){const _0x5e3d32=this['editor'];if(!_0x5e3d32['plugins']['has']('Paragraph'))return;const _0x4134e1=_0x5e3d32['locale'],_0x13b9e9=_0x5e3d32['plugins']['get']('TrackChangesEditing');_0x13b9e9['descriptionFactory']['registerElementLabel']('paragraph',_0x3d48dc=>o(_0x4134e1,'ELEMENT_PARAGRAPH',_0x3d48dc)),_0x13b9e9['enableDefaultAttributesIntegration']('paragraph'),_0x13b9e9['enableCommand']('insertParagraph'),_0x5e3d32['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5e3d32),{'priority':'highest'}),_0x5e3d32['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4abfea,_0x3cd4a0,_0x21695c)=>{_0x21695c['options']['showSuggestionHighlights']&&nr(_0x5e3d32,{'showActiveMarker':!0x1})(_0x4abfea,_0x3cd4a0,_0x21695c);},{'priority':'highest'});const _0x375362=_0x13b9e9['descriptionFactory'];_0x375362['registerDescriptionCallback'](_0x312b9f=>{if('insertion'!==_0x312b9f['type'])return;const {start:_0xa351,end:_0x5227a3}=_0x312b9f['getFirstRange']();if(!_0xa351['isTouching'](_0x5227a3)||!_0xa351['nodeAfter'])return;const _0x29fc5c=_0x5e3d32['model']['schema'],_0x1c8775=_0xa351['nodeAfter'];return _0x29fc5c['isBlock'](_0x1c8775)&&!_0x29fc5c['isLimit'](_0x1c8775)&&_0x29fc5c['checkChild'](_0x1c8775,'$text')?{'type':'insertion','content':o(_0x4134e1,'*Insert:*\x20%0',_0x375362['getItemLabel'](_0x1c8775,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c4987=this['editor'],_0x158d06=_0x5c4987['locale'];_0x5c4987['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d7f0d=>{if('formatBlock'!=_0x1d7f0d['type'])return;const {data:_0x24a050}=_0x1d7f0d;return _0x24a050&&'paragraph'==_0x24a050['commandName']?{'type':'format','content':o(_0x158d06,'*Change\x20to:*\x20%0',o(_0x158d06,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x7a059c,{showActiveMarker:_0x237f0b=!0x0}={}){return(_0x1c8212,_0x31e2fd,_0x554d77)=>{const _0x4e4b0a=_0x7a059c['plugins']['get']('TrackChangesEditing'),_0x1bd20b=_0x31e2fd['markerRange']['start'],_0x5e3e42=_0x31e2fd['markerRange']['end'],_0x560870=_0x7a059c['model']['schema'];if(!_0x1bd20b['isTouching'](_0x5e3e42)||!_0x1bd20b['nodeAfter'])return;const _0x23cda9=_0x1bd20b['nodeAfter'];if(_0x560870['isBlock'](_0x23cda9)&&!_0x560870['isLimit'](_0x23cda9)&&_0x560870['checkChild'](_0x23cda9,'$text')){if(!_0x554d77['consumable']['consume'](_0x31e2fd['markerRange'],_0x1c8212['name']))return;const {authorId:_0x28fdca}=_0x4e4b0a['_splitMarkerName'](_0x31e2fd['markerName']),_0x106066=_0x554d77['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x28fdca}),_0x5e2e6f=_0x554d77['mapper']['toViewPosition'](_0x5e3e42);_0x237f0b&&_0x4e4b0a['activeMarkers']['includes'](_0x31e2fd['markerName'])&&_0x554d77['writer']['addClass']('ck-suggestion-marker--active',_0x106066),_0x554d77['writer']['insert'](_0x5e2e6f,_0x106066),_0x554d77['mapper']['bindElementToMarker'](_0x106066,_0x31e2fd['markerName']);}};}class wt extends _0x48688f{['afterInit'](){const _0x56e46c=this['editor'];if(!_0x56e46c['plugins']['has']('RemoveFormatEditing'))return;_0x56e46c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5698bb=this['editor'];_0x5698bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d75ba=>{if('formatBlock'!=_0x4d75ba['type']&&'formatInline'!=_0x4d75ba['type'])return;const {data:_0x117853}=_0x4d75ba;return _0x117853&&'removeFormat'==_0x117853['commandName']?{'type':'format','content':o(_0x5698bb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x48688f{['afterInit'](){const _0x2597e8=this['editor'];if(!_0x2597e8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x43dfbf=_0x2597e8['plugins']['get']('TrackChangesEditing');_0x43dfbf['enableCommand']('goToPreviousRestrictedEditingException'),_0x43dfbf['enableCommand']('goToNextRestrictedEditingException');const _0x4e422d=_0x2597e8['plugins']['get']('RestrictedEditingModeEditing');_0x4e422d['enableCommand']('trackChanges'),_0x4e422d['enableCommand']('acceptSuggestion'),_0x4e422d['enableCommand']('discardSuggestion'),_0x4e422d['enableCommand']('acceptAllSuggestions'),_0x4e422d['enableCommand']('discardAllSuggestions'),_0x4e422d['enableCommand']('acceptSelectedSuggestions'),_0x4e422d['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x48688f{static get['requires'](){return[_0x4b33e1];}['init'](){const _0x526426=this['editor'],_0x4f52d2=_0x526426['plugins']['get']('TrackChangesEditing');_0x4f52d2['enableCommand']('shiftEnter'),_0x526426['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x526426),{'priority':'high'}),_0x526426['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x526426),{'priority':'high'}),_0x526426['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d03d6,_0x57fecc,_0x325c98)=>{_0x325c98['options']['showSuggestionHighlights']&&ge(_0x526426,{'showActiveMarker':!0x1})(_0x2d03d6,_0x57fecc,_0x325c98);}),_0x4f52d2['descriptionFactory']['registerElementLabel']('softBreak',_0x557eae=>o(_0x526426['locale'],'ELEMENT_LINE_BREAK',_0x557eae));}}function ge(_0x3611fc,{showActiveMarker:_0x3bdf8b=!0x0}={}){return(_0x54c18e,_0x17635e,_0x23b4f9)=>{const _0x8eeee9=_0x3611fc['plugins']['get']('TrackChangesEditing');if(!_0x23b4f9['consumable']['test'](_0x17635e['markerRange'],_0x54c18e['name']))return;const _0x2b42ca=_0x3611fc['model'];for(const _0x74aabc of _0x17635e['markerRange']['getItems']()){if(!_0x74aabc['is']('element','softBreak'))continue;const _0x13fe8f='deletion'==_0x17635e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x459fd5}=_0x8eeee9['_splitMarkerName'](_0x17635e['markerName']),_0x1a48d9=_0x23b4f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13fe8f,'data-author-id':_0x459fd5}),_0x2764bd=_0x23b4f9['mapper']['toViewPosition'](_0x2b42ca['createPositionBefore'](_0x74aabc));_0x3bdf8b&&_0x8eeee9['activeMarkers']['includes'](_0x17635e['markerName'])&&_0x23b4f9['writer']['addClass']('ck-suggestion-marker--active',_0x1a48d9),_0x23b4f9['writer']['insert'](_0x2764bd,_0x1a48d9),_0x23b4f9['mapper']['bindElementToMarker'](_0x1a48d9,_0x17635e['markerName']);}};}class St extends _0x48688f{['afterInit'](){const _0x173b7d=this['editor'],_0x337437=_0x173b7d['model'],_0x444047=_0x173b7d['locale'];if(!_0x173b7d['plugins']['has']('StandardEditingModeEditing'))return;const _0x197111=_0x173b7d['plugins']['get']('TrackChangesEditing'),_0x57919a='restrictedEditingException',_0x4338c7=_0x173b7d['commands']['get'](_0x57919a);_0x197111['enableCommand'](_0x57919a,(_0x3d8650,_0x54a471={})=>{const _0x5ab58b=_0x337437['document']['selection'];if(_0x5ab58b['isCollapsed'])return void _0x3d8650(_0x54a471);const _0x120c46=void 0x0!==_0x54a471['forceValue']?_0x54a471['forceValue']:!_0x4338c7['value'];_0x337437['change'](()=>{const _0x1ecc32=Array['from'](_0x5ab58b['getRanges']());for(const _0x3ad4bd of _0x1ecc32){const _0x479240=_0x120c46?[_0x3ad4bd]:io(_0x57919a,_0x3ad4bd,_0x337437);for(const _0x599467 of _0x479240)_0x197111['markInlineFormat'](_0x599467,{'commandName':_0x57919a,'commandParams':[{'forceValue':_0x120c46}]});}});}),_0x197111['descriptionFactory']['registerDescriptionCallback'](_0x55609b=>{if('formatBlock'!=_0x55609b['type']&&'formatInline'!=_0x55609b['type'])return;const {data:_0x257dd7}=_0x55609b;return _0x257dd7&&_0x257dd7['commandName']==_0x57919a?_0x257dd7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x444047,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x444047,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x48688f{['afterInit'](){const _0x50aafc=this['editor'];if(!_0x50aafc['plugins']['has']('Style')||!_0x50aafc['plugins']['has']('DataSchema'))return;const _0x5d0012=_0x50aafc['plugins']['get']('TrackChangesEditing'),_0x4e1c9=_0x50aafc['locale'],_0x2c0ee9=_0x50aafc['config']['get']('style')||{},_0x135714=_0x50aafc['plugins']['get']('GeneralHtmlSupport'),_0x4a7985=_0x50aafc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50aafc['plugins']['get']('DataSchema'),_0x2c0ee9['definitions']);_0x5d0012['enableDefaultAttributesIntegration']('style');const _0x52099b=new Set();for(const _0x12955f of _0x4a7985['block']){const _0x55c114=_0x135714['getGhsAttributeNameForElement'](_0x12955f['element']);_0x52099b['add'](_0x55c114);}const _0x31260f=new Set();for(const _0x208dbf of _0x4a7985['inline']){const _0xb44095=_0x135714['getGhsAttributeNameForElement'](_0x208dbf['element']);_0x31260f['add'](_0xb44095);for(const _0x5da631 of _0x208dbf['ghsAttributes'])_0x31260f['add'](_0x5da631);}for(const _0x500c78 of _0x52099b)_0x5d0012['registerBlockAttribute'](_0x500c78),_0x5d0012['descriptionFactory']['registerAttributeLabel'](_0x500c78,o(_0x4e1c9,'FORMAT_STYLE'));for(const _0x4968bc of _0x31260f)_0x5d0012['registerInlineAttribute'](_0x4968bc),_0x5d0012['descriptionFactory']['registerAttributeLabel'](_0x4968bc,o(_0x4e1c9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x550283=this['editor'],_0x3cc21a=_0x550283['locale'];_0x550283['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ddc0f=>{if('formatBlock'!=_0x1ddc0f['type']&&'formatInline'!=_0x1ddc0f['type'])return;const {data:_0x3955c5}=_0x1ddc0f;return _0x3955c5&&'style'===_0x3955c5['commandName']?_0x3955c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cc21a,'*Set\x20format:*\x20%0',_0x3955c5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3cc21a,'*Remove\x20format:*\x20%0',_0x3955c5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x48688f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xbf4a2a){super(_0xbf4a2a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ddbdc=this['editor'],_0x3f03bd=_0x3ddbdc['model']['document']['selection'];if(!_0x3ddbdc['plugins']['has']('TableEditing'))return;const _0x3a0e71=_0x3ddbdc['locale'],_0x513ee2=_0x3ddbdc['plugins']['get']('TrackChangesEditing'),_0x3eda63=_0x3ddbdc['plugins']['get']('TableUtils');_0x513ee2['descriptionFactory']['registerElementLabel']('table',_0x4fd837=>o(_0x3a0e71,'ELEMENT_TABLE',_0x4fd837)),this['_setupColumnsRowsFixing'](),_0x513ee2['enableCommand']('insertTable'),_0x513ee2['enableCommand']('selectTableRow'),_0x513ee2['enableCommand']('selectTableColumn');for(const _0x3be0e5 of['insertTableRowAbove','insertTableRowBelow']){const _0x45c592=_0x3ddbdc['commands']['get'](_0x3be0e5);_0x513ee2['enableCommand'](_0x3be0e5,_0x1c08f2=>{_0x3ddbdc['model']['change'](_0x4a4fe5=>{_0x1c08f2();const _0x294de2='above'===_0x45c592['order'],_0x3b3a1a=_0x3eda63['getSelectionAffectedTableCells'](_0x3f03bd),_0x5b05a0=_0x3eda63['getRowIndexes'](_0x3b3a1a),_0x7859ee=_0x294de2?_0x5b05a0['first']-0x1:_0x5b05a0['last']+0x1,_0x2f050b=_0x3b3a1a[0x0]['findAncestor']('table'),_0x5c3d65=_0x3eda63['createTableWalker'](_0x2f050b,{'startRow':_0x7859ee,'endRow':_0x7859ee}),_0x3a2766=Array['from'](_0x5c3d65)['map'](_0x391a32=>_0x4a4fe5['createRangeOn'](_0x391a32['cell']));_0x513ee2['markMultiRangeInsertion'](_0x3a2766,'tableRow');});});}for(const _0x1c8d18 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4b7601=_0x3ddbdc['commands']['get'](_0x1c8d18);_0x513ee2['enableCommand'](_0x1c8d18,_0x3c7589=>{_0x3ddbdc['model']['change'](_0x2e36a9=>{_0x3c7589();const _0x3f31b7='left'===_0x4b7601['order'],_0x57448a=_0x3eda63['getSelectionAffectedTableCells'](_0x3f03bd),_0x1e1cdf=_0x3eda63['getColumnIndexes'](_0x57448a),_0x40e9f6=_0x3f31b7?_0x1e1cdf['first']-0x1:_0x1e1cdf['last']+0x1,_0x3c1f3f=_0x57448a[0x0]['findAncestor']('table'),_0x58887e=_0x3eda63['createTableWalker'](_0x3c1f3f,{'startRow':0x0,'column':_0x40e9f6,'includeAllSlots':!0x1}),_0x39c5f2=Array['from'](_0x58887e)['map'](_0x2e0d68=>_0x2e36a9['createRangeOn'](_0x2e0d68['cell']));_0x513ee2['markMultiRangeInsertion'](_0x39c5f2,'tableColumn');});});}for(const _0x1030d4 of['removeTableRow','removeTableColumn']){const _0x4605f9=_0x1030d4['substr'](0xb),_0x27c5f1=_0x4605f9['toLowerCase'](),_0x1c1c8=_0x27c5f1['substr'](0x0,0x3)+'span',_0x4d4c50='table'+_0x4605f9,_0x37d01c='min'+_0x4605f9,_0x3aa1c5='max'+_0x4605f9;_0x513ee2['enableCommand'](_0x1030d4,()=>{_0x3ddbdc['model']['change'](_0x16f8b3=>{const _0x64dcc2=_0x3eda63['getSelectionAffectedTableCells'](_0x3f03bd),_0x3cb8f4=_0x64dcc2[0x0]['findAncestor']('table');let _0x707050;if('removeTableRow'==_0x1030d4){const _0x73662=_0x3eda63['getRowIndexes'](_0x64dcc2);_0x707050={'startRow':_0x73662['first'],'endRow':_0x73662['last'],'includeAllSlots':!0x0};}else{const _0x10a8cc=_0x3eda63['getColumnIndexes'](_0x64dcc2);_0x707050={'startColumn':_0x10a8cc['first'],'endColumn':_0x10a8cc['last'],'includeAllSlots':!0x0};}const _0x537844=_0x3eda63['createTableWalker'](_0x3cb8f4,_0x707050),_0x2f348c=Array['from'](_0x537844)['map'](({cell:_0x160524})=>_0x160524),_0x4055f1=be(_0x2f348c['filter'](_0x15aa95=>_0x15aa95['hasAttribute'](_0x1c1c8))),_0x25f2b0=be(_0x2f348c['filter'](_0x6da0f0=>!_0x6da0f0['hasAttribute'](_0x1c1c8)))['map'](_0x19b448=>_0x16f8b3['createRangeOn'](_0x19b448)),_0x5145f7=_0x513ee2['markMultiRangeDeletion'](_0x25f2b0,_0x4d4c50);if(_0x5145f7&&('tableRow'==_0x5145f7['subType']||'tableColumn'==_0x5145f7['subType'])){const _0x278c02=this['_getSuggestionCoords'](_0x5145f7);for(const _0x72e080 of _0x4055f1){const _0x1928af=_0x16f8b3['createRangeOn'](_0x72e080),_0xb40c5c=_0x3eda63['getCellLocation'](_0x72e080),_0x1f6e60=_0x72e080['getAttribute'](_0x1c1c8)-0x1,_0x453916=_0x278c02[_0x37d01c],_0x403683=_0x278c02[_0x3aa1c5];_0x453916<=_0xb40c5c[_0x27c5f1]&&_0xb40c5c[_0x27c5f1]+_0x1f6e60<=_0x403683&&_0x5145f7['addRange'](_0x1928af);}}});});}function _0x151942(_0x682382){const _0x143b2c=Array['from'](_0x3f03bd['getRanges']())['map'](_0x598bd5=>_0x411321['fromRange'](_0x598bd5));_0x3ddbdc['model']['change'](_0x3612f8=>{const _0x5aef33=_0x3612f8['batch'];_0x682382=_0x682382['filter'](_0x30723a=>'$graveyard'!=_0x30723a['root']['rootName']),_0x3612f8['setSelection'](_0x682382),_0x3ddbdc['commands']['get']('removeTableRow')['refresh'](),_0x3ddbdc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ddbdc['model']['enqueueChange'](()=>{_0x3ddbdc['model']['enqueueChange'](_0x5aef33,_0x24f926=>{const _0x4c6eb4=_0x143b2c['filter'](_0x46b249=>'$graveyard'!=_0x46b249['root']['rootName']);_0x4c6eb4['length']>0x0&&_0x24f926['setSelection'](_0x4c6eb4);for(const _0x2d88f4 of _0x143b2c)_0x2d88f4['detach']();});});});}function _0x1b0482(_0x5b9fb4){_0x3ddbdc['model']['change'](_0x2c75ec=>{const _0x3dc6c9=Array['from'](_0x3f03bd['getRanges']())['map'](_0x2d7f3d=>_0x411321['fromRange'](_0x2d7f3d)),_0x2b36e=[];for(const _0x46cf53 of _0x5b9fb4)for(const _0x1c65cd of _0x46cf53['getItems']({'shallow':!0x0}))_0x2b36e['push'](_0x1c65cd);for(const _0x3700c9 of _0x2b36e)'$graveyard'!=_0x3700c9['root']['rootName']&&(_0x2c75ec['setSelection'](_0x2c75ec['createPositionAt'](_0x3700c9,0x0)),_0x3ddbdc['commands']['get']('removeTableColumn')['refresh'](),_0x3ddbdc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x23c305=_0x3dc6c9['filter'](_0x490af6=>'$graveyard'!=_0x490af6['root']['rootName']);_0x23c305['length']>0x0&&_0x2c75ec['setSelection'](_0x23c305);for(const _0x583974 of _0x3dc6c9)_0x583974['detach']();});}function _0x478e36(_0x3f10fe,_0x4bca52){return _0x4bca52['every'](_0x2ae5a4=>_0x3f10fe['some'](_0x36c273=>_0x36c273['end']['isEqual'](_0x2ae5a4['start'])||_0x2ae5a4['end']['isEqual'](_0x36c273['start'])));}function _0x54694e(_0x2d6bc2,_0x234f78){return!_0x2d6bc2['some'](_0x4cc5a8=>_0x234f78['some'](_0x187ade=>_0x4cc5a8['isIntersecting'](_0x187ade)))&&_0x2d6bc2['some'](_0x1363f6=>_0x234f78['some'](_0x49359c=>_0x1363f6['end']['isTouching'](_0x49359c['start'])));}_0x3ddbdc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc7ef30,_0x255451,_0x42d5ca)=>{if(!_0x42d5ca['options']['showSuggestionHighlights'])return;const _0x51b663=_0x255451['item'];if(!_0x51b663)return;const _0x8063b5=_0x42d5ca['mapper']['toViewElement'](_0x51b663);function _0x4ac915(_0x34e2aa){return Array['isArray'](_0x34e2aa)?_0x34e2aa:[_0x34e2aa];}_0x8063b5&&'tableCell'===_0x51b663['name']&&_0x19f4da(_0x8063b5,_0x42d5ca['writer'],(_0x2fcf95,_0x16f829,_0x53146c)=>_0x53146c['addClass'](_0x4ac915(_0x16f829['classes']),_0x2fcf95),(_0x469d18,_0x528719,_0x20d10b)=>_0x20d10b['removeClass'](_0x4ac915(_0x528719['classes']),_0x469d18));},{'priority':'highest'}),_0x513ee2['descriptionFactory']['registerDescriptionCallback'](_0x3df44e=>{if('insertion'!=_0x3df44e['type']&&'deletion'!=_0x3df44e['type'])return;const _0xe63e52=_0x3df44e['getContainedElement']();if(null!=_0xe63e52&&_0xe63e52['is']('element','table')){if('insertion'==_0x3df44e['type']){const _0x31be29=_0x3df44e['getItems']()['filter'](_0x338b88=>_0x338b88['is']('$textProxy'))['map'](_0x95bbd2=>_0x95bbd2['data']);if(_0x31be29['length'])return{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x31be29['join']('\x20')+'\x22'))};}if('deletion'==_0x3df44e['type']){const _0x5046f6=_0x3df44e['getItems']()['filter'](_0x38694d=>_0x38694d['is']('$textProxy'))['map'](_0x429387=>_0x429387['data']);if(_0x5046f6['length'])return{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5046f6['join']('\x20')+'\x22'))};}}}),_0x513ee2['descriptionFactory']['registerDescriptionCallback'](_0x303ac7=>{if('tableRow'==_0x303ac7['subType']){const _0x421814=_0x303ac7['getItems']()['filter'](_0x48078c=>_0x48078c['is']('$textProxy'))['map'](_0x2fee6b=>_0x2fee6b['data']),_0x2635af=this['_getSuggestionCoords'](_0x303ac7),_0x14a0dc=_0x2635af['maxRow']-_0x2635af['minRow']+0x1;if('insertion'==_0x303ac7['type'])return _0x421814['length']?{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14a0dc,'\x22'+_0x421814['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW',_0x14a0dc))};if('deletion'==_0x303ac7['type'])return _0x421814['length']?{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14a0dc,'\x22'+_0x421814['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW',_0x14a0dc))};}if('tableColumn'==_0x303ac7['subType']){const _0x490b75=_0x303ac7['getItems']()['filter'](_0x2d0ee6=>_0x2d0ee6['is']('$textProxy'))['map'](_0x1e8aee=>_0x1e8aee['data']),_0x231746=this['_getSuggestionCoords'](_0x303ac7),_0x1ae456=_0x231746['maxColumn']-_0x231746['minColumn']+0x1;if('insertion'==_0x303ac7['type'])return _0x490b75['length']?{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1ae456,'\x22'+_0x490b75['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN',_0x1ae456))};if('deletion'==_0x303ac7['type'])return _0x490b75['length']?{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1ae456,'\x22'+_0x490b75['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN',_0x1ae456))};}}),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x151942),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x151942),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1b0482),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1b0482),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x478e36),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x478e36),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x54694e),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x54694e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x155e4c=this['editor'],_0x19a889=_0x155e4c['model']['document']['selection'];return(_0x738110,_0x2fbe9c)=>{_0x155e4c['model']['change'](_0x2cd420=>{const {commandName:_0x4627e3,commandParams:_0x49b7bb}=_0x2fbe9c;let _0x5caa18=_0x738110[0x0]['end']['nodeBefore'];_0x49b7bb&&_0x49b7bb[0x0]&&!0x1===_0x49b7bb[0x0]['forceValue']&&(_0x5caa18=_0x738110[0x0]['start']['nodeAfter']);const _0x5a9153=_0x2cd420['createRangeIn'](_0x5caa18);if('$graveyard'==_0x5a9153['root']['rootName'])return;const _0x1ac75e=Array['from'](_0x19a889['getRanges']())['map'](_0x4f269e=>_0x411321['fromRange'](_0x4f269e));_0x2cd420['setSelection'](_0x5a9153),_0x155e4c['commands']['get'](_0x4627e3)['refresh'](),_0x49b7bb['push']({'forceDefaultExecution':!0x0}),_0x155e4c['execute'](_0x4627e3,..._0x49b7bb);const _0x20c495=_0x1ac75e['filter'](_0x4b07d2=>'$graveyard'!=_0x4b07d2['root']['rootName']);_0x20c495['length']>0x0&&_0x2cd420['setSelection'](_0x20c495);for(const _0x15c8c1 of _0x1ac75e)_0x15c8c1['detach']();});};}['_getCoordsForCells'](_0xf0b943){const _0xeb33d7=this['editor']['plugins']['get']('TableUtils');let _0x2773a2=Number['MAX_SAFE_INTEGER'],_0x194755=Number['MIN_SAFE_INTEGER'],_0x26c3ca=Number['MAX_SAFE_INTEGER'],_0x505783=Number['MIN_SAFE_INTEGER'];for(const _0x3af23c of _0xf0b943){if('$graveyard'==_0x3af23c['root']['rootName'])continue;const {row:_0x5e16a8,column:_0x29123e}=_0xeb33d7['getCellLocation'](_0x3af23c),_0x5eb6fe=_0x3af23c['hasAttribute']('rowspan')?_0x3af23c['getAttribute']('rowspan')-0x1:0x0,_0x3e349f=_0x3af23c['hasAttribute']('colspan')?_0x3af23c['getAttribute']('colspan')-0x1:0x0;_0x2773a2=_0x5e16a8<_0x2773a2?_0x5e16a8:_0x2773a2,_0x194755=_0x5e16a8+_0x5eb6fe>_0x194755?_0x5e16a8+_0x5eb6fe:_0x194755,_0x26c3ca=_0x29123e<_0x26c3ca?_0x29123e:_0x26c3ca,_0x505783=_0x29123e+_0x3e349f>_0x505783?_0x29123e+_0x3e349f:_0x505783;}return{'minRow':_0x2773a2,'maxRow':_0x194755,'minColumn':_0x26c3ca,'maxColumn':_0x505783};}['_setupColumnsRowsFixing'](){const _0x373bf2=this['editor'],_0x36d6d8=_0x373bf2['plugins']['get']('TrackChangesEditing'),_0xd104ae=_0x373bf2['plugins']['get']('TableUtils');_0x373bf2['model']['document']['on']('change:data',()=>{const _0x12c8a9=Array['from'](_0x373bf2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26a5f5,data:_0x2e39b3}of _0x12c8a9){const {group:_0x170411,id:_0x13113f,subType:_0x38336f}=_0x36d6d8['_splitMarkerName'](_0x26a5f5);if('suggestion'!=_0x170411)continue;if(null!=_0x2e39b3['oldRange'])continue;const _0x4bf27c=_0x36d6d8['getSuggestion'](_0x13113f);this['_tablePostFixingSubtypes']['includes'](_0x38336f)&&this['_tableSuggestions']['add'](_0x4bf27c);}},{'priority':'low'});const _0x2a52e9=(_0xb1a85d,_0x53a319)=>{let _0x466c63=!0x1;const _0x8f13e2=_0x53a319['createRangeOn'](_0xb1a85d),_0x140392=_0xb1a85d['findAncestor']('table'),_0x10458d=_0xd104ae['getCellLocation'](_0xb1a85d);for(const _0x5c7dae of this['_tableSuggestions']){const _0x426802=_0x5c7dae['subType'],_0x5814ca=_0x426802['startsWith']('tablePaste'),_0x3d0740=_0x426802['substr'](_0x5814ca?0xa:0x5),_0x2a188e=_0x3d0740['toLowerCase'](),_0x5d1d8e=_0x2a188e['substr'](0x0,0x3)+'span',_0x4e9e5c='min'+_0x3d0740,_0x1ede10='max'+_0x3d0740;if(!_0x5c7dae['isInContent'])continue;if(_0x140392!=_0x5c7dae['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5c7dae['isIntersectingWithRange'](_0x8f13e2))continue;const _0x363d92=_0xb1a85d['hasAttribute'](_0x5d1d8e)?_0xb1a85d['getAttribute'](_0x5d1d8e)-0x1:0x0,_0x351154=this['_getSuggestionCoords'](_0x5c7dae),_0x3a1b73=_0x351154[_0x4e9e5c],_0x3e2963=_0x351154[_0x1ede10];_0x3a1b73<=_0x10458d[_0x2a188e]&&_0x10458d[_0x2a188e]+_0x363d92<=_0x3e2963&&(_0x5c7dae['addRange'](_0x8f13e2),_0x466c63=!0x0);}return _0x466c63;};_0x373bf2['model']['document']['registerPostFixer'](_0x540d46=>{let _0x2fcc64=!0x1;for(const _0x3c5d40 of _0x373bf2['model']['document']['differ']['getChanges']())if('insert'==_0x3c5d40['type']){if('tableRow'==_0x3c5d40['name']){for(const _0x5d3f51 of _0x3c5d40['position']['nodeAfter']['getChildren']())_0x2fcc64=_0x2fcc64||_0x2a52e9(_0x5d3f51,_0x540d46);}else'tableCell'==_0x3c5d40['name']&&(_0x2fcc64=_0x2fcc64||_0x2a52e9(_0x3c5d40['position']['nodeAfter'],_0x540d46));}return _0x2fcc64;});}['_getSuggestionCoords'](_0x453e8f){return this['_getCoordsForCells'](_0x453e8f['getRanges']()['map'](_0x15a410=>_0x15a410['start']['nodeAfter']));}}function be(_0x476029){return Array['from'](new Set(_0x476029)['values']());}class vt extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0xbe170b=this['editor'],_0x533a91=_0xbe170b['model']['document']['selection'],_0x197db9=_0xbe170b['locale'];if(!_0xbe170b['plugins']['has']('TableEditing'))return;const _0x5ebe95=_0xbe170b['plugins']['get']('TrackChangesEditing'),_0x38eaba=_0xbe170b['plugins']['get']('TableUtils'),_0x80eb61=_0xbe170b['plugins']['get'](It);_0x80eb61['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5ebe95['enableCommand']('mergeTableCells',()=>{const _0x433464=_0x38eaba['getSelectionAffectedTableCells'](_0xbe170b['model']['document']['selection']);_0xbe170b['model']['change'](()=>{_0x5ebe95['markMultiRangeBlockFormat'](_0x433464,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xbe170b['commands']['get']('mergeTableCells')['on']('execute',(_0x3de166,_0x5ae2be)=>{_0xbe170b['commands']['get']('trackChanges')['value']&&(_0x5ae2be['length']>0x0&&_0x5ae2be[_0x5ae2be['length']-0x1]&&_0x5ae2be[_0x5ae2be['length']-0x1]['forceDefaultExecution']||_0x5ebe95['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3de166['stop']());},{'priority':'highest'});for(const _0x210317 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b7680=_0xbe170b['commands']['get'](_0x210317);_0x5ebe95['enableCommand'](_0x210317,()=>{const _0x40ef52=_0xbe170b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18b7e1=>_0x18b7e1['is']('element','tableCell')),_0x435604=_0x2b7680['value'];_0xbe170b['model']['change'](()=>{_0x5ebe95['markMultiRangeBlockFormat']([_0x40ef52,_0x435604],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x168cda of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4caaf0=_0xbe170b['commands']['get'](_0x168cda);_0x5ebe95['enableCommand'](_0x168cda,()=>{const _0x509d3b=_0x38eaba['getSelectionAffectedTableCells'](_0xbe170b['model']['document']['selection'])[0x0],_0x14c0f0=_0x509d3b['findAncestor']('table'),{column:_0x1ba94e,row:_0x4c313f}=_0x38eaba['getCellLocation'](_0x509d3b);let _0x38f810=[];if('horizontally'==_0x4caaf0['direction']){const _0x10fc8e=_0x38eaba['createTableWalker'](_0x14c0f0,{'startRow':_0x4c313f,'endRow':_0x4c313f,'includeAllSlots':!0x0});_0x38f810=Array['from'](_0x10fc8e)['map'](_0x4f3b5d=>_0x4f3b5d['cell']);}else{const _0x8f5a92=_0x38eaba['createTableWalker'](_0x14c0f0,{'column':_0x1ba94e,'includeAllSlots':!0x0});_0x38f810=Array['from'](_0x8f5a92)['map'](_0xba34ee=>_0xba34ee['cell']);}_0xbe170b['model']['change'](_0xefb207=>{_0x5ebe95['markBlockFormat'](_0xefb207['createRangeOn'](_0x509d3b),{'commandName':_0x168cda,'commandParams':[]},_0x38f810,_0x168cda);});});}_0x5ebe95['descriptionFactory']['registerDescriptionCallback'](_0x397c42=>{if('formatBlock'!=_0x397c42['type']&&'formatInline'!=_0x397c42['type'])return;const {data:_0x2f7f40}=_0x397c42;return _0x2f7f40&&'mergeTableCells'==_0x2f7f40['commandName']?{'type':'format','content':o(_0x197db9,'*Merge\x20cells*')}:void 0x0;}),_0x5ebe95['descriptionFactory']['registerDescriptionCallback'](_0x3d6b36=>{if('formatBlock'!=_0x3d6b36['type']&&'formatInline'!=_0x3d6b36['type'])return;const {data:_0x483be9}=_0x3d6b36;return _0x483be9?'splitTableCellVertically'==_0x483be9['commandName']?{'type':'format','content':o(_0x197db9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x483be9['commandName']?{'type':'format','content':o(_0x197db9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x243dc2=_0x80eb61['_acceptFormatSuggestionCallbackFactory']();for(const _0x215db4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5ebe95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x215db4,'accept',_0x243dc2);for(const _0x4bd163 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5ebe95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bd163,'accept',_0x243dc2);_0x5ebe95['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x360158=>{_0xbe170b['model']['change'](_0xb0e3ce=>{const _0x2b52dc=Array['from'](_0x533a91['getRanges']())['map'](_0x472c3c=>_0x411321['fromRange'](_0x472c3c));_0xb0e3ce['setSelection'](_0x360158),_0xbe170b['commands']['get']('mergeTableCells')['refresh'](),_0xbe170b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x549d40=_0x2b52dc['filter'](_0x2b23aa=>'$graveyard'!=_0x2b23aa['root']['rootName']);_0x549d40['length']>0x0&&_0xb0e3ce['setSelection'](_0x549d40);for(const _0x25e711 of _0x2b52dc)_0x25e711['detach']();});});for(const _0xd03df0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x54eafd=_0xbe170b['commands']['get'](_0xd03df0);_0x54eafd['on']('set:isEnabled',(_0x25e154,_0x2a4713,_0x579cd8)=>{if(_0x579cd8){const _0x2165ec=_0xbe170b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f042a=>_0x4f042a['is']('element','tableCell'));this['_areMergableCells'](_0x54eafd['value'],_0x2165ec)||(_0x25e154['return']=!0x1,_0x25e154['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x547df7=this['editor']['commands']['get']('mergeTableCells'),_0x2cdd87=this['editor']['plugins']['get']('TableUtils');if(!_0x547df7['isEnabled'])return!0x1;const _0x594e36=_0x2cdd87['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x239ccc of _0x594e36)for(const _0x5b758f of _0x594e36)if(_0x239ccc!=_0x5b758f&&!this['_areMergableCells'](_0x239ccc,_0x5b758f))return!0x1;return!0x0;}['_areMergableCells'](_0x31694f,_0x3c6f59){const _0x42d6b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f391a=this['editor']['model']['createRangeOn'](_0x31694f),_0x22355a=this['editor']['model']['createRangeOn'](_0x3c6f59),_0x3d4a0a=new Set(),_0x55821c=new Set();for(const _0x11cfdc of _0x42d6b0['getSuggestions']())if(('insertion'==_0x11cfdc['type']||'deletion'==_0x11cfdc['type']||'mergeTableCells'==_0x11cfdc['subType'])&&_0x11cfdc['isInContent']){for(const _0x1f505c of _0x11cfdc['getRanges']())_0x1f505c['containsRange'](_0x2f391a,!0x0)&&_0x3d4a0a['add'](_0x11cfdc['type']+':'+_0x11cfdc['author']['id']),_0x1f505c['containsRange'](_0x22355a,!0x0)&&_0x55821c['add'](_0x11cfdc['type']+':'+_0x11cfdc['author']['id']);}if(_0x3d4a0a['size']!=_0x55821c['size'])return!0x1;for(const _0x3b0a57 of _0x3d4a0a)if(!_0x55821c['has'](_0x3b0a57))return!0x1;return!0x0;}}class Ct extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0x11b289=this['editor'];if(!_0x11b289['plugins']['has']('TableEditing'))return;const _0x985bad=_0x11b289['locale'],_0x443384=_0x11b289['plugins']['get']('TrackChangesEditing');_0x443384['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x443384['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x443384['registerBlockAttribute']('headingRows'),_0x443384['registerBlockAttribute']('headingColumns'),_0x443384['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x985bad,'FORMAT_HEADER_ROW')),_0x443384['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x985bad,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x151c53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f58f2=this['editor']['plugins']['get']('TableUtils'),_0x271251=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x97bd66({showActiveMarker:_0x33c832=!0x0,setDataAttribute:_0x1515eb=!0x0}={}){return(_0x3b7af3,_0x4762eb,_0x330c51)=>{const {type:_0x23960c,id:_0x50528e}=_0x151c53['_splitMarkerName'](_0x4762eb['markerName']),_0x5792b2=_0x151c53['getSuggestion'](_0x50528e),_0x268d0d=_0x5792b2['data'];if('formatBlock'!=_0x5792b2['type']||!_0x268d0d||'setTableColumnHeader'!=_0x268d0d['commandName'])return;if(_0x4762eb['item'])return void _0x3b7af3['stop']();if(!_0x330c51['consumable']['consume'](_0x4762eb['markerRange'],_0x3b7af3['name']))return;const _0xf63197=_0x4762eb['markerRange']['start']['nodeAfter'],_0x463ae6=_0x4762eb['markerRange']['end']['nodeBefore'],_0x2c743a=_0xf63197['parent']['parent'],{column:_0x18f485}=_0x2f58f2['getCellLocation'](_0xf63197),{column:_0x301b04}=_0x2f58f2['getCellLocation'](_0x463ae6);for(let _0x5bee60=_0x18f485;_0x5bee60<=_0x301b04;_0x5bee60++){const _0x4c2b98=_0x2f58f2['createTableWalker'](_0x2c743a,{'column':_0x5bee60,'includeAllSlots':!0x1});for(const _0x1af546 of _0x4c2b98){const _0x4f15d6=_0x1af546['cell'],_0x449730=_0x330c51['mapper']['toViewElement'](_0x4f15d6);_0x330c51['writer']['addClass']('ck-suggestion-marker-'+_0x23960c,_0x449730),_0x1515eb&&_0x330c51['writer']['setAttribute']('data-suggestion',_0x50528e,_0x449730),_0x330c51['mapper']['bindElementToMarker'](_0x449730,_0x4762eb['markerName']),_0x33c832&&(_0x151c53['activeMarkers']['includes'](_0x4762eb['markerName'])?_0x330c51['writer']['addClass']('ck-suggestion-marker--active',_0x449730):_0x330c51['writer']['removeClass']('ck-suggestion-marker--active',_0x449730));}}};}_0x151c53['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x271251),_0x151c53['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x271251),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x97bd66(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34c431,_0x4248fb,_0x2403ed)=>{_0x2403ed['options']['showSuggestionHighlights']&&_0x97bd66({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34c431,_0x4248fb,_0x2403ed);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5d1715,_0x549166,_0x1312c0)=>{const {type:_0x33f031,id:_0x5c6589}=_0x151c53['_splitMarkerName'](_0x549166['markerName']),_0x100689=_0x151c53['getSuggestion'](_0x5c6589),_0x2ddf63=_0x100689['data'];if('formatBlock'!=_0x100689['type']||!_0x2ddf63||'setTableColumnHeader'!=_0x2ddf63['commandName'])return;const _0x5ee18c=_0x1312c0['mapper']['markerNameToElements'](_0x549166['markerName']);if(_0x5ee18c){for(const _0x20af3 of _0x5ee18c)_0x1312c0['writer']['removeClass']('ck-suggestion-marker-'+_0x33f031,_0x20af3),_0x1312c0['writer']['removeClass']('ck-suggestion-marker--active',_0x20af3),_0x1312c0['writer']['removeAttribute']('data-suggestion',_0x20af3),_0x1312c0['mapper']['unbindElementFromMarkerName'](_0x20af3,_0x549166['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142e72=this['editor'],_0x59cba7=_0x142e72['locale'];function _0x1fb849(_0x53b431){return{'type':'format','content':o(_0x59cba7,'*Format:*\x20%0',_0x53b431)};}_0x142e72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x594d44=>{if('formatBlock'!=_0x594d44['type'])return;const {data:_0x5c1edf}=_0x594d44;if(_0x5c1edf){if('setTableRowHeader'==_0x5c1edf['commandName']){const _0x291ba5=_0x5c1edf['commandParams'][0x0]['forceValue'];return _0x1fb849(o(_0x59cba7,_0x291ba5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5c1edf['commandName']){const _0x20b73a=_0x5c1edf['commandParams'][0x0]['forceValue'];return _0x1fb849(o(_0x59cba7,_0x20b73a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x2afb9c=>[_0x2afb9c,null]));class _t extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0xc6e687=this['editor'];if(!_0xc6e687['plugins']['has']('TableClipboard'))return;const _0x1f3606=_0xc6e687['plugins']['get']('TrackChangesEditing'),_0x46ba82=_0xc6e687['plugins']['get']('TableUtils'),_0x4c366e=_0xc6e687['plugins']['get'](It),_0x46492b=_0xc6e687['plugins']['get']('TableClipboard');_0x4c366e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xc6e687['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xc6e687['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2e269e=null;_0xc6e687['model']['on']('insertContent',(_0x18932f,_0x570f13)=>{const [_0x334012,_0x4a0bc0]=_0x570f13,_0x131a38=_0x570f13[_0x570f13['length']-0x1];_0x131a38&&_0x131a38['forceDefaultExecution']||_0x1f3606['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x108d96,_0x199914,_0x208386,_0x11c8ef,_0x478d4f){if(_0x199914&&!_0x199914['is']('documentSelection'))return!0x1;const _0x3fc778=_0x478d4f['getTableIfOnlyTableInContent'](_0x108d96,_0x208386);if(!_0x3fc778||!Re(_0x3fc778,void 0x0,_0x11c8ef))return!0x1;const _0x56578f=_0x11c8ef['getSelectionAffectedTableCells'](_0x208386['document']['selection']);if(!_0x56578f['length'])return!0x1;const _0x3a718d=_0x56578f[0x0]['findAncestor']('table'),_0x140c28=_0x11c8ef['getRowIndexes'](_0x56578f),_0x467ba=_0x11c8ef['getColumnIndexes'](_0x56578f),_0x2f1037={'startRow':_0x140c28['first'],'endRow':_0x140c28['last'],'startColumn':_0x467ba['first'],'endColumn':_0x467ba['last']};return 0x1==_0x56578f['length']&&(_0x2f1037['endRow']+=_0x11c8ef['getRows'](_0x3fc778)-0x1,_0x2f1037['endColumn']+=_0x11c8ef['getColumns'](_0x3fc778)-0x1),Re(_0x3a718d,_0x2f1037,_0x11c8ef);}(_0x334012,_0x4a0bc0,_0xc6e687['model'],_0x46ba82,_0x46492b)&&(_0x18932f['stop'](),_0x2e269e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xc6e687['model']['change'](()=>{_0xc6e687['model']['insertContent'](_0x570f13[0x0],_0x570f13[0x1],_0x570f13[0x2],{'forceDefaultExecution':!0x0});const _0x2fbaf2=_0x2120b6(),{rowInsertionRanges:_0x1b3229,columnInsertionRanges:_0x3ae0cd,insertionRanges:_0xc82026,deletionRanges:_0x14fd9a,cells:_0x2e4de7}=_0x2e269e;_0x1b3229['length']&&_0x1f3606['markMultiRangeInsertion'](_0x1b3229,'tablePasteRow',{'tablePasteChainId':_0x2fbaf2}),_0x3ae0cd['length']&&_0x1f3606['markMultiRangeInsertion'](_0x3ae0cd,'tablePasteColumn',{'tablePasteChainId':_0x2fbaf2}),_0xc82026['length']&&(_0x1f3606['markMultiRangeInsertion'](_0xc82026,'tablePaste',{'tablePasteChainId':_0x2fbaf2,'skipNestingCheck':!0x0}),_0xc82026['forEach'](_0x289381=>_0x289381['detach']?.())),_0x14fd9a['length']&&(_0x1f3606['markMultiRangeDeletion'](_0x14fd9a,'tablePaste',{'tablePasteChainId':_0x2fbaf2,'skipNestingCheck':!0x0}),_0x14fd9a['forEach'](_0x23b751=>_0x23b751['detach']?.()));const _0x29fae8=_0x1f3606['markMultiRangeBlockFormat'](_0x2e4de7['map'](({element:_0x3f8289})=>_0x3f8289),{'formatGroupId':_0x2120b6()},[],'tablePasteCell',{'tablePasteChainId':_0x2fbaf2});if(_0x29fae8){const _0x253579=_0x29fae8['getMarkers'](),_0x27d5be=[];for(const {element:_0xd5b655,attributes:_0x580d38}of _0x2e4de7){if(!_0x580d38)continue;const _0x5080e2=_0xc6e687['model']['createRangeOn'](_0xd5b655),_0x5115c8=_0x253579['find'](_0x42a72b=>_0x42a72b['getRange']()['isEqual'](_0x5080e2));_0x5115c8&&_0x27d5be['push']([_0x5115c8['name'],_0x580d38]);}_0x27d5be['length']&&_0x29fae8['setAttribute']('markerAttributes',Object['fromEntries'](_0x27d5be));}_0x2e269e=null;}));},{'priority':_0xbff88b['high']+0xa}),_0xc6e687['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x342906,_0x3ce470)=>{const [_0x2001a4,_0x21131e,,_0x4e468e]=_0x3ce470;if(!_0x2e269e)return;_0x342906['stop']();const _0x49e3ad=_0x2001a4['cell'],_0x2e21b8=_0x21131e,_0x5ba026=ke(_0x49e3ad),_0x49e6ff=ke(_0x2e21b8);_0x342906['return']=_0x49e3ad;let _0x4ef4f9=null,_0x535933=null;if(_0x49e6ff||_0x5ba026){if(_0x5ba026&&!_0x49e6ff){_0x4e468e['remove'](_0x49e3ad['getChild'](0x0));for(const _0x43bc41 of Array['from'](_0x2e21b8['getChildren']()))_0x4e468e['insert'](_0x43bc41,_0x49e3ad,'end');const _0x359319=_0x2e269e['rowInsertionIndexes']['includes'](_0x2001a4['row']),_0x5c1f11=_0x2e269e['columnInsertionIndexes']['includes'](_0x2001a4['column']);_0x359319||_0x5c1f11||(_0x4ef4f9=_0x411321['fromRange'](_0x4e468e['createRangeIn'](_0x49e3ad)));}else _0x49e6ff&&!_0x5ba026&&(_0x535933=_0x4e468e['createRangeIn'](_0x49e3ad));}else{const _0x3d9770=_0x4e468e['createElement']('tableCellSuggestion'),_0x174a05=_0x4e468e['createElement']('tableCellSuggestion');_0x4e468e['wrap'](_0x4e468e['createRangeIn'](_0x49e3ad),_0x174a05),_0x4e468e['insert'](_0x3d9770,_0x49e3ad,0x0);for(const _0x1d3fbb of Array['from'](_0x2e21b8['getChildren']()))_0x4e468e['insert'](_0x1d3fbb,_0x3d9770,'end');_0x4ef4f9=_0x411321['fromRange'](_0x4e468e['createRangeOn'](_0x3d9770)),_0x535933=_0x411321['fromRange'](_0x4e468e['createRangeOn'](_0x174a05));}const _0x4b01c3=Array['from'](_0x2e21b8['getAttributes']())['filter'](([_0x13aab0])=>Pe['includes'](_0x13aab0));_0x2e269e['cells']['push']({'element':_0x49e3ad,'attributes':_0x4b01c3['length']?Object['fromEntries'](_0x4b01c3):null}),_0x4ef4f9&&_0x2e269e['insertionRanges']['push'](_0x4ef4f9),_0x535933&&_0x2e269e['deletionRanges']['push'](_0x535933);},{'priority':'high'}),_0x46ba82['on']('insertColumns',(_0x260c3b,_0x5d71c5)=>{const [_0x1fe554,_0x4546db={}]=_0x5d71c5;if(!_0x2e269e)return;const _0x67cfd7=_0x4546db['at']||0x0,_0x4b374a=_0x4546db['columns']||0x1;_0x2e269e['columnInsertionIndexes']=new Array(_0x4b374a)['fill'](_0x67cfd7)['map']((_0x355d82,_0x241d88)=>_0x355d82+_0x241d88);for(const {cell:_0x1b12af}of _0x46ba82['createTableWalker'](_0x1fe554,{'startColumn':_0x67cfd7,'endColumn':_0x67cfd7+_0x4b374a-0x1}))_0x2e269e['columnInsertionRanges']['push'](_0xc6e687['model']['createRangeOn'](_0x1b12af));},{'priority':'low'}),_0x46ba82['on']('insertRows',(_0x2d5fec,_0x46cde5)=>{const [_0x5949e4,_0x199de5={}]=_0x46cde5;if(!_0x2e269e)return;const _0x579c05=_0x199de5['at']||0x0,_0x5ae574=_0x199de5['rows']||0x1;_0x2e269e['rowInsertionIndexes']=new Array(_0x5ae574)['fill'](_0x579c05)['map']((_0x5c0312,_0x274836)=>_0x5c0312+_0x274836);for(const {cell:_0x58b222}of _0x46ba82['createTableWalker'](_0x5949e4,{'startRow':_0x579c05,'endRow':_0x579c05+_0x5ae574-0x1}))_0x2e269e['rowInsertionRanges']['push'](_0xc6e687['model']['createRangeOn'](_0x58b222));},{'priority':'low'}),_0x1f3606['descriptionFactory']['registerDescriptionCallback'](_0x447ad1=>{if(_0x447ad1['subType']&&_0x447ad1['subType']['startsWith']('tablePaste'))return _0x447ad1['previous']?{}:{'type':'insertion','content':o(_0xc6e687['locale'],'*Replace\x20table\x20cells*')};});const _0x5d2145=()=>!0x1;for(const _0x68653a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1f3606['_suggestionFactory']['registerCustomCallback']('insertion',_0x68653a,'join',_0x5d2145),_0x1f3606['_suggestionFactory']['registerCustomCallback']('deletion',_0x68653a,'join',_0x5d2145),_0x1f3606['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x68653a,'join',_0x5d2145);_0x1f3606['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5d2145),_0x1f3606['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x504243,_0x498c73,_0xf8ba2b)=>{const _0x3dd1db=_0x504243['map'](_0x585df1=>_0x585df1['getContainedElement']())['filter'](_0x5c1442=>_0x5c1442),_0x5344de=new Map(_0x3dd1db['map'](_0x466fde=>[_0x466fde,null]));if(_0x2e269e){for(const {element:_0x2eb6a7,attributes:_0x1b3df2}of _0x2e269e['cells'])_0x1b3df2&&_0x5344de['set'](_0x2eb6a7,_0x1b3df2);}else{if(_0xf8ba2b&&_0xf8ba2b['markerAttributes'])for(const [_0x94fa5,_0x5dbded]of Object['entries'](_0xf8ba2b['markerAttributes'])){const _0x5d39bd=_0xc6e687['model']['markers']['get'](_0x94fa5),_0x4da94e=_0x5d39bd?_0x5d39bd['getRange']()['getContainedElement']():null;_0x4da94e&&_0x5344de['set'](_0x4da94e,_0x5dbded);}}_0xc6e687['model']['change'](_0x446b82=>{for(const [_0x4a446b,_0x1f0f7a]of _0x5344de)_0x446b82['setAttributes']({...we,..._0x1f0f7a},_0x4a446b);});});const _0x49be4b=(_0x3e28b6,_0x2e7faf)=>{_0x1f3606['_suggestionFactory']['registerCustomCallback'](_0x3e28b6,'tablePaste',_0x2e7faf,(_0x521492,_0x2dd0ed,_0x2b2a11)=>{_0xc6e687['model']['change'](_0x38ac34=>{const _0x47243a=[];for(const _0x202f48 of _0x521492){const _0x560d51=_0x202f48['start']['nodeAfter'];_0x560d51['is']('element','tableCellSuggestion')&&_0x47243a['push'](_0x560d51);}_0x1f3606['_suggestionFactory']['getSuggestionCallback'](_0x3e28b6,null,_0x2e7faf)(_0x521492,_0x2dd0ed,_0x2b2a11);for(const _0x3eda8d of _0x47243a)'$graveyard'!=_0x3eda8d['root']['rootName']&&_0x38ac34['unwrap'](_0x3eda8d);});});};_0x49be4b('insertion','accept'),_0x49be4b('insertion','discard'),_0x49be4b('deletion','accept'),_0x49be4b('deletion','discard'),_0x1f3606['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2fcd64=>{const _0x1588e6=_0x2fcd64['map'](_0x12a57e=>_0x12a57e['getContainedElement']()),_0x5dc0d4=_0x1588e6[0x0]['findAncestor']('table'),{minRow:_0x166fa9,maxRow:_0x57d9e8}=_0x4c366e['_getCoordsForCells'](_0x1588e6);_0x46ba82['removeRows'](_0x5dc0d4,{'at':_0x166fa9,'rows':_0x57d9e8-_0x166fa9+0x1});}),_0x1f3606['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3d2835=>{const _0xeef886=_0x3d2835['map'](_0x228005=>_0x228005['getContainedElement']()),_0x3c4f5d=_0xeef886[0x0]['findAncestor']('table'),{minColumn:_0x7ed176,maxColumn:_0x52214c}=_0x4c366e['_getCoordsForCells'](_0xeef886);_0x46ba82['removeColumns'](_0x3c4f5d,{'at':_0x7ed176,'columns':_0x52214c-_0x7ed176+0x1});});const _0x11752a=(_0x57d381,_0x51b08e)=>{if(!_0x51b08e['subType']||!_0x51b08e['subType']['startsWith']('tablePaste'))return;const _0x3651e0=_0x51b08e['attributes']['tablePasteChainId'],_0x322465=_0x1f3606['getSuggestions']()['filter'](_0x1451cc=>_0x1451cc['isInContent']&&_0x1451cc['attributes']&&_0x1451cc['attributes']['tablePasteChainId']==_0x3651e0);_0x322465['length']&&_0x51b08e['getAllAdjacentSuggestions']()['length']!=_0x322465['length']&&_0x322465['reduce']((_0x50f6b5,_0xbecd7b)=>(_0x50f6b5['next']=_0xbecd7b,_0xbecd7b['previous']=_0x50f6b5,_0xbecd7b));};function _0x9cf1b5(_0x2b609e,_0x20d1af=!0x0){const {id:_0x367d68,authorId:_0x23c425}=_0x1f3606['_splitMarkerName'](_0x2b609e['markerName']),_0x420309=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ab0e2=_0x1f3606['activeMarkers']['includes'](_0x2b609e['markerName']);return _0x4ab0e2&&_0x420309['push']('ck-suggestion-marker--active'),{'classes':_0x420309,'attributes':{'data-suggestion':_0x367d68,'data-author-id':_0x23c425},'priority':_0x4ab0e2&&_0x20d1af?0xbc2:0xbb8};}_0x1f3606['on']('suggestionLoaded',_0x11752a,{'priority':'high'}),_0x1f3606['on']('suggestionUnloaded',_0x11752a,{'priority':'high'}),_0xc6e687['model']['document']['registerPostFixer'](()=>{let _0x38b40a=!0x1;const _0x33ee69=Array['from'](_0xc6e687['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26c9cf,data:_0x343f62}of _0x33ee69){const {group:_0x33bec9,type:_0x2035db,id:_0x399868}=_0x1f3606['_splitMarkerName'](_0x26c9cf);if('suggestion'!=_0x33bec9||'deletion'!=_0x2035db||_0x343f62['oldRange'])continue;if(!_0x1f3606['hasSuggestion'](_0x399868))continue;const _0x2d6f1f=_0x1f3606['getSuggestion'](_0x399868)['getRanges'](),_0x143879=_0xc6e687['plugins']['get']('Users')['me'];for(const _0x541caa of _0x1f3606['getSuggestions']()){if(!_0x541caa['isInContent']||_0x541caa['author']!=_0x143879)continue;if('formatBlock'!=_0x541caa['type']||'tablePasteCell'!=_0x541caa['subType'])continue;if(_0x541caa['getRanges']()['every'](_0x9d2fbc=>_0x2d6f1f['some'](_0x1675a7=>_0x1675a7['containsRange'](_0x9d2fbc,!0x0)))){for(const _0x497a69 of _0x541caa['getAllAdjacentSuggestions']())_0x497a69['isInContent']&&(_0x497a69['discard'](),_0x38b40a=!0x0);}}}return _0x38b40a;}),_0xc6e687['model']['document']['registerPostFixer'](_0x3d89af=>{const _0x35ad79=_0xc6e687['commands']['get']('redo');if(!_0x35ad79||!_0x35ad79['_createdBatches']['has'](_0x3d89af['batch']))return!0x1;let _0x2e239f=!0x1;const _0x5441e2=_0xc6e687['plugins']['get']('Users')['me'],_0x4e007d=_0xc6e687['model']['document']['differ']['getChanges'](),_0x1bd8eb=Array['from'](_0xc6e687['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d69c5,data:_0x4b7bba})=>{const {group:_0x31f736,subType:_0x102591,authorId:_0x4d57c5}=_0x1f3606['_splitMarkerName'](_0x3d69c5);return'suggestion'==_0x31f736&&'tablePaste'==_0x102591&&_0x4d57c5==_0x5441e2['id']&&!_0x4b7bba['oldRange'];});for(const _0x38df87 of _0x4e007d){if('insert'!=_0x38df87['type']||'tableCellSuggestion'!=_0x38df87['name']||0x1!=_0x38df87['length'])continue;const _0x533fad=_0x3d89af['createRange'](_0x38df87['position'],_0x38df87['position']['getShiftedBy'](0x1));if(!_0x1bd8eb['find'](({data:_0x1150b5})=>_0x1150b5['newRange']['isEqual'](_0x533fad))){for(const {name:_0x1db9c8,data:_0x4f509e}of _0x1bd8eb)if(_0x533fad['containsRange'](_0x4f509e['newRange'])){_0x3d89af['updateMarker'](_0x1db9c8,{'range':_0x533fad}),_0x2e239f=!0x0;break;}}}return _0x2e239f;}),_0xc6e687['model']['document']['registerPostFixer'](_0x86e595=>{let _0x27b80f=!0x1;const _0x51bec7=_0xc6e687['plugins']['get']('Users')['me'],_0x51f275=_0x1f3606['getSuggestions']()['filter'](_0x548a2f=>_0x548a2f['isInContent']&&_0x548a2f['author']==_0x51bec7),_0x2a696a=new Set(),_0xf3bf4=new Set();for(const _0x5b6757 of _0x51f275)if('tablePaste'==_0x5b6757['subType'])for(const _0x2b9ac1 of _0x5b6757['getMarkers']()){const _0x26d3bd=_0x2b9ac1['getRange']()['getContainedElement']();if(_0x26d3bd){if(_0x26d3bd['is']('element','tableCellSuggestion')&&ke(_0x26d3bd)){_0x5b6757['removeMarker'](_0x2b9ac1['name']),_0x2a696a['add'](_0x26d3bd),_0x27b80f=!0x0;const _0x18ee14=_0x26d3bd['nextSibling'],_0x4eb690=_0x26d3bd['previousSibling'],_0x4cee53=_0x18ee14&&_0x18ee14['is']('element','tableCellSuggestion'),_0x54095f=_0x4eb690&&_0x4eb690['is']('element','tableCellSuggestion');_0x4cee53&&!_0x2a696a['has'](_0x18ee14)&&_0xf3bf4['add'](_0x18ee14),_0x54095f&&!_0x2a696a['has'](_0x4eb690)&&_0xf3bf4['add'](_0x4eb690);}else _0x26d3bd['is']('element','paragraph')&&_0x26d3bd['isEmpty']&&(_0x5b6757['removeMarker'](_0x2b9ac1['name']),_0x27b80f=!0x0);}}else{if('tablePasteCell'==_0x5b6757['subType']){if(!_0x5b6757['attributes']||!_0x5b6757['attributes']['tablePasteChainId'])continue;const _0x5a13aa=_0x5b6757['attributes']['markerAttributes'];if(_0x5a13aa&&Object['keys'](_0x5a13aa)['length'])continue;const _0x3747c7=_0x5b6757['attributes']['tablePasteChainId'];let _0x5045ec=!0x0,_0x208d0e=!0x0;for(const _0x4234ac of _0x51f275)if(_0x4234ac['subType']&&_0x4234ac['subType']['startsWith']('tablePaste')){if(!_0x4234ac['attributes']['tablePasteChainId']){_0x208d0e=!0x1;break;}if(_0x4234ac['id']!=_0x5b6757['id']&&_0x4234ac['attributes']['tablePasteChainId']==_0x3747c7){_0x5045ec=!0x1;break;}}_0x208d0e&&_0x5045ec&&(_0x5b6757['removeMarkers'](),_0x27b80f=!0x0);}}for(const _0x5785d6 of _0x2a696a)_0x86e595['remove'](_0x5785d6);for(const _0xdf057e of _0xf3bf4)_0x86e595['unwrap'](_0xdf057e);return _0x27b80f;}),_0xc6e687['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x515453,_0x1e7735)=>_0x9cf1b5(_0x515453),'converterPriority':'high'}),_0xc6e687['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xb509b3,_0x1eed0f)=>_0x1eed0f['options']['showSuggestionHighlights']?_0x9cf1b5(_0xb509b3,!0x1):null,'converterPriority':'high'});const _0xc07147=_0xc6e687['editing']['view'];this['listenTo'](_0xc07147['document'],'clipboardOutput',(_0x18be91,_0x176cad)=>{const _0x1be573=[];for(const _0xb81051 of _0xc07147['createRangeIn'](_0x176cad['content'])['getItems']())_0xb81051['is']('element','suggestion-td')&&_0x1be573['push'](_0xb81051);_0xc07147['change'](_0x340ce5=>{for(const _0x44f3f6 of _0x1be573)_0x340ce5['move'](_0x340ce5['createRangeIn'](_0x44f3f6),_0x340ce5['createPositionBefore'](_0x44f3f6)),_0x340ce5['remove'](_0x44f3f6);});});}}function ke(_0x1f372f){if(_0x1f372f['isEmpty'])return!0x0;const _0x2fb746=_0x1f372f['getChild'](0x0);return _0x2fb746['is']('element','paragraph')&&_0x2fb746['isEmpty'];}function Re(_0x2cdc1b,_0x39651e={},_0x5826d1){for(const {isAnchor:_0x5063b9,cellHeight:_0x9b6545,cellWidth:_0x178b69}of _0x5826d1['createTableWalker'](_0x2cdc1b,{'includeAllSlots':!0x0,..._0x39651e}))if(!_0x5063b9||0x1!=_0x9b6545||0x1!=_0x178b69)return!0x1;return!0x0;}class Nt extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x49c72d=this['editor']['plugins']['get']('TrackChangesEditing');_0x49c72d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x49c72d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x49c72d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49c72d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x49c72d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x49c72d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x57fc39,_0x4e028d){const _0x4acaaa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cc404=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11895d=_0x4e028d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d1bda=_0x3cc404['getColumnGroupElement'](_0x11895d);let _0x1d9029=_0x4d1bda?_0x3cc404['getTableColumnsWidths'](_0x4d1bda):null,_0x553241=_0x11895d['getAttribute']('tableWidth')||null;const _0x9d295a=_0x4e028d['tableWidth']||_0x553241,_0x37d353=_0x4e028d['columnWidths']||_0x1d9029,_0x12d21f=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ab8be of _0x4acaaa['getSuggestions']()){const _0x14955d=_0x3ab8be['getContainedElement']();if('resizeTable'===_0x3ab8be['subType']&&_0x14955d===_0x11895d){_0x3ab8be['author']!==_0x12d21f&&_0x3ab8be['discard']();const _0x296df3=_0x3ab8be['data']['commandParams'];_0x553241=_0x296df3[0x0]['tableWidth'],_0x1d9029=_0x296df3[0x0]['columnWidths'];break;}}_0x57fc39({'table':_0x11895d,'tableWidth':_0x9d295a,'columnWidths':_0x37d353}),_0x4acaaa['markBlockFormat'](_0x11895d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x553241,'columnWidths':_0x1d9029}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x425aff){if('formatBlock'!=_0x425aff['type']&&'formatInline'!=_0x425aff['type'])return;const {data:_0x13c70b}=_0x425aff;if(_0x13c70b&&'resizeTable'===_0x13c70b['formatGroupId']){const _0x5d20a6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5d20a6)};}}}class Dt extends _0x48688f{['afterInit'](){const _0x212908=this['editor'];_0x212908['plugins']['has']('Template')&&_0x212908['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x48688f{['afterInit'](){const _0x2b5e88=this['editor'];if(!_0x2b5e88['commands']['get']('insertTableOfContents'))return;_0x2b5e88['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xd3d3d7=_0x2b5e88['plugins']['get']('TrackChangesEditing'),_0x849fcb=_0x2b5e88['locale'];_0xd3d3d7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14732a=>o(_0x849fcb,'ELEMENT_TABLE_OF_CONTENTS',_0x14732a));}}class $t extends _0x48688f{['afterInit'](){const _0x22c6ae=this['editor'];if(!_0x22c6ae['plugins']['has']('Title'))return;const _0x1c2224=_0x22c6ae['plugins']['get']('TrackChangesEditing');_0x1c2224['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x22c6ae['locale'],'ELEMENT_TITLE')),_0x22c6ae['model']['document']['registerPostFixer'](_0x41ae4f=>{let _0x3c3685=!0x1;const _0x29d98b=Array['from'](_0x22c6ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49e20b,data:_0xe82e4d}of _0x29d98b){const {group:_0x53371d}=_0x1c2224['_splitMarkerName'](_0x49e20b);if('suggestion'!==_0x53371d||!_0xe82e4d['newRange'])continue;const _0x3f388b=_0xe82e4d['newRange'],_0x449fe5=_0x3f388b['end']['nodeBefore'];if(!_0x449fe5||!_0x449fe5['is']('element','title-content'))continue;if(!_0x3f388b['start']['isTouching'](_0x3f388b['end']))continue;const _0x1522b5=_0x22c6ae['model']['schema']['getNearestSelectionRange'](_0x3f388b['end'],'forward');if(_0x1522b5&&_0x1522b5['isCollapsed']){const _0x335f3c=_0x41ae4f['createRange'](_0x3f388b['start'],_0x1522b5['start']);_0x335f3c['isEqual'](_0x3f388b)||(_0x41ae4f['updateMarker'](_0x49e20b,{'range':_0x335f3c}),_0x3c3685=!0x0);}_0x3c3685||(_0x41ae4f['removeMarker'](_0x49e20b),_0x3c3685=!0x0);}return _0x3c3685;});}}class Bt extends _0x48688f{['afterInit'](){const _0x45562e=this['editor'],_0x326cb1=_0x45562e['plugins']['get']('TrackChangesEditing');_0x45562e['plugins']['has']('UndoEditing')&&(_0x326cb1['enableCommand']('undo'),_0x326cb1['enableCommand']('redo'));}}class xt extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0x19d648=this['editor'];if(!_0x19d648['plugins']['has']('TableCaptionEditing'))return;_0x19d648['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x48688f{['tableProperties'];['tableCellProperties'];constructor(_0x52a0c5){super(_0x52a0c5),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 _0x3ee0a8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2fac7c of this['tableProperties'])_0x3ee0a8['enableCommand'](_0x2fac7c,(_0x39ba6d,_0x244d7d)=>{const _0x5d340d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2fac7c,[_0x5d340d],this['tableProperties'],'tableProperties',_0x39ba6d,_0x244d7d);});_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ee0a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2e8005,_0x17a764)=>this['handleDiscardAction'](this['tableProperties'],_0x2e8005,_0x17a764)),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3bfcb5 of this['tableCellProperties'])_0x3ee0a8['enableCommand'](_0x3bfcb5,(_0x2985e8,_0x28e662)=>{const _0x55b912=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3bfcb5,_0x55b912,this['tableCellProperties'],'tableCellProperties',_0x2985e8,_0x28e662);});_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ee0a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2cea48,_0x222226)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2cea48,_0x222226)),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ee0a8['descriptionFactory']['registerDescriptionCallback'](_0x50457e=>this['handleSuggestionDescription'](_0x50457e));}['_handlePropertyChange'](_0xbbc19a,_0x3d4665,_0x5bb739,_0x264f7a,_0x3431a2,_0x3bc3b1){const _0x1767a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3bc3b1['batch'],()=>{for(const _0xfd3498 of _0x3d4665){if(this['_getSuggestion'](_0xfd3498,_0x264f7a))_0x3431a2(_0x3bc3b1);else{const _0x2a3031={};for(const _0xfb7ebd of _0x5bb739){const _0x52ad0a=_0xfd3498['getAttribute'](_0xfb7ebd);void 0x0!==_0x52ad0a&&(_0x2a3031[_0xfb7ebd]=_0x52ad0a);}_0x3431a2(_0x3bc3b1),_0x1767a2['markBlockFormat'](_0xfd3498,{'commandParams':[_0x2a3031]},[],_0x264f7a);}}});}['handleDiscardAction'](_0x2b2d83,_0x5c3344,_0x1604af){const _0x51565a=_0x5c3344[0x0]['start']['nodeAfter'],_0x37c427=_0x1604af['commandParams'][0x0];this['editor']['model']['change'](_0x57ef74=>{for(const _0x156b22 of _0x2b2d83)void 0x0!==_0x37c427[_0x156b22]?_0x57ef74['setAttribute'](_0x156b22,_0x37c427[_0x156b22],_0x51565a):_0x57ef74['removeAttribute'](_0x156b22,_0x51565a);});}['handleSuggestionDescription'](_0x472ef3){if(_0x472ef3['data'])switch(_0x472ef3['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'](_0x1a6afa,_0x24c7f9){const _0x539996=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x57d03b of _0x539996['getSuggestions']({'skipNotAttached':!0x0})){const _0x202944=_0x57d03b['getContainedElement']();if(_0x57d03b['subType']===_0x24c7f9&&_0x202944===_0x1a6afa)return _0x57d03b;}return null;}}const m='$elementName';class p extends _0x48688f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x171a4a,_0x44b4d1,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(_0x32c20b){function _0x489e3b(_0x413f5e){return _0x413f5e['map'](_0x499a11=>String['fromCharCode'](_0x499a11))['join']('');}super(_0x32c20b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1f749a,_0x50a232,_0x45eaf9,_0x55dd78)=>{this['_model']['change'](()=>{for(const _0x5c9376 of[..._0x55dd78,..._0x45eaf9])this['_model']['markers']['has'](_0x5c9376)&&_0x32c20b['editing']['reconvertMarker'](_0x5c9376);});}),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']=_0x32c20b['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(),_0x32c20b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x32c20b['config']['get']('trackChanges.trackFormatChanges'),_0x32c20b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x32c20b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x32c20b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x489e3b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x489e3b([0x34,0x30,0x34,0x38,0x31,0x36,0x33,0x30]);}['init'](){const _0x172b9f=this['editor'],_0x3ab9b2=(_0xa5097f,_0x8ee671)=>{if('attribute'!=_0xa5097f)return'ck-suggestion-marker-'+_0xa5097f;const _0xf09cb6=_0x8ee671['split']('|')[0x0];return this['_isBlockAttribute'](_0xf09cb6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x172b9f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x21b408=>{const {id:_0xd62585,authorId:_0x412cb7,type:_0x36d5d5,subType:_0x338044}=this['_splitMarkerName'](_0x21b408['markerName']),_0xc9772b=['ck-suggestion-marker',_0x3ab9b2(_0x36d5d5,_0x338044)];let _0x1bab33=0xbb8;return this['activeMarkers']['includes'](_0x21b408['markerName'])&&(_0xc9772b['push']('ck-suggestion-marker--active'),_0x1bab33=0xbc2),'deletion'==_0x36d5d5&&(_0x1bab33+=0x5),{'classes':_0xc9772b,'attributes':{'data-suggestion':_0xd62585,'data-author-id':_0x412cb7},'priority':_0x1bab33};}}),_0x172b9f['conversion']['for']('dataDowncast')['add'](_0x3bf8a7=>{_0x3bf8a7['on']('addMarker:suggestion',(_0x58a548,_0x1ed06f,_0x536358)=>{if(!_0x536358['options']['showSuggestionHighlights'])return;const _0x3d01d3=_0x1ed06f['item'];if(!_0x3d01d3)return;const _0x2a987a=_0x536358['mapper']['toViewElement'](_0x3d01d3);_0x172b9f['model']['schema']['isObject'](_0x3d01d3)&&_0x2a987a&&!_0x2a987a['getCustomProperty']('widget')&&_0x2a987a['is']('containerElement')&&_0x3d3930(_0x2a987a,_0x536358['writer']);},{'priority':'high'});}),_0x172b9f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d5e62,_0x307bfb)=>{if(!_0x307bfb['options']['showSuggestionHighlights'])return null;const {type:_0x2df2b0,subType:_0xb7227e}=this['_splitMarkerName'](_0x5d5e62['markerName']);return{'classes':['ck-suggestion-marker',_0x3ab9b2(_0x2df2b0,_0xb7227e)],'priority':0xbb8};}});const _0x247339=({showActiveMarkers:_0x3b4353=!0x0,isAttributeSuggestion:_0x29f31f=!0x1}={})=>(_0x51813c,_0x2e8f47,_0x511949)=>{if(!_0x2e8f47['item'])return;const {id:_0x38d7b5,authorId:_0x35da92}=this['_splitMarkerName'](_0x2e8f47['markerName']);if(_0x29f31f){const _0x5c9556=this['_suggestions']['get'](_0x38d7b5),_0x407021=this['_getAttributeKey'](_0x5c9556);if(!this['_isBlockAttribute'](_0x407021))return;}if(_0x2e8f47['item']['is']('selection'))return void _0x511949['consumable']['consume'](_0x2e8f47['item'],_0x51813c['name']);const _0x25cd89=_0x511949['mapper']['toViewElement'](_0x2e8f47['item']);if(_0x2e8f47['item']['is']('element')&&_0x172b9f['model']['schema']['isBlock'](_0x2e8f47['item'])&&!_0x25cd89['getCustomProperty']('addHighlight')){_0x511949['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x25cd89),_0x511949['writer']['setAttribute']('data-suggestion',_0x38d7b5,_0x25cd89),_0x511949['writer']['setAttribute']('data-author-id',_0x35da92,_0x25cd89),_0x511949['mapper']['bindElementToMarker'](_0x25cd89,_0x2e8f47['markerName']),_0x3b4353&&(this['activeMarkers']['includes'](_0x2e8f47['markerName'])?_0x511949['writer']['addClass']('ck-suggestion-marker--active',_0x25cd89):_0x511949['writer']['removeClass']('ck-suggestion-marker--active',_0x25cd89));for(const _0x552cd6 of _0x172b9f['model']['createRangeIn'](_0x2e8f47['item'])['getItems']())_0x511949['consumable']['consume'](_0x552cd6,_0x51813c['name']);_0x511949['consumable']['consume'](_0x2e8f47['item'],_0x51813c['name']);}};_0x172b9f['conversion']['for']('dataDowncast')['add'](_0x247349=>{_0x247349['on']('addMarker:suggestion:formatBlock',(_0x58b884,_0x478c90,_0x333c9e)=>{_0x333c9e['options']['showSuggestionHighlights']&&_0x247339({'showActiveMarkers':!0x1})(_0x58b884,_0x478c90,_0x333c9e);},{'priority':'highest'});}),_0x172b9f['conversion']['for']('dataDowncast')['add'](_0x572ed4=>{_0x572ed4['on']('addMarker:suggestion:attribute',(_0x12dc82,_0x277fdf,_0x4cf9ff)=>{_0x4cf9ff['options']['showSuggestionHighlights']&&_0x247339({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x12dc82,_0x277fdf,_0x4cf9ff);},{'priority':'highest'});}),_0x172b9f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3ca87c,_0x1e2bb9)=>_0x1e2bb9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3ca87c['substr'](0xb)}}),_0x172b9f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3fbaa2,{writer:_0x389273})=>{let _0x5ab9aa='suggestion:'+_0x3fbaa2['getAttribute']('suggestion-type')+':'+_0x3fbaa2['getAttribute']('id');return _0x3fbaa2['getAttribute']('marker-count')&&(_0x5ab9aa+=':'+_0x3fbaa2['getAttribute']('marker-count')),_0x389273['createElement']('$marker',{'data-name':_0x5ab9aa});}}),_0x172b9f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0x37b352=>{_0x37b352['on']('addMarker:suggestion:formatBlock',_0x247339(),{'priority':'high'});}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0x2b2bfe=>{_0x2b2bfe['on']('addMarker:suggestion:attribute',_0x247339({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0x3919d3=>{_0x3919d3['on']('removeMarker:suggestion:formatBlock',(_0x3bc0d5,_0x468ccc,_0x53966f)=>{const _0x1d4d8c=_0x53966f['mapper']['markerNameToElements'](_0x468ccc['markerName']);if(_0x1d4d8c){for(const _0x2b92da of _0x1d4d8c)_0x2b92da['getCustomProperty']('addHighlight')||(_0x53966f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b92da),_0x53966f['writer']['removeAttribute']('data-suggestion',_0x2b92da),_0x53966f['writer']['removeAttribute']('data-author-id',_0x2b92da),_0x53966f['mapper']['unbindElementFromMarkerName'](_0x2b92da,_0x468ccc['markerName']));}},{'priority':'high'});}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0xcfee5b=>{_0xcfee5b['on']('removeMarker:suggestion:attribute',(_0x17d013,_0x51fe65,_0x68112f)=>{const _0x1d430f=_0x68112f['mapper']['markerNameToElements'](_0x51fe65['markerName']);if(!_0x1d430f)return;const {id:_0x37ace1}=this['_splitMarkerName'](_0x51fe65['markerName']),_0x587e48=this['_suggestions']['get'](_0x37ace1),_0x18e152=this['_getAttributeKey'](_0x587e48);if(this['_isBlockAttribute'](_0x18e152)){for(const _0x345de4 of _0x1d430f)_0x345de4['getCustomProperty']('addHighlight')||(_0x68112f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x345de4),_0x68112f['writer']['removeAttribute']('data-suggestion',_0x345de4),_0x68112f['writer']['removeAttribute']('data-author-id',_0x345de4),_0x68112f['mapper']['unbindElementFromMarkerName'](_0x345de4,_0x51fe65['markerName']));}},{'priority':'high'});}),_0x172b9f['model']['document']['registerPostFixer'](_0x327cbd=>{let _0x593af5=!0x1;const _0x5e2846=Array['from'](_0x172b9f['model']['document']['differ']['getChangedMarkers']()),_0x5951bc=new Set();for(const {name:_0xa7b5b9,data:_0x306329}of _0x5e2846){const {group:_0x53642a,type:_0x3ba118,subType:_0x547de1,id:_0x5afb12}=this['_splitMarkerName'](_0xa7b5b9);if('suggestion'!==_0x53642a)continue;const _0x55270c=this['_suggestions']['get'](_0x5afb12);if(null!=_0x306329['newRange']){'formatInline'==_0x3ba118&&(_0x593af5=_0x593af5||Ut(_0x306329['newRange'],_0xa7b5b9,_0x327cbd,_0x172b9f['model']['schema']));const _0x1bd612='attribute'==_0x3ba118&&this['_isBlockAttribute'](_0x547de1['split']('|')[0x0]);if(_0x306329['newRange']['isCollapsed']||'$graveyard'==_0x306329['newRange']['root']['rootName']||'formatBlock'==_0x3ba118&&!Ft(_0x306329['newRange'])||_0x1bd612&&!Ft(_0x306329['newRange'])||'deletion'==_0x3ba118&&!(!Vt(_0x2f067d=_0x306329['newRange'])&&!function(_0x45ea89){return _0x45ea89['start']['parent']==_0x45ea89['end']['nodeBefore']&&_0x45ea89['start']['isAtEnd'];}(_0x2f067d)))_0x327cbd['removeMarker'](_0xa7b5b9),_0x593af5=!0x0;else{if(!_0x55270c||!_0x55270c['isInContent'])continue;if(_0x306329['newRange']&&_0x306329['oldRange']&&_0x306329['newRange']['isEqual'](_0x306329['oldRange']))continue;_0x5951bc['add'](_0x55270c);}}}var _0x2f067d;return _0x5951bc['size']>0x0&&(_0x593af5=!!this['_joinWithAdjacentSuggestions'](_0x5951bc)||_0x593af5),_0x593af5;}),_0x172b9f['model']['document']['registerPostFixer'](_0x4c7e77=>{let _0x132c8a=!0x1;for(const _0x1710cb of _0x172b9f['model']['document']['differ']['getChanges']())if('insert'==_0x1710cb['type'])for(const _0x1a657d of this['_suggestions']['values']()){if(_0x1a657d['isMultiRange']||!_0x1a657d['isInContent'])continue;const _0x3fb4dc='formatBlock'==_0x1a657d['type'],_0x5cd776=this['_getAttributeKey'](_0x1a657d),_0x1a5244=_0x5cd776&&this['_isBlockAttribute'](_0x5cd776);if(!_0x3fb4dc&&!_0x1a5244)continue;const _0x12d099=_0x1a657d['getFirstRange']();if(_0x12d099['start']['parent']!=_0x12d099['end']['parent']&&!_0x12d099['end']['isAtEnd']){const _0x46ab79=_0x172b9f['model']['createPositionAt'](_0x12d099['start']['nodeAfter'],'end'),_0x491308=_0x172b9f['model']['createRange'](_0x12d099['start'],_0x46ab79);_0x4c7e77['updateMarker'](_0x1a657d['getFirstMarker'](),{'range':_0x491308}),_0x132c8a=!0x0;}}return _0x132c8a;}),_0x172b9f['model']['document']['registerPostFixer'](_0xaf4011=>this['_processAttributeChanges'](_0xaf4011)),_0x172b9f['model']['document']['registerPostFixer'](_0x3cc925=>!_0x3cc925['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3cc925)),_0x172b9f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x172b9f['model']['document']['on']('change:data',(_0x50c720,_0x36934f)=>{if(!_0x36934f['isLocal']||_0x36934f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x376e19=_0x172b9f['model']['document']['differ']['getChanges']();if(0x0==_0x376e19['length'])return;const _0x4a3140=[],_0x289332=_0x376e19['filter'](_0x281a64=>'attribute'==_0x281a64['type']),_0x2732fe=_0x376e19['filter'](_0x2bba70=>'insert'==_0x2bba70['type']&&'$text'!=_0x2bba70['name']);for(const _0x477a5c of _0x289332)this['_isRegisteredAttribute'](_0x477a5c['attributeKey'])&&_0x4a3140['push']({'key':_0x477a5c['attributeKey'],'newValue':_0x477a5c['attributeNewValue'],'oldValue':_0x477a5c['attributeOldValue'],'range':Pt(_0x477a5c['range'],_0x172b9f['model'])});for(const _0x27e6a9 of _0x2732fe){if('rename'!=_0x27e6a9['action']&&'refresh'!=_0x27e6a9['action'])continue;const _0x494a91=Lt(_0x27e6a9['position']['nodeAfter'],_0x172b9f['model']),_0x560401=_0x27e6a9['before'];'rename'==_0x27e6a9['action']&&_0x4a3140['push']({'key':m,'newValue':_0x27e6a9['name'],'oldValue':_0x560401['name'],'range':_0x494a91});for(const [_0x16a98e,_0xca10f9]of _0x560401['attributes']){if(!this['_isRegisteredAttribute'](_0x16a98e))continue;const _0xde795f=_0x27e6a9['attributes']['get'](_0x16a98e);_0xca10f9!==_0xde795f&&_0x4a3140['push']({'key':_0x16a98e,'newValue':_0xde795f,'oldValue':_0xca10f9,'range':_0x494a91});}for(const [_0x4acebc,_0x583247]of _0x27e6a9['attributes'])this['_isRegisteredAttribute'](_0x4acebc)&&(_0x560401['attributes']['has'](_0x4acebc)||_0x4a3140['push']({'key':_0x4acebc,'newValue':_0x583247,'oldValue':null,'range':_0x494a91}));}0x0!=_0x4a3140['length']&&_0x172b9f['model']['enqueueChange'](_0x36934f,_0x4cabe8=>{const _0x2c6cc0=_0x2120b6();for(const {range:_0x406273,key:_0x28ff52,oldValue:_0x25e583,newValue:_0x3704f0}of _0x4a3140)this['markAttributeChange'](_0x406273,_0x28ff52,_0x25e583,_0x3704f0,{'groupId':_0x2c6cc0});this['_reduceExistingSuggestions'](_0x4cabe8,_0x4a3140);});},{'priority':'lowest'}),_0x172b9f['model']['markers']['on']('update:suggestion',(_0x45c57d,_0x513414,_0x902846)=>{if(null==_0x902846){const {id:_0x2e7804}=this['_splitMarkerName'](_0x513414['name']),_0x3ef4c6=this['_suggestions']['get'](_0x2e7804);_0x3ef4c6&&_0x3ef4c6['addMarkerName'](_0x513414['name']);}}),_0x172b9f['model']['document']['on']('change:data',()=>{const _0x59d791=Array['from'](_0x172b9f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x55c007=>'suggestion'===this['_splitMarkerName'](_0x55c007['name'])['group']);if(0x0===_0x59d791['length'])return;_0x59d791['sort']((_0x2eb459,_0x1d0f2a)=>{const _0x5b8ae6=_0x2eb459['data']['oldRange'],_0x4cb55b=_0x1d0f2a['data']['oldRange'];return null===_0x5b8ae6&&null===_0x4cb55b?0x0:null===_0x5b8ae6&&null!==_0x4cb55b?-0x1:null!==_0x5b8ae6&&null===_0x4cb55b?0x1:_0x5b8ae6['start']['isBefore'](_0x4cb55b['start'])?-0x1:0x1;});const _0x11079e=new Set(),_0x2cd39d=new Set();for(const {name:_0x3cea7f,data:_0xda84f7}of _0x59d791){const {id:_0x599a7e}=this['_splitMarkerName'](_0x3cea7f);if(null===_0xda84f7['oldRange']){const _0x106775=this['_handleNewSuggestionMarker'](_0x3cea7f);_0x2cd39d['add'](_0x106775);}else{const _0x242f05=this['_suggestions']['get'](_0x599a7e);null!==_0xda84f7['newRange']||_0x242f05['isInContent']?(_0x11079e['add'](_0x242f05['head']),_0x2cd39d['add'](_0x242f05)):this['_removeSuggestion'](_0x242f05);}}_0x2cd39d['size']>0x0&&this['_refreshSuggestionsChain'](_0x2cd39d);for(const _0x335749 of _0x11079e)this['fire']('suggestionChanged',_0x335749);}),_0x172b9f['model']['on']('applyOperation',(_0x2672f6,_0x191fd2)=>{const _0x5d3b39=_0x191fd2[0x0];if(!this['_suggestions']['size'])return;if(!_0x5d3b39['isDocumentOperation'])return;if(_0x5d3b39['batch']['isUndo']||!_0x5d3b39['batch']['isLocal'])return;let _0x5141bf,_0x46c1f0;switch(_0x5d3b39['type']){case'insert':_0x5141bf=_0x172b9f['model']['createPositionAt'](_0x5d3b39['position']),_0x46c1f0=_0x5141bf['getShiftedBy'](_0x5d3b39['howMany']);break;case'split':_0x5141bf=_0x172b9f['model']['createPositionAt'](_0x5d3b39['splitPosition']),_0x46c1f0=_0x172b9f['model']['createPositionAt'](_0x5d3b39['moveTargetPosition']);break;case'move':_0x5141bf=_0x172b9f['model']['createPositionAt'](_0x5d3b39['targetPosition']),_0x46c1f0=_0x5141bf['getShiftedBy'](_0x5d3b39['howMany']);break;default:return;}const _0x3328b7=_0x172b9f['model']['createRange'](_0x5141bf,_0x46c1f0);_0x172b9f['model']['change'](()=>{for(const {suggestion:_0x515d12,meta:_0x459d18}of this['_findSuggestions'](_0x3328b7)){if(_0x515d12['isMultiRange'])continue;if('formatInline'==_0x515d12['type'])continue;const _0xbd0cb7=this['_getAttributeKey'](_0x515d12);if(_0xbd0cb7&&this['_isBlockAttribute'](_0xbd0cb7)&&'split'!=_0x5d3b39['type'])continue;const _0x3464ab=_0x515d12['data']&&_0x515d12['data']['multipleBlocks'];('formatBlock'!=_0x515d12['type']||'split'==_0x5d3b39['type']&&!_0x3464ab)&&(_0x459d18['containsRangeInObject']||'insertion'==_0x515d12['type']&&_0x459d18['isOwn']||_0x515d12['getFirstRange']()['containsRange'](_0x3328b7)&&this['_breakSuggestionMarker'](_0x515d12,_0x5141bf,_0x46c1f0));}});},{'priority':'lowest'}),_0x172b9f['model']['on']('deleteContent',(_0x1565da,_0x1882a2)=>{const _0x5b1080=_0x1882a2[0x0],_0xa99a22=_0x1882a2[0x1];if(_0xa99a22&&_0xa99a22['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5b1080['isCollapsed'])return;const _0x3e4407=_0x172b9f['model']['schema'],{start:_0xed0be2,end:_0x1ebd83}=_0x5b1080['getFirstRange'](),_0x169f59=_0xed0be2['nodeAfter']&&_0x3e4407['isLimit'](_0xed0be2['nodeAfter'])?null:_0x3e4407['getNearestSelectionRange'](_0xed0be2,'forward'),_0x5b51a2=_0x1ebd83['nodeBefore']&&_0x3e4407['isLimit'](_0x1ebd83['nodeBefore'])?null:_0x3e4407['getNearestSelectionRange'](_0x1ebd83,'backward'),_0x442223=_0x172b9f['model']['createRange'](_0x169f59?_0x169f59['start']:_0xed0be2,_0x5b51a2?_0x5b51a2['end']:_0x1ebd83);_0x172b9f['model']['change'](_0xf0f0f4=>{this['markDeletion'](_0x442223);const _0x167c0c=_0x172b9f['model']['schema']['getNearestSelectionRange'](_0x442223['start']);_0x5b1080['is']('documentSelection')?_0xf0f0f4['setSelection'](_0x167c0c):_0x5b1080['setTo'](_0x167c0c);}),_0x1565da['stop']();},{'priority':_0xbff88b['normal']+0xa}),_0x172b9f['model']['on']('insertContent',(_0x39927f,_0x15c96f)=>{const _0x178a3b=_0x15c96f[_0x15c96f['length']-0x1];_0x178a3b&&_0x178a3b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x172b9f['model']['change'](()=>{let _0x1a29b0=_0x172b9f['model']['insertContent'](_0x15c96f[0x0],_0x15c96f[0x1],_0x15c96f[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a29b0)return;_0x39927f['return']=_0x1a29b0['clone']();const _0x5e48cd=_0x1a29b0['end']['nodeBefore'],_0x203e2e=_0x172b9f['model']['schema'];_0x5e48cd&&_0x203e2e['isBlock'](_0x5e48cd)&&!_0x203e2e['isObject'](_0x5e48cd)&&(_0x1a29b0=_0x172b9f['model']['createRange'](_0x1a29b0['start'],_0x172b9f['model']['createPositionAt'](_0x5e48cd,'end'))),this['markInsertion'](_0x1a29b0);}),_0x39927f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xb3501c=new x(_0x172b9f,this['_suggestions']);_0x172b9f['commands']['add']('acceptSuggestion',_0xb3501c),this['enableCommand']('acceptSuggestion');const _0x2b0c53=new R(_0x172b9f,this['_suggestions']);_0x172b9f['commands']['add']('discardSuggestion',_0x2b0c53),this['enableCommand']('discardSuggestion'),_0x172b9f['commands']['add']('acceptAllSuggestions',new E(_0x172b9f,_0xb3501c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x172b9f['commands']['add']('discardAllSuggestions',new E(_0x172b9f,_0x2b0c53,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x172b9f['commands']['add']('acceptSelectedSuggestions',new O(_0x172b9f,_0xb3501c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x172b9f['commands']['add']('discardSelectedSuggestions',new O(_0x172b9f,_0x2b0c53,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1e9fb1=_0x172b9f['plugins']['get']('CommentsRepository');this['listenTo'](_0x1e9fb1,'addComment',(_0x4ae56b,{threadId:_0xe33035})=>{const _0x4de7a7=this['_suggestions']['get'](_0xe33035);_0x4de7a7&&_0x4de7a7['commentThread']&&0x1===_0x4de7a7['commentThread']['length']&&this['_updateSuggestionData'](_0xe33035,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1e9fb1,'removeComment',(_0x161bc0,{threadId:_0x6da820})=>{const _0x371195=this['_suggestions']['get'](_0x6da820);_0x371195&&_0x371195['commentThread']&&!_0x371195['commentThread']['length']&&this['_updateSuggestionData'](_0x6da820,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x370a99){if(this['_adapter'])throw new _0x592c71('track-changes-adapter-already-set',this);this['_adapter']=_0x370a99;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xfb7038=!0x1,toJSON:_0x18ea73=!0x1}={}){const _0x3c08ea=[];for(const _0x3ac8fb of this['_suggestions']['values']())_0xfb7038&&!_0x3ac8fb['isInContent']||_0x3c08ea['push'](_0x3ac8fb);return _0x18ea73?_0x3c08ea['map'](_0x487d20=>_0x487d20['toJSON']()):_0x3c08ea;}['getSuggestion'](_0x1924c4){const _0xa79362=this['_suggestions']['get'](_0x1924c4);if(!_0xa79362)throw new _0x592c71('track-changes-suggestion-not-found',this);return _0xa79362;}['hasSuggestion'](_0x48d57c){return this['_suggestions']['has'](_0x48d57c);}['addSuggestionData'](_0x28a41d){const {authorId:_0x5d6280,id:_0xb5518f,attributes:_0x94241f}=_0x28a41d,[_0x498abb,_0x4c47e6]=_0x28a41d['type']['split'](':'),_0xf0abc3=this['_suggestions']['get'](_0xb5518f)||this['_createSuggestion'](_0x498abb,_0x4c47e6,_0xb5518f,_0x5d6280,_0x94241f);if(this['_addThreadToSuggestion'](_0xf0abc3),this['_checkSuggestionCorrectness'](_0xf0abc3,_0x498abb,_0x4c47e6||null,_0x5d6280),_0xf0abc3['createdAt']=_0x28a41d['createdAt'],_0xf0abc3['_isDataLoaded']=!0x0,_0x94241f&&_0x94241f['@external']){const _0x407fa7=_0x94241f['@external'],_0x263519=this['_getExternalAuthor'](_0x407fa7['authorName']);_0xf0abc3['authoredAt']=_0x407fa7['createdAt'],_0xf0abc3['author']=_0x263519,_0xf0abc3['isExternal']=!0x0;}else _0xf0abc3['authoredAt']=_0x28a41d['createdAt'];switch(_0x28a41d['data']&&(_0xf0abc3['data']=_0x28a41d['data']),_0x28a41d['attributes']&&(_0xf0abc3['attributes']=_0x28a41d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf0abc3['_saved']=!0x0),this['_suggestionState']['get'](_0xf0abc3)){case'notReady':this['_suggestionState']['set'](_0xf0abc3,'dataReady');break;case'markerReady':_0xf0abc3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf0abc3])),this['_refreshSuggestionsChain'](new Set([_0xf0abc3])),this['_suggestionState']['set'](_0xf0abc3,'ready'),this['fire']('suggestionLoaded',_0xf0abc3)):this['_suggestionState']['set'](_0xf0abc3,'removed');}return _0xf0abc3;}['acceptSuggestion'](_0x565b0d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x78cd3a of _0x565b0d['getAllAdjacentSuggestions']())_0x78cd3a['accept']();});});}['discardSuggestion'](_0x4ef518){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x135e79 of _0x4ef518['getAllAdjacentSuggestions']())_0x135e79['discard']();});});}['enableCommand'](_0x2f23bf,_0x189779){const _0x4273d1=this['editor']['commands']['get'](_0x2f23bf);if(!_0x4273d1)throw new _0x592c71('track-changes-command-not-found',this,{'commandName':_0x2f23bf});if(this['_enabledCommands']['has'](_0x4273d1))throw new _0x592c71('track-changes-enable-command-twice',this,{'commandName':_0x2f23bf});this['_enabledCommands']['add'](_0x4273d1),_0x189779&&_0x4273d1['on']('execute',(_0x2f149c,_0x342dc7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x342dc7['length']>0x0&&_0x342dc7[_0x342dc7['length']-0x1]&&_0x342dc7[_0x342dc7['length']-0x1]['forceDefaultExecution']?_0x342dc7['pop']():(_0x2f149c['return']=_0x189779((..._0x318ef6)=>_0x4273d1['execute'](..._0x318ef6,{'forceDefaultExecution':!0x0}),..._0x342dc7),_0x2f149c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x428e19){let _0x2856ff,_0x51ab8f;const _0x4b1f9d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2856ff=_0x428e19();}catch(_0x586058){_0x51ab8f=_0x586058;}return _0x4b1f9d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x51ab8f&&_0x592c71['rethrowUnexpectedError'](_0x51ab8f,this),_0x2856ff;}['markInsertion'](_0x4fe162,_0x3954e4=null,_0x17a049={}){if(_0x4fe162['isCollapsed'])return null;const _0x48411b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x13cc7d,meta:_0x480a49}of this['_findSuggestions'](_0x4fe162,'insertion'))if(_0x480a49['isOwn']){if(!_0x480a49['isNextTo']){if(_0x480a49['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x13cc7d,_0x17a049))continue;return _0x13cc7d;}if(qt(_0x13cc7d,_0x17a049))return _0x13cc7d;this['_breakSuggestionMarker'](_0x13cc7d,_0x4fe162['start'],_0x4fe162['end']);break;}if(_0x3954e4==_0x13cc7d['subType']&&qt(_0x13cc7d,_0x17a049)){const _0x4bd9a6=_0x13cc7d['getFirstRange']();return _0x4bd9a6['start']['isEqual'](_0x4fe162['end'])?this['_setSuggestionRange'](_0x13cc7d,this['_model']['createRange'](_0x4fe162['start'],_0x4bd9a6['end'])):this['_setSuggestionRange'](_0x13cc7d,this['_model']['createRange'](_0x4bd9a6['start'],_0x4fe162['end'])),_0x13cc7d;}}const _0x17eefa=_0x2120b6(),_0x24a5b6=_0x48411b['id'],_0x5d7f6b=_0x3954e4?'insertion:'+_0x3954e4:'insertion',_0x22312a=this['_setSuggestionData']({'id':_0x17eefa,'type':_0x5d7f6b,'createdAt':new Date(),'authorId':_0x24a5b6,'attributes':_0x17a049});return this['_addSuggestionMarker'](_0x5d7f6b,_0x17eefa,_0x24a5b6,_0x4fe162),_0x22312a;}['markMultiRangeInsertion'](_0x707e30,_0x2f7c29='multi',_0x5c68b8={}){const _0x439c2a=this['editor']['plugins']['get']('Users')['me'],_0x38437b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f7c29,'join');for(const _0x19d095 of this['getSuggestions']())if(_0x19d095['author']['id']==_0x439c2a['id']&&'insertion'==_0x19d095['type']&&_0x19d095['subType']==_0x2f7c29&&qt(_0x19d095,_0x5c68b8)&&(_0x38437b(_0x19d095['getRanges'](),_0x707e30)||_0x38437b(_0x707e30,_0x19d095['getRanges']()))){for(const _0x45816a of _0x707e30)_0x19d095['addRange'](_0x45816a);return _0x19d095;}for(const {suggestion:_0x2a1c43,meta:_0x23ca16}of this['_findSuggestions'](_0x707e30,'insertion')){if(!_0x23ca16['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x23ca16['containsRangeInObject'])continue;if(!qt(_0x2a1c43,_0x5c68b8))continue;let _0x502f9b=!0x0;for(const _0x52176a of _0x2a1c43['getRanges']())for(const _0x5dd700 of _0x707e30)if(!_0x52176a['containsRange'](_0x5dd700)){_0x502f9b=!0x1;break;}if(_0x502f9b)return _0x2a1c43;}const _0xfca8c5=_0x2120b6(),_0x445688=_0x439c2a['id'],_0x35da30='insertion:'+_0x2f7c29,_0x1cea48=this['_setSuggestionData']({'id':_0xfca8c5,'type':_0x35da30,'createdAt':new Date(),'authorId':_0x445688,'attributes':_0x5c68b8});for(const _0x39d9c5 of _0x707e30)this['_addSuggestionMarker'](_0x35da30,_0xfca8c5,_0x445688,_0x39d9c5,u['getMultiRangeId']());return _0x1cea48;}['markInlineFormat'](_0x46115b,_0x1c2a2d,_0x2f50b7=null,_0x37c78a={}){if(_0x2f50b7=_0x2f50b7||Gt(_0x1c2a2d),_0x46115b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x144c7d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f50b7,'accept');return this['forceDefaultExecution'](()=>_0x144c7d([_0x46115b],_0x1c2a2d,_0x37c78a)),null;}const _0x1d5315=this['editor']['plugins']['get']('Users')['me'],_0x39d9c9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x28de1b,meta:_0x28592d}of this['_findSuggestions'](_0x46115b,'insertion'))_0x28592d['isOwn']&&!_0x28592d['isInsideObject']&&_0x39d9c9['push'](..._0x28de1b['getRanges']());}const _0x46f233=function(_0x286e32,_0x2bb001){const _0xe9a84d=[];for(const _0x313283 of _0x2bb001){const _0x336989=_0x286e32['getIntersection'](_0x313283);_0x336989&&_0xe9a84d['push'](_0x336989);}return _0xe9a84d;}(_0x46115b,_0x39d9c9),_0x1d7cdd=function(_0x4553ba,_0x341112){const _0x2d8e5c=[_0x4553ba];for(const _0x231dbe of _0x341112){let _0x20e233=0x0;for(;_0x20e233<_0x2d8e5c['length'];){const _0x56367f=_0x2d8e5c[_0x20e233]['getDifference'](_0x231dbe);_0x2d8e5c['splice'](_0x20e233,0x1,..._0x56367f),_0x20e233+=_0x56367f['length'];}}return _0x2d8e5c;}(_0x46115b,_0x39d9c9);_0x46f233['length']&&this['_model']['change'](()=>{for(const _0x15f8de of _0x46f233){const _0x3369be=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f50b7,'accept');this['forceDefaultExecution'](()=>_0x3369be([_0x15f8de],_0x1c2a2d,_0x37c78a));}});for(const _0x36fe5d of _0x1d7cdd){let _0x3cd9e7=null,_0x4c2d02=_0x36fe5d['start'],_0x501f26=_0x36fe5d['end'];for(const {suggestion:_0xd9875a,meta:_0x518fc9}of this['_findSuggestions'](_0x36fe5d,'formatInline')){if(!_0x518fc9['isOwn'])continue;if(_0xd9875a['subType']!=_0x2f50b7)continue;if(!qt(_0xd9875a,_0x37c78a))continue;const _0x431a12=_0xd9875a['getFirstRange']();if(_0x431a12['containsRange'](_0x36fe5d,!0x0))return null;_0x4c2d02=_0x4c2d02['isBefore'](_0x431a12['start'])?_0x4c2d02:_0x431a12['start'],_0x501f26=_0x501f26['isAfter'](_0x431a12['end'])?_0x501f26:_0x431a12['end'],_0x3cd9e7?_0x431a12['start']['isBefore'](_0x3cd9e7['getFirstRange']()['start'])?(_0x3cd9e7['removeMarkers'](),_0x3cd9e7=_0xd9875a):_0xd9875a['removeMarkers']():_0x3cd9e7=_0xd9875a;}const _0x87bc1a=this['_model']['createRange'](_0x4c2d02,_0x501f26);if(_0x3cd9e7)this['_setSuggestionRange'](_0x3cd9e7,_0x87bc1a);else{const _0x20cd17=_0x2120b6(),_0x2c944b=_0x1d5315['id'];this['_setSuggestionData']({'id':_0x20cd17,'type':'formatInline:'+_0x2f50b7,'data':_0x1c2a2d,'createdAt':new Date(),'authorId':_0x2c944b,'attributes':_0x37c78a}),this['_addSuggestionMarker']('formatInline:'+_0x2f50b7,_0x20cd17,_0x2c944b,_0x87bc1a);}}return null;}['markBlockFormat'](_0x32beb1,_0x3006e2,_0x25b99e=[],_0x534a31=null,_0x36a503={}){_0x3006e2['formatGroupId']||(_0x3006e2['formatGroupId']=_0x3006e2['commandName']),_0x3006e2['multipleBlocks']=_0x32beb1['is']('range'),_0x534a31=_0x534a31||Gt(_0x3006e2);const _0x823923=_0x25b99e['map'](_0x4caa48=>Lt(_0x4caa48,this['_model'])),_0x3b0137=_0x32beb1['is']('range')?_0x32beb1:Lt(_0x32beb1,this['_model']);if('never'===this['_trackFormatChanges']){const _0xec4af1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x534a31,'accept');return this['forceDefaultExecution'](()=>_0xec4af1([_0x3b0137],_0x3006e2,_0x36a503)),null;}_0x823923['push'](_0x3b0137);let _0x8a5d7c=!0x0;for(const _0x7255c0 of _0x823923)if(!this['_rangeIsInLocalUserInsertion'](_0x7255c0)){_0x8a5d7c=!0x1;break;}if(_0x8a5d7c&&'always'!==this['_trackFormatChanges']){const _0x3d2cbc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x534a31,'accept');return this['forceDefaultExecution'](()=>_0x3d2cbc([_0x3b0137],_0x3006e2,_0x36a503)),null;}let _0x3674a9=null,_0x5b426f=_0x3b0137['start'],_0x3c19a0=_0x3b0137['end'];for(const {suggestion:_0x221774,meta:_0x7c5218}of this['_findSuggestions'](_0x3b0137,'formatBlock')){if(!_0x7c5218['isOwn'])continue;if(_0x7c5218['isNextTo']||_0x7c5218['containsRangeInObject']||_0x7c5218['isInsideObject'])continue;if(_0x221774['data']['formatGroupId']!=_0x3006e2['formatGroupId'])continue;if(!qt(_0x221774,_0x36a503))continue;const _0x48fb4a=_0x221774['getFirstRange']();if(_0x221774['subType']==_0x534a31){if(_0x48fb4a['containsRange'](_0x3b0137,!0x0))return null;_0x5b426f=_0x5b426f['isBefore'](_0x48fb4a['start'])?_0x5b426f:_0x48fb4a['start'],_0x3c19a0=_0x3c19a0['isAfter'](_0x48fb4a['end'])?_0x3c19a0:_0x48fb4a['end'],_0x3674a9?_0x48fb4a['start']['isBefore'](_0x3674a9['getFirstRange']()['start'])?(_0x3674a9['removeMarkers'](),_0x3674a9=_0x221774):_0x221774['removeMarkers']():_0x3674a9=_0x221774;}else{const _0x1d3b8c=_0x3b0137['getIntersection'](_0x48fb4a);this['_cutOutSuggestionMarker'](_0x221774,_0x1d3b8c);}}const _0x40170f=this['editor']['plugins']['get']('Users')['me'],_0x3d5041=_0x2120b6(),_0x15699d=_0x40170f['id'];if(_0x3674a9)return this['_setSuggestionRange'](_0x3674a9,this['_model']['createRange'](_0x5b426f,_0x3c19a0)),_0x3674a9;{const _0x326225=this['_setSuggestionData']({'id':_0x3d5041,'type':'formatBlock:'+_0x534a31,'data':_0x3006e2,'createdAt':new Date(),'authorId':_0x15699d,'attributes':_0x36a503});return this['_addSuggestionMarker']('formatBlock:'+_0x534a31,_0x3d5041,_0x15699d,this['_model']['createRange'](_0x5b426f,_0x3c19a0)),_0x326225;}}['markMultiRangeBlockFormat'](_0x261760,_0x23d8bb,_0x12686f=[],_0x3cfedf=null,_0x3fab26={}){_0x23d8bb['formatGroupId']||(_0x23d8bb['formatGroupId']=_0x23d8bb['commandName']);const _0x516dac=_0x261760[0x0];_0x23d8bb['multipleBlocks']=_0x516dac['is']('range'),_0x3cfedf=_0x3cfedf||Gt(_0x23d8bb);const _0x59963f=_0x12686f['map'](_0x1d901e=>Lt(_0x1d901e,this['_model'])),_0x2e61d4=_0x516dac['is']('range')?_0x261760:_0x261760['map'](_0xb59edd=>Lt(_0xb59edd,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4b4144=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cfedf,'accept');return this['forceDefaultExecution'](()=>_0x4b4144(_0x2e61d4,_0x23d8bb,_0x3fab26)),null;}_0x59963f['push'](..._0x2e61d4);let _0x25e165=!0x0;for(const _0x4f1891 of _0x59963f)if(!this['_rangeIsInLocalUserInsertion'](_0x4f1891)){_0x25e165=!0x1;break;}if(_0x25e165&&'always'!==this['_trackFormatChanges']){const _0x59b653=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cfedf,'accept');return this['forceDefaultExecution'](()=>_0x59b653(_0x2e61d4,_0x23d8bb,_0x3fab26)),null;}const _0x12e846=this['editor']['plugins']['get']('Users')['me'];for(const _0x2baeaa of this['getSuggestions']()){if(_0x2baeaa['author']['id']!=_0x12e846['id'])continue;if('formatBlock'!=_0x2baeaa['type']||_0x2baeaa['data']['formatGroupId']!=_0x23d8bb['formatGroupId'])continue;if(!qt(_0x2baeaa,_0x3fab26))continue;const _0x54c94a=_0x2baeaa['subType']==_0x3cfedf;for(let _0x1b26ad=0x0;_0x1b26ad<_0x2e61d4['length'];_0x1b26ad++){const _0x11b721=_0x2e61d4[_0x1b26ad];for(const _0x2cc010 of _0x2baeaa['getMarkers']()){const _0x737d3=_0x2cc010['getRange']();if(_0x11b721['isEqual'](_0x737d3)){_0x54c94a?(_0x2e61d4['splice'](_0x1b26ad,0x1),_0x1b26ad--):_0x2baeaa['removeMarker'](_0x2cc010['name']);break;}}}}if(0x0==_0x2e61d4['length'])return null;const _0x5ef98e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cfedf,'join');for(const _0x34955b of this['getSuggestions']())if(_0x34955b['author']['id']==_0x12e846['id']&&'formatBlock'==_0x34955b['type']&&_0x34955b['data']['formatGroupId']==_0x23d8bb['formatGroupId']&&_0x34955b['subType']==_0x3cfedf&&qt(_0x34955b,_0x3fab26)&&(_0x5ef98e(_0x34955b['getRanges'](),_0x2e61d4)||_0x5ef98e(_0x2e61d4,_0x34955b['getRanges']()))){for(const _0x259949 of _0x2e61d4)_0x34955b['addRange'](_0x259949);return _0x34955b;}const _0x5d3bde=_0x2120b6(),_0x42c404=_0x12e846['id'],_0x6773b8='formatBlock:'+_0x3cfedf,_0x547e43=this['_setSuggestionData']({'id':_0x5d3bde,'type':_0x6773b8,'data':_0x23d8bb,'createdAt':new Date(),'authorId':_0x42c404,'attributes':_0x3fab26});for(const _0x1890b8 of _0x2e61d4)this['_addSuggestionMarker'](_0x6773b8,_0x5d3bde,_0x42c404,_0x1890b8,u['getMultiRangeId']());return _0x547e43;}['markDeletion'](_0x18b338,_0x5704c6=null,_0x5d7536={}){if(_0x18b338['isCollapsed'])return null;const _0x34c5f7=this['editor']['plugins']['get']('Users')['me'],_0x464cad=new _0x411321(_0x18b338['start'],_0x18b338['end']);for(const {suggestion:_0x28e3a6,meta:_0x129a5c}of this['_findSuggestions'](_0x464cad,'insertion'))if(_0x129a5c['isOwn']&&!_0x129a5c['isNextTo']){if(_0x28e3a6['isMultiRange']){const _0x501c40=_0x28e3a6['getRanges']()['filter'](_0x93a0a3=>'$graveyard'!=_0x93a0a3['root']['rootName']);_0x501c40['every'](_0x44fccb=>_0x464cad['containsRange'](_0x44fccb,!0x0))&&_0x28e3a6['discard']();if(_0x501c40['some'](_0x3cfb7c=>_0x3cfb7c['containsRange'](_0x464cad,!0x0))){const _0x54280e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5704c6,'accept');return this['forceDefaultExecution'](()=>_0x54280e([_0x464cad],null,_0x5d7536)),null;}}else{const _0x1e82b4=_0x464cad['getIntersection'](_0x28e3a6['getFirstRange']());null!==_0x1e82b4&&_0x28e3a6['_onDiscard']([_0x1e82b4],null,_0x5d7536);}}if(_0x464cad['detach'](),_0x464cad['isCollapsed']||'$graveyard'==_0x464cad['root']['rootName'])return null;let _0x3bd97f=null,_0x50635f=_0x464cad['start'],_0xb59fcf=_0x464cad['end'];const _0x37ae15=this['_findSuggestions'](_0x464cad,'deletion');for(const {suggestion:_0x91c75d,meta:_0x4cfab0}of _0x37ae15){const _0xac1796=this['_model']['createRange'](_0x50635f,_0xb59fcf);if(_0x4cfab0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4cfab0['containsRangeInObject']&&!_0x4cfab0['isInsideObject'])){if(_0x91c75d['isMultiRange']){if(!qt(_0x91c75d,_0x5d7536))continue;let _0x57308=!0x0;for(const _0x4e8e42 of _0x91c75d['getRanges']()){if(_0x4e8e42['containsRange'](_0xac1796,!0x0))return _0x91c75d;_0xac1796['containsRange'](_0x4e8e42)||(_0x57308=!0x1);}_0x57308&&_0x91c75d['discard']();}else{const _0x3f799f=_0x91c75d['getFirstRange']();if(_0x3f799f['containsRange'](_0xac1796,!0x0))return _0x91c75d;if(!qt(_0x91c75d,_0x5d7536)){_0xac1796['containsRange'](_0x3f799f)?_0x91c75d['removeMarkers']():_0x3f799f['containsPosition'](_0x50635f)?_0x50635f=_0x3f799f['end']:_0x3f799f['containsPosition'](_0xb59fcf)&&(_0xb59fcf=_0x3f799f['start']);continue;}_0x50635f=_0x50635f['isBefore'](_0x3f799f['start'])?_0x50635f:_0x3f799f['start'],_0xb59fcf=_0xb59fcf['isAfter'](_0x3f799f['end'])?_0xb59fcf:_0x3f799f['end'],_0x5d7536=Object['assign']({},_0x91c75d['attributes']),_0x3bd97f?_0x3f799f['start']['isBefore'](_0x3bd97f['getFirstRange']()['start'])?(_0x3bd97f['removeMarkers'](),_0x3bd97f=_0x91c75d):_0x91c75d['removeMarkers']():_0x3bd97f=_0x91c75d;}}}if(_0x3bd97f)return this['_setSuggestionRange'](_0x3bd97f,this['_model']['createRange'](_0x50635f,_0xb59fcf)),_0x3bd97f;{const _0x2477b4=_0x2120b6(),_0x31e305=this['_model']['createRange'](_0x50635f,_0xb59fcf),_0x5dce0e=_0x34c5f7['id'],_0x1e1a62=_0x5704c6?'deletion:'+_0x5704c6:'deletion',_0x564ab1=this['_setSuggestionData']({'id':_0x2477b4,'type':_0x1e1a62,'createdAt':new Date(),'authorId':_0x5dce0e,'attributes':_0x5d7536});return this['_addSuggestionMarker'](_0x1e1a62,_0x2477b4,_0x5dce0e,_0x31e305),_0x564ab1;}}['markMultiRangeDeletion'](_0x4b953a,_0x2f7a95='multi',_0x44e4dc={}){const _0x220806=this['editor']['plugins']['get']('Users')['me'],_0x5f50fd=_0x4b953a['map'](_0x1289fc=>new _0x411321(_0x1289fc['start'],_0x1289fc['end'])),_0x22bacb=new Set();for(const {suggestion:_0x2a3ea6,meta:_0x2054c4}of this['_findSuggestions'](_0x5f50fd,'insertion'))_0x2054c4['isOwn']&&!_0x2054c4['isNextTo']&&_0x22bacb['add'](_0x2a3ea6);for(const _0x576d15 of _0x22bacb)if(_0x576d15['isMultiRange']){const _0x32be5f=_0x576d15['getRanges']();(!_0x576d15['attributes']||!_0x576d15['attributes']['skipNestingCheck'])&&(_0x32be5f['every'](_0x4969d7=>_0x5f50fd['some'](_0x55fb6e=>_0x55fb6e['containsRange'](_0x4969d7,!0x0)))&&_0x576d15['discard']());if(_0x5f50fd['every'](_0x51e731=>_0x32be5f['some'](_0x23791f=>_0x23791f['containsRange'](_0x51e731,!0x0)))){const _0x1ab342=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f7a95,'accept');return this['forceDefaultExecution'](()=>_0x1ab342(_0x4b953a,null,_0x44e4dc)),null;}}else{const _0x4135ce=_0x576d15['getFirstRange']();_0x5f50fd['some'](_0x4667ed=>_0x4667ed['containsRange'](_0x4135ce,!0x0))&&_0x576d15['discard']();if(_0x5f50fd['every'](_0x3faf3c=>_0x4135ce['containsRange'](_0x3faf3c,!0x0))){const _0x54abfd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f7a95,'accept');return this['forceDefaultExecution'](()=>_0x54abfd(_0x5f50fd,null,_0x44e4dc)),null;}}const _0x4adec6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f7a95,'join');let _0x1774e7=null;for(const _0x3c6a55 of this['getSuggestions']())if(_0x3c6a55['author']['id']==_0x220806['id']&&_0x3c6a55['isInContent']&&'deletion'==_0x3c6a55['type']&&_0x3c6a55['subType']==_0x2f7a95&&qt(_0x3c6a55,_0x44e4dc)&&(_0x4adec6(_0x3c6a55['getRanges'](),_0x5f50fd)||_0x4adec6(_0x5f50fd,_0x3c6a55['getRanges']()))){if(_0x1774e7){if(_0x3c6a55['commentThread']&&_0x3c6a55['commentThread']['length'])continue;for(const _0x1e5bd4 of _0x3c6a55['getRanges']())_0x1774e7['isIntersectingWithRange'](_0x1e5bd4)||_0x1774e7['addRange'](_0x1e5bd4);_0x3c6a55['removeMarkers']();}else{_0x1774e7=_0x3c6a55;for(const _0x33b69e of _0x5f50fd)_0x3c6a55['isIntersectingWithRange'](_0x33b69e)||_0x3c6a55['addRange'](_0x33b69e);}}if(_0x1774e7)return _0x1774e7;_0x22bacb['clear']();for(const {suggestion:_0x288fd5,meta:_0xa1ce24}of this['_findSuggestions'](_0x5f50fd,'deletion'))_0xa1ce24['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa1ce24['containsRangeInObject']&&!_0xa1ce24['isInsideObject'])&&qt(_0x288fd5,_0x44e4dc)&&_0x22bacb['add'](_0x288fd5);for(const _0x4d4425 of _0x22bacb){const _0x47afb6=_0x4d4425['getRanges']();if(!_0x44e4dc||!_0x44e4dc['skipNestingCheck']){if(_0x5f50fd['every'](_0x5944c1=>_0x47afb6['some'](_0x45af5d=>_0x45af5d['containsRange'](_0x5944c1,!0x0))))return _0x4d4425;}(!_0x4d4425['attributes']||!_0x4d4425['attributes']['skipNestingCheck'])&&(_0x47afb6['every'](_0x18ca5c=>_0x5f50fd['some'](_0x530c94=>_0x530c94['containsRange'](_0x18ca5c,!0x0)))&&_0x4d4425['discard']());}const _0x2c1391=_0x2120b6(),_0x14f6b3=_0x220806['id'],_0x289763='deletion:'+_0x2f7a95,_0x13af14=this['_setSuggestionData']({'id':_0x2c1391,'type':_0x289763,'createdAt':new Date(),'authorId':_0x14f6b3,'attributes':_0x44e4dc});for(const _0xdc06cc of _0x5f50fd)_0xdc06cc['detach'](),_0xdc06cc['isCollapsed']||'$graveyard'==_0xdc06cc['root']['rootName']||this['_addSuggestionMarker'](_0x289763,_0x2c1391,_0x14f6b3,_0xdc06cc,u['getMultiRangeId']());return _0x13af14;}['markAttributeChange'](_0x11f34d,_0x785186,_0x2a5695,_0x2633ea,_0x8cf619){if(_0x11f34d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x17b8e5=this['editor']['plugins']['get']('Users')['me']['id'],_0x42b46d=Array['from'](this['_suggestions']['values']())['filter'](_0x5b2df8=>'attribute'==_0x5b2df8['type']&&_0x5b2df8['data']['key']==_0x785186&&_0x5b2df8['isIntersectingWithRange'](_0x11f34d));if('default'===this['_trackFormatChanges']){const _0x5673b9=this['_findSuggestions'](_0x11f34d,'insertion')['filter'](({meta:_0x110b29})=>_0x110b29['isOwn']&&!_0x110b29['isInsideObject']&&!_0x110b29['isNextTo'])['map'](({suggestion:_0x196a07})=>_0x196a07);_0x42b46d['unshift'](..._0x5673b9);}const _0x105b33=new Map([[_0x11f34d,_0x2a5695]]);for(const _0x147759 of _0x42b46d){const _0x5e9fe6='attribute'==_0x147759['type']?_0x147759['data']['oldValue']:void 0x0,_0x391698=_0x147759['getFirstRange'](),_0xe687c3=Array['from'](_0x105b33['keys']())['find'](_0x2ce3bc=>_0x2ce3bc['isIntersecting'](_0x391698));if(!_0xe687c3)continue;const _0x5905f5=_0xe687c3['getDifference'](_0x391698);this['_isBlockAttribute'](_0x785186)&&'insertion'==_0x147759['type']&&0x0!=_0x5905f5['length']||(_0x105b33['delete'](_0xe687c3),_0x5905f5['forEach'](_0x4f9ec8=>{_0x105b33['set'](_0x4f9ec8,_0x2a5695);}),'insertion'!=_0x147759['type']&&_0x5e9fe6!=_0x2633ea&&_0x105b33['set'](_0xe687c3['getIntersection'](_0x391698),_0x5e9fe6));}const _0x18776e=[];for(const [_0x1a38b7,_0x4ef695]of _0x105b33){const _0x255aab=_0x2120b6(),_0x241e41={'key':_0x785186,'oldValue':_0x4ef695,'newValue':_0x2633ea};_0x785186['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':_0x785186});const _0xc013f6=('attribute:'+(_0x785186+'|'+Gt({'newValue':_0x2633ea})))['substring'](0x0,0x3c),_0x1b0b95=this['_setSuggestionData']({'id':_0x255aab,'type':_0xc013f6,'data':_0x241e41,'createdAt':new Date(),'authorId':_0x17b8e5,'attributes':_0x8cf619});_0x18776e['push'](_0x1b0b95),this['_addSuggestionMarker'](_0xc013f6,_0x255aab,_0x17b8e5,_0x1a38b7);}return _0x18776e;}['enableDefaultAttributesIntegration'](_0x4cb764){this['enableCommand'](_0x4cb764,(_0x1fc32f,..._0x5cc102)=>{this['_recordAttributeChanges'](()=>{_0x1fc32f(..._0x5cc102);});});}['registerBlockAttribute'](_0x34519a){this['_blockAttributeKeys']['add'](_0x34519a);}['registerInlineAttribute'](_0x2159dd){this['_inlineAttributeKeys']['add'](_0x2159dd);}['_getAttributeKey'](_0x257cb9){return'attribute'==_0x257cb9['type']?_0x257cb9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x57b8e4,_0x2b0ed5){const _0xdbc1ad=_0x57b8e4['getFirstMarker']();this['_model']['change'](_0xc7b37a=>{_0xc7b37a['updateMarker'](_0xdbc1ad,{'range':_0x2b0ed5});});}['_addThreadToSuggestion'](_0x3af45b){const _0x198814=_0x3af45b['id'],_0xe1f133=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x198814)||this['_commentsRepository']['addCommentThread']({'channelId':_0xe1f133,'threadId':_0x198814,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e0d0e=this['_commentsRepository']['getCommentThread'](_0x198814);_0x4e0d0e['unbind']('isRemovable'),_0x4e0d0e['isRemovable']=!0x1,_0x3af45b['commentThread']=_0x4e0d0e;}['_checkSuggestionCorrectness'](_0x56d385,_0x240074,_0x548fd4,_0x5b702a){if(_0x56d385['type']!=_0x240074||_0x56d385['subType']!=_0x548fd4||_0x56d385['creator']['id']!=_0x5b702a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x592c71('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x352d13,_0x187c2c){const _0x5b75e4=_0x352d13['getFirstRange']();if(_0x187c2c['isEqual'](_0x5b75e4))_0x352d13['removeMarkers']();else{if(_0x5b75e4['containsRange'](_0x187c2c)){const _0x57e707=this['_model']['createPositionAt'](_0x187c2c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x352d13,this['_model']['createRange'](_0x5b75e4['start'],_0x57e707));const _0x1d029c=_0x2120b6(),_0x57b3d1=_0x352d13['creator']['id'],_0x39ffc5=_0x352d13['type']+':'+_0x352d13['subType'];this['_setSuggestionData']({'id':_0x1d029c,'type':_0x39ffc5,'createdAt':new Date(),'authorId':_0x57b3d1,'data':_0x352d13['data'],'attributes':_0x352d13['attributes']});const _0x929847=this['_model']['createPositionAt'](_0x187c2c['end']['parent'],'after'),_0x1d19e2=this['_model']['createRange'](_0x929847,_0x5b75e4['end']);this['_addSuggestionMarker'](_0x39ffc5,_0x1d029c,_0x57b3d1,_0x1d19e2);}else{if(_0x5b75e4['containsPosition'](_0x187c2c['start'])){const _0x36338e=this['_model']['createPositionAt'](_0x187c2c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x352d13,this['_model']['createRange'](_0x5b75e4['start'],_0x36338e));}else{const _0x2ef650=this['_model']['createPositionAt'](_0x187c2c['end']['parent'],'after');this['_setSuggestionRange'](_0x352d13,this['_model']['createRange'](_0x2ef650,_0x5b75e4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x94f82e){for(const {suggestion:_0x35ab91,meta:_0x4bff2c}of this['_findSuggestions'](_0x94f82e,'insertion')){if(!_0x4bff2c['isOwn'])continue;const _0x3dc1be=_0x35ab91['getRanges']();for(const _0x53b8d7 of _0x3dc1be)if(!_0x94f82e['getDifference'](_0x53b8d7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3a945b){const _0x515101=this['editor']['plugins']['get']('Users')['getUser'](_0x3a945b);if(!_0x515101)throw new _0x592c71('track-changes-user-not-found',this);return _0x515101;}['_getExternalAuthor'](_0x242697){const _0x4cadfb=this['editor']['plugins']['get']('Users'),_0x5b11f7=_0x39b023('external:'+_0x242697),_0x694e06=_0x4cadfb['getUser'](_0x5b11f7);return _0x694e06||_0x4cadfb['addUser']({'id':_0x5b11f7,'name':_0x242697});}['_createSuggestion'](_0x3d0c10,_0x150d9d,_0x269d76,_0x16560e,_0x5b9271){const _0x54d8ba=this['_getAuthorFromId'](_0x16560e),_0x3bcd39=this['_suggestionFactory']['buildSuggestion'](_0x3d0c10,_0x150d9d,_0x269d76,_0x54d8ba,_0x5b9271,_0x5d9c67=>{this['_updateSuggestionData'](_0x269d76,{'attributes':_0x5d9c67});const _0x4bcaab=this['getSuggestion'](_0x269d76);this['_joinWithAdjacentSuggestions'](new Set([_0x4bcaab])),this['_refreshSuggestionsChain'](new Set([_0x4bcaab]));});return this['listenTo'](_0x3bcd39,'accept',()=>{this['_updateSuggestionData'](_0x269d76,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3bcd39,'discard',()=>{this['_updateSuggestionData'](_0x269d76,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x269d76,_0x3bcd39),this['_suggestionState']['set'](_0x3bcd39,'notReady'),_0x3bcd39;}['_splitMarkerName'](_0x347965){const _0x559a0a=_0x347965['split'](':');return{'group':_0x559a0a[0x0],'type':_0x559a0a[0x1],'subType':_0x559a0a['length']>=0x5?_0x559a0a[0x2]:null,'id':_0x559a0a['length']<0x5?_0x559a0a[0x2]:_0x559a0a[0x3],'authorId':_0x559a0a['length']<0x5?_0x559a0a[0x3]:_0x559a0a[0x4],'markerCount':0x6==_0x559a0a['length']?_0x559a0a[0x5]:null};}['_breakSuggestionMarker'](_0xe3b0d2,_0x1df6ce,_0x3860cf){const _0x5454d7=_0xe3b0d2['getFirstRange'](),_0x4dd6a9=_0x5454d7['start'],_0x20ccac=_0x5454d7['end'];this['_setSuggestionRange'](_0xe3b0d2,this['_model']['createRange'](_0x4dd6a9,_0x1df6ce));const _0x53ca2f=_0x2120b6(),_0x57a6d7=_0xe3b0d2['creator']['id'],_0x38d079=_0xe3b0d2['type']+(_0xe3b0d2['subType']?':'+_0xe3b0d2['subType']:'');this['_setSuggestionData']({'id':_0x53ca2f,'type':_0x38d079,'createdAt':new Date(),'authorId':_0x57a6d7,'originalSuggestionId':_0xe3b0d2['id'],'attributes':_0xe3b0d2['attributes'],'data':_0xe3b0d2['data']});const _0x5e814d=this['_getAttributeKey'](_0xe3b0d2);('formatBlock'==_0xe3b0d2['type']||_0x5e814d&&this['_isBlockAttribute'](_0x5e814d))&&(_0x3860cf=this['_model']['createPositionBefore'](_0x3860cf['parent'])),this['_addSuggestionMarker'](_0x38d079,_0x53ca2f,_0x57a6d7,this['_model']['createRange'](_0x3860cf,_0x20ccac));}['_findSuggestions'](_0x50daf9,_0x5e7d4e=null){const _0x48e2c0=[],_0x52cd3a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x50daf9)||(_0x50daf9=[_0x50daf9]);for(const _0x5ee201 of this['getSuggestions']()){if(!_0x5ee201['isInContent'])continue;if(_0x5e7d4e&&_0x5ee201['type']!=_0x5e7d4e)continue;let _0x4fc414=!0x1;for(const _0x58aabd of _0x5ee201['getRanges']()){for(const _0x2ec2c9 of _0x50daf9){const _0x211d08=_0x2ec2c9['start']['isEqual'](_0x58aabd['end'])||_0x2ec2c9['end']['isEqual'](_0x58aabd['start']);if(_0x211d08||_0x2ec2c9['getIntersection'](_0x58aabd)){const _0x4bbee8=_0x2ec2c9['containsRange'](_0x58aabd)&&Ot(this['_model']['schema'],_0x58aabd['start'],_0x2ec2c9),_0x123d3f=_0x58aabd['containsRange'](_0x2ec2c9)&&Ot(this['_model']['schema'],_0x2ec2c9['start'],_0x58aabd);_0x48e2c0['push']({'suggestion':_0x5ee201,'meta':{'isOwn':_0x52cd3a==_0x5ee201['author'],'isNextTo':_0x211d08,'isInsideObject':_0x4bbee8,'containsRangeInObject':_0x123d3f}}),_0x4fc414=!0x0;break;}}if(_0x4fc414)break;}}return _0x48e2c0;}['_addSuggestionMarker'](_0x3a16fd,_0x15d34a,_0x4e22f7,_0x6d4d8d,_0x215da8){this['_model']['change'](_0x518cc0=>{let _0x101692='suggestion:'+_0x3a16fd+':'+_0x15d34a+':'+_0x4e22f7;_0x215da8&&(_0x101692=_0x101692+':'+_0x215da8),_0x518cc0['addMarker'](_0x101692,{'range':_0x6d4d8d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x28a2d7){const _0x3da5fa=_0x28a2d7['previous'],_0x211fa5=_0x28a2d7['next'];_0x28a2d7['previous']=null,_0x28a2d7['next']=null,null!=_0x3da5fa&&_0x3da5fa['next']==_0x28a2d7&&(_0x3da5fa['next']=_0x211fa5),null!=_0x211fa5&&_0x211fa5['previous']==_0x28a2d7&&(_0x211fa5['previous']=_0x3da5fa),'ready'==this['_suggestionState']['get'](_0x28a2d7)&&(this['_suggestionState']['set'](_0x28a2d7,'removed'),this['fire']('suggestionUnloaded',_0x28a2d7,_0x3da5fa,_0x211fa5));}['_setSuggestionData'](_0x46cabc){const _0x3061bc=_0x46cabc['id'],_0x183c65=this['addSuggestionData'](_0x46cabc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x155e19=this['editor']['plugins']['get']('PendingActions'),_0x33553e=_0x183c65['hasComments'],_0x3f4015=_0x183c65['subType']?_0x183c65['type']+':'+_0x183c65['subType']:_0x183c65['type'],_0x55363e=this['editor']['locale'],_0x16c921=_0x155e19['add'](o(_0x55363e,'PENDING_ACTION_SUGGESTION')),_0x57643e={'id':_0x3061bc,'type':_0x3f4015,'hasComments':_0x33553e,'data':_0x46cabc['data']||null,'originalSuggestionId':_0x46cabc['originalSuggestionId']||null,'attributes':_0x183c65['attributes']};this['_adapter']['addSuggestion'](_0x57643e)['then'](_0x24e0d5=>{_0x183c65['_saved']=!0x0,_0x155e19['remove'](_0x16c921),_0x24e0d5&&_0x24e0d5['createdAt']&&(this['_suggestions']['get'](_0x3061bc)['createdAt']=_0x24e0d5['createdAt']);})['catch'](_0x4134cc=>{throw _0x250a6e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x183c65['discard']();}),_0x183c65['stopListening'](),this['_suggestions']['delete'](_0x183c65['id']),this['_suggestionState']['delete'](_0x183c65),_0x4134cc;});}return _0x183c65;}['_isBlockAttribute'](_0x47c99a){return this['_blockAttributeKeys']['has'](_0x47c99a);}['_updateSuggestionData'](_0x33f2a5,_0x142c23){const _0xdde74d=this['editor']['plugins']['get']('PendingActions'),_0x110687=this['getSuggestion'](_0x33f2a5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x110687['_saved']){const _0x4487fd=_0xdde74d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x33f2a5,_0x142c23)['then'](()=>{_0xdde74d['remove'](_0x4487fd);});}else _0x110687['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x33f2a5,_0x142c23);});}}['_getSuggestionData'](_0x1b6e76){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x592c71('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b6e76);}['_handleNewSuggestionMarker'](_0x386f6b){const {id:_0x53ceee,type:_0x2feba2,subType:_0x2f4adf,authorId:_0x399048}=this['_splitMarkerName'](_0x386f6b),_0x43e191=this['_suggestions']['get'](_0x53ceee)||this['_createSuggestion'](_0x2feba2,_0x2f4adf,_0x53ceee,_0x399048,{});switch(this['_checkSuggestionCorrectness'](_0x43e191,_0x2feba2,_0x2f4adf,_0x399048),this['_suggestionState']['get'](_0x43e191)){case'notReady':this['_getSuggestionData'](_0x53ceee)['then'](_0x55d882=>{let _0x2c5e4d=Promise['resolve']();_0x55d882['hasComments']&&(_0x2c5e4d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x53ceee})),_0x2c5e4d['then'](()=>{this['addSuggestionData'](_0x55d882)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x43e191,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x53ceee,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x43e191,'ready'),this['fire']('suggestionLoaded',_0x43e191);break;case'ready':this['fire']('suggestionChanged',_0x43e191);}return _0x43e191['addMarkerName'](_0x386f6b),_0x43e191;}['_refreshSuggestionsChain'](_0x5e2417){const _0x3efd56=Array['from'](_0x5e2417),_0x31a68e=_0x3efd56['filter'](_0x413841=>'attribute'==_0x413841['type']);this['_refreshAttributeSuggestionsChain'](_0x31a68e);const _0x82349c=_0x3efd56['filter'](_0x1ed406=>!_0x1ed406['isMultiRange']&&'attribute'!=_0x1ed406['type']),_0x5d0429=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17f6e2=>!_0x17f6e2['isMultiRange']&&'attribute'!=_0x17f6e2['type']),_0x50d36e=_0x5d0429['filter'](_0x1c4f29=>!_0x5e2417['has'](_0x1c4f29)),_0x2e3c0f=new Map(_0x5d0429['map'](_0x243722=>[_0x243722,this['_suggestionFactory']['getSuggestionCallback'](_0x243722['type'],_0x243722['subType'],'chain')])),_0x3e0a57=new Map(_0x5d0429['map'](_0x12f107=>[_0x12f107,_0x12f107['getFirstRange']()])),_0x147f24=new Set(),_0x2c2bd8=new Set();for(let _0xbded26=0x0;_0xbded26<_0x82349c['length'];_0xbded26++)_0x4e5012(_0x82349c[_0xbded26],_0x82349c,_0xbded26+0x1);for(let _0x5d4b9f=0x0;_0x5d4b9f<_0x82349c['length'];_0x5d4b9f++)_0x4e5012(_0x82349c[_0x5d4b9f],_0x50d36e,0x0);const _0x494132=new Set();for(let _0x31c6d7=0x0;_0x31c6d7<_0x82349c['length'];_0x31c6d7++){const _0x1dfb34=_0x82349c[_0x31c6d7];!_0x2c2bd8['has'](_0x1dfb34)&&_0x1dfb34['previous']&&(_0x494132['add'](_0x1dfb34['previous']),_0x1dfb34['previous']['next']===_0x1dfb34&&(_0x1dfb34['previous']['next']=null),_0x1dfb34['previous']=null),!_0x147f24['has'](_0x1dfb34)&&_0x1dfb34['next']&&(_0x494132['add'](_0x1dfb34['next']),_0x1dfb34['next']['previous']===_0x1dfb34&&(_0x1dfb34['next']['previous']=null),_0x1dfb34['next']=null);}function _0x4e5012(_0x2a9657,_0x3f1958,_0x11e289){for(let _0x5255a1=_0x11e289;_0x5255a1<_0x3f1958['length'];_0x5255a1++){const _0x2e1b64=_0x481413(_0x2a9657,_0x3f1958[_0x5255a1]);_0x2e1b64&&(_0x2e1b64[0x0]['next']=_0x2e1b64[0x1],_0x2e1b64[0x1]['previous']=_0x2e1b64[0x0],_0x147f24['add'](_0x2e1b64[0x0]),_0x2c2bd8['add'](_0x2e1b64[0x1]));}}function _0x481413(_0x4dfd6a,_0x3c2a33){if(_0x4dfd6a['author']['id']!==_0x3c2a33['author']['id'])return null;const _0x16c9e5=_0x2e3c0f['get'](_0x4dfd6a)(_0x4dfd6a,_0x3c2a33,_0x3e0a57['get'](_0x4dfd6a),_0x3e0a57['get'](_0x3c2a33));if(!_0x16c9e5)return null;return _0x2e3c0f['get'](_0x3c2a33)(_0x4dfd6a,_0x3c2a33,_0x3e0a57['get'](_0x4dfd6a),_0x3e0a57['get'](_0x3c2a33))?_0x16c9e5[0x1]['commentThread']&&_0x16c9e5[0x1]['commentThread']['length']?null:_0x16c9e5:null;}_0x494132['size']&&this['_refreshSuggestionsChain'](_0x494132);}['_refreshAttributeSuggestionsChain'](_0xfe1a18){if(0x0==_0xfe1a18['length'])return;const _0x3e34e9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15f4ee=>'attribute'==_0x15f4ee['type']&&_0x15f4ee['_isDataLoaded']),_0x15f665=[],_0x129307=new Map();for(const _0x529186 of _0x3e34e9){const _0x6a3a64=_0x39b023(_0x529186['attributes']);_0x129307['has'](_0x6a3a64)||(_0x129307['set'](_0x6a3a64,_0x15f665['length']),_0x15f665['push']([]));const _0x2064fa=_0x129307['get'](_0x6a3a64);_0x15f665[_0x2064fa]['push'](_0x529186);}!(function(){_0x15f665['sort']((_0x16bac5,_0x3059d1)=>{const _0xb47814=_0x16bac5[0x0]['createdAt'],_0x3b8277=_0x3059d1[0x0]['createdAt'];return _0xb47814==_0x3b8277?_0x16bac5[0x0]['attributes']['groupId']<_0x3059d1[0x0]['attributes']['groupId']?-0x1:0x1:_0xb47814<_0x3b8277?-0x1:0x1;});for(const _0x5e26a3 of _0x15f665)_0x5e26a3['sort']((_0x2d5edb,_0x11f6be)=>_0x2d5edb['id']<_0x11f6be['id']?-0x1:0x1);}());for(let _0x1894e3=0x0;_0x1894e3<_0x15f665['length'];_0x1894e3++){if(0x0==_0x15f665[_0x1894e3]['length'])continue;const _0x755022=[];for(let _0x16a22b=_0x1894e3+0x1;_0x16a22b<_0x15f665['length'];_0x16a22b++)0x0!=_0x15f665[_0x16a22b]['length']&&_0x183422(_0x15f665[_0x1894e3],_0x15f665[_0x16a22b])&&_0x755022['push'](_0x16a22b);for(const _0x42b4c0 of _0x755022)_0x15f665[_0x1894e3]=_0x15f665[_0x1894e3]['concat'](_0x15f665[_0x42b4c0]),_0x15f665[_0x42b4c0]=[];}for(const _0x22dc5e of _0x15f665)for(let _0x1e4b53=0x0;_0x1e4b53<_0x22dc5e['length'];_0x1e4b53++){const _0x233e5f=_0x22dc5e[_0x1e4b53+0x1]||null;_0x22dc5e[_0x1e4b53]['next']!==_0x233e5f&&(_0x22dc5e[_0x1e4b53]['next']=_0x233e5f);}for(const _0x51e2c3 of _0x15f665)for(let _0xd5805=0x0;_0xd5805<_0x51e2c3['length'];_0xd5805++){const _0x5f5dec=_0x51e2c3[_0xd5805-0x1]||null;_0x51e2c3[_0xd5805]['previous']!==_0x5f5dec&&(_0x51e2c3[_0xd5805]['previous']=_0x5f5dec);}function _0x183422(_0x3adb8b,_0x2f233a){if(_0x3adb8b[0x0]['attributes']['groupId']!==_0x2f233a[0x0]['attributes']['groupId']&&_0x3adb8b[0x0]['author']!==_0x2f233a[0x0]['author'])return!0x1;if(!function(_0x3a3361,_0x423d32){if(!_0x3a3361['hasComments']&&!_0x423d32['hasComments'])return!0x0;if(_0x3a3361['hasComments']&&_0x423d32['hasComments'])return!0x1;if(_0x3a3361['hasComments']&&_0x423d32['createdAt']<_0x3a3361['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x423d32['hasComments']&&_0x3a3361['createdAt']<_0x423d32['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3adb8b[0x0],_0x2f233a[0x0]))return!0x1;const _0x56b4bc=Tt(_0x3adb8b[0x0]['attributes'],'groupId'),_0x2269de=Tt(_0x2f233a[0x0]['attributes'],'groupId');if(!_0x41747e(_0x56b4bc,_0x2269de))return!0x1;return!!_0x3adb8b['every'](_0x5b321=>_0x2f233a['some'](_0x2d97b4=>_0x5b321['getFirstRange']()['isEqual'](_0x2d97b4['getFirstRange']())))&&_0x2f233a['every'](_0x37fb13=>_0x3adb8b['some'](_0x30b27f=>_0x37fb13['getFirstRange']()['isEqual'](_0x30b27f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1b7308){const _0x54d831=Array['from'](_0x1b7308),_0x515ef0=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4c29d9=_0x515ef0['filter'](_0x24b5d6=>!_0x1b7308['has'](_0x24b5d6)),_0xa160cb=new Map(_0x54d831['map'](_0x2be3a6=>[_0x2be3a6,this['_suggestionFactory']['getSuggestionCallback'](_0x2be3a6['type'],_0x2be3a6['subType'],'join')])),_0x4081ab=new Map(_0x515ef0['map'](_0x4b3134=>[_0x4b3134,_0x4b3134['getRanges']()]));for(let _0x42dbab=0x0;_0x42dbab<_0x54d831['length'];_0x42dbab++){if(_0x356fae(this,_0x54d831[_0x42dbab],_0x54d831,_0x42dbab+0x1))return!0x0;}for(let _0x32c71c=0x0;_0x32c71c<_0x54d831['length'];_0x32c71c++){if(_0x356fae(this,_0x54d831[_0x32c71c],_0x4c29d9,0x0))return!0x0;}return!0x1;function _0x356fae(_0x12f9a8,_0x37b924,_0x5a8218,_0x1ac00b){for(let _0x3b90c4=_0x1ac00b;_0x3b90c4<_0x5a8218['length'];_0x3b90c4++){const _0x29091f=_0x5a8218[_0x3b90c4];if(_0x29091f['type']!==_0x37b924['type']||_0x29091f['author']['id']!==_0x37b924['author']['id']||_0x29091f['subType']!==_0x37b924['subType'])continue;if(!Jt(_0x37b924,_0x29091f))continue;if('attribute'==_0x37b924['type']&&_0x37b924['data']['oldValue']!=_0x29091f['data']['oldValue'])continue;if('attribute'==_0x37b924['type']&&_0x12f9a8['_isBlockAttribute'](_0x37b924['data']['key']))continue;if('formatBlock'==_0x37b924['type']){const _0x4d64ca=_0x12f9a8['editor']['model'],_0x9eb9da=_0x37b924['getContainedElement']();if(_0x9eb9da&&(_0x4d64ca['schema']['isObject'](_0x9eb9da)||_0x4d64ca['schema']['isLimit'](_0x9eb9da)))continue;}const _0x5dbcda=_0xa160cb['get'](_0x37b924),_0x47453d=_0x4081ab['get'](_0x37b924),_0x173868=_0x4081ab['get'](_0x29091f),_0x387409=_0x37b924['commentThread']&&_0x37b924['commentThread']['length'],_0xaa2dd9=_0x29091f['commentThread']&&_0x29091f['commentThread']['length'];if(!_0x387409&&_0x5dbcda(_0x173868,_0x47453d))return _0x12f9a8['_joinSuggestions'](_0x29091f,_0x37b924),_0x4081ab['delete'](_0x37b924),!0x0;if(!_0xaa2dd9&&_0x5dbcda(_0x47453d,_0x173868))return _0x12f9a8['_joinSuggestions'](_0x37b924,_0x29091f),_0x4081ab['delete'](_0x29091f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f462f,_0x180113){if(_0x5f462f['isMultiRange']){for(const _0x5e511f of _0x180113['getRanges']())_0x5f462f['addRange'](_0x5e511f);}else{const _0x5c012f=_0x180113['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f462f,this['_model']['createRange'](_0x5f462f['getFirstRange']()['start'],_0x5c012f));}_0x180113['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c3cf5,_0x401490,_0x56108d){const _0x15f23d=_0x5c3cf5['startsWith']('format')||_0x5c3cf5['startsWith']('attribute')?'FORMATTING':_0x5c3cf5['toUpperCase']();return o(this['editor']['locale'],_0x401490+'_'+_0x15f23d+'_SUGGESTION_ANNOUNCEMENT',_0x56108d);}['_initAriaMarkerChangeAnnouncements'](){const _0x232e26=this['editor'];if(!_0x232e26['ui'])return;const {ariaLiveAnnouncer:_0x1dc38d}=_0x232e26['ui'];_0x87cbf2(this['_model'],({left:_0x17c58f,entered:_0x57b554})=>{for(const _0x47f397 of _0x17c58f){const {group:_0x56df8b,type:_0x4041d3}=this['_splitMarkerName'](_0x47f397['name']);if('suggestion'===_0x56df8b){_0x1dc38d['announce'](this['_getMarkerAnnouncementText'](_0x4041d3,'LEAVE'));break;}}for(const _0xd45019 of _0x57b554){const {group:_0x397589,type:_0x353524}=this['_splitMarkerName'](_0xd45019['name']);if('suggestion'===_0x397589){_0x1dc38d['announce'](this['_getMarkerAnnouncementText'](_0x353524,'ENTER',_0xbe6bf3(_0x4b35c3)));break;}}});}['_processAttributeChanges'](_0x2179bf){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2d5350=this['editor'],_0x1e168b=_0x2d5350['model']['document']['differ']['getChanges']();if(0x0==_0x1e168b['length'])return!0x1;const _0x45525f=[],_0x3d220f=_0x1e168b['filter'](_0xb7d5cf=>'attribute'==_0xb7d5cf['type']),_0xd38a97=_0x1e168b['filter'](_0x1d4a93=>'insert'==_0x1d4a93['type']&&'$text'!=_0x1d4a93['name']),_0x5257c2=_0x1e168b['filter'](_0xc1e130=>'remove'==_0xc1e130['type']&&'$text'!=_0xc1e130['name']);for(const _0x299e52 of _0x3d220f)_0x45525f['push']({'key':_0x299e52['attributeKey'],'newValue':_0x299e52['attributeNewValue'],'oldValue':_0x299e52['attributeOldValue'],'range':Pt(_0x299e52['range'],_0x2d5350['model'])});for(const _0x2bcdd7 of _0xd38a97){const _0x235dc7=_0x5257c2['find'](_0x47a0e6=>_0x47a0e6['position']['isEqual'](_0x2bcdd7['position']));_0x235dc7&&_0x45525f['push']({'key':m,'newValue':_0x2bcdd7['name'],'oldValue':_0x235dc7['name'],'range':_0x2d5350['model']['createRangeOn'](_0x2bcdd7['position']['nodeAfter'])});}return 0x0!=_0x45525f['length']&&this['_reduceExistingSuggestions'](_0x2179bf,_0x45525f);}['_processAttributeSuggestions'](_0x304fe6){let _0x1b9cef=!0x1;const _0x2bbb5e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4984c7=>_0x4984c7['data']['newRange']&&_0x4984c7['name']['startsWith']('suggestion:attribute:'));for(const _0x8fbfb9 of _0x2bbb5e){const {subType:_0x20c2c7,id:_0x45dca6}=this['_splitMarkerName'](_0x8fbfb9['name']),_0xedcc0=_0x20c2c7['split']('|')[0x0];for(const _0x1b1b51 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1b1b51['id']!=_0x45dca6&&'attribute'==_0x1b1b51['type']&&_0x1b1b51['data']&&_0x1b1b51['data']['key']==_0xedcc0&&_0x1b1b51['getFirstRange']()['isIntersecting'](_0x8fbfb9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1b1b51,_0x8fbfb9['data']['newRange'],_0x304fe6),_0x1b9cef=!0x0);}return _0x1b9cef;}['_recordAttributeChanges'](_0x47b073){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x47b073();}['_isRegisteredAttribute'](_0x3d937f){const _0x372188=this['_isBlockAttribute'](_0x3d937f),_0x5a67cd=this['_inlineAttributeKeys']['has'](_0x3d937f);return _0x372188||_0x5a67cd;}['_reduceExistingSuggestions'](_0x8be1bc,_0x7505d8){if(0x0==_0x7505d8['length'])return!0x1;let _0xfe407=!0x1;for(const _0x24a65a of _0x7505d8){const _0x5f4f12=this['_findSuggestions'](_0x24a65a['range'],'attribute')['filter'](_0x34d0a9=>!_0x34d0a9['meta']['isNextTo'])['map'](_0x5d2c85=>_0x5d2c85['suggestion']),_0x3f1063=_0x39b023({'newValue':_0x24a65a['newValue']});_0x5f4f12['filter'](_0x3ef3cc=>{const [_0x49a9f,_0x4074b6]=_0x3ef3cc['subType']['split']('|');return _0x49a9f==_0x24a65a['key']&&_0x4074b6!=_0x3f1063;})['forEach'](_0x18bc13=>{this['_reduceSuggestionAttributeRange'](_0x18bc13,_0x24a65a['range'],_0x8be1bc),_0xfe407=!0x0;});}return _0xfe407;}['_reduceSuggestionAttributeRange'](_0x32c2f9,_0x22aa51,_0x10e0c4){const _0xae3605=_0x32c2f9['getFirstRange']()['getDifference'](_0x22aa51);0x0!==_0xae3605['length']?0x1!==_0xae3605['length']?this['_breakSuggestionMarker'](_0x32c2f9,_0x22aa51['start'],_0x22aa51['end']):this['_setSuggestionRange'](_0x32c2f9,_0xae3605[0x0]):_0x10e0c4['removeMarker'](_0x32c2f9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1734e0){this['_editor']=_0x1734e0,this['_model']=_0x1734e0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1aa147,_0x19d857,_0x4f6b8f,_0x16a147,_0x23580d,_0x33a94c){return new u(this['_model'],{'type':_0x1aa147,'subType':_0x19d857,'id':_0x4f6b8f,'author':_0x16a147,'creator':_0x16a147,'attributes':_0x23580d,'onAttributesChange':_0x33a94c,'onAccept':(..._0x39c51e)=>this['getSuggestionCallback'](_0x1aa147,_0x19d857,'accept')(..._0x39c51e),'onDiscard':(..._0x372b95)=>this['getSuggestionCallback'](_0x1aa147,_0x19d857,'discard')(..._0x372b95)});}['registerCustomCallback'](_0x1cf612,_0x8f6d81,_0x5e3185,_0x5bc89f){const _0x2893d8=_0x1cf612+':'+_0x8f6d81+':'+_0x5e3185;this['_customCallbacks']['set'](_0x2893d8,_0x5bc89f);}['getSuggestionCallback'](_0x212a2c,_0x42bc3a,_0xe1c581){const _0x266b4d=_0x212a2c+':'+_0x42bc3a+':'+_0xe1c581;return this['_customCallbacks']['get'](_0x266b4d)||this['_defaultCallbacks']['get'](_0x212a2c+':'+_0xe1c581);}['_registerDefaultCallbacks'](){const _0x189a5a=()=>!0x1,_0x41a669=_0x3f3801=>{_0x3f3801['sort']((_0xee7b1d,_0x13b999)=>_0xee7b1d['start']['isBefore'](_0x13b999['start'])?0x1:-0x1),this['_model']['change'](_0x9d4163=>{for(const _0x3ffe0f of _0x3f3801){let _0x5d9285;_0x5d9285=_0x3ffe0f['end']['isAtEnd']&&_0x3ffe0f['end']['parent']==_0x3ffe0f['start']['nodeAfter']?_0x9d4163['createSelection'](_0x3ffe0f['start']['nodeAfter'],'on'):_0x9d4163['createSelection'](_0x3ffe0f),this['_model']['deleteContent'](_0x5d9285,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x32996c=(_0x1941cb,_0x2ad955)=>{_0x2ad955&&this['_model']['change'](_0x2632d2=>{const {commandName:_0x13aeaa,commandParams:_0x17e8a5=[]}=_0x2ad955,_0x586175=_0x1941cb['map'](_0x33821e=>(Vt(_0x33821e)&&(_0x33821e=this['_model']['createRange'](_0x33821e['end'])),_0x33821e))['filter'](_0x2cc210=>'$graveyard'!==_0x2cc210['root']['rootName']);if(_0x586175['length']<0x1)return;const _0x6504cc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x387ec4=>_0x411321['fromRange'](_0x387ec4));_0x2632d2['setSelection'](_0x586175);for(const _0x573f1a of this['_editor']['commands']['commands']())_0x573f1a['refresh']();_0x17e8a5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x13aeaa,..._0x17e8a5);const _0x19065d=_0x6504cc['filter'](_0x35b611=>'$graveyard'!=_0x35b611['root']['rootName']);_0x19065d['length']>0x0&&_0x2632d2['setSelection'](_0x19065d);for(const _0x797313 of _0x6504cc)_0x797313['detach']();});},_0x4e2f7f=(_0x34335e,_0x4b043b)=>0x1==_0x34335e['length']&&0x1==_0x4b043b['length']&&_0x34335e[0x0]['end']['isEqual'](_0x4b043b[0x0]['start']),_0x5040ad=(_0x56bb99,_0x23b04d,_0x459f0d,_0xf7a0ea)=>Ht(_0x56bb99,_0x23b04d,_0x459f0d,_0xf7a0ea,this['_model'])?[_0x56bb99,_0x23b04d]:Ht(_0x23b04d,_0x56bb99,_0xf7a0ea,_0x459f0d,this['_model'])?[_0x23b04d,_0x56bb99]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x189a5a),this['_defaultCallbacks']['set']('insertion:discard',_0x41a669),this['_defaultCallbacks']['set']('insertion:join',_0x4e2f7f),this['_defaultCallbacks']['set']('insertion:chain',_0x5040ad),this['_defaultCallbacks']['set']('deletion:accept',_0x41a669),this['_defaultCallbacks']['set']('deletion:discard',_0x189a5a),this['_defaultCallbacks']['set']('deletion:join',_0x4e2f7f),this['_defaultCallbacks']['set']('deletion:chain',_0x5040ad),this['_defaultCallbacks']['set']('formatInline:accept',_0x32996c),this['_defaultCallbacks']['set']('formatInline:discard',_0x189a5a),this['_defaultCallbacks']['set']('formatInline:join',_0x4e2f7f),this['_defaultCallbacks']['set']('formatInline:chain',_0x189a5a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x32996c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x189a5a),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e2f7f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x189a5a),this['_defaultCallbacks']['set']('attribute:accept',_0x189a5a),this['_defaultCallbacks']['set']('attribute:discard',(_0x386994,_0x54874b)=>{if(!_0x54874b)return;const _0x321fde=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x534dee=>{if(_0x54874b['key']==m)for(const _0xc2f84d of _0x386994){const _0xbbbef0=_0xc2f84d['start']['nodeAfter'],_0x2249a1=_0x54874b['oldValue'];_0x534dee['rename'](_0xbbbef0,_0x2249a1);}else{if(_0x321fde['_isBlockAttribute'](_0x54874b['key'])){for(const _0x520897 of _0x386994)void 0x0!==_0x54874b['oldValue']?_0x534dee['setAttribute'](_0x54874b['key'],_0x54874b['oldValue'],_0x520897['start']['nodeAfter']):_0x534dee['removeAttribute'](_0x54874b['key'],_0x520897['start']['nodeAfter']);}else{for(const _0x57d583 of _0x386994)_0x54874b['oldValue']?_0x534dee['setAttribute'](_0x54874b['key'],_0x54874b['oldValue'],_0x57d583):_0x534dee['removeAttribute'](_0x54874b['key'],_0x57d583);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e2f7f);}}function Ot(_0x291784,_0x24edf1,_0x323da0){for(const _0x14d762 of _0x24edf1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14d762['root']==_0x14d762)return!0x1;if(!_0x323da0['containsItem'](_0x14d762))return!0x1;if(_0x291784['isObject'](_0x14d762)||_0x291784['isLimit'](_0x14d762))return!0x0;}return!0x1;}function Vt(_0x3b9638){return _0x3b9638['end']['parent']==_0x3b9638['start']['nodeAfter']&&_0x3b9638['end']['isAtStart'];}function Ut(_0x39470d,_0x1a3a33,_0x4e5bce,_0x19a0ea){const _0x3fa9e9=_0x3582a3=>!_0x3582a3['item']['is']('$textProxy')&&!_0x19a0ea['isObject'](_0x3582a3['item']),_0x3bf9d2=_0x39470d['start']['getLastMatchingPosition'](_0x3fa9e9),_0x4144d3=_0x39470d['end']['getLastMatchingPosition'](_0x3fa9e9,{'direction':'backward'});return(!_0x39470d['start']['isEqual'](_0x3bf9d2)||!_0x39470d['end']['isEqual'](_0x4144d3))&&(_0x3bf9d2['isBefore'](_0x4144d3)?_0x4e5bce['updateMarker'](_0x1a3a33,{'range':_0x4e5bce['createRange'](_0x3bf9d2,_0x4144d3)}):_0x4e5bce['removeMarker'](_0x1a3a33),!0x0);}function Gt(_0x11f1a9){return _0x39b023(_0x11f1a9);}function Ft(_0x3489f8){const _0x2ec41f=_0x3489f8['start']['nodeAfter'];return _0x2ec41f&&_0x2ec41f['is']('element');}function Pt(_0x4f8d53,_0xceb57b){return null==_0x4f8d53['end']['nodeBefore']&&_0x4f8d53['end']['parent']==_0x4f8d53['start']['nodeAfter']?Lt(_0x4f8d53['start']['nodeAfter'],_0xceb57b):_0x4f8d53;}function Lt(_0x44ced5,_0x5ce613){const _0x27fe4e=_0x5ce613['schema']['isObject'](_0x44ced5)||_0x5ce613['schema']['isSelectable'](_0x44ced5);return _0x5ce613['createRange'](_0x5ce613['createPositionAt'](_0x44ced5,'before'),_0x27fe4e?_0x5ce613['createPositionAfter'](_0x44ced5):_0x5ce613['createPositionAt'](_0x44ced5,'end'));}function Ht(_0x385e3f,_0x2045f9,_0x479b81,_0x5cc04d,_0x13e1b7){if(_0x385e3f['next'])return!0x1;if(!Jt(_0x385e3f,_0x2045f9))return!0x1;if(_0x479b81['end']['isEqual'](_0x5cc04d['start']))return!0x0;if(_0x385e3f['type']!=_0x2045f9['type'])return!0x1;if(!_0x479b81['end']['isTouching'](_0x5cc04d['start']))return!0x1;const _0x5741dc=_0x13e1b7['createRange'](_0x479b81['end'],_0x5cc04d['start'])['getWalker']();for(const _0x4d2c8c of _0x5741dc)if(['elementStart','elementEnd']['includes'](_0x4d2c8c['type'])&&_0x13e1b7['schema']['isLimit'](_0x4d2c8c['item']))return!0x1;return!0x0;}function Jt(_0x4e2edf,_0x3dde28){if(!_0x4e2edf['_isDataLoaded']||!_0x3dde28['_isDataLoaded'])return!0x1;const _0x2e108c=new Set(Object['keys'](_0x4e2edf['attributes'])),_0x1c27c6=new Set(Object['keys'](_0x3dde28['attributes']));if(_0x2e108c['delete']('groupId'),_0x1c27c6['delete']('groupId'),0x0==_0x2e108c['size']&&0x0==_0x1c27c6['size'])return!0x0;if(_0x2e108c['size']!=_0x1c27c6['size'])return!0x1;const _0x2d2367={..._0x4e2edf['attributes']},_0x5c9fe7={..._0x3dde28['attributes']};return delete _0x2d2367['groupId'],delete _0x5c9fe7['groupId'],JSON['stringify'](_0x2d2367)==JSON['stringify'](_0x5c9fe7);}function qt(_0x36ef11,_0x2c6ba9){const _0x124266=zt(_0x36ef11['attributes']),_0x245dfe=zt(_0x2c6ba9);if(!_0x36ef11['_isDataLoaded'])return!0x1;for(const _0x4ae0fe of Object['keys'](_0x245dfe))if(!_0x41747e(_0x124266[_0x4ae0fe],_0x245dfe[_0x4ae0fe]))return!0x1;return!0x0;}function zt(_0x4965db){const _0x1ff26e=Object['assign']({},_0x4965db);return delete _0x1ff26e['skipNestingCheck'],delete _0x1ff26e['tablePasteChainId'],_0x1ff26e;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x152174(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ec5be,_0x2958ad,_0x1e8768,_0x40ed52){super(),this['model']=_0x2958ad,this['view']=_0x1e8768,this['commentThreadController']=_0x40ed52,this['_editor']=_0x5ec5be,this['_acceptCommand']=_0x5ec5be['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ec5be['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5972aa,_0xeee989)=>_0x5972aa||_0xeee989),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x236283=>_0x236283&&this['_editor']['model']['canEditAt'](_0x2958ad['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5955ce=>_0x5955ce&&this['_editor']['model']['canEditAt'](_0x2958ad['getRanges']())),this['_pendingAction']=null,_0x1e8768['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1e8768,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1e8768,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1e8768,'change:isDirty',()=>{_0x1e8768['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 _0x3d3156=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3d3156);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x34f964{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x330bfa,_0x279ef9,_0x49a90a,_0x33a560){super(_0x330bfa),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x230434(_0x330bfa,o(_0x330bfa,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x279ef9['authoredAt']),this['bind']('authoredAt')['to'](_0x279ef9),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',_0x279ef9,'authoredAt',this,'descriptionParts',(_0x9fd6f,_0x5c410b,_0x23a8dc)=>{const _0x40cf08=_0x23a8dc['map'](_0x4602dc=>ls(_0x4602dc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x9fd6f-0x1,_0x279ef9['author']['name'],_0x5c410b?_0x33a560['formatDateTime'](_0x5c410b):'',new DOMParser()['parseFromString'](_0x40cf08,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2be8b6(),this['focusTracker']=new _0x13657f(),this['keystrokes']=new _0x4d474a(),this['focusCycler']=new _0x360f96({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x40c314=>_0x40c314['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x279ef9,this['_localUser']=_0x49a90a,this['_config']=_0x33a560,_0x33a560['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x58c512(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x247aec}=this['_config'];this['commentsListView']=new _0x247aec(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',_0x50d7e7=>_0x50d7e7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf6876,_0x1ed979)=>_0xf6876||!!_0x1ed979);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x567718}=this['_config'],_0x44cf99=new _0x567718(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x28c8c5=_0x44cf99['commentInputView'];return _0x44cf99['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x28c8c5,'value',(_0x5b5c9f,_0x1260b4,_0x3a8986)=>!!_0x3a8986||_0x5b5c9f&&!_0x1260b4),_0x28c8c5['on']('submit',(_0x191091,_0x59510b)=>{this['fire']('addComment',_0x59510b),_0x28c8c5['editor']['setData']('');}),_0x28c8c5['on']('cancel',()=>this['focus']()),_0x28c8c5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x44cf99;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x71d17e,_0x379bf7,_0x30c006,_0x168015){super(_0x71d17e,_0x379bf7,_0x30c006,_0x168015),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3617e4=>_0x3617e4&&_0x3617e4[0x0]?_0x3617e4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4b8c6,_0x2bd989)=>{let _0x221ef7='';for(const _0x437703 of _0x4b8c6)_0x221ef7+='<p>'+ls(_0x437703['content'],_0x437703['color'])+'</p>';return _0x2bd989?_0x221ef7:_0x806266(_0x221ef7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x168015['SuggestionView'](_0x71d17e,_0x379bf7,{'formatDateTime':_0x168015['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 _0x583272=this['bindTemplate'],_0x3d8575=[this['suggestionView']];return this['commentsListView']&&_0x3d8575['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3d8575['push'](this['commentThreadInputView']),_0x3d8575['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x583272['if']('isActive','ck-suggestion-wrapper--active'),_0x583272['to']('type',_0x5cd8b9=>'ck-suggestion-'+_0x5cd8b9),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':_0x583272['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3d8575};}['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 _0x34f964{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2c0878,_0x37e443,_0x338f70){super(_0x2c0878),this['_model']=_0x37e443,this['_config']=_0x338f70,this['set']('description',''),this['bind']('authoredAt')['to'](_0x37e443),this['acceptButton']=this['_createButton'](o(_0x2c0878,'Accept\x20suggestion'),_0x15441c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2c0878,'Discard\x20suggestion'),_0x15441c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5e692a(_0x2c0878,_0x37e443['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2be8b6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x13657f(),this['keystrokes']=new _0x4d474a(),this['focusCycler']=new _0x360f96({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x312000=>_0x312000['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x25b7d1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x25b7d1['innerHTML']=this['description'],this['on']('change:description',(_0xc78e01,_0x2fc526,_0x48107a)=>{_0x25b7d1['innerHTML']=_0x48107a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x37f39a=this['bindTemplate'],_0x5e8e1a=[{'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':_0x37f39a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x37f39a['to']('authoredAt',_0x1db509=>this['_config']['formatDateTime'](_0x1db509))}]}]},{'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']&&_0x5e8e1a['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':_0x5e8e1a}]};}['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'](_0xbbdc2e,_0xedf8ff,_0x4d29cf,_0x942ef2,_0x1925a4){const _0x158a5d=new _0x464813(this['locale']);return _0x158a5d['set']({'label':_0xbbdc2e,'icon':_0xedf8ff,'tooltip':!0x0,'tooltipPosition':_0x1925a4}),_0x158a5d['extendTemplate']({'attributes':{'class':_0x4d29cf}}),_0x158a5d['on']('execute',()=>{this['fire'](_0x942ef2,this['_model']['id']);}),_0x158a5d;}['_setupKeyboardNavigation'](){const _0x314c37=this['element'];this['keystrokes']['listenTo'](_0x314c37);for(const _0x19f62f of this['focusables'])this['focusTracker']['add'](_0x19f62f['element']),this['keystrokes']['listenTo'](_0x19f62f['element']);this['keystrokes']['set']('enter',(_0x56f3e8,_0xecc51a)=>{_0x314c37===_0x56f3e8['target']&&(this['focusCycler']['focusFirst'](),_0xecc51a());}),this['keystrokes']['set']('esc',(_0x2aacfe,_0x29c5be)=>{_0x314c37!==_0x2aacfe['target']&&(this['focus'](),_0x29c5be());});}}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 _0x48688f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x171a4a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xe7482d){super(_0xe7482d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3101a8=this['editor']['config'];_0x3101a8['define']('trackChanges.SuggestionThreadView',re),_0x3101a8['define']('trackChanges.SuggestionView',ce),_0x3101a8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3101a8['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x3250fb,_0x29eb38){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x222bd7,_0x2b254b]of this['_handleControllerBuffer']){const _0x39a8b1=this['_suggestionToController']['has'](_0x222bd7);_0x39a8b1||_0x2b254b?_0x39a8b1&&_0x2b254b&&this['_destroyController'](_0x222bd7):this['_initializeController'](_0x222bd7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3250fb,_0x29eb38);}['init'](){const _0x14f2a5=this['editor'],_0x53a699=_0x14f2a5['plugins']['get']('TrackChangesEditing'),_0x38b58c=_0x14f2a5['plugins']['get']('Annotations'),_0x8f8d0e=_0x14f2a5['plugins']['get']('EditorAnnotations'),_0x29c4be=_0x14f2a5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x8f8d0e['addSourceCollector'](()=>{const _0x479bed=[];for(const [_0xef579a,_0x9b54c5]of Array['from'](this['_suggestionToController'])){const _0x33e710=_0xef579a['getAllAdjacentSuggestions'](),_0x5f31c7=[];for(const _0x4b2c37 of _0x33e710){if(!_0x4b2c37['isInContent'])continue;if(_0x4b2c37['isMultiRange']){_0x5f31c7['push'](..._0x4b2c37['getRanges']());continue;}const _0xba431d=_0x4b2c37['getFirstRange']();if(_0x5f31c7['length']>0x0){const _0x500269=_0x5f31c7[0x0]['getJoined'](_0xba431d);if(_0x500269){_0x5f31c7[0x0]=_0x500269;continue;}}_0x5f31c7['push'](_0xba431d);}_0x479bed['push']([_0x9b54c5['view'],_0x5f31c7]);}return _0x479bed;}),this['listenTo'](_0x53a699,'suggestionLoaded',(_0x42f50e,_0x24413a)=>{this['listenTo'](_0x24413a,'change:previous',(_0x64e8c4,_0x1faf8f,_0x2d25a7,_0x241df0)=>{_0x24413a['isInContent']&&(null==_0x2d25a7?(this['_updateController'](_0x241df0['head']),this['_handleSuggestionControllerDelayed'](_0x24413a,!0x1)):(this['_updateController'](_0x2d25a7['head']),null==_0x241df0&&this['_handleSuggestionControllerDelayed'](_0x24413a,!0x0)));}),null!==_0x24413a['previous']?this['_updateController'](_0x24413a['head']):this['_handleSuggestionControllerDelayed'](_0x24413a,!0x1);}),this['listenTo'](_0x53a699,'suggestionUnloaded',(_0x2adc3b,_0x32c39d,_0x42f590)=>{this['stopListening'](_0x32c39d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x32c39d),this['_suggestionToController']['has'](_0x32c39d)&&this['_destroyController'](_0x32c39d),_0x42f590&&this['_updateController'](_0x42f590['head']);}),this['listenTo'](_0x53a699,'suggestionChanged',(_0x2b4686,_0x5d9850)=>{this['_updateController'](_0x5d9850);}),this['listenTo'](_0x38b58c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x29c4be,'addComment',(_0x210959,{threadId:_0x2e0267,isFromAdapter:_0x36fca9})=>{if(_0x36fca9||!_0x53a699['hasSuggestion'](_0x2e0267))return;const _0x1bb146=_0x53a699['getSuggestion'](_0x2e0267);this['_suggestionToController']['get'](_0x1bb146)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x11e9df=this['editor']['plugins']['get']('Annotations'),_0x2a7295=this['editor']['plugins']['get']('TrackChangesEditing'),_0x103efd=Array['from'](_0x11e9df['activeAnnotations'],_0x4d62f2=>_0x4d62f2['innerView'])['filter'](_0x3992d2=>this['_viewToController']['has'](_0x3992d2)),_0x34b408=[];for(const _0x3c42ab of _0x103efd){const _0x500071=this['_viewToController']['get'](_0x3c42ab)['model']['getAllAdjacentSuggestions']();_0x34b408['push'](..._0x500071['reduce']((_0x1dfb13,_0x96103a)=>[..._0x1dfb13,..._0x96103a['getMarkerNames']()],[]));}_0x2a7295['activeMarkers']=_0x34b408;}['_addUIComponentsToFactory'](){const _0x292ccd=this['editor'],_0x20e137=_0x292ccd['locale'],_0x51764c=o(_0x20e137,'Track\x20changes'),_0x5adeff=new Wt([{'type':'switchbutton','model':new _0xe8bb13({'withText':!0x0,'isToggleable':!0x0,'label':_0x51764c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x47d99b of _0x5adeff)if(me(_0x47d99b)){const _0x1a7e6b=_0x292ccd['commands']['get'](_0x47d99b['model']['commandName']);_0x47d99b['model']['bind']('isOn','isEnabled')['to'](_0x1a7e6b,'value','isEnabled');}_0x292ccd['ui']['componentFactory']['add']('trackChanges',_0x43665b=>this['_createToolbarButton'](_0x43665b,_0x5adeff,_0x51764c)),_0x292ccd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x37ccc8=>this['_createMenuBarMenu'](_0x37ccc8,_0x5adeff,_0x51764c));}['_createToolbarButton'](_0x2c2070,_0x4898b5,_0x455292){const _0x3e4346=Qt(_0x2c2070,_0x11d1d7),_0x2974b3=this['editor']['commands']['get']('trackChanges');_0x3e4346['buttonView']['set']({'tooltip':_0x455292,'label':_0x455292,'icon':he}),_0x3e4346['buttonView']['bind']('isOn')['to'](_0x2974b3,'value'),_0x3e4346['buttonView']['on']('execute',()=>{_0x2974b3['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x3e4346,_0x4898b5,{'role':'menu'});const _0x37ca56=[];for(const _0x30f37a of _0x4898b5)me(_0x30f37a)&&_0x37ca56['push'](this['editor']['commands']['get'](_0x30f37a['model']['commandName']));const _0xac0bd5=_0x3e4346['buttonView'];return _0xac0bd5['actionView']['unbind']('isEnabled'),_0xac0bd5['arrowView']['unbind']('isEnabled'),_0xac0bd5['actionView']['bind']('isEnabled')['to'](_0x2974b3,'isEnabled'),_0xac0bd5['arrowView']['bind']('isEnabled')['toMany'](_0x37ca56,'isEnabled',(..._0x2b305d)=>_0x2b305d['some'](_0x28fee9=>_0x28fee9)),_0x3e4346['on']('execute',_0x22cfe0=>{this['editor']['execute'](_0x22cfe0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e4346;}['_createMenuBarMenu'](_0x31fbf5,_0x336aab,_0x3ed5ab){const _0x59e5cf=new Yt(_0x31fbf5),_0xc371f6=this['editor']['commands']['get']('trackChanges');_0x59e5cf['buttonView']['set']({'label':_0x3ed5ab,'icon':he});const _0x34bb49=new Zt(_0x31fbf5);for(const _0x3d4d29 of _0x336aab){if('separator'==_0x3d4d29['type']){_0x34bb49['items']['add'](new Xt(_0x31fbf5));continue;}const _0x26963f=new te(_0x31fbf5,_0x59e5cf),_0x5a15ef=new _0x4ddbbe(_0x31fbf5),_0x414dc1=_0x3d4d29['model'];_0x5a15ef['bind'](...Object['keys'](_0x414dc1))['to'](_0x414dc1),_0x5a15ef['delegate']('execute')['to'](_0x59e5cf),_0x5a15ef['on']('execute',()=>{this['editor']['execute'](_0x414dc1['commandName']),this['editor']['editing']['view']['focus']();}),_0x26963f['children']['add'](_0x5a15ef),_0x34bb49['items']['add'](_0x26963f);}return _0x59e5cf['bind']('isEnabled')['to'](_0xc371f6,'isEnabled'),_0x59e5cf['panelView']['children']['add'](_0x34bb49),_0x59e5cf;}['_initializeController'](_0x2eb0c0){const _0x5256a4=this['editor'],_0xfa85c6=_0x5256a4['config'],_0x1ab0f1=_0x5256a4['plugins']['get']('Annotations'),_0x1e66f2=_0x5256a4['plugins']['get']('CommentsRepository'),_0x4ffaaf=_0x5256a4['plugins']['get']('EditorAnnotations'),_0x18c688=_0x5256a4['plugins']['get'](_0x171a4a)['me'],_0x4fdff0=_0xfa85c6['get']('trackChanges')['SuggestionThreadView'],_0x369c83=_0xfa85c6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4a830c,CommentThreadInputView:_0x4e0524}=_0x5256a4['plugins']['get']('CommentsUI');let _0x1f95af,_0xafb0be;this['_annotationViews']['has'](_0x2eb0c0['id'])?(_0xafb0be=this['_annotationViews']['get'](_0x2eb0c0['id']),_0x1f95af=_0xafb0be['mainView']):(_0x1f95af=new _0x4fdff0(_0x5256a4['locale'],_0x2eb0c0,_0x18c688,{'disableComments':this['_disableComments'],'editorConfig':_0xfa85c6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xfa85c6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xfa85c6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xfa85c6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2caec9(_0xfa85c6['get']('locale')),'CommentView':_0xfa85c6['get']('comments')['CommentView'],'CommentsListView':_0x4a830c,'CommentThreadInputView':_0x4e0524,'SuggestionView':_0x369c83}),_0x1f95af['suggestionView']['acceptButton']['on']('execute',()=>{_0x5256a4['editing']['view']['focus']();}),_0x1f95af['suggestionView']['discardButton']['on']('execute',()=>{_0x5256a4['editing']['view']['focus']();}),_0xafb0be=_0x1ab0f1['createAnnotationView'](this['editor']['locale'],_0x1f95af),_0xafb0be['bind']('isDirty')['to'](_0x1f95af,'isDirty'),_0xafb0be['bind']('length')['to'](_0x1f95af),_0xafb0be['bind']('type')['to'](_0x1f95af,'type',_0x135f7f=>'suggestion-'+_0x135f7f),this['listenTo'](_0x1f95af,'escape',()=>{_0x5256a4['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x2eb0c0['id'],_0xafb0be));const _0x5daede=_0x1e66f2['createCommentThreadController'](_0x2eb0c0['commentThread'],_0x1f95af),_0x429edc=new ae(_0x5256a4,_0x2eb0c0,_0x1f95af,_0x5daede),_0x20fd77=_0x2eb0c0['getAllAdjacentSuggestions']()['filter'](_0x2899ba=>_0x2899ba['isInContent']);_0x1f95af['descriptionParts']=_0x5256a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x20fd77),this['_suggestionToController']['set'](_0x2eb0c0,_0x429edc),this['_viewToController']['set'](_0x1f95af,_0x429edc);const _0x219174=_0x1ab0f1['createAnnotation']({'view':_0xafb0be,'target':()=>{const _0x1c53cf=[],_0x4b3ed8=_0x2eb0c0['getAllAdjacentSuggestions']()['filter'](_0x235f46=>_0x235f46['isInContent']);for(const _0x405e18 of _0x4b3ed8)_0x1c53cf['push'](..._0x405e18['getMarkers']());return _0x179daa(_0x5256a4['editing'],_0x1c53cf);},'type':()=>'suggestion-'+_0x429edc['view']['type']});_0x1e66f2['_bindAnnotationToEditors'](_0x1f95af,_0x219174),_0x1ab0f1['add'](_0x219174),_0x4ffaaf['registerAnnotation'](_0x219174);}['_destroyController'](_0x34053a){const _0x59ec79=this['editor']['plugins']['get']('CommentsRepository'),_0x3d5285=this['editor']['plugins']['get']('Annotations'),_0x5d0e02=this['_suggestionToController']['get'](_0x34053a),_0x2b8a13=_0x5d0e02['view'],_0x3c1958=_0x3d5285['getByInnerView'](_0x2b8a13);_0x59ec79['_unbindEditors'](_0x2b8a13),_0x3c1958&&_0x3d5285['remove'](_0x3c1958),this['_suggestionToController']['delete'](_0x34053a),this['_viewToController']['delete'](_0x2b8a13),_0x5d0e02['destroy']();}['_updateController'](_0x3efdb7){if(!_0x3efdb7['isInContent']||!this['_suggestionToController']['has'](_0x3efdb7))return;const _0x1a7855=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f7fc7=this['_suggestionToController']['get'](_0x3efdb7),_0x26aa1c=_0x3efdb7['getAllAdjacentSuggestions']();_0x1f7fc7['view']['descriptionParts']=_0x1a7855['descriptionFactory']['getDescriptions'](_0x26aa1c);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x4b35c3,(_0x3e661f,_0x40df7c)=>{const _0x5437c0=this['editor']['plugins']['get'](k),_0x3a0afa=this['editor']['plugins']['get'](p);if(!_0x3a0afa['activeMarkers']['length'])return;const {id:_0x2f7d72}=_0x3a0afa['_splitMarkerName'](_0x3a0afa['activeMarkers'][0x0]),_0x3d8800=_0x5437c0['getSuggestion'](_0x2f7d72);_0x3d8800&&(this['_suggestionToController']['get'](_0x3d8800)['view']['focus'](),_0x40df7c());});}['destroy'](){for(const _0x4998b5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4998b5);for(const _0x39bd97 of this['_annotationViews']['values']())_0x39bd97['mainView']['destroy']();super['destroy']();}}function me(_0x584c7a){return'model'in _0x584c7a;}class k extends _0x48688f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x47d516){this['editor']['plugins']['get'](p)['adapter']=_0x47d516;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3b5b34){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3b5b34);}['getSuggestions']({skipNotAttached:_0x47fcf2=!0x1,toJSON:_0x42cb92=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x47fcf2,'toJSON':_0x42cb92});}['getSuggestion'](_0x3a6bde){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3a6bde);}}const T=['Pagination'];class P extends _0x48688f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3985c1=this['editor'];if(_0x3985c1['config']['define']('trackChangesData.editorCreator',_0x2b2041=>{const _0x4918ff=_0x3985c1['model']['document']['getRootNames']()['reduce']((_0x4943ab,_0x16b9d3)=>(_0x4943ab[_0x16b9d3]='',_0x4943ab),{});return _0x3985c1['constructor']['create'](_0x4918ff,_0x2b2041);}),'function'!=typeof _0x3985c1['config']['get']('trackChangesData')['editorCreator'])throw new _0x592c71('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f8e47){return N(this['editor'],!0x0,_0x1f8e47);}['getDataWithDiscardedSuggestions'](_0x13fe62){return N(this['editor'],!0x1,_0x13fe62);}}class D extends _0x48688f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x46410c){super(_0x46410c),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(_0x1d321d){return void 0x0!==_0x1d321d['getRootsAttributes'];}async function N(_0x1cf6cd,_0x3b0947,_0x14b95d){const _0x32fa61=_0x4f8fe7(_0x1cf6cd,T);_0x32fa61['plugins']['push'](p,D),_0x32fa61['rootsAttributes']=v(_0x1cf6cd)?_0x1cf6cd['getRootsAttributes']():void 0x0;const _0x192d47=document['createDocumentFragment'](),_0x496999=_0x1cf6cd['config']['get']('trackChangesData')['editorCreator'],_0x3c832a=await _0x496999(_0x32fa61,()=>function(_0x3ba386){const _0x4182ec=document['createElement']('div');return _0x3ba386['appendChild'](_0x4182ec),_0x4182ec;}(_0x192d47));!function(_0x152e47,_0xd9ee09){const _0x3d2cf2=_0x152e47['model']['document']['getRootNames']()['reduce']((_0x33cc1d,_0x3ce60c)=>(_0x33cc1d[_0x3ce60c]=_0x152e47['data']['get']({'rootName':_0x3ce60c}),_0x33cc1d),{}),_0x2ce15e=_0x152e47['plugins']['get']('Users')['users']['map'](_0x867052=>({'id':_0x867052['id'],'name':_0x867052['name']})),_0x420fa1=_0x152e47['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2068ae=_0x152e47['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x40f3b6=_0xd9ee09['plugins']['get']('Users'),_0x46fcc6=_0xd9ee09['plugins']['get']('TrackChangesEditing'),_0x18a2b6=_0xd9ee09['plugins']['get']('CommentsRepository');for(const _0x2888c of _0x18a2b6['getCommentThreads']())_0x2888c['remove']();for(const _0x1f1d6b of _0x2ce15e)_0x40f3b6['getUser'](_0x1f1d6b['id'])||_0x40f3b6['addUser'](_0x1f1d6b);_0x40f3b6['me']||_0x40f3b6['useAnonymousUser']();for(const _0x338139 of _0x2068ae)_0x18a2b6['addCommentThread'](_0x338139);for(const _0x35e604 of _0x420fa1)_0x46fcc6['addSuggestionData'](_0x35e604);_0xd9ee09['data']['set'](_0x3d2cf2);}(_0x1cf6cd,_0x3c832a),_0x3c832a['execute'](_0x3b0947?'acceptAllSuggestions':'discardAllSuggestions');const _0x424b48=v(_0x3c832a)?_0x3c832a['getFullData'](_0x14b95d):_0x3c832a['data']['get'](_0x14b95d);return await _0x3c832a['destroy'](),_0x424b48;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};